@feedmepos/mf-connect 0.1.38-beta.92 → 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-CWhVZ2N2.js → Analytic-CqvoyDly.js} +13 -13
- package/dist/{App-BzHDZ550.js → App-DPy72nqL.js} +592 -595
- package/dist/{AuditLogs-DjJOfxWr.js → AuditLogs-EfyvoZHQ.js} +9 -9
- package/dist/{Bin-H9Mc0kOX.js → Bin-CMtvK3KF.js} +8 -8
- package/dist/{Broadcast-BlKv9pTl.js → Broadcast-CxmuwQZ0.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bfpr1EuT.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-h2clGCR2.js} +6 -6
- package/dist/{Card-ByEYCMZi.js → Card-SalQFh8l.js} +18 -18
- package/dist/{Collections-BjlqpQR0.js → Collections-DZUNnG9S.js} +7 -7
- package/dist/{Credit-DyBVTpfr.js → Credit-BJRXJk5Y.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DP50lRfA.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BqKXIKAC.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCQxJpVP.js → EffectSheet.vue_vue_type_style_index_0_lang-B1CHu12d.js} +6 -6
- package/dist/{Experience-Cf6lxdu_.js → Experience-Daga1Hxh.js} +9 -9
- package/dist/{FileSaver.min-BIgeA5yw.js → FileSaver.min-BIJAQv02.js} +1 -1
- package/dist/{Game-CCgsa5as.js → Game-CIq8fmpC.js} +10 -10
- package/dist/{Grab-oIvB2uUc.js → Grab-CbCuxPZ_.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BuiY288K.js → ImageInput.vue_vue_type_script_setup_true_lang-BJwOszse.js} +1 -1
- package/dist/{Index--bmiSYq2.js → Index-B0w6zmiz.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BQMZvHq2.js → LocationPicker.vue_vue_type_script_setup_true_lang-CnF54xhU.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bj6wuosW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BECBSkp3.js} +1 -1
- package/dist/{MainLayout-DTva8da3.js → MainLayout-Dmu6GcED.js} +1 -1
- package/dist/{Marketing-D-5rvdRJ.js → Marketing-D_cLVYyl.js} +6 -7
- package/dist/{MarketingMaterialEdit-CZvsnFG5.js → MarketingMaterialEdit-DhqvYUjN.js} +14 -15
- package/dist/{Member-CxKA1iM1.js → Member-VQoMxVJz.js} +11 -11
- package/dist/{MemberList-CmBZ6w5v.js → MemberList-wvElWZpi.js} +26 -26
- package/dist/{MemberTransactions-Dc9uE1Jy.js → MemberTransactions-SLmE50Lz.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DiOsNoiJ.js → MessageInput.vue_vue_type_script_setup_true_lang--Sx06xLJ.js} +9 -9
- package/dist/{Mission-D9ruHJsQ.js → Mission-DrFxGVba.js} +10 -10
- package/dist/{Overview-B4eiwvqi.js → Overview-CepbVHp5.js} +18 -18
- package/dist/{Point-MXmcuDtD.js → Point-B2toiZyR.js} +9 -9
- package/dist/{Promotion-CBoCcEhJ.js → Promotion-YxMtus5E.js} +10 -10
- package/dist/{Queue-if5Lji0q.js → Queue-CLFz6L4o.js} +10 -10
- package/dist/{Record-XLXvSqlF.js → Record-PmddgHd_.js} +9 -9
- package/dist/{Review-BKIkmxLd.js → Review-D6iAhcun.js} +4 -4
- package/dist/{ReviewFacebookCallback-B6TIL_H7.js → ReviewFacebookCallback-B8n1Lg7N.js} +4 -4
- package/dist/{ReviewGoogleCallback-D3sQbfuc.js → ReviewGoogleCallback-B0PCdXQ2.js} +4 -4
- package/dist/{Reward-DaymLqOP.js → Reward-DwzMcovH.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-cGyeUFlK.js → RewardGroup.vue_vue_type_script_setup_true_lang-DQLOD23t.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BOJdm376.js → RuleGroup.vue_vue_type_script_setup_true_lang-vUdirqlz.js} +14 -14
- package/dist/{Segment-o7srzt8o.js → Segment-DXE4ErvT.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DnA83SVT.js → SelectItems.vue_vue_type_script_setup_true_lang-BBTu9ZDv.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-RKn_DhW0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6A64Cs_.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-mzGtatEl.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B2YE-JF1.js} +4 -4
- package/dist/{Setting-Clbp5X2E.js → Setting-BzFPbaMK.js} +14 -14
- package/dist/{SettingAdvertisements-D9KTw00Q.js → SettingAdvertisements-C5lfJOHc.js} +12 -12
- package/dist/{Store-DApDz7rO.js → Store-9ubSP7i2.js} +21 -21
- package/dist/{StoreRewards-DTraNhDh.js → StoreRewards-BeKcvd4x.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BusvWI37.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DuuKlvqu.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D5HOiiLG.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C_KQPFfg.js} +2 -2
- package/dist/{Tier-BWiO5an3.js → Tier-Dn6QFmFz.js} +23 -23
- package/dist/{Title-Dur74Of5.js → Title-DjsjAmmo.js} +20 -20
- package/dist/{Transaction-x3fZwXdy.js → Transaction-j69T_jnU.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-9XLlfUdp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-u0K_N_7n.js} +6 -6
- package/dist/{Voucher-DH7x7NAS.js → Voucher-C8iuuHUB.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CNn4GR2l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D2uORhE-.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-W-qWPW20.js → ZodTextField.vue_vue_type_script_setup_true_lang-4CeykyPW.js} +2 -2
- package/dist/{app-IRmnrMb8.js → app-CiPhkfTa.js} +227 -227
- package/dist/app.js +1 -1
- package/dist/{business-BZG7VHN8.js → business-DbZr47-M.js} +1 -1
- package/dist/{campaign-BUvMmYOk.js → campaign-B3TxcS8i.js} +1 -1
- package/dist/{campaign-BeRxvBzZ.js → campaign-CZEJm6Df.js} +8 -8
- package/dist/{campaign.enum-BmFHrnub.js → campaign.enum-C85TmsKa.js} +1 -1
- package/dist/{campaign.fn-B0sgTkC-.js → campaign.fn-CEzoUdRF.js} +49 -49
- package/dist/{collectible.enum-J0aolcpF.js → collectible.enum-CCCBBcl7.js} +1 -1
- package/dist/{collection.fn-BOhZm8S0.js → collection.fn-DUtEtPB3.js} +2 -2
- package/dist/{dto-CSNH3rWF.js → dto-DlzmM1L1.js} +4 -4
- package/dist/{duplicateCampaign-CAOL6p7n.js → duplicateCampaign-OQo8zrAK.js} +2 -2
- package/dist/{effect-DTL3F8d_.js → effect-Dxlhartf.js} +1 -1
- package/dist/{email-addresses-Bw8rSTHa.js → email-addresses-DvYwJiqs.js} +2 -2
- package/dist/{export-CY5VAxnU.js → export-DoWh2do7.js} +3 -3
- package/dist/{helper-1sIKNm6C.js → helper-nbRQAX8c.js} +1 -1
- package/dist/{index-DO2AYnVc.js → index-2BNcX0q7.js} +1 -1
- package/dist/{index-DpXwZYX4.js → index-6BCLe67S.js} +3 -3
- package/dist/{index-KC-9_cY4.js → index-B9i8Mp9s.js} +3 -3
- package/dist/{index-Gr5htFUW.js → index-BDrLdZGR.js} +1 -1
- package/dist/{index-D4Bx6J2q.js → index-B_wWEEtv.js} +1 -1
- package/dist/{index-nMxh2OZ2.js → index-CHPHG0su.js} +2 -2
- package/dist/{index-BX_igCG6.js → index-CfY3RfIR.js} +1 -1
- package/dist/{index-DPmqQmoC.js → index-CwZyQRca.js} +3 -3
- package/dist/{index-B_-tEYD0.js → index-D9OUhaR6.js} +4 -4
- package/dist/{index-CVbL8J7-.js → index-Dbp4G2Ow.js} +1 -1
- package/dist/{index-CAIsxBzT.js → index-VNBY1DPS.js} +1 -1
- package/dist/{index-DoupH575.js → index-tdt2oKrL.js} +6 -6
- package/dist/{index-BultP2zY.js → index-uf8-OCbs.js} +1 -1
- package/dist/{index.esm2017-0cVB_6L1.js → index.esm2017-DFSyi73f.js} +1 -1
- package/dist/{loading-BUAN8WyV.js → loading-Bgl6Kdyv.js} +1 -1
- package/dist/{lodash-C7OD0MNW.js → lodash-BBeCTooL.js} +1 -1
- package/dist/{membership-CZkPkDiM.js → membership-DoF-XzA8.js} +3 -3
- package/dist/{money-CdTox5sS.js → money-BxEc8XuQ.js} +1 -1
- package/dist/{number-CxHO_EhJ.js → number-BXxUToPx.js} +1 -1
- package/dist/{objectid-DL2GZe9v.js → objectid-BaG_7-dd.js} +10 -10
- package/dist/{plugins-BR4hQ6yY.js → plugins-CnQ_2wCo.js} +3 -3
- package/dist/{reward-DWwwkcS3.js → reward-BJRhYB_i.js} +1 -1
- package/dist/{rule-CY_w8dsS.js → rule-CHQIMtow.js} +3 -3
- package/dist/{rule-builder-DMdUBkxB.js → rule-builder-Dh6Yl7NB.js} +1 -1
- package/dist/style.css +1 -10
- package/dist/{template-tuIzBpOC.js → template-Dzqh9sny.js} +6 -6
- package/dist/{timezone-Dt3UFIE2.js → timezone-raa8H06N.js} +2 -2
- package/dist/{trigger-B9pWO76n.js → trigger-DqTXJT7G.js} +5 -5
- package/dist/useMarketingMaterialActions-DuZVslnQ.js +107 -0
- package/dist/{usePagination-Dvqiv0Ms.js → usePagination-DheXOV9k.js} +1 -1
- package/dist/{user-DlrL0A8u.js → user-CU_zbdpo.js} +1 -1
- package/dist/{vue-i18n-B2srUL0h.js → vue-i18n-dj0t6OGT.js} +248 -248
- package/dist/{xlsx-B9pnBbNc.js → xlsx-A3olJTvH.js} +1 -1
- package/dist/{zod-CO0ds3MB.js → zod-Q41nFlsc.js} +1 -1
- package/package.json +1 -1
- package/dist/remy-D_Deb3ue.js +0 -13
- package/dist/useMarketingMaterialActions-C7XoKutU.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"
|