@nylas/react 1.1.5 → 1.1.7

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 (227) hide show
  1. package/dist/{add-circle-icon_2.entry-31acee1d.cjs → add-circle-icon_2.entry-5814b516.cjs} +1 -1
  2. package/dist/{add-circle-icon_2.entry-1e899552.js → add-circle-icon_2.entry-5db67b5b.js} +1 -1
  3. package/dist/add-circle-icon_2.entry-95b23b9d.js +25 -0
  4. package/dist/add-circle-icon_2.entry-ae11c837.cjs +1 -0
  5. package/dist/{archive-icon.entry-e932c9e6.cjs → archive-icon.entry-10ebbf9a.cjs} +1 -1
  6. package/dist/archive-icon.entry-2ead8ef0.cjs +1 -0
  7. package/dist/{archive-icon.entry-b5f307e8.js → archive-icon.entry-769e863b.js} +1 -1
  8. package/dist/archive-icon.entry-b28d195c.js +15 -0
  9. package/dist/{arrow-icon.entry-e35a6cad.cjs → arrow-icon.entry-024d613a.cjs} +1 -1
  10. package/dist/{arrow-icon.entry-aae2e22d.js → arrow-icon.entry-1ebd553a.js} +1 -1
  11. package/dist/arrow-icon.entry-8de38831.cjs +1 -0
  12. package/dist/arrow-icon.entry-e29d7a6c.js +15 -0
  13. package/dist/{bold-icon.entry-d5d86b3f.js → bold-icon.entry-17c78a12.js} +1 -1
  14. package/dist/bold-icon.entry-316f5e61.js +15 -0
  15. package/dist/{bold-icon.entry-1e3c9b1f.cjs → bold-icon.entry-8bc27b72.cjs} +1 -1
  16. package/dist/bold-icon.entry-caf96585.cjs +1 -0
  17. package/dist/{button-component_2.entry-5284316e.js → button-component_2.entry-1095ad9f.js} +1 -1
  18. package/dist/button-component_2.entry-531a725d.js +26 -0
  19. package/dist/{button-component_2.entry-a86f8dca.cjs → button-component_2.entry-5cd0adf0.cjs} +1 -1
  20. package/dist/button-component_2.entry-64a41161.cjs +1 -0
  21. package/dist/{calendar-agenda-fill-icon_54.entry-5672c589.js → calendar-agenda-fill-icon_54.entry-6b2114d5.js} +309 -294
  22. package/dist/calendar-agenda-fill-icon_54.entry-84e72636.js +5656 -0
  23. package/dist/calendar-agenda-fill-icon_54.entry-abb96e20.cjs +10 -0
  24. package/dist/calendar-agenda-fill-icon_54.entry-f5577fdb.cjs +10 -0
  25. package/dist/{calendar-cancel-icon.entry-e9792eaa.cjs → calendar-cancel-icon.entry-4c58ea10.cjs} +1 -1
  26. package/dist/{calendar-cancel-icon.entry-7f81de9d.js → calendar-cancel-icon.entry-d27593a5.js} +1 -1
  27. package/dist/calendar-cancel-icon.entry-f11e5aaa.cjs +1 -0
  28. package/dist/calendar-cancel-icon.entry-f1a6f9bc.js +15 -0
  29. package/dist/{calendar-check-icon_2.entry-84db1700.js → calendar-check-icon_2.entry-38e1140b.js} +1 -1
  30. package/dist/{calendar-check-icon_2.entry-ad055b37.cjs → calendar-check-icon_2.entry-4a35f416.cjs} +1 -1
  31. package/dist/calendar-check-icon_2.entry-52187599.cjs +1 -0
  32. package/dist/calendar-check-icon_2.entry-7f17a3a6.js +25 -0
  33. package/dist/{calendar-icon.entry-019f7feb.cjs → calendar-icon.entry-002ee369.cjs} +1 -1
  34. package/dist/calendar-icon.entry-3c5c97d4.cjs +1 -0
  35. package/dist/{calendar-icon.entry-45db1630.js → calendar-icon.entry-4543de86.js} +1 -1
  36. package/dist/calendar-icon.entry-b76e26e6.js +15 -0
  37. package/dist/{checkbox-component_2.entry-8325ff88.cjs → checkbox-component_2.entry-ad4ab088.cjs} +1 -1
  38. package/dist/checkbox-component_2.entry-b24885e9.cjs +1 -0
  39. package/dist/{checkbox-component_2.entry-84a053ff.js → checkbox-component_2.entry-cf15106d.js} +1 -1
  40. package/dist/checkbox-component_2.entry-e4a3dd2d.js +79 -0
  41. package/dist/{chevron-icon_3.entry-0edde2a6.cjs → chevron-icon_3.entry-582df6f7.cjs} +1 -1
  42. package/dist/chevron-icon_3.entry-59d8b408.cjs +1 -0
  43. package/dist/{chevron-icon_3.entry-ec894a13.js → chevron-icon_3.entry-5e60a853.js} +1 -1
  44. package/dist/chevron-icon_3.entry-cab72db3.js +143 -0
  45. package/dist/{clock-icon_4.entry-935fe48d.cjs → clock-icon_4.entry-8348282a.cjs} +1 -1
  46. package/dist/{clock-icon_4.entry-8ec9c29b.js → clock-icon_4.entry-d03310ae.js} +1 -1
  47. package/dist/clock-icon_4.entry-f6b9f85d.js +45 -0
  48. package/dist/clock-icon_4.entry-fcbc39b0.cjs +1 -0
  49. package/dist/{copy-icon.entry-d9405510.js → copy-icon.entry-3ea78e28.js} +1 -1
  50. package/dist/copy-icon.entry-430beab4.js +15 -0
  51. package/dist/{copy-icon.entry-5a2030da.cjs → copy-icon.entry-5337f980.cjs} +1 -1
  52. package/dist/copy-icon.entry-74a59fc5.cjs +1 -0
  53. package/dist/{delete-icon.entry-1b0a3ba4.js → delete-icon.entry-480ac215.js} +1 -1
  54. package/dist/{delete-icon.entry-3f3d1ffb.cjs → delete-icon.entry-87b2daaa.cjs} +1 -1
  55. package/dist/delete-icon.entry-9c1af040.js +15 -0
  56. package/dist/delete-icon.entry-e320cde1.cjs +1 -0
  57. package/dist/{document-refresh-icon.entry-fab58d33.js → document-refresh-icon.entry-665a7947.js} +1 -1
  58. package/dist/{document-refresh-icon.entry-59a18097.cjs → document-refresh-icon.entry-6be2b468.cjs} +1 -1
  59. package/dist/document-refresh-icon.entry-930ee2b7.js +15 -0
  60. package/dist/document-refresh-icon.entry-fcde4ff6.cjs +1 -0
  61. package/dist/{feedbackSync-b56b29ed-7a1f1f75.js → feedbackSync-b56b29ed-36483932.js} +1 -1
  62. package/dist/{feedbackSync-b56b29ed-b6f352f3.cjs → feedbackSync-b56b29ed-599103b9.cjs} +1 -1
  63. package/dist/feedbackSync-b56b29ed-7a7c650e.cjs +448 -0
  64. package/dist/feedbackSync-b56b29ed-9e38fdb6.js +6035 -0
  65. package/dist/{folder-icon.entry-e85383b6.cjs → folder-icon.entry-89f0974f.cjs} +1 -1
  66. package/dist/folder-icon.entry-977e50eb.cjs +1 -0
  67. package/dist/{folder-icon.entry-b5a123d0.js → folder-icon.entry-9bf864d7.js} +1 -1
  68. package/dist/folder-icon.entry-b80d8fd7.js +15 -0
  69. package/dist/{forward-icon.entry-88ab1a85.js → forward-icon.entry-2b0167a7.js} +1 -1
  70. package/dist/{forward-icon.entry-7c8ed4c3.cjs → forward-icon.entry-699c55d9.cjs} +1 -1
  71. package/dist/forward-icon.entry-c4c20f31.cjs +1 -0
  72. package/dist/forward-icon.entry-eb64aa16.js +15 -0
  73. package/dist/{globe-icon.entry-b1253516.cjs → globe-icon.entry-3d08a9c4.cjs} +1 -1
  74. package/dist/{globe-icon.entry-6fb414ca.js → globe-icon.entry-5d962e7a.js} +1 -1
  75. package/dist/globe-icon.entry-5ef1dc42.cjs +1 -0
  76. package/dist/globe-icon.entry-667987bd.js +15 -0
  77. package/dist/{google-logo-icon_4.entry-ae09d065.cjs → google-logo-icon_4.entry-12f1492f.cjs} +1 -1
  78. package/dist/google-logo-icon_4.entry-bd4d2237.cjs +1 -0
  79. package/dist/{google-logo-icon_4.entry-fe627741.js → google-logo-icon_4.entry-ec724f2e.js} +101 -101
  80. package/dist/google-logo-icon_4.entry-fc38681e.js +729 -0
  81. package/dist/{inbox-icon.entry-cec35da1.js → inbox-icon.entry-2020fa96.js} +1 -1
  82. package/dist/{inbox-icon.entry-7dce836e.cjs → inbox-icon.entry-45414f66.cjs} +1 -1
  83. package/dist/inbox-icon.entry-49353988.js +15 -0
  84. package/dist/inbox-icon.entry-b556231f.cjs +1 -0
  85. package/dist/index-290b2932.cjs +81 -0
  86. package/dist/{index-3fd31877.js → index-2b208d5d.js} +50 -50
  87. package/dist/{index-bd6fdc8c.cjs → index-bf124f70.cjs} +2 -2
  88. package/dist/index-fb096a02.js +13011 -0
  89. package/dist/{index.es-c7ca1bad-0a324dca.cjs → index.es-c7ca1bad-67a99f41.cjs} +1 -1
  90. package/dist/{index.es-c7ca1bad-b895d84b.js → index.es-c7ca1bad-70899f2a.js} +1 -1
  91. package/dist/index.es-c7ca1bad-b7a3e6bd.cjs +7 -0
  92. package/dist/index.es-c7ca1bad-cb3a99a7.js +3129 -0
  93. package/dist/{info-icon_2.entry-1dab6311.cjs → info-icon_2.entry-237205a0.cjs} +1 -1
  94. package/dist/{info-icon_2.entry-f7e6b4aa.js → info-icon_2.entry-b98a2882.js} +1 -1
  95. package/dist/info-icon_2.entry-caf64c28.cjs +1 -0
  96. package/dist/info-icon_2.entry-d935e5c2.js +34 -0
  97. package/dist/{input-color-picker.entry-30cda4e2.js → input-color-picker.entry-684413c1.js} +1 -1
  98. package/dist/input-color-picker.entry-752534de.js +48 -0
  99. package/dist/{input-color-picker.entry-b6e53c29.cjs → input-color-picker.entry-8fe3482d.cjs} +1 -1
  100. package/dist/input-color-picker.entry-f856fce3.cjs +1 -0
  101. package/dist/{input-component.entry-7a04bc8b.js → input-component.entry-00b97287.js} +1 -1
  102. package/dist/input-component.entry-4400f98e.js +70 -0
  103. package/dist/{input-component.entry-1f1f8e00.cjs → input-component.entry-bcd13373.cjs} +1 -1
  104. package/dist/input-component.entry-d486907a.cjs +1 -0
  105. package/dist/{input-dropdown.entry-abf134a8.js → input-dropdown.entry-3c39e23a.js} +1 -1
  106. package/dist/{input-dropdown.entry-5e5b67be.cjs → input-dropdown.entry-b26475c4.cjs} +1 -1
  107. package/dist/input-dropdown.entry-bea3c690.js +134 -0
  108. package/dist/input-dropdown.entry-d3d4e50e.cjs +1 -0
  109. package/dist/{italic-icon.entry-c793243b.cjs → italic-icon.entry-14081a02.cjs} +1 -1
  110. package/dist/{italic-icon.entry-4631c594.js → italic-icon.entry-2199bb17.js} +1 -1
  111. package/dist/italic-icon.entry-63726952.cjs +1 -0
  112. package/dist/italic-icon.entry-a3c87e5e.js +15 -0
  113. package/dist/{multi-select-dropdown.entry-9a93da56.js → multi-select-dropdown.entry-2141b848.js} +1 -1
  114. package/dist/{multi-select-dropdown.entry-2b8728d5.cjs → multi-select-dropdown.entry-7b66d2ae.cjs} +1 -1
  115. package/dist/multi-select-dropdown.entry-8a2c4b42.cjs +1 -0
  116. package/dist/multi-select-dropdown.entry-cdd97d65.js +95 -0
  117. package/dist/nylas-booked-event-card_12.entry-20c254bb.cjs +1 -0
  118. package/dist/nylas-booked-event-card_12.entry-2d88375a.js +1237 -0
  119. package/dist/nylas-booked-event-card_12.entry-90a0b6c7.cjs +1 -0
  120. package/dist/nylas-booked-event-card_12.entry-bbd7cfb0.js +1237 -0
  121. package/dist/{nylas-form-card.entry-af179b96.cjs → nylas-form-card.entry-1e9225b0.cjs} +1 -1
  122. package/dist/{nylas-form-card.entry-862519b4.js → nylas-form-card.entry-a8a44a3b.js} +2 -2
  123. package/dist/nylas-form-card.entry-d6287d76.cjs +1 -0
  124. package/dist/nylas-form-card.entry-fadd7718.js +57 -0
  125. package/dist/{nylas-if-state.entry-8803a762.js → nylas-if-state.entry-32b11afa.js} +2 -2
  126. package/dist/{nylas-if-state.entry-c1c1282d.cjs → nylas-if-state.entry-473230a6.cjs} +1 -1
  127. package/dist/nylas-if-state.entry-8be8107e.js +94 -0
  128. package/dist/nylas-if-state.entry-9c341f13.cjs +1 -0
  129. package/dist/{nylas-login.entry-65f8f046.cjs → nylas-login.entry-995b6f99.cjs} +1 -1
  130. package/dist/nylas-login.entry-b9c2fb27.cjs +1 -0
  131. package/dist/{nylas-login.entry-3e12f747.js → nylas-login.entry-d663205c.js} +2 -2
  132. package/dist/nylas-login.entry-e3a9c5c1.js +73 -0
  133. package/dist/{nylas-provider.entry-9626b113.cjs → nylas-provider.entry-050f20bd.cjs} +1 -1
  134. package/dist/nylas-provider.entry-5b54f2cc.cjs +1 -0
  135. package/dist/{nylas-provider.entry-e3501bd1.js → nylas-provider.entry-c24474c3.js} +4 -4
  136. package/dist/nylas-provider.entry-ca3e06ce.js +264 -0
  137. package/dist/{nylas-scheduler-editor.entry-17cd1514.cjs → nylas-scheduler-editor.entry-3b834bb1.cjs} +1 -1
  138. package/dist/{nylas-scheduler-editor.entry-6df45b05.js → nylas-scheduler-editor.entry-5c0a5fb4.js} +3 -3
  139. package/dist/nylas-scheduler-editor.entry-b86f49a1.js +1447 -0
  140. package/dist/nylas-scheduler-editor.entry-d52db29e.cjs +2 -0
  141. package/dist/{nylas-scheduling.entry-08051ba3.js → nylas-scheduling.entry-04c3951e.js} +73 -73
  142. package/dist/nylas-scheduling.entry-a5c4b050.js +412 -0
  143. package/dist/{nylas-scheduling.entry-b1fafd91.cjs → nylas-scheduling.entry-d549c5c3.cjs} +1 -1
  144. package/dist/nylas-scheduling.entry-ed12a4f6.cjs +1 -0
  145. package/dist/{nylas-time-window-picker.entry-4989d421.cjs → nylas-time-window-picker.entry-337d03c1.cjs} +1 -1
  146. package/dist/nylas-time-window-picker.entry-4aefade8.cjs +1 -0
  147. package/dist/{nylas-time-window-picker.entry-bdc8c6ea.js → nylas-time-window-picker.entry-678a7dbf.js} +1 -1
  148. package/dist/nylas-time-window-picker.entry-ecc3ee10.js +316 -0
  149. package/dist/{person-icon.entry-fb7efa8f.cjs → person-icon.entry-3fee5bc4.cjs} +1 -1
  150. package/dist/{person-icon.entry-d62a16b4.js → person-icon.entry-902b2c0d.js} +1 -1
  151. package/dist/person-icon.entry-9680bc2b.js +15 -0
  152. package/dist/person-icon.entry-dede7140.cjs +1 -0
  153. package/dist/{play-icon.entry-01b95392.js → play-icon.entry-1078da37.js} +1 -1
  154. package/dist/{play-icon.entry-f485a2c8.cjs → play-icon.entry-a7f648f7.cjs} +1 -1
  155. package/dist/play-icon.entry-c8f3a5d8.cjs +1 -0
  156. package/dist/play-icon.entry-dacc3aa6.js +15 -0
  157. package/dist/react.cjs +1 -1
  158. package/dist/react.js +1 -1
  159. package/dist/{refresh-icon.entry-5f997e86.cjs → refresh-icon.entry-06f9d181.cjs} +1 -1
  160. package/dist/{refresh-icon.entry-1ff4b39f.js → refresh-icon.entry-5399f64b.js} +1 -1
  161. package/dist/refresh-icon.entry-555a38ec.cjs +1 -0
  162. package/dist/refresh-icon.entry-d4dcfc3a.js +15 -0
  163. package/dist/{register-component-3444af44-854971ad.js → register-component-3444af44-3d6e535a.js} +1 -1
  164. package/dist/register-component-3444af44-4a273c0a.js +109 -0
  165. package/dist/{register-component-3444af44-9053e8c3.cjs → register-component-3444af44-6d269634.cjs} +1 -1
  166. package/dist/register-component-3444af44-d3e7252a.cjs +1 -0
  167. package/dist/{reply-all-icon.entry-1dad6514.cjs → reply-all-icon.entry-70ffe5be.cjs} +1 -1
  168. package/dist/{reply-all-icon.entry-cbafb8a0.js → reply-all-icon.entry-a3a20f76.js} +1 -1
  169. package/dist/reply-all-icon.entry-bb2a88ad.js +15 -0
  170. package/dist/reply-all-icon.entry-f8a32be1.cjs +1 -0
  171. package/dist/{reply-icon.entry-a43bc252.js → reply-icon.entry-302ed745.js} +1 -1
  172. package/dist/reply-icon.entry-423fb307.js +15 -0
  173. package/dist/{reply-icon.entry-162d9945.cjs → reply-icon.entry-a08c0e57.cjs} +1 -1
  174. package/dist/reply-icon.entry-d2da8972.cjs +1 -0
  175. package/dist/{scheduler-config-store-ed4a8dfd-eeaeaa50.cjs → scheduler-config-store-ed4a8dfd-34c4c119.cjs} +1 -1
  176. package/dist/scheduler-config-store-ed4a8dfd-474f6252.cjs +1 -0
  177. package/dist/{scheduler-config-store-ed4a8dfd-22db9285.js → scheduler-config-store-ed4a8dfd-81687f55.js} +1 -1
  178. package/dist/scheduler-config-store-ed4a8dfd-fe2b9d18.js +26 -0
  179. package/dist/{scheduler-store-d4784b24-9a5f5734.js → scheduler-store-2e7db190-c648278f.js} +27 -25
  180. package/dist/scheduler-store-2e7db190-fb6a20a1.cjs +1 -0
  181. package/dist/scheduler-store-5fbba021-09da63cf.cjs +1 -0
  182. package/dist/scheduler-store-5fbba021-6298edf3.js +484 -0
  183. package/dist/{sent-icon.entry-a05486d5.js → sent-icon.entry-4d7b65ba.js} +1 -1
  184. package/dist/{sent-icon.entry-a1aec7e9.cjs → sent-icon.entry-6396b793.cjs} +1 -1
  185. package/dist/sent-icon.entry-6ed4170a.js +15 -0
  186. package/dist/sent-icon.entry-db89fd38.cjs +1 -0
  187. package/dist/{spam-icon.entry-473f11af.js → spam-icon.entry-45e7b83b.js} +1 -1
  188. package/dist/spam-icon.entry-81073952.js +15 -0
  189. package/dist/{spam-icon.entry-b481a04b.cjs → spam-icon.entry-8648a315.cjs} +1 -1
  190. package/dist/spam-icon.entry-cf05a2a7.cjs +1 -0
  191. package/dist/{star-icon.entry-6b1fe3cf.cjs → star-icon.entry-1c416cef.cjs} +1 -1
  192. package/dist/{star-icon.entry-12fdc345.js → star-icon.entry-61c36332.js} +1 -1
  193. package/dist/star-icon.entry-8279e6a9.cjs +1 -0
  194. package/dist/star-icon.entry-bb26cc4e.js +15 -0
  195. package/dist/{stop-icon.entry-4bd609f7.js → stop-icon.entry-089ac3ba.js} +1 -1
  196. package/dist/{stop-icon.entry-72481153.cjs → stop-icon.entry-d68aa652.cjs} +1 -1
  197. package/dist/stop-icon.entry-f62d063b.js +15 -0
  198. package/dist/stop-icon.entry-f88a5a2a.cjs +1 -0
  199. package/dist/{textarea-component.entry-f330a755.cjs → textarea-component.entry-502c8659.cjs} +1 -1
  200. package/dist/{textarea-component.entry-47e1b2e6.js → textarea-component.entry-8f5d835f.js} +1 -1
  201. package/dist/textarea-component.entry-d4a682fa.js +37 -0
  202. package/dist/textarea-component.entry-e06ee834.cjs +1 -0
  203. package/dist/{time-period-selector.entry-c7611563.cjs → time-period-selector.entry-001a1c59.cjs} +1 -1
  204. package/dist/{time-period-selector.entry-a4899368.js → time-period-selector.entry-7da7d316.js} +1 -1
  205. package/dist/time-period-selector.entry-837b9be3.js +80 -0
  206. package/dist/time-period-selector.entry-c5b6d0c9.cjs +1 -0
  207. package/dist/{translate-icon.entry-40dfa8c9.cjs → translate-icon.entry-4ee80d22.cjs} +1 -1
  208. package/dist/{translate-icon.entry-4517838d.js → translate-icon.entry-5166d376.js} +1 -1
  209. package/dist/translate-icon.entry-c1a623d8.cjs +1 -0
  210. package/dist/translate-icon.entry-e5cfae44.js +15 -0
  211. package/dist/{trash-fill-icon.entry-86ca3055.cjs → trash-fill-icon.entry-2f814465.cjs} +1 -1
  212. package/dist/{trash-fill-icon.entry-d7e960eb.js → trash-fill-icon.entry-49844a82.js} +1 -1
  213. package/dist/trash-fill-icon.entry-85e0e841.js +15 -0
  214. package/dist/trash-fill-icon.entry-def90241.cjs +1 -0
  215. package/dist/{underline-icon.entry-352970f5.js → underline-icon.entry-181f1d7e.js} +1 -1
  216. package/dist/{underline-icon.entry-f16d4943.cjs → underline-icon.entry-4ba93e7b.cjs} +1 -1
  217. package/dist/underline-icon.entry-72dadbdf.cjs +1 -0
  218. package/dist/underline-icon.entry-f7a75755.js +15 -0
  219. package/dist/{warning-icon.entry-63987dad.js → warning-icon.entry-2406b765.js} +1 -1
  220. package/dist/{warning-icon.entry-79ef75b2.cjs → warning-icon.entry-44ac5566.cjs} +1 -1
  221. package/dist/warning-icon.entry-5b6aeb2b.cjs +1 -0
  222. package/dist/warning-icon.entry-ef601856.js +15 -0
  223. package/package.json +2 -2
  224. package/dist/calendar-agenda-fill-icon_54.entry-702b29cc.cjs +0 -10
  225. package/dist/nylas-booked-event-card_12.entry-8d502a3c.cjs +0 -1
  226. package/dist/nylas-booked-event-card_12.entry-f13f3f54.js +0 -1144
  227. package/dist/scheduler-store-d4784b24-aed474e8.cjs +0 -1
@@ -1,7 +1,7 @@
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-3fd31877.js";
2
- import { R as Pe } from "./register-component-3444af44-854971ad.js";
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
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-7a1f1f75.js";
4
+ import { i as Ue, a as Re, c as Ae, b as je, f as $e } from "./feedbackSync-b56b29ed-9e38fdb6.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  const Je = ".sc-google-logo-icon-h{display:flex}", Ve = Je, Ze = class {
@@ -26,13 +26,13 @@ var o;
26
26
  (function(e) {
27
27
  e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
28
28
  })(o || (o = {}));
29
- function Ke({ id: e, formState: a, activeTab: i }, n) {
29
+ function Ke({ id: e, formState: a, activeTab: n }, i) {
30
30
  return t(
31
31
  ze,
32
32
  null,
33
33
  t(
34
34
  "div",
35
- { key: `event-info-${e}`, class: { hide: i !== o.EventInfo } },
35
+ { key: `event-info-${e}`, class: { hide: n !== o.EventInfo } },
36
36
  t(
37
37
  "nylas-event-info",
38
38
  null,
@@ -48,14 +48,14 @@ function Ke({ id: e, formState: a, activeTab: i }, n) {
48
48
  ),
49
49
  t(
50
50
  "div",
51
- { key: `availability-${e}`, class: { hide: i !== o.Availability } },
51
+ { key: `availability-${e}`, class: { hide: n !== o.Availability } },
52
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
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
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" })
55
55
  ),
56
56
  t(
57
57
  "div",
58
- { key: `booking-options-${e}`, class: { hide: i !== o.BookingOptions } },
58
+ { key: `booking-options-${e}`, class: { hide: n !== o.BookingOptions } },
59
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
60
  t(
61
61
  "nylas-custom-booking-flow",
@@ -85,7 +85,7 @@ function Ke({ id: e, formState: a, activeTab: i }, n) {
85
85
  ),
86
86
  t(
87
87
  "div",
88
- { key: `communications-${e}`, class: { hide: i !== o.Communications } },
88
+ { key: `communications-${e}`, class: { hide: n !== o.Communications } },
89
89
  t(
90
90
  "div",
91
91
  { class: "tab-header" },
@@ -97,33 +97,33 @@ function Ke({ id: e, formState: a, activeTab: i }, n) {
97
97
  ),
98
98
  t(
99
99
  "div",
100
- { key: `participants-${e}`, class: { hide: i !== o.Participants } },
100
+ { key: `participants-${e}`, class: { hide: n !== o.Participants } },
101
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
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" })
103
103
  ),
104
104
  t(
105
105
  "div",
106
- { key: `page-styles-${e}`, class: { hide: i !== o.PageStyles } },
106
+ { key: `page-styles-${e}`, class: { hide: n !== o.PageStyles } },
107
107
  t("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
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" }, n)
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)
110
110
  ),
111
111
  t(
112
112
  "div",
113
- { key: `booking-form-${e}`, class: { hide: i !== o.BookingForm } },
113
+ { key: `booking-form-${e}`, class: { hide: n !== o.BookingForm } },
114
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" })
115
115
  )
116
116
  );
117
117
  }
118
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, i, n) {
120
- var r = arguments.length, s = r < 3 ? a : n === null ? n = Object.getOwnPropertyDescriptor(a, i) : n, c;
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;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
- s = Reflect.decorate(e, a, i, n);
122
+ s = Reflect.decorate(e, a, n, i);
123
123
  else
124
124
  for (var d = e.length - 1; d >= 0; d--)
125
- (c = e[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, i, s) : c(a, i)) || s);
126
- return r > 3 && s && Object.defineProperty(a, i, s), s;
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
127
  }, W = function(e, a) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
129
  return Reflect.metadata(e, a);
@@ -133,15 +133,15 @@ const Be = class {
133
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) => {
134
134
  this.error = a.message;
135
135
  }, this.formSubmissionHandler = async (a) => {
136
- var Q, X, Y, ee, te, ae, ie, ne, se, oe, re, le, de, ce, be, he, ue;
136
+ var Q, X, Y, ee, te, ae, ne, ie, se, oe, re, le, de, ce, be, he, ue;
137
137
  a.preventDefault();
138
- const i = await this.formSubmitted.emit();
139
- if (h("[nylas-editor-tabs]", "formSubmissionHandler", i), !this.formRef.checkValidity() || i.defaultPrevented) {
138
+ const n = await this.formSubmitted.emit();
139
+ if (h("[nylas-editor-tabs]", "formSubmissionHandler", n), !this.formRef.checkValidity() || n.defaultPrevented) {
140
140
  this.error = this.formRef.validationMessage || "Please fix the form errors.";
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: I, timeslotInterval: w, additionalGuestsHidden: M, hideCancellationOptions: D, 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 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 : [
145
145
  {
146
146
  name: (b == null ? void 0 : b.name) ?? ((ee = this.currentUser) == null ? void 0 : ee.name) ?? "",
147
147
  email: (b == null ? void 0 : b.email) ?? ((te = this.currentUser) == null ? void 0 : te.email) ?? "",
@@ -157,7 +157,7 @@ const Be = class {
157
157
  }
158
158
  ], E = {
159
159
  ...((ae = this.selectedConfiguration) == null ? void 0 : ae.id) && { id: this.selectedConfiguration.id },
160
- version: ((ie = this.selectedConfiguration) == null ? void 0 : ie.version) ?? "1.0.0",
160
+ version: ((ne = this.selectedConfiguration) == null ? void 0 : ne.version) ?? "1.0.0",
161
161
  slug: J,
162
162
  name: Z,
163
163
  availability: {
@@ -165,7 +165,7 @@ const Be = class {
165
165
  interval_minutes: (w == null ? void 0 : w.interval) ?? _,
166
166
  round_to: w == null ? void 0 : w.roundTo,
167
167
  availability_rules: {
168
- availability_method: T || (((oe = (se = (ne = this.selectedConfiguration) == null ? void 0 : ne.availability) == null ? void 0 : se.availability_rules) == null ? void 0 : oe.availability_method) ?? "collective"),
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
169
  buffer: B || { before: 0, after: 0 },
170
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
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) ?? ""
@@ -207,12 +207,12 @@ const Be = class {
207
207
  reminders: A
208
208
  },
209
209
  scheduler: {
210
- cancellation_policy: I ?? "",
210
+ cancellation_policy: D ?? "",
211
211
  available_days_in_future: H ?? 30,
212
212
  min_cancellation_notice: O ?? 0,
213
213
  min_booking_notice: N ?? 60,
214
- hide_additional_guests: M ?? !1,
215
- hide_cancellation_options: D ?? !1,
214
+ hide_additional_guests: I ?? !1,
215
+ hide_cancellation_options: M ?? !1,
216
216
  hide_rescheduling_options: z ?? !1,
217
217
  additional_fields: U,
218
218
  email_template: j,
@@ -225,37 +225,37 @@ const Be = class {
225
225
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
226
226
  this.changesSaved = !1;
227
227
  }, 5e3);
228
- }, Ie = this.checkForBookingFormErrors(L), Me = ((ue = this.configurations) == null ? void 0 : ue.find((l) => {
228
+ }, De = this.checkForBookingFormErrors(L), Ie = ((ue = this.configurations) == null ? void 0 : ue.find((l) => {
229
229
  var P;
230
230
  return l.id === ((P = this.selectedConfiguration) == null ? void 0 : P.id);
231
- })) || {}, De = this.checkForOrganizerConfirmationError(Fe(L, Me));
232
- Ie || De || this.schedulerConfigChanged.emit({ config: L, resetLoadingState: Ne, setError: this.setError, action: this.action });
231
+ })) || {}, Me = this.checkForOrganizerConfirmationError(Fe(L, Ie));
232
+ De || Me || this.schedulerConfigChanged.emit({ config: L, resetLoadingState: Ne, setError: this.setError, action: this.action });
233
233
  }, this.isConfigRoundRobin = (a) => {
234
- var i, n, r, s;
235
- return ((n = (i = a == null ? void 0 : a.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : n.availability_method) === "max-availability" || ((s = (r = a.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
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";
236
236
  }, this.checkForOrganizerConfirmationError = (a) => {
237
237
  var c, d;
238
- let i = !1, n = "";
238
+ let n = !1, i = "";
239
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 && (n += "Organizer confirmation URL is required when using organizer confirmation booking type.", i = !0), i && (this.isLoading = !1, this.setError(new Error(n))), i;
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;
241
241
  }, this.checkForBookingFormErrors = (a) => {
242
242
  var s;
243
- let i = !1, n = "";
243
+ let n = !1, i = "";
244
244
  const r = (s = a.scheduler) == null ? void 0 : s.additional_fields;
245
- return r && (n = "Booking form error: ", Object.entries(r).forEach((c) => {
245
+ return r && (i = "Booking form error: ", Object.entries(r).forEach((c) => {
246
246
  const d = c[1];
247
247
  if (d.label === "") {
248
- n += `Label is required for field of type ${d.type}.`, i = !0;
248
+ i += `Label is required for field of type ${d.type}.`, n = !0;
249
249
  return;
250
250
  }
251
251
  if (d.options) {
252
252
  for (const u of d.options)
253
253
  if (u === "") {
254
- n += `Empty option detected inside ${d.label} of type ${d.type}.`, i = !0;
254
+ i += `Empty option detected inside ${d.label} of type ${d.type}.`, n = !0;
255
255
  break;
256
256
  }
257
257
  }
258
- })), i && (this.isLoading = !1, this.setError(new Error(n))), i;
258
+ })), n && (this.isLoading = !1, this.setError(new Error(i))), n;
259
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 = "";
260
260
  }
261
261
  configChangedHandler(e) {
@@ -275,12 +275,12 @@ const Be = class {
275
275
  h("[nylas-editor-tabs]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
276
276
  }
277
277
  componentDidLoad() {
278
- var a, i;
278
+ var a, n;
279
279
  h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Ue() && Re({
280
280
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
281
- release: "1.1.5",
282
- integrations: (n) => [
283
- ...n.filter((r) => !1),
281
+ release: "1.1.6",
282
+ integrations: (i) => [
283
+ ...i.filter((r) => !1),
284
284
  $e({
285
285
  colorScheme: "system",
286
286
  autoInject: !1
@@ -289,7 +289,7 @@ const Be = class {
289
289
  autoSessionTracking: !1,
290
290
  beforeSend: () => null
291
291
  }), (a = this.selectedConfiguration) != null && a.id && this.configChangedHandler(this.selectedConfiguration);
292
- const e = (i = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : i.name;
292
+ const e = (n = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : n.name;
293
293
  e && (this.activeTab = e);
294
294
  }
295
295
  disconnectedCallback() {
@@ -297,8 +297,8 @@ const Be = class {
297
297
  }
298
298
  handleValueChanged(e) {
299
299
  h("[nylas-editor-tabs]", "handleValueChanged", e);
300
- const { name: a, value: i } = e.detail;
301
- this.setFormState(i, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "", this.schedulerEditorFormUpdated.emit({
300
+ const { name: a, value: n } = e.detail;
301
+ this.setFormState(n, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "", this.schedulerEditorFormUpdated.emit({
302
302
  value: e.detail.value,
303
303
  name: e.detail.name
304
304
  });
@@ -307,29 +307,29 @@ const Be = class {
307
307
  this.showFeedbackModal = !1;
308
308
  }
309
309
  feedbackSubmittedHandler(e) {
310
- var n, r;
311
- const i = {
310
+ var i, r;
311
+ const n = {
312
312
  eventId: Ae("Scheduler Editor User Feedback"),
313
313
  message: e.detail.feedback
314
314
  };
315
- je(i, {
315
+ je(n, {
316
316
  includeReplay: !0,
317
317
  captureContext: {
318
318
  tags: {
319
319
  "nylas-web-element": "nylas-scheduler-editor",
320
- "nylas-web-element-version": "1.1.5"
320
+ "nylas-web-element-version": "1.1.6"
321
321
  },
322
322
  extra: {
323
- configId: (n = this.selectedConfiguration) == null ? void 0 : n.id,
323
+ configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
324
324
  slug: (r = this.selectedConfiguration) == null ? void 0 : r.slug
325
325
  }
326
326
  }
327
327
  }), this.showFeedbackModal = !1;
328
328
  }
329
329
  getFormStateFromConfig(e) {
330
- var i, n, r, s, c, d, u, v, S, F, B, H, O, N, I, w, M, D, z, g, p, U, f, R, m, A, j, $, T, J, V, Z, b, k;
331
- let a = (i = e == null ? void 0 : e.participants) == null ? void 0 : i.find((y) => y.is_organizer);
332
- return !a && ((r = (n = e == null ? void 0 : e.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (a = (s = e == null ? void 0 : e.participants) == null ? void 0 : s.find((y) => {
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
333
  var _;
334
334
  return y.email === ((_ = this.currentUser) == null ? void 0 : _.email);
335
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."), {
@@ -344,10 +344,10 @@ const Be = class {
344
344
  conferencing: ((O = e == null ? void 0 : e.event_booking) == null ? void 0 : O.conferencing) ?? {},
345
345
  calendarIds: ((N = a == null ? void 0 : a.availability) == null ? void 0 : N.calendar_ids) ?? [],
346
346
  participants: (e == null ? void 0 : e.participants) ?? [],
347
- bookingCalendar: ((I = a == null ? void 0 : a.booking) == null ? void 0 : I.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
347
+ bookingCalendar: ((D = a == null ? void 0 : a.booking) == null ? void 0 : D.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
348
348
  location: ((w = e == null ? void 0 : e.event_booking) == null ? void 0 : w.location) ?? "",
349
- bookingType: ((M = e == null ? void 0 : e.event_booking) == null ? void 0 : M.booking_type) ?? "booking",
350
- buffer: ((z = (D = e == null ? void 0 : e.availability) == null ? void 0 : D.availability_rules) == null ? void 0 : z.buffer) ?? { before: 0, after: 0 },
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
351
  cancellationPolicy: ((g = e == null ? void 0 : e.scheduler) == null ? void 0 : g.cancellation_policy) ?? "",
352
352
  availableDaysInFuture: ((p = e == null ? void 0 : e.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
353
353
  minCancellationNotice: ((U = e == null ? void 0 : e.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
@@ -426,12 +426,12 @@ const Be = class {
426
426
  this.formState.timeslotInterval = JSON.parse(e.toString());
427
427
  break;
428
428
  case "customize-booking-settings":
429
- const i = JSON.parse(e.toString());
430
- this.formState.additionalGuestsHidden = i.additionalGuestsHidden, this.formState.hideCancellationOptions = i.hideCancellationOptions, this.formState.hideReschedulingOptions = i.hideReschedulingOptions;
429
+ const n = JSON.parse(e.toString());
430
+ this.formState.additionalGuestsHidden = n.additionalGuestsHidden, this.formState.hideCancellationOptions = n.hideCancellationOptions, this.formState.hideReschedulingOptions = n.hideReschedulingOptions;
431
431
  break;
432
432
  case "participant-custom-availability":
433
- const n = JSON.parse(e.toString());
434
- this.formState.participantOpenHours = n;
433
+ const i = JSON.parse(e.toString());
434
+ this.formState.participantOpenHours = i;
435
435
  break;
436
436
  case "additional-fields":
437
437
  this.formState.additionalFields = e;
@@ -467,8 +467,8 @@ const Be = class {
467
467
  });
468
468
  }
469
469
  updateFormState() {
470
- return new FormData(this.formRef).forEach((a, i) => {
471
- this.setFormState(a, i);
470
+ return new FormData(this.formRef).forEach((a, n) => {
471
+ this.setFormState(a, n);
472
472
  }), this.formState = { ...this.formState }, this.formState;
473
473
  }
474
474
  setActiveTab(e, a) {
@@ -478,21 +478,21 @@ const Be = class {
478
478
  var a;
479
479
  return ((a = this.hideEditorTabs) == null ? void 0 : a.includes(e)) || !1;
480
480
  }
481
- onFeedbackClick() {
482
- this.showFeedbackModal = !0;
481
+ onFeedbackClick(e) {
482
+ e.preventDefault(), this.showFeedbackModal = !0;
483
483
  }
484
484
  render() {
485
485
  var e, a;
486
- return h("[nylas-editor-tabs]", "render", this.formState), t(Te, { key: "979cb82af1a494ea69a8122420da0c794e7c1c14" }, t("form", { key: "a8aec5d884b9985898a0e2015a973c3f18c9993d", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (i) => this.formRef = i, 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: (i) => this.setActiveTab(i, 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: (i) => this.setActiveTab(i, 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: (i) => this.setActiveTab(i, 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: (i) => this.setActiveTab(i, 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: (i) => this.setActiveTab(i, 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: (i) => this.setActiveTab(i, 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: (i) => this.setActiveTab(i, 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: "c013e06487a2675130df47566e7322bb8254fea0", class: "footer", part: "editor__footer" }, t("div", { key: "7ec0e476e014b7dcc5cb0177b86161743b09233f", class: "preview", part: "editor__footer-preview" }, this.enableUserFeedback && t("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: () => this.onFeedbackClick() }, t("feedback-icon", null))), t("div", { key: "791187b91f7ce807d980fe79a551bb7f16725a8b", class: "buttons", part: "editor__footer-buttons" }, t("p", { key: "33e1dcbac0ccf06a7c9b15fe615e222e86d7d947", class: {
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: {
487
487
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
488
488
  "saved-changes": this.changesSaved,
489
489
  error: this.error !== "",
490
490
  "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: (i) => {
492
- i.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: "35722d8b7c489c687ef63d7747a33204261b2870", type: "button", disabled: this.isLoading, clickHandler: (i) => {
494
- i.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
495
- }, variant: "basic", part: "editor__footer-cancel" }, "Back"), t("button-component", { key: "fabfca306aecb7a62212397bfe12e3fffce5fa8e", 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));
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) => {
494
+ 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));
496
496
  }
497
497
  get host() {
498
498
  return Ee(this);
@@ -515,9 +515,9 @@ Ye([
515
515
  ]),
516
516
  eventToProps: {
517
517
  schedulerConfigChanged: async (e, a) => {
518
- const { resetLoadingState: i, setError: n, action: r, config: s } = e.detail, c = (d) => {
518
+ const { resetLoadingState: n, setError: i, action: r, config: s } = e.detail, c = (d) => {
519
519
  const [u, v] = d;
520
- !u && v && n && n(v), i && i(e);
520
+ !u && v && i && i(v), n && n(e);
521
521
  };
522
522
  if (r === "edit") {
523
523
  const d = await a.schedulerConfig.updateConfiguration(s);
@@ -553,14 +553,14 @@ Ye([
553
553
  ], Be.prototype, "render", null);
554
554
  Be.style = Xe;
555
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, i, n) {
557
- var r = arguments.length, s = r < 3 ? a : n === null ? n = Object.getOwnPropertyDescriptor(a, i) : n, c;
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;
558
558
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
559
- s = Reflect.decorate(e, a, i, n);
559
+ s = Reflect.decorate(e, a, n, i);
560
560
  else
561
561
  for (var d = e.length - 1; d >= 0; d--)
562
- (c = e[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, i, s) : c(a, i)) || s);
563
- return r > 3 && s && Object.defineProperty(a, i, s), s;
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
564
  }, q = function(e, a) {
565
565
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
566
566
  return Reflect.metadata(e, a);
@@ -592,16 +592,16 @@ const He = class {
592
592
  }
593
593
  async handleNylasFormDropdownChanged(e) {
594
594
  h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", e.detail);
595
- const { value: a } = e.detail, [i, n] = a.split("-");
596
- switch (e.preventDefault(), i) {
595
+ const { value: a } = e.detail, [n, i] = a.split("-");
596
+ switch (e.preventDefault(), n) {
597
597
  case "delete":
598
- this.deleteButtonClick.emit({ host: this.host, configuration: this.configurations[n] });
598
+ this.deleteButtonClick.emit({ host: this.host, configuration: this.configurations[i] });
599
599
  break;
600
600
  case "preview":
601
- window.open(K(this.schedulerPreviewLink, this.configurations[n]), "_blank");
601
+ window.open(K(this.schedulerPreviewLink, this.configurations[i]), "_blank");
602
602
  break;
603
603
  case "copy":
604
- await navigator.clipboard.writeText(K(this.schedulerPreviewLink, this.configurations[n]));
604
+ await navigator.clipboard.writeText(K(this.schedulerPreviewLink, this.configurations[i]));
605
605
  break;
606
606
  }
607
607
  }
@@ -615,15 +615,15 @@ const He = class {
615
615
  this.error = e;
616
616
  }
617
617
  getDurationString(e) {
618
- const a = Math.floor(e / 60), i = e % 60;
619
- return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${i || ""} ${i ? `${i > 1 ? "mins" : "min"}` : ""}`;
618
+ const a = Math.floor(e / 60), n = e % 60;
619
+ return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${n || ""} ${n ? `${n > 1 ? "mins" : "min"}` : ""}`;
620
620
  }
621
621
  getActionLabelHTML(e) {
622
622
  const a = {
623
623
  display: "inline-flex",
624
624
  alignItems: "center",
625
625
  gap: "0.5rem"
626
- }, i = {
626
+ }, n = {
627
627
  color: "var(--nylas-error)"
628
628
  };
629
629
  switch (e) {
@@ -632,7 +632,7 @@ const He = class {
632
632
  case "copy":
633
633
  return t("span", { style: a }, t("copy-icon", { width: "16", height: "16" }), "Copy");
634
634
  case "delete":
635
- return t("span", { style: { ...a, ...i } }, t("delete-icon", { width: "15", height: "17" }), "Delete");
635
+ return t("span", { style: { ...a, ...n } }, t("delete-icon", { width: "15", height: "17" }), "Delete");
636
636
  default:
637
637
  return "";
638
638
  }
@@ -663,14 +663,14 @@ const He = class {
663
663
  hide: this.state === "loading" || this.configurations && this.configurations.length === 0
664
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: () => {
665
665
  this.createButtonClick.emit(this.host);
666
- } }, "Create new")))), this.state !== "loading" && ((e = this.configurations) == null ? void 0 : e.map((a, i) => {
667
- var n, 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: (n = a == null ? void 0 : a.event_booking) == null ? void 0 : n.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-${i}`, clickHandler: (d) => {
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) => {
669
669
  d.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
670
670
  } }, t("edit-icon", { width: "16", height: "16" }), "Edit"), t("select-dropdown", { name: "actions", options: [
671
- { value: `preview-${i}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
672
- { value: `copy-${i}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
673
- { value: `delete-${i}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
671
+ { value: `preview-${n}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
672
+ { value: `copy-${n}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
673
+ { value: `delete-${n}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
674
674
  ], 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
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)));
676
676
  }
@@ -693,25 +693,25 @@ at([
693
693
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
694
694
  eventToProps: {
695
695
  initListConfigurations: async (e, a) => {
696
- const { host: i, cursor: n } = e.detail;
697
- await i.setState("loading");
698
- const [r, s] = await a.schedulerConfig.getConfigurations(n);
696
+ const { host: n, cursor: i } = e.detail;
697
+ await n.setState("loading");
698
+ const [r, s] = await a.schedulerConfig.getConfigurations(i);
699
699
  if (!r && s && s.message) {
700
- await i.setState("error"), await i.setError(s.message);
700
+ await n.setState("error"), await n.setError(s.message);
701
701
  return;
702
702
  }
703
- await i.setState("loaded");
703
+ await n.setState("loaded");
704
704
  },
705
705
  createButtonClick: async (e, a) => {
706
706
  a.schedulerConfigStore.resetSelectedConfiguration(), a.schedulerConfigStore.state.action = "create";
707
707
  },
708
708
  deleteButtonClick: async (e, a) => {
709
- const { host: i, configuration: n } = e.detail, [r, s] = await a.schedulerConfig.deleteConfiguration(n.id);
710
- !r && s && s.message && (await i.setState("error"), await i.setError(s.message));
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));
711
711
  },
712
712
  editButtonClick: async (e, a) => {
713
- const { configuration: i } = e.detail;
714
- a.schedulerConfigStore.state.selectedConfiguration = i, a.schedulerConfigStore.state.action = "edit";
713
+ const { configuration: n } = e.detail;
714
+ a.schedulerConfigStore.state.selectedConfiguration = n, a.schedulerConfigStore.state.action = "edit";
715
715
  }
716
716
  },
717
717
  fireRegisterEvent: !0