@nylas/react 1.0.1-prealpha1 → 1.0.2-canary.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 (124) hide show
  1. package/dist/add-circle-icon_13.entry-6dccb5e5.cjs +1 -0
  2. package/dist/add-circle-icon_13.entry-ab84be80.js +1050 -0
  3. package/dist/{archive-icon_7.entry-baecb43c.cjs → archive-icon_7.entry-0deb31c2.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-9f3eca2c.js → archive-icon_7.entry-187a3484.js} +20 -20
  5. package/dist/arrow-icon.entry-b782e05a.js +15 -0
  6. package/dist/{arrow-icon.entry-9ab0c414.cjs → arrow-icon.entry-fb0ebc89.cjs} +1 -1
  7. package/dist/auth-store-764d3768-3e9c24a0.js +66 -0
  8. package/dist/auth-store-764d3768-ce84fc6a.cjs +1 -0
  9. package/dist/{bold-icon_3.entry-50406bc7.cjs → bold-icon_3.entry-49e5a1d0.cjs} +1 -1
  10. package/dist/{bold-icon_3.entry-b0d81839.js → bold-icon_3.entry-8aebbbdb.js} +4 -4
  11. package/dist/{calendar-cancel-icon.entry-0d07e33c.js → calendar-cancel-icon.entry-305c099c.js} +2 -2
  12. package/dist/{calendar-cancel-icon.entry-8f498984.cjs → calendar-cancel-icon.entry-3f4d6cf2.cjs} +1 -1
  13. package/dist/calendar-check-icon_2.entry-1bf4163c.js +25 -0
  14. package/dist/calendar-check-icon_2.entry-fa7c033a.cjs +1 -0
  15. package/dist/{calendar-icon.entry-219efd7a.cjs → calendar-icon.entry-78433555.cjs} +1 -1
  16. package/dist/{calendar-icon.entry-e5f20598.js → calendar-icon.entry-b5678535.js} +7 -7
  17. package/dist/chevron-icon.entry-49b0d3e7.cjs +1 -0
  18. package/dist/{chevron-icon.entry-f5d5d1b1.js → chevron-icon.entry-f484c9a3.js} +5 -5
  19. package/dist/close-icon.entry-24d5c268.js +15 -0
  20. package/dist/close-icon.entry-37965d55.cjs +1 -0
  21. package/dist/{nylas-booked-event-card_10.entry-f2481a57.js → constants-d93cf397-dd67263d.js} +1636 -2376
  22. package/dist/{nylas-booked-event-card_10.entry-27efa654.cjs → constants-d93cf397-e3587f5c.cjs} +6 -6
  23. package/dist/document-refresh-icon.entry-0e8935fa.cjs +1 -0
  24. package/dist/{document-refresh-icon.entry-89ad42fa.js → document-refresh-icon.entry-8791ab16.js} +5 -5
  25. package/dist/elements/index.d.ts +16 -0
  26. package/dist/{forward-icon_6.entry-ce725f05.cjs → forward-icon_6.entry-903ccd33.cjs} +3 -3
  27. package/dist/{forward-icon_6.entry-0a6dff18.js → forward-icon_6.entry-cb605bfc.js} +82 -82
  28. package/dist/globe-icon_3.entry-71d83904.js +109 -0
  29. package/dist/globe-icon_3.entry-c6aefc52.cjs +1 -0
  30. package/dist/{index-b30d446a-e0eaccad.js → index-10914bc1-1a809477.js} +2 -2
  31. package/dist/{index-b30d446a-3d69a3cc.cjs → index-10914bc1-93ff6f46.cjs} +1 -1
  32. package/dist/index-cee193d2.cjs +30 -0
  33. package/dist/index-e834697b.js +1562 -0
  34. package/dist/index.d.ts +1 -1
  35. package/dist/info-icon.entry-3774a4e3.js +15 -0
  36. package/dist/info-icon.entry-85bf3fbc.cjs +1 -0
  37. package/dist/loading-icon.entry-8941102c.js +15 -0
  38. package/dist/{loading-icon.entry-d2680046.cjs → loading-icon.entry-ae6c7b74.cjs} +1 -1
  39. package/dist/mailbox-store-6b9425dc-a0366cf2.cjs +1 -0
  40. package/dist/{mailbox-store-19f0c6c9-23a4e72f.js → mailbox-store-6b9425dc-c249fa99.js} +59 -121
  41. package/dist/nylas-booked-event-card_10.entry-a166d51d.js +739 -0
  42. package/dist/nylas-booked-event-card_10.entry-b181a874.cjs +1 -0
  43. package/dist/nylas-form-card.entry-7173dd4a.js +56 -0
  44. package/dist/nylas-form-card.entry-8fdbefa6.cjs +1 -0
  45. package/dist/nylas-if-state_3.entry-2093c593.cjs +1 -0
  46. package/dist/{nylas-if-state_3.entry-d805d4c6.js → nylas-if-state_3.entry-e7b615a1.js} +12 -10
  47. package/dist/{nylas-list-folders.entry-472bd255.js → nylas-list-folders.entry-744293ae.js} +9 -8
  48. package/dist/nylas-list-folders.entry-dff7a835.cjs +1 -0
  49. package/dist/{nylas-list-threads.entry-f3266bf7.js → nylas-list-threads.entry-85ad1b74.js} +5 -4
  50. package/dist/nylas-list-threads.entry-edb1d265.cjs +1 -0
  51. package/dist/{nylas-mailbox-pagination.entry-bd0d3bda.js → nylas-mailbox-pagination.entry-55ef4b8c.js} +4 -3
  52. package/dist/nylas-mailbox-pagination.entry-5b888a0e.cjs +1 -0
  53. package/dist/nylas-mailbox-toolbar-button.entry-bb42156a.cjs +1 -0
  54. package/dist/{nylas-mailbox-toolbar-button.entry-9641b5cd.js → nylas-mailbox-toolbar-button.entry-bdcf7d17.js} +9 -8
  55. package/dist/nylas-open-hours-picker.entry-0f4f34f6.cjs +1 -0
  56. package/dist/{nylas-open-hours-picker.entry-42942946.js → nylas-open-hours-picker.entry-7e7060fe.js} +59 -58
  57. package/dist/nylas-provider.entry-1dc58829.js +155 -0
  58. package/dist/nylas-provider.entry-cb1ef04e.cjs +1 -0
  59. package/dist/nylas-scheduler-config.entry-2382ac1b.js +114 -0
  60. package/dist/nylas-scheduler-config.entry-477d2171.cjs +1 -0
  61. package/dist/nylas-scheduler-editor.entry-1a95d313.cjs +1 -0
  62. package/dist/nylas-scheduler-editor.entry-c0479087.js +140 -0
  63. package/dist/nylas-scheduler.entry-69ecc3ae.cjs +1 -0
  64. package/dist/{nylas-scheduler.entry-3b7cb841.js → nylas-scheduler.entry-7084c148.js} +20 -19
  65. package/dist/nylas-threads-refresh.entry-b35f1b68.cjs +1 -0
  66. package/dist/{nylas-threads-refresh.entry-7d567ed1.js → nylas-threads-refresh.entry-ef5d6dfd.js} +13 -12
  67. package/dist/nylas-threads-search.entry-2dda7524.cjs +1 -0
  68. package/dist/{nylas-threads-search.entry-c881d54b.js → nylas-threads-search.entry-e570bf8e.js} +13 -12
  69. package/dist/nylas-view-thread.entry-1ee0680f.cjs +1 -0
  70. package/dist/{nylas-view-thread.entry-d8de6c83.js → nylas-view-thread.entry-3939c913.js} +5 -4
  71. package/dist/people-icon.entry-4a88822e.cjs +1 -0
  72. package/dist/people-icon.entry-69465395.js +15 -0
  73. package/dist/{play-icon_2.entry-cae94826.js → play-icon_2.entry-bc24fda7.js} +6 -6
  74. package/dist/play-icon_2.entry-bd9f650e.cjs +1 -0
  75. package/dist/react.cjs +1 -1
  76. package/dist/react.js +74 -58
  77. package/dist/{refresh-icon.entry-3e0aef26.cjs → refresh-icon.entry-678f92e7.cjs} +1 -1
  78. package/dist/{refresh-icon.entry-9563850b.js → refresh-icon.entry-bd2bf7ce.js} +4 -4
  79. package/dist/{register-component-152c6ad2-418db864.js → register-component-486ea571-1f151779.js} +2 -2
  80. package/dist/{register-component-152c6ad2-b0d34c36.cjs → register-component-486ea571-cdfe1ef9.cjs} +1 -1
  81. package/dist/scheduler-config-store-a059f30b-06c1aa21.cjs +1 -0
  82. package/dist/scheduler-config-store-a059f30b-ff3efc00.js +33 -0
  83. package/dist/{scheduler-store-7d48e682-39104219.js → scheduler-store-81058220-263a5f44.js} +53 -45
  84. package/dist/scheduler-store-81058220-a20698af.cjs +1 -0
  85. package/dist/translate-icon.entry-0c0dbba6.cjs +1 -0
  86. package/dist/translate-icon.entry-c1fcd2f8.js +15 -0
  87. package/dist/utils-df5c1963-1c47e21c.cjs +8 -0
  88. package/dist/utils-df5c1963-d9833bcb.js +2114 -0
  89. package/dist/warning-icon.entry-9631cd2e.js +15 -0
  90. package/dist/warning-icon.entry-dbd44cdb.cjs +1 -0
  91. package/package.json +6 -3
  92. package/dist/add-circle-icon.entry-4b8debfa.js +0 -15
  93. package/dist/add-circle-icon.entry-c5fdaa6f.cjs +0 -1
  94. package/dist/arrow-icon.entry-a3b36218.js +0 -15
  95. package/dist/calendar-check-icon_3.entry-5415e916.cjs +0 -1
  96. package/dist/calendar-check-icon_3.entry-cfb612c6.js +0 -35
  97. package/dist/chevron-icon.entry-3c709061.cjs +0 -1
  98. package/dist/close-icon_2.entry-eca351c4.js +0 -25
  99. package/dist/close-icon_2.entry-fa4f6d3e.cjs +0 -1
  100. package/dist/document-refresh-icon.entry-3a29a6e6.cjs +0 -1
  101. package/dist/globe-icon.entry-71414bc6.js +0 -15
  102. package/dist/globe-icon.entry-a0c9599a.cjs +0 -1
  103. package/dist/index-586a4206.cjs +0 -30
  104. package/dist/index-98d3a4da.js +0 -1498
  105. package/dist/loading-icon.entry-15debb7d.js +0 -15
  106. package/dist/mailbox-store-19f0c6c9-9a3ef58a.cjs +0 -1
  107. package/dist/nylas-if-state_3.entry-6c0bf8eb.cjs +0 -1
  108. package/dist/nylas-list-folders.entry-cc04a07e.cjs +0 -1
  109. package/dist/nylas-list-threads.entry-795c5a2b.cjs +0 -1
  110. package/dist/nylas-mailbox-pagination.entry-f701fd83.cjs +0 -1
  111. package/dist/nylas-mailbox-toolbar-button.entry-b9d6a3c8.cjs +0 -1
  112. package/dist/nylas-open-hours-picker.entry-aa103daf.cjs +0 -1
  113. package/dist/nylas-provider.entry-5bb55b2d.cjs +0 -1
  114. package/dist/nylas-provider.entry-b94198a1.js +0 -134
  115. package/dist/nylas-scheduler.entry-ea6fb146.cjs +0 -1
  116. package/dist/nylas-threads-refresh.entry-4002608b.cjs +0 -1
  117. package/dist/nylas-threads-search.entry-556f1219.cjs +0 -1
  118. package/dist/nylas-view-thread.entry-6faf1b51.cjs +0 -1
  119. package/dist/play-icon_2.entry-2e21b8b9.cjs +0 -1
  120. package/dist/scheduler-store-7d48e682-449277d4.cjs +0 -1
  121. package/dist/search-icon_3.entry-9b027cfc.cjs +0 -1
  122. package/dist/search-icon_3.entry-e36548ec.js +0 -101
  123. package/dist/utils-5074a070-ce33ee6b.js +0 -119
  124. package/dist/utils-5074a070-d5ba6add.cjs +0 -2
package/dist/react.js CHANGED
@@ -1,66 +1,82 @@
1
1
  import "react";
2
- import { A as l, e as n, i as c, B as r, C as i, j as I, k as y, l as t, m as N, n as d, D as C, o as m, p as h, G as p, I as S, q as k, L as b, N as u, s as P, t as T, v as f, w as g, x as v, y as w, z as x, E as B, J as E, K as L, M, O as R, P as A, Q as F, R as D, S as V, T as z, U as G, V as O, W as U, X as W, Y as j, Z as q, _ as H, $ as J, a0 as K, a1 as Q, a2 as X, a3 as Y, a4 as Z, a5 as _, a6 as $, a7 as aa, a8 as sa, a9 as oa, aa as ea, ab as la, ac as na, ad as ca, ae as ra, b as ia, d as Ia, u as ya } from "./index-98d3a4da.js";
2
+ import { A as l, e as n, i as r, B as c, C as i, j as t, k as y, l as I, m as N, n as d, o as C, p as m, D as p, q as h, s as S, G as k, I as u, t as P, v as f, L as v, M as E, N as T, w as b, x as g, y as w, z as x, E as A, J as B, K as D, O as L, P as M, Q as F, R, S as V, T as W, U as j, V as q, W as z, X as G, Y as O, Z as U, _ as H, $ as J, a0 as K, a1 as Q, a2 as X, a3 as Y, a4 as Z, a5 as _, a6 as $, a7 as aa, a8 as sa, a9 as oa, aa as ea, ab as la, ac as na, ad as ra, ae as ca, af as ia, ag as ta, ah as ya, ai as Ia, aj as Na, ak as da, al as Ca, am as ma, an as pa, ao as ha, ap as Sa, aq as ka, ar as ua, as as Pa, at as fa, au as va, b as Ea, d as Ta, u as ba } from "./index-e834697b.js";
3
3
  import "react-dom";
4
4
  export {
5
5
  l as AddCircleIcon,
6
6
  n as ArchiveIcon,
7
- c as ArrowIcon,
8
- r as BoldIcon,
7
+ r as ArrowIcon,
8
+ c as BoldIcon,
9
9
  i as CalendarCancelIcon,
10
- I as CalendarCheckIcon,
10
+ t as CalendarCheckIcon,
11
11
  y as CalendarIcon,
12
- t as CheckmarkCircleIcon,
13
- N as ChevronIcon,
14
- d as CloseIcon,
15
- C as DocumentRefreshIcon,
16
- m as FolderIcon,
17
- h as ForwardIcon,
18
- p as GlobeIcon,
19
- S as InboxIcon,
20
- k as ItalicIcon,
21
- b as LoadingIcon,
22
- u as NylasBookedEventCard,
23
- P as NylasBookingForm,
24
- T as NylasCancelBookingForm,
25
- f as NylasCancelledEventCard,
26
- g as NylasComposer,
27
- v as NylasDatePicker,
28
- w as NylasIfState,
29
- x as NylasListFolders,
30
- B as NylasListThreads,
31
- E as NylasLocaleSwitch,
32
- L as NylasLogin,
33
- M as NylasLogo,
34
- R as NylasMailbox,
35
- A as NylasMailboxPagination,
36
- F as NylasMailboxToolbarButton,
37
- D as NylasNotification,
38
- V as NylasOpenHoursPicker,
39
- z as NylasProvider,
40
- G as NylasScheduler,
41
- O as NylasSelectedEventCard,
42
- U as NylasSummarizeMessageButton,
43
- W as NylasThreadsRefresh,
44
- j as NylasThreadsSearch,
45
- q as NylasTimeslotPicker,
46
- H as NylasViewEmail,
47
- J as NylasViewThread,
48
- K as PeopleIcon,
49
- Q as PlayIcon,
50
- X as RefreshIcon,
51
- Y as ReplyAllIcon,
52
- Z as ReplyIcon,
53
- _ as SearchIcon,
54
- $ as SelectDropdown,
55
- aa as SentIcon,
56
- sa as SpamIcon,
57
- oa as StarIcon,
58
- ea as StopIcon,
59
- la as TranslateIcon,
60
- na as TrashIcon,
61
- ca as UnderlineIcon,
62
- ra as WarningIcon,
63
- ia as applyPolyfills,
64
- Ia as defineCustomElements,
65
- ya as useNylasMailboxElement
12
+ I as CalendarInfoIcon,
13
+ N as CalendarPatternsIcon,
14
+ d as CheckmarkCircleIcon,
15
+ C as ChevronIcon,
16
+ m as CloseIcon,
17
+ p as DocumentRefreshIcon,
18
+ h as FolderIcon,
19
+ S as ForwardIcon,
20
+ k as GlobeIcon,
21
+ u as InboxIcon,
22
+ P as InfoIcon,
23
+ f as ItalicIcon,
24
+ v as LoadingIcon,
25
+ E as MultiSelectDropdown,
26
+ T as NylasAdditionalParticipants,
27
+ b as NylasAvailabilityPicker,
28
+ g as NylasBookedEventCard,
29
+ w as NylasBookingForm,
30
+ x as NylasCalendarPicker,
31
+ A as NylasCancelBookingForm,
32
+ B as NylasCancelledEventCard,
33
+ D as NylasComposer,
34
+ L as NylasDatePicker,
35
+ M as NylasEventDescription,
36
+ F as NylasEventDuration,
37
+ R as NylasEventInfo,
38
+ V as NylasEventTitle,
39
+ W as NylasFormCard,
40
+ j as NylasIfState,
41
+ q as NylasListFolders,
42
+ z as NylasListThreads,
43
+ G as NylasLocaleSwitch,
44
+ O as NylasLogin,
45
+ U as NylasLogo,
46
+ H as NylasMailbox,
47
+ J as NylasMailboxPagination,
48
+ K as NylasMailboxToolbarButton,
49
+ Q as NylasNotification,
50
+ X as NylasOpenHoursPicker,
51
+ Y as NylasProvider,
52
+ Z as NylasScheduler,
53
+ _ as NylasSchedulerConfig,
54
+ $ as NylasSchedulerEditor,
55
+ aa as NylasSelectedEventCard,
56
+ sa as NylasSummarizeMessageButton,
57
+ oa as NylasThreadsRefresh,
58
+ ea as NylasThreadsSearch,
59
+ la as NylasTimeWindowPicker,
60
+ na as NylasTimeslotPicker,
61
+ ra as NylasViewEmail,
62
+ ca as NylasViewThread,
63
+ ia as PeopleIcon,
64
+ ta as PlayIcon,
65
+ ya as RefreshIcon,
66
+ Ia as ReplyAllIcon,
67
+ Na as ReplyIcon,
68
+ da as SearchIcon,
69
+ Ca as SelectDropdown,
70
+ ma as SentIcon,
71
+ pa as SpamIcon,
72
+ ha as StarIcon,
73
+ Sa as StopIcon,
74
+ ka as TooltipComponent,
75
+ ua as TranslateIcon,
76
+ Pa as TrashIcon,
77
+ fa as UnderlineIcon,
78
+ va as WarningIcon,
79
+ Ea as applyPolyfills,
80
+ Ta as defineCustomElements,
81
+ ba as useNylasMailboxElement
66
82
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-586a4206.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,e=class{constructor(s){c.registerInstance(this,s),this.width="15",this.height="15"}render(){return c.h("svg",{key:"5c8bfa4356d9458c719cb472c6dc864167bb1722",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c.h("path",{key:"dba9b730da0b63de8b1548275fc1bea14a416cd2",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};e.style=i;exports.refresh_icon=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-cee193d2.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"64a8d239f3af3258068474da12954fe6d5164129",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"ce01188afdc2ddd7b6ea42a1e84134370f43828c",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=i;exports.refresh_icon=c;
@@ -1,12 +1,12 @@
1
- import { r as t, h as c } from "./index-98d3a4da.js";
1
+ import { r as e, h as c } from "./index-e834697b.js";
2
2
  import "react";
3
3
  import "react-dom";
4
- const e = ".sc-refresh-icon-h{display:flex}", l = e, h = class {
4
+ const t = ".sc-refresh-icon-h{display:flex}", l = t, h = class {
5
5
  constructor(s) {
6
- t(this, s), this.width = "15", this.height = "15";
6
+ e(this, s), this.width = "15", this.height = "15";
7
7
  }
8
8
  render() {
9
- return c("svg", { key: "5c8bfa4356d9458c719cb472c6dc864167bb1722", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 32 32", version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "dba9b730da0b63de8b1548275fc1bea14a416cd2", d: "M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z" }));
9
+ return c("svg", { key: "64a8d239f3af3258068474da12954fe6d5164129", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 32 32", version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "ce01188afdc2ddd7b6ea42a1e84134370f43828c", d: "M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z" }));
10
10
  }
11
11
  };
12
12
  h.style = l;
@@ -1,5 +1,5 @@
1
- import { d, r as m } from "./utils-5074a070-ce33ee6b.js";
2
- import { g as P } from "./index-98d3a4da.js";
1
+ import { d, C as m } from "./utils-df5c1963-d9833bcb.js";
2
+ import { g as P } from "./index-e834697b.js";
3
3
  function b(e, r, i = "registerComponent") {
4
4
  return new CustomEvent(i, {
5
5
  bubbles: !0,
@@ -1 +1 @@
1
- "use strict";const s=require("./utils-5074a070-d5ba6add.cjs"),m=require("./index-586a4206.cjs");function P(e,o,u="registerComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function b(e,o,u="unregisterComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function T(e){return(o,u)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${u}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),i=n.filter(c=>t.includes(c));if(i.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${i.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=m.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=m.getElement(this),i={element:t,...e,eventToProps:d},c=P(o,i,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=m.getElement(this),i={element:t,...e,eventToProps:d},c=b(o,i,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=T;
1
+ "use strict";const s=require("./utils-df5c1963-1c47e21c.cjs"),m=require("./index-cee193d2.cjs");function P(e,o,u="registerComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function b(e,o,u="unregisterComponent"){return new CustomEvent(u,{bubbles:!0,composed:!0,detail:o})}function T(e){return(o,u)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${u}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),i=n.filter(c=>t.includes(c));if(i.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${i.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=m.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=m.getElement(this),i={element:t,...e,eventToProps:d},c=P(o,i,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=m.getElement(this),i={element:t,...e,eventToProps:d},c=b(o,i,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=T;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./index-10914bc1-93ff6f46.cjs");class s{constructor({nylasAuth:e,nylasAuthStore:r,nylasSchedulerConfigStore:n}){this.nylasAuth=e,this.nylasAuthStore=r,this.nylasSchedulerConfigStore=n}async getCalendars(){var r;if(!this.nylasAuthStore.state.isAuthenticated)return{error:"Not authenticated"};if(!this.nylasAuth.hasScope("calendar:read_only"))return{error:"Missing calendar:read_only scope"};const e=await this.nylasAuth.nylasAPIRequest("/v3/grants/me/calendars");return a.Xr(e)?{error:"Error fetching calendars: "+((r=e.error)==null?void 0:r.message)}:(this.nylasSchedulerConfigStore.state.calendars=e.data,e==null?void 0:e.data)}}function o(t={}){const e={config:{},calendars:[],...t};return a.createStore(e)}exports.CreateNylasSchedulerConfigStore=o;exports.NylasSchedulerConfigAPIConnector=s;
@@ -0,0 +1,33 @@
1
+ import { c as s, X as n } from "./index-10914bc1-1a809477.js";
2
+ class c {
3
+ constructor({ nylasAuth: e, nylasAuthStore: t, nylasSchedulerConfigStore: a }) {
4
+ this.nylasAuth = e, this.nylasAuthStore = t, this.nylasSchedulerConfigStore = a;
5
+ }
6
+ async getCalendars() {
7
+ var t;
8
+ if (!this.nylasAuthStore.state.isAuthenticated)
9
+ return {
10
+ error: "Not authenticated"
11
+ };
12
+ if (!this.nylasAuth.hasScope("calendar:read_only"))
13
+ return {
14
+ error: "Missing calendar:read_only scope"
15
+ };
16
+ const e = await this.nylasAuth.nylasAPIRequest("/v3/grants/me/calendars");
17
+ return n(e) ? {
18
+ error: "Error fetching calendars: " + ((t = e.error) == null ? void 0 : t.message)
19
+ } : (this.nylasSchedulerConfigStore.state.calendars = e.data, e == null ? void 0 : e.data);
20
+ }
21
+ }
22
+ function l(r = {}) {
23
+ const e = {
24
+ config: {},
25
+ calendars: [],
26
+ ...r
27
+ };
28
+ return s(e);
29
+ }
30
+ export {
31
+ l as C,
32
+ c as N
33
+ };
@@ -1,9 +1,9 @@
1
- import { d as y } from "./utils-5074a070-ce33ee6b.js";
2
- import { c as A } from "./index-b30d446a-e0eaccad.js";
3
- var f;
1
+ import { d as y } from "./utils-df5c1963-d9833bcb.js";
2
+ import { c as D } from "./index-10914bc1-1a809477.js";
3
+ var S;
4
4
  (function(n) {
5
5
  n.Component = "component", n.Api = "api", n.Auth = "auth";
6
- })(f || (f = {}));
6
+ })(S || (S = {}));
7
7
  var k;
8
8
  (function(n) {
9
9
  n.endtime_not_in_future = "endtime_not_in_future", n.no_booking_info = "no_booking_info", n.no_timeslot_selected = "no_timeslot_selected", n.no_booking_id = "no_booking_id", n.invalid_start_time = "invalid_start_time", n.invalid_end_time = "invalid_end_time", n.invalid_timezone = "invalid_timezone";
@@ -12,10 +12,10 @@ var b;
12
12
  (function(n) {
13
13
  n.invalid_session = "invalid_session", n.general_error = "general_error", n.internal_error = "internal_error", n.invalid_request_error = "invalid_request_error", n.timeslot_not_available = "timeslot_not_available";
14
14
  })(b || (b = {}));
15
- class R {
15
+ class A {
16
16
  constructor() {
17
17
  this.component = (t) => {
18
- const e = f.Component, s = `${t} error`;
18
+ const e = S.Component, s = `${t} error`;
19
19
  return {
20
20
  endtime_not_in_future: (i = '"endtime" can not be in the future') => ({
21
21
  title: s,
@@ -54,7 +54,7 @@ class R {
54
54
  })
55
55
  };
56
56
  }, this.api = (t) => {
57
- const e = f.Api, s = `${t} error`;
57
+ const e = S.Api, s = `${t} error`;
58
58
  return {
59
59
  invalid_session: (i) => ({
60
60
  title: s,
@@ -87,7 +87,7 @@ class R {
87
87
  }
88
88
  class z {
89
89
  constructor({ schedulerAPIURL: t, schedulerStore: e, sessionId: s }) {
90
- this.errors = new R(), this.schedulerStore = e, this.schedulerAPIURL = t, this.sessionId = s;
90
+ this.errors = new A(), this.schedulerStore = e, this.schedulerAPIURL = t, this.sessionId = s;
91
91
  }
92
92
  async makeAPIRequest(t, e, s, i = {}) {
93
93
  try {
@@ -145,9 +145,9 @@ class z {
145
145
  async setReschedule(t) {
146
146
  const e = /* @__PURE__ */ new Date();
147
147
  this.schedulerStore.set("rescheduleBookingId", t), this.schedulerStore.set("selectedTimeslot", null), this.schedulerStore.set("showThankYouMessage", !1), this.schedulerStore.set("showBookingForm", !1);
148
- const s = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, i = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3, r = await this.getAvailability(s, i), o = this.schedulerStore.get("availability").find((g) => new Date(g.start_time) > /* @__PURE__ */ new Date());
149
- let a = e;
150
- return o && (a = o.start_time), this.schedulerStore.set("selectedDate", a), r;
148
+ const s = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, i = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3, r = await this.getAvailability(s, i), a = this.schedulerStore.get("availability").find((p) => new Date(p.start_time) > /* @__PURE__ */ new Date());
149
+ let l = e;
150
+ return a && (l = a.start_time), this.schedulerStore.set("selectedDate", l), r;
151
151
  }
152
152
  async setCancel(t) {
153
153
  this.schedulerStore.set("cancelBookingId", t);
@@ -161,44 +161,52 @@ class z {
161
161
  const i = (t == null ? void 0 : t.timeslot) || e;
162
162
  if (!i)
163
163
  return { error: this.errors.component("Create Booking").no_timeslot_selected() };
164
- const r = t ? t == null ? void 0 : t.primaryParticipant : s == null ? void 0 : s.primaryParticipant, o = t ? (t == null ? void 0 : t.guests) || [] : (s == null ? void 0 : s.guests) || [], a = t ? { ...t == null ? void 0 : t.additionalFields } : { ...s == null ? void 0 : s.additionalFields }, g = {
164
+ const r = t ? t == null ? void 0 : t.primaryParticipant : s == null ? void 0 : s.primaryParticipant, a = t ? (t == null ? void 0 : t.guests) || [] : (s == null ? void 0 : s.guests) || [], l = t ? { ...t == null ? void 0 : t.additionalFields, guests: a } : { ...s == null ? void 0 : s.additionalFields, guests: a }, p = {
165
165
  Authorization: `Bearer ${this.sessionId}`
166
- }, u = "/schedule/bookings", c = await this.makeAPIRequest(decodeURIComponent(u), "POST", JSON.stringify({
167
- participants: [r, ...o],
168
- additional_fields: a,
166
+ }, u = "/v3/scheduling/bookings", c = await this.makeAPIRequest(decodeURIComponent(u), "POST", JSON.stringify({
167
+ additional_fields: l,
168
+ guest: { ...r },
169
169
  start_time: i.start_time.getTime() / 1e3,
170
170
  end_time: i.end_time.getTime() / 1e3
171
- }), g);
171
+ }), p);
172
172
  if ("error" in c) {
173
173
  this.schedulerStore.set("isLoading", !1);
174
174
  const h = (m = c.error) == null ? void 0 : m.type;
175
- let l = c.error;
176
- return h && h in this.errors.api("Create Booking") && (l = this.errors.api("Create Booking")[h]((l == null ? void 0 : l.message) || (l == null ? void 0 : l.title) || "Something went wrong")), { error: l };
175
+ let o = c.error;
176
+ return h && h in this.errors.api("Create Booking") && (o = this.errors.api("Create Booking")[h]((o == null ? void 0 : o.message) || (o == null ? void 0 : o.title) || "Something went wrong")), { error: o };
177
177
  }
178
178
  return "data" in c && this.schedulerStore.set("eventInfo", c == null ? void 0 : c.data), this.schedulerStore.set("isLoading", !1), c;
179
179
  }
180
180
  async getAvailability(t = 0, e = 0) {
181
181
  var c, m, h;
182
182
  this.schedulerStore.set("isLoading", !0);
183
- const s = new URLSearchParams(), r = (/* @__PURE__ */ new Date()).getTime();
183
+ const s = new URLSearchParams(), i = /* @__PURE__ */ new Date(), r = i.getTime();
184
184
  if (e && e < r / 1e3)
185
185
  return this.schedulerStore.set("isLoading", !1), { error: this.errors.component("Get Availability").endtime_not_in_future() };
186
- t && s.append("start_time", encodeURIComponent(t)), e && s.append("end_time", encodeURIComponent(e));
187
- const o = s.toString(), a = `/schedule/availability${o ? `?${o}` : ""}`, g = {
186
+ if (!t) {
187
+ const o = new Date(i.getFullYear(), i.getMonth(), 1);
188
+ t = Math.floor(o.getTime() / 1e3);
189
+ }
190
+ if (!e) {
191
+ const o = new Date(i.getFullYear(), i.getMonth() + 1, 0);
192
+ e = Math.floor(o.getTime() / 1e3);
193
+ }
194
+ s.append("start_time", encodeURIComponent(t.toString())), s.append("end_time", encodeURIComponent(e.toString()));
195
+ const a = s.toString(), l = `/v3/scheduling/availability${a ? `?${a}` : ""}`, p = {
188
196
  Authorization: `Bearer ${this.sessionId}`
189
- }, u = await this.makeAPIRequest(decodeURIComponent(a), "GET", void 0, g);
197
+ }, u = await this.makeAPIRequest(decodeURIComponent(l), "GET", void 0, p);
190
198
  if ("error" in u) {
191
199
  this.schedulerStore.set("availability", []), this.schedulerStore.set("isLoading", !1);
192
- const l = (c = u.error) == null ? void 0 : c.type;
200
+ const o = (c = u.error) == null ? void 0 : c.type;
193
201
  let d = u.error;
194
- return l && l in this.errors.api("Get Availability") && (d = this.errors.api("Get Availability")[l]((d == null ? void 0 : d.message) || (d == null ? void 0 : d.title) || "Something went wrong")), { error: d };
202
+ return o && o in this.errors.api("Get Availability") && (d = this.errors.api("Get Availability")[o]((d == null ? void 0 : d.message) || (d == null ? void 0 : d.title) || "Something went wrong")), { error: d };
195
203
  }
196
204
  if ("data" in u) {
197
- const d = (((h = (m = u.data) == null ? void 0 : m.time_slots) == null ? void 0 : h.map((p) => ({
198
- ...p,
199
- start_time: new Date(p.start_time * 1e3),
200
- end_time: new Date(p.end_time * 1e3)
201
- }))) || []).filter((p) => p.start_time.getTime() > r);
205
+ const d = (((h = (m = u.data) == null ? void 0 : m.time_slots) == null ? void 0 : h.map((g) => ({
206
+ ...g,
207
+ start_time: new Date(g.start_time * 1e3),
208
+ end_time: new Date(g.end_time * 1e3)
209
+ }))) || []).filter((g) => g.start_time.getTime() > r);
202
210
  this.schedulerStore.set("availability", d);
203
211
  }
204
212
  return this.schedulerStore.set("isLoading", !1), u;
@@ -207,16 +215,16 @@ class z {
207
215
  var r;
208
216
  if (this.schedulerStore.set("isLoading", !0), !t)
209
217
  return { error: this.errors.component("Cancel Booking").no_booking_id() };
210
- const e = `/schedule/bookings/${t}`, s = {
218
+ const e = `/v3/scheduling/bookings/${t}`, s = {
211
219
  Authorization: `Bearer ${this.sessionId}`
212
220
  }, i = await this.makeAPIRequest(decodeURIComponent(e), "PUT", JSON.stringify({
213
221
  action: "cancel"
214
222
  }), s);
215
223
  if ("error" in i) {
216
224
  this.schedulerStore.set("isLoading", !1);
217
- const o = (r = i.error) == null ? void 0 : r.type;
218
- let a = i.error;
219
- return o && o in this.errors.api("Cancel Booking") && (a = this.errors.api("Cancel Booking")[o]((a == null ? void 0 : a.message) || (a == null ? void 0 : a.title) || "Something went wrong")), { error: a };
225
+ const a = (r = i.error) == null ? void 0 : r.type;
226
+ let l = i.error;
227
+ return a && a in this.errors.api("Cancel Booking") && (l = this.errors.api("Cancel Booking")[a]((l == null ? void 0 : l.message) || (l == null ? void 0 : l.title) || "Something went wrong")), { error: l };
220
228
  }
221
229
  return "data" in i && this.schedulerStore.set("cancelledEvent", i == null ? void 0 : i.data), this.schedulerStore.set("isLoading", !1), i;
222
230
  }
@@ -224,29 +232,29 @@ class z {
224
232
  var w;
225
233
  if (this.schedulerStore.set("isLoading", !0), !t)
226
234
  return { error: this.errors.component("Reschedule Booking").no_booking_id() };
227
- const s = this.errors.api("Reschedule Booking"), i = this.errors.component("Reschedule Booking"), { bookingInfo: r, selectedTimeslot: o, selectedTimezone: a } = this.schedulerStore.state, { startTime: g, endTime: u, timezone: c } = e, m = g || (o == null ? void 0 : o.start_time);
235
+ const s = this.errors.api("Reschedule Booking"), i = this.errors.component("Reschedule Booking"), { bookingInfo: r, selectedTimeslot: a, selectedTimezone: l } = this.schedulerStore.state, { startTime: p, endTime: u, timezone: c } = e, m = p || (a == null ? void 0 : a.start_time);
228
236
  if (!m)
229
237
  return { error: i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerStoreState.') };
230
- const h = u || (o == null ? void 0 : o.end_time);
238
+ const h = u || (a == null ? void 0 : a.end_time);
231
239
  if (!h)
232
240
  return { error: i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerStoreState.') };
233
- const l = c || a;
234
- if (!l)
241
+ const o = c || l;
242
+ if (!o)
235
243
  return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerStoreState.') };
236
- const d = e ? e == null ? void 0 : e.primaryParticipant : r == null ? void 0 : r.primaryParticipant, p = e ? (e == null ? void 0 : e.guests) || [] : (r == null ? void 0 : r.guests) || [], T = e ? { ...e == null ? void 0 : e.additionalFields } : { ...r == null ? void 0 : r.additionalFields }, P = `/schedule/bookings/${t}`, B = {
244
+ const d = e ? e == null ? void 0 : e.primaryParticipant : r == null ? void 0 : r.primaryParticipant, g = e ? (e == null ? void 0 : e.guests) || [] : (r == null ? void 0 : r.guests) || [], T = e ? { ...e == null ? void 0 : e.additionalFields, guests: g } : { ...r == null ? void 0 : r.additionalFields, guests: g }, P = `/v3/scheduling/bookings/${t}`, B = {
237
245
  Authorization: `Bearer ${this.sessionId}`
238
246
  }, _ = await this.makeAPIRequest(decodeURIComponent(P), "PATCH", JSON.stringify({
239
247
  start_time: m.getTime() / 1e3,
240
248
  end_time: h.getTime() / 1e3,
241
- time_zone: l,
242
- participants: [d, ...p],
243
- additional_fields: T
249
+ time_zone: o,
250
+ additional_fields: T,
251
+ guest: { ...d }
244
252
  }), B);
245
253
  if ("error" in _) {
246
254
  this.schedulerStore.set("isLoading", !1);
247
255
  const v = (w = _.error) == null ? void 0 : w.type;
248
- let S = _.error;
249
- v && v in s && (S = s[v]((S == null ? void 0 : S.message) || (S == null ? void 0 : S.title) || "Something went wrong"));
256
+ let f = _.error;
257
+ v && v in s && (f = s[v]((f == null ? void 0 : f.message) || (f == null ? void 0 : f.title) || "Something went wrong"));
250
258
  }
251
259
  return "data" in _ && this.schedulerStore.set("eventInfo", _ == null ? void 0 : _.data), this.schedulerStore.set("isLoading", !1), _;
252
260
  }
@@ -268,7 +276,7 @@ function C(n = {}) {
268
276
  ...n
269
277
  };
270
278
  y("[defaultNylasStoreState]: ", t);
271
- const e = A(t);
279
+ const e = D(t);
272
280
  return e.onChange("availability", (s) => {
273
281
  y("[availability]: ", s);
274
282
  const i = s.map((r) => r.start_time);
@@ -284,6 +292,6 @@ function C(n = {}) {
284
292
  }
285
293
  export {
286
294
  C,
287
- f as E,
295
+ S as E,
288
296
  z as N
289
297
  };
@@ -0,0 +1 @@
1
+ "use strict";const v=require("./utils-df5c1963-1c47e21c.cjs"),D=require("./index-10914bc1-93ff6f46.cjs");exports.ErrorCategory=void 0;(function(n){n.Component="component",n.Api="api",n.Auth="auth"})(exports.ErrorCategory||(exports.ErrorCategory={}));var w;(function(n){n.endtime_not_in_future="endtime_not_in_future",n.no_booking_info="no_booking_info",n.no_timeslot_selected="no_timeslot_selected",n.no_booking_id="no_booking_id",n.invalid_start_time="invalid_start_time",n.invalid_end_time="invalid_end_time",n.invalid_timezone="invalid_timezone"})(w||(w={}));var b;(function(n){n.invalid_session="invalid_session",n.general_error="general_error",n.internal_error="internal_error",n.invalid_request_error="invalid_request_error",n.timeslot_not_available="timeslot_not_available"})(b||(b={}));class A{constructor(){this.component=t=>{const e=exports.ErrorCategory.Component,s=`${t} error`;return{endtime_not_in_future:(i='"endtime" can not be in the future')=>({title:s,message:i,category:e}),no_booking_info:(i="No booking info provided")=>({title:s,message:i,category:e}),no_timeslot_selected:(i="No timeslot selected")=>({title:s,message:i,category:e}),no_booking_id:(i="No booking id provided")=>({title:s,message:i,category:e}),invalid_start_time:(i="Invalid start time")=>({title:s,message:i,category:e}),invalid_end_time:(i="Invalid end time")=>({title:s,message:i,category:e}),invalid_timezone:(i="Invalid timezone")=>({title:s,message:i,category:e})}},this.api=t=>{const e=exports.ErrorCategory.Api,s=`${t} error`;return{invalid_session:i=>({title:s,message:i,category:e}),general_error:i=>({title:s,message:i,category:e}),internal_error:i=>({title:s,message:i,category:e}),invalid_request_error:i=>({title:s,message:i,category:e}),timeslot_not_available:i=>({title:s,message:i,category:e})}}}}class B{constructor({schedulerAPIURL:t,schedulerStore:e,sessionId:s}){this.errors=new A,this.schedulerStore=e,this.schedulerAPIURL=t,this.sessionId=s}async makeAPIRequest(t,e,s,i={}){try{const r=new URL(this.schedulerAPIURL);return r.pathname=t,await(await fetch(decodeURIComponent(r.toString()),{method:e,headers:{"Content-Type":"application/json",...i},body:s})).json()}catch(r){return{error:{message:r.message,title:"API request failed",type:"api"}}}}selectDate(t){this.schedulerStore.set("selectedDate",t),this.schedulerStore.set("selectedTimeslot",null)}selectTime(t){this.schedulerStore.set("selectedTimeslot",t)}selectTimezone(t){this.schedulerStore.set("selectedTimezone",t)}toggleAdditionalData(t){this.schedulerStore.set("showBookingForm",t)}setParticipantName(t){const{bookingInfo:e}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...e,primaryParticipant:{...e==null?void 0:e.primaryParticipant,name:t}})}setParticipantEmail(t){const{bookingInfo:e}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...e,primaryParticipant:{...e==null?void 0:e.primaryParticipant,email:t}})}async setReschedule(t){const e=new Date;this.schedulerStore.set("rescheduleBookingId",t),this.schedulerStore.set("selectedTimeslot",null),this.schedulerStore.set("showThankYouMessage",!1),this.schedulerStore.set("showBookingForm",!1);const s=new Date(e.getFullYear(),e.getMonth(),1).getTime()/1e3,i=new Date(e.getFullYear(),e.getMonth()+1,1).getTime()/1e3,r=await this.getAvailability(s,i),a=this.schedulerStore.get("availability").find(S=>new Date(S.start_time)>new Date);let l=e;return a&&(l=a.start_time),this.schedulerStore.set("selectedDate",l),r}async setCancel(t){this.schedulerStore.set("cancelBookingId",t)}async bookTimeslot(t){var m;this.schedulerStore.set("isLoading",!0);const{selectedTimeslot:e,bookingInfo:s}=this.schedulerStore.state;if(!t&&!s)return{error:this.errors.component("Booking").no_booking_info()};const i=(t==null?void 0:t.timeslot)||e;if(!i)return{error:this.errors.component("Create Booking").no_timeslot_selected()};const r=t?t==null?void 0:t.primaryParticipant:s==null?void 0:s.primaryParticipant,a=t?(t==null?void 0:t.guests)||[]:(s==null?void 0:s.guests)||[],l=t?{...t==null?void 0:t.additionalFields,guests:a}:{...s==null?void 0:s.additionalFields,guests:a},S={Authorization:`Bearer ${this.sessionId}`},u="/v3/scheduling/bookings",c=await this.makeAPIRequest(decodeURIComponent(u),"POST",JSON.stringify({additional_fields:l,guest:{...r},start_time:i.start_time.getTime()/1e3,end_time:i.end_time.getTime()/1e3}),S);if("error"in c){this.schedulerStore.set("isLoading",!1);const h=(m=c.error)==null?void 0:m.type;let o=c.error;return h&&h in this.errors.api("Create Booking")&&(o=this.errors.api("Create Booking")[h]((o==null?void 0:o.message)||(o==null?void 0:o.title)||"Something went wrong")),{error:o}}return"data"in c&&this.schedulerStore.set("eventInfo",c==null?void 0:c.data),this.schedulerStore.set("isLoading",!1),c}async getAvailability(t=0,e=0){var c,m,h;this.schedulerStore.set("isLoading",!0);const s=new URLSearchParams,i=new Date,r=i.getTime();if(e&&e<r/1e3)return this.schedulerStore.set("isLoading",!1),{error:this.errors.component("Get Availability").endtime_not_in_future()};if(!t){const o=new Date(i.getFullYear(),i.getMonth(),1);t=Math.floor(o.getTime()/1e3)}if(!e){const o=new Date(i.getFullYear(),i.getMonth()+1,0);e=Math.floor(o.getTime()/1e3)}s.append("start_time",encodeURIComponent(t.toString())),s.append("end_time",encodeURIComponent(e.toString()));const a=s.toString(),l=`/v3/scheduling/availability${a?`?${a}`:""}`,S={Authorization:`Bearer ${this.sessionId}`},u=await this.makeAPIRequest(decodeURIComponent(l),"GET",void 0,S);if("error"in u){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const o=(c=u.error)==null?void 0:c.type;let d=u.error;return o&&o in this.errors.api("Get Availability")&&(d=this.errors.api("Get Availability")[o]((d==null?void 0:d.message)||(d==null?void 0:d.title)||"Something went wrong")),{error:d}}if("data"in u){const d=(((h=(m=u.data)==null?void 0:m.time_slots)==null?void 0:h.map(g=>({...g,start_time:new Date(g.start_time*1e3),end_time:new Date(g.end_time*1e3)})))||[]).filter(g=>g.start_time.getTime()>r);this.schedulerStore.set("availability",d)}return this.schedulerStore.set("isLoading",!1),u}async cancelBooking(t){var r;if(this.schedulerStore.set("isLoading",!0),!t)return{error:this.errors.component("Cancel Booking").no_booking_id()};const e=`/v3/scheduling/bookings/${t}`,s={Authorization:`Bearer ${this.sessionId}`},i=await this.makeAPIRequest(decodeURIComponent(e),"PUT",JSON.stringify({action:"cancel"}),s);if("error"in i){this.schedulerStore.set("isLoading",!1);const a=(r=i.error)==null?void 0:r.type;let l=i.error;return a&&a in this.errors.api("Cancel Booking")&&(l=this.errors.api("Cancel Booking")[a]((l==null?void 0:l.message)||(l==null?void 0:l.title)||"Something went wrong")),{error:l}}return"data"in i&&this.schedulerStore.set("cancelledEvent",i==null?void 0:i.data),this.schedulerStore.set("isLoading",!1),i}async rescheduleBooking(t,e){var y;if(this.schedulerStore.set("isLoading",!0),!t)return{error:this.errors.component("Reschedule Booking").no_booking_id()};const s=this.errors.api("Reschedule Booking"),i=this.errors.component("Reschedule Booking"),{bookingInfo:r,selectedTimeslot:a,selectedTimezone:l}=this.schedulerStore.state,{startTime:S,endTime:u,timezone:c}=e,m=S||(a==null?void 0:a.start_time);if(!m)return{error:i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerStoreState.')};const h=u||(a==null?void 0:a.end_time);if(!h)return{error:i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerStoreState.')};const o=c||l;if(!o)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerStoreState.')};const d=e?e==null?void 0:e.primaryParticipant:r==null?void 0:r.primaryParticipant,g=e?(e==null?void 0:e.guests)||[]:(r==null?void 0:r.guests)||[],k=e?{...e==null?void 0:e.additionalFields,guests:g}:{...r==null?void 0:r.additionalFields,guests:g},T=`/v3/scheduling/bookings/${t}`,P={Authorization:`Bearer ${this.sessionId}`},_=await this.makeAPIRequest(decodeURIComponent(T),"PATCH",JSON.stringify({start_time:m.getTime()/1e3,end_time:h.getTime()/1e3,time_zone:o,additional_fields:k,guest:{...d}}),P);if("error"in _){this.schedulerStore.set("isLoading",!1);const p=(y=_.error)==null?void 0:y.type;let f=_.error;p&&p in s&&(f=s[p]((f==null?void 0:f.message)||(f==null?void 0:f.title)||"Something went wrong"))}return"data"in _&&this.schedulerStore.set("eventInfo",_==null?void 0:_.data),this.schedulerStore.set("isLoading",!1),_}}function C(n={}){const t={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:!1,showThankYouMessage:!1,selectableDates:null,availability:[],state:"ready",eventInfo:null,cancelledEvent:null,isLoading:!1,...n};v.debug("[defaultNylasStoreState]: ",t);const e=D.createStore(t);return e.onChange("availability",s=>{v.debug("[availability]: ",s);const i=s.map(r=>r.start_time);v.debug("[selectableDates]: ",i),e.set("selectableDates",i)}),e.onChange("rescheduleBookingId",s=>{s?e.set("bookingFlow","rescheduling"):e.set("bookingFlow","booking")}),e.reset=()=>{for(const s in t){const i=t[s];e.set(s,i)}},e}exports.CreateNylasSchedulerStore=C;exports.NylaSchedulerAPIConnector=B;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-cee193d2.cjs");require("react");require("react-dom");const s=".sc-translate-icon-h{display:flex}",i=s,e=class{constructor(t){C.registerInstance(this,t),this.width="16",this.height="16"}render(){return C.h("svg",{key:"6a9e2bc325eb58ed5eaf586f1861569c1f5c0615",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 20 20",fill:"none"},C.h("path",{key:"b9208a06d5652e37a7f9dff0087a8ccd0afdcbad",fill:"currentColor",d:"M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z"}))}};e.style=i;exports.translate_icon=e;
@@ -0,0 +1,15 @@
1
+ import { r as e, h as C } from "./index-e834697b.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const s = ".sc-translate-icon-h{display:flex}", i = s, o = class {
5
+ constructor(t) {
6
+ e(this, t), this.width = "16", this.height = "16";
7
+ }
8
+ render() {
9
+ return C("svg", { key: "6a9e2bc325eb58ed5eaf586f1861569c1f5c0615", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, C("path", { key: "b9208a06d5652e37a7f9dff0087a8ccd0afdcbad", fill: "currentColor", d: "M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z" }));
10
+ }
11
+ };
12
+ o.style = i;
13
+ export {
14
+ o as translate_icon
15
+ };