@nylas/web-elements 2.5.16 → 2.5.18

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 (64) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +1 -1
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +316 -270
  3. package/dist/cjs/google-logo-icon_6.cjs.entry.js +1 -1
  4. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +15 -3
  5. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js.map +1 -1
  6. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  7. package/dist/cjs/nylas-scheduling.cjs.entry.js +44 -1
  8. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  9. package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
  10. package/dist/cjs/{version-Cc3rTMtG.js → version-Xu0ORQw8.js} +3 -3
  11. package/dist/cjs/{version-Cc3rTMtG.js.map → version-Xu0ORQw8.js.map} +1 -1
  12. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +48 -3
  13. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
  14. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +20 -1
  15. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  16. package/dist/collection/connector/shared/api/scheduler.js +24 -0
  17. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  18. package/dist/collection/version.js +1 -1
  19. package/dist/collection/version.js.map +1 -1
  20. package/dist/components/nylas-booking-form.js +1 -1
  21. package/dist/components/nylas-editor-tabs-group.js +1 -1
  22. package/dist/components/nylas-editor-tabs.js +1 -1
  23. package/dist/components/nylas-scheduler-editor.js +3 -3
  24. package/dist/components/nylas-scheduling.js +45 -2
  25. package/dist/components/nylas-scheduling.js.map +1 -1
  26. package/dist/components/{p-BJsBeE4_.js → p-BGCZ4yg1.js} +3 -3
  27. package/dist/components/{p-BJsBeE4_.js.map → p-BGCZ4yg1.js.map} +1 -1
  28. package/dist/components/{p-DRMxunL6.js → p-DQNm7dzQ.js} +3 -3
  29. package/dist/components/{p-DRMxunL6.js.map → p-DQNm7dzQ.js.map} +1 -1
  30. package/dist/components/{p-KzMRmaBa.js → p-DRXHxMKj.js} +3 -3
  31. package/dist/components/{p-KzMRmaBa.js.map → p-DRXHxMKj.js.map} +1 -1
  32. package/dist/components/{p-B3cnALr8.js → p-WABPA0YV.js} +17 -5
  33. package/dist/components/p-WABPA0YV.js.map +1 -0
  34. package/dist/esm/google-logo-icon_6.entry.js +1 -1
  35. package/dist/esm/nylas-booked-event-card_11.entry.js +15 -3
  36. package/dist/esm/nylas-booked-event-card_11.entry.js.map +1 -1
  37. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  38. package/dist/esm/nylas-scheduling.entry.js +44 -1
  39. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  40. package/dist/esm/{version-Ce04N_Lo.js → version-iQhY7wWk.js} +3 -3
  41. package/dist/esm/{version-Ce04N_Lo.js.map → version-iQhY7wWk.js.map} +1 -1
  42. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  43. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  44. package/dist/nylas-web-elements/{p-ff693a85.entry.js → p-1401a68f.entry.js} +2 -2
  45. package/dist/nylas-web-elements/p-4d04cfe9.entry.js +2 -0
  46. package/dist/nylas-web-elements/p-4d04cfe9.entry.js.map +1 -0
  47. package/dist/nylas-web-elements/{p-71137e94.entry.js → p-7b8b7718.entry.js} +2 -2
  48. package/dist/nylas-web-elements/p-cb33346f.entry.js +2 -0
  49. package/dist/nylas-web-elements/p-cb33346f.entry.js.map +1 -0
  50. package/dist/nylas-web-elements/{p-Ce04N_Lo.js → p-iQhY7wWk.js} +2 -2
  51. package/dist/nylas-web-elements/{p-Ce04N_Lo.js.map → p-iQhY7wWk.js.map} +1 -1
  52. package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +2 -0
  53. package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +1 -0
  54. package/dist/types/components.d.ts +10 -0
  55. package/dist/types/connector/shared/api/scheduler.d.ts +2 -0
  56. package/dist/types/version.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/dist/components/p-B3cnALr8.js.map +0 -1
  59. package/dist/nylas-web-elements/p-b607eace.entry.js +0 -2
  60. package/dist/nylas-web-elements/p-b607eace.entry.js.map +0 -1
  61. package/dist/nylas-web-elements/p-c7f4c268.entry.js +0 -2
  62. package/dist/nylas-web-elements/p-c7f4c268.entry.js.map +0 -1
  63. /package/dist/nylas-web-elements/{p-ff693a85.entry.js.map → p-1401a68f.entry.js.map} +0 -0
  64. /package/dist/nylas-web-elements/{p-71137e94.entry.js.map → p-7b8b7718.entry.js.map} +0 -0
@@ -244,7 +244,7 @@ nylas-selected-event-card {
244
244
  var U$ = Object.defineProperty, H$ = (t, e) => {
245
245
  for (var n in e)
246
246
  U$(t, n, { get: e[n], enumerable: !0 });
247
- }, G$ = "http://www.w3.org/2000/svg", Y$ = "http://www.w3.org/1999/xhtml", wt = (t) => {
247
+ }, G$ = "http://www.w3.org/2000/svg", Y$ = "http://www.w3.org/1999/xhtml", St = (t) => {
248
248
  if (t.__stencil__getHostRef)
249
249
  return t.__stencil__getHostRef();
250
250
  }, V$ = (t, e) => {
@@ -352,11 +352,11 @@ function sB(t) {
352
352
  const e = new CSSStyleSheet();
353
353
  return e.replaceSync(t), e;
354
354
  }
355
- var Ln;
355
+ var On;
356
356
  function lB(t) {
357
357
  var e;
358
358
  const n = this.attachShadow({ mode: "open" });
359
- Ln === void 0 && (Ln = (e = sB(j$)) != null ? e : null), Ln && (to ? n.adoptedStyleSheets.push(Ln) : n.adoptedStyleSheets = [...n.adoptedStyleSheets, Ln]);
359
+ On === void 0 && (On = (e = sB(j$)) != null ? e : null), On && (to ? n.adoptedStyleSheets.push(On) : n.adoptedStyleSheets = [...n.adoptedStyleSheets, On]);
360
360
  }
361
361
  var Fu = (t) => {
362
362
  const e = xs(t, "childNodes");
@@ -417,7 +417,7 @@ function xs(t, e) {
417
417
  return typeof t[e] != "function" ? t[e] : t[e].bind(t);
418
418
  }
419
419
  var Jt = (t, e = "") => () => {
420
- }, mn = /* @__PURE__ */ new WeakMap(), fB = (t, e, n) => {
420
+ }, bn = /* @__PURE__ */ new WeakMap(), fB = (t, e, n) => {
421
421
  let i = tr.get(t);
422
422
  Cr && n ? (i = i || new CSSStyleSheet(), typeof i == "string" ? i = e : i.replaceSync(e)) : i = e, tr.set(t, i);
423
423
  }, hB = (t, e, n) => {
@@ -428,8 +428,8 @@ var Jt = (t, e = "") => () => {
428
428
  if (t = t.nodeType === 11 ? t : Ce.document, a)
429
429
  if (typeof a == "string") {
430
430
  t = t.head || t;
431
- let o = mn.get(t), s;
432
- if (o || mn.set(t, o = /* @__PURE__ */ new Set()), !o.has(r)) {
431
+ let o = bn.get(t), s;
432
+ if (o || bn.set(t, o = /* @__PURE__ */ new Set()), !o.has(r)) {
433
433
  {
434
434
  s = Ce.document.createElement("style"), s.innerHTML = a;
435
435
  const u = (i = Oe.$nonce$) != null ? i : tB(Ce.document);
@@ -702,7 +702,7 @@ var Li, ir, Sr, oo = !1, rr = !1, qo = !1, qe = !1, ar = (t, e, n) => {
702
702
  // don't do this on initial render as it can cause non-hydrated content to be removed
703
703
  !n && ei.updatable && r !== null && Yu(r, 0, r.length - 1)
704
704
  ), qe && o === "svg" && (qe = !1)) : (u = i["s-cr"]) ? u.parentNode.textContent = s : t.$text$ !== s && (i.data = s);
705
- }, Ct = [], Vu = (t) => {
705
+ }, wt = [], Vu = (t) => {
706
706
  let e, n, i;
707
707
  const r = t.__childNodes || t.childNodes;
708
708
  for (const a of r) {
@@ -712,14 +712,14 @@ var Li, ir, Sr, oo = !1, rr = !1, qo = !1, qe = !1, ar = (t, e, n) => {
712
712
  for (i = n.length - 1; i >= 0; i--)
713
713
  if (e = n[i], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== a["s-hn"])
714
714
  if (Ss(e, o)) {
715
- let s = Ct.find((u) => u.$nodeToRelocate$ === e);
716
- rr = !0, e["s-sn"] = e["s-sn"] || o, s ? (s.$nodeToRelocate$["s-sh"] = a["s-hn"], s.$slotRefNode$ = a) : (e["s-sh"] = a["s-hn"], Ct.push({
715
+ let s = wt.find((u) => u.$nodeToRelocate$ === e);
716
+ rr = !0, e["s-sn"] = e["s-sn"] || o, s ? (s.$nodeToRelocate$["s-sh"] = a["s-hn"], s.$slotRefNode$ = a) : (e["s-sh"] = a["s-hn"], wt.push({
717
717
  $slotRefNode$: a,
718
718
  $nodeToRelocate$: e
719
- })), e["s-sr"] && Ct.map((u) => {
720
- Ss(u.$nodeToRelocate$, e["s-sn"]) && (s = Ct.find((c) => c.$nodeToRelocate$ === e), s && !u.$slotRefNode$ && (u.$slotRefNode$ = s.$slotRefNode$));
719
+ })), e["s-sr"] && wt.map((u) => {
720
+ Ss(u.$nodeToRelocate$, e["s-sn"]) && (s = wt.find((c) => c.$nodeToRelocate$ === e), s && !u.$slotRefNode$ && (u.$slotRefNode$ = s.$slotRefNode$));
721
721
  });
722
- } else Ct.some((s) => s.$nodeToRelocate$ === e) || Ct.push({
722
+ } else wt.some((s) => s.$nodeToRelocate$ === e) || wt.push({
723
723
  $nodeToRelocate$: e
724
724
  });
725
725
  }
@@ -758,14 +758,14 @@ var TB = (t, e, n = !1) => {
758
758
  {
759
759
  if (Oe.$flags$ |= 1, qo) {
760
760
  Vu(h.$elm$);
761
- for (const l of Ct) {
761
+ for (const l of wt) {
762
762
  const d = l.$nodeToRelocate$;
763
763
  if (!d["s-ol"] && Ce.document) {
764
764
  const g = Ce.document.createTextNode("");
765
765
  g["s-nr"] = d, zt(d.parentNode, d["s-ol"] = g, d);
766
766
  }
767
767
  }
768
- for (const l of Ct) {
768
+ for (const l of wt) {
769
769
  const d = l.$nodeToRelocate$, g = l.$slotRefNode$;
770
770
  if (g) {
771
771
  const b = g.parentNode;
@@ -791,7 +791,7 @@ var TB = (t, e, n = !1) => {
791
791
  d.nodeType === 1 && (n && (d["s-ih"] = (o = d.hidden) != null ? o : !1), d.hidden = !0);
792
792
  }
793
793
  }
794
- rr && Fu(h.$elm$), Oe.$flags$ &= -2, Ct.length = 0;
794
+ rr && Fu(h.$elm$), Oe.$flags$ &= -2, wt.length = 0;
795
795
  }
796
796
  ir = void 0;
797
797
  }, Zu = (t, e) => {
@@ -825,7 +825,7 @@ var TB = (t, e, n = !1) => {
825
825
  `Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
826
826
  );
827
827
  let a;
828
- return e ? a = yn(r, "componentWillLoad", void 0, n) : a = yn(r, "componentWillUpdate", void 0, n), a = Ds(a, () => yn(r, "componentWillRender", void 0, n)), i(), Ds(a, () => CB(t, r, e));
828
+ return e ? a = vn(r, "componentWillLoad", void 0, n) : a = vn(r, "componentWillUpdate", void 0, n), a = Ds(a, () => vn(r, "componentWillRender", void 0, n)), i(), Ds(a, () => CB(t, r, e));
829
829
  }, Ds = (t, e) => _B(t) ? t.then(e).catch((n) => {
830
830
  console.error(n), e();
831
831
  }) : e(), _B = (t) => t instanceof Promise || t && t.then && typeof t.then == "function", CB = async (t, e, n) => {
@@ -847,16 +847,16 @@ var TB = (t, e, n = !1) => {
847
847
  return so = null, null;
848
848
  }, Ms = () => so, SB = (t) => {
849
849
  const e = t.$cmpMeta$.$tagName$, n = t.$hostElement$, i = Jt("postUpdate", e), r = n, a = t.$ancestorComponent$;
850
- yn(r, "componentDidRender", void 0, n), t.$flags$ & 64 ? (yn(r, "componentDidUpdate", void 0, n), i()) : (t.$flags$ |= 64, AB(n), yn(r, "componentDidLoad", void 0, n), i(), t.$onReadyResolve$(n), a || xB()), t.$onRenderResolve$ && (t.$onRenderResolve$(), t.$onRenderResolve$ = void 0), t.$flags$ & 512 && wr(() => xr(t, !1)), t.$flags$ &= -517;
850
+ vn(r, "componentDidRender", void 0, n), t.$flags$ & 64 ? (vn(r, "componentDidUpdate", void 0, n), i()) : (t.$flags$ |= 64, AB(n), vn(r, "componentDidLoad", void 0, n), i(), t.$onReadyResolve$(n), a || xB()), t.$onRenderResolve$ && (t.$onRenderResolve$(), t.$onRenderResolve$ = void 0), t.$flags$ & 512 && wr(() => xr(t, !1)), t.$flags$ &= -517;
851
851
  }, Ls = (t) => {
852
852
  var e;
853
853
  {
854
- const n = wt(t), i = (e = n == null ? void 0 : n.$hostElement$) == null ? void 0 : e.isConnected;
854
+ const n = St(t), i = (e = n == null ? void 0 : n.$hostElement$) == null ? void 0 : e.isConnected;
855
855
  return i && (n.$flags$ & 18) === 2 && xr(n, !1), i;
856
856
  }
857
857
  }, xB = (t) => {
858
858
  wr(() => Uu(Ce, "appload", { detail: { namespace: q$ } }));
859
- }, yn = (t, e, n, i) => {
859
+ }, vn = (t, e, n, i) => {
860
860
  if (t && t[e])
861
861
  try {
862
862
  return t[e](n);
@@ -866,8 +866,8 @@ var TB = (t, e, n = !1) => {
866
866
  }, AB = (t) => {
867
867
  var e;
868
868
  return t.classList.add((e = ei.hydratedSelectorName) != null ? e : "hydrated");
869
- }, $B = (t, e) => wt(t).$instanceValues$.get(e), Os = (t, e, n, i) => {
870
- const r = wt(t);
869
+ }, $B = (t, e) => St(t).$instanceValues$.get(e), Os = (t, e, n, i) => {
870
+ const r = St(t);
871
871
  if (!r)
872
872
  return;
873
873
  const a = t, o = r.$instanceValues$.get(e), s = r.$flags$, u = a;
@@ -905,7 +905,7 @@ var TB = (t, e, n = !1) => {
905
905
  Object.defineProperty(a, o, {
906
906
  value(...u) {
907
907
  var c;
908
- const f = wt(this), h = this;
908
+ const f = St(this), h = this;
909
909
  if (!h)
910
910
  (c = f == null ? void 0 : f.$onReadyPromise$) == null || c.then((l) => {
911
911
  const d = l[o];
@@ -931,7 +931,7 @@ var TB = (t, e, n = !1) => {
931
931
  enumerable: !0
932
932
  }), Object.defineProperty(a, s, {
933
933
  set(h) {
934
- const l = wt(this);
934
+ const l = St(this);
935
935
  if (l) {
936
936
  if (f) {
937
937
  const d = u & 32 ? this[s] : l.$hostElement$[s];
@@ -964,7 +964,7 @@ var TB = (t, e, n = !1) => {
964
964
  this[l] == f)
965
965
  return;
966
966
  if (l == null) {
967
- const g = wt(this), b = g == null ? void 0 : g.$flags$;
967
+ const g = St(this), b = g == null ? void 0 : g.$flags$;
968
968
  if (g && b && !(b & 8) && b & 128 && f !== c) {
969
969
  const p = this, y = (h = e.$watchers$) == null ? void 0 : h[u];
970
970
  y == null || y.forEach((E) => {
@@ -1020,7 +1020,7 @@ var TB = (t, e, n = !1) => {
1020
1020
  }, PB = (t, e) => {
1021
1021
  }, DB = (t) => {
1022
1022
  if (!(Oe.$flags$ & 1)) {
1023
- const e = wt(t);
1023
+ const e = St(t);
1024
1024
  if (!e)
1025
1025
  return;
1026
1026
  const n = e.$cmpMeta$, i = Jt("connectedCallback", n.$tagName$);
@@ -1055,10 +1055,10 @@ var TB = (t, e, n = !1) => {
1055
1055
  e["s-cn"] = !0, zt(t, e, t.firstChild);
1056
1056
  }, LB = async (t) => {
1057
1057
  if (!(Oe.$flags$ & 1)) {
1058
- const e = wt(t);
1058
+ const e = St(t);
1059
1059
  e != null && e.$rmListeners$ && (e.$rmListeners$.map((n) => n()), e.$rmListeners$ = void 0);
1060
1060
  }
1061
- mn.has(t) && mn.delete(t), t.shadowRoot && mn.has(t.shadowRoot) && mn.delete(t.shadowRoot);
1061
+ bn.has(t) && bn.delete(t), t.shadowRoot && bn.has(t.shadowRoot) && bn.delete(t.shadowRoot);
1062
1062
  }, ee = (t, e) => {
1063
1063
  const n = {
1064
1064
  $flags$: e[0],
@@ -1073,7 +1073,7 @@ var TB = (t, e, n = !1) => {
1073
1073
  },
1074
1074
  connectedCallback() {
1075
1075
  if (!this.__hasHostListenerAttached) {
1076
- const a = wt(this);
1076
+ const a = St(this);
1077
1077
  if (!a)
1078
1078
  return;
1079
1079
  Xu(this, a, n.$listeners$), this.__hasHostListenerAttached = !0;
@@ -1204,7 +1204,7 @@ class Ar {
1204
1204
  });
1205
1205
  }
1206
1206
  }
1207
- function On() {
1207
+ function In() {
1208
1208
  let t, e;
1209
1209
  const n = new Promise((i, r) => {
1210
1210
  t = i, e = r;
@@ -2472,7 +2472,7 @@ class Zn extends Ar {
2472
2472
  return e.store[f](...arguments), e;
2473
2473
  };
2474
2474
  });
2475
- const u = On(), c = () => {
2475
+ const u = In(), c = () => {
2476
2476
  const f = (h, l) => {
2477
2477
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(l), i(h, l);
2478
2478
  };
@@ -2499,7 +2499,7 @@ class Zn extends Ar {
2499
2499
  i(null);
2500
2500
  }
2501
2501
  reloadResources(e, n, i) {
2502
- const r = On();
2502
+ const r = In();
2503
2503
  return e || (e = this.languages), n || (n = this.options.ns), i || (i = pi), this.services.backendConnector.reload(e, n, (a) => {
2504
2504
  r.resolve(), i(a);
2505
2505
  }), r;
@@ -2522,7 +2522,7 @@ class Zn extends Ar {
2522
2522
  changeLanguage(e, n) {
2523
2523
  var i = this;
2524
2524
  this.isLanguageChangingTo = e;
2525
- const r = On();
2525
+ const r = In();
2526
2526
  this.emit("languageChanging", e);
2527
2527
  const a = (u) => {
2528
2528
  this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
@@ -2588,7 +2588,7 @@ class Zn extends Ar {
2588
2588
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(i, e) && (!r || o(a, e)));
2589
2589
  }
2590
2590
  loadNamespaces(e, n) {
2591
- const i = On();
2591
+ const i = In();
2592
2592
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((r) => {
2593
2593
  this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
2594
2594
  }), this.loadResources((r) => {
@@ -2596,7 +2596,7 @@ class Zn extends Ar {
2596
2596
  }), i) : (n && n(), Promise.resolve());
2597
2597
  }
2598
2598
  loadLanguages(e, n) {
2599
- const i = On();
2599
+ const i = In();
2600
2600
  typeof e == "string" && (e = [e]);
2601
2601
  const r = this.options.preload || [], a = e.filter((o) => r.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
2602
2602
  return a.length ? (this.options.preload = r.concat(a), this.loadResources((o) => {
@@ -12404,7 +12404,7 @@ var xP = Pt(), st = /* @__PURE__ */ $r(xP), co = [
12404
12404
  return typeof t == "number";
12405
12405
  }, Ws = function(t) {
12406
12406
  return typeof t == "string" && co.includes(t);
12407
- }, Ye = Array.isArray, mt = function(t, e) {
12407
+ }, Ye = Array.isArray, bt = function(t, e) {
12408
12408
  e === void 0 && (e = t), arguments.length === 1 && (e = t, t = 0);
12409
12409
  for (var n = [], i = t; i < e; i++)
12410
12410
  n.push(i);
@@ -12446,7 +12446,7 @@ var $P = function(t, e, n) {
12446
12446
  return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
12447
12447
  }, aA = function(t) {
12448
12448
  return t instanceof Date;
12449
- }, zn = function(t) {
12449
+ }, jn = function(t) {
12450
12450
  return aA(t) && !isNaN(t.getTime());
12451
12451
  }, DP = function(t, e) {
12452
12452
  var n = t.getTime(), i = e.getTime(), r = n - i;
@@ -12458,11 +12458,11 @@ var $P = function(t, e, n) {
12458
12458
  }, MP = function(t) {
12459
12459
  var e = t.getUTCMonth();
12460
12460
  return e === 1 && Vn(t.getUTCFullYear()) ? 29 : BP[e];
12461
- }, En = function(t) {
12461
+ }, _n = function(t) {
12462
12462
  return PP[t.getUTCDay()];
12463
12463
  }, Ks = function(t, e) {
12464
12464
  var n = Xt(t, e + 1, 1);
12465
- return [En(n), MP(n)];
12465
+ return [_n(n), MP(n)];
12466
12466
  }, sA = function(t, e) {
12467
12467
  return e = e || t, new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
12468
12468
  }, fo = function(t) {
@@ -12500,7 +12500,7 @@ var $P = function(t, e, n) {
12500
12500
  }, LP = function(t, e) {
12501
12501
  var n = Intl.DateTimeFormat().resolvedOptions().timeZone, i = new Date(Js(t, n)), r = new Date(Js(t, e ?? "UTC")), a = r.getTime() - i.getTime();
12502
12502
  return new Date(t.getTime() - a);
12503
- }, bn = (
12503
+ }, yn = (
12504
12504
  /** @class */
12505
12505
  function() {
12506
12506
  function t(e, n) {
@@ -12578,7 +12578,7 @@ var Xs = (
12578
12578
  return e.prototype.add = function(n) {
12579
12579
  return this.iterator(n, this._result.length) ? (this._result.push(n), !0) : !1;
12580
12580
  }, e;
12581
- }(bn)
12581
+ }(yn)
12582
12582
  ), dr = {
12583
12583
  dayNames: [
12584
12584
  "Sunday",
@@ -13047,7 +13047,7 @@ function Yo(t) {
13047
13047
  }
13048
13048
  var NP = function(t, e) {
13049
13049
  return e === void 0 && (e = dr), new K(lA(t, e) || void 0);
13050
- }, $n = [
13050
+ }, Bn = [
13051
13051
  "count",
13052
13052
  "until",
13053
13053
  "interval",
@@ -13056,12 +13056,12 @@ var NP = function(t, e) {
13056
13056
  "bymonth"
13057
13057
  ];
13058
13058
  Dt.IMPLEMENTED = [];
13059
- Dt.IMPLEMENTED[se.HOURLY] = $n;
13060
- Dt.IMPLEMENTED[se.MINUTELY] = $n;
13061
- Dt.IMPLEMENTED[se.DAILY] = ["byhour"].concat($n);
13062
- Dt.IMPLEMENTED[se.WEEKLY] = $n;
13063
- Dt.IMPLEMENTED[se.MONTHLY] = $n;
13064
- Dt.IMPLEMENTED[se.YEARLY] = ["byweekno", "byyearday"].concat($n);
13059
+ Dt.IMPLEMENTED[se.HOURLY] = Bn;
13060
+ Dt.IMPLEMENTED[se.MINUTELY] = Bn;
13061
+ Dt.IMPLEMENTED[se.DAILY] = ["byhour"].concat(Bn);
13062
+ Dt.IMPLEMENTED[se.WEEKLY] = Bn;
13063
+ Dt.IMPLEMENTED[se.MONTHLY] = Bn;
13064
+ Dt.IMPLEMENTED[se.YEARLY] = ["byweekno", "byyearday"].concat(Bn);
13065
13065
  var FP = function(t, e, n, i) {
13066
13066
  return new Dt(t, e, n, i).toString();
13067
13067
  }, zP = Dt.isFullyConvertible, fr = (
@@ -13093,7 +13093,7 @@ var FP = function(t, e, n, i) {
13093
13093
  return e.fromDate = function(n) {
13094
13094
  return new this(n.getUTCFullYear(), n.getUTCMonth() + 1, n.getUTCDate(), n.getUTCHours(), n.getUTCMinutes(), n.getUTCSeconds(), n.valueOf() % 1e3);
13095
13095
  }, e.prototype.getWeekday = function() {
13096
- return En(new Date(this.getTime()));
13096
+ return _n(new Date(this.getTime()));
13097
13097
  }, e.prototype.getTime = function() {
13098
13098
  return new Date(Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second, this.millisecond)).getTime();
13099
13099
  }, e.prototype.getDay = function() {
@@ -13168,7 +13168,7 @@ var FP = function(t, e, n, i) {
13168
13168
  function cA(t) {
13169
13169
  for (var e = [], n = Object.keys(t), i = 0, r = n; i < r.length; i++) {
13170
13170
  var a = r[i];
13171
- me(bD, a) || e.push(a), aA(t[a]) && !zn(t[a]) && e.push(a);
13171
+ me(bD, a) || e.push(a), aA(t[a]) && !jn(t[a]) && e.push(a);
13172
13172
  }
13173
13173
  if (e.length)
13174
13174
  throw new Error("Invalid options: " + e.join(", "));
@@ -13195,7 +13195,7 @@ function qP(t) {
13195
13195
  e.bymonthday = e.dtstart.getUTCDate();
13196
13196
  break;
13197
13197
  case K.WEEKLY:
13198
- e.byweekday = [En(e.dtstart)];
13198
+ e.byweekday = [_n(e.dtstart)];
13199
13199
  break;
13200
13200
  }
13201
13201
  if (we(e.bymonth) && !Ye(e.bymonth) && (e.bymonth = [e.bymonth]), we(e.byyearday) && !Ye(e.byyearday) && ut(e.byyearday) && (e.byyearday = [e.byyearday]), !we(e.bymonthday))
@@ -13444,20 +13444,20 @@ var KP = (
13444
13444
  }
13445
13445
  }
13446
13446
  if (!i && this.all) {
13447
- for (var c = new bn(e, n), s = 0; s < this.all.length && c.accept(this.all[s]); s++)
13447
+ for (var c = new yn(e, n), s = 0; s < this.all.length && c.accept(this.all[s]); s++)
13448
13448
  ;
13449
13449
  i = c.getValue(), this._cacheAdd(e, i, n);
13450
13450
  }
13451
13451
  return Ye(i) ? Zs(i) : i instanceof Date ? fo(i) : i;
13452
13452
  }, t;
13453
13453
  }()
13454
- ), ZP = q(q(q(q(q(q(q(q(q(q(q(q(q([], oe(1, 31), !0), oe(2, 28), !0), oe(3, 31), !0), oe(4, 30), !0), oe(5, 31), !0), oe(6, 30), !0), oe(7, 31), !0), oe(8, 31), !0), oe(9, 30), !0), oe(10, 31), !0), oe(11, 30), !0), oe(12, 31), !0), oe(1, 7)), JP = q(q(q(q(q(q(q(q(q(q(q(q(q([], oe(1, 31), !0), oe(2, 29), !0), oe(3, 31), !0), oe(4, 30), !0), oe(5, 31), !0), oe(6, 30), !0), oe(7, 31), !0), oe(8, 31), !0), oe(9, 30), !0), oe(10, 31), !0), oe(11, 30), !0), oe(12, 31), !0), oe(1, 7)), XP = mt(1, 29), QP = mt(1, 30), Rt = mt(1, 31), De = mt(1, 32), eD = q(q(q(q(q(q(q(q(q(q(q(q(q([], De, !0), QP, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De.slice(0, 7)), tD = q(q(q(q(q(q(q(q(q(q(q(q(q([], De, !0), XP, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De.slice(0, 7)), nD = mt(-28, 0), iD = mt(-29, 0), Nt = mt(-30, 0), Me = mt(-31, 0), rD = q(q(q(q(q(q(q(q(q(q(q(q(q([], Me, !0), iD, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me.slice(0, 7)), aD = q(q(q(q(q(q(q(q(q(q(q(q(q([], Me, !0), nD, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me.slice(0, 7)), oD = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], sD = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], nl = function() {
13454
+ ), ZP = q(q(q(q(q(q(q(q(q(q(q(q(q([], oe(1, 31), !0), oe(2, 28), !0), oe(3, 31), !0), oe(4, 30), !0), oe(5, 31), !0), oe(6, 30), !0), oe(7, 31), !0), oe(8, 31), !0), oe(9, 30), !0), oe(10, 31), !0), oe(11, 30), !0), oe(12, 31), !0), oe(1, 7)), JP = q(q(q(q(q(q(q(q(q(q(q(q(q([], oe(1, 31), !0), oe(2, 29), !0), oe(3, 31), !0), oe(4, 30), !0), oe(5, 31), !0), oe(6, 30), !0), oe(7, 31), !0), oe(8, 31), !0), oe(9, 30), !0), oe(10, 31), !0), oe(11, 30), !0), oe(12, 31), !0), oe(1, 7)), XP = bt(1, 29), QP = bt(1, 30), Rt = bt(1, 31), De = bt(1, 32), eD = q(q(q(q(q(q(q(q(q(q(q(q(q([], De, !0), QP, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De.slice(0, 7)), tD = q(q(q(q(q(q(q(q(q(q(q(q(q([], De, !0), XP, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De, !0), Rt, !0), De, !0), Rt, !0), De, !0), De.slice(0, 7)), nD = bt(-28, 0), iD = bt(-29, 0), Nt = bt(-30, 0), Me = bt(-31, 0), rD = q(q(q(q(q(q(q(q(q(q(q(q(q([], Me, !0), iD, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me.slice(0, 7)), aD = q(q(q(q(q(q(q(q(q(q(q(q(q([], Me, !0), nD, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me, !0), Nt, !0), Me, !0), Nt, !0), Me, !0), Me.slice(0, 7)), oD = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], sD = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], nl = function() {
13455
13455
  for (var t = [], e = 0; e < 55; e++)
13456
- t = t.concat(mt(7));
13456
+ t = t.concat(bt(7));
13457
13457
  return t;
13458
13458
  }();
13459
13459
  function lD(t, e) {
13460
- var n = Xt(t, 1, 1), i = Vn(t) ? 366 : 365, r = Vn(t + 1) ? 366 : 365, a = uo(n), o = En(n), s = Ke(Ke({ yearlen: i, nextyearlen: r, yearordinal: a, yearweekday: o }, cD(t)), { wnomask: null });
13460
+ var n = Xt(t, 1, 1), i = Vn(t) ? 366 : 365, r = Vn(t + 1) ? 366 : 365, a = uo(n), o = _n(n), s = Ke(Ke({ yearlen: i, nextyearlen: r, yearordinal: a, yearweekday: o }, cD(t)), { wnomask: null });
13461
13461
  if (dt(e.byweekno))
13462
13462
  return s;
13463
13463
  s.wnomask = oe(0, i + 7);
@@ -13483,7 +13483,7 @@ function lD(t, e) {
13483
13483
  if (me(e.byweekno, -1))
13484
13484
  y = -1;
13485
13485
  else {
13486
- var E = En(Xt(t - 1, 1, 1)), T = Je(7 - E.valueOf() + e.wkst, 7), k = Vn(t - 1) ? 366 : 365, _ = void 0;
13486
+ var E = _n(Xt(t - 1, 1, 1)), T = Je(7 - E.valueOf() + e.wkst, 7), k = Vn(t - 1) ? 366 : 365, _ = void 0;
13487
13487
  T >= 4 ? (T = 0, _ = k + Je(E - e.wkst, 7)) : _ = i - f, y = Math.floor(52 + Je(_, 7) / 4);
13488
13488
  }
13489
13489
  if (me(e.byweekno, y))
@@ -13493,7 +13493,7 @@ function lD(t, e) {
13493
13493
  return s;
13494
13494
  }
13495
13495
  function cD(t) {
13496
- var e = Vn(t) ? 366 : 365, n = Xt(t, 1, 1), i = En(n);
13496
+ var e = Vn(t) ? 366 : 365, n = Xt(t, 1, 1), i = _n(n);
13497
13497
  return e === 365 ? {
13498
13498
  mmask: ZP,
13499
13499
  mdaymask: tD,
@@ -13622,7 +13622,7 @@ var fD = (
13622
13622
  enumerable: !1,
13623
13623
  configurable: !0
13624
13624
  }), t.prototype.ydayset = function() {
13625
- return [mt(this.yearlen), 0, this.yearlen];
13625
+ return [bt(this.yearlen), 0, this.yearlen];
13626
13626
  }, t.prototype.mdayset = function(e, n) {
13627
13627
  for (var i = this.mrange[n - 1], r = this.mrange[n], a = oe(null, this.yearlen), o = i; o < r; o++)
13628
13628
  a[o] = o;
@@ -13689,7 +13689,7 @@ function hD(t, e, n, i, r, a) {
13689
13689
  function uA(t, e) {
13690
13690
  var n = e.dtstart, i = e.freq, r = e.interval, a = e.until, o = e.bysetpos, s = e.count;
13691
13691
  if (s === 0 || r === 0)
13692
- return vt(t);
13692
+ return kt(t);
13693
13693
  var u = jP.fromDate(n), c = new fD(e);
13694
13694
  c.rebuild(u.year, u.month);
13695
13695
  for (var f = mD(c, u, e); ; ) {
@@ -13698,11 +13698,11 @@ function uA(t, e) {
13698
13698
  for (var m = hD(o, f, d, g, c, l), p = 0; p < m.length; p++) {
13699
13699
  var y = m[p];
13700
13700
  if (a && y > a)
13701
- return vt(t);
13701
+ return kt(t);
13702
13702
  if (y >= n) {
13703
13703
  var E = il(y, e);
13704
13704
  if (!t.accept(E) || s && (--s, !s))
13705
- return vt(t);
13705
+ return kt(t);
13706
13706
  }
13707
13707
  }
13708
13708
  else
@@ -13712,16 +13712,16 @@ function uA(t, e) {
13712
13712
  for (var k = oA(c.yearordinal + T), _ = 0; _ < f.length; _++) {
13713
13713
  var C = f[_], y = sA(k, C);
13714
13714
  if (a && y > a)
13715
- return vt(t);
13715
+ return kt(t);
13716
13716
  if (y >= n) {
13717
13717
  var E = il(y, e);
13718
13718
  if (!t.accept(E) || s && (--s, !s))
13719
- return vt(t);
13719
+ return kt(t);
13720
13720
  }
13721
13721
  }
13722
13722
  }
13723
13723
  if (e.interval === 0 || (u.add(e, b), u.year > iA))
13724
- return vt(t);
13724
+ return kt(t);
13725
13725
  Yo(i) || (f = c.gettimeset(i)(u.hour, u.minute, u.second, 0)), c.rebuild(u.year, u.month);
13726
13726
  }
13727
13727
  }
@@ -13732,7 +13732,7 @@ function gD(t, e, n) {
13732
13732
  function il(t, e) {
13733
13733
  return new gr(t, e.tzid).rezonedDate();
13734
13734
  }
13735
- function vt(t) {
13735
+ function kt(t) {
13736
13736
  return t.getValue();
13737
13737
  }
13738
13738
  function pD(t, e, n, i, r) {
@@ -13799,9 +13799,9 @@ var at = {
13799
13799
  if (e)
13800
13800
  return this._iter(new Xs("all", {}, e));
13801
13801
  var n = this._cacheGet("all");
13802
- return n === !1 && (n = this._iter(new bn("all", {})), this._cacheAdd("all", n)), n;
13802
+ return n === !1 && (n = this._iter(new yn("all", {})), this._cacheAdd("all", n)), n;
13803
13803
  }, t.prototype.between = function(e, n, i, r) {
13804
- if (i === void 0 && (i = !1), !zn(e) || !zn(n))
13804
+ if (i === void 0 && (i = !1), !jn(e) || !jn(n))
13805
13805
  throw new Error("Invalid date passed in to RRule.between");
13806
13806
  var a = {
13807
13807
  before: n,
@@ -13811,17 +13811,17 @@ var at = {
13811
13811
  if (r)
13812
13812
  return this._iter(new Xs("between", a, r));
13813
13813
  var o = this._cacheGet("between", a);
13814
- return o === !1 && (o = this._iter(new bn("between", a)), this._cacheAdd("between", o, a)), o;
13814
+ return o === !1 && (o = this._iter(new yn("between", a)), this._cacheAdd("between", o, a)), o;
13815
13815
  }, t.prototype.before = function(e, n) {
13816
- if (n === void 0 && (n = !1), !zn(e))
13816
+ if (n === void 0 && (n = !1), !jn(e))
13817
13817
  throw new Error("Invalid date passed in to RRule.before");
13818
13818
  var i = { dt: e, inc: n }, r = this._cacheGet("before", i);
13819
- return r === !1 && (r = this._iter(new bn("before", i)), this._cacheAdd("before", r, i)), r;
13819
+ return r === !1 && (r = this._iter(new yn("before", i)), this._cacheAdd("before", r, i)), r;
13820
13820
  }, t.prototype.after = function(e, n) {
13821
- if (n === void 0 && (n = !1), !zn(e))
13821
+ if (n === void 0 && (n = !1), !jn(e))
13822
13822
  throw new Error("Invalid date passed in to RRule.after");
13823
13823
  var i = { dt: e, inc: n }, r = this._cacheGet("after", i);
13824
- return r === !1 && (r = this._iter(new bn("after", i)), this._cacheAdd("after", r, i)), r;
13824
+ return r === !1 && (r = this._iter(new yn("after", i)), this._cacheAdd("after", r, i)), r;
13825
13825
  }, t.prototype.count = function() {
13826
13826
  return this.all().length;
13827
13827
  }, t.prototype.toString = function() {
@@ -15428,7 +15428,7 @@ function Ut() {
15428
15428
  t.DomHandler = o, t.default = o;
15429
15429
  }(Yt)), Yt;
15430
15430
  }
15431
- var Vt = {}, Ie = {}, ze = {}, Xr = {}, kt = {}, yi = {}, _l;
15431
+ var Vt = {}, Ie = {}, ze = {}, Xr = {}, Tt = {}, yi = {}, _l;
15432
15432
  function $D() {
15433
15433
  if (_l) return yi;
15434
15434
  _l = 1, Object.defineProperty(yi, "__esModule", { value: !0 });
@@ -15488,21 +15488,21 @@ function mo() {
15488
15488
  }
15489
15489
  var wl;
15490
15490
  function Sl() {
15491
- if (wl) return kt;
15491
+ if (wl) return Tt;
15492
15492
  wl = 1;
15493
- var t = kt && kt.__importDefault || function(s) {
15493
+ var t = Tt && Tt.__importDefault || function(s) {
15494
15494
  return s && s.__esModule ? s : { default: s };
15495
15495
  };
15496
- Object.defineProperty(kt, "__esModule", { value: !0 }), kt.encodeNonAsciiHTML = kt.encodeHTML = void 0;
15496
+ Object.defineProperty(Tt, "__esModule", { value: !0 }), Tt.encodeNonAsciiHTML = Tt.encodeHTML = void 0;
15497
15497
  var e = t(/* @__PURE__ */ $D()), n = /* @__PURE__ */ mo(), i = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;
15498
15498
  function r(s) {
15499
15499
  return o(i, s);
15500
15500
  }
15501
- kt.encodeHTML = r;
15501
+ Tt.encodeHTML = r;
15502
15502
  function a(s) {
15503
15503
  return o(n.xmlReplacer, s);
15504
15504
  }
15505
- kt.encodeNonAsciiHTML = a;
15505
+ Tt.encodeNonAsciiHTML = a;
15506
15506
  function o(s, u) {
15507
15507
  for (var c = "", f = 0, h; (h = s.exec(u)) !== null; ) {
15508
15508
  var l = h.index;
@@ -15527,7 +15527,7 @@ function Sl() {
15527
15527
  }
15528
15528
  return c + u.substr(f);
15529
15529
  }
15530
- return kt;
15530
+ return Tt;
15531
15531
  }
15532
15532
  var xl;
15533
15533
  function BD() {
@@ -16183,16 +16183,16 @@ function OD() {
16183
16183
  t.uniqueSort = a;
16184
16184
  }(ea)), ea;
16185
16185
  }
16186
- var In = {}, Il;
16186
+ var Rn = {}, Il;
16187
16187
  function ID() {
16188
- if (Il) return In;
16189
- Il = 1, Object.defineProperty(In, "__esModule", { value: !0 }), In.getFeed = void 0;
16188
+ if (Il) return Rn;
16189
+ Il = 1, Object.defineProperty(Rn, "__esModule", { value: !0 }), Rn.getFeed = void 0;
16190
16190
  var t = /* @__PURE__ */ fA(), e = /* @__PURE__ */ gA();
16191
16191
  function n(l) {
16192
16192
  var d = u(h, l);
16193
16193
  return d ? d.name === "feed" ? i(d) : r(d) : null;
16194
16194
  }
16195
- In.getFeed = n;
16195
+ Rn.getFeed = n;
16196
16196
  function i(l) {
16197
16197
  var d, g = l.children, b = {
16198
16198
  type: "atom",
@@ -16268,7 +16268,7 @@ function ID() {
16268
16268
  function h(l) {
16269
16269
  return l === "rss" || l === "feed" || l === "rdf:RDF";
16270
16270
  }
16271
- return In;
16271
+ return Rn;
16272
16272
  }
16273
16273
  var Rl;
16274
16274
  function ta() {
@@ -18916,23 +18916,23 @@ and ensure you are accounting for this risk.
18916
18916
  delete z.attribs[ne];
18917
18917
  return;
18918
18918
  }
18919
- let Mn = !1;
18919
+ let Ln = !1;
18920
18920
  if (!P || c(P, R) && P[R].indexOf(ne) !== -1 || P["*"] && P["*"].indexOf(ne) !== -1 || c($, R) && $[R].test(ne) || $["*"] && $["*"].test(ne))
18921
- Mn = !0;
18921
+ Ln = !0;
18922
18922
  else if (P && P[R]) {
18923
18923
  for (const ue of P[R])
18924
18924
  if (n(ue) && ue.name && ue.name === ne) {
18925
- Mn = !0;
18925
+ Ln = !0;
18926
18926
  let de = "";
18927
18927
  if (ue.multiple === !0) {
18928
18928
  const Gt = ge.split(" ");
18929
- for (const yt of Gt)
18930
- ue.values.indexOf(yt) !== -1 && (de === "" ? de = yt : de += " " + yt);
18929
+ for (const vt of Gt)
18930
+ ue.values.indexOf(vt) !== -1 && (de === "" ? de = vt : de += " " + vt);
18931
18931
  } else ue.values.indexOf(ge) >= 0 && (de = ge);
18932
18932
  ge = de;
18933
18933
  }
18934
18934
  }
18935
- if (Mn) {
18935
+ if (Ln) {
18936
18936
  if (p.allowedSchemesAppliedToAttributes.indexOf(ne) !== -1 && ae(R, ge)) {
18937
18937
  delete z.attribs[ne];
18938
18938
  return;
@@ -18944,10 +18944,10 @@ and ensure you are accounting for this risk.
18944
18944
  if (p.allowedScriptHostnames || p.allowedScriptDomains) {
18945
18945
  const Gt = (p.allowedScriptHostnames || []).find(function(tt) {
18946
18946
  return tt === de.url.hostname;
18947
- }), yt = (p.allowedScriptDomains || []).find(function(tt) {
18947
+ }), vt = (p.allowedScriptDomains || []).find(function(tt) {
18948
18948
  return de.url.hostname === tt || de.url.hostname.endsWith(`.${tt}`);
18949
18949
  });
18950
- ue = Gt || yt;
18950
+ ue = Gt || vt;
18951
18951
  }
18952
18952
  } catch {
18953
18953
  ue = !1;
@@ -18966,10 +18966,10 @@ and ensure you are accounting for this risk.
18966
18966
  else if (p.allowedIframeHostnames || p.allowedIframeDomains) {
18967
18967
  const Gt = (p.allowedIframeHostnames || []).find(function(tt) {
18968
18968
  return tt === de.url.hostname;
18969
- }), yt = (p.allowedIframeDomains || []).find(function(tt) {
18969
+ }), vt = (p.allowedIframeDomains || []).find(function(tt) {
18970
18970
  return de.url.hostname === tt || de.url.hostname.endsWith(`.${tt}`);
18971
18971
  });
18972
- ue = Gt || yt;
18972
+ ue = Gt || vt;
18973
18973
  }
18974
18974
  } catch {
18975
18975
  ue = !1;
@@ -18999,10 +18999,10 @@ and ensure you are accounting for this risk.
18999
18999
  return;
19000
19000
  }
19001
19001
  if (ne === "class") {
19002
- const ue = B[R], de = B["*"], Gt = S[R], yt = A[R], tt = S["*"], Es = [
19002
+ const ue = B[R], de = B["*"], Gt = S[R], vt = A[R], tt = S["*"], Es = [
19003
19003
  Gt,
19004
19004
  tt
19005
- ].concat(yt).filter(function(z$) {
19005
+ ].concat(vt).filter(function(z$) {
19006
19006
  return z$;
19007
19007
  });
19008
19008
  if (ue && de ? ge = xe(ge, i(ue, de), Es) : ge = xe(ge, ue || de, Es), !ge.length) {
@@ -19758,7 +19758,7 @@ const wM = {
19758
19758
  function SM(t) {
19759
19759
  return st().tz(t).format("Z");
19760
19760
  }
19761
- function St(t) {
19761
+ function xt(t) {
19762
19762
  return bo(t, wM);
19763
19763
  }
19764
19764
  function L(...t) {
@@ -19821,7 +19821,7 @@ function Ei(t, e, n) {
19821
19821
  function _A(t, e, n = "en-US") {
19822
19822
  return st(t).tz(e).locale(n).format("dddd, MMMM D, YYYY");
19823
19823
  }
19824
- function Rn(t, e) {
19824
+ function Nn(t, e) {
19825
19825
  return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
19826
19826
  }
19827
19827
  function mr(t, e) {
@@ -20155,14 +20155,14 @@ class MM {
20155
20155
  }
20156
20156
  class LM extends MM {
20157
20157
  }
20158
- var jn = /* @__PURE__ */ ((t) => (t.Error = "error", t.Warning = "warning", t.Info = "info", t.Success = "success", t))(jn || {}), Bc;
20158
+ var mn = /* @__PURE__ */ ((t) => (t.Error = "error", t.Warning = "warning", t.Info = "info", t.Success = "success", t))(mn || {}), Bc;
20159
20159
  (function(t) {
20160
20160
  t.Error = "error", t.Warning = "warning", t.Info = "info", t.Success = "success";
20161
20161
  })(Bc || (Bc = {}));
20162
- var xt;
20162
+ var pt;
20163
20163
  (function(t) {
20164
20164
  t.Component = "component", t.Api = "api", t.Auth = "auth";
20165
- })(xt || (xt = {}));
20165
+ })(pt || (pt = {}));
20166
20166
  var Pc;
20167
20167
  (function(t) {
20168
20168
  t.endtime_not_in_future = "endtime_not_in_future", t.no_booking_info = "no_booking_info", t.no_timeslot_selected = "no_timeslot_selected", t.no_timezone_selected = "no_timezone_selected", t.no_booking_id = "no_booking_id", t.no_salt = "no_salt", t.invalid_start_time = "invalid_start_time", t.invalid_end_time = "invalid_end_time", t.invalid_timezone = "invalid_timezone", t.no_config_id = "no_config_id";
@@ -20178,20 +20178,20 @@ function ns(t) {
20178
20178
  return Qt(t, Error);
20179
20179
  }
20180
20180
  }
20181
- function Bn(t, e) {
20181
+ function Pn(t, e) {
20182
20182
  return wA.call(t) === `[object ${e}]`;
20183
20183
  }
20184
20184
  function SA(t) {
20185
- return Bn(t, "ErrorEvent");
20185
+ return Pn(t, "ErrorEvent");
20186
20186
  }
20187
20187
  function Dc(t) {
20188
- return Bn(t, "DOMError");
20188
+ return Pn(t, "DOMError");
20189
20189
  }
20190
20190
  function OM(t) {
20191
- return Bn(t, "DOMException");
20191
+ return Pn(t, "DOMException");
20192
20192
  }
20193
20193
  function At(t) {
20194
- return Bn(t, "String");
20194
+ return Pn(t, "String");
20195
20195
  }
20196
20196
  function is(t) {
20197
20197
  return typeof t == "object" && t !== null && "__sentry_template_string__" in t && "__sentry_template_values__" in t;
@@ -20199,8 +20199,8 @@ function is(t) {
20199
20199
  function rs(t) {
20200
20200
  return t === null || is(t) || typeof t != "object" && typeof t != "function";
20201
20201
  }
20202
- function _n(t) {
20203
- return Bn(t, "Object");
20202
+ function Cn(t) {
20203
+ return Pn(t, "Object");
20204
20204
  }
20205
20205
  function Or(t) {
20206
20206
  return typeof Event < "u" && Qt(t, Event);
@@ -20209,13 +20209,13 @@ function IM(t) {
20209
20209
  return typeof Element < "u" && Qt(t, Element);
20210
20210
  }
20211
20211
  function RM(t) {
20212
- return Bn(t, "RegExp");
20212
+ return Pn(t, "RegExp");
20213
20213
  }
20214
20214
  function Ir(t) {
20215
20215
  return !!(t && t.then && typeof t.then == "function");
20216
20216
  }
20217
20217
  function NM(t) {
20218
- return _n(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
20218
+ return Cn(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
20219
20219
  }
20220
20220
  function Qt(t, e) {
20221
20221
  try {
@@ -20227,7 +20227,7 @@ function Qt(t, e) {
20227
20227
  function xA(t) {
20228
20228
  return !!(typeof t == "object" && t !== null && (t.__isVue || t._isVue));
20229
20229
  }
20230
- function vn(t, e = 0) {
20230
+ function kn(t, e = 0) {
20231
20231
  return typeof t != "string" || e === 0 || t.length <= e ? t : `${t.slice(0, e)}...`;
20232
20232
  }
20233
20233
  function Mc(t, e) {
@@ -20320,7 +20320,7 @@ function Oc(t, e, n, i) {
20320
20320
  };
20321
20321
  }
20322
20322
  function jM(t, e) {
20323
- return t.map((n) => (n.value && (n.value = vn(n.value, e)), n));
20323
+ return t.map((n) => (n.value && (n.value = kn(n.value, e)), n));
20324
20324
  }
20325
20325
  const jt = "8.28.0", re = globalThis;
20326
20326
  function as(t, e, n) {
@@ -20575,11 +20575,11 @@ function QM(t, e = 40) {
20575
20575
  if (!i)
20576
20576
  return "[object has no keys]";
20577
20577
  if (i.length >= e)
20578
- return vn(i, e);
20578
+ return kn(i, e);
20579
20579
  for (let r = n.length; r > 0; r--) {
20580
20580
  const a = n.slice(0, r).join(", ");
20581
20581
  if (!(a.length > e))
20582
- return r === n.length ? a : vn(a, e);
20582
+ return r === n.length ? a : kn(a, e);
20583
20583
  }
20584
20584
  return "";
20585
20585
  }
@@ -20609,7 +20609,7 @@ function ko(t, e) {
20609
20609
  return t;
20610
20610
  }
20611
20611
  function eL(t) {
20612
- if (!_n(t))
20612
+ if (!Cn(t))
20613
20613
  return !1;
20614
20614
  try {
20615
20615
  const e = Object.getPrototypeOf(t).constructor.name;
@@ -21037,14 +21037,14 @@ function EL(t) {
21037
21037
  function _L(t) {
21038
21038
  return EL(JSON.stringify(t));
21039
21039
  }
21040
- var _t;
21040
+ var Ct;
21041
21041
  (function(t) {
21042
21042
  t[t.PENDING = 0] = "PENDING";
21043
21043
  const n = 1;
21044
21044
  t[t.RESOLVED = n] = "RESOLVED";
21045
21045
  const i = 2;
21046
21046
  t[t.REJECTED = i] = "REJECTED";
21047
- })(_t || (_t = {}));
21047
+ })(Ct || (Ct = {}));
21048
21048
  function nn(t) {
21049
21049
  return new Xe((e) => {
21050
21050
  e(t);
@@ -21057,7 +21057,7 @@ function vr(t) {
21057
21057
  }
21058
21058
  class Xe {
21059
21059
  constructor(e) {
21060
- Xe.prototype.__init.call(this), Xe.prototype.__init2.call(this), Xe.prototype.__init3.call(this), Xe.prototype.__init4.call(this), this._state = _t.PENDING, this._handlers = [];
21060
+ Xe.prototype.__init.call(this), Xe.prototype.__init2.call(this), Xe.prototype.__init3.call(this), Xe.prototype.__init4.call(this), this._state = Ct.PENDING, this._handlers = [];
21061
21061
  try {
21062
21062
  e(this._resolve, this._reject);
21063
21063
  } catch (n) {
@@ -21119,19 +21119,19 @@ class Xe {
21119
21119
  /** JSDoc */
21120
21120
  __init() {
21121
21121
  this._resolve = (e) => {
21122
- this._setResult(_t.RESOLVED, e);
21122
+ this._setResult(Ct.RESOLVED, e);
21123
21123
  };
21124
21124
  }
21125
21125
  /** JSDoc */
21126
21126
  __init2() {
21127
21127
  this._reject = (e) => {
21128
- this._setResult(_t.REJECTED, e);
21128
+ this._setResult(Ct.REJECTED, e);
21129
21129
  };
21130
21130
  }
21131
21131
  /** JSDoc */
21132
21132
  __init3() {
21133
21133
  this._setResult = (e, n) => {
21134
- if (this._state === _t.PENDING) {
21134
+ if (this._state === Ct.PENDING) {
21135
21135
  if (Ir(n)) {
21136
21136
  n.then(this._resolve, this._reject);
21137
21137
  return;
@@ -21143,11 +21143,11 @@ class Xe {
21143
21143
  /** JSDoc */
21144
21144
  __init4() {
21145
21145
  this._executeHandlers = () => {
21146
- if (this._state === _t.PENDING)
21146
+ if (this._state === Ct.PENDING)
21147
21147
  return;
21148
21148
  const e = this._handlers.slice();
21149
21149
  this._handlers = [], e.forEach((n) => {
21150
- n[0] || (this._state === _t.RESOLVED && n[1](this._value), this._state === _t.REJECTED && n[2](this._value), n[0] = !0);
21150
+ n[0] || (this._state === Ct.RESOLVED && n[1](this._value), this._state === Ct.REJECTED && n[2](this._value), n[0] = !0);
21151
21151
  });
21152
21152
  };
21153
21153
  }
@@ -21411,9 +21411,9 @@ function HL(t) {
21411
21411
  ignoreDuration: !1,
21412
21412
  toJSON: () => YL(n)
21413
21413
  };
21414
- return t && Cn(n, t), n;
21414
+ return t && wn(n, t), n;
21415
21415
  }
21416
- function Cn(t, e = {}) {
21416
+ function wn(t, e = {}) {
21417
21417
  if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || $t(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : Qe()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
21418
21418
  t.duration = void 0;
21419
21419
  else if (typeof e.duration == "number")
@@ -21426,7 +21426,7 @@ function Cn(t, e = {}) {
21426
21426
  }
21427
21427
  function GL(t, e) {
21428
21428
  let n = {};
21429
- t.status === "ok" && (n = { status: "exited" }), Cn(t, n);
21429
+ t.status === "ok" && (n = { status: "exited" }), wn(t, n);
21430
21430
  }
21431
21431
  function YL(t) {
21432
21432
  return We({
@@ -21539,7 +21539,7 @@ class cs {
21539
21539
  id: void 0,
21540
21540
  ip_address: void 0,
21541
21541
  username: void 0
21542
- }, this._session && Cn(this._session, { user: e }), this._notifyScopeListeners(), this;
21542
+ }, this._session && wn(this._session, { user: e }), this._notifyScopeListeners(), this;
21543
21543
  }
21544
21544
  /**
21545
21545
  * @inheritDoc
@@ -21631,7 +21631,7 @@ class cs {
21631
21631
  update(e) {
21632
21632
  if (!e)
21633
21633
  return this;
21634
- const n = typeof e == "function" ? e(this) : e, [i, r] = n instanceof rn ? [n.getScopeData(), n.getRequestSession()] : _n(n) ? [e, e.requestSession] : [], { tags: a, extra: o, user: s, contexts: u, level: c, fingerprint: f = [], propagationContext: h } = i || {};
21634
+ const n = typeof e == "function" ? e(this) : e, [i, r] = n instanceof rn ? [n.getScopeData(), n.getRequestSession()] : Cn(n) ? [e, e.requestSession] : [], { tags: a, extra: o, user: s, contexts: u, level: c, fingerprint: f = [], propagationContext: h } = i || {};
21635
21635
  return this._tags = { ...this._tags, ...a }, this._extra = { ...this._extra, ...o }, this._contexts = { ...this._contexts, ...u }, s && Object.keys(s).length && (this._user = s), c && (this._level = c), f.length && (this._fingerprint = f), h && (this._propagationContext = h), r && (this._requestSession = r), this;
21636
21636
  }
21637
21637
  /**
@@ -21841,19 +21841,19 @@ class ZL {
21841
21841
  return this._stack.length <= 1 ? !1 : !!this._stack.pop();
21842
21842
  }
21843
21843
  }
21844
- function wn() {
21844
+ function Sn() {
21845
21845
  const t = Fr(), e = ls(t);
21846
21846
  return e.stack = e.stack || new ZL(WL(), KL());
21847
21847
  }
21848
21848
  function JL(t) {
21849
- return wn().withScope(t);
21849
+ return Sn().withScope(t);
21850
21850
  }
21851
21851
  function XL(t, e) {
21852
- const n = wn();
21852
+ const n = Sn();
21853
21853
  return n.withScope(() => (n.getStackTop().scope = t, e(t)));
21854
21854
  }
21855
21855
  function Zc(t) {
21856
- return wn().withScope(() => t(wn().getIsolationScope()));
21856
+ return Sn().withScope(() => t(Sn().getIsolationScope()));
21857
21857
  }
21858
21858
  function QL() {
21859
21859
  return {
@@ -21861,8 +21861,8 @@ function QL() {
21861
21861
  withScope: JL,
21862
21862
  withSetScope: XL,
21863
21863
  withSetIsolationScope: (t, e) => Zc(e),
21864
- getCurrentScope: () => wn().getScope(),
21865
- getIsolationScope: () => wn().getIsolationScope()
21864
+ getCurrentScope: () => Sn().getScope(),
21865
+ getIsolationScope: () => Sn().getIsolationScope()
21866
21866
  };
21867
21867
  }
21868
21868
  function us(t) {
@@ -21873,7 +21873,7 @@ function et() {
21873
21873
  const t = Fr();
21874
21874
  return us(t).getCurrentScope();
21875
21875
  }
21876
- function Pn() {
21876
+ function Dn() {
21877
21877
  const t = Fr();
21878
21878
  return us(t).getIsolationScope();
21879
21879
  }
@@ -22048,9 +22048,9 @@ function Qc(t, e) {
22048
22048
  transactionName: d,
22049
22049
  span: g
22050
22050
  } = e;
22051
- Nn(t, "extra", n), Nn(t, "tags", i), Nn(t, "user", r), Nn(t, "contexts", a), Nn(t, "sdkProcessingMetadata", s), o && (t.level = o), d && (t.transactionName = d), g && (t.span = g), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), c.length && (t.fingerprint = [...t.fingerprint, ...c]), f.length && (t.eventProcessors = [...t.eventProcessors, ...f]), h.length && (t.attachments = [...t.attachments, ...h]), t.propagationContext = { ...t.propagationContext, ...l };
22051
+ Fn(t, "extra", n), Fn(t, "tags", i), Fn(t, "user", r), Fn(t, "contexts", a), Fn(t, "sdkProcessingMetadata", s), o && (t.level = o), d && (t.transactionName = d), g && (t.span = g), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), c.length && (t.fingerprint = [...t.fingerprint, ...c]), f.length && (t.eventProcessors = [...t.eventProcessors, ...f]), h.length && (t.attachments = [...t.attachments, ...h]), t.propagationContext = { ...t.propagationContext, ...l };
22052
22052
  }
22053
- function Nn(t, e, n) {
22053
+ function Fn(t, e, n) {
22054
22054
  if (n && Object.keys(n).length) {
22055
22055
  t[e] = { ...t[e] };
22056
22056
  for (const i in n)
@@ -22120,11 +22120,11 @@ function AO(t, e, n, i, r, a) {
22120
22120
  }
22121
22121
  function $O(t, e) {
22122
22122
  const { environment: n, release: i, dist: r, maxValueLength: a = 250 } = e;
22123
- "environment" in t || (t.environment = "environment" in e ? n : ds), t.release === void 0 && i !== void 0 && (t.release = i), t.dist === void 0 && r !== void 0 && (t.dist = r), t.message && (t.message = vn(t.message, a));
22123
+ "environment" in t || (t.environment = "environment" in e ? n : ds), t.release === void 0 && i !== void 0 && (t.release = i), t.dist === void 0 && r !== void 0 && (t.dist = r), t.message && (t.message = kn(t.message, a));
22124
22124
  const o = t.exception && t.exception.values && t.exception.values[0];
22125
- o && o.value && (o.value = vn(o.value, a));
22125
+ o && o.value && (o.value = kn(o.value, a));
22126
22126
  const s = t.request;
22127
- s && s.url && (s.url = vn(s.url, a));
22127
+ s && s.url && (s.url = kn(s.url, a));
22128
22128
  }
22129
22129
  const eu = /* @__PURE__ */ new WeakMap();
22130
22130
  function BO(t, e) {
@@ -22234,21 +22234,21 @@ function RO() {
22234
22234
  return !!Se();
22235
22235
  }
22236
22236
  function tu(t) {
22237
- const e = Se(), n = Pn(), i = et(), { release: r, environment: a = ds } = e && e.getOptions() || {}, { userAgent: o } = re.navigator || {}, s = HL({
22237
+ const e = Se(), n = Dn(), i = et(), { release: r, environment: a = ds } = e && e.getOptions() || {}, { userAgent: o } = re.navigator || {}, s = HL({
22238
22238
  release: r,
22239
22239
  environment: a,
22240
22240
  user: i.getUser() || n.getUser(),
22241
22241
  ...o && { userAgent: o },
22242
22242
  ...t
22243
22243
  }), u = n.getSession();
22244
- return u && u.status === "ok" && Cn(u, { status: "exited" }), GA(), n.setSession(s), i.setSession(s), s;
22244
+ return u && u.status === "ok" && wn(u, { status: "exited" }), GA(), n.setSession(s), i.setSession(s), s;
22245
22245
  }
22246
22246
  function GA() {
22247
- const t = Pn(), e = et(), n = e.getSession() || t.getSession();
22247
+ const t = Dn(), e = et(), n = e.getSession() || t.getSession();
22248
22248
  n && GL(n), YA(), t.setSession(), e.setSession();
22249
22249
  }
22250
22250
  function YA() {
22251
- const t = Pn(), e = et(), n = Se(), i = e.getSession() || t.getSession();
22251
+ const t = Dn(), e = et(), n = Se(), i = e.getSession() || t.getSession();
22252
22252
  i && n && n.captureSession(i);
22253
22253
  }
22254
22254
  function nu(t = !1) {
@@ -22400,7 +22400,7 @@ class YO {
22400
22400
  * @inheritDoc
22401
22401
  */
22402
22402
  captureSession(e) {
22403
- typeof e.release != "string" ? pe && W.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), Cn(e, { init: !1 }));
22403
+ typeof e.release != "string" ? pe && W.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), wn(e, { init: !1 }));
22404
22404
  }
22405
22405
  /**
22406
22406
  * @inheritDoc
@@ -22544,7 +22544,7 @@ class YO {
22544
22544
  }
22545
22545
  }
22546
22546
  const o = e.status === "ok";
22547
- (o && e.errors === 0 || o && i) && (Cn(e, {
22547
+ (o && e.errors === 0 || o && i) && (wn(e, {
22548
22548
  ...i && { status: "crashed" },
22549
22549
  errors: e.errors || Number(r || i)
22550
22550
  }), this.captureSession(e));
@@ -22585,7 +22585,7 @@ class YO {
22585
22585
  * @param currentScope A scope containing event metadata.
22586
22586
  * @returns A new event with more information.
22587
22587
  */
22588
- _prepareEvent(e, n, i, r = Pn()) {
22588
+ _prepareEvent(e, n, i, r = Dn()) {
22589
22589
  const a = this.getOptions(), o = Object.keys(this._integrations);
22590
22590
  return !n.integrations && o.length > 0 && (n.integrations = o), this.emit("preprocessEvent", e, n), e.type || r.setLastEventId(e.event_id || n.event_id), AO(a, e, n, i, this, r).then((s) => {
22591
22591
  if (s === null)
@@ -22745,7 +22745,7 @@ function VO(t, e) {
22745
22745
  if (Ir(t))
22746
22746
  return t.then(
22747
22747
  (i) => {
22748
- if (!_n(i) && i !== null)
22748
+ if (!Cn(i) && i !== null)
22749
22749
  throw new ht(n);
22750
22750
  return i;
22751
22751
  },
@@ -22753,7 +22753,7 @@ function VO(t, e) {
22753
22753
  throw new ht(`${e} rejected with ${i}`);
22754
22754
  }
22755
22755
  );
22756
- if (!_n(t) && t !== null)
22756
+ if (!Cn(t) && t !== null)
22757
22757
  throw new ht(n);
22758
22758
  return t;
22759
22759
  }
@@ -22858,7 +22858,7 @@ function QO(t, e, n = [e], i = "npm") {
22858
22858
  }
22859
22859
  const eI = 100;
22860
22860
  function an(t, e) {
22861
- const n = Se(), i = Pn();
22861
+ const n = Se(), i = Dn();
22862
22862
  if (!n) return;
22863
22863
  const { beforeBreadcrumb: r = null, maxBreadcrumbs: a = eI } = n.getOptions();
22864
22864
  if (a <= 0) return;
@@ -23092,7 +23092,7 @@ function CI() {
23092
23092
  $o--;
23093
23093
  });
23094
23094
  }
23095
- function Sn(t, e = {}, n) {
23095
+ function xn(t, e = {}, n) {
23096
23096
  if (typeof t != "function")
23097
23097
  return t;
23098
23098
  try {
@@ -23107,7 +23107,7 @@ function Sn(t, e = {}, n) {
23107
23107
  const i = function() {
23108
23108
  const r = Array.prototype.slice.call(arguments);
23109
23109
  try {
23110
- const a = r.map((o) => Sn(o, e));
23110
+ const a = r.map((o) => xn(o, e));
23111
23111
  return t.apply(this, a);
23112
23112
  } catch (a) {
23113
23113
  throw CI(), eO((o) => {
@@ -23218,7 +23218,7 @@ function gs(t, e, n, i, r) {
23218
23218
  }
23219
23219
  return "code" in o && (a.tags = { ...a.tags, "DOMException.code": `${o.code}` }), a;
23220
23220
  }
23221
- return ns(e) ? La(t, e) : _n(e) || Or(e) ? (a = wI(t, e, n, r), Xn(a, {
23221
+ return ns(e) ? La(t, e) : Cn(e) || Or(e) ? (a = wI(t, e, n, r), Xn(a, {
23222
23222
  synthetic: !0
23223
23223
  }), a) : (a = Bo(t, e, n, i), Co(a, `${e}`), Xn(a, {
23224
23224
  synthetic: !0
@@ -23840,7 +23840,7 @@ const kR = [
23840
23840
  function hu(t) {
23841
23841
  return function(...e) {
23842
23842
  const n = e[0];
23843
- return e[0] = Sn(n, {
23843
+ return e[0] = xn(n, {
23844
23844
  mechanism: {
23845
23845
  data: { function: Ht(t) },
23846
23846
  handled: !1,
@@ -23852,7 +23852,7 @@ function hu(t) {
23852
23852
  function CR(t) {
23853
23853
  return function(e) {
23854
23854
  return t.apply(this, [
23855
- Sn(e, {
23855
+ xn(e, {
23856
23856
  mechanism: {
23857
23857
  data: {
23858
23858
  function: "requestAnimationFrame",
@@ -23880,7 +23880,7 @@ function wR(t) {
23880
23880
  type: "instrument"
23881
23881
  }
23882
23882
  }, s = ss(a);
23883
- return s && (o.mechanism.data.handler = Ht(s)), Sn(a, o);
23883
+ return s && (o.mechanism.data.handler = Ht(s)), xn(a, o);
23884
23884
  });
23885
23885
  }), t.apply(this, e);
23886
23886
  };
@@ -23890,7 +23890,7 @@ function SR(t) {
23890
23890
  !n || !n.hasOwnProperty || !n.hasOwnProperty("addEventListener") || (Ve(n, "addEventListener", function(i) {
23891
23891
  return function(r, a, o) {
23892
23892
  try {
23893
- typeof a.handleEvent == "function" && (a.handleEvent = Sn(a.handleEvent, {
23893
+ typeof a.handleEvent == "function" && (a.handleEvent = xn(a.handleEvent, {
23894
23894
  mechanism: {
23895
23895
  data: {
23896
23896
  function: "handleEvent",
@@ -23906,7 +23906,7 @@ function SR(t) {
23906
23906
  return i.apply(this, [
23907
23907
  r,
23908
23908
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
23909
- Sn(a, {
23909
+ xn(a, {
23910
23910
  mechanism: {
23911
23911
  data: {
23912
23912
  function: "addEventListener",
@@ -24166,7 +24166,7 @@ function WR(t) {
24166
24166
  const e = Se(), n = e && e.getOptions(), i = n && n.cdnBaseUrl || "https://browser.sentry-cdn.com";
24167
24167
  return new URL(`/${jt}/${t}.min.js`, i).toString();
24168
24168
  }
24169
- const pt = re, fe = pt.document, Un = pt.navigator, i$ = "Report a Bug", KR = "Cancel", ZR = "Send Bug Report", JR = "Confirm", XR = "Report a Bug", QR = "your.email@example.org", eN = "Email", tN = "What's the bug? What did you expect?", nN = "Description", iN = "Your Name", rN = "Name", aN = "Thank you for your report!", oN = "(required)", sN = "Add a screenshot", lN = "Remove screenshot", cN = "widget", uN = "api", dN = 5e3, fN = (t, e = { includeReplay: !0 }) => {
24169
+ const mt = re, fe = mt.document, Un = mt.navigator, i$ = "Report a Bug", KR = "Cancel", ZR = "Send Bug Report", JR = "Confirm", XR = "Report a Bug", QR = "your.email@example.org", eN = "Email", tN = "What's the bug? What did you expect?", nN = "Description", iN = "Your Name", rN = "Name", aN = "Thank you for your report!", oN = "(required)", sN = "Add a screenshot", lN = "Remove screenshot", cN = "widget", uN = "api", dN = 5e3, fN = (t, e = { includeReplay: !0 }) => {
24170
24170
  if (!t.message)
24171
24171
  throw new Error("Unable to submit feedback with empty message");
24172
24172
  const n = Se();
@@ -24292,7 +24292,7 @@ function Ge(t, e) {
24292
24292
  }
24293
24293
  const gn = 20, pN = "http://www.w3.org/2000/svg";
24294
24294
  function mN() {
24295
- const t = (s) => pt.document.createElementNS(pN, s), e = Ge(t("svg"), {
24295
+ const t = (s) => mt.document.createElementNS(pN, s), e = Ge(t("svg"), {
24296
24296
  width: `${gn}`,
24297
24297
  height: `${gn}`,
24298
24298
  viewBox: `0 0 ${gn} ${gn}`,
@@ -24554,7 +24554,7 @@ const kN = ({
24554
24554
  };
24555
24555
  le.addEventListener("click", ge);
24556
24556
  const ne = () => {
24557
- he = he.filter((Mn) => Mn !== ne), ie && ie.removeFromDom(), ie = null, le.removeEventListener("click", ge);
24557
+ he = he.filter((Ln) => Ln !== ne), ie && ie.removeFromDom(), ie = null, le.removeEventListener("click", ge);
24558
24558
  };
24559
24559
  return he.push(ne), ne;
24560
24560
  }, R = (F = {}) => {
@@ -24636,14 +24636,14 @@ function ci(t) {
24636
24636
  function Xi(t, e) {
24637
24637
  this.props = t, this.context = e;
24638
24638
  }
24639
- function xn(t, e) {
24640
- if (e == null) return t.__ ? xn(t.__, t.__i + 1) : null;
24639
+ function An(t, e) {
24640
+ if (e == null) return t.__ ? An(t.__, t.__i + 1) : null;
24641
24641
  for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
24642
- return typeof t.type == "function" ? xn(t) : null;
24642
+ return typeof t.type == "function" ? An(t) : null;
24643
24643
  }
24644
24644
  function EN(t, e, n) {
24645
24645
  var i, r = t.__v, a = r.__e, o = t.__P;
24646
- if (o) return (i = Ft({}, r)).__v = r.__v + 1, ye.vnode && ye.vnode(i), bs(o, i, r, t.__n, o.ownerSVGElement !== void 0, 32 & r.__u ? [a] : null, e, a ?? xn(r), !!(32 & r.__u), n), i.__.__k[i.__i] = i, i.__d = void 0, i.__e != a && l$(i), i;
24646
+ if (o) return (i = Ft({}, r)).__v = r.__v + 1, ye.vnode && ye.vnode(i), bs(o, i, r, t.__n, o.ownerSVGElement !== void 0, 32 & r.__u ? [a] : null, e, a ?? An(r), !!(32 & r.__u), n), i.__.__k[i.__i] = i, i.__d = void 0, i.__e != a && l$(i), i;
24647
24647
  }
24648
24648
  function l$(t) {
24649
24649
  var e, n;
@@ -24670,8 +24670,8 @@ function c$(t, e, n, i, r, a, o, s, u, c, f) {
24670
24670
  }
24671
24671
  function _N(t, e, n) {
24672
24672
  var i, r, a, o, s, u = e.length, c = n.length, f = c, h = 0;
24673
- for (t.__k = [], i = 0; i < u; i++) (r = t.__k[i] = (r = e[i]) == null || typeof r == "boolean" || typeof r == "function" ? null : typeof r == "string" || typeof r == "number" || typeof r == "bigint" || r.constructor == String ? Ji(null, r, null, null, r) : ms(r) ? Ji(ci, { children: r }, null, null, null) : r.constructor === void 0 && r.__b > 0 ? Ji(r.type, r.props, r.key, r.ref ? r.ref : null, r.__v) : r) != null ? (r.__ = t, r.__b = t.__b + 1, s = CN(r, n, o = i + h, f), r.__i = s, a = null, s !== -1 && (f--, (a = n[s]) && (a.__u |= 131072)), a == null || a.__v === null ? (s == -1 && h--, typeof r.type != "function" && (r.__u |= 65536)) : s !== o && (s === o + 1 ? h++ : s > o ? f > u - o ? h += s - o : h-- : h = s < o && s == o - 1 ? s - o : 0, s !== i + h && (r.__u |= 65536))) : (a = n[i]) && a.key == null && a.__e && (a.__e == t.__d && (t.__d = xn(a)), Io(a, a, !1), n[i] = null, f--);
24674
- if (f) for (i = 0; i < c; i++) (a = n[i]) != null && !(131072 & a.__u) && (a.__e == t.__d && (t.__d = xn(a)), Io(a, a));
24673
+ for (t.__k = [], i = 0; i < u; i++) (r = t.__k[i] = (r = e[i]) == null || typeof r == "boolean" || typeof r == "function" ? null : typeof r == "string" || typeof r == "number" || typeof r == "bigint" || r.constructor == String ? Ji(null, r, null, null, r) : ms(r) ? Ji(ci, { children: r }, null, null, null) : r.constructor === void 0 && r.__b > 0 ? Ji(r.type, r.props, r.key, r.ref ? r.ref : null, r.__v) : r) != null ? (r.__ = t, r.__b = t.__b + 1, s = CN(r, n, o = i + h, f), r.__i = s, a = null, s !== -1 && (f--, (a = n[s]) && (a.__u |= 131072)), a == null || a.__v === null ? (s == -1 && h--, typeof r.type != "function" && (r.__u |= 65536)) : s !== o && (s === o + 1 ? h++ : s > o ? f > u - o ? h += s - o : h-- : h = s < o && s == o - 1 ? s - o : 0, s !== i + h && (r.__u |= 65536))) : (a = n[i]) && a.key == null && a.__e && (a.__e == t.__d && (t.__d = An(a)), Io(a, a, !1), n[i] = null, f--);
24674
+ if (f) for (i = 0; i < c; i++) (a = n[i]) != null && !(131072 & a.__u) && (a.__e == t.__d && (t.__d = An(a)), Io(a, a));
24675
24675
  }
24676
24676
  function u$(t, e, n) {
24677
24677
  var i, r;
@@ -24794,7 +24794,7 @@ function wN(t, e, n, i, r, a, o, s, u) {
24794
24794
  for (c in m) d = m[c], c == "children" || (c == "dangerouslySetInnerHTML" ? h = d : c === "key" || c in p || Bi(t, c, null, d, r));
24795
24795
  for (c in p) d = p[c], c == "children" ? l = d : c == "dangerouslySetInnerHTML" ? f = d : c == "value" ? g = d : c == "checked" ? b = d : c === "key" || s && typeof d != "function" || m[c] === d || Bi(t, c, d, m[c], r);
24796
24796
  if (f) s || h && (f.__html === h.__html || f.__html === t.innerHTML) || (t.innerHTML = f.__html), e.__k = [];
24797
- else if (h && (t.innerHTML = ""), c$(t, ms(l) ? l : [l], e, n, i, r && y !== "foreignObject", a, o, a ? a[0] : n.__k && xn(n, 0), s, u), a != null) for (c = a.length; c--; ) a[c] != null && s$(a[c]);
24797
+ else if (h && (t.innerHTML = ""), c$(t, ms(l) ? l : [l], e, n, i, r && y !== "foreignObject", a, o, a ? a[0] : n.__k && An(n, 0), s, u), a != null) for (c = a.length; c--; ) a[c] != null && s$(a[c]);
24798
24798
  s || (c = "value", g !== void 0 && (g !== t[c] || y === "progress" && !g || y === "option" && g !== m[c]) && Bi(t, c, g, m[c], !1), c = "checked", b !== void 0 && b !== t[c] && Bi(t, c, b, m[c], !1));
24799
24799
  }
24800
24800
  return t;
@@ -24841,14 +24841,14 @@ zr = ps.slice, ye = { __e: function(t, e, n, i) {
24841
24841
  }, Xi.prototype.render = ci, Zt = [], o$ = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Lo = function(t, e) {
24842
24842
  return t.__v.__b - e.__v.__b;
24843
24843
  }, Er.__r = 0;
24844
- var Bt, be, Oa, _u, An = 0, d$ = [], Qi = [], _e = ye, Cu = _e.__b, wu = _e.__r, Su = _e.diffed, xu = _e.__c, Au = _e.unmount, $u = _e.__;
24844
+ var Bt, be, Oa, _u, $n = 0, d$ = [], Qi = [], _e = ye, Cu = _e.__b, wu = _e.__r, Su = _e.diffed, xu = _e.__c, Au = _e.unmount, $u = _e.__;
24845
24845
  function cn(t, e) {
24846
- _e.__h && _e.__h(be, t, An || e), An = 0;
24846
+ _e.__h && _e.__h(be, t, $n || e), $n = 0;
24847
24847
  var n = be.__H || (be.__H = { __: [], __h: [] });
24848
24848
  return t >= n.__.length && n.__.push({ __V: Qi }), n.__[t];
24849
24849
  }
24850
- function kn(t) {
24851
- return An = 1, f$(g$, t);
24850
+ function Tn(t) {
24851
+ return $n = 1, f$(g$, t);
24852
24852
  }
24853
24853
  function f$(t, e, n) {
24854
24854
  var i = cn(Bt++, 2);
@@ -24893,12 +24893,12 @@ function h$(t, e) {
24893
24893
  !_e.__s && vs(n.__H, e) && (n.__ = t, n.i = e, be.__h.push(n));
24894
24894
  }
24895
24895
  function $N(t) {
24896
- return An = 5, ui(function() {
24896
+ return $n = 5, ui(function() {
24897
24897
  return { current: t };
24898
24898
  }, []);
24899
24899
  }
24900
24900
  function BN(t, e, n) {
24901
- An = 6, h$(function() {
24901
+ $n = 6, h$(function() {
24902
24902
  return typeof t == "function" ? (t(e()), function() {
24903
24903
  return t(null);
24904
24904
  }) : t ? (t.current = e(), function() {
@@ -24910,8 +24910,8 @@ function ui(t, e) {
24910
24910
  var n = cn(Bt++, 7);
24911
24911
  return vs(n.__H, e) ? (n.__V = t(), n.i = e, n.__h = t, n.__V) : n.__;
24912
24912
  }
24913
- function Tn(t, e) {
24914
- return An = 8, ui(function() {
24913
+ function En(t, e) {
24914
+ return $n = 8, ui(function() {
24915
24915
  return t;
24916
24916
  }, e);
24917
24917
  }
@@ -24923,7 +24923,7 @@ function DN(t, e) {
24923
24923
  _e.useDebugValue && _e.useDebugValue(e ? e(t) : t);
24924
24924
  }
24925
24925
  function MN(t) {
24926
- var e = cn(Bt++, 10), n = kn();
24926
+ var e = cn(Bt++, 10), n = Tn();
24927
24927
  return e.__ = t, be.componentDidCatch || (be.componentDidCatch = function(i, r) {
24928
24928
  e.__ && e.__(i, r), n[1](i);
24929
24929
  }), [n[0], function() {
@@ -25010,7 +25010,7 @@ function g$(t, e) {
25010
25010
  }
25011
25011
  const RN = {
25012
25012
  __proto__: null,
25013
- useCallback: Tn,
25013
+ useCallback: En,
25014
25014
  useContext: PN,
25015
25015
  useDebugValue: DN,
25016
25016
  useEffect: AN,
@@ -25021,7 +25021,7 @@ const RN = {
25021
25021
  useMemo: ui,
25022
25022
  useReducer: f$,
25023
25023
  useRef: $N,
25024
- useState: kn
25024
+ useState: Tn
25025
25025
  }, NN = "http://www.w3.org/2000/svg";
25026
25026
  function FN() {
25027
25027
  const t = (i) => fe.createElementNS(NN, i), e = Ge(t("svg"), {
@@ -25093,9 +25093,9 @@ function qN({
25093
25093
  namePlaceholder: k,
25094
25094
  submitButtonLabel: _,
25095
25095
  isRequiredLabel: C
25096
- } = t, [P, $] = kn(null), [B, S] = kn(!1), A = c && c.input, [D, x] = kn(null), w = Tn((N) => {
25096
+ } = t, [P, $] = Tn(null), [B, S] = Tn(!1), A = c && c.input, [D, x] = Tn(null), w = En((N) => {
25097
25097
  x(N), S(!1);
25098
- }, []), O = Tn(
25098
+ }, []), O = En(
25099
25099
  (N) => {
25100
25100
  const j = jN(N, {
25101
25101
  emailLabel: g,
@@ -25107,7 +25107,7 @@ function qN({
25107
25107
  return j.length > 0 ? $(`Please enter in the following required fields: ${j.join(", ")}`) : $(null), j.length === 0;
25108
25108
  },
25109
25109
  [g, m, p, y, T]
25110
- ), I = Tn(
25110
+ ), I = En(
25111
25111
  async (N) => {
25112
25112
  try {
25113
25113
  if (N.preventDefault(), !(N.target instanceof HTMLFormElement))
@@ -25257,7 +25257,7 @@ function Ra({
25257
25257
  }
25258
25258
  const Pi = 16, Du = 17, UN = "http://www.w3.org/2000/svg";
25259
25259
  function HN() {
25260
- const t = (u) => pt.document.createElementNS(UN, u), e = Ge(t("svg"), {
25260
+ const t = (u) => mt.document.createElementNS(UN, u), e = Ge(t("svg"), {
25261
25261
  width: `${Pi}`,
25262
25262
  height: `${Du}`,
25263
25263
  viewBox: `0 0 ${Pi} ${Du}`,
@@ -25282,11 +25282,11 @@ function HN() {
25282
25282
  });
25283
25283
  return o.appendChild(s), a.appendChild(o), e.appendChild(a).appendChild(o).appendChild(s), e;
25284
25284
  }
25285
- const Tt = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";
25285
+ const Et = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";
25286
25286
  function GN({ open: t, onFormSubmitted: e, ...n }) {
25287
- const i = n.options, r = ui(() => ({ __html: HN().outerHTML }), []), [a, o] = kn(null), s = Tn(() => {
25287
+ const i = n.options, r = ui(() => ({ __html: HN().outerHTML }), []), [a, o] = Tn(null), s = En(() => {
25288
25288
  a && (clearTimeout(a), o(null)), e();
25289
- }, [a]), u = Tn(
25289
+ }, [a]), u = En(
25290
25290
  (c) => {
25291
25291
  n.onSubmitSuccess(c), o(
25292
25292
  setTimeout(() => {
@@ -25298,22 +25298,22 @@ function GN({ open: t, onFormSubmitted: e, ...n }) {
25298
25298
  );
25299
25299
  return te(
25300
25300
  ci,
25301
- { __self: this, __source: { fileName: Tt, lineNumber: 48 } },
25301
+ { __self: this, __source: { fileName: Et, lineNumber: 48 } },
25302
25302
  a ? te(
25303
25303
  "div",
25304
- { class: "success__position", onClick: s, __self: this, __source: { fileName: Tt, lineNumber: 50 } },
25304
+ { class: "success__position", onClick: s, __self: this, __source: { fileName: Et, lineNumber: 50 } },
25305
25305
  te(
25306
25306
  "div",
25307
- { class: "success__content", __self: this, __source: { fileName: Tt, lineNumber: 51 } },
25307
+ { class: "success__content", __self: this, __source: { fileName: Et, lineNumber: 51 } },
25308
25308
  i.successMessageText,
25309
- te("span", { class: "success__icon", dangerouslySetInnerHTML: r, __self: this, __source: { fileName: Tt, lineNumber: 53 } })
25309
+ te("span", { class: "success__icon", dangerouslySetInnerHTML: r, __self: this, __source: { fileName: Et, lineNumber: 53 } })
25310
25310
  )
25311
25311
  ) : te(
25312
25312
  "dialog",
25313
- { class: "dialog", onClick: i.onFormClose, open: t, __self: this, __source: { fileName: Tt, lineNumber: 57 } },
25313
+ { class: "dialog", onClick: i.onFormClose, open: t, __self: this, __source: { fileName: Et, lineNumber: 57 } },
25314
25314
  te(
25315
25315
  "div",
25316
- { class: "dialog__position", __self: this, __source: { fileName: Tt, lineNumber: 58 } },
25316
+ { class: "dialog__position", __self: this, __source: { fileName: Et, lineNumber: 58 } },
25317
25317
  te(
25318
25318
  "div",
25319
25319
  {
@@ -25322,10 +25322,10 @@ function GN({ open: t, onFormSubmitted: e, ...n }) {
25322
25322
  c.stopPropagation();
25323
25323
  },
25324
25324
  __self: this,
25325
- __source: { fileName: Tt, lineNumber: 59 }
25325
+ __source: { fileName: Et, lineNumber: 59 }
25326
25326
  },
25327
- te(zN, { options: i, __self: this, __source: { fileName: Tt, lineNumber: 66 } }),
25328
- te(qN, { ...n, onSubmitSuccess: u, __self: this, __source: { fileName: Tt, lineNumber: 67 } })
25327
+ te(zN, { options: i, __self: this, __source: { fileName: Et, lineNumber: 66 } }),
25328
+ te(qN, { ...n, onSubmitSuccess: u, __self: this, __source: { fileName: Et, lineNumber: 67 } })
25329
25329
  )
25330
25330
  )
25331
25331
  )
@@ -25608,7 +25608,7 @@ ${ZN}
25608
25608
  }
25609
25609
  const XN = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx";
25610
25610
  function QN() {
25611
- const t = et().getUser(), e = Pn().getUser(), n = jA().getUser();
25611
+ const t = et().getUser(), e = Dn().getUser(), n = jA().getUser();
25612
25612
  return t && Object.keys(t).length ? t : e && Object.keys(e).length ? e : n;
25613
25613
  }
25614
25614
  const eF = () => ({
@@ -25786,8 +25786,8 @@ function rF({ hooks: t }) {
25786
25786
  n();
25787
25787
  const s = await Un.mediaDevices.getDisplayMedia({
25788
25788
  video: {
25789
- width: pt.innerWidth * pt.devicePixelRatio,
25790
- height: pt.innerHeight * pt.devicePixelRatio
25789
+ width: mt.innerWidth * mt.devicePixelRatio,
25790
+ height: mt.innerHeight * mt.devicePixelRatio
25791
25791
  },
25792
25792
  audio: !1,
25793
25793
  // @ts-expect-error experimental flags: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab
@@ -25805,7 +25805,7 @@ function rF({ hooks: t }) {
25805
25805
  }, []);
25806
25806
  };
25807
25807
  }
25808
- const Ze = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx", Hn = 30, Et = 3, Lt = Hn + Et, je = pt.devicePixelRatio, Fn = (t) => ({
25808
+ const Ze = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx", Hn = 30, _t = 3, Lt = Hn + _t, je = mt.devicePixelRatio, zn = (t) => ({
25809
25809
  x: Math.min(t.startX, t.endX),
25810
25810
  y: Math.min(t.startY, t.endY),
25811
25811
  width: Math.abs(t.startX - t.endX),
@@ -25828,10 +25828,10 @@ function aF({
25828
25828
  return function({ onError: s }) {
25829
25829
  const u = e.useMemo(() => ({ __html: iF(r.styleNonce).innerText }), []), c = nF({ h: t }), f = e.useRef(null), h = e.useRef(null), l = e.useRef(null), [d, g] = e.useState({ startX: 0, startY: 0, endX: 0, endY: 0 }), [b, m] = e.useState(!1), [p, y] = e.useState(!1);
25830
25830
  e.useEffect(() => {
25831
- pt.addEventListener("resize", E, !1);
25831
+ mt.addEventListener("resize", E, !1);
25832
25832
  }, []);
25833
25833
  function E() {
25834
- const $ = l.current, B = Fn(Na(n));
25834
+ const $ = l.current, B = zn(Na(n));
25835
25835
  if ($) {
25836
25836
  $.width = B.width * je, $.height = B.height * je, $.style.width = `${B.width}px`, $.style.height = `${B.height}px`;
25837
25837
  const A = $.getContext("2d");
@@ -25847,7 +25847,7 @@ function aF({
25847
25847
  const B = $.getContext("2d");
25848
25848
  if (!B)
25849
25849
  return;
25850
- const S = Fn(Na(n)), A = Fn(d);
25850
+ const S = zn(Na(n)), A = zn(d);
25851
25851
  B.clearRect(0, 0, S.width, S.height), B.fillStyle = "rgba(0, 0, 0, 0.5)", B.fillRect(0, 0, S.width, S.height), B.clearRect(A.x, A.y, A.width, A.height), B.strokeStyle = "#ffffff", B.lineWidth = 3, B.strokeRect(A.x + 1, A.y + 1, A.width - 2, A.height - 2), B.strokeStyle = "#000000", B.lineWidth = 1, B.strokeRect(A.x + 3, A.y + 3, A.width - 6, A.height - 6);
25852
25852
  }, [d]);
25853
25853
  function T($, B) {
@@ -25920,7 +25920,7 @@ function aF({
25920
25920
  fe.addEventListener("mousemove", B), fe.addEventListener("mouseup", S);
25921
25921
  }
25922
25922
  function P() {
25923
- const $ = fe.createElement("canvas"), B = Fn(Na(n)), S = Fn(d);
25923
+ const $ = fe.createElement("canvas"), B = zn(Na(n)), S = zn(d);
25924
25924
  $.width = S.width * je, $.height = S.height * je;
25925
25925
  const A = $.getContext("2d");
25926
25926
  A && n && A.drawImage(
@@ -25981,8 +25981,8 @@ function aF({
25981
25981
  t(
25982
25982
  c,
25983
25983
  {
25984
- left: d.startX - Et,
25985
- top: d.startY - Et,
25984
+ left: d.startX - _t,
25985
+ top: d.startY - _t,
25986
25986
  onGrabButton: T,
25987
25987
  corner: "top-left",
25988
25988
  __self: this,
@@ -25992,8 +25992,8 @@ function aF({
25992
25992
  t(
25993
25993
  c,
25994
25994
  {
25995
- left: d.endX - Hn + Et,
25996
- top: d.startY - Et,
25995
+ left: d.endX - Hn + _t,
25996
+ top: d.startY - _t,
25997
25997
  onGrabButton: T,
25998
25998
  corner: "top-right",
25999
25999
  __self: this,
@@ -26003,8 +26003,8 @@ function aF({
26003
26003
  t(
26004
26004
  c,
26005
26005
  {
26006
- left: d.startX - Et,
26007
- top: d.endY - Hn + Et,
26006
+ left: d.startX - _t,
26007
+ top: d.endY - Hn + _t,
26008
26008
  onGrabButton: T,
26009
26009
  corner: "bottom-left",
26010
26010
  __self: this,
@@ -26014,8 +26014,8 @@ function aF({
26014
26014
  t(
26015
26015
  c,
26016
26016
  {
26017
- left: d.endX - Hn + Et,
26018
- top: d.endY - Hn + Et,
26017
+ left: d.endX - Hn + _t,
26018
+ top: d.endY - Hn + _t,
26019
26019
  onGrabButton: T,
26020
26020
  corner: "bottom-right",
26021
26021
  __self: this,
@@ -26103,7 +26103,7 @@ const oF = () => ({
26103
26103
  lazyLoadIntegration: VR,
26104
26104
  getModalIntegration: () => eF,
26105
26105
  getScreenshotIntegration: () => oF
26106
- }), No = "2.5.16", lF = (t, e, n) => {
26106
+ }), No = "2.5.18", lF = (t, e, n) => {
26107
26107
  const i = t.get(e);
26108
26108
  i ? i.includes(n) || i.push(n) : t.set(e, [n]);
26109
26109
  }, cF = (t, e) => {
@@ -26244,7 +26244,7 @@ const mF = ".wave{display:flex;align-items:center;justify-content:center}.dot{wi
26244
26244
  width: [1],
26245
26245
  height: [1]
26246
26246
  }]);
26247
- function bt() {
26247
+ function yt() {
26248
26248
  if (typeof customElements > "u")
26249
26249
  return;
26250
26250
  ["loading-icon"].forEach((e) => {
@@ -26287,7 +26287,7 @@ function Mt() {
26287
26287
  customElements.get(e) || customElements.define(e, vF);
26288
26288
  break;
26289
26289
  case "loading-icon":
26290
- customElements.get(e) || bt();
26290
+ customElements.get(e) || yt();
26291
26291
  break;
26292
26292
  }
26293
26293
  });
@@ -26482,7 +26482,7 @@ const BF = ".sc-chevron-icon-h{display:flex}", PF = ee(class extends Q {
26482
26482
  width: [1],
26483
26483
  height: [1]
26484
26484
  }]);
26485
- function Dn() {
26485
+ function Mn() {
26486
26486
  if (typeof customElements > "u")
26487
26487
  return;
26488
26488
  ["chevron-icon"].forEach((e) => {
@@ -26629,7 +26629,7 @@ const UF = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
26629
26629
  super(), this.__registerHost(), this.__attachShadow(), this.nylasFormInputChanged = G(this, "nylasFormInputChanged", 7), this.nylasFormInputFocused = G(this, "nylasFormInputFocused", 7), this.nylasFormInputBlurred = G(this, "nylasFormInputBlurred", 7), this.name = "input", this.label = "", this.type = "text", this.placeholder = GF[this.type], this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.maxLength = 255, this.patternError = "", this.requiredError = "", this.error = "";
26630
26630
  }
26631
26631
  handleDefaultValueChange(e) {
26632
- this.value = St(e), this.value && this.validatePattern(this.value);
26632
+ this.value = xt(e), this.value && this.validatePattern(this.value);
26633
26633
  }
26634
26634
  themeConfigChangedHandler(e, n) {
26635
26635
  e !== n && this.applyThemeConfig(e);
@@ -26647,7 +26647,7 @@ const UF = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
26647
26647
  componentWillLoad() {
26648
26648
  }
26649
26649
  componentDidLoad() {
26650
- this.value = St(this.defaultValue || ""), this.type !== "text" && !this.pattern && (this.pattern = HF[this.type]), this.value && this.validatePattern(this.value);
26650
+ this.value = xt(this.defaultValue || ""), this.type !== "text" && !this.pattern && (this.pattern = HF[this.type]), this.value && this.validatePattern(this.value);
26651
26651
  }
26652
26652
  handleBookingFormSubmitted(e) {
26653
26653
  this.validatePattern(this.value), this.error && e.preventDefault();
@@ -26663,7 +26663,7 @@ const UF = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
26663
26663
  const i = parseFloat(n);
26664
26664
  this.maxValue !== void 0 && i > this.maxValue || this.minValue !== void 0 && i < this.minValue ? this.minValue === void 0 ? this.error = `Value must be less than ${this.maxValue}` : this.maxValue === void 0 ? this.error = `Value must be greater than ${this.minValue}` : this.error = `Value must be between ${this.minValue} and ${this.maxValue}` : isNaN(i) && (this.error = this.patternError || "Invalid format.");
26665
26665
  }
26666
- this.value = St(n), this.nylasFormInputChanged.emit({
26666
+ this.value = xt(n), this.nylasFormInputChanged.emit({
26667
26667
  value: this.value,
26668
26668
  name: this.name,
26669
26669
  label: this.label,
@@ -26913,7 +26913,7 @@ function T$() {
26913
26913
  customElements.get(e) || customElements.define(e, WF);
26914
26914
  break;
26915
26915
  case "chevron-icon":
26916
- customElements.get(e) || Dn();
26916
+ customElements.get(e) || Mn();
26917
26917
  break;
26918
26918
  case "close-icon":
26919
26919
  customElements.get(e) || di();
@@ -27241,7 +27241,7 @@ function QF() {
27241
27241
  customElements.get(e) || qr();
27242
27242
  break;
27243
27243
  case "loading-icon":
27244
- customElements.get(e) || bt();
27244
+ customElements.get(e) || yt();
27245
27245
  break;
27246
27246
  }
27247
27247
  });
@@ -27253,7 +27253,7 @@ const ez = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
27253
27253
  super(), this.__registerHost(), this.__attachShadow(), this.nylasFormInputChanged = G(this, "nylasFormInputChanged", 7), this.nylasFormInputFocused = G(this, "nylasFormInputFocused", 7), this.nylasFormInputBlurred = G(this, "nylasFormInputBlurred", 7), this.name = "input", this.label = "", this.placeholder = tz.date, this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.maxLength = 255, this.patternError = "", this.requiredError = "", this.errorMessage = "", this.hasError = !1, this.error = "", this.isDateValid = !0;
27254
27254
  }
27255
27255
  handleDefaultValueChange(e) {
27256
- this.value = St(e), this.value && this.validatePattern(this.value, !0);
27256
+ this.value = xt(e), this.value && this.validatePattern(this.value, !0);
27257
27257
  }
27258
27258
  themeConfigChangedHandler(e, n) {
27259
27259
  e !== n && this.applyThemeConfig(e);
@@ -27269,7 +27269,7 @@ const ez = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
27269
27269
  });
27270
27270
  }
27271
27271
  componentDidLoad() {
27272
- this.value = St(this.defaultValue || ""), this.value && this.validatePattern(this.value, !0);
27272
+ this.value = xt(this.defaultValue || ""), this.value && this.validatePattern(this.value, !0);
27273
27273
  }
27274
27274
  handleBookingFormSubmitted(e) {
27275
27275
  this.validatePattern(this.value), this.error && e.preventDefault();
@@ -27280,7 +27280,7 @@ const ez = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
27280
27280
  handleInput(e) {
27281
27281
  this.error = "";
27282
27282
  const n = e.target;
27283
- this.value = St(n.value), this.isDateValid = n.validity.valid, this.nylasFormInputChanged.emit({
27283
+ this.value = xt(n.value), this.isDateValid = n.validity.valid, this.nylasFormInputChanged.emit({
27284
27284
  value: this.value,
27285
27285
  name: this.name,
27286
27286
  label: this.label,
@@ -27646,7 +27646,7 @@ function Ts() {
27646
27646
  customElements.get(e) || customElements.define(e, lz);
27647
27647
  break;
27648
27648
  case "chevron-icon":
27649
- customElements.get(e) || Dn();
27649
+ customElements.get(e) || Mn();
27650
27650
  break;
27651
27651
  case "search-icon":
27652
27652
  customElements.get(e) || Ur();
@@ -27927,7 +27927,7 @@ const dz = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
27927
27927
  });
27928
27928
  }
27929
27929
  componentDidLoad() {
27930
- this.value = St(this.defaultValue || "");
27930
+ this.value = xt(this.defaultValue || "");
27931
27931
  }
27932
27932
  themeConfigChangedHandler(e, n) {
27933
27933
  e !== n && this.applyThemeConfig(e);
@@ -27946,7 +27946,7 @@ const dz = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
27946
27946
  handleInput(e) {
27947
27947
  this.error = "";
27948
27948
  const n = e.target;
27949
- this.value = St(n.value), this.nylasFormInputChanged.emit({
27949
+ this.value = xt(n.value), this.nylasFormInputChanged.emit({
27950
27950
  value: this.value,
27951
27951
  name: this.name,
27952
27952
  error: this.error,
@@ -28021,10 +28021,10 @@ var gz = function(t, e, n, i) {
28021
28021
  };
28022
28022
  const Di = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, w$ = ee(class extends Q {
28023
28023
  constructor() {
28024
- super(), this.__registerHost(), this.__attachShadow(), this.nameChanged = G(this, "nameChanged", 7), this.emailChanged = G(this, "emailChanged", 7), this.backButtonClicked = G(this, "backButtonClicked", 7), this.detailsConfirmed = G(this, "detailsConfirmed", 7), this.bookingFormError = G(this, "bookingFormError", 7), this.bookingFormSubmitted = G(this, "bookingFormSubmitted", 7), this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.namePatternError = "", this.nameRequiredError = "", this.emailPatternError = "", this.emailRequiredError = "", this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0, this.handleGuestChange = (e, n) => {
28024
+ super(), this.__registerHost(), this.__attachShadow(), this.nameChanged = G(this, "nameChanged", 7), this.emailChanged = G(this, "emailChanged", 7), this.guestEmailsChanged = G(this, "guestEmailsChanged", 7), this.additionalFieldsChanged = G(this, "additionalFieldsChanged", 7), this.backButtonClicked = G(this, "backButtonClicked", 7), this.detailsConfirmed = G(this, "detailsConfirmed", 7), this.bookingFormError = G(this, "bookingFormError", 7), this.bookingFormSubmitted = G(this, "bookingFormSubmitted", 7), this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.namePatternError = "", this.nameRequiredError = "", this.emailPatternError = "", this.emailRequiredError = "", this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0, this.handleGuestChange = (e, n) => {
28025
28025
  this.resetGuestEmailError(e);
28026
28026
  const i = [...this.guestEmails];
28027
- i[e] = bo(n), this.guestEmails = [...i];
28027
+ i[e] = bo(n), this.guestEmails = [...i], this.guestEmailsChanged.emit(this.guestEmails);
28028
28028
  }, this.handleGuestBlur = (e, n) => {
28029
28029
  if (this.resetGuestEmailError(e), n === "") {
28030
28030
  this.guestEmailErrors[e] = M.t("fieldRequired", { field: M.t("email") });
@@ -28036,11 +28036,11 @@ const Di = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28036
28036
  }
28037
28037
  this.handleGuestChange(e, n);
28038
28038
  }, this.addGuestButtonClickedHandler = (e) => {
28039
- e.preventDefault(), this.guestEmails = [...this.guestEmails, ""];
28039
+ e.preventDefault(), this.guestEmails = [...this.guestEmails, ""], this.guestEmailsChanged.emit(this.guestEmails);
28040
28040
  }, this.removeGuestButtonClickHandler = (e, n) => {
28041
28041
  e.preventDefault(), this.resetGuestEmailError(n);
28042
28042
  const i = [...this.guestEmails];
28043
- i.splice(n, 1), this.guestEmails = [...i];
28043
+ i.splice(n, 1), this.guestEmails = [...i], this.guestEmailsChanged.emit(this.guestEmails);
28044
28044
  }, this.handleBackButtonClicked = (e) => {
28045
28045
  e.preventDefault(), this.backButtonLoading = !0, this.backButtonClicked.emit();
28046
28046
  }, this.bookButtonClickedHandler = async (e) => {
@@ -28101,7 +28101,7 @@ const Di = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28101
28101
  additionalFields: { ...o, ...this.additionalFields }
28102
28102
  });
28103
28103
  }, this.updateAdditionalFields = (e, n) => {
28104
- this.additionalFields && (this.additionalFields[e] = n);
28104
+ this.additionalFields && (this.additionalFields[e] = n, this.additionalFieldsChanged.emit({ ...this.additionalFields }));
28105
28105
  };
28106
28106
  }
28107
28107
  connectedCallback() {
@@ -28164,7 +28164,7 @@ const Di = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28164
28164
  });
28165
28165
  }
28166
28166
  changeName(e) {
28167
- this.isNameValid = !0, this.validationError.name = "", this.name = St(e), this.nameChanged.emit(e);
28167
+ this.isNameValid = !0, this.validationError.name = "", this.name = xt(e), this.nameChanged.emit(e);
28168
28168
  }
28169
28169
  changeEmail(e) {
28170
28170
  this.isEmailValid = !0, this.validationError.email = "", this.email = bo(e), this.emailChanged.emit(e);
@@ -28229,7 +28229,7 @@ const Di = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28229
28229
  render() {
28230
28230
  var i, r, a, o, s, u, c, f, h, l, d, g, b, m, p, y, E, T, k, _, C, P, $, B;
28231
28231
  const e = !!((i = this.selectedTimeslot) != null && i.event_id) && !!((r = this.selectedTimeslot) != null && r.capacity), n = ((s = (o = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : o.notetaker_settings) == null ? void 0 : s.show_ui_consent_message) === !0;
28232
- return v(ve, { key: "ff7be9b66b5a472cae4a9ee6bd0ac7f4d7d55080" }, v("form", { key: "efc1dc1cf3790f1b7d1da15c95d0e7c01b8e09b7", onSubmit: (S) => this.bookButtonClickedHandler(S), ref: (S) => this.formRef = S, noValidate: !0 }, v("div", { key: "b054882d9b3e86432666ca2a4c78be28527141d7", class: "nylas-booking-form", part: "nbf" }, v("div", { key: "72cc111b5b14e75419decf4a35c8c062619747c3", class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { key: "8e0622d77d38733b46637c22296bc22ad9594b98", label: M.t("name"), name: "name", id: "name", defaultValue: ((c = (u = this.bookingInfo) == null ? void 0 : u.primaryParticipant) == null ? void 0 : c.name) || ((l = (h = (f = this.configSettings) == null ? void 0 : f.booking) == null ? void 0 : h.guest) == null ? void 0 : l.name) || this.name, placeholder: M.t("namePlaceholder"), type: "text", readOnly: ((g = (d = this.bookingInfo) == null ? void 0 : d.primaryParticipant) == null ? void 0 : g.nameReadOnly) || !1, required: !0, requiredError: this.nameRequiredError, patternError: this.namePatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), v("div", { key: "b33b7f03f3986e09b8f8cd25e7c2f50613283693", class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { key: "ff9d6627901004d5d82682fc475d798aeb50f35c", label: M.t("email"), name: "email", id: "email", pattern: Di, defaultValue: ((m = (b = this.bookingInfo) == null ? void 0 : b.primaryParticipant) == null ? void 0 : m.email) || ((E = (y = (p = this.configSettings) == null ? void 0 : p.booking) == null ? void 0 : y.guest) == null ? void 0 : E.email) || this.email, placeholder: M.t("emailPlaceholder"), type: "email", readOnly: ((k = (T = this.bookingInfo) == null ? void 0 : T.primaryParticipant) == null ? void 0 : k.emailReadOnly) || !1, required: !0, requiredError: this.emailRequiredError, patternError: this.emailPatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), ((C = (_ = this.configSettings) == null ? void 0 : _.scheduler) == null ? void 0 : C.hide_additional_guests) !== !0 && v("div", { key: "0cf431d2b0cf104b9abf6e15071b5d4bc5a004b7", class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((S, A) => v("div", { class: "input-wrapper button-wrapper" }, v("label", { class: {
28232
+ return v(ve, { key: "37cd9b82bc20430f4fc22ec1fc9395d40476d402" }, v("form", { key: "f9755c802b42d73ea9aaf48d4fb11c69faeb75de", onSubmit: (S) => this.bookButtonClickedHandler(S), ref: (S) => this.formRef = S, noValidate: !0 }, v("div", { key: "a0e74316cd25d942e033ec831fa4ed770be0df5a", class: "nylas-booking-form", part: "nbf" }, v("div", { key: "8a9cd8f75bfa974a47e5e2a3832828226f6ef2e6", class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { key: "3433a1edb0c011b8ae998af579210604329af86a", label: M.t("name"), name: "name", id: "name", defaultValue: ((c = (u = this.bookingInfo) == null ? void 0 : u.primaryParticipant) == null ? void 0 : c.name) || ((l = (h = (f = this.configSettings) == null ? void 0 : f.booking) == null ? void 0 : h.guest) == null ? void 0 : l.name) || this.name, placeholder: M.t("namePlaceholder"), type: "text", readOnly: ((g = (d = this.bookingInfo) == null ? void 0 : d.primaryParticipant) == null ? void 0 : g.nameReadOnly) || !1, required: !0, requiredError: this.nameRequiredError, patternError: this.namePatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), v("div", { key: "17f91b7c2207442cb9206a3480674ba78c89052a", class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { key: "a9418226c0756deefabace1218a1bd1ec3c6157b", label: M.t("email"), name: "email", id: "email", pattern: Di, defaultValue: ((m = (b = this.bookingInfo) == null ? void 0 : b.primaryParticipant) == null ? void 0 : m.email) || ((E = (y = (p = this.configSettings) == null ? void 0 : p.booking) == null ? void 0 : y.guest) == null ? void 0 : E.email) || this.email, placeholder: M.t("emailPlaceholder"), type: "email", readOnly: ((k = (T = this.bookingInfo) == null ? void 0 : T.primaryParticipant) == null ? void 0 : k.emailReadOnly) || !1, required: !0, requiredError: this.emailRequiredError, patternError: this.emailPatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), ((C = (_ = this.configSettings) == null ? void 0 : _.scheduler) == null ? void 0 : C.hide_additional_guests) !== !0 && v("div", { key: "512f56515ec34e71ac685b1cd54a744922adcf52", class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((S, A) => v("div", { class: "input-wrapper button-wrapper" }, v("label", { class: {
28233
28233
  error: !!this.guestEmailErrors[A]
28234
28234
  } }, M.t("guestEmail")), v("div", { class: "guest-email-input" }, v("input", { type: "email", id: `guest-email-${A}`, maxLength: 100, class: {
28235
28235
  "guest-email": !0,
@@ -28243,7 +28243,7 @@ const Di = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28243
28243
  } }), v("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (D) => this.removeGuestButtonClickHandler(D, A), class: {
28244
28244
  "remove-guest": !0,
28245
28245
  error: !!this.guestEmailErrors[A]
28246
- } }, v("close-icon", null))), v("p", { class: "help-text" }, this.guestEmailErrors[A]))), !e && v("button-component", { key: "2b149ffe1bdd0117dc23f75bd6aa21f28a9b9652", class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (S) => this.addGuestButtonClickedHandler(S) }, v("div", { key: "d30ef6a29786a6faa4ef8e1b5f0b6d96d494fb7f", class: "button-content" }, v("add-circle-icon", { key: "a6d1d9cdfef40554a443a8a9b3685fd16e0ea8f4", slot: "icon" }), this.guestEmails.length > 0 ? `${M.t("addAnotherGuest")}` : `${M.t("addGuest")}`))), (B = Object.entries((($ = (P = this.configSettings) == null ? void 0 : P.scheduler) == null ? void 0 : $.additional_fields) || {})) == null ? void 0 : B.sort((S, A) => S[1].order - A[1].order).map((S) => {
28246
+ } }, v("close-icon", null))), v("p", { class: "help-text" }, this.guestEmailErrors[A]))), !e && v("button-component", { key: "189869ec5a18043e9bef8c282058cbb26bfcad93", class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (S) => this.addGuestButtonClickedHandler(S) }, v("div", { key: "68f7e68b8ff5081068bd64e2aa8366508ad3a7b4", class: "button-content" }, v("add-circle-icon", { key: "fb5b3dba51aed878bf60b6e6f40771938a6de433", slot: "icon" }), this.guestEmails.length > 0 ? `${M.t("addAnotherGuest")}` : `${M.t("addGuest")}`))), (B = Object.entries((($ = (P = this.configSettings) == null ? void 0 : P.scheduler) == null ? void 0 : $.additional_fields) || {})) == null ? void 0 : B.sort((S, A) => S[1].order - A[1].order).map((S) => {
28247
28247
  var I, N, j, H, V, X, U, Z, ae, he, ke, Pe, Te, xe;
28248
28248
  const A = S[1], D = A.label, x = S[0], w = ((j = (N = (I = this.bookingInfo) == null ? void 0 : I.additionalFields) == null ? void 0 : N[x]) == null ? void 0 : j.value) || ((X = (V = (H = this.configSettings) == null ? void 0 : H.booking) == null ? void 0 : V.additional_fields) == null ? void 0 : X[x]) || A.default || "", O = ((ae = (Z = (U = this.bookingInfo) == null ? void 0 : U.additionalFields) == null ? void 0 : Z[x]) == null ? void 0 : ae.readOnly) || !1;
28249
28249
  switch (A.type) {
@@ -28269,7 +28269,7 @@ const Di = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
28269
28269
  default:
28270
28270
  return v("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, v("input-component", { label: D, name: x, id: x, type: A.type, readOnly: O, defaultValue: w || "", requiredError: M.t("fieldRequired", { field: D }), patternError: M.t("invalidInputFormat", { field: D }), required: A.required, part: "nbf__input-textfield", themeConfig: this.themeConfig }));
28271
28271
  }
28272
- })), v("div", { key: "cc4eef64c581d709dd04aa9a1911b8e16395bfca", class: "cta" }, n && v("div", { key: "646406e9b164645b733f70720d024bf9f38c42c7", class: "consent-disclaimer" }, M.t("notetakerConsentMessage")), v("button-component", { key: "0a50849e94a7024c79cb32ab28d7259006bbe886", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, v("slot", { key: "4a20f06c8173c9c18be25b3303852139f76eb812", name: "booking-form-back-label" }, `${M.t("backButton")}`)), v("button-component", { key: "334c1bab37af898e49867205c84baedeb612860b", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, v("slot", { key: "3f421a94afaf0f2e2defdd5f03d04e0553cf6b24", name: "booking-form-book-label" }, `${M.t("bookNowButton")}`)))));
28272
+ })), v("div", { key: "7ebcde54517afad0f17e89e0170f230dbc7ff3ce", class: "cta" }, n && v("div", { key: "39aa8a18b033e3e82f6dc0750229360947ef1f0e", class: "consent-disclaimer" }, M.t("notetakerConsentMessage")), v("button-component", { key: "62ca6bd8f36a3a81ad43027bdb2b87421654f139", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, v("slot", { key: "ff4131f111581812c9caa5c71f57ba0d24222fe2", name: "booking-form-back-label" }, `${M.t("backButton")}`)), v("button-component", { key: "2ac93336ea230bad436de88688b87ce7c0741996", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, v("slot", { key: "91dd3cda59aa2387d5ac239263189cde4a310267", name: "booking-form-book-label" }, `${M.t("bookNowButton")}`)))));
28273
28273
  }
28274
28274
  get host() {
28275
28275
  return this;
@@ -28335,6 +28335,12 @@ gz([
28335
28335
  emailChanged: async (t, e) => {
28336
28336
  e.scheduler.setParticipantEmail(t.detail);
28337
28337
  },
28338
+ guestEmailsChanged: async (t, e) => {
28339
+ e.scheduler.setGuests(t.detail);
28340
+ },
28341
+ additionalFieldsChanged: async (t, e) => {
28342
+ e.scheduler.setAdditionalFields(t.detail);
28343
+ },
28338
28344
  detailsConfirmed: async (t, e) => {
28339
28345
  L("nylas-booking-form", "detailsConfirmed", t.detail);
28340
28346
  },
@@ -28369,7 +28375,7 @@ function pz() {
28369
28375
  customElements.get(e) || b$();
28370
28376
  break;
28371
28377
  case "chevron-icon":
28372
- customElements.get(e) || Dn();
28378
+ customElements.get(e) || Mn();
28373
28379
  break;
28374
28380
  case "close-icon":
28375
28381
  customElements.get(e) || di();
@@ -28381,7 +28387,7 @@ function pz() {
28381
28387
  customElements.get(e) || k$();
28382
28388
  break;
28383
28389
  case "loading-icon":
28384
- customElements.get(e) || bt();
28390
+ customElements.get(e) || yt();
28385
28391
  break;
28386
28392
  case "multi-select-dropdown":
28387
28393
  customElements.get(e) || T$();
@@ -28577,7 +28583,7 @@ function yz() {
28577
28583
  customElements.get(e) || fi();
28578
28584
  break;
28579
28585
  case "loading-icon":
28580
- customElements.get(e) || bt();
28586
+ customElements.get(e) || yt();
28581
28587
  break;
28582
28588
  case "textarea-component":
28583
28589
  customElements.get(e) || Hr();
@@ -28700,7 +28706,7 @@ function Tz() {
28700
28706
  customElements.get(e) || ks();
28701
28707
  break;
28702
28708
  case "loading-icon":
28703
- customElements.get(e) || bt();
28709
+ customElements.get(e) || yt();
28704
28710
  break;
28705
28711
  }
28706
28712
  });
@@ -28814,7 +28820,7 @@ function Cz() {
28814
28820
  customElements.get(e) || jr();
28815
28821
  break;
28816
28822
  case "loading-icon":
28817
- customElements.get(e) || bt();
28823
+ customElements.get(e) || yt();
28818
28824
  break;
28819
28825
  }
28820
28826
  });
@@ -28930,7 +28936,7 @@ const P$ = ee(class extends Q {
28930
28936
  this.month = /* @__PURE__ */ new Date();
28931
28937
  else {
28932
28938
  const i = this.convertDatesToTimezone([n], this.selectedTimezone)[0];
28933
- Rn(i, this.month) || (this.month = i);
28939
+ Nn(i, this.month) || (this.month = i);
28934
28940
  }
28935
28941
  this.dates = this.getDates();
28936
28942
  }
@@ -28952,7 +28958,7 @@ const P$ = ee(class extends Q {
28952
28958
  const n = He(this.selectedDate);
28953
28959
  if (n) {
28954
28960
  const i = this.convertDatesToTimezone([n], e)[0];
28955
- Rn(i, this.month) || (this.month = i, this.dates = this.getDates(), this.updateNextMonthButtonState());
28961
+ Nn(i, this.month) || (this.month = i, this.dates = this.getDates(), this.updateNextMonthButtonState());
28956
28962
  }
28957
28963
  }
28958
28964
  selectableDatesChanged(e) {
@@ -29018,13 +29024,13 @@ const P$ = ee(class extends Q {
29018
29024
  const f = this.isDisabled(u);
29019
29025
  return this.isLoading ? v("button", { disabled: !0, class: {
29020
29026
  "date day-skeleton": !0,
29021
- "current-month": Rn(u, this.month)
29027
+ "current-month": Nn(u, this.month)
29022
29028
  }, style: { animationDelay: `${c * 20}ms` }, part: "ndp__date ndp__date--disabled" }, u.getDate()) : v("button", { class: {
29023
29029
  date: !0,
29024
29030
  selected: !!(this.selectedDate && this.isSameDayAsSelected(u, this.selectedDate) && this.selectableDates && ((h = this.selectableDates) == null ? void 0 : h.length) > 0),
29025
29031
  "current-day": Ac(u, /* @__PURE__ */ new Date()),
29026
- "current-month": Rn(u, this.month)
29027
- }, "aria-label": u.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: f, onClick: () => this.selectDate(u), part: `ndp__date ${this.isSelected(u, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${Ac(u, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${Rn(u, this.month) ? "ndp__date--current-month" : ""}` }, u.getDate());
29032
+ "current-month": Nn(u, this.month)
29033
+ }, "aria-label": u.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: f, onClick: () => this.selectDate(u), part: `ndp__date ${this.isSelected(u, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${Ac(u, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${Nn(u, this.month) ? "ndp__date--current-month" : ""}` }, u.getDate());
29028
29034
  }))));
29029
29035
  }
29030
29036
  get host() {
@@ -29100,7 +29106,7 @@ function Pz() {
29100
29106
  customElements.get(e) || customElements.define(e, P$);
29101
29107
  break;
29102
29108
  case "chevron-icon":
29103
- customElements.get(e) || Dn();
29109
+ customElements.get(e) || Mn();
29104
29110
  break;
29105
29111
  case "clock-icon":
29106
29112
  customElements.get(e) || v$();
@@ -29202,7 +29208,7 @@ function Lz() {
29202
29208
  customElements.get(e) || fi();
29203
29209
  break;
29204
29210
  case "loading-icon":
29205
- customElements.get(e) || bt();
29211
+ customElements.get(e) || yt();
29206
29212
  break;
29207
29213
  case "textarea-component":
29208
29214
  customElements.get(e) || Hr();
@@ -29376,7 +29382,7 @@ function Fz() {
29376
29382
  customElements.get(e) || customElements.define(e, L$);
29377
29383
  break;
29378
29384
  case "chevron-icon":
29379
- customElements.get(e) || Dn();
29385
+ customElements.get(e) || Mn();
29380
29386
  break;
29381
29387
  case "globe-icon":
29382
29388
  customElements.get(e) || qr();
@@ -29661,7 +29667,7 @@ function Zz() {
29661
29667
  customElements.get(e) || jr();
29662
29668
  break;
29663
29669
  case "loading-icon":
29664
- customElements.get(e) || bt();
29670
+ customElements.get(e) || yt();
29665
29671
  break;
29666
29672
  }
29667
29673
  });
@@ -30003,7 +30009,7 @@ function nj() {
30003
30009
  customElements.get(e) || Mt();
30004
30010
  break;
30005
30011
  case "loading-icon":
30006
- customElements.get(e) || bt();
30012
+ customElements.get(e) || yt();
30007
30013
  break;
30008
30014
  }
30009
30015
  });
@@ -30011,7 +30017,7 @@ function nj() {
30011
30017
  class ij {
30012
30018
  constructor() {
30013
30019
  this.component = (e) => {
30014
- const n = xt.Component, i = `${e} Error`;
30020
+ const n = pt.Component, i = `${e} Error`;
30015
30021
  return {
30016
30022
  endtime_not_in_future: (r = '"endtime" can not be in the future') => ({
30017
30023
  title: i,
@@ -30065,7 +30071,7 @@ class ij {
30065
30071
  })
30066
30072
  };
30067
30073
  }, this.api = (e) => {
30068
- const n = xt.Api, i = `${e} Error`;
30074
+ const n = pt.Api, i = `${e} Error`;
30069
30075
  return {
30070
30076
  invalid_session: (r) => ({
30071
30077
  title: i,
@@ -30118,7 +30124,8 @@ class rj {
30118
30124
  async makeAPIRequest(e, n, i, r = {}, a) {
30119
30125
  try {
30120
30126
  const o = new URL(this.schedulerAPIURL);
30121
- return o.pathname = e, await (await fetch(decodeURIComponent(o.toString()), {
30127
+ o.pathname = e;
30128
+ const s = await fetch(decodeURIComponent(o.toString()), {
30122
30129
  method: n,
30123
30130
  headers: {
30124
30131
  "Content-Type": "application/json",
@@ -30130,7 +30137,8 @@ class rj {
30130
30137
  },
30131
30138
  body: i,
30132
30139
  signal: a
30133
- })).json();
30140
+ });
30141
+ return s.status === 204 ? { data: void 0 } : await s.json();
30134
30142
  } catch (o) {
30135
30143
  if (o.name === "AbortError")
30136
30144
  throw o;
@@ -30193,6 +30201,24 @@ class rj {
30193
30201
  }
30194
30202
  });
30195
30203
  }
30204
+ setGuests(e) {
30205
+ const { bookingInfo: n } = this.schedulerStore.state;
30206
+ this.schedulerStore.set("bookingInfo", {
30207
+ ...n,
30208
+ primaryParticipant: n == null ? void 0 : n.primaryParticipant,
30209
+ guests: e.map((i) => ({ name: i, email: i }))
30210
+ });
30211
+ }
30212
+ setAdditionalFields(e) {
30213
+ const { bookingInfo: n } = this.schedulerStore.state, i = (n == null ? void 0 : n.additionalFields) ?? {}, r = { ...i };
30214
+ Object.entries(e).forEach(([a, o]) => {
30215
+ r[a] = { ...i[a], value: o };
30216
+ }), this.schedulerStore.set("bookingInfo", {
30217
+ ...n,
30218
+ primaryParticipant: n == null ? void 0 : n.primaryParticipant,
30219
+ additionalFields: r
30220
+ });
30221
+ }
30196
30222
  async refetchAvailability() {
30197
30223
  const e = /* @__PURE__ */ new Date(), n = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, i = n < e.getTime() / 1e3 ? Math.floor(e.getTime() / 1e3) : n, r = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3;
30198
30224
  return await this.getAvailability(i, r);
@@ -30356,7 +30382,7 @@ class rj {
30356
30382
  error: {
30357
30383
  title: M.t("invalidGrantErrorTitle"),
30358
30384
  message: T,
30359
- category: xt.Api
30385
+ category: pt.Api
30360
30386
  }
30361
30387
  };
30362
30388
  }
@@ -30626,7 +30652,7 @@ const Kt = (t, e) => {
30626
30652
  )
30627
30653
  )
30628
30654
  );
30629
- }, Ou = (t, e) => v("div", { class: "message-banner" }, e), oj = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto;border-left:none}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer .powered-by-nylas{display:flex;align-items:center;text-decoration:none;color:var(--nylas-base-500)}.footer .powered-by-nylas:hover{color:var(--nylas-base-800)}.footer svg{fill:var(--nylas-base-500)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}.language-feedback-container{width:auto;position:absolute;bottom:4px;left:16px;display:flex;gap:8px;align-items:center}.language-feedback-container button-component#report-issue{position:initial}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', Iu = { title: M.t("genericErrorTitle"), category: xt.Component }, F$ = ee(class extends Q {
30655
+ }, Ou = (t, e) => v("div", { class: "message-banner" }, e), oj = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto;border-left:none}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer .powered-by-nylas{display:flex;align-items:center;text-decoration:none;color:var(--nylas-base-500)}.footer .powered-by-nylas:hover{color:var(--nylas-base-800)}.footer svg{fill:var(--nylas-base-500)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}.language-feedback-container{width:auto;position:absolute;bottom:4px;left:16px;display:flex;gap:8px;align-items:center}.language-feedback-container button-component#report-issue{position:initial}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', Iu = { title: M.t("genericErrorTitle"), category: pt.Component }, F$ = ee(class extends Q {
30630
30656
  constructor() {
30631
30657
  super(), this.__registerHost(), this.__attachShadow(), this.init = G(this, "init", 7), this.schedulerWillLoad = G(this, "schedulerWillLoad", 7), this.schedulerDidLoad = G(this, "schedulerDidLoad", 7), this.nylasSchedulerError = G(this, "nylasSchedulerError", 7), this.nylasSchedulerInfo = G(this, "nylasSchedulerInfo", 7), this.configSettingsLoaded = G(this, "configSettingsLoaded", 7), this.bookingRefExtracted = G(this, "bookingRefExtracted", 7), this.bookedEventInfo = G(this, "bookedEventInfo", 7), this.initDeferred = !1, this.mode = "app", this.schedulerApiUrl = "https://api.us.nylas.com", this.nylasBranding = !0, this.eventOverrides = {}, this.showNotification = !0, this.enableUserFeedback = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = `${M.t("noDateSelected")}`, this.language = navigator.language, this.showFeedbackModal = !1, this.bookingInfoConfirmed = null, this.version = No;
30632
30658
  }
@@ -30895,21 +30921,37 @@ const Kt = (t, e) => {
30895
30921
  };
30896
30922
  }
30897
30923
  async bookButtonClickedHandler(e) {
30898
- var c, f, h, l;
30924
+ var c, f, h, l, d;
30899
30925
  if (e.defaultPrevented)
30900
30926
  return;
30901
30927
  const n = e.detail, i = this.mapToBookingData(n);
30902
30928
  this.bookingInfoConfirmed = n;
30903
30929
  const a = (f = (c = this.nylasSchedulerConnector) == null ? void 0 : c.schedulerStore) == null ? void 0 : f.get("rescheduleBookingId");
30904
30930
  if (a) {
30905
- const d = await ((h = this.nylasSchedulerConnector) == null ? void 0 : h.scheduler.rescheduleBooking(a, n));
30906
- (!d || "error" in d) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(d == null ? void 0 : d.error) }, host: this.host });
30907
- const g = d == null ? void 0 : d.data, b = this.bookedEventInfo.emit({ ...d, data: { ...g, ...i } });
30908
- this.bookingInfoConfirmed = { ...this.bookingInfoConfirmed, ...g }, "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(b, this.nylasSchedulerConnector);
30931
+ const g = await ((h = this.nylasSchedulerConnector) == null ? void 0 : h.scheduler.rescheduleBooking(a, n));
30932
+ (!g || "error" in g) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(g == null ? void 0 : g.error) }, host: this.host });
30933
+ const b = g == null ? void 0 : g.data, m = this.bookedEventInfo.emit({ ...g, data: { ...b, ...i } });
30934
+ this.bookingInfoConfirmed = { ...this.bookingInfoConfirmed, ...b }, "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(m, this.nylasSchedulerConnector);
30909
30935
  return;
30910
30936
  }
30911
30937
  const o = await ((l = this.nylasSchedulerConnector) == null ? void 0 : l.scheduler.bookTimeslot(n));
30912
- (!o || "error" in o) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(o == null ? void 0 : o.error) }, host: this.host });
30938
+ if (!o || "error" in o) {
30939
+ if (this.isTimeslotUnavailableError(o == null ? void 0 : o.error)) {
30940
+ this.nylasSchedulerInfo.emit({
30941
+ notification: {
30942
+ title: "Timeslot no longer available",
30943
+ category: pt.Component,
30944
+ type: mn.Info,
30945
+ description: "That time was just booked. Here are the latest available times.",
30946
+ id: (/* @__PURE__ */ new Date()).getTime().toString(),
30947
+ ttl: 3e3
30948
+ },
30949
+ host: this.host
30950
+ }), await ((d = this.nylasSchedulerConnector) == null ? void 0 : d.scheduler.toggleAdditionalData(!1));
30951
+ return;
30952
+ }
30953
+ this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(o == null ? void 0 : o.error) }, host: this.host });
30954
+ }
30913
30955
  const s = o == null ? void 0 : o.data, u = this.bookedEventInfo.emit({ ...o, data: { ...s, ...i } });
30914
30956
  this.bookingInfoConfirmed = { ...this.bookingInfoConfirmed, ...s }, "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(u, this.nylasSchedulerConnector);
30915
30957
  }
@@ -30949,8 +30991,8 @@ const Kt = (t, e) => {
30949
30991
  e.detail.type === "error" ? this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject({ message: n }) }, host: this.host }) : this.nylasSchedulerInfo.emit({
30950
30992
  notification: {
30951
30993
  title: "Event is full",
30952
- category: xt.Component,
30953
- type: jn.Info,
30994
+ category: pt.Component,
30995
+ type: mn.Info,
30954
30996
  description: "The event you selected is full. Please try a different time.",
30955
30997
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
30956
30998
  ttl: 3e3
@@ -30996,11 +31038,15 @@ const Kt = (t, e) => {
30996
31038
  async getRef() {
30997
31039
  return this.host;
30998
31040
  }
31041
+ isTimeslotUnavailableError(e) {
31042
+ var i;
31043
+ return (((i = e == null ? void 0 : e.message) == null ? void 0 : i.toLowerCase().trim()) ?? "").includes("the selected timeslot is unavailable");
31044
+ }
30999
31045
  getErrorObject(e) {
31000
31046
  return {
31001
31047
  title: (e == null ? void 0 : e.title) || Iu.title,
31002
31048
  category: (e == null ? void 0 : e.category) || Iu.category,
31003
- type: jn.Error,
31049
+ type: mn.Error,
31004
31050
  description: (e == null ? void 0 : e.message) || "",
31005
31051
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
31006
31052
  ttl: "none"
@@ -31013,8 +31059,8 @@ const Kt = (t, e) => {
31013
31059
  this.sessionId || (n += M.t("sessionIdRequiredErrorMessage")), !this.sessionId && !this.refConfigId && !(this.slug && this.clientId) && (n = M.t("sessionIdRequiredErrorMessage") + " " + M.t("publicConfigErrorMessage")), this.nylasSchedulerError.emit({
31014
31060
  notification: {
31015
31061
  title: M.t("schedulingComponentErrorTitle"),
31016
- category: xt.Component,
31017
- type: jn.Error,
31062
+ category: pt.Component,
31063
+ type: mn.Error,
31018
31064
  description: n,
31019
31065
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
31020
31066
  ttl: "none"
@@ -31030,8 +31076,8 @@ const Kt = (t, e) => {
31030
31076
  return new Date(e.start_time) < /* @__PURE__ */ new Date() ? (this.nylasSchedulerError.emit({
31031
31077
  notification: {
31032
31078
  title: M.t("invalidTimeslotErrorTitle"),
31033
- category: xt.Component,
31034
- type: jn.Error,
31079
+ category: pt.Component,
31080
+ type: mn.Error,
31035
31081
  description: M.t("invalidTimeslotErrorMessage"),
31036
31082
  id: (/* @__PURE__ */ new Date()).getTime().toString(),
31037
31083
  ttl: "none"
@@ -31197,7 +31243,7 @@ function sj() {
31197
31243
  customElements.get(e) || y$();
31198
31244
  break;
31199
31245
  case "chevron-icon":
31200
- customElements.get(e) || Dn();
31246
+ customElements.get(e) || Mn();
31201
31247
  break;
31202
31248
  case "clock-icon":
31203
31249
  customElements.get(e) || v$();
@@ -31218,7 +31264,7 @@ function sj() {
31218
31264
  customElements.get(e) || k$();
31219
31265
  break;
31220
31266
  case "loading-icon":
31221
- customElements.get(e) || bt();
31267
+ customElements.get(e) || yt();
31222
31268
  break;
31223
31269
  case "multi-select-dropdown":
31224
31270
  customElements.get(e) || T$();