@feedmepos/mf-connect 0.1.59-prod → 0.1.61-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.
Files changed (92) hide show
  1. package/dist/{Analytic-1heLfSqq.js → Analytic-nw77CilD.js} +11 -11
  2. package/dist/{App-BOM2IfBO.js → App-CovUFBxK.js} +7 -7
  3. package/dist/{Bin-BgYzSjrq.js → Bin-Bi8wl_7A.js} +8 -8
  4. package/dist/{Broadcast-DHeN_79K.js → Broadcast-S9Fdtdi8.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DFOIbmI6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B7Id-_2Y.js} +6 -6
  6. package/dist/{Card-CuJ7bMy5.js → Card-eVpL2PHR.js} +16 -16
  7. package/dist/{Collections-D1FRwIRi.js → Collections-BhdxVX1r.js} +7 -7
  8. package/dist/{Credit-CeYpgCod.js → Credit-CGwuybAs.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B8lOyyAc.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtRI72t9.js} +30 -30
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-De2lhmbT.js → EffectSheet.vue_vue_type_style_index_0_lang-CYrApPpx.js} +6 -6
  11. package/dist/{Experience-D-tJxul7.js → Experience-BjpNDqTZ.js} +9 -9
  12. package/dist/{Game-BOmYWwRj.js → Game-CE74NCP0.js} +10 -10
  13. package/dist/{Index-CRBYEPFf.js → Index-DUlA5M13.js} +10 -10
  14. package/dist/{Marketing-D7WunOsO.js → Marketing-BZlQ_CXY.js} +6 -6
  15. package/dist/{Member-iYAPEdoQ.js → Member-VLxcxJ1E.js} +10 -10
  16. package/dist/{MemberList-CtR-UjtG.js → MemberList-CiyWYLU5.js} +25 -25
  17. package/dist/{MemberTransactions-BMQOdkr2.js → MemberTransactions-CN8xLb_s.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhJlcYpw.js → MessageInput.vue_vue_type_script_setup_true_lang-DcI_7jmX.js} +7 -7
  19. package/dist/{Mission-DSBH4Di0.js → Mission-DfMJvjxF.js} +10 -10
  20. package/dist/{Overview-C0KCN3fH.js → Overview-BP7F73DH.js} +18 -18
  21. package/dist/{Point-AN7wmCXY.js → Point-DI2sQmCV.js} +9 -9
  22. package/dist/Promotion-DAjx_jxp.js +359 -0
  23. package/dist/{Queue-Bo_RtLpU.js → Queue-COeOvp_e.js} +10 -10
  24. package/dist/{Record-BphvsxDb.js → Record-Dt4FbaS2.js} +8 -8
  25. package/dist/{Reward-CgHUAB5V.js → Reward-B1b_GQaR.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaBRd_Kw.js → RewardGroup.vue_vue_type_script_setup_true_lang-DiahGMAs.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C_65qxpU.js → RuleGroup.vue_vue_type_script_setup_true_lang-D6Jz8cUd.js} +13 -13
  28. package/dist/{Segment-Cc0D6nPj.js → Segment-DEvBOJ6O.js} +22 -22
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BxUG7_bX.js → SelectItems.vue_vue_type_script_setup_true_lang-DQ-4quM1.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-bqKHjikC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CpFndkdg.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DA7bevEn.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW3xSyRI.js} +3 -3
  32. package/dist/{Setting-DjVTTqky.js → Setting-Dd4hjMVn.js} +215 -205
  33. package/dist/{SettingAdvertisements-BL81KD_S.js → SettingAdvertisements-DSNwl4Sg.js} +9 -9
  34. package/dist/{Store-DqXIQ9EY.js → Store-COzviQ1u.js} +19 -19
  35. package/dist/{StoreRewards-xlzAHJkc.js → StoreRewards-CLiSctFe.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-OphuWknh.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CR8ArVvX.js} +20 -20
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DGSjAbol.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DGnsRCLx.js} +1 -1
  38. package/dist/{Tier-DadaaAEc.js → Tier-BpA0v3lN.js} +20 -20
  39. package/dist/{Title-BDBxQMEm.js → Title-B1EdZqkW.js} +19 -19
  40. package/dist/{Transaction-BRGCw9Va.js → Transaction-zMSzwKhG.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-qe26FZBo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BTqgaJSg.js} +6 -6
  42. package/dist/{Voucher-CtvWJfVU.js → Voucher-Bc2T5EWh.js} +13 -13
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-dS7n6KJt.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DWkgFep7.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ndun9vf-.js → ZodTextField.vue_vue_type_script_setup_true_lang-DogjRK_M.js} +1 -1
  45. package/dist/{app-9QTXPjre.js → app-BFdctz42.js} +1 -1
  46. package/dist/{app-UNZJVzly.js → app-OEuxoTWK.js} +32 -32
  47. package/dist/app.js +1 -1
  48. package/dist/{business-DtufpzhR.js → business-BpfUjpnj.js} +1 -1
  49. package/dist/{campaign-Dm85zK-z.js → campaign-B5smLabp.js} +9 -9
  50. package/dist/{campaign-63K4Xtsd.js → campaign-D5zO5NqZ.js} +2 -2
  51. package/dist/{campaign.enum-DBWgoidX.js → campaign.enum-GzJGfsxY.js} +1 -1
  52. package/dist/{campaign.fn-BpifzSGC.js → campaign.fn-C9R64hHy.js} +139 -139
  53. package/dist/{collectible.enum-2_2_6r39.js → collectible.enum-CNvAz-_I.js} +1 -1
  54. package/dist/{collection.fn-B2rlSiv_.js → collection.fn-C57qrxGU.js} +2 -2
  55. package/dist/{dto-Df83CuN3.js → dto-CJVMBaq8.js} +4 -4
  56. package/dist/{effect-BUEqEGkq.js → effect-D2rDw19H.js} +1 -1
  57. package/dist/{email-addresses-BUNKzO1f.js → email-addresses-BqUvpvZp.js} +1 -1
  58. package/dist/{export-BzY3BDZJ.js → export-BAxp7esA.js} +3 -3
  59. package/dist/{helper-BaJdC23g.js → helper-CRpWKa1v.js} +1 -1
  60. package/dist/{index-BLjKPiBb.js → index-3Mtj_jtE.js} +1 -1
  61. package/dist/{index-DrAbySpd.js → index-B1itjftg.js} +2 -2
  62. package/dist/{index-gvl1UKmI.js → index-B3cotw8W.js} +71 -50
  63. package/dist/{index-X9YonBq5.js → index-BQ5qAJFH.js} +1 -1
  64. package/dist/{index-JxOM03oW.js → index-BeCQMeGF.js} +1 -1
  65. package/dist/{index-Bzv6BHPk.js → index-ByW5tbmU.js} +3 -3
  66. package/dist/{index-DlwtDkgr.js → index-CHgyhDZn.js} +1 -1
  67. package/dist/{index-zy0pOMPl.js → index-CJaMNJ8E.js} +4 -1
  68. package/dist/{index-BInlN52T.js → index-CmZAnAnt.js} +3 -3
  69. package/dist/{index-BA5QwPCT.js → index-DCaj6UCv.js} +1 -1
  70. package/dist/{index-C0XYFg_a.js → index-Dei0WiXK.js} +6 -5
  71. package/dist/{index-BQTPw5fM.js → index-Dv-CriWz.js} +311 -311
  72. package/dist/{index-BSQCStAn.js → index-UDUK0dov.js} +1 -1
  73. package/dist/{index-D_hUHpqX.js → index-zCzgFv1c.js} +1 -1
  74. package/dist/{index.esm2017-WVBFvkg-.js → index.esm2017-CRfZekpS.js} +184 -184
  75. package/dist/{loading-CKbcLJje.js → loading-EQkLfqfe.js} +1 -1
  76. package/dist/{membership-BMv4jrI_.js → membership-Dx3PuqYJ.js} +3 -3
  77. package/dist/{money-iY-Nby0p.js → money-DQ2KZXKG.js} +1 -1
  78. package/dist/{number-CluL-GzZ.js → number-BSpQ0k0v.js} +1 -1
  79. package/dist/objectid-8rRtqkJK.js +145 -0
  80. package/dist/{plugins-BlvUeMc1.js → plugins-DNW9IPwk.js} +2 -2
  81. package/dist/{reward-CZlHuvJJ.js → reward-DWAwqTMg.js} +1 -1
  82. package/dist/{rule-DMH3fchR.js → rule-BaKrJfw1.js} +3 -3
  83. package/dist/{rule-builder-BvBTYyZq.js → rule-builder-BVd4T0hQ.js} +1 -1
  84. package/dist/{template-CzqV_mzm.js → template-Bn0rThmd.js} +4 -4
  85. package/dist/{timezone-Bo8HWoc4.js → timezone-CAJ0nnVd.js} +1 -1
  86. package/dist/{trigger-BGG22zoh.js → trigger-tqOYTDUq.js} +4 -4
  87. package/dist/{user-DesAMEEX.js → user-Bk2_-40d.js} +1 -1
  88. package/dist/{vue-i18n-CN3WXgAO.js → vue-i18n-majW9qB9.js} +279 -279
  89. package/dist/{xlsx-BKuxyTY9.js → xlsx-Cs5W4EqR.js} +166 -166
  90. package/package.json +1 -1
  91. package/dist/Promotion-Cbf4W6Vh.js +0 -289
  92. package/dist/objectid-sIFo0b00.js +0 -145
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-connect",
3
- "version": "0.1.59-prod",
3
+ "version": "0.1.61-prod",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,289 +0,0 @@
1
- import { defineComponent as J, ref as S, computed as Q, h as W, onMounted as X, resolveComponent as m, openBlock as u, createElementBlock as w, Fragment as v, createVNode as l, unref as a, createElementVNode as r, withCtx as b, renderList as Y, createBlock as x, resolveDynamicComponent as Z, toDisplayString as _ } from "vue";
2
- import { _ as ee } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as oe, components as te } from "@feedmepos/ui-library";
4
- import { c as O, p as L } from "./plugins-BlvUeMc1.js";
5
- import { u as ne } from "./loading-CKbcLJje.js";
6
- import { u as ae } from "./business-DtufpzhR.js";
7
- import { u as se } from "./campaign-63K4Xtsd.js";
8
- import { u as re } from "./vue-i18n-CN3WXgAO.js";
9
- import { g as ie, a as V } from "./campaign-Dm85zK-z.js";
10
- import { e as I } from "./effect-BUEqEGkq.js";
11
- import { _ as le } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B8lOyyAc.js";
12
- import { u as ce } from "./template-CzqV_mzm.js";
13
- import { _ as B } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
14
- import { c as d } from "./index-zy0pOMPl.js";
15
- const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, ue = { class: "flex gap-8 overflow-x-auto" }, de = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ye = { class: "space-y-4" }, ge = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "flex flex-col gap-16 text-center" }, we = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ J({
16
- __name: "Promotion",
17
- setup(be) {
18
- const { t: n } = re(), M = {
19
- label: n("connect.promotion.createCampaign"),
20
- value: "create",
21
- isPrimary: !0,
22
- prependIcon: "add"
23
- }, R = {
24
- label: "Force sync",
25
- value: "sync",
26
- isPrimary: !1,
27
- prependIcon: "refresh"
28
- }, A = ce("PROMOTION", oe()), C = ae(), f = se(), { global: K, minor: h } = ne, N = [
29
- {
30
- label: "Bill promotion",
31
- value: "BILL"
32
- },
33
- {
34
- label: "Item promotion",
35
- value: "ITEM"
36
- }
37
- ], s = S({
38
- searchKey: "",
39
- location: [],
40
- effectType: []
41
- });
42
- function $(e) {
43
- const o = s.value.location;
44
- return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((c) => {
45
- var i;
46
- return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(c);
47
- }) : e.targetLocation.includes(o);
48
- }
49
- function U(e) {
50
- var i, g;
51
- const o = s.value.effectType;
52
- if (!o || o.length === 0) return !0;
53
- const c = (g = (i = e.effect) == null ? void 0 : i.options) == null ? void 0 : g.target;
54
- return o.includes(c);
55
- }
56
- const p = Q(
57
- () => f.campaigns.promotion.filter(
58
- (e) => $(e) && U(e)
59
- )
60
- ), D = [
61
- {
62
- header: n("connect.promotion.promotionTitle"),
63
- accessorFn: (e) => e.name
64
- },
65
- {
66
- header: n("connect.promotion.status"),
67
- accessorFn: (e) => ie(e),
68
- cell(e) {
69
- return V(e.row.original);
70
- }
71
- },
72
- {
73
- header: n("connect.promotion.type"),
74
- accessorFn: (e) => `${O.title(e.effect.options.target)} promotion`
75
- },
76
- {
77
- header: n("connect.promotion.summary"),
78
- accessorFn: (e) => I(e.effect)
79
- },
80
- {
81
- header: n("connect.promotion.actions"),
82
- cell(e) {
83
- return W(te.FmButton, {
84
- variant: "tertiary",
85
- icon: "delete",
86
- iconColor: "neutral-gray-400",
87
- onClick: (o) => {
88
- o.stopPropagation(), k(e.row.original);
89
- }
90
- });
91
- }
92
- }
93
- ], F = S();
94
- async function k(e) {
95
- await L.remove(
96
- n("connect.promotion.confirmRemove", { name: e.name })
97
- ) && await h(
98
- async () => {
99
- await d.delete(e._id), await f.read("PROMOTION");
100
- },
101
- {
102
- message: n("connect.promotion.removing", { name: e.name }),
103
- successMessage: n("connect.promotion.removedSuccessfully", {
104
- name: e.name
105
- })
106
- }
107
- );
108
- }
109
- async function y(e) {
110
- e ? await o() : A.open(async (c) => {
111
- await o(c);
112
- });
113
- async function o(c) {
114
- var i;
115
- (i = F.value) == null || i.showSheet(
116
- !0,
117
- "PROMOTION",
118
- e ? await d.readById(e._id) : void 0,
119
- c
120
- );
121
- }
122
- }
123
- async function E(e) {
124
- await h(
125
- async () => {
126
- e.campaign._id ? await d.update(e.campaign._id, e) : await d.create(e), await f.read("PROMOTION");
127
- },
128
- {
129
- message: n(
130
- e.campaign._id ? "connect.promotion.updating" : "connect.promotion.creating"
131
- ),
132
- successMessage: n(
133
- e.campaign._id ? "connect.promotion.updatedSuccessfully" : "connect.promotion.createdSuccessfully"
134
- )
135
- }
136
- );
137
- }
138
- async function j(e) {
139
- switch (e) {
140
- case "create":
141
- y();
142
- break;
143
- case "sync":
144
- await L.confirm(
145
- "Are you sure you want to synchronize all promotions to POS?",
146
- "Force sync"
147
- ) && h(
148
- async () => {
149
- await d.syncAllPromotion();
150
- },
151
- {
152
- message: "Syncing promotions...",
153
- successMessage: "All promotions synced"
154
- }
155
- );
156
- break;
157
- }
158
- }
159
- return X(async () => {
160
- await K(async () => {
161
- await C.readLocations(), await f.read("PROMOTION");
162
- });
163
- }), (e, o) => {
164
- const c = m("FmPageHead"), i = m("FmSearch"), g = m("FmTable"), H = m("FmChip"), T = m("FmButton"), q = m("FmListItem"), z = m("FmList"), G = m("FmCard");
165
- return u(), w(v, null, [
166
- l(c, {
167
- title: a(n)("connect.promotion.title"),
168
- actions: a(p).length > 0 ? [M, R] : [],
169
- "onClick:action": j
170
- }, null, 8, ["title", "actions"]),
171
- r("div", me, [
172
- l(i, {
173
- modelValue: s.value.searchKey,
174
- "onUpdate:modelValue": o[0] || (o[0] = (t) => s.value.searchKey = t),
175
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
176
- placeholder: a(n)("connect.promotion.search"),
177
- collapsible: ""
178
- }, null, 8, ["modelValue", "placeholder"]),
179
- a(p) && a(p).length > 0 ? (u(), w(v, { key: 0 }, [
180
- r("div", pe, [
181
- r("div", ue, [
182
- l(B, {
183
- label: `${a(n)("connect.common.location")}: `,
184
- "right-icon": "keyboard_arrow_down",
185
- modelValue: s.value.location,
186
- "onUpdate:modelValue": o[1] || (o[1] = (t) => s.value.location = t),
187
- icon: "storefront",
188
- "show-item-label": !0,
189
- items: a(C).locationOptions
190
- }, null, 8, ["label", "modelValue", "items"]),
191
- l(B, {
192
- label: "Type:",
193
- "right-icon": "keyboard_arrow_down",
194
- modelValue: s.value.effectType,
195
- "onUpdate:modelValue": o[2] || (o[2] = (t) => s.value.effectType = t),
196
- icon: "filter_list",
197
- "show-item-label": !0,
198
- items: N
199
- }, null, 8, ["modelValue"])
200
- ]),
201
- l(i, {
202
- modelValue: s.value.searchKey,
203
- "onUpdate:modelValue": o[3] || (o[3] = (t) => s.value.searchKey = t),
204
- class: "xs:hidden",
205
- placeholder: "search",
206
- collapsible: ""
207
- }, null, 8, ["modelValue"])
208
- ]),
209
- l(g, {
210
- class: "xs:hidden",
211
- "row-data": a(p),
212
- "column-defs": D,
213
- "search-value": s.value.searchKey,
214
- "column-filter": [],
215
- onRowClick: o[4] || (o[4] = (t) => y(t.original)),
216
- "hide-footer": a(p).length < 10
217
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
218
- l(z, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
219
- default: b(() => [
220
- (u(!0), w(v, null, Y(a(p).filter(
221
- (t) => t.name.toLowerCase().includes(s.value.searchKey.toLowerCase())
222
- ), (t) => (u(), x(q, {
223
- key: t._id.toString(),
224
- onClick: (P) => y(t),
225
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
226
- }, {
227
- default: b(() => [
228
- r("div", de, [
229
- r("div", fe, [
230
- (u(), x(Z(a(V)(t)))),
231
- l(H, {
232
- class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
233
- compact: !0,
234
- label: `${a(O).title(t.effect.options.target)} promotion`
235
- }, null, 8, ["label"])
236
- ]),
237
- r("div", ye, [
238
- r("div", ge, _(t.name), 1),
239
- r("div", _e, _(a(I)(t.effect)), 1)
240
- ])
241
- ]),
242
- l(T, {
243
- icon: "delete",
244
- "icon-color": "neutral-gray-400",
245
- variant: "tertiary",
246
- onClick: (P) => (P.stopPropagation(), k(t))
247
- }, null, 8, ["onClick"])
248
- ]),
249
- _: 2
250
- }, 1032, ["onClick"]))), 128))
251
- ]),
252
- _: 1
253
- })
254
- ], 64)) : (u(), x(G, {
255
- key: 1,
256
- variant: "outlined",
257
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
258
- }, {
259
- default: b(() => [
260
- o[6] || (o[6] = r("img", {
261
- src: ee,
262
- class: "aspect-square w-[150px]"
263
- }, null, -1)),
264
- r("div", he, [
265
- r("div", we, _(a(n)("connect.promotion.createPromotionCampaign")), 1),
266
- r("div", ve, _(a(n)("connect.promotion.description")), 1)
267
- ]),
268
- l(T, {
269
- variant: "primary",
270
- label: a(n)("connect.promotion.createPromotionCampaign"),
271
- icon: "add",
272
- onClick: o[5] || (o[5] = (t) => y())
273
- }, null, 8, ["label"])
274
- ]),
275
- _: 1
276
- }))
277
- ]),
278
- l(le, {
279
- ref_key: "sheetRef",
280
- ref: F,
281
- "onSubmit:modelValue": E
282
- }, null, 512)
283
- ], 64);
284
- };
285
- }
286
- });
287
- export {
288
- Ae as default
289
- };
@@ -1,145 +0,0 @@
1
- import { g as l } from "./_commonjsHelpers-BkfeUUK-.js";
2
- var t = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8acb4757-ab34-4137-bbf6-6b5265104ca8", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", 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.9 npm/? node/v20.19.6 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8acb4757-ab34-4137-bbf6-6b5265104ca8", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.6/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.2.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.27.2", npm_package_dependencies_fabric: "^6.4.2", 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: "1755", 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: "20251215.174.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_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", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:12745", GITHUB_WORKFLOW: "[CD:prod] 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.11/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.5/x64", GITHUB_RUN_ID: "20780486331", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "tag", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "3d11b24e72c90522367c726c15705086fb87c2f2", 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/[PROD] deploy-mf-connect.yml@refs/tags/mf-connect-0.1.59-prod", 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.19.6/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_ecfb4e67-0476-4805-8279-a1d6eb02b08a", INVOCATION_ID: "c59f803a44de4e1684dee64f87d21b1d", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.6/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: "41", 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.21", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000037012", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "mf-connect-0.1.59-prod", 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:prod", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", 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.59-prod", npm_package_dependencies_ckeditor5: "^44.3.0", 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", 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: "3d11b24e72c90522367c726c15705086fb87c2f2", 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/tags/mf-connect-0.1.59-prod", 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.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_8acb4757-ab34-4137-bbf6-6b5265104ca8", 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_8acb4757-ab34-4137-bbf6-6b5265104ca8", 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", 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_8acb4757-ab34-4137-bbf6-6b5265104ca8", 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", IMPORT_FILES_STORAGE_BUCKET: "feedme-253402.appspot.com", 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", LICENSE_PORTAL_URL: "https://license.feedme.cc/" } }, i = Math.floor(Math.random() * 16777215), a = n.index = parseInt(Math.random() * 16777215, 10), c = (typeof t > "u" || typeof t.pid != "number" ? Math.floor(Math.random() * 1e5) : t.pid) % 65535, d = (() => {
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(f(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 _ = "", o = 0; o < 24; )
57
- _ += String.fromCharCode(s[e.charCodeAt(o++)] << 4 | s[e.charCodeAt(o++)]);
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" && d && (e.id instanceof d || 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 _ = E();
114
- return String.fromCharCode(
115
- e >> 24 & 255,
116
- e >> 16 & 255,
117
- e >> 8 & 255,
118
- e & 255,
119
- i >> 16 & 255,
120
- i >> 8 & 255,
121
- i & 255,
122
- c >> 8 & 255,
123
- c & 255,
124
- _ >> 16 & 255,
125
- _ >> 8 & 255,
126
- _ & 255
127
- );
128
- }
129
- };
130
- function E() {
131
- return a = (a + 1) % 16777215;
132
- }
133
- function f(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 T = /* @__PURE__ */ l(g);
143
- export {
144
- T as O
145
- };