@nylas/react 1.1.0 → 1.1.1

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 (142) hide show
  1. package/dist/add-circle-icon_2.entry-b14ecb5c.js +25 -0
  2. package/dist/add-circle-icon_2.entry-c6211866.cjs +1 -0
  3. package/dist/{archive-icon_7.entry-7411c224.js → archive-icon_7.entry-3fe7721a.js} +13 -13
  4. package/dist/{archive-icon_7.entry-e3df60ed.cjs → archive-icon_7.entry-54fc1f03.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-280e18b0.cjs → arrow-icon.entry-1dfee3bc.cjs} +1 -1
  6. package/dist/arrow-icon.entry-cc936041.js +15 -0
  7. package/dist/{bold-icon_3.entry-5dffbedd.cjs → bold-icon_3.entry-4b9de887.cjs} +1 -1
  8. package/dist/{bold-icon_3.entry-5963945c.js → bold-icon_3.entry-e2a1d434.js} +6 -6
  9. package/dist/{button-component_2.entry-237733b4.js → button-component_2.entry-3639ade6.js} +5 -5
  10. package/dist/{button-component_2.entry-b29d2873.cjs → button-component_2.entry-5666fdfa.cjs} +1 -1
  11. package/dist/{calendar-agenda-fill-icon_48.entry-9afba869.js → calendar-agenda-fill-icon_48.entry-56e364cd.js} +1548 -1397
  12. package/dist/calendar-agenda-fill-icon_48.entry-bf278e34.cjs +7 -0
  13. package/dist/{calendar-cancel-icon.entry-77ccf227.cjs → calendar-cancel-icon.entry-ac1cb5dd.cjs} +1 -1
  14. package/dist/{calendar-cancel-icon.entry-780723a6.js → calendar-cancel-icon.entry-dcd777cd.js} +4 -4
  15. package/dist/{calendar-check-icon_2.entry-2c89c230.js → calendar-check-icon_2.entry-6330bd2d.js} +9 -9
  16. package/dist/{calendar-check-icon_2.entry-b37ac7f0.cjs → calendar-check-icon_2.entry-7ad1b2a0.cjs} +1 -1
  17. package/dist/{calendar-icon.entry-ffc93569.cjs → calendar-icon.entry-5849a547.cjs} +1 -1
  18. package/dist/{calendar-icon.entry-02dd3990.js → calendar-icon.entry-8559fa0d.js} +5 -5
  19. package/dist/{checkbox-component_2.entry-ee9d0e6c.js → checkbox-component_2.entry-1474c465.js} +35 -12
  20. package/dist/checkbox-component_2.entry-6cf5da6b.cjs +1 -0
  21. package/dist/chevron-icon_3.entry-41170718.cjs +1 -0
  22. package/dist/{chevron-icon_3.entry-f62e9ef1.js → chevron-icon_3.entry-cb757aa3.js} +13 -10
  23. package/dist/{clock-icon_4.entry-7dc2cc4a.cjs → clock-icon_4.entry-36a33de5.cjs} +1 -1
  24. package/dist/{clock-icon_4.entry-766a1b23.js → clock-icon_4.entry-642f4dc6.js} +13 -13
  25. package/dist/{constants-50c3e067-9f2a6372.cjs → constants-50c3e067-4e027da4.cjs} +1 -1
  26. package/dist/{constants-50c3e067-8a40a5fe.js → constants-50c3e067-83f1d865.js} +1 -1
  27. package/dist/{copy-icon.entry-2a841508.js → copy-icon.entry-60740516.js} +7 -7
  28. package/dist/{copy-icon.entry-e5251410.cjs → copy-icon.entry-fb63cf53.cjs} +1 -1
  29. package/dist/{delete-icon_2.entry-64555a2f.js → delete-icon_2.entry-45851bc5.js} +9 -9
  30. package/dist/{delete-icon_2.entry-1a5c39dc.cjs → delete-icon_2.entry-d1af0606.cjs} +1 -1
  31. package/dist/{document-refresh-icon.entry-fdc7ddda.cjs → document-refresh-icon.entry-1731d4d9.cjs} +1 -1
  32. package/dist/document-refresh-icon.entry-5db0830a.js +15 -0
  33. package/dist/elements/index.d.ts +1 -0
  34. package/dist/{elements-dc5b338e-2da1fe61.js → elements-dc5b338e-3099ee02.js} +1 -1
  35. package/dist/{elements-dc5b338e-c8016c3d.cjs → elements-dc5b338e-ab9afb63.cjs} +1 -1
  36. package/dist/{focus-visible-e8093c16-9d0c98c0.js → focus-visible-e8093c16-067a8f23.js} +1 -1
  37. package/dist/{focus-visible-e8093c16-0a38a184.cjs → focus-visible-e8093c16-811f50fa.cjs} +1 -1
  38. package/dist/{forward-icon_6.entry-7238ef38.cjs → forward-icon_6.entry-4e9c9686.cjs} +2 -2
  39. package/dist/{forward-icon_6.entry-390ef70a.js → forward-icon_6.entry-e7c5fa46.js} +9 -9
  40. package/dist/{globe-icon.entry-81f42f89.cjs → globe-icon.entry-74f79652.cjs} +1 -1
  41. package/dist/{globe-icon.entry-8d106260.js → globe-icon.entry-aa3f3ea3.js} +5 -5
  42. package/dist/google-logo-icon_4.entry-0332a181.cjs +1 -0
  43. package/dist/{google-logo-icon_4.entry-aabd3886.js → google-logo-icon_4.entry-3fe41d69.js} +245 -252
  44. package/dist/index-2a53b6a8.cjs +82 -0
  45. package/dist/index-a134f625.js +12842 -0
  46. package/dist/{index.es-c9454237-b64161d1.cjs → index.es-79f5b771-64a1baf0.cjs} +1 -1
  47. package/dist/{index.es-c9454237-00ccd1e6.js → index.es-79f5b771-ce07d6fc.js} +1 -1
  48. package/dist/{info-icon_2.entry-b2e11336.cjs → info-icon_2.entry-a3f40027.cjs} +1 -1
  49. package/dist/{info-icon_2.entry-bb8ed71c.js → info-icon_2.entry-fed731f4.js} +5 -5
  50. package/dist/input-color-picker.entry-37826630.js +48 -0
  51. package/dist/input-color-picker.entry-cbdce7a1.cjs +1 -0
  52. package/dist/{input-component.entry-cb86170f.js → input-component.entry-b83b7103.js} +19 -14
  53. package/dist/input-component.entry-e71b7062.cjs +1 -0
  54. package/dist/input-dropdown.entry-150819cd.cjs +1 -0
  55. package/dist/{input-dropdown.entry-a76c339e.js → input-dropdown.entry-db0dae5f.js} +6 -6
  56. package/dist/{mailbox-store-edc386fc-156b7236.cjs → mailbox-store-9c52a3fa-04f22f60.cjs} +1 -1
  57. package/dist/{mailbox-store-edc386fc-8bc7558b.js → mailbox-store-9c52a3fa-80fe343c.js} +2 -2
  58. package/dist/multi-select-dropdown.entry-629329d7.cjs +1 -0
  59. package/dist/{multi-select-dropdown.entry-6b686695.js → multi-select-dropdown.entry-6b429b39.js} +11 -7
  60. package/dist/nylas-booked-event-card_12.entry-660af56a.cjs +1 -0
  61. package/dist/{nylas-booked-event-card_12.entry-e861bb16.js → nylas-booked-event-card_12.entry-c22c02b4.js} +170 -171
  62. package/dist/{nylas-form-card.entry-ca4a8746.cjs → nylas-form-card.entry-2ced5eef.cjs} +1 -1
  63. package/dist/{nylas-form-card.entry-b158d789.js → nylas-form-card.entry-f3d6a1e4.js} +15 -15
  64. package/dist/{nylas-if-state.entry-95fac42d.cjs → nylas-if-state.entry-55c32c0c.cjs} +1 -1
  65. package/dist/{nylas-if-state.entry-8e4d922c.js → nylas-if-state.entry-862ad978.js} +8 -8
  66. package/dist/{nylas-list-folders.entry-83c39684.js → nylas-list-folders.entry-544fd38d.js} +3 -3
  67. package/dist/{nylas-list-folders.entry-8a22e0c8.cjs → nylas-list-folders.entry-77e936f7.cjs} +1 -1
  68. package/dist/{nylas-list-threads.entry-7ea370e1.js → nylas-list-threads.entry-71411da7.js} +3 -3
  69. package/dist/{nylas-list-threads.entry-54c582af.cjs → nylas-list-threads.entry-82e04782.cjs} +1 -1
  70. package/dist/{nylas-login.entry-fb627e40.cjs → nylas-login.entry-3ccc2bef.cjs} +1 -1
  71. package/dist/{nylas-login.entry-9115fd81.js → nylas-login.entry-48179c01.js} +7 -7
  72. package/dist/{nylas-mailbox-pagination.entry-3ff02cf9.js → nylas-mailbox-pagination.entry-77cf03b5.js} +2 -2
  73. package/dist/{nylas-mailbox-pagination.entry-04626d27.cjs → nylas-mailbox-pagination.entry-d31f9aa4.cjs} +1 -1
  74. package/dist/{nylas-mailbox-toolbar-button.entry-8d00c789.cjs → nylas-mailbox-toolbar-button.entry-33aad610.cjs} +1 -1
  75. package/dist/{nylas-mailbox-toolbar-button.entry-f752e925.js → nylas-mailbox-toolbar-button.entry-40e3c373.js} +8 -8
  76. package/dist/{nylas-mailbox.entry-b3974f4e.cjs → nylas-mailbox.entry-963de1c3.cjs} +1 -1
  77. package/dist/{nylas-mailbox.entry-99c27b6c.js → nylas-mailbox.entry-f4066fb2.js} +4 -4
  78. package/dist/{nylas-provider.entry-a3ad02a5.cjs → nylas-provider.entry-08767da3.cjs} +1 -1
  79. package/dist/{nylas-provider.entry-c206aa32.js → nylas-provider.entry-c61428b1.js} +8 -8
  80. package/dist/{nylas-reminder-emails.entry-414ce6fe.js → nylas-reminder-emails.entry-cd8e1d2e.js} +9 -9
  81. package/dist/{nylas-reminder-emails.entry-59c07bfe.cjs → nylas-reminder-emails.entry-d42a7f1d.cjs} +2 -2
  82. package/dist/{nylas-reminder-time_2.entry-197d83a0.js → nylas-reminder-time_2.entry-d7115393.js} +5 -5
  83. package/dist/{nylas-reminder-time_2.entry-d79dcd85.cjs → nylas-reminder-time_2.entry-e5540fdd.cjs} +1 -1
  84. package/dist/{nylas-scheduler-editor.entry-7f389982.js → nylas-scheduler-editor.entry-65eb4938.js} +64 -64
  85. package/dist/nylas-scheduler-editor.entry-67904653.cjs +2 -0
  86. package/dist/{nylas-scheduling.entry-1a8bd6fc.cjs → nylas-scheduling.entry-50e41d85.cjs} +1 -1
  87. package/dist/{nylas-scheduling.entry-4fa5381d.js → nylas-scheduling.entry-7aad4f63.js} +4 -4
  88. package/dist/{nylas-threads-refresh.entry-56b53449.cjs → nylas-threads-refresh.entry-1b8befab.cjs} +1 -1
  89. package/dist/{nylas-threads-refresh.entry-20602e7b.js → nylas-threads-refresh.entry-d025575a.js} +4 -4
  90. package/dist/{nylas-threads-search.entry-8e0ec3ae.cjs → nylas-threads-search.entry-78c06183.cjs} +1 -1
  91. package/dist/{nylas-threads-search.entry-8872473c.js → nylas-threads-search.entry-a254c36e.js} +16 -16
  92. package/dist/{nylas-time-window-picker.entry-ca47f721.cjs → nylas-time-window-picker.entry-30baeb50.cjs} +1 -1
  93. package/dist/{nylas-time-window-picker.entry-9ac542b7.js → nylas-time-window-picker.entry-89c15823.js} +18 -18
  94. package/dist/{nylas-view-thread.entry-1f758e43.cjs → nylas-view-thread.entry-939a4561.cjs} +1 -1
  95. package/dist/{nylas-view-thread.entry-dcd3d5be.js → nylas-view-thread.entry-c8d56573.js} +9 -9
  96. package/dist/{person-icon.entry-63b28ace.cjs → person-icon.entry-5ab75598.cjs} +1 -1
  97. package/dist/{person-icon.entry-93130c05.js → person-icon.entry-8aef4041.js} +2 -2
  98. package/dist/play-icon_2.entry-392ad303.cjs +1 -0
  99. package/dist/{play-icon_2.entry-6a99c32d.js → play-icon_2.entry-4b068c1b.js} +8 -8
  100. package/dist/react.cjs +1 -1
  101. package/dist/react.js +100 -99
  102. package/dist/{refresh-icon.entry-b49792fc.cjs → refresh-icon.entry-9ea254c9.cjs} +1 -1
  103. package/dist/{refresh-icon.entry-84783c91.js → refresh-icon.entry-a754a2b5.js} +4 -4
  104. package/dist/{register-component-887199a9-003f96c5.cjs → register-component-ea95564d-ab3d630f.cjs} +1 -1
  105. package/dist/{register-component-887199a9-b41dfa7a.js → register-component-ea95564d-e19ec159.js} +1 -1
  106. package/dist/{scheduler-config-store-2a3b403d-a5e3433a.cjs → scheduler-config-store-2a3b403d-4e10b542.cjs} +1 -1
  107. package/dist/{scheduler-config-store-2a3b403d-73610089.js → scheduler-config-store-2a3b403d-581c70cf.js} +1 -1
  108. package/dist/scheduler-store-9ff4914b-6e28240e.cjs +1 -0
  109. package/dist/{scheduler-store-fe281404-bddb1b6a.js → scheduler-store-9ff4914b-b71a0aca.js} +87 -82
  110. package/dist/textarea-component.entry-70bb02bf.cjs +1 -0
  111. package/dist/{textarea-component.entry-40e959e5.js → textarea-component.entry-a5daab6c.js} +10 -9
  112. package/dist/time-period-selector.entry-25348de7.js +80 -0
  113. package/dist/time-period-selector.entry-6306e456.cjs +1 -0
  114. package/dist/{translate-icon.entry-a2ed4f76.cjs → translate-icon.entry-785fa109.cjs} +1 -1
  115. package/dist/{translate-icon.entry-92b83635.js → translate-icon.entry-b6094ecc.js} +4 -4
  116. package/dist/{warning-icon.entry-19f721c3.js → warning-icon.entry-4b400ee2.js} +4 -4
  117. package/dist/{warning-icon.entry-3ab9a59e.cjs → warning-icon.entry-94e34c58.cjs} +1 -1
  118. package/package.json +2 -2
  119. package/dist/add-circle-icon_2.entry-7165bd0e.js +0 -25
  120. package/dist/add-circle-icon_2.entry-f1ddca18.cjs +0 -1
  121. package/dist/arrow-icon.entry-38949317.js +0 -15
  122. package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +0 -7
  123. package/dist/checkbox-component_2.entry-00b6a1e9.cjs +0 -1
  124. package/dist/chevron-icon_3.entry-468abc26.cjs +0 -1
  125. package/dist/document-refresh-icon.entry-4bf6398b.js +0 -15
  126. package/dist/google-logo-icon_4.entry-fa2b8999.cjs +0 -1
  127. package/dist/index-53420959-5fc8ad2b.js +0 -5
  128. package/dist/index-53420959-fcf45780.cjs +0 -1
  129. package/dist/index-5ccfd9df.js +0 -7859
  130. package/dist/index-6d9eeb53-58c8980a.js +0 -4971
  131. package/dist/index-6d9eeb53-b2a6d09f.cjs +0 -41
  132. package/dist/index-eb33703c.cjs +0 -42
  133. package/dist/input-component.entry-378b1ccc.cjs +0 -1
  134. package/dist/input-dropdown.entry-98954c93.cjs +0 -1
  135. package/dist/multi-select-dropdown.entry-40b855e1.cjs +0 -1
  136. package/dist/nylas-booked-event-card_12.entry-9d693125.cjs +0 -1
  137. package/dist/nylas-scheduler-editor.entry-f1c6964a.cjs +0 -2
  138. package/dist/play-icon_2.entry-b67fb649.cjs +0 -1
  139. package/dist/scheduler-store-fe281404-c3e477f6.cjs +0 -1
  140. package/dist/textarea-component.entry-28c4bc05.cjs +0 -1
  141. package/dist/time-period-selector.entry-af71523a.cjs +0 -1
  142. package/dist/time-period-selector.entry-da5d8652.js +0 -93
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-eb33703c.cjs");require("react");require("react-dom");const t=".sc-document-refresh-icon-h{display:flex}",d=t,c=class{constructor(a){e.registerInstance(this,a),this.width="18",this.height="18"}render(){return e.h("svg",{key:"8cc8e0ea89fe68e7f1cb885ebd3df0209d33196c",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:this.width,height:this.height},e.h("rect",{key:"2bfec8e08fcfef5115d21ba6867a3df8d1dd9a7c",id:"Canvas",fill:"#ff13dc",opacity:"0"}),e.h("path",{key:"8a835a39aa21fe36b9fca8598d4c78c22e9a8be6",d:"M9.19763,12.26283A4.44131,4.44131,0,0,1,16.948,10.71741l.62524-.62524a.24433.24433,0,0,1,.1748-.07373.25035.25035,0,0,1,.252.24875v2.50143a.25.25,0,0,1-.25.25l-2.4995-.00016A.25088.25088,0,0,1,15,12.76721v-.00054a.24436.24436,0,0,1,.07373-.175l.86988-.86987a3.02827,3.02827,0,0,0-5.29847.71808.48835.48835,0,0,1-.46081.30981H9.55908a.37949.37949,0,0,1-.36145-.48686Z"}),e.h("path",{key:"c7523af0ce429570295f39c289833dab3593dc83",d:"M17.80237,14.77441A4.4413,4.4413,0,0,1,10.052,16.31982l-.62524.62524a.24429.24429,0,0,1-.1748.07373A.25036.25036,0,0,1,9,16.77V14.26863a.25.25,0,0,1,.25-.25l2.4995.00016A.25087.25087,0,0,1,12,14.27v.00052a.24434.24434,0,0,1-.07373.175l-.86988.86988a3.02828,3.02828,0,0,0,5.29847-.71808.48836.48836,0,0,1,.46081-.30982h.62525a.3795.3795,0,0,1,.36145.48687Z"}),e.h("path",{key:"d2cde5463106fc7143e8388f479e992273d39fb9",d:"M7,13.5A6.5,6.5,0,0,1,13.5,7c.16883,0,.33447.01264.5.02527V5H9.5A.5.5,0,0,1,9,4.5V0H2.5A.5.5,0,0,0,2,.5v15a.5.5,0,0,0,.5.5H7.49981A6.4779,6.4779,0,0,1,7,13.5Z"}),e.h("path",{key:"0dbe05cd6a5bea092d4e7a598a58ec9cf1170bb4",d:"M10,0h.043a.5.5,0,0,1,.353.146L13.854,3.6A.5.5,0,0,1,14,3.957V4H10Z"}))}};c.style=d;exports.document_refresh_icon=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2a53b6a8.cjs");require("react");require("react-dom");const t=".sc-document-refresh-icon-h{display:flex}",d=t,c=class{constructor(a){e.registerInstance(this,a),this.width="18",this.height="18"}render(){return e.h("svg",{key:"bfcb86830cc1a9c7ebad3ef701fd8f0f49388ce8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:this.width,height:this.height},e.h("rect",{key:"258bb20b5e64c6419949f19e8415b67d7fccca7f",id:"Canvas",fill:"#ff13dc",opacity:"0"}),e.h("path",{key:"cd2d6d4ca5ab8a29673d5fc845a9e8d58ec858d1",d:"M9.19763,12.26283A4.44131,4.44131,0,0,1,16.948,10.71741l.62524-.62524a.24433.24433,0,0,1,.1748-.07373.25035.25035,0,0,1,.252.24875v2.50143a.25.25,0,0,1-.25.25l-2.4995-.00016A.25088.25088,0,0,1,15,12.76721v-.00054a.24436.24436,0,0,1,.07373-.175l.86988-.86987a3.02827,3.02827,0,0,0-5.29847.71808.48835.48835,0,0,1-.46081.30981H9.55908a.37949.37949,0,0,1-.36145-.48686Z"}),e.h("path",{key:"e71344a650384fd6985c162d2dfd87a9f2041a21",d:"M17.80237,14.77441A4.4413,4.4413,0,0,1,10.052,16.31982l-.62524.62524a.24429.24429,0,0,1-.1748.07373A.25036.25036,0,0,1,9,16.77V14.26863a.25.25,0,0,1,.25-.25l2.4995.00016A.25087.25087,0,0,1,12,14.27v.00052a.24434.24434,0,0,1-.07373.175l-.86988.86988a3.02828,3.02828,0,0,0,5.29847-.71808.48836.48836,0,0,1,.46081-.30982h.62525a.3795.3795,0,0,1,.36145.48687Z"}),e.h("path",{key:"18decb8f3ac243850de3f51216e7852a71a28964",d:"M7,13.5A6.5,6.5,0,0,1,13.5,7c.16883,0,.33447.01264.5.02527V5H9.5A.5.5,0,0,1,9,4.5V0H2.5A.5.5,0,0,0,2,.5v15a.5.5,0,0,0,.5.5H7.49981A6.4779,6.4779,0,0,1,7,13.5Z"}),e.h("path",{key:"f6f1a104c46cbfea8b28f2fefdd8b5063ca1cfb1",d:"M10,0h.043a.5.5,0,0,1,.353.146L13.854,3.6A.5.5,0,0,1,14,3.957V4H10Z"}))}};c.style=d;exports.document_refresh_icon=c;
@@ -0,0 +1,15 @@
1
+ import { r as a, h as e } from "./index-a134f625.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const t = ".sc-document-refresh-icon-h{display:flex}", d = t, f = class {
5
+ constructor(c) {
6
+ a(this, c), this.width = "18", this.height = "18";
7
+ }
8
+ render() {
9
+ return e("svg", { key: "bfcb86830cc1a9c7ebad3ef701fd8f0f49388ce8", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: this.width, height: this.height }, e("rect", { key: "258bb20b5e64c6419949f19e8415b67d7fccca7f", id: "Canvas", fill: "#ff13dc", opacity: "0" }), e("path", { key: "cd2d6d4ca5ab8a29673d5fc845a9e8d58ec858d1", d: "M9.19763,12.26283A4.44131,4.44131,0,0,1,16.948,10.71741l.62524-.62524a.24433.24433,0,0,1,.1748-.07373.25035.25035,0,0,1,.252.24875v2.50143a.25.25,0,0,1-.25.25l-2.4995-.00016A.25088.25088,0,0,1,15,12.76721v-.00054a.24436.24436,0,0,1,.07373-.175l.86988-.86987a3.02827,3.02827,0,0,0-5.29847.71808.48835.48835,0,0,1-.46081.30981H9.55908a.37949.37949,0,0,1-.36145-.48686Z" }), e("path", { key: "e71344a650384fd6985c162d2dfd87a9f2041a21", d: "M17.80237,14.77441A4.4413,4.4413,0,0,1,10.052,16.31982l-.62524.62524a.24429.24429,0,0,1-.1748.07373A.25036.25036,0,0,1,9,16.77V14.26863a.25.25,0,0,1,.25-.25l2.4995.00016A.25087.25087,0,0,1,12,14.27v.00052a.24434.24434,0,0,1-.07373.175l-.86988.86988a3.02828,3.02828,0,0,0,5.29847-.71808.48836.48836,0,0,1,.46081-.30982h.62525a.3795.3795,0,0,1,.36145.48687Z" }), e("path", { key: "18decb8f3ac243850de3f51216e7852a71a28964", d: "M7,13.5A6.5,6.5,0,0,1,13.5,7c.16883,0,.33447.01264.5.02527V5H9.5A.5.5,0,0,1,9,4.5V0H2.5A.5.5,0,0,0,2,.5v15a.5.5,0,0,0,.5.5H7.49981A6.4779,6.4779,0,0,1,7,13.5Z" }), e("path", { key: "f6f1a104c46cbfea8b28f2fefdd8b5063ca1cfb1", d: "M10,0h.043a.5.5,0,0,1,.353.146L13.854,3.6A.5.5,0,0,1,14,3.957V4H10Z" }));
10
+ }
11
+ };
12
+ f.style = d;
13
+ export {
14
+ f as document_refresh_icon
15
+ };
@@ -37,6 +37,7 @@ export declare const InfoIcon: import("react").ForwardRefExoticComponent<JSX.Inf
37
37
  export declare const InputColorPicker: import("react").ForwardRefExoticComponent<JSX.InputColorPicker & Omit<import("react").HTMLAttributes<HTMLInputColorPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLInputColorPickerElement>>;
38
38
  export declare const InputComponent: import("react").ForwardRefExoticComponent<JSX.InputComponent & Omit<import("react").HTMLAttributes<HTMLInputComponentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLInputComponentElement>>;
39
39
  export declare const InputDropdown: import("react").ForwardRefExoticComponent<JSX.InputDropdown & Omit<import("react").HTMLAttributes<HTMLInputDropdownElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLInputDropdownElement>>;
40
+ export declare const InputImageUrl: import("react").ForwardRefExoticComponent<JSX.InputImageUrl & Omit<import("react").HTMLAttributes<HTMLInputImageUrlElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLInputImageUrlElement>>;
40
41
  export declare const ItalicIcon: import("react").ForwardRefExoticComponent<JSX.ItalicIcon & Omit<import("react").HTMLAttributes<HTMLItalicIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLItalicIconElement>>;
41
42
  export declare const LoadingIcon: import("react").ForwardRefExoticComponent<JSX.LoadingIcon & Omit<import("react").HTMLAttributes<HTMLLoadingIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLLoadingIconElement>>;
42
43
  export declare const LocationIcon: import("react").ForwardRefExoticComponent<JSX.LocationIcon & Omit<import("react").HTMLAttributes<HTMLLocationIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLLocationIconElement>>;
@@ -1067,7 +1067,7 @@ let ea = !0;
1067
1067
  try {
1068
1068
  document.body.querySelector(":focus-visible");
1069
1069
  } catch {
1070
- ea = !1, import("./focus-visible-e8093c16-9d0c98c0.js").then(function(t) {
1070
+ ea = !1, import("./focus-visible-e8093c16-067a8f23.js").then(function(t) {
1071
1071
  return t.f;
1072
1072
  });
1073
1073
  }
@@ -169,7 +169,7 @@ var(--spectrum-accordion-item-header-line-height)
169
169
  @slotchange=${this.handleSlotchange}
170
170
  @sp-accordion-item-toggle=${this.onToggle}
171
171
  ></slot>
172
- `}}zs([i({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Bo.prototype,"allowMultiple",2),zs([i({type:String,reflect:!0})],Bo.prototype,"density",2),zs([oo()],Bo.prototype,"defaultNodes",2);function v(s,t){customElements.define(s,t)}v("sp-accordion",Bo);let ea=!0;try{document.body.querySelector(":focus-visible")}catch{ea=!1,Promise.resolve().then(()=>require("./focus-visible-e8093c16-0a38a184.cjs")).then(function(t){return t.f})}const Qt=s=>{var t;const e=a=>{if(a.shadowRoot==null||a.hasAttribute("data-js-focus-visible"))return()=>{};if(self.applyFocusVisiblePolyfill)self.applyFocusVisiblePolyfill(a.shadowRoot),a.manageAutoFocus&&a.manageAutoFocus();else{const c=()=>{self.applyFocusVisiblePolyfill&&a.shadowRoot&&self.applyFocusVisiblePolyfill(a.shadowRoot),a.manageAutoFocus&&a.manageAutoFocus()};return self.addEventListener("focus-visible-polyfill-ready",c,{once:!0}),()=>{self.removeEventListener("focus-visible-polyfill-ready",c)}}return()=>{}},r=Symbol("endPolyfillCoordination");class o extends s{constructor(){super(...arguments),this[t]=null}connectedCallback(){super.connectedCallback&&super.connectedCallback(),ea||requestAnimationFrame(()=>{this[r]==null&&(this[r]=e(this))})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),ea||requestAnimationFrame(()=>{this[r]!=null&&(this[r](),this[r]=null)})}}return t=r,o};var Dl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,$s=(s,t,e,r)=>{for(var o=r>1?void 0:r?Bl(t,e):t,a=s.length-1,c;a>=0;a--)(c=s[a])&&(o=(r?c(t,e,o):c(o))||o);return r&&o&&Dl(t,e,o),o};function yc(){return new Promise(s=>requestAnimationFrame(()=>s()))}class L extends Qt($){constructor(){super(...arguments),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this._recentlyConnected=!1}get tabIndex(){if(this.focusElement===this){const e=this.hasAttribute("tabindex")?Number(this.getAttribute("tabindex")):NaN;return isNaN(e)?-1:e}const t=parseFloat(this.hasAttribute("tabindex")&&this.getAttribute("tabindex")||"0");return this.disabled||t<0?-1:this.focusElement?this.focusElement.tabIndex:t}set tabIndex(t){if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(t!==this._tabIndex){this._tabIndex=t;const e=this.disabled?"-1":""+t;this.manipulatingTabindex=!0,this.setAttribute("tabindex",e)}return}if(t===-1?this.addEventListener("pointerdown",this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener("pointerdown",this.onPointerdownManagementOfTabIndex)),t===-1||this.disabled){this.setAttribute("tabindex","-1"),this.removeAttribute("focusable"),t!==-1&&this.manageFocusElementTabindex(t);return}this.setAttribute("focusable",""),this.hasAttribute("tabindex")?this.removeAttribute("tabindex"):this.manipulatingTabindex=!1,this.manageFocusElementTabindex(t)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&(this.tabIndex=0,this.focus({preventScroll:!0}))}async manageFocusElementTabindex(t){this.focusElement||await this.updateComplete,t===null?this.focusElement.removeAttribute("tabindex"):this.focusElement.tabIndex=t}get focusElement(){throw new Error("Must implement focusElement getter!")}focus(t){this.disabled||!this.focusElement||(this.focusElement!==this?this.focusElement.focus(t):HTMLElement.prototype.focus.apply(this,[t]))}blur(){const t=this.focusElement||this;t!==this?t.blur():HTMLElement.prototype.blur.apply(this)}click(){if(this.disabled)return;const t=this.focusElement||this;t!==this?t.click():HTMLElement.prototype.click.apply(this)}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focusElement.focus())}firstUpdated(t){super.firstUpdated(t),(!this.hasAttribute("tabindex")||this.getAttribute("tabindex")!=="-1")&&this.setAttribute("focusable","")}update(t){t.has("disabled")&&this.handleDisabledChanged(this.disabled,t.get("disabled")),super.update(t)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.blur()}async handleDisabledChanged(t,e){const r=()=>this.focusElement!==this&&typeof this.focusElement.disabled<"u";t?(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),await this.updateComplete,r()?this.focusElement.disabled=!0:this.setAttribute("aria-disabled","true")):e&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute("tabindex",""+this._tabIndex):this.removeAttribute("tabindex"),await this.updateComplete,r()?this.focusElement.disabled=!1:this.removeAttribute("aria-disabled"))}async getUpdateComplete(){const t=await super.getUpdateComplete();return this._recentlyConnected&&(this._recentlyConnected=!1,await yc(),await yc()),t}connectedCallback(){super.connectedCallback(),this._recentlyConnected=!0,this.updateComplete.then(()=>{this.manageAutoFocus()})}}$s([i({type:Boolean,reflect:!0})],L.prototype,"disabled",2),$s([i({type:Boolean})],L.prototype,"autofocus",2),$s([i({type:Number})],L.prototype,"tabIndex",1);/**
172
+ `}}zs([i({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Bo.prototype,"allowMultiple",2),zs([i({type:String,reflect:!0})],Bo.prototype,"density",2),zs([oo()],Bo.prototype,"defaultNodes",2);function v(s,t){customElements.define(s,t)}v("sp-accordion",Bo);let ea=!0;try{document.body.querySelector(":focus-visible")}catch{ea=!1,Promise.resolve().then(()=>require("./focus-visible-e8093c16-811f50fa.cjs")).then(function(t){return t.f})}const Qt=s=>{var t;const e=a=>{if(a.shadowRoot==null||a.hasAttribute("data-js-focus-visible"))return()=>{};if(self.applyFocusVisiblePolyfill)self.applyFocusVisiblePolyfill(a.shadowRoot),a.manageAutoFocus&&a.manageAutoFocus();else{const c=()=>{self.applyFocusVisiblePolyfill&&a.shadowRoot&&self.applyFocusVisiblePolyfill(a.shadowRoot),a.manageAutoFocus&&a.manageAutoFocus()};return self.addEventListener("focus-visible-polyfill-ready",c,{once:!0}),()=>{self.removeEventListener("focus-visible-polyfill-ready",c)}}return()=>{}},r=Symbol("endPolyfillCoordination");class o extends s{constructor(){super(...arguments),this[t]=null}connectedCallback(){super.connectedCallback&&super.connectedCallback(),ea||requestAnimationFrame(()=>{this[r]==null&&(this[r]=e(this))})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),ea||requestAnimationFrame(()=>{this[r]!=null&&(this[r](),this[r]=null)})}}return t=r,o};var Dl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,$s=(s,t,e,r)=>{for(var o=r>1?void 0:r?Bl(t,e):t,a=s.length-1,c;a>=0;a--)(c=s[a])&&(o=(r?c(t,e,o):c(o))||o);return r&&o&&Dl(t,e,o),o};function yc(){return new Promise(s=>requestAnimationFrame(()=>s()))}class L extends Qt($){constructor(){super(...arguments),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this._recentlyConnected=!1}get tabIndex(){if(this.focusElement===this){const e=this.hasAttribute("tabindex")?Number(this.getAttribute("tabindex")):NaN;return isNaN(e)?-1:e}const t=parseFloat(this.hasAttribute("tabindex")&&this.getAttribute("tabindex")||"0");return this.disabled||t<0?-1:this.focusElement?this.focusElement.tabIndex:t}set tabIndex(t){if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(t!==this._tabIndex){this._tabIndex=t;const e=this.disabled?"-1":""+t;this.manipulatingTabindex=!0,this.setAttribute("tabindex",e)}return}if(t===-1?this.addEventListener("pointerdown",this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener("pointerdown",this.onPointerdownManagementOfTabIndex)),t===-1||this.disabled){this.setAttribute("tabindex","-1"),this.removeAttribute("focusable"),t!==-1&&this.manageFocusElementTabindex(t);return}this.setAttribute("focusable",""),this.hasAttribute("tabindex")?this.removeAttribute("tabindex"):this.manipulatingTabindex=!1,this.manageFocusElementTabindex(t)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&(this.tabIndex=0,this.focus({preventScroll:!0}))}async manageFocusElementTabindex(t){this.focusElement||await this.updateComplete,t===null?this.focusElement.removeAttribute("tabindex"):this.focusElement.tabIndex=t}get focusElement(){throw new Error("Must implement focusElement getter!")}focus(t){this.disabled||!this.focusElement||(this.focusElement!==this?this.focusElement.focus(t):HTMLElement.prototype.focus.apply(this,[t]))}blur(){const t=this.focusElement||this;t!==this?t.blur():HTMLElement.prototype.blur.apply(this)}click(){if(this.disabled)return;const t=this.focusElement||this;t!==this?t.click():HTMLElement.prototype.click.apply(this)}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focusElement.focus())}firstUpdated(t){super.firstUpdated(t),(!this.hasAttribute("tabindex")||this.getAttribute("tabindex")!=="-1")&&this.setAttribute("focusable","")}update(t){t.has("disabled")&&this.handleDisabledChanged(this.disabled,t.get("disabled")),super.update(t)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.blur()}async handleDisabledChanged(t,e){const r=()=>this.focusElement!==this&&typeof this.focusElement.disabled<"u";t?(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),await this.updateComplete,r()?this.focusElement.disabled=!0:this.setAttribute("aria-disabled","true")):e&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute("tabindex",""+this._tabIndex):this.removeAttribute("tabindex"),await this.updateComplete,r()?this.focusElement.disabled=!1:this.removeAttribute("aria-disabled"))}async getUpdateComplete(){const t=await super.getUpdateComplete();return this._recentlyConnected&&(this._recentlyConnected=!1,await yc(),await yc()),t}connectedCallback(){super.connectedCallback(),this._recentlyConnected=!0,this.updateComplete.then(()=>{this.manageAutoFocus()})}}$s([i({type:Boolean,reflect:!0})],L.prototype,"disabled",2),$s([i({type:Boolean})],L.prototype,"autofocus",2),$s([i({type:Number})],L.prototype,"tabIndex",1);/**
173
173
  * @license
174
174
  * Copyright 2018 Google LLC
175
175
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- import { i as T } from "./index-5ccfd9df.js";
1
+ import { i as T } from "./index-a134f625.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  var f = { exports: {} };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index-eb33703c.cjs");require("react");require("react-dom");var f={exports:{}};(function(V,A){(function(r,i){i()})(T.commonjsGlobal,function(){function r(n){var o=!0,u=!1,a=null,v={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){return!!(e&&e!==document&&e.nodeName!=="HTML"&&e.nodeName!=="BODY"&&"classList"in e&&"contains"in e.classList)}function b(e){var g=e.type,l=e.tagName;return!!(l==="INPUT"&&v[g]&&!e.readOnly||l==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function c(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function E(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function L(e){e.metaKey||e.altKey||e.ctrlKey||(s(n.activeElement)&&c(n.activeElement),o=!0)}function d(e){o=!1}function y(e){s(e.target)&&(o||b(e.target))&&c(e.target)}function p(e){s(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(u=!0,window.clearTimeout(a),a=window.setTimeout(function(){u=!1},100),E(e.target))}function w(e){document.visibilityState==="hidden"&&(u&&(o=!0),m())}function m(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function h(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function t(e){e.target.nodeName&&e.target.nodeName.toLowerCase()==="html"||(o=!1,h())}document.addEventListener("keydown",L,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",w,!0),m(),n.addEventListener("focus",y,!0),n.addEventListener("blur",p,!0),n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window<"u"&&typeof document<"u"){window.applyFocusVisiblePolyfill=r;var i;try{i=new CustomEvent("focus-visible-polyfill-ready")}catch{i=document.createEvent("CustomEvent"),i.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(i)}typeof document<"u"&&r(document)})})();const N=f.exports,O=Object.freeze(Object.assign(Object.create(null),f.exports,{default:N}));exports.f=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index-2a53b6a8.cjs");require("react");require("react-dom");var f={exports:{}};(function(V,A){(function(r,i){i()})(T.commonjsGlobal,function(){function r(n){var o=!0,u=!1,a=null,v={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){return!!(e&&e!==document&&e.nodeName!=="HTML"&&e.nodeName!=="BODY"&&"classList"in e&&"contains"in e.classList)}function b(e){var g=e.type,l=e.tagName;return!!(l==="INPUT"&&v[g]&&!e.readOnly||l==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function c(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function E(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function L(e){e.metaKey||e.altKey||e.ctrlKey||(s(n.activeElement)&&c(n.activeElement),o=!0)}function d(e){o=!1}function y(e){s(e.target)&&(o||b(e.target))&&c(e.target)}function p(e){s(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(u=!0,window.clearTimeout(a),a=window.setTimeout(function(){u=!1},100),E(e.target))}function w(e){document.visibilityState==="hidden"&&(u&&(o=!0),m())}function m(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function h(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function t(e){e.target.nodeName&&e.target.nodeName.toLowerCase()==="html"||(o=!1,h())}document.addEventListener("keydown",L,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",w,!0),m(),n.addEventListener("focus",y,!0),n.addEventListener("blur",p,!0),n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window<"u"&&typeof document<"u"){window.applyFocusVisiblePolyfill=r;var i;try{i=new CustomEvent("focus-visible-polyfill-ready")}catch{i=document.createEvent("CustomEvent"),i.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(i)}typeof document<"u"&&r(document)})})();const N=f.exports,O=Object.freeze(Object.assign(Object.create(null),f.exports,{default:N}));exports.f=O;
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-eb33703c.cjs"),yn=require("./register-component-887199a9-003f96c5.cjs");require("react");require("react-dom");const bn=".sc-forward-icon-h{display:flex}",En=bn,St=class{constructor(t){o.registerInstance(this,t),this.width="15",this.height="15"}render(){return o.h("svg",{key:"256bedcd1d16ce56abf8a1a9e256c3056df7982d",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},o.h("path",{key:"e9eff3ddff62ad3e805efe09a77e3c984dad8d2d",d:"m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z","fill-rule":"evenodd"}))}};St.style=En;const Tn=':host{display:grid;color:var(--nylas-color-primary-900)}.editor{position:relative;display:block;max-height:300px;overflow:auto;padding:1rem;border:1px solid var(--nylas-color-primary-300)}.editor blockquote{visibility:hidden;overflow:hidden;position:relative;transition:height 0.3s ease;margin:0}.editor blockquote::before{content:"...";visibility:visible;opacity:1;position:absolute;top:0;left:0;background-color:var(--nylas-color-primary-300);width:20px;text-align:center;color:var(--nylas-color-primary-800);vertical-align:middle;display:flex;justify-content:center;align-items:center;align-self:center;cursor:pointer}.editor .collapsed{height:20px}.editor .expanded{visibility:visible;opacity:1;height:auto;margin:0px 0px 0px 0.8ex;border-left:1px solid var(--nylas-color-primary-300);padding-left:1rem}.editor .expanded::before{display:none;}.buttons{display:flex;margin-top:1rem;justify-content:space-between}.buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.buttons sp-button chevron-icon{display:inline-block}.buttons .close{justify-self:end}.toolbar{position:absolute;display:none;background-color:var(--nylas-color-primary-200);border-radius:var(--nylas-border-radius);z-index:1}.toolbar sp-button{border:0}',An=Tn,Ct=class{constructor(t){o.registerInstance(this,t),this.close=o.createEvent(this,"close",7),this.send=o.createEvent(this,"send",7),this.closeComposer=i=>{this.close.emit(i)},this.sendComposer=i=>{var l;if(!this.editorEl){o.debug("no editor element");return}const f=this.editorEl.querySelector(".message-body");if(!f){o.debug("no message body");return}this.message&&(this.send.emit({message:this.message,replyBody:((l=f.querySelector(".message-body"))==null?void 0:l.innerHTML)||""}),this.close.emit(i),this.editorEl.innerHTML="")},this.message=void 0,this.viewEmailElement=void 0}connectedCallback(){}disconnectedCallback(){this.editorEl&&(this.editorEl.innerHTML="")}componentWillLoad(){}async componentDidLoad(){if(this.message&&this.watchBody(this.message),!this.editorEl){o.debug("[connectedCallback] no editor element");return}if(!this.toolbarEl){o.debug("[connectedCallback] no toolbar element");return}const t=this.editorEl,i=this.toolbarEl;t.addEventListener("mouseup",f=>{var B;const l=(B=this.host.shadowRoot)==null?void 0:B.getSelection();if(!l){o.debug("no selection");return}const p=l.getRangeAt(0),r=l.toString();if(!r){i.style.display="none";return}const m=t.querySelector(".message-body");if(!m){o.debug("no message body");return}const c=p.commonAncestorContainer.parentElement;if(!c)return;const E=m.getBoundingClientRect();o.debug("messageBodyRect",{messageBodyRect:E});const A=c.getBoundingClientRect();o.debug("foundRect",{foundRect:A});const le=(c.childNodes[0].textContent||"").indexOf(r),W=window.getComputedStyle(c).fontSize,j=parseInt(W.replace("px",""),10),te=A.top-E.top-i.clientHeight,ye=le*(1/j)*100;i.style.top=`${te}px`,i.style.left=`${ye}px`,i.style.display="block"})}watchBody(t){var r;if(!this.editorEl){o.debug("no editor element");return}this.editorEl.querySelectorAll(".message-body").forEach(m=>m.remove());const i=document.createElement("div");i.classList.add("message-body");const f=document.createElement("p");f.innerHTML="&nbsp;",i.appendChild(f);const l=document.createElement("br");i.appendChild(l);const p=document.createElement("div");if(p.classList.add("reply-text"),p.innerText=`On ${new Date(t.date*1e3).toLocaleDateString(void 0,{dateStyle:"full"})} <${(r=t.from)==null?void 0:r.map(m=>m.name||m.email).join(", ")}> wrote:`,i.appendChild(p),t.body){const m=document.createElement("html");m.innerHTML=t.body;const a=document.createElement("blockquote");a.classList.add("collapsed"),a.classList.add("gmail_quote"),a.innerHTML=m.innerHTML,i.appendChild(a),o.debug("replyContainer",{replyContainer:a})}this.editorEl.appendChild(i),this.editorEl.querySelectorAll("blockquote.collapsed").forEach(m=>{m.addEventListener("click",function(a){a.preventDefault();const c=a.target;c.classList.remove("collapsed"),c.classList.add("expanded")},{once:!0})}),this.editorEl.focus()}render(){return o.h(o.Host,{key:"05d06e346d185690361a7a28b840fc2ab23e126e"},o.h("sp-theme",{key:"777d476f2fe72825fdae33f947f0d2a23093a11a",scale:"medium",color:"dark"},o.h("div",{key:"2aa6533429c21b308592a7251185b46630122c64",class:"editor",contentEditable:!0,ref:t=>this.editorEl=t},o.h("div",{key:"01fb8abaed3b30ee0285a9d01aa784915e582ecb",class:"toolbar",ref:t=>this.toolbarEl=t,contentEditable:!1},o.h("sp-button",{key:"468e3fb7124061e37e647cbdce323a4581043ddc",quiet:!0,onClick:()=>document.execCommand("bold")},o.h("div",{key:"1a6ee78ed04d8d3e7516f894c679779acfda4f92",slot:"icon"},o.h("bold-icon",{key:"16f13ee9609a2611a34108920a497c0b26d62cc5"})),o.h("div",{key:"83a1147bc6c0a59e70bb2a281f4a5fb9ec9256c2",slot:"label"},"Bold")),o.h("sp-button",{key:"9d5fd28e07ed31d2837f61d126e3999150fcc8ce",quiet:!0,onClick:()=>document.execCommand("underline")},o.h("div",{key:"eb033d1607aed07a975d05dac449be7abfa7bfd1",slot:"icon"},o.h("underline-icon",{key:"688868c4bd528fda5e5a954acee7a0f6d989f591"})),o.h("div",{key:"a005aaeae969d9db87436f13d524d211ca42894d",slot:"label"},"Underline")),o.h("sp-button",{key:"51e1bdab4db4fca3c633b443d5e95a08c4dd9159",quiet:!0,onClick:()=>document.execCommand("italic")},o.h("div",{key:"1bdee462750ef763ddd3f936a14a639a46874ada",slot:"icon"},o.h("italic-icon",{key:"3bb7f0512e91f45731de92bb29bf610fcf930cc6"})),o.h("div",{key:"d730402f3145f05350e31f3cc39a437633ab2dcd",slot:"label"},"Italic")))),o.h("div",{key:"43136421703fad649d4e5a17be0a5df748d545e1",class:"buttons"},o.h("sp-button",{key:"1e2c01908a0df6718b83e178241754fd76e225bf",onClick:this.sendComposer,class:"send"},"Send"),o.h("sp-button",{key:"33d1ce61aff095ce440cdc04b2a4d89746eb5180",onClick:this.closeComposer,class:"close"},"Close"))))}get host(){return o.getElement(this)}static get watchers(){return{message:["watchBody"]}}};Ct.style=An;const _n=":host{display:block}sp-button{padding:0;border:0;border-radius:var(--nylas-border-radius);min-block-size:50%;min-inline-size:2rem;background-color:var(--nylas-color-primary-300);fill:var(--nylas-color-primary-800)}sp-button:hover{background-color:var(--nylas-color-primary-400)}.summarize-button.stopped{animation:none}.summarize-button.playing{animation:pulse 2s infinite}.summarize-button.loading{display:flex;align-content:center;height:1.5rem;width:2rem;vertical-align:middle;animation:pulse 2s infinite;flex-wrap:wrap}.summarize-button.loading loading-icon{--dot-color:var(--nylas-color-primary-600)}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 0 0 var(--nylas-color-primary-300)}70%{transform:scale(1.05);box-shadow:0 0 0 10px rgba(255, 69, 0, 0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255, 69, 0, 0)}}@keyframes wave{0%{transform:translateX(0)}50%{transform:translateX(100%)}100%{transform:translateX(0)}}",wn=_n;var vn=function(t,i,f,l){var p=arguments.length,r=p<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,f):l,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,i,f,l);else for(var a=t.length-1;a>=0;a--)(m=t[a])&&(r=(p<3?m(r):p>3?m(i,f,r):m(i,f))||r);return p>3&&r&&Object.defineProperty(i,f,r),r},Fe=function(t,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,i)};const Be=class{constructor(t){o.registerInstance(this,t),this.summarize=o.createEvent(this,"summarize",7),this.abortController=new AbortController,this.onClick=async i=>{var f,l;i.preventDefault(),i.stopPropagation(),this.state==="stopped"?this.message&&(this.abortController=new AbortController,this.summarize.emit({abortController:this.abortController,playAudio:this.playAudio,message:this.message,updateState:this.updateState}).defaultPrevented||(o.debug("[nylas-summarize-message-button] Default event not prevented, summarizing message"),this.audioRef&&(await this.audioRef.play().then(()=>{var r;return(r=this.audioRef)==null?void 0:r.pause()}).catch(r=>console.error("Error playing audio:",r)),await this.audioRef.play().catch(r=>console.error("Error playing audio:",r))))):this.state==="playing"?((f=this.abortController)==null||f.abort(),(l=this.audioRef)==null||l.pause()):this.state="stopped"},this.message=void 0,this.state="stopped",this.playAudio=this.playAudio.bind(this),this.updateState=this.updateState.bind(this)}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){o.debug("[nylas-summarize-message-button] Component will load")}async componentDidLoad(){o.debug("[nylas-summarize-message-button] Component did load")}async updateState(t){this.state=t}async playAudio(t){if(!this.audioRef){this.state="stopped";return}if(!t){this.state="stopped";return}const i=this.audioRef;if(!("MediaSource"in window)){const a=await t;if(a==null)throw new Error("ReadableStream not yet supported in this browser.");const c=a.getReader(),E=[];await this.readChunk(c,E);const A=new Blob(E,{type:"audio/mpeg"}),M=URL.createObjectURL(A);i.src=M;return}const f=new MediaSource;let l,p=!1;i.src=URL.createObjectURL(f),f.addEventListener("sourceopen",r);async function r(){l=f.addSourceBuffer("audio/mpeg"),l.addEventListener("updateend",m);const a=await t;if(a==null)throw new Error("ReadableStream not yet supported in this browser.");const c=a.getReader(),E=()=>{c.read().then(({done:A,value:M})=>{if(A){p=!0;return}l.updating||l.appendBuffer(M),E()}).catch(A=>{console.error("Error while fetching and appending chunks:",A)})};E(),i.paused&&i.play().catch(A=>console.error("Error playing audio:",A))}function m(){if(p){f.endOfStream(),f.removeEventListener("sourceopen",r),f.removeEventListener("sourceclose",()=>{o.debug("[nylas-summarize-message-button] Source closed")}),l.removeEventListener("updateend",m);return}}}async readChunk(t,i){return t.read().then(({done:f,value:l})=>f?i:(i.push(l),this.readChunk(t,i)))}render(){return o.h(o.Host,{key:"5af7b7da7418a01f4a45b6edcf014d9497ff9f32"},o.h("sp-theme",{key:"9f883f57c7269b1f7f3de1010ebca9a01cbff35d",scale:"medium",color:"dark"},o.h("sp-button",{key:"e2bb3acc0622e8e99592f1111305d093d6e83ade",label:"Summarize email","icon-only":!0,onClickCapture:this.onClick,class:{"summarize-button":!0,stopped:this.state==="stopped",loading:this.state==="loading",playing:this.state==="playing"}},this.state==="stopped"&&o.h("play-icon",null),this.state==="loading"&&o.h("loading-icon",null),this.state==="playing"&&o.h("stop-icon",null)),o.h("audio",{key:"d30e40f1cf34afe76c8b01eaa65e33bf296f9540",ref:t=>this.audioRef=t,autoPlay:!0,onPlaying:()=>this.state="playing",onPause:()=>this.state="stopped",onEnded:()=>{this.state="stopped",o.debug("[nylas-summarize-message-button] Audio ended")}})))}};vn([yn.RegisterComponent({name:"nylas-summarize-message-button",eventToProps:{summarize:async(t,i)=>{const{playAudio:f,updateState:l,abortController:p,message:r}=t.detail,m=o.htmlToPlainText(r.body||"");await l("loading");try{const a=await i.messages.summarizeText(m),c=i.messages.textToSpeech(a,p);await f(c)}catch(a){await l("stopped"),console.error("Error summarizing message:",a)}}},fireRegisterEvent:!0}),Fe("design:type",Function),Fe("design:paramtypes",[]),Fe("design:returntype",void 0)],Be.prototype,"render",null);Be.style=wn;function I(t){return!window.matchMedia("(prefers-color-scheme: dark)").matches||!t?t:t==="transparent"?"color":t.startsWith("#")?Sn(t):t.startsWith("rgb")?Lt(t):t.startsWith("hsl")?Cn(t):Ln(t)?Rn(t):t}function Sn(t){t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const i=(255-parseInt(t.slice(1,3),16)).toString(16).padStart(2,"0"),f=(255-parseInt(t.slice(3,5),16)).toString(16).padStart(2,"0"),l=(255-parseInt(t.slice(5,7),16)).toString(16).padStart(2,"0");return`#${i}${f}${l}`}function Lt(t){var r;const i=(r=t.match(/\d+/g))==null?void 0:r.map(Number);if(!i)return t;const[f,l,p]=i;return`rgb(${255-f}, ${255-l}, ${255-p})`}function Cn(t){var r;const i=(r=t.match(/\d+\.?\d*/g))==null?void 0:r.map(Number);if(!i)return t;const[f,l,p]=i;return`hsl(${f}, ${l}%, ${100-p}%)`}function Ln(t){return/^[a-z]+$/i.test(t)}function Rn(t){return Lt(kn(t))}function kn(t){return t.toLowerCase()==="red"?"rgb(255, 0, 0)":"rgb(0, 0, 0)"}function vt(t){if(t instanceof HTMLStyleElement){let i=t.textContent;if(i){i=i.replaceAll(/@media\s*\(prefers-color-scheme:\s*(dark|light)\)\s*\{([^}]+)\}/g,"");const f=i.matchAll(/border-color:\s*([^;]+)/g);if(f)for(const a of f){const[c,E]=a,A=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");i=i.replaceAll(A,c.replace(E,I(E)))}const l=i.matchAll(/border:\s*([^;]+)/g);if(l)for(const a of l){const c=a[0].trim(),E=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[A,M,P]=a[1].split(" ");i=i.replaceAll(E,c.replace(P,I(P)))}const p=i.matchAll(/background-color:\s*([^;]+)/g);if(p)for(const a of p){const[c,E]=a,A=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");i=i.replaceAll(A,c.replace(E,I(E))),o.debug("backgroundColor",{fullMatch:c,replace:c.replace(E,I(E)),color:E,invertColor:I(E)})}const r=i.matchAll(/background:\s*([^;]+)/g);if(r)for(const a of r){const c=a[0].trim(),E=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[A,M,P]=a[1].split(" ");i=i.replaceAll(E,c.replace(P,I(P)))}const m=i.matchAll(/color:\s*([^;]+)/g);if(m)for(const a of m){const[c,E]=a,A=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");i=i.replaceAll(A,c.replace(E,I(E)))}t.textContent=i}}if(t instanceof HTMLElement){const i=window.getComputedStyle(t),f=i.color||t.style.color,l=i.backgroundColor||t.style.backgroundColor,p=i.borderColor||t.style.borderColor;f&&!l?t.style.color="":f&&l?(t.style.color=I(f),t.style.backgroundColor=I(l),o.debug("element",t),o.debug("computedStyle.color",f),o.debug("computedStyle.backgroundColor",l),o.debug("invertColor(color)",I(f)),o.debug("invertColor(backgroundColor)",I(l))):!f&&l&&(t.style.backgroundColor=""),p&&(o.debug("borderColor",p),t.style.borderColor=I(p)),t.hasAttribute("bgcolor")&&t.removeAttribute("bgcolor")}}function Mn(t){vt(t),t.querySelectorAll("*").forEach(f=>vt(f))}var Rt={exports:{}};/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */(function(t,i){(function(f,l){t.exports=l()})(o.commonjsGlobal,function(){const{entries:f,setPrototypeOf:l,isFrozen:p,getPrototypeOf:r,getOwnPropertyDescriptor:m}=Object;let{freeze:a,seal:c,create:E}=Object,{apply:A,construct:M}=typeof Reflect<"u"&&Reflect;a||(a=function(d){return d}),c||(c=function(d){return d}),A||(A=function(d,b,g){return d.apply(b,g)}),M||(M=function(d,b){return new d(...b)});const P=O(Array.prototype.forEach),le=O(Array.prototype.pop),W=O(Array.prototype.push),j=O(String.prototype.toLowerCase),te=O(String.prototype.toString),ye=O(String.prototype.match),B=O(String.prototype.replace),xt=O(String.prototype.indexOf),Dt=O(String.prototype.trim),D=O(RegExp.prototype.test),ne=Ot(TypeError);function O(y){return function(d){for(var b=arguments.length,g=new Array(b>1?b-1:0),R=1;R<b;R++)g[R-1]=arguments[R];return A(y,d,g)}}function Ot(y){return function(){for(var d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];return M(y,b)}}function h(y,d){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j;l&&l(y,null);let g=d.length;for(;g--;){let R=d[g];if(typeof R=="string"){const z=b(R);z!==R&&(p(d)||(d[g]=z),R=z)}y[R]=!0}return y}function It(y){for(let d=0;d<y.length;d++)m(y,d)===void 0&&(y[d]=null);return y}function G(y){const d=E(null);for(const[b,g]of f(y))m(y,b)!==void 0&&(Array.isArray(g)?d[b]=It(g):g&&typeof g=="object"&&g.constructor===Object?d[b]=G(g):d[b]=g);return d}function ce(y,d){for(;y!==null;){const g=m(y,d);if(g){if(g.get)return O(g.get);if(typeof g.value=="function")return O(g.value)}y=r(y)}function b(g){return console.warn("fallback value for",g),null}return b}const We=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),be=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ee=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pt=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Te=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ut=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ge=a(["#text"]),qe=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ae=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$e=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),de=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zt=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ft=c(/<%[\w\W]*|[\w\W]*%>/gm),Ht=c(/\${[\w\W]*}/gm),Bt=c(/^data-[\-\w.\u00B7-\uFFFF]/),Wt=c(/^aria-[\-\w]+$/),Ye=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=c(/^(?:\w+script|data):/i),qt=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),je=c(/^html$/i);var Xe=Object.freeze({__proto__:null,MUSTACHE_EXPR:zt,ERB_EXPR:Ft,TMPLIT_EXPR:Ht,DATA_ATTR:Bt,ARIA_ATTR:Wt,IS_ALLOWED_URI:Ye,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:qt,DOCTYPE_NAME:je});const $t=function(){return typeof window>"u"?null:window},Yt=function(d,b){if(typeof d!="object"||typeof d.createPolicy!="function")return null;let g=null;const R="data-tt-policy-suffix";b&&b.hasAttribute(R)&&(g=b.getAttribute(R));const z="dompurify"+(g?"#"+g:"");try{return d.createPolicy(z,{createHTML(X){return X},createScriptURL(X){return X}})}catch{return console.warn("TrustedTypes policy "+z+" could not be created."),null}};function Ve(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$t();const d=u=>Ve(u);if(d.version="3.0.8",d.removed=[],!y||!y.document||y.document.nodeType!==9)return d.isSupported=!1,d;let{document:b}=y;const g=b,R=g.currentScript,{DocumentFragment:z,HTMLTemplateElement:X,Node:_e,Element:Ze,NodeFilter:we,NamedNodeMap:Xt=y.NamedNodeMap||y.MozNamedAttrMap,HTMLFormElement:Vt,DOMParser:Zt,trustedTypes:ue}=y,fe=Ze.prototype,Kt=ce(fe,"cloneNode"),Qt=ce(fe,"nextSibling"),Jt=ce(fe,"childNodes"),ve=ce(fe,"parentNode");if(typeof X=="function"){const u=b.createElement("template");u.content&&u.content.ownerDocument&&(b=u.content.ownerDocument)}let k,oe="";const{implementation:Se,createNodeIterator:en,createDocumentFragment:tn,getElementsByTagName:nn}=b,{importNode:on}=g;let U={};d.isSupported=typeof f=="function"&&typeof ve=="function"&&Se&&Se.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ce,ERB_EXPR:Le,TMPLIT_EXPR:Re,DATA_ATTR:an,ARIA_ATTR:rn,IS_SCRIPT_OR_DATA:sn,ATTR_WHITESPACE:Ke}=Xe;let{IS_ALLOWED_URI:Qe}=Xe,w=null;const Je=h({},[...We,...be,...Ee,...Te,...Ge]);let v=null;const et=h({},[...qe,...Ae,...$e,...de]);let _=Object.seal(E(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,ke=null,tt=!0,Me=!0,nt=!1,ot=!0,V=!1,q=!1,Ne=!1,xe=!1,Z=!1,me=!1,pe=!1,it=!0,at=!1;const ln="user-content-";let De=!0,ae=!1,K={},Q=null;const rt=h({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let st=null;const lt=h({},["audio","video","img","source","image","track"]);let Oe=null;const ct=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",F="http://www.w3.org/1999/xhtml";let J=F,Ie=!1,Pe=null;const cn=h({},[he,ge,F],te);let re=null;const dn=["application/xhtml+xml","text/html"],un="text/html";let S=null,ee=null;const fn=b.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ee&&ee===e)){if((!e||typeof e!="object")&&(e={}),e=G(e),re=dn.indexOf(e.PARSER_MEDIA_TYPE)===-1?un:e.PARSER_MEDIA_TYPE,S=re==="application/xhtml+xml"?te:j,w="ALLOWED_TAGS"in e?h({},e.ALLOWED_TAGS,S):Je,v="ALLOWED_ATTR"in e?h({},e.ALLOWED_ATTR,S):et,Pe="ALLOWED_NAMESPACES"in e?h({},e.ALLOWED_NAMESPACES,te):cn,Oe="ADD_URI_SAFE_ATTR"in e?h(G(ct),e.ADD_URI_SAFE_ATTR,S):ct,st="ADD_DATA_URI_TAGS"in e?h(G(lt),e.ADD_DATA_URI_TAGS,S):lt,Q="FORBID_CONTENTS"in e?h({},e.FORBID_CONTENTS,S):rt,ie="FORBID_TAGS"in e?h({},e.FORBID_TAGS,S):{},ke="FORBID_ATTR"in e?h({},e.FORBID_ATTR,S):{},K="USE_PROFILES"in e?e.USE_PROFILES:!1,tt=e.ALLOW_ARIA_ATTR!==!1,Me=e.ALLOW_DATA_ATTR!==!1,nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ot=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=e.SAFE_FOR_TEMPLATES||!1,q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,me=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,it=e.SANITIZE_DOM!==!1,at=e.SANITIZE_NAMED_PROPS||!1,De=e.KEEP_CONTENT!==!1,ae=e.IN_PLACE||!1,Qe=e.ALLOWED_URI_REGEXP||Ye,J=e.NAMESPACE||F,_=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(Me=!1),me&&(Z=!0),K&&(w=h({},Ge),v=[],K.html===!0&&(h(w,We),h(v,qe)),K.svg===!0&&(h(w,be),h(v,Ae),h(v,de)),K.svgFilters===!0&&(h(w,Ee),h(v,Ae),h(v,de)),K.mathMl===!0&&(h(w,Te),h(v,$e),h(v,de))),e.ADD_TAGS&&(w===Je&&(w=G(w)),h(w,e.ADD_TAGS,S)),e.ADD_ATTR&&(v===et&&(v=G(v)),h(v,e.ADD_ATTR,S)),e.ADD_URI_SAFE_ATTR&&h(Oe,e.ADD_URI_SAFE_ATTR,S),e.FORBID_CONTENTS&&(Q===rt&&(Q=G(Q)),h(Q,e.FORBID_CONTENTS,S)),De&&(w["#text"]=!0),q&&h(w,["html","head","body"]),w.table&&(h(w,["tbody"]),delete ie.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ne('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ne('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,oe=k.createHTML("")}else k===void 0&&(k=Yt(ue,R)),k!==null&&typeof oe=="string"&&(oe=k.createHTML(""));a&&a(e),ee=e}},ut=h({},["mi","mo","mn","ms","mtext"]),ft=h({},["foreignobject","desc","title","annotation-xml"]),mn=h({},["title","style","font","a","script"]),mt=h({},[...be,...Ee,...Pt]),pt=h({},[...Te,...Ut]),pn=function(e){let n=ve(e);(!n||!n.tagName)&&(n={namespaceURI:J,tagName:"template"});const s=j(e.tagName),T=j(n.tagName);return Pe[e.namespaceURI]?e.namespaceURI===ge?n.namespaceURI===F?s==="svg":n.namespaceURI===he?s==="svg"&&(T==="annotation-xml"||ut[T]):!!mt[s]:e.namespaceURI===he?n.namespaceURI===F?s==="math":n.namespaceURI===ge?s==="math"&&ft[T]:!!pt[s]:e.namespaceURI===F?n.namespaceURI===ge&&!ft[T]||n.namespaceURI===he&&!ut[T]?!1:!pt[s]&&(mn[s]||!mt[s]):!!(re==="application/xhtml+xml"&&Pe[e.namespaceURI]):!1},$=function(e){W(d.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},ze=function(e,n){try{W(d.removed,{attribute:n.getAttributeNode(e),from:n})}catch{W(d.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is"&&!v[e])if(Z||me)try{$(n)}catch{}else try{n.setAttribute(e,"")}catch{}},ht=function(e){let n=null,s=null;if(xe)e="<remove></remove>"+e;else{const L=ye(e,/^[\r\n\t ]+/);s=L&&L[0]}re==="application/xhtml+xml"&&J===F&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const T=k?k.createHTML(e):e;if(J===F)try{n=new Zt().parseFromString(T,re)}catch{}if(!n||!n.documentElement){n=Se.createDocument(J,"template",null);try{n.documentElement.innerHTML=Ie?oe:T}catch{}}const C=n.body||n.documentElement;return e&&s&&C.insertBefore(b.createTextNode(s),C.childNodes[0]||null),J===F?nn.call(n,q?"html":"body")[0]:q?n.documentElement:C},gt=function(e){return en.call(e.ownerDocument||e,e,we.SHOW_ELEMENT|we.SHOW_COMMENT|we.SHOW_TEXT,null)},hn=function(e){return e instanceof Vt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Xt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},yt=function(e){return typeof _e=="function"&&e instanceof _e},H=function(e,n,s){U[e]&&P(U[e],T=>{T.call(d,n,s,ee)})},bt=function(e){let n=null;if(H("beforeSanitizeElements",e,null),hn(e))return $(e),!0;const s=S(e.nodeName);if(H("uponSanitizeElement",e,{tagName:s,allowedTags:w}),e.hasChildNodes()&&!yt(e.firstElementChild)&&D(/<[/\w]/g,e.innerHTML)&&D(/<[/\w]/g,e.textContent))return $(e),!0;if(!w[s]||ie[s]){if(!ie[s]&&Tt(s)&&(_.tagNameCheck instanceof RegExp&&D(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s)))return!1;if(De&&!Q[s]){const T=ve(e)||e.parentNode,C=Jt(e)||e.childNodes;if(C&&T){const L=C.length;for(let N=L-1;N>=0;--N)T.insertBefore(Kt(C[N],!0),Qt(e))}}return $(e),!0}return e instanceof Ze&&!pn(e)||(s==="noscript"||s==="noembed"||s==="noframes")&&D(/<\/no(script|embed|frames)/i,e.innerHTML)?($(e),!0):(V&&e.nodeType===3&&(n=e.textContent,P([Ce,Le,Re],T=>{n=B(n,T," ")}),e.textContent!==n&&(W(d.removed,{element:e.cloneNode()}),e.textContent=n)),H("afterSanitizeElements",e,null),!1)},Et=function(e,n,s){if(it&&(n==="id"||n==="name")&&(s in b||s in fn))return!1;if(!(Me&&!ke[n]&&D(an,n))){if(!(tt&&D(rn,n))){if(!v[n]||ke[n]){if(!(Tt(e)&&(_.tagNameCheck instanceof RegExp&&D(_.tagNameCheck,e)||_.tagNameCheck instanceof Function&&_.tagNameCheck(e))&&(_.attributeNameCheck instanceof RegExp&&D(_.attributeNameCheck,n)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(n))||n==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&D(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))))return!1}else if(!Oe[n]){if(!D(Qe,B(s,Ke,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&xt(s,"data:")===0&&st[e])){if(!(nt&&!D(sn,B(s,Ke,"")))){if(s)return!1}}}}}}return!0},Tt=function(e){return e.indexOf("-")>0},At=function(e){H("beforeSanitizeAttributes",e,null);const{attributes:n}=e;if(!n)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v};let T=n.length;for(;T--;){const C=n[T],{name:L,namespaceURI:N,value:Y}=C,se=S(L);let x=L==="value"?Y:Dt(Y);if(s.attrName=se,s.attrValue=x,s.keepAttr=!0,s.forceKeepAttr=void 0,H("uponSanitizeAttribute",e,s),x=s.attrValue,s.forceKeepAttr||(ze(L,e),!s.keepAttr))continue;if(!ot&&D(/\/>/i,x)){ze(L,e);continue}V&&P([Ce,Le,Re],wt=>{x=B(x,wt," ")});const _t=S(e.nodeName);if(Et(_t,se,x)){if(at&&(se==="id"||se==="name")&&(ze(L,e),x=ln+x),k&&typeof ue=="object"&&typeof ue.getAttributeType=="function"&&!N)switch(ue.getAttributeType(_t,se)){case"TrustedHTML":{x=k.createHTML(x);break}case"TrustedScriptURL":{x=k.createScriptURL(x);break}}try{N?e.setAttributeNS(N,L,x):e.setAttribute(L,x),le(d.removed)}catch{}}}H("afterSanitizeAttributes",e,null)},gn=function u(e){let n=null;const s=gt(e);for(H("beforeSanitizeShadowDOM",e,null);n=s.nextNode();)H("uponSanitizeShadowNode",n,null),!bt(n)&&(n.content instanceof z&&u(n.content),At(n));H("afterSanitizeShadowDOM",e,null)};return d.sanitize=function(u){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,s=null,T=null,C=null;if(Ie=!u,Ie&&(u="<!-->"),typeof u!="string"&&!yt(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw ne("dirty is not a string, aborting")}else throw ne("toString is not a function");if(!d.isSupported)return u;if(Ne||Ue(e),d.removed=[],typeof u=="string"&&(ae=!1),ae){if(u.nodeName){const Y=S(u.nodeName);if(!w[Y]||ie[Y])throw ne("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof _e)n=ht("<!---->"),s=n.ownerDocument.importNode(u,!0),s.nodeType===1&&s.nodeName==="BODY"||s.nodeName==="HTML"?n=s:n.appendChild(s);else{if(!Z&&!V&&!q&&u.indexOf("<")===-1)return k&&pe?k.createHTML(u):u;if(n=ht(u),!n)return Z?null:pe?oe:""}n&&xe&&$(n.firstChild);const L=gt(ae?u:n);for(;T=L.nextNode();)bt(T)||(T.content instanceof z&&gn(T.content),At(T));if(ae)return u;if(Z){if(me)for(C=tn.call(n.ownerDocument);n.firstChild;)C.appendChild(n.firstChild);else C=n;return(v.shadowroot||v.shadowrootmode)&&(C=on.call(g,C,!0)),C}let N=q?n.outerHTML:n.innerHTML;return q&&w["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&D(je,n.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+n.ownerDocument.doctype.name+`>
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-2a53b6a8.cjs"),bn=require("./register-component-ea95564d-ab3d630f.cjs");require("react");require("react-dom");const yn=".sc-forward-icon-h{display:flex}",En=yn,St=class{constructor(t){o.registerInstance(this,t),this.width="15",this.height="15"}render(){return o.h("svg",{key:"c8b018ea9d3c7e33125a3cab408be079b8091071",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},o.h("path",{key:"b1af6cc12e320cc77734d7ad77ac4d5149f7000d",d:"m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z","fill-rule":"evenodd"}))}};St.style=En;const Tn=':host{display:grid;color:var(--nylas-color-primary-900)}.editor{position:relative;display:block;max-height:300px;overflow:auto;padding:1rem;border:1px solid var(--nylas-color-primary-300)}.editor blockquote{visibility:hidden;overflow:hidden;position:relative;transition:height 0.3s ease;margin:0}.editor blockquote::before{content:"...";visibility:visible;opacity:1;position:absolute;top:0;left:0;background-color:var(--nylas-color-primary-300);width:20px;text-align:center;color:var(--nylas-color-primary-800);vertical-align:middle;display:flex;justify-content:center;align-items:center;align-self:center;cursor:pointer}.editor .collapsed{height:20px}.editor .expanded{visibility:visible;opacity:1;height:auto;margin:0px 0px 0px 0.8ex;border-left:1px solid var(--nylas-color-primary-300);padding-left:1rem}.editor .expanded::before{display:none;}.buttons{display:flex;margin-top:1rem;justify-content:space-between}.buttons sp-button{border-radius:var(--nylas-border-radius);background-color:var(--nylas-color-primary-400);color:var(--nylas-color-primary-900);fill:var(--nylas-color-primary-900)}.buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.buttons sp-button chevron-icon{display:inline-block}.buttons .close{justify-self:end}.toolbar{position:absolute;display:none;background-color:var(--nylas-color-primary-200);border-radius:var(--nylas-border-radius);z-index:1}.toolbar sp-button{border:0}',An=Tn,Ct=class{constructor(t){o.registerInstance(this,t),this.close=o.createEvent(this,"close",7),this.send=o.createEvent(this,"send",7),this.closeComposer=i=>{this.close.emit(i)},this.sendComposer=i=>{var l;if(!this.editorEl){o.debug("no editor element");return}const f=this.editorEl.querySelector(".message-body");if(!f){o.debug("no message body");return}this.message&&(this.send.emit({message:this.message,replyBody:((l=f.querySelector(".message-body"))==null?void 0:l.innerHTML)||""}),this.close.emit(i),this.editorEl.innerHTML="")},this.message=void 0,this.viewEmailElement=void 0}connectedCallback(){}disconnectedCallback(){this.editorEl&&(this.editorEl.innerHTML="")}componentWillLoad(){}async componentDidLoad(){if(this.message&&this.watchBody(this.message),!this.editorEl){o.debug("[connectedCallback] no editor element");return}if(!this.toolbarEl){o.debug("[connectedCallback] no toolbar element");return}const t=this.editorEl,i=this.toolbarEl;t.addEventListener("mouseup",f=>{var B;const l=(B=this.host.shadowRoot)==null?void 0:B.getSelection();if(!l){o.debug("no selection");return}const p=l.getRangeAt(0),r=l.toString();if(!r){i.style.display="none";return}const m=t.querySelector(".message-body");if(!m){o.debug("no message body");return}const c=p.commonAncestorContainer.parentElement;if(!c)return;const E=m.getBoundingClientRect();o.debug("messageBodyRect",{messageBodyRect:E});const A=c.getBoundingClientRect();o.debug("foundRect",{foundRect:A});const le=(c.childNodes[0].textContent||"").indexOf(r),W=window.getComputedStyle(c).fontSize,j=parseInt(W.replace("px",""),10),te=A.top-E.top-i.clientHeight,be=le*(1/j)*100;i.style.top=`${te}px`,i.style.left=`${be}px`,i.style.display="block"})}watchBody(t){var r;if(!this.editorEl){o.debug("no editor element");return}this.editorEl.querySelectorAll(".message-body").forEach(m=>m.remove());const i=document.createElement("div");i.classList.add("message-body");const f=document.createElement("p");f.innerHTML="&nbsp;",i.appendChild(f);const l=document.createElement("br");i.appendChild(l);const p=document.createElement("div");if(p.classList.add("reply-text"),p.innerText=`On ${new Date(t.date*1e3).toLocaleDateString(void 0,{dateStyle:"full"})} <${(r=t.from)==null?void 0:r.map(m=>m.name||m.email).join(", ")}> wrote:`,i.appendChild(p),t.body){const m=document.createElement("html");m.innerHTML=t.body;const a=document.createElement("blockquote");a.classList.add("collapsed"),a.classList.add("gmail_quote"),a.innerHTML=m.innerHTML,i.appendChild(a),o.debug("replyContainer",{replyContainer:a})}this.editorEl.appendChild(i),this.editorEl.querySelectorAll("blockquote.collapsed").forEach(m=>{m.addEventListener("click",function(a){a.preventDefault();const c=a.target;c.classList.remove("collapsed"),c.classList.add("expanded")},{once:!0})}),this.editorEl.focus()}render(){return o.h(o.Host,{key:"e24e688a3965e332b1d14284a0142bd82048449b"},o.h("sp-theme",{key:"7bd78108aeab6bd84d51002dfecfdfd8658f82df",scale:"medium",color:"dark"},o.h("div",{key:"0408b3da7f2fa20c80aa57167c32504fba8bd752",class:"editor",contentEditable:!0,ref:t=>this.editorEl=t},o.h("div",{key:"a0a78800e4a463cc47dbe74d4b95d633ce58cb0c",class:"toolbar",ref:t=>this.toolbarEl=t,contentEditable:!1},o.h("sp-button",{key:"80af95fbdadd9adfcc6b7cc7cf0c63f705eb8164",quiet:!0,onClick:()=>document.execCommand("bold")},o.h("div",{key:"f9db6a419ad21918d0abc3e45b50c9722b5655ec",slot:"icon"},o.h("bold-icon",{key:"a4e8df2a934c404ff435ef0920d3bd69204ecda2"})),o.h("div",{key:"609415df8fccca26ac59095400d7a8c83605156a",slot:"label"},"Bold")),o.h("sp-button",{key:"4b90d3395738fda4242994134b7625535b21157b",quiet:!0,onClick:()=>document.execCommand("underline")},o.h("div",{key:"2cf5470ae2a40175682cd2423035b59d8f2aabe2",slot:"icon"},o.h("underline-icon",{key:"4d77573ab3628b4956c196be6db4c00cfcce9699"})),o.h("div",{key:"21362c41bcff11414325a38882586013cefef497",slot:"label"},"Underline")),o.h("sp-button",{key:"8d1bdae9a2d782364c4848118bab933e8ca6c7f5",quiet:!0,onClick:()=>document.execCommand("italic")},o.h("div",{key:"743c08e076b633500dd08b569d7496784447c73f",slot:"icon"},o.h("italic-icon",{key:"0a1ca27562711edf8b7b7221d420fcfdd5110a95"})),o.h("div",{key:"3b1b29a8eb334a59147b9c46eb67064201a44bf8",slot:"label"},"Italic")))),o.h("div",{key:"901be1e103c0f2b851669d8126d6258091530e81",class:"buttons"},o.h("sp-button",{key:"b6bba4d7ae73f610bd3af6c08a0167ffab3dbc88",onClick:this.sendComposer,class:"send"},"Send"),o.h("sp-button",{key:"7b68f79eb2fb7a73f3f69863a3cf6fafdcdfb9f1",onClick:this.closeComposer,class:"close"},"Close"))))}get host(){return o.getElement(this)}static get watchers(){return{message:["watchBody"]}}};Ct.style=An;const _n=":host{display:block}sp-button{padding:0;border:0;border-radius:var(--nylas-border-radius);min-block-size:50%;min-inline-size:2rem;background-color:var(--nylas-color-primary-300);fill:var(--nylas-color-primary-800)}sp-button:hover{background-color:var(--nylas-color-primary-400)}.summarize-button.stopped{animation:none}.summarize-button.playing{animation:pulse 2s infinite}.summarize-button.loading{display:flex;align-content:center;height:1.5rem;width:2rem;vertical-align:middle;animation:pulse 2s infinite;flex-wrap:wrap}.summarize-button.loading loading-icon{--dot-color:var(--nylas-color-primary-600)}@keyframes pulse{0%{transform:scale(1);box-shadow:0 0 0 0 var(--nylas-color-primary-300)}70%{transform:scale(1.05);box-shadow:0 0 0 10px rgba(255, 69, 0, 0)}100%{transform:scale(1);box-shadow:0 0 0 0 rgba(255, 69, 0, 0)}}@keyframes wave{0%{transform:translateX(0)}50%{transform:translateX(100%)}100%{transform:translateX(0)}}",wn=_n;var vn=function(t,i,f,l){var p=arguments.length,r=p<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,f):l,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,i,f,l);else for(var a=t.length-1;a>=0;a--)(m=t[a])&&(r=(p<3?m(r):p>3?m(i,f,r):m(i,f))||r);return p>3&&r&&Object.defineProperty(i,f,r),r},Fe=function(t,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,i)};const Be=class{constructor(t){o.registerInstance(this,t),this.summarize=o.createEvent(this,"summarize",7),this.abortController=new AbortController,this.onClick=async i=>{var f,l;i.preventDefault(),i.stopPropagation(),this.state==="stopped"?this.message&&(this.abortController=new AbortController,this.summarize.emit({abortController:this.abortController,playAudio:this.playAudio,message:this.message,updateState:this.updateState}).defaultPrevented||(o.debug("[nylas-summarize-message-button] Default event not prevented, summarizing message"),this.audioRef&&(await this.audioRef.play().then(()=>{var r;return(r=this.audioRef)==null?void 0:r.pause()}).catch(r=>console.error("Error playing audio:",r)),await this.audioRef.play().catch(r=>console.error("Error playing audio:",r))))):this.state==="playing"?((f=this.abortController)==null||f.abort(),(l=this.audioRef)==null||l.pause()):this.state="stopped"},this.message=void 0,this.state="stopped",this.playAudio=this.playAudio.bind(this),this.updateState=this.updateState.bind(this)}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){o.debug("[nylas-summarize-message-button] Component will load")}async componentDidLoad(){o.debug("[nylas-summarize-message-button] Component did load")}async updateState(t){this.state=t}async playAudio(t){if(!this.audioRef){this.state="stopped";return}if(!t){this.state="stopped";return}const i=this.audioRef;if(!("MediaSource"in window)){const a=await t;if(a==null)throw new Error("ReadableStream not yet supported in this browser.");const c=a.getReader(),E=[];await this.readChunk(c,E);const A=new Blob(E,{type:"audio/mpeg"}),M=URL.createObjectURL(A);i.src=M;return}const f=new MediaSource;let l,p=!1;i.src=URL.createObjectURL(f),f.addEventListener("sourceopen",r);async function r(){l=f.addSourceBuffer("audio/mpeg"),l.addEventListener("updateend",m);const a=await t;if(a==null)throw new Error("ReadableStream not yet supported in this browser.");const c=a.getReader(),E=()=>{c.read().then(({done:A,value:M})=>{if(A){p=!0;return}l.updating||l.appendBuffer(M),E()}).catch(A=>{console.error("Error while fetching and appending chunks:",A)})};E(),i.paused&&i.play().catch(A=>console.error("Error playing audio:",A))}function m(){if(p){f.endOfStream(),f.removeEventListener("sourceopen",r),f.removeEventListener("sourceclose",()=>{o.debug("[nylas-summarize-message-button] Source closed")}),l.removeEventListener("updateend",m);return}}}async readChunk(t,i){return t.read().then(({done:f,value:l})=>f?i:(i.push(l),this.readChunk(t,i)))}render(){return o.h(o.Host,{key:"ea90a71f09b4b71f83271816680f466c85125368"},o.h("sp-theme",{key:"317fbcb6f72b0e3eedbd63e52804b333af260987",scale:"medium",color:"dark"},o.h("sp-button",{key:"dbaa8ee59ab4c449d0e12da8fa6e10a4476cee4a",label:"Summarize email","icon-only":!0,onClickCapture:this.onClick,class:{"summarize-button":!0,stopped:this.state==="stopped",loading:this.state==="loading",playing:this.state==="playing"}},this.state==="stopped"&&o.h("play-icon",null),this.state==="loading"&&o.h("loading-icon",null),this.state==="playing"&&o.h("stop-icon",null)),o.h("audio",{key:"7794f0eaad660040bb2bbd7ea25b6590096b9648",ref:t=>this.audioRef=t,autoPlay:!0,onPlaying:()=>this.state="playing",onPause:()=>this.state="stopped",onEnded:()=>{this.state="stopped",o.debug("[nylas-summarize-message-button] Audio ended")}})))}};vn([bn.RegisterComponent({name:"nylas-summarize-message-button",eventToProps:{summarize:async(t,i)=>{const{playAudio:f,updateState:l,abortController:p,message:r}=t.detail,m=o.htmlToPlainText(r.body||"");await l("loading");try{const a=await i.messages.summarizeText(m),c=i.messages.textToSpeech(a,p);await f(c)}catch(a){await l("stopped"),console.error("Error summarizing message:",a)}}},fireRegisterEvent:!0}),Fe("design:type",Function),Fe("design:paramtypes",[]),Fe("design:returntype",void 0)],Be.prototype,"render",null);Be.style=wn;function I(t){return!window.matchMedia("(prefers-color-scheme: dark)").matches||!t?t:t==="transparent"?"color":t.startsWith("#")?Sn(t):t.startsWith("rgb")?Lt(t):t.startsWith("hsl")?Cn(t):Ln(t)?Rn(t):t}function Sn(t){t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const i=(255-parseInt(t.slice(1,3),16)).toString(16).padStart(2,"0"),f=(255-parseInt(t.slice(3,5),16)).toString(16).padStart(2,"0"),l=(255-parseInt(t.slice(5,7),16)).toString(16).padStart(2,"0");return`#${i}${f}${l}`}function Lt(t){var r;const i=(r=t.match(/\d+/g))==null?void 0:r.map(Number);if(!i)return t;const[f,l,p]=i;return`rgb(${255-f}, ${255-l}, ${255-p})`}function Cn(t){var r;const i=(r=t.match(/\d+\.?\d*/g))==null?void 0:r.map(Number);if(!i)return t;const[f,l,p]=i;return`hsl(${f}, ${l}%, ${100-p}%)`}function Ln(t){return/^[a-z]+$/i.test(t)}function Rn(t){return Lt(kn(t))}function kn(t){return t.toLowerCase()==="red"?"rgb(255, 0, 0)":"rgb(0, 0, 0)"}function vt(t){if(t instanceof HTMLStyleElement){let i=t.textContent;if(i){i=i.replaceAll(/@media\s*\(prefers-color-scheme:\s*(dark|light)\)\s*\{([^}]+)\}/g,"");const f=i.matchAll(/border-color:\s*([^;]+)/g);if(f)for(const a of f){const[c,E]=a,A=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");i=i.replaceAll(A,c.replace(E,I(E)))}const l=i.matchAll(/border:\s*([^;]+)/g);if(l)for(const a of l){const c=a[0].trim(),E=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[A,M,P]=a[1].split(" ");i=i.replaceAll(E,c.replace(P,I(P)))}const p=i.matchAll(/background-color:\s*([^;]+)/g);if(p)for(const a of p){const[c,E]=a,A=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");i=i.replaceAll(A,c.replace(E,I(E))),o.debug("backgroundColor",{fullMatch:c,replace:c.replace(E,I(E)),color:E,invertColor:I(E)})}const r=i.matchAll(/background:\s*([^;]+)/g);if(r)for(const a of r){const c=a[0].trim(),E=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[A,M,P]=a[1].split(" ");i=i.replaceAll(E,c.replace(P,I(P)))}const m=i.matchAll(/color:\s*([^;]+)/g);if(m)for(const a of m){const[c,E]=a,A=c.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");i=i.replaceAll(A,c.replace(E,I(E)))}t.textContent=i}}if(t instanceof HTMLElement){const i=window.getComputedStyle(t),f=i.color||t.style.color,l=i.backgroundColor||t.style.backgroundColor,p=i.borderColor||t.style.borderColor;f&&!l?t.style.color="":f&&l?(t.style.color=I(f),t.style.backgroundColor=I(l),o.debug("element",t),o.debug("computedStyle.color",f),o.debug("computedStyle.backgroundColor",l),o.debug("invertColor(color)",I(f)),o.debug("invertColor(backgroundColor)",I(l))):!f&&l&&(t.style.backgroundColor=""),p&&(o.debug("borderColor",p),t.style.borderColor=I(p)),t.hasAttribute("bgcolor")&&t.removeAttribute("bgcolor")}}function Mn(t){vt(t),t.querySelectorAll("*").forEach(f=>vt(f))}var Rt={exports:{}};/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */(function(t,i){(function(f,l){t.exports=l()})(o.commonjsGlobal,function(){const{entries:f,setPrototypeOf:l,isFrozen:p,getPrototypeOf:r,getOwnPropertyDescriptor:m}=Object;let{freeze:a,seal:c,create:E}=Object,{apply:A,construct:M}=typeof Reflect<"u"&&Reflect;a||(a=function(d){return d}),c||(c=function(d){return d}),A||(A=function(d,y,g){return d.apply(y,g)}),M||(M=function(d,y){return new d(...y)});const P=O(Array.prototype.forEach),le=O(Array.prototype.pop),W=O(Array.prototype.push),j=O(String.prototype.toLowerCase),te=O(String.prototype.toString),be=O(String.prototype.match),B=O(String.prototype.replace),xt=O(String.prototype.indexOf),Dt=O(String.prototype.trim),D=O(RegExp.prototype.test),ne=Ot(TypeError);function O(b){return function(d){for(var y=arguments.length,g=new Array(y>1?y-1:0),R=1;R<y;R++)g[R-1]=arguments[R];return A(b,d,g)}}function Ot(b){return function(){for(var d=arguments.length,y=new Array(d),g=0;g<d;g++)y[g]=arguments[g];return M(b,y)}}function h(b,d){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j;l&&l(b,null);let g=d.length;for(;g--;){let R=d[g];if(typeof R=="string"){const z=y(R);z!==R&&(p(d)||(d[g]=z),R=z)}b[R]=!0}return b}function It(b){for(let d=0;d<b.length;d++)m(b,d)===void 0&&(b[d]=null);return b}function G(b){const d=E(null);for(const[y,g]of f(b))m(b,y)!==void 0&&(Array.isArray(g)?d[y]=It(g):g&&typeof g=="object"&&g.constructor===Object?d[y]=G(g):d[y]=g);return d}function ce(b,d){for(;b!==null;){const g=m(b,d);if(g){if(g.get)return O(g.get);if(typeof g.value=="function")return O(g.value)}b=r(b)}function y(g){return console.warn("fallback value for",g),null}return y}const We=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ye=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ee=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pt=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Te=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ut=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ge=a(["#text"]),qe=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ae=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$e=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),de=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zt=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ft=c(/<%[\w\W]*|[\w\W]*%>/gm),Ht=c(/\${[\w\W]*}/gm),Bt=c(/^data-[\-\w.\u00B7-\uFFFF]/),Wt=c(/^aria-[\-\w]+$/),Ye=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=c(/^(?:\w+script|data):/i),qt=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),je=c(/^html$/i);var Xe=Object.freeze({__proto__:null,MUSTACHE_EXPR:zt,ERB_EXPR:Ft,TMPLIT_EXPR:Ht,DATA_ATTR:Bt,ARIA_ATTR:Wt,IS_ALLOWED_URI:Ye,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:qt,DOCTYPE_NAME:je});const $t=function(){return typeof window>"u"?null:window},Yt=function(d,y){if(typeof d!="object"||typeof d.createPolicy!="function")return null;let g=null;const R="data-tt-policy-suffix";y&&y.hasAttribute(R)&&(g=y.getAttribute(R));const z="dompurify"+(g?"#"+g:"");try{return d.createPolicy(z,{createHTML(X){return X},createScriptURL(X){return X}})}catch{return console.warn("TrustedTypes policy "+z+" could not be created."),null}};function Ve(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$t();const d=u=>Ve(u);if(d.version="3.0.8",d.removed=[],!b||!b.document||b.document.nodeType!==9)return d.isSupported=!1,d;let{document:y}=b;const g=y,R=g.currentScript,{DocumentFragment:z,HTMLTemplateElement:X,Node:_e,Element:Ze,NodeFilter:we,NamedNodeMap:Xt=b.NamedNodeMap||b.MozNamedAttrMap,HTMLFormElement:Vt,DOMParser:Zt,trustedTypes:ue}=b,fe=Ze.prototype,Kt=ce(fe,"cloneNode"),Qt=ce(fe,"nextSibling"),Jt=ce(fe,"childNodes"),ve=ce(fe,"parentNode");if(typeof X=="function"){const u=y.createElement("template");u.content&&u.content.ownerDocument&&(y=u.content.ownerDocument)}let k,oe="";const{implementation:Se,createNodeIterator:en,createDocumentFragment:tn,getElementsByTagName:nn}=y,{importNode:on}=g;let U={};d.isSupported=typeof f=="function"&&typeof ve=="function"&&Se&&Se.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ce,ERB_EXPR:Le,TMPLIT_EXPR:Re,DATA_ATTR:an,ARIA_ATTR:rn,IS_SCRIPT_OR_DATA:sn,ATTR_WHITESPACE:Ke}=Xe;let{IS_ALLOWED_URI:Qe}=Xe,w=null;const Je=h({},[...We,...ye,...Ee,...Te,...Ge]);let v=null;const et=h({},[...qe,...Ae,...$e,...de]);let _=Object.seal(E(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,ke=null,tt=!0,Me=!0,nt=!1,ot=!0,V=!1,q=!1,Ne=!1,xe=!1,Z=!1,me=!1,pe=!1,it=!0,at=!1;const ln="user-content-";let De=!0,ae=!1,K={},Q=null;const rt=h({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let st=null;const lt=h({},["audio","video","img","source","image","track"]);let Oe=null;const ct=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",F="http://www.w3.org/1999/xhtml";let J=F,Ie=!1,Pe=null;const cn=h({},[he,ge,F],te);let re=null;const dn=["application/xhtml+xml","text/html"],un="text/html";let S=null,ee=null;const fn=y.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ee&&ee===e)){if((!e||typeof e!="object")&&(e={}),e=G(e),re=dn.indexOf(e.PARSER_MEDIA_TYPE)===-1?un:e.PARSER_MEDIA_TYPE,S=re==="application/xhtml+xml"?te:j,w="ALLOWED_TAGS"in e?h({},e.ALLOWED_TAGS,S):Je,v="ALLOWED_ATTR"in e?h({},e.ALLOWED_ATTR,S):et,Pe="ALLOWED_NAMESPACES"in e?h({},e.ALLOWED_NAMESPACES,te):cn,Oe="ADD_URI_SAFE_ATTR"in e?h(G(ct),e.ADD_URI_SAFE_ATTR,S):ct,st="ADD_DATA_URI_TAGS"in e?h(G(lt),e.ADD_DATA_URI_TAGS,S):lt,Q="FORBID_CONTENTS"in e?h({},e.FORBID_CONTENTS,S):rt,ie="FORBID_TAGS"in e?h({},e.FORBID_TAGS,S):{},ke="FORBID_ATTR"in e?h({},e.FORBID_ATTR,S):{},K="USE_PROFILES"in e?e.USE_PROFILES:!1,tt=e.ALLOW_ARIA_ATTR!==!1,Me=e.ALLOW_DATA_ATTR!==!1,nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ot=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=e.SAFE_FOR_TEMPLATES||!1,q=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,me=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,it=e.SANITIZE_DOM!==!1,at=e.SANITIZE_NAMED_PROPS||!1,De=e.KEEP_CONTENT!==!1,ae=e.IN_PLACE||!1,Qe=e.ALLOWED_URI_REGEXP||Ye,J=e.NAMESPACE||F,_=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(Me=!1),me&&(Z=!0),K&&(w=h({},Ge),v=[],K.html===!0&&(h(w,We),h(v,qe)),K.svg===!0&&(h(w,ye),h(v,Ae),h(v,de)),K.svgFilters===!0&&(h(w,Ee),h(v,Ae),h(v,de)),K.mathMl===!0&&(h(w,Te),h(v,$e),h(v,de))),e.ADD_TAGS&&(w===Je&&(w=G(w)),h(w,e.ADD_TAGS,S)),e.ADD_ATTR&&(v===et&&(v=G(v)),h(v,e.ADD_ATTR,S)),e.ADD_URI_SAFE_ATTR&&h(Oe,e.ADD_URI_SAFE_ATTR,S),e.FORBID_CONTENTS&&(Q===rt&&(Q=G(Q)),h(Q,e.FORBID_CONTENTS,S)),De&&(w["#text"]=!0),q&&h(w,["html","head","body"]),w.table&&(h(w,["tbody"]),delete ie.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ne('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ne('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,oe=k.createHTML("")}else k===void 0&&(k=Yt(ue,R)),k!==null&&typeof oe=="string"&&(oe=k.createHTML(""));a&&a(e),ee=e}},ut=h({},["mi","mo","mn","ms","mtext"]),ft=h({},["foreignobject","desc","title","annotation-xml"]),mn=h({},["title","style","font","a","script"]),mt=h({},[...ye,...Ee,...Pt]),pt=h({},[...Te,...Ut]),pn=function(e){let n=ve(e);(!n||!n.tagName)&&(n={namespaceURI:J,tagName:"template"});const s=j(e.tagName),T=j(n.tagName);return Pe[e.namespaceURI]?e.namespaceURI===ge?n.namespaceURI===F?s==="svg":n.namespaceURI===he?s==="svg"&&(T==="annotation-xml"||ut[T]):!!mt[s]:e.namespaceURI===he?n.namespaceURI===F?s==="math":n.namespaceURI===ge?s==="math"&&ft[T]:!!pt[s]:e.namespaceURI===F?n.namespaceURI===ge&&!ft[T]||n.namespaceURI===he&&!ut[T]?!1:!pt[s]&&(mn[s]||!mt[s]):!!(re==="application/xhtml+xml"&&Pe[e.namespaceURI]):!1},$=function(e){W(d.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},ze=function(e,n){try{W(d.removed,{attribute:n.getAttributeNode(e),from:n})}catch{W(d.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is"&&!v[e])if(Z||me)try{$(n)}catch{}else try{n.setAttribute(e,"")}catch{}},ht=function(e){let n=null,s=null;if(xe)e="<remove></remove>"+e;else{const L=be(e,/^[\r\n\t ]+/);s=L&&L[0]}re==="application/xhtml+xml"&&J===F&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const T=k?k.createHTML(e):e;if(J===F)try{n=new Zt().parseFromString(T,re)}catch{}if(!n||!n.documentElement){n=Se.createDocument(J,"template",null);try{n.documentElement.innerHTML=Ie?oe:T}catch{}}const C=n.body||n.documentElement;return e&&s&&C.insertBefore(y.createTextNode(s),C.childNodes[0]||null),J===F?nn.call(n,q?"html":"body")[0]:q?n.documentElement:C},gt=function(e){return en.call(e.ownerDocument||e,e,we.SHOW_ELEMENT|we.SHOW_COMMENT|we.SHOW_TEXT,null)},hn=function(e){return e instanceof Vt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Xt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},bt=function(e){return typeof _e=="function"&&e instanceof _e},H=function(e,n,s){U[e]&&P(U[e],T=>{T.call(d,n,s,ee)})},yt=function(e){let n=null;if(H("beforeSanitizeElements",e,null),hn(e))return $(e),!0;const s=S(e.nodeName);if(H("uponSanitizeElement",e,{tagName:s,allowedTags:w}),e.hasChildNodes()&&!bt(e.firstElementChild)&&D(/<[/\w]/g,e.innerHTML)&&D(/<[/\w]/g,e.textContent))return $(e),!0;if(!w[s]||ie[s]){if(!ie[s]&&Tt(s)&&(_.tagNameCheck instanceof RegExp&&D(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s)))return!1;if(De&&!Q[s]){const T=ve(e)||e.parentNode,C=Jt(e)||e.childNodes;if(C&&T){const L=C.length;for(let N=L-1;N>=0;--N)T.insertBefore(Kt(C[N],!0),Qt(e))}}return $(e),!0}return e instanceof Ze&&!pn(e)||(s==="noscript"||s==="noembed"||s==="noframes")&&D(/<\/no(script|embed|frames)/i,e.innerHTML)?($(e),!0):(V&&e.nodeType===3&&(n=e.textContent,P([Ce,Le,Re],T=>{n=B(n,T," ")}),e.textContent!==n&&(W(d.removed,{element:e.cloneNode()}),e.textContent=n)),H("afterSanitizeElements",e,null),!1)},Et=function(e,n,s){if(it&&(n==="id"||n==="name")&&(s in y||s in fn))return!1;if(!(Me&&!ke[n]&&D(an,n))){if(!(tt&&D(rn,n))){if(!v[n]||ke[n]){if(!(Tt(e)&&(_.tagNameCheck instanceof RegExp&&D(_.tagNameCheck,e)||_.tagNameCheck instanceof Function&&_.tagNameCheck(e))&&(_.attributeNameCheck instanceof RegExp&&D(_.attributeNameCheck,n)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(n))||n==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&D(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))))return!1}else if(!Oe[n]){if(!D(Qe,B(s,Ke,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&xt(s,"data:")===0&&st[e])){if(!(nt&&!D(sn,B(s,Ke,"")))){if(s)return!1}}}}}}return!0},Tt=function(e){return e.indexOf("-")>0},At=function(e){H("beforeSanitizeAttributes",e,null);const{attributes:n}=e;if(!n)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v};let T=n.length;for(;T--;){const C=n[T],{name:L,namespaceURI:N,value:Y}=C,se=S(L);let x=L==="value"?Y:Dt(Y);if(s.attrName=se,s.attrValue=x,s.keepAttr=!0,s.forceKeepAttr=void 0,H("uponSanitizeAttribute",e,s),x=s.attrValue,s.forceKeepAttr||(ze(L,e),!s.keepAttr))continue;if(!ot&&D(/\/>/i,x)){ze(L,e);continue}V&&P([Ce,Le,Re],wt=>{x=B(x,wt," ")});const _t=S(e.nodeName);if(Et(_t,se,x)){if(at&&(se==="id"||se==="name")&&(ze(L,e),x=ln+x),k&&typeof ue=="object"&&typeof ue.getAttributeType=="function"&&!N)switch(ue.getAttributeType(_t,se)){case"TrustedHTML":{x=k.createHTML(x);break}case"TrustedScriptURL":{x=k.createScriptURL(x);break}}try{N?e.setAttributeNS(N,L,x):e.setAttribute(L,x),le(d.removed)}catch{}}}H("afterSanitizeAttributes",e,null)},gn=function u(e){let n=null;const s=gt(e);for(H("beforeSanitizeShadowDOM",e,null);n=s.nextNode();)H("uponSanitizeShadowNode",n,null),!yt(n)&&(n.content instanceof z&&u(n.content),At(n));H("afterSanitizeShadowDOM",e,null)};return d.sanitize=function(u){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,s=null,T=null,C=null;if(Ie=!u,Ie&&(u="<!-->"),typeof u!="string"&&!bt(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw ne("dirty is not a string, aborting")}else throw ne("toString is not a function");if(!d.isSupported)return u;if(Ne||Ue(e),d.removed=[],typeof u=="string"&&(ae=!1),ae){if(u.nodeName){const Y=S(u.nodeName);if(!w[Y]||ie[Y])throw ne("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof _e)n=ht("<!---->"),s=n.ownerDocument.importNode(u,!0),s.nodeType===1&&s.nodeName==="BODY"||s.nodeName==="HTML"?n=s:n.appendChild(s);else{if(!Z&&!V&&!q&&u.indexOf("<")===-1)return k&&pe?k.createHTML(u):u;if(n=ht(u),!n)return Z?null:pe?oe:""}n&&xe&&$(n.firstChild);const L=gt(ae?u:n);for(;T=L.nextNode();)yt(T)||(T.content instanceof z&&gn(T.content),At(T));if(ae)return u;if(Z){if(me)for(C=tn.call(n.ownerDocument);n.firstChild;)C.appendChild(n.firstChild);else C=n;return(v.shadowroot||v.shadowrootmode)&&(C=on.call(g,C,!0)),C}let N=q?n.outerHTML:n.innerHTML;return q&&w["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&D(je,n.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+n.ownerDocument.doctype.name+`>
2
2
  `+N),V&&P([Ce,Le,Re],Y=>{N=B(N,Y," ")}),k&&pe?k.createHTML(N):N},d.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ue(u),Ne=!0},d.clearConfig=function(){ee=null,Ne=!1},d.isValidAttribute=function(u,e,n){ee||Ue({});const s=S(u),T=S(e);return Et(s,T,n)},d.addHook=function(u,e){typeof e=="function"&&(U[u]=U[u]||[],W(U[u],e))},d.removeHook=function(u){if(U[u])return le(U[u])},d.removeHooks=function(u){U[u]&&(U[u]=[])},d.removeAllHooks=function(){U={}},d}var jt=Ve();return jt})})(Rt);const He=Rt.exports,Nn=":host{display:inline-grid;overflow:hidden;width:100%}.view-email{width:100%}.view-email div.gmail_quote{display:none;color:var(--nylas-color-primary-400)}.view-email div.gmail_quote.show{display:block}.view-email blockquote{border-color:var(--nylas-color-primary-500) !important}.view-email .nylas-view-email-toggle-button{display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);border:0;border-radius:2px;font-size:14px;font-weight:500;line-height:1.5;transition:all 0.2s ease-in-out}.view-email .nylas-view-email-toggle-button:hover{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600)}",xn=Nn;He.addHook("afterSanitizeAttributes",function(t){"target"in t&&(t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"))});const kt=class{constructor(t){o.registerInstance(this,t),this.htmlElement=document.createElement("html"),this.setBody=i=>{var p;this.state="loading",this.styles=[],this.hoistedFontURLs=new Map,this.sanitizedBody="",document.querySelectorAll(".nylas-view-email-font").forEach(r=>{r.remove()}),(this.message?o.detectIfMessageIsHTML(this.message):o.detectHTMLOrPlainText(i))||(i=`<html><body>${o.parsePlainTextToHTML(i)}</body></html>`),this.htmlElement.innerHTML=i,this.detectDarkMode&&Mn(this.htmlElement),this.htmlElement.querySelectorAll("link").forEach(r=>{if(console.debug(`[nylas-view-email] Hoisting link: ${r.getAttribute("href")}`),r.getAttribute("rel")==="stylesheet"&&r.getAttribute("href")){const m=r.getAttribute("href");if(m){const a=new URL(m,window.location.href);(a.protocol==="https:"||a.protocol==="http:")&&this.hoistedFontURLs.set(a.href,a.href)}}}),this.htmlElement.querySelectorAll("style").forEach(r=>{r.innerHTML.split(`
3
- `).forEach(m=>{const a=m.match(/@import url\((.*)\)/);if(a){const c=new URL(a[1],window.location.href);(c.protocol==="https:"||c.protocol==="http:")&&this.hoistedFontURLs.set(c.href,c.href)}}),r.innerHTML=r.innerHTML.replace("body",":host"),this.styles.push(r),r.remove()}),this.htmlElement.querySelectorAll("a").forEach(r=>{r.setAttribute("target","_blank")});const l=this.htmlElement.querySelector(".gmail_quote");if(l){const r=document.createElement("button");r.classList.add("nylas-view-email-toggle-button"),r.setAttribute("aria-label","Show quoted text"),r.innerText="...",(p=l.parentElement)==null||p.insertBefore(r,l)}this.sanitizedBody=He.sanitize(this.htmlElement.innerHTML),this.hoistedFontURLs.forEach((r,m)=>{const a=document.createElement("link");a.setAttribute("rel","stylesheet"),a.setAttribute("href",r),a.classList.add("nylas-view-email-font"),document.head.appendChild(a)}),this.state="ready"},this.handleMobileSize=()=>{var f,l,p,r;const i=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);if(i<=768){const m=(f=this.viewEmailElement)==null?void 0:f.getBoundingClientRect();if(m&&this.viewEmailElement&&this.parent&&m.width>i){const a=this.parent,c=a==null?void 0:a.getBoundingClientRect();o.debug("Parent width:",c==null?void 0:c.width,"Parent height:",c==null?void 0:c.height),o.debug("Parent client width:",a.clientWidth,"Parent client height:",a.clientHeight);const E=c.width/m.width,A=c.height/m.height,M=Math.min(E,A);o.debug("Scale:",M),this.viewEmailElement.style.setProperty("transform",`scale(${M})`),this.viewEmailElement.style.setProperty("transform-origin","top left"),this.viewEmailElement.style.setProperty("height",`${m.height*M}px`)}}else(l=this.viewEmailElement)==null||l.style.removeProperty("transform"),(p=this.viewEmailElement)==null||p.style.removeProperty("transform-origin"),(r=this.viewEmailElement)==null||r.style.removeProperty("height")},this.message=void 0,this.parent=void 0,this.attachments=[],this.detectDarkMode=!0,this.state="loading",this.sanitizedBody="",this.styles=[],this.viewEmailElement=void 0,this.hoistedFontURLs=new Map}connectedCallback(){}disconnectedCallback(){o.debug("[nylas-view-email] Component disconnected"),this.state="loading",this.styles=[],this.hoistedFontURLs=new Map,this.sanitizedBody="",document.querySelectorAll(".nylas-view-email-font").forEach(t=>{t.remove()})}async componentWillLoad(){var t;o.debug("[nylas-view-email] component loaded"),this.setBody(((t=this.message)==null?void 0:t.body)??"")}async componentDidLoad(){o.debug("[nylas-view-thread] Component did load"),this.handleMobileSize()}async messageChanged(){var t;o.debug("[nylas-view-thread] Message changed",{message:this.message}),this.setBody(((t=this.message)==null?void 0:t.body)??"")}handleScroll(){this.handleMobileSize()}viewEmailElementChanged(){var i;const t=(i=this.viewEmailElement)==null?void 0:i.querySelectorAll(".nylas-view-email-toggle-button");t&&t.forEach(f=>{f.addEventListener("click",()=>{var p;const l=(p=this.viewEmailElement)==null?void 0:p.querySelector(".gmail_quote");l&&l.classList.toggle("show")})})}render(){return console.debug("[nylas-view-email] render",{hoistedFontURLs:this.hoistedFontURLs}),o.h(o.Host,{key:"ecedadf6b878ff1d039cae3e925090e0e4d1dc44"},this.state==="loading"&&o.h("div",null,"Loading..."),this.state==="ready"&&o.h(o.Fragment,null,this.styles.map(t=>o.h("style",null,He.sanitize(t.innerHTML))),o.h("div",{class:"view-email",part:"view-email",innerHTML:this.sanitizedBody,ref:t=>this.viewEmailElement=t})))}get host(){return o.getElement(this)}static get watchers(){return{message:["messageChanged"],viewEmailElement:["viewEmailElementChanged"]}}};kt.style=xn;const Dn=".sc-reply-all-icon-h{display:flex}",On=Dn,Mt=class{constructor(t){o.registerInstance(this,t),this.width="15",this.height="15"}render(){return o.h("svg",{key:"b8fb356885e07f48e1a5537d0dacf54f867be2a7",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},o.h("path",{key:"8a28c9e8999c13ad06db8efab5536a439b9f9372",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"}))}};Mt.style=On;const In=".sc-reply-icon-h{display:flex}",Pn=In,Nt=class{constructor(t){o.registerInstance(this,t),this.width="15",this.height="15"}render(){return o.h("svg",{key:"a3dc84638dff446a5230e2b90b1ae62122e13758",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},o.h("path",{key:"1e1413257b4753f020e961ce56f0681f4eb597a7",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"}))}};Nt.style=Pn;exports.forward_icon=St;exports.nylas_composer=Ct;exports.nylas_summarize_message_button=Be;exports.nylas_view_email=kt;exports.reply_all_icon=Mt;exports.reply_icon=Nt;
3
+ `).forEach(m=>{const a=m.match(/@import url\((.*)\)/);if(a){const c=new URL(a[1],window.location.href);(c.protocol==="https:"||c.protocol==="http:")&&this.hoistedFontURLs.set(c.href,c.href)}}),r.innerHTML=r.innerHTML.replace("body",":host"),this.styles.push(r),r.remove()}),this.htmlElement.querySelectorAll("a").forEach(r=>{r.setAttribute("target","_blank")});const l=this.htmlElement.querySelector(".gmail_quote");if(l){const r=document.createElement("button");r.classList.add("nylas-view-email-toggle-button"),r.setAttribute("aria-label","Show quoted text"),r.innerText="...",(p=l.parentElement)==null||p.insertBefore(r,l)}this.sanitizedBody=He.sanitize(this.htmlElement.innerHTML),this.hoistedFontURLs.forEach((r,m)=>{const a=document.createElement("link");a.setAttribute("rel","stylesheet"),a.setAttribute("href",r),a.classList.add("nylas-view-email-font"),document.head.appendChild(a)}),this.state="ready"},this.handleMobileSize=()=>{var f,l,p,r;const i=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);if(i<=768){const m=(f=this.viewEmailElement)==null?void 0:f.getBoundingClientRect();if(m&&this.viewEmailElement&&this.parent&&m.width>i){const a=this.parent,c=a==null?void 0:a.getBoundingClientRect();o.debug("Parent width:",c==null?void 0:c.width,"Parent height:",c==null?void 0:c.height),o.debug("Parent client width:",a.clientWidth,"Parent client height:",a.clientHeight);const E=c.width/m.width,A=c.height/m.height,M=Math.min(E,A);o.debug("Scale:",M),this.viewEmailElement.style.setProperty("transform",`scale(${M})`),this.viewEmailElement.style.setProperty("transform-origin","top left"),this.viewEmailElement.style.setProperty("height",`${m.height*M}px`)}}else(l=this.viewEmailElement)==null||l.style.removeProperty("transform"),(p=this.viewEmailElement)==null||p.style.removeProperty("transform-origin"),(r=this.viewEmailElement)==null||r.style.removeProperty("height")},this.message=void 0,this.parent=void 0,this.attachments=[],this.detectDarkMode=!0,this.state="loading",this.sanitizedBody="",this.styles=[],this.viewEmailElement=void 0,this.hoistedFontURLs=new Map}connectedCallback(){}disconnectedCallback(){o.debug("[nylas-view-email] Component disconnected"),this.state="loading",this.styles=[],this.hoistedFontURLs=new Map,this.sanitizedBody="",document.querySelectorAll(".nylas-view-email-font").forEach(t=>{t.remove()})}async componentWillLoad(){var t;o.debug("[nylas-view-email] component loaded"),this.setBody(((t=this.message)==null?void 0:t.body)??"")}async componentDidLoad(){o.debug("[nylas-view-thread] Component did load"),this.handleMobileSize()}async messageChanged(){var t;o.debug("[nylas-view-thread] Message changed",{message:this.message}),this.setBody(((t=this.message)==null?void 0:t.body)??"")}handleScroll(){this.handleMobileSize()}viewEmailElementChanged(){var i;const t=(i=this.viewEmailElement)==null?void 0:i.querySelectorAll(".nylas-view-email-toggle-button");t&&t.forEach(f=>{f.addEventListener("click",()=>{var p;const l=(p=this.viewEmailElement)==null?void 0:p.querySelector(".gmail_quote");l&&l.classList.toggle("show")})})}render(){return console.debug("[nylas-view-email] render",{hoistedFontURLs:this.hoistedFontURLs}),o.h(o.Host,{key:"46388e116c6a5a1e57669fc20da75cf8786773eb"},this.state==="loading"&&o.h("div",null,"Loading..."),this.state==="ready"&&o.h(o.Fragment,null,this.styles.map(t=>o.h("style",null,He.sanitize(t.innerHTML))),o.h("div",{class:"view-email",part:"view-email",innerHTML:this.sanitizedBody,ref:t=>this.viewEmailElement=t})))}get host(){return o.getElement(this)}static get watchers(){return{message:["messageChanged"],viewEmailElement:["viewEmailElementChanged"]}}};kt.style=xn;const Dn=".sc-reply-all-icon-h{display:flex}",On=Dn,Mt=class{constructor(t){o.registerInstance(this,t),this.width="15",this.height="15"}render(){return o.h("svg",{key:"d33f632979fb002eaeac36934da133a1fd54b7f8",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},o.h("path",{key:"8092526210ad80baf96d932589bf5f32cdee5b9a",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"}))}};Mt.style=On;const In=".sc-reply-icon-h{display:flex}",Pn=In,Nt=class{constructor(t){o.registerInstance(this,t),this.width="15",this.height="15"}render(){return o.h("svg",{key:"c71e29e3fa78e042e9b92767f3b0af3a0e938b9a",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},o.h("path",{key:"564cba95c6084cf6c013785df2892227018d9c70",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"}))}};Nt.style=Pn;exports.forward_icon=St;exports.nylas_composer=Ct;exports.nylas_summarize_message_button=Be;exports.nylas_view_email=kt;exports.reply_all_icon=Mt;exports.reply_icon=Nt;
@@ -1,5 +1,5 @@
1
- import { r as ne, h as g, c as We, d as T, H as $e, g as Rt, i as yn, v as bn, w as En, x as Tn, F as An, y as _n } from "./index-5ccfd9df.js";
2
- import { R as wn } from "./register-component-887199a9-b41dfa7a.js";
1
+ import { r as ne, h as g, c as We, d as T, H as $e, g as Rt, i as yn, w as bn, x as En, y as Tn, F as An, z as _n } from "./index-a134f625.js";
2
+ import { R as wn } from "./register-component-ea95564d-e19ec159.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  const vn = ".sc-forward-icon-h{display:flex}", Sn = vn, Cn = class {
@@ -7,7 +7,7 @@ const vn = ".sc-forward-icon-h{display:flex}", Sn = vn, Cn = class {
7
7
  ne(this, t), this.width = "15", this.height = "15";
8
8
  }
9
9
  render() {
10
- return g("svg", { key: "256bedcd1d16ce56abf8a1a9e256c3056df7982d", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "e9eff3ddff62ad3e805efe09a77e3c984dad8d2d", d: "m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z", "fill-rule": "evenodd" }));
10
+ return g("svg", { key: "c8b018ea9d3c7e33125a3cab408be079b8091071", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "b1af6cc12e320cc77734d7ad77ac4d5149f7000d", d: "m1246.246 64-90.496 90.496 477.952 477.952h-590.848C467.878 632.448.038 1100.416.038 1675.392v109.056h128v-109.056c0-504.576 410.368-914.944 914.816-914.944h590.848l-477.952 478.08 90.496 90.496 632.448-632.576L1246.246 64Z", "fill-rule": "evenodd" }));
11
11
  }
12
12
  };
13
13
  Cn.style = Sn;
@@ -106,7 +106,7 @@ const Ln = ':host{display:grid;color:var(--nylas-color-primary-900)}.editor{posi
106
106
  }), this.editorEl.focus();
107
107
  }
108
108
  render() {
109
- return g($e, { key: "05d06e346d185690361a7a28b840fc2ab23e126e" }, g("sp-theme", { key: "777d476f2fe72825fdae33f947f0d2a23093a11a", scale: "medium", color: "dark" }, g("div", { key: "2aa6533429c21b308592a7251185b46630122c64", class: "editor", contentEditable: !0, ref: (t) => this.editorEl = t }, g("div", { key: "01fb8abaed3b30ee0285a9d01aa784915e582ecb", class: "toolbar", ref: (t) => this.toolbarEl = t, contentEditable: !1 }, g("sp-button", { key: "468e3fb7124061e37e647cbdce323a4581043ddc", quiet: !0, onClick: () => document.execCommand("bold") }, g("div", { key: "1a6ee78ed04d8d3e7516f894c679779acfda4f92", slot: "icon" }, g("bold-icon", { key: "16f13ee9609a2611a34108920a497c0b26d62cc5" })), g("div", { key: "83a1147bc6c0a59e70bb2a281f4a5fb9ec9256c2", slot: "label" }, "Bold")), g("sp-button", { key: "9d5fd28e07ed31d2837f61d126e3999150fcc8ce", quiet: !0, onClick: () => document.execCommand("underline") }, g("div", { key: "eb033d1607aed07a975d05dac449be7abfa7bfd1", slot: "icon" }, g("underline-icon", { key: "688868c4bd528fda5e5a954acee7a0f6d989f591" })), g("div", { key: "a005aaeae969d9db87436f13d524d211ca42894d", slot: "label" }, "Underline")), g("sp-button", { key: "51e1bdab4db4fca3c633b443d5e95a08c4dd9159", quiet: !0, onClick: () => document.execCommand("italic") }, g("div", { key: "1bdee462750ef763ddd3f936a14a639a46874ada", slot: "icon" }, g("italic-icon", { key: "3bb7f0512e91f45731de92bb29bf610fcf930cc6" })), g("div", { key: "d730402f3145f05350e31f3cc39a437633ab2dcd", slot: "label" }, "Italic")))), g("div", { key: "43136421703fad649d4e5a17be0a5df748d545e1", class: "buttons" }, g("sp-button", { key: "1e2c01908a0df6718b83e178241754fd76e225bf", onClick: this.sendComposer, class: "send" }, "Send"), g("sp-button", { key: "33d1ce61aff095ce440cdc04b2a4d89746eb5180", onClick: this.closeComposer, class: "close" }, "Close"))));
109
+ return g($e, { key: "e24e688a3965e332b1d14284a0142bd82048449b" }, g("sp-theme", { key: "7bd78108aeab6bd84d51002dfecfdfd8658f82df", scale: "medium", color: "dark" }, g("div", { key: "0408b3da7f2fa20c80aa57167c32504fba8bd752", class: "editor", contentEditable: !0, ref: (t) => this.editorEl = t }, g("div", { key: "a0a78800e4a463cc47dbe74d4b95d633ce58cb0c", class: "toolbar", ref: (t) => this.toolbarEl = t, contentEditable: !1 }, g("sp-button", { key: "80af95fbdadd9adfcc6b7cc7cf0c63f705eb8164", quiet: !0, onClick: () => document.execCommand("bold") }, g("div", { key: "f9db6a419ad21918d0abc3e45b50c9722b5655ec", slot: "icon" }, g("bold-icon", { key: "a4e8df2a934c404ff435ef0920d3bd69204ecda2" })), g("div", { key: "609415df8fccca26ac59095400d7a8c83605156a", slot: "label" }, "Bold")), g("sp-button", { key: "4b90d3395738fda4242994134b7625535b21157b", quiet: !0, onClick: () => document.execCommand("underline") }, g("div", { key: "2cf5470ae2a40175682cd2423035b59d8f2aabe2", slot: "icon" }, g("underline-icon", { key: "4d77573ab3628b4956c196be6db4c00cfcce9699" })), g("div", { key: "21362c41bcff11414325a38882586013cefef497", slot: "label" }, "Underline")), g("sp-button", { key: "8d1bdae9a2d782364c4848118bab933e8ca6c7f5", quiet: !0, onClick: () => document.execCommand("italic") }, g("div", { key: "743c08e076b633500dd08b569d7496784447c73f", slot: "icon" }, g("italic-icon", { key: "0a1ca27562711edf8b7b7221d420fcfdd5110a95" })), g("div", { key: "3b1b29a8eb334a59147b9c46eb67064201a44bf8", slot: "label" }, "Italic")))), g("div", { key: "901be1e103c0f2b851669d8126d6258091530e81", class: "buttons" }, g("sp-button", { key: "b6bba4d7ae73f610bd3af6c08a0167ffab3dbc88", onClick: this.sendComposer, class: "send" }, "Send"), g("sp-button", { key: "7b68f79eb2fb7a73f3f69863a3cf6fafdcdfb9f1", onClick: this.closeComposer, class: "close" }, "Close"))));
110
110
  }
111
111
  get host() {
112
112
  return Rt(this);
@@ -213,12 +213,12 @@ const kt = class {
213
213
  return t.read().then(({ done: u, value: s }) => u ? o : (o.push(s), this.readChunk(t, o)));
214
214
  }
215
215
  render() {
216
- return g($e, { key: "5af7b7da7418a01f4a45b6edcf014d9497ff9f32" }, g("sp-theme", { key: "9f883f57c7269b1f7f3de1010ebca9a01cbff35d", scale: "medium", color: "dark" }, g("sp-button", { key: "e2bb3acc0622e8e99592f1111305d093d6e83ade", label: "Summarize email", "icon-only": !0, onClickCapture: this.onClick, class: {
216
+ return g($e, { key: "ea90a71f09b4b71f83271816680f466c85125368" }, g("sp-theme", { key: "317fbcb6f72b0e3eedbd63e52804b333af260987", scale: "medium", color: "dark" }, g("sp-button", { key: "dbaa8ee59ab4c449d0e12da8fa6e10a4476cee4a", label: "Summarize email", "icon-only": !0, onClickCapture: this.onClick, class: {
217
217
  "summarize-button": !0,
218
218
  stopped: this.state === "stopped",
219
219
  loading: this.state === "loading",
220
220
  playing: this.state === "playing"
221
- } }, this.state === "stopped" && g("play-icon", null), this.state === "loading" && g("loading-icon", null), this.state === "playing" && g("stop-icon", null)), g("audio", { key: "d30e40f1cf34afe76c8b01eaa65e33bf296f9540", ref: (t) => this.audioRef = t, autoPlay: !0, onPlaying: () => this.state = "playing", onPause: () => this.state = "stopped", onEnded: () => {
221
+ } }, this.state === "stopped" && g("play-icon", null), this.state === "loading" && g("loading-icon", null), this.state === "playing" && g("stop-icon", null)), g("audio", { key: "7794f0eaad660040bb2bbd7ea25b6590096b9648", ref: (t) => this.audioRef = t, autoPlay: !0, onPlaying: () => this.state = "playing", onPause: () => this.state = "stopped", onEnded: () => {
222
222
  this.state = "stopped", T("[nylas-summarize-message-button] Audio ended");
223
223
  } })));
224
224
  }
@@ -912,7 +912,7 @@ const Bn = class {
912
912
  });
913
913
  }
914
914
  render() {
915
- return console.debug("[nylas-view-email] render", { hoistedFontURLs: this.hoistedFontURLs }), g($e, { key: "ecedadf6b878ff1d039cae3e925090e0e4d1dc44" }, this.state === "loading" && g("div", null, "Loading..."), this.state === "ready" && g(An, null, this.styles.map((t) => g("style", null, Ge.sanitize(t.innerHTML))), g("div", { class: "view-email", part: "view-email", innerHTML: this.sanitizedBody, ref: (t) => this.viewEmailElement = t })));
915
+ return console.debug("[nylas-view-email] render", { hoistedFontURLs: this.hoistedFontURLs }), g($e, { key: "46388e116c6a5a1e57669fc20da75cf8786773eb" }, this.state === "loading" && g("div", null, "Loading..."), this.state === "ready" && g(An, null, this.styles.map((t) => g("style", null, Ge.sanitize(t.innerHTML))), g("div", { class: "view-email", part: "view-email", innerHTML: this.sanitizedBody, ref: (t) => this.viewEmailElement = t })));
916
916
  }
917
917
  get host() {
918
918
  return Rt(this);
@@ -930,7 +930,7 @@ const Wn = ".sc-reply-all-icon-h{display:flex}", Gn = Wn, $n = class {
930
930
  ne(this, t), this.width = "15", this.height = "15";
931
931
  }
932
932
  render() {
933
- return g("svg", { key: "b8fb356885e07f48e1a5537d0dacf54f867be2a7", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "8a28c9e8999c13ad06db8efab5536a439b9f9372", 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" }));
933
+ return g("svg", { key: "d33f632979fb002eaeac36934da133a1fd54b7f8", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "8092526210ad80baf96d932589bf5f32cdee5b9a", 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" }));
934
934
  }
935
935
  };
936
936
  $n.style = Gn;
@@ -939,7 +939,7 @@ const qn = ".sc-reply-icon-h{display:flex}", Yn = qn, jn = class {
939
939
  ne(this, t), this.width = "15", this.height = "15";
940
940
  }
941
941
  render() {
942
- return g("svg", { key: "a3dc84638dff446a5230e2b90b1ae62122e13758", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "1e1413257b4753f020e961ce56f0681f4eb597a7", 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" }));
942
+ return g("svg", { key: "c71e29e3fa78e042e9b92767f3b0af3a0e938b9a", fill: "auto", width: this.width, height: this.height, viewBox: "0 0 1920 1920", xmlns: "http://www.w3.org/2000/svg" }, g("path", { key: "564cba95c6084cf6c013785df2892227018d9c70", 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" }));
943
943
  }
944
944
  };
945
945
  jn.style = Yn;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-eb33703c.cjs");require("react");require("react-dom");const c=".sc-globe-icon-h{display:flex}",i=c,e=class{constructor(t){C.registerInstance(this,t),this.width="16",this.height="16"}render(){return C.h("svg",{key:"c2d7fba043a8f413552b2c3c40c9a2afaa6b4c7c",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},C.h("path",{key:"8db54b72d00757a850d189a64ed532c33e1cb32c",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};e.style=i;exports.globe_icon=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2a53b6a8.cjs");require("react");require("react-dom");const i=".sc-globe-icon-h{display:flex}",o=i,C=class{constructor(t){e.registerInstance(this,t),this.width="16",this.height="16"}render(){return e.h("svg",{key:"7c83ee77abce8b529eaa559dfc1b00b0b2369af0",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},e.h("path",{key:"87f616c71c80ea48e80294b32532056791013852",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};C.style=o;exports.globe_icon=C;
@@ -1,15 +1,15 @@
1
- import { r as e, h as C } from "./index-5ccfd9df.js";
1
+ import { r as e, h as C } from "./index-a134f625.js";
2
2
  import "react";
3
3
  import "react-dom";
4
- const o = ".sc-globe-icon-h{display:flex}", c = o, s = class {
4
+ const o = ".sc-globe-icon-h{display:flex}", s = o, i = class {
5
5
  constructor(t) {
6
6
  e(this, t), this.width = "16", this.height = "16";
7
7
  }
8
8
  render() {
9
- return C("svg", { key: "c2d7fba043a8f413552b2c3c40c9a2afaa6b4c7c", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, C("path", { key: "8db54b72d00757a850d189a64ed532c33e1cb32c", d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" }));
9
+ return C("svg", { key: "7c83ee77abce8b529eaa559dfc1b00b0b2369af0", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, C("path", { key: "87f616c71c80ea48e80294b32532056791013852", d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" }));
10
10
  }
11
11
  };
12
- s.style = c;
12
+ i.style = s;
13
13
  export {
14
- s as globe_icon
14
+ i as globe_icon
15
15
  };