@nylas/react 1.1.0-canary.17 → 1.1.0-canary.18

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 (119) hide show
  1. package/dist/add-circle-icon_2.entry-3091976b.cjs +1 -0
  2. package/dist/add-circle-icon_2.entry-3b13ee64.js +25 -0
  3. package/dist/{archive-icon_7.entry-60e900b6.js → archive-icon_7.entry-8932618a.js} +14 -14
  4. package/dist/{archive-icon_7.entry-8c8317e9.cjs → archive-icon_7.entry-c2b6d860.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-057db95a.js → arrow-icon.entry-1f54c377.js} +4 -4
  6. package/dist/{arrow-icon.entry-2d4e9572.cjs → arrow-icon.entry-a159bee8.cjs} +1 -1
  7. package/dist/{bold-icon_3.entry-557c6007.js → bold-icon_3.entry-447d0537.js} +6 -6
  8. package/dist/{bold-icon_3.entry-ba732761.cjs → bold-icon_3.entry-c51e1af3.cjs} +1 -1
  9. package/dist/{button-component.entry-22d0ac2e.js → button-component.entry-52ccb6d9.js} +2 -2
  10. package/dist/{button-component.entry-385f9581.cjs → button-component.entry-e79b2d08.cjs} +1 -1
  11. package/dist/{calendar-cancel-icon.entry-b2657caf.cjs → calendar-cancel-icon.entry-805febcc.cjs} +1 -1
  12. package/dist/{calendar-cancel-icon.entry-820cf967.js → calendar-cancel-icon.entry-a78f27bc.js} +5 -5
  13. package/dist/{calendar-check-icon_2.entry-b13e7cbb.cjs → calendar-check-icon_2.entry-4a0fd7bd.cjs} +1 -1
  14. package/dist/{calendar-check-icon_2.entry-128a5d67.js → calendar-check-icon_2.entry-7c8b6c92.js} +9 -9
  15. package/dist/{calendar-icon.entry-d17d7cfb.cjs → calendar-icon.entry-1fc018b4.cjs} +1 -1
  16. package/dist/{calendar-icon.entry-a43e6011.js → calendar-icon.entry-96f9727f.js} +2 -2
  17. package/dist/{calendar-info-icon_28.entry-b4f09bfe.cjs → calendar-info-icon_28.entry-2054703c.cjs} +1 -1
  18. package/dist/{calendar-info-icon_28.entry-b71c23c5.js → calendar-info-icon_28.entry-e7bebd13.js} +34 -34
  19. package/dist/{chevron-icon_3.entry-e0796c69.js → chevron-icon_3.entry-25d90239.js} +6 -6
  20. package/dist/chevron-icon_3.entry-7bd4a4b5.cjs +1 -0
  21. package/dist/{clock-icon_2.entry-267614c2.cjs → clock-icon_2.entry-2406c3d0.cjs} +1 -1
  22. package/dist/{clock-icon_2.entry-e959ae50.js → clock-icon_2.entry-c1b22ed4.js} +9 -9
  23. package/dist/{constants-f34b9c6e-ebc2e19c.cjs → constants-f34b9c6e-b774916c.cjs} +1 -1
  24. package/dist/{constants-f34b9c6e-efe2836b.js → constants-f34b9c6e-f1c4dd0d.js} +1 -1
  25. package/dist/document-refresh-icon.entry-570f9c9d.js +15 -0
  26. package/dist/document-refresh-icon.entry-a0293858.cjs +1 -0
  27. package/dist/{elements-dc5b338e-a33785e3.cjs → elements-dc5b338e-550a6cb1.cjs} +1 -1
  28. package/dist/{elements-dc5b338e-b0a290ae.js → elements-dc5b338e-cafa7a55.js} +1 -1
  29. package/dist/{focus-visible-e8093c16-5f1ae916.js → focus-visible-e8093c16-022799ce.js} +1 -1
  30. package/dist/{focus-visible-e8093c16-d2afb13d.cjs → focus-visible-e8093c16-c14162e8.cjs} +1 -1
  31. package/dist/{forward-icon_6.entry-0009e4f0.cjs → forward-icon_6.entry-55752b23.cjs} +3 -3
  32. package/dist/{forward-icon_6.entry-53683e82.js → forward-icon_6.entry-9b832146.js} +9 -9
  33. package/dist/{globe-icon.entry-dbb47687.js → globe-icon.entry-2b61820e.js} +2 -2
  34. package/dist/{globe-icon.entry-df67eab8.cjs → globe-icon.entry-dabe7b8b.cjs} +1 -1
  35. package/dist/google-logo-icon_4.entry-60c0d39a.cjs +1 -0
  36. package/dist/{google-logo-icon_4.entry-77f3b86e.js → google-logo-icon_4.entry-a0dc33da.js} +127 -114
  37. package/dist/index-53420959-67beefed.js +5 -0
  38. package/dist/index-53420959-d3254a34.cjs +1 -0
  39. package/dist/{index-6d9eeb53-ded66877.cjs → index-6d9eeb53-3049fc04.cjs} +1 -1
  40. package/dist/{index-6d9eeb53-2f37342f.js → index-6d9eeb53-3edef246.js} +2 -2
  41. package/dist/{index-5851f0a2.js → index-812162da.js} +42 -42
  42. package/dist/{index-769f0fdd.cjs → index-e3e9b594.cjs} +2 -2
  43. package/dist/{index.es-9cc0eb3c-e8de46e6.cjs → index.es-9cc0eb3c-0c99c055.cjs} +1 -1
  44. package/dist/{index.es-9cc0eb3c-2cf4632f.js → index.es-9cc0eb3c-52226859.js} +1 -1
  45. package/dist/{info-icon_2.entry-c27ac645.js → info-icon_2.entry-2fe6c16c.js} +8 -8
  46. package/dist/{info-icon_2.entry-e355fb7d.cjs → info-icon_2.entry-5f6b9af8.cjs} +1 -1
  47. package/dist/{input-component.entry-a38a65da.js → input-component.entry-1195d579.js} +6 -6
  48. package/dist/{input-component.entry-ef2b397d.cjs → input-component.entry-2b6e44c4.cjs} +1 -1
  49. package/dist/{input-dropdown_2.entry-ce1da1b3.js → input-dropdown_2.entry-dbd0d6f4.js} +3 -3
  50. package/dist/{input-dropdown_2.entry-9e50060e.cjs → input-dropdown_2.entry-dbdb5aa3.cjs} +1 -1
  51. package/dist/loading-icon.entry-027a2ad1.js +15 -0
  52. package/dist/loading-icon.entry-e179f122.cjs +1 -0
  53. package/dist/{mailbox-store-64b4ef7c-ebe84c96.cjs → mailbox-store-64b4ef7c-0eac526c.cjs} +1 -1
  54. package/dist/{mailbox-store-64b4ef7c-47dac9aa.js → mailbox-store-64b4ef7c-22a6c565.js} +2 -2
  55. package/dist/nylas-booked-event-card_10.entry-84f64ba5.cjs +1 -0
  56. package/dist/{nylas-booked-event-card_10.entry-ef9c2d62.js → nylas-booked-event-card_10.entry-e0990f5b.js} +170 -170
  57. package/dist/{nylas-custom-booking-flow.entry-c59c1306.cjs → nylas-custom-booking-flow.entry-898c8cc9.cjs} +1 -1
  58. package/dist/{nylas-custom-booking-flow.entry-f31400e2.js → nylas-custom-booking-flow.entry-bc64af5f.js} +3 -3
  59. package/dist/{nylas-form-card.entry-bc048703.cjs → nylas-form-card.entry-0c71f4fc.cjs} +1 -1
  60. package/dist/{nylas-form-card.entry-b189e066.js → nylas-form-card.entry-c564b52e.js} +14 -14
  61. package/dist/{nylas-if-state.entry-5bdf8669.js → nylas-if-state.entry-e9486e12.js} +3 -3
  62. package/dist/{nylas-if-state.entry-933c79e0.cjs → nylas-if-state.entry-ff6a2046.cjs} +1 -1
  63. package/dist/{nylas-list-folders.entry-f0e7ae4e.js → nylas-list-folders.entry-0258af1e.js} +7 -7
  64. package/dist/{nylas-list-folders.entry-5d1bef7f.cjs → nylas-list-folders.entry-90716d2b.cjs} +1 -1
  65. package/dist/{nylas-list-threads.entry-3f7451ad.js → nylas-list-threads.entry-1abcdd30.js} +3 -3
  66. package/dist/{nylas-list-threads.entry-3e300e7e.cjs → nylas-list-threads.entry-21edf012.cjs} +1 -1
  67. package/dist/{nylas-login.entry-dbf9e11f.cjs → nylas-login.entry-2e0ce95e.cjs} +1 -1
  68. package/dist/{nylas-login.entry-e3b757a0.js → nylas-login.entry-ba7383ac.js} +7 -7
  69. package/dist/{nylas-mailbox-pagination.entry-0db12a01.cjs → nylas-mailbox-pagination.entry-ba6beb08.cjs} +1 -1
  70. package/dist/{nylas-mailbox-pagination.entry-6c845a2a.js → nylas-mailbox-pagination.entry-f6186560.js} +2 -2
  71. package/dist/{nylas-mailbox-toolbar-button.entry-553f041a.cjs → nylas-mailbox-toolbar-button.entry-0875aadb.cjs} +1 -1
  72. package/dist/{nylas-mailbox-toolbar-button.entry-ec196947.js → nylas-mailbox-toolbar-button.entry-e18059b0.js} +10 -10
  73. package/dist/{nylas-mailbox.entry-1552ad11.js → nylas-mailbox.entry-2e3815ed.js} +7 -7
  74. package/dist/{nylas-mailbox.entry-c0bbca56.cjs → nylas-mailbox.entry-bb2905bf.cjs} +1 -1
  75. package/dist/{nylas-provider.entry-d4bf23c2.cjs → nylas-provider.entry-51c5cdbf.cjs} +1 -1
  76. package/dist/{nylas-provider.entry-6d286e92.js → nylas-provider.entry-69ee5061.js} +37 -37
  77. package/dist/{nylas-scheduler-editor.entry-00a71304.cjs → nylas-scheduler-editor.entry-923b8566.cjs} +2 -2
  78. package/dist/{nylas-scheduler-editor.entry-caa1026b.js → nylas-scheduler-editor.entry-d4a9afb1.js} +5 -5
  79. package/dist/{nylas-scheduling.entry-f1fb67d2.cjs → nylas-scheduling.entry-54f1a5e9.cjs} +1 -1
  80. package/dist/{nylas-scheduling.entry-19ff3d50.js → nylas-scheduling.entry-f82a2822.js} +3 -3
  81. package/dist/{nylas-threads-refresh.entry-6acf3c2b.js → nylas-threads-refresh.entry-72482d2f.js} +10 -10
  82. package/dist/{nylas-threads-refresh.entry-bc4c10ea.cjs → nylas-threads-refresh.entry-99001756.cjs} +1 -1
  83. package/dist/{nylas-threads-search.entry-ee28712c.cjs → nylas-threads-search.entry-462527fd.cjs} +1 -1
  84. package/dist/{nylas-threads-search.entry-82fa1504.js → nylas-threads-search.entry-c5fe50e5.js} +16 -16
  85. package/dist/{nylas-time-window-picker.entry-3c45d82e.js → nylas-time-window-picker.entry-0d93e7cc.js} +2 -2
  86. package/dist/{nylas-time-window-picker.entry-131f84b4.cjs → nylas-time-window-picker.entry-ccffcf2b.cjs} +1 -1
  87. package/dist/{nylas-view-thread.entry-695a7b0b.js → nylas-view-thread.entry-2d34b41c.js} +3 -3
  88. package/dist/{nylas-view-thread.entry-0d9a4aa9.cjs → nylas-view-thread.entry-58432a52.cjs} +1 -1
  89. package/dist/play-icon_2.entry-1ea3fd6b.cjs +1 -0
  90. package/dist/{play-icon_2.entry-ab47588e.js → play-icon_2.entry-d08adf17.js} +7 -7
  91. package/dist/react.cjs +1 -1
  92. package/dist/react.js +1 -1
  93. package/dist/{refresh-icon.entry-28e3ade7.cjs → refresh-icon.entry-1e670732.cjs} +1 -1
  94. package/dist/{refresh-icon.entry-43267155.js → refresh-icon.entry-a041136d.js} +4 -4
  95. package/dist/{register-component-a5a9ca5d-538c35c3.js → register-component-a5a9ca5d-a5c01c35.js} +1 -1
  96. package/dist/{register-component-a5a9ca5d-8b06415c.cjs → register-component-a5a9ca5d-b68b6039.cjs} +1 -1
  97. package/dist/{scheduler-config-store-4a50a03d-40e87f35.cjs → scheduler-config-store-4a50a03d-884e6df8.cjs} +1 -1
  98. package/dist/{scheduler-config-store-4a50a03d-4a2e2abf.js → scheduler-config-store-4a50a03d-ee42ff96.js} +1 -1
  99. package/dist/{scheduler-store-f02ce045-121c1e09.js → scheduler-store-f02ce045-23a14e3f.js} +1 -1
  100. package/dist/{scheduler-store-f02ce045-f11cfad9.cjs → scheduler-store-f02ce045-42e3647c.cjs} +1 -1
  101. package/dist/{textarea-component.entry-1ec19adb.js → textarea-component.entry-1b4c771b.js} +4 -4
  102. package/dist/{textarea-component.entry-402a369b.cjs → textarea-component.entry-24a830c1.cjs} +1 -1
  103. package/dist/{translate-icon.entry-59f4e190.cjs → translate-icon.entry-0c0add25.cjs} +1 -1
  104. package/dist/{translate-icon.entry-d412697e.js → translate-icon.entry-44bde57b.js} +6 -6
  105. package/dist/{warning-icon.entry-3ee1f451.js → warning-icon.entry-8956cba2.js} +4 -4
  106. package/dist/{warning-icon.entry-aa6b2c2c.cjs → warning-icon.entry-9a77ab01.cjs} +1 -1
  107. package/package.json +2 -2
  108. package/dist/add-circle-icon_2.entry-936fd73b.cjs +0 -1
  109. package/dist/add-circle-icon_2.entry-ce6aaa1d.js +0 -25
  110. package/dist/chevron-icon_3.entry-4807a0b1.cjs +0 -1
  111. package/dist/document-refresh-icon.entry-b4c217df.js +0 -15
  112. package/dist/document-refresh-icon.entry-b8850675.cjs +0 -1
  113. package/dist/google-logo-icon_4.entry-c5db1be3.cjs +0 -1
  114. package/dist/index-53420959-16700a42.cjs +0 -1
  115. package/dist/index-53420959-f0c4f9af.js +0 -5
  116. package/dist/loading-icon.entry-175aca19.cjs +0 -1
  117. package/dist/loading-icon.entry-4ab88ed8.js +0 -15
  118. package/dist/nylas-booked-event-card_10.entry-6de99d57.cjs +0 -1
  119. package/dist/play-icon_2.entry-b1167d3a.cjs +0 -1
@@ -1,27 +1,27 @@
1
- import { r as H, h as e, c as m, x as at, d, y as q, H as K, g as Q } from "./index-5851f0a2.js";
2
- import { R as X } from "./register-component-a5a9ca5d-538c35c3.js";
3
- import { D as W } from "./constants-f34b9c6e-efe2836b.js";
1
+ import { r as F, h as e, c as _, x as ct, d as u, y as tt, H as et, g as at } from "./index-812162da.js";
2
+ import { R as nt } from "./register-component-a5a9ca5d-a5c01c35.js";
3
+ import { D as Y } from "./constants-f34b9c6e-f1c4dd0d.js";
4
4
  import "react";
5
5
  import "react-dom";
6
- const nt = ".sc-google-logo-icon-h{display:flex}", it = nt, st = class {
6
+ const dt = ".sc-google-logo-icon-h{display:flex}", bt = dt, ut = class {
7
7
  constructor(t) {
8
- H(this, t), this.width = "24", this.height = "24";
8
+ F(this, t), this.width = "24", this.height = "24";
9
9
  }
10
10
  render() {
11
- return e("svg", { key: "2b6d66fd099e97716cdb808f575b5aadf1503a06", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "2d02d3ca40389d13f189bddba578ae683c487d3e", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "41eeee9cdd77323ffee094ce688e222c2ae95461", 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: "7a8f1123dc6b8b29324eb255637f7b536982e112", 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: "e71780d270c31b20d6617deb912a0b74b3dc8004", 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: "4e8795414ed616287f7e315d9d4ae7882832c56c", 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: "9ad522ed57a9d8c75d8515e0e0a1e64d1dcde3a0" }, e("clipPath", { key: "da8c3ef1116cd32e06a73e30c5c4bc335f209d5b", id: "clip0_959_12452" }, e("rect", { key: "8936b3346ec26a6c0901073adca44b8021661be6", width: 24, height: 24, fill: "white" }))));
11
+ return e("svg", { key: "0e9d7d49a7c9b6cd2087805b88f0e5a2067dfaed", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "e97ac24bfe96bdba16a9709dde3ebc675e942d56", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "231167532157853cb95fddc85fa8cffcf1134ef4", 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: "4f964a28a6b0894940c9d762a91db0c099f6c2c7", 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: "9ada4b2f2625f18538ff4455b1160efcfccbd646", 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: "6a260b3024a69fa930820a80a917152dc7ef52a7", 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: "56bc051b67a1bfa29ecaf64bac03ee1017836365" }, e("clipPath", { key: "8057800f9035048497e8198789e1e0b4dba1c64a", id: "clip0_959_12452" }, e("rect", { key: "6c0299822390d3433158d87c607fe9546e878eb0", width: 24, height: 24, fill: "white" }))));
12
12
  }
13
13
  };
14
- st.style = it;
15
- const ot = ".sc-microsoft-logo-icon-h{display:flex}", rt = ot, lt = class {
14
+ ut.style = bt;
15
+ const pt = ".sc-microsoft-logo-icon-h{display:flex}", ht = pt, yt = class {
16
16
  constructor(t) {
17
- H(this, t), this.width = "22", this.height = "22";
17
+ F(this, t), this.width = "22", this.height = "22";
18
18
  }
19
19
  render() {
20
- return e("svg", { key: "deae127512c4d2b6ef876ab1311fb6ab4d5cd368", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "ea58fbe3dac4c5a6455acec95fe9677068999d53", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "e8a2faf14e8a7cdf15808a1fac1b16fba79f6051", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "56644908156e19d4ba9eedfec54a9ffa9b9744bd", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "24c76e1b54ed1cdbc97ec6e56888db403169d74f", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
20
+ return e("svg", { key: "3dd5e1a94ca5889c14f7695c9077f9be0cbc4d00", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "381068331f74d7f1a06c0ca0cd9dfc2b58f72a10", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "62c7be7371433602169a19fe2657e0a1635f516e", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "72464e489d4cfd78f016282a743a1000fb732368", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "d766c4d950ee3122cf4916b53ce5f630b52a30bb", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
21
21
  }
22
22
  };
23
- lt.style = rt;
24
- function dt({ id: t, formState: a, activeTab: n, calendars: s }) {
23
+ yt.style = ht;
24
+ function ft({ id: t, formState: a, activeTab: n, calendars: s }) {
25
25
  var o;
26
26
  switch (n) {
27
27
  case "eventInfo":
@@ -43,13 +43,13 @@ function dt({ id: t, formState: a, activeTab: n, calendars: s }) {
43
43
  )
44
44
  );
45
45
  case "availability":
46
- const b = a.availability.openHours, f = a.availability.timezone ? a.availability.timezone : Intl.DateTimeFormat().resolvedOptions().timeZone, p = (o = a.participants) == null ? void 0 : o.find((w) => w.is_organizer), g = (p == null ? void 0 : p.email) ?? "primary", _ = a.calendarIds.length > 0 ? a.calendarIds : [g], v = a.bookingCalendar == "primary" ? g : a.bookingCalendar;
46
+ const d = a.availability.openHours, m = a.availability.timezone ? a.availability.timezone : Intl.DateTimeFormat().resolvedOptions().timeZone, h = (o = a.participants) == null ? void 0 : o.find((C) => C.is_organizer), v = (h == null ? void 0 : h.email) ?? "primary", w = a.calendarIds.length > 0 ? a.calendarIds : [v], k = a.bookingCalendar == "primary" ? v : a.bookingCalendar;
47
47
  return e(
48
48
  "div",
49
49
  { key: t },
50
- e("nylas-booking-calendar-picker", { name: "booking-calendar", calendars: s ?? [], defaultBookingCalendar: v, exportparts: "nbcp, nbcp__header, nbcp__input-label, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content" }),
51
- e("nylas-calendar-picker", { name: "calendars", calendars: s ?? [], defaultSelectedCalendars: _, exportparts: "ncp ncp__header, ncp__dropdown, ncp__dropdown-button, ncp__dropdown-content" }),
52
- e("nylas-availability-picker", { name: "availability", openHours: b, defaultTimezone: f, exportparts: "nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times" })
50
+ e("nylas-booking-calendar-picker", { name: "booking-calendar", calendars: s ?? [], defaultBookingCalendar: k, exportparts: "nbcp, nbcp__header, nbcp__input-label, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content" }),
51
+ e("nylas-calendar-picker", { name: "calendars", calendars: s ?? [], defaultSelectedCalendars: w, exportparts: "ncp ncp__header, ncp__dropdown, ncp__dropdown-button, ncp__dropdown-content" }),
52
+ e("nylas-availability-picker", { name: "availability", openHours: d, defaultTimezone: m, exportparts: "nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times" })
53
53
  );
54
54
  case "bookingOptions":
55
55
  return e(
@@ -80,8 +80,8 @@ function dt({ id: t, formState: a, activeTab: n, calendars: s }) {
80
80
  );
81
81
  }
82
82
  }
83
- const ct = '.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}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:554px;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)}.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.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 .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto}.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}.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}', bt = ct;
84
- var ut = function(t, a, n, s) {
83
+ const mt = '.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}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:554px;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)}.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.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 .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto}.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}.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}', gt = mt;
84
+ var _t = function(t, a, n, s) {
85
85
  var o = arguments.length, i = o < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, n) : s, l;
86
86
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
87
87
  i = Reflect.decorate(t, a, n, s);
@@ -89,130 +89,143 @@ var ut = function(t, a, n, s) {
89
89
  for (var r = t.length - 1; r >= 0; r--)
90
90
  (l = t[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(a, n, i) : l(a, n)) || i);
91
91
  return o > 3 && i && Object.defineProperty(a, n, i), i;
92
- }, F = function(t, a) {
92
+ }, I = function(t, a) {
93
93
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
94
94
  return Reflect.metadata(t, a);
95
95
  };
96
- const Y = class {
96
+ const it = class {
97
97
  constructor(t) {
98
- H(this, t), this.schedulerConfigChanged = m(this, "schedulerConfigChanged", 7), this.cancelButtonClick = m(this, "cancelButtonClick", 7), this.formSubmitted = m(this, "formSubmitted", 7), this.previewButtonClicked = m(this, "previewButtonClicked", 7), this.setError = (a) => {
98
+ F(this, t), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.setError = (a) => {
99
99
  this.error = a.message;
100
100
  }, this.formSubmissionHandler = async (a) => {
101
- var P, E, R, N, z, j, M, V, A, $, U;
101
+ var P, E, R, N, j, M, z, V, U, A, $, Z, G, J, W, q;
102
102
  if (a.preventDefault(), this.formSubmitted.emit(), !this.formRef.checkValidity())
103
103
  return;
104
104
  this.isLoading = !0, this.hasUnsavedChanges = !1;
105
- const s = this.updateFormState(), { title: o, description: i, duration: l, availability: r, calendarIds: c, bookingCalendar: b, location: f, bookingType: p, buffer: g, availableDaysInFuture: _, minCancellationNotice: v, minBookingNotice: w, cancellationPolicy: S, timeslotInterval: h, additionalGuestsHidden: L, hideCancellationOptions: B, hideReschedulingOptions: D, participants: k, participantOpenHours: y } = s, C = l ? parseInt(l) : 30, x = {
106
- ...((P = this.selectedConfiguration) == null ? void 0 : P.id) && { id: this.selectedConfiguration.id },
107
- version: ((E = this.selectedConfiguration) == null ? void 0 : E.version) ?? "1.0.0",
105
+ const s = this.updateFormState(), { title: o, description: i, duration: l, availability: r, calendarIds: c, bookingCalendar: d, location: m, bookingType: h, buffer: v, availableDaysInFuture: w, minCancellationNotice: k, minBookingNotice: C, cancellationPolicy: L, timeslotInterval: y, additionalGuestsHidden: B, hideCancellationOptions: D, hideReschedulingOptions: T, participants: g, participantOpenHours: f } = s, p = (E = (P = this.selectedConfiguration) == null ? void 0 : P.participants) == null ? void 0 : E.find((b) => b.is_organizer), S = l ? parseInt(l) : 30, x = g && (g == null ? void 0 : g.length) > 0 ? g : [
106
+ {
107
+ name: (p == null ? void 0 : p.name) ?? ((R = this.currentUser) == null ? void 0 : R.name) ?? (p == null ? void 0 : p.email) ?? ((N = this.currentUser) == null ? void 0 : N.email) ?? "",
108
+ email: (p == null ? void 0 : p.email) ?? ((j = this.currentUser) == null ? void 0 : j.email) ?? "",
109
+ is_organizer: !0,
110
+ availability: {
111
+ calendar_ids: c != null && c.length ? c : ["primary"],
112
+ open_hours: []
113
+ },
114
+ booking: {
115
+ calendar_id: d && d !== "" ? d : "primary"
116
+ }
117
+ }
118
+ ], H = {
119
+ ...((M = this.selectedConfiguration) == null ? void 0 : M.id) && { id: this.selectedConfiguration.id },
120
+ version: ((z = this.selectedConfiguration) == null ? void 0 : z.version) ?? "1.0.0",
108
121
  availability: {
109
- duration_minutes: C,
110
- interval_minutes: (h == null ? void 0 : h.interval) ?? C,
111
- round_to: h == null ? void 0 : h.roundTo,
122
+ duration_minutes: S,
123
+ interval_minutes: (y == null ? void 0 : y.interval) ?? S,
124
+ round_to: y == null ? void 0 : y.roundTo,
112
125
  availability_rules: {
113
- availability_method: ((z = (N = (R = this.selectedConfiguration) == null ? void 0 : R.availability) == null ? void 0 : N.availability_rules) == null ? void 0 : z.availability_method) ?? "collective",
114
- buffer: g || { before: 0, after: 0 },
115
- default_open_hours: (r == null ? void 0 : r.openHours) ?? ((V = (M = (j = this.selectedConfiguration) == null ? void 0 : j.availability) == null ? void 0 : M.availability_rules) == null ? void 0 : V.default_open_hours) ?? W,
116
- round_robin_group_id: ((U = ($ = (A = this.selectedConfiguration) == null ? void 0 : A.availability) == null ? void 0 : $.availability_rules) == null ? void 0 : U.round_robin_group_id) ?? ""
126
+ availability_method: ((A = (U = (V = this.selectedConfiguration) == null ? void 0 : V.availability) == null ? void 0 : U.availability_rules) == null ? void 0 : A.availability_method) ?? "collective",
127
+ buffer: v || { before: 0, after: 0 },
128
+ default_open_hours: (r == null ? void 0 : r.openHours) ?? ((G = (Z = ($ = this.selectedConfiguration) == null ? void 0 : $.availability) == null ? void 0 : Z.availability_rules) == null ? void 0 : G.default_open_hours) ?? Y,
129
+ round_robin_group_id: ((q = (W = (J = this.selectedConfiguration) == null ? void 0 : J.availability) == null ? void 0 : W.availability_rules) == null ? void 0 : q.round_robin_group_id) ?? ""
117
130
  }
118
131
  },
119
132
  participants: [
120
- ...(k == null ? void 0 : k.map((u) => {
121
- var Z, G, J;
122
- return u.is_organizer ? {
123
- name: u.name ?? u.email,
124
- email: u.email,
133
+ ...x == null ? void 0 : x.map((b) => {
134
+ var K, Q, X;
135
+ return b.is_organizer ? {
136
+ name: b.name ?? b.email,
137
+ email: b.email,
125
138
  is_organizer: !0,
126
139
  availability: {
127
140
  calendar_ids: c != null && c.length ? c : ["primary"],
128
- open_hours: (y == null ? void 0 : y[u.email]) ?? ((Z = u.availability) == null ? void 0 : Z.open_hours) ?? []
141
+ open_hours: (f == null ? void 0 : f[b.email]) ?? ((K = b.availability) == null ? void 0 : K.open_hours) ?? []
129
142
  },
130
143
  booking: {
131
- calendar_id: b && b !== "" ? b : "primary"
144
+ calendar_id: d && d !== "" ? d : "primary"
132
145
  }
133
146
  } : {
134
- ...u,
147
+ ...b,
135
148
  availability: {
136
- calendar_ids: ((G = u.availability) == null ? void 0 : G.calendar_ids) ?? ["primary"],
137
- open_hours: (y == null ? void 0 : y[u.email]) ?? ((J = u.availability) == null ? void 0 : J.open_hours) ?? []
149
+ calendar_ids: ((Q = b.availability) == null ? void 0 : Q.calendar_ids) ?? ["primary"],
150
+ open_hours: (f == null ? void 0 : f[b.email]) ?? ((X = b.availability) == null ? void 0 : X.open_hours) ?? []
138
151
  }
139
152
  };
140
- })) ?? []
153
+ })
141
154
  ],
142
155
  event_booking: {
143
156
  title: (o == null ? void 0 : o.toString()) ?? "",
144
157
  description: (i == null ? void 0 : i.toString()) ?? "",
145
- location: (f == null ? void 0 : f.toString()) ?? "",
146
- booking_type: (p == null ? void 0 : p.toString()) ?? "booking",
158
+ location: (m == null ? void 0 : m.toString()) ?? "",
159
+ booking_type: (h == null ? void 0 : h.toString()) ?? "booking",
147
160
  timezone: (r == null ? void 0 : r.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone
148
161
  },
149
162
  scheduler: {
150
- cancellation_policy: S ?? "",
151
- available_days_in_future: _ ?? 30,
152
- min_cancellation_notice: v ?? 0,
153
- min_booking_notice: w ?? 60,
154
- hide_additional_guests: L ?? !1,
155
- hide_cancellation_options: B ?? !1,
156
- hide_rescheduling_options: D ?? !1
163
+ cancellation_policy: L ?? "",
164
+ available_days_in_future: w ?? 30,
165
+ min_cancellation_notice: k ?? 0,
166
+ min_booking_notice: C ?? 60,
167
+ hide_additional_guests: B ?? !1,
168
+ hide_cancellation_options: D ?? !1,
169
+ hide_rescheduling_options: T ?? !1
157
170
  }
158
- }, T = at(x, this.selectedConfiguration), I = this.action === "create" ? T : x, et = (u) => {
171
+ }, ot = ct(H, this.selectedConfiguration), rt = this.action === "create" ? ot : H, lt = (b) => {
159
172
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
160
173
  this.changesSaved = !1;
161
174
  }, 5e3);
162
175
  };
163
- this.schedulerConfigChanged.emit({ config: I, resetLoadingState: et, setError: this.setError, action: this.action });
176
+ this.schedulerConfigChanged.emit({ config: rt, resetLoadingState: lt, setError: this.setError, action: this.action });
164
177
  }, this.calendars = void 0, this.selectedConfiguration = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.action = "create", this.activeTab = "eventInfo", this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
165
178
  }
166
179
  configChangedHandler(t) {
167
- d("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
180
+ u("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
168
181
  ...this.getFormStateFromConfig(t)
169
182
  }, t.id ? this.action = "edit" : this.action = "create";
170
183
  }
171
184
  connectedCallback() {
172
- d("[nylas-editor-tabs]", "connectedCallback");
185
+ u("[nylas-editor-tabs]", "connectedCallback");
173
186
  }
174
187
  componentWillLoad() {
175
- d("[nylas-editor-tabs]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
188
+ u("[nylas-editor-tabs]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
176
189
  }
177
190
  componentDidLoad() {
178
- d("[nylas-editor-tabs]", "componentDidLoad");
191
+ u("[nylas-editor-tabs]", "componentDidLoad");
179
192
  }
180
193
  disconnectedCallback() {
181
- d("[nylas-editor-tabs]", "disconnectedCallback");
194
+ u("[nylas-editor-tabs]", "disconnectedCallback");
182
195
  }
183
196
  handleValueChanged(t) {
184
- d("[nylas-editor-tabs]", "handleValueChanged", t);
197
+ u("[nylas-editor-tabs]", "handleValueChanged", t);
185
198
  const { name: a, value: n } = t.detail;
186
199
  this.setFormState(n, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "";
187
200
  }
188
201
  getFormStateFromConfig(t) {
189
- var n, s, o, i, l, r, c, b, f, p, g, _, v, w, S, h, L, B, D, k, y, C, x, T;
190
- const a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((I) => I.is_organizer);
202
+ var n, s, o, i, l, r, c, d, m, h, v, w, k, C, L, y, B, D, T, g, f, p, S, x;
203
+ const a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((H) => H.is_organizer);
191
204
  return {
192
205
  title: ((s = t == null ? void 0 : t.event_booking) == null ? void 0 : s.title) ?? "",
193
206
  description: ((o = t == null ? void 0 : t.event_booking) == null ? void 0 : o.description) ?? "",
194
207
  duration: ((l = (i = t == null ? void 0 : t.availability) == null ? void 0 : i.duration_minutes) == null ? void 0 : l.toString()) ?? "30",
195
208
  availability: {
196
209
  timezone: ((r = t == null ? void 0 : t.event_booking) == null ? void 0 : r.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
197
- openHours: ((b = (c = t == null ? void 0 : t.availability) == null ? void 0 : c.availability_rules) == null ? void 0 : b.default_open_hours) ?? W
210
+ openHours: ((d = (c = t == null ? void 0 : t.availability) == null ? void 0 : c.availability_rules) == null ? void 0 : d.default_open_hours) ?? Y
198
211
  },
199
- calendarIds: ((f = a == null ? void 0 : a.availability) == null ? void 0 : f.calendar_ids) ?? [],
212
+ calendarIds: ((m = a == null ? void 0 : a.availability) == null ? void 0 : m.calendar_ids) ?? [],
200
213
  participants: (t == null ? void 0 : t.participants) ?? [],
201
- bookingCalendar: ((p = a == null ? void 0 : a.booking) == null ? void 0 : p.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
202
- location: ((g = t == null ? void 0 : t.event_booking) == null ? void 0 : g.location) ?? "",
203
- bookingType: ((_ = t == null ? void 0 : t.event_booking) == null ? void 0 : _.booking_type) ?? "booking",
204
- buffer: ((w = (v = t == null ? void 0 : t.availability) == null ? void 0 : v.availability_rules) == null ? void 0 : w.buffer) ?? { before: 0, after: 0 },
205
- cancellationPolicy: ((S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.cancellation_policy) ?? "",
206
- availableDaysInFuture: ((h = t == null ? void 0 : t.scheduler) == null ? void 0 : h.available_days_in_future) ?? 30,
207
- minCancellationNotice: ((L = t == null ? void 0 : t.scheduler) == null ? void 0 : L.min_cancellation_notice) ?? 0,
208
- minBookingNotice: ((B = t == null ? void 0 : t.scheduler) == null ? void 0 : B.min_booking_notice) ?? 60,
214
+ bookingCalendar: ((h = a == null ? void 0 : a.booking) == null ? void 0 : h.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
215
+ location: ((v = t == null ? void 0 : t.event_booking) == null ? void 0 : v.location) ?? "",
216
+ bookingType: ((w = t == null ? void 0 : t.event_booking) == null ? void 0 : w.booking_type) ?? "booking",
217
+ buffer: ((C = (k = t == null ? void 0 : t.availability) == null ? void 0 : k.availability_rules) == null ? void 0 : C.buffer) ?? { before: 0, after: 0 },
218
+ cancellationPolicy: ((L = t == null ? void 0 : t.scheduler) == null ? void 0 : L.cancellation_policy) ?? "",
219
+ availableDaysInFuture: ((y = t == null ? void 0 : t.scheduler) == null ? void 0 : y.available_days_in_future) ?? 30,
220
+ minCancellationNotice: ((B = t == null ? void 0 : t.scheduler) == null ? void 0 : B.min_cancellation_notice) ?? 0,
221
+ minBookingNotice: ((D = t == null ? void 0 : t.scheduler) == null ? void 0 : D.min_booking_notice) ?? 60,
209
222
  timeslotInterval: {
210
- interval: ((D = t == null ? void 0 : t.availability) == null ? void 0 : D.interval_minutes) ?? ((k = t == null ? void 0 : t.availability) == null ? void 0 : k.duration_minutes) ?? 10,
211
- roundTo: (y = t == null ? void 0 : t.availability) == null ? void 0 : y.round_to
223
+ interval: ((T = t == null ? void 0 : t.availability) == null ? void 0 : T.interval_minutes) ?? ((g = t == null ? void 0 : t.availability) == null ? void 0 : g.duration_minutes) ?? 10,
224
+ roundTo: (f = t == null ? void 0 : t.availability) == null ? void 0 : f.round_to
212
225
  },
213
- additionalGuestsHidden: ((C = t == null ? void 0 : t.scheduler) == null ? void 0 : C.hide_additional_guests) ?? !1,
214
- hideCancellationOptions: ((x = t == null ? void 0 : t.scheduler) == null ? void 0 : x.hide_cancellation_options) ?? !1,
215
- hideReschedulingOptions: ((T = t == null ? void 0 : t.scheduler) == null ? void 0 : T.hide_rescheduling_options) ?? !1
226
+ additionalGuestsHidden: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.hide_additional_guests) ?? !1,
227
+ hideCancellationOptions: ((S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.hide_cancellation_options) ?? !1,
228
+ hideReschedulingOptions: ((x = t == null ? void 0 : t.scheduler) == null ? void 0 : x.hide_rescheduling_options) ?? !1
216
229
  };
217
230
  }
218
231
  setFormState(t, a) {
@@ -282,21 +295,21 @@ const Y = class {
282
295
  }
283
296
  render() {
284
297
  var a;
285
- d("[nylas-editor-tabs]", "render", this.formState);
298
+ u("[nylas-editor-tabs]", "render", this.formState);
286
299
  const t = localStorage.getItem("nylas") === "Nylas Developer";
287
- return e(K, { key: "ccfd780da5c6ce1688f60384796bbaa98fe6094d" }, e("form", { key: "2e5d1c16a5373a5b623869925a7cab71f52f98ce", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents" }, e("div", { class: "tabs" }, e("button", { class: { tab: !0, active: this.activeTab == "eventInfo" }, onClick: (n) => this.setActiveTab(n, "eventInfo") }, e("calendar-info-icon", { width: "16", height: "16" }), "Event Info"), e("button", { class: { tab: !0, active: this.activeTab == "availability" }, onClick: (n) => this.setActiveTab(n, "availability") }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { class: { tab: !0, active: this.activeTab == "bookingOptions" }, onClick: (n) => this.setActiveTab(n, "bookingOptions") }, e("flow-icon", { width: "16", height: "16" }), "Booking Options"), t && e("button", { class: { tab: !0, active: this.activeTab == "participants" }, onClick: (n) => this.setActiveTab(n, "participants") }, e("people-icon", { width: "16", height: "16" }), "Participants")), e("div", { class: "tab-content" }, e(dt, { formState: this.formState, activeTab: this.activeTab, calendars: this.calendars, id: ((a = this.selectedConfiguration) == null ? void 0 : a.id) ?? "new" }))) : e("slot", null), e("div", { key: "f11d2767c5fc65ad7a72f346e9b3940b8151d7a3", class: "footer" }, e("div", { key: "858c5dac4d006f28b05347be3feba2d6dd336b15", class: "preview" }, this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { type: "button", disabled: this.isLoading, clickHandler: (n) => {
288
- n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(q(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
289
- }, variant: "basic" }, "Preview")), e("div", { key: "c5225165887e64b467570a3f90222479fb259494", class: "buttons" }, e("p", { key: "50b2861f9c99e3dc91e58f77097fa753ba02cd1b", class: {
300
+ return e(et, { key: "13aad28cba8de3b30e60d7a26849d30ef2578bb5" }, e("form", { key: "31e835f74ca7728d597148a18c840e0791c34c89", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents" }, e("div", { class: "tabs" }, e("button", { class: { tab: !0, active: this.activeTab == "eventInfo" }, onClick: (n) => this.setActiveTab(n, "eventInfo") }, e("calendar-info-icon", { width: "16", height: "16" }), "Event Info"), e("button", { class: { tab: !0, active: this.activeTab == "availability" }, onClick: (n) => this.setActiveTab(n, "availability") }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { class: { tab: !0, active: this.activeTab == "bookingOptions" }, onClick: (n) => this.setActiveTab(n, "bookingOptions") }, e("flow-icon", { width: "16", height: "16" }), "Booking Options"), t && e("button", { class: { tab: !0, active: this.activeTab == "participants" }, onClick: (n) => this.setActiveTab(n, "participants") }, e("people-icon", { width: "16", height: "16" }), "Participants")), e("div", { class: "tab-content" }, e(ft, { formState: this.formState, activeTab: this.activeTab, calendars: this.calendars, id: ((a = this.selectedConfiguration) == null ? void 0 : a.id) ?? "new" }))) : e("slot", null), e("div", { key: "e83274ed2d92f179c90564a21f80ba869d1033a2", class: "footer" }, e("div", { key: "c661b7a0c024f7b8f1c916b55bc5784a10ee9958", class: "preview" }, this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { type: "button", disabled: this.isLoading, clickHandler: (n) => {
301
+ n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(tt(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
302
+ }, variant: "basic" }, "Preview")), e("div", { key: "78cb89dbbb6e124aaddf9b486834e81ab10ea70a", class: "buttons" }, e("p", { key: "e07f651a081607471d067aa05a3858446725a6db", class: {
290
303
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
291
304
  "saved-changes": this.changesSaved,
292
305
  error: this.error !== "",
293
306
  "error-full-width": this.error !== "" && this.action === "create"
294
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), e("button-component", { key: "9934c2cf6faf7e74b135add1728e3524bc29e13f", type: "button", disabled: this.isLoading, clickHandler: (n) => {
307
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), e("button-component", { key: "66500ec7f10c2a5ecb6d98647766e2f31f030fe4", type: "button", disabled: this.isLoading, clickHandler: (n) => {
295
308
  n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
296
- }, variant: "basic" }, "Cancel"), e("button-component", { key: "872f1a24204c38948d484b2bf99aa72d78ba7a37", type: "submit", disabled: this.isLoading }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action == "create" ? "Create" : "Save changes")))));
309
+ }, variant: "basic" }, "Cancel"), e("button-component", { key: "a816e4c9d7d1f53e09edf635f06c9a177bdcb15a", type: "submit", disabled: this.isLoading }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action == "create" ? "Create" : "Save changes")))));
297
310
  }
298
311
  get host() {
299
- return Q(this);
312
+ return at(this);
300
313
  }
301
314
  static get watchers() {
302
315
  return {
@@ -304,8 +317,8 @@ const Y = class {
304
317
  };
305
318
  }
306
319
  };
307
- ut([
308
- X({
320
+ _t([
321
+ nt({
309
322
  name: "nylas-editor-tabs",
310
323
  stateToProps: /* @__PURE__ */ new Map([
311
324
  ["schedulerConfig.calendars", "calendars"],
@@ -315,8 +328,8 @@ ut([
315
328
  eventToProps: {
316
329
  schedulerConfigChanged: async (t, a) => {
317
330
  const { resetLoadingState: n, setError: s, action: o, config: i } = t.detail, l = (r) => {
318
- const [c, b] = r;
319
- !c && b && s && s(b), n && n(t);
331
+ const [c, d] = r;
332
+ !c && d && s && s(d), n && n(t);
320
333
  };
321
334
  if (o === "edit") {
322
335
  const r = await a.schedulerConfig.updateConfiguration(i);
@@ -330,22 +343,22 @@ ut([
330
343
  a.schedulerConfigStore.state.action = null;
331
344
  },
332
345
  previewButtonClicked: async (t, a) => {
333
- d("[nylas-editor-tabs]", "previewButtonClicked", a);
346
+ u("[nylas-editor-tabs]", "previewButtonClicked", a);
334
347
  },
335
348
  formSubmitted: async (t, a) => {
336
- d("[nylas-editor-tabs]", "formSubmitted", a);
349
+ u("[nylas-editor-tabs]", "formSubmitted", a);
337
350
  }
338
351
  },
339
352
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
340
353
  fireRegisterEvent: !0
341
354
  }),
342
- F("design:type", Function),
343
- F("design:paramtypes", []),
344
- F("design:returntype", void 0)
345
- ], Y.prototype, "render", null);
346
- Y.style = bt;
347
- const pt = ':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;overflow-y:auto}.configurations table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations table.no-configurations{height:100%}.configurations table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations table tr:last-of-type{border-bottom:0}.configurations table tr.hide{display:none}.configurations table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations table th.actions-header{text-align:right}.configurations 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 tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations table th,.configurations table td{text-align:left;padding:1rem;font-family:inherit}.configurations table .actions{text-align:right}.configurations table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations table .actions{flex-direction:column;gap:0.5rem}}.configurations table .title{display:flex;flex-direction:column}.configurations table .title .config-event-title{font-weight:600}.configurations table .title .config-event-description{font-size:0.75rem}.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}', ht = pt;
348
- var yt = function(t, a, n, s) {
355
+ I("design:type", Function),
356
+ I("design:paramtypes", []),
357
+ I("design:returntype", void 0)
358
+ ], it.prototype, "render", null);
359
+ it.style = gt;
360
+ const vt = ':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;overflow-y:auto}.configurations table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations table.no-configurations{height:100%}.configurations table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations table tr:last-of-type{border-bottom:0}.configurations table tr.hide{display:none}.configurations table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations table th.actions-header{text-align:right}.configurations 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 tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations table th,.configurations table td{text-align:left;padding:1rem;font-family:inherit}.configurations table .actions{text-align:right}.configurations table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations table .actions{flex-direction:column;gap:0.5rem}}.configurations table .title{display:flex;flex-direction:column}.configurations table .title .config-event-title{font-weight:600}.configurations table .title .config-event-description{font-size:0.75rem}.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}', wt = vt;
361
+ var kt = function(t, a, n, s) {
349
362
  var o = arguments.length, i = o < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, n) : s, l;
350
363
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
351
364
  i = Reflect.decorate(t, a, n, s);
@@ -357,21 +370,21 @@ var yt = function(t, a, n, s) {
357
370
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
358
371
  return Reflect.metadata(t, a);
359
372
  };
360
- const tt = class {
373
+ const st = class {
361
374
  constructor(t) {
362
- H(this, t), this.initListConfigurations = m(this, "initListConfigurations", 7), this.createButtonClick = m(this, "createButtonClick", 7), this.editButtonClick = m(this, "editButtonClick", 7), this.deleteButtonClick = m(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.state = "loading", this.error = "", this.copiedButtonIndex = -1;
375
+ F(this, t), this.initListConfigurations = _(this, "initListConfigurations", 7), this.createButtonClick = _(this, "createButtonClick", 7), this.editButtonClick = _(this, "editButtonClick", 7), this.deleteButtonClick = _(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.state = "loading", this.error = "", this.copiedButtonIndex = -1;
363
376
  }
364
377
  connectedCallback() {
365
- d("[nylas-list-configurations]", "connectedCallback");
378
+ u("[nylas-list-configurations]", "connectedCallback");
366
379
  }
367
380
  componentWillLoad() {
368
- d("[nylas-list-configurations]", "componentWillLoad"), this.configurations && this.configurations.length > 0 && (this.state = "loaded");
381
+ u("[nylas-list-configurations]", "componentWillLoad"), this.configurations && this.configurations.length > 0 && (this.state = "loaded");
369
382
  }
370
383
  componentDidLoad() {
371
- d("[nylas-list-configurations]", "componentDidLoad"), this.initListConfigurations.emit(this.host);
384
+ u("[nylas-list-configurations]", "componentDidLoad"), this.initListConfigurations.emit(this.host);
372
385
  }
373
386
  disconnectedCallback() {
374
- d("[nylas-list-configurations]", "disconnectedCallback");
387
+ u("[nylas-list-configurations]", "disconnectedCallback");
375
388
  }
376
389
  async getState() {
377
390
  return this.state;
@@ -387,7 +400,7 @@ const tt = class {
387
400
  return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${n || ""} ${n ? `${n > 1 ? "mins" : "min"}` : ""}`;
388
401
  }
389
402
  render() {
390
- return e(K, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, "All scheduling pages"), e("p", null, "Create, edit and manage all your scheduling pages.")), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { clickHandler: () => {
403
+ return e(et, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, "All scheduling pages"), e("p", null, "Create, edit and manage all your scheduling pages.")), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { clickHandler: () => {
391
404
  this.createButtonClick.emit(this.host);
392
405
  } }, "Create new"))), e("div", { class: "configurations" }, e("table", { class: {
393
406
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
@@ -397,7 +410,7 @@ const tt = class {
397
410
  this.createButtonClick.emit(this.host);
398
411
  } }, "Create new")))), this.state !== "loading" && this.configurations.map((t, a) => e("tr", { key: t.id }, e("td", null, e("div", { class: "title" }, e("span", { class: "config-event-title" }, t.event_booking.title), e("span", { class: "config-event-description" }, t.event_booking.description))), e("td", null, e("div", null, this.getDurationString(t.availability.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", id: "copy", key: `copy-${a}`, clickHandler: async (n) => {
399
412
  n.preventDefault();
400
- const s = q(this.schedulerPreviewLink, t);
413
+ const s = tt(this.schedulerPreviewLink, t);
401
414
  await navigator.clipboard.writeText(s), this.copiedButtonIndex = a, setTimeout(() => {
402
415
  this.copiedButtonIndex = -1;
403
416
  }, 3e3);
@@ -408,11 +421,11 @@ const tt = class {
408
421
  } }, "Delete"))))))), this.state === "error" && e("div", { class: "error-container" }, e("p", { class: "error" }, this.error)));
409
422
  }
410
423
  get host() {
411
- return Q(this);
424
+ return at(this);
412
425
  }
413
426
  };
414
- yt([
415
- X({
427
+ kt([
428
+ nt({
416
429
  name: "nylas-list-configurations",
417
430
  stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.configurations", "configurations"]]),
418
431
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
@@ -444,11 +457,11 @@ yt([
444
457
  O("design:type", Function),
445
458
  O("design:paramtypes", []),
446
459
  O("design:returntype", void 0)
447
- ], tt.prototype, "render", null);
448
- tt.style = ht;
460
+ ], st.prototype, "render", null);
461
+ st.style = wt;
449
462
  export {
450
- st as google_logo_icon,
451
- lt as microsoft_logo_icon,
452
- Y as nylas_editor_tabs,
453
- tt as nylas_list_configurations
463
+ ut as google_logo_icon,
464
+ yt as microsoft_logo_icon,
465
+ it as nylas_editor_tabs,
466
+ st as nylas_list_configurations
454
467
  };
@@ -0,0 +1,5 @@
1
+ import { i as o } from "./index-812162da.js";
2
+ var r = o.process;
3
+ export {
4
+ r as p
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./index-e3e9b594.cjs");var e=s.commonjsGlobal.process;exports.process=e;