@nylas/react 1.4.2 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/{add-circle-icon_2.entry-6b57fd96.js → add-circle-icon_2.entry-615fc101.js} +1 -1
  2. package/dist/{add-circle-icon_2.entry-db0c5d68.cjs → add-circle-icon_2.entry-e616ece6.cjs} +1 -1
  3. package/dist/{archive-icon.entry-bf00cb75.cjs → archive-icon.entry-41938a61.cjs} +1 -1
  4. package/dist/{archive-icon.entry-cf731ded.js → archive-icon.entry-bd81d2d9.js} +1 -1
  5. package/dist/{arrow-icon.entry-5031b5ac.cjs → arrow-icon.entry-4103be57.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-2471d146.js → arrow-icon.entry-da152ec2.js} +1 -1
  7. package/dist/{bold-icon.entry-9cec8c45.cjs → bold-icon.entry-58679992.cjs} +1 -1
  8. package/dist/{bold-icon.entry-da045de2.js → bold-icon.entry-61046c15.js} +1 -1
  9. package/dist/{button-component_2.entry-adbcccdf.cjs → button-component_2.entry-53bfdc19.cjs} +1 -1
  10. package/dist/{button-component_2.entry-ad0e9642.js → button-component_2.entry-db53e00a.js} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_36.entry-05898830.js → calendar-agenda-fill-icon_36.entry-76796ea7.js} +2 -2
  12. package/dist/{calendar-agenda-fill-icon_36.entry-aeb96033.cjs → calendar-agenda-fill-icon_36.entry-917e4a9d.cjs} +1 -1
  13. package/dist/{calendar-cancel-icon.entry-7b62f915.cjs → calendar-cancel-icon.entry-e5032d71.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-85ebd74c.js → calendar-cancel-icon.entry-f3b8ae99.js} +1 -1
  15. package/dist/{calendar-check-icon_2.entry-72ab0311.js → calendar-check-icon_2.entry-27dc91f7.js} +1 -1
  16. package/dist/{calendar-check-icon_2.entry-2e1586eb.cjs → calendar-check-icon_2.entry-7303362a.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-230a1263.js → calendar-icon.entry-48fc45d6.js} +1 -1
  18. package/dist/{calendar-icon.entry-b8c87d5f.cjs → calendar-icon.entry-4f432baf.cjs} +1 -1
  19. package/dist/{checkbox-component.entry-b6f0741a.cjs → checkbox-component.entry-8fad4faf.cjs} +1 -1
  20. package/dist/{checkbox-component.entry-51287f4f.js → checkbox-component.entry-a15ffc4c.js} +1 -1
  21. package/dist/{checkmark-icon_15.entry-a61f7d0b.cjs → checkmark-icon_15.entry-08c8b107.cjs} +2 -2
  22. package/dist/{checkmark-icon_15.entry-554964a3.js → checkmark-icon_15.entry-9f926a70.js} +17 -17
  23. package/dist/{chevron-icon_3.entry-3913b854.cjs → chevron-icon_3.entry-2f75c3c4.cjs} +1 -1
  24. package/dist/{chevron-icon_3.entry-4595b992.js → chevron-icon_3.entry-5130fbba.js} +1 -1
  25. package/dist/{clock-icon_4.entry-e081381a.js → clock-icon_4.entry-40a393c9.js} +1 -1
  26. package/dist/{clock-icon_4.entry-282b96df.cjs → clock-icon_4.entry-ac65deae.cjs} +1 -1
  27. package/dist/{customParseFormat-a4d9ea69-573fe3af.cjs → customParseFormat-a4d9ea69-763f219e.cjs} +1 -1
  28. package/dist/{customParseFormat-a4d9ea69-aeaa945c.js → customParseFormat-a4d9ea69-7caebeb2.js} +1 -1
  29. package/dist/{delete-icon.entry-6c9be3e2.cjs → delete-icon.entry-770dac8c.cjs} +1 -1
  30. package/dist/{delete-icon.entry-e5182b5a.js → delete-icon.entry-78e44eba.js} +1 -1
  31. package/dist/{document-refresh-icon.entry-018ce16d.cjs → document-refresh-icon.entry-d331f844.cjs} +1 -1
  32. package/dist/{document-refresh-icon.entry-0b2c1eb1.js → document-refresh-icon.entry-f6dfe744.js} +1 -1
  33. package/dist/{feedbackSync-aa8d23d1-2c779b00.cjs → feedbackSync-57bb471a-5afb7715.cjs} +1 -1
  34. package/dist/{feedbackSync-aa8d23d1-785b41fd.js → feedbackSync-57bb471a-ee800a95.js} +1 -1
  35. package/dist/{folder-icon.entry-fdce88ea.cjs → folder-icon.entry-163e0aee.cjs} +1 -1
  36. package/dist/{folder-icon.entry-eb9c7f65.js → folder-icon.entry-42650400.js} +1 -1
  37. package/dist/{forward-icon.entry-1ea23df4.cjs → forward-icon.entry-0a499b38.cjs} +1 -1
  38. package/dist/{forward-icon.entry-0b9c7166.js → forward-icon.entry-d60b6e31.js} +1 -1
  39. package/dist/{globe-icon_2.entry-385877d0.cjs → globe-icon_2.entry-19359092.cjs} +1 -1
  40. package/dist/{globe-icon_2.entry-3cf1b102.js → globe-icon_2.entry-5afa8049.js} +2 -2
  41. package/dist/{google-logo-icon_6.entry-9d97b8db.cjs → google-logo-icon_6.entry-896a10a5.cjs} +1 -1
  42. package/dist/{google-logo-icon_6.entry-f5adddf0.js → google-logo-icon_6.entry-d2febb78.js} +7 -7
  43. package/dist/{google-meet-icon_5.entry-e5c673bf.cjs → google-meet-icon_5.entry-4a94137f.cjs} +1 -1
  44. package/dist/{google-meet-icon_5.entry-20574ba9.js → google-meet-icon_5.entry-7b1b36f2.js} +1 -1
  45. package/dist/{inbox-icon.entry-29169ba7.cjs → inbox-icon.entry-24ec450f.cjs} +1 -1
  46. package/dist/{inbox-icon.entry-3ed18276.js → inbox-icon.entry-b71acde0.js} +1 -1
  47. package/dist/{index-b04bb93f.js → index-9243e481.js} +60 -60
  48. package/dist/{index-58c1674c.cjs → index-efb6db79.cjs} +2 -2
  49. package/dist/{index.es-6d4b50d5-7383c4f8.cjs → index.es-13ff6710-0f748bd2.cjs} +1 -1
  50. package/dist/{index.es-6d4b50d5-724fa642.js → index.es-13ff6710-73fa05e6.js} +1 -1
  51. package/dist/{info-icon_2.entry-4fa9aa36.cjs → info-icon_2.entry-6667923a.cjs} +1 -1
  52. package/dist/{info-icon_2.entry-f709a5bf.js → info-icon_2.entry-ba869bab.js} +1 -1
  53. package/dist/{input-component.entry-1b91f7cf.js → input-component.entry-7396acf1.js} +14 -14
  54. package/dist/{input-component.entry-82dc06b1.cjs → input-component.entry-db84f917.cjs} +1 -1
  55. package/dist/{input-dropdown_2.entry-0601fe2f.cjs → input-dropdown_2.entry-0c219620.cjs} +1 -1
  56. package/dist/{input-dropdown_2.entry-600dfd62.js → input-dropdown_2.entry-20f2031b.js} +1 -1
  57. package/dist/{italic-icon.entry-cfeb3329.cjs → italic-icon.entry-a9324a8a.cjs} +1 -1
  58. package/dist/{italic-icon.entry-7bb5d844.js → italic-icon.entry-c42f8112.js} +1 -1
  59. package/dist/{multi-select-dropdown_2.entry-2e2caeeb.js → multi-select-dropdown_2.entry-81740b34.js} +1 -1
  60. package/dist/{multi-select-dropdown_2.entry-ded44143.cjs → multi-select-dropdown_2.entry-8e07b42b.cjs} +1 -1
  61. package/dist/{notebook-store-b61693cd-a6630a19.js → notebook-store-b61693cd-5657061b.js} +1 -1
  62. package/dist/{notebook-store-b61693cd-fe56f6e3.cjs → notebook-store-b61693cd-6515d345.cjs} +1 -1
  63. package/dist/nylas-booked-event-card_12.entry-7c7afae5.cjs +1 -0
  64. package/dist/{nylas-booked-event-card_12.entry-46bf945a.js → nylas-booked-event-card_12.entry-e56c8e92.js} +262 -245
  65. package/dist/{nylas-call-summary.entry-92089a11.cjs → nylas-call-summary.entry-4bf7284f.cjs} +1 -1
  66. package/dist/{nylas-call-summary.entry-02a9b542.js → nylas-call-summary.entry-ad6fb46a.js} +1 -1
  67. package/dist/{nylas-event-calendar_3.entry-c77a26ca.js → nylas-event-calendar_3.entry-2504c7c0.js} +139 -111
  68. package/dist/{nylas-event-calendar_3.entry-c7421045.cjs → nylas-event-calendar_3.entry-f747f6a8.cjs} +2 -2
  69. package/dist/{nylas-form-card.entry-ddaea368.js → nylas-form-card.entry-98903549.js} +2 -2
  70. package/dist/{nylas-form-card.entry-48b2d9d4.cjs → nylas-form-card.entry-c406e3d3.cjs} +1 -1
  71. package/dist/{nylas-if-state.entry-b7c26f4c.cjs → nylas-if-state.entry-6b071705.cjs} +1 -1
  72. package/dist/{nylas-if-state.entry-bd3cba4e.js → nylas-if-state.entry-7468854a.js} +2 -2
  73. package/dist/{nylas-key-points.entry-da89162b.cjs → nylas-key-points.entry-7af8da1a.cjs} +1 -1
  74. package/dist/{nylas-key-points.entry-d9a22328.js → nylas-key-points.entry-c186445e.js} +2 -2
  75. package/dist/{nylas-login.entry-a4ee2c70.cjs → nylas-login.entry-171bd025.cjs} +1 -1
  76. package/dist/{nylas-login.entry-cb830f5d.js → nylas-login.entry-d85c1473.js} +2 -2
  77. package/dist/{nylas-provider.entry-7b416341.js → nylas-provider.entry-ab1f6886.js} +4 -4
  78. package/dist/{nylas-provider.entry-8f71dc58.cjs → nylas-provider.entry-e4231b93.cjs} +1 -1
  79. package/dist/{nylas-scheduler-editor.entry-04e8f10b.js → nylas-scheduler-editor.entry-670cc0b8.js} +3 -3
  80. package/dist/{nylas-scheduler-editor.entry-77f49e22.cjs → nylas-scheduler-editor.entry-d522ca98.cjs} +2 -2
  81. package/dist/{nylas-scheduling.entry-f187da9e.js → nylas-scheduling.entry-9e81c6fc.js} +6 -6
  82. package/dist/{nylas-scheduling.entry-df177e08.cjs → nylas-scheduling.entry-c52edb14.cjs} +1 -1
  83. package/dist/{nylas-transcript.entry-f35ee1ec.cjs → nylas-transcript.entry-a1fa7e17.cjs} +1 -1
  84. package/dist/{nylas-transcript.entry-130d62d2.js → nylas-transcript.entry-fb39b5af.js} +2 -2
  85. package/dist/{nylas-video-player.entry-3e1d8faa.js → nylas-video-player.entry-25e8cd9a.js} +2 -2
  86. package/dist/{nylas-video-player.entry-7ba2cd73.cjs → nylas-video-player.entry-89842545.cjs} +1 -1
  87. package/dist/{nylas-video-preview.entry-84b7d31d.cjs → nylas-video-preview.entry-28a0bd60.cjs} +1 -1
  88. package/dist/{nylas-video-preview.entry-85751140.js → nylas-video-preview.entry-80171531.js} +1 -1
  89. package/dist/{person-icon.entry-29a5030a.js → person-icon.entry-3bca6e51.js} +1 -1
  90. package/dist/{person-icon.entry-28c58d83.cjs → person-icon.entry-bdaa899b.cjs} +1 -1
  91. package/dist/{play-icon.entry-78eb1cc5.js → play-icon.entry-d548464e.js} +1 -1
  92. package/dist/{play-icon.entry-4f53806b.cjs → play-icon.entry-ecc86e85.cjs} +1 -1
  93. package/dist/{radio-button-group.entry-1d2a0c94.cjs → radio-button-group.entry-6965ad34.cjs} +1 -1
  94. package/dist/{radio-button-group.entry-1739abfc.js → radio-button-group.entry-9851076c.js} +1 -1
  95. package/dist/react.cjs +1 -1
  96. package/dist/react.js +1 -1
  97. package/dist/{refresh-icon.entry-e5f2b07f.cjs → refresh-icon.entry-90d52ab3.cjs} +1 -1
  98. package/dist/{refresh-icon.entry-8703a22f.js → refresh-icon.entry-d776c4a7.js} +1 -1
  99. package/dist/{register-component-238f28de-daee0751.js → register-component-02a05665-2e992621.js} +1 -1
  100. package/dist/{register-component-238f28de-4166d4fd.cjs → register-component-02a05665-75652287.cjs} +1 -1
  101. package/dist/{reply-all-icon.entry-c1da34a1.js → reply-all-icon.entry-24f7c0fe.js} +1 -1
  102. package/dist/{reply-all-icon.entry-77711564.cjs → reply-all-icon.entry-6e49eb03.cjs} +1 -1
  103. package/dist/{reply-icon.entry-267c524a.cjs → reply-icon.entry-7fff25c9.cjs} +1 -1
  104. package/dist/{reply-icon.entry-1fe825af.js → reply-icon.entry-d5d26d65.js} +1 -1
  105. package/dist/{scheduler-config-store-d6729d8d-634e14c6.js → scheduler-config-store-d6729d8d-50920e8c.js} +1 -1
  106. package/dist/{scheduler-config-store-d6729d8d-39f2a8c8.cjs → scheduler-config-store-d6729d8d-a0bdda83.cjs} +1 -1
  107. package/dist/{scheduler-store-82bb212a-64d99231.js → scheduler-store-fe9e85a4-1dcfddfa.js} +2 -2
  108. package/dist/{scheduler-store-82bb212a-dd809b50.cjs → scheduler-store-fe9e85a4-baabf78a.cjs} +1 -1
  109. package/dist/{sent-icon.entry-82b5056c.cjs → sent-icon.entry-42ce5bcb.cjs} +1 -1
  110. package/dist/{sent-icon.entry-86f841dd.js → sent-icon.entry-858fe83e.js} +1 -1
  111. package/dist/{spam-icon.entry-d8a9b8c3.js → spam-icon.entry-0827144e.js} +1 -1
  112. package/dist/{spam-icon.entry-ce6d3260.cjs → spam-icon.entry-bf1a48b6.cjs} +1 -1
  113. package/dist/{star-icon.entry-13fec0d7.cjs → star-icon.entry-3c57a35c.cjs} +1 -1
  114. package/dist/{star-icon.entry-c9272ed6.js → star-icon.entry-c2e743a9.js} +1 -1
  115. package/dist/{stop-icon.entry-ae569b6b.js → stop-icon.entry-0b9563d5.js} +1 -1
  116. package/dist/{stop-icon.entry-95c34b68.cjs → stop-icon.entry-cf4c4e63.cjs} +1 -1
  117. package/dist/{textarea-component.entry-75f2e50a.cjs → textarea-component.entry-2eccc173.cjs} +1 -1
  118. package/dist/{textarea-component.entry-9d484b96.js → textarea-component.entry-60e7a4d0.js} +1 -1
  119. package/dist/{toggle-switch.entry-3a2069a0.js → toggle-switch.entry-0a6b01e6.js} +1 -1
  120. package/dist/{toggle-switch.entry-b832b7bf.cjs → toggle-switch.entry-612744fd.cjs} +1 -1
  121. package/dist/{translate-icon.entry-a2f84ac4.cjs → translate-icon.entry-8adc4146.cjs} +1 -1
  122. package/dist/{translate-icon.entry-b9347ebf.js → translate-icon.entry-ede5f77d.js} +1 -1
  123. package/dist/{trash-fill-icon.entry-ae7a4d13.cjs → trash-fill-icon.entry-b6456ec8.cjs} +1 -1
  124. package/dist/{trash-fill-icon.entry-25a48052.js → trash-fill-icon.entry-d48f72c5.js} +1 -1
  125. package/dist/{underline-icon.entry-53025db9.js → underline-icon.entry-b2b43ba2.js} +1 -1
  126. package/dist/{underline-icon.entry-2e75ba4c.cjs → underline-icon.entry-d2fe2da6.cjs} +1 -1
  127. package/dist/{warning-icon.entry-5c49aabe.js → warning-icon.entry-0a5c7337.js} +1 -1
  128. package/dist/{warning-icon.entry-a87938c6.cjs → warning-icon.entry-85822f4d.cjs} +1 -1
  129. package/package.json +2 -2
  130. package/dist/nylas-booked-event-card_12.entry-c0d66ddf.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { a as C, b as p, u, r as b, h as r, g as y } from "./index-b04bb93f.js";
2
- import { v as x } from "./notebook-store-b61693cd-a6630a19.js";
1
+ import { a as C, b as p, u, r as b, h as r, g as y } from "./index-9243e481.js";
2
+ import { v as x } from "./notebook-store-b61693cd-5657061b.js";
3
3
  import "react";
4
4
  import "react/jsx-runtime";
5
5
  import "react-dom";
@@ -1,5 +1,5 @@
1
- import { r as n, h as e, g as r } from "./index-b04bb93f.js";
2
- import { v as i } from "./notebook-store-b61693cd-a6630a19.js";
1
+ import { r as n, h as e, g as r } from "./index-9243e481.js";
2
+ import { v as i } from "./notebook-store-b61693cd-5657061b.js";
3
3
  import "react";
4
4
  import "react/jsx-runtime";
5
5
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs"),i=require("./notebook-store-b61693cd-fe56f6e3.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r='.video-container{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#000;position:relative;box-sizing:border-box;border-radius:8px;font-family:"Inter", serif;font-optical-sizing:auto}.video-container video{width:100%;border-radius:8px}.video-container .controls-overlay{color:white;background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));position:absolute;bottom:0;left:0;right:0;padding:30px 20px;padding-bottom:10px;opacity:1;transition:opacity 0.3s;border-bottom-right-radius:8px;border-bottom-left-radius:8px;display:none;}.video-container .controls-overlay .seek{width:100%}.video-container .controls-overlay input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer}.video-container .controls-overlay .info{padding-bottom:20px}.video-container .controls-overlay .info .title{font-size:20px}.video-container .controls-overlay .info .description{color:#bbbbbb;font-weight:400;font-size:14px}.video-container .controls-overlay .progress-bar{background-color:rgba(255, 255, 255, 0.5);height:2px;margin:10px 0;transition:width 0.1s}.video-container .controls-overlay .progress-bar .progress{background:white;height:2px}.video-container .controls-overlay .controls{display:flex;align-items:center;justify-content:space-between}.video-container .controls-overlay .controls button{background:none;border:none}.video-container .controls-overlay input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer;width:15rem}.video-container .controls-overlay input[type=range]:focus{outline:none}.video-container .controls-overlay input[type=range]::-webkit-slider-runnable-track{background-color:#053a5f;border-radius:0.5rem;height:0.5rem}.video-container .controls-overlay input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-12px;background-color:#5cd5eb;height:2rem;width:1rem}.video-container .controls-overlay input[type=range]:focus::-webkit-slider-thumb{border:1px solid #053a5f;outline:3px solid #053a5f;outline-offset:0.125rem}.video-container .controls-overlay input[type=range]::-moz-range-track{background-color:#053a5f;border-radius:0.5rem;height:0.5rem}.video-container .controls-overlay input[type=range]::-moz-range-thumb{border:none;border-radius:0;background-color:#5cd5eb;height:2rem;width:1rem}.video-container .controls-overlay input[type=range]:focus::-moz-range-thumb{border:1px solid #053a5f;outline:3px solid #053a5f;outline-offset:0.125rem}',a=r,n=class{constructor(o){e.registerInstance(this,o),this.handleTimeUpdate=()=>{const t=this.videoElement;i.videoStore.set("videoTime",this.videoElement.currentTime),this.isSeeking||(this.seekElement.value=(t.currentTime/t.duration*100).toString())},this.handlePlay=()=>{this.isPlaying=!0,this.videoElement.play()},this.handlePause=()=>{this.isPlaying=!1,this.videoElement.pause()},this.videoUrl=void 0,this.isSeeking=!1,this.isPlaying=!1}inputSeek(o){this.isSeeking||(this.isSeeking=!0)}handleSeek(o){if(this.isSeeking=!1,!this.videoElement)return;const t=o.target;this.videoElement.currentTime=parseFloat(t.value)/100*this.videoElement.duration,this.videoElement.play()}get progressPercent(){return this.videoElement?i.videoStore.get("videoTime")/this.videoElement.duration*100:0}render(){return e.h("div",{key:"98a898e225274dac6fda72126de7eb3fbe3b73b0",class:"video-container"},e.h("video",{key:"6ff6bd22efd243b45f7ee92a8f01b4fbe392d4b1",ref:o=>this.videoElement=o,onPlay:this.handlePlay,onPause:this.handlePause,onTimeUpdate:this.handleTimeUpdate,controls:!0},this.videoUrl&&e.h("source",{src:this.videoUrl,type:"video/mp4"})),e.h("div",{key:"2297c46d4b6d7803a884bbcf7c157573702880ed",class:"controls-overlay"},e.h("div",{key:"5207532096947074e5906edddab4e4c573d69795",class:"info"},e.h("div",{key:"f0f27ec9f18528ecae5cb705dcdd8579aee92f50",class:"title"},"Ad Video from Google"),e.h("div",{key:"b6c13515720c5706f6f30d588df1371ef1d435ae",class:"description"},"Found on the web...")),e.h("div",{key:"677f8ea6cbac199f4c5a3452e597dc0991c79d7a",class:"progress-bar"},e.h("input",{key:"e31aa4501345fb0eb2f6bbb1ebdad5317d8bface",type:"range",ref:o=>this.seekElement=o,min:"0",max:"100",class:"seek",value:this.progressPercent,onChange:o=>this.handleSeek(o),onClickCapture:o=>this.inputSeek(o)})),e.h("div",{key:"bdca2a6746d05ac8bc42feaf8a30029fb00c6cf4",class:"controls"},e.h("div",{key:"6c9d084306cb984770b28dce6d31cf268b62073e",class:"left"},e.h("button",{key:"6d128a31878bf394103bfcfb75c194d5733b5b6a",onClick:()=>this.handlePlay()}),e.h("button",{key:"cc3d3a8fb98b3c74bb8536f43726f71255045d24",onClick:()=>this.handlePause()})),e.h("div",{key:"e940328caf2215b148b97de6d0770d49f3621a5d",class:"right"},e.h("button",{key:"7feb3b396dc1463945ab6e44b6bfbcfe8c0e0e48",onClick:()=>this.handlePause()})))))}get el(){return e.getElement(this)}};n.style=a;exports.nylas_video_player=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs"),i=require("./notebook-store-b61693cd-6515d345.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r='.video-container{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#000;position:relative;box-sizing:border-box;border-radius:8px;font-family:"Inter", serif;font-optical-sizing:auto}.video-container video{width:100%;border-radius:8px}.video-container .controls-overlay{color:white;background:linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));position:absolute;bottom:0;left:0;right:0;padding:30px 20px;padding-bottom:10px;opacity:1;transition:opacity 0.3s;border-bottom-right-radius:8px;border-bottom-left-radius:8px;display:none;}.video-container .controls-overlay .seek{width:100%}.video-container .controls-overlay input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer}.video-container .controls-overlay .info{padding-bottom:20px}.video-container .controls-overlay .info .title{font-size:20px}.video-container .controls-overlay .info .description{color:#bbbbbb;font-weight:400;font-size:14px}.video-container .controls-overlay .progress-bar{background-color:rgba(255, 255, 255, 0.5);height:2px;margin:10px 0;transition:width 0.1s}.video-container .controls-overlay .progress-bar .progress{background:white;height:2px}.video-container .controls-overlay .controls{display:flex;align-items:center;justify-content:space-between}.video-container .controls-overlay .controls button{background:none;border:none}.video-container .controls-overlay input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer;width:15rem}.video-container .controls-overlay input[type=range]:focus{outline:none}.video-container .controls-overlay input[type=range]::-webkit-slider-runnable-track{background-color:#053a5f;border-radius:0.5rem;height:0.5rem}.video-container .controls-overlay input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-12px;background-color:#5cd5eb;height:2rem;width:1rem}.video-container .controls-overlay input[type=range]:focus::-webkit-slider-thumb{border:1px solid #053a5f;outline:3px solid #053a5f;outline-offset:0.125rem}.video-container .controls-overlay input[type=range]::-moz-range-track{background-color:#053a5f;border-radius:0.5rem;height:0.5rem}.video-container .controls-overlay input[type=range]::-moz-range-thumb{border:none;border-radius:0;background-color:#5cd5eb;height:2rem;width:1rem}.video-container .controls-overlay input[type=range]:focus::-moz-range-thumb{border:1px solid #053a5f;outline:3px solid #053a5f;outline-offset:0.125rem}',a=r,n=class{constructor(o){e.registerInstance(this,o),this.handleTimeUpdate=()=>{const t=this.videoElement;i.videoStore.set("videoTime",this.videoElement.currentTime),this.isSeeking||(this.seekElement.value=(t.currentTime/t.duration*100).toString())},this.handlePlay=()=>{this.isPlaying=!0,this.videoElement.play()},this.handlePause=()=>{this.isPlaying=!1,this.videoElement.pause()},this.videoUrl=void 0,this.isSeeking=!1,this.isPlaying=!1}inputSeek(o){this.isSeeking||(this.isSeeking=!0)}handleSeek(o){if(this.isSeeking=!1,!this.videoElement)return;const t=o.target;this.videoElement.currentTime=parseFloat(t.value)/100*this.videoElement.duration,this.videoElement.play()}get progressPercent(){return this.videoElement?i.videoStore.get("videoTime")/this.videoElement.duration*100:0}render(){return e.h("div",{key:"98a898e225274dac6fda72126de7eb3fbe3b73b0",class:"video-container"},e.h("video",{key:"6ff6bd22efd243b45f7ee92a8f01b4fbe392d4b1",ref:o=>this.videoElement=o,onPlay:this.handlePlay,onPause:this.handlePause,onTimeUpdate:this.handleTimeUpdate,controls:!0},this.videoUrl&&e.h("source",{src:this.videoUrl,type:"video/mp4"})),e.h("div",{key:"2297c46d4b6d7803a884bbcf7c157573702880ed",class:"controls-overlay"},e.h("div",{key:"5207532096947074e5906edddab4e4c573d69795",class:"info"},e.h("div",{key:"f0f27ec9f18528ecae5cb705dcdd8579aee92f50",class:"title"},"Ad Video from Google"),e.h("div",{key:"b6c13515720c5706f6f30d588df1371ef1d435ae",class:"description"},"Found on the web...")),e.h("div",{key:"677f8ea6cbac199f4c5a3452e597dc0991c79d7a",class:"progress-bar"},e.h("input",{key:"e31aa4501345fb0eb2f6bbb1ebdad5317d8bface",type:"range",ref:o=>this.seekElement=o,min:"0",max:"100",class:"seek",value:this.progressPercent,onChange:o=>this.handleSeek(o),onClickCapture:o=>this.inputSeek(o)})),e.h("div",{key:"bdca2a6746d05ac8bc42feaf8a30029fb00c6cf4",class:"controls"},e.h("div",{key:"6c9d084306cb984770b28dce6d31cf268b62073e",class:"left"},e.h("button",{key:"6d128a31878bf394103bfcfb75c194d5733b5b6a",onClick:()=>this.handlePlay()}),e.h("button",{key:"cc3d3a8fb98b3c74bb8536f43726f71255045d24",onClick:()=>this.handlePause()})),e.h("div",{key:"e940328caf2215b148b97de6d0770d49f3621a5d",class:"right"},e.h("button",{key:"7feb3b396dc1463945ab6e44b6bfbcfe8c0e0e48",onClick:()=>this.handlePause()})))))}get el(){return e.getElement(this)}};n.style=a;exports.nylas_video_player=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const d=".video-preview{border:1px solid #eee;background-color:white;border:1px solid #c7dbf9;border-radius:6px;box-sizing:border-box}.video-preview .image{position:relative;background-size:cover;height:152px}.video-preview .time{font-size:12px;padding:5px;position:absolute;top:15px;left:15px;background-color:rgba(0, 0, 0, 0.5);color:white}.video-preview .body{padding:10px}.video-preview .body .title{color:#2a282f;font-size:18px;font-weight:600;letter-spacing:-4%}.video-preview .body .description{font-weight:400;font-size:14px;line-height:16.94px;letter-spacing:-4%;color:#625f68}.video-preview .footer{display:flex;align-items:center;justify-content:end;padding:10px}.video-preview .footer button{padding:8px 22px;border-radius:6px;color:white;background-color:#4169e1;font-weight:500;font-size:16px;line-height:19.36px;letter-spacing:-4%;text-align:center;cursor:pointer}",r=d,t="https://cdn.prod.website-files.com/606b1a109c3b857f6d84ad01/60b8fb956f01c6e5e16ec69f_Man_Waving_Facing%20Forward_Video_Call_750.jpg",i=class{constructor(o){e.registerInstance(this,o)}render(){return e.h("div",{key:"362c234e52b4516d863727880bf1d5f52875812c",class:"video-preview"},e.h("div",{key:"ad63e9b3cfc9a0e52a08913a5a65ac0f32efb4d9",class:"image",style:{backgroundImage:`url(${t})`}},e.h("div",{key:"9496ecdc42650371fd10abfa0741122cad57ad16",class:"time"},"1:52:33")),e.h("div",{key:"3e1018bc6babff15bc917d03b887b8143d42345d",class:"body"},e.h("div",{key:"290f289f8986b0e4f7d40363a6573fe416cf9a5c",class:"title"},"Product Team Meet"),e.h("div",{key:"706f65d2b1a07adb97e8fc4bd245abdc6ecd1c8c",class:"description"},"January 31, 2025")),e.h("div",{key:"b1e0390a0029677f8001cbdb164cc65fdef2e7a1",class:"footer"},e.h("button",{key:"b1599944c75678a78a2295bca26ffe851b8bbfd7"},"Watch")))}};i.style=r;exports.nylas_video_preview=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const d=".video-preview{border:1px solid #eee;background-color:white;border:1px solid #c7dbf9;border-radius:6px;box-sizing:border-box}.video-preview .image{position:relative;background-size:cover;height:152px}.video-preview .time{font-size:12px;padding:5px;position:absolute;top:15px;left:15px;background-color:rgba(0, 0, 0, 0.5);color:white}.video-preview .body{padding:10px}.video-preview .body .title{color:#2a282f;font-size:18px;font-weight:600;letter-spacing:-4%}.video-preview .body .description{font-weight:400;font-size:14px;line-height:16.94px;letter-spacing:-4%;color:#625f68}.video-preview .footer{display:flex;align-items:center;justify-content:end;padding:10px}.video-preview .footer button{padding:8px 22px;border-radius:6px;color:white;background-color:#4169e1;font-weight:500;font-size:16px;line-height:19.36px;letter-spacing:-4%;text-align:center;cursor:pointer}",r=d,t="https://cdn.prod.website-files.com/606b1a109c3b857f6d84ad01/60b8fb956f01c6e5e16ec69f_Man_Waving_Facing%20Forward_Video_Call_750.jpg",i=class{constructor(o){e.registerInstance(this,o)}render(){return e.h("div",{key:"362c234e52b4516d863727880bf1d5f52875812c",class:"video-preview"},e.h("div",{key:"ad63e9b3cfc9a0e52a08913a5a65ac0f32efb4d9",class:"image",style:{backgroundImage:`url(${t})`}},e.h("div",{key:"9496ecdc42650371fd10abfa0741122cad57ad16",class:"time"},"1:52:33")),e.h("div",{key:"3e1018bc6babff15bc917d03b887b8143d42345d",class:"body"},e.h("div",{key:"290f289f8986b0e4f7d40363a6573fe416cf9a5c",class:"title"},"Product Team Meet"),e.h("div",{key:"706f65d2b1a07adb97e8fc4bd245abdc6ecd1c8c",class:"description"},"January 31, 2025")),e.h("div",{key:"b1e0390a0029677f8001cbdb164cc65fdef2e7a1",class:"footer"},e.h("button",{key:"b1599944c75678a78a2295bca26ffe851b8bbfd7"},"Watch")))}};i.style=r;exports.nylas_video_preview=i;
@@ -1,4 +1,4 @@
1
- import { r as o, h as e } from "./index-b04bb93f.js";
1
+ import { r as o, h as e } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { r as e, h as t } from "./index-b04bb93f.js";
1
+ import { r as e, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-person-icon-h{display:flex}",i=s,t=class{constructor(r){e.registerInstance(this,r),this.width="14",this.height="16"}render(){return e.h("svg",{key:"9db075e484742d36218193c8a44c9506f0a1421d",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"bff1ab3306ccb1b16e2424e273de57b93fb05375",d:"M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z",fill:"currentColor"}))}};t.style=i;exports.person_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-person-icon-h{display:flex}",i=s,t=class{constructor(r){e.registerInstance(this,r),this.width="14",this.height="16"}render(){return e.h("svg",{key:"9db075e484742d36218193c8a44c9506f0a1421d",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"bff1ab3306ccb1b16e2424e273de57b93fb05375",d:"M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z",fill:"currentColor"}))}};t.style=i;exports.person_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as o, h as t } from "./index-b04bb93f.js";
1
+ import { r as o, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-play-icon-h{display:flex}",r=s,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"5e2e5392833bfec80155b4277372432de97684a2",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"7758ae8bac3229614c2c20ce100f105481b63b31",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=r;exports.play_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-play-icon-h{display:flex}",r=s,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"5e2e5392833bfec80155b4277372432de97684a2",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"7758ae8bac3229614c2c20ce100f105481b63b31",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=r;exports.play_icon=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}.radio-group{display:flex;flex-direction:column;gap:0.5rem}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}',o=r,a=class{constructor(l){e.registerInstance(this,l),this.nylasFormRadioChanged=e.createEvent(this,"nylasFormRadioChanged",7),this.componentType="radio-group",this.name="radio-group",this.options=[],this.defaultSelectedValue="",this.label=void 0,this.required=!1,this.readOnly=!1,this.selectedValue=void 0,this.error=""}handleDefaultSelectedValueChange(l){this.selectedValue=l}componentDidLoad(){this.selectedValue=this.defaultSelectedValue}handleBookingFormSubmitted(l){if(this.required&&!this.selectedValue){this.error=`${this.label} is required.`;return}this.error&&l.preventDefault()}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}handleChange(l){this.error="",this.selectedValue=l,this.nylasFormRadioChanged.emit({value:l,name:this.name,label:this.label})}render(){return e.h("div",{key:"a2d7cfe24d154d4751c7f8c33a623eaf97b16247",class:"radio-group"},e.h("slot",{key:"f7139c15a39d9ccc9122caf96f6c471849cad847",name:"label"},this.label&&e.h("p",{class:{error:!!this.error}},e.h("span",{class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"))),this.options.map(l=>e.h("label",null,e.h("div",{class:"radio-option"},e.h("input",{type:"radio",disabled:this.readOnly,readOnly:this.readOnly,title:this.readOnly?"read-only field":void 0,name:this.name,value:l.value,checked:this.selectedValue===l.value,onChange:()=>this.handleChange(l.value)}),e.h("p",null,e.h("span",{class:"title"},l.label),e.h("span",{class:"description"},l.description))))),this.error&&e.h("span",{class:"error help-text"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{defaultSelectedValue:["handleDefaultSelectedValueChange"]}}};a.style=o;exports.radio_button_group=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}.radio-group{display:flex;flex-direction:column;gap:0.5rem}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}',o=r,a=class{constructor(l){e.registerInstance(this,l),this.nylasFormRadioChanged=e.createEvent(this,"nylasFormRadioChanged",7),this.componentType="radio-group",this.name="radio-group",this.options=[],this.defaultSelectedValue="",this.label=void 0,this.required=!1,this.readOnly=!1,this.selectedValue=void 0,this.error=""}handleDefaultSelectedValueChange(l){this.selectedValue=l}componentDidLoad(){this.selectedValue=this.defaultSelectedValue}handleBookingFormSubmitted(l){if(this.required&&!this.selectedValue){this.error=`${this.label} is required.`;return}this.error&&l.preventDefault()}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}handleChange(l){this.error="",this.selectedValue=l,this.nylasFormRadioChanged.emit({value:l,name:this.name,label:this.label})}render(){return e.h("div",{key:"a2d7cfe24d154d4751c7f8c33a623eaf97b16247",class:"radio-group"},e.h("slot",{key:"f7139c15a39d9ccc9122caf96f6c471849cad847",name:"label"},this.label&&e.h("p",{class:{error:!!this.error}},e.h("span",{class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"))),this.options.map(l=>e.h("label",null,e.h("div",{class:"radio-option"},e.h("input",{type:"radio",disabled:this.readOnly,readOnly:this.readOnly,title:this.readOnly?"read-only field":void 0,name:this.name,value:l.value,checked:this.selectedValue===l.value,onChange:()=>this.handleChange(l.value)}),e.h("p",null,e.h("span",{class:"title"},l.label),e.h("span",{class:"description"},l.description))))),this.error&&e.h("span",{class:"error help-text"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{defaultSelectedValue:["handleDefaultSelectedValueChange"]}}};a.style=o;exports.radio_button_group=a;
@@ -1,4 +1,4 @@
1
- import { r as a, c as r, h as l, g as o } from "./index-b04bb93f.js";
1
+ import { r as a, c as r, h as l, g as o } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
package/dist/react.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FeedbackIcon=o.FeedbackIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCallSummary=o.NylasCallSummary;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDateComponent=o.NylasDateComponent;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasDisableEmails=o.NylasDisableEmails;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEditorTabsGroup=o.NylasEditorTabsGroup;exports.NylasEventCalendar=o.NylasEventCalendar;exports.NylasEventCapacity=o.NylasEventCapacity;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTimeslot=o.NylasEventTimeslot;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFeedbackForm=o.NylasFeedbackForm;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasKeyPoints=o.NylasKeyPoints;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasProvider=o.NylasProvider;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectEventType=o.NylasSelectEventType;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasTranscript=o.NylasTranscript;exports.NylasVideoPlayer=o.NylasVideoPlayer;exports.NylasVideoPreview=o.NylasVideoPreview;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FeedbackIcon=o.FeedbackIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCallSummary=o.NylasCallSummary;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDateComponent=o.NylasDateComponent;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasDisableEmails=o.NylasDisableEmails;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEditorTabsGroup=o.NylasEditorTabsGroup;exports.NylasEventCalendar=o.NylasEventCalendar;exports.NylasEventCapacity=o.NylasEventCapacity;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTimeslot=o.NylasEventTimeslot;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFeedbackForm=o.NylasFeedbackForm;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasKeyPoints=o.NylasKeyPoints;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasProvider=o.NylasProvider;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectEventType=o.NylasSelectEventType;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasTranscript=o.NylasTranscript;exports.NylasVideoPlayer=o.NylasVideoPlayer;exports.NylasVideoPreview=o.NylasVideoPreview;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a0 as l, a1 as i, a2 as c, a3 as t, a4 as r, a5 as y, a6 as b, a7 as I, a8 as N, a9 as d, aa as C, ab as m, ac as p, ad as g, ae as u, af as k, ag as E, ah as P, ai as v, aj as f, ak as S, al as T, am as h, an as B, ao as F, ap as L, aq as w, ar as D, as as A, at as R, au as M, av as G, aw as x, ax as W, ay as z, az as O, aA as U, aB as V, aC as q, aD as K, aE as Z, aF as _, aG as $, aH as j, aI as H, aJ as J, aK as Q, aL as X, aM as Y, aN as aa, aO as sa, aP as oa, aQ as na, aR as ea, aS as la, aT as ia, aU as ca, aV as ta, aW as ra, aX as ya, aY as ba, aZ as Ia, a_ as Na, a$ as da, b0 as Ca, b1 as ma, b2 as pa, b3 as ga, b4 as ua, b5 as ka, b6 as Ea, b7 as Pa, b8 as va, b9 as fa, ba as Sa, bb as Ta, bc as ha, bd as Ba, be as Fa, bf as La, bg as wa, bh as Da, N as Aa, bi as Ra, bj as Ma, bk as Ga, bl as xa, bm as Wa, bn as za, bo as Oa, bp as Ua, bq as Va, br as qa, bs as Ka, bt as Za, bu as _a, bv as $a, bw as ja, bx as Ha, by as Ja, bz as Qa, bA as Xa, bB as Ya, bC as as, bD as ss, bE as os, bF as ns, bG as es, bH as ls, bI as is, bJ as cs, bK as ts, bL as rs, bM as ys, bN as bs, bO as Is, bP as Ns, bQ as ds, bR as Cs, bS as ms, bT as ps, bU as gs, bV as us, bW as ks, bX as Es, bY as Ps, bZ as vs, b_ as fs, b$ as Ss, c0 as Ts, c1 as hs, c2 as Bs, c3 as Fs, c4 as Ls, c5 as ws, c6 as Ds, c7 as As, c8 as Rs, c9 as Ms, _ as Gs, $ as xs } from "./index-b04bb93f.js";
1
+ import { a0 as l, a1 as i, a2 as c, a3 as t, a4 as r, a5 as y, a6 as b, a7 as I, a8 as N, a9 as d, aa as C, ab as m, ac as p, ad as g, ae as u, af as k, ag as E, ah as P, ai as v, aj as f, ak as S, al as T, am as h, an as B, ao as F, ap as L, aq as w, ar as D, as as A, at as R, au as M, av as G, aw as x, ax as W, ay as z, az as O, aA as U, aB as V, aC as q, aD as K, aE as Z, aF as _, aG as $, aH as j, aI as H, aJ as J, aK as Q, aL as X, aM as Y, aN as aa, aO as sa, aP as oa, aQ as na, aR as ea, aS as la, aT as ia, aU as ca, aV as ta, aW as ra, aX as ya, aY as ba, aZ as Ia, a_ as Na, a$ as da, b0 as Ca, b1 as ma, b2 as pa, b3 as ga, b4 as ua, b5 as ka, b6 as Ea, b7 as Pa, b8 as va, b9 as fa, ba as Sa, bb as Ta, bc as ha, bd as Ba, be as Fa, bf as La, bg as wa, bh as Da, N as Aa, bi as Ra, bj as Ma, bk as Ga, bl as xa, bm as Wa, bn as za, bo as Oa, bp as Ua, bq as Va, br as qa, bs as Ka, bt as Za, bu as _a, bv as $a, bw as ja, bx as Ha, by as Ja, bz as Qa, bA as Xa, bB as Ya, bC as as, bD as ss, bE as os, bF as ns, bG as es, bH as ls, bI as is, bJ as cs, bK as ts, bL as rs, bM as ys, bN as bs, bO as Is, bP as Ns, bQ as ds, bR as Cs, bS as ms, bT as ps, bU as gs, bV as us, bW as ks, bX as Es, bY as Ps, bZ as vs, b_ as fs, b$ as Ss, c0 as Ts, c1 as hs, c2 as Bs, c3 as Fs, c4 as Ls, c5 as ws, c6 as Ds, c7 as As, c8 as Rs, c9 as Ms, _ as Gs, $ as xs } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",r=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"2289577084610eff3296acf680de688f00dd71d4",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"40d0221f5c1072988cac3fdba2f740b0b9e5cf45",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=r;exports.refresh_icon=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",r=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"2289577084610eff3296acf680de688f00dd71d4",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"40d0221f5c1072988cac3fdba2f740b0b9e5cf45",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=r;exports.refresh_icon=c;
@@ -1,4 +1,4 @@
1
- import { r as t, h as c } from "./index-b04bb93f.js";
1
+ import { r as t, h as c } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { d, R as m, g as P } from "./index-b04bb93f.js";
1
+ import { d, R as m, g as P } from "./index-9243e481.js";
2
2
  function b(e, o, c = "registerComponent") {
3
3
  return new CustomEvent(c, {
4
4
  bubbles: !0,
@@ -1 +1 @@
1
- "use strict";const s=require("./index-58c1674c.cjs");function m(e,o,i="registerComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function P(e,o,i="unregisterComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,i)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${i}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),u=n.filter(c=>t.includes(c));if(u.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${u.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=s.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0}),Object.defineProperty(t,"localPropsToProp",{get(){return e.localPropsToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=m(o,u,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=P(o,u,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
1
+ "use strict";const s=require("./index-efb6db79.cjs");function m(e,o,i="registerComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function P(e,o,i="unregisterComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,i)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${i}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),u=n.filter(c=>t.includes(c));if(u.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${u.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=s.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0}),Object.defineProperty(t,"localPropsToProp",{get(){return e.localPropsToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=m(o,u,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=P(o,u,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
@@ -1,4 +1,4 @@
1
- import { r as l, h as t } from "./index-b04bb93f.js";
1
+ import { r as l, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const l=".sc-reply-all-icon-h{display:flex}",r=l,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"40a78afb16849a17598619b19a8455101bb2fc8b",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"0e6dd58c4014df3e8612417973b5180faf485486",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};t.style=r;exports.reply_all_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const l=".sc-reply-all-icon-h{display:flex}",r=l,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"40a78afb16849a17598619b19a8455101bb2fc8b",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"0e6dd58c4014df3e8612417973b5180faf485486",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};t.style=r;exports.reply_all_icon=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=".sc-reply-icon-h{display:flex}",s=r,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"35e972347dc8f3b120808762889d2b3903f4d09e",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6b739327fc2730ea4f2ac32cba81467f26d5cd0f",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};t.style=s;exports.reply_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=".sc-reply-icon-h{display:flex}",s=r,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"35e972347dc8f3b120808762889d2b3903f4d09e",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"6b739327fc2730ea4f2ac32cba81467f26d5cd0f",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};t.style=s;exports.reply_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as i, h as t } from "./index-b04bb93f.js";
1
+ import { r as i, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { a as i } from "./index-b04bb93f.js";
1
+ import { a as i } from "./index-9243e481.js";
2
2
  function s(n = {}) {
3
3
  const o = {
4
4
  selectedConfiguration: {},
@@ -1 +1 @@
1
- "use strict";const i=require("./index-58c1674c.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],groupEvents:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],requiresSlug:!1,masterGroupEvents:{},isLoading:!1,...n},e=i.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async o=>{o||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
1
+ "use strict";const i=require("./index-efb6db79.cjs");function s(n={}){const r={selectedConfiguration:{},configurations:[],groupEvents:[],listConfigurationsNextCursor:null,calendars:[],currentUser:null,action:null,additionalParticipants:[],requiresSlug:!1,masterGroupEvents:{},isLoading:!1,...n},e=i.createStore(r);function t(){e.set("selectedConfiguration",{...n.selectedConfiguration})}return e.onChange("action",async o=>{o||t()}),{...e,resetSelectedConfiguration:t}}exports.CreateNylasSchedulerConfigStore=s;
@@ -1,4 +1,4 @@
1
- import { d as A, a as z, i as c, l as F } from "./index-b04bb93f.js";
1
+ import { d as A, a as z, i as c, l as F } from "./index-9243e481.js";
2
2
  var M;
3
3
  (function(l) {
4
4
  l.Error = "error", l.Warning = "warning", l.Info = "info", l.Success = "success";
@@ -120,7 +120,7 @@ class O {
120
120
  }
121
121
  async makeAPIRequest(e, t, s, i = {}) {
122
122
  try {
123
- const n = new URL(this.schedulerAPIURL), r = "1.4.2";
123
+ const n = new URL(this.schedulerAPIURL), r = "1.4.3";
124
124
  return n.pathname = e, await (await fetch(decodeURIComponent(n.toString()), {
125
125
  method: t,
126
126
  headers: {
@@ -1 +1 @@
1
- "use strict";const o=require("./index-58c1674c.cjs");var P;(function(c){c.Error="error",c.Warning="warning",c.Info="info",c.Success="success"})(P||(P={}));exports.ErrorCategory=void 0;(function(c){c.Component="component",c.Api="api",c.Auth="auth"})(exports.ErrorCategory||(exports.ErrorCategory={}));var D;(function(c){c.endtime_not_in_future="endtime_not_in_future",c.no_booking_info="no_booking_info",c.no_timeslot_selected="no_timeslot_selected",c.no_timezone_selected="no_timezone_selected",c.no_booking_id="no_booking_id",c.no_salt="no_salt",c.invalid_start_time="invalid_start_time",c.invalid_end_time="invalid_end_time",c.invalid_timezone="invalid_timezone",c.no_config_id="no_config_id"})(D||(D={}));class ${constructor(){this.component=e=>{const t=exports.ErrorCategory.Component,s=`${e} Error`;return{endtime_not_in_future:(i='"endtime" can not be in the future')=>({title:s,message:i,category:t}),no_booking_info:(i="No booking info provided")=>({title:s,message:i,category:t}),no_timeslot_selected:(i="No timeslot selected")=>({title:s,message:i,category:t}),no_timezone_selected:(i="No timezone selected")=>({title:s,message:i,category:t}),no_booking_id:(i="No booking id provided")=>({title:s,message:i,category:t}),no_salt:(i="No salt provided")=>({title:s,message:i,category:t}),invalid_start_time:(i="Invalid start time")=>({title:s,message:i,category:t}),invalid_end_time:(i="Invalid end time")=>({title:s,message:i,category:t}),invalid_timezone:(i="Invalid timezone")=>({title:s,message:i,category:t}),no_config_id:(i="No configuration id provided")=>({title:s,message:i,category:t})}},this.api=e=>{const t=exports.ErrorCategory.Api,s=`${e} Error`;return{invalid_session:i=>({title:s,message:i,category:t}),general_error:i=>({title:s,message:i,category:t}),internal_error:i=>({title:s,message:i,category:t}),invalid_request_error:i=>({title:s,message:i,category:t}),timeslot_not_available:i=>({title:s,message:i,category:t}),provider_error:i=>({title:s,message:i,category:t}),not_found_error:i=>({title:s,message:i,category:t})}}}}class C{constructor({schedulerAPIURL:e,schedulerStore:t,sessionId:s,configId:i,slug:n,clientId:r}){this.errors=new $,this.schedulerStore=t,this.schedulerAPIURL=e,this.sessionId=s,this.configId=i,this.slug=n,this.clientId=r}getHeaders(){return this.sessionId?{Authorization:`Bearer ${this.sessionId}`}:{}}async makeAPIRequest(e,t,s,i={}){try{const n=new URL(this.schedulerAPIURL),r="1.4.2";return n.pathname=e,await(await fetch(decodeURIComponent(n.toString()),{method:t,headers:{"Content-Type":"application/json",Origin:window.location.origin,"X-Source":"nylas-scheduling","X-Nylas-Web-Elements-Version":r,...i},body:s})).json()}catch(n){return{error:{message:n.message,title:"API request failed",type:"api"}}}}getErrorMessage(e){var s,i,n,r;let t=(e==null?void 0:e.message)||(e==null?void 0:e.title)||"Something went wrong";return(e==null?void 0:e.type)==="provider_error"&&(t=((i=(s=e==null?void 0:e.provider_error)==null?void 0:s.error)==null?void 0:i.message)||((r=(n=e==null?void 0:e.provider_error)==null?void 0:n.error)==null?void 0:r.title)||"Something went wrong"),t}setConfigId(e){this.configId=e}selectDate(e){this.schedulerStore.set("selectedDate",e),this.schedulerStore.set("selectedTimeslot",null)}selectTime(e){this.schedulerStore.set("selectedTimeslot",e)}selectTimezone(e){this.schedulerStore.set("selectedTimezone",e)}selectLanguage(e){this.schedulerStore.set("selectedLanguage",e),o.instance.changeLanguage(e)}async toggleAdditionalData(e){e||await this.refetchAvailability(),this.schedulerStore.set("showBookingForm",e)}setParticipantName(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,name:e}})}setParticipantEmail(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,email:e}})}async refetchAvailability(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1).getTime()/1e3,s=t<e.getTime()/1e3?Math.floor(e.getTime()/1e3):t,i=new Date(e.getFullYear(),e.getMonth()+1,1).getTime()/1e3;return await this.getAvailability(s,i)}async resetStoreStateAndFetchAvailability(){const e=new Date,t=await this.refetchAvailability(),s=this.schedulerStore.get("availability").find(n=>new Date(n.start_time)>new Date);let i=e;return s&&(i=s.start_time),this.schedulerStore.set("selectedDate",i),this.schedulerStore.set("eventInfo",null),this.schedulerStore.set("showBookingForm",!1),this.schedulerStore.set("selectedTimeslot",null),t}async setReschedule(e){this.schedulerStore.set("isLoading",!0);const t=this.schedulerStore.state.eventInfo;return t&&this.schedulerStore.set("reschedulingEventInfo",t),this.schedulerStore.set("rescheduleBookingId",e),await this.getUISettings(),await this.resetStoreStateAndFetchAvailability().finally(()=>{this.schedulerStore.set("isLoading",!1)})}async setCancel(e){this.schedulerStore.set("cancelBookingId",e)}async setReject(e){this.schedulerStore.set("rejectBookingId",e)}async resetCancel(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("cancelBookingId",""),this.schedulerStore.set("rejectBookingId",""),this.schedulerStore.set("cancelledEventInfo",null),e}async goBack(){this.schedulerStore.set("cancelBookingId","")}async resetConfirm(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("confirmedEventInfo",void 0),e}async bookTimeslot(e){var w,p,L;this.schedulerStore.set("isLoading",!0);const{selectedTimeslot:t,selectedTimezone:s,bookingInfo:i,selectedLanguage:n}=this.schedulerStore.state;if(!e&&!i)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_booking_info()};const r=(e==null?void 0:e.timeslot)||t;if(!r)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timeslot_selected()};const l=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:s,a=n||"en-US";if(!l)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timezone_selected()};const h=[...this.schedulerStore.get("availabilityOrderEmails")];let d="";const m=(r==null?void 0:r.emails)||[],f={};Object.entries((i==null?void 0:i.additionalFields)||{}).forEach(([u,E])=>{f[u]=E.value});const _=e?e==null?void 0:e.primaryParticipant:i==null?void 0:i.primaryParticipant,S=e?(e==null?void 0:e.guests)||[]:(i==null?void 0:i.guests)||[],y=e?e==null?void 0:e.additionalFields:f,g=this.getHeaders(),k=`/v3/scheduling/bookings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`;if(h.length===0){const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,event_id:(r==null?void 0:r.event_id)||void 0,master_id:(r==null?void 0:r.master_id)||void 0,calendar_id:(r==null?void 0:r.calendar_id)||void 0,email_language:this.getTwoLetterLanguageCode(a)}),g);return this.schedulerStore.set("isLoading",!1),"data"in u?(this.schedulerStore.set("eventInfo",u.data),u):{error:u.error}}for(;h.length>0;){if(d=h.shift(),!m.includes(d))continue;const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({participants:d?[{email:d}]:void 0,additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,email_language:this.getTwoLetterLanguageCode(a)}),g);if("data"in u)return this.schedulerStore.set("isLoading",!1),this.schedulerStore.set("eventInfo",u==null?void 0:u.data),u;if((p=(w=u.error)==null?void 0:w.message)!=null&&p.startsWith("The selected timeslot is unavailable"))continue;{this.schedulerStore.set("isLoading",!1);const E=(L=u.error)==null?void 0:L.type;let I=u.error;if(E&&E in this.errors.api(o.instance.t("createBookingErrorTitle"))){const A=this.getErrorMessage(I);I=this.errors.api(o.instance.t("createBookingErrorTitle"))[E](A)}return{error:I}}}return this.schedulerStore.set("isLoading",!1),{error:this.errors.api(o.instance.t("createBookingErrorTitle")).timeslot_not_available("The selected timeslot is unavailable")}}async getUISettings(){var r;this.schedulerStore.set("isLoading",!0);const e=this.schedulerStore.get("rescheduleBookingId"),t=this.getHeaders();let s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"";e&&s?s+=`&booking_id=${e}`:e&&(s+=`?booking_id=${e}`);const i=`/v3/scheduling/ui-settings${s}`,n=await this.makeAPIRequest(i,"GET",void 0,t);if("error"in n){this.schedulerStore.set("isLoading",!1);const l=(r=n.error)==null?void 0:r.type;let a=n.error;return l&&l in this.errors.api(o.instance.t("getUISettingErrorTitle"))&&(a=this.errors.api(o.instance.t("getUISettingErrorTitle"))[l]((a==null?void 0:a.message)||(a==null?void 0:a.title)||"Something went wrong")),{error:a}}return"data"in n&&this.schedulerStore.set("configSettings",n.data),this.schedulerStore.set("isLoading",!1),n}getTwoLetterLanguageCode(e){return e.split("-")[0]}getStartTimeWithMinBookingNotice(e){var n;const t=(n=this.schedulerStore.get("configSettings"))==null?void 0:n.scheduler,s=t==null?void 0:t.min_booking_notice;if(!s)return e;const i=new Date().getTime();return e<(i+s*60*1e3)/1e3?Math.floor((i+s*60*1e3)/1e3):e}getEndTimeForAvailableDaysInFuture(e){var r,l;const t=new Date,s=(l=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:l.available_days_in_future,i=Math.floor(o.addDaysToCurrentDate(t,s).getTime()/1e3);return Math.min(i,e)}async getAvailability(e=0,t=0){var f,_,S,y;this.schedulerStore.set("isLoading",!0);const s=new URLSearchParams,i=new Date,n=i.getTime();if(t&&t<n/1e3)return this.schedulerStore.set("isLoading",!1),{error:this.errors.component(o.instance.t("getAvailabilityErrorTitle")).endtime_not_in_future()};if(!e){const g=new Date(i.getFullYear(),i.getMonth(),1);e=Math.floor(g.getTime()/1e3)}if(!t){const g=new Date(i.getFullYear(),i.getMonth()+1,0);t=Math.floor(g.getTime()/1e3)}t=this.getEndTimeForAvailableDaysInFuture(t);const r=this.getStartTimeWithMinBookingNotice(e);e=r,t=r>t?r+1:t,s.append("start_time",encodeURIComponent(e.toString())),s.append("end_time",encodeURIComponent(t.toString())),this.configId&&!this.sessionId?s.append("configuration_id",encodeURIComponent(this.configId)):this.slug&&this.clientId&&!this.sessionId&&(s.append("slug",encodeURIComponent(this.slug)),s.append("client_id",encodeURIComponent(this.clientId)));const l=this.schedulerStore.get("rescheduleBookingId");l&&s.append("booking_id",encodeURIComponent(l));const a=s.toString(),h=`/v3/scheduling/availability${a?`?${a}`:""}`,d=this.getHeaders(),m=await this.makeAPIRequest(decodeURIComponent(h),"GET",void 0,d);if("error"in m){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const g=(f=m.error)==null?void 0:f.type;let b=m.error;if(g&&g in this.errors.api(o.instance.t("getAvailabilityErrorTitle"))){const k=this.getErrorMessage(b);b=this.errors.api(o.instance.t("getAvailabilityErrorTitle"))[g](k)}return{error:b}}if("data"in m){const k=(((S=(_=m.data)==null?void 0:_.time_slots)==null?void 0:S.map(p=>({...p,start_time:new Date(p.start_time*1e3),end_time:new Date(p.end_time*1e3)})))||[]).filter(p=>p.start_time.getTime()>n).sort((p,L)=>p.start_time.getTime()-L.start_time.getTime());this.schedulerStore.set("availability",k);const w=((y=m.data)==null?void 0:y.order)||[];this.schedulerStore.set("availabilityOrderEmails",w)}return this.schedulerStore.set("isLoading",!1),m}async cancelBooking(e,t){var l;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("cancelBookingErrorTitle")).no_booking_id()};const s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",i=`/v3/scheduling/bookings/${e}${s}`,n=this.getHeaders(),r=await this.makeAPIRequest(decodeURIComponent(i),"DELETE",JSON.stringify({action:"cancel",cancellation_reason:t}),n);if("error"in r){this.schedulerStore.set("isLoading",!1);const a=(l=r.error)==null?void 0:l.type;let h=r.error;if(a&&a in this.errors.api(o.instance.t("cancelBookingErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("cancelBookingErrorTitle"))[a](d)}return{error:h}}return this.schedulerStore.set("cancelledEventInfo",{booking_id:e}),this.schedulerStore.set("rescheduleBookingId",""),this.schedulerStore.set("isLoading",!1),r}async rescheduleBooking(e,t){var B;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("rescheduleBookingErrorTitle")).no_booking_id()};const s=this.errors.api(o.instance.t("rescheduleBookingErrorTitle")),i=this.errors.component(o.instance.t("rescheduleBookingErrorTitle")),{bookingInfo:n,selectedTimeslot:r,selectedTimezone:l,selectedLanguage:a}=this.schedulerStore.state,{startTime:h,endTime:d,timezone:m}=t,f=h||(r==null?void 0:r.start_time);if(!f)return{error:i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const _=d||(r==null?void 0:r.end_time);if(!_)return{error:i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const S=this.schedulerStore.get("availabilityOrderEmails");let y="";if(S.length>0){const T=(r==null?void 0:r.emails)||[];for(let v=0;v<S.length;v++)if(T.includes(S[v])){y=S[v];break}}const g=m||l;if(!g)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')};const b={};Object.entries((n==null?void 0:n.additionalFields)||{}).forEach(([T,v])=>{b[T]=v.value});const k=t?t==null?void 0:t.primaryParticipant:n==null?void 0:n.primaryParticipant,w=t?(t==null?void 0:t.guests)||[]:(n==null?void 0:n.guests)||[],p=t?t==null?void 0:t.additionalFields:b,L=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",u=`/v3/scheduling/bookings/${e}${L}`,E=this.getHeaders(),I=await this.makeAPIRequest(decodeURIComponent(u),"PATCH",JSON.stringify({start_time:f.getTime()/1e3,end_time:_.getTime()/1e3,timezone:g,additional_fields:p,guest:{...k},additional_guests:w,participants:y?[{email:y}]:void 0,email_language:this.getTwoLetterLanguageCode(a)}),E);if("error"in I){this.schedulerStore.set("isLoading",!1);const T=(B=I.error)==null?void 0:B.type;let v=I.error;if(T&&T in s){const M=this.getErrorMessage(v);v=s[T](M)}return{error:v}}const A=this.schedulerStore.get("reschedulingEventInfo");if("data"in I)this.schedulerStore.set("eventInfo",I==null?void 0:I.data);else if(A)this.schedulerStore.set("eventInfo",A);else{const T={booking_id:e};this.schedulerStore.set("eventInfo",T)}return this.schedulerStore.set("isLoading",!1),I}async updateBooking(e){var m;this.schedulerStore.set("isLoading",!0);const{bookingId:t,status:s,reason:i}=e,n=this.schedulerStore.get("organizerConfirmationSalt"),r=s==="confirmed"?o.instance.t("confirmBookingErrorTitle"):o.instance.t("rejectBookingErrorTitle");if(!t)return{error:this.errors.component(r).no_booking_id()};if(!n)return{error:this.errors.component(r).no_salt()};const l=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",a=`/v3/scheduling/bookings/${t}${l}`,h=this.getHeaders(),d=await this.makeAPIRequest(decodeURIComponent(a),"PUT",JSON.stringify({status:s,cancellation_reason:i,salt:n}),h);if("error"in d){this.schedulerStore.set("isLoading",!1);const f=(m=d.error)==null?void 0:m.type;let _=d.error;if(f&&f in this.errors.api(r)){const S=this.getErrorMessage(_);_=this.errors.api(r)[f](S)}return{error:_}}return"data"in d&&s==="confirmed"?this.schedulerStore.set("confirmedEventInfo",d==null?void 0:d.data):"request_id"in d&&s==="cancelled"&&this.schedulerStore.set("cancelledEventInfo",{booking_id:t}),this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("isLoading",!1),d}async validateGroupEventTimeslot(e){var r,l;this.schedulerStore.set("isLoading",!0);const t=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.configuration_id;if(!t)return{error:this.errors.component(o.instance.t("validateTimeslotErrorTitle")).no_config_id()};const s=this.getHeaders(),i=`/v3/scheduling/configurations/${t}/group-events/validate-timeslot`,n=await this.makeAPIRequest(decodeURIComponent(i),"POST",JSON.stringify({...e,start_time:e.start_time.getTime()/1e3,end_time:e.end_time.getTime()/1e3}),s);if("error"in n){this.schedulerStore.set("isLoading",!1);const a=(l=n.error)==null?void 0:l.type;let h=n.error;if(a&&a in this.errors.api(o.instance.t("validateTimeslotErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("validateTimeslotErrorTitle"))[a](d)}return this.refetchAvailability(),{error:h}}return this.schedulerStore.set("selectedTimeslot",e),this.schedulerStore.set("showBookingForm",!0),this.schedulerStore.set("isLoading",!1),n}}function R(c={}){const e={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:!1,availabilityOrderEmails:[],selectableDates:null,availability:[],eventDuration:0,state:"ready",eventInfo:null,cancelledEventInfo:null,isLoading:!1,nylasBranding:!0,...c};o.debug("[defaultNylasStoreState]: ",e);const t=o.createStore(e);return t.onChange("availability",s=>{o.debug("[availability]: ",s);const i=s.map(l=>l.start_time);o.debug("[selectableDates]: ",i),t.set("selectableDates",i);const n=s[0];if(!n)return;const r=Math.floor((n.end_time.getTime()-n.start_time.getTime())/6e4);o.debug("[durationMinutes]: ",r),t.set("eventDuration",r)}),t.reset=()=>{for(const s in e){const i=e[s];t.set(s,i)}},t}exports.CreateNylasSchedulerStore=R;exports.NylaSchedulerAPIConnector=C;
1
+ "use strict";const o=require("./index-efb6db79.cjs");var P;(function(c){c.Error="error",c.Warning="warning",c.Info="info",c.Success="success"})(P||(P={}));exports.ErrorCategory=void 0;(function(c){c.Component="component",c.Api="api",c.Auth="auth"})(exports.ErrorCategory||(exports.ErrorCategory={}));var D;(function(c){c.endtime_not_in_future="endtime_not_in_future",c.no_booking_info="no_booking_info",c.no_timeslot_selected="no_timeslot_selected",c.no_timezone_selected="no_timezone_selected",c.no_booking_id="no_booking_id",c.no_salt="no_salt",c.invalid_start_time="invalid_start_time",c.invalid_end_time="invalid_end_time",c.invalid_timezone="invalid_timezone",c.no_config_id="no_config_id"})(D||(D={}));class ${constructor(){this.component=e=>{const t=exports.ErrorCategory.Component,s=`${e} Error`;return{endtime_not_in_future:(i='"endtime" can not be in the future')=>({title:s,message:i,category:t}),no_booking_info:(i="No booking info provided")=>({title:s,message:i,category:t}),no_timeslot_selected:(i="No timeslot selected")=>({title:s,message:i,category:t}),no_timezone_selected:(i="No timezone selected")=>({title:s,message:i,category:t}),no_booking_id:(i="No booking id provided")=>({title:s,message:i,category:t}),no_salt:(i="No salt provided")=>({title:s,message:i,category:t}),invalid_start_time:(i="Invalid start time")=>({title:s,message:i,category:t}),invalid_end_time:(i="Invalid end time")=>({title:s,message:i,category:t}),invalid_timezone:(i="Invalid timezone")=>({title:s,message:i,category:t}),no_config_id:(i="No configuration id provided")=>({title:s,message:i,category:t})}},this.api=e=>{const t=exports.ErrorCategory.Api,s=`${e} Error`;return{invalid_session:i=>({title:s,message:i,category:t}),general_error:i=>({title:s,message:i,category:t}),internal_error:i=>({title:s,message:i,category:t}),invalid_request_error:i=>({title:s,message:i,category:t}),timeslot_not_available:i=>({title:s,message:i,category:t}),provider_error:i=>({title:s,message:i,category:t}),not_found_error:i=>({title:s,message:i,category:t})}}}}class C{constructor({schedulerAPIURL:e,schedulerStore:t,sessionId:s,configId:i,slug:n,clientId:r}){this.errors=new $,this.schedulerStore=t,this.schedulerAPIURL=e,this.sessionId=s,this.configId=i,this.slug=n,this.clientId=r}getHeaders(){return this.sessionId?{Authorization:`Bearer ${this.sessionId}`}:{}}async makeAPIRequest(e,t,s,i={}){try{const n=new URL(this.schedulerAPIURL),r="1.4.3";return n.pathname=e,await(await fetch(decodeURIComponent(n.toString()),{method:t,headers:{"Content-Type":"application/json",Origin:window.location.origin,"X-Source":"nylas-scheduling","X-Nylas-Web-Elements-Version":r,...i},body:s})).json()}catch(n){return{error:{message:n.message,title:"API request failed",type:"api"}}}}getErrorMessage(e){var s,i,n,r;let t=(e==null?void 0:e.message)||(e==null?void 0:e.title)||"Something went wrong";return(e==null?void 0:e.type)==="provider_error"&&(t=((i=(s=e==null?void 0:e.provider_error)==null?void 0:s.error)==null?void 0:i.message)||((r=(n=e==null?void 0:e.provider_error)==null?void 0:n.error)==null?void 0:r.title)||"Something went wrong"),t}setConfigId(e){this.configId=e}selectDate(e){this.schedulerStore.set("selectedDate",e),this.schedulerStore.set("selectedTimeslot",null)}selectTime(e){this.schedulerStore.set("selectedTimeslot",e)}selectTimezone(e){this.schedulerStore.set("selectedTimezone",e)}selectLanguage(e){this.schedulerStore.set("selectedLanguage",e),o.instance.changeLanguage(e)}async toggleAdditionalData(e){e||await this.refetchAvailability(),this.schedulerStore.set("showBookingForm",e)}setParticipantName(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,name:e}})}setParticipantEmail(e){const{bookingInfo:t}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...t,primaryParticipant:{...t==null?void 0:t.primaryParticipant,email:e}})}async refetchAvailability(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1).getTime()/1e3,s=t<e.getTime()/1e3?Math.floor(e.getTime()/1e3):t,i=new Date(e.getFullYear(),e.getMonth()+1,1).getTime()/1e3;return await this.getAvailability(s,i)}async resetStoreStateAndFetchAvailability(){const e=new Date,t=await this.refetchAvailability(),s=this.schedulerStore.get("availability").find(n=>new Date(n.start_time)>new Date);let i=e;return s&&(i=s.start_time),this.schedulerStore.set("selectedDate",i),this.schedulerStore.set("eventInfo",null),this.schedulerStore.set("showBookingForm",!1),this.schedulerStore.set("selectedTimeslot",null),t}async setReschedule(e){this.schedulerStore.set("isLoading",!0);const t=this.schedulerStore.state.eventInfo;return t&&this.schedulerStore.set("reschedulingEventInfo",t),this.schedulerStore.set("rescheduleBookingId",e),await this.getUISettings(),await this.resetStoreStateAndFetchAvailability().finally(()=>{this.schedulerStore.set("isLoading",!1)})}async setCancel(e){this.schedulerStore.set("cancelBookingId",e)}async setReject(e){this.schedulerStore.set("rejectBookingId",e)}async resetCancel(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("cancelBookingId",""),this.schedulerStore.set("rejectBookingId",""),this.schedulerStore.set("cancelledEventInfo",null),e}async goBack(){this.schedulerStore.set("cancelBookingId","")}async resetConfirm(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("confirmedEventInfo",void 0),e}async bookTimeslot(e){var w,p,L;this.schedulerStore.set("isLoading",!0);const{selectedTimeslot:t,selectedTimezone:s,bookingInfo:i,selectedLanguage:n}=this.schedulerStore.state;if(!e&&!i)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_booking_info()};const r=(e==null?void 0:e.timeslot)||t;if(!r)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timeslot_selected()};const l=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:s,a=n||"en-US";if(!l)return{error:this.errors.component(o.instance.t("createBookingErrorTitle")).no_timezone_selected()};const h=[...this.schedulerStore.get("availabilityOrderEmails")];let d="";const m=(r==null?void 0:r.emails)||[],f={};Object.entries((i==null?void 0:i.additionalFields)||{}).forEach(([u,E])=>{f[u]=E.value});const _=e?e==null?void 0:e.primaryParticipant:i==null?void 0:i.primaryParticipant,S=e?(e==null?void 0:e.guests)||[]:(i==null?void 0:i.guests)||[],y=e?e==null?void 0:e.additionalFields:f,g=this.getHeaders(),k=`/v3/scheduling/bookings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`;if(h.length===0){const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,event_id:(r==null?void 0:r.event_id)||void 0,master_id:(r==null?void 0:r.master_id)||void 0,calendar_id:(r==null?void 0:r.calendar_id)||void 0,email_language:this.getTwoLetterLanguageCode(a)}),g);return this.schedulerStore.set("isLoading",!1),"data"in u?(this.schedulerStore.set("eventInfo",u.data),u):{error:u.error}}for(;h.length>0;){if(d=h.shift(),!m.includes(d))continue;const u=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({participants:d?[{email:d}]:void 0,additional_fields:y,additional_guests:S,guest:{..._},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,email_language:this.getTwoLetterLanguageCode(a)}),g);if("data"in u)return this.schedulerStore.set("isLoading",!1),this.schedulerStore.set("eventInfo",u==null?void 0:u.data),u;if((p=(w=u.error)==null?void 0:w.message)!=null&&p.startsWith("The selected timeslot is unavailable"))continue;{this.schedulerStore.set("isLoading",!1);const E=(L=u.error)==null?void 0:L.type;let I=u.error;if(E&&E in this.errors.api(o.instance.t("createBookingErrorTitle"))){const A=this.getErrorMessage(I);I=this.errors.api(o.instance.t("createBookingErrorTitle"))[E](A)}return{error:I}}}return this.schedulerStore.set("isLoading",!1),{error:this.errors.api(o.instance.t("createBookingErrorTitle")).timeslot_not_available("The selected timeslot is unavailable")}}async getUISettings(){var r;this.schedulerStore.set("isLoading",!0);const e=this.schedulerStore.get("rescheduleBookingId"),t=this.getHeaders();let s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"";e&&s?s+=`&booking_id=${e}`:e&&(s+=`?booking_id=${e}`);const i=`/v3/scheduling/ui-settings${s}`,n=await this.makeAPIRequest(i,"GET",void 0,t);if("error"in n){this.schedulerStore.set("isLoading",!1);const l=(r=n.error)==null?void 0:r.type;let a=n.error;return l&&l in this.errors.api(o.instance.t("getUISettingErrorTitle"))&&(a=this.errors.api(o.instance.t("getUISettingErrorTitle"))[l]((a==null?void 0:a.message)||(a==null?void 0:a.title)||"Something went wrong")),{error:a}}return"data"in n&&this.schedulerStore.set("configSettings",n.data),this.schedulerStore.set("isLoading",!1),n}getTwoLetterLanguageCode(e){return e.split("-")[0]}getStartTimeWithMinBookingNotice(e){var n;const t=(n=this.schedulerStore.get("configSettings"))==null?void 0:n.scheduler,s=t==null?void 0:t.min_booking_notice;if(!s)return e;const i=new Date().getTime();return e<(i+s*60*1e3)/1e3?Math.floor((i+s*60*1e3)/1e3):e}getEndTimeForAvailableDaysInFuture(e){var r,l;const t=new Date,s=(l=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:l.available_days_in_future,i=Math.floor(o.addDaysToCurrentDate(t,s).getTime()/1e3);return Math.min(i,e)}async getAvailability(e=0,t=0){var f,_,S,y;this.schedulerStore.set("isLoading",!0);const s=new URLSearchParams,i=new Date,n=i.getTime();if(t&&t<n/1e3)return this.schedulerStore.set("isLoading",!1),{error:this.errors.component(o.instance.t("getAvailabilityErrorTitle")).endtime_not_in_future()};if(!e){const g=new Date(i.getFullYear(),i.getMonth(),1);e=Math.floor(g.getTime()/1e3)}if(!t){const g=new Date(i.getFullYear(),i.getMonth()+1,0);t=Math.floor(g.getTime()/1e3)}t=this.getEndTimeForAvailableDaysInFuture(t);const r=this.getStartTimeWithMinBookingNotice(e);e=r,t=r>t?r+1:t,s.append("start_time",encodeURIComponent(e.toString())),s.append("end_time",encodeURIComponent(t.toString())),this.configId&&!this.sessionId?s.append("configuration_id",encodeURIComponent(this.configId)):this.slug&&this.clientId&&!this.sessionId&&(s.append("slug",encodeURIComponent(this.slug)),s.append("client_id",encodeURIComponent(this.clientId)));const l=this.schedulerStore.get("rescheduleBookingId");l&&s.append("booking_id",encodeURIComponent(l));const a=s.toString(),h=`/v3/scheduling/availability${a?`?${a}`:""}`,d=this.getHeaders(),m=await this.makeAPIRequest(decodeURIComponent(h),"GET",void 0,d);if("error"in m){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const g=(f=m.error)==null?void 0:f.type;let b=m.error;if(g&&g in this.errors.api(o.instance.t("getAvailabilityErrorTitle"))){const k=this.getErrorMessage(b);b=this.errors.api(o.instance.t("getAvailabilityErrorTitle"))[g](k)}return{error:b}}if("data"in m){const k=(((S=(_=m.data)==null?void 0:_.time_slots)==null?void 0:S.map(p=>({...p,start_time:new Date(p.start_time*1e3),end_time:new Date(p.end_time*1e3)})))||[]).filter(p=>p.start_time.getTime()>n).sort((p,L)=>p.start_time.getTime()-L.start_time.getTime());this.schedulerStore.set("availability",k);const w=((y=m.data)==null?void 0:y.order)||[];this.schedulerStore.set("availabilityOrderEmails",w)}return this.schedulerStore.set("isLoading",!1),m}async cancelBooking(e,t){var l;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("cancelBookingErrorTitle")).no_booking_id()};const s=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",i=`/v3/scheduling/bookings/${e}${s}`,n=this.getHeaders(),r=await this.makeAPIRequest(decodeURIComponent(i),"DELETE",JSON.stringify({action:"cancel",cancellation_reason:t}),n);if("error"in r){this.schedulerStore.set("isLoading",!1);const a=(l=r.error)==null?void 0:l.type;let h=r.error;if(a&&a in this.errors.api(o.instance.t("cancelBookingErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("cancelBookingErrorTitle"))[a](d)}return{error:h}}return this.schedulerStore.set("cancelledEventInfo",{booking_id:e}),this.schedulerStore.set("rescheduleBookingId",""),this.schedulerStore.set("isLoading",!1),r}async rescheduleBooking(e,t){var B;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(o.instance.t("rescheduleBookingErrorTitle")).no_booking_id()};const s=this.errors.api(o.instance.t("rescheduleBookingErrorTitle")),i=this.errors.component(o.instance.t("rescheduleBookingErrorTitle")),{bookingInfo:n,selectedTimeslot:r,selectedTimezone:l,selectedLanguage:a}=this.schedulerStore.state,{startTime:h,endTime:d,timezone:m}=t,f=h||(r==null?void 0:r.start_time);if(!f)return{error:i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const _=d||(r==null?void 0:r.end_time);if(!_)return{error:i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const S=this.schedulerStore.get("availabilityOrderEmails");let y="";if(S.length>0){const T=(r==null?void 0:r.emails)||[];for(let v=0;v<S.length;v++)if(T.includes(S[v])){y=S[v];break}}const g=m||l;if(!g)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')};const b={};Object.entries((n==null?void 0:n.additionalFields)||{}).forEach(([T,v])=>{b[T]=v.value});const k=t?t==null?void 0:t.primaryParticipant:n==null?void 0:n.primaryParticipant,w=t?(t==null?void 0:t.guests)||[]:(n==null?void 0:n.guests)||[],p=t?t==null?void 0:t.additionalFields:b,L=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",u=`/v3/scheduling/bookings/${e}${L}`,E=this.getHeaders(),I=await this.makeAPIRequest(decodeURIComponent(u),"PATCH",JSON.stringify({start_time:f.getTime()/1e3,end_time:_.getTime()/1e3,timezone:g,additional_fields:p,guest:{...k},additional_guests:w,participants:y?[{email:y}]:void 0,email_language:this.getTwoLetterLanguageCode(a)}),E);if("error"in I){this.schedulerStore.set("isLoading",!1);const T=(B=I.error)==null?void 0:B.type;let v=I.error;if(T&&T in s){const M=this.getErrorMessage(v);v=s[T](M)}return{error:v}}const A=this.schedulerStore.get("reschedulingEventInfo");if("data"in I)this.schedulerStore.set("eventInfo",I==null?void 0:I.data);else if(A)this.schedulerStore.set("eventInfo",A);else{const T={booking_id:e};this.schedulerStore.set("eventInfo",T)}return this.schedulerStore.set("isLoading",!1),I}async updateBooking(e){var m;this.schedulerStore.set("isLoading",!0);const{bookingId:t,status:s,reason:i}=e,n=this.schedulerStore.get("organizerConfirmationSalt"),r=s==="confirmed"?o.instance.t("confirmBookingErrorTitle"):o.instance.t("rejectBookingErrorTitle");if(!t)return{error:this.errors.component(r).no_booking_id()};if(!n)return{error:this.errors.component(r).no_salt()};const l=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",a=`/v3/scheduling/bookings/${t}${l}`,h=this.getHeaders(),d=await this.makeAPIRequest(decodeURIComponent(a),"PUT",JSON.stringify({status:s,cancellation_reason:i,salt:n}),h);if("error"in d){this.schedulerStore.set("isLoading",!1);const f=(m=d.error)==null?void 0:m.type;let _=d.error;if(f&&f in this.errors.api(r)){const S=this.getErrorMessage(_);_=this.errors.api(r)[f](S)}return{error:_}}return"data"in d&&s==="confirmed"?this.schedulerStore.set("confirmedEventInfo",d==null?void 0:d.data):"request_id"in d&&s==="cancelled"&&this.schedulerStore.set("cancelledEventInfo",{booking_id:t}),this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("isLoading",!1),d}async validateGroupEventTimeslot(e){var r,l;this.schedulerStore.set("isLoading",!0);const t=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.configuration_id;if(!t)return{error:this.errors.component(o.instance.t("validateTimeslotErrorTitle")).no_config_id()};const s=this.getHeaders(),i=`/v3/scheduling/configurations/${t}/group-events/validate-timeslot`,n=await this.makeAPIRequest(decodeURIComponent(i),"POST",JSON.stringify({...e,start_time:e.start_time.getTime()/1e3,end_time:e.end_time.getTime()/1e3}),s);if("error"in n){this.schedulerStore.set("isLoading",!1);const a=(l=n.error)==null?void 0:l.type;let h=n.error;if(a&&a in this.errors.api(o.instance.t("validateTimeslotErrorTitle"))){const d=this.getErrorMessage(h);h=this.errors.api(o.instance.t("validateTimeslotErrorTitle"))[a](d)}return this.refetchAvailability(),{error:h}}return this.schedulerStore.set("selectedTimeslot",e),this.schedulerStore.set("showBookingForm",!0),this.schedulerStore.set("isLoading",!1),n}}function R(c={}){const e={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:!1,availabilityOrderEmails:[],selectableDates:null,availability:[],eventDuration:0,state:"ready",eventInfo:null,cancelledEventInfo:null,isLoading:!1,nylasBranding:!0,...c};o.debug("[defaultNylasStoreState]: ",e);const t=o.createStore(e);return t.onChange("availability",s=>{o.debug("[availability]: ",s);const i=s.map(l=>l.start_time);o.debug("[selectableDates]: ",i),t.set("selectableDates",i);const n=s[0];if(!n)return;const r=Math.floor((n.end_time.getTime()-n.start_time.getTime())/6e4);o.debug("[durationMinutes]: ",r),t.set("eventDuration",r)}),t.reset=()=>{for(const s in e){const i=e[s];t.set(s,i)}},t}exports.CreateNylasSchedulerStore=R;exports.NylaSchedulerAPIConnector=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const c=".sc-sent-icon-h{display:flex}",i=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"fe1f3a8dccc7ed5b4b008b3e7ba2b6aa32bf75df",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"319aeb3c8bdce5002c624d4926ec3cb0525d396c",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"d05924ef434bb7976571e3f9fe2b00ffaac6c770",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"0268790deda555924f82a772dcd49783aec96c82",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.sent_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const c=".sc-sent-icon-h{display:flex}",i=c,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"fe1f3a8dccc7ed5b4b008b3e7ba2b6aa32bf75df",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"319aeb3c8bdce5002c624d4926ec3cb0525d396c",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"d05924ef434bb7976571e3f9fe2b00ffaac6c770",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"0268790deda555924f82a772dcd49783aec96c82",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.sent_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as s, h as t } from "./index-b04bb93f.js";
1
+ import { r as s, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { r as e, h as t } from "./index-b04bb93f.js";
1
+ import { r as e, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-spam-icon-h{display:flex}",c=i,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"84d7e0e5235fe887cc3d239ce69e0986a1d3014d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"b0b2350a1cf0d3ba1fdc3d099c9882ca095e1369",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"}),e.h("path",{key:"a2b5344063a37dc44ff52d46354443f774bc7c86",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=c;exports.spam_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-spam-icon-h{display:flex}",c=i,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"84d7e0e5235fe887cc3d239ce69e0986a1d3014d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"b0b2350a1cf0d3ba1fdc3d099c9882ca095e1369",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"}),e.h("path",{key:"a2b5344063a37dc44ff52d46354443f774bc7c86",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=c;exports.spam_icon=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-star-icon-h{display:flex}",r=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"49798910e83f877f8413abb5c4b11cccacab77eb",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8e0bddce209f480ad0e39574718ccda799f80c70",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"}))}};e.style=r;exports.star_icon=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-star-icon-h{display:flex}",r=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"49798910e83f877f8413abb5c4b11cccacab77eb",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8e0bddce209f480ad0e39574718ccda799f80c70",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"}))}};e.style=r;exports.star_icon=e;
@@ -1,4 +1,4 @@
1
- import { r as e, h as t } from "./index-b04bb93f.js";
1
+ import { r as e, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { r as s, h as t } from "./index-b04bb93f.js";
1
+ import { r as s, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=".sc-stop-icon-h{display:flex}",s=o,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"6979a1534afefd8f03cac18490c593dc6e95327e",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"22c22dbe65bb682d0c0c51ef4b9b23b26b29d729",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=s;exports.stop_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=".sc-stop-icon-h{display:flex}",s=o,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"6979a1534afefd8f03cac18490c593dc6e95327e",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"22c22dbe65bb682d0c0c51ef4b9b23b26b29d729",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=s;exports.stop_icon=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}textarea:read-only{background-color:var(--nylas-base-100);cursor:not-allowed}',s=o,l=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.name="textarea",this.defaultValue=void 0,this.label="",this.placeholder="",this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.maxLength=255,this.type="multi_line_text",this.tooltip="",this.value="",this.error=""}componentDidLoad(){this.value=e.sanitize(this.defaultValue||"")}handleBookingFormSubmitted(a){this.validate(this.value),this.error&&a.preventDefault()}handletriggerValidation(a){this.validate(this.value),this.error&&a.preventDefault()}handleInput(a){this.error="";const r=a.target;this.value=e.sanitize(r.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(a){this.required&&!a?this.error=`${this.label} is required.`:a.length>this.maxLength?this.error=`${this.label} cannot exceed ${this.maxLength} characters.`:this.error=""}render(){return e.h("label",{key:"dfa36b319e151ee064e1dce59391cc1be9cd2284",part:"tc__label",class:{error:!!this.error}},e.h("p",{key:"5dfc3110496c05244225cabc70ccca711b4cbb3b"},e.h("span",{key:"87c2996b6a258d78f829fe57bcab0654216ec3b9",class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"),this.tooltip&&e.h("tooltip-component",null,e.h("info-icon",{slot:"tooltip-icon"}),e.h("span",{slot:"tooltip-content"},this.tooltip))),e.h("textarea",{key:"ed5c0c9044999404daa9282b70e31698a4571463",name:this.name,title:this.readOnly?"read-only field":void 0,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:a=>this.handleInput(a),class:{error:!!this.error},part:"tc__textarea"}),this.error&&e.h("span",{class:"error help-text"},this.error))}};l.style=s;exports.textarea_component=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o=':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}textarea:read-only{background-color:var(--nylas-base-100);cursor:not-allowed}',s=o,l=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.name="textarea",this.defaultValue=void 0,this.label="",this.placeholder="",this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.maxLength=255,this.type="multi_line_text",this.tooltip="",this.value="",this.error=""}componentDidLoad(){this.value=e.sanitize(this.defaultValue||"")}handleBookingFormSubmitted(a){this.validate(this.value),this.error&&a.preventDefault()}handletriggerValidation(a){this.validate(this.value),this.error&&a.preventDefault()}handleInput(a){this.error="";const r=a.target;this.value=e.sanitize(r.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(a){this.required&&!a?this.error=`${this.label} is required.`:a.length>this.maxLength?this.error=`${this.label} cannot exceed ${this.maxLength} characters.`:this.error=""}render(){return e.h("label",{key:"dfa36b319e151ee064e1dce59391cc1be9cd2284",part:"tc__label",class:{error:!!this.error}},e.h("p",{key:"5dfc3110496c05244225cabc70ccca711b4cbb3b"},e.h("span",{key:"87c2996b6a258d78f829fe57bcab0654216ec3b9",class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"),this.tooltip&&e.h("tooltip-component",null,e.h("info-icon",{slot:"tooltip-icon"}),e.h("span",{slot:"tooltip-content"},this.tooltip))),e.h("textarea",{key:"ed5c0c9044999404daa9282b70e31698a4571463",name:this.name,title:this.readOnly?"read-only field":void 0,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:a=>this.handleInput(a),class:{error:!!this.error},part:"tc__textarea"}),this.error&&e.h("span",{class:"error help-text"},this.error))}};l.style=s;exports.textarea_component=l;
@@ -1,4 +1,4 @@
1
- import { r as o, c as s, y as l, h as a } from "./index-b04bb93f.js";
1
+ import { r as o, c as s, y as l, h as a } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { r as s, c as o, h as l } from "./index-b04bb93f.js";
1
+ import { r as s, c as o, h as l } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o='.switch{--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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-300);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:"";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}',a=o,s=class{constructor(l){e.registerInstance(this,l),this.nylasFormSwitchToggled=e.createEvent(this,"nylasFormSwitchToggled",7),this.name="toggle-switch",this.checked=!1,this.label="",this.isChecked=this.checked}checkedChanged(l){this.isChecked=l}componentWillLoad(){this.isChecked=this.checked}toggleCheck(){this.isChecked=!this.isChecked,this.nylasFormSwitchToggled.emit({checked:this.isChecked,name:this.name,label:this.label})}render(){return e.h("label",{key:"84614e31082d280e620ca84ec55da4fe980a574f",class:"switch",part:"ts_label"},e.h("input",{key:"8d7fc090166da5f683a9449699002609a4101d08",type:"checkbox",part:"ts_input",name:this.name,checked:this.isChecked,onChange:()=>this.toggleCheck()}),e.h("div",{key:"98579c25255867974db6503ed73f09acf6463643",class:"slider round",part:"ts_slider"}))}static get watchers(){return{checked:["checkedChanged"]}}};s.style=a;exports.toggle_switch=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const o='.switch{--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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-300);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:"";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}',a=o,s=class{constructor(l){e.registerInstance(this,l),this.nylasFormSwitchToggled=e.createEvent(this,"nylasFormSwitchToggled",7),this.name="toggle-switch",this.checked=!1,this.label="",this.isChecked=this.checked}checkedChanged(l){this.isChecked=l}componentWillLoad(){this.isChecked=this.checked}toggleCheck(){this.isChecked=!this.isChecked,this.nylasFormSwitchToggled.emit({checked:this.isChecked,name:this.name,label:this.label})}render(){return e.h("label",{key:"84614e31082d280e620ca84ec55da4fe980a574f",class:"switch",part:"ts_label"},e.h("input",{key:"8d7fc090166da5f683a9449699002609a4101d08",type:"checkbox",part:"ts_input",name:this.name,checked:this.isChecked,onChange:()=>this.toggleCheck()}),e.h("div",{key:"98579c25255867974db6503ed73f09acf6463643",class:"slider round",part:"ts_slider"}))}static get watchers(){return{checked:["checkedChanged"]}}};s.style=a;exports.toggle_switch=s;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-translate-icon-h{display:flex}",r=i,e=class{constructor(t){C.registerInstance(this,t),this.width="16",this.height="16"}render(){return C.h("svg",{key:"c21c78030f2808ce98fdab4a26aefb57352c0057",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 20 20",fill:"none"},C.h("path",{key:"b3091510c8548ce6bb7f185ed51acb17e8b912bf",fill:"currentColor",d:"M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z"}))}};e.style=r;exports.translate_icon=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-translate-icon-h{display:flex}",r=i,e=class{constructor(t){C.registerInstance(this,t),this.width="16",this.height="16"}render(){return C.h("svg",{key:"c21c78030f2808ce98fdab4a26aefb57352c0057",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 20 20",fill:"none"},C.h("path",{key:"b3091510c8548ce6bb7f185ed51acb17e8b912bf",fill:"currentColor",d:"M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z"}))}};e.style=r;exports.translate_icon=e;
@@ -1,4 +1,4 @@
1
- import { r as e, h as C } from "./index-b04bb93f.js";
1
+ import { r as e, h as C } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-58c1674c.cjs");require("react");require("react/jsx-runtime");require("react-dom");const a=".sc-trash-fill-icon-h{display:flex}",i=a,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"8a7e9df694b6cb8ad4ffdac16eda2f6f8c90913f",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"c4f9f76f3deed708c969f7c2784647196414c6c8",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"a5561ec74252af4054839f86642f85ac191f7edb",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"}),e.h("path",{key:"2eaaba52f039b93e5a65e8a7d5d97a9265e77f55",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"536c90ff05cc5e11b8e4c3c1a7b6656ea8acf8c8",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.trash_fill_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-efb6db79.cjs");require("react");require("react/jsx-runtime");require("react-dom");const a=".sc-trash-fill-icon-h{display:flex}",i=a,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"8a7e9df694b6cb8ad4ffdac16eda2f6f8c90913f",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"c4f9f76f3deed708c969f7c2784647196414c6c8",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"a5561ec74252af4054839f86642f85ac191f7edb",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"}),e.h("path",{key:"2eaaba52f039b93e5a65e8a7d5d97a9265e77f55",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"536c90ff05cc5e11b8e4c3c1a7b6656ea8acf8c8",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};t.style=i;exports.trash_fill_icon=t;
@@ -1,4 +1,4 @@
1
- import { r as s, h as t } from "./index-b04bb93f.js";
1
+ import { r as s, h as t } from "./index-9243e481.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "react-dom";