@nylas/react 1.4.0 → 1.4.2

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 (141) hide show
  1. package/dist/{add-circle-icon_2.entry-dbad9a3b.js → add-circle-icon_2.entry-6b57fd96.js} +1 -1
  2. package/dist/{add-circle-icon_2.entry-6e8e4e1e.cjs → add-circle-icon_2.entry-db0c5d68.cjs} +1 -1
  3. package/dist/{archive-icon.entry-21f532af.cjs → archive-icon.entry-bf00cb75.cjs} +1 -1
  4. package/dist/{archive-icon.entry-802f7877.js → archive-icon.entry-cf731ded.js} +1 -1
  5. package/dist/{arrow-icon.entry-e3dec626.js → arrow-icon.entry-2471d146.js} +1 -1
  6. package/dist/{arrow-icon.entry-e9af732a.cjs → arrow-icon.entry-5031b5ac.cjs} +1 -1
  7. package/dist/{bold-icon.entry-1a2be28a.cjs → bold-icon.entry-9cec8c45.cjs} +1 -1
  8. package/dist/{bold-icon.entry-0492ff02.js → bold-icon.entry-da045de2.js} +1 -1
  9. package/dist/{button-component_2.entry-fea9bd3d.js → button-component_2.entry-ad0e9642.js} +8 -8
  10. package/dist/{button-component_2.entry-f0c7f894.cjs → button-component_2.entry-adbcccdf.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_36.entry-c85d6a79.js → calendar-agenda-fill-icon_36.entry-05898830.js} +509 -462
  12. package/dist/calendar-agenda-fill-icon_36.entry-aeb96033.cjs +6 -0
  13. package/dist/{calendar-cancel-icon.entry-237b8c9e.cjs → calendar-cancel-icon.entry-7b62f915.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-e7dd5b8f.js → calendar-cancel-icon.entry-85ebd74c.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-a868e0bc.cjs → calendar-check-icon_2.entry-2e1586eb.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-c7f47fc8.js → calendar-check-icon_2.entry-72ab0311.js} +1 -1
  17. package/dist/{calendar-icon.entry-324de624.js → calendar-icon.entry-230a1263.js} +1 -1
  18. package/dist/{calendar-icon.entry-071eb30d.cjs → calendar-icon.entry-b8c87d5f.cjs} +1 -1
  19. package/dist/{checkbox-component.entry-0f9970cc.js → checkbox-component.entry-51287f4f.js} +1 -1
  20. package/dist/{checkbox-component.entry-5bcf4b08.cjs → checkbox-component.entry-b6f0741a.cjs} +1 -1
  21. package/dist/{checkmark-icon_15.entry-98377585.js → checkmark-icon_15.entry-554964a3.js} +7 -7
  22. package/dist/{checkmark-icon_15.entry-7776e533.cjs → checkmark-icon_15.entry-a61f7d0b.cjs} +2 -2
  23. package/dist/{chevron-icon_3.entry-526b4b85.cjs → chevron-icon_3.entry-3913b854.cjs} +1 -1
  24. package/dist/{chevron-icon_3.entry-ec66260c.js → chevron-icon_3.entry-4595b992.js} +5 -5
  25. package/dist/{clock-icon_4.entry-66d15f7c.cjs → clock-icon_4.entry-282b96df.cjs} +1 -1
  26. package/dist/{clock-icon_4.entry-4fa47996.js → clock-icon_4.entry-e081381a.js} +1 -1
  27. package/dist/{constants-f5ba52b9-40ab2ded.js → constants-3d8016e3-3c080f00.js} +17 -28
  28. package/dist/constants-3d8016e3-fd6c3848.cjs +1 -0
  29. package/dist/{customParseFormat-39eacb44-45ade322.cjs → customParseFormat-a4d9ea69-573fe3af.cjs} +1 -1
  30. package/dist/{customParseFormat-39eacb44-eeffe2bb.js → customParseFormat-a4d9ea69-aeaa945c.js} +1 -1
  31. package/dist/{delete-icon.entry-540aa2bb.cjs → delete-icon.entry-6c9be3e2.cjs} +1 -1
  32. package/dist/{delete-icon.entry-95d01eb8.js → delete-icon.entry-e5182b5a.js} +1 -1
  33. package/dist/{document-refresh-icon.entry-c467f082.cjs → document-refresh-icon.entry-018ce16d.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-b82d5da8.js → document-refresh-icon.entry-0b2c1eb1.js} +1 -1
  35. package/dist/{feedbackSync-47d13bb0-9f249f33.cjs → feedbackSync-aa8d23d1-2c779b00.cjs} +1 -1
  36. package/dist/{feedbackSync-47d13bb0-5608d680.js → feedbackSync-aa8d23d1-785b41fd.js} +1 -1
  37. package/dist/{folder-icon.entry-cb0dc63d.js → folder-icon.entry-eb9c7f65.js} +1 -1
  38. package/dist/{folder-icon.entry-4d48c2ee.cjs → folder-icon.entry-fdce88ea.cjs} +1 -1
  39. package/dist/{forward-icon.entry-5aa01f53.js → forward-icon.entry-0b9c7166.js} +1 -1
  40. package/dist/{forward-icon.entry-d04aaf6d.cjs → forward-icon.entry-1ea23df4.cjs} +1 -1
  41. package/dist/{globe-icon_2.entry-87e29cdf.cjs → globe-icon_2.entry-385877d0.cjs} +1 -1
  42. package/dist/{globe-icon_2.entry-c7ae78cc.js → globe-icon_2.entry-3cf1b102.js} +3 -3
  43. package/dist/google-logo-icon_6.entry-9d97b8db.cjs +2 -0
  44. package/dist/{google-logo-icon_6.entry-80a6bfa3.js → google-logo-icon_6.entry-f5adddf0.js} +314 -287
  45. package/dist/{google-meet-icon_5.entry-4e71c83b.js → google-meet-icon_5.entry-20574ba9.js} +1 -1
  46. package/dist/{google-meet-icon_5.entry-26d667b6.cjs → google-meet-icon_5.entry-e5c673bf.cjs} +1 -1
  47. package/dist/{inbox-icon.entry-60a82bfc.cjs → inbox-icon.entry-29169ba7.cjs} +1 -1
  48. package/dist/{inbox-icon.entry-77e4e17b.js → inbox-icon.entry-3ed18276.js} +1 -1
  49. package/dist/index-58c1674c.cjs +57 -0
  50. package/dist/{index-04630615.js → index-b04bb93f.js} +114 -87
  51. package/dist/{index.es-1fdb1e36-fbdb04fa.js → index.es-6d4b50d5-724fa642.js} +1 -1
  52. package/dist/{index.es-1fdb1e36-830a422f.cjs → index.es-6d4b50d5-7383c4f8.cjs} +1 -1
  53. package/dist/{info-icon_2.entry-34800b66.cjs → info-icon_2.entry-4fa9aa36.cjs} +1 -1
  54. package/dist/{info-icon_2.entry-3c483f61.js → info-icon_2.entry-f709a5bf.js} +1 -1
  55. package/dist/{input-component.entry-ea4016fe.js → input-component.entry-1b91f7cf.js} +1 -1
  56. package/dist/{input-component.entry-f7ccf3d6.cjs → input-component.entry-82dc06b1.cjs} +1 -1
  57. package/dist/{input-dropdown_2.entry-d4024d2f.cjs → input-dropdown_2.entry-0601fe2f.cjs} +1 -1
  58. package/dist/{input-dropdown_2.entry-c7730cf8.js → input-dropdown_2.entry-600dfd62.js} +4 -4
  59. package/dist/{italic-icon.entry-6e0805ab.js → italic-icon.entry-7bb5d844.js} +1 -1
  60. package/dist/{italic-icon.entry-8127c2ee.cjs → italic-icon.entry-cfeb3329.cjs} +1 -1
  61. package/dist/{multi-select-dropdown_2.entry-d749999d.js → multi-select-dropdown_2.entry-2e2caeeb.js} +2 -2
  62. package/dist/{multi-select-dropdown_2.entry-49d6f0e7.cjs → multi-select-dropdown_2.entry-ded44143.cjs} +1 -1
  63. package/dist/{notebook-store-b61693cd-7a5576e7.js → notebook-store-b61693cd-a6630a19.js} +1 -1
  64. package/dist/{notebook-store-b61693cd-84de36d2.cjs → notebook-store-b61693cd-fe56f6e3.cjs} +1 -1
  65. package/dist/{nylas-booked-event-card_12.entry-3fcfd6f9.js → nylas-booked-event-card_12.entry-46bf945a.js} +347 -343
  66. package/dist/nylas-booked-event-card_12.entry-c0d66ddf.cjs +1 -0
  67. package/dist/{nylas-call-summary.entry-38aed89a.js → nylas-call-summary.entry-02a9b542.js} +1 -1
  68. package/dist/{nylas-call-summary.entry-e9adcb93.cjs → nylas-call-summary.entry-92089a11.cjs} +1 -1
  69. package/dist/{nylas-event-calendar_3.entry-48f656e5.cjs → nylas-event-calendar_3.entry-c7421045.cjs} +2 -2
  70. package/dist/{nylas-event-calendar_3.entry-62d1f1f5.js → nylas-event-calendar_3.entry-c77a26ca.js} +35 -23
  71. package/dist/{nylas-form-card.entry-b900b46e.cjs → nylas-form-card.entry-48b2d9d4.cjs} +1 -1
  72. package/dist/{nylas-form-card.entry-3828ccb1.js → nylas-form-card.entry-ddaea368.js} +2 -2
  73. package/dist/{nylas-if-state.entry-92af0a51.cjs → nylas-if-state.entry-b7c26f4c.cjs} +1 -1
  74. package/dist/{nylas-if-state.entry-2810dcf5.js → nylas-if-state.entry-bd3cba4e.js} +2 -2
  75. package/dist/{nylas-key-points.entry-977a6fae.js → nylas-key-points.entry-d9a22328.js} +3 -3
  76. package/dist/{nylas-key-points.entry-de658637.cjs → nylas-key-points.entry-da89162b.cjs} +1 -1
  77. package/dist/{nylas-login.entry-4a6c11e6.cjs → nylas-login.entry-a4ee2c70.cjs} +1 -1
  78. package/dist/{nylas-login.entry-8101d3d0.js → nylas-login.entry-cb830f5d.js} +2 -2
  79. package/dist/{nylas-provider.entry-c054d68a.js → nylas-provider.entry-7b416341.js} +5 -5
  80. package/dist/{nylas-provider.entry-b7ac25f5.cjs → nylas-provider.entry-8f71dc58.cjs} +1 -1
  81. package/dist/{nylas-scheduler-editor.entry-e35fad5c.js → nylas-scheduler-editor.entry-04e8f10b.js} +20 -20
  82. package/dist/nylas-scheduler-editor.entry-77f49e22.cjs +2 -0
  83. package/dist/nylas-scheduling.entry-df177e08.cjs +1 -0
  84. package/dist/{nylas-scheduling.entry-360b978c.js → nylas-scheduling.entry-f187da9e.js} +33 -33
  85. package/dist/{nylas-transcript.entry-81e2c821.js → nylas-transcript.entry-130d62d2.js} +24 -24
  86. package/dist/{nylas-transcript.entry-4d973027.cjs → nylas-transcript.entry-f35ee1ec.cjs} +3 -3
  87. package/dist/nylas-video-player.entry-3e1d8faa.js +39 -0
  88. package/dist/nylas-video-player.entry-7ba2cd73.cjs +1 -0
  89. package/dist/{nylas-video-preview.entry-12e05e4d.cjs → nylas-video-preview.entry-84b7d31d.cjs} +1 -1
  90. package/dist/{nylas-video-preview.entry-320421b6.js → nylas-video-preview.entry-85751140.js} +1 -1
  91. package/dist/{person-icon.entry-967ad730.cjs → person-icon.entry-28c58d83.cjs} +1 -1
  92. package/dist/{person-icon.entry-8533209c.js → person-icon.entry-29a5030a.js} +1 -1
  93. package/dist/{play-icon.entry-7b1fd79d.cjs → play-icon.entry-4f53806b.cjs} +1 -1
  94. package/dist/{play-icon.entry-15ee8568.js → play-icon.entry-78eb1cc5.js} +1 -1
  95. package/dist/{radio-button-group.entry-53dcf16c.js → radio-button-group.entry-1739abfc.js} +1 -1
  96. package/dist/{radio-button-group.entry-24cb342f.cjs → radio-button-group.entry-1d2a0c94.cjs} +1 -1
  97. package/dist/react.cjs +1 -1
  98. package/dist/react.js +1 -1
  99. package/dist/{refresh-icon.entry-f3320971.js → refresh-icon.entry-8703a22f.js} +1 -1
  100. package/dist/{refresh-icon.entry-0486ae54.cjs → refresh-icon.entry-e5f2b07f.cjs} +1 -1
  101. package/dist/{register-component-504a1cbb-89124fd8.cjs → register-component-238f28de-4166d4fd.cjs} +1 -1
  102. package/dist/{register-component-504a1cbb-5f986d7f.js → register-component-238f28de-daee0751.js} +1 -1
  103. package/dist/{reply-all-icon.entry-2cea1a40.cjs → reply-all-icon.entry-77711564.cjs} +1 -1
  104. package/dist/{reply-all-icon.entry-006fd1fb.js → reply-all-icon.entry-c1da34a1.js} +1 -1
  105. package/dist/{reply-icon.entry-d27166a1.js → reply-icon.entry-1fe825af.js} +1 -1
  106. package/dist/{reply-icon.entry-bd252aed.cjs → reply-icon.entry-267c524a.cjs} +1 -1
  107. package/dist/{scheduler-config-store-d6729d8d-4a2defea.cjs → scheduler-config-store-d6729d8d-39f2a8c8.cjs} +1 -1
  108. package/dist/{scheduler-config-store-d6729d8d-63e34849.js → scheduler-config-store-d6729d8d-634e14c6.js} +1 -1
  109. package/dist/{scheduler-store-baf100ed-81b183dc.js → scheduler-store-82bb212a-64d99231.js} +60 -60
  110. package/dist/scheduler-store-82bb212a-dd809b50.cjs +1 -0
  111. package/dist/{sent-icon.entry-ee434395.cjs → sent-icon.entry-82b5056c.cjs} +1 -1
  112. package/dist/{sent-icon.entry-bf101068.js → sent-icon.entry-86f841dd.js} +1 -1
  113. package/dist/{spam-icon.entry-11016b63.cjs → spam-icon.entry-ce6d3260.cjs} +1 -1
  114. package/dist/{spam-icon.entry-5193f9c6.js → spam-icon.entry-d8a9b8c3.js} +1 -1
  115. package/dist/{star-icon.entry-0e269252.cjs → star-icon.entry-13fec0d7.cjs} +1 -1
  116. package/dist/{star-icon.entry-9c7449f3.js → star-icon.entry-c9272ed6.js} +1 -1
  117. package/dist/{stop-icon.entry-86412c9f.cjs → stop-icon.entry-95c34b68.cjs} +1 -1
  118. package/dist/{stop-icon.entry-2ac11166.js → stop-icon.entry-ae569b6b.js} +1 -1
  119. package/dist/{textarea-component.entry-27717409.cjs → textarea-component.entry-75f2e50a.cjs} +1 -1
  120. package/dist/{textarea-component.entry-9df3fa96.js → textarea-component.entry-9d484b96.js} +1 -1
  121. package/dist/{toggle-switch.entry-a5ddfad9.js → toggle-switch.entry-3a2069a0.js} +1 -1
  122. package/dist/{toggle-switch.entry-9623e2b2.cjs → toggle-switch.entry-b832b7bf.cjs} +1 -1
  123. package/dist/{translate-icon.entry-e0617680.cjs → translate-icon.entry-a2f84ac4.cjs} +1 -1
  124. package/dist/{translate-icon.entry-f22293e6.js → translate-icon.entry-b9347ebf.js} +1 -1
  125. package/dist/{trash-fill-icon.entry-2616c5df.js → trash-fill-icon.entry-25a48052.js} +1 -1
  126. package/dist/{trash-fill-icon.entry-0275f657.cjs → trash-fill-icon.entry-ae7a4d13.cjs} +1 -1
  127. package/dist/{underline-icon.entry-d54b06ab.cjs → underline-icon.entry-2e75ba4c.cjs} +1 -1
  128. package/dist/{underline-icon.entry-1110dcb1.js → underline-icon.entry-53025db9.js} +1 -1
  129. package/dist/{warning-icon.entry-9a6e7913.js → warning-icon.entry-5c49aabe.js} +1 -1
  130. package/dist/{warning-icon.entry-6d390ab7.cjs → warning-icon.entry-a87938c6.cjs} +1 -1
  131. package/package.json +4 -4
  132. package/dist/calendar-agenda-fill-icon_36.entry-70681da2.cjs +0 -6
  133. package/dist/constants-f5ba52b9-a0866d2f.cjs +0 -1
  134. package/dist/google-logo-icon_6.entry-a8b6efc0.cjs +0 -2
  135. package/dist/index-3d1f13d6.cjs +0 -57
  136. package/dist/nylas-booked-event-card_12.entry-29337b10.cjs +0 -1
  137. package/dist/nylas-scheduler-editor.entry-1538950d.cjs +0 -2
  138. package/dist/nylas-scheduling.entry-92351cd2.cjs +0 -1
  139. package/dist/nylas-video-player.entry-60268c07.js +0 -39
  140. package/dist/nylas-video-player.entry-f3c2b073.cjs +0 -1
  141. package/dist/scheduler-store-baf100ed-5c5d3aa5.cjs +0 -1
package/dist/react.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FeedbackIcon=o.FeedbackIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCallSummary=o.NylasCallSummary;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDateComponent=o.NylasDateComponent;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasDisableEmails=o.NylasDisableEmails;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEditorTabsGroup=o.NylasEditorTabsGroup;exports.NylasEventCalendar=o.NylasEventCalendar;exports.NylasEventCapacity=o.NylasEventCapacity;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTimeslot=o.NylasEventTimeslot;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFeedbackForm=o.NylasFeedbackForm;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasKeyPoints=o.NylasKeyPoints;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasProvider=o.NylasProvider;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectEventType=o.NylasSelectEventType;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasTranscript=o.NylasTranscript;exports.NylasVideoPlayer=o.NylasVideoPlayer;exports.NylasVideoPreview=o.NylasVideoPreview;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FeedbackIcon=o.FeedbackIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCallSummary=o.NylasCallSummary;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDateComponent=o.NylasDateComponent;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasDisableEmails=o.NylasDisableEmails;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEditorTabsGroup=o.NylasEditorTabsGroup;exports.NylasEventCalendar=o.NylasEventCalendar;exports.NylasEventCapacity=o.NylasEventCapacity;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTimeslot=o.NylasEventTimeslot;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFeedbackForm=o.NylasFeedbackForm;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasKeyPoints=o.NylasKeyPoints;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasProvider=o.NylasProvider;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectEventType=o.NylasSelectEventType;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasTranscript=o.NylasTranscript;exports.NylasVideoPlayer=o.NylasVideoPlayer;exports.NylasVideoPreview=o.NylasVideoPreview;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a0 as l, a1 as i, a2 as c, a3 as t, a4 as r, a5 as y, a6 as b, a7 as I, a8 as N, a9 as d, aa as C, ab as m, ac as p, ad as g, ae as u, af as k, ag as E, ah as P, ai as v, aj as f, ak as S, al as T, am as h, an as B, ao as F, ap as L, aq as w, ar as D, as as A, at as R, au as M, av as G, aw as x, ax as W, ay as z, az as O, aA as U, aB as V, aC as q, aD as K, aE as Z, aF as _, aG as $, aH as j, aI as H, aJ as J, aK as Q, aL as X, aM as Y, aN as aa, aO as sa, aP as oa, aQ as na, aR as ea, aS as la, aT as ia, aU as ca, aV as ta, aW as ra, aX as ya, aY as ba, aZ as Ia, a_ as Na, a$ as da, b0 as Ca, b1 as ma, b2 as pa, b3 as ga, b4 as ua, b5 as ka, b6 as Ea, b7 as Pa, b8 as va, b9 as fa, ba as Sa, bb as Ta, bc as ha, bd as Ba, be as Fa, bf as La, bg as wa, bh as Da, N as Aa, bi as Ra, bj as Ma, bk as Ga, bl as xa, bm as Wa, bn as za, bo as Oa, bp as Ua, bq as Va, br as qa, bs as Ka, bt as Za, bu as _a, bv as $a, bw as ja, bx as Ha, by as Ja, bz as Qa, bA as Xa, bB as Ya, bC as as, bD as ss, bE as os, bF as ns, bG as es, bH as ls, bI as is, bJ as cs, bK as ts, bL as rs, bM as ys, bN as bs, bO as Is, bP as Ns, bQ as ds, bR as Cs, bS as ms, bT as ps, bU as gs, bV as us, bW as ks, bX as Es, bY as Ps, bZ as vs, b_ as fs, b$ as Ss, c0 as Ts, c1 as hs, c2 as Bs, c3 as Fs, c4 as Ls, c5 as ws, c6 as Ds, c7 as As, c8 as Rs, c9 as Ms, _ as Gs, $ as xs } from "./index-04630615.js";
1
+ import { a0 as l, a1 as i, a2 as c, a3 as t, a4 as r, a5 as y, a6 as b, a7 as I, a8 as N, a9 as d, aa as C, ab as m, ac as p, ad as g, ae as u, af as k, ag as E, ah as P, ai as v, aj as f, ak as S, al as T, am as h, an as B, ao as F, ap as L, aq as w, ar as D, as as A, at as R, au as M, av as G, aw as x, ax as W, ay as z, az as O, aA as U, aB as V, aC as q, aD as K, aE as Z, aF as _, aG as $, aH as j, aI as H, aJ as J, aK as Q, aL as X, aM as Y, aN as aa, aO as sa, aP as oa, aQ as na, aR as ea, aS as la, aT as ia, aU as ca, aV as ta, aW as ra, aX as ya, aY as ba, aZ as Ia, a_ as Na, a$ as da, b0 as Ca, b1 as ma, b2 as pa, b3 as ga, b4 as ua, b5 as ka, b6 as Ea, b7 as Pa, b8 as va, b9 as fa, ba as Sa, bb as Ta, bc as ha, bd as Ba, be as Fa, bf as La, bg as wa, bh as Da, N as Aa, bi as Ra, bj as Ma, bk as Ga, bl as xa, bm as Wa, bn as za, bo as Oa, bp as Ua, bq as Va, br as qa, bs as Ka, bt as Za, bu as _a, bv as $a, bw as ja, bx as Ha, by as Ja, bz as Qa, bA as Xa, bB as Ya, bC as as, bD as ss, bE as os, bF as ns, bG as es, bH as ls, bI as is, bJ as cs, bK as ts, bL as rs, bM as ys, bN as bs, bO as Is, bP as Ns, bQ as ds, bR as Cs, bS as ms, bT as ps, bU as gs, bV as us, bW as ks, bX as Es, bY as Ps, bZ as vs, b_ as fs, b$ as Ss, c0 as Ts, c1 as hs, c2 as Bs, c3 as Fs, c4 as Ls, c5 as ws, c6 as Ds, c7 as As, c8 as Rs, c9 as Ms, _ as Gs, $ as xs } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { r as t, h as c } from "./index-04630615.js";
1
+ import { r as t, h as c } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",r=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"2289577084610eff3296acf680de688f00dd71d4",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"40d0221f5c1072988cac3fdba2f740b0b9e5cf45",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=r;exports.refresh_icon=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",r=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"2289577084610eff3296acf680de688f00dd71d4",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"40d0221f5c1072988cac3fdba2f740b0b9e5cf45",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=r;exports.refresh_icon=c;
@@ -1 +1 @@
1
- "use strict";const s=require("./index-3d1f13d6.cjs");function m(e,o,i="registerComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function P(e,o,i="unregisterComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,i)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${i}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),u=n.filter(c=>t.includes(c));if(u.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${u.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=s.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0}),Object.defineProperty(t,"localPropsToProp",{get(){return e.localPropsToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=m(o,u,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=P(o,u,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
1
+ "use strict";const s=require("./index-58c1674c.cjs");function m(e,o,i="registerComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function P(e,o,i="unregisterComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,i)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${i}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),u=n.filter(c=>t.includes(c));if(u.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${u.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=s.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0}),Object.defineProperty(t,"localPropsToProp",{get(){return e.localPropsToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=m(o,u,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=P(o,u,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
@@ -1,4 +1,4 @@
1
- import { d, R as m, g as P } from "./index-04630615.js";
1
+ import { d, R as m, g as P } from "./index-b04bb93f.js";
2
2
  function b(e, o, c = "registerComponent") {
3
3
  return new CustomEvent(c, {
4
4
  bubbles: !0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const l=".sc-reply-all-icon-h{display:flex}",r=l,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"40a78afb16849a17598619b19a8455101bb2fc8b",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"0e6dd58c4014df3e8612417973b5180faf485486",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};t.style=r;exports.reply_all_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const l=".sc-reply-all-icon-h{display:flex}",r=l,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"40a78afb16849a17598619b19a8455101bb2fc8b",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"0e6dd58c4014df3e8612417973b5180faf485486",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};t.style=r;exports.reply_all_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as l, h as t } from "./index-04630615.js";
1
+ import { r as l, h as t } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { r as i, h as t } from "./index-04630615.js";
1
+ import { r as i, h as t } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=".sc-reply-icon-h{display:flex}",s=r,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"35e972347dc8f3b120808762889d2b3903f4d09e",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6b739327fc2730ea4f2ac32cba81467f26d5cd0f",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};t.style=s;exports.reply_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=".sc-reply-icon-h{display:flex}",s=r,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"35e972347dc8f3b120808762889d2b3903f4d09e",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6b739327fc2730ea4f2ac32cba81467f26d5cd0f",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};t.style=s;exports.reply_icon=t;
@@ -1 +1 @@
1
- "use strict";const i=require("./index-3d1f13d6.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],groupEvents:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],requiresSlug:!1,masterGroupEvents:{},isLoading:!1,...n},e=i.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async o=>{o||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
1
+ "use strict";const i=require("./index-58c1674c.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],groupEvents:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],requiresSlug:!1,masterGroupEvents:{},isLoading:!1,...n},e=i.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async o=>{o||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
@@ -1,4 +1,4 @@
1
- import { a as i } from "./index-04630615.js";
1
+ import { a as i } from "./index-b04bb93f.js";
2
2
  function s(n = {}) {
3
3
  const o = {
4
4
  selectedConfiguration: {},
@@ -1,20 +1,20 @@
1
- import { d as A, a as z, i as c, l as F } from "./index-04630615.js";
2
- var D;
3
- (function(a) {
4
- a.Component = "component", a.Api = "api", a.Auth = "auth";
5
- })(D || (D = {}));
1
+ import { d as A, a as z, i as c, l as F } from "./index-b04bb93f.js";
6
2
  var M;
7
- (function(a) {
8
- a.endtime_not_in_future = "endtime_not_in_future", a.no_booking_info = "no_booking_info", a.no_timeslot_selected = "no_timeslot_selected", a.no_timezone_selected = "no_timezone_selected", a.no_booking_id = "no_booking_id", a.no_salt = "no_salt", a.invalid_start_time = "invalid_start_time", a.invalid_end_time = "invalid_end_time", a.invalid_timezone = "invalid_timezone", a.no_config_id = "no_config_id";
3
+ (function(l) {
4
+ l.Error = "error", l.Warning = "warning", l.Info = "info", l.Success = "success";
9
5
  })(M || (M = {}));
6
+ var P;
7
+ (function(l) {
8
+ l.Component = "component", l.Api = "api", l.Auth = "auth";
9
+ })(P || (P = {}));
10
10
  var $;
11
- (function(a) {
12
- a.invalid_session = "invalid_session", a.general_error = "general_error", a.internal_error = "internal_error", a.invalid_request_error = "invalid_request_error", a.timeslot_not_available = "timeslot_not_available", a.provider_error = "provider_error", a.not_found_error = "not_found_error";
11
+ (function(l) {
12
+ l.endtime_not_in_future = "endtime_not_in_future", l.no_booking_info = "no_booking_info", l.no_timeslot_selected = "no_timeslot_selected", l.no_timezone_selected = "no_timezone_selected", l.no_booking_id = "no_booking_id", l.no_salt = "no_salt", l.invalid_start_time = "invalid_start_time", l.invalid_end_time = "invalid_end_time", l.invalid_timezone = "invalid_timezone", l.no_config_id = "no_config_id";
13
13
  })($ || ($ = {}));
14
14
  class C {
15
15
  constructor() {
16
16
  this.component = (e) => {
17
- const t = D.Component, s = `${e} Error`;
17
+ const t = P.Component, s = `${e} Error`;
18
18
  return {
19
19
  endtime_not_in_future: (i = '"endtime" can not be in the future') => ({
20
20
  title: s,
@@ -68,7 +68,7 @@ class C {
68
68
  })
69
69
  };
70
70
  }, this.api = (e) => {
71
- const t = D.Api, s = `${e} Error`;
71
+ const t = P.Api, s = `${e} Error`;
72
72
  return {
73
73
  invalid_session: (i) => ({
74
74
  title: s,
@@ -120,7 +120,7 @@ class O {
120
120
  }
121
121
  async makeAPIRequest(e, t, s, i = {}) {
122
122
  try {
123
- const n = new URL(this.schedulerAPIURL), r = "1.4.0";
123
+ const n = new URL(this.schedulerAPIURL), r = "1.4.2";
124
124
  return n.pathname = e, await (await fetch(decodeURIComponent(n.toString()), {
125
125
  method: t,
126
126
  headers: {
@@ -219,7 +219,7 @@ class O {
219
219
  return this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("confirmedEventInfo", void 0), e;
220
220
  }
221
221
  async bookTimeslot(e) {
222
- var L, p, E;
222
+ var E, p, L;
223
223
  this.schedulerStore.set("isLoading", !0);
224
224
  const { selectedTimeslot: t, selectedTimezone: s, bookingInfo: i, selectedLanguage: n } = this.schedulerStore.state;
225
225
  if (!e && !i)
@@ -227,8 +227,8 @@ class O {
227
227
  const r = (e == null ? void 0 : e.timeslot) || t;
228
228
  if (!r)
229
229
  return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timeslot_selected() };
230
- const l = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : s, o = n || "en-US";
231
- if (!l)
230
+ const a = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : s, o = n || "en-US";
231
+ if (!a)
232
232
  return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timezone_selected() };
233
233
  const h = [...this.schedulerStore.get("availabilityOrderEmails")];
234
234
  let d = "";
@@ -244,7 +244,7 @@ class O {
244
244
  guest: { ..._ },
245
245
  start_time: r.start_time.getTime() / 1e3,
246
246
  end_time: r.end_time.getTime() / 1e3,
247
- timezone: l,
247
+ timezone: a,
248
248
  event_id: (r == null ? void 0 : r.event_id) || void 0,
249
249
  master_id: (r == null ? void 0 : r.master_id) || void 0,
250
250
  calendar_id: (r == null ? void 0 : r.calendar_id) || void 0,
@@ -262,22 +262,22 @@ class O {
262
262
  guest: { ..._ },
263
263
  start_time: r.start_time.getTime() / 1e3,
264
264
  end_time: r.end_time.getTime() / 1e3,
265
- timezone: l,
265
+ timezone: a,
266
266
  email_language: this.getTwoLetterLanguageCode(o)
267
267
  }), g);
268
268
  if ("data" in u)
269
269
  return this.schedulerStore.set("isLoading", !1), this.schedulerStore.set("eventInfo", u == null ? void 0 : u.data), u;
270
- if ((p = (L = u.error) == null ? void 0 : L.message) != null && p.startsWith("The selected timeslot is unavailable"))
270
+ if ((p = (E = u.error) == null ? void 0 : E.message) != null && p.startsWith("The selected timeslot is unavailable"))
271
271
  continue;
272
272
  {
273
273
  this.schedulerStore.set("isLoading", !1);
274
- const w = (E = u.error) == null ? void 0 : E.type;
275
- let v = u.error;
274
+ const w = (L = u.error) == null ? void 0 : L.type;
275
+ let I = u.error;
276
276
  if (w && w in this.errors.api(c.t("createBookingErrorTitle"))) {
277
- const B = this.getErrorMessage(v);
278
- v = this.errors.api(c.t("createBookingErrorTitle"))[w](B);
277
+ const B = this.getErrorMessage(I);
278
+ I = this.errors.api(c.t("createBookingErrorTitle"))[w](B);
279
279
  }
280
- return { error: v };
280
+ return { error: I };
281
281
  }
282
282
  }
283
283
  return this.schedulerStore.set("isLoading", !1), {
@@ -293,9 +293,9 @@ class O {
293
293
  const i = `/v3/scheduling/ui-settings${s}`, n = await this.makeAPIRequest(i, "GET", void 0, t);
294
294
  if ("error" in n) {
295
295
  this.schedulerStore.set("isLoading", !1);
296
- const l = (r = n.error) == null ? void 0 : r.type;
296
+ const a = (r = n.error) == null ? void 0 : r.type;
297
297
  let o = n.error;
298
- return l && l in this.errors.api(c.t("getUISettingErrorTitle")) && (o = this.errors.api(c.t("getUISettingErrorTitle"))[l]((o == null ? void 0 : o.message) || (o == null ? void 0 : o.title) || "Something went wrong")), { error: o };
298
+ return a && a in this.errors.api(c.t("getUISettingErrorTitle")) && (o = this.errors.api(c.t("getUISettingErrorTitle"))[a]((o == null ? void 0 : o.message) || (o == null ? void 0 : o.title) || "Something went wrong")), { error: o };
299
299
  }
300
300
  return "data" in n && this.schedulerStore.set("configSettings", n.data), this.schedulerStore.set("isLoading", !1), n;
301
301
  }
@@ -311,8 +311,8 @@ class O {
311
311
  return e < (i + s * 60 * 1e3) / 1e3 ? Math.floor((i + s * 60 * 1e3) / 1e3) : e;
312
312
  }
313
313
  getEndTimeForAvailableDaysInFuture(e) {
314
- var r, l;
315
- const t = /* @__PURE__ */ new Date(), s = (l = (r = this.schedulerStore.get("configSettings")) == null ? void 0 : r.scheduler) == null ? void 0 : l.available_days_in_future, i = Math.floor(F(t, s).getTime() / 1e3);
314
+ var r, a;
315
+ const t = /* @__PURE__ */ new Date(), s = (a = (r = this.schedulerStore.get("configSettings")) == null ? void 0 : r.scheduler) == null ? void 0 : a.available_days_in_future, i = Math.floor(F(t, s).getTime() / 1e3);
316
316
  return Math.min(i, e);
317
317
  }
318
318
  async getAvailability(e = 0, t = 0) {
@@ -332,8 +332,8 @@ class O {
332
332
  t = this.getEndTimeForAvailableDaysInFuture(t);
333
333
  const r = this.getStartTimeWithMinBookingNotice(e);
334
334
  e = r, t = r > t ? r + 1 : t, s.append("start_time", encodeURIComponent(e.toString())), s.append("end_time", encodeURIComponent(t.toString())), this.configId && !this.sessionId ? s.append("configuration_id", encodeURIComponent(this.configId)) : this.slug && this.clientId && !this.sessionId && (s.append("slug", encodeURIComponent(this.slug)), s.append("client_id", encodeURIComponent(this.clientId)));
335
- const l = this.schedulerStore.get("rescheduleBookingId");
336
- l && s.append("booking_id", encodeURIComponent(l));
335
+ const a = this.schedulerStore.get("rescheduleBookingId");
336
+ a && s.append("booking_id", encodeURIComponent(a));
337
337
  const o = s.toString(), h = `/v3/scheduling/availability${o ? `?${o}` : ""}`, d = this.getHeaders(), m = await this.makeAPIRequest(decodeURIComponent(h), "GET", void 0, d);
338
338
  if ("error" in m) {
339
339
  this.schedulerStore.set("availability", []), this.schedulerStore.set("isLoading", !1);
@@ -350,15 +350,15 @@ class O {
350
350
  ...p,
351
351
  start_time: new Date(p.start_time * 1e3),
352
352
  end_time: new Date(p.end_time * 1e3)
353
- }))) || []).filter((p) => p.start_time.getTime() > n).sort((p, E) => p.start_time.getTime() - E.start_time.getTime());
353
+ }))) || []).filter((p) => p.start_time.getTime() > n).sort((p, L) => p.start_time.getTime() - L.start_time.getTime());
354
354
  this.schedulerStore.set("availability", b);
355
- const L = ((y = m.data) == null ? void 0 : y.order) || [];
356
- this.schedulerStore.set("availabilityOrderEmails", L);
355
+ const E = ((y = m.data) == null ? void 0 : y.order) || [];
356
+ this.schedulerStore.set("availabilityOrderEmails", E);
357
357
  }
358
358
  return this.schedulerStore.set("isLoading", !1), m;
359
359
  }
360
360
  async cancelBooking(e, t) {
361
- var l;
361
+ var a;
362
362
  if (this.schedulerStore.set("isLoading", !0), !e)
363
363
  return { error: this.errors.component(c.t("cancelBookingErrorTitle")).no_booking_id() };
364
364
  const s = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", i = `/v3/scheduling/bookings/${e}${s}`, n = this.getHeaders(), r = await this.makeAPIRequest(decodeURIComponent(i), "DELETE", JSON.stringify({
@@ -367,7 +367,7 @@ class O {
367
367
  }), n);
368
368
  if ("error" in r) {
369
369
  this.schedulerStore.set("isLoading", !1);
370
- const o = (l = r.error) == null ? void 0 : l.type;
370
+ const o = (a = r.error) == null ? void 0 : a.type;
371
371
  let h = r.error;
372
372
  if (o && o in this.errors.api(c.t("cancelBookingErrorTitle"))) {
373
373
  const d = this.getErrorMessage(h);
@@ -380,10 +380,10 @@ class O {
380
380
  }), this.schedulerStore.set("rescheduleBookingId", ""), this.schedulerStore.set("isLoading", !1), r;
381
381
  }
382
382
  async rescheduleBooking(e, t) {
383
- var P;
383
+ var D;
384
384
  if (this.schedulerStore.set("isLoading", !0), !e)
385
385
  return { error: this.errors.component(c.t("rescheduleBookingErrorTitle")).no_booking_id() };
386
- const s = this.errors.api(c.t("rescheduleBookingErrorTitle")), i = this.errors.component(c.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: l, selectedLanguage: o } = this.schedulerStore.state, { startTime: h, endTime: d, timezone: m } = t, f = h || (r == null ? void 0 : r.start_time);
386
+ const s = this.errors.api(c.t("rescheduleBookingErrorTitle")), i = this.errors.component(c.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: a, selectedLanguage: o } = this.schedulerStore.state, { startTime: h, endTime: d, timezone: m } = t, f = h || (r == null ? void 0 : r.start_time);
387
387
  if (!f)
388
388
  return { error: i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
389
389
  const _ = d || (r == null ? void 0 : r.end_time);
@@ -393,42 +393,42 @@ class O {
393
393
  let y = "";
394
394
  if (S.length > 0) {
395
395
  const T = (r == null ? void 0 : r.emails) || [];
396
- for (let I = 0; I < S.length; I++)
397
- if (T.includes(S[I])) {
398
- y = S[I];
396
+ for (let v = 0; v < S.length; v++)
397
+ if (T.includes(S[v])) {
398
+ y = S[v];
399
399
  break;
400
400
  }
401
401
  }
402
- const g = m || l;
402
+ const g = m || a;
403
403
  if (!g)
404
404
  return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
405
405
  const k = {};
406
- Object.entries((n == null ? void 0 : n.additionalFields) || {}).forEach(([T, I]) => {
407
- k[T] = I.value;
406
+ Object.entries((n == null ? void 0 : n.additionalFields) || {}).forEach(([T, v]) => {
407
+ k[T] = v.value;
408
408
  });
409
- const b = t ? t == null ? void 0 : t.primaryParticipant : n == null ? void 0 : n.primaryParticipant, L = t ? (t == null ? void 0 : t.guests) || [] : (n == null ? void 0 : n.guests) || [], p = t ? t == null ? void 0 : t.additionalFields : k, E = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", u = `/v3/scheduling/bookings/${e}${E}`, w = this.getHeaders(), v = await this.makeAPIRequest(decodeURIComponent(u), "PATCH", JSON.stringify({
409
+ const b = t ? t == null ? void 0 : t.primaryParticipant : n == null ? void 0 : n.primaryParticipant, E = t ? (t == null ? void 0 : t.guests) || [] : (n == null ? void 0 : n.guests) || [], p = t ? t == null ? void 0 : t.additionalFields : k, L = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", u = `/v3/scheduling/bookings/${e}${L}`, w = this.getHeaders(), I = await this.makeAPIRequest(decodeURIComponent(u), "PATCH", JSON.stringify({
410
410
  start_time: f.getTime() / 1e3,
411
411
  end_time: _.getTime() / 1e3,
412
412
  timezone: g,
413
413
  additional_fields: p,
414
414
  guest: { ...b },
415
- additional_guests: L,
415
+ additional_guests: E,
416
416
  participants: y ? [{ email: y }] : void 0,
417
417
  email_language: this.getTwoLetterLanguageCode(o)
418
418
  }), w);
419
- if ("error" in v) {
419
+ if ("error" in I) {
420
420
  this.schedulerStore.set("isLoading", !1);
421
- const T = (P = v.error) == null ? void 0 : P.type;
422
- let I = v.error;
421
+ const T = (D = I.error) == null ? void 0 : D.type;
422
+ let v = I.error;
423
423
  if (T && T in s) {
424
- const R = this.getErrorMessage(I);
425
- I = s[T](R);
424
+ const R = this.getErrorMessage(v);
425
+ v = s[T](R);
426
426
  }
427
- return { error: I };
427
+ return { error: v };
428
428
  }
429
429
  const B = this.schedulerStore.get("reschedulingEventInfo");
430
- if ("data" in v)
431
- this.schedulerStore.set("eventInfo", v == null ? void 0 : v.data);
430
+ if ("data" in I)
431
+ this.schedulerStore.set("eventInfo", I == null ? void 0 : I.data);
432
432
  else if (B)
433
433
  this.schedulerStore.set("eventInfo", B);
434
434
  else {
@@ -437,7 +437,7 @@ class O {
437
437
  };
438
438
  this.schedulerStore.set("eventInfo", T);
439
439
  }
440
- return this.schedulerStore.set("isLoading", !1), v;
440
+ return this.schedulerStore.set("isLoading", !1), I;
441
441
  }
442
442
  async updateBooking(e) {
443
443
  var m;
@@ -447,7 +447,7 @@ class O {
447
447
  return { error: this.errors.component(r).no_booking_id() };
448
448
  if (!n)
449
449
  return { error: this.errors.component(r).no_salt() };
450
- const l = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", o = `/v3/scheduling/bookings/${t}${l}`, h = this.getHeaders(), d = await this.makeAPIRequest(decodeURIComponent(o), "PUT", JSON.stringify({
450
+ const a = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", o = `/v3/scheduling/bookings/${t}${a}`, h = this.getHeaders(), d = await this.makeAPIRequest(decodeURIComponent(o), "PUT", JSON.stringify({
451
451
  status: s,
452
452
  cancellation_reason: i,
453
453
  salt: n
@@ -467,7 +467,7 @@ class O {
467
467
  }), this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("isLoading", !1), d;
468
468
  }
469
469
  async validateGroupEventTimeslot(e) {
470
- var r, l;
470
+ var r, a;
471
471
  this.schedulerStore.set("isLoading", !0);
472
472
  const t = (r = this.schedulerStore.get("configSettings")) == null ? void 0 : r.configuration_id;
473
473
  if (!t)
@@ -479,7 +479,7 @@ class O {
479
479
  }), s);
480
480
  if ("error" in n) {
481
481
  this.schedulerStore.set("isLoading", !1);
482
- const o = (l = n.error) == null ? void 0 : l.type;
482
+ const o = (a = n.error) == null ? void 0 : a.type;
483
483
  let h = n.error;
484
484
  if (o && o in this.errors.api(c.t("validateTimeslotErrorTitle"))) {
485
485
  const d = this.getErrorMessage(h);
@@ -490,7 +490,7 @@ class O {
490
490
  return this.schedulerStore.set("selectedTimeslot", e), this.schedulerStore.set("showBookingForm", !0), this.schedulerStore.set("isLoading", !1), n;
491
491
  }
492
492
  }
493
- function N(a = {}) {
493
+ function N(l = {}) {
494
494
  const e = {
495
495
  selectedDate: null,
496
496
  selectedLanguage: navigator.language,
@@ -506,13 +506,13 @@ function N(a = {}) {
506
506
  cancelledEventInfo: null,
507
507
  isLoading: !1,
508
508
  nylasBranding: !0,
509
- ...a
509
+ ...l
510
510
  };
511
511
  A("[defaultNylasStoreState]: ", e);
512
512
  const t = z(e);
513
513
  return t.onChange("availability", (s) => {
514
514
  A("[availability]: ", s);
515
- const i = s.map((l) => l.start_time);
515
+ const i = s.map((a) => a.start_time);
516
516
  A("[selectableDates]: ", i), t.set("selectableDates", i);
517
517
  const n = s[0];
518
518
  if (!n)
@@ -528,6 +528,6 @@ function N(a = {}) {
528
528
  }
529
529
  export {
530
530
  N as C,
531
- D as E,
531
+ P as E,
532
532
  O as N
533
533
  };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./index-58c1674c.cjs");var P;(function(c){c.Error="error",c.Warning="warning",c.Info="info",c.Success="success"})(P||(P={}));exports.ErrorCategory=void 0;(function(c){c.Component="component",c.Api="api",c.Auth="auth"})(exports.ErrorCategory||(exports.ErrorCategory={}));var D;(function(c){c.endtime_not_in_future="endtime_not_in_future",c.no_booking_info="no_booking_info",c.no_timeslot_selected="no_timeslot_selected",c.no_timezone_selected="no_timezone_selected",c.no_booking_id="no_booking_id",c.no_salt="no_salt",c.invalid_start_time="invalid_start_time",c.invalid_end_time="invalid_end_time",c.invalid_timezone="invalid_timezone",c.no_config_id="no_config_id"})(D||(D={}));class ${constructor(){this.component=e=>{const t=exports.ErrorCategory.Component,s=`${e} Error`;return{endtime_not_in_future:(i='"endtime" can not be in the future')=>({title:s,message:i,category:t}),no_booking_info:(i="No booking info provided")=>({title:s,message:i,category:t}),no_timeslot_selected:(i="No timeslot selected")=>({title:s,message:i,category:t}),no_timezone_selected:(i="No timezone selected")=>({title:s,message:i,category:t}),no_booking_id:(i="No booking id provided")=>({title:s,message:i,category:t}),no_salt:(i="No salt provided")=>({title:s,message:i,category:t}),invalid_start_time:(i="Invalid start time")=>({title:s,message:i,category:t}),invalid_end_time:(i="Invalid end time")=>({title:s,message:i,category:t}),invalid_timezone:(i="Invalid timezone")=>({title:s,message:i,category:t}),no_config_id:(i="No configuration id provided")=>({title:s,message:i,category:t})}},this.api=e=>{const t=exports.ErrorCategory.Api,s=`${e} Error`;return{invalid_session:i=>({title:s,message:i,category:t}),general_error:i=>({title:s,message:i,category:t}),internal_error:i=>({title:s,message:i,category:t}),invalid_request_error:i=>({title:s,message:i,category:t}),timeslot_not_available:i=>({title:s,message:i,category:t}),provider_error:i=>({title:s,message:i,category:t}),not_found_error:i=>({title:s,message:i,category:t})}}}}class C{constructor({schedulerAPIURL:e,schedulerStore:t,sessionId:s,configId:i,slug:n,clientId:r}){this.errors=new $,this.schedulerStore=t,this.schedulerAPIURL=e,this.sessionId=s,this.configId=i,this.slug=n,this.clientId=r}getHeaders(){return this.sessionId?{Authorization:`Bearer ${this.sessionId}`}:{}}async makeAPIRequest(e,t,s,i={}){try{const n=new URL(this.schedulerAPIURL),r="1.4.2";return n.pathname=e,await(await fetch(decodeURIComponent(n.toString()),{method:t,headers:{"Content-Type":"application/json",Origin:window.location.origin,"X-Source":"nylas-scheduling","X-Nylas-Web-Elements-Version":r,...i},body:s})).json()}catch(n){return{error:{message:n.message,title:"API request failed",type:"api"}}}}getErrorMessage(e){var s,i,n,r;let t=(e==null?void 0:e.message)||(e==null?void 0:e.title)||"Something went wrong";return(e==null?void 0:e.type)==="provider_error"&&(t=((i=(s=e==null?void 0:e.provider_error)==null?void 0:s.error)==null?void 0:i.message)||((r=(n=e==null?void 0:e.provider_error)==null?void 0:n.error)==null?void 0:r.title)||"Something went wrong"),t}setConfigId(e){this.configId=e}selectDate(e){this.schedulerStore.set("selectedDate",e),this.schedulerStore.set("selectedTimeslot",null)}selectTime(e){this.schedulerStore.set("selectedTimeslot",e)}selectTimezone(e){this.schedulerStore.set("selectedTimezone",e)}selectLanguage(e){this.schedulerStore.set("selectedLanguage",e),o.instance.changeLanguage(e)}async toggleAdditionalData(e){e||await this.refetchAvailability(),this.schedulerStore.set("showBookingForm",e)}setParticipantName(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,name:e}})}setParticipantEmail(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,email:e}})}async refetchAvailability(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1).getTime()/1e3,s=t<e.getTime()/1e3?Math.floor(e.getTime()/1e3):t,i=new Date(e.getFullYear(),e.getMonth()+1,1).getTime()/1e3;return await this.getAvailability(s,i)}async resetStoreStateAndFetchAvailability(){const e=new Date,t=await this.refetchAvailability(),s=this.schedulerStore.get("availability").find(n=>new Date(n.start_time)>new Date);let i=e;return s&&(i=s.start_time),this.schedulerStore.set("selectedDate",i),this.schedulerStore.set("eventInfo",null),this.schedulerStore.set("showBookingForm",!1),this.schedulerStore.set("selectedTimeslot",null),t}async setReschedule(e){this.schedulerStore.set("isLoading",!0);const t=this.schedulerStore.state.eventInfo;return t&&this.schedulerStore.set("reschedulingEventInfo",t),this.schedulerStore.set("rescheduleBookingId",e),await this.getUISettings(),await this.resetStoreStateAndFetchAvailability().finally(()=>{this.schedulerStore.set("isLoading",!1)})}async setCancel(e){this.schedulerStore.set("cancelBookingId",e)}async setReject(e){this.schedulerStore.set("rejectBookingId",e)}async resetCancel(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("cancelBookingId",""),this.schedulerStore.set("rejectBookingId",""),this.schedulerStore.set("cancelledEventInfo",null),e}async goBack(){this.schedulerStore.set("cancelBookingId","")}async resetConfirm(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("confirmedEventInfo",void 0),e}async bookTimeslot(e){var w,p,L;this.schedulerStore.set("isLoading",!0);const{selectedTimeslot:t,selectedTimezone:s,bookingInfo:i,selectedLanguage:n}=this.schedulerStore.state;if(!e&&!i)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_booking_info()};const r=(e==null?void 0:e.timeslot)||t;if(!r)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timeslot_selected()};const l=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:s,a=n||"en-US";if(!l)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timezone_selected()};const h=[...this.schedulerStore.get("availabilityOrderEmails")];let d="";const m=(r==null?void 0:r.emails)||[],f={};Object.entries((i==null?void 0:i.additionalFields)||{}).forEach(([u,E])=>{f[u]=E.value});const _=e?e==null?void 0:e.primaryParticipant:i==null?void 0:i.primaryParticipant,S=e?(e==null?void 0:e.guests)||[]:(i==null?void 0:i.guests)||[],y=e?e==null?void 0:e.additionalFields:f,g=this.getHeaders(),k=`/v3/scheduling/bookings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`;if(h.length===0){const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,event_id:(r==null?void 0:r.event_id)||void 0,master_id:(r==null?void 0:r.master_id)||void 0,calendar_id:(r==null?void 0:r.calendar_id)||void 0,email_language:this.getTwoLetterLanguageCode(a)}),g);return this.schedulerStore.set("isLoading",!1),"data"in u?(this.schedulerStore.set("eventInfo",u.data),u):{error:u.error}}for(;h.length>0;){if(d=h.shift(),!m.includes(d))continue;const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({participants:d?[{email:d}]:void 0,additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,email_language:this.getTwoLetterLanguageCode(a)}),g);if("data"in u)return this.schedulerStore.set("isLoading",!1),this.schedulerStore.set("eventInfo",u==null?void 0:u.data),u;if((p=(w=u.error)==null?void 0:w.message)!=null&&p.startsWith("The selected timeslot is unavailable"))continue;{this.schedulerStore.set("isLoading",!1);const E=(L=u.error)==null?void 0:L.type;let I=u.error;if(E&&E in this.errors.api(o.instance.t("createBookingErrorTitle"))){const A=this.getErrorMessage(I);I=this.errors.api(o.instance.t("createBookingErrorTitle"))[E](A)}return{error:I}}}return this.schedulerStore.set("isLoading",!1),{error:this.errors.api(o.instance.t("createBookingErrorTitle")).timeslot_not_available("The selected timeslot is unavailable")}}async getUISettings(){var r;this.schedulerStore.set("isLoading",!0);const e=this.schedulerStore.get("rescheduleBookingId"),t=this.getHeaders();let s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"";e&&s?s+=`&booking_id=${e}`:e&&(s+=`?booking_id=${e}`);const i=`/v3/scheduling/ui-settings${s}`,n=await this.makeAPIRequest(i,"GET",void 0,t);if("error"in n){this.schedulerStore.set("isLoading",!1);const l=(r=n.error)==null?void 0:r.type;let a=n.error;return l&&l in this.errors.api(o.instance.t("getUISettingErrorTitle"))&&(a=this.errors.api(o.instance.t("getUISettingErrorTitle"))[l]((a==null?void 0:a.message)||(a==null?void 0:a.title)||"Something went wrong")),{error:a}}return"data"in n&&this.schedulerStore.set("configSettings",n.data),this.schedulerStore.set("isLoading",!1),n}getTwoLetterLanguageCode(e){return e.split("-")[0]}getStartTimeWithMinBookingNotice(e){var n;const t=(n=this.schedulerStore.get("configSettings"))==null?void 0:n.scheduler,s=t==null?void 0:t.min_booking_notice;if(!s)return e;const i=new Date().getTime();return e<(i+s*60*1e3)/1e3?Math.floor((i+s*60*1e3)/1e3):e}getEndTimeForAvailableDaysInFuture(e){var r,l;const t=new Date,s=(l=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:l.available_days_in_future,i=Math.floor(o.addDaysToCurrentDate(t,s).getTime()/1e3);return Math.min(i,e)}async getAvailability(e=0,t=0){var f,_,S,y;this.schedulerStore.set("isLoading",!0);const s=new URLSearchParams,i=new Date,n=i.getTime();if(t&&t<n/1e3)return this.schedulerStore.set("isLoading",!1),{error:this.errors.component(o.instance.t("getAvailabilityErrorTitle")).endtime_not_in_future()};if(!e){const g=new Date(i.getFullYear(),i.getMonth(),1);e=Math.floor(g.getTime()/1e3)}if(!t){const g=new Date(i.getFullYear(),i.getMonth()+1,0);t=Math.floor(g.getTime()/1e3)}t=this.getEndTimeForAvailableDaysInFuture(t);const r=this.getStartTimeWithMinBookingNotice(e);e=r,t=r>t?r+1:t,s.append("start_time",encodeURIComponent(e.toString())),s.append("end_time",encodeURIComponent(t.toString())),this.configId&&!this.sessionId?s.append("configuration_id",encodeURIComponent(this.configId)):this.slug&&this.clientId&&!this.sessionId&&(s.append("slug",encodeURIComponent(this.slug)),s.append("client_id",encodeURIComponent(this.clientId)));const l=this.schedulerStore.get("rescheduleBookingId");l&&s.append("booking_id",encodeURIComponent(l));const a=s.toString(),h=`/v3/scheduling/availability${a?`?${a}`:""}`,d=this.getHeaders(),m=await this.makeAPIRequest(decodeURIComponent(h),"GET",void 0,d);if("error"in m){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const g=(f=m.error)==null?void 0:f.type;let b=m.error;if(g&&g in this.errors.api(o.instance.t("getAvailabilityErrorTitle"))){const k=this.getErrorMessage(b);b=this.errors.api(o.instance.t("getAvailabilityErrorTitle"))[g](k)}return{error:b}}if("data"in m){const k=(((S=(_=m.data)==null?void 0:_.time_slots)==null?void 0:S.map(p=>({...p,start_time:new Date(p.start_time*1e3),end_time:new Date(p.end_time*1e3)})))||[]).filter(p=>p.start_time.getTime()>n).sort((p,L)=>p.start_time.getTime()-L.start_time.getTime());this.schedulerStore.set("availability",k);const w=((y=m.data)==null?void 0:y.order)||[];this.schedulerStore.set("availabilityOrderEmails",w)}return this.schedulerStore.set("isLoading",!1),m}async cancelBooking(e,t){var l;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("cancelBookingErrorTitle")).no_booking_id()};const s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",i=`/v3/scheduling/bookings/${e}${s}`,n=this.getHeaders(),r=await this.makeAPIRequest(decodeURIComponent(i),"DELETE",JSON.stringify({action:"cancel",cancellation_reason:t}),n);if("error"in r){this.schedulerStore.set("isLoading",!1);const a=(l=r.error)==null?void 0:l.type;let h=r.error;if(a&&a in this.errors.api(o.instance.t("cancelBookingErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("cancelBookingErrorTitle"))[a](d)}return{error:h}}return this.schedulerStore.set("cancelledEventInfo",{booking_id:e}),this.schedulerStore.set("rescheduleBookingId",""),this.schedulerStore.set("isLoading",!1),r}async rescheduleBooking(e,t){var B;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("rescheduleBookingErrorTitle")).no_booking_id()};const s=this.errors.api(o.instance.t("rescheduleBookingErrorTitle")),i=this.errors.component(o.instance.t("rescheduleBookingErrorTitle")),{bookingInfo:n,selectedTimeslot:r,selectedTimezone:l,selectedLanguage:a}=this.schedulerStore.state,{startTime:h,endTime:d,timezone:m}=t,f=h||(r==null?void 0:r.start_time);if(!f)return{error:i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const _=d||(r==null?void 0:r.end_time);if(!_)return{error:i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const S=this.schedulerStore.get("availabilityOrderEmails");let y="";if(S.length>0){const T=(r==null?void 0:r.emails)||[];for(let v=0;v<S.length;v++)if(T.includes(S[v])){y=S[v];break}}const g=m||l;if(!g)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')};const b={};Object.entries((n==null?void 0:n.additionalFields)||{}).forEach(([T,v])=>{b[T]=v.value});const k=t?t==null?void 0:t.primaryParticipant:n==null?void 0:n.primaryParticipant,w=t?(t==null?void 0:t.guests)||[]:(n==null?void 0:n.guests)||[],p=t?t==null?void 0:t.additionalFields:b,L=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",u=`/v3/scheduling/bookings/${e}${L}`,E=this.getHeaders(),I=await this.makeAPIRequest(decodeURIComponent(u),"PATCH",JSON.stringify({start_time:f.getTime()/1e3,end_time:_.getTime()/1e3,timezone:g,additional_fields:p,guest:{...k},additional_guests:w,participants:y?[{email:y}]:void 0,email_language:this.getTwoLetterLanguageCode(a)}),E);if("error"in I){this.schedulerStore.set("isLoading",!1);const T=(B=I.error)==null?void 0:B.type;let v=I.error;if(T&&T in s){const M=this.getErrorMessage(v);v=s[T](M)}return{error:v}}const A=this.schedulerStore.get("reschedulingEventInfo");if("data"in I)this.schedulerStore.set("eventInfo",I==null?void 0:I.data);else if(A)this.schedulerStore.set("eventInfo",A);else{const T={booking_id:e};this.schedulerStore.set("eventInfo",T)}return this.schedulerStore.set("isLoading",!1),I}async updateBooking(e){var m;this.schedulerStore.set("isLoading",!0);const{bookingId:t,status:s,reason:i}=e,n=this.schedulerStore.get("organizerConfirmationSalt"),r=s==="confirmed"?o.instance.t("confirmBookingErrorTitle"):o.instance.t("rejectBookingErrorTitle");if(!t)return{error:this.errors.component(r).no_booking_id()};if(!n)return{error:this.errors.component(r).no_salt()};const l=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",a=`/v3/scheduling/bookings/${t}${l}`,h=this.getHeaders(),d=await this.makeAPIRequest(decodeURIComponent(a),"PUT",JSON.stringify({status:s,cancellation_reason:i,salt:n}),h);if("error"in d){this.schedulerStore.set("isLoading",!1);const f=(m=d.error)==null?void 0:m.type;let _=d.error;if(f&&f in this.errors.api(r)){const S=this.getErrorMessage(_);_=this.errors.api(r)[f](S)}return{error:_}}return"data"in d&&s==="confirmed"?this.schedulerStore.set("confirmedEventInfo",d==null?void 0:d.data):"request_id"in d&&s==="cancelled"&&this.schedulerStore.set("cancelledEventInfo",{booking_id:t}),this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("isLoading",!1),d}async validateGroupEventTimeslot(e){var r,l;this.schedulerStore.set("isLoading",!0);const t=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.configuration_id;if(!t)return{error:this.errors.component(o.instance.t("validateTimeslotErrorTitle")).no_config_id()};const s=this.getHeaders(),i=`/v3/scheduling/configurations/${t}/group-events/validate-timeslot`,n=await this.makeAPIRequest(decodeURIComponent(i),"POST",JSON.stringify({...e,start_time:e.start_time.getTime()/1e3,end_time:e.end_time.getTime()/1e3}),s);if("error"in n){this.schedulerStore.set("isLoading",!1);const a=(l=n.error)==null?void 0:l.type;let h=n.error;if(a&&a in this.errors.api(o.instance.t("validateTimeslotErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("validateTimeslotErrorTitle"))[a](d)}return this.refetchAvailability(),{error:h}}return this.schedulerStore.set("selectedTimeslot",e),this.schedulerStore.set("showBookingForm",!0),this.schedulerStore.set("isLoading",!1),n}}function R(c={}){const e={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:!1,availabilityOrderEmails:[],selectableDates:null,availability:[],eventDuration:0,state:"ready",eventInfo:null,cancelledEventInfo:null,isLoading:!1,nylasBranding:!0,...c};o.debug("[defaultNylasStoreState]: ",e);const t=o.createStore(e);return t.onChange("availability",s=>{o.debug("[availability]: ",s);const i=s.map(l=>l.start_time);o.debug("[selectableDates]: ",i),t.set("selectableDates",i);const n=s[0];if(!n)return;const r=Math.floor((n.end_time.getTime()-n.start_time.getTime())/6e4);o.debug("[durationMinutes]: ",r),t.set("eventDuration",r)}),t.reset=()=>{for(const s in e){const i=e[s];t.set(s,i)}},t}exports.CreateNylasSchedulerStore=R;exports.NylaSchedulerAPIConnector=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const c=".sc-sent-icon-h{display:flex}",i=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"fe1f3a8dccc7ed5b4b008b3e7ba2b6aa32bf75df",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"319aeb3c8bdce5002c624d4926ec3cb0525d396c",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"d05924ef434bb7976571e3f9fe2b00ffaac6c770",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"0268790deda555924f82a772dcd49783aec96c82",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.sent_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const c=".sc-sent-icon-h{display:flex}",i=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"fe1f3a8dccc7ed5b4b008b3e7ba2b6aa32bf75df",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"319aeb3c8bdce5002c624d4926ec3cb0525d396c",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"d05924ef434bb7976571e3f9fe2b00ffaac6c770",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"0268790deda555924f82a772dcd49783aec96c82",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.sent_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as s, h as t } from "./index-04630615.js";
1
+ import { r as s, h as t } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-spam-icon-h{display:flex}",c=i,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"84d7e0e5235fe887cc3d239ce69e0986a1d3014d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"b0b2350a1cf0d3ba1fdc3d099c9882ca095e1369",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"a2b5344063a37dc44ff52d46354443f774bc7c86",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=c;exports.spam_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-spam-icon-h{display:flex}",c=i,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"84d7e0e5235fe887cc3d239ce69e0986a1d3014d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"b0b2350a1cf0d3ba1fdc3d099c9882ca095e1369",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"a2b5344063a37dc44ff52d46354443f774bc7c86",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=c;exports.spam_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as e, h as t } from "./index-04630615.js";
1
+ import { r as e, h as t } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-star-icon-h{display:flex}",r=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"49798910e83f877f8413abb5c4b11cccacab77eb",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8e0bddce209f480ad0e39574718ccda799f80c70",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};e.style=r;exports.star_icon=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-star-icon-h{display:flex}",r=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"49798910e83f877f8413abb5c4b11cccacab77eb",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8e0bddce209f480ad0e39574718ccda799f80c70",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};e.style=r;exports.star_icon=e;
@@ -1,4 +1,4 @@
1
- import { r as e, h as t } from "./index-04630615.js";
1
+ import { r as e, h as t } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=".sc-stop-icon-h{display:flex}",s=o,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"6979a1534afefd8f03cac18490c593dc6e95327e",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"22c22dbe65bb682d0c0c51ef4b9b23b26b29d729",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=s;exports.stop_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=".sc-stop-icon-h{display:flex}",s=o,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"6979a1534afefd8f03cac18490c593dc6e95327e",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"22c22dbe65bb682d0c0c51ef4b9b23b26b29d729",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=s;exports.stop_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as s, h as t } from "./index-04630615.js";
1
+ import { r as s, h as t } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3d1f13d6.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}textarea:read-only{background-color:var(--nylas-base-100);cursor:not-allowed}',s=o,l=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.name="textarea",this.defaultValue=void 0,this.label="",this.placeholder="",this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.maxLength=255,this.type="multi_line_text",this.tooltip="",this.value="",this.error=""}componentDidLoad(){this.value=e.sanitize(this.defaultValue||"")}handleBookingFormSubmitted(a){this.validate(this.value),this.error&&a.preventDefault()}handletriggerValidation(a){this.validate(this.value),this.error&&a.preventDefault()}handleInput(a){this.error="";const r=a.target;this.value=e.sanitize(r.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(a){this.required&&!a?this.error=`${this.label} is required.`:a.length>this.maxLength?this.error=`${this.label} cannot exceed ${this.maxLength} characters.`:this.error=""}render(){return e.h("label",{key:"dfa36b319e151ee064e1dce59391cc1be9cd2284",part:"tc__label",class:{error:!!this.error}},e.h("p",{key:"5dfc3110496c05244225cabc70ccca711b4cbb3b"},e.h("span",{key:"87c2996b6a258d78f829fe57bcab0654216ec3b9",class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"),this.tooltip&&e.h("tooltip-component",null,e.h("info-icon",{slot:"tooltip-icon"}),e.h("span",{slot:"tooltip-content"},this.tooltip))),e.h("textarea",{key:"ed5c0c9044999404daa9282b70e31698a4571463",name:this.name,title:this.readOnly?"read-only field":void 0,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:a=>this.handleInput(a),class:{error:!!this.error},part:"tc__textarea"}),this.error&&e.h("span",{class:"error help-text"},this.error))}};l.style=s;exports.textarea_component=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}textarea:read-only{background-color:var(--nylas-base-100);cursor:not-allowed}',s=o,l=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.name="textarea",this.defaultValue=void 0,this.label="",this.placeholder="",this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.maxLength=255,this.type="multi_line_text",this.tooltip="",this.value="",this.error=""}componentDidLoad(){this.value=e.sanitize(this.defaultValue||"")}handleBookingFormSubmitted(a){this.validate(this.value),this.error&&a.preventDefault()}handletriggerValidation(a){this.validate(this.value),this.error&&a.preventDefault()}handleInput(a){this.error="";const r=a.target;this.value=e.sanitize(r.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(a){this.required&&!a?this.error=`${this.label} is required.`:a.length>this.maxLength?this.error=`${this.label} cannot exceed ${this.maxLength} characters.`:this.error=""}render(){return e.h("label",{key:"dfa36b319e151ee064e1dce59391cc1be9cd2284",part:"tc__label",class:{error:!!this.error}},e.h("p",{key:"5dfc3110496c05244225cabc70ccca711b4cbb3b"},e.h("span",{key:"87c2996b6a258d78f829fe57bcab0654216ec3b9",class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"),this.tooltip&&e.h("tooltip-component",null,e.h("info-icon",{slot:"tooltip-icon"}),e.h("span",{slot:"tooltip-content"},this.tooltip))),e.h("textarea",{key:"ed5c0c9044999404daa9282b70e31698a4571463",name:this.name,title:this.readOnly?"read-only field":void 0,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:a=>this.handleInput(a),class:{error:!!this.error},part:"tc__textarea"}),this.error&&e.h("span",{class:"error help-text"},this.error))}};l.style=s;exports.textarea_component=l;
@@ -1,4 +1,4 @@
1
- import { r as o, c as s, y as l, h as a } from "./index-04630615.js";
1
+ import { r as o, c as s, y as l, h as a } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { r as s, c as o, h as l } from "./index-04630615.js";
1
+ import { r as s, c as o, h as l } from "./index-b04bb93f.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";