@nylas/react 1.1.0-canary.14 → 1.1.0-canary.15

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 (130) hide show
  1. package/dist/add-circle-icon_2.entry-00dc2c13.cjs +1 -0
  2. package/dist/add-circle-icon_2.entry-3f834b47.js +26 -0
  3. package/dist/{archive-icon_7.entry-60311199.cjs → archive-icon_7.entry-25d8b2f0.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-0dfc9782.js → archive-icon_7.entry-ca8262ff.js} +15 -15
  5. package/dist/{arrow-icon.entry-eb53c4cb.cjs → arrow-icon.entry-01192ecf.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-f38f3014.js → arrow-icon.entry-991ba7cd.js} +2 -2
  7. package/dist/{bold-icon_3.entry-20e74265.js → bold-icon_3.entry-81a3ff1e.js} +10 -10
  8. package/dist/{bold-icon_3.entry-d5100ffa.cjs → bold-icon_3.entry-e94dcf5b.cjs} +1 -1
  9. package/dist/{calendar-cancel-icon.entry-e5d1bc0a.cjs → calendar-cancel-icon.entry-9088fa8b.cjs} +1 -1
  10. package/dist/{calendar-cancel-icon.entry-0bdee178.js → calendar-cancel-icon.entry-f646c147.js} +5 -5
  11. package/dist/{calendar-check-icon_2.entry-10af2017.cjs → calendar-check-icon_2.entry-4dc1391a.cjs} +1 -1
  12. package/dist/{calendar-check-icon_2.entry-f18a2ddb.js → calendar-check-icon_2.entry-a7e4d0e6.js} +7 -7
  13. package/dist/{calendar-icon.entry-12ca0ae4.js → calendar-icon.entry-1658930c.js} +2 -2
  14. package/dist/{calendar-icon.entry-bc6f0808.cjs → calendar-icon.entry-1e2acd5c.cjs} +1 -1
  15. package/dist/{add-circle-icon_22.entry-ab0d5ede.js → calendar-info-icon_25.entry-493c5547.js} +966 -704
  16. package/dist/calendar-info-icon_25.entry-7513d798.cjs +1 -0
  17. package/dist/chevron-icon_3.entry-52b97043.cjs +1 -0
  18. package/dist/chevron-icon_3.entry-b3c7eb44.js +126 -0
  19. package/dist/{clock-icon_2.entry-ffc9e057.js → clock-icon_2.entry-58f07042.js} +3 -3
  20. package/dist/{clock-icon_2.entry-7cddf901.cjs → clock-icon_2.entry-882249ee.cjs} +1 -1
  21. package/dist/close-icon.entry-4a39816a.js +15 -0
  22. package/dist/close-icon.entry-f1166251.cjs +1 -0
  23. package/dist/{constants-f34b9c6e-108993e8.cjs → constants-f34b9c6e-1da5094b.cjs} +1 -1
  24. package/dist/{constants-f34b9c6e-37cabe82.js → constants-f34b9c6e-628beaa8.js} +1 -1
  25. package/dist/{document-refresh-icon.entry-d1f6259a.cjs → document-refresh-icon.entry-4f581bf4.cjs} +1 -1
  26. package/dist/{document-refresh-icon.entry-e4636c8e.js → document-refresh-icon.entry-b53316b4.js} +2 -2
  27. package/dist/elements/index.d.ts +9 -0
  28. package/dist/{elements-dc5b338e-a37a0510.cjs → elements-dc5b338e-3284591d.cjs} +1 -1
  29. package/dist/{elements-dc5b338e-c6f2806c.js → elements-dc5b338e-7abe37c6.js} +1 -1
  30. package/dist/{focus-visible-e8093c16-b62197ad.cjs → focus-visible-e8093c16-cb6c97b1.cjs} +1 -1
  31. package/dist/{focus-visible-e8093c16-b0821d89.js → focus-visible-e8093c16-d6612604.js} +1 -1
  32. package/dist/{forward-icon_6.entry-2a694e7c.js → forward-icon_6.entry-d54244f7.js} +9 -9
  33. package/dist/{forward-icon_6.entry-b81b22f6.cjs → forward-icon_6.entry-e402ad1e.cjs} +2 -2
  34. package/dist/{globe-icon.entry-c037589b.cjs → globe-icon.entry-db7377d9.cjs} +1 -1
  35. package/dist/{globe-icon.entry-e794eb52.js → globe-icon.entry-e83c79c2.js} +4 -4
  36. package/dist/google-logo-icon_4.entry-8818686b.js +429 -0
  37. package/dist/google-logo-icon_4.entry-fa65ae29.cjs +1 -0
  38. package/dist/{index-d61429c6.js → index-2d032bec.js} +1288 -1265
  39. package/dist/index-53420959-41ed02ae.js +5 -0
  40. package/dist/index-53420959-a76f0327.cjs +1 -0
  41. package/dist/{index-ef01c714-1e2feefc.js → index-6d9eeb53-91d36348.js} +2 -2
  42. package/dist/{index-ef01c714-54e17405.cjs → index-6d9eeb53-f478270c.cjs} +1 -1
  43. package/dist/index-9c04361d.cjs +42 -0
  44. package/dist/{index.es-74f70f7d-a22eba35.cjs → index.es-9cc0eb3c-2242baf6.cjs} +1 -1
  45. package/dist/{index.es-74f70f7d-da0e7fcf.js → index.es-9cc0eb3c-ee2ebbe1.js} +1 -1
  46. package/dist/{info-icon_2.entry-23e3fa8a.cjs → info-icon_2.entry-4b257e73.cjs} +1 -1
  47. package/dist/{info-icon_2.entry-647915bb.js → info-icon_2.entry-74eb7415.js} +5 -5
  48. package/dist/input-component.entry-3ef7ce2c.cjs +1 -0
  49. package/dist/input-component.entry-6bb4a5e8.js +45 -0
  50. package/dist/input-dropdown_2.entry-a87714fc.cjs +1 -0
  51. package/dist/input-dropdown_2.entry-f71e4c01.js +209 -0
  52. package/dist/{loading-icon.entry-1ddd0244.js → loading-icon.entry-30724cb0.js} +2 -2
  53. package/dist/{loading-icon.entry-98d65a5d.cjs → loading-icon.entry-bb250f1c.cjs} +1 -1
  54. package/dist/{mailbox-store-050a2914-6fef25fb.js → mailbox-store-64b4ef7c-202f1afd.js} +2 -2
  55. package/dist/{mailbox-store-050a2914-bd0a86bb.cjs → mailbox-store-64b4ef7c-74f959be.cjs} +1 -1
  56. package/dist/{nylas-additional-participants.entry-3c598863.cjs → nylas-additional-participants.entry-567c7c2a.cjs} +1 -1
  57. package/dist/{nylas-additional-participants.entry-0f93e24e.js → nylas-additional-participants.entry-7961be04.js} +5 -5
  58. package/dist/nylas-booked-event-card_10.entry-c2f889ba.cjs +1 -0
  59. package/dist/{nylas-booked-event-card_10.entry-9f7869af.js → nylas-booked-event-card_10.entry-ddfcff5e.js} +371 -299
  60. package/dist/{nylas-custom-booking-flow.entry-877cac85.cjs → nylas-custom-booking-flow.entry-63ed387e.cjs} +1 -1
  61. package/dist/{nylas-custom-booking-flow.entry-69638c50.js → nylas-custom-booking-flow.entry-a1f66d05.js} +10 -10
  62. package/dist/{nylas-form-card.entry-4349d07d.cjs → nylas-form-card.entry-6fece0ff.cjs} +1 -1
  63. package/dist/{nylas-form-card.entry-b2da5266.js → nylas-form-card.entry-ea1153b9.js} +11 -11
  64. package/dist/{nylas-if-state.entry-62474acb.js → nylas-if-state.entry-05f8f66f.js} +3 -3
  65. package/dist/{nylas-if-state.entry-9eade180.cjs → nylas-if-state.entry-b75320f0.cjs} +1 -1
  66. package/dist/{nylas-list-folders.entry-348a784b.js → nylas-list-folders.entry-bd5a1b1d.js} +7 -7
  67. package/dist/{nylas-list-folders.entry-b32ec92a.cjs → nylas-list-folders.entry-edc61b97.cjs} +1 -1
  68. package/dist/{nylas-list-threads.entry-7e8044b2.cjs → nylas-list-threads.entry-79ad0944.cjs} +1 -1
  69. package/dist/{nylas-list-threads.entry-ec1c5fb6.js → nylas-list-threads.entry-f3cd80de.js} +3 -3
  70. package/dist/{nylas-login.entry-0495d0b5.cjs → nylas-login.entry-68873357.cjs} +1 -1
  71. package/dist/{nylas-login.entry-f6f1e306.js → nylas-login.entry-b3207e82.js} +7 -7
  72. package/dist/{nylas-mailbox-pagination.entry-24c82c53.js → nylas-mailbox-pagination.entry-22c5b9ca.js} +2 -2
  73. package/dist/{nylas-mailbox-pagination.entry-22385ead.cjs → nylas-mailbox-pagination.entry-2ef5b88a.cjs} +1 -1
  74. package/dist/{nylas-mailbox-toolbar-button.entry-b13b2a58.js → nylas-mailbox-toolbar-button.entry-95bb58b5.js} +9 -9
  75. package/dist/{nylas-mailbox-toolbar-button.entry-e8e52474.cjs → nylas-mailbox-toolbar-button.entry-f2fa3a8e.cjs} +1 -1
  76. package/dist/{nylas-mailbox.entry-77f4c37e.cjs → nylas-mailbox.entry-4b1d320f.cjs} +1 -1
  77. package/dist/{nylas-mailbox.entry-0365fbb0.js → nylas-mailbox.entry-4ef7d18d.js} +6 -6
  78. package/dist/{nylas-provider.entry-11239372.js → nylas-provider.entry-7f7e098a.js} +6 -6
  79. package/dist/{nylas-provider.entry-d454a4d1.cjs → nylas-provider.entry-b629340a.cjs} +1 -1
  80. package/dist/{nylas-scheduler-editor.entry-16473950.cjs → nylas-scheduler-editor.entry-19a29c4c.cjs} +2 -2
  81. package/dist/{nylas-scheduler-editor.entry-c4d38853.js → nylas-scheduler-editor.entry-2d19593f.js} +13 -7
  82. package/dist/nylas-scheduling.entry-70454242.cjs +1 -0
  83. package/dist/{nylas-scheduling.entry-cc2535a9.js → nylas-scheduling.entry-753cb746.js} +61 -61
  84. package/dist/{nylas-threads-refresh.entry-725ef87d.cjs → nylas-threads-refresh.entry-0a832631.cjs} +1 -1
  85. package/dist/{nylas-threads-refresh.entry-5a6378fe.js → nylas-threads-refresh.entry-5a774ad7.js} +4 -4
  86. package/dist/{nylas-threads-search.entry-5e7b6a03.js → nylas-threads-search.entry-451c6d5c.js} +9 -9
  87. package/dist/nylas-threads-search.entry-5b57688b.cjs +1 -0
  88. package/dist/{nylas-view-thread.entry-98f8e35b.cjs → nylas-view-thread.entry-7b273955.cjs} +1 -1
  89. package/dist/{nylas-view-thread.entry-249f0b65.js → nylas-view-thread.entry-e0af8998.js} +3 -3
  90. package/dist/{people-icon.entry-0ab4b752.cjs → people-icon.entry-c7fb7f6c.cjs} +1 -1
  91. package/dist/{people-icon.entry-0ed95db0.js → people-icon.entry-de3fada0.js} +6 -6
  92. package/dist/{play-icon_2.entry-433a8722.js → play-icon_2.entry-58592b64.js} +5 -5
  93. package/dist/play-icon_2.entry-5b22a7ca.cjs +1 -0
  94. package/dist/react.cjs +1 -1
  95. package/dist/react.js +98 -89
  96. package/dist/{refresh-icon.entry-508a246d.cjs → refresh-icon.entry-876b8aea.cjs} +1 -1
  97. package/dist/{refresh-icon.entry-b5bee0f4.js → refresh-icon.entry-90756bc6.js} +4 -4
  98. package/dist/{register-component-e4dc8778-7812a275.cjs → register-component-a5a9ca5d-1fbb27d2.cjs} +1 -1
  99. package/dist/{register-component-e4dc8778-53fe0729.js → register-component-a5a9ca5d-8bede801.js} +1 -1
  100. package/dist/{scheduler-config-store-ec3b6190-435c84ca.cjs → scheduler-config-store-ec3b6190-104df545.cjs} +1 -1
  101. package/dist/{scheduler-config-store-ec3b6190-01892765.js → scheduler-config-store-ec3b6190-cbc40d60.js} +1 -1
  102. package/dist/scheduler-store-f02ce045-1d93c571.js +390 -0
  103. package/dist/scheduler-store-f02ce045-712c600c.cjs +1 -0
  104. package/dist/textarea-component.entry-3ea161d6.js +35 -0
  105. package/dist/textarea-component.entry-9d6b5cdc.cjs +1 -0
  106. package/dist/toggle-switch.entry-10aa0c1a.cjs +1 -0
  107. package/dist/toggle-switch.entry-a08c1027.js +25 -0
  108. package/dist/{translate-icon.entry-f77cfd3d.cjs → translate-icon.entry-04dde6b1.cjs} +1 -1
  109. package/dist/{translate-icon.entry-c34bad94.js → translate-icon.entry-be9c3401.js} +6 -6
  110. package/dist/{warning-icon.entry-f781a623.js → warning-icon.entry-347d77af.js} +5 -5
  111. package/dist/{warning-icon.entry-f73b31bf.cjs → warning-icon.entry-84121a43.cjs} +1 -1
  112. package/package.json +3 -3
  113. package/dist/add-circle-icon_22.entry-c165f0de.cjs +0 -1
  114. package/dist/chevron-icon_3.entry-55eb864f.js +0 -117
  115. package/dist/chevron-icon_3.entry-a18c373d.cjs +0 -1
  116. package/dist/close-icon.entry-7c67181c.js +0 -15
  117. package/dist/close-icon.entry-918dd254.cjs +0 -1
  118. package/dist/google-logo-icon_4.entry-748af8c3.cjs +0 -1
  119. package/dist/google-logo-icon_4.entry-b4464873.js +0 -393
  120. package/dist/index-53420959-31867ccf.js +0 -5
  121. package/dist/index-53420959-535906ce.cjs +0 -1
  122. package/dist/index-6a4ee4f8.cjs +0 -42
  123. package/dist/nylas-booked-event-card_10.entry-912e4a89.cjs +0 -1
  124. package/dist/nylas-scheduling.entry-5b156a28.cjs +0 -1
  125. package/dist/nylas-threads-search.entry-a2553cbe.cjs +0 -1
  126. package/dist/play-icon_2.entry-f9c0b647.cjs +0 -1
  127. package/dist/scheduler-store-04e15f8a-5d06eaf3.cjs +0 -1
  128. package/dist/scheduler-store-04e15f8a-69eb8d7a.js +0 -376
  129. package/dist/time-period-selector.entry-77a6debf.cjs +0 -1
  130. package/dist/time-period-selector.entry-a29c8ffa.js +0 -76
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-9c04361d.cjs"),v=require("./register-component-a5a9ca5d-1fbb27d2.cjs"),B=require("./constants-f34b9c6e-1da5094b.cjs"),W=require("./index-6d9eeb53-f478270c.cjs");require("./index-53420959-a76f0327.cjs");require("react");require("react-dom");const Ze=".sc-calendar-info-icon-h{display:flex}",Ye=Ze,Oe=class{constructor(e){t.registerInstance(this,e),this.width="20",this.height="20"}render(){return t.h("svg",{key:"4627a1bd7409bf86d6e987334411a7791cced94d",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"0ac301e5d6ecc7f616f2e4efe4bc58a492b5d6c2",d:"M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z",fill:"currentColor"}))}};Oe.style=Ye;const Ke=".sc-calendar-patterns-icon-h{display:flex}",Ge=Ke,He=class{constructor(e){t.registerInstance(this,e),this.width="20",this.height="20"}render(){return t.h("svg",{key:"51194c3d75fbd584a92f542e1577cd42d02220ea",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"4c59913ad1970a360ae9cd8e69551131e66fc00e",d:"M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z",fill:"currentColor"}))}};He.style=Ge;const qe='label{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}',Je=qe,$e=class{constructor(e){t.registerInstance(this,e),this.nylasFormCheckboxToggled=t.createEvent(this,"nylasFormCheckboxToggled",7),this.name="checkbox",this.checked=!1,this.label="",this.isChecked=this.checked}componentWillLoad(){this.isChecked=this.checked}toggleCheck(){this.isChecked=!this.isChecked,this.nylasFormCheckboxToggled.emit({checked:this.isChecked,name:this.name,label:this.label})}render(){return t.h("label",{key:"38e5db24a5990c9b892fc824508148c28d918097"},t.h("input",{key:"98d0bcc2e427035e7cc6fe216a1db105b65fc848",type:"checkbox",checked:this.isChecked,onChange:()=>this.toggleCheck()}),t.h("span",{key:"9d475bd9e76606d62791e3aad90acd3286daae4b",class:"checkmark"}),t.h("slot",{key:"901fc53b3031d828a9e83f074b4223ef40ed0566",name:"label"},t.h("span",{key:"fa95b9232724d82e023214e666948f5dd9d11a4f",class:"label"},this.label)))}};$e.style=Je;const Ve=".sc-flow-icon-h{display:flex}",Qe=Ve,Le=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="12"}render(){return t.h("svg",{key:"3cc6938f442a5a5929c7b649b2b1e63dc4ce9d9b",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"2fd666481696e0717a006c6cc35d14bfe076e778",d:"M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z",fill:"currentColor"}))}};Le.style=Qe;const Xe=".sc-location-icon-h{display:flex}",et=Xe,Me=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="18"}render(){return t.h("svg",{key:"ac7261b5c4435c0ce081169de0cc9f9153a4c0fc",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"72f2ad6299564760a1586d975d15cbfb776b171f",d:"M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z",fill:"currentColor"}))}};Me.style=et;const tt=".sc-location-off-icon-h{display:flex}",nt=tt,Fe=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="18"}render(){return t.h("svg",{key:"71b77626fd36927b30dd10b92175179cde4de388",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"a37496113d32883d1dde6a7821b7a34dbbe2e705",d:"M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z",fill:"currentColor"}))}};Fe.style=nt;const at=':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.dropdown{display:inline-block;width:100%;position:relative}.dropdown .dropdown-label{display:flex;align-items:center;gap:0.25rem;color:var(--nylas-base-800)}.dropbtn{width:inherit;height:48px;color:black;padding:0.5rem;font-size:1rem;cursor:pointer;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{border:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content ul li label{display:flex;align-items:center;gap:0.5rem}.dropdown-content ul li label input{margin:0}.selected-options{display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.5rem 0;margin-top:0.25rem;background:var(--nylas-base-0)}.selected-options .selected-option{display:flex;align-items:center;gap:0.5rem;padding:4px 8px;border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-100);color:var(--nylas-base-800);font-size:16px;font-weight:500;line-height:1.5rem;letter-spacing:0.5px}.selected-options .selected-option button{background:transparent;border:none;cursor:pointer;padding:0}.selected-options .selected-option button:hover{color:var(--nylas-primary)}',it=at,Ae=class{constructor(e){t.registerInstance(this,e),this.selectedOptionsChanged=t.createEvent(this,"selectedOptionsChanged",7),this.name=void 0,this.label=void 0,this.options=[],this.availableOptions=this.options,this.isOpen=!1,this.ariaActivedescendant="",this.shouldFocusFirstOption=!1}componentDidRender(){t.debug("multi-select-dropdown","componentDidRender"),this.isOpen&&this.shouldFocusFirstOption&&(this.ariaActivedescendant=this.availableOptions[0].value,this.focusOption(0),this.shouldFocusFirstOption=!1)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}selectOption(e){this.availableOptions=this.availableOptions.map(a=>(a.value===e.value&&(a.selected=!e.selected),a));const n=this.availableOptions.filter(a=>a.selected).map(a=>a.value);this.selectedOptionsChanged.emit({value:n,name:this.name})}toggleDropdown(){this.isOpen=!this.isOpen,this.isOpen?this.shouldFocusFirstOption=!0:this.ariaActivedescendant=""}handleSelectButtonKeyDown(e){switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){const n=this.availableOptions,a=n.findIndex(i=>i.value===this.ariaActivedescendant);switch(e.key){case"ArrowDown":case"Tab":if(e.shiftKey){e.preventDefault();const o=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[o].value,this.focusOption(o)}else{e.preventDefault();const o=a+1<n.length?a+1:0;this.ariaActivedescendant=n[o].value,this.focusOption(o)}break;case"ArrowUp":e.preventDefault();const i=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[i].value,this.focusOption(i);break;case"Enter":e.preventDefault(),this.ariaActivedescendant&&this.selectOption(n[a]);break;case"Escape":this.isOpen=!1;break}}focusOption(e){var o;const n=this.availableOptions[e];if(!n)return;const a=n.value,i=(o=this.el.shadowRoot)==null?void 0:o.getElementById(a);i&&(i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}))}getSelectedOptions(){return this.availableOptions.filter(e=>e.selected)}renderOption(e){return t.h("li",{key:e.value,id:e.value,role:"option",tabindex:"0","aria-selected":e.selected?"true":"false",onClick:n=>{n.stopImmediatePropagation(),this.selectOption(e)},class:{selected:!!e.selected}},t.h("label",{htmlFor:e.value},t.h("input",{"aria-hidden":"true",id:e.value,type:"checkbox",checked:e.selected}),t.h("span",null,e.label)))}render(){var e,n;return t.h(t.Host,{key:"89819bc74cdae708fbdd60dc3f4160c0047d1414"},t.h("div",{key:"2c3568247699101568790460b5d9ef6780cef096",class:"dropdown",part:"msd_dropdown"},t.h("label",{key:"d524fd75f9a8fcde85727904b6e2b21e5f6cbe0e",class:"dropdown-label"},this.label,t.h("slot",{key:"e4442acbc279840d6c3d815907fa79f6fd7a11d5",name:"label-icon","aria-hidden":"true"})),t.h("button",{key:"8b66520137e83747c4e74237c74598fa2081275f",part:"msd_dropdown-button",class:{dropbtn:!0,open:this.isOpen},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:a=>this.handleSelectButtonKeyDown(a)},t.h("slot",{key:"e6ba4fd51fb6cf3dde63757f9eef8d1538a9a91d",name:"select-icon","aria-hidden":"true"}),t.h("span",{key:"bfc7c1bdc8046bb3a27f11a587619ecfe6d62d32",class:"selected-option",part:"msd_dropdown-button-selected-label"},this.getSelectedOptions().length>1?`Multiple ${this.name}s selected`:((e=this.availableOptions.filter(a=>a.selected)[0])==null?void 0:e.label)??((n=this.availableOptions[0])==null?void 0:n.label)),t.h("span",{key:"f93e18714865b54dee754d2764b0b3bec3a4dead",class:this.isOpen?"open":"closed","aria-hidden":"true"},t.h("chevron-icon",{key:"d91d60366c8503e84cb6e41e43ac77f911f9517c",width:"16",height:"16"}))),this.isOpen?null:t.h("div",{class:"selected-options"},this.getSelectedOptions().map(a=>t.h("span",{class:"selected-option"},a.label,t.h("button",{key:a.label,onClick:()=>this.selectOption(a)},t.h("close-icon",null))))),this.isOpen?t.h("div",{class:"dropdown-content",part:"msd_dropdown-content"},t.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-multiselectable":!0,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:a=>this.handleListboxKeydown(a)},this.availableOptions.map(a=>this.renderOption(a)))):null))}get el(){return t.getElement(this)}};Ae.style=it;const st=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}',ot=st;var lt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},V=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const pe=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.openHours=void 0,this.name="availability",this.defaultTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.schedule={SUN:[],MON:[{start:"09:00am",end:"05:00pm"}],TUE:[{start:"09:00am",end:"05:00pm"}],WED:[{start:"09:00am",end:"05:00pm"}],THU:[{start:"09:00am",end:"05:00pm"}],FRI:[{start:"09:00am",end:"05:00pm"}],SAT:[]},this.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.overlapDays={}}elementNameChangedHandler(e){t.debug("nylas-calendar-picker","elementNameChangedHandler",e),this.host.setAttribute("name",e)}configChangedHandler(e){var a,i,o;const n=(a=e==null?void 0:e.participants)==null?void 0:a.find(s=>s.is_organizer);n&&((i=n==null?void 0:n.availability)!=null&&i.open_hours)&&this.openHoursToSchedule((o=n==null?void 0:n.availability)==null?void 0:o.open_hours)}scheduleChanged(e,n){var a;if(e!==n){this.valueChanged.emit({value:{openHours:this.scheduleToOpenHours(e),timezone:this.timezone},name:this.name});let i={};if(Object.keys(e).forEach(o=>{const s=e[o];if(s.length>0){const l=this.getOverlaps(s);l.length>0&&(i[o]=l)}}),this.overlapDays=i,typeof this.internals.setFormValue!="function")return;if(Object.keys(i).length>0){const o=(a=this.host.shadowRoot)==null?void 0:a.getElementById(Object.keys(i)[0]);o&&(t.debug("nylas-availability-picker","The time ranges are overlapping. Overlap: ",i),this.internals.setValidity({customError:!0},"Overlapping time ranges found",o))}else this.internals.setValidity({customError:!1}),this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}}nylasFormDropdownChangedHandler(e){const{name:n,value:a}=e.detail;if(n==="timezone"){if(this.timezone=a,typeof this.internals.setFormValue!="function")return;this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}}connectedCallback(){t.debug("nylas-availability-picker","connectedCallback")}disconnectedCallback(){t.debug("nylas-availability-picker","disconnectedCallback")}componentWillLoad(){t.debug("nylas-availability-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-availability-picker","componentDidLoad"),this.openHours&&this.openHours.length>0&&this.openHoursToSchedule(this.openHours),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}getOverlaps(e){let n=e.map((i,o)=>({start:t.timeToMinutes(i.start),end:t.timeToMinutes(i.end),originalIndex:o}));n.sort((i,o)=>i.start-o.start);let a=[];for(let i=1;i<n.length;i++)n[i].start<n[i-1].end&&(a.includes(n[i].originalIndex)||a.push(n[i].originalIndex),a.includes(n[i-1].originalIndex)||a.push(n[i-1].originalIndex));return a.sort((i,o)=>i-o)}addTimeRange(e){const n=this.schedule[e],a=0,i=1425;if(n.length===0)this.schedule[e]=[{start:"09:00am",end:"05:00pm"}];else{const o=n.map(l=>({start:t.timeToMinutes(l.start),end:t.timeToMinutes(l.end)})).sort((l,r)=>l.start-r.start),s=o[o.length-1].end;if(s+60<=i)this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(s)),end:t.convertTo12HourFormat(t.minutesToTime(s+60))});else{let l=!1;if(o[0].start>a+60&&(this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(a)),end:t.convertTo12HourFormat(t.minutesToTime(a+60))}),l=!0),!l)for(let r=0;r<o.length-1;r++){const p=o[r].end;if(o[r+1].start-p>=60){this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(p)),end:t.convertTo12HourFormat(t.minutesToTime(p+60))});break}}}}this.schedule[e].sort((o,s)=>t.timeToMinutes(o.start)-t.timeToMinutes(s.start)),this.schedule={...this.schedule}}removeTimeRange(e,n){this.schedule[e].splice(n,1),this.schedule={...this.schedule}}setTime(e){const{key:n,value:a}=e.detail,[i,o]=n.split("_"),[s,l]=i.split(":");o==="start"?this.schedule[s][l].start=a:o==="end"&&(this.schedule[s][l].end=a),this.internals.setValidity({customError:!1}),this.schedule={...this.schedule}}setFormError(e){var s;const{key:n}=e.detail,[a,i]=n.split("_"),o=(s=this.host.shadowRoot)==null?void 0:s.getElementById(n);o&&this.internals.setValidity({customError:!0},`Invalid ${i} time`,o)}openHoursToSchedule(e){const n={SUN:[],MON:[],TUE:[],WED:[],THU:[],FRI:[],SAT:[]};e.forEach(a=>{a.days.forEach(i=>{const o=this.getDayKey(i),s=t.convertTo12HourFormat(a.start),l=t.convertTo12HourFormat(a.end),r={start:s,end:l};let p=!1;n[o]&&(p=n[o].some(c=>c.start===r.start&&c.end===r.end)),p||(n[o]?n[o].push(r):n[o]=[r])})}),this.timezone=this.defaultTimezone,this.schedule=n}getDayKey(e){return["SUN","MON","TUE","WED","THU","FRI","SAT"][e]}scheduleToOpenHours(e){const n=["SUN","MON","TUE","WED","THU","FRI","SAT"];let a=new Map;n.forEach((o,s)=>{e[o]&&e[o].forEach(l=>{const r=t.convertTo24HourFormat(l.start),p=t.convertTo24HourFormat(l.end),c=`${r}-${p}`;if(!a.has(c))a.set(c,{days:[s],start:r,end:p});else{let h=a.get(c);h&&(h.days.push(s),a.set(c,h))}})});let i=[];return a.forEach((o,s)=>{i.push({days:o.days,start:o.start,end:o.end,timezone:this.timezone})}),i}render(){const e=Object.keys(B.TIMEZONE_MAP).map(n=>({label:B.TIMEZONE_MAP[n],value:n}));return t.h(t.Host,{key:"c032e8a3630fe918533895156285e4b37778d812"},t.h("div",{key:"1582bd8c1f3ef09d793a7120dafb6c7d420c3e9a",class:"nylas-availability-picker"},t.h("div",{key:"61f2c1de7921e15455d7b827379e7d4815f6fb13",class:"header",part:"nap__header"},t.h("h3",{key:"238b0ab77477d06a62412fed051d5641924e46d4"},"General availability"),t.h("p",{key:"81967b68c5077941a5bf3d055c9be9e41d4ae705"},"Set your availability for scheduling meetings.")),t.h("div",{key:"f1da5a939c1459bd7e9833cf9a97add09d75a822",class:"content"},t.h("div",{key:"71e2f859541bd4fb2a4485f3350db5d6bbf73b00",class:"select-timezone",part:"nap__select-timezone"},t.h("h4",{key:"a136696a498fb1521d4d8d844b9b03e2e49ff93a",class:"sub-header"},"Select timezone",t.h("span",{key:"52636e30a6dea12cb69d55bd258ed48837826c80",class:"icon"},t.h("tooltip-component",{key:"9f0dbc8c234f3550e83bbce3226346981b764896"},t.h("info-icon",{key:"a8f556694bd02b710c89242a3d3057de5b7b0612",slot:"tooltip-icon"}),t.h("span",{key:"a8a52dd9835c32becbae165fa972bf6be6e716fa",slot:"tooltip-content"},"Select your timezone for displaying availability.")))),t.h("select-dropdown",{key:"4800272cc24dcd24c82a4a89f24131c11e528d8c",name:"timezone",exportparts:"sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content",options:e,defaultSelectedOption:e.find(n=>n.value===this.defaultTimezone)},t.h("span",{key:"8b072e23cd0130f203696f5c99baaad07b1bbb2e",slot:"select-icon"},t.h("globe-icon",{key:"de4c7ef153bff887947d73ed458aa5de0786b576",width:"20",height:"20"})))),t.h("div",{key:"6234933a0307c253e33ad9242e06c71388ba7a0a",class:"availability",part:"nap__availability"},Object.keys(this.schedule).map(n=>{const a=n,i=this.schedule[n];return t.h("div",{class:"availability-day"},t.h("div",{class:"day",part:"nap__day"},t.h("input",{type:"checkbox",name:a,id:a,checked:i.length>0,onClick:()=>{i.length>0?this.schedule[a]=[]:this.schedule[a]=[{start:"09:00am",end:"05:00pm"}],this.schedule={...this.schedule}}}),t.h("label",{htmlFor:a,"aria-label":"Select day"},a)),t.h("div",{class:"time-ranges",part:"nap__time-ranges"},i.length?null:t.h("span",{class:"unavailable"},"Unavailable"),i.length>0&&i.map((o,s)=>{var p,c;const l=`${n}:${s}_start`,r=`${n}:${s}_end`;return t.h("div",{class:"time-range",part:"nap__time-range"},t.h("div",{class:"pickers"},t.h("nylas-time-window-picker",{id:l,hasError:(p=this.overlapDays[a])==null?void 0:p.includes(s),time:o.start,name:l,key:l,exportparts:"time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times"}),t.h("span",null," - "),t.h("nylas-time-window-picker",{id:r,hasError:(c=this.overlapDays[a])==null?void 0:c.includes(s),time:o.end,name:r,key:r,minimumStartTime:o.start,exportparts:"time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times"})),t.h("button",{onClick:()=>this.removeTimeRange(a,s)},t.h("close-icon",null)))}),t.h("p",{class:"error"},this.overlapDays[a]?"Overlapping time ranges":"")),t.h("div",null,i.length>0?t.h("button",{onClick:()=>this.addTimeRange(a),part:"nap__add-time-range"},t.h("add-circle-icon",null)):null))})))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["configChangedHandler"],schedule:["scheduleChanged"]}}};lt([v.RegisterComponent({name:"nylas-availability-picker",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),fireRegisterEvent:!0}),V("design:type",Function),V("design:paramtypes",[]),V("design:returntype",void 0)],pe.prototype,"render",null);pe.style=ot;const rt=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',dt=rt;var ct=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},Q=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ue=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.calendars=void 0,this.currentUser=void 0,this.name="booking-calendar",this.defaultBookingCalendar="",this.selectedCalendar=""}connectedCallback(){t.debug("nylas-booking-calendar-picker","connectedCallback")}disconnectedCallback(){t.debug("nylas-booking-calendar-picker","disconnectedCallback")}componentWillLoad(){t.debug("nylas-booking-calendar-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var e,n;t.debug("nylas-booking-calendar-picker","componentDidLoad"),this.defaultBookingCalendar=this.defaultBookingCalendar||((e=this.currentUser)==null?void 0:e.email)||"",typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.defaultBookingCalendar.toString(),"booking-calendar"),this.selectedCalendar=this.defaultBookingCalendar||((n=this.currentUser)==null?void 0:n.email)||""}componentWillUpdate(){t.debug("nylas-booking-calendar-picker","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-booking-calendar-picker","componentDidUpdate")}componentWillRender(){t.debug("nylas-booking-calendar-picker","componentWillRender")}componentDidRender(){t.debug("nylas-booking-calendar-picker","componentDidRender")}elementNameChangedHandler(e){t.debug("nylas-booking-calendar-picker","elementNameChangedHandler",e),this.host.setAttribute("name",e)}nylasFormDropdownChangedHandler(e){t.debug("nylas-booking-calendar-picker","nylasFormDropdownChangedHandler",e.detail);const n=a=>{const{value:i}=a.detail;this.selectedCalendar=i,this.internals.setFormValue(i.toString(),this.name)};this.valueChanged.emit({value:e.detail.value,name:this.name,valueChanged:n})}render(){var n;const e=((n=this.calendars)==null?void 0:n.map(a=>({value:a.id,label:a.name})))??[];return t.h(t.Host,null,t.h("div",{class:"nylas-booking-calendar-picker",part:"nbcp"},t.h("div",{class:"header",part:"nbcp__header"},t.h("h3",null,"Calendar booking"),t.h("p",null,"Choose calendar where you’d like the event bookings to show up.")),e.length>0?t.h("div",{class:"nylas-booking-calendar-picker__dropdown"},t.h("span",{class:"label",part:"nbcp__input-label"},"Select a calendar to book meetings on",t.h("tooltip-component",null,t.h("info-icon",{slot:"tooltip-icon"}),t.h("span",{slot:"tooltip-content"},"Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available."))),t.h("select-dropdown",{name:"booking-calendar",options:e,withSearch:!1,exportparts:"sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content",defaultSelectedOption:e.find(a=>a.value==this.defaultBookingCalendar)??e[0]})):t.h("div",{class:"nylas-booking-calendar-picker__loading"},t.h("span",{class:"label"},"Select a calendar to book meetings on ",t.h("info-icon",null)),t.h("div",{class:"loading-button"},t.h("span",null,"Loading...")))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};ct([v.RegisterComponent({name:"nylas-booking-calendar-picker",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.currentUser","currentUser"]]),eventToProps:{valueChanged:async(e,n)=>{const{valueChanged:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),Q("design:type",Function),Q("design:paramtypes",[]),Q("design:returntype",void 0)],ue.prototype,"render",null);ue.style=dt;const ft=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',ht=ft;var pt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},X=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const be=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.name="buffer-time",this.buffer={before:0,after:0},this.selectedBeforeBufferTime=this.buffer.before,this.selectedAfterBufferTime=this.buffer.after}connectedCallback(){t.debug("nylas-buffer-time","connectedCallback")}disconnectedCallback(){t.debug("nylas-buffer-time","disconnectedCallback")}componentWillLoad(){t.debug("nylas-buffer-time","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){if(t.debug("nylas-buffer-time","componentDidLoad"),typeof this.internals.setFormValue=="function"){const e={before:this.selectedBeforeBufferTime,after:this.selectedAfterBufferTime};this.internals.setFormValue(JSON.stringify(e),this.name)}this.selectedAfterBufferTime=this.buffer.after,this.selectedBeforeBufferTime=this.buffer.before}componentWillUpdate(){t.debug("nylas-buffer-time","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-buffer-time","componentDidUpdate")}componentWillRender(){t.debug("nylas-buffer-time","componentWillRender")}componentDidRender(){t.debug("nylas-buffer-time","componentDidRender")}elementNameChangedHandler(e){t.debug("nylas-buffer-time","elementNameChangedHandler",e),this.host.setAttribute("name",e)}nylasFormDropdownChangedHandler(e){t.debug("nylas-buffer-time","nylasFormDropdownChangedHandler",e.detail);const n=a=>{const{value:i,name:o}=a.detail;o==="before-buffer-time"?this.selectedBeforeBufferTime=parseInt(i):o==="after-buffer-time"&&(this.selectedAfterBufferTime=parseInt(i));const s={before:this.selectedBeforeBufferTime,after:this.selectedAfterBufferTime};this.internals.setFormValue(JSON.stringify(s),"booking-calendar")};this.valueChanged.emit({...e.detail,valueChanged:n})}renderPreview(){const i=l=>{const r=Math.floor(l/30),p=l%30/30*10;return{fullSlots:r,partialFillHeight:p}},o=()=>{const{fullSlots:l,partialFillHeight:r}=i(this.selectedBeforeBufferTime);return Array.from({length:4},(p,c)=>{const h=this.selectedBeforeBufferTime>0&&c>4-l-1,m=this.selectedBeforeBufferTime>0&&c===4-l-1&&r>0;let y={};return h&&!m?y.backgroundColor="var(--nylas-base-100)":m&&(y.background=`linear-gradient(to top, var(--nylas-base-100) ${r}px, transparent 0)`),t.h("div",{key:c,class:`slot ${h?"active":""}`,style:{height:"10px",...y}})})},s=()=>{const{fullSlots:l,partialFillHeight:r}=i(this.selectedAfterBufferTime);return Array.from({length:4},(p,c)=>{const h=this.selectedAfterBufferTime>0&&c<l,m=c===l&&r>0;let y={};return h&&!m?y.backgroundColor="var(--nylas-base-100)":m&&(y.background=`linear-gradient(to bottom, var(--nylas-base-100) ${r}px, transparent 0)`),t.h("div",{key:c,class:`slot ${h?"active":""}`,style:{height:"10px",...y}})})};return t.h("div",{class:"preview-container"},o(),t.h("div",{class:"event-slot",style:{height:"20px"}}),s())}render(){const e=Array.from({length:25},(n,a)=>{const i=a*5;return{label:i.toString(),value:i}});return t.h(t.Host,null,t.h("div",{class:"nylas-buffer-time",part:"nbt"},t.h("div",{class:"header",part:"nbt__header"},t.h("h3",null,"Buffer time"),t.h("p",null,"Add buffer time before and after the event.")),t.h("div",{class:"nylas-buffer-time__body",part:"nbt__body"},t.h("div",{class:"nylas-buffer-time__dropdown"},t.h("div",{class:"nylas-buffer-time__row"},t.h("label",null,"Before the event"),t.h("div",{class:"dropdown-container"},t.h("select-dropdown",{id:"before-buffer-time",withSearch:!1,name:"before-buffer-time",exportparts:"sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before",options:e,defaultSelectedOption:e.find(n=>n.value==this.selectedBeforeBufferTime)??e[0]}),t.h("span",null,"mins"))),t.h("div",{class:"nylas-buffer-time__row"},t.h("label",null,"After the event"),t.h("div",{class:"dropdown-container"},t.h("select-dropdown",{id:"after-buffer-time",withSearch:!1,name:"after-buffer-time",exportparts:"sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after",options:e,defaultSelectedOption:e.find(n=>n.value==this.selectedAfterBufferTime)??e[0]}),t.h("span",null,"mins")))),t.h("div",{class:"nylas-buffer-time__preview",part:"nbt__preview"},t.h("h4",null,"PREVIEW"),this.renderPreview()))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};pt([v.RegisterComponent({name:"nylas-buffer-time",eventToProps:{valueChanged:async(e,n)=>{const{valueChanged:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],be.prototype,"render",null);be.style=ht;const ut=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',bt=ut;var mt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ee=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const me=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.calendars=void 0,this.currentUser=void 0,this.name="calendar",this.defaultSelectedCalendars=[],this.selectedCalendars=[]}elementNameChangedHandler(e){t.debug("nylas-calendar-picker","elementNameChangedHandler",e),this.host.setAttribute("name",e)}connectedCallback(){t.debug("nylas-calendar-picker","connectedCallback")}disconnectedCallback(){t.debug("nylas-calendar-picker","disconnectedCallback")}componentWillLoad(){t.debug("nylas-calendar-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-calendar-picker","componentDidLoad"),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.defaultSelectedCalendars.toString(),"calendar")}componentWillUpdate(){t.debug("nylas-calendar-picker","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-calendar-picker","componentDidUpdate")}componentWillRender(){t.debug("nylas-calendar-picker","componentWillRender")}componentDidRender(){t.debug("nylas-calendar-picker","componentDidRender")}selectedOptionsChangedHandler(e){t.debug("nylas-calendar-picker","nylasFormDropdownChangedHandler",e.detail);const n=a=>{const{value:i}=a.detail;this.selectedCalendars=[...i],this.internals.setFormValue(i.toString(),"calendar")};this.valueChanged.emit({...e.detail,name:this.name,valueChangedHandler:n})}render(){var n;const e=((n=this.calendars)==null?void 0:n.map(a=>{var i,o,s,l;return{value:a.id,label:a.name,selected:((i=this.defaultSelectedCalendars)==null?void 0:i.includes(a.id))||((o=this.defaultSelectedCalendars)!=null&&o.includes("primary")||((s=this.defaultSelectedCalendars)==null?void 0:s.length)===0?a.id===((l=this.currentUser)==null?void 0:l.email):!1)}}))??[];return t.h(t.Host,null,t.h("div",{class:"nylas-calendar-picker",part:"ncp"},t.h("div",{class:"header",part:"ncp__header"},t.h("h3",null,"Calendar availability"),t.h("p",null,"Select calendars that you’d like to use for checking your availability.")),e.length>0?t.h("div",{class:"nylas-calendar-picker__dropdown"},t.h("multi-select-dropdown",{name:"calendar",label:"Select calendars that will be checked for availability",options:e,exportparts:"msd_dropdown: ncp__dropdown, msd_dropdown-button: ncp__dropdown-button, msd_dropdown-content: ncp__dropdown-content"},t.h("span",{slot:"label-icon"},t.h("tooltip-component",null,t.h("info-icon",{slot:"tooltip-icon"}),t.h("span",{slot:"tooltip-content"},"Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available. The default is your primary calendar if none are selected."))))):t.h("div",{class:"nylas-calendar-picker__loading"},t.h("span",{class:"label"},"Select calendars that will be checked for availability ",t.h("info-icon",null)),t.h("div",{class:"loading-button"},t.h("span",null,"Loading...")))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};mt([v.RegisterComponent({name:"nylas-calendar-picker",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.currentUser","currentUser"]]),eventToProps:{valueChanged:async(e,n)=>{const{valueChangedHandler:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),ee("design:type",Function),ee("design:paramtypes",[]),ee("design:returntype",void 0)],me.prototype,"render",null);me.style=bt;const yt=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}',gt=yt;var vt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},te=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ye=class{constructor(e){var n,a;t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.cancellationPolicy=void 0,this.name="cancelation-policy",this.message=this.cancellationPolicy||((a=(n=this.selectedConfiguration)==null?void 0:n.scheduler)==null?void 0:a.cancellation_policy)||""}elementNameChangedHandler(e){t.debug("nylas-cancellation-policy","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e,n){var a,i;t.debug("nylas-custom-booking-flow","selectedConfigurationChangedHandler",e,n),(a=e==null?void 0:e.scheduler)!=null&&a.cancellation_policy&&(this.message=(i=e==null?void 0:e.scheduler)==null?void 0:i.cancellation_policy)}connectedCallback(){t.debug("nylas-cancellation-policy","connectedCallback")}componentWillLoad(){t.debug("nylas-cancellation-policy","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-cancellation-policy","componentDidLoad")}disconnectedCallback(){t.debug("nylas-cancellation-policy","disconnectedCallback")}handleChange(e){const n=W.sanitizeHtml$1(e.target.value);this.message=n,this.internals.setFormValue(n,this.name),this.valueChanged.emit({value:n,name:this.name})}render(){return t.h(t.Host,{key:"9ad194925cfb18c323d3f75aec51c4ac5ad67230"},t.h("div",{key:"a4ae061a504a0cd6a91dd6dd23adcf7c3b8f43d5",class:"nylas-cancellation-policy",part:"ncpolicy"},t.h("label",{key:"ea742ee8fba2e50a5694c210172e8783fa3d5e7b",htmlFor:this.name},"Cancellation policy message",t.h("span",{key:"5c7143f8da100b650aa386c9fb895c3fd9ed2e04",class:"label-icon"},t.h("tooltip-component",{key:"f46c7b94a1a58bd7162e5cfffc14a88b04a18a4c"},t.h("info-icon",{key:"9d85ce578da1db7b080f3152b8fdb43834968829",slot:"tooltip-icon"}),t.h("span",{key:"0e4d0c4f98d1529179622c22fa6bf9d56d085ffb",slot:"tooltip-content"},"Attendees receive this message if trying to cancel the event. Attendees are asked to provide a reason for cancellation.")))),t.h("textarea",{key:"570404ef8450c4ef2bb28fad4d1c6359b735abae",id:this.name,part:"ncpolicy__textarea",name:this.name,value:this.message,maxlength:"250",onInput:e=>this.handleChange(e)})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"]}}};vt([v.RegisterComponent({name:"nylas-cancellation-policy",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),te("design:type",Function),te("design:paramtypes",[]),te("design:returntype",void 0)],ye.prototype,"render",null);ye.style=gt;const kt=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}',xt=kt;var _t=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ne=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ge=class{constructor(e){var n,a,i,o,s,l;t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.defaultAdditionalGuestsHidden=((a=(n=this.selectedConfiguration)==null?void 0:n.scheduler)==null?void 0:a.additional_guests_hidden)??!1,this.defaultHideCancellationOptions=((o=(i=this.selectedConfiguration)==null?void 0:i.scheduler)==null?void 0:o.hide_cancellation_options)??!1,this.defaultHideReschedulingOptions=((l=(s=this.selectedConfiguration)==null?void 0:s.scheduler)==null?void 0:l.hide_rescheduling_options)??!1,this.name="customize-booking-settings",this.allowGuestsToInvite=this.defaultAdditionalGuestsHidden,this.hideCancellationOptions=this.defaultHideCancellationOptions,this.hideReschedulingOptions=this.defaultHideReschedulingOptions}elementNameChangedHandler(e){t.debug("nylas-customize-booking-settings","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var n,a,i;t.debug("nylas-customize-booking-settings","selectedConfigurationChangedHandler",e),this.allowGuestsToInvite=!((n=e==null?void 0:e.scheduler)!=null&&n.additional_guests_hidden),this.hideCancellationOptions=((a=e==null?void 0:e.scheduler)==null?void 0:a.hide_cancellation_options)??!1,this.hideReschedulingOptions=((i=e==null?void 0:e.scheduler)==null?void 0:i.hide_rescheduling_options)??!1}connectedCallback(){t.debug("nylas-customize-booking-settings","connectedCallback")}disconnectedCallback(){t.debug("nylas-customize-booking-settings","disconnectedCallback")}componentWillLoad(){t.debug("nylas-customize-booking-settings","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-customize-booking-settings","componentDidLoad")}componentWillUpdate(){t.debug("nylas-customize-booking-settings","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-customize-booking-settings","componentDidUpdate")}componentWillRender(){t.debug("nylas-customize-booking-settings","componentWillRender")}componentDidRender(){t.debug("nylas-customize-booking-settings","componentDidRender")}checkboxToggledHandler(e){const{name:n,checked:a}=e.detail;switch(n){case"additional_guests_hidden":this.allowGuestsToInvite=a;break;case"hide_cancellation_options":this.hideCancellationOptions=a;break;case"hide_rescheduling_options":this.hideReschedulingOptions=a;break}this.valueChanged.emit({value:JSON.stringify({additionalGuestsHidden:!this.allowGuestsToInvite,hideCancellationOptions:this.hideCancellationOptions,hideReschedulingOptions:this.hideReschedulingOptions}),name:this.name}),this.internals.setFormValue(JSON.stringify({additionalGuestsHidden:!this.allowGuestsToInvite,hideCancellationOptions:this.hideCancellationOptions,hideReschedulingOptions:this.hideReschedulingOptions}),this.name)}render(){return t.h(t.Host,{key:"992ccff7eab4869bf8b845713417b95e3389fd4e"},t.h("div",{key:"b6ef35657d2bbad229988c0b49583230db54161f",class:"nylas-customize-booking-settings",part:"ncbs"},t.h("div",{key:"ff4e03f5c0e9f7d0dae8e231aecc051e6c4c0e19",class:"header",part:"ncbs__header"},t.h("h3",{key:"d2bec3aa510726cbf74972eb88adf5f138ba0b1e"},"Additional settings"),t.h("p",{key:"d77ad0ca1cad6ee54fc7324732d54a8b4a3b8169"},"Booking settings for the event.")),t.h("div",{key:"24e2811534d1ecf7fa8581e9fc55c34ceb3ef6d2",class:"nylas-customize-booking-settings__settings",part:"ncbs__settings"},t.h("div",{key:"61a22cc50cdc6e625d25c5970cf853e5dd8187ab",class:"nylas-customize-booking-settings__settings-div",part:"ncbs__settings-div , ncbs__additional_guests"},t.h("checkbox-component",{key:"79b6079f75f2fd1b1c850a29ab5b0c15a8ed7d18",name:"additional_guests_hidden",label:"Allow guests to invite additional guests.",checked:this.allowGuestsToInvite},t.h("span",{key:"11955e5ef0d789692ccb6c4657eaa4c45da26706",slot:"label",class:"label"},t.h("p",{key:"9b968109bbabf45eab71c2c44534983138f04f23",class:"label-contents"},"Allow guests to invite additional guests to the booking."),t.h("tooltip-component",{key:"a07a91c34ae38dda51d598fb4468df21adb3f7be",id:"guests"},t.h("info-icon",{key:"007977190eff2a79fe50de5f46b8fd51ce331cbe",slot:"tooltip-icon"}),t.h("span",{key:"10f385796d8872f4a2568192ec707268defe89e9",slot:"tooltip-content"},"Allow guests to invite additional guests to the event. If enabled, the guest will be able to add additional guests' email addresses."))))),t.h("div",{key:"a134a6ac8b3908c6fa9c512ee110bcd577aac029",class:"nylas-customize-booking-settings__settings-div",part:"ncbs__settings-div , ncbs__rescheduling_options"},t.h("checkbox-component",{key:"5ad8ad1c3fb1c937335dd8e0d82a0dd3d5a635dd",name:"hide_rescheduling_options",label:"Hide 'Reschedule' option on booking page and emails.",checked:this.hideReschedulingOptions},t.h("span",{key:"40c94ef2bf663ac961eb7aec4bc39691ac6b0818",slot:"label",class:"label"},t.h("p",{key:"d3417ba815f5ab78e503ae6cf9fc7bffcc12d111",class:"label-contents"},"Hide the ",t.h("strong",{key:"7b1c6e8327f76fa552ff9f285bb7d7e88d601a0b"},"Reschedule")," button on the Scheduling Page and in the email notifications."),t.h("tooltip-component",{key:"4c9acdacae74c069b6d9c4f2bab65f2f2a8bd3f7",id:"reschedule"},t.h("info-icon",{key:"2a16cac01e270b0383377692de9ae13717a2d3d0",slot:"tooltip-icon"}),t.h("span",{key:"17b130ce1be45cce38f72450bc4e6f63aa0bad41",slot:"tooltip-content"},"Hide the 'Reschedule' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to reschedule the booking."))))),t.h("div",{key:"1ab5fe25b44eae2f53b2018b6f68f14f1845cf77",class:"nylas-customize-booking-settings__settings-div",part:"ncbs__settings-div , ncbs__cancellation_options"},t.h("checkbox-component",{key:"48502f280cdc6bd9dd4ddfd3b56ee91209b7dec5",name:"hide_cancellation_options",label:"Hide 'Cancel' option on booking page and emails.",checked:this.hideCancellationOptions},t.h("span",{key:"4a71756f70076e96ed5eb109f54b679f2267bf69",slot:"label",class:"label"},t.h("p",{key:"838fdd1635b8f0ce3f3918adbdd70f516d0fa6bc",class:"label-contents"},"Hide the ",t.h("strong",{key:"85529b0715b538ac7f783d599269bb47bcc5634c"},"Cancel")," button on the Scheduling Page and in the email notifications."),t.h("tooltip-component",{key:"748342d43b711d3e3dc28424fe404195c1857c38",id:"cancel"},t.h("info-icon",{key:"96e121ef01d79273cd6d170271caadc0aab5e821",slot:"tooltip-icon"}),t.h("span",{key:"13c99611d0f63cda85aafaf09f29ae283bf52fd5",slot:"tooltip-content"},"Hide the 'Cancel' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to cancel the booking."))))))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"]}}};_t([v.RegisterComponent({name:"nylas-customize-booking-settings",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),fireRegisterEvent:!0}),ne("design:type",Function),ne("design:paramtypes",[]),ne("design:returntype",void 0)],ge.prototype,"render",null);ge.style=xt;const Ct=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}',wt=Ct;var Tt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ae=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ve=class{constructor(e){var n,a;t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.eventDescription=void 0,this.name="description",this.description=this.eventDescription||((a=(n=this.selectedConfiguration)==null?void 0:n.event_booking)==null?void 0:a.description)||""}elementNameChangedHandler(e){t.debug("nylas-event-description","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e,n){var a,i;t.debug("nylas-custom-booking-flow","selectedConfigurationChangedHandler",e,n),(a=e==null?void 0:e.event_booking)!=null&&a.description&&(this.description=(i=e==null?void 0:e.event_booking)==null?void 0:i.description)}connectedCallback(){t.debug("nylas-event-description","connectedCallback")}componentWillLoad(){t.debug("nylas-event-description","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-event-description","componentDidLoad")}disconnectedCallback(){t.debug("nylas-event-description","disconnectedCallback")}handleChange(e){const n=W.sanitizeHtml$1(e.target.value);this.description=n,this.internals.setFormValue(n,"description"),this.valueChanged.emit({value:n,name:this.name})}render(){return t.h(t.Host,{key:"ba8fe981702f13ac0b8132bc13fc6fea56500a62"},t.h("div",{key:"41ab7f418a4878f7e9322564f77fe1008f048090",class:"nylas-event-description",part:"nedesc"},t.h("label",{key:"8dd6e3fc10d8a360606b53eef4b7c596df082167",htmlFor:"description"},"Event description",t.h("span",{key:"1533f26a880a136a76ad6bacb33b9cbf3895b35e",class:"label-icon"},t.h("tooltip-component",{key:"f378fa630e3a8c80a5423c5086ff8ed3d0baa50b"},t.h("info-icon",{key:"e343fc186b270f6c7eb9c38bf1ea04dbb7de7d6e",slot:"tooltip-icon"}),t.h("span",{key:"fb397590af111cac95805c50b96e22ebf3a3836e",slot:"tooltip-content"},"Provide any additional details for your event.")))),t.h("textarea",{key:"650ab0c3162ad8fda2d3b0dfa9870bdc1aa700e6",id:"description",part:"nedesc__textarea",name:"description",value:this.description,maxlength:"8192",onInput:e=>this.handleChange(e)})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"]}}};Tt([v.RegisterComponent({name:"nylas-event-description",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),ae("design:type",Function),ae("design:paramtypes",[]),ae("design:returntype",void 0)],ve.prototype,"render",null);ve.style=wt;const It=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}',Et=It;var Dt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ie=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ke=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.name="duration",this.eventDurationMinutes=void 0,this.duration=this.eventDurationMinutes?this.eventDurationMinutes>=60?this.eventDurationMinutes/60:this.eventDurationMinutes:30,this.durationMinutes=this.eventDurationMinutes??30,this.durationIncrement=this.eventDurationMinutes&&this.eventDurationMinutes>=60?60:1,this.durationMinutesOptions=[{value:15,label:"15"},{value:30,label:"30"},{value:45,label:"45"},{value:60,label:"60"}]}elementNameChangedHandler(e){t.debug("nylas-event-duration","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var a;const n=(a=e==null?void 0:e.availability)==null?void 0:a.duration_minutes;n&&(this.duration=n>=60?n/60:n,this.durationMinutes=n??30,this.durationIncrement=n>=60?60:1)}durationMinutesChangedHandler(e,n){t.debug("nylas-event-duration","durationMinutesChangedHandler",e),e!==n&&this.valueChanged.emit({value:e.toString(),name:this.name})}connectedCallback(){t.debug("nylas-event-duration","connectedCallback")}componentWillLoad(){t.debug("nylas-event-duration","componentWillLoad"),this.host.setAttribute("name",this.name),this.setDurationMintueOptions()}componentDidLoad(){t.debug("nylas-event-duration","componentDidLoad"),this.internals.setFormValue(this.durationMinutes.toString(),"duration")}disconnectedCallback(){t.debug("nylas-event-duration","disconnectedCallback")}setDurationMintueOptions(){return this.durationIncrement===1?this.durationMinutesOptions=[{value:15,label:"15"},{value:30,label:"30"},{value:45,label:"45"},{value:60,label:"60"}]:this.durationMinutesOptions=Array.from({length:23},(e,n)=>({value:n+1,label:(n+1).toString()})),this.durationMinutesOptions}handleChange(e){this.duration=e.target.value,this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),this.name)}nylasFormDropdownChangedHandler(e){t.debug("nylas-calendar-picker","nylasFormDropdownChangedHandler",e.detail);const{value:n}=e.detail;this.durationIncrement=parseInt(n),this.durationIncrement===1?this.duration=60:this.duration=1,this.setDurationMintueOptions(),this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),"duration")}inputOptionChangedHandler(e){t.debug("nylas-calendar-picker","inputOptionChangedHandler",e.detail);const{value:n}=e.detail;this.duration=n,this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),this.name)}render(){const e=[{value:1,label:"minute"},{value:60,label:"hour"}];return t.h(t.Host,{key:"69f81ffd2ca891c9c4681ac03e28091c52db815d"},t.h("div",{key:"0f2f55279a060023ee3d0996e255075821c0eaf8",class:"nylas-event-duration",part:"ned"},t.h("label",{key:"034772be3a25547f190ea70575e07f356aec1268",htmlFor:"duration"},"Event duration",t.h("span",{key:"b3bbb769c229d9de4da23b330c6801093ec70ffe",class:"required"},"*"),t.h("span",{key:"f62a2f5e762073f5dea8be87948fc75cc398c2cf",class:"label-icon"},t.h("tooltip-component",{key:"73fa017a9c54ee8b38c5d9ebecffeb247bb94e1a"},t.h("info-icon",{key:"662f790d63babba084ffb7b3d2c1d6ad57872444",slot:"tooltip-icon"}),t.h("span",{key:"71e2c2816bde5eef547f8004858c10809a3d9fc8",slot:"tooltip-content"},"Set the duration of your event.")))),t.h("div",{key:"491c79e0a0ff84aa3421c084bbe0370fe3fae874",class:"nylas-event-duration__wrapper"},t.h("input-dropdown",{key:"de21d1aa7aa5dffd80c73bd27860b4a8949e54d6",name:"event-duration",options:this.durationMinutesOptions,inputValue:this.duration.toString(),exportparts:"id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content",defaultInputOption:this.durationMinutesOptions.find(n=>n.value==this.duration)??e[0]}),t.h("select-dropdown",{key:"8ecfa42bb8d7065750b80a523e051aede990237e",name:"event-duration",options:e,pluralizedLabel:this.duration>1?"s":"",exportparts:"sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content",defaultSelectedOption:e.find(n=>n.value==this.durationIncrement)??e[0],withSearch:!1}))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],durationMinutes:["durationMinutesChangedHandler"]}}};Dt([v.RegisterComponent({name:"nylas-event-duration",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),ie("design:type",Function),ie("design:paramtypes",[]),ie("design:returntype",void 0)],ke.prototype,"render",null);ke.style=Et;const St=':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}',Ot=St;var Ht=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},se=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const xe=class{constructor(e){t.registerInstance(this,e),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals)}connectedCallback(){t.debug("nylas-event-info","connectedCallback")}componentWillLoad(){t.debug("nylas-event-info","componentWillLoad")}componentDidLoad(){t.debug("nylas-event-info","componentDidLoad"),t.checkForMissingSlots(["inputs"],this.el)}disconnectedCallback(){t.debug("nylas-event-info","disconnectedCallback")}render(){return t.h(t.Host,{key:"311ce4cda7377b94f12a98ff6a3318697762f6f0"},t.h("nylas-form-card",{key:"99e5490667e83818242ae24863e5cdd94b39b0fa"},t.h("h1",{key:"f8c0f0cc5c330fac2b2f17e46be32ea4f3cc0b4b",slot:"header-title",class:"nylas-event-info__title"},"Event information"),t.h("h3",{key:"637d443ca5851d7038acf20425c7fc969543951d",slot:"header-subtitle",class:"nylas-event-info__subtitle"},"Enter all event information."),t.h("div",{key:"aa0c51b31eeda0ba4b2c0090ed8367d139ea447b",slot:"content",class:"nylas-event-info__content"},t.h("slot",{key:"95cf051184160aa802d89fc395bf914df09412e9",name:"inputs"}))))}static get formAssociated(){return!0}get el(){return t.getElement(this)}};Ht([v.RegisterComponent({name:"nylas-event-info",eventToProps:{},fireRegisterEvent:!0}),se("design:type",Function),se("design:paramtypes",[]),se("design:returntype",void 0)],xe.prototype,"render",null);xe.style=Ot;const $t=':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}',Lt=$t;var Mt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},oe=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const _e=class{constructor(e){t.registerInstance(this,e),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals)}connectedCallback(){t.debug("nylas-event-limits","connectedCallback")}componentWillLoad(){t.debug("nylas-event-limits","componentWillLoad")}componentDidLoad(){t.debug("nylas-event-limits","componentDidLoad"),t.checkForMissingSlots(["inputs"],this.el)}disconnectedCallback(){t.debug("nylas-event-limits","disconnectedCallback")}render(){return t.h(t.Host,{key:"6bfa0e29afa1529eb445b68339a658e4d7c8a6be"},t.h("nylas-form-card",{key:"eda419f6f0f7bb8dfd2ebdb0a13c0a8c650190eb"},t.h("h1",{key:"ea2c9af0d66665f25dcbb9c4c152bf159ceb4169",slot:"header-title",class:"nylas-event-limits__title"},"Set event limits"),t.h("h3",{key:"b600fd0b690bab256fde199b373913d9009be9bf",slot:"header-subtitle",class:"nylas-event-limits__subtitle"},"Customize event limits for the event."),t.h("div",{key:"72b24085107528833d406802b206eed3719bb358",slot:"content",class:"nylas-event-limits__content"},t.h("slot",{key:"74a09fd8044065a2f52ef5abaeef0ba80f38f17b",name:"inputs"}))))}static get formAssociated(){return!0}get el(){return t.getElement(this)}};Mt([v.RegisterComponent({name:"nylas-event-limits",eventToProps:{},fireRegisterEvent:!0}),oe("design:type",Function),oe("design:paramtypes",[]),oe("design:returntype",void 0)],_e.prototype,"render",null);_e.style=Lt;const Ft=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',At=Ft;var Nt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},le=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const Ce=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.name="location",this.selectedConfiguration=void 0,this.eventLocation=void 0,this.location=this.eventLocation??"",this.selectedLocationOption=this.eventLocation?"custom":"none"}elementNameChangedHandler(e){t.debug("nylas-event-location","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e,n){var i;t.debug("nylas-custom-booking-flow","selectedConfigurationChangedHandler",e,n);const a=(i=e==null?void 0:e.event_booking)==null?void 0:i.location;a&&(this.selectedLocationOption=a?"custom":"none",this.location=a)}eventLocationChangedHandler(e,n){t.debug("nylas-event-location","eventLocationChangedHandler",e),e!==n&&(this.selectedLocationOption=e?"custom":"none")}connectedCallback(){t.debug("nylas-event-location","connectedCallback")}componentWillLoad(){t.debug("nylas-event-location","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-event-location","componentDidLoad")}disconnectedCallback(){t.debug("nylas-event-location","disconnectedCallback")}nylasFormDropdownChangedHandler(e){this.selectedLocationOption=e.detail.value,this.selectedLocationOption==="none"&&(this.location="",this.setFormValue("","location"),this.valueChanged.emit({value:"",name:this.name}))}setFormValue(e,n){typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(e,n)}handleChange(e){const n=W.sanitizeHtml$1(e.target.value);this.location=n,this.setFormValue(n,"location"),this.valueChanged.emit({value:n,name:this.name})}render(){const e=[{value:"none",label:"None"},{value:"custom",label:"Custom location"}],n={none:t.h("location-off-icon",{key:"f9a254f862acd3c1b8a24b7efe0069f232bd9f51"}),custom:t.h("location-icon",{key:"641cfced66068f659d7d6db3b88a11314d9cacf6"})};return t.h(t.Host,{key:"9e86c85ff957ac4d8192350e61bc66dfb7d8f764"},t.h("div",{key:"a51752993c346200236187f906caa0629be50e88",class:"nylas-event-location",part:"nel"},t.h("label",{key:"53cb18b0acd1a46b4be9a49f88a2786e7832d761",htmlFor:"location"},"Location type",t.h("span",{key:"2b2debd710387758562de5833b5160f1d3a18481",class:"label-icon"},t.h("tooltip-component",{key:"237da0e3bbfae495fd865d99e8f1e1ef68ae027e"},t.h("info-icon",{key:"5f23b94c2bbe0f3ddd3870aeb69cee2f75b0bd28",slot:"tooltip-icon"}),t.h("span",{key:"b1ed166875a24ce4bcfbc808c26d0042b74f73f3",slot:"tooltip-content"},"Choose how you’ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))),t.h("div",{key:"316411158feced50b61ce97014ffa0ba7c4400e8",class:"location-input"},t.h("select-dropdown",{key:"cc6bdbca81e738f43dfb37b7dc66f06ac338dc40",withSearch:!1,name:"location",options:e,defaultSelectedOption:e.find(a=>a.value==this.selectedLocationOption),exportparts:"sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content"},t.h("span",{key:"faacafdffda95071ee9304ac0e4c0125dc31c123",slot:"select-icon"},n[this.selectedLocationOption])),this.selectedLocationOption==="custom"&&t.h("input",{type:"text",part:"nel__location",id:"location",name:"location",maxlength:"1024",value:this.location,onInput:a=>this.handleChange(a)}))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],eventLocation:["eventLocationChangedHandler"]}}};Nt([v.RegisterComponent({name:"nylas-event-location",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),le("design:type",Function),le("design:paramtypes",[]),le("design:returntype",void 0)],Ce.prototype,"render",null);Ce.style=At;const Rt=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}',zt=Rt;var Pt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},re=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const we=class{constructor(e){var n,a;t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.eventTitle=(a=(n=this.selectedConfiguration)==null?void 0:n.event_booking)==null?void 0:a.title,this.name="title",this.showTokens=!1,this.availableTokens=B.EVENT_TITLE_TOKENS.map(i=>({label:i.token,value:i.value,labelHTML:i})),this.filteredTokens=this.availableTokens,this.ariaActivedescendant="",this.currentWord={$value:"",fullText:"",index:-1,focusOffset:-1},this.validationError=""}elementNameChangedHandler(e){t.debug("nylas-event-title","elementNameChangedHandler",e),this.host.setAttribute("name",e)}ariaActivedescendantChangedHandler(e){var n,a;if(t.debug("nylas-event-title","ariaActivedescendantChangedHandler",e),e!==""){const i=(n=this.host.shadowRoot)==null?void 0:n.getElementById(e);i==null||i.classList.add("active")}else{const i=(a=this.host.shadowRoot)==null?void 0:a.querySelectorAll(".token-options li.active");i==null||i.forEach(o=>o.classList.remove("active"))}}configChangedHandler(e){var a;const n=(a=e==null?void 0:e.event_booking)==null?void 0:a.title;n&&this.updateEventTitleFromProp(n)}connectedCallback(){t.debug("nylas-event-title","connectedCallback")}componentWillLoad(){t.debug("nylas-event-title","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-event-title","componentDidLoad"),this.updateEventTitleFromProp(this.eventTitle||"")}disconnectedCallback(){t.debug("nylas-event-title","disconnectedCallback")}formSubmittedHandler(e){var n,a;t.debug("nylas-event-title","formSubmittedHandler",e),(a=(n=this.internals)==null?void 0:n.validity)!=null&&a.valid?this.validationError="":this.validationError="Event title is required"}updateEventTitleFromProp(e){var n,a;t.debug("nylas-event-title","eventTitleChangedHandler",e),this.titleRef&&(this.titleRef.innerHTML=this.highlightTokens(e),this.titleRef.focus(),typeof this.internals.setValidity=="function"&&(e===""?(n=this.internals)==null||n.setValidity({customError:!0},"Event title is required",this.titleRef):(a=this.internals)==null||a.setValidity({customError:!1})))}highlightTokens(e){let n=e;return B.EVENT_TITLE_TOKENS.forEach(a=>{const i=a.value,o=new RegExp(`(\\${i})(?!\\w)`,"g");n=n.replace(o,'<span class="highlighted-tag">$1</span>')}),n}getCurrentSelectionForBrowser(){var i,o,s;const e=(l,r,p,c)=>{const h=l.replace(/[\u200B-\u200D\uFEFF]/g,""),m=h.lastIndexOf("$"),y=h.substring(m).split(" ")[0];return{focusOffset:r,dollarIndex:m,lastWord:y,currentText:h,node:p,allSelected:c}},n=l=>{var r,p;return l.anchorOffset===0&&l.focusOffset===((p=(r=l.focusNode)==null?void 0:r.nodeValue)==null?void 0:p.length)};switch(t.getBrowser()){case"Chrome":const l=(i=this.host.shadowRoot)==null?void 0:i.getSelection(),r=l==null?void 0:l.focusNode,p=(r==null?void 0:r.nodeValue)||"",c=l&&n(l);return e(p,(l==null?void 0:l.focusOffset)||-1,r,c);case"Firefox":const h=document.getSelection(),m=((o=h==null?void 0:h.anchorNode)==null?void 0:o.nodeValue)||"",y=h&&n(h);return e(m,(h==null?void 0:h.focusOffset)||-1,h==null?void 0:h.anchorNode,y);case"Safari":const _=window.getSelection(),g=_==null?void 0:_.getComposedRanges(this.host.shadowRoot)[0],d=((s=g==null?void 0:g.startContainer)==null?void 0:s.nodeValue)||"",f=_&&n(_);return e(d,(g==null?void 0:g.endOffset)||-1,g==null?void 0:g.startContainer,f);default:return console.warn("Browser not supported"),null}}handleChange(e){let n=e.target.textContent||"";n=W.sanitizeHtml$1(n);const a=this.getCurrentSelectionForBrowser();if(!a){this.updateEventTitle(n),this.resetDropdown();return}const{focusOffset:i,dollarIndex:o,lastWord:s,currentText:l}=a;if(o===-1||i<o){this.updateEventTitle(n),this.resetDropdown();return}s.startsWith("$")?(this.showTokens=!0,this.currentWord={$value:s,fullText:l,index:o,focusOffset:i},this.populateSuggestionsDropdown(s)):this.resetDropdown(),this.updateEventTitle(n)}handleInputKeyDown(e){var a,i,o,s;const n=this.getCurrentSelectionForBrowser();if(n!=null&&n.allSelected&&!t.isNonPrintableKey(e)&&(this.titleRef.innerHTML=""),e.key==="Enter"){e.preventDefault();const l=(a=this.host.shadowRoot)==null?void 0:a.getElementById(this.ariaActivedescendant);l&&(l.click(),this.ariaActivedescendant="")}else if(e.key==="ArrowDown"){e.preventDefault();const l=(i=this.host.shadowRoot)==null?void 0:i.getElementById(this.ariaActivedescendant);if(l){const r=l.nextElementSibling;r?this.ariaActivedescendant=r.id:this.ariaActivedescendant=this.filteredTokens[0].label}else this.ariaActivedescendant=this.filteredTokens[0].label}else if(e.key==="ArrowUp"){e.preventDefault();const l=(o=this.host.shadowRoot)==null?void 0:o.getElementById(this.ariaActivedescendant);if(l){const r=l.previousElementSibling;r?this.ariaActivedescendant=r.id:this.ariaActivedescendant=this.filteredTokens[this.filteredTokens.length-1].label}else this.ariaActivedescendant=this.filteredTokens[this.filteredTokens.length-1].label}else e.key==="Escape"?(e.preventDefault(),this.resetDropdown()):(e.key==="Backspace"||e.key==="Delete")&&(n!=null&&n.currentText.startsWith("${")&&(s=n==null?void 0:n.node)!=null&&s.parentNode&&n.node.parentNode.removeChild(n.node),(this.titleRef.textContent===""||(n==null?void 0:n.currentText)===""||n!=null&&n.allSelected)&&(this.titleRef.innerHTML=""))}selectOption(e,n){var d;e.preventDefault();const a=this.currentWord.fullText,i=this.currentWord.$value;let o=this.titleRef.firstChild,s=null;for(;o;){if(o.nodeType===3){const f=((d=o.textContent)==null?void 0:d.replace(/[\u200B-\u200D\uFEFF]/g,""))||"",u=a.replace(/[\u200B-\u200D\uFEFF]/g,"");if(f.includes(u)){s=o;break}}o=o.nextSibling}if(!s)return;const l=s.textContent||"",r=l.indexOf(i),p=l.substring(0,r),c=l.substring(r+i.length),h=document.createTextNode(p),m=document.createRange(),y=document.createElement("span");y.classList.add("highlighted-tag"),y.textContent=`${n.value}`;const _=document.createTextNode(c);if(c!=="")s.replaceWith(h,y,_),m.setStart(_,1);else{const f=document.createTextNode("​");s.replaceWith(h,y,f),m.setStart(f,1)}this.resetDropdown(),this.titleRef.focus();const g=window.getSelection();m.collapse(!0),g==null||g.removeAllRanges(),g==null||g.addRange(m),this.updateEventTitle(this.titleRef.textContent||"")}populateSuggestionsDropdown(e=""){this.filteredTokens=this.availableTokens.filter(n=>n.label.startsWith(e.toString())||n.value.startsWith(e.toString())),this.filteredTokens.length>0&&(this.ariaActivedescendant=this.filteredTokens[0].label)}updateEventTitle(e){var a,i,o;const n=e.replace(/ +/g," ");n===""?((a=this.internals)==null||a.setValidity({customError:!0},"Event title is required",this.titleRef),this.validationError="Event title is required"):((i=this.internals)==null||i.setValidity({customError:!1}),this.validationError=""),(o=this.internals)==null||o.setFormValue(n,this.name),this.valueChanged.emit({value:n,name:this.name})}resetDropdown(){this.showTokens=!1,this.ariaActivedescendant=""}getLabelHTML(e){return t.h("div",{class:"token-label"},t.h("span",{class:"token"},e.token),t.h("span",{class:"description"},e.description))}render(){var e;return t.h(t.Host,{key:"8e8de66d58ca4428f35effa133fc8c0b3e3c804f"},t.h("div",{key:"411cf6eb2553063facf74bc0fcf46cbced1b2eb8",class:"nylas-event-title",part:"net"},t.h("label",{key:"47c8a32d54022a41182ba71aa665f05275e0926b",htmlFor:"title"},"Event title",t.h("span",{key:"664268aa456eeae43411ef0c59c3391dfebac185",class:"required"},"*"),t.h("span",{key:"c4db00b1f2f428c30344dbe098fabba19e15cf76",class:"label-icon"},t.h("tooltip-component",{key:"9884d36d7237310d454cb2cce36ea7a7391a58e5"},t.h("info-icon",{key:"6a2c57dc06b77fb2c8faaa21af08558f7cfcf98c",slot:"tooltip-icon"}),t.h("span",{key:"185fee4da67795d4cbad48ce905c573e42749b95",slot:"tooltip-content"},"Enter a title for your event.")))),t.h("div",{key:"80db52b66751ec73660465a2185d2e5c1304903d",class:{title:!0,error:this.validationError!==""},part:"net__title",ref:n=>this.titleRef=n,contentEditable:"true",onInput:n=>this.handleChange(n),onKeyDown:n=>this.handleInputKeyDown(n)}),this.showTokens&&((e=this.filteredTokens)==null?void 0:e.length)>0&&t.h("div",{class:"token-options",part:"net__dropdown-content"},t.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant},this.filteredTokens.map(n=>t.h("li",{tabindex:"0",key:n.label,id:n.label,class:{active:this.ariaActivedescendant===n.label},onClick:a=>this.selectOption(a,n),role:"option"},this.getLabelHTML(n.labelHTML))))),t.h("span",{key:"35d1099854f33517e668691f98a3bf296a8280d4",class:"help-text"},"Create a dynamic templated event title by typing $. Learn more"),this.validationError!=""&&t.h("span",{class:"error-message"},this.validationError)))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],ariaActivedescendant:["ariaActivedescendantChangedHandler"],selectedConfiguration:["configChangedHandler"]}}};Pt([v.RegisterComponent({name:"nylas-event-title",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),re("design:type",Function),re("design:paramtypes",[]),re("design:returntype",void 0)],we.prototype,"render",null);we.style=zt;const jt=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}',Bt=jt;var Wt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},de=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const Te=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.availableDaysInFuture=void 0,this.name="limit-future-bookings",this.selectedNumber=1,this.selectedPeriod="day"}elementNameChangedHandler(e){t.debug("nylas-limit-future-bookings","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var a;const n=(a=e==null?void 0:e.scheduler)==null?void 0:a.available_days_in_future;n&&this.updateNumberAndPeriodFromDays(n)}availableDaysInFutureChanged(e){this.updateNumberAndPeriodFromDays(e)}connectedCallback(){t.debug("nylas-limit-future-bookings","connectedCallback")}componentWillLoad(){t.debug("nylas-limit-future-bookings","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var e;t.debug("nylas-limit-future-bookings","componentDidLoad"),this.availableDaysInFutureChanged(this.availableDaysInFuture??1),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(((e=this.availableDaysInFuture)==null?void 0:e.toString())??"1",this.name)}disconnectedCallback(){t.debug("nylas-limit-future-bookings","disconnectedCallback")}timePeriodChangedHandler(e){const{number:n,period:a}=e.detail;let i;a==="day"?i=n:a==="week"?i=n*7:i=n*30,this.valueChanged.emit({value:i,name:"availableDaysInFuture"}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(i.toString(),this.name)}updateNumberAndPeriodFromDays(e){let n,a;e>=30&&e%30===0?(n=e/30,a="month"):e>=7&&e%7===0?(n=e/7,a="week"):(n=e,a="day"),this.selectedNumber=n,this.selectedPeriod=a}render(){return t.h(t.Host,{key:"e1e24151575c5c687d51fdf177840aa7c05424d9"},t.h("div",{key:"ceb19c13b5ad7e132260de266b1883b3f8d53f3d",class:"nylas-limit-future-bookings",part:"nlfb"},t.h("label",{key:"44c296c74b9a9cd7152d2c704d4dc6ef82cc39c7"},"Limit future bookings",t.h("span",{key:"11e7622613f38d12ef4f1c564b0ca311ab679cb3",class:"label-icon"},t.h("tooltip-component",{key:"d9ab1be2efb6616a937d112017be0e2c8e965ab3"},t.h("info-icon",{key:"9f207ec82aa2a122ebfd0ba047f650751c49e470",slot:"tooltip-icon"}),t.h("span",{key:"1d91cfa505846f5f9da0457b785d8c645044be55",slot:"tooltip-content"},"Set a limit on how far in the future bookings can be made.")))),t.h("time-period-selector",{key:"cc11ea1514b99b8b4ef1721a15d56fbda1c1693b",id:"limit-future-bookings",timePeriods:["day","week","month"],exportparts:"tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content",defaultSelectedNumber:this.selectedNumber,defaultSelectedPeriod:this.selectedPeriod})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};Wt([v.RegisterComponent({name:"nylas-limit-future-bookings",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),de("design:type",Function),de("design:paramtypes",[]),de("design:returntype",void 0)],Te.prototype,"render",null);Te.style=Bt;const Ut=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}',Zt=Ut;var Yt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ce=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const Ie=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.minBookingNotice=void 0,this.name="min-booking-notice",this.selectedNumber=1,this.selectedPeriod="hour"}elementNameChangedHandler(e){t.debug("nylas-min-booking-notice","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var a;const n=(a=e==null?void 0:e.scheduler)==null?void 0:a.min_booking_notice;n&&this.updateNumberAndPeriodFromMinutes(n)}availableDaysInFutureChanged(e){this.updateNumberAndPeriodFromMinutes(e)}connectedCallback(){t.debug("nylas-min-booking-notice","connectedCallback")}componentWillLoad(){t.debug("nylas-min-booking-notice","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var e;t.debug("nylas-min-booking-notice","componentDidLoad"),this.availableDaysInFutureChanged(this.minBookingNotice??1),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(((e=this.minBookingNotice)==null?void 0:e.toString())??"1",this.name)}disconnectedCallback(){t.debug("nylas-min-booking-notice","disconnectedCallback")}timePeriodChangedHandler(e){const{number:n,period:a}=e.detail;let i;const o=60,s=o*24,l=s*7,r=s*30;a==="minute"?i=n:a==="hour"?i=n*o:a==="day"?i=n*s:a==="week"?i=n*l:a==="month"?i=n*r:i=0,this.valueChanged.emit({value:i,name:"minBookingNotice"}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(i.toString(),this.name)}updateNumberAndPeriodFromMinutes(e){let s,l;e>=43200?(s=Math.floor(e/43200),l="month"):e>=10080?(s=Math.floor(e/10080),l="week"):e>=1440?(s=Math.floor(e/1440),l="day"):e>=60?(s=Math.floor(e/60),l="hour"):(s=e,l="minute"),this.selectedNumber=s,this.selectedPeriod=l}render(){return t.h(t.Host,{key:"75bc177620fae5662328ba8f53f9f4a4e84733e5"},t.h("div",{key:"a76b27e58174ca827e389b361ce4837e6ae11ced",class:"nylas-min-booking-notice",part:"nmbn"},t.h("label",{key:"1db3f2c7c54b05744b64ad40c951595122d317c5"},"Minimum booking notice",t.h("span",{key:"a4c7db6f534b570cbbf5af4c3d60d97843599a4b",class:"label-icon"},t.h("tooltip-component",{key:"f7d6ba6b294f85c9d573933b6916cd50ad830d2a"},t.h("info-icon",{key:"16b11bfaa5affbe15748f6ae6129c1e5a6fcfe32",slot:"tooltip-icon"}),t.h("span",{key:"1fe829a53fa3dcef0a6d5954717889d9e92d0c68",slot:"tooltip-content"},"The minimum amount of time in the future for planning the event.")))),t.h("time-period-selector",{key:"e4a545fc471e67447cab675ccd11fa786337fc23",id:"min-booking-notice",exportparts:"tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content",timePeriods:["minute","hour","day","week"],defaultSelectedNumber:this.selectedNumber,defaultSelectedPeriod:this.selectedPeriod})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};Yt([v.RegisterComponent({name:"nylas-min-booking-notice",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),ce("design:type",Function),ce("design:paramtypes",[]),ce("design:returntype",void 0)],Ie.prototype,"render",null);Ie.style=Zt;const Kt=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}',Gt=Kt;var qt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},fe=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const Ee=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.minCancellationNotice=void 0,this.name="min-cancellation-notice",this.selectedNumber=1,this.selectedPeriod="day"}elementNameChangedHandler(e){t.debug("nylas-min-cancellation-notice","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var a;const n=(a=e==null?void 0:e.scheduler)==null?void 0:a.min_cancellation_notice;n&&this.updateNumberAndPeriodFromMinutes(n)}availableDaysInFutureChanged(e){this.updateNumberAndPeriodFromMinutes(e)}connectedCallback(){t.debug("nylas-min-cancellation-notice","connectedCallback")}componentWillLoad(){t.debug("nylas-min-cancellation-notice","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var e;t.debug("nylas-min-cancellation-notice","componentDidLoad"),this.availableDaysInFutureChanged(this.minCancellationNotice??1),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(((e=this.minCancellationNotice)==null?void 0:e.toString())??"1",this.name)}disconnectedCallback(){t.debug("nylas-min-cancellation-notice","disconnectedCallback")}timePeriodChangedHandler(e){const{number:n,period:a}=e.detail;let i;const o=60,s=o*24,l=s*7,r=s*30;a==="minute"?i=n:a==="hour"?i=n*o:a==="day"?i=n*s:a==="week"?i=n*l:a==="month"?i=n*r:i=0,this.valueChanged.emit({value:i,name:"minCancellationNotice"}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(i.toString(),this.name)}updateNumberAndPeriodFromMinutes(e){let s,l;e>=43200?(s=Math.floor(e/43200),l="month"):e>=10080?(s=Math.floor(e/10080),l="week"):e>=1440?(s=Math.floor(e/1440),l="day"):e>=60?(s=Math.floor(e/60),l="hour"):(s=e,l="minute"),this.selectedNumber=s,this.selectedPeriod=l}render(){return t.h(t.Host,{key:"8cccdce4a9960ecf6b860b638da26c50a68104c4"},t.h("div",{key:"82854ad81861233231fe4a1e8006196155328141",class:"nylas-min-cancellation-notice",part:"nmcn"},t.h("label",{key:"db3eddec3a8fb28c0b035d4d4cd61986832dff0b"},"Minimum cancellation notice",t.h("span",{key:"137472a58beef549599289b04be8fde01e7d81da",class:"label-icon"},t.h("tooltip-component",{key:"2cfcceb4c7144553ac85d32da46fbd894955a9ee"},t.h("info-icon",{key:"9e13ddb61e10e10a5fa426fb6a2b56159597ea88",slot:"tooltip-icon"}),t.h("span",{key:"9670035ec49fe0db37564d2d44d30f2197a7ec85",slot:"tooltip-content"},"Set the minimum amount of time required to cancel an event.")))),t.h("time-period-selector",{key:"0e7b9f7b99d7e10c2c39c5affdfc014a403146ad",id:"min-cancellation-notice",exportparts:"tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content",timePeriods:["minute","hour","day","week"],defaultSelectedNumber:this.selectedNumber,defaultSelectedPeriod:this.selectedPeriod})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};qt([v.RegisterComponent({name:"nylas-min-cancellation-notice",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),fe("design:type",Function),fe("design:paramtypes",[]),fe("design:returntype",void 0)],Ee.prototype,"render",null);Ee.style=Gt;var Ne={exports:{}};(function(e,n){(function(a,i){e.exports=i()})(t.commonjsGlobal,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,r={},p=function(d){return(d=+d)+(d>68?1900:2e3)},c=function(d){return function(f){this[d]=+f}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(f){if(!f||f==="Z")return 0;var u=f.match(/([+-]|\d\d)/g),b=60*u[1]+(+u[2]||0);return b===0?0:u[0]==="+"?-b:b}(d)}],m=function(d){var f=r[d];return f&&(f.indexOf?f:f.s.concat(f.f))},y=function(d,f){var u,b=r.meridiem;if(b){for(var w=1;w<=24;w+=1)if(d.indexOf(b(w,0,f))>-1){u=w>12;break}}else u=d===(f?"pm":"PM");return u},_={A:[l,function(d){this.afternoon=y(d,!1)}],a:[l,function(d){this.afternoon=y(d,!0)}],S:[/\d/,function(d){this.milliseconds=100*+d}],SS:[o,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[o,c("day")],Do:[l,function(d){var f=r.ordinal,u=d.match(/\d+/);if(this.day=u[0],f)for(var b=1;b<=31;b+=1)f(b).replace(/\[|\]/g,"")===d&&(this.day=b)}],M:[s,c("month")],MM:[o,c("month")],MMM:[l,function(d){var f=m("months"),u=(m("monthsShort")||f.map(function(b){return b.slice(0,3)})).indexOf(d)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[l,function(d){var f=m("months").indexOf(d)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(d){this.year=p(d)}],YYYY:[/\d{4}/,c("year")],Z:h,ZZ:h};function g(d){var f,u;f=d,u=r&&r.formats;for(var b=(d=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,D,C){var k=C&&C.toUpperCase();return D||u[C]||a[C]||u[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,O,L){return O||L.slice(1)})})).match(i),w=b.length,T=0;T<w;T+=1){var N=b[T],H=_[N],I=H&&H[0],E=H&&H[1];b[T]=E?{regex:I,parser:E}:N.replace(/^\[|\]$/g,"")}return function($){for(var D={},C=0,k=0;C<w;C+=1){var S=b[C];if(typeof S=="string")k+=S.length;else{var O=S.regex,L=S.parser,R=$.slice(k),F=O.exec(R)[0];L.call(D,F),$=$.replace(F,"")}}return function(M){var x=M.afternoon;if(x!==void 0){var A=M.hours;x?A<12&&(M.hours+=12):A===12&&(M.hours=0),delete M.afternoon}}(D),D}}return function(d,f,u){u.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(p=d.parseTwoDigitYear);var b=f.prototype,w=b.parse;b.parse=function(T){var N=T.date,H=T.utc,I=T.args;this.$u=H;var E=I[1];if(typeof E=="string"){var $=I[2]===!0,D=I[3]===!0,C=$||D,k=I[2];D&&(k=I[2]),r=this.$locale(),!$&&k&&(r=u.Ls[k]),this.$d=function(R,F,M){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*R);var x=g(F)(R),A=x.year,z=x.month,Pe=x.day,je=x.hours,Be=x.minutes,We=x.seconds,Ue=x.milliseconds,Se=x.zone,U=new Date,Z=Pe||(A||z?1:U.getDate()),Y=A||U.getFullYear(),P=0;A&&!z||(P=z>0?z-1:U.getMonth());var K=je||0,G=Be||0,q=We||0,J=Ue||0;return Se?new Date(Date.UTC(Y,P,Z,K,G,q,J+60*Se.offset*1e3)):M?new Date(Date.UTC(Y,P,Z,K,G,q,J)):new Date(Y,P,Z,K,G,q,J)}catch{return new Date("")}}(N,E,H),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),C&&N!=this.format(E)&&(this.$d=new Date("")),r={}}else if(E instanceof Array)for(var S=E.length,O=1;O<=S;O+=1){I[1]=E[O-1];var L=u.apply(this,I);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}O===S&&(this.$d=new Date(""))}else w.call(this,T)}}})})(Ne);const Jt=Ne.exports,Vt=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}',Qt=Vt;t.dayjs.extend(Jt);const Re=class{constructor(e){t.registerInstance(this,e),this.timeChange=t.createEvent(this,"timeChange",7),this.formError=t.createEvent(this,"formError",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.name=void 0,this.hasError=!1,this.err="",this.showTimes=!1,this.ariaActivedescendant="",this.times=this.generateTimes(),this.shouldAutoScroll=!1}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.showTimes&&(this.showTimes=!1)}minimumStartTimeChangedHandler(){if(this.minimumStartTime){let e=t.dayjs().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4,-2)));this.minimumStartTime.slice(-2).toLowerCase()==="pm"&&parseInt(this.minimumStartTime)!==12?e=e.add(12,"hour"):this.minimumStartTime.slice(-2).toLowerCase()==="am"&&parseInt(this.minimumStartTime)===12&&(e=e.subtract(12,"hour")),this.times=this.generateTimes();const n=t.dayjs(this.times[0].value,"hh:mma");t.dayjs(this.time,"hh:mma").isBefore(n)&&(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"}))}}componentDidRender(){if(this.showTimes&&this.shouldAutoScroll){const e=t.autocompleteTimeFormat(this.time),n=this.times.findIndex(a=>a.value===e);n>-1&&(this.shouldAutoScroll=!1,this.scrollToViewWithinParent(n));return}}handleTimeChange(e,n){const a=n.split(":");a[0]==="00"&&a[1].slice(-2)=="pm"&&(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"})),t.validateTimeFormatInput(n)?(this.err="",this.formError.emit({key:this.el.id,message:""})):(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"})),this.timeChange.emit({key:this.el.id,value:n})}handleTimeAutocomplete(e){var a;const n=(a=e.target)==null?void 0:a.value;if(!t.validateTimeFormatInput(n)){this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"});return}if(n===""){const i=t.roundToNearest15Minutes().format("hh:mma");this.timeChange.emit({key:this.el.id,value:i});return}if(!t.validateExactTimeFormat(n)){const i=t.autocompleteTimeFormat(n);this.timeChange.emit({key:this.el.id,value:i});return}this.timeChange.emit({key:this.el.id,value:n})}handleOnInput(e){var a;const n=(a=e.target)==null?void 0:a.value;if(t.validateTimeFormatInput(n)){if(n===""){const i=t.roundToNearest15Minutes().format("hh:mma"),o=this.times.findIndex(s=>s.value===i);o>-1&&this.scrollToViewWithinParent(o);return}if(!t.validateExactTimeFormat(n)){const i=t.autocompleteTimeFormat(n),o=this.times.findIndex(s=>s.value===i);o>-1&&this.scrollToViewWithinParent(o);return}}}generateTimes(){const e=[];let n=t.dayjs().set("hour",0).set("minute",0).set("second",0);this.minimumStartTime&&(n=t.dayjs(this.minimumStartTime,"hh:mma"));const a=n.endOf("day").diff(n,"minutes"),i=Math.round(a/15);for(let o=0;o<i+1;o++){const s=n.add(o*15,"minute");if(o==i&&s.format("hh:mma").includes("am"))break;e.push({id:o,value:s.format("hh:mma")})}return e}handleComboboxKeyDown(e){if(e.key==="ArrowDown"){if(e.preventDefault(),!this.showTimes){this.showTimes=!0,this.shouldAutoScroll=!0;return}if(this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[0].id.toString(),this.focusOption(0);else{const n=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),a=n+1<this.times.length?n+1:0;this.ariaActivedescendant=this.times[a].id.toString(),this.focusOption(a)}}else if(e.key==="ArrowUp")if(e.preventDefault(),this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[this.times.length-1].id.toString(),this.focusOption(this.times.length-1);else{const n=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),a=n-1>=0?n-1:this.times.length-1;this.ariaActivedescendant=this.times[a].id.toString(),this.focusOption(a)}else e.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}handleListboxKeydown(e){const n=this.times,a=n.findIndex(i=>i.id.toString()===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){e.preventDefault();const i=a+1<n.length?a+1:0;this.ariaActivedescendant=n[i].id.toString(),this.focusOption(i)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){e.preventDefault();const i=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[i].id.toString(),this.focusOption(i)}else if(e.key==="Enter"){if(e.preventDefault(),this.ariaActivedescendant){const i=n[a];this.handleTimeChange(e,i.value),this.showTimes=!1,this.ariaActivedescendant="",this.timeInput.focus()}}else e.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}scrollToViewWithinParent(e){var l;const n=this.times[e],a=(l=this.el.shadowRoot)==null?void 0:l.getElementById(n.id.toString()),i=this.timeMenu;this.ariaActivedescendant=n.id.toString();const o=a.getBoundingClientRect(),s=i.getBoundingClientRect();o.top<s.top?i.scrollTop-=s.top-o.top:o.bottom>s.bottom&&(i.scrollTop+=o.bottom-s.bottom),o.left<s.left?i.scrollLeft-=s.left-o.left:o.right>s.right&&(i.scrollLeft+=o.right-s.right)}focusOption(e){var o;const n=this.times[e];if(!n)return;const a=n.id.toString(),i=(o=this.el.shadowRoot)==null?void 0:o.getElementById(a);i&&(i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){return t.h(t.Host,{key:"a6c2e840c56397a1365b3205e793df4157c734d0"},t.h("div",{key:"d36acf9fb02fa1ae9337d02b161d51880a68422e",class:"time-picker",part:"time-picker"},t.h("input",{key:"d574493f83e42ef66a64d14a21abaaf38f7926c3",type:"text",name:this.name,id:this.name,part:"time-input",class:{"time-input":!0,error:!!this.err||this.hasError},ref:e=>this.timeInput=e,value:this.time,onClick:()=>{this.showTimes=!this.showTimes,this.shouldAutoScroll=!0},"aria-haspopup":"listbox","aria-label":this.name,"aria-expanded":this.showTimes?"true":"false",placeholder:this.placeholder,onKeyDown:e=>this.handleComboboxKeyDown(e),onInput:e=>this.handleOnInput(e),onBlur:e=>this.handleTimeAutocomplete(e)}),this.err&&t.h("div",{class:"invalid-time-icon"}),this.showTimes&&t.h("div",{class:"times",part:"times",ref:e=>this.timeMenu=e},t.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:e=>this.handleListboxKeydown(e)},this.times.map(e=>t.h("li",{tabindex:"0",key:e.id,id:e.id.toString(),class:{focused:this.ariaActivedescendant===e.id.toString()},onClick:n=>{this.handleTimeChange(n,e.value),this.showTimes=!1,this.timeInput.focus()},role:"option"},`${e.value}`)))),!this.showTimes&&this.err&&t.h("p",{class:"error",id:"email-error"},this.err)))}get el(){return t.getElement(this)}static get watchers(){return{minimumStartTime:["minimumStartTimeChangedHandler"]}}};Re.style=Qt;const Xt=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',en=Xt;var tn=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(s=(o<3?l(s):o>3?l(n,a,s):l(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},he=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const j=15,De=class{constructor(e){var n,a,i,o,s,l;t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.name="timeslot-picker",this.eventDurationMinutes=((a=(n=this.selectedConfiguration)==null?void 0:n.availability)==null?void 0:a.duration_minutes)??5,this.defaultIntervalMinutes=((o=(i=this.selectedConfiguration)==null?void 0:i.availability)==null?void 0:o.interval_minutes)??this.eventDurationMinutes,this.defaultRoundTo=((l=(s=this.selectedConfiguration)==null?void 0:s.availability)==null?void 0:l.round_to)??void 0,this.selectedInterval=this.defaultIntervalMinutes,this.selectedRoundTo=!!(this.defaultRoundTo&&this.defaultRoundTo===this.defaultIntervalMinutes)}elementNameChangedHandler(e){t.debug("nylas-timeslot-interval","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var n,a;t.debug("nylas-timeslot-interval","selectedConfigurationChangedHandler",e),this.defaultIntervalMinutes=((n=e.availability)==null?void 0:n.interval_minutes)??this.eventDurationMinutes,this.defaultRoundTo=((a=e.availability)==null?void 0:a.round_to)??void 0,this.selectedInterval=this.defaultIntervalMinutes,this.selectedRoundTo=!!(this.defaultRoundTo&&this.defaultRoundTo===this.defaultIntervalMinutes)}connectedCallback(){t.debug("nylas-timeslot-interval","connectedCallback")}disconnectedCallback(){t.debug("nylas-timeslot-interval","disconnectedCallback")}componentWillLoad(){t.debug("nylas-timeslot-interval","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-timeslot-interval","componentDidLoad")}componentWillUpdate(){t.debug("nylas-timeslot-interval","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-timeslot-interval","componentDidUpdate")}componentWillRender(){t.debug("nylas-timeslot-interval","componentWillRender")}componentDidRender(){t.debug("nylas-timeslot-interval","componentDidRender")}nylasFormDropdownChangedHandler(e){t.debug("nylas-timeslot-interval","nylasFormDropdownChangedHandler",e.detail),e.detail.value==="duration"?this.selectedInterval=this.eventDurationMinutes:this.selectedInterval=parseInt(e.detail.value),console.log("nylasFormDropdownChanged selectedRoundTo",this.selectedRoundTo),this.valueChanged.emit({value:JSON.stringify({interval:this.selectedInterval,roundTo:this.selectedRoundTo?this.selectedInterval:j}),name:this.name}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(JSON.stringify({interval:this.selectedInterval,roundTo:this.selectedRoundTo?this.selectedInterval:j}),this.name)}radioSelectionChangedHandler(e){t.debug("nylas-timeslot-interval","radioSelectionChangedHandler",e.detail),e.detail.value==="no-rounding"?this.selectedRoundTo=!1:this.selectedRoundTo=!0,console.log("selectedRoundTo",this.selectedRoundTo),this.valueChanged.emit({value:JSON.stringify({interval:this.selectedInterval,roundTo:this.selectedRoundTo?this.selectedInterval:j}),name:this.name}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(JSON.stringify({interval:this.selectedInterval,roundTo:this.selectedRoundTo?this.selectedInterval:j}),this.name)}render(){const e=[{value:"duration",label:"Length of the booking"},{value:"5",label:"5 mins"},{value:"10",label:"10 mins"},{value:"15",label:"15 mins"},{value:"20",label:"20 mins"},{value:"30",label:"30 mins"},{value:"45",label:"45 mins"},{value:"60",label:"60 mins"}];return t.h(t.Host,{key:"218908e5caee3df264532000ee406e888a7ae6b5"},t.h("div",{key:"c7fbf0c98a0a1999541a2970eafa7ab3bb76181f",class:"nylas-timeslot-interval",part:"nti"},t.h("div",{key:"2e434be03d0bf571a7dc9a984c8d7fd243faab2f",class:"header",part:"nti__header"},t.h("h3",{key:"957af7f458ed3dde113b473e46f01c18636a26ff"},"Time-slot interval preferences"),t.h("p",{key:"5d16f7c33bcba2e3e457f07b85c9a3159f5f28fc"},"Choose your interval preference for time-slots.")),t.h("div",{key:"9e2a6327ae104b162ad1882ff42e3b39b634c7e4",class:"nylas-timeslot-interval__dropdown"},t.h("span",{key:"70bec24786bdcfdf07356f91640be14ee5d2c147",class:"label",part:"nti__input-label"},"Select interval preference",t.h("tooltip-component",{key:"a7d3a458106b07b1ae79517b2c7de11c9401033c"},t.h("info-icon",{key:"2fef5cb6c3fe62f7034c3c43e51f2ade04261021",slot:"tooltip-icon"}),t.h("span",{key:"d321766e49f8487610267a964ffbecb84e352082",slot:"tooltip-content"},"Set the interval preference for the time-slots."))),t.h("select-dropdown",{key:"77ba683ef75281101d5e677de21a45599d00d061",name:"booking-calendar",options:e,withSearch:!1,exportparts:"sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content",defaultSelectedOption:this.defaultIntervalMinutes==this.eventDurationMinutes?e[0]:e.find(n=>n.value==this.defaultIntervalMinutes.toString())??e[0]}),t.h("span",{key:"9bea159b0fd24c70214c1bc554d447e1a8c6e124",class:"label",part:"nti__input-label"},"Select the type of time-slot rounding",t.h("tooltip-component",{key:"c0e5c9f89e0b48149f114214a299f6f85ddfd7fa"},t.h("info-icon",{key:"b0c4588afabb822532fecce06d12045ad16c534b",slot:"tooltip-icon"}),t.h("span",{key:"7b0d4571043dc17ff35747cfa6e8b98c5742ac24",slot:"tooltip-content"},"Select if you want to round the time slots to the nearest interval."))),t.h("radio-button-group",{key:"50eaa3d8675ddcba7d6b4d81324bc70668e9ad2f",name:"interval-preference",defaultSelectedValue:this.defaultRoundTo&&this.defaultRoundTo===this.defaultIntervalMinutes?"rounding":"no-rounding",options:[{value:"no-rounding",label:"Default",description:"Time-slots will be rounded to the nearest quarter-hour."},{value:"rounding",label:"Interval rounding",description:"Time-slots will begin at times rounded to the interval value."}]}))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"]}}};tn([v.RegisterComponent({name:"nylas-timeslot-interval",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),fireRegisterEvent:!0}),he("design:type",Function),he("design:paramtypes",[]),he("design:returntype",void 0)],De.prototype,"render",null);De.style=en;const nn=".radio-group{display:flex;flex-direction:column}.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);margin-top:16px}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem}.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)}",an=nn,ze=class{constructor(e){t.registerInstance(this,e),this.radioSelectionChanged=t.createEvent(this,"radioSelectionChanged",7),this.name="radio-group",this.options=[],this.defaultSelectedValue="",this.selectedValue=this.defaultSelectedValue}handleChange(e){this.selectedValue=e,this.radioSelectionChanged.emit({value:e,name:this.name})}render(){return t.h("div",{key:"d407d08b8179a3370934e580c0971c00f323879a",class:"radio-group"},this.options.map(e=>t.h("label",null,t.h("div",{class:"radio-option"},t.h("input",{type:"radio",name:this.name,value:e.value,checked:this.selectedValue===e.value,onChange:()=>this.handleChange(e.value)}),t.h("p",null,t.h("span",{class:"title"},e.label),t.h("span",{class:"description"},e.description))))))}};ze.style=an;exports.calendar_info_icon=Oe;exports.calendar_patterns_icon=He;exports.checkbox_component=$e;exports.flow_icon=Le;exports.location_icon=Me;exports.location_off_icon=Fe;exports.multi_select_dropdown=Ae;exports.nylas_availability_picker=pe;exports.nylas_booking_calendar_picker=ue;exports.nylas_buffer_time=be;exports.nylas_calendar_picker=me;exports.nylas_cancellation_policy=ye;exports.nylas_customize_booking_settings=ge;exports.nylas_event_description=ve;exports.nylas_event_duration=ke;exports.nylas_event_info=xe;exports.nylas_event_limits=_e;exports.nylas_event_location=Ce;exports.nylas_event_title=we;exports.nylas_limit_future_bookings=Te;exports.nylas_min_booking_notice=Ie;exports.nylas_min_cancellation_notice=Ee;exports.nylas_time_window_picker=Re;exports.nylas_timeslot_interval=De;exports.radio_button_group=ze;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-9c04361d.cjs");require("react");require("react-dom");const c=".sc-chevron-icon-h{display:flex}",h=c,r=class{constructor(e){i.registerInstance(this,e),this.width="24",this.height="24"}render(){return i.h("svg",{key:"a32876d49e77cfdd0622df9bc609c41e08f51440",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},i.h("path",{key:"ec1fe551a0eaf4600374a57294a005c426ee8568",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};r.style=h;const p=".sc-search-icon-h{display:flex}",f=p,l=class{constructor(e){i.registerInstance(this,e),this.width="15",this.height="15"}render(){return i.h("svg",{key:"40a81a00f79c85303a904e3ef66e7833a240fff2",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.h("path",{key:"dd4c72fa1db6849fd72bfcb3fbde40f115caac11",fill:"currentColor",d:"M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z"}))}};l.style=f;const b=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}',u=b,d=class{constructor(e){i.registerInstance(this,e),this.nylasFormDropdownChanged=i.createEvent(this,"nylasFormDropdownChanged",7),this.name=void 0,this.options=[],this.defaultSelectedOption=void 0,this.withSearch=!0,this.label=void 0,this.required=!1,this.pluralizedLabel="",this.selectedOption=this.defaultSelectedOption||null,this.isOpen=!1,this.searchValue="",this.filteredOptions=[...this.options],this.ariaActivedescendant="",this.errorMessage=""}optionsChangedHandler(e,s){e!==s&&(this.filteredOptions=e)}defaultSelectedOptionChangedHandler(e,s){e.label!==s.label&&(this.selectedOption=e)}componentWillLoad(){this.filteredOptions=this.options,!this.selectedOption&&this.defaultSelectedOption&&(this.selectedOption=this.defaultSelectedOption),!this.selectedOption&&this.options.length>0&&(this.selectedOption=this.options[0])}handleBookingFormSubmitted(e){var s;this.validate(((s=this.selectedOption)==null?void 0:s.value)||""),this.errorMessage&&e.preventDefault()}validate(e){this.required&&!e?this.errorMessage=`${this.label} is required.`:this.errorMessage=""}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const s=e.target.value;this.searchValue=s,this.filteredOptions=this.options.filter(t=>t.label.toLowerCase().includes(s.toLowerCase()))}selectOption(e){this.errorMessage="",this.selectedOption=e,this.toggleDropdown(),this.nylasFormDropdownChanged.emit({value:e.value,name:this.name,error:this.errorMessage,label:this.label})}handleSelectButtonKeyDown(e){var s;switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown(),(s=this.inputRef)==null||s.focus();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){var a,o;const s=this.filteredOptions,t=s.findIndex(n=>n.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),t===s.length-1){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const n=t+1<s.length?t+1:0;this.ariaActivedescendant=s[n].value,this.focusOption(n)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),t===0){this.ariaActivedescendant="",(o=this.inputRef)==null||o.focus();return}const n=t-1>=0?t-1:s.length-1;this.ariaActivedescendant=s[n].value,this.focusOption(n)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(s[t])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var o;const s=this.filteredOptions[e];if(!s)return;const t=s.value,a=(o=this.el.shadowRoot)==null?void 0:o.getElementById(t);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}handleComboboxKeyDown(e){e.key==="ArrowDown"||e.key=="Tab"&&!e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[0].value,this.focusOption(0)):e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[this.filteredOptions.length-1].value,this.focusOption(this.filteredOptions.length-1)):e.key==="Escape"&&(this.isOpen=!1)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}render(){var e,s;return i.h("div",{key:"ac6e39d604f87ee8e154147cc8f82ffcfd81feef",class:"dropdown",part:"sd_dropdown"},i.h("label",{key:"65ea5d43d46c9d3caa60b9d2a7453a75e3d59862",part:"sd_dropdown_label",class:{error:!!this.errorMessage}},this.label&&i.h("p",null,i.h("span",{class:"label"},this.label),this.required&&i.h("span",{class:"required"},"*")),i.h("button",{key:"a64e6e066a0e3b5c2436ea4ada9582995f416674",part:"sd_dropdown-button",class:{dropbtn:!0,open:this.isOpen,error:!!this.errorMessage},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:t=>this.handleSelectButtonKeyDown(t)},i.h("slot",{key:"5558be7313b2513877366e5cc90c14059ca7a3d1",name:"select-icon","aria-hidden":"true"}),i.h("span",{key:"561f266038fa16b3422974b2bd6b5e7dcfeb1577",class:"selected-option",part:"sd_dropdown-button-selected-label"},(e=this.selectedOption)!=null&&e.label?`${((s=this.selectedOption)==null?void 0:s.label)+this.pluralizedLabel}`:""),i.h("span",{key:"87308c6804530032c5e22750f8753e2589576d00",class:{open:this.isOpen,closed:!this.isOpen,chevron:!0},"aria-hidden":"true"},i.h("chevron-icon",{key:"47be995d85c4e3c3895785f41c89a8a23d0d1a64",width:"16",height:"16"}))),this.errorMessage&&i.h("span",{class:"error help-text"},this.errorMessage)),this.isOpen?i.h("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&i.h("div",{class:{"search-box":!0,open:this.isOpen}},i.h("search-icon",{width:"15",height:"15",class:"icon"}),i.h("input",{type:"text",role:"combobox",placeholder:"Search",value:this.searchValue,ref:t=>this.inputRef=t,onInput:t=>this.filterOptions(t),onKeyDown:t=>this.handleComboboxKeyDown(t)})),i.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>t.value&&i.h("li",{tabindex:"0",key:t.value,id:t.value,onClick:()=>this.selectOption(t),role:"option"},t.labelHTML?t.labelHTML:t.label)))):null)}get el(){return i.getElement(this)}static get watchers(){return{options:["optionsChangedHandler"],defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};d.style=u;exports.chevron_icon=r;exports.search_icon=l;exports.select_dropdown=d;
@@ -0,0 +1,126 @@
1
+ import { r, h as i, c as l, g as d } from "./index-2d032bec.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const c = ".sc-chevron-icon-h{display:flex}", p = c, h = class {
5
+ constructor(e) {
6
+ r(this, e), this.width = "24", this.height = "24";
7
+ }
8
+ render() {
9
+ return i("svg", { key: "a32876d49e77cfdd0622df9bc609c41e08f51440", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, i("path", { key: "ec1fe551a0eaf4600374a57294a005c426ee8568", fill: "currentColor", d: "M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z" }));
10
+ }
11
+ };
12
+ h.style = p;
13
+ const f = ".sc-search-icon-h{display:flex}", b = f, u = class {
14
+ constructor(e) {
15
+ r(this, e), this.width = "15", this.height = "15";
16
+ }
17
+ render() {
18
+ return i("svg", { key: "40a81a00f79c85303a904e3ef66e7833a240fff2", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "dd4c72fa1db6849fd72bfcb3fbde40f115caac11", fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" }));
19
+ }
20
+ };
21
+ u.style = b;
22
+ const y = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}', x = y, g = class {
23
+ constructor(e) {
24
+ r(this, e), this.nylasFormDropdownChanged = l(this, "nylasFormDropdownChanged", 7), this.name = void 0, this.options = [], this.defaultSelectedOption = void 0, this.withSearch = !0, this.label = void 0, this.required = !1, this.pluralizedLabel = "", this.selectedOption = this.defaultSelectedOption || null, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "", this.errorMessage = "";
25
+ }
26
+ optionsChangedHandler(e, s) {
27
+ e !== s && (this.filteredOptions = e);
28
+ }
29
+ defaultSelectedOptionChangedHandler(e, s) {
30
+ e.label !== s.label && (this.selectedOption = e);
31
+ }
32
+ componentWillLoad() {
33
+ this.filteredOptions = this.options, !this.selectedOption && this.defaultSelectedOption && (this.selectedOption = this.defaultSelectedOption), !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]);
34
+ }
35
+ handleBookingFormSubmitted(e) {
36
+ var s;
37
+ this.validate(((s = this.selectedOption) == null ? void 0 : s.value) || ""), this.errorMessage && e.preventDefault();
38
+ }
39
+ validate(e) {
40
+ this.required && !e ? this.errorMessage = `${this.label} is required.` : this.errorMessage = "";
41
+ }
42
+ toggleDropdown() {
43
+ this.isOpen = !this.isOpen;
44
+ }
45
+ filterOptions(e) {
46
+ const s = e.target.value;
47
+ this.searchValue = s, this.filteredOptions = this.options.filter((t) => t.label.toLowerCase().includes(s.toLowerCase()));
48
+ }
49
+ selectOption(e) {
50
+ this.errorMessage = "", this.selectedOption = e, this.toggleDropdown(), this.nylasFormDropdownChanged.emit({
51
+ value: e.value,
52
+ name: this.name,
53
+ error: this.errorMessage,
54
+ label: this.label
55
+ });
56
+ }
57
+ handleSelectButtonKeyDown(e) {
58
+ var s;
59
+ switch (e.key) {
60
+ case "ArrowDown":
61
+ case "Enter":
62
+ e.preventDefault(), this.isOpen || this.toggleDropdown(), (s = this.inputRef) == null || s.focus();
63
+ break;
64
+ case "Escape":
65
+ this.isOpen = !1;
66
+ break;
67
+ }
68
+ }
69
+ handleListboxKeydown(e) {
70
+ var n, o;
71
+ const s = this.filteredOptions, t = s.findIndex((a) => a.value === this.ariaActivedescendant);
72
+ if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
73
+ if (e.preventDefault(), t === s.length - 1) {
74
+ this.ariaActivedescendant = "", (n = this.inputRef) == null || n.focus();
75
+ return;
76
+ }
77
+ const a = t + 1 < s.length ? t + 1 : 0;
78
+ this.ariaActivedescendant = s[a].value, this.focusOption(a);
79
+ } else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
80
+ if (e.preventDefault(), t === 0) {
81
+ this.ariaActivedescendant = "", (o = this.inputRef) == null || o.focus();
82
+ return;
83
+ }
84
+ const a = t - 1 >= 0 ? t - 1 : s.length - 1;
85
+ this.ariaActivedescendant = s[a].value, this.focusOption(a);
86
+ } else
87
+ e.key === "Enter" ? (e.preventDefault(), this.ariaActivedescendant && this.selectOption(s[t])) : e.key === "Escape" && (this.isOpen = !1);
88
+ }
89
+ focusOption(e) {
90
+ var o;
91
+ const s = this.filteredOptions[e];
92
+ if (!s)
93
+ return;
94
+ const t = s.value, n = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(t);
95
+ n && (n.focus(), n.scrollIntoView({ behavior: "smooth", block: "nearest" }));
96
+ }
97
+ handleComboboxKeyDown(e) {
98
+ e.key === "ArrowDown" || e.key == "Tab" && !e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[0].value, this.focusOption(0)) : e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[this.filteredOptions.length - 1].value, this.focusOption(this.filteredOptions.length - 1)) : e.key === "Escape" && (this.isOpen = !1);
99
+ }
100
+ handleOutsideClick(e) {
101
+ !e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
102
+ }
103
+ render() {
104
+ var e, s;
105
+ return i("div", { key: "ac6e39d604f87ee8e154147cc8f82ffcfd81feef", class: "dropdown", part: "sd_dropdown" }, i("label", { key: "65ea5d43d46c9d3caa60b9d2a7453a75e3d59862", part: "sd_dropdown_label", class: { error: !!this.errorMessage } }, this.label && i("p", null, i("span", { class: "label" }, this.label), this.required && i("span", { class: "required" }, "*")), i("button", { key: "a64e6e066a0e3b5c2436ea4ada9582995f416674", part: "sd_dropdown-button", class: { dropbtn: !0, open: this.isOpen, error: !!this.errorMessage }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (t) => this.handleSelectButtonKeyDown(t) }, i("slot", { key: "5558be7313b2513877366e5cc90c14059ca7a3d1", name: "select-icon", "aria-hidden": "true" }), i("span", { key: "561f266038fa16b3422974b2bd6b5e7dcfeb1577", class: "selected-option", part: "sd_dropdown-button-selected-label" }, (e = this.selectedOption) != null && e.label ? `${((s = this.selectedOption) == null ? void 0 : s.label) + this.pluralizedLabel}` : ""), i("span", { key: "87308c6804530032c5e22750f8753e2589576d00", class: {
106
+ open: this.isOpen,
107
+ closed: !this.isOpen,
108
+ chevron: !0
109
+ }, "aria-hidden": "true" }, i("chevron-icon", { key: "47be995d85c4e3c3895785f41c89a8a23d0d1a64", width: "16", height: "16" }))), this.errorMessage && i("span", { class: "error help-text" }, this.errorMessage)), this.isOpen ? i("div", { class: "dropdown-content", part: "sd_dropdown-content" }, this.withSearch && i("div", { class: { "search-box": !0, open: this.isOpen } }, i("search-icon", { width: "15", height: "15", class: "icon" }), i("input", { type: "text", role: "combobox", placeholder: "Search", value: this.searchValue, ref: (t) => this.inputRef = t, onInput: (t) => this.filterOptions(t), onKeyDown: (t) => this.handleComboboxKeyDown(t) })), i("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (t) => this.handleListboxKeydown(t) }, this.filteredOptions.map((t) => t.value && i("li", { tabindex: "0", key: t.value, id: t.value, onClick: () => this.selectOption(t), role: "option" }, t.labelHTML ? t.labelHTML : t.label)))) : null);
110
+ }
111
+ get el() {
112
+ return d(this);
113
+ }
114
+ static get watchers() {
115
+ return {
116
+ options: ["optionsChangedHandler"],
117
+ defaultSelectedOption: ["defaultSelectedOptionChangedHandler"]
118
+ };
119
+ }
120
+ };
121
+ g.style = x;
122
+ export {
123
+ h as chevron_icon,
124
+ u as search_icon,
125
+ g as select_dropdown
126
+ };
@@ -1,4 +1,4 @@
1
- import { r as e, h as t } from "./index-d61429c6.js";
1
+ import { r as e, h as t } from "./index-2d032bec.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const o = ".sc-clock-icon-h{display:flex}", c = o, C = class {
@@ -6,7 +6,7 @@ const o = ".sc-clock-icon-h{display:flex}", c = o, C = class {
6
6
  e(this, s), this.width = "16", this.height = "16";
7
7
  }
8
8
  render() {
9
- return t("svg", { key: "074f1e0c3bc03387249b8ba0249e6a190c332e2d", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "13831f77e7ee46fd10f1581dd6f20a685a12a78a", d: "M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z", fill: "currentColor" }));
9
+ return t("svg", { key: "636b2338bb2426b55b87ee5d0fe88ba5c2e11a81", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "1df6ceceaf9d7a5192e10ab4048363ec262bd9d1", d: "M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z", fill: "currentColor" }));
10
10
  }
11
11
  };
12
12
  C.style = c;
@@ -15,7 +15,7 @@ const i = ".sc-person-icon-h{display:flex}", n = i, h = class {
15
15
  e(this, s), this.width = "14", this.height = "16";
16
16
  }
17
17
  render() {
18
- return t("svg", { key: "6bc72f36a420df47271b9a30d4f7125539ada180", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "c505e6eb650a21f19bdccf513d529a0e32f92453", 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" }));
18
+ return t("svg", { key: "3793715b5f6a412bb7ab564fb23df18fb29ae066", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "29b1ef570e1f3726edc034b6b8c524aa99f0c77f", 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" }));
19
19
  }
20
20
  };
21
21
  h.style = n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-6a4ee4f8.cjs");require("react");require("react-dom");const i=".sc-clock-icon-h{display:flex}",n=i,s=class{constructor(t){e.registerInstance(this,t),this.width="16",this.height="16"}render(){return e.h("svg",{key:"074f1e0c3bc03387249b8ba0249e6a190c332e2d",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"13831f77e7ee46fd10f1581dd6f20a685a12a78a",d:"M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z",fill:"currentColor"}))}};s.style=n;const o=".sc-person-icon-h{display:flex}",C=o,c=class{constructor(t){e.registerInstance(this,t),this.width="14",this.height="16"}render(){return e.h("svg",{key:"6bc72f36a420df47271b9a30d4f7125539ada180",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"c505e6eb650a21f19bdccf513d529a0e32f92453",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"}))}};c.style=C;exports.clock_icon=s;exports.person_icon=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-9c04361d.cjs");require("react");require("react-dom");const i=".sc-clock-icon-h{display:flex}",n=i,s=class{constructor(t){e.registerInstance(this,t),this.width="16",this.height="16"}render(){return e.h("svg",{key:"636b2338bb2426b55b87ee5d0fe88ba5c2e11a81",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"1df6ceceaf9d7a5192e10ab4048363ec262bd9d1",d:"M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z",fill:"currentColor"}))}};s.style=n;const o=".sc-person-icon-h{display:flex}",C=o,c=class{constructor(t){e.registerInstance(this,t),this.width="14",this.height="16"}render(){return e.h("svg",{key:"3793715b5f6a412bb7ab564fb23df18fb29ae066",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"29b1ef570e1f3726edc034b6b8c524aa99f0c77f",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"}))}};c.style=C;exports.clock_icon=s;exports.person_icon=c;