@feedmepos/mf-connect 0.0.21-prod → 0.0.22-prod
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-C6F4G25g.js → Analytic-DiZyXVa2.js} +21 -19
- package/dist/App-B56fA1JN.js +176 -0
- package/dist/{Broadcast-DO2VP__g.js → Broadcast-ixoPXMt8.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0aQTASM.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DlgKZtNO.js} +8 -8
- package/dist/{Card-DZyOKMh6.js → Card-aw5tdKY-.js} +39 -37
- package/dist/{Collections-DLyCIlvd.js → Collections-CMD-SLC3.js} +16 -14
- package/dist/{Credit-DRdsjXky.js → Credit-CEVk1_sX.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-733A3xAJ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Co6j2tz0.js} +23 -20
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CvtX7ULa.js → EffectSheet.vue_vue_type_style_index_0_lang-xXv4IrKd.js} +5 -5
- package/dist/{Experience-D33O1vby.js → Experience-CSui9603.js} +7 -7
- package/dist/{Game-BrYvnjMK.js → Game-PodGVfdS.js} +7 -7
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Dby96cpu.js → ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js} +1 -1
- package/dist/JsonViewer-v8_C7l5N.js +87 -0
- package/dist/{MainLayout-Cex8qsGf.js → MainLayout-DpZC6o3R.js} +2 -1
- package/dist/{Marketing-6ATQUGoF.js → Marketing-CbrFzK0w.js} +13 -12
- package/dist/{Member-CCIVIzDM.js → Member-DnrQEiiV.js} +31 -30
- package/dist/{MemberList-Cs0LD8gi.js → MemberList-7Te6kVOJ.js} +33 -30
- package/dist/{MemberTransactions-CLE7hYWY.js → MemberTransactions-BUp_0bkL.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DcKMh_2f.js → MessageInput.vue_vue_type_script_setup_true_lang-BrxCjH9R.js} +2 -2
- package/dist/{Mission-BHI8zTMK.js → Mission-Bp16rwVh.js} +14 -14
- package/dist/{Point-CHxmW_O8.js → Point-DnzgCjC2.js} +7 -7
- package/dist/{Promotion-C8CqdNGj.js → Promotion-BmhVCYgN.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C9C8o4ON.js → RuleGroup.vue_vue_type_script_setup_true_lang-BuELQmoo.js} +16 -15
- package/dist/{Segment-CvNLrjIH.js → Segment-CCrLEh0A.js} +19 -18
- package/dist/{Setting-oXiZZAub.js → Setting-v0gKscv9.js} +11 -10
- package/dist/{Store-WLcxJNzp.js → Store-CHDu8Rop.js} +51 -47
- package/dist/{StoreRewards-CMrnEHsB.js → StoreRewards-D_vBCPZl.js} +108 -105
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-bgEBVCXH.js → StoreTransactions.vue_vue_type_script_setup_true_lang-zDJEaBmd.js} +106 -108
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6gZzsja.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CVf5Jjj1.js} +6 -6
- package/dist/{Tier-BwXb3Pk1.js → Tier-C5gbgtcG.js} +25 -24
- package/dist/{Title-BOyT9mEy.js → Title-CojucJrP.js} +15 -15
- package/dist/{Transaction-wwnoXk9w.js → Transaction-D1i5IH7D.js} +1 -1
- package/dist/{Voucher-BbpSPfL0.js → Voucher-VuXKhD49.js} +55 -51
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-Cok2f-SL.js +2974 -0
- package/dist/{app-Bw4vX2Xq.js → app-Df5HEUc7.js} +1 -1
- package/dist/app-wDQR6dpb.js +39 -0
- package/dist/app.js +2 -2
- package/dist/business-zehruO7m.js +78 -0
- package/dist/{campaign-BAxYqkWK.js → campaign-BDdGYC5z.js} +7 -7
- package/dist/{dto-CwGNrCVP.js → dto-X3oNeL7n.js} +41 -41
- package/dist/{effect-OIGvEMnu.js → effect-Cl3gXAd9.js} +1 -1
- package/dist/{export-pnyF_Nqa.js → export-COy97xf1.js} +3 -3
- package/dist/{helper-1r9zsTyt.js → helper-BMCigtw-.js} +1 -1
- package/dist/{index-BULhetR6.js → index-9ijJtga8.js} +1 -1
- package/dist/{app-CzpQo8NQ.js → index-BENEb_BE.js} +9660 -13019
- package/dist/index-BEWobmlN.js +11 -0
- package/dist/{index-Shw3boHM.js → index-Bi8rxPHs.js} +1 -1
- package/dist/{index-COXwd1ca.js → index-Btbk-4q4.js} +3 -3
- package/dist/{index-C33oGCbQ.js → index-CXwywdbf.js} +5 -5
- package/dist/{index-s63kYMDU.js → index-Cl6-R6oj.js} +1 -1
- package/dist/{index-CFW6MW-j.js → index-DEunD6Nb.js} +46 -39
- package/dist/{index-6xeKaiuc.js → index-DcRKYwqb.js} +3 -3
- package/dist/{index-AeZIrHi3.js → index-SusoyGmN.js} +6 -7
- package/dist/{index-DdgrIdtX.js → index-ucUyNm2f.js} +177 -168
- package/dist/{index-C9XT87dh.js → index-ueVq8lE0.js} +6 -5
- package/dist/{loading-D7uTV0-9.js → loading-B7ZGAeOi.js} +28 -26
- package/dist/{lodash-O836mjN1.js → lodash-B5I3zXaY.js} +1 -1
- package/dist/{membership-BRlmOhUi.js → membership-JcEfpV3H.js} +3 -3
- package/dist/{money-BdNZ4vMR.js → money-DFguRQja.js} +1 -1
- package/dist/number-CojWykn9.js +12 -0
- package/dist/{rule-2GUvtk01.js → rule-C_lc6_Vf.js} +2 -2
- package/dist/{rule-builder-B3FwMkHG.js → rule-builder-C3AmhP2r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-COZoDCgl.js → template-TVj4e3Q0.js} +5 -5
- package/dist/{usePagination-CwZ7gv3m.js → usePagination-JoYaROkV.js} +1 -1
- package/dist/{xlsx-B2_kvHAq.js → xlsx-zY8O-RaE.js} +1 -1
- package/package.json +1 -1
- package/dist/number-CNiMHNNi.js +0 -12
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { defineComponent as J, openBlock as a, createElementBlock as R, Fragment as S, renderList as O, createElementVNode as e, toDisplayString as x, createCommentVNode as z, resolveComponent as P, createBlock as w, withCtx as H, createVNode as A, unref as i, ref as V, computed as b, onMounted as Y, watch as eo, isRef as Z, createSlots as io, createTextVNode as to, reactive as ao, onBeforeMount as ro, normalizeClass as G } from "vue";
|
|
2
2
|
import { _ as Ko } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { f as no } from "./number-
|
|
4
|
-
import { C as Ao, F as Uo, a as lo } from "./dto-
|
|
3
|
+
import { f as no } from "./number-CojWykn9.js";
|
|
4
|
+
import { C as Ao, F as Uo, a as lo } from "./dto-X3oNeL7n.js";
|
|
5
5
|
import { useRouter as $ } from "vue-router";
|
|
6
|
-
import { c as D } from "./index-
|
|
6
|
+
import { c as D } from "./index-Bi8rxPHs.js";
|
|
7
7
|
import { _ as so, Z as Fo } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
|
|
8
|
-
import { J as po
|
|
9
|
-
import { u as
|
|
10
|
-
import { useSnackbar as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
8
|
+
import { J as po } from "./JsonViewer-v8_C7l5N.js";
|
|
9
|
+
import { u as co } from "./loading-B7ZGAeOi.js";
|
|
10
|
+
import { useSnackbar as Ro } from "@feedmepos/ui-library";
|
|
11
|
+
import { u as uo } from "./app-wDQR6dpb.js";
|
|
12
|
+
import { g as mo } from "./object-qECH92oz.js";
|
|
13
|
+
import { u as fo } from "./campaign-BDdGYC5z.js";
|
|
14
|
+
import { u as Vo } from "./membership-JcEfpV3H.js";
|
|
15
|
+
import { c as qo } from "./index-BENEb_BE.js";
|
|
16
|
+
import { m as vo } from "./index-DcRKYwqb.js";
|
|
15
17
|
const Po = { class: "divide-x flex flex-wrap" }, Xo = { class: "fm-typo-en-body-md-400 mb-2 text-fm-color-typo-secondary" }, yo = { class: "fm-typo-en-title-sm-800" }, So = /* @__PURE__ */ J({
|
|
16
18
|
__name: "CampaignStat",
|
|
17
19
|
props: {
|
|
@@ -263,13 +265,13 @@ const Po = { class: "divide-x flex flex-wrap" }, Xo = { class: "fm-typo-en-body-
|
|
|
263
265
|
__name: "AnalyticSheet",
|
|
264
266
|
emits: ["success"],
|
|
265
267
|
setup(u, { expose: W, emit: U }) {
|
|
266
|
-
const p = U, m =
|
|
267
|
-
|
|
268
|
+
const p = U, m = uo();
|
|
269
|
+
Ro();
|
|
268
270
|
const s = V(!1), t = V(!1), F = {
|
|
269
271
|
name: "",
|
|
270
272
|
campaigns: []
|
|
271
273
|
}, n = V(""), r = V({ ...F }), d = Uo.superRefine((l, o) => {
|
|
272
|
-
}), q = V([]), f = V(null), { global: X, minor: L } =
|
|
274
|
+
}), q = V([]), f = V(null), { global: X, minor: L } = co, N = b(() => {
|
|
273
275
|
const l = d.safeParse(r.value);
|
|
274
276
|
return l.success ? [] : l.error.errors;
|
|
275
277
|
});
|
|
@@ -300,7 +302,7 @@ const Po = { class: "divide-x flex flex-wrap" }, Xo = { class: "fm-typo-en-body-
|
|
|
300
302
|
label: j.name,
|
|
301
303
|
value: j._id
|
|
302
304
|
}));
|
|
303
|
-
return
|
|
305
|
+
return mo(
|
|
304
306
|
q.value,
|
|
305
307
|
(K) => lo.formattedType(K.type),
|
|
306
308
|
l
|
|
@@ -476,7 +478,7 @@ const ee = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ie = { class: "space
|
|
|
476
478
|
}, me = /* @__PURE__ */ e("div", { class: "h-[2px] flex-grow bg-fm-color-system-warning-100" }, null, -1), fe = /* @__PURE__ */ e("div", { class: "text-fm-color-primary fm-typo-en-body-md-600" }, " All caught up ", -1), Ve = /* @__PURE__ */ e("div", { class: "h-[2px] flex-grow bg-fm-color-system-warning-100" }, null, -1), qe = ["src"], ve = /* @__PURE__ */ e("img", {
|
|
477
479
|
src: Ko,
|
|
478
480
|
class: "w-[150px]"
|
|
479
|
-
}, null, -1), Pe = /* @__PURE__ */ e("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Create campaign group to track performance ", -1), Xe = /* @__PURE__ */ e("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " Start organizing your campaigns and promotions by creating groups. Groups allow you to aggregate performance metrics across multiple vouchers, promotions, or other rewards. ", -1), ye = { class: "flex gap-16 items-center" },
|
|
481
|
+
}, null, -1), Pe = /* @__PURE__ */ e("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Create campaign group to track performance ", -1), Xe = /* @__PURE__ */ e("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " Start organizing your campaigns and promotions by creating groups. Groups allow you to aggregate performance metrics across multiple vouchers, promotions, or other rewards. ", -1), ye = { class: "flex gap-16 items-center" }, Le = /* @__PURE__ */ J({
|
|
480
482
|
__name: "Analytic",
|
|
481
483
|
setup(u) {
|
|
482
484
|
const W = {
|
|
@@ -484,7 +486,7 @@ const ee = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ie = { class: "space
|
|
|
484
486
|
value: "create",
|
|
485
487
|
isPrimary: !0,
|
|
486
488
|
prependIcon: "add"
|
|
487
|
-
}, U =
|
|
489
|
+
}, U = fo(), p = V(), m = V([]), s = V(""), t = ao({
|
|
488
490
|
totalCampaign: 0,
|
|
489
491
|
totalProgram: 0,
|
|
490
492
|
totalMember: 0
|
|
@@ -541,7 +543,7 @@ const ee = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ie = { class: "space
|
|
|
541
543
|
const f = b(() => m.value.filter((h) => {
|
|
542
544
|
var c;
|
|
543
545
|
return h.name.includes(s.value) || ((c = h.pf_campaigns) == null ? void 0 : c.filter((k) => k.name.includes(s.value)).length);
|
|
544
|
-
})), X =
|
|
546
|
+
})), X = Vo(), L = $(), N = V(!0), g = b(() => {
|
|
545
547
|
var h, c, k, T;
|
|
546
548
|
return !X.storeOption || !X.storeOption.company ? -1 : !X.payoutAccount || !X.payoutAccount.enable || X.payoutAccount.status != "APPROVED" ? 0 : (c = (h = X.store) == null ? void 0 : h.categories) != null && c.length ? (T = (k = X.store) == null ? void 0 : k.categories) != null && T.some(
|
|
547
549
|
(y) => y.bundles.some((C) => C.isFeedvibe)
|
|
@@ -637,7 +639,7 @@ const ee = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ie = { class: "space
|
|
|
637
639
|
_: 1
|
|
638
640
|
})
|
|
639
641
|
]),
|
|
640
|
-
i(
|
|
642
|
+
i(qo.Config).getCountry().code == "MY" ? (a(), w(y, {
|
|
641
643
|
key: 0,
|
|
642
644
|
variant: "outlined",
|
|
643
645
|
class: "flex"
|
|
@@ -755,5 +757,5 @@ const ee = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ie = { class: "space
|
|
|
755
757
|
}
|
|
756
758
|
});
|
|
757
759
|
export {
|
|
758
|
-
|
|
760
|
+
Le as default
|
|
759
761
|
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineComponent as M, ref as v, h as d, watch as N, resolveComponent as I, openBlock as b, createBlock as O, unref as r, computed as C, onMounted as B, createElementBlock as P, Fragment as G, createCommentVNode as E, createVNode as L, createElementVNode as w, nextTick as F } from "vue";
|
|
2
|
+
import { useRouter as V, useRoute as S, RouterView as Y } from "vue-router";
|
|
3
|
+
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as U } from "./app-wDQR6dpb.js";
|
|
5
|
+
import { u as H } from "./business-zehruO7m.js";
|
|
6
|
+
import "./index-BEWobmlN.js";
|
|
7
|
+
import { components as p, useSnackbar as x, useDialog as D } from "@feedmepos/ui-library";
|
|
8
|
+
import { R as e } from "./app-Cok2f-SL.js";
|
|
9
|
+
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
10
|
+
import { S as y } from "./index-BENEb_BE.js";
|
|
11
|
+
const q = /* @__PURE__ */ M({
|
|
12
|
+
__name: "NavigationTab",
|
|
13
|
+
setup(k) {
|
|
14
|
+
const t = v(), u = [
|
|
15
|
+
{
|
|
16
|
+
label: "Analytic",
|
|
17
|
+
value: e["$connect-ANALYTIC"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "Campaign",
|
|
21
|
+
value: e["$connect-CAMPAIGN"],
|
|
22
|
+
children: [
|
|
23
|
+
{
|
|
24
|
+
label: "Promotion",
|
|
25
|
+
value: e["$connect-CAMPAIGN_PROMOTION"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "Voucher",
|
|
29
|
+
value: e["$connect-CAMPAIGN_VOUCHER"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: "Broadcast",
|
|
33
|
+
value: e["$connect-CAMPAIGN_BROADCAST"]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "Program",
|
|
39
|
+
value: e["$connect-PROGRAM"],
|
|
40
|
+
children: [
|
|
41
|
+
{
|
|
42
|
+
label: "Tier",
|
|
43
|
+
value: e["$connect-PROGRAM_TIER"]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "Title",
|
|
47
|
+
value: e["$connect-PROGRAM_TITLE"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: "Experience",
|
|
51
|
+
value: e["$connect-PROGRAM_EXPERIENCE"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "Point",
|
|
55
|
+
value: e["$connect-PROGRAM_POINT"],
|
|
56
|
+
badge: () => d(p.FmPill, { variant: "premium" })
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "Credit",
|
|
60
|
+
value: e["$connect-PROGRAM_CREDIT"]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "Game",
|
|
64
|
+
value: e["$connect-PROGRAM_GAME"],
|
|
65
|
+
badge: () => d(p.FmPill, { variant: "premium" })
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "Mission",
|
|
69
|
+
value: e["$connect-PROGRAM_MISSION"]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "Loyalty",
|
|
75
|
+
value: e["$connect-LOYALTY"],
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
label: "Member",
|
|
79
|
+
value: e["$connect-LOYALTY_MEMBER_LIST"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: "Segments",
|
|
83
|
+
value: e["$connect-LOYALTY_SEGMENT"],
|
|
84
|
+
badge: () => d(p.FmPill, { variant: "premium" })
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "Card",
|
|
88
|
+
value: e["$connect-LOYALTY_CARD"],
|
|
89
|
+
badge: () => d(p.FmPill, { variant: "premium" })
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: "Store",
|
|
95
|
+
value: e["$connect-STORE"]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: "Transaction",
|
|
99
|
+
value: e["$connect-TRANSACTION"]
|
|
100
|
+
},
|
|
101
|
+
// {
|
|
102
|
+
// label: 'Marketing material',
|
|
103
|
+
// value: ROUTE_NAME['$connect-MARKETING'],
|
|
104
|
+
// },
|
|
105
|
+
{
|
|
106
|
+
label: "Setting",
|
|
107
|
+
value: e["$connect-SETTING"]
|
|
108
|
+
}
|
|
109
|
+
], m = V(), f = S(), _ = u.reduce((n, o) => [...(o.children ?? []).map((a) => a.value), ...n, o.value], []);
|
|
110
|
+
N(
|
|
111
|
+
() => f,
|
|
112
|
+
(n) => {
|
|
113
|
+
const o = n.matched.map((a) => a.name).reverse();
|
|
114
|
+
t.value = o.find((a) => _.includes(a));
|
|
115
|
+
},
|
|
116
|
+
{ immediate: !0 }
|
|
117
|
+
);
|
|
118
|
+
async function T(n) {
|
|
119
|
+
await m.push({ name: n });
|
|
120
|
+
}
|
|
121
|
+
return (n, o) => {
|
|
122
|
+
var c;
|
|
123
|
+
const a = I("FmCollapsibleTabs");
|
|
124
|
+
return b(), O(a, {
|
|
125
|
+
class: "border-fm-color-neutral-gray-100 border-r py-16 px-4",
|
|
126
|
+
"model-value": (c = r(t)) == null ? void 0 : c.toString(),
|
|
127
|
+
items: u,
|
|
128
|
+
"onUpdate:modelValue": T
|
|
129
|
+
}, null, 8, ["model-value"]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
var j = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
134
|
+
const J = {
|
|
135
|
+
key: 1,
|
|
136
|
+
class: "h-full w-full"
|
|
137
|
+
}, z = ["src"], re = /* @__PURE__ */ M({
|
|
138
|
+
__name: "App",
|
|
139
|
+
setup(k) {
|
|
140
|
+
const t = $(), u = U(), m = H(), f = x(), _ = D(), T = S(), n = v(T.query.showHeader !== "false"), o = v(!1), { currentBusiness: a } = $(), c = v(!1), R = C(() => m.version), h = C(() => {
|
|
141
|
+
const l = t.currentCountry.value || "MY", s = y.getIdToken(), i = a.value._id;
|
|
142
|
+
return `${j.marketingV1Portal}/b/${i}/marketing/overview?showHeader=false&country=${l}&token=${s}`;
|
|
143
|
+
}), A = async () => {
|
|
144
|
+
c.value = !1, await F(), console.log("forceRerender"), y.setBusinessId(a.value._id), await m.readPremium(), !o.value && R.value === "v2" ? t.registerSidebarComponent(q) : t.hideSidebarToggle(!0), o.value = !0, c.value = !0;
|
|
145
|
+
};
|
|
146
|
+
return B(() => {
|
|
147
|
+
if (u.initProvider(f, _), !n.value) {
|
|
148
|
+
const l = document.getElementsByClassName("app-header")[0], s = document.getElementsByClassName("app-sidebar")[0], i = document.getElementsByClassName("app-container")[0], g = document.getElementsByTagName("main")[0];
|
|
149
|
+
l == null || l.classList.add("!hidden"), s == null || s.classList.add("!pt-0"), i == null || i.classList.add("!pt-0"), g == null || g.classList.add("!pt-0"), t.hideSidebarToggle(!0);
|
|
150
|
+
}
|
|
151
|
+
a.value != null && A();
|
|
152
|
+
}), N(
|
|
153
|
+
() => t.currentBusiness.value,
|
|
154
|
+
async (l) => {
|
|
155
|
+
l != null && A();
|
|
156
|
+
}
|
|
157
|
+
), (l, s) => (b(), P(G, null, [
|
|
158
|
+
r(c) && r(R) === "v2" ? (b(), O(r(Y), { key: 0 })) : E("", !0),
|
|
159
|
+
r(c) && r(R) !== "v2" ? (b(), P("div", J, [
|
|
160
|
+
L(X, {
|
|
161
|
+
json: { url: r(h) }
|
|
162
|
+
}, null, 8, ["json"]),
|
|
163
|
+
w("iframe", {
|
|
164
|
+
allow: "clipboard-read; clipboard-write",
|
|
165
|
+
frameBorder: "0",
|
|
166
|
+
height: "100%",
|
|
167
|
+
width: "100%",
|
|
168
|
+
src: r(h)
|
|
169
|
+
}, null, 8, z)
|
|
170
|
+
])) : E("", !0)
|
|
171
|
+
], 64));
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
export {
|
|
175
|
+
re as default
|
|
176
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as P, ref as g, computed as U, onMounted as M, resolveComponent as l, openBlock as i, createElementBlock as f, Fragment as _, createVNode as r, unref as a, createElementVNode as s, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as E, toDisplayString as b, createCommentVNode as H, h as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as Q, p as W } from "./loading-
|
|
5
|
-
import {
|
|
6
|
-
import { u as Y } from "./campaign-
|
|
7
|
-
import { g as F, b as k } from "./dto-
|
|
4
|
+
import { u as Q, p as W } from "./loading-B7ZGAeOi.js";
|
|
5
|
+
import { u as X } from "./business-zehruO7m.js";
|
|
6
|
+
import { u as Y } from "./campaign-BDdGYC5z.js";
|
|
7
|
+
import { g as F, b as k } from "./dto-X3oNeL7n.js";
|
|
8
8
|
import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as te } from "./template-
|
|
11
|
-
import { c as y } from "./index-
|
|
9
|
+
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Co6j2tz0.js";
|
|
10
|
+
import { u as te } from "./template-TVj4e3Q0.js";
|
|
11
|
+
import { c as y } from "./index-Bi8rxPHs.js";
|
|
12
12
|
const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { key: 0 }, ue = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), pe = [
|
|
13
13
|
ue
|
|
14
14
|
], fe = /* @__PURE__ */ s("img", {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-ucUyNm2f.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-C3AmhP2r.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 { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
5
|
+
import "./index-SusoyGmN.js";
|
|
6
|
+
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-ueVq8lE0.js";
|
|
7
|
+
import "./index-Btbk-4q4.js";
|
|
8
|
+
import "./index-CXwywdbf.js";
|
|
9
|
+
import "./index-DEunD6Nb.js";
|
|
10
|
+
import "./index-Cl6-R6oj.js";
|
|
11
11
|
function validateRule(data, r, date) {
|
|
12
12
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
13
13
|
function meetConditions(e) {
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as
|
|
1
|
+
import { defineComponent as Z, ref as g, computed as V, watch as he, onMounted as ee, resolveComponent as f, openBlock as _, createBlock as N, unref as n, isRef as J, withCtx as T, createElementVNode as m, createVNode as l, createElementBlock as x, Fragment as B, renderList as Q, createCommentVNode as I, normalizeClass as ve, createSlots as Ee, withModifiers as Se, h as W } from "vue";
|
|
2
2
|
import { _ as ke } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { h as re } from "./moment-BWErdI6_.js";
|
|
4
4
|
import { useDialog as Te, components as Re } from "@feedmepos/ui-library";
|
|
5
|
-
import { p as ye, u as ne, f as ie } from "./loading-
|
|
6
|
-
import { u as Ae
|
|
7
|
-
import { u as te } from "./membership-
|
|
8
|
-
import { _ as le } from "./index-
|
|
9
|
-
import { m as oe } from "./index-
|
|
10
|
-
import { _ as de } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import { l as
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
5
|
+
import { p as ye, u as ne, f as ie } from "./loading-B7ZGAeOi.js";
|
|
6
|
+
import { u as Ae } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as te } from "./membership-JcEfpV3H.js";
|
|
8
|
+
import { _ as le } from "./index-CXwywdbf.js";
|
|
9
|
+
import { m as oe } from "./index-9ijJtga8.js";
|
|
10
|
+
import { _ as de } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
11
|
+
import "./index-SusoyGmN.js";
|
|
12
|
+
import "./index-ucUyNm2f.js";
|
|
13
|
+
import { l as Ce } from "./index-ueVq8lE0.js";
|
|
14
|
+
import "./index-Btbk-4q4.js";
|
|
15
|
+
import "./index-DEunD6Nb.js";
|
|
16
|
+
import "./index-Cl6-R6oj.js";
|
|
17
|
+
import { g as Oe } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
18
|
+
import { a as Ie } from "./object-qECH92oz.js";
|
|
19
|
+
import { u as Ne } from "./business-zehruO7m.js";
|
|
20
|
+
import { w as xe } from "./xlsx-zY8O-RaE.js";
|
|
21
|
+
import { e as De, C as we } from "./export-COy97xf1.js";
|
|
22
|
+
import { u as Ue, _ as He } from "./usePagination-JoYaROkV.js";
|
|
21
23
|
import { o as Fe } from "./objectId-dwaoBfJX.js";
|
|
22
24
|
const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number type", -1), Be = { class: "space-y-16" }, Me = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number Settings", -1), Ve = { class: "gap-16 grid grid-cols-2" }, Ge = { class: "space-y-16" }, Le = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Card Settings", -1), je = {
|
|
23
25
|
key: 0,
|
|
@@ -26,7 +28,7 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
26
28
|
__name: "CreateCardSheet",
|
|
27
29
|
emits: ["success", "export"],
|
|
28
30
|
setup(e, { expose: i, emit: D }) {
|
|
29
|
-
const { minor: w } = ne, v = te(), y =
|
|
31
|
+
const { minor: w } = ne, v = te(), y = g(), b = g(!1), A = D, h = g(!1);
|
|
30
32
|
function E(p) {
|
|
31
33
|
h.value = p, p && (a.value = {
|
|
32
34
|
quantity: 1,
|
|
@@ -40,7 +42,7 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
44
|
}
|
|
43
|
-
const a =
|
|
45
|
+
const a = g({
|
|
44
46
|
quantity: 1,
|
|
45
47
|
code: "",
|
|
46
48
|
codeConfig: {
|
|
@@ -76,12 +78,12 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
76
78
|
{ label: "Alphabetic Uppercase", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" },
|
|
77
79
|
{ label: "Numbers", value: "0123456789" },
|
|
78
80
|
{ label: "Custom", value: "" }
|
|
79
|
-
], F =
|
|
81
|
+
], F = g(H[0].value), S = g("bulk"), U = g(0), P = V(
|
|
80
82
|
() => {
|
|
81
83
|
var p;
|
|
82
84
|
return (p = v.membership.design) == null ? void 0 : p[U.value];
|
|
83
85
|
}
|
|
84
|
-
), r =
|
|
86
|
+
), r = g(!1), o = V(
|
|
85
87
|
() => v.sortedStoreCategories.flatMap((p) => p.bundles)
|
|
86
88
|
);
|
|
87
89
|
async function u(p) {
|
|
@@ -115,7 +117,7 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
115
117
|
), ee(async () => {
|
|
116
118
|
await v.readMemberStore();
|
|
117
119
|
}), (p, t) => {
|
|
118
|
-
const R =
|
|
120
|
+
const R = f("FmRadio"), M = f("FmRadioGroup"), c = f("FmSwitch"), j = f("FmStepperField"), $ = f("FmSelect"), G = f("FmTextField"), fe = f("FmTextarea"), K = f("FmButton"), ge = f("FmForm"), be = f("FmSideSheet");
|
|
119
121
|
return _(), N(be, {
|
|
120
122
|
"max-width": 560,
|
|
121
123
|
"dismiss-away": !0,
|
|
@@ -142,7 +144,7 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
142
144
|
])
|
|
143
145
|
]),
|
|
144
146
|
default: T(() => [
|
|
145
|
-
l(
|
|
147
|
+
l(ge, {
|
|
146
148
|
ref_key: "form",
|
|
147
149
|
ref: y,
|
|
148
150
|
class: "space-y-40",
|
|
@@ -236,7 +238,7 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
236
238
|
"helper-text": `${n(a).quantity} card will be created`
|
|
237
239
|
}, null, 8, ["modelValue", "rules", "helper-text"])
|
|
238
240
|
], 64)) : I("", !0),
|
|
239
|
-
n(S) !== "bulk" ? (_(), N(
|
|
241
|
+
n(S) !== "bulk" ? (_(), N(fe, {
|
|
240
242
|
key: 1,
|
|
241
243
|
modelValue: n(a).code,
|
|
242
244
|
"onUpdate:modelValue": t[9] || (t[9] = (s) => n(a).code = s),
|
|
@@ -301,7 +303,7 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
301
303
|
src: s.image,
|
|
302
304
|
key: `image_${Y}`,
|
|
303
305
|
class: ve(["w-[112px] h-[63px] cursor-pointer", `${n(U) === Y ? "border-[2px] border-fm-color-primary" : ""}`]),
|
|
304
|
-
onClick: (
|
|
306
|
+
onClick: (fn) => U.value = Y,
|
|
305
307
|
alt: `ai_image_predict_${Y}`,
|
|
306
308
|
style: { objectFit: "cover" }
|
|
307
309
|
}, null, 10, We))), 128))
|
|
@@ -318,7 +320,7 @@ const Pe = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-600" }, "Number
|
|
|
318
320
|
};
|
|
319
321
|
}
|
|
320
322
|
});
|
|
321
|
-
var q = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e1f996da-c751-4a94-b7a7-8c6ef640417a", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.36", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.4 npm/? node/v20.18.1 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.29", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_e1f996da-c751-4a94-b7a7-8c6ef640417a", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.1", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-8.12", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.8.37", npm_package_dependencies_fabric: "^6.4.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "708", npm_package_dependencies__feedmepos_ui_library: "1.3.5", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_devDependencies_tailwindcss: "^3.4.4", npm_package_devDependencies_typescript: "^5.4.5", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.21", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250105.1.0", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.6", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:6036", GITHUB_WORKFLOW: "Publish mf-connect - production", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.111.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12761044796", STATS_VMFE: "true", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.5", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b3fb369579258047b5b517a7d3e677dcc449705d", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[PROD] publish-mf-connect.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3c64e3aa-8ce9-415a-89f5-b2443eb5f282", INVOCATION_ID: "c11d8423cc5745a3bf51a5855306c895", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.1/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "18", GITHUB_TRIGGERING_ACTOR: "qaijunse", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.13", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 337", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "^2.10.4", npm_lifecycle_script: "vite build --mode fmmf:prod", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.21-prod", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "b3fb369579258047b5b517a7d3e677dcc449705d", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.3", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "qaijunse", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_dependencies_firebase: "^10.12.2", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_e1f996da-c751-4a94-b7a7-8c6ef640417a", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.4/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_e1f996da-c751-4a94-b7a7-8c6ef640417a", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e1f996da-c751-4a94-b7a7-8c6ef640417a", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", NODE_ENV: "production", FEEDME_NAMESPACE: "prod", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", AUTH_URL: "https://portal-v2.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedme.cc", CRM_APP_URL: "crm.feedme.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedme.cc", CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", PAYMENT_PORTAL_URL: "https://portal.feedme.cc/payment/payout-account" } }, z = Math.floor(Math.random() * 16777215), pe = d.index = parseInt(Math.random() * 16777215, 10), me = (typeof q > "u" || typeof q.pid != "number" ? Math.floor(Math.random() * 1e5) : q.pid) % 65535, ue = (() => {
|
|
323
|
+
var q = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_499d7db9-4c04-486f-bb0e-3af7ef36e8f3", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.36", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.5 npm/? node/v20.18.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.29", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_499d7db9-4c04-486f-bb0e-3af7ef36e8f3", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.1", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-8.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.8.37", npm_package_dependencies_fabric: "^6.4.2", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "718", npm_package_dependencies__feedmepos_ui_library: "1.3.5", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_devDependencies_tailwindcss: "^3.4.4", npm_package_devDependencies_typescript: "^5.4.5", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.21", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250202.1.0", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.6", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.11/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.5/x64", JOURNAL_STREAM: "8:7186", GITHUB_WORKFLOW: "Publish mf-connect - production", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.111.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13150412019", STATS_VMFE: "true", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.5", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "100427cd9e399abea34f552e5152adc4844d62b0", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[PROD] publish-mf-connect.yml@refs/heads/main", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_4aeccf97-d1d4-480d-bec4-f3ea91e95d56", INVOCATION_ID: "8fc18aadd44649a8b9d4133dd93d38b3", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "19", GITHUB_TRIGGERING_ACTOR: "qaijunse", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.13", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 263", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "^2.10.4", npm_lifecycle_script: "vite build --mode fmmf:prod", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.22-prod", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "100427cd9e399abea34f552e5152adc4844d62b0", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.3.3", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "qaijunse", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_dependencies_firebase: "^10.12.2", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_499d7db9-4c04-486f-bb0e-3af7ef36e8f3", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.5/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_499d7db9-4c04-486f-bb0e-3af7ef36e8f3", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_499d7db9-4c04-486f-bb0e-3af7ef36e8f3", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", NODE_ENV: "production", FEEDME_NAMESPACE: "prod", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", AUTH_URL: "https://portal-v2.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedme.cc", CRM_APP_URL: "crm.feedme.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedme.cc", CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", PAYMENT_PORTAL_URL: "https://portal.feedme.cc/payment/payout-account" } }, z = Math.floor(Math.random() * 16777215), pe = d.index = parseInt(Math.random() * 16777215, 10), me = (typeof q > "u" || typeof q.pid != "number" ? Math.floor(Math.random() * 1e5) : q.pid) % 65535, ue = (() => {
|
|
322
324
|
try {
|
|
323
325
|
return _Buffer;
|
|
324
326
|
} catch {
|
|
@@ -458,16 +460,16 @@ d.prototype[en] = function() {
|
|
|
458
460
|
};
|
|
459
461
|
d.prototype.toJSON = d.prototype.toHexString;
|
|
460
462
|
d.prototype.toString = d.prototype.toHexString;
|
|
461
|
-
const nn = /* @__PURE__ */
|
|
463
|
+
const nn = /* @__PURE__ */ Oe(Je), tn = {
|
|
462
464
|
key: 0,
|
|
463
465
|
class: "grid grid-cols-1 gap-8"
|
|
464
466
|
}, on = { class: "flex items-center gap-8" }, sn = { class: "flex items-center gap-8" }, an = 5, rn = /* @__PURE__ */ Z({
|
|
465
467
|
__name: "CardDesignSheet",
|
|
466
468
|
emits: ["success"],
|
|
467
469
|
setup(e, { expose: i, emit: D }) {
|
|
468
|
-
const { minor: w } = ne, v = te(), y = Te(), b =
|
|
469
|
-
|
|
470
|
-
const A =
|
|
470
|
+
const { minor: w } = ne, v = te(), y = Te(), b = g(!1);
|
|
471
|
+
g(), g(!1);
|
|
472
|
+
const A = g(), h = g(null);
|
|
471
473
|
V(() => {
|
|
472
474
|
var r, o;
|
|
473
475
|
return Math.min((((o = (r = A.value) == null ? void 0 : r.design) == null ? void 0 : o.length) ?? 0) + 1, an);
|
|
@@ -475,7 +477,7 @@ const nn = /* @__PURE__ */ Ce(Je), tn = {
|
|
|
475
477
|
const E = D, a = V(() => {
|
|
476
478
|
var r, o;
|
|
477
479
|
return ((o = (r = v.membership) == null ? void 0 : r.design) == null ? void 0 : o.filter((u) => u.image)) || [];
|
|
478
|
-
}), C =
|
|
480
|
+
}), C = g(!1);
|
|
479
481
|
function H(r) {
|
|
480
482
|
C.value = r;
|
|
481
483
|
}
|
|
@@ -486,7 +488,7 @@ const nn = /* @__PURE__ */ Ce(Je), tn = {
|
|
|
486
488
|
await w(
|
|
487
489
|
async () => {
|
|
488
490
|
var u;
|
|
489
|
-
const r =
|
|
491
|
+
const r = Ie(A.value), o = Ce.parse(r);
|
|
490
492
|
if (o.design = (o == null ? void 0 : o.design) || [], h.value) {
|
|
491
493
|
const p = nn().toHexString(), t = await ie.update(
|
|
492
494
|
ie.designPath(p, h.value),
|
|
@@ -527,7 +529,7 @@ const nn = /* @__PURE__ */ Ce(Je), tn = {
|
|
|
527
529
|
}), ee(async () => {
|
|
528
530
|
await P(), a.value.length || (b.value = !0);
|
|
529
531
|
}), (r, o) => {
|
|
530
|
-
const u =
|
|
532
|
+
const u = f("FmButton"), p = f("FmSideSheet");
|
|
531
533
|
return _(), N(p, {
|
|
532
534
|
"max-width": 560,
|
|
533
535
|
"dismiss-away": !0,
|
|
@@ -619,10 +621,10 @@ const nn = /* @__PURE__ */ Ce(Je), tn = {
|
|
|
619
621
|
}, null, -1), cn = /* @__PURE__ */ m("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
620
622
|
/* @__PURE__ */ m("div", { class: "fm-typo-en-title-sm-800" }, "Create member card"),
|
|
621
623
|
/* @__PURE__ */ m("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Track and manage member card to keep customers engaged with your business. ")
|
|
622
|
-
], -1), _n = { class: "flex gap-x-8" },
|
|
624
|
+
], -1), _n = { class: "flex gap-x-8" }, Mn = /* @__PURE__ */ Z({
|
|
623
625
|
__name: "Card",
|
|
624
626
|
setup(e) {
|
|
625
|
-
const { minor: i, global: D } = ne, w =
|
|
627
|
+
const { minor: i, global: D } = ne, w = g(), v = g(), y = Ne(), b = te(), A = V(
|
|
626
628
|
() => b.sortedStoreCategories.flatMap((r) => r.bundles)
|
|
627
629
|
), h = [
|
|
628
630
|
{
|
|
@@ -712,7 +714,7 @@ const nn = /* @__PURE__ */ Ce(Je), tn = {
|
|
|
712
714
|
await y.readPremium(), await b.readMemberStore(), await b.readMembership(), await S();
|
|
713
715
|
});
|
|
714
716
|
}), (r, o) => {
|
|
715
|
-
const u =
|
|
717
|
+
const u = f("FmPill"), p = f("FmPageHead"), t = f("FmSearch"), R = f("FmButton"), M = f("FmCard");
|
|
716
718
|
return _(), x(B, null, [
|
|
717
719
|
l(p, {
|
|
718
720
|
title: "Card",
|
|
@@ -818,5 +820,5 @@ const nn = /* @__PURE__ */ Ce(Je), tn = {
|
|
|
818
820
|
}
|
|
819
821
|
});
|
|
820
822
|
export {
|
|
821
|
-
|
|
823
|
+
Mn as default
|
|
822
824
|
};
|