@nylas/react 1.0.2-prealpha1 → 1.1.0-canary.11

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 (141) hide show
  1. package/dist/add-circle-icon_21.entry-71e60262.js +1755 -0
  2. package/dist/add-circle-icon_21.entry-95dda099.cjs +1 -0
  3. package/dist/{archive-icon_7.entry-84d70dbf.cjs → archive-icon_7.entry-24f31e46.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-91aaa1aa.js → archive-icon_7.entry-3c5e3ccf.js} +19 -19
  5. package/dist/{arrow-icon.entry-400a08fa.cjs → arrow-icon.entry-562eb541.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-8b2e96a6.js → arrow-icon.entry-813bffe9.js} +2 -2
  7. package/dist/{bold-icon_3.entry-4b2798a8.js → bold-icon_3.entry-c0e7d524.js} +4 -4
  8. package/dist/{bold-icon_3.entry-9ad35153.cjs → bold-icon_3.entry-e8b034fe.cjs} +1 -1
  9. package/dist/{calendar-cancel-icon.entry-83ba884a.js → calendar-cancel-icon.entry-0b0219cb.js} +5 -5
  10. package/dist/{calendar-cancel-icon.entry-fcb66929.cjs → calendar-cancel-icon.entry-7d4fdb1b.cjs} +1 -1
  11. package/dist/calendar-check-icon_2.entry-6ecd2faa.js +25 -0
  12. package/dist/calendar-check-icon_2.entry-88025f63.cjs +1 -0
  13. package/dist/{calendar-icon.entry-8f38af4a.js → calendar-icon.entry-34d8ef69.js} +5 -5
  14. package/dist/{calendar-icon.entry-7bae38d7.cjs → calendar-icon.entry-b753520f.cjs} +1 -1
  15. package/dist/chevron-icon_3.entry-0aeb4cfa.cjs +1 -0
  16. package/dist/chevron-icon_3.entry-ae55fd65.js +117 -0
  17. package/dist/close-icon.entry-ae66c827.js +15 -0
  18. package/dist/close-icon.entry-c80da833.cjs +1 -0
  19. package/dist/{nylas-booked-event-card_10.entry-ed515326.cjs → constants-f34b9c6e-b9f975af.cjs} +6 -6
  20. package/dist/{nylas-booked-event-card_10.entry-7e66a648.js → constants-f34b9c6e-d0f5cd19.js} +1665 -2374
  21. package/dist/document-refresh-icon.entry-36405467.cjs +1 -0
  22. package/dist/{document-refresh-icon.entry-9083a2e9.js → document-refresh-icon.entry-7d370f85.js} +5 -5
  23. package/dist/elements/index.d.ts +32 -2
  24. package/dist/{elements-dc5b338e-81a0319c.cjs → elements-dc5b338e-0dbb4f67.cjs} +1 -1
  25. package/dist/{elements-dc5b338e-fb5dbfb5.js → elements-dc5b338e-524cb111.js} +1 -1
  26. package/dist/{focus-visible-e8093c16-28fc08a0.js → focus-visible-e8093c16-17ab1557.js} +5 -3
  27. package/dist/focus-visible-e8093c16-7e94a4f3.cjs +1 -0
  28. package/dist/{forward-icon_6.entry-b60fcb35.js → forward-icon_6.entry-384cc3c5.js} +83 -85
  29. package/dist/forward-icon_6.entry-a479b39e.cjs +3 -0
  30. package/dist/{globe-icon.entry-8325e73e.cjs → globe-icon.entry-0c848856.cjs} +1 -1
  31. package/dist/{globe-icon.entry-e3fd373f.js → globe-icon.entry-58b9f3fc.js} +4 -4
  32. package/dist/google-logo-icon_4.entry-3dce1b83.js +388 -0
  33. package/dist/google-logo-icon_4.entry-e1e63fd0.cjs +1 -0
  34. package/dist/index-20ea5b0c.js +4042 -0
  35. package/dist/index-33f74306.cjs +37 -0
  36. package/dist/index.d.ts +3 -1
  37. package/dist/{index-b30d446a-a90f84b2.js → index.es-be19d2df-c2fdca63.js} +945 -1041
  38. package/dist/index.es-be19d2df-f732308a.cjs +7 -0
  39. package/dist/info-icon_2.entry-98965833.js +34 -0
  40. package/dist/info-icon_2.entry-dd0a0633.cjs +1 -0
  41. package/dist/{loading-icon.entry-b2096d2b.cjs → loading-icon.entry-46821f18.cjs} +1 -1
  42. package/dist/{loading-icon.entry-27410cf8.js → loading-icon.entry-abd81cea.js} +2 -2
  43. package/dist/mailbox-store-76540d24-7bf14e45.cjs +1 -0
  44. package/dist/{mailbox-store-19f0c6c9-e3e8b4e5.js → mailbox-store-76540d24-dfb53045.js} +2 -2
  45. package/dist/nylas-additional-participants.entry-d35d7af5.cjs +1 -0
  46. package/dist/nylas-additional-participants.entry-f6ed34d6.js +81 -0
  47. package/dist/nylas-booked-event-card_10.entry-534e587c.cjs +1 -0
  48. package/dist/nylas-booked-event-card_10.entry-8efe8335.js +805 -0
  49. package/dist/nylas-custom-booking-flow.entry-0e7b605d.js +106 -0
  50. package/dist/nylas-custom-booking-flow.entry-12d09496.cjs +1 -0
  51. package/dist/nylas-form-card.entry-7dd86dde.js +54 -0
  52. package/dist/nylas-form-card.entry-94579d1d.cjs +1 -0
  53. package/dist/nylas-if-state.entry-32ea90ea.cjs +1 -0
  54. package/dist/nylas-if-state.entry-92cbc0b9.js +94 -0
  55. package/dist/nylas-list-folders.entry-8595a9b7.cjs +1 -0
  56. package/dist/{nylas-list-folders.entry-a5437201.js → nylas-list-folders.entry-cab222c9.js} +10 -11
  57. package/dist/nylas-list-threads.entry-3fef6316.cjs +1 -0
  58. package/dist/{nylas-list-threads.entry-fd6cda61.js → nylas-list-threads.entry-8e9294a3.js} +5 -6
  59. package/dist/nylas-login.entry-bc885e04.cjs +1 -0
  60. package/dist/nylas-login.entry-bd1d5b6f.js +73 -0
  61. package/dist/{nylas-mailbox-pagination.entry-988214bc.js → nylas-mailbox-pagination.entry-58657a09.js} +7 -8
  62. package/dist/nylas-mailbox-pagination.entry-74d3b376.cjs +1 -0
  63. package/dist/nylas-mailbox-toolbar-button.entry-8b73b9f4.cjs +1 -0
  64. package/dist/{nylas-mailbox-toolbar-button.entry-c720e22a.js → nylas-mailbox-toolbar-button.entry-d7817b46.js} +15 -16
  65. package/dist/nylas-mailbox.entry-0bddc2fd.js +134 -0
  66. package/dist/nylas-mailbox.entry-762f5062.cjs +1 -0
  67. package/dist/{nylas-provider.entry-70721009.js → nylas-provider.entry-2e24192d.js} +40 -29
  68. package/dist/nylas-provider.entry-f8ba7a6e.cjs +1 -0
  69. package/dist/nylas-scheduler-editor.entry-8189b099.js +2269 -0
  70. package/dist/nylas-scheduler-editor.entry-a642f833.cjs +7 -0
  71. package/dist/nylas-scheduling.entry-13087b5f.cjs +1 -0
  72. package/dist/nylas-scheduling.entry-3f170361.js +248 -0
  73. package/dist/nylas-threads-refresh.entry-3b9f57c3.cjs +1 -0
  74. package/dist/{nylas-threads-refresh.entry-b7f9e93f.js → nylas-threads-refresh.entry-f2967405.js} +4 -5
  75. package/dist/nylas-threads-search.entry-3e0b4fdc.cjs +1 -0
  76. package/dist/{nylas-threads-search.entry-95afea9c.js → nylas-threads-search.entry-e70bbf70.js} +4 -5
  77. package/dist/{nylas-view-thread.entry-165173b1.js → nylas-view-thread.entry-4f39f045.js} +10 -11
  78. package/dist/nylas-view-thread.entry-b23080b7.cjs +1 -0
  79. package/dist/people-icon.entry-15cd7d77.cjs +1 -0
  80. package/dist/people-icon.entry-7f3b95e9.js +15 -0
  81. package/dist/play-icon_2.entry-13065065.js +25 -0
  82. package/dist/play-icon_2.entry-2172886a.cjs +1 -0
  83. package/dist/react.cjs +1 -1
  84. package/dist/react.js +94 -62
  85. package/dist/{refresh-icon.entry-601cac89.cjs → refresh-icon.entry-61067a7f.cjs} +1 -1
  86. package/dist/{refresh-icon.entry-e48a338f.js → refresh-icon.entry-fbfa185e.js} +5 -5
  87. package/dist/register-component-83e24412-445c6ad9.cjs +1 -0
  88. package/dist/{register-component-152c6ad2-a06f58c2.js → register-component-83e24412-b666e56b.js} +37 -33
  89. package/dist/scheduler-config-store-ec3b6190-8bde49c6.cjs +1 -0
  90. package/dist/scheduler-config-store-ec3b6190-fa81c492.js +23 -0
  91. package/dist/scheduler-store-8ca9003d-57b3f7a7.cjs +1 -0
  92. package/dist/scheduler-store-8ca9003d-8da2c12d.js +321 -0
  93. package/dist/time-period-selector.entry-5e083fd3.js +76 -0
  94. package/dist/time-period-selector.entry-febf55eb.cjs +1 -0
  95. package/dist/translate-icon.entry-10db7d36.js +15 -0
  96. package/dist/translate-icon.entry-8ce0a713.cjs +1 -0
  97. package/dist/warning-icon.entry-470e449d.js +15 -0
  98. package/dist/warning-icon.entry-b8217553.cjs +1 -0
  99. package/package.json +7 -4
  100. package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +0 -1
  101. package/dist/_commonjsHelpers-57e89916-af061c86.js +0 -19
  102. package/dist/add-circle-icon.entry-2ccb238b.cjs +0 -1
  103. package/dist/add-circle-icon.entry-35d6aa07.js +0 -15
  104. package/dist/calendar-check-icon_3.entry-903e2d82.js +0 -35
  105. package/dist/calendar-check-icon_3.entry-a16ce05e.cjs +0 -1
  106. package/dist/chevron-icon.entry-58366662.cjs +0 -1
  107. package/dist/chevron-icon.entry-5e11cef5.js +0 -15
  108. package/dist/close-icon_2.entry-011d9cf4.js +0 -25
  109. package/dist/close-icon_2.entry-83088b9a.cjs +0 -1
  110. package/dist/document-refresh-icon.entry-071ffd66.cjs +0 -1
  111. package/dist/duration-bddc4a13-05d3e3e2.cjs +0 -1
  112. package/dist/duration-bddc4a13-179ce826.js +0 -41
  113. package/dist/focus-visible-e8093c16-f380b705.cjs +0 -1
  114. package/dist/forward-icon_6.entry-3345af84.cjs +0 -3
  115. package/dist/index-3b6f5cd5.cjs +0 -30
  116. package/dist/index-630f4e87.js +0 -1498
  117. package/dist/index-b30d446a-cbbef925.cjs +0 -7
  118. package/dist/mailbox-store-19f0c6c9-a0cbfa97.cjs +0 -1
  119. package/dist/nylas-if-state_3.entry-504be976.cjs +0 -1
  120. package/dist/nylas-if-state_3.entry-e96d01f1.js +0 -291
  121. package/dist/nylas-list-folders.entry-866361cc.cjs +0 -1
  122. package/dist/nylas-list-threads.entry-04989295.cjs +0 -1
  123. package/dist/nylas-mailbox-pagination.entry-e0bd4aef.cjs +0 -1
  124. package/dist/nylas-mailbox-toolbar-button.entry-3d772b26.cjs +0 -1
  125. package/dist/nylas-open-hours-picker.entry-6bdc7c73.js +0 -186
  126. package/dist/nylas-open-hours-picker.entry-881b6db7.cjs +0 -1
  127. package/dist/nylas-provider.entry-8d9a844b.cjs +0 -1
  128. package/dist/nylas-scheduler.entry-7321e18f.js +0 -230
  129. package/dist/nylas-scheduler.entry-e82977fb.cjs +0 -1
  130. package/dist/nylas-threads-refresh.entry-477e68e4.cjs +0 -1
  131. package/dist/nylas-threads-search.entry-c5854641.cjs +0 -1
  132. package/dist/nylas-view-thread.entry-8b72cbdb.cjs +0 -1
  133. package/dist/play-icon_2.entry-ed5877e3.js +0 -25
  134. package/dist/play-icon_2.entry-f23ed6c1.cjs +0 -1
  135. package/dist/register-component-152c6ad2-0df7215b.cjs +0 -1
  136. package/dist/scheduler-store-7d48e682-0c0c3991.js +0 -289
  137. package/dist/scheduler-store-7d48e682-674705ef.cjs +0 -1
  138. package/dist/search-icon_3.entry-292138c3.js +0 -101
  139. package/dist/search-icon_3.entry-8e555357.cjs +0 -1
  140. package/dist/utils-5074a070-ce33ee6b.js +0 -119
  141. package/dist/utils-5074a070-d5ba6add.cjs +0 -2
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-33f74306.cjs"),v=require("./register-component-83e24412-445c6ad9.cjs"),B=require("./constants-f34b9c6e-b9f975af.cjs");require("react");require("react-dom");const Fe=".sc-add-circle-icon-h{display:flex}",Ae=Fe,xe=class{constructor(e){t.registerInstance(this,e),this.width="24",this.height="25"}render(){return t.h("svg",{key:"58ce81214aeed7ddc1ce5f76d674aba576422d48",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"2a47ed74601a5370f0300da06295a2b5969d7e5f",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=Ae;const Ne="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}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}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}",Re=Ne,ke=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:"3ac840e8b65854c2e4bdabe93b21b5bcda99e4db",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:"110df0711566be0df89f2e04aed008dcaf91e9f3"}))}};ke.style=Re;const Pe=".sc-calendar-info-icon-h{display:flex}",ze=Pe,we=class{constructor(e){t.registerInstance(this,e),this.width="20",this.height="20"}render(){return t.h("svg",{key:"4c290eae1d55ec9df96cbe6d9ba85d5d8b7ee102",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"a2a76a5d0183952d59f1d2f448dc7c460694e410",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"}))}};we.style=ze;const Be=".sc-calendar-patterns-icon-h{display:flex}",je=Be,_e=class{constructor(e){t.registerInstance(this,e),this.width="20",this.height="20"}render(){return t.h("svg",{key:"cf8071f578ad04793f5bd5b446dccaa1f6d4c1a3",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8e8a3c7d87bc41c6d6973a34863d05d996155c1d",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"}))}};_e.style=je;const We=".sc-flow-icon-h{display:flex}",Ue=We,Ce=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="12"}render(){return t.h("svg",{key:"e0f4da46b751754406e8b0551890a1bffb1100e4",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"21997cb261d91c8589c3e87a01036dc8f91a8d9b",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"}))}};Ce.style=Ue;const Ze=".sc-location-icon-h{display:flex}",Ye=Ze,Te=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="18"}render(){return t.h("svg",{key:"4888ed340800392ac9bb38eb4b868fca595db537",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"20cfaacf5cb828569e0b4ec6d2e83fe3b5264b32",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"}))}};Te.style=Ye;const Ke=".sc-location-off-icon-h{display:flex}",Ve=Ke,Ee=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="18"}render(){return t.h("svg",{key:"b61c56b0a012359592a4c2575f130ece6fd412c6",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"6be791c9a59fa3634f65881dfbca7adc5e3355d3",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"}))}};Ee.style=Ve;const qe=':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)}',Je=qe,Ie=class{constructor(e){t.registerInstance(this,e),this.selectedOptionsChanged=t.createEvent(this,"selectedOptionsChanged",7),this.name=void 0,this.label=void 0,this.options=[],this.availableOptions=this.options,this.isOpen=!1,this.ariaActivedescendant="",this.shouldFocusFirstOption=!1}componentDidRender(){t.debug("multi-select-dropdown","componentDidRender"),this.isOpen&&this.shouldFocusFirstOption&&(this.ariaActivedescendant=this.availableOptions[0].value,this.focusOption(0),this.shouldFocusFirstOption=!1)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}selectOption(e){this.availableOptions=this.availableOptions.map(a=>(a.value===e.value&&(a.selected=!e.selected),a));const n=this.availableOptions.filter(a=>a.selected).map(a=>a.value);this.selectedOptionsChanged.emit({value:n,name:this.name})}toggleDropdown(){this.isOpen=!this.isOpen,this.isOpen?this.shouldFocusFirstOption=!0:this.ariaActivedescendant=""}handleSelectButtonKeyDown(e){switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){const n=this.availableOptions,a=n.findIndex(i=>i.value===this.ariaActivedescendant);switch(e.key){case"ArrowDown":case"Tab":if(e.shiftKey){e.preventDefault();const o=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[o].value,this.focusOption(o)}else{e.preventDefault();const o=a+1<n.length?a+1:0;this.ariaActivedescendant=n[o].value,this.focusOption(o)}break;case"ArrowUp":e.preventDefault();const i=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[i].value,this.focusOption(i);break;case"Enter":e.preventDefault(),this.ariaActivedescendant&&this.selectOption(n[a]);break;case"Escape":this.isOpen=!1;break}}focusOption(e){var o;const n=this.availableOptions[e];if(!n)return;const a=n.value,i=(o=this.el.shadowRoot)==null?void 0:o.getElementById(a);i&&(i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}))}getSelectedOptions(){return this.availableOptions.filter(e=>e.selected)}renderOption(e){return t.h("li",{key:e.value,id:e.value,role:"option",tabindex:"0","aria-selected":e.selected?"true":"false",onClick:n=>{n.stopImmediatePropagation(),this.selectOption(e)},class:{selected:!!e.selected}},t.h("label",{htmlFor:e.value},t.h("input",{"aria-hidden":"true",id:e.value,type:"checkbox",checked:e.selected}),t.h("span",null,e.label)))}render(){var e,n;return t.h(t.Host,{key:"4ef13670e3dfbf55e023ac7532d93c48d21f3004"},t.h("div",{key:"8626f138f5be677421697067460ef76d0a7cc697",class:"dropdown",part:"msd_dropdown"},t.h("label",{key:"b723c488dac91c39f285aae1a3f7928844753bf1",class:"dropdown-label"},this.label,t.h("slot",{key:"5bdec320647a41de57671c75523a453ccb07af2a",name:"label-icon","aria-hidden":"true"})),t.h("button",{key:"f7d7cf144ac2fec93171b5ac6cd42be4be6b5c93",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:"021e59628b8da260b308819614297c177a666334",name:"select-icon","aria-hidden":"true"}),t.h("span",{key:"4a8c921538a23abe4c7efbeb176fb806587092c9",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:"fc771549d102fb27e33d128504d09fa6151154e9",class:this.isOpen?"open":"closed","aria-hidden":"true"},t.h("chevron-icon",{key:"bd8282695d11bcfb617da05a75d0a2335650f705",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)}};Ie.style=Je;const Ge=':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)}',Xe=Ge;var Qe=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},q=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const 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.selectedConfiguration=void 0,this.openHours=void 0,this.name="availability",this.defaultTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.schedule={SUN:[],MON:[{start:"09:00am",end:"05:00pm"}],TUE:[{start:"09:00am",end:"05:00pm"}],WED:[{start:"09:00am",end:"05:00pm"}],THU:[{start:"09:00am",end:"05:00pm"}],FRI:[{start:"09:00am",end:"05:00pm"}],SAT:[]},this.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.overlapDays={}}elementNameChangedHandler(e){t.debug("nylas-calendar-picker","elementNameChangedHandler",e),this.host.setAttribute("name",e)}configChangedHandler(e){var a,i,o;const n=(a=e==null?void 0:e.participants)==null?void 0:a.find(s=>s.is_organizer);n&&((i=n==null?void 0:n.availability)!=null&&i.open_hours)&&this.openHoursToSchedule((o=n==null?void 0:n.availability)==null?void 0:o.open_hours)}scheduleChanged(e,n){var a;if(e!==n){this.valueChanged.emit({value:{openHours:this.scheduleToOpenHours(e),timezone:this.timezone},name:this.name});let i={};if(Object.keys(e).forEach(o=>{const s=e[o];if(s.length>0){const r=this.getOverlaps(s);r.length>0&&(i[o]=r)}}),this.overlapDays=i,typeof this.internals.setFormValue!="function")return;if(Object.keys(i).length>0){const o=(a=this.host.shadowRoot)==null?void 0:a.getElementById(Object.keys(i)[0]);o&&this.internals.setValidity({customError:!0},"Overlapping time ranges found",o)}else this.internals.setValidity({customError:!1}),this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}}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({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}}connectedCallback(){t.debug("nylas-availability-picker","connectedCallback")}disconnectedCallback(){t.debug("nylas-availability-picker","disconnectedCallback")}componentWillLoad(){t.debug("nylas-availability-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-availability-picker","componentDidLoad"),this.openHours&&this.openHours.length>0&&this.openHoursToSchedule(this.openHours),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}getOverlaps(e){let n=e.map((i,o)=>({start:t.timeToMinutes(i.start),end:t.timeToMinutes(i.end),originalIndex:o}));n.sort((i,o)=>i.start-o.start);let a=[];for(let i=1;i<n.length;i++)n[i].start<n[i-1].end&&(a.includes(n[i].originalIndex)||a.push(n[i].originalIndex),a.includes(n[i-1].originalIndex)||a.push(n[i-1].originalIndex));return a.sort((i,o)=>i-o)}addTimeRange(e){const n=this.schedule[e],a=0,i=1425;if(n.length===0)this.schedule[e]=[{start:"09:00am",end:"05:00pm"}];else{const o=n.map(r=>({start:t.timeToMinutes(r.start),end:t.timeToMinutes(r.end)})).sort((r,l)=>r.start-l.start),s=o[o.length-1].end;if(s+60<=i)this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(s)),end:t.convertTo12HourFormat(t.minutesToTime(s+60))});else{let r=!1;if(o[0].start>a+60&&(this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(a)),end:t.convertTo12HourFormat(t.minutesToTime(a+60))}),r=!0),!r)for(let l=0;l<o.length-1;l++){const p=o[l].end;if(o[l+1].start-p>=60){this.schedule[e].push({start:t.convertTo12HourFormat(t.minutesToTime(p)),end:t.convertTo12HourFormat(t.minutesToTime(p+60))});break}}}}this.schedule[e].sort((o,s)=>t.timeToMinutes(o.start)-t.timeToMinutes(s.start)),this.schedule={...this.schedule}}removeTimeRange(e,n){this.schedule[e].splice(n,1),this.schedule={...this.schedule}}setTime(e){console.log("timeChanged",e);const{key:n,value:a}=e.detail;console.log({key:n,value:a});const[i,o]=n.split("_"),[s,r]=i.split(":");o==="start"?this.schedule[s][r].start=a:o==="end"&&(this.schedule[s][r].end=a),this.internals.setValidity({customError:!1}),this.schedule={...this.schedule}}setFormError(e){var s;const{key:n}=e.detail,[a,i]=n.split("_"),o=(s=this.host.shadowRoot)==null?void 0:s.getElementById(n);o&&this.internals.setValidity({customError:!0},`Invalid ${i} time`,o)}openHoursToSchedule(e){const n={SUN:[],MON:[],TUE:[],WED:[],THU:[],FRI:[],SAT:[]};e.forEach(a=>{a.days.forEach(i=>{const o=this.getDayKey(i),s=t.convertTo12HourFormat(a.start),r=t.convertTo12HourFormat(a.end),l={start:s,end:r};let p=!1;n[o]&&(p=n[o].some(c=>c.start===l.start&&c.end===l.end)),p||(n[o]?n[o].push(l):n[o]=[l])})}),this.timezone=this.defaultTimezone,this.schedule=n}getDayKey(e){return["SUN","MON","TUE","WED","THU","FRI","SAT"][e]}scheduleToOpenHours(e){const n=["SUN","MON","TUE","WED","THU","FRI","SAT"];let a=new Map;n.forEach((o,s)=>{e[o]&&e[o].forEach(r=>{const l=t.convertTo24HourFormat(r.start),p=t.convertTo24HourFormat(r.end),c=`${l}-${p}`;if(!a.has(c))a.set(c,{days:[s],start:l,end:p});else{let h=a.get(c);h&&(h.days.push(s),a.set(c,h))}})});let i=[];return a.forEach((o,s)=>{i.push({days:o.days,start:o.start,end:o.end,timezone:this.timezone})}),i}render(){const e=Object.keys(B.TIMEZONE_MAP).map(n=>({label:B.TIMEZONE_MAP[n],value:n}));return t.h(t.Host,{key:"ebdf308b5d2e38cbbe9c01915a8704cdc137b56f"},t.h("div",{key:"81557accec232465b3e86d5d0bdc1ae25aa8d6de",class:"nylas-availability-picker"},t.h("div",{key:"f5c2a5ef92fc59568672b536a9e604547561b8d6",class:"header",part:"nap__header"},t.h("h3",{key:"cbccae32847e68a5fe47f9f1f901e55546621c36"},"General availability"),t.h("p",{key:"34600ddd459b5d681574458f4f4acdb5ed26f7ac"},"Set your availability for scheduling meetings.")),t.h("div",{key:"65785316b94376cf4d79de9c875e39060226ca31",class:"content"},t.h("div",{key:"5c30c0bd916460f668dc3f881b4b01a1792e59b0",class:"select-timezone",part:"nap__select-timezone"},t.h("h4",{key:"0638898cae070a5d9eae8cd1dca83e39e5bb735f",class:"sub-header"},"Select timezone",t.h("span",{key:"d6746b3329ba92bf5c759895444d08924ba7769c",class:"icon"},t.h("tooltip-component",{key:"76dbc460bd91fa0f33a65c65ce092ad966ce6535"},t.h("info-icon",{key:"5778fb41c006172a125a4430186ad85d4cdbaf3c",slot:"tooltip-icon"}),t.h("span",{key:"76132f33db5dce9d7d7e5e111065ad9d1ec64d3f",slot:"tooltip-content"},"Select your timezone for displaying availability.")))),t.h("select-dropdown",{key:"9a0a3702b4868109ccc8f77e1143727de1e3f1fa",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:"ed0756090602c8a52ffdae493f09cfa7d61dd1e9",slot:"select-icon"},t.h("globe-icon",{key:"6e5e5234210ba8cc50ef57338a2f4e926521cb70",width:"20",height:"20"})))),t.h("div",{key:"eac4322bf2aa8f5ea84e4d7ccee293803c70b2ac",class:"availability",part:"nap__availability"},Object.keys(this.schedule).map(n=>{const a=n,i=this.schedule[n];return t.h("div",{class:"availability-day"},t.h("div",{class:"day",part:"nap__day"},t.h("input",{type:"checkbox",name:a,id:a,checked:i.length>0,onClick:()=>{i.length>0?this.schedule[a]=[]:this.schedule[a]=[{start:"09:00am",end:"05:00pm"}],this.schedule={...this.schedule}}}),t.h("label",{htmlFor:a,"aria-label":"Select day"},a)),t.h("div",{class:"time-ranges",part:"nap__time-ranges"},i.length?null:t.h("span",{class:"unavailable"},"Unavailable"),i.length>0&&i.map((o,s)=>{var p,c;const r=`${n}:${s}_start`,l=`${n}:${s}_end`;return t.h("div",{class:"time-range",part:"nap__time-range"},t.h("div",{class:"pickers"},t.h("nylas-time-window-picker",{id:r,hasError:(p=this.overlapDays[a])==null?void 0:p.includes(s),time:o.start,name:r,key:r,exportparts:"time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times"}),t.h("span",null," - "),t.h("nylas-time-window-picker",{id:l,hasError:(c=this.overlapDays[a])==null?void 0:c.includes(s),time:o.end,name:l,key:l,minimumStartTime:o.start,exportparts:"time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times"})),t.h("button",{onClick:()=>this.removeTimeRange(a,s)},t.h("close-icon",null)))}),t.h("p",{class:"error"},this.overlapDays[a]?"Overlapping time ranges":"")),t.h("div",null,i.length>0?t.h("button",{onClick:()=>this.addTimeRange(a),part:"nap__add-time-range"},t.h("add-circle-icon",null)):null))})))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["configChangedHandler"],schedule:["scheduleChanged"]}}};Qe([v.RegisterComponent({name:"nylas-availability-picker",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),fireRegisterEvent:!0}),q("design:type",Function),q("design:paramtypes",[]),q("design:returntype",void 0)],re.prototype,"render",null);re.style=Xe;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;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}',tt=et;var nt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},J=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const le=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.calendars=void 0,this.currentUser=void 0,this.name="booking-calendar",this.defaultBookingCalendar="",this.selectedCalendar=""}connectedCallback(){t.debug("nylas-booking-calendar-picker","connectedCallback")}disconnectedCallback(){t.debug("nylas-booking-calendar-picker","disconnectedCallback")}componentWillLoad(){t.debug("nylas-booking-calendar-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var e,n;t.debug("nylas-booking-calendar-picker","componentDidLoad"),this.defaultBookingCalendar=this.defaultBookingCalendar||((e=this.currentUser)==null?void 0:e.email)||"",typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.defaultBookingCalendar.toString(),"booking-calendar"),this.selectedCalendar=this.defaultBookingCalendar||((n=this.currentUser)==null?void 0:n.email)||""}componentWillUpdate(){t.debug("nylas-booking-calendar-picker","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-booking-calendar-picker","componentDidUpdate")}componentWillRender(){t.debug("nylas-booking-calendar-picker","componentWillRender")}componentDidRender(){t.debug("nylas-booking-calendar-picker","componentDidRender")}elementNameChangedHandler(e){t.debug("nylas-booking-calendar-picker","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedOptionChangedHandler(e){t.debug("nylas-booking-calendar-picker","selectedOptionChangedHandler",e.detail);const n=a=>{const{value:i}=a.detail;this.selectedCalendar=i,this.internals.setFormValue(i.toString(),this.name)};this.valueChanged.emit({value:e.detail.value,name:this.name,valueChanged:n})}render(){var n;const e=((n=this.calendars)==null?void 0:n.map(a=>({value:a.id,label:a.name})))??[];return t.h(t.Host,null,t.h("div",{class:"nylas-booking-calendar-picker",part:"nbcp"},t.h("div",{class:"header",part:"nbcp__header"},t.h("h3",null,"Calendar booking"),t.h("p",null,"Choose calendar where you’d like the event bookings to show up.")),e.length>0?t.h("div",{class:"nylas-booking-calendar-picker__dropdown"},t.h("span",{class:"label",part:"nbcp__input-label"},"Select a calendar to book meetings on",t.h("tooltip-component",null,t.h("info-icon",{slot:"tooltip-icon"}),t.h("span",{slot:"tooltip-content"},"Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available."))),t.h("select-dropdown",{name:"booking-calendar",options:e,withSearch:!1,exportparts:"sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content",defaultSelectedOption:e.find(a=>a.value==this.defaultBookingCalendar)??e[0]})):t.h("div",{class:"nylas-booking-calendar-picker__loading"},t.h("span",{class:"label"},"Select a calendar to book meetings on ",t.h("info-icon",null)),t.h("div",{class:"loading-button"},t.h("span",null,"Loading...")))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};nt([v.RegisterComponent({name:"nylas-booking-calendar-picker",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.currentUser","currentUser"]]),eventToProps:{valueChanged:async(e,n)=>{const{valueChanged:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),J("design:type",Function),J("design:paramtypes",[]),J("design:returntype",void 0)],le.prototype,"render",null);le.style=tt;const at=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',it=at;var st=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},G=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.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:i,name:o}=a.detail;o==="before-buffer-time"?this.selectedBeforeBufferTime=parseInt(i):o==="after-buffer-time"&&(this.selectedAfterBufferTime=parseInt(i));const s={before:this.selectedBeforeBufferTime,after:this.selectedAfterBufferTime};this.internals.setFormValue(JSON.stringify(s),"booking-calendar")};this.valueChanged.emit({...e.detail,valueChanged:n})}renderPreview(){const i=r=>{const l=Math.floor(r/30),p=r%30/30*10;return{fullSlots:l,partialFillHeight:p}},o=()=>{const{fullSlots:r,partialFillHeight:l}=i(this.selectedBeforeBufferTime);return Array.from({length:4},(p,c)=>{const h=this.selectedBeforeBufferTime>0&&c>4-r-1,m=this.selectedBeforeBufferTime>0&&c===4-r-1&&l>0;let y={};return h&&!m?y.backgroundColor="var(--nylas-base-100)":m&&(y.background=`linear-gradient(to top, var(--nylas-base-100) ${l}px, transparent 0)`),t.h("div",{key:c,class:`slot ${h?"active":""}`,style:{height:"10px",...y}})})},s=()=>{const{fullSlots:r,partialFillHeight:l}=i(this.selectedAfterBufferTime);return Array.from({length:4},(p,c)=>{const h=this.selectedAfterBufferTime>0&&c<r,m=c===r&&l>0;let y={};return h&&!m?y.backgroundColor="var(--nylas-base-100)":m&&(y.background=`linear-gradient(to bottom, var(--nylas-base-100) ${l}px, transparent 0)`),t.h("div",{key:c,class:`slot ${h?"active":""}`,style:{height:"10px",...y}})})};return t.h("div",{class:"preview-container"},o(),t.h("div",{class:"event-slot",style:{height:"20px"}}),s())}render(){const e=Array.from({length:24},(n,a)=>{const i=(a+1)*5;return{label:i.toString(),value:i}});return t.h(t.Host,null,t.h("div",{class:"nylas-buffer-time",part:"nbt"},t.h("div",{class:"header",part:"nbt__header"},t.h("h3",null,"Buffer time"),t.h("p",null,"Add buffer time before and after the event.")),t.h("div",{class:"nylas-buffer-time__body",part:"nbt__body"},t.h("div",{class:"nylas-buffer-time__dropdown"},t.h("div",{class:"nylas-buffer-time__row"},t.h("label",null,"Before the event"),t.h("div",{class:"dropdown-container"},t.h("select-dropdown",{id:"before-buffer-time",withSearch:!1,name:"before-buffer-time",exportparts:"sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before",options:e,defaultSelectedOption:e.find(n=>n.value==this.selectedBeforeBufferTime)??e[0]}),t.h("span",null,"mins"))),t.h("div",{class:"nylas-buffer-time__row"},t.h("label",null,"After the event"),t.h("div",{class:"dropdown-container"},t.h("select-dropdown",{id:"after-buffer-time",withSearch:!1,name:"after-buffer-time",exportparts:"sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after",options:e,defaultSelectedOption:e.find(n=>n.value==this.selectedAfterBufferTime)??e[0]}),t.h("span",null,"mins")))),t.h("div",{class:"nylas-buffer-time__preview",part:"nbt__preview"},t.h("h4",null,"PREVIEW"),this.renderPreview()))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};st([v.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)],de.prototype,"render",null);de.style=it;const ot=':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}',rt=ot;var lt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},X=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const 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.calendars=void 0,this.currentUser=void 0,this.name="calendar",this.defaultSelectedCalendars=[],this.selectedCalendars=[]}elementNameChangedHandler(e){t.debug("nylas-calendar-picker","elementNameChangedHandler",e),this.host.setAttribute("name",e)}connectedCallback(){t.debug("nylas-calendar-picker","connectedCallback")}disconnectedCallback(){t.debug("nylas-calendar-picker","disconnectedCallback")}componentWillLoad(){t.debug("nylas-calendar-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-calendar-picker","componentDidLoad"),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.defaultSelectedCalendars.toString(),"calendar")}componentWillUpdate(){t.debug("nylas-calendar-picker","componentWillUpdate")}componentDidUpdate(){t.debug("nylas-calendar-picker","componentDidUpdate")}componentWillRender(){t.debug("nylas-calendar-picker","componentWillRender")}componentDidRender(){t.debug("nylas-calendar-picker","componentDidRender")}selectedOptionsChangedHandler(e){t.debug("nylas-calendar-picker","selectedOptionChangedHandler",e.detail);const n=a=>{const{value:i}=a.detail;this.selectedCalendars=[...i],this.internals.setFormValue(i.toString(),"calendar")};this.valueChanged.emit({...e.detail,name:this.name,valueChangedHandler:n})}render(){var n;const e=((n=this.calendars)==null?void 0:n.map(a=>{var i,o,s,r;return{value:a.id,label:a.name,selected:((i=this.defaultSelectedCalendars)==null?void 0:i.includes(a.id))||((o=this.defaultSelectedCalendars)!=null&&o.includes("primary")||((s=this.defaultSelectedCalendars)==null?void 0:s.length)===0?a.id===((r=this.currentUser)==null?void 0:r.email):!1)}}))??[];return t.h(t.Host,null,t.h("div",{class:"nylas-calendar-picker",part:"ncp"},t.h("div",{class:"header",part:"ncp__header"},t.h("h3",null,"Calendar availability"),t.h("p",null,"Select calendars that you’d like to use for checking your availability.")),e.length>0?t.h("div",{class:"nylas-calendar-picker__dropdown"},t.h("multi-select-dropdown",{name:"calendar",label:"Select calendars that will be checked for availability",options:e,exportparts:"msd__dropdown: ncp__dropdown, msd__dropdown-button: ncp__dropdown-button, msd__dropdown-content: ncp__dropdown-content"},t.h("span",{slot:"label-icon"},t.h("tooltip-component",null,t.h("info-icon",{slot:"tooltip-icon"}),t.h("span",{slot:"tooltip-content"},"Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available. The default is your primary calendar if none are selected."))))):t.h("div",{class:"nylas-calendar-picker__loading"},t.h("span",{class:"label"},"Select calendars that will be checked for availability ",t.h("info-icon",null)),t.h("div",{class:"loading-button"},t.h("span",null,"Loading...")))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};lt([v.RegisterComponent({name:"nylas-calendar-picker",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.currentUser","currentUser"]]),eventToProps:{valueChanged:async(e,n)=>{const{valueChangedHandler:a}=e.detail;a&&a(e)}},fireRegisterEvent:!0}),X("design:type",Function),X("design:paramtypes",[]),X("design:returntype",void 0)],ce.prototype,"render",null);ce.style=rt;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-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}',ct=dt;var ft=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},Q=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const fe=class{constructor(e){var n,a;t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.eventDescription=void 0,this.name="description",this.description=this.eventDescription||((a=(n=this.selectedConfiguration)==null?void 0:n.event_booking)==null?void 0:a.description)||""}elementNameChangedHandler(e){t.debug("nylas-event-description","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e,n){var a,i;t.debug("nylas-custom-booking-flow","selectedConfigurationChangedHandler",e,n),(a=e==null?void 0:e.event_booking)!=null&&a.description&&(this.description=(i=e==null?void 0:e.event_booking)==null?void 0:i.description)}connectedCallback(){t.debug("nylas-event-description","connectedCallback")}componentWillLoad(){t.debug("nylas-event-description","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-event-description","componentDidLoad")}disconnectedCallback(){t.debug("nylas-event-description","disconnectedCallback")}handleChange(e){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:"0a1db83797453d80a3fe368c46c7c0419751ae96"},t.h("div",{key:"cb041dfd5f60a1d6969f9dd3b66bf07a30ead95d",class:"nylas-event-description",part:"nedesc"},t.h("label",{key:"f038f2c325d054408d1c4ba2ec046d811abc1b28",htmlFor:"description"},"Event description",t.h("span",{key:"b458c9fc9a283455065612b23888cf4257f7d163",class:"label-icon"},t.h("tooltip-component",{key:"556fe837419cb336758136e93b91485a7900ed43"},t.h("info-icon",{key:"ac64baf6ce1f98d924a30f5fda5457f2553201a6",slot:"tooltip-icon"}),t.h("span",{key:"f7c463ba89a295e3791d1c7eadc0050b925eeeb4",slot:"tooltip-content"},"Provide any additional details for your event.")))),t.h("textarea",{key:"254cca296ff7e4b92626348945834a97d0d593fd",id:"description",part:"nedesc__textarea",name:"description",value:this.description,maxlength:"8192",onInput:e=>this.handleChange(e)})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"]}}};ft([v.RegisterComponent({name:"nylas-event-description",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),Q("design:type",Function),Q("design:paramtypes",[]),Q("design:returntype",void 0)],fe.prototype,"render",null);fe.style=ct;const ht=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper 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}',pt=ht;var ut=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ee=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const 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.selectedConfiguration=void 0,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)}selectedConfigurationChangedHandler(e){var a;const n=(a=e==null?void 0:e.availability)==null?void 0:a.duration_minutes;n&&(this.duration=n>=60?n/60:n,this.durationMinutes=n??5,this.durationIncrement=n>=60?60:1)}durationMinutesChangedHandler(e,n){t.debug("nylas-event-duration","durationMinutesChangedHandler",e),e!==n&&this.valueChanged.emit({value:e.toString(),name:this.name})}connectedCallback(){t.debug("nylas-event-duration","connectedCallback")}componentWillLoad(){t.debug("nylas-event-duration","componentWillLoad"),this.host.setAttribute("name",this.name)}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.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:"222965e76af408c0b06183e8e888b73578adb158"},t.h("div",{key:"decd15dbfd386cebc4efc880a0a8fb7fc8fc4a1a",class:"nylas-event-duration",part:"ned"},t.h("label",{key:"655d4bd8aad28138573516d1a409ff4ad7f90527",htmlFor:"duration"},"Event duration",t.h("span",{key:"f53fc2692fa1b4d3265e946ddf313a8e432897d8",class:"required"},"*"),t.h("span",{key:"04f0110989f72e20a836ec8552801b87fc8cc6f8",class:"label-icon"},t.h("tooltip-component",{key:"cead8ac1aa4ca82db690a38306a8987e3b5759e0"},t.h("info-icon",{key:"0105ced6a6b7227b7ac39f68869e6f9fed5fc386",slot:"tooltip-icon"}),t.h("span",{key:"3a1a73f76723e6f0ba4b4c45a08a839f26b8c25d",slot:"tooltip-content"},"Set the duration of your event.")))),t.h("div",{key:"7c85aebc13daa31d440d6b7ec4f2104f64ac4407",class:"nylas-event-duration__wrapper"},t.h("input",{key:"255e4574db650850cf3396509be0dfdac65175bb",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:"a19d552e5e537d9ebeffa1890f2ccafa61a1f761",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"],selectedConfiguration:["selectedConfigurationChangedHandler"],durationMinutes:["durationMinutesChangedHandler"]}}};ut([v.RegisterComponent({name:"nylas-event-duration",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),ee("design:type",Function),ee("design:paramtypes",[]),ee("design:returntype",void 0)],he.prototype,"render",null);he.style=pt;const bt=':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}',mt=bt;var yt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},te=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const pe=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:"e606a689e2b20dcddcbdbf42c44933953cb0c9c7"},t.h("nylas-form-card",{key:"f3827f8c8756d131ea0eeca39d8dcae783b58629"},t.h("h1",{key:"6deb1da623b3c6ede66653201476647d30b8f7e5",slot:"header-title",class:"nylas-event-info__title"},"Event information"),t.h("h3",{key:"f027a8e56e59fba0e8ec3e4bfcbfda6419c5a6dc",slot:"header-subtitle",class:"nylas-event-info__subtitle"},"Enter all event information."),t.h("div",{key:"0124599b210dc4e9395cdc75dd964132e98736b9",slot:"content",class:"nylas-event-info__content"},t.h("slot",{key:"a227128a7e6f7f8b8c52bd0bd24ce672979fef30",name:"inputs"}))))}static get formAssociated(){return!0}};yt([v.RegisterComponent({name:"nylas-event-info",eventToProps:{},fireRegisterEvent:!0}),te("design:type",Function),te("design:paramtypes",[]),te("design:returntype",void 0)],pe.prototype,"render",null);pe.style=mt;const gt=':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}',vt=gt;var xt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ne=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const 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-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:"56a1396f87f4d81f1a3912ec810e23a9dbed965b"},t.h("nylas-form-card",{key:"2007e2fe058e39bb8c276d2995b4b8075d9ed82f"},t.h("h1",{key:"e57bc40b4b369d64cdb2b6c97009dea3f141716f",slot:"header-title",class:"nylas-event-limits__title"},"Set event limits"),t.h("h3",{key:"beb61ca97cfd3dca960e78e5f64abca4ace7777b",slot:"header-subtitle",class:"nylas-event-limits__subtitle"},"Customize event limits for the event."),t.h("div",{key:"3912501d3e927fcbc6e8663f9149c66ce54fbd0e",slot:"content",class:"nylas-event-limits__content"},t.h("slot",{key:"a0902c2edc5ef540547452d5f1448ba26547af17",name:"inputs"}))))}static get formAssociated(){return!0}};xt([v.RegisterComponent({name:"nylas-event-limits",eventToProps:{},fireRegisterEvent:!0}),ne("design:type",Function),ne("design:paramtypes",[]),ne("design:returntype",void 0)],ue.prototype,"render",null);ue.style=vt;const kt=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}',wt=kt;var _t=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ae=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const be=class{constructor(e){var n,a;t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.eventTitle=(a=(n=this.selectedConfiguration)==null?void 0:n.event_booking)==null?void 0:a.title,this.name="title",this.showTokens=!1,this.availableTokens=B.EVENT_TITLE_TOKENS.map(i=>({label:i.token,value:i.value,labelHTML:i})),this.filteredTokens=this.availableTokens,this.ariaActivedescendant="",this.currentWord={$value:"",fullText:"",index:-1,focusOffset:-1},this.validationError=""}elementNameChangedHandler(e){t.debug("nylas-event-title","elementNameChangedHandler",e),this.host.setAttribute("name",e)}ariaActivedescendantChangedHandler(e){var n,a;if(t.debug("nylas-event-title","ariaActivedescendantChangedHandler",e),e!==""){const i=(n=this.host.shadowRoot)==null?void 0:n.getElementById(e);i==null||i.classList.add("active")}else{const i=(a=this.host.shadowRoot)==null?void 0:a.querySelectorAll(".token-options li.active");i==null||i.forEach(o=>o.classList.remove("active"))}}configChangedHandler(e){var a;const n=(a=e==null?void 0:e.event_booking)==null?void 0:a.title;n&&this.updateEventTitleFromProp(n)}connectedCallback(){t.debug("nylas-event-title","connectedCallback")}componentWillLoad(){t.debug("nylas-event-title","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){t.debug("nylas-event-title","componentDidLoad"),this.updateEventTitleFromProp(this.eventTitle||"")}disconnectedCallback(){t.debug("nylas-event-title","disconnectedCallback")}formSubmittedHandler(e){var n,a;t.debug("nylas-event-title","formSubmittedHandler",e),(a=(n=this.internals)==null?void 0:n.validity)!=null&&a.valid?this.validationError="":this.validationError="Event title is required"}updateEventTitleFromProp(e){var n,a;t.debug("nylas-event-title","eventTitleChangedHandler",e),this.titleRef&&(this.titleRef.innerHTML=this.highlightTokens(e),this.titleRef.focus(),typeof this.internals.setValidity=="function"&&(e===""?(n=this.internals)==null||n.setValidity({customError:!0},"Event title is required",this.titleRef):(a=this.internals)==null||a.setValidity({customError:!1})))}highlightTokens(e){let n=e;return B.EVENT_TITLE_TOKENS.forEach(a=>{const i=a.value,o=new RegExp(`(\\${i})(?!\\w)`,"g");n=n.replace(o,'<span class="highlighted-tag">$1</span>')}),n}getCurrentSelectionForBrowser(){var i,o,s;const e=(r,l,p,c)=>{const h=r.replace(/[\u200B-\u200D\uFEFF]/g,""),m=h.lastIndexOf("$"),y=h.substring(m).split(" ")[0];return{focusOffset:l,dollarIndex:m,lastWord:y,currentText:h,node:p,allSelected:c}},n=r=>{var l,p;return r.anchorOffset===0&&r.focusOffset===((p=(l=r.focusNode)==null?void 0:l.nodeValue)==null?void 0:p.length)};switch(t.getBrowser()){case"Chrome":const r=(i=this.host.shadowRoot)==null?void 0:i.getSelection(),l=r==null?void 0:r.focusNode,p=(l==null?void 0:l.nodeValue)||"",c=r&&n(r);return e(p,(r==null?void 0:r.focusOffset)||-1,l,c);case"Firefox":const h=document.getSelection(),m=((o=h==null?void 0:h.anchorNode)==null?void 0:o.nodeValue)||"",y=h&&n(h);return e(m,(h==null?void 0:h.focusOffset)||-1,h==null?void 0:h.anchorNode,y);case"Safari":const w=window.getSelection(),g=w==null?void 0:w.getComposedRanges(this.host.shadowRoot)[0],d=((s=g==null?void 0:g.startContainer)==null?void 0:s.nodeValue)||"",f=w&&n(w);return e(d,(g==null?void 0:g.endOffset)||-1,g==null?void 0:g.startContainer,f);default:return console.warn("Browser not supported"),null}}handleChange(e){const n=e.target.textContent||"",a=this.getCurrentSelectionForBrowser();if(!a){this.updateEventTitle(n),this.resetDropdown();return}const{focusOffset:i,dollarIndex:o,lastWord:s,currentText:r}=a;if(o===-1||i<o){this.updateEventTitle(n),this.resetDropdown();return}s.startsWith("$")?(this.showTokens=!0,this.currentWord={$value:s,fullText:r,index:o,focusOffset:i},this.populateSuggestionsDropdown(s)):this.resetDropdown(),this.updateEventTitle(n)}handleInputKeyDown(e){var a,i,o,s;const n=this.getCurrentSelectionForBrowser();if(n!=null&&n.allSelected&&!t.isNonPrintableKey(e)&&(this.titleRef.innerHTML=""),e.key==="Enter"){e.preventDefault();const r=(a=this.host.shadowRoot)==null?void 0:a.getElementById(this.ariaActivedescendant);r&&(r.click(),this.ariaActivedescendant="")}else if(e.key==="ArrowDown"){e.preventDefault();const r=(i=this.host.shadowRoot)==null?void 0:i.getElementById(this.ariaActivedescendant);if(r){const l=r.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 r=(o=this.host.shadowRoot)==null?void 0:o.getElementById(this.ariaActivedescendant);if(r){const l=r.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 e.key==="Escape"?(e.preventDefault(),this.resetDropdown()):(e.key==="Backspace"||e.key==="Delete")&&(n!=null&&n.currentText.startsWith("${")&&(s=n==null?void 0:n.node)!=null&&s.parentNode&&n.node.parentNode.removeChild(n.node),(this.titleRef.textContent===""||(n==null?void 0:n.currentText)===""||n!=null&&n.allSelected)&&(this.titleRef.innerHTML=""))}selectOption(e,n){var d;e.preventDefault();const a=this.currentWord.fullText,i=this.currentWord.$value;let o=this.titleRef.firstChild,s=null;for(;o;){if(o.nodeType===3){const f=((d=o.textContent)==null?void 0:d.replace(/[\u200B-\u200D\uFEFF]/g,""))||"",u=a.replace(/[\u200B-\u200D\uFEFF]/g,"");if(f.includes(u)){s=o;break}}o=o.nextSibling}if(!s)return;const r=s.textContent||"",l=r.indexOf(i),p=r.substring(0,l),c=r.substring(l+i.length),h=document.createTextNode(p),m=document.createRange(),y=document.createElement("span");y.classList.add("highlighted-tag"),y.textContent=`${n.value}`;const w=document.createTextNode(c);if(c!=="")s.replaceWith(h,y,w),m.setStart(w,1);else{const f=document.createTextNode("​");s.replaceWith(h,y,f),m.setStart(f,1)}this.resetDropdown(),this.titleRef.focus();const g=window.getSelection();m.collapse(!0),g==null||g.removeAllRanges(),g==null||g.addRange(m),this.updateEventTitle(this.titleRef.textContent||"")}populateSuggestionsDropdown(e=""){this.filteredTokens=this.availableTokens.filter(n=>n.label.startsWith(e.toString())||n.value.startsWith(e.toString())),this.filteredTokens.length>0&&(this.ariaActivedescendant=this.filteredTokens[0].label)}updateEventTitle(e){var a,i,o;const n=e.replace(/ +/g," ");n===""?((a=this.internals)==null||a.setValidity({customError:!0},"Event title is required",this.titleRef),this.validationError="Event title is required"):((i=this.internals)==null||i.setValidity({customError:!1}),this.validationError=""),(o=this.internals)==null||o.setFormValue(n,this.name),this.valueChanged.emit({value:n,name:this.name})}resetDropdown(){this.showTokens=!1,this.ariaActivedescendant=""}getLabelHTML(e){return t.h("div",{class:"token-label"},t.h("span",{class:"token"},e.token),t.h("span",{class:"description"},e.description))}render(){var e;return t.h(t.Host,{key:"28ef0be3f64aafdaabb6bed562f5c89b92f2510e"},t.h("div",{key:"42cc820bd4ca2343ebe09108a7ce5fca37c02165",class:"nylas-event-title",part:"net"},t.h("label",{key:"748c85b9ef6a656b43137864c49282abfa0b78b9",htmlFor:"title"},"Event title",t.h("span",{key:"29e8a26acfc6795ee511457c1f052bcc831757c3",class:"required"},"*"),t.h("span",{key:"a555e59986cb55543c108d82c9e7120e8f78cd2a",class:"label-icon"},t.h("tooltip-component",{key:"29e6f432f02f6cb10bee3a3c61374688a23c9a9a"},t.h("info-icon",{key:"af9821938dc7f3175d8fdfb3426631111242483b",slot:"tooltip-icon"}),t.h("span",{key:"b1027c6b32fab643f94c4233f3c60e1462f69945",slot:"tooltip-content"},"Enter a title for your event.")))),t.h("div",{key:"387e621aa40cef2857b00eae8da13be376296178",class:{title:!0,error:this.validationError!==""},part:"net__title",ref:n=>this.titleRef=n,contentEditable:"true",onInput:n=>this.handleChange(n),onKeyDown:n=>this.handleInputKeyDown(n)}),this.showTokens&&((e=this.filteredTokens)==null?void 0:e.length)>0&&t.h("div",{class:"token-options",part:"net__dropdown-content"},t.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant},this.filteredTokens.map(n=>t.h("li",{tabindex:"0",key:n.label,id:n.label,class:{active:this.ariaActivedescendant===n.label},onClick:a=>this.selectOption(a,n),role:"option"},this.getLabelHTML(n.labelHTML))))),t.h("span",{key:"c1a3f0602920e0799322aef007e738ec3fd2c478",class:"help-text"},"Create a dynamic templated event title by typing $. Learn more"),this.validationError!=""&&t.h("span",{class:"error-message"},this.validationError)))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],ariaActivedescendant:["ariaActivedescendantChangedHandler"],selectedConfiguration:["configChangedHandler"]}}};_t([v.RegisterComponent({name:"nylas-event-title",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),ae("design:type",Function),ae("design:paramtypes",[]),ae("design:returntype",void 0)],be.prototype,"render",null);be.style=wt;const Ct=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}',Tt=Ct;var Et=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},ie=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const me=class{constructor(e){t.registerInstance(this,e),this.valueChanged=t.createEvent(this,"valueChanged",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.availableDaysInFuture=void 0,this.name="limit-future-bookings",this.selectedNumber=1,this.selectedPeriod="day"}elementNameChangedHandler(e){t.debug("nylas-limit-future-bookings","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var a;const n=(a=e==null?void 0:e.scheduler)==null?void 0:a.available_days_in_future;n&&this.updateNumberAndPeriodFromDays(n)}availableDaysInFutureChanged(e){this.updateNumberAndPeriodFromDays(e)}connectedCallback(){t.debug("nylas-limit-future-bookings","connectedCallback")}componentWillLoad(){t.debug("nylas-limit-future-bookings","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var e;t.debug("nylas-limit-future-bookings","componentDidLoad"),this.availableDaysInFutureChanged(this.availableDaysInFuture??1),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(((e=this.availableDaysInFuture)==null?void 0:e.toString())??"1",this.name)}disconnectedCallback(){t.debug("nylas-limit-future-bookings","disconnectedCallback")}timePeriodChangedHandler(e){const{number:n,period:a}=e.detail;let i;a==="day"?i=n:a==="week"?i=n*7:i=n*30,this.valueChanged.emit({value:i,name:"availableDaysInFuture"}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(i.toString(),this.name)}updateNumberAndPeriodFromDays(e){let n,a;e>=30&&e%30===0?(n=e/30,a="month"):e>=7&&e%7===0?(n=e/7,a="week"):(n=e,a="day"),this.selectedNumber=n,this.selectedPeriod=a}render(){return t.h(t.Host,{key:"633f17f3c8a36aaf1b48653a471fce7a67c2e6bc"},t.h("div",{key:"5685213b7d7d44a54cecda52d553fc49f0b45cf6",class:"nylas-limit-future-bookings",part:"nlfb"},t.h("label",{key:"9c3f51639f92585b04cb6c358783ddb240fcd217"},"Limit future bookings",t.h("span",{key:"f234e3ff93652121e54d1aa77cbd77c2e93252c5",class:"label-icon"},t.h("tooltip-component",{key:"4a1a059e553f52b856b220c37a9721ed8d890171"},t.h("info-icon",{key:"f6daa7aae8aefe95871744a22d71a1bb743a797c",slot:"tooltip-icon"}),t.h("span",{key:"ef99e06e91e3f76e640d8209d0f9ad1831c9fdeb",slot:"tooltip-content"},"Set a limit on how far in the future bookings can be made.")))),t.h("time-period-selector",{key:"02215f1ea27a251917bf8ad3cb10f9d36bd870ba",id:"limit-future-bookings",timePeriods:["day","week","month"],exportparts:"tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content",defaultSelectedNumber:this.selectedNumber,defaultSelectedPeriod:this.selectedPeriod})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};Et([v.RegisterComponent({name:"nylas-limit-future-bookings",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),ie("design:type",Function),ie("design:paramtypes",[]),ie("design:returntype",void 0)],me.prototype,"render",null);me.style=Tt;const It=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',Ot=It;var St=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},se=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const 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.name="location",this.selectedConfiguration=void 0,this.eventLocation=void 0,this.location=this.eventLocation??"",this.selectedLocationOption=this.eventLocation?"custom":"none"}elementNameChangedHandler(e){t.debug("nylas-location-component","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e,n){var i;t.debug("nylas-custom-booking-flow","selectedConfigurationChangedHandler",e,n);const a=(i=e==null?void 0:e.event_booking)==null?void 0:i.location;a&&(this.selectedLocationOption=a?"custom":"none",this.location=a)}eventLocationChangedHandler(e,n){t.debug("nylas-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:"575c799ee8e373f1fa305166312f3192cbb1195e"}),custom:t.h("location-icon",{key:"3e9a108a256313289846487fdb5a2c8f93bf06ea"})};return t.h(t.Host,{key:"8038cd624df0d63608bb23d0b52ee73d62939ba6"},t.h("div",{key:"3047dfeacda102f18f0413213a86676eb1c5f901",class:"nylas-event-location",part:"nel"},t.h("label",{key:"8cbf08ad544cc6dbfa21f8eca510fe7700756cbb",htmlFor:"location"},"Location type",t.h("span",{key:"b806d2ab1087c5d82674d2ba1f697ab650dfff64",class:"label-icon"},t.h("tooltip-component",{key:"3a67a7eb1eed2315d46d6e81fe62314bf92226d7"},t.h("info-icon",{key:"4e787698acb0d0d272c13a226747c1252741cbe9",slot:"tooltip-icon"}),t.h("span",{key:"85eb8db37cef3482e59124b21c968dfe4ea38fec",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:"5970b85d96f9430504846d7ff66a259b639a17d7",class:"location-input"},t.h("select-dropdown",{key:"b848b8a01563c1640a0552c385ed268e15431453",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:"c3bf4e65c37357b12892f333a3a2a22803400e46",slot:"select-icon"},n[this.selectedLocationOption])),this.selectedLocationOption==="custom"&&t.h("input",{type:"text",part:"nel__location",id:"location",name:"location",maxlength:"1024",value:this.location,onInput:a=>this.handleChange(a)}))))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],eventLocation:["eventLocationChangedHandler"]}}};St([v.RegisterComponent({name:"nylas-location-component",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),se("design:type",Function),se("design:paramtypes",[]),se("design:returntype",void 0)],ye.prototype,"render",null);ye.style=Ot;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-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}',Ht=Dt;var Lt=function(e,n,a,i){var o=arguments.length,s=o<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,n,a,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(s=(o<3?r(s):o>3?r(n,a,s):r(n,a))||s);return o>3&&s&&Object.defineProperty(n,a,s),s},oe=function(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)};const 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.selectedConfiguration=void 0,this.minCancellationNotice=void 0,this.name="min-cancellation-notice",this.selectedNumber=1,this.selectedPeriod="day"}elementNameChangedHandler(e){t.debug("nylas-min-cancellation-notice","elementNameChangedHandler",e),this.host.setAttribute("name",e)}selectedConfigurationChangedHandler(e){var a;const n=(a=e==null?void 0:e.scheduler)==null?void 0:a.min_cancellation_notice;n&&this.updateNumberAndPeriodFromMinutes(n)}availableDaysInFutureChanged(e){this.updateNumberAndPeriodFromMinutes(e)}connectedCallback(){t.debug("nylas-min-cancellation-notice","connectedCallback")}componentWillLoad(){t.debug("nylas-min-cancellation-notice","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var e;t.debug("nylas-min-cancellation-notice","componentDidLoad"),this.availableDaysInFutureChanged(this.minCancellationNotice??1),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(((e=this.minCancellationNotice)==null?void 0:e.toString())??"1",this.name)}disconnectedCallback(){t.debug("nylas-min-cancellation-notice","disconnectedCallback")}timePeriodChangedHandler(e){const{number:n,period:a}=e.detail;let i;const o=60,s=o*24,r=s*7,l=s*30;a==="minute"?i=n:a==="hour"?i=n*o:a==="day"?i=n*s:a==="week"?i=n*r:a==="month"?i=n*l:i=0,this.valueChanged.emit({value:i,name:"minCancellationNotice"}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(i.toString(),this.name)}updateNumberAndPeriodFromMinutes(e){let s,r;e>=43200?(s=Math.floor(e/43200),r="month"):e>=10080?(s=Math.floor(e/10080),r="week"):e>=1440?(s=Math.floor(e/1440),r="day"):e>=60?(s=Math.floor(e/60),r="hour"):(s=e,r="minute"),this.selectedNumber=s,this.selectedPeriod=r}render(){return t.h(t.Host,{key:"473f79ba357832c63d5af02f6123d5d8a4bbee61"},t.h("div",{key:"657c38462f01c79f7e830e7758859398e776ccdb",class:"nylas-min-cancellation-notice",part:"nmcn"},t.h("label",{key:"9a29a3b348cf93c9de3b7f28d05c319d64ed37c6"},"Minimum cancellation notice",t.h("span",{key:"a618468ede4da9c28ec941ab4b76551cff980d8a",class:"label-icon"},t.h("tooltip-component",{key:"a44b3a7327721e17884840a9124f7c27249f050c"},t.h("info-icon",{key:"177c2db8b4f868e23f5e59a08a335a1bbf4e5316",slot:"tooltip-icon"}),t.h("span",{key:"843ca3f89854fb398717e8fab9c54b124ef93a46",slot:"tooltip-content"},"Set the minimum amount of time required to cancel an event.")))),t.h("time-period-selector",{key:"74b22ae97313a1a096d1c5ef6c791507e98da099",id:"min-cancellation-notice",exportparts:"tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content",timePeriods:["minute","hour","day","week"],defaultSelectedNumber:this.selectedNumber,defaultSelectedPeriod:this.selectedPeriod})))}static get formAssociated(){return!0}get host(){return t.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};Lt([v.RegisterComponent({name:"nylas-min-cancellation-notice",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),oe("design:type",Function),oe("design:paramtypes",[]),oe("design:returntype",void 0)],ge.prototype,"render",null);ge.style=Ht;var Oe={exports:{}};(function(e,n){(function(a,i){e.exports=i()})(t.commonjsGlobal,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,l={},p=function(d){return(d=+d)+(d>68?1900:2e3)},c=function(d){return function(f){this[d]=+f}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(f){if(!f||f==="Z")return 0;var u=f.match(/([+-]|\d\d)/g),b=60*u[1]+(+u[2]||0);return b===0?0:u[0]==="+"?-b:b}(d)}],m=function(d){var f=l[d];return f&&(f.indexOf?f:f.s.concat(f.f))},y=function(d,f){var u,b=l.meridiem;if(b){for(var C=1;C<=24;C+=1)if(d.indexOf(b(C,0,f))>-1){u=C>12;break}}else u=d===(f?"pm":"PM");return u},w={A:[r,function(d){this.afternoon=y(d,!1)}],a:[r,function(d){this.afternoon=y(d,!0)}],S:[/\d/,function(d){this.milliseconds=100*+d}],SS:[o,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[o,c("day")],Do:[r,function(d){var f=l.ordinal,u=d.match(/\d+/);if(this.day=u[0],f)for(var b=1;b<=31;b+=1)f(b).replace(/\[|\]/g,"")===d&&(this.day=b)}],M:[s,c("month")],MM:[o,c("month")],MMM:[r,function(d){var f=m("months"),u=(m("monthsShort")||f.map(function(b){return b.slice(0,3)})).indexOf(d)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[r,function(d){var f=m("months").indexOf(d)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(d){this.year=p(d)}],YYYY:[/\d{4}/,c("year")],Z:h,ZZ:h};function g(d){var f,u;f=d,u=l&&l.formats;for(var b=(d=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,O,_){var x=_&&_.toUpperCase();return O||u[_]||a[_]||u[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,D,$){return D||$.slice(1)})})).match(i),C=b.length,T=0;T<C;T+=1){var N=b[T],H=w[N],E=H&&H[0],I=H&&H[1];b[T]=I?{regex:E,parser:I}:N.replace(/^\[|\]$/g,"")}return function(L){for(var O={},_=0,x=0;_<C;_+=1){var S=b[_];if(typeof S=="string")x+=S.length;else{var D=S.regex,$=S.parser,R=L.slice(x),F=D.exec(R)[0];$.call(O,F),L=L.replace(F,"")}}return function(M){var k=M.afternoon;if(k!==void 0){var A=M.hours;k?A<12&&(M.hours+=12):A===12&&(M.hours=0),delete M.afternoon}}(O),O}}return function(d,f,u){u.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(p=d.parseTwoDigitYear);var b=f.prototype,C=b.parse;b.parse=function(T){var N=T.date,H=T.utc,E=T.args;this.$u=H;var I=E[1];if(typeof I=="string"){var L=E[2]===!0,O=E[3]===!0,_=L||O,x=E[2];O&&(x=E[2]),l=this.$locale(),!L&&x&&(l=u.Ls[x]),this.$d=function(R,F,M){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*R);var k=g(F)(R),A=k.year,P=k.month,De=k.day,He=k.hours,Le=k.minutes,$e=k.seconds,Me=k.milliseconds,ve=k.zone,j=new Date,W=De||(A||P?1:j.getDate()),U=A||j.getFullYear(),z=0;A&&!P||(z=P>0?P-1:j.getMonth());var Z=He||0,Y=Le||0,K=$e||0,V=Me||0;return ve?new Date(Date.UTC(U,z,W,Z,Y,K,V+60*ve.offset*1e3)):M?new Date(Date.UTC(U,z,W,Z,Y,K,V)):new Date(U,z,W,Z,Y,K,V)}catch{return new Date("")}}(N,I,H),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),_&&N!=this.format(I)&&(this.$d=new Date("")),l={}}else if(I instanceof Array)for(var S=I.length,D=1;D<=S;D+=1){E[1]=I[D-1];var $=u.apply(this,E);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}D===S&&(this.$d=new Date(""))}else C.call(this,T)}}})})(Oe);const $t=Oe.exports,Mt=':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}',Ft=Mt;t.dayjs.extend($t);const Se=class{constructor(e){t.registerInstance(this,e),this.timeChange=t.createEvent(this,"timeChange",7),this.formError=t.createEvent(this,"formError",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.name=void 0,this.hasError=!1,this.err="",this.showTimes=!1,this.ariaActivedescendant="",this.times=this.generateTimes(),this.shouldAutoScroll=!1}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.showTimes&&(this.showTimes=!1)}minimumStartTimeChangedHandler(){if(this.minimumStartTime){let e=t.dayjs().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4,-2)));this.minimumStartTime.slice(-2).toLowerCase()==="pm"&&parseInt(this.minimumStartTime)!==12?e=e.add(12,"hour"):this.minimumStartTime.slice(-2).toLowerCase()==="am"&&parseInt(this.minimumStartTime)===12&&(e=e.subtract(12,"hour")),this.times=this.generateTimes();const n=t.dayjs(this.times[0].value,"hh:mma");t.dayjs(this.time,"hh:mma").isBefore(n)&&(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"}))}}componentDidRender(){if(this.showTimes&&this.shouldAutoScroll){const e=t.autocompleteTimeFormat(this.time),n=this.times.findIndex(a=>a.value===e);n>-1&&(this.shouldAutoScroll=!1,this.scrollToViewWithinParent(n));return}}handleTimeChange(e,n){const a=n.split(":");a[0]==="00"&&a[1].slice(-2)=="pm"&&(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"})),t.validateTimeFormatInput(n)?(this.err="",this.formError.emit({key:this.el.id,message:""})):(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"})),this.timeChange.emit({key:this.el.id,value:n})}handleTimeAutocomplete(e){var a;const n=(a=e.target)==null?void 0:a.value;if(!t.validateTimeFormatInput(n)){this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"});return}if(n===""){const i=t.roundToNearest15Minutes().format("hh:mma");this.timeChange.emit({key:this.el.id,value:i});return}if(!t.validateExactTimeFormat(n)){const i=t.autocompleteTimeFormat(n);this.timeChange.emit({key:this.el.id,value:i});return}this.timeChange.emit({key:this.el.id,value:n})}handleOnInput(e){var a;const n=(a=e.target)==null?void 0:a.value;if(t.validateTimeFormatInput(n)){if(n===""){const i=t.roundToNearest15Minutes().format("hh:mma"),o=this.times.findIndex(s=>s.value===i);o>-1&&this.scrollToViewWithinParent(o);return}if(!t.validateExactTimeFormat(n)){const i=t.autocompleteTimeFormat(n),o=this.times.findIndex(s=>s.value===i);o>-1&&this.scrollToViewWithinParent(o);return}}}generateTimes(){const e=[];let n=t.dayjs().set("hour",0).set("minute",0).set("second",0);this.minimumStartTime&&(n=t.dayjs(this.minimumStartTime,"hh:mma"));const a=n.endOf("day").diff(n,"minutes"),i=Math.round(a/15);for(let o=0;o<i+1;o++){const s=n.add(o*15,"minute");if(o==i&&s.format("hh:mma").includes("am"))break;e.push({id:o,value:s.format("hh:mma")})}return e}handleComboboxKeyDown(e){if(e.key==="ArrowDown"){if(e.preventDefault(),!this.showTimes){this.showTimes=!0,this.shouldAutoScroll=!0;return}if(this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[0].id.toString(),this.focusOption(0);else{const n=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),a=n+1<this.times.length?n+1:0;this.ariaActivedescendant=this.times[a].id.toString(),this.focusOption(a)}}else if(e.key==="ArrowUp")if(e.preventDefault(),this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[this.times.length-1].id.toString(),this.focusOption(this.times.length-1);else{const n=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),a=n-1>=0?n-1:this.times.length-1;this.ariaActivedescendant=this.times[a].id.toString(),this.focusOption(a)}else e.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}handleListboxKeydown(e){const n=this.times,a=n.findIndex(i=>i.id.toString()===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){e.preventDefault();const i=a+1<n.length?a+1:0;this.ariaActivedescendant=n[i].id.toString(),this.focusOption(i)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){e.preventDefault();const i=a-1>=0?a-1:n.length-1;this.ariaActivedescendant=n[i].id.toString(),this.focusOption(i)}else if(e.key==="Enter"){if(e.preventDefault(),this.ariaActivedescendant){const i=n[a];this.handleTimeChange(e,i.value),this.showTimes=!1,this.ariaActivedescendant="",this.timeInput.focus()}}else e.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}scrollToViewWithinParent(e){var r;const n=this.times[e],a=(r=this.el.shadowRoot)==null?void 0:r.getElementById(n.id.toString()),i=this.timeMenu;this.ariaActivedescendant=n.id.toString();const o=a.getBoundingClientRect(),s=i.getBoundingClientRect();o.top<s.top?i.scrollTop-=s.top-o.top:o.bottom>s.bottom&&(i.scrollTop+=o.bottom-s.bottom),o.left<s.left?i.scrollLeft-=s.left-o.left:o.right>s.right&&(i.scrollLeft+=o.right-s.right)}focusOption(e){var o;const n=this.times[e];if(!n)return;const a=n.id.toString(),i=(o=this.el.shadowRoot)==null?void 0:o.getElementById(a);i&&(i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){return t.h(t.Host,{key:"4a03bc9829bace5ed02129d99e12b6042f49386c"},t.h("div",{key:"ccc660e6cd8727226b7418ee20fe700812f7c70b",class:"time-picker",part:"time-picker"},t.h("input",{key:"24be2b42322194545575045f5624ac78bf8c643e",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"]}}};Se.style=Ft;exports.add_circle_icon=xe;exports.button_component=ke;exports.calendar_info_icon=we;exports.calendar_patterns_icon=_e;exports.flow_icon=Ce;exports.location_icon=Te;exports.location_off_icon=Ee;exports.multi_select_dropdown=Ie;exports.nylas_availability_picker=re;exports.nylas_booking_calendar_picker=le;exports.nylas_buffer_time=de;exports.nylas_calendar_picker=ce;exports.nylas_event_description=fe;exports.nylas_event_duration=he;exports.nylas_event_info=pe;exports.nylas_event_limits=ue;exports.nylas_event_title=be;exports.nylas_limit_future_bookings=me;exports.nylas_location_component=ye;exports.nylas_min_cancellation_notice=ge;exports.nylas_time_window_picker=Se;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-3b6f5cd5.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:"44a7354577a7025f1a43fbab460df0ecd33cb46c",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"54cbf011be481ac80939bf7d08aca14596788c1b",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"9a5c9a827b6ff4d07752e4b109f1ac8f77f4ece1",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:"98be42bfe34c9136eab57c7a219b43d8575f99a7",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"737cbf5096129e2f33aec3b60206cb5e3e137c7a",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:"c1c69cba718fc03e1cd9b4e2baebdbde22948ee1",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"995679dc3c48de5a9b4a8bfa450eb3e333bc94cb",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:"94d6d76389625a629ffaa03f7ea8c2d73c256fd5",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"f17cc6ba8bda12d7112807f90d409f55d3b5be3f",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:"fe1cfdb1cad0d04387651c99ec9e4ac9879a791b",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:"46a4e29b6fca4f024e75cfe0df749c4379ef0fe8",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"c3c3b8493bfa12b74fdf5a49291a63c593e58508",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"c291b1e4db9817b4e9e865153f1857fb16b0b5f7",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"fff03c0a3ce927feb9ea09f9ee5213900ecdadec",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:"ffd2a8496fd4873d9eddafc105cdd9e3c28ba926",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"f76693fe9270753b66c1809e00e89256e021087c",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:"6b513b382fb4e933f3906b589da95af350bf8b99",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,a=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"8f0b0edae1d59fada068e90597fddb614a81d69c",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"c65262fa476ed6a8804dd5e26442b02ab458b6d4",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"}))}};a.style=p;const v=".sc-trash-icon-h{display:flex}",x=v,d=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"8d7b6622ea6f1f71ad25c9daae779344c59d05b0",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"7d5f92170cc1db1ab5068ff3e3115f21694d38d9",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"766f47dacc875064c2dce38a3877de91010452dc",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:"306766776e3f03899ad04f05031ebc3c2238b048",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"bfc473e115f5f2a231dce71f761a060c961c29cf",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};d.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=a;exports.trash_icon=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-33f74306.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:"5aa6b838481a9741f602d5b1b2a9fd963a00067e",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"0028df292407861bc39c00157b6b4f0bfe31dda5",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"0e53fcc6b2a704f65ab8b7088f2bd3f24483d2cd",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:"8dbf8176c6c6a10188984e36dd985bd1a5be4b2f",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"218c043fbf70ae2fd0db434f573e0339ad2303f8",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};s.style=n;const w=".sc-folder-icon-h{display:flex}",C=w,h=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"3426a025a15f6473ec8935df115dc65f6c21cc18",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8e567fdf1ad34121d1830b57d6f93993cf50ac6f",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=C;const f=".sc-inbox-icon-h{display:flex}",l=f,o=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"25cc88e340b2a67cd5bb5cfd251389f879315479",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"90e4e7c4e69f67ec0721f3cac5be85898d0b3188",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:"458347d7c012ac02b040b1b374c447c4addadf3e",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};o.style=l;const b=".sc-sent-icon-h{display:flex}",k=b,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"94433264804ae9ea142d21a8e017c3551bcbfde1",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"69a7c5647e8930885a8c63f0c44e370524786087",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"4b7bcce0e696c35b4334572d8de66852d64783d3",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"8f4cb81790c663a5db23f33b7dbd8fd17f264a4e",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};i.style=k;const g=".sc-spam-icon-h{display:flex}",y=g,c=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"05802e7eb5bcbb8e1e36e40a86dd465993a4646a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"165cb535da9d8c8b44f064218b79045c318e9726",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:"daddc1e02d766c833becc9af5592904e6a094594",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};c.style=y;const u=".sc-star-icon-h{display:flex}",p=u,a=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"1f82f1e02e49a14ec8a3e678636ccaa7967a73f3",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"211b77a5ad5dd981c9779f03d9a79398d05bac48",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"}))}};a.style=p;const v=".sc-trash-icon-h{display:flex}",x=v,d=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"0fa95af4a6b84258131efa3e098791621c7e242a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"49c0591ec45279759c2a3f38e9c55851692a2283",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"389e6eed81f978951fb2bdb0b594bb6187a55fc3",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:"a961e902065b0a650b558afbe31b00f5d19945aa",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"491de36ad9620009c6646d795e40276da46401ab",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};d.style=x;exports.archive_icon=s;exports.folder_icon=h;exports.inbox_icon=o;exports.sent_icon=i;exports.spam_icon=c;exports.star_icon=a;exports.trash_icon=d;
@@ -1,48 +1,48 @@
1
- import { r as s, h as t } from "./index-630f4e87.js";
1
+ import { r as s, h as t } from "./index-20ea5b0c.js";
2
2
  import "react";
3
3
  import "react-dom";
4
- const o = ".sc-archive-icon-h{display:flex}", c = o, h = class {
4
+ const o = ".sc-archive-icon-h{display:flex}", h = o, i = class {
5
5
  constructor(e) {
6
6
  s(this, e), this.width = "15", this.height = "15";
7
7
  }
8
8
  render() {
9
- return t("svg", { key: "44a7354577a7025f1a43fbab460df0ecd33cb46c", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "54cbf011be481ac80939bf7d08aca14596788c1b", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "9a5c9a827b6ff4d07752e4b109f1ac8f77f4ece1", 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: "98be42bfe34c9136eab57c7a219b43d8575f99a7", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "737cbf5096129e2f33aec3b60206cb5e3e137c7a", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
9
+ return t("svg", { key: "5aa6b838481a9741f602d5b1b2a9fd963a00067e", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "0028df292407861bc39c00157b6b4f0bfe31dda5", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "0e53fcc6b2a704f65ab8b7088f2bd3f24483d2cd", 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: "8dbf8176c6c6a10188984e36dd985bd1a5be4b2f", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "218c043fbf70ae2fd0db434f573e0339ad2303f8", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
10
10
  }
11
11
  };
12
- h.style = c;
13
- const i = ".sc-folder-icon-h{display:flex}", a = i, d = class {
12
+ i.style = h;
13
+ const c = ".sc-folder-icon-h{display:flex}", a = c, d = class {
14
14
  constructor(e) {
15
15
  s(this, e), this.width = "15", this.height = "15";
16
16
  }
17
17
  render() {
18
- return t("svg", { key: "c1c69cba718fc03e1cd9b4e2baebdbde22948ee1", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "995679dc3c48de5a9b4a8bfa450eb3e333bc94cb", 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" }));
18
+ return t("svg", { key: "3426a025a15f6473ec8935df115dc65f6c21cc18", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "8e567fdf1ad34121d1830b57d6f93993cf50ac6f", 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
19
  }
20
20
  };
21
21
  d.style = a;
22
- const r = ".sc-inbox-icon-h{display:flex}", n = r, f = class {
22
+ const r = ".sc-inbox-icon-h{display:flex}", n = r, w = class {
23
23
  constructor(e) {
24
24
  s(this, e), this.width = "15", this.height = "15";
25
25
  }
26
26
  render() {
27
- return t("svg", { key: "94d6d76389625a629ffaa03f7ea8c2d73c256fd5", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f17cc6ba8bda12d7112807f90d409f55d3b5be3f", 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: "fe1cfdb1cad0d04387651c99ec9e4ac9879a791b", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
27
+ return t("svg", { key: "25cc88e340b2a67cd5bb5cfd251389f879315479", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "90e4e7c4e69f67ec0721f3cac5be85898d0b3188", 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: "458347d7c012ac02b040b1b374c447c4addadf3e", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
28
28
  }
29
29
  };
30
- f.style = n;
31
- const w = ".sc-sent-icon-h{display:flex}", C = w, b = class {
30
+ w.style = n;
31
+ const C = ".sc-sent-icon-h{display:flex}", f = C, l = class {
32
32
  constructor(e) {
33
33
  s(this, e), this.width = "15", this.height = "15";
34
34
  }
35
35
  render() {
36
- return t("svg", { key: "46a4e29b6fca4f024e75cfe0df749c4379ef0fe8", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "c3c3b8493bfa12b74fdf5a49291a63c593e58508", d: "M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "c291b1e4db9817b4e9e865153f1857fb16b0b5f7", d: "M3.5 3.5L12 10.5", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "fff03c0a3ce927feb9ea09f9ee5213900ecdadec", d: "M3.5 20.5L12 13.5", stroke: "auto", "stroke-width": "1.5" }));
36
+ return t("svg", { key: "94433264804ae9ea142d21a8e017c3551bcbfde1", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "69a7c5647e8930885a8c63f0c44e370524786087", d: "M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "4b7bcce0e696c35b4334572d8de66852d64783d3", d: "M3.5 3.5L12 10.5", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "8f4cb81790c663a5db23f33b7dbd8fd17f264a4e", d: "M3.5 20.5L12 13.5", stroke: "auto", "stroke-width": "1.5" }));
37
37
  }
38
38
  };
39
- b.style = C;
40
- const l = ".sc-spam-icon-h{display:flex}", k = l, y = class {
39
+ l.style = f;
40
+ const b = ".sc-spam-icon-h{display:flex}", k = b, y = class {
41
41
  constructor(e) {
42
42
  s(this, e), this.width = "15", this.height = "15";
43
43
  }
44
44
  render() {
45
- return t("svg", { key: "ffd2a8496fd4873d9eddafc105cdd9e3c28ba926", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f76693fe9270753b66c1809e00e89256e021087c", 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: "6b513b382fb4e933f3906b589da95af350bf8b99", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
45
+ return t("svg", { key: "05802e7eb5bcbb8e1e36e40a86dd465993a4646a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "165cb535da9d8c8b44f064218b79045c318e9726", 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: "daddc1e02d766c833becc9af5592904e6a094594", d: "M2 5L12 12.5L22 5", stroke: "auto", "stroke-width": "1.5" }));
46
46
  }
47
47
  };
48
48
  y.style = k;
@@ -51,7 +51,7 @@ const g = ".sc-star-icon-h{display:flex}", p = g, u = class {
51
51
  s(this, e), this.width = "15", this.height = "15";
52
52
  }
53
53
  render() {
54
- return t("svg", { key: "8f0b0edae1d59fada068e90597fddb614a81d69c", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "c65262fa476ed6a8804dd5e26442b02ab458b6d4", 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" }));
54
+ return t("svg", { key: "1f82f1e02e49a14ec8a3e678636ccaa7967a73f3", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "211b77a5ad5dd981c9779f03d9a79398d05bac48", 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
55
  }
56
56
  };
57
57
  u.style = p;
@@ -60,15 +60,15 @@ const x = ".sc-trash-icon-h{display:flex}", v = x, L = class {
60
60
  s(this, e), this.width = "15", this.height = "15";
61
61
  }
62
62
  render() {
63
- return t("svg", { key: "8d7b6622ea6f1f71ad25c9daae779344c59d05b0", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "7d5f92170cc1db1ab5068ff3e3115f21694d38d9", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "766f47dacc875064c2dce38a3877de91010452dc", 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: "306766776e3f03899ad04f05031ebc3c2238b048", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "bfc473e115f5f2a231dce71f761a060c961c29cf", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
63
+ return t("svg", { key: "0fa95af4a6b84258131efa3e098791621c7e242a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "49c0591ec45279759c2a3f38e9c55851692a2283", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "389e6eed81f978951fb2bdb0b594bb6187a55fc3", 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: "a961e902065b0a650b558afbe31b00f5d19945aa", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "491de36ad9620009c6646d795e40276da46401ab", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
64
64
  }
65
65
  };
66
66
  L.style = v;
67
67
  export {
68
- h as archive_icon,
68
+ i as archive_icon,
69
69
  d as folder_icon,
70
- f as inbox_icon,
71
- b as sent_icon,
70
+ w as inbox_icon,
71
+ l as sent_icon,
72
72
  y as spam_icon,
73
73
  u as star_icon,
74
74
  L as trash_icon
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.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:"7ecb2aa37cd1616a23586de622a6038db4543f96",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"426debbbc4f816b6c62cee4b9e6f817d35f3cabe",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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-33f74306.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:"60eb6fe3830bcf83b515575fddac295ee46b8445",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"bc01c86926c840e985ae2dbd7edf1714b5015bc2",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,4 +1,4 @@
1
- import { r as e, h as t } from "./index-630f4e87.js";
1
+ import { r as e, h as t } from "./index-20ea5b0c.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const o = ".sc-arrow-icon-h{display:flex}", s = o, i = class {
@@ -6,7 +6,7 @@ const o = ".sc-arrow-icon-h{display:flex}", s = o, i = class {
6
6
  e(this, r), this.width = "15", this.height = "15";
7
7
  }
8
8
  render() {
9
- return t("svg", { key: "7ecb2aa37cd1616a23586de622a6038db4543f96", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "426debbbc4f816b6c62cee4b9e6f817d35f3cabe", d: "M5 12H19M12 5L19 12L12 19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
9
+ return t("svg", { key: "60eb6fe3830bcf83b515575fddac295ee46b8445", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "bc01c86926c840e985ae2dbd7edf1714b5015bc2", d: "M5 12H19M12 5L19 12L12 19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
10
  }
11
11
  };
12
12
  i.style = s;
@@ -1,4 +1,4 @@
1
- import { r as i, h as t } from "./index-630f4e87.js";
1
+ import { r as i, h as t } from "./index-20ea5b0c.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const o = ".sc-bold-icon-h{display:flex}", s = o, n = class {
@@ -6,7 +6,7 @@ const o = ".sc-bold-icon-h{display:flex}", s = o, n = class {
6
6
  i(this, e), this.width = "15", this.height = "15";
7
7
  }
8
8
  render() {
9
- return t("svg", { key: "2dc410b5d6f3b6edc4dfe414a4c04b25bf09d4b7", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "6f84f59119f66952a0a8f24fe49c1bcdfd7f8369", 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" }));
9
+ return t("svg", { key: "31974bb21eb101d41aaebdd8199a3a5f7ce55a63", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "78c695ad810b93f8d3b70119cd594d936803b9f4", 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
10
  }
11
11
  };
12
12
  n.style = s;
@@ -15,7 +15,7 @@ const c = ".sc-italic-icon-h{display:flex}", r = c, h = class {
15
15
  i(this, e), this.width = "15", this.height = "15";
16
16
  }
17
17
  render() {
18
- return t("svg", { key: "759880313de2923326f5c7076900b04f137d6bd4", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "8eb7897c05f6eb1f88b40b99b95c5bdb273ab1ec", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m10 20 4-16m2 0h-4m0 16H8" }));
18
+ return t("svg", { key: "975b30acd84a6762b2eacdf2f700ac65678966f6", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "6a36ecd5b14415c84176cd32f89a7c40cf219cb3", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m10 20 4-16m2 0h-4m0 16H8" }));
19
19
  }
20
20
  };
21
21
  h.style = r;
@@ -24,7 +24,7 @@ const d = ".sc-underline-icon-h{display:flex}", l = d, a = class {
24
24
  i(this, e), this.width = "15", this.height = "15";
25
25
  }
26
26
  render() {
27
- return t("svg", { key: "a51e97f9d78a35f2e8c74fc4ec84189e0d2c4b46", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "91d173d7ce04bc71637eb0ad983ecda896eb0cdd", 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" }));
27
+ return t("svg", { key: "90d8a0e568e0303cf35533b6aec885e6a41da075", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "96f2d77839ec63e1d8c4f9ea5c9cdc92ea1bb396", 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
28
  }
29
29
  };
30
30
  a.style = l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.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:"2dc410b5d6f3b6edc4dfe414a4c04b25bf09d4b7",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6f84f59119f66952a0a8f24fe49c1bcdfd7f8369",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:"759880313de2923326f5c7076900b04f137d6bd4",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"8eb7897c05f6eb1f88b40b99b95c5bdb273ab1ec",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:"a51e97f9d78a35f2e8c74fc4ec84189e0d2c4b46",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"91d173d7ce04bc71637eb0ad983ecda896eb0cdd",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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-33f74306.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:"31974bb21eb101d41aaebdd8199a3a5f7ce55a63",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"78c695ad810b93f8d3b70119cd594d936803b9f4",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:"975b30acd84a6762b2eacdf2f700ac65678966f6",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6a36ecd5b14415c84176cd32f89a7c40cf219cb3",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:"90d8a0e568e0303cf35533b6aec885e6a41da075",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"96f2d77839ec63e1d8c4f9ea5c9cdc92ea1bb396",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,12 +1,12 @@
1
- import { r as c, h as a } from "./index-630f4e87.js";
1
+ import { r as c, h as e } from "./index-20ea5b0c.js";
2
2
  import "react";
3
3
  import "react-dom";
4
- const e = ".sc-calendar-cancel-icon-h{display:flex}", n = e, l = class {
5
- constructor(t) {
6
- c(this, t), this.width = "20", this.height = "20";
4
+ const t = ".sc-calendar-cancel-icon-h{display:flex}", n = t, l = class {
5
+ constructor(a) {
6
+ c(this, a), this.width = "20", this.height = "20";
7
7
  }
8
8
  render() {
9
- return a("svg", { key: "40f66f928ed1787412c8070483c96a1605f2888d", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "f5d85994cabf286bcb8460989f69b6a341183447", 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" }));
9
+ return e("svg", { key: "09bdd81a98611d49143ed327802cee77c1e851ae", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "9692e20de89c490c05ccf9800faea78c5860260d", 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
10
  }
11
11
  };
12
12
  l.style = n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.cjs");require("react");require("react-dom");const c=".sc-calendar-cancel-icon-h{display:flex}",n=c,t=class{constructor(a){e.registerInstance(this,a),this.width="20",this.height="20"}render(){return e.h("svg",{key:"40f66f928ed1787412c8070483c96a1605f2888d",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"f5d85994cabf286bcb8460989f69b6a341183447",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"}))}};t.style=n;exports.calendar_cancel_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-33f74306.cjs");require("react");require("react-dom");const a=".sc-calendar-cancel-icon-h{display:flex}",n=a,c=class{constructor(t){e.registerInstance(this,t),this.width="20",this.height="20"}render(){return e.h("svg",{key:"09bdd81a98611d49143ed327802cee77c1e851ae",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"9692e20de89c490c05ccf9800faea78c5860260d",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=n;exports.calendar_cancel_icon=c;