@nylas/web-elements 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 (165) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +179 -146
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4998 -4993
  3. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +4 -4
  4. package/dist/cjs/checkmark-icon_15.cjs.entry.js +4 -4
  5. package/dist/cjs/checkmark-icon_15.cjs.entry.js.map +1 -1
  6. package/dist/cjs/{constants-3b9fb535.js → constants-27331d2d.js} +1 -5
  7. package/dist/cjs/constants-27331d2d.js.map +1 -0
  8. package/dist/cjs/{customParseFormat-4dbd51f6.js → customParseFormat-22da9017.js} +2 -2
  9. package/dist/cjs/{customParseFormat-4dbd51f6.js.map → customParseFormat-22da9017.js.map} +1 -1
  10. package/dist/cjs/{feedbackSync-670798db.js → feedbackSync-adabe7d6.js} +2 -2
  11. package/dist/cjs/{feedbackSync-670798db.js.map → feedbackSync-adabe7d6.js.map} +1 -1
  12. package/dist/cjs/globe-icon_2.cjs.entry.js +3 -3
  13. package/dist/cjs/google-logo-icon_6.cjs.entry.js +49 -25
  14. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  15. package/dist/cjs/index.cjs.js +2 -2
  16. package/dist/cjs/{index.es-cbc1ecb6.js → index.es-7848228a.js} +2 -2
  17. package/dist/cjs/{index.es-cbc1ecb6.js.map → index.es-7848228a.js.map} +1 -1
  18. package/dist/cjs/input-component.cjs.entry.js +1 -1
  19. package/dist/cjs/input-dropdown_2.cjs.entry.js +2 -2
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/multi-select-dropdown_2.cjs.entry.js +1 -1
  22. package/dist/cjs/{nylas-api-request-af6121b4.js → nylas-api-request-976db0f4.js} +2 -2
  23. package/dist/cjs/{nylas-api-request-af6121b4.js.map → nylas-api-request-976db0f4.js.map} +1 -1
  24. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +3 -3
  25. package/dist/cjs/nylas-event-calendar_3.cjs.entry.js +4 -4
  26. package/dist/cjs/nylas-form-card.cjs.entry.js +2 -2
  27. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +22 -16
  28. package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
  29. package/dist/cjs/nylas-scheduling.cjs.entry.js +7 -7
  30. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  31. package/dist/cjs/{register-component-5e87c463.js → register-component-d2f37e40.js} +2 -2
  32. package/dist/cjs/{register-component-5e87c463.js.map → register-component-d2f37e40.js.map} +1 -1
  33. package/dist/cjs/textarea-component.cjs.entry.js +1 -1
  34. package/dist/cjs/{utils-0dfca9ec.js → utils-d522ef01.js} +10 -1
  35. package/dist/cjs/utils-d522ef01.js.map +1 -0
  36. package/dist/collection/common/constants.js +0 -1
  37. package/dist/collection/common/constants.js.map +1 -1
  38. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +1 -1
  39. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +6 -7
  40. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  41. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js +1 -1
  42. package/dist/collection/components/scheduler-editor/nylas-event-description/nylas-event-description.js.map +1 -1
  43. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js +6 -3
  44. package/dist/collection/components/scheduler-editor/nylas-list-configurations/nylas-list-configurations.js.map +1 -1
  45. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/ExpressFlow.js +4 -5
  46. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/ExpressFlow.js.map +1 -1
  47. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.css +0 -8
  48. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js +43 -10
  49. package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.js.map +1 -1
  50. package/dist/collection/components/scheduler-editor/nylas-select-event-type/nylas-select-event-type.js +52 -7
  51. package/dist/collection/components/scheduler-editor/nylas-select-event-type/nylas-select-event-type.js.map +1 -1
  52. package/dist/collection/components/scheduler-editor/nylas-timeslot-interval/nylas-timeslot-interval.js +1 -1
  53. package/dist/collection/stores/scheduler-config-store.js.map +1 -1
  54. package/dist/components/constants.js +1 -5
  55. package/dist/components/constants.js.map +1 -1
  56. package/dist/components/nylas-editor-tabs-group2.js +8 -9
  57. package/dist/components/nylas-editor-tabs-group2.js.map +1 -1
  58. package/dist/components/nylas-editor-tabs2.js +2 -2
  59. package/dist/components/nylas-event-description2.js +1 -1
  60. package/dist/components/nylas-event-description2.js.map +1 -1
  61. package/dist/components/nylas-list-configurations2.js +6 -3
  62. package/dist/components/nylas-list-configurations2.js.map +1 -1
  63. package/dist/components/nylas-scheduler-editor.js +22 -14
  64. package/dist/components/nylas-scheduler-editor.js.map +1 -1
  65. package/dist/components/nylas-scheduling.js +3 -3
  66. package/dist/components/nylas-select-event-type2.js +32 -8
  67. package/dist/components/nylas-select-event-type2.js.map +1 -1
  68. package/dist/components/nylas-timeslot-interval2.js +1 -1
  69. package/dist/components/utils.js +9 -0
  70. package/dist/components/utils.js.map +1 -1
  71. package/dist/esm/calendar-agenda-fill-icon_36.entry.js +4 -4
  72. package/dist/esm/checkmark-icon_15.entry.js +4 -4
  73. package/dist/esm/checkmark-icon_15.entry.js.map +1 -1
  74. package/dist/esm/{constants-3d8016e3.js → constants-f51538ef.js} +2 -6
  75. package/dist/esm/constants-f51538ef.js.map +1 -0
  76. package/dist/esm/{customParseFormat-129be926.js → customParseFormat-d1de5ed0.js} +2 -2
  77. package/dist/esm/{customParseFormat-129be926.js.map → customParseFormat-d1de5ed0.js.map} +1 -1
  78. package/dist/esm/{feedbackSync-d943ffc7.js → feedbackSync-172f942c.js} +2 -2
  79. package/dist/esm/{feedbackSync-d943ffc7.js.map → feedbackSync-172f942c.js.map} +1 -1
  80. package/dist/esm/globe-icon_2.entry.js +3 -3
  81. package/dist/esm/google-logo-icon_6.entry.js +49 -25
  82. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  83. package/dist/esm/{index.es-4615d47c.js → index.es-fc8588de.js} +2 -2
  84. package/dist/esm/{index.es-4615d47c.js.map → index.es-fc8588de.js.map} +1 -1
  85. package/dist/esm/index.js +2 -2
  86. package/dist/esm/input-component.entry.js +1 -1
  87. package/dist/esm/input-dropdown_2.entry.js +2 -2
  88. package/dist/esm/loader.js +1 -1
  89. package/dist/esm/multi-select-dropdown_2.entry.js +1 -1
  90. package/dist/esm/{nylas-api-request-acf12b47.js → nylas-api-request-3d7ced61.js} +2 -2
  91. package/dist/esm/{nylas-api-request-acf12b47.js.map → nylas-api-request-3d7ced61.js.map} +1 -1
  92. package/dist/esm/nylas-booked-event-card_12.entry.js +3 -3
  93. package/dist/esm/nylas-event-calendar_3.entry.js +4 -4
  94. package/dist/esm/nylas-form-card.entry.js +2 -2
  95. package/dist/esm/nylas-scheduler-editor.entry.js +22 -16
  96. package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
  97. package/dist/esm/nylas-scheduling.entry.js +7 -7
  98. package/dist/esm/nylas-web-elements.js +1 -1
  99. package/dist/esm/{register-component-083eb961.js → register-component-62d792d4.js} +2 -2
  100. package/dist/esm/{register-component-083eb961.js.map → register-component-62d792d4.js.map} +1 -1
  101. package/dist/esm/textarea-component.entry.js +1 -1
  102. package/dist/esm/{utils-6c05ecaf.js → utils-bb88dd4d.js} +10 -1
  103. package/dist/esm/utils-bb88dd4d.js.map +1 -0
  104. package/dist/nylas-web-elements/index.esm.js +1 -1
  105. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  106. package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
  107. package/dist/nylas-web-elements/{p-865721fd.entry.js → p-05204c68.entry.js} +2 -2
  108. package/dist/nylas-web-elements/{p-2b38054f.entry.js → p-0d422938.entry.js} +2 -2
  109. package/dist/nylas-web-elements/{p-c59787f4.js → p-0d6ecada.js} +2 -2
  110. package/dist/nylas-web-elements/{p-e2632a60.js → p-198f05a6.js} +2 -2
  111. package/dist/nylas-web-elements/p-1d8c55c6.entry.js +11 -0
  112. package/dist/nylas-web-elements/p-1d8c55c6.entry.js.map +1 -0
  113. package/dist/nylas-web-elements/{p-4e1e01e4.entry.js → p-29f601d9.entry.js} +2 -2
  114. package/dist/nylas-web-elements/{p-60b48bf7.js → p-3a3c5e17.js} +2 -2
  115. package/dist/nylas-web-elements/{p-6bb6a0b8.entry.js → p-447837c2.entry.js} +2 -2
  116. package/dist/nylas-web-elements/{p-faa723fc.entry.js → p-49c8d4d9.entry.js} +2 -2
  117. package/dist/nylas-web-elements/p-49c8d4d9.entry.js.map +1 -0
  118. package/dist/nylas-web-elements/p-7e885253.js +2 -0
  119. package/dist/nylas-web-elements/p-7e885253.js.map +1 -0
  120. package/dist/nylas-web-elements/{p-3cc1072e.js → p-84109239.js} +2 -2
  121. package/dist/nylas-web-elements/{p-d16cd88b.entry.js → p-a7d2a211.entry.js} +2 -2
  122. package/dist/nylas-web-elements/{p-bea31f39.entry.js → p-a9107606.entry.js} +2 -2
  123. package/dist/nylas-web-elements/p-a9107606.entry.js.map +1 -0
  124. package/dist/nylas-web-elements/{p-a9a0dd64.entry.js → p-ab96941e.entry.js} +2 -2
  125. package/dist/nylas-web-elements/{p-6fc7d11b.entry.js → p-af94512e.entry.js} +3 -3
  126. package/dist/nylas-web-elements/{p-bfe2bdbd.js → p-b3ca5d4d.js} +2 -2
  127. package/dist/nylas-web-elements/{p-80d57b5a.entry.js → p-cd24a45e.entry.js} +2 -2
  128. package/dist/nylas-web-elements/{p-6364eb02.entry.js → p-e9369c76.entry.js} +2 -2
  129. package/dist/nylas-web-elements/{p-b2241c3c.entry.js → p-f00d1bb3.entry.js} +2 -2
  130. package/dist/nylas-web-elements/p-f73e34dd.js +14 -0
  131. package/dist/nylas-web-elements/{p-2b97a896.js.map → p-f73e34dd.js.map} +1 -1
  132. package/dist/types/common/constants.d.ts +216 -1
  133. package/dist/types/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.d.ts +0 -2
  134. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/ExpressFlow.d.ts +1 -2
  135. package/dist/types/components/scheduler-editor/nylas-scheduler-editor/nylas-scheduler-editor.d.ts +3 -1
  136. package/dist/types/components/scheduler-editor/nylas-select-event-type/nylas-select-event-type.d.ts +2 -1
  137. package/dist/types/components.d.ts +18 -2
  138. package/dist/types/stores/scheduler-config-store.d.ts +2 -1
  139. package/package.json +1 -1
  140. package/dist/cjs/constants-3b9fb535.js.map +0 -1
  141. package/dist/cjs/utils-0dfca9ec.js.map +0 -1
  142. package/dist/esm/constants-3d8016e3.js.map +0 -1
  143. package/dist/esm/utils-6c05ecaf.js.map +0 -1
  144. package/dist/nylas-web-elements/p-2b97a896.js +0 -14
  145. package/dist/nylas-web-elements/p-35b7d082.entry.js +0 -11
  146. package/dist/nylas-web-elements/p-35b7d082.entry.js.map +0 -1
  147. package/dist/nylas-web-elements/p-6f7cb609.js +0 -2
  148. package/dist/nylas-web-elements/p-6f7cb609.js.map +0 -1
  149. package/dist/nylas-web-elements/p-bea31f39.entry.js.map +0 -1
  150. package/dist/nylas-web-elements/p-faa723fc.entry.js.map +0 -1
  151. /package/dist/nylas-web-elements/{p-865721fd.entry.js.map → p-05204c68.entry.js.map} +0 -0
  152. /package/dist/nylas-web-elements/{p-2b38054f.entry.js.map → p-0d422938.entry.js.map} +0 -0
  153. /package/dist/nylas-web-elements/{p-c59787f4.js.map → p-0d6ecada.js.map} +0 -0
  154. /package/dist/nylas-web-elements/{p-e2632a60.js.map → p-198f05a6.js.map} +0 -0
  155. /package/dist/nylas-web-elements/{p-4e1e01e4.entry.js.map → p-29f601d9.entry.js.map} +0 -0
  156. /package/dist/nylas-web-elements/{p-60b48bf7.js.map → p-3a3c5e17.js.map} +0 -0
  157. /package/dist/nylas-web-elements/{p-6bb6a0b8.entry.js.map → p-447837c2.entry.js.map} +0 -0
  158. /package/dist/nylas-web-elements/{p-3cc1072e.js.map → p-84109239.js.map} +0 -0
  159. /package/dist/nylas-web-elements/{p-d16cd88b.entry.js.map → p-a7d2a211.entry.js.map} +0 -0
  160. /package/dist/nylas-web-elements/{p-a9a0dd64.entry.js.map → p-ab96941e.entry.js.map} +0 -0
  161. /package/dist/nylas-web-elements/{p-6fc7d11b.entry.js.map → p-af94512e.entry.js.map} +0 -0
  162. /package/dist/nylas-web-elements/{p-bfe2bdbd.js.map → p-b3ca5d4d.js.map} +0 -0
  163. /package/dist/nylas-web-elements/{p-80d57b5a.entry.js.map → p-cd24a45e.entry.js.map} +0 -0
  164. /package/dist/nylas-web-elements/{p-6364eb02.entry.js.map → p-e9369c76.entry.js.map} +0 -0
  165. /package/dist/nylas-web-elements/{p-b2241c3c.entry.js.map → p-f00d1bb3.entry.js.map} +0 -0
@@ -1578,11 +1578,11 @@ var dayjs_min = { exports: {} };
1578
1578
  }, Ci.valueOf = function() {
1579
1579
  return this.$d.getTime();
1580
1580
  }, Ci.startOf = function(fi, ki) {
1581
- var bi = this, Ti = !!$i.u(ki) || ki, xi = $i.p(fi), Ai = function(Bi, Ni) {
1582
- var ji = $i.w(bi.$u ? Date.UTC(bi.$y, Ni, Bi) : new Date(bi.$y, Ni, Bi), bi);
1583
- return Ti ? ji : ji.endOf(ni);
1584
- }, Di = function(Bi, Ni) {
1585
- return $i.w(bi.toDate()[Bi].apply(bi.toDate("s"), (Ti ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ni)), bi);
1581
+ var bi = this, Ti = !!$i.u(ki) || ki, xi = $i.p(fi), Ai = function(Bi, Hi) {
1582
+ var zi = $i.w(bi.$u ? Date.UTC(bi.$y, Hi, Bi) : new Date(bi.$y, Hi, Bi), bi);
1583
+ return Ti ? zi : zi.endOf(ni);
1584
+ }, Di = function(Bi, Hi) {
1585
+ return $i.w(bi.toDate()[Bi].apply(bi.toDate("s"), (Ti ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Hi)), bi);
1586
1586
  }, Ri = this.$W, Mi = this.$M, Ii = this.$D, Pi = "set" + (this.$u ? "UTC" : "");
1587
1587
  switch (xi) {
1588
1588
  case oi:
@@ -1590,8 +1590,8 @@ var dayjs_min = { exports: {} };
1590
1590
  case ai:
1591
1591
  return Ti ? Ai(1, Mi) : Ai(0, Mi + 1);
1592
1592
  case ii:
1593
- var Li = this.$locale().weekStart || 0, Fi = (Ri < Li ? Ri + 7 : Ri) - Li;
1594
- return Ai(Ti ? Ii - Fi : Ii + (6 - Fi), Mi);
1593
+ var Li = this.$locale().weekStart || 0, Ni = (Ri < Li ? Ri + 7 : Ri) - Li;
1594
+ return Ai(Ti ? Ii - Ni : Ii + (6 - Ni), Mi);
1595
1595
  case ni:
1596
1596
  case si:
1597
1597
  return Di(Pi + "Hours", 0);
@@ -1635,16 +1635,16 @@ var dayjs_min = { exports: {} };
1635
1635
  }, Ci.format = function(fi) {
1636
1636
  var ki = this, bi = this.$locale();
1637
1637
  if (!this.isValid()) return bi.invalidDate || li;
1638
- var Ti = fi || "YYYY-MM-DDTHH:mm:ssZ", xi = $i.z(this), Ai = this.$H, Di = this.$m, Ri = this.$M, Mi = bi.weekdays, Ii = bi.months, Pi = function(Ni, ji, qi, Oi) {
1639
- return Ni && (Ni[ji] || Ni(ki, Ti)) || qi[ji].slice(0, Oi);
1640
- }, Li = function(Ni) {
1641
- return $i.s(Ai % 12 || 12, Ni, "0");
1642
- }, Fi = bi.meridiem || function(Ni, ji, qi) {
1643
- var Oi = Ni < 12 ? "AM" : "PM";
1638
+ var Ti = fi || "YYYY-MM-DDTHH:mm:ssZ", xi = $i.z(this), Ai = this.$H, Di = this.$m, Ri = this.$M, Mi = bi.weekdays, Ii = bi.months, Pi = function(Hi, zi, qi, Oi) {
1639
+ return Hi && (Hi[zi] || Hi(ki, Ti)) || qi[zi].slice(0, Oi);
1640
+ }, Li = function(Hi) {
1641
+ return $i.s(Ai % 12 || 12, Hi, "0");
1642
+ }, Ni = bi.meridiem || function(Hi, zi, qi) {
1643
+ var Oi = Hi < 12 ? "AM" : "PM";
1644
1644
  return qi ? Oi.toLowerCase() : Oi;
1645
- }, Bi = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Ri + 1, MM: $i.s(Ri + 1, 2, "0"), MMM: Pi(bi.monthsShort, Ri, Ii, 3), MMMM: Pi(Ii, Ri), D: this.$D, DD: $i.s(this.$D, 2, "0"), d: String(this.$W), dd: Pi(bi.weekdaysMin, this.$W, Mi, 2), ddd: Pi(bi.weekdaysShort, this.$W, Mi, 3), dddd: Mi[this.$W], H: String(Ai), HH: $i.s(Ai, 2, "0"), h: Li(1), hh: Li(2), a: Fi(Ai, Di, !0), A: Fi(Ai, Di, !1), m: String(Di), mm: $i.s(Di, 2, "0"), s: String(this.$s), ss: $i.s(this.$s, 2, "0"), SSS: $i.s(this.$ms, 3, "0"), Z: xi };
1646
- return Ti.replace(di, function(Ni, ji) {
1647
- return ji || Bi[Ni] || xi.replace(":", "");
1645
+ }, Bi = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Ri + 1, MM: $i.s(Ri + 1, 2, "0"), MMM: Pi(bi.monthsShort, Ri, Ii, 3), MMMM: Pi(Ii, Ri), D: this.$D, DD: $i.s(this.$D, 2, "0"), d: String(this.$W), dd: Pi(bi.weekdaysMin, this.$W, Mi, 2), ddd: Pi(bi.weekdaysShort, this.$W, Mi, 3), dddd: Mi[this.$W], H: String(Ai), HH: $i.s(Ai, 2, "0"), h: Li(1), hh: Li(2), a: Ni(Ai, Di, !0), A: Ni(Ai, Di, !1), m: String(Di), mm: $i.s(Di, 2, "0"), s: String(this.$s), ss: $i.s(this.$s, 2, "0"), SSS: $i.s(this.$ms, 3, "0"), Z: xi };
1646
+ return Ti.replace(di, function(Hi, zi) {
1647
+ return zi || Bi[Hi] || xi.replace(":", "");
1648
1648
  });
1649
1649
  }, Ci.utcOffset = function() {
1650
1650
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -5368,6 +5368,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
5368
5368
  returnToAllSchedulingPages: "Return to all scheduling pages",
5369
5369
  createEventHeaderTitle: "Create an event",
5370
5370
  eventTypeHeaderTitle: "Event type",
5371
+ noEventTypesEnabled: "No event types enabled",
5371
5372
  eventTypeOptions: {
5372
5373
  oneOnOne: {
5373
5374
  label: "1:1",
@@ -6160,6 +6161,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
6160
6161
  returnToAllSchedulingPages: "Retour à toutes les pages de planification",
6161
6162
  createEventHeaderTitle: "Créer un événement",
6162
6163
  eventTypeHeaderTitle: "Type d'événement",
6164
+ noEventTypesEnabled: "Aucun type d'événement activé",
6163
6165
  eventTypeOptions: {
6164
6166
  oneOnOne: {
6165
6167
  label: "1:1",
@@ -6952,6 +6954,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
6952
6954
  returnToAllSchedulingPages: "Volver a todas las páginas de programación",
6953
6955
  createEventHeaderTitle: "Crear un evento",
6954
6956
  eventTypeHeaderTitle: "Tipo de evento",
6957
+ noEventTypesEnabled: "No hay tipos de evento habilitados",
6955
6958
  eventTypeOptions: {
6956
6959
  oneOnOne: {
6957
6960
  label: "1:1",
@@ -7744,6 +7747,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
7744
7747
  returnToAllSchedulingPages: "すべてのスケジュールページに戻る",
7745
7748
  createEventHeaderTitle: "イベントを作成する",
7746
7749
  eventTypeHeaderTitle: "イベントの種類",
7750
+ noEventTypesEnabled: "イベントの種類が有効化されていません",
7747
7751
  eventTypeOptions: {
7748
7752
  oneOnOne: {
7749
7753
  label: "1:1",
@@ -8536,6 +8540,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
8536
8540
  returnToAllSchedulingPages: "Zurück zur Planungsseite",
8537
8541
  createEventHeaderTitle: "Ereignis erstellen",
8538
8542
  eventTypeHeaderTitle: "Ereignisart",
8543
+ noEventTypesEnabled: "Keine Ereignisarten aktiviert",
8539
8544
  eventTypeOptions: {
8540
8545
  oneOnOne: {
8541
8546
  label: "1:1",
@@ -9327,6 +9332,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
9327
9332
  returnToAllSchedulingPages: "Tillbaka till alla schemaläggningssidor",
9328
9333
  createEventHeaderTitle: "Skapa ett evenemang",
9329
9334
  eventTypeHeaderTitle: "Evenemangstyp",
9335
+ noEventTypesEnabled: "Inga evenemangstyper aktiverade",
9330
9336
  eventTypeOptions: {
9331
9337
  oneOnOne: {
9332
9338
  label: "1:1",
@@ -10116,6 +10122,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
10116
10122
  returnToAllSchedulingPages: "返回所有日程安排页面",
10117
10123
  createEventHeaderTitle: "创建活动",
10118
10124
  eventTypeHeaderTitle: "活动类型",
10125
+ noEventTypesEnabled: "没有活动类型启用",
10119
10126
  eventTypeOptions: {
10120
10127
  oneOnOne: {
10121
10128
  label: "1:1",
@@ -10905,6 +10912,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
10905
10912
  returnToAllSchedulingPages: "Terug naar alle planningspagina's",
10906
10913
  createEventHeaderTitle: "Evenement maken",
10907
10914
  eventTypeHeaderTitle: "Evenementtype",
10915
+ noEventTypesEnabled: "Geen evenementtypen ingeschakeld",
10908
10916
  eventTypeOptions: {
10909
10917
  oneOnOne: {
10910
10918
  label: "1:1",
@@ -11694,6 +11702,7 @@ const noDateSelected$8 = "No date selected", rescheduleTitle$8 = "Choose another
11694
11702
  returnToAllSchedulingPages: "모든 스케줄링 페이지로 돌아가기",
11695
11703
  createEventHeaderTitle: "이벤트 만들기",
11696
11704
  eventTypeHeaderTitle: "이벤트 유형",
11705
+ noEventTypesEnabled: "이벤트 유형이 활성화되지 않았습니다.",
11697
11706
  eventTypeOptions: {
11698
11707
  oneOnOne: {
11699
11708
  label: "1:1",
@@ -16547,8 +16556,8 @@ and ensure you are accounting for this risk.
16547
16556
  let Pi = "";
16548
16557
  if (Ii.multiple === !0) {
16549
16558
  const Li = Di.split(" ");
16550
- for (const Fi of Li)
16551
- Ii.values.indexOf(Fi) !== -1 && (Pi === "" ? Pi = Fi : Pi += " " + Fi);
16559
+ for (const Ni of Li)
16560
+ Ii.values.indexOf(Ni) !== -1 && (Pi === "" ? Pi = Ni : Pi += " " + Ni);
16552
16561
  } else Ii.values.indexOf(Di) >= 0 && (Pi = Di);
16553
16562
  Di = Pi;
16554
16563
  }
@@ -16565,10 +16574,10 @@ and ensure you are accounting for this risk.
16565
16574
  if (ue.allowedScriptHostnames || ue.allowedScriptDomains) {
16566
16575
  const Li = (ue.allowedScriptHostnames || []).find(function(Bi) {
16567
16576
  return Bi === Pi.url.hostname;
16568
- }), Fi = (ue.allowedScriptDomains || []).find(function(Bi) {
16577
+ }), Ni = (ue.allowedScriptDomains || []).find(function(Bi) {
16569
16578
  return Pi.url.hostname === Bi || Pi.url.hostname.endsWith(`.${Bi}`);
16570
16579
  });
16571
- Ii = Li || Fi;
16580
+ Ii = Li || Ni;
16572
16581
  }
16573
16582
  } catch {
16574
16583
  Ii = !1;
@@ -16587,10 +16596,10 @@ and ensure you are accounting for this risk.
16587
16596
  else if (ue.allowedIframeHostnames || ue.allowedIframeDomains) {
16588
16597
  const Li = (ue.allowedIframeHostnames || []).find(function(Bi) {
16589
16598
  return Bi === Pi.url.hostname;
16590
- }), Fi = (ue.allowedIframeDomains || []).find(function(Bi) {
16599
+ }), Ni = (ue.allowedIframeDomains || []).find(function(Bi) {
16591
16600
  return Pi.url.hostname === Bi || Pi.url.hostname.endsWith(`.${Bi}`);
16592
16601
  });
16593
- Ii = Li || Fi;
16602
+ Ii = Li || Ni;
16594
16603
  }
16595
16604
  } catch {
16596
16605
  Ii = !1;
@@ -16620,13 +16629,13 @@ and ensure you are accounting for this risk.
16620
16629
  return;
16621
16630
  }
16622
16631
  if (Ri === "class") {
16623
- const Ii = ii[fi], Pi = ii["*"], Li = ai[fi], Fi = ri[fi], Bi = ai["*"], Ni = [
16632
+ const Ii = ii[fi], Pi = ii["*"], Li = ai[fi], Ni = ri[fi], Bi = ai["*"], Hi = [
16624
16633
  Li,
16625
16634
  Bi
16626
- ].concat(Fi).filter(function(ji) {
16627
- return ji;
16635
+ ].concat(Ni).filter(function(zi) {
16636
+ return zi;
16628
16637
  });
16629
- if (Ii && Pi ? Di = Ci(Di, deepmerge(Ii, Pi), Ni) : Di = Ci(Di, Ii || Pi, Ni), !Di.length) {
16638
+ if (Ii && Pi ? Di = Ci(Di, deepmerge(Ii, Pi), Hi) : Di = Ci(Di, Ii || Pi, Hi), !Di.length) {
16630
16639
  delete bi.attribs[Ri];
16631
16640
  return;
16632
16641
  }
@@ -20648,10 +20657,6 @@ const TIME_PERIODS = [
20648
20657
  { label: "month", value: "month" },
20649
20658
  { label: "year", value: "year" }
20650
20659
  ];
20651
- var EXPERIMENTAL_FEATURES;
20652
- (function(ve) {
20653
- ve.group_events = "group_events";
20654
- })(EXPERIMENTAL_FEATURES || (EXPERIMENTAL_FEATURES = {}));
20655
20660
  var CONFIGURATION_EVENT_TYPE;
20656
20661
  (function(ve) {
20657
20662
  ve.one_on_one = "one-on-one", ve.collective = "collective", ve.max_fairness = "max-fairness", ve.max_availability = "max-availability", ve.group = "group";
@@ -23376,10 +23381,10 @@ var customParseFormat$1 = { exports: {} };
23376
23381
  $i && (_i = Ei[2]), ei = this.$locale(), !mi && _i && (ei = di.Ls[_i]), this.$d = function(ki, bi, Ti) {
23377
23382
  try {
23378
23383
  if (["x", "X"].indexOf(bi) > -1) return new Date((bi === "X" ? 1e3 : 1) * ki);
23379
- var xi = si(bi)(ki), Ai = xi.year, Di = xi.month, Ri = xi.day, Mi = xi.hours, Ii = xi.minutes, Pi = xi.seconds, Li = xi.milliseconds, Fi = xi.zone, Bi = /* @__PURE__ */ new Date(), Ni = Ri || (Ai || Di ? 1 : Bi.getDate()), ji = Ai || Bi.getFullYear(), qi = 0;
23384
+ var xi = si(bi)(ki), Ai = xi.year, Di = xi.month, Ri = xi.day, Mi = xi.hours, Ii = xi.minutes, Pi = xi.seconds, Li = xi.milliseconds, Ni = xi.zone, Bi = /* @__PURE__ */ new Date(), Hi = Ri || (Ai || Di ? 1 : Bi.getDate()), zi = Ai || Bi.getFullYear(), qi = 0;
23380
23385
  Ai && !Di || (qi = Di > 0 ? Di - 1 : Bi.getMonth());
23381
- var Oi = Mi || 0, Ui = Ii || 0, Gi = Pi || 0, zi = Li || 0;
23382
- return Fi ? new Date(Date.UTC(ji, qi, Ni, Oi, Ui, Gi, zi + 60 * Fi.offset * 1e3)) : Ti ? new Date(Date.UTC(ji, qi, Ni, Oi, Ui, Gi, zi)) : new Date(ji, qi, Ni, Oi, Ui, Gi, zi);
23386
+ var Oi = Mi || 0, Fi = Ii || 0, Gi = Pi || 0, ji = Li || 0;
23387
+ return Ni ? new Date(Date.UTC(zi, qi, Hi, Oi, Fi, Gi, ji + 60 * Ni.offset * 1e3)) : Ti ? new Date(Date.UTC(zi, qi, Hi, Oi, Fi, Gi, ji)) : new Date(zi, qi, Hi, Oi, Fi, Gi, ji);
23383
23388
  } catch {
23384
23389
  return /* @__PURE__ */ new Date("");
23385
23390
  }
@@ -28042,7 +28047,7 @@ const NylasEventDescription = proxyCustomElement(class extends H$4 {
28042
28047
  }
28043
28048
  render() {
28044
28049
  var ue;
28045
- return h$3(Host, { key: "22675b5fed7bbca517109629eae72cbcc92b21a9" }, h$3("div", { key: "16c888f9635a3d6a40e1caaa98a032044a29abe1", class: "nylas-event-description", part: "nedesc" }, h$3("label", { key: "05f549d01ea2477c208c4e27f41ae7c5d3487ce9", htmlFor: "description" }, instance.t("nylasEventDescription.headerTitle"), h$3("span", { key: "5355ed1517f58fc6c07ce121be35998154a166cc", class: "label-icon" }, h$3("tooltip-component", { key: "2efa954b0f0ee944b5b88039d97d72fa0d3ec46e" }, h$3("info-icon", { key: "e6c02583a6668f0c25771183a7a11d4c0de87887", slot: "tooltip-icon" }), h$3("span", { key: "ff003ecf4ba64e385fc50edff5c4a621a3600e5e", slot: "tooltip-content" }, instance.t("nylasEventDescription.tooltip.desc"))))), h$3("div", { key: "296a0a0321ab1b1be9f3b6e89bcf9f58da8b6969", id: "event-description", class: { "event-description": !0 }, part: "nedesc__textarea", contentEditable: "true", onInput: (ge) => this.handleChange(ge), onKeyDown: (ge) => this.handleInputKeyDown(ge), ref: (ge) => this.descriptionRef = ge }), !this.noTemplates && this.showTokens && ((ue = this.filteredTokens) == null ? void 0 : ue.length) > 0 && h$3("div", { class: "token-options", part: "nedesc__dropdown-content" }, h$3("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((ge) => h$3("li", { tabindex: "0", key: ge.label, id: ge.label, class: { active: this.ariaActivedescendant === ge.label }, onClick: (Oe) => this.selectOption(Oe, ge), role: "option" }, this.getLabelHTML(ge.labelHTML))))), !this.noTemplates && h$3("span", { class: "help-text" }, instance.t("nylasEventTitle.helpText", { context: "start", field: instance.t("nylasEventTitle.description") }), " ", h$3("code", null, "$"), " ", instance.t("nylasEventTitle.helpText", { context: "end" }), h$3("span", { class: "label-icon" }, h$3("tooltip-component", null, h$3("info-icon", { slot: "tooltip-icon", width: "13", height: "13" }), h$3("span", { slot: "tooltip-content" }, instance.t("nylasEventTitle.tooltip.desc"), " ", h$3("code", null, "${invitee}"))))), !this.hideAutoPopulateButton && h$3("span", { class: "add-additional-fields" }, h$3("button-component", { variant: "basic", onClick: () => this.handleAddAdditionalFields() }, instance.t("nylasEventDescription.addAdditionalFields.buttonText")), h$3("span", { class: "label-icon" }, h$3("tooltip-component", null, h$3("info-icon", { slot: "tooltip-icon" }), h$3("span", { slot: "tooltip-content" }, instance.t("nylasEventDescription.addAdditionalFields.tooltip.desc"), " ", h$3("code", null, "${invitee}")))))));
28050
+ return h$3(Host, { key: "22675b5fed7bbca517109629eae72cbcc92b21a9" }, h$3("div", { key: "16c888f9635a3d6a40e1caaa98a032044a29abe1", class: "nylas-event-description", part: "nedesc" }, h$3("label", { key: "05f549d01ea2477c208c4e27f41ae7c5d3487ce9", htmlFor: "description" }, instance.t("nylasEventDescription.headerTitle"), h$3("span", { key: "5355ed1517f58fc6c07ce121be35998154a166cc", class: "label-icon" }, h$3("tooltip-component", { key: "2efa954b0f0ee944b5b88039d97d72fa0d3ec46e" }, h$3("info-icon", { key: "e6c02583a6668f0c25771183a7a11d4c0de87887", slot: "tooltip-icon" }), h$3("span", { key: "ff003ecf4ba64e385fc50edff5c4a621a3600e5e", slot: "tooltip-content" }, instance.t("nylasEventDescription.tooltip.desc"))))), h$3("div", { key: "296a0a0321ab1b1be9f3b6e89bcf9f58da8b6969", id: "event-description", class: { "event-description": !0 }, part: "nedesc__textarea", contentEditable: "true", onInput: (ge) => this.handleChange(ge), onKeyDown: (ge) => this.handleInputKeyDown(ge), ref: (ge) => this.descriptionRef = ge }), !this.noTemplates && this.showTokens && ((ue = this.filteredTokens) == null ? void 0 : ue.length) > 0 && h$3("div", { class: "token-options", part: "nedesc__dropdown-content" }, h$3("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((ge) => h$3("li", { tabindex: "0", key: ge.label, id: ge.label, class: { active: this.ariaActivedescendant === ge.label }, onClick: (Oe) => this.selectOption(Oe, ge), role: "option" }, this.getLabelHTML(ge.labelHTML))))), !this.noTemplates && h$3("span", { class: "help-text" }, instance.t("nylasEventTitle.helpText", { context: "start", field: instance.t("nylasEventTitle.description") }), " ", h$3("code", null, "$"), " ", instance.t("nylasEventTitle.helpText", { context: "end" }), h$3("span", { class: "label-icon" }, h$3("tooltip-component", null, h$3("info-icon", { slot: "tooltip-icon", width: "13", height: "13" }), h$3("span", { slot: "tooltip-content" }, instance.t("nylasEventTitle.tooltip.desc"), " ", h$3("code", null, "${invitee}"))))), !this.noTemplates && !this.hideAutoPopulateButton && h$3("span", { class: "add-additional-fields" }, h$3("button-component", { variant: "basic", onClick: () => this.handleAddAdditionalFields() }, instance.t("nylasEventDescription.addAdditionalFields.buttonText")), h$3("span", { class: "label-icon" }, h$3("tooltip-component", null, h$3("info-icon", { slot: "tooltip-icon" }), h$3("span", { slot: "tooltip-content" }, instance.t("nylasEventDescription.addAdditionalFields.tooltip.desc"), " ", h$3("code", null, "${invitee}")))))));
28046
28051
  }
28047
28052
  static get formAssociated() {
28048
28053
  return !0;
@@ -31144,7 +31149,7 @@ const defaultRoundToMinutes = 15, NylasTimeslotInterval = proxyCustomElement(cla
31144
31149
  { value: "45", label: `45 ${instance.t("nylasTimeslotInterval.minutesShort")}` },
31145
31150
  { value: "60", label: `60 ${instance.t("nylasTimeslotInterval.minutesShort")}` }
31146
31151
  ], ge = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? ue[0] : ue.find((Oe) => Oe.value == this.selectedInterval.toString()) ?? ue[0] : void 0;
31147
- return h$3(Host, { key: "ebcd942ae5ea4d5554d75f6a6b852fa9fceec2d5" }, h$3("div", { key: "2deef2c1f43d10e2933922822c443db9ce66524c", class: "nylas-timeslot-interval", part: "nti" }, h$3("div", { key: "c23c2c9d36b284777d2dd626ed3d8f6d3ff852ae", class: "header", part: "nti__header" }, h$3("h3", { key: "fd91593ab8990f1102f0a30cc6ca7534d2f22263" }, instance.t("nylasTimeslotInterval.headerTitle"))), h$3("div", { key: "a7d3228854d00f97c804084d01a5db799c7ae4c0", class: "nylas-timeslot-interval__dropdown" }, h$3("span", { key: "fb1249f674a32250c89fb626521ecaf5cd6bee2c", class: "label", part: "nti__input-label" }, instance.t("nylasTimeslotInterval.timeslotInterval.label")), (ge == null ? void 0 : ge.label) && h$3("select-dropdown", { name: "interval-minutes", options: ue, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: ge }), h$3("span", { key: "ba8e1488a672f7ca42b7858c70450e540bc6ed80", slot: "label", class: "label", part: "nti__input-label" }, instance.t("nylasTimeslotInterval.timeslotRounding.label"), h$3("tooltip-component", { key: "838f35198b817a1a68472bd4fdc4f1d3fbcf1507" }, h$3("info-icon", { key: "beecaae34fd7b52fe5c59e272b4201ad1cbd025e", slot: "tooltip-icon" }), h$3("span", { key: "9ac586565a85c7be0d81ee1f68331ffc45081452", slot: "tooltip-content" }, instance.t("nylasTimeslotInterval.timeslotRounding.tooltip.desc")))), this.componentLoaded && h$3("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
31152
+ return h$3(Host, { key: "a2922db89671698745b040e04ed4ade53cb97856" }, h$3("div", { key: "6123febcf83c4f4a6735f704852a0b49ef86b8ae", class: "nylas-timeslot-interval", part: "nti" }, h$3("div", { key: "28ae252bbb1c197cb2af8c2404868de4eefc3755", class: "header", part: "nti__header" }, h$3("h3", { key: "a0fa4565865befb21c24b19b0d6a3d35a2438e6a" }, instance.t("nylasTimeslotInterval.headerTitle"))), h$3("div", { key: "9afa7b8311718c155c5a67484f75be07ea1a499c", class: "nylas-timeslot-interval__dropdown" }, h$3("span", { key: "27de62640dc1d5eb143f0b3c2638974e863e7052", class: "label", part: "nti__input-label" }, instance.t("nylasTimeslotInterval.timeslotInterval.label")), (ge == null ? void 0 : ge.label) && h$3("select-dropdown", { name: "interval-minutes", options: ue, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: ge }), h$3("span", { key: "8221c77ef67c8186ce9f32ebf548c49938e2e2e1", slot: "label", class: "label", part: "nti__input-label" }, instance.t("nylasTimeslotInterval.timeslotRounding.label"), h$3("tooltip-component", { key: "75dc83d75698277295628af454b6129a135c8545" }, h$3("info-icon", { key: "7a8bd15f2d3579e854af3dadfcf93d2bc2142afb", slot: "tooltip-icon" }), h$3("span", { key: "0518fc031ef327b8d590e6b29cabdfcfbc473d50", slot: "tooltip-content" }, instance.t("nylasTimeslotInterval.timeslotRounding.tooltip.desc")))), this.componentLoaded && h$3("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
31148
31153
  {
31149
31154
  value: "no-rounding",
31150
31155
  label: instance.t("nylasTimeslotInterval.timeslotRoundingOptions.noRounding.label"),
@@ -35640,22 +35645,22 @@ const buildFeedbackIntegration = ({
35640
35645
  onFormSubmitted: Mi
35641
35646
  };
35642
35647
  let Pi = null, Li = [];
35643
- const Fi = (Oi) => {
35648
+ const Ni = (Oi) => {
35644
35649
  if (!Pi) {
35645
- const Ui = DOCUMENT.createElement("div");
35646
- Ui.id = String(Oi.id), DOCUMENT.body.appendChild(Ui), Pi = Ui.attachShadow({ mode: "open" }), Pi.appendChild(createMainStyles(Oi));
35650
+ const Fi = DOCUMENT.createElement("div");
35651
+ Fi.id = String(Oi.id), DOCUMENT.body.appendChild(Fi), Pi = Fi.attachShadow({ mode: "open" }), Pi.appendChild(createMainStyles(Oi));
35647
35652
  }
35648
35653
  return Pi;
35649
- }, Bi = async (Oi, Ui, Gi) => {
35650
- const zi = getClient(), Wi = zi && zi.getIntegrationByName(Oi);
35654
+ }, Bi = async (Oi, Fi, Gi) => {
35655
+ const ji = getClient(), Wi = ji && ji.getIntegrationByName(Oi);
35651
35656
  if (Wi)
35652
35657
  return Wi;
35653
- const Yi = (Ui && Ui() || await ve(Gi, li))();
35654
- return zi && zi.addIntegration(Yi), Yi;
35655
- }, Ni = async (Oi) => {
35656
- const Ui = Oi.enableScreenshot && isScreenshotSupported(), [Gi, zi] = await Promise.all([
35658
+ const Yi = (Fi && Fi() || await ve(Gi, li))();
35659
+ return ji && ji.addIntegration(Yi), Yi;
35660
+ }, Hi = async (Oi) => {
35661
+ const Fi = Oi.enableScreenshot && isScreenshotSupported(), [Gi, ji] = await Promise.all([
35657
35662
  Bi("FeedbackModal", ue, "feedbackModalIntegration"),
35658
- Ui ? Bi(
35663
+ Fi ? Bi(
35659
35664
  "FeedbackScreenshot",
35660
35665
  ge,
35661
35666
  "feedbackScreenshotIntegration"
@@ -35665,7 +35670,7 @@ const buildFeedbackIntegration = ({
35665
35670
  throw DEBUG_BUILD && logger.error(
35666
35671
  "[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."
35667
35672
  ), new Error("[Feedback] Missing feedback modal integration!");
35668
- Ui && !zi && DEBUG_BUILD && logger.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.");
35673
+ Fi && !ji && DEBUG_BUILD && logger.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.");
35669
35674
  const Wi = Gi.createDialog({
35670
35675
  options: {
35671
35676
  ...Oi,
@@ -35676,48 +35681,48 @@ const buildFeedbackIntegration = ({
35676
35681
  Wi && Wi.close(), Oi.onFormSubmitted && Oi.onFormSubmitted();
35677
35682
  }
35678
35683
  },
35679
- screenshotIntegration: Ui ? zi : void 0,
35684
+ screenshotIntegration: Fi ? ji : void 0,
35680
35685
  sendFeedback,
35681
- shadow: Fi(Oi)
35686
+ shadow: Ni(Oi)
35682
35687
  });
35683
35688
  return Wi;
35684
- }, ji = (Oi, Ui = {}) => {
35685
- const Gi = mergeOptions(Ii, Ui), zi = typeof Oi == "string" ? DOCUMENT.querySelector(Oi) : typeof Oi.addEventListener == "function" ? Oi : null;
35686
- if (!zi)
35689
+ }, zi = (Oi, Fi = {}) => {
35690
+ const Gi = mergeOptions(Ii, Fi), ji = typeof Oi == "string" ? DOCUMENT.querySelector(Oi) : typeof Oi.addEventListener == "function" ? Oi : null;
35691
+ if (!ji)
35687
35692
  throw DEBUG_BUILD && logger.error("[Feedback] Unable to attach to target element"), new Error("Unable to attach to target element");
35688
35693
  let Wi = null;
35689
35694
  const Ki = async () => {
35690
- Wi || (Wi = await Ni({
35695
+ Wi || (Wi = await Hi({
35691
35696
  ...Gi,
35692
35697
  onFormSubmitted: () => {
35693
35698
  Wi && Wi.removeFromDom(), Gi.onFormSubmitted && Gi.onFormSubmitted();
35694
35699
  }
35695
35700
  })), Wi.appendToDom(), Wi.open();
35696
35701
  };
35697
- zi.addEventListener("click", Ki);
35702
+ ji.addEventListener("click", Ki);
35698
35703
  const Yi = () => {
35699
- Li = Li.filter((Xi) => Xi !== Yi), Wi && Wi.removeFromDom(), Wi = null, zi.removeEventListener("click", Ki);
35704
+ Li = Li.filter((Ji) => Ji !== Yi), Wi && Wi.removeFromDom(), Wi = null, ji.removeEventListener("click", Ki);
35700
35705
  };
35701
35706
  return Li.push(Yi), Yi;
35702
35707
  }, qi = (Oi = {}) => {
35703
- const Ui = mergeOptions(Ii, Oi), Gi = Fi(Ui), zi = Actor({
35704
- triggerLabel: Ui.triggerLabel,
35705
- triggerAriaLabel: Ui.triggerAriaLabel,
35708
+ const Fi = mergeOptions(Ii, Oi), Gi = Ni(Fi), ji = Actor({
35709
+ triggerLabel: Fi.triggerLabel,
35710
+ triggerAriaLabel: Fi.triggerAriaLabel,
35706
35711
  shadow: Gi,
35707
35712
  styleNonce: si
35708
35713
  });
35709
- return ji(zi.el, {
35710
- ...Ui,
35714
+ return zi(ji.el, {
35715
+ ...Fi,
35711
35716
  onFormOpen() {
35712
- zi.hide();
35717
+ ji.hide();
35713
35718
  },
35714
35719
  onFormClose() {
35715
- zi.show();
35720
+ ji.show();
35716
35721
  },
35717
35722
  onFormSubmitted() {
35718
- zi.show();
35723
+ ji.show();
35719
35724
  }
35720
- }), zi;
35725
+ }), ji;
35721
35726
  };
35722
35727
  return {
35723
35728
  name: "Feedback",
@@ -35729,21 +35734,21 @@ const buildFeedbackIntegration = ({
35729
35734
  *
35730
35735
  * The returned function can be used to remove the click listener
35731
35736
  */
35732
- attachTo: ji,
35737
+ attachTo: zi,
35733
35738
  /**
35734
35739
  * Creates a new widget which is composed of a Button which triggers a Dialog.
35735
35740
  * Accepts partial options to override any options passed to constructor.
35736
35741
  */
35737
35742
  createWidget(Oi = {}) {
35738
- const Ui = qi(mergeOptions(Ii, Oi));
35739
- return Ui.appendToDom(), Ui;
35743
+ const Fi = qi(mergeOptions(Ii, Oi));
35744
+ return Fi.appendToDom(), Fi;
35740
35745
  },
35741
35746
  /**
35742
35747
  * Creates a new Form which you can
35743
35748
  * Accepts partial options to override any options passed to constructor.
35744
35749
  */
35745
35750
  async createForm(Oi = {}) {
35746
- return Ni(mergeOptions(Ii, Oi));
35751
+ return Hi(mergeOptions(Ii, Oi));
35747
35752
  },
35748
35753
  /**
35749
35754
  * Removes the Feedback integration (including host, shadow DOM, and all widgets)
@@ -37354,7 +37359,7 @@ var __decorate$6 = function(ve, ue, ge, Oe) {
37354
37359
  const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37355
37360
  constructor() {
37356
37361
  super(), this.__registerHost(), this.schedulerConfigChanged = createEvent(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = createEvent(this, "schedulerConfigCreated", 7), this.cancelButtonClick = createEvent(this, "cancelButtonClick", 7), this.formSubmitted = createEvent(this, "formSubmitted", 7), this.previewButtonClicked = createEvent(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = createEvent(this, "schedulerEditorFormUpdated", 7), this.formSubmissionHandler = async (ue) => {
37357
- var Ui, Gi, zi, Wi, Ki, Yi, Xi, Qi, ea, ta, na, ia, Zi, sa, la, ca, da;
37362
+ var Fi, Gi, ji, Wi, Ki, Yi, Ji, ta, na, ia, aa, ra, oa, sa, la, ca, da;
37358
37363
  ue.preventDefault();
37359
37364
  const ge = await this.formSubmitted.emit();
37360
37365
  if (debug("[nylas-editor-tabs]", "formSubmissionHandler", ge), !this.formRef.checkValidity() || ge.defaultPrevented) {
@@ -37364,7 +37369,7 @@ const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37364
37369
  this.isLoading = !0, this.hasUnsavedChanges = !1;
37365
37370
  const Ke = this.updateFormState();
37366
37371
  debug("[nylas-editor-tabs]", "formState", Ke);
37367
- const { title: vt, description: ln, duration: ei, availability: ti, bookingCalendar: ni, location: ii, bookingType: ai, buffer: ri, availableDaysInFuture: oi, minCancellationNotice: si, minBookingNotice: li, cancellationPolicy: ci, timeslotInterval: di, additionalGuestsHidden: ui, hideCancellationOptions: pi, hideReschedulingOptions: hi, participants: vi, participantOpenHours: yi, additionalFields: Ei, participantCalendars: Si, conferencing: mi, participantBookingCalendars: $i, reminders: gi, emailTemplate: _i, redirectUrl: wi, availabilityMethod: Ci, slug: fi, appearance: ki, name: bi, disableEmails: Ti, organizerLocale: xi } = Ke, Ai = ((Gi = (Ui = this.selectedConfiguration) == null ? void 0 : Ui.participants) == null ? void 0 : Gi.find((Hi) => Hi.is_organizer)) || (vi == null ? void 0 : vi.find((Hi) => Hi.is_organizer)), Di = Si && (Ai != null && Ai.email) ? Si[Ai == null ? void 0 : Ai.email] : [], Ri = ((zi = Ai == null ? void 0 : Ai.booking) == null ? void 0 : zi.calendar_id) || ni, Mi = ei ? parseInt(ei) : 30, Ii = vi && (vi == null ? void 0 : vi.length) > 0 ? vi : [
37372
+ const { title: vt, description: ln, duration: ei, availability: ti, bookingCalendar: ni, location: ii, bookingType: ai, buffer: ri, availableDaysInFuture: oi, minCancellationNotice: si, minBookingNotice: li, cancellationPolicy: ci, timeslotInterval: di, additionalGuestsHidden: ui, hideCancellationOptions: pi, hideReschedulingOptions: hi, participants: vi, participantOpenHours: yi, additionalFields: Ei, participantCalendars: Si, conferencing: mi, participantBookingCalendars: $i, reminders: gi, emailTemplate: _i, redirectUrl: wi, availabilityMethod: Ci, slug: fi, appearance: ki, name: bi, disableEmails: Ti, organizerLocale: xi } = Ke, Ai = ((Gi = (Fi = this.selectedConfiguration) == null ? void 0 : Fi.participants) == null ? void 0 : Gi.find((Ui) => Ui.is_organizer)) || (vi == null ? void 0 : vi.find((Ui) => Ui.is_organizer)), Di = Si && (Ai != null && Ai.email) ? Si[Ai == null ? void 0 : Ai.email] : [], Ri = ((ji = Ai == null ? void 0 : Ai.booking) == null ? void 0 : ji.calendar_id) || ni, Mi = ei ? parseInt(ei) : 30, Ii = vi && (vi == null ? void 0 : vi.length) > 0 ? vi : [
37368
37373
  {
37369
37374
  name: (Ai == null ? void 0 : Ai.name) ?? ((Wi = this.currentUser) == null ? void 0 : Wi.name) ?? "",
37370
37375
  email: (Ai == null ? void 0 : Ai.email) ?? ((Ki = this.currentUser) == null ? void 0 : Ki.email) ?? "",
@@ -37379,11 +37384,11 @@ const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37379
37384
  }
37380
37385
  }
37381
37386
  ];
37382
- let Pi = Ci || (((Qi = (Xi = (Yi = this.selectedConfiguration) == null ? void 0 : Yi.availability) == null ? void 0 : Xi.availability_rules) == null ? void 0 : Qi.availability_method) ?? "collective");
37387
+ let Pi = Ci || (((ta = (Ji = (Yi = this.selectedConfiguration) == null ? void 0 : Yi.availability) == null ? void 0 : Ji.availability_rules) == null ? void 0 : ta.availability_method) ?? "collective");
37383
37388
  this.selectedEventType && this.selectedEventType !== CONFIGURATION_EVENT_TYPE.group && (Pi = this.selectedEventType === CONFIGURATION_EVENT_TYPE.one_on_one ? CONFIGURATION_EVENT_TYPE.collective : this.selectedEventType), console.log("availabilityMethodSelected", Pi);
37384
37389
  const Li = {
37385
- ...((ea = this.selectedConfiguration) == null ? void 0 : ea.id) && { id: this.selectedConfiguration.id },
37386
- version: ((ta = this.selectedConfiguration) == null ? void 0 : ta.version) ?? "1.0.0",
37390
+ ...((na = this.selectedConfiguration) == null ? void 0 : na.id) && { id: this.selectedConfiguration.id },
37391
+ version: ((ia = this.selectedConfiguration) == null ? void 0 : ia.version) ?? "1.0.0",
37387
37392
  slug: fi,
37388
37393
  name: bi,
37389
37394
  availability: {
@@ -37393,39 +37398,39 @@ const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37393
37398
  availability_rules: {
37394
37399
  availability_method: Pi,
37395
37400
  buffer: ri || { before: 0, after: 0 },
37396
- default_open_hours: (ti == null ? void 0 : ti.openHours) ?? ((Zi = (ia = (na = this.selectedConfiguration) == null ? void 0 : na.availability) == null ? void 0 : ia.availability_rules) == null ? void 0 : Zi.default_open_hours) ?? DEFAULT_OPEN_HOURS,
37401
+ default_open_hours: (ti == null ? void 0 : ti.openHours) ?? ((oa = (ra = (aa = this.selectedConfiguration) == null ? void 0 : aa.availability) == null ? void 0 : ra.availability_rules) == null ? void 0 : oa.default_open_hours) ?? DEFAULT_OPEN_HOURS,
37397
37402
  round_robin_group_id: ((ca = (la = (sa = this.selectedConfiguration) == null ? void 0 : sa.availability) == null ? void 0 : la.availability_rules) == null ? void 0 : ca.round_robin_group_id) ?? ""
37398
37403
  }
37399
37404
  },
37400
37405
  participants: [
37401
- ...Ii ? Ii.map((Hi) => {
37406
+ ...Ii ? Ii.map((Ui) => {
37402
37407
  var ua, fa, ha, pa, ma, ga;
37403
- let Ji = (ti == null ? void 0 : ti.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
37404
- if ((ua = yi == null ? void 0 : yi[Hi.email]) != null && ua.length && (Ji = (ha = (fa = yi == null ? void 0 : yi[Hi.email]) == null ? void 0 : fa[0]) == null ? void 0 : ha.timezone), Hi.is_organizer) {
37405
- const ya = $i != null && $i[Hi.email] ? $i == null ? void 0 : $i[Hi.email] : Ri || "primary", oa = Si != null && Si[Hi.email] ? Si == null ? void 0 : Si[Hi.email] : Di != null && Di.length ? Di : ["primary"], va = oa.length === 1 && oa[0] === "primary";
37408
+ let Zi = (ti == null ? void 0 : ti.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
37409
+ if ((ua = yi == null ? void 0 : yi[Ui.email]) != null && ua.length && (Zi = (ha = (fa = yi == null ? void 0 : yi[Ui.email]) == null ? void 0 : fa[0]) == null ? void 0 : ha.timezone), Ui.is_organizer) {
37410
+ const ya = $i != null && $i[Ui.email] ? $i == null ? void 0 : $i[Ui.email] : Ri || "primary", ea = Si != null && Si[Ui.email] ? Si == null ? void 0 : Si[Ui.email] : Di != null && Di.length ? Di : ["primary"], va = ea.length === 1 && ea[0] === "primary";
37406
37411
  return {
37407
- name: Hi.name ?? "",
37408
- email: Hi.email,
37412
+ name: Ui.name ?? "",
37413
+ email: Ui.email,
37409
37414
  is_organizer: !0,
37410
- timezone: Ji,
37415
+ timezone: Zi,
37411
37416
  availability: {
37412
- calendar_ids: va ? [ya] : oa,
37413
- open_hours: (yi == null ? void 0 : yi[Hi.email]) ?? ((pa = Hi.availability) == null ? void 0 : pa.open_hours) ?? []
37417
+ calendar_ids: va ? [ya] : ea,
37418
+ open_hours: (yi == null ? void 0 : yi[Ui.email]) ?? ((pa = Ui.availability) == null ? void 0 : pa.open_hours) ?? []
37414
37419
  },
37415
37420
  booking: {
37416
37421
  calendar_id: ya
37417
37422
  }
37418
37423
  };
37419
37424
  }
37420
- const aa = $i != null && $i[Hi.email] ? { calendar_id: $i == null ? void 0 : $i[Hi.email] } : (Hi == null ? void 0 : Hi.booking) ?? void 0, ra = (Si == null ? void 0 : Si[Hi.email]) ?? ((ma = Hi.availability) == null ? void 0 : ma.calendar_ids) ?? ["primary"], ba = ra.length === 1 && ra[0] === "primary";
37425
+ const Xi = $i != null && $i[Ui.email] ? { calendar_id: $i == null ? void 0 : $i[Ui.email] } : (Ui == null ? void 0 : Ui.booking) ?? void 0, Qi = (Si == null ? void 0 : Si[Ui.email]) ?? ((ma = Ui.availability) == null ? void 0 : ma.calendar_ids) ?? ["primary"], ba = Qi.length === 1 && Qi[0] === "primary";
37421
37426
  return {
37422
- ...Hi,
37423
- timezone: Ji,
37424
- availability: Hi.availability ? {
37425
- calendar_ids: ba && typeof aa < "u" ? [aa == null ? void 0 : aa.calendar_id] : ra,
37426
- open_hours: (yi == null ? void 0 : yi[Hi.email]) ?? ((ga = Hi.availability) == null ? void 0 : ga.open_hours) ?? []
37427
+ ...Ui,
37428
+ timezone: Zi,
37429
+ availability: Ui.availability ? {
37430
+ calendar_ids: ba && typeof Xi < "u" ? [Xi == null ? void 0 : Xi.calendar_id] : Qi,
37431
+ open_hours: (yi == null ? void 0 : yi[Ui.email]) ?? ((ga = Ui.availability) == null ? void 0 : ga.open_hours) ?? []
37427
37432
  } : void 0,
37428
- booking: aa
37433
+ booking: Xi
37429
37434
  };
37430
37435
  }) : []
37431
37436
  ],
@@ -37456,17 +37461,17 @@ const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37456
37461
  confirmation_redirect_url: wi
37457
37462
  },
37458
37463
  appearance: ki
37459
- }, Fi = mergeDeep(this.selectedConfiguration, Li || {}), Bi = this.action === "create" ? Fi : Li;
37460
- this.isConfigRoundRobin(Bi) && (Bi.participants = Bi.participants.map((Hi) => ({ ...Hi, is_organizer: void 0 })));
37461
- const Ni = (Hi) => {
37464
+ }, Ni = mergeDeep(this.selectedConfiguration, Li || {}), Bi = this.action === "create" ? Ni : Li;
37465
+ this.isConfigRoundRobin(Bi) && (Bi.participants = Bi.participants.map((Ui) => ({ ...Ui, is_organizer: void 0 })));
37466
+ const Hi = (Ui) => {
37462
37467
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
37463
37468
  this.changesSaved = !1;
37464
37469
  }, 5e3);
37465
- }, ji = this.checkForBookingFormErrors(Bi), qi = ((da = this.configurations) == null ? void 0 : da.find((Hi) => {
37466
- var Ji;
37467
- return Hi.id === ((Ji = this.selectedConfiguration) == null ? void 0 : Ji.id);
37470
+ }, zi = this.checkForBookingFormErrors(Bi), qi = ((da = this.configurations) == null ? void 0 : da.find((Ui) => {
37471
+ var Zi;
37472
+ return Ui.id === ((Zi = this.selectedConfiguration) == null ? void 0 : Zi.id);
37468
37473
  })) || {}, Oi = this.checkForOrganizerConfirmationError(mergeDeep(Bi, qi));
37469
- ji || Oi || this.schedulerConfigChanged.emit({ config: Bi, resetLoadingState: Ni, action: this.action, host: this.host });
37474
+ zi || Oi || this.schedulerConfigChanged.emit({ config: Bi, resetLoadingState: Hi, action: this.action, host: this.host });
37470
37475
  }, this.isConfigRoundRobin = (ue) => {
37471
37476
  var ge, Oe, Ke, vt;
37472
37477
  return ((Oe = (ge = ue == null ? void 0 : ue.availability) == null ? void 0 : ge.availability_rules) == null ? void 0 : Oe.availability_method) === "max-availability" || ((vt = (Ke = ue.availability) == null ? void 0 : Ke.availability_rules) == null ? void 0 : vt.availability_method) === "max-fairness";
@@ -37524,7 +37529,7 @@ const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37524
37529
  var ge, Oe;
37525
37530
  debug("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !isInitialized() && init({
37526
37531
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
37527
- release: "1.4.5",
37532
+ release: "2.0.0",
37528
37533
  integrations: (Ke) => [
37529
37534
  ...Ke.filter((vt) => !1),
37530
37535
  feedbackSyncIntegration({
@@ -37568,7 +37573,7 @@ const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37568
37573
  captureContext: {
37569
37574
  tags: {
37570
37575
  "nylas-web-element": "nylas-scheduler-editor",
37571
- "nylas-web-element-version": "1.4.5",
37576
+ "nylas-web-element-version": "2.0.0",
37572
37577
  "nylas-config-id": (ln = this.selectedConfiguration) == null ? void 0 : ln.id,
37573
37578
  "nylas-slug": (ei = this.selectedConfiguration) == null ? void 0 : ei.slug,
37574
37579
  "host-url": window.location.href
@@ -37614,8 +37619,8 @@ const NylasEditorTabs = proxyCustomElement(class extends H$4 {
37614
37619
  hideCancellationOptions: ((Ci = ue == null ? void 0 : ue.scheduler) == null ? void 0 : Ci.hide_cancellation_options) ?? !1,
37615
37620
  hideReschedulingOptions: ((fi = ue == null ? void 0 : ue.scheduler) == null ? void 0 : fi.hide_rescheduling_options) ?? !1,
37616
37621
  participantBookingCalendars: ((ki = ue == null ? void 0 : ue.participants) == null ? void 0 : ki.reduce((Ii, Pi) => {
37617
- var Li, Fi;
37618
- return (Li = Pi.booking) != null && Li.calendar_id && (Ii[Pi.email] = (Fi = Pi.booking) == null ? void 0 : Fi.calendar_id), Ii;
37622
+ var Li, Ni;
37623
+ return (Li = Pi.booking) != null && Li.calendar_id && (Ii[Pi.email] = (Ni = Pi.booking) == null ? void 0 : Ni.calendar_id), Ii;
37619
37624
  })) ?? {},
37620
37625
  participantCalendars: ((bi = ue == null ? void 0 : ue.participants) == null ? void 0 : bi.reduce((Ii, Pi) => {
37621
37626
  var Li;
@@ -48179,7 +48184,7 @@ var __decorate$2 = function(ve, ue, ge, Oe) {
48179
48184
  const NylasEditorTabsGroup = proxyCustomElement(class extends H$4 {
48180
48185
  constructor() {
48181
48186
  super(), this.__registerHost(), this.schedulerConfigChanged = createEvent(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = createEvent(this, "schedulerConfigCreated", 7), this.cancelButtonClick = createEvent(this, "cancelButtonClick", 7), this.formSubmitted = createEvent(this, "formSubmitted", 7), this.previewButtonClicked = createEvent(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = createEvent(this, "schedulerEditorFormUpdated", 7), this.groupEventCreateTriggered = createEvent(this, "groupEventCreateTriggered", 7), this.groupEventUpdateTriggered = createEvent(this, "groupEventUpdateTriggered", 7), this.groupEventDeleteTriggered = createEvent(this, "groupEventDeleteTriggered", 7), this.groupEventImportTriggered = createEvent(this, "groupEventImportTriggered", 7), this.saveGroupEventChangesError = createEvent(this, "saveGroupEventChangesError", 7), this.formSubmissionHandler = async (ue) => {
48182
- var Di, Ri, Mi, Ii, Pi, Li, Fi, Bi, Ni, ji, qi;
48187
+ var Di, Ri, Mi, Ii, Pi, Li, Ni, Bi, Hi, zi, qi;
48183
48188
  ue.preventDefault();
48184
48189
  const ge = await this.formSubmitted.emit();
48185
48190
  if (debug("[nylas-editor-tabs-group]", "formSubmissionHandler", ge), !this.formRef.checkValidity() || ge.defaultPrevented) {
@@ -48229,15 +48234,15 @@ const NylasEditorTabsGroup = proxyCustomElement(class extends H$4 {
48229
48234
  const bi = {
48230
48235
  name: ((Ri = this.currentUser) == null ? void 0 : Ri.name) ?? ((Mi = this.currentUser) == null ? void 0 : Mi.email) ?? "",
48231
48236
  email: ((Ii = this.currentUser) == null ? void 0 : Ii.email) ?? ""
48232
- }, Ti = ((Pi = this.calendars) == null ? void 0 : Pi.find((Oi) => Oi.is_primary)) ?? ((Li = this.calendars) == null ? void 0 : Li[0]), xi = [{ ...bi, is_organizer: !0 }], Ai = (Fi = this.selectedConfiguration) != null && Fi.id ? void 0 : {
48237
+ }, Ti = ((Pi = this.calendars) == null ? void 0 : Pi.find((Oi) => Oi.is_primary)) ?? ((Li = this.calendars) == null ? void 0 : Li[0]), xi = [{ ...bi, is_organizer: !0 }], Ai = (Ni = this.selectedConfiguration) != null && Ni.id ? void 0 : {
48233
48238
  title: vt,
48234
48239
  description: ln,
48235
48240
  location: ci ? void 0 : ti,
48236
48241
  conferencing: ti ? void 0 : ci,
48237
48242
  when: {
48238
48243
  start_time: ((Bi = Si == null ? void 0 : Si.when) == null ? void 0 : Bi.start_time) ?? 0,
48239
- end_time: ((Ni = Si == null ? void 0 : Si.when) == null ? void 0 : Ni.end_time) ?? 0,
48240
- start_timezone: ((ji = Si == null ? void 0 : Si.when) == null ? void 0 : ji.start_timezone) ?? "",
48244
+ end_time: ((Hi = Si == null ? void 0 : Si.when) == null ? void 0 : Hi.end_time) ?? 0,
48245
+ start_timezone: ((zi = Si == null ? void 0 : Si.when) == null ? void 0 : zi.start_timezone) ?? "",
48241
48246
  end_timezone: ((qi = Si == null ? void 0 : Si.when) == null ? void 0 : qi.end_timezone) ?? ""
48242
48247
  },
48243
48248
  recurrence: (Si == null ? void 0 : Si.recurrence) ?? [],
@@ -48284,8 +48289,7 @@ const NylasEditorTabsGroup = proxyCustomElement(class extends H$4 {
48284
48289
  participants: (si = (oi = (ri = this.selectedGroupEvent) == null ? void 0 : ri.group_event_info) == null ? void 0 : oi.participants) == null ? void 0 : si.map((bi) => ({
48285
48290
  name: bi.name,
48286
48291
  email: bi.email,
48287
- is_organizer: !!bi.is_organizer,
48288
- timezone: ""
48292
+ is_organizer: !!bi.is_organizer
48289
48293
  })),
48290
48294
  eventTimeslot: (ci = (li = this.selectedGroupEvent) == null ? void 0 : li.event) != null && ci.when ? {
48291
48295
  when: {
@@ -48325,7 +48329,7 @@ const NylasEditorTabsGroup = proxyCustomElement(class extends H$4 {
48325
48329
  var ge, Oe, Ke;
48326
48330
  debug("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !isInitialized() && init({
48327
48331
  dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
48328
- release: "1.4.5",
48332
+ release: "2.0.0",
48329
48333
  integrations: (vt) => [
48330
48334
  ...vt.filter((ln) => !1),
48331
48335
  feedbackSyncIntegration({
@@ -48364,7 +48368,7 @@ const NylasEditorTabsGroup = proxyCustomElement(class extends H$4 {
48364
48368
  captureContext: {
48365
48369
  tags: {
48366
48370
  "nylas-web-element": "nylas-scheduler-editor",
48367
- "nylas-web-element-version": "1.4.5"
48371
+ "nylas-web-element-version": "2.0.0"
48368
48372
  },
48369
48373
  extra: {
48370
48374
  configId: (Ke = this.selectedConfiguration) == null ? void 0 : Ke.id,
@@ -48418,7 +48422,7 @@ const NylasEditorTabsGroup = proxyCustomElement(class extends H$4 {
48418
48422
  location: vt ? void 0 : ge.location,
48419
48423
  participants: ge.participants,
48420
48424
  organizer: Oe,
48421
- conferencing: ge.location ? void 0 : vt,
48425
+ conferencing: ge.location ? {} : vt,
48422
48426
  when: ge.eventTimeslot.when,
48423
48427
  recurrence: ge.eventTimeslot.recurrence,
48424
48428
  calendar_id: (Ke == null ? void 0 : Ke.id) || "primary",
@@ -48569,18 +48573,18 @@ const NylasEditorTabsGroup = proxyCustomElement(class extends H$4 {
48569
48573
  }
48570
48574
  render() {
48571
48575
  var ue, ge;
48572
- return debug("[nylas-editor-tabs-group]", "render", this.formState), h$3(Host, { key: "9b79ba6f8696d5c7bcc9eb1d8c4b3cebddc6e4a9" }, h$3("form", { key: "e70dade70b4bf2a9a5974e70a335b6f04ea24ed6", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (Oe) => this.formRef = Oe, noValidate: !0 }, this.mode === "app" ? h$3("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, h$3("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (Oe) => {
48576
+ return debug("[nylas-editor-tabs-group]", "render", this.formState), h$3(Host, { key: "2f1b119172917fda91ffa866f37a14355f2828c0" }, h$3("form", { key: "103788b60f9351f7b20bcb06e1e93f89a29a9332", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (Oe) => this.formRef = Oe, noValidate: !0 }, this.mode === "app" ? h$3("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, h$3("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (Oe) => {
48573
48577
  this.setActiveTab(Oe, TabGroup.CalendarView);
48574
- } }, h$3("chevron-icon", { width: "16", height: "16" }), h$3("span", null, instance.t("returnToCalendarView")))) : null, this.mode === "app" ? h$3("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, h$3("div", { class: "tabs", part: "editor__tabs net__tabs" }, h$3("button", { name: TabGroup.BookingOptions, class: { tab: !0, active: this.activeTab == TabGroup.BookingOptions, hide: this.hideTab(TabGroup.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (Oe) => this.setActiveTab(Oe, TabGroup.BookingOptions) }, h$3("flow-icon", { width: "16", height: "16" }), instance.t("bookingOptionsTab")), h$3("button", { name: TabGroup.BookingForm, class: { tab: !0, active: this.activeTab == TabGroup.BookingForm, hide: this.hideTab(TabGroup.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (Oe) => this.setActiveTab(Oe, TabGroup.BookingForm) }, this.activeTab == TabGroup.BookingForm ? h$3("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h$3("calendar-agenda-icon", { width: "16", height: "16" }), instance.t("bookingFormTab")), h$3("button", { name: TabGroup.Communications, class: { tab: !0, active: this.activeTab == TabGroup.Communications, hide: this.hideTab(TabGroup.Communications) }, onClick: (Oe) => this.setActiveTab(Oe, TabGroup.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == TabGroup.Communications ? h$3("envelope-fill-icon", { width: "16", height: "16" }) : h$3("envelope-icon", { width: "16", height: "16" }), instance.t("communicationsTab")), h$3("button", { name: TabGroup.PageStyles, class: { tab: !0, active: this.activeTab == TabGroup.PageStyles, hide: this.hideTab(TabGroup.PageStyles) }, onClick: (Oe) => this.setActiveTab(Oe, TabGroup.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == TabGroup.PageStyles ? h$3("paintbrush-fill-icon", { width: "16", height: "16" }) : h$3("paintbrush-icon", { width: "16", height: "16" }), instance.t("pageStylesTab"))), h$3("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, h$3(TabContentsGroup, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((ue = this.selectedConfiguration) == null ? void 0 : ue.id) ?? "new", i18next: instance }))) : h$3("div", { class: "composable", key: (ge = this.selectedConfiguration) == null ? void 0 : ge.id }, h$3("slot", null)), h$3("div", { key: "3e14a9cecdd8200a4a388595c69450fc1fc2d024", class: "footer", part: "editor__footer net__footer" }, h$3("div", { key: "fa88541076507a351a9189d3937e380b042adb2a", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && h$3("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (Oe) => this.onFeedbackClick(Oe) }, h$3("feedback-icon", null)), this.activeTab === TabGroup.CalendarView && h$3("button-component", { title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (Oe) => this.setActiveTab(Oe, TabGroup.BookingOptions) }, instance.t("pageSettingsButton"))), h$3("div", { key: "5c2436da8cc3deb362e42ba4ff8ac228b89263dc", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h$3("p", { key: "132875a26da363e4b402879b8344fce6311c1702", class: {
48578
+ } }, h$3("chevron-icon", { width: "16", height: "16" }), h$3("span", null, instance.t("returnToCalendarView")))) : null, this.mode === "app" ? h$3("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, h$3("div", { class: "tabs", part: "editor__tabs net__tabs" }, h$3("button", { name: TabGroup.BookingOptions, class: { tab: !0, active: this.activeTab == TabGroup.BookingOptions, hide: this.hideTab(TabGroup.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (Oe) => this.setActiveTab(Oe, TabGroup.BookingOptions) }, h$3("flow-icon", { width: "16", height: "16" }), instance.t("bookingOptionsTab")), h$3("button", { name: TabGroup.BookingForm, class: { tab: !0, active: this.activeTab == TabGroup.BookingForm, hide: this.hideTab(TabGroup.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (Oe) => this.setActiveTab(Oe, TabGroup.BookingForm) }, this.activeTab == TabGroup.BookingForm ? h$3("calendar-agenda-fill-icon", { width: "16", height: "16" }) : h$3("calendar-agenda-icon", { width: "16", height: "16" }), instance.t("bookingFormTab")), h$3("button", { name: TabGroup.Communications, class: { tab: !0, active: this.activeTab == TabGroup.Communications, hide: this.hideTab(TabGroup.Communications) }, onClick: (Oe) => this.setActiveTab(Oe, TabGroup.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == TabGroup.Communications ? h$3("envelope-fill-icon", { width: "16", height: "16" }) : h$3("envelope-icon", { width: "16", height: "16" }), instance.t("communicationsTab")), h$3("button", { name: TabGroup.PageStyles, class: { tab: !0, active: this.activeTab == TabGroup.PageStyles, hide: this.hideTab(TabGroup.PageStyles) }, onClick: (Oe) => this.setActiveTab(Oe, TabGroup.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == TabGroup.PageStyles ? h$3("paintbrush-fill-icon", { width: "16", height: "16" }) : h$3("paintbrush-icon", { width: "16", height: "16" }), instance.t("pageStylesTab"))), h$3("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, h$3(TabContentsGroup, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((ue = this.selectedConfiguration) == null ? void 0 : ue.id) ?? "new", i18next: instance }))) : h$3("div", { class: "composable", key: (ge = this.selectedConfiguration) == null ? void 0 : ge.id }, h$3("slot", null)), h$3("div", { key: "5c98656ec4f4b3bb61f675dbfe43121b1cf230cf", class: "footer", part: "editor__footer net__footer" }, h$3("div", { key: "cca7ec210ba25fd6e8d6f090871bd03acd86f3b2", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && h$3("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (Oe) => this.onFeedbackClick(Oe) }, h$3("feedback-icon", null)), this.activeTab === TabGroup.CalendarView && h$3("button-component", { title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (Oe) => this.setActiveTab(Oe, TabGroup.BookingOptions) }, instance.t("pageSettingsButton"))), h$3("div", { key: "53bf5ccc9597574dade9a81c08a4b316ebbb8f1e", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, h$3("p", { key: "a3acb4bbfb391483d9d8914ff5f07922c05e7dbd", class: {
48575
48579
  "unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
48576
48580
  "saved-changes": this.changesSaved,
48577
48581
  error: this.error !== "",
48578
48582
  "error-full-width": this.error !== "" && this.action === "create"
48579
- } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== TabGroup.CalendarView ? instance.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${instance.t("changesSavedLabel")}!` : ""), h$3("div", { key: "f30fa484009f4d4729551014e86ec4a0d2ae7824", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && h$3("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (Oe) => {
48583
+ } }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== TabGroup.CalendarView ? instance.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${instance.t("changesSavedLabel")}!` : ""), h$3("div", { key: "81e083f0560967f3d8b68f1e0cafef645c7ae288", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && h$3("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (Oe) => {
48580
48584
  Oe.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(parsePreviewLink(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
48581
- }, variant: "basic" }, h$3("eye-icon", null)), h$3("button-component", { key: "de0c92614c21e3d7ad2d1e982186df2858e99981", type: "button", disabled: this.isLoading, clickHandler: (Oe) => {
48585
+ }, variant: "basic" }, h$3("eye-icon", null)), h$3("button-component", { key: "59a4f7e7238f88a4a07e0bc1ab79bed788da74c9", type: "button", disabled: this.isLoading, clickHandler: (Oe) => {
48582
48586
  Oe.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
48583
- }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, instance.t("backButton")), h$3("button-component", { key: "5edfb977d8feed310347b968cdb7505f9bc7eb1f", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? h$3("span", null, instance.t("savingButtonText"), h$3("loading-icon", null), " ") : this.action === "create" ? `${instance.t("createButtonText")}` : `${instance.t("saveChangesButtonText")}`))))), this.showFeedbackModal && h$3("nylas-feedback-form", null));
48587
+ }, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, instance.t("backButton")), h$3("button-component", { key: "3ed3bc81b39988173e13f2c3346defed31b96148", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? h$3("span", null, instance.t("savingButtonText"), h$3("loading-icon", null), " ") : this.action === "create" ? `${instance.t("createButtonText")}` : `${instance.t("saveChangesButtonText")}`))))), this.showFeedbackModal && h$3("nylas-feedback-form", null));
48584
48588
  }
48585
48589
  get host() {
48586
48590
  return this;
@@ -49137,8 +49141,9 @@ __decorate$1([
49137
49141
  await ge.setState("loaded");
49138
49142
  },
49139
49143
  createButtonClick: async (ve, ue) => {
49140
- var ge;
49141
- ue.schedulerConfigStore.resetSelectedConfiguration(), (ge = ue.schedulerConfigStore.state.experimentalFeatures) != null && ge.group_events ? ue.schedulerConfigStore.state.action = "create-select" : ue.schedulerConfigStore.state.action = "create";
49144
+ ue.schedulerConfigStore.resetSelectedConfiguration();
49145
+ const ge = Object.entries(ue.schedulerConfigStore.state.enableEventTypes || {}).filter(([Oe, Ke]) => Ke);
49146
+ ge.length === 1 ? (ue.schedulerConfigStore.state.action = "create", ue.schedulerConfigStore.state.selectedEventType = CONFIGURATION_EVENT_TYPE[ge[0][0]]) : ue.schedulerConfigStore.state.action = "create-select";
49142
49147
  },
49143
49148
  deleteButtonClick: async (ve, ue) => {
49144
49149
  const { host: ge, configuration: Oe } = ve.detail, [Ke, vt] = await ue.schedulerConfig.deleteConfiguration(Oe.id);
@@ -49224,7 +49229,13 @@ var __decorate = function(ve, ue, ge, Oe) {
49224
49229
  };
49225
49230
  const NylasSelectEventType = proxyCustomElement(class extends H$4 {
49226
49231
  constructor() {
49227
- super(), this.__registerHost(), this.__attachShadow(), this.returnToAllSchedulingPagesEvent = createEvent(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = createEvent(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0;
49232
+ super(), this.__registerHost(), this.__attachShadow(), this.returnToAllSchedulingPagesEvent = createEvent(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = createEvent(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0, this.enableEventTypes = {
49233
+ one_on_one: !0,
49234
+ collective: !0,
49235
+ max_fairness: !0,
49236
+ max_availability: !0,
49237
+ group: !0
49238
+ };
49228
49239
  }
49229
49240
  connectedCallback() {
49230
49241
  debug("nylas-select-event-type", "connectedCallback");
@@ -49245,8 +49256,14 @@ const NylasSelectEventType = proxyCustomElement(class extends H$4 {
49245
49256
  ue !== ge && instance.changeLanguage(ue);
49246
49257
  }
49247
49258
  render() {
49248
- var vt;
49249
- const ue = [
49259
+ var ln;
49260
+ const ue = {
49261
+ "one-on-one": "one_on_one",
49262
+ collective: "collective",
49263
+ "max-fairness": "max_fairness",
49264
+ "max-availability": "max_availability",
49265
+ group: "group"
49266
+ }, ge = [
49250
49267
  {
49251
49268
  label: instance.t("nylasSelectEventType.eventTypeOptions.oneOnOne.label"),
49252
49269
  value: CONFIGURATION_EVENT_TYPE.one_on_one,
@@ -49272,12 +49289,15 @@ const NylasSelectEventType = proxyCustomElement(class extends H$4 {
49272
49289
  value: CONFIGURATION_EVENT_TYPE.group,
49273
49290
  description: instance.t("nylasSelectEventType.eventTypeOptions.group.desc")
49274
49291
  }
49275
- ], ge = this.participantOptions && ((vt = this.participantOptions) == null ? void 0 : vt.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, Oe = [CONFIGURATION_EVENT_TYPE.collective, CONFIGURATION_EVENT_TYPE.max_availability, CONFIGURATION_EVENT_TYPE.max_fairness], Ke = [CONFIGURATION_EVENT_TYPE.one_on_one, CONFIGURATION_EVENT_TYPE.group];
49276
- return h$3(Host, { key: "4cd1ea6564b67ff7547499e504214684a61350c3" }, h$3("div", { key: "2e591b78dcbd4e832ed63a837d0e03edde75e97c", class: "nylas-select-event-type", part: "nset" }, h$3("div", { key: "9b866ca6a3e3bc025ba13d8f023e825c4c042d14", class: "header", part: "nset__header" }, h$3("h2", { key: "0a8390189a308bb1ef7c51ca3efa0b5b8d2aa165" }, instance.t("nylasSelectEventType.createEventHeaderTitle")), h$3("button-component", { key: "0a7d6503aa2ea9c137aa59f4a211a88f816844cd", variant: "invisible", part: "nset__header__back-button", onClick: (ln) => {
49292
+ ], Oe = [CONFIGURATION_EVENT_TYPE.collective, CONFIGURATION_EVENT_TYPE.max_availability, CONFIGURATION_EVENT_TYPE.max_fairness], Ke = this.participantOptions && ((ln = this.participantOptions) == null ? void 0 : ln.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, vt = this.enableEventTypes ? ge.filter((ei) => {
49293
+ const ti = ei.value, ni = ue[ti];
49294
+ return console.log("key", ti, this.enableEventTypes ? this.enableEventTypes[ni] : "no enableEventTypes"), Oe.includes(ti) && !Ke ? !1 : this.enableEventTypes && this.enableEventTypes[ni];
49295
+ }) : ge;
49296
+ return h$3(Host, null, h$3("div", { class: "nylas-select-event-type", part: "nset" }, h$3("div", { class: "header", part: "nset__header" }, h$3("h2", null, instance.t("nylasSelectEventType.createEventHeaderTitle")), h$3("button-component", { variant: "invisible", part: "nset__header__back-button", onClick: (ei) => {
49277
49297
  this.returnToAllSchedulingPagesEvent.emit();
49278
- } }, h$3("chevron-icon", { key: "5a81b33f22799f77657f9a8196ec1d72e255865c", width: "16", height: "16" }), h$3("span", { key: "df5b805d76b1040bacae5e68eebd2ff7a74b2810" }, instance.t("nylasSelectEventType.returnToAllSchedulingPages")))), h$3("div", { key: "ff48e355eb9baac896bf6e3de2dafbfbd91f57c0", class: "content", part: "nset__content" }, h$3("h3", { key: "d387519b40557886ece52327429e6e58aa133689" }, instance.t("nylasSelectEventType.eventTypeHeaderTitle")), h$3("div", { key: "a3384ed668259f02114efd375cfcaad125f1efe7", class: "event-type", part: "nset__content__event-type" }, ue.filter((ln) => Ke.includes(ln.value) || ge && Oe.includes(ln.value)).map((ln) => h$3("div", { class: "event-type-option", onClick: (ei) => {
49279
- this.createEventTypeSelected.emit({ eventType: ln.value });
49280
- }, part: `nset__content__event-type-option-${ln.value}` }, h$3("h4", null, ln.label), h$3("p", null, ln.description)))))));
49298
+ } }, h$3("chevron-icon", { width: "16", height: "16" }), h$3("span", null, instance.t("nylasSelectEventType.returnToAllSchedulingPages")))), h$3("div", { class: "content", part: "nset__content" }, h$3("h3", null, instance.t("nylasSelectEventType.eventTypeHeaderTitle")), h$3("div", { class: "event-type", part: "nset__content__event-type" }, vt.length === 0 && h$3("p", null, instance.t("nylasSelectEventType.noEventTypesEnabled")), vt.map((ei) => h$3("div", { class: "event-type-option", onClick: (ti) => {
49299
+ this.createEventTypeSelected.emit({ eventType: ei.value });
49300
+ }, part: `nset__content__event-type-option-${ei.value}` }, h$3("h4", null, ei.label), h$3("p", null, ei.description)))))));
49281
49301
  }
49282
49302
  get host() {
49283
49303
  return this;
@@ -49294,7 +49314,8 @@ const NylasSelectEventType = proxyCustomElement(class extends H$4 {
49294
49314
  }, [1, "nylas-select-event-type", {
49295
49315
  participantOptions: [16],
49296
49316
  name: [1],
49297
- selectedLanguage: [1, "selected-language"]
49317
+ selectedLanguage: [1, "selected-language"],
49318
+ enableEventTypes: [16]
49298
49319
  }, void 0, {
49299
49320
  name: ["elementNameChangedHandler"],
49300
49321
  selectedLanguage: ["selectedLanguageChangedHandler"]
@@ -49304,7 +49325,8 @@ __decorate([
49304
49325
  name: "nylas-select-event-type",
49305
49326
  stateToProps: /* @__PURE__ */ new Map([
49306
49327
  ["schedulerConfig.selectedLanguage", "selectedLanguage"],
49307
- ["schedulerConfig.additionalParticipants", "participantOptions"]
49328
+ ["schedulerConfig.additionalParticipants", "participantOptions"],
49329
+ ["schedulerConfig.enableEventTypes", "enableEventTypes"]
49308
49330
  ]),
49309
49331
  eventToProps: {
49310
49332
  returnToAllSchedulingPagesEvent: async (ve, ue) => {
@@ -50851,8 +50873,8 @@ const LoginRequired = ({ authenticationUrl: ve }) => h$3(
50851
50873
  h$3("small", { class: "disclaimer-text", part: "nse__login-required-disclaimer-text" }, "* You will be redirected to authenticate your account.")
50852
50874
  )
50853
50875
  );
50854
- function ExpressFlow({ currentUser: ve, calendars: ue, selectedEventType: ge, experimentalFeatures: Oe }) {
50855
- const Ke = (ue == null ? void 0 : ue.find((ln) => ln.is_primary)) || (ue == null ? void 0 : ue[0]), vt = (Oe == null ? void 0 : Oe[EXPERIMENTAL_FEATURES.group_events]) || !1;
50876
+ function ExpressFlow({ currentUser: ve, calendars: ue, selectedEventType: ge }) {
50877
+ const Oe = (ue == null ? void 0 : ue.find((Ke) => Ke.is_primary)) || (ue == null ? void 0 : ue[0]);
50856
50878
  switch (ge) {
50857
50879
  case CONFIGURATION_EVENT_TYPE.one_on_one:
50858
50880
  case CONFIGURATION_EVENT_TYPE.max_availability:
@@ -50871,8 +50893,7 @@ function ExpressFlow({ currentUser: ve, calendars: ue, selectedEventType: ge, ex
50871
50893
  h$3("nylas-event-location", { userProvider: ve.provider })
50872
50894
  )
50873
50895
  ),
50874
- h$3("nylas-booking-calendar-picker", { exportparts: "nbcp, nbcp__header, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content", expressFlow: !0, calendars: ue, currentUser: ve, defaultBookingCalendar: Ke == null ? void 0 : Ke.id }),
50875
- !vt && h$3("nylas-scheduling-method", { showSubTitle: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
50896
+ h$3("nylas-booking-calendar-picker", { exportparts: "nbcp, nbcp__header, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content", expressFlow: !0, calendars: ue, currentUser: ve, defaultBookingCalendar: Oe == null ? void 0 : Oe.id }),
50876
50897
  h$3("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" })
50877
50898
  );
50878
50899
  case CONFIGURATION_EVENT_TYPE.collective:
@@ -50890,8 +50911,7 @@ function ExpressFlow({ currentUser: ve, calendars: ue, selectedEventType: ge, ex
50890
50911
  h$3("nylas-event-location", { userProvider: ve.provider })
50891
50912
  )
50892
50913
  ),
50893
- h$3("nylas-booking-calendar-picker", { exportparts: "nbcp, nbcp__header, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content", expressFlow: !0, calendars: ue, currentUser: ve, defaultBookingCalendar: Ke == null ? void 0 : Ke.id }),
50894
- !vt && h$3("nylas-scheduling-method", { showSubTitle: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
50914
+ h$3("nylas-booking-calendar-picker", { exportparts: "nbcp, nbcp__header, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content", expressFlow: !0, calendars: ue, currentUser: ve, defaultBookingCalendar: Oe == null ? void 0 : Oe.id }),
50895
50915
  h$3("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
50896
50916
  h$3("nylas-additional-participants", { name: "participants", eventParticipants: [{ name: (ve == null ? void 0 : ve.name) || (ve == null ? void 0 : ve.email), email: (ve == null ? void 0 : ve.email) || "", is_organizer: !0 }], exportparts: "nadtnlpart, nadtnlpart__title, nadtnlpart__subtitle, nadtnlpart__content, nadtnlpart__input_group, nadtnlpart__input_wrapper, nadtnlpart__input, nadtnlpart__remove-participant" })
50897
50917
  );
@@ -50912,19 +50932,25 @@ function ExpressFlow({ currentUser: ve, calendars: ue, selectedEventType: ge, ex
50912
50932
  h$3("nylas-event-capacity", null)
50913
50933
  )
50914
50934
  ),
50915
- h$3("nylas-booking-calendar-picker", { exportparts: "nbcp, nbcp__header, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content", expressFlow: !0, calendars: ue, currentUser: ve, defaultBookingCalendar: Ke == null ? void 0 : Ke.id }),
50935
+ h$3("nylas-booking-calendar-picker", { exportparts: "nbcp, nbcp__header, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content", expressFlow: !0, calendars: ue, currentUser: ve, defaultBookingCalendar: Oe == null ? void 0 : Oe.id }),
50916
50936
  h$3("nylas-additional-participants", { name: "participants", eventParticipants: [{ name: (ve == null ? void 0 : ve.name) || (ve == null ? void 0 : ve.email), email: (ve == null ? void 0 : ve.email) || "", is_organizer: !0 }], exportparts: "nadtnlpart, nadtnlpart__title, nadtnlpart__subtitle, nadtnlpart__content, nadtnlpart__input_group, nadtnlpart__input_wrapper, nadtnlpart__input, nadtnlpart__remove-participant" }),
50917
50937
  h$3("nylas-page-name", { requirePageName: !0, pageName: "Group events page" }),
50918
50938
  h$3("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" })
50919
50939
  );
50920
50940
  }
50921
50941
  }
50922
- const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 0px 6px -2px rgba(0, 0, 0, 0.05), 0px 5px 15px -3px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}@media screen and (max-width: 768px){:host{width:-moz-available;width:-webkit-fill-available;width:fill-available;min-width:325px}}div.scheduler-editor-content{height:610px}div.scheduler-editor-content.scheduler-editor-content--group_feature_enabled{height:900px}@media screen and (max-width: 768px){div.scheduler-editor-content.scheduler-editor-content--group_feature_enabled{height:auto}}@media screen and (max-width: 768px){div.scheduler-editor-content{height:auto}}div.scheduler-editor-content--group{height:900px}@media screen and (max-width: 768px){div.scheduler-editor-content--group{height:auto}}div.scheduler-editor-header{display:grid;grid-template-columns:1fr auto auto;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid var(--nylas-base-200);color:var(--nylas-base-900);min-width:924px}@media screen and (max-width: 768px){div.scheduler-editor-header{width:auto;min-width:calc(325px - 1rem)}}div.scheduler-editor-header h1.scheduler-editor-title{display:flex;align-items:center;gap:0.5rem;margin:0;font-size:18px;line-height:24px;font-weight:600}div.scheduler-editor-header button{background:transparent;border:none;cursor:pointer}div.scheduler-editor-header button:hover,div.scheduler-editor-header button:active{color:var(--nylas-primary);background-color:transparent}div.scheduler-editor-header button:disabled{cursor:not-allowed}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button){border:none;padding:4px;margin-right:8px}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button):hover{outline:none;color:var(--nylas-primary)}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){min-width:132px}@media screen and (max-width: 768px){div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){width:-webkit-fill-available;width:fill-available;width:-moz-available}}nylas-select-event-type{height:inherit;width:calc(924px + 2rem)}@media screen and (max-width: 768px){nylas-select-event-type{width:auto}}nylas-editor-tabs,nylas-editor-tabs-group{width:auto;height:inherit}nylas-editor-tabs .row,nylas-editor-tabs-group .row{display:flex;gap:1rem}nylas-editor-tabs .composable,nylas-editor-tabs-group .composable{height:inherit;overflow:auto}nylas-editor-tabs nylas-event-info div[slot=inputs],nylas-editor-tabs nylas-event-limits div[slot=inputs],nylas-editor-tabs-group nylas-event-info div[slot=inputs],nylas-editor-tabs-group nylas-event-limits div[slot=inputs]{display:flex;flex-direction:column;gap:1rem}.card{display:flex;flex-direction:column;padding:2rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;max-width:fit-content;align-self:center}.login-required{height:inherit;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;padding:2rem 1rem;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.login-required{height:auto}}.login-required p{margin:0 0 1rem}.login-required .microsoft-button,.login-required .google-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;margin-bottom:1rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;justify-content:center;gap:0.5rem;align-items:center}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;border:0;background-color:var(--nylas-base-0);height:48px;margin-bottom:1rem;font-size:0.95rem;justify-content:center;gap:0.25rem;align-items:center}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button svg{transform:rotate(180deg)}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .disclaimer-text{font-size:0.75rem;color:var(--nylas-base-600);align-self:center}.list-configurations{padding:2rem;height:inherit;background:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.list-configurations{height:auto;padding:2rem 1rem}}.list-configurations nylas-list-configurations{height:inherit;display:flex;flex-direction:column}', NylasSchedulerEditorStyle0 = nylasSchedulerEditorCss, NylasSchedulerEditor$1 = proxyCustomElement(class extends H$4 {
50942
+ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 0px 6px -2px rgba(0, 0, 0, 0.05), 0px 5px 15px -3px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}@media screen and (max-width: 768px){:host{width:-moz-available;width:-webkit-fill-available;width:fill-available;min-width:325px}}div.scheduler-editor-content{height:900px}@media screen and (max-width: 768px){div.scheduler-editor-content{height:auto}}div.scheduler-editor-content--group{height:900px}@media screen and (max-width: 768px){div.scheduler-editor-content--group{height:auto}}div.scheduler-editor-header{display:grid;grid-template-columns:1fr auto auto;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid var(--nylas-base-200);color:var(--nylas-base-900);min-width:924px}@media screen and (max-width: 768px){div.scheduler-editor-header{width:auto;min-width:calc(325px - 1rem)}}div.scheduler-editor-header h1.scheduler-editor-title{display:flex;align-items:center;gap:0.5rem;margin:0;font-size:18px;line-height:24px;font-weight:600}div.scheduler-editor-header button{background:transparent;border:none;cursor:pointer}div.scheduler-editor-header button:hover,div.scheduler-editor-header button:active{color:var(--nylas-primary);background-color:transparent}div.scheduler-editor-header button:disabled{cursor:not-allowed}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button){border:none;padding:4px;margin-right:8px}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-button):hover{outline:none;color:var(--nylas-primary)}div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){min-width:132px}@media screen and (max-width: 768px){div.scheduler-editor-header div.language select-dropdown::part(sd_dropdown-content){width:-webkit-fill-available;width:fill-available;width:-moz-available}}nylas-select-event-type{height:inherit;width:calc(924px + 2rem)}@media screen and (max-width: 768px){nylas-select-event-type{width:auto}}nylas-editor-tabs,nylas-editor-tabs-group{width:auto;height:inherit}nylas-editor-tabs .row,nylas-editor-tabs-group .row{display:flex;gap:1rem}nylas-editor-tabs .composable,nylas-editor-tabs-group .composable{height:inherit;overflow:auto}nylas-editor-tabs nylas-event-info div[slot=inputs],nylas-editor-tabs nylas-event-limits div[slot=inputs],nylas-editor-tabs-group nylas-event-info div[slot=inputs],nylas-editor-tabs-group nylas-event-limits div[slot=inputs]{display:flex;flex-direction:column;gap:1rem}.card{display:flex;flex-direction:column;padding:2rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;max-width:fit-content;align-self:center}.login-required{height:inherit;overflow-y:auto;display:flex;flex-direction:column;justify-content:center;padding:2rem 1rem;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.login-required{height:auto}}.login-required p{margin:0 0 1rem}.login-required .microsoft-button,.login-required .google-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;margin-bottom:1rem;background-color:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:5px;justify-content:center;gap:0.5rem;align-items:center}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .microsoft-button:hover,.login-required .google-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button{height:48px;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;background-color:var(--nylas-base-0);font-weight:600;cursor:pointer;display:flex;border:0;background-color:var(--nylas-base-0);height:48px;margin-bottom:1rem;font-size:0.95rem;justify-content:center;gap:0.25rem;align-items:center}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .other-provider-button svg{transform:rotate(180deg)}.login-required .other-provider-button:hover{background-color:var(--nylas-base-25)}.login-required .disclaimer-text{font-size:0.75rem;color:var(--nylas-base-600);align-self:center}.list-configurations{padding:2rem;height:inherit;background:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.list-configurations{height:auto;padding:2rem 1rem}}.list-configurations nylas-list-configurations{height:inherit;display:flex;flex-direction:column}', NylasSchedulerEditorStyle0 = nylasSchedulerEditorCss, NylasSchedulerEditor$1 = proxyCustomElement(class extends H$4 {
50923
50943
  constructor() {
50924
50944
  super(), this.__registerHost(), this.__attachShadow(), this.init = createEvent(this, "init", 7), this.loggedIn = createEvent(this, "loggedIn", 7), this.loggedOut = createEvent(this, "loggedOut", 7), this.schedulerConfigCloseClicked = createEvent(this, "schedulerConfigCloseClicked", 7), this.handleSchedulerConfigCloseClicked = (ue) => {
50925
50945
  const ge = this.schedulerConfigCloseClicked.emit(this.host);
50926
50946
  "schedulerConfigCloseClicked" in this.eventOverrides && this.eventOverrides.schedulerConfigCloseClicked(ge, this.nylasSchedulerConfigConnector), ge.defaultPrevented || (localStorage.removeItem("grant"), localStorage.removeItem("user"), window.location.reload());
50927
- }, this.authenticationUrl = async (ue) => this.nylasApiRequest ? await this.nylasApiRequest.authenticationUrl({ provider: ue }) || "" : (console.error("[nylas-scheduler-editor] Nylas API Request is not initialized."), ""), this.configurationId = void 0, this.nylasApiRequest = void 0, this.nylasSessionsConfig = void 0, this.defaultAuthArgs = void 0, this.eventOverrides = {}, this.schedulerPreviewLink = "", this.defaultSchedulerConfigState = void 0, this.mode = "app", this.additionalParticipants = void 0, this.hideEditorTabs = [], this.conferenceProviders = void 0, this.requiresSlug = !1, this.enableUserFeedback = !0, this.defaultLanguage = void 0, this.localization = void 0, this.nylasBranding = !0, this.experimentalFeatures = void 0, this.automaticComponentRegistration = !0, this.selectedLanguage = this.defaultLanguage || LANGUAGE_CODE.en, this.langVersion = 0;
50947
+ }, this.authenticationUrl = async (ue) => this.nylasApiRequest ? await this.nylasApiRequest.authenticationUrl({ provider: ue }) || "" : (console.error("[nylas-scheduler-editor] Nylas API Request is not initialized."), ""), this.configurationId = void 0, this.nylasApiRequest = void 0, this.nylasSessionsConfig = void 0, this.defaultAuthArgs = void 0, this.eventOverrides = {}, this.schedulerPreviewLink = "", this.defaultSchedulerConfigState = void 0, this.mode = "app", this.additionalParticipants = void 0, this.hideEditorTabs = [], this.conferenceProviders = void 0, this.requiresSlug = !1, this.enableUserFeedback = !0, this.defaultLanguage = void 0, this.localization = void 0, this.nylasBranding = !0, this.experimentalFeatures = void 0, this.enableEventTypes = {
50948
+ one_on_one: !0,
50949
+ collective: !0,
50950
+ max_fairness: !0,
50951
+ max_availability: !0,
50952
+ group: !0
50953
+ }, this.automaticComponentRegistration = !0, this.selectedLanguage = this.defaultLanguage || LANGUAGE_CODE.en, this.langVersion = 0;
50928
50954
  }
50929
50955
  connectedCallback() {
50930
50956
  debug("[nylas-scheduler-editor] connectedCallback");
@@ -50950,7 +50976,8 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
50950
50976
  requiresSlug: this.requiresSlug,
50951
50977
  selectedLanguage: this.defaultLanguage || LANGUAGE_CODE.en,
50952
50978
  nylasBranding: this.nylasBranding,
50953
- experimentalFeatures: this.experimentalFeatures
50979
+ experimentalFeatures: this.experimentalFeatures,
50980
+ enableEventTypes: this.enableEventTypes
50954
50981
  })
50955
50982
  }, !this.nylasApiRequest && this.nylasSessionsConfig) {
50956
50983
  const ri = new NylasSessions(this.nylasSessionsConfig);
@@ -51016,6 +51043,10 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
51016
51043
  var ge, Oe;
51017
51044
  (Oe = (ge = this.stores) == null ? void 0 : ge.schedulerConfig) == null || Oe.set("experimentalFeatures", ue);
51018
51045
  }
51046
+ updateEnableEventTypes(ue) {
51047
+ var ge, Oe;
51048
+ (Oe = (ge = this.stores) == null ? void 0 : ge.schedulerConfig) == null || Oe.set("enableEventTypes", ue);
51049
+ }
51019
51050
  async store() {
51020
51051
  var ue;
51021
51052
  return (ue = this.stores) == null ? void 0 : ue.schedulerConfig;
@@ -51044,18 +51075,17 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
51044
51075
  }
51045
51076
  }
51046
51077
  render() {
51047
- var vt, ln, ei, ti, ni, ii, ai, ri, oi, si, li, ci, di, ui, pi, hi, vi, yi, Ei, Si, mi, $i, gi, _i, wi, Ci, fi, ki, bi, Ti, xi, Ai, Di, Ri, Mi, Ii, Pi, Li, Fi, Bi, Ni, ji, qi, Oi, Ui, Gi, zi, Wi, Ki, Yi, Xi, Qi, ea, ta, na, ia;
51048
- const ue = this.host.querySelector('[slot="custom-page-style-inputs"]'), ge = (ei = (ln = (vt = this.stores) == null ? void 0 : vt.schedulerConfig) == null ? void 0 : ln.state.selectedConfiguration) == null ? void 0 : ei.id, Oe = Object.keys(LANGUAGE_MAP).map((Zi) => ({
51049
- label: LANGUAGE_MAP[Zi],
51050
- value: Zi
51078
+ var vt, ln, ei, ti, ni, ii, ai, ri, oi, si, li, ci, di, ui, pi, hi, vi, yi, Ei, Si, mi, $i, gi, _i, wi, Ci, fi, ki, bi, Ti, xi, Ai, Di, Ri, Mi, Ii, Pi, Li, Ni, Bi, Hi, zi, qi, Oi;
51079
+ const ue = this.host.querySelector('[slot="custom-page-style-inputs"]'), ge = (ei = (ln = (vt = this.stores) == null ? void 0 : vt.schedulerConfig) == null ? void 0 : ln.state.selectedConfiguration) == null ? void 0 : ei.id, Oe = Object.keys(LANGUAGE_MAP).map((Fi) => ({
51080
+ label: LANGUAGE_MAP[Fi],
51081
+ value: Fi
51051
51082
  })), Ke = ((ni = (ti = this.stores) == null ? void 0 : ti.schedulerConfig) == null ? void 0 : ni.state.selectedEventType) === CONFIGURATION_EVENT_TYPE.group || ((ri = (ai = (ii = this.stores) == null ? void 0 : ii.schedulerConfig) == null ? void 0 : ai.state.selectedConfiguration) == null ? void 0 : ri.type) === CONFIGURATION_EVENT_TYPE.group;
51052
- return h$3(Host, { key: "c859b600874208d4ae1349f5838a834a69cbffa3" }, h$3("div", { key: "fb40121186bc57dbf4bba2560d77945b9e259f5b", class: "scheduler-editor-header", part: "nse__header" }, h$3("h1", { key: "91edbc1ae7967f6bf5c5a239393a6a5fa0f02f94", class: "scheduler-editor-title", part: "nse__title" }, h$3("calendar-icon", { key: "1e6798aacd0e004e6fc6ee486bbc681afbab7487", width: "18", height: "18" }), instance.t("schedulerEditorTitle")), h$3("div", { key: "b488780445f86b83035b474b52cb210f3805e229", class: {
51083
+ return h$3(Host, { key: "33481780f28849b0db13759a7c2868446db68e52" }, h$3("div", { key: "c1d8968a3833afc945b8f12cae92ae903fac55df", class: "scheduler-editor-header", part: "nse__header" }, h$3("h1", { key: "9225e1fe985975a052579ad19b2a39cf58e10636", class: "scheduler-editor-title", part: "nse__title" }, h$3("calendar-icon", { key: "6643a8d8ec40bd49ad6874558a46ff7b4881e999", width: "18", height: "18" }), instance.t("schedulerEditorTitle")), h$3("div", { key: "5f39a141b7621cd12a4286f50a4f7ff88ee22960", class: {
51053
51084
  language: !0
51054
- }, part: "nse__language" }, h$3("select-dropdown", { key: "baeaaaa703182988a6c99f58c9ca55a008ffa490", name: "language", searchPlaceholder: instance.t("search"), options: Oe, withChevron: !1, defaultSelectedOption: Oe.find((Zi) => Zi.value == this.selectedLanguage), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, h$3("span", { key: "31bea579d0d640218d3b8b4ac9240e1c2f467dbb", slot: "select-icon" }, h$3("translate-icon", { key: "c250969318fa8b8626019ef05d88beb187155cad", width: "20", height: "20" })))), h$3("button", { key: "aef03775ee2aaa4a8d6d15e9a1c833c5bcdf19c5", class: "scheduler-editor-close", title: "logout", onClick: (Zi) => this.handleSchedulerConfigCloseClicked(Zi), part: "nse__close-button" }, h$3("close-icon", { key: "43e2a903bc332d6c238c0250968abb62d7e14e51", width: "18", height: "18" }))), h$3("div", { key: "cfc1ce795dd551fe60ace249e9d5a8ab428b239e", class: {
51085
+ }, part: "nse__language" }, h$3("select-dropdown", { key: "f39d2f85796930affa228b770d20ff2322bcf664", name: "language", searchPlaceholder: instance.t("search"), options: Oe, withChevron: !1, defaultSelectedOption: Oe.find((Fi) => Fi.value == this.selectedLanguage), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, h$3("span", { key: "1d6480fdbcc79b7752bda9693e1afa4280a9fc88", slot: "select-icon" }, h$3("translate-icon", { key: "13819cc3e68b82b92d8a0b905155628cb357b6f2", width: "20", height: "20" })))), h$3("button", { key: "e59c5d9ee944a731eb4aaf9314315f4eaab8aeed", class: "scheduler-editor-close", title: "logout", onClick: (Fi) => this.handleSchedulerConfigCloseClicked(Fi), part: "nse__close-button" }, h$3("close-icon", { key: "e02c1e6fee18ba347eb5155eb638b5a45dc4ff98", width: "18", height: "18" }))), h$3("div", { key: "f3694ba504ab3814d18647454c6c817e35997922", class: {
51055
51086
  "scheduler-editor-content": !0,
51056
- "scheduler-editor-content--group_feature_enabled": !!((li = (si = (oi = this.stores) == null ? void 0 : oi.schedulerConfig) == null ? void 0 : si.state.experimentalFeatures) != null && li[EXPERIMENTAL_FEATURES.group_events]),
51057
51087
  "scheduler-editor-content--group": Ke
51058
- }, part: "nse__content" }, ((di = (ci = this.stores) == null ? void 0 : ci.schedulerConfig) == null ? void 0 : di.state.currentUser) && this.stores.schedulerConfig.state.action === null && h$3("div", { class: "list-configurations", part: "nse__list-configurations" }, h$3("nylas-list-configurations", { exportparts: "nlc__create-new-cta, actions__dropdown, actions__dropdown-button, actions__dropdown-content, actions-Copy, actions-Preview, actions-Delete" })), ((pi = (ui = this.stores) == null ? void 0 : ui.schedulerConfig) == null ? void 0 : pi.state.currentUser) && this.stores.schedulerConfig.state.action === "create-select" && ((yi = (vi = (hi = this.stores) == null ? void 0 : hi.schedulerConfig) == null ? void 0 : vi.state.experimentalFeatures) == null ? void 0 : yi[EXPERIMENTAL_FEATURES.group_events]) && h$3("nylas-select-event-type", null), ((Si = (Ei = this.stores) == null ? void 0 : Ei.schedulerConfig) == null ? void 0 : Si.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && Ke && h$3("nylas-editor-tabs-group", { mode: "composable" }, h$3(ExpressFlow, { experimentalFeatures: (gi = ($i = (mi = this.stores) == null ? void 0 : mi.schedulerConfig) == null ? void 0 : $i.state) == null ? void 0 : gi.experimentalFeatures, selectedEventType: ((Ci = (wi = (_i = this.stores) == null ? void 0 : _i.schedulerConfig) == null ? void 0 : wi.state) == null ? void 0 : Ci.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (ki = (fi = this.stores) == null ? void 0 : fi.schedulerConfig) == null ? void 0 : ki.state.currentUser, calendars: (xi = (Ti = (bi = this.stores) == null ? void 0 : bi.schedulerConfig) == null ? void 0 : Ti.state) == null ? void 0 : xi.calendars, selectedConfiguration: (Ri = (Di = (Ai = this.stores) == null ? void 0 : Ai.schedulerConfig) == null ? void 0 : Di.state) == null ? void 0 : Ri.selectedConfiguration })), ((Ii = (Mi = this.stores) == null ? void 0 : Mi.schedulerConfig) == null ? void 0 : Ii.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && !Ke && h$3("nylas-editor-tabs", { mode: "composable" }, h$3(ExpressFlow, { experimentalFeatures: (Fi = (Li = (Pi = this.stores) == null ? void 0 : Pi.schedulerConfig) == null ? void 0 : Li.state) == null ? void 0 : Fi.experimentalFeatures, selectedEventType: ((ji = (Ni = (Bi = this.stores) == null ? void 0 : Bi.schedulerConfig) == null ? void 0 : Ni.state) == null ? void 0 : ji.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (Oi = (qi = this.stores) == null ? void 0 : qi.schedulerConfig) == null ? void 0 : Oi.state.currentUser, calendars: (zi = (Gi = (Ui = this.stores) == null ? void 0 : Ui.schedulerConfig) == null ? void 0 : Gi.state) == null ? void 0 : zi.calendars, selectedConfiguration: (Yi = (Ki = (Wi = this.stores) == null ? void 0 : Wi.schedulerConfig) == null ? void 0 : Ki.state) == null ? void 0 : Yi.selectedConfiguration })), ((Qi = (Xi = this.stores) == null ? void 0 : Xi.schedulerConfig) == null ? void 0 : Qi.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && Ke && h$3("nylas-editor-tabs-group", { key: ge, mode: this.mode }, this.mode === "composable" && h$3("slot", null), this.mode === "app" && ue && h$3("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: ge }, h$3("slot", { name: "custom-page-style-inputs" }))), ((ta = (ea = this.stores) == null ? void 0 : ea.schedulerConfig) == null ? void 0 : ta.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && !Ke && h$3("nylas-editor-tabs", { key: ge, mode: this.mode }, this.mode === "composable" && h$3("slot", null), this.mode === "app" && ue && h$3("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: ge }, h$3("slot", { name: "custom-page-style-inputs" }))), !((ia = (na = this.stores) == null ? void 0 : na.schedulerConfig) != null && ia.state.currentUser) && h$3("slot", { name: "login-required" }, h$3(LoginRequired, { authenticationUrl: this.authenticationUrl }))));
51088
+ }, part: "nse__content" }, ((si = (oi = this.stores) == null ? void 0 : oi.schedulerConfig) == null ? void 0 : si.state.currentUser) && this.stores.schedulerConfig.state.action === null && h$3("div", { class: "list-configurations", part: "nse__list-configurations" }, h$3("nylas-list-configurations", { exportparts: "nlc__create-new-cta, actions__dropdown, actions__dropdown-button, actions__dropdown-content, actions-Copy, actions-Preview, actions-Delete" })), ((ci = (li = this.stores) == null ? void 0 : li.schedulerConfig) == null ? void 0 : ci.state.currentUser) && this.stores.schedulerConfig.state.action === "create-select" && h$3("nylas-select-event-type", null), ((ui = (di = this.stores) == null ? void 0 : di.schedulerConfig) == null ? void 0 : ui.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && Ke && h$3("nylas-editor-tabs-group", { mode: "composable" }, h$3(ExpressFlow, { selectedEventType: ((vi = (hi = (pi = this.stores) == null ? void 0 : pi.schedulerConfig) == null ? void 0 : hi.state) == null ? void 0 : vi.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (Ei = (yi = this.stores) == null ? void 0 : yi.schedulerConfig) == null ? void 0 : Ei.state.currentUser, calendars: ($i = (mi = (Si = this.stores) == null ? void 0 : Si.schedulerConfig) == null ? void 0 : mi.state) == null ? void 0 : $i.calendars, selectedConfiguration: (wi = (_i = (gi = this.stores) == null ? void 0 : gi.schedulerConfig) == null ? void 0 : _i.state) == null ? void 0 : wi.selectedConfiguration })), ((fi = (Ci = this.stores) == null ? void 0 : Ci.schedulerConfig) == null ? void 0 : fi.state.currentUser) && this.stores.schedulerConfig.state.action === "create" && !Ke && h$3("nylas-editor-tabs", { mode: "composable" }, h$3(ExpressFlow, { selectedEventType: ((Ti = (bi = (ki = this.stores) == null ? void 0 : ki.schedulerConfig) == null ? void 0 : bi.state) == null ? void 0 : Ti.selectedEventType) || CONFIGURATION_EVENT_TYPE.one_on_one, currentUser: (Ai = (xi = this.stores) == null ? void 0 : xi.schedulerConfig) == null ? void 0 : Ai.state.currentUser, calendars: (Mi = (Ri = (Di = this.stores) == null ? void 0 : Di.schedulerConfig) == null ? void 0 : Ri.state) == null ? void 0 : Mi.calendars, selectedConfiguration: (Li = (Pi = (Ii = this.stores) == null ? void 0 : Ii.schedulerConfig) == null ? void 0 : Pi.state) == null ? void 0 : Li.selectedConfiguration })), ((Bi = (Ni = this.stores) == null ? void 0 : Ni.schedulerConfig) == null ? void 0 : Bi.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && Ke && h$3("nylas-editor-tabs-group", { key: ge, mode: this.mode }, this.mode === "composable" && h$3("slot", null), this.mode === "app" && ue && h$3("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: ge }, h$3("slot", { name: "custom-page-style-inputs" }))), ((zi = (Hi = this.stores) == null ? void 0 : Hi.schedulerConfig) == null ? void 0 : zi.state.currentUser) && this.stores.schedulerConfig.state.action === "edit" && !Ke && h$3("nylas-editor-tabs", { key: ge, mode: this.mode }, this.mode === "composable" && h$3("slot", null), this.mode === "app" && ue && h$3("div", { style: { display: "none" }, slot: "custom-page-style-inputs", key: ge }, h$3("slot", { name: "custom-page-style-inputs" }))), !((Oi = (qi = this.stores) == null ? void 0 : qi.schedulerConfig) != null && Oi.state.currentUser) && h$3("slot", { name: "login-required" }, h$3(LoginRequired, { authenticationUrl: this.authenticationUrl }))));
51059
51089
  }
51060
51090
  get host() {
51061
51091
  return this;
@@ -51065,7 +51095,8 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
51065
51095
  configurationId: ["configurationIdChanged"],
51066
51096
  localization: ["updateLocalization"],
51067
51097
  nylasBranding: ["updateNylasBranding"],
51068
- experimentalFeatures: ["updateExperimentalFeatures"]
51098
+ experimentalFeatures: ["updateExperimentalFeatures"],
51099
+ enableEventTypes: ["updateEnableEventTypes"]
51069
51100
  };
51070
51101
  }
51071
51102
  static get style() {
@@ -51089,6 +51120,7 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
51089
51120
  localization: [16],
51090
51121
  nylasBranding: [4, "nylas-branding"],
51091
51122
  experimentalFeatures: [16],
51123
+ enableEventTypes: [16],
51092
51124
  automaticComponentRegistration: [32],
51093
51125
  selectedLanguage: [32],
51094
51126
  langVersion: [32],
@@ -51098,7 +51130,8 @@ const nylasSchedulerEditorCss = ':host{display:flex;flex-direction:column;overfl
51098
51130
  configurationId: ["configurationIdChanged"],
51099
51131
  localization: ["updateLocalization"],
51100
51132
  nylasBranding: ["updateNylasBranding"],
51101
- experimentalFeatures: ["updateExperimentalFeatures"]
51133
+ experimentalFeatures: ["updateExperimentalFeatures"],
51134
+ enableEventTypes: ["updateEnableEventTypes"]
51102
51135
  }]);
51103
51136
  function defineCustomElement$1() {
51104
51137
  if (typeof customElements > "u")