@nylas/web-elements 2.6.0 → 2.6.1

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 (45) 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 +74 -70
  3. package/dist/cjs/google-logo-icon_6.cjs.entry.js +1 -1
  4. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +1 -1
  5. package/dist/cjs/nylas-scheduling.cjs.entry.js +9 -6
  6. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  7. package/dist/cjs/nylas-scheduling.entry.cjs.js.map +1 -1
  8. package/dist/cjs/{version-CHszslqN.js → version-Ep_WAjs1.js} +3 -3
  9. package/dist/cjs/{version-CHszslqN.js.map → version-Ep_WAjs1.js.map} +1 -1
  10. package/dist/collection/connector/shared/api/scheduler.js +8 -5
  11. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  12. package/dist/collection/version.js +1 -1
  13. package/dist/collection/version.js.map +1 -1
  14. package/dist/components/nylas-editor-tabs-group.js +1 -1
  15. package/dist/components/nylas-editor-tabs.js +1 -1
  16. package/dist/components/nylas-scheduler-editor.js +3 -3
  17. package/dist/components/nylas-scheduling.js +9 -6
  18. package/dist/components/nylas-scheduling.js.map +1 -1
  19. package/dist/components/{p-DTNmzKXY.js → p-DRo0peiI.js} +3 -3
  20. package/dist/components/{p-DTNmzKXY.js.map → p-DRo0peiI.js.map} +1 -1
  21. package/dist/components/{p-Z5I7z8cD.js → p-erV6iEKy.js} +3 -3
  22. package/dist/components/{p-Z5I7z8cD.js.map → p-erV6iEKy.js.map} +1 -1
  23. package/dist/components/{p-CNj6i-JK.js → p-oiP2Tfx1.js} +3 -3
  24. package/dist/components/{p-CNj6i-JK.js.map → p-oiP2Tfx1.js.map} +1 -1
  25. package/dist/esm/google-logo-icon_6.entry.js +1 -1
  26. package/dist/esm/nylas-scheduler-editor.entry.js +1 -1
  27. package/dist/esm/nylas-scheduling.entry.js +9 -6
  28. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  29. package/dist/esm/{version-CYTx0-4Z.js → version-JnnkbSna.js} +3 -3
  30. package/dist/esm/{version-CYTx0-4Z.js.map → version-JnnkbSna.js.map} +1 -1
  31. package/dist/nylas-web-elements/nylas-scheduling.entry.esm.js.map +1 -1
  32. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  33. package/dist/nylas-web-elements/{p-f5ccd7f3.entry.js → p-731891a8.entry.js} +2 -2
  34. package/dist/nylas-web-elements/p-86d19f93.entry.js +2 -0
  35. package/dist/nylas-web-elements/p-86d19f93.entry.js.map +1 -0
  36. package/dist/nylas-web-elements/{p-5d3ae749.entry.js → p-8c77020a.entry.js} +2 -2
  37. package/dist/nylas-web-elements/{p-CYTx0-4Z.js → p-JnnkbSna.js} +2 -2
  38. package/dist/nylas-web-elements/{p-CYTx0-4Z.js.map → p-JnnkbSna.js.map} +1 -1
  39. package/dist/types/connector/shared/api/scheduler.d.ts +1 -0
  40. package/dist/types/version.d.ts +1 -1
  41. package/package.json +3 -3
  42. package/dist/nylas-web-elements/p-82b39e7c.entry.js +0 -2
  43. package/dist/nylas-web-elements/p-82b39e7c.entry.js.map +0 -1
  44. /package/dist/nylas-web-elements/{p-f5ccd7f3.entry.js.map → p-731891a8.entry.js.map} +0 -0
  45. /package/dist/nylas-web-elements/{p-5d3ae749.entry.js.map → p-8c77020a.entry.js.map} +0 -0
@@ -26612,7 +26612,7 @@ const LQ = () => ({
26612
26612
  lazyLoadIntegration: CX,
26613
26613
  getModalIntegration: () => DQ,
26614
26614
  getScreenshotIntegration: () => LQ
26615
- }), Yr = "2.6.0", $Q = ".sc-add-circle-icon-h{display:flex}", BQ = De(class extends Ae {
26615
+ }), Yr = "2.6.1", $Q = ".sc-add-circle-icon-h{display:flex}", BQ = De(class extends Ae {
26616
26616
  constructor() {
26617
26617
  super(), this.__registerHost(), this.width = "24", this.height = "25";
26618
26618
  }
@@ -605,7 +605,7 @@ function Ps(t) {
605
605
  t
606
606
  );
607
607
  }
608
- var Oi, rr, xr, so = !1, ar = !1, qo = !1, je = !1, or = (t, e, n) => {
608
+ var Oi, rr, xr, so = !1, ar = !1, qo = !1, qe = !1, or = (t, e, n) => {
609
609
  var i;
610
610
  const r = e.$children$[n];
611
611
  let a = 0, o, s, u;
@@ -621,19 +621,19 @@ var Oi, rr, xr, so = !1, ar = !1, qo = !1, je = !1, or = (t, e, n) => {
621
621
  ))), r.$text$ !== null)
622
622
  o = r.$elm$ = Ce.document.createTextNode(r.$text$);
623
623
  else if (r.$flags$ & 1)
624
- o = r.$elm$ = Ce.document.createTextNode(""), oo(null, r, je);
624
+ o = r.$elm$ = Ce.document.createTextNode(""), oo(null, r, qe);
625
625
  else {
626
- if (je || (je = r.$tag$ === "svg"), !Ce.document)
626
+ if (qe || (qe = r.$tag$ === "svg"), !Ce.document)
627
627
  throw new Error(
628
628
  "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
629
629
  );
630
630
  if (o = r.$elm$ = Ce.document.createElementNS(
631
- je ? G$ : Y$,
631
+ qe ? G$ : Y$,
632
632
  !so && ni.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
633
- ), je && r.$tag$ === "foreignObject" && (je = !1), oo(null, r, je), eB(Oi) && o["s-si"] !== Oi && o.classList.add(o["s-si"] = Oi), r.$children$)
633
+ ), qe && r.$tag$ === "foreignObject" && (qe = !1), oo(null, r, qe), eB(Oi) && o["s-si"] !== Oi && o.classList.add(o["s-si"] = Oi), r.$children$)
634
634
  for (a = 0; a < r.$children$.length; ++a)
635
635
  s = or(t, r, a), s && o.appendChild(s);
636
- r.$tag$ === "svg" ? je = !1 : o.tagName === "foreignObject" && (je = !0);
636
+ r.$tag$ === "svg" ? qe = !1 : o.tagName === "foreignObject" && (qe = !0);
637
637
  }
638
638
  return o["s-hn"] = xr, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = rr, o["s-sn"] = r.$name$ || "", o["s-rf"] = (i = r.$attrs$) == null ? void 0 : i.ref, dB(o), u = t && t.$children$ && t.$children$[n], u && u.$tag$ === r.$tag$ && t.$elm$ && Zn(t.$elm$, !1), Ku(rr, o, e.$elm$, t == null ? void 0 : t.$elm$)), o;
639
639
  }, Zn = (t, e) => {
@@ -698,10 +698,10 @@ var Oi, rr, xr, so = !1, ar = !1, qo = !1, je = !1, or = (t, e, n) => {
698
698
  }, mi = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? (n && !t.$key$ && e.$key$ && (t.$key$ = e.$key$), !0) : t.$key$ === e.$key$ : !1, Jn = (t) => t && t["s-ol"] || t, pn = (t, e, n = !1) => {
699
699
  const i = e.$elm$ = t.$elm$, r = t.$children$, a = e.$children$, o = e.$tag$, s = e.$text$;
700
700
  let u;
701
- s === null ? (je = o === "svg" ? !0 : o === "foreignObject" ? !1 : je, oo(t, e, je), r !== null && a !== null ? kB(i, r, e, a, n) : a !== null ? (t.$text$ !== null && (i.textContent = ""), Gu(i, null, e, a, 0, a.length - 1)) : (
701
+ s === null ? (qe = o === "svg" ? !0 : o === "foreignObject" ? !1 : qe, oo(t, e, qe), r !== null && a !== null ? kB(i, r, e, a, n) : a !== null ? (t.$text$ !== null && (i.textContent = ""), Gu(i, null, e, a, 0, a.length - 1)) : (
702
702
  // don't do this on initial render as it can cause non-hydrated content to be removed
703
703
  !n && ni.updatable && r !== null && Yu(r, 0, r.length - 1)
704
- ), je && o === "svg" && (je = !1)) : (u = i["s-cr"]) ? u.parentNode.textContent = s : t.$text$ !== s && (i.data = s);
704
+ ), qe && o === "svg" && (qe = !1)) : (u = i["s-cr"]) ? u.parentNode.textContent = s : t.$text$ !== s && (i.data = s);
705
705
  }, St = [], Vu = (t) => {
706
706
  let e, n, i;
707
707
  const r = t.__childNodes || t.childNodes;
@@ -12264,11 +12264,11 @@ function Pt() {
12264
12264
  }, x.valueOf = function() {
12265
12265
  return this.$d.getTime();
12266
12266
  }, x.startOf = function(w, I) {
12267
- var O = this, R = !!$.u(I) || I, j = $.p(w), H = function(qe, _e) {
12268
- var Be = $.w(O.$u ? Date.UTC(O.$y, _e, qe) : new Date(O.$y, _e, qe), O);
12267
+ var O = this, R = !!$.u(I) || I, j = $.p(w), H = function(Ue, _e) {
12268
+ var Be = $.w(O.$u ? Date.UTC(O.$y, _e, Ue) : new Date(O.$y, _e, Ue), O);
12269
12269
  return R ? Be : Be.endOf(c);
12270
- }, W = function(qe, _e) {
12271
- return $.w(O.toDate()[qe].apply(O.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_e)), O);
12270
+ }, W = function(Ue, _e) {
12271
+ return $.w(O.toDate()[Ue].apply(O.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_e)), O);
12272
12272
  }, te = this.$W, U = this.$M, Q = this.$D, ce = "set" + (this.$u ? "UTC" : "");
12273
12273
  switch (j) {
12274
12274
  case d:
@@ -12328,9 +12328,9 @@ function Pt() {
12328
12328
  }, Ee = O.meridiem || function(_e, Be, N) {
12329
12329
  var F = _e < 12 ? "AM" : "PM";
12330
12330
  return N ? F.toLowerCase() : F;
12331
- }, qe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: te + 1, MM: $.s(te + 1, 2, "0"), MMM: ce(O.monthsShort, te, Q, 3), MMMM: ce(Q, te), D: this.$D, DD: $.s(this.$D, 2, "0"), d: String(this.$W), dd: ce(O.weekdaysMin, this.$W, U, 2), ddd: ce(O.weekdaysShort, this.$W, U, 3), dddd: U[this.$W], H: String(H), HH: $.s(H, 2, "0"), h: ve(1), hh: ve(2), a: Ee(H, W, !0), A: Ee(H, W, !1), m: String(W), mm: $.s(W, 2, "0"), s: String(this.$s), ss: $.s(this.$s, 2, "0"), SSS: $.s(this.$ms, 3, "0"), Z: j };
12331
+ }, Ue = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: te + 1, MM: $.s(te + 1, 2, "0"), MMM: ce(O.monthsShort, te, Q, 3), MMMM: ce(Q, te), D: this.$D, DD: $.s(this.$D, 2, "0"), d: String(this.$W), dd: ce(O.weekdaysMin, this.$W, U, 2), ddd: ce(O.weekdaysShort, this.$W, U, 3), dddd: U[this.$W], H: String(H), HH: $.s(H, 2, "0"), h: ve(1), hh: ve(2), a: Ee(H, W, !0), A: Ee(H, W, !1), m: String(W), mm: $.s(W, 2, "0"), s: String(this.$s), ss: $.s(this.$s, 2, "0"), SSS: $.s(this.$ms, 3, "0"), Z: j };
12332
12332
  return R.replace(p, function(_e, Be) {
12333
- return Be || qe[_e] || j.replace(":", "");
12333
+ return Be || Ue[_e] || j.replace(":", "");
12334
12334
  });
12335
12335
  }, x.utcOffset = function() {
12336
12336
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -15428,7 +15428,7 @@ function Ut() {
15428
15428
  t.DomHandler = o, t.default = o;
15429
15429
  }(Yt)), Yt;
15430
15430
  }
15431
- var Vt = {}, Oe = {}, Fe = {}, Qr = {}, Et = {}, ki = {}, _l;
15431
+ var Vt = {}, Oe = {}, ze = {}, Qr = {}, Et = {}, ki = {}, _l;
15432
15432
  function $D() {
15433
15433
  if (_l) return ki;
15434
15434
  _l = 1, Object.defineProperty(ki, "__esModule", { value: !0 });
@@ -15720,9 +15720,9 @@ function PD() {
15720
15720
  }
15721
15721
  var $l;
15722
15722
  function DD() {
15723
- if ($l) return Fe;
15723
+ if ($l) return ze;
15724
15724
  $l = 1;
15725
- var t = Fe && Fe.__assign || function() {
15725
+ var t = ze && ze.__assign || function() {
15726
15726
  return t = Object.assign || function(T) {
15727
15727
  for (var k, _ = 1, C = arguments.length; _ < C; _++) {
15728
15728
  k = arguments[_];
@@ -15730,7 +15730,7 @@ function DD() {
15730
15730
  }
15731
15731
  return T;
15732
15732
  }, t.apply(this, arguments);
15733
- }, e = Fe && Fe.__createBinding || (Object.create ? function(T, k, _, C) {
15733
+ }, e = ze && ze.__createBinding || (Object.create ? function(T, k, _, C) {
15734
15734
  C === void 0 && (C = _);
15735
15735
  var B = Object.getOwnPropertyDescriptor(k, _);
15736
15736
  (!B || ("get" in B ? !k.__esModule : B.writable || B.configurable)) && (B = { enumerable: !0, get: function() {
@@ -15738,17 +15738,17 @@ function DD() {
15738
15738
  } }), Object.defineProperty(T, C, B);
15739
15739
  } : function(T, k, _, C) {
15740
15740
  C === void 0 && (C = _), T[C] = k[_];
15741
- }), n = Fe && Fe.__setModuleDefault || (Object.create ? function(T, k) {
15741
+ }), n = ze && ze.__setModuleDefault || (Object.create ? function(T, k) {
15742
15742
  Object.defineProperty(T, "default", { enumerable: !0, value: k });
15743
15743
  } : function(T, k) {
15744
15744
  T.default = k;
15745
- }), i = Fe && Fe.__importStar || function(T) {
15745
+ }), i = ze && ze.__importStar || function(T) {
15746
15746
  if (T && T.__esModule) return T;
15747
15747
  var k = {};
15748
15748
  if (T != null) for (var _ in T) _ !== "default" && Object.prototype.hasOwnProperty.call(T, _) && e(k, T, _);
15749
15749
  return n(k, T), k;
15750
15750
  };
15751
- Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.render = void 0;
15751
+ Object.defineProperty(ze, "__esModule", { value: !0 }), ze.render = void 0;
15752
15752
  var r = i(/* @__PURE__ */ ri()), a = /* @__PURE__ */ BD(), o = /* @__PURE__ */ PD(), s = /* @__PURE__ */ new Set([
15753
15753
  "style",
15754
15754
  "script",
@@ -15799,7 +15799,7 @@ function DD() {
15799
15799
  C += l(_[B], k);
15800
15800
  return C;
15801
15801
  }
15802
- Fe.render = h, Fe.default = h;
15802
+ ze.render = h, ze.default = h;
15803
15803
  function l(T, k) {
15804
15804
  switch (T.type) {
15805
15805
  case r.Root:
@@ -15855,7 +15855,7 @@ function DD() {
15855
15855
  function E(T) {
15856
15856
  return "<!--".concat(T.data, "-->");
15857
15857
  }
15858
- return Fe;
15858
+ return ze;
15859
15859
  }
15860
15860
  var Bl;
15861
15861
  function fA() {
@@ -16061,10 +16061,10 @@ function hA() {
16061
16061
  }
16062
16062
  return Re.findAll = o, Re;
16063
16063
  }
16064
- var Ue = {}, Ll;
16064
+ var He = {}, Ll;
16065
16065
  function gA() {
16066
- if (Ll) return Ue;
16067
- Ll = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.getElementsByTagType = Ue.getElementsByTagName = Ue.getElementById = Ue.getElements = Ue.testElement = void 0;
16066
+ if (Ll) return He;
16067
+ Ll = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.getElementsByTagType = He.getElementsByTagName = He.getElementById = He.getElements = He.testElement = void 0;
16068
16068
  var t = /* @__PURE__ */ Ut(), e = /* @__PURE__ */ hA(), n = {
16069
16069
  tag_name: function(h) {
16070
16070
  return typeof h == "function" ? function(l) {
@@ -16111,25 +16111,25 @@ function gA() {
16111
16111
  var d = a(h);
16112
16112
  return d ? d(l) : !0;
16113
16113
  }
16114
- Ue.testElement = o;
16114
+ He.testElement = o;
16115
16115
  function s(h, l, d, g) {
16116
16116
  g === void 0 && (g = 1 / 0);
16117
16117
  var b = a(h);
16118
16118
  return b ? (0, e.filter)(b, l, d, g) : [];
16119
16119
  }
16120
- Ue.getElements = s;
16120
+ He.getElements = s;
16121
16121
  function u(h, l, d) {
16122
16122
  return d === void 0 && (d = !0), Array.isArray(l) || (l = [l]), (0, e.findOne)(i("id", h), l, d);
16123
16123
  }
16124
- Ue.getElementById = u;
16124
+ He.getElementById = u;
16125
16125
  function c(h, l, d, g) {
16126
16126
  return d === void 0 && (d = !0), g === void 0 && (g = 1 / 0), (0, e.filter)(n.tag_name(h), l, d, g);
16127
16127
  }
16128
- Ue.getElementsByTagName = c;
16128
+ He.getElementsByTagName = c;
16129
16129
  function f(h, l, d, g) {
16130
16130
  return d === void 0 && (d = !0), g === void 0 && (g = 1 / 0), (0, e.filter)(n.tag_type(h), l, d, g);
16131
16131
  }
16132
- return Ue.getElementsByTagType = f, Ue;
16132
+ return He.getElementsByTagType = f, He;
16133
16133
  }
16134
16134
  var ta = {}, Ol;
16135
16135
  function OD() {
@@ -17841,7 +17841,7 @@ function ZD() {
17841
17841
  function Ee(N) {
17842
17842
  throw B.error("Unclosed " + N, U);
17843
17843
  }
17844
- function qe() {
17844
+ function Ue() {
17845
17845
  return ce.length === 0 && U >= te;
17846
17846
  }
17847
17847
  function _e(N) {
@@ -17933,7 +17933,7 @@ function ZD() {
17933
17933
  }
17934
17934
  return {
17935
17935
  back: Be,
17936
- endOfFile: qe,
17936
+ endOfFile: Ue,
17937
17937
  nextToken: _e,
17938
17938
  position: ve
17939
17939
  };
@@ -19014,7 +19014,7 @@ and ensure you are accounting for this risk.
19014
19014
  if (p.parseStyleAttributes)
19015
19015
  try {
19016
19016
  const ue = a(N + " {" + he + "}", { map: !1 }), de = Ee(ue, p.allowedStyles);
19017
- if (he = qe(de), he.length === 0) {
19017
+ if (he = Ue(de), he.length === 0) {
19018
19018
  delete z.attribs[ne];
19019
19019
  return;
19020
19020
  }
@@ -19128,7 +19128,7 @@ and ensure you are accounting for this risk.
19128
19128
  F["*"]
19129
19129
  ) : Y = F[z.selector] || F["*"], Y && (N.nodes[0].nodes = z.nodes.reduce(_e(Y), [])), N;
19130
19130
  }
19131
- function qe(N) {
19131
+ function Ue(N) {
19132
19132
  return N.nodes[0].nodes.reduce(function(F, z) {
19133
19133
  return F.push(
19134
19134
  `${z.prop}:${z.value}${z.important ? " !important" : ""}`
@@ -19798,7 +19798,7 @@ function Ac(t, e) {
19798
19798
  function $c(t) {
19799
19799
  return Math.abs(t) < 1e10 ? t * 1e3 : t;
19800
19800
  }
19801
- function He(t) {
19801
+ function Fe(t) {
19802
19802
  if (t == null)
19803
19803
  return;
19804
19804
  if (t instanceof Date)
@@ -24504,7 +24504,7 @@ const kN = ({
24504
24504
  z.id = String(F.id), fe.body.appendChild(z), ce = z.attachShadow({ mode: "open" }), ce.appendChild(vN(F));
24505
24505
  }
24506
24506
  return ce;
24507
- }, qe = async (F, z, Y) => {
24507
+ }, Ue = async (F, z, Y) => {
24508
24508
  const se = Se(), ie = se && se.getIntegrationByName(F);
24509
24509
  if (ie)
24510
24510
  return ie;
@@ -24512,8 +24512,8 @@ const kN = ({
24512
24512
  return se && se.addIntegration(ne), ne;
24513
24513
  }, _e = async (F) => {
24514
24514
  const z = F.enableScreenshot && hN(), [Y, se] = await Promise.all([
24515
- qe("FeedbackModal", e, "feedbackModalIntegration"),
24516
- z ? qe(
24515
+ Ue("FeedbackModal", e, "feedbackModalIntegration"),
24516
+ z ? Ue(
24517
24517
  "FeedbackScreenshot",
24518
24518
  n,
24519
24519
  "feedbackScreenshotIntegration"
@@ -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", Yn = 30, Ct = 3, Lt = Yn + Ct, ze = bt.devicePixelRatio, jn = (t) => ({
25808
+ const Ze = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx", Yn = 30, Ct = 3, Lt = Yn + Ct, je = bt.devicePixelRatio, jn = (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),
@@ -25833,9 +25833,9 @@ function aF({
25833
25833
  function E() {
25834
25834
  const A = l.current, $ = jn(Fa(n));
25835
25835
  if (A) {
25836
- A.width = $.width * ze, A.height = $.height * ze, A.style.width = `${$.width}px`, A.style.height = `${$.height}px`;
25836
+ A.width = $.width * je, A.height = $.height * je, A.style.width = `${$.width}px`, A.style.height = `${$.height}px`;
25837
25837
  const D = A.getContext("2d");
25838
- D && D.scale(ze, ze);
25838
+ D && D.scale(je, je);
25839
25839
  }
25840
25840
  const S = h.current;
25841
25841
  S && (S.style.width = `${$.width}px`, S.style.height = `${$.height}px`), g({ startX: 0, startY: 0, endX: $.width, endY: $.height });
@@ -25872,7 +25872,7 @@ function aF({
25872
25872
  case "top-right":
25873
25873
  g((w) => ({
25874
25874
  ...w,
25875
- endX: Math.max(Math.min(M, S.width / ze), w.startX + Lt),
25875
+ endX: Math.max(Math.min(M, S.width / je), w.startX + Lt),
25876
25876
  startY: Math.min(Math.max(0, x), w.endY - Lt)
25877
25877
  }));
25878
25878
  break;
@@ -25880,14 +25880,14 @@ function aF({
25880
25880
  g((w) => ({
25881
25881
  ...w,
25882
25882
  startX: Math.min(Math.max(0, M), w.endX - Lt),
25883
- endY: Math.max(Math.min(x, S.height / ze), w.startY + Lt)
25883
+ endY: Math.max(Math.min(x, S.height / je), w.startY + Lt)
25884
25884
  }));
25885
25885
  break;
25886
25886
  case "bottom-right":
25887
25887
  g((w) => ({
25888
25888
  ...w,
25889
- endX: Math.max(Math.min(M, S.width / ze), w.startX + Lt),
25890
- endY: Math.max(Math.min(x, S.height / ze), w.startY + Lt)
25889
+ endX: Math.max(Math.min(M, S.width / je), w.startX + Lt),
25890
+ endY: Math.max(Math.min(x, S.height / je), w.startY + Lt)
25891
25891
  }));
25892
25892
  break;
25893
25893
  }
@@ -25902,10 +25902,10 @@ function aF({
25902
25902
  g((I) => {
25903
25903
  const O = Math.max(
25904
25904
  0,
25905
- Math.min(I.startX + x, M.width / ze - (I.endX - I.startX))
25905
+ Math.min(I.startX + x, M.width / je - (I.endX - I.startX))
25906
25906
  ), R = Math.max(
25907
25907
  0,
25908
- Math.min(I.startY + w, M.height / ze - (I.endY - I.startY))
25908
+ Math.min(I.startY + w, M.height / je - (I.endY - I.startY))
25909
25909
  ), j = O + (I.endX - I.startX), H = R + (I.endY - I.startY);
25910
25910
  return _.current.initialX = D.clientX, _.current.initialY = D.clientY, {
25911
25911
  startX: O,
@@ -25921,7 +25921,7 @@ function aF({
25921
25921
  }
25922
25922
  function B() {
25923
25923
  const A = fe.createElement("canvas"), $ = jn(Fa(n)), S = jn(d);
25924
- A.width = S.width * ze, A.height = S.height * ze;
25924
+ A.width = S.width * je, A.height = S.height * je;
25925
25925
  const D = A.getContext("2d");
25926
25926
  D && n && D.drawImage(
25927
25927
  n,
@@ -26041,8 +26041,8 @@ function aF({
26041
26041
  A.preventDefault(), l.current && g({
26042
26042
  startX: 0,
26043
26043
  startY: 0,
26044
- endX: l.current.width / ze,
26045
- endY: l.current.height / ze
26044
+ endX: l.current.width / je,
26045
+ endY: l.current.height / je
26046
26046
  }), m(!1);
26047
26047
  },
26048
26048
  class: "btn btn--default",
@@ -26103,7 +26103,7 @@ const oF = () => ({
26103
26103
  lazyLoadIntegration: VR,
26104
26104
  getModalIntegration: () => eF,
26105
26105
  getScreenshotIntegration: () => oF
26106
- }), No = "2.6.0", lF = (t, e, n) => {
26106
+ }), No = "2.6.1", 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) => {
@@ -28933,7 +28933,7 @@ lt.extend(TA);
28933
28933
  lt.extend(EA);
28934
28934
  const P$ = X(class extends J {
28935
28935
  constructor() {
28936
- super(), this.__registerHost(), this.__attachShadow(), this.dateSelected = G(this, "dateSelected", 7), this.monthChanged = G(this, "monthChanged", 7), this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.month = He(this.selectedDate) || /* @__PURE__ */ new Date(), this.dates = this.getDates(), this.disableNextMonthButton = !1, this.selectableDatesTimezone = [];
28936
+ super(), this.__registerHost(), this.__attachShadow(), this.dateSelected = G(this, "dateSelected", 7), this.monthChanged = G(this, "monthChanged", 7), this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.month = Fe(this.selectedDate) || /* @__PURE__ */ new Date(), this.dates = this.getDates(), this.disableNextMonthButton = !1, this.selectableDatesTimezone = [];
28937
28937
  }
28938
28938
  configSettingsChanged(e) {
28939
28939
  this.updateNextMonthButtonState();
@@ -28953,7 +28953,7 @@ const P$ = X(class extends J {
28953
28953
  this.applyThemeConfig(e);
28954
28954
  }
28955
28955
  selectedDateChanged(e) {
28956
- const n = He(e);
28956
+ const n = Fe(e);
28957
28957
  if (!n)
28958
28958
  this.month = /* @__PURE__ */ new Date();
28959
28959
  else {
@@ -28963,21 +28963,21 @@ const P$ = X(class extends J {
28963
28963
  this.dates = this.getDates();
28964
28964
  }
28965
28965
  isSameDayAsSelected(e, n) {
28966
- const i = He(n);
28966
+ const i = Fe(n);
28967
28967
  if (!i)
28968
28968
  return !1;
28969
28969
  const r = lt(i).tz(this.selectedTimezone);
28970
28970
  return e.getFullYear() === r.year() && e.getMonth() === r.month() && e.getDate() === r.date();
28971
28971
  }
28972
28972
  convertDatesToTimezone(e, n) {
28973
- return !e || e.length === 0 ? [] : e.map((i) => He(i)).filter((i) => !!i).map((i) => {
28973
+ return !e || e.length === 0 ? [] : e.map((i) => Fe(i)).filter((i) => !!i).map((i) => {
28974
28974
  const r = lt(i).tz(n);
28975
28975
  return new Date(r.year(), r.month(), r.date());
28976
28976
  });
28977
28977
  }
28978
28978
  selectedTimezoneChanged(e) {
28979
28979
  this.selectableDatesTimezone = this.convertDatesToTimezone(this.selectableDates, e);
28980
- const n = He(this.selectedDate);
28980
+ const n = Fe(this.selectedDate);
28981
28981
  if (n) {
28982
28982
  const i = this.convertDatesToTimezone([n], e)[0];
28983
28983
  Fn(i, this.month) || (this.month = i, this.dates = this.getDates(), this.updateNextMonthButtonState());
@@ -28998,7 +28998,7 @@ const P$ = X(class extends J {
28998
28998
  }
28999
28999
  componentDidLoad() {
29000
29000
  L("[nylas-date-picker] Component did load");
29001
- const e = He(this.selectedDate);
29001
+ const e = Fe(this.selectedDate);
29002
29002
  this.month = e ? this.convertDatesToTimezone([e], this.selectedTimezone)[0] : /* @__PURE__ */ new Date(), this.dates = this.getDates(), this.selectableDatesTimezone = this.convertDatesToTimezone(this.selectableDates, this.selectedTimezone);
29003
29003
  }
29004
29004
  applyThemeConfig(e) {
@@ -30201,7 +30201,7 @@ class rj {
30201
30201
  this.schedulerStore.set("selectedLanguage", n), P.changeLanguage(n);
30202
30202
  }
30203
30203
  async toggleAdditionalData(e) {
30204
- e || await this.refetchAvailability(), this.schedulerStore.set("showBookingForm", e);
30204
+ e || await this.refetchAvailability(this.getViewedMonthAnchor()), this.schedulerStore.set("showBookingForm", e);
30205
30205
  }
30206
30206
  setParticipantName(e) {
30207
30207
  const { bookingInfo: n } = this.schedulerStore.state;
@@ -30241,17 +30241,21 @@ class rj {
30241
30241
  additionalFields: r
30242
30242
  });
30243
30243
  }
30244
- async refetchAvailability() {
30245
- 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;
30246
- return await this.getAvailability(i, r);
30244
+ getViewedMonthAnchor() {
30245
+ var e;
30246
+ return Fe(this.schedulerStore.get("selectedDate")) ?? Fe((e = this.schedulerStore.get("selectedTimeslot")) == null ? void 0 : e.start_time);
30247
+ }
30248
+ async refetchAvailability(e = /* @__PURE__ */ new Date()) {
30249
+ const n = /* @__PURE__ */ new Date(), i = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, r = i < n.getTime() / 1e3 ? Math.floor(n.getTime() / 1e3) : i, a = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3;
30250
+ return await this.getAvailability(r, a);
30247
30251
  }
30248
30252
  async resetStoreStateAndFetchAvailability() {
30249
30253
  const e = /* @__PURE__ */ new Date(), n = await this.refetchAvailability(), i = this.schedulerStore.get("availability").find((a) => {
30250
- const o = He(a.start_time);
30254
+ const o = Fe(a.start_time);
30251
30255
  return o ? o > /* @__PURE__ */ new Date() : !1;
30252
30256
  });
30253
30257
  let r = e;
30254
- return i && (r = He(i.start_time) || e), this.schedulerStore.set("selectedDate", r), this.schedulerStore.set("eventInfo", null), this.schedulerStore.set("showBookingForm", !1), this.schedulerStore.set("selectedTimeslot", null), n;
30258
+ return i && (r = Fe(i.start_time) || e), this.schedulerStore.set("selectedDate", r), this.schedulerStore.set("eventInfo", null), this.schedulerStore.set("showBookingForm", !1), this.schedulerStore.set("selectedTimeslot", null), n;
30255
30259
  }
30256
30260
  async setReschedule(e) {
30257
30261
  this.schedulerStore.set("isLoading", !0);
@@ -30557,7 +30561,7 @@ class rj {
30557
30561
  const f = this.getErrorMessage(c);
30558
30562
  c = this.errors.api(P.t("validateTimeslotErrorTitle"))[u](f);
30559
30563
  }
30560
- return this.refetchAvailability(), { error: c };
30564
+ return this.refetchAvailability(e.start_time), { error: c };
30561
30565
  }
30562
30566
  return this.schedulerStore.set("selectedTimeslot", e), this.schedulerStore.set("showBookingForm", !0), this.schedulerStore.set("isLoading", !1), a;
30563
30567
  }
@@ -30780,7 +30784,7 @@ const Kt = (t, e) => {
30780
30784
  return;
30781
30785
  }
30782
30786
  }
30783
- const g = He(h == null ? void 0 : h.get("selectedDate")), b = h == null ? void 0 : h.get("availability");
30787
+ const g = Fe(h == null ? void 0 : h.get("selectedDate")), b = h == null ? void 0 : h.get("availability");
30784
30788
  let m;
30785
30789
  if (b && b.length > 0)
30786
30790
  return;
@@ -30796,10 +30800,10 @@ const Kt = (t, e) => {
30796
30800
  if ((!m || "error" in m) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(m == null ? void 0 : m.error) }, host: this.host }), !g) {
30797
30801
  let p = /* @__PURE__ */ new Date();
30798
30802
  const y = h == null ? void 0 : h.get("availability").find((E) => {
30799
- const T = He(E.start_time);
30803
+ const T = Fe(E.start_time);
30800
30804
  return T ? T > /* @__PURE__ */ new Date() : !1;
30801
30805
  });
30802
- y && (p = He(y.start_time) || p), h == null || h.set("selectedDate", p);
30806
+ y && (p = Fe(y.start_time) || p), h == null || h.set("selectedDate", p);
30803
30807
  }
30804
30808
  } catch (f) {
30805
30809
  if (f.name === "AbortError")
@@ -30978,7 +30982,7 @@ const Kt = (t, e) => {
30978
30982
  this.bookingInfoConfirmed = { ...this.bookingInfoConfirmed, ...s }, "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(u, this.nylasSchedulerConnector);
30979
30983
  }
30980
30984
  dateSelectedHandler(e) {
30981
- const n = He(e.detail);
30985
+ const n = Fe(e.detail);
30982
30986
  this.selectedDateLabel = n ? this.formatSelectedDateLabel(n) : `${P.t("noDateSelected")}`;
30983
30987
  }
30984
30988
  getSelectedLanguage() {
@@ -31132,7 +31136,7 @@ const Kt = (t, e) => {
31132
31136
  }
31133
31137
  render() {
31134
31138
  var y, E, T, k, _, C, B, A, $, S, D, M;
31135
- const e = this.mode === "app", n = (y = this.baseProvider) == null ? void 0 : y.getStore("scheduler"), i = n == null ? void 0 : n.get("eventInfo"), r = n == null ? void 0 : n.get("showBookingForm"), a = n == null ? void 0 : n.get("cancelledEventInfo"), o = n == null ? void 0 : n.get("cancelBookingId"), s = n == null ? void 0 : n.get("selectedTimeslot"), u = n == null ? void 0 : n.get("rescheduleBookingId"), c = n == null ? void 0 : n.get("organizerConfirmationBookingId"), f = n == null ? void 0 : n.get("rejectBookingId"), h = n == null ? void 0 : n.get("confirmedEventInfo"), l = (n == null ? void 0 : n.get("nylasBranding")) || this.nylasBranding, d = He(n == null ? void 0 : n.get("selectedDate")), g = (T = (E = n == null ? void 0 : n.get("configSettings")) == null ? void 0 : E.scheduler) == null ? void 0 : T.confirmation_redirect_url, b = Object.keys(dr).map((x) => ({
31139
+ const e = this.mode === "app", n = (y = this.baseProvider) == null ? void 0 : y.getStore("scheduler"), i = n == null ? void 0 : n.get("eventInfo"), r = n == null ? void 0 : n.get("showBookingForm"), a = n == null ? void 0 : n.get("cancelledEventInfo"), o = n == null ? void 0 : n.get("cancelBookingId"), s = n == null ? void 0 : n.get("selectedTimeslot"), u = n == null ? void 0 : n.get("rescheduleBookingId"), c = n == null ? void 0 : n.get("organizerConfirmationBookingId"), f = n == null ? void 0 : n.get("rejectBookingId"), h = n == null ? void 0 : n.get("confirmedEventInfo"), l = (n == null ? void 0 : n.get("nylasBranding")) || this.nylasBranding, d = Fe(n == null ? void 0 : n.get("selectedDate")), g = (T = (E = n == null ? void 0 : n.get("configSettings")) == null ? void 0 : E.scheduler) == null ? void 0 : T.confirmation_redirect_url, b = Object.keys(dr).map((x) => ({
31136
31140
  label: dr[x],
31137
31141
  value: x
31138
31142
  })), m = this.getSelectedLanguage(), p = d ? this.formatSelectedDateLabel(d) : `${P.t("noDateSelected")}`;
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-9TuL48qE.js');
4
4
  var registerComponent = require('./register-component-DjG8kzjz.js');
5
5
  var utils = require('./utils-BDriE9YY.js');
6
- var version = require('./version-CHszslqN.js');
6
+ var version = require('./version-Ep_WAjs1.js');
7
7
  var feedbackSync = require('./feedbackSync-Bcx7mZ9-.js');
8
8
 
9
9
  const iconCss$1 = ".sc-google-logo-icon-h{display:flex}";
@@ -4,7 +4,7 @@ var index$1 = require('./index-9TuL48qE.js');
4
4
  var abstractProvider = require('./abstract-provider-EX4lu0u8.js');
5
5
  var nylasApiRequest = require('./nylas-api-request-8qsFHWUt.js');
6
6
  var utils = require('./utils-BDriE9YY.js');
7
- var version = require('./version-CHszslqN.js');
7
+ var version = require('./version-Ep_WAjs1.js');
8
8
  var index = require('./index-CwlXqyvH.js');
9
9
 
10
10
  utils.dayjs.extend(utils.utc);
@@ -3,7 +3,7 @@
3
3
  var index$1 = require('./index-9TuL48qE.js');
4
4
  var abstractProvider = require('./abstract-provider-EX4lu0u8.js');
5
5
  var utils = require('./utils-BDriE9YY.js');
6
- var version = require('./version-CHszslqN.js');
6
+ var version = require('./version-Ep_WAjs1.js');
7
7
  var index = require('./index-CwlXqyvH.js');
8
8
  var feedbackSync = require('./feedbackSync-Bcx7mZ9-.js');
9
9
 
@@ -232,7 +232,7 @@ class NylaSchedulerAPIConnector {
232
232
  }
233
233
  async toggleAdditionalData(value) {
234
234
  if (!value) {
235
- await this.refetchAvailability();
235
+ await this.refetchAvailability(this.getViewedMonthAnchor());
236
236
  }
237
237
  this.schedulerStore.set('showBookingForm', value);
238
238
  }
@@ -277,11 +277,14 @@ class NylaSchedulerAPIConnector {
277
277
  additionalFields: merged,
278
278
  });
279
279
  }
280
- async refetchAvailability() {
280
+ getViewedMonthAnchor() {
281
+ return (utils.normalizeDateInput(this.schedulerStore.get('selectedDate')) ?? utils.normalizeDateInput(this.schedulerStore.get('selectedTimeslot')?.start_time));
282
+ }
283
+ async refetchAvailability(anchorDate = new Date()) {
281
284
  const today = new Date();
282
- const startTime = new Date(today.getFullYear(), today.getMonth(), 1).getTime() / 1000;
285
+ const startTime = new Date(anchorDate.getFullYear(), anchorDate.getMonth(), 1).getTime() / 1000;
283
286
  const startTimeWithOffset = startTime < today.getTime() / 1000 ? Math.floor(today.getTime() / 1000) : startTime;
284
- const endTime = new Date(today.getFullYear(), today.getMonth() + 1, 1).getTime() / 1000;
287
+ const endTime = new Date(anchorDate.getFullYear(), anchorDate.getMonth() + 1, 1).getTime() / 1000;
285
288
  const result = await this.getAvailability(startTimeWithOffset, endTime);
286
289
  return result;
287
290
  }
@@ -754,7 +757,7 @@ class NylaSchedulerAPIConnector {
754
757
  const errorMessage = this.getErrorMessage(error);
755
758
  error = this.errors.api(utils.instance.t('validateTimeslotErrorTitle'))[errorType](errorMessage);
756
759
  }
757
- this.refetchAvailability();
760
+ this.refetchAvailability(timeslot.start_time);
758
761
  return { error };
759
762
  }
760
763
  this.schedulerStore.set('selectedTimeslot', timeslot);