@konnectio/core 4.5.10 → 4.7.0

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 (113) hide show
  1. package/README.md +274 -274
  2. package/dist/{ActionField-DRRWeUYM.js → ActionField-DcJ46kr8.js} +4 -4
  3. package/dist/ActionField-DcJ46kr8.js.br +0 -0
  4. package/dist/ActionField-DcJ46kr8.js.gz +0 -0
  5. package/dist/{AvailabilitySkeleton-Dts-myrc.js → AvailabilitySkeleton-D_WemNm7.js} +2677 -2639
  6. package/dist/AvailabilitySkeleton-D_WemNm7.js.br +0 -0
  7. package/dist/AvailabilitySkeleton-D_WemNm7.js.gz +0 -0
  8. package/dist/{CheckoutWindow-BHVG2dxQ.js → CheckoutWindow-Cxf3LsRu.js} +11 -11
  9. package/dist/CheckoutWindow-Cxf3LsRu.js.br +0 -0
  10. package/dist/CheckoutWindow-Cxf3LsRu.js.gz +0 -0
  11. package/dist/{ErrorMessage-B9Z6kWVl.js → ErrorMessage-CWRDhW-r.js} +4 -4
  12. package/dist/ErrorMessage-CWRDhW-r.js.br +0 -0
  13. package/dist/ErrorMessage-CWRDhW-r.js.gz +0 -0
  14. package/dist/{EventAvailabilityForm-kkiWxezV.js → EventAvailabilityForm--wnnA59l.js} +5 -5
  15. package/dist/EventAvailabilityForm--wnnA59l.js.br +0 -0
  16. package/dist/EventAvailabilityForm--wnnA59l.js.gz +0 -0
  17. package/dist/{Field-uy59BBE5.js → Field-C0HFlyA-.js} +9 -9
  18. package/dist/Field-C0HFlyA-.js.br +0 -0
  19. package/dist/Field-C0HFlyA-.js.gz +0 -0
  20. package/dist/{HotelAvailabilityForm-BorqaKO9.js → HotelAvailabilityForm-CXhF2zZd.js} +5 -5
  21. package/dist/HotelAvailabilityForm-CXhF2zZd.js.br +0 -0
  22. package/dist/HotelAvailabilityForm-CXhF2zZd.js.gz +0 -0
  23. package/dist/{SelectField-Deugng4e.js → SelectField-BuepNFGh.js} +2834 -2512
  24. package/dist/SelectField-BuepNFGh.js.br +0 -0
  25. package/dist/SelectField-BuepNFGh.js.gz +0 -0
  26. package/dist/{TermsOfService-B0e2zZ1G.js → TermsOfService-CI6N0yyP.js} +5 -5
  27. package/dist/TermsOfService-CI6N0yyP.js.br +0 -0
  28. package/dist/TermsOfService-CI6N0yyP.js.gz +1 -0
  29. package/dist/{_-BLU96am3.js → _-CrX9aXtd.js} +4 -4
  30. package/dist/_-CrX9aXtd.js.br +0 -0
  31. package/dist/_-CrX9aXtd.js.gz +0 -0
  32. package/dist/availability.js +29 -42
  33. package/dist/availability.js.br +0 -0
  34. package/dist/availability.js.gz +0 -0
  35. package/dist/cancel-reservation.js +34 -47
  36. package/dist/cancel-reservation.js.br +0 -0
  37. package/dist/cancel-reservation.js.gz +0 -0
  38. package/dist/core.css +1 -1
  39. package/dist/core.css.br +0 -0
  40. package/dist/core.css.gz +0 -0
  41. package/dist/deep-link.js +11 -24
  42. package/dist/deep-link.js.br +0 -0
  43. package/dist/deep-link.js.gz +0 -0
  44. package/dist/{dist-CkHp-kIg.js → dist-Bmb1V_bQ.js} +290 -231
  45. package/dist/dist-Bmb1V_bQ.js.br +0 -0
  46. package/dist/dist-Bmb1V_bQ.js.gz +0 -0
  47. package/dist/event.js +144 -160
  48. package/dist/event.js.br +0 -0
  49. package/dist/event.js.gz +0 -0
  50. package/dist/gift-card-validation.js +37 -50
  51. package/dist/gift-card-validation.js.br +0 -0
  52. package/dist/gift-card-validation.js.gz +0 -0
  53. package/dist/gift-card.js +93 -105
  54. package/dist/gift-card.js.br +0 -0
  55. package/dist/gift-card.js.gz +0 -0
  56. package/dist/{giftCard-D4xa9d4r.js → giftCard-4K4sLoYc.js} +2 -2
  57. package/dist/giftCard-4K4sLoYc.js.br +0 -0
  58. package/dist/giftCard-4K4sLoYc.js.gz +0 -0
  59. package/dist/hotel.js +978 -945
  60. package/dist/hotel.js.br +0 -0
  61. package/dist/hotel.js.gz +0 -0
  62. package/dist/{masonry.plugin-DeTZh8E2.js → masonry.plugin-CB5zqVnY.js} +2864 -3816
  63. package/dist/masonry.plugin-CB5zqVnY.js.br +0 -0
  64. package/dist/masonry.plugin-CB5zqVnY.js.gz +0 -0
  65. package/dist/{mitt-Dp_pykgV.js → mitt-D_sfUt2u.js} +3462 -3343
  66. package/dist/mitt-D_sfUt2u.js.br +0 -0
  67. package/dist/mitt-D_sfUt2u.js.gz +0 -0
  68. package/dist/polyfill.js +27 -27
  69. package/dist/polyfill.js.br +0 -0
  70. package/dist/polyfill.js.gz +0 -0
  71. package/dist/rolldown-runtime-Dqa2HsxW.js.gz +2 -0
  72. package/dist/{style-CyChAn2F.js → style-DxH0isic.js} +4 -4
  73. package/dist/style-DxH0isic.js.br +0 -0
  74. package/dist/style-DxH0isic.js.gz +0 -0
  75. package/dist-wix/availability.js +1116 -0
  76. package/dist-wix/event.js +1117 -0
  77. package/dist-wix/gift-card-validation.js +1106 -0
  78. package/dist-wix/gift-card.js +1115 -0
  79. package/dist-wix/hotel.js +1117 -0
  80. package/package.json +121 -121
  81. package/dist/ActionField-DRRWeUYM.js.br +0 -0
  82. package/dist/ActionField-DRRWeUYM.js.gz +0 -0
  83. package/dist/AvailabilitySkeleton-Dts-myrc.js.br +0 -0
  84. package/dist/AvailabilitySkeleton-Dts-myrc.js.gz +0 -0
  85. package/dist/CheckoutWindow-BHVG2dxQ.js.br +0 -0
  86. package/dist/CheckoutWindow-BHVG2dxQ.js.gz +0 -0
  87. package/dist/ErrorMessage-B9Z6kWVl.js.br +0 -0
  88. package/dist/ErrorMessage-B9Z6kWVl.js.gz +0 -0
  89. package/dist/EventAvailabilityForm-kkiWxezV.js.br +0 -0
  90. package/dist/EventAvailabilityForm-kkiWxezV.js.gz +0 -0
  91. package/dist/Field-uy59BBE5.js.br +0 -0
  92. package/dist/Field-uy59BBE5.js.gz +0 -0
  93. package/dist/HotelAvailabilityForm-BorqaKO9.js.br +0 -0
  94. package/dist/HotelAvailabilityForm-BorqaKO9.js.gz +0 -0
  95. package/dist/SelectField-Deugng4e.js.br +0 -0
  96. package/dist/SelectField-Deugng4e.js.gz +0 -0
  97. package/dist/TermsOfService-B0e2zZ1G.js.br +0 -0
  98. package/dist/TermsOfService-B0e2zZ1G.js.gz +0 -1
  99. package/dist/_-BLU96am3.js.br +0 -0
  100. package/dist/_-BLU96am3.js.gz +0 -0
  101. package/dist/chunk-BPfpcrXh.js.gz +0 -0
  102. package/dist/dist-CkHp-kIg.js.br +0 -0
  103. package/dist/dist-CkHp-kIg.js.gz +0 -0
  104. package/dist/giftCard-D4xa9d4r.js.br +0 -0
  105. package/dist/giftCard-D4xa9d4r.js.gz +0 -9
  106. package/dist/masonry.plugin-DeTZh8E2.js.br +0 -0
  107. package/dist/masonry.plugin-DeTZh8E2.js.gz +0 -0
  108. package/dist/mitt-Dp_pykgV.js.br +0 -0
  109. package/dist/mitt-Dp_pykgV.js.gz +0 -0
  110. package/dist/style-CyChAn2F.js.br +0 -0
  111. package/dist/style-CyChAn2F.js.gz +0 -0
  112. /package/dist/{chunk-BPfpcrXh.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
  113. /package/dist/{chunk-BPfpcrXh.js.br → rolldown-runtime-Dqa2HsxW.js.br} +0 -0
@@ -1,5 +1,5 @@
1
- import { r as e, t } from "./chunk-BPfpcrXh.js";
2
- import { F as n, K as r, P as i, bt as a, lt as o } from "./mitt-Dp_pykgV.js";
1
+ import { r as e, t } from "./rolldown-runtime-Dqa2HsxW.js";
2
+ import { F as n, K as r, P as i, bt as a, lt as o } from "./mitt-D_sfUt2u.js";
3
3
  //#region node_modules/stackframe/stackframe.js
4
4
  var s = /* @__PURE__ */ t(((e, t) => {
5
5
  (function(n, r) {
@@ -176,7 +176,7 @@ var s = /* @__PURE__ */ t(((e, t) => {
176
176
  }
177
177
  };
178
178
  });
179
- })))(), 1), l = typeof process < "u" ? "2.4.0" : "?", u = "5pqzBljrmDvquWZYSrSUKldIUREtPyB3", d = "\"4.5.10\"";
179
+ })))(), 1), l = typeof process < "u" ? "2.6.0" : "?", u = "5pqzBljrmDvquWZYSrSUKldIUREtPyB3", d = "\"4.7.0\"";
180
180
  function f(e, t, n) {
181
181
  return n && !e && console.error(`Flare JavaScript client v${l}: ${t}`), !!e;
182
182
  }
@@ -225,7 +225,7 @@ function y(e) {
225
225
  }
226
226
  return n(e);
227
227
  }
228
- function ee(e) {
228
+ function b(e) {
229
229
  return e.map((e) => ({
230
230
  type: "php_glow",
231
231
  startTimeUnixNano: Math.round(e.microtime * 1e9),
@@ -237,42 +237,70 @@ function ee(e) {
237
237
  }
238
238
  }));
239
239
  }
240
- function te() {
240
+ function ee() {
241
241
  return Math.round(Date.now() / 1e3);
242
242
  }
243
- var b = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
244
- function x(e, t = !1, n = b) {
243
+ var x = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
244
+ function S(e, t = !1, n = x) {
245
245
  if (!e) return n;
246
246
  if (t) {
247
247
  let t = e.flags.replace(/[gy]/g, "");
248
248
  return new RegExp(e.source, t);
249
249
  }
250
- let r = ne(n.flags, e.flags);
250
+ let r = te(n.flags, e.flags);
251
251
  return RegExp(`(?:${n.source})|(?:${e.source})`, r);
252
252
  }
253
- function ne(e, t) {
253
+ function te(e, t) {
254
254
  let n = /* @__PURE__ */ new Set();
255
255
  for (let r of e + t) r === "g" || r === "y" || n.add(r);
256
256
  return [...n].join("");
257
257
  }
258
- function S(e, t = b) {
258
+ function C(e, t = x) {
259
259
  let n = e.indexOf("?");
260
260
  if (n === -1) return e;
261
261
  let r = e.indexOf("#", n), i = r === -1 ? e.length : r, a = e.slice(0, n + 1), o = e.slice(n + 1, i), s = e.slice(i);
262
262
  return `${a}${o.split("&").map((e) => {
263
263
  if (e === "") return e;
264
- let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i = re(r);
264
+ let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i = ne(r);
265
265
  return t.test(i) ? n === -1 ? r : `${r}=[redacted]` : e;
266
266
  }).join("&")}${s}`;
267
267
  }
268
- function re(e) {
268
+ function ne(e) {
269
269
  try {
270
270
  return decodeURIComponent(e);
271
271
  } catch {
272
272
  return e;
273
273
  }
274
274
  }
275
- var C = class {
275
+ function re(e) {
276
+ if (typeof e == "string") return e;
277
+ if (e && typeof e == "object") {
278
+ let t = e.message;
279
+ if (typeof t == "string" && t) return t;
280
+ try {
281
+ return JSON.stringify(e);
282
+ } catch {
283
+ return "Unhandled promise rejection (non-serializable reason)";
284
+ }
285
+ }
286
+ return String(e);
287
+ }
288
+ function ie(e) {
289
+ return !!e && typeof e == "object" && typeof e.stack == "string";
290
+ }
291
+ function ae(e, t) {
292
+ if (t instanceof Error) {
293
+ e.reportSilently(t);
294
+ return;
295
+ }
296
+ if (ie(t)) {
297
+ let n = Error(re(t));
298
+ n.stack = t.stack, e.reportSilently(n);
299
+ return;
300
+ }
301
+ Promise.resolve(e.reportUnhandledRejection(re(t))).catch(() => {});
302
+ }
303
+ var w = class {
276
304
  report(e, t, n, r, i = !1) {
277
305
  return fetch(t, {
278
306
  method: "POST",
@@ -307,7 +335,7 @@ var C = class {
307
335
  });
308
336
  }
309
337
  };
310
- function w(e, t = /* @__PURE__ */ new WeakSet()) {
338
+ function T(e, t = /* @__PURE__ */ new WeakSet()) {
311
339
  if (typeof e == "string") return { stringValue: e };
312
340
  if (typeof e == "boolean") return { boolValue: e };
313
341
  if (typeof e == "number") return Number.isFinite(e) ? Number.isInteger(e) ? { intValue: e } : { doubleValue: e } : null;
@@ -317,7 +345,7 @@ function w(e, t = /* @__PURE__ */ new WeakSet()) {
317
345
  t.add(e);
318
346
  let n = [];
319
347
  for (let r of e) {
320
- let e = w(r, t);
348
+ let e = T(r, t);
321
349
  e !== null && n.push(e);
322
350
  }
323
351
  return t.delete(e), { arrayValue: { values: n } };
@@ -327,7 +355,7 @@ function w(e, t = /* @__PURE__ */ new WeakSet()) {
327
355
  t.add(e);
328
356
  let n = [];
329
357
  for (let [r, i] of Object.entries(e)) {
330
- let e = w(i, t);
358
+ let e = T(i, t);
331
359
  e !== null && n.push({
332
360
  key: r,
333
361
  value: e
@@ -337,10 +365,10 @@ function w(e, t = /* @__PURE__ */ new WeakSet()) {
337
365
  }
338
366
  return null;
339
367
  }
340
- function T(e) {
368
+ function E(e) {
341
369
  let t = [];
342
370
  for (let [n, r] of Object.entries(e)) {
343
- let e = w(r);
371
+ let e = T(r);
344
372
  e !== null && t.push({
345
373
  key: n,
346
374
  value: e
@@ -348,10 +376,10 @@ function T(e) {
348
376
  }
349
377
  return t;
350
378
  }
351
- function ie(e, t, n, r) {
379
+ function oe(e, t, n, r) {
352
380
  return { resourceLogs: [{
353
381
  resource: {
354
- attributes: T(t),
382
+ attributes: E(t),
355
383
  droppedAttributesCount: 0
356
384
  },
357
385
  scopeLogs: [{
@@ -374,7 +402,7 @@ function ie(e, t, n, r) {
374
402
  }]
375
403
  }] };
376
404
  }
377
- var ae = {
405
+ var se = {
378
406
  debug: 5,
379
407
  info: 9,
380
408
  notice: 10,
@@ -384,16 +412,16 @@ var ae = {
384
412
  alert: 19,
385
413
  emergency: 21
386
414
  };
387
- function E(e) {
388
- return ae[e];
415
+ function D(e) {
416
+ return se[e];
389
417
  }
390
- function oe(e) {
418
+ function ce(e) {
391
419
  return e.toUpperCase();
392
420
  }
393
- function se(e, t) {
394
- return E(e) >= E(t);
421
+ function le(e, t) {
422
+ return D(e) >= D(t);
395
423
  }
396
- var ce = class {
424
+ var ue = class {
397
425
  buffer = [];
398
426
  resourceAttributes = {};
399
427
  timer;
@@ -430,16 +458,16 @@ var ce = class {
430
458
  }
431
459
  record(e, t, n, r) {
432
460
  let i = this.deps.getConfig();
433
- if (!i.enableLogs || i.minimumLogLevel && !se(e, i.minimumLogLevel)) return;
461
+ if (!i.enableLogs || i.minimumLogLevel && !le(e, i.minimumLogLevel)) return;
434
462
  let a = {
435
463
  "log.context": n,
436
464
  ...r
437
465
  }, { record: o, resource: s } = this.deps.buildLogAttributes(a), c = {
438
466
  timeUnixNano: String(Date.now()) + "000000",
439
- severityNumber: E(e),
440
- severityText: oe(e),
467
+ severityNumber: D(e),
468
+ severityText: ce(e),
441
469
  message: t,
442
- recordAttributes: T(o),
470
+ recordAttributes: E(o),
443
471
  resourceAttributes: s
444
472
  };
445
473
  if (this.estimateBytes(c) > i.logFlushMaxBytes) {
@@ -489,7 +517,7 @@ var ce = class {
489
517
  }
490
518
  buildEnvelope(e) {
491
519
  let t = this.deps.getSdkInfo();
492
- return ie(e, this.resourceForFlush(), t.name, t.version);
520
+ return oe(e, this.resourceForFlush(), t.name, t.version);
493
521
  }
494
522
  resourceForFlush() {
495
523
  let e = this.deps.getConfig(), t = this.deps.getSdkInfo(), n = this.deps.getFramework(), r = {
@@ -512,9 +540,9 @@ var ce = class {
512
540
  bufferBytes() {
513
541
  return this.buffer.reduce((e, t) => e + this.estimateBytes(t), 0);
514
542
  }
515
- }, le = class {
543
+ }, de = class {
516
544
  register() {}
517
- }, ue = [
545
+ }, fe = [
518
546
  "service.",
519
547
  "telemetry.",
520
548
  "host.",
@@ -522,16 +550,21 @@ var ce = class {
522
550
  "process.",
523
551
  "flare.framework.",
524
552
  "flare.language."
525
- ], de = new Set(["process.uptime"]);
526
- function fe(e) {
553
+ ], pe = /* @__PURE__ */ new Set(["process.uptime"]);
554
+ function me(e) {
527
555
  let t = {}, n = {};
528
- for (let [r, i] of Object.entries(e)) !de.has(r) && ue.some((e) => r.startsWith(e)) ? t[r] = i : n[r] = i;
556
+ for (let [r, i] of Object.entries(e)) !pe.has(r) && fe.some((e) => r.startsWith(e)) ? t[r] = i : n[r] = i;
529
557
  return {
530
558
  resource: t,
531
559
  record: n
532
560
  };
533
561
  }
534
- var pe = class {
562
+ var O = {
563
+ id: "user.id",
564
+ email: "user.email",
565
+ fullName: "user.full_name",
566
+ ipAddress: "client.address"
567
+ }, he = [...Object.values(O), "user.attributes"], ge = class {
535
568
  glows = [];
536
569
  pendingAttributes = {};
537
570
  entryPoint = null;
@@ -547,28 +580,28 @@ var pe = class {
547
580
  mergeAttributes(e) {
548
581
  Object.assign(this.pendingAttributes, e);
549
582
  }
550
- }, D = class {
551
- scope = new pe();
583
+ }, k = class {
584
+ scope = new ge();
552
585
  active() {
553
586
  return this.scope;
554
587
  }
555
- }, O = {};
556
- function me(e, t, n, r) {
588
+ }, A = {};
589
+ function _e(e, t, n, r) {
557
590
  return new Promise((i) => {
558
591
  if (!t || !n) return i({
559
592
  codeSnippet: { 0: `Could not read from file: missing file URL or line number. URL: ${t} lineNumber: ${n}` },
560
593
  trimmedColumnNumber: null
561
594
  });
562
- he(e, t).then((e) => i(e ? ge(e, n, r) : {
595
+ ve(e, t).then((e) => i(e ? ye(e, n, r) : {
563
596
  codeSnippet: { 0: `Could not read from file: Error while opening file at URL ${t}` },
564
597
  trimmedColumnNumber: null
565
598
  }));
566
599
  });
567
600
  }
568
- function he(e, t) {
569
- return O[t] === void 0 ? e.read(t).then((e) => (e !== null && (O[t] = e), e)) : Promise.resolve(O[t]);
601
+ function ve(e, t) {
602
+ return A[t] === void 0 ? e.read(t).then((e) => (e !== null && (A[t] = e), e)) : Promise.resolve(A[t]);
570
603
  }
571
- function ge(e, t, n, r = 1e3, i = 40) {
604
+ function ye(e, t, n, r = 1e3, i = 40) {
572
605
  let a = {}, o = null, s = e.split("\n"), c = t - 1, l = Math.floor(i / 2);
573
606
  for (let e = -l; e <= l; e++) {
574
607
  let i = c + e;
@@ -590,27 +623,34 @@ function ge(e, t, n, r = 1e3, i = 40) {
590
623
  trimmedColumnNumber: o
591
624
  };
592
625
  }
593
- function k(e, t, n) {
626
+ function j(e, t, n) {
594
627
  return new Promise((r) => {
595
- if (!_e(e)) return r([A("stacktrace missing")]);
628
+ if (!Se(e)) return r([M("stacktrace missing")]);
596
629
  let i;
597
630
  try {
598
631
  i = c.default.parse(e);
599
632
  } catch (n) {
600
- return f(!1, "Couldn't parse stacktrace of below error:", t), t && (console.error(n), console.error(e)), r([A("stacktrace could not be parsed")]);
633
+ return f(!1, "Couldn't parse stacktrace of below error:", t), t && (console.error(n), console.error(e)), r([M("stacktrace could not be parsed")]);
601
634
  }
602
- Promise.all(i.map((e) => me(n, e.fileName, e.lineNumber, e.columnNumber).then((t) => ({
603
- lineNumber: e.lineNumber || 1,
604
- columnNumber: e.columnNumber || 1,
605
- method: e.functionName || "Anonymous or unknown function",
606
- file: e.fileName || "Unknown file",
607
- codeSnippet: t.codeSnippet,
608
- class: "",
609
- isApplicationFrame: ve(e.fileName)
610
- })))).then(r);
635
+ Promise.all(i.map((e) => {
636
+ let t = xe(e.fileName);
637
+ return _e(n, t, e.lineNumber, e.columnNumber).then((n) => ({
638
+ lineNumber: e.lineNumber || 1,
639
+ columnNumber: e.columnNumber || 1,
640
+ method: e.functionName || "Anonymous or unknown function",
641
+ file: t || "Unknown file",
642
+ codeSnippet: n.codeSnippet,
643
+ class: "",
644
+ isApplicationFrame: Ce(t)
645
+ }));
646
+ })).then(r);
611
647
  });
612
648
  }
613
- function A(e) {
649
+ var be = "address at ";
650
+ function xe(e) {
651
+ return e?.startsWith(be) ? e.slice(11) : e;
652
+ }
653
+ function M(e) {
614
654
  return {
615
655
  lineNumber: 0,
616
656
  columnNumber: 0,
@@ -620,19 +660,19 @@ function A(e) {
620
660
  class: "unknown"
621
661
  };
622
662
  }
623
- function _e(e) {
663
+ function Se(e) {
624
664
  if (!e || typeof e != "object") return !1;
625
665
  let t = e, n = t.stack ?? t.stacktrace ?? t["opera#sourceloc"];
626
666
  return typeof n == "string" && n !== `${t.name}: ${t.message}`;
627
667
  }
628
- function ve(e) {
629
- return e ? !(/[/\\]node_modules[/\\]/.test(e) || /(^|[/\\])(vendor|vendors)[.~-][^/\\]*\.js/i.test(e)) : !0;
668
+ function Ce(e) {
669
+ return !e || !(/[/\\]node_modules[/\\]/.test(e) || /(^|[/\\])(vendor|vendors)[.~-][^/\\]*\.js/i.test(e));
630
670
  }
631
- var ye = class {
671
+ var we = class {
632
672
  read(e) {
633
673
  return Promise.resolve(null);
634
674
  }
635
- }, be = "@flareapp/core", j = class {
675
+ }, Te = "@flareapp/core", Ee = class {
636
676
  inflight = /* @__PURE__ */ new Set();
637
677
  _logger;
638
678
  _config = {
@@ -644,7 +684,7 @@ var ye = class {
644
684
  ingestUrl: "https://ingress.flareapp.io/v1/errors",
645
685
  reportBrowserExtensionErrors: !1,
646
686
  debug: !1,
647
- urlDenylist: b,
687
+ urlDenylist: x,
648
688
  replaceDefaultUrlDenylist: !1,
649
689
  sampleRate: 1,
650
690
  beforeEvaluate: (e) => e,
@@ -657,12 +697,12 @@ var ye = class {
657
697
  keepaliveMaxBytes: 6e4
658
698
  };
659
699
  sdkInfo = {
660
- name: be,
700
+ name: Te,
661
701
  version: l
662
702
  };
663
703
  framework = null;
664
- constructor(e = new C(), t = () => ({}), n = new ye(), r = new D(), i = new le()) {
665
- this.api = e, this.contextCollector = t, this.fileReader = n, this.scopeProvider = r, this._logger = new ce({
704
+ constructor(e = new w(), t = () => ({}), n = new we(), r = new k(), i = new de()) {
705
+ this.api = e, this.contextCollector = t, this.fileReader = n, this.scopeProvider = r, this._logger = new ue({
666
706
  api: this.api,
667
707
  getConfig: () => this._config,
668
708
  getSdkInfo: () => this.sdkInfo,
@@ -703,7 +743,7 @@ var ye = class {
703
743
  return this._config = {
704
744
  ...this._config,
705
745
  ...e
706
- }, e.sampleRate !== void 0 && (this._config.sampleRate = Math.max(0, Math.min(1, e.sampleRate))), this._config.urlDenylist = x(e.urlDenylist, e.replaceDefaultUrlDenylist ?? this._config.replaceDefaultUrlDenylist), t && this._config.enableLogs === !1 && this._logger.clear(), e.key !== void 0 && this._logger.flush(), this;
746
+ }, e.sampleRate !== void 0 && (this._config.sampleRate = Math.max(0, Math.min(1, e.sampleRate))), this._config.urlDenylist = S(e.urlDenylist, e.replaceDefaultUrlDenylist ?? this._config.replaceDefaultUrlDenylist), t && this._config.enableLogs === !1 && this._logger.clear(), e.key !== void 0 && this._logger.flush(), this;
707
747
  }
708
748
  test() {
709
749
  return this.track(this.testInternal());
@@ -713,7 +753,7 @@ var ye = class {
713
753
  if (e) return this.sendReport(e);
714
754
  }
715
755
  glow(e, t = "info", n = []) {
716
- let r = te();
756
+ let r = ee();
717
757
  return this.scopeProvider.active().addGlow({
718
758
  name: e,
719
759
  messageLevel: t,
@@ -735,6 +775,15 @@ var ye = class {
735
775
  addContextGroup(e, t) {
736
776
  return this.scopeProvider.active().setAttribute(`context.${e}`, t), this;
737
777
  }
778
+ setUser(e) {
779
+ let t = this.scopeProvider.active();
780
+ for (let e of he) delete t.pendingAttributes[e];
781
+ if (!e) return this;
782
+ let { id: n, email: r, fullName: i, ipAddress: a, ...o } = e;
783
+ n != null && t.setAttribute(O.id, String(n)), r !== void 0 && t.setAttribute(O.email, r), i !== void 0 && t.setAttribute(O.fullName, i), a !== void 0 && t.setAttribute(O.ipAddress, a);
784
+ let s = Object.fromEntries(Object.entries(o).filter(([, e]) => e !== void 0));
785
+ return Object.keys(s).length > 0 && t.setAttribute("user.attributes", s), this;
786
+ }
738
787
  setEntryPoint(e) {
739
788
  return this.scopeProvider.active().entryPoint = e, this;
740
789
  }
@@ -779,7 +828,7 @@ var ye = class {
779
828
  }
780
829
  async reportMessageInternal(e, t, n = {}) {
781
830
  if (this._config.sampleRate < 1 && Math.random() >= this._config.sampleRate) return;
782
- let r = Date.now() * 1e6, i = await k(/* @__PURE__ */ Error(), this._config.debug, this.fileReader);
831
+ let r = Date.now() * 1e6, i = await j(/* @__PURE__ */ Error(), this._config.debug, this.fileReader);
783
832
  i.shift();
784
833
  let a = this.buildReport({
785
834
  exceptionClass: "Log",
@@ -795,7 +844,7 @@ var ye = class {
795
844
  }
796
845
  async createReportFromError(e, t = {}, n = Date.now() * 1e6) {
797
846
  if (!f(e, "No error provided.", this._config.debug)) return !1;
798
- let r = await k(e, this._config.debug, this.fileReader);
847
+ let r = await j(e, this._config.debug, this.fileReader);
799
848
  f(r.length, "Couldn't generate stacktrace of this error: " + e, this._config.debug);
800
849
  let i = e.constructor && e.constructor.name ? e.constructor.name : "undefined";
801
850
  return this.buildReport({
@@ -837,7 +886,7 @@ var ye = class {
837
886
  }), s;
838
887
  }
839
888
  buildLogAttributes(e) {
840
- let { resource: t, record: n } = fe(this.contextCollector(this._config));
889
+ let { resource: t, record: n } = me(this.contextCollector(this._config));
841
890
  return {
842
891
  resource: t,
843
892
  record: this.assembleAttributes(n, e, !1)
@@ -849,7 +898,7 @@ var ye = class {
849
898
  message: e.message,
850
899
  seenAtUnixNano: e.seenAtUnixNano,
851
900
  stacktrace: e.stacktrace,
852
- events: ee(t.glows),
901
+ events: b(t.glows),
853
902
  attributes: n
854
903
  };
855
904
  return e.isLog && (r.isLog = !0), e.level !== void 0 && (r.level = e.level), this._config.sourcemapVersionId && (r.sourcemapVersionId = this._config.sourcemapVersionId), e.code !== void 0 && (r.code = e.code), r;
@@ -859,14 +908,14 @@ var ye = class {
859
908
  let t = await this._config.beforeSubmit(e);
860
909
  if (t) return this.api.report(t, this._config.ingestUrl, this._config.key, this._config.reportBrowserExtensionErrors, this._config.debug);
861
910
  }
862
- }, M = class {
911
+ }, De = class {
863
912
  register(e) {
864
913
  typeof document > "u" || !document || document.addEventListener("visibilitychange", () => {
865
914
  document.visibilityState === "hidden" && e({ keepalive: !0 });
866
915
  });
867
916
  }
868
917
  };
869
- function N() {
918
+ function Oe() {
870
919
  if (!window.document.cookie) return {};
871
920
  let e = {};
872
921
  return window.document.cookie.split("; ").forEach((t) => {
@@ -879,87 +928,81 @@ function N() {
879
928
  e[r] = t.slice(n + 1);
880
929
  }), { "http.request.cookies": e };
881
930
  }
882
- function xe(e) {
931
+ function ke(e) {
883
932
  return {
884
- "url.full": S(window.location.href, e),
933
+ "url.full": C(window.location.href, e),
885
934
  "user_agent.original": window.navigator.userAgent,
886
- "http.request.referrer": S(window.document.referrer, e),
935
+ "http.request.referrer": C(window.document.referrer, e),
887
936
  "document.ready_state": window.document.readyState
888
937
  };
889
938
  }
890
- function Se(e) {
891
- return window.location.search ? { "url.query": S(window.location.search, e).replace(/^\?/, "") } : {};
939
+ function Ae(e) {
940
+ return window.location.search ? { "url.query": C(window.location.search, e).replace(/^\?/, "") } : {};
892
941
  }
893
- var Ce = (e) => {
942
+ var je = (e) => {
894
943
  if (typeof window > "u") return { "flare.entry_point.type": "server" };
895
944
  let t = { "flare.entry_point.type": "web" };
896
- return window?.location?.href && (t["flare.entry_point.value"] = S(window.location.href, e.urlDenylist), window.location.pathname && (t["flare.entry_point.handler.identifier"] = window.location.pathname, t["flare.entry_point.handler.type"] = "browser")), window?.location?.hostname && (t["host.name"] = window.location.hostname), Object.assign(t, xe(e.urlDenylist)), Object.assign(t, Se(e.urlDenylist)), Object.assign(t, N()), t;
897
- }, P = class {
945
+ return window?.location?.href && (t["flare.entry_point.value"] = C(window.location.href, e.urlDenylist), window.location.pathname && (t["flare.entry_point.handler.identifier"] = window.location.pathname, t["flare.entry_point.handler.type"] = "browser")), window?.location?.hostname && (t["host.name"] = window.location.hostname), Object.assign(t, ke(e.urlDenylist)), Object.assign(t, Ae(e.urlDenylist)), Object.assign(t, Oe()), t;
946
+ }, Me = class {
898
947
  read(e) {
899
948
  return /^https?:\/\//i.test(e) ? fetch(e).then((e) => e.status === 200 ? e.text() : null).catch(() => null) : Promise.resolve(null);
900
949
  }
901
- }, we = typeof process < "u" ? "2.4.0" : "?";
902
- function Te() {
950
+ }, Ne = typeof process < "u" ? "2.6.0" : "?";
951
+ function Pe() {
903
952
  typeof window > "u" || (window.addEventListener("error", (e) => {
904
953
  let t = window.flare;
905
954
  t && e.error instanceof Error && t.reportSilently(e.error);
906
955
  }), window.addEventListener("unhandledrejection", (e) => {
907
956
  let t = window.flare;
908
- if (!t) return;
909
- let n = e.reason;
910
- if (n instanceof Error) {
911
- t.reportSilently(n);
912
- return;
913
- }
914
- if (Ee(n)) {
915
- let e = Error(F(n));
916
- e.stack = n.stack, t.reportSilently(e);
917
- return;
918
- }
919
- Promise.resolve(t.reportUnhandledRejection(F(n))).catch(() => {});
957
+ t && ae(t, e.reason);
920
958
  }));
921
959
  }
922
- function F(e) {
923
- if (typeof e == "string") return e;
924
- if (e && typeof e == "object") {
925
- let t = e.message;
926
- if (typeof t == "string") return t;
927
- try {
928
- return JSON.stringify(e);
929
- } catch {
930
- return "Unhandled promise rejection (non-serializable reason)";
931
- }
932
- }
933
- return String(e);
934
- }
935
- function Ee(e) {
936
- return typeof e == "object" && !!e && "stack" in e && typeof e.stack == "string";
937
- }
938
960
  //#endregion
939
961
  //#region node_modules/@flareapp/js/dist/index.mjs
940
- var I = new class extends j {
941
- constructor(e = new C(), t = Ce, n = new P(), r = new D()) {
942
- super(e, t, n, r, new M()), this.setSdkInfo({
962
+ var N = new class extends Ee {
963
+ constructor(e = new w(), t = je, n = new Me(), r = new k()) {
964
+ super(e, t, n, r, new De()), this.setSdkInfo({
943
965
  name: "@flareapp/js",
944
- version: we
966
+ version: Ne
945
967
  });
946
968
  }
947
969
  }();
948
- typeof window < "u" && window && (window.flare = I, Te());
970
+ typeof window < "u" && window && (window.flare = N, Pe());
949
971
  //#endregion
950
972
  //#region src/plugins/flare.ts
951
- var L = /* @__PURE__ */ "fancybox,jQuery,Modernizr,cssua,ScrollTrigger,calcSelectArrowDimensions,this.elements.$menu.smartmenus,woocommerce,elementor,avadaAddQuantityBoxes,fusion,FLBuilderAccordion,_initLayerSlider,Divi,gsap,Swiper,mailchimp,_AutofillCallbackHandler,$(...),imagesLoaded,accessing a cross-origin frame,scrollspy,No layout mode: packery,Vimeo,Network Error,Request aborted,timeout exceeded,Loading chunk,TrackerStorageType,Failed to load because no supported source was found.,The element has no supported sources.,grecaptcha,lightbox,priceCalcElement,AwesomeMenu,breakdance,Maximum call stack size exceeded.,Cookies is not defined,getUniqId,Cannot read properties of null (reading 'classList'),n.getModal,e.target.closest is not a function,Cannot read properties of undefined (reading 'Item'),refreshFsLightbox,fbq,Cannot assign to read only property 'push' of object '[object Array]',naturalWidth,Request failed with status code,Can't find variable: _,astraNavMenuTogglePro,The operation was aborted.,Failed to fetch dynamically imported module:,Importing a module script failed.,The request is not allowed by the user agent,this.Vi.close,The operation is insecure.,gformValidateFileSize,BreakdanceEntrance,Cannot read properties of undefined (reading '__'),The play() request was interrupted because video-only,Animation is interrupted by user input.,Animation is already playing.,Position \"NaN\" is not reachable.,Cannot redefine property: onbeforeunload,e.remove is not a function,Can't find variable: Cookies,Load failed,wp is not defined,Backbone,Invalid attempt to destructure non-iterable instance,Can't find variable: EmptyRanges,Cannot read properties of undefined (reading 'setLocaleData'),Function snaptr not implemented.,window.sbi_init is not a function".split(",");
952
- I.light("5pqzBljrmDvquWZYSrSUKldIUREtPyB3"), I.addContext("version", "4.5.10"), I.beforeEvaluate = (e) => {
953
- for (let t = 0; t < L.length; t++) if (e.message.includes(L[t])) return !1;
973
+ var P = /* @__PURE__ */ "fancybox,jQuery,Modernizr,cssua,ScrollTrigger,calcSelectArrowDimensions,this.elements.$menu.smartmenus,woocommerce,elementor,avadaAddQuantityBoxes,fusion,FLBuilderAccordion,_initLayerSlider,Divi,gsap,Swiper,mailchimp,_AutofillCallbackHandler,$(...),imagesLoaded,accessing a cross-origin frame,scrollspy,No layout mode: packery,Vimeo,Network Error,Request aborted,timeout exceeded,Loading chunk,TrackerStorageType,Failed to load because no supported source was found.,The element has no supported sources.,grecaptcha,lightbox,priceCalcElement,AwesomeMenu,breakdance,Maximum call stack size exceeded.,Cookies is not defined,getUniqId,Cannot read properties of null (reading 'classList'),n.getModal,e.target.closest is not a function,Cannot read properties of undefined (reading 'Item'),refreshFsLightbox,fbq,Cannot assign to read only property 'push' of object '[object Array]',naturalWidth,Request failed with status code,Can't find variable: _,astraNavMenuTogglePro,The operation was aborted.,Failed to fetch dynamically imported module:,Importing a module script failed.,The request is not allowed by the user agent,this.Vi.close,The operation is insecure.,gformValidateFileSize,BreakdanceEntrance,Cannot read properties of undefined (reading '__'),The play() request was interrupted because video-only,Animation is interrupted by user input.,Animation is already playing.,Position \"NaN\" is not reachable.,Cannot redefine property: onbeforeunload,e.remove is not a function,Can't find variable: Cookies,Load failed,wp is not defined,Backbone,Invalid attempt to destructure non-iterable instance,Can't find variable: EmptyRanges,Cannot read properties of undefined (reading 'setLocaleData'),Function snaptr not implemented.,window.sbi_init is not a function".split(",");
974
+ /(meta-external|facebookexternalhit|googlebot|bingbot|slurp|duckduckbot|baiduspider|yandexbot|twitterbot|linkedinbot|semrushbot|ahrefsbot|applebot|bytespider|crawler|spider)/i.test(navigator.userAgent) || (N.light("5pqzBljrmDvquWZYSrSUKldIUREtPyB3"), N.addContext("version", "4.7.0"), N.configure({ beforeEvaluate: (e) => {
975
+ for (let t = 0; t < P.length; t++) if (e.message.includes(P[t])) return !1;
954
976
  return e;
955
- };
977
+ } }));
956
978
  //#endregion
957
- //#region node_modules/@flareapp/vue/dist/index.mjs
958
- var De = typeof process < "u" && process.env?.PACKAGE_VERSION !== void 0 ? process.env.PACKAGE_VERSION : "?", R = 50, z = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
959
- function B(e, t = !1) {
960
- return x(e, t, z);
979
+ //#region node_modules/@flareapp/vue/dist/FlareErrorBoundary-9LmNTGFB.mjs
980
+ var F = null;
981
+ function Fe() {
982
+ try {
983
+ return !1;
984
+ } catch {
985
+ return !1;
986
+ }
987
+ }
988
+ function Ie(e) {
989
+ if (typeof window < "u" && window.__flare) {
990
+ let e = "[flare] @flareapp/vue (web root) was imported in a renderer where the Electron bridge is present, pulling the keyed @flareapp/js singleton into the renderer. Import @flareapp/vue/inject and pass the @flareapp/electron/renderer instance instead.";
991
+ if (Fe()) throw Error(e);
992
+ console.warn(e);
993
+ }
994
+ F = e;
961
995
  }
962
- var V = 1e3, H = 100, U = 100, Oe = {
996
+ function I(e) {
997
+ if (e) return e;
998
+ if (F) return F();
999
+ throw Error("[flare] No Flare instance available. Pass `flare` (e.g. from @flareapp/electron/renderer), or import @flareapp/vue (the package root) to use the @flareapp/js default singleton.");
1000
+ }
1001
+ var Le = typeof process < "u" && process.env?.PACKAGE_VERSION !== void 0 ? process.env.PACKAGE_VERSION : "?", L = 50, R = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
1002
+ function z(e, t = !1) {
1003
+ return S(e, t, R);
1004
+ }
1005
+ var B = 1e3, V = 100, H = 100, Re = {
963
1006
  "setup function": "setup",
964
1007
  "render function": "render",
965
1008
  "component update": "render",
@@ -1023,82 +1066,82 @@ var V = 1e3, H = 100, U = 100, Oe = {
1023
1066
  rtc: "lifecycle",
1024
1067
  rtg: "lifecycle"
1025
1068
  };
1026
- function W(e) {
1069
+ function U(e) {
1027
1070
  if (!e) return "AnonymousComponent";
1028
1071
  let t = e.$options;
1029
1072
  return t.__name || t.name || "AnonymousComponent";
1030
1073
  }
1031
- function G(e) {
1074
+ function W(e) {
1032
1075
  let t = [], n = e;
1033
- for (; n && t.length < R;) t.push(W(n)), n = n.$parent;
1076
+ for (; n && t.length < L;) t.push(U(n)), n = n.$parent;
1034
1077
  return t;
1035
1078
  }
1036
- function K(e, t, n = z) {
1037
- return q(e, 0, t, /* @__PURE__ */ new WeakSet(), n);
1079
+ function G(e, t, n = R) {
1080
+ return K(e, 0, t, /* @__PURE__ */ new WeakSet(), n);
1038
1081
  }
1039
- function q(e, t, n, r, i) {
1082
+ function K(e, t, n, r, i) {
1040
1083
  if (e === null) return null;
1041
1084
  let a = typeof e;
1042
1085
  if (a === "function") return "[Function]";
1043
1086
  if (a === "symbol") return "[Symbol]";
1044
1087
  if (a === "bigint") return e.toString();
1045
- if (a === "string") return ke(e);
1088
+ if (a === "string") return ze(e);
1046
1089
  if (a !== "object") return e;
1047
1090
  if (r.has(e)) return "[Circular]";
1048
1091
  if (Array.isArray(e)) {
1049
1092
  if (t > n) return "[Array]";
1050
1093
  r.add(e);
1051
- let a = (e.length > H ? e.slice(0, H) : e).map((e) => q(e, t + 1, n, r, i));
1052
- return e.length > H && a.push(`[… ${e.length - H} more items]`), r.delete(e), a;
1094
+ let a = (e.length > V ? e.slice(0, V) : e).map((e) => K(e, t + 1, n, r, i));
1095
+ return e.length > V && a.push(`[… ${e.length - V} more items]`), r.delete(e), a;
1053
1096
  }
1054
- if (!Ae(e) || t > n) return "[Object]";
1097
+ if (!Be(e) || t > n) return "[Object]";
1055
1098
  r.add(e);
1056
- let o = {}, s = Object.keys(e), c = s.length > U ? s.slice(0, U) : s;
1099
+ let o = {}, s = Object.keys(e), c = s.length > H ? s.slice(0, H) : s;
1057
1100
  for (let a of c) {
1058
1101
  if (i.test(a)) {
1059
1102
  o[a] = "[redacted]";
1060
1103
  continue;
1061
1104
  }
1062
- o[a] = q(e[a], t + 1, n, r, i);
1105
+ o[a] = K(e[a], t + 1, n, r, i);
1063
1106
  }
1064
- return s.length > U && (o["…"] = `[${s.length - U} more keys]`), r.delete(e), o;
1107
+ return s.length > H && (o["…"] = `[${s.length - H} more keys]`), r.delete(e), o;
1065
1108
  }
1066
- function ke(e) {
1067
- return e.length <= V ? e : `${e.slice(0, V)}…[truncated ${e.length - V} chars]`;
1109
+ function ze(e) {
1110
+ return e.length <= B ? e : `${e.slice(0, B)}…[truncated ${e.length - B} chars]`;
1068
1111
  }
1069
- function Ae(e) {
1112
+ function Be(e) {
1070
1113
  if (typeof e != "object" || !e) return !1;
1071
1114
  let t = Object.getPrototypeOf(e);
1072
1115
  return t === null || t === Object.prototype;
1073
1116
  }
1074
- function J(e, t) {
1117
+ function q(e, t) {
1075
1118
  let n = [], r = e;
1076
- for (; r && n.length < R;) {
1119
+ for (; r && n.length < L;) {
1077
1120
  let e = r.$options, i = {
1078
- component: W(r),
1121
+ component: U(r),
1079
1122
  file: e.__file ?? null
1080
1123
  };
1081
- t.attachProps && r.$props && (i.props = K(r.$props, t.propsMaxDepth, t.propsDenylist)), n.push(i), r = r.$parent;
1124
+ t.attachProps && r.$props && (i.props = G(r.$props, t.propsMaxDepth, t.propsDenylist)), n.push(i), r = r.$parent;
1082
1125
  }
1083
1126
  return n;
1084
1127
  }
1085
- function Y(e) {
1086
- return Oe[e] ?? "unknown";
1128
+ function J(e) {
1129
+ return Re[e] ?? "unknown";
1087
1130
  }
1088
- var X = 2;
1089
- function Z(e, t = {}) {
1131
+ var Y = 2;
1132
+ function X(e, t = {}) {
1090
1133
  if (!e || typeof e != "object" || !("currentRoute" in e)) return null;
1091
1134
  let n = e.currentRoute;
1092
1135
  if (!n || typeof n != "object" || !("value" in n)) return null;
1093
1136
  let r = n.value;
1094
1137
  if (!r || typeof r != "object") return null;
1095
- let i = r, a = i.name, o = t.denylist ?? z, s = i.params && typeof i.params == "object" ? i.params : {}, c = i.query && typeof i.query == "object" ? i.query : {};
1138
+ let i = r, a = i.name, o = t.denylist ?? R, s = i.params && typeof i.params == "object" ? i.params : {}, c = i.query && typeof i.query == "object" ? i.query : {};
1096
1139
  return {
1097
1140
  name: typeof a == "string" ? a : typeof a == "symbol" ? a.toString() : null,
1098
1141
  path: typeof i.path == "string" ? i.path : "",
1099
- fullPath: typeof i.fullPath == "string" ? S(i.fullPath, o) : "",
1100
- params: K(s, X, o),
1101
- query: K(c, X, o),
1142
+ fullPath: typeof i.fullPath == "string" ? C(i.fullPath, o) : "",
1143
+ params: G(s, Y, o),
1144
+ query: G(c, Y, o),
1102
1145
  hash: typeof i.hash == "string" ? i.hash : "",
1103
1146
  matched: Array.isArray(i.matched) ? i.matched.map((e) => {
1104
1147
  if (!e || typeof e != "object") return "unknown";
@@ -1107,7 +1150,20 @@ function Z(e, t = {}) {
1107
1150
  }) : []
1108
1151
  };
1109
1152
  }
1110
- function Q(e) {
1153
+ var Z = /* @__PURE__ */ new WeakSet(), Q = /* @__PURE__ */ new WeakSet();
1154
+ function Ve(e) {
1155
+ Z.has(e) || (Z.add(e), e.setSdkInfo({
1156
+ name: "@flareapp/vue",
1157
+ version: Le
1158
+ }));
1159
+ }
1160
+ function He(e, t) {
1161
+ Q.has(e) || (Q.add(e), e.setFramework({
1162
+ name: "Vue",
1163
+ version: t
1164
+ }));
1165
+ }
1166
+ function Ue(e) {
1111
1167
  let t = {
1112
1168
  info: e.vue.info,
1113
1169
  errorOrigin: e.vue.errorOrigin,
@@ -1117,7 +1173,7 @@ function Q(e) {
1117
1173
  };
1118
1174
  return e.vue.componentProps && (t.componentProps = e.vue.componentProps), e.vue.route && (t.route = e.vue.route), { "context.custom": { vue: t } };
1119
1175
  }
1120
- function je(e) {
1176
+ function We(e) {
1121
1177
  let t = {
1122
1178
  type: e.vue.type,
1123
1179
  info: e.vue.info,
@@ -1126,68 +1182,69 @@ function je(e) {
1126
1182
  };
1127
1183
  return e.vue.route && (t.route = e.vue.route), { "context.custom": { vue: t } };
1128
1184
  }
1129
- var $ = /* @__PURE__ */ new WeakSet(), Me = (e, t) => {
1185
+ var $ = /* @__PURE__ */ new WeakSet(), Ge = (e, t) => {
1130
1186
  if ($.has(e)) return;
1131
- $.add(e), I.setSdkInfo({
1132
- name: "@flareapp/vue",
1133
- version: De
1134
- }), I.setFramework({
1135
- name: "Vue",
1136
- version: e.version
1137
- });
1138
- let n = t?.attachProps ?? !1, r = t?.propsMaxDepth ?? 2, i = B(t?.propsDenylist, t?.replaceDefaultDenylist), a = e.config.errorHandler;
1139
- if (e.config.errorHandler = (o, s, c) => {
1140
- let l = m(o);
1187
+ let n = I(t?.flare);
1188
+ $.add(e), t?.flare || Ve(n), He(n, e.version);
1189
+ let r = t?.attachProps ?? !1, i = t?.propsMaxDepth ?? 2, a = z(t?.propsDenylist, t?.replaceDefaultDenylist), o = e.config.errorHandler;
1190
+ if (e.config.errorHandler = (s, c, l) => {
1191
+ let u = m(s);
1141
1192
  t?.beforeEvaluate?.({
1142
- error: l,
1143
- instance: s,
1144
- info: c
1193
+ error: u,
1194
+ instance: c,
1195
+ info: l
1145
1196
  });
1146
- let u = Y(c), d = W(s), f = n && s?.$props ? K(s.$props, r, i) : void 0, p = G(s), h = J(s, {
1147
- attachProps: n,
1148
- propsMaxDepth: r,
1149
- propsDenylist: i
1150
- }), g = Z(e.config.globalProperties.$router, { denylist: i }), _ = { vue: {
1151
- info: c,
1152
- errorOrigin: u,
1153
- componentName: d,
1154
- ...f && { componentProps: f },
1155
- componentHierarchy: p,
1156
- componentHierarchyFrames: h,
1157
- ...g && { route: g }
1158
- } }, v = t?.beforeSubmit?.({
1159
- error: l,
1160
- instance: s,
1161
- info: c,
1162
- context: _
1163
- }) ?? _;
1164
- if (I.reportSilently(l, Q(v)), t?.afterSubmit?.({
1165
- error: l,
1166
- instance: s,
1167
- info: c,
1197
+ let d = J(l), f = U(c), p = r && c?.$props ? G(c.$props, i, a) : void 0, h = W(c), g = q(c, {
1198
+ attachProps: r,
1199
+ propsMaxDepth: i,
1200
+ propsDenylist: a
1201
+ }), _ = X(e.config.globalProperties.$router, { denylist: a }), v = { vue: {
1202
+ info: l,
1203
+ errorOrigin: d,
1204
+ componentName: f,
1205
+ ...p && { componentProps: p },
1206
+ componentHierarchy: h,
1207
+ componentHierarchyFrames: g,
1208
+ ..._ && { route: _ }
1209
+ } }, y = t?.beforeSubmit?.({
1210
+ error: u,
1211
+ instance: c,
1212
+ info: l,
1168
1213
  context: v
1169
- }), typeof a == "function") {
1170
- a(o, s, c);
1214
+ }) ?? v;
1215
+ if (n.reportSilently(u, Ue(y)), t?.afterSubmit?.({
1216
+ error: u,
1217
+ instance: c,
1218
+ info: l,
1219
+ context: y
1220
+ }), typeof o == "function") {
1221
+ o(s, c, l);
1171
1222
  return;
1172
1223
  }
1173
- console.error(o);
1224
+ console.error(s);
1174
1225
  }, t?.captureWarnings) {
1175
1226
  let t = e.config.warnHandler;
1176
- e.config.warnHandler = (n, r, a) => {
1177
- let o = W(r), s = Z(e.config.globalProperties.$router, { denylist: i }), c = { vue: {
1227
+ e.config.warnHandler = (r, i, o) => {
1228
+ let s = U(i), c = X(e.config.globalProperties.$router, { denylist: a }), l = { vue: {
1178
1229
  type: "warning",
1179
- info: n,
1180
- componentName: o,
1181
- componentTrace: a,
1182
- ...s && { route: s }
1230
+ info: r,
1231
+ componentName: s,
1232
+ componentTrace: o,
1233
+ ...c && { route: c }
1183
1234
  } };
1184
- Promise.resolve(I.reportMessage(n, "warning", je(c))).catch(() => {}), typeof t == "function" && t(n, r, a);
1235
+ Promise.resolve(n.reportMessage(r, "warning", We(l))).catch(() => {}), typeof t == "function" && t(r, i, o);
1185
1236
  };
1186
1237
  }
1187
1238
  };
1239
+ //#endregion
1240
+ //#region node_modules/@flareapp/vue/dist/index.mjs
1188
1241
  i({
1189
1242
  name: "FlareErrorBoundary",
1190
1243
  props: {
1244
+ flare: {
1245
+ type: Object,
1246
+ default: void 0
1247
+ },
1191
1248
  beforeEvaluate: {
1192
1249
  type: Function,
1193
1250
  default: void 0
@@ -1226,13 +1283,15 @@ i({
1226
1283
  }
1227
1284
  },
1228
1285
  setup(e, { slots: t }) {
1229
- let i = n(), s = a(null), c = a(void 0), l = a([]), u = a([]), d = () => {
1230
- e.onReset?.(s.value), s.value = null, c.value = void 0, l.value = [], u.value = [];
1286
+ let i = I(e.flare);
1287
+ He(i, n()?.appContext.app.version);
1288
+ let s = n(), c = a(null), l = a(void 0), u = a([]), d = a([]), f = () => {
1289
+ e.onReset?.(c.value), c.value = null, l.value = void 0, u.value = [], d.value = [];
1231
1290
  };
1232
1291
  return o(() => e.resetKeys, (e, t) => {
1233
- if (s.value === null || !e || !t) return;
1292
+ if (c.value === null || !e || !t) return;
1234
1293
  let n = t.length !== e.length, r = e.some((e, n) => !Object.is(e, t[n]));
1235
- (n || r) && d();
1294
+ (n || r) && f();
1236
1295
  }), r((t, n, r) => {
1237
1296
  let a = m(t);
1238
1297
  e.beforeEvaluate?.({
@@ -1240,40 +1299,40 @@ i({
1240
1299
  instance: n,
1241
1300
  info: r
1242
1301
  });
1243
- let o = B(e.propsDenylist, e.replaceDefaultDenylist), d = G(n), f = J(n, {
1302
+ let o = z(e.propsDenylist, e.replaceDefaultDenylist), f = W(n), p = q(n, {
1244
1303
  attachProps: e.attachProps,
1245
1304
  propsMaxDepth: e.propsMaxDepth,
1246
1305
  propsDenylist: o
1247
- }), p = W(n);
1248
- s.value = a;
1249
- let h = e.attachProps && n?.$props ? K(n.$props, e.propsMaxDepth, o) : void 0, g = Y(r), _ = Z(i?.appContext.config.globalProperties.$router, { denylist: o }), v = { vue: {
1306
+ }), h = U(n);
1307
+ c.value = a;
1308
+ let g = e.attachProps && n?.$props ? G(n.$props, e.propsMaxDepth, o) : void 0, _ = J(r), v = X(s?.appContext.config.globalProperties.$router, { denylist: o }), y = { vue: {
1250
1309
  info: r,
1251
- errorOrigin: g,
1252
- ..._ && { route: _ },
1253
- componentName: p,
1254
- ...h && { componentProps: h },
1255
- componentHierarchy: d,
1256
- componentHierarchyFrames: f
1257
- } }, y = e.beforeSubmit?.({
1310
+ errorOrigin: _,
1311
+ ...v && { route: v },
1312
+ componentName: h,
1313
+ ...g && { componentProps: g },
1314
+ componentHierarchy: f,
1315
+ componentHierarchyFrames: p
1316
+ } }, b = e.beforeSubmit?.({
1258
1317
  error: a,
1259
1318
  instance: n,
1260
1319
  info: r,
1261
- context: v
1262
- }) ?? v;
1263
- return c.value = y.vue.componentProps, l.value = y.vue.componentHierarchy, u.value = y.vue.componentHierarchyFrames, I.reportSilently(a, Q(y)), e.afterSubmit?.({
1320
+ context: y
1321
+ }) ?? y;
1322
+ return l.value = b.vue.componentProps, u.value = b.vue.componentHierarchy, d.value = b.vue.componentHierarchyFrames, i.reportSilently(a, Ue(b)), e.afterSubmit?.({
1264
1323
  error: a,
1265
1324
  instance: n,
1266
1325
  info: r,
1267
- context: y
1326
+ context: b
1268
1327
  }), !1;
1269
- }), () => s.value === null ? t.default?.() : t.fallback ? t.fallback({
1270
- error: s.value,
1271
- ...c.value && { componentProps: c.value },
1272
- componentHierarchy: l.value,
1273
- componentHierarchyFrames: u.value,
1274
- resetErrorBoundary: d
1328
+ }), () => c.value === null ? t.default?.() : t.fallback ? t.fallback({
1329
+ error: c.value,
1330
+ ...l.value && { componentProps: l.value },
1331
+ componentHierarchy: u.value,
1332
+ componentHierarchyFrames: d.value,
1333
+ resetErrorBoundary: f
1275
1334
  }) : null;
1276
1335
  }
1277
- });
1336
+ }), Ie(() => N);
1278
1337
  //#endregion
1279
- export { Me as t };
1338
+ export { Ge as t };