@nylas/react 2.0.1 → 2.0.3

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 (118) hide show
  1. package/dist/{abstract-provider-efe136bd-b4663c02.cjs → abstract-provider-bdb7d9b4-12a95387.cjs} +1 -1
  2. package/dist/{abstract-provider-efe136bd-2041bdce.js → abstract-provider-bdb7d9b4-22cf4a74.js} +1 -1
  3. package/dist/{add-circle-icon_2.entry-ea1692a4.js → add-circle-icon_2.entry-0ff79148.js} +1 -1
  4. package/dist/{add-circle-icon_2.entry-5204c48a.cjs → add-circle-icon_2.entry-d56f519c.cjs} +1 -1
  5. package/dist/{archive-icon.entry-c2c66bca.cjs → archive-icon.entry-6ab120ff.cjs} +1 -1
  6. package/dist/{archive-icon.entry-0b585dff.js → archive-icon.entry-aaff46ec.js} +1 -1
  7. package/dist/{arrow-icon.entry-9d471162.cjs → arrow-icon.entry-d57cf44f.cjs} +1 -1
  8. package/dist/{arrow-icon.entry-2e61394e.js → arrow-icon.entry-d8fcbc1f.js} +1 -1
  9. package/dist/{bold-icon.entry-5c37622f.cjs → bold-icon.entry-0f23543d.cjs} +1 -1
  10. package/dist/{bold-icon.entry-8ef1b653.js → bold-icon.entry-e48075a4.js} +1 -1
  11. package/dist/{button-component_2.entry-8335ee1e.cjs → button-component_2.entry-3d622397.cjs} +1 -1
  12. package/dist/{button-component_2.entry-c906230f.js → button-component_2.entry-5db80bec.js} +1 -1
  13. package/dist/calendar-agenda-fill-icon_36.entry-75d7cd5b.cjs +6 -0
  14. package/dist/{calendar-agenda-fill-icon_36.entry-5f184433.js → calendar-agenda-fill-icon_36.entry-78fc2e0d.js} +835 -835
  15. package/dist/{calendar-cancel-icon.entry-dd6ac4db.js → calendar-cancel-icon.entry-8b43441c.js} +1 -1
  16. package/dist/{calendar-cancel-icon.entry-65a4a34e.cjs → calendar-cancel-icon.entry-9546c7c3.cjs} +1 -1
  17. package/dist/calendar-check-icon.entry-4e6abda7.js +16 -0
  18. package/dist/{calendar-check-icon_2.entry-ded15038.cjs → calendar-check-icon.entry-a03b249a.cjs} +1 -1
  19. package/dist/{calendar-icon.entry-a2a1ddbc.js → calendar-icon.entry-5b622c12.js} +1 -1
  20. package/dist/{calendar-icon.entry-ca512dd6.cjs → calendar-icon.entry-cd4b0ec4.cjs} +1 -1
  21. package/dist/{checkbox-component_2.entry-d6128246.js → checkbox-component_2.entry-82f4b1f2.js} +1 -1
  22. package/dist/{checkbox-component_2.entry-d79b5d1d.cjs → checkbox-component_2.entry-c9c8a87d.cjs} +1 -1
  23. package/dist/{checkbox-group_4.entry-2946c7ef.cjs → checkbox-group_4.entry-5a4f0ed2.cjs} +1 -1
  24. package/dist/{checkbox-group_4.entry-e5145451.js → checkbox-group_4.entry-b2a5b2b2.js} +3 -3
  25. package/dist/checkmark-circle-icon.entry-30582af4.js +16 -0
  26. package/dist/checkmark-circle-icon.entry-9617301c.cjs +1 -0
  27. package/dist/{checkmark-icon_15.entry-6e92e93e.js → checkmark-icon_15.entry-01536ed2.js} +33 -33
  28. package/dist/{checkmark-icon_15.entry-a75a1825.cjs → checkmark-icon_15.entry-c5eaad9b.cjs} +2 -2
  29. package/dist/{chevron-icon_3.entry-9193a885.cjs → chevron-icon_3.entry-26f14744.cjs} +1 -1
  30. package/dist/{chevron-icon_3.entry-6eaa3513.js → chevron-icon_3.entry-517447a6.js} +1 -1
  31. package/dist/{clock-icon_4.entry-ae2272f4.cjs → clock-icon_4.entry-5351318c.cjs} +1 -1
  32. package/dist/{clock-icon_4.entry-2c93270e.js → clock-icon_4.entry-7ea1274d.js} +1 -1
  33. package/dist/{customParseFormat-edc38d83-fa9c77d9.cjs → customParseFormat-f0d21eb3-769d6bf2.cjs} +1 -1
  34. package/dist/{customParseFormat-edc38d83-b3722499.js → customParseFormat-f0d21eb3-904f1e57.js} +1 -1
  35. package/dist/{delete-icon.entry-6684eba6.js → delete-icon.entry-02e44ba1.js} +1 -1
  36. package/dist/{delete-icon.entry-b9e4f2c7.cjs → delete-icon.entry-64b61f5c.cjs} +1 -1
  37. package/dist/{document-refresh-icon.entry-7afe6163.cjs → document-refresh-icon.entry-2f599a22.cjs} +1 -1
  38. package/dist/{document-refresh-icon.entry-fba9f60b.js → document-refresh-icon.entry-fcaa84ad.js} +1 -1
  39. package/dist/{feedbackSync-e4378c0b-23289195.js → feedbackSync-b9c9e719-b54b3268.js} +1 -1
  40. package/dist/{feedbackSync-e4378c0b-7876d067.cjs → feedbackSync-b9c9e719-bee3fea1.cjs} +1 -1
  41. package/dist/{folder-icon.entry-b1632bf3.cjs → folder-icon.entry-55c123dc.cjs} +1 -1
  42. package/dist/{folder-icon.entry-430c6b47.js → folder-icon.entry-f4862c1b.js} +1 -1
  43. package/dist/{forward-icon.entry-5e53da76.js → forward-icon.entry-4a41e94f.js} +1 -1
  44. package/dist/{forward-icon.entry-7626dcca.cjs → forward-icon.entry-82719382.cjs} +1 -1
  45. package/dist/{globe-icon_2.entry-bbb0a6ce.cjs → globe-icon_2.entry-3f0e408e.cjs} +1 -1
  46. package/dist/{globe-icon_2.entry-646eae41.js → globe-icon_2.entry-8f5c79b2.js} +2 -2
  47. package/dist/{google-logo-icon_6.entry-e39dd9cb.cjs → google-logo-icon_6.entry-9c91c3d4.cjs} +1 -1
  48. package/dist/{google-logo-icon_6.entry-5951a546.js → google-logo-icon_6.entry-b331ab60.js} +8 -8
  49. package/dist/{google-meet-icon_5.entry-c13e0738.cjs → google-meet-icon_5.entry-e3d44d56.cjs} +1 -1
  50. package/dist/{google-meet-icon_5.entry-a54c83da.js → google-meet-icon_5.entry-eb9f7d93.js} +1 -1
  51. package/dist/{inbox-icon.entry-7bee82b3.js → inbox-icon.entry-a385095d.js} +1 -1
  52. package/dist/{inbox-icon.entry-911b047a.cjs → inbox-icon.entry-fa9085cd.cjs} +1 -1
  53. package/dist/{index-71f61ea9.js → index-ad781fbc.js} +5585 -5490
  54. package/dist/index-dc6efb5e.cjs +118 -0
  55. package/dist/{index.es-6a9d55cf-458ba0e0.cjs → index.es-ccb2a286-9a2c0934.cjs} +1 -1
  56. package/dist/{index.es-6a9d55cf-122c27e0.js → index.es-ccb2a286-dfa2bfbe.js} +1 -1
  57. package/dist/{info-icon_2.entry-471b836b.cjs → info-icon_2.entry-9f32753b.cjs} +1 -1
  58. package/dist/{info-icon_2.entry-6ff2f004.js → info-icon_2.entry-c18a111e.js} +1 -1
  59. package/dist/{input-component.entry-781b584c.js → input-component.entry-eae64f46.js} +1 -1
  60. package/dist/{input-component.entry-b6a9b4cb.cjs → input-component.entry-ff9e04c9.cjs} +1 -1
  61. package/dist/{input-dropdown_2.entry-1feebcba.js → input-dropdown_2.entry-1b55ef0c.js} +1 -1
  62. package/dist/{input-dropdown_2.entry-c71d14ff.cjs → input-dropdown_2.entry-67d6d292.cjs} +1 -1
  63. package/dist/{italic-icon.entry-9ef7f4a2.js → italic-icon.entry-4266a817.js} +1 -1
  64. package/dist/{italic-icon.entry-16debde5.cjs → italic-icon.entry-843feb2b.cjs} +1 -1
  65. package/dist/{multi-select-dropdown.entry-1b27c746.js → multi-select-dropdown.entry-854265ef.js} +1 -1
  66. package/dist/{multi-select-dropdown.entry-0a6f9417.cjs → multi-select-dropdown.entry-ca9acf75.cjs} +1 -1
  67. package/dist/nylas-booked-event-card_11.entry-8d3e2019.cjs +1 -0
  68. package/dist/{nylas-booked-event-card_11.entry-802671ee.js → nylas-booked-event-card_11.entry-ccf30d91.js} +138 -107
  69. package/dist/{nylas-form-card.entry-7da9a312.js → nylas-form-card.entry-481ede48.js} +2 -2
  70. package/dist/{nylas-form-card.entry-59a837c9.cjs → nylas-form-card.entry-58162c72.cjs} +1 -1
  71. package/dist/{nylas-notification_2.entry-b16bb805.js → nylas-notification_2.entry-7d3ed3b0.js} +1 -1
  72. package/dist/{nylas-notification_2.entry-8f8bad34.cjs → nylas-notification_2.entry-dffa3ff6.cjs} +1 -1
  73. package/dist/{nylas-scheduler-editor.entry-e33e11fb.cjs → nylas-scheduler-editor.entry-9744694a.cjs} +2 -2
  74. package/dist/{nylas-scheduler-editor.entry-cbe3e1e3.js → nylas-scheduler-editor.entry-aa079dff.js} +5 -5
  75. package/dist/nylas-scheduling.entry-7441979c.js +988 -0
  76. package/dist/nylas-scheduling.entry-b1fcb48f.cjs +1 -0
  77. package/dist/{person-icon.entry-6232e6fd.js → person-icon.entry-23a69633.js} +1 -1
  78. package/dist/{person-icon.entry-beb26b48.cjs → person-icon.entry-acf4d22b.cjs} +1 -1
  79. package/dist/{play-icon.entry-16a1c1ac.js → play-icon.entry-4e7884d4.js} +1 -1
  80. package/dist/{play-icon.entry-9060d0d8.cjs → play-icon.entry-aa088180.cjs} +1 -1
  81. package/dist/{radio-button-group.entry-5a3728cd.js → radio-button-group.entry-243d7988.js} +1 -1
  82. package/dist/{radio-button-group.entry-6935c39d.cjs → radio-button-group.entry-cea225c8.cjs} +1 -1
  83. package/dist/react.cjs +1 -1
  84. package/dist/react.js +1 -1
  85. package/dist/{refresh-icon.entry-2411b2e1.cjs → refresh-icon.entry-96cb008f.cjs} +1 -1
  86. package/dist/{refresh-icon.entry-4f56e72b.js → refresh-icon.entry-d1603555.js} +1 -1
  87. package/dist/{register-component-a1c3d7b4-774feacc.js → register-component-9d4ceee5-46f58baf.js} +1 -1
  88. package/dist/{register-component-a1c3d7b4-97d7a6f5.cjs → register-component-9d4ceee5-6fabc42c.cjs} +1 -1
  89. package/dist/{reply-all-icon.entry-b4b6926b.cjs → reply-all-icon.entry-537f7718.cjs} +1 -1
  90. package/dist/{reply-all-icon.entry-b4b917ec.js → reply-all-icon.entry-6fae7288.js} +1 -1
  91. package/dist/{reply-icon.entry-454545ed.cjs → reply-icon.entry-72fa6e4c.cjs} +1 -1
  92. package/dist/{reply-icon.entry-24f6f4c6.js → reply-icon.entry-ae114e35.js} +1 -1
  93. package/dist/{sent-icon.entry-d9a79336.cjs → sent-icon.entry-30a6ac17.cjs} +1 -1
  94. package/dist/{sent-icon.entry-fa59ce85.js → sent-icon.entry-b10d5e26.js} +1 -1
  95. package/dist/{spam-icon.entry-da39987e.cjs → spam-icon.entry-357aa525.cjs} +1 -1
  96. package/dist/{spam-icon.entry-fb18a08b.js → spam-icon.entry-bed45849.js} +1 -1
  97. package/dist/{star-icon.entry-406472c1.js → star-icon.entry-010349a5.js} +1 -1
  98. package/dist/{star-icon.entry-833f35a7.cjs → star-icon.entry-53c85ebb.cjs} +1 -1
  99. package/dist/{stop-icon.entry-1b6ae838.js → stop-icon.entry-18f650bf.js} +1 -1
  100. package/dist/{stop-icon.entry-3258db59.cjs → stop-icon.entry-20af3bf5.cjs} +1 -1
  101. package/dist/style.css +1 -1
  102. package/dist/{textarea-component.entry-0ae18897.cjs → textarea-component.entry-b19642f1.cjs} +1 -1
  103. package/dist/{textarea-component.entry-569a281e.js → textarea-component.entry-e6120440.js} +1 -1
  104. package/dist/{toggle-switch.entry-dc3f796b.js → toggle-switch.entry-32b0e964.js} +1 -1
  105. package/dist/{toggle-switch.entry-60d75f16.cjs → toggle-switch.entry-becdda2c.cjs} +1 -1
  106. package/dist/{translate-icon.entry-297cf20f.js → translate-icon.entry-2308a8e4.js} +1 -1
  107. package/dist/{translate-icon.entry-c183ecb5.cjs → translate-icon.entry-7cb7a479.cjs} +1 -1
  108. package/dist/{trash-fill-icon.entry-3d8a2e5e.js → trash-fill-icon.entry-7f410c82.js} +1 -1
  109. package/dist/{trash-fill-icon.entry-94d4f66c.cjs → trash-fill-icon.entry-c70b9326.cjs} +1 -1
  110. package/dist/{underline-icon.entry-50d1e766.cjs → underline-icon.entry-23f478f3.cjs} +1 -1
  111. package/dist/{underline-icon.entry-4a9105c7.js → underline-icon.entry-58ef1a9f.js} +1 -1
  112. package/package.json +2 -2
  113. package/dist/calendar-agenda-fill-icon_36.entry-59c0a997.cjs +0 -6
  114. package/dist/calendar-check-icon_2.entry-f9b50bb8.js +0 -26
  115. package/dist/index-f769bc2a.cjs +0 -118
  116. package/dist/nylas-booked-event-card_11.entry-74fba802.cjs +0 -1
  117. package/dist/nylas-scheduling.entry-4223e50b.cjs +0 -1
  118. package/dist/nylas-scheduling.entry-6fb094a8.js +0 -968
@@ -1,6 +1,6 @@
1
- import { r as w, a as f, b as d, h as o, i, m as we, w as xe, H as k, g as E, x as ve, y as Fe, d as ae, u as Oe, t as Me, l as Ce, z as F, A as $e, C as He, D as O, E as Ne, G as Ae, I as qe, J as N } from "./index-71f61ea9.js";
2
- import { R as B } from "./register-component-a1c3d7b4-774feacc.js";
3
- import { c as S, T as P, a as _e } from "./constants-f51538ef-e0a5f026.js";
1
+ import { r as w, a as f, i, b as d, h as o, m as we, w as xe, H as k, g as E, x as ve, y as Fe, d as ae, u as Oe, t as Me, l as Ce, z as F, A as He, C as $e, D as O, E as Ne, G as Ae, I as qe, J as N } from "./index-ad781fbc.js";
2
+ import { R as L } from "./register-component-9d4ceee5-46f58baf.js";
3
+ import { c as S, T as j, a as _e } from "./constants-f51538ef-e0a5f026.js";
4
4
  import "react";
5
5
  import "react/jsx-runtime";
6
6
  import "react-dom";
@@ -51,6 +51,9 @@ const Te = class {
51
51
  themeConfigChanged(e) {
52
52
  this.applyThemeConfig(e);
53
53
  }
54
+ selectedLanguageChangedHandler(e, a) {
55
+ e !== a && i.changeLanguage(e);
56
+ }
54
57
  connectedCallback() {
55
58
  }
56
59
  disconnectedCallback() {
@@ -75,25 +78,26 @@ const Te = class {
75
78
  this.host.style.setProperty(`${a}`, n);
76
79
  }
77
80
  render() {
78
- var n, l, r, t, s, c, g, h, C, x, D, z, m, p, T, R;
81
+ var n, l, r, t, s, c, g, h, C, x, B, D, u, m, T, R;
79
82
  const e = (n = this.configSettings) == null ? void 0 : n.booking_type, a = e && e !== "booking";
80
- return o(k, { key: "746e23e82adf30da44ac6a160400705251a5cf98", part: "nbec" }, o("div", { key: "aa3e79d294ff41b4a43775763f9e5f1922f955c7", class: "nylas-booked-event-card" }, o("div", { key: "cbb343663633b5ba80875f42af0bb0d091ee1ac8", class: "booked-event-timezone" }, o("globe-icon", { key: "8c94142bd486144efaa251770c87f4ec15481b41" }), P[this.selectedTimezone]), o("div", { key: "e06ef2c5b7a1977ff1953027d6109cb8a1acf493", class: "event-card-wrapper", part: "nbec__card" }, o("div", { key: "5a99626d44f6ef819af2606bf24208e1833e3a54", class: "calendar-icon" }, o("calendar-check-icon", { key: "06c5ec0241535ee0ea82c743653f93442bc9a5fa" })), o("div", { key: "b38fa39209c64394902a0e7607248d0d0c73adf2", class: "booked-event-header" }, o("h2", { key: "1706d065e1f427efcccef18f382702e95da33080", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${i.t("bookingRescheduled")}` : a && !this.isLoading ? `${i.t("bookingSent")}` : `${i.t("bookingConfirmed")}`, "!"), o("div", { key: "c7bfce355ce08d858862bc7672f20e8a2bb3dce9", class: "card-description", part: "nbec__description" }, a ? i.t("bookingSentDescription") : o("span", null, i.t("bookingConfirmedDescription")))), o("div", { key: "2074c51dfdfd0753fcd3d598b7633520bf70ab63", class: "booking-date-time" }, o("checkmark-circle-icon", { key: "dbfe39fadeeb08186a5214cfb9ca5d3c8da55cb1" }), o("h3", { key: "edb9ed53cb25e9e06ec7b27f8141fa6f422c1511" }, i.t("bookingDateAndTimeHeader")), o("p", { key: "24d8d606ab3e217256152e249ee435d070df0c5b" }, (l = this.selectedTimeslot) != null && l.start_time ? we(xe((r = this.selectedTimeslot) == null ? void 0 : r.start_time, this.selectedTimezone, S[this.selectedLanguage])) : "-", " ", o("br", { key: "5949a97ff7e7b256e410f591b810332a72e0696c" }), this.startTime, " - ", this.endTime)), o("div", { key: "3450618726c762232151511fd28570834cf07cc4", class: "booking-participants" }), !a && o("div", { class: "button-container" }, o("div", { class: {
83
+ return o(k, { key: "0762e32091a5674187788413717366b6213a28fd", part: "nbec" }, o("div", { key: "9cb934481989459e30f9fc718e20855f0f186027", class: "nylas-booked-event-card" }, o("div", { key: "e7b810785f800f82f0c73eaa665cd56bb9406c85", class: "booked-event-timezone" }, o("globe-icon", { key: "3c29fd04b4fc90e0a6583285cbf872ec840ec0d6" }), j[this.selectedTimezone]), o("div", { key: "e7f4406d8c3b110d84cb1d99e5ab8db89954e2f4", class: "event-card-wrapper", part: "nbec__card" }, o("div", { key: "c656687daf9b51190341d35db6c338a9a61df3a2", class: "calendar-icon" }, o("calendar-check-icon", { key: "e1f5cdfa288db54a537f4250d65e2ab0279fb84e" })), o("div", { key: "50e125630023b8dd19d537d20374f9a5464a1547", class: "booked-event-header" }, o("h2", { key: "24e6e52952321065ee1e63c34d55cd1891edeafc", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${i.t("bookingRescheduled")}` : a && !this.isLoading ? `${i.t("bookingSent")}` : `${i.t("bookingConfirmed")}`, "!"), o("div", { key: "cb07bf7f3685624f2b50bcba569399ba084ab00d", class: "card-description", part: "nbec__description" }, a ? i.t("bookingSentDescription") : o("span", null, i.t("bookingConfirmedDescription")))), o("div", { key: "bceb86109e1a9ae6f2c1d98e0267e7f73d763aae", class: "booking-date-time" }, o("checkmark-circle-icon", { key: "0e6fdd3cb183e4d00c6c31fe368eefb01d0465d8" }), o("h3", { key: "c7561d2be55109d69650aa41bb6d356018e1973b" }, i.t("bookingDateAndTimeHeader")), o("p", { key: "31818a7c4a89014438b7af5e722f49728918cc27" }, (l = this.selectedTimeslot) != null && l.start_time ? we(xe((r = this.selectedTimeslot) == null ? void 0 : r.start_time, this.selectedTimezone, S[this.selectedLanguage])) : "-", " ", o("br", { key: "7fcd531af1cea5464ab08f9043aabb4cde0a91db" }), this.startTime, " - ", this.endTime)), o("div", { key: "8d2d827677bf300ad2b0f4dc2c28ac3777971af1", class: "booking-participants" }), !a && o("div", { class: "button-container" }, o("div", { class: {
81
84
  footer: !0,
82
85
  "no-footer": ((s = (t = this.configSettings) == null ? void 0 : t.scheduler) == null ? void 0 : s.hide_cancellation_options) && ((g = (c = this.configSettings) == null ? void 0 : c.scheduler) == null ? void 0 : g.hide_rescheduling_options) || ((h = this.configSettings) == null ? void 0 : h.booking_type) === "organizer-confirmation",
83
- "no-template-cols": !!((x = (C = this.configSettings) == null ? void 0 : C.scheduler) != null && x.hide_cancellation_options) || !!((z = (D = this.configSettings) == null ? void 0 : D.scheduler) != null && z.hide_rescheduling_options)
84
- } }, !((p = (m = this.configSettings) == null ? void 0 : m.scheduler) != null && p.hide_cancellation_options) && o("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${i.t("cancelBookingButton")}`), !((R = (T = this.configSettings) == null ? void 0 : T.scheduler) != null && R.hide_rescheduling_options) && o("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, disabled: this.isLoading, part: "nbec__button-outline nbec__reschedule-cta" }, `${i.t("rescheduleBookingButton")}`))))));
86
+ "no-template-cols": !!((x = (C = this.configSettings) == null ? void 0 : C.scheduler) != null && x.hide_cancellation_options) || !!((D = (B = this.configSettings) == null ? void 0 : B.scheduler) != null && D.hide_rescheduling_options)
87
+ } }, !((m = (u = this.configSettings) == null ? void 0 : u.scheduler) != null && m.hide_cancellation_options) && o("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${i.t("cancelBookingButton")}`), !((R = (T = this.configSettings) == null ? void 0 : T.scheduler) != null && R.hide_rescheduling_options) && o("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, disabled: this.isLoading, part: "nbec__button-outline nbec__reschedule-cta" }, `${i.t("rescheduleBookingButton")}`))))));
85
88
  }
86
89
  get host() {
87
90
  return E(this);
88
91
  }
89
92
  static get watchers() {
90
93
  return {
91
- themeConfig: ["themeConfigChanged"]
94
+ themeConfig: ["themeConfigChanged"],
95
+ selectedLanguage: ["selectedLanguageChangedHandler"]
92
96
  };
93
97
  }
94
98
  };
95
99
  We([
96
- B({
100
+ L({
97
101
  name: "nylas-booked-event-card",
98
102
  stateToProps: /* @__PURE__ */ new Map([
99
103
  ["scheduler.bookingInfo", "bookingInfo"],
@@ -166,7 +170,7 @@ const M = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
166
170
  }, this.handleBackButtonClicked = (a) => {
167
171
  a.preventDefault(), this.backButtonLoading = !0, this.backButtonClicked.emit();
168
172
  }, this.bookButtonClickedHandler = async (a) => {
169
- var h, C, x, D, z;
173
+ var h, C, x, B, D;
170
174
  if (a.preventDefault(), this.bookingFormSubmitted.emit().defaultPrevented)
171
175
  return;
172
176
  d("nylas-booking-form", "bookButtonClickedHandler", this.bookingInfo);
@@ -194,25 +198,25 @@ const M = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
194
198
  }
195
199
  let t = [];
196
200
  if (this.guestEmails.length > 0) {
197
- let m = !1;
198
- if (this.guestEmails.forEach((p, T) => {
199
- p === "" ? (m = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [T]: i.t("fieldRequired", { field: i.t("email") }) }) : M.test(p) || (m = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [T]: i.t("invalidInputFormat", { field: i.t("email") }) });
200
- }), m) {
201
+ let u = !1;
202
+ if (this.guestEmails.forEach((m, T) => {
203
+ m === "" ? (u = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [T]: i.t("fieldRequired", { field: i.t("email") }) }) : M.test(m) || (u = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [T]: i.t("invalidInputFormat", { field: i.t("email") }) });
204
+ }), u) {
201
205
  this.bookingFormError.emit({
202
206
  title: "Booking form error",
203
207
  description: i.t("invalidInputFormat", { field: i.t("guestEmail") }) || "Invalid guest email"
204
208
  });
205
209
  return;
206
210
  }
207
- t = this.guestEmails.map((p) => ({ name: p.trim(), email: p.trim() }));
211
+ t = this.guestEmails.map((m) => ({ name: m.trim(), email: m.trim() }));
208
212
  }
209
- const s = {}, c = ((C = (h = this.configSettings) == null ? void 0 : h.scheduler) == null ? void 0 : C.additional_fields) || {}, g = ((D = (x = this.configSettings) == null ? void 0 : x.booking) == null ? void 0 : D.additional_fields) || {};
210
- (z = this.bookingInfo) != null && z.additionalFields && Object.entries(this.bookingInfo.additionalFields).forEach(([m, p]) => {
211
- m in c && typeof p.value < "u" && (s[m] = p.value);
212
- }), Object.entries(c).forEach(([m, p]) => {
213
- if (!(m in s)) {
214
- const T = g[m] || p.default || "";
215
- s[m] = T;
213
+ const s = {}, c = ((C = (h = this.configSettings) == null ? void 0 : h.scheduler) == null ? void 0 : C.additional_fields) || {}, g = ((B = (x = this.configSettings) == null ? void 0 : x.booking) == null ? void 0 : B.additional_fields) || {};
214
+ (D = this.bookingInfo) != null && D.additionalFields && Object.entries(this.bookingInfo.additionalFields).forEach(([u, m]) => {
215
+ u in c && typeof m.value < "u" && (s[u] = m.value);
216
+ }), Object.entries(c).forEach(([u, m]) => {
217
+ if (!(u in s)) {
218
+ const T = g[u] || m.default || "";
219
+ s[u] = T;
216
220
  }
217
221
  }), this.detailsConfirmed.emit({
218
222
  primaryParticipant: {
@@ -224,7 +228,7 @@ const M = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
224
228
  });
225
229
  }, this.updateAdditionalFields = (a, n) => {
226
230
  this.additionalFields && (this.additionalFields[a] = n);
227
- }, this.isLoading = void 0, this.bookingInfo = void 0, this.eventInfo = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.selectedTimeslot = void 0, this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0;
231
+ }, this.isLoading = void 0, this.bookingInfo = void 0, this.eventInfo = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.selectedTimeslot = void 0, this.selectedLanguage = void 0, this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.namePatternError = "", this.nameRequiredError = "", this.emailPatternError = "", this.emailRequiredError = "", this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0;
228
232
  }
229
233
  connectedCallback() {
230
234
  }
@@ -250,6 +254,9 @@ const M = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
250
254
  themeConfigChanged(e) {
251
255
  this.applyThemeConfig(e);
252
256
  }
257
+ selectedLanguageChangedHandler(e, a) {
258
+ e !== a && (i.changeLanguage(e), this.namePatternError = i.t("invalidInputFormat", { field: i.t("name") }), this.nameRequiredError = i.t("fieldRequired", { field: i.t("name") }), this.emailPatternError = i.t("invalidInputFormat", { field: i.t("email") }), this.emailRequiredError = i.t("fieldRequired", { field: i.t("email") }));
259
+ }
253
260
  iterateFormComponents() {
254
261
  const e = this.formRef, a = [
255
262
  "input-component",
@@ -344,49 +351,49 @@ const M = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
344
351
  this.updateAdditionalFields(e.detail.name, e.detail.value);
345
352
  }
346
353
  render() {
347
- var a, n, l, r, t, s, c, g, h, C, x, D, z, m, p, T, R, ne, te, oe, le;
354
+ var a, n, l, r, t, s, c, g, h, C, x, B, D, u, m, T, R, ne, te, oe, le;
348
355
  const e = !!((a = this.selectedTimeslot) != null && a.event_id) && !!((n = this.selectedTimeslot) != null && n.capacity);
349
- return o(k, { key: "a61445ec4453e619fb5525d2089675923b7b6c95" }, o("form", { key: "c227ed38d49928a5707b85992d37473afe424a51", onSubmit: (_) => this.bookButtonClickedHandler(_), ref: (_) => this.formRef = _, noValidate: !0 }, o("div", { key: "425cbdafd7573f7c010df1a892db9d38ee54bc8a", class: "nylas-booking-form", part: "nbf" }, o("div", { key: "93506a3e9155ae24e4908265b35653701f3faf6f", class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { key: "7b54bbb3b3065785058dbdebc1f271b6b712e718", label: i.t("name"), name: "name", id: "name", defaultValue: ((r = (l = this.bookingInfo) == null ? void 0 : l.primaryParticipant) == null ? void 0 : r.name) || ((c = (s = (t = this.configSettings) == null ? void 0 : t.booking) == null ? void 0 : s.guest) == null ? void 0 : c.name) || this.name, placeholder: i.t("namePlaceholder"), type: "text", readOnly: ((h = (g = this.bookingInfo) == null ? void 0 : g.primaryParticipant) == null ? void 0 : h.nameReadOnly) || !1, required: !0, requiredError: i.t("fieldRequired", { field: i.t("name") }), patternError: i.t("invalidInputFormat", { field: i.t("name") }), part: "nbf__input-textfield" })), o("div", { key: "2d0b8ccc0390faae5a7e29c1c2c568418bb9bad5", class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { key: "61c6bed06d612ce4f0bb366cbe675048ad6fa49e", label: i.t("email"), name: "email", id: "email", pattern: M, defaultValue: ((x = (C = this.bookingInfo) == null ? void 0 : C.primaryParticipant) == null ? void 0 : x.email) || ((m = (z = (D = this.configSettings) == null ? void 0 : D.booking) == null ? void 0 : z.guest) == null ? void 0 : m.email) || this.email, placeholder: i.t("emailPlaceholder"), type: "email", readOnly: ((T = (p = this.bookingInfo) == null ? void 0 : p.primaryParticipant) == null ? void 0 : T.emailReadOnly) || !1, required: !0, requiredError: i.t("fieldRequired", { field: i.t("email") }), patternError: i.t("invalidInputFormat", { field: i.t("email") }), part: "nbf__input-textfield" })), ((ne = (R = this.configSettings) == null ? void 0 : R.scheduler) == null ? void 0 : ne.hide_additional_guests) !== !0 && o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((_, y) => o("div", { class: "input-wrapper button-wrapper" }, o("label", { class: {
356
+ return o(k, { key: "6659bdd250a39e69ecd8a4468b4f5bf5f3ced414" }, o("form", { key: "ee7e0b97a449cdb18fa474bb5950ebc34922265d", onSubmit: (_) => this.bookButtonClickedHandler(_), ref: (_) => this.formRef = _, noValidate: !0 }, o("div", { key: "b59b81ef1c13449b1e49608ef6faeebbce3fef4d", class: "nylas-booking-form", part: "nbf" }, o("div", { key: "cf75db4476ff5f8b013cbd349038a5945b9aecb0", class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { key: "9d5e5e2a2b3a64542bf7df48c0d4dc04bab2a468", label: i.t("name"), name: "name", id: "name", defaultValue: ((r = (l = this.bookingInfo) == null ? void 0 : l.primaryParticipant) == null ? void 0 : r.name) || ((c = (s = (t = this.configSettings) == null ? void 0 : t.booking) == null ? void 0 : s.guest) == null ? void 0 : c.name) || this.name, placeholder: i.t("namePlaceholder"), type: "text", readOnly: ((h = (g = this.bookingInfo) == null ? void 0 : g.primaryParticipant) == null ? void 0 : h.nameReadOnly) || !1, required: !0, requiredError: this.nameRequiredError, patternError: this.namePatternError, part: "nbf__input-textfield" })), o("div", { key: "d51c1ba6f352aaf611c04efd567d12df03adda6c", class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { key: "4fd09b511fd35c732fce53dba8d85d9f1f3e7dfd", label: i.t("email"), name: "email", id: "email", pattern: M, defaultValue: ((x = (C = this.bookingInfo) == null ? void 0 : C.primaryParticipant) == null ? void 0 : x.email) || ((u = (D = (B = this.configSettings) == null ? void 0 : B.booking) == null ? void 0 : D.guest) == null ? void 0 : u.email) || this.email, placeholder: i.t("emailPlaceholder"), type: "email", readOnly: ((T = (m = this.bookingInfo) == null ? void 0 : m.primaryParticipant) == null ? void 0 : T.emailReadOnly) || !1, required: !0, requiredError: this.emailRequiredError, patternError: this.emailPatternError, part: "nbf__input-textfield" })), ((ne = (R = this.configSettings) == null ? void 0 : R.scheduler) == null ? void 0 : ne.hide_additional_guests) !== !0 && o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((_, y) => o("div", { class: "input-wrapper button-wrapper" }, o("label", { class: {
350
357
  error: !!this.guestEmailErrors[y]
351
358
  } }, i.t("guestEmail")), o("div", { class: "guest-email-input" }, o("input", { type: "email", id: `guest-email-${y}`, maxLength: 100, class: {
352
359
  "guest-email": !0,
353
360
  error: !!this.guestEmailErrors[y]
354
- }, placeholder: i.t("guestEmailPlaceholder"), value: _, "data-index": y, part: "nbf__input-textfield", onBlur: (u) => {
361
+ }, placeholder: i.t("guestEmailPlaceholder"), value: _, "data-index": y, part: "nbf__input-textfield", onBlur: (p) => {
355
362
  var b;
356
- return this.handleGuestBlur(y, (b = u.target) == null ? void 0 : b.value);
357
- }, onInput: (u) => {
363
+ return this.handleGuestBlur(y, (b = p.target) == null ? void 0 : b.value);
364
+ }, onInput: (p) => {
358
365
  var b;
359
- return this.handleGuestChange(y, (b = u.target) == null ? void 0 : b.value);
360
- } }), o("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (u) => this.removeGuestButtonClickHandler(u, y), class: {
366
+ return this.handleGuestChange(y, (b = p.target) == null ? void 0 : b.value);
367
+ } }), o("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (p) => this.removeGuestButtonClickHandler(p, y), class: {
361
368
  "remove-guest": !0,
362
369
  error: !!this.guestEmailErrors[y]
363
370
  } }, o("close-icon", null))), o("p", { class: "help-text" }, this.guestEmailErrors[y]))), !e && o("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (_) => this.addGuestButtonClickedHandler(_) }, o("div", { class: "button-content" }, o("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${i.t("addAnotherGuest")}` : `${i.t("addGuest")}`))), (le = Object.entries(((oe = (te = this.configSettings) == null ? void 0 : te.scheduler) == null ? void 0 : oe.additional_fields) || {})) == null ? void 0 : le.sort((_, y) => _[1].order - y[1].order).map((_) => {
364
- var re, se, ie, ce, de, fe, ye, be, he, ge, me, pe, ue, ke;
365
- const y = _[1], u = y.label, b = _[0], v = ((ie = (se = (re = this.bookingInfo) == null ? void 0 : re.additionalFields) == null ? void 0 : se[b]) == null ? void 0 : ie.value) || ((fe = (de = (ce = this.configSettings) == null ? void 0 : ce.booking) == null ? void 0 : de.additional_fields) == null ? void 0 : fe[b]) || y.default || "", L = ((he = (be = (ye = this.bookingInfo) == null ? void 0 : ye.additionalFields) == null ? void 0 : be[b]) == null ? void 0 : he.readOnly) || !1;
371
+ var re, se, ie, ce, de, fe, ye, be, he, ge, ue, me, pe, ke;
372
+ const y = _[1], p = y.label, b = _[0], v = ((ie = (se = (re = this.bookingInfo) == null ? void 0 : re.additionalFields) == null ? void 0 : se[b]) == null ? void 0 : ie.value) || ((fe = (de = (ce = this.configSettings) == null ? void 0 : ce.booking) == null ? void 0 : de.additional_fields) == null ? void 0 : fe[b]) || y.default || "", z = ((he = (be = (ye = this.bookingInfo) == null ? void 0 : ye.additionalFields) == null ? void 0 : be[b]) == null ? void 0 : he.readOnly) || !1;
366
373
  switch (y.type) {
367
374
  case "dropdown":
368
- return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("select-dropdown", { label: u, name: b, id: b, readOnly: L, withSearch: !1, emptyValue: i.t("nylasBookingCalendarPicker.selectOptionLabel"), defaultSelectedOption: v ? { value: v, label: v } : void 0, options: [
375
+ return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("select-dropdown", { label: p, name: b, id: b, readOnly: z, withSearch: !1, emptyValue: i.t("nylasBookingCalendarPicker.selectOptionLabel"), defaultSelectedOption: v ? { value: v, label: v } : void 0, options: [
369
376
  { value: "", label: i.t("nylasBookingCalendarPicker.selectOptionLabel") },
370
377
  ...((ge = y.options) == null ? void 0 : ge.map((I) => ({ value: I, label: I }))) || []
371
- ], required: y.required, exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
378
+ ], required: y.required, errorMessage: i.t("fieldRequired", { field: p }), exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
372
379
  case "checkbox":
373
- return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("checkbox-component", { readOnly: L, label: u, name: b, id: b, checked: v === "true", required: y.required, part: "nbf__checkbox-component" }));
380
+ return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("checkbox-component", { readOnly: z, label: p, name: b, id: b, checked: v === "true", required: y.required, part: "nbf__checkbox-component" }));
374
381
  case "radio_button":
375
- return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("radio-button-group", { label: u, name: b, id: b, readOnly: L, defaultSelectedValue: v && ((me = y.options) != null && me.includes(v)) ? v : ((pe = y.options) == null ? void 0 : pe[0]) || "", options: (ue = y.options) == null ? void 0 : ue.map((I) => ({ value: I, label: I })), required: y.required, part: "nbf__radio-button-group" }));
382
+ return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("radio-button-group", { label: p, name: b, id: b, readOnly: z, defaultSelectedValue: v && ((ue = y.options) != null && ue.includes(v)) ? v : ((me = y.options) == null ? void 0 : me[0]) || "", options: (pe = y.options) == null ? void 0 : pe.map((I) => ({ value: I, label: I })), required: y.required, part: "nbf__radio-button-group" }));
376
383
  case "multi_line_text":
377
- return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("textarea-component", { readOnly: L, label: u, defaultValue: v, name: b, id: b, required: y.required, part: "nbf__textarea-component" }));
384
+ return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("textarea-component", { readOnly: z, label: p, defaultValue: v, name: b, id: b, required: y.required, part: "nbf__textarea-component" }));
378
385
  case "date":
379
- return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("nylas-date-component", { readOnly: L, label: u, defaultValue: v, name: b, id: b, required: y.required, part: "nbf__date-component" }));
386
+ return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("nylas-date-component", { readOnly: z, label: p, defaultValue: v, name: b, id: b, required: y.required, part: "nbf__date-component" }));
380
387
  case "multi_select": {
381
- const I = (v == null ? void 0 : v.split(",").map((j) => j.trim())) || [];
382
- return o("div", null, o("multi-select-dropdown", { label: u, name: b, id: b, readOnly: L, selectAtLeastOneOptionLabel: i.t("selectOneOrMoreOptions"), multipleOptionsSelectedLabel: i.t("multipleOptionsSelected"), options: (ke = y.options) == null ? void 0 : ke.map((j) => ({ value: j, label: j, selected: I.includes(j) })), required: y.required, exportparts: "msd_dropdown: nbf__ms_dropdown, msd_dropdown-label: nbf__ms_dropdown-label, msd_dropdown-button: nbf__ms_dropdown-button, msd_dropdown-content: nbf__ms_dropdown-content, msd_dropdown_error: nbf__ms_dropdown_error, msd_dropdown-button--error: nbf__ms_dropdown-button--error" }));
388
+ const I = (v == null ? void 0 : v.split(",").map((P) => P.trim())) || [];
389
+ return o("div", null, o("multi-select-dropdown", { label: p, name: b, id: b, readOnly: z, selectAtLeastOneOptionLabel: i.t("selectOneOrMoreOptions"), multipleOptionsSelectedLabel: i.t("multipleOptionsSelected"), options: (ke = y.options) == null ? void 0 : ke.map((P) => ({ value: P, label: P, selected: I.includes(P) })), required: y.required, exportparts: "msd_dropdown: nbf__ms_dropdown, msd_dropdown-label: nbf__ms_dropdown-label, msd_dropdown-button: nbf__ms_dropdown-button, msd_dropdown-content: nbf__ms_dropdown-content, msd_dropdown_error: nbf__ms_dropdown_error, msd_dropdown-button--error: nbf__ms_dropdown-button--error" }));
383
390
  }
384
391
  case "metadata":
385
392
  return null;
386
393
  default:
387
- return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { label: u, name: b, id: b, type: y.type, readOnly: L, defaultValue: v || "", requiredError: i.t("fieldRequired", { field: u }), required: y.required, part: "nbf__input-textfield" }));
394
+ return o("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, o("input-component", { label: p, name: b, id: b, type: y.type, readOnly: z, defaultValue: v || "", requiredError: i.t("fieldRequired", { field: p }), patternError: i.t("invalidInputFormat", { field: p }), required: y.required, part: "nbf__input-textfield" }));
388
395
  }
389
- })), o("div", { key: "808fd99c41558ea710610e70fbaac8e8c731eba6", class: "cta" }, o("button-component", { key: "d72719799742224c3d4ab7596a287e2e3f38187e", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, o("slot", { key: "280c1674e4aa7fca3f13ec1e680cccf140f6d600", name: "booking-form-back-label" }, `${i.t("backButton")}`)), o("button-component", { key: "a6d1131de56b24415c5665b4d82a9af714843bb7", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, o("slot", { key: "bc0f92e27c465efdfa67f5bda1d3b59cd4c4f389", name: "booking-form-book-label" }, `${i.t("bookNowButton")}`)))));
396
+ })), o("div", { key: "903b248bb07920e75736ff3b38c142cfd9748c3e", class: "cta" }, o("button-component", { key: "967df15c0a3ce75d07f5b78a3511f0412f8e8d1d", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, o("slot", { key: "c552facf14ba5ddecbf85f32b6976d2a19c74364", name: "booking-form-back-label" }, `${i.t("backButton")}`)), o("button-component", { key: "a07f122b3f9b4b89c049e868e71c993be0eb2da4", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, o("slot", { key: "91884303152748e6cdf080e32d1b78eab1fdd975", name: "booking-form-book-label" }, `${i.t("bookNowButton")}`)))));
390
397
  }
391
398
  get host() {
392
399
  return E(this);
@@ -395,12 +402,13 @@ const M = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-
395
402
  return {
396
403
  bookingInfo: ["bookingInfoChangedHandler"],
397
404
  configSettings: ["configSettingsChangedHandler"],
398
- themeConfig: ["themeConfigChanged"]
405
+ themeConfig: ["themeConfigChanged"],
406
+ selectedLanguage: ["selectedLanguageChangedHandler"]
399
407
  };
400
408
  }
401
409
  };
402
410
  Xe([
403
- B({
411
+ L({
404
412
  name: "nylas-booking-form",
405
413
  stateToProps: /* @__PURE__ */ new Map([
406
414
  ["scheduler.isLoading", "isLoading"],
@@ -408,7 +416,8 @@ Xe([
408
416
  ["scheduler.eventInfo", "eventInfo"],
409
417
  ["scheduler.configSettings", "configSettings"],
410
418
  ["scheduler.themeConfig", "themeConfig"],
411
- ["scheduler.selectedTimeslot", "selectedTimeslot"]
419
+ ["scheduler.selectedTimeslot", "selectedTimeslot"],
420
+ ["scheduler.selectedLanguage", "selectedLanguage"]
412
421
  ]),
413
422
  eventToProps: {
414
423
  backButtonClicked: async (e, a) => {
@@ -450,7 +459,7 @@ var Qe = function(e, a, n, l) {
450
459
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
451
460
  return Reflect.metadata(e, a);
452
461
  };
453
- const Be = class {
462
+ const Le = class {
454
463
  constructor(e) {
455
464
  var a, n;
456
465
  w(this, e), this.goBackButtonClicked = f(this, "goBackButtonClicked", 7), this.cancelBookingFormSubmitted = f(this, "cancelBookingFormSubmitted", 7), this.triggerValidation = f(this, "triggerValidation", 7), this.cancelBookedEventError = f(this, "cancelBookedEventError", 7), this.cancelBookingFormError = f(this, "cancelBookingFormError", 7), this.handleGoBackClicked = () => {
@@ -476,7 +485,7 @@ const Be = class {
476
485
  this.cancelBookedEventError.emit(h);
477
486
  };
478
487
  this.cancelBookingId ? this.cancelBookingFormSubmitted.emit({ bookingId: this.cancelBookingId, action: "cancel", reason: this.cancellationReason, errorHandler: t }) : this.rejectBookingId && this.cancelBookingFormSubmitted.emit({ bookingId: this.rejectBookingId, action: "reject", reason: this.cancellationReason, errorHandler: t });
479
- }, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.selectedTimeslot = void 0, this.configSettings = void 0, this.eventInfo = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.cancellationReason = "", this.cancellationError = "", this.cancellationPolicy = ((n = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : n.cancellation_policy) || "Your current timeslot will become available to others.";
488
+ }, this.cancelBookingId = void 0, this.rejectBookingId = void 0, this.selectedTimeslot = void 0, this.configSettings = void 0, this.eventInfo = void 0, this.isLoading = void 0, this.themeConfig = void 0, this.selectedLanguage = void 0, this.cancellationReason = "", this.cancellationError = "", this.cancellationPolicy = ((n = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : n.cancellation_policy) || "Your current timeslot will become available to others.";
480
489
  }
481
490
  configSettingsChangedHandler(e) {
482
491
  var a;
@@ -485,6 +494,9 @@ const Be = class {
485
494
  themeConfigChanged(e) {
486
495
  this.applyThemeConfig(e);
487
496
  }
497
+ selectedLanguageChangedHandler(e, a) {
498
+ e !== a && i.changeLanguage(e);
499
+ }
488
500
  connectedCallback() {
489
501
  d("[nylas-cancel-booking-form] Component connected");
490
502
  }
@@ -508,7 +520,7 @@ const Be = class {
508
520
  }
509
521
  render() {
510
522
  var e, a;
511
- return o(k, { key: "fadd772e62a6fcebcb4d8e9a3f9cea3fc689b310", part: "ncbf" }, o("div", { key: "2303b8e9cb36668cd1a7f0429d2587adc22e5a9e", class: "nylas-cancel-booking-form", part: "ncbf__card" }, o("div", { key: "669128a92b3df3413b520b426f92663cbbff69c6", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, o("calendar-cancel-icon", { key: "937705a14282087ecbb73477da36af8c131719f8" })), o("h3", { key: "2f5f3126c312353e347547e9cbed87cfb604837b", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, i.t("cancelBookingTitle")), o("div", { key: "e42825b3199b10de28813e9ed296fbe6a8811951", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (a = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && a.cancellation_policy ? this.cancellationPolicy : `${i.t("cancelBookingMessage")}`), o("form", { key: "d8f0c2b3ab2a598a05b69ebaa779f69f95390356", onSubmit: this.handleSubmitCancelBooking }, o("textarea-component", { key: "edaeec669058428d46ded041622d93e158c5837a", id: "cancel-reason", name: "cancel-reason", ref: (n) => this.textareaRef = n, required: !0, label: i.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), o("div", { key: "deb0f8441e371d110b587d47c9e5fb01174a3391", class: "footer" }, o("button-component", { key: "7671d441dbeaa05aa75ac6dd383373c121e81678", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, i.t("cancelBookingButton")), !!this.eventInfo && o("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, i.t("goBackButton"))))));
523
+ return o(k, { key: "3b22e6567ab54d6f2cb568d75fee896a643da4c8", part: "ncbf" }, o("div", { key: "f046c04a7e3960a64e7da64c9a65a76566224f7d", class: "nylas-cancel-booking-form", part: "ncbf__card" }, o("div", { key: "a979e7bea8d4ec498f52d06843d81f48720a0c8c", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, o("calendar-cancel-icon", { key: "85015b6f8078d9159f348ddf323f31dec8f705d4" })), o("h3", { key: "78ecd8321eb0a3c12abef90033d8244ffbfee674", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, i.t("cancelBookingTitle")), o("div", { key: "524ca54afd1054d39d732fc17af3d75ce7586eae", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (a = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && a.cancellation_policy ? this.cancellationPolicy : `${i.t("cancelBookingMessage")}`), o("form", { key: "997e3b3723ac23316214682b8f03714d22c73271", onSubmit: this.handleSubmitCancelBooking }, o("textarea-component", { key: "dd909a7998a66404c9ca4a0a880c65b8f38274d6", id: "cancel-reason", name: "cancel-reason", ref: (n) => this.textareaRef = n, required: !0, label: i.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), o("div", { key: "8a2331c8d00f1c6df904c3758fd5adcbb0a7095f", class: "footer" }, o("button-component", { key: "dd16407657ac2e6e181a213d172364d66466d2ad", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, i.t("cancelBookingButton")), !!this.eventInfo && o("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, i.t("goBackButton"))))));
512
524
  }
513
525
  get host() {
514
526
  return E(this);
@@ -516,12 +528,13 @@ const Be = class {
516
528
  static get watchers() {
517
529
  return {
518
530
  configSettings: ["configSettingsChangedHandler"],
519
- themeConfig: ["themeConfigChanged"]
531
+ themeConfig: ["themeConfigChanged"],
532
+ selectedLanguage: ["selectedLanguageChangedHandler"]
520
533
  };
521
534
  }
522
535
  };
523
536
  Qe([
524
- B({
537
+ L({
525
538
  name: "nylas-cancel-booking-form",
526
539
  stateToProps: /* @__PURE__ */ new Map([
527
540
  ["scheduler.configSettings", "configSettings"],
@@ -530,7 +543,8 @@ Qe([
530
543
  ["scheduler.isLoading", "isLoading"],
531
544
  ["scheduler.cancelBookingId", "cancelBookingId"],
532
545
  ["scheduler.rejectBookingId", "rejectBookingId"],
533
- ["scheduler.themeConfig", "themeConfig"]
546
+ ["scheduler.themeConfig", "themeConfig"],
547
+ ["scheduler.selectedLanguage", "selectedLanguage"]
534
548
  ]),
535
549
  eventToProps: {
536
550
  cancelBookingFormSubmitted: async (e, a) => {
@@ -562,8 +576,8 @@ Qe([
562
576
  Z("design:type", Function),
563
577
  Z("design:paramtypes", []),
564
578
  Z("design:returntype", void 0)
565
- ], Be.prototype, "render", null);
566
- Be.style = Ke;
579
+ ], Le.prototype, "render", null);
580
+ Le.style = Ke;
567
581
  const Ve = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-cancelled-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);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;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-cancelled-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.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%}button-component{width:100%}', ea = Ve;
568
582
  var aa = function(e, a, n, l) {
569
583
  var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
@@ -577,7 +591,7 @@ var aa = function(e, a, n, l) {
577
591
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
578
592
  return Reflect.metadata(e, a);
579
593
  };
580
- const De = class {
594
+ const Be = class {
581
595
  constructor(e) {
582
596
  w(this, e), this.closeCancelEventCardClicked = f(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = f(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
583
597
  this.isClosing = !0;
@@ -585,7 +599,10 @@ const De = class {
585
599
  this.cancelledEventCardError.emit(n), this.isClosing = !1;
586
600
  };
587
601
  this.closeCancelEventCardClicked.emit({ errorHandler: a });
588
- }, this.configSettings = void 0, this.themeConfig = void 0, this.cancelledEventInfo = void 0, this.isClosing = !1;
602
+ }, this.configSettings = void 0, this.themeConfig = void 0, this.selectedLanguage = void 0, this.cancelledEventInfo = void 0, this.isClosing = !1;
603
+ }
604
+ selectedLanguageChangedHandler(e, a) {
605
+ e !== a && i.changeLanguage(e);
589
606
  }
590
607
  themeConfigChanged(e) {
591
608
  this.applyThemeConfig(e);
@@ -609,24 +626,25 @@ const De = class {
609
626
  }
610
627
  render() {
611
628
  var e, a;
612
- return o(k, { key: "083fbbc7ef04f3e037a0fe3c2aa1dd70a8e1c049", part: "ncec" }, o("div", { key: "0955ff30d911fee7b8e63953ac127b72737e4835", class: "nylas-cancelled-event-card", part: "ncec__card" }, o("div", { key: "ef03e95d6193b50d9630ca7efd019c901efe30b3", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-cancel-icon", { key: "eb8436c4eda440723aa9ff667ca9489cfe913647" })), o("h3", { key: "1ca9672ad9493238bbd2f4a2a560c74bb165e077", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, i.t("bookingCancelledTitle"), "!"), o("div", { key: "49a5eea71ee9b1ec821795b974625f684d9af4a4", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, i.t("bookingCancelledMessage"), " ", ((a = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : a.name) || i.t("bookingCancelledMessage_theParticipants"), "."), o("div", { key: "c4680cc9a2765eeec5bf57be71f5c3a209f71a03", class: "nylas-cancelled-event-card__cta" }, o("button-component", { key: "a74c16a527d0f448ac18041d257cb64af7c7c1ba", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
629
+ return o(k, { key: "bde7d46555a6f6033089f6d49f853df1a7cd0dab", part: "ncec" }, o("div", { key: "a1be2ed4bead0b89572565d00ace39f9a3c0a50d", class: "nylas-cancelled-event-card", part: "ncec__card" }, o("div", { key: "e963d4ab8e599fac8809b3d264602cfc2954064a", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-cancel-icon", { key: "5cccb2a26d77253b99ed377366e312f114406d03" })), o("h3", { key: "9fed1c485eafff15e04d5a36c58488cc337de9e9", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, i.t("bookingCancelledTitle"), "!"), o("div", { key: "081f5d0b0615663c0e79aea7b70ea602375f9547", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, i.t("bookingCancelledMessage"), " ", ((a = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : a.name) || i.t("bookingCancelledMessage_theParticipants"), "."), o("div", { key: "697fbb9cccb9c665d35769f44ae16ff7a2a8ad36", class: "nylas-cancelled-event-card__cta" }, o("button-component", { key: "e4f77128ff98787aca19549e51406d5d88b6fe1a", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
613
630
  }
614
631
  get host() {
615
632
  return E(this);
616
633
  }
617
634
  static get watchers() {
618
635
  return {
636
+ selectedLanguage: ["selectedLanguageChangedHandler"],
619
637
  themeConfig: ["themeConfigChanged"]
620
638
  };
621
639
  }
622
640
  };
623
641
  aa([
624
- B({
642
+ L({
625
643
  name: "nylas-cancelled-event-card",
626
644
  stateToProps: /* @__PURE__ */ new Map([
627
645
  ["scheduler.configSettings", "configSettings"],
628
646
  ["scheduler.themeConfig", "themeConfig"],
629
- ["scheduler.themeConfig", "themeConfig"]
647
+ ["scheduler.selectedLanguage", "selectedLanguage"]
630
648
  ]),
631
649
  eventToProps: {
632
650
  closeCancelEventCardClicked: async (e, a) => {
@@ -642,9 +660,9 @@ aa([
642
660
  G("design:type", Function),
643
661
  G("design:paramtypes", []),
644
662
  G("design:returntype", void 0)
645
- ], De.prototype, "render", null);
646
- De.style = ea;
647
- const na = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-confirmed-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);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-confirmed-event-card{width:inherit}}.nylas-confirmed-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-confirmed-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-confirmed-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-confirmed-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%}button-component{width:100%}', ta = na;
663
+ ], Be.prototype, "render", null);
664
+ Be.style = ea;
665
+ const na = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-confirmed-event-card{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);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-confirmed-event-card{width:inherit}}.nylas-confirmed-event-card__title{font-size:18px;font-weight:600;line-height:24px;color:var(--nylas-base-900);text-align:center}.nylas-confirmed-event-description{font-size:16px;font-weight:500;color:var(--nylas-base-600)}.nylas-confirmed-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-confirmed-event-card__cta{width:100%;display:flex;flex-direction:row;align-items:flex-start;margin-top:1rem}calendar-check-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{width:100%}', ta = na;
648
666
  var oa = function(e, a, n, l) {
649
667
  var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
650
668
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -657,7 +675,7 @@ var oa = function(e, a, n, l) {
657
675
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
658
676
  return Reflect.metadata(e, a);
659
677
  };
660
- const ze = class {
678
+ const De = class {
661
679
  constructor(e) {
662
680
  w(this, e), this.closeConfirmEventCardClicked = f(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = f(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
663
681
  this.isClosing = !0;
@@ -665,11 +683,14 @@ const ze = class {
665
683
  this.confirmedEventCardError.emit(n), this.isClosing = !1;
666
684
  };
667
685
  this.closeConfirmEventCardClicked.emit({ errorHandler: a });
668
- }, this.configSettings = void 0, this.themeConfig = void 0, this.confirmedEventInfo = void 0, this.isClosing = !1;
686
+ }, this.configSettings = void 0, this.themeConfig = void 0, this.selectedLanguage = void 0, this.confirmedEventInfo = void 0, this.isClosing = !1;
669
687
  }
670
688
  themeConfigChanged(e) {
671
689
  this.applyThemeConfig(e);
672
690
  }
691
+ selectedLanguageChangedHandler(e, a) {
692
+ e !== a && i.changeLanguage(e);
693
+ }
673
694
  connectedCallback() {
674
695
  d("[nylas-confirmed-event-card] Component connected");
675
696
  }
@@ -689,23 +710,25 @@ const ze = class {
689
710
  }
690
711
  render() {
691
712
  var e, a;
692
- return o(k, { key: "ffdaf23bd9e627de16d532d89f5b4a080f8ec88c", part: "ncec" }, o("div", { key: "3214b0e02823397ffe659c0d77cdeb26104b416e", class: "nylas-confirmed-event-card", part: "ncec__card" }, o("div", { key: "79f921d70421c441ca2feb896099a050aaac42d1", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-cancel-icon", { key: "9c6386bf2cdd198f47af7b8244d930a7f451a4c1" })), o("h3", { key: "be5603a03255b90cd62a2f48b11ee70ae6c7a697", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, i.t("confirmedEventCardTitle"), "!"), o("div", { key: "88fe62604c3b31332b14b50701e25b8e7fc414b6", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, i.t("confirmedEventCardDescription"), " ", ((a = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : a.name) || "the participants", "."), o("div", { key: "0394b324bcb9c8c3ba99f837e7831e1507b0f52a", class: "nylas-confirmed-event-card__cta" }, o("button-component", { key: "2f04fbc0c973cd2a95337f3edf4d5354fd219fb8", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
713
+ return o(k, { key: "196444e0b93a298fd4107589a7ffbba19895fe05", part: "ncec" }, o("div", { key: "a421437ec16e3354d51a0eed4e31c7c0de557278", class: "nylas-confirmed-event-card", part: "ncec__card" }, o("div", { key: "0da3ba5fcff4b46951adf128d4d4e6493860d56c", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, o("calendar-check-icon", { key: "a02d08a2367f962607651557eaa5fb7b9d8b75cf" })), o("h3", { key: "0494ca0a842a597bbc40cd3c720d2faf10d6b103", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, i.t("confirmedEventCardTitle"), "!"), o("div", { key: "4473fce54b8ad6176286f84cbd5554c8323312f0", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, i.t("confirmedEventCardDescription"), " ", ((a = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : a.name) || "the participants", "."), o("div", { key: "c0c17c8bccb4bc4b017a4a6aba62cdd48ebeea5a", class: "nylas-confirmed-event-card__cta" }, o("button-component", { key: "1dcb13cff4958b4549125c5457c9ab1e05078316", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${i.t("closingButton")}...` : `${i.t("closeButton")}`))));
693
714
  }
694
715
  get host() {
695
716
  return E(this);
696
717
  }
697
718
  static get watchers() {
698
719
  return {
699
- themeConfig: ["themeConfigChanged"]
720
+ themeConfig: ["themeConfigChanged"],
721
+ selectedLanguage: ["selectedLanguageChangedHandler"]
700
722
  };
701
723
  }
702
724
  };
703
725
  oa([
704
- B({
726
+ L({
705
727
  name: "nylas-confirmed-event-card",
706
728
  stateToProps: /* @__PURE__ */ new Map([
707
729
  ["scheduler.configSettings", "configSettings"],
708
- ["scheduler.themeConfig", "themeConfig"]
730
+ ["scheduler.themeConfig", "themeConfig"],
731
+ ["scheduler.selectedLanguage", "selectedLanguage"]
709
732
  ]),
710
733
  eventToProps: {
711
734
  closeConfirmEventCardClicked: async (e, a) => {
@@ -718,10 +741,10 @@ oa([
718
741
  W("design:type", Function),
719
742
  W("design:paramtypes", []),
720
743
  W("design:returntype", void 0)
721
- ], ze.prototype, "render", null);
722
- ze.style = ta;
744
+ ], De.prototype, "render", null);
745
+ De.style = ta;
723
746
  const U = /* @__PURE__ */ new Date(), Y = /* @__PURE__ */ new Date();
724
- function H(e, a, n, l) {
747
+ function $(e, a, n, l) {
725
748
  function r(t) {
726
749
  return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
727
750
  }
@@ -737,7 +760,7 @@ function H(e, a, n, l) {
737
760
  g.push(h = /* @__PURE__ */ new Date(+t)), a(t, c), e(t);
738
761
  while (h < t && t < s);
739
762
  return g;
740
- }, r.filter = (t) => H((s) => {
763
+ }, r.filter = (t) => $((s) => {
741
764
  if (s >= s)
742
765
  for (; e(s), !t(s); )
743
766
  s.setTime(s - 1);
@@ -753,22 +776,22 @@ function H(e, a, n, l) {
753
776
  ;
754
777
  }), n && (r.count = (t, s) => (U.setTime(+t), Y.setTime(+s), e(U), e(Y), Math.floor(n(U, Y))), r.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? r.filter(l ? (s) => l(s) % t === 0 : (s) => r.count(0, s) % t === 0) : r)), r;
755
778
  }
756
- const la = 1e3, Le = la * 60, ra = Le * 60, $ = ra * 24, X = H(
779
+ const la = 1e3, ze = la * 60, ra = ze * 60, H = ra * 24, X = $(
757
780
  (e) => e.setHours(0, 0, 0, 0),
758
781
  (e, a) => e.setDate(e.getDate() + a),
759
- (e, a) => (a - e - (a.getTimezoneOffset() - e.getTimezoneOffset()) * Le) / $,
782
+ (e, a) => (a - e - (a.getTimezoneOffset() - e.getTimezoneOffset()) * ze) / H,
760
783
  (e) => e.getDate() - 1
761
784
  );
762
- H((e) => {
785
+ $((e) => {
763
786
  e.setUTCHours(0, 0, 0, 0);
764
787
  }, (e, a) => {
765
788
  e.setUTCDate(e.getUTCDate() + a);
766
- }, (e, a) => (a - e) / $, (e) => e.getUTCDate() - 1);
767
- H((e) => {
789
+ }, (e, a) => (a - e) / H, (e) => e.getUTCDate() - 1);
790
+ $((e) => {
768
791
  e.setUTCHours(0, 0, 0, 0);
769
792
  }, (e, a) => {
770
793
  e.setUTCDate(e.getUTCDate() + a);
771
- }, (e, a) => (a - e) / $, (e) => Math.floor(e / $));
794
+ }, (e, a) => (a - e) / H, (e) => Math.floor(e / H));
772
795
  const sa = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}@media screen and (max-width: 768px){:host{min-height:auto}}.nylas-date-picker{display:flex;gap:1rem;flex-direction:column}.header{margin:0 0.5rem;height:48px}.header h2{font-size:1.3125rem;font-weight:400;line-height:1rem;color:var(--nylas-base-800)}.header h2 strong{font-weight:600}.title{margin:0 -1.25rem;display:flex;flex-direction:column;padding:0 1.5rem;gap:0.5rem;border-bottom:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);color:var(--nylas-base-800)}.title h1{max-width:376px;margin-bottom:0;font-size:18px;line-height:20px;font-weight:600;display:flex;gap:0.5rem;align-items:center}.title p{margin-top:0;font-size:16px;display:flex;gap:0.5rem;align-items:center}@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:24px}.dates .date{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:48px;width:48px;min-width:2rem;min-height:2rem;cursor:pointer;border-radius:var(--nylas-border-radius-2x);font-size: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:-webkit-fill-available;width:-moz-available;width:fill-available}}@media screen and (max-width: 412px){.dates .date{height:38px;min-width:none}}.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:700}.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:12px;color:var(--nylas-base-800);font-weight:600;letter-spacing:0.5px;height:32px;display:flex;align-items:center}@media screen and (max-width: 768px){.dates .day{font-size:14px}}.dates .date.day-skeleton{height:48px;width:48px;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: 412px){.dates .date.day-skeleton{width:38px;height:38px;min-width:none}}.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)}', ia = sa;
773
796
  var ca = function(e, a, n, l) {
774
797
  var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
@@ -831,7 +854,7 @@ const Ie = class {
831
854
  this.host.style.setProperty(`${a}`, n);
832
855
  }
833
856
  getDates() {
834
- const e = $e(this.month), a = He(this.month);
857
+ const e = He(this.month), a = $e(this.month);
835
858
  return X.range(X.offset(a, -a.getDay()), X.offset(e, 7 - e.getDay()));
836
859
  }
837
860
  selectDate(e) {
@@ -851,7 +874,7 @@ const Ie = class {
851
874
  }
852
875
  render() {
853
876
  var e, a, n, l, r, t;
854
- return o(k, { key: "36322bd1badb927a3d8505334c339b220a81c946", part: "ndp" }, o("div", { key: "666e06338a8be95fdf5a18d0d5e1db006ce0623e", class: "nylas-date-picker" }, o("div", { key: "7429e08d3dc984205a07efb8a7a0dc21d8b3b6b2", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? o("h1", null, (a = this.configSettings) == null ? void 0 : a.name) : ((l = (n = this.configSettings) == null ? void 0 : n.organizer) == null ? void 0 : l.name) && o("h1", null, o("person-icon", null), ((t = (r = this.configSettings) == null ? void 0 : r.organizer) == null ? void 0 : t.name) || "Organizer"), o("p", { key: "a5b1770d7f39d173a37f4ee627645f43230b83eb" }, o("clock-icon", { key: "383105a9bfdb7e45e414941c06278de8b73e705f" }), this.eventDuration ? Ne(this.eventDuration) : `- ${i.t("time.minutes")}`)), o("div", { key: "91cd7691b593bd8af1bd930f0206cc284826ee83", class: "header flex-row" }, o("h2", { key: "c490b7fe8a6a04ba8fda318b41a7ad5db9c13d0c", part: "ndp__month-header" }, o("strong", { key: "bfe557291e300cc8ec876d889909168fa5cd798b" }, Ae(this.month.toLocaleDateString("en-US", { month: "long" }).toLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), o("div", { key: "a19535626041e7cb3550aabd677fd788bf003b03", class: "pagination" }, o("button", { key: "6174f0128f51c6ad814473425da3e983e1dd80bc", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, o("chevron-icon", { key: "9c6c965ca7273205229ee6f3918226588b9cceb6" })), o("button", { key: "d83a846832a897e8a35242093ba01fc04497b0ff", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, o("chevron-icon", { key: "b7106b3807f93e73eb86102a7ce4b81997a2c57a" })))), o("div", { key: "3c5809a8f1447005d82a75bc035a52918397a423", class: "dates" }, [
877
+ return o(k, { key: "ecd613f2fec98a00bbb10ac6363097ebede0185d", part: "ndp" }, o("div", { key: "33bb461fca297b69b85ab9f8d17cddb51593dde8", class: "nylas-date-picker" }, o("div", { key: "4da1d51d7bb36838923263563c2f6b1331542fda", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? o("h1", null, (a = this.configSettings) == null ? void 0 : a.name) : ((l = (n = this.configSettings) == null ? void 0 : n.organizer) == null ? void 0 : l.name) && o("h1", null, o("person-icon", null), ((t = (r = this.configSettings) == null ? void 0 : r.organizer) == null ? void 0 : t.name) || "Organizer"), o("p", { key: "8ad906a6b34220b4d35f8dcd1c642d14c3f7293a" }, o("clock-icon", { key: "11d2b21b9ba5fb9a31f9694fc2eaa417b6743957" }), this.eventDuration ? Ne(this.eventDuration) : `- ${i.t("time.minutes")}`)), o("div", { key: "676de20b5616fdbb439567ca27f972040a086b70", class: "header flex-row" }, o("h2", { key: "aa60c555eb8bd7b3ef1ee033b8fc1b74f5a78cdb", part: "ndp__month-header" }, o("strong", { key: "7661ad8cf3c91063617a953aba02c74202910803" }, Ae(this.month.toLocaleDateString("en-US", { month: "long" }).toLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), o("div", { key: "dc4087fff602efe458a75b542cf845e6c1599532", class: "pagination" }, o("button", { key: "34754cf95f2645641597a82b66805e1d92e8122d", title: "Previous month", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, o("chevron-icon", { key: "376aba646a4910ab430ec239f6ccab083df41334" })), o("button", { key: "01e5e39d56246416bc9270f6a0c2d32202db339a", title: "Next month", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, o("chevron-icon", { key: "492223b45186485d55e403a16d75e08c25a070f5" })))), o("div", { key: "c506414f7ae93d4b995054afa18a313ce02c2ca6", class: "dates" }, [
855
878
  i.t("days.sunday"),
856
879
  i.t("days.monday"),
857
880
  i.t("days.tuesday"),
@@ -888,7 +911,7 @@ const Ie = class {
888
911
  }
889
912
  };
890
913
  ca([
891
- B({
914
+ L({
892
915
  name: "nylas-date-picker",
893
916
  stateToProps: /* @__PURE__ */ new Map([
894
917
  ["scheduler.selectableDates", "selectableDates"],
@@ -972,16 +995,16 @@ const Se = class {
972
995
  alignItems: "center",
973
996
  justifyContent: "space-between",
974
997
  width: "-webkit-fill-available"
975
- } }, P[e], " ", o("span", { class: "timezone-offset", style: {
998
+ } }, j[e], " ", o("span", { class: "timezone-offset", style: {
976
999
  fontSize: "14px",
977
1000
  fontWeight: "400",
978
1001
  color: "var(--nylas-base-500)"
979
1002
  } }, a));
980
1003
  }
981
1004
  render() {
982
- const e = Object.keys(P).map((n) => ({
1005
+ const e = Object.keys(j).map((n) => ({
983
1006
  labelHTML: this.getTimezoneLabelHTML(n),
984
- label: P[n],
1007
+ label: j[n],
985
1008
  value: n
986
1009
  })), a = Object.keys(_e).map((n) => ({
987
1010
  label: _e[n],
@@ -1006,7 +1029,7 @@ const Se = class {
1006
1029
  }
1007
1030
  };
1008
1031
  ya([
1009
- B({
1032
+ L({
1010
1033
  name: "nylas-locale-switch",
1011
1034
  stateToProps: /* @__PURE__ */ new Map([
1012
1035
  ["scheduler.selectedLanguage", "selectedLanguage"],
@@ -1038,8 +1061,8 @@ const ba = ".sc-nylas-logo-h{display:flex}", ha = ba, ga = class {
1038
1061
  }
1039
1062
  };
1040
1063
  ga.style = ha;
1041
- const ma = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.event-card-wrapper{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;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);color:var(--nylas-base-700)}.booked-event-header{margin:1.5rem 4rem;overflow-wrap:anywhere;display:flex;align-items:center;flex-direction:column;font-size:16px;font-weight:400}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.25rem;font-size:1.125rem;font-weight:600}.manage-booking-description{border-top:1px solid var(--nylas-base-200)}.manage-booking-description p{font-size:16px;margin:1rem;padding:0.5rem 1rem;font-weight:400;color:var(--nylas-base-800)}.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)}.footer.no-template-cols{grid-template-columns:1fr}.footer.no-footer{display:none}sp-divider{background-color:var(--nylas-base-200);height:1px}calendar-check-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{--dot-color:var(--nylas-base-700)}', pa = ma;
1042
- var ua = function(e, a, n, l) {
1064
+ const ua = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.event-card-wrapper{height:inherit;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;margin-top:1rem;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);color:var(--nylas-base-700)}.booked-event-header{margin:1.5rem 4rem;overflow-wrap:anywhere;display:flex;align-items:center;flex-direction:column;font-size:16px;font-weight:400}.booked-event-header h2{color:var(--nylas-base-600);margin-top:1.5rem;margin-bottom:0.25rem;font-size:1.125rem;font-weight:600}.manage-booking-description{border-top:1px solid var(--nylas-base-200)}.manage-booking-description p{font-size:16px;margin:1rem;padding:0.5rem 1rem;font-weight:400;color:var(--nylas-base-800)}.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)}.footer.no-template-cols{grid-template-columns:1fr}.footer.no-footer{display:none}sp-divider{background-color:var(--nylas-base-200);height:1px}calendar-check-icon{display:flex;align-items:center;justify-content:center;height:100%}button-component{--dot-color:var(--nylas-base-700)}', ma = ua;
1065
+ var pa = function(e, a, n, l) {
1043
1066
  var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
1044
1067
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1045
1068
  t = Reflect.decorate(e, a, n, l);
@@ -1066,6 +1089,9 @@ const Re = class {
1066
1089
  themeConfigChanged(e) {
1067
1090
  this.applyThemeConfig(e);
1068
1091
  }
1092
+ selectedLanguageChangedHandler(e, a) {
1093
+ e !== a && i.changeLanguage(e);
1094
+ }
1069
1095
  connectedCallback() {
1070
1096
  }
1071
1097
  disconnectedCallback() {
@@ -1085,21 +1111,22 @@ const Re = class {
1085
1111
  this.action = null;
1086
1112
  }
1087
1113
  render() {
1088
- return o(k, { key: "ea028ee518207be98291286cc0a7643be3fb944d", part: "nmcc" }, o("div", { key: "43b3b94748e512be15acb93ed9d0125c55fa5c95", class: "event-card-wrapper", part: "nmccc__card" }, o("div", { key: "d95beee7809ee3879cd1ce400de50f351ecf558f", class: "calendar-icon" }, o("calendar-check-icon", { key: "119f6e93c66606f7deb7df04978cdeedeebc351a" })), o("div", { key: "1fd6e30323bac94800e3b9f66602bff04a677a5c", class: "booked-event-header" }, o("h2", { key: "35a048d55fcb004f1b9474b36fa113c27f3be475", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${i.t("bookingPendingTitle")}!`)), o("div", { key: "deaba7be7cd3e7715eda8b386e26c6a3a57dcf4d", class: "manage-booking-description" }, o("p", { key: "fbbfbbcac7daeca983ee8fff5503395e6b1794f7" }, i.t("bookingPendingnDescription"))), o("div", { key: "baa99e33655bc7a7f87552e843cf104dce094699", class: {
1114
+ return o(k, { key: "685c64fd73ed2cd97647ddabb84201e0f79ea8cf", part: "nmcc" }, o("div", { key: "70e4b4ae0a3b4df1ced7f0629baf088786e10da7", class: "event-card-wrapper", part: "nmccc__card" }, o("div", { key: "4bab8a23c09d2c73fd57c3fd320ddc60bcd4ad3f", class: "calendar-icon" }, o("calendar-check-icon", { key: "20a288c36cdf0532b4fb8520e25057e05bbb9c67" })), o("div", { key: "23fd0069fe2805be74da6b1fb9c0b2a90a41f004", class: "booked-event-header" }, o("h2", { key: "ebf3b7a83f62844fc7afcb34d80b7a19162424bf", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${i.t("bookingPendingTitle")}!`)), o("div", { key: "5b1736ec457c881496302a1e62cd8ebe6695c1dc", class: "manage-booking-description" }, o("p", { key: "97199b19d7bc741afe565733fa112fbc66308c75" }, i.t("bookingPendingnDescription"))), o("div", { key: "e305f35b16ec685bb9af4cb9f66d5e43db4edf9b", class: {
1089
1115
  footer: !0
1090
- } }, o("button-component", { key: "a9a43d43cbe27235f9cec4a4e05913917d856455", variant: "destructive", onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === "reject", part: "nmcc__button-outline nmcc__cancel-cta" }, `${i.t("rejectBookingButton")}`), o("button-component", { key: "b3cbfad56b7bf732cf76643c44df06f2817a57f8", variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${i.t("confirmBookingButton")}`))));
1116
+ } }, o("button-component", { key: "a25bdb447e29fc415f0381a8ba73a36937fd9435", variant: "destructive", onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === "reject", part: "nmcc__button-outline nmcc__cancel-cta" }, `${i.t("rejectBookingButton")}`), o("button-component", { key: "ac814b5239c359decd43506b7981ac8d975d5416", variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${i.t("confirmBookingButton")}`))));
1091
1117
  }
1092
1118
  get host() {
1093
1119
  return E(this);
1094
1120
  }
1095
1121
  static get watchers() {
1096
1122
  return {
1097
- themeConfig: ["themeConfigChanged"]
1123
+ themeConfig: ["themeConfigChanged"],
1124
+ selectedLanguage: ["selectedLanguageChangedHandler"]
1098
1125
  };
1099
1126
  }
1100
1127
  };
1101
- ua([
1102
- B({
1128
+ pa([
1129
+ L({
1103
1130
  name: "nylas-organizer-confirmation-card",
1104
1131
  stateToProps: /* @__PURE__ */ new Map([
1105
1132
  ["scheduler.organizerConfirmationBookingId", "organizerConfirmationBookingId"],
@@ -1126,7 +1153,7 @@ ua([
1126
1153
  Q("design:paramtypes", []),
1127
1154
  Q("design:returntype", void 0)
1128
1155
  ], Re.prototype, "render", null);
1129
- Re.style = pa;
1156
+ Re.style = ma;
1130
1157
  const ka = ':host{--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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;display:block;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;gap:4px;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 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.event-card{margin-bottom:2rem}}.nylas-selected-event-card__date{font-size:min(max(16px, 3vw), 18px);font-weight:600}.nylas-selected-event-card__time{font-size: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:8px;gap:4px;align-items:center}@media screen and (max-width: 768px){.event-timezone{margin-bottom:16px}}', va = ka;
1131
1158
  var Ca = function(e, a, n, l) {
1132
1159
  var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
@@ -1140,13 +1167,16 @@ var Ca = function(e, a, n, l) {
1140
1167
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1141
1168
  return Reflect.metadata(e, a);
1142
1169
  };
1143
- const je = class {
1170
+ const Pe = class {
1144
1171
  constructor(e) {
1145
1172
  w(this, e), this.themeConfig = void 0, this.selectedDate = void 0, this.selectedTimeslot = void 0, this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = void 0, this.hour12 = void 0, this.startTime = "", this.endTime = "";
1146
1173
  }
1147
1174
  themeConfigChanged(e) {
1148
1175
  this.applyThemeConfig(e);
1149
1176
  }
1177
+ selectedLanguageChangedHandler(e, a) {
1178
+ e !== a && i.changeLanguage(e);
1179
+ }
1150
1180
  connectedCallback() {
1151
1181
  }
1152
1182
  disconnectedCallback() {
@@ -1172,19 +1202,20 @@ const je = class {
1172
1202
  }
1173
1203
  render() {
1174
1204
  var e;
1175
- return o(k, { key: "22b7e4f0f55d7a75188ebd3e8cc009497ad5a598", part: "nsec" }, o("div", { key: "0082bd129fe4704e4bf9bcc82ab401f7c50237fe", class: "event-card", part: "nsec__card" }, o("div", { key: "37093be5b192f8a8a533cb677b432df2cec80d14", class: "calendar-icon", part: "nsec__icon" }, o("calendar-icon", { key: "253a63fa567065c7a12f6fc8b82333568b52b777" })), o("div", { key: "a2d5218bd85c6f94652b0f24a11e68f53a8920d3", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? we(xe((e = this.selectedTimeslot) == null ? void 0 : e.start_time, this.selectedTimezone, S[this.selectedLanguage || "en"])) : "-"), o("div", { key: "2f11d6deedb50cb0d7b3e9791088266e06cdca1e", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), o("div", { key: "634bd96488b5b1a51064c9bf015b054648f43011", class: "event-timezone", part: "nsec__timezone" }, o("globe-icon", { key: "b327dfa7747116da0ab29ddebcb6d20c82a0a80b" }), P[this.selectedTimezone]));
1205
+ return o(k, { key: "94fd07366e885e81fb62049c5a44fe6679897aba", part: "nsec" }, o("div", { key: "8ca223250ff59a898eae64b4eaf1ad24e690d3a7", class: "event-card", part: "nsec__card" }, o("div", { key: "77c0fbd4495f0811e5bb05ea95f59d4b2bad90af", class: "calendar-icon", part: "nsec__icon" }, o("calendar-icon", { key: "3c1a395ec15145153c3d0d4b4986aea9a7943ddf" })), o("div", { key: "1c5ed82612ce165f89bd240b21482c916dbf166b", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? we(xe((e = this.selectedTimeslot) == null ? void 0 : e.start_time, this.selectedTimezone, S[this.selectedLanguage || "en"])) : "-"), o("div", { key: "e62af1aba1c260d178f1cc95f3405e94448cdf29", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), o("div", { key: "6eea1eca90bde0bb49a747ad8ed3a5ca57971db4", class: "event-timezone", part: "nsec__timezone" }, o("globe-icon", { key: "feac1b95d2177a39f84648ec0e8356026ebc9ef7" }), j[this.selectedTimezone]));
1176
1206
  }
1177
1207
  get host() {
1178
1208
  return E(this);
1179
1209
  }
1180
1210
  static get watchers() {
1181
1211
  return {
1182
- themeConfig: ["themeConfigChanged"]
1212
+ themeConfig: ["themeConfigChanged"],
1213
+ selectedLanguage: ["selectedLanguageChangedHandler"]
1183
1214
  };
1184
1215
  }
1185
1216
  };
1186
1217
  Ca([
1187
- B({
1218
+ L({
1188
1219
  name: "nylas-selected-event-card",
1189
1220
  stateToProps: /* @__PURE__ */ new Map([
1190
1221
  ["scheduler.selectedDate", "selectedDate"],
@@ -1200,8 +1231,8 @@ Ca([
1200
1231
  V("design:type", Function),
1201
1232
  V("design:paramtypes", []),
1202
1233
  V("design:returntype", void 0)
1203
- ], je.prototype, "render", null);
1204
- je.style = va;
1234
+ ], Pe.prototype, "render", null);
1235
+ Pe.style = va;
1205
1236
  const _a = ':host{display:block;height:calc(100% - 48px);--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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.time-picker-wrapper{display:flex;flex-direction:column;height:100%}.timeslots{position:relative;display:flex;flex-direction:column;gap:0.75rem;align-items:center;overflow-y:scroll;padding:0.5rem 1.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: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,.time:focus{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)}.time .time-label{display:flex;flex-direction:column;align-items:center;gap:4px}.time .time-label span.spots{font-size:14px;font-family:var(--nylas-font-family);font-weight:400;color:var(--nylas-base-600)}.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 .timeslot-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:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}', wa = _a;
1206
1237
  var xa = function(e, a, n, l) {
1207
1238
  var r = arguments.length, t = r < 3 ? a : l === null ? l = Object.getOwnPropertyDescriptor(a, n) : l, s;
@@ -1215,7 +1246,7 @@ var xa = function(e, a, n, l) {
1215
1246
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1216
1247
  return Reflect.metadata(e, a);
1217
1248
  };
1218
- const Pe = class {
1249
+ const je = class {
1219
1250
  constructor(e) {
1220
1251
  w(this, e), this.timeslotSelected = f(this, "timeslotSelected", 7), this.timeslotConfirmed = f(this, "timeslotConfirmed", 7), this.validateTimeslotError = f(this, "validateTimeslotError", 7), this.handleConfirmedTimeslot = async (a, n) => {
1221
1252
  a.preventDefault(), d("[nylas-timeslot-picker] Confirm timeslot", n), n && this.timeslotConfirmed.emit({ timeslot: n, host: this.host });
@@ -1321,7 +1352,7 @@ const Pe = class {
1321
1352
  }
1322
1353
  };
1323
1354
  xa([
1324
- B({
1355
+ L({
1325
1356
  name: "nylas-timeslot-picker",
1326
1357
  stateToProps: /* @__PURE__ */ new Map([
1327
1358
  ["scheduler.selectedDate", "selectedDate"],
@@ -1359,18 +1390,18 @@ xa([
1359
1390
  ee("design:type", Function),
1360
1391
  ee("design:paramtypes", []),
1361
1392
  ee("design:returntype", void 0)
1362
- ], Pe.prototype, "render", null);
1363
- Pe.style = wa;
1393
+ ], je.prototype, "render", null);
1394
+ je.style = wa;
1364
1395
  export {
1365
1396
  Te as nylas_booked_event_card,
1366
1397
  Ee as nylas_booking_form,
1367
- Be as nylas_cancel_booking_form,
1368
- De as nylas_cancelled_event_card,
1369
- ze as nylas_confirmed_event_card,
1398
+ Le as nylas_cancel_booking_form,
1399
+ Be as nylas_cancelled_event_card,
1400
+ De as nylas_confirmed_event_card,
1370
1401
  Ie as nylas_date_picker,
1371
1402
  Se as nylas_locale_switch,
1372
1403
  ga as nylas_logo,
1373
1404
  Re as nylas_organizer_confirmation_card,
1374
- je as nylas_selected_event_card,
1375
- Pe as nylas_timeslot_picker
1405
+ Pe as nylas_selected_event_card,
1406
+ je as nylas_timeslot_picker
1376
1407
  };