@feedmepos/mf-connect 0.1.0-beta.2 → 0.1.0-beta.21

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 (97) hide show
  1. package/dist/Analytic-CZ8gfj2V.js +424 -0
  2. package/dist/{App-D8a5eW51.js → App-Da9h7lhI.js} +397 -384
  3. package/dist/{Broadcast-C8jgMe6g.js → Broadcast-m6ehTw7F.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BTKA2Ygl.js} +8 -8
  5. package/dist/Card-DqZveZ44.js +685 -0
  6. package/dist/{Collections-lMrdPUuM.js → Collections-XIY6SLgQ.js} +4 -4
  7. package/dist/{Credit-CJfU5tP4.js → Credit-B6Yg3_al.js} +14 -14
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js +2198 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js → EffectSheet.vue_vue_type_style_index_0_lang-tRUwA8zh.js} +8 -8
  11. package/dist/{Experience-Bp2ki8gU.js → Experience-CsoneWLZ.js} +8 -8
  12. package/dist/{Game-BpTf6ebE.js → Game-B029f9yE.js} +15 -15
  13. package/dist/Index-B2LvLfrR.js +226 -0
  14. package/dist/Marketing-DUTyDRXu.js +20070 -0
  15. package/dist/{Member-BSWyy32a.js → Member-CATybMaC.js} +4 -4
  16. package/dist/MemberList-DxvQ7DnC.js +1045 -0
  17. package/dist/{MemberTransactions-BzHiXCnp.js → MemberTransactions-fEZyBY9P.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js → MessageInput.vue_vue_type_script_setup_true_lang-BCCEsJZj.js} +2 -2
  19. package/dist/{Mission-8IGT3T2C.js → Mission-Cl3O0ULj.js} +16 -16
  20. package/dist/Overview-BVI2xGvT.js +1014 -0
  21. package/dist/{Point-CbbJ6ohd.js → Point-DSVn47pK.js} +23 -23
  22. package/dist/{Promotion-BYXCJa_S.js → Promotion-C4HyMpPg.js} +53 -47
  23. package/dist/Record-BSKXwUu2.js +187 -0
  24. package/dist/Reward-Cus20Wq5.js +399 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Dm6Vgx8-.js +151 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CqMCdTsv.js +1597 -0
  27. package/dist/Segment-DAHJ2FYV.js +567 -0
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DpkIgpqy.js +181 -0
  29. package/dist/{Setting-CLpvvZTv.js → Setting-D7dKlTiZ.js} +8 -8
  30. package/dist/Store-DQdWn1Dw.js +1745 -0
  31. package/dist/{StoreRewards-CUM2irXK.js → StoreRewards-Cut9mJGn.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BQscw_Di.js +957 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BVzz2Zkl.js} +1 -1
  34. package/dist/{Tier-DZTDxWBo.js → Tier-DGpNybHO.js} +15 -15
  35. package/dist/{Title-C2Dr5ceK.js → Title-D5y8GEwE.js} +15 -15
  36. package/dist/{Transaction-BL4mS29d.js → Transaction-CCnZouEv.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Cr9DV7hr.js +130 -0
  38. package/dist/{Voucher-Cx0r2-df.js → Voucher-BJ6RC4SS.js} +31 -31
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-6751WdaT.js +419 -0
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js → ZodTextField.vue_vue_type_script_setup_true_lang-aq-9V3Gc.js} +1 -1
  41. package/dist/{app-wE5HTF_Y.js → app-D3chCumI.js} +1279 -1282
  42. package/dist/{app-B_xuZ5HB.js → app-PfWyqx7U.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/{business-DSv8zM8C.js → business-trsrJyHK.js} +1 -1
  45. package/dist/{campaign-7y5qquHZ.js → campaign-B1rgdv77.js} +2 -2
  46. package/dist/collectible.enum-ZoD0ya1M.js +19 -0
  47. package/dist/{collection.fn-BxVZQAx0.js → collection.fn-CnQjdokW.js} +2 -2
  48. package/dist/{dto-Ew1QwLci.js → dto-DuJumvC2.js} +12 -20
  49. package/dist/{effect-BzPh8fRI.js → effect-CFYktLyZ.js} +9 -9
  50. package/dist/email-addresses-BocLAqLt.js +705 -0
  51. package/dist/{export-C9tDplkA.js → export-BDxbvd3c.js} +3 -3
  52. package/dist/{helper-Sz7oQ0F4.js → helper-Bx6u7f_W.js} +1 -1
  53. package/dist/{index-DH_1nOJ_.js → index-7QsBQpBM.js} +39 -35
  54. package/dist/{index-z0IfdrZk.js → index-AcoIUTDS.js} +203 -195
  55. package/dist/{index-C3_4GUiI.js → index-BAUe6Mqp.js} +7 -1
  56. package/dist/{index-C0lpADCo.js → index-C20tnKDo.js} +1 -1
  57. package/dist/{index-C-SOz7jt.js → index-CDgSJNKm.js} +1 -1
  58. package/dist/{index-DBMaUGYI.js → index-CTnZ9dt0.js} +30 -26
  59. package/dist/index-CUMB0mpB.js +28997 -0
  60. package/dist/index-CsF6BSZU.js +1067 -0
  61. package/dist/index-CsaQJMAR.js +66 -0
  62. package/dist/{index-tv4t0Pnh.js → index-DwXHEi0X.js} +1 -1
  63. package/dist/{index-_3qBsogG.js → index-ZXWgygOr.js} +1500 -1479
  64. package/dist/index-_v_LQTuR.js +53 -0
  65. package/dist/index-kLMiwwB-.js +38 -0
  66. package/dist/{index-gIRszcHf.js → index-pRpTA8Kd.js} +1 -1
  67. package/dist/{index.esm2017-BnKJDxUo.js → index.esm2017-DuOZ7nuk.js} +33 -33
  68. package/dist/{loading-Ds-yFYhc.js → loading-BTEwnG5-.js} +591 -597
  69. package/dist/{membership-DaiVw9qF.js → membership-DkH7qw6W.js} +51 -43
  70. package/dist/money-BfCdj0Ts.js +15 -0
  71. package/dist/number-BKHcstZb.js +12 -0
  72. package/dist/objectid-CumRza_j.js +145 -0
  73. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  74. package/dist/reward-DpR3xoxT.js +36 -0
  75. package/dist/{rule-Cd2M6Ri2.js → rule-Hb9_sJvP.js} +180 -177
  76. package/dist/{rule-builder-B6og27Q1.js → rule-builder-BhwlX4fv.js} +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/{template-DouRWBpv.js → template-PkDFDppy.js} +5 -5
  79. package/dist/trigger-vLHrldAH.js +114 -0
  80. package/dist/{vue-i18n-BTlOChXs.js → vue-i18n-ComnFt3O.js} +2 -2
  81. package/dist/{xlsx-SahfXQ70.js → xlsx-CsUJ1mq4.js} +1 -1
  82. package/package.json +8 -7
  83. package/dist/Analytic-DSD9TsKr.js +0 -622
  84. package/dist/Card-C1K7ULPo.js +0 -825
  85. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js +0 -2809
  86. package/dist/Marketing-BiKE2gxA.js +0 -316
  87. package/dist/MemberList-CHlGREyR.js +0 -1733
  88. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js +0 -1753
  89. package/dist/Segment-DXDNM0yd.js +0 -437
  90. package/dist/Store-C6-P6bwc.js +0 -1511
  91. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js +0 -890
  92. package/dist/index-BQm0C3Jm.js +0 -298
  93. package/dist/index-CuvNtC_M.js +0 -61
  94. package/dist/index-D-2nFLsg.js +0 -762
  95. package/dist/index-Dy4pmQpt.js +0 -29193
  96. package/dist/money-BHtBdZoz.js +0 -15
  97. package/dist/number-CZhcB8ef.js +0 -12
@@ -1,28 +1,28 @@
1
- import { components as U } from "@feedmepos/ui-library";
2
- import { n as o } from "./index-_3qBsogG.js";
1
+ import { components as $ } from "@feedmepos/ui-library";
2
+ import { a as o } from "./collectible.enum-ZoD0ya1M.js";
3
3
  import { h as f, ref as r } from "vue";
4
- import { defineStore as V } from "pinia";
5
- import { m as p } from "./index-C3_4GUiI.js";
6
- import { g as c, u as k } from "./index-Dy4pmQpt.js";
7
- function i(t) {
4
+ import { defineStore as U } from "pinia";
5
+ import { m as p } from "./index-BAUe6Mqp.js";
6
+ import { g as i, u as V } from "./index-CUMB0mpB.js";
7
+ function c(t) {
8
8
  return f(
9
9
  "div",
10
10
  {
11
11
  class: `${t.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
12
12
  },
13
13
  [
14
- f(U.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
14
+ f($.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
15
15
  f("span", { class: "fm-typo-en-body-md-600" }, t.name)
16
16
  ]
17
17
  );
18
18
  }
19
- const F = {
19
+ const k = {
20
20
  [o.enum.VOUCHER]: {
21
21
  chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
22
22
  icon: "sell",
23
23
  name: "Voucher",
24
24
  chip() {
25
- return i(this);
25
+ return c(this);
26
26
  }
27
27
  },
28
28
  [o.enum.CREDIT]: {
@@ -30,7 +30,7 @@ const F = {
30
30
  icon: "local_activity",
31
31
  name: "Credit",
32
32
  chip() {
33
- return i(this);
33
+ return c(this);
34
34
  }
35
35
  },
36
36
  [o.enum.POINT]: {
@@ -38,7 +38,7 @@ const F = {
38
38
  icon: "award_star",
39
39
  name: "Experience",
40
40
  chip() {
41
- return i(this);
41
+ return c(this);
42
42
  }
43
43
  },
44
44
  [o.enum.COIN]: {
@@ -46,7 +46,7 @@ const F = {
46
46
  icon: "monetization_on",
47
47
  name: "Point",
48
48
  chip() {
49
- return i(this);
49
+ return c(this);
50
50
  }
51
51
  },
52
52
  // TODO: add color for this
@@ -55,7 +55,7 @@ const F = {
55
55
  icon: "leaderboard",
56
56
  name: "Tier",
57
57
  chip() {
58
- return i(this);
58
+ return c(this);
59
59
  }
60
60
  },
61
61
  // TODO: add color for this
@@ -64,7 +64,7 @@ const F = {
64
64
  icon: "id_card",
65
65
  name: "Title",
66
66
  chip() {
67
- return i(this);
67
+ return c(this);
68
68
  }
69
69
  },
70
70
  [o.enum.GAME]: {
@@ -72,7 +72,7 @@ const F = {
72
72
  icon: "database",
73
73
  name: "Token",
74
74
  chip() {
75
- return i(this);
75
+ return c(this);
76
76
  }
77
77
  },
78
78
  // TODO: confirm color
@@ -81,12 +81,20 @@ const F = {
81
81
  icon: "database",
82
82
  name: "Stamp",
83
83
  chip() {
84
- return i(this);
84
+ return c(this);
85
+ }
86
+ },
87
+ [o.enum.REFERRAL]: {
88
+ chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
89
+ icon: "database",
90
+ name: "Successful Referral",
91
+ chip() {
92
+ return c(this);
85
93
  }
86
94
  }
87
- }, m = () => k("segments"), H = {
95
+ }, m = () => V("segments"), H = {
88
96
  async readAll(t) {
89
- const a = c(
97
+ const a = i(
90
98
  await m().get("", { params: t })
91
99
  );
92
100
  return {
@@ -95,18 +103,18 @@ const F = {
95
103
  };
96
104
  },
97
105
  async readById(t) {
98
- return c(await m().get(t));
106
+ return i(await m().get(t));
99
107
  },
100
108
  async refreshSegments() {
101
- return c(await m().get("refresh"));
109
+ return i(await m().get("refresh"));
102
110
  },
103
111
  async refreshSegment(t) {
104
- return c(
112
+ return i(
105
113
  await m().get(`refresh/${t}`)
106
114
  );
107
115
  },
108
116
  async paginateSegmentUsers(t, a) {
109
- const l = c(
117
+ const l = i(
110
118
  await m().get(`/${t}/users`, {
111
119
  params: a
112
120
  })
@@ -117,28 +125,28 @@ const F = {
117
125
  };
118
126
  },
119
127
  async create(t) {
120
- return c(await m().post("", t));
128
+ return i(await m().post("", t));
121
129
  },
122
130
  async update(t, a) {
123
- return c(await m().put(t, a));
131
+ return i(await m().put(t, a));
124
132
  },
125
133
  async delete(t) {
126
- return c(await m().delete(t));
134
+ return i(await m().delete(t));
127
135
  }
128
- }, q = V("mf-connect-membership", () => {
129
- var E, A;
130
- const t = r(null), a = r(null), l = r(null), u = r([]), d = r([]), y = r(null), h = r([]), g = r(), v = r(((E = t.value) == null ? void 0 : E.tiers) ?? []), b = r(((A = t.value) == null ? void 0 : A.pf_title) ?? []), C = r([]), w = r({ raw: [], items: [] }), T = r([]), I = async () => {
136
+ }, q = U("mf-connect-membership", () => {
137
+ var S, x;
138
+ const t = r(null), a = r(null), l = r(null), u = r([]), d = r([]), y = r(null), h = r([]), g = r(), b = r(((S = t.value) == null ? void 0 : S.tiers) ?? []), v = r(((x = t.value) == null ? void 0 : x.pf_title) ?? []), C = r([]), w = r({ raw: [], items: [] }), T = r([]), A = async () => {
131
139
  const e = await p.read();
132
- t.value = e, y.value = e, v.value = e.tiers, b.value = e.pf_title ?? [], S(), x();
133
- }, _ = async () => {
140
+ t.value = e, y.value = e, b.value = e.tiers, v.value = e.pf_title ?? [], E(), R();
141
+ }, I = async () => {
134
142
  const e = await p.readPayoutAccount();
135
143
  l.value = Array.isArray(e) && e.length == 0 ? null : e;
136
- }, R = async () => {
144
+ }, _ = async () => {
137
145
  const e = await p.readStore();
138
146
  a.value = e, M(), P();
139
147
  }, O = async () => {
140
148
  const e = await p.readRewards();
141
- u.value = e, S(), x();
149
+ u.value = e, E(), R();
142
150
  }, L = async () => {
143
151
  const e = await H.readAll({
144
152
  skip: 0,
@@ -151,7 +159,7 @@ const F = {
151
159
  h.value = (((e = a.value) == null ? void 0 : e.categories) ?? []).map((n) => ({
152
160
  ...n,
153
161
  bundles: n.bundles.sort(
154
- (s, $) => s.name.localeCompare($.name, "en", { numeric: !0 })
162
+ (s, F) => s.name.localeCompare(F.name, "en", { numeric: !0 })
155
163
  )
156
164
  })).sort((n, s) => n.name.localeCompare(s.name, "en", { numeric: !0 }));
157
165
  }, P = () => {
@@ -161,18 +169,18 @@ const F = {
161
169
  inclusiveTaxes: ((n = a.value) == null ? void 0 : n.inclusiveTaxes) ?? [],
162
170
  stripe: (s = a.value) == null ? void 0 : s.stripe
163
171
  };
164
- }, S = () => {
172
+ }, E = () => {
165
173
  var e;
166
174
  C.value = [
167
175
  ...u.value.filter((n) => n.type == "VOUCHER" && n.noCampaign),
168
176
  ...((e = t.value) == null ? void 0 : e.pf_title) ?? []
169
177
  ];
170
- }, x = () => {
178
+ }, R = () => {
171
179
  var n;
172
180
  const e = [
173
181
  ...u.value.filter(
174
- (s) => !["VOUCHER", "TIER", "GAME", "TITLE", "STAMP"].includes(s.type)
175
- ).map((s) => ({ ...s, name: F[s.type].name })),
182
+ (s) => !["VOUCHER", "TIER", "GAME", "TITLE", "STAMP", "REFERRAL"].includes(s.type)
183
+ ).map((s) => ({ ...s, name: k[s.type].name })),
176
184
  ...((n = t.value) == null ? void 0 : n.pf_title) ?? []
177
185
  ];
178
186
  w.value = {
@@ -198,24 +206,24 @@ const F = {
198
206
  segments: d,
199
207
  payoutAccount: l,
200
208
  // Actions
201
- readMembership: I,
202
- readPayoutAccount: _,
203
- readMemberStore: R,
209
+ readMembership: A,
210
+ readPayoutAccount: I,
211
+ readMemberStore: _,
204
212
  readRewards: O,
205
213
  readSegments: L,
206
214
  // Getters
207
215
  membershipInfo: y,
208
216
  sortedStoreCategories: h,
209
217
  storeOption: g,
210
- sortedTiers: v,
211
- sortedTitles: b,
218
+ sortedTiers: b,
219
+ sortedTitles: v,
212
220
  bundleRewards: C,
213
221
  loyaltyRewards: w,
214
222
  segmentOptions: T
215
223
  };
216
224
  });
217
225
  export {
218
- F as C,
226
+ k as C,
219
227
  H as s,
220
228
  q as u
221
229
  };
@@ -0,0 +1,15 @@
1
+ import { c as r } from "./index-CUMB0mpB.js";
2
+ function n(o) {
3
+ return r.Dinero.fromNumber({ number: o });
4
+ }
5
+ function t() {
6
+ return r.Dinero.zero().toObject();
7
+ }
8
+ function i() {
9
+ return r.Dinero.zero();
10
+ }
11
+ export {
12
+ i as a,
13
+ n as t,
14
+ t as z
15
+ };
@@ -0,0 +1,12 @@
1
+ import { c as n } from "./index-CUMB0mpB.js";
2
+ function s(t) {
3
+ return n.DineroFactory(t).multiply(100).toFormat(!1);
4
+ }
5
+ function c(t, r = 2, o = !1) {
6
+ const e = parseFloat(String(t)).toFixed(r);
7
+ return o ? parseFloat(e).toString() : e;
8
+ }
9
+ export {
10
+ s as F,
11
+ c as f
12
+ };
@@ -0,0 +1,145 @@
1
+ import { g as l } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ var t = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7a24332d-cd29-4821-b611-a7428ffdbaa8", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", 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", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.19.0 linux x64", CI: "true", npm_package_dependencies_vue: "^3.4.33", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7a24332d-cd29-4821-b611-a7428ffdbaa8", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.12.5", npm_package_dependencies_fabric: "^5.5.1", 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: "", SYSTEMD_EXEC_PID: "711", npm_package_dependencies__feedmepos_ui_library: "1.5.5", 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_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", 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", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250406.1.0", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.8", 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", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.8/x64", JOURNAL_STREAM: "8:6328", GITHUB_WORKFLOW: "Publish mf-connect - dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "14381886925", STATS_VMFE: "true", 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: "f10d37335a7b841d350ad9a17254b9387cfd5b3a", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[DEV] publish-mf-connect.yml@refs/heads/dev", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.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.0/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_f4d51c2e-6fa0-4936-9d48-86e7b5f70d4b", INVOCATION_ID: "bb9fc67ba07c47848a39e69391675a6b", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.0/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "77", 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.18", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 450", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "^2.14.6", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.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.0-beta.21", 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", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "f10d37335a7b841d350ad9a17254b9387cfd5b3a", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", 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_dependencies_firebase: "^10.12.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_7a24332d-cd29-4821-b611-a7428ffdbaa8", 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", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_7a24332d-cd29-4821-b611-a7428ffdbaa8", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_pnpm_overrides__feedmepos_mf_common: "1.15.0-beta.6", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_7a24332d-cd29-4821-b611-a7428ffdbaa8", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", 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", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedmedev.cc", 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" } }, i = Math.floor(Math.random() * 16777215), a = n.index = parseInt(Math.random() * 16777215, 10), d = (typeof t > "u" || typeof t.pid != "number" ? Math.floor(Math.random() * 1e5) : t.pid) % 65535, c = (() => {
3
+ try {
4
+ return _Buffer;
5
+ } catch {
6
+ try {
7
+ return Buffer;
8
+ } catch {
9
+ return null;
10
+ }
11
+ }
12
+ })(), s = function(e) {
13
+ return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
14
+ }, u = [];
15
+ for (var r = 0; r < 256; r++)
16
+ u[r] = (r <= 15 ? "0" : "") + r.toString(16);
17
+ var m = new RegExp("^[0-9a-fA-F]{24}$"), p = [];
18
+ r = 0;
19
+ for (; r < 10; ) p[48 + r] = r++;
20
+ for (; r < 16; ) p[55 + r] = p[87 + r] = r++;
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(p[e.charCodeAt(o++)] << 4 | p[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 : s(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 (s(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 && s(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 s(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 T = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
137
+ n.prototype[T] = 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
+ };