@nylas/react 1.1.0-canary.15 → 1.1.0-canary.16
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_2.entry-035ffd48.cjs +1 -0
- package/dist/add-circle-icon_2.entry-5cadaf97.js +25 -0
- package/dist/{archive-icon_7.entry-25d8b2f0.cjs → archive-icon_7.entry-073d9915.cjs} +1 -1
- package/dist/{archive-icon_7.entry-ca8262ff.js → archive-icon_7.entry-54dc5cc2.js} +1 -1
- package/dist/{arrow-icon.entry-991ba7cd.js → arrow-icon.entry-869a1db9.js} +1 -1
- package/dist/{arrow-icon.entry-01192ecf.cjs → arrow-icon.entry-bada78b8.cjs} +1 -1
- package/dist/{bold-icon_3.entry-81a3ff1e.js → bold-icon_3.entry-5695177e.js} +1 -1
- package/dist/{bold-icon_3.entry-e94dcf5b.cjs → bold-icon_3.entry-cc6150c9.cjs} +1 -1
- package/dist/button-component.entry-3703ecff.cjs +1 -0
- package/dist/{add-circle-icon_2.entry-3f834b47.js → button-component.entry-a0533c8b.js} +4 -14
- package/dist/{calendar-cancel-icon.entry-9088fa8b.cjs → calendar-cancel-icon.entry-0f1d98b3.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-f646c147.js → calendar-cancel-icon.entry-a9ab0b09.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-4dc1391a.cjs → calendar-check-icon_2.entry-6b83717e.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-a7e4d0e6.js → calendar-check-icon_2.entry-a62b5d2c.js} +1 -1
- package/dist/{calendar-icon.entry-1e2acd5c.cjs → calendar-icon.entry-08f83da9.cjs} +1 -1
- package/dist/{calendar-icon.entry-1658930c.js → calendar-icon.entry-ddc22561.js} +1 -1
- package/dist/calendar-info-icon_27.entry-a8390790.cjs +1 -0
- package/dist/{calendar-info-icon_25.entry-493c5547.js → calendar-info-icon_27.entry-f02f44b7.js} +622 -522
- package/dist/{chevron-icon_3.entry-52b97043.cjs → chevron-icon_3.entry-978b52d5.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-b3c7eb44.js → chevron-icon_3.entry-f27202a2.js} +1 -1
- package/dist/{clock-icon_2.entry-58f07042.js → clock-icon_2.entry-2277fd45.js} +1 -1
- package/dist/{clock-icon_2.entry-882249ee.cjs → clock-icon_2.entry-b7b8ef46.cjs} +1 -1
- package/dist/{constants-f34b9c6e-628beaa8.js → constants-f34b9c6e-bbca6b6e.js} +1 -1
- package/dist/{constants-f34b9c6e-1da5094b.cjs → constants-f34b9c6e-ccdbc4ac.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-4f581bf4.cjs → document-refresh-icon.entry-5795e2a9.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-b53316b4.js → document-refresh-icon.entry-656a5e02.js} +1 -1
- package/dist/{elements-dc5b338e-7abe37c6.js → elements-dc5b338e-c4a07acc.js} +1 -1
- package/dist/{elements-dc5b338e-3284591d.cjs → elements-dc5b338e-d48368b1.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-d6612604.js → focus-visible-e8093c16-10c0fa06.js} +1 -1
- package/dist/{focus-visible-e8093c16-cb6c97b1.cjs → focus-visible-e8093c16-c86f3687.cjs} +1 -1
- package/dist/{forward-icon_6.entry-e402ad1e.cjs → forward-icon_6.entry-07cd4b52.cjs} +1 -1
- package/dist/{forward-icon_6.entry-d54244f7.js → forward-icon_6.entry-39d788af.js} +2 -2
- package/dist/{globe-icon.entry-e83c79c2.js → globe-icon.entry-60a53e89.js} +1 -1
- package/dist/{globe-icon.entry-db7377d9.cjs → globe-icon.entry-76c90d97.cjs} +1 -1
- package/dist/google-logo-icon_4.entry-5402eae2.cjs +1 -0
- package/dist/{google-logo-icon_4.entry-8818686b.js → google-logo-icon_4.entry-d327d68f.js} +45 -36
- package/dist/index-53420959-791b4e73.js +5 -0
- package/dist/index-53420959-9f979766.cjs +1 -0
- package/dist/{index-6d9eeb53-91d36348.js → index-6d9eeb53-38c9f47c.js} +2 -2
- package/dist/{index-6d9eeb53-f478270c.cjs → index-6d9eeb53-66c114b2.cjs} +1 -1
- package/dist/{index-2d032bec.js → index-f383e3c4.js} +161 -171
- package/dist/{index-9c04361d.cjs → index-f435e814.cjs} +2 -2
- package/dist/{index.es-9cc0eb3c-2242baf6.cjs → index.es-9cc0eb3c-09dc620b.cjs} +1 -1
- package/dist/{index.es-9cc0eb3c-ee2ebbe1.js → index.es-9cc0eb3c-510db795.js} +1 -1
- package/dist/{info-icon_2.entry-4b257e73.cjs → info-icon_2.entry-7fe8bcd9.cjs} +1 -1
- package/dist/{info-icon_2.entry-74eb7415.js → info-icon_2.entry-a61859ac.js} +1 -1
- package/dist/{input-component.entry-3ef7ce2c.cjs → input-component.entry-04dcc655.cjs} +1 -1
- package/dist/{input-component.entry-6bb4a5e8.js → input-component.entry-12f60175.js} +3 -3
- package/dist/{input-dropdown_2.entry-f71e4c01.js → input-dropdown_2.entry-0e5925a7.js} +18 -14
- package/dist/input-dropdown_2.entry-d9bff099.cjs +1 -0
- package/dist/{loading-icon.entry-30724cb0.js → loading-icon.entry-51ddd748.js} +1 -1
- package/dist/{loading-icon.entry-bb250f1c.cjs → loading-icon.entry-f82786b4.cjs} +1 -1
- package/dist/{mailbox-store-64b4ef7c-202f1afd.js → mailbox-store-64b4ef7c-017196a6.js} +2 -2
- package/dist/{mailbox-store-64b4ef7c-74f959be.cjs → mailbox-store-64b4ef7c-1e6c96cc.cjs} +1 -1
- package/dist/{nylas-booked-event-card_10.entry-ddfcff5e.js → nylas-booked-event-card_10.entry-2dff7f16.js} +7 -7
- package/dist/nylas-booked-event-card_10.entry-5a9a4cc6.cjs +1 -0
- package/dist/{nylas-custom-booking-flow.entry-63ed387e.cjs → nylas-custom-booking-flow.entry-36f7a943.cjs} +1 -1
- package/dist/{nylas-custom-booking-flow.entry-a1f66d05.js → nylas-custom-booking-flow.entry-feed589b.js} +7 -7
- package/dist/{nylas-form-card.entry-ea1153b9.js → nylas-form-card.entry-49f519dd.js} +8 -8
- package/dist/{nylas-form-card.entry-6fece0ff.cjs → nylas-form-card.entry-e9f09602.cjs} +1 -1
- package/dist/{nylas-if-state.entry-05f8f66f.js → nylas-if-state.entry-127694a9.js} +2 -2
- package/dist/{nylas-if-state.entry-b75320f0.cjs → nylas-if-state.entry-81916723.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-bd5a1b1d.js → nylas-list-folders.entry-e3e9ec1f.js} +2 -2
- package/dist/{nylas-list-folders.entry-edc61b97.cjs → nylas-list-folders.entry-f4c68fb9.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-79ad0944.cjs → nylas-list-threads.entry-f0a1b9d1.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-f3cd80de.js → nylas-list-threads.entry-fa4b5318.js} +2 -2
- package/dist/{nylas-login.entry-b3207e82.js → nylas-login.entry-6d17e994.js} +2 -2
- package/dist/{nylas-login.entry-68873357.cjs → nylas-login.entry-aeac716e.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-2ef5b88a.cjs → nylas-mailbox-pagination.entry-50fba238.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-22c5b9ca.js → nylas-mailbox-pagination.entry-c440f56a.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-95bb58b5.js → nylas-mailbox-toolbar-button.entry-14e30d36.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-f2fa3a8e.cjs → nylas-mailbox-toolbar-button.entry-d3d0c870.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-4b1d320f.cjs → nylas-mailbox.entry-2fdb3d4c.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-4ef7d18d.js → nylas-mailbox.entry-a59159c7.js} +3 -3
- package/dist/{nylas-provider.entry-7f7e098a.js → nylas-provider.entry-d7dbb5fc.js} +5 -5
- package/dist/{nylas-provider.entry-b629340a.cjs → nylas-provider.entry-dfa8c7c1.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-2d19593f.js → nylas-scheduler-editor.entry-3b44b807.js} +8 -7
- package/dist/{nylas-scheduler-editor.entry-19a29c4c.cjs → nylas-scheduler-editor.entry-67e71234.cjs} +2 -2
- package/dist/nylas-scheduling.entry-0ce0dab9.cjs +1 -0
- package/dist/{nylas-scheduling.entry-753cb746.js → nylas-scheduling.entry-68f72bf7.js} +9 -9
- package/dist/{nylas-threads-refresh.entry-5a774ad7.js → nylas-threads-refresh.entry-23a83bd4.js} +2 -2
- package/dist/{nylas-threads-refresh.entry-0a832631.cjs → nylas-threads-refresh.entry-955e92c7.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-5b57688b.cjs → nylas-threads-search.entry-2fb6db63.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-451c6d5c.js → nylas-threads-search.entry-8f01ee4a.js} +2 -2
- package/dist/{nylas-view-thread.entry-7b273955.cjs → nylas-view-thread.entry-3cf0c1ac.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-e0af8998.js → nylas-view-thread.entry-b957f88b.js} +2 -2
- package/dist/{play-icon_2.entry-5b22a7ca.cjs → play-icon_2.entry-c92d5237.cjs} +1 -1
- package/dist/{play-icon_2.entry-58592b64.js → play-icon_2.entry-ecdf8ea4.js} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-90756bc6.js → refresh-icon.entry-480d28aa.js} +1 -1
- package/dist/{refresh-icon.entry-876b8aea.cjs → refresh-icon.entry-76e58ccb.cjs} +1 -1
- package/dist/{register-component-a5a9ca5d-8bede801.js → register-component-a5a9ca5d-438c8a96.js} +1 -1
- package/dist/{register-component-a5a9ca5d-1fbb27d2.cjs → register-component-a5a9ca5d-ebf633cf.cjs} +1 -1
- package/dist/scheduler-config-store-4a50a03d-d5a5899e.cjs +1 -0
- package/dist/{scheduler-config-store-ec3b6190-cbc40d60.js → scheduler-config-store-4a50a03d-defa6368.js} +4 -3
- package/dist/{scheduler-store-f02ce045-712c600c.cjs → scheduler-store-f02ce045-00faab09.cjs} +1 -1
- package/dist/{scheduler-store-f02ce045-1d93c571.js → scheduler-store-f02ce045-de4cb1f5.js} +1 -1
- package/dist/{textarea-component.entry-3ea161d6.js → textarea-component.entry-1c8d11af.js} +3 -3
- package/dist/{textarea-component.entry-9d6b5cdc.cjs → textarea-component.entry-5ff249a8.cjs} +1 -1
- package/dist/{toggle-switch.entry-10aa0c1a.cjs → toggle-switch.entry-26d3d1c9.cjs} +1 -1
- package/dist/{toggle-switch.entry-a08c1027.js → toggle-switch.entry-339ab48b.js} +1 -1
- package/dist/{translate-icon.entry-be9c3401.js → translate-icon.entry-3741cac0.js} +1 -1
- package/dist/{translate-icon.entry-04dde6b1.cjs → translate-icon.entry-a55c013b.cjs} +1 -1
- package/dist/{warning-icon.entry-84121a43.cjs → warning-icon.entry-1a104c52.cjs} +1 -1
- package/dist/{warning-icon.entry-347d77af.js → warning-icon.entry-445352b5.js} +1 -1
- package/package.json +3 -3
- package/dist/add-circle-icon_2.entry-00dc2c13.cjs +0 -1
- package/dist/calendar-info-icon_25.entry-7513d798.cjs +0 -1
- package/dist/close-icon.entry-4a39816a.js +0 -15
- package/dist/close-icon.entry-f1166251.cjs +0 -1
- package/dist/google-logo-icon_4.entry-fa65ae29.cjs +0 -1
- package/dist/index-53420959-41ed02ae.js +0 -5
- package/dist/index-53420959-a76f0327.cjs +0 -1
- package/dist/input-dropdown_2.entry-a87714fc.cjs +0 -1
- package/dist/nylas-additional-participants.entry-567c7c2a.cjs +0 -1
- package/dist/nylas-additional-participants.entry-7961be04.js +0 -81
- package/dist/nylas-booked-event-card_10.entry-c2f889ba.cjs +0 -1
- package/dist/nylas-scheduling.entry-70454242.cjs +0 -1
- package/dist/people-icon.entry-c7fb7f6c.cjs +0 -1
- package/dist/people-icon.entry-de3fada0.js +0 -15
- package/dist/scheduler-config-store-ec3b6190-104df545.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as D, h as n, c as y, x as
|
|
2
|
-
import { R as X } from "./register-component-a5a9ca5d-
|
|
3
|
-
import { D as
|
|
1
|
+
import { r as D, h as n, c as y, x as at, d, y as q, H as K, g as Q } from "./index-f383e3c4.js";
|
|
2
|
+
import { R as X } from "./register-component-a5a9ca5d-438c8a96.js";
|
|
3
|
+
import { D as it } from "./constants-f34b9c6e-bbca6b6e.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const st = ".sc-google-logo-icon-h{display:flex}", ot = st, rt = class {
|
|
7
7
|
constructor(t) {
|
|
8
8
|
D(this, t), this.width = "24", this.height = "24";
|
|
9
9
|
}
|
|
@@ -11,8 +11,8 @@ const it = ".sc-google-logo-icon-h{display:flex}", st = it, ot = class {
|
|
|
11
11
|
return n("svg", { key: "48ccae649f280d48621dfb214a08b980155680a1", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "10196951caa0fa0b94b57c57a62d8bcb31d92d91", "clip-path": "url(#clip0_959_12452)" }, n("path", { key: "0d2358cd1dcbd7f9ef2dfa17a5075a341210a43c", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), n("path", { key: "8540c5619b64996b6b158fe50609aa378dfd468f", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), n("path", { key: "b683a33b6068de0793ef4426e6404d438dbdf73e", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), n("path", { key: "916d663bbb04c8267e595adf9125068232414ed7", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), n("defs", { key: "a941f8ccb1711f648dc3e2db750496a2491b4b55" }, n("clipPath", { key: "caef3b6e814ed957bcee43a794130dce6760702d", id: "clip0_959_12452" }, n("rect", { key: "df7c24b60402fd2e9d248f4e5ccfbaa640d549ae", width: 24, height: 24, fill: "white" }))));
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
const
|
|
14
|
+
rt.style = ot;
|
|
15
|
+
const lt = ".sc-microsoft-logo-icon-h{display:flex}", dt = lt, ct = class {
|
|
16
16
|
constructor(t) {
|
|
17
17
|
D(this, t), this.width = "22", this.height = "22";
|
|
18
18
|
}
|
|
@@ -20,8 +20,8 @@ const rt = ".sc-microsoft-logo-icon-h{display:flex}", lt = rt, dt = class {
|
|
|
20
20
|
return n("svg", { key: "4aa3482048f90ecbcb46d539716464bdf2c20e47", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { key: "27924938927bdc57e665d91623f07684aea3a6ee", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), n("path", { key: "91decf0bfe7ef26f93ea724fa9738d1ffa1ae4a6", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), n("path", { key: "0f455cec58fd99a755157ab9ca950242a634d541", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), n("path", { key: "80c930047e54c708d5f7cde3d88f33f2a0d0dbd5", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
function
|
|
23
|
+
ct.style = dt;
|
|
24
|
+
function bt({ id: t, formState: e, activeTab: a, calendars: s }) {
|
|
25
25
|
var o;
|
|
26
26
|
switch (a) {
|
|
27
27
|
case "eventInfo":
|
|
@@ -71,10 +71,16 @@ function ct({ id: t, formState: e, activeTab: a, calendars: s }) {
|
|
|
71
71
|
n("nylas-timeslot-interval", { name: "timeslot-interval", eventDurationMinutes: parseInt(e.duration), exportparts: "nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content" }),
|
|
72
72
|
n("nylas-customize-booking-settings", { name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
|
|
73
73
|
);
|
|
74
|
+
case "participants":
|
|
75
|
+
return n(
|
|
76
|
+
"div",
|
|
77
|
+
{ key: t },
|
|
78
|
+
n("nylas-additional-participants", { name: "participants", eventParticipants: e.participants, exportparts: "nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant" })
|
|
79
|
+
);
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
|
-
const
|
|
77
|
-
var
|
|
82
|
+
const ut = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:554px;display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}', ht = ut;
|
|
83
|
+
var pt = function(t, e, a, s) {
|
|
78
84
|
var o = arguments.length, i = o < 3 ? e : s === null ? s = Object.getOwnPropertyDescriptor(e, a) : s, l;
|
|
79
85
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
80
86
|
i = Reflect.decorate(t, e, a, s);
|
|
@@ -95,7 +101,7 @@ const Y = class {
|
|
|
95
101
|
if (e.preventDefault(), this.formSubmitted.emit(), !this.formRef.checkValidity())
|
|
96
102
|
return;
|
|
97
103
|
this.isLoading = !0, this.hasUnsavedChanges = !1;
|
|
98
|
-
const s = this.updateFormState(), { title: o, description: i, duration: l, availability: r, calendarIds: b, bookingCalendar: u, location: f, bookingType: h, buffer: m, availableDaysInFuture: g, minCancellationNotice: _, minBookingNotice: v, cancellationPolicy: C, timeslotInterval: p, additionalGuestsHidden: x, hideCancellationOptions: S, hideReschedulingOptions: L } = s, c = (F = (O = this.selectedConfiguration) == null ? void 0 : O.participants) == null ? void 0 : F.find((W) => W.is_organizer), w = l ? parseInt(l) : 30, k = {
|
|
104
|
+
const s = this.updateFormState(), { title: o, description: i, duration: l, availability: r, calendarIds: b, bookingCalendar: u, location: f, bookingType: h, buffer: m, availableDaysInFuture: g, minCancellationNotice: _, minBookingNotice: v, cancellationPolicy: C, timeslotInterval: p, additionalGuestsHidden: x, hideCancellationOptions: S, hideReschedulingOptions: L, participants: B } = s, c = (F = (O = this.selectedConfiguration) == null ? void 0 : O.participants) == null ? void 0 : F.find((W) => W.is_organizer), w = l ? parseInt(l) : 30, k = {
|
|
99
105
|
...((P = this.selectedConfiguration) == null ? void 0 : P.id) && { id: this.selectedConfiguration.id },
|
|
100
106
|
version: ((E = this.selectedConfiguration) == null ? void 0 : E.version) ?? "1.0.0",
|
|
101
107
|
availability: {
|
|
@@ -105,7 +111,7 @@ const Y = class {
|
|
|
105
111
|
availability_rules: {
|
|
106
112
|
availability_method: ((j = (N = (R = this.selectedConfiguration) == null ? void 0 : R.availability) == null ? void 0 : N.availability_rules) == null ? void 0 : j.availability_method) ?? "collective",
|
|
107
113
|
buffer: m || { before: 0, after: 0 },
|
|
108
|
-
default_open_hours: ((U = (V = (M = this.selectedConfiguration) == null ? void 0 : M.availability) == null ? void 0 : V.availability_rules) == null ? void 0 : U.default_open_hours) ??
|
|
114
|
+
default_open_hours: ((U = (V = (M = this.selectedConfiguration) == null ? void 0 : M.availability) == null ? void 0 : V.availability_rules) == null ? void 0 : U.default_open_hours) ?? it,
|
|
109
115
|
round_robin_group_id: (($ = (A = (z = this.selectedConfiguration) == null ? void 0 : z.availability) == null ? void 0 : A.availability_rules) == null ? void 0 : $.round_robin_group_id) ?? ""
|
|
110
116
|
}
|
|
111
117
|
},
|
|
@@ -121,7 +127,8 @@ const Y = class {
|
|
|
121
127
|
booking: {
|
|
122
128
|
calendar_id: u && u !== "" ? u : "primary"
|
|
123
129
|
}
|
|
124
|
-
}
|
|
130
|
+
},
|
|
131
|
+
...B ?? []
|
|
125
132
|
],
|
|
126
133
|
event_booking: {
|
|
127
134
|
title: (o == null ? void 0 : o.toString()) ?? "",
|
|
@@ -135,16 +142,16 @@ const Y = class {
|
|
|
135
142
|
available_days_in_future: g ?? 30,
|
|
136
143
|
min_cancellation_notice: _ ?? 0,
|
|
137
144
|
min_booking_notice: v ?? 60,
|
|
138
|
-
|
|
145
|
+
hide_additional_guests: x ?? !1,
|
|
139
146
|
hide_cancellation_options: S ?? !1,
|
|
140
147
|
hide_rescheduling_options: L ?? !1
|
|
141
148
|
}
|
|
142
|
-
},
|
|
149
|
+
}, H = at(k, this.selectedConfiguration), et = this.action === "create" ? H : k, nt = (W) => {
|
|
143
150
|
this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
|
|
144
151
|
this.changesSaved = !1;
|
|
145
152
|
}, 5e3);
|
|
146
153
|
};
|
|
147
|
-
this.schedulerConfigChanged.emit({ config:
|
|
154
|
+
this.schedulerConfigChanged.emit({ config: et, resetLoadingState: nt, setError: this.setError, action: this.action });
|
|
148
155
|
}, this.calendars = void 0, this.selectedConfiguration = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.action = "create", this.activeTab = "eventInfo", this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
|
|
149
156
|
}
|
|
150
157
|
configChangedHandler(t) {
|
|
@@ -170,7 +177,7 @@ const Y = class {
|
|
|
170
177
|
this.formState = { ...this.formState, [e]: a }, this.hasUnsavedChanges = !0, this.error = "";
|
|
171
178
|
}
|
|
172
179
|
getFormStateFromConfig(t) {
|
|
173
|
-
var a, s, o, i, l, r, b, u, f, h, m, g, _, v, C, p, x, S, L, c, w, k
|
|
180
|
+
var a, s, o, i, l, r, b, u, f, h, m, g, _, v, C, p, x, S, L, B, c, w, k;
|
|
174
181
|
const e = (a = t == null ? void 0 : t.participants) == null ? void 0 : a.find((H) => H.is_organizer);
|
|
175
182
|
return {
|
|
176
183
|
title: ((s = t == null ? void 0 : t.event_booking) == null ? void 0 : s.title) ?? "",
|
|
@@ -192,11 +199,11 @@ const Y = class {
|
|
|
192
199
|
minBookingNotice: ((x = t == null ? void 0 : t.scheduler) == null ? void 0 : x.min_booking_notice) ?? 60,
|
|
193
200
|
timeslotInterval: {
|
|
194
201
|
interval: ((S = t == null ? void 0 : t.availability) == null ? void 0 : S.interval_minutes) ?? ((L = t == null ? void 0 : t.availability) == null ? void 0 : L.duration_minutes) ?? 10,
|
|
195
|
-
roundTo: (
|
|
202
|
+
roundTo: (B = t == null ? void 0 : t.availability) == null ? void 0 : B.round_to
|
|
196
203
|
},
|
|
197
|
-
additionalGuestsHidden: ((
|
|
198
|
-
hideCancellationOptions: ((
|
|
199
|
-
hideReschedulingOptions: ((
|
|
204
|
+
additionalGuestsHidden: ((c = t == null ? void 0 : t.scheduler) == null ? void 0 : c.hide_additional_guests) ?? !1,
|
|
205
|
+
hideCancellationOptions: ((w = t == null ? void 0 : t.scheduler) == null ? void 0 : w.hide_cancellation_options) ?? !1,
|
|
206
|
+
hideReschedulingOptions: ((k = t == null ? void 0 : t.scheduler) == null ? void 0 : k.hide_rescheduling_options) ?? !1
|
|
200
207
|
};
|
|
201
208
|
}
|
|
202
209
|
updateFormState() {
|
|
@@ -258,17 +265,19 @@ const Y = class {
|
|
|
258
265
|
t.preventDefault(), this.updateFormState(), this.activeTab = e;
|
|
259
266
|
}
|
|
260
267
|
render() {
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
},
|
|
268
|
+
var e;
|
|
269
|
+
d("[nylas-editor-tabs]", "render", this.formState);
|
|
270
|
+
const t = localStorage.getItem("nylas") === "Nylas Developer";
|
|
271
|
+
return n(K, { key: "ed57de888af9f29e6be4562b8d65c9800a6b4ad9" }, n("form", { key: "5f3d154f95b47b78fe3cc83a76df4d7e39330f80", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, noValidate: !0 }, this.mode === "app" ? n("div", { class: "form-contents" }, n("div", { class: "tabs" }, n("button", { class: { tab: !0, active: this.activeTab == "eventInfo" }, onClick: (a) => this.setActiveTab(a, "eventInfo") }, n("calendar-info-icon", { width: "16", height: "16" }), "Event Info"), n("button", { class: { tab: !0, active: this.activeTab == "availability" }, onClick: (a) => this.setActiveTab(a, "availability") }, n("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), n("button", { class: { tab: !0, active: this.activeTab == "bookingOptions" }, onClick: (a) => this.setActiveTab(a, "bookingOptions") }, n("flow-icon", { width: "16", height: "16" }), "Booking Options"), t && n("button", { class: { tab: !0, active: this.activeTab == "participants" }, onClick: (a) => this.setActiveTab(a, "participants") }, n("people-icon", { width: "16", height: "16" }), "Participants")), n("div", { class: "tab-content" }, n(bt, { formState: this.formState, activeTab: this.activeTab, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new" }))) : n("slot", null), n("div", { key: "c2a419fa59d6622e32627e476853ece732ff517c", class: "footer" }, n("div", { key: "b4eab68c7ee5d35aa1f9a77e0ef1c47d5080252a", class: "preview" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { type: "button", disabled: this.isLoading, clickHandler: (a) => {
|
|
272
|
+
a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(q(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
273
|
+
}, variant: "basic" }, "Preview")), n("div", { key: "0d1be883712a43e918d6a24415309e7fca51ac6b", class: "buttons" }, n("p", { key: "e84e22ff1f71263e512ec95ee1513c53d4dadc10", class: {
|
|
265
274
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
266
275
|
"saved-changes": this.changesSaved,
|
|
267
276
|
error: this.error !== "",
|
|
268
277
|
"error-full-width": this.error !== "" && this.action === "create"
|
|
269
|
-
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), n("button-component", { key: "
|
|
270
|
-
|
|
271
|
-
}, variant: "basic" }, "Cancel"), n("button-component", { key: "
|
|
278
|
+
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), n("button-component", { key: "dd4e56935a6b20576b5316acb76947375084dfce", type: "button", disabled: this.isLoading, clickHandler: (a) => {
|
|
279
|
+
a.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
|
|
280
|
+
}, variant: "basic" }, "Cancel"), n("button-component", { key: "16324ef17540626894bde0f55c1198d45ef0d0ce", type: "submit", disabled: this.isLoading }, this.isLoading ? n("span", null, "Saving", n("loading-icon", null), " ") : this.action == "create" ? "Create" : "Save changes")))));
|
|
272
281
|
}
|
|
273
282
|
get host() {
|
|
274
283
|
return Q(this);
|
|
@@ -279,7 +288,7 @@ const Y = class {
|
|
|
279
288
|
};
|
|
280
289
|
}
|
|
281
290
|
};
|
|
282
|
-
|
|
291
|
+
pt([
|
|
283
292
|
X({
|
|
284
293
|
name: "nylas-editor-tabs",
|
|
285
294
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -318,9 +327,9 @@ ht([
|
|
|
318
327
|
T("design:paramtypes", []),
|
|
319
328
|
T("design:returntype", void 0)
|
|
320
329
|
], Y.prototype, "render", null);
|
|
321
|
-
Y.style =
|
|
322
|
-
const
|
|
323
|
-
var
|
|
330
|
+
Y.style = ht;
|
|
331
|
+
const ft = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--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}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:1rem;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;overflow-y:auto}.configurations table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations table.no-configurations{height:100%}.configurations table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations table tr:last-of-type{border-bottom:0}.configurations table tr.hide{display:none}.configurations table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations table th.actions-header{text-align:right}.configurations table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations table th,.configurations table td{text-align:left;padding:1rem;font-family:inherit}.configurations table .actions{text-align:right}.configurations table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations table .actions{flex-direction:column;gap:0.5rem}}.configurations table .title{display:flex;flex-direction:column}.configurations table .title .config-event-title{font-weight:600}.configurations table .title .config-event-description{font-size:0.75rem}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}', yt = ft;
|
|
332
|
+
var mt = function(t, e, a, s) {
|
|
324
333
|
var o = arguments.length, i = o < 3 ? e : s === null ? s = Object.getOwnPropertyDescriptor(e, a) : s, l;
|
|
325
334
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
326
335
|
i = Reflect.decorate(t, e, a, s);
|
|
@@ -386,7 +395,7 @@ const tt = class {
|
|
|
386
395
|
return Q(this);
|
|
387
396
|
}
|
|
388
397
|
};
|
|
389
|
-
|
|
398
|
+
mt([
|
|
390
399
|
X({
|
|
391
400
|
name: "nylas-list-configurations",
|
|
392
401
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.configurations", "configurations"]]),
|
|
@@ -420,10 +429,10 @@ yt([
|
|
|
420
429
|
I("design:paramtypes", []),
|
|
421
430
|
I("design:returntype", void 0)
|
|
422
431
|
], tt.prototype, "render", null);
|
|
423
|
-
tt.style =
|
|
432
|
+
tt.style = yt;
|
|
424
433
|
export {
|
|
425
|
-
|
|
426
|
-
|
|
434
|
+
rt as google_logo_icon,
|
|
435
|
+
ct as microsoft_logo_icon,
|
|
427
436
|
Y as nylas_editor_tabs,
|
|
428
437
|
tt as nylas_list_configurations
|
|
429
438
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./index-f435e814.cjs");var e=s.commonjsGlobal.process;exports.process=e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as re, U as Ke, B as He } from "./index-
|
|
2
|
-
import { p as Xu } from "./index-53420959-
|
|
1
|
+
import { i as re, U as Ke, B as He } from "./index-f383e3c4.js";
|
|
2
|
+
import { p as Xu } from "./index-53420959-791b4e73.js";
|
|
3
3
|
var ue = {}, _u = {};
|
|
4
4
|
Object.defineProperty(_u, "__esModule", { value: !0 });
|
|
5
5
|
_u.default = new Uint16Array(
|