@feedmepos/mf-connect 0.1.98-beta.44 → 0.1.98-beta.46
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/{App-B1sVRUgU.js → App-DX5hNYdq.js} +40 -37
- package/dist/{AuditLogs-jIv5rADu.js → AuditLogs-mHXQ564w.js} +10 -10
- package/dist/{Bin-BFb2FxJL.js → Bin-BJZ_BMNI.js} +8 -8
- package/dist/{Broadcast-C-yR1YzE.js → Broadcast-DIKGv1-A.js} +11 -11
- package/dist/{CampaignAnalytic-D2Udb-1I.js → CampaignAnalytic-CRG3ys5S.js} +6 -6
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pp80jczz.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DnSFhe_I.js} +7 -7
- package/dist/Card-B3gnDfS7.js +1060 -0
- package/dist/{Collections-DoDZlLT5.js → Collections-Cv1vBVoX.js} +8 -8
- package/dist/{Credit-D-ss0yae.js → Credit-BLShYSWf.js} +12 -12
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DbkQVmGE.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-u4meW2NQ.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B8LawUFT.js → EffectSheet.vue_vue_type_style_index_0_lang-w-W78u2c.js} +6 -6
- package/dist/{Experience-OMwgCv-k.js → Experience-BwVJpeNX.js} +12 -12
- package/dist/{FileSaver.min-Ck08usZi.js → FileSaver.min-DmEepxKi.js} +1 -1
- package/dist/{Game-S5m1kti2.js → Game-q1or_U4f.js} +13 -13
- package/dist/GiftCardSetup-CVwl7Xvu.js +662 -0
- package/dist/{Grab-CgVDlh8N.js → Grab-BYxd3LMm.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B9JaZNoF.js → ImageInput.vue_vue_type_script_setup_true_lang-C5UWFkZq.js} +1 -1
- package/dist/{Index-BZRQSQt3.js → Index-qlVRiwB_.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CZp2vyhp.js → LocationPicker.vue_vue_type_script_setup_true_lang-DiI_6s7R.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-D9iMrk0m.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DbqW78d2.js} +1 -1
- package/dist/{LoyaltyDashboard-CkJsz_FM.js → LoyaltyDashboard-gXkQ6yRd.js} +7 -7
- package/dist/{MainLayout-y2AvCI7H.js → MainLayout-CSwcQUla.js} +3 -3
- package/dist/{Marketing-CdekCDN6.js → Marketing-DbJnSVzS.js} +4 -4
- package/dist/{MarketingMaterialEdit-r3xPXa_W.js → MarketingMaterialEdit-CeQlZGni.js} +6 -6
- package/dist/{Member-D4O-38yG.js → Member-C0VVffcW.js} +12 -12
- package/dist/{MemberList-ABpFaISm.js → MemberList-DKfVeadO.js} +26 -26
- package/dist/{MemberTransactions-DK-x6c7P.js → MemberTransactions-CdVatR9e.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DGPNmiR9.js → MessageInput.vue_vue_type_script_setup_true_lang-BupsL_ri.js} +10 -10
- package/dist/{Mission-5RhDQ1MF.js → Mission-C9IqGiDI.js} +13 -13
- package/dist/{Overview-B52hUVqf.js → Overview-DEp_GpnT.js} +19 -19
- package/dist/{Overview-0ukOrJQs.js → Overview-XshwtoKB.js} +3 -3
- package/dist/{Point-TSd4Uvmd.js → Point-CTgCH5ww.js} +12 -12
- package/dist/{Promotion-BBpfsz8N.js → Promotion-Cz0ILEA5.js} +13 -13
- package/dist/{Queue-BgnYKxGG.js → Queue-BTB-C-m9.js} +11 -11
- package/dist/{Record-CAtURV9U.js → Record-BglzH9E_.js} +9 -9
- package/dist/{Review-CuSrZB-m.js → Review-CeG0VBlj.js} +2 -2
- package/dist/{ReviewFacebookCallback-DQTVwxJo.js → ReviewFacebookCallback-k5luFa74.js} +5 -5
- package/dist/{ReviewGoogleCallback-Dn1bMM23.js → ReviewGoogleCallback-BM8aUDcD.js} +5 -5
- package/dist/{Reward-GArpJo5Q.js → Reward-CosruSnZ.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CuOxAvxV.js → RewardGroup.vue_vue_type_script_setup_true_lang-gTKCJEDQ.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BZTg3pTi.js → RuleGroup.vue_vue_type_script_setup_true_lang-sZDzblfZ.js} +15 -15
- package/dist/{Segment-BNoD4VPH.js → Segment-b0sjn0Ht.js} +25 -25
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-JrfOr5Px.js → SelectItems.vue_vue_type_script_setup_true_lang-Dh06v51H.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BY8aFZsB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CYEzN-ja.js} +13 -13
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-KVaH8rrU.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bvdzs94r.js} +4 -4
- package/dist/{Setting-CRYXwRFL.js → Setting-C1f9yHcb.js} +14 -14
- package/dist/{SettingAdvertisements-Cqp6piIi.js → SettingAdvertisements-BSpiKy7v.js} +12 -12
- package/dist/{Settings-DNkUFLud.js → Settings-h2K8CcjU.js} +5 -5
- package/dist/Store-C7qKJO1_.js +2615 -0
- package/dist/{StoreRewards-DDlMWlTG.js → StoreRewards-BhWbUnaP.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Zedck9Xi.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C8dxa_j1.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C3RBFu6J.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-OEdu52e8.js} +2 -2
- package/dist/{Tier-t2Ce3rxu.js → Tier-kH0FTUdH.js} +25 -25
- package/dist/{Title-CdI511i0.js → Title-B9fQWpgB.js} +22 -22
- package/dist/Transaction-CAtGFUZ8.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DsZxEZw9.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-L2dPD3nb.js} +6 -6
- package/dist/{Voucher-D1QRj4Ps.js → Voucher-BDZmikj-.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BVCNUWYO.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BAOcPygI.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-W_7pFEAG.js → ZodTextField.vue_vue_type_script_setup_true_lang-DaWuGWEn.js} +2 -2
- package/dist/{app-D4yjN_fQ.js → app-BIGPr1BQ.js} +725 -525
- package/dist/app.js +1 -1
- package/dist/{business-Dq1_o57i.js → business-C1ztrtzd.js} +1 -1
- package/dist/{campaign-CNkbWJTf.js → campaign-BFJC-o2t.js} +2 -2
- package/dist/{campaign-B7NIPxHs.js → campaign-D17yaHo7.js} +7 -7
- package/dist/{campaign.fn-qKzOoBBQ.js → campaign.fn-6Ul0G_eo.js} +80 -80
- package/dist/{collection.fn-BNRVdqye.js → collection.fn-CgJirF44.js} +2 -2
- package/dist/{duplicateCampaign-D29czqvn.js → duplicateCampaign-Bguk2VhU.js} +2 -2
- package/dist/{effect-B0ikJb6x.js → effect-Agn00g7v.js} +1 -1
- package/dist/{email-addresses-D0ZUpClg.js → email-addresses--b6ZRMp5.js} +2 -2
- package/dist/{export-Cr4mjkQZ.js → export-CZO7WdRK.js} +3 -3
- package/dist/{helper-ClPuPdgQ.js → helper-1LMLYuOT.js} +1 -1
- package/dist/{index-BOfM9FNu.js → index-B2HcSYJy.js} +7 -7
- package/dist/{index-B2hKSeR1.js → index-BVls8ERM.js} +1 -1
- package/dist/{index-GjzeMN4u.js → index-BVvOGOL3.js} +1192 -1150
- package/dist/{index-BrP_OwGm.js → index-BjaSmxp0.js} +7 -7
- package/dist/{index-DfMsF_gT.js → index-Bqah4gFm.js} +14 -14
- package/dist/{index-DpSlYwDW.js → index-Bxp7-J4q.js} +2 -2
- package/dist/{index-Dyc5Dpgs.js → index-C_F0JxFs.js} +1 -1
- package/dist/{index-DiqNx6FV.js → index-Cd-tJwMs.js} +1 -1
- package/dist/{index-BcHiQWdr.js → index-Czli6YCc.js} +2 -2
- package/dist/{index-CFk1uqb8.js → index-DLUkLGMO.js} +1 -1
- package/dist/{index-By93YZmr.js → index-DNSEyYgh.js} +11 -6
- package/dist/{index-CuPBtB3W.js → index-DmBWoao-.js} +1 -1
- package/dist/{index-C8cXXcLk.js → index-JlyOHqyG.js} +19 -13
- package/dist/{index-Dpk1tAhn.js → index-ULSqCLHU.js} +2 -2
- package/dist/{index-CuHNDW6e.js → index-a9a0E67J.js} +1 -1
- package/dist/{index-CnckzYTa.js → index-q90FGGn5.js} +1 -1
- package/dist/{index-DL7_OC7M.js → index-u4XmN7tA.js} +1 -1
- package/dist/{index-nuptxtNP.js → index-w-02c2Sb.js} +3 -3
- package/dist/{index.esm2017-D3pI9NTE.js → index.esm2017-1tPNvAVS.js} +1 -1
- package/dist/{loading-DLrpThuY.js → loading-BnW9omqu.js} +1 -1
- package/dist/{lodash-BIVtqtkS.js → lodash-CHIHYyCv.js} +1 -1
- package/dist/{membership-PNg3pIQf.js → membership-ByX0MwV6.js} +2 -2
- package/dist/{money-Ck2sBYbh.js → money-DT26h-9c.js} +1 -1
- package/dist/{number-dfEMJDkz.js → number-CLRlA2Ph.js} +1 -1
- package/dist/{objectid-Bz-UKgI1.js → objectid-Bqi3tFbn.js} +9 -9
- package/dist/{plugins-D4_SIsjZ.js → plugins-CqkgKVsK.js} +3 -3
- package/dist/{reward-UzeAq0jY.js → reward-DoYj0TRD.js} +1 -1
- package/dist/{rule-6OCvKihv.js → rule-BfzfFw7G.js} +3 -3
- package/dist/{rule-builder-VwyrN58i.js → rule-builder-CnqLXEzT.js} +1 -1
- package/dist/{template-DtwmJYOa.js → template-DOuh3jrd.js} +6 -6
- package/dist/{timezone-CHqOZvJX.js → timezone-CXUZ418k.js} +1 -1
- package/dist/{transaction.fn-rUQ2fYVQ.js → transaction.fn-CpTfkivT.js} +1 -1
- package/dist/{trigger-BT3dj5qY.js → trigger-A20rfpV9.js} +5 -5
- package/dist/{useMarketingMaterialActions-Dgq_G1qO.js → useMarketingMaterialActions-CCSX_Vu1.js} +3 -3
- package/dist/{usePagination-a1XSuIrr.js → usePagination-DElEO6kf.js} +1 -1
- package/dist/{user-CFls8m-e.js → user-DzTNLbUQ.js} +1 -1
- package/dist/{vue-i18n-CzEcAXx-.js → vue-i18n-BxjnJjv4.js} +457 -457
- package/dist/{xlsx-DKPe4AfX.js → xlsx-B5E_HVo5.js} +1 -1
- package/dist/{zod-D2Q81R3d.js → zod-DjcVp7VN.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-CzzNo7nk.js +0 -996
- package/dist/GiftCardSetup-CR8NpUJv.js +0 -542
- package/dist/Store-Dnt8VDQA.js +0 -2413
- package/dist/Transaction-C2BHJU7_.js +0 -39
|
@@ -2,17 +2,17 @@ import { defineComponent as De, ref as ee, h as Y, computed as ne, watch as xe,
|
|
|
2
2
|
import { useRouter as yt, useRoute as wt, RouterView as dn } from "vue-router";
|
|
3
3
|
import { useCoreStore as me, FeedMeAuth as hn } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as fn } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as pn } from "./business-
|
|
6
|
-
import "./index-
|
|
5
|
+
import { u as pn } from "./business-C1ztrtzd.js";
|
|
6
|
+
import "./index-a9a0E67J.js";
|
|
7
7
|
import { components as Q, useSnackbar as mn, useDialog as gn } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as Tt } from "./vue-i18n-
|
|
9
|
-
import { m as _n } from "./index-
|
|
10
|
-
import { C as Xe } from "./timezone-
|
|
11
|
-
import { R as f, A as vn, a as Qe } from "./app-
|
|
8
|
+
import { u as Tt } from "./vue-i18n-BxjnJjv4.js";
|
|
9
|
+
import { m as _n } from "./index-C_F0JxFs.js";
|
|
10
|
+
import { C as Xe } from "./timezone-CXUZ418k.js";
|
|
11
|
+
import { R as f, A as vn, a as Qe } from "./app-BIGPr1BQ.js";
|
|
12
12
|
import { J as In } from "./JsonViewer-v8_C7l5N.js";
|
|
13
|
-
import { r as Oe, L as yn, g as kt, i as wn, a as Tn, _ as Ze, C as et, b as kn, S as re, c as A, d as K, E as Fe, e as En, f as Et, h as bn, j as Sn, k as bt, l as y, m as Rn, F as Ve, n as An, q as se, o as Pn, p as Cn, s as Nn, t as On, u as Ln } from "./index.esm2017-
|
|
13
|
+
import { r as Oe, L as yn, g as kt, i as wn, a as Tn, _ as Ze, C as et, b as kn, S as re, c as A, d as K, E as Fe, e as En, f as Et, h as bn, j as Sn, k as bt, l as y, m as Rn, F as Ve, n as An, q as se, o as Pn, p as Cn, s as Nn, t as On, u as Ln } from "./index.esm2017-1tPNvAVS.js";
|
|
14
14
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
15
|
-
import { S as tt, c as Mn } from "./index-
|
|
15
|
+
import { S as tt, c as Mn } from "./index-ULSqCLHU.js";
|
|
16
16
|
const Un = { class: "flex flex-col h-full justify-between py-16" }, Dn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, xn = /* @__PURE__ */ De({
|
|
17
17
|
__name: "NavigationTab",
|
|
18
18
|
setup(n) {
|
|
@@ -137,10 +137,13 @@ const Un = { class: "flex flex-col h-full justify-between py-16" }, Dn = { class
|
|
|
137
137
|
return console.log(`[MF] Timezone set to: ${Xe[d]}`), Xe[d];
|
|
138
138
|
});
|
|
139
139
|
xe(
|
|
140
|
-
()
|
|
140
|
+
// Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
|
|
141
|
+
// whose identity never changes, so watching it directly fired once via
|
|
142
|
+
// `immediate` and the highlight then stayed on whatever page loaded first.
|
|
143
|
+
() => s.matched,
|
|
141
144
|
(d) => {
|
|
142
|
-
const
|
|
143
|
-
t.value =
|
|
145
|
+
const m = d.map((v) => v.name).reverse().find((v) => o.includes(v));
|
|
146
|
+
m && (t.value = m);
|
|
144
147
|
},
|
|
145
148
|
{ immediate: !0 }
|
|
146
149
|
);
|
|
@@ -148,12 +151,12 @@ const Un = { class: "flex flex-col h-full justify-between py-16" }, Dn = { class
|
|
|
148
151
|
await r.push({ name: d });
|
|
149
152
|
}
|
|
150
153
|
return (d, h) => {
|
|
151
|
-
var
|
|
154
|
+
var v;
|
|
152
155
|
const m = Z("FmCollapsibleTabs");
|
|
153
156
|
return H(), pe("div", Un, [
|
|
154
157
|
S(m, {
|
|
155
158
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
156
|
-
"model-value": (
|
|
159
|
+
"model-value": (v = p(t)) == null ? void 0 : v.toString(),
|
|
157
160
|
items: i,
|
|
158
161
|
"onUpdate:modelValue": l
|
|
159
162
|
}, null, 8, ["model-value"]),
|
|
@@ -188,7 +191,7 @@ const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xx
|
|
|
188
191
|
{ key: "socialFormat", icon: "aspect_ratio" }
|
|
189
192
|
], a = ne(() => {
|
|
190
193
|
var w;
|
|
191
|
-
const
|
|
194
|
+
const v = ((w = r.value) == null ? void 0 : w.permissions) ?? [];
|
|
192
195
|
return vn(
|
|
193
196
|
[
|
|
194
197
|
{
|
|
@@ -196,7 +199,7 @@ const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xx
|
|
|
196
199
|
subject: Qe.Subject.Business.crm_marketingMaterial
|
|
197
200
|
}
|
|
198
201
|
],
|
|
199
|
-
|
|
202
|
+
v
|
|
200
203
|
).granted;
|
|
201
204
|
}), l = ne(
|
|
202
205
|
() => s.value === "MY" && a.value
|
|
@@ -204,8 +207,8 @@ const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xx
|
|
|
204
207
|
let d = !1;
|
|
205
208
|
xe(
|
|
206
209
|
l,
|
|
207
|
-
(
|
|
208
|
-
d || !
|
|
210
|
+
(v) => {
|
|
211
|
+
d || !v || (d = !0, !(Fn() || e) && (e = !0, o.value = !0));
|
|
209
212
|
},
|
|
210
213
|
{ immediate: !0 }
|
|
211
214
|
);
|
|
@@ -215,8 +218,8 @@ const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xx
|
|
|
215
218
|
function m() {
|
|
216
219
|
Vn(), o.value = !1;
|
|
217
220
|
}
|
|
218
|
-
return (
|
|
219
|
-
const g = Z("FmIcon"),
|
|
221
|
+
return (v, w) => {
|
|
222
|
+
const g = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
|
|
220
223
|
return H(), Ne(M, {
|
|
221
224
|
modelValue: o.value,
|
|
222
225
|
"onUpdate:modelValue": w[0] || (w[0] = (k) => o.value = k),
|
|
@@ -262,7 +265,7 @@ const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xx
|
|
|
262
265
|
default: X(() => [
|
|
263
266
|
_("div", Bn, [
|
|
264
267
|
_("div", zn, [
|
|
265
|
-
(H(), pe(It, null, cn(c, (k) => S(
|
|
268
|
+
(H(), pe(It, null, cn(c, (k) => S(I, {
|
|
266
269
|
key: k.key,
|
|
267
270
|
variant: "outlined",
|
|
268
271
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
@@ -283,7 +286,7 @@ const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xx
|
|
|
283
286
|
_: 2
|
|
284
287
|
}, 1024)), 64))
|
|
285
288
|
]),
|
|
286
|
-
S(
|
|
289
|
+
S(I, {
|
|
287
290
|
variant: "outlined",
|
|
288
291
|
class: "flex items-start gap-12 p-16"
|
|
289
292
|
}, {
|
|
@@ -1278,7 +1281,7 @@ class C {
|
|
|
1278
1281
|
}
|
|
1279
1282
|
static _fromJSON(e, t) {
|
|
1280
1283
|
var i, r, s, o, c, a, l, d;
|
|
1281
|
-
const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, m = (r = t.email) !== null && r !== void 0 ? r : void 0,
|
|
1284
|
+
const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, m = (r = t.email) !== null && r !== void 0 ? r : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, w = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, g = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Se, stsTokenManager: Ye } = t;
|
|
1282
1285
|
u(
|
|
1283
1286
|
k && Ye,
|
|
1284
1287
|
e,
|
|
@@ -1301,7 +1304,7 @@ class C {
|
|
|
1301
1304
|
e,
|
|
1302
1305
|
"internal-error"
|
|
1303
1306
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1304
|
-
), U(
|
|
1307
|
+
), U(v, e.name), U(w, e.name), U(g, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
|
|
1305
1308
|
const Re = new C({
|
|
1306
1309
|
uid: k,
|
|
1307
1310
|
auth: e,
|
|
@@ -1310,13 +1313,13 @@ class C {
|
|
|
1310
1313
|
displayName: h,
|
|
1311
1314
|
isAnonymous: Je,
|
|
1312
1315
|
photoURL: w,
|
|
1313
|
-
phoneNumber:
|
|
1316
|
+
phoneNumber: v,
|
|
1314
1317
|
tenantId: g,
|
|
1315
1318
|
stsTokenManager: on,
|
|
1316
1319
|
createdAt: T,
|
|
1317
1320
|
lastLoginAt: M
|
|
1318
1321
|
});
|
|
1319
|
-
return Se && Array.isArray(Se) && (Re.providerData = Se.map((an) => Object.assign({}, an))),
|
|
1322
|
+
return Se && Array.isArray(Se) && (Re.providerData = Se.map((an) => Object.assign({}, an))), I && (Re._redirectEventId = I), Re;
|
|
1320
1323
|
}
|
|
1321
1324
|
/**
|
|
1322
1325
|
* Initialize a User from an idToken server response
|
|
@@ -4369,7 +4372,7 @@ function jr(n, e, t, i = Fr, r = Vr) {
|
|
|
4369
4372
|
left: o
|
|
4370
4373
|
}), l = y().toLowerCase();
|
|
4371
4374
|
t && (c = Ft(l) ? $r : t), xt(l) && (e = e || Hr, a.scrollbars = "yes");
|
|
4372
|
-
const d = Object.entries(a).reduce((m, [
|
|
4375
|
+
const d = Object.entries(a).reduce((m, [v, w]) => `${m}${v}=${w},`, "");
|
|
4373
4376
|
if (yi(l) && c !== "_self")
|
|
4374
4377
|
return Wr(e || "", c), new pt(null);
|
|
4375
4378
|
const h = window.open(e || "", c, d);
|
|
@@ -4737,32 +4740,32 @@ const os = {
|
|
|
4737
4740
|
__name: "App",
|
|
4738
4741
|
setup(n) {
|
|
4739
4742
|
const e = me(), t = fn(), i = pn(), r = mn(), s = gn(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = me(), d = ee(!1), h = ne(() => i.version), m = ne(() => {
|
|
4740
|
-
const g = e.currentCountry.value || "MY",
|
|
4741
|
-
return `${ss.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${g}&token=${
|
|
4743
|
+
const g = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
|
|
4744
|
+
return `${ss.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${g}&token=${I}`;
|
|
4742
4745
|
});
|
|
4743
|
-
async function
|
|
4746
|
+
async function v() {
|
|
4744
4747
|
if (Nn().length) {
|
|
4745
4748
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4746
4749
|
return;
|
|
4747
4750
|
}
|
|
4748
|
-
const g = On(rs.firebase),
|
|
4749
|
-
await ji(T,
|
|
4751
|
+
const g = On(rs.firebase), I = await hn.getCustomToken(), T = ns();
|
|
4752
|
+
await ji(T, I), Ln(g), console.log("initFirebase", g);
|
|
4750
4753
|
}
|
|
4751
4754
|
const w = async () => {
|
|
4752
|
-
d.value = !1, await un(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && h.value === "v2" ? e.registerSidebarComponent(xn) : e.hideSidebarToggle(!0), await
|
|
4755
|
+
d.value = !1, await un(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && h.value === "v2" ? e.registerSidebarComponent(xn) : e.hideSidebarToggle(!0), await v(), a.value = !0, d.value = !0;
|
|
4753
4756
|
};
|
|
4754
4757
|
return ln(() => {
|
|
4755
4758
|
if (Mn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
|
|
4756
|
-
const g = document.getElementsByClassName("app-header")[0],
|
|
4757
|
-
g == null || g.classList.add("!hidden"),
|
|
4759
|
+
const g = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
|
|
4760
|
+
g == null || g.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
|
|
4758
4761
|
}
|
|
4759
4762
|
l.value != null && (console.log("App mounted, forceRerender"), w());
|
|
4760
4763
|
}), xe(
|
|
4761
4764
|
() => e.currentBusiness.value,
|
|
4762
|
-
async (g,
|
|
4763
|
-
console.log("Current business changed"), g != null && g._id !=
|
|
4765
|
+
async (g, I) => {
|
|
4766
|
+
console.log("Current business changed"), g != null && g._id != I._id && (console.log("forceRerender when business changes", g, I), w());
|
|
4764
4767
|
}
|
|
4765
|
-
), (g,
|
|
4768
|
+
), (g, I) => (H(), pe(It, null, [
|
|
4766
4769
|
p(d) && p(h) === "v2" ? (H(), Ne(p(dn), { key: 0 })) : Ae("", !0),
|
|
4767
4770
|
p(d) && p(h) === "v2" && p(c) ? (H(), Ne(ti, { key: 1 })) : Ae("", !0),
|
|
4768
4771
|
p(d) && p(h) !== "v2" ? (H(), pe("div", os, [
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as Ve, ref as ye, resolveComponent as Be, openBlock as P, createBlock as ui, unref as v, isRef as mi, withCtx as We, createElementVNode as k, createElementBlock as ie, Fragment as Ue, renderList as je, toDisplayString as $, watch as fi, onBeforeMount as hi, createVNode as H, createCommentVNode as gi, h as G } from "vue";
|
|
2
2
|
import { components as Ye } from "@feedmepos/ui-library";
|
|
3
|
-
import "./index-
|
|
3
|
+
import "./index-w-02c2Sb.js";
|
|
4
4
|
import { h as Q } from "./moment-D7p2TMB-.js";
|
|
5
5
|
import { _ as Je } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
6
6
|
import { _ as vi } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js";
|
|
7
|
-
import { u as yi, _ as ki } from "./usePagination-
|
|
8
|
-
import { c as Xe } from "./plugins-
|
|
7
|
+
import { u as yi, _ as ki } from "./usePagination-DElEO6kf.js";
|
|
8
|
+
import { c as Xe } from "./plugins-CqkgKVsK.js";
|
|
9
9
|
import { c as Fe } from "./string-Gcy5IM_H.js";
|
|
10
|
-
import { d as me, e as xi } from "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import { g as Si, S as Ei, b as Ci } from "./index-
|
|
10
|
+
import { d as me, e as xi } from "./index-B2HcSYJy.js";
|
|
11
|
+
import "./index-BVvOGOL3.js";
|
|
12
|
+
import "./index-Bxp7-J4q.js";
|
|
13
|
+
import "./index-Bqah4gFm.js";
|
|
14
|
+
import "./index-Czli6YCc.js";
|
|
15
|
+
import { g as Si, S as Ei, b as Ci } from "./index-ULSqCLHU.js";
|
|
16
16
|
import { o as _i } from "./objectId-dwaoBfJX.js";
|
|
17
|
-
import { u as Oi } from "./vue-i18n-
|
|
17
|
+
import { u as Oi } from "./vue-i18n-BxjnJjv4.js";
|
|
18
18
|
var Ii = "2.0.10", ci = 500, Ke = "user-agent", te = "", Ze = "?", x = {
|
|
19
19
|
FUNCTION: "function",
|
|
20
20
|
OBJECT: "object",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
|
|
2
2
|
import { components as p } from "@feedmepos/ui-library";
|
|
3
|
-
import { u as K } from "./loading-
|
|
4
|
-
import { u as R } from "./business-
|
|
5
|
-
import { C as A } from "./campaign-
|
|
6
|
-
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as K } from "./loading-BnW9omqu.js";
|
|
4
|
+
import { u as R } from "./business-C1ztrtzd.js";
|
|
5
|
+
import { C as A } from "./campaign-D17yaHo7.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-u4meW2NQ.js";
|
|
7
7
|
import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
8
|
-
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as D } from "./vue-i18n-
|
|
8
|
+
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bvdzs94r.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-BxjnJjv4.js";
|
|
10
10
|
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./index-
|
|
11
|
+
import { p as I } from "./plugins-CqkgKVsK.js";
|
|
12
|
+
import { c as g } from "./index-DNSEyYgh.js";
|
|
13
13
|
const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
|
|
14
14
|
__name: "Bin",
|
|
15
15
|
setup(H) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as H, ref as C, computed as q, onMounted as z, resolveComponent as m, openBlock as d, createElementBlock as h, Fragment as v, createVNode as i, unref as a, createElementVNode as n, withCtx as x, renderList as G, createBlock as S, resolveDynamicComponent as J, toDisplayString as u, createCommentVNode as Q, h as k } from "vue";
|
|
2
2
|
import { _ as W } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as X, components as L } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Y } from "./plugins-
|
|
5
|
-
import { u as Z } from "./loading-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as te } from "./campaign-
|
|
8
|
-
import { b as V, c as R, a as ae } from "./campaign-
|
|
9
|
-
import { c as oe, p as ne } from "./duplicateCampaign-
|
|
10
|
-
import { u as se } from "./vue-i18n-
|
|
4
|
+
import { p as Y } from "./plugins-CqkgKVsK.js";
|
|
5
|
+
import { u as Z } from "./loading-BnW9omqu.js";
|
|
6
|
+
import { u as ee } from "./business-C1ztrtzd.js";
|
|
7
|
+
import { u as te } from "./campaign-BFJC-o2t.js";
|
|
8
|
+
import { b as V, c as R, a as ae } from "./campaign-D17yaHo7.js";
|
|
9
|
+
import { c as oe, p as ne } from "./duplicateCampaign-Bguk2VhU.js";
|
|
10
|
+
import { u as se } from "./vue-i18n-BxjnJjv4.js";
|
|
11
11
|
import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
12
|
-
import { _ as ie } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { _ as re } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as le } from "./template-
|
|
15
|
-
import { c as f } from "./index-
|
|
12
|
+
import { _ as ie } from "./MessageInput.vue_vue_type_script_setup_true_lang-BupsL_ri.js";
|
|
13
|
+
import { _ as re } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-u4meW2NQ.js";
|
|
14
|
+
import { u as le } from "./template-DOuh3jrd.js";
|
|
15
|
+
import { c as f } from "./index-DNSEyYgh.js";
|
|
16
16
|
const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "space-y-4" }, _e = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "flex items-center gap-8" }, be = { key: 0 }, Ce = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ve = { class: "flex flex-col gap-16 text-center" }, xe = { class: "fm-typo-en-title-sm-800" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ H({
|
|
17
17
|
__name: "Broadcast",
|
|
18
18
|
setup(ke) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as j, computed as O, resolveComponent as S, openBlock as r, createBlock as g, withCtx as L, createElementBlock as p, createCommentVNode as b, createElementVNode as a, toDisplayString as u, normalizeClass as H, unref as n, Fragment as E, normalizeStyle as de, createTextVNode as xe, renderList as Z, createVNode as P, ref as Y, onMounted as ke } from "vue";
|
|
2
|
-
import { u as ve } from "./vue-i18n-
|
|
2
|
+
import { u as ve } from "./vue-i18n-BxjnJjv4.js";
|
|
3
3
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
4
|
-
import { c as U } from "./index-
|
|
5
|
-
import { u as Re } from "./loading-
|
|
6
|
-
import { s as Me, a as _e } from "./campaign-
|
|
7
|
-
import { C as pe } from "./timezone-
|
|
4
|
+
import { c as U } from "./index-DNSEyYgh.js";
|
|
5
|
+
import { u as Re } from "./loading-BnW9omqu.js";
|
|
6
|
+
import { s as Me, a as _e } from "./campaign-D17yaHo7.js";
|
|
7
|
+
import { C as pe } from "./timezone-CXUZ418k.js";
|
|
8
8
|
import { h as Se } from "./moment-D7p2TMB-.js";
|
|
9
9
|
import { s as Ce } from "./index-CuvNtC_M.js";
|
|
10
|
-
import { T as Ie } from "./transaction.fn-
|
|
10
|
+
import { T as Ie } from "./transaction.fn-CpTfkivT.js";
|
|
11
11
|
import { _ as ee } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js";
|
|
12
12
|
import { useRoute as $e, useRouter as Pe } from "vue-router";
|
|
13
13
|
const Oe = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-Bxp7-J4q.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-CnqLXEzT.js";
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-
|
|
9
|
-
import "./index-
|
|
5
|
+
import "./index-B2HcSYJy.js";
|
|
6
|
+
import "./index-BVvOGOL3.js";
|
|
7
|
+
import "./index-w-02c2Sb.js";
|
|
8
|
+
import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-Bqah4gFm.js";
|
|
9
|
+
import "./index-Czli6YCc.js";
|
|
10
10
|
function validateRule(data, r, date) {
|
|
11
11
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
12
12
|
function meetConditions(e) {
|