@nylas/react 1.1.0-canary.24 → 1.1.0-canary.25

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 (134) hide show
  1. package/README.md +110 -2
  2. package/dist/add-circle-icon_2.entry-7165bd0e.js +25 -0
  3. package/dist/add-circle-icon_2.entry-f1ddca18.cjs +1 -0
  4. package/dist/{archive-icon_7.entry-0d379e81.js → archive-icon_7.entry-7411c224.js} +14 -14
  5. package/dist/{archive-icon_7.entry-464293d2.cjs → archive-icon_7.entry-e3df60ed.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-4e6fe7be.cjs → arrow-icon.entry-280e18b0.cjs} +1 -1
  7. package/dist/arrow-icon.entry-38949317.js +15 -0
  8. package/dist/{bold-icon_3.entry-5f0eedfe.js → bold-icon_3.entry-5963945c.js} +4 -4
  9. package/dist/{bold-icon_3.entry-ba65ceeb.cjs → bold-icon_3.entry-5dffbedd.cjs} +1 -1
  10. package/dist/{button-component_2.entry-1290a222.js → button-component_2.entry-237733b4.js} +6 -6
  11. package/dist/{button-component_2.entry-ae5e68ec.cjs → button-component_2.entry-b29d2873.cjs} +1 -1
  12. package/dist/{calendar-agenda-fill-icon_48.entry-4ae8cc76.js → calendar-agenda-fill-icon_48.entry-9afba869.js} +219 -227
  13. package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +7 -0
  14. package/dist/{calendar-cancel-icon.entry-6506440a.cjs → calendar-cancel-icon.entry-77ccf227.cjs} +1 -1
  15. package/dist/{calendar-cancel-icon.entry-d2f0c9e0.js → calendar-cancel-icon.entry-780723a6.js} +4 -4
  16. package/dist/{calendar-check-icon_2.entry-5212c5b3.js → calendar-check-icon_2.entry-2c89c230.js} +7 -7
  17. package/dist/{calendar-check-icon_2.entry-0f70758f.cjs → calendar-check-icon_2.entry-b37ac7f0.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-b7626be4.js → calendar-icon.entry-02dd3990.js} +6 -6
  19. package/dist/{calendar-icon.entry-f10bd734.cjs → calendar-icon.entry-ffc93569.cjs} +1 -1
  20. package/dist/{checkbox-component_2.entry-879250a5.cjs → checkbox-component_2.entry-00b6a1e9.cjs} +1 -1
  21. package/dist/{checkbox-component_2.entry-7ce6d945.js → checkbox-component_2.entry-ee9d0e6c.js} +3 -3
  22. package/dist/{chevron-icon_3.entry-a2f9e9ba.cjs → chevron-icon_3.entry-468abc26.cjs} +1 -1
  23. package/dist/{chevron-icon_3.entry-8c9ca484.js → chevron-icon_3.entry-f62e9ef1.js} +10 -10
  24. package/dist/{clock-icon_4.entry-3d9d8690.js → clock-icon_4.entry-766a1b23.js} +18 -18
  25. package/dist/{clock-icon_4.entry-7ecb071a.cjs → clock-icon_4.entry-7dc2cc4a.cjs} +1 -1
  26. package/dist/{constants-50c3e067-8cc8e601.js → constants-50c3e067-8a40a5fe.js} +1 -1
  27. package/dist/{constants-50c3e067-da2d4786.cjs → constants-50c3e067-9f2a6372.cjs} +1 -1
  28. package/dist/{copy-icon.entry-38cfea6b.js → copy-icon.entry-2a841508.js} +5 -5
  29. package/dist/{copy-icon.entry-0a80a55e.cjs → copy-icon.entry-e5251410.cjs} +1 -1
  30. package/dist/{delete-icon_2.entry-9e7cf99e.cjs → delete-icon_2.entry-1a5c39dc.cjs} +1 -1
  31. package/dist/{delete-icon_2.entry-f9a43051.js → delete-icon_2.entry-64555a2f.js} +5 -5
  32. package/dist/{document-refresh-icon.entry-827975fd.js → document-refresh-icon.entry-4bf6398b.js} +5 -5
  33. package/dist/document-refresh-icon.entry-fdc7ddda.cjs +1 -0
  34. package/dist/{elements-dc5b338e-0f8b5d33.js → elements-dc5b338e-2da1fe61.js} +1 -1
  35. package/dist/{elements-dc5b338e-3a7e1134.cjs → elements-dc5b338e-c8016c3d.cjs} +1 -1
  36. package/dist/{focus-visible-e8093c16-088a527d.cjs → focus-visible-e8093c16-0a38a184.cjs} +1 -1
  37. package/dist/{focus-visible-e8093c16-40f0c20e.js → focus-visible-e8093c16-9d0c98c0.js} +1 -1
  38. package/dist/{forward-icon_6.entry-f984a68b.js → forward-icon_6.entry-390ef70a.js} +9 -9
  39. package/dist/{forward-icon_6.entry-a8f80871.cjs → forward-icon_6.entry-7238ef38.cjs} +2 -2
  40. package/dist/{globe-icon.entry-c50fc96c.cjs → globe-icon.entry-81f42f89.cjs} +1 -1
  41. package/dist/{globe-icon.entry-a78c8ea8.js → globe-icon.entry-8d106260.js} +4 -4
  42. package/dist/{google-logo-icon_4.entry-710632b6.js → google-logo-icon_4.entry-aabd3886.js} +15 -15
  43. package/dist/google-logo-icon_4.entry-fa2b8999.cjs +1 -0
  44. package/dist/index-53420959-5fc8ad2b.js +5 -0
  45. package/dist/index-53420959-fcf45780.cjs +1 -0
  46. package/dist/{index-eca7f3e2.js → index-5ccfd9df.js} +50 -50
  47. package/dist/{index-6d9eeb53-407c797a.js → index-6d9eeb53-58c8980a.js} +2 -2
  48. package/dist/{index-6d9eeb53-cac6eaea.cjs → index-6d9eeb53-b2a6d09f.cjs} +1 -1
  49. package/dist/{index-a3051853.cjs → index-eb33703c.cjs} +3 -3
  50. package/dist/{index.es-17b386f4-856af8bb.js → index.es-c9454237-00ccd1e6.js} +1 -1
  51. package/dist/{index.es-17b386f4-c6a8cc2a.cjs → index.es-c9454237-b64161d1.cjs} +1 -1
  52. package/dist/{info-icon_2.entry-c08c459c.cjs → info-icon_2.entry-b2e11336.cjs} +1 -1
  53. package/dist/{info-icon_2.entry-ffd39ba3.js → info-icon_2.entry-bb8ed71c.js} +5 -5
  54. package/dist/{input-component.entry-35e6e399.cjs → input-component.entry-378b1ccc.cjs} +1 -1
  55. package/dist/{input-component.entry-c09124d3.js → input-component.entry-cb86170f.js} +5 -5
  56. package/dist/{input-dropdown.entry-9ac3e157.cjs → input-dropdown.entry-98954c93.cjs} +1 -1
  57. package/dist/{input-dropdown.entry-83f2c378.js → input-dropdown.entry-a76c339e.js} +2 -2
  58. package/dist/{mailbox-store-2e401c7f-66a87143.cjs → mailbox-store-edc386fc-156b7236.cjs} +1 -1
  59. package/dist/{mailbox-store-2e401c7f-9d607fd1.js → mailbox-store-edc386fc-8bc7558b.js} +2 -2
  60. package/dist/{multi-select-dropdown.entry-8710acb4.cjs → multi-select-dropdown.entry-40b855e1.cjs} +1 -1
  61. package/dist/{multi-select-dropdown.entry-2c2125e3.js → multi-select-dropdown.entry-6b686695.js} +2 -2
  62. package/dist/{nylas-booked-event-card_12.entry-009a11e3.cjs → nylas-booked-event-card_12.entry-9d693125.cjs} +1 -1
  63. package/dist/{nylas-booked-event-card_12.entry-5821b0c4.js → nylas-booked-event-card_12.entry-e861bb16.js} +13 -13
  64. package/dist/{nylas-form-card.entry-0ce9dd7d.js → nylas-form-card.entry-b158d789.js} +18 -18
  65. package/dist/{nylas-form-card.entry-951163a1.cjs → nylas-form-card.entry-ca4a8746.cjs} +1 -1
  66. package/dist/{nylas-if-state.entry-474cfdcd.js → nylas-if-state.entry-8e4d922c.js} +8 -8
  67. package/dist/{nylas-if-state.entry-16aabbff.cjs → nylas-if-state.entry-95fac42d.cjs} +1 -1
  68. package/dist/{nylas-list-folders.entry-a9e53520.js → nylas-list-folders.entry-83c39684.js} +7 -7
  69. package/dist/{nylas-list-folders.entry-f0a4d566.cjs → nylas-list-folders.entry-8a22e0c8.cjs} +1 -1
  70. package/dist/{nylas-list-threads.entry-7fc8b71d.cjs → nylas-list-threads.entry-54c582af.cjs} +1 -1
  71. package/dist/{nylas-list-threads.entry-5af74949.js → nylas-list-threads.entry-7ea370e1.js} +3 -3
  72. package/dist/{nylas-login.entry-acbdf23c.js → nylas-login.entry-9115fd81.js} +7 -7
  73. package/dist/{nylas-login.entry-d0fcf7c4.cjs → nylas-login.entry-fb627e40.cjs} +1 -1
  74. package/dist/{nylas-mailbox-pagination.entry-a70e4777.cjs → nylas-mailbox-pagination.entry-04626d27.cjs} +1 -1
  75. package/dist/{nylas-mailbox-pagination.entry-01f32d0c.js → nylas-mailbox-pagination.entry-3ff02cf9.js} +2 -2
  76. package/dist/{nylas-mailbox-toolbar-button.entry-208b2667.cjs → nylas-mailbox-toolbar-button.entry-8d00c789.cjs} +1 -1
  77. package/dist/{nylas-mailbox-toolbar-button.entry-a8166cf0.js → nylas-mailbox-toolbar-button.entry-f752e925.js} +7 -7
  78. package/dist/{nylas-mailbox.entry-bbd33bb0.js → nylas-mailbox.entry-99c27b6c.js} +6 -6
  79. package/dist/{nylas-mailbox.entry-7a3562b6.cjs → nylas-mailbox.entry-b3974f4e.cjs} +1 -1
  80. package/dist/{nylas-provider.entry-9cce7730.cjs → nylas-provider.entry-a3ad02a5.cjs} +1 -1
  81. package/dist/{nylas-provider.entry-7e8aedea.js → nylas-provider.entry-c206aa32.js} +6 -6
  82. package/dist/{nylas-reminder-emails.entry-a1b49b18.js → nylas-reminder-emails.entry-414ce6fe.js} +9 -9
  83. package/dist/nylas-reminder-emails.entry-59c07bfe.cjs +4 -0
  84. package/dist/{nylas-reminder-time_2.entry-6f6067f9.js → nylas-reminder-time_2.entry-197d83a0.js} +6 -6
  85. package/dist/{nylas-reminder-time_2.entry-0a480ab7.cjs → nylas-reminder-time_2.entry-d79dcd85.cjs} +1 -1
  86. package/dist/{nylas-scheduler-editor.entry-625d597e.js → nylas-scheduler-editor.entry-7f389982.js} +25 -25
  87. package/dist/{nylas-scheduler-editor.entry-6be8e9c6.cjs → nylas-scheduler-editor.entry-f1c6964a.cjs} +2 -2
  88. package/dist/nylas-scheduling.entry-1a8bd6fc.cjs +1 -0
  89. package/dist/{nylas-scheduling.entry-fa471c9e.js → nylas-scheduling.entry-4fa5381d.js} +126 -121
  90. package/dist/{nylas-threads-refresh.entry-da68039b.js → nylas-threads-refresh.entry-20602e7b.js} +11 -11
  91. package/dist/{nylas-threads-refresh.entry-77015d63.cjs → nylas-threads-refresh.entry-56b53449.cjs} +1 -1
  92. package/dist/{nylas-threads-search.entry-27472aef.js → nylas-threads-search.entry-8872473c.js} +7 -7
  93. package/dist/{nylas-threads-search.entry-8f765c67.cjs → nylas-threads-search.entry-8e0ec3ae.cjs} +1 -1
  94. package/dist/{nylas-time-window-picker.entry-e8842700.js → nylas-time-window-picker.entry-9ac542b7.js} +2 -2
  95. package/dist/{nylas-time-window-picker.entry-a59d7be6.cjs → nylas-time-window-picker.entry-ca47f721.cjs} +1 -1
  96. package/dist/{nylas-view-thread.entry-16cc4066.cjs → nylas-view-thread.entry-1f758e43.cjs} +1 -1
  97. package/dist/{nylas-view-thread.entry-322a9890.js → nylas-view-thread.entry-dcd3d5be.js} +3 -3
  98. package/dist/{person-icon.entry-fd56c344.cjs → person-icon.entry-63b28ace.cjs} +1 -1
  99. package/dist/{person-icon.entry-b62da62d.js → person-icon.entry-93130c05.js} +4 -4
  100. package/dist/play-icon_2.entry-6a99c32d.js +25 -0
  101. package/dist/play-icon_2.entry-b67fb649.cjs +1 -0
  102. package/dist/react.cjs +1 -1
  103. package/dist/react.js +1 -1
  104. package/dist/{refresh-icon.entry-99d7fbcb.js → refresh-icon.entry-84783c91.js} +2 -2
  105. package/dist/{refresh-icon.entry-5427ec8d.cjs → refresh-icon.entry-b49792fc.cjs} +1 -1
  106. package/dist/{register-component-4487ac6f-b29bf135.cjs → register-component-887199a9-003f96c5.cjs} +1 -1
  107. package/dist/{register-component-4487ac6f-4b0c1c53.js → register-component-887199a9-b41dfa7a.js} +1 -1
  108. package/dist/{scheduler-config-store-2a3b403d-810ef774.js → scheduler-config-store-2a3b403d-73610089.js} +1 -1
  109. package/dist/{scheduler-config-store-2a3b403d-51c51cff.cjs → scheduler-config-store-2a3b403d-a5e3433a.cjs} +1 -1
  110. package/dist/{scheduler-store-55107657-6c0c5de4.js → scheduler-store-fe281404-bddb1b6a.js} +1 -1
  111. package/dist/{scheduler-store-55107657-25845a8b.cjs → scheduler-store-fe281404-c3e477f6.cjs} +1 -1
  112. package/dist/textarea-component.entry-28c4bc05.cjs +1 -0
  113. package/dist/textarea-component.entry-40e959e5.js +36 -0
  114. package/dist/{time-period-selector.entry-d7792301.cjs → time-period-selector.entry-af71523a.cjs} +1 -1
  115. package/dist/{time-period-selector.entry-a6c6aefd.js → time-period-selector.entry-da5d8652.js} +2 -2
  116. package/dist/{translate-icon.entry-d65cfcea.js → translate-icon.entry-92b83635.js} +5 -5
  117. package/dist/{translate-icon.entry-4970d886.cjs → translate-icon.entry-a2ed4f76.cjs} +1 -1
  118. package/dist/{warning-icon.entry-eb7da408.js → warning-icon.entry-19f721c3.js} +4 -4
  119. package/dist/{warning-icon.entry-870059cb.cjs → warning-icon.entry-3ab9a59e.cjs} +1 -1
  120. package/package.json +3 -3
  121. package/dist/add-circle-icon_2.entry-4a6b44be.js +0 -25
  122. package/dist/add-circle-icon_2.entry-b0e8cb94.cjs +0 -1
  123. package/dist/arrow-icon.entry-3c2e4e0d.js +0 -15
  124. package/dist/calendar-agenda-fill-icon_48.entry-eaa36515.cjs +0 -7
  125. package/dist/document-refresh-icon.entry-5d6c4a99.cjs +0 -1
  126. package/dist/google-logo-icon_4.entry-14d75c66.cjs +0 -1
  127. package/dist/index-53420959-78cc8138.cjs +0 -1
  128. package/dist/index-53420959-da9158f8.js +0 -5
  129. package/dist/nylas-reminder-emails.entry-287316b6.cjs +0 -4
  130. package/dist/nylas-scheduling.entry-1678be21.cjs +0 -1
  131. package/dist/play-icon_2.entry-d0a67f7b.js +0 -25
  132. package/dist/play-icon_2.entry-d17c9937.cjs +0 -1
  133. package/dist/textarea-component.entry-8bdfbcc9.cjs +0 -1
  134. package/dist/textarea-component.entry-9803d3c3.js +0 -36
@@ -1,6 +1,6 @@
1
- import { r as Z, h as e, c as C, z as Ht, d as h, A as q, H as Tt, g as Ft } from "./index-eca7f3e2.js";
2
- import { R as Lt } from "./register-component-4487ac6f-4b0c1c53.js";
3
- import { D as St } from "./constants-50c3e067-8cc8e601.js";
1
+ import { r as Z, h as e, c as C, z as Ht, d as h, A as q, H as Tt, g as Ft } from "./index-5ccfd9df.js";
2
+ import { R as Lt } from "./register-component-887199a9-b41dfa7a.js";
3
+ import { D as St } from "./constants-50c3e067-8a40a5fe.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  const Ot = ".sc-google-logo-icon-h{display:flex}", Nt = Ot, Dt = class {
@@ -8,7 +8,7 @@ const Ot = ".sc-google-logo-icon-h{display:flex}", Nt = Ot, Dt = class {
8
8
  Z(this, t), this.width = "24", this.height = "24";
9
9
  }
10
10
  render() {
11
- return e("svg", { key: "7b7023270a550ced2a47e313d0035da9a37f8615", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "7bb6616a3708eb8dc57b321f791d11ab3f81b779", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "adc543691d14b997613296003b4212b68c2315d1", 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: "ffe8ffc3585623bf17f5cb701ee6b3d19b9f2de6", 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: "2a6654842af22abcd18b1cb2d4ed3f558d858332", 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: "153b55d878764cc494b92ac8f759a616453b3e56", 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: "5afe730ab9fa0305bc91a6333c8aab74ea81c54c" }, e("clipPath", { key: "bd9ea16515ac632a41585e1c14e24d83a616195f", id: "clip0_959_12452" }, e("rect", { key: "c84a2a8a07c9ae6bc6048f2e6116ada1ebbf51f2", width: 24, height: 24, fill: "white" }))));
11
+ return e("svg", { key: "b781fdde5b113edf441b85a41dd339e850a4c481", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "505c76cc1dffb16d43f750db729d4053a56c9861", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "dc47586ebe2eaea9a86e4d62494c3abe6904b165", 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: "cfa9d34d6484eb60b5704408971fa7997a222d5d", 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: "1e8a544b04ad69554e113d7c6ad21b3a835f9091", 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: "46ac285b59acfae07e759d2e8a5cbc33ff308117", 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: "b240ed7d2fe6fd66ad08e2027c46d91ba6dfffcf" }, e("clipPath", { key: "a8162755f64a8c24079204e20183351c13c4b596", id: "clip0_959_12452" }, e("rect", { key: "2b3769496afc5471b439b707c38b1cd32e636783", width: 24, height: 24, fill: "white" }))));
12
12
  }
13
13
  };
14
14
  Dt.style = Nt;
@@ -17,7 +17,7 @@ const It = ".sc-microsoft-logo-icon-h{display:flex}", Mt = It, Rt = class {
17
17
  Z(this, t), this.width = "22", this.height = "22";
18
18
  }
19
19
  render() {
20
- return e("svg", { key: "21eb29cd76a4bd29e3487f856cd3176467a740dd", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "ba275ff77f6e4af83864216838f387380f8841cc", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "eb9572450ad47084a5e2ef4e4655aafd50b859a3", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "d9a07b711584abc14a9a5441245a2f4bbbc6989d", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "ad30d513cc9d41b41067d1de24d0078cde964427", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
20
+ return e("svg", { key: "a011c0a0f40814573704a9566bb429109d247186", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "300194559a21975360361ce1377249914fb51b19", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "7fb8a5187f170a02461ddb5a079dd3e7d4339767", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "e03ce5df50e32c135a64b2ff38e673098ba8b9f0", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "fdb3f765c39f7f3b60954f5c3181ee21cf3398ab", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
21
21
  }
22
22
  };
23
23
  Rt.style = Mt;
@@ -94,7 +94,7 @@ function Ut({ id: t, formState: a, activeTab: i, calendars: s, currentUser: d })
94
94
  "div",
95
95
  { class: "tab-header" },
96
96
  e("h3", null, "Event communications"),
97
- e("p", null, "Set up automatic communications for your events.")
97
+ e("p", null, "Set up automatic confirmation emails.")
98
98
  ),
99
99
  e("nylas-confirmation-email", { name: "confirmation-email-template", confirmationEmailTemplate: a.emailTemplate, isOpen: !((c = (n = a.reminders) == null ? void 0 : n.overrides) != null && c.length), participants: a.participants, 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" })
100
100
  );
@@ -122,7 +122,7 @@ function Ut({ id: t, formState: a, activeTab: i, calendars: s, currentUser: d })
122
122
  );
123
123
  }
124
124
  }
125
- const zt = '.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 .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}.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}', At = zt;
125
+ const zt = '.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)}.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 .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}.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}', At = zt;
126
126
  var jt = function(t, a, i, s) {
127
127
  var d = arguments.length, n = d < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, i) : s, c;
128
128
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -294,7 +294,7 @@ const Pt = class {
294
294
  return !a && ((d = (s = t == null ? void 0 : t.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : d.availability_method) !== "collective" && (a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((g) => {
295
295
  var f;
296
296
  return g.email === ((f = this.currentUser) == null ? void 0 : f.email);
297
- }), a && (a.is_organizer = !0)), {
297
+ }), 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."), {
298
298
  title: ((c = t == null ? void 0 : t.event_booking) == null ? void 0 : c.title) ?? "",
299
299
  description: ((r = t == null ? void 0 : t.event_booking) == null ? void 0 : r.description) ?? "",
300
300
  duration: ((_ = (y = t == null ? void 0 : t.availability) == null ? void 0 : y.duration_minutes) == null ? void 0 : _.toString()) ?? "30",
@@ -442,16 +442,16 @@ const Pt = class {
442
442
  }
443
443
  render() {
444
444
  var t, a;
445
- return h("[nylas-editor-tabs]", "render", this.formState), e(Tt, { key: "a9c764cb9a5c50d42511e3d0233b7372422e6ea0" }, e("form", { key: "80ae6ae0dba4138f6749b8c50f67497bf96aea63", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (i) => this.formRef = i, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents" }, e("div", { class: "tabs" }, e("button", { name: o.EventInfo, class: { tab: !0, active: this.activeTab == o.EventInfo, hide: this.hideTab(o.EventInfo) }, part: "editortab__event-info", onClick: (i) => this.setActiveTab(i, o.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), "Event info"), e("button", { name: o.Availability, class: { tab: !0, active: this.activeTab == o.Availability, hide: this.hideTab(o.Availability) }, part: "editortab__availability", onClick: (i) => this.setActiveTab(i, o.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { name: o.Participants, class: { tab: !0, active: this.activeTab == o.Participants, hide: this.hideTab(o.Participants) }, part: "editortab__participants", onClick: (i) => this.setActiveTab(i, o.Participants) }, e("people-icon", { width: "16", height: "16" }), "Participants"), e("button", { name: o.BookingOptions, class: { tab: !0, active: this.activeTab == o.BookingOptions, hide: this.hideTab(o.BookingOptions) }, part: "editortab__booking-options", onClick: (i) => this.setActiveTab(i, o.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), "Booking options"), e("button", { name: o.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(o.BookingForm) }, part: "editortab__booking-form", onClick: (i) => this.setActiveTab(i, o.BookingForm) }, this.activeTab == o.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), e("button", { name: o.Communications, class: { tab: !0, active: this.activeTab == "communications" }, onClick: (i) => this.setActiveTab(i, o.Communications) }, this.activeTab == o.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), "Communications"), e("button", { name: o.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles" }, onClick: (i) => this.setActiveTab(i, o.PageStyles) }, this.activeTab == o.PageStyles ? e("paintbrush-fill-icon", { width: "16", height: "16" }) : e("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), e("div", { class: "tab-content" }, e(Ut, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "new" }))) : e("div", { key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, e("slot", null)), e("div", { key: "04edb739d282f14049bc17d6b5cab9f526f6a12b", class: "footer", part: "editor__footer" }, e("div", { key: "4556d255f368e695f47f3615b58f42021400df1c", class: "preview", part: "editor__footer-preview" }, this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { type: "button", disabled: this.isLoading, clickHandler: (i) => {
445
+ return h("[nylas-editor-tabs]", "render", this.formState), e(Tt, { key: "d639dd669c369eced02a79d283caa2cc00978230" }, e("form", { key: "28e1761ba3eecf78bfee29ffc5d4b8c323822930", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (i) => this.formRef = i, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents" }, e("div", { class: "tabs" }, e("button", { name: o.EventInfo, class: { tab: !0, active: this.activeTab == o.EventInfo, hide: this.hideTab(o.EventInfo) }, part: "editortab__event-info", onClick: (i) => this.setActiveTab(i, o.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), "Event info"), e("button", { name: o.Availability, class: { tab: !0, active: this.activeTab == o.Availability, hide: this.hideTab(o.Availability) }, part: "editortab__availability", onClick: (i) => this.setActiveTab(i, o.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { name: o.Participants, class: { tab: !0, active: this.activeTab == o.Participants, hide: this.hideTab(o.Participants) }, part: "editortab__participants", onClick: (i) => this.setActiveTab(i, o.Participants) }, e("people-icon", { width: "16", height: "16" }), "Participants"), e("button", { name: o.BookingOptions, class: { tab: !0, active: this.activeTab == o.BookingOptions, hide: this.hideTab(o.BookingOptions) }, part: "editortab__booking-options", onClick: (i) => this.setActiveTab(i, o.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), "Booking options"), e("button", { name: o.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(o.BookingForm) }, part: "editortab__booking-form", onClick: (i) => this.setActiveTab(i, o.BookingForm) }, this.activeTab == o.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), e("button", { name: o.Communications, class: { tab: !0, active: this.activeTab == "communications" }, onClick: (i) => this.setActiveTab(i, o.Communications) }, this.activeTab == o.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), "Communications"), e("button", { name: o.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles" }, onClick: (i) => this.setActiveTab(i, o.PageStyles) }, this.activeTab == o.PageStyles ? e("paintbrush-fill-icon", { width: "16", height: "16" }) : e("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), e("div", { class: "tab-content" }, e(Ut, { 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: "b51f64962b9e05b1030f315a3b470fc659267526", class: "footer", part: "editor__footer" }, e("div", { key: "d6c13c06d5717c7a9642c135a7d687fc2588e638", class: "preview", part: "editor__footer-preview" }, this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { type: "button", disabled: this.isLoading, clickHandler: (i) => {
446
446
  i.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(q(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
447
- }, variant: "basic" }, "Preview")), e("div", { key: "9a8668b1479175751ecb40a5cb0f72bcc4998527", class: "buttons", part: "editor__footer-buttons" }, e("p", { key: "6b2fafb6a0cae991d75a05e40e9b039b604e0f3d", class: {
447
+ }, variant: "basic" }, "Preview")), e("div", { key: "c7d1b142f97896ef263164b80f04b4088c2361ab", class: "buttons", part: "editor__footer-buttons" }, e("p", { key: "dd883d581e33151ca83654b2a8d5f4764a7ff1ad", class: {
448
448
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
449
449
  "saved-changes": this.changesSaved,
450
450
  error: this.error !== "",
451
451
  "error-full-width": this.error !== "" && this.action === "create"
452
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), e("button-component", { key: "c79fbbeaf2ea661469c5cf5b22faa43df778353d", type: "button", disabled: this.isLoading, clickHandler: (i) => {
452
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), e("button-component", { key: "b62f286d998cb3360527b219f1b6a6e7917c5a1d", type: "button", disabled: this.isLoading, clickHandler: (i) => {
453
453
  i.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
454
- }, variant: "basic", part: "editor__footer-cancel" }, "Back"), e("button-component", { key: "5d80af38880a2a7fd46d2425642fecaba1a787ad", type: "submit", disabled: this.isLoading, part: "editor__footer-cta" }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action == "create" ? "Create" : "Save changes")))));
454
+ }, variant: "basic", part: "editor__footer-cancel" }, "Back"), e("button-component", { key: "b1a282ca85acd8ad27451de7a588400068ab2160", type: "submit", disabled: this.isLoading, part: "editor__footer-cta" }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action == "create" ? "Create" : "Save changes")))));
455
455
  }
456
456
  get host() {
457
457
  return Ft(this);
@@ -507,7 +507,7 @@ jt([
507
507
  G("design:returntype", void 0)
508
508
  ], Pt.prototype, "render", null);
509
509
  Pt.style = At;
510
- const $t = ':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 th.actions-header{text-align:right}.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)}', Jt = $t;
510
+ const $t = ':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)}', Jt = $t;
511
511
  var Vt = function(t, a, i, s) {
512
512
  var d = arguments.length, n = d < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, i) : s, c;
513
513
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
@@ -609,13 +609,13 @@ const Et = class {
609
609
  }));
610
610
  }
611
611
  render() {
612
- return e(Tt, 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: () => {
612
+ return e(Tt, 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: () => {
613
613
  this.createButtonClick.emit(this.host);
614
614
  } }, "Create new"))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
615
615
  "no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
616
616
  } }, e("tr", { class: {
617
617
  hide: this.state === "loading" || this.configurations && this.configurations.length === 0
618
- } }, e("th", null, "Scheduling page title"), e("th", null, "Duration"), e("th", { class: "actions-header" }, "Actions")), 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", { clickHandler: () => {
618
+ } }, 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: () => {
619
619
  this.createButtonClick.emit(this.host);
620
620
  } }, "Create new")))), this.state !== "loading" && this.configurations.map((t, a) => e("tr", { key: t.id }, e("td", null, e("div", { class: "title" }, e("div", { class: "config-event-title", title: t.event_booking.title }, t.event_booking.title), e("div", { class: "config-event-description" }, t.event_booking.description))), e("td", null, e("div", { class: "duration" }, this.getDurationString(t.availability.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (i) => {
621
621
  i.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: t });
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-eb33703c.cjs"),xe=require("./register-component-887199a9-003f96c5.cjs"),Ce=require("./constants-50c3e067-9f2a6372.cjs");require("react");require("react-dom");const Ee=".sc-google-logo-icon-h{display:flex}",Fe=Ee,Se=class{constructor(e){t.registerInstance(this,e),this.width="24",this.height="24"}render(){return t.h("svg",{key:"b781fdde5b113edf441b85a41dd339e850a4c481",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("g",{key:"505c76cc1dffb16d43f750db729d4053a56c9861","clip-path":"url(#clip0_959_12452)"},t.h("path",{key:"dc47586ebe2eaea9a86e4d62494c3abe6904b165",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"}),t.h("path",{key:"cfa9d34d6484eb60b5704408971fa7997a222d5d",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"}),t.h("path",{key:"1e8a544b04ad69554e113d7c6ad21b3a835f9091",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"}),t.h("path",{key:"46ac285b59acfae07e759d2e8a5cbc33ff308117",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"})),t.h("defs",{key:"b240ed7d2fe6fd66ad08e2027c46d91ba6dfffcf"},t.h("clipPath",{key:"a8162755f64a8c24079204e20183351c13c4b596",id:"clip0_959_12452"},t.h("rect",{key:"2b3769496afc5471b439b707c38b1cd32e636783",width:24,height:24,fill:"white"}))))}};Se.style=Fe;const Pe=".sc-microsoft-logo-icon-h{display:flex}",Be=Pe,Te=class{constructor(e){t.registerInstance(this,e),this.width="22",this.height="22"}render(){return t.h("svg",{key:"a011c0a0f40814573704a9566bb429109d247186",width:this.width,height:this.height,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"300194559a21975360361ce1377249914fb51b19",d:"M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z",fill:"#F35325"}),t.h("path",{key:"7fb8a5187f170a02461ddb5a079dd3e7d4339767",d:"M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z",fill:"#81BC06"}),t.h("path",{key:"e03ce5df50e32c135a64b2ff38e673098ba8b9f0",d:"M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z",fill:"#05A6F0"}),t.h("path",{key:"fdb3f765c39f7f3b60954f5c3181ee21cf3398ab",d:"M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z",fill:"#FFBA08"}))}};Te.style=Be;var o;(function(e){e.EventInfo="eventInfo",e.Availability="availability",e.BookingOptions="bookingOptions",e.Communications="communications",e.Participants="participants",e.BookingForm="bookingForm",e.PageStyles="pageStyles"})(o||(o={}));function Oe({id:e,formState:a,activeTab:i,calendars:s,currentUser:d}){var n,c;switch(i){case o.EventInfo:const r=a.title,m=a.description,g=parseInt(a.duration),k=a.location,x=a.conferencing;return t.h("div",{key:e},t.h("nylas-event-info",null,t.h("div",{slot:"inputs"},t.h("nylas-event-title",{name:"title",eventTitle:r,exportparts:"net, net__title, net__dropdown-content"}),t.h("nylas-event-duration",{name:"duration",eventDurationMinutes:g,exportparts:"ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content"}),t.h("nylas-event-location",{name:"location",eventLocation:k,eventConferencing:x,userProvider:d.provider,exportparts:"nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content"}),t.h("nylas-event-description",{name:"description",eventDescription:m,exportparts:"nedesc, nedesc__textarea"}))));case o.Availability:const S=a.availability.openHours,T=a.availability.timezone?a.availability.timezone:Intl.DateTimeFormat().resolvedOptions().timeZone;return t.h("div",{key:e},t.h("nylas-participant-booking-calendars",{name:"participant-booking-calendars",participants:a.participants,calendars:s}),t.h("nylas-connected-calendars",{name:"connected-calendars",participants:a.participants}),t.h("nylas-availability-picker",{name:"availability",openHours:S,defaultTimezone:T,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"}));case o.BookingOptions:return t.h("div",{key:e},t.h("nylas-scheduling-method",{name:"availability-method",readOnly:!0,exportparts:"nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content"}),t.h("nylas-custom-booking-flow",null,t.h("div",{slot:"inputs"},t.h("nylas-booking-confirmation-type",{name:"confirmation-type",bookingType:a.bookingType,exportparts:"nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content"}),t.h("nylas-booking-confirmation-redirect",{name:"confirmation-redirect",redirectUrl:a.redirectUrl,exportparts:"nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield"}))),t.h("nylas-buffer-time",{name:"buffer-time",buffer:a.buffer,exportparts:"nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview"}),t.h("nylas-event-limits",null,t.h("div",{slot:"inputs"},t.h("nylas-min-booking-notice",{name:"min-booking-notice",minBookingNotice:a.minBookingNotice,exportparts:"nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content"}),t.h("nylas-limit-future-bookings",{name:"limit-future-bookings",availableDaysInFuture:a.availableDaysInFuture,exportparts:"nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content"}),t.h("nylas-min-cancellation-notice",{name:"min-cancellation-notice",minCancellationNotice:a.minCancellationNotice,exportparts:"nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content"}),t.h("nylas-cancellation-policy",{name:"cancellation-policy",cancellationPolicy:a.cancellationPolicy,exportparts:"ncpolicy, ncpolicy__textarea"}))),t.h("nylas-timeslot-interval",{name:"timeslot-interval",eventDurationMinutes:parseInt(a.duration),exportparts:"nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content"}),t.h("nylas-customize-booking-settings",{name:"customize-booking-settings",exportparts:"ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options"}));case o.Communications:return t.h("div",{key:e},t.h("div",{class:"tab-header"},t.h("h3",null,"Event communications"),t.h("p",null,"Set up automatic confirmation emails.")),t.h("nylas-confirmation-email",{name:"confirmation-email-template",confirmationEmailTemplate:a.emailTemplate,isOpen:!((c=(n=a.reminders)==null?void 0:n.overrides)!=null&&c.length),participants:a.participants,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"}));case o.Participants:return t.h("div",{key:e},t.h("nylas-additional-participants",{name:"participants",eventParticipants:a.participants,exportparts:"nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant"}),t.h("nylas-participants-custom-availability",{name:"participant-custom-availability",participants:a.participants,exportparts:"npca, npca__header, npca__content, npca__participant-container, npca__participant-title, npca__participant-toggle--container, npca__toggle-label, npca__toggle-input, npca__toggle-slider"}));case o.PageStyles:return t.h("div",null,t.h("nylas-custom-event-slug",{name:"custom-event-slug",defaultUrlSlug:a.slug,exportparts:"nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield"}),t.h("nylas-page-name",{name:"page-name",pageName:a.name,exportparts:"npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield"}),t.h("nylas-page-styling",{name:"page-styling",appearance:a.appearance,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"}));case o.BookingForm:const L=Object.entries(a.additionalFields).map(([E,_])=>({key:E,..._}));return t.h("div",{key:e},t.h("nylas-booking-form-config",{name:"additional-fields",additonalFields:L}))}}const He='.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)}.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 .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}.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}',Ne=He;var De=function(e,a,i,s){var d=arguments.length,n=d<3?a:s===null?s=Object.getOwnPropertyDescriptor(a,i):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,a,i,s);else for(var r=e.length-1;r>=0;r--)(c=e[r])&&(n=(d<3?c(n):d>3?c(a,i,n):c(a,i))||n);return d>3&&n&&Object.defineProperty(a,i,n),n},J=function(e,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,a)};const Z=class{constructor(e){t.registerInstance(this,e),this.schedulerConfigChanged=t.createEvent(this,"schedulerConfigChanged",7),this.cancelButtonClick=t.createEvent(this,"cancelButtonClick",7),this.formSubmitted=t.createEvent(this,"formSubmitted",7),this.previewButtonClicked=t.createEvent(this,"previewButtonClicked",7),this.schedulerEditorFormUpdated=t.createEvent(this,"schedulerEditorFormUpdated",7),this.setError=a=>{this.error=a.message},this.formSubmissionHandler=async a=>{var G,W,K,Q,X,Y,ee,te,ae,ie,ne,se,oe,re,le,de;if(a.preventDefault(),this.formSubmitted.emit(),!this.formRef.checkValidity()){this.error=this.formRef.validationMessage||"Please fix the form errors.";return}this.isLoading=!0,this.hasUnsavedChanges=!1;const s=this.updateFormState(),{title:d,description:n,duration:c,availability:r,bookingCalendar:m,location:g,bookingType:k,buffer:x,availableDaysInFuture:S,minCancellationNotice:T,minBookingNotice:L,cancellationPolicy:E,timeslotInterval:_,additionalGuestsHidden:O,hideCancellationOptions:H,hideReschedulingOptions:N,participants:v,participantOpenHours:b,additionalFields:D,participantCalendars:p,conferencing:I,participantBookingCalendars:u,reminders:M,emailTemplate:R,redirectUrl:U,availabilityMethod:F,slug:A,appearance:z,name:j}=s,h=((W=(G=this.selectedConfiguration)==null?void 0:G.participants)==null?void 0:W.find(l=>l.is_organizer))||(v==null?void 0:v.find(l=>l.is_organizer)),w=p&&(h!=null&&h.email)?p[h==null?void 0:h.email]:[],P=((K=h==null?void 0:h.booking)==null?void 0:K.calendar_id)||m,f=c?parseInt(c):30,y=v&&(v==null?void 0:v.length)>0?v:[{name:(h==null?void 0:h.name)??((Q=this.currentUser)==null?void 0:Q.name)??"",email:(h==null?void 0:h.email)??((X=this.currentUser)==null?void 0:X.email)??"",is_organizer:!0,timezone:(r==null?void 0:r.timezone)??Intl.DateTimeFormat().resolvedOptions().timeZone,availability:{calendar_ids:w.length?w:["primary"],open_hours:[]},booking:{calendar_id:m&&m!==""?m:"primary"}}],C={...((Y=this.selectedConfiguration)==null?void 0:Y.id)&&{id:this.selectedConfiguration.id},version:((ee=this.selectedConfiguration)==null?void 0:ee.version)??"1.0.0",slug:A,name:j,availability:{duration_minutes:f,interval_minutes:(_==null?void 0:_.interval)??f,round_to:_==null?void 0:_.roundTo,availability_rules:{availability_method:F||(((ie=(ae=(te=this.selectedConfiguration)==null?void 0:te.availability)==null?void 0:ae.availability_rules)==null?void 0:ie.availability_method)??"collective"),buffer:x||{before:0,after:0},default_open_hours:(r==null?void 0:r.openHours)??((oe=(se=(ne=this.selectedConfiguration)==null?void 0:ne.availability)==null?void 0:se.availability_rules)==null?void 0:oe.default_open_hours)??Ce.DEFAULT_OPEN_HOURS,round_robin_group_id:((de=(le=(re=this.selectedConfiguration)==null?void 0:re.availability)==null?void 0:le.availability_rules)==null?void 0:de.round_robin_group_id)??""}},participants:[...y==null?void 0:y.map(l=>{var ce,he,be,ue,pe,me,ye,fe,ge,_e,ve,we,ke;return l.is_organizer?{name:l.name??"",email:l.email,is_organizer:!0,timezone:((he=(ce=b==null?void 0:b[l.email])==null?void 0:ce[0])==null?void 0:he.timezone)??((pe=(ue=(be=l.availability)==null?void 0:be.open_hours)==null?void 0:ue[0])==null?void 0:pe.timezone)??Intl.DateTimeFormat().resolvedOptions().timeZone,availability:{calendar_ids:p!=null&&p[l.email]?p==null?void 0:p[l.email]:w!=null&&w.length?w:["primary"],open_hours:(b==null?void 0:b[l.email])??((me=l.availability)==null?void 0:me.open_hours)??[]},booking:{calendar_id:u!=null&&u[l.email]?u==null?void 0:u[l.email]:P||"primary"}}:{...l,timezone:((fe=(ye=b==null?void 0:b[l.email])==null?void 0:ye[0])==null?void 0:fe.timezone)??((ve=(_e=(ge=l.availability)==null?void 0:ge.open_hours)==null?void 0:_e[0])==null?void 0:ve.timezone)??Intl.DateTimeFormat().resolvedOptions().timeZone,availability:l.availability?{calendar_ids:(p==null?void 0:p[l.email])??((we=l.availability)==null?void 0:we.calendar_ids)??["primary"],open_hours:(b==null?void 0:b[l.email])??((ke=l.availability)==null?void 0:ke.open_hours)??[]}:void 0,booking:u!=null&&u[l.email]?{calendar_id:u==null?void 0:u[l.email]}:(l==null?void 0:l.booking)??void 0}})],event_booking:{title:(d==null?void 0:d.toString())??"",description:(n==null?void 0:n.toString())??"",location:(g==null?void 0:g.toString())??"",booking_type:(k==null?void 0:k.toString())??"booking",timezone:(r==null?void 0:r.timezone)??Intl.DateTimeFormat().resolvedOptions().timeZone,conferencing:I,reminders:M},scheduler:{cancellation_policy:E??"",available_days_in_future:S??30,min_cancellation_notice:T??0,min_booking_notice:L??60,hide_additional_guests:O??!1,hide_cancellation_options:H??!1,hide_rescheduling_options:N??!1,additional_fields:D,email_template:R,confirmation_redirect_url:U},appearance:z},$=t.mergeDeep(C,this.selectedConfiguration),B=this.action==="create"?$:C;this.isConfigRoundRobin(B)&&(B.participants=B.participants.map(l=>({...l,is_organizer:void 0})));const Le=l=>{this.isLoading=!1,this.changesSaved=!0,setTimeout(()=>{this.changesSaved=!1},5e3)};this.checkForClientSideErrors(B)||this.schedulerConfigChanged.emit({config:B,resetLoadingState:Le,setError:this.setError,action:this.action})},this.isConfigRoundRobin=a=>{var i,s,d,n;return((s=(i=a.availability)==null?void 0:i.availability_rules)==null?void 0:s.availability_method)==="max-availability"||((n=(d=a.availability)==null?void 0:d.availability_rules)==null?void 0:n.availability_method)==="max-fairness"},this.checkForClientSideErrors=a=>{var n;let i=!1,s="";const d=(n=a.scheduler)==null?void 0:n.additional_fields;return d&&(s="Booking form error: ",Object.entries(d).forEach(c=>{const r=c[1];if(r.label===""){s+=`Label is required for field of type ${r.type}.`,i=!0;return}if(r.options){for(const m of r.options)if(m===""){s+=`Empty option detected inside ${r.label} of type ${r.type}.`,i=!0;break}}})),i&&(this.isLoading=!1,this.setError(new Error(s))),i},this.calendars=void 0,this.selectedConfiguration=void 0,this.currentUser=void 0,this.schedulerPreviewLink="",this.mode="app",this.hideEditorTabs=[],this.action="create",this.activeTab=o.EventInfo,this.isLoading=!1,this.hasUnsavedChanges=!1,this.changesSaved=!1,this.formState={},this.error=""}configChangedHandler(e){t.debug("[nylas-editor-tabs]","configChangedHandler",e,this.selectedConfiguration),this.formState={...this.getFormStateFromConfig(e)},e.id?this.action="edit":this.action="create"}userChangedHandler(e){t.debug("[nylas-editor-tabs]","userChangedHandler",e),e&&(this.formState={...this.getFormStateFromConfig(this.selectedConfiguration)})}connectedCallback(){t.debug("[nylas-editor-tabs]","connectedCallback")}componentWillLoad(){t.debug("[nylas-editor-tabs]","componentWillLoad"),this.formState=this.getFormStateFromConfig(this.selectedConfiguration)}componentDidLoad(){var a;t.debug("[nylas-editor-tabs]","componentDidLoad");const e=(a=this.host.querySelector("button.tab:not(.hide)"))==null?void 0:a.name;e&&(this.activeTab=e)}disconnectedCallback(){t.debug("[nylas-editor-tabs]","disconnectedCallback")}handleValueChanged(e){t.debug("[nylas-editor-tabs]","handleValueChanged",e);const{name:a,value:i}=e.detail;this.setFormState(i,a),this.formState={...this.formState},this.hasUnsavedChanges=!0,this.error="",this.schedulerEditorFormUpdated.emit({value:e.detail.value,name:e.detail.name})}getFormStateFromConfig(e){var i,s,d,n,c,r,m,g,k,x,S,T,L,E,_,O,H,N,v,b,D,p,I,u,M,R,U,F,A,z,j,h,w,P;let a=(i=e==null?void 0:e.participants)==null?void 0:i.find(f=>f.is_organizer);return!a&&((d=(s=e==null?void 0:e.availability)==null?void 0:s.availability_rules)==null?void 0:d.availability_method)!=="collective"&&(a=(n=e==null?void 0:e.participants)==null?void 0:n.find(f=>{var y;return f.email===((y=this.currentUser)==null?void 0:y.email)}),a&&(a.is_organizer=!0)),e!=null&&e.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."),{title:((c=e==null?void 0:e.event_booking)==null?void 0:c.title)??"",description:((r=e==null?void 0:e.event_booking)==null?void 0:r.description)??"",duration:((g=(m=e==null?void 0:e.availability)==null?void 0:m.duration_minutes)==null?void 0:g.toString())??"30",availability:{timezone:((k=e==null?void 0:e.event_booking)==null?void 0:k.timezone)??Intl.DateTimeFormat().resolvedOptions().timeZone,openHours:((S=(x=e==null?void 0:e.availability)==null?void 0:x.availability_rules)==null?void 0:S.default_open_hours)??Ce.DEFAULT_OPEN_HOURS},additionalFields:((T=e==null?void 0:e.scheduler)==null?void 0:T.additional_fields)??{},conferencing:((L=e==null?void 0:e.event_booking)==null?void 0:L.conferencing)??{},calendarIds:((E=a==null?void 0:a.availability)==null?void 0:E.calendar_ids)??[],participants:(e==null?void 0:e.participants)??[],bookingCalendar:((_=a==null?void 0:a.booking)==null?void 0:_.calendar_id)??(a==null?void 0:a.email)??"",location:((O=e==null?void 0:e.event_booking)==null?void 0:O.location)??"",bookingType:((H=e==null?void 0:e.event_booking)==null?void 0:H.booking_type)??"booking",buffer:((v=(N=e==null?void 0:e.availability)==null?void 0:N.availability_rules)==null?void 0:v.buffer)??{before:0,after:0},cancellationPolicy:((b=e==null?void 0:e.scheduler)==null?void 0:b.cancellation_policy)??"",availableDaysInFuture:((D=e==null?void 0:e.scheduler)==null?void 0:D.available_days_in_future)??30,minCancellationNotice:((p=e==null?void 0:e.scheduler)==null?void 0:p.min_cancellation_notice)??0,minBookingNotice:((I=e==null?void 0:e.scheduler)==null?void 0:I.min_booking_notice)??60,timeslotInterval:{interval:((u=e==null?void 0:e.availability)==null?void 0:u.interval_minutes)??((M=e==null?void 0:e.availability)==null?void 0:M.duration_minutes),roundTo:(R=e==null?void 0:e.availability)==null?void 0:R.round_to},additionalGuestsHidden:((U=e==null?void 0:e.scheduler)==null?void 0:U.hide_additional_guests)??!1,hideCancellationOptions:((F=e==null?void 0:e.scheduler)==null?void 0:F.hide_cancellation_options)??!1,hideReschedulingOptions:((A=e==null?void 0:e.scheduler)==null?void 0:A.hide_rescheduling_options)??!1,participantBookingCalendars:((z=e==null?void 0:e.participants)==null?void 0:z.reduce((f,y)=>{var C,$;return(C=y.booking)!=null&&C.calendar_id&&(f[y.email]=($=y.booking)==null?void 0:$.calendar_id),f}))??{},participantCalendars:((j=e==null?void 0:e.participants)==null?void 0:j.reduce((f,y)=>{var C;return f[y.email]=(C=y.availability)==null?void 0:C.calendar_ids,f},{}))??{},reminders:(h=e==null?void 0:e.event_booking)==null?void 0:h.reminders,emailTemplate:(w=e==null?void 0:e.scheduler)==null?void 0:w.email_template,redirectUrl:(P=e==null?void 0:e.scheduler)==null?void 0:P.confirmation_redirect_url,slug:e==null?void 0:e.slug,appearance:e==null?void 0:e.appearance,name:e==null?void 0:e.name}}setFormState(e,a){switch(a){case"title":this.formState.title=e.toString();break;case"description":this.formState.description=e.toString();break;case"duration":this.formState.duration=e.toString();break;case"availability":this.formState.availability=JSON.parse(e.toString());break;case"participants":this.formState.participants=JSON.parse(e.toString());break;case"booking-calendar":this.formState.bookingCalendar=e.toString();break;case"participant-booking-calendars":this.formState.participantBookingCalendars=JSON.parse(e.toString());break;case"location":this.formState.location=e.toString();break;case"conference":this.formState.conferencing=JSON.parse(e.toString());break;case"confirmation-type":this.formState.bookingType=e.toString();break;case"buffer-time":this.formState.buffer=JSON.parse(e.toString());break;case"limit-future-bookings":this.formState.availableDaysInFuture=parseInt(e.toString());break;case"min-cancellation-notice":this.formState.minCancellationNotice=parseInt(e.toString());break;case"min-booking-notice":this.formState.minBookingNotice=parseInt(e.toString());break;case"cancellation-policy":this.formState.cancellationPolicy=e.toString();break;case"timeslot-interval":this.formState.timeslotInterval=JSON.parse(e.toString());break;case"customize-booking-settings":const i=JSON.parse(e.toString());this.formState.additionalGuestsHidden=i.additionalGuestsHidden,this.formState.hideCancellationOptions=i.hideCancellationOptions,this.formState.hideReschedulingOptions=i.hideReschedulingOptions;break;case"participant-custom-availability":const s=JSON.parse(e.toString());this.formState.participantOpenHours=s;break;case"additional-fields":this.formState.additionalFields=e;break;case"connected-calendars":this.formState.participantCalendars=JSON.parse(e.toString());break;case"confirmation-email-template":this.formState.emailTemplate=JSON.parse(e.toString());break;case"reminder-overrides":this.formState.reminders={overrides:JSON.parse(e.toString())};break;case"confirmation-redirect":this.formState.redirectUrl=e.toString();break;case"availability-method":this.formState.availabilityMethod=e.toString();break;case"custom-event-slug":this.formState.slug=JSON.parse(e.toString());break;case"page-styling":this.formState.appearance=JSON.parse(e.toString());break;case"page-name":this.formState.name=JSON.parse(e.toString());break}this.schedulerEditorFormUpdated.emit({value:e,name:a})}updateFormState(){return new FormData(this.formRef).forEach((a,i)=>{this.setFormState(a,i)}),this.formState={...this.formState},this.formState}setActiveTab(e,a){e.preventDefault(),this.updateFormState(),this.activeTab=a}hideTab(e){var a;return((a=this.hideEditorTabs)==null?void 0:a.includes(e))||!1}render(){var e,a;return t.debug("[nylas-editor-tabs]","render",this.formState),t.h(t.Host,{key:"d639dd669c369eced02a79d283caa2cc00978230"},t.h("form",{key:"28e1761ba3eecf78bfee29ffc5d4b8c323822930",onSubmit:this.formSubmissionHandler,class:"scheduler-editor",ref:i=>this.formRef=i,noValidate:!0},this.mode==="app"?t.h("div",{class:"form-contents"},t.h("div",{class:"tabs"},t.h("button",{name:o.EventInfo,class:{tab:!0,active:this.activeTab==o.EventInfo,hide:this.hideTab(o.EventInfo)},part:"editortab__event-info",onClick:i=>this.setActiveTab(i,o.EventInfo)},t.h("calendar-info-icon",{width:"16",height:"16"}),"Event info"),t.h("button",{name:o.Availability,class:{tab:!0,active:this.activeTab==o.Availability,hide:this.hideTab(o.Availability)},part:"editortab__availability",onClick:i=>this.setActiveTab(i,o.Availability)},t.h("calendar-patterns-icon",{width:"16",height:"16"}),"Availability"),t.h("button",{name:o.Participants,class:{tab:!0,active:this.activeTab==o.Participants,hide:this.hideTab(o.Participants)},part:"editortab__participants",onClick:i=>this.setActiveTab(i,o.Participants)},t.h("people-icon",{width:"16",height:"16"}),"Participants"),t.h("button",{name:o.BookingOptions,class:{tab:!0,active:this.activeTab==o.BookingOptions,hide:this.hideTab(o.BookingOptions)},part:"editortab__booking-options",onClick:i=>this.setActiveTab(i,o.BookingOptions)},t.h("flow-icon",{width:"16",height:"16"}),"Booking options"),t.h("button",{name:o.BookingForm,class:{tab:!0,active:this.activeTab=="bookingForm",hide:this.hideTab(o.BookingForm)},part:"editortab__booking-form",onClick:i=>this.setActiveTab(i,o.BookingForm)},this.activeTab==o.BookingForm?t.h("calendar-agenda-fill-icon",{width:"16",height:"16"}):t.h("calendar-agenda-icon",{width:"16",height:"16"}),"Booking form"),t.h("button",{name:o.Communications,class:{tab:!0,active:this.activeTab=="communications"},onClick:i=>this.setActiveTab(i,o.Communications)},this.activeTab==o.Communications?t.h("envelope-fill-icon",{width:"16",height:"16"}):t.h("envelope-icon",{width:"16",height:"16"}),"Communications"),t.h("button",{name:o.PageStyles,class:{tab:!0,active:this.activeTab=="pageStyles"},onClick:i=>this.setActiveTab(i,o.PageStyles)},this.activeTab==o.PageStyles?t.h("paintbrush-fill-icon",{width:"16",height:"16"}):t.h("paintbrush-icon",{width:"16",height:"16"}),"Page styles")),t.h("div",{class:"tab-content"},t.h(Oe,{formState:this.formState,activeTab:this.activeTab,currentUser:this.currentUser,calendars:this.calendars,id:((e=this.selectedConfiguration)==null?void 0:e.id)??"new"}))):t.h("div",{class:"composable",key:(a=this.selectedConfiguration)==null?void 0:a.id},t.h("slot",null)),t.h("div",{key:"b51f64962b9e05b1030f315a3b470fc659267526",class:"footer",part:"editor__footer"},t.h("div",{key:"d6c13c06d5717c7a9642c135a7d687fc2588e638",class:"preview",part:"editor__footer-preview"},this.schedulerPreviewLink!==""&&this.action==="edit"&&t.h("button-component",{type:"button",disabled:this.isLoading,clickHandler:i=>{i.preventDefault(),this.previewButtonClicked.emit(this.host).defaultPrevented||window.open(t.parsePreviewLink(this.schedulerPreviewLink,this.selectedConfiguration),"_blank")},variant:"basic"},"Preview")),t.h("div",{key:"c7d1b142f97896ef263164b80f04b4088c2361ab",class:"buttons",part:"editor__footer-buttons"},t.h("p",{key:"dd883d581e33151ca83654b2a8d5f4764a7ff1ad",class:{"unsaved-changes":this.hasUnsavedChanges&&!this.changesSaved,"saved-changes":this.changesSaved,error:this.error!=="","error-full-width":this.error!==""&&this.action==="create"}},this.error!==""?this.error:"",this.error==""&&this.hasUnsavedChanges&&!this.changesSaved?"Unsaved changes":this.error==""&&this.changesSaved?"Changes saved!":""),t.h("button-component",{key:"b62f286d998cb3360527b219f1b6a6e7917c5a1d",type:"button",disabled:this.isLoading,clickHandler:i=>{i.preventDefault(),this.cancelButtonClick.emit(),this.error=""},variant:"basic",part:"editor__footer-cancel"},"Back"),t.h("button-component",{key:"b1a282ca85acd8ad27451de7a588400068ab2160",type:"submit",disabled:this.isLoading,part:"editor__footer-cta"},this.isLoading?t.h("span",null,"Saving",t.h("loading-icon",null)," "):this.action=="create"?"Create":"Save changes")))))}get host(){return t.getElement(this)}static get watchers(){return{selectedConfiguration:["configChangedHandler"],currentUser:["userChangedHandler"]}}};De([xe.RegisterComponent({name:"nylas-editor-tabs",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.selectedConfiguration","selectedConfiguration"],["schedulerConfig.currentUser","currentUser"],["schedulerConfig.hideEditorTabs","hideEditorTabs"]]),eventToProps:{schedulerConfigChanged:async(e,a)=>{const{resetLoadingState:i,setError:s,action:d,config:n}=e.detail,c=r=>{const[m,g]=r;!m&&g&&s&&s(g),i&&i(e)};if(d==="edit"){const r=await a.schedulerConfig.updateConfiguration(n);c(r)}else{const r=await a.schedulerConfig.createConfiguration(n);c(r)}},cancelButtonClick:async(e,a)=>{a.schedulerConfigStore.state.action=null},previewButtonClicked:async(e,a)=>{t.debug("[nylas-editor-tabs]","previewButtonClicked",a)},formSubmitted:async(e,a)=>{t.debug("[nylas-editor-tabs]","formSubmitted",a)},schedulerEditorFormUpdated:async(e,a)=>{t.debug("[nylas-editor-tabs]","schedulerEditorFormUpdated",e)}},localPropsToProp:new Map([["schedulerPreviewLink","schedulerPreviewLink"]]),fireRegisterEvent:!0}),J("design:type",Function),J("design:paramtypes",[]),J("design:returntype",void 0)],Z.prototype,"render",null);Z.style=Ne;const Ie=':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)}',Me=Ie;var Re=function(e,a,i,s){var d=arguments.length,n=d<3?a:s===null?s=Object.getOwnPropertyDescriptor(a,i):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,a,i,s);else for(var r=e.length-1;r>=0;r--)(c=e[r])&&(n=(d<3?c(n):d>3?c(a,i,n):c(a,i))||n);return d>3&&n&&Object.defineProperty(a,i,n),n},V=function(e,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,a)};const q=class{constructor(e){t.registerInstance(this,e),this.initListConfigurations=t.createEvent(this,"initListConfigurations",7),this.createButtonClick=t.createEvent(this,"createButtonClick",7),this.editButtonClick=t.createEvent(this,"editButtonClick",7),this.deleteButtonClick=t.createEvent(this,"deleteButtonClick",7),this.configurations=[],this.schedulerPreviewLink="",this.listConfigurationsNextCursor=void 0,this.state="loading",this.error="",this.currentCursor=null,this.previousCursors=[],this.disableNextPageButton=!1}listConfigurationsNextCursorChangedHandler(e,a){if(!e||e===a){e===null&&(this.disableNextPageButton=!0);return}this.disableNextPageButton=!1,this.currentCursor=e}connectedCallback(){t.debug("[nylas-list-configurations]","connectedCallback")}componentWillLoad(){t.debug("[nylas-list-configurations]","componentWillLoad"),this.configurations&&this.configurations.length>0&&(this.state="loaded")}componentDidLoad(){t.debug("[nylas-list-configurations]","componentDidLoad"),this.initListConfigurations.emit({host:this.host})}disconnectedCallback(){t.debug("[nylas-list-configurations]","disconnectedCallback")}async handleNylasFormDropdownChanged(e){t.debug("[nylas-list-configurations]","handleNylasFormDropdownChanged",e.detail);const{value:a}=e.detail,[i,s]=a.split("-");switch(e.preventDefault(),i){case"delete":this.deleteButtonClick.emit({host:this.host,configuration:this.configurations[s]});break;case"preview":window.open(t.parsePreviewLink(this.schedulerPreviewLink,this.configurations[s]),"_blank");break;case"copy":await navigator.clipboard.writeText(t.parsePreviewLink(this.schedulerPreviewLink,this.configurations[s]));break}}async getState(){return this.state}async setState(e){this.state=e}async setError(e){this.error=e}getDurationString(e){const a=Math.floor(e/60),i=e%60;return`${a||""} ${a?`${a>1?"hours":"hour"}`:""} ${i||""} ${i?`${i>1?"mins":"min"}`:""}`}getActionLabelHTML(e){const a={display:"inline-flex",alignItems:"center",gap:"0.5rem"},i={color:"var(--nylas-error)"};switch(e){case"preview":return t.h("span",{style:a},t.h("eye-icon",{width:"16",height:"16"}),"Preview");case"copy":return t.h("span",{style:a},t.h("copy-icon",{width:"16",height:"16"}),"Copy");case"delete":return t.h("span",{style:{...a,...i}},t.h("delete-icon",{width:"15",height:"17"}),"Delete");default:return""}}previousPageClickedHandler(){if(this.previousCursors.length===0)return;this.currentCursor=this.previousCursors.pop()||null;const e=this.previousCursors[this.previousCursors.length-1]||void 0;this.initListConfigurations.emit({host:this.host,cursor:e})}nextPageClickedHandler(){this.currentCursor&&(this.previousCursors=[...this.previousCursors,this.currentCursor],this.initListConfigurations.emit({host:this.host,cursor:this.currentCursor}))}render(){return t.h(t.Host,null,t.h("div",{class:"header"},t.h("div",{class:"description"},t.h("h2",null,"All Scheduling Pages"),t.h("p",null,"Create and manage your Scheduling Pages.")),this.configurations&&this.configurations.length>0&&t.h("div",{class:"actions"},t.h("button-component",{part:"nlc__create-new-cta",clickHandler:()=>{this.createButtonClick.emit(this.host)}},"Create new"))),t.h("div",{class:"configurations"},t.h("div",{class:"table-container"},t.h("table",{class:{"no-configurations":this.state!=="loading"&&(!this.configurations||this.configurations.length===0)}},t.h("tr",{class:{hide:this.state==="loading"||this.configurations&&this.configurations.length===0}},t.h("th",null,"Page title"),t.h("th",null,"Duration"),t.h("th",null)),this.state==="loading"&&t.h("tr",{class:"no-configurations"},t.h("td",{colSpan:3},t.h("div",null,t.h("h3",null,"Loading..."),t.h("p",null,"Please wait while we fetch the scheduling pages")))),this.state!=="loading"&&(!this.configurations||this.configurations.length===0)&&t.h("tr",{class:"no-configurations"},t.h("td",{colSpan:3},t.h("div",null,t.h("calendar-icon",{width:"48",height:"48"}),t.h("h3",null,"No scheduling pages found"),t.h("p",null,"Get started with creating your first scheduling page"),t.h("button-component",{part:"nlc__create-new-cta",clickHandler:()=>{this.createButtonClick.emit(this.host)}},"Create new")))),this.state!=="loading"&&this.configurations.map((e,a)=>t.h("tr",{key:e.id},t.h("td",null,t.h("div",{class:"title"},t.h("div",{class:"config-event-title",title:e.event_booking.title},e.event_booking.title),t.h("div",{class:"config-event-description"},e.event_booking.description))),t.h("td",null,t.h("div",{class:"duration"},this.getDurationString(e.availability.duration_minutes))),t.h("td",null,t.h("div",{class:"actions"},t.h("button-component",{variant:"basic",key:`edit-${a}`,clickHandler:i=>{i.preventDefault(),this.editButtonClick.emit({host:this.host,configuration:e})}},t.h("edit-icon",{width:"16",height:"16"}),"Edit"),t.h("select-dropdown",{name:"actions",options:[{value:`preview-${a}`,label:"Preview",labelHTML:this.getActionLabelHTML("preview")},{value:`copy-${a}`,label:"Copy link",labelHTML:this.getActionLabelHTML("copy")},{value:`delete-${a}`,label:"Delete",labelHTML:this.getActionLabelHTML("delete")}],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"}))))))),t.h("div",{class:"pagination"},t.h("button",{class:"arrow left",onClick:()=>this.previousPageClickedHandler(),disabled:this.previousCursors.length<=0},t.h("chevron-icon",null)),t.h("button",{class:"arrow right",onClick:()=>this.nextPageClickedHandler(),disabled:this.disableNextPageButton},t.h("chevron-icon",null)))),this.state==="error"&&t.h("div",{class:"error-container"},t.h("p",{class:"error"},this.error)))}get host(){return t.getElement(this)}static get watchers(){return{listConfigurationsNextCursor:["listConfigurationsNextCursorChangedHandler"]}}};Re([xe.RegisterComponent({name:"nylas-list-configurations",stateToProps:new Map([["schedulerConfig.configurations","configurations"],["schedulerConfig.listConfigurationsNextCursor","listConfigurationsNextCursor"]]),localPropsToProp:new Map([["schedulerPreviewLink","schedulerPreviewLink"]]),eventToProps:{initListConfigurations:async(e,a)=>{const{host:i,cursor:s}=e.detail;await i.setState("loading");const[d,n]=await a.schedulerConfig.getConfigurations(s);if(!d&&n&&n.message){await i.setState("error"),await i.setError(n.message);return}await i.setState("loaded")},createButtonClick:async(e,a)=>{a.schedulerConfigStore.resetSelectedConfiguration(),a.schedulerConfigStore.state.action="create"},deleteButtonClick:async(e,a)=>{const{host:i,configuration:s}=e.detail,[d,n]=await a.schedulerConfig.deleteConfiguration(s.id);!d&&n&&n.message&&(await i.setState("error"),await i.setError(n.message))},editButtonClick:async(e,a)=>{const{configuration:i}=e.detail;a.schedulerConfigStore.state.selectedConfiguration=i,a.schedulerConfigStore.state.action="edit"}},fireRegisterEvent:!0}),V("design:type",Function),V("design:paramtypes",[]),V("design:returntype",void 0)],q.prototype,"render",null);q.style=Me;exports.google_logo_icon=Se;exports.microsoft_logo_icon=Te;exports.nylas_editor_tabs=Z;exports.nylas_list_configurations=q;
@@ -0,0 +1,5 @@
1
+ import { i as o } from "./index-5ccfd9df.js";
2
+ var r = o.process;
3
+ export {
4
+ r as p
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./index-eb33703c.cjs");var e=s.commonjsGlobal.process;exports.process=e;