@nylas/react 1.1.7 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/dist/add-circle-icon.entry-0f0cd6d8.cjs +1 -0
  2. package/dist/add-circle-icon.entry-d2b7178c.js +15 -0
  3. package/dist/{archive-icon.entry-769e863b.js → archive-icon.entry-602d3c58.js} +1 -1
  4. package/dist/{archive-icon.entry-10ebbf9a.cjs → archive-icon.entry-ec25f93a.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-024d613a.cjs → arrow-icon.entry-7bcb6442.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-1ebd553a.js → arrow-icon.entry-d4dd38b3.js} +1 -1
  7. package/dist/{bold-icon.entry-17c78a12.js → bold-icon.entry-5fc41386.js} +1 -1
  8. package/dist/{bold-icon.entry-8bc27b72.cjs → bold-icon.entry-fc1d34a6.cjs} +1 -1
  9. package/dist/{button-component_2.entry-5cd0adf0.cjs → button-component_2.entry-d23be43d.cjs} +1 -1
  10. package/dist/{button-component_2.entry-1095ad9f.js → button-component_2.entry-d62ae520.js} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_54.entry-6b2114d5.js → calendar-agenda-fill-icon_54.entry-1a42103a.js} +2158 -2492
  12. package/dist/calendar-agenda-fill-icon_54.entry-95ccb99e.cjs +9 -0
  13. package/dist/{calendar-cancel-icon.entry-d27593a5.js → calendar-cancel-icon.entry-1566c286.js} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-4c58ea10.cjs → calendar-cancel-icon.entry-bf9fc719.cjs} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-4a35f416.cjs → calendar-check-icon_2.entry-4c3e78a6.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-38e1140b.js → calendar-check-icon_2.entry-82407a92.js} +1 -1
  17. package/dist/{calendar-icon.entry-002ee369.cjs → calendar-icon.entry-359c064c.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-4543de86.js → calendar-icon.entry-c3c23413.js} +1 -1
  19. package/dist/{checkbox-component_2.entry-cf15106d.js → checkbox-component_2.entry-97e97789.js} +1 -1
  20. package/dist/{checkbox-component_2.entry-ad4ab088.cjs → checkbox-component_2.entry-f974e789.cjs} +1 -1
  21. package/dist/chevron-icon_3.entry-2453084c.cjs +1 -0
  22. package/dist/{chevron-icon_3.entry-5e60a853.js → chevron-icon_3.entry-a6189c37.js} +26 -22
  23. package/dist/{clock-icon_4.entry-8348282a.cjs → clock-icon_4.entry-5162dfec.cjs} +1 -1
  24. package/dist/{clock-icon_4.entry-d03310ae.js → clock-icon_4.entry-ad679142.js} +1 -1
  25. package/dist/close-icon.entry-2c6cdf35.js +15 -0
  26. package/dist/close-icon.entry-38dc2638.cjs +1 -0
  27. package/dist/{constants-c549b12b-7ea4c7f5.js → constants-35df11e7-b37e3406.js} +1 -1
  28. package/dist/{constants-c549b12b-c85413b1.cjs → constants-35df11e7-d87ad6d9.cjs} +1 -1
  29. package/dist/{copy-icon.entry-3ea78e28.js → copy-icon.entry-6630ce5a.js} +1 -1
  30. package/dist/{copy-icon.entry-5337f980.cjs → copy-icon.entry-79df1d0e.cjs} +1 -1
  31. package/dist/{delete-icon.entry-480ac215.js → delete-icon.entry-716f906c.js} +1 -1
  32. package/dist/{delete-icon.entry-87b2daaa.cjs → delete-icon.entry-f9a265b6.cjs} +1 -1
  33. package/dist/{document-refresh-icon.entry-6be2b468.cjs → document-refresh-icon.entry-bb91822a.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-665a7947.js → document-refresh-icon.entry-fa775295.js} +1 -1
  35. package/dist/{feedbackSync-b56b29ed-36483932.js → feedbackSync-adc893c2-5965d5ba.js} +1 -1
  36. package/dist/{feedbackSync-b56b29ed-599103b9.cjs → feedbackSync-adc893c2-70d06afc.cjs} +1 -1
  37. package/dist/{folder-icon.entry-89f0974f.cjs → folder-icon.entry-82a02de7.cjs} +1 -1
  38. package/dist/{folder-icon.entry-9bf864d7.js → folder-icon.entry-9cf7590f.js} +1 -1
  39. package/dist/{forward-icon.entry-699c55d9.cjs → forward-icon.entry-034ec3be.cjs} +1 -1
  40. package/dist/{forward-icon.entry-2b0167a7.js → forward-icon.entry-ebd5e108.js} +1 -1
  41. package/dist/{globe-icon.entry-5d962e7a.js → globe-icon.entry-48837e22.js} +1 -1
  42. package/dist/{globe-icon.entry-3d08a9c4.cjs → globe-icon.entry-b67c68d5.cjs} +1 -1
  43. package/dist/{google-logo-icon_4.entry-ec724f2e.js → google-logo-icon_4.entry-819d7d0d.js} +354 -333
  44. package/dist/google-logo-icon_4.entry-b637470a.cjs +1 -0
  45. package/dist/{inbox-icon.entry-45414f66.cjs → inbox-icon.entry-7f91d971.cjs} +1 -1
  46. package/dist/{inbox-icon.entry-2020fa96.js → inbox-icon.entry-c611c154.js} +1 -1
  47. package/dist/{index-2b208d5d.js → index-72501df0.js} +2416 -2347
  48. package/dist/index-92ba1b80.cjs +81 -0
  49. package/dist/{index.es-c7ca1bad-67a99f41.cjs → index.es-28b1b2ec-595c0513.cjs} +1 -1
  50. package/dist/{index.es-c7ca1bad-70899f2a.js → index.es-28b1b2ec-5a87db22.js} +1 -1
  51. package/dist/{info-icon_2.entry-b98a2882.js → info-icon_2.entry-4ad69286.js} +1 -1
  52. package/dist/{info-icon_2.entry-237205a0.cjs → info-icon_2.entry-4c70ab61.cjs} +1 -1
  53. package/dist/{input-color-picker.entry-8fe3482d.cjs → input-color-picker.entry-46bf04e1.cjs} +1 -1
  54. package/dist/{input-color-picker.entry-684413c1.js → input-color-picker.entry-4e5760ce.js} +1 -1
  55. package/dist/{input-component.entry-bcd13373.cjs → input-component.entry-1019ce99.cjs} +1 -1
  56. package/dist/{input-component.entry-00b97287.js → input-component.entry-dca1013f.js} +1 -1
  57. package/dist/{input-dropdown.entry-b26475c4.cjs → input-dropdown.entry-e535fb5e.cjs} +1 -1
  58. package/dist/{input-dropdown.entry-3c39e23a.js → input-dropdown.entry-f14c59e7.js} +1 -1
  59. package/dist/{italic-icon.entry-2199bb17.js → italic-icon.entry-2ab53839.js} +1 -1
  60. package/dist/{italic-icon.entry-14081a02.cjs → italic-icon.entry-726cc194.cjs} +1 -1
  61. package/dist/{multi-select-dropdown.entry-7b66d2ae.cjs → multi-select-dropdown.entry-6820d249.cjs} +1 -1
  62. package/dist/{multi-select-dropdown.entry-2141b848.js → multi-select-dropdown.entry-a097d3cb.js} +1 -1
  63. package/dist/nylas-booked-event-card_12.entry-c684905b.cjs +1 -0
  64. package/dist/{nylas-booked-event-card_12.entry-2d88375a.js → nylas-booked-event-card_12.entry-ccd85ff4.js} +316 -247
  65. package/dist/{nylas-form-card.entry-1e9225b0.cjs → nylas-form-card.entry-8eb47f3d.cjs} +1 -1
  66. package/dist/{nylas-form-card.entry-a8a44a3b.js → nylas-form-card.entry-afdfee47.js} +2 -2
  67. package/dist/{nylas-if-state.entry-32b11afa.js → nylas-if-state.entry-7caad39f.js} +2 -2
  68. package/dist/{nylas-if-state.entry-473230a6.cjs → nylas-if-state.entry-be7978de.cjs} +1 -1
  69. package/dist/{nylas-login.entry-995b6f99.cjs → nylas-login.entry-bce4f689.cjs} +1 -1
  70. package/dist/{nylas-login.entry-d663205c.js → nylas-login.entry-dcf85f93.js} +2 -2
  71. package/dist/{nylas-provider.entry-c24474c3.js → nylas-provider.entry-97882e4b.js} +4 -4
  72. package/dist/{nylas-provider.entry-050f20bd.cjs → nylas-provider.entry-f02017da.cjs} +1 -1
  73. package/dist/{nylas-scheduler-editor.entry-3b834bb1.cjs → nylas-scheduler-editor.entry-cc6f4060.cjs} +2 -2
  74. package/dist/{nylas-scheduler-editor.entry-5c0a5fb4.js → nylas-scheduler-editor.entry-dcfdd6bf.js} +8 -9
  75. package/dist/{nylas-scheduling.entry-04c3951e.js → nylas-scheduling.entry-2b842e93.js} +40 -37
  76. package/dist/nylas-scheduling.entry-e0e9c8e8.cjs +1 -0
  77. package/dist/{nylas-time-window-picker.entry-678a7dbf.js → nylas-time-window-picker.entry-96f5fe9a.js} +1 -1
  78. package/dist/{nylas-time-window-picker.entry-337d03c1.cjs → nylas-time-window-picker.entry-a8780f2e.cjs} +1 -1
  79. package/dist/{person-icon.entry-3fee5bc4.cjs → person-icon.entry-2f8e00fd.cjs} +1 -1
  80. package/dist/{person-icon.entry-902b2c0d.js → person-icon.entry-3ec67feb.js} +1 -1
  81. package/dist/{play-icon.entry-a7f648f7.cjs → play-icon.entry-1abf79e9.cjs} +1 -1
  82. package/dist/{play-icon.entry-1078da37.js → play-icon.entry-a840bdca.js} +1 -1
  83. package/dist/react.cjs +1 -1
  84. package/dist/react.js +1 -1
  85. package/dist/{refresh-icon.entry-5399f64b.js → refresh-icon.entry-11fcb673.js} +1 -1
  86. package/dist/{refresh-icon.entry-06f9d181.cjs → refresh-icon.entry-af7f54b4.cjs} +1 -1
  87. package/dist/{register-component-3444af44-3d6e535a.js → register-component-75f530bc-0e4e3d7a.js} +1 -1
  88. package/dist/{register-component-3444af44-6d269634.cjs → register-component-75f530bc-61b6f2dd.cjs} +1 -1
  89. package/dist/{reply-all-icon.entry-a3a20f76.js → reply-all-icon.entry-5c8b3356.js} +1 -1
  90. package/dist/{reply-all-icon.entry-70ffe5be.cjs → reply-all-icon.entry-cc2ad940.cjs} +1 -1
  91. package/dist/{reply-icon.entry-a08c0e57.cjs → reply-icon.entry-840acade.cjs} +1 -1
  92. package/dist/{reply-icon.entry-302ed745.js → reply-icon.entry-d048736f.js} +1 -1
  93. package/dist/{scheduler-config-store-ed4a8dfd-34c4c119.cjs → scheduler-config-store-ed4a8dfd-161a3efd.cjs} +1 -1
  94. package/dist/{scheduler-config-store-ed4a8dfd-81687f55.js → scheduler-config-store-ed4a8dfd-f74e58ae.js} +1 -1
  95. package/dist/{scheduler-store-2e7db190-c648278f.js → scheduler-store-d84b82a0-11faba86.js} +2 -2
  96. package/dist/{scheduler-store-2e7db190-fb6a20a1.cjs → scheduler-store-d84b82a0-7a7fe186.cjs} +1 -1
  97. package/dist/{sent-icon.entry-6396b793.cjs → sent-icon.entry-987760ce.cjs} +1 -1
  98. package/dist/{sent-icon.entry-4d7b65ba.js → sent-icon.entry-fd3b9ad9.js} +1 -1
  99. package/dist/{spam-icon.entry-8648a315.cjs → spam-icon.entry-3ce4f9fc.cjs} +1 -1
  100. package/dist/{spam-icon.entry-45e7b83b.js → spam-icon.entry-4665415c.js} +1 -1
  101. package/dist/{star-icon.entry-61c36332.js → star-icon.entry-0f446ac7.js} +1 -1
  102. package/dist/{star-icon.entry-1c416cef.cjs → star-icon.entry-a3ba4703.cjs} +1 -1
  103. package/dist/{stop-icon.entry-089ac3ba.js → stop-icon.entry-72c964b2.js} +1 -1
  104. package/dist/{stop-icon.entry-d68aa652.cjs → stop-icon.entry-9c13e00a.cjs} +1 -1
  105. package/dist/{textarea-component.entry-8f5d835f.js → textarea-component.entry-d414e219.js} +1 -1
  106. package/dist/{textarea-component.entry-502c8659.cjs → textarea-component.entry-ff04b5fa.cjs} +1 -1
  107. package/dist/{time-period-selector.entry-001a1c59.cjs → time-period-selector.entry-2ce3347a.cjs} +1 -1
  108. package/dist/{time-period-selector.entry-7da7d316.js → time-period-selector.entry-53edc0ba.js} +1 -1
  109. package/dist/{translate-icon.entry-5166d376.js → translate-icon.entry-84a78b9a.js} +1 -1
  110. package/dist/{translate-icon.entry-4ee80d22.cjs → translate-icon.entry-9bab13ad.cjs} +1 -1
  111. package/dist/{trash-fill-icon.entry-49844a82.js → trash-fill-icon.entry-2881a44c.js} +1 -1
  112. package/dist/{trash-fill-icon.entry-2f814465.cjs → trash-fill-icon.entry-84f52290.cjs} +1 -1
  113. package/dist/{underline-icon.entry-181f1d7e.js → underline-icon.entry-23eca319.js} +1 -1
  114. package/dist/{underline-icon.entry-4ba93e7b.cjs → underline-icon.entry-5a8410ef.cjs} +1 -1
  115. package/dist/{warning-icon.entry-44ac5566.cjs → warning-icon.entry-1966042d.cjs} +1 -1
  116. package/dist/{warning-icon.entry-2406b765.js → warning-icon.entry-abf9e5dc.js} +1 -1
  117. package/package.json +2 -2
  118. package/dist/add-circle-icon_2.entry-5814b516.cjs +0 -1
  119. package/dist/add-circle-icon_2.entry-5db67b5b.js +0 -25
  120. package/dist/add-circle-icon_2.entry-95b23b9d.js +0 -25
  121. package/dist/add-circle-icon_2.entry-ae11c837.cjs +0 -1
  122. package/dist/archive-icon.entry-2ead8ef0.cjs +0 -1
  123. package/dist/archive-icon.entry-b28d195c.js +0 -15
  124. package/dist/arrow-icon.entry-8de38831.cjs +0 -1
  125. package/dist/arrow-icon.entry-e29d7a6c.js +0 -15
  126. package/dist/bold-icon.entry-316f5e61.js +0 -15
  127. package/dist/bold-icon.entry-caf96585.cjs +0 -1
  128. package/dist/button-component_2.entry-531a725d.js +0 -26
  129. package/dist/button-component_2.entry-64a41161.cjs +0 -1
  130. package/dist/calendar-agenda-fill-icon_54.entry-84e72636.js +0 -5656
  131. package/dist/calendar-agenda-fill-icon_54.entry-abb96e20.cjs +0 -10
  132. package/dist/calendar-agenda-fill-icon_54.entry-f5577fdb.cjs +0 -10
  133. package/dist/calendar-cancel-icon.entry-f11e5aaa.cjs +0 -1
  134. package/dist/calendar-cancel-icon.entry-f1a6f9bc.js +0 -15
  135. package/dist/calendar-check-icon_2.entry-52187599.cjs +0 -1
  136. package/dist/calendar-check-icon_2.entry-7f17a3a6.js +0 -25
  137. package/dist/calendar-icon.entry-3c5c97d4.cjs +0 -1
  138. package/dist/calendar-icon.entry-b76e26e6.js +0 -15
  139. package/dist/checkbox-component_2.entry-b24885e9.cjs +0 -1
  140. package/dist/checkbox-component_2.entry-e4a3dd2d.js +0 -79
  141. package/dist/chevron-icon_3.entry-582df6f7.cjs +0 -1
  142. package/dist/chevron-icon_3.entry-59d8b408.cjs +0 -1
  143. package/dist/chevron-icon_3.entry-cab72db3.js +0 -143
  144. package/dist/clock-icon_4.entry-f6b9f85d.js +0 -45
  145. package/dist/clock-icon_4.entry-fcbc39b0.cjs +0 -1
  146. package/dist/copy-icon.entry-430beab4.js +0 -15
  147. package/dist/copy-icon.entry-74a59fc5.cjs +0 -1
  148. package/dist/delete-icon.entry-9c1af040.js +0 -15
  149. package/dist/delete-icon.entry-e320cde1.cjs +0 -1
  150. package/dist/document-refresh-icon.entry-930ee2b7.js +0 -15
  151. package/dist/document-refresh-icon.entry-fcde4ff6.cjs +0 -1
  152. package/dist/feedbackSync-b56b29ed-7a7c650e.cjs +0 -448
  153. package/dist/feedbackSync-b56b29ed-9e38fdb6.js +0 -6035
  154. package/dist/folder-icon.entry-977e50eb.cjs +0 -1
  155. package/dist/folder-icon.entry-b80d8fd7.js +0 -15
  156. package/dist/forward-icon.entry-c4c20f31.cjs +0 -1
  157. package/dist/forward-icon.entry-eb64aa16.js +0 -15
  158. package/dist/globe-icon.entry-5ef1dc42.cjs +0 -1
  159. package/dist/globe-icon.entry-667987bd.js +0 -15
  160. package/dist/google-logo-icon_4.entry-12f1492f.cjs +0 -1
  161. package/dist/google-logo-icon_4.entry-bd4d2237.cjs +0 -1
  162. package/dist/google-logo-icon_4.entry-fc38681e.js +0 -729
  163. package/dist/inbox-icon.entry-49353988.js +0 -15
  164. package/dist/inbox-icon.entry-b556231f.cjs +0 -1
  165. package/dist/index-290b2932.cjs +0 -81
  166. package/dist/index-bf124f70.cjs +0 -81
  167. package/dist/index-fb096a02.js +0 -13011
  168. package/dist/index.es-c7ca1bad-b7a3e6bd.cjs +0 -7
  169. package/dist/index.es-c7ca1bad-cb3a99a7.js +0 -3129
  170. package/dist/info-icon_2.entry-caf64c28.cjs +0 -1
  171. package/dist/info-icon_2.entry-d935e5c2.js +0 -34
  172. package/dist/input-color-picker.entry-752534de.js +0 -48
  173. package/dist/input-color-picker.entry-f856fce3.cjs +0 -1
  174. package/dist/input-component.entry-4400f98e.js +0 -70
  175. package/dist/input-component.entry-d486907a.cjs +0 -1
  176. package/dist/input-dropdown.entry-bea3c690.js +0 -134
  177. package/dist/input-dropdown.entry-d3d4e50e.cjs +0 -1
  178. package/dist/italic-icon.entry-63726952.cjs +0 -1
  179. package/dist/italic-icon.entry-a3c87e5e.js +0 -15
  180. package/dist/multi-select-dropdown.entry-8a2c4b42.cjs +0 -1
  181. package/dist/multi-select-dropdown.entry-cdd97d65.js +0 -95
  182. package/dist/nylas-booked-event-card_12.entry-20c254bb.cjs +0 -1
  183. package/dist/nylas-booked-event-card_12.entry-90a0b6c7.cjs +0 -1
  184. package/dist/nylas-booked-event-card_12.entry-bbd7cfb0.js +0 -1237
  185. package/dist/nylas-form-card.entry-d6287d76.cjs +0 -1
  186. package/dist/nylas-form-card.entry-fadd7718.js +0 -57
  187. package/dist/nylas-if-state.entry-8be8107e.js +0 -94
  188. package/dist/nylas-if-state.entry-9c341f13.cjs +0 -1
  189. package/dist/nylas-login.entry-b9c2fb27.cjs +0 -1
  190. package/dist/nylas-login.entry-e3a9c5c1.js +0 -73
  191. package/dist/nylas-provider.entry-5b54f2cc.cjs +0 -1
  192. package/dist/nylas-provider.entry-ca3e06ce.js +0 -264
  193. package/dist/nylas-scheduler-editor.entry-b86f49a1.js +0 -1447
  194. package/dist/nylas-scheduler-editor.entry-d52db29e.cjs +0 -2
  195. package/dist/nylas-scheduling.entry-a5c4b050.js +0 -412
  196. package/dist/nylas-scheduling.entry-d549c5c3.cjs +0 -1
  197. package/dist/nylas-scheduling.entry-ed12a4f6.cjs +0 -1
  198. package/dist/nylas-time-window-picker.entry-4aefade8.cjs +0 -1
  199. package/dist/nylas-time-window-picker.entry-ecc3ee10.js +0 -316
  200. package/dist/person-icon.entry-9680bc2b.js +0 -15
  201. package/dist/person-icon.entry-dede7140.cjs +0 -1
  202. package/dist/play-icon.entry-c8f3a5d8.cjs +0 -1
  203. package/dist/play-icon.entry-dacc3aa6.js +0 -15
  204. package/dist/refresh-icon.entry-555a38ec.cjs +0 -1
  205. package/dist/refresh-icon.entry-d4dcfc3a.js +0 -15
  206. package/dist/register-component-3444af44-4a273c0a.js +0 -109
  207. package/dist/register-component-3444af44-d3e7252a.cjs +0 -1
  208. package/dist/reply-all-icon.entry-bb2a88ad.js +0 -15
  209. package/dist/reply-all-icon.entry-f8a32be1.cjs +0 -1
  210. package/dist/reply-icon.entry-423fb307.js +0 -15
  211. package/dist/reply-icon.entry-d2da8972.cjs +0 -1
  212. package/dist/scheduler-config-store-ed4a8dfd-474f6252.cjs +0 -1
  213. package/dist/scheduler-config-store-ed4a8dfd-fe2b9d18.js +0 -26
  214. package/dist/scheduler-store-5fbba021-09da63cf.cjs +0 -1
  215. package/dist/scheduler-store-5fbba021-6298edf3.js +0 -484
  216. package/dist/sent-icon.entry-6ed4170a.js +0 -15
  217. package/dist/sent-icon.entry-db89fd38.cjs +0 -1
  218. package/dist/spam-icon.entry-81073952.js +0 -15
  219. package/dist/spam-icon.entry-cf05a2a7.cjs +0 -1
  220. package/dist/star-icon.entry-8279e6a9.cjs +0 -1
  221. package/dist/star-icon.entry-bb26cc4e.js +0 -15
  222. package/dist/stop-icon.entry-f62d063b.js +0 -15
  223. package/dist/stop-icon.entry-f88a5a2a.cjs +0 -1
  224. package/dist/textarea-component.entry-d4a682fa.js +0 -37
  225. package/dist/textarea-component.entry-e06ee834.cjs +0 -1
  226. package/dist/time-period-selector.entry-837b9be3.js +0 -80
  227. package/dist/time-period-selector.entry-c5b6d0c9.cjs +0 -1
  228. package/dist/translate-icon.entry-c1a623d8.cjs +0 -1
  229. package/dist/translate-icon.entry-e5cfae44.js +0 -15
  230. package/dist/trash-fill-icon.entry-85e0e841.js +0 -15
  231. package/dist/trash-fill-icon.entry-def90241.cjs +0 -1
  232. package/dist/underline-icon.entry-72dadbdf.cjs +0 -1
  233. package/dist/underline-icon.entry-f7a75755.js +0 -15
  234. package/dist/warning-icon.entry-5b6aeb2b.cjs +0 -1
  235. package/dist/warning-icon.entry-ef601856.js +0 -15
@@ -1,139 +1,139 @@
1
- import { r as G, h as t, c as x, d as h, n as Fe, o as K, H as Te, g as Ee, F as ze } from "./index-2b208d5d.js";
2
- import { R as Pe } from "./register-component-3444af44-3d6e535a.js";
3
- import { D as Le } from "./constants-c549b12b-7ea4c7f5.js";
4
- import { i as Ue, a as Re, c as Ae, b as je, f as $e } from "./feedbackSync-b56b29ed-9e38fdb6.js";
1
+ import { r as W, h as e, c as k, d as h, n as Et, o as Y, H as Dt, g as Ht, i as G, F as Vt } from "./index-72501df0.js";
2
+ import { R as It } from "./register-component-75f530bc-0e4e3d7a.js";
3
+ import { D as Ot } from "./constants-35df11e7-b37e3406.js";
4
+ import { i as Zt, a as Gt, c as Wt, b as qt, f as Kt } from "./feedbackSync-adc893c2-5965d5ba.js";
5
5
  import "react";
6
6
  import "react-dom";
7
- const Je = ".sc-google-logo-icon-h{display:flex}", Ve = Je, Ze = class {
8
- constructor(e) {
9
- G(this, e), this.width = "24", this.height = "24";
7
+ const Qt = ".sc-google-logo-icon-h{display:flex}", Xt = Qt, Yt = class {
8
+ constructor(t) {
9
+ W(this, t), this.width = "24", this.height = "24";
10
10
  }
11
11
  render() {
12
- return t("svg", { key: "a92099ec8ac0962d66c891c164e335ef3d047d22", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("g", { key: "67f404193a491c7599cb0ff6eb2eba5322d05e12", "clip-path": "url(#clip0_959_12452)" }, t("path", { key: "3c61ed99570e6093cad10d510093e172828eff40", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), t("path", { key: "c02254455f486c14330e39e76240c1cf4f4597a4", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), t("path", { key: "8db3f9f9c1587778afe57689afc1a72db582d5ec", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), t("path", { key: "45b05683bc9c6bf46c6aef5858604016460df3e2", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), t("defs", { key: "4c047174ca3453f959e5e81b31e79abae98a1e09" }, t("clipPath", { key: "0e8a1d30c69e4ff0d43a99342b111a0ced46b894", id: "clip0_959_12452" }, t("rect", { key: "e653c135430f8fd0e33dea31c2d26a75ac6301a0", width: 24, height: 24, fill: "white" }))));
12
+ return e("svg", { key: "a92099ec8ac0962d66c891c164e335ef3d047d22", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "67f404193a491c7599cb0ff6eb2eba5322d05e12", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "3c61ed99570e6093cad10d510093e172828eff40", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), e("path", { key: "c02254455f486c14330e39e76240c1cf4f4597a4", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), e("path", { key: "8db3f9f9c1587778afe57689afc1a72db582d5ec", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), e("path", { key: "45b05683bc9c6bf46c6aef5858604016460df3e2", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), e("defs", { key: "4c047174ca3453f959e5e81b31e79abae98a1e09" }, e("clipPath", { key: "0e8a1d30c69e4ff0d43a99342b111a0ced46b894", id: "clip0_959_12452" }, e("rect", { key: "e653c135430f8fd0e33dea31c2d26a75ac6301a0", width: 24, height: 24, fill: "white" }))));
13
13
  }
14
14
  };
15
- Ze.style = Ve;
16
- const Ge = ".sc-microsoft-logo-icon-h{display:flex}", We = Ge, qe = class {
17
- constructor(e) {
18
- G(this, e), this.width = "22", this.height = "22";
15
+ Yt.style = Xt;
16
+ const te = ".sc-microsoft-logo-icon-h{display:flex}", ee = te, ae = class {
17
+ constructor(t) {
18
+ W(this, t), this.width = "22", this.height = "22";
19
19
  }
20
20
  render() {
21
- return t("svg", { key: "0426f3e50fb256a3a5f5c2c221da187daddf01ab", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "7613831c4bd6ec132acc5e89859acdfd6035f0c1", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), t("path", { key: "db04c966af57fe29013c799d7a38192d121beb44", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), t("path", { key: "fe59fe563aede56518af70627d0ece3b83ded0fc", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), t("path", { key: "07e3f81f79863f2e87827b163a2e9a9f9804cbf0", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
21
+ return e("svg", { key: "0426f3e50fb256a3a5f5c2c221da187daddf01ab", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "7613831c4bd6ec132acc5e89859acdfd6035f0c1", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "db04c966af57fe29013c799d7a38192d121beb44", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "fe59fe563aede56518af70627d0ece3b83ded0fc", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "07e3f81f79863f2e87827b163a2e9a9f9804cbf0", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
22
22
  }
23
23
  };
24
- qe.style = We;
25
- var o;
26
- (function(e) {
27
- e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
28
- })(o || (o = {}));
29
- function Ke({ id: e, formState: a, activeTab: n }, i) {
30
- return t(
31
- ze,
24
+ ae.style = ee;
25
+ var r;
26
+ (function(t) {
27
+ t.EventInfo = "eventInfo", t.Availability = "availability", t.BookingOptions = "bookingOptions", t.Communications = "communications", t.Participants = "participants", t.BookingForm = "bookingForm", t.PageStyles = "pageStyles";
28
+ })(r || (r = {}));
29
+ function ne({ id: t, formState: a, activeTab: n }, i) {
30
+ return e(
31
+ Vt,
32
32
  null,
33
- t(
33
+ e(
34
34
  "div",
35
- { key: `event-info-${e}`, class: { hide: n !== o.EventInfo } },
36
- t(
35
+ { key: `event-info-${t}`, class: { hide: n !== r.EventInfo } },
36
+ e(
37
37
  "nylas-event-info",
38
38
  null,
39
- t(
39
+ e(
40
40
  "div",
41
41
  { slot: "inputs" },
42
- t("nylas-event-title", { name: "title", exportparts: "net, net__title, net__dropdown-content" }),
43
- t("nylas-event-duration", { name: "duration", exportparts: "ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content" }),
44
- t("nylas-event-location", { name: "location", exportparts: "nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content" }),
45
- t("nylas-event-description", { name: "description", exportparts: "nedesc, nedesc__textarea" })
42
+ e("nylas-event-title", { name: "title", exportparts: "net, net__title, net__dropdown-content" }),
43
+ e("nylas-event-duration", { name: "duration", exportparts: "ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content" }),
44
+ e("nylas-event-location", { name: "location", exportparts: "nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content" }),
45
+ e("nylas-event-description", { name: "description", exportparts: "nedesc, nedesc__textarea" })
46
46
  )
47
47
  )
48
48
  ),
49
- t(
49
+ e(
50
50
  "div",
51
- { key: `availability-${e}`, class: { hide: n !== o.Availability } },
52
- t("nylas-participant-booking-calendars", { participants: a.participants, name: "participant-booking-calendars", exportparts: "npbc, npbc__header, npbc__content, npbc__participant-container, npbc__participant-title" }),
53
- t("nylas-connected-calendars", { participants: a.participants, name: "connected-calendars", exportparts: "nccals, nccals__header, nccals__content, nccals__container, nccals__title, nccals__toggle-container, npbc__participant-toggle-container" }),
54
- t("nylas-availability-picker", { name: "availability", exportparts: "nap, nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times" })
51
+ { key: `availability-${t}`, class: { hide: n !== r.Availability } },
52
+ e("nylas-participant-booking-calendars", { participants: a.participants, name: "participant-booking-calendars", exportparts: "npbc, npbc__header, npbc__content, npbc__participant-container, npbc__participant-title" }),
53
+ e("nylas-connected-calendars", { participants: a.participants, name: "connected-calendars", exportparts: "nccals, nccals__header, nccals__content, nccals__container, nccals__title, nccals__toggle-container, npbc__participant-toggle-container" }),
54
+ e("nylas-availability-picker", { name: "availability", exportparts: "nap, nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times" })
55
55
  ),
56
- t(
56
+ e(
57
57
  "div",
58
- { key: `booking-options-${e}`, class: { hide: n !== o.BookingOptions } },
59
- t("nylas-scheduling-method", { name: "availability-method", readOnly: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
60
- t(
58
+ { key: `booking-options-${t}`, class: { hide: n !== r.BookingOptions } },
59
+ e("nylas-scheduling-method", { name: "availability-method", readOnly: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
60
+ e(
61
61
  "nylas-custom-booking-flow",
62
62
  { exportparts: "ncbflow, ncbflow__header, ncbflow__title, ncbflow__content" },
63
- t(
63
+ e(
64
64
  "div",
65
65
  { slot: "inputs" },
66
- t("nylas-booking-confirmation-type", { name: "confirmation-type", exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
67
- t("nylas-booking-confirmation-redirect", { name: "confirmation-redirect", exportparts: "nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield" })
66
+ e("nylas-booking-confirmation-type", { name: "confirmation-type", exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
67
+ e("nylas-booking-confirmation-redirect", { name: "confirmation-redirect", exportparts: "nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield" })
68
68
  )
69
69
  ),
70
- t("nylas-buffer-time", { name: "buffer-time", exportparts: "nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview" }),
71
- t(
70
+ e("nylas-buffer-time", { name: "buffer-time", exportparts: "nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview" }),
71
+ e(
72
72
  "nylas-event-limits",
73
73
  null,
74
- t(
74
+ e(
75
75
  "div",
76
76
  { slot: "inputs" },
77
- t("nylas-min-booking-notice", { name: "min-booking-notice", exportparts: "nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content" }),
78
- t("nylas-limit-future-bookings", { name: "limit-future-bookings", exportparts: "nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content" }),
79
- t("nylas-min-cancellation-notice", { name: "min-cancellation-notice", exportparts: "nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content" }),
80
- t("nylas-cancellation-policy", { name: "cancellation-policy", exportparts: "ncpolicy, ncpolicy__textarea" })
77
+ e("nylas-min-booking-notice", { name: "min-booking-notice", exportparts: "nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content" }),
78
+ e("nylas-limit-future-bookings", { name: "limit-future-bookings", exportparts: "nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content" }),
79
+ e("nylas-min-cancellation-notice", { name: "min-cancellation-notice", exportparts: "nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content" }),
80
+ e("nylas-cancellation-policy", { name: "cancellation-policy", exportparts: "ncpolicy, ncpolicy__textarea" })
81
81
  )
82
82
  ),
83
- t("nylas-timeslot-interval", { name: "timeslot-interval", exportparts: "nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content" }),
84
- t("nylas-customize-booking-settings", { name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
83
+ e("nylas-timeslot-interval", { name: "timeslot-interval", exportparts: "nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content" }),
84
+ e("nylas-customize-booking-settings", { name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
85
85
  ),
86
- t(
86
+ e(
87
87
  "div",
88
- { key: `communications-${e}`, class: { hide: n !== o.Communications } },
89
- t(
88
+ { key: `communications-${t}`, class: { hide: n !== r.Communications } },
89
+ e(
90
90
  "div",
91
91
  { class: "tab-header" },
92
- t("h3", null, "Event communications"),
93
- t("p", null, "Set up automatic confirmation emails.")
92
+ e("h3", null, "Event communications"),
93
+ e("p", null, "Set up automatic confirmation emails.")
94
94
  ),
95
- t("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
96
- t("nylas-reminder-emails", { name: "reminder-emails", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nre__reminder-input_dropdown, nre__reminder-input_dropdown-input, nre__reminder-input_dropdown-content" })
95
+ e("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
96
+ e("nylas-reminder-emails", { name: "reminder-emails", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nre__reminder-input_dropdown, nre__reminder-input_dropdown-input, nre__reminder-input_dropdown-content" })
97
97
  ),
98
- t(
98
+ e(
99
99
  "div",
100
- { key: `participants-${e}`, class: { hide: n !== o.Participants } },
101
- t("nylas-additional-participants", { name: "participants", exportparts: "nap, nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant" }),
102
- t("nylas-participants-custom-availability", { participants: a.participants, name: "participant-custom-availability", exportparts: "npca, npca__header, npca__content, npca__participant-container, npca__participant-title, npca__participant-toggle--container, npca__toggle-label, npca__toggle-input, npca__toggle-slider" })
100
+ { key: `participants-${t}`, class: { hide: n !== r.Participants } },
101
+ e("nylas-additional-participants", { name: "participants", exportparts: "nap, nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant" }),
102
+ e("nylas-participants-custom-availability", { participants: a.participants, name: "participant-custom-availability", exportparts: "npca, npca__header, npca__content, npca__participant-container, npca__participant-title, npca__participant-toggle--container, npca__toggle-label, npca__toggle-input, npca__toggle-slider" })
103
103
  ),
104
- t(
104
+ e(
105
105
  "div",
106
- { key: `page-styles-${e}`, class: { hide: n !== o.PageStyles } },
107
- t("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
- t("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
- t("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, i)
106
+ { key: `page-styles-${t}`, class: { hide: n !== r.PageStyles } },
107
+ e("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
+ e("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
+ e("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, i)
110
110
  ),
111
- t(
111
+ e(
112
112
  "div",
113
- { key: `booking-form-${e}`, class: { hide: n !== o.BookingForm } },
114
- t("nylas-booking-form-config", { name: "additional-fields", exportparts: "nbfc, nbfc__header, nbfc__add_field, nbfc__add_field-button, nbfc__add_field-content, nbfc__additional_fields, nbfc__form-field, nbfc__form-field-header, nbfc__form-field-content" })
113
+ { key: `booking-form-${t}`, class: { hide: n !== r.BookingForm } },
114
+ e("nylas-booking-form-config", { name: "additional-fields", exportparts: "nbfc, nbfc__header, nbfc__add_field, nbfc__add_field-button, nbfc__add_field-content, nbfc__additional_fields, nbfc__form-field, nbfc__form-field-header, nbfc__form-field-content" })
115
115
  )
116
116
  );
117
117
  }
118
- const Qe = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', Xe = Qe;
119
- var Ye = function(e, a, n, i) {
120
- var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
118
+ const ie = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', se = ie;
119
+ var oe = function(t, a, n, i) {
120
+ var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
- s = Reflect.decorate(e, a, n, i);
122
+ s = Reflect.decorate(t, a, n, i);
123
123
  else
124
- for (var d = e.length - 1; d >= 0; d--)
125
- (c = e[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
126
- return r > 3 && s && Object.defineProperty(a, n, s), s;
127
- }, W = function(e, a) {
124
+ for (var d = t.length - 1; d >= 0; d--)
125
+ (c = t[d]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
126
+ return o > 3 && s && Object.defineProperty(a, n, s), s;
127
+ }, Q = function(t, a) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
- return Reflect.metadata(e, a);
129
+ return Reflect.metadata(t, a);
130
130
  };
131
- const Be = class {
132
- constructor(e) {
133
- G(this, e), this.schedulerConfigChanged = x(this, "schedulerConfigChanged", 7), this.cancelButtonClick = x(this, "cancelButtonClick", 7), this.formSubmitted = x(this, "formSubmitted", 7), this.previewButtonClicked = x(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = x(this, "schedulerEditorFormUpdated", 7), this.setError = (a) => {
131
+ const Mt = class {
132
+ constructor(t) {
133
+ W(this, t), this.schedulerConfigChanged = k(this, "schedulerConfigChanged", 7), this.cancelButtonClick = k(this, "cancelButtonClick", 7), this.formSubmitted = k(this, "formSubmitted", 7), this.previewButtonClicked = k(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = k(this, "schedulerEditorFormUpdated", 7), this.setError = (a) => {
134
134
  this.error = a.message;
135
135
  }, this.formSubmissionHandler = async (a) => {
136
- var Q, X, Y, ee, te, ae, ne, ie, se, oe, re, le, de, ce, be, he, ue;
136
+ var tt, et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt, ft;
137
137
  a.preventDefault();
138
138
  const n = await this.formSubmitted.emit();
139
139
  if (h("[nylas-editor-tabs]", "formSubmissionHandler", n), !this.formRef.checkValidity() || n.defaultPrevented) {
@@ -141,108 +141,113 @@ const Be = class {
141
141
  return;
142
142
  }
143
143
  this.isLoading = !0, this.hasUnsavedChanges = !1;
144
- const r = this.updateFormState(), { title: s, description: c, duration: d, availability: u, bookingCalendar: v, location: S, bookingType: F, buffer: B, availableDaysInFuture: H, minCancellationNotice: O, minBookingNotice: N, cancellationPolicy: D, timeslotInterval: w, additionalGuestsHidden: I, hideCancellationOptions: M, hideReschedulingOptions: z, participants: g, participantOpenHours: p, additionalFields: U, participantCalendars: f, conferencing: R, participantBookingCalendars: m, reminders: A, emailTemplate: j, redirectUrl: $, availabilityMethod: T, slug: J, appearance: V, name: Z } = r, b = ((X = (Q = this.selectedConfiguration) == null ? void 0 : Q.participants) == null ? void 0 : X.find((l) => l.is_organizer)) || (g == null ? void 0 : g.find((l) => l.is_organizer)), k = f && (b != null && b.email) ? f[b == null ? void 0 : b.email] : [], y = ((Y = b == null ? void 0 : b.booking) == null ? void 0 : Y.calendar_id) || v, _ = d ? parseInt(d) : 30, C = g && (g == null ? void 0 : g.length) > 0 ? g : [
144
+ const o = this.updateFormState(), { title: s, description: c, duration: d, availability: u, bookingCalendar: y, location: F, bookingType: L, buffer: E, availableDaysInFuture: O, minCancellationNotice: D, minBookingNotice: H, cancellationPolicy: I, timeslotInterval: w, additionalGuestsHidden: M, hideCancellationOptions: N, hideReschedulingOptions: z, participants: v, participantOpenHours: p, additionalFields: U, participantCalendars: f, conferencing: R, participantBookingCalendars: m, reminders: A, emailTemplate: j, redirectUrl: $, availabilityMethod: B, slug: J, appearance: V, name: Z } = o, b = ((et = (tt = this.selectedConfiguration) == null ? void 0 : tt.participants) == null ? void 0 : et.find((l) => l.is_organizer)) || (v == null ? void 0 : v.find((l) => l.is_organizer)), S = f && (b != null && b.email) ? f[b == null ? void 0 : b.email] : [], _ = ((at = b == null ? void 0 : b.booking) == null ? void 0 : at.calendar_id) || y, g = d ? parseInt(d) : 30, C = v && (v == null ? void 0 : v.length) > 0 ? v : [
145
145
  {
146
- name: (b == null ? void 0 : b.name) ?? ((ee = this.currentUser) == null ? void 0 : ee.name) ?? "",
147
- email: (b == null ? void 0 : b.email) ?? ((te = this.currentUser) == null ? void 0 : te.email) ?? "",
146
+ name: (b == null ? void 0 : b.name) ?? ((nt = this.currentUser) == null ? void 0 : nt.name) ?? "",
147
+ email: (b == null ? void 0 : b.email) ?? ((it = this.currentUser) == null ? void 0 : it.email) ?? "",
148
148
  is_organizer: !0,
149
149
  timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
150
150
  availability: {
151
- calendar_ids: k.length ? k : ["primary"],
151
+ calendar_ids: y && y !== "" ? [y] : ["primary"],
152
152
  open_hours: []
153
153
  },
154
154
  booking: {
155
- calendar_id: v && v !== "" ? v : "primary"
155
+ calendar_id: y && y !== "" ? y : "primary"
156
156
  }
157
157
  }
158
- ], E = {
159
- ...((ae = this.selectedConfiguration) == null ? void 0 : ae.id) && { id: this.selectedConfiguration.id },
160
- version: ((ne = this.selectedConfiguration) == null ? void 0 : ne.version) ?? "1.0.0",
158
+ ], T = {
159
+ ...((st = this.selectedConfiguration) == null ? void 0 : st.id) && { id: this.selectedConfiguration.id },
160
+ version: ((ot = this.selectedConfiguration) == null ? void 0 : ot.version) ?? "1.0.0",
161
161
  slug: J,
162
162
  name: Z,
163
163
  availability: {
164
- duration_minutes: _,
165
- interval_minutes: (w == null ? void 0 : w.interval) ?? _,
164
+ duration_minutes: g,
165
+ interval_minutes: (w == null ? void 0 : w.interval) ?? g,
166
166
  round_to: w == null ? void 0 : w.roundTo,
167
167
  availability_rules: {
168
- availability_method: T || (((oe = (se = (ie = this.selectedConfiguration) == null ? void 0 : ie.availability) == null ? void 0 : se.availability_rules) == null ? void 0 : oe.availability_method) ?? "collective"),
169
- buffer: B || { before: 0, after: 0 },
170
- default_open_hours: (u == null ? void 0 : u.openHours) ?? ((de = (le = (re = this.selectedConfiguration) == null ? void 0 : re.availability) == null ? void 0 : le.availability_rules) == null ? void 0 : de.default_open_hours) ?? Le,
171
- round_robin_group_id: ((he = (be = (ce = this.selectedConfiguration) == null ? void 0 : ce.availability) == null ? void 0 : be.availability_rules) == null ? void 0 : he.round_robin_group_id) ?? ""
168
+ availability_method: B || (((dt = (lt = (rt = this.selectedConfiguration) == null ? void 0 : rt.availability) == null ? void 0 : lt.availability_rules) == null ? void 0 : dt.availability_method) ?? "collective"),
169
+ buffer: E || { before: 0, after: 0 },
170
+ default_open_hours: (u == null ? void 0 : u.openHours) ?? ((ht = (bt = (ct = this.selectedConfiguration) == null ? void 0 : ct.availability) == null ? void 0 : bt.availability_rules) == null ? void 0 : ht.default_open_hours) ?? Ot,
171
+ round_robin_group_id: ((mt = (pt = (ut = this.selectedConfiguration) == null ? void 0 : ut.availability) == null ? void 0 : pt.availability_rules) == null ? void 0 : mt.round_robin_group_id) ?? ""
172
172
  }
173
173
  },
174
174
  participants: [
175
- ...C == null ? void 0 : C.map((l) => {
176
- var P, pe, me, fe, ye, _e, ge, ve, we, ke, Ce, xe, Se;
177
- return l.is_organizer ? {
178
- name: l.name ?? "",
179
- email: l.email,
180
- is_organizer: !0,
181
- timezone: ((pe = (P = p == null ? void 0 : p[l.email]) == null ? void 0 : P[0]) == null ? void 0 : pe.timezone) ?? ((ye = (fe = (me = l.availability) == null ? void 0 : me.open_hours) == null ? void 0 : fe[0]) == null ? void 0 : ye.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
182
- availability: {
183
- calendar_ids: f != null && f[l.email] ? f == null ? void 0 : f[l.email] : k != null && k.length ? k : ["primary"],
184
- open_hours: (p == null ? void 0 : p[l.email]) ?? ((_e = l.availability) == null ? void 0 : _e.open_hours) ?? []
185
- },
186
- booking: {
187
- calendar_id: m != null && m[l.email] ? m == null ? void 0 : m[l.email] : y || "primary"
188
- }
189
- } : {
175
+ ...C ? C.map((l) => {
176
+ var yt, _t, gt, vt, wt, kt, Ct, xt, St, Ft, Lt, Pt, Bt;
177
+ if (l.is_organizer) {
178
+ const Tt = m != null && m[l.email] ? m == null ? void 0 : m[l.email] : _ || "primary", K = f != null && f[l.email] ? f == null ? void 0 : f[l.email] : S != null && S.length ? S : ["primary"], Jt = K.length === 1 && K[0] === "primary";
179
+ return {
180
+ name: l.name ?? "",
181
+ email: l.email,
182
+ is_organizer: !0,
183
+ timezone: ((_t = (yt = p == null ? void 0 : p[l.email]) == null ? void 0 : yt[0]) == null ? void 0 : _t.timezone) ?? ((wt = (vt = (gt = l.availability) == null ? void 0 : gt.open_hours) == null ? void 0 : vt[0]) == null ? void 0 : wt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
184
+ availability: {
185
+ calendar_ids: Jt ? [Tt] : K,
186
+ open_hours: (p == null ? void 0 : p[l.email]) ?? ((kt = l.availability) == null ? void 0 : kt.open_hours) ?? []
187
+ },
188
+ booking: {
189
+ calendar_id: Tt
190
+ }
191
+ };
192
+ }
193
+ const x = m != null && m[l.email] ? { calendar_id: m == null ? void 0 : m[l.email] } : (l == null ? void 0 : l.booking) ?? void 0, q = (f == null ? void 0 : f[l.email]) ?? ((Ct = l.availability) == null ? void 0 : Ct.calendar_ids) ?? ["primary"], $t = q.length === 1 && q[0] === "primary";
194
+ return {
190
195
  ...l,
191
- timezone: ((ve = (ge = p == null ? void 0 : p[l.email]) == null ? void 0 : ge[0]) == null ? void 0 : ve.timezone) ?? ((Ce = (ke = (we = l.availability) == null ? void 0 : we.open_hours) == null ? void 0 : ke[0]) == null ? void 0 : Ce.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
196
+ timezone: ((St = (xt = p == null ? void 0 : p[l.email]) == null ? void 0 : xt[0]) == null ? void 0 : St.timezone) ?? ((Pt = (Lt = (Ft = l.availability) == null ? void 0 : Ft.open_hours) == null ? void 0 : Lt[0]) == null ? void 0 : Pt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
192
197
  availability: l.availability ? {
193
- calendar_ids: (f == null ? void 0 : f[l.email]) ?? ((xe = l.availability) == null ? void 0 : xe.calendar_ids) ?? ["primary"],
194
- open_hours: (p == null ? void 0 : p[l.email]) ?? ((Se = l.availability) == null ? void 0 : Se.open_hours) ?? []
198
+ calendar_ids: $t && typeof x < "u" ? [x == null ? void 0 : x.calendar_id] : q,
199
+ open_hours: (p == null ? void 0 : p[l.email]) ?? ((Bt = l.availability) == null ? void 0 : Bt.open_hours) ?? []
195
200
  } : void 0,
196
- booking: m != null && m[l.email] ? { calendar_id: m == null ? void 0 : m[l.email] } : (l == null ? void 0 : l.booking) ?? void 0
201
+ booking: x
197
202
  };
198
- })
203
+ }) : []
199
204
  ],
200
205
  event_booking: {
201
206
  title: (s == null ? void 0 : s.toString()) ?? "",
202
207
  description: (c == null ? void 0 : c.toString()) ?? "",
203
- location: (S == null ? void 0 : S.toString()) ?? "",
204
- booking_type: (F == null ? void 0 : F.toString()) ?? "booking",
208
+ location: (F == null ? void 0 : F.toString()) ?? "",
209
+ booking_type: (L == null ? void 0 : L.toString()) ?? "booking",
205
210
  timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
206
211
  conferencing: R,
207
212
  reminders: A
208
213
  },
209
214
  scheduler: {
210
- cancellation_policy: D ?? "",
211
- available_days_in_future: H ?? 30,
212
- min_cancellation_notice: O ?? 0,
213
- min_booking_notice: N ?? 60,
214
- hide_additional_guests: I ?? !1,
215
- hide_cancellation_options: M ?? !1,
215
+ cancellation_policy: I ?? "",
216
+ available_days_in_future: O ?? 30,
217
+ min_cancellation_notice: D ?? 0,
218
+ min_booking_notice: H ?? 60,
219
+ hide_additional_guests: M ?? !1,
220
+ hide_cancellation_options: N ?? !1,
216
221
  hide_rescheduling_options: z ?? !1,
217
222
  additional_fields: U,
218
223
  email_template: j,
219
224
  confirmation_redirect_url: $
220
225
  },
221
226
  appearance: V
222
- }, Oe = Fe(E, this.selectedConfiguration || {}), L = this.action === "create" ? Oe : E;
223
- this.isConfigRoundRobin(L) && (L.participants = L.participants.map((l) => ({ ...l, is_organizer: void 0 })));
224
- const Ne = (l) => {
227
+ }, zt = Et(T, this.selectedConfiguration || {}), P = this.action === "create" ? zt : T;
228
+ this.isConfigRoundRobin(P) && (P.participants = P.participants.map((l) => ({ ...l, is_organizer: void 0 })));
229
+ const Ut = (l) => {
225
230
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
226
231
  this.changesSaved = !1;
227
232
  }, 5e3);
228
- }, De = this.checkForBookingFormErrors(L), Ie = ((ue = this.configurations) == null ? void 0 : ue.find((l) => {
229
- var P;
230
- return l.id === ((P = this.selectedConfiguration) == null ? void 0 : P.id);
231
- })) || {}, Me = this.checkForOrganizerConfirmationError(Fe(L, Ie));
232
- De || Me || this.schedulerConfigChanged.emit({ config: L, resetLoadingState: Ne, setError: this.setError, action: this.action });
233
+ }, Rt = this.checkForBookingFormErrors(P), At = ((ft = this.configurations) == null ? void 0 : ft.find((l) => {
234
+ var x;
235
+ return l.id === ((x = this.selectedConfiguration) == null ? void 0 : x.id);
236
+ })) || {}, jt = this.checkForOrganizerConfirmationError(Et(P, At));
237
+ Rt || jt || this.schedulerConfigChanged.emit({ config: P, resetLoadingState: Ut, setError: this.setError, action: this.action });
233
238
  }, this.isConfigRoundRobin = (a) => {
234
- var n, i, r, s;
235
- return ((i = (n = a == null ? void 0 : a.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : i.availability_method) === "max-availability" || ((s = (r = a.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
239
+ var n, i, o, s;
240
+ return ((i = (n = a == null ? void 0 : a.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : i.availability_method) === "max-availability" || ((s = (o = a.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
236
241
  }, this.checkForOrganizerConfirmationError = (a) => {
237
242
  var c, d;
238
243
  let n = !1, i = "";
239
- const r = ((c = a.event_booking) == null ? void 0 : c.booking_type) === "organizer-confirmation", s = (d = a.scheduler) == null ? void 0 : d.organizer_confirmation_url;
240
- return r && !s && (i += "Organizer confirmation URL is required when using organizer confirmation booking type.", n = !0), n && (this.isLoading = !1, this.setError(new Error(i))), n;
244
+ const o = ((c = a.event_booking) == null ? void 0 : c.booking_type) === "organizer-confirmation", s = (d = a.scheduler) == null ? void 0 : d.organizer_confirmation_url;
245
+ return o && !s && (i += "Organizer confirmation URL is required when using organizer confirmation booking type.", n = !0), n && (this.isLoading = !1, this.setError(new Error(i))), n;
241
246
  }, this.checkForBookingFormErrors = (a) => {
242
247
  var s;
243
248
  let n = !1, i = "";
244
- const r = (s = a.scheduler) == null ? void 0 : s.additional_fields;
245
- return r && (i = "Booking form error: ", Object.entries(r).forEach((c) => {
249
+ const o = (s = a.scheduler) == null ? void 0 : s.additional_fields;
250
+ return o && (i = "Booking form error: ", Object.entries(o).forEach((c) => {
246
251
  const d = c[1];
247
252
  if (d.label === "") {
248
253
  i += `Label is required for field of type ${d.type}.`, n = !0;
@@ -256,15 +261,15 @@ const Be = class {
256
261
  }
257
262
  }
258
263
  })), n && (this.isLoading = !1, this.setError(new Error(i))), n;
259
- }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = o.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
264
+ }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = r.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
260
265
  }
261
- configChangedHandler(e) {
262
- h("[nylas-editor-tabs]", "configChangedHandler", e, this.selectedConfiguration), this.formState = {
263
- ...this.getFormStateFromConfig(e)
264
- }, e != null && e.id ? this.action = "edit" : this.action = "create";
266
+ configChangedHandler(t) {
267
+ h("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
268
+ ...this.getFormStateFromConfig(t)
269
+ }, t != null && t.id ? this.action = "edit" : this.action = "create";
265
270
  }
266
- userChangedHandler(e) {
267
- h("[nylas-editor-tabs]", "userChangedHandler", e), e && (this.formState = {
271
+ userChangedHandler(t) {
272
+ h("[nylas-editor-tabs]", "userChangedHandler", t), t && (this.formState = {
268
273
  ...this.getFormStateFromConfig(this.selectedConfiguration)
269
274
  });
270
275
  }
@@ -276,12 +281,12 @@ const Be = class {
276
281
  }
277
282
  componentDidLoad() {
278
283
  var a, n;
279
- h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Ue() && Re({
284
+ h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Zt() && Gt({
280
285
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
281
- release: "1.1.6",
286
+ release: "1.3.0",
282
287
  integrations: (i) => [
283
- ...i.filter((r) => !1),
284
- $e({
288
+ ...i.filter((o) => !1),
289
+ Kt({
285
290
  colorScheme: "system",
286
291
  autoInject: !1
287
292
  })
@@ -289,180 +294,182 @@ const Be = class {
289
294
  autoSessionTracking: !1,
290
295
  beforeSend: () => null
291
296
  }), (a = this.selectedConfiguration) != null && a.id && this.configChangedHandler(this.selectedConfiguration);
292
- const e = (n = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : n.name;
293
- e && (this.activeTab = e);
297
+ const t = (n = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : n.name;
298
+ t && (this.activeTab = t);
294
299
  }
295
300
  disconnectedCallback() {
296
301
  h("[nylas-editor-tabs]", "disconnectedCallback");
297
302
  }
298
- handleValueChanged(e) {
299
- h("[nylas-editor-tabs]", "handleValueChanged", e);
300
- const { name: a, value: n } = e.detail;
303
+ handleValueChanged(t) {
304
+ h("[nylas-editor-tabs]", "handleValueChanged", t);
305
+ const { name: a, value: n } = t.detail;
301
306
  this.setFormState(n, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "", this.schedulerEditorFormUpdated.emit({
302
- value: e.detail.value,
303
- name: e.detail.name
307
+ value: t.detail.value,
308
+ name: t.detail.name
304
309
  });
305
310
  }
306
311
  feedbackModalClosedHandler() {
307
312
  this.showFeedbackModal = !1;
308
313
  }
309
- feedbackSubmittedHandler(e) {
310
- var i, r;
314
+ feedbackSubmittedHandler(t) {
315
+ var i, o;
311
316
  const n = {
312
- eventId: Ae("Scheduler Editor User Feedback"),
313
- message: e.detail.feedback
317
+ eventId: Wt("Scheduler Editor User Feedback"),
318
+ message: t.detail.feedback
314
319
  };
315
- je(n, {
320
+ qt(n, {
316
321
  includeReplay: !0,
317
322
  captureContext: {
318
323
  tags: {
319
324
  "nylas-web-element": "nylas-scheduler-editor",
320
- "nylas-web-element-version": "1.1.6"
325
+ "nylas-web-element-version": "1.3.0"
321
326
  },
322
327
  extra: {
323
328
  configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
324
- slug: (r = this.selectedConfiguration) == null ? void 0 : r.slug
329
+ slug: (o = this.selectedConfiguration) == null ? void 0 : o.slug
325
330
  }
326
331
  }
327
332
  }), this.showFeedbackModal = !1;
328
333
  }
329
- getFormStateFromConfig(e) {
330
- var n, i, r, s, c, d, u, v, S, F, B, H, O, N, D, w, I, M, z, g, p, U, f, R, m, A, j, $, T, J, V, Z, b, k;
331
- let a = (n = e == null ? void 0 : e.participants) == null ? void 0 : n.find((y) => y.is_organizer);
332
- return !a && ((r = (i = e == null ? void 0 : e.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (a = (s = e == null ? void 0 : e.participants) == null ? void 0 : s.find((y) => {
333
- var _;
334
- return y.email === ((_ = this.currentUser) == null ? void 0 : _.email);
335
- }), a && (a.is_organizer = !0)), e != null && e.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
336
- title: ((c = e == null ? void 0 : e.event_booking) == null ? void 0 : c.title) ?? "",
337
- description: ((d = e == null ? void 0 : e.event_booking) == null ? void 0 : d.description) ?? "",
338
- duration: ((v = (u = e == null ? void 0 : e.availability) == null ? void 0 : u.duration_minutes) == null ? void 0 : v.toString()) ?? "30",
334
+ getFormStateFromConfig(t) {
335
+ var n, i, o, s, c, d, u, y, F, L, E, O, D, H, I, w, M, N, z, v, p, U, f, R, m, A, j, $, B, J, V, Z, b, S;
336
+ let a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((_) => _.is_organizer);
337
+ return !a && ((o = (i = t == null ? void 0 : t.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : o.availability_method) !== "collective" && (a = (s = t == null ? void 0 : t.participants) == null ? void 0 : s.find((_) => {
338
+ var g;
339
+ return _.email === ((g = this.currentUser) == null ? void 0 : g.email);
340
+ }), a && (a.is_organizer = !0)), t != null && t.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
341
+ title: ((c = t == null ? void 0 : t.event_booking) == null ? void 0 : c.title) ?? "",
342
+ description: ((d = t == null ? void 0 : t.event_booking) == null ? void 0 : d.description) ?? "",
343
+ duration: ((y = (u = t == null ? void 0 : t.availability) == null ? void 0 : u.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
339
344
  availability: {
340
- timezone: ((S = e == null ? void 0 : e.event_booking) == null ? void 0 : S.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
341
- openHours: ((B = (F = e == null ? void 0 : e.availability) == null ? void 0 : F.availability_rules) == null ? void 0 : B.default_open_hours) ?? Le
345
+ timezone: ((F = t == null ? void 0 : t.event_booking) == null ? void 0 : F.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
346
+ openHours: ((E = (L = t == null ? void 0 : t.availability) == null ? void 0 : L.availability_rules) == null ? void 0 : E.default_open_hours) ?? Ot
342
347
  },
343
- additionalFields: ((H = e == null ? void 0 : e.scheduler) == null ? void 0 : H.additional_fields) ?? {},
344
- conferencing: ((O = e == null ? void 0 : e.event_booking) == null ? void 0 : O.conferencing) ?? {},
345
- calendarIds: ((N = a == null ? void 0 : a.availability) == null ? void 0 : N.calendar_ids) ?? [],
346
- participants: (e == null ? void 0 : e.participants) ?? [],
347
- bookingCalendar: ((D = a == null ? void 0 : a.booking) == null ? void 0 : D.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
348
- location: ((w = e == null ? void 0 : e.event_booking) == null ? void 0 : w.location) ?? "",
349
- bookingType: ((I = e == null ? void 0 : e.event_booking) == null ? void 0 : I.booking_type) ?? "booking",
350
- buffer: ((z = (M = e == null ? void 0 : e.availability) == null ? void 0 : M.availability_rules) == null ? void 0 : z.buffer) ?? { before: 0, after: 0 },
351
- cancellationPolicy: ((g = e == null ? void 0 : e.scheduler) == null ? void 0 : g.cancellation_policy) ?? "",
352
- availableDaysInFuture: ((p = e == null ? void 0 : e.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
353
- minCancellationNotice: ((U = e == null ? void 0 : e.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
354
- minBookingNotice: ((f = e == null ? void 0 : e.scheduler) == null ? void 0 : f.min_booking_notice) ?? 60,
348
+ additionalFields: ((O = t == null ? void 0 : t.scheduler) == null ? void 0 : O.additional_fields) ?? {},
349
+ conferencing: ((D = t == null ? void 0 : t.event_booking) == null ? void 0 : D.conferencing) ?? {},
350
+ calendarIds: ((H = a == null ? void 0 : a.availability) == null ? void 0 : H.calendar_ids) ?? [],
351
+ participants: (t == null ? void 0 : t.participants) ?? [],
352
+ bookingCalendar: ((I = a == null ? void 0 : a.booking) == null ? void 0 : I.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
353
+ location: ((w = t == null ? void 0 : t.event_booking) == null ? void 0 : w.location) ?? "",
354
+ bookingType: ((M = t == null ? void 0 : t.event_booking) == null ? void 0 : M.booking_type) ?? "booking",
355
+ buffer: ((z = (N = t == null ? void 0 : t.availability) == null ? void 0 : N.availability_rules) == null ? void 0 : z.buffer) ?? { before: 0, after: 0 },
356
+ cancellationPolicy: ((v = t == null ? void 0 : t.scheduler) == null ? void 0 : v.cancellation_policy) ?? "",
357
+ availableDaysInFuture: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
358
+ minCancellationNotice: ((U = t == null ? void 0 : t.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
359
+ minBookingNotice: ((f = t == null ? void 0 : t.scheduler) == null ? void 0 : f.min_booking_notice) ?? 60,
355
360
  timeslotInterval: {
356
- interval: ((R = e == null ? void 0 : e.availability) == null ? void 0 : R.interval_minutes) ?? ((m = e == null ? void 0 : e.availability) == null ? void 0 : m.duration_minutes),
357
- roundTo: (A = e == null ? void 0 : e.availability) == null ? void 0 : A.round_to
361
+ interval: ((R = t == null ? void 0 : t.availability) == null ? void 0 : R.interval_minutes) ?? ((m = t == null ? void 0 : t.availability) == null ? void 0 : m.duration_minutes),
362
+ roundTo: (A = t == null ? void 0 : t.availability) == null ? void 0 : A.round_to
358
363
  },
359
- additionalGuestsHidden: ((j = e == null ? void 0 : e.scheduler) == null ? void 0 : j.hide_additional_guests) ?? !1,
360
- hideCancellationOptions: (($ = e == null ? void 0 : e.scheduler) == null ? void 0 : $.hide_cancellation_options) ?? !1,
361
- hideReschedulingOptions: ((T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.hide_rescheduling_options) ?? !1,
362
- participantBookingCalendars: ((J = e == null ? void 0 : e.participants) == null ? void 0 : J.reduce((y, _) => {
363
- var C, E;
364
- return (C = _.booking) != null && C.calendar_id && (y[_.email] = (E = _.booking) == null ? void 0 : E.calendar_id), y;
364
+ additionalGuestsHidden: ((j = t == null ? void 0 : t.scheduler) == null ? void 0 : j.hide_additional_guests) ?? !1,
365
+ hideCancellationOptions: (($ = t == null ? void 0 : t.scheduler) == null ? void 0 : $.hide_cancellation_options) ?? !1,
366
+ hideReschedulingOptions: ((B = t == null ? void 0 : t.scheduler) == null ? void 0 : B.hide_rescheduling_options) ?? !1,
367
+ participantBookingCalendars: ((J = t == null ? void 0 : t.participants) == null ? void 0 : J.reduce((_, g) => {
368
+ var C, T;
369
+ return (C = g.booking) != null && C.calendar_id && (_[g.email] = (T = g.booking) == null ? void 0 : T.calendar_id), _;
365
370
  })) ?? {},
366
- participantCalendars: ((V = e == null ? void 0 : e.participants) == null ? void 0 : V.reduce((y, _) => {
371
+ participantCalendars: ((V = t == null ? void 0 : t.participants) == null ? void 0 : V.reduce((_, g) => {
367
372
  var C;
368
- return y[_.email] = (C = _.availability) == null ? void 0 : C.calendar_ids, y;
373
+ return _[g.email] = (C = g.availability) == null ? void 0 : C.calendar_ids, _;
369
374
  }, {})) ?? {},
370
- reminders: (Z = e == null ? void 0 : e.event_booking) == null ? void 0 : Z.reminders,
371
- emailTemplate: (b = e == null ? void 0 : e.scheduler) == null ? void 0 : b.email_template,
372
- redirectUrl: (k = e == null ? void 0 : e.scheduler) == null ? void 0 : k.confirmation_redirect_url,
373
- slug: e == null ? void 0 : e.slug,
374
- appearance: e == null ? void 0 : e.appearance,
375
- name: e == null ? void 0 : e.name
375
+ reminders: (Z = t == null ? void 0 : t.event_booking) == null ? void 0 : Z.reminders,
376
+ emailTemplate: (b = t == null ? void 0 : t.scheduler) == null ? void 0 : b.email_template,
377
+ redirectUrl: (S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.confirmation_redirect_url,
378
+ slug: t == null ? void 0 : t.slug,
379
+ appearance: t == null ? void 0 : t.appearance,
380
+ name: t == null ? void 0 : t.name
376
381
  };
377
382
  }
378
- setFormState(e, a) {
383
+ setFormState(t, a) {
379
384
  switch (a) {
380
385
  case "title":
381
- this.formState.title = e.toString();
386
+ this.formState.title = t.toString();
382
387
  break;
383
388
  case "description":
384
- this.formState.description = e.toString();
389
+ this.formState.description = t.toString();
385
390
  break;
386
391
  case "duration":
387
- this.formState.duration = e.toString();
392
+ this.formState.duration = t.toString();
388
393
  break;
389
394
  case "availability":
390
- this.formState.availability = JSON.parse(e.toString());
395
+ this.formState.availability = JSON.parse(t.toString());
391
396
  break;
392
397
  case "participants":
393
- this.formState.participants = JSON.parse(e.toString());
398
+ this.formState.participants = JSON.parse(t.toString());
394
399
  break;
395
400
  case "booking-calendar":
396
- this.formState.bookingCalendar = e.toString();
401
+ this.formState.bookingCalendar = t.toString();
397
402
  break;
398
403
  case "participant-booking-calendars":
399
- this.formState.participantBookingCalendars = JSON.parse(e.toString());
404
+ this.formState.participantBookingCalendars = JSON.parse(t.toString());
400
405
  break;
401
406
  case "location":
402
- this.formState.location = e.toString();
407
+ this.formState.location = t.toString();
403
408
  break;
404
409
  case "conference":
405
- this.formState.conferencing = JSON.parse(e.toString());
410
+ this.formState.conferencing = JSON.parse(t.toString());
406
411
  break;
407
412
  case "confirmation-type":
408
- this.formState.bookingType = e.toString();
413
+ this.formState.bookingType = t.toString();
409
414
  break;
410
415
  case "buffer-time":
411
- this.formState.buffer = JSON.parse(e.toString());
416
+ this.formState.buffer = JSON.parse(t.toString());
412
417
  break;
413
418
  case "limit-future-bookings":
414
- this.formState.availableDaysInFuture = parseInt(e.toString());
419
+ this.formState.availableDaysInFuture = parseInt(t.toString());
415
420
  break;
416
421
  case "min-cancellation-notice":
417
- this.formState.minCancellationNotice = parseInt(e.toString());
422
+ this.formState.minCancellationNotice = parseInt(t.toString());
418
423
  break;
419
424
  case "min-booking-notice":
420
- this.formState.minBookingNotice = parseInt(e.toString());
425
+ this.formState.minBookingNotice = parseInt(t.toString());
421
426
  break;
422
427
  case "cancellation-policy":
423
- this.formState.cancellationPolicy = e.toString();
428
+ this.formState.cancellationPolicy = t.toString();
424
429
  break;
425
430
  case "timeslot-interval":
426
- this.formState.timeslotInterval = JSON.parse(e.toString());
431
+ this.formState.timeslotInterval = JSON.parse(t.toString());
427
432
  break;
428
- case "customize-booking-settings":
429
- const n = JSON.parse(e.toString());
433
+ case "customize-booking-settings": {
434
+ const n = JSON.parse(t.toString());
430
435
  this.formState.additionalGuestsHidden = n.additionalGuestsHidden, this.formState.hideCancellationOptions = n.hideCancellationOptions, this.formState.hideReschedulingOptions = n.hideReschedulingOptions;
431
436
  break;
432
- case "participant-custom-availability":
433
- const i = JSON.parse(e.toString());
434
- this.formState.participantOpenHours = i;
437
+ }
438
+ case "participant-custom-availability": {
439
+ const n = JSON.parse(t.toString());
440
+ this.formState.participantOpenHours = n;
435
441
  break;
442
+ }
436
443
  case "additional-fields":
437
- this.formState.additionalFields = e;
444
+ this.formState.additionalFields = t;
438
445
  break;
439
446
  case "connected-calendars":
440
- this.formState.participantCalendars = JSON.parse(e.toString());
447
+ this.formState.participantCalendars = JSON.parse(t.toString());
441
448
  break;
442
449
  case "confirmation-email-template":
443
- this.formState.emailTemplate = JSON.parse(e.toString());
450
+ this.formState.emailTemplate = JSON.parse(t.toString());
444
451
  break;
445
452
  case "reminder-overrides":
446
- this.formState.reminders = JSON.parse(e.toString());
453
+ this.formState.reminders = JSON.parse(t.toString());
447
454
  break;
448
455
  case "confirmation-redirect":
449
- this.formState.redirectUrl = e.toString();
456
+ this.formState.redirectUrl = t.toString();
450
457
  break;
451
458
  case "availability-method":
452
- this.formState.availabilityMethod = e.toString();
459
+ this.formState.availabilityMethod = t.toString();
453
460
  break;
454
461
  case "custom-event-slug":
455
- this.formState.slug = JSON.parse(e.toString());
462
+ this.formState.slug = JSON.parse(t.toString());
456
463
  break;
457
464
  case "page-styling":
458
- this.formState.appearance = JSON.parse(e.toString());
465
+ this.formState.appearance = JSON.parse(t.toString());
459
466
  break;
460
467
  case "page-name":
461
- this.formState.name = JSON.parse(e.toString());
468
+ this.formState.name = JSON.parse(t.toString());
462
469
  break;
463
470
  }
464
471
  this.schedulerEditorFormUpdated.emit({
465
- value: e,
472
+ value: t,
466
473
  name: a
467
474
  });
468
475
  }
@@ -471,31 +478,31 @@ const Be = class {
471
478
  this.setFormState(a, n);
472
479
  }), this.formState = { ...this.formState }, this.formState;
473
480
  }
474
- setActiveTab(e, a) {
475
- e.preventDefault(), this.updateFormState(), this.activeTab = a;
481
+ setActiveTab(t, a) {
482
+ t.preventDefault(), this.updateFormState(), this.activeTab = a;
476
483
  }
477
- hideTab(e) {
484
+ hideTab(t) {
478
485
  var a;
479
- return ((a = this.hideEditorTabs) == null ? void 0 : a.includes(e)) || !1;
486
+ return ((a = this.hideEditorTabs) == null ? void 0 : a.includes(t)) || !1;
480
487
  }
481
- onFeedbackClick(e) {
482
- e.preventDefault(), this.showFeedbackModal = !0;
488
+ onFeedbackClick(t) {
489
+ t.preventDefault(), this.showFeedbackModal = !0;
483
490
  }
484
491
  render() {
485
- var e, a;
486
- return h("[nylas-editor-tabs]", "render", this.formState), t(Te, { key: "d38db7df3b55dcd9df5d23c06a2257e483e4f881" }, t("form", { key: "f75efd88f7a329288e77933ca218fa88e9dd8a87", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? t("div", { class: "form-contents" }, t("div", { class: "tabs" }, t("button", { name: o.EventInfo, class: { tab: !0, active: this.activeTab == o.EventInfo, hide: this.hideTab(o.EventInfo) }, part: "editortab__event-info", onClick: (n) => this.setActiveTab(n, o.EventInfo) }, t("calendar-info-icon", { width: "16", height: "16" }), "Event info"), t("button", { name: o.Availability, class: { tab: !0, active: this.activeTab == o.Availability, hide: this.hideTab(o.Availability) }, part: "editortab__availability", onClick: (n) => this.setActiveTab(n, o.Availability) }, t("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), t("button", { name: o.Participants, class: { tab: !0, active: this.activeTab == o.Participants, hide: this.hideTab(o.Participants) }, part: "editortab__participants", onClick: (n) => this.setActiveTab(n, o.Participants) }, t("people-icon", { width: "16", height: "16" }), "Participants"), t("button", { name: o.BookingOptions, class: { tab: !0, active: this.activeTab == o.BookingOptions, hide: this.hideTab(o.BookingOptions) }, part: "editortab__booking-options", onClick: (n) => this.setActiveTab(n, o.BookingOptions) }, t("flow-icon", { width: "16", height: "16" }), "Booking options"), t("button", { name: o.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(o.BookingForm) }, part: "editortab__booking-form", onClick: (n) => this.setActiveTab(n, o.BookingForm) }, this.activeTab == o.BookingForm ? t("calendar-agenda-fill-icon", { width: "16", height: "16" }) : t("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), t("button", { name: o.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(o.Communications) }, onClick: (n) => this.setActiveTab(n, o.Communications) }, this.activeTab == o.Communications ? t("envelope-fill-icon", { width: "16", height: "16" }) : t("envelope-icon", { width: "16", height: "16" }), "Communications"), t("button", { name: o.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(o.PageStyles) }, onClick: (n) => this.setActiveTab(n, o.PageStyles) }, this.activeTab == o.PageStyles ? t("paintbrush-fill-icon", { width: "16", height: "16" }) : t("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), t("div", { class: "tab-content" }, t(Ke, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new" }))) : t("div", { class: "composable", key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, t("slot", null)), t("div", { key: "33fa467828de45477cb14547e83cd91d3316d1de", class: "footer", part: "editor__footer" }, t("div", { key: "e94586ffcb339ed0134db7dba554add942b9658b", class: "preview", part: "editor__footer-preview" }, this.enableUserFeedback && t("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (n) => this.onFeedbackClick(n) }, t("feedback-icon", null))), t("div", { key: "ba9415c331d169876f6f64e048d295c494066fb0", class: "buttons", part: "editor__footer-buttons" }, t("p", { key: "b985139923dac06f300329c63100bb322a72e215", class: {
492
+ var t, a;
493
+ return h("[nylas-editor-tabs]", "render", this.formState), e(Dt, { key: "8cbf8365afc709571094e6a51cf527c6abe70936" }, e("form", { key: "58041aa03811eab4edc4b27c758f4118778ecd4c", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, e("div", { class: "tabs", part: "editor__tabs net__tabs" }, e("button", { name: r.EventInfo, class: { tab: !0, active: this.activeTab == r.EventInfo, hide: this.hideTab(r.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (n) => this.setActiveTab(n, r.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), "Event info"), e("button", { name: r.Availability, class: { tab: !0, active: this.activeTab == r.Availability, hide: this.hideTab(r.Availability) }, part: "editortab__availability net__tab-availability", onClick: (n) => this.setActiveTab(n, r.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { name: r.Participants, class: { tab: !0, active: this.activeTab == r.Participants, hide: this.hideTab(r.Participants) }, part: "editortab__participants net__tab-participants", onClick: (n) => this.setActiveTab(n, r.Participants) }, e("people-icon", { width: "16", height: "16" }), "Participants"), e("button", { name: r.BookingOptions, class: { tab: !0, active: this.activeTab == r.BookingOptions, hide: this.hideTab(r.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (n) => this.setActiveTab(n, r.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), "Booking options"), e("button", { name: r.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(r.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (n) => this.setActiveTab(n, r.BookingForm) }, this.activeTab == r.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), e("button", { name: r.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(r.Communications) }, onClick: (n) => this.setActiveTab(n, r.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == r.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), "Communications"), e("button", { name: r.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(r.PageStyles) }, onClick: (n) => this.setActiveTab(n, r.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == r.PageStyles ? e("paintbrush-fill-icon", { width: "16", height: "16" }) : e("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), e("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, e(ne, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "new" }))) : e("div", { class: "composable", key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, e("slot", null)), e("div", { key: "7f23084e92f45c6654728665366513eb6c72ea2b", class: "footer", part: "editor__footer net__footer" }, e("div", { key: "cd40dd405909fa29828200cb45a8ab9d4acfb120", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && e("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (n) => this.onFeedbackClick(n) }, e("feedback-icon", null))), e("div", { key: "ff34829d21f8728ef7b5c8f3493591ff0645df9b", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, e("p", { key: "2e3ab65ac01c28cb54dd9410f6c709d89ee86e42", class: {
487
494
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
488
495
  "saved-changes": this.changesSaved,
489
496
  error: this.error !== "",
490
497
  "error-full-width": this.error !== "" && this.action === "create"
491
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && t("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (n) => {
492
- n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(K(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
493
- }, variant: "basic" }, t("eye-icon", null)), t("button-component", { key: "e8b658f3fe6dea039818fe7e5803c7876dcf516a", type: "button", disabled: this.isLoading, clickHandler: (n) => {
498
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (n) => {
499
+ n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(Y(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
500
+ }, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "cf9be4337b438cbb3b4e02c9afab2068278d81a7", type: "button", disabled: this.isLoading, clickHandler: (n) => {
494
501
  n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
495
- }, variant: "basic", part: "editor__footer-cancel" }, "Back"), t("button-component", { key: "def3baeb44f02d4a168d4946fe46c158d9872d8a", type: "submit", disabled: this.isLoading, part: "editor__footer-cta" }, this.isLoading ? t("span", null, "Saving", t("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && t("nylas-feedback-form", null));
502
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, "Back"), e("button-component", { key: "c573a8aefbe700a9340a3a79bbb9bb2059ba2a8d", type: "submit", disabled: this.isLoading, part: "editor__footer-cta net__footer-cta" }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && e("nylas-feedback-form", null));
496
503
  }
497
504
  get host() {
498
- return Ee(this);
505
+ return Ht(this);
499
506
  }
500
507
  static get watchers() {
501
508
  return {
@@ -504,8 +511,8 @@ const Be = class {
504
511
  };
505
512
  }
506
513
  };
507
- Ye([
508
- Pe({
514
+ oe([
515
+ It({
509
516
  name: "nylas-editor-tabs",
510
517
  stateToProps: /* @__PURE__ */ new Map([
511
518
  ["schedulerConfig.calendars", "calendars"],
@@ -514,12 +521,12 @@ Ye([
514
521
  ["schedulerConfig.configurations", "configurations"]
515
522
  ]),
516
523
  eventToProps: {
517
- schedulerConfigChanged: async (e, a) => {
518
- const { resetLoadingState: n, setError: i, action: r, config: s } = e.detail, c = (d) => {
519
- const [u, v] = d;
520
- !u && v && i && i(v), n && n(e);
524
+ schedulerConfigChanged: async (t, a) => {
525
+ const { resetLoadingState: n, setError: i, action: o, config: s } = t.detail, c = (d) => {
526
+ const [u, y] = d;
527
+ !u && y && i && i(y), n && n(t);
521
528
  };
522
- if (r === "edit") {
529
+ if (o === "edit") {
523
530
  const d = await a.schedulerConfig.updateConfiguration(s);
524
531
  c(d);
525
532
  } else {
@@ -527,17 +534,17 @@ Ye([
527
534
  c(d);
528
535
  }
529
536
  },
530
- cancelButtonClick: async (e, a) => {
537
+ cancelButtonClick: async (t, a) => {
531
538
  a.schedulerConfigStore.state.action = null;
532
539
  },
533
- previewButtonClicked: async (e, a) => {
540
+ previewButtonClicked: async (t, a) => {
534
541
  h("[nylas-editor-tabs]", "previewButtonClicked", a);
535
542
  },
536
- formSubmitted: async (e, a) => {
543
+ formSubmitted: async (t, a) => {
537
544
  h("[nylas-editor-tabs]", "formSubmitted", a);
538
545
  },
539
- schedulerEditorFormUpdated: async (e, a) => {
540
- h("[nylas-editor-tabs]", "schedulerEditorFormUpdated", e);
546
+ schedulerEditorFormUpdated: async (t, a) => {
547
+ h("[nylas-editor-tabs]", "schedulerEditorFormUpdated", t);
541
548
  }
542
549
  },
543
550
  localPropsToProp: /* @__PURE__ */ new Map([
@@ -547,34 +554,34 @@ Ye([
547
554
  ]),
548
555
  fireRegisterEvent: !0
549
556
  }),
550
- W("design:type", Function),
551
- W("design:paramtypes", []),
552
- W("design:returntype", void 0)
553
- ], Be.prototype, "render", null);
554
- Be.style = Xe;
555
- const et = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:1rem;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{text-align:right}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}', tt = et;
556
- var at = function(e, a, n, i) {
557
- var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
557
+ Q("design:type", Function),
558
+ Q("design:paramtypes", []),
559
+ Q("design:returntype", void 0)
560
+ ], Mt.prototype, "render", null);
561
+ Mt.style = se;
562
+ const re = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:1rem;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{text-align:right}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', le = re;
563
+ var de = function(t, a, n, i) {
564
+ var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
558
565
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
559
- s = Reflect.decorate(e, a, n, i);
566
+ s = Reflect.decorate(t, a, n, i);
560
567
  else
561
- for (var d = e.length - 1; d >= 0; d--)
562
- (c = e[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
563
- return r > 3 && s && Object.defineProperty(a, n, s), s;
564
- }, q = function(e, a) {
568
+ for (var d = t.length - 1; d >= 0; d--)
569
+ (c = t[d]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
570
+ return o > 3 && s && Object.defineProperty(a, n, s), s;
571
+ }, X = function(t, a) {
565
572
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
566
- return Reflect.metadata(e, a);
573
+ return Reflect.metadata(t, a);
567
574
  };
568
- const He = class {
569
- constructor(e) {
570
- G(this, e), this.initListConfigurations = x(this, "initListConfigurations", 7), this.createButtonClick = x(this, "createButtonClick", 7), this.editButtonClick = x(this, "editButtonClick", 7), this.deleteButtonClick = x(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1;
575
+ const Nt = class {
576
+ constructor(t) {
577
+ W(this, t), this.initListConfigurations = k(this, "initListConfigurations", 7), this.createButtonClick = k(this, "createButtonClick", 7), this.editButtonClick = k(this, "editButtonClick", 7), this.deleteButtonClick = k(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
571
578
  }
572
- listConfigurationsNextCursorChangedHandler(e, a) {
573
- if (!e || e === a) {
574
- e === null && (this.disableNextPageButton = !0);
579
+ listConfigurationsNextCursorChangedHandler(t, a) {
580
+ if (!t || t === a) {
581
+ t === null && (this.disableNextPageButton = !0);
575
582
  return;
576
583
  }
577
- this.disableNextPageButton = !1, this.currentCursor = e;
584
+ this.disableNextPageButton = !1, this.currentCursor = t;
578
585
  }
579
586
  connectedCallback() {
580
587
  h("[nylas-list-configurations]", "connectedCallback");
@@ -590,35 +597,47 @@ const He = class {
590
597
  disconnectedCallback() {
591
598
  h("[nylas-list-configurations]", "disconnectedCallback");
592
599
  }
593
- async handleNylasFormDropdownChanged(e) {
594
- h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", e.detail);
595
- const { value: a } = e.detail, [n, i] = a.split("-");
596
- switch (e.preventDefault(), n) {
600
+ async handleNylasFormDropdownChanged(t) {
601
+ var o;
602
+ h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", t.detail);
603
+ const { value: a } = t.detail, [n, i] = a.split("-");
604
+ switch (t.preventDefault(), n) {
597
605
  case "delete":
598
- this.deleteButtonClick.emit({ host: this.host, configuration: this.configurations[i] });
606
+ this.deleteConfigurationId = (o = this.configurations[i]) == null ? void 0 : o.id;
599
607
  break;
600
608
  case "preview":
601
- window.open(K(this.schedulerPreviewLink, this.configurations[i]), "_blank");
609
+ window.open(Y(this.schedulerPreviewLink, this.configurations[i]), "_blank");
602
610
  break;
603
611
  case "copy":
604
- await navigator.clipboard.writeText(K(this.schedulerPreviewLink, this.configurations[i]));
612
+ await navigator.clipboard.writeText(Y(this.schedulerPreviewLink, this.configurations[i]));
605
613
  break;
606
614
  }
607
615
  }
608
616
  async getState() {
609
617
  return this.state;
610
618
  }
611
- async setState(e) {
612
- this.state = e;
619
+ async setState(t) {
620
+ this.state = t;
621
+ }
622
+ async setError(t) {
623
+ this.error = t;
624
+ }
625
+ async hideDeleteConfirmation() {
626
+ this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
627
+ }
628
+ closeModal(t) {
629
+ t.preventDefault(), this.deleteConfigurationId = "";
613
630
  }
614
- async setError(e) {
615
- this.error = e;
631
+ handleConfirmDeleteButtonClicked(t) {
632
+ t.preventDefault(), this.showDeleteButtonLoading = !0;
633
+ const a = this.configurations.find((n) => n.id === this.deleteConfigurationId);
634
+ a && (a != null && a.id) && this.deleteButtonClick.emit({ host: this.host, configuration: a });
616
635
  }
617
- getDurationString(e) {
618
- const a = Math.floor(e / 60), n = e % 60;
636
+ getDurationString(t) {
637
+ const a = Math.floor(t / 60), n = t % 60;
619
638
  return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${n || ""} ${n ? `${n > 1 ? "mins" : "min"}` : ""}`;
620
639
  }
621
- getActionLabelHTML(e) {
640
+ getActionLabelHTML(t) {
622
641
  const a = {
623
642
  display: "inline-flex",
624
643
  alignItems: "center",
@@ -626,13 +645,13 @@ const He = class {
626
645
  }, n = {
627
646
  color: "var(--nylas-error)"
628
647
  };
629
- switch (e) {
648
+ switch (t) {
630
649
  case "preview":
631
- return t("span", { style: a }, t("eye-icon", { width: "16", height: "16" }), "Preview");
650
+ return e("span", { style: a }, e("eye-icon", { width: "16", height: "16" }), "Preview");
632
651
  case "copy":
633
- return t("span", { style: a }, t("copy-icon", { width: "16", height: "16" }), "Copy");
652
+ return e("span", { style: a }, e("copy-icon", { width: "16", height: "16" }), "Copy link");
634
653
  case "delete":
635
- return t("span", { style: { ...a, ...n } }, t("delete-icon", { width: "15", height: "17" }), "Delete");
654
+ return e("span", { style: { ...a, ...n } }, e("delete-icon", { width: "15", height: "17" }), "Delete");
636
655
  default:
637
656
  return "";
638
657
  }
@@ -641,10 +660,10 @@ const He = class {
641
660
  if (this.previousCursors.length === 0)
642
661
  return;
643
662
  this.currentCursor = this.previousCursors.pop() || null;
644
- const e = this.previousCursors[this.previousCursors.length - 1] || void 0;
663
+ const t = this.previousCursors[this.previousCursors.length - 1] || void 0;
645
664
  this.initListConfigurations.emit({
646
665
  host: this.host,
647
- cursor: e
666
+ cursor: t
648
667
  });
649
668
  }
650
669
  nextPageClickedHandler() {
@@ -654,28 +673,30 @@ const He = class {
654
673
  }));
655
674
  }
656
675
  render() {
657
- var e;
658
- return t(Te, null, t("div", { class: "header" }, t("div", { class: "description" }, t("h2", null, "All Scheduling Pages"), t("p", null, "Create and manage your Scheduling Pages.")), this.configurations && this.configurations.length > 0 && t("div", { class: "actions" }, t("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
676
+ var t;
677
+ return e(Dt, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, "All Scheduling Pages"), e("p", null, "Create and manage your Scheduling Pages.")), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
659
678
  this.createButtonClick.emit(this.host);
660
- } }, "Create new"))), t("div", { class: "configurations" }, t("div", { class: "table-container" }, t("table", { class: {
679
+ } }, "Create new"))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
661
680
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
662
- } }, t("tr", { class: {
681
+ } }, e("tr", { class: {
663
682
  hide: this.state === "loading" || this.configurations && this.configurations.length === 0
664
- } }, t("th", null, "Page title"), t("th", null, "Duration"), t("th", null)), this.state === "loading" && t("tr", { class: "no-configurations" }, t("td", { colSpan: 3 }, t("div", null, t("h3", null, "Loading..."), t("p", null, "Please wait while we fetch the scheduling pages")))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && t("tr", { class: "no-configurations" }, t("td", { colSpan: 3 }, t("div", null, t("calendar-icon", { width: "48", height: "48" }), t("h3", null, "No scheduling pages found"), t("p", null, "Get started with creating your first scheduling page"), t("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
683
+ } }, e("th", null, "Page title"), e("th", null, "Duration"), e("th", null)), this.state === "loading" && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("h3", null, "Loading..."), e("p", null, "Please wait while we fetch the scheduling pages")))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("calendar-icon", { width: "48", height: "48" }), e("h3", null, "No scheduling pages found"), e("p", null, "Get started with creating your first scheduling page"), e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
665
684
  this.createButtonClick.emit(this.host);
666
- } }, "Create new")))), this.state !== "loading" && ((e = this.configurations) == null ? void 0 : e.map((a, n) => {
667
- var i, r, s, c;
668
- return t("tr", { key: a == null ? void 0 : a.id }, t("td", null, t("div", { class: "title" }, t("div", { class: "config-event-title", title: (i = a == null ? void 0 : a.event_booking) == null ? void 0 : i.title }, (r = a == null ? void 0 : a.event_booking) == null ? void 0 : r.title), t("div", { class: "config-event-description" }, (s = a == null ? void 0 : a.event_booking) == null ? void 0 : s.description))), t("td", null, t("div", { class: "duration" }, this.getDurationString((c = a == null ? void 0 : a.availability) == null ? void 0 : c.duration_minutes))), t("td", null, t("div", { class: "actions" }, t("button-component", { variant: "basic", key: `edit-${n}`, clickHandler: (d) => {
685
+ } }, "Create new")))), this.state !== "loading" && ((t = this.configurations) == null ? void 0 : t.map((a, n) => {
686
+ var i, o, s, c;
687
+ return e("tr", { key: a == null ? void 0 : a.id }, e("td", null, e("div", { class: "title" }, e("div", { class: "config-event-title", title: (i = a == null ? void 0 : a.event_booking) == null ? void 0 : i.title }, (o = a == null ? void 0 : a.event_booking) == null ? void 0 : o.title), e("div", { class: "config-event-description" }, (s = a == null ? void 0 : a.event_booking) == null ? void 0 : s.description))), e("td", null, e("div", { class: "duration" }, this.getDurationString((c = a == null ? void 0 : a.availability) == null ? void 0 : c.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", key: `edit-${n}`, clickHandler: (d) => {
669
688
  d.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
670
- } }, t("edit-icon", { width: "16", height: "16" }), "Edit"), t("select-dropdown", { name: "actions", options: [
689
+ } }, e("edit-icon", { width: "16", height: "16" }), "Edit"), e("select-dropdown", { name: "actions", options: [
671
690
  { value: `preview-${n}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
672
691
  { value: `copy-${n}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
673
692
  { value: `delete-${n}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
674
693
  ], defaultSelectedOption: { value: "", label: "" }, dropdownButtonText: "...", withSearch: !1, withChevron: !1, exportparts: "sd_dropdown: actions__dropdown, sd_dropdown-button: actions__dropdown-button, sd_dropdown-content: actions__dropdown-content" }))));
675
- })))), t("div", { class: "pagination" }, t("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, t("chevron-icon", null)), t("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, t("chevron-icon", null)))), this.state === "error" && t("div", { class: "error-container" }, t("p", { class: "error" }, this.error)));
694
+ })))), e("div", { class: "pagination" }, e("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, e("chevron-icon", null)), e("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, e("chevron-icon", null)))), this.state === "error" && e("div", { class: "error-container" }, e("p", { class: "error" }, this.error)), !!this.deleteConfigurationId && e("div", { class: "card-wrapper" }, e("div", { class: "card-modal" }, e("div", { class: "close-button" }, e("button-component", { tooltip: "Close", id: "close", variant: "invisible", onClick: (a) => this.closeModal(a), part: "nfbf__close-button" }, e("close-icon", null))), e("div", { class: "header" }, e("h2", { slot: "card-title", part: "nfbf__title" }, G.t("deleteSchedulingPageTitle"))), e("div", { class: "description title-desc" }, e("p", null, G.t("deleteSchedulingPageDescription"))), e("div", { class: {
695
+ footer: !0
696
+ } }, e("button-component", { variant: "basic", onClick: (a) => this.closeModal(a), part: "nfbf__button-outline nfbf__cancel-cta" }, `${G.t("deleteSchedulingPageCancelButton")}`), e("button-component", { variant: "destructive", onClick: (a) => this.handleConfirmDeleteButtonClicked(a), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${G.t("deleteSchedulingPageConfirmButton")}`)))));
676
697
  }
677
698
  get host() {
678
- return Ee(this);
699
+ return Ht(this);
679
700
  }
680
701
  static get watchers() {
681
702
  return {
@@ -683,8 +704,8 @@ const He = class {
683
704
  };
684
705
  }
685
706
  };
686
- at([
687
- Pe({
707
+ de([
708
+ It({
688
709
  name: "nylas-list-configurations",
689
710
  stateToProps: /* @__PURE__ */ new Map([
690
711
  ["schedulerConfig.configurations", "configurations"],
@@ -692,38 +713,38 @@ at([
692
713
  ]),
693
714
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
694
715
  eventToProps: {
695
- initListConfigurations: async (e, a) => {
696
- const { host: n, cursor: i } = e.detail;
716
+ initListConfigurations: async (t, a) => {
717
+ const { host: n, cursor: i } = t.detail;
697
718
  await n.setState("loading");
698
- const [r, s] = await a.schedulerConfig.getConfigurations(i);
699
- if (!r && s && s.message) {
719
+ const [o, s] = await a.schedulerConfig.getConfigurations(i);
720
+ if (!o && s && s.message) {
700
721
  await n.setState("error"), await n.setError(s.message);
701
722
  return;
702
723
  }
703
724
  await n.setState("loaded");
704
725
  },
705
- createButtonClick: async (e, a) => {
726
+ createButtonClick: async (t, a) => {
706
727
  a.schedulerConfigStore.resetSelectedConfiguration(), a.schedulerConfigStore.state.action = "create";
707
728
  },
708
- deleteButtonClick: async (e, a) => {
709
- const { host: n, configuration: i } = e.detail, [r, s] = await a.schedulerConfig.deleteConfiguration(i.id);
710
- !r && s && s.message && (await n.setState("error"), await n.setError(s.message));
729
+ deleteButtonClick: async (t, a) => {
730
+ const { host: n, configuration: i } = t.detail, [o, s] = await a.schedulerConfig.deleteConfiguration(i.id);
731
+ !o && s && s.message && (await n.setState("error"), await n.setError(s.message)), await n.hideDeleteConfirmation();
711
732
  },
712
- editButtonClick: async (e, a) => {
713
- const { configuration: n } = e.detail;
733
+ editButtonClick: async (t, a) => {
734
+ const { configuration: n } = t.detail;
714
735
  a.schedulerConfigStore.state.selectedConfiguration = n, a.schedulerConfigStore.state.action = "edit";
715
736
  }
716
737
  },
717
738
  fireRegisterEvent: !0
718
739
  }),
719
- q("design:type", Function),
720
- q("design:paramtypes", []),
721
- q("design:returntype", void 0)
722
- ], He.prototype, "render", null);
723
- He.style = tt;
740
+ X("design:type", Function),
741
+ X("design:paramtypes", []),
742
+ X("design:returntype", void 0)
743
+ ], Nt.prototype, "render", null);
744
+ Nt.style = le;
724
745
  export {
725
- Ze as google_logo_icon,
726
- qe as microsoft_logo_icon,
727
- Be as nylas_editor_tabs,
728
- He as nylas_list_configurations
746
+ Yt as google_logo_icon,
747
+ ae as microsoft_logo_icon,
748
+ Mt as nylas_editor_tabs,
749
+ Nt as nylas_list_configurations
729
750
  };