@feedmepos/mf-connect 0.1.102-prod → 0.1.104-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-DuLC718S.js → Analytic-1rqyus1X.js} +15 -14
- package/dist/{App-UJnB9zcQ.js → App-B4UWz7ir.js} +7 -7
- package/dist/{Bin-DNTtfH3f.js → Bin-D_eSutW-.js} +8 -8
- package/dist/{Broadcast-CRAQM_k6.js → Broadcast-DDQE_RLR.js} +10 -10
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DhUyx6oJ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2cTNgaS.js} +6 -6
- package/dist/{Card-C8x7HK5E.js → Card-CPozdg3m.js} +18 -18
- package/dist/{Collections-Cc7swt3R.js → Collections-IrwF5bWH.js} +9 -9
- package/dist/{Credit-C6aPf5Nk.js → Credit-BVXpy5tw.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B0Yzpx63.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCe1rp0f.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CwhqFx6B.js → EffectSheet.vue_vue_type_style_index_0_lang-DwP64fmL.js} +6 -6
- package/dist/{Experience-CYDrnD2K.js → Experience-BR1JXdH5.js} +9 -9
- package/dist/{FileSaver.min-EhV8ssqD.js → FileSaver.min-CX-3gU49.js} +1 -1
- package/dist/{Game-BIyKyW7Y.js → Game-8nvdSkbi.js} +10 -10
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BR1U0gNv.js → ImageInput.vue_vue_type_script_setup_true_lang-q5fF5d7d.js} +1 -1
- package/dist/{Index-E4_i9pk-.js → Index--Xl_8CFP.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Co9wcuDx.js → LocationPicker.vue_vue_type_script_setup_true_lang-C-xW5Tw8.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CVLo2BQx.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DGVqQz1j.js} +1 -1
- package/dist/{MainLayout-DQ6ubq0V.js → MainLayout-DB_Y2C3K.js} +3 -3
- package/dist/{Marketing-DSWRkRdS.js → Marketing-CjAGzfL7.js} +4 -4
- package/dist/{MarketingMaterialEdit-DoXDb_15.js → MarketingMaterialEdit-BoF6kTOz.js} +6 -6
- package/dist/Member-DnypOK2I.js +649 -0
- package/dist/MemberImportHistory-BJSyT6Ys.js +187 -0
- package/dist/{MemberList-DXNFGOoa.js → MemberList-Bf_XyoxW.js} +28 -28
- package/dist/{MemberTransactions-DIWbn5pf.js → MemberTransactions-CbPxUrtd.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D3TNf3d4.js → MessageInput.vue_vue_type_script_setup_true_lang-CVzfjs9D.js} +10 -10
- package/dist/{Mission-BjbIgIBO.js → Mission-DE4O6XM6.js} +10 -10
- package/dist/{Overview-nOh09Nak.js → Overview-BW2_y1_7.js} +3 -3
- package/dist/{Overview-CbE-9ESn.js → Overview-DZxRuA5F.js} +53 -53
- package/dist/{Point-CDoAfQ9E.js → Point-BMEe6duo.js} +9 -9
- package/dist/{Promotion-oWqv5TcX.js → Promotion-lamxp48U.js} +10 -10
- package/dist/{Queue-CL5SbEDz.js → Queue-CSF9M_Lc.js} +13 -13
- package/dist/{Record-CEvLXNJU.js → Record-B-HdI5A4.js} +9 -9
- package/dist/{Review-CSfUXMcX.js → Review-D6RQbcP6.js} +2 -2
- package/dist/{ReviewFacebookCallback-CMvjz_jc.js → ReviewFacebookCallback-CkULwhF-.js} +5 -5
- package/dist/{ReviewGoogleCallback-CoeZ-ou6.js → ReviewGoogleCallback-DgPEXV_R.js} +5 -5
- package/dist/{Reward-BpbK_k4T.js → Reward-CZvM6GQ9.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DKgbMgI7.js → RewardGroup.vue_vue_type_script_setup_true_lang-C1y2_pHY.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-ExVFtoAQ.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cvo6a7Nw.js} +14 -14
- package/dist/{Segment-BzoGUM7i.js → Segment-D2bXEF1U.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-LjIepejX.js → SelectItems.vue_vue_type_script_setup_true_lang-BxOEEr9-.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-8mv74I42.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Ytimazjg.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D1RSndUC.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bn1IWAd_.js} +4 -4
- package/dist/{Setting-DaYfLDPg.js → Setting-DelduRrh.js} +14 -14
- package/dist/{SettingAdvertisements-BNrw_Pop.js → SettingAdvertisements-gTDg1C60.js} +12 -12
- package/dist/{Settings-V57JoEDz.js → Settings-VUEo9wwx.js} +5 -5
- package/dist/{Store-DmlPczX9.js → Store-CXQZirbg.js} +21 -21
- package/dist/{StoreRewards-CBQx2O-f.js → StoreRewards-BDuZPA8S.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-YZfBG58B.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C-yqZEn4.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DgNTGCoE.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BayrgH7m.js} +2 -2
- package/dist/{Tier-pB8WRncc.js → Tier-DtPE4IJ5.js} +22 -22
- package/dist/{Title-BtROp4wQ.js → Title-DNCnQeeR.js} +21 -21
- package/dist/{Transaction-BkC9R9vd.js → Transaction-BkUaCGwl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BLO9F29V.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B7TY_AGp.js} +6 -6
- package/dist/{Voucher-vMdUCdb_.js → Voucher-BBuB9tf8.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DMmYF_fb.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Bu09bIut.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BvKOLEvB.js → ZodTextField.vue_vue_type_script_setup_true_lang-BSKpAMJL.js} +2 -2
- package/dist/{app-fyW0rmyk.js → app-CSLQmdYA.js} +2527 -2500
- package/dist/app.js +1 -1
- package/dist/{business-DWoYVgg7.js → business-okSb42At.js} +5 -5
- package/dist/{campaign-C6t94wJ-.js → campaign-Ck9GwZdI.js} +2 -2
- package/dist/{campaign-Bhibz128.js → campaign-V7nlCdxR.js} +8 -8
- package/dist/{campaign.enum-BTowIvdN.js → campaign.enum-BQ5khvqI.js} +1 -1
- package/dist/{campaign.fn-CuRUFB1Y.js → campaign.fn-DMDpxVSZ.js} +158 -158
- package/dist/{collectible.enum-CUA9b6Fb.js → collectible.enum-lKz3vTQM.js} +1 -1
- package/dist/{collection.fn-C7ydtiu0.js → collection.fn-BH5cqMNy.js} +2 -2
- package/dist/{dto-DF3Pc6a5.js → dto-GksE6pni.js} +4 -4
- package/dist/{effect-CzYn8cNA.js → effect-pUpfqkCF.js} +1 -1
- package/dist/{email-addresses-BDl2kgyR.js → email-addresses-CzBv1fzv.js} +2 -2
- package/dist/{export-Bj9MXvOB.js → export-Du7ZAv-8.js} +3 -3
- package/dist/{helper-BfwJJYBa.js → helper-BpthZPU4.js} +1 -1
- package/dist/{index-BkPP9oOk.js → index--6uUWSMc.js} +1 -1
- package/dist/{index-BMiKfUmd.js → index-BhuD1NhH.js} +3 -3
- package/dist/{index-DOsgJcfs.js → index-C0JgU0Z2.js} +1 -1
- package/dist/{index-C25-Bv8o.js → index-CGK1kSCt.js} +3 -3
- package/dist/{index-CVmr6BUE.js → index-CN5Zoynf.js} +5 -4
- package/dist/{index-BW0x3DOp.js → index-CWAdNVKN.js} +6 -6
- package/dist/{index-2HE3rIOU.js → index-D7PksEV2.js} +40 -38
- package/dist/index-DCp9k5BB.js +137 -0
- package/dist/{index-ZHfcVGnN.js → index-DNdHiAXR.js} +2 -2
- package/dist/{index-DVLb_VbI.js → index-DPgGmpyL.js} +3 -3
- package/dist/{index-C6nsyGeh.js → index-DSltrIkA.js} +1 -1
- package/dist/{index-C8w_c72Y.js → index-OaZRtKP_.js} +3 -3
- package/dist/{index-DzkHJ4Xk.js → index-ZTYDfSkT.js} +1 -1
- package/dist/{index-CgmLk8G7.js → index-izVlVA8-.js} +1 -1
- package/dist/{index-CaVjRgMq.js → index-v8QQ-4ZP.js} +80 -75
- package/dist/{index.esm2017-CBNaydJe.js → index.esm2017-mpnkyDRb.js} +61 -61
- package/dist/{loading-Cp_CEKxJ.js → loading-BG3Pj6qz.js} +1 -1
- package/dist/{lodash-CKUwhSUJ.js → lodash-BfDdt-c9.js} +1 -1
- package/dist/member-import-BNFdZ3Df.js +187 -0
- package/dist/{membership-CeKp-ybu.js → membership-tNeaKAeS.js} +3 -3
- package/dist/{money-CygyVMxf.js → money-CRftC-F0.js} +1 -1
- package/dist/{number-CEHsNTbc.js → number-z7YZyGFS.js} +1 -1
- package/dist/objectid-BKMqp_oR.js +145 -0
- package/dist/{plugins-Dghf1pOO.js → plugins-CWeDGuzy.js} +3 -3
- package/dist/{reward-B4kUrpme.js → reward-BVTKTGi6.js} +1 -1
- package/dist/{rule-CVAWJk9B.js → rule-YhhCOals.js} +3 -3
- package/dist/{rule-builder-B3qq4o77.js → rule-builder-ae8A0qoi.js} +1 -1
- package/dist/{template-DMiHapr_.js → template-CQrM_0hz.js} +7 -7
- package/dist/{timezone-CiVQHxh_.js → timezone-DYWqfGTu.js} +2 -2
- package/dist/{trigger-D_sOEg5y.js → trigger-Clo3vSjw.js} +5 -5
- package/dist/{useMarketingMaterialActions-757RE_76.js → useMarketingMaterialActions-HyqIT94N.js} +3 -3
- package/dist/{usePagination-DXaBv1eS.js → usePagination-CWRrkbFL.js} +1 -1
- package/dist/{user-DeiXSSCt.js → user-MVk5s412.js} +1 -1
- package/dist/{vue-i18n-Thr4iiK6.js → vue-i18n-BN9KLJoz.js} +230 -230
- package/dist/{xlsx-BzwSbHEp.js → xlsx-s0BxKsa_.js} +440 -440
- package/dist/{zod-L6I3Pofo.js → zod-H4l78-by.js} +1 -1
- package/package.json +4 -2
- package/dist/Member-YyS4vcZV.js +0 -280
- package/dist/index-DyfE4Sn_.js +0 -85
- package/dist/objectid-QVxYq-ia.js +0 -145
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-connect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.104-prod",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@feedmepos/menu": "1.0.34",
|
|
22
22
|
"@feedmepos/hrm-permission": "1.0.14",
|
|
23
23
|
"@feedmepos/mf-common": "1.29.23",
|
|
24
|
-
"@feedmepos/mf-core-ui": "1.0.
|
|
24
|
+
"@feedmepos/mf-core-ui": "1.0.26",
|
|
25
25
|
"@feedmepos/ui-library": "1.10.13",
|
|
26
26
|
"@feedmepos/mf-remy-panel": "0.15.0",
|
|
27
27
|
"@tailwindcss/typography": "^0.5.16",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"zod-i18n-map": "2.27.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
+
"@playwright/test": "^1.62.1",
|
|
59
60
|
"@types/file-saver": "^2.0.7",
|
|
60
61
|
"@types/lodash": "^4.17.7",
|
|
61
62
|
"@types/node": "^18.19.41",
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
"scripts": {
|
|
74
75
|
"dev": "vite",
|
|
75
76
|
"test": "vitest run",
|
|
77
|
+
"test:e2e": "playwright test",
|
|
76
78
|
"test:watch": "vitest",
|
|
77
79
|
"build": "vue-tsc && vite build",
|
|
78
80
|
"preview": "vite preview",
|
package/dist/Member-YyS4vcZV.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as C, Fragment as R, createElementVNode as b, createVNode as u, unref as n, withCtx as M, renderList as $, createBlock as D, toDisplayString as O, normalizeClass as U, computed as Y, createCommentVNode as q } from "vue";
|
|
2
|
-
import "./index-BkPP9oOk.js";
|
|
3
|
-
import { useDialogChild as H, FmButtonVariant as S, useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as N } from "./vue-i18n-Thr4iiK6.js";
|
|
5
|
-
import { c as A } from "./index-2HE3rIOU.js";
|
|
6
|
-
import "./index-DVLb_VbI.js";
|
|
7
|
-
import "./index-C8w_c72Y.js";
|
|
8
|
-
import "./index-CaVjRgMq.js";
|
|
9
|
-
import "./index-C25-Bv8o.js";
|
|
10
|
-
import { u as g, w as j } from "./xlsx-BzwSbHEp.js";
|
|
11
|
-
import { F as z } from "./FileSaver.min-EhV8ssqD.js";
|
|
12
|
-
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
13
|
-
import { useRouter as W } from "vue-router";
|
|
14
|
-
import { m as I } from "./index-DyfE4Sn_.js";
|
|
15
|
-
import { R as E } from "./app-fyW0rmyk.js";
|
|
16
|
-
const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
17
|
-
key: 1,
|
|
18
|
-
class: /* @__PURE__ */ U([
|
|
19
|
-
"flex items-center",
|
|
20
|
-
"border border-fm-color-neutral-gray-300",
|
|
21
|
-
"p-16 space-x-16 rounded-md"
|
|
22
|
-
])
|
|
23
|
-
}, ee = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, te = /* @__PURE__ */ L({
|
|
24
|
-
__name: "ImportMemberDialog",
|
|
25
|
-
setup(V) {
|
|
26
|
-
const { t: a } = N(), { emitData: v } = H(), c = F(null), _ = F(null), w = F({
|
|
27
|
-
resetCollectionExpiryBalance: !0
|
|
28
|
-
}), s = [
|
|
29
|
-
"Id",
|
|
30
|
-
"Name",
|
|
31
|
-
"Phone",
|
|
32
|
-
"Email",
|
|
33
|
-
"Gender",
|
|
34
|
-
"CardNo",
|
|
35
|
-
"Birthday",
|
|
36
|
-
"Credit",
|
|
37
|
-
"CreditExpiryDate",
|
|
38
|
-
"Exp",
|
|
39
|
-
"Point",
|
|
40
|
-
"Tier",
|
|
41
|
-
// 'Titles',
|
|
42
|
-
"TotalTransaction",
|
|
43
|
-
"AvgSpent",
|
|
44
|
-
"TotalSpent",
|
|
45
|
-
"LastVisit",
|
|
46
|
-
"Feedback",
|
|
47
|
-
"LastSeasonTierEarned",
|
|
48
|
-
"LastSeasonPointEarned",
|
|
49
|
-
"JoinedAt",
|
|
50
|
-
"JoinedAtLocation",
|
|
51
|
-
"VisitFrequency"
|
|
52
|
-
], p = [
|
|
53
|
-
{
|
|
54
|
-
label: "CSV",
|
|
55
|
-
icon: "csv",
|
|
56
|
-
value: "csv"
|
|
57
|
-
/* csv */
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "Excel",
|
|
61
|
-
icon: "description",
|
|
62
|
-
value: "xlsx"
|
|
63
|
-
/* xlsx */
|
|
64
|
-
}
|
|
65
|
-
];
|
|
66
|
-
async function d(i) {
|
|
67
|
-
var t, f;
|
|
68
|
-
c.value = ((f = (t = i.target) == null ? void 0 : t.files) == null ? void 0 : f[0]) ?? null;
|
|
69
|
-
}
|
|
70
|
-
async function y(i) {
|
|
71
|
-
switch (i) {
|
|
72
|
-
case "csv":
|
|
73
|
-
h();
|
|
74
|
-
break;
|
|
75
|
-
case "xlsx":
|
|
76
|
-
T();
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function h() {
|
|
81
|
-
const i = new Blob([s.join(",")], {
|
|
82
|
-
type: "text/csv;charset=utf-8;"
|
|
83
|
-
});
|
|
84
|
-
z.saveAs(i, "ImportMemberTemplate.csv");
|
|
85
|
-
}
|
|
86
|
-
function T() {
|
|
87
|
-
const i = g.aoa_to_sheet([s]), t = g.book_new();
|
|
88
|
-
g.book_append_sheet(t, i, "Sheet1"), j(t, "ImportMemberTemplate.xlsx");
|
|
89
|
-
}
|
|
90
|
-
return P(c, () => {
|
|
91
|
-
v({ file: c.value, config: w.value });
|
|
92
|
-
}), (i, t) => {
|
|
93
|
-
const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), r = m("FmDropField");
|
|
94
|
-
return x(), C(R, null, [
|
|
95
|
-
b("div", K, [
|
|
96
|
-
t[3] || (t[3] = b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
|
|
97
|
-
u(f, {
|
|
98
|
-
"model-value": n(w).resetCollectionExpiryBalance ?? !0,
|
|
99
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => n(w).resetCollectionExpiryBalance = e),
|
|
100
|
-
label: "Replace Existing Free Credit",
|
|
101
|
-
sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
|
|
102
|
-
"label-placement": "right"
|
|
103
|
-
}, null, 8, ["model-value"])
|
|
104
|
-
]),
|
|
105
|
-
b("div", X, [
|
|
106
|
-
u(l, null, {
|
|
107
|
-
"menu-button": M(() => [
|
|
108
|
-
u(k, {
|
|
109
|
-
variant: "tertiary",
|
|
110
|
-
icon: "download",
|
|
111
|
-
label: "Download Template"
|
|
112
|
-
})
|
|
113
|
-
]),
|
|
114
|
-
default: M(() => [
|
|
115
|
-
(x(), C(R, null, $(p, (e) => u(o, {
|
|
116
|
-
key: e.value,
|
|
117
|
-
icon: e.icon,
|
|
118
|
-
label: e.label,
|
|
119
|
-
onClick: (B) => y(e.value),
|
|
120
|
-
selectable: ""
|
|
121
|
-
}, null, 8, ["icon", "label", "onClick"])), 64))
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
})
|
|
125
|
-
]),
|
|
126
|
-
n(c) ? (x(), C("div", Z, [
|
|
127
|
-
u(k, {
|
|
128
|
-
variant: n(S).Tertiary,
|
|
129
|
-
"prepend-icon": "attach_file"
|
|
130
|
-
}, null, 8, ["variant"]),
|
|
131
|
-
b("p", ee, O(n(c).name), 1),
|
|
132
|
-
b("label", {
|
|
133
|
-
ref_key: "fileLabelRef",
|
|
134
|
-
ref: _,
|
|
135
|
-
htmlFor: "file"
|
|
136
|
-
}, [
|
|
137
|
-
u(k, {
|
|
138
|
-
variant: n(S).Plain,
|
|
139
|
-
label: n(a)("Replace File"),
|
|
140
|
-
onClick: t[2] || (t[2] = () => {
|
|
141
|
-
var e;
|
|
142
|
-
return (e = n(_)) == null ? void 0 : e.click();
|
|
143
|
-
})
|
|
144
|
-
}, null, 8, ["variant", "label"]),
|
|
145
|
-
b("input", {
|
|
146
|
-
id: "file",
|
|
147
|
-
accept: ".csv, .xlsx",
|
|
148
|
-
class: "hidden",
|
|
149
|
-
type: "file",
|
|
150
|
-
multiple: "",
|
|
151
|
-
onChange: d
|
|
152
|
-
}, null, 32)
|
|
153
|
-
], 512)
|
|
154
|
-
])) : (x(), D(r, {
|
|
155
|
-
key: 0,
|
|
156
|
-
onFileUpload: t[1] || (t[1] = (e) => c.value = e),
|
|
157
|
-
accept: ".csv, .xlsx",
|
|
158
|
-
"max-file-size": 5e6
|
|
159
|
-
}))
|
|
160
|
-
], 64);
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}), ne = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ye = /* @__PURE__ */ L({
|
|
164
|
-
__name: "Member",
|
|
165
|
-
setup(V) {
|
|
166
|
-
var t, f, k;
|
|
167
|
-
const a = W(), { t: v } = N(), c = J(), _ = Q(), w = G();
|
|
168
|
-
v("connect.loyalty.member.import"), v("connect.navigation.queue");
|
|
169
|
-
const s = [
|
|
170
|
-
{
|
|
171
|
-
label: v("connect.loyalty.member.tabs.member_list"),
|
|
172
|
-
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
173
|
-
actions: (k = (f = (t = w.sessionUser) == null ? void 0 : t.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
|
|
174
|
-
}
|
|
175
|
-
], p = Y(() => {
|
|
176
|
-
var l, r, e;
|
|
177
|
-
return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
178
|
-
title: d.value.label,
|
|
179
|
-
actions: d.value.actions,
|
|
180
|
-
description: void 0
|
|
181
|
-
} : (d.value = s[1], {
|
|
182
|
-
backButton: !0,
|
|
183
|
-
title: v("connect.loyalty.member.title"),
|
|
184
|
-
actions: [],
|
|
185
|
-
description: `${(l = y.value) == null ? void 0 : l.name} (${(r = y.value) == null ? void 0 : r._id}) (${(e = y.value) == null ? void 0 : e.phoneNumber})`,
|
|
186
|
-
onBackButton: async () => {
|
|
187
|
-
await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}), d = F(
|
|
191
|
-
s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
|
|
192
|
-
), y = F();
|
|
193
|
-
async function h(o) {
|
|
194
|
-
await a.push({ name: o });
|
|
195
|
-
}
|
|
196
|
-
async function T() {
|
|
197
|
-
c.open({
|
|
198
|
-
title: "Upload File",
|
|
199
|
-
closeButton: !0,
|
|
200
|
-
dismissAway: !1,
|
|
201
|
-
contentComponent: te,
|
|
202
|
-
primaryActions: { text: "Import", close: !1 }
|
|
203
|
-
}).onPrimary(async (o) => {
|
|
204
|
-
if (!o) {
|
|
205
|
-
_.open({
|
|
206
|
-
type: "error",
|
|
207
|
-
title: "Please upload a file"
|
|
208
|
-
});
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
const { file: l, config: r } = o;
|
|
212
|
-
if (!l)
|
|
213
|
-
_.open({
|
|
214
|
-
type: "error",
|
|
215
|
-
title: "Please upload a file"
|
|
216
|
-
});
|
|
217
|
-
else {
|
|
218
|
-
const e = new FormData();
|
|
219
|
-
e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e), _.open({
|
|
220
|
-
type: "info",
|
|
221
|
-
title: "Import begins soon. Check Queue for updates.",
|
|
222
|
-
action: "View",
|
|
223
|
-
onAction: async () => {
|
|
224
|
-
await a.push({
|
|
225
|
-
name: E["$connect-QUEUE"],
|
|
226
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
}), c.close();
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
function i(o) {
|
|
234
|
-
switch (o) {
|
|
235
|
-
case "import":
|
|
236
|
-
T();
|
|
237
|
-
break;
|
|
238
|
-
case "queue":
|
|
239
|
-
a.push({
|
|
240
|
-
name: E["$connect-QUEUE"],
|
|
241
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
242
|
-
});
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return P(
|
|
247
|
-
() => a.currentRoute.value.name,
|
|
248
|
-
async (o) => {
|
|
249
|
-
d.value = s.find((r) => r.value === o) ?? s[0];
|
|
250
|
-
const l = a.currentRoute.value.params.id;
|
|
251
|
-
l && (y.value = await I.readById(l));
|
|
252
|
-
},
|
|
253
|
-
{ immediate: !0 }
|
|
254
|
-
), (o, l) => {
|
|
255
|
-
const r = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
|
|
256
|
-
return x(), C(R, null, [
|
|
257
|
-
u(r, {
|
|
258
|
-
actions: n(p).actions,
|
|
259
|
-
title: n(p).title,
|
|
260
|
-
description: n(p).description,
|
|
261
|
-
"back-button": n(p).backButton,
|
|
262
|
-
"onClick:back": n(p).onBackButton,
|
|
263
|
-
"onClick:action": i
|
|
264
|
-
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
265
|
-
b("div", ne, [
|
|
266
|
-
n(a).currentRoute.value.name != n(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), D(e, {
|
|
267
|
-
key: 0,
|
|
268
|
-
"model-value": n(d).value,
|
|
269
|
-
items: s,
|
|
270
|
-
"onUpdate:modelValue": h
|
|
271
|
-
}, null, 8, ["model-value"])) : q("", !0),
|
|
272
|
-
u(B)
|
|
273
|
-
])
|
|
274
|
-
], 64);
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
export {
|
|
279
|
-
ye as default
|
|
280
|
-
};
|
package/dist/index-DyfE4Sn_.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { g as n, S as w, u as _, b as y } from "./index-CVmr6BUE.js";
|
|
2
|
-
const r = () => {
|
|
3
|
-
if (!w.getBusinessId()) throw new Error("Invalid business ID");
|
|
4
|
-
return _("users");
|
|
5
|
-
}, a = () => {
|
|
6
|
-
const e = w.getBusinessId();
|
|
7
|
-
if (!e) throw new Error("Invalid business ID");
|
|
8
|
-
return y(`businesses/${e}/membership`, {
|
|
9
|
-
noIdRequired: !0
|
|
10
|
-
});
|
|
11
|
-
}, C = (e) => {
|
|
12
|
-
var s, t, c, o, i, u, p, m, d, l, b, I;
|
|
13
|
-
return {
|
|
14
|
-
...e,
|
|
15
|
-
collection_TIER_0_balance: ((c = (t = (s = e.collection) == null ? void 0 : s.TIER) == null ? void 0 : t[0]) == null ? void 0 : c.balance) ?? 0,
|
|
16
|
-
collection_CREDIT_0_balance: ((u = (i = (o = e.collection) == null ? void 0 : o.CREDIT) == null ? void 0 : i[0]) == null ? void 0 : u.balance) ?? 0,
|
|
17
|
-
collection_COIN_0_balance: ((d = (m = (p = e.collection) == null ? void 0 : p.COIN) == null ? void 0 : m[0]) == null ? void 0 : d.balance) ?? 0,
|
|
18
|
-
collection_TITLE_0_title: ((I = (b = (l = e.collection) == null ? void 0 : l.TITLE) == null ? void 0 : b[0]) == null ? void 0 : I.title) ?? ""
|
|
19
|
-
};
|
|
20
|
-
}, E = {
|
|
21
|
-
async read(e) {
|
|
22
|
-
const s = n(
|
|
23
|
-
await r().get("", { params: e })
|
|
24
|
-
), t = s.resources.map(C);
|
|
25
|
-
return {
|
|
26
|
-
meta: s.meta,
|
|
27
|
-
resources: t
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
async readCursor(e) {
|
|
31
|
-
const s = n(
|
|
32
|
-
await r().get("cursor", { params: e })
|
|
33
|
-
), t = s.resources.map(C);
|
|
34
|
-
return {
|
|
35
|
-
meta: s.meta,
|
|
36
|
-
resources: t
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
async readById(e) {
|
|
40
|
-
return n(await r().get(`${e}`));
|
|
41
|
-
},
|
|
42
|
-
async sendCredit(e, s) {
|
|
43
|
-
return n(
|
|
44
|
-
await a().post(
|
|
45
|
-
`members/${e}/send-credit`,
|
|
46
|
-
s
|
|
47
|
-
)
|
|
48
|
-
);
|
|
49
|
-
},
|
|
50
|
-
async deductCredit(e, s) {
|
|
51
|
-
return n(
|
|
52
|
-
await a().post(
|
|
53
|
-
`members/${e}/deduct-credit`,
|
|
54
|
-
s
|
|
55
|
-
)
|
|
56
|
-
);
|
|
57
|
-
},
|
|
58
|
-
async sendCoin(e, s) {
|
|
59
|
-
return n(
|
|
60
|
-
await a().post(
|
|
61
|
-
`members/${e}/send-coin`,
|
|
62
|
-
s
|
|
63
|
-
)
|
|
64
|
-
);
|
|
65
|
-
},
|
|
66
|
-
async deductCoin(e, s) {
|
|
67
|
-
return n(
|
|
68
|
-
await a().post(
|
|
69
|
-
`members/${e}/deduct-coin`,
|
|
70
|
-
s
|
|
71
|
-
)
|
|
72
|
-
);
|
|
73
|
-
},
|
|
74
|
-
async updateMember(e, s) {
|
|
75
|
-
return n(
|
|
76
|
-
await r().put(`${e}`, s)
|
|
77
|
-
);
|
|
78
|
-
},
|
|
79
|
-
async import(e) {
|
|
80
|
-
return await r().post("import", e);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
export {
|
|
84
|
-
E as m
|
|
85
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { g as l } from "./app-fyW0rmyk.js";
|
|
2
|
-
var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_536673d1-97e6-4d06-b107-6bfe24b7013b", 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", 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_536673d1-97e6-4d06-b107-6bfe24b7013b", 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", HCA_CLOUD_PROVIDER: "azure", 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.7.0", 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.23", 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-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1739", ACTIONS_ORCHESTRATION_ID: "ac644e3b-41df-47af-96c6-5f131de4be4b.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.10.13", 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: "20260816.277.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", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_536673d1-97e6-4d06-b107-6bfe24b7013b", 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", JOURNAL_STREAM: "9:10817", 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.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.13/x64", GITHUB_RUN_ID: "32701994951", 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: "2ea7a44e09413163139b238bd5b766cb77cf0d6c", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.6/x64", 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.102-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.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_df2cd081-76da-40f3-a1fb-e82c415e19e9", INVOCATION_ID: "f39b4d13db4b413abf1ba7adf4d2d3d7", 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: "87", 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.25", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000119513", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "mf-connect-0.1.102-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.15.21", 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_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.102-prod", npm_package_dependencies__feedmepos_hrm_permission: "1.0.14", 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: "2ea7a44e09413163139b238bd5b766cb77cf0d6c", 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", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/tags/mf-connect-0.1.102-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_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_536673d1-97e6-4d06-b107-6bfe24b7013b", 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_536673d1-97e6-4d06-b107-6bfe24b7013b", 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", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_536673d1-97e6-4d06-b107-6bfe24b7013b", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.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_536673d1-97e6-4d06-b107-6bfe24b7013b", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_dependencies__feedmepos_mf_remy_panel: "0.15.0", 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/", VOUCHER_APP_URL: "https://voucher.feedme.cc/" } }, i = Math.floor(Math.random() * 16777215), a = 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(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 _ = "", 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 _ = 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
|
-
d >> 8 & 255,
|
|
123
|
-
d & 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
|
-
};
|