@feedmepos/mf-connect 0.1.115-dev → 0.1.115-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-43mZfFAr.js → App-CvtSY8ZO.js} +618 -652
- package/dist/{Bin-CA7v180Y.js → Bin-B3gS9QVZ.js} +8 -8
- package/dist/{Broadcast-qmdifF2Y.js → Broadcast-DAeb-HaN.js} +21 -22
- package/dist/{CampaignAnalytic-xnrDxqaH.js → CampaignAnalytic-BfTaHVem.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zsei4OfG.js} +9 -9
- package/dist/{Card-D8icsk7L.js → Card-JFeVIwFs.js} +24 -25
- package/dist/{Collections--THcD-E_.js → Collections-xcDpEhIm.js} +185 -197
- package/dist/{Credit-JrbtVMBp.js → Credit-C9HJZjDS.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DSqVY91w.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D_jXVE2I.js +3494 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js → EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js} +32 -32
- package/dist/{Experience-CFeRqBoj.js → Experience-DszS8gto.js} +31 -32
- package/dist/{FileSaver.min-CCXIBm58.js → FileSaver.min-CFVQKaC-.js} +1 -1
- package/dist/{Game-CPxq6Ex3.js → Game-DhgeN7E2.js} +18 -19
- package/dist/{GiftCardSetup-D0esVZDp.js → GiftCardSetup-CWm6IhrS.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BuKADvmK.js} +7 -7
- package/dist/{Goals-DaKI6uXt.js → Goals-DtRVierH.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js → ImageInput.vue_vue_type_script_setup_true_lang-DlEFyu6h.js} +1 -1
- package/dist/{Index-2kENoaZm.js → Index-DFRcu_qE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js → LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CjNJj3qj.js} +1 -1
- package/dist/{LoyaltyDashboard-CB93Fz8u.js → LoyaltyDashboard-BWHKDPzk.js} +15 -15
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js → MainLayout-BmpNNAiE.js} +4 -5
- package/dist/Marketing-BKK45Eve.js +236 -0
- package/dist/{remy-icon-BhUGu2NI.js → MarketingMaterialEdit-x3c_N7Gs.js} +1031 -2
- package/dist/{Member-B--nYyr0.js → Member-xEzrBW_p.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DRoC-I0t.js} +50 -43
- package/dist/{MemberImportHistory-D52Y4RTC.js → MemberImportHistory-CEQpBBF8.js} +7 -7
- package/dist/{MemberList-13Owa1fj.js → MemberList-CCvzkHv8.js} +105 -103
- package/dist/{MemberTransactions-CpXEWNbq.js → MemberTransactions-Bmh39J2W.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js → MessageInput.vue_vue_type_script_setup_true_lang-D3Pmk80l.js} +14 -14
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DIBKAwHP.js} +1 -1
- package/dist/{Mission-Ci-UzXSu.js → Mission-CpUo2Bgw.js} +21 -22
- package/dist/{Overview-CKxSfAGF.js → Overview-CwQqQ1Tn.js} +144 -145
- package/dist/{Overview-CXen9Ram.js → Overview-DcDZmDXA.js} +22 -23
- package/dist/{Point-CR3YOaag.js → Point-CUNQsQIx.js} +21 -22
- package/dist/{Promotion-tw3J4ul-.js → Promotion-Cqdim7aW.js} +131 -137
- package/dist/{Queue-BZGA5ZXt.js → Queue-CNBVh1UG.js} +45 -46
- package/dist/{Record-BTevVXnT.js → Record-BYwz4l4o.js} +9 -9
- package/dist/{Review-BU7c8ZF0.js → Review-CqLcZFj8.js} +2 -2
- package/dist/ReviewFacebookCallback-DbSCILNN.js +238 -0
- package/dist/{ReviewGoogleCallback-xpdPHSdg.js → ReviewGoogleCallback-Dg8R7QlO.js} +5 -5
- package/dist/{Reward-jlA_7cxz.js → Reward-M8GZ8eHq.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js → RewardGroup.vue_vue_type_script_setup_true_lang-BkM9-Sx-.js} +15 -16
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CnaL93TF.js +1883 -0
- package/dist/{Segment-C1Bwm--Q.js → Segment-CrMi6xrp.js} +305 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DKH5_9db.js} +30 -31
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CyeAQ-hg.js} +4 -4
- package/dist/Setting-BnFRI0Se.js +2037 -0
- package/dist/{SettingAdvertisements-4XEAJzlL.js → SettingAdvertisements-Dh7v4c1D.js} +12 -12
- package/dist/Settings-BvT8_tkQ.js +179 -0
- package/dist/{Store-C56dXtc4.js → Store-CV-BmK5b.js} +30 -31
- package/dist/{StoreRewards-DQ1Q6WS6.js → StoreRewards-DPhSLvSZ.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDu1QySl.js +1264 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Dqz6jTlH.js +142 -0
- package/dist/{Tier-D4CPZqw7.js → Tier-ChvYps23.js} +687 -2576
- package/dist/{Title-DCbwhUic.js → Title-v-Ivswr1.js} +92 -94
- package/dist/{Transaction-C5LrasXr.js → Transaction-CRqE1Ix0.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B0Uh9iuj.js} +26 -26
- package/dist/{Voucher-rrVbNZKR.js → Voucher-Bg8FOuzD.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js → VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js} +16 -16
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js} +2 -2
- package/dist/{app-CgimGODl.js → app-DdNKsn2Q.js} +7107 -8874
- package/dist/app.js +3 -4
- package/dist/{base.export-D2P6HFvo.js → base.export-R97FrSQL.js} +2 -2
- package/dist/{business-Bu5TqSA0.js → business-Ce8vq3wQ.js} +1 -1
- package/dist/{campaign-zJxttSIk.js → campaign-BTllt2LH.js} +25 -31
- package/dist/{campaign-BFIXSgdJ.js → campaign-C19If7bW.js} +94 -121
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-9CCbalR4.js} +2 -3
- package/dist/{campaign.fn-gvjlcEfe.js → campaign.fn-B4g03h0A.js} +78 -78
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-MvqF7mSg.js} +1 -1
- package/dist/{collection.fn-DOm0HsSh.js → collection.fn-CR0bD33S.js} +2 -2
- package/dist/{currency-BpbQvbm8.js → currency-DmlguGIM.js} +1 -1
- package/dist/{effect-D-GtNB3n.js → effect-Dx3zfl28.js} +1 -1
- package/dist/{email-addresses-BKMoAtMi.js → email-addresses-De5PGOY4.js} +2 -2
- package/dist/{feature-flag-BJ_eyKsq.js → feature-flag-CD9V1V0h.js} +74 -74
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-CkfjBgMM.js → helper-CEiv7SaO.js} +1 -1
- package/dist/{index-zTvr2GR4.js → index-649OZ_e1.js} +2 -2
- package/dist/{index-feCrYhi6.js → index-B8meeQoD.js} +1 -1
- package/dist/{index-CIej31pF.js → index-B8yWVB8P.js} +3 -4
- package/dist/{index-BKsxIwbi.js → index-BAXKd9Gg.js} +198 -198
- package/dist/{index-BAtUrtqM.js → index-BDPnyro2.js} +6 -19
- package/dist/{index-DUAZOMVJ.js → index-BR9h5DTI.js} +1 -1
- package/dist/{index-DwU3fsLW.js → index-BVdYxi3l.js} +15 -29
- package/dist/{index-D0JK99Ko.js → index-BW6eb3n6.js} +252 -611
- package/dist/{index-LygS9WsG.js → index-BYI9ttxy.js} +10767 -8028
- package/dist/{index-BdEXUNoG.js → index-BquSqx6K.js} +4 -4
- package/dist/{index-BpTIulTX.js → index-CBJy9bxB.js} +1 -1
- package/dist/{index-B6kU3PkV.js → index-CPODug8b.js} +2613 -2700
- package/dist/{index-CfQuYqXn.js → index-CWUrODxL.js} +1 -1
- package/dist/{index-DKxN1mMS.js → index-CqOCJTeR.js} +232 -390
- package/dist/{index-CuREApMc.js → index-D4d3l0gw.js} +7 -8
- package/dist/{index-Bhl5IRXy.js → index-DT3S00_Y.js} +10 -11
- package/dist/{index-DqGs6RJG.js → index-IZRfmmde.js} +581 -683
- package/dist/{index-CQ8XFbBk.js → index-__UT3_Ey.js} +2 -2
- package/dist/{index-CCEXSPxk.js → index-xct3mnu8.js} +7 -7
- package/dist/{index.esm2017-DZi9IQPS.js → index.esm2017-AVbZ9btd.js} +177 -177
- package/dist/{loading-Brid2wnu.js → loading-BvHm1m3K.js} +1 -1
- package/dist/{lodash-C1epw3Kv.js → lodash-Dvrceo7x.js} +1 -1
- package/dist/{member-import-DAIxTIiu.js → member-import-c9avpiSS.js} +5 -6
- package/dist/{membership-BZmljFhF.js → membership-D-pZS634.js} +3 -3
- package/dist/{money-cLcyGcSZ.js → money-D4skwMkD.js} +1 -1
- package/dist/{number-C2jPLJr2.js → number-DJ6ncfT6.js} +1 -1
- package/dist/objectid-DEMM_jdR.js +145 -0
- package/dist/{onboarding-oRfy_g05.js → onboarding-t7R1d3h-.js} +25 -25
- package/dist/{onboardingSetup-BLD6m8HY.js → onboardingSetup-lTaJc0oT.js} +2 -2
- package/dist/{plugins-CUsr9vB0.js → plugins-DQNOWwRC.js} +3 -3
- package/dist/{reward-UOT03odb.js → reward-BK150pjm.js} +1 -1
- package/dist/{rule-BgJnPjkI.js → rule-COcdAnUu.js} +492 -572
- package/dist/rule-builder-Deufb6h_.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-DeebIqJ_.js +236 -0
- package/dist/{timezone-BXA4wq7Y.js → timezone-BP6UC4KL.js} +1 -1
- package/dist/{transaction.fn-CQ4fpRt3.js → transaction.fn-BY0hzon0.js} +2 -2
- package/dist/{trigger-DXJCGT0q.js → trigger-DVBjVPbN.js} +8 -8
- package/dist/useMarketingMaterialActions-DpQCQHFI.js +96 -0
- package/dist/{usePagination-Pp4okWr8.js → usePagination-QT552XyF.js} +1 -1
- package/dist/{user-B3gXcAIy.js → user-CmAxNc7T.js} +1 -1
- package/dist/vue-i18n-Cze706-f.js +2365 -0
- package/dist/{xlsx-CCaDUTgW.js → xlsx-DAczoc8y.js} +224 -224
- package/dist/{zod-CPwjOxvW.js → zod-Aj-GuVQL.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-BPpdm96t.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +0 -4442
- package/dist/Grab-BWzdN_cd.js +0 -301
- package/dist/MainLayout-DwnjGXh6.js +0 -4
- package/dist/Marketing-DCco__2F.js +0 -273
- package/dist/MarketingMaterialEdit-BbgFtrYP.js +0 -1037
- package/dist/ReviewFacebookCallback-BnMF6Arh.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +0 -1923
- package/dist/Setting-CDM4RhLW.js +0 -574
- package/dist/Settings-D-0tvZRr.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +0 -7007
- package/dist/WhatsappAccount-oJDo5zTr.js +0 -159
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +0 -39
- package/dist/WhatsappBot-Cl64wG_F.js +0 -876
- package/dist/WhatsappBotLogs-D3uT4EiB.js +0 -372
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +0 -705
- package/dist/WhatsappLayout-C639d2HP.js +0 -21
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +0 -253
- package/dist/browser-BSAOEeIM.js +0 -1478
- package/dist/duplicateCampaign-CvsvjRE9.js +0 -51
- package/dist/feature-flag-Bo-k5sIG.js +0 -50
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/index-C-iwb2Ln.js +0 -109
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/index-DQ8JJhxs.js +0 -74
- package/dist/objectid-C-wocWKI.js +0 -145
- package/dist/template-BZyFhr73.js +0 -188
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +0 -125
- package/dist/vue-i18n-DWGiC_vs.js +0 -2365
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as O, Fragment as q, createVNode as m, unref as o, createElementVNode as g } from "vue";
|
|
2
|
+
import { u as L, _ as G } from "./usePagination-QT552XyF.js";
|
|
3
3
|
import { _ as S } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
4
4
|
import { c as u } from "./string-Gcy5IM_H.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import { useDialog as
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./
|
|
15
|
-
import {
|
|
16
|
-
import { u as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { g as $, S as X, u as Z } from "./index-CCEXSPxk.js";
|
|
5
|
+
import { c as K } from "./plugins-DQNOWwRC.js";
|
|
6
|
+
import { useDialog as Y, components as b } from "@feedmepos/ui-library";
|
|
7
|
+
import "./index-IZRfmmde.js";
|
|
8
|
+
import "./index-CPODug8b.js";
|
|
9
|
+
import "./index-BYI9ttxy.js";
|
|
10
|
+
import { n as c, a as d } from "./index-CqOCJTeR.js";
|
|
11
|
+
import "./index-BW6eb3n6.js";
|
|
12
|
+
import "./index-D4d3l0gw.js";
|
|
13
|
+
import "./index-B8yWVB8P.js";
|
|
14
|
+
import { h as y } from "./moment-D7p2TMB-.js";
|
|
15
|
+
import { u as j } from "./vue-i18n-Cze706-f.js";
|
|
16
|
+
import { u as H, v as W, w as $ } from "./index.esm2017-AVbZ9btd.js";
|
|
17
|
+
import { useRoute as J } from "vue-router";
|
|
18
|
+
import { g as Q, S as X, u as Z } from "./index-xct3mnu8.js";
|
|
20
19
|
import { o as ee } from "./objectId-dwaoBfJX.js";
|
|
21
20
|
const te = () => {
|
|
22
21
|
if (!X.getBusinessId()) throw new Error("Invalid business ID");
|
|
23
22
|
return Z("queues");
|
|
24
23
|
}, oe = {
|
|
25
24
|
async readImportMember(p, w) {
|
|
26
|
-
return
|
|
25
|
+
return Q(
|
|
27
26
|
await te().get("", {
|
|
28
27
|
params: { ...p, ...w }
|
|
29
28
|
})
|
|
30
29
|
);
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
|
-
var ae = { firebase: { apiKey: "
|
|
34
|
-
const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-center justify-between" }, se = { class: "flex gap-8 items-center w-full overflow-x-scroll" },
|
|
32
|
+
var ae = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" };
|
|
33
|
+
const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-center justify-between" }, se = { class: "flex gap-8 items-center w-full overflow-x-scroll" }, Fe = /* @__PURE__ */ h({
|
|
35
34
|
__name: "Queue",
|
|
36
35
|
setup(p) {
|
|
37
|
-
const
|
|
36
|
+
const x = J().query.type, { t: v } = j(), E = Y(), F = [
|
|
38
37
|
{
|
|
39
38
|
header: "ID",
|
|
40
39
|
accessorKey: "_id",
|
|
@@ -43,13 +42,13 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
43
42
|
},
|
|
44
43
|
cell(t) {
|
|
45
44
|
return n("div", { class: "flex items-center" }, [
|
|
46
|
-
n(
|
|
45
|
+
n(b.FmIcon, {
|
|
47
46
|
name: "content_copy",
|
|
48
47
|
outline: !0,
|
|
49
48
|
size: "sm",
|
|
50
49
|
class: "cursor-pointer mr-4",
|
|
51
50
|
onClick: (e) => {
|
|
52
|
-
e.preventDefault(), e.stopPropagation(),
|
|
51
|
+
e.preventDefault(), e.stopPropagation(), K(t.row.original._id.toString());
|
|
53
52
|
}
|
|
54
53
|
}),
|
|
55
54
|
n(
|
|
@@ -74,10 +73,10 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
74
73
|
},
|
|
75
74
|
cell(t) {
|
|
76
75
|
const e = t.row.original.status;
|
|
77
|
-
return n(
|
|
76
|
+
return n(b.FmChip, {
|
|
78
77
|
label: e ? u.title(e) : "-",
|
|
79
78
|
compact: !0,
|
|
80
|
-
class:
|
|
79
|
+
class: D(e)
|
|
81
80
|
});
|
|
82
81
|
},
|
|
83
82
|
enableSorting: !1
|
|
@@ -89,7 +88,7 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
89
88
|
},
|
|
90
89
|
{
|
|
91
90
|
header: "Created at",
|
|
92
|
-
accessorFn: (t) =>
|
|
91
|
+
accessorFn: (t) => y(ee(t._id.toString())).format("D MMM YYYY, hh:mmA"),
|
|
93
92
|
enableSorting: !0
|
|
94
93
|
},
|
|
95
94
|
{
|
|
@@ -114,18 +113,18 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
114
113
|
{
|
|
115
114
|
header: "Failed reason",
|
|
116
115
|
cell(t) {
|
|
117
|
-
return n(
|
|
116
|
+
return n(b.FmButton, {
|
|
118
117
|
icon: "visibility",
|
|
119
118
|
variant: "tertiary",
|
|
120
119
|
disabled: !t.row.original.failedReason,
|
|
121
120
|
onClick: (e) => {
|
|
122
|
-
e.preventDefault(), e.stopPropagation(),
|
|
121
|
+
e.preventDefault(), e.stopPropagation(), C(t.row.original.failedReason);
|
|
123
122
|
}
|
|
124
123
|
});
|
|
125
124
|
},
|
|
126
125
|
enableSorting: !1
|
|
127
126
|
}
|
|
128
|
-
],
|
|
127
|
+
], D = (t) => {
|
|
129
128
|
switch (t) {
|
|
130
129
|
case c.enum.ACTIVE:
|
|
131
130
|
return "text-fm-color-typo-info bg-fm-color-system-info-100";
|
|
@@ -138,7 +137,7 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
138
137
|
default:
|
|
139
138
|
return "text-fm-color-typo-primary bg-fm-color-system-primary-100";
|
|
140
139
|
}
|
|
141
|
-
},
|
|
140
|
+
}, R = h({
|
|
142
141
|
name: "FailedReasonDialog",
|
|
143
142
|
props: {
|
|
144
143
|
data: {
|
|
@@ -150,27 +149,27 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
150
149
|
return () => n("div", { class: "whitespace-pre-line" }, t.data);
|
|
151
150
|
}
|
|
152
151
|
});
|
|
153
|
-
async function
|
|
152
|
+
async function C(t) {
|
|
154
153
|
E.open({
|
|
155
154
|
title: "Failed Reason",
|
|
156
155
|
closeButton: !0,
|
|
157
156
|
dismissAway: !0,
|
|
158
|
-
contentComponent:
|
|
157
|
+
contentComponent: R,
|
|
159
158
|
contentComponentProps: {
|
|
160
159
|
data: t
|
|
161
160
|
}
|
|
162
161
|
});
|
|
163
162
|
}
|
|
164
163
|
const T = async (t) => {
|
|
165
|
-
const e =
|
|
166
|
-
return await
|
|
167
|
-
},
|
|
168
|
-
type:
|
|
164
|
+
const e = H(void 0, ae.importFilesBucketUrl), r = W(e, t);
|
|
165
|
+
return await $(r);
|
|
166
|
+
}, M = c.options.map((t) => ({ label: u.title(t), value: t })), s = A({
|
|
167
|
+
type: x ?? [
|
|
169
168
|
d.enum.MEMBER_IMPORTED,
|
|
170
169
|
d.enum.SEGMENTATION_IMPORTED
|
|
171
170
|
],
|
|
172
171
|
status: []
|
|
173
|
-
}), { tableMeta: i, rowData:
|
|
172
|
+
}), { tableMeta: i, rowData: N, onSort: k, debouncedFetchData: f } = L(
|
|
174
173
|
async (t) => {
|
|
175
174
|
const e = {
|
|
176
175
|
...s.value
|
|
@@ -179,11 +178,11 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
179
178
|
r.resources.map(async (a) => {
|
|
180
179
|
var _, I;
|
|
181
180
|
const l = (I = (_ = a.context) == null ? void 0 : _.context) == null ? void 0 : I.file;
|
|
182
|
-
if (
|
|
181
|
+
if (y(a.context.emittedAt).diff(y(), "days") < 7 && l)
|
|
183
182
|
try {
|
|
184
183
|
l.downloadUrl = await T(l == null ? void 0 : l.fbFilePath);
|
|
185
|
-
} catch (
|
|
186
|
-
console.log(
|
|
184
|
+
} catch (P) {
|
|
185
|
+
console.log(P);
|
|
187
186
|
}
|
|
188
187
|
})
|
|
189
188
|
), {
|
|
@@ -202,9 +201,9 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
202
201
|
await f();
|
|
203
202
|
}), (t, e) => {
|
|
204
203
|
const r = V("FmPageHead");
|
|
205
|
-
return z(), q
|
|
204
|
+
return z(), O(q, null, [
|
|
206
205
|
m(r, {
|
|
207
|
-
title: o(
|
|
206
|
+
title: o(v)("connect.queue.title")
|
|
208
207
|
}, null, 8, ["title"]),
|
|
209
208
|
g("div", re, [
|
|
210
209
|
g("div", ne, [
|
|
@@ -234,13 +233,13 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
234
233
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => o(s).status = a),
|
|
235
234
|
label: "Status: ",
|
|
236
235
|
"show-item-label": !0,
|
|
237
|
-
items: o(
|
|
236
|
+
items: o(M)
|
|
238
237
|
}, null, 8, ["modelValue", "items"])
|
|
239
238
|
])
|
|
240
239
|
]),
|
|
241
|
-
m(
|
|
240
|
+
m(G, {
|
|
242
241
|
loading: o(i).isLoading,
|
|
243
|
-
"row-data": o(
|
|
242
|
+
"row-data": o(N),
|
|
244
243
|
"row-count": o(i).totalRows,
|
|
245
244
|
"column-defs": F,
|
|
246
245
|
"page-count": o(i).pageCount,
|
|
@@ -259,5 +258,5 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
259
258
|
}
|
|
260
259
|
});
|
|
261
260
|
export {
|
|
262
|
-
|
|
261
|
+
Fe as default
|
|
263
262
|
};
|
|
@@ -2,19 +2,19 @@ var q = Object.defineProperty;
|
|
|
2
2
|
var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[o] = m;
|
|
3
3
|
var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
|
|
4
4
|
import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
|
|
5
|
-
import { u as oe, _ as ae } from "./usePagination-
|
|
6
|
-
import { g as A } from "./user-
|
|
5
|
+
import { u as oe, _ as ae } from "./usePagination-QT552XyF.js";
|
|
6
|
+
import { g as A } from "./user-CmAxNc7T.js";
|
|
7
7
|
import { components as R } from "@feedmepos/ui-library";
|
|
8
|
-
import "./index-
|
|
9
|
-
import { u as j } from "./vue-i18n-
|
|
10
|
-
import { u as L } from "./loading-
|
|
8
|
+
import "./index-BYI9ttxy.js";
|
|
9
|
+
import { u as j } from "./vue-i18n-Cze706-f.js";
|
|
10
|
+
import { u as L } from "./loading-BvHm1m3K.js";
|
|
11
11
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
12
|
-
import { r as v } from "./index-
|
|
12
|
+
import { r as v } from "./index-CBJy9bxB.js";
|
|
13
13
|
import { c as ie, a as ne } from "./object-BYyQ0PZp.js";
|
|
14
|
-
import { u as ce } from "./membership-
|
|
14
|
+
import { u as ce } from "./membership-D-pZS634.js";
|
|
15
15
|
import { c as le } from "./string-Gcy5IM_H.js";
|
|
16
|
-
import { c as de } from "./plugins-
|
|
17
|
-
import { u as V, w as me } from "./xlsx-
|
|
16
|
+
import { c as de } from "./plugins-DQNOWwRC.js";
|
|
17
|
+
import { u as V, w as me } from "./xlsx-DAczoc8y.js";
|
|
18
18
|
import { e as f } from "./index-vh86FiIQ.js";
|
|
19
19
|
import { h as ue } from "./moment-D7p2TMB-.js";
|
|
20
20
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, computed as v, resolveComponent as n, openBlock as f, createElementBlock as E, Fragment as R, createVNode as a, unref as l, createElementVNode as s } from "vue";
|
|
2
|
-
import { u as b } from "./vue-i18n-
|
|
3
|
-
import { R as r } from "./app-
|
|
2
|
+
import { u as b } from "./vue-i18n-Cze706-f.js";
|
|
3
|
+
import { R as r } from "./app-DdNKsn2Q.js";
|
|
4
4
|
import { useRouter as V } from "vue-router";
|
|
5
5
|
const w = { class: "flex flex-col" }, T = { class: "px-24" }, S = /* @__PURE__ */ d({
|
|
6
6
|
__name: "Review",
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { defineComponent as C, computed as M, openBlock as l, createElementBlock as g, normalizeClass as j, createElementVNode as u, createBlock as T, unref as e, toDisplayString as h, createCommentVNode as S, createVNode as y, onMounted as B, ref as P, Fragment as $, renderList as U, resolveComponent as z, isRef as V } from "vue";
|
|
2
|
+
import { u as R } from "./vue-i18n-Cze706-f.js";
|
|
3
|
+
import { components as I } from "@feedmepos/ui-library";
|
|
4
|
+
import { r as L } from "./index-DT3S00_Y.js";
|
|
5
|
+
import { u as A } from "./business-Ce8vq3wQ.js";
|
|
6
|
+
import { _ as H } from "./LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js";
|
|
7
|
+
import { R as D } from "./app-DdNKsn2Q.js";
|
|
8
|
+
import { useRouter as G } from "vue-router";
|
|
9
|
+
const O = ["src"], W = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, q = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-primary-500 shrink-0"
|
|
12
|
+
}, J = /* @__PURE__ */ C({
|
|
13
|
+
__name: "FacebookPageConfig",
|
|
14
|
+
props: {
|
|
15
|
+
page: {},
|
|
16
|
+
expanded: { type: Boolean },
|
|
17
|
+
availableLocations: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["toggleExpand", "toggleLocation"],
|
|
20
|
+
setup(s, { emit: n }) {
|
|
21
|
+
const _ = s, f = n, { t: i } = R(), m = M(() => _.page.locationIds);
|
|
22
|
+
return (w, p) => (l(), g("div", {
|
|
23
|
+
class: j([
|
|
24
|
+
"rounded-lg border overflow-hidden transition-colors",
|
|
25
|
+
s.expanded ? "border-fm-color-primary-500" : "border-fm-color-neutral-gray-200"
|
|
26
|
+
])
|
|
27
|
+
}, [
|
|
28
|
+
u("button", {
|
|
29
|
+
class: "w-full flex items-center gap-12 p-16 bg-white text-left hover:bg-fm-color-neutral-gray-50 transition-colors",
|
|
30
|
+
onClick: p[0] || (p[0] = (c) => f("toggleExpand"))
|
|
31
|
+
}, [
|
|
32
|
+
s.page.pageProfileImageUrl ? (l(), g("img", {
|
|
33
|
+
key: 0,
|
|
34
|
+
src: s.page.pageProfileImageUrl,
|
|
35
|
+
class: "w-32 h-32 rounded-full shrink-0 object-cover"
|
|
36
|
+
}, null, 8, O)) : (l(), T(e(I).FmIcon, {
|
|
37
|
+
key: 1,
|
|
38
|
+
name: "thumb_up",
|
|
39
|
+
class: "text-fm-color-neutral-gray-400 shrink-0"
|
|
40
|
+
})),
|
|
41
|
+
u("span", W, h(s.page.pageName), 1),
|
|
42
|
+
s.page.locationIds.length > 0 ? (l(), g("span", q, h(e(i)("connect.review.locationsSelected", s.page.locationIds.length)), 1)) : S("", !0),
|
|
43
|
+
y(e(I).FmIcon, {
|
|
44
|
+
name: s.expanded ? "expand_less" : "expand_more",
|
|
45
|
+
class: "text-fm-color-neutral-gray-400 shrink-0"
|
|
46
|
+
}, null, 8, ["name"])
|
|
47
|
+
]),
|
|
48
|
+
s.expanded ? (l(), T(H, {
|
|
49
|
+
key: 0,
|
|
50
|
+
locations: s.availableLocations,
|
|
51
|
+
"selected-ids": e(m),
|
|
52
|
+
onToggle: p[1] || (p[1] = (c) => f("toggleLocation", c))
|
|
53
|
+
}, null, 8, ["locations", "selected-ids"])) : S("", !0)
|
|
54
|
+
], 2));
|
|
55
|
+
}
|
|
56
|
+
}), K = { class: "flex flex-col gap-8" }, Q = /* @__PURE__ */ C({
|
|
57
|
+
__name: "FacebookPageLocationMapping",
|
|
58
|
+
props: {
|
|
59
|
+
pages: {}
|
|
60
|
+
},
|
|
61
|
+
emits: ["update:pages"],
|
|
62
|
+
setup(s, { emit: n }) {
|
|
63
|
+
const _ = s, f = A();
|
|
64
|
+
B(() => f.readLocations());
|
|
65
|
+
const i = n, m = P(null), w = M(() => {
|
|
66
|
+
const r = /* @__PURE__ */ new Set();
|
|
67
|
+
for (const v of _.pages)
|
|
68
|
+
v.locationIds.forEach((a) => r.add(a));
|
|
69
|
+
return r;
|
|
70
|
+
});
|
|
71
|
+
function p(r) {
|
|
72
|
+
const v = new Set(r.locationIds);
|
|
73
|
+
return f.locations.filter((a) => {
|
|
74
|
+
const b = a._id.toString();
|
|
75
|
+
return !w.value.has(b) || v.has(b);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function c(r, v) {
|
|
79
|
+
const a = v._id.toString(), b = _.pages.map((o) => {
|
|
80
|
+
if (o.facebookPageId !== r) return o;
|
|
81
|
+
const t = o.locationIds.includes(a);
|
|
82
|
+
return {
|
|
83
|
+
...o,
|
|
84
|
+
locationIds: t ? o.locationIds.filter((k) => k !== a) : [...o.locationIds, a]
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
i("update:pages", b);
|
|
88
|
+
}
|
|
89
|
+
function F(r) {
|
|
90
|
+
m.value = m.value === r ? null : r;
|
|
91
|
+
}
|
|
92
|
+
return (r, v) => (l(), g("div", K, [
|
|
93
|
+
(l(!0), g($, null, U(s.pages, (a) => (l(), T(J, {
|
|
94
|
+
key: a.facebookPageId,
|
|
95
|
+
page: a,
|
|
96
|
+
expanded: e(m) === a.facebookPageId,
|
|
97
|
+
"available-locations": p(a),
|
|
98
|
+
onToggleExpand: (b) => F(a.facebookPageId),
|
|
99
|
+
onToggleLocation: (b) => c(a.facebookPageId, b)
|
|
100
|
+
}, null, 8, ["page", "expanded", "available-locations", "onToggleExpand", "onToggleLocation"]))), 128))
|
|
101
|
+
]));
|
|
102
|
+
}
|
|
103
|
+
}), X = { class: "flex flex-col min-h-full gap-16 p-24" }, Y = {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
106
|
+
}, Z = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ee = {
|
|
107
|
+
key: 1,
|
|
108
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
109
|
+
}, oe = { class: "fm-typo-en-body-lg-600" }, te = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ne = {
|
|
110
|
+
key: 2,
|
|
111
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
112
|
+
}, ae = { class: "fm-typo-en-body-lg-600" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ce = { class: "fm-typo-en-body-lg-600" }, le = { class: "flex gap-8 justify-end mt-auto pt-8" }, ve = /* @__PURE__ */ C({
|
|
113
|
+
__name: "ReviewFacebookCallback",
|
|
114
|
+
setup(s) {
|
|
115
|
+
const { t: n } = R(), _ = G();
|
|
116
|
+
function f() {
|
|
117
|
+
return _.replace({ name: D["$connect-REVIEW_SETTINGS"] });
|
|
118
|
+
}
|
|
119
|
+
const i = P([]), m = P(!1), w = P(!1), p = P(!1), c = P(null), F = M(
|
|
120
|
+
() => i.value.some((o) => o.locationIds.length > 0)
|
|
121
|
+
);
|
|
122
|
+
function r(o, t) {
|
|
123
|
+
const k = new Map(
|
|
124
|
+
t.map((d) => [d.facebookPageId, d])
|
|
125
|
+
);
|
|
126
|
+
return o.map((d) => {
|
|
127
|
+
var x;
|
|
128
|
+
return {
|
|
129
|
+
...d,
|
|
130
|
+
locationIds: ((x = k.get(d.facebookPageId)) == null ? void 0 : x.locationIds) ?? []
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function v(o, t) {
|
|
135
|
+
return o instanceof Error ? o.message : t;
|
|
136
|
+
}
|
|
137
|
+
async function a() {
|
|
138
|
+
var d;
|
|
139
|
+
const o = window.location.hash;
|
|
140
|
+
if (!o) {
|
|
141
|
+
c.value = n("connect.review.noToken");
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const k = new URLSearchParams(o.slice(1)).get("access_token");
|
|
145
|
+
if (!k) {
|
|
146
|
+
c.value = n("connect.review.noToken");
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
m.value = !0;
|
|
150
|
+
try {
|
|
151
|
+
const x = await L.getSource(), N = ((d = x == null ? void 0 : x.facebook) == null ? void 0 : d.pages) ?? [], E = await L.connectFacebook(k);
|
|
152
|
+
i.value = r((E == null ? void 0 : E.pages) ?? [], N), i.value.length === 0 && (c.value = n("connect.review.facebook.noPages"));
|
|
153
|
+
} catch (x) {
|
|
154
|
+
c.value = v(x, n("connect.review.facebook.failed"));
|
|
155
|
+
} finally {
|
|
156
|
+
m.value = !1;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
async function b() {
|
|
160
|
+
const o = i.value.filter((t) => t.locationIds.length > 0).map((t) => ({
|
|
161
|
+
facebookPageId: t.facebookPageId,
|
|
162
|
+
locationIds: t.locationIds
|
|
163
|
+
}));
|
|
164
|
+
if (o.length === 0) {
|
|
165
|
+
c.value = n("connect.review.noMappings");
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
w.value = !0;
|
|
169
|
+
try {
|
|
170
|
+
await L.updateFacebookPages(o), p.value = !0, setTimeout(f, 2e3);
|
|
171
|
+
} catch (t) {
|
|
172
|
+
c.value = v(t, n("connect.review.facebook.failed"));
|
|
173
|
+
} finally {
|
|
174
|
+
w.value = !1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return B(a), (o, t) => {
|
|
178
|
+
const k = z("FmPageHead");
|
|
179
|
+
return l(), g($, null, [
|
|
180
|
+
y(k, {
|
|
181
|
+
title: e(n)("connect.navigation.review")
|
|
182
|
+
}, null, 8, ["title"]),
|
|
183
|
+
u("div", X, [
|
|
184
|
+
e(m) ? (l(), g("div", Y, [
|
|
185
|
+
y(e(I).FmIcon, {
|
|
186
|
+
name: "sync",
|
|
187
|
+
size: "xl",
|
|
188
|
+
class: "animate-spin text-fm-color-neutral-gray-400"
|
|
189
|
+
}),
|
|
190
|
+
u("p", Z, h(e(n)("connect.review.facebook.fetching")), 1)
|
|
191
|
+
])) : e(p) ? (l(), g("div", ee, [
|
|
192
|
+
y(e(I).FmIcon, {
|
|
193
|
+
name: "check_circle",
|
|
194
|
+
size: "xl",
|
|
195
|
+
class: "text-fm-color-typo-success"
|
|
196
|
+
}),
|
|
197
|
+
u("p", oe, h(e(n)("connect.review.facebook.success")), 1),
|
|
198
|
+
u("p", te, h(e(n)("connect.review.redirecting")), 1)
|
|
199
|
+
])) : e(c) ? (l(), g("div", ne, [
|
|
200
|
+
y(e(I).FmIcon, {
|
|
201
|
+
name: "error",
|
|
202
|
+
size: "xl",
|
|
203
|
+
class: "text-fm-color-system-error-500"
|
|
204
|
+
}),
|
|
205
|
+
u("p", ae, h(e(n)("connect.review.errorTitle")), 1),
|
|
206
|
+
u("p", se, h(e(c)), 1),
|
|
207
|
+
y(e(I).FmButton, {
|
|
208
|
+
label: e(n)("connect.review.goBack"),
|
|
209
|
+
onClick: t[0] || (t[0] = (d) => f())
|
|
210
|
+
}, null, 8, ["label"])
|
|
211
|
+
])) : e(i).length > 0 ? (l(), g($, { key: 3 }, [
|
|
212
|
+
u("p", ce, h(e(n)("connect.review.facebook.selectPage")), 1),
|
|
213
|
+
y(Q, {
|
|
214
|
+
pages: e(i),
|
|
215
|
+
"onUpdate:pages": t[1] || (t[1] = (d) => V(i) ? i.value = d : null)
|
|
216
|
+
}, null, 8, ["pages"]),
|
|
217
|
+
u("div", le, [
|
|
218
|
+
y(e(I).FmButton, {
|
|
219
|
+
variant: "outlined",
|
|
220
|
+
label: e(n)("connect.review.cancel"),
|
|
221
|
+
onClick: t[2] || (t[2] = (d) => f())
|
|
222
|
+
}, null, 8, ["label"]),
|
|
223
|
+
y(e(I).FmButton, {
|
|
224
|
+
label: e(n)("connect.review.connect"),
|
|
225
|
+
disabled: !e(F),
|
|
226
|
+
loading: e(w),
|
|
227
|
+
onClick: b
|
|
228
|
+
}, null, 8, ["label", "disabled", "loading"])
|
|
229
|
+
])
|
|
230
|
+
], 64)) : S("", !0)
|
|
231
|
+
])
|
|
232
|
+
], 64);
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
export {
|
|
237
|
+
ve as default
|
|
238
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as E, onMounted as T, ref as w, computed as B, openBlock as d, createElementBlock as p, Fragment as F, renderList as j, normalizeClass as z, unref as e, createElementVNode as m, createVNode as u, toDisplayString as y, createCommentVNode as S, createBlock as P, resolveComponent as U, isRef as V } from "vue";
|
|
2
|
-
import { u as A } from "./vue-i18n-
|
|
2
|
+
import { u as A } from "./vue-i18n-Cze706-f.js";
|
|
3
3
|
import { components as v } from "@feedmepos/ui-library";
|
|
4
|
-
import { r as C } from "./index-
|
|
5
|
-
import { u as H } from "./business-
|
|
6
|
-
import { _ as D } from "./LocationPicker.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { R as O } from "./app-
|
|
4
|
+
import { r as C } from "./index-DT3S00_Y.js";
|
|
5
|
+
import { u as H } from "./business-Ce8vq3wQ.js";
|
|
6
|
+
import { _ as D } from "./LocationPicker.vue_vue_type_script_setup_true_lang-B3Br4Xvi.js";
|
|
7
|
+
import { R as O } from "./app-DdNKsn2Q.js";
|
|
8
8
|
import { useRouter as W } from "vue-router";
|
|
9
9
|
const q = { class: "flex flex-col gap-8" }, J = ["onClick"], K = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, Q = {
|
|
10
10
|
key: 0,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as X, ref as x, computed as H, resolveComponent as w, openBlock as b, createBlock as h, unref as t, isRef as Z, withCtx as A, createElementVNode as f, createVNode as d, createCommentVNode as k, createElementBlock as M, Fragment as Y, h as
|
|
1
|
+
import { defineComponent as X, ref as x, computed as H, resolveComponent as w, openBlock as b, createBlock as h, unref as t, isRef as Z, withCtx as A, createElementVNode as f, createVNode as d, createCommentVNode as k, createElementBlock as M, Fragment as Y, h as _, onMounted as q, toDisplayString as B } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as Q, components as L } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as G } from "./loading-
|
|
5
|
-
import { u as J, C as ee } from "./membership-
|
|
6
|
-
import { f as j, p as te } from "./plugins-
|
|
7
|
-
import { u as oe } from "./vue-i18n-
|
|
4
|
+
import { u as G } from "./loading-BvHm1m3K.js";
|
|
5
|
+
import { u as J, C as ee } from "./membership-D-pZS634.js";
|
|
6
|
+
import { f as j, p as te } from "./plugins-DQNOWwRC.js";
|
|
7
|
+
import { u as oe } from "./vue-i18n-Cze706-f.js";
|
|
8
8
|
import { c as ae } from "./object-BYyQ0PZp.js";
|
|
9
|
-
import { Z as F } from "./zod-
|
|
10
|
-
import "./index-
|
|
11
|
-
import { a as N } from "./index-
|
|
9
|
+
import { Z as F } from "./zod-Aj-GuVQL.js";
|
|
10
|
+
import "./index-CPODug8b.js";
|
|
11
|
+
import { a as N } from "./index-D4d3l0gw.js";
|
|
12
12
|
import { useCoreStore as le } from "@feedmepos/mf-common";
|
|
13
|
-
import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import {
|
|
13
|
+
import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-HKxivQMF.js";
|
|
14
|
+
import { b as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-C3J0rCTt.js";
|
|
15
15
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
16
|
-
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { i as de } from "./helper-
|
|
18
|
-
import { u as pe, r as P } from "./reward-
|
|
19
|
-
import "./index-
|
|
20
|
-
import { C as ce } from "./campaign.fn-
|
|
21
|
-
import { e as me } from "./effect-
|
|
16
|
+
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-8d290Dcp.js";
|
|
17
|
+
import { i as de } from "./helper-CEiv7SaO.js";
|
|
18
|
+
import { u as pe, r as P } from "./reward-BK150pjm.js";
|
|
19
|
+
import "./index-B8meeQoD.js";
|
|
20
|
+
import { C as ce } from "./campaign.fn-B4g03h0A.js";
|
|
21
|
+
import { e as me } from "./effect-Dx3zfl28.js";
|
|
22
22
|
import { useRouter as ue } from "vue-router";
|
|
23
|
-
import { R as ye } from "./app-
|
|
23
|
+
import { R as ye } from "./app-DdNKsn2Q.js";
|
|
24
24
|
const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ X({
|
|
25
25
|
__name: "EditRewardSheet",
|
|
26
26
|
emits: ["update"],
|
|
@@ -39,7 +39,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
39
39
|
const l = R.value.safeParse(a.value);
|
|
40
40
|
return l.success ? [] : l.error.errors;
|
|
41
41
|
});
|
|
42
|
-
function
|
|
42
|
+
function O(l, e) {
|
|
43
43
|
l && (y.value = void 0, a.value = e), v.value = l;
|
|
44
44
|
}
|
|
45
45
|
const D = I;
|
|
@@ -93,7 +93,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
93
93
|
}
|
|
94
94
|
const V = x();
|
|
95
95
|
return n({
|
|
96
|
-
showSheet:
|
|
96
|
+
showSheet: O
|
|
97
97
|
}), (l, e) => {
|
|
98
98
|
const o = w("FmSelect"), i = w("FmForm"), m = w("FmButton"), g = w("FmSideSheet");
|
|
99
99
|
return b(), h(g, {
|
|
@@ -224,7 +224,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
224
224
|
}, p = J(), C = pe(), { global: v, minor: a } = G, y = ue(), R = Q(), u = x({
|
|
225
225
|
searchKey: "",
|
|
226
226
|
columnFilters: []
|
|
227
|
-
}),
|
|
227
|
+
}), O = H(() => C.rewards);
|
|
228
228
|
function D(e) {
|
|
229
229
|
y.push({
|
|
230
230
|
name: ye["$connect-STORE_REWARD_COLLECTIONS"],
|
|
@@ -260,8 +260,8 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
260
260
|
{
|
|
261
261
|
header: n("connect.storeRewards.table.actions"),
|
|
262
262
|
cell(e) {
|
|
263
|
-
return
|
|
264
|
-
|
|
263
|
+
return _("div", { class: "flex items-center justify-end gap-4" }, [
|
|
264
|
+
_(
|
|
265
265
|
L.FmMenu,
|
|
266
266
|
{
|
|
267
267
|
placement: "bottom-end",
|
|
@@ -270,13 +270,13 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
|
-
"menu-button": () =>
|
|
273
|
+
"menu-button": () => _(L.FmButton, {
|
|
274
274
|
icon: "more_vert",
|
|
275
275
|
iconColor: "neutral-gray-400",
|
|
276
276
|
variant: "tertiary"
|
|
277
277
|
}),
|
|
278
278
|
default: () => [
|
|
279
|
-
e.row.original.option.type === "VOUCHER" &&
|
|
279
|
+
e.row.original.option.type === "VOUCHER" && _(L.FmMenuItem, {
|
|
280
280
|
label: "View collections",
|
|
281
281
|
onClick: async (o) => {
|
|
282
282
|
o.stopPropagation(), D(
|
|
@@ -284,7 +284,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
}),
|
|
287
|
-
|
|
287
|
+
_(
|
|
288
288
|
L.FmMenuItem,
|
|
289
289
|
{
|
|
290
290
|
onClick: async (o) => {
|
|
@@ -292,7 +292,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
|
-
label:
|
|
295
|
+
label: _(
|
|
296
296
|
"div",
|
|
297
297
|
{
|
|
298
298
|
class: "text-fm-color-typo-error fm-typo-en-body-md-400"
|
|
@@ -385,7 +385,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
385
385
|
})
|
|
386
386
|
}, null, 8, ["title", "actions"]),
|
|
387
387
|
f("div", ve, [
|
|
388
|
-
t(
|
|
388
|
+
t(O) && t(O).length > 0 ? (b(), M(Y, { key: 0 }, [
|
|
389
389
|
f("div", ge, [
|
|
390
390
|
o[6] || (o[6] = f("div", { class: "flex gap-8" }, null, -1)),
|
|
391
391
|
d(m, {
|
|
@@ -397,12 +397,12 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
397
397
|
}, null, 8, ["modelValue"])
|
|
398
398
|
]),
|
|
399
399
|
d(g, {
|
|
400
|
-
"row-data": t(
|
|
400
|
+
"row-data": t(O),
|
|
401
401
|
"column-defs": S,
|
|
402
402
|
"search-value": t(u).searchKey,
|
|
403
403
|
"column-filter": t(u).columnFilters,
|
|
404
404
|
onRowClick: o[3] || (o[3] = (c) => V(c.original)),
|
|
405
|
-
"hide-footer": t(
|
|
405
|
+
"hide-footer": t(O).length < 10
|
|
406
406
|
}, null, 8, ["row-data", "search-value", "column-filter", "hide-footer"])
|
|
407
407
|
], 64)) : (b(), h(E, {
|
|
408
408
|
key: 1,
|