@nylas/react 1.1.0-canary.3 → 1.1.0-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-circle-icon_22.entry-8d0ac489.cjs → add-circle-icon_22.entry-077661c3.cjs} +1 -1
- package/dist/{add-circle-icon_22.entry-da31fa71.js → add-circle-icon_22.entry-f699d91e.js} +2 -2
- package/dist/{archive-icon_7.entry-bc2418f7.js → archive-icon_7.entry-40b7ef3b.js} +1 -1
- package/dist/{archive-icon_7.entry-7aad8104.cjs → archive-icon_7.entry-e8630de9.cjs} +1 -1
- package/dist/{arrow-icon.entry-9a932082.js → arrow-icon.entry-58246303.js} +1 -1
- package/dist/{arrow-icon.entry-6eba68a9.cjs → arrow-icon.entry-ffa53114.cjs} +1 -1
- package/dist/{bold-icon_3.entry-db17d481.cjs → bold-icon_3.entry-106a4e77.cjs} +1 -1
- package/dist/{bold-icon_3.entry-5f7e3755.js → bold-icon_3.entry-f5f1643d.js} +1 -1
- package/dist/{calendar-cancel-icon.entry-a5141f82.cjs → calendar-cancel-icon.entry-6ae0fd0f.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-1ff7845a.js → calendar-cancel-icon.entry-75b15b19.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-d7421059.js → calendar-check-icon_2.entry-57339318.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-c3add652.cjs → calendar-check-icon_2.entry-c57f83f3.cjs} +1 -1
- package/dist/{calendar-icon.entry-4458997f.js → calendar-icon.entry-2069fec6.js} +1 -1
- package/dist/{calendar-icon.entry-445d624a.cjs → calendar-icon.entry-492c2630.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-f7f3d487.js → chevron-icon_3.entry-83df50c3.js} +1 -1
- package/dist/{chevron-icon_3.entry-8961e6bb.cjs → chevron-icon_3.entry-878ff6df.cjs} +1 -1
- package/dist/{close-icon.entry-6dd5ff0a.js → close-icon.entry-480c199d.js} +1 -1
- package/dist/{close-icon.entry-ebc527c5.cjs → close-icon.entry-8015ca05.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-298b2133.cjs → document-refresh-icon.entry-06f7972b.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-bdc323b5.js → document-refresh-icon.entry-09870b14.js} +1 -1
- package/dist/{forward-icon_6.entry-62759373.js → forward-icon_6.entry-8bb201eb.js} +2 -2
- package/dist/{forward-icon_6.entry-15208ea9.cjs → forward-icon_6.entry-eeecf2a2.cjs} +1 -1
- package/dist/{globe-icon.entry-c8302bf5.cjs → globe-icon.entry-a690028c.cjs} +1 -1
- package/dist/{globe-icon.entry-9e082178.js → globe-icon.entry-d515cbfa.js} +1 -1
- package/dist/{google-logo-icon_3.entry-0c095209.js → google-logo-icon_3.entry-2164cec1.js} +5 -5
- package/dist/{google-logo-icon_3.entry-f8433ff9.cjs → google-logo-icon_3.entry-b2b85284.cjs} +1 -1
- package/dist/{index-7a55dc33.cjs → index-2b8437d6.cjs} +1 -1
- package/dist/{index-0f3bd8df.js → index-db0c5017.js} +38 -38
- package/dist/{info-icon_2.entry-73106882.js → info-icon_2.entry-300ef196.js} +1 -1
- package/dist/{info-icon_2.entry-ca224a3b.cjs → info-icon_2.entry-e286aaa5.cjs} +1 -1
- package/dist/{loading-icon.entry-012644b7.js → loading-icon.entry-6d8adaa4.js} +1 -1
- package/dist/{loading-icon.entry-f9f5e66f.cjs → loading-icon.entry-dc40e97d.cjs} +1 -1
- package/dist/{mailbox-store-bb21512c-615660ef.js → mailbox-store-bb21512c-649a374c.js} +1 -1
- package/dist/{mailbox-store-bb21512c-045c3ea0.cjs → mailbox-store-bb21512c-fc3c8c03.cjs} +1 -1
- package/dist/{nylas-additional-participants.entry-db85836a.js → nylas-additional-participants.entry-4afba192.js} +2 -2
- package/dist/{nylas-additional-participants.entry-a50ef8e2.cjs → nylas-additional-participants.entry-db05e510.cjs} +1 -1
- package/dist/{nylas-booked-event-card_10.entry-b49b2369.js → nylas-booked-event-card_10.entry-1ebbe0c0.js} +2 -2
- package/dist/{nylas-booked-event-card_10.entry-fccb783c.cjs → nylas-booked-event-card_10.entry-6b6fdfae.cjs} +1 -1
- package/dist/{nylas-form-card.entry-f5230005.cjs → nylas-form-card.entry-70b20571.cjs} +1 -1
- package/dist/{nylas-form-card.entry-090a4d3b.js → nylas-form-card.entry-7bc23695.js} +2 -2
- package/dist/{nylas-if-state.entry-7924dde0.js → nylas-if-state.entry-3829cb3d.js} +2 -2
- package/dist/{nylas-if-state.entry-ff9c9a85.cjs → nylas-if-state.entry-ebeffe22.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-dbfc2cf8.cjs → nylas-list-folders.entry-191688f2.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-9dd96530.js → nylas-list-folders.entry-7347e78d.js} +2 -2
- package/dist/{nylas-list-threads.entry-b435eaae.js → nylas-list-threads.entry-432a8d8c.js} +2 -2
- package/dist/{nylas-list-threads.entry-6bcc0328.cjs → nylas-list-threads.entry-44658578.cjs} +1 -1
- package/dist/{nylas-login.entry-97350c76.js → nylas-login.entry-5311f0a7.js} +2 -2
- package/dist/{nylas-login.entry-1623d309.cjs → nylas-login.entry-db17a3d2.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-ceef8be2.js → nylas-mailbox-pagination.entry-20150fb2.js} +2 -2
- package/dist/{nylas-mailbox-pagination.entry-1776eb16.cjs → nylas-mailbox-pagination.entry-9d3f5baa.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-7d3f79b9.cjs → nylas-mailbox-toolbar-button.entry-6c0f7299.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-e6b3d3a4.js → nylas-mailbox-toolbar-button.entry-eec426d5.js} +2 -2
- package/dist/{nylas-mailbox.entry-06d8014a.js → nylas-mailbox.entry-b6c758b9.js} +2 -2
- package/dist/{nylas-mailbox.entry-ae8da6ff.cjs → nylas-mailbox.entry-d41401e0.cjs} +1 -1
- package/dist/{nylas-provider.entry-8b9c2b69.js → nylas-provider.entry-271cafd2.js} +4 -4
- package/dist/{nylas-provider.entry-97c9e272.cjs → nylas-provider.entry-6173b721.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-f6cf1cd9.cjs → nylas-scheduler-editor.entry-0c75d39e.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-c3791787.js → nylas-scheduler-editor.entry-b51ad4b1.js} +27 -16
- package/dist/nylas-scheduling.entry-081c8825.cjs +1 -0
- package/dist/{nylas-scheduling.entry-6380509a.js → nylas-scheduling.entry-0a8d1da8.js} +5 -5
- package/dist/{nylas-threads-refresh.entry-eaee86fb.js → nylas-threads-refresh.entry-72dd854e.js} +2 -2
- package/dist/{nylas-threads-refresh.entry-246e6d77.cjs → nylas-threads-refresh.entry-c3509e6a.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-42a2acb1.cjs → nylas-threads-search.entry-16a59ef6.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-7e12758e.js → nylas-threads-search.entry-4750a187.js} +2 -2
- package/dist/{nylas-view-thread.entry-78e6927a.cjs → nylas-view-thread.entry-27df3349.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-b936e76a.js → nylas-view-thread.entry-c6adce43.js} +2 -2
- package/dist/{people-icon.entry-5c8ee696.js → people-icon.entry-342be0c8.js} +1 -1
- package/dist/{people-icon.entry-bcf848c0.cjs → people-icon.entry-35252ca9.cjs} +1 -1
- package/dist/{play-icon_2.entry-356e63cc.js → play-icon_2.entry-0787352c.js} +1 -1
- package/dist/{play-icon_2.entry-92e78f1b.cjs → play-icon_2.entry-f83fa92a.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-77f0c377.js → refresh-icon.entry-8fbabfe7.js} +1 -1
- package/dist/{refresh-icon.entry-bec053b6.cjs → refresh-icon.entry-ddbc5446.cjs} +1 -1
- package/dist/{register-component-dc659dc3-0fdb18dc.js → register-component-dc659dc3-e43e8fae.js} +1 -1
- package/dist/{register-component-dc659dc3-f58bf25b.cjs → register-component-dc659dc3-fb85ee68.cjs} +1 -1
- package/dist/{scheduler-config-store-51ee4f42-e02895da.js → scheduler-config-store-51ee4f42-66f8c2ac.js} +1 -1
- package/dist/{scheduler-config-store-51ee4f42-ce3a9b0e.cjs → scheduler-config-store-51ee4f42-d7d9c25d.cjs} +1 -1
- package/dist/{scheduler-store-72116723-db9d91f6.cjs → scheduler-store-72116723-ce4c7a69.cjs} +1 -1
- package/dist/{scheduler-store-72116723-3ba2480c.js → scheduler-store-72116723-e5f87122.js} +1 -1
- package/dist/{time-period-selector.entry-decd251b.js → time-period-selector.entry-333942a8.js} +1 -1
- package/dist/{time-period-selector.entry-f25fad77.cjs → time-period-selector.entry-78d5b3c2.cjs} +1 -1
- package/dist/{translate-icon.entry-cac02c46.js → translate-icon.entry-87a62108.js} +1 -1
- package/dist/{translate-icon.entry-dd5b707c.cjs → translate-icon.entry-cb19864c.cjs} +1 -1
- package/dist/{warning-icon.entry-8af8a742.cjs → warning-icon.entry-50755d91.cjs} +1 -1
- package/dist/{warning-icon.entry-370b9cf0.js → warning-icon.entry-7a72e24a.js} +1 -1
- package/package.json +2 -2
- package/dist/nylas-scheduling.entry-08ae840a.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as y, h as a, c as w, H as k, g as x } from "./index-
|
|
1
|
+
import { r as y, h as a, c as w, H as k, g as x } from "./index-db0c5017.js";
|
|
2
2
|
import { d, o as j, q as H, r as ve, s as V, v as ae, w as ie, x as ke, y as we, z as W, A as We } from "./utils-c00bdc3c-89ab163d.js";
|
|
3
|
-
import { R as _ } from "./register-component-dc659dc3-
|
|
3
|
+
import { R as _ } from "./register-component-dc659dc3-e43e8fae.js";
|
|
4
4
|
import { T as xe, E as _e } from "./constants-6ee60d6d-4cd16450.js";
|
|
5
5
|
import { c as Ve } from "./_commonjsHelpers-57e89916-af061c86.js";
|
|
6
6
|
import "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-2b8437d6.cjs");require("react");require("react-dom");const r=".sc-archive-icon-h{display:flex}",n=r,s=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"1b52f19fba89ca7184790e5beb6e0f8b006b2531",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"d9aad4815f9faabb40b6fe68827bdd483794e0c3",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"aab9d09e0a7f7ad6ca549d92989b9288865e07d7",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"c15b61e469283716f2127e9d0bec9cf5be9c67c1",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"a0ce485fc995006baa138da928b84538d65730f6",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};s.style=n;const w=".sc-folder-icon-h{display:flex}",f=w,h=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"23af14d9c2696d6efca8e69a3a3a0166dc701ec7",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"c425010a33227de1f2a966acc6b96c256c4eadcb",d:"M3 8.2C3 7.07989 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H9.67452C10.1637 5 10.4083 5 10.6385 5.05526C10.8425 5.10425 11.0376 5.18506 11.2166 5.29472C11.4184 5.4184 11.5914 5.59135 11.9373 5.93726L12.0627 6.06274C12.4086 6.40865 12.5816 6.5816 12.7834 6.70528C12.9624 6.81494 13.1575 6.89575 13.3615 6.94474C13.5917 7 13.8363 7 14.3255 7H17.8C18.9201 7 19.4802 7 19.908 7.21799C20.2843 7.40973 20.5903 7.71569 20.782 8.09202C21 8.51984 21 9.0799 21 10.2V15.8C21 16.9201 21 17.4802 20.782 17.908C20.5903 18.2843 20.2843 18.5903 19.908 18.782C19.4802 19 18.9201 19 17.8 19H6.2C5.07989 19 4.51984 19 4.09202 18.782C3.71569 18.5903 3.40973 18.2843 3.21799 17.908C3 17.4802 3 16.9201 3 15.8V8.2Z",stroke:"auto","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};h.style=f;const C=".sc-inbox-icon-h{display:flex}",l=C,c=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"e153fa9b609a6dd4f0ad200a3492beeddb7f8132",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"05b5b75c74881772330feeb0d1d1213522813905",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"d845bf5e1ccbe3e328be20e995c3c7713ff2b0f8",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};c.style=l;const b=".sc-sent-icon-h{display:flex}",k=b,o=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"b3c088995658cd0e496bbb5add5a4f937b96837d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"314fb0dd64e67ad973dac494453e2c1bbbdc9f3d",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"f24cbf7ceadf6efa9676bb277fc96ac254d9c668",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"491979a302745c0ecbce438405cbc392593d47dd",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};o.style=k;const g=".sc-spam-icon-h{display:flex}",y=g,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"a1faf60f8ef46ef4f770dda1da7d3040836faac9",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"a8a11efc172095bd69c052641ac25a2deeba649d",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"2601512a6e12ac6f51145a3907d8d672f71e8cb4",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};i.style=y;const u=".sc-star-icon-h{display:flex}",p=u,a=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"cde183d1ecede967504e09a1163d49440cb90202",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"2e6a40a4ac879c3f7cb5fb932c54a65e86aafcf8",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};a.style=p;const v=".sc-trash-icon-h{display:flex}",x=v,d=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"112a0f662aa55e21f66fea349837214b84582a4d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"8405d564e9ae68e68a8462b7870ca35637512051",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"a002ff92613dc9fb30232a5588d04a52517461c0",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"63a384b8ae5234d01b263a7bc76313f9f95ec794",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),t.h("path",{key:"58f9193d0888f843aeaa2c9ee9149e2c205f94ba",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};d.style=x;exports.archive_icon=s;exports.folder_icon=h;exports.inbox_icon=c;exports.sent_icon=o;exports.spam_icon=i;exports.star_icon=a;exports.trash_icon=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const o=".sc-arrow-icon-h{display:flex}",i=o,t=class{constructor(r){e.registerInstance(this,r),this.width="15",this.height="15"}render(){return e.h("svg",{key:"db4337c46d0f73cb863335d2b838806c9a35370a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"658c3e161f9aa5a495402b7809d4d606056ea3d1",d:"M5 12H19M12 5L19 12L12 19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=i;exports.arrow_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const o=".sc-bold-icon-h{display:flex}",r=o,i=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"9514a0bbbaf18a7dc73b2bd789efcfc09f6017f6",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"d9997f022df2cdcd7128866d61872717073e8adf",d:"M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=r;const c=".sc-italic-icon-h{display:flex}",h=c,n=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"bf8f15ab9e1facc02a4357479916a55e95be4043",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"7363a3d092b14ed99ba96510eae0e77b0718ca52",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m10 20 4-16m2 0h-4m0 16H8"}))}};n.style=h;const d=".sc-underline-icon-h{display:flex}",l=d,s=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"5e0070c733a6b740a5d0dc27e52bb12a2526479d",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"ed960c7122816d4c3eed1f7d1955c797e31c7531",d:"M19 4V10C19 13.866 15.866 17 12 17C8.13401 17 5 13.866 5 10V4M8.5 4V10C8.5 13.2218 10.6766 15.9352 13.6395 16.7501M4 21H20M3 4L10.5 4M17 4L21 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=l;exports.bold_icon=i;exports.italic_icon=n;exports.underline_icon=s;
|
package/dist/{calendar-cancel-icon.entry-a5141f82.cjs → calendar-cancel-icon.entry-6ae0fd0f.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const n=".sc-calendar-cancel-icon-h{display:flex}",a=n,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"b5b6e78e8ee55d0df5fbfdd66102385e7440f824",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"7d33712b9282fffbc652c0984048fbfa12f2b3cd",d:"M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z",fill:"currentColor"}))}};t.style=a;exports.calendar_cancel_icon=t;
|
package/dist/{calendar-check-icon_2.entry-c3add652.cjs → calendar-check-icon_2.entry-c57f83f3.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const h=".sc-calendar-check-icon-h{display:flex}",r=h,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"c9750be151b809d7b877176d75205b21964b261f",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"9cecc1eb1fcc8d81e120f34cab1faa643015beec",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};t.style=r;const s=".sc-checkmark-circle-icon-h{display:flex}",n=s,i=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"b2c5f3370d39786234f688d7d3af490815609c35",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"29a8890351fa202ef7e6f02e895a35867906c14e",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};i.style=n;exports.calendar_check_icon=t;exports.checkmark_circle_icon=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const i=".sc-calendar-icon-h{display:flex}",r=i,t=class{constructor(C){e.registerInstance(this,C),this.width="15",this.height="15"}render(){return e.h("svg",{key:"d545aeb0d6c264d77b9c092cc09b1597b0e537c9",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"a6ef13af57deb94b25748f5bf8bda6b45bfe18d7",fill:"currentColor",d:"M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z"}))}};t.style=r;exports.calendar_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-2b8437d6.cjs");require("react");require("react-dom");const c=".sc-chevron-icon-h{display:flex}",h=c,r=class{constructor(e){n.registerInstance(this,e),this.width="24",this.height="24"}render(){return n.h("svg",{key:"562280b53f626f3b197f6948393b2391042f5e5c",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},n.h("path",{key:"9836a2e7c9db3e83d7012fa553eae9552a11678a",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};r.style=h;const p=".sc-search-icon-h{display:flex}",f=p,l=class{constructor(e){n.registerInstance(this,e),this.width="15",this.height="15"}render(){return n.h("svg",{key:"40a81a00f79c85303a904e3ef66e7833a240fff2",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.h("path",{key:"dd4c72fa1db6849fd72bfcb3fbde40f115caac11",fill:"currentColor",d:"M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z"}))}};l.style=f;const b=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}@media screen and (max-width: 768px){:host{position:unset}}.dropdown{display:inline-block}.dropbtn{color:var(--nylas-base-800);padding:10px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;gap:0.5rem;background:transparent;border:none;border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);max-width:306px;width:max-content;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}',u=b,d=class{constructor(e){n.registerInstance(this,e),this.selectedOptionChanged=n.createEvent(this,"selectedOptionChanged",7),this.name=void 0,this.options=[],this.defaultSelectedOption=void 0,this.withSearch=!0,this.pluralizedLabel="",this.selectedOption=this.defaultSelectedOption||null,this.isOpen=!1,this.searchValue="",this.filteredOptions=[...this.options],this.ariaActivedescendant=""}optionsChangedHandler(e,s){e!==s&&(this.filteredOptions=e)}defaultSelectedOptionChangedHandler(e,s){e.label!==s.label&&(this.selectedOption=e)}componentWillLoad(){this.filteredOptions=this.options,!this.selectedOption&&this.defaultSelectedOption&&(this.selectedOption=this.defaultSelectedOption),!this.selectedOption&&this.options.length>0&&(this.selectedOption=this.options[0])}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const s=e.target.value;this.searchValue=s,this.filteredOptions=this.options.filter(t=>t.label.toLowerCase().includes(s.toLowerCase()))}selectOption(e){this.selectedOption=e,this.toggleDropdown(),this.selectedOptionChanged.emit({value:e.value,name:this.name})}handleSelectButtonKeyDown(e){var s;switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown(),(s=this.inputRef)==null||s.focus();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){var a,o;const s=this.filteredOptions,t=s.findIndex(i=>i.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),t===s.length-1){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const i=t+1<s.length?t+1:0;this.ariaActivedescendant=s[i].value,this.focusOption(i)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),t===0){this.ariaActivedescendant="",(o=this.inputRef)==null||o.focus();return}const i=t-1>=0?t-1:s.length-1;this.ariaActivedescendant=s[i].value,this.focusOption(i)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(s[t])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var o;const s=this.filteredOptions[e];if(!s)return;const t=s.value,a=(o=this.el.shadowRoot)==null?void 0:o.getElementById(t);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}handleComboboxKeyDown(e){e.key==="ArrowDown"||e.key=="Tab"&&!e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[0].value,this.focusOption(0)):e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[this.filteredOptions.length-1].value,this.focusOption(this.filteredOptions.length-1)):e.key==="Escape"&&(this.isOpen=!1)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}render(){var e,s;return n.h("div",{key:"1dd936b2226461f88f99a0a60011fd1ad3fd0632",class:"dropdown",part:"sd_dropdown"},n.h("button",{key:"c0dca685b2ecc5aac29f4921c011db384bb3c7e2",part:"sd_dropdown-button",class:{dropbtn:!0,open:this.isOpen},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:t=>this.handleSelectButtonKeyDown(t)},n.h("slot",{key:"caac266cfa1215b30faefee3c080a183d7ab1cc5",name:"select-icon","aria-hidden":"true"}),n.h("span",{key:"657aec56728e36d5ef45d1a699ec3d035a54199b",class:"selected-option",part:"sd_dropdown-button-selected-label"},(e=this.selectedOption)!=null&&e.label?`${((s=this.selectedOption)==null?void 0:s.label)+this.pluralizedLabel}`:""),n.h("span",{key:"19adb72063e9fd6c5e65bd83ea5d2dbcd6bf41f6",class:{open:this.isOpen,closed:!this.isOpen,chevron:!0},"aria-hidden":"true"},n.h("chevron-icon",{key:"ffffbdcb0d967e597fc609c5e3470f843594d81e",width:"16",height:"16"}))),this.isOpen?n.h("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&n.h("div",{class:{"search-box":!0,open:this.isOpen}},n.h("search-icon",{width:"15",height:"15",class:"icon"}),n.h("input",{type:"text",role:"combobox",placeholder:"Search",value:this.searchValue,ref:t=>this.inputRef=t,onInput:t=>this.filterOptions(t),onKeyDown:t=>this.handleComboboxKeyDown(t)})),n.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>n.h("li",{tabindex:"0",key:t.value,id:t.value,onClick:()=>this.selectOption(t),role:"option"},t.labelHTML?t.labelHTML:t.label)))):null)}get el(){return n.getElement(this)}static get watchers(){return{options:["optionsChangedHandler"],defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};d.style=u;exports.chevron_icon=r;exports.search_icon=l;exports.select_dropdown=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const a=".sc-close-icon-h{display:flex}",s=a,c=class{constructor(t){e.registerInstance(this,t),this.width="16",this.height="16"}render(){return e.h("svg",{key:"fc5bac9399bb646bdd95f084a7ba6475b2d1a69f",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"9b5ac5fac2583beb647755639af45fbe87921913","clip-path":"url(#a)"},e.h("path",{key:"96b4b222f11978135af32b3198d96e0cba77bfcd",d:"M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z",fill:"currentColor"})),e.h("defs",{key:"85becca58c32c86afb041ec461e73c59945d3e14"},e.h("clipPath",{key:"c0e241158efdf7d70b42c1318c99ce4a2e019aff",id:"a"},e.h("path",{key:"35e32ec342dcc97c22016b9feeac37209f2ce683",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};c.style=s;exports.close_icon=c;
|
package/dist/{document-refresh-icon.entry-298b2133.cjs → document-refresh-icon.entry-06f7972b.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const c=".sc-document-refresh-icon-h{display:flex}",d=c,a=class{constructor(t){e.registerInstance(this,t),this.width="18",this.height="18"}render(){return e.h("svg",{key:"d06d6bc029572b2dd527aecf4ef7030185f2611b",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:this.width,height:this.height},e.h("rect",{key:"fff91f117af04f9f8a4bff9be0baab3037fdda72",id:"Canvas",fill:"#ff13dc",opacity:"0"}),e.h("path",{key:"037e7e2276dc5c92c23c7a4a12606b547cf8a2b3",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:"9d787ae2e585fdf096ad9ef94b564d0ae319346b",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:"c676cec50a84221d6da746d0597f1d9914e1991d",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:"30a681a5e8c6a660b39c41974ea70c42fbaa132b",d:"M10,0h.043a.5.5,0,0,1,.353.146L13.854,3.6A.5.5,0,0,1,14,3.957V4H10Z"}))}};a.style=d;exports.document_refresh_icon=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ne, h as g, c as We, H as $e, g as Rt, F as bn } from "./index-
|
|
1
|
+
import { r as ne, h as g, c as We, H as $e, g as Rt, F as bn } from "./index-db0c5017.js";
|
|
2
2
|
import { d as T, h as yn, i as En, p as Tn, j as An } from "./utils-c00bdc3c-89ab163d.js";
|
|
3
|
-
import { R as _n } from "./register-component-dc659dc3-
|
|
3
|
+
import { R as _n } from "./register-component-dc659dc3-e43e8fae.js";
|
|
4
4
|
import { c as wn } from "./_commonjsHelpers-57e89916-af061c86.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-7a55dc33.cjs"),y=require("./utils-c00bdc3c-94b9c3b6.cjs"),yn=require("./register-component-dc659dc3-f58bf25b.cjs"),En=require("./_commonjsHelpers-57e89916-4a3ae7d8.cjs");require("react");require("react-dom");const Tn=".sc-forward-icon-h{display:flex}",An=Tn,Ct=class{constructor(t){f.registerInstance(this,t),this.width="15",this.height="15"}render(){return f.h("svg",{key:"a858bd82169ace274a3c8cc1e214cd976e47e113",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},f.h("path",{key:"963f33f0803edfb6e8dfdbd287cee4917da7df01",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"}))}};Ct.style=An;const _n=':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}',wn=_n,Lt=class{constructor(t){f.registerInstance(this,t),this.close=f.createEvent(this,"close",7),this.send=f.createEvent(this,"send",7),this.closeComposer=o=>{this.close.emit(o)},this.sendComposer=o=>{var s;if(!this.editorEl){y.debug("no editor element");return}const u=this.editorEl.querySelector(".message-body");if(!u){y.debug("no message body");return}this.message&&(this.send.emit({message:this.message,replyBody:((s=u.querySelector(".message-body"))==null?void 0:s.innerHTML)||""}),this.close.emit(o),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){y.debug("[connectedCallback] no editor element");return}if(!this.toolbarEl){y.debug("[connectedCallback] no toolbar element");return}const t=this.editorEl,o=this.toolbarEl;t.addEventListener("mouseup",u=>{var W;const s=(W=this.host.shadowRoot)==null?void 0:W.getSelection();if(!s){y.debug("no selection");return}const p=s.getRangeAt(0),r=s.toString();if(!r){o.style.display="none";return}const m=t.querySelector(".message-body");if(!m){y.debug("no message body");return}const l=p.commonAncestorContainer.parentElement;if(!l)return;const T=m.getBoundingClientRect();y.debug("messageBodyRect",{messageBodyRect:T});const _=l.getBoundingClientRect();y.debug("foundRect",{foundRect:_});const ce=(l.childNodes[0].textContent||"").indexOf(r),q=window.getComputedStyle(l).fontSize,X=parseInt(q.replace("px",""),10),ne=_.top-T.top-o.clientHeight,ye=ce*(1/X)*100;o.style.top=`${ne}px`,o.style.left=`${ye}px`,o.style.display="block"})}watchBody(t){var r;if(!this.editorEl){y.debug("no editor element");return}this.editorEl.querySelectorAll(".message-body").forEach(m=>m.remove());const o=document.createElement("div");o.classList.add("message-body");const u=document.createElement("p");u.innerHTML=" ",o.appendChild(u);const s=document.createElement("br");o.appendChild(s);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:`,o.appendChild(p),t.body){const m=document.createElement("html");m.innerHTML=t.body;const i=document.createElement("blockquote");i.classList.add("collapsed"),i.classList.add("gmail_quote"),i.innerHTML=m.innerHTML,o.appendChild(i),y.debug("replyContainer",{replyContainer:i})}this.editorEl.appendChild(o),this.editorEl.querySelectorAll("blockquote.collapsed").forEach(m=>{m.addEventListener("click",function(i){i.preventDefault();const l=i.target;l.classList.remove("collapsed"),l.classList.add("expanded")},{once:!0})}),this.editorEl.focus()}render(){return f.h(f.Host,{key:"89cdb2c6c606698704a06507ddbe301a37134ca4"},f.h("sp-theme",{key:"4946560c2ab8518e5172e506caf36fa98fbc3912",scale:"medium",color:"dark"},f.h("div",{key:"b21a8843aaebb1fd4169ce2b849fb801bce46df4",class:"editor",contentEditable:!0,ref:t=>this.editorEl=t},f.h("div",{key:"830a97d7947b65c0312630184d539d4f8c7a48eb",class:"toolbar",ref:t=>this.toolbarEl=t,contentEditable:!1},f.h("sp-button",{key:"2fb11d997b13e4ec6e700155e3001d30f52bb217",quiet:!0,onClick:()=>document.execCommand("bold")},f.h("div",{key:"5c4fd64a8a3ccb94f36675047c05a662a1846426",slot:"icon"},f.h("bold-icon",{key:"033043849fddd392bc078dbb2fd843f6701c0501"})),f.h("div",{key:"585b08407297a97e3214d716505331f0889ea68f",slot:"label"},"Bold")),f.h("sp-button",{key:"b01e3c9c40fbe11122ca7be4b5120ba19262e1d5",quiet:!0,onClick:()=>document.execCommand("underline")},f.h("div",{key:"e407e888cb414fc4e5b15e9d21349038c7871f83",slot:"icon"},f.h("underline-icon",{key:"838cf6c3b7b42708b5ed6e5c53072cda29043f40"})),f.h("div",{key:"c662e1cefa352cb8910050a77e5b0a2e18de6bed",slot:"label"},"Underline")),f.h("sp-button",{key:"7e39fdbbdaeafabf1de93f42758f3b499c70206b",quiet:!0,onClick:()=>document.execCommand("italic")},f.h("div",{key:"8d7c7be8cf3959726b7541ed64e4e41995461258",slot:"icon"},f.h("italic-icon",{key:"ae07a6648728e3f9720dfdc3e3f91e8e4cbf86d9"})),f.h("div",{key:"fc3fc026d47610df27752ec8a310db99e280014c",slot:"label"},"Italic")))),f.h("div",{key:"9d4abb27a5d5a6b2c884da58191ca8f014e9ab43",class:"buttons"},f.h("sp-button",{key:"43f2b6d9a4a6d5513eb6fd52fb8f68f416077b37",onClick:this.sendComposer,class:"send"},"Send"),f.h("sp-button",{key:"fbae8e0490814b13347e3cc09bfd922ff5fceb43",onClick:this.closeComposer,class:"close"},"Close"))))}get host(){return f.getElement(this)}static get watchers(){return{message:["watchBody"]}}};Lt.style=wn;const vn=":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)}}",Sn=vn;var Cn=function(t,o,u,s){var p=arguments.length,r=p<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,u):s,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,o,u,s);else for(var i=t.length-1;i>=0;i--)(m=t[i])&&(r=(p<3?m(r):p>3?m(o,u,r):m(o,u))||r);return p>3&&r&&Object.defineProperty(o,u,r),r},Fe=function(t,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,o)};const We=class{constructor(t){f.registerInstance(this,t),this.summarize=f.createEvent(this,"summarize",7),this.abortController=new AbortController,this.onClick=async o=>{var u,s;o.preventDefault(),o.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||(y.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"?((u=this.abortController)==null||u.abort(),(s=this.audioRef)==null||s.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(){y.debug("[nylas-summarize-message-button] Component will load")}async componentDidLoad(){y.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 o=this.audioRef;if(!("MediaSource"in window)){const i=await t;if(i==null)throw new Error("ReadableStream not yet supported in this browser.");const l=i.getReader(),T=[];await this.readChunk(l,T);const _=new Blob(T,{type:"audio/mpeg"}),N=URL.createObjectURL(_);o.src=N;return}const u=new MediaSource;let s,p=!1;o.src=URL.createObjectURL(u),u.addEventListener("sourceopen",r);async function r(){s=u.addSourceBuffer("audio/mpeg"),s.addEventListener("updateend",m);const i=await t;if(i==null)throw new Error("ReadableStream not yet supported in this browser.");const l=i.getReader(),T=()=>{l.read().then(({done:_,value:N})=>{if(_){p=!0;return}s.updating||s.appendBuffer(N),T()}).catch(_=>{console.error("Error while fetching and appending chunks:",_)})};T(),o.paused&&o.play().catch(_=>console.error("Error playing audio:",_))}function m(){if(p){u.endOfStream(),u.removeEventListener("sourceopen",r),u.removeEventListener("sourceclose",()=>{y.debug("[nylas-summarize-message-button] Source closed")}),s.removeEventListener("updateend",m);return}}}async readChunk(t,o){return t.read().then(({done:u,value:s})=>u?o:(o.push(s),this.readChunk(t,o)))}render(){return f.h(f.Host,{key:"b14f3bab7ebd190d54a66a3e00704f9e4b147a8f"},f.h("sp-theme",{key:"3a5b0782c84bbc7dba7b15306d608b885b5a6edc",scale:"medium",color:"dark"},f.h("sp-button",{key:"d63121e6f80bd09f1e7ca35e1176aa3a070517b3",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"&&f.h("play-icon",null),this.state==="loading"&&f.h("loading-icon",null),this.state==="playing"&&f.h("stop-icon",null)),f.h("audio",{key:"954be0517a3b7328149830b2058d073ae9da591d",ref:t=>this.audioRef=t,autoPlay:!0,onPlaying:()=>this.state="playing",onPause:()=>this.state="stopped",onEnded:()=>{this.state="stopped",y.debug("[nylas-summarize-message-button] Audio ended")}})))}};Cn([yn.RegisterComponent({name:"nylas-summarize-message-button",eventToProps:{summarize:async(t,o)=>{const{playAudio:u,updateState:s,abortController:p,message:r}=t.detail,m=y.htmlToPlainText(r.body||"");await s("loading");try{const i=await o.messages.summarizeText(m),l=o.messages.textToSpeech(i,p);await u(l)}catch(i){await s("stopped"),console.error("Error summarizing message:",i)}}},fireRegisterEvent:!0}),Fe("design:type",Function),Fe("design:paramtypes",[]),Fe("design:returntype",void 0)],We.prototype,"render",null);We.style=Sn;function P(t){return!window.matchMedia("(prefers-color-scheme: dark)").matches||!t?t:t==="transparent"?"color":t.startsWith("#")?Ln(t):t.startsWith("rgb")?Rt(t):t.startsWith("hsl")?Rn(t):kn(t)?Mn(t):t}function Ln(t){t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const o=(255-parseInt(t.slice(1,3),16)).toString(16).padStart(2,"0"),u=(255-parseInt(t.slice(3,5),16)).toString(16).padStart(2,"0"),s=(255-parseInt(t.slice(5,7),16)).toString(16).padStart(2,"0");return`#${o}${u}${s}`}function Rt(t){var r;const o=(r=t.match(/\d+/g))==null?void 0:r.map(Number);if(!o)return t;const[u,s,p]=o;return`rgb(${255-u}, ${255-s}, ${255-p})`}function Rn(t){var r;const o=(r=t.match(/\d+\.?\d*/g))==null?void 0:r.map(Number);if(!o)return t;const[u,s,p]=o;return`hsl(${u}, ${s}%, ${100-p}%)`}function kn(t){return/^[a-z]+$/i.test(t)}function Mn(t){return Rt(Nn(t))}function Nn(t){return t.toLowerCase()==="red"?"rgb(255, 0, 0)":"rgb(0, 0, 0)"}function St(t){if(t instanceof HTMLStyleElement){let o=t.textContent;if(o){o=o.replaceAll(/@media\s*\(prefers-color-scheme:\s*(dark|light)\)\s*\{([^}]+)\}/g,"");const u=o.matchAll(/border-color:\s*([^;]+)/g);if(u)for(const i of u){const[l,T]=i,_=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");o=o.replaceAll(_,l.replace(T,P(T)))}const s=o.matchAll(/border:\s*([^;]+)/g);if(s)for(const i of s){const l=i[0].trim(),T=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[_,N,U]=i[1].split(" ");o=o.replaceAll(T,l.replace(U,P(U)))}const p=o.matchAll(/background-color:\s*([^;]+)/g);if(p)for(const i of p){const[l,T]=i,_=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");o=o.replaceAll(_,l.replace(T,P(T))),y.debug("backgroundColor",{fullMatch:l,replace:l.replace(T,P(T)),color:T,invertColor:P(T)})}const r=o.matchAll(/background:\s*([^;]+)/g);if(r)for(const i of r){const l=i[0].trim(),T=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[_,N,U]=i[1].split(" ");o=o.replaceAll(T,l.replace(U,P(U)))}const m=o.matchAll(/color:\s*([^;]+)/g);if(m)for(const i of m){const[l,T]=i,_=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");o=o.replaceAll(_,l.replace(T,P(T)))}t.textContent=o}}if(t instanceof HTMLElement){const o=window.getComputedStyle(t),u=o.color||t.style.color,s=o.backgroundColor||t.style.backgroundColor,p=o.borderColor||t.style.borderColor;u&&!s?t.style.color="":u&&s?(t.style.color=P(u),t.style.backgroundColor=P(s),y.debug("element",t),y.debug("computedStyle.color",u),y.debug("computedStyle.backgroundColor",s),y.debug("invertColor(color)",P(u)),y.debug("invertColor(backgroundColor)",P(s))):!u&&s&&(t.style.backgroundColor=""),p&&(y.debug("borderColor",p),t.style.borderColor=P(p)),t.hasAttribute("bgcolor")&&t.removeAttribute("bgcolor")}}function xn(t){St(t),t.querySelectorAll("*").forEach(u=>St(u))}var kt={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,o){(function(u,s){t.exports=s()})(En.commonjsGlobal,function(){const{entries:u,setPrototypeOf:s,isFrozen:p,getPrototypeOf:r,getOwnPropertyDescriptor:m}=Object;let{freeze:i,seal:l,create:T}=Object,{apply:_,construct:N}=typeof Reflect<"u"&&Reflect;i||(i=function(c){return c}),l||(l=function(c){return c}),_||(_=function(c,E,g){return c.apply(E,g)}),N||(N=function(c,E){return new c(...E)});const U=I(Array.prototype.forEach),ce=I(Array.prototype.pop),q=I(Array.prototype.push),X=I(String.prototype.toLowerCase),ne=I(String.prototype.toString),ye=I(String.prototype.match),W=I(String.prototype.replace),Dt=I(String.prototype.indexOf),Ot=I(String.prototype.trim),O=I(RegExp.prototype.test),oe=It(TypeError);function I(b){return function(c){for(var E=arguments.length,g=new Array(E>1?E-1:0),k=1;k<E;k++)g[k-1]=arguments[k];return _(b,c,g)}}function It(b){return function(){for(var c=arguments.length,E=new Array(c),g=0;g<c;g++)E[g]=arguments[g];return N(b,E)}}function h(b,c){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X;s&&s(b,null);let g=c.length;for(;g--;){let k=c[g];if(typeof k=="string"){const H=E(k);H!==k&&(p(c)||(c[g]=H),k=H)}b[k]=!0}return b}function Pt(b){for(let c=0;c<b.length;c++)m(b,c)===void 0&&(b[c]=null);return b}function G(b){const c=T(null);for(const[E,g]of u(b))m(b,E)!==void 0&&(Array.isArray(g)?c[E]=Pt(g):g&&typeof g=="object"&&g.constructor===Object?c[E]=G(g):c[E]=g);return c}function de(b,c){for(;b!==null;){const g=m(b,c);if(g){if(g.get)return I(g.get);if(typeof g.value=="function")return I(g.value)}b=r(b)}function E(g){return console.warn("fallback value for",g),null}return E}const qe=i(["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"]),Ee=i(["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"]),Te=i(["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"]),Ut=i(["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"]),Ae=i(["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"]),zt=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ge=i(["#text"]),$e=i(["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"]),_e=i(["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"]),Ye=i(["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"]),ue=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ht=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ft=l(/<%[\w\W]*|[\w\W]*%>/gm),Bt=l(/\${[\w\W]*}/gm),Wt=l(/^data-[\-\w.\u00B7-\uFFFF]/),qt=l(/^aria-[\-\w]+$/),je=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=l(/^(?:\w+script|data):/i),$t=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xe=l(/^html$/i);var Ve=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ht,ERB_EXPR:Ft,TMPLIT_EXPR:Bt,DATA_ATTR:Wt,ARIA_ATTR:qt,IS_ALLOWED_URI:je,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:$t,DOCTYPE_NAME:Xe});const Yt=function(){return typeof window>"u"?null:window},jt=function(c,E){if(typeof c!="object"||typeof c.createPolicy!="function")return null;let g=null;const k="data-tt-policy-suffix";E&&E.hasAttribute(k)&&(g=E.getAttribute(k));const H="dompurify"+(g?"#"+g:"");try{return c.createPolicy(H,{createHTML(V){return V},createScriptURL(V){return V}})}catch{return console.warn("TrustedTypes policy "+H+" could not be created."),null}};function Ze(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yt();const c=d=>Ze(d);if(c.version="3.0.8",c.removed=[],!b||!b.document||b.document.nodeType!==9)return c.isSupported=!1,c;let{document:E}=b;const g=E,k=g.currentScript,{DocumentFragment:H,HTMLTemplateElement:V,Node:we,Element:Ke,NodeFilter:ve,NamedNodeMap:Vt=b.NamedNodeMap||b.MozNamedAttrMap,HTMLFormElement:Zt,DOMParser:Kt,trustedTypes:fe}=b,me=Ke.prototype,Qt=de(me,"cloneNode"),Jt=de(me,"nextSibling"),en=de(me,"childNodes"),Se=de(me,"parentNode");if(typeof V=="function"){const d=E.createElement("template");d.content&&d.content.ownerDocument&&(E=d.content.ownerDocument)}let M,ie="";const{implementation:Ce,createNodeIterator:tn,createDocumentFragment:nn,getElementsByTagName:on}=E,{importNode:rn}=g;let z={};c.isSupported=typeof u=="function"&&typeof Se=="function"&&Ce&&Ce.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Le,ERB_EXPR:Re,TMPLIT_EXPR:ke,DATA_ATTR:an,ARIA_ATTR:sn,IS_SCRIPT_OR_DATA:ln,ATTR_WHITESPACE:Qe}=Ve;let{IS_ALLOWED_URI:Je}=Ve,v=null;const et=h({},[...qe,...Ee,...Te,...Ae,...Ge]);let S=null;const tt=h({},[...$e,..._e,...Ye,...ue]);let w=Object.seal(T(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}})),re=null,Me=null,nt=!0,Ne=!0,ot=!1,it=!0,Z=!1,$=!1,xe=!1,De=!1,K=!1,pe=!1,he=!1,rt=!0,at=!1;const cn="user-content-";let Oe=!0,ae=!1,Q={},J=null;const st=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 lt=null;const ct=h({},["audio","video","img","source","image","track"]);let Ie=null;const dt=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",be="http://www.w3.org/2000/svg",F="http://www.w3.org/1999/xhtml";let ee=F,Pe=!1,Ue=null;const dn=h({},[ge,be,F],ne);let se=null;const un=["application/xhtml+xml","text/html"],fn="text/html";let C=null,te=null;const mn=E.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ze=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(te&&te===e)){if((!e||typeof e!="object")&&(e={}),e=G(e),se=un.indexOf(e.PARSER_MEDIA_TYPE)===-1?fn:e.PARSER_MEDIA_TYPE,C=se==="application/xhtml+xml"?ne:X,v="ALLOWED_TAGS"in e?h({},e.ALLOWED_TAGS,C):et,S="ALLOWED_ATTR"in e?h({},e.ALLOWED_ATTR,C):tt,Ue="ALLOWED_NAMESPACES"in e?h({},e.ALLOWED_NAMESPACES,ne):dn,Ie="ADD_URI_SAFE_ATTR"in e?h(G(dt),e.ADD_URI_SAFE_ATTR,C):dt,lt="ADD_DATA_URI_TAGS"in e?h(G(ct),e.ADD_DATA_URI_TAGS,C):ct,J="FORBID_CONTENTS"in e?h({},e.FORBID_CONTENTS,C):st,re="FORBID_TAGS"in e?h({},e.FORBID_TAGS,C):{},Me="FORBID_ATTR"in e?h({},e.FORBID_ATTR,C):{},Q="USE_PROFILES"in e?e.USE_PROFILES:!1,nt=e.ALLOW_ARIA_ATTR!==!1,Ne=e.ALLOW_DATA_ATTR!==!1,ot=e.ALLOW_UNKNOWN_PROTOCOLS||!1,it=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=e.SAFE_FOR_TEMPLATES||!1,$=e.WHOLE_DOCUMENT||!1,K=e.RETURN_DOM||!1,pe=e.RETURN_DOM_FRAGMENT||!1,he=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,rt=e.SANITIZE_DOM!==!1,at=e.SANITIZE_NAMED_PROPS||!1,Oe=e.KEEP_CONTENT!==!1,ae=e.IN_PLACE||!1,Je=e.ALLOWED_URI_REGEXP||je,ee=e.NAMESPACE||F,w=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(w.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(w.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(w.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(Ne=!1),pe&&(K=!0),Q&&(v=h({},Ge),S=[],Q.html===!0&&(h(v,qe),h(S,$e)),Q.svg===!0&&(h(v,Ee),h(S,_e),h(S,ue)),Q.svgFilters===!0&&(h(v,Te),h(S,_e),h(S,ue)),Q.mathMl===!0&&(h(v,Ae),h(S,Ye),h(S,ue))),e.ADD_TAGS&&(v===et&&(v=G(v)),h(v,e.ADD_TAGS,C)),e.ADD_ATTR&&(S===tt&&(S=G(S)),h(S,e.ADD_ATTR,C)),e.ADD_URI_SAFE_ATTR&&h(Ie,e.ADD_URI_SAFE_ATTR,C),e.FORBID_CONTENTS&&(J===st&&(J=G(J)),h(J,e.FORBID_CONTENTS,C)),Oe&&(v["#text"]=!0),$&&h(v,["html","head","body"]),v.table&&(h(v,["tbody"]),delete re.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=e.TRUSTED_TYPES_POLICY,ie=M.createHTML("")}else M===void 0&&(M=jt(fe,k)),M!==null&&typeof ie=="string"&&(ie=M.createHTML(""));i&&i(e),te=e}},ft=h({},["mi","mo","mn","ms","mtext"]),mt=h({},["foreignobject","desc","title","annotation-xml"]),pn=h({},["title","style","font","a","script"]),pt=h({},[...Ee,...Te,...Ut]),ht=h({},[...Ae,...zt]),hn=function(e){let n=Se(e);(!n||!n.tagName)&&(n={namespaceURI:ee,tagName:"template"});const a=X(e.tagName),A=X(n.tagName);return Ue[e.namespaceURI]?e.namespaceURI===be?n.namespaceURI===F?a==="svg":n.namespaceURI===ge?a==="svg"&&(A==="annotation-xml"||ft[A]):!!pt[a]:e.namespaceURI===ge?n.namespaceURI===F?a==="math":n.namespaceURI===be?a==="math"&&mt[A]:!!ht[a]:e.namespaceURI===F?n.namespaceURI===be&&!mt[A]||n.namespaceURI===ge&&!ft[A]?!1:!ht[a]&&(pn[a]||!pt[a]):!!(se==="application/xhtml+xml"&&Ue[e.namespaceURI]):!1},Y=function(e){q(c.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},He=function(e,n){try{q(c.removed,{attribute:n.getAttributeNode(e),from:n})}catch{q(c.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is"&&!S[e])if(K||pe)try{Y(n)}catch{}else try{n.setAttribute(e,"")}catch{}},gt=function(e){let n=null,a=null;if(De)e="<remove></remove>"+e;else{const R=ye(e,/^[\r\n\t ]+/);a=R&&R[0]}se==="application/xhtml+xml"&&ee===F&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const A=M?M.createHTML(e):e;if(ee===F)try{n=new Kt().parseFromString(A,se)}catch{}if(!n||!n.documentElement){n=Ce.createDocument(ee,"template",null);try{n.documentElement.innerHTML=Pe?ie:A}catch{}}const L=n.body||n.documentElement;return e&&a&&L.insertBefore(E.createTextNode(a),L.childNodes[0]||null),ee===F?on.call(n,$?"html":"body")[0]:$?n.documentElement:L},bt=function(e){return tn.call(e.ownerDocument||e,e,ve.SHOW_ELEMENT|ve.SHOW_COMMENT|ve.SHOW_TEXT,null)},gn=function(e){return e instanceof Zt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Vt)||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 we=="function"&&e instanceof we},B=function(e,n,a){z[e]&&U(z[e],A=>{A.call(c,n,a,te)})},Et=function(e){let n=null;if(B("beforeSanitizeElements",e,null),gn(e))return Y(e),!0;const a=C(e.nodeName);if(B("uponSanitizeElement",e,{tagName:a,allowedTags:v}),e.hasChildNodes()&&!yt(e.firstElementChild)&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return Y(e),!0;if(!v[a]||re[a]){if(!re[a]&&At(a)&&(w.tagNameCheck instanceof RegExp&&O(w.tagNameCheck,a)||w.tagNameCheck instanceof Function&&w.tagNameCheck(a)))return!1;if(Oe&&!J[a]){const A=Se(e)||e.parentNode,L=en(e)||e.childNodes;if(L&&A){const R=L.length;for(let x=R-1;x>=0;--x)A.insertBefore(Qt(L[x],!0),Jt(e))}}return Y(e),!0}return e instanceof Ke&&!hn(e)||(a==="noscript"||a==="noembed"||a==="noframes")&&O(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y(e),!0):(Z&&e.nodeType===3&&(n=e.textContent,U([Le,Re,ke],A=>{n=W(n,A," ")}),e.textContent!==n&&(q(c.removed,{element:e.cloneNode()}),e.textContent=n)),B("afterSanitizeElements",e,null),!1)},Tt=function(e,n,a){if(rt&&(n==="id"||n==="name")&&(a in E||a in mn))return!1;if(!(Ne&&!Me[n]&&O(an,n))){if(!(nt&&O(sn,n))){if(!S[n]||Me[n]){if(!(At(e)&&(w.tagNameCheck instanceof RegExp&&O(w.tagNameCheck,e)||w.tagNameCheck instanceof Function&&w.tagNameCheck(e))&&(w.attributeNameCheck instanceof RegExp&&O(w.attributeNameCheck,n)||w.attributeNameCheck instanceof Function&&w.attributeNameCheck(n))||n==="is"&&w.allowCustomizedBuiltInElements&&(w.tagNameCheck instanceof RegExp&&O(w.tagNameCheck,a)||w.tagNameCheck instanceof Function&&w.tagNameCheck(a))))return!1}else if(!Ie[n]){if(!O(Je,W(a,Qe,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&Dt(a,"data:")===0&<[e])){if(!(ot&&!O(ln,W(a,Qe,"")))){if(a)return!1}}}}}}return!0},At=function(e){return e.indexOf("-")>0},_t=function(e){B("beforeSanitizeAttributes",e,null);const{attributes:n}=e;if(!n)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S};let A=n.length;for(;A--;){const L=n[A],{name:R,namespaceURI:x,value:j}=L,le=C(R);let D=R==="value"?j:Ot(j);if(a.attrName=le,a.attrValue=D,a.keepAttr=!0,a.forceKeepAttr=void 0,B("uponSanitizeAttribute",e,a),D=a.attrValue,a.forceKeepAttr||(He(R,e),!a.keepAttr))continue;if(!it&&O(/\/>/i,D)){He(R,e);continue}Z&&U([Le,Re,ke],vt=>{D=W(D,vt," ")});const wt=C(e.nodeName);if(Tt(wt,le,D)){if(at&&(le==="id"||le==="name")&&(He(R,e),D=cn+D),M&&typeof fe=="object"&&typeof fe.getAttributeType=="function"&&!x)switch(fe.getAttributeType(wt,le)){case"TrustedHTML":{D=M.createHTML(D);break}case"TrustedScriptURL":{D=M.createScriptURL(D);break}}try{x?e.setAttributeNS(x,R,D):e.setAttribute(R,D),ce(c.removed)}catch{}}}B("afterSanitizeAttributes",e,null)},bn=function d(e){let n=null;const a=bt(e);for(B("beforeSanitizeShadowDOM",e,null);n=a.nextNode();)B("uponSanitizeShadowNode",n,null),!Et(n)&&(n.content instanceof H&&d(n.content),_t(n));B("afterSanitizeShadowDOM",e,null)};return c.sanitize=function(d){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,a=null,A=null,L=null;if(Pe=!d,Pe&&(d="<!-->"),typeof d!="string"&&!yt(d))if(typeof d.toString=="function"){if(d=d.toString(),typeof d!="string")throw oe("dirty is not a string, aborting")}else throw oe("toString is not a function");if(!c.isSupported)return d;if(xe||ze(e),c.removed=[],typeof d=="string"&&(ae=!1),ae){if(d.nodeName){const j=C(d.nodeName);if(!v[j]||re[j])throw oe("root node is forbidden and cannot be sanitized in-place")}}else if(d instanceof we)n=gt("<!---->"),a=n.ownerDocument.importNode(d,!0),a.nodeType===1&&a.nodeName==="BODY"||a.nodeName==="HTML"?n=a:n.appendChild(a);else{if(!K&&!Z&&!$&&d.indexOf("<")===-1)return M&&he?M.createHTML(d):d;if(n=gt(d),!n)return K?null:he?ie:""}n&&De&&Y(n.firstChild);const R=bt(ae?d:n);for(;A=R.nextNode();)Et(A)||(A.content instanceof H&&bn(A.content),_t(A));if(ae)return d;if(K){if(pe)for(L=nn.call(n.ownerDocument);n.firstChild;)L.appendChild(n.firstChild);else L=n;return(S.shadowroot||S.shadowrootmode)&&(L=rn.call(g,L,!0)),L}let x=$?n.outerHTML:n.innerHTML;return $&&v["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&O(Xe,n.ownerDocument.doctype.name)&&(x="<!DOCTYPE "+n.ownerDocument.doctype.name+`>
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-2b8437d6.cjs"),y=require("./utils-c00bdc3c-94b9c3b6.cjs"),yn=require("./register-component-dc659dc3-fb85ee68.cjs"),En=require("./_commonjsHelpers-57e89916-4a3ae7d8.cjs");require("react");require("react-dom");const Tn=".sc-forward-icon-h{display:flex}",An=Tn,Ct=class{constructor(t){f.registerInstance(this,t),this.width="15",this.height="15"}render(){return f.h("svg",{key:"a858bd82169ace274a3c8cc1e214cd976e47e113",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},f.h("path",{key:"963f33f0803edfb6e8dfdbd287cee4917da7df01",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"}))}};Ct.style=An;const _n=':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}',wn=_n,Lt=class{constructor(t){f.registerInstance(this,t),this.close=f.createEvent(this,"close",7),this.send=f.createEvent(this,"send",7),this.closeComposer=o=>{this.close.emit(o)},this.sendComposer=o=>{var s;if(!this.editorEl){y.debug("no editor element");return}const u=this.editorEl.querySelector(".message-body");if(!u){y.debug("no message body");return}this.message&&(this.send.emit({message:this.message,replyBody:((s=u.querySelector(".message-body"))==null?void 0:s.innerHTML)||""}),this.close.emit(o),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){y.debug("[connectedCallback] no editor element");return}if(!this.toolbarEl){y.debug("[connectedCallback] no toolbar element");return}const t=this.editorEl,o=this.toolbarEl;t.addEventListener("mouseup",u=>{var W;const s=(W=this.host.shadowRoot)==null?void 0:W.getSelection();if(!s){y.debug("no selection");return}const p=s.getRangeAt(0),r=s.toString();if(!r){o.style.display="none";return}const m=t.querySelector(".message-body");if(!m){y.debug("no message body");return}const l=p.commonAncestorContainer.parentElement;if(!l)return;const T=m.getBoundingClientRect();y.debug("messageBodyRect",{messageBodyRect:T});const _=l.getBoundingClientRect();y.debug("foundRect",{foundRect:_});const ce=(l.childNodes[0].textContent||"").indexOf(r),q=window.getComputedStyle(l).fontSize,X=parseInt(q.replace("px",""),10),ne=_.top-T.top-o.clientHeight,ye=ce*(1/X)*100;o.style.top=`${ne}px`,o.style.left=`${ye}px`,o.style.display="block"})}watchBody(t){var r;if(!this.editorEl){y.debug("no editor element");return}this.editorEl.querySelectorAll(".message-body").forEach(m=>m.remove());const o=document.createElement("div");o.classList.add("message-body");const u=document.createElement("p");u.innerHTML=" ",o.appendChild(u);const s=document.createElement("br");o.appendChild(s);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:`,o.appendChild(p),t.body){const m=document.createElement("html");m.innerHTML=t.body;const i=document.createElement("blockquote");i.classList.add("collapsed"),i.classList.add("gmail_quote"),i.innerHTML=m.innerHTML,o.appendChild(i),y.debug("replyContainer",{replyContainer:i})}this.editorEl.appendChild(o),this.editorEl.querySelectorAll("blockquote.collapsed").forEach(m=>{m.addEventListener("click",function(i){i.preventDefault();const l=i.target;l.classList.remove("collapsed"),l.classList.add("expanded")},{once:!0})}),this.editorEl.focus()}render(){return f.h(f.Host,{key:"89cdb2c6c606698704a06507ddbe301a37134ca4"},f.h("sp-theme",{key:"4946560c2ab8518e5172e506caf36fa98fbc3912",scale:"medium",color:"dark"},f.h("div",{key:"b21a8843aaebb1fd4169ce2b849fb801bce46df4",class:"editor",contentEditable:!0,ref:t=>this.editorEl=t},f.h("div",{key:"830a97d7947b65c0312630184d539d4f8c7a48eb",class:"toolbar",ref:t=>this.toolbarEl=t,contentEditable:!1},f.h("sp-button",{key:"2fb11d997b13e4ec6e700155e3001d30f52bb217",quiet:!0,onClick:()=>document.execCommand("bold")},f.h("div",{key:"5c4fd64a8a3ccb94f36675047c05a662a1846426",slot:"icon"},f.h("bold-icon",{key:"033043849fddd392bc078dbb2fd843f6701c0501"})),f.h("div",{key:"585b08407297a97e3214d716505331f0889ea68f",slot:"label"},"Bold")),f.h("sp-button",{key:"b01e3c9c40fbe11122ca7be4b5120ba19262e1d5",quiet:!0,onClick:()=>document.execCommand("underline")},f.h("div",{key:"e407e888cb414fc4e5b15e9d21349038c7871f83",slot:"icon"},f.h("underline-icon",{key:"838cf6c3b7b42708b5ed6e5c53072cda29043f40"})),f.h("div",{key:"c662e1cefa352cb8910050a77e5b0a2e18de6bed",slot:"label"},"Underline")),f.h("sp-button",{key:"7e39fdbbdaeafabf1de93f42758f3b499c70206b",quiet:!0,onClick:()=>document.execCommand("italic")},f.h("div",{key:"8d7c7be8cf3959726b7541ed64e4e41995461258",slot:"icon"},f.h("italic-icon",{key:"ae07a6648728e3f9720dfdc3e3f91e8e4cbf86d9"})),f.h("div",{key:"fc3fc026d47610df27752ec8a310db99e280014c",slot:"label"},"Italic")))),f.h("div",{key:"9d4abb27a5d5a6b2c884da58191ca8f014e9ab43",class:"buttons"},f.h("sp-button",{key:"43f2b6d9a4a6d5513eb6fd52fb8f68f416077b37",onClick:this.sendComposer,class:"send"},"Send"),f.h("sp-button",{key:"fbae8e0490814b13347e3cc09bfd922ff5fceb43",onClick:this.closeComposer,class:"close"},"Close"))))}get host(){return f.getElement(this)}static get watchers(){return{message:["watchBody"]}}};Lt.style=wn;const vn=":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)}}",Sn=vn;var Cn=function(t,o,u,s){var p=arguments.length,r=p<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,u):s,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,o,u,s);else for(var i=t.length-1;i>=0;i--)(m=t[i])&&(r=(p<3?m(r):p>3?m(o,u,r):m(o,u))||r);return p>3&&r&&Object.defineProperty(o,u,r),r},Fe=function(t,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,o)};const We=class{constructor(t){f.registerInstance(this,t),this.summarize=f.createEvent(this,"summarize",7),this.abortController=new AbortController,this.onClick=async o=>{var u,s;o.preventDefault(),o.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||(y.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"?((u=this.abortController)==null||u.abort(),(s=this.audioRef)==null||s.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(){y.debug("[nylas-summarize-message-button] Component will load")}async componentDidLoad(){y.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 o=this.audioRef;if(!("MediaSource"in window)){const i=await t;if(i==null)throw new Error("ReadableStream not yet supported in this browser.");const l=i.getReader(),T=[];await this.readChunk(l,T);const _=new Blob(T,{type:"audio/mpeg"}),N=URL.createObjectURL(_);o.src=N;return}const u=new MediaSource;let s,p=!1;o.src=URL.createObjectURL(u),u.addEventListener("sourceopen",r);async function r(){s=u.addSourceBuffer("audio/mpeg"),s.addEventListener("updateend",m);const i=await t;if(i==null)throw new Error("ReadableStream not yet supported in this browser.");const l=i.getReader(),T=()=>{l.read().then(({done:_,value:N})=>{if(_){p=!0;return}s.updating||s.appendBuffer(N),T()}).catch(_=>{console.error("Error while fetching and appending chunks:",_)})};T(),o.paused&&o.play().catch(_=>console.error("Error playing audio:",_))}function m(){if(p){u.endOfStream(),u.removeEventListener("sourceopen",r),u.removeEventListener("sourceclose",()=>{y.debug("[nylas-summarize-message-button] Source closed")}),s.removeEventListener("updateend",m);return}}}async readChunk(t,o){return t.read().then(({done:u,value:s})=>u?o:(o.push(s),this.readChunk(t,o)))}render(){return f.h(f.Host,{key:"b14f3bab7ebd190d54a66a3e00704f9e4b147a8f"},f.h("sp-theme",{key:"3a5b0782c84bbc7dba7b15306d608b885b5a6edc",scale:"medium",color:"dark"},f.h("sp-button",{key:"d63121e6f80bd09f1e7ca35e1176aa3a070517b3",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"&&f.h("play-icon",null),this.state==="loading"&&f.h("loading-icon",null),this.state==="playing"&&f.h("stop-icon",null)),f.h("audio",{key:"954be0517a3b7328149830b2058d073ae9da591d",ref:t=>this.audioRef=t,autoPlay:!0,onPlaying:()=>this.state="playing",onPause:()=>this.state="stopped",onEnded:()=>{this.state="stopped",y.debug("[nylas-summarize-message-button] Audio ended")}})))}};Cn([yn.RegisterComponent({name:"nylas-summarize-message-button",eventToProps:{summarize:async(t,o)=>{const{playAudio:u,updateState:s,abortController:p,message:r}=t.detail,m=y.htmlToPlainText(r.body||"");await s("loading");try{const i=await o.messages.summarizeText(m),l=o.messages.textToSpeech(i,p);await u(l)}catch(i){await s("stopped"),console.error("Error summarizing message:",i)}}},fireRegisterEvent:!0}),Fe("design:type",Function),Fe("design:paramtypes",[]),Fe("design:returntype",void 0)],We.prototype,"render",null);We.style=Sn;function P(t){return!window.matchMedia("(prefers-color-scheme: dark)").matches||!t?t:t==="transparent"?"color":t.startsWith("#")?Ln(t):t.startsWith("rgb")?Rt(t):t.startsWith("hsl")?Rn(t):kn(t)?Mn(t):t}function Ln(t){t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const o=(255-parseInt(t.slice(1,3),16)).toString(16).padStart(2,"0"),u=(255-parseInt(t.slice(3,5),16)).toString(16).padStart(2,"0"),s=(255-parseInt(t.slice(5,7),16)).toString(16).padStart(2,"0");return`#${o}${u}${s}`}function Rt(t){var r;const o=(r=t.match(/\d+/g))==null?void 0:r.map(Number);if(!o)return t;const[u,s,p]=o;return`rgb(${255-u}, ${255-s}, ${255-p})`}function Rn(t){var r;const o=(r=t.match(/\d+\.?\d*/g))==null?void 0:r.map(Number);if(!o)return t;const[u,s,p]=o;return`hsl(${u}, ${s}%, ${100-p}%)`}function kn(t){return/^[a-z]+$/i.test(t)}function Mn(t){return Rt(Nn(t))}function Nn(t){return t.toLowerCase()==="red"?"rgb(255, 0, 0)":"rgb(0, 0, 0)"}function St(t){if(t instanceof HTMLStyleElement){let o=t.textContent;if(o){o=o.replaceAll(/@media\s*\(prefers-color-scheme:\s*(dark|light)\)\s*\{([^}]+)\}/g,"");const u=o.matchAll(/border-color:\s*([^;]+)/g);if(u)for(const i of u){const[l,T]=i,_=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");o=o.replaceAll(_,l.replace(T,P(T)))}const s=o.matchAll(/border:\s*([^;]+)/g);if(s)for(const i of s){const l=i[0].trim(),T=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[_,N,U]=i[1].split(" ");o=o.replaceAll(T,l.replace(U,P(U)))}const p=o.matchAll(/background-color:\s*([^;]+)/g);if(p)for(const i of p){const[l,T]=i,_=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");o=o.replaceAll(_,l.replace(T,P(T))),y.debug("backgroundColor",{fullMatch:l,replace:l.replace(T,P(T)),color:T,invertColor:P(T)})}const r=o.matchAll(/background:\s*([^;]+)/g);if(r)for(const i of r){const l=i[0].trim(),T=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),[_,N,U]=i[1].split(" ");o=o.replaceAll(T,l.replace(U,P(U)))}const m=o.matchAll(/color:\s*([^;]+)/g);if(m)for(const i of m){const[l,T]=i,_=l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");o=o.replaceAll(_,l.replace(T,P(T)))}t.textContent=o}}if(t instanceof HTMLElement){const o=window.getComputedStyle(t),u=o.color||t.style.color,s=o.backgroundColor||t.style.backgroundColor,p=o.borderColor||t.style.borderColor;u&&!s?t.style.color="":u&&s?(t.style.color=P(u),t.style.backgroundColor=P(s),y.debug("element",t),y.debug("computedStyle.color",u),y.debug("computedStyle.backgroundColor",s),y.debug("invertColor(color)",P(u)),y.debug("invertColor(backgroundColor)",P(s))):!u&&s&&(t.style.backgroundColor=""),p&&(y.debug("borderColor",p),t.style.borderColor=P(p)),t.hasAttribute("bgcolor")&&t.removeAttribute("bgcolor")}}function xn(t){St(t),t.querySelectorAll("*").forEach(u=>St(u))}var kt={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,o){(function(u,s){t.exports=s()})(En.commonjsGlobal,function(){const{entries:u,setPrototypeOf:s,isFrozen:p,getPrototypeOf:r,getOwnPropertyDescriptor:m}=Object;let{freeze:i,seal:l,create:T}=Object,{apply:_,construct:N}=typeof Reflect<"u"&&Reflect;i||(i=function(c){return c}),l||(l=function(c){return c}),_||(_=function(c,E,g){return c.apply(E,g)}),N||(N=function(c,E){return new c(...E)});const U=I(Array.prototype.forEach),ce=I(Array.prototype.pop),q=I(Array.prototype.push),X=I(String.prototype.toLowerCase),ne=I(String.prototype.toString),ye=I(String.prototype.match),W=I(String.prototype.replace),Dt=I(String.prototype.indexOf),Ot=I(String.prototype.trim),O=I(RegExp.prototype.test),oe=It(TypeError);function I(b){return function(c){for(var E=arguments.length,g=new Array(E>1?E-1:0),k=1;k<E;k++)g[k-1]=arguments[k];return _(b,c,g)}}function It(b){return function(){for(var c=arguments.length,E=new Array(c),g=0;g<c;g++)E[g]=arguments[g];return N(b,E)}}function h(b,c){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X;s&&s(b,null);let g=c.length;for(;g--;){let k=c[g];if(typeof k=="string"){const H=E(k);H!==k&&(p(c)||(c[g]=H),k=H)}b[k]=!0}return b}function Pt(b){for(let c=0;c<b.length;c++)m(b,c)===void 0&&(b[c]=null);return b}function G(b){const c=T(null);for(const[E,g]of u(b))m(b,E)!==void 0&&(Array.isArray(g)?c[E]=Pt(g):g&&typeof g=="object"&&g.constructor===Object?c[E]=G(g):c[E]=g);return c}function de(b,c){for(;b!==null;){const g=m(b,c);if(g){if(g.get)return I(g.get);if(typeof g.value=="function")return I(g.value)}b=r(b)}function E(g){return console.warn("fallback value for",g),null}return E}const qe=i(["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"]),Ee=i(["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"]),Te=i(["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"]),Ut=i(["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"]),Ae=i(["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"]),zt=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ge=i(["#text"]),$e=i(["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"]),_e=i(["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"]),Ye=i(["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"]),ue=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ht=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ft=l(/<%[\w\W]*|[\w\W]*%>/gm),Bt=l(/\${[\w\W]*}/gm),Wt=l(/^data-[\-\w.\u00B7-\uFFFF]/),qt=l(/^aria-[\-\w]+$/),je=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=l(/^(?:\w+script|data):/i),$t=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xe=l(/^html$/i);var Ve=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ht,ERB_EXPR:Ft,TMPLIT_EXPR:Bt,DATA_ATTR:Wt,ARIA_ATTR:qt,IS_ALLOWED_URI:je,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:$t,DOCTYPE_NAME:Xe});const Yt=function(){return typeof window>"u"?null:window},jt=function(c,E){if(typeof c!="object"||typeof c.createPolicy!="function")return null;let g=null;const k="data-tt-policy-suffix";E&&E.hasAttribute(k)&&(g=E.getAttribute(k));const H="dompurify"+(g?"#"+g:"");try{return c.createPolicy(H,{createHTML(V){return V},createScriptURL(V){return V}})}catch{return console.warn("TrustedTypes policy "+H+" could not be created."),null}};function Ze(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yt();const c=d=>Ze(d);if(c.version="3.0.8",c.removed=[],!b||!b.document||b.document.nodeType!==9)return c.isSupported=!1,c;let{document:E}=b;const g=E,k=g.currentScript,{DocumentFragment:H,HTMLTemplateElement:V,Node:we,Element:Ke,NodeFilter:ve,NamedNodeMap:Vt=b.NamedNodeMap||b.MozNamedAttrMap,HTMLFormElement:Zt,DOMParser:Kt,trustedTypes:fe}=b,me=Ke.prototype,Qt=de(me,"cloneNode"),Jt=de(me,"nextSibling"),en=de(me,"childNodes"),Se=de(me,"parentNode");if(typeof V=="function"){const d=E.createElement("template");d.content&&d.content.ownerDocument&&(E=d.content.ownerDocument)}let M,ie="";const{implementation:Ce,createNodeIterator:tn,createDocumentFragment:nn,getElementsByTagName:on}=E,{importNode:rn}=g;let z={};c.isSupported=typeof u=="function"&&typeof Se=="function"&&Ce&&Ce.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Le,ERB_EXPR:Re,TMPLIT_EXPR:ke,DATA_ATTR:an,ARIA_ATTR:sn,IS_SCRIPT_OR_DATA:ln,ATTR_WHITESPACE:Qe}=Ve;let{IS_ALLOWED_URI:Je}=Ve,v=null;const et=h({},[...qe,...Ee,...Te,...Ae,...Ge]);let S=null;const tt=h({},[...$e,..._e,...Ye,...ue]);let w=Object.seal(T(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}})),re=null,Me=null,nt=!0,Ne=!0,ot=!1,it=!0,Z=!1,$=!1,xe=!1,De=!1,K=!1,pe=!1,he=!1,rt=!0,at=!1;const cn="user-content-";let Oe=!0,ae=!1,Q={},J=null;const st=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 lt=null;const ct=h({},["audio","video","img","source","image","track"]);let Ie=null;const dt=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",be="http://www.w3.org/2000/svg",F="http://www.w3.org/1999/xhtml";let ee=F,Pe=!1,Ue=null;const dn=h({},[ge,be,F],ne);let se=null;const un=["application/xhtml+xml","text/html"],fn="text/html";let C=null,te=null;const mn=E.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ze=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(te&&te===e)){if((!e||typeof e!="object")&&(e={}),e=G(e),se=un.indexOf(e.PARSER_MEDIA_TYPE)===-1?fn:e.PARSER_MEDIA_TYPE,C=se==="application/xhtml+xml"?ne:X,v="ALLOWED_TAGS"in e?h({},e.ALLOWED_TAGS,C):et,S="ALLOWED_ATTR"in e?h({},e.ALLOWED_ATTR,C):tt,Ue="ALLOWED_NAMESPACES"in e?h({},e.ALLOWED_NAMESPACES,ne):dn,Ie="ADD_URI_SAFE_ATTR"in e?h(G(dt),e.ADD_URI_SAFE_ATTR,C):dt,lt="ADD_DATA_URI_TAGS"in e?h(G(ct),e.ADD_DATA_URI_TAGS,C):ct,J="FORBID_CONTENTS"in e?h({},e.FORBID_CONTENTS,C):st,re="FORBID_TAGS"in e?h({},e.FORBID_TAGS,C):{},Me="FORBID_ATTR"in e?h({},e.FORBID_ATTR,C):{},Q="USE_PROFILES"in e?e.USE_PROFILES:!1,nt=e.ALLOW_ARIA_ATTR!==!1,Ne=e.ALLOW_DATA_ATTR!==!1,ot=e.ALLOW_UNKNOWN_PROTOCOLS||!1,it=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=e.SAFE_FOR_TEMPLATES||!1,$=e.WHOLE_DOCUMENT||!1,K=e.RETURN_DOM||!1,pe=e.RETURN_DOM_FRAGMENT||!1,he=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,rt=e.SANITIZE_DOM!==!1,at=e.SANITIZE_NAMED_PROPS||!1,Oe=e.KEEP_CONTENT!==!1,ae=e.IN_PLACE||!1,Je=e.ALLOWED_URI_REGEXP||je,ee=e.NAMESPACE||F,w=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(w.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(w.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(w.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(Ne=!1),pe&&(K=!0),Q&&(v=h({},Ge),S=[],Q.html===!0&&(h(v,qe),h(S,$e)),Q.svg===!0&&(h(v,Ee),h(S,_e),h(S,ue)),Q.svgFilters===!0&&(h(v,Te),h(S,_e),h(S,ue)),Q.mathMl===!0&&(h(v,Ae),h(S,Ye),h(S,ue))),e.ADD_TAGS&&(v===et&&(v=G(v)),h(v,e.ADD_TAGS,C)),e.ADD_ATTR&&(S===tt&&(S=G(S)),h(S,e.ADD_ATTR,C)),e.ADD_URI_SAFE_ATTR&&h(Ie,e.ADD_URI_SAFE_ATTR,C),e.FORBID_CONTENTS&&(J===st&&(J=G(J)),h(J,e.FORBID_CONTENTS,C)),Oe&&(v["#text"]=!0),$&&h(v,["html","head","body"]),v.table&&(h(v,["tbody"]),delete re.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=e.TRUSTED_TYPES_POLICY,ie=M.createHTML("")}else M===void 0&&(M=jt(fe,k)),M!==null&&typeof ie=="string"&&(ie=M.createHTML(""));i&&i(e),te=e}},ft=h({},["mi","mo","mn","ms","mtext"]),mt=h({},["foreignobject","desc","title","annotation-xml"]),pn=h({},["title","style","font","a","script"]),pt=h({},[...Ee,...Te,...Ut]),ht=h({},[...Ae,...zt]),hn=function(e){let n=Se(e);(!n||!n.tagName)&&(n={namespaceURI:ee,tagName:"template"});const a=X(e.tagName),A=X(n.tagName);return Ue[e.namespaceURI]?e.namespaceURI===be?n.namespaceURI===F?a==="svg":n.namespaceURI===ge?a==="svg"&&(A==="annotation-xml"||ft[A]):!!pt[a]:e.namespaceURI===ge?n.namespaceURI===F?a==="math":n.namespaceURI===be?a==="math"&&mt[A]:!!ht[a]:e.namespaceURI===F?n.namespaceURI===be&&!mt[A]||n.namespaceURI===ge&&!ft[A]?!1:!ht[a]&&(pn[a]||!pt[a]):!!(se==="application/xhtml+xml"&&Ue[e.namespaceURI]):!1},Y=function(e){q(c.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},He=function(e,n){try{q(c.removed,{attribute:n.getAttributeNode(e),from:n})}catch{q(c.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is"&&!S[e])if(K||pe)try{Y(n)}catch{}else try{n.setAttribute(e,"")}catch{}},gt=function(e){let n=null,a=null;if(De)e="<remove></remove>"+e;else{const R=ye(e,/^[\r\n\t ]+/);a=R&&R[0]}se==="application/xhtml+xml"&&ee===F&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const A=M?M.createHTML(e):e;if(ee===F)try{n=new Kt().parseFromString(A,se)}catch{}if(!n||!n.documentElement){n=Ce.createDocument(ee,"template",null);try{n.documentElement.innerHTML=Pe?ie:A}catch{}}const L=n.body||n.documentElement;return e&&a&&L.insertBefore(E.createTextNode(a),L.childNodes[0]||null),ee===F?on.call(n,$?"html":"body")[0]:$?n.documentElement:L},bt=function(e){return tn.call(e.ownerDocument||e,e,ve.SHOW_ELEMENT|ve.SHOW_COMMENT|ve.SHOW_TEXT,null)},gn=function(e){return e instanceof Zt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Vt)||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 we=="function"&&e instanceof we},B=function(e,n,a){z[e]&&U(z[e],A=>{A.call(c,n,a,te)})},Et=function(e){let n=null;if(B("beforeSanitizeElements",e,null),gn(e))return Y(e),!0;const a=C(e.nodeName);if(B("uponSanitizeElement",e,{tagName:a,allowedTags:v}),e.hasChildNodes()&&!yt(e.firstElementChild)&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return Y(e),!0;if(!v[a]||re[a]){if(!re[a]&&At(a)&&(w.tagNameCheck instanceof RegExp&&O(w.tagNameCheck,a)||w.tagNameCheck instanceof Function&&w.tagNameCheck(a)))return!1;if(Oe&&!J[a]){const A=Se(e)||e.parentNode,L=en(e)||e.childNodes;if(L&&A){const R=L.length;for(let x=R-1;x>=0;--x)A.insertBefore(Qt(L[x],!0),Jt(e))}}return Y(e),!0}return e instanceof Ke&&!hn(e)||(a==="noscript"||a==="noembed"||a==="noframes")&&O(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y(e),!0):(Z&&e.nodeType===3&&(n=e.textContent,U([Le,Re,ke],A=>{n=W(n,A," ")}),e.textContent!==n&&(q(c.removed,{element:e.cloneNode()}),e.textContent=n)),B("afterSanitizeElements",e,null),!1)},Tt=function(e,n,a){if(rt&&(n==="id"||n==="name")&&(a in E||a in mn))return!1;if(!(Ne&&!Me[n]&&O(an,n))){if(!(nt&&O(sn,n))){if(!S[n]||Me[n]){if(!(At(e)&&(w.tagNameCheck instanceof RegExp&&O(w.tagNameCheck,e)||w.tagNameCheck instanceof Function&&w.tagNameCheck(e))&&(w.attributeNameCheck instanceof RegExp&&O(w.attributeNameCheck,n)||w.attributeNameCheck instanceof Function&&w.attributeNameCheck(n))||n==="is"&&w.allowCustomizedBuiltInElements&&(w.tagNameCheck instanceof RegExp&&O(w.tagNameCheck,a)||w.tagNameCheck instanceof Function&&w.tagNameCheck(a))))return!1}else if(!Ie[n]){if(!O(Je,W(a,Qe,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&Dt(a,"data:")===0&<[e])){if(!(ot&&!O(ln,W(a,Qe,"")))){if(a)return!1}}}}}}return!0},At=function(e){return e.indexOf("-")>0},_t=function(e){B("beforeSanitizeAttributes",e,null);const{attributes:n}=e;if(!n)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S};let A=n.length;for(;A--;){const L=n[A],{name:R,namespaceURI:x,value:j}=L,le=C(R);let D=R==="value"?j:Ot(j);if(a.attrName=le,a.attrValue=D,a.keepAttr=!0,a.forceKeepAttr=void 0,B("uponSanitizeAttribute",e,a),D=a.attrValue,a.forceKeepAttr||(He(R,e),!a.keepAttr))continue;if(!it&&O(/\/>/i,D)){He(R,e);continue}Z&&U([Le,Re,ke],vt=>{D=W(D,vt," ")});const wt=C(e.nodeName);if(Tt(wt,le,D)){if(at&&(le==="id"||le==="name")&&(He(R,e),D=cn+D),M&&typeof fe=="object"&&typeof fe.getAttributeType=="function"&&!x)switch(fe.getAttributeType(wt,le)){case"TrustedHTML":{D=M.createHTML(D);break}case"TrustedScriptURL":{D=M.createScriptURL(D);break}}try{x?e.setAttributeNS(x,R,D):e.setAttribute(R,D),ce(c.removed)}catch{}}}B("afterSanitizeAttributes",e,null)},bn=function d(e){let n=null;const a=bt(e);for(B("beforeSanitizeShadowDOM",e,null);n=a.nextNode();)B("uponSanitizeShadowNode",n,null),!Et(n)&&(n.content instanceof H&&d(n.content),_t(n));B("afterSanitizeShadowDOM",e,null)};return c.sanitize=function(d){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,a=null,A=null,L=null;if(Pe=!d,Pe&&(d="<!-->"),typeof d!="string"&&!yt(d))if(typeof d.toString=="function"){if(d=d.toString(),typeof d!="string")throw oe("dirty is not a string, aborting")}else throw oe("toString is not a function");if(!c.isSupported)return d;if(xe||ze(e),c.removed=[],typeof d=="string"&&(ae=!1),ae){if(d.nodeName){const j=C(d.nodeName);if(!v[j]||re[j])throw oe("root node is forbidden and cannot be sanitized in-place")}}else if(d instanceof we)n=gt("<!---->"),a=n.ownerDocument.importNode(d,!0),a.nodeType===1&&a.nodeName==="BODY"||a.nodeName==="HTML"?n=a:n.appendChild(a);else{if(!K&&!Z&&!$&&d.indexOf("<")===-1)return M&&he?M.createHTML(d):d;if(n=gt(d),!n)return K?null:he?ie:""}n&&De&&Y(n.firstChild);const R=bt(ae?d:n);for(;A=R.nextNode();)Et(A)||(A.content instanceof H&&bn(A.content),_t(A));if(ae)return d;if(K){if(pe)for(L=nn.call(n.ownerDocument);n.firstChild;)L.appendChild(n.firstChild);else L=n;return(S.shadowroot||S.shadowrootmode)&&(L=rn.call(g,L,!0)),L}let x=$?n.outerHTML:n.innerHTML;return $&&v["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&O(Xe,n.ownerDocument.doctype.name)&&(x="<!DOCTYPE "+n.ownerDocument.doctype.name+`>
|
|
2
2
|
`+x),Z&&U([Le,Re,ke],j=>{x=W(x,j," ")}),M&&he?M.createHTML(x):x},c.setConfig=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ze(d),xe=!0},c.clearConfig=function(){te=null,xe=!1},c.isValidAttribute=function(d,e,n){te||ze({});const a=C(d),A=C(e);return Tt(a,A,n)},c.addHook=function(d,e){typeof e=="function"&&(z[d]=z[d]||[],q(z[d],e))},c.removeHook=function(d){if(z[d])return ce(z[d])},c.removeHooks=function(d){z[d]&&(z[d]=[])},c.removeAllHooks=function(){z={}},c}var Xt=Ze();return Xt})})(kt);const Be=kt.exports,Dn=":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)}",On=Dn;Be.addHook("afterSanitizeAttributes",function(t){"target"in t&&(t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"))});const Mt=class{constructor(t){f.registerInstance(this,t),this.htmlElement=document.createElement("html"),this.setBody=o=>{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?y.detectIfMessageIsHTML(this.message):y.detectHTMLOrPlainText(o))||(o=`<html><body>${y.parsePlainTextToHTML(o)}</body></html>`),this.htmlElement.innerHTML=o,this.detectDarkMode&&xn(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 i=new URL(m,window.location.href);(i.protocol==="https:"||i.protocol==="http:")&&this.hoistedFontURLs.set(i.href,i.href)}}}),this.htmlElement.querySelectorAll("style").forEach(r=>{r.innerHTML.split(`
|
|
3
3
|
`).forEach(m=>{const i=m.match(/@import url\((.*)\)/);if(i){const l=new URL(i[1],window.location.href);(l.protocol==="https:"||l.protocol==="http:")&&this.hoistedFontURLs.set(l.href,l.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 s=this.htmlElement.querySelector(".gmail_quote");if(s){const r=document.createElement("button");r.classList.add("nylas-view-email-toggle-button"),r.setAttribute("aria-label","Show quoted text"),r.innerText="...",(p=s.parentElement)==null||p.insertBefore(r,s)}this.sanitizedBody=Be.sanitize(this.htmlElement.innerHTML),this.hoistedFontURLs.forEach((r,m)=>{const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),i.classList.add("nylas-view-email-font"),document.head.appendChild(i)}),this.state="ready"},this.handleMobileSize=()=>{var u,s,p,r;const o=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);if(o<=768){const m=(u=this.viewEmailElement)==null?void 0:u.getBoundingClientRect();if(m&&this.viewEmailElement&&this.parent&&m.width>o){const i=this.parent,l=i==null?void 0:i.getBoundingClientRect();y.debug("Parent width:",l==null?void 0:l.width,"Parent height:",l==null?void 0:l.height),y.debug("Parent client width:",i.clientWidth,"Parent client height:",i.clientHeight);const T=l.width/m.width,_=l.height/m.height,N=Math.min(T,_);y.debug("Scale:",N),this.viewEmailElement.style.setProperty("transform",`scale(${N})`),this.viewEmailElement.style.setProperty("transform-origin","top left"),this.viewEmailElement.style.setProperty("height",`${m.height*N}px`)}}else(s=this.viewEmailElement)==null||s.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(){y.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;y.debug("[nylas-view-email] component loaded"),this.setBody(((t=this.message)==null?void 0:t.body)??"")}async componentDidLoad(){y.debug("[nylas-view-thread] Component did load"),this.handleMobileSize()}async messageChanged(){var t;y.debug("[nylas-view-thread] Message changed",{message:this.message}),this.setBody(((t=this.message)==null?void 0:t.body)??"")}handleScroll(){this.handleMobileSize()}viewEmailElementChanged(){var o;const t=(o=this.viewEmailElement)==null?void 0:o.querySelectorAll(".nylas-view-email-toggle-button");t&&t.forEach(u=>{u.addEventListener("click",()=>{var p;const s=(p=this.viewEmailElement)==null?void 0:p.querySelector(".gmail_quote");s&&s.classList.toggle("show")})})}render(){return console.debug("[nylas-view-email] render",{hoistedFontURLs:this.hoistedFontURLs}),f.h(f.Host,{key:"5209aa3727b4c8013cec3ee0a33afdb38e9925d9"},this.state==="loading"&&f.h("div",null,"Loading..."),this.state==="ready"&&f.h(f.Fragment,null,this.styles.map(t=>f.h("style",null,Be.sanitize(t.innerHTML))),f.h("div",{class:"view-email",part:"view-email",innerHTML:this.sanitizedBody,ref:t=>this.viewEmailElement=t})))}get host(){return f.getElement(this)}static get watchers(){return{message:["messageChanged"],viewEmailElement:["viewEmailElementChanged"]}}};Mt.style=On;const In=".sc-reply-all-icon-h{display:flex}",Pn=In,Nt=class{constructor(t){f.registerInstance(this,t),this.width="15",this.height="15"}render(){return f.h("svg",{key:"cf3a910b7232018b6579cfe31a868e3ba54f30b0",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},f.h("path",{key:"1db5bb9aa170d0a00c5939cdd7bfe7b878124c2c",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"}))}};Nt.style=Pn;const Un=".sc-reply-icon-h{display:flex}",zn=Un,xt=class{constructor(t){f.registerInstance(this,t),this.width="15",this.height="15"}render(){return f.h("svg",{key:"a353055eb9122f1dae36fbf49a557c431fd8580a",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},f.h("path",{key:"97ac62efd50d229e10b45fc2a47f3c8c5a9b6e5d",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"}))}};xt.style=zn;exports.forward_icon=Ct;exports.nylas_composer=Lt;exports.nylas_summarize_message_button=We;exports.nylas_view_email=Mt;exports.reply_all_icon=Nt;exports.reply_icon=xt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.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:"cda54141a59e6ec136d44bbd369596ef24779ce1",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},e.h("path",{key:"b70c95480990f3728bf67830554b3abfabffdc8a",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,5 +1,5 @@
|
|
|
1
|
-
import { r as S, h as t, c as N, H as A } from "./index-
|
|
2
|
-
import { R as Z } from "./register-component-dc659dc3-
|
|
1
|
+
import { r as S, h as t, c as N, H as A } from "./index-db0c5017.js";
|
|
2
|
+
import { R as Z } from "./register-component-dc659dc3-e43e8fae.js";
|
|
3
3
|
import { d as y } from "./utils-c00bdc3c-89ab163d.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
@@ -112,7 +112,7 @@ const E = class {
|
|
|
112
112
|
open_hours: o ?? []
|
|
113
113
|
},
|
|
114
114
|
booking: {
|
|
115
|
-
calendar_id: c
|
|
115
|
+
calendar_id: c && c !== "" ? c : "primary"
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
],
|
|
@@ -219,10 +219,10 @@ const E = class {
|
|
|
219
219
|
}
|
|
220
220
|
render() {
|
|
221
221
|
var a;
|
|
222
|
-
return y("[nylas-editor-tabs]", "render", this.formState), t(A, { key: "
|
|
222
|
+
return y("[nylas-editor-tabs]", "render", this.formState), t(A, { key: "920332a1206e84229cd4875b598b388d196edc77" }, t("form", { key: "cc33124020c4ec87dff2eb395d8a4151dd2a63a8", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (e) => this.formRef = e }, t("div", { key: "e9a0e2d35d59ab3c95e0b17db057aa97de1c48d3", class: "form-contents" }, t("div", { key: "c2b30e822e4b5a0d938b9d7fb5849e90503d5fee", class: "tabs" }, t("button", { key: "1958ff2af28cf21a3c8b6a1029dfd0fdfd58bbf7", class: { tab: !0, active: this.activeTab == "eventInfo" }, onClick: (e) => this.setActiveTab(e, "eventInfo") }, t("calendar-info-icon", { key: "c62f9b3cad22d4c67791c78dcac202d47617eda0", width: "16", height: "16" }), "Event Info"), t("button", { key: "7858b3fe59f02eefba9cebc561e5e89b220a6018", class: { tab: !0, active: this.activeTab == "availability" }, onClick: (e) => this.setActiveTab(e, "availability") }, t("calendar-patterns-icon", { key: "b8d6ed526a37bd31ce150c4202e41a9599c553af", width: "16", height: "16" }), "Availability"), t("button", { key: "224c119608059affb6245f72b6337fe66aafe9fb", class: { tab: !0, active: this.activeTab == "bookingOptions" }, onClick: (e) => this.setActiveTab(e, "bookingOptions") }, t("flow-icon", { key: "149824372964f592dd1d754a7db6eef9367ffafc", width: "16", height: "16" }), "Booking Options")), t("div", { key: "0feb5d9500b8028542438e9d091b66bc87bc9673", class: "tab-content" }, t($, { key: "86de2a2ab92dd6c1081c7a4db4f3ceb62ee579fe", formState: this.formState, activeTab: this.activeTab, calendars: this.calendars, id: ((a = this.config) == null ? void 0 : a.id) ?? "new" }))), t("div", { key: "8a63b2e9761aea3dea1e967784db8e2de5b65eda", class: "footer" }, t("p", { key: "da0e2f2f19bc7a8b2910706f57ea437b291fc2b1", class: {
|
|
223
223
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
224
224
|
"saved-changes": this.changesSaved
|
|
225
|
-
} }, this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.changesSaved ? "Changes saved!" : ""), t("button-component", { key: "
|
|
225
|
+
} }, this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.changesSaved ? "Changes saved!" : ""), t("button-component", { key: "6d41a5158d8ff68528056fcc65c1b668e3fcd6e6", type: "submit", disabled: this.isLoading }, this.isLoading ? t("span", null, "Saving", t("loading-icon", null), " ") : this.action == "create" ? "Create" : "Save changes"))));
|
|
226
226
|
}
|
|
227
227
|
static get watchers() {
|
|
228
228
|
return {
|