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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/{add-circle-icon_22.entry-f699d91e.js → add-circle-icon_22.entry-9f634efd.js} +90 -92
  2. package/dist/add-circle-icon_22.entry-e7ec6c34.cjs +1 -0
  3. package/dist/{archive-icon_7.entry-40b7ef3b.js → archive-icon_7.entry-24bac466.js} +21 -21
  4. package/dist/{archive-icon_7.entry-e8630de9.cjs → archive-icon_7.entry-6649ed76.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-ffa53114.cjs → arrow-icon.entry-1fffd526.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-58246303.js → arrow-icon.entry-82e59ce4.js} +4 -4
  7. package/dist/{bold-icon_3.entry-106a4e77.cjs → bold-icon_3.entry-5a01fecf.cjs} +1 -1
  8. package/dist/{bold-icon_3.entry-f5f1643d.js → bold-icon_3.entry-72e585da.js} +4 -4
  9. package/dist/{calendar-cancel-icon.entry-6ae0fd0f.cjs → calendar-cancel-icon.entry-0b52bdc9.cjs} +1 -1
  10. package/dist/{calendar-cancel-icon.entry-75b15b19.js → calendar-cancel-icon.entry-247b530c.js} +5 -5
  11. package/dist/{calendar-check-icon_2.entry-c57f83f3.cjs → calendar-check-icon_2.entry-d7bb76c7.cjs} +1 -1
  12. package/dist/{calendar-check-icon_2.entry-57339318.js → calendar-check-icon_2.entry-dbb2df49.js} +7 -7
  13. package/dist/{calendar-icon.entry-492c2630.cjs → calendar-icon.entry-911773c4.cjs} +1 -1
  14. package/dist/{calendar-icon.entry-2069fec6.js → calendar-icon.entry-d64cb3d3.js} +2 -2
  15. package/dist/{chevron-icon_3.entry-878ff6df.cjs → chevron-icon_3.entry-b72f4cdb.cjs} +1 -1
  16. package/dist/{chevron-icon_3.entry-83df50c3.js → chevron-icon_3.entry-db9f8217.js} +11 -11
  17. package/dist/close-icon.entry-9d141bb4.js +15 -0
  18. package/dist/close-icon.entry-da590fa2.cjs +1 -0
  19. package/dist/{constants-6ee60d6d-6c0540db.cjs → constants-6ee60d6d-09ee73d9.cjs} +1 -1
  20. package/dist/{constants-6ee60d6d-4cd16450.js → constants-6ee60d6d-d5928e79.js} +1 -1
  21. package/dist/document-refresh-icon.entry-5e8cc2f0.cjs +1 -0
  22. package/dist/{document-refresh-icon.entry-09870b14.js → document-refresh-icon.entry-ee9632d7.js} +5 -5
  23. package/dist/elements/index.d.ts +1 -0
  24. package/dist/{elements-dc5b338e-81a0319c.cjs → elements-dc5b338e-29ef67ec.cjs} +1 -1
  25. package/dist/{elements-dc5b338e-fb5dbfb5.js → elements-dc5b338e-e87f79b6.js} +1 -1
  26. package/dist/focus-visible-e8093c16-61d506d2.cjs +1 -0
  27. package/dist/{focus-visible-e8093c16-28fc08a0.js → focus-visible-e8093c16-e7357f74.js} +5 -3
  28. package/dist/forward-icon_6.entry-cac8473a.cjs +3 -0
  29. package/dist/{forward-icon_6.entry-8bb201eb.js → forward-icon_6.entry-f054ad9d.js} +65 -67
  30. package/dist/{globe-icon.entry-d515cbfa.js → globe-icon.entry-2fde6ac4.js} +4 -4
  31. package/dist/{globe-icon.entry-a690028c.cjs → globe-icon.entry-bc484551.cjs} +1 -1
  32. package/dist/google-logo-icon_4.entry-a9848399.cjs +1 -0
  33. package/dist/google-logo-icon_4.entry-dca87e45.js +349 -0
  34. package/dist/index-22f7e49c.cjs +37 -0
  35. package/dist/index-f9ba9aa8.js +3971 -0
  36. package/dist/{index.es-2578c6a5-71441142.js → index.es-f57e612a-1d17c676.js} +516 -512
  37. package/dist/{index.es-2578c6a5-098d48d0.cjs → index.es-f57e612a-95ca3e17.cjs} +5 -5
  38. package/dist/{info-icon_2.entry-300ef196.js → info-icon_2.entry-dbf3931a.js} +7 -7
  39. package/dist/{info-icon_2.entry-e286aaa5.cjs → info-icon_2.entry-e67844eb.cjs} +1 -1
  40. package/dist/loading-icon.entry-4566cba8.cjs +1 -0
  41. package/dist/loading-icon.entry-ae4c2d7e.js +15 -0
  42. package/dist/{mailbox-store-bb21512c-649a374c.js → mailbox-store-47fc8a1a-2365f20f.js} +16 -17
  43. package/dist/mailbox-store-47fc8a1a-cd3516a7.cjs +1 -0
  44. package/dist/nylas-additional-participants.entry-7c568149.cjs +1 -0
  45. package/dist/{nylas-additional-participants.entry-4afba192.js → nylas-additional-participants.entry-e8426256.js} +12 -14
  46. package/dist/nylas-booked-event-card_10.entry-6a664889.cjs +1 -0
  47. package/dist/{nylas-booked-event-card_10.entry-1ebbe0c0.js → nylas-booked-event-card_10.entry-ef767733.js} +8 -10
  48. package/dist/{nylas-form-card.entry-7bc23695.js → nylas-form-card.entry-d8506b1f.js} +4 -6
  49. package/dist/nylas-form-card.entry-e44169b6.cjs +1 -0
  50. package/dist/nylas-if-state.entry-044c49d2.cjs +1 -0
  51. package/dist/{nylas-if-state.entry-3829cb3d.js → nylas-if-state.entry-98a336df.js} +2 -4
  52. package/dist/nylas-list-folders.entry-509f9be4.cjs +1 -0
  53. package/dist/{nylas-list-folders.entry-7347e78d.js → nylas-list-folders.entry-55ce3403.js} +6 -8
  54. package/dist/{nylas-list-threads.entry-432a8d8c.js → nylas-list-threads.entry-1f57382a.js} +5 -7
  55. package/dist/nylas-list-threads.entry-c36e2cf3.cjs +1 -0
  56. package/dist/nylas-login.entry-66f542b8.cjs +1 -0
  57. package/dist/{nylas-login.entry-5311f0a7.js → nylas-login.entry-76358c2f.js} +3 -5
  58. package/dist/{nylas-mailbox-pagination.entry-20150fb2.js → nylas-mailbox-pagination.entry-5562257a.js} +7 -9
  59. package/dist/nylas-mailbox-pagination.entry-89b0dd99.cjs +1 -0
  60. package/dist/nylas-mailbox-toolbar-button.entry-573e0429.cjs +1 -0
  61. package/dist/{nylas-mailbox-toolbar-button.entry-eec426d5.js → nylas-mailbox-toolbar-button.entry-6b1b5b15.js} +16 -18
  62. package/dist/{nylas-mailbox.entry-b6c758b9.js → nylas-mailbox.entry-97c503f2.js} +7 -9
  63. package/dist/nylas-mailbox.entry-e21a2f50.cjs +1 -0
  64. package/dist/{nylas-provider.entry-271cafd2.js → nylas-provider.entry-07e1e26a.js} +10 -12
  65. package/dist/nylas-provider.entry-61899957.cjs +1 -0
  66. package/dist/nylas-scheduler-editor.entry-60fe38ce.cjs +7 -0
  67. package/dist/{nylas-scheduler-editor.entry-b51ad4b1.js → nylas-scheduler-editor.entry-e326c9de.js} +329 -246
  68. package/dist/{nylas-scheduling.entry-0a8d1da8.js → nylas-scheduling.entry-be0cc090.js} +3 -5
  69. package/dist/nylas-scheduling.entry-d88289db.cjs +1 -0
  70. package/dist/{nylas-threads-refresh.entry-72dd854e.js → nylas-threads-refresh.entry-8201f8dd.js} +11 -13
  71. package/dist/nylas-threads-refresh.entry-c71ee775.cjs +1 -0
  72. package/dist/nylas-threads-search.entry-912a90a4.cjs +1 -0
  73. package/dist/{nylas-threads-search.entry-4750a187.js → nylas-threads-search.entry-fc477e01.js} +18 -20
  74. package/dist/nylas-view-thread.entry-af418ddb.cjs +1 -0
  75. package/dist/{nylas-view-thread.entry-c6adce43.js → nylas-view-thread.entry-d2953ea8.js} +7 -9
  76. package/dist/{people-icon.entry-342be0c8.js → people-icon.entry-4b598fde.js} +7 -7
  77. package/dist/{people-icon.entry-35252ca9.cjs → people-icon.entry-73cfa6f5.cjs} +1 -1
  78. package/dist/play-icon_2.entry-1a487abb.cjs +1 -0
  79. package/dist/{play-icon_2.entry-0787352c.js → play-icon_2.entry-d1c2f823.js} +5 -5
  80. package/dist/react.cjs +1 -1
  81. package/dist/react.js +68 -67
  82. package/dist/{refresh-icon.entry-ddbc5446.cjs → refresh-icon.entry-42d543d0.cjs} +1 -1
  83. package/dist/{refresh-icon.entry-8fbabfe7.js → refresh-icon.entry-6aedfce6.js} +4 -4
  84. package/dist/register-component-cf5c8420-d3fb6bf9.cjs +1 -0
  85. package/dist/{register-component-dc659dc3-e43e8fae.js → register-component-cf5c8420-dc1bc0a4.js} +37 -33
  86. package/dist/scheduler-config-store-6222c0ed-000f1a4f.js +18 -0
  87. package/dist/scheduler-config-store-6222c0ed-758621fb.cjs +1 -0
  88. package/dist/{scheduler-store-72116723-e5f87122.js → scheduler-store-39d37291-4e8e9ff9.js} +5 -6
  89. package/dist/scheduler-store-39d37291-b66c052c.cjs +1 -0
  90. package/dist/{time-period-selector.entry-333942a8.js → time-period-selector.entry-f1e27a00.js} +6 -8
  91. package/dist/time-period-selector.entry-fb3d0178.cjs +1 -0
  92. package/dist/{translate-icon.entry-cb19864c.cjs → translate-icon.entry-0d44b6cb.cjs} +1 -1
  93. package/dist/{translate-icon.entry-87a62108.js → translate-icon.entry-3db947f5.js} +5 -5
  94. package/dist/{warning-icon.entry-50755d91.cjs → warning-icon.entry-a20657e4.cjs} +1 -1
  95. package/dist/{warning-icon.entry-7a72e24a.js → warning-icon.entry-a8ea0fe0.js} +5 -5
  96. package/package.json +2 -2
  97. package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +0 -1
  98. package/dist/_commonjsHelpers-57e89916-af061c86.js +0 -19
  99. package/dist/add-circle-icon_22.entry-077661c3.cjs +0 -1
  100. package/dist/close-icon.entry-480c199d.js +0 -15
  101. package/dist/close-icon.entry-8015ca05.cjs +0 -1
  102. package/dist/document-refresh-icon.entry-06f7972b.cjs +0 -1
  103. package/dist/focus-visible-e8093c16-f380b705.cjs +0 -1
  104. package/dist/forward-icon_6.entry-eeecf2a2.cjs +0 -3
  105. package/dist/google-logo-icon_3.entry-2164cec1.js +0 -258
  106. package/dist/google-logo-icon_3.entry-b2b85284.cjs +0 -1
  107. package/dist/index-2b8437d6.cjs +0 -30
  108. package/dist/index-db0c5017.js +0 -1824
  109. package/dist/loading-icon.entry-6d8adaa4.js +0 -15
  110. package/dist/loading-icon.entry-dc40e97d.cjs +0 -1
  111. package/dist/mailbox-store-bb21512c-fc3c8c03.cjs +0 -1
  112. package/dist/nylas-additional-participants.entry-db05e510.cjs +0 -1
  113. package/dist/nylas-booked-event-card_10.entry-6b6fdfae.cjs +0 -1
  114. package/dist/nylas-form-card.entry-70b20571.cjs +0 -1
  115. package/dist/nylas-if-state.entry-ebeffe22.cjs +0 -1
  116. package/dist/nylas-list-folders.entry-191688f2.cjs +0 -1
  117. package/dist/nylas-list-threads.entry-44658578.cjs +0 -1
  118. package/dist/nylas-login.entry-db17a3d2.cjs +0 -1
  119. package/dist/nylas-mailbox-pagination.entry-9d3f5baa.cjs +0 -1
  120. package/dist/nylas-mailbox-toolbar-button.entry-6c0f7299.cjs +0 -1
  121. package/dist/nylas-mailbox.entry-d41401e0.cjs +0 -1
  122. package/dist/nylas-provider.entry-6173b721.cjs +0 -1
  123. package/dist/nylas-scheduler-editor.entry-0c75d39e.cjs +0 -7
  124. package/dist/nylas-scheduling.entry-081c8825.cjs +0 -1
  125. package/dist/nylas-threads-refresh.entry-c3509e6a.cjs +0 -1
  126. package/dist/nylas-threads-search.entry-16a59ef6.cjs +0 -1
  127. package/dist/nylas-view-thread.entry-27df3349.cjs +0 -1
  128. package/dist/play-icon_2.entry-f83fa92a.cjs +0 -1
  129. package/dist/register-component-dc659dc3-fb85ee68.cjs +0 -1
  130. package/dist/scheduler-config-store-51ee4f42-66f8c2ac.js +0 -14
  131. package/dist/scheduler-config-store-51ee4f42-d7d9c25d.cjs +0 -1
  132. package/dist/scheduler-store-72116723-ce4c7a69.cjs +0 -1
  133. package/dist/time-period-selector.entry-78d5b3c2.cjs +0 -1
  134. package/dist/utils-c00bdc3c-89ab163d.js +0 -2111
  135. package/dist/utils-c00bdc3c-94b9c3b6.cjs +0 -8
@@ -1,10 +1,8 @@
1
- import { r as _, c as u, h as n, H as h, g as k, F as y } from "./index-db0c5017.js";
2
- import { n as f, N as I } from "./index.es-2578c6a5-71441142.js";
3
- import { d as m } from "./utils-c00bdc3c-89ab163d.js";
4
- import { E as b, C, N as E } from "./scheduler-store-72116723-e5f87122.js";
1
+ import { r as _, c as u, d as m, h as n, H as h, g as k, F as y } from "./index-f9ba9aa8.js";
2
+ import { n as f, N as I } from "./index.es-f57e612a-1d17c676.js";
3
+ import { E as b, C, N as E } from "./scheduler-store-39d37291-4e8e9ff9.js";
5
4
  import "react";
6
5
  import "react-dom";
7
- import "./_commonjsHelpers-57e89916-af061c86.js";
8
6
  class D {
9
7
  constructor({ schedulerAPIURL: t, nylasSchedulerStore: s, sessionId: a, configId: i }) {
10
8
  if (!t)
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs"),g=require("./index.es-f57e612a-95ca3e17.cjs"),u=require("./scheduler-store-39d37291-b66c052c.cjs");require("react");require("react-dom");class v{constructor({schedulerAPIURL:n,nylasSchedulerStore:s,sessionId:a,configId:i}){if(!n)throw new Error("schedulerAPIURL is required");if(!s)throw new Error("nylasSchedulerStore is required");if(!a&&!i)throw new Error("sessionId is required for private configs, if not config id is required for public configs");n==="/"&&(n=new URL(window.location.href).origin),this.configId=i,this.sessionId=a,this.schedulerAPIURL=n,this.nylasSchedulerStore=s}init(){e.debug("NylasConnector init")}get schedulerStore(){return this.nylasSchedulerStore}get scheduler(){return this._schedulerAPIConnector?this._schedulerAPIConnector:(this._schedulerAPIConnector=new u.NylaSchedulerAPIConnector({schedulerAPIURL:this.schedulerAPIURL,schedulerStore:this.schedulerStore,sessionId:this.sessionId,configId:this.configId}),this._schedulerAPIConnector)}resetStores(){this.nylasSchedulerStore.reset()}}const h=(t,n)=>{const s=t.isLoading,a=t.showNotification,i=t.nylasBranding;return e.h(e.Fragment,null,a&&e.h("nylas-notification",null),s&&e.h("div",{class:"loading"},e.h("div",{class:"left"},e.h("div",{class:"skeleton"})),e.h("div",{class:"right"},e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}),e.h("div",{class:"skeleton"}))),!s&&n,e.h("div",{class:"footer"},i&&e.h(e.Fragment,null,"Powered by ",e.h("nylas-logo",null))))},f=(t,n)=>e.h("div",{class:"message-banner"},n),w=':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);--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;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin-top:1rem}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{padding:1rem 20px 0;gap:1rem;height:512px;min-width:384px;border-top-left-radius:inherit;background:var(--nylas-base-0)}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{padding:0.5rem 4px 0}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:1px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:512px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:496px}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer svg{fill:var(--nylas-base-500)}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}',x=w,b={title:"Something went wrong...",type:g.nr.Error,category:u.ErrorCategory.Component},m=class{constructor(t){e.registerInstance(this,t),this.init=e.createEvent(this,"init",7),this.schedulerWillLoad=e.createEvent(this,"schedulerWillLoad",7),this.schedulerDidLoad=e.createEvent(this,"schedulerDidLoad",7),this.nylasSchedulerError=e.createEvent(this,"nylasSchedulerError",7),this.mode="app",this.defaultSchedulerState=void 0,this.sessionId=void 0,this.schedulerApiUrl="https://api.us.nylas.com",this.bookingInfo=void 0,this.rescheduleBookingId=void 0,this.cancelBookingId=void 0,this.configurationId=void 0,this.nylasBranding=!0,this.eventOverrides={},this.isLoading=void 0,this.themeConfig=void 0,this.showNotification=!0,this.automaticComponentRegistration=!0,this.selectedDateLabel=new Date().toLocaleDateString(void 0,{dateStyle:"full"})||"No date selected"}connectedCallback(){e.debug("[nylas-scheduler] connectedCallback")}async componentWillLoad(){var s,a;if(e.debug("[nylas-scheduler] Component will load"),this.schedulerWillLoad.emit(this.host).defaultPrevented||!this.checkIfSessionIdOrConfigIdExists())return;this.stores={scheduler:u.CreateNylasSchedulerStore({bookingInfo:this.bookingInfo,nylasBranding:this.nylasBranding,...this.defaultSchedulerState})},this.baseProvider=new g.NylasBaseProvider(this.host,this.stores,this.automaticComponentRegistration,this.eventOverrides);const n=(s=this.baseProvider)==null?void 0:s.getStore("scheduler");if(this.nylasSchedulerConnector=new v({schedulerAPIURL:this.schedulerApiUrl,sessionId:this.sessionId,configId:this.configurationId,nylasSchedulerStore:n}),this.init.emit(this.host),(a=this.baseProvider)==null||a.componentWillLoad(this.nylasSchedulerConnector),this.themeConfig)for(const[i,o]of Object.entries(this.themeConfig))this.host.style.setProperty(`${i}`,o)}async componentDidLoad(){var o,p,c,r;if((o=this.baseProvider)==null||o.componentDidLoad(),!this.checkIfSessionIdOrConfigIdExists())return;const t=(p=this.baseProvider)==null?void 0:p.getStore("scheduler"),n=t==null?void 0:t.get("selectedTimeslot");if(n&&(n!=null&&n.start_time)){if(!this.isTimeslotValid(n))return;if(t!=null&&t.get("showBookingForm")){t==null||t.set("selectedDate",n.start_time);return}}const s=t==null?void 0:t.get("selectedDate"),a=t==null?void 0:t.get("availability");let i;if(!(a&&a.length>0)){if(!s)i=await((c=this.nylasSchedulerConnector)==null?void 0:c.scheduler.getAvailability());else{const d=new Date(s.getFullYear(),s.getMonth(),1).getTime()/1e3,l=new Date(s.getFullYear(),s.getMonth()+1,1).getTime()/1e3;i=await((r=this.nylasSchedulerConnector)==null?void 0:r.scheduler.getAvailability(d,l))}if((!i||"error"in i)&&this.nylasSchedulerError.emit({...this.getErrorObject(i==null?void 0:i.error)}),!s){let d=new Date;const l=t==null?void 0:t.get("availability").find(y=>new Date(y.start_time)>new Date);l&&(d=l.start_time),t==null||t.set("selectedDate",d)}}}componentDisconnected(){var t;(t=this.baseProvider)==null||t.componentDisconnected()}bookingInfoChanged(t){var n;(n=this.stores)==null||n.scheduler.set("bookingInfo",t)}async registerComponentHandler(t){var n;(n=this.baseProvider)==null||n.registerComponent(t.detail)}async unregisterComponentHandler(t){var n;(n=this.baseProvider)==null||n.unregisterComponent(t.detail)}async monthChangedHandler(t){var o;const n=t.detail,s=new Date(n.getFullYear(),n.getMonth(),1).getTime()/1e3,a=new Date(n.getFullYear(),n.getMonth()+1,1).getTime()/1e3,i=await((o=this.nylasSchedulerConnector)==null?void 0:o.scheduler.getAvailability(s,a));(!i||"error"in i)&&this.nylasSchedulerError.emit({...this.getErrorObject(i==null?void 0:i.error)})}async bookButtonClickedHandler(t){var s,a;if(this.rescheduleBookingId){const i=await((s=this.nylasSchedulerConnector)==null?void 0:s.scheduler.rescheduleBooking(this.rescheduleBookingId,t.detail));(!i||"error"in i)&&this.nylasSchedulerError.emit({...this.getErrorObject(i==null?void 0:i.error)});return}const n=await((a=this.nylasSchedulerConnector)==null?void 0:a.scheduler.bookTimeslot(t.detail));(!n||"error"in n)&&this.nylasSchedulerError.emit({...this.getErrorObject(n==null?void 0:n.error)})}dateSelectedHandler(t){const n=t.detail;this.selectedDateLabel=n?n.toLocaleDateString(void 0,{dateStyle:"full"}):"No date selected"}cancelBookedEventErrorHandler(t){this.nylasSchedulerError.emit({...this.getErrorObject(t.detail.error)})}rescheduleBookedEventErrorHandler(t){this.nylasSchedulerError.emit({...this.getErrorObject(t.detail.error)})}async getNylasSchedulerStore(){var t;return(t=this.baseProvider)==null?void 0:t.getStore("scheduler")}async getNylasSchedulerConnector(){return this.nylasSchedulerConnector}async getRef(){return this.host}getErrorObject(t){return{title:(t==null?void 0:t.title)||b.title,category:(t==null?void 0:t.category)||b.category,type:g.nr.Error,description:(t==null?void 0:t.message)||"",id:new Date().getTime().toString(),ttl:"none"}}checkIfSessionIdOrConfigIdExists(){return!this.sessionId&&!this.configurationId?(this.nylasSchedulerError.emit({title:"No sessionId!",category:u.ErrorCategory.Component,type:g.nr.Error,description:"Session ID is required",id:new Date().getTime().toString(),ttl:"none"}),!1):!0}isTimeslotValid(t){return new Date(t.start_time)<new Date?(this.nylasSchedulerError.emit({title:"Invalid tiemslot!",category:u.ErrorCategory.Component,type:g.nr.Error,description:"The selected timeslot is invalid.",id:new Date().getTime().toString(),ttl:"none"}),!1):!0}render(){var d;const t=this.mode==="app",n=(d=this.baseProvider)==null?void 0:d.getStore("scheduler"),s=n==null?void 0:n.get("eventInfo"),a=n==null?void 0:n.get("showBookingForm"),i=n==null?void 0:n.get("cancelledEventInfo"),o=(n==null?void 0:n.get("cancelBookingId"))||this.cancelBookingId,p=n==null?void 0:n.get("selectedTimeslot"),c=(n==null?void 0:n.get("rescheduleBookingId"))||this.rescheduleBookingId,r=(n==null?void 0:n.get("nylasBranding"))||this.nylasBranding;if(t&&o&&!i)return e.h(e.Host,null,e.h(h,{nylasBranding:r,isLoading:this.isLoading,showNotification:this.showNotification},e.h("div",{class:"cancel-flow-page",part:"cancel-flow-page"},e.h("nylas-cancel-booking-form",{cancelBookingId:o,exportparts:"ncbf, ncbf__input-textfield, ncbf__button-cta, ncbf__button-outline, ncbf__input-label"}))));if(t&&i)return e.h(e.Host,null,e.h(h,{nylasBranding:r,isLoading:this.isLoading,showNotification:this.showNotification},e.h("div",{class:"cancelled-event-page",part:"cancelled-event-page"},e.h("nylas-cancelled-event-card",{cancelledEventInfo:i,exportparts:"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card"}))));if(t&&s)return e.h(e.Host,null,e.h(h,{nylasBranding:r,isLoading:this.isLoading,showNotification:this.showNotification},e.h("div",{class:"booked-event-page",part:"booked-event-page"},e.h("nylas-booked-event-card",{selectedTimeslot:p,eventInfo:s,exportparts:"nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta"}))));if(t&&(!s||c)&&!a){const l=this.host.querySelector('[slot="timeslot-picker-cta-label"]');return e.h(e.Host,null,e.h(h,{nylasBranding:r,isLoading:this.isLoading,showNotification:this.showNotification},c&&e.h(f,null,"Choose another time slot to reschedule your meeting"),e.h("div",{class:"select-date-page",part:"select-date-page"},e.h("div",{class:"left-panel"},e.h("nylas-date-picker",{exportparts:"ndp, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--selected, ndp__date--current-day, ndp__date--current-month"}),e.h("div",{class:"border"}),e.h("nylas-locale-switch",null)),e.h("div",{class:"right-panel"},e.h("h2",null,e.h("calendar-icon",null),e.h("span",{id:"selectedDate"},this.selectedDateLabel)),e.h("nylas-timeslot-picker",{exportparts:"ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary"},l&&e.h("span",{slot:"timeslot-picker-cta-label"},e.h("slot",{name:"timeslot-picker-cta-label"})))))))}if(t&&!s&&a){const l=this.host.querySelector('[slot="custom-booking-form"]');return e.h(e.Host,null,e.h(h,{nylasBranding:r,isLoading:this.isLoading,showNotification:this.showNotification},c&&e.h(f,null,"Choose another time slot to reschedule your meeting"),e.h("div",{class:"additional-data-page",part:"additional-data-page"},e.h("div",{class:"left-panel"},e.h("div",{class:"wrapper"},e.h("nylas-selected-event-card",{exportparts:"nsec, nsec__card, nsec__icon, nsec__date, nsec__time"}))),e.h("div",{class:"right-panel"},e.h("nylas-booking-form",{exportparts:"nbf, nbf__input-label, nbf__input-textfield, nbf__button-ghost, nbf__button-primary, nbf__button-outline"},l&&e.h("div",{slot:"custom-booking-form"},e.h("slot",{name:"custom-booking-form"})))))))}return e.h(e.Host,null,e.h("slot",null))}get host(){return e.getElement(this)}static get watchers(){return{bookingInfo:["bookingInfoChanged"]}}};m.style=x;exports.nylas_scheduling=m;
@@ -1,18 +1,16 @@
1
- import { r as f, c as p, h as o, H as u } from "./index-db0c5017.js";
2
- import { R as m } from "./register-component-dc659dc3-e43e8fae.js";
3
- import { d as i } from "./utils-c00bdc3c-89ab163d.js";
1
+ import { r as f, c as p, d as i, h as o, H as u } from "./index-f9ba9aa8.js";
2
+ import { R as m } from "./register-component-cf5c8420-dc1bc0a4.js";
4
3
  import "react";
5
4
  import "react-dom";
6
- import "./_commonjsHelpers-57e89916-af061c86.js";
7
5
  const g = ":host{display:contents}.container{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.pull-to-refresh{display:none;border:0;background-color:transparent;text-align:center;width:100%;justify-content:center}.pulling{position:relative;display:flex;margin:0 auto;padding:1rem}.pulling svg{width:24px;height:24px;color:var(--nylas-color-primary-500);transform:rotate(90deg)}.refreshing{position:relative;display:flex;margin:0 auto;padding:1rem}.refreshing svg{width:24px;height:24px;fill:var(--nylas-color-primary-500);animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}", y = g;
8
- var v = function(t, e, s, r) {
9
- var a = arguments.length, n = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, s) : r, h;
6
+ var v = function(t, e, s, a) {
7
+ var r = arguments.length, n = r < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, s) : a, h;
10
8
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
11
- n = Reflect.decorate(t, e, s, r);
9
+ n = Reflect.decorate(t, e, s, a);
12
10
  else
13
11
  for (var l = t.length - 1; l >= 0; l--)
14
- (h = t[l]) && (n = (a < 3 ? h(n) : a > 3 ? h(e, s, n) : h(e, s)) || n);
15
- return a > 3 && n && Object.defineProperty(e, s, n), n;
12
+ (h = t[l]) && (n = (r < 3 ? h(n) : r > 3 ? h(e, s, n) : h(e, s)) || n);
13
+ return r > 3 && n && Object.defineProperty(e, s, n), n;
16
14
  }, c = function(t, e) {
17
15
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
18
16
  return Reflect.metadata(t, e);
@@ -20,8 +18,8 @@ var v = function(t, e, s, r) {
20
18
  const d = class {
21
19
  constructor(t) {
22
20
  f(this, t), this.refresh = p(this, "refresh", 7), this.threshold = 100, this.onTouchStart = (e) => {
23
- var s, r, a, n;
24
- i("[nylas-threads-refresh] Touch start", e.touches[0].pageY, (s = this.containerElement) == null ? void 0 : s.scrollTop, (r = this.containerElement) == null ? void 0 : r.offsetHeight, (a = this.contentElement) == null ? void 0 : a.scrollTop), ((n = this.containerElement) == null ? void 0 : n.scrollTop) === 0 ? this.start = e.touches[0].pageY : this.start = 0;
21
+ var s, a, r, n;
22
+ i("[nylas-threads-refresh] Touch start", e.touches[0].pageY, (s = this.containerElement) == null ? void 0 : s.scrollTop, (a = this.containerElement) == null ? void 0 : a.offsetHeight, (r = this.contentElement) == null ? void 0 : r.scrollTop), ((n = this.containerElement) == null ? void 0 : n.scrollTop) === 0 ? this.start = e.touches[0].pageY : this.start = 0;
25
23
  }, this.onTouchMove = (e) => {
26
24
  this.start && (e.touches[0].pageY - this.start > this.threshold ? this.pulling = !0 : this.pulling = !1);
27
25
  }, this.onTouchEnd = (e) => {
@@ -47,11 +45,11 @@ const d = class {
47
45
  this.state = t;
48
46
  }
49
47
  render() {
50
- return o(u, { key: "8b1c69762b81b03cbe942f980fd7c3f2c861a72e" }, o("div", { key: "f79595227147faeb6fe37c4928f0f9e715c7870c", class: "container", ref: (t) => this.containerElement = t }, o("button", { key: "e897c025006514ffff9a0c799b7716ec17c3febb", class: {
48
+ return o(u, { key: "cf0eeb18d6e54c1d36fc98b013f981578fee07cb" }, o("div", { key: "7b458de5822b3af0d67c40c162d824d9075af40f", class: "container", ref: (t) => this.containerElement = t }, o("button", { key: "f288a8ea8defae8cc043caa9a0ffac98783d1fd5", class: {
51
49
  "pull-to-refresh": !0,
52
50
  pulling: this.pulling,
53
51
  refreshing: this.state === "loading"
54
- }, "aria-label": "Refreshing..." }, this.state === "loading" && o("refresh-icon", { slot: "icon" }), this.state !== "loading" && o("arrow-icon", { slot: "icon" })), o("div", { key: "ba683ed78ab4c0a4131ec319abb4322de618e6d7", class: "content", ref: (t) => this.contentElement = t }, o("slot", { key: "3111550c7d75d3d610394ed0c8a64b5a520d092c" }))));
52
+ }, "aria-label": "Refreshing..." }, this.state === "loading" && o("refresh-icon", { slot: "icon" }), this.state !== "loading" && o("arrow-icon", { slot: "icon" })), o("div", { key: "1e72528fea83bb6ea40d4c9819ede03fd91ea07a", class: "content", ref: (t) => this.contentElement = t }, o("slot", { key: "17ba83dc61cf0bdbefb3f503d79582ab760ada50" }))));
55
53
  }
56
54
  };
57
55
  v([
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-22f7e49c.cjs"),d=require("./register-component-cf5c8420-d3fb6bf9.cjs");require("react");require("react-dom");const f=":host{display:contents}.container{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.pull-to-refresh{display:none;border:0;background-color:transparent;text-align:center;width:100%;justify-content:center}.pulling{position:relative;display:flex;margin:0 auto;padding:1rem}.pulling svg{width:24px;height:24px;color:var(--nylas-color-primary-500);transform:rotate(90deg)}.refreshing{position:relative;display:flex;margin:0 auto;padding:1rem}.refreshing svg{width:24px;height:24px;fill:var(--nylas-color-primary-500);animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",u=f;var p=function(t,e,n,a){var i=arguments.length,r=i<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,n):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,n,a);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(r=(i<3?o(r):i>3?o(e,n,r):o(e,n))||r);return i>3&&r&&Object.defineProperty(e,n,r),r},l=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const c=class{constructor(t){s.registerInstance(this,t),this.refresh=s.createEvent(this,"refresh",7),this.threshold=100,this.onTouchStart=e=>{var n,a,i,r;s.debug("[nylas-threads-refresh] Touch start",e.touches[0].pageY,(n=this.containerElement)==null?void 0:n.scrollTop,(a=this.containerElement)==null?void 0:a.offsetHeight,(i=this.contentElement)==null?void 0:i.scrollTop),((r=this.containerElement)==null?void 0:r.scrollTop)===0?this.start=e.touches[0].pageY:this.start=0},this.onTouchMove=e=>{this.start&&(e.touches[0].pageY-this.start>this.threshold?this.pulling=!0:this.pulling=!1)},this.onTouchEnd=e=>{this.start&&(e.changedTouches[0].pageY-this.start>this.threshold&&(this.pulling=!1,this.refresh.emit({updateState:this.updateState})),this.start=0)},this.start=0,this.state="ready",this.pulling=!1,s.debug("[nylas-threads-refresh] Constructor"),this.updateState=this.updateState.bind(this)}connectedCallback(){}async componentWillLoad(){s.debug("[nylas-threads-refresh] Component will load")}componentDidLoad(){var t,e,n;s.debug("[nylas-threads-refresh] Component did load"),(t=this.containerElement)==null||t.addEventListener("touchstart",this.onTouchStart),(e=this.containerElement)==null||e.addEventListener("touchmove",this.onTouchMove),(n=this.containerElement)==null||n.addEventListener("touchend",this.onTouchEnd)}disconnectedCallback(){var t,e,n;s.debug("[nylas-threads-refresh] Component disconnected"),(t=this.containerElement)==null||t.removeEventListener("touchstart",this.onTouchStart),(e=this.containerElement)==null||e.removeEventListener("touchmove",this.onTouchMove),(n=this.containerElement)==null||n.removeEventListener("touchend",this.onTouchEnd)}async updateState(t){this.state=t}render(){return s.h(s.Host,{key:"cf0eeb18d6e54c1d36fc98b013f981578fee07cb"},s.h("div",{key:"7b458de5822b3af0d67c40c162d824d9075af40f",class:"container",ref:t=>this.containerElement=t},s.h("button",{key:"f288a8ea8defae8cc043caa9a0ffac98783d1fd5",class:{"pull-to-refresh":!0,pulling:this.pulling,refreshing:this.state==="loading"},"aria-label":"Refreshing..."},this.state==="loading"&&s.h("refresh-icon",{slot:"icon"}),this.state!=="loading"&&s.h("arrow-icon",{slot:"icon"})),s.h("div",{key:"1e72528fea83bb6ea40d4c9819ede03fd91ea07a",class:"content",ref:t=>this.contentElement=t},s.h("slot",{key:"17ba83dc61cf0bdbefb3f503d79582ab760ada50"}))))}};p([d.RegisterComponent({name:"nylas-threads-refresh",eventToProps:{refresh:async(t,e)=>{s.debug("[nylas-threads-refresh] Refreshing threads");const{updateState:n}=t.detail;await n("loading"),await e.threads.getThreads(void 0,"overwrite",!1),await n("ready")}},fireRegisterEvent:!0}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],c.prototype,"render",null);c.style=u;exports.nylas_threads_refresh=c;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-22f7e49c.cjs"),h=require("./register-component-cf5c8420-d3fb6bf9.cjs");require("react");require("react-dom");const u=":host{display:block}sp-search{width:100%;border:0}",y=u;var f=function(t,e,s,n){var o=arguments.length,r=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,s):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,s,n);else for(var i=t.length-1;i>=0;i--)(c=t[i])&&(r=(o<3?c(r):o>3?c(e,s,r):c(e,s))||r);return o>3&&r&&Object.defineProperty(e,s,r),r},d=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const l=class{constructor(t){a.registerInstance(this,t),this.search=a.createEvent(this,"search",7),this.onSearch=async e=>{e.preventDefault(),e.stopPropagation();const n=e.target.value;n!==this.internalQuery&&(this.internalQuery=n,this.search.emit(this.internalQuery))},this.query="",this.internalQuery=""}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){a.debug("[nylas-threads-search] Component will load")}async componentDidLoad(){a.debug("[nylas-threads-search] Component did load")}onQueryChange(){this.internalQuery=this.query}render(){return a.h(a.Host,{key:"b8f5ab7d60d06cb54da56d0362f8590d71646dca"},a.h("sp-theme",{key:"3d90db95bcbfee7eed4187caa97c76fb7727f58b",scale:"medium",color:"dark"},a.h("sp-search",{key:"d47bd5ee54845a0889f742b8ab76bb56b74fb147",quiet:!0,onSubmit:this.onSearch,onBlur:this.onSearch,value:this.internalQuery})))}static get watchers(){return{query:["onQueryChange"]}}};f([h.RegisterComponent({name:"nylas-pagination",stateToProps:new Map([["mailbox.searchQuery","query"]]),eventToProps:{search:async(t,e)=>{await e.threads.getThreads({search_query_native:t.detail||void 0,page_token:void 0})}},fireRegisterEvent:!0}),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],l.prototype,"render",null);l.style=y;exports.nylas_threads_search=l;
@@ -1,25 +1,23 @@
1
- import { r as u, c as p, h as i, H as y } from "./index-db0c5017.js";
2
- import { R as f } from "./register-component-dc659dc3-e43e8fae.js";
3
- import { d as h } from "./utils-c00bdc3c-89ab163d.js";
1
+ import { r as u, c as y, d as l, h as i, H as p } from "./index-f9ba9aa8.js";
2
+ import { R as f } from "./register-component-cf5c8420-dc1bc0a4.js";
4
3
  import "react";
5
4
  import "react-dom";
6
- import "./_commonjsHelpers-57e89916-af061c86.js";
7
- const m = ":host{display:block}sp-search{width:100%;border:0}", b = m;
5
+ const b = ":host{display:block}sp-search{width:100%;border:0}", m = b;
8
6
  var g = function(t, e, n, r) {
9
- var s = arguments.length, a = s < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, c;
7
+ var s = arguments.length, a = s < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, n) : r, o;
10
8
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
11
9
  a = Reflect.decorate(t, e, n, r);
12
10
  else
13
- for (var o = t.length - 1; o >= 0; o--)
14
- (c = t[o]) && (a = (s < 3 ? c(a) : s > 3 ? c(e, n, a) : c(e, n)) || a);
11
+ for (var c = t.length - 1; c >= 0; c--)
12
+ (o = t[c]) && (a = (s < 3 ? o(a) : s > 3 ? o(e, n, a) : o(e, n)) || a);
15
13
  return s > 3 && a && Object.defineProperty(e, n, a), a;
16
- }, l = function(t, e) {
14
+ }, d = function(t, e) {
17
15
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
18
16
  return Reflect.metadata(t, e);
19
17
  };
20
- const d = class {
18
+ const h = class {
21
19
  constructor(t) {
22
- u(this, t), this.search = p(this, "search", 7), this.onSearch = async (e) => {
20
+ u(this, t), this.search = y(this, "search", 7), this.onSearch = async (e) => {
23
21
  e.preventDefault(), e.stopPropagation();
24
22
  const r = e.target.value;
25
23
  r !== this.internalQuery && (this.internalQuery = r, this.search.emit(this.internalQuery));
@@ -30,16 +28,16 @@ const d = class {
30
28
  disconnectedCallback() {
31
29
  }
32
30
  async componentWillLoad() {
33
- h("[nylas-threads-search] Component will load");
31
+ l("[nylas-threads-search] Component will load");
34
32
  }
35
33
  async componentDidLoad() {
36
- h("[nylas-threads-search] Component did load");
34
+ l("[nylas-threads-search] Component did load");
37
35
  }
38
36
  onQueryChange() {
39
37
  this.internalQuery = this.query;
40
38
  }
41
39
  render() {
42
- return i(y, { key: "4273fc9982039d507cadbc07c36b1eb67fa1c087" }, i("sp-theme", { key: "a78cf6506d82e5cfd91ecbacccb1580be3693c89", scale: "medium", color: "dark" }, i("sp-search", { key: "1ca66aa0b045344ab4fdf003681923a389980c29", quiet: !0, onSubmit: this.onSearch, onBlur: this.onSearch, value: this.internalQuery })));
40
+ return i(p, { key: "b8f5ab7d60d06cb54da56d0362f8590d71646dca" }, i("sp-theme", { key: "3d90db95bcbfee7eed4187caa97c76fb7727f58b", scale: "medium", color: "dark" }, i("sp-search", { key: "d47bd5ee54845a0889f742b8ab76bb56b74fb147", quiet: !0, onSubmit: this.onSearch, onBlur: this.onSearch, value: this.internalQuery })));
43
41
  }
44
42
  static get watchers() {
45
43
  return {
@@ -61,11 +59,11 @@ g([
61
59
  },
62
60
  fireRegisterEvent: !0
63
61
  }),
64
- l("design:type", Function),
65
- l("design:paramtypes", []),
66
- l("design:returntype", void 0)
67
- ], d.prototype, "render", null);
68
- d.style = b;
62
+ d("design:type", Function),
63
+ d("design:paramtypes", []),
64
+ d("design:returntype", void 0)
65
+ ], h.prototype, "render", null);
66
+ h.style = m;
69
67
  export {
70
- d as nylas_threads_search
68
+ h as nylas_threads_search
71
69
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs"),w=require("./register-component-cf5c8420-d3fb6bf9.cjs");require("react");require("react-dom");function f(t,a,s,o,r){if(!o||!s||s.children.length>0)return;e.debug("[nylas-view-thread] Rendering email",{message:t,attachments:a,viewEmailElement:o});const n=o.cloneNode(!0);n.message=t.data,n.parent=r,s.appendChild(n)}const c=({viewEmailElement:t,message:a,attachments:s,onMessageClick:o,onShowContactDataClick:r,parent:n})=>{var l,i,d,g,u,v,y;return e.h(e.Fragment,null,e.h("div",{key:a.id,class:"message"},e.h("div",{class:"sub-header","data-id":a.data.id,onClick:o},e.h("div",{class:"avatar"},a.data.from&&((l=a.data.from[0])==null?void 0:l.name)&&((d=(i=a.data.from[0])==null?void 0:i.name[0])==null?void 0:d.toUpperCase())),e.h("div",{class:"from"},e.h("span",{class:"name"},a.data.from&&((g=a.data.from[0])==null?void 0:g.name))," ",e.h("span",{class:"email"},a.data.from&&((u=a.data.from[0])==null?void 0:u.email))),e.h("div",{class:"date"},new Date(a.data.date*1e3).toLocaleTimeString(void 0,{timeStyle:"short"})," ","(",e.formatTimeAgo(new Date(a.data.date*1e3)),")"),e.h("sp-button-group",{class:"buttons"},e.h("nylas-summarize-message-button",{message:a.data})),a.collapse&&e.h("div",{class:"snippet"},a.data.snippet),!a.collapse&&a.data.to&&e.h("div",{class:"to"},e.h("span",null,"to")," ",e.formatParticipants(a.data.to)," ",e.h("button",{type:"button",value:a.data.id,onClick:r,class:{expand:!0,"expand--showContactData":a.showContactData}},e.h("chevron-icon",null)))),a.showContactData&&e.h("div",{class:"address-info"},e.h("div",{class:"label"},"From"),e.h("div",{class:"value"},e.formatRecipient((v=a.data)!=null&&v.from?(y=a==null?void 0:a.data)==null?void 0:y.from[0]:{name:"",email:""})),a.data.to&&e.h(e.Fragment,null,e.h("div",{class:"label"},"To"),e.h("div",{class:"value"},a.data.to.map(h=>e.h("div",null,e.formatRecipient(h))))),typeof a.data.cc<"u"&&a.data.cc.length>0&&e.h(e.Fragment,null,e.h("div",{class:"label"},"CC"),e.h("div",{class:"value"},a.data.cc.map(h=>e.h("div",null,e.formatRecipient(h)))))),!a.collapse&&t&&e.h("div",{key:a.id,ref:h=>f(a,s,h,t,n)}),!a.collapse&&!t&&e.h("nylas-view-email",{key:a.id,message:a.data,parent:n})),e.h("hr",null))},b=':host{display:block;font-size:inherit}.avatar{z-index:1;border-radius:100%;background-color:var(--nylas-color-primary-200);height:40px;width:40px;align-items:center;display:flex;justify-content:center;border:1px solid var(--nylas-color-primary-200)}.view-thread{display:grid;grid-auto-flow:row;width:100%}.view-thread .header{display:grid;grid-gap:1rem;align-items:center;margin-bottom:1rem}.view-thread .header .subject{font-size:1.25rem;font-weight:600;line-height:1.5rem}.view-thread .header .folders{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;overflow-x:auto;gap:1rem}.view-thread .header .folders .folder{padding:0 0.5rem;font-size:0.9rem;color:var(--nylas-color-primary-900);background-color:var(--nylas-color-primary-300)}.view-thread .messages{display:grid;gap:1rem}.view-thread .messages hr{margin:0;width:100%;border:1px solid var(--nylas-color-primary-200)}.view-thread .messages hr:last-of-type{display:none}.view-thread .messages .message{display:grid;grid-auto-flow:row;gap:1rem}.view-thread .messages .message:last-of-type .sub-header{cursor:default}.view-thread .messages .message .sub-header{display:grid;grid-template:"avatar from date buttons" "avatar to to buttons";grid-column-gap:1rem;grid-template-columns:auto 1fr auto auto;cursor:pointer}.view-thread .messages .message .sub-header>*{pointer-events:none}.view-thread .messages .message .sub-header .avatar{grid-area:avatar}.view-thread .messages .message .sub-header .from{grid-area:from}.view-thread .messages .message .sub-header .from span.email{display:none;color:var(--nylas-color-primary-400);font-weight:600}.view-thread .messages .message .sub-header .buttons{grid-area:buttons;align-self:center}.view-thread .messages .message .sub-header .buttons *{pointer-events:all}.view-thread .messages .message .sub-header .date{grid-area:date;align-self:center;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .snippet{width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--nylas-color-primary-600)}.view-thread .messages .message .sub-header .to{grid-area:to;color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to>span{color:var(--nylas-color-primary-400)}.view-thread .messages .message .sub-header .to button{border:0;background-color:transparent;cursor:pointer;pointer-events:all;padding:0;margin:0}.view-thread .messages .message .sub-header .to button>*{pointer-events:none}.view-thread .messages .message .sub-header .to button chevron-icon{display:inline-table;fill:var(--nylas-color-primary-400);width:15px;height:15px;vertical-align:middle}.view-thread .messages .message .sub-header .to button chevron-icon svg{width:15px;height:15px;transform:rotate(90deg)}.view-thread .messages .message .sub-header .to button.expand--showContactData chevron-icon svg{transform:rotate(270deg)}.view-thread .messages .message .address-info{display:grid;column-gap:1rem;row-gap:0.5rem;grid-template-columns:auto 1fr;grid-template-rows:1fr;padding:1rem 2rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-color-primary-200);align-items:flex-start;color:var(--nylas-color-primary-600)}.view-thread .messages .message .address-info .label{color:var(--nylas-color-primary-400);font-weight:600}.show-more{position:relative;display:flex;width:100%}.show-more .sr-only{display:none}.show-more button{position:relative;display:inline-flex;width:100%;padding:0;border:0;background-color:transparent;cursor:pointer;text-align:left;overflow:hidden}.show-more button span{border:1px solid var(--nylas-color-primary-400)}.show-more button:hover span{background-color:var(--nylas-color-primary-700)}.show-more button::after{border-top:1px solid rgba(100, 121, 143, 0.122);border-bottom:1px solid rgba(100, 121, 143, 0.122);content:"";height:4px;width:100%;position:absolute;top:50%}.loading{position:absolute;width:100%;height:100%;background-color:var(--loading__background-color);top:0;bottom:0;left:0;z-index:1;display:grid;justify-content:center;align-items:center;font-weight:600;overflow:hidden}.reply-buttons{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;gap:1rem;margin-top:1rem}.reply-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)}.reply-buttons sp-button:hover{background-color:var(--nylas-color-primary-500)}.reply-buttons sp-button:disabled{background-color:var(--nylas-color-primary-200);color:var(--nylas-color-primary-600);cursor:not-allowed}.reply-buttons sp-button chevron-icon{display:inline-block}@media only screen and (min-width: 768px){.view-thread .messages .message .sub-header .from span.email{display:inline}}',C=b;var k=function(t,a,s,o){var r=arguments.length,n=r<3?a:o===null?o=Object.getOwnPropertyDescriptor(a,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,a,s,o);else for(var i=t.length-1;i>=0;i--)(l=t[i])&&(n=(r<3?l(n):r>3?l(a,s,n):l(a,s))||n);return r>3&&n&&Object.defineProperty(a,s,n),n},m=function(t,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,a)};const p=class{constructor(t){e.registerInstance(this,t),this.threadSelected=e.createEvent(this,"threadSelected",7),this.showContactDataClicked=e.createEvent(this,"showContactDataClicked",7),this.messageClicked=e.createEvent(this,"messageClicked",7),this.nylasViewEmailElement=null,this.nylasComposerElement=null,this.onShowContactDataClick=a=>{a.stopPropagation();const o=a.target.value,r=this.internalMessages.find(l=>l.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.showContactDataClicked.emit(r.data).defaultPrevented||(r.showContactData=!r.showContactData,this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] show contact data clicked ${o} ${r.showContactData?"collapsed":"expanded"}`)},this.onMessageClick=a=>{var l;const o=a.target.dataset.id,r=this.internalMessages.find(i=>i.data.id===o);if(!r){e.debug(`[nylas-view-thread] Could not find message ${o}`);return}this.messageClicked.emit(r.data).defaultPrevented||(r.id!==((l=this.internalMessages[this.internalMessages.length-1])==null?void 0:l.id)&&(r.collapse=!r.collapse,r.collapse&&(r.showContactData=!1)),this.internalMessages=[...this.internalMessages]),e.debug(`[nylas-view-thread] message clicked ${o} ${r.collapse?"collapsed":"expanded"}`)},this.onShowAllEmailsClick=()=>{this.showAllEmails=!this.showAllEmails},this.showComposerClick=()=>{this.showComposer=!this.showComposer},this.draft=void 0,this.thread=void 0,this.messages=[],this.attachments=[],this.state="loading",this.internalMessages=[],this.showAllEmails=!1,this.showComposer=!1}connectedCallback(){}disconnectedCallback(){}async componentWillLoad(){e.debug("[nylas-view-thread] Component will load"),this.updateInternalMessages(this.messages);const t=this.host.querySelector("template.nylas-view-email");if(!t){e.debug("[nylas-view-thread] Could not find template");return}const a=document.importNode(t.content,!0);this.nylasViewEmailElement=a.querySelector("nylas-view-email");const s=this.host.querySelector("template.nylas-composer");if(!s){e.debug("[nylas-view-thread] Could not find composer template");return}const o=document.importNode(s.content,!0);this.nylasComposerElement=o.querySelector("nylas-composer")}async componentDidLoad(){e.debug("[nylas-view-thread] Component did load")}async threadChanged(t){e.debug("[nylas-view-thread] Thread changed",{thread:t}),this.internalMessages=[],this.threadSelected.emit(t).defaultPrevented||e.debug("[nylas-view-thread] Default event not prevented, initializing")}updateInternalMessages(t){e.debug("[nylas-view-thread] Updating internal messages",{messages:t});const a=t.sort((s,o)=>s.date>o.date?1:-1).map((s,o)=>({id:s.id,data:s,collapse:o!==t.length-1,showContactData:!1}));this.internalMessages=a}render(){var r,n,l;const t=this.internalMessages.length>2?this.internalMessages[0]:null,a=this.internalMessages.slice(this.internalMessages.length-2,this.internalMessages.length),s=this.internalMessages.slice(1,this.internalMessages.length-2),o=this.internalMessages[this.internalMessages.length-1];return e.h(e.Host,{key:"b9bcde80e7ee15061bfc217d99bb9422dfbe1d04"},e.h("sp-theme",{key:"965e53796323e3e13983447abb4ac1b3a8651daa",scale:"medium",color:"dark"},e.h("div",{key:"9efc644121efd09a2e837c23f9f8da80589f870b",class:"view-thread"},e.h("div",{key:"c1479929b6679a1b47f03dfe6d5cc1128484b703",class:"header"},e.h("div",{key:"00c6788a461f9f6ca4532fb2acb2bf08e0f0c118",class:"subject"},(r=this.thread)==null?void 0:r.subject),e.h("div",{key:"2e114754a9dd830e4a124cd9079ad4cf725908bd",class:"folders"},(l=(n=this.thread)==null?void 0:n.folders)==null?void 0:l.map(i=>e.h("sp-tag",{size:"s"},e.toTitleCase(i.replace("CATEGORY_","").replace("_"," ")))))),e.h("div",{key:"136d6a314c647991218dfe4090fa97c8d98b210d",class:"messages"},t&&e.h(c,{message:t,attachments:this.attachments.filter(i=>i.messageId===t.id),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}),s.length>0&&this.messages.length>1&&!this.showAllEmails&&a.length>0&&e.h(e.Fragment,null,e.h("div",{class:"show-more"},e.h("button",{type:"button",onClick:this.onShowAllEmailsClick},e.h("span",{class:"avatar"},s.length)," ",e.h("span",{class:"sr-only"},"Show ",s.length," more emails"))),e.h("hr",null)),s.length>0&&this.showAllEmails&&this.messages.length>2&&s.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement})),a.length>0&&a.map(i=>e.h(c,{message:i,attachments:this.attachments.filter(d=>d.messageId===(t==null?void 0:t.id)),onMessageClick:this.onMessageClick,onShowContactDataClick:this.onShowContactDataClick,parent:this.host,viewEmailElement:this.nylasViewEmailElement,composerElement:this.nylasComposerElement}))),!(this.showComposer&&o)&&e.h("div",{class:"reply-buttons"},e.h("sp-button",{variant:"cta",type:"button",onClick:this.showComposerClick},e.h("span",{slot:"icon"},e.h("reply-icon",null)),e.h("span",null,"Reply")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("reply-all-icon",null)),e.h("span",null,"Reply All")),e.h("sp-button",{variant:"cta",type:"button"},e.h("span",{slot:"icon"},e.h("forward-icon",null)),e.h("span",null,"Forward"))),this.showComposer&&o&&e.h("div",{class:"composer"},e.h("nylas-composer",{message:o.data,onClose:this.showComposerClick,onSend:i=>{e.debug("[nylas-view-thread] Send event",{message:i.detail.message,replyBody:i.detail.replyBody})}})))))}get host(){return e.getElement(this)}static get watchers(){return{thread:["threadChanged"],messages:["updateInternalMessages"]}}};k([w.RegisterComponent({name:"nylas-view-thread",stateToProps:new Map([["mailbox.selectedThread","thread"],["mailbox.messages","messages"],["mailbox.state","state"]]),eventToProps:{threadSelected:async(t,a)=>{e.debug("[nylas-view-thread] Nylas init event. Fetching thread messages.",{event:t});const s=t.detail;s&&s.id&&await a.messages.getThreadMessages(s.id)}},fireRegisterEvent:!0}),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],p.prototype,"render",null);p.style=C;exports.nylas_view_thread=p;
@@ -1,9 +1,7 @@
1
- import { r as k, c as p, h as a, F as m, H as M, g as x } from "./index-db0c5017.js";
2
- import { R as E } from "./register-component-dc659dc3-e43e8fae.js";
3
- import { d, t as D, e as S, a as T, g } from "./utils-c00bdc3c-89ab163d.js";
1
+ import { r as k, c as p, d, h as a, t as M, F as m, H as x, g as E, l as D, a as S, m as g } from "./index-f9ba9aa8.js";
2
+ import { R as T } from "./register-component-cf5c8420-dc1bc0a4.js";
4
3
  import "react";
5
4
  import "react-dom";
6
- import "./_commonjsHelpers-57e89916-af061c86.js";
7
5
  function R(t, e, s, o, r) {
8
6
  if (!o || !s || s.children.length > 0)
9
7
  return;
@@ -38,7 +36,7 @@ const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o,
38
36
  }),
39
37
  " ",
40
38
  "(",
41
- S(new Date(e.data.date * 1e3)),
39
+ D(new Date(e.data.date * 1e3)),
42
40
  ")"
43
41
  ),
44
42
  a(
@@ -52,7 +50,7 @@ const u = ({ viewEmailElement: t, message: e, attachments: s, onMessageClick: o,
52
50
  { class: "to" },
53
51
  a("span", null, "to"),
54
52
  " ",
55
- T(e.data.to),
53
+ S(e.data.to),
56
54
  " ",
57
55
  a(
58
56
  "button",
@@ -164,12 +162,12 @@ const C = class {
164
162
  render() {
165
163
  var r, n, l;
166
164
  const t = this.internalMessages.length > 2 ? this.internalMessages[0] : null, e = this.internalMessages.slice(this.internalMessages.length - 2, this.internalMessages.length), s = this.internalMessages.slice(1, this.internalMessages.length - 2), o = this.internalMessages[this.internalMessages.length - 1];
167
- return a(M, { key: "836293c4ebe84588af8bc245f79ef45548d99d64" }, a("sp-theme", { key: "7d66ec6cb6d487a0f454ee27d81c20e41e5f7649", scale: "medium", color: "dark" }, a("div", { key: "d70c54528874a783aa31c8c16aa2023d08a14da1", class: "view-thread" }, a("div", { key: "d1de0e04665f48d83fa2e913f9c48beea42e2149", class: "header" }, a("div", { key: "a08529d41372857db86f3abfaed8a2d5f7898392", class: "subject" }, (r = this.thread) == null ? void 0 : r.subject), a("div", { key: "e26cddf45f1ff869837184f136ce44225911aca9", class: "folders" }, (l = (n = this.thread) == null ? void 0 : n.folders) == null ? void 0 : l.map((i) => a("sp-tag", { size: "s" }, D(i.replace("CATEGORY_", "").replace("_", " ")))))), a("div", { key: "03d81b5879b0003b991f1b34f78961358008324c", class: "messages" }, t && a(u, { message: t, attachments: this.attachments.filter((i) => i.messageId === t.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }), s.length > 0 && this.messages.length > 1 && !this.showAllEmails && e.length > 0 && a(m, null, a("div", { class: "show-more" }, a("button", { type: "button", onClick: this.onShowAllEmailsClick }, a("span", { class: "avatar" }, s.length), " ", a("span", { class: "sr-only" }, "Show ", s.length, " more emails"))), a("hr", null)), s.length > 0 && this.showAllEmails && this.messages.length > 2 && s.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), e.length > 0 && e.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }))), !(this.showComposer && o) && a("div", { class: "reply-buttons" }, a("sp-button", { variant: "cta", type: "button", onClick: this.showComposerClick }, a("span", { slot: "icon" }, a("reply-icon", null)), a("span", null, "Reply")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("reply-all-icon", null)), a("span", null, "Reply All")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("forward-icon", null)), a("span", null, "Forward"))), this.showComposer && o && a("div", { class: "composer" }, a("nylas-composer", { message: o.data, onClose: this.showComposerClick, onSend: (i) => {
165
+ return a(x, { key: "b9bcde80e7ee15061bfc217d99bb9422dfbe1d04" }, a("sp-theme", { key: "965e53796323e3e13983447abb4ac1b3a8651daa", scale: "medium", color: "dark" }, a("div", { key: "9efc644121efd09a2e837c23f9f8da80589f870b", class: "view-thread" }, a("div", { key: "c1479929b6679a1b47f03dfe6d5cc1128484b703", class: "header" }, a("div", { key: "00c6788a461f9f6ca4532fb2acb2bf08e0f0c118", class: "subject" }, (r = this.thread) == null ? void 0 : r.subject), a("div", { key: "2e114754a9dd830e4a124cd9079ad4cf725908bd", class: "folders" }, (l = (n = this.thread) == null ? void 0 : n.folders) == null ? void 0 : l.map((i) => a("sp-tag", { size: "s" }, M(i.replace("CATEGORY_", "").replace("_", " ")))))), a("div", { key: "136d6a314c647991218dfe4090fa97c8d98b210d", class: "messages" }, t && a(u, { message: t, attachments: this.attachments.filter((i) => i.messageId === t.id), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }), s.length > 0 && this.messages.length > 1 && !this.showAllEmails && e.length > 0 && a(m, null, a("div", { class: "show-more" }, a("button", { type: "button", onClick: this.onShowAllEmailsClick }, a("span", { class: "avatar" }, s.length), " ", a("span", { class: "sr-only" }, "Show ", s.length, " more emails"))), a("hr", null)), s.length > 0 && this.showAllEmails && this.messages.length > 2 && s.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement })), e.length > 0 && e.map((i) => a(u, { message: i, attachments: this.attachments.filter((c) => c.messageId === (t == null ? void 0 : t.id)), onMessageClick: this.onMessageClick, onShowContactDataClick: this.onShowContactDataClick, parent: this.host, viewEmailElement: this.nylasViewEmailElement, composerElement: this.nylasComposerElement }))), !(this.showComposer && o) && a("div", { class: "reply-buttons" }, a("sp-button", { variant: "cta", type: "button", onClick: this.showComposerClick }, a("span", { slot: "icon" }, a("reply-icon", null)), a("span", null, "Reply")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("reply-all-icon", null)), a("span", null, "Reply All")), a("sp-button", { variant: "cta", type: "button" }, a("span", { slot: "icon" }, a("forward-icon", null)), a("span", null, "Forward"))), this.showComposer && o && a("div", { class: "composer" }, a("nylas-composer", { message: o.data, onClose: this.showComposerClick, onSend: (i) => {
168
166
  d("[nylas-view-thread] Send event", { message: i.detail.message, replyBody: i.detail.replyBody });
169
167
  } })))));
170
168
  }
171
169
  get host() {
172
- return x(this);
170
+ return E(this);
173
171
  }
174
172
  static get watchers() {
175
173
  return {
@@ -179,7 +177,7 @@ const C = class {
179
177
  }
180
178
  };
181
179
  _([
182
- E({
180
+ T({
183
181
  name: "nylas-view-thread",
184
182
  stateToProps: /* @__PURE__ */ new Map([
185
183
  ["mailbox.selectedThread", "thread"],
@@ -1,15 +1,15 @@
1
- import { r as c, h as e } from "./index-db0c5017.js";
1
+ import { r as o, h as t } from "./index-f9ba9aa8.js";
2
2
  import "react";
3
3
  import "react-dom";
4
- const o = ".sc-people-icon-h{display:flex}", a = o, s = class {
5
- constructor(t) {
6
- c(this, t), this.width = "20", this.height = "20";
4
+ const s = ".sc-people-icon-h{display:flex}", c = s, i = class {
5
+ constructor(e) {
6
+ o(this, e), this.width = "20", this.height = "20";
7
7
  }
8
8
  render() {
9
- return e("svg", { key: "00108ba21c80adfe31cfbce75757d8c6561d71b7", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, e("path", { key: "6115accba66032e9d36cfca8e718901baec57223", fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" }));
9
+ return t("svg", { key: "71268d67f58cdb39336d681273a014d7f8f4515b", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, t("path", { key: "9053922b8ccf20104a29fc6640f6f2a6c7fffbf6", fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" }));
10
10
  }
11
11
  };
12
- s.style = a;
12
+ i.style = c;
13
13
  export {
14
- s as people_icon
14
+ i as people_icon
15
15
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const i=".sc-people-icon-h{display:flex}",o=i,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"00108ba21c80adfe31cfbce75757d8c6561d71b7",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"6115accba66032e9d36cfca8e718901baec57223",fill:"currentColor",d:"M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}};t.style=o;exports.people_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const c=".sc-people-icon-h{display:flex}",o=c,t=class{constructor(i){e.registerInstance(this,i),this.width="20",this.height="20"}render(){return e.h("svg",{key:"71268d67f58cdb39336d681273a014d7f8f4515b",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"9053922b8ccf20104a29fc6640f6f2a6c7fffbf6",fill:"currentColor",d:"M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}};t.style=o;exports.people_icon=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-22f7e49c.cjs");require("react");require("react-dom");const o=".sc-play-icon-h{display:flex}",n=o,s=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"158d7ff5602edfbc5504f726ba391828ed3fcc0a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"2a4e305d65f7f71dc7bb8227a97fd990ebfd3095",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};s.style=n;const h=".sc-stop-icon-h{display:flex}",r=h,i=class{constructor(e){t.registerInstance(this,e),this.width="15",this.height="15"}render(){return t.h("svg",{key:"29ab924a173c55e12e79b0e616c0564d18116302",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"7b83a1444fef0003787c7f556d5805c9a8f3924d",d:"M4 4H20V20H4V4Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};i.style=r;exports.play_icon=s;exports.stop_icon=i;
@@ -1,4 +1,4 @@
1
- import { r as o, h as t } from "./index-db0c5017.js";
1
+ import { r as o, h as t } from "./index-f9ba9aa8.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const e = ".sc-play-icon-h{display:flex}", i = e, h = class {
@@ -6,19 +6,19 @@ const e = ".sc-play-icon-h{display:flex}", i = e, h = class {
6
6
  o(this, s), this.width = "15", this.height = "15";
7
7
  }
8
8
  render() {
9
- return t("svg", { key: "c68beab7911b331b95fb99e6b0790f909dbc4420", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "41b155cbaa2b3a1a3d834940d023e9530ef28112", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
9
+ return t("svg", { key: "158d7ff5602edfbc5504f726ba391828ed3fcc0a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "2a4e305d65f7f71dc7bb8227a97fd990ebfd3095", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
10
  }
11
11
  };
12
12
  h.style = i;
13
- const c = ".sc-stop-icon-h{display:flex}", n = c, r = class {
13
+ const n = ".sc-stop-icon-h{display:flex}", c = n, r = class {
14
14
  constructor(s) {
15
15
  o(this, s), this.width = "15", this.height = "15";
16
16
  }
17
17
  render() {
18
- return t("svg", { key: "b39e317c3d3a25ed955ef96918cb986264487f42", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "cec2514adff36410b8f035e6d0439ff58c7bf5cf", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
18
+ return t("svg", { key: "29ab924a173c55e12e79b0e616c0564d18116302", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "7b83a1444fef0003787c7f556d5805c9a8f3924d", d: "M4 4H20V20H4V4Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
19
19
  }
20
20
  };
21
- r.style = n;
21
+ r.style = c;
22
22
  export {
23
23
  h as play_icon,
24
24
  r as stop_icon
package/dist/react.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-2b8437d6.cjs");require("react");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.ChevronIcon=o.ChevronIcon;exports.CloseIcon=o.CloseIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasComposer=o.NylasComposer;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListFolders=o.NylasListFolders;exports.NylasListThreads=o.NylasListThreads;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLocationComponent=o.NylasLocationComponent;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMailbox=o.NylasMailbox;exports.NylasMailboxPagination=o.NylasMailboxPagination;exports.NylasMailboxToolbarButton=o.NylasMailboxToolbarButton;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasProvider=o.NylasProvider;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasSummarizeMessageButton=o.NylasSummarizeMessageButton;exports.NylasThreadsRefresh=o.NylasThreadsRefresh;exports.NylasThreadsSearch=o.NylasThreadsSearch;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasViewEmail=o.NylasViewEmail;exports.NylasViewThread=o.NylasViewThread;exports.PeopleIcon=o.PeopleIcon;exports.PlayIcon=o.PlayIcon;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TimePeriodSelector=o.TimePeriodSelector;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.applyPolyfills=o.applyPolyfills;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;exports.useNylasMailboxElement=o.useNylasMailboxElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-22f7e49c.cjs");require("react");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.ChevronIcon=o.ChevronIcon;exports.CloseIcon=o.CloseIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasComposer=o.NylasComposer;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasIfState=o.NylasIfState;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasListFolders=o.NylasListFolders;exports.NylasListThreads=o.NylasListThreads;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLocationComponent=o.NylasLocationComponent;exports.NylasLogin=o.NylasLogin;exports.NylasLogo=o.NylasLogo;exports.NylasMailbox=o.NylasMailbox;exports.NylasMailboxPagination=o.NylasMailboxPagination;exports.NylasMailboxToolbarButton=o.NylasMailboxToolbarButton;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasProvider=o.NylasProvider;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasSummarizeMessageButton=o.NylasSummarizeMessageButton;exports.NylasThreadsRefresh=o.NylasThreadsRefresh;exports.NylasThreadsSearch=o.NylasThreadsSearch;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.NylasViewEmail=o.NylasViewEmail;exports.NylasViewThread=o.NylasViewThread;exports.PeopleIcon=o.PeopleIcon;exports.PlayIcon=o.PlayIcon;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TimePeriodSelector=o.TimePeriodSelector;exports.TooltipComponent=o.TooltipComponent;exports.TranslateIcon=o.TranslateIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.WarningIcon=o.WarningIcon;exports.applyPolyfills=o.applyPolyfills;exports.defineCustomElements=o.defineCustomElements;exports.setNonce=o.setNonce;exports.useNylasMailboxElement=o.useNylasMailboxElement;
package/dist/react.js CHANGED
@@ -1,11 +1,11 @@
1
- import { A as n, e as l, f as c, B as i, i as t, C as r, j as y, k as N, l as I, m as d, n as C, o as m, p, D as f, q as h, t as u, v as k, G as g, w as S, I as E, x as P, y as T, L as v, z as L, E as B, M as w, J as b, K as F, O as M, P as x, Q as A, R as D, S as R, T as G, U as W, V as q, W as z, X as V, Y as j, Z as O, _ as U, $ as H, a0 as J, a1 as K, a2 as Q, a3 as X, N as Y, a4 as Z, a5 as _, a6 as $, a7 as aa, a8 as sa, a9 as oa, aa as ea, ab as na, ac as la, ad as ca, ae as ia, af as ta, ag as ra, ah as ya, ai as Na, aj as Ia, ak as da, al as Ca, am as ma, an as pa, ao as fa, ap as ha, aq as ua, ar as ka, as as ga, at as Sa, au as Ea, av as Pa, aw as Ta, ax as va, ay as La, az as Ba, aA as wa, aB as ba, aC as Fa, aD as Ma, aE as xa, aF as Aa, aG as Da, aH as Ra, aI as Ga, b as Wa, d as qa, s as za, u as Va } from "./index-db0c5017.js";
1
+ import { S as e, T as l, U as i, V as c, W as t, X as r, Y as y, Z as N, _ as I, $ as d, a0 as C, a1 as m, a2 as b, a3 as p, a4 as f, a5 as h, a6 as u, a7 as g, a8 as S, a9 as k, aa as P, ab as T, ac as L, ad as E, ae as v, af as B, ag as w, ah as F, ai as M, aj as R, ak as x, al as A, am as D, an as W, ao as V, ap as G, aq as O, ar as U, as as q, at as z, au as Q, av as X, aw as Y, ax as Z, ay as _, az as $, N as j, aA as H, aB as J, aC as K, aD as aa, aE as sa, aF as oa, aG as na, aH as ea, aI as la, aJ as ia, aK as ca, aL as ta, aM as ra, aN as ya, aO as Na, aP as Ia, aQ as da, aR as Ca, aS as ma, aT as ba, aU as pa, aV as fa, aW as ha, aX as ua, aY as ga, aZ as Sa, a_ as ka, a$ as Pa, b0 as Ta, b1 as La, b2 as Ea, b3 as va, b4 as Ba, b5 as wa, b6 as Fa, b7 as Ma, b8 as Ra, b9 as xa, ba as Aa, bb as Da, bc as Wa, bd as Va, P as Ga, Q as Oa, R as Ua, O as qa } from "./index-f9ba9aa8.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
5
- n as AddCircleIcon,
5
+ e as AddCircleIcon,
6
6
  l as ArchiveIcon,
7
- c as ArrowIcon,
8
- i as BoldIcon,
7
+ i as ArrowIcon,
8
+ c as BoldIcon,
9
9
  t as ButtonComponent,
10
10
  r as CalendarCancelIcon,
11
11
  y as CalendarCheckIcon,
@@ -14,84 +14,85 @@ export {
14
14
  d as CalendarPatternsIcon,
15
15
  C as CheckmarkCircleIcon,
16
16
  m as ChevronIcon,
17
- p as CloseIcon,
18
- f as DocumentRefreshIcon,
19
- h as FlowIcon,
20
- u as FolderIcon,
21
- k as ForwardIcon,
17
+ b as CloseIcon,
18
+ p as DocumentRefreshIcon,
19
+ f as FlowIcon,
20
+ h as FolderIcon,
21
+ u as ForwardIcon,
22
22
  g as GlobeIcon,
23
23
  S as GoogleLogoIcon,
24
- E as InboxIcon,
24
+ k as InboxIcon,
25
25
  P as InfoIcon,
26
26
  T as ItalicIcon,
27
- v as LoadingIcon,
28
- L as LocationIcon,
29
- B as LocationOffIcon,
30
- w as MicrosoftLogoIcon,
31
- b as MultiSelectDropdown,
27
+ L as LoadingIcon,
28
+ E as LocationIcon,
29
+ v as LocationOffIcon,
30
+ B as MicrosoftLogoIcon,
31
+ w as MultiSelectDropdown,
32
32
  F as NylasAdditionalParticipants,
33
33
  M as NylasAvailabilityPicker,
34
- x as NylasBookedEventCard,
35
- A as NylasBookingCalendarPicker,
36
- D as NylasBookingForm,
37
- R as NylasBufferTime,
38
- G as NylasCalendarPicker,
39
- W as NylasCancelBookingForm,
40
- q as NylasCancelledEventCard,
41
- z as NylasComposer,
42
- V as NylasCustomBookingFlow,
43
- j as NylasDatePicker,
44
- O as NylasEditorTabs,
45
- U as NylasEventDescription,
46
- H as NylasEventDuration,
47
- J as NylasEventInfo,
48
- K as NylasEventLimits,
49
- Q as NylasEventTitle,
50
- X as NylasFormCard,
51
- Y as NylasIdentityRequestWrapper,
52
- Z as NylasIfState,
53
- _ as NylasLimitFutureBookings,
54
- $ as NylasListFolders,
55
- aa as NylasListThreads,
56
- sa as NylasLocaleSwitch,
57
- oa as NylasLocationComponent,
34
+ R as NylasBookedEventCard,
35
+ x as NylasBookingCalendarPicker,
36
+ A as NylasBookingForm,
37
+ D as NylasBufferTime,
38
+ W as NylasCalendarPicker,
39
+ V as NylasCancelBookingForm,
40
+ G as NylasCancelledEventCard,
41
+ O as NylasComposer,
42
+ U as NylasCustomBookingFlow,
43
+ q as NylasDatePicker,
44
+ z as NylasEditorTabs,
45
+ Q as NylasEventDescription,
46
+ X as NylasEventDuration,
47
+ Y as NylasEventInfo,
48
+ Z as NylasEventLimits,
49
+ _ as NylasEventTitle,
50
+ $ as NylasFormCard,
51
+ j as NylasIdentityRequestWrapper,
52
+ H as NylasIfState,
53
+ J as NylasLimitFutureBookings,
54
+ K as NylasListConfigurations,
55
+ aa as NylasListFolders,
56
+ sa as NylasListThreads,
57
+ oa as NylasLocaleSwitch,
58
+ na as NylasLocationComponent,
58
59
  ea as NylasLogin,
59
- na as NylasLogo,
60
- la as NylasMailbox,
60
+ la as NylasLogo,
61
+ ia as NylasMailbox,
61
62
  ca as NylasMailboxPagination,
62
- ia as NylasMailboxToolbarButton,
63
- ta as NylasMinCancellationNotice,
64
- ra as NylasNotification,
65
- ya as NylasProvider,
66
- Na as NylasSchedulerEditor,
67
- Ia as NylasScheduling,
68
- da as NylasSelectedEventCard,
69
- Ca as NylasSummarizeMessageButton,
70
- ma as NylasThreadsRefresh,
63
+ ta as NylasMailboxToolbarButton,
64
+ ra as NylasMinCancellationNotice,
65
+ ya as NylasNotification,
66
+ Na as NylasProvider,
67
+ Ia as NylasSchedulerEditor,
68
+ da as NylasScheduling,
69
+ Ca as NylasSelectedEventCard,
70
+ ma as NylasSummarizeMessageButton,
71
+ ba as NylasThreadsRefresh,
71
72
  pa as NylasThreadsSearch,
72
73
  fa as NylasTimeWindowPicker,
73
74
  ha as NylasTimeslotPicker,
74
75
  ua as NylasViewEmail,
75
- ka as NylasViewThread,
76
- ga as PeopleIcon,
77
- Sa as PlayIcon,
78
- Ea as RefreshIcon,
79
- Pa as ReplyAllIcon,
80
- Ta as ReplyIcon,
81
- va as SearchIcon,
82
- La as SelectDropdown,
76
+ ga as NylasViewThread,
77
+ Sa as PeopleIcon,
78
+ ka as PlayIcon,
79
+ Pa as RefreshIcon,
80
+ Ta as ReplyAllIcon,
81
+ La as ReplyIcon,
82
+ Ea as SearchIcon,
83
+ va as SelectDropdown,
83
84
  Ba as SentIcon,
84
85
  wa as SpamIcon,
85
- ba as StarIcon,
86
- Fa as StopIcon,
87
- Ma as TimePeriodSelector,
86
+ Fa as StarIcon,
87
+ Ma as StopIcon,
88
+ Ra as TimePeriodSelector,
88
89
  xa as TooltipComponent,
89
90
  Aa as TranslateIcon,
90
91
  Da as TrashIcon,
91
- Ra as UnderlineIcon,
92
- Ga as WarningIcon,
93
- Wa as applyPolyfills,
94
- qa as defineCustomElements,
95
- za as setNonce,
96
- Va as useNylasMailboxElement
92
+ Wa as UnderlineIcon,
93
+ Va as WarningIcon,
94
+ Ga as applyPolyfills,
95
+ Oa as defineCustomElements,
96
+ Ua as setNonce,
97
+ qa as useNylasMailboxElement
97
98
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"6f08ec538071d37d3ff537182375dd582350bb8e",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"dbaaf840fa4825f6df0b9fd8f5f9d81ef1b6c7ad",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=i;exports.refresh_icon=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",i=t,c=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"2e1bbfd5d599ebbee70358469b058757560a5108",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"b7d45ada6ad9320640c43ab98c3f291d4578e43d",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};c.style=i;exports.refresh_icon=c;