@nylas/react 1.3.2 → 1.3.4

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 (149) hide show
  1. package/dist/add-circle-icon.entry-321c1dd1.js +15 -0
  2. package/dist/{add-circle-icon.entry-10f2c319.cjs → add-circle-icon.entry-dcc45961.cjs} +1 -1
  3. package/dist/archive-icon.entry-715e139b.js +15 -0
  4. package/dist/archive-icon.entry-c4da9f4f.cjs +1 -0
  5. package/dist/{arrow-icon.entry-7fd7c18e.js → arrow-icon.entry-9311463c.js} +2 -2
  6. package/dist/{arrow-icon.entry-954f2ba8.cjs → arrow-icon.entry-bdccce8a.cjs} +1 -1
  7. package/dist/{bold-icon.entry-e970c498.cjs → bold-icon.entry-06fa4738.cjs} +1 -1
  8. package/dist/{bold-icon.entry-690ecac8.js → bold-icon.entry-c531dff1.js} +4 -4
  9. package/dist/{button-component_2.entry-b57d03fc.js → button-component_2.entry-5aad0ec4.js} +9 -9
  10. package/dist/{button-component_2.entry-b7d39903.cjs → button-component_2.entry-db911efe.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_53.entry-7792b45c.js → calendar-agenda-fill-icon_53.entry-6f1aa42c.js} +1941 -1513
  12. package/dist/calendar-agenda-fill-icon_53.entry-affead77.cjs +6 -0
  13. package/dist/{calendar-cancel-icon.entry-8cd02237.cjs → calendar-cancel-icon.entry-3bd1c8e9.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-5757c056.js → calendar-cancel-icon.entry-59375bc4.js} +4 -4
  15. package/dist/{calendar-check-icon_2.entry-6864b9d5.js → calendar-check-icon_2.entry-1ca369b6.js} +7 -7
  16. package/dist/{calendar-check-icon_2.entry-4f59d206.cjs → calendar-check-icon_2.entry-540dde9d.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-0b1edb49.cjs → calendar-icon.entry-1d9773d5.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-3798880d.js → calendar-icon.entry-66517be4.js} +5 -5
  19. package/dist/checkbox-component_3.entry-3918885e.cjs +1 -0
  20. package/dist/{checkbox-component_3.entry-3d9fa7b5.js → checkbox-component_3.entry-cf9507ac.js} +23 -10
  21. package/dist/{chevron-icon_3.entry-a5175d87.cjs → chevron-icon_3.entry-27b71bd6.cjs} +1 -1
  22. package/dist/{chevron-icon_3.entry-43e83594.js → chevron-icon_3.entry-afc62aa5.js} +13 -13
  23. package/dist/{clock-icon_4.entry-219733d8.js → clock-icon_4.entry-ab2c2eaf.js} +18 -18
  24. package/dist/{clock-icon_4.entry-76751b46.cjs → clock-icon_4.entry-f46a42fc.cjs} +1 -1
  25. package/dist/close-icon.entry-791cb99c.js +15 -0
  26. package/dist/close-icon.entry-be2b5f87.cjs +1 -0
  27. package/dist/{constants-54af2051-a3596673.cjs → constants-91d76d21-0f7c85cc.cjs} +1 -1
  28. package/dist/{constants-54af2051-767e8462.js → constants-91d76d21-1638ead6.js} +23 -11
  29. package/dist/copy-icon.entry-16835c5d.cjs +1 -0
  30. package/dist/{copy-icon.entry-121dd297.js → copy-icon.entry-c009a659.js} +6 -6
  31. package/dist/{delete-icon.entry-14249f70.cjs → delete-icon.entry-3c295200.cjs} +1 -1
  32. package/dist/{delete-icon.entry-497ac8a2.js → delete-icon.entry-e8815e15.js} +2 -2
  33. package/dist/document-refresh-icon.entry-1628d0dd.js +15 -0
  34. package/dist/{document-refresh-icon.entry-c0eacb66.cjs → document-refresh-icon.entry-7d84ace4.cjs} +1 -1
  35. package/dist/{feedbackSync-e5cb0245-ea7ddac9.cjs → feedbackSync-b5d35a5b-1343e33b.cjs} +1 -1
  36. package/dist/{feedbackSync-e5cb0245-d84015c5.js → feedbackSync-b5d35a5b-20032e5d.js} +1 -1
  37. package/dist/{folder-icon.entry-e4806f0a.cjs → folder-icon.entry-1837e7eb.cjs} +1 -1
  38. package/dist/{folder-icon.entry-d22b3e80.js → folder-icon.entry-1a70f499.js} +2 -2
  39. package/dist/forward-icon.entry-7a9952fe.cjs +1 -0
  40. package/dist/forward-icon.entry-92fa4f95.js +15 -0
  41. package/dist/{globe-icon.entry-4c5d6be0.js → globe-icon.entry-2886c103.js} +4 -4
  42. package/dist/{globe-icon.entry-18605371.cjs → globe-icon.entry-5ea64e36.cjs} +1 -1
  43. package/dist/{google-logo-icon_4.entry-c3bae7b7.js → google-logo-icon_4.entry-c0413818.js} +168 -148
  44. package/dist/google-logo-icon_4.entry-ff5ebfd9.cjs +1 -0
  45. package/dist/inbox-icon.entry-893a70b6.js +15 -0
  46. package/dist/inbox-icon.entry-ad864253.cjs +1 -0
  47. package/dist/index-94416062.cjs +81 -0
  48. package/dist/index-cd93b584.js +16202 -0
  49. package/dist/{index.es-e9d66a9b-a29322e0.cjs → index.es-ef72cd61-0860521c.cjs} +1 -1
  50. package/dist/{index.es-e9d66a9b-62be34ce.js → index.es-ef72cd61-3075f564.js} +1 -1
  51. package/dist/{info-icon_2.entry-3f143408.js → info-icon_2.entry-891619f7.js} +5 -5
  52. package/dist/{info-icon_2.entry-d10f1df5.cjs → info-icon_2.entry-cfa2954a.cjs} +1 -1
  53. package/dist/{input-color-picker.entry-8ce41f49.js → input-color-picker.entry-58c5f4d3.js} +4 -4
  54. package/dist/{input-color-picker.entry-45caaa1d.cjs → input-color-picker.entry-5c3e8407.cjs} +1 -1
  55. package/dist/{input-component.entry-6db98fb0.js → input-component.entry-a45cff7f.js} +3 -3
  56. package/dist/{input-component.entry-37b106dc.cjs → input-component.entry-f6f257b9.cjs} +1 -1
  57. package/dist/input-dropdown_2.entry-0518caac.js +228 -0
  58. package/dist/input-dropdown_2.entry-85077fff.cjs +1 -0
  59. package/dist/italic-icon.entry-7f971c72.cjs +1 -0
  60. package/dist/italic-icon.entry-a9a0be67.js +15 -0
  61. package/dist/multi-select-dropdown.entry-0b7e26c0.js +116 -0
  62. package/dist/multi-select-dropdown.entry-2c5b3f8d.cjs +1 -0
  63. package/dist/{nylas-booked-event-card_12.entry-cb6b2ce6.js → nylas-booked-event-card_12.entry-8eed168c.js} +211 -190
  64. package/dist/nylas-booked-event-card_12.entry-d416f896.cjs +1 -0
  65. package/dist/{nylas-form-card.entry-e2749723.cjs → nylas-form-card.entry-2c336c14.cjs} +1 -1
  66. package/dist/{nylas-form-card.entry-07e46491.js → nylas-form-card.entry-8842785d.js} +8 -8
  67. package/dist/{nylas-if-state.entry-88e01248.cjs → nylas-if-state.entry-e6c90919.cjs} +1 -1
  68. package/dist/{nylas-if-state.entry-e34c5cbb.js → nylas-if-state.entry-fdc20d01.js} +3 -3
  69. package/dist/{nylas-login.entry-a30bbd87.js → nylas-login.entry-16f39c90.js} +3 -3
  70. package/dist/{nylas-login.entry-ab50ca6a.cjs → nylas-login.entry-dcdc4d06.cjs} +1 -1
  71. package/dist/{nylas-provider.entry-7f4a1520.cjs → nylas-provider.entry-0cc093e4.cjs} +1 -1
  72. package/dist/{nylas-provider.entry-070f8090.js → nylas-provider.entry-d51de210.js} +5 -5
  73. package/dist/nylas-scheduler-editor.entry-af211f07.cjs +2 -0
  74. package/dist/{nylas-scheduler-editor.entry-23e68865.js → nylas-scheduler-editor.entry-d0214565.js} +48 -30
  75. package/dist/{nylas-scheduling.entry-19fca55a.js → nylas-scheduling.entry-3d3a4eb4.js} +7 -7
  76. package/dist/{nylas-scheduling.entry-c882ee9a.cjs → nylas-scheduling.entry-ce1ef505.cjs} +1 -1
  77. package/dist/{nylas-time-window-picker_2.entry-3d24eec4.js → nylas-time-window-picker_2.entry-24672606.js} +30 -30
  78. package/dist/{nylas-time-window-picker_2.entry-9a216230.cjs → nylas-time-window-picker_2.entry-52a54abb.cjs} +1 -1
  79. package/dist/{person-icon.entry-b26a199b.cjs → person-icon.entry-954d4c10.cjs} +1 -1
  80. package/dist/{person-icon.entry-a6d86572.js → person-icon.entry-dcdc2118.js} +4 -4
  81. package/dist/{play-icon.entry-5fc66fe6.cjs → play-icon.entry-7e17d583.cjs} +1 -1
  82. package/dist/{play-icon.entry-87939760.js → play-icon.entry-e727a1d6.js} +4 -4
  83. package/dist/react.cjs +1 -1
  84. package/dist/react.js +1 -1
  85. package/dist/{refresh-icon.entry-820111be.js → refresh-icon.entry-d5e50180.js} +4 -4
  86. package/dist/{refresh-icon.entry-3a8ae0f6.cjs → refresh-icon.entry-f735be78.cjs} +1 -1
  87. package/dist/{register-component-5d7bcc15-d9900fbc.cjs → register-component-a169494c-3d95c4fd.cjs} +1 -1
  88. package/dist/{register-component-5d7bcc15-35e4a5a0.js → register-component-a169494c-62768a00.js} +1 -1
  89. package/dist/{reply-all-icon.entry-5fbf1103.js → reply-all-icon.entry-848cd16f.js} +5 -5
  90. package/dist/{reply-all-icon.entry-864494e2.cjs → reply-all-icon.entry-c847636d.cjs} +1 -1
  91. package/dist/reply-icon.entry-028435a1.cjs +1 -0
  92. package/dist/reply-icon.entry-9e3e5122.js +15 -0
  93. package/dist/{scheduler-config-store-ed4a8dfd-b2986359.cjs → scheduler-config-store-ed4a8dfd-0e3f540f.cjs} +1 -1
  94. package/dist/{scheduler-config-store-ed4a8dfd-f7f53255.js → scheduler-config-store-ed4a8dfd-622802c7.js} +1 -1
  95. package/dist/{scheduler-store-20151a77-2dfd28c2.cjs → scheduler-store-8e74959b-c8514d9a.cjs} +1 -1
  96. package/dist/{scheduler-store-20151a77-4f7ffb6f.js → scheduler-store-8e74959b-ffa0b3c6.js} +2 -2
  97. package/dist/sent-icon.entry-eef67c1a.cjs +1 -0
  98. package/dist/sent-icon.entry-f8fda6ff.js +15 -0
  99. package/dist/spam-icon.entry-22437325.cjs +1 -0
  100. package/dist/spam-icon.entry-ec4f3144.js +15 -0
  101. package/dist/{star-icon.entry-7cbe5a81.js → star-icon.entry-d7cd7608.js} +5 -5
  102. package/dist/{star-icon.entry-8792026f.cjs → star-icon.entry-f275321a.cjs} +1 -1
  103. package/dist/{stop-icon.entry-ae629874.js → stop-icon.entry-55779283.js} +2 -2
  104. package/dist/{stop-icon.entry-5b605364.cjs → stop-icon.entry-89c2bae7.cjs} +1 -1
  105. package/dist/{textarea-component.entry-fa87a032.js → textarea-component.entry-02360e34.js} +2 -2
  106. package/dist/{textarea-component.entry-2dae13db.cjs → textarea-component.entry-5e8cb080.cjs} +1 -1
  107. package/dist/{translate-icon.entry-22ef3602.cjs → translate-icon.entry-a7915e82.cjs} +1 -1
  108. package/dist/{translate-icon.entry-07e9c2cf.js → translate-icon.entry-b0b36e4c.js} +4 -4
  109. package/dist/trash-fill-icon.entry-1fd28f47.js +15 -0
  110. package/dist/trash-fill-icon.entry-e933f219.cjs +1 -0
  111. package/dist/{underline-icon.entry-dce1c48b.js → underline-icon.entry-1636f401.js} +2 -2
  112. package/dist/{underline-icon.entry-e381e3d2.cjs → underline-icon.entry-8bf17177.cjs} +1 -1
  113. package/dist/{warning-icon.entry-b55e52d0.cjs → warning-icon.entry-27c0cdd6.cjs} +1 -1
  114. package/dist/{warning-icon.entry-76d03910.js → warning-icon.entry-cef2e7c1.js} +7 -7
  115. package/package.json +3 -3
  116. package/dist/add-circle-icon.entry-0ea05c5b.js +0 -15
  117. package/dist/archive-icon.entry-7eeea6f4.cjs +0 -1
  118. package/dist/archive-icon.entry-a0af58f2.js +0 -15
  119. package/dist/calendar-agenda-fill-icon_53.entry-89e5ac45.cjs +0 -9
  120. package/dist/checkbox-component_3.entry-10293364.cjs +0 -1
  121. package/dist/close-icon.entry-286fc5ca.js +0 -15
  122. package/dist/close-icon.entry-cecd3cdd.cjs +0 -1
  123. package/dist/copy-icon.entry-d4835d9a.cjs +0 -1
  124. package/dist/document-refresh-icon.entry-f265bb1b.js +0 -15
  125. package/dist/forward-icon.entry-42b98c73.cjs +0 -1
  126. package/dist/forward-icon.entry-b6711af7.js +0 -15
  127. package/dist/google-logo-icon_4.entry-007f2813.cjs +0 -1
  128. package/dist/inbox-icon.entry-02c59267.cjs +0 -1
  129. package/dist/inbox-icon.entry-ae4383af.js +0 -15
  130. package/dist/index-ad112f6a.js +0 -13086
  131. package/dist/index-bbbc79ad.cjs +0 -81
  132. package/dist/input-dropdown.entry-1a2cdf40.cjs +0 -1
  133. package/dist/input-dropdown.entry-ec3d04ad.js +0 -134
  134. package/dist/italic-icon.entry-36d1e644.js +0 -15
  135. package/dist/italic-icon.entry-b5e4eec9.cjs +0 -1
  136. package/dist/multi-select-dropdown.entry-00e43a89.cjs +0 -1
  137. package/dist/multi-select-dropdown.entry-6f22740f.js +0 -95
  138. package/dist/nylas-booked-event-card_12.entry-4f115674.cjs +0 -1
  139. package/dist/nylas-scheduler-editor.entry-287ca230.cjs +0 -2
  140. package/dist/reply-icon.entry-7c136d06.js +0 -15
  141. package/dist/reply-icon.entry-93084ffd.cjs +0 -1
  142. package/dist/sent-icon.entry-18afc1f9.cjs +0 -1
  143. package/dist/sent-icon.entry-60f1b814.js +0 -15
  144. package/dist/spam-icon.entry-9d41427e.cjs +0 -1
  145. package/dist/spam-icon.entry-b580b108.js +0 -15
  146. package/dist/time-period-selector.entry-0de79682.js +0 -80
  147. package/dist/time-period-selector.entry-b1f5523b.cjs +0 -1
  148. package/dist/trash-fill-icon.entry-81ee0fdf.js +0 -15
  149. package/dist/trash-fill-icon.entry-d332cf5d.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { r as q, h as e, c as k, d as u, n as St, o as tt, H as Lt, g as Pt, i as W, F as Ut } from "./index-ad112f6a.js";
2
- import { R as Bt } from "./register-component-5d7bcc15-35e4a5a0.js";
3
- import { D as Ft } from "./constants-54af2051-767e8462.js";
4
- import { i as Rt, a as At, c as jt, b as $t, f as Jt } from "./feedbackSync-e5cb0245-d84015c5.js";
1
+ import { r as q, h as e, c as k, d as u, n as St, i as d, o as tt, H as Tt, g as Ft, F as Ut } from "./index-cd93b584.js";
2
+ import { R as Bt } from "./register-component-a169494c-62768a00.js";
3
+ import { D as Lt } from "./constants-91d76d21-1638ead6.js";
4
+ import { i as Rt, a as At, c as jt, b as $t, f as Jt } from "./feedbackSync-b5d35a5b-20032e5d.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  const Vt = ".sc-google-logo-icon-h{display:flex}", Zt = Vt, Gt = class {
@@ -9,7 +9,7 @@ const Vt = ".sc-google-logo-icon-h{display:flex}", Zt = Vt, Gt = class {
9
9
  q(this, t), this.width = "24", this.height = "24";
10
10
  }
11
11
  render() {
12
- return e("svg", { key: "a92099ec8ac0962d66c891c164e335ef3d047d22", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "67f404193a491c7599cb0ff6eb2eba5322d05e12", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "3c61ed99570e6093cad10d510093e172828eff40", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), e("path", { key: "c02254455f486c14330e39e76240c1cf4f4597a4", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), e("path", { key: "8db3f9f9c1587778afe57689afc1a72db582d5ec", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), e("path", { key: "45b05683bc9c6bf46c6aef5858604016460df3e2", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), e("defs", { key: "4c047174ca3453f959e5e81b31e79abae98a1e09" }, e("clipPath", { key: "0e8a1d30c69e4ff0d43a99342b111a0ced46b894", id: "clip0_959_12452" }, e("rect", { key: "e653c135430f8fd0e33dea31c2d26a75ac6301a0", width: 24, height: 24, fill: "white" }))));
12
+ return e("svg", { key: "3ca599e18ce6095779ded84b497b5296f17c10d2", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "88b3f5f83ede3ed85a770467f48ad836405b990a", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "4e15a1ff9fd5ed8752a01653cc0313519c3979ca", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), e("path", { key: "1d5b9ac448e9067003693fc996d84e4a6a6fb424", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), e("path", { key: "60c45db031014875d1f0c51e4d96d233ff4d739e", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), e("path", { key: "c11e6c275b10368721e0d520d98a8f57bc38acc5", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), e("defs", { key: "9ed8d3df0e31854c32fe754fc79877ca48ea5ab9" }, e("clipPath", { key: "7b54dd3d596dc38980237b59f21184a00316760f", id: "clip0_959_12452" }, e("rect", { key: "6632bab4f2645c9a5dc9f3f000a7b537d5b09f22", width: 24, height: 24, fill: "white" }))));
13
13
  }
14
14
  };
15
15
  Gt.style = Zt;
@@ -18,7 +18,7 @@ const Wt = ".sc-microsoft-logo-icon-h{display:flex}", qt = Wt, Kt = class {
18
18
  q(this, t), this.width = "22", this.height = "22";
19
19
  }
20
20
  render() {
21
- return e("svg", { key: "0426f3e50fb256a3a5f5c2c221da187daddf01ab", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "7613831c4bd6ec132acc5e89859acdfd6035f0c1", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "db04c966af57fe29013c799d7a38192d121beb44", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "fe59fe563aede56518af70627d0ece3b83ded0fc", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "07e3f81f79863f2e87827b163a2e9a9f9804cbf0", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
21
+ return e("svg", { key: "970afb49d36b25194c649b69ca0f136a588c20a4", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "b3f4f95ead19fff86c4026bcf226a31a22b9c09a", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "425e0c099da7b5e3637665f2b9240aab9dd43589", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "2f531126f18dd92603d2caaa31dfaf8a3dac3c9f", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "b500f059a84c5223d1688410bc8378e02fc87156", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
22
22
  }
23
23
  };
24
24
  Kt.style = qt;
@@ -26,7 +26,7 @@ var r;
26
26
  (function(t) {
27
27
  t.EventInfo = "eventInfo", t.Availability = "availability", t.BookingOptions = "bookingOptions", t.Communications = "communications", t.Participants = "participants", t.BookingForm = "bookingForm", t.PageStyles = "pageStyles";
28
28
  })(r || (r = {}));
29
- function Qt({ id: t, formState: a, activeTab: n }, i) {
29
+ function Qt({ id: t, formState: a, activeTab: n, i18next: i }, o) {
30
30
  return e(
31
31
  Ut,
32
32
  null,
@@ -89,11 +89,11 @@ function Qt({ id: t, formState: a, activeTab: n }, i) {
89
89
  e(
90
90
  "div",
91
91
  { class: "tab-header" },
92
- e("h3", null, "Event communications"),
93
- e("p", null, "Set up automatic confirmation emails.")
92
+ e("h3", null, i.t("eventCommunicationsTitle")),
93
+ e("p", null, i.t("eventCommunicationsDescription"))
94
94
  ),
95
95
  e("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
96
- e("nylas-reminder-emails", { name: "reminder-emails", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nre__reminder-input_dropdown, nre__reminder-input_dropdown-input, nre__reminder-input_dropdown-content" })
96
+ e("nylas-reminder-emails", { name: "reminder-emails", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" })
97
97
  ),
98
98
  e(
99
99
  "div",
@@ -106,7 +106,7 @@ function Qt({ id: t, formState: a, activeTab: n }, i) {
106
106
  { key: `page-styles-${t}`, class: { hide: n !== r.PageStyles } },
107
107
  e("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
108
  e("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
- e("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, i)
109
+ e("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, o)
110
110
  ),
111
111
  e(
112
112
  "div",
@@ -115,24 +115,22 @@ function Qt({ id: t, formState: a, activeTab: n }, i) {
115
115
  )
116
116
  );
117
117
  }
118
- const Xt = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', Yt = Xt;
118
+ const Xt = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', Yt = Xt;
119
119
  var te = function(t, a, n, i) {
120
- var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
120
+ var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, b;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
122
  s = Reflect.decorate(t, a, n, i);
123
123
  else
124
124
  for (var l = t.length - 1; l >= 0; l--)
125
- (c = t[l]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
125
+ (b = t[l]) && (s = (o < 3 ? b(s) : o > 3 ? b(a, n, s) : b(a, n)) || s);
126
126
  return o > 3 && s && Object.defineProperty(a, n, s), s;
127
127
  }, X = function(t, a) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
129
  return Reflect.metadata(t, a);
130
130
  };
131
- const Tt = class {
131
+ const Pt = class {
132
132
  constructor(t) {
133
- q(this, t), this.schedulerConfigChanged = k(this, "schedulerConfigChanged", 7), this.cancelButtonClick = k(this, "cancelButtonClick", 7), this.formSubmitted = k(this, "formSubmitted", 7), this.previewButtonClicked = k(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = k(this, "schedulerEditorFormUpdated", 7), this.setError = (a) => {
134
- this.error = a.message;
135
- }, this.formSubmissionHandler = async (a) => {
133
+ q(this, t), this.schedulerConfigChanged = k(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = k(this, "schedulerConfigCreated", 7), this.cancelButtonClick = k(this, "cancelButtonClick", 7), this.formSubmitted = k(this, "formSubmitted", 7), this.previewButtonClicked = k(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = k(this, "schedulerEditorFormUpdated", 7), this.formSubmissionHandler = async (a) => {
136
134
  var et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt, ft, yt;
137
135
  a.preventDefault();
138
136
  const n = await this.formSubmitted.emit();
@@ -143,12 +141,12 @@ const Tt = class {
143
141
  this.isLoading = !0, this.hasUnsavedChanges = !1;
144
142
  const o = this.updateFormState();
145
143
  u("[nylas-editor-tabs]", "formState", o);
146
- const { title: s, description: c, duration: l, availability: b, bookingCalendar: y, location: S, bookingType: F, buffer: O, availableDaysInFuture: H, minCancellationNotice: D, minBookingNotice: I, cancellationPolicy: M, timeslotInterval: w, additionalGuestsHidden: N, hideCancellationOptions: z, hideReschedulingOptions: U, participants: v, participantOpenHours: p, additionalFields: R, participantCalendars: f, conferencing: A, participantBookingCalendars: m, reminders: j, emailTemplate: $, redirectUrl: J, availabilityMethod: B, slug: V, appearance: Z, name: G } = o, h = ((at = (et = this.selectedConfiguration) == null ? void 0 : et.participants) == null ? void 0 : at.find((d) => d.is_organizer)) || (v == null ? void 0 : v.find((d) => d.is_organizer)), x = f && (h != null && h.email) ? f[h == null ? void 0 : h.email] : [], _ = ((nt = h == null ? void 0 : h.booking) == null ? void 0 : nt.calendar_id) || y, g = l ? parseInt(l) : 30, C = v && (v == null ? void 0 : v.length) > 0 ? v : [
144
+ const { title: s, description: b, duration: l, availability: h, bookingCalendar: y, location: L, bookingType: T, buffer: O, availableDaysInFuture: D, minCancellationNotice: I, minBookingNotice: M, cancellationPolicy: N, timeslotInterval: C, additionalGuestsHidden: z, hideCancellationOptions: U, hideReschedulingOptions: R, participants: w, participantOpenHours: m, additionalFields: A, participantCalendars: g, conferencing: j, participantBookingCalendars: f, reminders: $, emailTemplate: J, redirectUrl: V, availabilityMethod: P, slug: Z, appearance: G, name: W } = o, p = ((at = (et = this.selectedConfiguration) == null ? void 0 : et.participants) == null ? void 0 : at.find((c) => c.is_organizer)) || (w == null ? void 0 : w.find((c) => c.is_organizer)), S = g && (p != null && p.email) ? g[p == null ? void 0 : p.email] : [], _ = ((nt = p == null ? void 0 : p.booking) == null ? void 0 : nt.calendar_id) || y, v = l ? parseInt(l) : 30, x = w && (w == null ? void 0 : w.length) > 0 ? w : [
147
145
  {
148
- name: (h == null ? void 0 : h.name) ?? ((it = this.currentUser) == null ? void 0 : it.name) ?? "",
149
- email: (h == null ? void 0 : h.email) ?? ((st = this.currentUser) == null ? void 0 : st.email) ?? "",
146
+ name: (p == null ? void 0 : p.name) ?? ((it = this.currentUser) == null ? void 0 : it.name) ?? "",
147
+ email: (p == null ? void 0 : p.email) ?? ((st = this.currentUser) == null ? void 0 : st.email) ?? "",
150
148
  is_organizer: !0,
151
- timezone: (b == null ? void 0 : b.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
149
+ timezone: (h == null ? void 0 : h.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
152
150
  availability: {
153
151
  calendar_ids: y && y !== "" ? [y] : ["primary"],
154
152
  open_hours: []
@@ -157,114 +155,114 @@ const Tt = class {
157
155
  calendar_id: y && y !== "" ? y : "primary"
158
156
  }
159
157
  }
160
- ], T = {
158
+ ], E = {
161
159
  ...((ot = this.selectedConfiguration) == null ? void 0 : ot.id) && { id: this.selectedConfiguration.id },
162
160
  version: ((rt = this.selectedConfiguration) == null ? void 0 : rt.version) ?? "1.0.0",
163
- slug: V,
164
- name: G,
161
+ slug: Z,
162
+ name: W,
165
163
  availability: {
166
- duration_minutes: g,
167
- interval_minutes: (w == null ? void 0 : w.interval) ?? g,
168
- round_to: w == null ? void 0 : w.roundTo,
164
+ duration_minutes: v,
165
+ interval_minutes: (C == null ? void 0 : C.interval) ?? v,
166
+ round_to: C == null ? void 0 : C.roundTo,
169
167
  availability_rules: {
170
- availability_method: B || (((ct = (dt = (lt = this.selectedConfiguration) == null ? void 0 : lt.availability) == null ? void 0 : dt.availability_rules) == null ? void 0 : ct.availability_method) ?? "collective"),
168
+ availability_method: P || (((ct = (dt = (lt = this.selectedConfiguration) == null ? void 0 : lt.availability) == null ? void 0 : dt.availability_rules) == null ? void 0 : ct.availability_method) ?? "collective"),
171
169
  buffer: O || { before: 0, after: 0 },
172
- default_open_hours: (b == null ? void 0 : b.openHours) ?? ((ut = (ht = (bt = this.selectedConfiguration) == null ? void 0 : bt.availability) == null ? void 0 : ht.availability_rules) == null ? void 0 : ut.default_open_hours) ?? Ft,
170
+ default_open_hours: (h == null ? void 0 : h.openHours) ?? ((ut = (ht = (bt = this.selectedConfiguration) == null ? void 0 : bt.availability) == null ? void 0 : ht.availability_rules) == null ? void 0 : ut.default_open_hours) ?? Lt,
173
171
  round_robin_group_id: ((ft = (mt = (pt = this.selectedConfiguration) == null ? void 0 : pt.availability) == null ? void 0 : mt.availability_rules) == null ? void 0 : ft.round_robin_group_id) ?? ""
174
172
  }
175
173
  },
176
174
  participants: [
177
- ...C ? C.map((d) => {
178
- var _t, gt, vt, wt, kt, Ct;
179
- let P = (b == null ? void 0 : b.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
180
- if ((_t = p == null ? void 0 : p[d.email]) != null && _t.length && (P = (vt = (gt = p == null ? void 0 : p[d.email]) == null ? void 0 : gt[0]) == null ? void 0 : vt.timezone), d.is_organizer) {
181
- const xt = m != null && m[d.email] ? m == null ? void 0 : m[d.email] : _ || "primary", Q = f != null && f[d.email] ? f == null ? void 0 : f[d.email] : x != null && x.length ? x : ["primary"], zt = Q.length === 1 && Q[0] === "primary";
175
+ ...x ? x.map((c) => {
176
+ var gt, _t, vt, wt, kt, Ct;
177
+ let B = (h == null ? void 0 : h.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
178
+ if ((gt = m == null ? void 0 : m[c.email]) != null && gt.length && (B = (vt = (_t = m == null ? void 0 : m[c.email]) == null ? void 0 : _t[0]) == null ? void 0 : vt.timezone), c.is_organizer) {
179
+ const xt = f != null && f[c.email] ? f == null ? void 0 : f[c.email] : _ || "primary", Q = g != null && g[c.email] ? g == null ? void 0 : g[c.email] : S != null && S.length ? S : ["primary"], zt = Q.length === 1 && Q[0] === "primary";
182
180
  return {
183
- name: d.name ?? "",
184
- email: d.email,
181
+ name: c.name ?? "",
182
+ email: c.email,
185
183
  is_organizer: !0,
186
- timezone: P,
184
+ timezone: B,
187
185
  availability: {
188
186
  calendar_ids: zt ? [xt] : Q,
189
- open_hours: (p == null ? void 0 : p[d.email]) ?? ((wt = d.availability) == null ? void 0 : wt.open_hours) ?? []
187
+ open_hours: (m == null ? void 0 : m[c.email]) ?? ((wt = c.availability) == null ? void 0 : wt.open_hours) ?? []
190
188
  },
191
189
  booking: {
192
190
  calendar_id: xt
193
191
  }
194
192
  };
195
193
  }
196
- const E = m != null && m[d.email] ? { calendar_id: m == null ? void 0 : m[d.email] } : (d == null ? void 0 : d.booking) ?? void 0, K = (f == null ? void 0 : f[d.email]) ?? ((kt = d.availability) == null ? void 0 : kt.calendar_ids) ?? ["primary"], Nt = K.length === 1 && K[0] === "primary";
194
+ const H = f != null && f[c.email] ? { calendar_id: f == null ? void 0 : f[c.email] } : (c == null ? void 0 : c.booking) ?? void 0, K = (g == null ? void 0 : g[c.email]) ?? ((kt = c.availability) == null ? void 0 : kt.calendar_ids) ?? ["primary"], Nt = K.length === 1 && K[0] === "primary";
197
195
  return {
198
- ...d,
199
- timezone: P,
200
- availability: d.availability ? {
201
- calendar_ids: Nt && typeof E < "u" ? [E == null ? void 0 : E.calendar_id] : K,
202
- open_hours: (p == null ? void 0 : p[d.email]) ?? ((Ct = d.availability) == null ? void 0 : Ct.open_hours) ?? []
196
+ ...c,
197
+ timezone: B,
198
+ availability: c.availability ? {
199
+ calendar_ids: Nt && typeof H < "u" ? [H == null ? void 0 : H.calendar_id] : K,
200
+ open_hours: (m == null ? void 0 : m[c.email]) ?? ((Ct = c.availability) == null ? void 0 : Ct.open_hours) ?? []
203
201
  } : void 0,
204
- booking: E
202
+ booking: H
205
203
  };
206
204
  }) : []
207
205
  ],
208
206
  event_booking: {
209
207
  title: (s == null ? void 0 : s.toString()) ?? "",
210
- description: (c == null ? void 0 : c.toString()) ?? "",
211
- location: (S == null ? void 0 : S.toString()) ?? "",
212
- booking_type: (F == null ? void 0 : F.toString()) ?? "booking",
213
- timezone: (b == null ? void 0 : b.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
214
- conferencing: A,
215
- reminders: j
208
+ description: (b == null ? void 0 : b.toString()) ?? "",
209
+ location: (L == null ? void 0 : L.toString()) ?? "",
210
+ booking_type: (T == null ? void 0 : T.toString()) ?? "booking",
211
+ timezone: (h == null ? void 0 : h.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
212
+ conferencing: j,
213
+ reminders: $
216
214
  },
217
215
  scheduler: {
218
- cancellation_policy: M ?? "",
219
- available_days_in_future: H ?? 30,
220
- min_cancellation_notice: D ?? 0,
221
- min_booking_notice: I ?? 60,
222
- hide_additional_guests: N ?? !1,
223
- hide_cancellation_options: z ?? !1,
224
- hide_rescheduling_options: U ?? !1,
225
- additional_fields: R,
226
- email_template: $,
227
- confirmation_redirect_url: J
216
+ cancellation_policy: N ?? "",
217
+ available_days_in_future: D ?? 30,
218
+ min_cancellation_notice: I ?? 0,
219
+ min_booking_notice: M ?? 60,
220
+ hide_additional_guests: z ?? !1,
221
+ hide_cancellation_options: U ?? !1,
222
+ hide_rescheduling_options: R ?? !1,
223
+ additional_fields: A,
224
+ email_template: J,
225
+ confirmation_redirect_url: V
228
226
  },
229
- appearance: Z
230
- }, Ot = St(this.selectedConfiguration, T || {}), L = this.action === "create" ? Ot : T;
231
- this.isConfigRoundRobin(L) && (L.participants = L.participants.map((d) => ({ ...d, is_organizer: void 0 })));
232
- const Ht = (d) => {
227
+ appearance: G
228
+ }, Ht = St(this.selectedConfiguration, E || {}), F = this.action === "create" ? Ht : E;
229
+ this.isConfigRoundRobin(F) && (F.participants = F.participants.map((c) => ({ ...c, is_organizer: void 0 })));
230
+ const Ot = (c) => {
233
231
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
234
232
  this.changesSaved = !1;
235
233
  }, 5e3);
236
- }, Dt = this.checkForBookingFormErrors(L), It = ((yt = this.configurations) == null ? void 0 : yt.find((d) => {
237
- var P;
238
- return d.id === ((P = this.selectedConfiguration) == null ? void 0 : P.id);
239
- })) || {}, Mt = this.checkForOrganizerConfirmationError(St(L, It));
240
- Dt || Mt || this.schedulerConfigChanged.emit({ config: L, resetLoadingState: Ht, setError: this.setError, action: this.action });
234
+ }, Dt = this.checkForBookingFormErrors(F), It = ((yt = this.configurations) == null ? void 0 : yt.find((c) => {
235
+ var B;
236
+ return c.id === ((B = this.selectedConfiguration) == null ? void 0 : B.id);
237
+ })) || {}, Mt = this.checkForOrganizerConfirmationError(St(F, It));
238
+ Dt || Mt || this.schedulerConfigChanged.emit({ config: F, resetLoadingState: Ot, action: this.action, host: this.host });
241
239
  }, this.isConfigRoundRobin = (a) => {
242
240
  var n, i, o, s;
243
241
  return ((i = (n = a == null ? void 0 : a.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : i.availability_method) === "max-availability" || ((s = (o = a.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
244
242
  }, this.checkForOrganizerConfirmationError = (a) => {
245
- var c, l;
243
+ var b, l;
246
244
  let n = !1, i = "";
247
- const o = ((c = a.event_booking) == null ? void 0 : c.booking_type) === "organizer-confirmation", s = (l = a.scheduler) == null ? void 0 : l.organizer_confirmation_url;
248
- return o && !s && (i += "Organizer confirmation URL is required when using organizer confirmation booking type.", n = !0), n && (this.isLoading = !1, this.setError(new Error(i))), n;
245
+ const o = ((b = a.event_booking) == null ? void 0 : b.booking_type) === "organizer-confirmation", s = (l = a.scheduler) == null ? void 0 : l.organizer_confirmation_url;
246
+ return o && !s && (i += "Organizer confirmation URL is required when using organizer confirmation booking type.", n = !0), n && (this.isLoading = !1, this.host.setError(new Error(i))), n;
249
247
  }, this.checkForBookingFormErrors = (a) => {
250
248
  var s;
251
249
  let n = !1, i = "";
252
250
  const o = (s = a.scheduler) == null ? void 0 : s.additional_fields;
253
- return o && (i = "Booking form error: ", Object.entries(o).forEach((c) => {
254
- const l = c[1];
251
+ return o && (i = "Booking form error: ", Object.entries(o).forEach((b) => {
252
+ const l = b[1];
255
253
  if (l.label === "") {
256
254
  i += `Label is required for field of type ${l.type}.`, n = !0;
257
255
  return;
258
256
  }
259
257
  if (l.options) {
260
- for (const b of l.options)
261
- if (b === "") {
258
+ for (const h of l.options)
259
+ if (h.trim() === "") {
262
260
  i += `Empty option detected inside ${l.label} of type ${l.type}.`, n = !0;
263
261
  break;
264
262
  }
265
263
  }
266
- })), n && (this.isLoading = !1, this.setError(new Error(i))), n;
267
- }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = r.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
264
+ })), n && (this.isLoading = !1, this.host.setError(new Error(i))), n;
265
+ }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = r.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
268
266
  }
269
267
  configChangedHandler(t) {
270
268
  u("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
@@ -276,6 +274,15 @@ const Tt = class {
276
274
  ...this.getFormStateFromConfig(this.selectedConfiguration)
277
275
  });
278
276
  }
277
+ selectedLanguageChangedHandler(t, a) {
278
+ t !== a && d.changeLanguage(t);
279
+ }
280
+ async schedulerConfigCreatedEventHandler(t) {
281
+ return this.schedulerConfigCreated.emit(t);
282
+ }
283
+ async setError(t) {
284
+ this.error = t.message;
285
+ }
279
286
  connectedCallback() {
280
287
  u("[nylas-editor-tabs]", "connectedCallback");
281
288
  }
@@ -286,7 +293,7 @@ const Tt = class {
286
293
  var a, n;
287
294
  u("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Rt() && At({
288
295
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
289
- release: "1.3.2",
296
+ release: "1.3.4",
290
297
  integrations: (i) => [
291
298
  ...i.filter((o) => !1),
292
299
  Jt({
@@ -325,7 +332,7 @@ const Tt = class {
325
332
  captureContext: {
326
333
  tags: {
327
334
  "nylas-web-element": "nylas-scheduler-editor",
328
- "nylas-web-element-version": "1.3.2"
335
+ "nylas-web-element-version": "1.3.4"
329
336
  },
330
337
  extra: {
331
338
  configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
@@ -335,49 +342,49 @@ const Tt = class {
335
342
  }), this.showFeedbackModal = !1;
336
343
  }
337
344
  getFormStateFromConfig(t) {
338
- var n, i, o, s, c, l, b, y, S, F, O, H, D, I, M, w, N, z, U, v, p, R, f, A, m, j, $, J, B, V, Z, G, h, x;
345
+ var n, i, o, s, b, l, h, y, L, T, O, D, I, M, N, C, z, U, R, w, m, A, g, j, f, $, J, V, P, Z, G, W, p, S;
339
346
  let a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((_) => _.is_organizer);
340
347
  return !a && ((o = (i = t == null ? void 0 : t.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : o.availability_method) !== "collective" && (a = (s = t == null ? void 0 : t.participants) == null ? void 0 : s.find((_) => {
341
- var g;
342
- return _.email === ((g = this.currentUser) == null ? void 0 : g.email);
348
+ var v;
349
+ return _.email === ((v = this.currentUser) == null ? void 0 : v.email);
343
350
  }), a && (a.is_organizer = !0)), t != null && t.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
344
- title: ((c = t == null ? void 0 : t.event_booking) == null ? void 0 : c.title) ?? "",
351
+ title: ((b = t == null ? void 0 : t.event_booking) == null ? void 0 : b.title) ?? "",
345
352
  description: ((l = t == null ? void 0 : t.event_booking) == null ? void 0 : l.description) ?? "",
346
- duration: ((y = (b = t == null ? void 0 : t.availability) == null ? void 0 : b.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
353
+ duration: ((y = (h = t == null ? void 0 : t.availability) == null ? void 0 : h.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
347
354
  availability: {
348
- timezone: ((S = t == null ? void 0 : t.event_booking) == null ? void 0 : S.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
349
- openHours: ((O = (F = t == null ? void 0 : t.availability) == null ? void 0 : F.availability_rules) == null ? void 0 : O.default_open_hours) ?? Ft
355
+ timezone: ((L = t == null ? void 0 : t.event_booking) == null ? void 0 : L.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
356
+ openHours: ((O = (T = t == null ? void 0 : t.availability) == null ? void 0 : T.availability_rules) == null ? void 0 : O.default_open_hours) ?? Lt
350
357
  },
351
- additionalFields: ((H = t == null ? void 0 : t.scheduler) == null ? void 0 : H.additional_fields) ?? {},
352
- conferencing: ((D = t == null ? void 0 : t.event_booking) == null ? void 0 : D.conferencing) ?? {},
353
- calendarIds: ((I = a == null ? void 0 : a.availability) == null ? void 0 : I.calendar_ids) ?? [],
358
+ additionalFields: ((D = t == null ? void 0 : t.scheduler) == null ? void 0 : D.additional_fields) ?? {},
359
+ conferencing: ((I = t == null ? void 0 : t.event_booking) == null ? void 0 : I.conferencing) ?? {},
360
+ calendarIds: ((M = a == null ? void 0 : a.availability) == null ? void 0 : M.calendar_ids) ?? [],
354
361
  participants: (t == null ? void 0 : t.participants) ?? [],
355
- bookingCalendar: ((M = a == null ? void 0 : a.booking) == null ? void 0 : M.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
356
- location: ((w = t == null ? void 0 : t.event_booking) == null ? void 0 : w.location) ?? "",
357
- bookingType: ((N = t == null ? void 0 : t.event_booking) == null ? void 0 : N.booking_type) ?? "booking",
358
- buffer: ((U = (z = t == null ? void 0 : t.availability) == null ? void 0 : z.availability_rules) == null ? void 0 : U.buffer) ?? { before: 0, after: 0 },
359
- cancellationPolicy: ((v = t == null ? void 0 : t.scheduler) == null ? void 0 : v.cancellation_policy) ?? "",
360
- availableDaysInFuture: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
361
- minCancellationNotice: ((R = t == null ? void 0 : t.scheduler) == null ? void 0 : R.min_cancellation_notice) ?? 0,
362
- minBookingNotice: ((f = t == null ? void 0 : t.scheduler) == null ? void 0 : f.min_booking_notice) ?? 60,
362
+ bookingCalendar: ((N = a == null ? void 0 : a.booking) == null ? void 0 : N.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
363
+ location: ((C = t == null ? void 0 : t.event_booking) == null ? void 0 : C.location) ?? "",
364
+ bookingType: ((z = t == null ? void 0 : t.event_booking) == null ? void 0 : z.booking_type) ?? "booking",
365
+ buffer: ((R = (U = t == null ? void 0 : t.availability) == null ? void 0 : U.availability_rules) == null ? void 0 : R.buffer) ?? { before: 0, after: 0 },
366
+ cancellationPolicy: ((w = t == null ? void 0 : t.scheduler) == null ? void 0 : w.cancellation_policy) ?? "",
367
+ availableDaysInFuture: ((m = t == null ? void 0 : t.scheduler) == null ? void 0 : m.available_days_in_future) ?? 30,
368
+ minCancellationNotice: ((A = t == null ? void 0 : t.scheduler) == null ? void 0 : A.min_cancellation_notice) ?? 0,
369
+ minBookingNotice: ((g = t == null ? void 0 : t.scheduler) == null ? void 0 : g.min_booking_notice) ?? 60,
363
370
  timeslotInterval: {
364
- interval: ((A = t == null ? void 0 : t.availability) == null ? void 0 : A.interval_minutes) ?? ((m = t == null ? void 0 : t.availability) == null ? void 0 : m.duration_minutes),
365
- roundTo: (j = t == null ? void 0 : t.availability) == null ? void 0 : j.round_to
371
+ interval: ((j = t == null ? void 0 : t.availability) == null ? void 0 : j.interval_minutes) ?? ((f = t == null ? void 0 : t.availability) == null ? void 0 : f.duration_minutes),
372
+ roundTo: ($ = t == null ? void 0 : t.availability) == null ? void 0 : $.round_to
366
373
  },
367
- additionalGuestsHidden: (($ = t == null ? void 0 : t.scheduler) == null ? void 0 : $.hide_additional_guests) ?? !1,
368
- hideCancellationOptions: ((J = t == null ? void 0 : t.scheduler) == null ? void 0 : J.hide_cancellation_options) ?? !1,
369
- hideReschedulingOptions: ((B = t == null ? void 0 : t.scheduler) == null ? void 0 : B.hide_rescheduling_options) ?? !1,
370
- participantBookingCalendars: ((V = t == null ? void 0 : t.participants) == null ? void 0 : V.reduce((_, g) => {
371
- var C, T;
372
- return (C = g.booking) != null && C.calendar_id && (_[g.email] = (T = g.booking) == null ? void 0 : T.calendar_id), _;
374
+ additionalGuestsHidden: ((J = t == null ? void 0 : t.scheduler) == null ? void 0 : J.hide_additional_guests) ?? !1,
375
+ hideCancellationOptions: ((V = t == null ? void 0 : t.scheduler) == null ? void 0 : V.hide_cancellation_options) ?? !1,
376
+ hideReschedulingOptions: ((P = t == null ? void 0 : t.scheduler) == null ? void 0 : P.hide_rescheduling_options) ?? !1,
377
+ participantBookingCalendars: ((Z = t == null ? void 0 : t.participants) == null ? void 0 : Z.reduce((_, v) => {
378
+ var x, E;
379
+ return (x = v.booking) != null && x.calendar_id && (_[v.email] = (E = v.booking) == null ? void 0 : E.calendar_id), _;
373
380
  })) ?? {},
374
- participantCalendars: ((Z = t == null ? void 0 : t.participants) == null ? void 0 : Z.reduce((_, g) => {
375
- var C;
376
- return _[g.email] = (C = g.availability) == null ? void 0 : C.calendar_ids, _;
381
+ participantCalendars: ((G = t == null ? void 0 : t.participants) == null ? void 0 : G.reduce((_, v) => {
382
+ var x;
383
+ return _[v.email] = (x = v.availability) == null ? void 0 : x.calendar_ids, _;
377
384
  }, {})) ?? {},
378
- reminders: (G = t == null ? void 0 : t.event_booking) == null ? void 0 : G.reminders,
379
- emailTemplate: (h = t == null ? void 0 : t.scheduler) == null ? void 0 : h.email_template,
380
- redirectUrl: (x = t == null ? void 0 : t.scheduler) == null ? void 0 : x.confirmation_redirect_url,
385
+ reminders: (W = t == null ? void 0 : t.event_booking) == null ? void 0 : W.reminders,
386
+ emailTemplate: (p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.email_template,
387
+ redirectUrl: (S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.confirmation_redirect_url,
381
388
  slug: t == null ? void 0 : t.slug,
382
389
  appearance: t == null ? void 0 : t.appearance,
383
390
  name: t == null ? void 0 : t.name
@@ -493,24 +500,25 @@ const Tt = class {
493
500
  }
494
501
  render() {
495
502
  var t, a;
496
- return u("[nylas-editor-tabs]", "render", this.formState), e(Lt, { key: "877744ce17be949dd3a0677154d39f23d3a0e4c6" }, e("form", { key: "b8c8ea5167dd9463a41167541ed70fbf746ce0dc", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, e("div", { class: "tabs", part: "editor__tabs net__tabs" }, e("button", { name: r.EventInfo, class: { tab: !0, active: this.activeTab == r.EventInfo, hide: this.hideTab(r.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (n) => this.setActiveTab(n, r.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), "Event info"), e("button", { name: r.Availability, class: { tab: !0, active: this.activeTab == r.Availability, hide: this.hideTab(r.Availability) }, part: "editortab__availability net__tab-availability", onClick: (n) => this.setActiveTab(n, r.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { name: r.Participants, class: { tab: !0, active: this.activeTab == r.Participants, hide: this.hideTab(r.Participants) }, part: "editortab__participants net__tab-participants", onClick: (n) => this.setActiveTab(n, r.Participants) }, e("people-icon", { width: "16", height: "16" }), "Participants"), e("button", { name: r.BookingOptions, class: { tab: !0, active: this.activeTab == r.BookingOptions, hide: this.hideTab(r.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (n) => this.setActiveTab(n, r.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), "Booking options"), e("button", { name: r.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(r.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (n) => this.setActiveTab(n, r.BookingForm) }, this.activeTab == r.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), e("button", { name: r.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(r.Communications) }, onClick: (n) => this.setActiveTab(n, r.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == r.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), "Communications"), e("button", { name: r.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(r.PageStyles) }, onClick: (n) => this.setActiveTab(n, r.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == r.PageStyles ? e("paintbrush-fill-icon", { width: "16", height: "16" }) : e("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), e("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, e(Qt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "new" }))) : e("div", { class: "composable", key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, e("slot", null)), e("div", { key: "d0f4111a5e94a3e8ce82024b6bab5ff3a1fa486b", class: "footer", part: "editor__footer net__footer" }, e("div", { key: "c0fdc3ba4470c56ffd339d826e4d871c1ccf9d80", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && e("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (n) => this.onFeedbackClick(n) }, e("feedback-icon", null))), e("div", { key: "8215bc5a0ed81aca0a472c390b3ac8165380fe79", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, e("p", { key: "80b5f296a70adbaae379f428118c730dd174d23b", class: {
503
+ return u("[nylas-editor-tabs]", "render", this.formState), e(Tt, { key: "afd735b73e35d8abfa9c83d21ab8307b07df48e6" }, e("form", { key: "7d7093deb88e6ec8e636092e4bcbadf03916a994", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, e("div", { class: "tabs", part: "editor__tabs net__tabs" }, e("button", { name: r.EventInfo, class: { tab: !0, active: this.activeTab == r.EventInfo, hide: this.hideTab(r.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (n) => this.setActiveTab(n, r.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), d.t("eventInfoTab")), e("button", { name: r.Availability, class: { tab: !0, active: this.activeTab == r.Availability, hide: this.hideTab(r.Availability) }, part: "editortab__availability net__tab-availability", onClick: (n) => this.setActiveTab(n, r.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), d.t("availabilityTab")), e("button", { name: r.Participants, class: { tab: !0, active: this.activeTab == r.Participants, hide: this.hideTab(r.Participants) }, part: "editortab__participants net__tab-participants", onClick: (n) => this.setActiveTab(n, r.Participants) }, e("people-icon", { width: "16", height: "16" }), d.t("participantsTab")), e("button", { name: r.BookingOptions, class: { tab: !0, active: this.activeTab == r.BookingOptions, hide: this.hideTab(r.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (n) => this.setActiveTab(n, r.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), d.t("bookingOptionsTab")), e("button", { name: r.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(r.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (n) => this.setActiveTab(n, r.BookingForm) }, this.activeTab == r.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), d.t("bookingFormTab")), e("button", { name: r.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(r.Communications) }, onClick: (n) => this.setActiveTab(n, r.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == r.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), d.t("communicationsTab")), e("button", { name: r.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(r.PageStyles) }, onClick: (n) => this.setActiveTab(n, r.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == r.PageStyles ? e("paintbrush-fill-icon", { width: "16", height: "16" }) : e("paintbrush-icon", { width: "16", height: "16" }), d.t("pageStylesTab"))), e("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, e(Qt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "new", i18next: d }))) : e("div", { class: "composable", key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, e("slot", null)), e("div", { key: "d2d76b6b587c13a32dfc749f4fea4b47102923f0", class: "footer", part: "editor__footer net__footer" }, e("div", { key: "7714cacce55f8b8e06e60f289ef02fe8e336419c", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && e("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (n) => this.onFeedbackClick(n) }, e("feedback-icon", null))), e("div", { key: "54d1b26ae9e1ffc22fbe679e40ad0ec40f4df3fb", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, e("p", { key: "e443a0cc63281f971bbdf7349e1adbb88abb42a9", class: {
497
504
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
498
505
  "saved-changes": this.changesSaved,
499
506
  error: this.error !== "",
500
507
  "error-full-width": this.error !== "" && this.action === "create"
501
508
  } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (n) => {
502
509
  n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(tt(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
503
- }, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "d2983166679d914328f8fff635cff2cf2f18b776", type: "button", disabled: this.isLoading, clickHandler: (n) => {
510
+ }, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "057295595f302e2090a0136981a09546f6994c1c", type: "button", disabled: this.isLoading, clickHandler: (n) => {
504
511
  n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
505
- }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, "Back"), e("button-component", { key: "6c9276bdd579c468544d8b9a1d558e216605f3c4", type: "submit", disabled: this.isLoading, part: "editor__footer-cta net__footer-cta" }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && e("nylas-feedback-form", null));
512
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, d.t("backButton")), e("button-component", { key: "18ba294735d5754526a3634f5c7dc7dfd87d1679", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? e("span", null, d.t("savingButtonText"), e("loading-icon", null), " ") : this.action === "create" ? `${d.t("createButtonText")}` : `${d.t("saveChangesButtonText")}`)))), this.showFeedbackModal && e("nylas-feedback-form", null));
506
513
  }
507
514
  get host() {
508
- return Pt(this);
515
+ return Ft(this);
509
516
  }
510
517
  static get watchers() {
511
518
  return {
512
519
  selectedConfiguration: ["configChangedHandler"],
513
- currentUser: ["userChangedHandler"]
520
+ currentUser: ["userChangedHandler"],
521
+ selectedLanguage: ["selectedLanguageChangedHandler"]
514
522
  };
515
523
  }
516
524
  };
@@ -521,20 +529,21 @@ te([
521
529
  ["schedulerConfig.calendars", "calendars"],
522
530
  ["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
523
531
  ["schedulerConfig.currentUser", "currentUser"],
524
- ["schedulerConfig.configurations", "configurations"]
532
+ ["schedulerConfig.configurations", "configurations"],
533
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"]
525
534
  ]),
526
535
  eventToProps: {
527
536
  schedulerConfigChanged: async (t, a) => {
528
- const { resetLoadingState: n, setError: i, action: o, config: s } = t.detail, c = (l) => {
529
- const [b, y] = l;
530
- !b && y && i && i(y), n && n(t);
537
+ const { resetLoadingState: n, host: i, action: o, config: s } = t.detail, b = (l) => {
538
+ const [h, y] = l;
539
+ !h && y ? i.setError(y) : h && !y && o === "create" && i.schedulerConfigCreatedEventHandler({ config: h }), n && n(t);
531
540
  };
532
541
  if (o === "edit") {
533
542
  const l = await a.schedulerConfig.updateConfiguration(s);
534
- c(l);
543
+ b(l);
535
544
  } else {
536
545
  const l = await a.schedulerConfig.createConfiguration(s);
537
- c(l);
546
+ b(l);
538
547
  }
539
548
  },
540
549
  cancelButtonClick: async (t, a) => {
@@ -548,6 +557,9 @@ te([
548
557
  },
549
558
  schedulerEditorFormUpdated: async (t, a) => {
550
559
  u("[nylas-editor-tabs]", "schedulerEditorFormUpdated", t);
560
+ },
561
+ schedulerConfigCreated: async (t, a) => {
562
+ u("[nylas-editor-tabs]", "schedulerConfigCreated", t);
551
563
  }
552
564
  },
553
565
  localPropsToProp: /* @__PURE__ */ new Map([
@@ -560,16 +572,16 @@ te([
560
572
  X("design:type", Function),
561
573
  X("design:paramtypes", []),
562
574
  X("design:returntype", void 0)
563
- ], Tt.prototype, "render", null);
564
- Tt.style = Yt;
565
- const ee = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:1rem;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{text-align:right}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .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);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;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){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;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)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', ae = ee;
575
+ ], Pt.prototype, "render", null);
576
+ Pt.style = Yt;
577
+ const ee = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:16px;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem;text-align:right}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .actions select-dropdown.last::part(sd_dropdown-content){bottom:54px}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .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);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;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){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;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)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', ae = ee;
566
578
  var ne = function(t, a, n, i) {
567
- var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
579
+ var o = arguments.length, s = o < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, b;
568
580
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
569
581
  s = Reflect.decorate(t, a, n, i);
570
582
  else
571
583
  for (var l = t.length - 1; l >= 0; l--)
572
- (c = t[l]) && (s = (o < 3 ? c(s) : o > 3 ? c(a, n, s) : c(a, n)) || s);
584
+ (b = t[l]) && (s = (o < 3 ? b(s) : o > 3 ? b(a, n, s) : b(a, n)) || s);
573
585
  return o > 3 && s && Object.defineProperty(a, n, s), s;
574
586
  }, Y = function(t, a) {
575
587
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
@@ -577,7 +589,7 @@ var ne = function(t, a, n, i) {
577
589
  };
578
590
  const Et = class {
579
591
  constructor(t) {
580
- q(this, t), this.initListConfigurations = k(this, "initListConfigurations", 7), this.createButtonClick = k(this, "createButtonClick", 7), this.editButtonClick = k(this, "editButtonClick", 7), this.deleteButtonClick = k(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
592
+ q(this, t), this.initListConfigurations = k(this, "initListConfigurations", 7), this.createButtonClick = k(this, "createButtonClick", 7), this.editButtonClick = k(this, "editButtonClick", 7), this.deleteButtonClick = k(this, "deleteButtonClick", 7), this.configurations = [], this.selectedLanguage = void 0, this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
581
593
  }
582
594
  listConfigurationsNextCursorChangedHandler(t, a) {
583
595
  if (!t || t === a) {
@@ -586,6 +598,9 @@ const Et = class {
586
598
  }
587
599
  this.disableNextPageButton = !1, this.currentCursor = t;
588
600
  }
601
+ selectedLanguageChangedHandler(t, a) {
602
+ t !== a && d.changeLanguage(t);
603
+ }
589
604
  connectedCallback() {
590
605
  u("[nylas-list-configurations]", "connectedCallback");
591
606
  }
@@ -655,11 +670,11 @@ const Et = class {
655
670
  };
656
671
  switch (t) {
657
672
  case "preview":
658
- return e("span", { style: a }, e("eye-icon", { width: "16", height: "16" }), "Preview");
673
+ return e("span", { style: a }, e("eye-icon", { width: "16", height: "16" }), d.t("nylasListConfigurations.previewButtonText"));
659
674
  case "copy":
660
- return e("span", { style: a }, e("copy-icon", { width: "16", height: "16" }), "Copy link");
675
+ return e("span", { style: a }, e("copy-icon", { width: "16", height: "16" }), d.t("nylasListConfigurations.copyLinkButtonText"));
661
676
  case "delete":
662
- return e("span", { style: { ...a, ...n } }, e("delete-icon", { width: "15", height: "17" }), "Delete");
677
+ return e("span", { style: { ...a, ...n } }, e("delete-icon", { width: "15", height: "17" }), d.t("nylasListConfigurations.deleteButtonText"));
663
678
  default:
664
679
  return "";
665
680
  }
@@ -682,33 +697,37 @@ const Et = class {
682
697
  }
683
698
  render() {
684
699
  var t;
685
- return e(Lt, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, "All Scheduling Pages"), e("p", null, "Create and manage your Scheduling Pages.")), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
700
+ return e(Tt, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, d.t("allSchedulingPages")), e("p", null, d.t("createAndManageSchedulingPages"))), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
686
701
  this.createButtonClick.emit(this.host);
687
- } }, "Create new"))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
702
+ } }, d.t("createNewSchedulingPageButtonText")))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
688
703
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
689
704
  } }, e("tr", { class: {
690
705
  hide: this.state === "loading" || this.configurations && this.configurations.length === 0
691
- } }, e("th", null, "Page title"), e("th", null, "Duration"), e("th", null)), this.state === "loading" && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("h3", null, "Loading..."), e("p", null, "Please wait while we fetch the scheduling pages")))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("calendar-icon", { width: "48", height: "48" }), e("h3", null, "No scheduling pages found"), e("p", null, "Get started with creating your first scheduling page"), e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
706
+ } }, e("th", null, d.t("pageTitle")), e("th", null, d.t("durationTitle")), e("th", null)), this.state === "loading" && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("h3", null, d.t("loading"), "..."), e("p", null, d.t("loadingPagesDescription"))))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("calendar-icon", { width: "48", height: "48" }), e("h3", null, d.t("noSchedulingPages")), e("p", null, d.t("createFirstSchedulingPage")), e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
692
707
  this.createButtonClick.emit(this.host);
693
- } }, "Create new")))), this.state !== "loading" && ((t = this.configurations) == null ? void 0 : t.map((a, n) => {
694
- var i, o, s, c;
695
- return e("tr", { key: a == null ? void 0 : a.id }, e("td", null, e("div", { class: "title" }, e("div", { class: "config-event-title", title: (i = a == null ? void 0 : a.event_booking) == null ? void 0 : i.title }, (o = a == null ? void 0 : a.event_booking) == null ? void 0 : o.title), e("div", { class: "config-event-description" }, (s = a == null ? void 0 : a.event_booking) == null ? void 0 : s.description))), e("td", null, e("div", { class: "duration" }, this.getDurationString((c = a == null ? void 0 : a.availability) == null ? void 0 : c.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", key: `edit-${n}`, clickHandler: (l) => {
696
- l.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
697
- } }, e("edit-icon", { width: "16", height: "16" }), "Edit"), e("select-dropdown", { name: "actions", options: [
708
+ } }, d.t("createNewSchedulingPageButtonText"))))), this.state !== "loading" && ((t = this.configurations) == null ? void 0 : t.map((a, n) => {
709
+ var o, s, b, l;
710
+ const i = n === this.configurations.length - 1 || n === this.configurations.length - 2;
711
+ return e("tr", { key: a == null ? void 0 : a.id }, e("td", null, e("div", { class: "title" }, e("div", { class: "config-event-title", title: (o = a == null ? void 0 : a.event_booking) == null ? void 0 : o.title }, (s = a == null ? void 0 : a.event_booking) == null ? void 0 : s.title), e("div", { class: "config-event-description" }, (b = a == null ? void 0 : a.event_booking) == null ? void 0 : b.description))), e("td", null, e("div", { class: "duration" }, this.getDurationString((l = a == null ? void 0 : a.availability) == null ? void 0 : l.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", key: `edit-${n}`, clickHandler: (h) => {
712
+ h.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
713
+ } }, e("edit-icon", { width: "16", height: "16" }), d.t("editSchedulingPageButtonText")), e("select-dropdown", { class: {
714
+ last: i
715
+ }, name: "actions", options: [
698
716
  { value: `preview-${n}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
699
717
  { value: `copy-${n}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
700
718
  { value: `delete-${n}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
701
719
  ], defaultSelectedOption: { value: "", label: "" }, dropdownButtonText: "...", withSearch: !1, withChevron: !1, exportparts: "sd_dropdown: actions__dropdown, sd_dropdown-button: actions__dropdown-button, sd_dropdown-content: actions__dropdown-content" }))));
702
- })))), e("div", { class: "pagination" }, e("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, e("chevron-icon", null)), e("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, e("chevron-icon", null)))), this.state === "error" && e("div", { class: "error-container" }, e("p", { class: "error" }, this.error)), !!this.deleteConfigurationId && e("div", { class: "card-wrapper" }, e("div", { class: "card-modal" }, e("div", { class: "close-button" }, e("button-component", { tooltip: "Close", id: "close", variant: "invisible", onClick: (a) => this.closeModal(a), part: "nfbf__close-button" }, e("close-icon", null))), e("div", { class: "header" }, e("h2", { slot: "card-title", part: "nfbf__title" }, W.t("deleteSchedulingPageTitle"))), e("div", { class: "description title-desc" }, e("p", null, W.t("deleteSchedulingPageDescription"))), e("div", { class: {
720
+ })))), e("div", { class: "pagination" }, e("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, e("chevron-icon", null)), e("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, e("chevron-icon", null)))), this.state === "error" && e("div", { class: "error-container" }, e("p", { class: "error" }, this.error)), !!this.deleteConfigurationId && e("div", { class: "card-wrapper" }, e("div", { class: "card-modal" }, e("div", { class: "close-button" }, e("button-component", { tooltip: "Close", id: "close", variant: "invisible", onClick: (a) => this.closeModal(a), part: "nfbf__close-button" }, e("close-icon", null))), e("div", { class: "header" }, e("h2", { slot: "card-title", part: "nfbf__title" }, d.t("deleteSchedulingPageTitle"))), e("div", { class: "description title-desc" }, e("p", null, d.t("deleteSchedulingPageDescription"))), e("div", { class: {
703
721
  footer: !0
704
- } }, e("button-component", { variant: "basic", onClick: (a) => this.closeModal(a), part: "nfbf__button-outline nfbf__cancel-cta" }, `${W.t("deleteSchedulingPageCancelButton")}`), e("button-component", { variant: "destructive", onClick: (a) => this.handleConfirmDeleteButtonClicked(a), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${W.t("deleteSchedulingPageConfirmButton")}`)))));
722
+ } }, e("button-component", { variant: "basic", onClick: (a) => this.closeModal(a), part: "nfbf__button-outline nfbf__cancel-cta" }, `${d.t("deleteSchedulingPageCancelButton")}`), e("button-component", { variant: "destructive", onClick: (a) => this.handleConfirmDeleteButtonClicked(a), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${d.t("deleteSchedulingPageConfirmButton")}`)))));
705
723
  }
706
724
  get host() {
707
- return Pt(this);
725
+ return Ft(this);
708
726
  }
709
727
  static get watchers() {
710
728
  return {
711
- listConfigurationsNextCursor: ["listConfigurationsNextCursorChangedHandler"]
729
+ listConfigurationsNextCursor: ["listConfigurationsNextCursorChangedHandler"],
730
+ selectedLanguage: ["selectedLanguageChangedHandler"]
712
731
  };
713
732
  }
714
733
  };
@@ -717,7 +736,8 @@ ne([
717
736
  name: "nylas-list-configurations",
718
737
  stateToProps: /* @__PURE__ */ new Map([
719
738
  ["schedulerConfig.configurations", "configurations"],
720
- ["schedulerConfig.listConfigurationsNextCursor", "listConfigurationsNextCursor"]
739
+ ["schedulerConfig.listConfigurationsNextCursor", "listConfigurationsNextCursor"],
740
+ ["schedulerConfig.selectedLanguage", "selectedLanguage"]
721
741
  ]),
722
742
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
723
743
  eventToProps: {
@@ -753,6 +773,6 @@ Et.style = ae;
753
773
  export {
754
774
  Gt as google_logo_icon,
755
775
  Kt as microsoft_logo_icon,
756
- Tt as nylas_editor_tabs,
776
+ Pt as nylas_editor_tabs,
757
777
  Et as nylas_list_configurations
758
778
  };