@feedmepos/mf-connect 0.1.38-beta.89 → 0.1.38-beta.91
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/{Analytic-CsG9NLqu.js → Analytic-Drbkm5By.js} +13 -13
- package/dist/{App-COmG9c9h.js → App-C0cdcG5i.js} +7 -7
- package/dist/{AuditLogs-BpLMFIFm.js → AuditLogs-BZZLtf2u.js} +447 -426
- package/dist/{Bin-D8UANTaY.js → Bin-DRV5lRmj.js} +8 -8
- package/dist/{Broadcast-YANdySLA.js → Broadcast-C90FN2LB.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_PYJUgK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CsdxwjCn.js} +6 -6
- package/dist/{Card-CFjTQd0w.js → Card-CWF84A1O.js} +18 -18
- package/dist/{Collections-DNgMSfQd.js → Collections-ja0gMaFf.js} +7 -7
- package/dist/{Credit-aSZiOjW_.js → Credit-D8U2AJgq.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CJ_pl5jr.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-YR62BvBG.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BOJMX-UH.js → EffectSheet.vue_vue_type_style_index_0_lang-BVbhDMqH.js} +6 -6
- package/dist/{Experience-jw1zj7aH.js → Experience-DDXLGizu.js} +9 -9
- package/dist/{FileSaver.min-pKmTYLZZ.js → FileSaver.min-Dng61jiL.js} +1 -1
- package/dist/{Game-Bh62IMOL.js → Game-CMOilzsW.js} +10 -10
- package/dist/{Grab-C_J0334x.js → Grab-tPVQB39R.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CYYeZele.js → ImageInput.vue_vue_type_script_setup_true_lang-BbtEXO4b.js} +1 -1
- package/dist/{Index-__x_ms9q.js → Index-Ch7wiShF.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CVzIVSMy.js → LocationPicker.vue_vue_type_script_setup_true_lang-DLO0jj6Z.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CRrKuuP8.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CplyhUFF.js} +1 -1
- package/dist/{MainLayout-CtYL_6Vf.js → MainLayout-BMqnfxHh.js} +1 -1
- package/dist/Marketing-C0weDg-u.js +236 -0
- package/dist/{MarketingMaterialEdit-WsOG7HXj.js → MarketingMaterialEdit-BD-SyXVQ.js} +528 -519
- package/dist/{Member-Cob99DO3.js → Member-Bpf0amjr.js} +11 -11
- package/dist/{MemberList-BuomeeP_.js → MemberList-cWYPEpL4.js} +26 -26
- package/dist/{MemberTransactions-cvfANJW6.js → MemberTransactions-vzRUVwpO.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BycRokXP.js → MessageInput.vue_vue_type_script_setup_true_lang-DY3L9CvB.js} +9 -9
- package/dist/{Mission-DZsInX4t.js → Mission-HRwIp1QY.js} +10 -10
- package/dist/{Overview-CMkjQq45.js → Overview-D9cfX4Kr.js} +18 -18
- package/dist/{Point-CqxZYMVM.js → Point-Dz-Z0_m9.js} +9 -9
- package/dist/{Promotion-BSKAiScm.js → Promotion-Csb0bdI6.js} +10 -10
- package/dist/{Queue-CJx1hgoW.js → Queue-CAVKh9bK.js} +10 -10
- package/dist/{Record-DTv02I-b.js → Record-bPnIoHnT.js} +9 -9
- package/dist/{Review-C69KLQ7M.js → Review-D2DfvLqJ.js} +4 -4
- package/dist/{ReviewFacebookCallback-D9kzBhPx.js → ReviewFacebookCallback-CI7V3xbp.js} +4 -4
- package/dist/{ReviewGoogleCallback-D2u-7qgc.js → ReviewGoogleCallback-LA2S8FLZ.js} +4 -4
- package/dist/{Reward-Df-BKcXq.js → Reward-DdHF5Pr7.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-pcfts2Rb.js → RewardGroup.vue_vue_type_script_setup_true_lang-DyZhWnI4.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DW-HsYHC.js → RuleGroup.vue_vue_type_script_setup_true_lang-B0OSLJVN.js} +14 -14
- package/dist/{Segment-BDWagub3.js → Segment-DV1zcWF7.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DL10kauA.js → SelectItems.vue_vue_type_script_setup_true_lang-Df1HE9sL.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-l4rDBv3C.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C0K9giqI.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DLN9_TIZ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CzJL8Xl0.js} +4 -4
- package/dist/{Setting-ktSYDut4.js → Setting-DZiZy8A5.js} +14 -14
- package/dist/{SettingAdvertisements-CTPBt-eE.js → SettingAdvertisements-Bb9shWVJ.js} +12 -12
- package/dist/{Store-CLFdcs8z.js → Store-mymtMyho.js} +21 -21
- package/dist/{StoreRewards-BTC68uTN.js → StoreRewards-jcjZfSv7.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-ClWUTo38.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B-b5_TFL.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CiWjHKPA.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-sCa1J_hq.js} +2 -2
- package/dist/{Tier-DxEn_ZIV.js → Tier-Ba6aHC3R.js} +23 -23
- package/dist/{Title-DuWhWfu3.js → Title-C4uKD8E1.js} +20 -20
- package/dist/{Transaction-DegFh5m3.js → Transaction-Bf2uG6co.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CFplRF-A.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C3ttU-bw.js} +6 -6
- package/dist/{Voucher-Bqeps2oo.js → Voucher-Lsc2pKCk.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BD1_rRs8.js → VoucherEditor.vue_vue_type_script_setup_true_lang-MA7tsTm-.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B1F5UhvF.js → ZodTextField.vue_vue_type_script_setup_true_lang-DEDavbCx.js} +2 -2
- package/dist/{app-Cvd6sHzQ.js → app-BRrGcz9U.js} +7114 -6926
- package/dist/app.js +1 -1
- package/dist/{business-Bzy9sBLW.js → business-TBSvPv65.js} +1 -1
- package/dist/{campaign-ClVYSdGO.js → campaign-CL95CZkI.js} +1 -1
- package/dist/{campaign-DVJJyoHX.js → campaign-DxcuYXB7.js} +8 -8
- package/dist/{campaign.enum-Cm2zA3do.js → campaign.enum-DRydaoy9.js} +1 -1
- package/dist/{campaign.fn-J47JvRY7.js → campaign.fn-BsoUwQ5N.js} +218 -218
- package/dist/{collectible.enum-DHgC28SA.js → collectible.enum-CpTbpumt.js} +1 -1
- package/dist/{collection.fn-QJN27Q79.js → collection.fn-BNrPdDIr.js} +2 -2
- package/dist/{dto-B0lFRE-8.js → dto-BGrkIVqX.js} +4 -4
- package/dist/{duplicateCampaign-yfxkpFR9.js → duplicateCampaign-DBaFROXd.js} +2 -2
- package/dist/{effect-ChSeIPFy.js → effect-fonU-1xO.js} +1 -1
- package/dist/{email-addresses-D3D5ap8V.js → email-addresses-WeV5Gvxa.js} +2 -2
- package/dist/{export--pl6TkFY.js → export-DDXf8yf_.js} +3 -3
- package/dist/{helper-BtNVAL70.js → helper-DwnzJKxo.js} +1 -1
- package/dist/{index-bqzuFwsR.js → index-10x-WMiS.js} +3 -3
- package/dist/{index-C9YvAxHk.js → index-9Wt89ReU.js} +4 -4
- package/dist/{index-i6KMmKQV.js → index-Brh5FXQ7.js} +3 -3
- package/dist/{index-C91wJ0yQ.js → index-BxxNZQUc.js} +3 -3
- package/dist/{index-C2bDavys.js → index-CDAMmPIn.js} +1 -1
- package/dist/{index-Dvv2gStu.js → index-Cg1vzNzf.js} +6 -6
- package/dist/{index-BmeBuG6P.js → index-Cl7QnFc4.js} +1 -1
- package/dist/{index-CdIg8hjd.js → index-Cvw-xFek.js} +1 -1
- package/dist/{index-CMLOXQ4g.js → index-DCJ_r_e2.js} +1 -1
- package/dist/{index-Bu9_2AVy.js → index-DLG8B-TK.js} +1 -1
- package/dist/{index-1OZ3PLwm.js → index-DWhh_u0L.js} +1 -1
- package/dist/{index-Cev5thsu.js → index-DsQJTvKe.js} +2 -2
- package/dist/{index-Cimg1m66.js → index-oR7xhhIt.js} +1 -1
- package/dist/{index.esm2017-CtVba0vf.js → index.esm2017-CFvohTUs.js} +37 -37
- package/dist/{loading-DBnGqrch.js → loading-DiD8J1Jc.js} +1 -1
- package/dist/{lodash-aHDbnzzq.js → lodash-BJgKlNEt.js} +1 -1
- package/dist/{membership-BaW5t8WT.js → membership-C8HuK9_K.js} +3 -3
- package/dist/{money-uTdqDxLM.js → money-DXl1-c0l.js} +1 -1
- package/dist/{number-DPYoe2JP.js → number-C6RGu6qp.js} +1 -1
- package/dist/{objectid-D9pInJyL.js → objectid-8Boc1xMT.js} +5 -5
- package/dist/{plugins-BotBDOdp.js → plugins-CxBcRdUi.js} +3 -3
- package/dist/{reward-BiVf48o_.js → reward-CEh2CA9Z.js} +1 -1
- package/dist/{rule-cjq440uR.js → rule-DEfU8NOO.js} +3 -3
- package/dist/{rule-builder-CKTfK0hn.js → rule-builder-BZIx2IzX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-DAZOYvjH.js → template-Ba8NxY41.js} +6 -6
- package/dist/{timezone-B0OrfTB6.js → timezone-DUqMvcwo.js} +2 -2
- package/dist/{trigger-D4XlN3B8.js → trigger-KQ-DPHv-.js} +5 -5
- package/dist/useMarketingMaterialActions-DSI7Fpu9.js +96 -0
- package/dist/{usePagination-Cv5uXVmk.js → usePagination-BeTADCIt.js} +1 -1
- package/dist/{user-Cn-Dendr.js → user-DN6_QE2j.js} +1 -1
- package/dist/{vue-i18n-CYIOaS68.js → vue-i18n-B4dOYJz4.js} +513 -513
- package/dist/{xlsx-BAdvKflt.js → xlsx-BDFTkXYe.js} +1 -1
- package/dist/{zod-BrwpVJua.js → zod-B8WJKIxe.js} +1 -1
- package/package.json +2 -2
- package/dist/Marketing-bI8LabJ1.js +0 -236
- package/dist/useMarketingMaterialActions-D-gmMt-_.js +0 -95
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as V, openBlock as r, createBlock as C, resolveDynamicComponent as B, unref as e, ref as E, computed as j, onMounted as P, resolveComponent as d, withCtx as u, createElementVNode as l, createElementBlock as w, createVNode as a, normalizeClass as k, createTextVNode as S, toDisplayString as f, Fragment as L, renderList as N, createCommentVNode as q } from "vue";
|
|
2
|
-
import { u as J } from "./campaign-
|
|
2
|
+
import { u as J } from "./campaign-CL95CZkI.js";
|
|
3
3
|
import { useDialog as M } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as A } from "./index-
|
|
5
|
-
import { _ as G } from "./lodash-
|
|
6
|
-
import { C as H } from "./campaign-
|
|
4
|
+
import { F as A } from "./index-Cg1vzNzf.js";
|
|
5
|
+
import { _ as G } from "./lodash-BJgKlNEt.js";
|
|
6
|
+
import { C as H } from "./campaign-DxcuYXB7.js";
|
|
7
7
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
8
|
-
import { u as Q } from "./vue-i18n-
|
|
9
|
-
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as Q } from "./vue-i18n-B4dOYJz4.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-YR62BvBG.js";
|
|
10
10
|
const U = /* @__PURE__ */ V({
|
|
11
11
|
__name: "CampaignChip",
|
|
12
12
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as q0, c as o0, g as W0 } from "./app-
|
|
1
|
+
import { a as q0, c as o0, g as W0 } from "./app-BRrGcz9U.js";
|
|
2
2
|
import { m as d0 } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { e as n } from "./index-
|
|
3
|
+
import { e as n } from "./index-DsQJTvKe.js";
|
|
4
4
|
var _ = { exports: {} }, j = { exports: {} };
|
|
5
5
|
const R0 = /* @__PURE__ */ q0(d0);
|
|
6
6
|
(function(S) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as c, openBlock as u, createBlock as p, unref as r } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { R as i } from "./rule-builder-
|
|
4
|
-
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { m as e, K as d } from "./index-
|
|
6
|
-
import { i as n } from "./plugins-
|
|
2
|
+
import "./index-BxxNZQUc.js";
|
|
3
|
+
import { R as i } from "./rule-builder-BZIx2IzX.js";
|
|
4
|
+
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-B0OSLJVN.js";
|
|
5
|
+
import { m as e, K as d } from "./index-9Wt89ReU.js";
|
|
6
|
+
import { i as n } from "./plugins-CxBcRdUi.js";
|
|
7
7
|
const L = /* @__PURE__ */ c({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { S as o, g as c, b } from "./index-DsQJTvKe.js";
|
|
2
|
+
import { u as w } from "./vue-i18n-B4dOYJz4.js";
|
|
3
|
+
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
4
|
+
import { c as k } from "./plugins-CxBcRdUi.js";
|
|
5
|
+
const l = (e) => b(`businesses/${e}/marketing-materials`), D = {
|
|
6
|
+
async createMarketingMaterial(e) {
|
|
7
|
+
const a = o.getBusinessId();
|
|
8
|
+
if (!a) throw new Error("Invalid business ID");
|
|
9
|
+
return c(
|
|
10
|
+
await l(a).post("", e)
|
|
11
|
+
);
|
|
12
|
+
},
|
|
13
|
+
async getMarketingMaterial(e) {
|
|
14
|
+
const a = o.getBusinessId();
|
|
15
|
+
if (!a) throw new Error("Invalid business ID");
|
|
16
|
+
return c(
|
|
17
|
+
await l(a).get(`/${e}`)
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
async listMarketingMaterials(e = null, a = 20) {
|
|
21
|
+
const s = o.getBusinessId();
|
|
22
|
+
if (!s) throw new Error("Invalid business ID");
|
|
23
|
+
return c(
|
|
24
|
+
await l(s).get("", {
|
|
25
|
+
params: { ...e ? { cursor: e } : {}, limit: a }
|
|
26
|
+
})
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
async updateMarketingMaterial(e, a) {
|
|
30
|
+
const s = o.getBusinessId();
|
|
31
|
+
if (!s) throw new Error("Invalid business ID");
|
|
32
|
+
return c(
|
|
33
|
+
await l(s).patch(`/${e}`, a)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function E() {
|
|
38
|
+
const { t: e } = w(), a = h();
|
|
39
|
+
async function s(n) {
|
|
40
|
+
if (!(n != null && n.imageUrl)) return;
|
|
41
|
+
const { headline: i, caption: g, imageUrl: r } = n;
|
|
42
|
+
if (!navigator.share) {
|
|
43
|
+
a.open({
|
|
44
|
+
message: e("connect.marketing.actions.webShareNotSupported"),
|
|
45
|
+
type: "error"
|
|
46
|
+
});
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const t = {
|
|
51
|
+
title: i ?? void 0,
|
|
52
|
+
text: g ?? void 0
|
|
53
|
+
};
|
|
54
|
+
if (navigator.canShare)
|
|
55
|
+
try {
|
|
56
|
+
const d = await (await fetch(r, { mode: "cors", cache: "no-store" })).blob(), f = [new File([d], "marketing-material.jpg", {
|
|
57
|
+
type: d.type || "image/jpeg"
|
|
58
|
+
})];
|
|
59
|
+
navigator.canShare({ files: f }) ? t.files = f : t.url = r;
|
|
60
|
+
} catch (u) {
|
|
61
|
+
console.error("Failed to fetch image for sharing:", u), t.url = r;
|
|
62
|
+
}
|
|
63
|
+
else
|
|
64
|
+
t.url = r;
|
|
65
|
+
await navigator.share(t);
|
|
66
|
+
} catch (t) {
|
|
67
|
+
t.name !== "AbortError" && a.open({
|
|
68
|
+
message: e("connect.marketing.actions.failedToShare", { message: t.message }),
|
|
69
|
+
type: "error"
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async function p(n) {
|
|
74
|
+
if (n)
|
|
75
|
+
try {
|
|
76
|
+
const g = await (await fetch(n, { mode: "cors", cache: "no-store" })).blob(), r = URL.createObjectURL(g), t = document.createElement("a");
|
|
77
|
+
t.href = r, t.download = "marketing-material", t.click(), URL.revokeObjectURL(r);
|
|
78
|
+
} catch (i) {
|
|
79
|
+
console.error("Failed to download image:", i), window.open(n, "_blank");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
async function m(n) {
|
|
83
|
+
n && await k(n, {
|
|
84
|
+
successMessage: e("connect.marketing.actions.imageLinkCopied")
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
shareMaterial: s,
|
|
89
|
+
downloadMaterialImage: p,
|
|
90
|
+
copyMaterialLink: m
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
D as m,
|
|
95
|
+
E as u
|
|
96
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, computed as v, ref as w, onMounted as $, watch as M, resolveComponent as D, openBlock as u, createElementBlock as p, createVNode as r, unref as n, createElementVNode as s, createCommentVNode as N, toDisplayString as b } from "vue";
|
|
2
2
|
import { _ as S } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
3
|
-
import { l as E } from "./lodash-
|
|
3
|
+
import { l as E } from "./lodash-BJgKlNEt.js";
|
|
4
4
|
const R = { class: "" }, A = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "w-full flex flex-col gap-16 items-center py-16"
|