@feedmepos/mf-connect 0.1.38-beta.61 → 0.1.38-beta.63
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-CM7mh-iO.js → Analytic-99208ZGh.js} +14 -14
- package/dist/{App-CeCzzsDu.js → App-BkTi1rTp.js} +7 -7
- package/dist/{AuditLogs-VWx8DFKA.js → AuditLogs-BqKgDkGp.js} +9 -9
- package/dist/{Bin-vUuol_I9.js → Bin-C_vWkAOc.js} +8 -8
- package/dist/Broadcast-_s9fmcsY.js +267 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CV-zhJ15.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CgDMf3Yl.js} +6 -6
- package/dist/{Card-CeIeGET1.js → Card-RfSe4_GI.js} +17 -17
- package/dist/{Collections-CF_OcAL3.js → Collections-DgWI87e9.js} +7 -7
- package/dist/Credit-DBy_Xcpq.js +261 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D5T444y0.js} +203 -199
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BZfchHlT.js → EffectSheet.vue_vue_type_style_index_0_lang-BwSXXdG-.js} +6 -6
- package/dist/Experience-DBg5cZxJ.js +260 -0
- package/dist/{FileSaver.min-lgg_oBvT.js → FileSaver.min-Bzi1BTgf.js} +1 -1
- package/dist/Game-CSilatA5.js +331 -0
- package/dist/{GenerateMaterial-B5A7mx2y.js → GenerateMaterial-7DLj60E8.js} +6 -6
- package/dist/{Grab-BgiMqwvj.js → Grab-CM0RcU3-.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DZ8DHrQ_.js → ImageInput.vue_vue_type_script_setup_true_lang-D3lV7JVV.js} +1 -1
- package/dist/{Index-B85ops8K.js → Index-DIpMb8rL.js} +10 -10
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-B5rIjxYd.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D6L3PiGD.js} +1 -1
- package/dist/{MainLayout-CXGVkD-W.js → MainLayout-C0Bq_pRh.js} +1 -1
- package/dist/{Marketing-Bnijl7lA.js → Marketing-CiOCRSE8.js} +4 -4
- package/dist/{MarketingMaterialEdit-BlUKwSoP.js → MarketingMaterialEdit-BHJPku7e.js} +4 -4
- package/dist/{Member-sT853g51.js → Member-Blcc8M5S.js} +11 -11
- package/dist/{MemberList-DYT5_fSP.js → MemberList--Ua0eKo0.js} +25 -25
- package/dist/{MemberTransactions-Cqce5ebe.js → MemberTransactions-C0_OArai.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Dq0Hswj8.js → MessageInput.vue_vue_type_script_setup_true_lang-CO8MuZju.js} +9834 -9724
- package/dist/Mission-Dp7QTUdu.js +335 -0
- package/dist/{Overview-B0rwrHR1.js → Overview-B-puEtTe.js} +18 -18
- package/dist/Point-BMUeLRXE.js +263 -0
- package/dist/Promotion-CZjW5Eny.js +397 -0
- package/dist/{Queue-SVqRUlD_.js → Queue-CZ8a1tcg.js} +10 -10
- package/dist/{Record-BTjg4ihy.js → Record-BJXOqe51.js} +9 -9
- package/dist/{Reward-DW58VMRO.js → Reward-CYaP48K9.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-s1RI55Rc.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bvq4GrL1.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Os17lXBX.js → RuleGroup.vue_vue_type_script_setup_true_lang-DnfvXZOL.js} +14 -14
- package/dist/{Segment-Dny8pxP1.js → Segment-D4vjzSgr.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Czx7rqiq.js → SelectItems.vue_vue_type_script_setup_true_lang-iDaC99DI.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-EgVxUG_N.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-mkt1o9sO.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CO0fgI3K.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-UHTvMbYY.js} +4 -4
- package/dist/{Setting-CjcnxK34.js → Setting-BxTVlSNI.js} +13 -13
- package/dist/{SettingAdvertisements-CIyDF4C8.js → SettingAdvertisements-DvuFXOGs.js} +11 -11
- package/dist/{Store-B8k5YVqU.js → Store-xF8dYQbN.js} +20 -20
- package/dist/{StoreRewards-BW08rwpL.js → StoreRewards-BxW_FxY3.js} +14 -14
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BfFSfE2H.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DvPC3YQN.js} +19 -19
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CZkKjUNQ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CDgL0WOA.js} +1 -1
- package/dist/{Tier-DKzu4tYw.js → Tier-C73TRPVo.js} +23 -23
- package/dist/{Title-BK-TXatJ.js → Title-DD4gP_Kc.js} +20 -20
- package/dist/{Transaction-Duayg1jd.js → Transaction-BGheiJ8F.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BAR9h1TV.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-ne1fn7b7.js} +6 -6
- package/dist/{Voucher-BEVAkNeJ.js → Voucher-CRatGWk7.js} +164 -142
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DvFy9Z6X.js → VoucherEditor.vue_vue_type_script_setup_true_lang-2_F9hEkK.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CU_Sx2PM.js → ZodTextField.vue_vue_type_script_setup_true_lang-DNEs_60Z.js} +2 -2
- package/dist/{app-IvbII0ql.js → app-UaX9LGGa.js} +7966 -7880
- package/dist/app.js +1 -1
- package/dist/{business-BFIwFfkq.js → business-bUX6raMw.js} +1 -1
- package/dist/{campaign-RuIwxc4y.js → campaign-BwqSJn1x.js} +8 -8
- package/dist/{campaign-w9j4I4jn.js → campaign-DUDuTel5.js} +2 -2
- package/dist/{campaign.enum-IHLsfdik.js → campaign.enum-1k6333ca.js} +1 -1
- package/dist/{campaign.fn-B_P1MkRV.js → campaign.fn-CgJi24jv.js} +31 -31
- package/dist/{collectible.enum-CUgSjO08.js → collectible.enum-DkQ5IEM4.js} +1 -1
- package/dist/{collection.fn-CrfnNb41.js → collection.fn-Cc4UF4PF.js} +2 -2
- package/dist/{dto-jwO_sX9I.js → dto-BauGrz7j.js} +4 -4
- package/dist/duplicateCampaign-C1zAMcB8.js +51 -0
- package/dist/{effect--0g8PNyt.js → effect-BzcguSGr.js} +1 -1
- package/dist/{email-addresses-HtsxvXw9.js → email-addresses-BxvYeGJM.js} +2 -2
- package/dist/{export-CFEwMRmd.js → export-CtEjDYVF.js} +2 -2
- package/dist/{helper-CCfb24PO.js → helper-B9MQjEoz.js} +1 -1
- package/dist/{index-BZEM0T2A.js → index-BhKOx9rm.js} +1 -1
- package/dist/{index-Bflu4Rft.js → index-Bx_lUMxi.js} +3 -3
- package/dist/{index-wzSeRJAd.js → index-CJIGs8yP.js} +1 -1
- package/dist/{index-CkuPY85X.js → index-COST516f.js} +1 -1
- package/dist/{index-BR3UbZ0F.js → index-CR8jJQP8.js} +1 -1
- package/dist/{index-CZPcwcUo.js → index-CRGgyR29.js} +3 -3
- package/dist/{index-DpjYgKTN.js → index-Cr9kGG1v.js} +1 -1
- package/dist/{index-CppLPpqB.js → index-Cvcgqzy5.js} +3 -3
- package/dist/{index-DDYH-IEX.js → index-DJqWLQvn.js} +1 -1
- package/dist/{index-CR3f3BXQ.js → index-DNrDjbLS.js} +1023 -1023
- package/dist/{index-B-AMMFfT.js → index-DYDOXl_b.js} +4 -4
- package/dist/{index-DdZdHioZ.js → index-hOEO4SV6.js} +6 -6
- package/dist/{index-Dic_WcAL.js → index-lbAEZ5CZ.js} +1 -1
- package/dist/{index.esm2017-CUnjzfU-.js → index.esm2017-6u5qxmWE.js} +1 -1
- package/dist/{loading-CivgDw5C.js → loading-Cpe50hSj.js} +2 -2
- package/dist/{lodash-BSbv_9TG.js → lodash-Bdhnyywe.js} +1 -1
- package/dist/{membership-j2w1YUO-.js → membership-C_VLzMwg.js} +3 -3
- package/dist/{money-DL-x8hiT.js → money-C2cELkXt.js} +1 -1
- package/dist/{number-D1yoFGEr.js → number-BFQi0hyw.js} +1 -1
- package/dist/objectid-WFNy_Dkj.js +145 -0
- package/dist/{plugins-P-V4XWmW.js → plugins-CTcRVNU6.js} +3 -3
- package/dist/{reward-BqMlBQRu.js → reward-zY_9dHpb.js} +1 -1
- package/dist/{rule-CztsLdki.js → rule-UZYsfn59.js} +3 -3
- package/dist/{rule-builder-DANv7Rmz.js → rule-builder-BW49BaXF.js} +1 -1
- package/dist/{template-Dbz3FhHK.js → template-CjZH_5cu.js} +6 -6
- package/dist/{timezone-BgVqObBq.js → timezone-CQrMBJum.js} +2 -2
- package/dist/{trigger-CbriUibd.js → trigger-BHqKZjrT.js} +5 -5
- package/dist/{usePagination-DtNK7W0U.js → usePagination-HabuQYCy.js} +1 -1
- package/dist/{user-CVapqHfr.js → user-YZUgk9lA.js} +1 -1
- package/dist/{vue-i18n-tpDAnnmD.js → vue-i18n-C1KlZBjR.js} +252 -252
- package/dist/{xlsx-EewcN2uY.js → xlsx-CMv5r9NR.js} +1 -1
- package/dist/{zod-D-wiCQRJ.js → zod-jH-8jgB1.js} +1 -1
- package/package.json +3 -3
- package/dist/Broadcast-6VXz4-IG.js +0 -233
- package/dist/Credit-BUqGOyp_.js +0 -226
- package/dist/Experience-BxiFH_uV.js +0 -225
- package/dist/Game-BzYW0LfY.js +0 -300
- package/dist/Mission-Q5_sGgrm.js +0 -304
- package/dist/Point-BGYFMvev.js +0 -228
- package/dist/Promotion-0acd63nA.js +0 -364
- package/dist/objectid-CHab6j3r.js +0 -145
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, ref as v, resolveComponent as u, openBlock as f, createBlock as F, unref as a, isRef as Z, withCtx as S, createElementVNode as i, createVNode as l, computed as ee, h as oe, onMounted as te, createElementBlock as T, Fragment as V, renderList as ne, resolveDynamicComponent as ae, toDisplayString as g } from "vue";
|
|
2
|
-
import { _ as se } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { useDialog as re, components as ie } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as M, p as $ } from "./plugins-P-V4XWmW.js";
|
|
5
|
-
import { u as le } from "./loading-CivgDw5C.js";
|
|
6
|
-
import { u as ce } from "./business-BFIwFfkq.js";
|
|
7
|
-
import { u as me } from "./campaign-w9j4I4jn.js";
|
|
8
|
-
import { u as ue } from "./vue-i18n-tpDAnnmD.js";
|
|
9
|
-
import { g as D, a as de, b as N } from "./campaign-RuIwxc4y.js";
|
|
10
|
-
import { e as j } from "./effect--0g8PNyt.js";
|
|
11
|
-
import { _ as pe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js";
|
|
12
|
-
import { c as h } from "./index-DpjYgKTN.js";
|
|
13
|
-
import { u as fe } from "./template-Dbz3FhHK.js";
|
|
14
|
-
import { _ as q } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
15
|
-
const ye = { class: "space-y-8" }, ge = /* @__PURE__ */ K({
|
|
16
|
-
__name: "QueueSheet",
|
|
17
|
-
emits: ["update:model-value"],
|
|
18
|
-
setup(U, { expose: t, emit: L }) {
|
|
19
|
-
const p = v(!1), _ = v([]);
|
|
20
|
-
async function k() {
|
|
21
|
-
p.value = !0;
|
|
22
|
-
const r = await h.getPromotionQueue();
|
|
23
|
-
console.log(r, "jobs"), _.value = r;
|
|
24
|
-
}
|
|
25
|
-
const w = [
|
|
26
|
-
{
|
|
27
|
-
header: "Started At",
|
|
28
|
-
accessorFn: (r) => r.createdAt,
|
|
29
|
-
enableSorting: !0
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
header: "Campaigns",
|
|
33
|
-
accessorFn: (r) => r.campaigns
|
|
34
|
-
// cell(props) {
|
|
35
|
-
// const r = props.row.original;
|
|
36
|
-
// return h('div', {
|
|
37
|
-
// innerHTML: r.campaigns.map((c: any) => c.name).join(', '),
|
|
38
|
-
// });
|
|
39
|
-
// },
|
|
40
|
-
}
|
|
41
|
-
];
|
|
42
|
-
return t({
|
|
43
|
-
showSheet: k
|
|
44
|
-
}), (r, m) => {
|
|
45
|
-
const b = u("FmTable"), P = u("FmSideSheet");
|
|
46
|
-
return f(), F(P, {
|
|
47
|
-
"max-width": 550,
|
|
48
|
-
header: "Promotion Sync Queue",
|
|
49
|
-
modelValue: a(p),
|
|
50
|
-
"onUpdate:modelValue": [
|
|
51
|
-
m[1] || (m[1] = (s) => Z(p) ? p.value = s : null),
|
|
52
|
-
m[2] || (m[2] = (s) => p.value = s)
|
|
53
|
-
]
|
|
54
|
-
}, {
|
|
55
|
-
default: S(() => [
|
|
56
|
-
i("div", ye, [
|
|
57
|
-
m[3] || (m[3] = i("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Promotion synchronizing to your restaurant(s) is queued here. Depending on the number of campaigns and restaurants, this process may take several minutes. No task displayed here means there are no pending promotions to sync. ", -1)),
|
|
58
|
-
l(b, {
|
|
59
|
-
modelValue: r.tableRef,
|
|
60
|
-
"onUpdate:modelValue": m[0] || (m[0] = (s) => r.tableRef = s),
|
|
61
|
-
"column-filter": r.jobFilters,
|
|
62
|
-
"column-defs": w,
|
|
63
|
-
"row-data": a(_),
|
|
64
|
-
"hide-footer": a(_).length <= 10
|
|
65
|
-
}, null, 8, ["modelValue", "column-filter", "row-data", "hide-footer"])
|
|
66
|
-
])
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["modelValue"]);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}), he = { class: "px-24 flex flex-col gap-y-16" }, _e = { class: "flex items-center justify-between w-full" }, be = { class: "flex gap-8 overflow-x-auto" }, ve = { class: "space-y-8" }, we = { class: "flex w-full gap-4 items-center" }, xe = { class: "space-y-4" }, Ce = { class: "fm-typo-en-body-lg-600" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "flex flex-col gap-16 text-center" }, Pe = { class: "fm-typo-en-title-sm-800" }, Te = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = /* @__PURE__ */ K({
|
|
73
|
-
__name: "Promotion",
|
|
74
|
-
setup(U) {
|
|
75
|
-
const { t } = ue(), L = {
|
|
76
|
-
label: t("connect.promotion.createCampaign"),
|
|
77
|
-
value: "create",
|
|
78
|
-
isPrimary: !0,
|
|
79
|
-
prependIcon: "add"
|
|
80
|
-
}, p = {
|
|
81
|
-
label: "Force sync",
|
|
82
|
-
value: "sync",
|
|
83
|
-
isPrimary: !1,
|
|
84
|
-
prependIcon: "refresh"
|
|
85
|
-
}, _ = {
|
|
86
|
-
label: "Queue",
|
|
87
|
-
value: "queue",
|
|
88
|
-
isPrimary: !1,
|
|
89
|
-
prependIcon: "work_history"
|
|
90
|
-
}, k = fe("PROMOTION", re()), w = ce(), r = me(), { global: m, minor: b } = le, P = [
|
|
91
|
-
{
|
|
92
|
-
label: "Bill promotion",
|
|
93
|
-
value: "BILL"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: "Item promotion",
|
|
97
|
-
value: "ITEM"
|
|
98
|
-
}
|
|
99
|
-
], s = v({
|
|
100
|
-
searchKey: "",
|
|
101
|
-
location: [],
|
|
102
|
-
effectType: []
|
|
103
|
-
});
|
|
104
|
-
function E(e) {
|
|
105
|
-
const o = s.value.location;
|
|
106
|
-
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((d) => {
|
|
107
|
-
var c;
|
|
108
|
-
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(d);
|
|
109
|
-
}) : e.targetLocation.includes(o);
|
|
110
|
-
}
|
|
111
|
-
function Q(e) {
|
|
112
|
-
var c, C;
|
|
113
|
-
const o = s.value.effectType;
|
|
114
|
-
if (!o || o.length === 0) return !0;
|
|
115
|
-
const d = (C = (c = e.effect) == null ? void 0 : c.options) == null ? void 0 : C.target;
|
|
116
|
-
return o.includes(d);
|
|
117
|
-
}
|
|
118
|
-
const y = ee(
|
|
119
|
-
() => r.campaigns.promotion.filter(
|
|
120
|
-
(e) => E(e) && Q(e)
|
|
121
|
-
)
|
|
122
|
-
), H = [
|
|
123
|
-
{
|
|
124
|
-
header: t("connect.promotion.promotionTitle"),
|
|
125
|
-
accessorFn: (e) => e.name
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
header: t("connect.promotion.campaignDate"),
|
|
129
|
-
accessorFn: (e) => D(e)
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
header: t("connect.promotion.status"),
|
|
133
|
-
accessorFn: (e) => de(e),
|
|
134
|
-
cell(e) {
|
|
135
|
-
return N(e.row.original);
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
header: t("connect.promotion.type"),
|
|
140
|
-
accessorFn: (e) => `${M.title(e.effect.options.target)} promotion`
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
header: t("connect.promotion.summary"),
|
|
144
|
-
accessorFn: (e) => j(e.effect)
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
header: t("connect.promotion.actions"),
|
|
148
|
-
cell(e) {
|
|
149
|
-
return oe(ie.FmButton, {
|
|
150
|
-
variant: "tertiary",
|
|
151
|
-
icon: "delete",
|
|
152
|
-
iconColor: "neutral-gray-400",
|
|
153
|
-
onClick: (o) => {
|
|
154
|
-
o.stopPropagation(), R(e.row.original);
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
], O = v(), I = v();
|
|
160
|
-
async function R(e) {
|
|
161
|
-
await $.remove(
|
|
162
|
-
t("connect.promotion.confirmRemove", { name: e.name })
|
|
163
|
-
) && await b(
|
|
164
|
-
async () => {
|
|
165
|
-
await h.delete(e._id), await r.read("PROMOTION");
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
message: t("connect.promotion.removing", { name: e.name }),
|
|
169
|
-
successMessage: t("connect.promotion.removedSuccessfully", {
|
|
170
|
-
name: e.name
|
|
171
|
-
})
|
|
172
|
-
}
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
async function x(e) {
|
|
176
|
-
e ? await o() : k.open(async (d) => {
|
|
177
|
-
await o(d);
|
|
178
|
-
});
|
|
179
|
-
async function o(d) {
|
|
180
|
-
var c;
|
|
181
|
-
(c = O.value) == null || c.showSheet(
|
|
182
|
-
!0,
|
|
183
|
-
"PROMOTION",
|
|
184
|
-
e ? await h.readById(e._id) : void 0,
|
|
185
|
-
d
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
async function z(e) {
|
|
190
|
-
await b(
|
|
191
|
-
async () => {
|
|
192
|
-
e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await r.read("PROMOTION");
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
message: t(
|
|
196
|
-
e.campaign._id ? "connect.promotion.updating" : "connect.promotion.creating"
|
|
197
|
-
),
|
|
198
|
-
successMessage: t(
|
|
199
|
-
e.campaign._id ? "connect.promotion.updatedSuccessfully" : "connect.promotion.createdSuccessfully"
|
|
200
|
-
)
|
|
201
|
-
}
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
async function G(e) {
|
|
205
|
-
var o;
|
|
206
|
-
switch (e) {
|
|
207
|
-
case "create":
|
|
208
|
-
x();
|
|
209
|
-
break;
|
|
210
|
-
case "sync":
|
|
211
|
-
await $.confirm(
|
|
212
|
-
"Are you sure you want to synchronize all promotions to POS?",
|
|
213
|
-
"Force sync"
|
|
214
|
-
) && b(
|
|
215
|
-
async () => {
|
|
216
|
-
await h.syncAllPromotion();
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
message: "Syncing promotions...",
|
|
220
|
-
successMessage: "All promotions synced"
|
|
221
|
-
}
|
|
222
|
-
);
|
|
223
|
-
break;
|
|
224
|
-
case "queue":
|
|
225
|
-
(o = I.value) == null || o.showSheet();
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
return te(async () => {
|
|
230
|
-
await m(async () => {
|
|
231
|
-
await w.readLocations(), await r.read("PROMOTION");
|
|
232
|
-
});
|
|
233
|
-
}), (e, o) => {
|
|
234
|
-
const d = u("FmPageHead"), c = u("FmSearch"), C = u("FmTable"), J = u("FmChip"), B = u("FmButton"), W = u("FmListItem"), X = u("FmList"), Y = u("FmCard");
|
|
235
|
-
return f(), T(V, null, [
|
|
236
|
-
l(d, {
|
|
237
|
-
title: a(t)("connect.promotion.title"),
|
|
238
|
-
actions: a(y).length > 0 ? [L, p, _] : [],
|
|
239
|
-
"onClick:action": G
|
|
240
|
-
}, null, 8, ["title", "actions"]),
|
|
241
|
-
i("div", he, [
|
|
242
|
-
l(c, {
|
|
243
|
-
modelValue: s.value.searchKey,
|
|
244
|
-
"onUpdate:modelValue": o[0] || (o[0] = (n) => s.value.searchKey = n),
|
|
245
|
-
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
246
|
-
placeholder: a(t)("connect.promotion.search"),
|
|
247
|
-
collapsible: ""
|
|
248
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
249
|
-
a(y) && a(y).length > 0 ? (f(), T(V, { key: 0 }, [
|
|
250
|
-
i("div", _e, [
|
|
251
|
-
i("div", be, [
|
|
252
|
-
l(q, {
|
|
253
|
-
label: `${a(t)("connect.common.location")}: `,
|
|
254
|
-
"right-icon": "keyboard_arrow_down",
|
|
255
|
-
modelValue: s.value.location,
|
|
256
|
-
"onUpdate:modelValue": o[1] || (o[1] = (n) => s.value.location = n),
|
|
257
|
-
icon: "storefront",
|
|
258
|
-
"show-item-label": !0,
|
|
259
|
-
items: a(w).locationOptions
|
|
260
|
-
}, null, 8, ["label", "modelValue", "items"]),
|
|
261
|
-
l(q, {
|
|
262
|
-
label: "Type:",
|
|
263
|
-
"right-icon": "keyboard_arrow_down",
|
|
264
|
-
modelValue: s.value.effectType,
|
|
265
|
-
"onUpdate:modelValue": o[2] || (o[2] = (n) => s.value.effectType = n),
|
|
266
|
-
icon: "filter_list",
|
|
267
|
-
"show-item-label": !0,
|
|
268
|
-
items: P
|
|
269
|
-
}, null, 8, ["modelValue"])
|
|
270
|
-
]),
|
|
271
|
-
l(c, {
|
|
272
|
-
modelValue: s.value.searchKey,
|
|
273
|
-
"onUpdate:modelValue": o[3] || (o[3] = (n) => s.value.searchKey = n),
|
|
274
|
-
class: "xs:hidden sm:hidden",
|
|
275
|
-
placeholder: "search",
|
|
276
|
-
collapsible: ""
|
|
277
|
-
}, null, 8, ["modelValue"])
|
|
278
|
-
]),
|
|
279
|
-
l(C, {
|
|
280
|
-
class: "xs:hidden sm:hidden",
|
|
281
|
-
"row-data": a(y),
|
|
282
|
-
"column-defs": H,
|
|
283
|
-
"search-value": s.value.searchKey,
|
|
284
|
-
"column-filter": [],
|
|
285
|
-
onRowClick: o[4] || (o[4] = (n) => x(n.original)),
|
|
286
|
-
"hide-footer": a(y).length < 10
|
|
287
|
-
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
288
|
-
l(X, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
289
|
-
default: S(() => [
|
|
290
|
-
(f(!0), T(V, null, ne(a(y).filter(
|
|
291
|
-
(n) => n.name.toLowerCase().includes(s.value.searchKey.toLowerCase())
|
|
292
|
-
), (n) => (f(), F(W, {
|
|
293
|
-
key: n._id.toString(),
|
|
294
|
-
onClick: (A) => x(n),
|
|
295
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
296
|
-
}, {
|
|
297
|
-
default: S(() => [
|
|
298
|
-
i("div", ve, [
|
|
299
|
-
i("div", we, [
|
|
300
|
-
(f(), F(ae(a(N)(n)))),
|
|
301
|
-
l(J, {
|
|
302
|
-
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
303
|
-
compact: !0,
|
|
304
|
-
label: `${a(M).title(n.effect.options.target)} promotion`
|
|
305
|
-
}, null, 8, ["label"])
|
|
306
|
-
]),
|
|
307
|
-
i("div", xe, [
|
|
308
|
-
i("div", Ce, g(n.name), 1),
|
|
309
|
-
i("div", Fe, g(a(j)(n.effect)), 1),
|
|
310
|
-
i("div", Se, g(a(t)("connect.promotion.campaignDate")) + ": " + g(a(D)(n)), 1)
|
|
311
|
-
])
|
|
312
|
-
]),
|
|
313
|
-
l(B, {
|
|
314
|
-
icon: "delete",
|
|
315
|
-
"icon-color": "neutral-gray-400",
|
|
316
|
-
variant: "tertiary",
|
|
317
|
-
onClick: (A) => (A.stopPropagation(), R(n))
|
|
318
|
-
}, null, 8, ["onClick"])
|
|
319
|
-
]),
|
|
320
|
-
_: 2
|
|
321
|
-
}, 1032, ["onClick"]))), 128))
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
})
|
|
325
|
-
], 64)) : (f(), F(Y, {
|
|
326
|
-
key: 1,
|
|
327
|
-
variant: "outlined",
|
|
328
|
-
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
329
|
-
}, {
|
|
330
|
-
default: S(() => [
|
|
331
|
-
o[6] || (o[6] = i("img", {
|
|
332
|
-
src: se,
|
|
333
|
-
class: "aspect-square w-[150px]"
|
|
334
|
-
}, null, -1)),
|
|
335
|
-
i("div", ke, [
|
|
336
|
-
i("div", Pe, g(a(t)("connect.promotion.createPromotionCampaign")), 1),
|
|
337
|
-
i("div", Te, g(a(t)("connect.promotion.description")), 1)
|
|
338
|
-
]),
|
|
339
|
-
l(B, {
|
|
340
|
-
variant: "primary",
|
|
341
|
-
label: a(t)("connect.promotion.createPromotionCampaign"),
|
|
342
|
-
icon: "add",
|
|
343
|
-
onClick: o[5] || (o[5] = (n) => x())
|
|
344
|
-
}, null, 8, ["label"])
|
|
345
|
-
]),
|
|
346
|
-
_: 1
|
|
347
|
-
}))
|
|
348
|
-
]),
|
|
349
|
-
l(pe, {
|
|
350
|
-
ref_key: "sheetRef",
|
|
351
|
-
ref: O,
|
|
352
|
-
"onSubmit:modelValue": z
|
|
353
|
-
}, null, 512),
|
|
354
|
-
l(ge, {
|
|
355
|
-
ref_key: "queueSheetRef",
|
|
356
|
-
ref: I
|
|
357
|
-
}, null, 512)
|
|
358
|
-
], 64);
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
export {
|
|
363
|
-
Ue as default
|
|
364
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { g as l } from "./app-IvbII0ql.js";
|
|
2
|
-
var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ad8b3a18-a41f-4781-91a2-d6b34dd3e828", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_remy_vue_client: "0.2.0-beta.14", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", npm_package_devDependencies_vitest: "^2.1.9", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.20.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ad8b3a18-a41f-4781-91a2-d6b34dd3e828", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.20.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", npm_package_dependencies_moment_timezone: "^0.6.0", 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-9.4.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.29.11", npm_package_dependencies_fabric: "^5.5.1", npm_package_dependencies_ua_parser_js: "^2.0.3", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1854", ACTIONS_ORCHESTRATION_ID: "1d818a29-4fdb-49cc-9d0b-aea8a79c3740.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.6.7", npm_package_dependencies_dayjs: "^1.11.12", 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_dependencies__tailwindcss_typography: "^0.5.16", npm_package_dependencies_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", 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.26", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260413.86.1", 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__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies_unplugin_auto_import: "^0.17.8", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^14.1.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:11075", GITHUB_WORKFLOW: "[CD:dev] connect-portal (mf-connect)", _: "/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/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.9/x64", GITHUB_RUN_ID: "25551899809", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "200cf00e5f546835078ec790deb139f42118711f", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_dependencies__ckeditor_ckeditor5_vue: "^7.3.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[DEV] deploy-mf-connect.yml@refs/heads/dev", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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.9/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.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.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_bec95395-c266-4e0b-88b4-30a6d9b14de6", INVOCATION_ID: "c323f90a9e49448088f7b7236b35c484", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.20.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", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "172", 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.23", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000067209", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", 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.14.36", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest run", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", 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.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.38-beta.61", npm_package_dependencies__feedmepos_hrm_permission: "^1.0.6-dev.5", npm_package_dependencies_ckeditor5: "^44.3.0", npm_lifecycle_event: "build:mf:dev", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "200cf00e5f546835078ec790deb139f42118711f", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies__ckeditor_ckeditor5_build_classic: "^44.3.0", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/dev", 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_scripts_test_watch: "vitest", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ad8b3a18-a41f-4781-91a2-d6b34dd3e828", 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.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "push", 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_ad8b3a18-a41f-4781-91a2-d6b34dd3e828", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", 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", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ad8b3a18-a41f-4781-91a2-d6b34dd3e828", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_dependencies__feedmepos_mf_remy_panel: "0.5.1", NODE_ENV: "production", FEEDME_NAMESPACE: "dev", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", IMPORT_FILES_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "feedmedev.vip", CRM_APP_URL: "crm.feedmedev.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedmedev.cc", CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", PAYMENT_PORTAL_URL: "https://portal.feedmedev.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedmedev.cc/", VOUCHER_APP_URL: "https://voucher.feedmedev.cc/" } }, a = Math.floor(Math.random() * 16777215), i = n.index = parseInt(Math.random() * 16777215, 10), d = (typeof o > "u" || typeof o.pid != "number" ? Math.floor(Math.random() * 1e5) : o.pid) % 65535, c = (() => {
|
|
3
|
-
try {
|
|
4
|
-
return _Buffer;
|
|
5
|
-
} catch {
|
|
6
|
-
try {
|
|
7
|
-
return Buffer;
|
|
8
|
-
} catch {
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
})(), r = function(e) {
|
|
13
|
-
return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
|
|
14
|
-
}, u = [];
|
|
15
|
-
for (var p = 0; p < 256; p++)
|
|
16
|
-
u[p] = (p <= 15 ? "0" : "") + p.toString(16);
|
|
17
|
-
var m = new RegExp("^[0-9a-fA-F]{24}$"), s = [];
|
|
18
|
-
p = 0;
|
|
19
|
-
for (; p < 10; ) s[48 + p] = p++;
|
|
20
|
-
for (; p < 16; ) s[55 + p] = s[87 + p] = p++;
|
|
21
|
-
function n(e) {
|
|
22
|
-
if (!(this instanceof n)) return new n(e);
|
|
23
|
-
if (e && (e instanceof n || e._bsontype === "ObjectID"))
|
|
24
|
-
return e;
|
|
25
|
-
if (this._bsontype = "ObjectID", e == null || typeof e == "number") {
|
|
26
|
-
this.id = this.generate(e);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
var _ = n.isValid(e);
|
|
30
|
-
if (!_ && e != null)
|
|
31
|
-
throw new Error(
|
|
32
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
33
|
-
);
|
|
34
|
-
if (_ && typeof e == "string" && e.length === 24)
|
|
35
|
-
return n.createFromHexString(e);
|
|
36
|
-
if (e != null && e.length === 12)
|
|
37
|
-
this.id = e;
|
|
38
|
-
else {
|
|
39
|
-
if (e != null && typeof e.toHexString == "function")
|
|
40
|
-
return e;
|
|
41
|
-
throw new Error(
|
|
42
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
var g = n;
|
|
47
|
-
n.default = n;
|
|
48
|
-
n.createFromTime = function(e) {
|
|
49
|
-
return e = parseInt(e, 10) % 4294967295, new n(E(8, e) + "0000000000000000");
|
|
50
|
-
};
|
|
51
|
-
n.createFromHexString = function(e) {
|
|
52
|
-
if (typeof e > "u" || e != null && e.length !== 24)
|
|
53
|
-
throw new Error(
|
|
54
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
55
|
-
);
|
|
56
|
-
for (var _ = "", t = 0; t < 24; )
|
|
57
|
-
_ += String.fromCharCode(s[e.charCodeAt(t++)] << 4 | s[e.charCodeAt(t++)]);
|
|
58
|
-
return new n(_);
|
|
59
|
-
};
|
|
60
|
-
n.isValid = function(e) {
|
|
61
|
-
return e == null ? !1 : typeof e == "number" ? !0 : typeof e == "string" ? e.length === 12 || e.length === 24 && m.test(e) : e instanceof n ? !0 : r(e) ? n.isValid(e.toString("hex")) : typeof e.toHexString == "function" && c && (e.id instanceof c || typeof e.id == "string") ? e.id.length === 12 || e.id.length === 24 && m.test(e.id) : !1;
|
|
62
|
-
};
|
|
63
|
-
n.prototype = {
|
|
64
|
-
constructor: n,
|
|
65
|
-
/**
|
|
66
|
-
* Return the ObjectID id as a 24 byte hex string representation
|
|
67
|
-
*
|
|
68
|
-
* @return {String} return the 24 byte hex string representation.
|
|
69
|
-
* @api public
|
|
70
|
-
*/
|
|
71
|
-
toHexString: function() {
|
|
72
|
-
if (!this.id || !this.id.length)
|
|
73
|
-
throw new Error(
|
|
74
|
-
"invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [" + JSON.stringify(this.id) + "]"
|
|
75
|
-
);
|
|
76
|
-
if (this.id.length === 24)
|
|
77
|
-
return this.id;
|
|
78
|
-
if (r(this.id))
|
|
79
|
-
return this.id.toString("hex");
|
|
80
|
-
for (var e = "", _ = 0; _ < this.id.length; _++)
|
|
81
|
-
e += u[this.id.charCodeAt(_)];
|
|
82
|
-
return e;
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Compares the equality of this ObjectID with `otherID`.
|
|
86
|
-
*
|
|
87
|
-
* @param {Object} otherId ObjectID instance to compare against.
|
|
88
|
-
* @return {Boolean} the result of comparing two ObjectID's
|
|
89
|
-
* @api public
|
|
90
|
-
*/
|
|
91
|
-
equals: function(e) {
|
|
92
|
-
return e instanceof n ? this.toString() === e.toString() : typeof e == "string" && n.isValid(e) && e.length === 12 && r(this.id) ? e === this.id.toString("binary") : typeof e == "string" && n.isValid(e) && e.length === 24 ? e.toLowerCase() === this.toHexString() : typeof e == "string" && n.isValid(e) && e.length === 12 ? e === this.id : e != null && (e instanceof n || e.toHexString) ? e.toHexString() === this.toHexString() : !1;
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* Returns the generation date (accurate up to the second) that this ID was generated.
|
|
96
|
-
*
|
|
97
|
-
* @return {Date} the generation date
|
|
98
|
-
* @api public
|
|
99
|
-
*/
|
|
100
|
-
getTimestamp: function() {
|
|
101
|
-
var e = /* @__PURE__ */ new Date(), _;
|
|
102
|
-
return r(this.id) ? _ = this.id[3] | this.id[2] << 8 | this.id[1] << 16 | this.id[0] << 24 : _ = this.id.charCodeAt(3) | this.id.charCodeAt(2) << 8 | this.id.charCodeAt(1) << 16 | this.id.charCodeAt(0) << 24, e.setTime(Math.floor(_) * 1e3), e;
|
|
103
|
-
},
|
|
104
|
-
/**
|
|
105
|
-
* Generate a 12 byte id buffer used in ObjectID's
|
|
106
|
-
*
|
|
107
|
-
* @method
|
|
108
|
-
* @param {number} [time] optional parameter allowing to pass in a second based timestamp.
|
|
109
|
-
* @return {string} return the 12 byte id buffer string.
|
|
110
|
-
*/
|
|
111
|
-
generate: function(e) {
|
|
112
|
-
typeof e != "number" && (e = ~~(Date.now() / 1e3)), e = parseInt(e, 10) % 4294967295;
|
|
113
|
-
var _ = f();
|
|
114
|
-
return String.fromCharCode(
|
|
115
|
-
e >> 24 & 255,
|
|
116
|
-
e >> 16 & 255,
|
|
117
|
-
e >> 8 & 255,
|
|
118
|
-
e & 255,
|
|
119
|
-
a >> 16 & 255,
|
|
120
|
-
a >> 8 & 255,
|
|
121
|
-
a & 255,
|
|
122
|
-
d >> 8 & 255,
|
|
123
|
-
d & 255,
|
|
124
|
-
_ >> 16 & 255,
|
|
125
|
-
_ >> 8 & 255,
|
|
126
|
-
_ & 255
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
function f() {
|
|
131
|
-
return i = (i + 1) % 16777215;
|
|
132
|
-
}
|
|
133
|
-
function E(e, _) {
|
|
134
|
-
return _ = _.toString(16), _.length === e ? _ : "00000000".substring(_.length, e) + _;
|
|
135
|
-
}
|
|
136
|
-
var h = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
|
|
137
|
-
n.prototype[h] = function() {
|
|
138
|
-
return "ObjectID(" + this + ")";
|
|
139
|
-
};
|
|
140
|
-
n.prototype.toJSON = n.prototype.toHexString;
|
|
141
|
-
n.prototype.toString = n.prototype.toHexString;
|
|
142
|
-
const R = /* @__PURE__ */ l(g);
|
|
143
|
-
export {
|
|
144
|
-
R as O
|
|
145
|
-
};
|