@nylas/react 1.4.5 → 2.0.0

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 (112) hide show
  1. package/dist/{add-circle-icon_2.entry-75a3df95.cjs → add-circle-icon_2.entry-8a1c55bc.cjs} +1 -1
  2. package/dist/{add-circle-icon_2.entry-55361a03.js → add-circle-icon_2.entry-b4bbcfee.js} +1 -1
  3. package/dist/{archive-icon.entry-3c4e4b28.js → archive-icon.entry-a2492cf3.js} +1 -1
  4. package/dist/{archive-icon.entry-8aa151fd.cjs → archive-icon.entry-e48d2356.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-5bb183c1.js → arrow-icon.entry-9414299f.js} +1 -1
  6. package/dist/{arrow-icon.entry-2cef5ca1.cjs → arrow-icon.entry-b1ecb2aa.cjs} +1 -1
  7. package/dist/{bold-icon.entry-e0010c60.js → bold-icon.entry-b72aed9f.js} +1 -1
  8. package/dist/{bold-icon.entry-c919c71d.cjs → bold-icon.entry-c781e9c1.cjs} +1 -1
  9. package/dist/{button-component_2.entry-1dd1b8d6.js → button-component_2.entry-36e49459.js} +1 -1
  10. package/dist/{button-component_2.entry-078ee06a.cjs → button-component_2.entry-73f76545.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_36.entry-9b694a33.cjs → calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs} +2 -2
  12. package/dist/{calendar-agenda-fill-icon_36.entry-772a70d7.js → calendar-agenda-fill-icon_36.entry-efa7ad26.js} +4 -4
  13. package/dist/{calendar-cancel-icon.entry-b791b6b1.cjs → calendar-cancel-icon.entry-01c388eb.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-7d1a7cea.js → calendar-cancel-icon.entry-0f739a8a.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-2380a4e6.cjs → calendar-check-icon_2.entry-5febbadf.cjs} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-2b5711fd.js → calendar-check-icon_2.entry-dfb0036d.js} +1 -1
  17. package/dist/{calendar-icon.entry-f88c8b09.cjs → calendar-icon.entry-9743e0b7.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-9b23c994.js → calendar-icon.entry-f197396d.js} +1 -1
  19. package/dist/{checkbox-component.entry-af77c4fa.cjs → checkbox-component.entry-1aa5782f.cjs} +1 -1
  20. package/dist/{checkbox-component.entry-94fd68e7.js → checkbox-component.entry-72a6aa72.js} +1 -1
  21. package/dist/checkmark-icon_15.entry-35dd97b7.cjs +5 -0
  22. package/dist/{checkmark-icon_15.entry-3ddf90df.js → checkmark-icon_15.entry-5c09cff5.js} +4 -4
  23. package/dist/{chevron-icon_3.entry-af195326.js → chevron-icon_3.entry-4a72f211.js} +1 -1
  24. package/dist/{chevron-icon_3.entry-a492d340.cjs → chevron-icon_3.entry-e0608b7c.cjs} +1 -1
  25. package/dist/{clock-icon_4.entry-7dc4324b.js → clock-icon_4.entry-0afe79c2.js} +1 -1
  26. package/dist/{clock-icon_4.entry-530cd13b.cjs → clock-icon_4.entry-202ce025.cjs} +1 -1
  27. package/dist/constants-f51538ef-cd2a67c4.cjs +1 -0
  28. package/dist/{constants-3d8016e3-3c080f00.js → constants-f51538ef-e0a5f026.js} +27 -32
  29. package/dist/{customParseFormat-129be926-30b2af24.cjs → customParseFormat-d1de5ed0-65a0bba3.cjs} +1 -1
  30. package/dist/{customParseFormat-129be926-36eabae2.js → customParseFormat-d1de5ed0-c0ef002d.js} +1 -1
  31. package/dist/{delete-icon.entry-3328484a.js → delete-icon.entry-580bfcc9.js} +1 -1
  32. package/dist/{delete-icon.entry-9369bf78.cjs → delete-icon.entry-762ac892.cjs} +1 -1
  33. package/dist/{document-refresh-icon.entry-f45be1c4.cjs → document-refresh-icon.entry-4e0f0c61.cjs} +1 -1
  34. package/dist/{document-refresh-icon.entry-902ead30.js → document-refresh-icon.entry-e500b4e3.js} +1 -1
  35. package/dist/{feedbackSync-d943ffc7-d1e98ba0.js → feedbackSync-172f942c-42124493.js} +1 -1
  36. package/dist/{feedbackSync-d943ffc7-13f01c1f.cjs → feedbackSync-172f942c-62f72bd2.cjs} +1 -1
  37. package/dist/{folder-icon.entry-48cfa8d0.cjs → folder-icon.entry-2694e253.cjs} +1 -1
  38. package/dist/{folder-icon.entry-c4ffba45.js → folder-icon.entry-54c3cc66.js} +1 -1
  39. package/dist/{forward-icon.entry-dd036273.js → forward-icon.entry-5e540f05.js} +1 -1
  40. package/dist/{forward-icon.entry-146f3318.cjs → forward-icon.entry-f07102d8.cjs} +1 -1
  41. package/dist/{globe-icon_2.entry-049fbca2.cjs → globe-icon_2.entry-14a4c168.cjs} +1 -1
  42. package/dist/{globe-icon_2.entry-d6a95f6e.js → globe-icon_2.entry-aaceb196.js} +3 -3
  43. package/dist/{google-logo-icon_6.entry-e26385cc.js → google-logo-icon_6.entry-00d40db2.js} +211 -195
  44. package/dist/{google-logo-icon_6.entry-4d9e06be.cjs → google-logo-icon_6.entry-fa76ffe3.cjs} +2 -2
  45. package/dist/{google-meet-icon_5.entry-94112d7e.cjs → google-meet-icon_5.entry-6c20e149.cjs} +1 -1
  46. package/dist/{google-meet-icon_5.entry-c0129f58.js → google-meet-icon_5.entry-f1f05903.js} +1 -1
  47. package/dist/{inbox-icon.entry-94683ba9.cjs → inbox-icon.entry-9a4628f2.cjs} +1 -1
  48. package/dist/{inbox-icon.entry-74d7a10d.js → inbox-icon.entry-aa78ba8c.js} +1 -1
  49. package/dist/index-1e75512f.cjs +57 -0
  50. package/dist/{index-6e735f92.js → index-e8380973.js} +57 -48
  51. package/dist/{index.es-4615d47c-b7c254fe.cjs → index.es-fc8588de-034ead51.cjs} +1 -1
  52. package/dist/{index.es-4615d47c-9156501b.js → index.es-fc8588de-c943eef6.js} +1 -1
  53. package/dist/{info-icon_2.entry-ef5dbccc.js → info-icon_2.entry-b3b313ab.js} +1 -1
  54. package/dist/{info-icon_2.entry-8bcd39dc.cjs → info-icon_2.entry-bbcefb9a.cjs} +1 -1
  55. package/dist/{input-component.entry-922063d5.js → input-component.entry-401b9ba5.js} +1 -1
  56. package/dist/{input-component.entry-cc1fb2fa.cjs → input-component.entry-ec8e8e7c.cjs} +1 -1
  57. package/dist/{input-dropdown_2.entry-f3750e99.cjs → input-dropdown_2.entry-8cb11601.cjs} +1 -1
  58. package/dist/{input-dropdown_2.entry-4041c294.js → input-dropdown_2.entry-c37f392c.js} +2 -2
  59. package/dist/{italic-icon.entry-6706da64.js → italic-icon.entry-0e85d0d9.js} +1 -1
  60. package/dist/{italic-icon.entry-63b6943f.cjs → italic-icon.entry-6675558a.cjs} +1 -1
  61. package/dist/{multi-select-dropdown_2.entry-e10a9439.js → multi-select-dropdown_2.entry-3eecf18a.js} +1 -1
  62. package/dist/{multi-select-dropdown_2.entry-1096321d.cjs → multi-select-dropdown_2.entry-e37c501d.cjs} +1 -1
  63. package/dist/{nylas-booked-event-card_12.entry-7eceb6b6.js → nylas-booked-event-card_12.entry-e7464ae7.js} +3 -3
  64. package/dist/{nylas-booked-event-card_12.entry-38f37135.cjs → nylas-booked-event-card_12.entry-fddc9ab8.cjs} +1 -1
  65. package/dist/{nylas-event-calendar_3.entry-cc428f95.js → nylas-event-calendar_3.entry-9abd46c2.js} +4 -4
  66. package/dist/{nylas-event-calendar_3.entry-7dad0f2f.cjs → nylas-event-calendar_3.entry-e6669bbf.cjs} +1 -1
  67. package/dist/{nylas-form-card.entry-dd3f240a.js → nylas-form-card.entry-a3186807.js} +2 -2
  68. package/dist/{nylas-form-card.entry-984be5f9.cjs → nylas-form-card.entry-cbb00fba.cjs} +1 -1
  69. package/dist/{nylas-scheduler-editor.entry-8fb56081.cjs → nylas-scheduler-editor.entry-5c92901a.cjs} +2 -2
  70. package/dist/{nylas-scheduler-editor.entry-623da747.js → nylas-scheduler-editor.entry-7b188a38.js} +56 -47
  71. package/dist/{nylas-scheduling.entry-472ef577.cjs → nylas-scheduling.entry-970240f6.cjs} +1 -1
  72. package/dist/{nylas-scheduling.entry-6608aa36.js → nylas-scheduling.entry-e9929b03.js} +7 -7
  73. package/dist/{person-icon.entry-168ba481.cjs → person-icon.entry-8998fdb8.cjs} +1 -1
  74. package/dist/{person-icon.entry-9f0233cd.js → person-icon.entry-d2856f08.js} +1 -1
  75. package/dist/{play-icon.entry-4115845d.cjs → play-icon.entry-99eb969b.cjs} +1 -1
  76. package/dist/{play-icon.entry-5fbfabb5.js → play-icon.entry-f949a80f.js} +1 -1
  77. package/dist/{radio-button-group.entry-da3f23ac.js → radio-button-group.entry-bc3b12fd.js} +1 -1
  78. package/dist/{radio-button-group.entry-3ae5f246.cjs → radio-button-group.entry-d66edd04.cjs} +1 -1
  79. package/dist/react.cjs +1 -1
  80. package/dist/react.js +1 -1
  81. package/dist/{refresh-icon.entry-13742bb5.cjs → refresh-icon.entry-99d1982d.cjs} +1 -1
  82. package/dist/{refresh-icon.entry-e1db3ca5.js → refresh-icon.entry-d6df8b1c.js} +1 -1
  83. package/dist/{register-component-083eb961-763c87e9.js → register-component-62d792d4-448b6a43.js} +1 -1
  84. package/dist/{register-component-083eb961-c5c48a1b.cjs → register-component-62d792d4-c6e7d129.cjs} +1 -1
  85. package/dist/{reply-all-icon.entry-ded706c7.js → reply-all-icon.entry-7ebf01a0.js} +1 -1
  86. package/dist/{reply-all-icon.entry-9446c2d0.cjs → reply-all-icon.entry-d7c44139.cjs} +1 -1
  87. package/dist/{reply-icon.entry-0d362c63.cjs → reply-icon.entry-058c00e8.cjs} +1 -1
  88. package/dist/{reply-icon.entry-7c5c0fd9.js → reply-icon.entry-d1622d85.js} +1 -1
  89. package/dist/{sent-icon.entry-92434496.cjs → sent-icon.entry-6c604512.cjs} +1 -1
  90. package/dist/{sent-icon.entry-bc9d1b35.js → sent-icon.entry-fe12bc2f.js} +1 -1
  91. package/dist/{spam-icon.entry-e0313c63.cjs → spam-icon.entry-45e5292e.cjs} +1 -1
  92. package/dist/{spam-icon.entry-11370b68.js → spam-icon.entry-b97c7709.js} +1 -1
  93. package/dist/{star-icon.entry-87823b56.cjs → star-icon.entry-4db13fdb.cjs} +1 -1
  94. package/dist/{star-icon.entry-3a81207c.js → star-icon.entry-98b80645.js} +1 -1
  95. package/dist/{stop-icon.entry-472a11dc.js → stop-icon.entry-0290fd30.js} +1 -1
  96. package/dist/{stop-icon.entry-ddf9242a.cjs → stop-icon.entry-9d7b53fd.cjs} +1 -1
  97. package/dist/{textarea-component.entry-2c6c0c7e.cjs → textarea-component.entry-9b474ab5.cjs} +1 -1
  98. package/dist/{textarea-component.entry-f9797150.js → textarea-component.entry-a62c257b.js} +1 -1
  99. package/dist/{toggle-switch.entry-fbef6918.cjs → toggle-switch.entry-5dbfcd48.cjs} +1 -1
  100. package/dist/{toggle-switch.entry-a7cbc256.js → toggle-switch.entry-e423b793.js} +1 -1
  101. package/dist/{translate-icon.entry-0ab604fe.js → translate-icon.entry-60c55a2e.js} +1 -1
  102. package/dist/{translate-icon.entry-2fe4868f.cjs → translate-icon.entry-f82fa6fc.cjs} +1 -1
  103. package/dist/{trash-fill-icon.entry-1904e8d6.cjs → trash-fill-icon.entry-095caae3.cjs} +1 -1
  104. package/dist/{trash-fill-icon.entry-4bdfb061.js → trash-fill-icon.entry-825055fd.js} +1 -1
  105. package/dist/{underline-icon.entry-6a2ca451.cjs → underline-icon.entry-0807a43d.cjs} +1 -1
  106. package/dist/{underline-icon.entry-29366789.js → underline-icon.entry-40028bc6.js} +1 -1
  107. package/dist/{warning-icon.entry-1649ffe7.js → warning-icon.entry-24e37759.js} +1 -1
  108. package/dist/{warning-icon.entry-3f848ed6.cjs → warning-icon.entry-fce7c14f.cjs} +1 -1
  109. package/package.json +2 -2
  110. package/dist/checkmark-icon_15.entry-de65b967.cjs +0 -5
  111. package/dist/constants-3d8016e3-fd6c3848.cjs +0 -1
  112. package/dist/index-3b0366ac.cjs +0 -57
@@ -1,7 +1,7 @@
1
- import { r as X, h as n, a as _, b, i as d, s as ge, v as re, H as le, g as de, F as ie, j as et } from "./index-6e735f92.js";
2
- import { R as ce } from "./register-component-083eb961-763c87e9.js";
3
- import { C as O, D as Ae, e as tt, b as nt } from "./constants-3d8016e3-3c080f00.js";
4
- import { i as je, a as $e, c as Je, b as Ve, f as Ze } from "./feedbackSync-d943ffc7-d1e98ba0.js";
1
+ import { r as X, h as n, a as _, b, i as d, s as ge, v as re, H as le, g as de, F as ie, j as et } from "./index-e8380973.js";
2
+ import { R as ce } from "./register-component-62d792d4-448b6a43.js";
3
+ import { C as H, D as je, e as tt, b as nt } from "./constants-f51538ef-e0a5f026.js";
4
+ import { i as Ae, a as $e, c as Je, b as Ve, f as Ze } from "./feedbackSync-172f942c-42124493.js";
5
5
  import "react";
6
6
  import "react/jsx-runtime";
7
7
  import "react-dom";
@@ -27,7 +27,7 @@ var u;
27
27
  (function(e) {
28
28
  e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
29
29
  })(u || (u = {}));
30
- function dt({ id: e, formState: t, activeTab: a }, s) {
30
+ function dt({ id: e, formState: t, activeTab: a }, o) {
31
31
  return n(
32
32
  ie,
33
33
  null,
@@ -106,7 +106,7 @@ function dt({ id: e, formState: t, activeTab: a }, s) {
106
106
  { key: `page-styles-${e}`, class: { hide: a !== u.PageStyles } },
107
107
  n("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
108
108
  n("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
109
- n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, s)
109
+ n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, o)
110
110
  ),
111
111
  n(
112
112
  "div",
@@ -116,14 +116,14 @@ function dt({ id: e, formState: t, activeTab: a }, s) {
116
116
  );
117
117
  }
118
118
  const ct = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', pt = ct;
119
- var bt = function(e, t, a, s) {
120
- var r = arguments.length, o = r < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
119
+ var bt = function(e, t, a, o) {
120
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
121
121
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
122
- o = Reflect.decorate(e, t, a, s);
122
+ s = Reflect.decorate(e, t, a, o);
123
123
  else
124
124
  for (var i = e.length - 1; i >= 0; i--)
125
- (l = e[i]) && (o = (r < 3 ? l(o) : r > 3 ? l(t, a, o) : l(t, a)) || o);
126
- return r > 3 && o && Object.defineProperty(t, a, o), o;
125
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
126
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
127
127
  }, ue = function(e, t) {
128
128
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
129
129
  return Reflect.metadata(e, t);
@@ -141,7 +141,7 @@ const We = class {
141
141
  this.isLoading = !0, this.hasUnsavedChanges = !1;
142
142
  const r = this.updateFormState();
143
143
  b("[nylas-editor-tabs]", "formState", r);
144
- const { title: o, description: l, duration: i, availability: c, bookingCalendar: p, location: f, bookingType: m, buffer: w, availableDaysInFuture: x, minCancellationNotice: T, minBookingNotice: z, cancellationPolicy: P, timeslotInterval: S, additionalGuestsHidden: B, hideCancellationOptions: N, hideReschedulingOptions: R, participants: E, participantOpenHours: k, additionalFields: M, participantCalendars: h, conferencing: U, participantBookingCalendars: v, reminders: A, emailTemplate: I, redirectUrl: j, availabilityMethod: H, slug: $, appearance: J, name: Y, disableEmails: V, organizerLocale: K } = r, C = ((_e = (me = this.selectedConfiguration) == null ? void 0 : me.participants) == null ? void 0 : _e.find((g) => g.is_organizer)) || (E == null ? void 0 : E.find((g) => g.is_organizer)), G = h && (C != null && C.email) ? h[C == null ? void 0 : C.email] : [], W = ((ve = C == null ? void 0 : C.booking) == null ? void 0 : ve.calendar_id) || p, F = i ? parseInt(i) : 30, L = E && (E == null ? void 0 : E.length) > 0 ? E : [
144
+ const { title: s, description: l, duration: i, availability: c, bookingCalendar: p, location: f, bookingType: m, buffer: w, availableDaysInFuture: x, minCancellationNotice: T, minBookingNotice: z, cancellationPolicy: O, timeslotInterval: S, additionalGuestsHidden: P, hideCancellationOptions: N, hideReschedulingOptions: R, participants: E, participantOpenHours: k, additionalFields: M, participantCalendars: h, conferencing: U, participantBookingCalendars: v, reminders: j, emailTemplate: I, redirectUrl: A, availabilityMethod: B, slug: $, appearance: J, name: K, disableEmails: V, organizerLocale: Y } = r, C = ((_e = (me = this.selectedConfiguration) == null ? void 0 : me.participants) == null ? void 0 : _e.find((g) => g.is_organizer)) || (E == null ? void 0 : E.find((g) => g.is_organizer)), G = h && (C != null && C.email) ? h[C == null ? void 0 : C.email] : [], W = ((ve = C == null ? void 0 : C.booking) == null ? void 0 : ve.calendar_id) || p, F = i ? parseInt(i) : 30, L = E && (E == null ? void 0 : E.length) > 0 ? E : [
145
145
  {
146
146
  name: (C == null ? void 0 : C.name) ?? ((we = this.currentUser) == null ? void 0 : we.name) ?? "",
147
147
  email: (C == null ? void 0 : C.email) ?? ((ke = this.currentUser) == null ? void 0 : ke.email) ?? "",
@@ -156,13 +156,13 @@ const We = class {
156
156
  }
157
157
  }
158
158
  ];
159
- let D = H || (((Se = (xe = (Ce = this.selectedConfiguration) == null ? void 0 : Ce.availability) == null ? void 0 : xe.availability_rules) == null ? void 0 : Se.availability_method) ?? "collective");
160
- this.selectedEventType && this.selectedEventType !== O.group && (D = this.selectedEventType === O.one_on_one ? O.collective : this.selectedEventType), console.log("availabilityMethodSelected", D);
159
+ let D = B || (((Se = (xe = (Ce = this.selectedConfiguration) == null ? void 0 : Ce.availability) == null ? void 0 : xe.availability_rules) == null ? void 0 : Se.availability_method) ?? "collective");
160
+ this.selectedEventType && this.selectedEventType !== H.group && (D = this.selectedEventType === H.one_on_one ? H.collective : this.selectedEventType), console.log("availabilityMethodSelected", D);
161
161
  const q = {
162
162
  ...((Ee = this.selectedConfiguration) == null ? void 0 : Ee.id) && { id: this.selectedConfiguration.id },
163
163
  version: ((Te = this.selectedConfiguration) == null ? void 0 : Te.version) ?? "1.0.0",
164
164
  slug: $,
165
- name: Y,
165
+ name: K,
166
166
  availability: {
167
167
  duration_minutes: F,
168
168
  interval_minutes: (S == null ? void 0 : S.interval) ?? F,
@@ -170,7 +170,7 @@ const We = class {
170
170
  availability_rules: {
171
171
  availability_method: D,
172
172
  buffer: w || { before: 0, after: 0 },
173
- default_open_hours: (c == null ? void 0 : c.openHours) ?? ((Oe = (Le = (Fe = this.selectedConfiguration) == null ? void 0 : Fe.availability) == null ? void 0 : Le.availability_rules) == null ? void 0 : Oe.default_open_hours) ?? Ae,
173
+ default_open_hours: (c == null ? void 0 : c.openHours) ?? ((Oe = (Le = (Fe = this.selectedConfiguration) == null ? void 0 : Fe.availability) == null ? void 0 : Le.availability_rules) == null ? void 0 : Oe.default_open_hours) ?? je,
174
174
  round_robin_group_id: ((He = (Be = (Pe = this.selectedConfiguration) == null ? void 0 : Pe.availability) == null ? void 0 : Be.availability_rules) == null ? void 0 : He.round_robin_group_id) ?? ""
175
175
  }
176
176
  },
@@ -207,30 +207,30 @@ const We = class {
207
207
  }) : []
208
208
  ],
209
209
  event_booking: {
210
- title: (o == null ? void 0 : o.toString()) ?? "",
210
+ title: (s == null ? void 0 : s.toString()) ?? "",
211
211
  description: (l == null ? void 0 : l.toString()) ?? "",
212
212
  location: (f == null ? void 0 : f.toString()) ?? "",
213
213
  booking_type: (m == null ? void 0 : m.toString()) ?? "booking",
214
214
  timezone: (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
215
215
  conferencing: U,
216
- reminders: A,
216
+ reminders: j,
217
217
  disable_emails: typeof V == "boolean" ? V : !1
218
218
  },
219
219
  scheduler: {
220
- cancellation_policy: P ?? "",
220
+ cancellation_policy: O ?? "",
221
221
  available_days_in_future: x ?? 30,
222
222
  min_cancellation_notice: T ?? 0,
223
223
  min_booking_notice: z ?? 60,
224
- hide_additional_guests: B ?? !1,
224
+ hide_additional_guests: P ?? !1,
225
225
  hide_cancellation_options: N ?? !1,
226
226
  hide_rescheduling_options: R ?? !1,
227
227
  additional_fields: M,
228
228
  email_template: I ? {
229
229
  ...I,
230
- organizer_locale: K || "en",
230
+ organizer_locale: Y || "en",
231
231
  logo: I.logo || ""
232
232
  } : void 0,
233
- confirmation_redirect_url: j
233
+ confirmation_redirect_url: A
234
234
  },
235
235
  appearance: J
236
236
  }, te = ge(this.selectedConfiguration, q || {}), Z = this.action === "create" ? te : q;
@@ -245,31 +245,31 @@ const We = class {
245
245
  })) || {}, se = this.checkForOrganizerConfirmationError(ge(Z, oe));
246
246
  ae || se || this.schedulerConfigChanged.emit({ config: Z, resetLoadingState: ne, action: this.action, host: this.host });
247
247
  }, this.isConfigRoundRobin = (t) => {
248
- var a, s, r, o;
249
- return ((s = (a = t == null ? void 0 : t.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : s.availability_method) === "max-availability" || ((o = (r = t.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : o.availability_method) === "max-fairness";
248
+ var a, o, r, s;
249
+ return ((o = (a = t == null ? void 0 : t.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.availability_method) === "max-availability" || ((s = (r = t.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
250
250
  }, this.checkForOrganizerConfirmationError = (t) => {
251
251
  var l, i;
252
- let a = !1, s = "";
253
- const r = ((l = t.event_booking) == null ? void 0 : l.booking_type) === "organizer-confirmation", o = (i = t.scheduler) == null ? void 0 : i.organizer_confirmation_url;
254
- return r && !o && (s += "Organizer confirmation URL is required when using organizer confirmation booking type.", a = !0), a && (this.isLoading = !1, this.host.setError(new Error(s))), a;
252
+ let a = !1, o = "";
253
+ const r = ((l = t.event_booking) == null ? void 0 : l.booking_type) === "organizer-confirmation", s = (i = t.scheduler) == null ? void 0 : i.organizer_confirmation_url;
254
+ return r && !s && (o += "Organizer confirmation URL is required when using organizer confirmation booking type.", a = !0), a && (this.isLoading = !1, this.host.setError(new Error(o))), a;
255
255
  }, this.checkForBookingFormErrors = (t) => {
256
- var o;
257
- let a = !1, s = "";
258
- const r = (o = t.scheduler) == null ? void 0 : o.additional_fields;
259
- return r && (s = d.t("nylasEditorTabs.bookingFormError"), Object.entries(r).forEach((l) => {
256
+ var s;
257
+ let a = !1, o = "";
258
+ const r = (s = t.scheduler) == null ? void 0 : s.additional_fields;
259
+ return r && (o = d.t("nylasEditorTabs.bookingFormError"), Object.entries(r).forEach((l) => {
260
260
  const i = l[1];
261
261
  if (i.label === "") {
262
- s += d.t("nylasEditorTabs.bookingFormError_label", { type: i.type }), a = !0;
262
+ o += d.t("nylasEditorTabs.bookingFormError_label", { type: i.type }), a = !0;
263
263
  return;
264
264
  }
265
265
  if (i.options) {
266
266
  for (const c of i.options)
267
267
  if (c.trim() === "") {
268
- s += d.t("nylasEditorTabs.bookingFormError_option", { label: i.label, type: i.type }), a = !0;
268
+ o += d.t("nylasEditorTabs.bookingFormError_option", { label: i.label, type: i.type }), a = !0;
269
269
  break;
270
270
  }
271
271
  }
272
- })), a && (this.isLoading = !1, this.host.setError(new Error(s))), a;
272
+ })), a && (this.isLoading = !1, this.host.setError(new Error(o))), a;
273
273
  }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = u.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
274
274
  }
275
275
  configChangedHandler(e) {
@@ -299,11 +299,11 @@ const We = class {
299
299
  }
300
300
  componentDidLoad() {
301
301
  var t, a;
302
- b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !je() && $e({
302
+ b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Ae() && $e({
303
303
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
304
- release: "1.4.5",
305
- integrations: (s) => [
306
- ...s.filter((r) => !1),
304
+ release: "2.0.0",
305
+ integrations: (o) => [
306
+ ...o.filter((r) => !1),
307
307
  Ze({
308
308
  colorScheme: "system",
309
309
  autoInject: !1
@@ -330,11 +330,11 @@ const We = class {
330
330
  this.showFeedbackModal = !1;
331
331
  }
332
332
  feedbackSubmittedHandler(e) {
333
- var s, r, o, l, i, c;
333
+ var o, r, s, l, i, c;
334
334
  const a = {
335
335
  eventId: Je("Scheduler Editor User Feedback", {
336
336
  extra: {
337
- configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
337
+ configId: (o = this.selectedConfiguration) == null ? void 0 : o.id,
338
338
  slug: (r = this.selectedConfiguration) == null ? void 0 : r.slug
339
339
  }
340
340
  }),
@@ -345,8 +345,8 @@ const We = class {
345
345
  captureContext: {
346
346
  tags: {
347
347
  "nylas-web-element": "nylas-scheduler-editor",
348
- "nylas-web-element-version": "1.4.5",
349
- "nylas-config-id": (o = this.selectedConfiguration) == null ? void 0 : o.id,
348
+ "nylas-web-element-version": "2.0.0",
349
+ "nylas-config-id": (s = this.selectedConfiguration) == null ? void 0 : s.id,
350
350
  "nylas-slug": (l = this.selectedConfiguration) == null ? void 0 : l.slug,
351
351
  "host-url": window.location.href
352
352
  },
@@ -358,9 +358,9 @@ const We = class {
358
358
  }), this.showFeedbackModal = !1;
359
359
  }
360
360
  getFormStateFromConfig(e) {
361
- var a, s, r, o, l, i, c, p, f, m, w, x, T, z, P, S, B, N, R, E, k, M, h, U, v, A, I, j, H, $, J, Y, V, K, C, G, W;
361
+ var a, o, r, s, l, i, c, p, f, m, w, x, T, z, O, S, P, N, R, E, k, M, h, U, v, j, I, A, B, $, J, K, V, Y, C, G, W;
362
362
  let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((F) => F.is_organizer);
363
- return !t && ((r = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (t = (o = e == null ? void 0 : e.participants) == null ? void 0 : o.find((F) => {
363
+ return !t && ((r = (o = e == null ? void 0 : e.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (t = (s = e == null ? void 0 : e.participants) == null ? void 0 : s.find((F) => {
364
364
  var L;
365
365
  return F.email === ((L = this.currentUser) == null ? void 0 : L.email);
366
366
  }), t && (t.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."), {
@@ -369,15 +369,15 @@ const We = class {
369
369
  duration: ((p = (c = e == null ? void 0 : e.availability) == null ? void 0 : c.duration_minutes) == null ? void 0 : p.toString()) ?? "30",
370
370
  availability: {
371
371
  timezone: ((f = e == null ? void 0 : e.event_booking) == null ? void 0 : f.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
372
- openHours: ((w = (m = e == null ? void 0 : e.availability) == null ? void 0 : m.availability_rules) == null ? void 0 : w.default_open_hours) ?? Ae
372
+ openHours: ((w = (m = e == null ? void 0 : e.availability) == null ? void 0 : m.availability_rules) == null ? void 0 : w.default_open_hours) ?? je
373
373
  },
374
374
  additionalFields: ((x = e == null ? void 0 : e.scheduler) == null ? void 0 : x.additional_fields) ?? {},
375
375
  conferencing: ((T = e == null ? void 0 : e.event_booking) == null ? void 0 : T.conferencing) ?? {},
376
376
  calendarIds: ((z = t == null ? void 0 : t.availability) == null ? void 0 : z.calendar_ids) ?? [],
377
377
  participants: (e == null ? void 0 : e.participants) ?? [],
378
- bookingCalendar: ((P = t == null ? void 0 : t.booking) == null ? void 0 : P.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
378
+ bookingCalendar: ((O = t == null ? void 0 : t.booking) == null ? void 0 : O.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
379
379
  location: ((S = e == null ? void 0 : e.event_booking) == null ? void 0 : S.location) ?? "",
380
- bookingType: ((B = e == null ? void 0 : e.event_booking) == null ? void 0 : B.booking_type) ?? "booking",
380
+ bookingType: ((P = e == null ? void 0 : e.event_booking) == null ? void 0 : P.booking_type) ?? "booking",
381
381
  buffer: ((R = (N = e == null ? void 0 : e.availability) == null ? void 0 : N.availability_rules) == null ? void 0 : R.buffer) ?? { before: 0, after: 0 },
382
382
  cancellationPolicy: ((E = e == null ? void 0 : e.scheduler) == null ? void 0 : E.cancellation_policy) ?? "",
383
383
  availableDaysInFuture: ((k = e == null ? void 0 : e.scheduler) == null ? void 0 : k.available_days_in_future) ?? 30,
@@ -385,11 +385,11 @@ const We = class {
385
385
  minBookingNotice: ((h = e == null ? void 0 : e.scheduler) == null ? void 0 : h.min_booking_notice) ?? 60,
386
386
  timeslotInterval: {
387
387
  interval: ((U = e == null ? void 0 : e.availability) == null ? void 0 : U.interval_minutes) ?? ((v = e == null ? void 0 : e.availability) == null ? void 0 : v.duration_minutes),
388
- roundTo: (A = e == null ? void 0 : e.availability) == null ? void 0 : A.round_to
388
+ roundTo: (j = e == null ? void 0 : e.availability) == null ? void 0 : j.round_to
389
389
  },
390
390
  additionalGuestsHidden: ((I = e == null ? void 0 : e.scheduler) == null ? void 0 : I.hide_additional_guests) ?? !1,
391
- hideCancellationOptions: ((j = e == null ? void 0 : e.scheduler) == null ? void 0 : j.hide_cancellation_options) ?? !1,
392
- hideReschedulingOptions: ((H = e == null ? void 0 : e.scheduler) == null ? void 0 : H.hide_rescheduling_options) ?? !1,
391
+ hideCancellationOptions: ((A = e == null ? void 0 : e.scheduler) == null ? void 0 : A.hide_cancellation_options) ?? !1,
392
+ hideReschedulingOptions: ((B = e == null ? void 0 : e.scheduler) == null ? void 0 : B.hide_rescheduling_options) ?? !1,
393
393
  participantBookingCalendars: (($ = e == null ? void 0 : e.participants) == null ? void 0 : $.reduce((F, L) => {
394
394
  var D, q;
395
395
  return (D = L.booking) != null && D.calendar_id && (F[L.email] = (q = L.booking) == null ? void 0 : q.calendar_id), F;
@@ -398,9 +398,9 @@ const We = class {
398
398
  var D;
399
399
  return F[L.email] = (D = L.availability) == null ? void 0 : D.calendar_ids, F;
400
400
  }, {})) ?? {},
401
- reminders: (Y = e == null ? void 0 : e.event_booking) == null ? void 0 : Y.reminders,
401
+ reminders: (K = e == null ? void 0 : e.event_booking) == null ? void 0 : K.reminders,
402
402
  emailTemplate: (V = e == null ? void 0 : e.scheduler) == null ? void 0 : V.email_template,
403
- redirectUrl: (K = e == null ? void 0 : e.scheduler) == null ? void 0 : K.confirmation_redirect_url,
403
+ redirectUrl: (Y = e == null ? void 0 : e.scheduler) == null ? void 0 : Y.confirmation_redirect_url,
404
404
  slug: e == null ? void 0 : e.slug,
405
405
  appearance: e == null ? void 0 : e.appearance,
406
406
  name: e == null ? void 0 : e.name,
@@ -478,8 +478,8 @@ const We = class {
478
478
  this.formState.emailTemplate = JSON.parse(e.toString());
479
479
  break;
480
480
  case "disable-emails": {
481
- const { disableEmails: a, organizerLocale: s } = JSON.parse(e.toString());
482
- this.formState.disableEmails = a, this.formState.organizerLocale = s;
481
+ const { disableEmails: a, organizerLocale: o } = JSON.parse(e.toString());
482
+ this.formState.disableEmails = a, this.formState.organizerLocale = o;
483
483
  break;
484
484
  }
485
485
  case "reminder-overrides":
@@ -558,15 +558,15 @@ bt([
558
558
  ]),
559
559
  eventToProps: {
560
560
  schedulerConfigChanged: async (e, t) => {
561
- const { resetLoadingState: a, host: s, action: r, config: o } = e.detail, l = (i) => {
561
+ const { resetLoadingState: a, host: o, action: r, config: s } = e.detail, l = (i) => {
562
562
  const [c, p] = i;
563
- !c && p ? s.setError(p) : c && !p && r === "create" && (s.schedulerConfigCreatedEventHandler({ config: c, action: r, host: s }), t.schedulerConfigStore.set("selectedEventType", void 0)), a && a(e);
563
+ !c && p ? o.setError(p) : c && !p && r === "create" && (o.schedulerConfigCreatedEventHandler({ config: c, action: r, host: o }), t.schedulerConfigStore.set("selectedEventType", void 0)), a && a(e);
564
564
  };
565
565
  if (r === "edit") {
566
- const i = await t.schedulerConfig.updateConfiguration(o);
566
+ const i = await t.schedulerConfig.updateConfiguration(s);
567
567
  l(i);
568
568
  } else {
569
- const i = await t.schedulerConfig.createConfiguration(o);
569
+ const i = await t.schedulerConfig.createConfiguration(s);
570
570
  l(i);
571
571
  }
572
572
  },
@@ -602,7 +602,7 @@ var y;
602
602
  (function(e) {
603
603
  e.BookingOptions = "bookingOptions", e.Communications = "communications", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles", e.CalendarView = "calendarView";
604
604
  })(y || (y = {}));
605
- function ut({ id: e, formState: t, activeTab: a }, s) {
605
+ function ut({ id: e, formState: t, activeTab: a }, o) {
606
606
  return n(
607
607
  ie,
608
608
  null,
@@ -654,7 +654,7 @@ function ut({ id: e, formState: t, activeTab: a }, s) {
654
654
  { key: `page-styles-${e}`, class: { hide: a !== y.PageStyles } },
655
655
  n("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
656
656
  n("nylas-page-name", { name: "page-name", requirePageName: !0, exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
657
- n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, s)
657
+ n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, o)
658
658
  ),
659
659
  n(
660
660
  "div",
@@ -664,14 +664,14 @@ function ut({ id: e, formState: t, activeTab: a }, s) {
664
664
  );
665
665
  }
666
666
  const ht = '.sc-nylas-editor-tabs-group-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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.scheduler-editor.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;height:inherit;position:relative}.scheduler-editor.sc-nylas-editor-tabs-group div.return-to-calendar-view.sc-nylas-editor-tabs-group{display:flex;border-bottom:1px solid var(--nylas-base-200)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:grid;grid-template-columns:minmax(224px, 25%) 1fr;height:auto;overflow-y:auto;min-height:calc(100% - 80px - 48px)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:table-column-group;height:auto;min-height:calc(100% - 80px - 196px - 48px)}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group{display:flex;align-items:center;text-align:left;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.active.sc-nylas-editor-tabs-group{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-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .calendar-view.sc-nylas-editor-tabs-group{position:absolute;top:0;left:0;height:calc(100% - 80px);width:-webkit-fill-available;background:var(--nylas-base-0)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group{width:inherit}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group h3.sc-nylas-editor-tabs-group{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{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-group{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-group{flex-direction:column;height:auto;z-index:2}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{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-group .buttons.sc-nylas-editor-tabs-group{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{width:100%}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group button-component[title=Preview].sc-nylas-editor-tabs-group{width:48px}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{max-width:524px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.unsaved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.saved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error.sc-nylas-editor-tabs-group{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error-full-width.sc-nylas-editor-tabs-group{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.sc-nylas-editor-tabs-group{width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group span.sc-nylas-editor-tabs-group{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs-group{width:auto}nylas-feedback-form.sc-nylas-editor-tabs-group{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', yt = ht;
667
- var ft = function(e, t, a, s) {
668
- var r = arguments.length, o = r < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
667
+ var ft = function(e, t, a, o) {
668
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
669
669
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
670
- o = Reflect.decorate(e, t, a, s);
670
+ s = Reflect.decorate(e, t, a, o);
671
671
  else
672
672
  for (var i = e.length - 1; i >= 0; i--)
673
- (l = e[i]) && (o = (r < 3 ? l(o) : r > 3 ? l(t, a, o) : l(t, a)) || o);
674
- return r > 3 && o && Object.defineProperty(t, a, o), o;
673
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
674
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
675
675
  }, he = function(e, t) {
676
676
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
677
677
  return Reflect.metadata(e, t);
@@ -689,11 +689,11 @@ const qe = class {
689
689
  this.isLoading = !0, this.hasUnsavedChanges = !1;
690
690
  const r = this.updateFormState();
691
691
  b("[nylas-editor-tabs-group]", "formState", r);
692
- const { title: o, description: l, bookingCalendar: i, location: c, bookingType: p, minCancellationNotice: f, minBookingNotice: m, cancellationPolicy: w, hideCancellationOptions: x, hideReschedulingOptions: T, additionalFields: z, conferencing: P, reminders: S, emailTemplate: B, redirectUrl: N, slug: R, appearance: E, name: k, eventCapacity: M, eventTimeslot: h, participants: U, disableEmails: v, organizerLocale: A } = r, I = {
692
+ const { title: s, description: l, bookingCalendar: i, location: c, bookingType: p, minCancellationNotice: f, minBookingNotice: m, cancellationPolicy: w, hideCancellationOptions: x, hideReschedulingOptions: T, additionalFields: z, conferencing: O, reminders: S, emailTemplate: P, redirectUrl: N, slug: R, appearance: E, name: k, eventCapacity: M, eventTimeslot: h, participants: U, disableEmails: v, organizerLocale: j } = r, I = {
693
693
  ...((G = this.selectedConfiguration) == null ? void 0 : G.id) && { id: this.selectedConfiguration.id },
694
694
  slug: R,
695
695
  name: k,
696
- type: this.selectedEventType === O.group ? O.group : void 0,
696
+ type: this.selectedEventType === H.group ? H.group : void 0,
697
697
  scheduler: {
698
698
  cancellation_policy: w ?? "",
699
699
  min_cancellation_notice: f ?? 0,
@@ -701,10 +701,10 @@ const qe = class {
701
701
  hide_cancellation_options: x ?? !1,
702
702
  hide_rescheduling_options: T ?? !1,
703
703
  additional_fields: z,
704
- email_template: B ? {
705
- ...B,
706
- organizer_locale: A || "en",
707
- logo: B.logo || ""
704
+ email_template: P ? {
705
+ ...P,
706
+ organizer_locale: j || "en",
707
+ logo: P.logo || ""
708
708
  } : void 0,
709
709
  confirmation_redirect_url: N
710
710
  },
@@ -713,27 +713,27 @@ const qe = class {
713
713
  booking_type: p || "booking",
714
714
  disable_emails: typeof v == "boolean" ? v : !1,
715
715
  reminders: S,
716
- conferencing: P,
716
+ conferencing: O,
717
717
  calendar_id: i || "primary",
718
718
  default_capacity: M || 10
719
719
  }
720
- }, j = ge(this.selectedConfiguration, I || {}), H = this.action === "create" ? j : I;
721
- delete H.availability, delete H.participants, delete H.event_booking;
720
+ }, A = ge(this.selectedConfiguration, I || {}), B = this.action === "create" ? A : I;
721
+ delete B.availability, delete B.participants, delete B.event_booking;
722
722
  const $ = (se) => {
723
723
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
724
724
  this.changesSaved = !1;
725
725
  }, 3e3);
726
726
  };
727
- if (this.checkForBookingFormErrors(H))
727
+ if (this.checkForBookingFormErrors(B))
728
728
  return;
729
- const Y = {
729
+ const K = {
730
730
  name: ((W = this.currentUser) == null ? void 0 : W.name) ?? ((F = this.currentUser) == null ? void 0 : F.email) ?? "",
731
731
  email: ((L = this.currentUser) == null ? void 0 : L.email) ?? ""
732
- }, V = ((D = this.calendars) == null ? void 0 : D.find((se) => se.is_primary)) ?? ((q = this.calendars) == null ? void 0 : q[0]), K = [{ ...Y, is_organizer: !0 }], C = (te = this.selectedConfiguration) != null && te.id ? void 0 : {
733
- title: o,
732
+ }, V = ((D = this.calendars) == null ? void 0 : D.find((se) => se.is_primary)) ?? ((q = this.calendars) == null ? void 0 : q[0]), Y = [{ ...K, is_organizer: !0 }], C = (te = this.selectedConfiguration) != null && te.id ? void 0 : {
733
+ title: s,
734
734
  description: l,
735
- location: P ? void 0 : c,
736
- conferencing: c ? void 0 : P,
735
+ location: O ? void 0 : c,
736
+ conferencing: c ? void 0 : O,
737
737
  when: {
738
738
  start_time: ((Z = h == null ? void 0 : h.when) == null ? void 0 : Z.start_time) ?? 0,
739
739
  end_time: ((ne = h == null ? void 0 : h.when) == null ? void 0 : ne.end_time) ?? 0,
@@ -742,29 +742,29 @@ const qe = class {
742
742
  },
743
743
  recurrence: (h == null ? void 0 : h.recurrence) ?? [],
744
744
  calendar_id: i || (V == null ? void 0 : V.id) || "primary",
745
- participants: U != null && U.length ? U : K,
746
- organizer: Y,
745
+ participants: U != null && U.length ? U : Y,
746
+ organizer: K,
747
747
  capacity: M || 10
748
748
  };
749
- this.schedulerConfigChanged.emit({ groupEvent: C || void 0, config: H, resetLoadingState: $, action: this.action, host: this.host });
749
+ this.schedulerConfigChanged.emit({ groupEvent: C || void 0, config: B, resetLoadingState: $, action: this.action, host: this.host });
750
750
  }, this.checkForBookingFormErrors = (t) => {
751
- var o;
752
- let a = !1, s = "";
753
- const r = (o = t.scheduler) == null ? void 0 : o.additional_fields;
754
- return r && (s = d.t("nylasEditorTabs.bookingFormError"), Object.entries(r).forEach((l) => {
751
+ var s;
752
+ let a = !1, o = "";
753
+ const r = (s = t.scheduler) == null ? void 0 : s.additional_fields;
754
+ return r && (o = d.t("nylasEditorTabs.bookingFormError"), Object.entries(r).forEach((l) => {
755
755
  const i = l[1];
756
756
  if (i.label === "") {
757
- s += d.t("nylasEditorTabs.bookingFormError_label", { type: i.type }), a = !0;
757
+ o += d.t("nylasEditorTabs.bookingFormError_label", { type: i.type }), a = !0;
758
758
  return;
759
759
  }
760
760
  if (i.options) {
761
761
  for (const c of i.options)
762
762
  if (c.trim() === "") {
763
- s += d.t("nylasEditorTabs.bookingFormError_option", { label: i.label, type: i.type }), a = !0;
763
+ o += d.t("nylasEditorTabs.bookingFormError_option", { label: i.label, type: i.type }), a = !0;
764
764
  break;
765
765
  }
766
766
  }
767
- })), a && (this.isLoading = !1, this.host.setError(new Error(s))), a;
767
+ })), a && (this.isLoading = !1, this.host.setError(new Error(o))), a;
768
768
  }, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.selectedGroupEvent = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = y.CalendarView, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
769
769
  }
770
770
  configChangedHandler(e) {
@@ -773,28 +773,27 @@ const qe = class {
773
773
  }, e != null && e.id ? this.action = "edit" : this.action = "create";
774
774
  }
775
775
  selectedGroupEventChangedHandler(e) {
776
- var t, a, s, r, o, l, i, c, p, f, m, w, x, T, z, P, S, B, N, R, E, k, M, h, U, v, A, I, j, H, $;
776
+ var t, a, o, r, s, l, i, c, p, f, m, w, x, T, z, O, S, P, N, R, E, k, M, h, U, v, j, I, A, B, $;
777
777
  b("[nylas-editor-tabs-group]", "selectedGroupEventChangedHandler", e, this.selectedConfiguration), this.formState = {
778
778
  ...this.formState,
779
779
  title: (a = (t = this.selectedGroupEvent) == null ? void 0 : t.event) == null ? void 0 : a.title,
780
- description: (r = (s = this.selectedGroupEvent) == null ? void 0 : s.event) == null ? void 0 : r.description,
781
- location: (l = (o = this.selectedGroupEvent) == null ? void 0 : o.event) == null ? void 0 : l.location,
780
+ description: (r = (o = this.selectedGroupEvent) == null ? void 0 : o.event) == null ? void 0 : r.description,
781
+ location: (l = (s = this.selectedGroupEvent) == null ? void 0 : s.event) == null ? void 0 : l.location,
782
782
  conferencing: (c = (i = this.selectedGroupEvent) == null ? void 0 : i.event) == null ? void 0 : c.conferencing,
783
783
  eventCapacity: (f = (p = this.selectedGroupEvent) == null ? void 0 : p.group_event_info) == null ? void 0 : f.capacity,
784
784
  participants: (x = (w = (m = this.selectedGroupEvent) == null ? void 0 : m.group_event_info) == null ? void 0 : w.participants) == null ? void 0 : x.map((J) => ({
785
785
  name: J.name,
786
786
  email: J.email,
787
- is_organizer: !!J.is_organizer,
788
- timezone: ""
787
+ is_organizer: !!J.is_organizer
789
788
  })),
790
789
  eventTimeslot: (z = (T = this.selectedGroupEvent) == null ? void 0 : T.event) != null && z.when ? {
791
790
  when: {
792
- start_time: (B = (S = (P = this.selectedGroupEvent) == null ? void 0 : P.event) == null ? void 0 : S.when) == null ? void 0 : B.start_time,
791
+ start_time: (P = (S = (O = this.selectedGroupEvent) == null ? void 0 : O.event) == null ? void 0 : S.when) == null ? void 0 : P.start_time,
793
792
  end_time: (E = (R = (N = this.selectedGroupEvent) == null ? void 0 : N.event) == null ? void 0 : R.when) == null ? void 0 : E.end_time,
794
793
  start_timezone: (h = (M = (k = this.selectedGroupEvent) == null ? void 0 : k.event) == null ? void 0 : M.when) == null ? void 0 : h.start_timezone,
795
- end_timezone: (A = (v = (U = this.selectedGroupEvent) == null ? void 0 : U.event) == null ? void 0 : v.when) == null ? void 0 : A.end_timezone
794
+ end_timezone: (j = (v = (U = this.selectedGroupEvent) == null ? void 0 : U.event) == null ? void 0 : v.when) == null ? void 0 : j.end_timezone
796
795
  },
797
- recurrence: (j = (I = this.selectedGroupEvent) == null ? void 0 : I.group_event_info) != null && j.rrule ? ($ = (H = this.selectedGroupEvent) == null ? void 0 : H.group_event_info) == null ? void 0 : $.rrule : []
796
+ recurrence: (A = (I = this.selectedGroupEvent) == null ? void 0 : I.group_event_info) != null && A.rrule ? ($ = (B = this.selectedGroupEvent) == null ? void 0 : B.group_event_info) == null ? void 0 : $.rrule : []
798
797
  } : void 0
799
798
  };
800
799
  }
@@ -822,12 +821,12 @@ const qe = class {
822
821
  b("[nylas-editor-tabs-group]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
823
822
  }
824
823
  componentDidLoad() {
825
- var t, a, s;
826
- b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !je() && $e({
824
+ var t, a, o;
825
+ b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !Ae() && $e({
827
826
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
828
- release: "1.4.5",
827
+ release: "2.0.0",
829
828
  integrations: (r) => [
830
- ...r.filter((o) => !1),
829
+ ...r.filter((s) => !1),
831
830
  Ze({
832
831
  colorScheme: "system",
833
832
  autoInject: !1
@@ -837,7 +836,7 @@ const qe = class {
837
836
  beforeSend: () => null
838
837
  }), (t = this.selectedConfiguration) != null && t.id && this.configChangedHandler(this.selectedConfiguration);
839
838
  const e = (a = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : a.name;
840
- e && ((s = this.hideEditorTabs) != null && s.includes(this.activeTab)) && (this.activeTab = e), this.updateFormState();
839
+ e && ((o = this.hideEditorTabs) != null && o.includes(this.activeTab)) && (this.activeTab = e), this.updateFormState();
841
840
  }
842
841
  disconnectedCallback() {
843
842
  b("[nylas-editor-tabs-group]", "disconnectedCallback");
@@ -854,7 +853,7 @@ const qe = class {
854
853
  this.showFeedbackModal = !1;
855
854
  }
856
855
  feedbackSubmittedHandler(e) {
857
- var s, r;
856
+ var o, r;
858
857
  const a = {
859
858
  eventId: Je("Scheduler Editor User Feedback"),
860
859
  message: e.detail.feedback
@@ -864,10 +863,10 @@ const qe = class {
864
863
  captureContext: {
865
864
  tags: {
866
865
  "nylas-web-element": "nylas-scheduler-editor",
867
- "nylas-web-element-version": "1.4.5"
866
+ "nylas-web-element-version": "2.0.0"
868
867
  },
869
868
  extra: {
870
- configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
869
+ configId: (o = this.selectedConfiguration) == null ? void 0 : o.id,
871
870
  slug: (r = this.selectedConfiguration) == null ? void 0 : r.slug
872
871
  }
873
872
  }
@@ -878,10 +877,10 @@ const qe = class {
878
877
  this.groupEventImportTriggered.emit({ groupEvent: e.detail, configId: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "", host: this.host });
879
878
  }
880
879
  saveGroupEventChangesHandler(e) {
881
- var s, r, o, l, i, c, p;
880
+ var o, r, s, l, i, c, p;
882
881
  b("saveGroupEventChangesHandler", e.detail, this.selectedGroupEvent);
883
882
  const t = this.formRef.checkValidity(), a = this.getGroupEventDetailsFromFormState();
884
- if (this.resetError(), a.title || this.setError(new Error("Event title is required.")), (!((s = a.when) != null && s.start_time) || !((r = a.when) != null && r.end_time)) && this.setError(new Error("Event time is required.")), (o = a.participants) != null && o.length || this.setError(new Error("Participants are required.")), (l = a.participants) != null && l.length && ((i = a.participants) != null && i.some((f) => !f.email)) && this.setError(new Error("Participant email is required.")), this.error !== "" || !t) {
883
+ if (this.resetError(), a.title || this.setError(new Error("Event title is required.")), (!((o = a.when) != null && o.start_time) || !((r = a.when) != null && r.end_time)) && this.setError(new Error("Event time is required.")), (s = a.participants) != null && s.length || this.setError(new Error("Participants are required.")), (l = a.participants) != null && l.length && ((i = a.participants) != null && i.some((f) => !f.email)) && this.setError(new Error("Participant email is required.")), this.error !== "" || !t) {
885
884
  this.saveGroupEventChangesError.emit({
886
885
  error: this.error ?? "An error occurred while saving changes.",
887
886
  configId: ((c = this.selectedConfiguration) == null ? void 0 : c.id) ?? "",
@@ -912,52 +911,52 @@ const qe = class {
912
911
  const t = e.detail, a = {
913
912
  name: ((l = this.currentUser) == null ? void 0 : l.name) ?? ((i = this.currentUser) == null ? void 0 : i.email) ?? "",
914
913
  email: ((c = this.currentUser) == null ? void 0 : c.email) ?? ""
915
- }, s = ((p = this.calendars) == null ? void 0 : p.find((x) => x.is_primary)) ?? ((f = this.calendars) == null ? void 0 : f[0]), r = ((m = this.formState) == null ? void 0 : m.conferencing) || t.conferencing, o = {
914
+ }, o = ((p = this.calendars) == null ? void 0 : p.find((x) => x.is_primary)) ?? ((f = this.calendars) == null ? void 0 : f[0]), r = ((m = this.formState) == null ? void 0 : m.conferencing) || t.conferencing, s = {
916
915
  title: t.title,
917
916
  description: t.description,
918
917
  location: r ? void 0 : t.location,
919
918
  participants: t.participants,
920
919
  organizer: a,
921
- conferencing: t.location ? void 0 : r,
920
+ conferencing: t.location ? {} : r,
922
921
  when: t.eventTimeslot.when,
923
922
  recurrence: t.eventTimeslot.recurrence,
924
- calendar_id: (s == null ? void 0 : s.id) || "primary",
923
+ calendar_id: (o == null ? void 0 : o.id) || "primary",
925
924
  capacity: t.eventCapacity
926
925
  };
927
- this.groupEventCreateTriggered.emit({ groupEvent: o, configId: ((w = this.selectedConfiguration) == null ? void 0 : w.id) ?? "", host: this.host });
926
+ this.groupEventCreateTriggered.emit({ groupEvent: s, configId: ((w = this.selectedConfiguration) == null ? void 0 : w.id) ?? "", host: this.host });
928
927
  }
929
928
  getGroupEventDetailsFromFormState() {
930
- var m, w, x, T, z, P, S, B, N;
929
+ var m, w, x, T, z, O, S, P, N;
931
930
  const e = ((m = this.calendars) == null ? void 0 : m.find((R) => R.is_primary)) ?? ((w = this.calendars) == null ? void 0 : w[0]), t = {
932
931
  name: ((x = this.currentUser) == null ? void 0 : x.name) ?? ((T = this.currentUser) == null ? void 0 : T.email) ?? "",
933
932
  email: ((z = this.currentUser) == null ? void 0 : z.email) ?? ""
934
- }, a = [{ ...t, is_organizer: !0 }], { title: s, description: r, bookingCalendar: o, location: l, conferencing: i, eventCapacity: c, eventTimeslot: p, participants: f } = this.formState;
933
+ }, a = [{ ...t, is_organizer: !0 }], { title: o, description: r, bookingCalendar: s, location: l, conferencing: i, eventCapacity: c, eventTimeslot: p, participants: f } = this.formState;
935
934
  return {
936
- title: s,
935
+ title: o,
937
936
  description: r,
938
937
  location: i ? void 0 : l,
939
938
  conferencing: l ? void 0 : i,
940
939
  when: {
941
- start_time: ((P = p == null ? void 0 : p.when) == null ? void 0 : P.start_time) ?? 0,
940
+ start_time: ((O = p == null ? void 0 : p.when) == null ? void 0 : O.start_time) ?? 0,
942
941
  end_time: ((S = p == null ? void 0 : p.when) == null ? void 0 : S.end_time) ?? 0,
943
- start_timezone: ((B = p == null ? void 0 : p.when) == null ? void 0 : B.start_timezone) ?? "",
942
+ start_timezone: ((P = p == null ? void 0 : p.when) == null ? void 0 : P.start_timezone) ?? "",
944
943
  end_timezone: ((N = p == null ? void 0 : p.when) == null ? void 0 : N.end_timezone) ?? ""
945
944
  },
946
945
  recurrence: (p == null ? void 0 : p.recurrence) ?? [],
947
- calendar_id: o || (e == null ? void 0 : e.id) || "primary",
946
+ calendar_id: s || (e == null ? void 0 : e.id) || "primary",
948
947
  participants: f != null && f.length ? f : a,
949
948
  organizer: t,
950
949
  capacity: c || 10
951
950
  };
952
951
  }
953
952
  getFormStateFromConfig(e) {
954
- var t, a, s, r, o, l, i, c, p, f, m, w, x, T;
953
+ var t, a, o, r, s, l, i, c, p, f, m, w, x, T;
955
954
  return 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."), {
956
955
  additionalFields: ((t = e == null ? void 0 : e.scheduler) == null ? void 0 : t.additional_fields) ?? {},
957
956
  bookingType: ((a = e == null ? void 0 : e.group_booking) == null ? void 0 : a.booking_type) ?? "booking",
958
- cancellationPolicy: ((s = e == null ? void 0 : e.scheduler) == null ? void 0 : s.cancellation_policy) ?? "",
957
+ cancellationPolicy: ((o = e == null ? void 0 : e.scheduler) == null ? void 0 : o.cancellation_policy) ?? "",
959
958
  minCancellationNotice: ((r = e == null ? void 0 : e.scheduler) == null ? void 0 : r.min_cancellation_notice) ?? 0,
960
- minBookingNotice: ((o = e == null ? void 0 : e.scheduler) == null ? void 0 : o.min_booking_notice) ?? 60,
959
+ minBookingNotice: ((s = e == null ? void 0 : e.scheduler) == null ? void 0 : s.min_booking_notice) ?? 60,
961
960
  hideCancellationOptions: ((l = e == null ? void 0 : e.scheduler) == null ? void 0 : l.hide_cancellation_options) ?? !1,
962
961
  hideReschedulingOptions: ((i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.hide_rescheduling_options) ?? !1,
963
962
  reminders: (c = e == null ? void 0 : e.group_booking) == null ? void 0 : c.reminders,
@@ -1031,10 +1030,10 @@ const qe = class {
1031
1030
  break;
1032
1031
  case "participants": {
1033
1032
  const a = JSON.parse(e.toString());
1034
- this.formState.participants = a.map((s) => ({
1035
- name: s.name,
1036
- email: s.email,
1037
- is_organizer: s.is_organizer
1033
+ this.formState.participants = a.map((o) => ({
1034
+ name: o.name,
1035
+ email: o.email,
1036
+ is_organizer: o.is_organizer
1038
1037
  }));
1039
1038
  break;
1040
1039
  }
@@ -1042,8 +1041,8 @@ const qe = class {
1042
1041
  this.formState.eventTimeslot = JSON.parse(e.toString());
1043
1042
  break;
1044
1043
  case "disable-emails": {
1045
- const { disableEmails: a, organizerLocale: s } = JSON.parse(e.toString());
1046
- this.formState.disableEmails = a, this.formState.organizerLocale = s;
1044
+ const { disableEmails: a, organizerLocale: o } = JSON.parse(e.toString());
1045
+ this.formState.disableEmails = a, this.formState.organizerLocale = o;
1047
1046
  break;
1048
1047
  }
1049
1048
  }
@@ -1069,18 +1068,18 @@ const qe = class {
1069
1068
  }
1070
1069
  render() {
1071
1070
  var e, t;
1072
- return b("[nylas-editor-tabs-group]", "render", this.formState), n(le, { key: "9b79ba6f8696d5c7bcc9eb1d8c4b3cebddc6e4a9" }, n("form", { key: "e70dade70b4bf2a9a5974e70a335b6f04ea24ed6", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, noValidate: !0 }, this.mode === "app" ? n("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, n("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (a) => {
1071
+ return b("[nylas-editor-tabs-group]", "render", this.formState), n(le, { key: "2f1b119172917fda91ffa866f37a14355f2828c0" }, n("form", { key: "103788b60f9351f7b20bcb06e1e93f89a29a9332", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, noValidate: !0 }, this.mode === "app" ? n("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, n("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (a) => {
1073
1072
  this.setActiveTab(a, y.CalendarView);
1074
- } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, d.t("returnToCalendarView")))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: y.BookingOptions, class: { tab: !0, active: this.activeTab == y.BookingOptions, hide: this.hideTab(y.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (a) => this.setActiveTab(a, y.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), d.t("bookingOptionsTab")), n("button", { name: y.BookingForm, class: { tab: !0, active: this.activeTab == y.BookingForm, hide: this.hideTab(y.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (a) => this.setActiveTab(a, y.BookingForm) }, this.activeTab == y.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), d.t("bookingFormTab")), n("button", { name: y.Communications, class: { tab: !0, active: this.activeTab == y.Communications, hide: this.hideTab(y.Communications) }, onClick: (a) => this.setActiveTab(a, y.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == y.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), d.t("communicationsTab")), n("button", { name: y.PageStyles, class: { tab: !0, active: this.activeTab == y.PageStyles, hide: this.hideTab(y.PageStyles) }, onClick: (a) => this.setActiveTab(a, y.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == y.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), d.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(ut, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: d }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "3e14a9cecdd8200a4a388595c69450fc1fc2d024", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "fa88541076507a351a9189d3937e380b042adb2a", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null)), this.activeTab === y.CalendarView && n("button-component", { title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (a) => this.setActiveTab(a, y.BookingOptions) }, d.t("pageSettingsButton"))), n("div", { key: "5c2436da8cc3deb362e42ba4ff8ac228b89263dc", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "132875a26da363e4b402879b8344fce6311c1702", class: {
1073
+ } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, d.t("returnToCalendarView")))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: y.BookingOptions, class: { tab: !0, active: this.activeTab == y.BookingOptions, hide: this.hideTab(y.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (a) => this.setActiveTab(a, y.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), d.t("bookingOptionsTab")), n("button", { name: y.BookingForm, class: { tab: !0, active: this.activeTab == y.BookingForm, hide: this.hideTab(y.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (a) => this.setActiveTab(a, y.BookingForm) }, this.activeTab == y.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), d.t("bookingFormTab")), n("button", { name: y.Communications, class: { tab: !0, active: this.activeTab == y.Communications, hide: this.hideTab(y.Communications) }, onClick: (a) => this.setActiveTab(a, y.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == y.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), d.t("communicationsTab")), n("button", { name: y.PageStyles, class: { tab: !0, active: this.activeTab == y.PageStyles, hide: this.hideTab(y.PageStyles) }, onClick: (a) => this.setActiveTab(a, y.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == y.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), d.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(ut, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: d }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "5c98656ec4f4b3bb61f675dbfe43121b1cf230cf", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "cca7ec210ba25fd6e8d6f090871bd03acd86f3b2", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null)), this.activeTab === y.CalendarView && n("button-component", { title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (a) => this.setActiveTab(a, y.BookingOptions) }, d.t("pageSettingsButton"))), n("div", { key: "53bf5ccc9597574dade9a81c08a4b316ebbb8f1e", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "a3acb4bbfb391483d9d8914ff5f07922c05e7dbd", class: {
1075
1074
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
1076
1075
  "saved-changes": this.changesSaved,
1077
1076
  error: this.error !== "",
1078
1077
  "error-full-width": this.error !== "" && this.action === "create"
1079
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== y.CalendarView ? d.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${d.t("changesSavedLabel")}!` : ""), n("div", { key: "f30fa484009f4d4729551014e86ec4a0d2ae7824", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1078
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== y.CalendarView ? d.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${d.t("changesSavedLabel")}!` : ""), n("div", { key: "81e083f0560967f3d8b68f1e0cafef645c7ae288", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1080
1079
  a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(re(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
1081
- }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "de0c92614c21e3d7ad2d1e982186df2858e99981", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1080
+ }, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "59a4f7e7238f88a4a07e0bc1ab79bed788da74c9", type: "button", disabled: this.isLoading, clickHandler: (a) => {
1082
1081
  a.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
1083
- }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, d.t("backButton")), n("button-component", { key: "5edfb977d8feed310347b968cdb7505f9bc7eb1f", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, d.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${d.t("createButtonText")}` : `${d.t("saveChangesButtonText")}`))))), this.showFeedbackModal && n("nylas-feedback-form", null));
1082
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, d.t("backButton")), n("button-component", { key: "3ed3bc81b39988173e13f2c3346defed31b96148", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, d.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${d.t("createButtonText")}` : `${d.t("saveChangesButtonText")}`))))), this.showFeedbackModal && n("nylas-feedback-form", null));
1084
1083
  }
1085
1084
  get host() {
1086
1085
  return de(this);
@@ -1108,15 +1107,15 @@ ft([
1108
1107
  ]),
1109
1108
  eventToProps: {
1110
1109
  schedulerConfigChanged: async (e, t) => {
1111
- const { resetLoadingState: a, host: s, action: r, config: o, groupEvent: l } = e.detail, i = (c) => {
1110
+ const { resetLoadingState: a, host: o, action: r, config: s, groupEvent: l } = e.detail, i = (c) => {
1112
1111
  const [p, f] = c;
1113
- !p && f ? s.setError(f) : p && !f && r === "create" && s.schedulerConfigCreatedEventHandler({ config: p, action: r, host: s });
1112
+ !p && f ? o.setError(f) : p && !f && r === "create" && o.schedulerConfigCreatedEventHandler({ config: p, action: r, host: o });
1114
1113
  };
1115
1114
  if (r === "edit") {
1116
- const c = await t.schedulerConfig.updateConfiguration(o);
1115
+ const c = await t.schedulerConfig.updateConfiguration(s);
1117
1116
  i(c), a && a(e);
1118
1117
  } else {
1119
- const c = await t.schedulerConfig.createConfiguration(o);
1118
+ const c = await t.schedulerConfig.createConfiguration(s);
1120
1119
  i(c);
1121
1120
  const [p, f] = c, m = p == null ? void 0 : p.id;
1122
1121
  if (m && l) {
@@ -1142,19 +1141,19 @@ ft([
1142
1141
  b("[nylas-editor-tabs-group]", "schedulerConfigCreated", e);
1143
1142
  },
1144
1143
  groupEventUpdateTriggered: async (e, t) => {
1145
- const { groupEvent: a, host: s, chosenOption: r, configId: o } = e.detail, l = await t.schedulerConfig.updateGroupEvent(a, r, o), [i, c] = l;
1146
- !i && c && s.setError(c);
1144
+ const { groupEvent: a, host: o, chosenOption: r, configId: s } = e.detail, l = await t.schedulerConfig.updateGroupEvent(a, r, s), [i, c] = l;
1145
+ !i && c && o.setError(c);
1147
1146
  },
1148
1147
  groupEventDeleteTriggered: async (e, t) => {
1149
- const { groupEvent: a, chosenOption: s, configId: r, host: o } = e.detail, l = await t.schedulerConfig.deleteGroupEvent(a, s, r), [i, c] = l;
1150
- !i && c && o.setError(c);
1148
+ const { groupEvent: a, chosenOption: o, configId: r, host: s } = e.detail, l = await t.schedulerConfig.deleteGroupEvent(a, o, r), [i, c] = l;
1149
+ !i && c && s.setError(c);
1151
1150
  },
1152
1151
  groupEventCreateTriggered: async (e, t) => {
1153
- const { groupEvent: a, configId: s, host: r } = e.detail, o = await t.schedulerConfig.createGroupEvent(a, s), [l, i] = o;
1152
+ const { groupEvent: a, configId: o, host: r } = e.detail, s = await t.schedulerConfig.createGroupEvent(a, o), [l, i] = s;
1154
1153
  !l && i && r.setError(i);
1155
1154
  },
1156
1155
  groupEventImportTriggered: async (e, t) => {
1157
- const { groupEvent: a, configId: s, host: r } = e.detail, o = await t.schedulerConfig.importGroupEvent([a], s), [l, i] = o;
1156
+ const { groupEvent: a, configId: o, host: r } = e.detail, s = await t.schedulerConfig.importGroupEvent([a], o), [l, i] = s;
1158
1157
  if (!l && i && r.setError(i), l && l.import_failed && l.import_failed.length > 0) {
1159
1158
  const c = l.import_failed.map((p) => p.reason).join(`
1160
1159
  `);
@@ -1164,8 +1163,8 @@ ft([
1164
1163
  }
1165
1164
  },
1166
1165
  saveGroupEventChangesError: async (e, t) => {
1167
- const { error: a, host: s } = e.detail;
1168
- b("[nylas-editor-tabs-group]", "saveGroupEventChangesError", a, s);
1166
+ const { error: a, host: o } = e.detail;
1167
+ b("[nylas-editor-tabs-group]", "saveGroupEventChangesError", a, o);
1169
1168
  }
1170
1169
  },
1171
1170
  localPropsToProp: /* @__PURE__ */ new Map([
@@ -1181,19 +1180,19 @@ ft([
1181
1180
  ], qe.prototype, "render", null);
1182
1181
  qe.style = yt;
1183
1182
  const gt = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:16px;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}@media screen and (max-width: 768px){.configurations .table-container{min-height:624px}}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem;text-align:right}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .actions select-dropdown.last::part(sd_dropdown-content){bottom:54px}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', mt = gt;
1184
- var _t = function(e, t, a, s) {
1185
- var r = arguments.length, o = r < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
1183
+ var _t = function(e, t, a, o) {
1184
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
1186
1185
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1187
- o = Reflect.decorate(e, t, a, s);
1186
+ s = Reflect.decorate(e, t, a, o);
1188
1187
  else
1189
1188
  for (var i = e.length - 1; i >= 0; i--)
1190
- (l = e[i]) && (o = (r < 3 ? l(o) : r > 3 ? l(t, a, o) : l(t, a)) || o);
1191
- return r > 3 && o && Object.defineProperty(t, a, o), o;
1189
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
1190
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
1192
1191
  }, ye = function(e, t) {
1193
1192
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1194
1193
  return Reflect.metadata(e, t);
1195
1194
  };
1196
- const Ye = class {
1195
+ const Ke = class {
1197
1196
  constructor(e) {
1198
1197
  X(this, e), this.initListConfigurations = _(this, "initListConfigurations", 7), this.createButtonClick = _(this, "createButtonClick", 7), this.editButtonClick = _(this, "editButtonClick", 7), this.deleteButtonClick = _(this, "deleteButtonClick", 7), this.configurations = [], this.selectedLanguage = void 0, this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
1199
1198
  }
@@ -1224,16 +1223,16 @@ const Ye = class {
1224
1223
  async handleNylasFormDropdownChanged(e) {
1225
1224
  var r;
1226
1225
  b("[nylas-list-configurations]", "handleNylasFormDropdownChanged", e.detail);
1227
- const { value: t } = e.detail, [a, s] = t.split("-");
1226
+ const { value: t } = e.detail, [a, o] = t.split("-");
1228
1227
  switch (e.preventDefault(), a) {
1229
1228
  case "delete":
1230
- this.deleteConfigurationId = (r = this.configurations[s]) == null ? void 0 : r.id;
1229
+ this.deleteConfigurationId = (r = this.configurations[o]) == null ? void 0 : r.id;
1231
1230
  break;
1232
1231
  case "preview":
1233
- window.open(re(this.schedulerPreviewLink, this.configurations[s]), "_blank");
1232
+ window.open(re(this.schedulerPreviewLink, this.configurations[o]), "_blank");
1234
1233
  break;
1235
1234
  case "copy":
1236
- await navigator.clipboard.writeText(re(this.schedulerPreviewLink, this.configurations[s]));
1235
+ await navigator.clipboard.writeText(re(this.schedulerPreviewLink, this.configurations[o]));
1237
1236
  break;
1238
1237
  }
1239
1238
  }
@@ -1315,11 +1314,11 @@ const Ye = class {
1315
1314
  this.createButtonClick.emit(this.host);
1316
1315
  } }, d.t("createNewSchedulingPageButtonText"))))), this.state !== "loading" && ((e = this.configurations) == null ? void 0 : e.map((t, a) => {
1317
1316
  var l, i, c, p;
1318
- const s = (a === this.configurations.length - 1 || a === this.configurations.length - 2) && this.configurations.length > 3, r = t, o = t;
1319
- return n("tr", { key: t == null ? void 0 : t.id }, n("td", null, n("div", { class: "title" }, n("div", { class: "config-event-title", title: (l = o == null ? void 0 : o.event_booking) == null ? void 0 : l.title }, ((i = o == null ? void 0 : o.event_booking) == null ? void 0 : i.title) || (r == null ? void 0 : r.name)), n("div", { class: "config-event-description" }, (c = o == null ? void 0 : o.event_booking) == null ? void 0 : c.description))), n("td", null, n("div", { class: "duration" }, this.getDurationString((p = o == null ? void 0 : o.availability) == null ? void 0 : p.duration_minutes))), n("td", null, n("div", { class: "actions" }, n("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (f) => {
1317
+ const o = (a === this.configurations.length - 1 || a === this.configurations.length - 2) && this.configurations.length > 3, r = t, s = t;
1318
+ return n("tr", { key: t == null ? void 0 : t.id }, n("td", null, n("div", { class: "title" }, n("div", { class: "config-event-title", title: (l = s == null ? void 0 : s.event_booking) == null ? void 0 : l.title }, ((i = s == null ? void 0 : s.event_booking) == null ? void 0 : i.title) || (r == null ? void 0 : r.name)), n("div", { class: "config-event-description" }, (c = s == null ? void 0 : s.event_booking) == null ? void 0 : c.description))), n("td", null, n("div", { class: "duration" }, this.getDurationString((p = s == null ? void 0 : s.availability) == null ? void 0 : p.duration_minutes))), n("td", null, n("div", { class: "actions" }, n("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (f) => {
1320
1319
  f.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: t });
1321
1320
  } }, n("edit-icon", { width: "16", height: "16" }), d.t("editSchedulingPageButtonText")), n("select-dropdown", { class: {
1322
- last: s
1321
+ last: o
1323
1322
  }, name: "actions", options: [
1324
1323
  { value: `preview-${a}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
1325
1324
  { value: `copy-${a}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
@@ -1350,33 +1349,34 @@ _t([
1350
1349
  localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
1351
1350
  eventToProps: {
1352
1351
  initListConfigurations: async (e, t) => {
1353
- const { host: a, cursor: s } = e.detail;
1352
+ const { host: a, cursor: o } = e.detail;
1354
1353
  await a.setState("loading");
1355
- const [r, o] = await t.schedulerConfig.getConfigurations(s);
1356
- if (!r && o && o.message) {
1357
- await a.setState("error"), await a.setError(o.message);
1354
+ const [r, s] = await t.schedulerConfig.getConfigurations(o);
1355
+ if (!r && s && s.message) {
1356
+ await a.setState("error"), await a.setError(s.message);
1358
1357
  return;
1359
1358
  }
1360
1359
  await a.setState("loaded");
1361
1360
  },
1362
1361
  createButtonClick: async (e, t) => {
1363
- var a;
1364
- t.schedulerConfigStore.resetSelectedConfiguration(), (a = t.schedulerConfigStore.state.experimentalFeatures) != null && a.group_events ? t.schedulerConfigStore.state.action = "create-select" : t.schedulerConfigStore.state.action = "create";
1362
+ t.schedulerConfigStore.resetSelectedConfiguration();
1363
+ const a = Object.entries(t.schedulerConfigStore.state.enableEventTypes || {}).filter(([o, r]) => r);
1364
+ a.length === 1 ? (t.schedulerConfigStore.state.action = "create", t.schedulerConfigStore.state.selectedEventType = H[a[0][0]]) : t.schedulerConfigStore.state.action = "create-select";
1365
1365
  },
1366
1366
  deleteButtonClick: async (e, t) => {
1367
- const { host: a, configuration: s } = e.detail, [r, o] = await t.schedulerConfig.deleteConfiguration(s.id);
1368
- !r && o && o.message && (await a.setState("error"), await a.setError(o.message)), await a.hideDeleteConfirmation();
1367
+ const { host: a, configuration: o } = e.detail, [r, s] = await t.schedulerConfig.deleteConfiguration(o.id);
1368
+ !r && s && s.message && (await a.setState("error"), await a.setError(s.message)), await a.hideDeleteConfirmation();
1369
1369
  },
1370
1370
  editButtonClick: async (e, t) => {
1371
1371
  const { configuration: a } = e.detail;
1372
1372
  if (t.schedulerConfigStore.state.selectedConfiguration = a, a.type === "group") {
1373
- const { startTime: s, endTime: r } = et((/* @__PURE__ */ new Date()).toISOString(), "week");
1373
+ const { startTime: o, endTime: r } = et((/* @__PURE__ */ new Date()).toISOString(), "week");
1374
1374
  t.schedulerConfigStore.state.calendarViewDateRange = {
1375
- start_time: s.toString(),
1375
+ start_time: o.toString(),
1376
1376
  end_time: r.toString()
1377
1377
  };
1378
- const [o, l] = await t.schedulerConfig.getGroupEvents(a.id);
1379
- if (!o && l && l.message)
1378
+ const [s, l] = await t.schedulerConfig.getGroupEvents(a.id);
1379
+ if (!s && l && l.message)
1380
1380
  return;
1381
1381
  }
1382
1382
  t.schedulerConfigStore.state.action = "edit";
@@ -1387,24 +1387,30 @@ _t([
1387
1387
  ye("design:type", Function),
1388
1388
  ye("design:paramtypes", []),
1389
1389
  ye("design:returntype", void 0)
1390
- ], Ye.prototype, "render", null);
1391
- Ye.style = mt;
1390
+ ], Ke.prototype, "render", null);
1391
+ Ke.style = mt;
1392
1392
  const vt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-select-event-type{height:inherit;overflow-y:auto}.nylas-select-event-type div.header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200)}.nylas-select-event-type div.header h2{font-size:18px;padding:0 24px;line-height:24px;margin:0;font-weight:600;color:var(--nylas-base-800)}.nylas-select-event-type div.header button-component button{background:transparent;border:none;cursor:pointer}.nylas-select-event-type div.header button-component button:hover,.nylas-select-event-type div.header button-component button:active{color:var(--nylas-primary);background-color:transparent}.nylas-select-event-type div.header button-component button:disabled{cursor:not-allowed}.nylas-select-event-type div.content{padding:40px}.nylas-select-event-type div.content h3{margin:0 0 32px 0;font-size:18px;line-height:24px;font-weight:600}.nylas-select-event-type div.content div.event-type{display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option{padding:16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-3x);width:inherit;cursor:pointer;display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option h4{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--nylas-base-900)}.nylas-select-event-type div.content div.event-type div.event-type-option p{margin:0;font-size:14px;line-height:21px;font-weight:400;color:var(--nylas-base-800)}', wt = vt;
1393
- var kt = function(e, t, a, s) {
1394
- var r = arguments.length, o = r < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
1393
+ var kt = function(e, t, a, o) {
1394
+ var r = arguments.length, s = r < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, a) : o, l;
1395
1395
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
1396
- o = Reflect.decorate(e, t, a, s);
1396
+ s = Reflect.decorate(e, t, a, o);
1397
1397
  else
1398
1398
  for (var i = e.length - 1; i >= 0; i--)
1399
- (l = e[i]) && (o = (r < 3 ? l(o) : r > 3 ? l(t, a, o) : l(t, a)) || o);
1400
- return r > 3 && o && Object.defineProperty(t, a, o), o;
1399
+ (l = e[i]) && (s = (r < 3 ? l(s) : r > 3 ? l(t, a, s) : l(t, a)) || s);
1400
+ return r > 3 && s && Object.defineProperty(t, a, s), s;
1401
1401
  }, fe = function(e, t) {
1402
1402
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
1403
1403
  return Reflect.metadata(e, t);
1404
1404
  };
1405
- const Ke = class {
1405
+ const Ye = class {
1406
1406
  constructor(e) {
1407
- X(this, e), this.returnToAllSchedulingPagesEvent = _(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = _(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0;
1407
+ X(this, e), this.returnToAllSchedulingPagesEvent = _(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = _(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0, this.enableEventTypes = {
1408
+ one_on_one: !0,
1409
+ collective: !0,
1410
+ max_fairness: !0,
1411
+ max_availability: !0,
1412
+ group: !0
1413
+ };
1408
1414
  }
1409
1415
  connectedCallback() {
1410
1416
  b("nylas-select-event-type", "connectedCallback");
@@ -1425,39 +1431,48 @@ const Ke = class {
1425
1431
  e !== t && d.changeLanguage(e);
1426
1432
  }
1427
1433
  render() {
1428
- var r;
1429
- const e = [
1434
+ var s;
1435
+ const e = {
1436
+ "one-on-one": "one_on_one",
1437
+ collective: "collective",
1438
+ "max-fairness": "max_fairness",
1439
+ "max-availability": "max_availability",
1440
+ group: "group"
1441
+ }, t = [
1430
1442
  {
1431
1443
  label: d.t("nylasSelectEventType.eventTypeOptions.oneOnOne.label"),
1432
- value: O.one_on_one,
1444
+ value: H.one_on_one,
1433
1445
  description: d.t("nylasSelectEventType.eventTypeOptions.oneOnOne.desc")
1434
1446
  },
1435
1447
  {
1436
1448
  label: d.t("nylasSelectEventType.eventTypeOptions.collective.label"),
1437
- value: O.collective,
1449
+ value: H.collective,
1438
1450
  description: d.t("nylasSelectEventType.eventTypeOptions.collective.desc")
1439
1451
  },
1440
1452
  {
1441
1453
  label: d.t("nylasSelectEventType.eventTypeOptions.maxFairness.label"),
1442
- value: O.max_fairness,
1454
+ value: H.max_fairness,
1443
1455
  description: d.t("nylasSelectEventType.eventTypeOptions.maxFairness.desc")
1444
1456
  },
1445
1457
  {
1446
1458
  label: d.t("nylasSelectEventType.eventTypeOptions.maxAvailability.label"),
1447
- value: O.max_availability,
1459
+ value: H.max_availability,
1448
1460
  description: d.t("nylasSelectEventType.eventTypeOptions.maxAvailability.desc")
1449
1461
  },
1450
1462
  {
1451
1463
  label: d.t("nylasSelectEventType.eventTypeOptions.group.label"),
1452
- value: O.group,
1464
+ value: H.group,
1453
1465
  description: d.t("nylasSelectEventType.eventTypeOptions.group.desc")
1454
1466
  }
1455
- ], t = this.participantOptions && ((r = this.participantOptions) == null ? void 0 : r.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, a = [O.collective, O.max_availability, O.max_fairness], s = [O.one_on_one, O.group];
1456
- return n(le, { key: "4cd1ea6564b67ff7547499e504214684a61350c3" }, n("div", { key: "2e591b78dcbd4e832ed63a837d0e03edde75e97c", class: "nylas-select-event-type", part: "nset" }, n("div", { key: "9b866ca6a3e3bc025ba13d8f023e825c4c042d14", class: "header", part: "nset__header" }, n("h2", { key: "0a8390189a308bb1ef7c51ca3efa0b5b8d2aa165" }, d.t("nylasSelectEventType.createEventHeaderTitle")), n("button-component", { key: "0a7d6503aa2ea9c137aa59f4a211a88f816844cd", variant: "invisible", part: "nset__header__back-button", onClick: (o) => {
1467
+ ], a = [H.collective, H.max_availability, H.max_fairness], o = this.participantOptions && ((s = this.participantOptions) == null ? void 0 : s.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, r = this.enableEventTypes ? t.filter((l) => {
1468
+ const i = l.value, c = e[i];
1469
+ return console.log("key", i, this.enableEventTypes ? this.enableEventTypes[c] : "no enableEventTypes"), a.includes(i) && !o ? !1 : this.enableEventTypes && this.enableEventTypes[c];
1470
+ }) : t;
1471
+ return n(le, null, n("div", { class: "nylas-select-event-type", part: "nset" }, n("div", { class: "header", part: "nset__header" }, n("h2", null, d.t("nylasSelectEventType.createEventHeaderTitle")), n("button-component", { variant: "invisible", part: "nset__header__back-button", onClick: (l) => {
1457
1472
  this.returnToAllSchedulingPagesEvent.emit();
1458
- } }, n("chevron-icon", { key: "5a81b33f22799f77657f9a8196ec1d72e255865c", width: "16", height: "16" }), n("span", { key: "df5b805d76b1040bacae5e68eebd2ff7a74b2810" }, d.t("nylasSelectEventType.returnToAllSchedulingPages")))), n("div", { key: "ff48e355eb9baac896bf6e3de2dafbfbd91f57c0", class: "content", part: "nset__content" }, n("h3", { key: "d387519b40557886ece52327429e6e58aa133689" }, d.t("nylasSelectEventType.eventTypeHeaderTitle")), n("div", { key: "a3384ed668259f02114efd375cfcaad125f1efe7", class: "event-type", part: "nset__content__event-type" }, e.filter((o) => s.includes(o.value) || t && a.includes(o.value)).map((o) => n("div", { class: "event-type-option", onClick: (l) => {
1459
- this.createEventTypeSelected.emit({ eventType: o.value });
1460
- }, part: `nset__content__event-type-option-${o.value}` }, n("h4", null, o.label), n("p", null, o.description)))))));
1473
+ } }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, d.t("nylasSelectEventType.returnToAllSchedulingPages")))), n("div", { class: "content", part: "nset__content" }, n("h3", null, d.t("nylasSelectEventType.eventTypeHeaderTitle")), n("div", { class: "event-type", part: "nset__content__event-type" }, r.length === 0 && n("p", null, d.t("nylasSelectEventType.noEventTypesEnabled")), r.map((l) => n("div", { class: "event-type-option", onClick: (i) => {
1474
+ this.createEventTypeSelected.emit({ eventType: l.value });
1475
+ }, part: `nset__content__event-type-option-${l.value}` }, n("h4", null, l.label), n("p", null, l.description)))))));
1461
1476
  }
1462
1477
  get host() {
1463
1478
  return de(this);
@@ -1474,7 +1489,8 @@ kt([
1474
1489
  name: "nylas-select-event-type",
1475
1490
  stateToProps: /* @__PURE__ */ new Map([
1476
1491
  ["schedulerConfig.selectedLanguage", "selectedLanguage"],
1477
- ["schedulerConfig.additionalParticipants", "participantOptions"]
1492
+ ["schedulerConfig.additionalParticipants", "participantOptions"],
1493
+ ["schedulerConfig.enableEventTypes", "enableEventTypes"]
1478
1494
  ]),
1479
1495
  eventToProps: {
1480
1496
  returnToAllSchedulingPagesEvent: async (e, t) => {
@@ -1490,13 +1506,13 @@ kt([
1490
1506
  fe("design:type", Function),
1491
1507
  fe("design:paramtypes", []),
1492
1508
  fe("design:returntype", void 0)
1493
- ], Ke.prototype, "render", null);
1494
- Ke.style = wt;
1509
+ ], Ye.prototype, "render", null);
1510
+ Ye.style = wt;
1495
1511
  export {
1496
1512
  st as google_logo_icon,
1497
1513
  lt as microsoft_logo_icon,
1498
1514
  We as nylas_editor_tabs,
1499
1515
  qe as nylas_editor_tabs_group,
1500
- Ye as nylas_list_configurations,
1501
- Ke as nylas_select_event_type
1516
+ Ke as nylas_list_configurations,
1517
+ Ye as nylas_select_event_type
1502
1518
  };