@nylas/web-elements 0.0.0-test-20250318204811 → 0.0.0-test-20250320180623

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 (137) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +13 -13
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4813 -4805
  3. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +1 -1
  4. package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js.map +1 -1
  5. package/dist/cjs/checkmark-icon_15.cjs.entry.js +1 -1
  6. package/dist/cjs/checkmark-icon_15.cjs.entry.js.map +1 -1
  7. package/dist/cjs/google-logo-icon_6.cjs.entry.js +9 -9
  8. package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
  9. package/dist/cjs/input-dropdown_2.cjs.entry.js +2 -2
  10. package/dist/cjs/input-dropdown_2.cjs.entry.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +14 -10
  13. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
  14. package/dist/cjs/nylas-event-calendar_3.cjs.entry.js.map +1 -1
  15. package/dist/cjs/nylas-key-points.cjs.entry.js +1 -1
  16. package/dist/cjs/nylas-key-points.cjs.entry.js.map +1 -1
  17. package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
  18. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
  19. package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
  20. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  21. package/dist/cjs/{scheduler-store-599282e9.js → scheduler-store-df3a9a3a.js} +10 -2
  22. package/dist/cjs/scheduler-store-df3a9a3a.js.map +1 -0
  23. package/dist/collection/components/design-system/input-dropdown/input-dropdown.css +1 -1
  24. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +3 -3
  25. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js.map +1 -1
  26. package/dist/collection/components/nylas-notebook/nylas-key-points/nylas-key-points.js +4 -3
  27. package/dist/collection/components/nylas-notebook/nylas-key-points/nylas-key-points.js.map +1 -1
  28. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js +13 -11
  29. package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
  30. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +3 -3
  31. package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
  32. package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js +8 -6
  33. package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js.map +1 -1
  34. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js +8 -10
  35. package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js.map +1 -1
  36. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +2 -2
  37. package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
  38. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +11 -11
  39. package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
  40. package/dist/collection/components/scheduler-editor/nylas-event-calendar/nylas-event-calendar.js +2 -2
  41. package/dist/collection/components/scheduler-editor/nylas-event-calendar/nylas-event-calendar.js.map +1 -1
  42. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.css +1 -3
  43. package/dist/collection/components/scheduler-editor/nylas-reminder-time/nylas-reminder-time.css +1 -3
  44. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js +1 -29
  45. package/dist/collection/connector/nylas-scheduler-connector/errors/index.js.map +1 -1
  46. package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
  47. package/dist/collection/types/index.js +29 -0
  48. package/dist/collection/types/index.js.map +1 -1
  49. package/dist/components/input-dropdown2.js +1 -1
  50. package/dist/components/input-dropdown2.js.map +1 -1
  51. package/dist/components/nylas-booked-event-card2.js +9 -5
  52. package/dist/components/nylas-booked-event-card2.js.map +1 -1
  53. package/dist/components/nylas-booking-form2.js +3 -3
  54. package/dist/components/nylas-booking-form2.js.map +1 -1
  55. package/dist/components/nylas-editor-tabs-group2.js +7 -7
  56. package/dist/components/nylas-editor-tabs-group2.js.map +1 -1
  57. package/dist/components/nylas-editor-tabs2.js +2 -2
  58. package/dist/components/nylas-event-calendar2.js.map +1 -1
  59. package/dist/components/nylas-event-duration2.js +1 -1
  60. package/dist/components/nylas-event-duration2.js.map +1 -1
  61. package/dist/components/nylas-key-points.js +1 -1
  62. package/dist/components/nylas-key-points.js.map +1 -1
  63. package/dist/components/nylas-organizer-confirmation-card2.js +4 -4
  64. package/dist/components/nylas-organizer-confirmation-card2.js.map +1 -1
  65. package/dist/components/nylas-reminder-time2.js +1 -1
  66. package/dist/components/nylas-reminder-time2.js.map +1 -1
  67. package/dist/components/nylas-scheduling.js +2 -2
  68. package/dist/components/nylas-scheduling.js.map +1 -1
  69. package/dist/components/scheduler-store.js +9 -1
  70. package/dist/components/scheduler-store.js.map +1 -1
  71. package/dist/components/time-period-selector2.js +1 -1
  72. package/dist/components/time-period-selector2.js.map +1 -1
  73. package/dist/esm/calendar-agenda-fill-icon_36.entry.js +1 -1
  74. package/dist/esm/calendar-agenda-fill-icon_36.entry.js.map +1 -1
  75. package/dist/esm/checkmark-icon_15.entry.js +1 -1
  76. package/dist/esm/checkmark-icon_15.entry.js.map +1 -1
  77. package/dist/esm/google-logo-icon_6.entry.js +9 -9
  78. package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
  79. package/dist/esm/input-dropdown_2.entry.js +2 -2
  80. package/dist/esm/input-dropdown_2.entry.js.map +1 -1
  81. package/dist/esm/loader.js +1 -1
  82. package/dist/esm/nylas-booked-event-card_12.entry.js +14 -10
  83. package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
  84. package/dist/esm/nylas-event-calendar_3.entry.js.map +1 -1
  85. package/dist/esm/nylas-key-points.entry.js +1 -1
  86. package/dist/esm/nylas-key-points.entry.js.map +1 -1
  87. package/dist/esm/nylas-provider.entry.js +1 -1
  88. package/dist/esm/nylas-scheduling.entry.js +3 -3
  89. package/dist/esm/nylas-scheduling.entry.js.map +1 -1
  90. package/dist/esm/nylas-web-elements.js +1 -1
  91. package/dist/esm/{scheduler-store-59b3f29b.js → scheduler-store-ef022be9.js} +10 -2
  92. package/dist/esm/scheduler-store-ef022be9.js.map +1 -0
  93. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  94. package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
  95. package/dist/nylas-web-elements/p-13a6c977.entry.js +2 -0
  96. package/dist/nylas-web-elements/p-13a6c977.entry.js.map +1 -0
  97. package/dist/nylas-web-elements/{p-a6fbfec1.entry.js → p-1fb32e0e.entry.js} +2 -2
  98. package/dist/nylas-web-elements/{p-40e57350.entry.js → p-463d9c42.entry.js} +2 -2
  99. package/dist/nylas-web-elements/{p-40e57350.entry.js.map → p-463d9c42.entry.js.map} +1 -1
  100. package/dist/nylas-web-elements/p-4e20f21a.entry.js.map +1 -1
  101. package/dist/nylas-web-elements/{p-ef506ab3.entry.js → p-55886492.entry.js} +2 -2
  102. package/dist/nylas-web-elements/p-55886492.entry.js.map +1 -0
  103. package/dist/nylas-web-elements/p-731a856b.js +2 -0
  104. package/dist/nylas-web-elements/p-731a856b.js.map +1 -0
  105. package/dist/nylas-web-elements/{p-4130014c.entry.js → p-74dfe60e.entry.js} +2 -2
  106. package/dist/nylas-web-elements/{p-4130014c.entry.js.map → p-74dfe60e.entry.js.map} +1 -1
  107. package/dist/nylas-web-elements/p-a6a52e17.entry.js +2 -0
  108. package/dist/nylas-web-elements/p-a6a52e17.entry.js.map +1 -0
  109. package/dist/nylas-web-elements/{p-8841358d.entry.js → p-a906d005.entry.js} +2 -2
  110. package/dist/nylas-web-elements/p-a906d005.entry.js.map +1 -0
  111. package/dist/nylas-web-elements/p-ab3ba8dc.entry.js +2 -0
  112. package/dist/nylas-web-elements/p-ab3ba8dc.entry.js.map +1 -0
  113. package/dist/types/components/design-system/time-period-selector/time-period-selector.d.ts +1 -1
  114. package/dist/types/components/nylas-notebook/nylas-key-points/nylas-key-points.d.ts +1 -6
  115. package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts +2 -1
  116. package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +1 -1
  117. package/dist/types/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.d.ts +1 -1
  118. package/dist/types/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.d.ts +5 -5
  119. package/dist/types/components/scheduler-editor/nylas-event-calendar/nylas-event-calendar.d.ts +1 -2
  120. package/dist/types/components.d.ts +12 -12
  121. package/dist/types/connector/nylas-scheduler-connector/errors/index.d.ts +1 -31
  122. package/dist/types/connector/shared/api/scheduler.d.ts +1 -1
  123. package/dist/types/types/index.d.ts +36 -0
  124. package/package.json +2 -2
  125. package/dist/cjs/scheduler-store-599282e9.js.map +0 -1
  126. package/dist/esm/scheduler-store-59b3f29b.js.map +0 -1
  127. package/dist/nylas-web-elements/p-790c6070.js +0 -2
  128. package/dist/nylas-web-elements/p-790c6070.js.map +0 -1
  129. package/dist/nylas-web-elements/p-8841358d.entry.js.map +0 -1
  130. package/dist/nylas-web-elements/p-ac757a7b.entry.js +0 -2
  131. package/dist/nylas-web-elements/p-ac757a7b.entry.js.map +0 -1
  132. package/dist/nylas-web-elements/p-b0f18064.entry.js +0 -2
  133. package/dist/nylas-web-elements/p-b0f18064.entry.js.map +0 -1
  134. package/dist/nylas-web-elements/p-ef506ab3.entry.js.map +0 -1
  135. package/dist/nylas-web-elements/p-f99b677f.entry.js +0 -2
  136. package/dist/nylas-web-elements/p-f99b677f.entry.js.map +0 -1
  137. /package/dist/nylas-web-elements/{p-a6fbfec1.entry.js.map → p-1fb32e0e.entry.js.map} +0 -0
@@ -35,6 +35,10 @@ const NylasBookedEventCard = class {
35
35
  this.handleCancelBookingButtonClicked = () => {
36
36
  const startTime = new Date(this.selectedTimeslot.start_time);
37
37
  const minCancellationNotice = this.configSettings?.scheduler?.min_cancellation_notice;
38
+ if (!minCancellationNotice) {
39
+ this.cancelBookingButtonClicked.emit({ bookingId: this.eventInfo.booking_id });
40
+ return;
41
+ }
38
42
  const dateTillCancellation = startTime.getTime() - minCancellationNotice * 60 * 1000;
39
43
  if (dateTillCancellation < new Date().getTime()) {
40
44
  this.cancelBookedEventValidationError.emit({
@@ -114,17 +118,17 @@ const NylasBookedEventCard = class {
114
118
  render() {
115
119
  const bookingType = this.configSettings?.booking_type;
116
120
  const isManualConfirmation = bookingType && bookingType !== 'booking';
117
- return (index.h(index.Host, { key: '7db019b852ab70270adb7dc9e958e6e7381a26b3', part: "nbec" }, index.h("div", { key: 'f309b22194e70799fd0333c899e3ef6dc2cadda2', class: "nylas-booked-event-card" }, index.h("div", { key: 'fda9f6f52eb02449553e3a77f02a9bd9ccc1ffb1', class: "booked-event-timezone" }, index.h("globe-icon", { key: '86e8540c01d68d6b661f1146bbe24849023ce1bd' }), constants.TIMEZONE_MAP[this.selectedTimezone]), index.h("div", { key: '1038dc03151ab6a2b961d5f4ded96ba7445d1a54', class: "event-card-wrapper", part: "nbec__card" }, index.h("div", { key: '62143a2984318fb91ac9e8211901dddc99481ca2', class: "calendar-icon" }, index.h("calendar-check-icon", { key: '8c2b99dcc14a65e556648d11fd36fbabda5c6e60' })), index.h("div", { key: 'ceea5100d690b09d4819486a305d639f483522f6', class: "booked-event-header" }, index.h("h2", { key: 'af360b0c2fd115edd22e6fd4977819c77c83aa64', slot: "card-title", part: "nbec__title" }, !!this.rescheduleBookingId && !this.isLoading
121
+ return (index.h(index.Host, { key: 'dbe7087b88cf1eff27686e9a7ef321729bea3c8b', part: "nbec" }, index.h("div", { key: 'a219990cac8a7f0e7935f03cf1c57ea137564958', class: "nylas-booked-event-card" }, index.h("div", { key: 'e19d395321ec182846f9fa119c69c7f41ee5f6b2', class: "booked-event-timezone" }, index.h("globe-icon", { key: 'dd47b506f0528f16875476dc53b27e64f2913fb5' }), constants.TIMEZONE_MAP[this.selectedTimezone]), index.h("div", { key: '464f20ff077e64638a03afde99478f7d83409408', class: "event-card-wrapper", part: "nbec__card" }, index.h("div", { key: '5a92d2da8c1b3df9b2d05f6c269478868dff32df', class: "calendar-icon" }, index.h("calendar-check-icon", { key: 'f8611aa6b551338b403f93d2f2395cd9128c9a09' })), index.h("div", { key: 'f8988cf31256a020ab3e9a98be8577bcd3bc8490', class: "booked-event-header" }, index.h("h2", { key: 'a2396483be6d7db392504c6c5f20f335ae14bf74', slot: "card-title", part: "nbec__title" }, !!this.rescheduleBookingId && !this.isLoading
118
122
  ? `${utils.instance.t('bookingRescheduled')}`
119
123
  : isManualConfirmation && !this.isLoading
120
124
  ? `${utils.instance.t('bookingSent')}`
121
- : `${utils.instance.t('bookingConfirmed')}`, "!"), index.h("div", { key: 'afad927b2a1e56191d73705c93c6b285305810f8', class: "card-description", part: "nbec__description" }, isManualConfirmation ? utils.instance.t('bookingSentDescription') : index.h("span", null, utils.instance.t('bookingConfirmedDescription')))), index.h("div", { key: '3a2fcc44ec16291970f5a043fea3c4e0e76cd961', class: "booking-date-time" }, index.h("checkmark-circle-icon", { key: '9e09cc4a564378d2a57eb26a20d051ff5783959f' }), index.h("h3", { key: '43751ff57685368a9ff566e042c8ac874a2b972d' }, utils.instance.t('bookingDateAndTimeHeader')), index.h("p", { key: 'aa873b56137af390655ff8c2eed3baaab44b287a' }, this.selectedTimeslot?.start_time
125
+ : `${utils.instance.t('bookingConfirmed')}`, "!"), index.h("div", { key: 'b614249b561dc5d050dae4603f651e29cbd1303f', class: "card-description", part: "nbec__description" }, isManualConfirmation ? utils.instance.t('bookingSentDescription') : index.h("span", null, utils.instance.t('bookingConfirmedDescription')))), index.h("div", { key: '9098b88ef02d44f0de7a77138a7daf554e516909', class: "booking-date-time" }, index.h("checkmark-circle-icon", { key: '6192670a3b53c9444db27aa1737813851934a213' }), index.h("h3", { key: '8e145c48421d913a68bc17e9eafd29121e8e069e' }, utils.instance.t('bookingDateAndTimeHeader')), index.h("p", { key: '1cf28fc04ff15a87b00a33ea44a5e650a18a231c' }, this.selectedTimeslot?.start_time
122
126
  ? utils.capitalizeFirstLetter(utils.formatBookedEventDate(this.selectedTimeslot?.start_time, this.selectedTimezone, constants.LANGUAGE_CODE_TO_LOCALE_MAP[this.selectedLanguage]))
123
- : '-', ' ', index.h("br", { key: 'b11b0651c07fa3a160511489e623054a0fc6b95a' }), this.startTime, " - ", this.endTime)), index.h("div", { key: 'b1945df2b3816cf9e012903910f913fab002f911', class: "booking-participants" }), !isManualConfirmation && (index.h("div", { class: "button-container" }, index.h("div", { class: {
127
+ : '-', ' ', index.h("br", { key: '0034a1c225c5e48784bad88c97957a896652b0f8' }), this.startTime, " - ", this.endTime)), index.h("div", { key: 'bc919a4c276cb2eb95c05f0409454b9c9dd75fcc', class: "booking-participants" }), !isManualConfirmation && (index.h("div", { class: "button-container" }, index.h("div", { class: {
124
128
  'footer': true,
125
129
  'no-footer': (this.configSettings?.scheduler?.hide_cancellation_options && this.configSettings?.scheduler?.hide_rescheduling_options) ||
126
130
  this.configSettings?.booking_type === 'organizer-confirmation',
127
- 'no-template-cols': this.configSettings?.scheduler?.hide_cancellation_options || this.configSettings?.scheduler?.hide_rescheduling_options,
131
+ 'no-template-cols': !!this.configSettings?.scheduler?.hide_cancellation_options || !!this.configSettings?.scheduler?.hide_rescheduling_options,
128
132
  } }, !this.configSettings?.scheduler?.hide_cancellation_options && (index.h("button-component", { variant: 'destructive', onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${utils.instance.t('cancelBookingButton')}`)), !this.configSettings?.scheduler?.hide_rescheduling_options && (index.h("button-component", { variant: 'basic', onClick: this.handleRescheduleButtonClicked, disabled: this.isLoading, part: "nbec__button-outline nbec__reschedule-cta" }, `${utils.instance.t('rescheduleBookingButton')}`)))))))));
129
133
  }
130
134
  get host() { return index.getElement(this); }
@@ -490,7 +494,7 @@ const NylasBookingForm = class {
490
494
  this.updateAdditionalFields(event.detail.name, event.detail.value);
491
495
  }
492
496
  render() {
493
- return (index.h(index.Host, { key: 'd1a22c96134f6b621cd51de89a334cbfd333e60d' }, index.h("form", { key: 'd69adbd943fc3b7a5c7f0cf53dbb9217f7334c32', onSubmit: e => this.bookButtonClickedHandler(e), ref: el => (this.formRef = el), noValidate: true }, index.h("div", { key: '21afe8342d7d3656a425d57b0b63ddc336961ab2', class: "nylas-booking-form", part: "nbf" }, index.h("div", { key: 'c8fb40d0bdfe56db0e88bba9e50ccf1b94ab446a', class: "input-wrapper", part: "nbf__input-wrapper" }, index.h("input-component", { key: '0d3560610674cff9b3aa8c6bd91ed2ebcaf6036e', label: utils.instance.t('name'), name: "name", id: "name", defaultValue: this.bookingInfo?.primaryParticipant?.name || this.configSettings?.booking?.guest?.name || this.name, placeholder: utils.instance.t('namePlaceholder'), type: "text", readOnly: this.bookingInfo?.primaryParticipant?.nameReadOnly || false, required: true, requiredError: utils.instance.t('fieldRequired', { field: utils.instance.t('name') }), patternError: utils.instance.t('invalidInputFormat', { field: utils.instance.t('name') }), part: "nbf__input-textfield" })), index.h("div", { key: '2abb2740328b4b999ba4d2b1e7345c592d50d27e', class: "input-wrapper", part: "nbf__input-wrapper" }, index.h("input-component", { key: 'cb5ab32f071f33f7374f9d4488fd4663963040bb', label: utils.instance.t('email'), name: "email", id: "email", pattern: emailRegex, defaultValue: this.bookingInfo?.primaryParticipant?.email || this.configSettings?.booking?.guest?.email || this.email, placeholder: utils.instance.t('emailPlaceholder'), type: "email", readOnly: this.bookingInfo?.primaryParticipant?.emailReadOnly || false, required: true, requiredError: utils.instance.t('fieldRequired', { field: utils.instance.t('email') }), patternError: utils.instance.t('invalidInputFormat', { field: utils.instance.t('email') }), part: "nbf__input-textfield" })), this.configSettings?.scheduler?.hide_additional_guests !== true && (index.h("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((email, index$1) => (index.h("div", { class: "input-wrapper button-wrapper" }, index.h("label", { class: {
497
+ return (index.h(index.Host, { key: '7cc64499522157e62c5703990effe640e032794f' }, index.h("form", { key: '14b8c18e942c2b30027dd4ab7e9f50be749b6d8a', onSubmit: e => this.bookButtonClickedHandler(e), ref: el => (this.formRef = el), noValidate: true }, index.h("div", { key: 'df00121eb4e6491ce7a758690c0bb2fdb3afd2c0', class: "nylas-booking-form", part: "nbf" }, index.h("div", { key: 'f54bdfab54066557fa20defcc90bba5b33211616', class: "input-wrapper", part: "nbf__input-wrapper" }, index.h("input-component", { key: 'b4fb9a672fb708ebc47084c9978fc6c526dda804', label: utils.instance.t('name'), name: "name", id: "name", defaultValue: this.bookingInfo?.primaryParticipant?.name || this.configSettings?.booking?.guest?.name || this.name, placeholder: utils.instance.t('namePlaceholder'), type: "text", readOnly: this.bookingInfo?.primaryParticipant?.nameReadOnly || false, required: true, requiredError: utils.instance.t('fieldRequired', { field: utils.instance.t('name') }), patternError: utils.instance.t('invalidInputFormat', { field: utils.instance.t('name') }), part: "nbf__input-textfield" })), index.h("div", { key: '44f5979a3aacfaedf6baa124ddf3cae468f71e19', class: "input-wrapper", part: "nbf__input-wrapper" }, index.h("input-component", { key: '5e72e7aa54a18a6a3b441a6d3d03c8b08246bc07', label: utils.instance.t('email'), name: "email", id: "email", pattern: emailRegex, defaultValue: this.bookingInfo?.primaryParticipant?.email || this.configSettings?.booking?.guest?.email || this.email, placeholder: utils.instance.t('emailPlaceholder'), type: "email", readOnly: this.bookingInfo?.primaryParticipant?.emailReadOnly || false, required: true, requiredError: utils.instance.t('fieldRequired', { field: utils.instance.t('email') }), patternError: utils.instance.t('invalidInputFormat', { field: utils.instance.t('email') }), part: "nbf__input-textfield" })), this.configSettings?.scheduler?.hide_additional_guests !== true && (index.h("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((email, index$1) => (index.h("div", { class: "input-wrapper button-wrapper" }, index.h("label", { class: {
494
498
  error: !!this.guestEmailErrors[index$1],
495
499
  } }, utils.instance.t('guestEmail')), index.h("div", { class: "guest-email-input" }, index.h("input", { type: "email", id: `guest-email-${index$1}`, maxLength: 100, class: {
496
500
  'guest-email': true,
@@ -522,14 +526,14 @@ const NylasBookingForm = class {
522
526
  return (index.h("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, index.h("nylas-date-component", { readOnly: fieldReadOnly, label: label, defaultValue: defaultValue, name: key, id: key, required: field.required, part: "nbf__date-component" })));
523
527
  case 'multi_select': {
524
528
  const defaultValues = defaultValue?.split(',').map(item => item.trim()) || [];
525
- return (index.h("div", null, index.h("multi-select-dropdown", { label: label, name: key, id: key, readOnly: fieldReadOnly, options: field.options?.map(option => ({ value: option, label: option, selected: defaultValues.includes(option) })), required: field.required, exportparts: "msd_dropdown: nbf__ms_dropdown, msd_dropdown-label: nbf__ms_dropdown-label, msd_dropdown-button: nbf__ms_dropdown-button, msd_dropdown-content: nbf__ms_dropdown-content, msd_dropdown_error: nbf__ms_dropdown_error, msd_dropdown-button--error: nbf__ms_dropdown-button--error" })));
529
+ return (index.h("div", null, index.h("multi-select-dropdown", { label: label, name: key, id: key, readOnly: fieldReadOnly, multipleOptionsSelectedLabel: utils.instance.t('multipleOptionsSelected'), options: field.options?.map(option => ({ value: option, label: option, selected: defaultValues.includes(option) })), required: field.required, exportparts: "msd_dropdown: nbf__ms_dropdown, msd_dropdown-label: nbf__ms_dropdown-label, msd_dropdown-button: nbf__ms_dropdown-button, msd_dropdown-content: nbf__ms_dropdown-content, msd_dropdown_error: nbf__ms_dropdown_error, msd_dropdown-button--error: nbf__ms_dropdown-button--error" })));
526
530
  }
527
531
  case 'metadata':
528
532
  return null;
529
533
  default:
530
534
  return (index.h("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, index.h("input-component", { label: label, name: key, id: key, type: field.type, readOnly: fieldReadOnly, defaultValue: defaultValue || '', requiredError: utils.instance.t('fieldRequired', { field: label }), required: field.required, part: "nbf__input-textfield" })));
531
535
  }
532
- })), index.h("div", { key: '1bc3a6c8cf879b03e39e58e9db2371d675a4e27a', class: "cta" }, index.h("button-component", { key: '5b38a653d10dc75faea9eaa2384985acd50f420a', variant: 'basic', class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, index.h("slot", { key: 'b69945ab562eca8770f3bbc39558a1b9bffdd168', name: "booking-form-back-label" }, `${utils.instance.t('backButton')}`)), index.h("button-component", { key: '97761d73e97c6d39fe7671f649c7f114c912efd3', variant: 'primary', isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, index.h("slot", { key: '5c0f6a7eb055463f288d8644073a00ddfbbbbc26', name: "booking-form-book-label" }, `${utils.instance.t('bookNowButton')}`))))));
536
+ })), index.h("div", { key: 'ceca163a222c8be615a63d36f15e1dcdad40c08c', class: "cta" }, index.h("button-component", { key: '300ecbc4bffd1abe7d89684000ea958457392650', variant: 'basic', class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, index.h("slot", { key: '3f3ab4bd1654a53941685961252c57138dbd9cc5', name: "booking-form-back-label" }, `${utils.instance.t('backButton')}`)), index.h("button-component", { key: 'f1e3ecf792c87519589b83678d607bf12756f209', variant: 'primary', isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, index.h("slot", { key: '75e9978b761610c37daf981520dc6e372e02fb38', name: "booking-form-book-label" }, `${utils.instance.t('bookNowButton')}`))))));
533
537
  }
534
538
  get host() { return index.getElement(this); }
535
539
  static get watchers() { return {
@@ -1505,10 +1509,10 @@ const NylasOrganizerConfirmationCard = class {
1505
1509
  this.action = null;
1506
1510
  }
1507
1511
  render() {
1508
- return (index.h(index.Host, { key: 'b72cdf56a652927b8bdc97bd1aca688190fae0c8', part: "nmcc" }, index.h("div", { key: 'af1403167427309c434934b2fd62d01121575fc3', class: "event-card-wrapper", part: "nmccc__card" }, index.h("div", { key: '421f5f62e390dd3631ee053ff55fbd9c45b3ca94', class: "calendar-icon" }, index.h("calendar-check-icon", { key: 'b1494af046b7c5e06f050ba267ff54ee21e70e5d' })), index.h("div", { key: 'd6ae4056fe5e195c9ac81107afbfcaeaeca32e18', class: "booked-event-header" }, index.h("h2", { key: 'f4d2b1c4b6c0304c7e25bd850d1c437bca9f4fd3', slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${utils.instance.t('bookingPendingTitle')}!`)), index.h("div", { key: 'e5ce4a9667fb170d72332481f623e2283b71d5d9', class: "manage-booking-description" }, index.h("p", { key: '86a9992bd9e3c652736b8b89d5535db140ee1910' }, utils.instance.t('bookingPendingnDescription'))), index.h("div", { key: '736f19da65dd1e8e782b6b12f534eaaf85d0acbb', class: {
1512
+ return (index.h(index.Host, { key: '222871895768a9e8125bf2c7332200e65872b475', part: "nmcc" }, index.h("div", { key: '4838e6be84dab176c13230870f3d0094f1054da9', class: "event-card-wrapper", part: "nmccc__card" }, index.h("div", { key: '004ce2abb9cc4654dd4278e6c7002b34b7346968', class: "calendar-icon" }, index.h("calendar-check-icon", { key: '6202df706f78fcd592738a33b1e052e94f88d6ff' })), index.h("div", { key: '5a1f583617511c35a29fa65f026820996941b707', class: "booked-event-header" }, index.h("h2", { key: '62b88591f4432538d3c57fa6af4142f0cd2c997f', slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${utils.instance.t('bookingPendingTitle')}!`)), index.h("div", { key: '838b6df023be444c1b1ce1dfc7df21cab18756e1', class: "manage-booking-description" }, index.h("p", { key: 'dc119292e92c4565fb84939284fb57f1fb2ec1f6' }, utils.instance.t('bookingPendingnDescription'))), index.h("div", { key: '31cadc6bfc0ae9f0adf93d159cff2261631e2281', class: {
1509
1513
  'footer': true,
1510
- 'no-footer': this.configSettings?.scheduler?.hide_cancellation_options && this.configSettings?.scheduler?.hide_rescheduling_options,
1511
- 'no-template-cols': this.configSettings?.scheduler?.hide_cancellation_options || this.configSettings?.scheduler?.hide_rescheduling_options,
1514
+ 'no-footer': !!this.configSettings?.scheduler?.hide_cancellation_options && !!this.configSettings?.scheduler?.hide_rescheduling_options,
1515
+ 'no-template-cols': !!this.configSettings?.scheduler?.hide_cancellation_options || !!this.configSettings?.scheduler?.hide_rescheduling_options,
1512
1516
  } }, !this.configSettings?.scheduler?.hide_cancellation_options && (index.h("button-component", { variant: 'destructive', onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === 'reject', part: "nmcc__button-outline nmcc__cancel-cta" }, `${utils.instance.t('rejectBookingButton')}`)), !this.configSettings?.scheduler?.hide_rescheduling_options && (index.h("button-component", { variant: 'basic', onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === 'confirm', part: "nmcc__button-outline nmcc__reschedule-cta" }, `${utils.instance.t('confirmBookingButton')}`))))));
1513
1517
  }
1514
1518
  get host() { return index.getElement(this); }