@feedmepos/mf-connect 0.1.38-beta.93 → 0.1.38-beta.94
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-CqvoyDly.js} +13 -13
- package/dist/{App-BcsVDglV.js → App-DPy72nqL.js} +592 -595
- package/dist/{AuditLogs-DfYOow1-.js → AuditLogs-EfyvoZHQ.js} +9 -9
- package/dist/{Bin-DGnx5do-.js → Bin-CMtvK3KF.js} +8 -8
- package/dist/{Broadcast-ONqH0ihp.js → Broadcast-CxmuwQZ0.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4IWIDyDa.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-h2clGCR2.js} +6 -6
- package/dist/{Card-Bof-81z3.js → Card-SalQFh8l.js} +18 -18
- package/dist/{Collections-C8j0wdWi.js → Collections-DZUNnG9S.js} +7 -7
- package/dist/{Credit-B5Q7i1bF.js → Credit-BJRXJk5Y.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C6iL3X0L.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BqKXIKAC.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dqwhm19i.js → EffectSheet.vue_vue_type_style_index_0_lang-B1CHu12d.js} +6 -6
- package/dist/{Experience-QdJZiW26.js → Experience-Daga1Hxh.js} +9 -9
- package/dist/{FileSaver.min-Cm3-a_Xp.js → FileSaver.min-BIJAQv02.js} +1 -1
- package/dist/{Game-D4kNxIJ3.js → Game-CIq8fmpC.js} +10 -10
- package/dist/{Grab-CT4CjIy7.js → Grab-CbCuxPZ_.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CBw_LLoE.js → ImageInput.vue_vue_type_script_setup_true_lang-BJwOszse.js} +1 -1
- package/dist/{Index-BIoXrt4Z.js → Index-B0w6zmiz.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-D1LRQ8Si.js → LocationPicker.vue_vue_type_script_setup_true_lang-CnF54xhU.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BrF5s682.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BECBSkp3.js} +1 -1
- package/dist/{MainLayout-DcS1v4ak.js → MainLayout-Dmu6GcED.js} +1 -1
- package/dist/{Marketing-DS3qPIwv.js → Marketing-D_cLVYyl.js} +6 -7
- package/dist/{MarketingMaterialEdit-C-0EWGx6.js → MarketingMaterialEdit-DhqvYUjN.js} +14 -15
- package/dist/{Member-BOJAFGPR.js → Member-VQoMxVJz.js} +11 -11
- package/dist/{MemberList-dUxFPHio.js → MemberList-wvElWZpi.js} +26 -26
- package/dist/{MemberTransactions-ee61cNzV.js → MemberTransactions-SLmE50Lz.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Du_KNDh5.js → MessageInput.vue_vue_type_script_setup_true_lang--Sx06xLJ.js} +9 -9
- package/dist/{Mission-DMHYlnLY.js → Mission-DrFxGVba.js} +10 -10
- package/dist/{Overview-BuVG9BS5.js → Overview-CepbVHp5.js} +18 -18
- package/dist/{Point-BoJLHZxT.js → Point-B2toiZyR.js} +9 -9
- package/dist/{Promotion-kSp4RRhf.js → Promotion-YxMtus5E.js} +10 -10
- package/dist/{Queue-HhrSlM6I.js → Queue-CLFz6L4o.js} +10 -10
- package/dist/{Record-BBcRpZjQ.js → Record-PmddgHd_.js} +9 -9
- package/dist/{Review-DGaSCZt5.js → Review-D6iAhcun.js} +4 -4
- package/dist/{ReviewFacebookCallback-DOs4zOmv.js → ReviewFacebookCallback-B8n1Lg7N.js} +4 -4
- package/dist/{ReviewGoogleCallback-B3_gwwaW.js → ReviewGoogleCallback-B0PCdXQ2.js} +4 -4
- package/dist/{Reward-DyF0j31a.js → Reward-DwzMcovH.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CgIomdp9.js → RewardGroup.vue_vue_type_script_setup_true_lang-DQLOD23t.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DyrVgGng.js → RuleGroup.vue_vue_type_script_setup_true_lang-vUdirqlz.js} +14 -14
- package/dist/{Segment-BfndrU2a.js → Segment-DXE4ErvT.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DQpvuEWU.js → SelectItems.vue_vue_type_script_setup_true_lang-BBTu9ZDv.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BhMoi_Zx.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6A64Cs_.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Devv-WxE.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B2YE-JF1.js} +4 -4
- package/dist/{Setting-BgonK8gD.js → Setting-BzFPbaMK.js} +14 -14
- package/dist/{SettingAdvertisements-CpqEJk2I.js → SettingAdvertisements-C5lfJOHc.js} +12 -12
- package/dist/{Store-7rJKpC2g.js → Store-9ubSP7i2.js} +21 -21
- package/dist/{StoreRewards-CJGNk7o_.js → StoreRewards-BeKcvd4x.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cak7CK2J.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DuuKlvqu.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BFQFyH4v.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C_KQPFfg.js} +2 -2
- package/dist/{Tier-CgYwJI81.js → Tier-Dn6QFmFz.js} +23 -23
- package/dist/{Title-CxF-Q_IK.js → Title-DjsjAmmo.js} +20 -20
- package/dist/{Transaction-XQjlqfTl.js → Transaction-j69T_jnU.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-gCOY_kWR.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-u0K_N_7n.js} +6 -6
- package/dist/{Voucher-B0uyE_ib.js → Voucher-C8iuuHUB.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-B1RGI2yt.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D2uORhE-.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CkWV0YRp.js → ZodTextField.vue_vue_type_script_setup_true_lang-4CeykyPW.js} +2 -2
- package/dist/{app-DqD8T7pT.js → app-CiPhkfTa.js} +227 -227
- package/dist/app.js +1 -1
- package/dist/{business-D2i63v1o.js → business-DbZr47-M.js} +1 -1
- package/dist/{campaign-Cd658ZBk.js → campaign-B3TxcS8i.js} +1 -1
- package/dist/{campaign-477BLVNO.js → campaign-CZEJm6Df.js} +8 -8
- package/dist/{campaign.enum-DhbnOswX.js → campaign.enum-C85TmsKa.js} +1 -1
- package/dist/{campaign.fn-oZDvYDoz.js → campaign.fn-CEzoUdRF.js} +49 -49
- package/dist/{collectible.enum-DqRJwhgd.js → collectible.enum-CCCBBcl7.js} +1 -1
- package/dist/{collection.fn-CkWOO6Ko.js → collection.fn-DUtEtPB3.js} +2 -2
- package/dist/{dto-sQEIYqth.js → dto-DlzmM1L1.js} +4 -4
- package/dist/{duplicateCampaign-_mVQdGwr.js → duplicateCampaign-OQo8zrAK.js} +2 -2
- package/dist/{effect-CDMeVlJJ.js → effect-Dxlhartf.js} +1 -1
- package/dist/{email-addresses-63pX957h.js → email-addresses-DvYwJiqs.js} +2 -2
- package/dist/{export-g5eW1nVW.js → export-DoWh2do7.js} +3 -3
- package/dist/{helper-VI1zfWX5.js → helper-nbRQAX8c.js} +1 -1
- package/dist/{index-CUAX3fnu.js → index-2BNcX0q7.js} +1 -1
- package/dist/{index-hWJ0sSFq.js → index-6BCLe67S.js} +3 -3
- package/dist/{index-nHmvttYn.js → index-B9i8Mp9s.js} +3 -3
- package/dist/{index-DTG6Cagd.js → index-BDrLdZGR.js} +1 -1
- package/dist/{index-BdMUYZ1O.js → index-B_wWEEtv.js} +1 -1
- package/dist/{index-aA7p9Bmc.js → index-CHPHG0su.js} +2 -2
- package/dist/{index-DfZ8K-EG.js → index-CfY3RfIR.js} +1 -1
- package/dist/{index-C8fmWpi8.js → index-CwZyQRca.js} +3 -3
- package/dist/{index-B9s_JmUc.js → index-D9OUhaR6.js} +4 -4
- package/dist/{index-CaOGrONe.js → index-Dbp4G2Ow.js} +1 -1
- package/dist/{index-CDk6RSbU.js → index-VNBY1DPS.js} +1 -1
- package/dist/{index-h0AgtipV.js → index-tdt2oKrL.js} +6 -6
- package/dist/{index-BX2JwxFq.js → index-uf8-OCbs.js} +1 -1
- package/dist/{index.esm2017-eO62NEBZ.js → index.esm2017-DFSyi73f.js} +1 -1
- package/dist/{loading-_DRkrv7E.js → loading-Bgl6Kdyv.js} +1 -1
- package/dist/{lodash-LG6xh9-r.js → lodash-BBeCTooL.js} +1 -1
- package/dist/{membership-BCXBXaxY.js → membership-DoF-XzA8.js} +3 -3
- package/dist/{money-ByAGKe2o.js → money-BxEc8XuQ.js} +1 -1
- package/dist/{number-B_EWaI4q.js → number-BXxUToPx.js} +1 -1
- package/dist/{objectid-Dp1jTW2U.js → objectid-BaG_7-dd.js} +9 -9
- package/dist/{plugins-D9hRNFW8.js → plugins-CnQ_2wCo.js} +3 -3
- package/dist/{reward-e1PDRY7T.js → reward-BJRhYB_i.js} +1 -1
- package/dist/{rule-i5gZCWWW.js → rule-CHQIMtow.js} +3 -3
- package/dist/{rule-builder-CmMVweh6.js → rule-builder-Dh6Yl7NB.js} +1 -1
- package/dist/style.css +1 -10
- package/dist/{template-B_QlVAfx.js → template-Dzqh9sny.js} +6 -6
- package/dist/{timezone-9h5hj1Jv.js → timezone-raa8H06N.js} +2 -2
- package/dist/{trigger-CUQ4K6Sb.js → trigger-DqTXJT7G.js} +5 -5
- package/dist/useMarketingMaterialActions-DuZVslnQ.js +107 -0
- package/dist/{usePagination-C5orU_gW.js → usePagination-DheXOV9k.js} +1 -1
- package/dist/{user-D5Z7BEPt.js → user-CU_zbdpo.js} +1 -1
- package/dist/{vue-i18n-CV6ud2LZ.js → vue-i18n-dj0t6OGT.js} +248 -248
- package/dist/{xlsx-BQkNr5NI.js → xlsx-A3olJTvH.js} +1 -1
- package/dist/{zod-JMRyhOdG.js → zod-Q41nFlsc.js} +1 -1
- package/package.json +1 -1
- 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-B3TxcS8i.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-tdt2oKrL.js";
|
|
5
|
+
import { _ as G } from "./lodash-BBeCTooL.js";
|
|
6
|
+
import { C as H } from "./campaign-CZEJm6Df.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-dj0t6OGT.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BqKXIKAC.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-CiPhkfTa.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-CHPHG0su.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-B9i8Mp9s.js";
|
|
3
|
+
import { R as i } from "./rule-builder-Dh6Yl7NB.js";
|
|
4
|
+
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-vUdirqlz.js";
|
|
5
|
+
import { m as e, K as d } from "./index-D9OUhaR6.js";
|
|
6
|
+
import { i as n } from "./plugins-CnQ_2wCo.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-CHPHG0su.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-dj0t6OGT.js";
|
|
5
|
+
import { useSnackbar as M } from "@feedmepos/ui-library";
|
|
6
|
+
import { c as v } from "./plugins-CnQ_2wCo.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-BBeCTooL.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"
|