@nylas/react 1.3.6 → 1.4.1

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 (219) hide show
  1. package/dist/add-circle-icon_2.entry-04909861.cjs +1 -0
  2. package/dist/add-circle-icon_2.entry-0d9ba871.js +26 -0
  3. package/dist/archive-icon.entry-3d6d9d3f.js +16 -0
  4. package/dist/archive-icon.entry-88459432.cjs +1 -0
  5. package/dist/{arrow-icon.entry-9cfd86a1.js → arrow-icon.entry-789ee889.js} +3 -2
  6. package/dist/arrow-icon.entry-c35e1933.cjs +1 -0
  7. package/dist/bold-icon.entry-827e95bf.cjs +1 -0
  8. package/dist/{bold-icon.entry-eab3420d.js → bold-icon.entry-fbb382d2.js} +7 -6
  9. package/dist/{button-component_2.entry-7cd5f9c0.js → button-component_2.entry-6c012ee4.js} +10 -9
  10. package/dist/button-component_2.entry-acd13f45.cjs +1 -0
  11. package/dist/calendar-agenda-fill-icon_36.entry-1bb3b1a8.js +4689 -0
  12. package/dist/calendar-agenda-fill-icon_36.entry-fa8121df.cjs +6 -0
  13. package/dist/calendar-cancel-icon.entry-2e97f7d8.cjs +1 -0
  14. package/dist/{calendar-cancel-icon.entry-299d6fba.js → calendar-cancel-icon.entry-a4d040db.js} +6 -5
  15. package/dist/{calendar-check-icon_2.entry-08ef8d2f.js → calendar-check-icon_2.entry-a48a358d.js} +12 -11
  16. package/dist/calendar-check-icon_2.entry-bca4821d.cjs +1 -0
  17. package/dist/{calendar-icon.entry-53b54115.js → calendar-icon.entry-57727659.js} +6 -5
  18. package/dist/calendar-icon.entry-a289313a.cjs +1 -0
  19. package/dist/checkbox-component.entry-af3e7005.cjs +1 -0
  20. package/dist/checkbox-component.entry-f4f98226.js +43 -0
  21. package/dist/checkmark-icon_15.entry-dace1b62.cjs +5 -0
  22. package/dist/checkmark-icon_15.entry-f43549b3.js +1337 -0
  23. package/dist/chevron-icon_3.entry-219b42e6.cjs +1 -0
  24. package/dist/chevron-icon_3.entry-25533d13.js +148 -0
  25. package/dist/clock-icon_4.entry-3917c667.cjs +1 -0
  26. package/dist/{clock-icon_4.entry-0e809dcb.js → clock-icon_4.entry-76f29f7e.js} +9 -8
  27. package/dist/{constants-6da0ede7-49c32ba7.js → constants-3d8016e3-3c080f00.js} +110 -41
  28. package/dist/constants-3d8016e3-fd6c3848.cjs +1 -0
  29. package/dist/customParseFormat-6c652dbb-8a42d5b0.js +135 -0
  30. package/dist/customParseFormat-6c652dbb-ba81ab97.cjs +1 -0
  31. package/dist/{delete-icon.entry-802084f6.js → delete-icon.entry-3b61864e.js} +8 -7
  32. package/dist/delete-icon.entry-96420b21.cjs +1 -0
  33. package/dist/{document-refresh-icon.entry-d1604f53.js → document-refresh-icon.entry-7333b7c9.js} +6 -5
  34. package/dist/document-refresh-icon.entry-8b5c6b9b.cjs +1 -0
  35. package/dist/elements/index.d.ts +10 -0
  36. package/dist/{feedbackSync-c040f483-2b6476c4.js → feedbackSync-352aaf4a-b2b83cfa.js} +1 -1
  37. package/dist/{feedbackSync-c040f483-d6dd0560.cjs → feedbackSync-352aaf4a-ba1bf452.cjs} +1 -1
  38. package/dist/{folder-icon.entry-6c0c09ed.js → folder-icon.entry-bb5e2452.js} +5 -4
  39. package/dist/folder-icon.entry-d2e46d3a.cjs +1 -0
  40. package/dist/forward-icon.entry-1fcf5a6b.cjs +1 -0
  41. package/dist/forward-icon.entry-af8d2147.js +16 -0
  42. package/dist/globe-icon_2.entry-b4b55760.cjs +1 -0
  43. package/dist/globe-icon_2.entry-cc6d9d67.js +200 -0
  44. package/dist/google-logo-icon_6.entry-aa7b5b42.js +1484 -0
  45. package/dist/google-logo-icon_6.entry-eefdec63.cjs +2 -0
  46. package/dist/google-meet-icon_5.entry-9758e527.js +56 -0
  47. package/dist/google-meet-icon_5.entry-c545537a.cjs +1 -0
  48. package/dist/inbox-icon.entry-b9640d5a.cjs +1 -0
  49. package/dist/inbox-icon.entry-c005ebc5.js +16 -0
  50. package/dist/index-05630f15.cjs +57 -0
  51. package/dist/index-78390f2e.js +17607 -0
  52. package/dist/index.d.ts +1 -3
  53. package/dist/{index.es-2b014ec7-72557487.js → index.es-4a203e8e-cf485db5.js} +818 -804
  54. package/dist/{index.es-2b014ec7-0589e68a.cjs → index.es-4a203e8e-f668b8c2.cjs} +6 -6
  55. package/dist/info-icon_2.entry-b17298b6.js +35 -0
  56. package/dist/info-icon_2.entry-ecbc6605.cjs +1 -0
  57. package/dist/input-component.entry-24366ab8.cjs +1 -0
  58. package/dist/input-component.entry-9da5da6c.js +84 -0
  59. package/dist/input-dropdown_2.entry-0109b06c.cjs +1 -0
  60. package/dist/input-dropdown_2.entry-d65f7152.js +231 -0
  61. package/dist/italic-icon.entry-afa4332a.cjs +1 -0
  62. package/dist/{italic-icon.entry-d610e66f.js → italic-icon.entry-d0a536f2.js} +3 -2
  63. package/dist/multi-select-dropdown_2.entry-2c7a1a06.cjs +1 -0
  64. package/dist/multi-select-dropdown_2.entry-c56b5fd2.js +187 -0
  65. package/dist/notebook-store-b61693cd-0877e7a2.js +14 -0
  66. package/dist/notebook-store-b61693cd-a7b8ae37.cjs +5 -0
  67. package/dist/nylas-booked-event-card_12.entry-827c7fb4.cjs +1 -0
  68. package/dist/nylas-booked-event-card_12.entry-960fdfe2.js +1422 -0
  69. package/dist/nylas-call-summary.entry-1cce1446.js +16 -0
  70. package/dist/nylas-call-summary.entry-f10f3c54.cjs +1 -0
  71. package/dist/nylas-event-calendar_3.entry-8bb08ed3.js +9705 -0
  72. package/dist/nylas-event-calendar_3.entry-b656237b.cjs +6 -0
  73. package/dist/nylas-form-card.entry-62578338.cjs +1 -0
  74. package/dist/nylas-form-card.entry-7455b8f1.js +58 -0
  75. package/dist/nylas-if-state.entry-0897dc70.cjs +1 -0
  76. package/dist/{nylas-if-state.entry-ee7d92b0.js → nylas-if-state.entry-7fa6d392.js} +4 -3
  77. package/dist/nylas-key-points.entry-449e1be0.js +29 -0
  78. package/dist/nylas-key-points.entry-693f33a1.cjs +1 -0
  79. package/dist/nylas-login.entry-36544dc8.cjs +1 -0
  80. package/dist/{nylas-login.entry-265f9d0f.js → nylas-login.entry-d7082306.js} +4 -3
  81. package/dist/{nylas-provider.entry-5605a3e0.js → nylas-provider.entry-a0e7ce4d.js} +6 -5
  82. package/dist/nylas-provider.entry-b93d2a62.cjs +1 -0
  83. package/dist/nylas-scheduler-editor.entry-332d27e0.cjs +2 -0
  84. package/dist/{nylas-scheduler-editor.entry-b3e085b3.js → nylas-scheduler-editor.entry-78fe5abf.js} +524 -266
  85. package/dist/nylas-scheduling.entry-1d80c349.cjs +1 -0
  86. package/dist/nylas-scheduling.entry-fa9ff55b.js +439 -0
  87. package/dist/nylas-transcript.entry-570d3abe.cjs +6 -0
  88. package/dist/nylas-transcript.entry-b129565c.js +128 -0
  89. package/dist/nylas-video-player.entry-9c7c9792.cjs +1 -0
  90. package/dist/nylas-video-player.entry-e208d443.js +39 -0
  91. package/dist/nylas-video-preview.entry-a3f542ad.js +16 -0
  92. package/dist/nylas-video-preview.entry-bd9bdda7.cjs +1 -0
  93. package/dist/{person-icon.entry-85660f98.js → person-icon.entry-82fbc43e.js} +8 -7
  94. package/dist/person-icon.entry-e4d11400.cjs +1 -0
  95. package/dist/play-icon.entry-68bc660a.js +16 -0
  96. package/dist/play-icon.entry-9cab598b.cjs +1 -0
  97. package/dist/radio-button-group.entry-6a2adf11.cjs +1 -0
  98. package/dist/radio-button-group.entry-f7679911.js +47 -0
  99. package/dist/react.cjs +1 -1
  100. package/dist/react.js +134 -125
  101. package/dist/refresh-icon.entry-0f1e5f20.cjs +1 -0
  102. package/dist/{refresh-icon.entry-d8644f5d.js → refresh-icon.entry-394b0814.js} +6 -5
  103. package/dist/{register-component-e9c10e19-80bbc4dd.cjs → register-component-1027b769-62812558.cjs} +1 -1
  104. package/dist/{register-component-e9c10e19-099fb50f.js → register-component-1027b769-dd21b16d.js} +1 -1
  105. package/dist/{reply-all-icon.entry-f209daeb.js → reply-all-icon.entry-0fad8f2f.js} +5 -4
  106. package/dist/reply-all-icon.entry-1680f1e5.cjs +1 -0
  107. package/dist/{reply-icon.entry-d37a129b.js → reply-icon.entry-5f4b7837.js} +5 -4
  108. package/dist/reply-icon.entry-77342442.cjs +1 -0
  109. package/dist/scheduler-config-store-d6729d8d-06a3a314.cjs +1 -0
  110. package/dist/{scheduler-config-store-ed4a8dfd-35ec90c6.js → scheduler-config-store-d6729d8d-854b5da8.js} +4 -1
  111. package/dist/scheduler-store-f3e2a26f-7cee436f.cjs +1 -0
  112. package/dist/scheduler-store-f3e2a26f-85df53f7.js +533 -0
  113. package/dist/sent-icon.entry-20a8945d.cjs +1 -0
  114. package/dist/sent-icon.entry-2d122865.js +16 -0
  115. package/dist/spam-icon.entry-86178cc5.cjs +1 -0
  116. package/dist/spam-icon.entry-9e374d44.js +16 -0
  117. package/dist/star-icon.entry-1b94c861.cjs +1 -0
  118. package/dist/{star-icon.entry-9b22bb32.js → star-icon.entry-bb1b517d.js} +7 -6
  119. package/dist/stop-icon.entry-7b21833b.cjs +1 -0
  120. package/dist/{stop-icon.entry-1f7918b2.js → stop-icon.entry-e4d3526d.js} +3 -2
  121. package/dist/textarea-component.entry-ba3c9311.js +39 -0
  122. package/dist/textarea-component.entry-fdba933d.cjs +1 -0
  123. package/dist/toggle-switch.entry-4a980d1d.js +34 -0
  124. package/dist/toggle-switch.entry-9142a3d3.cjs +1 -0
  125. package/dist/{translate-icon.entry-8cffa646.js → translate-icon.entry-1657aa04.js} +5 -4
  126. package/dist/translate-icon.entry-b4908cf3.cjs +1 -0
  127. package/dist/trash-fill-icon.entry-a6791185.cjs +1 -0
  128. package/dist/trash-fill-icon.entry-c9e1769e.js +16 -0
  129. package/dist/{underline-icon.entry-afd9c78b.js → underline-icon.entry-1ba4d923.js} +5 -4
  130. package/dist/underline-icon.entry-d1f91e63.cjs +1 -0
  131. package/dist/warning-icon.entry-b1480f57.cjs +1 -0
  132. package/dist/{warning-icon.entry-53441175.js → warning-icon.entry-fe155c15.js} +5 -4
  133. package/package.json +12 -4
  134. package/dist/add-circle-icon.entry-25aecb13.js +0 -15
  135. package/dist/add-circle-icon.entry-5c49ba96.cjs +0 -1
  136. package/dist/archive-icon.entry-0a9e8ec3.cjs +0 -1
  137. package/dist/archive-icon.entry-89e31121.js +0 -15
  138. package/dist/arrow-icon.entry-19e5237c.cjs +0 -1
  139. package/dist/bold-icon.entry-d591e701.cjs +0 -1
  140. package/dist/button-component_2.entry-ce4314bf.cjs +0 -1
  141. package/dist/calendar-agenda-fill-icon_54.entry-7099138a.js +0 -5865
  142. package/dist/calendar-agenda-fill-icon_54.entry-9228dbe7.cjs +0 -8
  143. package/dist/calendar-cancel-icon.entry-6e3d20f1.cjs +0 -1
  144. package/dist/calendar-check-icon_2.entry-087dd913.cjs +0 -1
  145. package/dist/calendar-icon.entry-73f9d05b.cjs +0 -1
  146. package/dist/checkbox-component_3.entry-bc9768dd.cjs +0 -1
  147. package/dist/checkbox-component_3.entry-d828eb1d.js +0 -149
  148. package/dist/chevron-icon_3.entry-783588a9.js +0 -147
  149. package/dist/chevron-icon_3.entry-e956d78c.cjs +0 -1
  150. package/dist/clock-icon_4.entry-60d41dfd.cjs +0 -1
  151. package/dist/close-icon.entry-1b5d25c5.cjs +0 -1
  152. package/dist/close-icon.entry-fef4f624.js +0 -15
  153. package/dist/constants-6da0ede7-151395ad.cjs +0 -1
  154. package/dist/copy-icon.entry-25699ab8.js +0 -15
  155. package/dist/copy-icon.entry-ab6530e0.cjs +0 -1
  156. package/dist/core-js-38e53e34.cjs +0 -4
  157. package/dist/core-js-a9d3b6e1.js +0 -3297
  158. package/dist/delete-icon.entry-e99e1f82.cjs +0 -1
  159. package/dist/document-refresh-icon.entry-065a59f5.cjs +0 -1
  160. package/dist/dom-68f08be9.cjs +0 -15
  161. package/dist/dom-86e17616.js +0 -664
  162. package/dist/folder-icon.entry-351e61fc.cjs +0 -1
  163. package/dist/forward-icon.entry-0ccfb600.js +0 -15
  164. package/dist/forward-icon.entry-6b7af9cd.cjs +0 -1
  165. package/dist/globe-icon.entry-2b75b66b.cjs +0 -1
  166. package/dist/globe-icon.entry-5ddcd2cb.js +0 -15
  167. package/dist/google-logo-icon_4.entry-04174684.js +0 -790
  168. package/dist/google-logo-icon_4.entry-a685ff91.cjs +0 -1
  169. package/dist/inbox-icon.entry-0ad18b3f.js +0 -15
  170. package/dist/inbox-icon.entry-425d1ded.cjs +0 -1
  171. package/dist/index-7e7c24f1.js +0 -16837
  172. package/dist/index-81719cc6.cjs +0 -81
  173. package/dist/info-icon_2.entry-7ec02802.cjs +0 -1
  174. package/dist/info-icon_2.entry-a6d0e842.js +0 -34
  175. package/dist/input-color-picker.entry-d98d06ca.js +0 -48
  176. package/dist/input-color-picker.entry-ed9a1c07.cjs +0 -1
  177. package/dist/input-component.entry-2e57b00e.cjs +0 -1
  178. package/dist/input-component.entry-f3aa3419.js +0 -70
  179. package/dist/input-dropdown_2.entry-0d9c8475.js +0 -228
  180. package/dist/input-dropdown_2.entry-6fc7df16.cjs +0 -1
  181. package/dist/italic-icon.entry-7a8712f2.cjs +0 -1
  182. package/dist/multi-select-dropdown.entry-b31d9f11.js +0 -116
  183. package/dist/multi-select-dropdown.entry-eaa268b4.cjs +0 -1
  184. package/dist/nylas-booked-event-card_12.entry-45514813.js +0 -1378
  185. package/dist/nylas-booked-event-card_12.entry-498de30a.cjs +0 -1
  186. package/dist/nylas-form-card.entry-67aec298.js +0 -57
  187. package/dist/nylas-form-card.entry-fdb3c114.cjs +0 -1
  188. package/dist/nylas-if-state.entry-76b38c9c.cjs +0 -1
  189. package/dist/nylas-login.entry-589e45d0.cjs +0 -1
  190. package/dist/nylas-provider.entry-cfb9627c.cjs +0 -1
  191. package/dist/nylas-scheduler-editor.entry-6fdfb9b5.cjs +0 -2
  192. package/dist/nylas-scheduling.entry-8cc5c353.cjs +0 -1
  193. package/dist/nylas-scheduling.entry-bc00beba.js +0 -424
  194. package/dist/nylas-time-window-picker.entry-a77c1d67.cjs +0 -1
  195. package/dist/nylas-time-window-picker.entry-c421303e.js +0 -316
  196. package/dist/person-icon.entry-36b21e95.cjs +0 -1
  197. package/dist/play-icon.entry-953b1bc8.js +0 -15
  198. package/dist/play-icon.entry-c35ade8a.cjs +0 -1
  199. package/dist/refresh-icon.entry-038501ca.cjs +0 -1
  200. package/dist/reply-all-icon.entry-ead9d0ba.cjs +0 -1
  201. package/dist/reply-icon.entry-b7f35ecd.cjs +0 -1
  202. package/dist/scheduler-config-store-ed4a8dfd-0d4408cf.cjs +0 -1
  203. package/dist/scheduler-store-dc3a7958-7c73f5e2.js +0 -487
  204. package/dist/scheduler-store-dc3a7958-99c6bdf6.cjs +0 -1
  205. package/dist/sent-icon.entry-b662ef5b.cjs +0 -1
  206. package/dist/sent-icon.entry-ec433cec.js +0 -15
  207. package/dist/spam-icon.entry-3a553ae4.js +0 -15
  208. package/dist/spam-icon.entry-a79819fd.cjs +0 -1
  209. package/dist/star-icon.entry-47ea44e7.cjs +0 -1
  210. package/dist/stop-icon.entry-26e2e633.cjs +0 -1
  211. package/dist/textarea-component.entry-6939d0fc.js +0 -38
  212. package/dist/textarea-component.entry-da0a861e.cjs +0 -1
  213. package/dist/toggle-switch.entry-5ae5ba46.js +0 -33
  214. package/dist/toggle-switch.entry-c5fd3e33.cjs +0 -1
  215. package/dist/translate-icon.entry-72e0369e.cjs +0 -1
  216. package/dist/trash-fill-icon.entry-815859c6.js +0 -15
  217. package/dist/trash-fill-icon.entry-8620c28f.cjs +0 -1
  218. package/dist/underline-icon.entry-ba1a9e87.cjs +0 -1
  219. package/dist/warning-icon.entry-7cbede6b.cjs +0 -1
@@ -0,0 +1,533 @@
1
+ import { d as A, a as z, i as c, l as F } from "./index-78390f2e.js";
2
+ var M;
3
+ (function(l) {
4
+ l.Error = "error", l.Warning = "warning", l.Info = "info", l.Success = "success";
5
+ })(M || (M = {}));
6
+ var P;
7
+ (function(l) {
8
+ l.Component = "component", l.Api = "api", l.Auth = "auth";
9
+ })(P || (P = {}));
10
+ var $;
11
+ (function(l) {
12
+ l.endtime_not_in_future = "endtime_not_in_future", l.no_booking_info = "no_booking_info", l.no_timeslot_selected = "no_timeslot_selected", l.no_timezone_selected = "no_timezone_selected", l.no_booking_id = "no_booking_id", l.no_salt = "no_salt", l.invalid_start_time = "invalid_start_time", l.invalid_end_time = "invalid_end_time", l.invalid_timezone = "invalid_timezone", l.no_config_id = "no_config_id";
13
+ })($ || ($ = {}));
14
+ class C {
15
+ constructor() {
16
+ this.component = (e) => {
17
+ const t = P.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
+ no_config_id: (i = "No configuration id provided") => ({
65
+ title: s,
66
+ message: i,
67
+ category: t
68
+ })
69
+ };
70
+ }, this.api = (e) => {
71
+ const t = P.Api, s = `${e} Error`;
72
+ return {
73
+ invalid_session: (i) => ({
74
+ title: s,
75
+ message: i,
76
+ category: t
77
+ }),
78
+ general_error: (i) => ({
79
+ title: s,
80
+ message: i,
81
+ category: t
82
+ }),
83
+ internal_error: (i) => ({
84
+ title: s,
85
+ message: i,
86
+ category: t
87
+ }),
88
+ invalid_request_error: (i) => ({
89
+ title: s,
90
+ message: i,
91
+ category: t
92
+ }),
93
+ timeslot_not_available: (i) => ({
94
+ title: s,
95
+ message: i,
96
+ category: t
97
+ }),
98
+ provider_error: (i) => ({
99
+ title: s,
100
+ message: i,
101
+ category: t
102
+ }),
103
+ not_found_error: (i) => ({
104
+ title: s,
105
+ message: i,
106
+ category: t
107
+ })
108
+ };
109
+ };
110
+ }
111
+ }
112
+ class O {
113
+ constructor({ schedulerAPIURL: e, schedulerStore: t, sessionId: s, configId: i, slug: n, clientId: r }) {
114
+ this.errors = new C(), this.schedulerStore = t, this.schedulerAPIURL = e, this.sessionId = s, this.configId = i, this.slug = n, this.clientId = r;
115
+ }
116
+ getHeaders() {
117
+ return this.sessionId ? {
118
+ Authorization: `Bearer ${this.sessionId}`
119
+ } : {};
120
+ }
121
+ async makeAPIRequest(e, t, s, i = {}) {
122
+ try {
123
+ const n = new URL(this.schedulerAPIURL), r = "1.4.1";
124
+ return n.pathname = e, await (await fetch(decodeURIComponent(n.toString()), {
125
+ method: t,
126
+ headers: {
127
+ "Content-Type": "application/json",
128
+ Origin: window.location.origin,
129
+ "X-Source": "nylas-scheduling",
130
+ "X-Nylas-Web-Elements-Version": r,
131
+ ...i
132
+ },
133
+ body: s
134
+ })).json();
135
+ } catch (n) {
136
+ return {
137
+ error: {
138
+ message: n.message,
139
+ title: "API request failed",
140
+ type: "api"
141
+ }
142
+ };
143
+ }
144
+ }
145
+ getErrorMessage(e) {
146
+ var s, i, n, r;
147
+ let t = (e == null ? void 0 : e.message) || (e == null ? void 0 : e.title) || "Something went wrong";
148
+ 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;
149
+ }
150
+ setConfigId(e) {
151
+ this.configId = e;
152
+ }
153
+ selectDate(e) {
154
+ this.schedulerStore.set("selectedDate", e), this.schedulerStore.set("selectedTimeslot", null);
155
+ }
156
+ selectTime(e) {
157
+ this.schedulerStore.set("selectedTimeslot", e);
158
+ }
159
+ selectTimezone(e) {
160
+ this.schedulerStore.set("selectedTimezone", e);
161
+ }
162
+ selectLanguage(e) {
163
+ this.schedulerStore.set("selectedLanguage", e), c.changeLanguage(e);
164
+ }
165
+ async toggleAdditionalData(e) {
166
+ e || await this.refetchAvailability(), this.schedulerStore.set("showBookingForm", e);
167
+ }
168
+ setParticipantName(e) {
169
+ const { bookingInfo: t } = this.schedulerStore.state;
170
+ this.schedulerStore.set("bookingInfo", {
171
+ ...t,
172
+ primaryParticipant: {
173
+ ...t == null ? void 0 : t.primaryParticipant,
174
+ name: e
175
+ }
176
+ });
177
+ }
178
+ setParticipantEmail(e) {
179
+ const { bookingInfo: t } = this.schedulerStore.state;
180
+ this.schedulerStore.set("bookingInfo", {
181
+ ...t,
182
+ primaryParticipant: {
183
+ ...t == null ? void 0 : t.primaryParticipant,
184
+ email: e
185
+ }
186
+ });
187
+ }
188
+ async refetchAvailability() {
189
+ 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;
190
+ return await this.getAvailability(s, i);
191
+ }
192
+ async resetStoreStateAndFetchAvailability() {
193
+ const e = /* @__PURE__ */ new Date(), t = await this.refetchAvailability(), s = this.schedulerStore.get("availability").find((n) => new Date(n.start_time) > /* @__PURE__ */ new Date());
194
+ let i = e;
195
+ 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;
196
+ }
197
+ async setReschedule(e) {
198
+ this.schedulerStore.set("isLoading", !0);
199
+ const t = this.schedulerStore.state.eventInfo;
200
+ return t && this.schedulerStore.set("reschedulingEventInfo", t), this.schedulerStore.set("rescheduleBookingId", e), await this.getUISettings(), await this.resetStoreStateAndFetchAvailability().finally(() => {
201
+ this.schedulerStore.set("isLoading", !1);
202
+ });
203
+ }
204
+ async setCancel(e) {
205
+ this.schedulerStore.set("cancelBookingId", e);
206
+ }
207
+ async setReject(e) {
208
+ this.schedulerStore.set("rejectBookingId", e);
209
+ }
210
+ async resetCancel() {
211
+ const e = await this.resetStoreStateAndFetchAvailability();
212
+ return this.schedulerStore.set("cancelBookingId", ""), this.schedulerStore.set("rejectBookingId", ""), this.schedulerStore.set("cancelledEventInfo", null), e;
213
+ }
214
+ async goBack() {
215
+ this.schedulerStore.set("cancelBookingId", "");
216
+ }
217
+ async resetConfirm() {
218
+ const e = await this.resetStoreStateAndFetchAvailability();
219
+ return this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("confirmedEventInfo", void 0), e;
220
+ }
221
+ async bookTimeslot(e) {
222
+ var E, p, L;
223
+ this.schedulerStore.set("isLoading", !0);
224
+ const { selectedTimeslot: t, selectedTimezone: s, bookingInfo: i, selectedLanguage: n } = this.schedulerStore.state;
225
+ if (!e && !i)
226
+ return { error: this.errors.component(c.t("createBookingErrorTitle")).no_booking_info() };
227
+ const r = (e == null ? void 0 : e.timeslot) || t;
228
+ if (!r)
229
+ return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timeslot_selected() };
230
+ const a = e && (e != null && e.timezone) ? e == null ? void 0 : e.timezone : s, o = n || "en-US";
231
+ if (!a)
232
+ return { error: this.errors.component(c.t("createBookingErrorTitle")).no_timezone_selected() };
233
+ const h = [...this.schedulerStore.get("availabilityOrderEmails")];
234
+ let d = "";
235
+ const m = (r == null ? void 0 : r.emails) || [], f = {};
236
+ Object.entries((i == null ? void 0 : i.additionalFields) || {}).forEach(([u, w]) => {
237
+ f[u] = w.value;
238
+ });
239
+ const _ = e ? e == null ? void 0 : e.primaryParticipant : i == null ? void 0 : i.primaryParticipant, S = e ? (e == null ? void 0 : e.guests) || [] : (i == null ? void 0 : i.guests) || [], y = e ? e == null ? void 0 : e.additionalFields : f, g = this.getHeaders(), b = `/v3/scheduling/bookings${!this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : ""}`;
240
+ if (h.length === 0) {
241
+ const u = await this.makeAPIRequest(decodeURIComponent(b), "POST", JSON.stringify({
242
+ additional_fields: y,
243
+ additional_guests: S,
244
+ guest: { ..._ },
245
+ start_time: r.start_time.getTime() / 1e3,
246
+ end_time: r.end_time.getTime() / 1e3,
247
+ timezone: a,
248
+ event_id: (r == null ? void 0 : r.event_id) || void 0,
249
+ master_id: (r == null ? void 0 : r.master_id) || void 0,
250
+ calendar_id: (r == null ? void 0 : r.calendar_id) || void 0,
251
+ email_language: this.getTwoLetterLanguageCode(o)
252
+ }), g);
253
+ return this.schedulerStore.set("isLoading", !1), "data" in u ? (this.schedulerStore.set("eventInfo", u.data), u) : { error: u.error };
254
+ }
255
+ for (; h.length > 0; ) {
256
+ if (d = h.shift(), !m.includes(d))
257
+ continue;
258
+ const u = await this.makeAPIRequest(decodeURIComponent(b), "POST", JSON.stringify({
259
+ participants: d ? [{ email: d }] : void 0,
260
+ additional_fields: y,
261
+ additional_guests: S,
262
+ guest: { ..._ },
263
+ start_time: r.start_time.getTime() / 1e3,
264
+ end_time: r.end_time.getTime() / 1e3,
265
+ timezone: a,
266
+ email_language: this.getTwoLetterLanguageCode(o)
267
+ }), g);
268
+ if ("data" in u)
269
+ return this.schedulerStore.set("isLoading", !1), this.schedulerStore.set("eventInfo", u == null ? void 0 : u.data), u;
270
+ if ((p = (E = u.error) == null ? void 0 : E.message) != null && p.startsWith("The selected timeslot is unavailable"))
271
+ continue;
272
+ {
273
+ this.schedulerStore.set("isLoading", !1);
274
+ const w = (L = u.error) == null ? void 0 : L.type;
275
+ let I = u.error;
276
+ if (w && w in this.errors.api(c.t("createBookingErrorTitle"))) {
277
+ const B = this.getErrorMessage(I);
278
+ I = this.errors.api(c.t("createBookingErrorTitle"))[w](B);
279
+ }
280
+ return { error: I };
281
+ }
282
+ }
283
+ return this.schedulerStore.set("isLoading", !1), {
284
+ error: this.errors.api(c.t("createBookingErrorTitle")).timeslot_not_available("The selected timeslot is unavailable")
285
+ };
286
+ }
287
+ async getUISettings() {
288
+ var r;
289
+ this.schedulerStore.set("isLoading", !0);
290
+ const e = this.schedulerStore.get("rescheduleBookingId"), t = this.getHeaders();
291
+ let s = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "";
292
+ e && s ? s += `&booking_id=${e}` : e && (s += `?booking_id=${e}`);
293
+ const i = `/v3/scheduling/ui-settings${s}`, n = await this.makeAPIRequest(i, "GET", void 0, t);
294
+ if ("error" in n) {
295
+ this.schedulerStore.set("isLoading", !1);
296
+ const a = (r = n.error) == null ? void 0 : r.type;
297
+ let o = n.error;
298
+ return a && a in this.errors.api(c.t("getUISettingErrorTitle")) && (o = this.errors.api(c.t("getUISettingErrorTitle"))[a]((o == null ? void 0 : o.message) || (o == null ? void 0 : o.title) || "Something went wrong")), { error: o };
299
+ }
300
+ return "data" in n && this.schedulerStore.set("configSettings", n.data), this.schedulerStore.set("isLoading", !1), n;
301
+ }
302
+ getTwoLetterLanguageCode(e) {
303
+ return e.split("-")[0];
304
+ }
305
+ getStartTimeWithMinBookingNotice(e) {
306
+ var n;
307
+ const t = (n = this.schedulerStore.get("configSettings")) == null ? void 0 : n.scheduler, s = t == null ? void 0 : t.min_booking_notice;
308
+ if (!s)
309
+ return e;
310
+ const i = (/* @__PURE__ */ new Date()).getTime();
311
+ return e < (i + s * 60 * 1e3) / 1e3 ? Math.floor((i + s * 60 * 1e3) / 1e3) : e;
312
+ }
313
+ getEndTimeForAvailableDaysInFuture(e) {
314
+ var r, a;
315
+ const t = /* @__PURE__ */ new Date(), s = (a = (r = this.schedulerStore.get("configSettings")) == null ? void 0 : r.scheduler) == null ? void 0 : a.available_days_in_future, i = Math.floor(F(t, s).getTime() / 1e3);
316
+ return Math.min(i, e);
317
+ }
318
+ async getAvailability(e = 0, t = 0) {
319
+ var f, _, S, y;
320
+ this.schedulerStore.set("isLoading", !0);
321
+ const s = new URLSearchParams(), i = /* @__PURE__ */ new Date(), n = i.getTime();
322
+ if (t && t < n / 1e3)
323
+ return this.schedulerStore.set("isLoading", !1), { error: this.errors.component(c.t("getAvailabilityErrorTitle")).endtime_not_in_future() };
324
+ if (!e) {
325
+ const g = new Date(i.getFullYear(), i.getMonth(), 1);
326
+ e = Math.floor(g.getTime() / 1e3);
327
+ }
328
+ if (!t) {
329
+ const g = new Date(i.getFullYear(), i.getMonth() + 1, 0);
330
+ t = Math.floor(g.getTime() / 1e3);
331
+ }
332
+ t = this.getEndTimeForAvailableDaysInFuture(t);
333
+ const r = this.getStartTimeWithMinBookingNotice(e);
334
+ e = r, t = r > t ? r + 1 : t, s.append("start_time", encodeURIComponent(e.toString())), s.append("end_time", encodeURIComponent(t.toString())), this.configId && !this.sessionId ? s.append("configuration_id", encodeURIComponent(this.configId)) : this.slug && this.clientId && !this.sessionId && (s.append("slug", encodeURIComponent(this.slug)), s.append("client_id", encodeURIComponent(this.clientId)));
335
+ const a = this.schedulerStore.get("rescheduleBookingId");
336
+ a && s.append("booking_id", encodeURIComponent(a));
337
+ const o = s.toString(), h = `/v3/scheduling/availability${o ? `?${o}` : ""}`, d = this.getHeaders(), m = await this.makeAPIRequest(decodeURIComponent(h), "GET", void 0, d);
338
+ if ("error" in m) {
339
+ this.schedulerStore.set("availability", []), this.schedulerStore.set("isLoading", !1);
340
+ const g = (f = m.error) == null ? void 0 : f.type;
341
+ let k = m.error;
342
+ if (g && g in this.errors.api(c.t("getAvailabilityErrorTitle"))) {
343
+ const b = this.getErrorMessage(k);
344
+ k = this.errors.api(c.t("getAvailabilityErrorTitle"))[g](b);
345
+ }
346
+ return { error: k };
347
+ }
348
+ if ("data" in m) {
349
+ const b = (((S = (_ = m.data) == null ? void 0 : _.time_slots) == null ? void 0 : S.map((p) => ({
350
+ ...p,
351
+ start_time: new Date(p.start_time * 1e3),
352
+ end_time: new Date(p.end_time * 1e3)
353
+ }))) || []).filter((p) => p.start_time.getTime() > n).sort((p, L) => p.start_time.getTime() - L.start_time.getTime());
354
+ this.schedulerStore.set("availability", b);
355
+ const E = ((y = m.data) == null ? void 0 : y.order) || [];
356
+ this.schedulerStore.set("availabilityOrderEmails", E);
357
+ }
358
+ return this.schedulerStore.set("isLoading", !1), m;
359
+ }
360
+ async cancelBooking(e, t) {
361
+ var a;
362
+ if (this.schedulerStore.set("isLoading", !0), !e)
363
+ return { error: this.errors.component(c.t("cancelBookingErrorTitle")).no_booking_id() };
364
+ const s = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", i = `/v3/scheduling/bookings/${e}${s}`, n = this.getHeaders(), r = await this.makeAPIRequest(decodeURIComponent(i), "DELETE", JSON.stringify({
365
+ action: "cancel",
366
+ cancellation_reason: t
367
+ }), n);
368
+ if ("error" in r) {
369
+ this.schedulerStore.set("isLoading", !1);
370
+ const o = (a = r.error) == null ? void 0 : a.type;
371
+ let h = r.error;
372
+ if (o && o in this.errors.api(c.t("cancelBookingErrorTitle"))) {
373
+ const d = this.getErrorMessage(h);
374
+ h = this.errors.api(c.t("cancelBookingErrorTitle"))[o](d);
375
+ }
376
+ return { error: h };
377
+ }
378
+ return this.schedulerStore.set("cancelledEventInfo", {
379
+ booking_id: e
380
+ }), this.schedulerStore.set("rescheduleBookingId", ""), this.schedulerStore.set("isLoading", !1), r;
381
+ }
382
+ async rescheduleBooking(e, t) {
383
+ var D;
384
+ if (this.schedulerStore.set("isLoading", !0), !e)
385
+ return { error: this.errors.component(c.t("rescheduleBookingErrorTitle")).no_booking_id() };
386
+ const s = this.errors.api(c.t("rescheduleBookingErrorTitle")), i = this.errors.component(c.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: a, selectedLanguage: o } = this.schedulerStore.state, { startTime: h, endTime: d, timezone: m } = t, f = h || (r == null ? void 0 : r.start_time);
387
+ if (!f)
388
+ return { error: i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
389
+ const _ = d || (r == null ? void 0 : r.end_time);
390
+ if (!_)
391
+ return { error: i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
392
+ const S = this.schedulerStore.get("availabilityOrderEmails");
393
+ let y = "";
394
+ if (S.length > 0) {
395
+ const T = (r == null ? void 0 : r.emails) || [];
396
+ for (let v = 0; v < S.length; v++)
397
+ if (T.includes(S[v])) {
398
+ y = S[v];
399
+ break;
400
+ }
401
+ }
402
+ const g = m || a;
403
+ if (!g)
404
+ return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
405
+ const k = {};
406
+ Object.entries((n == null ? void 0 : n.additionalFields) || {}).forEach(([T, v]) => {
407
+ k[T] = v.value;
408
+ });
409
+ const b = t ? t == null ? void 0 : t.primaryParticipant : n == null ? void 0 : n.primaryParticipant, E = t ? (t == null ? void 0 : t.guests) || [] : (n == null ? void 0 : n.guests) || [], p = t ? t == null ? void 0 : t.additionalFields : k, L = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", u = `/v3/scheduling/bookings/${e}${L}`, w = this.getHeaders(), I = await this.makeAPIRequest(decodeURIComponent(u), "PATCH", JSON.stringify({
410
+ start_time: f.getTime() / 1e3,
411
+ end_time: _.getTime() / 1e3,
412
+ timezone: g,
413
+ additional_fields: p,
414
+ guest: { ...b },
415
+ additional_guests: E,
416
+ participants: y ? [{ email: y }] : void 0,
417
+ email_language: this.getTwoLetterLanguageCode(o)
418
+ }), w);
419
+ if ("error" in I) {
420
+ this.schedulerStore.set("isLoading", !1);
421
+ const T = (D = I.error) == null ? void 0 : D.type;
422
+ let v = I.error;
423
+ if (T && T in s) {
424
+ const R = this.getErrorMessage(v);
425
+ v = s[T](R);
426
+ }
427
+ return { error: v };
428
+ }
429
+ const B = this.schedulerStore.get("reschedulingEventInfo");
430
+ if ("data" in I)
431
+ this.schedulerStore.set("eventInfo", I == null ? void 0 : I.data);
432
+ else if (B)
433
+ this.schedulerStore.set("eventInfo", B);
434
+ else {
435
+ const T = {
436
+ booking_id: e
437
+ };
438
+ this.schedulerStore.set("eventInfo", T);
439
+ }
440
+ return this.schedulerStore.set("isLoading", !1), I;
441
+ }
442
+ async updateBooking(e) {
443
+ var m;
444
+ this.schedulerStore.set("isLoading", !0);
445
+ const { bookingId: t, status: s, reason: i } = e, n = this.schedulerStore.get("organizerConfirmationSalt"), r = s === "confirmed" ? c.t("confirmBookingErrorTitle") : c.t("rejectBookingErrorTitle");
446
+ if (!t)
447
+ return { error: this.errors.component(r).no_booking_id() };
448
+ if (!n)
449
+ return { error: this.errors.component(r).no_salt() };
450
+ const a = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", o = `/v3/scheduling/bookings/${t}${a}`, h = this.getHeaders(), d = await this.makeAPIRequest(decodeURIComponent(o), "PUT", JSON.stringify({
451
+ status: s,
452
+ cancellation_reason: i,
453
+ salt: n
454
+ }), h);
455
+ if ("error" in d) {
456
+ this.schedulerStore.set("isLoading", !1);
457
+ const f = (m = d.error) == null ? void 0 : m.type;
458
+ let _ = d.error;
459
+ if (f && f in this.errors.api(r)) {
460
+ const S = this.getErrorMessage(_);
461
+ _ = this.errors.api(r)[f](S);
462
+ }
463
+ return { error: _ };
464
+ }
465
+ return "data" in d && s === "confirmed" ? this.schedulerStore.set("confirmedEventInfo", d == null ? void 0 : d.data) : "request_id" in d && s === "cancelled" && this.schedulerStore.set("cancelledEventInfo", {
466
+ booking_id: t
467
+ }), this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("isLoading", !1), d;
468
+ }
469
+ async validateGroupEventTimeslot(e) {
470
+ var r, a;
471
+ this.schedulerStore.set("isLoading", !0);
472
+ const t = (r = this.schedulerStore.get("configSettings")) == null ? void 0 : r.configuration_id;
473
+ if (!t)
474
+ return { error: this.errors.component(c.t("validateTimeslotErrorTitle")).no_config_id() };
475
+ const s = this.getHeaders(), i = `/v3/scheduling/configurations/${t}/group-events/validate-timeslot`, n = await this.makeAPIRequest(decodeURIComponent(i), "POST", JSON.stringify({
476
+ ...e,
477
+ start_time: e.start_time.getTime() / 1e3,
478
+ end_time: e.end_time.getTime() / 1e3
479
+ }), s);
480
+ if ("error" in n) {
481
+ this.schedulerStore.set("isLoading", !1);
482
+ const o = (a = n.error) == null ? void 0 : a.type;
483
+ let h = n.error;
484
+ if (o && o in this.errors.api(c.t("validateTimeslotErrorTitle"))) {
485
+ const d = this.getErrorMessage(h);
486
+ h = this.errors.api(c.t("validateTimeslotErrorTitle"))[o](d);
487
+ }
488
+ return this.refetchAvailability(), { error: h };
489
+ }
490
+ return this.schedulerStore.set("selectedTimeslot", e), this.schedulerStore.set("showBookingForm", !0), this.schedulerStore.set("isLoading", !1), n;
491
+ }
492
+ }
493
+ function N(l = {}) {
494
+ const e = {
495
+ selectedDate: null,
496
+ selectedLanguage: navigator.language,
497
+ selectedTimezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
498
+ selectedTimeslot: null,
499
+ showBookingForm: !1,
500
+ availabilityOrderEmails: [],
501
+ selectableDates: null,
502
+ availability: [],
503
+ eventDuration: 0,
504
+ state: "ready",
505
+ eventInfo: null,
506
+ cancelledEventInfo: null,
507
+ isLoading: !1,
508
+ nylasBranding: !0,
509
+ ...l
510
+ };
511
+ A("[defaultNylasStoreState]: ", e);
512
+ const t = z(e);
513
+ return t.onChange("availability", (s) => {
514
+ A("[availability]: ", s);
515
+ const i = s.map((a) => a.start_time);
516
+ A("[selectableDates]: ", i), t.set("selectableDates", i);
517
+ const n = s[0];
518
+ if (!n)
519
+ return;
520
+ const r = Math.floor((n.end_time.getTime() - n.start_time.getTime()) / 6e4);
521
+ A("[durationMinutes]: ", r), t.set("eventDuration", r);
522
+ }), t.reset = () => {
523
+ for (const s in e) {
524
+ const i = e[s];
525
+ t.set(s, i);
526
+ }
527
+ }, t;
528
+ }
529
+ export {
530
+ N as C,
531
+ P as E,
532
+ O as N
533
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-05630f15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const c=".sc-sent-icon-h{display:flex}",i=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"fe1f3a8dccc7ed5b4b008b3e7ba2b6aa32bf75df",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"319aeb3c8bdce5002c624d4926ec3cb0525d396c",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"d05924ef434bb7976571e3f9fe2b00ffaac6c770",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"0268790deda555924f82a772dcd49783aec96c82",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.sent_icon=t;
@@ -0,0 +1,16 @@
1
+ import { r as s, h as t } from "./index-78390f2e.js";
2
+ import "react";
3
+ import "react/jsx-runtime";
4
+ import "react-dom";
5
+ const o = ".sc-sent-icon-h{display:flex}", c = o, i = class {
6
+ constructor(e) {
7
+ s(this, e), this.width = "15", this.height = "15";
8
+ }
9
+ render() {
10
+ return t("svg", { key: "fe1f3a8dccc7ed5b4b008b3e7ba2b6aa32bf75df", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "319aeb3c8bdce5002c624d4926ec3cb0525d396c", d: "M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "d05924ef434bb7976571e3f9fe2b00ffaac6c770", d: "M3.5 3.5L12 10.5", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "0268790deda555924f82a772dcd49783aec96c82", d: "M3.5 20.5L12 13.5", stroke: "auto", "stroke-width": "1.5" }));
11
+ }
12
+ };
13
+ i.style = c;
14
+ export {
15
+ i as sent_icon
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-05630f15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-spam-icon-h{display:flex}",c=i,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"84d7e0e5235fe887cc3d239ce69e0986a1d3014d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"b0b2350a1cf0d3ba1fdc3d099c9882ca095e1369",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"a2b5344063a37dc44ff52d46354443f774bc7c86",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=c;exports.spam_icon=t;
@@ -0,0 +1,16 @@
1
+ import { r as e, h as t } from "./index-78390f2e.js";
2
+ import "react";
3
+ import "react/jsx-runtime";
4
+ import "react-dom";
5
+ const o = ".sc-spam-icon-h{display:flex}", i = o, c = class {
6
+ constructor(s) {
7
+ e(this, s), this.width = "15", this.height = "15";
8
+ }
9
+ render() {
10
+ return t("svg", { key: "84d7e0e5235fe887cc3d239ce69e0986a1d3014d", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "b0b2350a1cf0d3ba1fdc3d099c9882ca095e1369", d: "M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "a2b5344063a37dc44ff52d46354443f774bc7c86", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
11
+ }
12
+ };
13
+ c.style = i;
14
+ export {
15
+ c as spam_icon
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-05630f15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-star-icon-h{display:flex}",r=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"49798910e83f877f8413abb5c4b11cccacab77eb",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8e0bddce209f480ad0e39574718ccda799f80c70",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};e.style=r;exports.star_icon=e;
@@ -1,15 +1,16 @@
1
- import { r as i, h as t } from "./index-7e7c24f1.js";
1
+ import { r as e, h as t } from "./index-78390f2e.js";
2
2
  import "react";
3
+ import "react/jsx-runtime";
3
4
  import "react-dom";
4
- const e = ".sc-star-icon-h{display:flex}", o = e, r = class {
5
+ const i = ".sc-star-icon-h{display:flex}", c = i, o = class {
5
6
  constructor(s) {
6
- i(this, s), this.width = "15", this.height = "15";
7
+ e(this, s), this.width = "15", this.height = "15";
7
8
  }
8
9
  render() {
9
- return t("svg", { key: "298c7143a575df19f6e9fa155cb4c5377a074d9e", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "8aa881c0befd74349f594ab11a428b9a901d53f8", 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
+ return t("svg", { key: "49798910e83f877f8413abb5c4b11cccacab77eb", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "8e0bddce209f480ad0e39574718ccda799f80c70", d: "M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z", stroke: "auto", "stroke-width": "1.5" }));
10
11
  }
11
12
  };
12
- r.style = o;
13
+ o.style = c;
13
14
  export {
14
- r as star_icon
15
+ o as star_icon
15
16
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-05630f15.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=".sc-stop-icon-h{display:flex}",s=o,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"6979a1534afefd8f03cac18490c593dc6e95327e",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"22c22dbe65bb682d0c0c51ef4b9b23b26b29d729",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=s;exports.stop_icon=t;
@@ -1,12 +1,13 @@
1
- import { r as s, h as t } from "./index-7e7c24f1.js";
1
+ import { r as s, h as t } from "./index-78390f2e.js";
2
2
  import "react";
3
+ import "react/jsx-runtime";
3
4
  import "react-dom";
4
5
  const e = ".sc-stop-icon-h{display:flex}", i = e, r = class {
5
6
  constructor(o) {
6
7
  s(this, o), this.width = "15", this.height = "15";
7
8
  }
8
9
  render() {
9
- return t("svg", { key: "21ddd8a23141367d02d6118b65e083a7c35fdae3", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "087eb49291f67ff7d7d536114007d200a86c61e9", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
+ return t("svg", { key: "6979a1534afefd8f03cac18490c593dc6e95327e", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "22c22dbe65bb682d0c0c51ef4b9b23b26b29d729", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
11
  }
11
12
  };
12
13
  r.style = i;