@feedmepos/mf-connect 0.1.38-beta.93 → 0.1.38-beta.95
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-Bp5lZ6_k.js → Analytic-ClNBzH0-.js} +13 -13
- package/dist/{App-BcsVDglV.js → App-BYYCR70G.js} +592 -595
- package/dist/{AuditLogs-DfYOow1-.js → AuditLogs-Do1BqAh6.js} +9 -9
- package/dist/{Bin-DGnx5do-.js → Bin-RjB5lqOt.js} +8 -8
- package/dist/{Broadcast-ONqH0ihp.js → Broadcast-BH87IX67.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4IWIDyDa.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1SgkRkw.js} +6 -6
- package/dist/{Card-Bof-81z3.js → Card-CNe9XUHH.js} +18 -18
- package/dist/{Collections-C8j0wdWi.js → Collections-lSN93UK2.js} +7 -7
- package/dist/{Credit-B5Q7i1bF.js → Credit-BSUutjTN.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C6iL3X0L.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CPefl7VV.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dqwhm19i.js → EffectSheet.vue_vue_type_style_index_0_lang-CzLMbYGB.js} +6 -6
- package/dist/{Experience-QdJZiW26.js → Experience-BSuperA9.js} +9 -9
- package/dist/{FileSaver.min-Cm3-a_Xp.js → FileSaver.min-CKVujfXA.js} +1 -1
- package/dist/{Game-D4kNxIJ3.js → Game-BoQT3LSd.js} +10 -10
- package/dist/{Grab-CT4CjIy7.js → Grab-n13T0fDp.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CBw_LLoE.js → ImageInput.vue_vue_type_script_setup_true_lang-BT3JooLp.js} +1 -1
- package/dist/{Index-BIoXrt4Z.js → Index-BPGZLNlz.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-D1LRQ8Si.js → LocationPicker.vue_vue_type_script_setup_true_lang-D2dEkZzA.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BrF5s682.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BiVIkK5g.js} +1 -1
- package/dist/{MainLayout-DcS1v4ak.js → MainLayout-BKiINcfj.js} +1 -1
- package/dist/{Marketing-DS3qPIwv.js → Marketing-oOyAG5nz.js} +6 -7
- package/dist/{MarketingMaterialEdit-C-0EWGx6.js → MarketingMaterialEdit-C3r4xZgn.js} +14 -15
- package/dist/{Member-BOJAFGPR.js → Member-CLZfAfxb.js} +11 -11
- package/dist/{MemberList-dUxFPHio.js → MemberList-CENSraOX.js} +26 -26
- package/dist/{MemberTransactions-ee61cNzV.js → MemberTransactions-C4m1Bcu1.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Du_KNDh5.js → MessageInput.vue_vue_type_script_setup_true_lang-Ee_1wJHS.js} +9 -9
- package/dist/{Mission-DMHYlnLY.js → Mission-mmhMMp1t.js} +10 -10
- package/dist/{Overview-BuVG9BS5.js → Overview-CrKRNsaV.js} +18 -18
- package/dist/{Point-BoJLHZxT.js → Point-QA8jBWSa.js} +9 -9
- package/dist/{Promotion-kSp4RRhf.js → Promotion-Co6zYVHq.js} +10 -10
- package/dist/{Queue-HhrSlM6I.js → Queue-D7Pkm_4s.js} +10 -10
- package/dist/{Record-BBcRpZjQ.js → Record-L5LLMZHt.js} +9 -9
- package/dist/{Review-DGaSCZt5.js → Review-ClpuFAlW.js} +4 -4
- package/dist/{ReviewFacebookCallback-DOs4zOmv.js → ReviewFacebookCallback-DnCmYy9S.js} +4 -4
- package/dist/{ReviewGoogleCallback-B3_gwwaW.js → ReviewGoogleCallback-D6lS5jn7.js} +4 -4
- package/dist/{Reward-DyF0j31a.js → Reward-BpgKE6dk.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CgIomdp9.js → RewardGroup.vue_vue_type_script_setup_true_lang-DUFAlWir.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DyrVgGng.js → RuleGroup.vue_vue_type_script_setup_true_lang-BkytXNO2.js} +14 -14
- package/dist/{Segment-BfndrU2a.js → Segment-COk0MJzr.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DQpvuEWU.js → SelectItems.vue_vue_type_script_setup_true_lang-CSXMhjst.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BhMoi_Zx.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CNOzJqXR.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Devv-WxE.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BXaH_Tt0.js} +4 -4
- package/dist/{Setting-BgonK8gD.js → Setting-DZXUWu6L.js} +14 -14
- package/dist/{SettingAdvertisements-CpqEJk2I.js → SettingAdvertisements-CzfTJ17s.js} +12 -12
- package/dist/{Store-7rJKpC2g.js → Store-B8L1EdOT.js} +21 -21
- package/dist/{StoreRewards-CJGNk7o_.js → StoreRewards-BpJbbbW5.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cak7CK2J.js → StoreTransactions.vue_vue_type_script_setup_true_lang-OMYC8ljy.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BFQFyH4v.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BDNhBCJb.js} +2 -2
- package/dist/{Tier-CgYwJI81.js → Tier-D98VwNdC.js} +23 -23
- package/dist/{Title-CxF-Q_IK.js → Title-DEfQ7NMe.js} +20 -20
- package/dist/{Transaction-XQjlqfTl.js → Transaction-Bd4nS9Ai.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-gCOY_kWR.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BRTYTzNF.js} +6 -6
- package/dist/{Voucher-B0uyE_ib.js → Voucher-CxYWeWGh.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-B1RGI2yt.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BEUr2Qzn.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CkWV0YRp.js → ZodTextField.vue_vue_type_script_setup_true_lang-CoVkJ7jY.js} +2 -2
- package/dist/{app-DqD8T7pT.js → app-BNDMm2kI.js} +51 -51
- package/dist/app.js +1 -1
- package/dist/{business-D2i63v1o.js → business-DCYM-74Q.js} +1 -1
- package/dist/{campaign-477BLVNO.js → campaign-BiaIKz1Q.js} +8 -8
- package/dist/{campaign-Cd658ZBk.js → campaign-YBHBVUng.js} +1 -1
- package/dist/{campaign.enum-DhbnOswX.js → campaign.enum-CBPzeYMr.js} +1 -1
- package/dist/{campaign.fn-oZDvYDoz.js → campaign.fn-Cy_rArfJ.js} +31 -31
- package/dist/{collectible.enum-DqRJwhgd.js → collectible.enum-CeA4YQYM.js} +1 -1
- package/dist/{collection.fn-CkWOO6Ko.js → collection.fn-D45buMNb.js} +2 -2
- package/dist/{dto-sQEIYqth.js → dto-B62ATFpB.js} +4 -4
- package/dist/{duplicateCampaign-_mVQdGwr.js → duplicateCampaign-WImp_6Xs.js} +2 -2
- package/dist/{effect-CDMeVlJJ.js → effect-zMFtElAL.js} +1 -1
- package/dist/{email-addresses-63pX957h.js → email-addresses-D6P9xKPB.js} +2 -2
- package/dist/{export-g5eW1nVW.js → export-CRs_yVhl.js} +3 -3
- package/dist/{helper-VI1zfWX5.js → helper-RhWjQqTm.js} +1 -1
- package/dist/{index-C8fmWpi8.js → index-B7cTB-PJ.js} +3 -3
- package/dist/{index-hWJ0sSFq.js → index-C272QcbD.js} +3 -3
- package/dist/{index-DTG6Cagd.js → index-CgYajQbi.js} +1 -1
- package/dist/{index-CUAX3fnu.js → index-CvlwpTKX.js} +1 -1
- package/dist/{index-BX2JwxFq.js → index-Cy5MFD-0.js} +1 -1
- package/dist/{index-CDk6RSbU.js → index-D6uAAAq3.js} +1 -1
- package/dist/{index-BdMUYZ1O.js → index-DDMoQaSc.js} +1 -1
- package/dist/{index-CaOGrONe.js → index-DeBBhbzk.js} +1 -1
- package/dist/{index-B9s_JmUc.js → index-Dii-DHJ2.js} +4 -4
- package/dist/{index-nHmvttYn.js → index-h1TWWcPC.js} +3 -3
- package/dist/{index-h0AgtipV.js → index-iKdjWDgI.js} +6 -6
- package/dist/{index-DfZ8K-EG.js → index-n5n83HPj.js} +1 -1
- package/dist/{index-aA7p9Bmc.js → index-nPixknUi.js} +2 -2
- package/dist/{index.esm2017-eO62NEBZ.js → index.esm2017-BmcwXC9r.js} +1 -1
- package/dist/{loading-_DRkrv7E.js → loading-DerlV3vs.js} +1 -1
- package/dist/{lodash-LG6xh9-r.js → lodash-BISvQ6OQ.js} +1 -1
- package/dist/{membership-BCXBXaxY.js → membership-B8kRPYWq.js} +3 -3
- package/dist/{money-ByAGKe2o.js → money-DNQGbbvj.js} +1 -1
- package/dist/{number-B_EWaI4q.js → number-I5LWbf8Y.js} +1 -1
- package/dist/{objectid-Dp1jTW2U.js → objectid-p2vFUDoW.js} +5 -5
- package/dist/{plugins-D9hRNFW8.js → plugins-Bv7VdsSc.js} +3 -3
- package/dist/{reward-e1PDRY7T.js → reward-CB7aZjtn.js} +1 -1
- package/dist/{rule-i5gZCWWW.js → rule-DRcXbvy1.js} +3 -3
- package/dist/{rule-builder-CmMVweh6.js → rule-builder-BetO8JaI.js} +1 -1
- package/dist/style.css +1 -10
- package/dist/{template-B_QlVAfx.js → template-ltzns_fo.js} +6 -6
- package/dist/{timezone-9h5hj1Jv.js → timezone-BnsVYcxC.js} +2 -2
- package/dist/{trigger-CUQ4K6Sb.js → trigger-DR8YN2wo.js} +5 -5
- package/dist/useMarketingMaterialActions-3BXMnWw5.js +107 -0
- package/dist/{usePagination-C5orU_gW.js → usePagination-DHUS-0Vw.js} +1 -1
- package/dist/{user-D5Z7BEPt.js → user-BBZDjft2.js} +1 -1
- package/dist/{vue-i18n-CV6ud2LZ.js → vue-i18n-CCYEvHJA.js} +252 -252
- package/dist/{xlsx-BQkNr5NI.js → xlsx-qWbyVF7x.js} +1 -1
- package/dist/{zod-JMRyhOdG.js → zod-C5h1V9iY.js} +1 -1
- package/package.json +2 -2
- package/dist/remy-Qz_pNsUS.js +0 -13
- package/dist/useMarketingMaterialActions-g0y9u1Ez.js +0 -96
|
@@ -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-YBHBVUng.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-iKdjWDgI.js";
|
|
5
|
+
import { _ as G } from "./lodash-BISvQ6OQ.js";
|
|
6
|
+
import { C as H } from "./campaign-BiaIKz1Q.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-CCYEvHJA.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CPefl7VV.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-BNDMm2kI.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-nPixknUi.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-h1TWWcPC.js";
|
|
3
|
+
import { R as i } from "./rule-builder-BetO8JaI.js";
|
|
4
|
+
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BkytXNO2.js";
|
|
5
|
+
import { m as e, K as d } from "./index-Dii-DHJ2.js";
|
|
6
|
+
import { i as n } from "./plugins-Bv7VdsSc.js";
|
|
7
7
|
const L = /* @__PURE__ */ c({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { S as o, g as c, b as w } from "./index-nPixknUi.js";
|
|
2
|
+
import { useAppStore as h, initializeRemyChat as y } from "@feedmepos/mf-remy-panel";
|
|
3
|
+
import { onMounted as k } from "vue";
|
|
4
|
+
import { u as I } from "./vue-i18n-CCYEvHJA.js";
|
|
5
|
+
import { useSnackbar as M } from "@feedmepos/ui-library";
|
|
6
|
+
import { c as v } from "./plugins-Bv7VdsSc.js";
|
|
7
|
+
const l = (e) => w(`businesses/${e}/marketing-materials`), j = {
|
|
8
|
+
async createMarketingMaterial(e) {
|
|
9
|
+
const t = o.getBusinessId();
|
|
10
|
+
if (!t) throw new Error("Invalid business ID");
|
|
11
|
+
return c(
|
|
12
|
+
await l(t).post("", e)
|
|
13
|
+
);
|
|
14
|
+
},
|
|
15
|
+
async getMarketingMaterial(e) {
|
|
16
|
+
const t = o.getBusinessId();
|
|
17
|
+
if (!t) throw new Error("Invalid business ID");
|
|
18
|
+
return c(
|
|
19
|
+
await l(t).get(`/${e}`)
|
|
20
|
+
);
|
|
21
|
+
},
|
|
22
|
+
async listMarketingMaterials(e = null, t = 20) {
|
|
23
|
+
const r = o.getBusinessId();
|
|
24
|
+
if (!r) throw new Error("Invalid business ID");
|
|
25
|
+
return c(
|
|
26
|
+
await l(r).get("", {
|
|
27
|
+
params: { ...e ? { cursor: e } : {}, limit: t }
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
},
|
|
31
|
+
async updateMarketingMaterial(e, t) {
|
|
32
|
+
const r = o.getBusinessId();
|
|
33
|
+
if (!r) throw new Error("Invalid business ID");
|
|
34
|
+
return c(
|
|
35
|
+
await l(r).patch(`/${e}`, t)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
let g = null;
|
|
40
|
+
function B() {
|
|
41
|
+
const e = h();
|
|
42
|
+
async function t() {
|
|
43
|
+
g || (g = y()), await g;
|
|
44
|
+
}
|
|
45
|
+
return k(t), Object.assign(e);
|
|
46
|
+
}
|
|
47
|
+
function F() {
|
|
48
|
+
const { t: e } = I(), t = M();
|
|
49
|
+
async function r(n) {
|
|
50
|
+
if (!(n != null && n.imageUrl)) return;
|
|
51
|
+
const { headline: i, caption: u, imageUrl: s } = n;
|
|
52
|
+
if (!navigator.share) {
|
|
53
|
+
t.open({
|
|
54
|
+
message: e("connect.marketing.actions.webShareNotSupported"),
|
|
55
|
+
type: "error"
|
|
56
|
+
});
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
try {
|
|
60
|
+
const a = {
|
|
61
|
+
title: i ?? void 0,
|
|
62
|
+
text: u ?? void 0
|
|
63
|
+
};
|
|
64
|
+
if (navigator.canShare)
|
|
65
|
+
try {
|
|
66
|
+
const f = await (await fetch(s, { mode: "cors", cache: "no-store" })).blob(), p = [new File([f], "marketing-material.jpg", {
|
|
67
|
+
type: f.type || "image/jpeg"
|
|
68
|
+
})];
|
|
69
|
+
navigator.canShare({ files: p }) ? a.files = p : a.url = s;
|
|
70
|
+
} catch (m) {
|
|
71
|
+
console.error("Failed to fetch image for sharing:", m), a.url = s;
|
|
72
|
+
}
|
|
73
|
+
else
|
|
74
|
+
a.url = s;
|
|
75
|
+
await navigator.share(a);
|
|
76
|
+
} catch (a) {
|
|
77
|
+
a.name !== "AbortError" && t.open({
|
|
78
|
+
message: e("connect.marketing.actions.failedToShare", { message: a.message }),
|
|
79
|
+
type: "error"
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async function d(n) {
|
|
84
|
+
if (n)
|
|
85
|
+
try {
|
|
86
|
+
const u = await (await fetch(n, { mode: "cors", cache: "no-store" })).blob(), s = URL.createObjectURL(u), a = document.createElement("a");
|
|
87
|
+
a.href = s, a.download = "marketing-material", a.click(), URL.revokeObjectURL(s);
|
|
88
|
+
} catch (i) {
|
|
89
|
+
console.error("Failed to download image:", i), window.open(n, "_blank");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async function b(n) {
|
|
93
|
+
n && await v(n, {
|
|
94
|
+
successMessage: e("connect.marketing.actions.imageLinkCopied")
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
shareMaterial: r,
|
|
99
|
+
downloadMaterialImage: d,
|
|
100
|
+
copyMaterialLink: b
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
F as a,
|
|
105
|
+
j as m,
|
|
106
|
+
B as u
|
|
107
|
+
};
|
|
@@ -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-BISvQ6OQ.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"
|