@feedmepos/mf-connect 0.1.114-prod → 0.1.115-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -1
- package/dist/{App-DMYXrCc7.js → App-43mZfFAr.js} +700 -654
- package/dist/AuditLogs-BPpdm96t.js +2016 -0
- package/dist/{Bin-CHZolo56.js → Bin-CA7v180Y.js} +8 -8
- package/dist/Broadcast-qmdifF2Y.js +306 -0
- package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-xnrDxqaH.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js} +9 -9
- package/dist/{Card-wRFTJwJ9.js → Card-D8icsk7L.js} +25 -24
- package/dist/{Collections-9G-_9Etz.js → Collections--THcD-E_.js} +197 -185
- package/dist/{Credit-Bl7IDMCU.js → Credit-JrbtVMBp.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js} +32 -32
- package/dist/{Experience-Cs2iViLv.js → Experience-CFeRqBoj.js} +32 -31
- package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CCXIBm58.js} +1 -1
- package/dist/{Game-oXURgzan.js → Game-CPxq6Ex3.js} +19 -18
- package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-D0esVZDp.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js} +7 -7
- package/dist/{Goals-B_xEM7gf.js → Goals-DaKI6uXt.js} +4 -4
- package/dist/Grab-BWzdN_cd.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js} +1 -1
- package/dist/{Index-kuT6W6R_.js → Index-2kENoaZm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js} +1 -1
- package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-CB93Fz8u.js} +15 -15
- package/dist/MainLayout-DwnjGXh6.js +4 -0
- package/dist/{MainLayout-CAERFIms.js → MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js} +5 -4
- package/dist/Marketing-DCco__2F.js +273 -0
- package/dist/MarketingMaterialEdit-BbgFtrYP.js +1037 -0
- package/dist/{Member-B8VZEn9t.js → Member-B--nYyr0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js} +43 -50
- package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-D52Y4RTC.js} +7 -7
- package/dist/{MemberList-Hw_xQY1i.js → MemberList-13Owa1fj.js} +103 -105
- package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-CpXEWNbq.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js} +4228 -4176
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js} +1 -1
- package/dist/{Mission-DpYei3aF.js → Mission-Ci-UzXSu.js} +22 -21
- package/dist/{Overview-CARquJCS.js → Overview-CKxSfAGF.js} +145 -144
- package/dist/{Overview-BFQMmyT6.js → Overview-CXen9Ram.js} +23 -22
- package/dist/{Point-Dd2ykwNv.js → Point-CR3YOaag.js} +22 -21
- package/dist/{Promotion-DXl-W7np.js → Promotion-tw3J4ul-.js} +137 -131
- package/dist/{Queue-Cd3N-4iB.js → Queue-BZGA5ZXt.js} +47 -46
- package/dist/{Record-C3HdDsh5.js → Record-BTevVXnT.js} +9 -9
- package/dist/{Review-Bif3Ub9Z.js → Review-BU7c8ZF0.js} +2 -2
- package/dist/ReviewFacebookCallback-BnMF6Arh.js +225 -0
- package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-xpdPHSdg.js} +5 -5
- package/dist/{Reward-DHxzrR_7.js → Reward-jlA_7cxz.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +1923 -0
- package/dist/{Segment-Cjpxordk.js → Segment-C1Bwm--Q.js} +290 -291
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js} +4 -4
- package/dist/Setting-CDM4RhLW.js +574 -0
- package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-4XEAJzlL.js} +12 -12
- package/dist/Settings-D-0tvZRr.js +286 -0
- package/dist/{Store-Bq3kw1l2.js → Store-C56dXtc4.js} +31 -30
- package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DQ1Q6WS6.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +7007 -0
- package/dist/{Tier-CfgpEHY7.js → Tier-D4CPZqw7.js} +2576 -687
- package/dist/{Title-B2itYWeD.js → Title-DCbwhUic.js} +94 -92
- package/dist/{Transaction-hJ5ygIcf.js → Transaction-C5LrasXr.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js} +26 -26
- package/dist/{Voucher-TG47pGR3.js → Voucher-rrVbNZKR.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js} +16 -16
- package/dist/WhatsappAccount-oJDo5zTr.js +159 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +39 -0
- package/dist/WhatsappBot-Cl64wG_F.js +876 -0
- package/dist/WhatsappBotLogs-D3uT4EiB.js +372 -0
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +705 -0
- package/dist/WhatsappLayout-C639d2HP.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js} +2 -2
- package/dist/{app-tPHYkJcQ.js → app-CgimGODl.js} +10610 -8223
- package/dist/app.js +4 -3
- package/dist/{base.export-BHDVnGj2.js → base.export-D2P6HFvo.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-HLyWfrXY.js → business-Bu5TqSA0.js} +1 -1
- package/dist/campaign-BFIXSgdJ.js +400 -0
- package/dist/{campaign-5zFgUNLw.js → campaign-zJxttSIk.js} +31 -25
- package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-gvjlcEfe.js} +78 -78
- package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-DPSgBHnz.js → collection.fn-DOm0HsSh.js} +2 -2
- package/dist/{currency-BVrMqU6-.js → currency-BpbQvbm8.js} +1 -1
- package/dist/duplicateCampaign-CvsvjRE9.js +51 -0
- package/dist/{effect-BBifVx76.js → effect-D-GtNB3n.js} +1 -1
- package/dist/{email-addresses-9C7xHTNv.js → email-addresses-BKMoAtMi.js} +2 -2
- package/dist/feature-flag-BJ_eyKsq.js +868 -0
- package/dist/feature-flag-Bo-k5sIG.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-C08jyQNK.js → helper-CkfjBgMM.js} +1 -1
- package/dist/{index-Dhyqf1s8.js → index-B6kU3PkV.js} +2700 -2613
- package/dist/{index-BgwZGunW.js → index-BAtUrtqM.js} +19 -6
- package/dist/index-BKsxIwbi.js +14571 -0
- package/dist/{index-DZ-q5O-V.js → index-BdEXUNoG.js} +4 -4
- package/dist/{index-hIUtD2eY.js → index-Bhl5IRXy.js} +11 -10
- package/dist/{index-kCbkOivd.js → index-BpTIulTX.js} +1 -1
- package/dist/index-C-iwb2Ln.js +109 -0
- package/dist/{index-Ciw2TZxV.js → index-CCEXSPxk.js} +8 -7
- package/dist/{index-CUle4c2B.js → index-CIej31pF.js} +4 -3
- package/dist/{index-ihw-WFCa.js → index-CQ8XFbBk.js} +2 -2
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-CEe1kJ0T.js → index-CfQuYqXn.js} +1 -1
- package/dist/{index-C_WoO58V.js → index-CuREApMc.js} +8 -7
- package/dist/{index-NJSI4wX4.js → index-D0JK99Ko.js} +693 -231
- package/dist/{index-DnRMNmUA.js → index-DKxN1mMS.js} +396 -232
- package/dist/index-DQ8JJhxs.js +74 -0
- package/dist/{index-D24Q28cH.js → index-DUAZOMVJ.js} +1 -1
- package/dist/{index-Yo0tP8KJ.js → index-DqGs6RJG.js} +683 -581
- package/dist/{index-B_334Y_i.js → index-DwU3fsLW.js} +29 -15
- package/dist/{index-hSRM1smQ.js → index-LygS9WsG.js} +8028 -10767
- package/dist/{index-96ZiAKj_.js → index-feCrYhi6.js} +1 -1
- package/dist/{index-Dk-jg0wN.js → index-zTvr2GR4.js} +2 -2
- package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-DZi9IQPS.js} +209 -209
- package/dist/{loading-CVuY4vQ4.js → loading-Brid2wnu.js} +1 -1
- package/dist/{lodash-GFl9_FMH.js → lodash-C1epw3Kv.js} +1 -1
- package/dist/{member-import-CshTzabx.js → member-import-DAIxTIiu.js} +6 -5
- package/dist/{membership-S0KES3Ex.js → membership-BZmljFhF.js} +3 -3
- package/dist/{money-JxdX8ru4.js → money-cLcyGcSZ.js} +1 -1
- package/dist/{number-BRLwa-mB.js → number-C2jPLJr2.js} +1 -1
- package/dist/objectid-C-wocWKI.js +145 -0
- package/dist/{onboarding-BSKYeyP7.js → onboarding-oRfy_g05.js} +25 -25
- package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-BLD6m8HY.js} +2 -2
- package/dist/{plugins-BR_wmMFJ.js → plugins-CUsr9vB0.js} +3 -3
- package/dist/{MarketingMaterialEdit-BvIthCHG.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-CpCGg_W2.js → reward-UOT03odb.js} +1 -1
- package/dist/{rule-Dbg9e8MO.js → rule-BgJnPjkI.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-BZyFhr73.js +188 -0
- package/dist/{timezone-CDVa-xPr.js → timezone-BXA4wq7Y.js} +1 -1
- package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-CQ4fpRt3.js} +2 -2
- package/dist/{trigger-wqGwQfB2.js → trigger-DXJCGT0q.js} +8 -8
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +125 -0
- package/dist/{usePagination-fODgpZZ8.js → usePagination-Pp4okWr8.js} +1 -1
- package/dist/{user-DaLUK1dk.js → user-B3gXcAIy.js} +1 -1
- package/dist/vue-i18n-DWGiC_vs.js +2365 -0
- package/dist/{xlsx-Bl4_Dtrq.js → xlsx-CCaDUTgW.js} +651 -651
- package/dist/{zod-CAzWyVqj.js → zod-CPwjOxvW.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-ByWvxVhW.js +0 -271
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
- package/dist/Marketing-KgcwGErU.js +0 -236
- package/dist/ReviewFacebookCallback-mJF54-9l.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js +0 -1883
- package/dist/Setting-Dl9MelHz.js +0 -2036
- package/dist/Settings-DvCCClIP.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js +0 -142
- package/dist/campaign-awCRccgX.js +0 -228
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-CoNJdOx7.js +0 -51
- package/dist/objectid-CEHN25HN.js +0 -145
- package/dist/rule-builder-BEIjxsE0.js +0 -102
- package/dist/template-CS-lExgI.js +0 -236
- package/dist/useMarketingMaterialActions-DC0gIyIZ.js +0 -96
- package/dist/vue-i18n-Dx-KXojZ.js +0 -2365
|
@@ -1,39 +1,40 @@
|
|
|
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 q, Fragment as G, createVNode as m, unref as o, createElementVNode as g } from "vue";
|
|
2
|
+
import { u as O, _ as L } from "./usePagination-Pp4okWr8.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 K, components as
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { u as
|
|
5
|
+
import { c as W } from "./plugins-CUsr9vB0.js";
|
|
6
|
+
import { useDialog as K, components as y } from "@feedmepos/ui-library";
|
|
7
|
+
import "./index-D0JK99Ko.js";
|
|
8
|
+
import "./index-DqGs6RJG.js";
|
|
9
|
+
import "./index-B6kU3PkV.js";
|
|
10
|
+
import "./index-LygS9WsG.js";
|
|
11
|
+
import { n as c, a as d } from "./index-DKxN1mMS.js";
|
|
12
|
+
import "./index-CuREApMc.js";
|
|
13
|
+
import "./index-C-iwb2Ln.js";
|
|
14
|
+
import "./index-CIej31pF.js";
|
|
15
|
+
import { h as b } from "./moment-D7p2TMB-.js";
|
|
16
|
+
import { u as Y } from "./vue-i18n-DWGiC_vs.js";
|
|
17
|
+
import { u as j, v as H, w as J } from "./index.esm2017-DZi9IQPS.js";
|
|
17
18
|
import { useRoute as Q } from "vue-router";
|
|
18
|
-
import { g as
|
|
19
|
+
import { g as $, S as X, u as Z } from "./index-CCEXSPxk.js";
|
|
19
20
|
import { o as ee } from "./objectId-dwaoBfJX.js";
|
|
20
21
|
const te = () => {
|
|
21
22
|
if (!X.getBusinessId()) throw new Error("Invalid business ID");
|
|
22
23
|
return Z("queues");
|
|
23
24
|
}, oe = {
|
|
24
25
|
async readImportMember(p, w) {
|
|
25
|
-
return
|
|
26
|
+
return $(
|
|
26
27
|
await te().get("", {
|
|
27
28
|
params: { ...p, ...w }
|
|
28
29
|
})
|
|
29
30
|
);
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
var ae = { firebase: { apiKey: "
|
|
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" },
|
|
33
|
+
var ae = { 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", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" };
|
|
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" }, Ce = /* @__PURE__ */ h({
|
|
34
35
|
__name: "Queue",
|
|
35
36
|
setup(p) {
|
|
36
|
-
const
|
|
37
|
+
const v = Q().query.type, { t: x } = Y(), E = K(), F = [
|
|
37
38
|
{
|
|
38
39
|
header: "ID",
|
|
39
40
|
accessorKey: "_id",
|
|
@@ -42,13 +43,13 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
42
43
|
},
|
|
43
44
|
cell(t) {
|
|
44
45
|
return n("div", { class: "flex items-center" }, [
|
|
45
|
-
n(
|
|
46
|
+
n(y.FmIcon, {
|
|
46
47
|
name: "content_copy",
|
|
47
48
|
outline: !0,
|
|
48
49
|
size: "sm",
|
|
49
50
|
class: "cursor-pointer mr-4",
|
|
50
51
|
onClick: (e) => {
|
|
51
|
-
e.preventDefault(), e.stopPropagation(),
|
|
52
|
+
e.preventDefault(), e.stopPropagation(), W(t.row.original._id.toString());
|
|
52
53
|
}
|
|
53
54
|
}),
|
|
54
55
|
n(
|
|
@@ -73,10 +74,10 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
73
74
|
},
|
|
74
75
|
cell(t) {
|
|
75
76
|
const e = t.row.original.status;
|
|
76
|
-
return n(
|
|
77
|
+
return n(y.FmChip, {
|
|
77
78
|
label: e ? u.title(e) : "-",
|
|
78
79
|
compact: !0,
|
|
79
|
-
class:
|
|
80
|
+
class: C(e)
|
|
80
81
|
});
|
|
81
82
|
},
|
|
82
83
|
enableSorting: !1
|
|
@@ -88,7 +89,7 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
header: "Created at",
|
|
91
|
-
accessorFn: (t) =>
|
|
92
|
+
accessorFn: (t) => b(ee(t._id.toString())).format("D MMM YYYY, hh:mmA"),
|
|
92
93
|
enableSorting: !0
|
|
93
94
|
},
|
|
94
95
|
{
|
|
@@ -113,18 +114,18 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
113
114
|
{
|
|
114
115
|
header: "Failed reason",
|
|
115
116
|
cell(t) {
|
|
116
|
-
return n(
|
|
117
|
+
return n(y.FmButton, {
|
|
117
118
|
icon: "visibility",
|
|
118
119
|
variant: "tertiary",
|
|
119
120
|
disabled: !t.row.original.failedReason,
|
|
120
121
|
onClick: (e) => {
|
|
121
|
-
e.preventDefault(), e.stopPropagation(),
|
|
122
|
+
e.preventDefault(), e.stopPropagation(), M(t.row.original.failedReason);
|
|
122
123
|
}
|
|
123
124
|
});
|
|
124
125
|
},
|
|
125
126
|
enableSorting: !1
|
|
126
127
|
}
|
|
127
|
-
],
|
|
128
|
+
], C = (t) => {
|
|
128
129
|
switch (t) {
|
|
129
130
|
case c.enum.ACTIVE:
|
|
130
131
|
return "text-fm-color-typo-info bg-fm-color-system-info-100";
|
|
@@ -137,7 +138,7 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
137
138
|
default:
|
|
138
139
|
return "text-fm-color-typo-primary bg-fm-color-system-primary-100";
|
|
139
140
|
}
|
|
140
|
-
},
|
|
141
|
+
}, D = h({
|
|
141
142
|
name: "FailedReasonDialog",
|
|
142
143
|
props: {
|
|
143
144
|
data: {
|
|
@@ -149,27 +150,27 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
149
150
|
return () => n("div", { class: "whitespace-pre-line" }, t.data);
|
|
150
151
|
}
|
|
151
152
|
});
|
|
152
|
-
async function
|
|
153
|
-
|
|
153
|
+
async function M(t) {
|
|
154
|
+
E.open({
|
|
154
155
|
title: "Failed Reason",
|
|
155
156
|
closeButton: !0,
|
|
156
157
|
dismissAway: !0,
|
|
157
|
-
contentComponent:
|
|
158
|
+
contentComponent: D,
|
|
158
159
|
contentComponentProps: {
|
|
159
160
|
data: t
|
|
160
161
|
}
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
164
|
const T = async (t) => {
|
|
164
|
-
const e =
|
|
165
|
-
return await
|
|
166
|
-
},
|
|
167
|
-
type:
|
|
165
|
+
const e = j(void 0, ae.importFilesBucketUrl), r = H(e, t);
|
|
166
|
+
return await J(r);
|
|
167
|
+
}, R = c.options.map((t) => ({ label: u.title(t), value: t })), s = A({
|
|
168
|
+
type: v ?? [
|
|
168
169
|
d.enum.MEMBER_IMPORTED,
|
|
169
170
|
d.enum.SEGMENTATION_IMPORTED
|
|
170
171
|
],
|
|
171
172
|
status: []
|
|
172
|
-
}), { tableMeta: i, rowData:
|
|
173
|
+
}), { tableMeta: i, rowData: P, onSort: k, debouncedFetchData: f } = O(
|
|
173
174
|
async (t) => {
|
|
174
175
|
const e = {
|
|
175
176
|
...s.value
|
|
@@ -178,11 +179,11 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
178
179
|
r.resources.map(async (a) => {
|
|
179
180
|
var _, I;
|
|
180
181
|
const l = (I = (_ = a.context) == null ? void 0 : _.context) == null ? void 0 : I.file;
|
|
181
|
-
if (
|
|
182
|
+
if (b(a.context.emittedAt).diff(b(), "days") < 7 && l)
|
|
182
183
|
try {
|
|
183
184
|
l.downloadUrl = await T(l == null ? void 0 : l.fbFilePath);
|
|
184
|
-
} catch (
|
|
185
|
-
console.log(
|
|
185
|
+
} catch (N) {
|
|
186
|
+
console.log(N);
|
|
186
187
|
}
|
|
187
188
|
})
|
|
188
189
|
), {
|
|
@@ -201,9 +202,9 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
201
202
|
await f();
|
|
202
203
|
}), (t, e) => {
|
|
203
204
|
const r = V("FmPageHead");
|
|
204
|
-
return z(),
|
|
205
|
+
return z(), q(G, null, [
|
|
205
206
|
m(r, {
|
|
206
|
-
title: o(
|
|
207
|
+
title: o(x)("connect.queue.title")
|
|
207
208
|
}, null, 8, ["title"]),
|
|
208
209
|
g("div", re, [
|
|
209
210
|
g("div", ne, [
|
|
@@ -233,15 +234,15 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
233
234
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => o(s).status = a),
|
|
234
235
|
label: "Status: ",
|
|
235
236
|
"show-item-label": !0,
|
|
236
|
-
items: o(
|
|
237
|
+
items: o(R)
|
|
237
238
|
}, null, 8, ["modelValue", "items"])
|
|
238
239
|
])
|
|
239
240
|
]),
|
|
240
|
-
m(
|
|
241
|
+
m(L, {
|
|
241
242
|
loading: o(i).isLoading,
|
|
242
|
-
"row-data": o(
|
|
243
|
+
"row-data": o(P),
|
|
243
244
|
"row-count": o(i).totalRows,
|
|
244
|
-
"column-defs":
|
|
245
|
+
"column-defs": F,
|
|
245
246
|
"page-count": o(i).pageCount,
|
|
246
247
|
"page-index": o(i).pageIndex,
|
|
247
248
|
"page-size": o(i).pageSize,
|
|
@@ -258,5 +259,5 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
258
259
|
}
|
|
259
260
|
});
|
|
260
261
|
export {
|
|
261
|
-
|
|
262
|
+
Ce as default
|
|
262
263
|
};
|
|
@@ -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-Pp4okWr8.js";
|
|
6
|
+
import { g as A } from "./user-B3gXcAIy.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-LygS9WsG.js";
|
|
9
|
+
import { u as j } from "./vue-i18n-DWGiC_vs.js";
|
|
10
|
+
import { u as L } from "./loading-Brid2wnu.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-BpTIulTX.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-BZmljFhF.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-CUsr9vB0.js";
|
|
17
|
+
import { u as V, w as me } from "./xlsx-CCaDUTgW.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-DWGiC_vs.js";
|
|
3
|
+
import { R as r } from "./app-CgimGODl.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,225 @@
|
|
|
1
|
+
import { defineComponent as L, computed as T, openBlock as i, createElementBlock as m, normalizeClass as B, createElementVNode as u, createBlock as P, unref as e, toDisplayString as y, createCommentVNode as F, createVNode as v, onMounted as $, ref as I, Fragment as E, renderList as R, resolveComponent as M, isRef as N } from "vue";
|
|
2
|
+
import { u as C } from "./vue-i18n-DWGiC_vs.js";
|
|
3
|
+
import { components as x } from "@feedmepos/ui-library";
|
|
4
|
+
import { r as S } from "./index-Bhl5IRXy.js";
|
|
5
|
+
import { u as j } from "./business-Bu5TqSA0.js";
|
|
6
|
+
import { _ as U } from "./LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js";
|
|
7
|
+
import { R as z } from "./app-CgimGODl.js";
|
|
8
|
+
import { useRouter as V } from "vue-router";
|
|
9
|
+
const A = ["src"], H = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, D = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-primary-500 shrink-0"
|
|
12
|
+
}, G = /* @__PURE__ */ L({
|
|
13
|
+
__name: "FacebookPageConfig",
|
|
14
|
+
props: {
|
|
15
|
+
page: {},
|
|
16
|
+
expanded: { type: Boolean },
|
|
17
|
+
availableLocations: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["toggleExpand", "toggleLocation"],
|
|
20
|
+
setup(s, { emit: t }) {
|
|
21
|
+
const k = s, f = t, { t: r } = C(), g = T(() => k.page.locationIds);
|
|
22
|
+
return (h, p) => (i(), m("div", {
|
|
23
|
+
class: B([
|
|
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 ? (i(), m("img", {
|
|
33
|
+
key: 0,
|
|
34
|
+
src: s.page.pageProfileImageUrl,
|
|
35
|
+
class: "w-32 h-32 rounded-full shrink-0 object-cover"
|
|
36
|
+
}, null, 8, A)) : (i(), P(e(x).FmIcon, {
|
|
37
|
+
key: 1,
|
|
38
|
+
name: "thumb_up",
|
|
39
|
+
class: "text-fm-color-neutral-gray-400 shrink-0"
|
|
40
|
+
})),
|
|
41
|
+
u("span", H, y(s.page.pageName), 1),
|
|
42
|
+
s.page.locationIds.length > 0 ? (i(), m("span", D, y(e(r)("connect.review.locationsSelected", s.page.locationIds.length)), 1)) : F("", !0),
|
|
43
|
+
v(e(x).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 ? (i(), P(U, {
|
|
49
|
+
key: 0,
|
|
50
|
+
locations: s.availableLocations,
|
|
51
|
+
"selected-ids": e(g),
|
|
52
|
+
onToggle: p[1] || (p[1] = (c) => f("toggleLocation", c))
|
|
53
|
+
}, null, 8, ["locations", "selected-ids"])) : F("", !0)
|
|
54
|
+
], 2));
|
|
55
|
+
}
|
|
56
|
+
}), O = { class: "flex flex-col gap-8" }, W = /* @__PURE__ */ L({
|
|
57
|
+
__name: "FacebookPageLocationMapping",
|
|
58
|
+
props: {
|
|
59
|
+
pages: {}
|
|
60
|
+
},
|
|
61
|
+
emits: ["update:pages"],
|
|
62
|
+
setup(s, { emit: t }) {
|
|
63
|
+
const k = s, f = j();
|
|
64
|
+
$(() => f.readLocations());
|
|
65
|
+
const r = t, g = I(null), h = T(() => {
|
|
66
|
+
const l = /* @__PURE__ */ new Set();
|
|
67
|
+
for (const b of k.pages)
|
|
68
|
+
b.locationIds.forEach((a) => l.add(a));
|
|
69
|
+
return l;
|
|
70
|
+
});
|
|
71
|
+
function p(l) {
|
|
72
|
+
const b = new Set(l.locationIds);
|
|
73
|
+
return f.locations.filter((a) => {
|
|
74
|
+
const n = a._id.toString();
|
|
75
|
+
return !h.value.has(n) || b.has(n);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function c(l, b) {
|
|
79
|
+
const a = b._id.toString(), n = k.pages.map((o) => {
|
|
80
|
+
if (o.facebookPageId !== l) return o;
|
|
81
|
+
const _ = o.locationIds.includes(a);
|
|
82
|
+
return {
|
|
83
|
+
...o,
|
|
84
|
+
locationIds: _ ? o.locationIds.filter((d) => d !== a) : [...o.locationIds, a]
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
r("update:pages", n);
|
|
88
|
+
}
|
|
89
|
+
function w(l) {
|
|
90
|
+
g.value = g.value === l ? null : l;
|
|
91
|
+
}
|
|
92
|
+
return (l, b) => (i(), m("div", O, [
|
|
93
|
+
(i(!0), m(E, null, R(s.pages, (a) => (i(), P(G, {
|
|
94
|
+
key: a.facebookPageId,
|
|
95
|
+
page: a,
|
|
96
|
+
expanded: e(g) === a.facebookPageId,
|
|
97
|
+
"available-locations": p(a),
|
|
98
|
+
onToggleExpand: (n) => w(a.facebookPageId),
|
|
99
|
+
onToggleLocation: (n) => c(a.facebookPageId, n)
|
|
100
|
+
}, null, 8, ["page", "expanded", "available-locations", "onToggleExpand", "onToggleLocation"]))), 128))
|
|
101
|
+
]));
|
|
102
|
+
}
|
|
103
|
+
}), q = { class: "flex flex-col min-h-full gap-16 p-24" }, J = {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
106
|
+
}, K = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, Q = {
|
|
107
|
+
key: 1,
|
|
108
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
109
|
+
}, X = { class: "fm-typo-en-body-lg-600" }, Y = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, Z = {
|
|
110
|
+
key: 2,
|
|
111
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
112
|
+
}, ee = { class: "fm-typo-en-body-lg-600" }, oe = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, te = { class: "fm-typo-en-body-lg-600" }, ne = { class: "flex gap-8 justify-end mt-auto pt-8" }, me = /* @__PURE__ */ L({
|
|
113
|
+
__name: "ReviewFacebookCallback",
|
|
114
|
+
setup(s) {
|
|
115
|
+
const { t } = C(), k = V();
|
|
116
|
+
function f() {
|
|
117
|
+
return k.replace({ name: z["$connect-REVIEW_SETTINGS"] });
|
|
118
|
+
}
|
|
119
|
+
const r = I([]), g = I(!1), h = I(!1), p = I(!1), c = I(null), w = T(
|
|
120
|
+
() => r.value.some((n) => n.locationIds.length > 0)
|
|
121
|
+
);
|
|
122
|
+
function l(n, o) {
|
|
123
|
+
return n instanceof Error ? n.message : o;
|
|
124
|
+
}
|
|
125
|
+
async function b() {
|
|
126
|
+
const n = window.location.hash;
|
|
127
|
+
if (!n) {
|
|
128
|
+
c.value = t("connect.review.noToken");
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const _ = new URLSearchParams(n.slice(1)).get("access_token");
|
|
132
|
+
if (!_) {
|
|
133
|
+
c.value = t("connect.review.noToken");
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
g.value = !0;
|
|
137
|
+
try {
|
|
138
|
+
const d = await S.connectFacebook(_);
|
|
139
|
+
r.value = (d == null ? void 0 : d.pages) ?? [], r.value.length === 0 && (c.value = t("connect.review.facebook.noPages"));
|
|
140
|
+
} catch (d) {
|
|
141
|
+
c.value = l(d, t("connect.review.facebook.failed"));
|
|
142
|
+
} finally {
|
|
143
|
+
g.value = !1;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
async function a() {
|
|
147
|
+
if (!w.value) {
|
|
148
|
+
c.value = t("connect.review.noMappings");
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const n = r.value.map((o) => ({
|
|
152
|
+
facebookPageId: o.facebookPageId,
|
|
153
|
+
locationIds: o.locationIds
|
|
154
|
+
}));
|
|
155
|
+
h.value = !0;
|
|
156
|
+
try {
|
|
157
|
+
await S.updateFacebookPages(n), p.value = !0, setTimeout(f, 2e3);
|
|
158
|
+
} catch (o) {
|
|
159
|
+
c.value = l(o, t("connect.review.facebook.failed"));
|
|
160
|
+
} finally {
|
|
161
|
+
h.value = !1;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return $(b), (n, o) => {
|
|
165
|
+
const _ = M("FmPageHead");
|
|
166
|
+
return i(), m(E, null, [
|
|
167
|
+
v(_, {
|
|
168
|
+
title: e(t)("connect.navigation.review")
|
|
169
|
+
}, null, 8, ["title"]),
|
|
170
|
+
u("div", q, [
|
|
171
|
+
e(g) ? (i(), m("div", J, [
|
|
172
|
+
v(e(x).FmIcon, {
|
|
173
|
+
name: "sync",
|
|
174
|
+
size: "xl",
|
|
175
|
+
class: "animate-spin text-fm-color-neutral-gray-400"
|
|
176
|
+
}),
|
|
177
|
+
u("p", K, y(e(t)("connect.review.facebook.fetching")), 1)
|
|
178
|
+
])) : e(p) ? (i(), m("div", Q, [
|
|
179
|
+
v(e(x).FmIcon, {
|
|
180
|
+
name: "check_circle",
|
|
181
|
+
size: "xl",
|
|
182
|
+
class: "text-fm-color-typo-success"
|
|
183
|
+
}),
|
|
184
|
+
u("p", X, y(e(t)("connect.review.facebook.success")), 1),
|
|
185
|
+
u("p", Y, y(e(t)("connect.review.redirecting")), 1)
|
|
186
|
+
])) : e(c) ? (i(), m("div", Z, [
|
|
187
|
+
v(e(x).FmIcon, {
|
|
188
|
+
name: "error",
|
|
189
|
+
size: "xl",
|
|
190
|
+
class: "text-fm-color-system-error-500"
|
|
191
|
+
}),
|
|
192
|
+
u("p", ee, y(e(t)("connect.review.errorTitle")), 1),
|
|
193
|
+
u("p", oe, y(e(c)), 1),
|
|
194
|
+
v(e(x).FmButton, {
|
|
195
|
+
label: e(t)("connect.review.goBack"),
|
|
196
|
+
onClick: o[0] || (o[0] = (d) => f())
|
|
197
|
+
}, null, 8, ["label"])
|
|
198
|
+
])) : e(r).length > 0 ? (i(), m(E, { key: 3 }, [
|
|
199
|
+
u("p", te, y(e(t)("connect.review.facebook.selectPage")), 1),
|
|
200
|
+
v(W, {
|
|
201
|
+
pages: e(r),
|
|
202
|
+
"onUpdate:pages": o[1] || (o[1] = (d) => N(r) ? r.value = d : null)
|
|
203
|
+
}, null, 8, ["pages"]),
|
|
204
|
+
u("div", ne, [
|
|
205
|
+
v(e(x).FmButton, {
|
|
206
|
+
variant: "secondary",
|
|
207
|
+
label: e(t)("connect.review.cancel"),
|
|
208
|
+
onClick: o[2] || (o[2] = (d) => f())
|
|
209
|
+
}, null, 8, ["label"]),
|
|
210
|
+
v(e(x).FmButton, {
|
|
211
|
+
label: e(t)("connect.review.connect"),
|
|
212
|
+
disabled: !e(w),
|
|
213
|
+
loading: e(h),
|
|
214
|
+
onClick: a
|
|
215
|
+
}, null, 8, ["label", "disabled", "loading"])
|
|
216
|
+
])
|
|
217
|
+
], 64)) : F("", !0)
|
|
218
|
+
])
|
|
219
|
+
], 64);
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
export {
|
|
224
|
+
me as default
|
|
225
|
+
};
|
|
@@ -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-DWGiC_vs.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-Bhl5IRXy.js";
|
|
5
|
+
import { u as H } from "./business-Bu5TqSA0.js";
|
|
6
|
+
import { _ as D } from "./LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js";
|
|
7
|
+
import { R as O } from "./app-CgimGODl.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 O, 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-Brid2wnu.js";
|
|
5
|
+
import { u as J, C as ee } from "./membership-BZmljFhF.js";
|
|
6
|
+
import { f as j, p as te } from "./plugins-CUsr9vB0.js";
|
|
7
|
+
import { u as oe } from "./vue-i18n-DWGiC_vs.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-CPwjOxvW.js";
|
|
10
|
+
import "./index-B6kU3PkV.js";
|
|
11
|
+
import { a as N } from "./index-CuREApMc.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-BIq227nz.js";
|
|
14
|
+
import { _ as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.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-C39_95SZ.js";
|
|
17
|
+
import { i as de } from "./helper-CkfjBgMM.js";
|
|
18
|
+
import { u as pe, r as P } from "./reward-UOT03odb.js";
|
|
19
|
+
import "./index-feCrYhi6.js";
|
|
20
|
+
import { C as ce } from "./campaign.fn-gvjlcEfe.js";
|
|
21
|
+
import { e as me } from "./effect-D-GtNB3n.js";
|
|
22
22
|
import { useRouter as ue } from "vue-router";
|
|
23
|
-
import { R as ye } from "./app-
|
|
23
|
+
import { R as ye } from "./app-CgimGODl.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 _(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: _
|
|
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
|
+
}), _ = 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 O("div", { class: "flex items-center justify-end gap-4" }, [
|
|
264
|
+
O(
|
|
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": () => O(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" && O(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
|
+
O(
|
|
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: O(
|
|
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(_) && t(_).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(_),
|
|
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(_).length < 10
|
|
406
406
|
}, null, 8, ["row-data", "search-value", "column-filter", "hide-footer"])
|
|
407
407
|
], 64)) : (b(), h(E, {
|
|
408
408
|
key: 1,
|