@feedmepos/mf-connect 0.1.38-beta.85 → 0.1.38-beta.87
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-b8mA9c9Y.js → Analytic-BaA1ekke.js} +13 -13
- package/dist/{App-XFiefZAx.js → App-e99cE_5Z.js} +7 -7
- package/dist/{AuditLogs-DTcAAlxV.js → AuditLogs-DfjlyaHP.js} +9 -9
- package/dist/{Bin-CzsWUmIN.js → Bin-CHlFDIos.js} +8 -8
- package/dist/{Broadcast-D_3C1KYk.js → Broadcast-C9Kat4Mq.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DX5JM6sI.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DX1fkDB-.js} +6 -6
- package/dist/{Card-BmEm66lU.js → Card-BE7WbaEo.js} +18 -18
- package/dist/{Collections-Ry-MQM44.js → Collections-B98IWqo-.js} +7 -7
- package/dist/{Credit-DVVJjxgZ.js → Credit-Bnn7aw0u.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-_WZUfwnP.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-cPZkPjqo.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B6KcW1Rh.js → EffectSheet.vue_vue_type_style_index_0_lang-qvZRCW3Q.js} +6 -6
- package/dist/{Experience-DyOeEZu2.js → Experience-F6_b9Bvs.js} +9 -9
- package/dist/{FileSaver.min-D0Xa_nbt.js → FileSaver.min-9_MTxcsH.js} +1 -1
- package/dist/{Game-C25Rgy7x.js → Game-B5ELfu1H.js} +10 -10
- package/dist/{Grab-BaG_Xwvt.js → Grab-ZGyeHCaN.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-X9zk3Atr.js → ImageInput.vue_vue_type_script_setup_true_lang-C2XgeLvq.js} +1 -1
- package/dist/{Index-BIFAhH2O.js → Index-shCHzuc6.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DQQVh3ap.js → LocationPicker.vue_vue_type_script_setup_true_lang-DwJn6RF4.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BwJaLc8D.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CMQE4OgN.js} +1 -1
- package/dist/{MainLayout-BhCYNX3n.js → MainLayout-D2oABez8.js} +1 -1
- package/dist/Marketing-iYLmr_K-.js +236 -0
- package/dist/{MarketingMaterialEdit-CyKJp44W.js → MarketingMaterialEdit-BQXrRtuF.js} +276 -316
- package/dist/{Member-CINhmBJN.js → Member-B6HhRTh1.js} +11 -11
- package/dist/{MemberList-BWvurFcu.js → MemberList-CKbZtUOP.js} +26 -26
- package/dist/{MemberTransactions-DjxllAVe.js → MemberTransactions--JLaF1U4.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BOohwOuN.js → MessageInput.vue_vue_type_script_setup_true_lang-DAFHPnR-.js} +9 -9
- package/dist/{Mission-DHS0FPgm.js → Mission-RwzK5aX7.js} +10 -10
- package/dist/{Overview-DFKG3hyX.js → Overview-C7ZexnUx.js} +18 -18
- package/dist/{Point-C0lV-lkL.js → Point-CoCYad51.js} +9 -9
- package/dist/{Promotion-aDnFW2P_.js → Promotion-DVZN7-K0.js} +10 -10
- package/dist/{Queue-CtH9-eLs.js → Queue-BOrvV51q.js} +10 -10
- package/dist/{Record-CQydFJqp.js → Record-P-AbRn6I.js} +9 -9
- package/dist/{Review-CKsWMX2o.js → Review-DFkyD0sh.js} +4 -4
- package/dist/{ReviewFacebookCallback-D4jb1HC4.js → ReviewFacebookCallback-CZMgR9GI.js} +4 -4
- package/dist/{ReviewGoogleCallback-CCXJc9fi.js → ReviewGoogleCallback-CZSgHEbP.js} +4 -4
- package/dist/{Reward-BRr8fWN4.js → Reward-6xSqB9ML.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-t4cBlpPd.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cuf95qd6.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-oiLK2FWO.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bt7K8y_N.js} +14 -14
- package/dist/{Segment-BMNT_K48.js → Segment-CaFTGv1s.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Co9D6B80.js → SelectItems.vue_vue_type_script_setup_true_lang-DB7yAOAV.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-RMfUCmZH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DhGfiUAy.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7BP9ow8.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-ZTkWcdHS.js} +4 -4
- package/dist/{Setting-Bv6KoqKT.js → Setting-DmQVsYXj.js} +14 -14
- package/dist/{SettingAdvertisements-C5EdDN8V.js → SettingAdvertisements-BaROU8us.js} +12 -12
- package/dist/{Store-Iiwd-cqe.js → Store-DHyhLBVY.js} +21 -21
- package/dist/{StoreRewards-B8GCy9Q8.js → StoreRewards-D0lsVw6j.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DCuLpnZz.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DqeErrz2.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CKjg0o86.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DE7_71js.js} +2 -2
- package/dist/{Tier-C5QHgi86.js → Tier-gY89ATJZ.js} +23 -23
- package/dist/{Title-DCpgwhkh.js → Title-IYc-Ha7M.js} +20 -20
- package/dist/{Transaction-p-jqY2uR.js → Transaction-DYj14beR.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-z_pRXQs5.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DBg__2Ar.js} +6 -6
- package/dist/{Voucher-CwPK7CI3.js → Voucher-DRe_7iwB.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-U3lPcMsO.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cg0QGZfX.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DZK3Vhgl.js → ZodTextField.vue_vue_type_script_setup_true_lang-vQpDHFbP.js} +2 -2
- package/dist/{app-Bd1PovAE.js → app-DKkwrhMa.js} +227 -227
- package/dist/app.js +1 -1
- package/dist/{business-DY9T_8D6.js → business-B6QJRvwl.js} +1 -1
- package/dist/{campaign-D9-2cfGS.js → campaign-BOs8XM-E.js} +8 -8
- package/dist/{campaign-Cj8ykwZM.js → campaign-hW8Yxlsd.js} +1 -1
- package/dist/{campaign.enum-Dn1IZjm3.js → campaign.enum-DxMYtWnO.js} +1 -1
- package/dist/{campaign.fn-BpmRNefC.js → campaign.fn-DQ65nlYV.js} +39 -39
- package/dist/{collectible.enum-DwDiqgOQ.js → collectible.enum-CZFScnZg.js} +1 -1
- package/dist/{collection.fn-DxxhNNiS.js → collection.fn-CidF0dGP.js} +2 -2
- package/dist/{dto-exJWIIFh.js → dto-C9Nt1u50.js} +4 -4
- package/dist/{duplicateCampaign-VlwdEOpi.js → duplicateCampaign-DVzt6cpN.js} +2 -2
- package/dist/{effect-B1gX3HYy.js → effect-Db6RimwW.js} +1 -1
- package/dist/{email-addresses-C0tfIamr.js → email-addresses-C02DqWUe.js} +2 -2
- package/dist/{export-D2LYUW7D.js → export-DNIcz3qS.js} +3 -3
- package/dist/{helper-9iFjiuBS.js → helper-CvXdehK7.js} +1 -1
- package/dist/{index--0-PrELA.js → index-0pkFDIzd.js} +1 -1
- package/dist/{index-TwCRZqdr.js → index-ACEIBNv3.js} +3 -3
- package/dist/{index-_ax9IcMt.js → index-BZP4FLAP.js} +4 -4
- package/dist/{index-mkNRK108.js → index-BpfeEFhj.js} +1 -1
- package/dist/{index-I9yn8pHU.js → index-Bu209ojz.js} +2 -2
- package/dist/{index-DaIOBj8s.js → index-CQIP2wsW.js} +1 -1
- package/dist/{index-mynItfLE.js → index-CWMgwUor.js} +3 -3
- package/dist/{index-DZr_AJes.js → index-CXpTeJEw.js} +1 -1
- package/dist/{index-DWi7IG9Q.js → index-DfHoeQSp.js} +1 -1
- package/dist/{index-E19Gtmxw.js → index-Dj-JcFr3.js} +3 -3
- package/dist/{index-CdANllE-.js → index-LTtmYSoI.js} +1 -1
- package/dist/{index-VnQA51n7.js → index-X7CT5hzK.js} +6 -6
- package/dist/{index-CBMnWVoT.js → index-hJsSB9sR.js} +1 -1
- package/dist/{index.esm2017-CbwAxX_t.js → index.esm2017-DAdHJ0oY.js} +1 -1
- package/dist/{loading-BUUuNRb8.js → loading-o0TBim-d.js} +1 -1
- package/dist/{lodash-DzFwGhp3.js → lodash-BHizN_g6.js} +1 -1
- package/dist/{membership-BSY7S3nW.js → membership-DzujFWmH.js} +3 -3
- package/dist/{money-DB8eMVCB.js → money-BNxHlpcD.js} +1 -1
- package/dist/{number-CmlQv3bk.js → number-DNDzN4Nd.js} +1 -1
- package/dist/objectid-CnwVzlUD.js +145 -0
- package/dist/{plugins-DATxgRFK.js → plugins-Scxk0oEb.js} +3 -3
- package/dist/{reward-C3NsvqTO.js → reward-C1iLtW5B.js} +1 -1
- package/dist/{rule-zKaaqUwQ.js → rule-DI694Swg.js} +3 -3
- package/dist/{rule-builder-EOj4zyYT.js → rule-builder-Fx0nmKme.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-KUFfOua-.js → template-sj-N6n8x.js} +6 -6
- package/dist/{timezone-HIZKEUxS.js → timezone-D9Bi8DEn.js} +2 -2
- package/dist/{trigger-8HJ7QGEI.js → trigger-D5TZSY4o.js} +5 -5
- package/dist/useMarketingMaterialActions-CObsVopg.js +95 -0
- package/dist/{usePagination-CvSSPoM-.js → usePagination-CJMZLttm.js} +1 -1
- package/dist/{user-C5FK05SW.js → user-B9EcGV_h.js} +1 -1
- package/dist/{vue-i18n-VE9cLms0.js → vue-i18n-BZ4icio1.js} +285 -285
- package/dist/{xlsx-C_8oyTCI.js → xlsx-P_FiE4nv.js} +1 -1
- package/dist/{zod-DrlA6hIW.js → zod-DQqF49Jz.js} +1 -1
- package/package.json +1 -1
- package/dist/Marketing-C19yd_BK.js +0 -293
- package/dist/index-DBXGg3yg.js +0 -36
- package/dist/objectid-DN-4NnaP.js +0 -145
|
@@ -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-hW8Yxlsd.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-X7CT5hzK.js";
|
|
5
|
+
import { _ as G } from "./lodash-BHizN_g6.js";
|
|
6
|
+
import { C as H } from "./campaign-BOs8XM-E.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-BZ4icio1.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-cPZkPjqo.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-DKkwrhMa.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-Bu209ojz.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-ACEIBNv3.js";
|
|
3
|
+
import { R as i } from "./rule-builder-Fx0nmKme.js";
|
|
4
|
+
import { _ as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Bt7K8y_N.js";
|
|
5
|
+
import { m as e, K as d } from "./index-BZP4FLAP.js";
|
|
6
|
+
import { i as n } from "./plugins-Scxk0oEb.js";
|
|
7
7
|
const L = /* @__PURE__ */ c({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { S as c, g as l, b } from "./index-Bu209ojz.js";
|
|
2
|
+
import { useSnackbar as w } from "@feedmepos/ui-library";
|
|
3
|
+
import { c as h } from "./plugins-Scxk0oEb.js";
|
|
4
|
+
const u = (e) => b(`businesses/${e}/marketing-materials`), v = {
|
|
5
|
+
async createMarketingMaterial(e) {
|
|
6
|
+
const s = c.getBusinessId();
|
|
7
|
+
if (!s) throw new Error("Invalid business ID");
|
|
8
|
+
return l(
|
|
9
|
+
await u(s).post("", e)
|
|
10
|
+
);
|
|
11
|
+
},
|
|
12
|
+
async getMarketingMaterial(e) {
|
|
13
|
+
const s = c.getBusinessId();
|
|
14
|
+
if (!s) throw new Error("Invalid business ID");
|
|
15
|
+
return l(
|
|
16
|
+
await u(s).get(`/${e}`)
|
|
17
|
+
);
|
|
18
|
+
},
|
|
19
|
+
async listMarketingMaterials(e = null, s = 20) {
|
|
20
|
+
const n = c.getBusinessId();
|
|
21
|
+
if (!n) throw new Error("Invalid business ID");
|
|
22
|
+
return l(
|
|
23
|
+
await u(n).get("", {
|
|
24
|
+
params: { ...e ? { cursor: e } : {}, limit: s }
|
|
25
|
+
})
|
|
26
|
+
);
|
|
27
|
+
},
|
|
28
|
+
async updateMarketingMaterial(e, s) {
|
|
29
|
+
const n = c.getBusinessId();
|
|
30
|
+
if (!n) throw new Error("Invalid business ID");
|
|
31
|
+
return l(
|
|
32
|
+
await u(n).patch(`/${e}`, s)
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
function $() {
|
|
37
|
+
const e = w();
|
|
38
|
+
async function s(a) {
|
|
39
|
+
if (!(a != null && a.imageUrl)) return;
|
|
40
|
+
const { headline: o, caption: d, imageUrl: r } = a;
|
|
41
|
+
if (!navigator.share) {
|
|
42
|
+
e.open({
|
|
43
|
+
message: "Web Share API is not supported in your browser.",
|
|
44
|
+
type: "error"
|
|
45
|
+
});
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
try {
|
|
49
|
+
const t = {
|
|
50
|
+
title: o ?? void 0,
|
|
51
|
+
text: d ?? void 0
|
|
52
|
+
};
|
|
53
|
+
if (navigator.canShare)
|
|
54
|
+
try {
|
|
55
|
+
const i = r.includes("?") ? `${r}&cors=1` : `${r}?cors=1`, g = await (await fetch(i)).blob(), f = [new File([g], "marketing-material.jpg", {
|
|
56
|
+
type: g.type || "image/jpeg"
|
|
57
|
+
})];
|
|
58
|
+
navigator.canShare({ files: f }) ? t.files = f : t.url = r;
|
|
59
|
+
} catch (i) {
|
|
60
|
+
console.error("Failed to fetch image for sharing:", i), t.url = r;
|
|
61
|
+
}
|
|
62
|
+
else
|
|
63
|
+
t.url = r;
|
|
64
|
+
await navigator.share(t);
|
|
65
|
+
} catch (t) {
|
|
66
|
+
t.name !== "AbortError" && e.open({
|
|
67
|
+
message: `Failed to share: ${t.message}`,
|
|
68
|
+
type: "error"
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
async function n(a) {
|
|
73
|
+
if (a)
|
|
74
|
+
try {
|
|
75
|
+
const o = a.includes("?") ? `${a}&cors=1` : `${a}?cors=1`, r = await (await fetch(o)).blob(), t = URL.createObjectURL(r), i = document.createElement("a");
|
|
76
|
+
i.href = t, i.download = "marketing-material", i.click(), URL.revokeObjectURL(t);
|
|
77
|
+
} catch (o) {
|
|
78
|
+
console.error("Failed to download image:", o), window.open(a, "_blank");
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async function p(a) {
|
|
82
|
+
a && await h(a, {
|
|
83
|
+
successMessage: "Image link copied to clipboard"
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
shareMaterial: s,
|
|
88
|
+
downloadMaterialImage: n,
|
|
89
|
+
copyMaterialLink: p
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
v as m,
|
|
94
|
+
$ as u
|
|
95
|
+
};
|
|
@@ -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-BHizN_g6.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"
|