@nylas/react 1.4.2 → 1.4.4

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 (130) hide show
  1. package/dist/{add-circle-icon_2.entry-6b57fd96.js → add-circle-icon_2.entry-615fc101.js} +1 -1
  2. package/dist/{add-circle-icon_2.entry-db0c5d68.cjs → add-circle-icon_2.entry-e616ece6.cjs} +1 -1
  3. package/dist/{archive-icon.entry-bf00cb75.cjs → archive-icon.entry-41938a61.cjs} +1 -1
  4. package/dist/{archive-icon.entry-cf731ded.js → archive-icon.entry-bd81d2d9.js} +1 -1
  5. package/dist/{arrow-icon.entry-5031b5ac.cjs → arrow-icon.entry-4103be57.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-2471d146.js → arrow-icon.entry-da152ec2.js} +1 -1
  7. package/dist/{bold-icon.entry-9cec8c45.cjs → bold-icon.entry-58679992.cjs} +1 -1
  8. package/dist/{bold-icon.entry-da045de2.js → bold-icon.entry-61046c15.js} +1 -1
  9. package/dist/{button-component_2.entry-adbcccdf.cjs → button-component_2.entry-53bfdc19.cjs} +1 -1
  10. package/dist/{button-component_2.entry-ad0e9642.js → button-component_2.entry-db53e00a.js} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_36.entry-05898830.js → calendar-agenda-fill-icon_36.entry-76796ea7.js} +2 -2
  12. package/dist/{calendar-agenda-fill-icon_36.entry-aeb96033.cjs → calendar-agenda-fill-icon_36.entry-917e4a9d.cjs} +1 -1
  13. package/dist/{calendar-cancel-icon.entry-7b62f915.cjs → calendar-cancel-icon.entry-e5032d71.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-85ebd74c.js → calendar-cancel-icon.entry-f3b8ae99.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-72ab0311.js → calendar-check-icon_2.entry-27dc91f7.js} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-2e1586eb.cjs → calendar-check-icon_2.entry-7303362a.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-230a1263.js → calendar-icon.entry-48fc45d6.js} +1 -1
  18. package/dist/{calendar-icon.entry-b8c87d5f.cjs → calendar-icon.entry-4f432baf.cjs} +1 -1
  19. package/dist/{checkbox-component.entry-b6f0741a.cjs → checkbox-component.entry-8fad4faf.cjs} +1 -1
  20. package/dist/{checkbox-component.entry-51287f4f.js → checkbox-component.entry-a15ffc4c.js} +1 -1
  21. package/dist/{checkmark-icon_15.entry-a61f7d0b.cjs → checkmark-icon_15.entry-08c8b107.cjs} +2 -2
  22. package/dist/{checkmark-icon_15.entry-554964a3.js → checkmark-icon_15.entry-9f926a70.js} +17 -17
  23. package/dist/{chevron-icon_3.entry-3913b854.cjs → chevron-icon_3.entry-2f75c3c4.cjs} +1 -1
  24. package/dist/{chevron-icon_3.entry-4595b992.js → chevron-icon_3.entry-5130fbba.js} +1 -1
  25. package/dist/{clock-icon_4.entry-e081381a.js → clock-icon_4.entry-40a393c9.js} +1 -1
  26. package/dist/{clock-icon_4.entry-282b96df.cjs → clock-icon_4.entry-ac65deae.cjs} +1 -1
  27. package/dist/{customParseFormat-a4d9ea69-573fe3af.cjs → customParseFormat-a4d9ea69-763f219e.cjs} +1 -1
  28. package/dist/{customParseFormat-a4d9ea69-aeaa945c.js → customParseFormat-a4d9ea69-7caebeb2.js} +1 -1
  29. package/dist/{delete-icon.entry-6c9be3e2.cjs → delete-icon.entry-770dac8c.cjs} +1 -1
  30. package/dist/{delete-icon.entry-e5182b5a.js → delete-icon.entry-78e44eba.js} +1 -1
  31. package/dist/{document-refresh-icon.entry-018ce16d.cjs → document-refresh-icon.entry-d331f844.cjs} +1 -1
  32. package/dist/{document-refresh-icon.entry-0b2c1eb1.js → document-refresh-icon.entry-f6dfe744.js} +1 -1
  33. package/dist/{feedbackSync-aa8d23d1-2c779b00.cjs → feedbackSync-57bb471a-5afb7715.cjs} +1 -1
  34. package/dist/{feedbackSync-aa8d23d1-785b41fd.js → feedbackSync-57bb471a-ee800a95.js} +1 -1
  35. package/dist/{folder-icon.entry-fdce88ea.cjs → folder-icon.entry-163e0aee.cjs} +1 -1
  36. package/dist/{folder-icon.entry-eb9c7f65.js → folder-icon.entry-42650400.js} +1 -1
  37. package/dist/{forward-icon.entry-1ea23df4.cjs → forward-icon.entry-0a499b38.cjs} +1 -1
  38. package/dist/{forward-icon.entry-0b9c7166.js → forward-icon.entry-d60b6e31.js} +1 -1
  39. package/dist/{globe-icon_2.entry-385877d0.cjs → globe-icon_2.entry-19359092.cjs} +1 -1
  40. package/dist/{globe-icon_2.entry-3cf1b102.js → globe-icon_2.entry-5afa8049.js} +2 -2
  41. package/dist/{google-logo-icon_6.entry-9d97b8db.cjs → google-logo-icon_6.entry-896a10a5.cjs} +1 -1
  42. package/dist/{google-logo-icon_6.entry-f5adddf0.js → google-logo-icon_6.entry-d2febb78.js} +7 -7
  43. package/dist/{google-meet-icon_5.entry-e5c673bf.cjs → google-meet-icon_5.entry-4a94137f.cjs} +1 -1
  44. package/dist/{google-meet-icon_5.entry-20574ba9.js → google-meet-icon_5.entry-7b1b36f2.js} +1 -1
  45. package/dist/{inbox-icon.entry-29169ba7.cjs → inbox-icon.entry-24ec450f.cjs} +1 -1
  46. package/dist/{inbox-icon.entry-3ed18276.js → inbox-icon.entry-b71acde0.js} +1 -1
  47. package/dist/{index-b04bb93f.js → index-9243e481.js} +60 -60
  48. package/dist/{index-58c1674c.cjs → index-efb6db79.cjs} +2 -2
  49. package/dist/{index.es-6d4b50d5-7383c4f8.cjs → index.es-13ff6710-0f748bd2.cjs} +1 -1
  50. package/dist/{index.es-6d4b50d5-724fa642.js → index.es-13ff6710-73fa05e6.js} +1 -1
  51. package/dist/{info-icon_2.entry-4fa9aa36.cjs → info-icon_2.entry-6667923a.cjs} +1 -1
  52. package/dist/{info-icon_2.entry-f709a5bf.js → info-icon_2.entry-ba869bab.js} +1 -1
  53. package/dist/{input-component.entry-1b91f7cf.js → input-component.entry-7396acf1.js} +14 -14
  54. package/dist/{input-component.entry-82dc06b1.cjs → input-component.entry-db84f917.cjs} +1 -1
  55. package/dist/{input-dropdown_2.entry-0601fe2f.cjs → input-dropdown_2.entry-0c219620.cjs} +1 -1
  56. package/dist/{input-dropdown_2.entry-600dfd62.js → input-dropdown_2.entry-20f2031b.js} +1 -1
  57. package/dist/{italic-icon.entry-cfeb3329.cjs → italic-icon.entry-a9324a8a.cjs} +1 -1
  58. package/dist/{italic-icon.entry-7bb5d844.js → italic-icon.entry-c42f8112.js} +1 -1
  59. package/dist/{multi-select-dropdown_2.entry-2e2caeeb.js → multi-select-dropdown_2.entry-81740b34.js} +1 -1
  60. package/dist/{multi-select-dropdown_2.entry-ded44143.cjs → multi-select-dropdown_2.entry-8e07b42b.cjs} +1 -1
  61. package/dist/{notebook-store-b61693cd-a6630a19.js → notebook-store-b61693cd-5657061b.js} +1 -1
  62. package/dist/{notebook-store-b61693cd-fe56f6e3.cjs → notebook-store-b61693cd-6515d345.cjs} +1 -1
  63. package/dist/nylas-booked-event-card_12.entry-7c7afae5.cjs +1 -0
  64. package/dist/{nylas-booked-event-card_12.entry-46bf945a.js → nylas-booked-event-card_12.entry-e56c8e92.js} +262 -245
  65. package/dist/{nylas-call-summary.entry-92089a11.cjs → nylas-call-summary.entry-4bf7284f.cjs} +1 -1
  66. package/dist/{nylas-call-summary.entry-02a9b542.js → nylas-call-summary.entry-ad6fb46a.js} +1 -1
  67. package/dist/{nylas-event-calendar_3.entry-c77a26ca.js → nylas-event-calendar_3.entry-2504c7c0.js} +139 -111
  68. package/dist/{nylas-event-calendar_3.entry-c7421045.cjs → nylas-event-calendar_3.entry-f747f6a8.cjs} +2 -2
  69. package/dist/{nylas-form-card.entry-ddaea368.js → nylas-form-card.entry-98903549.js} +2 -2
  70. package/dist/{nylas-form-card.entry-48b2d9d4.cjs → nylas-form-card.entry-c406e3d3.cjs} +1 -1
  71. package/dist/{nylas-if-state.entry-b7c26f4c.cjs → nylas-if-state.entry-6b071705.cjs} +1 -1
  72. package/dist/{nylas-if-state.entry-bd3cba4e.js → nylas-if-state.entry-7468854a.js} +2 -2
  73. package/dist/{nylas-key-points.entry-da89162b.cjs → nylas-key-points.entry-7af8da1a.cjs} +1 -1
  74. package/dist/{nylas-key-points.entry-d9a22328.js → nylas-key-points.entry-c186445e.js} +2 -2
  75. package/dist/{nylas-login.entry-a4ee2c70.cjs → nylas-login.entry-171bd025.cjs} +1 -1
  76. package/dist/{nylas-login.entry-cb830f5d.js → nylas-login.entry-d85c1473.js} +2 -2
  77. package/dist/{nylas-provider.entry-7b416341.js → nylas-provider.entry-ab1f6886.js} +4 -4
  78. package/dist/{nylas-provider.entry-8f71dc58.cjs → nylas-provider.entry-e4231b93.cjs} +1 -1
  79. package/dist/{nylas-scheduler-editor.entry-04e8f10b.js → nylas-scheduler-editor.entry-670cc0b8.js} +3 -3
  80. package/dist/{nylas-scheduler-editor.entry-77f49e22.cjs → nylas-scheduler-editor.entry-d522ca98.cjs} +2 -2
  81. package/dist/{nylas-scheduling.entry-f187da9e.js → nylas-scheduling.entry-9e81c6fc.js} +6 -6
  82. package/dist/{nylas-scheduling.entry-df177e08.cjs → nylas-scheduling.entry-c52edb14.cjs} +1 -1
  83. package/dist/{nylas-transcript.entry-f35ee1ec.cjs → nylas-transcript.entry-a1fa7e17.cjs} +1 -1
  84. package/dist/{nylas-transcript.entry-130d62d2.js → nylas-transcript.entry-fb39b5af.js} +2 -2
  85. package/dist/{nylas-video-player.entry-3e1d8faa.js → nylas-video-player.entry-25e8cd9a.js} +2 -2
  86. package/dist/{nylas-video-player.entry-7ba2cd73.cjs → nylas-video-player.entry-89842545.cjs} +1 -1
  87. package/dist/{nylas-video-preview.entry-84b7d31d.cjs → nylas-video-preview.entry-28a0bd60.cjs} +1 -1
  88. package/dist/{nylas-video-preview.entry-85751140.js → nylas-video-preview.entry-80171531.js} +1 -1
  89. package/dist/{person-icon.entry-29a5030a.js → person-icon.entry-3bca6e51.js} +1 -1
  90. package/dist/{person-icon.entry-28c58d83.cjs → person-icon.entry-bdaa899b.cjs} +1 -1
  91. package/dist/{play-icon.entry-78eb1cc5.js → play-icon.entry-d548464e.js} +1 -1
  92. package/dist/{play-icon.entry-4f53806b.cjs → play-icon.entry-ecc86e85.cjs} +1 -1
  93. package/dist/{radio-button-group.entry-1d2a0c94.cjs → radio-button-group.entry-6965ad34.cjs} +1 -1
  94. package/dist/{radio-button-group.entry-1739abfc.js → radio-button-group.entry-9851076c.js} +1 -1
  95. package/dist/react.cjs +1 -1
  96. package/dist/react.js +1 -1
  97. package/dist/{refresh-icon.entry-e5f2b07f.cjs → refresh-icon.entry-90d52ab3.cjs} +1 -1
  98. package/dist/{refresh-icon.entry-8703a22f.js → refresh-icon.entry-d776c4a7.js} +1 -1
  99. package/dist/{register-component-238f28de-daee0751.js → register-component-02a05665-2e992621.js} +1 -1
  100. package/dist/{register-component-238f28de-4166d4fd.cjs → register-component-02a05665-75652287.cjs} +1 -1
  101. package/dist/{reply-all-icon.entry-c1da34a1.js → reply-all-icon.entry-24f7c0fe.js} +1 -1
  102. package/dist/{reply-all-icon.entry-77711564.cjs → reply-all-icon.entry-6e49eb03.cjs} +1 -1
  103. package/dist/{reply-icon.entry-267c524a.cjs → reply-icon.entry-7fff25c9.cjs} +1 -1
  104. package/dist/{reply-icon.entry-1fe825af.js → reply-icon.entry-d5d26d65.js} +1 -1
  105. package/dist/{scheduler-config-store-d6729d8d-634e14c6.js → scheduler-config-store-d6729d8d-50920e8c.js} +1 -1
  106. package/dist/{scheduler-config-store-d6729d8d-39f2a8c8.cjs → scheduler-config-store-d6729d8d-a0bdda83.cjs} +1 -1
  107. package/dist/{scheduler-store-82bb212a-64d99231.js → scheduler-store-fe9e85a4-1dcfddfa.js} +2 -2
  108. package/dist/{scheduler-store-82bb212a-dd809b50.cjs → scheduler-store-fe9e85a4-baabf78a.cjs} +1 -1
  109. package/dist/{sent-icon.entry-82b5056c.cjs → sent-icon.entry-42ce5bcb.cjs} +1 -1
  110. package/dist/{sent-icon.entry-86f841dd.js → sent-icon.entry-858fe83e.js} +1 -1
  111. package/dist/{spam-icon.entry-d8a9b8c3.js → spam-icon.entry-0827144e.js} +1 -1
  112. package/dist/{spam-icon.entry-ce6d3260.cjs → spam-icon.entry-bf1a48b6.cjs} +1 -1
  113. package/dist/{star-icon.entry-13fec0d7.cjs → star-icon.entry-3c57a35c.cjs} +1 -1
  114. package/dist/{star-icon.entry-c9272ed6.js → star-icon.entry-c2e743a9.js} +1 -1
  115. package/dist/{stop-icon.entry-ae569b6b.js → stop-icon.entry-0b9563d5.js} +1 -1
  116. package/dist/{stop-icon.entry-95c34b68.cjs → stop-icon.entry-cf4c4e63.cjs} +1 -1
  117. package/dist/{textarea-component.entry-75f2e50a.cjs → textarea-component.entry-2eccc173.cjs} +1 -1
  118. package/dist/{textarea-component.entry-9d484b96.js → textarea-component.entry-60e7a4d0.js} +1 -1
  119. package/dist/{toggle-switch.entry-3a2069a0.js → toggle-switch.entry-0a6b01e6.js} +1 -1
  120. package/dist/{toggle-switch.entry-b832b7bf.cjs → toggle-switch.entry-612744fd.cjs} +1 -1
  121. package/dist/{translate-icon.entry-a2f84ac4.cjs → translate-icon.entry-8adc4146.cjs} +1 -1
  122. package/dist/{translate-icon.entry-b9347ebf.js → translate-icon.entry-ede5f77d.js} +1 -1
  123. package/dist/{trash-fill-icon.entry-ae7a4d13.cjs → trash-fill-icon.entry-b6456ec8.cjs} +1 -1
  124. package/dist/{trash-fill-icon.entry-25a48052.js → trash-fill-icon.entry-d48f72c5.js} +1 -1
  125. package/dist/{underline-icon.entry-53025db9.js → underline-icon.entry-b2b43ba2.js} +1 -1
  126. package/dist/{underline-icon.entry-2e75ba4c.cjs → underline-icon.entry-d2fe2da6.cjs} +1 -1
  127. package/dist/{warning-icon.entry-5c49aabe.js → warning-icon.entry-0a5c7337.js} +1 -1
  128. package/dist/{warning-icon.entry-a87938c6.cjs → warning-icon.entry-85822f4d.cjs} +1 -1
  129. package/package.json +2 -2
  130. package/dist/nylas-booked-event-card_12.entry-c0d66ddf.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { b as M, u as er, t as tr, r as un, c as Y, d as B, i as x, h as m, H as fn, g as hn, S as Rt, J as Ks } from "./index-b04bb93f.js";
2
- import { R as pn } from "./register-component-238f28de-daee0751.js";
1
+ import { b as M, u as er, t as tr, r as un, c as Y, d as B, i as x, h as m, H as fn, g as hn, S as Rt, I as Ks } from "./index-9243e481.js";
2
+ import { R as pn } from "./register-component-02a05665-2e992621.js";
3
3
  import { T as xt } from "./constants-3d8016e3-3c080f00.js";
4
- import { c as ea } from "./customParseFormat-a4d9ea69-aeaa945c.js";
4
+ import { c as ea } from "./customParseFormat-a4d9ea69-7caebeb2.js";
5
5
  import "react";
6
6
  import "react/jsx-runtime";
7
7
  import "react-dom";
@@ -28,7 +28,7 @@ function Ke(t, e, n, i, r) {
28
28
  var s = { type: t, props: e, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: r ?? ++nr };
29
29
  return r == null && w.vnode != null && w.vnode(s), s;
30
30
  }
31
- function j() {
31
+ function F() {
32
32
  return { current: null };
33
33
  }
34
34
  function N(t) {
@@ -782,7 +782,7 @@ function Ua(t, e) {
782
782
  function tt(t) {
783
783
  return t % 1 === 0;
784
784
  }
785
- function ja(t) {
785
+ function Fa(t) {
786
786
  let e = t.querySelector(".fc-scrollgrid-shrink-frame"), n = t.querySelector(".fc-scrollgrid-shrink-cushion");
787
787
  if (!e)
788
788
  throw new Error("needs fc-scrollgrid-shrink-frame className");
@@ -791,12 +791,12 @@ function ja(t) {
791
791
  return t.getBoundingClientRect().width - e.getBoundingClientRect().width + // the cell padding+border
792
792
  n.getBoundingClientRect().width;
793
793
  }
794
- const vi = ["years", "months", "days", "milliseconds"], Fa = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
794
+ const vi = ["years", "months", "days", "milliseconds"], ja = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
795
795
  function A(t, e) {
796
796
  return typeof t == "string" ? Wa(t) : typeof t == "object" && t ? yi(t) : typeof t == "number" ? yi({ [e || "milliseconds"]: t }) : null;
797
797
  }
798
798
  function Wa(t) {
799
- let e = Fa.exec(t);
799
+ let e = ja.exec(t);
800
800
  if (e) {
801
801
  let n = e[1] ? -1 : 1;
802
802
  return {
@@ -1005,15 +1005,15 @@ function oe(t, e, n) {
1005
1005
  const Ka = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
1006
1006
  function bi(t, e) {
1007
1007
  let n = se(t);
1008
- return n[2] += e * 7, F(n);
1008
+ return n[2] += e * 7, j(n);
1009
1009
  }
1010
1010
  function U(t, e) {
1011
1011
  let n = se(t);
1012
- return n[2] += e, F(n);
1012
+ return n[2] += e, j(n);
1013
1013
  }
1014
1014
  function ce(t, e) {
1015
1015
  let n = se(t);
1016
- return n[6] += e, F(n);
1016
+ return n[6] += e, j(n);
1017
1017
  }
1018
1018
  function el(t, e) {
1019
1019
  return Ee(t, e) / 7;
@@ -1047,14 +1047,14 @@ function ct(t, e) {
1047
1047
  return ae(t) === ae(e) ? Math.round(Ee(t, e)) : null;
1048
1048
  }
1049
1049
  function O(t) {
1050
- return F([
1050
+ return j([
1051
1051
  t.getUTCFullYear(),
1052
1052
  t.getUTCMonth(),
1053
1053
  t.getUTCDate()
1054
1054
  ]);
1055
1055
  }
1056
1056
  function al(t) {
1057
- return F([
1057
+ return j([
1058
1058
  t.getUTCFullYear(),
1059
1059
  t.getUTCMonth(),
1060
1060
  t.getUTCDate(),
@@ -1062,7 +1062,7 @@ function al(t) {
1062
1062
  ]);
1063
1063
  }
1064
1064
  function ll(t) {
1065
- return F([
1065
+ return j([
1066
1066
  t.getUTCFullYear(),
1067
1067
  t.getUTCMonth(),
1068
1068
  t.getUTCDate(),
@@ -1071,7 +1071,7 @@ function ll(t) {
1071
1071
  ]);
1072
1072
  }
1073
1073
  function ol(t) {
1074
- return F([
1074
+ return j([
1075
1075
  t.getUTCFullYear(),
1076
1076
  t.getUTCMonth(),
1077
1077
  t.getUTCDate(),
@@ -1088,12 +1088,12 @@ function cl(t, e, n) {
1088
1088
  return s >= 1 ? Math.min(r, s) : r;
1089
1089
  }
1090
1090
  function Nt(t, e, n, i) {
1091
- let r = F([e, 0, 1 + dl(e, n, i)]), s = O(t), a = Math.round(Ee(r, s));
1091
+ let r = j([e, 0, 1 + dl(e, n, i)]), s = O(t), a = Math.round(Ee(r, s));
1092
1092
  return Math.floor(a / 7) + 1;
1093
1093
  }
1094
1094
  function dl(t, e, n) {
1095
1095
  let i = 7 + e - n;
1096
- return -((7 + F([t, 0, i]).getUTCDay() - e) % 7) + i - 1;
1096
+ return -((7 + j([t, 0, i]).getUTCDay() - e) % 7) + i - 1;
1097
1097
  }
1098
1098
  function Ei(t) {
1099
1099
  return [
@@ -1128,7 +1128,7 @@ function se(t) {
1128
1128
  t.getUTCMilliseconds()
1129
1129
  ];
1130
1130
  }
1131
- function F(t) {
1131
+ function j(t) {
1132
1132
  return t.length === 1 && (t = t.concat([0])), new Date(Date.UTC(...t));
1133
1133
  }
1134
1134
  function xr(t) {
@@ -1901,9 +1901,9 @@ const zl = {
1901
1901
  // so multiple defs get grouped
1902
1902
  };
1903
1903
  function Ul(t, e) {
1904
- return Be(jl(t), null, e);
1904
+ return Be(Fl(t), null, e);
1905
1905
  }
1906
- function jl(t) {
1906
+ function Fl(t) {
1907
1907
  let e;
1908
1908
  return t === !0 ? e = [{}] : Array.isArray(t) ? e = t.filter((n) => n.daysOfWeek) : typeof t == "object" && t ? e = [t] : e = [], e = e.map((n) => Object.assign(Object.assign({}, zl), n)), e;
1909
1909
  }
@@ -1923,7 +1923,7 @@ function Pr(t, e = A(0)) {
1923
1923
  function Se(t, e, n, i) {
1924
1924
  return i === "year" ? A(n.diffWholeYears(t, e), "year") : i === "month" ? A(n.diffWholeMonths(t, e), "month") : rl(t, e);
1925
1925
  }
1926
- function Fl(t, e) {
1926
+ function jl(t, e) {
1927
1927
  return t.left >= e.left && t.left < e.right && t.top >= e.top && t.top < e.bottom;
1928
1928
  }
1929
1929
  function Hr(t, e) {
@@ -2426,7 +2426,7 @@ class po extends W {
2426
2426
  this.setState({});
2427
2427
  }
2428
2428
  }
2429
- function jr(t) {
2429
+ function Fr(t) {
2430
2430
  let e = aa(t), n = e.Provider;
2431
2431
  return e.Provider = function() {
2432
2432
  let i = !this.getChildContext, r = n.apply(this, arguments);
@@ -2468,7 +2468,7 @@ class go {
2468
2468
  this.queuedRequest && this.execFunc(this.queuedRequest) && (this.queuedRequest = null);
2469
2469
  }
2470
2470
  }
2471
- const te = jr({});
2471
+ const te = Fr({});
2472
2472
  function mo(t, e, n, i, r, s, a, l, o, d, c, h, f) {
2473
2473
  return {
2474
2474
  dateEnv: r,
@@ -2563,7 +2563,7 @@ function Eo(t, e) {
2563
2563
  function Ue(t, e) {
2564
2564
  return typeof t == "function" && (t = t()), t == null ? e.createNowMarker() : e.createMarker(t);
2565
2565
  }
2566
- class Fr {
2566
+ class jr {
2567
2567
  constructor(e) {
2568
2568
  this.props = e, this.nowDate = Ue(e.nowInput, e.dateEnv), this.initHiddenDays();
2569
2569
  }
@@ -3268,7 +3268,7 @@ class zo {
3268
3268
  return e.getUTCDate();
3269
3269
  }
3270
3270
  arrayToMarker(e) {
3271
- return F(e);
3271
+ return j(e);
3272
3272
  }
3273
3273
  markerToArray(e) {
3274
3274
  return se(e);
@@ -3276,7 +3276,7 @@ class zo {
3276
3276
  }
3277
3277
  Lo("gregory", zo);
3278
3278
  const Uo = /^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;
3279
- function jo(t) {
3279
+ function Fo(t) {
3280
3280
  let e = Uo.exec(t);
3281
3281
  if (e) {
3282
3282
  let n = new Date(Date.UTC(Number(e[1]), e[3] ? Number(e[3]) - 1 : 0, Number(e[5] || 1), Number(e[7] || 0), Number(e[8] || 0), Number(e[10] || 0), e[12] ? +`0.${e[12]}` * 1e3 : 0));
@@ -3291,7 +3291,7 @@ function jo(t) {
3291
3291
  }
3292
3292
  return null;
3293
3293
  }
3294
- class Fo {
3294
+ class jo {
3295
3295
  constructor(e) {
3296
3296
  let n = this.timeZone = e.timeZone, i = n !== "local" && n !== "UTC";
3297
3297
  e.namedTimeZoneImpl && i && (this.namedTimeZoneImpl = new e.namedTimeZoneImpl(n)), this.canComputeOffset = !!(!i || this.namedTimeZoneImpl), this.calendarSystem = Bo(e.calendarSystem), this.locale = e.locale, this.weekDow = e.locale.week.dow, this.weekDoy = e.locale.week.doy, e.weekNumberCalculation === "ISO" && (this.weekDow = 1, this.weekDoy = 4), typeof e.firstDay == "number" && (this.weekDow = e.firstDay), typeof e.weekNumberCalculation == "function" && (this.weekNumberFunc = e.weekNumberCalculation), this.weekText = e.weekText != null ? e.weekText : e.locale.options.weekText, this.weekTextLong = (e.weekTextLong != null ? e.weekTextLong : e.locale.options.weekTextLong) || this.weekText, this.cmdFormatter = e.cmdFormatter, this.defaultSeparator = e.defaultSeparator;
@@ -3302,16 +3302,16 @@ class Fo {
3302
3302
  return n === null ? null : n.marker;
3303
3303
  }
3304
3304
  createNowMarker() {
3305
- return this.canComputeOffset ? this.timestampToMarker((/* @__PURE__ */ new Date()).valueOf()) : F(Ei(/* @__PURE__ */ new Date()));
3305
+ return this.canComputeOffset ? this.timestampToMarker((/* @__PURE__ */ new Date()).valueOf()) : j(Ei(/* @__PURE__ */ new Date()));
3306
3306
  }
3307
3307
  createMarkerMeta(e) {
3308
3308
  if (typeof e == "string")
3309
3309
  return this.parse(e);
3310
3310
  let n = null;
3311
- return typeof e == "number" ? n = this.timestampToMarker(e) : e instanceof Date ? (e = e.valueOf(), isNaN(e) || (n = this.timestampToMarker(e))) : Array.isArray(e) && (n = F(e)), n === null || !xr(n) ? null : { marker: n, isTimeUnspecified: !1, forcedTzo: null };
3311
+ return typeof e == "number" ? n = this.timestampToMarker(e) : e instanceof Date ? (e = e.valueOf(), isNaN(e) || (n = this.timestampToMarker(e))) : Array.isArray(e) && (n = j(e)), n === null || !xr(n) ? null : { marker: n, isTimeUnspecified: !1, forcedTzo: null };
3312
3312
  }
3313
3313
  parse(e) {
3314
- let n = jo(e);
3314
+ let n = Fo(e);
3315
3315
  if (n === null)
3316
3316
  return null;
3317
3317
  let { marker: i } = n, r = null;
@@ -3415,7 +3415,7 @@ class Fo {
3415
3415
  }
3416
3416
  // TimeZone
3417
3417
  timestampToMarker(e) {
3418
- return this.timeZone === "local" ? F(Ei(new Date(e))) : this.timeZone === "UTC" || !this.namedTimeZoneImpl ? new Date(e) : F(this.namedTimeZoneImpl.timestampToArray(e));
3418
+ return this.timeZone === "local" ? j(Ei(new Date(e))) : this.timeZone === "UTC" || !this.namedTimeZoneImpl ? new Date(e) : j(this.namedTimeZoneImpl.timestampToArray(e));
3419
3419
  }
3420
3420
  offsetForMarker(e) {
3421
3421
  return this.timeZone === "local" ? -_i(se(e)).getTimezoneOffset() : this.timeZone === "UTC" ? 0 : this.namedTimeZoneImpl ? this.namedTimeZoneImpl.offsetForArray(se(e)) : null;
@@ -3704,7 +3704,7 @@ function is(t, e) {
3704
3704
  function $o(t) {
3705
3705
  return !!t;
3706
3706
  }
3707
- const rs = jr(0);
3707
+ const rs = Fr(0);
3708
3708
  class G extends W {
3709
3709
  constructor() {
3710
3710
  super(...arguments), this.InnerContent = Zo.bind(void 0, this), this.handleRootEl = (e) => {
@@ -3776,7 +3776,7 @@ class ec extends T {
3776
3776
  ));
3777
3777
  }
3778
3778
  }
3779
- class je extends W {
3779
+ class Fe extends W {
3780
3780
  constructor(e, n) {
3781
3781
  super(e, n), this.initialNowDate = Ue(n.options.now, n.dateEnv), this.initialNowQueriedMs = (/* @__PURE__ */ new Date()).valueOf(), this.state = this.computeTiming().currentState;
3782
3782
  }
@@ -3813,7 +3813,7 @@ class je extends W {
3813
3813
  this.timeoutId && clearTimeout(this.timeoutId);
3814
3814
  }
3815
3815
  }
3816
- je.contextType = te;
3816
+ Fe.contextType = te;
3817
3817
  function Ni(t) {
3818
3818
  let e = O(t), n = U(e, 1);
3819
3819
  return { start: e, end: n };
@@ -3824,7 +3824,7 @@ class ss extends T {
3824
3824
  }
3825
3825
  render() {
3826
3826
  let { context: e } = this, { dates: n, dateProfile: i, datesRepDistinctDays: r, renderIntro: s } = this.props, a = this.createDayHeaderFormatter(e.options.dayHeaderFormat, r, n.length);
3827
- return p(je, { unit: "day" }, (l, o) => p(
3827
+ return p(Fe, { unit: "day" }, (l, o) => p(
3828
3828
  "tr",
3829
3829
  { role: "row" },
3830
3830
  s && s("day"),
@@ -4172,9 +4172,9 @@ function hs(t, e, n, i, r) {
4172
4172
  return !0;
4173
4173
  }
4174
4174
  function fc(t, e, n, i, r) {
4175
- return t === "businessHours" ? jt(ve(i, e, r)) : typeof t == "string" ? jt(wt(n, (s) => s.groupId === t)) : typeof t == "object" && t ? jt(ve(t, e, r)) : [];
4175
+ return t === "businessHours" ? Ft(ve(i, e, r)) : typeof t == "string" ? Ft(wt(n, (s) => s.groupId === t)) : typeof t == "object" && t ? Ft(ve(t, e, r)) : [];
4176
4176
  }
4177
- function jt(t) {
4177
+ function Ft(t) {
4178
4178
  let { instances: e } = t, n = [];
4179
4179
  for (let i in e)
4180
4180
  n.push(e[i].range);
@@ -4317,7 +4317,7 @@ class X {
4317
4317
  function mc(t) {
4318
4318
  let e = Ra(t, ".fc-scrollgrid-shrink"), n = 0;
4319
4319
  for (let i of e)
4320
- n = Math.max(n, ja(i));
4320
+ n = Math.max(n, Fa(i));
4321
4321
  return Math.ceil(n);
4322
4322
  }
4323
4323
  function ps(t, e) {
@@ -4399,7 +4399,7 @@ function gs(t) {
4399
4399
  let { stickyFooterScrollbar: e } = t;
4400
4400
  return (e == null || e === "auto") && (e = t.height === "auto" || t.viewHeight === "auto"), e;
4401
4401
  }
4402
- class jn extends T {
4402
+ class Fn extends T {
4403
4403
  constructor() {
4404
4404
  super(...arguments), this.processCols = C((e) => e, bc), this.renderMicroColGroup = C(Ec), this.scrollerRefs = new X(), this.scrollerElRefs = new X(this._handleScrollerEl.bind(this)), this.state = {
4405
4405
  shrinkWidth: null,
@@ -4489,7 +4489,7 @@ class jn extends T {
4489
4489
  return { forceYScrollbars: r, scrollerClientWidths: s, scrollerClientHeights: a };
4490
4490
  }
4491
4491
  }
4492
- jn.addStateEquality({
4492
+ Fn.addStateEquality({
4493
4493
  scrollerClientWidths: $,
4494
4494
  scrollerClientHeights: $
4495
4495
  });
@@ -4499,7 +4499,7 @@ function Dc(t, e) {
4499
4499
  return n;
4500
4500
  return null;
4501
4501
  }
4502
- class Fn extends T {
4502
+ class jn extends T {
4503
4503
  constructor() {
4504
4504
  super(...arguments), this.handleEl = (e) => {
4505
4505
  this.el = e, e && Oi(e, this.props.seg);
@@ -4539,7 +4539,7 @@ class Fn extends T {
4539
4539
  class ms extends T {
4540
4540
  render() {
4541
4541
  let { props: e, context: n } = this, { options: i } = n, { seg: r } = e, { ui: s } = r.eventRange, a = i.eventTimeFormat || e.defaultTimeFormat, l = qr(r, a, n, e.defaultDisplayEventTime, e.defaultDisplayEventEnd);
4542
- return p(Fn, Object.assign({}, e, { elTag: "a", elStyle: {
4542
+ return p(jn, Object.assign({}, e, { elTag: "a", elStyle: {
4543
4543
  borderColor: s.borderColor,
4544
4544
  backgroundColor: s.backgroundColor
4545
4545
  }, elAttrs: $r(r, n), defaultGenerator: Ac, timeText: l }), (o, d) => p(
@@ -4609,7 +4609,7 @@ function xc(t) {
4609
4609
  class vs extends T {
4610
4610
  render() {
4611
4611
  let { props: e } = this, { seg: n } = e;
4612
- return p(Fn, { elTag: "div", elClasses: ["fc-bg-event"], elStyle: { backgroundColor: n.eventRange.ui.backgroundColor }, defaultGenerator: Tc, seg: n, timeText: "", isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, isPast: e.isPast, isFuture: e.isFuture, isToday: e.isToday, disableDragging: !0, disableResizing: !0 });
4612
+ return p(jn, { elTag: "div", elClasses: ["fc-bg-event"], elStyle: { backgroundColor: n.eventRange.ui.backgroundColor }, defaultGenerator: Tc, seg: n, timeText: "", isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, isPast: e.isPast, isFuture: e.isFuture, isToday: e.isToday, disableDragging: !0, disableResizing: !0 });
4613
4613
  }
4614
4614
  }
4615
4615
  function Tc(t) {
@@ -4629,7 +4629,7 @@ const bs = (t) => p(te.Consumer, null, (e) => {
4629
4629
  function kc(t) {
4630
4630
  return t.text;
4631
4631
  }
4632
- const Ft = 10;
4632
+ const jt = 10;
4633
4633
  class Mc extends T {
4634
4634
  constructor() {
4635
4635
  super(...arguments), this.state = {
@@ -4673,7 +4673,7 @@ class Mc extends T {
4673
4673
  let { isRtl: e } = this.context, { alignmentEl: n, alignGridTop: i } = this.props, { rootEl: r } = this, s = lo(n);
4674
4674
  if (s) {
4675
4675
  let a = r.getBoundingClientRect(), l = i ? z(n, ".fc-scrollgrid").getBoundingClientRect().top : s.top, o = e ? s.right - a.width : s.left;
4676
- l = Math.max(l, Ft), o = Math.min(o, document.documentElement.clientWidth - Ft - a.width), o = Math.max(o, Ft);
4676
+ l = Math.max(l, jt), o = Math.min(o, document.documentElement.clientWidth - jt - a.width), o = Math.max(o, jt);
4677
4677
  let d = r.offsetParent.getBoundingClientRect();
4678
4678
  Oe(r, {
4679
4679
  top: l - d.top,
@@ -5201,7 +5201,7 @@ const Uc = [], Ds = {
5201
5201
  return `Show ${t} more event${t === 1 ? "" : "s"}`;
5202
5202
  }
5203
5203
  });
5204
- function jc(t) {
5204
+ function Fc(t) {
5205
5205
  let e = t.length > 0 ? t[0].code : "en", n = Uc.concat(t), i = {
5206
5206
  en: As
5207
5207
  };
@@ -5213,9 +5213,9 @@ function jc(t) {
5213
5213
  };
5214
5214
  }
5215
5215
  function Rs(t, e) {
5216
- return typeof t == "object" && !Array.isArray(t) ? xs(t.code, [t.code], t) : Fc(t, e);
5216
+ return typeof t == "object" && !Array.isArray(t) ? xs(t.code, [t.code], t) : jc(t, e);
5217
5217
  }
5218
- function Fc(t, e) {
5218
+ function jc(t, e) {
5219
5219
  let n = [].concat(t || []), i = Wc(n, e) || As;
5220
5220
  return xs(t, n, i);
5221
5221
  }
@@ -5473,10 +5473,10 @@ function Jc(t, e, n, i, r) {
5473
5473
  // will eventually fall back to buttonText
5474
5474
  };
5475
5475
  }
5476
- let ji = {};
5476
+ let Fi = {};
5477
5477
  function Kc(t) {
5478
- let e = JSON.stringify(t), n = ji[e];
5479
- return n === void 0 && (n = A(t), ji[e] = n), n;
5478
+ let e = JSON.stringify(t), n = Fi[e];
5479
+ return n === void 0 && (n = A(t), Fi[e] = n), n;
5480
5480
  }
5481
5481
  function ed(t, e) {
5482
5482
  switch (e.type) {
@@ -5673,10 +5673,10 @@ function pd(t, e) {
5673
5673
  }
5674
5674
  }
5675
5675
  function gd(t, e, n, i, r) {
5676
- let s = t.headerToolbar ? Fi(t.headerToolbar, t, e, n, i, r) : null, a = t.footerToolbar ? Fi(t.footerToolbar, t, e, n, i, r) : null;
5676
+ let s = t.headerToolbar ? ji(t.headerToolbar, t, e, n, i, r) : null, a = t.footerToolbar ? ji(t.footerToolbar, t, e, n, i, r) : null;
5677
5677
  return { header: s, footer: a };
5678
5678
  }
5679
- function Fi(t, e, n, i, r, s) {
5679
+ function ji(t, e, n, i, r, s) {
5680
5680
  let a = {}, l = [], o = !1;
5681
5681
  for (let d in t) {
5682
5682
  let c = t[d], h = md(c, e, n, i, r, s);
@@ -5963,7 +5963,7 @@ function Hd(t) {
5963
5963
  }
5964
5964
  class Ld {
5965
5965
  constructor(e) {
5966
- this.computeCurrentViewData = C(this._computeCurrentViewData), this.organizeRawLocales = C(jc), this.buildLocale = C(Rs), this.buildPluginHooks = Gc(), this.buildDateEnv = C(Bd), this.buildTheme = C(zd), this.parseToolbars = C(gd), this.buildViewSpecs = C(Xc), this.buildDateProfileGenerator = nt(Ud), this.buildViewApi = C(jd), this.buildViewUiProps = nt(Vd), this.buildEventUiBySource = C(Fd, $), this.buildEventUiBases = C(Wd), this.parseContextBusinessHours = nt(Gd), this.buildTitle = C(Pd), this.emitter = new Ct(), this.actionRunner = new Nd(this._handleAction.bind(this), this.updateData.bind(this)), this.currentCalendarOptionsInput = {}, this.currentCalendarOptionsRefined = {}, this.currentViewOptionsInput = {}, this.currentViewOptionsRefined = {}, this.currentCalendarOptionsRefiners = {}, this.optionsForRefining = [], this.optionsForHandling = [], this.getCurrentData = () => this.data, this.dispatch = (f) => {
5966
+ this.computeCurrentViewData = C(this._computeCurrentViewData), this.organizeRawLocales = C(Fc), this.buildLocale = C(Rs), this.buildPluginHooks = Gc(), this.buildDateEnv = C(Bd), this.buildTheme = C(zd), this.parseToolbars = C(gd), this.buildViewSpecs = C(Xc), this.buildDateProfileGenerator = nt(Ud), this.buildViewApi = C(Fd), this.buildViewUiProps = nt(Vd), this.buildEventUiBySource = C(jd, $), this.buildEventUiBases = C(Wd), this.parseContextBusinessHours = nt(Gd), this.buildTitle = C(Pd), this.emitter = new Ct(), this.actionRunner = new Nd(this._handleAction.bind(this), this.updateData.bind(this)), this.currentCalendarOptionsInput = {}, this.currentCalendarOptionsRefined = {}, this.currentViewOptionsInput = {}, this.currentViewOptionsRefined = {}, this.currentCalendarOptionsRefiners = {}, this.optionsForRefining = [], this.optionsForHandling = [], this.getCurrentData = () => this.data, this.dispatch = (f) => {
5967
5967
  this.actionRunner.request(f);
5968
5968
  }, this.props = e, this.actionRunner.pause();
5969
5969
  let n = {}, i = this.computeOptionsData(e.optionOverrides, n, e.calendarApi), r = i.calendarOptions.initialView || i.pluginHooks.initialView, s = this.computeCurrentViewData(r, i, e.optionOverrides, n);
@@ -6140,7 +6140,7 @@ class Ld {
6140
6140
  }
6141
6141
  function Bd(t, e, n, i, r, s, a, l) {
6142
6142
  let o = Rs(e || a.defaultCode, a.map);
6143
- return new Fo({
6143
+ return new jo({
6144
6144
  calendarSystem: "gregory",
6145
6145
  timeZone: t,
6146
6146
  namedTimeZoneImpl: s.namedTimeZonedImpl,
@@ -6157,13 +6157,13 @@ function zd(t, e) {
6157
6157
  return new n(t);
6158
6158
  }
6159
6159
  function Ud(t) {
6160
- let e = t.dateProfileGeneratorClass || Fr;
6160
+ let e = t.dateProfileGeneratorClass || jr;
6161
6161
  return new e(t);
6162
6162
  }
6163
- function jd(t, e, n) {
6163
+ function Fd(t, e, n) {
6164
6164
  return new vd(t, e, n);
6165
6165
  }
6166
- function Fd(t) {
6166
+ function jd(t) {
6167
6167
  return K(t, (e) => e.ui);
6168
6168
  }
6169
6169
  function Wd(t, e, n) {
@@ -6337,7 +6337,7 @@ class $d extends ke {
6337
6337
  }
6338
6338
  class Zd extends _e {
6339
6339
  constructor() {
6340
- super(...arguments), this.buildViewContext = C(mo), this.buildViewPropTransformers = C(Jd), this.buildToolbarProps = C(Xd), this.headerRef = j(), this.footerRef = j(), this.interactionsStore = {}, this.state = {
6340
+ super(...arguments), this.buildViewContext = C(mo), this.buildViewPropTransformers = C(Jd), this.buildToolbarProps = C(Xd), this.headerRef = F(), this.footerRef = F(), this.interactionsStore = {}, this.state = {
6341
6341
  viewLabelId: Et()
6342
6342
  }, this.registerInteractiveComponent = (e, n) => {
6343
6343
  let i = Go(e, n), a = [
@@ -6566,7 +6566,7 @@ class Hs extends T {
6566
6566
  class Ls extends T {
6567
6567
  render() {
6568
6568
  let { props: e, context: n } = this, { options: i } = n, { seg: r } = e, s = i.eventTimeFormat || Ns, a = qr(r, s, n, !0, e.defaultDisplayEventEnd);
6569
- return p(Fn, Object.assign({}, e, { elTag: "a", elClasses: ["fc-daygrid-event", "fc-daygrid-dot-event"], elAttrs: $r(e.seg, n), defaultGenerator: tu, timeText: a, isResizing: !1, isDateSelecting: !1 }));
6569
+ return p(jn, Object.assign({}, e, { elTag: "a", elClasses: ["fc-daygrid-event", "fc-daygrid-dot-event"], elAttrs: $r(e.seg, n), defaultGenerator: tu, timeText: a, isResizing: !1, isDateSelecting: !1 }));
6570
6570
  }
6571
6571
  }
6572
6572
  function tu(t) {
@@ -6604,7 +6604,7 @@ function iu(t) {
6604
6604
  const ru = L({ week: "narrow" });
6605
6605
  class su extends Z {
6606
6606
  constructor() {
6607
- super(...arguments), this.rootElRef = j(), this.state = {
6607
+ super(...arguments), this.rootElRef = F(), this.state = {
6608
6608
  dayNumberId: Et()
6609
6609
  }, this.handleRootEl = (e) => {
6610
6610
  ee(this.rootElRef, e), ee(this.props.elRef, e);
@@ -6801,7 +6801,7 @@ class uu extends Kr {
6801
6801
  }
6802
6802
  class Bs extends Z {
6803
6803
  constructor() {
6804
- super(...arguments), this.cellElRefs = new X(), this.frameElRefs = new X(), this.fgElRefs = new X(), this.segHarnessRefs = new X(), this.rootElRef = j(), this.state = {
6804
+ super(...arguments), this.cellElRefs = new X(), this.frameElRefs = new X(), this.fgElRefs = new X(), this.segHarnessRefs = new X(), this.rootElRef = F(), this.state = {
6805
6805
  framePositions: null,
6806
6806
  maxContentHeight: null,
6807
6807
  eventInstanceHeights: {}
@@ -6968,7 +6968,7 @@ class pu extends Z {
6968
6968
  }
6969
6969
  render() {
6970
6970
  let { props: e, context: n } = this, i = e.cells.length, r = this.splitBusinessHourSegs(e.businessHourSegs, i), s = this.splitBgEventSegs(e.bgEventSegs, i), a = this.splitFgEventSegs(e.fgEventSegs, i), l = this.splitDateSelectionSegs(e.dateSelectionSegs, i), o = this.splitEventDrag(e.eventDrag, i), d = this.splitEventResize(e.eventResize, i), c = i >= 7 && e.clientWidth ? e.clientWidth / n.options.aspectRatio / 6 : null;
6971
- return p(je, { unit: "day" }, (h, f) => p(N, null, e.cells.map((u, y) => p(Bs, {
6971
+ return p(Fe, { unit: "day" }, (h, f) => p(N, null, e.cells.map((u, y) => p(Bs, {
6972
6972
  ref: this.rowRefs.createRef(y),
6973
6973
  key: u.length ? u[0].date.toISOString() : y,
6974
6974
  showDayNumbers: i > 1,
@@ -7052,7 +7052,7 @@ function gu(t) {
7052
7052
  }
7053
7053
  class mu extends Z {
7054
7054
  constructor() {
7055
- super(...arguments), this.elRef = j(), this.needsScrollReset = !1;
7055
+ super(...arguments), this.elRef = F(), this.needsScrollReset = !1;
7056
7056
  }
7057
7057
  render() {
7058
7058
  let { props: e } = this, { dayMaxEventRows: n, dayMaxEvents: i, expandRows: r } = e, s = i === !0 || n === !0;
@@ -7121,14 +7121,14 @@ class yu extends os {
7121
7121
  }
7122
7122
  class zs extends Z {
7123
7123
  constructor() {
7124
- super(...arguments), this.slicer = new yu(), this.tableRef = j();
7124
+ super(...arguments), this.slicer = new yu(), this.tableRef = F();
7125
7125
  }
7126
7126
  render() {
7127
7127
  let { props: e, context: n } = this;
7128
7128
  return p(mu, Object.assign({ ref: this.tableRef }, this.slicer.sliceProps(e, e.dateProfile, e.nextDayThreshold, n, e.dayTableModel), { dateProfile: e.dateProfile, cells: e.dayTableModel.cells, colGroupNode: e.colGroupNode, tableMinWidth: e.tableMinWidth, renderRowIntro: e.renderRowIntro, dayMaxEvents: e.dayMaxEvents, dayMaxEventRows: e.dayMaxEventRows, showWeekNumbers: e.showWeekNumbers, expandRows: e.expandRows, headerAlignElRef: e.headerAlignElRef, clientWidth: e.clientWidth, clientHeight: e.clientHeight, forPrint: e.forPrint }));
7129
7129
  }
7130
7130
  }
7131
- class bu extends Fr {
7131
+ class bu extends jr {
7132
7132
  // Computes the date range that will be rendered
7133
7133
  buildRenderRange(e, n, i) {
7134
7134
  let r = super.buildRenderRange(e, n, i), { props: s } = this;
@@ -7153,7 +7153,7 @@ function Eu(t) {
7153
7153
  }
7154
7154
  class _u extends Z {
7155
7155
  constructor() {
7156
- super(...arguments), this.headerElRef = j();
7156
+ super(...arguments), this.headerElRef = F();
7157
7157
  }
7158
7158
  renderSimpleLayout(e, n) {
7159
7159
  let { props: i, context: r } = this, s = [], a = mt(r.options);
@@ -7174,7 +7174,7 @@ class _u extends Z {
7174
7174
  }), p(
7175
7175
  vt,
7176
7176
  { elClasses: ["fc-daygrid"], viewSpec: r.viewSpec },
7177
- p(jn, { liquid: !i.isHeightAuto && !i.forPrint, collapsibleWidth: i.forPrint, cols: [], sections: s })
7177
+ p(Fn, { liquid: !i.isHeightAuto && !i.forPrint, collapsibleWidth: i.forPrint, cols: [], sections: s })
7178
7178
  );
7179
7179
  }
7180
7180
  renderHScrollLayout(e, n, i, r) {
@@ -7217,7 +7217,7 @@ class _u extends Z {
7217
7217
  }
7218
7218
  class wu extends _u {
7219
7219
  constructor() {
7220
- super(...arguments), this.buildDayTableModel = C(Su), this.headerRef = j(), this.tableRef = j();
7220
+ super(...arguments), this.buildDayTableModel = C(Su), this.headerRef = F(), this.tableRef = F();
7221
7221
  }
7222
7222
  render() {
7223
7223
  let { options: e, dateProfileGenerator: n } = this.context, { props: i } = this, r = this.buildDayTableModel(i.dateProfile, n), s = e.dayHeaders && p(ss, { ref: this.headerRef, dateProfile: i.dateProfile, dates: r.headerDates, datesRepDistinctDays: r.rowCnt === 1 }), a = (l) => p(zs, { ref: this.tableRef, dateProfile: i.dateProfile, dayTableModel: r, businessHours: i.businessHours, dateSelection: i.dateSelection, eventStore: i.eventStore, eventUiBases: i.eventUiBases, eventSelection: i.eventSelection, eventDrag: i.eventDrag, eventResize: i.eventResize, nextDayThreshold: e.nextDayThreshold, colGroupNode: l.tableColGroupNode, tableMinWidth: l.tableMinWidth, dayMaxEvents: e.dayMaxEvents, dayMaxEventRows: e.dayMaxEventRows, showWeekNumbers: e.weekNumbers, expandRows: !i.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: l.clientWidth, clientHeight: l.clientHeight, forPrint: i.forPrint });
@@ -7322,7 +7322,7 @@ class Tu extends T {
7322
7322
  const ku = L({ week: "short" }), Mu = 5;
7323
7323
  class Iu extends Z {
7324
7324
  constructor() {
7325
- super(...arguments), this.allDaySplitter = new Au(), this.headerElRef = j(), this.rootElRef = j(), this.scrollerElRef = j(), this.state = {
7325
+ super(...arguments), this.allDaySplitter = new Au(), this.headerElRef = F(), this.rootElRef = F(), this.scrollerElRef = F(), this.state = {
7326
7326
  slatCoords: null
7327
7327
  }, this.handleScrollTopRequest = (e) => {
7328
7328
  let n = this.scrollerElRef.current;
@@ -7421,7 +7421,7 @@ class Iu extends Z {
7421
7421
  }), p(
7422
7422
  vt,
7423
7423
  { elRef: this.rootElRef, elClasses: ["fc-timegrid"], viewSpec: r.viewSpec },
7424
- p(jn, { liquid: !s.isHeightAuto && !s.forPrint, collapsibleWidth: s.forPrint, cols: [{ width: "shrink" }], sections: a })
7424
+ p(Fn, { liquid: !s.isHeightAuto && !s.forPrint, collapsibleWidth: s.forPrint, cols: [{ width: "shrink" }], sections: a })
7425
7425
  );
7426
7426
  }
7427
7427
  renderHScrollLayout(e, n, i, r, s, a, l) {
@@ -7499,7 +7499,7 @@ class Iu extends Z {
7499
7499
  p(
7500
7500
  "div",
7501
7501
  { className: "fc-timegrid-now-indicator-container" },
7502
- p(je, {
7502
+ p(Fe, {
7503
7503
  unit: y ? "minute" : "day"
7504
7504
  /* hacky */
7505
7505
  }, (E) => {
@@ -7601,7 +7601,7 @@ class Pu extends T {
7601
7601
  }
7602
7602
  class Hu extends T {
7603
7603
  constructor() {
7604
- super(...arguments), this.rootElRef = j(), this.slatElRefs = new X();
7604
+ super(...arguments), this.rootElRef = F(), this.slatElRefs = new X();
7605
7605
  }
7606
7606
  render() {
7607
7607
  let { props: e, context: n } = this;
@@ -7668,7 +7668,7 @@ class Bu extends T {
7668
7668
  return p(Es, { elClasses: ["fc-timegrid-more-link"], elStyle: {
7669
7669
  top: e.top,
7670
7670
  bottom: e.bottom
7671
- }, allDayDate: null, moreCnt: e.hiddenSegs.length, allSegs: e.hiddenSegs, hiddenSegs: e.hiddenSegs, extraDateSpan: e.extraDateSpan, dateProfile: e.dateProfile, todayRange: e.todayRange, popoverContent: () => Fs(e.hiddenSegs, e), defaultGenerator: zu, forceTimed: !0 }, (n) => p(n, { elTag: "div", elClasses: ["fc-timegrid-more-link-inner", "fc-sticky"] }));
7671
+ }, allDayDate: null, moreCnt: e.hiddenSegs.length, allSegs: e.hiddenSegs, hiddenSegs: e.hiddenSegs, extraDateSpan: e.extraDateSpan, dateProfile: e.dateProfile, todayRange: e.todayRange, popoverContent: () => js(e.hiddenSegs, e), defaultGenerator: zu, forceTimed: !0 }, (n) => p(n, { elTag: "div", elClasses: ["fc-timegrid-more-link-inner", "fc-sticky"] }));
7672
7672
  }
7673
7673
  }
7674
7674
  function zu(t) {
@@ -7677,10 +7677,10 @@ function zu(t) {
7677
7677
  function Uu(t, e, n) {
7678
7678
  let i = new Kr();
7679
7679
  e != null && (i.strictOrder = e), n != null && (i.maxStackCnt = n);
7680
- let r = i.addSegs(t), s = Wo(r), a = ju(i);
7680
+ let r = i.addSegs(t), s = Wo(r), a = Fu(i);
7681
7681
  return a = Gu(a, 1), { segRects: Yu(a), hiddenGroups: s };
7682
7682
  }
7683
- function ju(t) {
7683
+ function Fu(t) {
7684
7684
  const { entriesByLevel: e } = t, n = qn((i, r) => i + ":" + r, (i, r) => {
7685
7685
  let s = Vu(t, i, r), a = Qi(s, n), l = e[i][r];
7686
7686
  return [
@@ -7697,13 +7697,13 @@ function Qi(t, e) {
7697
7697
  let { level: n, lateralStart: i, lateralEnd: r } = t, s = i, a = [];
7698
7698
  for (; s < r; )
7699
7699
  a.push(e(n, s)), s += 1;
7700
- return a.sort(Fu), [
7700
+ return a.sort(ju), [
7701
7701
  a.map(Wu),
7702
7702
  a[0][1]
7703
7703
  // first item's pressure
7704
7704
  ];
7705
7705
  }
7706
- function Fu(t, e) {
7706
+ function ju(t, e) {
7707
7707
  return e[1] - t[1];
7708
7708
  }
7709
7709
  function Wu(t) {
@@ -7813,7 +7813,7 @@ const Qu = L({
7813
7813
  minute: "2-digit",
7814
7814
  meridiem: !1
7815
7815
  });
7816
- class js extends T {
7816
+ class Fs extends T {
7817
7817
  render() {
7818
7818
  return p(ms, Object.assign({}, this.props, { elClasses: [
7819
7819
  "fc-timegrid-event",
@@ -7856,7 +7856,7 @@ class $u extends T {
7856
7856
  }
7857
7857
  renderFgSegs(e, n, i, r, s, a) {
7858
7858
  let { props: l } = this;
7859
- return l.forPrint ? Fs(e, l) : this.renderPositionedFgSegs(e, n, i, r, s, a);
7859
+ return l.forPrint ? js(e, l) : this.renderPositionedFgSegs(e, n, i, r, s, a);
7860
7860
  }
7861
7861
  renderPositionedFgSegs(e, n, i, r, s, a) {
7862
7862
  let { eventMaxStack: l, eventShortHeight: o, eventOrderStrict: d, eventMinHeight: c } = this.context.options, { date: h, slatCoords: f, eventSelection: u, todayRange: y, nowDate: b } = this.props, E = i || r || s, g = $i(e, h, f, c), { segPlacements: _, hiddenGroups: S } = qu(e, g, d, l);
@@ -7869,7 +7869,7 @@ class $u extends T {
7869
7869
  return p(
7870
7870
  "div",
7871
7871
  { className: "fc-timegrid-event-harness" + (Xs ? " fc-timegrid-event-harness-inset" : ""), key: a || P, style: Object.assign(Object.assign({ visibility: R ? "" : "hidden" }, ie), Me) },
7872
- p(js, Object.assign({ seg: I, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: P === u, isShort: Js }, le(I, y, b)))
7872
+ p(Fs, Object.assign({ seg: I, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: P === u, isShort: Js }, le(I, y, b)))
7873
7873
  );
7874
7874
  })
7875
7875
  );
@@ -7916,14 +7916,14 @@ class $u extends T {
7916
7916
  return r && !e.stackForward && (d[n ? "marginLeft" : "marginRight"] = 10 * 2), d;
7917
7917
  }
7918
7918
  }
7919
- function Fs(t, { todayRange: e, nowDate: n, eventSelection: i, eventDrag: r, eventResize: s }) {
7919
+ function js(t, { todayRange: e, nowDate: n, eventSelection: i, eventDrag: r, eventResize: s }) {
7920
7920
  let a = (r ? r.affectedInstances : null) || (s ? s.affectedInstances : null) || {};
7921
7921
  return p(N, null, t.map((l) => {
7922
7922
  let o = l.eventRange.instance.instanceId;
7923
7923
  return p(
7924
7924
  "div",
7925
7925
  { key: o, style: { visibility: a[o] ? "hidden" : "" } },
7926
- p(js, Object.assign({ seg: l, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: o === i, isShort: !1 }, le(l, e, n)))
7926
+ p(Fs, Object.assign({ seg: l, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: o === i, isShort: !1 }, le(l, e, n)))
7927
7927
  );
7928
7928
  }));
7929
7929
  }
@@ -7938,7 +7938,7 @@ function Zu(t, e) {
7938
7938
  }
7939
7939
  class Xu extends T {
7940
7940
  constructor() {
7941
- super(...arguments), this.splitFgEventSegs = C(Ie), this.splitBgEventSegs = C(Ie), this.splitBusinessHourSegs = C(Ie), this.splitNowIndicatorSegs = C(Ie), this.splitDateSelectionSegs = C(Ie), this.splitEventDrag = C(qi), this.splitEventResize = C(qi), this.rootElRef = j(), this.cellElRefs = new X();
7941
+ super(...arguments), this.splitFgEventSegs = C(Ie), this.splitBgEventSegs = C(Ie), this.splitBusinessHourSegs = C(Ie), this.splitNowIndicatorSegs = C(Ie), this.splitDateSelectionSegs = C(Ie), this.splitEventDrag = C(qi), this.splitEventResize = C(qi), this.rootElRef = F(), this.cellElRefs = new X();
7942
7942
  }
7943
7943
  render() {
7944
7944
  let { props: e, context: n } = this, i = n.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), r = e.cells.length, s = this.splitFgEventSegs(e.fgEventSegs, r), a = this.splitBgEventSegs(e.bgEventSegs, r), l = this.splitBusinessHourSegs(e.businessHourSegs, r), o = this.splitNowIndicatorSegs(e.nowIndicatorSegs, r), d = this.splitDateSelectionSegs(e.dateSelectionSegs, r), c = this.splitEventDrag(e.eventDrag, r), h = this.splitEventResize(e.eventResize, r);
@@ -8083,11 +8083,11 @@ class tf extends os {
8083
8083
  }
8084
8084
  class nf extends Z {
8085
8085
  constructor() {
8086
- super(...arguments), this.buildDayRanges = C(rf), this.slicer = new tf(), this.timeColsRef = j();
8086
+ super(...arguments), this.buildDayRanges = C(rf), this.slicer = new tf(), this.timeColsRef = F();
8087
8087
  }
8088
8088
  render() {
8089
8089
  let { props: e, context: n } = this, { dateProfile: i, dayTableModel: r } = e, { nowIndicator: s, nextDayThreshold: a } = n.options, l = this.buildDayRanges(r, i, n.dateEnv);
8090
- return p(je, { unit: s ? "minute" : "day" }, (o, d) => p(Ku, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(e, i, null, n, l), { forPrint: e.forPrint, axis: e.axis, dateProfile: i, slatMetas: e.slatMetas, slotDuration: e.slotDuration, cells: r.cells[0], tableColGroupNode: e.tableColGroupNode, tableMinWidth: e.tableMinWidth, clientWidth: e.clientWidth, clientHeight: e.clientHeight, expandRows: e.expandRows, nowDate: o, nowIndicatorSegs: s && this.slicer.sliceNowDate(o, i, a, n, l), todayRange: d, onScrollTopRequest: e.onScrollTopRequest, onSlatCoords: e.onSlatCoords })));
8090
+ return p(Fe, { unit: s ? "minute" : "day" }, (o, d) => p(Ku, Object.assign({ ref: this.timeColsRef }, this.slicer.sliceProps(e, i, null, n, l), { forPrint: e.forPrint, axis: e.axis, dateProfile: i, slatMetas: e.slatMetas, slotDuration: e.slotDuration, cells: r.cells[0], tableColGroupNode: e.tableColGroupNode, tableMinWidth: e.tableMinWidth, clientWidth: e.clientWidth, clientHeight: e.clientHeight, expandRows: e.expandRows, nowDate: o, nowIndicatorSegs: s && this.slicer.sliceNowDate(o, i, a, n, l), todayRange: d, onScrollTopRequest: e.onScrollTopRequest, onSlatCoords: e.onSlatCoords })));
8091
8091
  }
8092
8092
  }
8093
8093
  function rf(t, e, n) {
@@ -8483,7 +8483,7 @@ class vf {
8483
8483
  return n;
8484
8484
  }
8485
8485
  }
8486
- class Fe extends Yo {
8486
+ class je extends Yo {
8487
8487
  constructor(e, n) {
8488
8488
  super(e), this.containerEl = e, this.delay = null, this.minDistance = 0, this.touchScrollAllowed = !0, this.mirrorNeedsRevert = !1, this.isInteracting = !1, this.isDragging = !1, this.isDelayEnded = !1, this.isDistanceSurpassed = !1, this.delayTimeoutId = null, this.onPointerDown = (r) => {
8489
8489
  this.isDragging || (this.isInteracting = !0, this.isDelayEnded = !1, this.isDistanceSurpassed = !1, Ia(document.body), Na(document.body), r.isTouch || r.origEvent.preventDefault(), this.emitter.trigger("pointerdown", r), this.isInteracting && // not destroyed via pointerdown handler
@@ -8562,7 +8562,7 @@ class yf {
8562
8562
  isWithinClipping(e, n) {
8563
8563
  let i = { left: e, top: n };
8564
8564
  for (let r of this.scrollCaches)
8565
- if (!bf(r.getEventTarget()) && !Fl(i, r.clientRect))
8565
+ if (!bf(r.getEventTarget()) && !jl(i, r.clientRect))
8566
8566
  return !1;
8567
8567
  return !0;
8568
8568
  }
@@ -8664,7 +8664,7 @@ class _f extends ke {
8664
8664
  o.emitter.trigger("dateClick", d);
8665
8665
  }
8666
8666
  }
8667
- }, this.dragging = new Fe(e.el), this.dragging.autoScroller.isEnabled = !1;
8667
+ }, this.dragging = new je(e.el), this.dragging.autoScroller.isEnabled = !1;
8668
8668
  let n = this.hitDragging = new Dt(this.dragging, Ln(e));
8669
8669
  n.emitter.on("pointerdown", this.handlePointerDown), n.emitter.on("dragend", this.handleDragEnd);
8670
8670
  }
@@ -8689,7 +8689,7 @@ class wf extends ke {
8689
8689
  }, this.handlePointerUp = (a) => {
8690
8690
  this.dragSelection && (Wr(this.dragSelection, a, this.component.context), this.dragSelection = null);
8691
8691
  };
8692
- let { component: n } = e, { options: i } = n.context, r = this.dragging = new Fe(e.el);
8692
+ let { component: n } = e, { options: i } = n.context, r = this.dragging = new je(e.el);
8693
8693
  r.touchScrollAllowed = !1, r.minDistance = i.selectMinDistance || 0, r.autoScroller.isEnabled = i.dragScroll;
8694
8694
  let s = this.hitDragging = new Dt(this.dragging, Ln(e));
8695
8695
  s.emitter.on("pointerdown", this.handlePointerDown), s.emitter.on("dragstart", this.handleDragStart), s.emitter.on("hitupdate", this.handleHitUpdate), s.emitter.on("pointerup", this.handlePointerUp);
@@ -8824,7 +8824,7 @@ class We extends ke {
8824
8824
  }
8825
8825
  this.cleanup();
8826
8826
  };
8827
- let { component: n } = this, { options: i } = n.context, r = this.dragging = new Fe(e.el);
8827
+ let { component: n } = this, { options: i } = n.context, r = this.dragging = new je(e.el);
8828
8828
  r.pointer.selector = We.SELECTOR, r.touchScrollAllowed = !1, r.autoScroller.isEnabled = i.dragScroll;
8829
8829
  let s = this.hitDragging = new Dt(this.dragging, an);
8830
8830
  s.useSubjectCenter = e.useEventCenter, s.emitter.on("pointerdown", this.handlePointerDown), s.emitter.on("dragstart", this.handleDragStart), s.emitter.on("hitupdate", this.handleHitUpdate), s.emitter.on("pointerup", this.handlePointerUp), s.emitter.on("dragend", this.handleDragEnd);
@@ -8925,7 +8925,7 @@ class Rf extends ke {
8925
8925
  a.emitter.trigger("_noEventResize");
8926
8926
  this.draggingSeg = null, this.relevantEvents = null, this.validMutation = null;
8927
8927
  };
8928
- let { component: n } = e, i = this.dragging = new Fe(e.el);
8928
+ let { component: n } = e, i = this.dragging = new je(e.el);
8929
8929
  i.pointer.selector = ".fc-event-resizer", i.touchScrollAllowed = !1, i.autoScroller.isEnabled = n.context.options.dragScroll;
8930
8930
  let r = this.hitDragging = new Dt(this.dragging, Ln(e));
8931
8931
  r.emitter.on("pointerdown", this.handlePointerDown), r.emitter.on("dragstart", this.handleDragStart), r.emitter.on("hitupdate", this.handleHitUpdate), r.emitter.on("dragend", this.handleDragEnd);
@@ -8992,7 +8992,7 @@ var If = ne({
8992
8992
  name: "@fullcalendar/interaction",
8993
8993
  componentInteractions: [_f, wf, We, Rf],
8994
8994
  calendarInteractions: [Tf],
8995
- elementDraggingImpl: Fe,
8995
+ elementDraggingImpl: je,
8996
8996
  optionRefiners: kf,
8997
8997
  listenerRefiners: Mf
8998
8998
  });
@@ -9215,6 +9215,10 @@ const Je = {
9215
9215
  }
9216
9216
  (l = this.selectedEvent) != null && l.group_event_info && (this.selectedEvent.group_event_info.rrule = o);
9217
9217
  }
9218
+ if (n === "event-capacity") {
9219
+ const o = parseInt(e);
9220
+ o < 1 || o > 500 || isNaN(o) ? (this.formError = x.t("fixFormErrors"), this.internals.setValidity({ customError: !0 }, this.formError)) : (this.formError = "", this.internals.setValidity({ customError: !1 }, ""));
9221
+ }
9218
9222
  }
9219
9223
  timeWindowFormErrorHandler(t) {
9220
9224
  t.detail.key === "event-timeslot" ? (this.formError = t.detail.message, this.internals.setValidity({ customError: !0 }, t.detail.message)) : (this.formError = "", this.internals.setValidity({}));
@@ -9235,11 +9239,7 @@ const Je = {
9235
9239
  "show-event": this.showEditEventDetails || this.showCreateEventDetails
9236
9240
  } }, m("div", { class: "calendar-header" }, m("div", { class: "calendar-header__title" }, m("div", { class: "calendar-header-prev-next" }, m("button", { onClick: () => this.handlePrevNextClick("prev"), class: { "chevron-left": !0, button: !0 } }, " ", m("chevron-icon", null)), m("button", { onClick: () => this.handlePrevNextClick("next"), class: { "chevron-right": !0, button: !0 } }, " ", m("chevron-icon", null))), m("span", null, this.selectedDateRangeString)), m("div", { class: "calendar-header__current-calendar" }, (e == null ? void 0 : e.name) || (e == null ? void 0 : e.id), "'s calendar"), m("div", { class: "calendar-header__view-options" }, m("button", { class: { selected: ((s = this.calendar) == null ? void 0 : s.view.type) === Je.day }, onClick: () => this.setView("day") }, "Day"), m("button", { class: { selected: ((a = this.calendar) == null ? void 0 : a.view.type) === Je.week }, onClick: () => this.setView("week") }, "Week"), m("button", { class: { selected: ((l = this.calendar) == null ? void 0 : l.view.type) === Je.month }, onClick: () => this.setView("month") }, "Month"))), m("div", { ref: (g) => this.calendarEl = g })), this.showEditOptions && m("div", { class: "edit-options action-options", onClick: () => this.showEditOptions = !1 }, m("div", { class: "edit-options__card action-options__card" }, m("div", { class: "edit-options__header action-options__header" }, m("h3", null, "Actions"), m("button-component", { tooltip: "Close", id: "close-edit-options", disabled: this.isLoading, variant: "invisible", onClick: (g) => {
9237
9241
  g.preventDefault(), g.stopImmediatePropagation(), this.showEditOptions = !1;
9238
- } }, m("close-icon", null))), m("div", { class: "edit-options__content action-options__content" }, m("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name }, this.editOptions.map((g) => g.value.toString() ? m("li", { class: { disabled: !!this.isLoading }, tabindex: "0", key: g.value, id: g.value, onClick: (_) => this.handleEditOptionSelected(_, g), role: "option" }, this.isLoading && this.loadingOptions.delete === g.value ? "Deleting..." : g.label) : null))))), this.showConfirmDiscardUnsavedChangesModal && m("div", { class: "discard-changes action-options", onClick: () => this.showUpdateOptions = !1 }, m("div", { class: "discard-changes__card action-options__card" }, m("button-component", { tooltip: "Close", id: "close-discard-changes", variant: "invisible", disabled: this.isLoading, onClick: (g) => {
9239
- g.preventDefault(), g.stopImmediatePropagation(), this.showConfirmDiscardUnsavedChangesModal = !1;
9240
- } }, m("close-icon", null)), m("div", { class: "discard-changes__content action-options__content" }, m("h3", { slot: "card-title", part: "nfbf__title" }, "Discard unsaved changes?")), m("div", { class: "discard-changes__footer action-options__footer" }, m("button-component", { variant: "basic", onClick: (g) => this.showConfirmDiscardUnsavedChangesModal = !1, part: "nfbf__button-outline nfbf__cancel-cta" }, `${x.t("deleteSchedulingPageCancelButton")}`), m("button-component", { variant: "destructive", onClick: (g) => {
9241
- g.preventDefault(), g.stopImmediatePropagation(), this.showConfirmDiscardUnsavedChangesModal = !1, this.unsavedChanges = !1, this.showEditEventDetails = !1, this.showCreateEventDetails = !1, this.selectedEvent = null, this.createNewGroupEventTimeslot = null, this.formError = "";
9242
- }, part: "nfbf__button-outline nfbf__reschedule-cta" }, "Discard")))), this.showUpdateOptions && m("div", { class: "update-options action-options", onClick: () => this.showUpdateOptions = !1 }, m("div", { class: "update-options__card action-options__card" }, m("button-component", { tooltip: "Close", id: "close-update-options", variant: "invisible", disabled: this.isLoading, onClick: (g) => {
9242
+ } }, m("close-icon", null))), m("div", { class: "edit-options__content action-options__content" }, m("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name }, this.editOptions.map((g) => g.value.toString() ? m("li", { class: { disabled: !!this.isLoading }, tabindex: "0", key: g.value, id: g.value, onClick: (_) => this.handleEditOptionSelected(_, g), role: "option" }, this.isLoading && this.loadingOptions.delete === g.value ? "Deleting..." : g.label) : null))))), this.showUpdateOptions && m("div", { class: "update-options action-options", onClick: () => this.showUpdateOptions = !1 }, m("div", { class: "update-options__card action-options__card" }, m("button-component", { tooltip: "Close", id: "close-update-options", variant: "invisible", disabled: this.isLoading, onClick: (g) => {
9243
9243
  g.preventDefault(), g.stopImmediatePropagation(), this.showUpdateOptions = !1;
9244
9244
  } }, m("close-icon", null)), m("div", { class: "update-options__content action-options__content" }, m("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name }, this.updateOptions.map((g) => g.value.toString() ? m("li", { class: { disabled: !!this.isLoading }, tabindex: "0", key: g.value, id: g.value, role: "option", onClick: (_) => this.handleUpdateGroupEvent(_, g) }, this.isLoading && this.loadingOptions.update === g.value ? "Updating..." : g.label) : null))))), this.showDeleteOptions && m("div", { class: "delete-options action-options", onClick: () => this.showDeleteOptions = !1 }, m("div", { class: "delete-options__card action-options__card" }, m("button-component", { tooltip: "Close", id: "close-delete-options", variant: "invisible", disabled: this.isLoading, onClick: (g) => {
9245
9245
  g.preventDefault(), g.stopImmediatePropagation(), this.showDeleteOptions = !1;
@@ -9265,9 +9265,13 @@ const Je = {
9265
9265
  "event-details": !0
9266
9266
  } }, m("nylas-event-info", null, m("div", { slot: "inputs", class: "event-details-form-inputs" }, m("nylas-event-title", { eventTitle: "New group event", exportparts: "net, net__title, net__input_group, net__input_wrapper, net__input" }), m("nylas-event-description", { hideAutoPopulateButton: !0, exportparts: "ned, ned__title, ned__input_group, ned__input_wrapper, ned__input" }), m("nylas-event-location", { userProvider: (u = this.currentUser) == null ? void 0 : u.provider, exportparts: "nel, nel__title, nel__input_group, nel__input_wrapper, nel__input, nel__conferencing" }), m("nylas-event-timeslot", { name: "event-timeslot", initialValue: this.createNewGroupEventTimeslot, exportparts: "nets, nets__title, nets__input_group, nets__input_wrapper, nets__input, nets__timezone, nets__recurrence" }), m("nylas-event-capacity", { name: "event-capacity", exportparts: "nec, nec__title, nec__input_group, nec__input_wrapper, nec__input" }))), m("nylas-additional-participants", { name: "participants", eventParticipants: [{ name: ((y = this.currentUser) == null ? void 0 : y.name) || ((b = this.currentUser) == null ? void 0 : b.email), email: ((E = this.currentUser) == null ? void 0 : E.email) || "", is_organizer: !0 }], exportparts: "nadtnlpart, nadtnlpart__title, nadtnlpart__subtitle, nadtnlpart__content, nadtnlpart__input_group, nadtnlpart__input_wrapper, nadtnlpart__input, nadtnlpart__remove-participant" })), m("div", { class: "event-details-footer" }, m("div", { class: "event-details-footer__error" }, m("p", null, this.formError)), m("div", { class: "event-details-footer__helper-text" }, m("p", null, this.unsavedChanges && !this.isLoading ? "Unsaved changes" : "")), m("div", { class: "event-details-footer__actions" }, m("button-component", { variant: "basic", disabled: this.isLoading, onClick: (g) => {
9267
9267
  g.preventDefault(), g.stopImmediatePropagation(), this.unsavedChanges ? this.showConfirmDiscardUnsavedChangesModal = !0 : (this.showCreateEventDetails = !1, this.createNewGroupEventTimeslot = null, this.selectedEvent = null, this.unsavedChanges = !1);
9268
- } }, "Cancel"), m("button-component", { variant: "primary", disabled: this.isLoading, isLoading: this.isLoading, onClick: (g) => {
9268
+ } }, "Cancel"), m("button-component", { variant: "primary", disabled: this.isLoading || this.formError !== "", isLoading: this.isLoading, onClick: (g) => {
9269
9269
  this.handleCreateGroupEvent(g);
9270
- } }, "Create")))))));
9270
+ } }, "Create"))))), this.showConfirmDiscardUnsavedChangesModal && m("div", { class: "discard-changes action-options", onClick: () => this.showUpdateOptions = !1 }, m("div", { class: "discard-changes__card action-options__card" }, m("button-component", { tooltip: "Close", id: "close-discard-changes", variant: "invisible", disabled: this.isLoading, onClick: (g) => {
9271
+ g.preventDefault(), g.stopImmediatePropagation(), this.showConfirmDiscardUnsavedChangesModal = !1;
9272
+ } }, m("close-icon", null)), m("div", { class: "discard-changes__content action-options__content" }, m("h3", { slot: "card-title", part: "nfbf__title" }, "Discard unsaved changes?")), m("div", { class: "discard-changes__footer action-options__footer" }, m("button-component", { variant: "basic", onClick: (g) => this.showConfirmDiscardUnsavedChangesModal = !1, part: "nfbf__button-outline nfbf__cancel-cta" }, `${x.t("deleteSchedulingPageCancelButton")}`), m("button-component", { variant: "destructive", onClick: (g) => {
9273
+ g.preventDefault(), g.stopImmediatePropagation(), this.showConfirmDiscardUnsavedChangesModal = !1, this.unsavedChanges = !1, this.showEditEventDetails = !1, this.showCreateEventDetails = !1, this.selectedEvent = null, this.createNewGroupEventTimeslot = null, this.formError = "";
9274
+ }, part: "nfbf__button-outline nfbf__reschedule-cta" }, "Discard"))))));
9271
9275
  }
9272
9276
  static get formAssociated() {
9273
9277
  return !0;
@@ -9351,7 +9355,7 @@ Pf([
9351
9355
  Gt("design:returntype", void 0)
9352
9356
  ], Qs.prototype, "render", null);
9353
9357
  Qs.style = Nf;
9354
- const Lf = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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;width:inherit}.nylas-event-capacity{display:flex;flex-direction:column;gap:4px}.nylas-event-capacity label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-capacity label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-capacity label span.label-icon{margin-left:4px}.nylas-event-capacity label span.label-icon tooltip-component{display:flex}.nylas-event-capacity label tooltip-component::part(tc__content){left:50px}.nylas-event-capacity__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-capacity__wrapper input-component{width:auto}.nylas-event-capacity__wrapper input-component::part(ic__input){border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:80px}', Bf = Lf;
9358
+ const Lf = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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;width:inherit}.nylas-event-capacity{display:flex;flex-direction:column;gap:4px}.nylas-event-capacity label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-capacity label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-capacity label span.label-icon{margin-left:4px}.nylas-event-capacity label span.label-icon tooltip-component{display:flex}.nylas-event-capacity label tooltip-component::part(tc__content){left:50px}.nylas-event-capacity__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-capacity__wrapper input-component{width:auto}.nylas-event-capacity__wrapper input-component::part(ic__input){border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:80px}.nylas-event-capacity__wrapper input-component::part(ic__input--error){border:1px solid var(--nylas-error)}.nylas-event-capacity__wrapper input-component::part(ic__label--error){position:relative;margin-bottom:24px}.nylas-event-capacity__wrapper input-component::part(ic__error_message){position:absolute;top:54px;width:max-content}.nylas-event-capacity__wrapper span.attendees.error{margin-top:-24px}', Bf = Lf;
9355
9359
  var zf = function(t, e, n, i) {
9356
9360
  var r = arguments.length, s = r < 3 ? e : i === null ? i = Object.getOwnPropertyDescriptor(e, n) : i, a;
9357
9361
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -9366,7 +9370,7 @@ var zf = function(t, e, n, i) {
9366
9370
  };
9367
9371
  const $s = class {
9368
9372
  constructor(t) {
9369
- un(this, t), this.valueChanged = Y(this, "valueChanged", 7), t.$hostElement$["s-ei"] ? this.internals = t.$hostElement$["s-ei"] : (this.internals = t.$hostElement$.attachInternals(), t.$hostElement$["s-ei"] = this.internals), this.name = "event-capacity", this.capacity = void 0, this.selectedLanguage = void 0, this.selectedEventCapacity = void 0;
9373
+ un(this, t), this.valueChanged = Y(this, "valueChanged", 7), t.$hostElement$["s-ei"] ? this.internals = t.$hostElement$["s-ei"] : (this.internals = t.$hostElement$.attachInternals(), t.$hostElement$["s-ei"] = this.internals), this.name = "event-capacity", this.capacity = void 0, this.selectedLanguage = void 0, this.selectedEventCapacity = void 0, this.error = "";
9370
9374
  }
9371
9375
  connectedCallback() {
9372
9376
  B("nylas-event-capacity", "connectedCallback");
@@ -9400,11 +9404,18 @@ const $s = class {
9400
9404
  }
9401
9405
  async nylasFormInputChangeHandler(t) {
9402
9406
  const { name: e, value: n } = t.detail;
9403
- e === "event-capacity" && (this.selectedEventCapacity = parseInt(n), this.internals.setFormValue(n.toString(), this.name), this.valueChanged.emit({ value: n.toString(), name: this.name }));
9407
+ if (e === "event-capacity") {
9408
+ const i = parseInt(n);
9409
+ if (i < 1 || i > 500 || isNaN(i)) {
9410
+ this.error = x.t("fixFormErrors"), this.internals.setValidity({ customError: !0 }, this.error), this.valueChanged.emit({ value: n.toString(), name: this.name });
9411
+ return;
9412
+ }
9413
+ this.error = "", this.internals.setValidity({ customError: !1 }, ""), this.selectedEventCapacity = parseInt(n), this.internals.setFormValue(n.toString(), this.name), this.valueChanged.emit({ value: n.toString(), name: this.name });
9414
+ }
9404
9415
  }
9405
9416
  render() {
9406
9417
  const t = typeof this.selectedEventCapacity < "u";
9407
- return m(fn, { key: "e2debc0469569f51e10fd9c0604e7d62c4db6b39" }, m("div", { key: "49c4a101da37906bf5f18446190729e141c7451c", class: "nylas-event-capacity", part: "necapacity" }, m("label", { key: "9d6d299b6d4b6d05d08b24d1ce73f24ea056815c", htmlFor: "event-capacity" }, m("span", { key: "1b81652fd174559d8bcfc4a49193b233a69a967e" }, x.t("nylasEventCapacity.headerTitle"), m("span", { key: "45a31e0e9e4e771bd36653e375e37acc00fd9895", class: "required" }, "*")), m("tooltip-component", { key: "b83eeb0255d145363fe49b489908c6e17f091e07" }, m("info-icon", { key: "d595bc37faa4830dd047d01b69e850d70532b7a0", slot: "tooltip-icon" }), m("span", { key: "f7d4241b10814b1c6e7d09f54a2da1ce0b7b1d72", slot: "tooltip-content" }, x.t("nylasEventCapacity.tooltip.desc")))), t && m("div", { class: "nylas-event-capacity__wrapper" }, m("input-component", { name: "event-capacity", id: "event-capacity", type: "number", minValue: 1, required: !1, exportparts: "ic_input: necapacity__input-textfield", defaultValue: typeof this.selectedEventCapacity == "number" ? this.selectedEventCapacity.toString() : "10" }), m("span", null, x.t("nylasEventCapacity.attendees")))));
9418
+ return m(fn, { key: "b0eebdd8854645010038e0e03bfa94c851d5a859" }, m("div", { key: "6d7a7f053c3b7e166480eefbe5ef1df178552180", class: "nylas-event-capacity", part: "necapacity" }, m("label", { key: "05f77a19d88d300aafb73cf6aecf83c4c8e92679", htmlFor: "event-capacity" }, m("span", { key: "18fbc5bf61b42b39f9ad0bacba4fb4cb42392e43" }, x.t("nylasEventCapacity.headerTitle"), m("span", { key: "1e42bd3df3cbb5f9e0b7a2fac118abed3648a2a5", class: "required" }, "*")), m("tooltip-component", { key: "e0fa3f3557c575dbaf7e989e7eeeb956fd4ee55b" }, m("info-icon", { key: "952d5cfb9695a0005b06fb8539ae84c38bfe566e", slot: "tooltip-icon" }), m("span", { key: "aacb7c0d1a2904a9675c75d51cf7d082e3bf1d3e", slot: "tooltip-content" }, x.t("nylasEventCapacity.tooltip.desc")))), t && m("div", { class: "nylas-event-capacity__wrapper" }, m("input-component", { name: "event-capacity", id: "event-capacity", type: "number", pattern: /^[0-9]*$/, patternError: x.t("invalidInputFormat", { field: "Event capacity" }), minValue: 1, maxValue: 500, required: !1, exportparts: "ic_input: necapacity__input-textfield", defaultValue: typeof this.selectedEventCapacity == "number" ? this.selectedEventCapacity.toString() : "10" }), m("span", { class: this.error ? "attendees error" : "attendees" }, x.t("nylasEventCapacity.attendees")))));
9408
9419
  }
9409
9420
  static get formAssociated() {
9410
9421
  return !0;
@@ -9436,8 +9447,8 @@ zf([
9436
9447
  qt("design:returntype", void 0)
9437
9448
  ], $s.prototype, "render", null);
9438
9449
  $s.style = Bf;
9439
- const Uf = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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;width:inherit}div.nylas-event-timeslot label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%}div.nylas-event-timeslot div.date-time-input div.date-time-picker{display:flex;gap:32px}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker{flex-direction:column;gap:16px}}div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component{width:224px}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component{width:100%}}div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component::part(ic__date){height:50px;border-color:var(--nylas-base-200)}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range{display:flex;gap:8px;align-items:flex-start}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range span{margin:12px 0 0 6px;display:inline-flex;align-items:flex-start}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range{display:grid;grid-template-columns:1fr 20px 1fr}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range nylas-time-window-picker::part(time-picker){width:-webkit-fill-available}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range nylas-time-window-picker::part(time-input){width:calc(100% - 8px)}}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown{width:fit-content}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown){position:relative}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-button){border:none;padding:14px;justify-content:flex-start}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-button):hover{border:none;outline:none;color:var(--nylas-primary)}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown{width:-webkit-fill-available}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-button-selected-label){max-width:fit-content}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-content){right:unset;width:unset}}div.nylas-event-timeslot div.date-time-input div.recurrence-options{margin:8px 0}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown){position:relative}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button){width:fit-content;padding:14px;border-color:var(--nylas-base-200)}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button):hover{color:var(--nylas-primary)}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-content){width:fit-content}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button-selected-label){max-width:100%;width:fit-content;font-size:16px}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown{width:-webkit-fill-available}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button-selected-label){max-width:254px;width:fit-content}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-content){right:unset;width:unset}}@media screen and (max-width: 412px){div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button-selected-label){max-width:240px}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end{display:grid;align-items:center;gap:16px;grid-template-columns:128px 1fr;margin-bottom:8px}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period select-dropdown::part(sd_dropdown-button),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type select-dropdown::part(sd_dropdown-button),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end select-dropdown::part(sd_dropdown-button){border-color:var(--nylas-base-200)}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end{grid-template-columns:1fr;gap:4px;margin:16px 0}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period time-period-selector::part(id_dropdown-input),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type time-period-selector::part(id_dropdown-input),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end time-period-selector::part(id_dropdown-input){padding:16px}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period time-period-selector input-dropdown:hover,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type time-period-selector input-dropdown:hover,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end time-period-selector input-dropdown:hover{border:1px solid var(--nylas-primary);outline:1px solid transparent}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days{margin:16px 0;display:flex;gap:16px;align-items:center}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons{display:flex;gap:8px;margin:8px 0}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button{border-radius:50%;border:none;height:24px;width:24px;color:var(--nylas-base-800);cursor:pointer}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button.selected{background-color:var(--nylas-primary);color:var(--nylas-base-0)}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button:hover{background-color:var(--nylas-base-500);color:var(--nylas-base-0)}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button:active{background-color:var(--nylas-base-600);color:var(--nylas-base-0)}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence-ends,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.month-recurrence{display:grid;align-items:center;gap:16px;grid-template-columns:128px 1fr}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence-ends,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.month-recurrence{grid-template-columns:1fr;gap:4px;margin:16px 0}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence{display:flex;gap:16px;align-items:center}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence{flex-direction:column;align-items:flex-start;gap:0}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence div.custom-recurrence-end-after{display:flex;gap:8px;align-items:center}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence div.custom-recurrence-end-after{flex-direction:column;align-items:flex-start}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence nylas-date-component::part(ic__date){padding:0 16px;height:52px;border:1px solid var(--nylas-base-200)}', jf = Uf;
9440
- var Ff = function(t, e, n, i) {
9450
+ const Uf = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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;width:inherit}div.nylas-event-timeslot label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%}div.nylas-event-timeslot div.date-time-input div.date-time-picker{display:flex;gap:32px}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker{flex-direction:column;gap:16px}}div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component{width:224px}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component{width:100%}}div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component::part(ic__date){height:50px;border-color:var(--nylas-base-200)}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range{display:flex;gap:8px;align-items:flex-start}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range span{margin:12px 0 0 6px;display:inline-flex;align-items:flex-start}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range{display:grid;grid-template-columns:1fr 20px 1fr}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range nylas-time-window-picker::part(time-picker){width:-webkit-fill-available}div.nylas-event-timeslot div.date-time-input div.date-time-picker div.time-range nylas-time-window-picker::part(time-input){width:calc(100% - 8px)}}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown{width:fit-content}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown){position:relative}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-button){border:none;padding:14px;justify-content:flex-start}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-button):hover{border:none;outline:none;color:var(--nylas-primary)}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown{width:-webkit-fill-available}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-button-selected-label){max-width:fit-content}div.nylas-event-timeslot div.date-time-input div.date-time-picker select-dropdown::part(sd_dropdown-content){right:unset;width:unset}}div.nylas-event-timeslot div.date-time-input div.recurrence-options{margin:8px 0}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown){position:relative}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button){width:fit-content;padding:14px;border-color:var(--nylas-base-200)}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button):hover{color:var(--nylas-primary)}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-content){width:fit-content}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button-selected-label){max-width:100%;width:fit-content;font-size:16px}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown{width:-webkit-fill-available}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button-selected-label){max-width:254px;width:fit-content}div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-content){right:unset;width:unset}}@media screen and (max-width: 412px){div.nylas-event-timeslot div.date-time-input div.recurrence-options select-dropdown::part(sd_dropdown-button-selected-label){max-width:240px}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end{display:grid;align-items:center;gap:16px;grid-template-columns:128px 1fr;margin-bottom:8px}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period select-dropdown::part(sd_dropdown-button),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type select-dropdown::part(sd_dropdown-button),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end select-dropdown::part(sd_dropdown-button){border-color:var(--nylas-base-200)}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end{grid-template-columns:1fr;gap:4px;margin:16px 0}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period time-period-selector::part(id_dropdown-input),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type time-period-selector::part(id_dropdown-input),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end time-period-selector::part(id_dropdown-input){padding:16px}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.custom-recurrence-time-period time-period-selector input-dropdown:hover,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-type time-period-selector input-dropdown:hover,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.recurrence-end time-period-selector input-dropdown:hover{border:1px solid var(--nylas-primary);outline:1px solid transparent}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days{margin:16px 0;display:flex;gap:16px;align-items:center}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons{display:flex;gap:8px;margin:8px 0}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button{border-radius:50%;border:none;height:24px;width:24px;color:var(--nylas-base-800);cursor:pointer}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button.selected{background-color:var(--nylas-primary);color:var(--nylas-base-0)}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button:hover{background-color:var(--nylas-base-500);color:var(--nylas-base-0)}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days div.buttons button:active{background-color:var(--nylas-base-600);color:var(--nylas-base-0)}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence-ends,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.month-recurrence{display:grid;align-items:center;gap:16px;grid-template-columns:128px 1fr}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.days,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence-ends,div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.month-recurrence{grid-template-columns:1fr;gap:4px;margin:16px 0}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence{display:flex;gap:16px;align-items:baseline}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence{flex-direction:column;align-items:flex-start;gap:0}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence div.custom-recurrence-end-after{display:flex;gap:8px;align-items:center}@media screen and (max-width: 768px){div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence div.custom-recurrence-end-after{flex-direction:column;align-items:flex-start}}div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence nylas-date-component::part(ic__date){padding:0 16px;height:52px;border:1px solid var(--nylas-base-200)}', Ff = Uf;
9451
+ var jf = function(t, e, n, i) {
9441
9452
  var r = arguments.length, s = r < 3 ? e : i === null ? i = Object.getOwnPropertyDescriptor(e, n) : i, a;
9442
9453
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
9443
9454
  s = Reflect.decorate(t, e, n, i);
@@ -9636,7 +9647,24 @@ const Wf = {
9636
9647
  }
9637
9648
  nylasFormInputChangedHandler(t) {
9638
9649
  const { name: e, value: n } = t.detail;
9639
- e === "date-time-input" ? (this.selectedDate = n, this.recurrenceOptions = this.generateRecurrenceOptions(this.selectedDate, this.selectedTimezone), this.monthRecurrenceOptions = this.getMonthRecurrenceOptions(this.selectedDate, this.selectedTimezone)) : e === "recurrence-end-date" ? this.repeatEndOn = n : e === "custom-recurrence-end-date" ? this.repeatEndOn = n : e === "recurrence-end-after" && (this.repeatEndAfter = parseInt(n)), this.handleValueChanged();
9650
+ if (e === "date-time-input")
9651
+ this.selectedDate = n, this.recurrenceOptions = this.generateRecurrenceOptions(this.selectedDate, this.selectedTimezone), this.monthRecurrenceOptions = this.getMonthRecurrenceOptions(this.selectedDate, this.selectedTimezone);
9652
+ else if (e === "recurrence-end-date")
9653
+ this.repeatEndOn = n;
9654
+ else if (e === "custom-recurrence-end-date")
9655
+ this.repeatEndOn = n;
9656
+ else if (e === "recurrence-end-after") {
9657
+ const i = parseInt(n);
9658
+ if (i < 1 || isNaN(i)) {
9659
+ this.timeWindowFormError.emit({
9660
+ key: this.name,
9661
+ message: x.t("fixFormErrors")
9662
+ });
9663
+ return;
9664
+ }
9665
+ this.repeatEndAfter = i;
9666
+ }
9667
+ this.handleValueChanged();
9640
9668
  }
9641
9669
  timePeriodChangedHandler(t) {
9642
9670
  const { number: e, period: n } = t.detail;
@@ -9652,12 +9680,12 @@ const Wf = {
9652
9680
  { label: x.t("nylasEventTimeslot.customRecurrence.endsOptions.on"), value: "on" },
9653
9681
  { label: x.t("nylasEventTimeslot.customRecurrence.endsOptions.after"), value: "after" }
9654
9682
  ], r = M(this.selectedDate).add(1, "year").toISOString().split("T")[0], s = this.repeatEveryFrequency === "week" ? 4 : this.repeatEveryFrequency === "month" ? 12 : 5;
9655
- return this.repeatEndOn = this.repeatEndOn || r, this.repeatEndAfter = this.repeatEndAfter || s, m(fn, { key: "31732a2c9daed8e38e9481d545a43d2093ebf9ae" }, m("div", { key: "122e6f86aa037d3ca33333a48ee01b56a658b9be", class: "nylas-event-timeslot", part: "netimeslot" }, m("label", { key: "6a5e350091395c992a4412b0bbf85847cff9e2aa", htmlFor: "date-time-input" }, x.t("nylasEventTimeslot.dateTimeLabel")), m("div", { key: "fde21f23f6e3767f90ef7bfe8ef87fdc2880d53a", class: "date-time-input", part: "netimeslot__date-time-input" }, m("div", { key: "51ff603b675b0fca1e265ddb7cbba058e02b2412", class: "date-time-picker", part: "netimeslot__date-time-picker" }, m("nylas-date-component", { key: "aaf0a665c49243dc3ea62338b83a54a1ff44922f", name: "date-time-input", defaultValue: this.selectedDate, id: "date-time-input", required: !0 }), m("div", { key: "982c20021cf979720d71e19210b7aced7b3d8a32", class: "time-range", part: "netimeslot__time-range" }, m("nylas-time-window-picker", { id: "start-time", hasError: this.timeRangeError, time: this.selectedStartTime, language: this.selectedLanguage, name: "start-time", key: "start-time", exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), m("span", { key: "00a6b1961ffc500814b00da0a63fe52eb4982cb1" }, "–"), m("nylas-time-window-picker", { id: "end-time", hasError: this.timeRangeError, time: this.selectedEndTime, language: this.selectedLanguage, name: "end-time", key: "end-time", minimumStartTime: this.selectedStartTime, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), (n == null ? void 0 : n.label) && m("select-dropdown", { name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, withChevron: !1, defaultSelectedOption: n }, m("span", { slot: "select-icon" }, m("globe-icon", { width: "20", height: "20" })))), m("div", { key: "69ecad9a4f597e8e8be1c7467ff66f24411a6638", class: "recurrence-options", part: "netimeslot__recurrence-options" }, t && (t == null ? void 0 : t.label) && m("div", { class: "recurrence-type", part: "netimeslot__recurrence-type" }, m("label", { htmlFor: "recurrence-type" }, x.t("nylasEventTimeslot.recurrenceLabel")), m("select-dropdown", { withSearch: !1, id: "recurrence-type", name: "recurrence-type", options: this.recurrenceOptions, defaultSelectedOption: t, exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), this.selectedRecurrenceType !== "custom" && this.selectedRecurrenceType !== "none" && m("div", { class: "recurrence-end", part: "netimeslot__recurrence-end" }, m("label", null, x.t("nylasEventTimeslot.endDate")), m("nylas-date-component", { name: "recurrence-end-date", defaultValue: this.repeatEndOn || r, id: "recurrence-end-date", required: !0 })), this.selectedRecurrenceType === "custom" && m("div", { class: "custom-recurrence-time-period", part: "netimeslot__custom-recurrence" }, m("label", { htmlFor: "" }, x.t("nylasEventTimeslot.customRecurrence.repeatEvery")), m("time-period-selector", { id: "custom-recurrence-time-period", exportparts: "tps__number-dropdown: netimeslot__number-dropdown, tps__number-dropdown-button: netimeslot__number-dropdown-button, tps__number-dropdown-content: netimeslot__number-dropdown-content, tps__period-dropdown: netimeslot__period-dropdown, tps__period-dropdown-button: netimeslot__period-dropdown-button, tps__period-dropdown-content: netimeslot__period-dropdown-content", timePeriods: [
9683
+ return this.repeatEndOn = this.repeatEndOn || r, this.repeatEndAfter = this.repeatEndAfter || s, m(fn, { key: "a6c2b24369ec32b3488fb597ceb07265f8025b38" }, m("div", { key: "5412e2af0d10c1a232fa61b9ba3d9a327a631f20", class: "nylas-event-timeslot", part: "netimeslot" }, m("label", { key: "5054d504ca18771fb990374ce1859573227661a9", htmlFor: "date-time-input" }, x.t("nylasEventTimeslot.dateTimeLabel")), m("div", { key: "0dffbcf300744ef1c9ca74c73b3bd87bb0896711", class: "date-time-input", part: "netimeslot__date-time-input" }, m("div", { key: "d2c73a9cbe77d5a4c65087f4707b0f08c1b404e9", class: "date-time-picker", part: "netimeslot__date-time-picker" }, m("nylas-date-component", { key: "2955d08462d7e4e81079083349b8ce8cc07b1c1a", name: "date-time-input", defaultValue: this.selectedDate, id: "date-time-input", required: !0 }), m("div", { key: "edaab3f01999687c94b0b8a386fe863f211a4ced", class: "time-range", part: "netimeslot__time-range" }, m("nylas-time-window-picker", { id: "start-time", hasError: this.timeRangeError, time: this.selectedStartTime, language: this.selectedLanguage, name: "start-time", key: "start-time", exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), m("span", { key: "72f7f70ecef78afc7a5a426da2548cc4af12d139" }, "–"), m("nylas-time-window-picker", { id: "end-time", hasError: this.timeRangeError, time: this.selectedEndTime, language: this.selectedLanguage, name: "end-time", key: "end-time", minimumStartTime: this.selectedStartTime, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), (n == null ? void 0 : n.label) && m("select-dropdown", { name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, withChevron: !1, defaultSelectedOption: n }, m("span", { slot: "select-icon" }, m("globe-icon", { width: "20", height: "20" })))), m("div", { key: "69743f032d1c090e65bd6b65cca97154972a7e98", class: "recurrence-options", part: "netimeslot__recurrence-options" }, t && (t == null ? void 0 : t.label) && m("div", { class: "recurrence-type", part: "netimeslot__recurrence-type" }, m("label", { htmlFor: "recurrence-type" }, x.t("nylasEventTimeslot.recurrenceLabel")), m("select-dropdown", { withSearch: !1, id: "recurrence-type", name: "recurrence-type", options: this.recurrenceOptions, defaultSelectedOption: t, exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), this.selectedRecurrenceType !== "custom" && this.selectedRecurrenceType !== "none" && m("div", { class: "recurrence-end", part: "netimeslot__recurrence-end" }, m("label", null, x.t("nylasEventTimeslot.endDate")), m("nylas-date-component", { name: "recurrence-end-date", defaultValue: this.repeatEndOn || r, id: "recurrence-end-date", required: !0 })), this.selectedRecurrenceType === "custom" && m("div", { class: "custom-recurrence-time-period", part: "netimeslot__custom-recurrence" }, m("label", { htmlFor: "" }, x.t("nylasEventTimeslot.customRecurrence.repeatEvery")), m("time-period-selector", { id: "custom-recurrence-time-period", exportparts: "tps__number-dropdown: netimeslot__number-dropdown, tps__number-dropdown-button: netimeslot__number-dropdown-button, tps__number-dropdown-content: netimeslot__number-dropdown-content, tps__period-dropdown: netimeslot__period-dropdown, tps__period-dropdown-button: netimeslot__period-dropdown-button, tps__period-dropdown-content: netimeslot__period-dropdown-content", timePeriods: [
9656
9684
  { value: "day", label: x.t("timePeriod", { context: "day" }) },
9657
9685
  { value: "week", label: x.t("timePeriod", { context: "week" }) },
9658
9686
  { value: "month", label: x.t("timePeriod", { context: "month" }) },
9659
9687
  { value: "year", label: x.t("timePeriod", { context: "year" }) }
9660
- ], defaultSelectedNumber: this.repeatEveryInterval, defaultSelectedPeriod: this.repeatEveryFrequency })), m("div", { key: "72e9f15924d7cd50fa1e2200cd5fecf20213fe94", class: "repeat-on" }, this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "week" && m("div", { class: "days" }, m("label", null, x.t("nylasEventTimeslot.customRecurrence.repeatOn")), m("div", { class: "buttons" }, [
9688
+ ], defaultSelectedNumber: this.repeatEveryInterval, defaultSelectedPeriod: this.repeatEveryFrequency })), m("div", { key: "40ea7614b0c862be4adfdf798db12b52277ff6a6", class: "repeat-on" }, this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "week" && m("div", { class: "days" }, m("label", null, x.t("nylasEventTimeslot.customRecurrence.repeatOn")), m("div", { class: "buttons" }, [
9661
9689
  { label: "S", value: "SU", title: "Sunday" },
9662
9690
  { label: "M", value: "MO", title: "Monday" },
9663
9691
  { label: "T", value: "TU", title: "Tuesday" },
@@ -9667,7 +9695,7 @@ const Wf = {
9667
9695
  { label: "S", value: "SA", title: "Saturday" }
9668
9696
  ].map((a) => m("button", { class: { selected: this.repeatOnDays.includes(a.value) }, title: a.title, onClick: () => {
9669
9697
  this.repeatOnDays = this.repeatOnDays.includes(a.value) ? this.repeatOnDays.filter((l) => l !== a.value) : [...this.repeatOnDays, a.value], this.handleValueChanged();
9670
- } }, a.label)))), this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "month" && m("div", { class: "month-recurrence" }, m("span", null), m("select-dropdown", { withSearch: !1, id: "month-recurrence-type", name: "month-recurrence-type", options: this.monthRecurrenceOptions, defaultSelectedOption: this.repeatMonthlySameDate ? this.monthRecurrenceOptions[0] : this.monthRecurrenceOptions[1], exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), m("div", { key: "24efc522c8eb8ce3fafeb8964da717228602c14a", class: "custom-recurrence" }, this.selectedRecurrenceType === "custom" && m("div", { class: "custom-recurrence-ends" }, m("label", { htmlFor: "recurrence-type" }, x.t("nylasEventTimeslot.customRecurrence.ends")), m("select-dropdown", { withSearch: !1, id: "custom-recurrence-end-type", name: "custom-recurrence-end-type", options: i, defaultSelectedOption: i.find((a) => a.value === this.repeatEndType), exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), this.selectedRecurrenceType === "custom" && this.repeatEndType === "on" && m("div", null, m("nylas-date-component", { name: "custom-recurrence-end-date", defaultValue: this.repeatEndOn || r, id: "custom-recurrence-end-date", required: !0 })), this.selectedRecurrenceType === "custom" && this.repeatEndType === "after" && m("div", { class: "custom-recurrence-end-after" }, m("input-component", { name: "recurrence-end-after", id: "recurrence-end-after", type: "number", minValue: 1, defaultValue: s.toString(), exportparts: "ic_input: netimeslot__input-textfield" }), m("span", null, x.t("nylasEventTimeslot.customRecurrence.occurrences")))))))));
9698
+ } }, a.label)))), this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "month" && m("div", { class: "month-recurrence" }, m("span", null), m("select-dropdown", { withSearch: !1, id: "month-recurrence-type", name: "month-recurrence-type", options: this.monthRecurrenceOptions, defaultSelectedOption: this.repeatMonthlySameDate ? this.monthRecurrenceOptions[0] : this.monthRecurrenceOptions[1], exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), m("div", { key: "5a873ef2a8f3c02856f18fbd99c7092a6c91bd9b", class: "custom-recurrence" }, this.selectedRecurrenceType === "custom" && m("div", { class: "custom-recurrence-ends" }, m("label", { htmlFor: "recurrence-type" }, x.t("nylasEventTimeslot.customRecurrence.ends")), m("select-dropdown", { withSearch: !1, id: "custom-recurrence-end-type", name: "custom-recurrence-end-type", options: i, defaultSelectedOption: i.find((a) => a.value === this.repeatEndType), exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), this.selectedRecurrenceType === "custom" && this.repeatEndType === "on" && m("div", null, m("nylas-date-component", { name: "custom-recurrence-end-date", defaultValue: this.repeatEndOn || r, id: "custom-recurrence-end-date", required: !0 })), this.selectedRecurrenceType === "custom" && this.repeatEndType === "after" && m("div", { class: "custom-recurrence-end-after" }, m("input-component", { name: "recurrence-end-after", id: "recurrence-end-after", type: "number", minValue: 1, defaultValue: s.toString(), exportparts: "ic_input: netimeslot__input-textfield" }), m("span", null, x.t("nylasEventTimeslot.customRecurrence.occurrences")))))))));
9671
9699
  }
9672
9700
  static get formAssociated() {
9673
9701
  return !0;
@@ -9682,7 +9710,7 @@ const Wf = {
9682
9710
  };
9683
9711
  }
9684
9712
  };
9685
- Ff([
9713
+ jf([
9686
9714
  pn({
9687
9715
  name: "nylas-event-timeslot",
9688
9716
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
@@ -9697,7 +9725,7 @@ Ff([
9697
9725
  Qt("design:paramtypes", []),
9698
9726
  Qt("design:returntype", void 0)
9699
9727
  ], Zs.prototype, "render", null);
9700
- Zs.style = jf;
9728
+ Zs.style = Ff;
9701
9729
  export {
9702
9730
  Qs as nylas_event_calendar,
9703
9731
  $s as nylas_event_capacity,