@nylas/web-elements 0.0.0-canary-20251023164535 → 0.0.0-canary-20251029185136

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 (304) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +17 -16
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +10 -10
  3. package/dist/cjs/{abstract-provider-DOaCK0Ia.js → abstract-provider-CZo7QWPj.js} +3 -3
  4. package/dist/cjs/{abstract-provider-DOaCK0Ia.js.map → abstract-provider-CZo7QWPj.js.map} +1 -1
  5. package/dist/cjs/calendar-agenda-fill-icon_38.cjs.entry.js +9 -9
  6. package/dist/cjs/calendar-agenda-fill-icon_38.cjs.entry.js.map +1 -1
  7. package/dist/cjs/checkbox-group_4.cjs.entry.js +3 -3
  8. package/dist/cjs/checkmark-icon_15.cjs.entry.js +2 -2
  9. package/dist/cjs/{customParseFormat-B3qRJI76.js → customParseFormat-DdrySvrq.js} +3 -3
  10. package/dist/cjs/{customParseFormat-B3qRJI76.js.map → customParseFormat-DdrySvrq.js.map} +1 -1
  11. package/dist/cjs/globe-icon_3.cjs.entry.js +2 -2
  12. package/dist/cjs/google-logo-icon_6.cjs.entry.js +3 -3
  13. package/dist/cjs/index.cjs.js +2 -2
  14. package/dist/cjs/input-component.cjs.entry.js +1 -1
  15. package/dist/cjs/input-dropdown_2.cjs.entry.js +1 -1
  16. package/dist/cjs/multi-select-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/{nylas-api-request-Dyvsd6KX.js → nylas-api-request-Cyt148Hk.js} +3 -3
  18. package/dist/cjs/{nylas-api-request-Dyvsd6KX.js.map → nylas-api-request-Cyt148Hk.js.map} +1 -1
  19. package/dist/cjs/nylas-booked-event-card_11.cjs.entry.js +2 -2
  20. package/dist/cjs/nylas-form-card.cjs.entry.js +2 -2
  21. package/dist/cjs/nylas-notification_2.cjs.entry.js +1 -1
  22. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +4 -4
  23. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
  24. package/dist/cjs/{register-component-CZKreEUk.js → register-component-BYFF0_7-.js} +3 -3
  25. package/dist/cjs/{register-component-CZKreEUk.js.map → register-component-BYFF0_7-.js.map} +1 -1
  26. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  27. package/dist/cjs/{utils-VYrzhIuQ.js → utils-DMP9yXCk.js} +11 -11
  28. package/dist/cjs/{utils-VYrzhIuQ.js.map → utils-DMP9yXCk.js.map} +1 -1
  29. package/dist/cjs/{version-sMNkED66.js → version-DTKfJ9pI.js} +3 -3
  30. package/dist/cjs/{version-sMNkED66.js.map → version-DTKfJ9pI.js.map} +1 -1
  31. package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.css +9 -2
  32. package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.js +6 -6
  33. package/dist/collection/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.js.map +1 -1
  34. package/dist/collection/version.js +1 -1
  35. package/dist/collection/version.js.map +1 -1
  36. package/dist/components/index.js +1 -1
  37. package/dist/components/input-component.js +1 -1
  38. package/dist/components/input-image-url.js +1 -1
  39. package/dist/components/multi-select-dropdown.js +1 -1
  40. package/dist/components/nylas-additional-participants.js +1 -1
  41. package/dist/components/nylas-availability-picker.js +1 -1
  42. package/dist/components/nylas-booked-event-card.js +1 -1
  43. package/dist/components/nylas-booking-calendar-picker.js +1 -1
  44. package/dist/components/nylas-booking-confirmation-redirect.js +1 -1
  45. package/dist/components/nylas-booking-confirmation-type.js +1 -1
  46. package/dist/components/nylas-booking-form-config.js +1 -1
  47. package/dist/components/nylas-booking-form.js +1 -1
  48. package/dist/components/nylas-buffer-time.js +1 -1
  49. package/dist/components/nylas-calendar-picker.js +1 -1
  50. package/dist/components/nylas-cancel-booking-form.js +1 -1
  51. package/dist/components/nylas-cancellation-policy.js +1 -1
  52. package/dist/components/nylas-cancelled-event-card.js +1 -1
  53. package/dist/components/nylas-confirmation-email.js +1 -1
  54. package/dist/components/nylas-confirmed-event-card.js +1 -1
  55. package/dist/components/nylas-connected-calendars.js +1 -1
  56. package/dist/components/nylas-custom-booking-flow.js +1 -1
  57. package/dist/components/nylas-custom-event-slug.js +1 -1
  58. package/dist/components/nylas-customize-booking-settings.js +1 -1
  59. package/dist/components/nylas-date-component.js +1 -1
  60. package/dist/components/nylas-date-picker.js +1 -1
  61. package/dist/components/nylas-disable-emails.js +1 -1
  62. package/dist/components/nylas-editor-tabs-group.js +1 -1
  63. package/dist/components/nylas-editor-tabs.js +1 -1
  64. package/dist/components/nylas-event-calendar.js +1 -1
  65. package/dist/components/nylas-event-capacity.js +1 -1
  66. package/dist/components/nylas-event-description.js +1 -1
  67. package/dist/components/nylas-event-duration.js +1 -1
  68. package/dist/components/nylas-event-info.js +1 -1
  69. package/dist/components/nylas-event-limits.js +1 -1
  70. package/dist/components/nylas-event-location.js +1 -1
  71. package/dist/components/nylas-event-timeslot.js +1 -1
  72. package/dist/components/nylas-event-title.js +1 -1
  73. package/dist/components/nylas-feedback-form.js +1 -1
  74. package/dist/components/nylas-form-card.js +1 -1
  75. package/dist/components/nylas-limit-future-bookings.js +1 -1
  76. package/dist/components/nylas-list-configurations.js +1 -1
  77. package/dist/components/nylas-locale-switch.js +1 -1
  78. package/dist/components/nylas-min-booking-notice.js +1 -1
  79. package/dist/components/nylas-min-cancellation-notice.js +1 -1
  80. package/dist/components/nylas-notification.js +1 -1
  81. package/dist/components/nylas-only-specific-time-availability.js +1 -1
  82. package/dist/components/nylas-organizer-confirmation-card.js +1 -1
  83. package/dist/components/nylas-page-name.js +1 -1
  84. package/dist/components/nylas-page-styling.js +1 -1
  85. package/dist/components/nylas-participant-booking-calendars.js +1 -1
  86. package/dist/components/nylas-participants-custom-availability.js +1 -1
  87. package/dist/components/nylas-reminder-emails.js +1 -1
  88. package/dist/components/nylas-reminder-time.js +1 -1
  89. package/dist/components/nylas-scheduler-editor.js +55 -55
  90. package/dist/components/nylas-scheduling-method.js +1 -1
  91. package/dist/components/nylas-scheduling.js +19 -19
  92. package/dist/components/nylas-select-event-type.js +1 -1
  93. package/dist/components/nylas-selected-event-card.js +1 -1
  94. package/dist/components/nylas-specific-time-availability-picker.js +1 -1
  95. package/dist/components/nylas-time-window-picker.js +1 -1
  96. package/dist/components/nylas-timeslot-interval.js +1 -1
  97. package/dist/components/nylas-timeslot-picker.js +1 -1
  98. package/dist/components/{p-H2PEDQev.js → p--DnD2uAW.js} +7 -7
  99. package/dist/components/{p-H2PEDQev.js.map → p--DnD2uAW.js.map} +1 -1
  100. package/dist/components/{p-BOEUsxij.js → p-B4K2F_cG.js} +4 -4
  101. package/dist/components/{p-BOEUsxij.js.map → p-B4K2F_cG.js.map} +1 -1
  102. package/dist/components/{p-CS8D-1if.js → p-B5pNjL0N.js} +4 -4
  103. package/dist/components/{p-CS8D-1if.js.map → p-B5pNjL0N.js.map} +1 -1
  104. package/dist/components/{p-Nzu_5ZmQ.js → p-BC9yeuRb.js} +3 -3
  105. package/dist/components/{p-Nzu_5ZmQ.js.map → p-BC9yeuRb.js.map} +1 -1
  106. package/dist/components/{p-BX-dFDFA.js → p-BMpBdxEp.js} +4 -4
  107. package/dist/components/{p-BX-dFDFA.js.map → p-BMpBdxEp.js.map} +1 -1
  108. package/dist/components/{p-DyOLurnZ.js → p-BYzuAGXU.js} +49 -49
  109. package/dist/components/{p-DyOLurnZ.js.map → p-BYzuAGXU.js.map} +1 -1
  110. package/dist/components/{p-D6E0vp2X.js → p-BfdTgv37.js} +4 -4
  111. package/dist/components/{p-D6E0vp2X.js.map → p-BfdTgv37.js.map} +1 -1
  112. package/dist/components/{p-C-9RzJZG.js → p-BkzMJ4pV.js} +11 -11
  113. package/dist/components/{p-C-9RzJZG.js.map → p-BkzMJ4pV.js.map} +1 -1
  114. package/dist/components/{p-BnKgaDIm.js → p-BnU07kVV.js} +5 -5
  115. package/dist/components/{p-BnKgaDIm.js.map → p-BnU07kVV.js.map} +1 -1
  116. package/dist/components/{p-CJXT074p.js → p-BnrCrrsE.js} +4 -4
  117. package/dist/components/{p-CJXT074p.js.map → p-BnrCrrsE.js.map} +1 -1
  118. package/dist/components/{p-B4LAfvS9.js → p-BoryVwdE.js} +3 -3
  119. package/dist/components/{p-B4LAfvS9.js.map → p-BoryVwdE.js.map} +1 -1
  120. package/dist/components/{p-B-q5dr4Z.js → p-BqTfI9iO.js} +5 -5
  121. package/dist/components/{p-B-q5dr4Z.js.map → p-BqTfI9iO.js.map} +1 -1
  122. package/dist/components/{p-PGZfpcsW.js → p-Bspl8yuu.js} +8 -8
  123. package/dist/components/{p-PGZfpcsW.js.map → p-Bspl8yuu.js.map} +1 -1
  124. package/dist/components/{p-nwpBi6uh.js → p-BvRLg-HQ.js} +3 -3
  125. package/dist/components/{p-nwpBi6uh.js.map → p-BvRLg-HQ.js.map} +1 -1
  126. package/dist/components/{p-Ck7Utpku.js → p-C5fHZLWQ.js} +5 -5
  127. package/dist/components/{p-Ck7Utpku.js.map → p-C5fHZLWQ.js.map} +1 -1
  128. package/dist/components/{p-rernVjNw.js → p-C7CSS14_.js} +6 -6
  129. package/dist/components/{p-rernVjNw.js.map → p-C7CSS14_.js.map} +1 -1
  130. package/dist/components/{p-USlPWd32.js → p-C8gVhB99.js} +5 -5
  131. package/dist/components/{p-USlPWd32.js.map → p-C8gVhB99.js.map} +1 -1
  132. package/dist/components/{p-DiCCKLqS.js → p-C9m4ME75.js} +40 -40
  133. package/dist/components/{p-DiCCKLqS.js.map → p-C9m4ME75.js.map} +1 -1
  134. package/dist/components/{p-BJIdbu1H.js → p-CHGzZc5-.js} +5 -5
  135. package/dist/components/{p-BJIdbu1H.js.map → p-CHGzZc5-.js.map} +1 -1
  136. package/dist/components/{p-C3quV8UM.js → p-CI0FKgAJ.js} +7 -7
  137. package/dist/components/{p-C3quV8UM.js.map → p-CI0FKgAJ.js.map} +1 -1
  138. package/dist/components/{p-OWT0xV_k.js → p-CNojy2PB.js} +4 -4
  139. package/dist/components/{p-OWT0xV_k.js.map → p-CNojy2PB.js.map} +1 -1
  140. package/dist/components/{p-CpcjVJMS.js → p-COOMTxtt.js} +4 -4
  141. package/dist/components/{p-CpcjVJMS.js.map → p-COOMTxtt.js.map} +1 -1
  142. package/dist/components/{p-CIZt1hbc.js → p-CS7dGt1R.js} +4 -4
  143. package/dist/components/{p-CIZt1hbc.js.map → p-CS7dGt1R.js.map} +1 -1
  144. package/dist/components/{p-CxgQ4DV9.js → p-CZw_P3Tp.js} +4 -4
  145. package/dist/components/{p-CxgQ4DV9.js.map → p-CZw_P3Tp.js.map} +1 -1
  146. package/dist/components/{p-CxjS5vcT.js → p-C_QAMVyX.js} +4 -4
  147. package/dist/components/{p-CxjS5vcT.js.map → p-C_QAMVyX.js.map} +1 -1
  148. package/dist/components/{p-zBmfn9Ee.js → p-CexYKlpc.js} +3 -3
  149. package/dist/components/{p-zBmfn9Ee.js.map → p-CexYKlpc.js.map} +1 -1
  150. package/dist/components/{p-wJWFqJZw.js → p-CsKdKz2W.js} +4 -4
  151. package/dist/components/{p-wJWFqJZw.js.map → p-CsKdKz2W.js.map} +1 -1
  152. package/dist/components/{p-CZLOU3Va.js → p-CwlnHdR3.js} +4 -4
  153. package/dist/components/{p-CZLOU3Va.js.map → p-CwlnHdR3.js.map} +1 -1
  154. package/dist/components/{p-BzNgohl1.js → p-Cx31rTZq.js} +4 -4
  155. package/dist/components/{p-BzNgohl1.js.map → p-Cx31rTZq.js.map} +1 -1
  156. package/dist/components/{p-BPbLHmnh.js → p-CzBqaxFU.js} +5 -5
  157. package/dist/components/{p-BPbLHmnh.js.map → p-CzBqaxFU.js.map} +1 -1
  158. package/dist/components/{p-C7_XycjO.js → p-D1EoqZsu.js} +4 -4
  159. package/dist/components/{p-C7_XycjO.js.map → p-D1EoqZsu.js.map} +1 -1
  160. package/dist/components/{p-C_9WoSFK.js → p-D3xYUjJI.js} +4 -4
  161. package/dist/components/{p-C_9WoSFK.js.map → p-D3xYUjJI.js.map} +1 -1
  162. package/dist/components/{p-BnsOCm71.js → p-D5KNDDuK.js} +4 -4
  163. package/dist/components/{p-BnsOCm71.js.map → p-D5KNDDuK.js.map} +1 -1
  164. package/dist/components/{p-CQQB-OD7.js → p-D6ovLzQI.js} +3 -3
  165. package/dist/components/{p-CQQB-OD7.js.map → p-D6ovLzQI.js.map} +1 -1
  166. package/dist/components/{p-BgVZNMXq.js → p-D6x7KnWY.js} +8 -8
  167. package/dist/components/{p-BgVZNMXq.js.map → p-D6x7KnWY.js.map} +1 -1
  168. package/dist/components/{p-C2wPhW78.js → p-D7s_zg_d.js} +4 -4
  169. package/dist/components/{p-C2wPhW78.js.map → p-D7s_zg_d.js.map} +1 -1
  170. package/dist/components/{p-4Eo0pKVg.js → p-D92kTAyK.js} +5 -5
  171. package/dist/components/{p-4Eo0pKVg.js.map → p-D92kTAyK.js.map} +1 -1
  172. package/dist/components/{p-C-bIz_hy.js → p-D9Dg1JWU.js} +3 -3
  173. package/dist/components/{p-C-bIz_hy.js.map → p-D9Dg1JWU.js.map} +1 -1
  174. package/dist/components/{p-DP1P7gC9.js → p-D9PED7bs.js} +5 -5
  175. package/dist/components/{p-DP1P7gC9.js.map → p-D9PED7bs.js.map} +1 -1
  176. package/dist/components/{p-Dy9AIDSW.js → p-DAmas3F9.js} +4 -4
  177. package/dist/components/{p-Dy9AIDSW.js.map → p-DAmas3F9.js.map} +1 -1
  178. package/dist/components/{p-DEF0WG29.js → p-DHlJz5qn.js} +5 -5
  179. package/dist/components/{p-DEF0WG29.js.map → p-DHlJz5qn.js.map} +1 -1
  180. package/dist/components/{p-o0D7OIed.js → p-DJv7tC9z.js} +3 -3
  181. package/dist/components/{p-o0D7OIed.js.map → p-DJv7tC9z.js.map} +1 -1
  182. package/dist/components/{p-s06UjtHJ.js → p-DKnp-SZi.js} +8 -8
  183. package/dist/components/{p-s06UjtHJ.js.map → p-DKnp-SZi.js.map} +1 -1
  184. package/dist/components/{p-DPHPGDki.js → p-DPeb4p0M.js} +5 -5
  185. package/dist/components/{p-DPHPGDki.js.map → p-DPeb4p0M.js.map} +1 -1
  186. package/dist/components/{p-C7Gn7-GK.js → p-DRd9V7vZ.js} +7 -7
  187. package/dist/components/{p-C7Gn7-GK.js.map → p-DRd9V7vZ.js.map} +1 -1
  188. package/dist/components/{p-D5WcQ7s2.js → p-DTlpOiw-.js} +6 -6
  189. package/dist/components/{p-D5WcQ7s2.js.map → p-DTlpOiw-.js.map} +1 -1
  190. package/dist/components/{p-auB3ZoWP.js → p-DWkUeMm6.js} +4 -4
  191. package/dist/components/{p-auB3ZoWP.js.map → p-DWkUeMm6.js.map} +1 -1
  192. package/dist/components/{p-DFnXfDS7.js → p-DbjQjOKi.js} +3 -3
  193. package/dist/components/{p-DFnXfDS7.js.map → p-DbjQjOKi.js.map} +1 -1
  194. package/dist/components/{p-BQaskvNx.js → p-DciJgP0N.js} +4 -4
  195. package/dist/components/{p-BQaskvNx.js.map → p-DciJgP0N.js.map} +1 -1
  196. package/dist/components/{p-CAlTvMv3.js → p-DkJ3N73P.js} +5 -5
  197. package/dist/components/{p-CAlTvMv3.js.map → p-DkJ3N73P.js.map} +1 -1
  198. package/dist/components/{p-D3EFT5f-.js → p-DmYbjMxT.js} +4 -4
  199. package/dist/components/{p-D3EFT5f-.js.map → p-DmYbjMxT.js.map} +1 -1
  200. package/dist/components/{p-Ckv0Bcus.js → p-Dp5o78QS.js} +5 -5
  201. package/dist/components/{p-Ckv0Bcus.js.map → p-Dp5o78QS.js.map} +1 -1
  202. package/dist/components/{p-BgfJE-cE.js → p-DqcCEDhq.js} +5 -5
  203. package/dist/components/{p-BgfJE-cE.js.map → p-DqcCEDhq.js.map} +1 -1
  204. package/dist/components/{p-ksfJsdwW.js → p-Dqk37NDi.js} +5 -5
  205. package/dist/components/{p-ksfJsdwW.js.map → p-Dqk37NDi.js.map} +1 -1
  206. package/dist/components/{p-ML5NaBlp.js → p-Du2grbuj.js} +5 -5
  207. package/dist/components/{p-ML5NaBlp.js.map → p-Du2grbuj.js.map} +1 -1
  208. package/dist/components/{p-Dows6o9d.js → p-DvSo9R8l.js} +5 -5
  209. package/dist/components/{p-Dows6o9d.js.map → p-DvSo9R8l.js.map} +1 -1
  210. package/dist/components/{p-DzIz09Sr.js → p-DwtTOYHU.js} +13 -13
  211. package/dist/components/p-DwtTOYHU.js.map +1 -0
  212. package/dist/components/{p-He5IjVyD.js → p-DzErtQSw.js} +5 -5
  213. package/dist/components/{p-He5IjVyD.js.map → p-DzErtQSw.js.map} +1 -1
  214. package/dist/components/{p-D4OZzddo.js → p-F1_K10Bc.js} +5 -5
  215. package/dist/components/{p-D4OZzddo.js.map → p-F1_K10Bc.js.map} +1 -1
  216. package/dist/components/{p-DLdTazaE.js → p-MYEzIAsT.js} +4 -4
  217. package/dist/components/{p-DLdTazaE.js.map → p-MYEzIAsT.js.map} +1 -1
  218. package/dist/components/{p-bbx04OZB.js → p-UTtjPYki.js} +3 -3
  219. package/dist/components/{p-bbx04OZB.js.map → p-UTtjPYki.js.map} +1 -1
  220. package/dist/components/{p-DZJR8iD8.js → p-ngAHxLZm.js} +5 -5
  221. package/dist/components/{p-DZJR8iD8.js.map → p-ngAHxLZm.js.map} +1 -1
  222. package/dist/components/{p-DIbhOKDN.js → p-qe7eWmdR.js} +3 -3
  223. package/dist/components/{p-DIbhOKDN.js.map → p-qe7eWmdR.js.map} +1 -1
  224. package/dist/components/{p-B_Zms6J8.js → p-s8TAnkny.js} +4 -4
  225. package/dist/components/{p-B_Zms6J8.js.map → p-s8TAnkny.js.map} +1 -1
  226. package/dist/components/{p-DHJAvIzJ.js → p-t4Pprf0f.js} +17 -17
  227. package/dist/components/{p-DHJAvIzJ.js.map → p-t4Pprf0f.js.map} +1 -1
  228. package/dist/components/{p-CoslO5Ge.js → p-tgoTIF6z.js} +3 -3
  229. package/dist/components/{p-CoslO5Ge.js.map → p-tgoTIF6z.js.map} +1 -1
  230. package/dist/components/textarea-component.js +1 -1
  231. package/dist/components/time-period-selector.js +1 -1
  232. package/dist/esm/{abstract-provider-CAByQ1yu.js → abstract-provider-X9hmEFLa.js} +3 -3
  233. package/dist/esm/{abstract-provider-CAByQ1yu.js.map → abstract-provider-X9hmEFLa.js.map} +1 -1
  234. package/dist/esm/calendar-agenda-fill-icon_38.entry.js +9 -9
  235. package/dist/esm/calendar-agenda-fill-icon_38.entry.js.map +1 -1
  236. package/dist/esm/checkbox-group_4.entry.js +3 -3
  237. package/dist/esm/checkmark-icon_15.entry.js +2 -2
  238. package/dist/esm/{customParseFormat-C5X9iZBs.js → customParseFormat-DrYeNeiE.js} +3 -3
  239. package/dist/esm/{customParseFormat-C5X9iZBs.js.map → customParseFormat-DrYeNeiE.js.map} +1 -1
  240. package/dist/esm/globe-icon_3.entry.js +2 -2
  241. package/dist/esm/google-logo-icon_6.entry.js +3 -3
  242. package/dist/esm/index.js +2 -2
  243. package/dist/esm/input-component.entry.js +1 -1
  244. package/dist/esm/input-dropdown_2.entry.js +1 -1
  245. package/dist/esm/multi-select-dropdown.entry.js +1 -1
  246. package/dist/esm/{nylas-api-request-DRpN-bAX.js → nylas-api-request-AONmCQNh.js} +3 -3
  247. package/dist/esm/{nylas-api-request-DRpN-bAX.js.map → nylas-api-request-AONmCQNh.js.map} +1 -1
  248. package/dist/esm/nylas-booked-event-card_11.entry.js +2 -2
  249. package/dist/esm/nylas-form-card.entry.js +2 -2
  250. package/dist/esm/nylas-notification_2.entry.js +1 -1
  251. package/dist/esm/nylas-scheduler-editor.entry.js +4 -4
  252. package/dist/esm/nylas-scheduling.entry.js +3 -3
  253. package/dist/esm/{register-component-BP-GJdVK.js → register-component-BjlxxlMe.js} +3 -3
  254. package/dist/esm/{register-component-BP-GJdVK.js.map → register-component-BjlxxlMe.js.map} +1 -1
  255. package/dist/esm/textarea-component.entry.js +1 -1
  256. package/dist/esm/{utils-A9dwq_ZM.js → utils-B8iY7eY3.js} +11 -11
  257. package/dist/esm/{utils-A9dwq_ZM.js.map → utils-B8iY7eY3.js.map} +1 -1
  258. package/dist/esm/{version-5omo-Q8r.js → version-BXeVyeUj.js} +3 -3
  259. package/dist/esm/{version-5omo-Q8r.js.map → version-BXeVyeUj.js.map} +1 -1
  260. package/dist/nylas-web-elements/index.esm.js +1 -1
  261. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  262. package/dist/nylas-web-elements/{p-d0cbbff8.entry.js → p-20f4278e.entry.js} +2 -2
  263. package/dist/nylas-web-elements/{p-240cb142.entry.js → p-292681a3.entry.js} +2 -2
  264. package/dist/nylas-web-elements/{p-02dfca12.entry.js → p-2cf643e5.entry.js} +2 -2
  265. package/dist/nylas-web-elements/{p-9efaf701.entry.js → p-2e5ddc68.entry.js} +2 -2
  266. package/dist/nylas-web-elements/{p-3f8cca39.entry.js → p-2f787108.entry.js} +2 -2
  267. package/dist/nylas-web-elements/{p-3a892dc9.entry.js → p-46da48ea.entry.js} +2 -2
  268. package/dist/nylas-web-elements/{p-080d42d9.entry.js → p-581f203b.entry.js} +2 -2
  269. package/dist/nylas-web-elements/{p-f344d9c4.entry.js → p-756bf83b.entry.js} +2 -2
  270. package/dist/nylas-web-elements/{p-6e38f35b.entry.js → p-7b6e347e.entry.js} +2 -2
  271. package/dist/nylas-web-elements/{p-5427bc14.entry.js → p-88fee757.entry.js} +3 -3
  272. package/dist/nylas-web-elements/{p-5427bc14.entry.js.map → p-88fee757.entry.js.map} +1 -1
  273. package/dist/nylas-web-elements/{p-CbRMUrkC.js → p-B1edKX4a.js} +2 -2
  274. package/dist/nylas-web-elements/{p-CbRMUrkC.js.map → p-B1edKX4a.js.map} +1 -1
  275. package/dist/nylas-web-elements/{p-A9dwq_ZM.js → p-B8iY7eY3.js} +2 -2
  276. package/dist/nylas-web-elements/{p-A9dwq_ZM.js.map → p-B8iY7eY3.js.map} +1 -1
  277. package/dist/nylas-web-elements/{p-5omo-Q8r.js → p-BXeVyeUj.js} +2 -2
  278. package/dist/nylas-web-elements/{p-5omo-Q8r.js.map → p-BXeVyeUj.js.map} +1 -1
  279. package/dist/nylas-web-elements/{p-uCXCisBZ.js → p-BaQNtGdo.js} +2 -2
  280. package/dist/nylas-web-elements/{p-uCXCisBZ.js.map → p-BaQNtGdo.js.map} +1 -1
  281. package/dist/nylas-web-elements/{p-BUNkAxEd.js → p-DEznk-5Q.js} +2 -2
  282. package/dist/nylas-web-elements/{p-BUNkAxEd.js.map → p-DEznk-5Q.js.map} +1 -1
  283. package/dist/nylas-web-elements/{p-CnLqB-Lc.js → p-ZCLNGrd_.js} +2 -2
  284. package/dist/nylas-web-elements/{p-CnLqB-Lc.js.map → p-ZCLNGrd_.js.map} +1 -1
  285. package/dist/nylas-web-elements/{p-eed68bcb.entry.js → p-c157e947.entry.js} +2 -2
  286. package/dist/nylas-web-elements/{p-e13ed4e9.entry.js → p-c8025a87.entry.js} +2 -2
  287. package/dist/nylas-web-elements/{p-80b69e76.entry.js → p-cd365b9c.entry.js} +2 -2
  288. package/dist/nylas-web-elements/{p-0e011ed4.entry.js → p-d246e20e.entry.js} +2 -2
  289. package/dist/types/version.d.ts +1 -1
  290. package/package.json +2 -2
  291. package/dist/components/p-DzIz09Sr.js.map +0 -1
  292. /package/dist/nylas-web-elements/{p-d0cbbff8.entry.js.map → p-20f4278e.entry.js.map} +0 -0
  293. /package/dist/nylas-web-elements/{p-240cb142.entry.js.map → p-292681a3.entry.js.map} +0 -0
  294. /package/dist/nylas-web-elements/{p-02dfca12.entry.js.map → p-2cf643e5.entry.js.map} +0 -0
  295. /package/dist/nylas-web-elements/{p-9efaf701.entry.js.map → p-2e5ddc68.entry.js.map} +0 -0
  296. /package/dist/nylas-web-elements/{p-3f8cca39.entry.js.map → p-2f787108.entry.js.map} +0 -0
  297. /package/dist/nylas-web-elements/{p-3a892dc9.entry.js.map → p-46da48ea.entry.js.map} +0 -0
  298. /package/dist/nylas-web-elements/{p-080d42d9.entry.js.map → p-581f203b.entry.js.map} +0 -0
  299. /package/dist/nylas-web-elements/{p-f344d9c4.entry.js.map → p-756bf83b.entry.js.map} +0 -0
  300. /package/dist/nylas-web-elements/{p-6e38f35b.entry.js.map → p-7b6e347e.entry.js.map} +0 -0
  301. /package/dist/nylas-web-elements/{p-eed68bcb.entry.js.map → p-c157e947.entry.js.map} +0 -0
  302. /package/dist/nylas-web-elements/{p-e13ed4e9.entry.js.map → p-c8025a87.entry.js.map} +0 -0
  303. /package/dist/nylas-web-elements/{p-80b69e76.entry.js.map → p-cd365b9c.entry.js.map} +0 -0
  304. /package/dist/nylas-web-elements/{p-0e011ed4.entry.js.map → p-d246e20e.entry.js.map} +0 -0
@@ -3,11 +3,11 @@
3
3
  var u = /* @__PURE__ */ ((r) => (r.Error = "error", r.Warning = "warning", r.Info = "info", r.Success = "success", r))(u || {});
4
4
  const o = (r) => r !== null && typeof r == "object" && "error" in r;
5
5
 
6
- const version = '0.0.0-canary-20251023164535';
6
+ const version = '0.0.0-canary-20251029185136';
7
7
 
8
8
  exports.o = o;
9
9
  exports.u = u;
10
10
  exports.version = version;
11
- //# sourceMappingURL=version-sMNkED66.js.map
11
+ //# sourceMappingURL=version-DTKfJ9pI.js.map
12
12
 
13
- //# sourceMappingURL=version-sMNkED66.js.map
13
+ //# sourceMappingURL=version-DTKfJ9pI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-sMNkED66.js","sources":["../nylas-js-core/dist/index.es.js","src/version.ts"],"sourcesContent":["var t = Object.defineProperty;\nvar c = (r, n, s) => n in r ? t(r, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[n] = s;\nvar a = (r, n, s) => (c(r, typeof n != \"symbol\" ? n + \"\" : n, s), s);\nvar u = /* @__PURE__ */ ((r) => (r.Error = \"error\", r.Warning = \"warning\", r.Info = \"info\", r.Success = \"success\", r))(u || {});\nconst e = (r) => r !== null && typeof r == \"object\" && \"data\" in r, o = (r) => r !== null && typeof r == \"object\" && \"error\" in r;\nclass E extends Error {\n constructor(s) {\n super(s == null ? void 0 : s.message);\n a(this, \"apiError\");\n this.name = \"NylasAPIError\", this.stack = new Error().stack, this.apiError = s;\n }\n}\nexport {\n u as NotificationType,\n E as NylasAPIError,\n o as isNylasErrorResponse,\n e as isNylasSuccessResponse\n};\n","export const version = '0.0.0-canary-20251023164535';\n"],"names":[],"mappings":";;AAGG,IAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,GAAG,OAAO,EAAE,CAAC,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,CAAC,IAAI,GAAG,MAAM,EAAE,CAAC,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE;AACzH,MAA+D,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,IAAI,QAAQ,IAAI,OAAO,IAAI;;ACJzH,MAAM,OAAO,GAAG;;;;;;"}
1
+ {"version":3,"file":"version-DTKfJ9pI.js","sources":["../nylas-js-core/dist/index.es.js","src/version.ts"],"sourcesContent":["var t = Object.defineProperty;\nvar c = (r, n, s) => n in r ? t(r, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[n] = s;\nvar a = (r, n, s) => (c(r, typeof n != \"symbol\" ? n + \"\" : n, s), s);\nvar u = /* @__PURE__ */ ((r) => (r.Error = \"error\", r.Warning = \"warning\", r.Info = \"info\", r.Success = \"success\", r))(u || {});\nconst e = (r) => r !== null && typeof r == \"object\" && \"data\" in r, o = (r) => r !== null && typeof r == \"object\" && \"error\" in r;\nclass E extends Error {\n constructor(s) {\n super(s == null ? void 0 : s.message);\n a(this, \"apiError\");\n this.name = \"NylasAPIError\", this.stack = new Error().stack, this.apiError = s;\n }\n}\nexport {\n u as NotificationType,\n E as NylasAPIError,\n o as isNylasErrorResponse,\n e as isNylasSuccessResponse\n};\n","export const version = '0.0.0-canary-20251029185136';\n"],"names":[],"mappings":";;AAGG,IAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,GAAG,OAAO,EAAE,CAAC,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,CAAC,IAAI,GAAG,MAAM,EAAE,CAAC,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE;AACzH,MAA+D,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,IAAI,QAAQ,IAAI,OAAO,IAAI;;ACJzH,MAAM,OAAO,GAAG;;;;;;"}
@@ -87,6 +87,10 @@
87
87
  display: flex;
88
88
  flex-direction: column;
89
89
  gap: 1rem;
90
+ padding: 1.25rem;
91
+ background: var(--nylas-base-0);
92
+ border: 1px solid var(--nylas-base-200);
93
+ border-radius: var(--nylas-border-radius);
90
94
  }
91
95
  .nylas-specific-time-availability-picker .specific-times-section .section-header {
92
96
  margin: 0 0 0.5rem 0;
@@ -151,13 +155,14 @@
151
155
  }
152
156
  .nylas-specific-time-availability-picker .specific-time-entry .entry-content {
153
157
  display: grid;
154
- grid-template-columns: 180px 1fr 48px 48px;
158
+ grid-template: 1fr auto/auto 1fr;
155
159
  gap: 0.75rem;
156
160
  align-items: center;
157
161
  }
158
162
  @media (max-width: 768px) {
159
163
  .nylas-specific-time-availability-picker .specific-time-entry .entry-content {
160
- grid-template-areas: "date date actions actions" "time_or_unavailable time_or_unavailable time_or_unavailable time_or_unavailable";
164
+ grid-template: unset;
165
+ grid-template-areas: "date" "time_or_unavailable" "actions";
161
166
  grid-template-columns: 1fr auto auto;
162
167
  gap: 0.75rem;
163
168
  }
@@ -233,6 +238,8 @@
233
238
  display: flex;
234
239
  gap: 0.5rem;
235
240
  align-items: center;
241
+ grid-column: 2;
242
+ justify-content: end;
236
243
  }
237
244
  @media (max-width: 768px) {
238
245
  .nylas-specific-time-availability-picker .specific-time-entry .action-buttons {
@@ -45,9 +45,6 @@ export class NylasSpecificTimeAvailabilityPicker {
45
45
  else {
46
46
  this.timezone = this.defaultTimezone;
47
47
  if (this.specificTimesAvailability && this.specificTimesAvailability.length > 0) {
48
- if (this.specificTimesAvailability[0].timezone) {
49
- this.timezone = this.specificTimesAvailability[0].timezone;
50
- }
51
48
  this.loadSpecificTimeAvailability();
52
49
  }
53
50
  }
@@ -62,7 +59,6 @@ export class NylasSpecificTimeAvailabilityPicker {
62
59
  }
63
60
  configChangedHandler(newConfig) {
64
61
  debug('nylas-specific-time-availability-picker', 'configChangedHandler', newConfig);
65
- this.timezone = newConfig?.event_booking?.timezone || this.defaultTimezone;
66
62
  this.loadSpecificTimeAvailability();
67
63
  }
68
64
  selectedLanguageChangedHandler(newVal, oldVal) {
@@ -86,6 +82,9 @@ export class NylasSpecificTimeAvailabilityPicker {
86
82
  if (!this.specificTimesAvailability || this.specificTimesAvailability.length === 0) {
87
83
  return;
88
84
  }
85
+ if (this.specificTimesAvailability[0].timezone) {
86
+ this.timezone = this.specificTimesAvailability[0].timezone;
87
+ }
89
88
  const entries = this.specificTimesAvailability.map((item, index) => {
90
89
  const isUnavailable = item.start === '00:00' && item.end === '00:00';
91
90
  return {
@@ -110,6 +109,7 @@ export class NylasSpecificTimeAvailabilityPicker {
110
109
  startTime: '09:00am',
111
110
  endTime: '05:00pm',
112
111
  isUnavailable: false,
112
+ timezone: this.timezone,
113
113
  };
114
114
  this.specificDateEntries = [...this.specificDateEntries, newEntry];
115
115
  if (this.isInternalsAvailable) {
@@ -298,11 +298,11 @@ export class NylasSpecificTimeAvailabilityPicker {
298
298
  value: key,
299
299
  }));
300
300
  const selectedTimezoneOption = timezoneOptions.find(i => i.value === this.timezone);
301
- return (h(Host, { key: '4b6a324185cbf6839d393acc19b11f64361acbb8' }, h("div", { key: 'a417900b040b3b217d0f40decda22aed4bc8821f', class: "nylas-specific-time-availability-picker", part: "nstap" }, !this.hideHeader && (h("div", { key: 'da38e1f4b9eeb38783788c0fa7717bfa588a3096', class: "header", part: "nstap__header" }, h("h3", { key: '76cbb4fa11106f9bafb8bd4a47eb14df1bb6b56f' }, i18next.t('nylasSpecificTimeAvailabilityPicker.headerTitle')), h("p", { key: 'ae00a798a55d7a5af37d7629b7ac4a7d2a03e70a' }, i18next.t('nylasSpecificTimeAvailabilityPicker.headerDescription'), h("tooltip-component", { key: '380992a0e303b7ebe069103ff7e459e33bc90483' }, h("info-icon", { key: 'af9d0e0bed40218e18e1e4aef8dcf56c2468fa1b', slot: "tooltip-icon" }), h("span", { key: '2c0466d07309720d0b4b508d9a1fe6dec7fe9663', slot: "tooltip-content" }, i18next.t('nylasSpecificTimeAvailabilityPicker.tooltip.desc')))))), h("div", { key: '27586f770bf5089061d1b7f8ff3f728db7d88492', class: "content", part: "nstap__content" }, h("section", { key: '57ac07b7dc143675af32558d380592afdf33fe87', class: "timezone-selector", part: "nstap__timezone-selector", "aria-labelledby": "timezone-header" }, h("h4", { key: 'b83eac967dc606a1409ed2704c7943ac6763ec3e', id: "timezone-header", class: "sub-header" }, i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone')), h("p", { key: 'a44a5a7c999b020ab5499a0213db18631a15e515', class: "timezone-description" }, i18next.t('nylasSpecificTimeAvailabilityPicker.timezoneDescription')), selectedTimezoneOption?.label && (h("select-dropdown", { key: '32439d35b8b4772b60eb81020f9ac548244eaf1b', name: "specific-time-timezone", searchPlaceholder: i18next.t('search'), exportparts: "sd_dropdown: nstap__timezone-container, sd_dropdown-button: nstap__timezone-button, sd_dropdown-content: nstap__timezone-dropdown-content", options: timezoneOptions, defaultSelectedOption: selectedTimezoneOption, themeConfig: this.themeConfig, "aria-label": i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone') }, h("span", { key: 'c68c968c1315dfc96decd3a5b4655f40c9b318e7', slot: "select-icon", "aria-hidden": "true" }, h("globe-icon", { key: '65e524e2b14878743b3cabf72246586294d4be5e', width: "20", height: "20" })))), this.validationErrors['timezone'] && (h("div", { key: 'deac27a9ba3b057fbd85b753adae692575bdb2fd', class: "error-message timezone-error", part: "nstap__error-message", role: "alert", "aria-live": "polite" }, this.validationErrors['timezone']))), h("section", { key: '14a3e3ff86b661f76ecb846fd778a1909dd1a5c6', class: "specific-times-section", part: "nstap__specific-times-section", "aria-labelledby": "specific-times-header" }, h("h4", { key: '52b54e451de09c008e4edc0de39ace9e2ede45db', id: "specific-times-header", class: "section-header" }, i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesHeader')), h("p", { key: '71b6d02e29a32a4712c8108d5278540614292e4f', class: "section-description" }, i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesDescription')), h("div", { key: 'c99b1a4671655b161b887bc1bf5ac4d22107f345', class: "specific-times", part: "nstap__specific-times", role: "list" }, this.specificDateEntries.length === 0 ? (h("div", { class: "empty-state", part: "nstap__empty-state" }, h("div", { class: "empty-icon", part: "nstap__empty-icon" }, h("calendar-icon", { width: "32", height: "32" })), h("h3", { class: "empty-title", part: "nstap__empty-title" }, i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.title')), h("p", { class: "empty-subtitle", part: "nstap__empty-subtitle" }, i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.subtitle')))) : (this.specificDateEntries.map((entry, index) => (h("article", { class: "specific-time-entry", part: "nstap__specific-time-entry", key: entry.id, "data-entry-id": entry.id, role: "listitem", "aria-label": `Specific time availability entry ${index + 1}` }, h("div", { class: "entry-content", part: "nstap__entry-content" }, h("div", { class: "date-input-container", part: "nstap__date-input-container" }, h("nylas-date-component", { name: `date-${entry.id}`, defaultValue: entry.date, placeholder: "yyyy-mm-dd", part: "nstap__date-input", class: "date-input", themeConfig: this.themeConfig, exportparts: "ic__date: nstap__date-field, ic__input_wrapper: nstap__date-wrapper, ic__label: nstap__date-label", "aria-label": `Date for entry ${index + 1}` })), entry.isUnavailable ? (h("div", { class: "unavailable-text", part: "nstap__unavailable-text", role: "status" }, h("span", { class: "unavailable-label" }, i18next.t('nylasSpecificTimeAvailabilityPicker.entireDayUnavailable')))) : (h("div", { class: "time-pickers", part: "nstap__time-pickers", role: "group", "aria-label": "Time range" }, h("nylas-time-window-picker", { id: `${entry.id}_start`, time: entry.startTime, name: `${entry.id}_start`, key: `${entry.id}_start`, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times", "aria-label": `Start time for entry ${index + 1}` }), h("span", { class: "time-separator", "aria-hidden": "true" }, "-"), h("nylas-time-window-picker", { id: `${entry.id}_end`, time: entry.endTime, name: `${entry.id}_end`, key: `${entry.id}_end`, minimumStartTime: entry.startTime, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times", "aria-label": `End time for entry ${index + 1}` }))), h("div", { class: "action-buttons", part: "nstap__action-buttons" }, h("button", { type: "button", class: { 'toggle-button': true, 'unavailable': entry.isUnavailable }, part: "nstap__toggle-button", onClick: () => this.toggleAvailability(entry.id), "aria-label": entry.isUnavailable
301
+ return (h(Host, { key: 'b56cf3671b9ef2477f805bb01f2e944a08bf2ff0' }, h("div", { key: '8d424bbb73e97025f70af823dec9173776a77de8', class: "nylas-specific-time-availability-picker", part: "nstap" }, !this.hideHeader && (h("div", { key: '976f0dca6b414a5b39b94d52f0e137466cc006f1', class: "header", part: "nstap__header" }, h("h3", { key: '927dc716d64f2dbb0f8e90ea84238dfa56c61111' }, i18next.t('nylasSpecificTimeAvailabilityPicker.headerTitle')), h("p", { key: '0de35c5ffcc313006eebb0a725522b33d1be3391' }, i18next.t('nylasSpecificTimeAvailabilityPicker.headerDescription'), h("tooltip-component", { key: '0607c65fc0862707c285d03270d351f4906d7596' }, h("info-icon", { key: '34dfe76c1674fbcbbf4ca27fc7eac2a0094a2aec', slot: "tooltip-icon" }), h("span", { key: 'f79ef4f5a1a1acab6b03a548a55759e0860f7e9d', slot: "tooltip-content" }, i18next.t('nylasSpecificTimeAvailabilityPicker.tooltip.desc')))))), h("div", { key: 'f304921adad62e29ed90fdb918864ec480ac6b57', class: "content", part: "nstap__content" }, h("section", { key: 'a770d923bfee31267666e1b9e7d51123f22ab781', class: "timezone-selector", part: "nstap__timezone-selector", "aria-labelledby": "timezone-header" }, h("h4", { key: '7968b6ebcbf2e0c19aab1232dd514335f40fbecf', id: "timezone-header", class: "sub-header" }, i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone')), h("p", { key: 'a5a891bb9685ac00feb62d499615f8c40e18819f', class: "timezone-description" }, i18next.t('nylasSpecificTimeAvailabilityPicker.timezoneDescription')), selectedTimezoneOption?.label && (h("select-dropdown", { key: 'bdaa571da2e4d18cc8bcfbedb57605bd0589517f', name: "specific-time-timezone", searchPlaceholder: i18next.t('search'), exportparts: "sd_dropdown: nstap__timezone-container, sd_dropdown-button: nstap__timezone-button, sd_dropdown-content: nstap__timezone-dropdown-content", options: timezoneOptions, defaultSelectedOption: selectedTimezoneOption, themeConfig: this.themeConfig, "aria-label": i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone') }, h("span", { key: '33bb2df3bf655e9b833ad0d8a669a7bd5a45dad1', slot: "select-icon", "aria-hidden": "true" }, h("globe-icon", { key: '589beedc4d5dc5f1bf163b1d7c63dd0373a06c1f', width: "20", height: "20" })))), this.validationErrors['timezone'] && (h("div", { key: 'f434eab051b5350c8176c63359c4c718b8a3fc1c', class: "error-message timezone-error", part: "nstap__error-message", role: "alert", "aria-live": "polite" }, this.validationErrors['timezone']))), h("section", { key: '3faa00e31c27e23461ede7b0e0e49f22cf2e32a2', class: "specific-times-section", part: "nstap__specific-times-section", "aria-labelledby": "specific-times-header" }, h("h4", { key: '145b8dfeeaf35e9cb7149a461b956e1648a6c401', id: "specific-times-header", class: "section-header" }, i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesHeader')), h("p", { key: '5cd0509861f4b5bcb323fc70fac98fc4f5ee736f', class: "section-description" }, i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesDescription')), h("div", { key: '72126f5b9ed3c5fc75b8bec3a72aa1d188cc1761', class: "specific-times", part: "nstap__specific-times", role: "list" }, this.specificDateEntries.length === 0 ? (h("div", { class: "empty-state", part: "nstap__empty-state" }, h("div", { class: "empty-icon", part: "nstap__empty-icon" }, h("calendar-icon", { width: "32", height: "32" })), h("h3", { class: "empty-title", part: "nstap__empty-title" }, i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.title')), h("p", { class: "empty-subtitle", part: "nstap__empty-subtitle" }, i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.subtitle')))) : (this.specificDateEntries.map((entry, index) => (h("article", { class: "specific-time-entry", part: "nstap__specific-time-entry", key: entry.id, "data-entry-id": entry.id, role: "listitem", "aria-label": `Specific time availability entry ${index + 1}` }, h("div", { class: "entry-content", part: "nstap__entry-content" }, h("div", { class: "date-input-container", part: "nstap__date-input-container" }, h("nylas-date-component", { name: `date-${entry.id}`, defaultValue: entry.date, placeholder: "yyyy-mm-dd", part: "nstap__date-input", class: "date-input", themeConfig: this.themeConfig, exportparts: "ic__date: nstap__date-field, ic__input_wrapper: nstap__date-wrapper, ic__label: nstap__date-label", "aria-label": `Date for entry ${index + 1}` })), entry.isUnavailable ? (h("div", { class: "unavailable-text", part: "nstap__unavailable-text", role: "status" }, h("span", { class: "unavailable-label" }, i18next.t('nylasSpecificTimeAvailabilityPicker.entireDayUnavailable')))) : (h("div", { class: "time-pickers", part: "nstap__time-pickers", role: "group", "aria-label": "Time range" }, h("nylas-time-window-picker", { id: `${entry.id}_start`, time: entry.startTime, name: `${entry.id}_start`, key: `${entry.id}_start`, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times", "aria-label": `Start time for entry ${index + 1}` }), h("span", { class: "time-separator", "aria-hidden": "true" }, "-"), h("nylas-time-window-picker", { id: `${entry.id}_end`, time: entry.endTime, name: `${entry.id}_end`, key: `${entry.id}_end`, minimumStartTime: entry.startTime, language: this.selectedLanguage, hasError: !!this.validationErrors[entry.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times", "aria-label": `End time for entry ${index + 1}` }))), h("div", { class: "action-buttons", part: "nstap__action-buttons" }, h("button", { type: "button", class: { 'toggle-button': true, 'unavailable': entry.isUnavailable }, part: "nstap__toggle-button", onClick: () => this.toggleAvailability(entry.id), "aria-label": entry.isUnavailable
302
302
  ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')
303
303
  : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable'), title: entry.isUnavailable
304
304
  ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')
305
- : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable') }, h("calendar-icon", { width: "20", height: "20", "aria-hidden": "true" })), h("button", { type: "button", class: "remove-button", part: "nstap__remove-button", onClick: () => this.removeSpecificTimeAvailability(entry.id), "aria-label": `Remove specific time entry ${index + 1}`, title: "Remove" }, h("close-icon", { width: "16", height: "16", "aria-hidden": "true" })))), this.validationErrors[entry.id] && (h("div", { class: "error-message", part: "nstap__error-message", role: "alert", "aria-live": "polite" }, this.validationErrors[entry.id]))))))), h("div", { key: 'c3a8bebaba7b7baff51d35ad343a4741dfbba7b2', class: "add-button-container", part: "nstap__add-button-container" }, h("button-component", { key: 'c8657e7baaee185be6094278c2ebc3448b6b5813', id: "add-specific-time-open-hour", onClick: () => this.addSpecificTimeAvailability(), part: "nstap__add-button", variant: "basic", "aria-label": i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability') }, h("add-circle-icon", { key: 'd7c886d5eef26c42036741afbb47b6d688f25ab9', width: "24", height: "24", "aria-hidden": "true" }), i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability'))))))));
305
+ : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable') }, h("calendar-icon", { width: "20", height: "20", "aria-hidden": "true" })), h("button", { type: "button", class: "remove-button", part: "nstap__remove-button", onClick: () => this.removeSpecificTimeAvailability(entry.id), "aria-label": `Remove specific time entry ${index + 1}`, title: "Remove" }, h("close-icon", { width: "16", height: "16", "aria-hidden": "true" })))), this.validationErrors[entry.id] && (h("div", { class: "error-message", part: "nstap__error-message", role: "alert", "aria-live": "polite" }, this.validationErrors[entry.id]))))))), h("div", { key: '278a369986549c3ab2aa58ec78102e01d38481af', class: "add-button-container", part: "nstap__add-button-container" }, h("button-component", { key: '347c13d656b732ca52035e47b78438ba3a977396', id: "add-specific-time-open-hour", onClick: () => this.addSpecificTimeAvailability(), part: "nstap__add-button", variant: "basic", "aria-label": i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability') }, h("add-circle-icon", { key: '9dd3f2707d6420c2019cea00d47f1c8a679745d6', width: "24", height: "24", "aria-hidden": "true" }), i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability'))))))));
306
306
  }
307
307
  static get is() { return "nylas-specific-time-availability-picker"; }
308
308
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"nylas-specific-time-availability-picker.js","sourceRoot":"","sources":["../../../../../src/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9H,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIjE,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM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C/C,YAAY,EAAE,IAAI,GAAG,CAAC;YACpB,CAAC,uCAAuC,EAAE,uBAAuB,CAAC;YAClE,CAAC,kCAAkC,EAAE,kBAAkB,CAAC;YACxD,CAAC,6BAA6B,EAAE,aAAa,CAAC;SAC/C,CAAC;QACF,iBAAiB,EAAE,IAAI;KACxB,CAAC;;;;iEAsLD","sourcesContent":["import { AttachInternals, Component, Element, Event, EventEmitter, h, Host, Prop, Watch, State, Listen } from '@stencil/core';\nimport { RegisterComponent } from '@/common/register-component';\nimport { LANGUAGE_CODE, TIMEZONE_MAP } from '@/common/constants';\nimport { Configuration, SpecificTimeAvailability, ThemeConfig } from '@nylas/core';\nimport { NylasSchedulerConfigConnector } from '@/connector/nylas-scheduler-config-connector';\nimport { NylasSchedulerEditor } from '../nylas-scheduler-editor/nylas-scheduler-editor';\nimport { debug, convertTo12HourFormat, convertTo24HourFormat, timeToMinutes } from '@/utils/utils';\nimport i18next from '@/utils/i18n';\n\n@Component({\n tag: 'nylas-specific-time-availability-picker',\n styleUrl: 'nylas-specific-time-availability-picker.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NylasSpecificTimeAvailabilityPicker {\n /**\n * The element <nylas-specific-time-availability-picker> itself.\n */\n @Element() host!: HTMLNylasSpecificTimeAvailabilityPickerElement;\n\n /**\n * @standalone\n * The name of the specific date availability picker.\n */\n @Prop() name: string = 'specific-time-availability';\n\n /**\n * @standalone\n * The selected configuration.\n */\n @Prop() selectedConfiguration?: Configuration;\n\n /**\n * @standalone\n * The selected language.\n */\n @Prop() selectedLanguage?: LANGUAGE_CODE;\n\n /**\n * @standalone\n * The specific date open hours.\n */\n @Prop() specificTimesAvailability?: SpecificTimeAvailability[];\n\n /**\n * @standalone\n * The theme configuration.\n */\n @Prop({ attribute: 'theme-config' }) readonly themeConfig?: ThemeConfig;\n\n /**\n * @standalone\n * Hide the header of the specific time availability picker.\n */\n @Prop() hideHeader: boolean = false;\n\n /**\n * @standalone\n * The default timezone or preset timezone.\n */\n @Prop() defaultTimezone: string = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\n /**\n * @standalone\n * The element internals.\n */\n @AttachInternals() internals!: ElementInternals;\n\n /**\n * The event is fired when the specific date open hours change.\n */\n @Event() valueChanged!: EventEmitter<{\n value: string;\n name: string;\n }>;\n\n /**\n * Internal state for managing specific date entries\n */\n @State() specificDateEntries: Array<{\n id: string;\n date: string;\n startTime: string;\n endTime: string;\n isUnavailable: boolean;\n }> = [];\n\n /**\n * State for tracking validation errors\n */\n @State() validationErrors: { [key: string]: string } = {};\n\n /**\n * The selected timezone state.\n */\n @State() timezone: string = '';\n\n connectedCallback() {\n debug('nylas-specific-time-availability-picker', 'connectedCallback');\n }\n\n disconnectedCallback() {\n debug('nylas-specific-time-availability-picker', 'disconnectedCallback');\n }\n\n componentWillLoad() {\n debug('nylas-specific-time-availability-picker', 'componentWillLoad');\n this.host.setAttribute('name', this.name);\n }\n\n componentDidLoad() {\n debug('nylas-specific-time-availability-picker', 'componentDidLoad');\n\n // Initialize timezone\n if (this.selectedConfiguration) {\n this.timezone = this.selectedConfiguration?.event_booking?.timezone || this.defaultTimezone;\n this.configChangedHandler(this.selectedConfiguration);\n } else {\n this.timezone = this.defaultTimezone;\n if (this.specificTimesAvailability && this.specificTimesAvailability.length > 0) {\n // If timezone is provided in the first entry, use it\n if (this.specificTimesAvailability[0].timezone) {\n this.timezone = this.specificTimesAvailability[0].timezone;\n }\n this.loadSpecificTimeAvailability();\n }\n }\n\n this.applyThemeConfig(this.themeConfig);\n }\n\n get isInternalsAvailable() {\n return typeof this.internals.setFormValue === 'function';\n }\n\n /**\n * When a name prop is passed, stencil does not automatically set the name attribute on the host element.\n * Since this component is form-associated, the name attribute is required for form submission.\n * This is a workaround to ensure that the name attribute is set on the host element.\n */\n @Watch('name')\n elementNameChangedHandler(newValue: string) {\n debug('nylas-specific-time-availability-picker', 'elementNameChangedHandler', newValue);\n this.host.setAttribute('name', newValue);\n }\n\n @Watch('selectedConfiguration')\n configChangedHandler(newConfig: Configuration) {\n debug('nylas-specific-time-availability-picker', 'configChangedHandler', newConfig);\n // Update timezone from configuration\n this.timezone = newConfig?.event_booking?.timezone || this.defaultTimezone;\n // Load specific date open hours from the configuration participants\n this.loadSpecificTimeAvailability();\n }\n\n @Watch('selectedLanguage')\n selectedLanguageChangedHandler(newVal: LANGUAGE_CODE, oldVal: LANGUAGE_CODE) {\n if (newVal === oldVal) return;\n i18next.changeLanguage(newVal);\n }\n\n @Watch('themeConfig')\n themeConfigChangedHandler(newVal: ThemeConfig, oldVal: ThemeConfig) {\n if (newVal === oldVal) return;\n this.applyThemeConfig(newVal);\n }\n\n applyThemeConfig(themeConfig?: ThemeConfig) {\n if (themeConfig) {\n for (const [key, value] of Object.entries(themeConfig)) {\n this.host.style.setProperty(`${key}`, value);\n }\n }\n }\n\n loadSpecificTimeAvailability() {\n if (!this.specificTimesAvailability || this.specificTimesAvailability.length === 0) {\n return;\n }\n\n const entries = this.specificTimesAvailability.map((item, index) => {\n // Check if both start and end are \"00:00\" - this indicates an unavailable day\n const isUnavailable = item.start === '00:00' && item.end === '00:00';\n\n return {\n id: `specific-time-${index}`,\n date: item.date,\n startTime: isUnavailable ? '09:00am' : convertTo12HourFormat(item.start),\n endTime: isUnavailable ? '05:00pm' : convertTo12HourFormat(item.end),\n isUnavailable,\n };\n });\n\n this.specificDateEntries = entries;\n this.emitValueChanged();\n }\n\n addSpecificTimeAvailability() {\n // Initialize with incremental dates based on existing entries\n // First entry: today, second entry: tomorrow, third entry: day after, etc.\n const today = new Date();\n const targetDate = new Date(today);\n targetDate.setDate(today.getDate() + this.specificDateEntries.length);\n const formattedDate = targetDate.toISOString().split('T')[0];\n\n const newEntry = {\n id: `specific-time-${Date.now()}`,\n date: formattedDate,\n startTime: '09:00am',\n endTime: '05:00pm',\n isUnavailable: false,\n };\n\n this.specificDateEntries = [...this.specificDateEntries, newEntry];\n\n // Clear any global validation errors since we're adding a new valid entry\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n\n this.emitValueChanged();\n }\n\n removeSpecificTimeAvailability(id: string) {\n this.specificDateEntries = this.specificDateEntries.filter(entry => entry.id !== id);\n\n // Clear validation error for the removed entry\n if (this.validationErrors[id]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[id];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n\n toggleAvailability(id: string) {\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === id) {\n return { ...entry, isUnavailable: !entry.isUnavailable };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry since availability state changed\n if (this.validationErrors[id]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[id];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n\n /**\n * Validates a single date entry\n */\n validateEntry(entry: (typeof this.specificDateEntries)[0]): string | null {\n // Check if date is empty or invalid\n if (!entry.date) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.dateRequired');\n }\n\n const dateObj = new Date(entry.date);\n if (isNaN(dateObj.getTime())) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.invalidDateFormat');\n }\n\n // If unavailable, no need to validate times\n if (entry.isUnavailable) {\n return null;\n }\n\n // Validate start and end times are present\n if (!entry.startTime || !entry.endTime) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.timesRequired');\n }\n\n // Validate start time is before end time\n const startMinutes = timeToMinutes(entry.startTime);\n const endMinutes = timeToMinutes(entry.endTime);\n\n if (startMinutes >= endMinutes) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.startTimeBeforeEndTime');\n }\n\n return null;\n }\n\n /**\n * Validates that timezone is set when there are entries\n */\n validateTimezone(): string | null {\n if (this.specificDateEntries.length > 0 && !this.timezone) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.timezoneRequired');\n }\n return null;\n }\n\n /**\n * Validates all entries and updates validation state\n */\n validateAllEntries() {\n const errors: { [key: string]: string } = {};\n let hasErrors = false;\n\n // Validate timezone first\n const timezoneError = this.validateTimezone();\n if (timezoneError) {\n errors['timezone'] = timezoneError;\n hasErrors = true;\n }\n\n this.specificDateEntries.forEach(entry => {\n const error = this.validateEntry(entry);\n if (error) {\n errors[entry.id] = error;\n hasErrors = true;\n }\n });\n\n this.validationErrors = errors;\n\n // Update form validity\n if (hasErrors) {\n // Prioritize timezone error, then entry errors\n const firstErrorKey = errors['timezone'] ? 'timezone' : Object.keys(errors)[0];\n const firstErrorElement =\n firstErrorKey === 'timezone'\n ? (this.host.shadowRoot?.querySelector('.timezone-selector') as HTMLElement)\n : (this.host.shadowRoot?.querySelector(`[data-entry-id=\"${firstErrorKey}\"]`) as HTMLElement);\n\n if (this.isInternalsAvailable && firstErrorElement) {\n this.internals.setValidity({ customError: true }, 'Please fix validation errors', firstErrorElement);\n }\n } else {\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n }\n\n return !hasErrors;\n }\n\n @Listen('timeChange')\n handleTimeChange(event: CustomEvent<{ key: string; value: string }>) {\n const { key, value } = event.detail;\n const [entryId, timeType] = key.split('_');\n\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === entryId) {\n return {\n ...entry,\n [timeType === 'start' ? 'startTime' : 'endTime']: value,\n };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry\n if (this.validationErrors[entryId]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n }\n\n // Clear form validity errors related to time\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n\n this.emitValueChanged();\n }\n\n @Listen('timeWindowFormError')\n setFormError(event: CustomEvent<{ key: string; message: string }>) {\n const { key, message } = event.detail;\n const [entryId] = key.split('_');\n\n if (message) {\n // Set validation error for this entry\n this.validationErrors = {\n ...this.validationErrors,\n [entryId]: message,\n };\n\n const element = this.host.shadowRoot?.getElementById(key);\n if (element && this.isInternalsAvailable) {\n this.internals.setValidity({ customError: true }, message, element as HTMLInputElement);\n }\n } else {\n // Clear validation error for this entry\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n }\n }\n\n @Listen('nylasFormDropdownChanged')\n nylasFormDropdownChangedHandler(\n event: CustomEvent<{\n value: string;\n name: string;\n }>,\n ) {\n const { name, value } = event.detail;\n if (name === 'specific-time-timezone') {\n this.timezone = value;\n\n // Clear timezone validation error if it exists\n if (this.validationErrors['timezone']) {\n const newErrors = { ...this.validationErrors };\n delete newErrors['timezone'];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n }\n\n @Listen('nylasFormInputChanged')\n handleFormInputChange(event: CustomEvent<{ value: string; name: string; label: string; type: string; error: string }>) {\n const { name, value } = event.detail;\n\n // Check if this is a date input for our component\n if (name.startsWith('date-') && name.includes('specific-time-')) {\n const entryId = name.replace('date-', '');\n\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === entryId) {\n return { ...entry, date: value };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry\n if (this.validationErrors[entryId]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n }\n\n emitValueChanged() {\n // Validate all entries before emitting\n const isValid = this.validateAllEntries();\n\n const specificTimesAvailability = this.specificDateEntries\n .filter(entry => entry.date && (entry.isUnavailable || (entry.startTime && entry.endTime)))\n .map(entry => ({\n date: entry.date,\n start: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.startTime),\n end: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.endTime),\n timezone: this.timezone,\n }));\n\n const value = JSON.stringify(specificTimesAvailability);\n\n if (this.isInternalsAvailable && isValid) {\n this.internals.setFormValue(value, this.name);\n }\n\n this.valueChanged.emit({\n value,\n name: this.name,\n });\n }\n\n @RegisterComponent<NylasSpecificTimeAvailabilityPicker, NylasSchedulerConfigConnector, Exclude<NylasSchedulerEditor['stores'], undefined>>({\n name: 'nylas-specific-time-availability-picker',\n stateToProps: new Map([\n ['schedulerConfig.selectedConfiguration', 'selectedConfiguration'],\n ['schedulerConfig.selectedLanguage', 'selectedLanguage'],\n ['schedulerConfig.themeConfig', 'themeConfig'],\n ]),\n fireRegisterEvent: true,\n })\n render() {\n const timezoneOptions = Object.keys(TIMEZONE_MAP).map(key => ({\n label: TIMEZONE_MAP[key],\n value: key,\n }));\n const selectedTimezoneOption = timezoneOptions.find(i => i.value === this.timezone);\n\n return (\n <Host>\n <div class=\"nylas-specific-time-availability-picker\" part=\"nstap\">\n {!this.hideHeader && (\n <div class=\"header\" part=\"nstap__header\">\n <h3>{i18next.t('nylasSpecificTimeAvailabilityPicker.headerTitle')}</h3>\n <p>\n {i18next.t('nylasSpecificTimeAvailabilityPicker.headerDescription')}\n <tooltip-component>\n <info-icon slot=\"tooltip-icon\" />\n <span slot=\"tooltip-content\">{i18next.t('nylasSpecificTimeAvailabilityPicker.tooltip.desc')}</span>\n </tooltip-component>\n </p>\n </div>\n )}\n <div class=\"content\" part=\"nstap__content\">\n <section class=\"timezone-selector\" part=\"nstap__timezone-selector\" aria-labelledby=\"timezone-header\">\n <h4 id=\"timezone-header\" class=\"sub-header\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone')}\n </h4>\n <p class=\"timezone-description\">{i18next.t('nylasSpecificTimeAvailabilityPicker.timezoneDescription')}</p>\n {selectedTimezoneOption?.label && (\n <select-dropdown\n name=\"specific-time-timezone\"\n searchPlaceholder={i18next.t('search')}\n exportparts=\"sd_dropdown: nstap__timezone-container, sd_dropdown-button: nstap__timezone-button, sd_dropdown-content: nstap__timezone-dropdown-content\"\n options={timezoneOptions}\n defaultSelectedOption={selectedTimezoneOption}\n themeConfig={this.themeConfig}\n aria-label={i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone')}\n >\n <span slot=\"select-icon\" aria-hidden=\"true\">\n <globe-icon width=\"20\" height=\"20\" />\n </span>\n </select-dropdown>\n )}\n {this.validationErrors['timezone'] && (\n <div class=\"error-message timezone-error\" part=\"nstap__error-message\" role=\"alert\" aria-live=\"polite\">\n {this.validationErrors['timezone']}\n </div>\n )}\n </section>\n <section class=\"specific-times-section\" part=\"nstap__specific-times-section\" aria-labelledby=\"specific-times-header\">\n <h4 id=\"specific-times-header\" class=\"section-header\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesHeader')}\n </h4>\n <p class=\"section-description\">{i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesDescription')}</p>\n <div class=\"specific-times\" part=\"nstap__specific-times\" role=\"list\">\n {this.specificDateEntries.length === 0 ? (\n <div class=\"empty-state\" part=\"nstap__empty-state\">\n <div class=\"empty-icon\" part=\"nstap__empty-icon\">\n <calendar-icon width=\"32\" height=\"32\" />\n </div>\n <h3 class=\"empty-title\" part=\"nstap__empty-title\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.title')}\n </h3>\n <p class=\"empty-subtitle\" part=\"nstap__empty-subtitle\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.subtitle')}\n </p>\n </div>\n ) : (\n this.specificDateEntries.map((entry, index) => (\n <article\n class=\"specific-time-entry\"\n part=\"nstap__specific-time-entry\"\n key={entry.id}\n data-entry-id={entry.id}\n role=\"listitem\"\n aria-label={`Specific time availability entry ${index + 1}`}\n >\n <div class=\"entry-content\" part=\"nstap__entry-content\">\n <div class=\"date-input-container\" part=\"nstap__date-input-container\">\n <nylas-date-component\n name={`date-${entry.id}`}\n defaultValue={entry.date}\n placeholder=\"yyyy-mm-dd\"\n part=\"nstap__date-input\"\n class=\"date-input\"\n themeConfig={this.themeConfig}\n exportparts=\"ic__date: nstap__date-field, ic__input_wrapper: nstap__date-wrapper, ic__label: nstap__date-label\"\n aria-label={`Date for entry ${index + 1}`}\n />\n </div>\n {entry.isUnavailable ? (\n <div class=\"unavailable-text\" part=\"nstap__unavailable-text\" role=\"status\">\n <span class=\"unavailable-label\">{i18next.t('nylasSpecificTimeAvailabilityPicker.entireDayUnavailable')}</span>\n </div>\n ) : (\n <div class=\"time-pickers\" part=\"nstap__time-pickers\" role=\"group\" aria-label=\"Time range\">\n <nylas-time-window-picker\n id={`${entry.id}_start`}\n time={entry.startTime}\n name={`${entry.id}_start`}\n key={`${entry.id}_start`}\n language={this.selectedLanguage}\n hasError={!!this.validationErrors[entry.id]}\n themeConfig={this.themeConfig}\n exportparts=\"time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times\"\n aria-label={`Start time for entry ${index + 1}`}\n />\n <span class=\"time-separator\" aria-hidden=\"true\">\n -\n </span>\n <nylas-time-window-picker\n id={`${entry.id}_end`}\n time={entry.endTime}\n name={`${entry.id}_end`}\n key={`${entry.id}_end`}\n minimumStartTime={entry.startTime}\n language={this.selectedLanguage}\n hasError={!!this.validationErrors[entry.id]}\n themeConfig={this.themeConfig}\n exportparts=\"time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times\"\n aria-label={`End time for entry ${index + 1}`}\n />\n </div>\n )}\n <div class=\"action-buttons\" part=\"nstap__action-buttons\">\n <button\n type=\"button\"\n class={{ 'toggle-button': true, 'unavailable': entry.isUnavailable }}\n part=\"nstap__toggle-button\"\n onClick={() => this.toggleAvailability(entry.id)}\n aria-label={\n entry.isUnavailable\n ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')\n : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable')\n }\n title={\n entry.isUnavailable\n ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')\n : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable')\n }\n >\n <calendar-icon width=\"20\" height=\"20\" aria-hidden=\"true\" />\n </button>\n <button\n type=\"button\"\n class=\"remove-button\"\n part=\"nstap__remove-button\"\n onClick={() => this.removeSpecificTimeAvailability(entry.id)}\n aria-label={`Remove specific time entry ${index + 1}`}\n title=\"Remove\"\n >\n <close-icon width=\"16\" height=\"16\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n {this.validationErrors[entry.id] && (\n <div class=\"error-message\" part=\"nstap__error-message\" role=\"alert\" aria-live=\"polite\">\n {this.validationErrors[entry.id]}\n </div>\n )}\n </article>\n ))\n )}\n </div>\n <div class=\"add-button-container\" part=\"nstap__add-button-container\">\n <button-component\n id=\"add-specific-time-open-hour\"\n onClick={() => this.addSpecificTimeAvailability()}\n part=\"nstap__add-button\"\n variant=\"basic\"\n aria-label={i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability')}\n >\n <add-circle-icon width=\"24\" height=\"24\" aria-hidden=\"true\" />\n {i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability')}\n </button-component>\n </div>\n </section>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"nylas-specific-time-availability-picker.js","sourceRoot":"","sources":["../../../../../src/components/scheduler-editor/nylas-specific-time-availability-picker/nylas-specific-time-availability-picker.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9H,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIjE,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,OAAO,MAAM,cAAc,CAAC;AAQnC,MAAM,OAAO,mCAAmC;IANhD;QAgBU,SAAI,GAAW,4BAA4B,CAAC;QA8B5C,eAAU,GAAY,KAAK,CAAC;QAM5B,oBAAe,GAAW,IAAI,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ternals, Component, Element, Event, EventEmitter, h, Host, Prop, Watch, State, Listen } from '@stencil/core';\nimport { RegisterComponent } from '@/common/register-component';\nimport { LANGUAGE_CODE, TIMEZONE_MAP } from '@/common/constants';\nimport { Configuration, SpecificTimeAvailability, ThemeConfig } from '@nylas/core';\nimport { NylasSchedulerConfigConnector } from '@/connector/nylas-scheduler-config-connector';\nimport { NylasSchedulerEditor } from '../nylas-scheduler-editor/nylas-scheduler-editor';\nimport { debug, convertTo12HourFormat, convertTo24HourFormat, timeToMinutes } from '@/utils/utils';\nimport i18next from '@/utils/i18n';\n\n@Component({\n tag: 'nylas-specific-time-availability-picker',\n styleUrl: 'nylas-specific-time-availability-picker.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NylasSpecificTimeAvailabilityPicker {\n /**\n * The element <nylas-specific-time-availability-picker> itself.\n */\n @Element() host!: HTMLNylasSpecificTimeAvailabilityPickerElement;\n\n /**\n * @standalone\n * The name of the specific date availability picker.\n */\n @Prop() name: string = 'specific-time-availability';\n\n /**\n * @standalone\n * The selected configuration.\n */\n @Prop() selectedConfiguration?: Configuration;\n\n /**\n * @standalone\n * The selected language.\n */\n @Prop() selectedLanguage?: LANGUAGE_CODE;\n\n /**\n * @standalone\n * The specific date open hours.\n */\n @Prop() specificTimesAvailability?: SpecificTimeAvailability[];\n\n /**\n * @standalone\n * The theme configuration.\n */\n @Prop({ attribute: 'theme-config' }) readonly themeConfig?: ThemeConfig;\n\n /**\n * @standalone\n * Hide the header of the specific time availability picker.\n */\n @Prop() hideHeader: boolean = false;\n\n /**\n * @standalone\n * The default timezone or preset timezone.\n */\n @Prop() defaultTimezone: string = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\n /**\n * @standalone\n * The element internals.\n */\n @AttachInternals() internals!: ElementInternals;\n\n /**\n * The event is fired when the specific date open hours change.\n */\n @Event() valueChanged!: EventEmitter<{\n value: string;\n name: string;\n }>;\n\n /**\n * Internal state for managing specific date entries\n */\n @State() specificDateEntries: Array<{\n id: string;\n date: string;\n startTime: string;\n endTime: string;\n isUnavailable: boolean;\n }> = [];\n\n /**\n * State for tracking validation errors\n */\n @State() validationErrors: { [key: string]: string } = {};\n\n /**\n * The selected timezone state.\n */\n @State() timezone: string = '';\n\n connectedCallback() {\n debug('nylas-specific-time-availability-picker', 'connectedCallback');\n }\n\n disconnectedCallback() {\n debug('nylas-specific-time-availability-picker', 'disconnectedCallback');\n }\n\n componentWillLoad() {\n debug('nylas-specific-time-availability-picker', 'componentWillLoad');\n this.host.setAttribute('name', this.name);\n }\n\n componentDidLoad() {\n debug('nylas-specific-time-availability-picker', 'componentDidLoad');\n\n // Initialize timezone\n if (this.selectedConfiguration) {\n this.timezone = this.selectedConfiguration?.event_booking?.timezone || this.defaultTimezone;\n this.configChangedHandler(this.selectedConfiguration);\n } else {\n this.timezone = this.defaultTimezone;\n if (this.specificTimesAvailability && this.specificTimesAvailability.length > 0) {\n this.loadSpecificTimeAvailability();\n }\n }\n\n this.applyThemeConfig(this.themeConfig);\n }\n\n get isInternalsAvailable() {\n return typeof this.internals.setFormValue === 'function';\n }\n\n /**\n * When a name prop is passed, stencil does not automatically set the name attribute on the host element.\n * Since this component is form-associated, the name attribute is required for form submission.\n * This is a workaround to ensure that the name attribute is set on the host element.\n */\n @Watch('name')\n elementNameChangedHandler(newValue: string) {\n debug('nylas-specific-time-availability-picker', 'elementNameChangedHandler', newValue);\n this.host.setAttribute('name', newValue);\n }\n\n @Watch('selectedConfiguration')\n configChangedHandler(newConfig: Configuration) {\n debug('nylas-specific-time-availability-picker', 'configChangedHandler', newConfig);\n // Load specific date open hours from the configuration participants\n this.loadSpecificTimeAvailability();\n }\n\n @Watch('selectedLanguage')\n selectedLanguageChangedHandler(newVal: LANGUAGE_CODE, oldVal: LANGUAGE_CODE) {\n if (newVal === oldVal) return;\n i18next.changeLanguage(newVal);\n }\n\n @Watch('themeConfig')\n themeConfigChangedHandler(newVal: ThemeConfig, oldVal: ThemeConfig) {\n if (newVal === oldVal) return;\n this.applyThemeConfig(newVal);\n }\n\n applyThemeConfig(themeConfig?: ThemeConfig) {\n if (themeConfig) {\n for (const [key, value] of Object.entries(themeConfig)) {\n this.host.style.setProperty(`${key}`, value);\n }\n }\n }\n\n loadSpecificTimeAvailability() {\n if (!this.specificTimesAvailability || this.specificTimesAvailability.length === 0) {\n return;\n }\n\n // If timezone is provided in the first entry, use it\n if (this.specificTimesAvailability[0].timezone) {\n this.timezone = this.specificTimesAvailability[0].timezone;\n }\n\n const entries = this.specificTimesAvailability.map((item, index) => {\n // Check if both start and end are \"00:00\" - this indicates an unavailable day\n const isUnavailable = item.start === '00:00' && item.end === '00:00';\n\n return {\n id: `specific-time-${index}`,\n date: item.date,\n startTime: isUnavailable ? '09:00am' : convertTo12HourFormat(item.start),\n endTime: isUnavailable ? '05:00pm' : convertTo12HourFormat(item.end),\n isUnavailable,\n };\n });\n\n this.specificDateEntries = entries;\n this.emitValueChanged();\n }\n\n addSpecificTimeAvailability() {\n // Initialize with incremental dates based on existing entries\n // First entry: today, second entry: tomorrow, third entry: day after, etc.\n const today = new Date();\n const targetDate = new Date(today);\n targetDate.setDate(today.getDate() + this.specificDateEntries.length);\n const formattedDate = targetDate.toISOString().split('T')[0];\n\n const newEntry = {\n id: `specific-time-${Date.now()}`,\n date: formattedDate,\n startTime: '09:00am',\n endTime: '05:00pm',\n isUnavailable: false,\n timezone: this.timezone,\n };\n\n this.specificDateEntries = [...this.specificDateEntries, newEntry];\n\n // Clear any global validation errors since we're adding a new valid entry\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n\n this.emitValueChanged();\n }\n\n removeSpecificTimeAvailability(id: string) {\n this.specificDateEntries = this.specificDateEntries.filter(entry => entry.id !== id);\n\n // Clear validation error for the removed entry\n if (this.validationErrors[id]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[id];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n\n toggleAvailability(id: string) {\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === id) {\n return { ...entry, isUnavailable: !entry.isUnavailable };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry since availability state changed\n if (this.validationErrors[id]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[id];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n\n /**\n * Validates a single date entry\n */\n validateEntry(entry: (typeof this.specificDateEntries)[0]): string | null {\n // Check if date is empty or invalid\n if (!entry.date) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.dateRequired');\n }\n\n const dateObj = new Date(entry.date);\n if (isNaN(dateObj.getTime())) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.invalidDateFormat');\n }\n\n // If unavailable, no need to validate times\n if (entry.isUnavailable) {\n return null;\n }\n\n // Validate start and end times are present\n if (!entry.startTime || !entry.endTime) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.timesRequired');\n }\n\n // Validate start time is before end time\n const startMinutes = timeToMinutes(entry.startTime);\n const endMinutes = timeToMinutes(entry.endTime);\n\n if (startMinutes >= endMinutes) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.startTimeBeforeEndTime');\n }\n\n return null;\n }\n\n /**\n * Validates that timezone is set when there are entries\n */\n validateTimezone(): string | null {\n if (this.specificDateEntries.length > 0 && !this.timezone) {\n return i18next.t('nylasSpecificTimeAvailabilityPicker.errors.timezoneRequired');\n }\n return null;\n }\n\n /**\n * Validates all entries and updates validation state\n */\n validateAllEntries() {\n const errors: { [key: string]: string } = {};\n let hasErrors = false;\n\n // Validate timezone first\n const timezoneError = this.validateTimezone();\n if (timezoneError) {\n errors['timezone'] = timezoneError;\n hasErrors = true;\n }\n\n this.specificDateEntries.forEach(entry => {\n const error = this.validateEntry(entry);\n if (error) {\n errors[entry.id] = error;\n hasErrors = true;\n }\n });\n\n this.validationErrors = errors;\n\n // Update form validity\n if (hasErrors) {\n // Prioritize timezone error, then entry errors\n const firstErrorKey = errors['timezone'] ? 'timezone' : Object.keys(errors)[0];\n const firstErrorElement =\n firstErrorKey === 'timezone'\n ? (this.host.shadowRoot?.querySelector('.timezone-selector') as HTMLElement)\n : (this.host.shadowRoot?.querySelector(`[data-entry-id=\"${firstErrorKey}\"]`) as HTMLElement);\n\n if (this.isInternalsAvailable && firstErrorElement) {\n this.internals.setValidity({ customError: true }, 'Please fix validation errors', firstErrorElement);\n }\n } else {\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n }\n\n return !hasErrors;\n }\n\n @Listen('timeChange')\n handleTimeChange(event: CustomEvent<{ key: string; value: string }>) {\n const { key, value } = event.detail;\n const [entryId, timeType] = key.split('_');\n\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === entryId) {\n return {\n ...entry,\n [timeType === 'start' ? 'startTime' : 'endTime']: value,\n };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry\n if (this.validationErrors[entryId]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n }\n\n // Clear form validity errors related to time\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n\n this.emitValueChanged();\n }\n\n @Listen('timeWindowFormError')\n setFormError(event: CustomEvent<{ key: string; message: string }>) {\n const { key, message } = event.detail;\n const [entryId] = key.split('_');\n\n if (message) {\n // Set validation error for this entry\n this.validationErrors = {\n ...this.validationErrors,\n [entryId]: message,\n };\n\n const element = this.host.shadowRoot?.getElementById(key);\n if (element && this.isInternalsAvailable) {\n this.internals.setValidity({ customError: true }, message, element as HTMLInputElement);\n }\n } else {\n // Clear validation error for this entry\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n\n if (this.isInternalsAvailable) {\n this.internals.setValidity({ customError: false });\n }\n }\n }\n\n @Listen('nylasFormDropdownChanged')\n nylasFormDropdownChangedHandler(\n event: CustomEvent<{\n value: string;\n name: string;\n }>,\n ) {\n const { name, value } = event.detail;\n if (name === 'specific-time-timezone') {\n this.timezone = value;\n\n // Clear timezone validation error if it exists\n if (this.validationErrors['timezone']) {\n const newErrors = { ...this.validationErrors };\n delete newErrors['timezone'];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n }\n\n @Listen('nylasFormInputChanged')\n handleFormInputChange(event: CustomEvent<{ value: string; name: string; label: string; type: string; error: string }>) {\n const { name, value } = event.detail;\n\n // Check if this is a date input for our component\n if (name.startsWith('date-') && name.includes('specific-time-')) {\n const entryId = name.replace('date-', '');\n\n this.specificDateEntries = this.specificDateEntries.map(entry => {\n if (entry.id === entryId) {\n return { ...entry, date: value };\n }\n return entry;\n });\n\n // Clear any existing validation error for this entry\n if (this.validationErrors[entryId]) {\n const newErrors = { ...this.validationErrors };\n delete newErrors[entryId];\n this.validationErrors = newErrors;\n }\n\n this.emitValueChanged();\n }\n }\n\n emitValueChanged() {\n // Validate all entries before emitting\n const isValid = this.validateAllEntries();\n\n const specificTimesAvailability = this.specificDateEntries\n .filter(entry => entry.date && (entry.isUnavailable || (entry.startTime && entry.endTime)))\n .map(entry => ({\n date: entry.date,\n start: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.startTime),\n end: entry.isUnavailable ? '00:00' : convertTo24HourFormat(entry.endTime),\n timezone: this.timezone,\n }));\n\n const value = JSON.stringify(specificTimesAvailability);\n\n if (this.isInternalsAvailable && isValid) {\n this.internals.setFormValue(value, this.name);\n }\n\n this.valueChanged.emit({\n value,\n name: this.name,\n });\n }\n\n @RegisterComponent<NylasSpecificTimeAvailabilityPicker, NylasSchedulerConfigConnector, Exclude<NylasSchedulerEditor['stores'], undefined>>({\n name: 'nylas-specific-time-availability-picker',\n stateToProps: new Map([\n ['schedulerConfig.selectedConfiguration', 'selectedConfiguration'],\n ['schedulerConfig.selectedLanguage', 'selectedLanguage'],\n ['schedulerConfig.themeConfig', 'themeConfig'],\n ]),\n fireRegisterEvent: true,\n })\n render() {\n const timezoneOptions = Object.keys(TIMEZONE_MAP).map(key => ({\n label: TIMEZONE_MAP[key],\n value: key,\n }));\n const selectedTimezoneOption = timezoneOptions.find(i => i.value === this.timezone);\n\n return (\n <Host>\n <div class=\"nylas-specific-time-availability-picker\" part=\"nstap\">\n {!this.hideHeader && (\n <div class=\"header\" part=\"nstap__header\">\n <h3>{i18next.t('nylasSpecificTimeAvailabilityPicker.headerTitle')}</h3>\n <p>\n {i18next.t('nylasSpecificTimeAvailabilityPicker.headerDescription')}\n <tooltip-component>\n <info-icon slot=\"tooltip-icon\" />\n <span slot=\"tooltip-content\">{i18next.t('nylasSpecificTimeAvailabilityPicker.tooltip.desc')}</span>\n </tooltip-component>\n </p>\n </div>\n )}\n <div class=\"content\" part=\"nstap__content\">\n <section class=\"timezone-selector\" part=\"nstap__timezone-selector\" aria-labelledby=\"timezone-header\">\n <h4 id=\"timezone-header\" class=\"sub-header\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone')}\n </h4>\n <p class=\"timezone-description\">{i18next.t('nylasSpecificTimeAvailabilityPicker.timezoneDescription')}</p>\n {selectedTimezoneOption?.label && (\n <select-dropdown\n name=\"specific-time-timezone\"\n searchPlaceholder={i18next.t('search')}\n exportparts=\"sd_dropdown: nstap__timezone-container, sd_dropdown-button: nstap__timezone-button, sd_dropdown-content: nstap__timezone-dropdown-content\"\n options={timezoneOptions}\n defaultSelectedOption={selectedTimezoneOption}\n themeConfig={this.themeConfig}\n aria-label={i18next.t('nylasSpecificTimeAvailabilityPicker.selectTimezone')}\n >\n <span slot=\"select-icon\" aria-hidden=\"true\">\n <globe-icon width=\"20\" height=\"20\" />\n </span>\n </select-dropdown>\n )}\n {this.validationErrors['timezone'] && (\n <div class=\"error-message timezone-error\" part=\"nstap__error-message\" role=\"alert\" aria-live=\"polite\">\n {this.validationErrors['timezone']}\n </div>\n )}\n </section>\n <section class=\"specific-times-section\" part=\"nstap__specific-times-section\" aria-labelledby=\"specific-times-header\">\n <h4 id=\"specific-times-header\" class=\"section-header\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesHeader')}\n </h4>\n <p class=\"section-description\">{i18next.t('nylasSpecificTimeAvailabilityPicker.specificTimesDescription')}</p>\n <div class=\"specific-times\" part=\"nstap__specific-times\" role=\"list\">\n {this.specificDateEntries.length === 0 ? (\n <div class=\"empty-state\" part=\"nstap__empty-state\">\n <div class=\"empty-icon\" part=\"nstap__empty-icon\">\n <calendar-icon width=\"32\" height=\"32\" />\n </div>\n <h3 class=\"empty-title\" part=\"nstap__empty-title\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.title')}\n </h3>\n <p class=\"empty-subtitle\" part=\"nstap__empty-subtitle\">\n {i18next.t('nylasSpecificTimeAvailabilityPicker.emptyState.subtitle')}\n </p>\n </div>\n ) : (\n this.specificDateEntries.map((entry, index) => (\n <article\n class=\"specific-time-entry\"\n part=\"nstap__specific-time-entry\"\n key={entry.id}\n data-entry-id={entry.id}\n role=\"listitem\"\n aria-label={`Specific time availability entry ${index + 1}`}\n >\n <div class=\"entry-content\" part=\"nstap__entry-content\">\n <div class=\"date-input-container\" part=\"nstap__date-input-container\">\n <nylas-date-component\n name={`date-${entry.id}`}\n defaultValue={entry.date}\n placeholder=\"yyyy-mm-dd\"\n part=\"nstap__date-input\"\n class=\"date-input\"\n themeConfig={this.themeConfig}\n exportparts=\"ic__date: nstap__date-field, ic__input_wrapper: nstap__date-wrapper, ic__label: nstap__date-label\"\n aria-label={`Date for entry ${index + 1}`}\n />\n </div>\n {entry.isUnavailable ? (\n <div class=\"unavailable-text\" part=\"nstap__unavailable-text\" role=\"status\">\n <span class=\"unavailable-label\">{i18next.t('nylasSpecificTimeAvailabilityPicker.entireDayUnavailable')}</span>\n </div>\n ) : (\n <div class=\"time-pickers\" part=\"nstap__time-pickers\" role=\"group\" aria-label=\"Time range\">\n <nylas-time-window-picker\n id={`${entry.id}_start`}\n time={entry.startTime}\n name={`${entry.id}_start`}\n key={`${entry.id}_start`}\n language={this.selectedLanguage}\n hasError={!!this.validationErrors[entry.id]}\n themeConfig={this.themeConfig}\n exportparts=\"time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times\"\n aria-label={`Start time for entry ${index + 1}`}\n />\n <span class=\"time-separator\" aria-hidden=\"true\">\n -\n </span>\n <nylas-time-window-picker\n id={`${entry.id}_end`}\n time={entry.endTime}\n name={`${entry.id}_end`}\n key={`${entry.id}_end`}\n minimumStartTime={entry.startTime}\n language={this.selectedLanguage}\n hasError={!!this.validationErrors[entry.id]}\n themeConfig={this.themeConfig}\n exportparts=\"time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times\"\n aria-label={`End time for entry ${index + 1}`}\n />\n </div>\n )}\n <div class=\"action-buttons\" part=\"nstap__action-buttons\">\n <button\n type=\"button\"\n class={{ 'toggle-button': true, 'unavailable': entry.isUnavailable }}\n part=\"nstap__toggle-button\"\n onClick={() => this.toggleAvailability(entry.id)}\n aria-label={\n entry.isUnavailable\n ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')\n : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable')\n }\n title={\n entry.isUnavailable\n ? i18next.t('nylasSpecificTimeAvailabilityPicker.markAsAvailable')\n : i18next.t('nylasSpecificTimeAvailabilityPicker.markAsUnavailable')\n }\n >\n <calendar-icon width=\"20\" height=\"20\" aria-hidden=\"true\" />\n </button>\n <button\n type=\"button\"\n class=\"remove-button\"\n part=\"nstap__remove-button\"\n onClick={() => this.removeSpecificTimeAvailability(entry.id)}\n aria-label={`Remove specific time entry ${index + 1}`}\n title=\"Remove\"\n >\n <close-icon width=\"16\" height=\"16\" aria-hidden=\"true\" />\n </button>\n </div>\n </div>\n {this.validationErrors[entry.id] && (\n <div class=\"error-message\" part=\"nstap__error-message\" role=\"alert\" aria-live=\"polite\">\n {this.validationErrors[entry.id]}\n </div>\n )}\n </article>\n ))\n )}\n </div>\n <div class=\"add-button-container\" part=\"nstap__add-button-container\">\n <button-component\n id=\"add-specific-time-open-hour\"\n onClick={() => this.addSpecificTimeAvailability()}\n part=\"nstap__add-button\"\n variant=\"basic\"\n aria-label={i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability')}\n >\n <add-circle-icon width=\"24\" height=\"24\" aria-hidden=\"true\" />\n {i18next.t('nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability')}\n </button-component>\n </div>\n </section>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- export const version = '0.0.0-canary-20251023164535';
1
+ export const version = '0.0.0-canary-20251029185136';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,6BAA6B,CAAC","sourcesContent":["export const version = '0.0.0-canary-20251023164535';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,6BAA6B,CAAC","sourcesContent":["export const version = '0.0.0-canary-20251029185136';\n"]}
@@ -1,7 +1,7 @@
1
1
  import { g as globalScripts } from './p-Bht9ktsW.js';
2
2
  export { a as getAssetPath, r as render, s as setAssetPath, b as setNonce, c as setPlatformOptions } from './p-Bht9ktsW.js';
3
3
  import { c as createStore } from './p-DVWbg8if.js';
4
- export { N as NylasIdentityRequestWrapper } from './p-CoslO5Ge.js';
4
+ export { N as NylasIdentityRequestWrapper } from './p-tgoTIF6z.js';
5
5
 
6
6
  const store = createStore({});
7
7
 
@@ -1,4 +1,4 @@
1
- import { I as InputComponent$1, d as defineCustomElement$1 } from './p-o0D7OIed.js';
1
+ import { I as InputComponent$1, d as defineCustomElement$1 } from './p-DJv7tC9z.js';
2
2
 
3
3
  const InputComponent = InputComponent$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { I as InputImageUrl$1, d as defineCustomElement$1 } from './p-Ck7Utpku.js';
1
+ import { I as InputImageUrl$1, d as defineCustomElement$1 } from './p-C5fHZLWQ.js';
2
2
 
3
3
  const InputImageUrl = InputImageUrl$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { M as MultiSelectDropdown$1, d as defineCustomElement$1 } from './p-DFnXfDS7.js';
1
+ import { M as MultiSelectDropdown$1, d as defineCustomElement$1 } from './p-DbjQjOKi.js';
2
2
 
3
3
  const MultiSelectDropdown = MultiSelectDropdown$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasAdditionalParticipants$1, d as defineCustomElement$1 } from './p-D5WcQ7s2.js';
1
+ import { N as NylasAdditionalParticipants$1, d as defineCustomElement$1 } from './p-DTlpOiw-.js';
2
2
 
3
3
  const NylasAdditionalParticipants = NylasAdditionalParticipants$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasAvailabilityPicker$1, d as defineCustomElement$1 } from './p-DEF0WG29.js';
1
+ import { N as NylasAvailabilityPicker$1, d as defineCustomElement$1 } from './p-DHlJz5qn.js';
2
2
 
3
3
  const NylasAvailabilityPicker = NylasAvailabilityPicker$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasBookedEventCard$1, d as defineCustomElement$1 } from './p-C_9WoSFK.js';
1
+ import { N as NylasBookedEventCard$1, d as defineCustomElement$1 } from './p-D3xYUjJI.js';
2
2
 
3
3
  const NylasBookedEventCard = NylasBookedEventCard$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasBookingCalendarPicker$1, d as defineCustomElement$1 } from './p-CJXT074p.js';
1
+ import { N as NylasBookingCalendarPicker$1, d as defineCustomElement$1 } from './p-BnrCrrsE.js';
2
2
 
3
3
  const NylasBookingCalendarPicker = NylasBookingCalendarPicker$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasBookingConfirmationRedirect$1, d as defineCustomElement$1 } from './p-DP1P7gC9.js';
1
+ import { N as NylasBookingConfirmationRedirect$1, d as defineCustomElement$1 } from './p-D9PED7bs.js';
2
2
 
3
3
  const NylasBookingConfirmationRedirect = NylasBookingConfirmationRedirect$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasBookingConfirmationType$1, d as defineCustomElement$1 } from './p-DLdTazaE.js';
1
+ import { N as NylasBookingConfirmationType$1, d as defineCustomElement$1 } from './p-MYEzIAsT.js';
2
2
 
3
3
  const NylasBookingConfirmationType = NylasBookingConfirmationType$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasBookingFormConfig$1, d as defineCustomElement$1 } from './p-C7Gn7-GK.js';
1
+ import { N as NylasBookingFormConfig$1, d as defineCustomElement$1 } from './p-DRd9V7vZ.js';
2
2
 
3
3
  const NylasBookingFormConfig = NylasBookingFormConfig$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasBookingForm$1, d as defineCustomElement$1 } from './p-PGZfpcsW.js';
1
+ import { N as NylasBookingForm$1, d as defineCustomElement$1 } from './p-Bspl8yuu.js';
2
2
 
3
3
  const NylasBookingForm = NylasBookingForm$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasBufferTime$1, d as defineCustomElement$1 } from './p-CIZt1hbc.js';
1
+ import { N as NylasBufferTime$1, d as defineCustomElement$1 } from './p-CS7dGt1R.js';
2
2
 
3
3
  const NylasBufferTime = NylasBufferTime$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasCalendarPicker$1, d as defineCustomElement$1 } from './p-Ckv0Bcus.js';
1
+ import { N as NylasCalendarPicker$1, d as defineCustomElement$1 } from './p-Dp5o78QS.js';
2
2
 
3
3
  const NylasCalendarPicker = NylasCalendarPicker$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasCancelBookingForm$1, d as defineCustomElement$1 } from './p-BJIdbu1H.js';
1
+ import { N as NylasCancelBookingForm$1, d as defineCustomElement$1 } from './p-CHGzZc5-.js';
2
2
 
3
3
  const NylasCancelBookingForm = NylasCancelBookingForm$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasCancellationPolicy$1, d as defineCustomElement$1 } from './p-Dy9AIDSW.js';
1
+ import { N as NylasCancellationPolicy$1, d as defineCustomElement$1 } from './p-DAmas3F9.js';
2
2
 
3
3
  const NylasCancellationPolicy = NylasCancellationPolicy$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasCancelledEventCard$1, d as defineCustomElement$1 } from './p-auB3ZoWP.js';
1
+ import { N as NylasCancelledEventCard$1, d as defineCustomElement$1 } from './p-DWkUeMm6.js';
2
2
 
3
3
  const NylasCancelledEventCard = NylasCancelledEventCard$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasConfirmationEmail$1, d as defineCustomElement$1 } from './p-C3quV8UM.js';
1
+ import { N as NylasConfirmationEmail$1, d as defineCustomElement$1 } from './p-CI0FKgAJ.js';
2
2
 
3
3
  const NylasConfirmationEmail = NylasConfirmationEmail$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasConfirmedEventCard$1, d as defineCustomElement$1 } from './p-D3EFT5f-.js';
1
+ import { N as NylasConfirmedEventCard$1, d as defineCustomElement$1 } from './p-DmYbjMxT.js';
2
2
 
3
3
  const NylasConfirmedEventCard = NylasConfirmedEventCard$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasConnectedCalendars$1, d as defineCustomElement$1 } from './p-rernVjNw.js';
1
+ import { N as NylasConnectedCalendars$1, d as defineCustomElement$1 } from './p-C7CSS14_.js';
2
2
 
3
3
  const NylasConnectedCalendars = NylasConnectedCalendars$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasCustomBookingFlow$1, d as defineCustomElement$1 } from './p-CAlTvMv3.js';
1
+ import { N as NylasCustomBookingFlow$1, d as defineCustomElement$1 } from './p-DkJ3N73P.js';
2
2
 
3
3
  const NylasCustomBookingFlow = NylasCustomBookingFlow$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasCustomEventSlug$1, d as defineCustomElement$1 } from './p-D4OZzddo.js';
1
+ import { N as NylasCustomEventSlug$1, d as defineCustomElement$1 } from './p-F1_K10Bc.js';
2
2
 
3
3
  const NylasCustomEventSlug = NylasCustomEventSlug$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasCustomizeBookingSettings$1, d as defineCustomElement$1 } from './p-D6E0vp2X.js';
1
+ import { N as NylasCustomizeBookingSettings$1, d as defineCustomElement$1 } from './p-BfdTgv37.js';
2
2
 
3
3
  const NylasCustomizeBookingSettings = NylasCustomizeBookingSettings$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasDateComponent$1, d as defineCustomElement$1 } from './p-bbx04OZB.js';
1
+ import { N as NylasDateComponent$1, d as defineCustomElement$1 } from './p-UTtjPYki.js';
2
2
 
3
3
  const NylasDateComponent = NylasDateComponent$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasDatePicker$1, d as defineCustomElement$1 } from './p-BnsOCm71.js';
1
+ import { N as NylasDatePicker$1, d as defineCustomElement$1 } from './p-D5KNDDuK.js';
2
2
 
3
3
  const NylasDatePicker = NylasDatePicker$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasDisableEmails$1, d as defineCustomElement$1 } from './p-BQaskvNx.js';
1
+ import { N as NylasDisableEmails$1, d as defineCustomElement$1 } from './p-DciJgP0N.js';
2
2
 
3
3
  const NylasDisableEmails = NylasDisableEmails$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasEditorTabsGroup$1, d as defineCustomElement$1 } from './p-DiCCKLqS.js';
1
+ import { N as NylasEditorTabsGroup$1, d as defineCustomElement$1 } from './p-C9m4ME75.js';
2
2
 
3
3
  const NylasEditorTabsGroup = NylasEditorTabsGroup$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasEditorTabs$1, d as defineCustomElement$1 } from './p-DyOLurnZ.js';
1
+ import { N as NylasEditorTabs$1, d as defineCustomElement$1 } from './p-BYzuAGXU.js';
2
2
 
3
3
  const NylasEditorTabs = NylasEditorTabs$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasEventCalendar$1, d as defineCustomElement$1 } from './p-DHJAvIzJ.js';
1
+ import { N as NylasEventCalendar$1, d as defineCustomElement$1 } from './p-t4Pprf0f.js';
2
2
 
3
3
  const NylasEventCalendar = NylasEventCalendar$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { N as NylasEventCapacity$1, d as defineCustomElement$1 } from './p-BnKgaDIm.js';
1
+ import { N as NylasEventCapacity$1, d as defineCustomElement$1 } from './p-BnU07kVV.js';
2
2
 
3
3
  const NylasEventCapacity = NylasEventCapacity$1;
4
4
  const defineCustomElement = defineCustomElement$1;