@feedmepos/mf-connect 0.1.82-prod → 0.1.84-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/{Analytic-D850nvXy.js → Analytic---kwMsJh.js} +11 -11
  2. package/dist/{App-Dwp2SQFt.js → App-Dz1QFoj1.js} +7 -7
  3. package/dist/{Bin-t3dMVk18.js → Bin-CRYowBLt.js} +8 -8
  4. package/dist/Broadcast-C8_buAc0.js +265 -0
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CFa7asTL.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYY2JwZP.js} +6 -6
  6. package/dist/{Card-DueuT99c.js → Card-DePqhNID.js} +19 -19
  7. package/dist/{Collections-D50oEyeZ.js → Collections-RwrRqA0j.js} +8 -8
  8. package/dist/Credit-C8PUzFqm.js +259 -0
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DysfUOSp.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CgUd84nn.js} +245 -241
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-L0-aFhRw.js → EffectSheet.vue_vue_type_style_index_0_lang-DnPaODeO.js} +6 -6
  11. package/dist/Experience-DhtTPHu-.js +258 -0
  12. package/dist/{FileSaver.min-DH3eS7yi.js → FileSaver.min-BWjfwA9o.js} +1 -1
  13. package/dist/Game-CYj7LBJv.js +329 -0
  14. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BIKcbIag.js → ImageInput.vue_vue_type_script_setup_true_lang-CUltj6id.js} +1 -1
  15. package/dist/{Index-BucLJQqP.js → Index-D8AcIz6r.js} +10 -10
  16. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CIoZurPE.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CpUmN6FR.js} +1 -1
  17. package/dist/{MainLayout-DYGrSfgc.js → MainLayout-DkxA5idl.js} +1 -1
  18. package/dist/{Marketing-CsAIdNjF.js → Marketing-4h6RtJ9w.js} +6 -6
  19. package/dist/{Member-D4HF_VGN.js → Member-Mi1lEgxG.js} +11 -11
  20. package/dist/{MemberList-CPoA4ovd.js → MemberList-Cd7SXI7d.js} +27 -27
  21. package/dist/{MemberTransactions-AMv9NeIb.js → MemberTransactions-aM_CTN3-.js} +1 -1
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhhSwnK0.js → MessageInput.vue_vue_type_script_setup_true_lang-LkKXfpQ8.js} +9864 -9759
  23. package/dist/Mission-BbZXMfe2.js +333 -0
  24. package/dist/{Overview-ByO2p2Wx.js → Overview-tjz1RxkD.js} +19 -19
  25. package/dist/Point-DqSlh8lv.js +261 -0
  26. package/dist/Promotion-FNZOyKDM.js +390 -0
  27. package/dist/{Queue-BD29Mmbf.js → Queue-BGr-V2dv.js} +11 -11
  28. package/dist/{Record-CNLiN6YR.js → Record-YSp6Ra7G.js} +9 -9
  29. package/dist/{Reward-Ceo3M1yD.js → Reward-CfWeF_XY.js} +16 -16
  30. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJWQEL9W.js → RewardGroup.vue_vue_type_script_setup_true_lang-BdT11T69.js} +12 -12
  31. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CWuWGs6r.js → RuleGroup.vue_vue_type_script_setup_true_lang-D7pC5cM-.js} +15 -15
  32. package/dist/{Segment-BOQUlP-m.js → Segment-B8kCEI6G.js} +25 -25
  33. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BcXeiz0p.js → SelectItems.vue_vue_type_script_setup_true_lang-iK1tNyZN.js} +2 -2
  34. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CJ--FC-i.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cd9_IVCK.js} +12 -12
  35. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-9emjG6Nc.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CDNCuGzR.js} +4 -4
  36. package/dist/{Setting-CWapXD31.js → Setting-DRK1-tm8.js} +14 -14
  37. package/dist/{SettingAdvertisements-QEf2eyem.js → SettingAdvertisements-CPBFpIuM.js} +12 -12
  38. package/dist/{Store-Bfm2olbH.js → Store-CF55C7mv.js} +22 -22
  39. package/dist/{StoreRewards-DNDkyxxn.js → StoreRewards-hF8rcPIS.js} +15 -15
  40. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-zKLbY4Qb.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BYugGARP.js} +20 -20
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D3-wIOQ7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BSOpqCbD.js} +1 -1
  42. package/dist/{Tier-uC45o2AK.js → Tier-RKT4ClDE.js} +22 -22
  43. package/dist/{Title-zDjlDJCB.js → Title-vFFh4BdE.js} +20 -20
  44. package/dist/{Transaction-Bo9FEjMQ.js → Transaction-BHeWenhg.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BR5F0bWS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-iKbV9AAj.js} +6 -6
  46. package/dist/{Voucher-B7BTa4Vt.js → Voucher-C6ywMiLW.js} +162 -141
  47. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjrjJW7x.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DHlpDIkL.js} +12 -12
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DeAkLgaX.js → ZodTextField.vue_vue_type_script_setup_true_lang-BHhDgBiv.js} +2 -2
  49. package/dist/{app-CkUBXnib.js → app-P5wZqN7K.js} +961 -875
  50. package/dist/app.js +1 -1
  51. package/dist/{business-C8P05bjQ.js → business-B35Wh7fa.js} +1 -1
  52. package/dist/{campaign-DcLhSQVQ.js → campaign-CdGwiufg.js} +1 -1
  53. package/dist/{campaign-CyYAvl3p.js → campaign-CxeRf6Kf.js} +8 -8
  54. package/dist/{campaign.enum-h6B-mP82.js → campaign.enum-G61yFqyz.js} +1 -1
  55. package/dist/{campaign.fn-CStjDAoU.js → campaign.fn-DBGVgh7k.js} +128 -128
  56. package/dist/{collectible.enum-DT-wjl-a.js → collectible.enum-CmO4wF4e.js} +1 -1
  57. package/dist/{collection.fn-14o3RW2e.js → collection.fn-BZtvtGPA.js} +2 -2
  58. package/dist/{dto-Bv09Baex.js → dto-BmjMkp1Z.js} +4 -4
  59. package/dist/{effect-CF0s7QWQ.js → effect-eEYO0AvV.js} +1 -1
  60. package/dist/{email-addresses-B5qrHbxg.js → email-addresses-sloQNBJG.js} +2 -2
  61. package/dist/{export-B6nvdBmg.js → export-CmGCO7dx.js} +3 -3
  62. package/dist/{helper-B4-2ut7E.js → helper-CW7xMPjC.js} +1 -1
  63. package/dist/{index-D5xt8OjL.js → index-639mCQ6J.js} +1 -1
  64. package/dist/{index-CR8brl_k.js → index-B5KXKlhV.js} +1 -1
  65. package/dist/{index-DG_Ej3ec.js → index-B6dK27Ud.js} +3 -3
  66. package/dist/{index-B-y0UTZw.js → index-BD00XsAg.js} +6 -6
  67. package/dist/{index-DesSizn4.js → index-C7X2wMHZ.js} +3 -3
  68. package/dist/{index-BebGg-0n.js → index-CK4IRu1N.js} +1 -1
  69. package/dist/{index-Ct90ybe0.js → index-CLoMa41m.js} +1 -1
  70. package/dist/{index-DVb99_67.js → index-CmdjTQSX.js} +1 -1
  71. package/dist/{index-DzQjej5Y.js → index-CqtPReHP.js} +4 -4
  72. package/dist/{index-DIQ2MyWF.js → index-DCzBwaDb.js} +4 -4
  73. package/dist/{index-HhVIn4Bn.js → index-DF11MBlC.js} +1 -1
  74. package/dist/{index-DRX9TTMn.js → index-DzgPdiHK.js} +3 -3
  75. package/dist/{index-XDg25M5a.js → index-INxinXgP.js} +1 -1
  76. package/dist/{index.esm2017-1A2eV8x_.js → index.esm2017-CFPCtvwG.js} +1 -1
  77. package/dist/{loading-B0_BwPgo.js → loading-D77DfZBP.js} +1 -1
  78. package/dist/{lodash-DxIglhqk.js → lodash-B8BR1gR7.js} +1 -1
  79. package/dist/{membership-H_whlbUP.js → membership-B5p556SC.js} +3 -3
  80. package/dist/{money-DEE8QW6m.js → money-CRPmLrb_.js} +1 -1
  81. package/dist/{number-BmN5A4Cu.js → number-bJoTVZNO.js} +1 -1
  82. package/dist/objectid-DCHsjF9h.js +145 -0
  83. package/dist/{plugins-DTrOHd7d.js → plugins-DQdMt5nO.js} +3 -3
  84. package/dist/{reward-CsJhkkaT.js → reward-DeTD3TQ1.js} +1 -1
  85. package/dist/{rule-ByMxYH4c.js → rule-DSuuXRg3.js} +3 -3
  86. package/dist/{rule-builder-DwGwUlV1.js → rule-builder-D8rRlIOO.js} +1 -1
  87. package/dist/template-HTjC1_ed.js +236 -0
  88. package/dist/{timezone-Bpe-fhwZ.js → timezone-CWcYmamV.js} +2 -2
  89. package/dist/{trigger-CEprJYiD.js → trigger-BZa0mW7v.js} +5 -5
  90. package/dist/{usePagination-Du6qS5aj.js → usePagination-Abs8KbO-.js} +1 -1
  91. package/dist/{user-Be8HNWuo.js → user-B94fPQnM.js} +1 -1
  92. package/dist/{vue-i18n-fg0FtbNR.js → vue-i18n-D5HHFPRa.js} +296 -296
  93. package/dist/{xlsx-CSQJ3YWk.js → xlsx-BsqWVudt.js} +1 -1
  94. package/dist/{zod-BB7zZ5ec.js → zod-Bp867gMI.js} +1 -1
  95. package/package.json +1 -1
  96. package/dist/Broadcast-DORnkgZc.js +0 -232
  97. package/dist/Credit-CIWSRGuJ.js +0 -225
  98. package/dist/Experience-qABtjxNP.js +0 -224
  99. package/dist/Game-D67q1zKd.js +0 -299
  100. package/dist/Mission-CRinLn7e.js +0 -303
  101. package/dist/Point-4JqzbNgP.js +0 -227
  102. package/dist/Promotion-DlWVF6hF.js +0 -358
  103. package/dist/objectid-B8LZDZOt.js +0 -145
  104. package/dist/template-Bdwy6QXF.js +0 -188
@@ -1,358 +0,0 @@
1
- import { defineComponent as K, ref as b, resolveComponent as u, openBlock as f, createBlock as F, unref as a, isRef as Y, withCtx as S, createElementVNode as l, createVNode as i, computed as Z, h as ee, onMounted as oe, createElementBlock as T, Fragment as V, renderList as te, resolveDynamicComponent as ne, toDisplayString as C } from "vue";
2
- import { _ as ae } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as se, components as re } from "@feedmepos/ui-library";
4
- import { c as M, p as $ } from "./plugins-DTrOHd7d.js";
5
- import { u as le } from "./loading-B0_BwPgo.js";
6
- import { u as ie } from "./business-C8P05bjQ.js";
7
- import { c as g, u as ce } from "./campaign-DcLhSQVQ.js";
8
- import { u as me } from "./vue-i18n-fg0FtbNR.js";
9
- import { g as ue, a as N } from "./campaign-CyYAvl3p.js";
10
- import { e as j } from "./effect-CF0s7QWQ.js";
11
- import { _ as de } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DysfUOSp.js";
12
- import { u as pe } from "./template-Bdwy6QXF.js";
13
- import { _ as q } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
14
- const fe = { class: "space-y-8" }, ye = /* @__PURE__ */ K({
15
- __name: "QueueSheet",
16
- emits: ["update:model-value"],
17
- setup(U, { expose: n, emit: O }) {
18
- const p = b(!1), h = b([]);
19
- async function k() {
20
- p.value = !0;
21
- const r = await g.getPromotionQueue();
22
- console.log(r, "jobs"), h.value = r;
23
- }
24
- const v = [
25
- {
26
- header: "Started At",
27
- accessorFn: (r) => r.createdAt,
28
- enableSorting: !0
29
- },
30
- {
31
- header: "Campaigns",
32
- accessorFn: (r) => r.campaigns
33
- // cell(props) {
34
- // const r = props.row.original;
35
- // return h('div', {
36
- // innerHTML: r.campaigns.map((c: any) => c.name).join(', '),
37
- // });
38
- // },
39
- }
40
- ];
41
- return n({
42
- showSheet: k
43
- }), (r, m) => {
44
- const _ = u("FmTable"), P = u("FmSideSheet");
45
- return f(), F(P, {
46
- "max-width": 550,
47
- header: "Promotion Sync Queue",
48
- modelValue: a(p),
49
- "onUpdate:modelValue": [
50
- m[1] || (m[1] = (s) => Y(p) ? p.value = s : null),
51
- m[2] || (m[2] = (s) => p.value = s)
52
- ]
53
- }, {
54
- default: S(() => [
55
- l("div", fe, [
56
- m[3] || (m[3] = l("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Promotion synchronizing to your restaurant(s) is queued here. Depending on the number of campaigns and restaurants, this process may take several minutes. No task displayed here means there are no pending promotions to sync. ", -1)),
57
- i(_, {
58
- modelValue: r.tableRef,
59
- "onUpdate:modelValue": m[0] || (m[0] = (s) => r.tableRef = s),
60
- "column-filter": r.jobFilters,
61
- "column-defs": v,
62
- "row-data": a(h),
63
- "hide-footer": a(h).length <= 10
64
- }, null, 8, ["modelValue", "column-filter", "row-data", "hide-footer"])
65
- ])
66
- ]),
67
- _: 1
68
- }, 8, ["modelValue"]);
69
- };
70
- }
71
- }), ge = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-center justify-between w-full" }, _e = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ve = { class: "flex w-full gap-4 items-center" }, we = { class: "space-y-4" }, xe = { class: "fm-typo-en-body-lg-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fe = { class: "flex flex-col gap-16 text-center" }, Se = { class: "fm-typo-en-title-sm-800" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qe = /* @__PURE__ */ K({
72
- __name: "Promotion",
73
- setup(U) {
74
- const { t: n } = me(), O = {
75
- label: n("connect.promotion.createCampaign"),
76
- value: "create",
77
- isPrimary: !0,
78
- prependIcon: "add"
79
- }, p = {
80
- label: "Force sync",
81
- value: "sync",
82
- isPrimary: !1,
83
- prependIcon: "refresh"
84
- }, h = {
85
- label: "Queue",
86
- value: "queue",
87
- isPrimary: !1,
88
- prependIcon: "work_history"
89
- }, k = pe("PROMOTION", se()), v = ie(), r = ce(), { global: m, minor: _ } = le, P = [
90
- {
91
- label: "Bill promotion",
92
- value: "BILL"
93
- },
94
- {
95
- label: "Item promotion",
96
- value: "ITEM"
97
- }
98
- ], s = b({
99
- searchKey: "",
100
- location: [],
101
- effectType: []
102
- });
103
- function D(e) {
104
- const o = s.value.location;
105
- return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((d) => {
106
- var c;
107
- return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(d);
108
- }) : e.targetLocation.includes(o);
109
- }
110
- function E(e) {
111
- var c, x;
112
- const o = s.value.effectType;
113
- if (!o || o.length === 0) return !0;
114
- const d = (x = (c = e.effect) == null ? void 0 : c.options) == null ? void 0 : x.target;
115
- return o.includes(d);
116
- }
117
- const y = Z(
118
- () => r.campaigns.promotion.filter(
119
- (e) => D(e) && E(e)
120
- )
121
- ), Q = [
122
- {
123
- header: n("connect.promotion.promotionTitle"),
124
- accessorFn: (e) => e.name
125
- },
126
- {
127
- header: n("connect.promotion.status"),
128
- accessorFn: (e) => ue(e),
129
- cell(e) {
130
- return N(e.row.original);
131
- }
132
- },
133
- {
134
- header: n("connect.promotion.type"),
135
- accessorFn: (e) => `${M.title(e.effect.options.target)} promotion`
136
- },
137
- {
138
- header: n("connect.promotion.summary"),
139
- accessorFn: (e) => j(e.effect)
140
- },
141
- {
142
- header: n("connect.promotion.actions"),
143
- cell(e) {
144
- return ee(re.FmButton, {
145
- variant: "tertiary",
146
- icon: "delete",
147
- iconColor: "neutral-gray-400",
148
- onClick: (o) => {
149
- o.stopPropagation(), R(e.row.original);
150
- }
151
- });
152
- }
153
- }
154
- ], L = b(), I = b();
155
- async function R(e) {
156
- await $.remove(
157
- n("connect.promotion.confirmRemove", { name: e.name })
158
- ) && await _(
159
- async () => {
160
- await g.delete(e._id), await r.read("PROMOTION");
161
- },
162
- {
163
- message: n("connect.promotion.removing", { name: e.name }),
164
- successMessage: n("connect.promotion.removedSuccessfully", {
165
- name: e.name
166
- })
167
- }
168
- );
169
- }
170
- async function w(e) {
171
- e ? await o() : k.open(async (d) => {
172
- await o(d);
173
- });
174
- async function o(d) {
175
- var c;
176
- (c = L.value) == null || c.showSheet(
177
- !0,
178
- "PROMOTION",
179
- e ? await g.readById(e._id) : void 0,
180
- d
181
- );
182
- }
183
- }
184
- async function H(e) {
185
- await _(
186
- async () => {
187
- e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await r.read("PROMOTION");
188
- },
189
- {
190
- message: n(
191
- e.campaign._id ? "connect.promotion.updating" : "connect.promotion.creating"
192
- ),
193
- successMessage: n(
194
- e.campaign._id ? "connect.promotion.updatedSuccessfully" : "connect.promotion.createdSuccessfully"
195
- )
196
- }
197
- );
198
- }
199
- async function z(e) {
200
- var o;
201
- switch (e) {
202
- case "create":
203
- w();
204
- break;
205
- case "sync":
206
- await $.confirm(
207
- "Are you sure you want to synchronize all promotions to POS?",
208
- "Force sync"
209
- ) && _(
210
- async () => {
211
- await g.syncAllPromotion();
212
- },
213
- {
214
- message: "Syncing promotions...",
215
- successMessage: "All promotions synced"
216
- }
217
- );
218
- break;
219
- case "queue":
220
- (o = I.value) == null || o.showSheet();
221
- break;
222
- }
223
- }
224
- return oe(async () => {
225
- await m(async () => {
226
- await v.readLocations(), await r.read("PROMOTION");
227
- });
228
- }), (e, o) => {
229
- const d = u("FmPageHead"), c = u("FmSearch"), x = u("FmTable"), G = u("FmChip"), B = u("FmButton"), J = u("FmListItem"), W = u("FmList"), X = u("FmCard");
230
- return f(), T(V, null, [
231
- i(d, {
232
- title: a(n)("connect.promotion.title"),
233
- actions: a(y).length > 0 ? [O, p, h] : [],
234
- "onClick:action": z
235
- }, null, 8, ["title", "actions"]),
236
- l("div", ge, [
237
- i(c, {
238
- modelValue: s.value.searchKey,
239
- "onUpdate:modelValue": o[0] || (o[0] = (t) => s.value.searchKey = t),
240
- class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
241
- placeholder: a(n)("connect.promotion.search"),
242
- collapsible: ""
243
- }, null, 8, ["modelValue", "placeholder"]),
244
- a(y) && a(y).length > 0 ? (f(), T(V, { key: 0 }, [
245
- l("div", he, [
246
- l("div", _e, [
247
- i(q, {
248
- label: `${a(n)("connect.common.location")}: `,
249
- "right-icon": "keyboard_arrow_down",
250
- modelValue: s.value.location,
251
- "onUpdate:modelValue": o[1] || (o[1] = (t) => s.value.location = t),
252
- icon: "storefront",
253
- "show-item-label": !0,
254
- items: a(v).locationOptions
255
- }, null, 8, ["label", "modelValue", "items"]),
256
- i(q, {
257
- label: "Type:",
258
- "right-icon": "keyboard_arrow_down",
259
- modelValue: s.value.effectType,
260
- "onUpdate:modelValue": o[2] || (o[2] = (t) => s.value.effectType = t),
261
- icon: "filter_list",
262
- "show-item-label": !0,
263
- items: P
264
- }, null, 8, ["modelValue"])
265
- ]),
266
- i(c, {
267
- modelValue: s.value.searchKey,
268
- "onUpdate:modelValue": o[3] || (o[3] = (t) => s.value.searchKey = t),
269
- class: "xs:hidden sm:hidden",
270
- placeholder: "search",
271
- collapsible: ""
272
- }, null, 8, ["modelValue"])
273
- ]),
274
- i(x, {
275
- class: "xs:hidden sm:hidden",
276
- "row-data": a(y),
277
- "column-defs": Q,
278
- "search-value": s.value.searchKey,
279
- "column-filter": [],
280
- onRowClick: o[4] || (o[4] = (t) => w(t.original)),
281
- "hide-footer": a(y).length < 10
282
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
283
- i(W, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
284
- default: S(() => [
285
- (f(!0), T(V, null, te(a(y).filter(
286
- (t) => t.name.toLowerCase().includes(s.value.searchKey.toLowerCase())
287
- ), (t) => (f(), F(J, {
288
- key: t._id.toString(),
289
- onClick: (A) => w(t),
290
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
291
- }, {
292
- default: S(() => [
293
- l("div", be, [
294
- l("div", ve, [
295
- (f(), F(ne(a(N)(t)))),
296
- i(G, {
297
- class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
298
- compact: !0,
299
- label: `${a(M).title(t.effect.options.target)} promotion`
300
- }, null, 8, ["label"])
301
- ]),
302
- l("div", we, [
303
- l("div", xe, C(t.name), 1),
304
- l("div", Ce, C(a(j)(t.effect)), 1)
305
- ])
306
- ]),
307
- i(B, {
308
- icon: "delete",
309
- "icon-color": "neutral-gray-400",
310
- variant: "tertiary",
311
- onClick: (A) => (A.stopPropagation(), R(t))
312
- }, null, 8, ["onClick"])
313
- ]),
314
- _: 2
315
- }, 1032, ["onClick"]))), 128))
316
- ]),
317
- _: 1
318
- })
319
- ], 64)) : (f(), F(X, {
320
- key: 1,
321
- variant: "outlined",
322
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
323
- }, {
324
- default: S(() => [
325
- o[6] || (o[6] = l("img", {
326
- src: ae,
327
- class: "aspect-square w-[150px]"
328
- }, null, -1)),
329
- l("div", Fe, [
330
- l("div", Se, C(a(n)("connect.promotion.createPromotionCampaign")), 1),
331
- l("div", ke, C(a(n)("connect.promotion.description")), 1)
332
- ]),
333
- i(B, {
334
- variant: "primary",
335
- label: a(n)("connect.promotion.createPromotionCampaign"),
336
- icon: "add",
337
- onClick: o[5] || (o[5] = (t) => w())
338
- }, null, 8, ["label"])
339
- ]),
340
- _: 1
341
- }))
342
- ]),
343
- i(de, {
344
- ref_key: "sheetRef",
345
- ref: L,
346
- "onSubmit:modelValue": H
347
- }, null, 512),
348
- i(ye, {
349
- ref_key: "queueSheetRef",
350
- ref: I
351
- }, null, 512)
352
- ], 64);
353
- };
354
- }
355
- });
356
- export {
357
- qe as default
358
- };
@@ -1,145 +0,0 @@
1
- import { g as l } from "./app-CkUBXnib.js";
2
- var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5bc86fcf-c8d4-40cf-b41a-c567bd640d1a", 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_5bc86fcf-c8d4-40cf-b41a-c567bd640d1a", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_dependencies_moment_timezone: "^0.6.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-9.4.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.27.2", npm_package_dependencies_fabric: "^6.4.2", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1873", ACTIONS_ORCHESTRATION_ID: "f2e29570-321f-4982-b6b9-2fadaa66d5df.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.6.7", npm_package_dependencies_dayjs: "^1.11.12", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies__tailwindcss_typography: "^0.5.16", npm_package_dependencies_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.26", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260413.86.1", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_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:13312", 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.9/x64", GITHUB_RUN_ID: "25689015123", 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: "69af11ec2ce563a6710127971a035c1639ff7cc7", 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.82-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_099629d9-5364-4473-92fd-f77e3657cd91", INVOCATION_ID: "4dc980099cca40e1a56544a6952ffb6e", 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: "65", GITHUB_TRIGGERING_ACTOR: "qaijunse", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.23", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000067789", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "mf-connect-0.1.82-prod", GITHUB_REPOSITORY: "feedmepos/marketing-services", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "2.14.36", npm_lifecycle_script: "vite build --mode fmmf:prod", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_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.82-prod", npm_package_dependencies__feedmepos_hrm_permission: "1.0.6", 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: "69af11ec2ce563a6710127971a035c1639ff7cc7", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies__ckeditor_ckeditor5_build_classic: "^44.3.0", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/tags/mf-connect-0.1.82-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_5bc86fcf-c8d4-40cf-b41a-c567bd640d1a", 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_5bc86fcf-c8d4-40cf-b41a-c567bd640d1a", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5bc86fcf-c8d4-40cf-b41a-c567bd640d1a", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", NODE_ENV: "production", FEEDME_NAMESPACE: "prod", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", IMPORT_FILES_STORAGE_BUCKET: "feedme-253402.appspot.com", AUTH_URL: "https://portal-v2.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedme.cc", CRM_APP_URL: "crm.feedme.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedme.cc", CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", PAYMENT_PORTAL_URL: "https://portal.feedme.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedme.cc/", VOUCHER_APP_URL: "https://voucher.feedme.cc/" } }, i = Math.floor(Math.random() * 16777215), c = n.index = parseInt(Math.random() * 16777215, 10), a = (typeof o > "u" || typeof o.pid != "number" ? Math.floor(Math.random() * 1e5) : o.pid) % 65535, d = (() => {
3
- try {
4
- return _Buffer;
5
- } catch {
6
- try {
7
- return Buffer;
8
- } catch {
9
- return null;
10
- }
11
- }
12
- })(), r = function(e) {
13
- return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
14
- }, u = [];
15
- for (var p = 0; p < 256; p++)
16
- u[p] = (p <= 15 ? "0" : "") + p.toString(16);
17
- var m = new RegExp("^[0-9a-fA-F]{24}$"), s = [];
18
- p = 0;
19
- for (; p < 10; ) s[48 + p] = p++;
20
- for (; p < 16; ) s[55 + p] = s[87 + p] = p++;
21
- function n(e) {
22
- if (!(this instanceof n)) return new n(e);
23
- if (e && (e instanceof n || e._bsontype === "ObjectID"))
24
- return e;
25
- if (this._bsontype = "ObjectID", e == null || typeof e == "number") {
26
- this.id = this.generate(e);
27
- return;
28
- }
29
- var _ = n.isValid(e);
30
- if (!_ && e != null)
31
- throw new Error(
32
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
33
- );
34
- if (_ && typeof e == "string" && e.length === 24)
35
- return n.createFromHexString(e);
36
- if (e != null && e.length === 12)
37
- this.id = e;
38
- else {
39
- if (e != null && typeof e.toHexString == "function")
40
- return e;
41
- throw new Error(
42
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
43
- );
44
- }
45
- }
46
- var g = n;
47
- n.default = n;
48
- n.createFromTime = function(e) {
49
- return e = parseInt(e, 10) % 4294967295, new n(E(8, e) + "0000000000000000");
50
- };
51
- n.createFromHexString = function(e) {
52
- if (typeof e > "u" || e != null && e.length !== 24)
53
- throw new Error(
54
- "Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
55
- );
56
- for (var _ = "", t = 0; t < 24; )
57
- _ += String.fromCharCode(s[e.charCodeAt(t++)] << 4 | s[e.charCodeAt(t++)]);
58
- return new n(_);
59
- };
60
- n.isValid = function(e) {
61
- return e == null ? !1 : typeof e == "number" ? !0 : typeof e == "string" ? e.length === 12 || e.length === 24 && m.test(e) : e instanceof n ? !0 : r(e) ? n.isValid(e.toString("hex")) : typeof e.toHexString == "function" && 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 _ = f();
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
- a >> 8 & 255,
123
- a & 255,
124
- _ >> 16 & 255,
125
- _ >> 8 & 255,
126
- _ & 255
127
- );
128
- }
129
- };
130
- function f() {
131
- return c = (c + 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 k = /* @__PURE__ */ l(g);
143
- export {
144
- k as O
145
- };