@nylas/react 1.0.2-canary.0 → 1.0.2-canary.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 (124) hide show
  1. package/dist/add-circle-icon_18.entry-b66b6343.cjs +1 -0
  2. package/dist/add-circle-icon_18.entry-f86ae88d.js +1527 -0
  3. package/dist/{archive-icon_7.entry-0deb31c2.cjs → archive-icon_7.entry-052ac074.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-187a3484.js → archive-icon_7.entry-0e34d6e7.js} +17 -17
  5. package/dist/arrow-icon.entry-2afd9ea9.js +15 -0
  6. package/dist/{arrow-icon.entry-fb0ebc89.cjs → arrow-icon.entry-93f21385.cjs} +1 -1
  7. package/dist/{auth-store-764d3768-ce84fc6a.cjs → auth-store-69ac49c7-5a0bbb90.cjs} +1 -1
  8. package/dist/{auth-store-764d3768-3e9c24a0.js → auth-store-69ac49c7-cbfda055.js} +2 -2
  9. package/dist/{bold-icon_3.entry-8aebbbdb.js → bold-icon_3.entry-88ce1d25.js} +8 -8
  10. package/dist/bold-icon_3.entry-8f55a9e7.cjs +1 -0
  11. package/dist/{calendar-cancel-icon.entry-3f4d6cf2.cjs → calendar-cancel-icon.entry-574c8aa4.cjs} +1 -1
  12. package/dist/{calendar-cancel-icon.entry-305c099c.js → calendar-cancel-icon.entry-e9c692fa.js} +5 -5
  13. package/dist/{calendar-check-icon_2.entry-fa7c033a.cjs → calendar-check-icon_2.entry-b0476bca.cjs} +1 -1
  14. package/dist/{calendar-check-icon_2.entry-1bf4163c.js → calendar-check-icon_2.entry-d461c713.js} +7 -7
  15. package/dist/{calendar-icon.entry-b5678535.js → calendar-icon.entry-1ca202a4.js} +4 -4
  16. package/dist/{calendar-icon.entry-78433555.cjs → calendar-icon.entry-98936e6d.cjs} +1 -1
  17. package/dist/chevron-icon_3.entry-830f52c2.js +105 -0
  18. package/dist/chevron-icon_3.entry-f7801467.cjs +1 -0
  19. package/dist/close-icon.entry-37e8361f.js +15 -0
  20. package/dist/close-icon.entry-8d6e9816.cjs +1 -0
  21. package/dist/{constants-d93cf397-e3587f5c.cjs → constants-b6bf6671-27e2557d.cjs} +4 -4
  22. package/dist/{constants-d93cf397-dd67263d.js → constants-b6bf6671-49a0f1f2.js} +464 -442
  23. package/dist/{document-refresh-icon.entry-8791ab16.js → document-refresh-icon.entry-faea08ce.js} +2 -2
  24. package/dist/document-refresh-icon.entry-fcb33921.cjs +1 -0
  25. package/dist/elements/index.d.ts +9 -3
  26. package/dist/{forward-icon_6.entry-cb605bfc.js → forward-icon_6.entry-8da1f65d.js} +10 -10
  27. package/dist/{forward-icon_6.entry-903ccd33.cjs → forward-icon_6.entry-c4b37cb1.cjs} +2 -2
  28. package/dist/globe-icon.entry-4720304b.js +15 -0
  29. package/dist/globe-icon.entry-90a0b9c9.cjs +1 -0
  30. package/dist/{index-10914bc1-1a809477.js → index-10914bc1-346f04fa.js} +3 -3
  31. package/dist/{index-10914bc1-93ff6f46.cjs → index-10914bc1-c8c3a2f3.cjs} +1 -1
  32. package/dist/index-457dcf0b.cjs +30 -0
  33. package/dist/index-ce40ad47.js +1570 -0
  34. package/dist/info-icon_2.entry-81e95048.cjs +1 -0
  35. package/dist/info-icon_2.entry-9307db18.js +34 -0
  36. package/dist/loading-icon.entry-06d37ef0.cjs +1 -0
  37. package/dist/loading-icon.entry-dc518df4.js +15 -0
  38. package/dist/{mailbox-store-6b9425dc-a0366cf2.cjs → mailbox-store-e721b17c-4e97e07d.cjs} +1 -1
  39. package/dist/{mailbox-store-6b9425dc-c249fa99.js → mailbox-store-e721b17c-cf9a43dd.js} +2 -2
  40. package/dist/nylas-additional-participants.entry-1653dec7.js +83 -0
  41. package/dist/nylas-additional-participants.entry-ff8bf378.cjs +1 -0
  42. package/dist/nylas-booked-event-card_10.entry-06bc3c51.cjs +1 -0
  43. package/dist/nylas-booked-event-card_10.entry-aa971e8a.js +784 -0
  44. package/dist/nylas-editor-tabs.entry-49b5a3ab.cjs +1 -0
  45. package/dist/nylas-editor-tabs.entry-9d0959bf.js +181 -0
  46. package/dist/nylas-form-card.entry-69d2095b.cjs +1 -0
  47. package/dist/nylas-form-card.entry-c4e78f88.js +56 -0
  48. package/dist/{nylas-if-state_3.entry-e7b615a1.js → nylas-if-state_3.entry-2eb3f385.js} +8 -8
  49. package/dist/{nylas-if-state_3.entry-2093c593.cjs → nylas-if-state_3.entry-5baf6d6f.cjs} +1 -1
  50. package/dist/{nylas-list-folders.entry-dff7a835.cjs → nylas-list-folders.entry-3b24d92d.cjs} +1 -1
  51. package/dist/{nylas-list-folders.entry-744293ae.js → nylas-list-folders.entry-995fa819.js} +4 -4
  52. package/dist/{nylas-list-threads.entry-85ad1b74.js → nylas-list-threads.entry-21466eb3.js} +6 -6
  53. package/dist/{nylas-list-threads.entry-edb1d265.cjs → nylas-list-threads.entry-fda42ded.cjs} +1 -1
  54. package/dist/{nylas-mailbox-pagination.entry-55ef4b8c.js → nylas-mailbox-pagination.entry-02d40186.js} +3 -3
  55. package/dist/{nylas-mailbox-pagination.entry-5b888a0e.cjs → nylas-mailbox-pagination.entry-9dcd4901.cjs} +1 -1
  56. package/dist/{nylas-mailbox-toolbar-button.entry-bb42156a.cjs → nylas-mailbox-toolbar-button.entry-d1099fab.cjs} +1 -1
  57. package/dist/{nylas-mailbox-toolbar-button.entry-bdcf7d17.js → nylas-mailbox-toolbar-button.entry-dbad44b4.js} +9 -9
  58. package/dist/{nylas-provider.entry-cb1ef04e.cjs → nylas-provider.entry-78e2fa30.cjs} +1 -1
  59. package/dist/{nylas-provider.entry-1dc58829.js → nylas-provider.entry-bbee8c99.js} +8 -8
  60. package/dist/nylas-scheduler-editor.entry-550d3c59.cjs +1 -0
  61. package/dist/{nylas-scheduler-config.entry-2382ac1b.js → nylas-scheduler-editor.entry-8f7ecf3b.js} +32 -35
  62. package/dist/nylas-scheduling.entry-22b5ad07.js +236 -0
  63. package/dist/nylas-scheduling.entry-30a63738.cjs +1 -0
  64. package/dist/{nylas-threads-refresh.entry-b35f1b68.cjs → nylas-threads-refresh.entry-05258b36.cjs} +1 -1
  65. package/dist/{nylas-threads-refresh.entry-ef5d6dfd.js → nylas-threads-refresh.entry-414d8740.js} +12 -12
  66. package/dist/{nylas-threads-search.entry-e570bf8e.js → nylas-threads-search.entry-a19dc90f.js} +8 -8
  67. package/dist/{nylas-threads-search.entry-2dda7524.cjs → nylas-threads-search.entry-ff21fc65.cjs} +1 -1
  68. package/dist/{nylas-view-thread.entry-3939c913.js → nylas-view-thread.entry-38149162.js} +4 -4
  69. package/dist/{nylas-view-thread.entry-1ee0680f.cjs → nylas-view-thread.entry-5da81e99.cjs} +1 -1
  70. package/dist/{people-icon.entry-4a88822e.cjs → people-icon.entry-4b682757.cjs} +1 -1
  71. package/dist/{people-icon.entry-69465395.js → people-icon.entry-5c244c8d.js} +6 -6
  72. package/dist/play-icon_2.entry-ccdc6b9c.cjs +1 -0
  73. package/dist/play-icon_2.entry-f36d6d55.js +25 -0
  74. package/dist/react.cjs +1 -1
  75. package/dist/react.js +70 -64
  76. package/dist/{refresh-icon.entry-678f92e7.cjs → refresh-icon.entry-59fff3d4.cjs} +1 -1
  77. package/dist/{refresh-icon.entry-bd2bf7ce.js → refresh-icon.entry-63456c9a.js} +4 -4
  78. package/dist/{register-component-486ea571-cdfe1ef9.cjs → register-component-d056a880-2be11c56.cjs} +1 -1
  79. package/dist/{register-component-486ea571-1f151779.js → register-component-d056a880-f3003d6c.js} +2 -2
  80. package/dist/{scheduler-config-store-a059f30b-06c1aa21.cjs → scheduler-config-store-4d035001-0256b40c.cjs} +1 -1
  81. package/dist/{scheduler-config-store-a059f30b-ff3efc00.js → scheduler-config-store-4d035001-db9dc78a.js} +1 -1
  82. package/dist/{scheduler-store-81058220-263a5f44.js → scheduler-store-0fbe642c-14466305.js} +85 -89
  83. package/dist/scheduler-store-0fbe642c-410fdbf4.cjs +1 -0
  84. package/dist/{translate-icon.entry-0c0dbba6.cjs → translate-icon.entry-1784c18e.cjs} +1 -1
  85. package/dist/{translate-icon.entry-c1fcd2f8.js → translate-icon.entry-35999e70.js} +2 -2
  86. package/dist/{utils-df5c1963-d9833bcb.js → utils-0cd66d04-89ab163d.js} +98 -101
  87. package/dist/{utils-df5c1963-1c47e21c.cjs → utils-0cd66d04-94b9c3b6.cjs} +5 -5
  88. package/dist/{warning-icon.entry-dbd44cdb.cjs → warning-icon.entry-3a702d1d.cjs} +1 -1
  89. package/dist/warning-icon.entry-73de08c3.js +15 -0
  90. package/package.json +4 -4
  91. package/dist/add-circle-icon_13.entry-6dccb5e5.cjs +0 -1
  92. package/dist/add-circle-icon_13.entry-ab84be80.js +0 -1050
  93. package/dist/arrow-icon.entry-b782e05a.js +0 -15
  94. package/dist/bold-icon_3.entry-49e5a1d0.cjs +0 -1
  95. package/dist/chevron-icon.entry-49b0d3e7.cjs +0 -1
  96. package/dist/chevron-icon.entry-f484c9a3.js +0 -15
  97. package/dist/close-icon.entry-24d5c268.js +0 -15
  98. package/dist/close-icon.entry-37965d55.cjs +0 -1
  99. package/dist/document-refresh-icon.entry-0e8935fa.cjs +0 -1
  100. package/dist/duration-bddc4a13-05d3e3e2.cjs +0 -1
  101. package/dist/duration-bddc4a13-179ce826.js +0 -41
  102. package/dist/globe-icon_3.entry-71d83904.js +0 -109
  103. package/dist/globe-icon_3.entry-c6aefc52.cjs +0 -1
  104. package/dist/index-cee193d2.cjs +0 -30
  105. package/dist/index-e834697b.js +0 -1562
  106. package/dist/info-icon.entry-3774a4e3.js +0 -15
  107. package/dist/info-icon.entry-85bf3fbc.cjs +0 -1
  108. package/dist/loading-icon.entry-8941102c.js +0 -15
  109. package/dist/loading-icon.entry-ae6c7b74.cjs +0 -1
  110. package/dist/nylas-booked-event-card_10.entry-a166d51d.js +0 -739
  111. package/dist/nylas-booked-event-card_10.entry-b181a874.cjs +0 -1
  112. package/dist/nylas-form-card.entry-7173dd4a.js +0 -56
  113. package/dist/nylas-form-card.entry-8fdbefa6.cjs +0 -1
  114. package/dist/nylas-open-hours-picker.entry-0f4f34f6.cjs +0 -1
  115. package/dist/nylas-open-hours-picker.entry-7e7060fe.js +0 -187
  116. package/dist/nylas-scheduler-config.entry-477d2171.cjs +0 -1
  117. package/dist/nylas-scheduler-editor.entry-1a95d313.cjs +0 -1
  118. package/dist/nylas-scheduler-editor.entry-c0479087.js +0 -140
  119. package/dist/nylas-scheduler.entry-69ecc3ae.cjs +0 -1
  120. package/dist/nylas-scheduler.entry-7084c148.js +0 -231
  121. package/dist/play-icon_2.entry-bc24fda7.js +0 -25
  122. package/dist/play-icon_2.entry-bd9f650e.cjs +0 -1
  123. package/dist/scheduler-store-81058220-a20698af.cjs +0 -1
  124. package/dist/warning-icon.entry-9631cd2e.js +0 -15
@@ -1,739 +0,0 @@
1
- import { r as f, c as d, h as t, H as b, g as G, F as q } from "./index-e834697b.js";
2
- import { R as h } from "./register-component-486ea571-1f151779.js";
3
- import { d as c, m as U, n as W, o as m, q as v } from "./utils-df5c1963-d9833bcb.js";
4
- import { T as y, L as O } from "./constants-d93cf397-dd67263d.js";
5
- import { t as B, d as X, c as u } from "./duration-bddc4a13-179ce826.js";
6
- import "react";
7
- import "react-dom";
8
- import "./_commonjsHelpers-57e89916-af061c86.js";
9
- const k = B(
10
- (e) => e.setHours(0, 0, 0, 0),
11
- (e, a) => e.setDate(e.getDate() + a),
12
- (e, a) => (a - e - (a.getTimezoneOffset() - e.getTimezoneOffset()) * X) / u,
13
- (e) => e.getDate() - 1
14
- );
15
- B((e) => {
16
- e.setUTCHours(0, 0, 0, 0);
17
- }, (e, a) => {
18
- e.setUTCDate(e.getUTCDate() + a);
19
- }, (e, a) => (a - e) / u, (e) => e.getUTCDate() - 1);
20
- B((e) => {
21
- e.setUTCHours(0, 0, 0, 0);
22
- }, (e, a) => {
23
- e.setUTCDate(e.getUTCDate() + a);
24
- }, (e, a) => (a - e) / u, (e) => Math.floor(e / u));
25
- const Y = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem}sp-theme{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family)}.event-card-wrapper{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;margin-bottom:2rem;width:424px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.event-card-wrapper{width:100%;border-radius:0px}}.calendar-icon{display:flex;align-items:center;justify-content:center;width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}.booked-event-header{margin:1.5rem 0;display:flex;align-items:center;flex-direction:column;font-size:1rem;font-weight:400}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.5rem;font-size:1.125rem;font-weight:600}.booking-date-time,.booking-participants{padding:0 1rem;margin-top:1.5rem;margin-left:3rem;display:flex;flex-direction:column;justify-content:space-between;align-self:flex-start;position:relative}.booking-date-time svg,.booking-participants svg{color:var(--nylas-base-700);position:absolute;left:-10px}.booking-date-time .block,.booking-participants .block{display:block}.booking-date-time h3,.booking-participants h3{color:var(--nylas-base-600);margin:0;font-size:1rem;font-weight:600;line-height:1.25rem;text-align:justify}.booking-date-time p,.booking-participants p{font-size:0.875rem;margin:0;font-weight:400;text-align:justify}.booking-participants{margin-bottom:1.5rem}.booked-event-timezone{display:flex;color:var(--nylas-base-600);margin-bottom:1.5rem;gap:4px;margin:2rem;align-items:center;align-self:flex-end}.footer{padding:0.5rem;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}sp-button{background-color:var(--nylas-base-0);color:var(--nylas-base-700);border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);font-size:1rem;padding-top:2px}sp-button.cancel{color:var(--nylas-error)}sp-button.cancel:hover{border-color:var(--nylas-error)}sp-button.cancel:active{color:var(--nylas-error-pressed);border-color:var(--nylas-error-pressed)}sp-button.reschedule:hover{border-color:var(--nylas-primary)}sp-button.reschedule:active{border-color:var(--nylas-base-600)}sp-divider{background-color:var(--nylas-base-200);height:1px}calendar-check-icon{display:flex;align-items:center;justify-content:center;height:100%}", J = Y;
26
- var K = function(e, a, n, r) {
27
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
28
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
29
- i = Reflect.decorate(e, a, n, r);
30
- else
31
- for (var l = e.length - 1; l >= 0; l--)
32
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
33
- return s > 3 && i && Object.defineProperty(a, n, i), i;
34
- }, x = function(e, a) {
35
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
36
- return Reflect.metadata(e, a);
37
- };
38
- const N = class {
39
- constructor(e) {
40
- f(this, e), this.cancelBookingButtonClicked = d(this, "cancelBookingButtonClicked", 7), this.rescheduleButtonClicked = d(this, "rescheduleButtonClicked", 7), this.rescheduleBookedEventError = d(this, "rescheduleBookedEventError", 7), this.handleCancelBookingButtonClicked = () => {
41
- this.cancelBookingButtonClicked.emit({ bookingId: this.eventInfo.booking_id });
42
- }, this.handleRescheduleButtonClicked = () => {
43
- const a = (n) => {
44
- this.rescheduleBookedEventError.emit(n);
45
- };
46
- this.rescheduleButtonClicked.emit({ bookingId: this.eventInfo.booking_id, errorHandler: a });
47
- }, this.getOrganizer = (a) => a == null ? void 0 : a.organizer, this.getPaticipantType = (a) => {
48
- switch (a) {
49
- case "host":
50
- return "Host";
51
- case "you":
52
- return "You";
53
- default:
54
- return "";
55
- }
56
- }, this.eventInfo = void 0, this.bookingFlow = "booking", this.bookingInfo = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedTimeslot = void 0;
57
- }
58
- connectedCallback() {
59
- }
60
- disconnectedCallback() {
61
- }
62
- async componentWillLoad() {
63
- c("[nylas-booked-event-card] Component will load");
64
- }
65
- async componentDidLoad() {
66
- c("[nylas-booked-event-card] Component did load");
67
- }
68
- render() {
69
- var e, a, n, r, s, i;
70
- return t(b, { key: "e0e73bc62d3f240b7e6ecd7db1933c035a43b15f", part: "nbec" }, t("sp-theme", { key: "d8600bf909c87e5a5ae6cb92d5607dd85dd07b70", theme: "spectrum", color: "dark", scale: "medium" }, t("div", { key: "998d7114137c7dbb0fad4bc24cd632024798fe4f", class: "booked-event-timezone" }, t("globe-icon", { key: "8017612e62ccdf4bc6686760120b8c6f462244f7" }), y[this.selectedTimezone]), t("div", { key: "ca5db5bf0772348540b37badb1f0938d337cb81c", class: "event-card-wrapper", part: "nbec__card" }, t("div", { key: "040882aa2cb3a2af3959a5d2904a29bc04b1fa0d", class: "calendar-icon" }, t("calendar-check-icon", { key: "90e2d4839f2715439e4311bcf94afb285b6c943f" })), t("div", { key: "8dd0f8e5f59f710da423f6fe0b303ff162938a1d", class: "booked-event-header" }, t("h2", { key: "b349e3dda86f9bc316162642ac865541e08b57f1", slot: "card-title", part: "nbec__title" }, "Booking ", this.bookingFlow === "rescheduling" ? "rescheduled" : "confirmed", "!"), t("div", { key: "03bcc01d909684316b5ca7379ab41a109df778f0", part: "nbec__description" }, ((e = this.getOrganizer(this.eventInfo)) == null ? void 0 : e.name) || ((a = this.getOrganizer(this.eventInfo)) == null ? void 0 : a.email), " & ", ((r = (n = this.bookingInfo) == null ? void 0 : n.primaryParticipant) == null ? void 0 : r.name) || ((i = (s = this.bookingInfo) == null ? void 0 : s.primaryParticipant) == null ? void 0 : i.email))), t("sp-divider", { key: "46bf41f0e376c32fad4dcaa3ed07d294cfec4c4e" }), t("div", { key: "017ca0d77e7357d1c7e51c18dc0f7e325dfbb5c1", class: "booking-date-time" }, t("checkmark-circle-icon", { key: "b537dec0b192fc8cc0620f73c88185d8f4ad244d" }), t("h3", { key: "ab8710c77707b692e79a787df9b3b569099ff584" }, "Booking date and time"), t("p", { key: "417f2abc89b8cfa71b5a43e30a507af1c98f4206" }, new Date(this.selectedTimeslot.start_time).toLocaleDateString(void 0, { dateStyle: "full" }), " ", t("br", { key: "11f68dd418cd0e19ff27795ad9fc52ea1ae77599" }), new Date(this.selectedTimeslot.start_time).toLocaleTimeString(void 0, { timeStyle: "short" }), " -", " ", new Date(this.selectedTimeslot.end_time).toLocaleTimeString(void 0, { timeStyle: "short" }))), t("div", { key: "2e7380ef54ce27d4ed1995e3bb4f29181f249d74", class: "booking-participants" }), t("sp-divider", { key: "9f545f93b71f00580dbb200ae6acce506827afdd" }), t("div", { key: "bf5172ec08d02c17d080c362f871541d37d1e2a2", class: "footer" }, t("sp-button", { key: "bf9799fe84d331014995f3ff53454136fad8ad42", variant: "secondary", treatment: "outline", size: "xl", class: "cancel", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, "Cancel booking"), t("sp-button", { key: "665a9f9a7b0d81718b72a0b5e011c2e358cc246b", variant: "secondary", treatment: "outline", size: "xl", class: "reschedule", onClick: this.handleRescheduleButtonClicked, part: "nbec__button-outline nbec__reschedule-cta" }, "Reschedule")))));
71
- }
72
- };
73
- K([
74
- h({
75
- name: "nylas-booked-event-card",
76
- stateToProps: /* @__PURE__ */ new Map([
77
- ["scheduler.bookingFlow", "bookingFlow"],
78
- ["scheduler.bookingInfo", "bookingInfo"],
79
- ["scheduler.selectedTimezone", "selectedTimezone"],
80
- ["scheduler.selectedTimeslot", "selectedTimeslot"]
81
- ]),
82
- eventToProps: {
83
- cancelBookingButtonClicked: async (e, a) => {
84
- a.scheduler.setCancel(e.detail.bookingId);
85
- },
86
- rescheduleButtonClicked: async (e, a) => {
87
- const n = await a.scheduler.setReschedule(e.detail.bookingId), { errorHandler: r } = e.detail;
88
- r && (!n || "error" in n) && r(n);
89
- }
90
- },
91
- fireRegisterEvent: !0
92
- }),
93
- x("design:type", Function),
94
- x("design:paramtypes", []),
95
- x("design:returntype", void 0)
96
- ], N.prototype, "render", null);
97
- N.style = J;
98
- const Q = ":host{display:block;height:100%;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem}sp-theme{height:100%}.nylas-booking-form{width:100%;padding:1.5rem;box-sizing:border-box;height:450px;overflow-y:auto;height:100%}form{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center}sp-textfield{--spectrum-corner-radius-100:var(--nylas-border-radius-2x);--spectrum-textfield-border-color:var(--nylas-base-300);position:relative;width:100%;height:48px;margin-bottom:16px;color:var(--nylas-base-500)}.cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:0.5rem;padding:0.5rem;box-sizing:border-box;border-top:1px solid var(--nylas-base-100)}@media screen and (max-width: 768px){.cta{flex-direction:column-reverse}}sp-button{background-color:transparent;color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);--button-width:50%}@media screen and (max-width: 768px){sp-button{--button-width:100%}}sp-button:hover{background-color:var(--nylas-base-100);color:var(--nylas-primary);border-radius:var(--nylas-border-radius-2x)}sp-button:active{background-color:var(--nylas-base-200);color:var(--nylas-base-800)}sp-button.back{width:var(--button-width);background-color:transparent;color:var(--nylas-base-600);border:1px solid var(--nylas-base-300)}sp-button.back:hover{border-color:var(--nylas-primary)}sp-button.back:active{border:2px solid var(--nylas-base-800)}sp-button.book{width:var(--button-width);background-color:var(--nylas-primary);color:var(--nylas-base-0)}sp-button.book:hover{background-color:var(--nylas-base-600)}sp-button.book:active{background-color:var(--nylas-base-800)}.input-wrapper{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:1rem}.input-wrapper .help-text{margin:0;color:var(--nylas-error)}.button-wrapper{width:100%;align-items:flex-start;height:max-content;position:relative}sp-infield-button{--spectrum-infield-button-background-color:transparent;--spectrum-infield-button-background-color-hover:transparent;--spectrum-infield-button-background-color-active:transparent;--spectrum-infield-button-border-color:transparent;--spectrum-infield-button-border-width:1px;--spectrum-infield-button-border-radius:0;color:var(--nylas-base-600);background:transparent;border:1px solid var(--nylas-base-300);border-radius:0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x) 0;height:52px;width:52px;display:flex;position:absolute;right:0;align-items:center;justify-content:center;cursor:pointer}sp-infield-button sp-icon-cross300{color:var(--nylas-base-600)}sp-infield-button.error{border-width:2px;border-color:var(--nylas-error)}input[type=text],input[type=email]{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%}input[type=text].error,input[type=email].error{color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=text].guest-email,input[type=email].guest-email{color:var(--nylas-base-900);padding-right:52px}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}", ee = Q;
99
- var ae = function(e, a, n, r) {
100
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
101
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
102
- i = Reflect.decorate(e, a, n, r);
103
- else
104
- for (var l = e.length - 1; l >= 0; l--)
105
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
106
- return s > 3 && i && Object.defineProperty(a, n, i), i;
107
- }, C = function(e, a) {
108
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
109
- return Reflect.metadata(e, a);
110
- };
111
- const w = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, F = class {
112
- constructor(e) {
113
- f(this, e), this.nameChanged = d(this, "nameChanged", 7), this.emailChanged = d(this, "emailChanged", 7), this.backButtonClicked = d(this, "backButtonClicked", 7), this.detailsConfirmed = d(this, "detailsConfirmed", 7), this.bookingFormError = d(this, "bookingFormError", 7), this.handleGuestChange = (a, n) => {
114
- this.resetGuestEmailError(a);
115
- const r = [...this.guestEmails];
116
- r[a] = n, this.guestEmails = [...r];
117
- }, this.handleGuestBlur = (a, n) => {
118
- if (this.resetGuestEmailError(a), n === "") {
119
- this.guestEmailErrors[a] = "Email is required";
120
- return;
121
- }
122
- if (!w.test(n)) {
123
- this.guestEmailErrors[a] = "Enter a valid email address";
124
- return;
125
- }
126
- this.handleGuestChange(a, n);
127
- }, this.addGuestButtonClickedHandler = () => {
128
- this.guestEmails = [...this.guestEmails, ""];
129
- }, this.removeGuestButtonClickHandler = (a, n) => {
130
- a.preventDefault(), this.resetGuestEmailError(n);
131
- const r = [...this.guestEmails];
132
- r.splice(n, 1), this.guestEmails = [...r];
133
- }, this.handleBackButtonClicked = () => {
134
- this.backButtonClicked.emit();
135
- }, this.bookButtonClickedHandler = async (a) => {
136
- var i, o, l, R, S, j, I;
137
- a.preventDefault(), c("nylas-booking-form", "bookButtonClickedHandler", this.bookingInfo);
138
- const n = this.name || ((o = (i = this.bookingInfo) == null ? void 0 : i.primaryParticipant) == null ? void 0 : o.name), r = this.email || ((R = (l = this.bookingInfo) == null ? void 0 : l.primaryParticipant) == null ? void 0 : R.email);
139
- if (!n || n === "") {
140
- this.isNameValid = !1, this.validationError.name = "Name is required", this.bookingFormError.emit({
141
- title: "Booking form error",
142
- description: "Name is required"
143
- });
144
- return;
145
- }
146
- if (!r || r === "") {
147
- this.isEmailValid = !1, this.validationError.email = "Email is required", this.bookingFormError.emit({
148
- title: "Booking form error",
149
- description: "Email is required"
150
- });
151
- return;
152
- }
153
- if (!w.test(r)) {
154
- this.isEmailValid = !1, this.validationError.email = "Enter a valid email address", this.bookingFormError.emit({
155
- title: "Booking form error",
156
- description: "Invalid email"
157
- });
158
- return;
159
- }
160
- let s = [];
161
- if (this.guestEmails.length > 0) {
162
- let g = !1;
163
- if (this.guestEmails.forEach((p, P) => {
164
- p === "" ? (g = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [P]: "Email is required" }) : w.test(p) || (g = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [P]: "Enter a valid email address" });
165
- }), g) {
166
- this.bookingFormError.emit({
167
- title: "Booking form error",
168
- description: "Invalid guest email"
169
- });
170
- return;
171
- }
172
- s = this.guestEmails.map((p) => ({ name: "", email: p.trim() }));
173
- } else
174
- (S = this.bookingInfo) != null && S.guests && (s = (j = this.bookingInfo) == null ? void 0 : j.guests);
175
- this.detailsConfirmed.emit({
176
- primaryParticipant: {
177
- name: n,
178
- email: r
179
- },
180
- guests: s,
181
- additionalFields: {
182
- ...(I = this.bookingInfo) == null ? void 0 : I.additionalFields
183
- }
184
- });
185
- }, this.isLoading = void 0, this.bookingInfo = void 0, this.eventInfo = void 0, this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.validationError = { name: "", email: "" };
186
- }
187
- connectedCallback() {
188
- }
189
- disconnectedCallback() {
190
- }
191
- componentWillLoad() {
192
- var e, a;
193
- c("nylas-booking-form", "componentWillLoad", this.bookingInfo), this.bookingInfo && (this.name = (e = this.bookingInfo.primaryParticipant) == null ? void 0 : e.name, this.email = (a = this.bookingInfo.primaryParticipant) == null ? void 0 : a.email);
194
- }
195
- bookingInfoChangedHandler(e) {
196
- e && e.primaryParticipant && (this.name = e.primaryParticipant.name, this.email = e.primaryParticipant.email);
197
- }
198
- changeName(e) {
199
- this.isNameValid = !0, this.validationError.name = "", this.name = e, this.nameChanged.emit(e);
200
- }
201
- changeEmail(e) {
202
- this.isEmailValid = !0, this.validationError.email = "", this.email = e, this.emailChanged.emit(e);
203
- }
204
- resetGuestEmailError(e) {
205
- const a = { ...this.guestEmailErrors };
206
- delete a[e], this.guestEmailErrors = { ...a };
207
- }
208
- render() {
209
- return t(b, { key: "94baa2aaf1e25c94bf91c411fe9d3a2871be2065" }, t("sp-theme", { key: "c85ff5323ca30ae4150950d5f34193499b244f6f", theme: "spectrum", color: "light", scale: "medium" }, t("form", { key: "3ad41c7dcdb0258c741fb07336530d8fbd2782b6", onSubmit: (e) => this.bookButtonClickedHandler(e) }, t("div", { key: "a190806c67390a60d6fa69d9598a07b99de6dd13", class: "nylas-booking-form" }, t("slot", { key: "18b1f65aa9e43f11f1d2b2da83ecbb4eb23ffd44", name: "custom-booking-form" }, t("div", { key: "2d8838572f02e3e17b88454f520a04071979bf87", class: "input-wrapper" }, t("label", { key: "3ab43a5cdf2b477b3219e6fb494523f97486b643", htmlFor: "name", class: { "input-label": !0, error: !this.isNameValid }, part: "nbf__input-label" }, "Name ", t("span", { key: "154302c12f9c727f294e32ed5622e83a960e3ce0", class: "required" }, "*")), t("input", { key: "125cae047af261db3a6adf8f3999136692c3f0a5", id: "name", type: "text", placeholder: "Enter your name", value: this.name, class: {
210
- input: !0,
211
- error: !this.isNameValid
212
- }, part: "nbf__input-textfield", onInput: (e) => {
213
- var a;
214
- return this.changeName((a = e.target) == null ? void 0 : a.value);
215
- } }), t("p", { key: "5b7ef8442c9a72a0a88b3d1052f7e10e6a4abd38", class: "help-text" }, this.validationError.name)), t("div", { key: "f3a7a5b99df86edeca30302298966a5fd8ed99d3", class: "input-wrapper" }, t("label", { key: "7cb3be636b971a859f83b07a5c398897ab015a3f", htmlFor: "email", class: { "input-label": !0, error: !this.isEmailValid }, part: "nbf__input-label" }, "Email ", t("span", { key: "4c4163d421c53997ecfc6dc03a66f3b473e5a39b", class: "required" }, "*")), t("input", { key: "303619832f7b9e440cf1a3d4a5fb405d436d2c68", id: "email", type: "email", placeholder: "Enter your email", value: this.email, class: {
216
- input: !0,
217
- error: !this.isEmailValid
218
- }, part: "nbf__input-textfield", onInput: (e) => {
219
- var a;
220
- return this.changeEmail((a = e.target) == null ? void 0 : a.value);
221
- } }), t("p", { key: "e1abcd9a598d1a506eda2c57a511c5f7ba2346d6", class: "help-text" }, this.validationError.email)))), t("div", { key: "4fad640dec3082e39b5c4f5a21224d4ee4d8b1cd", class: "cta" }, t("sp-button", { key: "f806f7eefe7d6f134c82efaf17fc2f6cda823d97", treatment: "outline", variant: "secondary", class: "back", part: "nbf__button-outline", size: "xl", onClick: this.handleBackButtonClicked }, "Back"), t("sp-button", { key: "94a4f3155597d96cd795cd60e618dfcf88fb9206", variant: "primary", class: "book", part: "nbf__button-primary", type: "submit", size: "xl" }, this.isLoading && t("loading-icon", { slot: "icon" }), "Book now")))));
222
- }
223
- get host() {
224
- return G(this);
225
- }
226
- static get watchers() {
227
- return {
228
- bookingInfo: ["bookingInfoChangedHandler"]
229
- };
230
- }
231
- };
232
- ae([
233
- h({
234
- name: "nylas-booking-form",
235
- stateToProps: /* @__PURE__ */ new Map([
236
- ["scheduler.isLoading", "isLoading"],
237
- ["scheduler.bookingInfo", "bookingInfo"],
238
- ["scheduler.eventInfo", "eventInfo"]
239
- ]),
240
- eventToProps: {
241
- backButtonClicked: async (e, a) => {
242
- a.scheduler.toggleAdditionalData(!1);
243
- },
244
- nameChanged: async (e, a) => {
245
- a.scheduler.setParticipantName(e.detail);
246
- },
247
- emailChanged: async (e, a) => {
248
- a.scheduler.setParticipantEmail(e.detail);
249
- }
250
- },
251
- fireRegisterEvent: !0
252
- }),
253
- C("design:type", Function),
254
- C("design:paramtypes", []),
255
- C("design:returntype", void 0)
256
- ], F.prototype, "render", null);
257
- F.style = ee;
258
- const te = ":host{display:block;width:400px;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem}sp-theme{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family)}.nylas-cancel-booking-form{display:flex;align-items:center;flex-direction:column;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}.nylas-cancel-booking-form__title{font-size:18px;font-weight:600;margin-bottom:0}.nylas-cancel-booking-form__description{font-size:1rem;font-style:normal;font-weight:400;line-height:140%;color:var(--nylas-base-600)}.nylas-cancel-booking-form__calendar-icon{width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}sp-button{background-color:var(--nylas-base-0);color:var(--nylas-base-700);border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);font-size:1rem;padding:0.25rem;width:100%}sp-button.cancel{margin-top:1.25rem;background-color:var(--nylas-primary);color:var(--nylas-base-0)}sp-button.cancel:hover{background-color:var(--nylas-base-600)}sp-button.cancel:active{background-color:var(--nylas-base-800)}sp-button.back{margin-top:0.5rem}sp-button.back:hover{border-color:var(--nylas-primary)}sp-button.back:active{border-color:var(--nylas-base-600)}sp-field-label{margin-top:1rem;display:flex}sp-field-label.error{color:var(--nylas-error)}sp-field-label span.required{color:var(--nylas-error)}sp-textfield{--spectrum-textfield-border-color:var(--nylas-base-300);--spectrum-textfield-icon-color-invalid:var(--nylas-error);position:relative;width:100%;height:48px;margin-bottom:16px;background-color:var(--nylas-base-0);color:var(--nylas-base-500)}sp-textfield.error{--spectrum-textfield-border-color:var(--nylas-error)}sp-help-text{margin:0.25rem 0 1rem 0;color:var(--nylas-error)}", ne = te;
259
- var ie = function(e, a, n, r) {
260
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
261
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
262
- i = Reflect.decorate(e, a, n, r);
263
- else
264
- for (var l = e.length - 1; l >= 0; l--)
265
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
266
- return s > 3 && i && Object.defineProperty(a, n, i), i;
267
- }, _ = function(e, a) {
268
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
269
- return Reflect.metadata(e, a);
270
- };
271
- const M = class {
272
- constructor(e) {
273
- f(this, e), this.goBackButtonClicked = d(this, "goBackButtonClicked", 7), this.cancelBookingFormSubmitted = d(this, "cancelBookingFormSubmitted", 7), this.cancelBookedEventError = d(this, "cancelBookedEventError", 7), this.cancelBookingFormError = d(this, "cancelBookingFormError", 7), this.handleGoBackClicked = () => {
274
- this.goBackButtonClicked.emit();
275
- }, this.handleSubmitCancelBooking = (a) => {
276
- if (a.preventDefault(), !this.cancellationReason) {
277
- this.cancellationError = "Please provide a reason for cancellation.", this.cancelBookingFormError.emit({ title: "Cancel booking form error", description: "Please provide a reason for cancellation." });
278
- return;
279
- }
280
- c(`[nylas-cancel-booking-form] Cancel booking form submitted with reason: ${this.cancellationReason}`);
281
- const n = (r) => {
282
- this.cancelBookedEventError.emit(r);
283
- };
284
- this.cancelBookingFormSubmitted.emit({ bookingId: this.cancelBookingId, reason: this.cancellationReason, errorHandler: n });
285
- }, this.handleOnChangeCancellationReason = (a) => {
286
- this.cancellationError = "", this.cancellationReason = a.target.value;
287
- }, this.cancelBookingId = void 0, this.cancellationReason = "", this.cancellationError = "";
288
- }
289
- connectedCallback() {
290
- c("[nylas-cancel-booking-form] Component connected");
291
- }
292
- async componentWillLoad() {
293
- c("[nylas-cancel-booking-form] Component will load");
294
- }
295
- async componentDidLoad() {
296
- c("[nylas-cancel-booking-form] Component did load");
297
- }
298
- disconnectedCallback() {
299
- c("[nylas-cancel-booking-form] Component disconnected");
300
- }
301
- render() {
302
- return t(b, { key: "0e9fccac85b7a0f2300525a15135fab01a3eaca4", part: "ncec" }, t("sp-theme", { key: "4a684e162059eff81911019f55e9c8ce9a033a2d", theme: "spectrum", scale: "medium" }, t("div", { key: "6d4fc8802fe7923e244f2975af85d492bdd798bb", class: "nylas-cancel-booking-form", part: "ncec__card" }, t("div", { key: "7f1285ebd53db49c8bb144d9b2638dca4183a623", class: "nylas-cancel-booking-form__calendar-icon", part: "ncec__icon" }, t("calendar-cancel-icon", { key: "e2af9158dcdb8c38a93fbaaa86c431ebf215c225" })), t("h3", { key: "73a8070a23d96e8f09811ebae43efebfcb544006", class: "nylas-cancel-booking-form__title", part: "ncec__title" }, "Cancel booking?"), t("div", { key: "fac9c2504f7c910143eb119167ac96cf2856fe3b", class: "nylas-cancel-booking-form__description", part: "ncec__description" }, "Your current timeslot will become available to others."), t("form", { key: "6caab19cff83a16c58c846ce8338e02873792f9f", onSubmit: this.handleSubmitCancelBooking }, t("sp-field-label", { key: "d4aef6538c17eca6de6ea909d01e3c63b30a3df7", for: "cancel-reason", class: this.cancellationError ? "error" : "" }, "Reason for cancellation ", t("span", { key: "bf8eb562d3be457c53619c5a1efe901eeca4749b", class: "required" }, "*")), t("sp-textfield", { key: "a3cec5b35ee35c73bfb69322dbf951a95dc8c481", id: "cancel-reason", class: this.cancellationError ? "error" : "", part: "ncec__reason-textarea", multiline: !0, value: this.cancellationReason, onInput: this.handleOnChangeCancellationReason, onFocus: this.handleOnChangeCancellationReason, invalid: !!this.cancellationError }, t("sp-help-text", { key: "444b59302f6b7f442b0febdd7775968f01584839", slot: "negative-help-text" }, this.cancellationError)), t("sp-button", { key: "e1e813f99f4625d6621a9bf5a9e5ce90c82c8ef5", variant: "primary", class: "cancel", type: "submit", part: "ncec__button-cta" }, "Cancel booking"), t("sp-button", { key: "89fad33236a6f0498e474197e50848bf9b215d53", variant: "secondary", class: "back", treatment: "outline", part: "ncec__button-outline", onClick: this.handleGoBackClicked }, "Go back")))));
303
- }
304
- };
305
- ie([
306
- h({
307
- name: "nylas-cancel-booking-form",
308
- eventToProps: {
309
- cancelBookingFormSubmitted: async (e, a) => {
310
- const n = await a.scheduler.cancelBooking(e.detail.bookingId), { errorHandler: r } = e.detail;
311
- r && (!n || "error" in n) && r(n);
312
- }
313
- },
314
- fireRegisterEvent: !0
315
- }),
316
- _("design:type", Function),
317
- _("design:paramtypes", []),
318
- _("design:returntype", void 0)
319
- ], M.prototype, "render", null);
320
- M.style = ne;
321
- const re = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem}sp-theme{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family)}.nylas-cancelled-event-card{display:flex;align-items:center;flex-direction:column;width:400px;background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.nylas-cancelled-event-card{width:inherit}}.nylas-cancelled-event-card__title{font-size:18px;font-weight:600}.nylas-cancelled-event-description{font-size:16px;font-weight:500}.nylas-cancelled-event-card__calendar-icon{width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}.nylas-cancelled-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-cancel-icon{display:flex;align-items:center;justify-content:center;height:100%}sp-button{background-color:var(--nylas-base-0);color:var(--nylas-base-700);border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);font-size:1rem;padding:0.25rem;width:100%}sp-button:hover{border-color:var(--nylas-primary)}sp-button:active{border-color:var(--nylas-base-600)}", se = re;
322
- var oe = function(e, a, n, r) {
323
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
324
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
325
- i = Reflect.decorate(e, a, n, r);
326
- else
327
- for (var l = e.length - 1; l >= 0; l--)
328
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
329
- return s > 3 && i && Object.defineProperty(a, n, i), i;
330
- }, E = function(e, a) {
331
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
332
- return Reflect.metadata(e, a);
333
- };
334
- const $ = class {
335
- constructor(e) {
336
- f(this, e), this.closeCancelEventCardClicked = d(this, "closeCancelEventCardClicked", 7), this.handleCloseClicked = () => {
337
- this.closeCancelEventCardClicked.emit();
338
- }, this.cancelledEvent = void 0;
339
- }
340
- connectedCallback() {
341
- c("[nylas-cancelled-event-card] Component connected");
342
- }
343
- async componentWillLoad() {
344
- c("[nylas-cancelled-event-card] Component will load");
345
- }
346
- async componentDidLoad() {
347
- c("[nylas-cancelled-event-card] Component did load");
348
- }
349
- disconnectedCallback() {
350
- c("[nylas-cancelled-event-card] Component disconnected");
351
- }
352
- render() {
353
- var e, a;
354
- return t(b, { key: "ecbf75b5aca7eec428549b8015da4aa2679697f3", part: "ncec" }, t("sp-theme", { key: "2a4c4625b2d8ed357ada3d398bb38e3fd1882517", theme: "spectrum", color: "dark", scale: "medium" }, t("div", { key: "68136d218d2ea9c42b3f6f4d5bf4bd3b7d8ddd96", class: "nylas-cancelled-event-card", part: "ncec__card" }, t("div", { key: "bfabf4fe2f15c8b5e3d14cff7b917e5c08ca060e", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, t("calendar-cancel-icon", { key: "7ef598d1398c172ee285a5c804b7df59708078bf" })), t("h3", { key: "5bb7aa4364f09fef8eb9baf17186a1fdc51dc7b6", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, "Your booking has been cancelled successfully!"), t("div", { key: "7810dccc644ada90131eb4adb5c9ca289ac7669c", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, "A cancellation email has been sent to ", (a = (e = this.cancelledEvent) == null ? void 0 : e.organizer) == null ? void 0 : a.email), t("div", { key: "695b8af2ff7c4569e6d6e5431f9b4b53835e3598", class: "nylas-cancelled-event-card__cta" }, t("sp-button", { key: "5ad7f6340cf0652eb679485fb2c1468fa003d9c0", variant: "secondary", treatment: "outline", part: "ncec__button-outline", onClick: this.handleCloseClicked }, "Close")))));
355
- }
356
- };
357
- oe([
358
- h({
359
- name: "nylas-cancelled-event-card",
360
- eventToProps: {},
361
- fireRegisterEvent: !0
362
- }),
363
- E("design:type", Function),
364
- E("design:paramtypes", []),
365
- E("design:returntype", void 0)
366
- ], $.prototype, "render", null);
367
- $.style = se;
368
- const le = ':host{display:block;min-height:444px;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem}.header{margin:0 0.5rem;margin-bottom:1rem}.header h2{font-size:1.3rem;font-weight:400;line-height:1rem;margin-bottom:0.625rem;color:var(--nylas-base-800)}.header h2 strong{font-weight:600}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.dates{display:grid;justify-items:center;grid-template-columns:repeat(7, 1fr);gap:0.5rem;margin-bottom:1rem}.dates .date{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:3rem;width:3rem;min-width:2rem;min-height:2rem;cursor:pointer;border-radius:var(--nylas-border-radius-2x);font-size:min(max(14px, 3vw), 16px);font-weight:600;font-family:inherit;color:var(--nylas-base-text);background-color:var(--nylas-base-100);cursor:pointer;border:none}@media screen and (max-width: 768px){.dates .date{width:max(min(1rem, 7vw), 75%);height:2.5rem;min-width:2rem}}.dates .date:hover:not(:disabled){box-shadow:0 0 0 2px var(--nylas-base-500) inset}.dates .date.date.current-month{color:var(--nylas-base-800)}.dates .date.date.selected{background-color:var(--nylas-primary);color:var(--nylas-base-0);font-weight:800}.dates .date.date.day-skeleton{color:var(--nylas-base-300)}.dates .date:disabled{color:var(--nylas-base-300);background-color:transparent;font-weight:400;cursor:not-allowed}.dates .day{font-size:min(max(14px, 3vw), 0.75rem);color:var(--nylas-base-800);font-weight:600;letter-spacing:0.5px}.dates .date.day-skeleton{width:3rem;height:3rem;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out;background-color:var(--nylas-base-50)}@media screen and (max-width: 768px){.dates .date.day-skeleton{width:max(min(1rem, 7vw), 75%);min-width:2rem;font-size:0.825rem}}.dates .date.current-day::after{content:"";position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background-color:var(--nylas-base-500)}.dates .date.current-day.selected::after{background-color:var(--nylas-base-100)}.pagination{display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-width:92px}.pagination .chevron-right{transform:rotate(180deg)}.pagination .button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);background-color:transparent;color:var(--nylas-base-800);cursor:pointer;border:none}.pagination .button:hover{background-color:var(--nylas-base-50)}.pagination .button:active{background-color:var(--nylas-base-100)}.pagination .button:disabled{background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.flex-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:var(--nylas-base-500)}', ce = le;
369
- var de = function(e, a, n, r) {
370
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
371
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
372
- i = Reflect.decorate(e, a, n, r);
373
- else
374
- for (var l = e.length - 1; l >= 0; l--)
375
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
376
- return s > 3 && i && Object.defineProperty(a, n, i), i;
377
- }, T = function(e, a) {
378
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
379
- return Reflect.metadata(e, a);
380
- };
381
- const H = class {
382
- constructor(e) {
383
- f(this, e), this.dateSelected = d(this, "dateSelected", 7), this.monthChanged = d(this, "monthChanged", 7), this.selectableDates = void 0, this.selectedDate = void 0, this.isLoading = void 0, this.month = this.selectedDate || /* @__PURE__ */ new Date(), this.dates = this.getDates();
384
- }
385
- connectedCallback() {
386
- }
387
- disconnectedCallback() {
388
- }
389
- componentWillLoad() {
390
- }
391
- getDates() {
392
- const e = U(this.month), a = W(this.month);
393
- return k.range(k.offset(a, -a.getDay()), k.offset(e, 7 - e.getDay()));
394
- }
395
- selectDate(e) {
396
- this.dateSelected.emit(e);
397
- }
398
- changeMonth(e) {
399
- this.month = new Date(this.month.getFullYear(), this.month.getMonth() + e, 1), this.dates = this.getDates(), this.monthChanged.emit(this.month), this.selectDate();
400
- }
401
- isSelected(e, a, n) {
402
- return e && a && m(e, a) && n && (n == null ? void 0 : n.length) > 0;
403
- }
404
- isDisabled(e, a) {
405
- return e && (a == null ? void 0 : a.find((n) => m(n, e))) === void 0;
406
- }
407
- render() {
408
- var e, a;
409
- return t(b, { key: "f4a11a075996f60a8b34cd9ee7d01b27a0bab8a9", part: "ndp" }, t("div", { key: "ec67f98758d4a87420294d368251fcfb4b184e44", class: "header flex-row" }, t("h2", { key: "47050bfeb4e498cbb5a133326ca3cf0a8d22d1de", part: "ndp__month-header" }, t("strong", { key: "ad390ae54ab4c6be98890a9310c49c493a2ba84c" }, this.month.toLocaleDateString(void 0, { month: "long" })), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), t("div", { key: "f56e85e5b052709f6325e906bbd82ab4476a9c13", class: "pagination" }, t("button", { key: "aaa9ab57dbed6ecfd8acf54d76b1f881406b2c50", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: !((e = this.selectableDates) != null && e.length) || this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, t("chevron-icon", { key: "d9410e70414a3db77aef482f2b5e409538a835ba" })), t("button", { key: "eace404053a978f05bed7295ab7a341f3e03b734", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: !((a = this.selectableDates) != null && a.length), part: "ndp__month-button" }, t("chevron-icon", { key: "c4cf484f2ffff472493b70bf330e59c2cb03bfaf" })))), t("div", { key: "6429d7c3b7328bf6a337aa64d5bcfca339c18ff4", class: "dates" }, ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map((n) => t("div", { class: "day", part: "ndp__day" }, n)), this.dates.map((n, r) => {
410
- var i;
411
- const s = this.isDisabled(n, this.selectableDates);
412
- return this.isLoading ? t("button", { disabled: !0, class: {
413
- "date day-skeleton": !0,
414
- "current-month": v(n, this.month)
415
- }, style: { animationDelay: `${r * 20}ms` }, part: "ndp__date" }, n.getDate()) : t("button", { class: {
416
- date: !0,
417
- selected: !!(this.selectedDate && m(n, this.selectedDate) && this.selectableDates && ((i = this.selectableDates) == null ? void 0 : i.length) > 0),
418
- "current-day": m(n, /* @__PURE__ */ new Date()),
419
- "current-month": v(n, this.month)
420
- }, "aria-lang": n.toLocaleDateString(void 0, { dateStyle: "full" }), disabled: s, onClick: () => this.selectDate(n), part: `ndp__date ${this.isSelected(n, this.selectedDate, this.selectableDates) ? "ndp__date--selected" : ""} ${m(n, /* @__PURE__ */ new Date()) ? "ndp__date--current-day" : ""} ${v(n, this.month) ? "ndp__date--current-month" : ""}` }, n.getDate());
421
- })));
422
- }
423
- };
424
- de([
425
- h({
426
- name: "nylas-date-picker",
427
- stateToProps: /* @__PURE__ */ new Map([
428
- ["scheduler.selectableDates", "selectableDates"],
429
- ["scheduler.selectedDate", "selectedDate"],
430
- ["scheduler.isLoading", "isLoading"]
431
- ]),
432
- eventToProps: {
433
- dateSelected: async (e, a) => {
434
- a.scheduler.selectDate(e.detail);
435
- }
436
- },
437
- fireRegisterEvent: !0
438
- }),
439
- T("design:type", Function),
440
- T("design:paramtypes", []),
441
- T("design:returntype", void 0)
442
- ], H.prototype, "render", null);
443
- H.style = ce;
444
- const be = ":host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem}.nylas-locale-switch{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:4rem;border-left:none;border-right:none;color:var(--nylas-base-50);font-size:min(max(14px, 3vw), 16px);font-weight:600;cursor:pointer;transition:all 0.2s ease-in-out;font-family:inherit}.select-wrapper{display:flex;align-items:center;gap:0.5rem}select{border:none;background:transparent;cursor:pointer;outline:none;background-color:transparent;margin:0 0 1px;padding:4px;vertical-align:middle}select#timezone{width:140px}select#language{width:80px}", fe = be;
445
- var me = function(e, a, n, r) {
446
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
447
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
448
- i = Reflect.decorate(e, a, n, r);
449
- else
450
- for (var l = e.length - 1; l >= 0; l--)
451
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
452
- return s > 3 && i && Object.defineProperty(a, n, i), i;
453
- }, D = function(e, a) {
454
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
455
- return Reflect.metadata(e, a);
456
- };
457
- const Z = class {
458
- constructor(e) {
459
- f(this, e), this.timezoneChanged = d(this, "timezoneChanged", 7), this.languageChanged = d(this, "languageChanged", 7), this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = navigator.language;
460
- }
461
- connectedCallback() {
462
- }
463
- disconnectedCallback() {
464
- }
465
- componentWillLoad() {
466
- }
467
- changeTimezone(e) {
468
- this.selectedTimezone = e, this.timezoneChanged.emit(e);
469
- }
470
- changeLanguage(e) {
471
- this.selectedLanguage = e, this.languageChanged.emit(e);
472
- }
473
- selectedOptionChangedHandler(e) {
474
- const { name: a, value: n } = e.detail;
475
- a === "timezone" ? this.changeTimezone(n) : a === "language" && this.changeLanguage(n);
476
- }
477
- render() {
478
- const e = Object.keys(y).map((n) => ({
479
- label: y[n],
480
- value: n
481
- })), a = Object.keys(O).map((n) => ({
482
- label: O[n],
483
- value: n
484
- }));
485
- return t(b, { key: "8db90ec733c2f53a23b45e8f54ee8767c7118386" }, t("div", { key: "defe89d17ea0731c8e934305171b16aecd544d06", class: "nylas-locale-switch" }, t("div", { key: "2bee77860a20617a88856d0f896d8b45e0e096d7", class: {
486
- "select-wrapper": !0,
487
- timezone: !0
488
- } }, t("select-dropdown", { key: "dfd40d95869108a3db896c2a1d6551f12971520a", name: "timezone", options: e, defaultSelectedOption: e.find((n) => n.value == this.selectedTimezone) }, t("span", { key: "5100844cfd2c7f7db97030da78b38737feee5987", slot: "select-icon" }, t("globe-icon", { key: "9946171bc1b8ab5df7844384463957f11441fd9d", width: "20", height: "20" })))), t("div", { key: "80c30bfc764be602d32244ccf3462a6796d836ce", class: {
489
- "select-wrapper": !0,
490
- language: !0
491
- } }, t("select-dropdown", { key: "0909bf36f2de8726d5da0a4d675e8b9bc42e1276", name: "language", options: a, defaultSelectedOption: a.find((n) => n.value == this.selectedLanguage) }, t("span", { key: "31dab8dd02f394c2712ec270e538b500df2ea25a", slot: "select-icon" }, t("translate-icon", { key: "eec339443e9818ed9dbd23b6362c4845a4fc7953", width: "20", height: "20" }))))));
492
- }
493
- };
494
- me([
495
- h({
496
- name: "nylas-locale-switch",
497
- stateToProps: /* @__PURE__ */ new Map([
498
- ["scheduler.selectedLanguage", "selectedLanguage"],
499
- ["scheduler.selectedTimezone", "selectedTimezone"]
500
- ]),
501
- eventToProps: {
502
- timezoneChanged: async (e, a) => {
503
- a.scheduler.selectTimezone(e.detail);
504
- }
505
- },
506
- fireRegisterEvent: !0
507
- }),
508
- D("design:type", Function),
509
- D("design:paramtypes", []),
510
- D("design:returntype", void 0)
511
- ], Z.prototype, "render", null);
512
- Z.style = fe;
513
- const he = ".sc-nylas-logo-h{display:flex}", pe = he, ye = class {
514
- constructor(e) {
515
- f(this, e), this.width = "69", this.height = "24";
516
- }
517
- render() {
518
- return t("svg", { key: "285d522b51789ad752b0113577e7db4cf19fb07b", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("g", { key: "fa92b7fa38453115a2bc779ff7812fdfa23f57e4", "clip-path": "url(#clip0_455_3543)" }, t("path", { key: "eb20af744985d439126153beded987ccc331b940", d: "M15.8092 3.03248C14.6497 1.86996 13.1076 1.23047 11.4646 1.23047C9.82156 1.23047 8.27753 1.86996 7.11999 3.03248L0.835347 9.33381C0.686846 9.4827 0.60498 9.68123 0.60498 9.89312C0.60498 10.105 0.686846 10.3035 0.835347 10.4524C0.983848 10.6013 1.18185 10.6834 1.39318 10.6834C1.60451 10.6834 1.80251 10.6013 1.95101 10.4524L8.23374 4.15111C10.0139 2.36627 12.9134 2.36627 14.6935 4.15111C16.4736 5.93785 16.4756 8.84322 14.6935 10.6281L8.4108 16.9275C8.10428 17.2348 8.10428 17.7368 8.4108 18.0461C8.5593 18.195 8.75731 18.2771 8.96863 18.2771C9.17996 18.2771 9.37796 18.195 9.52646 18.0461L15.8092 11.7467C16.9687 10.5841 17.6064 9.03793 17.6064 7.39053C17.6064 5.74314 16.9687 4.19501 15.8092 3.03439V3.03248Z", fill: "currentColor" }), t("path", { key: "6139727e54c1d307dd2962160020241524f2f21b", d: "M14.9296 7.39038C14.9296 6.46074 14.5698 5.58837 13.9148 4.93361C12.5631 3.57828 10.3641 3.57828 9.01239 4.93361L0.663961 13.3023C0.51546 13.4512 0.433594 13.6497 0.433594 13.8616C0.433594 14.0735 0.51546 14.272 0.663961 14.4209C0.812462 14.5698 1.01046 14.6519 1.22179 14.6519C1.43312 14.6519 1.63112 14.5698 1.77962 14.4209L10.0367 6.1515L10.05 6.13623C10.0747 6.10759 10.1014 6.07705 10.128 6.05033C10.1585 6.01978 10.1928 5.99115 10.2251 5.96252L10.2442 5.94534C10.9886 5.31349 12.1119 5.3593 12.8011 6.05033C13.4903 6.74135 13.536 7.78171 12.9705 8.53192L12.9648 8.53955C12.9058 8.61591 12.8544 8.67699 12.8011 8.73044C12.7497 8.78198 12.6906 8.83352 12.6069 8.90033L4.45264 17.0991C4.30414 17.248 4.22227 17.4465 4.22227 17.6584C4.22227 17.8703 4.30414 18.0689 4.45264 18.2177C4.60114 18.3666 4.79914 18.4487 5.01047 18.4487C5.2218 18.4487 5.4198 18.3666 5.5683 18.2177L13.9167 9.84716C14.5698 9.1924 14.9315 8.31812 14.9315 7.39038H14.9296Z", fill: "currentColor" }), t("path", { key: "50e563a445dfaf1a6aeb623f737c68159eb26990", d: "M10.6821 9.11238C10.4727 9.01694 10.2861 8.88904 10.1281 8.7306C9.97008 8.57216 9.84252 8.38508 9.74733 8.1751L9.69021 8.05103L0.467916 17.2978C0.287049 17.4792 0.174721 17.7082 0.149971 17.9411C0.125221 18.1778 0.19376 18.3897 0.344165 18.5405C0.471724 18.6684 0.65259 18.739 0.850592 18.739C1.11142 18.739 1.37796 18.6207 1.58358 18.4145L10.8059 9.16774L10.6821 9.11047V9.11238Z", fill: "currentColor" }), t("path", { key: "c4c51b779d1dce91fccb7331ec0099b0df3ae568", d: "M68.401 10.6185C68.2126 10.2692 67.9593 9.97334 67.6433 9.73854C67.3235 9.49993 66.956 9.31094 66.5486 9.17541C66.1316 9.03606 65.7033 8.91771 65.2749 8.81844C64.7951 8.70582 64.3039 8.57983 63.8165 8.44811C63.3196 8.31258 62.9065 8.14269 62.5905 7.94225C62.4743 7.88689 62.3391 7.76663 62.3391 7.50129C62.3391 7.39821 62.3639 7.29704 62.4153 7.19587L62.4248 7.18059C62.5352 7.02216 62.7142 6.8828 62.975 6.75109C63.234 6.62128 63.609 6.55829 64.1231 6.55829C64.5286 6.55829 64.877 6.61365 65.1569 6.72436C65.4348 6.83508 65.6652 6.96871 65.8442 7.12524C66.0212 7.27986 66.1659 7.45357 66.2782 7.63873C66.3563 7.76854 66.4267 7.89262 66.4858 8.00525L68.2754 6.84081C68.1669 6.59456 68.0146 6.33495 67.8204 6.0677C67.6033 5.768 67.3254 5.4893 66.9922 5.23732C66.659 4.98534 66.2516 4.77345 65.7813 4.60929C65.3111 4.44512 64.7532 4.36304 64.1231 4.36304C63.3844 4.36304 62.7599 4.46421 62.2706 4.66083C61.7813 4.85935 61.3815 5.09988 61.0845 5.37667C60.7875 5.65346 60.5628 5.95125 60.4143 6.2605C60.2639 6.57547 60.1611 6.85799 60.1078 7.10233C60.0945 7.18059 60.0812 7.27031 60.0678 7.36767C60.0545 7.4593 60.0469 7.5452 60.0469 7.62537C60.0469 8.13314 60.1745 8.56074 60.4239 8.89671C60.679 9.24222 61.0045 9.53429 61.391 9.76336C61.7813 9.99624 62.2116 10.1852 62.6704 10.3227C63.1388 10.462 63.5862 10.5823 64.0012 10.6796C64.4067 10.777 64.7932 10.8782 65.1531 10.9774C65.5224 11.0786 65.8289 11.2122 66.0631 11.3745C66.2801 11.5425 66.3887 11.7448 66.3887 11.9777C66.3887 12.2278 66.2916 12.4263 66.0993 12.5695C65.9279 12.6954 65.7261 12.7985 65.4958 12.8711C65.273 12.9436 65.0407 12.9913 64.8066 13.0142C64.58 13.0352 64.3915 13.0467 64.2468 13.0467C63.8032 13.0467 63.4224 13.0028 63.1197 12.915C62.8151 12.8272 62.5638 12.7241 62.3734 12.6057C62.1811 12.4874 62.0288 12.3614 61.9222 12.2316C61.8213 12.1094 61.747 12.0082 61.7014 11.9319L61.4957 11.6303L59.708 12.7928C59.8508 13.0161 60.0298 13.2643 60.2392 13.5296C60.4772 13.8293 60.7837 14.1138 61.153 14.3734C61.5224 14.633 61.966 14.8525 62.4724 15.0243C62.9788 15.1961 63.5748 15.282 64.2468 15.282C64.797 15.282 65.2901 15.2324 65.7166 15.137C66.1412 15.0396 66.5162 14.9117 66.8285 14.7552C67.1388 14.6005 67.4015 14.4192 67.6109 14.2149C67.8223 14.0107 67.9974 13.8026 68.1326 13.6003C68.4563 13.1135 68.6409 12.5504 68.6828 11.9262C68.6828 11.4069 68.5876 10.9641 68.401 10.6166V10.6185Z", fill: "currentColor" }), t("path", { key: "c92373bb3dfcfd778c824b77bf564109b42ef860", d: "M26.3585 4.27905C23.7901 4.27905 21.6997 6.37504 21.6997 8.95017V15.0701H23.9291V8.95017C23.9291 7.6082 25.0181 6.5163 26.3565 6.5163C27.695 6.5163 28.784 7.6082 28.784 8.95017V15.0701H31.0134V8.95017C31.0134 6.37504 28.9229 4.27905 26.3546 4.27905H26.3585Z", fill: "currentColor" }), t("path", { key: "3535adc1be54265f42082c136259761e0b721471", d: "M53.4522 4.27905C50.4251 4.27905 47.9634 6.74728 47.9634 9.78245C47.9634 12.8176 50.427 15.2859 53.4522 15.2859C54.5545 15.2859 55.6188 14.9594 56.5288 14.3409L56.7116 14.2169V15.0682H58.941V9.78245C58.941 6.74728 56.4793 4.27905 53.4522 4.27905ZM53.4522 13.0505C51.655 13.0505 50.1928 11.5845 50.1928 9.78245C50.1928 7.98044 51.655 6.51439 53.4522 6.51439C55.2494 6.51439 56.7116 7.98044 56.7116 9.78245C56.7116 11.5845 55.2494 13.0505 53.4522 13.0505Z", fill: "currentColor" }), t("path", { key: "9d23d2b26cbb0a354c7b6aa50ac6d0c01780ece0", d: "M45.5795 10.6166V0.356201H43.3501V10.6166C43.3501 13.1517 45.3758 15.2228 47.8908 15.2858V13.0486C46.6057 12.9875 45.5795 11.9204 45.5795 10.6166Z", fill: "currentColor" }), t("path", { key: "5e6b6f365282777aba05c5ab401106dc2bd03ccf", d: "M39.5428 4.4967V10.63C39.5428 11.6761 38.8669 12.621 37.9016 12.9284C37.1249 13.1746 36.3157 13.0486 35.6817 12.5829C35.0592 12.1247 34.6879 11.3917 34.6879 10.6186V4.4967H32.4585V10.5995C32.4585 12.7165 33.8388 14.57 35.8131 15.1084C37.0354 15.4424 38.2995 15.2973 39.3695 14.7037L39.5428 14.6063V14.9747C39.5428 16.2766 38.5166 17.3437 37.2315 17.4067V19.6439C39.7465 19.5809 41.7722 17.5117 41.7722 14.9747V4.4967H39.5428Z", fill: "currentColor" })), t("defs", { key: "be8f235c5be01235ec09b2a710d1bc7c10520b61" }, t("clipPath", { key: "df41bb7d1a6728eff97a39721956a6cb6ca5d55a", id: "clip0_455_3543" }, t("rect", { key: "74acc5e105fcc9f4621b366b17679e1714008b09", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
519
- }
520
- };
521
- ye.style = pe;
522
- const ue = ":host{display:block;position:absolute;top:1.5rem;right:1.5rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem}.notif{display:flex;width:280px;padding:16px;align-items:flex-start;gap:16px;border-radius:8px;border:1.5px solid var(--nylas-error);background:var(--nylas-base-0)}@media screen and (max-width: 768px){.notif{width:auto}}.notif .content{display:flex;flex-direction:row;gap:8px}.notif .content .message{font-size:14px;font-weight:400;color:var(--nylas-base-800)}.notif .content .message .title{font-size:16px;font-weight:600;color:var(--nylas-base-950);display:block}.notif .content .message .description{font-size:14px;font-weight:400;color:var(--nylas-base-800);display:block}.notif .content .icon.error{color:var(--nylas-error)}.notif.error{border-color:var(--nylas-error)}.notif.warning{border-color:var(--nylas-warning)}.notif.info{border-color:var(--nylas-info)}.notif.success{border-color:var(--nylas-success)}.notif .dismiss-btn{background:none;border:none;color:var(--nylas-base-950);cursor:pointer;position:absolute;right:0.5rem;top:0.5rem}", ge = ue, ve = class {
523
- constructor(e) {
524
- f(this, e), this.ttl = 5e3, this.allowedCategories = ["component", "api", "validation", "invalid_session"], this.notifications = [];
525
- }
526
- onError(e) {
527
- c(`[nylas-notification] Error: ${e.detail.title}`), this.handleNotification(e);
528
- }
529
- onWarning(e) {
530
- c(`[nylas-notification] Warning: ${e.detail.title}`), this.handleNotification(e);
531
- }
532
- onInfo(e) {
533
- c(`[nylas-notification] Info: ${e.detail.title}`), this.handleNotification(e);
534
- }
535
- onSuccess(e) {
536
- c(`[nylas-notification] Success: ${e.detail.title}`), this.handleNotification(e);
537
- }
538
- handleNotification(e) {
539
- if (e.defaultPrevented) {
540
- c("[nylas-notification] Event default prevented");
541
- return;
542
- }
543
- if (this.ttl === 0) {
544
- c("[nylas-notification] TTL is 0");
545
- return;
546
- }
547
- if (this.allowedCategories.length > 0 && !this.allowedCategories.includes(e.detail.category)) {
548
- c("[nylas-notification] Category not allowed");
549
- return;
550
- }
551
- if (this.notifications = [...this.notifications, { ...e.detail }], e.detail.ttl !== "none") {
552
- const a = e.detail.ttl ? e.detail.ttl : this.ttl;
553
- window.setTimeout(() => {
554
- this.notifications = this.notifications.filter((n) => n.id !== e.detail.id);
555
- }, a);
556
- }
557
- }
558
- dismissNotification(e) {
559
- this.notifications = this.notifications.filter((a) => a.id !== e);
560
- }
561
- render() {
562
- return t(b, { key: "8ebb856b0ede112df53b2791eaad9f6463cac1fc" }, t(q, { key: "5ff37009611cdc80e57906452809f0948a4d2d08" }, this.notifications.map((e) => t("div", { class: `notif ${e.type}`, key: e.id }, t("div", { class: "content" }, t("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && t("warning-icon", null)), t("span", { class: "message" }, t("span", { class: "title" }, e.title), e.description && t("span", { class: "description" }, e.description))), t("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, t("close-icon", null)))), t("slot", { key: "1f4ada4c093ea80b0c1ea432473cc912a2edf439" })));
563
- }
564
- };
565
- ve.style = ge;
566
- const ke = ":host{display:block}sp-theme{position:relative;height:inherit;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:var(--nylas-font-family)}.event-card{display:flex;align-items:center;flex-direction:column;width:calc(100% - 3rem);background-color:var(--nylas-base-0);color:var(--nylas-base-800);border-radius:var(--nylas-border-radius-2x);padding:3rem 1.5rem 1.5rem 1.5rem;position:relative;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}.nylas-selected-event-card__date{font-size:min(max(16px, 3vw), 18px);font-weight:600}.nylas-selected-event-card__time{font-size:min(max(14px, 3vw), 16px);font-weight:500}.calendar-icon{width:3rem;height:3rem;border-radius:50%;position:absolute;top:-1.25rem;left:50%;transform:translateX(-50%);background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200)}calendar-icon{display:flex;align-items:center;justify-content:center;height:100%}.event-timezone{display:flex;color:var(--nylas-base-600);margin-bottom:1.5rem;gap:4px;align-items:center}", xe = ke;
567
- var Ce = function(e, a, n, r) {
568
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
569
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
570
- i = Reflect.decorate(e, a, n, r);
571
- else
572
- for (var l = e.length - 1; l >= 0; l--)
573
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
574
- return s > 3 && i && Object.defineProperty(a, n, i), i;
575
- }, z = function(e, a) {
576
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
577
- return Reflect.metadata(e, a);
578
- };
579
- const A = class {
580
- constructor(e) {
581
- f(this, e), this.selectedDate = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.startTime = "", this.endTime = "";
582
- }
583
- connectedCallback() {
584
- }
585
- disconnectedCallback() {
586
- }
587
- async componentWillLoad() {
588
- c("[nylas-selected-event-card] Component will load");
589
- }
590
- async componentDidLoad() {
591
- c("[nylas-selected-event-card] Component did load");
592
- }
593
- handleSelectedTimeslotChange(e) {
594
- this.startTime = new Date(e == null ? void 0 : e.start_time).toLocaleString(void 0, { timeStyle: "short" }), this.endTime = new Date(e == null ? void 0 : e.end_time).toLocaleString(void 0, { timeStyle: "short" });
595
- }
596
- render() {
597
- var e;
598
- return t(b, { key: "faf1a8e382cc2684d98ca65258b6eef1024819df", part: "nsec" }, t("sp-theme", { key: "86a7e1b2d7efe3eda27ba9ac164e14fc3bc97ed1", theme: "spectrum", color: "dark", scale: "medium" }, t("div", { key: "a1a5359fbe669ca49c1b078979c4b7f7f22c6b19", class: "event-card", part: "nsec__card" }, t("div", { key: "5bcec889039baed535a558611c206f6f06834fc0", class: "calendar-icon", part: "nsec__icon" }, t("calendar-icon", { key: "d8c32b9a9b595d9bc503ef6efb130f4bb7420e55" })), t("div", { key: "818a733b6aca925341e703e16c0ac977c0c6a908", class: "nylas-selected-event-card__date", part: "nsec__date" }, (e = this.selectedDate) == null ? void 0 : e.toLocaleDateString(void 0, { dateStyle: "full" })), t("div", { key: "3d2a874253b9bb5b8da7bb889eba5a9697bcf5e5", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), t("div", { key: "170b1a88791838620422e1dd670851195f16e3f2", class: "event-timezone", part: "nsec__timezone" }, t("globe-icon", { key: "179d37518dd3f5f4bf4fb77eaac9704fd0f35519" }), y[this.selectedTimezone])));
599
- }
600
- static get watchers() {
601
- return {
602
- selectedTimeslot: ["handleSelectedTimeslotChange"]
603
- };
604
- }
605
- };
606
- Ce([
607
- h({
608
- name: "nylas-selected-event-card",
609
- stateToProps: /* @__PURE__ */ new Map([
610
- ["scheduler.selectedDate", "selectedDate"],
611
- ["scheduler.selectedTimeslot", "selectedTimeslot"],
612
- ["scheduler.selectedTimezone", "selectedTimezone"]
613
- ]),
614
- eventToProps: {},
615
- fireRegisterEvent: !0
616
- }),
617
- z("design:type", Function),
618
- z("design:paramtypes", []),
619
- z("design:returntype", void 0)
620
- ], A.prototype, "render", null);
621
- A.style = xe;
622
- const we = ":host{display:block;height:calc(100% - 28px - 2.5rem)}.time-picker-wrapper{display:flex;flex-direction:column;height:100%}.time-slots{position:relative;display:flex;flex-direction:column;gap:0.5rem;align-items:center;overflow-y:scroll;padding:0.5rem 1.5rem;flex:1}.time{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 12px;gap:0.5rem;font-size:min(max(14px, 3vw), 16px);font-weight:500;font-family:inherit;width:100%;height:48px;color:var(--nylas-base-800);background:var(--nylas-base-0);border:none;outline:1.5px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);flex:none;order:4;align-self:stretch;flex-grow:0;cursor:pointer}.time:hover{color:var(--nylas-primary);outline-color:var(--nylas-primary)}.time.selected{font-weight:600;color:var(--nylas-primary);outline:2px solid var(--nylas-primary);border-color:transparent;box-shadow:0 0 0 2px var(--nylas-primary)}.empty{text-align:center;padding:0 1.5rem;color:var(--nylas-base-600);font-size:min(max(12px, 2vw), 14px);height:450px;display:flex;align-items:center;justify-content:center}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.loading{padding:0 1.5rem}.loading .time-slot-skeleton{width:100%;height:4rem;background-color:var(--nylas-base-50);margin-bottom:0.5rem;border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite ease-in-out}.footer{width:100%;padding:10px;box-sizing:border-box;border-top:1px solid var(--nylas-base-100)}.footer sp-button{padding:14px;color:var(--nylas-base-100);border-radius:var(--nylas-border-radius-2x);width:100%;height:48px;font-weight:600;background-color:var(--nylas-primary);border:none}.footer sp-button:hover{background-color:var(--nylas-base-600)}.footer sp-button:active{background-color:var(--nylas-base-800)}", _e = we;
623
- var Ee = function(e, a, n, r) {
624
- var s = arguments.length, i = s < 3 ? a : r === null ? r = Object.getOwnPropertyDescriptor(a, n) : r, o;
625
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
626
- i = Reflect.decorate(e, a, n, r);
627
- else
628
- for (var l = e.length - 1; l >= 0; l--)
629
- (o = e[l]) && (i = (s < 3 ? o(i) : s > 3 ? o(a, n, i) : o(a, n)) || i);
630
- return s > 3 && i && Object.defineProperty(a, n, i), i;
631
- }, L = function(e, a) {
632
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
633
- return Reflect.metadata(e, a);
634
- };
635
- const V = class {
636
- constructor(e) {
637
- f(this, e), this.timeslotSelected = d(this, "timeslotSelected", 7), this.timeslotConfirmed = d(this, "timeslotConfirmed", 7), this.handleConfirmedTimeslot = async (a, n) => {
638
- a.preventDefault(), c("[nylas-timeslot-picker] Confirm timeslot", n), this.timeslotConfirmed.emit(n);
639
- }, this.handleMouseEnter = (a) => {
640
- this.hoveredTimeslotIndex = a;
641
- }, this.handleMouseLeave = () => {
642
- this.hoveredTimeslotIndex = -1;
643
- }, this.selectedDate = /* @__PURE__ */ new Date(), this.availability = void 0, this.selectedTimeslot = void 0, this.isLoading = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.times = [], this.hoveredTimeslotIndex = void 0, this.selectedTimeslotIndex = void 0;
644
- }
645
- connectedCallback() {
646
- }
647
- disconnectedCallback() {
648
- }
649
- async componentWillLoad() {
650
- var a;
651
- const e = (a = this.availability) == null ? void 0 : a.filter((n) => this.selectedDate && m(n.start_time, this.selectedDate)).map((n) => n);
652
- this.times = e || [], c("[nylas-timeslot-picker] Component will load");
653
- }
654
- async componentDidLoad() {
655
- c("[nylas-timeslot-picker] Component did load");
656
- }
657
- getTimeslotId(e, a) {
658
- return `${e.toLocaleDateString()}-${a}`;
659
- }
660
- onClickSelectTime(e, a) {
661
- c("[nylas-timeslot-picker] Time selected", e, a), this.selectedTimeslotIndex = this.getTimeslotId(e.start_time, a), this.timeslotSelected.emit({
662
- start_time: e.start_time,
663
- end_time: e.end_time
664
- });
665
- }
666
- getTimeSlotLabel(e) {
667
- const a = new Intl.DateTimeFormat("en-US", {
668
- hour: "numeric",
669
- minute: "numeric",
670
- timeZone: this.selectedTimezone
671
- });
672
- return `${a.format(e.start_time)} - ${a.format(e.end_time)}`;
673
- }
674
- selectedDateChanged(e) {
675
- var a;
676
- if (c("[nylas-timeslot-picker] Selected date changed", { newVal: e }), e && (this.selectedTimeslotIndex = "", typeof e < "u")) {
677
- const n = (a = this.availability) == null ? void 0 : a.filter((r) => m(r.start_time, e)).map((r) => r);
678
- this.times = n || [];
679
- }
680
- }
681
- availabilityChanged(e) {
682
- if (c("[nylas-timeslot-picker] Available times changed", { newVal: e, selectedDate: this.selectedDate }), typeof e < "u") {
683
- const a = e == null ? void 0 : e.filter((n) => this.selectedDate && m(n.start_time, this.selectedDate)).map((n) => n);
684
- this.times = a || [];
685
- }
686
- }
687
- render() {
688
- return this.isLoading ? t(b, null, t("div", { class: "loading" }, new Array(6).fill(0).map((e, a) => t("div", { class: "time-slot-skeleton", style: { animationDelay: `${a * 20}ms` } })))) : this.availability && this.availability.length === 0 ? t(b, null, t("div", { class: "empty" }, t("span", null, "No dates available"))) : (!this.times || this.times.length === 0) && this.selectedDate ? t(b, null, t("div", { class: "empty" }, t("span", null, "No time slots available for selected date"))) : this.selectedDate ? t(b, { part: "ntp" }, t("div", { class: "time-picker-wrapper" }, t("div", { class: "time-slots" }, this.times.map((e, a) => {
689
- var n, r, s, i;
690
- return t("button", { part: `ntp__timeslot ${((r = (n = this.selectedTimeslot) == null ? void 0 : n.start_time) == null ? void 0 : r.getTime()) === e.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, "aria-role": "button", class: {
691
- time: !0,
692
- selected: typeof this.selectedTimeslot < "u" && ((i = (s = this.selectedTimeslot) == null ? void 0 : s.start_time) == null ? void 0 : i.getTime()) === e.start_time.getTime()
693
- }, onClick: () => this.onClickSelectTime(e, a), onMouseEnter: () => this.handleMouseEnter(a), onMouseLeave: () => this.handleMouseLeave() }, this.hoveredTimeslotIndex == a || this.selectedTimeslotIndex == this.getTimeslotId(e.start_time, a) ? this.getTimeSlotLabel(e) : e.start_time.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone }));
694
- })), this.selectedTimeslot && t("div", { class: "footer" }, t("sp-button", { variant: "primary", onClick: (e) => this.handleConfirmedTimeslot(e, this.selectedTimeslot), part: "ntp__button-primary" }, t("slot", { name: "timeslot-picker-cta-label" }, "Next"))))) : t(b, null);
695
- }
696
- static get watchers() {
697
- return {
698
- selectedDate: ["selectedDateChanged"],
699
- availability: ["availabilityChanged"]
700
- };
701
- }
702
- };
703
- Ee([
704
- h({
705
- name: "nylas-timeslot-picker",
706
- stateToProps: /* @__PURE__ */ new Map([
707
- ["scheduler.selectedDate", "selectedDate"],
708
- ["scheduler.availability", "availability"],
709
- ["scheduler.selectedTimeslot", "selectedTimeslot"],
710
- ["scheduler.selectedTimezone", "selectedTimezone"],
711
- ["scheduler.isLoading", "isLoading"]
712
- ]),
713
- eventToProps: {
714
- timeslotSelected: async (e, a) => {
715
- a.scheduler.selectTime(e.detail);
716
- },
717
- timeslotConfirmed: async (e, a) => {
718
- e.detail && a.scheduler.toggleAdditionalData(!0);
719
- }
720
- },
721
- fireRegisterEvent: !0
722
- }),
723
- L("design:type", Function),
724
- L("design:paramtypes", []),
725
- L("design:returntype", void 0)
726
- ], V.prototype, "render", null);
727
- V.style = _e;
728
- export {
729
- N as nylas_booked_event_card,
730
- F as nylas_booking_form,
731
- M as nylas_cancel_booking_form,
732
- $ as nylas_cancelled_event_card,
733
- H as nylas_date_picker,
734
- Z as nylas_locale_switch,
735
- ye as nylas_logo,
736
- ve as nylas_notification,
737
- A as nylas_selected_event_card,
738
- V as nylas_timeslot_picker
739
- };