@feedmepos/mf-connect 0.1.38-beta.1 → 0.1.38-beta.2

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 (93) hide show
  1. package/dist/{Analytic-O-qZWrFp.js → Analytic-BjSfI2Ff.js} +13 -13
  2. package/dist/{App-BWZ2EE71.js → App-D11A2JY1.js} +6 -6
  3. package/dist/{AuditLogs-DlmcFEta.js → AuditLogs-DWCFYoRg.js} +9 -9
  4. package/dist/{Bin-C-Ha-4yF.js → Bin-9wV4Ah3M.js} +8 -8
  5. package/dist/{Broadcast-Bo3QS8lS.js → Broadcast-I3BtSk8V.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js} +6 -6
  7. package/dist/{Card-Bs1TDE0e.js → Card-CqALG5RM.js} +16 -16
  8. package/dist/{Collections-Dy5RN7Js.js → Collections-rg3SzoUb.js} +6 -6
  9. package/dist/{Credit-Bqc4dw1s.js → Credit-BNn1sYZv.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js} +30 -29
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js → EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js} +6 -6
  12. package/dist/{Experience-C2e2T7B-.js → Experience-D_Qm8SUj.js} +9 -9
  13. package/dist/{Game-C86eEhcx.js → Game-CKXgXm6Q.js} +10 -10
  14. package/dist/{Index-BRGweFco.js → Index-D4DGfUHd.js} +10 -10
  15. package/dist/{Marketing-CnnrnXbS.js → Marketing-Dn9A1vgH.js} +6 -6
  16. package/dist/Member-B55vWHDd.js +279 -0
  17. package/dist/{MemberList-BpE1IjED.js → MemberList-BWTG9Ohy.js} +25 -25
  18. package/dist/{MemberTransactions-C4hao-d9.js → MemberTransactions-CP5EI-W0.js} +1 -1
  19. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +60279 -0
  20. package/dist/{Mission-BURXfzjd.js → Mission-CFvhROuB.js} +10 -10
  21. package/dist/{Overview-D_hrrM4O.js → Overview-4273yNwL.js} +18 -18
  22. package/dist/{Point-CJXkJY5Q.js → Point-B_-_C919.js} +9 -9
  23. package/dist/{Promotion-CunJrh42.js → Promotion-D2S3COxk.js} +10 -10
  24. package/dist/{Queue-v5Itg9J4.js → Queue-BmS1Oi-C.js} +10 -10
  25. package/dist/{Record-DJe4tg9R.js → Record-DRBl0M8g.js} +8 -8
  26. package/dist/{Reward-Y9aHpny5.js → Reward-8056NmfK.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js → RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js → RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js} +13 -13
  29. package/dist/{Segment-DVT8uDn8.js → Segment-Bzq-pyhc.js} +22 -22
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js → SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js} +11 -11
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js} +3 -3
  33. package/dist/{Setting-BU5778gG.js → Setting-BrJfYoru.js} +11 -11
  34. package/dist/{Store-IWg0POAU.js → Store-Bpl_4yZW.js} +19 -19
  35. package/dist/{StoreRewards-CIjHcVoh.js → StoreRewards-Cu7n7Pjz.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js → StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js} +20 -20
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js} +1 -1
  38. package/dist/{Tier-iN30KD7g.js → Tier-_LnXg3n6.js} +20 -20
  39. package/dist/{Title-Duh_Srek.js → Title-B7AGStvx.js} +19 -19
  40. package/dist/{Transaction-DLBA7Svl.js → Transaction-Chxv6V7u.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js} +6 -6
  42. package/dist/{Voucher-cTvlMN0Y.js → Voucher-C5z2kOq9.js} +13 -13
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js → ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js} +1 -1
  45. package/dist/{app-De-yQ1CJ.js → app-7cvPyHJ7.js} +31 -31
  46. package/dist/{app-A3oEKLq5.js → app-BVojNX0w.js} +1 -1
  47. package/dist/app.js +1 -1
  48. package/dist/{business-B2JBpm4y.js → business-CmxV69wT.js} +1 -1
  49. package/dist/{campaign-Bhur0NJx.js → campaign-CT_cNJEL.js} +9 -9
  50. package/dist/{campaign-vkzui6F2.js → campaign-Dq5C_no-.js} +2 -2
  51. package/dist/{campaign.enum-DCYkKGhd.js → campaign.enum-dp7yHKzF.js} +1 -1
  52. package/dist/{campaign.fn--affTEi5.js → campaign.fn-BYZgKDN7.js} +119 -119
  53. package/dist/{collectible.enum-CLBCnfev.js → collectible.enum-DxbB4DxT.js} +1 -1
  54. package/dist/{collection.fn-bA8q0KYy.js → collection.fn-CNZRdUgy.js} +2 -2
  55. package/dist/{dto-RCcWeYE0.js → dto-CT9zZbv9.js} +4 -4
  56. package/dist/{effect-D7qRfPe_.js → effect-FIlOEC4H.js} +1 -1
  57. package/dist/{email-addresses-a8PqViID.js → email-addresses-Ba7xImfX.js} +1 -1
  58. package/dist/{export-BneqNRn4.js → export-uzjZFNF9.js} +3 -3
  59. package/dist/{helper-DfvvxOyO.js → helper-D4sAZde0.js} +1 -1
  60. package/dist/{index-D0GnMoag.js → index-B9pl4zRZ.js} +24 -13
  61. package/dist/{index-DeXvASjP.js → index-BI3m1Ehv.js} +3 -3
  62. package/dist/{index-2LpkG8Ye.js → index-BXz54M1s.js} +1 -1
  63. package/dist/{index-4kMeSNTr.js → index-BjU8LVUC.js} +3 -3
  64. package/dist/{index-CbsJ6vMJ.js → index-CH3z92VV.js} +1 -1
  65. package/dist/{index-CrFUhsZO.js → index-CNJLP3D5.js} +1 -1
  66. package/dist/{index-B0T9GDIZ.js → index-CONvJfKv.js} +1 -1
  67. package/dist/{index-CMBPIb8x.js → index-CS3Jmojj.js} +1097 -1097
  68. package/dist/{index-y-7yUm2e.js → index-CUfS9Kp1.js} +2 -2
  69. package/dist/{index-DMrIQqFt.js → index-CvBcve-r.js} +1 -1
  70. package/dist/{index-CVAWGMus.js → index-CwsMG2cV.js} +1 -1
  71. package/dist/{index-BWTvsoH0.js → index-D5rvMvzx.js} +1 -1
  72. package/dist/{index-CtDqXnOp.js → index-DNxa8Rqx.js} +6 -6
  73. package/dist/{index-CTKMdxSm.js → index-l2F5MnLF.js} +1 -1
  74. package/dist/{index.esm2017-JtyypweZ.js → index.esm2017-ATcsD5N4.js} +1 -1
  75. package/dist/{loading-a-FqrwqI.js → loading-BWGQSrCB.js} +1 -1
  76. package/dist/{membership-CGVtil5J.js → membership-Cc4OZ8-U.js} +3 -3
  77. package/dist/{money-CTc1l_Cq.js → money-D7p8nfun.js} +1 -1
  78. package/dist/{number-W3R-0nYP.js → number-CMJjC4qz.js} +1 -1
  79. package/dist/objectid-D5T27iny.js +145 -0
  80. package/dist/{plugins-D2sSgTSl.js → plugins-eQis66QR.js} +2 -2
  81. package/dist/{reward-atP8vnNn.js → reward-DrnzbG20.js} +1 -1
  82. package/dist/{rule-eA5IvnjB.js → rule-CtRxkYXB.js} +3 -3
  83. package/dist/{rule-builder-BB29ZJ_C.js → rule-builder-Di9RIYHF.js} +1 -1
  84. package/dist/style.css +1 -1
  85. package/dist/{template-DhBeDaAm.js → template-C3UfY0v5.js} +4 -4
  86. package/dist/{trigger-Bq_pZj1J.js → trigger-C9U7Zgad.js} +4 -4
  87. package/dist/{user-B-bhVFIG.js → user-D7n9yYmO.js} +1 -1
  88. package/dist/{vue-i18n-D-h8VDSx.js → vue-i18n-Bz45zC04.js} +287 -287
  89. package/dist/{xlsx-DsByAcZl.js → xlsx-D4S4qbcZ.js} +1 -1
  90. package/package.json +5 -1
  91. package/dist/Member-B3o0Zhcw.js +0 -287
  92. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js +0 -455
  93. package/dist/objectid-BU0Y8iAN.js +0 -145
@@ -1,455 +0,0 @@
1
- import { defineComponent as I, shallowRef as G, openBlock as h, createElementBlock as F, normalizeStyle as z, ref as w, resolveComponent as b, createBlock as C, unref as i, isRef as P, withCtx as $, createVNode as g, createElementVNode as S, createCommentVNode as H, withDirectives as A, vShow as B, computed as q, onMounted as J, Fragment as T, renderList as Z, normalizeClass as K, toDisplayString as W } from "vue";
2
- import { p as X } from "./plugins-D2sSgTSl.js";
3
- import { B as Y } from "./index-CtDqXnOp.js";
4
- import "./index-CMBPIb8x.js";
5
- import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { _ as ee, S as te } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
7
- import { c as ne } from "./object-qECH92oz.js";
8
- import { useCoreStore as oe } from "@feedmepos/mf-common";
9
- import { u as se } from "./membership-CGVtil5J.js";
10
- const ae = {
11
- "user.name": {
12
- name: "User name"
13
- },
14
- "user.birthday": {
15
- name: "Birthday"
16
- },
17
- "user.joinAt": {
18
- name: "Join at"
19
- },
20
- "user.expiringVouchers.days7": {
21
- name: "Expiring vouchers in 7 days"
22
- },
23
- "user.expiringVouchers.days30": {
24
- name: "Expiring vouchers in 30 days"
25
- },
26
- "user.expiringVouchers.days90": {
27
- name: "Expiring vouchers in 90 days"
28
- },
29
- "user.tier": {
30
- name: "User tier"
31
- },
32
- "user.point": {
33
- name: "User experience"
34
- },
35
- "user.gender": {
36
- name: "Gender"
37
- },
38
- "user.phoneNumber": {
39
- name: "Phone Number"
40
- },
41
- "transaction.amount": {
42
- name: "Reward amount"
43
- },
44
- "collectible.name": {
45
- name: "Reward name"
46
- },
47
- "membership.url": {
48
- name: "Membership URL"
49
- }
50
- }, ke = {
51
- MY: ["user.phoneNumber", "membership.url"]
52
- }, ie = "https://editor.unlayer.com/embed.js?2", N = [];
53
- let O = !1;
54
- const re = (e) => {
55
- const n = document.querySelectorAll("script");
56
- let d = !1;
57
- return n.forEach((c) => {
58
- c.src.includes(e) && (d = !0);
59
- }), d;
60
- }, le = (e) => {
61
- N.push(e);
62
- }, R = () => {
63
- if (O) {
64
- let e;
65
- for (; e = N.shift(); )
66
- e();
67
- }
68
- }, de = (e, n = ie) => {
69
- if (le(e), re(n))
70
- R();
71
- else {
72
- const d = document.createElement("script");
73
- d.setAttribute("src", n), d.onload = () => {
74
- O = !0, R();
75
- }, document.head.appendChild(d);
76
- }
77
- };
78
- let ue = 0;
79
- const ce = I({
80
- name: "EmailEditor",
81
- props: {
82
- editorId: String,
83
- minHeight: {
84
- type: String,
85
- default: "500px"
86
- },
87
- options: Object,
88
- scriptUrl: String,
89
- /**
90
- * @Deprecated Props: Use `options.appearance` instead
91
- */
92
- appearance: Object,
93
- /**
94
- * @Deprecated Props: Use `options.locale` instead
95
- */
96
- locale: String,
97
- /**
98
- * @Deprecated Props: Use `options.projectId` instead
99
- */
100
- projectId: Number,
101
- /**
102
- * @Deprecated Props: Use `options.tools` instead
103
- */
104
- tools: Object
105
- },
106
- computed: {
107
- id() {
108
- return this.editorId || `editor-${++ue}`;
109
- }
110
- },
111
- setup() {
112
- return {
113
- editor: G(null)
114
- // Makes editor available to the template
115
- };
116
- },
117
- mounted() {
118
- this.$emit("load"), de(this.loadEditor.bind(this), this.scriptUrl);
119
- },
120
- methods: {
121
- loadEditor() {
122
- const e = this.options || {};
123
- this.appearance && (e.appearance = this.appearance), this.locale && (e.locale = this.locale), this.projectId && (e.projectId = this.projectId), this.tools && (e.tools = this.tools), this.editor = unlayer.createEditor({
124
- ...e,
125
- id: this.id
126
- }), this.editor.addEventListener("editor:ready", () => {
127
- this.$emit("ready");
128
- });
129
- },
130
- /**
131
- * @deprecated This method will be removed in the next major release. Use `editor.exportHtml` instead.
132
- */
133
- exportHtml(e) {
134
- var n;
135
- (n = this.editor) == null || n.exportHtml(e);
136
- },
137
- /**
138
- * @deprecated This method will be removed in the next major release. Use `editor.loadDesign` instead.
139
- */
140
- loadDesign(e) {
141
- var n;
142
- (n = this.editor) == null || n.loadDesign(e);
143
- },
144
- /**
145
- * @deprecated This method will be removed in the next major release. Use `editor.saveDesign` instead.
146
- */
147
- saveDesign(e) {
148
- var n;
149
- (n = this.editor) == null || n.saveDesign(e);
150
- }
151
- }
152
- }), me = ["id"];
153
- function pe(e, n, d, c, a, m) {
154
- return h(), F("div", {
155
- id: e.id,
156
- class: "unlayer-editor",
157
- style: z({ minHeight: e.minHeight })
158
- }, null, 12, me);
159
- }
160
- const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94"]]), ge = { class: "h-full flex flex-col" }, fe = { class: "flex items-center gap-8" }, be = /* @__PURE__ */ I({
161
- __name: "EmailEditorSheet",
162
- props: {
163
- design: {
164
- type: Object,
165
- required: !1
166
- },
167
- title: {
168
- type: String,
169
- required: !1
170
- }
171
- },
172
- emits: ["update:design"],
173
- setup(e, { expose: n, emit: d }) {
174
- const c = w(!1), a = w(null), m = w(!1), x = e, u = w({
175
- html: "",
176
- design: x.design,
177
- title: x.title || ""
178
- });
179
- function E(o) {
180
- c.value = o;
181
- }
182
- const L = d;
183
- function k() {
184
- a.value && (a.value.exportHtml((o) => {
185
- u.value = {
186
- html: o.html,
187
- design: o.design,
188
- title: u.value.title
189
- }, L("update:design", u.value);
190
- }), E(!1));
191
- }
192
- return n({
193
- showSheet: E
194
- }), (o, t) => {
195
- const r = b("FmButton"), f = b("FmTextField"), y = b("FmSideSheet");
196
- return h(), C(y, {
197
- modelValue: i(c),
198
- "onUpdate:modelValue": t[4] || (t[4] = (l) => P(c) ? c.value = l : null),
199
- header: "Email editor",
200
- "max-width": 1280
201
- }, {
202
- "side-sheet-button": $(() => [
203
- g(r, {
204
- label: "Edit email",
205
- variant: "tertiary",
206
- icon: "edit"
207
- })
208
- ]),
209
- default: $(() => [
210
- S("div", ge, [
211
- i(m) ? H("", !0) : (h(), C(ee, {
212
- key: 0,
213
- class: "flex-1",
214
- json: i(te),
215
- width: 100,
216
- height: 100
217
- }, null, 8, ["json"])),
218
- A(g(f, {
219
- label: "Email title",
220
- modelValue: i(u).title,
221
- "onUpdate:modelValue": t[0] || (t[0] = (l) => i(u).title = l)
222
- }, null, 8, ["modelValue"]), [
223
- [B, i(m)]
224
- ]),
225
- A(g(he, {
226
- class: "flex-1",
227
- ref_key: "editorRef",
228
- ref: a,
229
- onLoad: t[1] || (t[1] = (l) => m.value = !1),
230
- onReady: t[2] || (t[2] = () => {
231
- var l;
232
- m.value = !0, x.design && ((l = i(a)) == null || l.loadDesign(i(ne)(x.design)));
233
- })
234
- }, null, 512), [
235
- [B, i(m)]
236
- ])
237
- ])
238
- ]),
239
- "side-sheet-footer": $(() => [
240
- S("div", fe, [
241
- g(r, {
242
- variant: "primary",
243
- label: "Confirm",
244
- onClick: k
245
- }),
246
- g(r, {
247
- variant: "tertiary",
248
- label: "Cancel",
249
- onClick: t[3] || (t[3] = (l) => E(!1))
250
- })
251
- ])
252
- ]),
253
- _: 1
254
- }, 8, ["modelValue"]);
255
- };
256
- }
257
- }), ye = { class: "space-y-4" }, ve = { class: "flex items-center gap-8 justify-between" }, Se = { class: "relative" }, xe = { class: "absolute bottom-[24px] right-[4px]" }, Ie = /* @__PURE__ */ I({
258
- __name: "MessageInput",
259
- props: {
260
- allowEmail: {
261
- type: Boolean,
262
- default: !1
263
- },
264
- modelValue: {
265
- type: Object
266
- },
267
- triggerType: {
268
- type: String,
269
- default: () => "SCHEDULE"
270
- },
271
- helperText: {
272
- type: String
273
- },
274
- helperState: {
275
- type: String
276
- },
277
- variables: {
278
- type: Object,
279
- default: () => [
280
- "user.name",
281
- "user.birthday",
282
- "user.joinAt",
283
- "user.expiringVouchers.days7",
284
- "user.expiringVouchers.days30",
285
- "user.expiringVouchers.days90",
286
- "user.tier",
287
- "user.point",
288
- "transaction.amount",
289
- "collectible.name"
290
- ]
291
- },
292
- placeholder: {
293
- type: String
294
- }
295
- },
296
- emits: ["update:model-value"],
297
- setup(e, { emit: n }) {
298
- const d = oe(), c = se(), a = e, m = n;
299
- function x() {
300
- var r;
301
- const o = {
302
- user: {
303
- name: "John Doe",
304
- tier: 1,
305
- point: 1283,
306
- birthday: (/* @__PURE__ */ new Date("2000-10-02T16:00:00.000Z")).toLocaleDateString(),
307
- joinAt: (/* @__PURE__ */ new Date("2024-06-14")).toLocaleDateString(),
308
- expiringVouchers: { days7: 3, days30: 5, days90: 5 }
309
- },
310
- transaction: {
311
- amount: 3
312
- },
313
- collectible: {
314
- name: "RM10 Voucher"
315
- }
316
- }, t = Y(
317
- ((r = a.modelValue) == null ? void 0 : r.content) ?? "",
318
- o
319
- );
320
- X.confirm(t, "Preview message", "OK");
321
- }
322
- function u(o, t = "SMS") {
323
- m("update:model-value", {
324
- channel: t,
325
- content: t == "SMS" ? o : o.html,
326
- design: t == "EMAIL" ? o.design : void 0,
327
- language: "en",
328
- title: t == "EMAIL" ? o.title : void 0,
329
- variables: a.variables
330
- });
331
- }
332
- const E = w(a.helperState || "none"), L = q(() => {
333
- var M, _;
334
- const o = ((M = c.membership) == null ? void 0 : M.brand) || d.currentBusiness.value.name || "", t = 160;
335
- let r = t;
336
- const f = ((_ = a.modelValue) == null ? void 0 : _.content.replace(/{{([^}]+)}}/g, (v, s) => {
337
- switch (s) {
338
- case "user.name":
339
- return "1234567890";
340
- case "user.tier":
341
- return "1";
342
- case "user.point":
343
- return "1000";
344
- case "user.birthday":
345
- return "01/01/2024";
346
- case "user.joinAt":
347
- return "01/01/2024";
348
- case "user.expiringVouchers.days7":
349
- case "user.expiringVouchers.days30":
350
- case "user.expiringVouchers.days90":
351
- return "5";
352
- case "transaction.amount":
353
- return "100";
354
- case "collectible.name":
355
- return "Voucher";
356
- default:
357
- return "...";
358
- }
359
- })) || "";
360
- let y = o.length + 5;
361
- const l = "^{}\\[~]|€", j = /[^@£$¥èéùìòÇ\nØø\rÅåΔ_ΦΓΛΩΠΨΣΘΞ !"#%&'()*+,\-./0123456789:;<=>?A-ZÄÖÑܧ¿a-zäöñüà^{}\\[~\]|€]/.test(
362
- f
363
- );
364
- let p = 0;
365
- if (j)
366
- p = f.length + y, r = p > 70 ? 67 : 70;
367
- else {
368
- let v = 0;
369
- for (const s of f)
370
- l.includes(s) ? v += 2 : v += 1;
371
- p = v + y, r = p > 160 ? 153 : 160;
372
- }
373
- const V = Math.min(r, t);
374
- return `Reserved: ${y} | Character used: ${p} | Encoding: ${j ? "UCS2" : "GSM 7-bit"}. Estimated ${Math.ceil(p / V)} SMS (Every ${V} characters will be sent as 1 SMS)`;
375
- }), k = [{ label: "SMS" }, { label: "EMAIL" }];
376
- return J(() => {
377
- m("update:model-value", {
378
- ...a.modelValue,
379
- variables: a.variables
380
- }), a.modelValue || u("");
381
- }), (o, t) => {
382
- var p, V, M, _, v;
383
- const r = b("FmButtonGroup"), f = b("FmButton"), y = b("FmTextarea"), l = b("FmMenuItem"), j = b("FmMenu");
384
- return h(), F("div", ye, [
385
- e.allowEmail ? (h(), C(r, {
386
- key: 0,
387
- items: k,
388
- "model-value": { label: (p = e.modelValue) == null ? void 0 : p.channel },
389
- "onUpdate:modelValue": t[0] || (t[0] = (s) => u("", s.label))
390
- }, null, 8, ["model-value"])) : H("", !0),
391
- ((V = e.modelValue) == null ? void 0 : V.channel) == "EMAIL" ? (h(), C(be, {
392
- key: 1,
393
- design: (M = e.modelValue) == null ? void 0 : M.design,
394
- title: ((_ = e.modelValue) == null ? void 0 : _.title) || void 0,
395
- "onUpdate:design": t[1] || (t[1] = (s) => {
396
- u(s, "EMAIL");
397
- })
398
- }, null, 8, ["design", "title"])) : (h(), F(T, { key: 2 }, [
399
- S("div", ve, [
400
- t[2] || (t[2] = S("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1)),
401
- g(f, {
402
- icon: "visibility",
403
- label: "Preview message",
404
- variant: "plain",
405
- onClick: x
406
- })
407
- ]),
408
- S("div", Se, [
409
- g(y, {
410
- "model-value": (v = e.modelValue) == null ? void 0 : v.content,
411
- "onUpdate:modelValue": u,
412
- "show-word-count": !0,
413
- placeholder: e.placeholder,
414
- "helper-state": i(E) || "none"
415
- }, null, 8, ["model-value", "placeholder", "helper-state"]),
416
- S("div", xe, [
417
- g(j, { placement: "left-end" }, {
418
- "menu-button": $(() => [
419
- g(f, {
420
- icon: "add",
421
- variant: "tertiary",
422
- size: "md"
423
- })
424
- ]),
425
- default: $(() => [
426
- (h(!0), F(T, null, Z(e.variables.filter(
427
- (s) => e.triggerType == "SCHEDULE" ? !s.startsWith("transaction.") : !0
428
- ), (s) => {
429
- var U;
430
- return h(), C(l, {
431
- key: s,
432
- label: ((U = i(ae)[s]) == null ? void 0 : U.name) || s,
433
- onClick: (Ee) => {
434
- var D;
435
- return u(((D = e.modelValue) == null ? void 0 : D.content) + `{{${s}}}`);
436
- }
437
- }, null, 8, ["label", "onClick"]);
438
- }), 128))
439
- ]),
440
- _: 1
441
- })
442
- ])
443
- ]),
444
- S("span", {
445
- class: K(["fm-typo-en-body-md-400 text-fm-color-neutral-gray-400", i(E)])
446
- }, W(i(L)), 3)
447
- ], 64))
448
- ]);
449
- };
450
- }
451
- });
452
- export {
453
- ke as M,
454
- Ie as _
455
- };
@@ -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_e321c91a-a7f4-492f-a3ea-cf7fbf73b2fc", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_remy_vue_client: "0.2.0-beta.14", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.19.4 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_e321c91a-a7f4-492f-a3ea-cf7fbf73b2fc", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.19.4/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-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.12.5", npm_package_dependencies_fabric: "^5.5.1", npm_package_dependencies_ua_parser_js: "^2.0.3", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1746", 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_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", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250824.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", 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:12487", GITHUB_WORKFLOW: "[CD:dev] connect-portal (mf-connect)", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.6/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", GITHUB_RUN_ID: "17398032498", 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: "fb619fd145da3af5f95a8fe687f4360460b89e56", 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] deploy-mf-connect.yml@refs/heads/dev", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.19.4/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_51e93464-a012-400c-a2c8-09ff423800bf", INVOCATION_ID: "0ca1e1831e4044f3a7c55e1754fedd7a", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.19.4/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: "54", 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.20", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000014980", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/marketing-services", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "2.14.32", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.38-beta.1", npm_lifecycle_event: "build:mf:dev", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "fb619fd145da3af5f95a8fe687f4360460b89e56", GITHUB_RUN_ATTEMPT: "1", 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_e321c91a-a7f4-492f-a3ea-cf7fbf73b2fc", 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_e321c91a-a7f4-492f-a3ea-cf7fbf73b2fc", 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_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.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e321c91a-a7f4-492f-a3ea-cf7fbf73b2fc", 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", IMPORT_FILES_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "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", LICENSE_PORTAL_URL: "https://license.feedmedev.cc/" } }, a = Math.floor(Math.random() * 16777215), i = 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 f = n;
47
- n.default = n;
48
- n.createFromTime = function(e) {
49
- return e = parseInt(e, 10) % 4294967295, new n(E(8, e) + "0000000000000000");
50
- };
51
- n.createFromHexString = function(e) {
52
- if (typeof e > "u" || e != null && e.length !== 24)
53
- throw new Error(
54
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
55
- );
56
- for (var _ = "", 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 _ = g();
114
- return String.fromCharCode(
115
- e >> 24 & 255,
116
- e >> 16 & 255,
117
- e >> 8 & 255,
118
- e & 255,
119
- a >> 16 & 255,
120
- a >> 8 & 255,
121
- a & 255,
122
- c >> 8 & 255,
123
- c & 255,
124
- _ >> 16 & 255,
125
- _ >> 8 & 255,
126
- _ & 255
127
- );
128
- }
129
- };
130
- function g() {
131
- return i = (i + 1) % 16777215;
132
- }
133
- function E(e, _) {
134
- return _ = _.toString(16), _.length === e ? _ : "00000000".substring(_.length, e) + _;
135
- }
136
- var h = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
137
- n.prototype[h] = function() {
138
- return "ObjectID(" + this + ")";
139
- };
140
- n.prototype.toJSON = n.prototype.toHexString;
141
- n.prototype.toString = n.prototype.toHexString;
142
- const T = /* @__PURE__ */ l(f);
143
- export {
144
- T as O
145
- };