@nylas/react 1.1.0-canary.5 → 1.1.0-canary.7

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 (96) hide show
  1. package/dist/{elements-dc5b338e-e87f79b6.js → elements-dc5b338e-6078b875.js} +1 -1
  2. package/dist/{elements-dc5b338e-29ef67ec.cjs → elements-dc5b338e-96e197ca.cjs} +1 -1
  3. package/dist/{focus-visible-e8093c16-61d506d2.cjs → focus-visible-e8093c16-018ffd63.cjs} +1 -1
  4. package/dist/{focus-visible-e8093c16-e7357f74.js → focus-visible-e8093c16-ab01d60a.js} +1 -1
  5. package/dist/{index-f9ba9aa8.js → index-1fd24ccf.js} +1039 -1428
  6. package/dist/index-823fdc6f.cjs +36 -0
  7. package/dist/react.cjs +1 -1
  8. package/dist/react.js +52 -52
  9. package/package.json +3 -3
  10. package/dist/add-circle-icon_22.entry-9f634efd.js +0 -1731
  11. package/dist/add-circle-icon_22.entry-e7ec6c34.cjs +0 -1
  12. package/dist/archive-icon_7.entry-24bac466.js +0 -75
  13. package/dist/archive-icon_7.entry-6649ed76.cjs +0 -1
  14. package/dist/arrow-icon.entry-1fffd526.cjs +0 -1
  15. package/dist/arrow-icon.entry-82e59ce4.js +0 -15
  16. package/dist/bold-icon_3.entry-5a01fecf.cjs +0 -1
  17. package/dist/bold-icon_3.entry-72e585da.js +0 -35
  18. package/dist/calendar-cancel-icon.entry-0b52bdc9.cjs +0 -1
  19. package/dist/calendar-cancel-icon.entry-247b530c.js +0 -15
  20. package/dist/calendar-check-icon_2.entry-d7bb76c7.cjs +0 -1
  21. package/dist/calendar-check-icon_2.entry-dbb2df49.js +0 -25
  22. package/dist/calendar-icon.entry-911773c4.cjs +0 -1
  23. package/dist/calendar-icon.entry-d64cb3d3.js +0 -15
  24. package/dist/chevron-icon_3.entry-b72f4cdb.cjs +0 -1
  25. package/dist/chevron-icon_3.entry-db9f8217.js +0 -117
  26. package/dist/close-icon.entry-9d141bb4.js +0 -15
  27. package/dist/close-icon.entry-da590fa2.cjs +0 -1
  28. package/dist/constants-6ee60d6d-09ee73d9.cjs +0 -15
  29. package/dist/constants-6ee60d6d-d5928e79.js +0 -3740
  30. package/dist/document-refresh-icon.entry-5e8cc2f0.cjs +0 -1
  31. package/dist/document-refresh-icon.entry-ee9632d7.js +0 -15
  32. package/dist/forward-icon_6.entry-cac8473a.cjs +0 -3
  33. package/dist/forward-icon_6.entry-f054ad9d.js +0 -953
  34. package/dist/globe-icon.entry-2fde6ac4.js +0 -15
  35. package/dist/globe-icon.entry-bc484551.cjs +0 -1
  36. package/dist/google-logo-icon_4.entry-a9848399.cjs +0 -1
  37. package/dist/google-logo-icon_4.entry-dca87e45.js +0 -349
  38. package/dist/index-22f7e49c.cjs +0 -37
  39. package/dist/index.es-f57e612a-1d17c676.js +0 -3137
  40. package/dist/index.es-f57e612a-95ca3e17.cjs +0 -7
  41. package/dist/info-icon_2.entry-dbf3931a.js +0 -34
  42. package/dist/info-icon_2.entry-e67844eb.cjs +0 -1
  43. package/dist/loading-icon.entry-4566cba8.cjs +0 -1
  44. package/dist/loading-icon.entry-ae4c2d7e.js +0 -15
  45. package/dist/mailbox-store-47fc8a1a-2365f20f.js +0 -380
  46. package/dist/mailbox-store-47fc8a1a-cd3516a7.cjs +0 -1
  47. package/dist/nylas-additional-participants.entry-7c568149.cjs +0 -1
  48. package/dist/nylas-additional-participants.entry-e8426256.js +0 -81
  49. package/dist/nylas-booked-event-card_10.entry-6a664889.cjs +0 -1
  50. package/dist/nylas-booked-event-card_10.entry-ef767733.js +0 -782
  51. package/dist/nylas-form-card.entry-d8506b1f.js +0 -54
  52. package/dist/nylas-form-card.entry-e44169b6.cjs +0 -1
  53. package/dist/nylas-if-state.entry-044c49d2.cjs +0 -1
  54. package/dist/nylas-if-state.entry-98a336df.js +0 -94
  55. package/dist/nylas-list-folders.entry-509f9be4.cjs +0 -1
  56. package/dist/nylas-list-folders.entry-55ce3403.js +0 -120
  57. package/dist/nylas-list-threads.entry-1f57382a.js +0 -70
  58. package/dist/nylas-list-threads.entry-c36e2cf3.cjs +0 -1
  59. package/dist/nylas-login.entry-66f542b8.cjs +0 -1
  60. package/dist/nylas-login.entry-76358c2f.js +0 -73
  61. package/dist/nylas-mailbox-pagination.entry-5562257a.js +0 -101
  62. package/dist/nylas-mailbox-pagination.entry-89b0dd99.cjs +0 -1
  63. package/dist/nylas-mailbox-toolbar-button.entry-573e0429.cjs +0 -1
  64. package/dist/nylas-mailbox-toolbar-button.entry-6b1b5b15.js +0 -82
  65. package/dist/nylas-mailbox.entry-97c503f2.js +0 -134
  66. package/dist/nylas-mailbox.entry-e21a2f50.cjs +0 -1
  67. package/dist/nylas-provider.entry-07e1e26a.js +0 -145
  68. package/dist/nylas-provider.entry-61899957.cjs +0 -1
  69. package/dist/nylas-scheduler-editor.entry-60fe38ce.cjs +0 -7
  70. package/dist/nylas-scheduler-editor.entry-e326c9de.js +0 -2275
  71. package/dist/nylas-scheduling.entry-be0cc090.js +0 -235
  72. package/dist/nylas-scheduling.entry-d88289db.cjs +0 -1
  73. package/dist/nylas-threads-refresh.entry-8201f8dd.js +0 -74
  74. package/dist/nylas-threads-refresh.entry-c71ee775.cjs +0 -1
  75. package/dist/nylas-threads-search.entry-912a90a4.cjs +0 -1
  76. package/dist/nylas-threads-search.entry-fc477e01.js +0 -69
  77. package/dist/nylas-view-thread.entry-af418ddb.cjs +0 -1
  78. package/dist/nylas-view-thread.entry-d2953ea8.js +0 -203
  79. package/dist/people-icon.entry-4b598fde.js +0 -15
  80. package/dist/people-icon.entry-73cfa6f5.cjs +0 -1
  81. package/dist/play-icon_2.entry-1a487abb.cjs +0 -1
  82. package/dist/play-icon_2.entry-d1c2f823.js +0 -25
  83. package/dist/refresh-icon.entry-42d543d0.cjs +0 -1
  84. package/dist/refresh-icon.entry-6aedfce6.js +0 -15
  85. package/dist/register-component-cf5c8420-d3fb6bf9.cjs +0 -1
  86. package/dist/register-component-cf5c8420-dc1bc0a4.js +0 -109
  87. package/dist/scheduler-config-store-6222c0ed-000f1a4f.js +0 -18
  88. package/dist/scheduler-config-store-6222c0ed-758621fb.cjs +0 -1
  89. package/dist/scheduler-store-39d37291-4e8e9ff9.js +0 -293
  90. package/dist/scheduler-store-39d37291-b66c052c.cjs +0 -1
  91. package/dist/time-period-selector.entry-f1e27a00.js +0 -76
  92. package/dist/time-period-selector.entry-fb3d0178.cjs +0 -1
  93. package/dist/translate-icon.entry-0d44b6cb.cjs +0 -1
  94. package/dist/translate-icon.entry-3db947f5.js +0 -15
  95. package/dist/warning-icon.entry-a20657e4.cjs +0 -1
  96. package/dist/warning-icon.entry-a8ea0fe0.js +0 -15
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-22f7e49c.cjs"),g=require("./register-component-cf5c8420-d3fb6bf9.cjs"),B=require("./constants-6ee60d6d-09ee73d9.cjs");require("react");require("react-dom");const Ne=".sc-add-circle-icon-h{display:flex}",Re=Ne,xe=class{constructor(e){t.registerInstance(this,e),this.width="24",this.height="25"}render(){return t.h("svg",{key:"cf16ecaad5754ff1367162ab390027b36f7ede3e",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8a93ab08ac48dd371bc2526a42ce86f15595128a",d:"M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z",fill:"currentColor"}))}};xe.style=Re;const ze="button.sc-button-component{height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}",Pe=ze,_e=class{constructor(e){t.registerInstance(this,e),this.variant="primary",this.disabled=!1,this.type="button",this.clickHandler=void 0,this.mouseOverHandler=void 0,this.mouseOutHandler=void 0,this.focusHandler=void 0,this.blurHandler=void 0}render(){const e=`button-${this.variant}`+(this.disabled?" disabled":"");return t.h("button",{key:"fc37072bb6662cb8d14d597672b2944aa54bc813",class:e,disabled:this.disabled,type:"type",onClick:this.clickHandler,onMouseOver:this.mouseOverHandler,onMouseOut:this.mouseOutHandler,onFocus:this.focusHandler,onBlur:this.blurHandler},t.h("slot",{key:"f951bc5c0b29be66946a743713ca5dd089b64c8c"}))}};_e.style=Pe;const Be=".sc-calendar-info-icon-h{display:flex}",je=Be,Ce=class{constructor(e){t.registerInstance(this,e),this.width="20",this.height="20"}render(){return t.h("svg",{key:"060bde1be8b6a697f073c73caa121b3b79f989a1",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"5ddd8695565e3efee4a76a2757cf7cafa79780b0",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"}))}};Ce.style=je;const We=".sc-calendar-patterns-icon-h{display:flex}",Ve=We,Te=class{constructor(e){t.registerInstance(this,e),this.width="20",this.height="20"}render(){return t.h("svg",{key:"d01849f00df7eb5d24f7da7a76c933fdcdfd13b1",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"d1fdc79ea4e67493ccd8058530e12d127d174e66",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"}))}};Te.style=Ve;const Ze=".sc-flow-icon-h{display:flex}",Ue=Ze,Ee=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="12"}render(){return t.h("svg",{key:"ce2f820ce9aacb96c4464a56676f1f136980caa2",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"af4cba794e87457fd175d21a731c5088cd6a1819",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"}))}};Ee.style=Ue;const Ye=".sc-location-icon-h{display:flex}",Ke=Ye,Ie=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="18"}render(){return t.h("svg",{key:"6854dc205118a9abcd1dcacd099a372ffaa2b5b5",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"c659d22a667fce86b5c06818870b6f90fc569fa0",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"}))}};Ie.style=Ke;const qe=".sc-location-off-icon-h{display:flex}",Je=qe,Oe=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="18"}render(){return t.h("svg",{key:"d0202239d621e2049349e21b2b7f5d824f153384",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"fb6dee10dd728b79127775be0a00e20ac54d26a1",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"}))}};Oe.style=Je;const Ge=':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)}',Xe=Ge,De=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(s=>s.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 s=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[s].value,this.focusOption(s);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,s=(o=this.el.shadowRoot)==null?void 0:o.getElementById(a);s&&(s.focus(),s.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:"7502de7e6d986d6e2536849703ee28c79b5c1195"},t.h("div",{key:"1ddfc9626f7864703fee5e0c3c9bfd09036a17ce",class:"dropdown",part:"msd_dropdown"},t.h("label",{key:"8da2bb175a29fe6680fadfd926e3d05240635391",class:"dropdown-label"},this.label,t.h("slot",{key:"e1eccd82254cd095768c3e5ae36cff3134ca747f",name:"label-icon","aria-hidden":"true"})),t.h("button",{key:"6d56072472b3e51f08e7980ddcff9650fc35c13a",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:"11dee24f8003354b0316e19833e5001c913f4a9e",name:"select-icon","aria-hidden":"true"}),t.h("span",{key:"65c1709b1be19a34be367455062a4719598f51a2",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:"81d7d8b18144b4276f6c19682c8fd78072a8074b",class:this.isOpen?"open":"closed","aria-hidden":"true"},t.h("chevron-icon",{key:"36afd55e13491d5af7af22be2aca5a1dff6c2315",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)}};De.style=Xe;const Qe=':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 .select-timezone select-dropdown{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.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)}',et=Qe;var tt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},q=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const re=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.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)}scheduleChanged(e,n){var a;if(e!==n){this.valueChanged.emit({value:this.scheduleToOpenHours(e,this.timezone),name:this.name});let s={};if(Object.keys(e).forEach(o=>{const i=e[o];if(i.length>0){const l=this.getOverlaps(i);l.length>0&&(s[o]=l)}}),this.overlapDays=s,typeof this.internals.setFormValue!="function")return;if(Object.keys(s).length>0){const o=(a=this.host.shadowRoot)==null?void 0:a.getElementById(Object.keys(s)[0]);o&&this.internals.setValidity({customError:!0},"Overlapping time ranges found",o)}else this.internals.setValidity({customError:!1}),this.internals.setFormValue(JSON.stringify(this.scheduleToOpenHours(e,this.timezone)))}}selectedOptionChangedHandler(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(this.scheduleToOpenHours(this.schedule,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.updateSchedule(this.openHours),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(JSON.stringify(this.scheduleToOpenHours(this.schedule,this.timezone)))}getOverlaps(e){let n=e.map((s,o)=>({start:t.timeToMinutes(s.start),end:t.timeToMinutes(s.end),originalIndex:o}));n.sort((s,o)=>s.start-o.start);let a=[];for(let s=1;s<n.length;s++)n[s].start<n[s-1].end&&(a.includes(n[s].originalIndex)||a.push(n[s].originalIndex),a.includes(n[s-1].originalIndex)||a.push(n[s-1].originalIndex));return a.sort((s,o)=>s-o)}addTimeRange(e){const n=this.schedule[e],a=0,s=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),i=o[o.length-1].end;if(i+60<=s)this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(i)),end:t.convertTo12HourFormat(t.minutesToTime(i+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 f=o[r].end;if(o[r+1].start-f>=60){this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(f)),end:t.convertTo12HourFormat(t.minutesToTime(f+60))});break}}}}this.schedule[e].sort((o,i)=>t.timeToMinutes(o.start)-t.timeToMinutes(i.start)),this.schedule={...this.schedule}}removeTimeRange(e,n){this.schedule[e].splice(n,1),this.schedule={...this.schedule}}setTime(e,n,a){const[s,o]=e.split("_"),[i,l]=s.split(":");o==="start"?this.schedule[i][l].start=a:o==="end"&&(this.schedule[i][l].end=a),this.internals.setValidity({customError:!1}),this.schedule={...this.schedule}}setFormError(e,n,a){var l;const[s,o]=e.split("_"),i=(l=this.host.shadowRoot)==null?void 0:l.getElementById(e);i&&this.internals.setValidity({customError:!0},`Invalid ${o} time`,i)}updateSchedule(e){const n={SUN:[],MON:[],TUE:[],WED:[],THU:[],FRI:[],SAT:[]};e.forEach(a=>{a.days.forEach(s=>{const o=this.getDayKey(s),i=t.convertTo12HourFormat(a.start),l=t.convertTo12HourFormat(a.end),r={start:i,end:l};let f=!1;n[o]&&(f=n[o].some(c=>c.start===r.start&&c.end===r.end)),f||(n[o]?n[o].push(r):n[o]=[r])})}),e.length===0&&(this.timezone=e[0].timezone),this.timezone=e[0].timezone,this.schedule=n}getDayKey(e){return["SUN","MON","TUE","WED","THU","FRI","SAT"][e]}scheduleToOpenHours(e,n="UTC"){const a=["SUN","MON","TUE","WED","THU","FRI","SAT"];let s=new Map;a.forEach((i,l)=>{e[i]&&e[i].forEach(r=>{const f=t.convertTo24HourFormat(r.start),c=t.convertTo24HourFormat(r.end),b=`${f}-${c}`;if(!s.has(b))s.set(b,{days:[l],start:f,end:c});else{let p=s.get(b);p&&(p.days.push(l),s.set(b,p))}})});let o=[];return s.forEach((i,l)=>{o.push({days:i.days,start:i.start,end:i.end,timezone:n})}),o}render(){const e=Object.keys(B.TIMEZONE_MAP).map(n=>({label:B.TIMEZONE_MAP[n],value:n}));return t.h(t.Host,{key:"440dc2f314a9c47eb8186f4ed965ed3052301ddf"},t.h("div",{key:"2d31ef10ae53275fc065f4e9f68c32f42b60d829",class:"nylas-availability-picker"},t.h("div",{key:"aa6695b6054b81ece7ede5f5e089545a041800f6",class:"header",part:"nap__header"},t.h("h3",{key:"86e0d18ca7b70d74159c5cead0d6f5a17a145fa7"},"General availability"),t.h("p",{key:"05da67e03befbe936793af5ee98f801b512d28e7"},"Set your availability for scheduling meetings.")),t.h("div",{key:"84c6bf714ccea4aff07d6e660d8ca3f96ce9a8cc",class:"content"},t.h("div",{key:"16edf74e06bed5440df5f5ea73e90cfa83d08b29",class:"select-timezone",part:"nap__select-timezone"},t.h("h4",{key:"1025677efcaf114cb86ce57324c299eeea79b37e",class:"sub-header"},"Select timezone",t.h("span",{key:"6d65a6457da202c5a3d5c5cd4e185903a12cec7f",class:"icon"},t.h("tooltip-component",{key:"61a40ea06c06f1d306a8b352d9ae883d09768249"},t.h("info-icon",{key:"2d447cc2e6a619ee7b1cf1fd3e2b6424fcd6db5b",slot:"tooltip-icon"}),t.h("span",{key:"35742354ba0841bc1c17170094bab09d536208e6",slot:"tooltip-content"},"Select your timezone for displaying availability.")))),t.h("select-dropdown",{key:"3532c95b077fc701cdbf89cd13668acc675cf0e4",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:"c1e870c593966e29d72c3f519f3309f84e4b9a9a",slot:"select-icon"},t.h("globe-icon",{key:"df23e31168778926b6118651cd636ab801f062f1",width:"20",height:"20"})))),t.h("div",{key:"5ad8cf7078dc104d1258f77e1c69bebf8c82d8dd",class:"availability",part:"nap__availability"},Object.keys(this.schedule).map(n=>{const a=n,s=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:s.length>0,onClick:()=>{s.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"},s.length?null:t.h("span",{class:"unavailable"},"Unavailable"),s.length>0&&s.map((o,i)=>{var f,c;const l=`${n}:${i}_start`,r=`${n}:${i}_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:(f=this.overlapDays[a])==null?void 0:f.includes(i),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",setTime:(b,p)=>this.setTime(l,b,p),setFormError:(b,p)=>this.setFormError(l,b,p)}),t.h("span",null," - "),t.h("nylas-time-window-picker",{id:r,hasError:(c=this.overlapDays[a])==null?void 0:c.includes(i),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",setTime:(b,p)=>this.setTime(r,b,p),setFormError:(b,p)=>this.setFormError(r,b,p)})),t.h("button",{onClick:()=>this.removeTimeRange(a,i)},t.h("close-icon",null)))}),t.h("p",{class:"error"},this.overlapDays[a]?"Overlapping time ranges":"")),t.h("div",null,s.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"],schedule:["scheduleChanged"]}}};tt([g.RegisterComponent({name:"nylas-availability-picker",fireRegisterEvent:!0}),q("design:type",Function),q("design:paramtypes",[]),q("design:returntype",void 0)],re.prototype,"render",null);re.style=et;const nt=':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);padding:1rem}.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}',at=nt;var it=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},J=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const de=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.name="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(){t.debug("nylas-booking-calendar-picker","componentDidLoad"),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.defaultBookingCalendar.toString(),"booking-calendar"),this.selectedCalendar=this.defaultBookingCalendar}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)}selectedOptionChangedHandler(e){t.debug("nylas-booking-calendar-picker","selectedOptionChangedHandler",e.detail);const n=a=>{const{value:s}=a.detail;this.selectedCalendar=s,this.internals.setFormValue(s.toString(),"booking-calendar")};this.valueChanged.emit({...e.detail,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"]}}};it([g.RegisterComponent({name:"nylas-booking-calendar-picker",eventToProps:{valueChanged:async(e,n)=>{const{valueChanged:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),J("design:type",Function),J("design:paramtypes",[]),J("design:returntype",void 0)],de.prototype,"render",null);de.style=at;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-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}.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)}.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}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:200px;padding:1rem;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:12px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center}.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);border-bottom: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}',ot=st;var lt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},G=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="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)}selectedOptionChangedHandler(e){t.debug("nylas-buffer-time","selectedOptionChangedHandler",e.detail);const n=a=>{const{value:s,name:o}=a.detail;o==="before-buffer-time"?this.selectedBeforeBufferTime=parseInt(s):o==="after-buffer-time"&&(this.selectedAfterBufferTime=parseInt(s));const i={before:this.selectedBeforeBufferTime,after:this.selectedAfterBufferTime};this.internals.setFormValue(JSON.stringify(i),"booking-calendar")};this.valueChanged.emit({...e.detail,valueChanged:n})}renderPreview(){const s=l=>{const r=Math.floor(l/30),f=l%30/30*20;return{fullSlots:r,partialFillHeight:f}},o=()=>{const{fullSlots:l,partialFillHeight:r}=s(this.selectedBeforeBufferTime);return Array.from({length:4},(f,c)=>{const b=this.selectedBeforeBufferTime>0&&c>4-l-1,p=this.selectedBeforeBufferTime>0&&c===4-l-1&&r>0;let y={};return b&&!p?y.backgroundColor="var(--nylas-base-100)":p&&(y.background=`linear-gradient(to top, var(--nylas-base-100) ${r}px, transparent 0)`),t.h("div",{key:c,class:`slot ${b?"active":""}`,style:{height:"20px",...y}})})},i=()=>{const{fullSlots:l,partialFillHeight:r}=s(this.selectedAfterBufferTime);return Array.from({length:4},(f,c)=>{const b=this.selectedAfterBufferTime>0&&c<l,p=c===l&&r>0;let y={};return b&&!p?y.backgroundColor="var(--nylas-base-100)":p&&(y.background=`linear-gradient(to bottom, var(--nylas-base-100) ${r}px, transparent 0)`),t.h("div",{key:c,class:`slot ${b?"active":""}`,style:{height:"20px",...y}})})};return t.h("div",{class:"preview-container"},o(),t.h("div",{class:"event-slot",style:{height:"40px"}}),i())}render(){const e=Array.from({length:121},(n,a)=>({label:a.toString(),value:a}));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",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",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"]}}};lt([g.RegisterComponent({name:"nylas-buffer-time",eventToProps:{valueChanged:async(e,n)=>{const{valueChanged:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),G("design:type",Function),G("design:paramtypes",[]),G("design:returntype",void 0)],ce.prototype,"render",null);ce.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-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}',dt=rt;var ct=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},X=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.calendars=void 0,this.organizerEmail=void 0,this.name="calendar",this.defaultSelectedCalendars=[],this.selectedCalendars=[]}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")}elementNameChangedHandler(e){t.debug("nylas-calendar-picker","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedOptionsChangedHandler(e){t.debug("nylas-calendar-picker","selectedOptionChangedHandler",e.detail);const n=a=>{const{value:s}=a.detail;this.selectedCalendars=[...s],this.internals.setFormValue(s.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 s,o;return{value:a.id,label:a.name,selected:((s=this.defaultSelectedCalendars)==null?void 0:s.includes(a.id))||((o=this.defaultSelectedCalendars)==null?void 0:o.includes("primary"))&&a.id===this.organizerEmail}}))??[];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"]}}};ct([g.RegisterComponent({name:"nylas-calendar-picker",eventToProps:{valueChanged:async(e,n)=>{const{valueChangedHandler:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],pe.prototype,"render",null);pe.style=dt;const pt=':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-custom-booking-flow{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-custom-booking-flow .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-custom-booking-flow .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-booking-flow .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-custom-booking-flow .nylas-custom-booking-flow__loading{padding-bottom:1rem}.nylas-custom-booking-flow .nylas-custom-booking-flow__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-custom-booking-flow .nylas-custom-booking-flow__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-custom-booking-flow .nylas-custom-booking-flow__loading .loading-button span{padding:0 1rem}.nylas-custom-booking-flow .nylas-custom-booking-flow__dropdown{padding:1rem}.nylas-custom-booking-flow .nylas-custom-booking-flow__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-custom-booking-flow .nylas-custom-booking-flow__dropdown span.label tooltip-component{display:flex}.nylas-custom-booking-flow .nylas-custom-booking-flow__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-custom-booking-flow .nylas-custom-booking-flow__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-custom-booking-flow .nylas-custom-booking-flow__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-custom-booking-flow .nylas-custom-booking-flow__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}',ft=pt;var ht=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},Q=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const fe=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="booking-type",this.bookingType="",this.selectedBookingType=""}connectedCallback(){t.debug("nylas-custom-booking-flow","connectedCallback")}disconnectedCallback(){t.debug("nylas-custom-booking-flow","disconnectedCallback")}componentWillLoad(){t.debug("nylas-custom-booking-flow","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-custom-booking-flow","componentDidLoad"),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.bookingType.toString(),"booking-calendar"),this.selectedBookingType=this.bookingType}componentWillUpdate(){t.debug("nylas-custom-booking-flow","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-custom-booking-flow","componentDidUpdate")}componentWillRender(){t.debug("nylas-custom-booking-flow","componentWillRender")}componentDidRender(){t.debug("nylas-custom-booking-flow","componentDidRender")}elementNameChangedHandler(e){t.debug("nylas-custom-booking-flow","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedOptionChangedHandler(e){t.debug("nylas-custom-booking-flow","selectedOptionChangedHandler",e.detail);const n=a=>{const{value:s}=a.detail;this.selectedBookingType=s,this.internals.setFormValue(s.toString(),"booking-calendar")};this.valueChanged.emit({...e.detail,valueChanged:n})}render(){const e=[{label:"Automatically accept bookings",value:"booking"},{label:"Manually confirm/decline bookings",value:"pre-booking"}];return t.h(t.Host,{key:"a4f8162f7964925b34c256d88fa8cd3f0e684e7e"},t.h("div",{key:"3b5c6077ad57d232f9c25c17b117b4ad31cf3cfa",class:"nylas-custom-booking-flow",part:"ncbf"},t.h("div",{key:"4ecafa38be03812b2b6188d4858018d5cd94be8e",class:"header",part:"ncbf__header"},t.h("h3",{key:"d0eccafc6133ff24de9fbab11737e08862aad835"},"Customize booking flow"),t.h("p",{key:"0e75183824a878b6df83f92467aba58072d2ac6f"},"Customize how new bookings are handled when a booking is completed.")),e.length>0?t.h("div",{class:"nylas-custom-booking-flow__dropdown"},t.h("span",{class:"label"},"After a booking is confirmed",t.h("tooltip-component",null,t.h("info-icon",{slot:"tooltip-icon"}),t.h("span",{slot:"tooltip-content"},"Choose how you’d like to handle new bookings. If you choose to manually confirm/decline bookings, you will be able to review and accept or decline each booking request."))),t.h("select-dropdown",{name:"booking-type",options:e,withSearch:!1,exportparts:"sd_dropdown: ncbf__dropdown, sd_dropdown-button: ncbf__dropdown-button, sd_dropdown-content: ncbf__dropdown-content",defaultSelectedOption:e.find(n=>n.value==this.bookingType)??e[0]})):t.h("div",{class:"nylas-custom-booking-flow__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"]}}};ht([g.RegisterComponent({name:"nylas-custom-booking-flow",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)],fe.prototype,"render",null);fe.style=ft;const bt=':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:14px;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}',ut=bt;var mt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},ee=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const he=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.eventDescription=void 0,this.description=this.eventDescription??"",this.name="description"}elementNameChangedHandler(e){t.debug("nylas-event-description","elementNameChangedHandler",e),this.host.setAttribute("name",e)}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){this.description=e.target.value,this.internals.setFormValue(e.target.value,"description"),this.valueChanged.emit({value:e.target.value,name:this.name})}render(){return t.h(t.Host,{key:"5519bbdfdc7e253bf5b83c18decd714e54f58714"},t.h("div",{key:"36541738e7d447cb6f9b3bf0f931c851efb0d8fe",class:"nylas-event-description",part:"nedesc"},t.h("label",{key:"c0eb70c7e36360844559e0fd0a451243fb6f5860",htmlFor:"description"},"Event description",t.h("span",{key:"98c176eaa09ccdac28fbba62f67ceeb8a6fed751",class:"label-icon"},t.h("tooltip-component",{key:"553ca988451d6053a8863a52cbcdcb12dd041362"},t.h("info-icon",{key:"015507616ffc54352cbecc9766e59d0db4a25367",slot:"tooltip-icon"}),t.h("span",{key:"86efa5b15ae112f6f974ba32e8c138e2c906184f",slot:"tooltip-content"},"Provide any additional details for your event.")))),t.h("textarea",{key:"619f982afa3f2af2794d93cc0df930db618a3e5e",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"]}}};mt([g.RegisterComponent({name:"nylas-event-description",eventToProps:{},fireRegisterEvent:!0}),ee("design:type",Function),ee("design:paramtypes",[]),ee("design:returntype",void 0)],he.prototype,"render",null);he.style=ut;const yt=':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:14px;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 select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button-selected-label){font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',gt=yt;var vt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},te=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="duration",this.eventDurationMinutes=void 0,this.duration=this.eventDurationMinutes?this.eventDurationMinutes>=60?this.eventDurationMinutes/60:this.eventDurationMinutes:5,this.durationMinutes=this.eventDurationMinutes??5,this.durationIncrement=this.eventDurationMinutes&&this.eventDurationMinutes>=60?60:1}elementNameChangedHandler(e){t.debug("nylas-event-duration","elementNameChangedHandler",e),this.host.setAttribute("name",e)}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)}componentDidLoad(){t.debug("nylas-event-duration","componentDidLoad"),this.internals.setFormValue(this.durationMinutes.toString(),"duration")}disconnectedCallback(){t.debug("nylas-event-duration","disconnectedCallback")}handleChange(e){this.duration=e.target.value,this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),this.name)}handleBlur(){(this.duration===null||this.duration===void 0)&&this.durationIncrement===1&&(this.duration=5),(this.duration<=0||this.duration===null||this.duration===void 0)&&this.durationIncrement===60&&(this.duration=1),this.duration<5&&this.durationIncrement===1&&(this.duration=5),this.duration>720&&this.durationIncrement===1&&(this.duration=720),this.duration>12&&this.durationIncrement===60&&(this.duration=12),this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),"duration")}selectedOptionChangedHandler(e){t.debug("nylas-calendar-picker","selectedOptionChangedHandler",e.detail);const{value:n}=e.detail;this.durationIncrement=parseInt(n),this.durationIncrement===1?this.duration=5:this.duration=1,this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),"duration")}render(){const e=[{value:1,label:"minutes"},{value:60,label:"hours"}];return t.h(t.Host,{key:"b4c54d309345b6333578f1f8f49fbe9be7e50af7"},t.h("div",{key:"401311ed8b0deb33eeb1013264f192ba87b0d118",class:"nylas-event-duration",part:"ned"},t.h("label",{key:"5de11caa4aff28ca3fb11811e21adecfed22d32d",htmlFor:"duration"},"Event duration",t.h("span",{key:"592731edca9c0c4ca63250e1fc3d964e4c7b271d",class:"required"},"*"),t.h("span",{key:"b9f6a70dc84222e68d2251f485bbd3545d05fcde",class:"label-icon"},t.h("tooltip-component",{key:"8fa85c6907a3625c1f50750b962014e7d413ea34"},t.h("info-icon",{key:"677374d62adb9c9e27307b64bd69a979a28f32eb",slot:"tooltip-icon"}),t.h("span",{key:"d2ebc474b7876c3e23e31a296c826557b329be61",slot:"tooltip-content"},"Set the duration of your event.")))),t.h("div",{key:"1240a158b86d06ed9e3859487e8688fc2cfea9e5",class:"nylas-event-duration__wrapper"},t.h("input",{key:"fffb610158d4b056761f41e9b2ffd0e0aa5b1bfd",type:"number",part:"ned_input",id:"duration",name:"duration",value:this.duration,onBlur:()=>this.handleBlur(),onInput:n=>this.handleChange(n),min:5}),t.h("select-dropdown",{key:"8cf3f16c86c0220f992f69e4cfa012c170145b9e",name:"event-duration",options:e,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"],durationMinutes:["durationMinutesChangedHandler"]}}};vt([g.RegisterComponent({name:"nylas-event-duration",eventToProps:{},fireRegisterEvent:!0}),te("design:type",Function),te("design:paramtypes",[]),te("design:returntype",void 0)],be.prototype,"render",null);be.style=gt;const kt=':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}',wt=kt;var xt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},ne=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),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")}disconnectedCallback(){t.debug("nylas-event-info","disconnectedCallback")}render(){return t.h(t.Host,{key:"c558409607a64f0b043b5d4877d52a9bbcc8e451"},t.h("nylas-form-card",{key:"9ac2943ec1364a07a7597115a516a301b645f105"},t.h("h1",{key:"49647e71b13b778ef37ae197aff7b8885520d0d9",slot:"header-title",class:"nylas-event-info__title"},"Event information"),t.h("h3",{key:"a4378d75f03a8b4ab6902d8f8ef4870b9377e367",slot:"header-subtitle",class:"nylas-event-info__subtitle"},"Enter all event information."),t.h("div",{key:"3fcfd8cde128d1afaa038f801ee0be0a74068cac",slot:"content",class:"nylas-event-info__content"},t.h("slot",{key:"e4e986148a526fa0ec2bc89f451403031f8d2c51",name:"inputs"}))))}static get formAssociated(){return!0}};xt([g.RegisterComponent({name:"nylas-event-info",eventToProps:{},fireRegisterEvent:!0}),ne("design:type",Function),ne("design:paramtypes",[]),ne("design:returntype",void 0)],ue.prototype,"render",null);ue.style=wt;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}',Ct=_t;var Tt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},ae=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),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")}disconnectedCallback(){t.debug("nylas-event-limits","disconnectedCallback")}render(){return t.h(t.Host,{key:"41a6e89d00846f05f1540b0f1f3b6b8e1ee4e179"},t.h("nylas-form-card",{key:"b68ba99fa9cbb92fba4133b327ce8f4e11ea7d55"},t.h("h1",{key:"36fac220420d7bc3ae15a10ce1da95fc2a7ea1d0",slot:"header-title",class:"nylas-event-limits__title"},"Set event limits"),t.h("h3",{key:"bd316f146a23e1e95bd4e691d1ee888ba779b927",slot:"header-subtitle",class:"nylas-event-limits__subtitle"},"Customize event limits for the event."),t.h("div",{key:"8eb05024799a6b9dfbbbe4d42ced5ee9e8ded026",slot:"content",class:"nylas-event-limits__content"},t.h("slot",{key:"e8554afe460136b431349042c70946dc2eadf93e",name:"inputs"}))))}static get formAssociated(){return!0}};Tt([g.RegisterComponent({name:"nylas-event-limits",eventToProps:{},fireRegisterEvent:!0}),ae("design:type",Function),ae("design:paramtypes",[]),ae("design:returntype",void 0)],me.prototype,"render",null);me.style=Ct;const Et=':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 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 label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;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)}',It=Et;var Ot=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},ie=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ye=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.eventTitle=void 0,this.name="title",this.showTokens=!1,this.availableTokens=B.EVENT_TITLE_TOKENS.map(n=>({label:n.token,value:n.value,labelHTML:n})),this.filteredTokens=this.availableTokens,this.ariaActivedescendant="",this.currentWord={$value:"",fullText:"",index:-1,focusOffset:-1}}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 s=(n=this.host.shadowRoot)==null?void 0:n.getElementById(e);s==null||s.classList.add("active")}else{const s=(a=this.host.shadowRoot)==null?void 0:a.querySelectorAll(".token-options li.active");s==null||s.forEach(o=>o.classList.remove("active"))}}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")}updateEventTitleFromProp(e){t.debug("nylas-event-title","eventTitleChangedHandler",e),this.titleRef.innerHTML=this.highlightTokens(),this.titleRef.focus()}highlightTokens(){let e=this.eventTitle||"";return B.EVENT_TITLE_TOKENS.forEach(n=>{const a=n.value,s=new RegExp(`(\\${a})(?!\\w)`,"g");e=e.replace(s,'<span class="highlighted-tag">$1</span>')}),e}getCurrentSelectionForBrowser(){var a,s,o;const e=(i,l,r)=>{const f=i.replace(/[\u200B-\u200D\uFEFF]/g,""),c=f.lastIndexOf("$"),b=f.substring(c).split(" ")[0];return{focusOffset:l,dollarIndex:c,lastWord:b,currentText:f,node:r}},n=t.getBrowser();switch(console.log("currentBrowser",n),n){case"Chrome":const i=(a=this.host.shadowRoot)==null?void 0:a.getSelection(),l=i==null?void 0:i.focusNode,r=(l==null?void 0:l.nodeValue)||"";return e(r,(i==null?void 0:i.focusOffset)||-1,l);case"Firefox":const f=document.getSelection(),c=((s=f==null?void 0:f.anchorNode)==null?void 0:s.nodeValue)||"";return e(c,(f==null?void 0:f.focusOffset)||-1,f==null?void 0:f.anchorNode);case"Safari":const b=window.getSelection(),p=b==null?void 0:b.getComposedRanges(this.host.shadowRoot)[0],y=((o=p==null?void 0:p.startContainer)==null?void 0:o.nodeValue)||"";return e(y,(p==null?void 0:p.endOffset)||-1,p==null?void 0:p.startContainer);default:return console.warn("Browser not supported"),null}}handleChange(e){const n=e.target.textContent||"",a=this.getCurrentSelectionForBrowser();if(!a){this.updateEventTitle(n),this.resetDropdown();return}const{focusOffset:s,dollarIndex:o,lastWord:i,currentText:l}=a;if(o===-1||s<o){this.updateEventTitle(n),this.resetDropdown();return}i.startsWith("$")?(this.showTokens=!0,this.currentWord={$value:i,fullText:l,index:o,focusOffset:s},this.populateSuggestionsDropdown(i)):this.resetDropdown(),this.updateEventTitle(n)}handleInputKeyDown(e){var n,a,s,o;if(e.key==="Enter"){e.preventDefault();const i=(n=this.host.shadowRoot)==null?void 0:n.getElementById(this.ariaActivedescendant);i&&(i.click(),this.ariaActivedescendant="")}else if(e.key==="ArrowDown"){e.preventDefault();const i=(a=this.host.shadowRoot)==null?void 0:a.getElementById(this.ariaActivedescendant);if(i){const l=i.nextElementSibling;l?this.ariaActivedescendant=l.id:this.ariaActivedescendant=this.filteredTokens[0].label}else this.ariaActivedescendant=this.filteredTokens[0].label}else if(e.key==="ArrowUp"){e.preventDefault();const i=(s=this.host.shadowRoot)==null?void 0:s.getElementById(this.ariaActivedescendant);if(i){const l=i.previousElementSibling;l?this.ariaActivedescendant=l.id:this.ariaActivedescendant=this.filteredTokens[this.filteredTokens.length-1].label}else this.ariaActivedescendant=this.filteredTokens[this.filteredTokens.length-1].label}else if(e.key==="Escape")e.preventDefault(),this.resetDropdown();else if(e.key==="Backspace"||e.key==="Delete"){const i=this.getCurrentSelectionForBrowser();i!=null&&i.currentText.startsWith("${")&&(o=i==null?void 0:i.node)!=null&&o.parentNode&&i.node.parentNode.removeChild(i.node)}}selectOption(e,n){var d;e.preventDefault();const a=this.currentWord.fullText,s=this.currentWord.$value;let o=this.titleRef.firstChild,i=null;for(;o;){if(o.nodeType===3){const h=((d=o.textContent)==null?void 0:d.replace(/[\u200B-\u200D\uFEFF]/g,""))||"",u=a.replace(/[\u200B-\u200D\uFEFF]/g,"");if(h.includes(u)){i=o;break}}o=o.nextSibling}if(!i)return;const l=i.textContent||"",r=l.indexOf(s),f=l.substring(0,r),c=l.substring(r+s.length),b=document.createTextNode(f),p=document.createRange(),y=document.createElement("span");y.classList.add("highlighted-tag"),y.textContent=`${n.value}`;const N=document.createTextNode(c);if(c!=="")i.replaceWith(b,y,N),p.setStart(N,0);else{const h=document.createTextNode("​");i.replaceWith(b,y,h),p.setStart(h,0)}this.resetDropdown(),this.titleRef.focus();const E=window.getSelection();p.collapse(!0),E==null||E.removeAllRanges(),E==null||E.addRange(p),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){const n=e.replace(/ +/g," ");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:"a58acf57120285f1c42b0df698b31e298b40407d"},t.h("div",{key:"ed5b5e3d7694fbce89647344b066326271786779",class:"nylas-event-title",part:"net"},t.h("label",{key:"102d6d0df0164809afe2f215408cc321703c38bc",htmlFor:"title"},"Event title",t.h("span",{key:"e024b656ae41640181ba67aed42a52509774354c",class:"required"},"*"),t.h("span",{key:"7116bafdab5470e86ba2acdafc2236610b79ea59",class:"label-icon"},t.h("tooltip-component",{key:"71a50958f2f04cdfe0cc35c17f60c64f3b910e84"},t.h("info-icon",{key:"92e96b68f699d4aff80e028538259e27ba803e18",slot:"tooltip-icon"}),t.h("span",{key:"5c29a9e8bde6f4cd8df38082b70ad15682e4b687",slot:"tooltip-content"},"Enter a title for your event.")))),t.h("div",{key:"72f580436b050b2af9b78149e3b8831912847e7f",class:"title",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:"a75e5bea3c3841e1030ff676465c036006cf617f",class:"help-text"},"Create a dynamic templated event title by typing $. Learn more")))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],ariaActivedescendant:["ariaActivedescendantChangedHandler"]}}};Ot([g.RegisterComponent({name:"nylas-event-title",eventToProps:{},fireRegisterEvent:!0}),ie("design:type",Function),ie("design:paramtypes",[]),ie("design:returntype",void 0)],ye.prototype,"render",null);ye.style=It;const Dt=':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)}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;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}',St=Dt;var Lt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},se=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ge=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.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)}availableDaysInFutureChanged(e){const{number:n,period:a}=this.calculateNumberAndPeriodFromDays(e);this.selectedNumber=n,this.selectedPeriod=a}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 s;a==="day"?s=n:a==="week"?s=n*7:s=n*30,this.valueChanged.emit({value:s,name:this.name}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(s.toString(),this.name)}calculateNumberAndPeriodFromDays(e){return e>=30&&e%30===0?{number:e/30,period:"month"}:e>=7&&e%7===0?{number:e/7,period:"week"}:{number:e,period:"day"}}render(){return t.h(t.Host,{key:"51c0c8da5fd7f5dde898fd72e450f7d964c424c6"},t.h("div",{key:"0cca0db28b809eec38f93bb25ad8e7ec281836f0",class:"nylas-limit-future-bookings",part:"nlfb"},t.h("label",{key:"feb8cd912af491a1f26a5e32ec2a7cf6d34309da"},"Limit future bookings",t.h("span",{key:"c1e61e9137428534f80db3222fa0c71b220fe333",class:"label-icon"},t.h("tooltip-component",{key:"b1f429be3c382dfe5b1cf6bfd98f71dd9a3d4b81"},t.h("info-icon",{key:"e52cdd714fa99b9e8ff1b995a15a44474bf7dbdd",slot:"tooltip-icon"}),t.h("span",{key:"8fc34d1fd12b92312d6e5c380a0aba8a2605285d",slot:"tooltip-content"},"Set a limit on how far in the future bookings can be made.")))),t.h("time-period-selector",{key:"3edfddf9214f8729e6d36f4b5aca4fb771829cea",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"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};Lt([g.RegisterComponent({name:"nylas-limit-future-bookings",eventToProps:{},fireRegisterEvent:!0}),se("design:type",Function),se("design:paramtypes",[]),se("design:returntype",void 0)],ge.prototype,"render",null);ge.style=St;const $t=':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-nylas-base-800);font-size:14px;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}.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}',Ht=$t;var Ft=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},oe=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const ve=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.eventLocation=void 0,this.location=this.eventLocation??"",this.selectedLocationOption=this.eventLocation?"custom":"none",this.name="location"}elementNameChangedHandler(e){t.debug("nylas-location-component","elementNameChangedHandler",e),this.host.setAttribute("name",e)}eventLocationChangedHandler(e,n){t.debug("nylas-location-component","eventLocationChangedHandler",e),e!==n&&(this.selectedLocationOption=e?"custom":"none")}connectedCallback(){t.debug("nylas-location-component","connectedCallback")}componentWillLoad(){t.debug("nylas-location-component","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-location-component","componentDidLoad")}disconnectedCallback(){t.debug("nylas-location-component","disconnectedCallback")}selectedOptionChangedHandler(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){this.location=e.target.value,this.setFormValue(e.target.value,"location"),this.valueChanged.emit({value:e.target.value,name:this.name})}render(){const e=[{value:"none",label:"None"},{value:"custom",label:"Custom location"}],n={none:t.h("location-off-icon",{key:"694d28e2c953bd5519209e10435bf646578d114a"}),custom:t.h("location-icon",{key:"7062ec4488bff42737000d61ea2bf139a873a2c5"})};return t.h(t.Host,{key:"fc9ae763769cb2eb7bc441b1badd42247875f398"},t.h("div",{key:"7af34d7e80f9f54c27625e8740c6b5474087e737",class:"nylas-event-location",part:"nel"},t.h("label",{key:"f5023e444ca97848346897f51fce28352f267d49",htmlFor:"location"},"Location type",t.h("span",{key:"f5b34257a36a986f22e7d6d912976c23ebe979ad",class:"label-icon"},t.h("tooltip-component",{key:"68ac23d32ce98388faa32476c4d5630e7fe8b684"},t.h("info-icon",{key:"57a204c6d75da1132272e1e1d59e1fd46e9677fc",slot:"tooltip-icon"}),t.h("span",{key:"1dd7951c0aa0f5024a02f64a83495c2d241daa84",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:"e059381733d12841294fdb781ad59a6a12f49a74",class:"location-input"},t.h("select-dropdown",{key:"006b90371c0fde6f2e8dc3be75b40e398ceaf62d",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:"6f61a147ebbc95c142ffa379886d15031168f837",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"],eventLocation:["eventLocationChangedHandler"]}}};Ft([g.RegisterComponent({name:"nylas-location-component",eventToProps:{},fireRegisterEvent:!0}),oe("design:type",Function),oe("design:paramtypes",[]),oe("design:returntype",void 0)],ve.prototype,"render",null);ve.style=Ht;const At=':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)}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;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}',Mt=At;var Nt=function(e,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,n,a,s);else for(var r=e.length-1;r>=0;r--)(l=e[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},le=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.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)}availableDaysInFutureChanged(e){const{number:n,period:a}=this.calculateNumberAndPeriodFromMinutes(e);this.selectedNumber=n,this.selectedPeriod=a}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 s;const o=60,i=o*24,l=i*7,r=i*30;a==="minute"?s=n:a==="hour"?s=n*o:a==="day"?s=n*i:a==="week"?s=n*l:a==="month"?s=n*r:s=0,this.valueChanged.emit({value:s,name:this.name}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(s.toString(),this.name)}calculateNumberAndPeriodFromMinutes(e){return e>=43200?{number:Math.floor(e/43200),period:"month"}:e>=10080?{number:Math.floor(e/10080),period:"week"}:e>=1440?{number:Math.floor(e/1440),period:"day"}:e>=60?{number:Math.floor(e/60),period:"hour"}:{number:e,period:"minute"}}render(){return t.h(t.Host,{key:"e8638ae7a5b45140fa0abc7e50d4ec751faed4a4"},t.h("div",{key:"282e956cdf1b1b9b2f42ea497fb80ae3cc422d58",class:"nylas-min-cancellation-notice",part:"nmcn"},t.h("label",{key:"18c52355a024ff02a896cd6727fb947d4892d3d6"},"Minimum cancellation notice",t.h("span",{key:"0ebeecfaadaf1a6b2c96ab0370516b744e79ecbf",class:"label-icon"},t.h("tooltip-component",{key:"e216327d62b98e954286a16bef997115617c9fb8"},t.h("info-icon",{key:"b2ac6e0031012959ed6282deb04b73eabb5e84de",slot:"tooltip-icon"}),t.h("span",{key:"05e0bb93d0468b97d0ce815fafe5ca0ab6be31cc",slot:"tooltip-content"},"Set the minimum amount of time required to cancel an event.")))),t.h("time-period-selector",{key:"28e31fad6667ee1b7c05e63620a5716167262c5f",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"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};Nt([g.RegisterComponent({name:"nylas-min-cancellation-notice",eventToProps:{},fireRegisterEvent:!0}),le("design:type",Function),le("design:paramtypes",[]),le("design:returntype",void 0)],ke.prototype,"render",null);ke.style=Mt;var Se={exports:{}};(function(e,n){(function(a,s){e.exports=s()})(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"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,r={},f=function(d){return(d=+d)+(d>68?1900:2e3)},c=function(d){return function(h){this[d]=+h}},b=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var u=h.match(/([+-]|\d\d)/g),m=60*u[1]+(+u[2]||0);return m===0?0:u[0]==="+"?-m:m}(d)}],p=function(d){var h=r[d];return h&&(h.indexOf?h:h.s.concat(h.f))},y=function(d,h){var u,m=r.meridiem;if(m){for(var x=1;x<=24;x+=1)if(d.indexOf(m(x,0,h))>-1){u=x>12;break}}else u=d===(h?"pm":"PM");return u},N={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:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[o,c("day")],Do:[l,function(d){var h=r.ordinal,u=d.match(/\d+/);if(this.day=u[0],h)for(var m=1;m<=31;m+=1)h(m).replace(/\[|\]/g,"")===d&&(this.day=m)}],M:[i,c("month")],MM:[o,c("month")],MMM:[l,function(d){var h=p("months"),u=(p("monthsShort")||h.map(function(m){return m.slice(0,3)})).indexOf(d)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[l,function(d){var h=p("months").indexOf(d)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(d){this.year=f(d)}],YYYY:[/\d{4}/,c("year")],Z:b,ZZ:b};function E(d){var h,u;h=d,u=r&&r.formats;for(var m=(d=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,I,w){var v=w&&w.toUpperCase();return I||u[w]||a[w]||u[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,D,$){return D||$.slice(1)})})).match(s),x=m.length,_=0;_<x;_+=1){var M=m[_],S=N[M],C=S&&S[0],T=S&&S[1];m[_]=T?{regex:C,parser:T}:M.replace(/^\[|\]$/g,"")}return function(L){for(var I={},w=0,v=0;w<x;w+=1){var O=m[w];if(typeof O=="string")v+=O.length;else{var D=O.regex,$=O.parser,R=L.slice(v),F=D.exec(R)[0];$.call(I,F),L=L.replace(F,"")}}return function(H){var k=H.afternoon;if(k!==void 0){var A=H.hours;k?A<12&&(H.hours+=12):A===12&&(H.hours=0),delete H.afternoon}}(I),I}}return function(d,h,u){u.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(f=d.parseTwoDigitYear);var m=h.prototype,x=m.parse;m.parse=function(_){var M=_.date,S=_.utc,C=_.args;this.$u=S;var T=C[1];if(typeof T=="string"){var L=C[2]===!0,I=C[3]===!0,w=L||I,v=C[2];I&&(v=C[2]),r=this.$locale(),!L&&v&&(r=u.Ls[v]),this.$d=function(R,F,H){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*R);var k=E(F)(R),A=k.year,z=k.month,$e=k.day,He=k.hours,Fe=k.minutes,Ae=k.seconds,Me=k.milliseconds,we=k.zone,j=new Date,W=$e||(A||z?1:j.getDate()),V=A||j.getFullYear(),P=0;A&&!z||(P=z>0?z-1:j.getMonth());var Z=He||0,U=Fe||0,Y=Ae||0,K=Me||0;return we?new Date(Date.UTC(V,P,W,Z,U,Y,K+60*we.offset*1e3)):H?new Date(Date.UTC(V,P,W,Z,U,Y,K)):new Date(V,P,W,Z,U,Y,K)}catch{return new Date("")}}(M,T,S),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),w&&M!=this.format(T)&&(this.$d=new Date("")),r={}}else if(T instanceof Array)for(var O=T.length,D=1;D<=O;D+=1){C[1]=T[D-1];var $=u.apply(this,C);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}D===O&&(this.$d=new Date(""))}else x.call(this,_)}}})})(Se);const Rt=Se.exports,zt=':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}',Pt=zt;t.dayjs.extend(Rt);const Le=class{constructor(e){t.registerInstance(this,e),this.timeChange=t.createEvent(this,"timeChange",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.setTime=void 0,this.name=void 0,this.hasError=!1,this.setFormError=void 0,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.setFormError(null,"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.setFormError(e,"Invalid")),t.validateTimeFormatInput(n)?(this.err="",this.setFormError(null)):(this.err="Invalid",this.setFormError(e,"Invalid")),this.setTime(e,n),this.timeChange.emit(n)}handleTimeAutocomplete(e){var a;const n=(a=e.target)==null?void 0:a.value;if(!t.validateTimeFormatInput(n)){this.err="Invalid",this.setFormError(e,"Invalid");return}if(n===""){const s=t.roundToNearest15Minutes().format("hh:mma");this.setTime(e,s);return}if(!t.validateExactTimeFormat(n)){const s=t.autocompleteTimeFormat(n);this.setTime(s);return}this.setTime(e,n)}handleOnInput(e){var a;const n=(a=e.target)==null?void 0:a.value;if(t.validateTimeFormatInput(n)){if(n===""){const s=t.roundToNearest15Minutes().format("hh:mma"),o=this.times.findIndex(i=>i.value===s);o>-1&&this.scrollToViewWithinParent(o);return}if(!t.validateExactTimeFormat(n)){const s=t.autocompleteTimeFormat(n),o=this.times.findIndex(i=>i.value===s);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"),s=Math.round(a/15);for(let o=0;o<s+1;o++){const i=n.add(o*15,"minute");if(o==s&&i.format("hh:mma").includes("am"))break;e.push({id:o,value:i.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(s=>s.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(s=>s.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(s=>s.id.toString()===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){e.preventDefault();const s=a+1<n.length?a+1:0;this.ariaActivedescendant=n[s].id.toString(),this.focusOption(s)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){e.preventDefault();const s=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[s].id.toString(),this.focusOption(s)}else if(e.key==="Enter"){if(e.preventDefault(),this.ariaActivedescendant){const s=n[a];this.handleTimeChange(e,s.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()),s=this.timeMenu;this.ariaActivedescendant=n.id.toString();const o=a.getBoundingClientRect(),i=s.getBoundingClientRect();o.top<i.top?s.scrollTop-=i.top-o.top:o.bottom>i.bottom&&(s.scrollTop+=o.bottom-i.bottom),o.left<i.left?s.scrollLeft-=i.left-o.left:o.right>i.right&&(s.scrollLeft+=o.right-i.right)}focusOption(e){var o;const n=this.times[e];if(!n)return;const a=n.id.toString(),s=(o=this.el.shadowRoot)==null?void 0:o.getElementById(a);s&&(s.focus(),s.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){return t.h(t.Host,{key:"68fb5327c6e823e29aafa4fd7e81bddac7ab19e9"},t.h("div",{key:"c1f7edbdc95926f66fb627cfe0eb7044611518a5",class:"time-picker",part:"time-picker"},t.h("input",{key:"f1c274637b24b9e4e88798ab83524efb8e75de36",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=!0,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"]}}};Le.style=Pt;exports.add_circle_icon=xe;exports.button_component=_e;exports.calendar_info_icon=Ce;exports.calendar_patterns_icon=Te;exports.flow_icon=Ee;exports.location_icon=Ie;exports.location_off_icon=Oe;exports.multi_select_dropdown=De;exports.nylas_availability_picker=re;exports.nylas_booking_calendar_picker=de;exports.nylas_buffer_time=ce;exports.nylas_calendar_picker=pe;exports.nylas_custom_booking_flow=fe;exports.nylas_event_description=he;exports.nylas_event_duration=be;exports.nylas_event_info=ue;exports.nylas_event_limits=me;exports.nylas_event_title=ye;exports.nylas_limit_future_bookings=ge;exports.nylas_location_component=ve;exports.nylas_min_cancellation_notice=ke;exports.nylas_time_window_picker=Le;
@@ -1,75 +0,0 @@
1
- import { r as s, h as t } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const o = ".sc-archive-icon-h{display:flex}", c = o, h = class {
5
- constructor(e) {
6
- s(this, e), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "2feab930375be767f893e1149579a7b57da2be69", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f157a132c6a6b024ddb6f293c6af6a1261b9e948", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "471d8d9001b13eec8d68e936c0aaed6b8af3f40c", d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "3ff934392c3e68d83c2c6b25c8c879029a5c2c0c", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "0333d602e8754b22f55316102b6fccf207789518", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
10
- }
11
- };
12
- h.style = c;
13
- const i = ".sc-folder-icon-h{display:flex}", d = i, a = class {
14
- constructor(e) {
15
- s(this, e), this.width = "15", this.height = "15";
16
- }
17
- render() {
18
- return t("svg", { key: "163635a37865d119df81123279ae521540d72316", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "a5898814da9ca7186d5369c42c3329152cd0f3cc", d: "M3 8.2C3 7.07989 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H9.67452C10.1637 5 10.4083 5 10.6385 5.05526C10.8425 5.10425 11.0376 5.18506 11.2166 5.29472C11.4184 5.4184 11.5914 5.59135 11.9373 5.93726L12.0627 6.06274C12.4086 6.40865 12.5816 6.5816 12.7834 6.70528C12.9624 6.81494 13.1575 6.89575 13.3615 6.94474C13.5917 7 13.8363 7 14.3255 7H17.8C18.9201 7 19.4802 7 19.908 7.21799C20.2843 7.40973 20.5903 7.71569 20.782 8.09202C21 8.51984 21 9.0799 21 10.2V15.8C21 16.9201 21 17.4802 20.782 17.908C20.5903 18.2843 20.2843 18.5903 19.908 18.782C19.4802 19 18.9201 19 17.8 19H6.2C5.07989 19 4.51984 19 4.09202 18.782C3.71569 18.5903 3.40973 18.2843 3.21799 17.908C3 17.4802 3 16.9201 3 15.8V8.2Z", stroke: "auto", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
19
- }
20
- };
21
- a.style = d;
22
- const r = ".sc-inbox-icon-h{display:flex}", n = r, f = class {
23
- constructor(e) {
24
- s(this, e), this.width = "15", this.height = "15";
25
- }
26
- render() {
27
- return t("svg", { key: "dcfc1d62178b1d3d699e49e4ee23f8d3db1c58f0", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "5aba3b06733b79f9713bb27a8b3cd028c2e74ac0", d: "M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "f4c11f4f19112594c3962df37962c419d3a5e08a", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
28
- }
29
- };
30
- f.style = n;
31
- const w = ".sc-sent-icon-h{display:flex}", b = w, C = class {
32
- constructor(e) {
33
- s(this, e), this.width = "15", this.height = "15";
34
- }
35
- render() {
36
- return t("svg", { key: "d65ed914b987f831d7b9c138c95670ee601e3a8b", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "22d3842de7642189d18fe0bf71e7158cec301cd3", d: "M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "a2994d5b2be41b80cf4e650526d911763be090c1", d: "M3.5 3.5L12 10.5", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "abd4bbb3b27eca1843bb3cdf4d25e1bdc4499df9", d: "M3.5 20.5L12 13.5", stroke: "auto", "stroke-width": "1.5" }));
37
- }
38
- };
39
- C.style = b;
40
- const l = ".sc-spam-icon-h{display:flex}", k = l, y = class {
41
- constructor(e) {
42
- s(this, e), this.width = "15", this.height = "15";
43
- }
44
- render() {
45
- return t("svg", { key: "57d2d182e36dd7b385a1c27c0921127f26e453f3", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "e21a089e245f708d97beef963c212d1e33e5b423", d: "M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "e2204981f51b4553d945a0c833c5931deb20d45b", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
46
- }
47
- };
48
- y.style = k;
49
- const g = ".sc-star-icon-h{display:flex}", p = g, u = class {
50
- constructor(e) {
51
- s(this, e), this.width = "15", this.height = "15";
52
- }
53
- render() {
54
- return t("svg", { key: "0c7db4952c426797c87bf8477d58f1dfe70723bd", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "1d009e28811a891cba039f6afb175c5c020f8128", d: "M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z", stroke: "auto", "stroke-width": "1.5" }));
55
- }
56
- };
57
- u.style = p;
58
- const x = ".sc-trash-icon-h{display:flex}", v = x, L = class {
59
- constructor(e) {
60
- s(this, e), this.width = "15", this.height = "15";
61
- }
62
- render() {
63
- return t("svg", { key: "a1c3a8aacb2c2c2f8112dea37a3b98f4c73f6515", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "bbc6ad0b61258f87f001cb5b04b116aa542bed74", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "3b04581fad0c052598c8fac47c1fe5db6ab199fa", d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "4b5844bef777e7ebd81dfe215c133c0fa46d9b1d", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "f2bf2bb8873ce367add177f21e53fef44e6aa231", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
64
- }
65
- };
66
- L.style = v;
67
- export {
68
- h as archive_icon,
69
- a as folder_icon,
70
- f as inbox_icon,
71
- C as sent_icon,
72
- y as spam_icon,
73
- u as star_icon,
74
- L as trash_icon
75
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-22f7e49c.cjs");require("react");require("react-dom");const r=".sc-archive-icon-h{display:flex}",n=r,s=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"2feab930375be767f893e1149579a7b57da2be69",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"f157a132c6a6b024ddb6f293c6af6a1261b9e948",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"471d8d9001b13eec8d68e936c0aaed6b8af3f40c",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"3ff934392c3e68d83c2c6b25c8c879029a5c2c0c",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"0333d602e8754b22f55316102b6fccf207789518",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};s.style=n;const f=".sc-folder-icon-h{display:flex}",w=f,h=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"163635a37865d119df81123279ae521540d72316",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"a5898814da9ca7186d5369c42c3329152cd0f3cc",d:"M3 8.2C3 7.07989 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H9.67452C10.1637 5 10.4083 5 10.6385 5.05526C10.8425 5.10425 11.0376 5.18506 11.2166 5.29472C11.4184 5.4184 11.5914 5.59135 11.9373 5.93726L12.0627 6.06274C12.4086 6.40865 12.5816 6.5816 12.7834 6.70528C12.9624 6.81494 13.1575 6.89575 13.3615 6.94474C13.5917 7 13.8363 7 14.3255 7H17.8C18.9201 7 19.4802 7 19.908 7.21799C20.2843 7.40973 20.5903 7.71569 20.782 8.09202C21 8.51984 21 9.0799 21 10.2V15.8C21 16.9201 21 17.4802 20.782 17.908C20.5903 18.2843 20.2843 18.5903 19.908 18.782C19.4802 19 18.9201 19 17.8 19H6.2C5.07989 19 4.51984 19 4.09202 18.782C3.71569 18.5903 3.40973 18.2843 3.21799 17.908C3 17.4802 3 16.9201 3 15.8V8.2Z",stroke:"auto","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};h.style=w;const b=".sc-inbox-icon-h{display:flex}",C=b,c=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"dcfc1d62178b1d3d699e49e4ee23f8d3db1c58f0",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"5aba3b06733b79f9713bb27a8b3cd028c2e74ac0",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"f4c11f4f19112594c3962df37962c419d3a5e08a",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};c.style=C;const l=".sc-sent-icon-h{display:flex}",k=l,o=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"d65ed914b987f831d7b9c138c95670ee601e3a8b",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"22d3842de7642189d18fe0bf71e7158cec301cd3",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"a2994d5b2be41b80cf4e650526d911763be090c1",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"abd4bbb3b27eca1843bb3cdf4d25e1bdc4499df9",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};o.style=k;const g=".sc-spam-icon-h{display:flex}",y=g,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"57d2d182e36dd7b385a1c27c0921127f26e453f3",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"e21a089e245f708d97beef963c212d1e33e5b423",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"e2204981f51b4553d945a0c833c5931deb20d45b",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};i.style=y;const u=".sc-star-icon-h{display:flex}",p=u,d=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"0c7db4952c426797c87bf8477d58f1dfe70723bd",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"1d009e28811a891cba039f6afb175c5c020f8128",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};d.style=p;const v=".sc-trash-icon-h{display:flex}",x=v,a=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"a1c3a8aacb2c2c2f8112dea37a3b98f4c73f6515",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"bbc6ad0b61258f87f001cb5b04b116aa542bed74",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"3b04581fad0c052598c8fac47c1fe5db6ab199fa",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"4b5844bef777e7ebd81dfe215c133c0fa46d9b1d",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"f2bf2bb8873ce367add177f21e53fef44e6aa231",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};a.style=x;exports.archive_icon=s;exports.folder_icon=h;exports.inbox_icon=c;exports.sent_icon=o;exports.spam_icon=i;exports.star_icon=d;exports.trash_icon=a;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const o=".sc-arrow-icon-h{display:flex}",i=o,t=class{constructor(r){e.registerInstance(this,r),this.width="15",this.height="15"}render(){return e.h("svg",{key:"965b6c266cf4a21eb5b9853e64b4687ff44171e6",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"adc092890503e2bbb72fb20d46a91b76f87dde5f",d:"M5 12H19M12 5L19 12L12 19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=i;exports.arrow_icon=t;
@@ -1,15 +0,0 @@
1
- import { r as o, h as t } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const e = ".sc-arrow-icon-h{display:flex}", s = e, i = class {
5
- constructor(r) {
6
- o(this, r), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "965b6c266cf4a21eb5b9853e64b4687ff44171e6", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "adc092890503e2bbb72fb20d46a91b76f87dde5f", d: "M5 12H19M12 5L19 12L12 19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
- }
11
- };
12
- i.style = s;
13
- export {
14
- i as arrow_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const o=".sc-bold-icon-h{display:flex}",c=o,i=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"348d5aab6f9207f2c258faac86042d2ef7501512",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"aec1210751f099670e6cab47c0c068714cb21ba9",d:"M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=c;const r=".sc-italic-icon-h{display:flex}",h=r,n=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"063a4603dd4c92ebd67ef3a2ebd631327f052147",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"1cf2b4ce256bb52e22362a487d1647ff0a5405cd",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m10 20 4-16m2 0h-4m0 16H8"}))}};n.style=h;const d=".sc-underline-icon-h{display:flex}",l=d,s=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"de1318c30ad77c385d8dc782365a8c526ffe283f",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"442aee059d60e34ce3d8bca864c199717cacc651",d:"M19 4V10C19 13.866 15.866 17 12 17C8.13401 17 5 13.866 5 10V4M8.5 4V10C8.5 13.2218 10.6766 15.9352 13.6395 16.7501M4 21H20M3 4L10.5 4M17 4L21 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=l;exports.bold_icon=i;exports.italic_icon=n;exports.underline_icon=s;
@@ -1,35 +0,0 @@
1
- import { r as i, h as t } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const o = ".sc-bold-icon-h{display:flex}", s = o, n = class {
5
- constructor(e) {
6
- i(this, e), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "348d5aab6f9207f2c258faac86042d2ef7501512", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "aec1210751f099670e6cab47c0c068714cb21ba9", d: "M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
- }
11
- };
12
- n.style = s;
13
- const c = ".sc-italic-icon-h{display:flex}", r = c, h = class {
14
- constructor(e) {
15
- i(this, e), this.width = "15", this.height = "15";
16
- }
17
- render() {
18
- return t("svg", { key: "063a4603dd4c92ebd67ef3a2ebd631327f052147", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "1cf2b4ce256bb52e22362a487d1647ff0a5405cd", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m10 20 4-16m2 0h-4m0 16H8" }));
19
- }
20
- };
21
- h.style = r;
22
- const d = ".sc-underline-icon-h{display:flex}", l = d, a = class {
23
- constructor(e) {
24
- i(this, e), this.width = "15", this.height = "15";
25
- }
26
- render() {
27
- return t("svg", { key: "de1318c30ad77c385d8dc782365a8c526ffe283f", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "442aee059d60e34ce3d8bca864c199717cacc651", d: "M19 4V10C19 13.866 15.866 17 12 17C8.13401 17 5 13.866 5 10V4M8.5 4V10C8.5 13.2218 10.6766 15.9352 13.6395 16.7501M4 21H20M3 4L10.5 4M17 4L21 4", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
28
- }
29
- };
30
- a.style = l;
31
- export {
32
- n as bold_icon,
33
- h as italic_icon,
34
- a as underline_icon
35
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const n=".sc-calendar-cancel-icon-h{display:flex}",a=n,c=class{constructor(t){e.registerInstance(this,t),this.width="20",this.height="20"}render(){return e.h("svg",{key:"db6701b8f80c91b9f6a113fcc0960177f599d7b9",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"1047c1e125b9e145ce8cddee8cbd416fe10dc5f2",d:"M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z",fill:"currentColor"}))}};c.style=a;exports.calendar_cancel_icon=c;
@@ -1,15 +0,0 @@
1
- import { r as t, h as c } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const a = ".sc-calendar-cancel-icon-h{display:flex}", n = a, l = class {
5
- constructor(e) {
6
- t(this, e), this.width = "20", this.height = "20";
7
- }
8
- render() {
9
- return c("svg", { key: "db6701b8f80c91b9f6a113fcc0960177f599d7b9", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "1047c1e125b9e145ce8cddee8cbd416fe10dc5f2", d: "M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z", fill: "currentColor" }));
10
- }
11
- };
12
- l.style = n;
13
- export {
14
- l as calendar_cancel_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const h=".sc-calendar-check-icon-h{display:flex}",r=h,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"38443394b07088e29b246c590994774d60bb192e",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"7ab6ea9098ce5585c193f1bf4e668e04a442991a",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};t.style=r;const s=".sc-checkmark-circle-icon-h{display:flex}",n=s,i=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"fe15f01206b6a97170014eccd61a87db4e73e324",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"1742bbcd93b66151ec4394083b2e6e0441f5c808",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};i.style=n;exports.calendar_check_icon=t;exports.checkmark_circle_icon=i;
@@ -1,25 +0,0 @@
1
- import { r as t, h as e } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const h = ".sc-calendar-check-icon-h{display:flex}", i = h, s = class {
5
- constructor(c) {
6
- t(this, c), this.width = "20", this.height = "20";
7
- }
8
- render() {
9
- return e("svg", { key: "38443394b07088e29b246c590994774d60bb192e", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "7ab6ea9098ce5585c193f1bf4e668e04a442991a", fill: "currentColor", d: "M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z" }));
10
- }
11
- };
12
- s.style = i;
13
- const r = ".sc-checkmark-circle-icon-h{display:flex}", n = r, a = class {
14
- constructor(c) {
15
- t(this, c), this.width = "20", this.height = "20";
16
- }
17
- render() {
18
- return e("svg", { key: "fe15f01206b6a97170014eccd61a87db4e73e324", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, e("path", { key: "1742bbcd93b66151ec4394083b2e6e0441f5c808", fill: "currentColor", d: "M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z" }));
19
- }
20
- };
21
- a.style = n;
22
- export {
23
- s as calendar_check_icon,
24
- a as checkmark_circle_icon
25
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const i=".sc-calendar-icon-h{display:flex}",r=i,t=class{constructor(C){e.registerInstance(this,C),this.width="15",this.height="15"}render(){return e.h("svg",{key:"13b15d8a30949d8dc9425276f610ac973ddac58e",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"d5306bec4f4b9aca435d75e7ead87dfaf2e7204e",fill:"currentColor",d:"M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z"}))}};t.style=r;exports.calendar_icon=t;
@@ -1,15 +0,0 @@
1
- import { r as e, h as C } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const s = ".sc-calendar-icon-h{display:flex}", i = s, r = class {
5
- constructor(t) {
6
- e(this, t), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return C("svg", { key: "13b15d8a30949d8dc9425276f610ac973ddac58e", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, C("path", { key: "d5306bec4f4b9aca435d75e7ead87dfaf2e7204e", fill: "currentColor", d: "M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z" }));
10
- }
11
- };
12
- r.style = i;
13
- export {
14
- r as calendar_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-22f7e49c.cjs");require("react");require("react-dom");const c=".sc-chevron-icon-h{display:flex}",h=c,r=class{constructor(e){n.registerInstance(this,e),this.width="24",this.height="24"}render(){return n.h("svg",{key:"8b2f33f377a5e7cef2b384c7f94d8fbe16c91fa0",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},n.h("path",{key:"8470f2d9380d24168e7b0985b75d389e8ceae095",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){n.registerInstance(this,e),this.width="15",this.height="15"}render(){return n.h("svg",{key:"0a6d8feab2e4fda5ba90e67117de1b38b945eb71",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.h("path",{key:"07847b8eff8738c946ea9d38590ed5ec59b2ee87",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}@media screen and (max-width: 768px){:host{position:unset}}.dropdown{display:inline-block}.dropbtn{color:var(--nylas-base-800);padding:10px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;gap:0.5rem;background:transparent;border:none;border-radius:var(--nylas-border-radius-2x)}.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);max-width:306px;width:max-content;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){n.registerInstance(this,e),this.selectedOptionChanged=n.createEvent(this,"selectedOptionChanged",7),this.name=void 0,this.options=[],this.defaultSelectedOption=void 0,this.withSearch=!0,this.pluralizedLabel="",this.selectedOption=this.defaultSelectedOption||null,this.isOpen=!1,this.searchValue="",this.filteredOptions=[...this.options],this.ariaActivedescendant=""}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])}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.selectedOption=e,this.toggleDropdown(),this.selectedOptionChanged.emit({value:e.value,name:this.name})}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 o,a;const s=this.filteredOptions,t=s.findIndex(i=>i.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),t===s.length-1){this.ariaActivedescendant="",(o=this.inputRef)==null||o.focus();return}const i=t+1<s.length?t+1:0;this.ariaActivedescendant=s[i].value,this.focusOption(i)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),t===0){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const i=t-1>=0?t-1:s.length-1;this.ariaActivedescendant=s[i].value,this.focusOption(i)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(s[t])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var a;const s=this.filteredOptions[e];if(!s)return;const t=s.value,o=(a=this.el.shadowRoot)==null?void 0:a.getElementById(t);o&&(o.focus(),o.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 n.h("div",{key:"d09b6dde0999bbf13820677ed6c737ffb0a336b1",class:"dropdown",part:"sd_dropdown"},n.h("button",{key:"a5b040db9feccc009a4bcd6e398c0d109e598529",part:"sd_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:t=>this.handleSelectButtonKeyDown(t)},n.h("slot",{key:"c7490a8f671ffce9f6b95cb5314774eb6c4882ef",name:"select-icon","aria-hidden":"true"}),n.h("span",{key:"85313f85921ee455a4bba9d9c2750da4a3e7237b",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}`:""),n.h("span",{key:"ae5157941f78c5c044f843e7b9661bfd21758d48",class:{open:this.isOpen,closed:!this.isOpen,chevron:!0},"aria-hidden":"true"},n.h("chevron-icon",{key:"74dc004905e6eeb589bfa789443c83c9b2f024a4",width:"16",height:"16"}))),this.isOpen?n.h("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&n.h("div",{class:{"search-box":!0,open:this.isOpen}},n.h("search-icon",{width:"15",height:"15",class:"icon"}),n.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)})),n.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>n.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 n.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;