@nylas/react 2.0.6 → 2.1.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 (176) hide show
  1. package/dist/add-circle-icon_2.entry-8c3bb0bb.cjs +1 -0
  2. package/dist/{add-circle-icon_2.entry-f6f8b5e5.js → add-circle-icon_2.entry-a3daf6c4.js} +6 -4
  3. package/dist/archive-icon.entry-46ad0ff3.cjs +1 -0
  4. package/dist/{archive-icon.entry-b3a76711.js → archive-icon.entry-d5141486.js} +6 -4
  5. package/dist/{arrow-icon.entry-9b3441aa.js → arrow-icon.entry-1b89ce78.js} +6 -4
  6. package/dist/arrow-icon.entry-f696de4f.cjs +1 -0
  7. package/dist/bold-icon.entry-7827cd4e.cjs +1 -0
  8. package/dist/{bold-icon.entry-0749a116.js → bold-icon.entry-c117b4cf.js} +6 -4
  9. package/dist/button-component_2.entry-8cd4c5f3.cjs +1 -0
  10. package/dist/{button-component_2.entry-6eb55e97.js → button-component_2.entry-e68caa9b.js} +5 -3
  11. package/dist/{calendar-agenda-fill-icon_37.entry-4adf73a2.js → calendar-agenda-fill-icon_37.entry-52bdc8b3.js} +201 -198
  12. package/dist/calendar-agenda-fill-icon_37.entry-8c592cfa.cjs +6 -0
  13. package/dist/calendar-cancel-icon.entry-7facfa05.cjs +1 -0
  14. package/dist/{calendar-cancel-icon.entry-2a29cb3f.js → calendar-cancel-icon.entry-f5f1d499.js} +8 -6
  15. package/dist/{calendar-check-icon.entry-c12b63ea.js → calendar-check-icon.entry-55320137.js} +6 -4
  16. package/dist/calendar-check-icon.entry-72108702.cjs +1 -0
  17. package/dist/{calendar-icon.entry-e82a5169.js → calendar-icon.entry-afea361e.js} +9 -7
  18. package/dist/calendar-icon.entry-f5c6730f.cjs +1 -0
  19. package/dist/checkbox-component.entry-5722d263.cjs +1 -0
  20. package/dist/{checkbox-component.entry-59612a67.js → checkbox-component.entry-89fa6edd.js} +3 -1
  21. package/dist/checkbox-group_4.entry-30e8af17.cjs +28 -0
  22. package/dist/{checkbox-group_4.entry-7df47ad4.js → checkbox-group_4.entry-51f03009.js} +6 -3
  23. package/dist/checkmark-circle-icon.entry-ae11049d.cjs +1 -0
  24. package/dist/{checkmark-circle-icon.entry-677b0def.js → checkmark-circle-icon.entry-dfe67e22.js} +8 -6
  25. package/dist/{checkmark-icon_15.entry-9fd0ec58.js → checkmark-icon_15.entry-4c3979db.js} +21 -18
  26. package/dist/checkmark-icon_15.entry-e59c0f53.cjs +5 -0
  27. package/dist/{chevron-icon_3.entry-f0ad71d9.js → chevron-icon_3.entry-1f3c3ca6.js} +3 -1
  28. package/dist/chevron-icon_3.entry-ea791750.cjs +1 -0
  29. package/dist/clock-icon_4.entry-172fed74.cjs +1 -0
  30. package/dist/{clock-icon_4.entry-e7472d5f.js → clock-icon_4.entry-78878cb8.js} +3 -1
  31. package/dist/customParseFormat-b5d95b34-a6b6fcba.cjs +1 -0
  32. package/dist/{customParseFormat-eeec04f5-3ad26beb.js → customParseFormat-b5d95b34-ce80820c.js} +1 -1
  33. package/dist/delete-icon.entry-a8c0bf03.cjs +1 -0
  34. package/dist/{delete-icon.entry-813429d7.js → delete-icon.entry-cebdc90f.js} +7 -5
  35. package/dist/document-refresh-icon.entry-2d9a529d.cjs +1 -0
  36. package/dist/{document-refresh-icon.entry-c224c778.js → document-refresh-icon.entry-8780a2b8.js} +3 -1
  37. package/dist/{feedbackSync-0ebd0eda-e12b00d5.cjs → feedbackSync-92220b42-fbebe1f9.cjs} +1 -1
  38. package/dist/{feedbackSync-0ebd0eda-803c3ebe.js → feedbackSync-92220b42-fd5f5610.js} +1 -1
  39. package/dist/folder-icon.entry-3e61ccca.cjs +1 -0
  40. package/dist/{folder-icon.entry-9c1f7c41.js → folder-icon.entry-6ffd5191.js} +6 -4
  41. package/dist/forward-icon.entry-c7d88db8.cjs +1 -0
  42. package/dist/{forward-icon.entry-4ac22c16.js → forward-icon.entry-c9c4bf5b.js} +5 -3
  43. package/dist/globe-icon.entry-0b93cab8.cjs +1 -0
  44. package/dist/{globe-icon.entry-7798c93b.js → globe-icon.entry-7c0dca7b.js} +5 -3
  45. package/dist/{google-logo-icon_6.entry-b198c90a.js → google-logo-icon_6.entry-deef91ee.js} +177 -174
  46. package/dist/google-logo-icon_6.entry-e25ce3e7.cjs +2 -0
  47. package/dist/google-meet-icon_5.entry-214347f0.cjs +1 -0
  48. package/dist/{google-meet-icon_5.entry-fa6dc1dc.js → google-meet-icon_5.entry-f8b5a92a.js} +3 -1
  49. package/dist/{inbox-icon.entry-1b123e64.js → inbox-icon.entry-873062c3.js} +7 -5
  50. package/dist/inbox-icon.entry-f08f2fd5.cjs +1 -0
  51. package/dist/index-025be398.js +7187 -0
  52. package/dist/index-c510313d-1318f67a.js +289 -0
  53. package/dist/index-c510313d-b0508eee.cjs +1 -0
  54. package/dist/index-f42fe591.cjs +65 -0
  55. package/dist/{index.es-57d4a08f-b0a2ca19.cjs → index.es-488bc919-d02dd50a.cjs} +1 -1
  56. package/dist/{index.es-57d4a08f-184cbc01.js → index.es-488bc919-ea63a7e9.js} +1 -1
  57. package/dist/info-icon_2.entry-442b9097.cjs +1 -0
  58. package/dist/{info-icon_2.entry-f8b72d08.js → info-icon_2.entry-60fb8648.js} +3 -1
  59. package/dist/{input-component.entry-44607977.js → input-component.entry-5898a52e.js} +19 -16
  60. package/dist/input-component.entry-7274fd28.cjs +1 -0
  61. package/dist/{input-dropdown_2.entry-6898b420.js → input-dropdown_2.entry-4534436c.js} +4 -1
  62. package/dist/input-dropdown_2.entry-9b72f637.cjs +1 -0
  63. package/dist/{italic-icon.entry-16aa1ada.js → italic-icon.entry-62052cd8.js} +6 -4
  64. package/dist/italic-icon.entry-9bdbbd37.cjs +1 -0
  65. package/dist/lib/connect/index.d.ts +6 -0
  66. package/dist/lib/connect/types.d.ts +2 -0
  67. package/dist/lib/connect/useNylasConnect.d.ts +28 -0
  68. package/dist/lib/connect/useNylasConnect.test.d.ts +1 -0
  69. package/dist/lib/elements/index.d.ts +1 -1
  70. package/dist/lib/index.d.ts +1 -0
  71. package/dist/multi-select-dropdown.entry-77752d46.cjs +1 -0
  72. package/dist/{multi-select-dropdown.entry-50133d29.js → multi-select-dropdown.entry-9c9d05c1.js} +4 -1
  73. package/dist/{nylas-booked-event-card_11.entry-56768a09.js → nylas-booked-event-card_11.entry-32b2e9f1.js} +139 -136
  74. package/dist/nylas-booked-event-card_11.entry-4aba5146.cjs +1 -0
  75. package/dist/nylas-date-component_2.entry-6b058796.cjs +1 -0
  76. package/dist/{nylas-date-component_2.entry-df957150.js → nylas-date-component_2.entry-a869519f.js} +10 -7
  77. package/dist/{nylas-form-card.entry-7724e61f.js → nylas-form-card.entry-5390459f.js} +9 -6
  78. package/dist/nylas-form-card.entry-c2f34d73.cjs +1 -0
  79. package/dist/nylas-notification_2.entry-054392cf.cjs +1 -0
  80. package/dist/{nylas-notification_2.entry-af763b6c.js → nylas-notification_2.entry-f46e88e5.js} +4 -1
  81. package/dist/{nylas-scheduler-editor.entry-0e4ba46d.js → nylas-scheduler-editor.entry-40a48f47.js} +93 -35
  82. package/dist/nylas-scheduler-editor.entry-e29fdf07.cjs +2 -0
  83. package/dist/{nylas-scheduling.entry-1b207e91.js → nylas-scheduling.entry-115b1752.js} +17 -14
  84. package/dist/nylas-scheduling.entry-79cb1d9c.cjs +1 -0
  85. package/dist/person-icon.entry-2cae306c.cjs +1 -0
  86. package/dist/{person-icon.entry-f2979577.js → person-icon.entry-fd668b89.js} +6 -4
  87. package/dist/{play-icon.entry-d387df5d.js → play-icon.entry-7fc3c0fd.js} +5 -3
  88. package/dist/play-icon.entry-9989a520.cjs +1 -0
  89. package/dist/radio-button-group.entry-03385b5f.cjs +1 -0
  90. package/dist/{radio-button-group.entry-45dbd2df.js → radio-button-group.entry-9df82cd0.js} +7 -5
  91. package/dist/react.cjs +1 -1
  92. package/dist/react.js +142 -127
  93. package/dist/refresh-icon.entry-310954ba.cjs +1 -0
  94. package/dist/{refresh-icon.entry-777cff27.js → refresh-icon.entry-c56e5623.js} +8 -6
  95. package/dist/register-component-3acd57e7-5a79a90a.cjs +1 -0
  96. package/dist/{register-component-0aad9e3d-b395364a.js → register-component-3acd57e7-cb09c05e.js} +15 -14
  97. package/dist/{reply-all-icon.entry-e2dd6da9.js → reply-all-icon.entry-32e0e000.js} +7 -5
  98. package/dist/reply-all-icon.entry-68388f97.cjs +1 -0
  99. package/dist/{reply-icon.entry-00a97d9f.js → reply-icon.entry-3ac2e736.js} +6 -4
  100. package/dist/reply-icon.entry-e616a9a4.cjs +1 -0
  101. package/dist/{sent-icon.entry-949cf214.js → sent-icon.entry-0622ed04.js} +6 -4
  102. package/dist/sent-icon.entry-543eb3c4.cjs +1 -0
  103. package/dist/{spam-icon.entry-3baf9e79.js → spam-icon.entry-74bcfd4f.js} +3 -1
  104. package/dist/spam-icon.entry-e341ee3e.cjs +1 -0
  105. package/dist/{star-icon.entry-9fdb278b.js → star-icon.entry-864d2bf9.js} +5 -3
  106. package/dist/star-icon.entry-c90d40f6.cjs +1 -0
  107. package/dist/{stop-icon.entry-efa1ea66.js → stop-icon.entry-835908c5.js} +3 -1
  108. package/dist/stop-icon.entry-ffc46b42.cjs +1 -0
  109. package/dist/{textarea-component.entry-7c6fc4d8.js → textarea-component.entry-6adcf6a6.js} +12 -9
  110. package/dist/textarea-component.entry-dae8eb5c.cjs +1 -0
  111. package/dist/toggle-switch.entry-5ee29867.cjs +1 -0
  112. package/dist/{toggle-switch.entry-a0295d17.js → toggle-switch.entry-ff2ccb75.js} +7 -5
  113. package/dist/{translate-icon.entry-219cab17.js → translate-icon.entry-372dd808.js} +3 -1
  114. package/dist/translate-icon.entry-5606067d.cjs +1 -0
  115. package/dist/{trash-fill-icon.entry-03c90559.js → trash-fill-icon.entry-01b4379e.js} +3 -1
  116. package/dist/trash-fill-icon.entry-daed6c0a.cjs +1 -0
  117. package/dist/underline-icon.entry-2020ee64.cjs +1 -0
  118. package/dist/{underline-icon.entry-58fa18b5.js → underline-icon.entry-464b900d.js} +5 -3
  119. package/dist/utils-31933f5d-15041585.js +17878 -0
  120. package/dist/utils-31933f5d-1d4c81ab.cjs +54 -0
  121. package/package.json +4 -3
  122. package/dist/abstract-provider-45ada3b4-31e3ed72.cjs +0 -1
  123. package/dist/abstract-provider-45ada3b4-abd3105d.js +0 -187
  124. package/dist/add-circle-icon_2.entry-48953f9c.cjs +0 -1
  125. package/dist/archive-icon.entry-e2880dc7.cjs +0 -1
  126. package/dist/arrow-icon.entry-84d1e26c.cjs +0 -1
  127. package/dist/bold-icon.entry-e1d8ab5e.cjs +0 -1
  128. package/dist/button-component_2.entry-1a817230.cjs +0 -1
  129. package/dist/calendar-agenda-fill-icon_37.entry-0ca8b9f4.cjs +0 -6
  130. package/dist/calendar-cancel-icon.entry-e0dee585.cjs +0 -1
  131. package/dist/calendar-check-icon.entry-7f96d456.cjs +0 -1
  132. package/dist/calendar-icon.entry-a2d19ff2.cjs +0 -1
  133. package/dist/checkbox-component.entry-ddce70bc.cjs +0 -1
  134. package/dist/checkbox-group_4.entry-3311da64.cjs +0 -28
  135. package/dist/checkmark-circle-icon.entry-67df713b.cjs +0 -1
  136. package/dist/checkmark-icon_15.entry-2121e1b7.cjs +0 -5
  137. package/dist/chevron-icon_3.entry-1a42235c.cjs +0 -1
  138. package/dist/clock-icon_4.entry-88822a84.cjs +0 -1
  139. package/dist/customParseFormat-eeec04f5-d5957784.cjs +0 -1
  140. package/dist/delete-icon.entry-3cb58910.cjs +0 -1
  141. package/dist/document-refresh-icon.entry-ae361b0b.cjs +0 -1
  142. package/dist/folder-icon.entry-107841af.cjs +0 -1
  143. package/dist/forward-icon.entry-6cec1f94.cjs +0 -1
  144. package/dist/globe-icon.entry-909c1382.cjs +0 -1
  145. package/dist/google-logo-icon_6.entry-1f4ad364.cjs +0 -2
  146. package/dist/google-meet-icon_5.entry-82d87e77.cjs +0 -1
  147. package/dist/inbox-icon.entry-84f96d31.cjs +0 -1
  148. package/dist/index-140eb219.js +0 -24953
  149. package/dist/index-d8a42c15.cjs +0 -118
  150. package/dist/info-icon_2.entry-f09e7dae.cjs +0 -1
  151. package/dist/input-component.entry-fd38953d.cjs +0 -1
  152. package/dist/input-dropdown_2.entry-4c2e5e1a.cjs +0 -1
  153. package/dist/italic-icon.entry-beef2254.cjs +0 -1
  154. package/dist/multi-select-dropdown.entry-c82cd6d4.cjs +0 -1
  155. package/dist/nylas-booked-event-card_11.entry-eb4b3c5c.cjs +0 -1
  156. package/dist/nylas-date-component_2.entry-93f2f352.cjs +0 -1
  157. package/dist/nylas-form-card.entry-4d95a4ad.cjs +0 -1
  158. package/dist/nylas-notification_2.entry-448c2cb8.cjs +0 -1
  159. package/dist/nylas-scheduler-editor.entry-e36cdd9d.cjs +0 -2
  160. package/dist/nylas-scheduling.entry-904dd10e.cjs +0 -1
  161. package/dist/person-icon.entry-70d46ca6.cjs +0 -1
  162. package/dist/play-icon.entry-c2cf0b12.cjs +0 -1
  163. package/dist/radio-button-group.entry-94e06176.cjs +0 -1
  164. package/dist/refresh-icon.entry-5ab20f26.cjs +0 -1
  165. package/dist/register-component-0aad9e3d-d2f2e543.cjs +0 -1
  166. package/dist/reply-all-icon.entry-3c90510e.cjs +0 -1
  167. package/dist/reply-icon.entry-d96478be.cjs +0 -1
  168. package/dist/sent-icon.entry-2d16da4e.cjs +0 -1
  169. package/dist/spam-icon.entry-7ee61730.cjs +0 -1
  170. package/dist/star-icon.entry-dc702d73.cjs +0 -1
  171. package/dist/stop-icon.entry-b5ae7e55.cjs +0 -1
  172. package/dist/textarea-component.entry-247aca42.cjs +0 -1
  173. package/dist/toggle-switch.entry-d52b0338.cjs +0 -1
  174. package/dist/translate-icon.entry-985b3b29.cjs +0 -1
  175. package/dist/trash-fill-icon.entry-4dfd7d24.cjs +0 -1
  176. package/dist/underline-icon.entry-c60b77a6.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-f42fe591.cjs"),Y=require("./index-c510313d-b0508eee.cjs"),l=require("./utils-31933f5d-1d4c81ab.cjs"),x=require("./feedbackSync-92220b42-fbebe1f9.cjs"),M=require("./index.es-488bc919-d02dd50a.cjs"),O=require("./constants-f51538ef-cd2a67c4.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");class K{constructor(){this.component=e=>{const t=x.ErrorCategory.Component,o=`${e} Error`;return{endtime_not_in_future:(i='"endtime" can not be in the future')=>({title:o,message:i,category:t}),no_booking_info:(i="No booking info provided")=>({title:o,message:i,category:t}),no_timeslot_selected:(i="No timeslot selected")=>({title:o,message:i,category:t}),no_timezone_selected:(i="No timezone selected")=>({title:o,message:i,category:t}),no_booking_id:(i="No booking id provided")=>({title:o,message:i,category:t}),no_salt:(i="No salt provided")=>({title:o,message:i,category:t}),invalid_start_time:(i="Invalid start time")=>({title:o,message:i,category:t}),invalid_end_time:(i="Invalid end time")=>({title:o,message:i,category:t}),invalid_timezone:(i="Invalid timezone")=>({title:o,message:i,category:t}),no_config_id:(i="No configuration id provided")=>({title:o,message:i,category:t})}},this.api=e=>{const t=x.ErrorCategory.Api,o=`${e} Error`;return{invalid_session:i=>({title:o,message:i,category:t}),general_error:i=>({title:o,message:i,category:t}),internal_error:i=>({title:o,message:i,category:t}),invalid_request_error:i=>({title:o,message:i,category:t}),timeslot_not_available:i=>({title:o,message:i,category:t}),provider_error:i=>({title:o,message:i,category:t}),not_found_error:i=>({title:o,message:i,category:t})}}}}class Q{constructor({schedulerAPIURL:e,schedulerStore:t,sessionId:o,configId:i,slug:a,clientId:r}){this.errors=new K,this.schedulerStore=t,this.schedulerAPIURL=e,this.sessionId=o,this.configId=i,this.slug=a,this.clientId=r}getHeaders(){return this.sessionId?{Authorization:`Bearer ${this.sessionId}`}:{}}async makeAPIRequest(e,t,o,i={}){try{const a=new URL(this.schedulerAPIURL),r="2.1.0";return a.pathname=e,await(await fetch(decodeURIComponent(a.toString()),{method:t,headers:{"Content-Type":"application/json",Origin:window.location.origin,"X-Source":"nylas-scheduling","X-Nylas-Web-Elements-Version":r,...this.clientId&&{"X-Nylas-Application-Public-Id":this.clientId},...i},body:o})).json()}catch(a){return{error:{message:a.message,title:"API request failed",type:"api"}}}}getErrorMessage(e){var o,i,a,r;let t=(e==null?void 0:e.message)||(e==null?void 0:e.title)||"Something went wrong";return(e==null?void 0:e.type)==="provider_error"&&(t=((i=(o=e==null?void 0:e.provider_error)==null?void 0:o.error)==null?void 0:i.message)||((r=(a=e==null?void 0:e.provider_error)==null?void 0:a.error)==null?void 0:r.title)||"Something went wrong"),t}setConfigId(e){this.configId=e}selectDate(e){this.schedulerStore.set("selectedDate",e),this.schedulerStore.set("selectedTimeslot",null)}selectTime(e){this.schedulerStore.set("selectedTimeslot",e)}selectTimezone(e){this.schedulerStore.set("selectedTimezone",e)}selectLanguage(e){this.schedulerStore.set("selectedLanguage",e),l.instance.changeLanguage(e)}async toggleAdditionalData(e){e||await this.refetchAvailability(),this.schedulerStore.set("showBookingForm",e)}setParticipantName(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,name:e}})}setParticipantEmail(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,email:e}})}async refetchAvailability(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1).getTime()/1e3,o=t<e.getTime()/1e3?Math.floor(e.getTime()/1e3):t,i=new Date(e.getFullYear(),e.getMonth()+1,1).getTime()/1e3;return await this.getAvailability(o,i)}async resetStoreStateAndFetchAvailability(){const e=new Date,t=await this.refetchAvailability(),o=this.schedulerStore.get("availability").find(a=>new Date(a.start_time)>new Date);let i=e;return o&&(i=o.start_time),this.schedulerStore.set("selectedDate",i),this.schedulerStore.set("eventInfo",null),this.schedulerStore.set("showBookingForm",!1),this.schedulerStore.set("selectedTimeslot",null),t}async setReschedule(e){this.schedulerStore.set("isLoading",!0);const t=this.schedulerStore.state.eventInfo;return t&&this.schedulerStore.set("reschedulingEventInfo",t),this.schedulerStore.set("rescheduleBookingId",e),await this.getUISettings(),await this.resetStoreStateAndFetchAvailability().finally(()=>{this.schedulerStore.set("isLoading",!1)})}async setCancel(e){this.schedulerStore.set("cancelBookingId",e)}async setReject(e){this.schedulerStore.set("rejectBookingId",e)}async resetCancel(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("cancelBookingId",""),this.schedulerStore.set("rejectBookingId",""),this.schedulerStore.set("cancelledEventInfo",null),e}async goBack(){this.schedulerStore.set("cancelBookingId","")}async resetConfirm(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("confirmedEventInfo",void 0),e}async bookTimeslot(e){var w,D,C;this.schedulerStore.set("isLoading",!0);const{selectedTimeslot:t,selectedTimezone:o,bookingInfo:i,selectedLanguage:a}=this.schedulerStore.state;if(!e&&!i)return{error:this.errors.component(l.instance.t("createBookingErrorTitle")).no_booking_info()};const r=(e==null?void 0:e.timeslot)||t;if(!r)return{error:this.errors.component(l.instance.t("createBookingErrorTitle")).no_timeslot_selected()};const d=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:o,c=a||"en-US";if(!d)return{error:this.errors.component(l.instance.t("createBookingErrorTitle")).no_timezone_selected()};const m=[...this.schedulerStore.get("availabilityOrderEmails")];let h="";const g=(r==null?void 0:r.emails)||[],f={};Object.entries((i==null?void 0:i.additionalFields)||{}).forEach(([v,B])=>{f[v]=B.value});const b=e?e==null?void 0:e.primaryParticipant:i==null?void 0:i.primaryParticipant,p=e?(e==null?void 0:e.guests)||[]:(i==null?void 0:i.guests)||[],I=e?e==null?void 0:e.additionalFields:f,_=this.getHeaders(),k=`/v3/scheduling/bookings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`;if(m.length===0){const v=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({additional_fields:I,additional_guests:p,guest:{...b},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:d,event_id:(r==null?void 0:r.event_id)||void 0,master_id:(r==null?void 0:r.master_id)||void 0,calendar_id:(r==null?void 0:r.calendar_id)||void 0,email_language:this.getTwoLetterLanguageCode(c)}),_);return this.schedulerStore.set("isLoading",!1),"data"in v?(this.schedulerStore.set("eventInfo",v.data),v):{error:v.error}}for(;m.length>0;){if(h=m.shift(),!g.includes(h))continue;const v=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({participants:h?[{email:h}]:void 0,additional_fields:I,additional_guests:p,guest:{...b},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:d,email_language:this.getTwoLetterLanguageCode(c)}),_);if("data"in v)return this.schedulerStore.set("isLoading",!1),this.schedulerStore.set("eventInfo",v==null?void 0:v.data),v;if((D=(w=v.error)==null?void 0:w.message)!=null&&D.startsWith("The selected timeslot is unavailable"))continue;{this.schedulerStore.set("isLoading",!1);const B=(C=v.error)==null?void 0:C.type;let P=v.error;if(B&&B in this.errors.api(l.instance.t("createBookingErrorTitle"))){const z=this.getErrorMessage(P);P=this.errors.api(l.instance.t("createBookingErrorTitle"))[B](z)}return{error:P}}}return this.schedulerStore.set("isLoading",!1),{error:this.errors.api(l.instance.t("createBookingErrorTitle")).timeslot_not_available("The selected timeslot is unavailable")}}async getUISettings(){var r;this.schedulerStore.set("isLoading",!0);const e=this.schedulerStore.get("rescheduleBookingId"),t=this.getHeaders();let o=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"";e&&o?o+=`&booking_id=${e}`:e&&(o+=`?booking_id=${e}`);const i=`/v3/scheduling/ui-settings${o}`,a=await this.makeAPIRequest(i,"GET",void 0,t);if("error"in a){this.schedulerStore.set("isLoading",!1);const d=(r=a.error)==null?void 0:r.type;let c=a.error;return d&&d in this.errors.api(l.instance.t("getUISettingErrorTitle"))&&(c=this.errors.api(l.instance.t("getUISettingErrorTitle"))[d]((c==null?void 0:c.message)||(c==null?void 0:c.title)||"Something went wrong")),{error:c}}return"data"in a&&(this.schedulerStore.set("configSettings",a.data),this.clientId=a.data.app_client_id||this.clientId),this.schedulerStore.set("isLoading",!1),a}getTwoLetterLanguageCode(e){return e.split("-")[0]}getStartTimeWithMinBookingNotice(e){var a;const t=(a=this.schedulerStore.get("configSettings"))==null?void 0:a.scheduler,o=t==null?void 0:t.min_booking_notice;if(!o)return e;const i=new Date().getTime();return e<(i+o*60*1e3)/1e3?Math.floor((i+o*60*1e3)/1e3):e}getEndTimeForAvailableDaysInFuture(e){var r,d;const t=new Date,o=(d=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:d.available_days_in_future,i=Math.floor(l.addDaysToCurrentDate(t,o).getTime()/1e3);return Math.min(i,e)}async getAvailability(e=0,t=0){var f,b,p,I,_;this.schedulerStore.set("isLoading",!0);const o=new URLSearchParams,i=new Date,a=i.getTime();if(t&&t<a/1e3)return this.schedulerStore.set("isLoading",!1),{error:this.errors.component(l.instance.t("getAvailabilityErrorTitle")).endtime_not_in_future()};if(!e){const y=new Date(i.getFullYear(),i.getMonth(),1);e=Math.floor(y.getTime()/1e3)}if(!t){const y=new Date(i.getFullYear(),i.getMonth()+1,0);t=Math.floor(y.getTime()/1e3)}t=this.getEndTimeForAvailableDaysInFuture(t);const r=this.getStartTimeWithMinBookingNotice(e);e=r,t=r>t?r+1:t,o.append("start_time",encodeURIComponent(e.toString())),o.append("end_time",encodeURIComponent(t.toString())),this.configId&&!this.sessionId?o.append("configuration_id",encodeURIComponent(this.configId)):this.slug&&this.clientId&&!this.sessionId&&(o.append("slug",encodeURIComponent(this.slug)),o.append("client_id",encodeURIComponent(this.clientId)));const d=this.schedulerStore.get("rescheduleBookingId");d&&o.append("booking_id",encodeURIComponent(d));const c=o.toString(),m=`/v3/scheduling/availability${c?`?${c}`:""}`,h=this.getHeaders(),g=await this.makeAPIRequest(decodeURIComponent(m),"GET",void 0,h);if("error"in g){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const y=(f=g.error)==null?void 0:f.type;let k=g.error;if((b=k==null?void 0:k.message)!=null&&b.toLowerCase().includes("Failed to find a valid Grant")){const w=l.instance.t("invalidGrantError");return{error:{title:l.instance.t("invalidGrantErrorTitle"),message:w,category:x.ErrorCategory.Api}}}if(y&&y in this.errors.api(l.instance.t("getAvailabilityErrorTitle"))){const w=this.getErrorMessage(k);k=this.errors.api(l.instance.t("getAvailabilityErrorTitle"))[y](w)}return{error:k}}if("data"in g){const w=(((I=(p=g.data)==null?void 0:p.time_slots)==null?void 0:I.map(C=>({...C,start_time:new Date(C.start_time*1e3),end_time:new Date(C.end_time*1e3)})))||[]).filter(C=>C.start_time.getTime()>a).sort((C,v)=>C.start_time.getTime()-v.start_time.getTime());this.schedulerStore.set("availability",w);const D=((_=g.data)==null?void 0:_.order)||[];this.schedulerStore.set("availabilityOrderEmails",D)}return this.schedulerStore.set("isLoading",!1),g}async cancelBooking(e,t){var d;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(l.instance.t("cancelBookingErrorTitle")).no_booking_id()};const o=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",i=`/v3/scheduling/bookings/${e}${o}`,a=this.getHeaders(),r=await this.makeAPIRequest(decodeURIComponent(i),"DELETE",JSON.stringify({action:"cancel",cancellation_reason:t}),a);if("error"in r){this.schedulerStore.set("isLoading",!1);const c=(d=r.error)==null?void 0:d.type;let m=r.error;if(c&&c in this.errors.api(l.instance.t("cancelBookingErrorTitle"))){const h=this.getErrorMessage(m);m=this.errors.api(l.instance.t("cancelBookingErrorTitle"))[c](h)}return{error:m}}return this.schedulerStore.set("cancelledEventInfo",{booking_id:e}),this.schedulerStore.set("rescheduleBookingId",""),this.schedulerStore.set("isLoading",!1),r}async rescheduleBooking(e,t){var A;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(l.instance.t("rescheduleBookingErrorTitle")).no_booking_id()};const o=this.errors.api(l.instance.t("rescheduleBookingErrorTitle")),i=this.errors.component(l.instance.t("rescheduleBookingErrorTitle")),{bookingInfo:a,selectedTimeslot:r,selectedTimezone:d,selectedLanguage:c}=this.schedulerStore.state,{startTime:m,endTime:h,timezone:g}=t,f=m||(r==null?void 0:r.start_time);if(!f)return{error:i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const b=h||(r==null?void 0:r.end_time);if(!b)return{error:i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const p=this.schedulerStore.get("availabilityOrderEmails");let I="";if(p.length>0){const T=(r==null?void 0:r.emails)||[];for(let S=0;S<p.length;S++)if(T.includes(p[S])){I=p[S];break}}const _=g||d;if(!_)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')};const y=(r==null?void 0:r.event_id)||void 0,k=(r==null?void 0:r.master_id)||void 0,w=(r==null?void 0:r.calendar_id)||void 0,D={};Object.entries((a==null?void 0:a.additionalFields)||{}).forEach(([T,S])=>{D[T]=S.value});const C=t?t==null?void 0:t.primaryParticipant:a==null?void 0:a.primaryParticipant,v=t?(t==null?void 0:t.guests)||[]:(a==null?void 0:a.guests)||[],B=t?t==null?void 0:t.additionalFields:D,P=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",z=`/v3/scheduling/bookings/${e}${P}`,N=this.getHeaders(),L=await this.makeAPIRequest(decodeURIComponent(z),"PATCH",JSON.stringify({start_time:f.getTime()/1e3,end_time:b.getTime()/1e3,timezone:_,additional_fields:B,guest:{...C},additional_guests:v,participants:I?[{email:I}]:void 0,email_language:this.getTwoLetterLanguageCode(c),event_id:y,master_id:k,calendar_id:w}),N);if("error"in L){this.schedulerStore.set("isLoading",!1);const T=(A=L.error)==null?void 0:A.type;let S=L.error;if(T&&T in o){const F=this.getErrorMessage(S);S=o[T](F)}return{error:S}}const u=this.schedulerStore.get("reschedulingEventInfo");if("data"in L)this.schedulerStore.set("eventInfo",L==null?void 0:L.data);else if(u)this.schedulerStore.set("eventInfo",u);else{const T={booking_id:e};this.schedulerStore.set("eventInfo",T)}return this.schedulerStore.set("isLoading",!1),L}async updateBooking(e){var g;this.schedulerStore.set("isLoading",!0);const{bookingId:t,status:o,reason:i}=e,a=this.schedulerStore.get("organizerConfirmationSalt"),r=o==="confirmed"?l.instance.t("confirmBookingErrorTitle"):l.instance.t("rejectBookingErrorTitle");if(!t)return{error:this.errors.component(r).no_booking_id()};if(!a)return{error:this.errors.component(r).no_salt()};const d=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",c=`/v3/scheduling/bookings/${t}${d}`,m=this.getHeaders(),h=await this.makeAPIRequest(decodeURIComponent(c),"PUT",JSON.stringify({status:o,cancellation_reason:i,salt:a}),m);if("error"in h){this.schedulerStore.set("isLoading",!1);const f=(g=h.error)==null?void 0:g.type;let b=h.error;if(f&&f in this.errors.api(r)){const p=this.getErrorMessage(b);b=this.errors.api(r)[f](p)}return{error:b}}return"data"in h&&o==="confirmed"?this.schedulerStore.set("confirmedEventInfo",h==null?void 0:h.data):"request_id"in h&&o==="cancelled"&&this.schedulerStore.set("cancelledEventInfo",{booking_id:t}),this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("isLoading",!1),h}async validateGroupEventTimeslot(e){var r,d;this.schedulerStore.set("isLoading",!0);const t=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.configuration_id;if(!t)return{error:this.errors.component(l.instance.t("validateTimeslotErrorTitle")).no_config_id()};const o=this.getHeaders(),i=`/v3/scheduling/configurations/${t}/group-events/validate-timeslot`,a=await this.makeAPIRequest(decodeURIComponent(i),"POST",JSON.stringify({...e,start_time:e.start_time.getTime()/1e3,end_time:e.end_time.getTime()/1e3}),o);if("error"in a){this.schedulerStore.set("isLoading",!1);const c=(d=a.error)==null?void 0:d.type;let m=a.error;if(c&&c in this.errors.api(l.instance.t("validateTimeslotErrorTitle"))){const h=this.getErrorMessage(m);m=this.errors.api(l.instance.t("validateTimeslotErrorTitle"))[c](h)}return this.refetchAvailability(),{error:m}}return this.schedulerStore.set("selectedTimeslot",e),this.schedulerStore.set("showBookingForm",!0),this.schedulerStore.set("isLoading",!1),a}}class V{constructor({schedulerAPIURL:e,nylasSchedulerStore:t,sessionId:o,configId:i,slug:a,clientId:r}){if(!e)throw new Error("schedulerAPIURL is required");if(!t)throw new Error("nylasSchedulerStore is required");if(!o&&!i&&!(a||r))throw new Error("sessionId is required for private configs. If using public config either pass a configurationId or a combination of slug and clientId.");e==="/"&&(e=new URL(window.location.href).origin),this.configId=i,this.sessionId=o,this.schedulerAPIURL=e,this.nylasSchedulerStore=t,this.slug=a,this.clientId=r}init(){l.debug("NylasConnector init")}get schedulerStore(){return this.nylasSchedulerStore}get scheduler(){return this._schedulerAPIConnector?this._schedulerAPIConnector:(this._schedulerAPIConnector=new Q({schedulerAPIURL:this.schedulerAPIURL,schedulerStore:this.schedulerStore,sessionId:this.sessionId,configId:this.configId,slug:this.slug,clientId:this.clientId}),this._schedulerAPIConnector)}resetStores(){this.nylasSchedulerStore.reset()}}function ee(s={}){const e={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:!1,availabilityOrderEmails:[],selectableDates:null,availability:[],eventDuration:0,state:"ready",eventInfo:null,cancelledEventInfo:null,isLoading:!1,nylasBranding:!0,...s};l.debug("[defaultNylasStoreState]: ",e);const t=Y.createStore(e);return t.onChange("availability",o=>{l.debug("[availability]: ",o);const i=o.map(d=>d.start_time);l.debug("[selectableDates]: ",i),t.set("selectableDates",i);const a=o[0];if(!a)return;const r=Math.floor((a.end_time.getTime()-a.start_time.getTime())/6e4);l.debug("[durationMinutes]: ",r),t.set("eventDuration",r)}),t.reset=()=>{for(const o in e){const i=e[o];t.set(o,i)}},t}const R=(s,e)=>{const t=s.isLoading,o=s.showNotification,i=s.nylasBranding,a=s.version;return n.h(n.Fragment,null,o&&n.h("nylas-notification",null),t&&n.h("div",{class:"loading"},n.h("div",{class:"left"},n.h("div",{class:"skeleton"})),n.h("div",{class:"right"},n.h("div",{class:"skeleton"}),n.h("div",{class:"skeleton"}),n.h("div",{class:"skeleton"}),n.h("div",{class:"skeleton"}),n.h("div",{class:"skeleton"}))),!t&&e,n.h("div",{class:"footer"},i&&n.h("a",{href:"https://scheduler.nylas.com?utm_source=powered-by-nylas-logoutm_medium=link&utm_campaign=get-scheduler&utm_id=get-scheduler",class:"powered-by-nylas",target:"_blank",rel:"noreferrer noopener"},"Powered by ",n.h("span",{class:"sr-only"},"Nylas"),n.h("nylas-logo",{"aria-hidden":!0})),n.h("tooltip-component",null,n.h("info-icon",{slot:"tooltip-icon"}),n.h("span",{slot:"tooltip-content"},a))))},W=(s,e)=>n.h("div",{class:"message-banner"},e),te=':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 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--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;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto;border-left:none}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer .powered-by-nylas{display:flex;align-items:center;text-decoration:none;color:var(--nylas-base-500)}.footer .powered-by-nylas:hover{color:var(--nylas-base-800)}.footer svg{fill:var(--nylas-base-500)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}.language-feedback-container{width:auto;position:absolute;bottom:4px;left:16px;display:flex;gap:8px;align-items:center}.language-feedback-container button-component#report-issue{position:initial}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}',ne=te,J={title:l.instance.t("genericErrorTitle"),type:M.nr.Error,category:x.ErrorCategory.Component},X=class{constructor(s){n.registerInstance(this,s),this.init=n.createEvent(this,"init",7),this.schedulerWillLoad=n.createEvent(this,"schedulerWillLoad",7),this.schedulerDidLoad=n.createEvent(this,"schedulerDidLoad",7),this.nylasSchedulerError=n.createEvent(this,"nylasSchedulerError",7),this.nylasSchedulerInfo=n.createEvent(this,"nylasSchedulerInfo",7),this.configSettingsLoaded=n.createEvent(this,"configSettingsLoaded",7),this.bookingRefExtracted=n.createEvent(this,"bookingRefExtracted",7),this.bookedEventInfo=n.createEvent(this,"bookedEventInfo",7),this.mode="app",this.defaultSchedulerState=void 0,this.sessionId=void 0,this.schedulerApiUrl="https://api.us.nylas.com",this.bookingInfo=void 0,this.rescheduleBookingRef=void 0,this.cancelBookingRef=void 0,this.organizerConfirmationBookingRef=void 0,this.configurationId=void 0,this.slug=void 0,this.clientId=void 0,this.nylasBranding=!0,this.eventOverrides={},this.isLoading=void 0,this.themeConfig=void 0,this.localization=void 0,this.defaultLanguage=void 0,this.showNotification=!0,this.enableUserFeedback=!0,this.hour12=void 0,this.automaticComponentRegistration=!0,this.selectedDateLabel=new Date().toLocaleDateString(navigator.language,{dateStyle:"full"})||`${l.instance.t("noDateSelected")}`,this.refConfigId=void 0,this.language=navigator.language,this.showFeedbackModal=!1,this.bookingInfoConfirmed=null,this.version="2.1.0"}connectedCallback(){l.debug("[nylas-scheduler] connectedCallback")}async componentWillLoad(){var d,c,m;l.debug("[nylas-scheduler] Component will load"),this.version="2.1.0",this.enableUserFeedback&&!x.isInitialized()&&x.init({dsn:"https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",release:this.version,integrations:h=>[...h.filter(g=>!1),x.feedbackSyncIntegration({colorScheme:"system",autoInject:!1})],autoSessionTracking:!1,beforeSend:()=>null});const s=this.schedulerWillLoad.emit(this.host);if("schedulerWillLoad"in this.eventOverrides&&(await this.eventOverrides.schedulerWillLoad(s,this.nylasSchedulerConnector),s.defaultPrevented))return;const t=new URLSearchParams(window.location.search).get("lang"),o=t&&Object.values(O.LANGUAGE_CODE).includes(t)?t:null;this.stores={scheduler:ee({bookingInfo:this.bookingInfo,nylasBranding:this.nylasBranding,themeConfig:this.themeConfig,hour12:this.hour12,selectedLanguage:o||this.defaultLanguage||((d=this.bookingInfo)==null?void 0:d.language)||O.LANGUAGE_CODE.en,...this.defaultSchedulerState})},this.baseProvider=new Y.NylasBaseProvider(this.host,this.stores,this.automaticComponentRegistration,this.eventOverrides),this.refConfigId=this.configurationId;let i;if(this.rescheduleBookingRef){const[h,g,f]=l.compactStringToUUIDs(this.rescheduleBookingRef);this.refConfigId=h,this.stores.scheduler.set("rescheduleBookingId",g),i=this.bookingRefExtracted.emit({configurationId:h,bookingId:g})}else if(this.cancelBookingRef){const[h,g,f]=l.compactStringToUUIDs(this.cancelBookingRef);this.refConfigId=h,this.stores.scheduler.set("cancelBookingId",g),i=this.bookingRefExtracted.emit({configurationId:h,bookingId:g})}else if(this.organizerConfirmationBookingRef){const[h,g,f]=l.compactStringToUUIDs(this.organizerConfirmationBookingRef);this.refConfigId=h,this.stores.scheduler.set("organizerConfirmationBookingId",g),this.stores.scheduler.set("organizerConfirmationSalt",f),i=this.bookingRefExtracted.emit({configurationId:h,bookingId:g,salt:f})}if(this.applyThemeConfig(this.themeConfig),"bookingRefExtracted"in this.eventOverrides&&(await this.eventOverrides.bookingRefExtracted(i,this.nylasSchedulerConnector),i.defaultPrevented)||!this.checkIfSessionIdOrConfigIdExists())return;const a=(c=this.baseProvider)==null?void 0:c.getStore("scheduler");this.nylasSchedulerConnector=new V({schedulerAPIURL:this.schedulerApiUrl,sessionId:this.sessionId,configId:this.refConfigId,slug:this.slug,clientId:this.clientId,nylasSchedulerStore:a});const r=this.init.emit(this.host);"init"in this.eventOverrides&&(await this.eventOverrides.init(r,this.nylasSchedulerConnector),r.defaultPrevented)||(m=this.baseProvider)==null||m.componentWillLoad(this.nylasSchedulerConnector)}async componentDidLoad(){var c,m,h,g,f,b,p,I;(c=this.baseProvider)==null||c.componentDidLoad();const s=this.schedulerDidLoad.emit(this.host);if("schedulerDidLoad"in this.eventOverrides&&(await this.eventOverrides.schedulerDidLoad(s,this.nylasSchedulerConnector),s.defaultPrevented)||!this.checkIfSessionIdOrConfigIdExists())return;this.localizationChanged(this.localization);const e=await((m=this.nylasSchedulerConnector)==null?void 0:m.scheduler.getUISettings());if(!e||"error"in e){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(e==null?void 0:e.error)},host:this.host});return}else{"data"in e&&((h=e.data)!=null&&h.appearance)&&console.info("Appearance settings have been returned from the configuration used byt his scheduling page; please remember to grab them from the configSettingsLoaded event and apply them as desired.");const _=this.configSettingsLoaded.emit({settings:e});if("configSettingsLoaded"in this.eventOverrides&&(await this.eventOverrides.configSettingsLoaded(_,this.nylasSchedulerConnector),_.defaultPrevented))return}const t=(g=this.baseProvider)==null?void 0:g.getStore("scheduler"),o=(b=(f=t==null?void 0:t.get("configSettings"))==null?void 0:f.scheduler)==null?void 0:b.available_days_in_future,i=t==null?void 0:t.get("selectedTimeslot");if(i&&(i!=null&&i.start_time)){if(!this.isTimeslotValid(i))return;if(t!=null&&t.get("showBookingForm")){t==null||t.set("selectedDate",i.start_time);return}}const a=t==null?void 0:t.get("selectedDate"),r=t==null?void 0:t.get("availability");let d;if(!(r&&r.length>0)){if(a){const{startTime:_,endTime:y,endTimeForAvailableDaysInFuture:k}=this.validateAvailableDaysInFuture(a,o||30);a.getTime()<k*1e3&&(d=await((I=this.nylasSchedulerConnector)==null?void 0:I.scheduler.getAvailability(_,y)))}else{const _=new Date,{startTime:y,endTime:k,endTimeForAvailableDaysInFuture:w}=this.validateAvailableDaysInFuture(_,o||30);_.getTime()<w*1e3&&(d=await((p=this.nylasSchedulerConnector)==null?void 0:p.scheduler.getAvailability(y,k)))}if((!d||"error"in d)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(d==null?void 0:d.error)},host:this.host}),!a){let _=new Date;const y=t==null?void 0:t.get("availability").find(k=>new Date(k.start_time)>new Date);y&&(_=y.start_time),t==null||t.set("selectedDate",_)}}}componentDisconnected(){var s;(s=this.baseProvider)==null||s.componentDisconnected()}bookingInfoChanged(s){var e,t;(e=this.stores)==null||e.scheduler.set("bookingInfo",s),s!=null&&s.language&&!this.defaultLanguage&&((t=this.stores)==null||t.scheduler.set("selectedLanguage",s.language))}rescheduleBookingRefChanged(s){var e,t;if(s){const[o,i]=l.compactStringToUUIDs(s);(e=this.stores)==null||e.scheduler.set("rescheduleBookingId",i),this.refConfigId=o,(t=this.nylasSchedulerConnector)==null||t.scheduler.setConfigId(o)}}cancelBookingRefChanged(s){var e,t;if(s){const[o,i]=l.compactStringToUUIDs(s);(e=this.stores)==null||e.scheduler.set("cancelBookingId",i),this.refConfigId=o,(t=this.nylasSchedulerConnector)==null||t.scheduler.setConfigId(o)}}organizerConfirmationBookingRefChanged(s){var e,t;if(s){const[o,i]=l.compactStringToUUIDs(s);(e=this.stores)==null||e.scheduler.set("organizerConfirmationBookingId",i),this.refConfigId=o,(t=this.nylasSchedulerConnector)==null||t.scheduler.setConfigId(o)}}localizationChanged(s){s&&Object.keys(s).forEach(e=>{e in O.LANGUAGE_CODE&&l.instance.addResourceBundle(e,"translation",s[e],!1,!0)})}defaultLanguageChanged(s){var e;s&&((e=this.stores)==null||e.scheduler.set("selectedLanguage",s),l.instance.changeLanguage(s))}themeConfigChanged(s){var e,t;(t=(e=this.baseProvider)==null?void 0:e.getStore("scheduler"))==null||t.set("themeConfig",s),this.applyThemeConfig(s)}languageChanged(s){const e=s.detail;this.language=e,l.instance.changeLanguage(e)}async registerComponentHandler(s){var e;(e=this.baseProvider)==null||e.registerComponent(s.detail)}async unregisterComponentHandler(s){var e;(e=this.baseProvider)==null||e.unregisterComponent(s.detail)}async monthChangedHandler(s){var r,d,c,m,h,g,f;const e=s.detail,t=(m=(c=(d=(r=this.nylasSchedulerConnector)==null?void 0:r.schedulerStore)==null?void 0:d.get("configSettings"))==null?void 0:c.scheduler)==null?void 0:m.available_days_in_future,{startTime:o,endTime:i,endTimeForAvailableDaysInFuture:a}=this.validateAvailableDaysInFuture(e,t||30);if(!s.defaultPrevented&&o<a&&e.getTime()<a*1e3){const b=await((h=this.nylasSchedulerConnector)==null?void 0:h.scheduler.getAvailability(o,i));(!b||"error"in b)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(b==null?void 0:b.error)},host:this.host});const p=(g=this.stores)==null?void 0:g.scheduler.get("selectableDates");p&&p.length>0&&((f=this.stores)==null||f.scheduler.set("selectedDate",p[0]))}}mapToBookingData(s){var r,d,c;const e=(r=this.stores)==null?void 0:r.scheduler.get("selectedTimeslot"),t=(d=this.stores)==null?void 0:d.scheduler.get("selectedLanguage"),o=(c=this.stores)==null?void 0:c.scheduler.get("selectedTimezone"),i=e!=null&&e.start_time?new Date(e==null?void 0:e.start_time).getTime()/1e3:"",a=e!=null&&e.end_time?new Date(e==null?void 0:e.end_time).getTime()/1e3:"";return{additional_guests:s.guests,guest:{...s.primaryParticipant},additional_fields:{...s.additionalFields},start_time:i,end_time:a,email_language:t,timezone:o}}async bookButtonClickedHandler(s){var c,m,h,g;if(s.defaultPrevented)return;const e=s.detail,t=this.mapToBookingData(e);this.bookingInfoConfirmed=e;const i=(m=(c=this.nylasSchedulerConnector)==null?void 0:c.schedulerStore)==null?void 0:m.get("rescheduleBookingId");if(i){const f=await((h=this.nylasSchedulerConnector)==null?void 0:h.scheduler.rescheduleBooking(i,e));(!f||"error"in f)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(f==null?void 0:f.error)},host:this.host});const b=f==null?void 0:f.data,p=this.bookedEventInfo.emit({...f,data:{...b,...t}});this.bookingInfoConfirmed={...this.bookingInfoConfirmed,...b},"bookedEventInfo"in this.eventOverrides&&await this.eventOverrides.bookedEventInfo(p,this.nylasSchedulerConnector);return}const a=await((g=this.nylasSchedulerConnector)==null?void 0:g.scheduler.bookTimeslot(e));(!a||"error"in a)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(a==null?void 0:a.error)},host:this.host});const r=a==null?void 0:a.data,d=this.bookedEventInfo.emit({...a,data:{...r,...t}});this.bookingInfoConfirmed={...this.bookingInfoConfirmed,...r},"bookedEventInfo"in this.eventOverrides&&await this.eventOverrides.bookedEventInfo(d,this.nylasSchedulerConnector)}dateSelectedHandler(s){const e=s.detail;this.selectedDateLabel=e?e.toLocaleDateString(this.language,{dateStyle:"full"}):`${l.instance.t("noDateSelected")}`}cancelBookedEventErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}cancelBookedEventValidationErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}rescheduleBookedEventErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}confirmBookingErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}feedbackModalClosedHandler(){this.showFeedbackModal=!1}eventIsFullHandler(s){const e=s.detail.error;s.detail.type==="error"?this.nylasSchedulerError.emit({notification:{...this.getErrorObject({message:e})},host:this.host}):this.nylasSchedulerInfo.emit({notification:{title:"Event is full",category:x.ErrorCategory.Component,type:M.nr.Info,description:"The event you selected is full. Please try a different time.",id:new Date().getTime().toString(),ttl:3e3},host:this.host})}feedbackSubmittedHandler(s){const t={eventId:x.captureMessage("Scheduling Page User Feedback",{extra:{configId:this.configurationId,slug:this.slug}}),message:s.detail.feedback};x.captureFeedback(t,{includeReplay:!0,captureContext:{tags:{"nylas-web-element":"nylas-scheduling","nylas-web-element-version":this.version,"nylas-config-id":this.configurationId,"nylas-slug":this.slug,"host-url":window.location.href},extra:{configId:this.configurationId,slug:this.slug,version:this.version}}}),this.showFeedbackModal=!1}async getNylasSchedulerStore(){var s;return(s=this.baseProvider)==null?void 0:s.getStore("scheduler")}async getNylasSchedulerConnector(){return this.nylasSchedulerConnector}async getRef(){return this.host}getErrorObject(s){return{title:(s==null?void 0:s.title)||J.title,category:(s==null?void 0:s.category)||J.category,type:M.nr.Error,description:(s==null?void 0:s.message)||"",id:new Date().getTime().toString(),ttl:"none"}}checkIfSessionIdOrConfigIdExists(){if(!this.sessionId&&!this.refConfigId&&!(this.slug&&this.clientId)){let s="";return this.sessionId||(s+=l.instance.t("sessionIdRequiredErrorMessage")),!this.sessionId&&!this.refConfigId&&!(this.slug&&this.clientId)&&(s=l.instance.t("sessionIdRequiredErrorMessage")+" "+l.instance.t("publicConfigErrorMessage")),this.nylasSchedulerError.emit({notification:{title:l.instance.t("schedulingComponentErrorTitle"),category:x.ErrorCategory.Component,type:M.nr.Error,description:s,id:new Date().getTime().toString(),ttl:"none"},host:this.host}),!1}return!0}isTimeslotValid(s){return new Date(s.start_time)<new Date?(this.nylasSchedulerError.emit({notification:{title:l.instance.t("invalidTimeslotErrorTitle"),category:x.ErrorCategory.Component,type:M.nr.Error,description:l.instance.t("invalidTimeslotErrorMessage"),id:new Date().getTime().toString(),ttl:"none"},host:this.host}),!1):!0}validateAvailableDaysInFuture(s,e){const t=new Date,o=new Date(s.getFullYear(),s.getMonth(),1).getTime()/1e3,i=new Date(s.getFullYear(),s.getMonth()+1,1).getTime()/1e3,a=Math.floor(l.addDaysToCurrentDate(t,e).getTime()/1e3),r=Math.min(a,i);return{startTime:o<t.getTime()/1e3?Math.floor(t.getTime()/1e3):o,endTime:r,endTimeForAvailableDaysInFuture:a}}applyThemeConfig(s){if(s)for(const[e,t]of Object.entries(s))this.host.style.setProperty(`${e}`,t)}onFeedbackClick(s){s.preventDefault(),this.showFeedbackModal=!0}redirectToCustomUrl(s){window.location.assign(s)}nylasFormDropdownChangedHandler(s){var o,i;const{name:e,value:t}=s.detail;if(e==="language"){const a=O.LANGUAGE_CODE[t];l.instance.changeLanguage(a),(i=(o=this.stores)==null?void 0:o.scheduler)==null||i.set("selectedLanguage",a)}}render(){var _,y,k,w,D,C,v,B,P,z,N,L;const s=this.mode==="app",e=(_=this.baseProvider)==null?void 0:_.getStore("scheduler"),t=e==null?void 0:e.get("eventInfo"),o=e==null?void 0:e.get("showBookingForm"),i=e==null?void 0:e.get("cancelledEventInfo"),a=e==null?void 0:e.get("cancelBookingId"),r=e==null?void 0:e.get("selectedTimeslot"),d=e==null?void 0:e.get("rescheduleBookingId"),c=e==null?void 0:e.get("organizerConfirmationBookingId"),m=e==null?void 0:e.get("rejectBookingId"),h=e==null?void 0:e.get("confirmedEventInfo"),g=(e==null?void 0:e.get("nylasBranding"))||this.nylasBranding,f=e==null?void 0:e.get("selectedDate"),b=(k=(y=e==null?void 0:e.get("configSettings"))==null?void 0:y.scheduler)==null?void 0:k.confirmation_redirect_url;this.selectedDateLabel=f&&this.language?l.capitalizeFirstLetter(f.toLocaleDateString(this.language,{dateStyle:"full"})):`${l.instance.t("noDateSelected")}`;const p=Object.keys(O.LANGUAGE_MAP).map(u=>({label:O.LANGUAGE_MAP[u],value:u})),I=(e==null?void 0:e.get("selectedLanguage"))||this.defaultLanguage||navigator.language||O.LANGUAGE_CODE.en;if(s&&(a||m)&&!i)return n.h(n.Host,null,n.h(R,{version:this.version,nylasBranding:g,isLoading:this.isLoading,showNotification:this.showNotification},n.h("div",{class:"cancel-flow-page",part:"cancel-flow-page"},n.h("nylas-cancel-booking-form",{selectedTimeslot:r,cancelBookingId:a,rejectBookingId:m,exportparts:"ncbf, ncbf__icon, ncbf__title, ncbf__description, ncbf__reason-textarea, ncbf__button-cta, ncbf__button-outline, ncbf__card"}))),n.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&n.h("button-component",{id:"report-issue",variant:"basic",onClick:u=>this.onFeedbackClick(u)},n.h("feedback-icon",null)),n.h("select-dropdown",{name:"language",searchPlaceholder:l.instance.t("search"),options:p,withChevron:!1,themeConfig:this.themeConfig,defaultSelectedOption:p.find(u=>u.value==I),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"},n.h("span",{slot:"select-icon"},n.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&n.h("nylas-feedback-form",null));if(s&&c)return n.h(n.Host,null,n.h(R,null,n.h("div",{class:"manual-confirmation-page",part:"manual-confirmation-page"},n.h("nylas-organizer-confirmation-card",{organizerConfirmationBookingId:c,exportparts:"nmcc, nmcc__title, nmcc__description, nmcc__button-cta, nmcc__button-outline"}))),n.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&n.h("button-component",{id:"report-issue",variant:"basic",onClick:u=>this.onFeedbackClick(u)},n.h("feedback-icon",null)),n.h("select-dropdown",{name:"language",searchPlaceholder:l.instance.t("search"),options:p,withChevron:!1,themeConfig:this.themeConfig,defaultSelectedOption:p.find(u=>u.value==I),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"},n.h("span",{slot:"select-icon"},n.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&n.h("nylas-feedback-form",null));if(s&&i)return n.h(n.Host,null,n.h(R,{version:this.version,nylasBranding:g,isLoading:this.isLoading,showNotification:this.showNotification},n.h("div",{class:"cancelled-event-page",part:"cancelled-event-page"},n.h("nylas-cancelled-event-card",{cancelledEventInfo:i,exportparts:"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card"}))),n.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&n.h("button-component",{id:"report-issue",variant:"basic",onClick:u=>this.onFeedbackClick(u)},n.h("feedback-icon",null)),n.h("select-dropdown",{name:"language",searchPlaceholder:l.instance.t("search"),options:p,withChevron:!1,themeConfig:this.themeConfig,defaultSelectedOption:p.find(u=>u.value==I),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"},n.h("span",{slot:"select-icon"},n.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&n.h("nylas-feedback-form",null));if(s&&h)return n.h(n.Host,null,n.h(R,{version:this.version,nylasBranding:g,isLoading:this.isLoading,showNotification:this.showNotification},n.h("div",{class:"cancelled-event-page",part:"confirmed-event-page"},n.h("nylas-confirmed-event-card",{confirmedEventInfo:h,exportparts:"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card"}))),n.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&n.h("button-component",{id:"report-issue",variant:"basic",onClick:u=>this.onFeedbackClick(u)},n.h("feedback-icon",null)),n.h("select-dropdown",{name:"language",searchPlaceholder:l.instance.t("search"),options:p,withChevron:!1,themeConfig:this.themeConfig,defaultSelectedOption:p.find(u=>u.value==I),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"},n.h("span",{slot:"select-icon"},n.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&n.h("nylas-feedback-form",null));if(s&&t&&b){const u=(w=this.bookingInfoConfirmed)==null?void 0:w.primaryParticipant,A=(D=this.bookingInfoConfirmed)==null?void 0:D.location,T=(C=this.bookingInfoConfirmed)==null?void 0:C.booking_ref,S=((v=this.bookingInfoConfirmed)==null?void 0:v.additionalFields)||{};if(this.bookingInfo&&typeof((B=this.bookingInfo)==null?void 0:B.additionalFields)<"u"){const U=this.bookingInfo.additionalFields;Object.keys(U).forEach($=>{!S[$]&&(U!=null&&U[$])&&(S[$]=U[$].value)})}const F=(P=this.stores)==null?void 0:P.scheduler.get("selectedTimeslot"),q=(z=this.stores)==null?void 0:z.scheduler.get("selectedTimezone"),H=(N=this.stores)==null?void 0:N.scheduler.get("selectedLanguage"),j=(L=this.stores)==null?void 0:L.scheduler.get("configSettings"),G=this.configurationId?this.configurationId:j==null?void 0:j.configuration_id,Z=window.location.search,E=new URLSearchParams(Z);E.set("booking_id",t.booking_id),u!=null&&u.name&&E.set("name",u.name),u!=null&&u.email&&E.set("email",u.email),F!=null&&F.start_time&&E.set("start_time",(new Date(F.start_time).getTime()/1e3).toString()),F!=null&&F.end_time&&E.set("end_time",(new Date(F.end_time).getTime()/1e3).toString()),q&&E.set("tz",q),H&&E.set("language",H),S&&E.set("additional_values",JSON.stringify(S)),this.slug&&E.set("page_slug",this.slug),G&&E.set("config_id",G),A&&E.set("location",A),T&&E.set("booking_ref",T),this.redirectToCustomUrl(`${b}?${E.toString()}`);return}if(s&&t)return n.h(n.Host,null,n.h(R,{version:this.version,nylasBranding:g,isLoading:this.isLoading,showNotification:this.showNotification},n.h("div",{class:"booked-event-page",part:"booked-event-page ns_booked-event-page"},n.h("nylas-booked-event-card",{selectedTimeslot:r,eventInfo:t,exportparts:"nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta"}))),n.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&n.h("button-component",{id:"report-issue",variant:"basic",onClick:u=>this.onFeedbackClick(u)},n.h("feedback-icon",null)),n.h("select-dropdown",{name:"language",searchPlaceholder:l.instance.t("search"),options:p,withChevron:!1,themeConfig:this.themeConfig,defaultSelectedOption:p.find(u=>u.value==I),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"},n.h("span",{slot:"select-icon"},n.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&n.h("nylas-feedback-form",null));if(s&&(!t||d)&&!o){const u=this.host.querySelector('[slot="timeslot-picker-cta-label"]');return n.h(n.Host,null,n.h(R,{version:this.version,nylasBranding:g,isLoading:this.isLoading,showNotification:this.showNotification},d&&n.h(W,null,`${l.instance.t("rescheduleTitle")}`),n.h("div",{class:"select-date-page",part:"select-date-page ns_select-date-page"},n.h("div",{class:"left-panel",part:"ns_left-panel"},n.h("nylas-date-picker",{exportparts:"ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month"}),n.h("nylas-locale-switch",{exportparts:"nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label"})),n.h("div",{class:`right-panel ${d?"reschedule":""}`,part:`ns_right-panel ${d?"ns_reschedule":""}`},n.h("h2",{part:"ns_right-panel__title"},n.h("calendar-icon",{part:"ns_right-panel__calendar-icon"}),n.h("span",{id:"selectedDate",part:"ns_right-panel__selected-date"},this.selectedDateLabel)),n.h("nylas-timeslot-picker",{exportparts:"ntp, ntp__time-picker-wrapper, ntp__timeslots, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary"},u&&n.h("span",{slot:"timeslot-picker-cta-label"},n.h("slot",{name:"timeslot-picker-cta-label"})))))),this.enableUserFeedback&&n.h("button-component",{id:"report-issue",variant:"basic",onClick:A=>this.onFeedbackClick(A)},n.h("feedback-icon",null)),this.showFeedbackModal&&n.h("nylas-feedback-form",null))}return s&&!t&&o?n.h(n.Host,null,n.h(R,{version:this.version,nylasBranding:g,isLoading:this.isLoading,showNotification:this.showNotification},d&&n.h(W,null,`${l.instance.t("rescheduleTitle")}`),n.h("div",{class:"additional-data-page",part:"additional-data-page ns_additional-data-page"},n.h("div",{class:"left-panel ns_left-panel",part:"ns_left-panel"},n.h("div",{class:"wrapper",part:"ns_left-panel__wrapper"},n.h("nylas-selected-event-card",{exportparts:"nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone"}))),n.h("div",{class:`right-panel ${d?"reschedule":""}`,part:`ns_right-panel ${d?"ns_reschedule":""}`},n.h("nylas-booking-form",{exportparts:"nbf, nbf__input-textfield, nbf__button-ghost, nbf__button-outline, nbf__button-primary, nbf__input-wrapper, nbf__checkbox-component, nbf__radio-button-group, nbf__textarea-component, nbf__dropdown, nbf__dropdown-button, nbf__dropdown-content"})))),n.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&n.h("button-component",{id:"report-issue",variant:"basic",onClick:u=>this.onFeedbackClick(u)},n.h("feedback-icon",null)),n.h("select-dropdown",{name:"language",searchPlaceholder:l.instance.t("search"),options:p,withChevron:!1,themeConfig:this.themeConfig,defaultSelectedOption:p.find(u=>u.value==I),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"},n.h("span",{slot:"select-icon"},n.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&n.h("nylas-feedback-form",null)):n.h(n.Host,null,n.h("slot",null))}get host(){return n.getElement(this)}static get watchers(){return{bookingInfo:["bookingInfoChanged"],rescheduleBookingRef:["rescheduleBookingRefChanged"],cancelBookingRef:["cancelBookingRefChanged"],organizerConfirmationBookingRef:["organizerConfirmationBookingRefChanged"],localization:["localizationChanged"],defaultLanguage:["defaultLanguageChanged"],themeConfig:["themeConfigChanged"]}}};X.style=ne;exports.nylas_scheduling=X;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const i=".sc-person-icon-h{display:flex}",s=i,r=class{constructor(t){e.registerInstance(this,t),this.width="14",this.height="16"}render(){return e.h("svg",{key:"67c72253df839c3d7b5b72ae85e9e86f7663b3e0",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"779bc3c0def7b6781ce745bc1c4abc57d355866d",d:"M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z",fill:"currentColor"}))}};r.style=s;exports.person_icon=r;
@@ -1,8 +1,10 @@
1
- import { r as s, h as t } from "./index-140eb219.js";
1
+ import { r as s, h as t } from "./index-025be398.js";
2
+ import "@nylas/web-elements";
2
3
  import "react";
4
+ import "@nylas/connect";
3
5
  import "react/jsx-runtime";
4
6
  import "react-dom";
5
- const o = ".sc-person-icon-h{display:flex}", r = o, c = class {
7
+ const o = ".sc-person-icon-h{display:flex}", r = o, i = class {
6
8
  constructor(e) {
7
9
  s(this, e), this.width = "14", this.height = "16";
8
10
  }
@@ -10,7 +12,7 @@ const o = ".sc-person-icon-h{display:flex}", r = o, c = class {
10
12
  return t("svg", { key: "67c72253df839c3d7b5b72ae85e9e86f7663b3e0", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "779bc3c0def7b6781ce745bc1c4abc57d355866d", d: "M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z", fill: "currentColor" }));
11
13
  }
12
14
  };
13
- c.style = r;
15
+ i.style = r;
14
16
  export {
15
- c as person_icon
17
+ i as person_icon
16
18
  };
@@ -1,8 +1,10 @@
1
- import { r as o, h as t } from "./index-140eb219.js";
1
+ import { r as o, h as t } from "./index-025be398.js";
2
+ import "@nylas/web-elements";
2
3
  import "react";
4
+ import "@nylas/connect";
3
5
  import "react/jsx-runtime";
4
6
  import "react-dom";
5
- const s = ".sc-play-icon-h{display:flex}", i = s, r = class {
7
+ const i = ".sc-play-icon-h{display:flex}", s = i, r = class {
6
8
  constructor(e) {
7
9
  o(this, e), this.width = "15", this.height = "15";
8
10
  }
@@ -10,7 +12,7 @@ const s = ".sc-play-icon-h{display:flex}", i = s, r = class {
10
12
  return t("svg", { key: "0be83196ef8fbead9f7086dbafd33ccea90ef637", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "d2c346fe88da1566360c9ad3a49144cc8e11634a", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
11
13
  }
12
14
  };
13
- r.style = i;
15
+ r.style = s;
14
16
  export {
15
17
  r as play_icon
16
18
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const r=".sc-play-icon-h{display:flex}",s=r,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"0be83196ef8fbead9f7086dbafd33ccea90ef637",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"d2c346fe88da1566360c9ad3a49144cc8e11634a",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=s;exports.play_icon=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const s=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}.radio-group{display:flex;flex-direction:column;gap:0.5rem}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}',n=s,a=class{constructor(e){l.registerInstance(this,e),this.nylasFormRadioChanged=l.createEvent(this,"nylasFormRadioChanged",7),this.componentType="radio-group",this.name="radio-group",this.options=[],this.defaultSelectedValue="",this.label=void 0,this.required=!1,this.readOnly=!1,this.themeConfig=void 0,this.errorMessage="",this.selectedValue=void 0,this.error=""}handleDefaultSelectedValueChange(e){this.selectedValue=e}themeConfigChangedHandler(e,r){e!==r&&this.applyThemeConfig(e)}applyThemeConfig(e){if(e)for(const[r,o]of Object.entries(e))this.el.style.setProperty(`${r}`,o)}componentDidLoad(){this.selectedValue=this.defaultSelectedValue,this.applyThemeConfig(this.themeConfig)}handleBookingFormSubmitted(e){if(this.required&&!this.selectedValue){this.error=this.errorMessage||`${this.label} is required.`;return}this.error&&e.preventDefault()}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}handleChange(e){this.error="",this.selectedValue=e,this.nylasFormRadioChanged.emit({value:e,name:this.name,label:this.label})}render(){return l.h("div",{key:"2be134c55b471762f17cbd2d9b50c3ec4e4db0db",class:"radio-group"},l.h("slot",{key:"bb8e19e51a48f55ce96f77993244630dcef70a43",name:"label"},this.label&&l.h("p",{class:{error:!!this.error}},l.h("span",{class:"label"},this.label),this.required&&l.h("span",{class:"required"},"*"))),this.options.map(e=>l.h("label",null,l.h("div",{class:"radio-option"},l.h("input",{type:"radio",disabled:this.readOnly,readOnly:this.readOnly,title:this.readOnly?"read-only field":void 0,name:this.name,value:e.value,checked:this.selectedValue===e.value,onChange:()=>this.handleChange(e.value)}),l.h("p",null,l.h("span",{class:"title"},e.label),l.h("span",{class:"description"},e.description))))),this.error&&l.h("span",{class:"error help-text"},this.error))}get el(){return l.getElement(this)}static get watchers(){return{defaultSelectedValue:["handleDefaultSelectedValueChange"],themeConfig:["themeConfigChangedHandler"]}}};a.style=n;exports.radio_button_group=a;
@@ -1,5 +1,7 @@
1
- import { r as o, a as s, h as l, g as n } from "./index-140eb219.js";
1
+ import { r as o, c as s, h as l, g as n } from "./index-025be398.js";
2
+ import "@nylas/web-elements";
2
3
  import "react";
4
+ import "@nylas/connect";
3
5
  import "react/jsx-runtime";
4
6
  import "react-dom";
5
7
  const i = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}.radio-group{display:flex;flex-direction:column;gap:0.5rem}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}', t = i, c = class {
@@ -9,13 +11,13 @@ const i = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--n
9
11
  handleDefaultSelectedValueChange(e) {
10
12
  this.selectedValue = e;
11
13
  }
12
- themeConfigChangedHandler(e, a) {
13
- e !== a && this.applyThemeConfig(e);
14
+ themeConfigChangedHandler(e, r) {
15
+ e !== r && this.applyThemeConfig(e);
14
16
  }
15
17
  applyThemeConfig(e) {
16
18
  if (e)
17
- for (const [a, r] of Object.entries(e))
18
- this.el.style.setProperty(`${a}`, r);
19
+ for (const [r, a] of Object.entries(e))
20
+ this.el.style.setProperty(`${r}`, a);
19
21
  }
20
22
  componentDidLoad() {
21
23
  this.selectedValue = this.defaultSelectedValue, this.applyThemeConfig(this.themeConfig);
package/dist/react.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-d8a42c15.cjs");require("react");require("react/jsx-runtime");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CalendarSync=o.CalendarSync;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckboxGroup=o.CheckboxGroup;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FeedbackIcon=o.FeedbackIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDateComponent=o.NylasDateComponent;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasDisableEmails=o.NylasDisableEmails;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEditorTabsGroup=o.NylasEditorTabsGroup;exports.NylasEventCalendar=o.NylasEventCalendar;exports.NylasEventCapacity=o.NylasEventCapacity;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTimeslot=o.NylasEventTimeslot;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFeedbackForm=o.NylasFeedbackForm;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogo=o.NylasLogo;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectEventType=o.NylasSelectEventType;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasSpecificDateAvailabilityPicker=o.NylasSpecificDateAvailabilityPicker;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SendNotetaker=o.SendNotetaker;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.Transcript=o.Transcript;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.VideoPlayer=o.VideoPlayer;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.calendarSyncStore=o.calendarSyncStore;exports.defineCustomElements=o.defineCustomElements;exports.provider=o.provider;exports.sendNotetakerStore=o.sendNotetakerStore;exports.setNonce=o.setNonce;exports.videoPlayerStore=o.videoPlayerStore;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@nylas/web-elements"),e=require("./index-f42fe591.cjs"),o=require("@nylas/connect");require("react");require("react/jsx-runtime");require("react-dom");Object.defineProperty(exports,"NylasIdentityRequestWrapper",{enumerable:!0,get:()=>n.NylasIdentityRequestWrapper});exports.AddCircleIcon=e.AddCircleIcon;exports.ArchiveIcon=e.ArchiveIcon;exports.ArrowIcon=e.ArrowIcon;exports.BoldIcon=e.BoldIcon;exports.ButtonComponent=e.ButtonComponent;exports.CalendarAgendaFillIcon=e.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=e.CalendarAgendaIcon;exports.CalendarCancelIcon=e.CalendarCancelIcon;exports.CalendarCheckIcon=e.CalendarCheckIcon;exports.CalendarIcon=e.CalendarIcon;exports.CalendarInfoIcon=e.CalendarInfoIcon;exports.CalendarPatternsIcon=e.CalendarPatternsIcon;exports.CalendarSync=e.CalendarSync;exports.CheckboxComponent=e.CheckboxComponent;exports.CheckboxGroup=e.CheckboxGroup;exports.CheckmarkCircleIcon=e.CheckmarkCircleIcon;exports.CheckmarkIcon=e.CheckmarkIcon;exports.ChevronIcon=e.ChevronIcon;exports.ClockIcon=e.ClockIcon;exports.CloseIcon=e.CloseIcon;exports.CopyIcon=e.CopyIcon;exports.DeleteIcon=e.DeleteIcon;exports.DocumentRefreshIcon=e.DocumentRefreshIcon;exports.DragableIcon=e.DragableIcon;exports.EditIcon=e.EditIcon;exports.EnvelopeFillIcon=e.EnvelopeFillIcon;exports.EnvelopeIcon=e.EnvelopeIcon;exports.EyeIcon=e.EyeIcon;exports.FeedbackIcon=e.FeedbackIcon;exports.FlowIcon=e.FlowIcon;exports.FolderIcon=e.FolderIcon;exports.ForwardIcon=e.ForwardIcon;exports.GlobeIcon=e.GlobeIcon;exports.GoogleLogoIcon=e.GoogleLogoIcon;exports.GoogleMeetIcon=e.GoogleMeetIcon;exports.InboxIcon=e.InboxIcon;exports.InfoIcon=e.InfoIcon;exports.InputColorPicker=e.InputColorPicker;exports.InputComponent=e.InputComponent;exports.InputDropdown=e.InputDropdown;exports.InputImageUrl=e.InputImageUrl;exports.ItalicIcon=e.ItalicIcon;exports.LoadingIcon=e.LoadingIcon;exports.LocationIcon=e.LocationIcon;exports.LocationOffIcon=e.LocationOffIcon;exports.MicrosoftLogoIcon=e.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=e.MicrosoftTeamsIcon;exports.MultiSelectDropdown=e.MultiSelectDropdown;exports.NylasAdditionalParticipants=e.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=e.NylasAvailabilityPicker;exports.NylasBookedEventCard=e.NylasBookedEventCard;exports.NylasBookingCalendarPicker=e.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=e.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=e.NylasBookingConfirmationType;exports.NylasBookingForm=e.NylasBookingForm;exports.NylasBookingFormConfig=e.NylasBookingFormConfig;exports.NylasBufferTime=e.NylasBufferTime;exports.NylasCalendarPicker=e.NylasCalendarPicker;exports.NylasCancelBookingForm=e.NylasCancelBookingForm;exports.NylasCancellationPolicy=e.NylasCancellationPolicy;exports.NylasCancelledEventCard=e.NylasCancelledEventCard;exports.NylasConfirmationEmail=e.NylasConfirmationEmail;exports.NylasConfirmedEventCard=e.NylasConfirmedEventCard;exports.NylasConnectedCalendars=e.NylasConnectedCalendars;exports.NylasCustomBookingFlow=e.NylasCustomBookingFlow;exports.NylasCustomEventSlug=e.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=e.NylasCustomizeBookingSettings;exports.NylasDateComponent=e.NylasDateComponent;exports.NylasDatePicker=e.NylasDatePicker;exports.NylasDisableEmails=e.NylasDisableEmails;exports.NylasEditorTabs=e.NylasEditorTabs;exports.NylasEditorTabsGroup=e.NylasEditorTabsGroup;exports.NylasEventCalendar=e.NylasEventCalendar;exports.NylasEventCapacity=e.NylasEventCapacity;exports.NylasEventDescription=e.NylasEventDescription;exports.NylasEventDuration=e.NylasEventDuration;exports.NylasEventInfo=e.NylasEventInfo;exports.NylasEventLimits=e.NylasEventLimits;exports.NylasEventLocation=e.NylasEventLocation;exports.NylasEventTimeslot=e.NylasEventTimeslot;exports.NylasEventTitle=e.NylasEventTitle;exports.NylasFeedbackForm=e.NylasFeedbackForm;exports.NylasFormCard=e.NylasFormCard;exports.NylasLimitFutureBookings=e.NylasLimitFutureBookings;exports.NylasListConfigurations=e.NylasListConfigurations;exports.NylasLocaleSwitch=e.NylasLocaleSwitch;exports.NylasLogo=e.NylasLogo;exports.NylasMinBookingNotice=e.NylasMinBookingNotice;exports.NylasMinCancellationNotice=e.NylasMinCancellationNotice;exports.NylasNotification=e.NylasNotification;exports.NylasOrganizerConfirmationCard=e.NylasOrganizerConfirmationCard;exports.NylasPageName=e.NylasPageName;exports.NylasPageStyling=e.NylasPageStyling;exports.NylasParticipantBookingCalendars=e.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=e.NylasParticipantsCustomAvailability;exports.NylasReminderEmails=e.NylasReminderEmails;exports.NylasReminderTime=e.NylasReminderTime;exports.NylasSchedulerEditor=e.NylasSchedulerEditor;exports.NylasScheduling=e.NylasScheduling;exports.NylasSchedulingMethod=e.NylasSchedulingMethod;exports.NylasSelectEventType=e.NylasSelectEventType;exports.NylasSelectedEventCard=e.NylasSelectedEventCard;exports.NylasSpecificTimeAvailabilityPicker=e.NylasSpecificTimeAvailabilityPicker;exports.NylasTimeWindowPicker=e.NylasTimeWindowPicker;exports.NylasTimeslotInterval=e.NylasTimeslotInterval;exports.NylasTimeslotPicker=e.NylasTimeslotPicker;exports.PaintbrushFillIcon=e.PaintbrushFillIcon;exports.PaintbrushIcon=e.PaintbrushIcon;exports.PeopleIcon=e.PeopleIcon;exports.PersonClipboardIcon=e.PersonClipboardIcon;exports.PersonIcon=e.PersonIcon;exports.PlayIcon=e.PlayIcon;exports.PlusIcon=e.PlusIcon;exports.RadioButtonGroup=e.RadioButtonGroup;exports.RefreshIcon=e.RefreshIcon;exports.ReplyAllIcon=e.ReplyAllIcon;exports.ReplyIcon=e.ReplyIcon;exports.SearchIcon=e.SearchIcon;exports.SelectDropdown=e.SelectDropdown;exports.SendNotetaker=e.SendNotetaker;exports.SentIcon=e.SentIcon;exports.SpamIcon=e.SpamIcon;exports.StarIcon=e.StarIcon;exports.StopIcon=e.StopIcon;exports.TextareaComponent=e.TextareaComponent;exports.TimePeriodSelector=e.TimePeriodSelector;exports.ToggleSwitch=e.ToggleSwitch;exports.TooltipComponent=e.TooltipComponent;exports.Transcript=e.Transcript;exports.TranslateIcon=e.TranslateIcon;exports.TrashFillIcon=e.TrashFillIcon;exports.TrashIcon=e.TrashIcon;exports.UnderlineIcon=e.UnderlineIcon;exports.VideoPlayer=e.VideoPlayer;exports.WarningIcon=e.WarningIcon;exports.ZoomIcon=e.ZoomIcon;exports.calendarSyncStore=e.calendarSyncStore;exports.defineCustomElements=e.defineCustomElements;exports.provider=e.provider;exports.sendNotetakerStore=e.sendNotetakerStore;exports.setNonce=e.setNonce;exports.useNylasConnect=e.useNylasConnect;exports.videoPlayerStore=e.videoPlayerStore;Object.defineProperty(exports,"BrowserTokenStorage",{enumerable:!0,get:()=>o.BrowserTokenStorage});Object.defineProperty(exports,"ConfigError",{enumerable:!0,get:()=>o.ConfigError});Object.defineProperty(exports,"MemoryTokenStorage",{enumerable:!0,get:()=>o.MemoryTokenStorage});Object.defineProperty(exports,"NetworkError",{enumerable:!0,get:()=>o.NetworkError});Object.defineProperty(exports,"NylasConnect",{enumerable:!0,get:()=>o.NylasConnect});Object.defineProperty(exports,"NylasConnectError",{enumerable:!0,get:()=>o.NylasConnectError});Object.defineProperty(exports,"OAuthError",{enumerable:!0,get:()=>o.OAuthError});Object.defineProperty(exports,"PopupError",{enumerable:!0,get:()=>o.PopupError});Object.defineProperty(exports,"TokenError",{enumerable:!0,get:()=>o.TokenError});Object.defineProperty(exports,"isAuthCallback",{enumerable:!0,get:()=>o.isAuthCallback});Object.defineProperty(exports,"logger",{enumerable:!0,get:()=>o.logger});Object.defineProperty(exports,"parseAuthCallback",{enumerable:!0,get:()=>o.parseAuthCallback});
package/dist/react.js CHANGED
@@ -1,149 +1,164 @@
1
- import { a0 as l, a1 as c, a2 as i, a3 as t, a4 as r, a5 as b, a6 as y, a7 as I, a8 as N, a9 as d, aa as C, ab as m, c6 as p, ac as g, ad as k, ae as u, af as E, ag as v, ah as P, ai as S, aj as f, ak as h, al as T, am as B, an as F, ao as D, ap as L, aq as w, ar as A, as as R, at as M, au as G, av as x, aw as W, ax as z, ay as O, az as U, aA as q, aB as V, aC as Z, aD as _, aE as $, aF as j, aG as H, aH as J, aI as K, aJ as Q, aK as X, aL as Y, aM as aa, aN as sa, aO as oa, aP as na, aQ as ea, aR as la, aS as ca, aT as ia, aU as ta, aV as ra, aW as ba, aX as ya, aY as Ia, aZ as Na, a_ as da, a$ as Ca, b0 as ma, b1 as pa, b2 as ga, b3 as ka, b4 as ua, b5 as Ea, b6 as va, b7 as Pa, b8 as Sa, b9 as fa, ba as ha, bb as Ta, bc as Ba, bd as Fa, be as Da, bf as La, bg as wa, bh as Aa, N as Ra, bi as Ma, bj as Ga, bk as xa, bl as Wa, bm as za, bn as Oa, bo as Ua, bp as qa, bq as Va, br as Za, bs as _a, bt as $a, bu as ja, bv as Ha, bw as Ja, bx as Ka, by as Qa, bz as Xa, bA as Ya, bB as as, bC as ss, bD as os, bE as ns, bF as es, bG as ls, bH as cs, bI as is, bJ as ts, bK as rs, bL as bs, bM as ys, bN as Is, bO as Ns, bP as ds, bQ as Cs, bR as ms, c7 as ps, bS as gs, bT as ks, bU as us, bV as Es, bW as vs, bX as Ps, bY as Ss, bZ as fs, c4 as hs, b_ as Ts, b$ as Bs, c0 as Fs, c1 as Ds, c5 as Ls, c2 as ws, c3 as As, c9 as Rs, _ as Ms, c8 as Gs, ca as xs, $ as Ws, cb as zs } from "./index-140eb219.js";
1
+ import { NylasIdentityRequestWrapper as l } from "@nylas/web-elements";
2
+ import { A as t, b as i, e as c, B as y, i as I, C as N, j as d, k as C, l as m, m as b, n as p, o as g, br as k, p as u, q as E, t as S, v, w as P, x as f, y as T, z as h, D as B, E as F, G as w, I as A, J as D, K as L, L as R, M, N as x, O as G, P as O, Q as W, R as q, S as z, T as U, U as j, V, W as Z, X as J, Y as K, Z as Q, _ as X, $ as Y, a0 as _, a1 as $, a2 as H, a3 as aa, a4 as sa, a5 as oa, a6 as na, a7 as ea, a8 as la, a9 as ra, aa as ta, ab as ia, ac as ca, ad as ya, ae as Ia, af as Na, ag as da, ah as Ca, ai as ma, aj as ba, ak as pa, al as ga, am as ka, an as ua, ao as Ea, ap as Sa, aq as va, ar as Pa, as as fa, at as Ta, au as ha, av as Ba, aw as Fa, ax as wa, ay as Aa, az as Da, aA as La, aB as Ra, aC as Ma, aD as xa, aE as Ga, aF as Oa, aG as Wa, aH as qa, aI as za, aJ as Ua, aK as ja, aL as Va, aM as Za, aN as Ja, aO as Ka, aP as Qa, aQ as Xa, aR as Ya, aS as _a, aT as $a, aU as Ha, aV as as, aW as ss, aX as os, aY as ns, aZ as es, a_ as ls, a$ as rs, b0 as ts, b1 as is, b2 as cs, b3 as ys, b4 as Is, b5 as Ns, b6 as ds, b7 as Cs, b8 as ms, b9 as bs, ba as ps, bs as gs, bb as ks, bc as us, bd as Es, be as Ss, bf as vs, bg as Ps, bh as fs, bi as Ts, bp as hs, bj as Bs, bk as Fs, bl as ws, bm as As, bq as Ds, bn as Ls, bo as Rs, bu as Ms, d as xs, bt as Gs, bv as Os, s as Ws, u as qs, bw as zs } from "./index-025be398.js";
3
+ import { BrowserTokenStorage as js, ConfigError as Vs, MemoryTokenStorage as Zs, NetworkError as Js, NylasConnect as Ks, NylasConnectError as Qs, OAuthError as Xs, PopupError as Ys, TokenError as _s, isAuthCallback as $s, logger as Hs, parseAuthCallback as ao } from "@nylas/connect";
2
4
  import "react";
3
5
  import "react/jsx-runtime";
4
6
  import "react-dom";
5
7
  export {
6
- l as AddCircleIcon,
7
- c as ArchiveIcon,
8
- i as ArrowIcon,
9
- t as BoldIcon,
10
- r as ButtonComponent,
11
- b as CalendarAgendaFillIcon,
12
- y as CalendarAgendaIcon,
13
- I as CalendarCancelIcon,
14
- N as CalendarCheckIcon,
15
- d as CalendarIcon,
16
- C as CalendarInfoIcon,
17
- m as CalendarPatternsIcon,
18
- p as CalendarSync,
19
- g as CheckboxComponent,
20
- k as CheckboxGroup,
21
- u as CheckmarkCircleIcon,
22
- E as CheckmarkIcon,
23
- v as ChevronIcon,
24
- P as ClockIcon,
25
- S as CloseIcon,
26
- f as CopyIcon,
27
- h as DeleteIcon,
28
- T as DocumentRefreshIcon,
29
- B as DragableIcon,
30
- F as EditIcon,
8
+ t as AddCircleIcon,
9
+ i as ArchiveIcon,
10
+ c as ArrowIcon,
11
+ y as BoldIcon,
12
+ js as BrowserTokenStorage,
13
+ I as ButtonComponent,
14
+ N as CalendarAgendaFillIcon,
15
+ d as CalendarAgendaIcon,
16
+ C as CalendarCancelIcon,
17
+ m as CalendarCheckIcon,
18
+ b as CalendarIcon,
19
+ p as CalendarInfoIcon,
20
+ g as CalendarPatternsIcon,
21
+ k as CalendarSync,
22
+ u as CheckboxComponent,
23
+ E as CheckboxGroup,
24
+ S as CheckmarkCircleIcon,
25
+ v as CheckmarkIcon,
26
+ P as ChevronIcon,
27
+ f as ClockIcon,
28
+ T as CloseIcon,
29
+ Vs as ConfigError,
30
+ h as CopyIcon,
31
+ B as DeleteIcon,
32
+ F as DocumentRefreshIcon,
33
+ w as DragableIcon,
34
+ A as EditIcon,
31
35
  D as EnvelopeFillIcon,
32
36
  L as EnvelopeIcon,
33
- w as EyeIcon,
34
- A as FeedbackIcon,
35
- R as FlowIcon,
36
- M as FolderIcon,
37
- G as ForwardIcon,
38
- x as GlobeIcon,
39
- W as GoogleLogoIcon,
37
+ R as EyeIcon,
38
+ M as FeedbackIcon,
39
+ x as FlowIcon,
40
+ G as FolderIcon,
41
+ O as ForwardIcon,
42
+ W as GlobeIcon,
43
+ q as GoogleLogoIcon,
40
44
  z as GoogleMeetIcon,
41
- O as InboxIcon,
42
- U as InfoIcon,
43
- q as InputColorPicker,
44
- V as InputComponent,
45
- Z as InputDropdown,
46
- _ as InputImageUrl,
47
- $ as ItalicIcon,
48
- j as LoadingIcon,
49
- H as LocationIcon,
50
- J as LocationOffIcon,
51
- K as MicrosoftLogoIcon,
52
- Q as MicrosoftTeamsIcon,
53
- X as MultiSelectDropdown,
54
- Y as NylasAdditionalParticipants,
55
- aa as NylasAvailabilityPicker,
56
- sa as NylasBookedEventCard,
57
- oa as NylasBookingCalendarPicker,
58
- na as NylasBookingConfirmationRedirect,
59
- ea as NylasBookingConfirmationType,
60
- la as NylasBookingForm,
61
- ca as NylasBookingFormConfig,
62
- ia as NylasBufferTime,
63
- ta as NylasCalendarPicker,
64
- ra as NylasCancelBookingForm,
65
- ba as NylasCancellationPolicy,
66
- ya as NylasCancelledEventCard,
67
- Ia as NylasConfirmationEmail,
68
- Na as NylasConfirmedEventCard,
69
- da as NylasConnectedCalendars,
70
- Ca as NylasCustomBookingFlow,
71
- ma as NylasCustomEventSlug,
72
- pa as NylasCustomizeBookingSettings,
73
- ga as NylasDateComponent,
74
- ka as NylasDatePicker,
75
- ua as NylasDisableEmails,
76
- Ea as NylasEditorTabs,
77
- va as NylasEditorTabsGroup,
78
- Pa as NylasEventCalendar,
79
- Sa as NylasEventCapacity,
80
- fa as NylasEventDescription,
81
- ha as NylasEventDuration,
82
- Ta as NylasEventInfo,
83
- Ba as NylasEventLimits,
84
- Fa as NylasEventLocation,
45
+ U as InboxIcon,
46
+ j as InfoIcon,
47
+ V as InputColorPicker,
48
+ Z as InputComponent,
49
+ J as InputDropdown,
50
+ K as InputImageUrl,
51
+ Q as ItalicIcon,
52
+ X as LoadingIcon,
53
+ Y as LocationIcon,
54
+ _ as LocationOffIcon,
55
+ Zs as MemoryTokenStorage,
56
+ $ as MicrosoftLogoIcon,
57
+ H as MicrosoftTeamsIcon,
58
+ aa as MultiSelectDropdown,
59
+ Js as NetworkError,
60
+ sa as NylasAdditionalParticipants,
61
+ oa as NylasAvailabilityPicker,
62
+ na as NylasBookedEventCard,
63
+ ea as NylasBookingCalendarPicker,
64
+ la as NylasBookingConfirmationRedirect,
65
+ ra as NylasBookingConfirmationType,
66
+ ta as NylasBookingForm,
67
+ ia as NylasBookingFormConfig,
68
+ ca as NylasBufferTime,
69
+ ya as NylasCalendarPicker,
70
+ Ia as NylasCancelBookingForm,
71
+ Na as NylasCancellationPolicy,
72
+ da as NylasCancelledEventCard,
73
+ Ca as NylasConfirmationEmail,
74
+ ma as NylasConfirmedEventCard,
75
+ Ks as NylasConnect,
76
+ Qs as NylasConnectError,
77
+ ba as NylasConnectedCalendars,
78
+ pa as NylasCustomBookingFlow,
79
+ ga as NylasCustomEventSlug,
80
+ ka as NylasCustomizeBookingSettings,
81
+ ua as NylasDateComponent,
82
+ Ea as NylasDatePicker,
83
+ Sa as NylasDisableEmails,
84
+ va as NylasEditorTabs,
85
+ Pa as NylasEditorTabsGroup,
86
+ fa as NylasEventCalendar,
87
+ Ta as NylasEventCapacity,
88
+ ha as NylasEventDescription,
89
+ Ba as NylasEventDuration,
90
+ Fa as NylasEventInfo,
91
+ wa as NylasEventLimits,
92
+ Aa as NylasEventLocation,
85
93
  Da as NylasEventTimeslot,
86
94
  La as NylasEventTitle,
87
- wa as NylasFeedbackForm,
88
- Aa as NylasFormCard,
89
- Ra as NylasIdentityRequestWrapper,
90
- Ma as NylasLimitFutureBookings,
95
+ Ra as NylasFeedbackForm,
96
+ Ma as NylasFormCard,
97
+ l as NylasIdentityRequestWrapper,
98
+ xa as NylasLimitFutureBookings,
91
99
  Ga as NylasListConfigurations,
92
- xa as NylasLocaleSwitch,
100
+ Oa as NylasLocaleSwitch,
93
101
  Wa as NylasLogo,
94
- za as NylasMinBookingNotice,
95
- Oa as NylasMinCancellationNotice,
102
+ qa as NylasMinBookingNotice,
103
+ za as NylasMinCancellationNotice,
96
104
  Ua as NylasNotification,
97
- qa as NylasOrganizerConfirmationCard,
105
+ ja as NylasOrganizerConfirmationCard,
98
106
  Va as NylasPageName,
99
107
  Za as NylasPageStyling,
100
- _a as NylasParticipantBookingCalendars,
101
- $a as NylasParticipantsCustomAvailability,
102
- ja as NylasReminderEmails,
103
- Ha as NylasReminderTime,
104
- Ja as NylasSchedulerEditor,
105
- Ka as NylasScheduling,
106
- Qa as NylasSchedulingMethod,
107
- Xa as NylasSelectEventType,
108
- Ya as NylasSelectedEventCard,
109
- as as NylasSpecificDateAvailabilityPicker,
110
- ss as NylasTimeWindowPicker,
111
- os as NylasTimeslotInterval,
112
- ns as NylasTimeslotPicker,
113
- es as PaintbrushFillIcon,
114
- ls as PaintbrushIcon,
115
- cs as PeopleIcon,
108
+ Ja as NylasParticipantBookingCalendars,
109
+ Ka as NylasParticipantsCustomAvailability,
110
+ Qa as NylasReminderEmails,
111
+ Xa as NylasReminderTime,
112
+ Ya as NylasSchedulerEditor,
113
+ _a as NylasScheduling,
114
+ $a as NylasSchedulingMethod,
115
+ Ha as NylasSelectEventType,
116
+ as as NylasSelectedEventCard,
117
+ ss as NylasSpecificTimeAvailabilityPicker,
118
+ os as NylasTimeWindowPicker,
119
+ ns as NylasTimeslotInterval,
120
+ es as NylasTimeslotPicker,
121
+ Xs as OAuthError,
122
+ ls as PaintbrushFillIcon,
123
+ rs as PaintbrushIcon,
124
+ ts as PeopleIcon,
116
125
  is as PersonClipboardIcon,
117
- ts as PersonIcon,
118
- rs as PlayIcon,
119
- bs as PlusIcon,
120
- ys as RadioButtonGroup,
121
- Is as RefreshIcon,
122
- Ns as ReplyAllIcon,
123
- ds as ReplyIcon,
124
- Cs as SearchIcon,
125
- ms as SelectDropdown,
126
- ps as SendNotetaker,
127
- gs as SentIcon,
128
- ks as SpamIcon,
129
- us as StarIcon,
130
- Es as StopIcon,
126
+ cs as PersonIcon,
127
+ ys as PlayIcon,
128
+ Is as PlusIcon,
129
+ Ys as PopupError,
130
+ Ns as RadioButtonGroup,
131
+ ds as RefreshIcon,
132
+ Cs as ReplyAllIcon,
133
+ ms as ReplyIcon,
134
+ bs as SearchIcon,
135
+ ps as SelectDropdown,
136
+ gs as SendNotetaker,
137
+ ks as SentIcon,
138
+ us as SpamIcon,
139
+ Es as StarIcon,
140
+ Ss as StopIcon,
131
141
  vs as TextareaComponent,
132
142
  Ps as TimePeriodSelector,
133
- Ss as ToggleSwitch,
134
- fs as TooltipComponent,
143
+ fs as ToggleSwitch,
144
+ _s as TokenError,
145
+ Ts as TooltipComponent,
135
146
  hs as Transcript,
136
- Ts as TranslateIcon,
137
- Bs as TrashFillIcon,
138
- Fs as TrashIcon,
139
- Ds as UnderlineIcon,
140
- Ls as VideoPlayer,
141
- ws as WarningIcon,
142
- As as ZoomIcon,
143
- Rs as calendarSyncStore,
144
- Ms as defineCustomElements,
147
+ Bs as TranslateIcon,
148
+ Fs as TrashFillIcon,
149
+ ws as TrashIcon,
150
+ As as UnderlineIcon,
151
+ Ds as VideoPlayer,
152
+ Ls as WarningIcon,
153
+ Rs as ZoomIcon,
154
+ Ms as calendarSyncStore,
155
+ xs as defineCustomElements,
156
+ $s as isAuthCallback,
157
+ Hs as logger,
158
+ ao as parseAuthCallback,
145
159
  Gs as provider,
146
- xs as sendNotetakerStore,
160
+ Os as sendNotetakerStore,
147
161
  Ws as setNonce,
162
+ qs as useNylasConnect,
148
163
  zs as videoPlayerStore
149
164
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const s=".sc-refresh-icon-h{display:flex}",t=s,c=class{constructor(r){e.registerInstance(this,r),this.width="15",this.height="15"}render(){return e.h("svg",{key:"a9dbb422768797850a82bc75293ccd95d12d2943",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"ed3f88703da4059083cfd1c5c9aedfaedfdaca0d",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=t;exports.refresh_icon=c;