@nylas/react 1.1.7 → 1.2.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 (230) hide show
  1. package/dist/{add-circle-icon_2.entry-5814b516.cjs → add-circle-icon_2.entry-52cc3933.cjs} +1 -1
  2. package/dist/{add-circle-icon_2.entry-5db67b5b.js → add-circle-icon_2.entry-5ea903bf.js} +1 -1
  3. package/dist/{archive-icon.entry-769e863b.js → archive-icon.entry-50c4b134.js} +1 -1
  4. package/dist/{archive-icon.entry-10ebbf9a.cjs → archive-icon.entry-718a1225.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-1ebd553a.js → arrow-icon.entry-53337688.js} +1 -1
  6. package/dist/{arrow-icon.entry-024d613a.cjs → arrow-icon.entry-ca9625d3.cjs} +1 -1
  7. package/dist/{bold-icon.entry-8bc27b72.cjs → bold-icon.entry-36e679f1.cjs} +1 -1
  8. package/dist/{bold-icon.entry-17c78a12.js → bold-icon.entry-c6109b88.js} +1 -1
  9. package/dist/{button-component_2.entry-1095ad9f.js → button-component_2.entry-0a06b0c4.js} +1 -1
  10. package/dist/{button-component_2.entry-5cd0adf0.cjs → button-component_2.entry-a1b8cd03.cjs} +1 -1
  11. package/dist/calendar-agenda-fill-icon_54.entry-5b185e75.cjs +9 -0
  12. package/dist/{calendar-agenda-fill-icon_54.entry-6b2114d5.js → calendar-agenda-fill-icon_54.entry-e4d8ab10.js} +2146 -2478
  13. package/dist/{calendar-cancel-icon.entry-4c58ea10.cjs → calendar-cancel-icon.entry-22862d8c.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-d27593a5.js → calendar-cancel-icon.entry-813a8330.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-4a35f416.cjs → calendar-check-icon_2.entry-2ca25094.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-38e1140b.js → calendar-check-icon_2.entry-79d381ce.js} +1 -1
  17. package/dist/{calendar-icon.entry-002ee369.cjs → calendar-icon.entry-78bb4f9b.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-4543de86.js → calendar-icon.entry-d52951b0.js} +1 -1
  19. package/dist/{checkbox-component_2.entry-cf15106d.js → checkbox-component_2.entry-1219f0cf.js} +1 -1
  20. package/dist/{checkbox-component_2.entry-ad4ab088.cjs → checkbox-component_2.entry-a6114846.cjs} +1 -1
  21. package/dist/{chevron-icon_3.entry-5e60a853.js → chevron-icon_3.entry-82878ccf.js} +26 -22
  22. package/dist/chevron-icon_3.entry-d8f195dc.cjs +1 -0
  23. package/dist/{clock-icon_4.entry-d03310ae.js → clock-icon_4.entry-9ab4bc41.js} +1 -1
  24. package/dist/{clock-icon_4.entry-8348282a.cjs → clock-icon_4.entry-e081ccca.cjs} +1 -1
  25. package/dist/{constants-c549b12b-7ea4c7f5.js → constants-35df11e7-b37e3406.js} +1 -1
  26. package/dist/{constants-c549b12b-c85413b1.cjs → constants-35df11e7-d87ad6d9.cjs} +1 -1
  27. package/dist/{copy-icon.entry-5337f980.cjs → copy-icon.entry-9c6f38c2.cjs} +1 -1
  28. package/dist/{copy-icon.entry-3ea78e28.js → copy-icon.entry-9d6e0f48.js} +1 -1
  29. package/dist/{delete-icon.entry-87b2daaa.cjs → delete-icon.entry-6ec9c80d.cjs} +1 -1
  30. package/dist/{delete-icon.entry-480ac215.js → delete-icon.entry-fd8dc119.js} +1 -1
  31. package/dist/{document-refresh-icon.entry-665a7947.js → document-refresh-icon.entry-2b531e97.js} +1 -1
  32. package/dist/{document-refresh-icon.entry-6be2b468.cjs → document-refresh-icon.entry-bea78baf.cjs} +1 -1
  33. package/dist/{feedbackSync-b56b29ed-36483932.js → feedbackSync-b56b29ed-a7e9f258.js} +1 -1
  34. package/dist/{feedbackSync-b56b29ed-599103b9.cjs → feedbackSync-b56b29ed-cdcec5be.cjs} +1 -1
  35. package/dist/{folder-icon.entry-89f0974f.cjs → folder-icon.entry-485465be.cjs} +1 -1
  36. package/dist/{folder-icon.entry-9bf864d7.js → folder-icon.entry-6a43630e.js} +1 -1
  37. package/dist/{forward-icon.entry-2b0167a7.js → forward-icon.entry-514ea4a8.js} +1 -1
  38. package/dist/{forward-icon.entry-699c55d9.cjs → forward-icon.entry-a1af9122.cjs} +1 -1
  39. package/dist/{globe-icon.entry-3d08a9c4.cjs → globe-icon.entry-970082a4.cjs} +1 -1
  40. package/dist/{globe-icon.entry-5d962e7a.js → globe-icon.entry-adcff451.js} +1 -1
  41. package/dist/google-logo-icon_4.entry-21cb4b95.cjs +1 -0
  42. package/dist/{google-logo-icon_4.entry-ec724f2e.js → google-logo-icon_4.entry-2b68fe81.js} +309 -302
  43. package/dist/{inbox-icon.entry-45414f66.cjs → inbox-icon.entry-94507d27.cjs} +1 -1
  44. package/dist/{inbox-icon.entry-2020fa96.js → inbox-icon.entry-d3e42f82.js} +1 -1
  45. package/dist/{index-2b208d5d.js → index-9dc1bd32.js} +511 -511
  46. package/dist/{index-bf124f70.cjs → index-bec58f1d.cjs} +16 -16
  47. package/dist/{index.es-c7ca1bad-70899f2a.js → index.es-c7ca1bad-38475209.js} +1 -1
  48. package/dist/{index.es-c7ca1bad-67a99f41.cjs → index.es-c7ca1bad-5652d50c.cjs} +1 -1
  49. package/dist/{info-icon_2.entry-b98a2882.js → info-icon_2.entry-3b5a2c7f.js} +1 -1
  50. package/dist/{info-icon_2.entry-237205a0.cjs → info-icon_2.entry-e23f3ffd.cjs} +1 -1
  51. package/dist/{input-color-picker.entry-684413c1.js → input-color-picker.entry-9bc48bd3.js} +1 -1
  52. package/dist/{input-color-picker.entry-8fe3482d.cjs → input-color-picker.entry-b4ea90c5.cjs} +1 -1
  53. package/dist/{input-component.entry-bcd13373.cjs → input-component.entry-e567ec08.cjs} +1 -1
  54. package/dist/{input-component.entry-00b97287.js → input-component.entry-ebae3a8a.js} +1 -1
  55. package/dist/{input-dropdown.entry-3c39e23a.js → input-dropdown.entry-1f704009.js} +1 -1
  56. package/dist/{input-dropdown.entry-b26475c4.cjs → input-dropdown.entry-597cd5a8.cjs} +1 -1
  57. package/dist/{italic-icon.entry-2199bb17.js → italic-icon.entry-08593dd0.js} +1 -1
  58. package/dist/{italic-icon.entry-14081a02.cjs → italic-icon.entry-8f614353.cjs} +1 -1
  59. package/dist/{multi-select-dropdown.entry-2141b848.js → multi-select-dropdown.entry-5f1c73f3.js} +1 -1
  60. package/dist/{multi-select-dropdown.entry-7b66d2ae.cjs → multi-select-dropdown.entry-eb978e22.cjs} +1 -1
  61. package/dist/nylas-booked-event-card_12.entry-73785c5c.cjs +1 -0
  62. package/dist/{nylas-booked-event-card_12.entry-2d88375a.js → nylas-booked-event-card_12.entry-c4043d8f.js} +322 -253
  63. package/dist/{nylas-form-card.entry-1e9225b0.cjs → nylas-form-card.entry-1540207c.cjs} +1 -1
  64. package/dist/{nylas-form-card.entry-a8a44a3b.js → nylas-form-card.entry-80688e35.js} +2 -2
  65. package/dist/{nylas-if-state.entry-32b11afa.js → nylas-if-state.entry-037d0454.js} +2 -2
  66. package/dist/{nylas-if-state.entry-473230a6.cjs → nylas-if-state.entry-e5155b5b.cjs} +1 -1
  67. package/dist/{nylas-login.entry-995b6f99.cjs → nylas-login.entry-b3d73ab9.cjs} +1 -1
  68. package/dist/{nylas-login.entry-d663205c.js → nylas-login.entry-d157a6ed.js} +2 -2
  69. package/dist/{nylas-provider.entry-050f20bd.cjs → nylas-provider.entry-884ba204.cjs} +1 -1
  70. package/dist/{nylas-provider.entry-c24474c3.js → nylas-provider.entry-cf4b8b57.js} +4 -4
  71. package/dist/{nylas-scheduler-editor.entry-3b834bb1.cjs → nylas-scheduler-editor.entry-6f76d0d5.cjs} +2 -2
  72. package/dist/{nylas-scheduler-editor.entry-5c0a5fb4.js → nylas-scheduler-editor.entry-e731ca4a.js} +8 -9
  73. package/dist/{nylas-scheduling.entry-04c3951e.js → nylas-scheduling.entry-86b18d85.js} +18 -16
  74. package/dist/nylas-scheduling.entry-c8ee9a2a.cjs +1 -0
  75. package/dist/{nylas-time-window-picker.entry-678a7dbf.js → nylas-time-window-picker.entry-393e855b.js} +1 -1
  76. package/dist/{nylas-time-window-picker.entry-337d03c1.cjs → nylas-time-window-picker.entry-f9687046.cjs} +1 -1
  77. package/dist/{person-icon.entry-3fee5bc4.cjs → person-icon.entry-1b5dcd2e.cjs} +1 -1
  78. package/dist/{person-icon.entry-902b2c0d.js → person-icon.entry-b5ccb1f4.js} +1 -1
  79. package/dist/{play-icon.entry-a7f648f7.cjs → play-icon.entry-3f2e7e31.cjs} +1 -1
  80. package/dist/{play-icon.entry-1078da37.js → play-icon.entry-5e51d961.js} +1 -1
  81. package/dist/react.cjs +1 -1
  82. package/dist/react.js +1 -1
  83. package/dist/{refresh-icon.entry-06f9d181.cjs → refresh-icon.entry-3d241ffd.cjs} +1 -1
  84. package/dist/{refresh-icon.entry-5399f64b.js → refresh-icon.entry-9beaa8e1.js} +1 -1
  85. package/dist/{register-component-3444af44-6d269634.cjs → register-component-3444af44-890ac950.cjs} +1 -1
  86. package/dist/{register-component-3444af44-3d6e535a.js → register-component-3444af44-94783766.js} +1 -1
  87. package/dist/{reply-all-icon.entry-a3a20f76.js → reply-all-icon.entry-6b55d3b3.js} +1 -1
  88. package/dist/{reply-all-icon.entry-70ffe5be.cjs → reply-all-icon.entry-a0fcbf30.cjs} +1 -1
  89. package/dist/{reply-icon.entry-302ed745.js → reply-icon.entry-c709b46f.js} +1 -1
  90. package/dist/{reply-icon.entry-a08c0e57.cjs → reply-icon.entry-c7d0d967.cjs} +1 -1
  91. package/dist/{scheduler-config-store-ed4a8dfd-81687f55.js → scheduler-config-store-ed4a8dfd-13c1c187.js} +1 -1
  92. package/dist/{scheduler-config-store-ed4a8dfd-34c4c119.cjs → scheduler-config-store-ed4a8dfd-ba68cc09.cjs} +1 -1
  93. package/dist/{scheduler-store-2e7db190-fb6a20a1.cjs → scheduler-store-ecd15be2-8f7d171f.cjs} +1 -1
  94. package/dist/{scheduler-store-2e7db190-c648278f.js → scheduler-store-ecd15be2-d2ef4ac2.js} +2 -2
  95. package/dist/{sent-icon.entry-6396b793.cjs → sent-icon.entry-9083bca9.cjs} +1 -1
  96. package/dist/{sent-icon.entry-4d7b65ba.js → sent-icon.entry-b65083f4.js} +1 -1
  97. package/dist/{spam-icon.entry-45e7b83b.js → spam-icon.entry-120eca46.js} +1 -1
  98. package/dist/{spam-icon.entry-8648a315.cjs → spam-icon.entry-e6c1a82a.cjs} +1 -1
  99. package/dist/{star-icon.entry-61c36332.js → star-icon.entry-e3563c0b.js} +1 -1
  100. package/dist/{star-icon.entry-1c416cef.cjs → star-icon.entry-efbc2679.cjs} +1 -1
  101. package/dist/{stop-icon.entry-d68aa652.cjs → stop-icon.entry-8d07d719.cjs} +1 -1
  102. package/dist/{stop-icon.entry-089ac3ba.js → stop-icon.entry-ab5cf663.js} +1 -1
  103. package/dist/{textarea-component.entry-502c8659.cjs → textarea-component.entry-93be4a65.cjs} +1 -1
  104. package/dist/{textarea-component.entry-8f5d835f.js → textarea-component.entry-a0ef9f03.js} +1 -1
  105. package/dist/{time-period-selector.entry-001a1c59.cjs → time-period-selector.entry-16f96af9.cjs} +1 -1
  106. package/dist/{time-period-selector.entry-7da7d316.js → time-period-selector.entry-2a86f48f.js} +1 -1
  107. package/dist/{translate-icon.entry-4ee80d22.cjs → translate-icon.entry-868948d3.cjs} +1 -1
  108. package/dist/{translate-icon.entry-5166d376.js → translate-icon.entry-d632b37b.js} +1 -1
  109. package/dist/{trash-fill-icon.entry-2f814465.cjs → trash-fill-icon.entry-88dfffbc.cjs} +1 -1
  110. package/dist/{trash-fill-icon.entry-49844a82.js → trash-fill-icon.entry-eeab235e.js} +1 -1
  111. package/dist/{underline-icon.entry-4ba93e7b.cjs → underline-icon.entry-35430c19.cjs} +1 -1
  112. package/dist/{underline-icon.entry-181f1d7e.js → underline-icon.entry-65e42dcf.js} +1 -1
  113. package/dist/{warning-icon.entry-2406b765.js → warning-icon.entry-bab6d190.js} +1 -1
  114. package/dist/{warning-icon.entry-44ac5566.cjs → warning-icon.entry-e7714a43.cjs} +1 -1
  115. package/package.json +3 -3
  116. package/dist/add-circle-icon_2.entry-95b23b9d.js +0 -25
  117. package/dist/add-circle-icon_2.entry-ae11c837.cjs +0 -1
  118. package/dist/archive-icon.entry-2ead8ef0.cjs +0 -1
  119. package/dist/archive-icon.entry-b28d195c.js +0 -15
  120. package/dist/arrow-icon.entry-8de38831.cjs +0 -1
  121. package/dist/arrow-icon.entry-e29d7a6c.js +0 -15
  122. package/dist/bold-icon.entry-316f5e61.js +0 -15
  123. package/dist/bold-icon.entry-caf96585.cjs +0 -1
  124. package/dist/button-component_2.entry-531a725d.js +0 -26
  125. package/dist/button-component_2.entry-64a41161.cjs +0 -1
  126. package/dist/calendar-agenda-fill-icon_54.entry-84e72636.js +0 -5656
  127. package/dist/calendar-agenda-fill-icon_54.entry-abb96e20.cjs +0 -10
  128. package/dist/calendar-agenda-fill-icon_54.entry-f5577fdb.cjs +0 -10
  129. package/dist/calendar-cancel-icon.entry-f11e5aaa.cjs +0 -1
  130. package/dist/calendar-cancel-icon.entry-f1a6f9bc.js +0 -15
  131. package/dist/calendar-check-icon_2.entry-52187599.cjs +0 -1
  132. package/dist/calendar-check-icon_2.entry-7f17a3a6.js +0 -25
  133. package/dist/calendar-icon.entry-3c5c97d4.cjs +0 -1
  134. package/dist/calendar-icon.entry-b76e26e6.js +0 -15
  135. package/dist/checkbox-component_2.entry-b24885e9.cjs +0 -1
  136. package/dist/checkbox-component_2.entry-e4a3dd2d.js +0 -79
  137. package/dist/chevron-icon_3.entry-582df6f7.cjs +0 -1
  138. package/dist/chevron-icon_3.entry-59d8b408.cjs +0 -1
  139. package/dist/chevron-icon_3.entry-cab72db3.js +0 -143
  140. package/dist/clock-icon_4.entry-f6b9f85d.js +0 -45
  141. package/dist/clock-icon_4.entry-fcbc39b0.cjs +0 -1
  142. package/dist/copy-icon.entry-430beab4.js +0 -15
  143. package/dist/copy-icon.entry-74a59fc5.cjs +0 -1
  144. package/dist/delete-icon.entry-9c1af040.js +0 -15
  145. package/dist/delete-icon.entry-e320cde1.cjs +0 -1
  146. package/dist/document-refresh-icon.entry-930ee2b7.js +0 -15
  147. package/dist/document-refresh-icon.entry-fcde4ff6.cjs +0 -1
  148. package/dist/feedbackSync-b56b29ed-7a7c650e.cjs +0 -448
  149. package/dist/feedbackSync-b56b29ed-9e38fdb6.js +0 -6035
  150. package/dist/folder-icon.entry-977e50eb.cjs +0 -1
  151. package/dist/folder-icon.entry-b80d8fd7.js +0 -15
  152. package/dist/forward-icon.entry-c4c20f31.cjs +0 -1
  153. package/dist/forward-icon.entry-eb64aa16.js +0 -15
  154. package/dist/globe-icon.entry-5ef1dc42.cjs +0 -1
  155. package/dist/globe-icon.entry-667987bd.js +0 -15
  156. package/dist/google-logo-icon_4.entry-12f1492f.cjs +0 -1
  157. package/dist/google-logo-icon_4.entry-bd4d2237.cjs +0 -1
  158. package/dist/google-logo-icon_4.entry-fc38681e.js +0 -729
  159. package/dist/inbox-icon.entry-49353988.js +0 -15
  160. package/dist/inbox-icon.entry-b556231f.cjs +0 -1
  161. package/dist/index-290b2932.cjs +0 -81
  162. package/dist/index-fb096a02.js +0 -13011
  163. package/dist/index.es-c7ca1bad-b7a3e6bd.cjs +0 -7
  164. package/dist/index.es-c7ca1bad-cb3a99a7.js +0 -3129
  165. package/dist/info-icon_2.entry-caf64c28.cjs +0 -1
  166. package/dist/info-icon_2.entry-d935e5c2.js +0 -34
  167. package/dist/input-color-picker.entry-752534de.js +0 -48
  168. package/dist/input-color-picker.entry-f856fce3.cjs +0 -1
  169. package/dist/input-component.entry-4400f98e.js +0 -70
  170. package/dist/input-component.entry-d486907a.cjs +0 -1
  171. package/dist/input-dropdown.entry-bea3c690.js +0 -134
  172. package/dist/input-dropdown.entry-d3d4e50e.cjs +0 -1
  173. package/dist/italic-icon.entry-63726952.cjs +0 -1
  174. package/dist/italic-icon.entry-a3c87e5e.js +0 -15
  175. package/dist/multi-select-dropdown.entry-8a2c4b42.cjs +0 -1
  176. package/dist/multi-select-dropdown.entry-cdd97d65.js +0 -95
  177. package/dist/nylas-booked-event-card_12.entry-20c254bb.cjs +0 -1
  178. package/dist/nylas-booked-event-card_12.entry-90a0b6c7.cjs +0 -1
  179. package/dist/nylas-booked-event-card_12.entry-bbd7cfb0.js +0 -1237
  180. package/dist/nylas-form-card.entry-d6287d76.cjs +0 -1
  181. package/dist/nylas-form-card.entry-fadd7718.js +0 -57
  182. package/dist/nylas-if-state.entry-8be8107e.js +0 -94
  183. package/dist/nylas-if-state.entry-9c341f13.cjs +0 -1
  184. package/dist/nylas-login.entry-b9c2fb27.cjs +0 -1
  185. package/dist/nylas-login.entry-e3a9c5c1.js +0 -73
  186. package/dist/nylas-provider.entry-5b54f2cc.cjs +0 -1
  187. package/dist/nylas-provider.entry-ca3e06ce.js +0 -264
  188. package/dist/nylas-scheduler-editor.entry-b86f49a1.js +0 -1447
  189. package/dist/nylas-scheduler-editor.entry-d52db29e.cjs +0 -2
  190. package/dist/nylas-scheduling.entry-a5c4b050.js +0 -412
  191. package/dist/nylas-scheduling.entry-d549c5c3.cjs +0 -1
  192. package/dist/nylas-scheduling.entry-ed12a4f6.cjs +0 -1
  193. package/dist/nylas-time-window-picker.entry-4aefade8.cjs +0 -1
  194. package/dist/nylas-time-window-picker.entry-ecc3ee10.js +0 -316
  195. package/dist/person-icon.entry-9680bc2b.js +0 -15
  196. package/dist/person-icon.entry-dede7140.cjs +0 -1
  197. package/dist/play-icon.entry-c8f3a5d8.cjs +0 -1
  198. package/dist/play-icon.entry-dacc3aa6.js +0 -15
  199. package/dist/refresh-icon.entry-555a38ec.cjs +0 -1
  200. package/dist/refresh-icon.entry-d4dcfc3a.js +0 -15
  201. package/dist/register-component-3444af44-4a273c0a.js +0 -109
  202. package/dist/register-component-3444af44-d3e7252a.cjs +0 -1
  203. package/dist/reply-all-icon.entry-bb2a88ad.js +0 -15
  204. package/dist/reply-all-icon.entry-f8a32be1.cjs +0 -1
  205. package/dist/reply-icon.entry-423fb307.js +0 -15
  206. package/dist/reply-icon.entry-d2da8972.cjs +0 -1
  207. package/dist/scheduler-config-store-ed4a8dfd-474f6252.cjs +0 -1
  208. package/dist/scheduler-config-store-ed4a8dfd-fe2b9d18.js +0 -26
  209. package/dist/scheduler-store-5fbba021-09da63cf.cjs +0 -1
  210. package/dist/scheduler-store-5fbba021-6298edf3.js +0 -484
  211. package/dist/sent-icon.entry-6ed4170a.js +0 -15
  212. package/dist/sent-icon.entry-db89fd38.cjs +0 -1
  213. package/dist/spam-icon.entry-81073952.js +0 -15
  214. package/dist/spam-icon.entry-cf05a2a7.cjs +0 -1
  215. package/dist/star-icon.entry-8279e6a9.cjs +0 -1
  216. package/dist/star-icon.entry-bb26cc4e.js +0 -15
  217. package/dist/stop-icon.entry-f62d063b.js +0 -15
  218. package/dist/stop-icon.entry-f88a5a2a.cjs +0 -1
  219. package/dist/textarea-component.entry-d4a682fa.js +0 -37
  220. package/dist/textarea-component.entry-e06ee834.cjs +0 -1
  221. package/dist/time-period-selector.entry-837b9be3.js +0 -80
  222. package/dist/time-period-selector.entry-c5b6d0c9.cjs +0 -1
  223. package/dist/translate-icon.entry-c1a623d8.cjs +0 -1
  224. package/dist/translate-icon.entry-e5cfae44.js +0 -15
  225. package/dist/trash-fill-icon.entry-85e0e841.js +0 -15
  226. package/dist/trash-fill-icon.entry-def90241.cjs +0 -1
  227. package/dist/underline-icon.entry-72dadbdf.cjs +0 -1
  228. package/dist/underline-icon.entry-f7a75755.js +0 -15
  229. package/dist/warning-icon.entry-5b6aeb2b.cjs +0 -1
  230. package/dist/warning-icon.entry-ef601856.js +0 -15
@@ -1,484 +0,0 @@
1
- import { d as L, a as F, i as c, j as R } from "./index-2b208d5d.js";
2
- var B;
3
- (function(a) {
4
- a.Component = "component", a.Api = "api", a.Auth = "auth";
5
- })(B || (B = {}));
6
- var M;
7
- (function(a) {
8
- a.endtime_not_in_future = "endtime_not_in_future", a.no_booking_info = "no_booking_info", a.no_timeslot_selected = "no_timeslot_selected", a.no_timezone_selected = "no_timezone_selected", a.no_booking_id = "no_booking_id", a.no_salt = "no_salt", a.invalid_start_time = "invalid_start_time", a.invalid_end_time = "invalid_end_time", a.invalid_timezone = "invalid_timezone";
9
- })(M || (M = {}));
10
- var P;
11
- (function(a) {
12
- a.invalid_session = "invalid_session", a.general_error = "general_error", a.internal_error = "internal_error", a.invalid_request_error = "invalid_request_error", a.timeslot_not_available = "timeslot_not_available", a.provider_error = "provider_error", a.not_found_error = "not_found_error";
13
- })(P || (P = {}));
14
- class C {
15
- constructor() {
16
- this.component = (e) => {
17
- const t = B.Component, s = `${e} Error`;
18
- return {
19
- endtime_not_in_future: (i = '"endtime" can not be in the future') => ({
20
- title: s,
21
- message: i,
22
- category: t
23
- }),
24
- no_booking_info: (i = "No booking info provided") => ({
25
- title: s,
26
- message: i,
27
- category: t
28
- }),
29
- no_timeslot_selected: (i = "No timeslot selected") => ({
30
- title: s,
31
- message: i,
32
- category: t
33
- }),
34
- no_timezone_selected: (i = "No timezone selected") => ({
35
- title: s,
36
- message: i,
37
- category: t
38
- }),
39
- no_booking_id: (i = "No booking id provided") => ({
40
- title: s,
41
- message: i,
42
- category: t
43
- }),
44
- no_salt: (i = "No salt provided") => ({
45
- title: s,
46
- message: i,
47
- category: t
48
- }),
49
- invalid_start_time: (i = "Invalid start time") => ({
50
- title: s,
51
- message: i,
52
- category: t
53
- }),
54
- invalid_end_time: (i = "Invalid end time") => ({
55
- title: s,
56
- message: i,
57
- category: t
58
- }),
59
- invalid_timezone: (i = "Invalid timezone") => ({
60
- title: s,
61
- message: i,
62
- category: t
63
- })
64
- };
65
- }, this.api = (e) => {
66
- const t = B.Api, s = `${e} Error`;
67
- return {
68
- invalid_session: (i) => ({
69
- title: s,
70
- message: i,
71
- category: t
72
- }),
73
- general_error: (i) => ({
74
- title: s,
75
- message: i,
76
- category: t
77
- }),
78
- internal_error: (i) => ({
79
- title: s,
80
- message: i,
81
- category: t
82
- }),
83
- invalid_request_error: (i) => ({
84
- title: s,
85
- message: i,
86
- category: t
87
- }),
88
- timeslot_not_available: (i) => ({
89
- title: s,
90
- message: i,
91
- category: t
92
- }),
93
- provider_error: (i) => ({
94
- title: s,
95
- message: i,
96
- category: t
97
- }),
98
- not_found_error: (i) => ({
99
- title: s,
100
- message: i,
101
- category: t
102
- })
103
- };
104
- };
105
- }
106
- }
107
- class N {
108
- constructor({ schedulerAPIURL: e, schedulerStore: t, sessionId: s, configId: i, slug: n, clientId: r }) {
109
- this.errors = new C(), this.schedulerStore = t, this.schedulerAPIURL = e, this.sessionId = s, this.configId = i, this.slug = n, this.clientId = r;
110
- }
111
- getHeaders() {
112
- return this.sessionId ? {
113
- Authorization: `Bearer ${this.sessionId}`
114
- } : {};
115
- }
116
- async makeAPIRequest(e, t, s, i = {}) {
117
- try {
118
- const n = new URL(this.schedulerAPIURL), r = "1.1.6";
119
- return n.pathname = e, await (await fetch(decodeURIComponent(n.toString()), {
120
- method: t,
121
- headers: {
122
- "Content-Type": "application/json",
123
- Origin: window.location.origin,
124
- "X-Source": "nylas-scheduling",
125
- "X-Nylas-Web-Elements-Version": r,
126
- ...i
127
- },
128
- body: s
129
- })).json();
130
- } catch (n) {
131
- return {
132
- error: {
133
- message: n.message,
134
- title: "API request failed",
135
- type: "api"
136
- }
137
- };
138
- }
139
- }
140
- getErrorMessage(e) {
141
- var s, i, n, r;
142
- let t = (e == null ? void 0 : e.message) || (e == null ? void 0 : e.title) || "Something went wrong";
143
- return (e == null ? void 0 : e.type) === "provider_error" && (t = ((i = (s = e == null ? void 0 : e.provider_error) == null ? void 0 : s.error) == null ? void 0 : i.message) || ((r = (n = e == null ? void 0 : e.provider_error) == null ? void 0 : n.error) == null ? void 0 : r.title) || "Something went wrong"), t;
144
- }
145
- setConfigId(e) {
146
- this.configId = e;
147
- }
148
- selectDate(e) {
149
- this.schedulerStore.set("selectedDate", e), this.schedulerStore.set("selectedTimeslot", null);
150
- }
151
- selectTime(e) {
152
- this.schedulerStore.set("selectedTimeslot", e);
153
- }
154
- selectTimezone(e) {
155
- this.schedulerStore.set("selectedTimezone", e);
156
- }
157
- selectLanguage(e) {
158
- this.schedulerStore.set("selectedLanguage", e), c.changeLanguage(e);
159
- }
160
- async toggleAdditionalData(e) {
161
- e || await this.refetchAvailability(), this.schedulerStore.set("showBookingForm", e);
162
- }
163
- setParticipantName(e) {
164
- const { bookingInfo: t } = this.schedulerStore.state;
165
- this.schedulerStore.set("bookingInfo", {
166
- ...t,
167
- primaryParticipant: {
168
- ...t == null ? void 0 : t.primaryParticipant,
169
- name: e
170
- }
171
- });
172
- }
173
- setParticipantEmail(e) {
174
- const { bookingInfo: t } = this.schedulerStore.state;
175
- this.schedulerStore.set("bookingInfo", {
176
- ...t,
177
- primaryParticipant: {
178
- ...t == null ? void 0 : t.primaryParticipant,
179
- email: e
180
- }
181
- });
182
- }
183
- async refetchAvailability() {
184
- const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, s = t < e.getTime() / 1e3 ? Math.floor(e.getTime() / 1e3) : t, i = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3;
185
- return await this.getAvailability(s, i);
186
- }
187
- async resetStoreStateAndFetchAvailability() {
188
- const e = /* @__PURE__ */ new Date(), t = await this.refetchAvailability(), s = this.schedulerStore.get("availability").find((n) => new Date(n.start_time) > /* @__PURE__ */ new Date());
189
- let i = e;
190
- return s && (i = s.start_time), this.schedulerStore.set("selectedDate", i), this.schedulerStore.set("eventInfo", null), this.schedulerStore.set("showBookingForm", !1), this.schedulerStore.set("selectedTimeslot", null), t;
191
- }
192
- async setReschedule(e) {
193
- this.schedulerStore.set("isLoading", !0);
194
- const t = this.schedulerStore.state.eventInfo;
195
- return t && this.schedulerStore.set("reschedulingEventInfo", t), this.schedulerStore.set("rescheduleBookingId", e), await this.resetStoreStateAndFetchAvailability().finally(() => {
196
- this.schedulerStore.set("isLoading", !1);
197
- });
198
- }
199
- async setCancel(e) {
200
- this.schedulerStore.set("cancelBookingId", e);
201
- }
202
- async setReject(e) {
203
- this.schedulerStore.set("rejectBookingId", e);
204
- }
205
- async resetCancel() {
206
- const e = await this.resetStoreStateAndFetchAvailability();
207
- return this.schedulerStore.set("cancelBookingId", ""), this.schedulerStore.set("rejectBookingId", ""), this.schedulerStore.set("cancelledEventInfo", null), e;
208
- }
209
- async goBack() {
210
- this.schedulerStore.set("cancelBookingId", "");
211
- }
212
- async resetConfirm() {
213
- const e = await this.resetStoreStateAndFetchAvailability();
214
- return this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("confirmedEventInfo", void 0), e;
215
- }
216
- async bookTimeslot(e) {
217
- var I;
218
- this.schedulerStore.set("isLoading", !0);
219
- const { selectedTimeslot: t, selectedTimezone: s, bookingInfo: i, selectedLanguage: n } = this.schedulerStore.state;
220
- if (!e && !i)
221
- return { error: this.errors.component(c.t("createBookingErrorTitle")).no_booking_info() };
222
- const r = (e == null ? void 0 : e.timeslot) || t;
223
- if (!r)
224
- return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timeslot_selected() };
225
- const o = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : s, g = n || "en-US";
226
- if (!o)
227
- return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timezone_selected() };
228
- const h = this.schedulerStore.get("availabilityOrderEmails");
229
- let l = "";
230
- if (h.length > 0) {
231
- const k = (r == null ? void 0 : r.emails) || [];
232
- for (let f = 0; f < h.length; f++)
233
- if (k.includes(h[f])) {
234
- l = h[f];
235
- break;
236
- }
237
- }
238
- const d = {};
239
- Object.entries((i == null ? void 0 : i.additionalFields) || {}).forEach(([k, f]) => {
240
- d[k] = f.value;
241
- });
242
- const _ = e ? e == null ? void 0 : e.primaryParticipant : i == null ? void 0 : i.primaryParticipant, S = e ? (e == null ? void 0 : e.guests) || [] : (i == null ? void 0 : i.guests) || [], p = e ? e == null ? void 0 : e.additionalFields : d, T = this.getHeaders(), v = `/v3/scheduling/bookings${!this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : ""}`, u = await this.makeAPIRequest(decodeURIComponent(v), "POST", JSON.stringify({
243
- participants: l ? [{ email: l }] : void 0,
244
- additional_fields: p,
245
- additional_guests: S,
246
- guest: { ..._ },
247
- start_time: r.start_time.getTime() / 1e3,
248
- end_time: r.end_time.getTime() / 1e3,
249
- timezone: o,
250
- email_language: this.getTwoLetterLanguageCode(g)
251
- }), T);
252
- if ("error" in u) {
253
- this.schedulerStore.set("isLoading", !1);
254
- const k = (I = u.error) == null ? void 0 : I.type;
255
- let f = u.error;
256
- if (k && k in this.errors.api("Create Booking")) {
257
- const E = this.getErrorMessage(f);
258
- f = this.errors.api("Create Booking")[k](E);
259
- }
260
- return { error: f };
261
- }
262
- return "data" in u && this.schedulerStore.set("eventInfo", u == null ? void 0 : u.data), this.schedulerStore.set("isLoading", !1), u;
263
- }
264
- async getUISettings() {
265
- var n;
266
- this.schedulerStore.set("isLoading", !0);
267
- const e = this.getHeaders(), s = `/v3/scheduling/ui-settings${!this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : ""}`, i = await this.makeAPIRequest(s, "GET", void 0, e);
268
- if ("error" in i) {
269
- this.schedulerStore.set("isLoading", !1);
270
- const r = (n = i.error) == null ? void 0 : n.type;
271
- let o = i.error;
272
- return r && r in this.errors.api(c.t("getUISettingErrorTitle")) && (o = this.errors.api(c.t("getUISettingErrorTitle"))[r]((o == null ? void 0 : o.message) || (o == null ? void 0 : o.title) || "Something went wrong")), { error: o };
273
- }
274
- return "data" in i && this.schedulerStore.set("configSettings", i.data), this.schedulerStore.set("isLoading", !1), i;
275
- }
276
- getTwoLetterLanguageCode(e) {
277
- return e.split("-")[0];
278
- }
279
- getStartTimeWithMinBookingNotice(e) {
280
- var n;
281
- const t = (n = this.schedulerStore.get("configSettings")) == null ? void 0 : n.scheduler, s = t == null ? void 0 : t.min_booking_notice;
282
- if (!s)
283
- return e;
284
- const i = (/* @__PURE__ */ new Date()).getTime();
285
- return e < (i + s * 60 * 1e3) / 1e3 ? Math.floor((i + s * 60 * 1e3) / 1e3) : e;
286
- }
287
- getEndTimeForAvailableDaysInFuture(e) {
288
- var r, o;
289
- const t = /* @__PURE__ */ new Date(), s = (o = (r = this.schedulerStore.get("configSettings")) == null ? void 0 : r.scheduler) == null ? void 0 : o.available_days_in_future, i = Math.floor(R(t, s).getTime() / 1e3);
290
- return Math.min(i, e);
291
- }
292
- async getAvailability(e = 0, t = 0) {
293
- var _, S, p, T;
294
- this.schedulerStore.set("isLoading", !0);
295
- const s = new URLSearchParams(), i = /* @__PURE__ */ new Date(), n = i.getTime();
296
- if (t && t < n / 1e3)
297
- return this.schedulerStore.set("isLoading", !1), { error: this.errors.component(c.t("getAvailabilityErrorTitle")).endtime_not_in_future() };
298
- if (!e) {
299
- const m = new Date(i.getFullYear(), i.getMonth(), 1);
300
- e = Math.floor(m.getTime() / 1e3);
301
- }
302
- if (!t) {
303
- const m = new Date(i.getFullYear(), i.getMonth() + 1, 0);
304
- t = Math.floor(m.getTime() / 1e3);
305
- }
306
- t = this.getEndTimeForAvailableDaysInFuture(t);
307
- const r = this.getStartTimeWithMinBookingNotice(e);
308
- e = r, t = r > t ? r + 1 : t, s.append("start_time", encodeURIComponent(e.toString())), s.append("end_time", encodeURIComponent(t.toString())), this.configId && !this.sessionId ? s.append("configuration_id", encodeURIComponent(this.configId)) : this.slug && this.clientId && !this.sessionId && (s.append("slug", encodeURIComponent(this.slug)), s.append("client_id", encodeURIComponent(this.clientId)));
309
- const o = this.schedulerStore.get("rescheduleBookingId");
310
- o && s.append("booking_id", encodeURIComponent(o));
311
- const g = s.toString(), h = `/v3/scheduling/availability${g ? `?${g}` : ""}`, l = this.getHeaders(), d = await this.makeAPIRequest(decodeURIComponent(h), "GET", void 0, l);
312
- if ("error" in d) {
313
- this.schedulerStore.set("availability", []), this.schedulerStore.set("isLoading", !1);
314
- const m = (_ = d.error) == null ? void 0 : _.type;
315
- let v = d.error;
316
- if (m && m in this.errors.api(c.t("getAvailabilityErrorTitle"))) {
317
- const u = this.getErrorMessage(v);
318
- v = this.errors.api(c.t("getAvailabilityErrorTitle"))[m](u);
319
- }
320
- return { error: v };
321
- }
322
- if ("data" in d) {
323
- const v = (((p = (S = d.data) == null ? void 0 : S.time_slots) == null ? void 0 : p.map((I) => ({
324
- ...I,
325
- start_time: new Date(I.start_time * 1e3),
326
- end_time: new Date(I.end_time * 1e3)
327
- }))) || []).filter((I) => I.start_time.getTime() > n);
328
- this.schedulerStore.set("availability", v);
329
- const u = ((T = d.data) == null ? void 0 : T.order) || [];
330
- this.schedulerStore.set("availabilityOrderEmails", u);
331
- }
332
- return this.schedulerStore.set("isLoading", !1), d;
333
- }
334
- async cancelBooking(e, t) {
335
- var o;
336
- if (this.schedulerStore.set("isLoading", !0), !e)
337
- return { error: this.errors.component(c.t("cancelBookingErrorTitle")).no_booking_id() };
338
- const s = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", i = `/v3/scheduling/bookings/${e}${s}`, n = this.getHeaders(), r = await this.makeAPIRequest(decodeURIComponent(i), "DELETE", JSON.stringify({
339
- action: "cancel",
340
- cancellation_reason: t
341
- }), n);
342
- if ("error" in r) {
343
- this.schedulerStore.set("isLoading", !1);
344
- const g = (o = r.error) == null ? void 0 : o.type;
345
- let h = r.error;
346
- if (g && g in this.errors.api(c.t("cancelBookingErrorTitle"))) {
347
- const l = this.getErrorMessage(h);
348
- h = this.errors.api(c.t("cancelBookingErrorTitle"))[g](l);
349
- }
350
- return { error: h };
351
- }
352
- return this.schedulerStore.set("cancelledEventInfo", {
353
- booking_id: e
354
- }), this.schedulerStore.set("rescheduleBookingId", ""), this.schedulerStore.set("isLoading", !1), r;
355
- }
356
- async rescheduleBooking(e, t) {
357
- var A;
358
- if (this.schedulerStore.set("isLoading", !0), !e)
359
- return { error: this.errors.component(c.t("rescheduleBookingErrorTitle")).no_booking_id() };
360
- const s = this.errors.api(c.t("rescheduleBookingErrorTitle")), i = this.errors.component(c.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: o, selectedLanguage: g } = this.schedulerStore.state, { startTime: h, endTime: l, timezone: d } = t, _ = h || (r == null ? void 0 : r.start_time);
361
- if (!_)
362
- return { error: i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
363
- const S = l || (r == null ? void 0 : r.end_time);
364
- if (!S)
365
- return { error: i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
366
- const p = this.schedulerStore.get("availabilityOrderEmails");
367
- let T = "";
368
- if (p.length > 0) {
369
- const b = (r == null ? void 0 : r.emails) || [];
370
- for (let y = 0; y < p.length; y++)
371
- if (b.includes(p[y])) {
372
- T = p[y];
373
- break;
374
- }
375
- }
376
- const m = d || o;
377
- if (!m)
378
- return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
379
- const v = {};
380
- Object.entries((n == null ? void 0 : n.additionalFields) || {}).forEach(([b, y]) => {
381
- v[b] = y.value;
382
- });
383
- const u = t ? t == null ? void 0 : t.primaryParticipant : n == null ? void 0 : n.primaryParticipant, I = t ? (t == null ? void 0 : t.guests) || [] : (n == null ? void 0 : n.guests) || [], k = t ? t == null ? void 0 : t.additionalFields : v, f = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", E = `/v3/scheduling/bookings/${e}${f}`, z = this.getHeaders(), w = await this.makeAPIRequest(decodeURIComponent(E), "PATCH", JSON.stringify({
384
- start_time: _.getTime() / 1e3,
385
- end_time: S.getTime() / 1e3,
386
- timezone: m,
387
- additional_fields: k,
388
- guest: { ...u },
389
- additional_guests: I,
390
- participants: T ? [{ email: T }] : void 0,
391
- email_language: this.getTwoLetterLanguageCode(g)
392
- }), z);
393
- if ("error" in w) {
394
- this.schedulerStore.set("isLoading", !1);
395
- const b = (A = w.error) == null ? void 0 : A.type;
396
- let y = w.error;
397
- if (b && b in s) {
398
- const $ = this.getErrorMessage(y);
399
- y = s[b]($);
400
- }
401
- return { error: y };
402
- }
403
- const D = this.schedulerStore.get("reschedulingEventInfo");
404
- if ("data" in w)
405
- this.schedulerStore.set("eventInfo", w == null ? void 0 : w.data);
406
- else if (D)
407
- this.schedulerStore.set("eventInfo", D);
408
- else {
409
- const b = {
410
- booking_id: e
411
- };
412
- this.schedulerStore.set("eventInfo", b);
413
- }
414
- return this.schedulerStore.set("isLoading", !1), w;
415
- }
416
- async updateBooking(e) {
417
- var d;
418
- this.schedulerStore.set("isLoading", !0);
419
- const { bookingId: t, status: s, reason: i } = e, n = this.schedulerStore.get("organizerConfirmationSalt"), r = s === "confirmed" ? c.t("confirmBookingErrorTitle") : c.t("rejectBookingErrorTitle");
420
- if (!t)
421
- return { error: this.errors.component(r).no_booking_id() };
422
- if (!n)
423
- return { error: this.errors.component(r).no_salt() };
424
- const o = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", g = `/v3/scheduling/bookings/${t}${o}`, h = this.getHeaders(), l = await this.makeAPIRequest(decodeURIComponent(g), "PUT", JSON.stringify({
425
- status: s,
426
- cancellation_reason: i,
427
- salt: n
428
- }), h);
429
- if ("error" in l) {
430
- this.schedulerStore.set("isLoading", !1);
431
- const _ = (d = l.error) == null ? void 0 : d.type;
432
- let S = l.error;
433
- if (_ && _ in this.errors.api(r)) {
434
- const p = this.getErrorMessage(S);
435
- S = this.errors.api(r)[_](p);
436
- }
437
- return { error: S };
438
- }
439
- return "data" in l && s === "confirmed" ? this.schedulerStore.set("confirmedEventInfo", l == null ? void 0 : l.data) : "request_id" in l && s === "cancelled" && this.schedulerStore.set("cancelledEventInfo", {
440
- booking_id: t
441
- }), this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("isLoading", !1), l;
442
- }
443
- }
444
- function O(a = {}) {
445
- const e = {
446
- selectedDate: null,
447
- selectedLanguage: navigator.language,
448
- selectedTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
449
- selectedTimeslot: null,
450
- showBookingForm: !1,
451
- availabilityOrderEmails: [],
452
- selectableDates: null,
453
- availability: [],
454
- eventDuration: 0,
455
- state: "ready",
456
- eventInfo: null,
457
- cancelledEventInfo: null,
458
- isLoading: !1,
459
- nylasBranding: !0,
460
- ...a
461
- };
462
- L("[defaultNylasStoreState]: ", e);
463
- const t = F(e);
464
- return t.onChange("availability", (s) => {
465
- L("[availability]: ", s);
466
- const i = s.map((o) => o.start_time);
467
- L("[selectableDates]: ", i), t.set("selectableDates", i);
468
- const n = s[0];
469
- if (!n)
470
- return;
471
- const r = Math.floor((n.end_time.getTime() - n.start_time.getTime()) / 6e4);
472
- L("[durationMinutes]: ", r), t.set("eventDuration", r);
473
- }), t.reset = () => {
474
- for (const s in e) {
475
- const i = e[s];
476
- t.set(s, i);
477
- }
478
- }, t;
479
- }
480
- export {
481
- O as C,
482
- B as E,
483
- N
484
- };
@@ -1,15 +0,0 @@
1
- import { r as s, h as t } from "./index-2b208d5d.js";
2
- import "react";
3
- import "react-dom";
4
- const o = ".sc-sent-icon-h{display:flex}", i = o, c = class {
5
- constructor(e) {
6
- s(this, e), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "ca3a664814e986f46006171c0fb63441478ef5b8", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "e4d9309797e02ca60918d49c55854d51f93c1a2b", d: "M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "082bf637872a00ba8abe224cc7c8092dc371ea75", d: "M3.5 3.5L12 10.5", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "dd3f5647d7cdb9dfbdb480ab332917564969f546", d: "M3.5 20.5L12 13.5", stroke: "auto", "stroke-width": "1.5" }));
10
- }
11
- };
12
- c.style = i;
13
- export {
14
- c as sent_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-290b2932.cjs");require("react");require("react-dom");const i=".sc-sent-icon-h{display:flex}",o=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"ca3a664814e986f46006171c0fb63441478ef5b8",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"e4d9309797e02ca60918d49c55854d51f93c1a2b",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"082bf637872a00ba8abe224cc7c8092dc371ea75",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"dd3f5647d7cdb9dfbdb480ab332917564969f546",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};e.style=o;exports.sent_icon=e;
@@ -1,15 +0,0 @@
1
- import { r as e, h as t } from "./index-fb096a02.js";
2
- import "react";
3
- import "react-dom";
4
- const c = ".sc-spam-icon-h{display:flex}", a = c, o = class {
5
- constructor(s) {
6
- e(this, s), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "a8e87346312ed75a47b88790585e07d8c518c3e9", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "5cb3444afa08fc37a8cf2e268c62faf5c97379f5", d: "M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "b695c0e7aa34cf44da99cce51c17ff98b3ad8906", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
10
- }
11
- };
12
- o.style = a;
13
- export {
14
- o as spam_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-290b2932.cjs");require("react");require("react-dom");const c=".sc-spam-icon-h{display:flex}",i=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"a8e87346312ed75a47b88790585e07d8c518c3e9",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5cb3444afa08fc37a8cf2e268c62faf5c97379f5",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"b695c0e7aa34cf44da99cce51c17ff98b3ad8906",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.spam_icon=t;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-290b2932.cjs");require("react");require("react-dom");const i=".sc-star-icon-h{display:flex}",c=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"acc7e88e0901acac79fd0bf4a3a355ea82b46934",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"a3a8ed61cce35a1f67c5aa22cb0aee42c965474e",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};e.style=c;exports.star_icon=e;
@@ -1,15 +0,0 @@
1
- import { r as e, h as t } from "./index-fb096a02.js";
2
- import "react";
3
- import "react-dom";
4
- const a = ".sc-star-icon-h{display:flex}", c = a, i = class {
5
- constructor(s) {
6
- e(this, s), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "acc7e88e0901acac79fd0bf4a3a355ea82b46934", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "a3a8ed61cce35a1f67c5aa22cb0aee42c965474e", d: "M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z", stroke: "auto", "stroke-width": "1.5" }));
10
- }
11
- };
12
- i.style = c;
13
- export {
14
- i as star_icon
15
- };
@@ -1,15 +0,0 @@
1
- import { r as s, h as t } from "./index-2b208d5d.js";
2
- import "react";
3
- import "react-dom";
4
- const e = ".sc-stop-icon-h{display:flex}", i = e, c = class {
5
- constructor(o) {
6
- s(this, o), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "f70cc744dde889a32cc0339cf4be41ae38237d0b", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f7bd4f78d4e2efc797932d91aac355e0f9d4f309", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
- }
11
- };
12
- c.style = i;
13
- export {
14
- c as stop_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-290b2932.cjs");require("react");require("react-dom");const s=".sc-stop-icon-h{display:flex}",i=s,e=class{constructor(o){t.registerInstance(this,o),this.width="15",this.height="15"}render(){return t.h("svg",{key:"f70cc744dde889a32cc0339cf4be41ae38237d0b",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"f7bd4f78d4e2efc797932d91aac355e0f9d4f309",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};e.style=i;exports.stop_icon=e;
@@ -1,37 +0,0 @@
1
- import { r as s, c as l, t as r, h as a } from "./index-2b208d5d.js";
2
- import "react";
3
- import "react-dom";
4
- const i = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}', n = i, o = class {
5
- constructor(e) {
6
- s(this, e), this.nylasFormInputChanged = l(this, "nylasFormInputChanged", 7), this.name = "textarea", this.defaultValue = void 0, this.label = "", this.placeholder = "", this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.maxLength = 255, this.type = "multi_line_text", this.tooltip = "", this.value = "", this.error = "";
7
- }
8
- componentDidLoad() {
9
- this.value = r(this.defaultValue || "");
10
- }
11
- handleBookingFormSubmitted(e) {
12
- this.validate(this.value), this.error && e.preventDefault();
13
- }
14
- handletriggerValidation(e) {
15
- this.validate(this.value), this.error && e.preventDefault();
16
- }
17
- handleInput(e) {
18
- const t = e.target;
19
- this.value = r(t.value), this.nylasFormInputChanged.emit({
20
- value: this.value,
21
- name: this.name,
22
- error: this.error,
23
- label: this.label,
24
- type: this.type
25
- });
26
- }
27
- validate(e) {
28
- this.required && !e ? this.error = `${this.label} is required.` : e.length > this.maxLength ? this.error = `${this.label} cannot exceed ${this.maxLength} characters.` : this.error = "";
29
- }
30
- render() {
31
- return a("label", { key: "503a9e472a4dea351f13d8e430a0ee9ecc20e3fb", part: "tc__label", class: { error: !!this.error } }, a("p", { key: "7ce9a57c8e2dc9d0c3a88edf93ba09a3b49cf149" }, a("span", { key: "8feedbb7300d0eb20192b17a0482f9c981bba120", class: "label" }, this.label), this.required && a("span", { class: "required" }, "*"), this.tooltip && a("tooltip-component", null, a("info-icon", { slot: "tooltip-icon" }), a("span", { slot: "tooltip-content" }, this.tooltip))), a("textarea", { key: "79dd6889c5da4797b26504731583db5887c21bcb", name: this.name, placeholder: this.placeholder, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), class: { error: !!this.error }, part: "tc__textarea" }), this.error && a("span", { class: "error help-text" }, this.error));
32
- }
33
- };
34
- o.style = n;
35
- export {
36
- o as textarea_component
37
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-290b2932.cjs");require("react");require("react-dom");const s=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}',l=s,r=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.name="textarea",this.defaultValue=void 0,this.label="",this.placeholder="",this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.maxLength=255,this.type="multi_line_text",this.tooltip="",this.value="",this.error=""}componentDidLoad(){this.value=e.sanitize(this.defaultValue||"")}handleBookingFormSubmitted(a){this.validate(this.value),this.error&&a.preventDefault()}handletriggerValidation(a){this.validate(this.value),this.error&&a.preventDefault()}handleInput(a){const t=a.target;this.value=e.sanitize(t.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(a){this.required&&!a?this.error=`${this.label} is required.`:a.length>this.maxLength?this.error=`${this.label} cannot exceed ${this.maxLength} characters.`:this.error=""}render(){return e.h("label",{key:"503a9e472a4dea351f13d8e430a0ee9ecc20e3fb",part:"tc__label",class:{error:!!this.error}},e.h("p",{key:"7ce9a57c8e2dc9d0c3a88edf93ba09a3b49cf149"},e.h("span",{key:"8feedbb7300d0eb20192b17a0482f9c981bba120",class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"),this.tooltip&&e.h("tooltip-component",null,e.h("info-icon",{slot:"tooltip-icon"}),e.h("span",{slot:"tooltip-content"},this.tooltip))),e.h("textarea",{key:"79dd6889c5da4797b26504731583db5887c21bcb",name:this.name,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:a=>this.handleInput(a),class:{error:!!this.error},part:"tc__textarea"}),this.error&&e.h("span",{class:"error help-text"},this.error))}};r.style=l;exports.textarea_component=r;