@nylas/react 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/add-circle-icon_2.entry-8c3bb0bb.cjs +1 -0
  2. package/dist/{add-circle-icon_2.entry-e59a5b4d.js → add-circle-icon_2.entry-a3daf6c4.js} +6 -4
  3. package/dist/archive-icon.entry-46ad0ff3.cjs +1 -0
  4. package/dist/{archive-icon.entry-ea5667df.js → archive-icon.entry-d5141486.js} +6 -4
  5. package/dist/{arrow-icon.entry-1f766862.js → arrow-icon.entry-1b89ce78.js} +6 -4
  6. package/dist/arrow-icon.entry-f696de4f.cjs +1 -0
  7. package/dist/bold-icon.entry-7827cd4e.cjs +1 -0
  8. package/dist/{bold-icon.entry-240950a6.js → bold-icon.entry-c117b4cf.js} +6 -4
  9. package/dist/button-component_2.entry-8cd4c5f3.cjs +1 -0
  10. package/dist/{button-component_2.entry-96785a34.js → button-component_2.entry-e68caa9b.js} +5 -3
  11. package/dist/{calendar-agenda-fill-icon_37.entry-e732ee2e.js → calendar-agenda-fill-icon_37.entry-52bdc8b3.js} +1478 -1210
  12. package/dist/calendar-agenda-fill-icon_37.entry-8c592cfa.cjs +6 -0
  13. package/dist/calendar-cancel-icon.entry-7facfa05.cjs +1 -0
  14. package/dist/{calendar-cancel-icon.entry-7543c684.js → calendar-cancel-icon.entry-f5f1d499.js} +8 -6
  15. package/dist/{calendar-check-icon.entry-aba54652.js → calendar-check-icon.entry-55320137.js} +6 -4
  16. package/dist/calendar-check-icon.entry-72108702.cjs +1 -0
  17. package/dist/{calendar-icon.entry-2cb3b7d1.js → calendar-icon.entry-afea361e.js} +9 -7
  18. package/dist/calendar-icon.entry-f5c6730f.cjs +1 -0
  19. package/dist/checkbox-component.entry-5722d263.cjs +1 -0
  20. package/dist/checkbox-component.entry-89fa6edd.js +54 -0
  21. package/dist/checkbox-group_4.entry-30e8af17.cjs +28 -0
  22. package/dist/{checkbox-group_4.entry-04561314.js → checkbox-group_4.entry-51f03009.js} +289 -245
  23. package/dist/checkmark-circle-icon.entry-ae11049d.cjs +1 -0
  24. package/dist/{checkmark-circle-icon.entry-1f788efc.js → checkmark-circle-icon.entry-dfe67e22.js} +8 -6
  25. package/dist/{checkmark-icon_15.entry-146c1cb0.js → checkmark-icon_15.entry-4c3979db.js} +408 -332
  26. package/dist/checkmark-icon_15.entry-e59c0f53.cjs +5 -0
  27. package/dist/{chevron-icon_3.entry-637338b5.js → chevron-icon_3.entry-1f3c3ca6.js} +21 -10
  28. package/dist/chevron-icon_3.entry-ea791750.cjs +1 -0
  29. package/dist/clock-icon_4.entry-172fed74.cjs +1 -0
  30. package/dist/{clock-icon_4.entry-e69395a2.js → clock-icon_4.entry-78878cb8.js} +3 -1
  31. package/dist/customParseFormat-b5d95b34-a6b6fcba.cjs +1 -0
  32. package/dist/{customParseFormat-8be9be1b-2464f2ba.js → customParseFormat-b5d95b34-ce80820c.js} +1 -1
  33. package/dist/delete-icon.entry-a8c0bf03.cjs +1 -0
  34. package/dist/{delete-icon.entry-8a956edd.js → delete-icon.entry-cebdc90f.js} +7 -5
  35. package/dist/document-refresh-icon.entry-2d9a529d.cjs +1 -0
  36. package/dist/{document-refresh-icon.entry-5f58f367.js → document-refresh-icon.entry-8780a2b8.js} +3 -1
  37. package/dist/{feedbackSync-3db3713c-701d2eb9.cjs → feedbackSync-92220b42-fbebe1f9.cjs} +1 -1
  38. package/dist/{feedbackSync-3db3713c-aadf336b.js → feedbackSync-92220b42-fd5f5610.js} +1 -1
  39. package/dist/folder-icon.entry-3e61ccca.cjs +1 -0
  40. package/dist/{folder-icon.entry-e5d7a651.js → folder-icon.entry-6ffd5191.js} +6 -4
  41. package/dist/forward-icon.entry-c7d88db8.cjs +1 -0
  42. package/dist/{forward-icon.entry-59be8165.js → forward-icon.entry-c9c4bf5b.js} +5 -3
  43. package/dist/globe-icon.entry-0b93cab8.cjs +1 -0
  44. package/dist/{globe-icon.entry-0fe4a4bb.js → globe-icon.entry-7c0dca7b.js} +5 -3
  45. package/dist/{google-logo-icon_6.entry-799511df.js → google-logo-icon_6.entry-deef91ee.js} +283 -237
  46. package/dist/google-logo-icon_6.entry-e25ce3e7.cjs +2 -0
  47. package/dist/google-meet-icon_5.entry-214347f0.cjs +1 -0
  48. package/dist/{google-meet-icon_5.entry-e753ba28.js → google-meet-icon_5.entry-f8b5a92a.js} +3 -1
  49. package/dist/{inbox-icon.entry-61132337.js → inbox-icon.entry-873062c3.js} +7 -5
  50. package/dist/inbox-icon.entry-f08f2fd5.cjs +1 -0
  51. package/dist/index-025be398.js +7187 -0
  52. package/dist/index-c510313d-1318f67a.js +289 -0
  53. package/dist/index-c510313d-b0508eee.cjs +1 -0
  54. package/dist/index-f42fe591.cjs +65 -0
  55. package/dist/{index.es-9e756df7-fa75b01e.cjs → index.es-488bc919-d02dd50a.cjs} +1 -1
  56. package/dist/{index.es-9e756df7-42d8a4cf.js → index.es-488bc919-ea63a7e9.js} +1 -1
  57. package/dist/info-icon_2.entry-442b9097.cjs +1 -0
  58. package/dist/{info-icon_2.entry-8d2750ce.js → info-icon_2.entry-60fb8648.js} +3 -1
  59. package/dist/{input-component.entry-2e134e2a.js → input-component.entry-5898a52e.js} +22 -10
  60. package/dist/input-component.entry-7274fd28.cjs +1 -0
  61. package/dist/{input-dropdown_2.entry-1a02e672.js → input-dropdown_2.entry-4534436c.js} +33 -9
  62. package/dist/input-dropdown_2.entry-9b72f637.cjs +1 -0
  63. package/dist/{italic-icon.entry-0ec2793b.js → italic-icon.entry-62052cd8.js} +6 -4
  64. package/dist/italic-icon.entry-9bdbbd37.cjs +1 -0
  65. package/dist/lib/connect/index.d.ts +6 -0
  66. package/dist/lib/connect/types.d.ts +2 -0
  67. package/dist/lib/connect/useNylasConnect.d.ts +28 -0
  68. package/dist/lib/connect/useNylasConnect.test.d.ts +1 -0
  69. package/dist/lib/elements/index.d.ts +1 -1
  70. package/dist/lib/index.d.ts +1 -0
  71. package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +3 -2
  72. package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +2 -0
  73. package/dist/multi-select-dropdown.entry-77752d46.cjs +1 -0
  74. package/dist/{multi-select-dropdown.entry-15e887be.js → multi-select-dropdown.entry-9c9d05c1.js} +42 -30
  75. package/dist/{nylas-booked-event-card_11.entry-98bcc904.js → nylas-booked-event-card_11.entry-32b2e9f1.js} +188 -185
  76. package/dist/nylas-booked-event-card_11.entry-4aba5146.cjs +1 -0
  77. package/dist/nylas-date-component_2.entry-6b058796.cjs +1 -0
  78. package/dist/{nylas-date-component_2.entry-6a98a5bf.js → nylas-date-component_2.entry-a869519f.js} +91 -70
  79. package/dist/nylas-form-card.entry-5390459f.js +75 -0
  80. package/dist/nylas-form-card.entry-c2f34d73.cjs +1 -0
  81. package/dist/nylas-notification_2.entry-054392cf.cjs +1 -0
  82. package/dist/{nylas-notification_2.entry-320a5a65.js → nylas-notification_2.entry-f46e88e5.js} +4 -1
  83. package/dist/{nylas-scheduler-editor.entry-aa62c689.js → nylas-scheduler-editor.entry-40a48f47.js} +129 -60
  84. package/dist/nylas-scheduler-editor.entry-e29fdf07.cjs +2 -0
  85. package/dist/{nylas-scheduling.entry-aec79de5.js → nylas-scheduling.entry-115b1752.js} +203 -190
  86. package/dist/nylas-scheduling.entry-79cb1d9c.cjs +1 -0
  87. package/dist/person-icon.entry-2cae306c.cjs +1 -0
  88. package/dist/{person-icon.entry-23cbe5dd.js → person-icon.entry-fd668b89.js} +6 -4
  89. package/dist/{play-icon.entry-4a529bd2.js → play-icon.entry-7fc3c0fd.js} +5 -3
  90. package/dist/play-icon.entry-9989a520.cjs +1 -0
  91. package/dist/radio-button-group.entry-03385b5f.cjs +1 -0
  92. package/dist/{radio-button-group.entry-04b7ff59.js → radio-button-group.entry-9df82cd0.js} +21 -10
  93. package/dist/react.cjs +1 -1
  94. package/dist/react.js +142 -127
  95. package/dist/refresh-icon.entry-310954ba.cjs +1 -0
  96. package/dist/{refresh-icon.entry-61ced881.js → refresh-icon.entry-c56e5623.js} +8 -6
  97. package/dist/register-component-3acd57e7-5a79a90a.cjs +1 -0
  98. package/dist/{register-component-8bbd6492-0d8737fd.js → register-component-3acd57e7-cb09c05e.js} +15 -14
  99. package/dist/{reply-all-icon.entry-83509aaf.js → reply-all-icon.entry-32e0e000.js} +7 -5
  100. package/dist/reply-all-icon.entry-68388f97.cjs +1 -0
  101. package/dist/{reply-icon.entry-131ade31.js → reply-icon.entry-3ac2e736.js} +6 -4
  102. package/dist/reply-icon.entry-e616a9a4.cjs +1 -0
  103. package/dist/{sent-icon.entry-72fd8f16.js → sent-icon.entry-0622ed04.js} +6 -4
  104. package/dist/sent-icon.entry-543eb3c4.cjs +1 -0
  105. package/dist/{spam-icon.entry-7594c792.js → spam-icon.entry-74bcfd4f.js} +3 -1
  106. package/dist/spam-icon.entry-e341ee3e.cjs +1 -0
  107. package/dist/{star-icon.entry-adbe1bb3.js → star-icon.entry-864d2bf9.js} +5 -3
  108. package/dist/star-icon.entry-c90d40f6.cjs +1 -0
  109. package/dist/{stop-icon.entry-e95993f2.js → stop-icon.entry-835908c5.js} +3 -1
  110. package/dist/stop-icon.entry-ffc46b42.cjs +1 -0
  111. package/dist/{textarea-component.entry-f5d74fb8.js → textarea-component.entry-6adcf6a6.js} +29 -10
  112. package/dist/textarea-component.entry-dae8eb5c.cjs +1 -0
  113. package/dist/toggle-switch.entry-5ee29867.cjs +1 -0
  114. package/dist/toggle-switch.entry-ff2ccb75.js +51 -0
  115. package/dist/{translate-icon.entry-01cbe664.js → translate-icon.entry-372dd808.js} +3 -1
  116. package/dist/translate-icon.entry-5606067d.cjs +1 -0
  117. package/dist/{trash-fill-icon.entry-b39ff771.js → trash-fill-icon.entry-01b4379e.js} +3 -1
  118. package/dist/trash-fill-icon.entry-daed6c0a.cjs +1 -0
  119. package/dist/underline-icon.entry-2020ee64.cjs +1 -0
  120. package/dist/{underline-icon.entry-39179a2e.js → underline-icon.entry-464b900d.js} +5 -3
  121. package/dist/utils-31933f5d-15041585.js +17878 -0
  122. package/dist/utils-31933f5d-1d4c81ab.cjs +54 -0
  123. package/package.json +4 -3
  124. package/dist/abstract-provider-97cdbfea-5837e17f.cjs +0 -1
  125. package/dist/abstract-provider-97cdbfea-6b0e3547.js +0 -187
  126. package/dist/add-circle-icon_2.entry-96ef4ded.cjs +0 -1
  127. package/dist/archive-icon.entry-49b4e0fd.cjs +0 -1
  128. package/dist/arrow-icon.entry-5aefd7de.cjs +0 -1
  129. package/dist/bold-icon.entry-1a4955df.cjs +0 -1
  130. package/dist/button-component_2.entry-357fa02a.cjs +0 -1
  131. package/dist/calendar-agenda-fill-icon_37.entry-5e405c00.cjs +0 -6
  132. package/dist/calendar-cancel-icon.entry-55d746cf.cjs +0 -1
  133. package/dist/calendar-check-icon.entry-63d33f23.cjs +0 -1
  134. package/dist/calendar-icon.entry-e13add9b.cjs +0 -1
  135. package/dist/checkbox-component.entry-8341a8d6.cjs +0 -1
  136. package/dist/checkbox-component.entry-da122544.js +0 -43
  137. package/dist/checkbox-group_4.entry-8854d522.cjs +0 -28
  138. package/dist/checkmark-circle-icon.entry-e637e20e.cjs +0 -1
  139. package/dist/checkmark-icon_15.entry-a265f687.cjs +0 -5
  140. package/dist/chevron-icon_3.entry-6c38b5e5.cjs +0 -1
  141. package/dist/clock-icon_4.entry-aa4117dc.cjs +0 -1
  142. package/dist/customParseFormat-8be9be1b-7ad95d87.cjs +0 -1
  143. package/dist/delete-icon.entry-af0cc45b.cjs +0 -1
  144. package/dist/document-refresh-icon.entry-45931416.cjs +0 -1
  145. package/dist/folder-icon.entry-cb80c172.cjs +0 -1
  146. package/dist/forward-icon.entry-c792734b.cjs +0 -1
  147. package/dist/globe-icon.entry-9ecf0255.cjs +0 -1
  148. package/dist/google-logo-icon_6.entry-60924f34.cjs +0 -2
  149. package/dist/google-meet-icon_5.entry-3841313d.cjs +0 -1
  150. package/dist/inbox-icon.entry-2b450378.cjs +0 -1
  151. package/dist/index-2084ffd9.js +0 -24884
  152. package/dist/index-e9dc7971.cjs +0 -118
  153. package/dist/info-icon_2.entry-c547775c.cjs +0 -1
  154. package/dist/input-component.entry-b1086460.cjs +0 -1
  155. package/dist/input-dropdown_2.entry-cb163dc3.cjs +0 -1
  156. package/dist/italic-icon.entry-6a3a5464.cjs +0 -1
  157. package/dist/multi-select-dropdown.entry-daccefd5.cjs +0 -1
  158. package/dist/nylas-booked-event-card_11.entry-3cdf8015.cjs +0 -1
  159. package/dist/nylas-date-component_2.entry-5d4f54fa.cjs +0 -1
  160. package/dist/nylas-form-card.entry-22851b77.cjs +0 -1
  161. package/dist/nylas-form-card.entry-a997084f.js +0 -58
  162. package/dist/nylas-notification_2.entry-4638126b.cjs +0 -1
  163. package/dist/nylas-scheduler-editor.entry-82e0f79e.cjs +0 -2
  164. package/dist/nylas-scheduling.entry-9cef581a.cjs +0 -1
  165. package/dist/person-icon.entry-01a6a976.cjs +0 -1
  166. package/dist/play-icon.entry-33443687.cjs +0 -1
  167. package/dist/radio-button-group.entry-65155787.cjs +0 -1
  168. package/dist/refresh-icon.entry-e4ea4811.cjs +0 -1
  169. package/dist/register-component-8bbd6492-d9a23f3c.cjs +0 -1
  170. package/dist/reply-all-icon.entry-c64d923b.cjs +0 -1
  171. package/dist/reply-icon.entry-4edfbb70.cjs +0 -1
  172. package/dist/sent-icon.entry-e4f6a3ef.cjs +0 -1
  173. package/dist/spam-icon.entry-c531c188.cjs +0 -1
  174. package/dist/star-icon.entry-a75255ff.cjs +0 -1
  175. package/dist/stop-icon.entry-079b28c6.cjs +0 -1
  176. package/dist/textarea-component.entry-920a81ac.cjs +0 -1
  177. package/dist/toggle-switch.entry-33273409.js +0 -34
  178. package/dist/toggle-switch.entry-ba6b4f33.cjs +0 -1
  179. package/dist/translate-icon.entry-f33632d6.cjs +0 -1
  180. package/dist/trash-fill-icon.entry-298eece8.cjs +0 -1
  181. package/dist/underline-icon.entry-3704187c.cjs +0 -1
@@ -1,23 +1,34 @@
1
- import { r as St, a as W, h as g, g as Dt, d as x, u as ir, t as rr, i as _, b as z, H as vn, R as Nt, I as ea } from "./index-2084ffd9.js";
2
- import { R as yn } from "./register-component-8bbd6492-0d8737fd.js";
1
+ import { r as St, c as W, h as g, g as Dt, H as vn } from "./index-025be398.js";
2
+ import { R as yn } from "./register-component-3acd57e7-cb09c05e.js";
3
+ import { a as x, u as ir, t as rr, i as _, b as z, J as Nt, A as ea } from "./utils-31933f5d-15041585.js";
3
4
  import { T as Pt } from "./constants-f51538ef-e0a5f026.js";
4
- import { c as ta } from "./customParseFormat-8be9be1b-2464f2ba.js";
5
+ import { c as ta } from "./customParseFormat-b5d95b34-ce80820c.js";
6
+ import "@nylas/web-elements";
5
7
  import "react";
8
+ import "@nylas/connect";
6
9
  import "react/jsx-runtime";
7
10
  import "react-dom";
8
11
  const na = ":host{display:block}.checkbox-group-container{display:flex;flex-direction:column;gap:0.5rem}.group-label{font-weight:500;margin-bottom:0.25rem}.group-label .required{color:var(--nylas-error);margin-left:0.25rem}.checkbox-list{display:flex;gap:16px}.checkbox-list.vertical{flex-direction:column}.checkbox-list.horizontal{flex-direction:row;align-items:center}.checkbox-list checkbox-component{width:max-content}.checkbox-list checkbox-component::part(checkbox-label-span){width:inherit;margin-left:24px}.error{color:var(--nylas-error);font-size:0.875rem;margin-top:0.25rem}", ia = na, ra = class {
9
12
  constructor(t) {
10
- St(this, t), this.nylasCheckboxGroupChanged = W(this, "nylasCheckboxGroupChanged", 7), this.componentType = "checkbox-group", this.name = "checkbox-group", this.label = "", this.options = [], this.required = !1, this.direction = "vertical", this.error = "", this.selectedValues = [];
13
+ St(this, t), this.nylasCheckboxGroupChanged = W(this, "nylasCheckboxGroupChanged", 7), this.componentType = "checkbox-group", this.name = "checkbox-group", this.label = "", this.options = [], this.required = !1, this.direction = "vertical", this.themeConfig = void 0, this.error = "", this.selectedValues = [];
11
14
  }
12
15
  componentWillLoad() {
13
16
  this.el.setAttribute("component-type", this.componentType);
14
17
  }
15
18
  componentDidLoad() {
16
- this.selectedValues = this.options.filter((t) => t.checked).map((t) => t.value);
19
+ this.selectedValues = this.options.filter((t) => t.checked).map((t) => t.value), this.applyThemeConfig(this.themeConfig);
17
20
  }
18
21
  optionsChangedHandler(t, e) {
19
22
  JSON.stringify(t) !== JSON.stringify(e) && (this.selectedValues = t.filter((n) => n.checked).map((n) => n.value));
20
23
  }
24
+ themeConfigChangedHandler(t, e) {
25
+ t !== e && this.applyThemeConfig(t);
26
+ }
27
+ applyThemeConfig(t) {
28
+ if (t)
29
+ for (const [e, n] of Object.entries(t))
30
+ this.el.style.setProperty(`${e}`, n);
31
+ }
21
32
  handleBookingFormSubmitted(t) {
22
33
  this.required && !this.hasCheckedOptions() && (this.error = "Please select at least one option."), this.error && t.preventDefault();
23
34
  }
@@ -38,14 +49,15 @@ const na = ":host{display:block}.checkbox-group-container{display:flex;flex-dire
38
49
  this.handleCheckboxToggle(t);
39
50
  }
40
51
  render() {
41
- return g("div", { key: "76ae2efb8faa2b161472a0330e398b1557e149a2", class: "checkbox-group-container" }, this.label && g("div", { class: "group-label" }, this.label, this.required && g("span", { class: "required" }, "*")), g("div", { key: "fbc0e62c6ea9cd92bf1195721910f6a03b031900", class: `checkbox-list ${this.direction}` }, this.options.map((t) => g("checkbox-component", { name: `${this.name}-${t.value}`, label: t.label, checked: this.selectedValues.includes(t.value), readOnly: t.disabled, required: this.required }))), this.error && g("p", { class: "error" }, this.error));
52
+ return g("div", { key: "0bd42088f8f82790fe46cbf6f82dc12ff78e179c", class: "checkbox-group-container" }, this.label && g("div", { class: "group-label" }, this.label, this.required && g("span", { class: "required" }, "*")), g("div", { key: "460013aa58840bfa0a1a0702cb8bc91084a7c6d5", class: `checkbox-list ${this.direction}` }, this.options.map((t) => g("checkbox-component", { name: `${this.name}-${t.value}`, label: t.label, checked: this.selectedValues.includes(t.value), readOnly: t.disabled, required: this.required, themeConfig: this.themeConfig }))), this.error && g("p", { class: "error" }, this.error));
42
53
  }
43
54
  get el() {
44
55
  return Dt(this);
45
56
  }
46
57
  static get watchers() {
47
58
  return {
48
- options: ["optionsChangedHandler"]
59
+ options: ["optionsChangedHandler"],
60
+ themeConfig: ["themeConfigChangedHandler"]
49
61
  };
50
62
  }
51
63
  };
@@ -73,7 +85,7 @@ function rt(t, e, n, i, r) {
73
85
  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 ?? ++sr };
74
86
  return r == null && S.vnode != null && S.vnode(s), s;
75
87
  }
76
- function j() {
88
+ function F() {
77
89
  return { current: null };
78
90
  }
79
91
  function H(t) {
@@ -231,7 +243,7 @@ function pr(t) {
231
243
  return null;
232
244
  }
233
245
  function bn(t, e, n, i, r, s, a, l, o) {
234
- var d, c, h, f, u, v, y, b, E, C, T, A, O, M, N, R = e.type;
246
+ var d, c, h, f, u, v, y, b, E, C, T, A, I, M, N, R = e.type;
235
247
  if (e.constructor !== void 0)
236
248
  return null;
237
249
  n.__h != null && (o = n.__h, l = e.__e = n.__e, e.__h = null, s = [l]), (d = S.__b) && d(e);
@@ -253,14 +265,14 @@ function bn(t, e, n, i, r, s, a, l, o) {
253
265
  c.componentDidUpdate(f, u, v);
254
266
  });
255
267
  }
256
- if (c.context = C, c.props = b, c.__P = t, A = S.__r, O = 0, "prototype" in R && R.prototype.render) {
268
+ if (c.context = C, c.props = b, c.__P = t, A = S.__r, I = 0, "prototype" in R && R.prototype.render) {
257
269
  for (c.state = c.__s, c.__d = !1, A && A(e), d = c.render(c.props, c.state, c.context), M = 0; M < c._sb.length; M++)
258
270
  c.__h.push(c._sb[M]);
259
271
  c._sb = [];
260
272
  } else
261
273
  do
262
274
  c.__d = !1, A && A(e), d = c.render(c.props, c.state, c.context), c.state = c.__s;
263
- while (c.__d && ++O < 25);
275
+ while (c.__d && ++I < 25);
264
276
  c.state = c.__s, c.getChildContext != null && (i = le(le({}, i), c.getChildContext())), h || c.getSnapshotBeforeUpdate == null || (v = c.getSnapshotBeforeUpdate(f, u)), N = d != null && d.type === H && d.key == null ? d.props.children : d, ur(t, Array.isArray(N) ? N : [N], e, n, i, r, s, a, l, o), c.base = e.__e, e.__h = null, c.__h.length && a.push(c), y && (c.__E = c.__ = null), c.__e = !1;
265
277
  } else
266
278
  s == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = oa(n.__e, e, n, i, r, s, a, o);
@@ -702,13 +714,13 @@ function Ma(t, e) {
702
714
  }
703
715
  return i;
704
716
  }
705
- const Ia = /(top|left|right|bottom|width|height)$/i;
717
+ const Oa = /(top|left|right|bottom|width|height)$/i;
706
718
  function He(t, e) {
707
719
  for (let n in e)
708
720
  Dr(t, n, e[n]);
709
721
  }
710
722
  function Dr(t, e, n) {
711
- n == null ? t.style[e] = "" : typeof n == "number" && Ia.test(e) ? t.style[e] = `${n}px` : t.style[e] = n;
723
+ n == null ? t.style[e] = "" : typeof n == "number" && Oa.test(e) ? t.style[e] = `${n}px` : t.style[e] = n;
712
724
  }
713
725
  function Ar(t) {
714
726
  var e, n;
@@ -721,14 +733,14 @@ function Tt() {
721
733
  function xt(t) {
722
734
  t.preventDefault();
723
735
  }
724
- function Oa(t, e) {
736
+ function Ia(t, e) {
725
737
  return (n) => {
726
738
  let i = U(n.target, t);
727
739
  i && e.call(i, n, i);
728
740
  };
729
741
  }
730
742
  function Tr(t, e, n, i) {
731
- let r = Oa(n, i);
743
+ let r = Ia(n, i);
732
744
  return t.addEventListener(e, r), () => {
733
745
  t.removeEventListener(e, r);
734
746
  };
@@ -801,14 +813,14 @@ function Ua(t) {
801
813
  r = n[i], typeof r == "string" ? e.push(r.charAt(0) === "-" ? { field: r.substring(1), order: -1 } : { field: r, order: 1 }) : typeof r == "function" && e.push({ func: r });
802
814
  return e;
803
815
  }
804
- function Fa(t, e, n) {
816
+ function ja(t, e, n) {
805
817
  let i, r;
806
818
  for (i = 0; i < n.length; i += 1)
807
- if (r = ja(t, e, n[i]), r)
819
+ if (r = Fa(t, e, n[i]), r)
808
820
  return r;
809
821
  return 0;
810
822
  }
811
- function ja(t, e, n) {
823
+ function Fa(t, e, n) {
812
824
  return n.func ? n.func(t, e) : Wa(t[n.field], e[n.field]) * (n.order || 1);
813
825
  }
814
826
  function Wa(t, e) {
@@ -1052,7 +1064,7 @@ function Si(t, e) {
1052
1064
  let n = oe(t);
1053
1065
  return n[2] += e * 7, V(n);
1054
1066
  }
1055
- function F(t, e) {
1067
+ function j(t, e) {
1056
1068
  let n = oe(t);
1057
1069
  return n[2] += e, V(n);
1058
1070
  }
@@ -1126,13 +1138,13 @@ function fl(t) {
1126
1138
  ]);
1127
1139
  }
1128
1140
  function hl(t, e, n) {
1129
- let i = t.getUTCFullYear(), r = Ft(t, i, e, n);
1141
+ let i = t.getUTCFullYear(), r = jt(t, i, e, n);
1130
1142
  if (r < 1)
1131
- return Ft(t, i - 1, e, n);
1132
- let s = Ft(t, i + 1, e, n);
1143
+ return jt(t, i - 1, e, n);
1144
+ let s = jt(t, i + 1, e, n);
1133
1145
  return s >= 1 ? Math.min(r, s) : r;
1134
1146
  }
1135
- function Ft(t, e, n, i) {
1147
+ function jt(t, e, n, i) {
1136
1148
  let r = V([e, 0, 1 + pl(e, n, i)]), s = P(t), a = Math.round(Ce(r, s));
1137
1149
  return Math.floor(a / 7) + 1;
1138
1150
  }
@@ -1182,7 +1194,7 @@ function Mr(t) {
1182
1194
  function ce(t) {
1183
1195
  return t.getUTCHours() * 1e3 * 60 * 60 + t.getUTCMinutes() * 1e3 * 60 + t.getUTCSeconds() * 1e3 + t.getUTCMilliseconds();
1184
1196
  }
1185
- function Ir(t, e, n = !1) {
1197
+ function Or(t, e, n = !1) {
1186
1198
  let i = t.toISOString();
1187
1199
  return i = i.replace(".000", ""), n && (i = i.replace("T00:00:00Z", "")), i.length > 10 && (e == null ? i = i.replace("Z", "") : e !== 0 && (i = i.replace("Z", xn(e, !0)))), i;
1188
1200
  }
@@ -1649,7 +1661,7 @@ const ki = {
1649
1661
  _noEventResize: m,
1650
1662
  _resize: m,
1651
1663
  _scrollRequest: m
1652
- }, Ii = {
1664
+ }, Oi = {
1653
1665
  buttonText: m,
1654
1666
  buttonHints: m,
1655
1667
  views: m,
@@ -1675,7 +1687,7 @@ function ge(t, e) {
1675
1687
  function Xe(t, e) {
1676
1688
  return Array.isArray(t) && Array.isArray(e) ? ue(t, e) : t === e;
1677
1689
  }
1678
- const Il = {
1690
+ const Ol = {
1679
1691
  type: String,
1680
1692
  component: m,
1681
1693
  buttonText: String,
@@ -1687,7 +1699,7 @@ const Il = {
1687
1699
  didMount: m,
1688
1700
  willUnmount: m
1689
1701
  };
1690
- function jt(t) {
1702
+ function Ft(t) {
1691
1703
  return Dn(t, pe);
1692
1704
  }
1693
1705
  function Rn(t, e) {
@@ -1710,7 +1722,7 @@ function kn(t, e, n, i) {
1710
1722
  forcedEndTzo: i ?? null
1711
1723
  };
1712
1724
  }
1713
- function Ol(t, e, n, i) {
1725
+ function Il(t, e, n, i) {
1714
1726
  for (let r = 0; r < i.length; r += 1) {
1715
1727
  let s = i[r].parse(t, n);
1716
1728
  if (s) {
@@ -1752,8 +1764,8 @@ function Nl(t, e, n, i, r) {
1752
1764
  }, i);
1753
1765
  return t.allDay && (a = a.map(P)), a;
1754
1766
  }
1755
- function Fe(t, e, n, i, r, s) {
1756
- let a = Y(), l = On(n);
1767
+ function je(t, e, n, i, r, s) {
1768
+ let a = Y(), l = In(n);
1757
1769
  for (let o of t) {
1758
1770
  let d = Pr(o, e, n, i, l, r, s);
1759
1771
  d && on(d, a);
@@ -1777,7 +1789,7 @@ function Pl(t, e) {
1777
1789
  function Y() {
1778
1790
  return { defs: {}, instances: {} };
1779
1791
  }
1780
- function In(t, e) {
1792
+ function On(t, e) {
1781
1793
  return {
1782
1794
  defs: Object.assign(Object.assign({}, t.defs), e.defs),
1783
1795
  instances: Object.assign(Object.assign({}, t.instances), e.instances)
@@ -1800,9 +1812,9 @@ function Hl(t, e) {
1800
1812
  };
1801
1813
  }
1802
1814
  function Ll(t, e) {
1803
- return Array.isArray(t) ? Fe(t, null, e, !0) : typeof t == "object" && t ? Fe([t], null, e, !0) : t != null ? String(t) : null;
1815
+ return Array.isArray(t) ? je(t, null, e, !0) : typeof t == "object" && t ? je([t], null, e, !0) : t != null ? String(t) : null;
1804
1816
  }
1805
- function Oi(t) {
1817
+ function Ii(t) {
1806
1818
  return Array.isArray(t) ? t : typeof t == "string" ? t.split(/\s+/) : [];
1807
1819
  }
1808
1820
  const vt = {
@@ -1813,8 +1825,8 @@ const vt = {
1813
1825
  constraint: m,
1814
1826
  overlap: m,
1815
1827
  allow: m,
1816
- className: Oi,
1817
- classNames: Oi,
1828
+ className: Ii,
1829
+ classNames: Ii,
1818
1830
  color: String,
1819
1831
  backgroundColor: String,
1820
1832
  borderColor: String,
@@ -1847,7 +1859,7 @@ function yt(t, e) {
1847
1859
  // join singular and plural
1848
1860
  };
1849
1861
  }
1850
- function Or(t) {
1862
+ function Ir(t) {
1851
1863
  return t.reduce(zl, Bl);
1852
1864
  }
1853
1865
  function zl(t, e) {
@@ -1876,8 +1888,8 @@ const ot = {
1876
1888
  date: m,
1877
1889
  allDay: Boolean
1878
1890
  }, Ul = Object.assign(Object.assign(Object.assign({}, ot), Nr), { extendedProps: m });
1879
- function Pr(t, e, n, i, r = On(n), s, a) {
1880
- let { refined: l, extra: o } = Hr(t, n, r), d = jl(e, n), c = Ol(l, d, n.dateEnv, n.pluginHooks.recurringTypes);
1891
+ function Pr(t, e, n, i, r = In(n), s, a) {
1892
+ let { refined: l, extra: o } = Hr(t, n, r), d = Fl(e, n), c = Il(l, d, n.dateEnv, n.pluginHooks.recurringTypes);
1881
1893
  if (c) {
1882
1894
  let f = cn(l, o, e ? e.sourceId : "", c.allDay, !!c.duration, n, s);
1883
1895
  return f.recurringDef = {
@@ -1886,17 +1898,17 @@ function Pr(t, e, n, i, r = On(n), s, a) {
1886
1898
  duration: c.duration
1887
1899
  }, { def: f, instance: null };
1888
1900
  }
1889
- let h = Fl(l, d, n, i);
1901
+ let h = jl(l, d, n, i);
1890
1902
  if (h) {
1891
1903
  let f = cn(l, o, e ? e.sourceId : "", h.allDay, h.hasEnd, n, s), u = kn(f.defId, h.range, h.forcedStartTzo, h.forcedEndTzo);
1892
1904
  return a && f.publicId && a[f.publicId] && (u.instanceId = a[f.publicId]), { def: f, instance: u };
1893
1905
  }
1894
1906
  return null;
1895
1907
  }
1896
- function Hr(t, e, n = On(e)) {
1908
+ function Hr(t, e, n = In(e)) {
1897
1909
  return Rn(t, n);
1898
1910
  }
1899
- function On(t) {
1911
+ function In(t) {
1900
1912
  return Object.assign(Object.assign(Object.assign({}, vt), Ul), t.pluginHooks.eventRefiners);
1901
1913
  }
1902
1914
  function cn(t, e, n, i, r, s, a) {
@@ -1918,7 +1930,7 @@ function cn(t, e, n, i, r, s, a) {
1918
1930
  Object.assign(l, o(t));
1919
1931
  return Object.freeze(l.ui.classNames), Object.freeze(l.extendedProps), l;
1920
1932
  }
1921
- function Fl(t, e, n, i) {
1933
+ function jl(t, e, n, i) {
1922
1934
  let { allDay: r } = t, s, a = null, l = !1, o, d = null, c = t.start != null ? t.start : t.date;
1923
1935
  if (s = n.dateEnv.createMarkerMeta(c), s)
1924
1936
  a = s.marker;
@@ -1932,7 +1944,7 @@ function Fl(t, e, n, i) {
1932
1944
  forcedEndTzo: o ? o.forcedTzo : null
1933
1945
  };
1934
1946
  }
1935
- function jl(t, e) {
1947
+ function Fl(t, e) {
1936
1948
  let n = null;
1937
1949
  return t && (n = t.defaultAllDay), n == null && (n = e.options.defaultAllDay), n;
1938
1950
  }
@@ -1946,14 +1958,14 @@ const Wl = {
1946
1958
  // so multiple defs get grouped
1947
1959
  };
1948
1960
  function Vl(t, e) {
1949
- return Fe(Gl(t), null, e);
1961
+ return je(Gl(t), null, e);
1950
1962
  }
1951
1963
  function Gl(t) {
1952
1964
  let e;
1953
1965
  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({}, Wl), n)), e;
1954
1966
  }
1955
1967
  function Lr(t) {
1956
- let e = Math.floor(Ce(t.start, t.end)) || 1, n = P(t.start), i = F(n, e);
1968
+ let e = Math.floor(Ce(t.start, t.end)) || 1, n = P(t.start), i = j(n, e);
1957
1969
  return { start: n, end: i };
1958
1970
  }
1959
1971
  function Br(t, e = k(0)) {
@@ -1961,9 +1973,9 @@ function Br(t, e = k(0)) {
1961
1973
  if (t.end) {
1962
1974
  i = P(t.end);
1963
1975
  let r = t.end.valueOf() - i.valueOf();
1964
- r && r >= Z(e) && (i = F(i, 1));
1976
+ r && r >= Z(e) && (i = j(i, 1));
1965
1977
  }
1966
- return t.start && (n = P(t.start), i && i <= n && (i = F(n, 1))), { start: n, end: i };
1978
+ return t.start && (n = P(t.start), i && i <= n && (i = j(n, 1))), { start: n, end: i };
1967
1979
  }
1968
1980
  function Ae(t, e, n, i) {
1969
1981
  return i === "year" ? k(n.diffWholeYears(t, e), "year") : i === "month" ? k(n.diffWholeMonths(t, e), "month") : ol(t, e);
@@ -2086,7 +2098,7 @@ function Jl(t, e, n) {
2086
2098
  let i = [];
2087
2099
  t && i.push(t), e && i.push(e);
2088
2100
  let r = {
2089
- "": Or(i)
2101
+ "": Ir(i)
2090
2102
  };
2091
2103
  return n && Object.assign(r, n), r;
2092
2104
  }
@@ -2122,7 +2134,7 @@ function te(t, e) {
2122
2134
  function no(t, e) {
2123
2135
  return e.start != null && t < e.start ? e.start : e.end != null && t >= e.end ? new Date(e.end.valueOf() - 1) : t;
2124
2136
  }
2125
- function Fr(t, e, n, i) {
2137
+ function jr(t, e, n, i) {
2126
2138
  return {
2127
2139
  dow: t.getUTCDay(),
2128
2140
  isDisabled: !!(i && !te(i.activeRange, t)),
@@ -2178,17 +2190,17 @@ function lo() {
2178
2190
  function oo() {
2179
2191
  let t = document.createElement("div");
2180
2192
  t.style.overflow = "scroll", t.style.position = "absolute", t.style.top = "-9999px", t.style.left = "-9999px", document.body.appendChild(t);
2181
- let e = jr(t);
2193
+ let e = Fr(t);
2182
2194
  return document.body.removeChild(t), e;
2183
2195
  }
2184
- function jr(t) {
2196
+ function Fr(t) {
2185
2197
  return {
2186
2198
  x: t.offsetHeight - t.clientHeight,
2187
2199
  y: t.offsetWidth - t.clientWidth
2188
2200
  };
2189
2201
  }
2190
2202
  function co(t, e = !1) {
2191
- let n = window.getComputedStyle(t), i = parseInt(n.borderLeftWidth, 10) || 0, r = parseInt(n.borderRightWidth, 10) || 0, s = parseInt(n.borderTopWidth, 10) || 0, a = parseInt(n.borderBottomWidth, 10) || 0, l = jr(t), o = l.y - i - r, d = l.x - s - a, c = {
2203
+ let n = window.getComputedStyle(t), i = parseInt(n.borderLeftWidth, 10) || 0, r = parseInt(n.borderRightWidth, 10) || 0, s = parseInt(n.borderTopWidth, 10) || 0, a = parseInt(n.borderBottomWidth, 10) || 0, l = Fr(t), o = l.y - i - r, d = l.x - s - a, c = {
2192
2204
  borderLeft: i,
2193
2205
  borderRight: r,
2194
2206
  borderTop: s,
@@ -2419,7 +2431,7 @@ class vo extends Ln {
2419
2431
  return document.documentElement.clientWidth;
2420
2432
  }
2421
2433
  }
2422
- class je {
2434
+ class Fe {
2423
2435
  constructor(e) {
2424
2436
  this.iconOverrideOption && this.setIconOverride(e[this.iconOverrideOption]);
2425
2437
  }
@@ -2449,10 +2461,10 @@ class je {
2449
2461
  return this.iconOverrideCustomButtonOption && (n = e[this.iconOverrideCustomButtonOption], n) ? `${this.baseIconClass} ${this.applyIconOverridePrefix(n)}` : "";
2450
2462
  }
2451
2463
  }
2452
- je.prototype.classes = {};
2453
- je.prototype.iconClasses = {};
2454
- je.prototype.baseIconClass = "";
2455
- je.prototype.iconOverridePrefix = "";
2464
+ Fe.prototype.classes = {};
2465
+ Fe.prototype.iconClasses = {};
2466
+ Fe.prototype.baseIconClass = "";
2467
+ Fe.prototype.iconOverridePrefix = "";
2456
2468
  function Pi(t) {
2457
2469
  t();
2458
2470
  let e = S.debounceRendering, n = [];
@@ -2555,9 +2567,9 @@ Se.addStateEquality = wo;
2555
2567
  Se.contextType = re;
2556
2568
  Se.prototype.propEquality = {};
2557
2569
  Se.prototype.stateEquality = {};
2558
- class I extends Se {
2570
+ class O extends Se {
2559
2571
  }
2560
- I.contextType = re;
2572
+ O.contextType = re;
2561
2573
  function _o(t) {
2562
2574
  let e = Object.create(this.prototype.propEquality);
2563
2575
  Object.assign(e, t), this.prototype.propEquality = e;
@@ -2569,7 +2581,7 @@ function wo(t) {
2569
2581
  function ie(t, e) {
2570
2582
  typeof t == "function" ? t(e) : t && (t.current = e);
2571
2583
  }
2572
- class K extends I {
2584
+ class K extends O {
2573
2585
  constructor() {
2574
2586
  super(...arguments), this.uid = we();
2575
2587
  }
@@ -2686,7 +2698,7 @@ class Gr {
2686
2698
  // slotMinTime or slotMaxTime causes the range to expand.
2687
2699
  adjustActiveRange(e) {
2688
2700
  let { dateEnv: n, usesMinMaxTime: i, slotMinTime: r, slotMaxTime: s } = this.props, { start: a, end: l } = e;
2689
- return i && (xe(r) < 0 && (a = P(a), a = n.add(a, r)), xe(s) > 1 && (l = P(l), l = F(l, -1), l = n.add(l, s))), { start: a, end: l };
2701
+ return i && (xe(r) < 0 && (a = P(a), a = n.add(a, r)), xe(s) > 1 && (l = P(l), l = j(l, -1), l = n.add(l, s))), { start: a, end: l };
2690
2702
  }
2691
2703
  // Builds the "current" range when it is specified as an explicit duration.
2692
2704
  // `unit` is the already-computed greatestDurationDenominator unit of duration.
@@ -2707,7 +2719,7 @@ class Gr {
2707
2719
  let { dateEnv: r, dateAlignment: s } = this.props, a = 0, l = e, o;
2708
2720
  s && (l = r.startOf(l, s)), l = P(l), l = this.skipHiddenDays(l, n), o = l;
2709
2721
  do
2710
- o = F(o, 1), this.isHiddenDay(o) || (a += 1);
2722
+ o = j(o, 1), this.isHiddenDay(o) || (a += 1);
2711
2723
  while (a < i);
2712
2724
  return { start: l, end: o };
2713
2725
  }
@@ -2765,7 +2777,7 @@ class Gr {
2765
2777
  // `inc` defaults to `1` (increment one day forward each time)
2766
2778
  skipHiddenDays(e, n = 1, i = !1) {
2767
2779
  for (; this.isHiddenDayHash[(e.getUTCDay() + (i ? n : 0) + 7) % 7]; )
2768
- e = F(e, n);
2780
+ e = j(e, n);
2769
2781
  return e;
2770
2782
  }
2771
2783
  }
@@ -3147,7 +3159,7 @@ function xo(t) {
3147
3159
  function Bi(t, e) {
3148
3160
  t.fcSeg = e;
3149
3161
  }
3150
- function Ie(t) {
3162
+ function Oe(t) {
3151
3163
  return t.fcSeg || t.parentNode.fcSeg || // for the harness
3152
3164
  null;
3153
3165
  }
@@ -3156,11 +3168,11 @@ function Et(t, e) {
3156
3168
  }
3157
3169
  function Qr(t, e) {
3158
3170
  let n = [];
3159
- return e[""] && n.push(e[""]), e[t.defId] && n.push(e[t.defId]), n.push(t.ui), Or(n);
3171
+ return e[""] && n.push(e[""]), e[t.defId] && n.push(e[t.defId]), n.push(t.ui), Ir(n);
3160
3172
  }
3161
3173
  function $r(t, e) {
3162
3174
  let n = t.map(Ro);
3163
- return n.sort((i, r) => Fa(i, r, e)), n.map((i) => i._seg);
3175
+ return n.sort((i, r) => ja(i, r, e)), n.map((i) => i._seg);
3164
3176
  }
3165
3177
  function Ro(t) {
3166
3178
  let { eventRange: e } = t, n = e.def, i = e.instance ? e.instance.range : e.range, r = i.start ? i.start.valueOf() : 0, s = i.end ? i.end.valueOf() : 0;
@@ -3182,7 +3194,7 @@ function ko(t, e) {
3182
3194
  function Mo(t, e) {
3183
3195
  return t.isStart && t.eventRange.ui.durationEditable && e.options.eventResizableFromStart;
3184
3196
  }
3185
- function Io(t, e) {
3197
+ function Oo(t, e) {
3186
3198
  return t.isEnd && t.eventRange.ui.durationEditable;
3187
3199
  }
3188
3200
  function Zr(t, e, n, i, r, s, a) {
@@ -3205,7 +3217,7 @@ function de(t, e, n) {
3205
3217
  isToday: e && te(e, i.start)
3206
3218
  };
3207
3219
  }
3208
- function Oo(t) {
3220
+ function Io(t) {
3209
3221
  let e = ["fc-event"];
3210
3222
  return t.isMirror && e.push("fc-event-mirror"), t.isDraggable && e.push("fc-event-draggable"), (t.isStartResizable || t.isEndResizable) && e.push("fc-event-resizable"), t.isDragging && e.push("fc-event-dragging"), t.isResizing && e.push("fc-event-resizing"), t.isSelected && e.push("fc-event-selected"), t.isStart && e.push("fc-event-start"), t.isEnd && e.push("fc-event-end"), t.isPast && e.push("fc-event-past"), t.isToday && e.push("fc-event-today"), t.isFuture && e.push("fc-event-future"), e;
3211
3223
  }
@@ -3296,10 +3308,10 @@ function Uo(t, e, n) {
3296
3308
  };
3297
3309
  }
3298
3310
  let ts = {};
3299
- function Fo(t, e) {
3311
+ function jo(t, e) {
3300
3312
  ts[t] = e;
3301
3313
  }
3302
- function jo(t) {
3314
+ function Fo(t) {
3303
3315
  return new ts[t]();
3304
3316
  }
3305
3317
  class Wo {
@@ -3319,7 +3331,7 @@ class Wo {
3319
3331
  return oe(e);
3320
3332
  }
3321
3333
  }
3322
- Fo("gregory", Wo);
3334
+ jo("gregory", Wo);
3323
3335
  const Vo = /^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;
3324
3336
  function Go(t) {
3325
3337
  let e = Vo.exec(t);
@@ -3339,7 +3351,7 @@ function Go(t) {
3339
3351
  class Yo {
3340
3352
  constructor(e) {
3341
3353
  let n = this.timeZone = e.timeZone, i = n !== "local" && n !== "UTC";
3342
- e.namedTimeZoneImpl && i && (this.namedTimeZoneImpl = new e.namedTimeZoneImpl(n)), this.canComputeOffset = !!(!i || this.namedTimeZoneImpl), this.calendarSystem = jo(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;
3354
+ e.namedTimeZoneImpl && i && (this.namedTimeZoneImpl = new e.namedTimeZoneImpl(n)), this.canComputeOffset = !!(!i || this.namedTimeZoneImpl), this.calendarSystem = Fo(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;
3343
3355
  }
3344
3356
  // Creating / Parsing
3345
3357
  createMarker(e) {
@@ -3456,7 +3468,7 @@ class Yo {
3456
3468
  */
3457
3469
  formatIso(e, n = {}) {
3458
3470
  let i = null;
3459
- return n.omitTimeZoneOffset || (n.forcedTzo != null ? i = n.forcedTzo : i = this.offsetForMarker(e)), Ir(e, i, n.omitTime);
3471
+ return n.omitTimeZoneOffset || (n.forcedTzo != null ? i = n.forcedTzo : i = this.offsetForMarker(e)), Or(e, i, n.omitTime);
3460
3472
  }
3461
3473
  // TimeZone
3462
3474
  timestampToMarker(e) {
@@ -3607,7 +3619,7 @@ function un(t, e, n) {
3607
3619
  }
3608
3620
  return [i, 0];
3609
3621
  }
3610
- class Oe {
3622
+ class Ie {
3611
3623
  constructor(e) {
3612
3624
  this.component = e.component, this.isHitComboAllowed = e.isHitComboAllowed || null;
3613
3625
  }
@@ -3622,7 +3634,7 @@ function $o(t, e) {
3622
3634
  isHitComboAllowed: e.isHitComboAllowed || null
3623
3635
  };
3624
3636
  }
3625
- function Fn(t) {
3637
+ function jn(t) {
3626
3638
  return {
3627
3639
  [t.component.uid]: t
3628
3640
  };
@@ -3641,8 +3653,8 @@ class Zo {
3641
3653
  setAutoScrollEnabled(e) {
3642
3654
  }
3643
3655
  }
3644
- const jn = {};
3645
- class Xo extends I {
3656
+ const Fn = {};
3657
+ class Xo extends O {
3646
3658
  constructor() {
3647
3659
  super(...arguments), this.state = {
3648
3660
  forPrint: !1
@@ -3677,7 +3689,7 @@ const is = "fc-col-header-cell";
3677
3689
  function rs(t) {
3678
3690
  return t.text;
3679
3691
  }
3680
- class Wn extends I {
3692
+ class Wn extends O {
3681
3693
  constructor() {
3682
3694
  super(...arguments), this.id = we(), this.queuedDomNodes = [], this.currentDomNodes = [], this.handleEl = (e) => {
3683
3695
  this.props.elRef && ie(this.props.elRef, e);
@@ -3782,9 +3794,9 @@ function tc(t, e) {
3782
3794
  const n = typeof t == "function" ? t(e) : t || [];
3783
3795
  return typeof n == "string" ? [n] : n;
3784
3796
  }
3785
- class nc extends I {
3797
+ class nc extends O {
3786
3798
  render() {
3787
- let { dateEnv: e, options: n, theme: i, viewApi: r } = this.context, { props: s } = this, { date: a, dateProfile: l } = s, o = Fr(a, s.todayRange, null, l), d = [is].concat(Pn(o, i)), c = e.format(a, s.dayHeaderFormat), h = !o.isDisabled && s.colCnt > 1 ? bt(this.context, a) : {}, f = Object.assign(Object.assign(Object.assign({ date: e.toDate(a), view: r }, s.extraRenderProps), { text: c }), o);
3799
+ let { dateEnv: e, options: n, theme: i, viewApi: r } = this.context, { props: s } = this, { date: a, dateProfile: l } = s, o = jr(a, s.todayRange, null, l), d = [is].concat(Pn(o, i)), c = e.format(a, s.dayHeaderFormat), h = !o.isDisabled && s.colCnt > 1 ? bt(this.context, a) : {}, f = Object.assign(Object.assign(Object.assign({ date: e.toDate(a), view: r }, s.extraRenderProps), { text: c }), o);
3788
3800
  return p(q, { elTag: "th", elClasses: d, elAttrs: Object.assign({ role: "columnheader", colSpan: s.colSpan, "data-date": o.isDisabled ? void 0 : Tn(a) }, s.extraDataAttrs), renderProps: f, generatorName: "dayHeaderContent", customGenerator: n.dayHeaderContent, defaultGenerator: rs, classNameGenerator: n.dayHeaderClassNames, didMount: n.dayHeaderDidMount, willUnmount: n.dayHeaderWillUnmount }, (u) => p("div", { className: "fc-scrollgrid-sync-inner" }, !o.isDisabled && p(u, { elTag: "a", elAttrs: h, elClasses: [
3789
3801
  "fc-col-header-cell-cushion",
3790
3802
  s.isSticky && "fc-sticky"
@@ -3792,9 +3804,9 @@ class nc extends I {
3792
3804
  }
3793
3805
  }
3794
3806
  const ic = B({ weekday: "long" });
3795
- class rc extends I {
3807
+ class rc extends O {
3796
3808
  render() {
3797
- let { props: e } = this, { dateEnv: n, theme: i, viewApi: r, options: s } = this.context, a = F(/* @__PURE__ */ new Date(2592e5), e.dow), l = {
3809
+ let { props: e } = this, { dateEnv: n, theme: i, viewApi: r, options: s } = this.context, a = j(/* @__PURE__ */ new Date(2592e5), e.dow), l = {
3798
3810
  dow: e.dow,
3799
3811
  isDisabled: !1,
3800
3812
  isFuture: !1,
@@ -3860,10 +3872,10 @@ class Ve extends G {
3860
3872
  }
3861
3873
  Ve.contextType = re;
3862
3874
  function zi(t) {
3863
- let e = P(t), n = F(e, 1);
3875
+ let e = P(t), n = j(e, 1);
3864
3876
  return { start: e, end: n };
3865
3877
  }
3866
- class os extends I {
3878
+ class os extends O {
3867
3879
  constructor() {
3868
3880
  super(...arguments), this.createDayHeaderFormatter = D(sc);
3869
3881
  }
@@ -3884,11 +3896,11 @@ class cs {
3884
3896
  constructor(e, n) {
3885
3897
  let i = e.start, { end: r } = e, s = [], a = [], l = -1;
3886
3898
  for (; i < r; )
3887
- n.isHiddenDay(i) ? s.push(l + 0.5) : (l += 1, s.push(l), a.push(i)), i = F(i, 1);
3899
+ n.isHiddenDay(i) ? s.push(l + 0.5) : (l += 1, s.push(l), a.push(i)), i = j(i, 1);
3888
3900
  this.dates = a, this.indices = s, this.cnt = a.length;
3889
3901
  }
3890
3902
  sliceRange(e) {
3891
- let n = this.getDateDayIndex(e.start), i = this.getDateDayIndex(F(e.end, -1)), r = Math.max(0, n), s = Math.min(this.cnt - 1, i);
3903
+ let n = this.getDateDayIndex(e.start), i = this.getDateDayIndex(j(e.end, -1)), r = Math.max(0, n), s = Math.min(this.cnt - 1, i);
3892
3904
  return r = Math.ceil(r), s = Math.floor(s), r <= s ? {
3893
3905
  firstIndex: r,
3894
3906
  lastIndex: s,
@@ -4037,7 +4049,7 @@ class us {
4037
4049
  let i = e.range;
4038
4050
  this.forceDayIfListItem && e.ui.display === "list-item" && (i = {
4039
4051
  start: i.start,
4040
- end: F(i.start, 1)
4052
+ end: j(i.start, 1)
4041
4053
  });
4042
4054
  let r = this.sliceRange(i, ...n);
4043
4055
  for (let s of r)
@@ -4070,7 +4082,7 @@ function ac(t, e, n, i, r) {
4070
4082
  case "RESET_EVENTS":
4071
4083
  return e.eventStore;
4072
4084
  case "MERGE_EVENTS":
4073
- return In(t, e.eventStore);
4085
+ return On(t, e.eventStore);
4074
4086
  case "PREV":
4075
4087
  case "NEXT":
4076
4088
  case "CHANGE_DATE":
@@ -4091,14 +4103,14 @@ function ac(t, e, n, i, r) {
4091
4103
  function lc(t, e, n, i, r, s) {
4092
4104
  if (e && // not already removed
4093
4105
  n === e.latestFetchId) {
4094
- let a = Fe(fs(r, e, s), e, s);
4095
- return i && (a = Ee(a, i, s)), In(hs(t, e.sourceId), a);
4106
+ let a = je(fs(r, e, s), e, s);
4107
+ return i && (a = Ee(a, i, s)), On(hs(t, e.sourceId), a);
4096
4108
  }
4097
4109
  return t;
4098
4110
  }
4099
4111
  function oc(t, e, n, i, r) {
4100
4112
  const { defIdMap: s, instanceIdMap: a } = uc(t);
4101
- let l = Fe(fs(n, e, r), e, r, !1, s, a);
4113
+ let l = je(fs(n, e, r), e, r, !1, s, a);
4102
4114
  return Ee(l, i, r);
4103
4115
  }
4104
4116
  function fs(t, e, n) {
@@ -4119,9 +4131,9 @@ function Ui(t, e) {
4119
4131
  return n;
4120
4132
  }
4121
4133
  function cc(t, e, n, i) {
4122
- return n && (e = Ee(e, n, i)), In(t, e);
4134
+ return n && (e = Ee(e, n, i)), On(t, e);
4123
4135
  }
4124
- function Fi(t, e, n) {
4136
+ function ji(t, e, n) {
4125
4137
  let { defs: i } = t, r = ne(t.instances, (s) => i[s.defId].allDay ? s : Object.assign(Object.assign({}, s), { range: {
4126
4138
  start: n.createMarker(e.toDate(s.range.start, s.forcedStartTzo)),
4127
4139
  end: n.createMarker(e.toDate(s.range.end, s.forcedEndTzo))
@@ -4184,9 +4196,9 @@ function pc(t, e, n, i) {
4184
4196
  )))
4185
4197
  return !1;
4186
4198
  }
4187
- let O = r.eventStore;
4199
+ let I = r.eventStore;
4188
4200
  for (let M of E.allows) {
4189
- let N = Object.assign(Object.assign({}, n), { range: y.range, allDay: C.allDay }), R = O.defs[C.defId], Q = O.instances[v], ae;
4201
+ let N = Object.assign(Object.assign({}, n), { range: y.range, allDay: C.allDay }), R = I.defs[C.defId], Q = I.instances[v], ae;
4190
4202
  if (R ? ae = new L(e, R, Q) : ae = new L(e, C), !M(Bn(N, e), ae))
4191
4203
  return !1;
4192
4204
  }
@@ -4231,7 +4243,7 @@ function vc(t, e) {
4231
4243
  return !0;
4232
4244
  return !1;
4233
4245
  }
4234
- class ji extends Error {
4246
+ class Fi extends Error {
4235
4247
  constructor(e, n) {
4236
4248
  super(e), this.response = n;
4237
4249
  }
@@ -4246,9 +4258,9 @@ function yc(t, e, n) {
4246
4258
  }), fetch(e, i).then((r) => {
4247
4259
  if (r.ok)
4248
4260
  return r.json().then((s) => [s, r], () => {
4249
- throw new ji("Failure parsing JSON", r);
4261
+ throw new Fi("Failure parsing JSON", r);
4250
4262
  });
4251
- throw new ji("Request failed", r);
4263
+ throw new Fi("Request failed", r);
4252
4264
  });
4253
4265
  }
4254
4266
  class Vn {
@@ -4291,7 +4303,7 @@ class Vn {
4291
4303
  }
4292
4304
  }
4293
4305
  const et = /^(visible|hidden)$/;
4294
- class bc extends I {
4306
+ class bc extends O {
4295
4307
  constructor() {
4296
4308
  super(...arguments), this.handleEl = (e) => {
4297
4309
  this.el = e, ie(this.props.elRef, e);
@@ -4444,7 +4456,7 @@ function ys(t) {
4444
4456
  let { stickyFooterScrollbar: e } = t;
4445
4457
  return (e == null || e === "auto") && (e = t.height === "auto" || t.viewHeight === "auto"), e;
4446
4458
  }
4447
- class Gn extends I {
4459
+ class Gn extends O {
4448
4460
  constructor() {
4449
4461
  super(...arguments), this.processCols = D((e) => e, Cc), this.renderMicroColGroup = D(Sc), this.scrollerRefs = new ee(), this.scrollerElRefs = new ee(this._handleScrollerEl.bind(this)), this.state = {
4450
4462
  shrinkWidth: null,
@@ -4544,7 +4556,7 @@ function Rc(t, e) {
4544
4556
  return n;
4545
4557
  return null;
4546
4558
  }
4547
- class Yn extends I {
4559
+ class Yn extends O {
4548
4560
  constructor() {
4549
4561
  super(...arguments), this.handleEl = (e) => {
4550
4562
  this.el = e, e && Bi(e, this.props.seg);
@@ -4560,7 +4572,7 @@ class Yn extends I {
4560
4572
  borderColor: a.borderColor,
4561
4573
  isDraggable: !e.disableDragging && ko(r, n),
4562
4574
  isStartResizable: !e.disableResizing && Mo(r, n),
4563
- isEndResizable: !e.disableResizing && Io(r),
4575
+ isEndResizable: !e.disableResizing && Oo(r),
4564
4576
  isMirror: !!(e.isDragging || e.isResizing || e.isDateSelecting),
4565
4577
  isStart: !!r.isStart,
4566
4578
  isEnd: !!r.isEnd,
@@ -4572,7 +4584,7 @@ class Yn extends I {
4572
4584
  isResizing: !!e.isResizing
4573
4585
  };
4574
4586
  return p(q, Object.assign({}, e, { elRef: this.handleEl, elClasses: [
4575
- ...Oo(l),
4587
+ ...Io(l),
4576
4588
  ...r.eventRange.ui.classNames,
4577
4589
  ...e.elClasses || []
4578
4590
  ], renderProps: l, generatorName: "eventContent", customGenerator: i.eventContent, defaultGenerator: e.defaultGenerator, classNameGenerator: i.eventClassNames, didMount: i.eventDidMount, willUnmount: i.eventWillUnmount }));
@@ -4581,7 +4593,7 @@ class Yn extends I {
4581
4593
  this.el && this.props.seg !== e.seg && Bi(this.el, this.props.seg);
4582
4594
  }
4583
4595
  }
4584
- class bs extends I {
4596
+ class bs extends O {
4585
4597
  render() {
4586
4598
  let { props: e, context: n } = this, { options: i } = n, { seg: r } = e, { ui: s } = r.eventRange, a = i.eventTimeFormat || e.defaultTimeFormat, l = Zr(r, a, n, e.defaultDisplayEventTime, e.defaultDisplayEventEnd);
4587
4599
  return p(Yn, Object.assign({}, e, { elTag: "a", elStyle: {
@@ -4616,9 +4628,9 @@ const qn = (t) => p(re.Consumer, null, (e) => {
4616
4628
  };
4617
4629
  return p(q, Object.assign({}, t, { elTag: t.elTag || "div", renderProps: i, generatorName: "nowIndicatorContent", customGenerator: n.nowIndicatorContent, classNameGenerator: n.nowIndicatorClassNames, didMount: n.nowIndicatorDidMount, willUnmount: n.nowIndicatorWillUnmount }));
4618
4630
  }), Mc = B({ day: "numeric" });
4619
- class Qn extends I {
4631
+ class Qn extends O {
4620
4632
  constructor() {
4621
- super(...arguments), this.refineRenderProps = lt(Ic);
4633
+ super(...arguments), this.refineRenderProps = lt(Oc);
4622
4634
  }
4623
4635
  render() {
4624
4636
  let { props: e, context: n } = this, { options: i } = n, r = this.refineRenderProps({
@@ -4644,20 +4656,20 @@ class Qn extends I {
4644
4656
  function $n(t) {
4645
4657
  return !!(t.dayCellContent || ss("dayCellContent", t));
4646
4658
  }
4647
- function Ic(t) {
4648
- let { date: e, dateEnv: n, dateProfile: i, isMonthStart: r } = t, s = Fr(e, t.todayRange, null, i), a = t.showDayNumber ? n.format(e, r ? t.monthStartFormat : Mc) : "";
4659
+ function Oc(t) {
4660
+ let { date: e, dateEnv: n, dateProfile: i, isMonthStart: r } = t, s = jr(e, t.todayRange, null, i), a = t.showDayNumber ? n.format(e, r ? t.monthStartFormat : Mc) : "";
4649
4661
  return Object.assign(Object.assign(Object.assign({ date: n.toDate(e), view: t.viewApi }, s), {
4650
4662
  isMonthStart: r,
4651
4663
  dayNumberText: a
4652
4664
  }), t.extraRenderProps);
4653
4665
  }
4654
- class Es extends I {
4666
+ class Es extends O {
4655
4667
  render() {
4656
4668
  let { props: e } = this, { seg: n } = e;
4657
- return p(Yn, { elTag: "div", elClasses: ["fc-bg-event"], elStyle: { backgroundColor: n.eventRange.ui.backgroundColor }, defaultGenerator: Oc, seg: n, timeText: "", isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, isPast: e.isPast, isFuture: e.isFuture, isToday: e.isToday, disableDragging: !0, disableResizing: !0 });
4669
+ return p(Yn, { elTag: "div", elClasses: ["fc-bg-event"], elStyle: { backgroundColor: n.eventRange.ui.backgroundColor }, defaultGenerator: Ic, seg: n, timeText: "", isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, isPast: e.isPast, isFuture: e.isFuture, isToday: e.isToday, disableDragging: !0, disableResizing: !0 });
4658
4670
  }
4659
4671
  }
4660
- function Oc(t) {
4672
+ function Ic(t) {
4661
4673
  let { title: e } = t.event;
4662
4674
  return e && p("div", { className: "fc-event-title" }, t.event.title);
4663
4675
  }
@@ -4675,7 +4687,7 @@ function Nc(t) {
4675
4687
  return t.text;
4676
4688
  }
4677
4689
  const $t = 10;
4678
- class Pc extends I {
4690
+ class Pc extends O {
4679
4691
  constructor() {
4680
4692
  super(...arguments), this.state = {
4681
4693
  titleId: Tt()
@@ -4765,7 +4777,7 @@ class Hc extends K {
4765
4777
  } : null;
4766
4778
  }
4767
4779
  }
4768
- class Cs extends I {
4780
+ class Cs extends O {
4769
4781
  constructor() {
4770
4782
  super(...arguments), this.state = {
4771
4783
  isPopoverOpen: !1,
@@ -4833,7 +4845,7 @@ function Wi(t) {
4833
4845
  if (t.allDayDate)
4834
4846
  return {
4835
4847
  start: t.allDayDate,
4836
- end: F(t.allDayDate, 1)
4848
+ end: j(t.allDayDate, 1)
4837
4849
  };
4838
4850
  let { hiddenSegs: e } = t;
4839
4851
  return {
@@ -4853,7 +4865,7 @@ function zc(t) {
4853
4865
  function Uc(t, e) {
4854
4866
  return t.eventRange.range.end > e.eventRange.range.end ? t : e;
4855
4867
  }
4856
- class wt extends I {
4868
+ class wt extends O {
4857
4869
  render() {
4858
4870
  let { props: e, context: n } = this, { options: i } = n, r = { view: n.viewApi };
4859
4871
  return p(q, Object.assign({}, e, { elTag: e.elTag || "div", elClasses: [
@@ -4868,7 +4880,7 @@ function Ds(t) {
4868
4880
  "fc-view"
4869
4881
  ];
4870
4882
  }
4871
- const Fc = {
4883
+ const jc = {
4872
4884
  id: String,
4873
4885
  defaultAllDay: Boolean,
4874
4886
  url: String,
@@ -4882,7 +4894,7 @@ const Fc = {
4882
4894
  function As(t, e, n = Ts(e)) {
4883
4895
  let i;
4884
4896
  if (typeof t == "string" ? i = { url: t } : typeof t == "function" || Array.isArray(t) ? i = { events: t } : typeof t == "object" && t && (i = t), i) {
4885
- let { refined: r, extra: s } = Rn(i, n), a = jc(r, e);
4897
+ let { refined: r, extra: s } = Rn(i, n), a = Fc(r, e);
4886
4898
  if (a)
4887
4899
  return {
4888
4900
  _raw: t,
@@ -4904,9 +4916,9 @@ function As(t, e, n = Ts(e)) {
4904
4916
  return null;
4905
4917
  }
4906
4918
  function Ts(t) {
4907
- return Object.assign(Object.assign(Object.assign({}, vt), Fc), t.pluginHooks.eventSourceRefiners);
4919
+ return Object.assign(Object.assign(Object.assign({}, vt), jc), t.pluginHooks.eventSourceRefiners);
4908
4920
  }
4909
- function jc(t, e) {
4921
+ function Fc(t, e) {
4910
4922
  let n = e.pluginHooks.eventSourceDefs;
4911
4923
  for (let i = n.length - 1; i >= 0; i -= 1) {
4912
4924
  let s = n[i].parseMeta(t);
@@ -5415,7 +5427,7 @@ function Zc(t, e) {
5415
5427
  function Xc(t, e) {
5416
5428
  return t === void 0 ? e : e === void 0 ? t : new Date(Math.max(t.valueOf(), e.valueOf()));
5417
5429
  }
5418
- class he extends je {
5430
+ class he extends Fe {
5419
5431
  }
5420
5432
  he.prototype.classes = {
5421
5433
  root: "fc-theme-standard",
@@ -5474,7 +5486,7 @@ function Vi(t) {
5474
5486
  }
5475
5487
  function ed(t) {
5476
5488
  let e = typeof t == "function" ? { component: t } : t, { component: n } = e;
5477
- return e.content ? n = Gi(e) : n && !(n.prototype instanceof I) && (n = Gi(Object.assign(Object.assign({}, e), { content: n }))), {
5489
+ return e.content ? n = Gi(e) : n && !(n.prototype instanceof O) && (n = Gi(Object.assign(Object.assign({}, e), { content: n }))), {
5478
5490
  superType: e.type,
5479
5491
  component: n,
5480
5492
  rawOptions: e
@@ -5558,13 +5570,13 @@ function ad(t, e, n, i) {
5558
5570
  }
5559
5571
  function ld(t, e, n) {
5560
5572
  let i = e ? e.activeRange : null;
5561
- return Os({}, pd(t, n), i, n);
5573
+ return Is({}, pd(t, n), i, n);
5562
5574
  }
5563
5575
  function od(t, e, n, i) {
5564
5576
  let r = n ? n.activeRange : null;
5565
5577
  switch (e.type) {
5566
5578
  case "ADD_EVENT_SOURCES":
5567
- return Os(t, e.sources, r, i);
5579
+ return Is(t, e.sources, r, i);
5568
5580
  case "REMOVE_EVENT_SOURCE":
5569
5581
  return dd(t, e.sourceId);
5570
5582
  case "PREV":
@@ -5590,13 +5602,13 @@ function cd(t, e, n) {
5590
5602
  let i = e ? e.activeRange : null;
5591
5603
  return Zn(t, Ps(t, n), i, !0, n);
5592
5604
  }
5593
- function Is(t) {
5605
+ function Os(t) {
5594
5606
  for (let e in t)
5595
5607
  if (t[e].isFetching)
5596
5608
  return !0;
5597
5609
  return !1;
5598
5610
  }
5599
- function Os(t, e, n, i) {
5611
+ function Is(t, e, n, i) {
5600
5612
  let r = {};
5601
5613
  for (let s of e)
5602
5614
  r[s.sourceId] = s;
@@ -5734,15 +5746,15 @@ function Ed(t, e, n, i, r, s) {
5734
5746
  return { widgets: f.map((b) => b.split(",").map((E) => {
5735
5747
  if (E === "title")
5736
5748
  return v = !0, { buttonName: E };
5737
- let C, T, A, O, M, N;
5749
+ let C, T, A, I, M, N;
5738
5750
  if (C = l[E])
5739
5751
  A = (R) => {
5740
5752
  C.click && C.click.call(R.target, R, R.target);
5741
- }, (O = i.getCustomButtonIconClass(C)) || (O = i.getIconClass(E, a)) || (M = C.text), N = C.hint || C.text;
5753
+ }, (I = i.getCustomButtonIconClass(C)) || (I = i.getIconClass(E, a)) || (M = C.text), N = C.hint || C.text;
5742
5754
  else if (T = r[E]) {
5743
5755
  u.push(E), A = () => {
5744
5756
  s.changeView(E);
5745
- }, (M = T.buttonTextOverride) || (O = i.getIconClass(E, a)) || (M = T.buttonTextDefault);
5757
+ }, (M = T.buttonTextOverride) || (I = i.getIconClass(E, a)) || (M = T.buttonTextDefault);
5746
5758
  let R = T.buttonTextOverride || T.buttonTextDefault;
5747
5759
  N = Le(
5748
5760
  T.buttonTitleOverride || T.buttonTitleDefault || e.viewHint,
@@ -5753,7 +5765,7 @@ function Ed(t, e, n, i, r, s) {
5753
5765
  } else if (s[E])
5754
5766
  if (A = () => {
5755
5767
  s[E]();
5756
- }, (M = o[E]) || (O = i.getIconClass(E, a)) || (M = d[E]), E === "prevYear" || E === "nextYear") {
5768
+ }, (M = o[E]) || (I = i.getIconClass(E, a)) || (M = d[E]), E === "prevYear" || E === "nextYear") {
5757
5769
  let R = E === "prevYear" ? "prev" : "next";
5758
5770
  N = Le(c[R] || h[R], [
5759
5771
  d.year || "year",
@@ -5764,7 +5776,7 @@ function Ed(t, e, n, i, r, s) {
5764
5776
  d[R] || R,
5765
5777
  R
5766
5778
  ], d[E]);
5767
- return { buttonName: E, buttonClick: A, buttonIcon: O, buttonText: M, buttonHint: N };
5779
+ return { buttonName: E, buttonClick: A, buttonIcon: I, buttonText: M, buttonHint: N };
5768
5780
  })), viewsWithButtons: u, hasTitle: v };
5769
5781
  }
5770
5782
  class _d {
@@ -5884,19 +5896,19 @@ let Md = {
5884
5896
  },
5885
5897
  expand(t, e, n) {
5886
5898
  let i = _e(e, { start: t.startRecur, end: t.endRecur });
5887
- return i ? Od(t.daysOfWeek, t.startTime, i, n) : [];
5899
+ return i ? Id(t.daysOfWeek, t.startTime, i, n) : [];
5888
5900
  }
5889
5901
  };
5890
- const Id = se({
5902
+ const Od = se({
5891
5903
  name: "simple-recurring-event",
5892
5904
  recurringTypes: [Md],
5893
5905
  eventRefiners: kd
5894
5906
  });
5895
- function Od(t, e, n, i) {
5907
+ function Id(t, e, n, i) {
5896
5908
  let r = t ? kr(t) : null, s = P(n.start), a = n.end, l = [];
5897
5909
  for (; s < a; ) {
5898
5910
  let o;
5899
- (!r || r[s.getUTCDay()]) && (e ? o = i.add(s, e) : o = s, l.push(o)), s = F(s, 1);
5911
+ (!r || r[s.getUTCDay()]) && (e ? o = i.add(s, e) : o = s, l.push(o)), s = j(s, 1);
5900
5912
  }
5901
5913
  return l;
5902
5914
  }
@@ -5948,12 +5960,12 @@ const Ld = [
5948
5960
  Cd,
5949
5961
  Dd,
5950
5962
  xd,
5951
- Id,
5963
+ Od,
5952
5964
  Nd,
5953
5965
  se({
5954
5966
  name: "misc",
5955
5967
  isLoadingFuncs: [
5956
- (t) => Is(t.eventSources)
5968
+ (t) => Os(t.eventSources)
5957
5969
  ],
5958
5970
  propSetHandlers: {
5959
5971
  dateProfile: Pd,
@@ -6006,9 +6018,9 @@ function Ud(t) {
6006
6018
  let n = pt(t.currentRange.start, t.currentRange.end);
6007
6019
  return n !== null && n > 1 ? { year: "numeric", month: "short", day: "numeric" } : { year: "numeric", month: "long", day: "numeric" };
6008
6020
  }
6009
- class Fd {
6021
+ class jd {
6010
6022
  constructor(e) {
6011
- this.computeCurrentViewData = D(this._computeCurrentViewData), this.organizeRawLocales = D(Gc), this.buildLocale = D(ks), this.buildPluginHooks = $c(), this.buildDateEnv = D(jd), this.buildTheme = D(Wd), this.parseToolbars = D(bd), this.buildViewSpecs = D(td), this.buildDateProfileGenerator = lt(Vd), this.buildViewApi = D(Gd), this.buildViewUiProps = lt(Qd), this.buildEventUiBySource = D(Yd, J), this.buildEventUiBases = D(qd), this.parseContextBusinessHours = lt($d), this.buildTitle = D(zd), this.emitter = new Mt(), this.actionRunner = new Bd(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) => {
6023
+ this.computeCurrentViewData = D(this._computeCurrentViewData), this.organizeRawLocales = D(Gc), this.buildLocale = D(ks), this.buildPluginHooks = $c(), this.buildDateEnv = D(Fd), this.buildTheme = D(Wd), this.parseToolbars = D(bd), this.buildViewSpecs = D(td), this.buildDateProfileGenerator = lt(Vd), this.buildViewApi = D(Gd), this.buildViewUiProps = lt(Qd), this.buildEventUiBySource = D(Yd, J), this.buildEventUiBases = D(qd), this.parseContextBusinessHours = lt($d), this.buildTitle = D(zd), this.emitter = new Mt(), this.actionRunner = new Bd(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) => {
6012
6024
  this.actionRunner.request(f);
6013
6025
  }, this.props = e, this.actionRunner.pause();
6014
6026
  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);
@@ -6067,7 +6079,7 @@ class Fd {
6067
6079
  this.data && this.data.dateProfileGenerator !== o.dateProfileGenerator && (h = o.dateProfileGenerator.build(c)), c = Co(c, e), h = ad(h, e, c, o.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
6068
6080
  e.type === "NEXT" || // "
6069
6081
  !te(h.currentRange, c)) && (c = h.currentRange.start);
6070
- let f = od(i.eventSources, e, h, d), u = ac(i.eventStore, e, f, h, d), y = Is(f) && !o.options.progressiveEventRendering && i.renderableEventStore || u, { eventUiSingleBase: b, selectionConfig: E } = this.buildViewUiProps(d), C = this.buildEventUiBySource(f), T = this.buildEventUiBases(y.defs, b, C), A = {
6082
+ let f = od(i.eventSources, e, h, d), u = ac(i.eventStore, e, f, h, d), y = Os(f) && !o.options.progressiveEventRendering && i.renderableEventStore || u, { eventUiSingleBase: b, selectionConfig: E } = this.buildViewUiProps(d), C = this.buildEventUiBySource(f), T = this.buildEventUiBases(y.defs, b, C), A = {
6071
6083
  dynamicOptionOverrides: s,
6072
6084
  currentViewType: l,
6073
6085
  currentDate: c,
@@ -6082,16 +6094,16 @@ class Fd {
6082
6094
  eventSelection: md(i.eventSelection, e),
6083
6095
  eventDrag: vd(i.eventDrag, e),
6084
6096
  eventResize: yd(i.eventResize, e)
6085
- }, O = Object.assign(Object.assign({}, d), A);
6097
+ }, I = Object.assign(Object.assign({}, d), A);
6086
6098
  for (let R of a.pluginHooks.reducers)
6087
- Object.assign(A, R(i, e, O));
6099
+ Object.assign(A, R(i, e, I));
6088
6100
  let M = Zt(i, d), N = Zt(A, d);
6089
6101
  !M && N ? r.trigger("loading", !0) : M && !N && r.trigger("loading", !1), this.state = A, n.onAction && n.onAction(e);
6090
6102
  }
6091
6103
  updateData() {
6092
6104
  let { props: e, state: n } = this, i = this.data, r = this.computeOptionsData(e.optionOverrides, n.dynamicOptionOverrides, e.calendarApi), s = this.computeCurrentViewData(n.currentViewType, r, e.optionOverrides, n.dynamicOptionOverrides), a = this.data = Object.assign(Object.assign(Object.assign({ viewTitle: this.buildTitle(n.dateProfile, s.options, r.dateEnv), calendarApi: e.calendarApi, dispatch: this.dispatch, emitter: this.emitter, getCurrentData: this.getCurrentData }, r), s), n), l = r.pluginHooks.optionChangeHandlers, o = i && i.calendarOptions, d = r.calendarOptions;
6093
6105
  if (o && o !== d) {
6094
- o.timeZone !== d.timeZone && (n.eventSources = a.eventSources = cd(a.eventSources, n.dateProfile, a), n.eventStore = a.eventStore = Fi(a.eventStore, i.dateEnv, a.dateEnv), n.renderableEventStore = a.renderableEventStore = Fi(a.renderableEventStore, i.dateEnv, a.dateEnv));
6106
+ o.timeZone !== d.timeZone && (n.eventSources = a.eventSources = cd(a.eventSources, n.dateProfile, a), n.eventStore = a.eventStore = ji(a.eventStore, i.dateEnv, a.dateEnv), n.renderableEventStore = a.renderableEventStore = ji(a.renderableEventStore, i.dateEnv, a.dateEnv));
6095
6107
  for (let c in l)
6096
6108
  (this.optionsForHandling.indexOf(c) !== -1 || o[c] !== d[c]) && l[c](d[c], a);
6097
6109
  }
@@ -6116,11 +6128,11 @@ class Fd {
6116
6128
  }
6117
6129
  // always called from behind a memoizer
6118
6130
  processRawCalendarOptions(e, n) {
6119
- let { locales: i, locale: r } = jt([
6131
+ let { locales: i, locale: r } = Ft([
6120
6132
  Be,
6121
6133
  e,
6122
6134
  n
6123
- ]), s = this.organizeRawLocales(i), a = s.map, l = this.buildLocale(r || s.defaultCode, a).options, o = this.buildPluginHooks(e.plugins || [], Ld), d = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ki), Mi), Ii), o.listenerRefiners), o.optionRefiners), c = {}, h = jt([
6135
+ ]), s = this.organizeRawLocales(i), a = s.map, l = this.buildLocale(r || s.defaultCode, a).options, o = this.buildPluginHooks(e.plugins || [], Ld), d = this.currentCalendarOptionsRefiners = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ki), Mi), Oi), o.listenerRefiners), o.optionRefiners), c = {}, h = Ft([
6124
6136
  Be,
6125
6137
  l,
6126
6138
  e,
@@ -6166,14 +6178,14 @@ class Fd {
6166
6178
  return { viewSpec: s, options: a, dateProfileGenerator: o, viewApi: d };
6167
6179
  }
6168
6180
  processRawViewOptions(e, n, i, r, s) {
6169
- let a = jt([
6181
+ let a = Ft([
6170
6182
  Be,
6171
6183
  e.optionDefaults,
6172
6184
  i,
6173
6185
  r,
6174
6186
  e.optionOverrides,
6175
6187
  s
6176
- ]), l = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ki), Mi), Ii), Il), n.listenerRefiners), n.optionRefiners), o = {}, d = this.currentViewOptionsInput, c = this.currentViewOptionsRefined, h = !1, f = {};
6188
+ ]), l = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ki), Mi), Oi), Ol), n.listenerRefiners), n.optionRefiners), o = {}, d = this.currentViewOptionsInput, c = this.currentViewOptionsRefined, h = !1, f = {};
6177
6189
  for (let u in a)
6178
6190
  a[u] === d[u] || pe[u] && pe[u](a[u], d[u]) ? o[u] = c[u] : (a[u] === this.currentCalendarOptionsInput[u] || pe[u] && pe[u](a[u], this.currentCalendarOptionsInput[u]) ? u in this.currentCalendarOptionsRefined && (o[u] = this.currentCalendarOptionsRefined[u]) : l[u] ? o[u] = l[u](a[u]) : f[u] = a[u], h = !0);
6179
6191
  return h && (this.currentViewOptionsInput = a, this.currentViewOptionsRefined = o), {
@@ -6183,7 +6195,7 @@ class Fd {
6183
6195
  };
6184
6196
  }
6185
6197
  }
6186
- function jd(t, e, n, i, r, s, a, l) {
6198
+ function Fd(t, e, n, i, r, s, a, l) {
6187
6199
  let o = ks(e || a.defaultCode, a.map);
6188
6200
  return new Yo({
6189
6201
  calendarSystem: "gregory",
@@ -6256,7 +6268,7 @@ function $i(t, e) {
6256
6268
  for (let n in t)
6257
6269
  console.warn(`Unknown option '${n}'` + (e ? ` for view '${e}'` : ""));
6258
6270
  }
6259
- class Zd extends I {
6271
+ class Zd extends O {
6260
6272
  render() {
6261
6273
  let e = this.props.widgetGroups.map((n) => this.renderWidgetGroup(n));
6262
6274
  return p("div", { className: "fc-toolbar-chunk" }, ...e);
@@ -6279,7 +6291,7 @@ class Zd extends I {
6279
6291
  return r[0];
6280
6292
  }
6281
6293
  }
6282
- class Zi extends I {
6294
+ class Zi extends O {
6283
6295
  render() {
6284
6296
  let { model: e, extraClassName: n } = this.props, i = !1, r, s, a = e.sectionWidgets, l = a.center;
6285
6297
  return a.left ? (i = !0, r = a.left) : r = a.start, a.right ? (i = !0, s = a.right) : s = a.end, p(
@@ -6299,7 +6311,7 @@ class Zi extends I {
6299
6311
  return p(Zd, { key: e, widgetGroups: n, title: i.title, navUnit: i.navUnit, activeButton: i.activeButton, isTodayEnabled: i.isTodayEnabled, isPrevEnabled: i.isPrevEnabled, isNextEnabled: i.isNextEnabled, titleId: i.titleId });
6300
6312
  }
6301
6313
  }
6302
- class Xd extends I {
6314
+ class Xd extends O {
6303
6315
  constructor() {
6304
6316
  super(...arguments), this.state = {
6305
6317
  availableWidth: null
@@ -6328,10 +6340,10 @@ class Xd extends I {
6328
6340
  this.props.aspectRatio && this.setState({ availableWidth: this.el.offsetWidth });
6329
6341
  }
6330
6342
  }
6331
- class Jd extends Oe {
6343
+ class Jd extends Ie {
6332
6344
  constructor(e) {
6333
6345
  super(e), this.handleSegClick = (n, i) => {
6334
- let { component: r } = this, { context: s } = r, a = Ie(i);
6346
+ let { component: r } = this, { context: s } = r, a = Oe(i);
6335
6347
  if (a && // might be the <div> surrounding the more link
6336
6348
  r.isValidSegDownEl(n.target)) {
6337
6349
  let l = U(n.target, ".fc-event-forced-url"), o = l ? l.querySelector("a[href]").href : "";
@@ -6351,12 +6363,12 @@ class Jd extends Oe {
6351
6363
  );
6352
6364
  }
6353
6365
  }
6354
- class Kd extends Oe {
6366
+ class Kd extends Ie {
6355
6367
  constructor(e) {
6356
6368
  super(e), this.handleEventElRemove = (n) => {
6357
6369
  n === this.currentSegEl && this.handleSegLeave(null, this.currentSegEl);
6358
6370
  }, this.handleSegEnter = (n, i) => {
6359
- Ie(i) && (this.currentSegEl = i, this.triggerEvent("eventMouseEnter", n, i));
6371
+ Oe(i) && (this.currentSegEl = i, this.triggerEvent("eventMouseEnter", n, i));
6360
6372
  }, this.handleSegLeave = (n, i) => {
6361
6373
  this.currentSegEl && (this.currentSegEl = null, this.triggerEvent("eventMouseLeave", n, i));
6362
6374
  }, this.removeHoverListeners = Na(
@@ -6371,7 +6383,7 @@ class Kd extends Oe {
6371
6383
  this.removeHoverListeners();
6372
6384
  }
6373
6385
  triggerEvent(e, n, i) {
6374
- let { component: r } = this, { context: s } = r, a = Ie(i);
6386
+ let { component: r } = this, { context: s } = r, a = Oe(i);
6375
6387
  (!n || r.isValidSegDownEl(n.target)) && s.emitter.trigger(e, {
6376
6388
  el: i,
6377
6389
  event: new L(s, a.eventRange.def, a.eventRange.instance),
@@ -6382,7 +6394,7 @@ class Kd extends Oe {
6382
6394
  }
6383
6395
  class eu extends Se {
6384
6396
  constructor() {
6385
- super(...arguments), this.buildViewContext = D(Eo), this.buildViewPropTransformers = D(nu), this.buildToolbarProps = D(tu), this.headerRef = j(), this.footerRef = j(), this.interactionsStore = {}, this.state = {
6397
+ super(...arguments), this.buildViewContext = D(Eo), this.buildViewPropTransformers = D(nu), this.buildToolbarProps = D(tu), this.headerRef = F(), this.footerRef = F(), this.interactionsStore = {}, this.state = {
6386
6398
  viewLabelId: Tt()
6387
6399
  }, this.registerInteractiveComponent = (e, n) => {
6388
6400
  let i = $o(e, n), a = [
@@ -6511,7 +6523,7 @@ class iu extends Wc {
6511
6523
  });
6512
6524
  } else
6513
6525
  this.isRendered && (this.isRendered = !1, Ue(null, this.el), this.setClassNames([]), this.setHeight(""));
6514
- }, Da(e), this.el = e, this.renderRunner = new Vn(this.handleRenderRequest), new Fd({
6526
+ }, Da(e), this.el = e, this.renderRunner = new Vn(this.handleRenderRequest), new jd({
6515
6527
  optionOverrides: n,
6516
6528
  calendarApi: this,
6517
6529
  onAction: this.handleAction,
@@ -6602,13 +6614,13 @@ function Bs(t) {
6602
6614
  t.isStart && // "
6603
6615
  t.isEnd;
6604
6616
  }
6605
- class zs extends I {
6617
+ class zs extends O {
6606
6618
  render() {
6607
6619
  let { props: e } = this;
6608
6620
  return p(bs, Object.assign({}, e, { elClasses: ["fc-daygrid-event", "fc-daygrid-block-event", "fc-h-event"], defaultTimeFormat: Ls, defaultDisplayEventEnd: e.defaultDisplayEventEnd, disableResizing: !e.seg.eventRange.def.allDay }));
6609
6621
  }
6610
6622
  }
6611
- class Us extends I {
6623
+ class Us extends O {
6612
6624
  render() {
6613
6625
  let { props: e, context: n } = this, { options: i } = n, { seg: r } = e, s = i.eventTimeFormat || Ls, a = Zr(r, s, n, !0, e.defaultDisplayEventEnd);
6614
6626
  return p(Yn, Object.assign({}, e, { elTag: "a", elClasses: ["fc-daygrid-event", "fc-daygrid-dot-event"], elAttrs: Jr(e.seg, n), defaultGenerator: su, timeText: a, isResizing: !1, isDateSelecting: !1 }));
@@ -6623,7 +6635,7 @@ function su(t) {
6623
6635
  p("div", { className: "fc-event-title" }, t.event.title || p(H, null, " "))
6624
6636
  );
6625
6637
  }
6626
- class au extends I {
6638
+ class au extends O {
6627
6639
  constructor() {
6628
6640
  super(...arguments), this.compileSegs = D(lu);
6629
6641
  }
@@ -6649,7 +6661,7 @@ function lu(t) {
6649
6661
  const ou = B({ week: "narrow" });
6650
6662
  class cu extends K {
6651
6663
  constructor() {
6652
- super(...arguments), this.rootElRef = j(), this.state = {
6664
+ super(...arguments), this.rootElRef = F(), this.state = {
6653
6665
  dayNumberId: Tt()
6654
6666
  }, this.handleRootEl = (e) => {
6655
6667
  ie(this.rootElRef, e), ie(this.props.elRef, e);
@@ -6811,7 +6823,7 @@ function Re(t, e, n, i) {
6811
6823
  return t;
6812
6824
  let r = t.eventRange, s = r.range, a = _e(s, {
6813
6825
  start: i[e].date,
6814
- end: F(i[n - 1].date, 1)
6826
+ end: j(i[n - 1].date, 1)
6815
6827
  });
6816
6828
  return Object.assign(Object.assign({}, t), { firstCol: e, lastCol: n - 1, eventRange: {
6817
6829
  def: r.def,
@@ -6844,9 +6856,9 @@ class gu extends ns {
6844
6856
  return super.handleInvalidInsertion(e, n, i);
6845
6857
  }
6846
6858
  }
6847
- class Fs extends K {
6859
+ class js extends K {
6848
6860
  constructor() {
6849
- super(...arguments), this.cellElRefs = new ee(), this.frameElRefs = new ee(), this.fgElRefs = new ee(), this.segHarnessRefs = new ee(), this.rootElRef = j(), this.state = {
6861
+ super(...arguments), this.cellElRefs = new ee(), this.frameElRefs = new ee(), this.fgElRefs = new ee(), this.segHarnessRefs = new ee(), this.rootElRef = F(), this.state = {
6850
6862
  framePositions: null,
6851
6863
  maxContentHeight: null,
6852
6864
  eventInstanceHeights: {}
@@ -6908,13 +6920,13 @@ class Fs extends K {
6908
6920
  let { context: o } = this, { eventSelection: d } = this.props, { framePositions: c } = this.state, h = this.props.cells.length === 1, f = s || a || l, u = [];
6909
6921
  if (c)
6910
6922
  for (let v of n) {
6911
- let { seg: y } = v, { instanceId: b } = y.eventRange.instance, E = b + ":" + e, C = v.isVisible && !r[b], T = v.isAbsolute, A = "", O = "";
6912
- T && (o.isRtl ? (O = 0, A = c.lefts[y.lastCol] - c.lefts[y.firstCol]) : (A = 0, O = c.rights[y.firstCol] - c.rights[y.lastCol])), u.push(p("div", { className: "fc-daygrid-event-harness" + (T ? " fc-daygrid-event-harness-abs" : ""), key: E, ref: f ? null : this.segHarnessRefs.createRef(E), style: {
6923
+ let { seg: y } = v, { instanceId: b } = y.eventRange.instance, E = b + ":" + e, C = v.isVisible && !r[b], T = v.isAbsolute, A = "", I = "";
6924
+ T && (o.isRtl ? (I = 0, A = c.lefts[y.lastCol] - c.lefts[y.firstCol]) : (A = 0, I = c.rights[y.firstCol] - c.rights[y.lastCol])), u.push(p("div", { className: "fc-daygrid-event-harness" + (T ? " fc-daygrid-event-harness-abs" : ""), key: E, ref: f ? null : this.segHarnessRefs.createRef(E), style: {
6913
6925
  visibility: C ? "" : "hidden",
6914
6926
  marginTop: T ? "" : v.marginTop,
6915
6927
  top: T ? v.absoluteTop : "",
6916
6928
  left: A,
6917
- right: O
6929
+ right: I
6918
6930
  } }, Bs(y) ? p(Us, Object.assign({ seg: y, isDragging: s, isSelected: b === d, defaultDisplayEventEnd: h }, de(y, i))) : p(zs, Object.assign({ seg: y, isDragging: s, isResizing: a, isDateSelecting: l, isSelected: b === d, defaultDisplayEventEnd: h }, de(y, i)))));
6919
6931
  }
6920
6932
  return u;
@@ -6985,7 +6997,7 @@ class Fs extends K {
6985
6997
  return this.props.cells.map((n) => e[n.key]);
6986
6998
  }
6987
6999
  }
6988
- Fs.addStateEquality({
7000
+ js.addStateEquality({
6989
7001
  eventInstanceHeights: J
6990
7002
  });
6991
7003
  function mu(t, e) {
@@ -7013,7 +7025,7 @@ class yu extends K {
7013
7025
  }
7014
7026
  render() {
7015
7027
  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;
7016
- return p(Ve, { unit: "day" }, (h, f) => p(H, null, e.cells.map((u, v) => p(Fs, {
7028
+ return p(Ve, { unit: "day" }, (h, f) => p(H, null, e.cells.map((u, v) => p(js, {
7017
7029
  ref: this.rowRefs.createRef(v),
7018
7030
  key: u.length ? u[0].date.toISOString() : v,
7019
7031
  showDayNumbers: i > 1,
@@ -7088,7 +7100,7 @@ class yu extends K {
7088
7100
  return this.rowRefs.currentMap[e].getCellEls()[n];
7089
7101
  }
7090
7102
  getCellRange(e, n) {
7091
- let i = this.props.cells[e][n].date, r = F(i, 1);
7103
+ let i = this.props.cells[e][n].date, r = j(i, 1);
7092
7104
  return { start: i, end: r };
7093
7105
  }
7094
7106
  }
@@ -7097,7 +7109,7 @@ function bu(t) {
7097
7109
  }
7098
7110
  class Eu extends K {
7099
7111
  constructor() {
7100
- super(...arguments), this.elRef = j(), this.needsScrollReset = !1;
7112
+ super(...arguments), this.elRef = F(), this.needsScrollReset = !1;
7101
7113
  }
7102
7114
  render() {
7103
7115
  let { props: e } = this, { dayMaxEventRows: n, dayMaxEvents: i, expandRows: r } = e, s = i === !0 || n === !0;
@@ -7164,9 +7176,9 @@ class wu extends us {
7164
7176
  return n.sliceRange(e);
7165
7177
  }
7166
7178
  }
7167
- class js extends K {
7179
+ class Fs extends K {
7168
7180
  constructor() {
7169
- super(...arguments), this.slicer = new wu(), this.tableRef = j();
7181
+ super(...arguments), this.slicer = new wu(), this.tableRef = F();
7170
7182
  }
7171
7183
  render() {
7172
7184
  let { props: e, context: n } = this;
@@ -7188,7 +7200,7 @@ class Cu extends Gr {
7188
7200
  function Su(t) {
7189
7201
  let { dateEnv: e, currentRange: n } = t, { start: i, end: r } = n, s;
7190
7202
  if (t.snapToWeek && (i = e.startOfWeek(i), s = e.startOfWeek(r), s.valueOf() !== r.valueOf() && (r = Si(s, 1))), t.fixedWeekCount) {
7191
- let a = e.startOfWeek(e.startOfMonth(F(n.end, -1))), l = Math.ceil(
7203
+ let a = e.startOfWeek(e.startOfMonth(j(n.end, -1))), l = Math.ceil(
7192
7204
  // could be partial weeks due to hiddenDays
7193
7205
  rl(a, r)
7194
7206
  );
@@ -7198,7 +7210,7 @@ function Su(t) {
7198
7210
  }
7199
7211
  class Du extends K {
7200
7212
  constructor() {
7201
- super(...arguments), this.headerElRef = j();
7213
+ super(...arguments), this.headerElRef = F();
7202
7214
  }
7203
7215
  renderSimpleLayout(e, n) {
7204
7216
  let { props: i, context: r } = this, s = [], a = _t(r.options);
@@ -7262,10 +7274,10 @@ class Du extends K {
7262
7274
  }
7263
7275
  class Au extends Du {
7264
7276
  constructor() {
7265
- super(...arguments), this.buildDayTableModel = D(Tu), this.headerRef = j(), this.tableRef = j();
7277
+ super(...arguments), this.buildDayTableModel = D(Tu), this.headerRef = F(), this.tableRef = F();
7266
7278
  }
7267
7279
  render() {
7268
- let { options: e, dateProfileGenerator: n } = this.context, { props: i } = this, r = this.buildDayTableModel(i.dateProfile, n), s = e.dayHeaders && p(os, { ref: this.headerRef, dateProfile: i.dateProfile, dates: r.headerDates, datesRepDistinctDays: r.rowCnt === 1 }), a = (l) => p(js, { 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 });
7280
+ let { options: e, dateProfileGenerator: n } = this.context, { props: i } = this, r = this.buildDayTableModel(i.dateProfile, n), s = e.dayHeaders && p(os, { ref: this.headerRef, dateProfile: i.dateProfile, dates: r.headerDates, datesRepDistinctDays: r.rowCnt === 1 }), a = (l) => p(Fs, { 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 });
7269
7281
  return e.dayMinWidth ? this.renderHScrollLayout(s, a, r.colCnt, e.dayMinWidth) : this.renderSimpleLayout(s, a);
7270
7282
  }
7271
7283
  }
@@ -7342,7 +7354,7 @@ function Ws(t) {
7342
7354
  };
7343
7355
  return p(q, { elTag: "td", elClasses: e, elAttrs: {
7344
7356
  "data-time": t.isoTimeStr
7345
- }, renderProps: l, generatorName: "slotLabelContent", customGenerator: r.slotLabelContent, defaultGenerator: Iu, classNameGenerator: r.slotLabelClassNames, didMount: r.slotLabelDidMount, willUnmount: r.slotLabelWillUnmount }, (o) => p(
7357
+ }, renderProps: l, generatorName: "slotLabelContent", customGenerator: r.slotLabelContent, defaultGenerator: Ou, classNameGenerator: r.slotLabelClassNames, didMount: r.slotLabelDidMount, willUnmount: r.slotLabelWillUnmount }, (o) => p(
7346
7358
  "div",
7347
7359
  { className: "fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame" },
7348
7360
  p(o, { elTag: "div", elClasses: [
@@ -7352,10 +7364,10 @@ function Ws(t) {
7352
7364
  ));
7353
7365
  });
7354
7366
  }
7355
- function Iu(t) {
7367
+ function Ou(t) {
7356
7368
  return t.text;
7357
7369
  }
7358
- class Ou extends I {
7370
+ class Iu extends O {
7359
7371
  render() {
7360
7372
  return this.props.slatMetas.map((e) => p(
7361
7373
  "tr",
@@ -7367,7 +7379,7 @@ class Ou extends I {
7367
7379
  const Nu = B({ week: "short" }), Pu = 5;
7368
7380
  class Hu extends K {
7369
7381
  constructor() {
7370
- super(...arguments), this.allDaySplitter = new ku(), this.headerElRef = j(), this.rootElRef = j(), this.scrollerElRef = j(), this.state = {
7382
+ super(...arguments), this.allDaySplitter = new ku(), this.headerElRef = F(), this.rootElRef = F(), this.scrollerElRef = F(), this.state = {
7371
7383
  slatCoords: null
7372
7384
  }, this.handleScrollTopRequest = (e) => {
7373
7385
  let n = this.scrollerElRef.current;
@@ -7538,7 +7550,7 @@ class Hu extends K {
7538
7550
  p(
7539
7551
  "tbody",
7540
7552
  null,
7541
- p(Ou, { slatMetas: a })
7553
+ p(Iu, { slatMetas: a })
7542
7554
  )
7543
7555
  ),
7544
7556
  p(
@@ -7620,7 +7632,7 @@ class Bu {
7620
7632
  return s = Math.max(0, s), s = Math.min(r, s), a = Math.floor(s), a = Math.min(a, r - 1), l = s - a, n.tops[a] + n.getHeight(a) * l;
7621
7633
  }
7622
7634
  }
7623
- class zu extends I {
7635
+ class zu extends O {
7624
7636
  render() {
7625
7637
  let { props: e, context: n } = this, { options: i } = n, { slatElRefs: r } = e;
7626
7638
  return p("tbody", null, e.slatMetas.map((s, a) => {
@@ -7644,9 +7656,9 @@ class zu extends I {
7644
7656
  }));
7645
7657
  }
7646
7658
  }
7647
- class Uu extends I {
7659
+ class Uu extends O {
7648
7660
  constructor() {
7649
- super(...arguments), this.rootElRef = j(), this.slatElRefs = new ee();
7661
+ super(...arguments), this.rootElRef = F(), this.slatElRefs = new ee();
7650
7662
  }
7651
7663
  render() {
7652
7664
  let { props: e, context: n } = this;
@@ -7676,10 +7688,10 @@ class Uu extends I {
7676
7688
  }
7677
7689
  updateSizing() {
7678
7690
  let { context: e, props: n } = this;
7679
- n.onCoords && n.clientWidth !== null && this.rootElRef.current.offsetHeight && n.onCoords(new Bu(new Me(this.rootElRef.current, Fu(this.slatElRefs.currentMap, n.slatMetas), !1, !0), this.props.dateProfile, e.options.slotDuration));
7691
+ n.onCoords && n.clientWidth !== null && this.rootElRef.current.offsetHeight && n.onCoords(new Bu(new Me(this.rootElRef.current, ju(this.slatElRefs.currentMap, n.slatMetas), !1, !0), this.props.dateProfile, e.options.slotDuration));
7680
7692
  }
7681
7693
  }
7682
- function Fu(t, e) {
7694
+ function ju(t, e) {
7683
7695
  return e.map((n) => t[n.key]);
7684
7696
  }
7685
7697
  function Pe(t, e) {
@@ -7707,7 +7719,7 @@ function Ji(t, e) {
7707
7719
  n[i] = null;
7708
7720
  return n;
7709
7721
  }
7710
- class ju extends I {
7722
+ class Fu extends O {
7711
7723
  render() {
7712
7724
  let { props: e } = this;
7713
7725
  return p(Cs, { elClasses: ["fc-timegrid-more-link"], elStyle: {
@@ -7858,7 +7870,7 @@ const Ju = B({
7858
7870
  minute: "2-digit",
7859
7871
  meridiem: !1
7860
7872
  });
7861
- class Vs extends I {
7873
+ class Vs extends O {
7862
7874
  render() {
7863
7875
  return p(bs, Object.assign({}, this.props, { elClasses: [
7864
7876
  "fc-timegrid-event",
@@ -7867,7 +7879,7 @@ class Vs extends I {
7867
7879
  ], defaultTimeFormat: Ju }));
7868
7880
  }
7869
7881
  }
7870
- class Ku extends I {
7882
+ class Ku extends O {
7871
7883
  constructor() {
7872
7884
  super(...arguments), this.sortEventSegs = D($r);
7873
7885
  }
@@ -7910,11 +7922,11 @@ class Ku extends I {
7910
7922
  null,
7911
7923
  this.renderHiddenGroups(T, e),
7912
7924
  C.map((A) => {
7913
- let { seg: O, rect: M } = A, N = O.eventRange.instance.instanceId, R = b || !!(!n[N] && M), Q = Xt(M && M.span), ae = !b && M ? this.computeSegHStyle(M) : { left: 0, right: 0 }, qe = !!M && M.stackForward > 0, Qe = !!M && M.span.end - M.span.start < o;
7925
+ let { seg: I, rect: M } = A, N = I.eventRange.instance.instanceId, R = b || !!(!n[N] && M), Q = Xt(M && M.span), ae = !b && M ? this.computeSegHStyle(M) : { left: 0, right: 0 }, qe = !!M && M.stackForward > 0, Qe = !!M && M.span.end - M.span.start < o;
7914
7926
  return p(
7915
7927
  "div",
7916
7928
  { className: "fc-timegrid-event-harness" + (qe ? " fc-timegrid-event-harness-inset" : ""), key: a || N, style: Object.assign(Object.assign({ visibility: R ? "" : "hidden" }, Q), ae) },
7917
- p(Vs, Object.assign({ seg: O, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: N === u, isShort: Qe }, de(O, v, y)))
7929
+ p(Vs, Object.assign({ seg: I, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: N === u, isShort: Qe }, de(I, v, y)))
7918
7930
  );
7919
7931
  })
7920
7932
  );
@@ -7924,7 +7936,7 @@ class Ku extends I {
7924
7936
  let { extraDateSpan: i, dateProfile: r, todayRange: s, nowDate: a, eventSelection: l, eventDrag: o, eventResize: d } = this.props;
7925
7937
  return p(H, null, e.map((c) => {
7926
7938
  let h = Xt(c.span), f = ef(c.entries, n);
7927
- return p(ju, { key: Ir(Ss(f)), hiddenSegs: f, top: h.top, bottom: h.bottom, extraDateSpan: i, dateProfile: r, todayRange: s, nowDate: a, eventSelection: l, eventDrag: o, eventResize: d });
7939
+ return p(Fu, { key: Or(Ss(f)), hiddenSegs: f, top: h.top, bottom: h.bottom, extraDateSpan: i, dateProfile: r, todayRange: s, nowDate: a, eventSelection: l, eventDrag: o, eventResize: d });
7928
7940
  }));
7929
7941
  }
7930
7942
  renderFillSegs(e, n) {
@@ -7981,9 +7993,9 @@ function Xt(t) {
7981
7993
  function ef(t, e) {
7982
7994
  return t.map((n) => e[n.index]);
7983
7995
  }
7984
- class tf extends I {
7996
+ class tf extends O {
7985
7997
  constructor() {
7986
- super(...arguments), this.splitFgEventSegs = D(Pe), this.splitBgEventSegs = D(Pe), this.splitBusinessHourSegs = D(Pe), this.splitNowIndicatorSegs = D(Pe), this.splitDateSelectionSegs = D(Pe), this.splitEventDrag = D(Ji), this.splitEventResize = D(Ji), this.rootElRef = j(), this.cellElRefs = new ee();
7998
+ super(...arguments), this.splitFgEventSegs = D(Pe), this.splitBgEventSegs = D(Pe), this.splitBusinessHourSegs = D(Pe), this.splitNowIndicatorSegs = D(Pe), this.splitDateSelectionSegs = D(Pe), this.splitEventDrag = D(Ji), this.splitEventResize = D(Ji), this.rootElRef = F(), this.cellElRefs = new ee();
7987
7999
  }
7988
8000
  render() {
7989
8001
  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);
@@ -8089,10 +8101,10 @@ class rf extends K {
8089
8101
  queryHit(e, n) {
8090
8102
  let { dateEnv: i, options: r } = this.context, { colCoords: s } = this, { dateProfile: a } = this.props, { slatCoords: l } = this.state, { snapDuration: o, snapsPerSlot: d } = this.processSlotOptions(this.props.slotDuration, r.snapDuration), c = s.leftToIndex(e), h = l.positions.topToIndex(n);
8091
8103
  if (c != null && h != null) {
8092
- let f = this.props.cells[c], u = l.positions.tops[h], v = l.positions.getHeight(h), y = (n - u) / v, b = Math.floor(y * d), E = h * d + b, C = this.props.cells[c].date, T = sn(a.slotMinTime, Za(o, E)), A = i.add(C, T), O = i.add(A, o);
8104
+ let f = this.props.cells[c], u = l.positions.tops[h], v = l.positions.getHeight(h), y = (n - u) / v, b = Math.floor(y * d), E = h * d + b, C = this.props.cells[c].date, T = sn(a.slotMinTime, Za(o, E)), A = i.add(C, T), I = i.add(A, o);
8093
8105
  return {
8094
8106
  dateProfile: a,
8095
- dateSpan: Object.assign({ range: { start: A, end: O }, allDay: !1 }, f.extraDateSpan),
8107
+ dateSpan: Object.assign({ range: { start: A, end: I }, allDay: !1 }, f.extraDateSpan),
8096
8108
  dayEl: s.els[c],
8097
8109
  rect: {
8098
8110
  left: s.lefts[c],
@@ -8128,7 +8140,7 @@ class af extends us {
8128
8140
  }
8129
8141
  class lf extends K {
8130
8142
  constructor() {
8131
- super(...arguments), this.buildDayRanges = D(of), this.slicer = new af(), this.timeColsRef = j();
8143
+ super(...arguments), this.buildDayRanges = D(of), this.slicer = new af(), this.timeColsRef = F();
8132
8144
  }
8133
8145
  render() {
8134
8146
  let { props: e, context: n } = this, { dateProfile: i, dayTableModel: r } = e, { nowIndicator: s, nextDayThreshold: a } = n.options, l = this.buildDayRanges(r, i, n.dateEnv);
@@ -8177,7 +8189,7 @@ class uf extends Hu {
8177
8189
  super(...arguments), this.buildTimeColsModel = D(ff), this.buildSlatMetas = D(cf);
8178
8190
  }
8179
8191
  render() {
8180
- let { options: e, dateEnv: n, dateProfileGenerator: i } = this.context, { props: r } = this, { dateProfile: s } = r, a = this.buildTimeColsModel(s, i), l = this.allDaySplitter.splitProps(r), o = this.buildSlatMetas(s.slotMinTime, s.slotMaxTime, e.slotLabelInterval, e.slotDuration, n), { dayMinWidth: d } = e, c = !d, h = d, f = e.dayHeaders && p(os, { dates: a.headerDates, dateProfile: s, datesRepDistinctDays: !0, renderIntro: c ? this.renderHeadAxis : null }), u = e.allDaySlot !== !1 && ((y) => p(js, Object.assign({}, l.allDay, { dateProfile: s, dayTableModel: a, nextDayThreshold: e.nextDayThreshold, tableMinWidth: y.tableMinWidth, colGroupNode: y.tableColGroupNode, renderRowIntro: c ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: y.clientWidth, clientHeight: y.clientHeight, forPrint: r.forPrint }, this.getAllDayMaxEventProps()))), v = (y) => p(lf, Object.assign({}, l.timed, { dayTableModel: a, dateProfile: s, axis: c, slotDuration: e.slotDuration, slatMetas: o, forPrint: r.forPrint, tableColGroupNode: y.tableColGroupNode, tableMinWidth: y.tableMinWidth, clientWidth: y.clientWidth, clientHeight: y.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: y.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
8192
+ let { options: e, dateEnv: n, dateProfileGenerator: i } = this.context, { props: r } = this, { dateProfile: s } = r, a = this.buildTimeColsModel(s, i), l = this.allDaySplitter.splitProps(r), o = this.buildSlatMetas(s.slotMinTime, s.slotMaxTime, e.slotLabelInterval, e.slotDuration, n), { dayMinWidth: d } = e, c = !d, h = d, f = e.dayHeaders && p(os, { dates: a.headerDates, dateProfile: s, datesRepDistinctDays: !0, renderIntro: c ? this.renderHeadAxis : null }), u = e.allDaySlot !== !1 && ((y) => p(Fs, Object.assign({}, l.allDay, { dateProfile: s, dayTableModel: a, nextDayThreshold: e.nextDayThreshold, tableMinWidth: y.tableMinWidth, colGroupNode: y.tableColGroupNode, renderRowIntro: c ? this.renderTableRowAxis : null, showWeekNumbers: !1, expandRows: !1, headerAlignElRef: this.headerElRef, clientWidth: y.clientWidth, clientHeight: y.clientHeight, forPrint: r.forPrint }, this.getAllDayMaxEventProps()))), v = (y) => p(lf, Object.assign({}, l.timed, { dayTableModel: a, dateProfile: s, axis: c, slotDuration: e.slotDuration, slatMetas: o, forPrint: r.forPrint, tableColGroupNode: y.tableColGroupNode, tableMinWidth: y.tableMinWidth, clientWidth: y.clientWidth, clientHeight: y.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: y.expandRows, onScrollTopRequest: this.handleScrollTopRequest }));
8181
8193
  return h ? this.renderHScrollLayout(f, u, v, a.colCnt, d, o, this.state.slatCoords) : this.renderSimpleLayout(f, u, v);
8182
8194
  }
8183
8195
  }
@@ -8211,7 +8223,7 @@ var pf = se({
8211
8223
  }
8212
8224
  }
8213
8225
  });
8214
- jn.touchMouseIgnoreWait = 500;
8226
+ Fn.touchMouseIgnoreWait = 500;
8215
8227
  let gn = 0, Ct = 0, mn = !1;
8216
8228
  class Ys {
8217
8229
  constructor(e) {
@@ -8322,7 +8334,7 @@ function gf(t) {
8322
8334
  function mf() {
8323
8335
  gn += 1, setTimeout(() => {
8324
8336
  gn -= 1;
8325
- }, jn.touchMouseIgnoreWait);
8337
+ }, Fn.touchMouseIgnoreWait);
8326
8338
  }
8327
8339
  function vf() {
8328
8340
  Ct += 1, Ct === 1 && window.addEventListener("touchmove", qs, { passive: !1 });
@@ -8616,7 +8628,7 @@ function Cf(t) {
8616
8628
  let e = t.tagName;
8617
8629
  return e === "HTML" || e === "BODY";
8618
8630
  }
8619
- class It {
8631
+ class Ot {
8620
8632
  constructor(e, n) {
8621
8633
  this.useSubjectCenter = !1, this.requireInitial = !0, this.initialHit = null, this.movingHit = null, this.finalHit = null, this.handlePointerDown = (i) => {
8622
8634
  let { dragging: r } = this;
@@ -8648,7 +8660,7 @@ class It {
8648
8660
  }
8649
8661
  handleMove(e, n) {
8650
8662
  let i = this.queryHitForOffset(e.pageX + this.coordAdjust.left, e.pageY + this.coordAdjust.top);
8651
- (n || !Ot(this.movingHit, i)) && (this.movingHit = i, this.emitter.trigger("hitupdate", i, !1, e));
8663
+ (n || !It(this.movingHit, i)) && (this.movingHit = i, this.emitter.trigger("hitupdate", i, !1, e));
8652
8664
  }
8653
8665
  prepareHits() {
8654
8666
  this.offsetTrackers = ne(this.droppableStore, (e) => (e.component.prepareHits(), new wf(e.el)));
@@ -8679,7 +8691,7 @@ class It {
8679
8691
  return s;
8680
8692
  }
8681
8693
  }
8682
- function Ot(t, e) {
8694
+ function It(t, e) {
8683
8695
  return !t && !e ? !0 : !!t != !!e ? !1 : Lo(t.dateSpan, e.dateSpan);
8684
8696
  }
8685
8697
  function Zs(t, e) {
@@ -8695,7 +8707,7 @@ function Sf(t, e) {
8695
8707
  allDay: t.allDay
8696
8708
  };
8697
8709
  }
8698
- class Df extends Oe {
8710
+ class Df extends Ie {
8699
8711
  constructor(e) {
8700
8712
  super(e), this.handlePointerDown = (i) => {
8701
8713
  let { dragging: r } = this, s = i.origEvent.target;
@@ -8704,20 +8716,20 @@ class Df extends Oe {
8704
8716
  let { component: r } = this, { pointer: s } = this.dragging;
8705
8717
  if (!s.wasTouchScroll) {
8706
8718
  let { initialHit: a, finalHit: l } = this.hitDragging;
8707
- if (a && l && Ot(a, l)) {
8719
+ if (a && l && It(a, l)) {
8708
8720
  let { context: o } = r, d = Object.assign(Object.assign({}, Zs(a.dateSpan, o)), { dayEl: a.dayEl, jsEvent: i.origEvent, view: o.viewApi || o.calendarApi.view });
8709
8721
  o.emitter.trigger("dateClick", d);
8710
8722
  }
8711
8723
  }
8712
8724
  }, this.dragging = new Ge(e.el), this.dragging.autoScroller.isEnabled = !1;
8713
- let n = this.hitDragging = new It(this.dragging, Fn(e));
8725
+ let n = this.hitDragging = new Ot(this.dragging, jn(e));
8714
8726
  n.emitter.on("pointerdown", this.handlePointerDown), n.emitter.on("dragend", this.handleDragEnd);
8715
8727
  }
8716
8728
  destroy() {
8717
8729
  this.dragging.destroy();
8718
8730
  }
8719
8731
  }
8720
- class Af extends Oe {
8732
+ class Af extends Ie {
8721
8733
  constructor(e) {
8722
8734
  super(e), this.dragSelection = null, this.handlePointerDown = (a) => {
8723
8735
  let { component: l, dragging: o } = this, { options: d } = l.context, c = d.selectable && l.isValidDateDownEl(a.origEvent.target);
@@ -8736,7 +8748,7 @@ class Af extends Oe {
8736
8748
  };
8737
8749
  let { component: n } = e, { options: i } = n.context, r = this.dragging = new Ge(e.el);
8738
8750
  r.touchScrollAllowed = !1, r.minDistance = i.selectMinDistance || 0, r.autoScroller.isEnabled = i.dragScroll;
8739
- let s = this.hitDragging = new It(this.dragging, Fn(e));
8751
+ let s = this.hitDragging = new Ot(this.dragging, jn(e));
8740
8752
  s.emitter.on("pointerdown", this.handlePointerDown), s.emitter.on("dragstart", this.handleDragStart), s.emitter.on("hitupdate", this.handleHitUpdate), s.emitter.on("pointerup", this.handlePointerUp);
8741
8753
  }
8742
8754
  destroy() {
@@ -8764,12 +8776,12 @@ function xf(t, e, n) {
8764
8776
  }
8765
8777
  return a.range = { start: s[0], end: s[3] }, a.allDay = i.allDay, a;
8766
8778
  }
8767
- class Ye extends Oe {
8779
+ class Ye extends Ie {
8768
8780
  constructor(e) {
8769
8781
  super(e), this.subjectEl = null, this.subjectSeg = null, this.isDragging = !1, this.eventRange = null, this.relevantEvents = null, this.receivingContext = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (a) => {
8770
8782
  let l = a.origEvent.target, { component: o, dragging: d } = this, { mirror: c } = d, { options: h } = o.context, f = o.context;
8771
8783
  this.subjectEl = a.subjectEl;
8772
- let u = this.subjectSeg = Ie(a.subjectEl), y = (this.eventRange = u.eventRange).instance.instanceId;
8784
+ let u = this.subjectSeg = Oe(a.subjectEl), y = (this.eventRange = u.eventRange).instance.instanceId;
8773
8785
  this.relevantEvents = Mn(f.getCurrentData().eventStore, y), d.minDistance = a.isTouch ? 0 : h.eventDragMinDistance, d.delay = // only do a touch delay if touch and this event hasn't been selected yet
8774
8786
  a.isTouch && y !== o.props.eventSelection ? kf(o) : null, h.fixedMirrorParent ? c.parentNode = h.fixedMirrorParent : c.parentNode = U(l, ".fc"), c.revertDuration = h.dragRevertDuration;
8775
8787
  let b = o.isValidSegDownEl(l) && !U(l, ".fc-event-resizer");
@@ -8796,7 +8808,7 @@ class Ye extends Oe {
8796
8808
  c === h || b.editable && b.droppable ? (f = Rf(d, a, h.getCurrentData().pluginHooks.eventDragMutationMassagers), f && (u = zn(o, h.getCurrentData().eventUiBases, f, h), y.mutatedEvents = u, ps(y, a.dateProfile, h) || (v = !0, f = null, u = null, y.mutatedEvents = Y()))) : h = null;
8797
8809
  }
8798
8810
  this.displayDrag(h, y), v ? wn() : Cn(), l || (c === h && // TODO: write test for this
8799
- Ot(d, a) && (f = null), this.dragging.setMirrorNeedsRevert(!f), this.dragging.setMirrorIsVisible(!a || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = h, this.validMutation = f, this.mutatedRelevantEvents = u);
8811
+ It(d, a) && (f = null), this.dragging.setMirrorNeedsRevert(!f), this.dragging.setMirrorIsVisible(!a || !this.subjectEl.getRootNode().querySelector(".fc-event-mirror")), this.receivingContext = h, this.validMutation = f, this.mutatedRelevantEvents = u);
8800
8812
  }, this.handlePointerUp = () => {
8801
8813
  this.isDragging || this.cleanup();
8802
8814
  }, this.handleDragEnd = (a) => {
@@ -8849,7 +8861,7 @@ class Ye extends Oe {
8849
8861
  type: "MERGE_EVENTS",
8850
8862
  eventStore: y
8851
8863
  });
8852
- let O = {
8864
+ let I = {
8853
8865
  event: A,
8854
8866
  relatedEvents: ve(y, d, T),
8855
8867
  revert() {
@@ -8859,10 +8871,10 @@ class Ye extends Oe {
8859
8871
  });
8860
8872
  }
8861
8873
  };
8862
- d.emitter.trigger("eventAdd", O), a.isTouch && d.dispatch({
8874
+ d.emitter.trigger("eventAdd", I), a.isTouch && d.dispatch({
8863
8875
  type: "SELECT_EVENT",
8864
8876
  eventInstanceId: f.instanceId
8865
- }), d.emitter.trigger("drop", Object.assign(Object.assign({}, Zs(b.dateSpan, d)), { draggedEl: a.subjectEl, jsEvent: a.origEvent, view: b.context.viewApi })), d.emitter.trigger("eventReceive", Object.assign(Object.assign({}, O), { draggedEl: a.subjectEl, view: b.context.viewApi }));
8877
+ }), d.emitter.trigger("drop", Object.assign(Object.assign({}, Zs(b.dateSpan, d)), { draggedEl: a.subjectEl, jsEvent: a.origEvent, view: b.context.viewApi })), d.emitter.trigger("eventReceive", Object.assign(Object.assign({}, I), { draggedEl: a.subjectEl, view: b.context.viewApi }));
8866
8878
  }
8867
8879
  } else
8868
8880
  l.emitter.trigger("_noEventDrop");
@@ -8871,7 +8883,7 @@ class Ye extends Oe {
8871
8883
  };
8872
8884
  let { component: n } = this, { options: i } = n.context, r = this.dragging = new Ge(e.el);
8873
8885
  r.pointer.selector = Ye.SELECTOR, r.touchScrollAllowed = !1, r.autoScroller.isEnabled = i.dragScroll;
8874
- let s = this.hitDragging = new It(this.dragging, fn);
8886
+ let s = this.hitDragging = new Ot(this.dragging, fn);
8875
8887
  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);
8876
8888
  }
8877
8889
  destroy() {
@@ -8915,16 +8927,16 @@ function kf(t) {
8915
8927
  let { options: e } = t.context, n = e.eventLongPressDelay;
8916
8928
  return n == null && (n = e.longPressDelay), n;
8917
8929
  }
8918
- class Mf extends Oe {
8930
+ class Mf extends Ie {
8919
8931
  constructor(e) {
8920
8932
  super(e), this.draggingSegEl = null, this.draggingSeg = null, this.eventRange = null, this.relevantEvents = null, this.validMutation = null, this.mutatedRelevantEvents = null, this.handlePointerDown = (s) => {
8921
- let { component: a } = this, l = this.querySegEl(s), o = Ie(l), d = this.eventRange = o.eventRange;
8933
+ let { component: a } = this, l = this.querySegEl(s), o = Oe(l), d = this.eventRange = o.eventRange;
8922
8934
  this.dragging.minDistance = a.context.options.eventDragMinDistance, this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target) || s.isTouch && this.component.props.eventSelection !== d.instance.instanceId);
8923
8935
  }, this.handleDragStart = (s) => {
8924
8936
  let { context: a } = this.component, l = this.eventRange;
8925
8937
  this.relevantEvents = Mn(a.getCurrentData().eventStore, this.eventRange.instance.instanceId);
8926
8938
  let o = this.querySegEl(s);
8927
- this.draggingSegEl = o, this.draggingSeg = Ie(o), a.calendarApi.unselect(), a.emitter.trigger("eventResizeStart", {
8939
+ this.draggingSegEl = o, this.draggingSeg = Oe(o), a.calendarApi.unselect(), a.emitter.trigger("eventResizeStart", {
8928
8940
  el: o,
8929
8941
  event: new L(a, l.def, l.instance),
8930
8942
  jsEvent: s.origEvent,
@@ -8936,10 +8948,10 @@ class Mf extends Oe {
8936
8948
  mutatedEvents: Y(),
8937
8949
  isEvent: !0
8938
8950
  };
8939
- s && (s.componentId === c.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(c, s) || (f = If(c, s, l.subjectEl.classList.contains("fc-event-resizer-start"), h.range))), f && (u = zn(d, o.getCurrentData().eventUiBases, f, o), y.mutatedEvents = u, ps(y, s.dateProfile, o) || (v = !0, f = null, u = null, y.mutatedEvents = null)), u ? o.dispatch({
8951
+ s && (s.componentId === c.componentId && this.isHitComboAllowed && !this.isHitComboAllowed(c, s) || (f = Of(c, s, l.subjectEl.classList.contains("fc-event-resizer-start"), h.range))), f && (u = zn(d, o.getCurrentData().eventUiBases, f, o), y.mutatedEvents = u, ps(y, s.dateProfile, o) || (v = !0, f = null, u = null, y.mutatedEvents = null)), u ? o.dispatch({
8940
8952
  type: "SET_EVENT_RESIZE",
8941
8953
  state: y
8942
- }) : o.dispatch({ type: "UNSET_EVENT_RESIZE" }), v ? wn() : Cn(), a || (f && Ot(c, s) && (f = null), this.validMutation = f, this.mutatedRelevantEvents = u);
8954
+ }) : o.dispatch({ type: "UNSET_EVENT_RESIZE" }), v ? wn() : Cn(), a || (f && It(c, s) && (f = null), this.validMutation = f, this.mutatedRelevantEvents = u);
8943
8955
  }, this.handleDragEnd = (s) => {
8944
8956
  let { context: a } = this.component, l = this.eventRange.def, o = this.eventRange.instance, d = new L(a, l, o), c = this.relevantEvents, h = this.mutatedRelevantEvents;
8945
8957
  if (a.emitter.trigger("eventResizeStop", {
@@ -8972,7 +8984,7 @@ class Mf extends Oe {
8972
8984
  };
8973
8985
  let { component: n } = e, i = this.dragging = new Ge(e.el);
8974
8986
  i.pointer.selector = ".fc-event-resizer", i.touchScrollAllowed = !1, i.autoScroller.isEnabled = n.context.options.dragScroll;
8975
- let r = this.hitDragging = new It(this.dragging, Fn(e));
8987
+ let r = this.hitDragging = new Ot(this.dragging, jn(e));
8976
8988
  r.emitter.on("pointerdown", this.handlePointerDown), r.emitter.on("dragstart", this.handleDragStart), r.emitter.on("hitupdate", this.handleHitUpdate), r.emitter.on("dragend", this.handleDragEnd);
8977
8989
  }
8978
8990
  destroy() {
@@ -8982,7 +8994,7 @@ class Mf extends Oe {
8982
8994
  return U(e.subjectEl, ".fc-event");
8983
8995
  }
8984
8996
  }
8985
- function If(t, e, n, i) {
8997
+ function Of(t, e, n, i) {
8986
8998
  let r = t.context.dateEnv, s = t.dateSpan.range.start, a = e.dateSpan.range.start, l = Ae(s, a, r, t.largeUnit);
8987
8999
  if (n) {
8988
9000
  if (r.add(i.start, l) < i.end)
@@ -8991,7 +9003,7 @@ function If(t, e, n, i) {
8991
9003
  return { endDelta: l };
8992
9004
  return null;
8993
9005
  }
8994
- class Of {
9006
+ class If {
8995
9007
  constructor(e) {
8996
9008
  this.context = e, this.isRecentPointerDateSelect = !1, this.matchesCancel = !1, this.matchesEvent = !1, this.onSelect = (i) => {
8997
9009
  i.jsEvent && (this.isRecentPointerDateSelect = !0);
@@ -9032,16 +9044,16 @@ const Nf = {
9032
9044
  eventReceive: m,
9033
9045
  eventLeave: m
9034
9046
  };
9035
- jn.dataAttrPrefix = "";
9047
+ Fn.dataAttrPrefix = "";
9036
9048
  var Hf = se({
9037
9049
  name: "@fullcalendar/interaction",
9038
9050
  componentInteractions: [Df, Af, Ye, Mf],
9039
- calendarInteractions: [Of],
9051
+ calendarInteractions: [If],
9040
9052
  elementDraggingImpl: Ge,
9041
9053
  optionRefiners: Nf,
9042
9054
  listenerRefiners: Pf
9043
9055
  });
9044
- const Lf = ':host{display:block;height:100%;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-event-calendar{height:inherit;padding:0 16px}.calendar-header{display:flex;flex-direction:column;position:sticky;top:0;z-index:3;background:var(--nylas-base-0)}.calendar-header .calendar-header__row_one{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200)}.calendar-header .calendar-header__row_two{display:flex;justify-content:space-between;margin:12px 0;justify-self:center}@media screen and (max-width: 768px){.calendar-header{flex-direction:column;align-items:flex-start;margin-bottom:16px}}.calendar-header .calendar-header__title{display:flex;align-items:center;gap:16px;font-family:var(--nylas-font-family);font-size:20px;font-weight:600;line-height:30px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.calendar-header .calendar-header__title .calendar-header-prev-next{display:flex;align-items:center}.calendar-header .calendar-header__title .calendar-header-prev-next .chevron-right{transform:rotate(180deg)}.calendar-header .calendar-header__title .calendar-header-prev-next .button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);background-color:transparent;color:var(--nylas-base-800);cursor:pointer;border:none}.calendar-header .calendar-header__title .calendar-header-prev-next .button:hover{background-color:var(--nylas-base-50)}.calendar-header .calendar-header__title .calendar-header-prev-next .button:active{background-color:var(--nylas-base-100)}.calendar-header .calendar-header__title .calendar-header-prev-next .button:disabled{background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.calendar-header .calendar-header__current-calendar{padding:6px 12px;border-radius:var(--nylas-border-radius);border:1px solid var(--nylas-base-200)}.calendar-header .calendar-header__hide-non-group-events{margin-right:20px;display:flex;align-items:center;gap:16px}.calendar-header .calendar-header__hide-non-group-events label{display:flex;align-items:center;gap:4px}.calendar-header .calendar-header__hide-non-group-events tooltip-component::part(tc__content){left:24px}@media screen and (max-width: 768px){.calendar-header .calendar-header__view-options{display:grid;grid-template-columns:1fr 1fr 1fr;width:-webkit-fill-available}}.calendar-header .calendar-header__view-options button{color:var(--nylas-base-800);background:var(--nylas-base-0)}.calendar-header .calendar-header__view-options button.selected{background-color:var(--nylas-color-blue-100);border-radius:4px}.calendar-header .calendar-header__view-options button:hover:not(.selected){background:var(--nylas-base-50)}.calendar-header h3{font-size:1.5rem;font-weight:600}button{padding:0.5rem 1rem;margin-right:0.5rem;border:none;background-color:#0073e6;color:white;border-radius:4px;cursor:pointer;font-size:1rem}button:hover{background-color:#005bb5}.calendar-container{border-radius:4px;flex:1;display:flex;flex-direction:column;height:calc(100% - 16px);min-height:0;position:relative;overflow-y:auto;z-index:0;--fc-today-bg-color:var(--nylas-base-0);--fc-now-indicator-color:var(--nylas-error)}@media screen and (max-width: 768px){.calendar-container{height:calc(100% - 116px)}}.calendar-container.show-event{height:calc(100% - 456px - 80px - 16px)}@media screen and (max-width: 768px){.calendar-container.show-event{height:calc(100% - 116px + 16px)}}.calendar-container.hide{display:none}.calendar-container .fc .fc-view-harness{}.calendar-container .fc .fc-view-harness .fc-scrollgrid{border-right-width:0px;position:relative;border-top:0}.calendar-container .fc .fc-view-harness .fc-scrollgrid thead{position:sticky !important;top:96px;z-index:2}.calendar-container .fc .fc-view-harness .fc-scrollgrid tbody .fc-timegrid-divider{display:none}.calendar-container .fc .fc-view-harness .fc-col-header{position:sticky;top:0;background:#fff;border-top:1px solid var(--nylas-base-200)}.calendar-container .fc .fc-view-harness .custom-day-header{display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:Arial, sans-serif;font-size:14px;color:#1e3a8a;font-weight:bold;text-transform:uppercase}.calendar-container .fc .fc-view-harness .custom-day-header .day-name{color:var(--nylas-base-400);margin-bottom:4px;font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.calendar-container .fc .fc-view-harness .custom-day-header .day-number{font-size:16px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);padding:6px;border-radius:50%;font-family:var(--nylas-font-family);font-size:22px;font-weight:500;line-height:32px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;width:44px;display:inline-flex;justify-content:center;align-items:center}.calendar-container .fc .fc-view-harness .custom-day-header .day-number.today{background-color:var(--nylas-primary);color:var(--nylas-base-0)}.calendar-container .fc .fc-timegrid-now-indicator-line{border-width:1.5px 0 0}.calendar-container .fc .fc-daygrid-day.fc-day-today{background-color:transparent}.calendar-container .fc .fc-day-today .fc-daygrid-day-top .fc-daygrid-day-number{background-color:var(--nylas-primary);color:var(--nylas-base-0);border-radius:50%;width:36px;height:36px;margin:8px 8px}.calendar-container .fc .fc-daygrid-day-top{flex-direction:row}.calendar-container .fc .fc-daygrid-day-top .fc-daygrid-day-number{display:inline-flex;justify-content:center;align-items:center;padding:16px;color:var(--nylas-base-400);font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.calendar-container .fc .fc-v-event{border:none}.calendar-container .fc .fc-v-event .fc-event-main{border-radius:2px}.calendar-container .fc .fc-v-event.group-event .fc-event-main{background:var(--nylas-color-green-50);color:var(--nylas-color-green-900)}.calendar-container .fc .fc-v-event.group-event:not(.read-only):not(.no-participants){cursor:pointer}.calendar-container .fc .fc-v-event.regular-event .fc-event-main{background:var(--nylas-color-blue-300);color:var(--nylas-base-800)}.calendar-container .fc .fc-v-event.regular-event:not(.read-only):not(.no-participants){cursor:pointer}.calendar-container .fc .fc-v-event.read-only,.calendar-container .fc .fc-v-event.no-participants{opacity:0.5;cursor:not-allowed}.action-options{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;background:rgba(0, 0, 0, 0.6);z-index:4}@media screen and (max-width: 768px){.action-options{height:calc(100% - 96px)}}.action-options.update-options,.action-options.delete-options,.action-options.discard-changes{height:calc(100% + 80px);border-bottom-left-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.action-options.update-options,.action-options.delete-options,.action-options.discard-changes{height:calc(100% + 176px)}}.action-options .action-options__card{display:flex;flex-direction:column;justify-content:center;background:var(--nylas-base-0);border-radius:var(--nylas-border-radius-2x);min-width:240px}.action-options .action-options__card.discard-changes__card{min-width:320px}.action-options .action-options__card button-component#close-edit-options,.action-options .action-options__card button-component#close-update-options,.action-options .action-options__card button-component#close-delete-options,.action-options .action-options__card button-component#close-discard-changes,.action-options .action-options__card button-component#close-choose-participants-modal{display:flex;justify-content:flex-end;padding-top:8px}.action-options .action-options__card button-component#close-edit-options button,.action-options .action-options__card button-component#close-update-options button,.action-options .action-options__card button-component#close-delete-options button,.action-options .action-options__card button-component#close-discard-changes button,.action-options .action-options__card button-component#close-choose-participants-modal button{padding:0;height:auto;width:auto}.action-options .action-options__card button-component#close-edit-options button:hover,.action-options .action-options__card button-component#close-update-options button:hover,.action-options .action-options__card button-component#close-delete-options button:hover,.action-options .action-options__card button-component#close-discard-changes button:hover,.action-options .action-options__card button-component#close-choose-participants-modal button:hover{background-color:transparent !important}.action-options .action-options__card .action-options__header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--nylas-base-200)}.action-options .action-options__card .action-options__header h3{font-family:var(--nylas-font-family);font-size:18px;font-weight:500;line-height:30px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:var(--nylas-base-900);margin:0;padding:8px 16px 0}.action-options .action-options__card .edit-options__content ul li#import{display:flex;align-items:center;justify-content:space-between}.action-options .action-options__card .action-options__content.choose-participants-modal__content{padding:24px;display:flex;flex-direction:column;gap:16px;width:400px;max-height:200px;overflow-y:auto}@media screen and (max-width: 768px){.action-options .action-options__card .action-options__content.choose-participants-modal__content{width:-webkit-fill-available;max-height:120px}}.action-options .action-options__card .action-options__content.discard-changes__content{padding:24px}.action-options .action-options__card .action-options__content.discard-changes__content h3{font-family:var(--nylas-font-family);font-size:20px;font-weight:500;line-height:30px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:var(--nylas-base-900);margin:0}.action-options .action-options__card .action-options__content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.action-options .action-options__card .action-options__content ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:var(--nylas-font-family);font-weight:400;font-size:14px;line-height:21px;letter-spacing:0px;text-align:left;cursor:pointer}.action-options .action-options__card .action-options__content ul li:hover,.action-options .action-options__card .action-options__content ul li:focus{background-color:var(--nylas-base-100)}.action-options .action-options__card .action-options__content ul li.disabled{cursor:not-allowed;opacity:0.5}.action-options .action-options__card .action-options__footer{display:flex;justify-content:flex-end;gap:16px;padding:16px;border-top:1px solid var(--nylas-base-200)}.event-details-container{position:absolute;bottom:-80px;left:0;width:100%;z-index:3;background:var(--nylas-base-0);box-shadow:4px -8px 12px -12px rgba(0, 0, 0, 0.5);border-bottom-left-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.event-details-container{bottom:-176px}}.event-details-container .event-details-header{margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid var(--nylas-base-200)}.event-details-container .event-details-header div.event-details-header__actions{display:flex;align-items:center;gap:16px}.event-details-container .event-details-header div.event-details-header__actions button-component#close button{padding:0;height:auto}.event-details-container .event-details-header div.event-details-header__actions button-component#close button:hover{background-color:transparent !important}.event-details-container .event-details{max-height:440px;overflow-y:scroll;padding:0 16px;display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.event-details-container .event-details.edit-event-details nylas-additional-participants{margin:16px 0}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nfc){border:none}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nadtnlpart__title){font-weight:400}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nadtnlpart__content){padding:16px 0}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nfc__header){padding:0;border-bottom:none}.event-details-container .event-details .event-details-form-inputs{display:flex;flex-direction:column;gap:16px}.event-details-container .event-details-footer{display:flex;justify-content:flex-end;gap:16px;padding:16px;border-top:1px solid var(--nylas-base-200)}.event-details-container .event-details-footer .event-details-footer__error{color:var(--nylas-error);font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font}.event-details-container .event-details-footer .event-details-footer__helper-text{color:var(--nylas-base-800);font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font}.event-details-container .event-details-footer .event-details-footer__actions{display:flex;gap:16px}', Bf = Lf;
9056
+ const Lf = ':host{display:block;height:100%;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-event-calendar{height:inherit;padding:0 16px}.calendar-header{display:flex;flex-direction:column;position:sticky;top:0;z-index:3;background:var(--nylas-base-0)}.calendar-header .calendar-header__row_one{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200)}.calendar-header .calendar-header__row_two{display:flex;justify-content:space-between;margin:12px 0;justify-self:center}@media screen and (max-width: 768px){.calendar-header{flex-direction:column;align-items:flex-start;margin-bottom:16px}}.calendar-header .calendar-header__title{display:flex;align-items:center;gap:16px;font-family:var(--nylas-font-family);font-size:20px;font-weight:600;line-height:30px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:var(--nylas-base-900)}.calendar-header .calendar-header__title .calendar-header-prev-next{display:flex;align-items:center}.calendar-header .calendar-header__title .calendar-header-prev-next .chevron-right{transform:rotate(180deg)}.calendar-header .calendar-header__title .calendar-header-prev-next .button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);background-color:transparent;color:var(--nylas-base-800);cursor:pointer;border:none}.calendar-header .calendar-header__title .calendar-header-prev-next .button:hover{background-color:var(--nylas-base-50)}.calendar-header .calendar-header__title .calendar-header-prev-next .button:active{background-color:var(--nylas-base-100)}.calendar-header .calendar-header__title .calendar-header-prev-next .button:disabled{background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.calendar-header .calendar-header__current-calendar{padding:6px 12px;border-radius:var(--nylas-border-radius);border:1px solid var(--nylas-base-200);color:var(--nylas-base-900)}.calendar-header .calendar-header__hide-non-group-events{margin-right:20px;display:flex;align-items:center;gap:16px;color:var(--nylas-base-900)}.calendar-header .calendar-header__hide-non-group-events label{display:flex;align-items:center;gap:4px}.calendar-header .calendar-header__hide-non-group-events tooltip-component::part(tc__content){left:24px}@media screen and (max-width: 768px){.calendar-header .calendar-header__view-options{display:grid;grid-template-columns:1fr 1fr 1fr;width:-webkit-fill-available}}.calendar-header .calendar-header__view-options button{color:var(--nylas-base-800);background:var(--nylas-base-0)}.calendar-header .calendar-header__view-options button.selected{background-color:var(--nylas-color-blue-100);border-radius:4px}.calendar-header .calendar-header__view-options button:hover:not(.selected){background:var(--nylas-base-50)}.calendar-header h3{font-size:1.5rem;font-weight:600}button{padding:0.5rem 1rem;margin-right:0.5rem;border:none;background-color:#0073e6;color:white;border-radius:4px;cursor:pointer;font-size:1rem}button:hover{background-color:#005bb5}.calendar-container{border-radius:4px;flex:1;display:flex;flex-direction:column;height:calc(100% - 16px);min-height:0;position:relative;overflow-y:auto;z-index:0;--fc-today-bg-color:var(--nylas-base-0);--fc-now-indicator-color:var(--nylas-error)}@media screen and (max-width: 768px){.calendar-container{height:calc(100% - 116px)}}.calendar-container.show-event{height:calc(100% - 456px - 80px - 16px)}@media screen and (max-width: 768px){.calendar-container.show-event{height:calc(100% - 116px + 16px)}}.calendar-container.hide{display:none}.calendar-container .fc .fc-view-harness{}.calendar-container .fc .fc-view-harness .fc-scrollgrid{border-right-width:0px;position:relative;border-top:0}.calendar-container .fc .fc-view-harness .fc-scrollgrid thead{position:sticky !important;top:96px;z-index:2}.calendar-container .fc .fc-view-harness .fc-scrollgrid tbody .fc-timegrid-divider{display:none}.calendar-container .fc .fc-view-harness .fc-col-header{position:sticky;top:0;background:var(--nylas-base-0);border-top:1px solid var(--nylas-base-200)}.calendar-container .fc .fc-view-harness .custom-day-header{display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:Arial, sans-serif;font-size:14px;color:#1e3a8a;font-weight:bold;text-transform:uppercase}.calendar-container .fc .fc-view-harness .custom-day-header .day-name{color:var(--nylas-base-400);margin-bottom:4px;font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.calendar-container .fc .fc-view-harness .custom-day-header .day-number{font-size:16px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);padding:6px;border-radius:50%;font-family:var(--nylas-font-family);font-size:22px;font-weight:500;line-height:32px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;width:44px;display:inline-flex;justify-content:center;align-items:center}.calendar-container .fc .fc-view-harness .custom-day-header .day-number.today{background-color:var(--nylas-primary);color:var(--nylas-base-0)}.calendar-container .fc .fc-timegrid-now-indicator-line{border-width:1.5px 0 0}.calendar-container .fc .fc-timegrid-slot-label{color:var(--nylas-base-900)}.calendar-container .fc .fc-daygrid-day.fc-day-today{background-color:transparent}.calendar-container .fc .fc-day-today .fc-daygrid-day-top .fc-daygrid-day-number{background-color:var(--nylas-primary);color:var(--nylas-base-0);border-radius:50%;width:36px;height:36px;margin:8px 8px}.calendar-container .fc .fc-daygrid-day-top{flex-direction:row}.calendar-container .fc .fc-daygrid-day-top .fc-daygrid-day-number{display:inline-flex;justify-content:center;align-items:center;padding:16px;color:var(--nylas-base-400);font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.calendar-container .fc .fc-v-event{border:none}.calendar-container .fc .fc-v-event .fc-event-main{border-radius:2px}.calendar-container .fc .fc-v-event.group-event .fc-event-main{background:var(--nylas-color-green-50);color:var(--nylas-color-green-900)}.calendar-container .fc .fc-v-event.group-event:not(.read-only):not(.no-participants){cursor:pointer}.calendar-container .fc .fc-v-event.regular-event .fc-event-main{background:var(--nylas-color-blue-300);color:var(--nylas-base-800)}.calendar-container .fc .fc-v-event.regular-event:not(.read-only):not(.no-participants){cursor:pointer}.calendar-container .fc .fc-v-event.read-only,.calendar-container .fc .fc-v-event.no-participants{opacity:0.5;cursor:not-allowed}.action-options{position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;background:rgba(0, 0, 0, 0.6);z-index:4}@media screen and (max-width: 768px){.action-options{height:calc(100% - 96px)}}.action-options.update-options,.action-options.delete-options,.action-options.discard-changes{height:calc(100% + 80px);border-bottom-left-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.action-options.update-options,.action-options.delete-options,.action-options.discard-changes{height:calc(100% + 176px)}}.action-options .action-options__card{display:flex;flex-direction:column;justify-content:center;background:var(--nylas-base-0);border-radius:var(--nylas-border-radius-2x);min-width:240px}.action-options .action-options__card.discard-changes__card{min-width:320px}.action-options .action-options__card button-component#close-edit-options,.action-options .action-options__card button-component#close-update-options,.action-options .action-options__card button-component#close-delete-options,.action-options .action-options__card button-component#close-discard-changes,.action-options .action-options__card button-component#close-choose-participants-modal{display:flex;justify-content:flex-end;padding-top:8px}.action-options .action-options__card button-component#close-edit-options button,.action-options .action-options__card button-component#close-update-options button,.action-options .action-options__card button-component#close-delete-options button,.action-options .action-options__card button-component#close-discard-changes button,.action-options .action-options__card button-component#close-choose-participants-modal button{padding:0;height:auto;width:auto}.action-options .action-options__card button-component#close-edit-options button:hover,.action-options .action-options__card button-component#close-update-options button:hover,.action-options .action-options__card button-component#close-delete-options button:hover,.action-options .action-options__card button-component#close-discard-changes button:hover,.action-options .action-options__card button-component#close-choose-participants-modal button:hover{background-color:transparent !important}.action-options .action-options__card .action-options__header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--nylas-base-200)}.action-options .action-options__card .action-options__header h3{font-family:var(--nylas-font-family);font-size:18px;font-weight:500;line-height:30px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:var(--nylas-base-900);margin:0;padding:8px 16px 0}.action-options .action-options__card .edit-options__content ul li#import{display:flex;align-items:center;justify-content:space-between}.action-options .action-options__card .action-options__content.choose-participants-modal__content{padding:24px;display:flex;flex-direction:column;gap:16px;width:400px;max-height:200px;overflow-y:auto}@media screen and (max-width: 768px){.action-options .action-options__card .action-options__content.choose-participants-modal__content{width:-webkit-fill-available;max-height:120px}}.action-options .action-options__card .action-options__content.discard-changes__content{padding:24px}.action-options .action-options__card .action-options__content.discard-changes__content h3{font-family:var(--nylas-font-family);font-size:20px;font-weight:500;line-height:30px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:var(--nylas-base-900);margin:0}.action-options .action-options__card .action-options__content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.action-options .action-options__card .action-options__content ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:var(--nylas-font-family);font-weight:400;font-size:14px;line-height:21px;letter-spacing:0px;text-align:left;cursor:pointer}.action-options .action-options__card .action-options__content ul li:hover,.action-options .action-options__card .action-options__content ul li:focus{background-color:var(--nylas-base-100)}.action-options .action-options__card .action-options__content ul li.disabled{cursor:not-allowed;opacity:0.5}.action-options .action-options__card .action-options__footer{display:flex;justify-content:flex-end;gap:16px;padding:16px;border-top:1px solid var(--nylas-base-200)}.event-details-container{position:absolute;bottom:-80px;left:0;width:100%;z-index:3;background:var(--nylas-base-0);box-shadow:4px -8px 12px -12px rgba(0, 0, 0, 0.5);border-bottom-left-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.event-details-container{bottom:-176px}}.event-details-container .event-details-header{margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid var(--nylas-base-200);color:var(--nylas-base-900)}.event-details-container .event-details-header div.event-details-header__actions{display:flex;align-items:center;gap:16px}.event-details-container .event-details-header div.event-details-header__actions button-component#close button{padding:0;height:auto}.event-details-container .event-details-header div.event-details-header__actions button-component#close button:hover{background-color:transparent !important}.event-details-container .event-details{max-height:440px;overflow-y:scroll;padding:0 16px;display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.event-details-container .event-details nylas-additional-participants::part(nadtnlpart__content){background-color:var(--nylas-base-0)}.event-details-container .event-details.edit-event-details nylas-additional-participants{margin:16px 0}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nfc){border:none}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nadtnlpart__title){font-weight:400}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nadtnlpart__content){padding:16px 0}.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nfc__header){padding:0;border-bottom:none}.event-details-container .event-details .event-details-form-inputs{display:flex;flex-direction:column;gap:16px}.event-details-container .event-details-footer{display:flex;justify-content:flex-end;gap:16px;padding:16px;border-top:1px solid var(--nylas-base-200)}.event-details-container .event-details-footer .event-details-footer__error{color:var(--nylas-error);font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font}.event-details-container .event-details-footer .event-details-footer__helper-text{color:var(--nylas-base-800);font-family:var(--nylas-font-family);font-size:14px;font-weight:400;line-height:20px;text-align:left;text-underline-position:from-font}.event-details-container .event-details-footer .event-details-footer__actions{display:flex;gap:16px}', Bf = Lf;
9045
9057
  var zf = function(t, e, n, i) {
9046
9058
  var r = arguments.length, s = r < 3 ? e : i === null ? i = Object.getOwnPropertyDescriptor(e, n) : i, a;
9047
9059
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -9064,12 +9076,12 @@ const it = {
9064
9076
  timeGridDay: "day",
9065
9077
  timeGridWeek: "week",
9066
9078
  dayGridMonth: "month"
9067
- }, Ff = [
9079
+ }, jf = [
9068
9080
  { label: _.t("nylasEventCalendar.editOptions.import") || "Import", value: "import", langKey: "nylasEventCalendar.editOptions.import" },
9069
9081
  { label: _.t("nylasEventCalendar.editOptions.edit") || "Edit", value: "edit", langKey: "nylasEventCalendar.editOptions.edit" },
9070
9082
  { label: _.t("nylasEventCalendar.editOptions.deleteThis") || "Delete this event only", value: "delete-this", langKey: "nylasEventCalendar.editOptions.deleteThis" },
9071
9083
  { label: _.t("nylasEventCalendar.editOptions.deleteAll") || "Delete all events", value: "delete-all", langKey: "nylasEventCalendar.editOptions.deleteAll" }
9072
- ], jf = [
9084
+ ], Ff = [
9073
9085
  { label: _.t("nylasEventCalendar.updateOptions.updateThis") || "Update this event", value: "this", langKey: "nylasEventCalendar.updateOptions.updateThis" },
9074
9086
  {
9075
9087
  label: _.t("nylasEventCalendar.updateOptions.updateFuture") || "Update all future occurrences",
@@ -9087,7 +9099,7 @@ const it = {
9087
9099
  { label: _.t("nylasEventCalendar.deleteOptions.deleteAll") || "Delete all events", value: "all", langKey: "nylasEventCalendar.deleteOptions.deleteAll" }
9088
9100
  ], Xs = class {
9089
9101
  constructor(t) {
9090
- St(this, t), this.fetchMasterGroupEvent = W(this, "fetchMasterGroupEvent", 7), this.saveGroupEventChanges = W(this, "saveGroupEventChanges", 7), this.deleteGroupEvent = W(this, "deleteGroupEvent", 7), this.groupEventSelected = W(this, "groupEventSelected", 7), this.createGroupEvent = W(this, "createGroupEvent", 7), this.calendarViewChanged = W(this, "calendarViewChanged", 7), this.previosNextClicked = W(this, "previosNextClicked", 7), this.setCalendarViewDateRange = W(this, "setCalendarViewDateRange", 7), this.importGroupEvent = W(this, "importGroupEvent", 7), t.$hostElement$["s-ei"] ? this.internals = t.$hostElement$["s-ei"] : (this.internals = t.$hostElement$.attachInternals(), t.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-name", this.selectedLanguage = void 0, this.groupEvents = void 0, this.currentUser = void 0, this.calendars = void 0, this.masterGroupEvents = void 0, this.isLoading = void 0, this.selectedView = "week", this.events = [], this.calendar = void 0, this.selectedEvent = null, this.selectedDateRangeString = "", this.showEditEventDetails = !1, this.showCreateEventDetails = !1, this.editOptionChoices = Ff, this.updateOptionChoices = jf, this.deleteOptionChoices = Wf, this.editOptions = this.editOptionChoices, this.showEditOptions = !1, this.updateOptions = this.updateOptionChoices, this.showUpdateOptions = !1, this.deleteOptions = this.deleteOptionChoices, this.showDeleteOptions = !1, this.unsavedChanges = !1, this.showConfirmDiscardUnsavedChangesModal = !1, this.createNewGroupEventTimeslot = null, this.formError = "", this.formErrors = {}, this.loadingOptions = {
9102
+ St(this, t), this.fetchMasterGroupEvent = W(this, "fetchMasterGroupEvent", 7), this.saveGroupEventChanges = W(this, "saveGroupEventChanges", 7), this.deleteGroupEvent = W(this, "deleteGroupEvent", 7), this.groupEventSelected = W(this, "groupEventSelected", 7), this.createGroupEvent = W(this, "createGroupEvent", 7), this.calendarViewChanged = W(this, "calendarViewChanged", 7), this.previosNextClicked = W(this, "previosNextClicked", 7), this.setCalendarViewDateRange = W(this, "setCalendarViewDateRange", 7), this.importGroupEvent = W(this, "importGroupEvent", 7), t.$hostElement$["s-ei"] ? this.internals = t.$hostElement$["s-ei"] : (this.internals = t.$hostElement$.attachInternals(), t.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-name", this.selectedLanguage = void 0, this.groupEvents = void 0, this.currentUser = void 0, this.calendars = void 0, this.masterGroupEvents = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.selectedView = "week", this.events = [], this.calendar = void 0, this.selectedEvent = null, this.selectedDateRangeString = "", this.showEditEventDetails = !1, this.showCreateEventDetails = !1, this.editOptionChoices = jf, this.updateOptionChoices = Ff, this.deleteOptionChoices = Wf, this.editOptions = this.editOptionChoices, this.showEditOptions = !1, this.updateOptions = this.updateOptionChoices, this.showUpdateOptions = !1, this.deleteOptions = this.deleteOptionChoices, this.showDeleteOptions = !1, this.unsavedChanges = !1, this.showConfirmDiscardUnsavedChangesModal = !1, this.createNewGroupEventTimeslot = null, this.formError = "", this.formErrors = {}, this.loadingOptions = {
9091
9103
  update: "",
9092
9104
  delete: "",
9093
9105
  create: ""
@@ -9170,6 +9182,14 @@ const it = {
9170
9182
  let n = JSON.parse(JSON.stringify(this.events));
9171
9183
  this.showAllEvents || (n = n.filter((r) => r == null ? void 0 : r.classNames.includes("group-event"))), (i = this.calendar) == null || i.setOption("events", n);
9172
9184
  }
9185
+ themeConfigChangedHandler(t, e) {
9186
+ t !== e && this.applyThemeConfig(t);
9187
+ }
9188
+ applyThemeConfig(t) {
9189
+ if (t)
9190
+ for (const [e, n] of Object.entries(t))
9191
+ this.host.style.setProperty(`${e}`, n);
9192
+ }
9173
9193
  connectedCallback() {
9174
9194
  z("nylas-connected-calendars", "connectedCallback");
9175
9195
  }
@@ -9439,12 +9459,12 @@ const it = {
9439
9459
  }
9440
9460
  }
9441
9461
  render() {
9442
- var d, c, h, f, u, v, y, b, E, C, T, A, O, M, N, R, Q, ae, qe, Qe, Jn;
9462
+ var d, c, h, f, u, v, y, b, E, C, T, A, I, M, N, R, Q, ae, qe, Qe, Jn;
9443
9463
  const t = (c = (d = this.selectedConfiguration) == null ? void 0 : d.group_booking) == null ? void 0 : c.calendar_id, e = t ? (h = this.calendars) == null ? void 0 : h.find((w) => w.id === t) : null, n = _.t("timePeriod_day") || "day", i = _.t("timePeriod_week") || "week", r = _.t("timePeriod_month") || "month", s = (v = (u = (f = this.selectedEvent) == null ? void 0 : f.event) == null ? void 0 : u.when) == null ? void 0 : v.start_time, a = (E = (b = (y = this.selectedEvent) == null ? void 0 : y.event) == null ? void 0 : b.when) == null ? void 0 : E.start_timezone, l = s ? x(s * 1e3).tz(a) : null, o = l && l.isBefore(x().tz(a));
9444
9464
  return g(vn, null, g("div", { class: "nylas-event-calendar" }, g("div", { class: {
9445
9465
  "calendar-container": !0,
9446
9466
  "show-event": this.showEditEventDetails || this.showCreateEventDetails
9447
- } }, g("div", { class: "calendar-header" }, g("div", { class: "calendar-header__row_one" }, g("div", { class: "calendar-header__title" }, g("div", { class: "calendar-header-prev-next" }, g("button", { onClick: () => this.handlePrevNextClick("prev"), class: { "chevron-left": !0, button: !0 } }, " ", g("chevron-icon", null)), g("span", null, this.selectedDateRangeString), g("button", { onClick: () => this.handlePrevNextClick("next"), class: { "chevron-right": !0, button: !0 } }, " ", g("chevron-icon", null)))), g("div", { class: "calendar-header__current-calendar" }, (e == null ? void 0 : e.name) || (e == null ? void 0 : e.id), "'s calendar"), g("div", { class: "calendar-header__view-options" }, g("button", { class: { selected: ((C = this.calendar) == null ? void 0 : C.view.type) === it.day }, onClick: () => this.setView("day") }, n.charAt(0).toUpperCase() + n.slice(1)), g("button", { class: { selected: ((T = this.calendar) == null ? void 0 : T.view.type) === it.week }, onClick: () => this.setView("week") }, i.charAt(0).toUpperCase() + i.slice(1)), g("button", { class: { selected: ((A = this.calendar) == null ? void 0 : A.view.type) === it.month }, onClick: () => this.setView("month") }, r.charAt(0).toUpperCase() + r.slice(1)))), g("div", { class: "calendar-header__row_two" }, g("div", { class: "calendar-header__hide-non-group-events" }, g("label", null, _.t("nylasEventCalendar.hideNonGroupEvents.showLabel"), g("span", { class: "label-icon" }, g("tooltip-component", null, g("info-icon", { slot: "tooltip-icon" }), g("span", { slot: "tooltip-content" }, _.t("nylasEventCalendar.hideNonGroupEvents.tooltip.desc"))))), g("checkbox-group", { direction: "horizontal", name: "hide-non-group-events", options: [{ label: _.t("nylasEventCalendar.hideNonGroupEvents.options.group"), value: "group-only", checked: !1 }] })))), g("div", { ref: (w) => this.calendarEl = w })), this.showEditEventDetails && ((O = this.selectedEvent) == null ? void 0 : O.group_event_info) && g("div", { class: "event-details-container" }, g("div", { class: "event-details-header" }, g("h3", null, _.t("nylasEventCalendar.editEventDetails.headerTitle")), g("div", { class: "event-details-header__actions" }, g("button-component", { tooltip: _.t("nylasEventCalendar.editEventDetails.closeButtonTooltip"), id: "close", disabled: this.isLoading, variant: "invisible", onClick: (w) => {
9467
+ } }, g("div", { class: "calendar-header" }, g("div", { class: "calendar-header__row_one" }, g("div", { class: "calendar-header__title" }, g("div", { class: "calendar-header-prev-next" }, g("button", { onClick: () => this.handlePrevNextClick("prev"), class: { "chevron-left": !0, button: !0 } }, " ", g("chevron-icon", null)), g("span", null, this.selectedDateRangeString), g("button", { onClick: () => this.handlePrevNextClick("next"), class: { "chevron-right": !0, button: !0 } }, " ", g("chevron-icon", null)))), g("div", { class: "calendar-header__current-calendar" }, (e == null ? void 0 : e.name) || (e == null ? void 0 : e.id), "'s calendar"), g("div", { class: "calendar-header__view-options" }, g("button", { class: { selected: ((C = this.calendar) == null ? void 0 : C.view.type) === it.day }, onClick: () => this.setView("day") }, n.charAt(0).toUpperCase() + n.slice(1)), g("button", { class: { selected: ((T = this.calendar) == null ? void 0 : T.view.type) === it.week }, onClick: () => this.setView("week") }, i.charAt(0).toUpperCase() + i.slice(1)), g("button", { class: { selected: ((A = this.calendar) == null ? void 0 : A.view.type) === it.month }, onClick: () => this.setView("month") }, r.charAt(0).toUpperCase() + r.slice(1)))), g("div", { class: "calendar-header__row_two" }, g("div", { class: "calendar-header__hide-non-group-events" }, g("label", null, _.t("nylasEventCalendar.hideNonGroupEvents.showLabel"), g("span", { class: "label-icon" }, g("tooltip-component", null, g("info-icon", { slot: "tooltip-icon" }), g("span", { slot: "tooltip-content" }, _.t("nylasEventCalendar.hideNonGroupEvents.tooltip.desc"))))), g("checkbox-group", { direction: "horizontal", name: "hide-non-group-events", themeConfig: this.themeConfig, options: [{ label: _.t("nylasEventCalendar.hideNonGroupEvents.options.group"), value: "group-only", checked: !1 }] })))), g("div", { ref: (w) => this.calendarEl = w })), this.showEditEventDetails && ((I = this.selectedEvent) == null ? void 0 : I.group_event_info) && g("div", { class: "event-details-container" }, g("div", { class: "event-details-header" }, g("h3", null, _.t("nylasEventCalendar.editEventDetails.headerTitle")), g("div", { class: "event-details-header__actions" }, g("button-component", { tooltip: _.t("nylasEventCalendar.editEventDetails.closeButtonTooltip"), id: "close", disabled: this.isLoading, variant: "invisible", onClick: (w) => {
9448
9468
  w.preventDefault(), w.stopImmediatePropagation(), this.unsavedChanges ? this.showConfirmDiscardUnsavedChangesModal = !0 : (this.showEditEventDetails = !1, this.unsavedChanges = !1, this.selectedEvent = null, this.formError = "");
9449
9469
  } }, g("close-icon", null)))), g("div", { class: {
9450
9470
  "event-details": !0,
@@ -9478,7 +9498,7 @@ const it = {
9478
9498
  w.preventDefault(), w.stopImmediatePropagation(), this.showDeleteOptions = !1;
9479
9499
  } }, g("close-icon", null)), g("div", { class: "delete-options__content action-options__content" }, g("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name }, this.deleteOptions.map((w) => w.value.toString() ? g("li", { class: { disabled: !!this.isLoading }, tabindex: "0", key: w.value, id: w.value, role: "option", onClick: ($) => this.handleDeleteGroupEvent($, w) }, this.isLoading && this.loadingOptions.delete === w.value ? _.t("nylasEventCalendar.deleteEvent.deleting") : w.label) : null))))), this.showChooseParticipantsModal && g("div", { class: "choose-participants-modal action-options" }, g("div", { class: "choose-participants-modal__card action-options__card" }, g("button-component", { tooltip: _.t("nylasEventCalendar.importEvent.closeButtonTooltip"), id: "close-choose-participants-modal", variant: "invisible", disabled: this.isLoading, onClick: (w) => {
9480
9500
  w.preventDefault(), w.stopImmediatePropagation(), this.showChooseParticipantsModal = !1;
9481
- } }, g("close-icon", null)), g("div", { class: "choose-participants-modal__content action-options__content" }, g("multi-select-dropdown", { name: "participants", multipleOptionsSelectedLabel: _.t("multipleOptionsSelected"), selectAtLeastOneOptionLabel: _.t("selectOneOrMoreOptions"), label: _.t("nylasEventCalendar.importEvent.participantsLabel"), options: this.importParticipants }), g("button-component", { variant: "basic", onClick: () => this.handleImportGroupEvent() }, _.t("nylasEventCalendar.importEvent.importButton")))))));
9501
+ } }, g("close-icon", null)), g("div", { class: "choose-participants-modal__content action-options__content" }, g("multi-select-dropdown", { name: "participants", multipleOptionsSelectedLabel: _.t("multipleOptionsSelected"), selectAtLeastOneOptionLabel: _.t("selectOneOrMoreOptions"), label: _.t("nylasEventCalendar.importEvent.participantsLabel"), options: this.importParticipants, themeConfig: this.themeConfig }), g("button-component", { variant: "basic", onClick: () => this.handleImportGroupEvent() }, _.t("nylasEventCalendar.importEvent.importButton")))))));
9482
9502
  }
9483
9503
  static get formAssociated() {
9484
9504
  return !0;
@@ -9491,6 +9511,7 @@ const it = {
9491
9511
  name: ["elementNameChangedHandler"],
9492
9512
  selectedLanguage: ["selectedLanguageChangedHandler"],
9493
9513
  groupEvents: ["groupEventsChangedHandler"],
9514
+ themeConfig: ["themeConfigChangedHandler"],
9494
9515
  isLoading: ["isLoadingChangedHandler"]
9495
9516
  };
9496
9517
  }
@@ -9505,7 +9526,8 @@ zf([
9505
9526
  ["schedulerConfig.currentUser", "currentUser"],
9506
9527
  ["schedulerConfig.calendars", "calendars"],
9507
9528
  ["schedulerConfig.isLoading", "isLoading"],
9508
- ["schedulerConfig.selectedConfiguration", "selectedConfiguration"]
9529
+ ["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
9530
+ ["schedulerConfig.themeConfig", "themeConfig"]
9509
9531
  ]),
9510
9532
  eventToProps: {
9511
9533
  groupEventSelected: async (t, e) => {
@@ -9577,7 +9599,7 @@ var Yf = function(t, e, n, i) {
9577
9599
  };
9578
9600
  const Js = class {
9579
9601
  constructor(t) {
9580
- St(this, t), this.valueChanged = W(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 = "";
9602
+ St(this, t), this.valueChanged = W(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.themeConfig = void 0, this.selectedEventCapacity = void 0, this.error = "";
9581
9603
  }
9582
9604
  connectedCallback() {
9583
9605
  z("nylas-event-capacity", "connectedCallback");
@@ -9609,6 +9631,14 @@ const Js = class {
9609
9631
  selectedLanguageChangedHandler(t, e) {
9610
9632
  t !== e && _.changeLanguage(t);
9611
9633
  }
9634
+ themeConfigChangedHandler(t, e) {
9635
+ t !== e && this.applyThemeConfig(t);
9636
+ }
9637
+ applyThemeConfig(t) {
9638
+ if (t)
9639
+ for (const [e, n] of Object.entries(t))
9640
+ this.host.style.setProperty(`${e}`, n);
9641
+ }
9612
9642
  async nylasFormInputChangeHandler(t) {
9613
9643
  const { name: e, value: n } = t.detail;
9614
9644
  if (e === "event-capacity") {
@@ -9622,7 +9652,7 @@ const Js = class {
9622
9652
  }
9623
9653
  render() {
9624
9654
  const t = typeof this.selectedEventCapacity < "u";
9625
- return g(vn, { key: "a5f7f13597235b6cafcb8201960bafe720c937bc" }, g("div", { key: "7565faeeb192bb44d1ccf2483c6b1e4590b48876", class: "nylas-event-capacity", part: "necapacity" }, g("label", { key: "d46746e76bdc2daef8302602efd123cf676e8c9e", htmlFor: "event-capacity" }, g("span", { key: "f6e17aac8d8f378a22de076378be2b7c3dbda4be" }, _.t("nylasEventCapacity.headerTitle"), g("span", { key: "382366c5d94050870b88316216c6c64077561ddd", class: "required" }, "*")), g("tooltip-component", { key: "f2122314aec576da8ca7723ddd7672311aed2d4e" }, g("info-icon", { key: "bbfd875ee167603721e872f15fb83d12c371fa1d", slot: "tooltip-icon" }), g("span", { key: "49cd6598f2835f251cc0d34aa83065a0fb773e6a", slot: "tooltip-content" }, _.t("nylasEventCapacity.tooltip.desc")))), t && g("div", { class: "nylas-event-capacity__wrapper" }, g("input-component", { name: "event-capacity", id: "event-capacity", type: "number", pattern: /^[0-9]*$/, patternError: _.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" }), g("span", { class: this.error ? "attendees error" : "attendees" }, _.t("nylasEventCapacity.attendees")))));
9655
+ return g(vn, { key: "93197cab0e3999f1dc9eaaed7672bb2dca4f5667" }, g("div", { key: "dd37d030dce6b3cb66e1c651645b56cf00fec8d9", class: "nylas-event-capacity", part: "necapacity" }, g("label", { key: "a818a00a215d298f6ed961eb59de4986e22b5868", htmlFor: "event-capacity" }, g("span", { key: "5da9529a65a9aaaf6ca8f04d425ac809217ee387" }, _.t("nylasEventCapacity.headerTitle"), g("span", { key: "dfb696a9e73b2eb506255da96fd947db4db7337b", class: "required" }, "*")), g("tooltip-component", { key: "cc226e5db749d363b619b76927a61fdd6f637256" }, g("info-icon", { key: "e9678e1881cabbe5a3f99b57ddcb67f742fdeda3", slot: "tooltip-icon" }), g("span", { key: "8edf5f53066cedb3dee7d11d36700e1240b0f726", slot: "tooltip-content" }, _.t("nylasEventCapacity.tooltip.desc")))), t && g("div", { class: "nylas-event-capacity__wrapper" }, g("input-component", { name: "event-capacity", id: "event-capacity", type: "number", pattern: /^[0-9]*$/, patternError: _.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", themeConfig: this.themeConfig }), g("span", { class: this.error ? "attendees error" : "attendees" }, _.t("nylasEventCapacity.attendees")))));
9626
9656
  }
9627
9657
  static get formAssociated() {
9628
9658
  return !0;
@@ -9633,14 +9663,18 @@ const Js = class {
9633
9663
  static get watchers() {
9634
9664
  return {
9635
9665
  name: ["elementNameChangedHandler"],
9636
- selectedLanguage: ["selectedLanguageChangedHandler"]
9666
+ selectedLanguage: ["selectedLanguageChangedHandler"],
9667
+ themeConfig: ["themeConfigChangedHandler"]
9637
9668
  };
9638
9669
  }
9639
9670
  };
9640
9671
  Yf([
9641
9672
  yn({
9642
9673
  name: "nylas-event-capacity",
9643
- stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
9674
+ stateToProps: /* @__PURE__ */ new Map([
9675
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"],
9676
+ ["schedulerConfig.themeConfig", "themeConfig"]
9677
+ ]),
9644
9678
  eventToProps: {
9645
9679
  valueChanged: async (t, e) => {
9646
9680
  const { valueChanged: n } = t.detail;
@@ -9654,7 +9688,7 @@ Yf([
9654
9688
  Kt("design:returntype", void 0)
9655
9689
  ], Js.prototype, "render", null);
9656
9690
  Js.style = Gf;
9657
- const qf = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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:not(.error)::part(ic__date){border-color:var(--nylas-base-200)}div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component::part(ic__date){height:50px}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-ends #custom-recurrence-end-type::part(sd_dropdown-button){padding:16px}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 div.custom-recurrence-end-after #recurrence-end-after::part(netimeslot__input-textfield),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence div.custom-recurrence-end-after #recurrence-end-after::part(ic__input){border-color:var(--nylas-base-200)}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)}', Qf = qf;
9691
+ const qf = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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:not(.error)::part(ic__date){border-color:var(--nylas-base-200)}div.nylas-event-timeslot div.date-time-input div.date-time-picker nylas-date-component::part(ic__date){height:50px}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;background:var(--nylas-base-100)}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.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: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-ends #custom-recurrence-end-type::part(sd_dropdown-button){padding:16px}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 div.custom-recurrence-end-after #recurrence-end-after::part(netimeslot__input-textfield),div.nylas-event-timeslot div.date-time-input div.recurrence-options div.repeat-on div.custom-recurrence div.custom-recurrence-end-after #recurrence-end-after::part(ic__input){border-color:var(--nylas-base-200)}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)}', Qf = qf;
9658
9692
  var $f = function(t, e, n, i) {
9659
9693
  var r = arguments.length, s = r < 3 ? e : i === null ? i = Object.getOwnPropertyDescriptor(e, n) : i, a;
9660
9694
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -9677,7 +9711,7 @@ const Zf = {
9677
9711
  year: "yearly"
9678
9712
  }, Ks = class {
9679
9713
  constructor(t) {
9680
- St(this, t), this.valueChanged = W(this, "valueChanged", 7), this.timeWindowFormError = W(this, "timeWindowFormError", 7), this.dateTimeInputError = W(this, "dateTimeInputError", 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-timeslot", this.initialValue = void 0, this.selectedLanguage = void 0, this.currentUser = void 0, this.selectedDate = void 0, this.selectedStartTime = void 0, this.selectedEndTime = void 0, this.selectedTimezone = void 0, this.selectedRecurrenceType = void 0, this.timeRangeError = !1, this.selectedRrule = void 0, this.recurrenceOptions = [], this.repeatEveryInterval = 1, this.repeatEveryFrequency = "week", this.repeatOnDays = [], this.repeatMonthlySameDate = !0, this.repeatEndType = "never", this.repeatEndAfter = 1, this.repeatEndOn = void 0, this.monthRecurrenceOptions = [], this.endDate = void 0, this.hasDateTimeInputError = !1;
9714
+ St(this, t), this.valueChanged = W(this, "valueChanged", 7), this.timeWindowFormError = W(this, "timeWindowFormError", 7), this.dateTimeInputError = W(this, "dateTimeInputError", 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-timeslot", this.initialValue = void 0, this.selectedLanguage = void 0, this.currentUser = void 0, this.themeConfig = void 0, this.selectedDate = void 0, this.selectedStartTime = void 0, this.selectedEndTime = void 0, this.selectedTimezone = void 0, this.selectedRecurrenceType = void 0, this.timeRangeError = !1, this.selectedRrule = void 0, this.recurrenceOptions = [], this.repeatEveryInterval = 1, this.repeatEveryFrequency = "week", this.repeatOnDays = [], this.repeatMonthlySameDate = !0, this.repeatEndType = "never", this.repeatEndAfter = 1, this.repeatEndOn = void 0, this.monthRecurrenceOptions = [], this.endDate = void 0, this.hasDateTimeInputError = !1;
9681
9715
  }
9682
9716
  connectedCallback() {
9683
9717
  z("nylas-event-timeslot", "connectedCallback");
@@ -9727,6 +9761,14 @@ const Zf = {
9727
9761
  selectedLanguageChangedHandler(t, e) {
9728
9762
  t !== e && _.changeLanguage(t);
9729
9763
  }
9764
+ themeConfigChangedHandler(t, e) {
9765
+ t !== e && this.applyThemeConfig(t);
9766
+ }
9767
+ applyThemeConfig(t) {
9768
+ if (t)
9769
+ for (const [e, n] of Object.entries(t))
9770
+ this.host.style.setProperty(`${e}`, n);
9771
+ }
9730
9772
  getOrdinalSuffix(t) {
9731
9773
  const e = ["th", "st", "nd", "rd"], n = t % 100;
9732
9774
  return t + (e[(n - 20) % 10] || e[n] || e[0]);
@@ -9913,12 +9955,12 @@ const Zf = {
9913
9955
  ], s = x(this.selectedDate).add(1, "year").toISOString().split("T")[0], a = this.repeatEveryFrequency === "week" ? 4 : this.repeatEveryFrequency === "month" ? 12 : 5;
9914
9956
  this.repeatEndOn = this.repeatEndOn || s, this.repeatEndAfter = this.repeatEndAfter || a;
9915
9957
  const l = x().tz(this.selectedTimezone);
9916
- return g(vn, { key: "92581d88eaad6ec232d41d494635ce1cf922e310" }, g("div", { key: "2031b25539623b44c19924972fd768409ee524c7", class: "nylas-event-timeslot", part: "netimeslot" }, g("label", { key: "aced1ba3abf182ee443917d347b8c7c6c4fc4478", htmlFor: "date-time-input" }, _.t("nylasEventTimeslot.dateTimeLabel")), g("div", { key: "25e8065e47d81b54f680edbdbd8aa7e2b744aa96", class: "date-time-input", part: "netimeslot__date-time-input" }, g("div", { key: "bef56e130618fb6142e0aa604310ee083e3661bc", class: "date-time-picker", part: "netimeslot__date-time-picker" }, g("nylas-date-component", { key: "5f603058e7e5a67970f74108d93340cc6ed150e6", minDate: x().tz(this.selectedTimezone).toISOString().split("T")[0], name: "date-time-input", defaultValue: this.selectedDate, id: "date-time-input", class: { error: this.hasDateTimeInputError }, required: !0, hasError: this.hasDateTimeInputError }), g("div", { key: "26ab20902a5d50be85b27c7634525f8e155bf4cc", class: "time-range", part: "netimeslot__time-range" }, g("nylas-time-window-picker", { id: "event-timeslot-start-time", hasError: this.timeRangeError, time: this.selectedStartTime, language: this.selectedLanguage, name: "event-timeslot-start-time", key: "event-timeslot-start-time", exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), g("span", { key: "97433b9bef4f2d4f670f36fdb844518fcccd7dee" }, "–"), g("nylas-time-window-picker", { id: "event-timeslot-end-time", hasError: this.timeRangeError, time: this.selectedEndTime, language: this.selectedLanguage, name: "event-timeslot-end-time", key: "event-timeslot-end-time", minimumStartTime: this.selectedStartTime, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), (i == null ? void 0 : i.label) && g("select-dropdown", { searchPlaceholder: _.t("search"), name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: n, withChevron: !1, defaultSelectedOption: i }, g("span", { slot: "select-icon" }, g("globe-icon", { width: "20", height: "20" })))), !t && g("div", { class: "recurrence-options", part: "netimeslot__recurrence-options" }, e && (e == null ? void 0 : e.label) && g("div", { class: "recurrence-type", part: "netimeslot__recurrence-type" }, g("label", { htmlFor: "recurrence-type" }, _.t("nylasEventTimeslot.recurrenceLabel")), g("select-dropdown", { withSearch: !1, id: "recurrence-type", name: "recurrence-type", options: this.recurrenceOptions, defaultSelectedOption: e, exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), this.selectedRecurrenceType !== "custom" && this.selectedRecurrenceType !== "none" && g("div", { class: "recurrence-end", part: "netimeslot__recurrence-end" }, g("label", null, _.t("nylasEventTimeslot.endDate")), g("nylas-date-component", { name: "recurrence-end-date", minDate: l.toISOString().split("T")[0], defaultValue: this.repeatEndOn || s, id: "recurrence-end-date", required: !0 })), this.selectedRecurrenceType === "custom" && g("div", { class: "custom-recurrence-time-period", part: "netimeslot__custom-recurrence" }, g("label", { htmlFor: "" }, _.t("nylasEventTimeslot.customRecurrence.repeatEvery")), g("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: [
9958
+ return g(vn, { key: "7f35ee4ea0533482d29132037a1b818e616966fa" }, g("div", { key: "7daa5bffa3cabde6ec1bbf60b706eca5346e13f1", class: "nylas-event-timeslot", part: "netimeslot" }, g("label", { key: "e9e43e718822ece476a9e16c8cede01ed7a2645b", htmlFor: "date-time-input" }, _.t("nylasEventTimeslot.dateTimeLabel")), g("div", { key: "27bf91d3f9d8d1bcad941aa7a38567b2763b4466", class: "date-time-input", part: "netimeslot__date-time-input" }, g("div", { key: "fe0781051d55ba93638d06f15457c0eeb850aad8", class: "date-time-picker", part: "netimeslot__date-time-picker" }, g("nylas-date-component", { key: "6cce6d526d7d8b2a0ab9161ee3d19f091878cefd", minDate: x().tz(this.selectedTimezone).toISOString().split("T")[0], name: "date-time-input", defaultValue: this.selectedDate, id: "date-time-input", class: { error: this.hasDateTimeInputError }, required: !0, hasError: this.hasDateTimeInputError, themeConfig: this.themeConfig }), g("div", { key: "636a7492ebf1fea422c27c2b7ba558afbb8e391b", class: "time-range", part: "netimeslot__time-range" }, g("nylas-time-window-picker", { id: "event-timeslot-start-time", hasError: this.timeRangeError, time: this.selectedStartTime, language: this.selectedLanguage, name: "event-timeslot-start-time", key: "event-timeslot-start-time", themeConfig: this.themeConfig, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), g("span", { key: "9322f419a06b69f8c0b3bed29ea2ba31595639a1" }, "–"), g("nylas-time-window-picker", { id: "event-timeslot-end-time", hasError: this.timeRangeError, time: this.selectedEndTime, language: this.selectedLanguage, name: "event-timeslot-end-time", key: "event-timeslot-end-time", minimumStartTime: this.selectedStartTime, themeConfig: this.themeConfig, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), (i == null ? void 0 : i.label) && g("select-dropdown", { searchPlaceholder: _.t("search"), name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: n, withChevron: !1, defaultSelectedOption: i, themeConfig: this.themeConfig }, g("span", { slot: "select-icon" }, g("globe-icon", { width: "20", height: "20" })))), !t && g("div", { class: "recurrence-options", part: "netimeslot__recurrence-options" }, e && (e == null ? void 0 : e.label) && g("div", { class: "recurrence-type", part: "netimeslot__recurrence-type" }, g("label", { htmlFor: "recurrence-type" }, _.t("nylasEventTimeslot.recurrenceLabel")), g("select-dropdown", { withSearch: !1, id: "recurrence-type", name: "recurrence-type", options: this.recurrenceOptions, themeConfig: this.themeConfig, defaultSelectedOption: e, exportparts: "sd_dropdown: netimeslot__dropdown, sd_dropdown-button: netimeslot__dropdown-button, sd_dropdown-content: netimeslot__dropdown-content" })), this.selectedRecurrenceType !== "custom" && this.selectedRecurrenceType !== "none" && g("div", { class: "recurrence-end", part: "netimeslot__recurrence-end" }, g("label", null, _.t("nylasEventTimeslot.endDate")), g("nylas-date-component", { name: "recurrence-end-date", minDate: l.toISOString().split("T")[0], defaultValue: this.repeatEndOn || s, id: "recurrence-end-date", required: !0, themeConfig: this.themeConfig })), this.selectedRecurrenceType === "custom" && g("div", { class: "custom-recurrence-time-period", part: "netimeslot__custom-recurrence" }, g("label", { htmlFor: "" }, _.t("nylasEventTimeslot.customRecurrence.repeatEvery")), g("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: [
9917
9959
  { value: "day", label: _.t("timePeriod", { context: "day" }) },
9918
9960
  { value: "week", label: _.t("timePeriod", { context: "week" }) },
9919
9961
  { value: "month", label: _.t("timePeriod", { context: "month" }) },
9920
9962
  { value: "year", label: _.t("timePeriod", { context: "year" }) }
9921
- ], defaultSelectedNumber: this.repeatEveryInterval, defaultSelectedPeriod: this.repeatEveryFrequency })), g("div", { class: "repeat-on" }, this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "week" && g("div", { class: "days" }, g("label", null, _.t("nylasEventTimeslot.customRecurrence.repeatOn")), g("div", { class: "buttons" }, [
9963
+ ], themeConfig: this.themeConfig, defaultSelectedNumber: this.repeatEveryInterval, defaultSelectedPeriod: this.repeatEveryFrequency })), g("div", { class: "repeat-on" }, this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "week" && g("div", { class: "days" }, g("label", null, _.t("nylasEventTimeslot.customRecurrence.repeatOn")), g("div", { class: "buttons" }, [
9922
9964
  { label: "S", value: "SU", title: "Sunday" },
9923
9965
  { label: "M", value: "MO", title: "Monday" },
9924
9966
  { label: "T", value: "TU", title: "Tuesday" },
@@ -9928,7 +9970,7 @@ const Zf = {
9928
9970
  { label: "S", value: "SA", title: "Saturday" }
9929
9971
  ].map((d) => g("button", { class: { selected: this.repeatOnDays.includes(d.value) }, title: d.title, onClick: () => {
9930
9972
  this.repeatOnDays = this.repeatOnDays.includes(d.value) ? this.repeatOnDays.filter((c) => c !== d.value) : [...this.repeatOnDays, d.value], this.handleValueChanged();
9931
- } }, d.label)))), this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "month" && g("div", { class: "month-recurrence" }, g("span", null), g("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" })), g("div", { class: "custom-recurrence" }, this.selectedRecurrenceType === "custom" && g("div", { class: "custom-recurrence-ends" }, g("label", { htmlFor: "recurrence-type" }, _.t("nylasEventTimeslot.customRecurrence.ends")), g("select-dropdown", { withSearch: !1, id: "custom-recurrence-end-type", name: "custom-recurrence-end-type", options: r, defaultSelectedOption: r.find((d) => d.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" && g("div", null, g("nylas-date-component", { name: "custom-recurrence-end-date", minDate: l.toISOString().split("T")[0], defaultValue: this.repeatEndOn || s, id: "custom-recurrence-end-date", required: !0 })), this.selectedRecurrenceType === "custom" && this.repeatEndType === "after" && g("div", { class: "custom-recurrence-end-after" }, g("input-component", { name: "recurrence-end-after", id: "recurrence-end-after", type: "number", minValue: 1, defaultValue: a.toString(), exportparts: "ic_input: netimeslot__input-textfield" }), g("span", null, _.t("nylasEventTimeslot.customRecurrence.occurrences")))))))));
9973
+ } }, d.label)))), this.selectedRecurrenceType === "custom" && this.repeatEveryFrequency === "month" && g("div", { class: "month-recurrence" }, g("span", null), g("select-dropdown", { withSearch: !1, id: "month-recurrence-type", name: "month-recurrence-type", options: this.monthRecurrenceOptions, themeConfig: this.themeConfig, 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" })), g("div", { class: "custom-recurrence" }, this.selectedRecurrenceType === "custom" && g("div", { class: "custom-recurrence-ends" }, g("label", { htmlFor: "recurrence-type" }, _.t("nylasEventTimeslot.customRecurrence.ends")), g("select-dropdown", { withSearch: !1, id: "custom-recurrence-end-type", name: "custom-recurrence-end-type", options: r, themeConfig: this.themeConfig, defaultSelectedOption: r.find((d) => d.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" && g("div", null, g("nylas-date-component", { name: "custom-recurrence-end-date", minDate: l.toISOString().split("T")[0], defaultValue: this.repeatEndOn || s, id: "custom-recurrence-end-date", required: !0, themeConfig: this.themeConfig })), this.selectedRecurrenceType === "custom" && this.repeatEndType === "after" && g("div", { class: "custom-recurrence-end-after" }, g("input-component", { name: "recurrence-end-after", id: "recurrence-end-after", type: "number", minValue: 1, themeConfig: this.themeConfig, defaultValue: a.toString(), exportparts: "ic_input: netimeslot__input-textfield" }), g("span", null, _.t("nylasEventTimeslot.customRecurrence.occurrences")))))))));
9932
9974
  }
9933
9975
  static get formAssociated() {
9934
9976
  return !0;
@@ -9939,7 +9981,8 @@ const Zf = {
9939
9981
  static get watchers() {
9940
9982
  return {
9941
9983
  name: ["elementNameChangedHandler"],
9942
- selectedLanguage: ["selectedLanguageChangedHandler"]
9984
+ selectedLanguage: ["selectedLanguageChangedHandler"],
9985
+ themeConfig: ["themeConfigChangedHandler"]
9943
9986
  };
9944
9987
  }
9945
9988
  };
@@ -9948,7 +9991,8 @@ $f([
9948
9991
  name: "nylas-event-timeslot",
9949
9992
  stateToProps: /* @__PURE__ */ new Map([
9950
9993
  ["schedulerConfig.selectedLanguage", "selectedLanguage"],
9951
- ["schedulerConfig.currentUser", "currentUser"]
9994
+ ["schedulerConfig.currentUser", "currentUser"],
9995
+ ["schedulerConfig.themeConfig", "themeConfig"]
9952
9996
  ]),
9953
9997
  eventToProps: {
9954
9998
  valueChanged: async (t, e) => {