@nylas/react 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abstract-provider-bdb7d9b4-12a95387.cjs → abstract-provider-97cdbfea-5837e17f.cjs} +1 -1
- package/dist/{abstract-provider-bdb7d9b4-22cf4a74.js → abstract-provider-97cdbfea-6b0e3547.js} +1 -1
- package/dist/{add-circle-icon_2.entry-d56f519c.cjs → add-circle-icon_2.entry-96ef4ded.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-0ff79148.js → add-circle-icon_2.entry-e59a5b4d.js} +1 -1
- package/dist/{archive-icon.entry-6ab120ff.cjs → archive-icon.entry-49b4e0fd.cjs} +1 -1
- package/dist/{archive-icon.entry-aaff46ec.js → archive-icon.entry-ea5667df.js} +1 -1
- package/dist/{arrow-icon.entry-d8fcbc1f.js → arrow-icon.entry-1f766862.js} +1 -1
- package/dist/{arrow-icon.entry-d57cf44f.cjs → arrow-icon.entry-5aefd7de.cjs} +1 -1
- package/dist/{bold-icon.entry-0f23543d.cjs → bold-icon.entry-1a4955df.cjs} +1 -1
- package/dist/{bold-icon.entry-e48075a4.js → bold-icon.entry-240950a6.js} +1 -1
- package/dist/{button-component_2.entry-3d622397.cjs → button-component_2.entry-357fa02a.cjs} +1 -1
- package/dist/{button-component_2.entry-5db80bec.js → button-component_2.entry-96785a34.js} +1 -1
- package/dist/calendar-agenda-fill-icon_37.entry-5e405c00.cjs +6 -0
- package/dist/calendar-agenda-fill-icon_37.entry-e732ee2e.js +4966 -0
- package/dist/{calendar-cancel-icon.entry-9546c7c3.cjs → calendar-cancel-icon.entry-55d746cf.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-8b43441c.js → calendar-cancel-icon.entry-7543c684.js} +1 -1
- package/dist/{calendar-check-icon.entry-a03b249a.cjs → calendar-check-icon.entry-63d33f23.cjs} +1 -1
- package/dist/{calendar-check-icon.entry-4e6abda7.js → calendar-check-icon.entry-aba54652.js} +1 -1
- package/dist/{calendar-icon.entry-5b622c12.js → calendar-icon.entry-2cb3b7d1.js} +1 -1
- package/dist/{calendar-icon.entry-cd4b0ec4.cjs → calendar-icon.entry-e13add9b.cjs} +1 -1
- package/dist/checkbox-component.entry-8341a8d6.cjs +1 -0
- package/dist/checkbox-component.entry-da122544.js +43 -0
- package/dist/{checkbox-group_4.entry-b2a5b2b2.js → checkbox-group_4.entry-04561314.js} +6 -6
- package/dist/{checkbox-group_4.entry-5a4f0ed2.cjs → checkbox-group_4.entry-8854d522.cjs} +2 -2
- package/dist/{checkmark-circle-icon.entry-30582af4.js → checkmark-circle-icon.entry-1f788efc.js} +1 -1
- package/dist/{checkmark-circle-icon.entry-9617301c.cjs → checkmark-circle-icon.entry-e637e20e.cjs} +1 -1
- package/dist/{checkmark-icon_15.entry-01536ed2.js → checkmark-icon_15.entry-146c1cb0.js} +63 -63
- package/dist/checkmark-icon_15.entry-a265f687.cjs +5 -0
- package/dist/{chevron-icon_3.entry-517447a6.js → chevron-icon_3.entry-637338b5.js} +2 -2
- package/dist/chevron-icon_3.entry-6c38b5e5.cjs +1 -0
- package/dist/{clock-icon_4.entry-5351318c.cjs → clock-icon_4.entry-aa4117dc.cjs} +1 -1
- package/dist/{clock-icon_4.entry-7ea1274d.js → clock-icon_4.entry-e69395a2.js} +1 -1
- package/dist/{customParseFormat-f0d21eb3-904f1e57.js → customParseFormat-8be9be1b-2464f2ba.js} +1 -1
- package/dist/{customParseFormat-f0d21eb3-769d6bf2.cjs → customParseFormat-8be9be1b-7ad95d87.cjs} +1 -1
- package/dist/{delete-icon.entry-02e44ba1.js → delete-icon.entry-8a956edd.js} +1 -1
- package/dist/{delete-icon.entry-64b61f5c.cjs → delete-icon.entry-af0cc45b.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-2f599a22.cjs → document-refresh-icon.entry-45931416.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-fcaa84ad.js → document-refresh-icon.entry-5f58f367.js} +1 -1
- package/dist/{feedbackSync-b9c9e719-bee3fea1.cjs → feedbackSync-3db3713c-701d2eb9.cjs} +1 -1
- package/dist/{feedbackSync-b9c9e719-b54b3268.js → feedbackSync-3db3713c-aadf336b.js} +1 -1
- package/dist/{folder-icon.entry-55c123dc.cjs → folder-icon.entry-cb80c172.cjs} +1 -1
- package/dist/{folder-icon.entry-f4862c1b.js → folder-icon.entry-e5d7a651.js} +1 -1
- package/dist/{forward-icon.entry-4a41e94f.js → forward-icon.entry-59be8165.js} +1 -1
- package/dist/{forward-icon.entry-82719382.cjs → forward-icon.entry-c792734b.cjs} +1 -1
- package/dist/globe-icon.entry-0fe4a4bb.js +16 -0
- package/dist/globe-icon.entry-9ecf0255.cjs +1 -0
- package/dist/google-logo-icon_6.entry-60924f34.cjs +2 -0
- package/dist/{google-logo-icon_6.entry-b331ab60.js → google-logo-icon_6.entry-799511df.js} +270 -263
- package/dist/{google-meet-icon_5.entry-e3d44d56.cjs → google-meet-icon_5.entry-3841313d.cjs} +1 -1
- package/dist/{google-meet-icon_5.entry-eb9f7d93.js → google-meet-icon_5.entry-e753ba28.js} +1 -1
- package/dist/{inbox-icon.entry-fa9085cd.cjs → inbox-icon.entry-2b450378.cjs} +1 -1
- package/dist/{inbox-icon.entry-a385095d.js → inbox-icon.entry-61132337.js} +1 -1
- package/dist/{index-ad781fbc.js → index-2084ffd9.js} +5430 -5185
- package/dist/index-e9dc7971.cjs +118 -0
- package/dist/{index.es-ccb2a286-dfa2bfbe.js → index.es-9e756df7-42d8a4cf.js} +1 -1
- package/dist/{index.es-ccb2a286-9a2c0934.cjs → index.es-9e756df7-fa75b01e.cjs} +1 -1
- package/dist/info-icon_2.entry-8d2750ce.js +35 -0
- package/dist/info-icon_2.entry-c547775c.cjs +1 -0
- package/dist/{input-component.entry-eae64f46.js → input-component.entry-2e134e2a.js} +8 -8
- package/dist/input-component.entry-b1086460.cjs +1 -0
- package/dist/{input-dropdown_2.entry-1b55ef0c.js → input-dropdown_2.entry-1a02e672.js} +2 -2
- package/dist/input-dropdown_2.entry-cb163dc3.cjs +1 -0
- package/dist/{italic-icon.entry-4266a817.js → italic-icon.entry-0ec2793b.js} +1 -1
- package/dist/{italic-icon.entry-843feb2b.cjs → italic-icon.entry-6a3a5464.cjs} +1 -1
- package/dist/lib/elements/index.d.ts +1 -0
- package/dist/lib/notetaker/lib/store.d.ts +1 -2
- package/dist/{multi-select-dropdown.entry-854265ef.js → multi-select-dropdown.entry-15e887be.js} +2 -2
- package/dist/multi-select-dropdown.entry-daccefd5.cjs +1 -0
- package/dist/nylas-booked-event-card_11.entry-3cdf8015.cjs +1 -0
- package/dist/{nylas-booked-event-card_11.entry-ccf30d91.js → nylas-booked-event-card_11.entry-98bcc904.js} +12 -12
- package/dist/nylas-date-component_2.entry-5d4f54fa.cjs +1 -0
- package/dist/nylas-date-component_2.entry-6a98a5bf.js +289 -0
- package/dist/nylas-form-card.entry-22851b77.cjs +1 -0
- package/dist/nylas-form-card.entry-a997084f.js +58 -0
- package/dist/nylas-notification_2.entry-320a5a65.js +85 -0
- package/dist/nylas-notification_2.entry-4638126b.cjs +1 -0
- package/dist/{nylas-scheduler-editor.entry-9744694a.cjs → nylas-scheduler-editor.entry-82e0f79e.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-aa079dff.js → nylas-scheduler-editor.entry-aa62c689.js} +6 -6
- package/dist/nylas-scheduling.entry-9cef581a.cjs +1 -0
- package/dist/{nylas-scheduling.entry-7441979c.js → nylas-scheduling.entry-aec79de5.js} +10 -9
- package/dist/{person-icon.entry-acf4d22b.cjs → person-icon.entry-01a6a976.cjs} +1 -1
- package/dist/{person-icon.entry-23a69633.js → person-icon.entry-23cbe5dd.js} +1 -1
- package/dist/{play-icon.entry-aa088180.cjs → play-icon.entry-33443687.cjs} +1 -1
- package/dist/{play-icon.entry-4e7884d4.js → play-icon.entry-4a529bd2.js} +1 -1
- package/dist/radio-button-group.entry-04b7ff59.js +47 -0
- package/dist/radio-button-group.entry-65155787.cjs +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +41 -40
- package/dist/{refresh-icon.entry-d1603555.js → refresh-icon.entry-61ced881.js} +1 -1
- package/dist/{refresh-icon.entry-96cb008f.cjs → refresh-icon.entry-e4ea4811.cjs} +1 -1
- package/dist/{register-component-9d4ceee5-46f58baf.js → register-component-8bbd6492-0d8737fd.js} +1 -1
- package/dist/{register-component-9d4ceee5-6fabc42c.cjs → register-component-8bbd6492-d9a23f3c.cjs} +1 -1
- package/dist/{reply-all-icon.entry-6fae7288.js → reply-all-icon.entry-83509aaf.js} +1 -1
- package/dist/{reply-all-icon.entry-537f7718.cjs → reply-all-icon.entry-c64d923b.cjs} +1 -1
- package/dist/{reply-icon.entry-ae114e35.js → reply-icon.entry-131ade31.js} +1 -1
- package/dist/{reply-icon.entry-72fa6e4c.cjs → reply-icon.entry-4edfbb70.cjs} +1 -1
- package/dist/{sent-icon.entry-b10d5e26.js → sent-icon.entry-72fd8f16.js} +1 -1
- package/dist/{sent-icon.entry-30a6ac17.cjs → sent-icon.entry-e4f6a3ef.cjs} +1 -1
- package/dist/{spam-icon.entry-bed45849.js → spam-icon.entry-7594c792.js} +1 -1
- package/dist/{spam-icon.entry-357aa525.cjs → spam-icon.entry-c531c188.cjs} +1 -1
- package/dist/{star-icon.entry-53c85ebb.cjs → star-icon.entry-a75255ff.cjs} +1 -1
- package/dist/{star-icon.entry-010349a5.js → star-icon.entry-adbe1bb3.js} +1 -1
- package/dist/{stop-icon.entry-20af3bf5.cjs → stop-icon.entry-079b28c6.cjs} +1 -1
- package/dist/{stop-icon.entry-18f650bf.js → stop-icon.entry-e95993f2.js} +1 -1
- package/dist/textarea-component.entry-920a81ac.cjs +1 -0
- package/dist/textarea-component.entry-f5d74fb8.js +39 -0
- package/dist/toggle-switch.entry-33273409.js +34 -0
- package/dist/toggle-switch.entry-ba6b4f33.cjs +1 -0
- package/dist/{translate-icon.entry-2308a8e4.js → translate-icon.entry-01cbe664.js} +1 -1
- package/dist/{translate-icon.entry-7cb7a479.cjs → translate-icon.entry-f33632d6.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-c70b9326.cjs → trash-fill-icon.entry-298eece8.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-7f410c82.js → trash-fill-icon.entry-b39ff771.js} +1 -1
- package/dist/{underline-icon.entry-23f478f3.cjs → underline-icon.entry-3704187c.cjs} +1 -1
- package/dist/{underline-icon.entry-58ef1a9f.js → underline-icon.entry-39179a2e.js} +1 -1
- package/package.json +3 -3
- package/dist/calendar-agenda-fill-icon_36.entry-75d7cd5b.cjs +0 -6
- package/dist/calendar-agenda-fill-icon_36.entry-78fc2e0d.js +0 -4708
- package/dist/checkbox-component_2.entry-82f4b1f2.js +0 -115
- package/dist/checkbox-component_2.entry-c9c8a87d.cjs +0 -1
- package/dist/checkmark-icon_15.entry-c5eaad9b.cjs +0 -5
- package/dist/chevron-icon_3.entry-26f14744.cjs +0 -1
- package/dist/globe-icon_2.entry-3f0e408e.cjs +0 -1
- package/dist/globe-icon_2.entry-8f5c79b2.js +0 -210
- package/dist/google-logo-icon_6.entry-9c91c3d4.cjs +0 -2
- package/dist/index-dc6efb5e.cjs +0 -118
- package/dist/info-icon_2.entry-9f32753b.cjs +0 -1
- package/dist/info-icon_2.entry-c18a111e.js +0 -35
- package/dist/input-component.entry-ff9e04c9.cjs +0 -1
- package/dist/input-dropdown_2.entry-67d6d292.cjs +0 -1
- package/dist/multi-select-dropdown.entry-ca9acf75.cjs +0 -1
- package/dist/nylas-booked-event-card_11.entry-8d3e2019.cjs +0 -1
- package/dist/nylas-form-card.entry-481ede48.js +0 -58
- package/dist/nylas-form-card.entry-58162c72.cjs +0 -1
- package/dist/nylas-notification_2.entry-7d3ed3b0.js +0 -85
- package/dist/nylas-notification_2.entry-dffa3ff6.cjs +0 -1
- package/dist/nylas-scheduling.entry-b1fcb48f.cjs +0 -1
- package/dist/radio-button-group.entry-243d7988.js +0 -47
- package/dist/radio-button-group.entry-cea225c8.cjs +0 -1
- package/dist/textarea-component.entry-b19642f1.cjs +0 -1
- package/dist/textarea-component.entry-e6120440.js +0 -39
- package/dist/toggle-switch.entry-32b0e964.js +0 -34
- package/dist/toggle-switch.entry-becdda2c.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as te, h as n, a as
|
|
2
|
-
import { R as be } from "./register-component-
|
|
3
|
-
import { n as
|
|
4
|
-
import { C as
|
|
5
|
-
import { E as
|
|
1
|
+
import { r as te, h as n, a as m, b, i, q as _e, s as le, H as ce, g as pe, F as de, j as at } from "./index-2084ffd9.js";
|
|
2
|
+
import { R as be } from "./register-component-8bbd6492-0d8737fd.js";
|
|
3
|
+
import { n as _ } from "./index.es-9e756df7-42d8a4cf.js";
|
|
4
|
+
import { C as I, D as $e, e as ot, b as st } from "./constants-f51538ef-e0a5f026.js";
|
|
5
|
+
import { E as v, i as Je, a as Ve, c as Ze, b as We, f as qe } from "./feedbackSync-3db3713c-aadf336b.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react/jsx-runtime";
|
|
8
8
|
import "react-dom";
|
|
9
|
-
const
|
|
9
|
+
const rt = ".sc-google-logo-icon-h{display:flex}", it = rt, lt = class {
|
|
10
10
|
constructor(e) {
|
|
11
11
|
te(this, e), this.width = "24", this.height = "24";
|
|
12
12
|
}
|
|
@@ -14,8 +14,8 @@ const st = ".sc-google-logo-icon-h{display:flex}", rt = st, it = class {
|
|
|
14
14
|
return n("svg", { key: "eb0615e5875a4d560edb09dd85fcf0b8bbeb5458", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "7d040d5b5bc8cf89eabff2ed2695f99bea692b4e", "clip-path": "url(#clip0_959_12452)" }, n("path", { key: "4ddc28c0799291a0c23538444f1c7f5a35959cac", 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: "d5b051bacfa0110b66c99273ba6fd591a68237d1", 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: "6fc0685305b1c96ce35fbf87ccab73f161d648c0", 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: "5946c791195dd03d48b4938d8698ba8e01a7a0b3", 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: "9d33e98420dbd0f952496686fd02f41894ab49f4" }, n("clipPath", { key: "dd192b07d7651bbd74375c1a31e0f3027d9b9a10", id: "clip0_959_12452" }, n("rect", { key: "98c2344df7d506d2579cd793d89fb42feeace8fd", width: 24, height: 24, fill: "white" }))));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
const
|
|
17
|
+
lt.style = it;
|
|
18
|
+
const dt = ".sc-microsoft-logo-icon-h{display:flex}", ct = dt, pt = class {
|
|
19
19
|
constructor(e) {
|
|
20
20
|
te(this, e), this.width = "22", this.height = "22";
|
|
21
21
|
}
|
|
@@ -23,12 +23,12 @@ const lt = ".sc-microsoft-logo-icon-h{display:flex}", dt = lt, ct = class {
|
|
|
23
23
|
return n("svg", { key: "a6a6af29ed81710f3f493d849c90871991e0be0f", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { key: "025c40cab8337a37897481fb47580f219b3ad528", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), n("path", { key: "d7e67a46de5217cfa54f8973616616a9fd4fb474", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), n("path", { key: "2f4162db32fb29afb4f88c3070e59e8dc574a732", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), n("path", { key: "4ec074b89f50e66765e199ae112d063ca21b541a", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
pt.style = ct;
|
|
27
27
|
var u;
|
|
28
28
|
(function(e) {
|
|
29
29
|
e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
|
|
30
30
|
})(u || (u = {}));
|
|
31
|
-
function
|
|
31
|
+
function bt({ id: e, formState: t, activeTab: a }, s) {
|
|
32
32
|
return n(
|
|
33
33
|
de,
|
|
34
34
|
null,
|
|
@@ -116,8 +116,8 @@ function pt({ id: e, formState: t, activeTab: a }, s) {
|
|
|
116
116
|
)
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
var
|
|
119
|
+
const ut = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);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)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.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;text-align:left;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.sc-nylas-editor-tabs:last-of-type{margin-bottom: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 .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.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}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.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:16px;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}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.save-changes.sc-nylas-editor-tabs{min-width:140px}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', ht = ut;
|
|
120
|
+
var yt = function(e, t, a, s) {
|
|
121
121
|
var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
|
|
122
122
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
123
123
|
r = Reflect.decorate(e, t, a, s);
|
|
@@ -131,15 +131,15 @@ var ht = function(e, t, a, s) {
|
|
|
131
131
|
};
|
|
132
132
|
const Ke = class {
|
|
133
133
|
constructor(e) {
|
|
134
|
-
te(this, e), this.schedulerConfigChanged =
|
|
135
|
-
var ve, we, ke, Ce, xe, Ee, Se, Te, Le, Fe, Oe, Be, Pe,
|
|
134
|
+
te(this, e), this.schedulerConfigChanged = m(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = m(this, "schedulerConfigCreated", 7), this.cancelButtonClick = m(this, "cancelButtonClick", 7), this.formSubmitted = m(this, "formSubmitted", 7), this.previewButtonClicked = m(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = m(this, "schedulerEditorFormUpdated", 7), this.nylasSchedulerError = m(this, "nylasSchedulerError", 6), this.dismissNotification = m(this, "dismissNotification", 7), this.formSubmissionHandler = async (t) => {
|
|
135
|
+
var ve, we, ke, Ce, xe, Ee, Se, Te, Le, Fe, Oe, Be, Pe, Ne, He, ze, Ie;
|
|
136
136
|
t.preventDefault();
|
|
137
137
|
const a = await this.formSubmitted.emit();
|
|
138
138
|
if (b("[nylas-editor-tabs]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
|
|
139
139
|
this.setError({
|
|
140
140
|
message: this.formRef.validationMessage || i.t("fixFormErrors"),
|
|
141
|
-
type:
|
|
142
|
-
category:
|
|
141
|
+
type: _.Error,
|
|
142
|
+
category: v.Component,
|
|
143
143
|
title: i.t("nylasEditorTabs.formErrorTitle")
|
|
144
144
|
});
|
|
145
145
|
return;
|
|
@@ -147,10 +147,10 @@ const Ke = class {
|
|
|
147
147
|
this.isLoading = !0, this.hasUnsavedChanges = !1;
|
|
148
148
|
const l = this.updateFormState();
|
|
149
149
|
b("[nylas-editor-tabs]", "formState", l);
|
|
150
|
-
const { title: r, description: o, duration: d, availability: c, bookingCalendar: p, location: h, bookingType:
|
|
150
|
+
const { title: r, description: o, duration: d, availability: c, bookingCalendar: p, location: h, bookingType: f, buffer: k, availableDaysInFuture: T, minCancellationNotice: O, minBookingNotice: U, cancellationPolicy: H, timeslotInterval: L, additionalGuestsHidden: z, hideCancellationOptions: D, hideReschedulingOptions: R, participants: F, participantOpenHours: E, participantSpecificDateOpenHours: B, additionalFields: w, participantCalendars: C, conferencing: A, participantBookingCalendars: S, reminders: $, emailTemplate: j, redirectUrl: G, availabilityMethod: J, slug: Z, appearance: Y, name: q, disableEmails: Q, organizerLocale: X } = l, x = ((we = (ve = this.selectedConfiguration) == null ? void 0 : ve.participants) == null ? void 0 : we.find((y) => y.is_organizer)) || (F == null ? void 0 : F.find((y) => y.is_organizer)), V = C && (x != null && x.email) ? C[x == null ? void 0 : x.email] : [], P = ((ke = x == null ? void 0 : x.booking) == null ? void 0 : ke.calendar_id) || p, N = d ? parseInt(d) : 30, M = F && (F == null ? void 0 : F.length) > 0 ? F : [
|
|
151
151
|
{
|
|
152
|
-
name: (
|
|
153
|
-
email: (
|
|
152
|
+
name: (x == null ? void 0 : x.name) ?? ((Ce = this.currentUser) == null ? void 0 : Ce.name) ?? "",
|
|
153
|
+
email: (x == null ? void 0 : x.email) ?? ((xe = this.currentUser) == null ? void 0 : xe.email) ?? "",
|
|
154
154
|
is_organizer: !0,
|
|
155
155
|
timezone: (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
156
156
|
availability: {
|
|
@@ -162,53 +162,55 @@ const Ke = class {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
];
|
|
165
|
-
let
|
|
166
|
-
this.selectedEventType && this.selectedEventType !==
|
|
167
|
-
const
|
|
165
|
+
let K = J || (((Te = (Se = (Ee = this.selectedConfiguration) == null ? void 0 : Ee.availability) == null ? void 0 : Se.availability_rules) == null ? void 0 : Te.availability_method) ?? "collective");
|
|
166
|
+
this.selectedEventType && this.selectedEventType !== I.group && (K = this.selectedEventType === I.one_on_one ? I.collective : this.selectedEventType);
|
|
167
|
+
const ne = {
|
|
168
168
|
...((Le = this.selectedConfiguration) == null ? void 0 : Le.id) && { id: this.selectedConfiguration.id },
|
|
169
169
|
version: ((Fe = this.selectedConfiguration) == null ? void 0 : Fe.version) ?? "1.0.0",
|
|
170
|
-
slug:
|
|
171
|
-
name:
|
|
170
|
+
slug: Z,
|
|
171
|
+
name: q,
|
|
172
172
|
availability: {
|
|
173
|
-
duration_minutes:
|
|
174
|
-
interval_minutes: (
|
|
175
|
-
round_to:
|
|
173
|
+
duration_minutes: N,
|
|
174
|
+
interval_minutes: (L == null ? void 0 : L.interval) ?? N,
|
|
175
|
+
round_to: L == null ? void 0 : L.roundTo,
|
|
176
176
|
availability_rules: {
|
|
177
|
-
availability_method:
|
|
177
|
+
availability_method: K,
|
|
178
178
|
buffer: k || { before: 0, after: 0 },
|
|
179
179
|
default_open_hours: (c == null ? void 0 : c.openHours) ?? ((Pe = (Be = (Oe = this.selectedConfiguration) == null ? void 0 : Oe.availability) == null ? void 0 : Be.availability_rules) == null ? void 0 : Pe.default_open_hours) ?? $e,
|
|
180
|
-
round_robin_group_id: ((ze = (
|
|
180
|
+
round_robin_group_id: ((ze = (He = (Ne = this.selectedConfiguration) == null ? void 0 : Ne.availability) == null ? void 0 : He.availability_rules) == null ? void 0 : ze.round_robin_group_id) ?? ""
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
participants: [
|
|
184
|
-
...
|
|
184
|
+
...M ? M.map((y) => {
|
|
185
185
|
var Ge, Ue, De, Re, je, Me;
|
|
186
186
|
let ee = (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
187
|
-
if ((Ge =
|
|
188
|
-
const Ae =
|
|
187
|
+
if ((Ge = E == null ? void 0 : E[y.email]) != null && Ge.length && (ee = (De = (Ue = E == null ? void 0 : E[y.email]) == null ? void 0 : Ue[0]) == null ? void 0 : De.timezone), y.is_organizer) {
|
|
188
|
+
const Ae = S != null && S[y.email] ? S == null ? void 0 : S[y.email] : P || "primary", he = C != null && C[y.email] ? C == null ? void 0 : C[y.email] : V != null && V.length ? V : ["primary"], nt = he.length === 1 && he[0] === "primary";
|
|
189
189
|
return {
|
|
190
|
-
name:
|
|
191
|
-
email:
|
|
190
|
+
name: y.name ?? "",
|
|
191
|
+
email: y.email,
|
|
192
192
|
is_organizer: !0,
|
|
193
193
|
timezone: ee,
|
|
194
194
|
availability: {
|
|
195
|
-
calendar_ids:
|
|
196
|
-
open_hours: (
|
|
195
|
+
calendar_ids: nt ? [Ae] : he,
|
|
196
|
+
open_hours: (E == null ? void 0 : E[y.email]) ?? ((Re = y.availability) == null ? void 0 : Re.open_hours) ?? []
|
|
197
197
|
},
|
|
198
|
+
specific_date_open_hours: (B == null ? void 0 : B[y.email]) ?? y.specific_date_open_hours ?? [],
|
|
198
199
|
booking: {
|
|
199
200
|
calendar_id: Ae
|
|
200
201
|
}
|
|
201
202
|
};
|
|
202
203
|
}
|
|
203
|
-
const
|
|
204
|
+
const ae = S != null && S[y.email] ? { calendar_id: S == null ? void 0 : S[y.email] } : (y == null ? void 0 : y.booking) ?? void 0, ue = (C == null ? void 0 : C[y.email]) ?? ((je = y.availability) == null ? void 0 : je.calendar_ids) ?? ["primary"], tt = ue.length === 1 && ue[0] === "primary";
|
|
204
205
|
return {
|
|
205
|
-
...
|
|
206
|
+
...y,
|
|
206
207
|
timezone: ee,
|
|
207
|
-
availability:
|
|
208
|
-
calendar_ids:
|
|
209
|
-
open_hours: (
|
|
208
|
+
availability: y.availability ? {
|
|
209
|
+
calendar_ids: tt && typeof ae < "u" ? [ae == null ? void 0 : ae.calendar_id] : ue,
|
|
210
|
+
open_hours: (E == null ? void 0 : E[y.email]) ?? ((Me = y.availability) == null ? void 0 : Me.open_hours) ?? []
|
|
210
211
|
} : void 0,
|
|
211
|
-
booking:
|
|
212
|
+
booking: ae,
|
|
213
|
+
specific_date_open_hours: (B == null ? void 0 : B[y.email]) ?? y.specific_date_open_hours ?? []
|
|
212
214
|
};
|
|
213
215
|
}) : []
|
|
214
216
|
],
|
|
@@ -216,40 +218,40 @@ const Ke = class {
|
|
|
216
218
|
title: (r == null ? void 0 : r.toString()) ?? "",
|
|
217
219
|
description: (o == null ? void 0 : o.toString()) ?? "",
|
|
218
220
|
location: (h == null ? void 0 : h.toString()) ?? "",
|
|
219
|
-
booking_type: (
|
|
221
|
+
booking_type: (f == null ? void 0 : f.toString()) ?? "booking",
|
|
220
222
|
timezone: (c == null ? void 0 : c.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
221
|
-
conferencing:
|
|
223
|
+
conferencing: A,
|
|
222
224
|
reminders: $,
|
|
223
|
-
disable_emails: typeof
|
|
225
|
+
disable_emails: typeof Q == "boolean" ? Q : !1
|
|
224
226
|
},
|
|
225
227
|
scheduler: {
|
|
226
|
-
cancellation_policy:
|
|
227
|
-
available_days_in_future:
|
|
228
|
-
min_cancellation_notice:
|
|
229
|
-
min_booking_notice:
|
|
230
|
-
hide_additional_guests:
|
|
231
|
-
hide_cancellation_options:
|
|
232
|
-
hide_rescheduling_options:
|
|
233
|
-
additional_fields:
|
|
234
|
-
email_template:
|
|
235
|
-
...
|
|
228
|
+
cancellation_policy: H ?? "",
|
|
229
|
+
available_days_in_future: T ?? 30,
|
|
230
|
+
min_cancellation_notice: O ?? 0,
|
|
231
|
+
min_booking_notice: U ?? 60,
|
|
232
|
+
hide_additional_guests: z ?? !1,
|
|
233
|
+
hide_cancellation_options: D ?? !1,
|
|
234
|
+
hide_rescheduling_options: R ?? !1,
|
|
235
|
+
additional_fields: w,
|
|
236
|
+
email_template: j ? {
|
|
237
|
+
...j,
|
|
236
238
|
organizer_locale: X || "en",
|
|
237
|
-
logo:
|
|
239
|
+
logo: j.logo || ""
|
|
238
240
|
} : void 0,
|
|
239
|
-
confirmation_redirect_url:
|
|
241
|
+
confirmation_redirect_url: G
|
|
240
242
|
},
|
|
241
|
-
appearance:
|
|
242
|
-
},
|
|
243
|
-
this.isConfigRoundRobin(
|
|
244
|
-
const
|
|
243
|
+
appearance: Y
|
|
244
|
+
}, oe = _e(this.selectedConfiguration, ne || {}), W = this.action === "create" ? oe : ne;
|
|
245
|
+
this.isConfigRoundRobin(W) && (W.participants = W.participants.map((y) => ({ ...y, is_organizer: void 0 })));
|
|
246
|
+
const se = (y) => {
|
|
245
247
|
this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
|
|
246
248
|
this.changesSaved = !1;
|
|
247
249
|
}, 5e3);
|
|
248
|
-
},
|
|
250
|
+
}, re = this.checkForBookingFormErrors(W), ie = ((Ie = this.configurations) == null ? void 0 : Ie.find((y) => {
|
|
249
251
|
var ee;
|
|
250
|
-
return
|
|
251
|
-
})) || {},
|
|
252
|
-
|
|
252
|
+
return y.id === ((ee = this.selectedConfiguration) == null ? void 0 : ee.id);
|
|
253
|
+
})) || {}, et = this.checkForOrganizerConfirmationError(_e(W, ie));
|
|
254
|
+
re || et || this.schedulerConfigChanged.emit({ config: W, resetLoadingState: se, action: this.action, host: this.host });
|
|
253
255
|
}, this.isConfigRoundRobin = (t) => {
|
|
254
256
|
var a, s, l, r;
|
|
255
257
|
return ((s = (a = t == null ? void 0 : t.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : s.availability_method) === "max-availability" || ((r = (l = t.availability) == null ? void 0 : l.availability_rules) == null ? void 0 : r.availability_method) === "max-fairness";
|
|
@@ -259,8 +261,8 @@ const Ke = class {
|
|
|
259
261
|
const l = ((o = t.event_booking) == null ? void 0 : o.booking_type) === "organizer-confirmation", r = (d = t.scheduler) == null ? void 0 : d.organizer_confirmation_url;
|
|
260
262
|
return l && !r && (s += "Organizer confirmation URL is required when using organizer confirmation booking type.", a = !0), a && (this.isLoading = !1, this.host.setError({
|
|
261
263
|
message: s,
|
|
262
|
-
type:
|
|
263
|
-
category:
|
|
264
|
+
type: _.Error,
|
|
265
|
+
category: v.Component,
|
|
264
266
|
title: "Error:"
|
|
265
267
|
})), a;
|
|
266
268
|
}, this.checkForBookingFormErrors = (t) => {
|
|
@@ -282,14 +284,14 @@ const Ke = class {
|
|
|
282
284
|
}
|
|
283
285
|
})), a && (this.isLoading = !1, this.host.setError({
|
|
284
286
|
message: s,
|
|
285
|
-
type:
|
|
286
|
-
category:
|
|
287
|
+
type: _.Error,
|
|
288
|
+
category: v.Component,
|
|
287
289
|
title: i.t("nylasEditorTabs.bookingFormError")
|
|
288
290
|
})), a;
|
|
289
291
|
}, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = u.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = {
|
|
290
292
|
message: "",
|
|
291
|
-
type:
|
|
292
|
-
category:
|
|
293
|
+
type: _.Error,
|
|
294
|
+
category: v.Component,
|
|
293
295
|
title: ""
|
|
294
296
|
};
|
|
295
297
|
}
|
|
@@ -325,8 +327,8 @@ const Ke = class {
|
|
|
325
327
|
var e, t;
|
|
326
328
|
(e = this.error) != null && e.message && this.dismissNotification.emit({ id: (t = this.error) == null ? void 0 : t.message.split(" ").join("-"), host: this.host }), this.error = {
|
|
327
329
|
message: "",
|
|
328
|
-
type:
|
|
329
|
-
category:
|
|
330
|
+
type: _.Error,
|
|
331
|
+
category: v.Component,
|
|
330
332
|
title: ""
|
|
331
333
|
};
|
|
332
334
|
}
|
|
@@ -340,7 +342,7 @@ const Ke = class {
|
|
|
340
342
|
var t, a;
|
|
341
343
|
b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Je() && Ve({
|
|
342
344
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
343
|
-
release: "2.0.
|
|
345
|
+
release: "2.0.4",
|
|
344
346
|
integrations: (s) => [
|
|
345
347
|
...s.filter((l) => !1),
|
|
346
348
|
qe({
|
|
@@ -360,7 +362,7 @@ const Ke = class {
|
|
|
360
362
|
handleValueChanged(e) {
|
|
361
363
|
b("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
362
364
|
const { name: t, value: a } = e.detail;
|
|
363
|
-
console.
|
|
365
|
+
console.debug("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, this.resetError(), ot.includes(t) && (this.hasUnsavedChanges = !0), this.schedulerEditorFormUpdated.emit({
|
|
364
366
|
value: e.detail.value,
|
|
365
367
|
name: e.detail.name
|
|
366
368
|
});
|
|
@@ -384,7 +386,7 @@ const Ke = class {
|
|
|
384
386
|
captureContext: {
|
|
385
387
|
tags: {
|
|
386
388
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
387
|
-
"nylas-web-element-version": "2.0.
|
|
389
|
+
"nylas-web-element-version": "2.0.4",
|
|
388
390
|
"nylas-config-id": (r = this.selectedConfiguration) == null ? void 0 : r.id,
|
|
389
391
|
"nylas-slug": (o = this.selectedConfiguration) == null ? void 0 : o.slug,
|
|
390
392
|
"host-url": window.location.href
|
|
@@ -400,8 +402,8 @@ const Ke = class {
|
|
|
400
402
|
e.message && this.nylasSchedulerError.emit({
|
|
401
403
|
notification: {
|
|
402
404
|
title: e.title,
|
|
403
|
-
category: e.category ||
|
|
404
|
-
type: e.type ||
|
|
405
|
+
category: e.category || v.Component,
|
|
406
|
+
type: e.type || _.Error,
|
|
405
407
|
description: e.message,
|
|
406
408
|
id: e.message.split(" ").join("-"),
|
|
407
409
|
ttl: "none"
|
|
@@ -410,54 +412,54 @@ const Ke = class {
|
|
|
410
412
|
});
|
|
411
413
|
}
|
|
412
414
|
getFormStateFromConfig(e) {
|
|
413
|
-
var a, s, l, r, o, d, c, p, h,
|
|
414
|
-
let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((
|
|
415
|
-
return !t && ((l = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : l.availability_method) !== "collective" && (t = (r = e == null ? void 0 : e.participants) == null ? void 0 : r.find((
|
|
416
|
-
var
|
|
417
|
-
return
|
|
415
|
+
var a, s, l, r, o, d, c, p, h, f, k, T, O, U, H, L, z, D, R, F, E, B, w, C, A, S, $, j, G, J, Z, Y, q, Q, X, x, V;
|
|
416
|
+
let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((P) => P.is_organizer);
|
|
417
|
+
return !t && ((l = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : l.availability_method) !== "collective" && (t = (r = e == null ? void 0 : e.participants) == null ? void 0 : r.find((P) => {
|
|
418
|
+
var N;
|
|
419
|
+
return P.email === ((N = this.currentUser) == null ? void 0 : N.email);
|
|
418
420
|
}), t && (t.is_organizer = !0)), e != null && e.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
|
|
419
421
|
title: ((o = e == null ? void 0 : e.event_booking) == null ? void 0 : o.title) ?? "",
|
|
420
422
|
description: ((d = e == null ? void 0 : e.event_booking) == null ? void 0 : d.description) ?? "",
|
|
421
423
|
duration: ((p = (c = e == null ? void 0 : e.availability) == null ? void 0 : c.duration_minutes) == null ? void 0 : p.toString()) ?? "30",
|
|
422
424
|
availability: {
|
|
423
425
|
timezone: ((h = e == null ? void 0 : e.event_booking) == null ? void 0 : h.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
424
|
-
openHours: ((k = (
|
|
426
|
+
openHours: ((k = (f = e == null ? void 0 : e.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : k.default_open_hours) ?? $e
|
|
425
427
|
},
|
|
426
|
-
additionalFields: ((
|
|
427
|
-
conferencing: ((
|
|
428
|
-
calendarIds: ((
|
|
428
|
+
additionalFields: ((T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.additional_fields) ?? {},
|
|
429
|
+
conferencing: ((O = e == null ? void 0 : e.event_booking) == null ? void 0 : O.conferencing) ?? {},
|
|
430
|
+
calendarIds: ((U = t == null ? void 0 : t.availability) == null ? void 0 : U.calendar_ids) ?? [],
|
|
429
431
|
participants: (e == null ? void 0 : e.participants) ?? [],
|
|
430
|
-
bookingCalendar: ((
|
|
431
|
-
location: ((
|
|
432
|
-
bookingType: ((
|
|
433
|
-
buffer: ((
|
|
434
|
-
cancellationPolicy: ((
|
|
435
|
-
availableDaysInFuture: ((
|
|
436
|
-
minCancellationNotice: ((
|
|
437
|
-
minBookingNotice: ((
|
|
432
|
+
bookingCalendar: ((H = t == null ? void 0 : t.booking) == null ? void 0 : H.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
|
|
433
|
+
location: ((L = e == null ? void 0 : e.event_booking) == null ? void 0 : L.location) ?? "",
|
|
434
|
+
bookingType: ((z = e == null ? void 0 : e.event_booking) == null ? void 0 : z.booking_type) ?? "booking",
|
|
435
|
+
buffer: ((R = (D = e == null ? void 0 : e.availability) == null ? void 0 : D.availability_rules) == null ? void 0 : R.buffer) ?? { before: 0, after: 0 },
|
|
436
|
+
cancellationPolicy: ((F = e == null ? void 0 : e.scheduler) == null ? void 0 : F.cancellation_policy) ?? "",
|
|
437
|
+
availableDaysInFuture: ((E = e == null ? void 0 : e.scheduler) == null ? void 0 : E.available_days_in_future) ?? 30,
|
|
438
|
+
minCancellationNotice: ((B = e == null ? void 0 : e.scheduler) == null ? void 0 : B.min_cancellation_notice) ?? 0,
|
|
439
|
+
minBookingNotice: ((w = e == null ? void 0 : e.scheduler) == null ? void 0 : w.min_booking_notice) ?? 60,
|
|
438
440
|
timeslotInterval: {
|
|
439
|
-
interval: ((
|
|
440
|
-
roundTo: (
|
|
441
|
+
interval: ((C = e == null ? void 0 : e.availability) == null ? void 0 : C.interval_minutes) ?? ((A = e == null ? void 0 : e.availability) == null ? void 0 : A.duration_minutes),
|
|
442
|
+
roundTo: (S = e == null ? void 0 : e.availability) == null ? void 0 : S.round_to
|
|
441
443
|
},
|
|
442
|
-
additionalGuestsHidden: ((
|
|
443
|
-
hideCancellationOptions: ((
|
|
444
|
-
hideReschedulingOptions: ((
|
|
445
|
-
participantBookingCalendars: ((
|
|
446
|
-
var
|
|
447
|
-
return (
|
|
444
|
+
additionalGuestsHidden: (($ = e == null ? void 0 : e.scheduler) == null ? void 0 : $.hide_additional_guests) ?? !1,
|
|
445
|
+
hideCancellationOptions: ((j = e == null ? void 0 : e.scheduler) == null ? void 0 : j.hide_cancellation_options) ?? !1,
|
|
446
|
+
hideReschedulingOptions: ((G = e == null ? void 0 : e.scheduler) == null ? void 0 : G.hide_rescheduling_options) ?? !1,
|
|
447
|
+
participantBookingCalendars: ((J = e == null ? void 0 : e.participants) == null ? void 0 : J.reduce((P, N) => {
|
|
448
|
+
var M, K;
|
|
449
|
+
return (M = N.booking) != null && M.calendar_id && (P[N.email] = (K = N.booking) == null ? void 0 : K.calendar_id), P;
|
|
448
450
|
})) ?? {},
|
|
449
|
-
participantCalendars: ((Z = e == null ? void 0 : e.participants) == null ? void 0 : Z.reduce((
|
|
450
|
-
var
|
|
451
|
-
return
|
|
451
|
+
participantCalendars: ((Z = e == null ? void 0 : e.participants) == null ? void 0 : Z.reduce((P, N) => {
|
|
452
|
+
var M;
|
|
453
|
+
return P[N.email] = (M = N.availability) == null ? void 0 : M.calendar_ids, P;
|
|
452
454
|
}, {})) ?? {},
|
|
453
|
-
reminders: (
|
|
454
|
-
emailTemplate: (
|
|
455
|
-
redirectUrl: (
|
|
455
|
+
reminders: (Y = e == null ? void 0 : e.event_booking) == null ? void 0 : Y.reminders,
|
|
456
|
+
emailTemplate: (q = e == null ? void 0 : e.scheduler) == null ? void 0 : q.email_template,
|
|
457
|
+
redirectUrl: (Q = e == null ? void 0 : e.scheduler) == null ? void 0 : Q.confirmation_redirect_url,
|
|
456
458
|
slug: e == null ? void 0 : e.slug,
|
|
457
459
|
appearance: e == null ? void 0 : e.appearance,
|
|
458
460
|
name: e == null ? void 0 : e.name,
|
|
459
|
-
disableEmails: (
|
|
460
|
-
organizerLocale: (
|
|
461
|
+
disableEmails: (X = e == null ? void 0 : e.event_booking) == null ? void 0 : X.disable_emails,
|
|
462
|
+
organizerLocale: (V = (x = e == null ? void 0 : e.scheduler) == null ? void 0 : x.email_template) == null ? void 0 : V.organizer_locale
|
|
461
463
|
};
|
|
462
464
|
}
|
|
463
465
|
setFormState(e, t) {
|
|
@@ -520,6 +522,11 @@ const Ke = class {
|
|
|
520
522
|
this.formState.participantOpenHours = a;
|
|
521
523
|
break;
|
|
522
524
|
}
|
|
525
|
+
case "participant-custom-availability-specific-date": {
|
|
526
|
+
const a = JSON.parse(e.toString());
|
|
527
|
+
this.formState.participantSpecificDateOpenHours = a;
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
523
530
|
case "additional-fields":
|
|
524
531
|
this.formState.additionalFields = JSON.parse(e.toString());
|
|
525
532
|
break;
|
|
@@ -544,7 +551,7 @@ const Ke = class {
|
|
|
544
551
|
this.formState.availabilityMethod = e.toString();
|
|
545
552
|
break;
|
|
546
553
|
case "custom-event-slug":
|
|
547
|
-
|
|
554
|
+
this.formState.slug = JSON.parse(e.toString());
|
|
548
555
|
break;
|
|
549
556
|
case "page-styling":
|
|
550
557
|
this.formState.appearance = JSON.parse(e.toString());
|
|
@@ -575,16 +582,16 @@ const Ke = class {
|
|
|
575
582
|
}
|
|
576
583
|
render() {
|
|
577
584
|
var e, t, a, s, l, r;
|
|
578
|
-
return b("[nylas-editor-tabs]", "render", this.formState), n(ce, { key: "
|
|
585
|
+
return b("[nylas-editor-tabs]", "render", this.formState), n(ce, { key: "6ca488a564b21a08e45b3244cb4ced9f85a0985c" }, n("nylas-notification", { key: "6d2a7efa9f9da70baa1a54068dd7d716c75a66af" }), n("form", { key: "8b50247449d19e0973742c602dcbce593f475397", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (o) => this.formRef = o, noValidate: !0 }, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: u.EventInfo, class: { tab: !0, active: this.activeTab == u.EventInfo, hide: this.hideTab(u.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (o) => this.setActiveTab(o, u.EventInfo) }, n("calendar-info-icon", { width: "16", height: "16" }), i.t("eventInfoTab")), n("button", { name: u.Availability, class: { tab: !0, active: this.activeTab == u.Availability, hide: this.hideTab(u.Availability) }, part: "editortab__availability net__tab-availability", onClick: (o) => this.setActiveTab(o, u.Availability) }, n("calendar-patterns-icon", { width: "16", height: "16" }), i.t("availabilityTab")), n("button", { name: u.Participants, class: { tab: !0, active: this.activeTab == u.Participants, hide: this.hideTab(u.Participants) }, part: "editortab__participants net__tab-participants", onClick: (o) => this.setActiveTab(o, u.Participants) }, n("people-icon", { width: "16", height: "16" }), i.t("participantsTab")), n("button", { name: u.BookingOptions, class: { tab: !0, active: this.activeTab == u.BookingOptions, hide: this.hideTab(u.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (o) => this.setActiveTab(o, u.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), i.t("bookingOptionsTab")), n("button", { name: u.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(u.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (o) => this.setActiveTab(o, u.BookingForm) }, this.activeTab == u.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), i.t("bookingFormTab")), n("button", { name: u.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(u.Communications) }, onClick: (o) => this.setActiveTab(o, u.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == u.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), i.t("communicationsTab")), n("button", { name: u.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(u.PageStyles) }, onClick: (o) => this.setActiveTab(o, u.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == u.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), i.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(bt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: i }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "d7de8b7a716d828500f7b9bebaf23a03cfe976ce", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "723b3a4f0f51b2299cc62df9acef294ce56c3a3a", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (o) => this.onFeedbackClick(o) }, n("feedback-icon", null))), n("div", { key: "8a5d4e5fe8d2273d292b99ff2a24172db259e96c", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "c1384269cb3013cd80e2f839047a6e52046ec4cc", class: {
|
|
579
586
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
580
587
|
"saved-changes": this.changesSaved,
|
|
581
588
|
error: ((a = this.error) == null ? void 0 : a.message) !== "",
|
|
582
589
|
"error-full-width": ((s = this.error) == null ? void 0 : s.message) !== "" && this.action === "create"
|
|
583
590
|
} }, ((l = this.error) == null ? void 0 : l.message) == "" && this.hasUnsavedChanges && !this.changesSaved ? i.t("unsavedChangesLabel") : ((r = this.error) == null ? void 0 : r.message) == "" && this.changesSaved ? `${i.t("changesSavedLabel")}!` : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (o) => {
|
|
584
591
|
o.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(le(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
585
|
-
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "
|
|
592
|
+
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "007442ac7bc65c8a31312ce9f36891f555b093a8", type: "button", disabled: this.isLoading, clickHandler: (o) => {
|
|
586
593
|
o.preventDefault(), this.cancelButtonClick.emit(), this.host.resetError();
|
|
587
|
-
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("
|
|
594
|
+
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("cancelButton")), n("button-component", { key: "0f9b07bea8175cfae787596d7a41b3f7c4bc7468", class: { "save-changes": this.action === "edit" }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, i.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${i.t("createButtonText")}` : `${i.t("saveChangesButtonText")}`)))), this.showFeedbackModal && n("nylas-feedback-form", null));
|
|
588
595
|
}
|
|
589
596
|
get host() {
|
|
590
597
|
return pe(this);
|
|
@@ -597,7 +604,7 @@ const Ke = class {
|
|
|
597
604
|
};
|
|
598
605
|
}
|
|
599
606
|
};
|
|
600
|
-
|
|
607
|
+
yt([
|
|
601
608
|
be({
|
|
602
609
|
name: "nylas-editor-tabs",
|
|
603
610
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -614,8 +621,8 @@ ht([
|
|
|
614
621
|
const [p, h] = d;
|
|
615
622
|
!p && h ? s.setError({
|
|
616
623
|
message: h.message || i.t("genericErrorTitle"),
|
|
617
|
-
type:
|
|
618
|
-
category:
|
|
624
|
+
type: _.Error,
|
|
625
|
+
category: v.Component,
|
|
619
626
|
title: c
|
|
620
627
|
}) : p && !h && l === "create" && (s.schedulerConfigCreatedEventHandler({ config: p, action: l, host: s }), t.schedulerConfigStore.set("selectedEventType", void 0)), a && a(e);
|
|
621
628
|
};
|
|
@@ -654,12 +661,12 @@ ht([
|
|
|
654
661
|
ye("design:paramtypes", []),
|
|
655
662
|
ye("design:returntype", void 0)
|
|
656
663
|
], Ke.prototype, "render", null);
|
|
657
|
-
Ke.style =
|
|
664
|
+
Ke.style = ht;
|
|
658
665
|
var g;
|
|
659
666
|
(function(e) {
|
|
660
667
|
e.BookingOptions = "bookingOptions", e.Communications = "communications", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles", e.CalendarView = "calendarView";
|
|
661
668
|
})(g || (g = {}));
|
|
662
|
-
function
|
|
669
|
+
function gt({ id: e, formState: t, activeTab: a }, s) {
|
|
663
670
|
return n(
|
|
664
671
|
de,
|
|
665
672
|
null,
|
|
@@ -720,8 +727,8 @@ function yt({ id: e, formState: t, activeTab: a }, s) {
|
|
|
720
727
|
)
|
|
721
728
|
);
|
|
722
729
|
}
|
|
723
|
-
const gt = '.sc-nylas-editor-tabs-group-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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.scheduler-editor.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;height:inherit;position:relative}.scheduler-editor.sc-nylas-editor-tabs-group div.return-to-calendar-view.sc-nylas-editor-tabs-group{display:flex;border-bottom:1px solid var(--nylas-base-200)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:grid;grid-template-columns:minmax(224px, 25%) 1fr;height:auto;overflow-y:auto;min-height:calc(100% - 80px - 48px)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:table-column-group;height:auto;min-height:calc(100% - 80px - 196px - 48px)}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group{display:flex;align-items:center;text-align:left;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-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.active.sc-nylas-editor-tabs-group{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-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .calendar-view.sc-nylas-editor-tabs-group{position:absolute;top:0;left:0;height:calc(100% - 80px);width:-webkit-fill-available;background:var(--nylas-base-0)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group{width:inherit}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group h3.sc-nylas-editor-tabs-group{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs-group{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-group{flex-direction:column;height:auto;z-index:2}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group button-component.page-settings-button.sc-nylas-editor-tabs-group{min-width:140px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{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-group .buttons.sc-nylas-editor-tabs-group{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{width:100%}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group button-component[title=Preview].sc-nylas-editor-tabs-group{width:48px}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{max-width:524px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.unsaved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.saved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error.sc-nylas-editor-tabs-group{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error-full-width.sc-nylas-editor-tabs-group{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.sc-nylas-editor-tabs-group{width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group span.sc-nylas-editor-tabs-group{display:flex;align-items:center;justify-content:center;gap:0.5rem}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.save-changes.sc-nylas-editor-tabs-group{min-width:140px}button-component#report-issue.sc-nylas-editor-tabs-group{width:auto}nylas-feedback-form.sc-nylas-editor-tabs-group{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', ft = gt;
|
|
724
|
-
var
|
|
730
|
+
const ft = '.sc-nylas-editor-tabs-group-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.scheduler-editor.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;height:inherit;position:relative}.scheduler-editor.sc-nylas-editor-tabs-group div.return-to-calendar-view.sc-nylas-editor-tabs-group{display:flex;border-bottom:1px solid var(--nylas-base-200)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:grid;grid-template-columns:minmax(224px, 25%) 1fr;height:auto;overflow-y:auto;min-height:calc(100% - 80px - 48px)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group{display:table-column-group;height:auto;min-height:calc(100% - 80px - 196px - 48px)}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group{display:flex;align-items:center;text-align:left;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-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.sc-nylas-editor-tabs-group:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.active.sc-nylas-editor-tabs-group{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-group .form-contents.sc-nylas-editor-tabs-group .tabs.sc-nylas-editor-tabs-group .tab.hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .hide.sc-nylas-editor-tabs-group{display:none}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .calendar-view.sc-nylas-editor-tabs-group{position:absolute;top:0;left:0;height:calc(100% - 80px);width:-webkit-fill-available;background:var(--nylas-base-0)}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group{width:inherit}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-info.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group,.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group nylas-event-limits.sc-nylas-editor-tabs-group div[slot=inputs].sc-nylas-editor-tabs-group{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group h3.sc-nylas-editor-tabs-group{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs-group .form-contents.sc-nylas-editor-tabs-group .tab-content.sc-nylas-editor-tabs-group .tab-header.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs-group{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-group{flex-direction:column;height:auto;z-index:2}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs-group .preview.sc-nylas-editor-tabs-group button-component.page-settings-button.sc-nylas-editor-tabs-group{min-width:140px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group{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-group .buttons.sc-nylas-editor-tabs-group{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{display:flex;gap:16px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group{width:100%}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group .footer-buttons__row.sc-nylas-editor-tabs-group button-component[title=Preview].sc-nylas-editor-tabs-group{width:48px}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.sc-nylas-editor-tabs-group{max-width:524px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.unsaved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.saved-changes.sc-nylas-editor-tabs-group{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error.sc-nylas-editor-tabs-group{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group p.error-full-width.sc-nylas-editor-tabs-group{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.sc-nylas-editor-tabs-group{width:100%}}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:16px;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button.sc-nylas-editor-tabs-group span.sc-nylas-editor-tabs-group{display:flex;align-items:center;justify-content:center;gap:0.5rem}.footer.sc-nylas-editor-tabs-group .buttons.sc-nylas-editor-tabs-group button-component.save-changes.sc-nylas-editor-tabs-group{min-width:140px}button-component#report-issue.sc-nylas-editor-tabs-group{width:auto}nylas-feedback-form.sc-nylas-editor-tabs-group{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', mt = ft;
|
|
731
|
+
var _t = function(e, t, a, s) {
|
|
725
732
|
var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
|
|
726
733
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
727
734
|
r = Reflect.decorate(e, t, a, s);
|
|
@@ -735,15 +742,15 @@ var mt = function(e, t, a, s) {
|
|
|
735
742
|
};
|
|
736
743
|
const Ye = class {
|
|
737
744
|
constructor(e) {
|
|
738
|
-
te(this, e), this.schedulerConfigChanged =
|
|
739
|
-
var
|
|
745
|
+
te(this, e), this.schedulerConfigChanged = m(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = m(this, "schedulerConfigCreated", 7), this.cancelButtonClick = m(this, "cancelButtonClick", 7), this.formSubmitted = m(this, "formSubmitted", 7), this.previewButtonClicked = m(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = m(this, "schedulerEditorFormUpdated", 7), this.groupEventCreateTriggered = m(this, "groupEventCreateTriggered", 7), this.groupEventUpdateTriggered = m(this, "groupEventUpdateTriggered", 7), this.groupEventDeleteTriggered = m(this, "groupEventDeleteTriggered", 7), this.groupEventImportTriggered = m(this, "groupEventImportTriggered", 7), this.saveGroupEventChangesError = m(this, "saveGroupEventChangesError", 7), this.nylasSchedulerError = m(this, "nylasSchedulerError", 6), this.dismissNotification = m(this, "dismissNotification", 6), this.formSubmissionHandler = async (t) => {
|
|
746
|
+
var x, V, P, N, M, K, ne, oe, W, se, re;
|
|
740
747
|
t.preventDefault();
|
|
741
748
|
const a = await this.formSubmitted.emit();
|
|
742
749
|
if (b("[nylas-editor-tabs-group]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
|
|
743
750
|
await this.host.setError({
|
|
744
751
|
message: this.formRef.validationMessage || i.t("fixFormErrors"),
|
|
745
|
-
type:
|
|
746
|
-
category:
|
|
752
|
+
type: _.Error,
|
|
753
|
+
category: v.Component,
|
|
747
754
|
title: i.t("nylasEditorTabs.formErrorTitle")
|
|
748
755
|
});
|
|
749
756
|
return;
|
|
@@ -751,64 +758,64 @@ const Ye = class {
|
|
|
751
758
|
this.isLoading = !0, this.hasUnsavedChanges = !1;
|
|
752
759
|
const l = this.updateFormState();
|
|
753
760
|
b("[nylas-editor-tabs-group]", "formState", l);
|
|
754
|
-
const { title: r, description: o, bookingCalendar: d, location: c, bookingType: p, minCancellationNotice: h, minBookingNotice:
|
|
755
|
-
...((
|
|
756
|
-
slug:
|
|
757
|
-
name:
|
|
758
|
-
type: this.selectedEventType ===
|
|
761
|
+
const { title: r, description: o, bookingCalendar: d, location: c, bookingType: p, minCancellationNotice: h, minBookingNotice: f, cancellationPolicy: k, hideCancellationOptions: T, hideReschedulingOptions: O, additionalFields: U, conferencing: H, reminders: L, emailTemplate: z, redirectUrl: D, slug: R, appearance: F, name: E, eventCapacity: B, eventTimeslot: w, participants: C, disableEmails: A, organizerLocale: S } = l, $ = {
|
|
762
|
+
...((x = this.selectedConfiguration) == null ? void 0 : x.id) && { id: this.selectedConfiguration.id },
|
|
763
|
+
slug: R,
|
|
764
|
+
name: E,
|
|
765
|
+
type: this.selectedEventType === I.group ? I.group : void 0,
|
|
759
766
|
scheduler: {
|
|
760
767
|
cancellation_policy: k ?? "",
|
|
761
768
|
min_cancellation_notice: h ?? 0,
|
|
762
|
-
min_booking_notice:
|
|
763
|
-
hide_cancellation_options:
|
|
764
|
-
hide_rescheduling_options:
|
|
765
|
-
additional_fields:
|
|
766
|
-
email_template:
|
|
767
|
-
...
|
|
768
|
-
organizer_locale:
|
|
769
|
-
logo:
|
|
769
|
+
min_booking_notice: f ?? 60,
|
|
770
|
+
hide_cancellation_options: T ?? !1,
|
|
771
|
+
hide_rescheduling_options: O ?? !1,
|
|
772
|
+
additional_fields: U,
|
|
773
|
+
email_template: z ? {
|
|
774
|
+
...z,
|
|
775
|
+
organizer_locale: S || "en",
|
|
776
|
+
logo: z.logo || ""
|
|
770
777
|
} : void 0,
|
|
771
|
-
confirmation_redirect_url:
|
|
778
|
+
confirmation_redirect_url: D
|
|
772
779
|
},
|
|
773
|
-
appearance:
|
|
780
|
+
appearance: F,
|
|
774
781
|
group_booking: {
|
|
775
782
|
booking_type: p || "booking",
|
|
776
|
-
disable_emails: typeof
|
|
777
|
-
reminders:
|
|
778
|
-
conferencing:
|
|
783
|
+
disable_emails: typeof A == "boolean" ? A : !1,
|
|
784
|
+
reminders: L,
|
|
785
|
+
conferencing: H,
|
|
779
786
|
calendar_id: d || "primary",
|
|
780
|
-
default_capacity:
|
|
787
|
+
default_capacity: B || 10
|
|
781
788
|
}
|
|
782
|
-
},
|
|
783
|
-
delete
|
|
784
|
-
const
|
|
789
|
+
}, j = _e(this.selectedConfiguration, $ || {}), G = this.action === "create" ? j : $;
|
|
790
|
+
delete G.availability, delete G.participants, delete G.event_booking;
|
|
791
|
+
const J = (ie) => {
|
|
785
792
|
this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
|
|
786
793
|
this.changesSaved = !1;
|
|
787
794
|
}, 3e3);
|
|
788
795
|
};
|
|
789
|
-
if (this.checkForBookingFormErrors(
|
|
796
|
+
if (this.checkForBookingFormErrors(G))
|
|
790
797
|
return;
|
|
791
|
-
const
|
|
792
|
-
name: ((
|
|
793
|
-
email: ((
|
|
794
|
-
},
|
|
798
|
+
const Y = {
|
|
799
|
+
name: ((V = this.currentUser) == null ? void 0 : V.name) ?? ((P = this.currentUser) == null ? void 0 : P.email) ?? "",
|
|
800
|
+
email: ((N = this.currentUser) == null ? void 0 : N.email) ?? ""
|
|
801
|
+
}, q = ((M = this.calendars) == null ? void 0 : M.find((ie) => ie.is_primary)) ?? ((K = this.calendars) == null ? void 0 : K[0]), Q = [{ ...Y, is_organizer: !0 }], X = (ne = this.selectedConfiguration) != null && ne.id ? void 0 : {
|
|
795
802
|
title: r,
|
|
796
803
|
description: o,
|
|
797
|
-
location:
|
|
798
|
-
conferencing: c ? void 0 :
|
|
804
|
+
location: H ? void 0 : c,
|
|
805
|
+
conferencing: c ? void 0 : H,
|
|
799
806
|
when: {
|
|
800
|
-
start_time: ((
|
|
801
|
-
end_time: ((
|
|
802
|
-
start_timezone: ((se =
|
|
803
|
-
end_timezone: ((re =
|
|
807
|
+
start_time: ((oe = w == null ? void 0 : w.when) == null ? void 0 : oe.start_time) ?? 0,
|
|
808
|
+
end_time: ((W = w == null ? void 0 : w.when) == null ? void 0 : W.end_time) ?? 0,
|
|
809
|
+
start_timezone: ((se = w == null ? void 0 : w.when) == null ? void 0 : se.start_timezone) ?? "",
|
|
810
|
+
end_timezone: ((re = w == null ? void 0 : w.when) == null ? void 0 : re.end_timezone) ?? ""
|
|
804
811
|
},
|
|
805
|
-
recurrence: (
|
|
806
|
-
calendar_id: d || (
|
|
807
|
-
participants:
|
|
808
|
-
organizer:
|
|
809
|
-
capacity:
|
|
812
|
+
recurrence: (w == null ? void 0 : w.recurrence) ?? [],
|
|
813
|
+
calendar_id: d || (q == null ? void 0 : q.id) || "primary",
|
|
814
|
+
participants: C != null && C.length ? C : Q,
|
|
815
|
+
organizer: Y,
|
|
816
|
+
capacity: B || 10
|
|
810
817
|
};
|
|
811
|
-
this.schedulerConfigChanged.emit({ groupEvent:
|
|
818
|
+
this.schedulerConfigChanged.emit({ groupEvent: X || void 0, config: G, resetLoadingState: J, action: this.action, host: this.host });
|
|
812
819
|
}, this.checkForBookingFormErrors = (t) => {
|
|
813
820
|
var r;
|
|
814
821
|
let a = !1, s = "";
|
|
@@ -828,14 +835,14 @@ const Ye = class {
|
|
|
828
835
|
}
|
|
829
836
|
})), a && (this.isLoading = !1, this.host.setError({
|
|
830
837
|
message: s,
|
|
831
|
-
type:
|
|
832
|
-
category:
|
|
838
|
+
type: _.Error,
|
|
839
|
+
category: v.Component,
|
|
833
840
|
title: i.t("nylasEditorTabs.bookingFormError")
|
|
834
841
|
})), a;
|
|
835
842
|
}, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.selectedLanguage = void 0, this.selectedEventType = void 0, this.selectedGroupEvent = void 0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = g.CalendarView, this.isLoading = !1, this.componentLoaded = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = {
|
|
836
843
|
message: "",
|
|
837
|
-
type:
|
|
838
|
-
category:
|
|
844
|
+
type: _.Error,
|
|
845
|
+
category: v.Component,
|
|
839
846
|
title: ""
|
|
840
847
|
};
|
|
841
848
|
}
|
|
@@ -845,7 +852,7 @@ const Ye = class {
|
|
|
845
852
|
}, e != null && e.id ? this.action = "edit" : this.action = "create";
|
|
846
853
|
}
|
|
847
854
|
selectedGroupEventChangedHandler(e) {
|
|
848
|
-
var t, a, s, l, r, o, d, c, p, h,
|
|
855
|
+
var t, a, s, l, r, o, d, c, p, h, f, k, T, O, U, H, L, z, D, R, F, E, B, w, C, A, S, $, j, G, J;
|
|
849
856
|
b("[nylas-editor-tabs-group]", "selectedGroupEventChangedHandler", e, this.selectedConfiguration), this.formState = {
|
|
850
857
|
...this.formState,
|
|
851
858
|
title: (a = (t = this.selectedGroupEvent) == null ? void 0 : t.event) == null ? void 0 : a.title,
|
|
@@ -853,19 +860,19 @@ const Ye = class {
|
|
|
853
860
|
location: (o = (r = this.selectedGroupEvent) == null ? void 0 : r.event) == null ? void 0 : o.location,
|
|
854
861
|
conferencing: (c = (d = this.selectedGroupEvent) == null ? void 0 : d.event) == null ? void 0 : c.conferencing,
|
|
855
862
|
eventCapacity: (h = (p = this.selectedGroupEvent) == null ? void 0 : p.group_event_info) == null ? void 0 : h.capacity,
|
|
856
|
-
participants: (
|
|
863
|
+
participants: (T = (k = (f = this.selectedGroupEvent) == null ? void 0 : f.group_event_info) == null ? void 0 : k.participants) == null ? void 0 : T.map((Z) => ({
|
|
857
864
|
name: Z.name,
|
|
858
865
|
email: Z.email,
|
|
859
866
|
is_organizer: !!Z.is_organizer
|
|
860
867
|
})),
|
|
861
|
-
eventTimeslot: (
|
|
868
|
+
eventTimeslot: (U = (O = this.selectedGroupEvent) == null ? void 0 : O.event) != null && U.when ? {
|
|
862
869
|
when: {
|
|
863
|
-
start_time: (
|
|
864
|
-
end_time: (
|
|
865
|
-
start_timezone: (
|
|
866
|
-
end_timezone: (
|
|
870
|
+
start_time: (z = (L = (H = this.selectedGroupEvent) == null ? void 0 : H.event) == null ? void 0 : L.when) == null ? void 0 : z.start_time,
|
|
871
|
+
end_time: (F = (R = (D = this.selectedGroupEvent) == null ? void 0 : D.event) == null ? void 0 : R.when) == null ? void 0 : F.end_time,
|
|
872
|
+
start_timezone: (w = (B = (E = this.selectedGroupEvent) == null ? void 0 : E.event) == null ? void 0 : B.when) == null ? void 0 : w.start_timezone,
|
|
873
|
+
end_timezone: (S = (A = (C = this.selectedGroupEvent) == null ? void 0 : C.event) == null ? void 0 : A.when) == null ? void 0 : S.end_timezone
|
|
867
874
|
},
|
|
868
|
-
recurrence: (
|
|
875
|
+
recurrence: (j = ($ = this.selectedGroupEvent) == null ? void 0 : $.group_event_info) != null && j.rrule ? (J = (G = this.selectedGroupEvent) == null ? void 0 : G.group_event_info) == null ? void 0 : J.rrule : []
|
|
869
876
|
} : void 0
|
|
870
877
|
};
|
|
871
878
|
}
|
|
@@ -896,8 +903,8 @@ const Ye = class {
|
|
|
896
903
|
var e, t;
|
|
897
904
|
(e = this.error) != null && e.message && this.dismissNotification.emit({ id: (t = this.error) == null ? void 0 : t.message.split(" ").join("-"), host: this.host }), this.error = {
|
|
898
905
|
message: "",
|
|
899
|
-
type:
|
|
900
|
-
category:
|
|
906
|
+
type: _.Error,
|
|
907
|
+
category: v.Component,
|
|
901
908
|
title: ""
|
|
902
909
|
};
|
|
903
910
|
}
|
|
@@ -911,7 +918,7 @@ const Ye = class {
|
|
|
911
918
|
var t, a, s;
|
|
912
919
|
b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !Je() && Ve({
|
|
913
920
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
914
|
-
release: "2.0.
|
|
921
|
+
release: "2.0.4",
|
|
915
922
|
integrations: (l) => [
|
|
916
923
|
...l.filter((r) => !1),
|
|
917
924
|
qe({
|
|
@@ -931,7 +938,7 @@ const Ye = class {
|
|
|
931
938
|
handleValueChanged(e) {
|
|
932
939
|
b("[nylas-editor-tabs-group]", "handleValueChanged", e);
|
|
933
940
|
const { name: t, value: a } = e.detail;
|
|
934
|
-
console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState },
|
|
941
|
+
console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, st.includes(t) && (this.hasUnsavedChanges = !0), this.host.resetError(), this.schedulerEditorFormUpdated.emit({
|
|
935
942
|
value: e.detail.value,
|
|
936
943
|
name: e.detail.name
|
|
937
944
|
});
|
|
@@ -950,7 +957,7 @@ const Ye = class {
|
|
|
950
957
|
captureContext: {
|
|
951
958
|
tags: {
|
|
952
959
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
953
|
-
"nylas-web-element-version": "2.0.
|
|
960
|
+
"nylas-web-element-version": "2.0.4"
|
|
954
961
|
},
|
|
955
962
|
extra: {
|
|
956
963
|
configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
|
|
@@ -964,28 +971,28 @@ const Ye = class {
|
|
|
964
971
|
this.groupEventImportTriggered.emit({ groupEvent: e.detail, configId: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "", host: this.host });
|
|
965
972
|
}
|
|
966
973
|
saveGroupEventChangesHandler(e) {
|
|
967
|
-
var s, l, r, o, d, c, p, h,
|
|
974
|
+
var s, l, r, o, d, c, p, h, f;
|
|
968
975
|
b("saveGroupEventChangesHandler", e.detail, this.selectedGroupEvent);
|
|
969
976
|
const t = this.formRef.checkValidity(), a = this.getGroupEventDetailsFromFormState();
|
|
970
977
|
if (this.resetError(), a.title || this.setError({
|
|
971
978
|
message: i.t("nylasEditorTabsGroup.eventTitleRequired"),
|
|
972
|
-
type:
|
|
973
|
-
category:
|
|
979
|
+
type: _.Error,
|
|
980
|
+
category: v.Component,
|
|
974
981
|
title: i.t("nylasEditorTabs.formErrorTitle")
|
|
975
982
|
}), (!((s = a.when) != null && s.start_time) || !((l = a.when) != null && l.end_time)) && this.setError({
|
|
976
983
|
message: i.t("nylasEditorTabsGroup.eventTimeRequired"),
|
|
977
|
-
type:
|
|
978
|
-
category:
|
|
984
|
+
type: _.Error,
|
|
985
|
+
category: v.Component,
|
|
979
986
|
title: i.t("nylasEditorTabs.formErrorTitle")
|
|
980
987
|
}), (r = a.participants) != null && r.length || this.setError({
|
|
981
988
|
message: i.t("nylasEditorTabsGroup.participantsRequired"),
|
|
982
|
-
type:
|
|
983
|
-
category:
|
|
989
|
+
type: _.Error,
|
|
990
|
+
category: v.Component,
|
|
984
991
|
title: i.t("nylasEditorTabs.formErrorTitle")
|
|
985
992
|
}), (o = a.participants) != null && o.length && ((d = a.participants) != null && d.some((k) => !k.email)) && this.setError({
|
|
986
993
|
message: i.t("nylasEditorTabsGroup.participantEmailRequired"),
|
|
987
|
-
type:
|
|
988
|
-
category:
|
|
994
|
+
type: _.Error,
|
|
995
|
+
category: v.Component,
|
|
989
996
|
title: i.t("nylasEditorTabs.formErrorTitle")
|
|
990
997
|
}), ((c = this.error) == null ? void 0 : c.message) !== "" || !t) {
|
|
991
998
|
this.saveGroupEventChangesError.emit({
|
|
@@ -998,7 +1005,7 @@ const Ye = class {
|
|
|
998
1005
|
this.groupEventUpdateTriggered.emit({
|
|
999
1006
|
groupEvent: a,
|
|
1000
1007
|
chosenOption: e.detail.action,
|
|
1001
|
-
configId: ((
|
|
1008
|
+
configId: ((f = this.selectedConfiguration) == null ? void 0 : f.id) ?? "",
|
|
1002
1009
|
host: this.host
|
|
1003
1010
|
});
|
|
1004
1011
|
}
|
|
@@ -1014,11 +1021,11 @@ const Ye = class {
|
|
|
1014
1021
|
});
|
|
1015
1022
|
}
|
|
1016
1023
|
createGroupEventHandler(e) {
|
|
1017
|
-
var o, d, c, p, h,
|
|
1024
|
+
var o, d, c, p, h, f, k;
|
|
1018
1025
|
const t = e.detail, a = {
|
|
1019
1026
|
name: ((o = this.currentUser) == null ? void 0 : o.name) ?? ((d = this.currentUser) == null ? void 0 : d.email) ?? "",
|
|
1020
1027
|
email: ((c = this.currentUser) == null ? void 0 : c.email) ?? ""
|
|
1021
|
-
}, s = ((p = this.calendars) == null ? void 0 : p.find((
|
|
1028
|
+
}, s = ((p = this.calendars) == null ? void 0 : p.find((T) => T.is_primary)) ?? ((h = this.calendars) == null ? void 0 : h[0]), l = ((f = this.formState) == null ? void 0 : f.conferencing) || t.conferencing, r = {
|
|
1022
1029
|
title: t.title,
|
|
1023
1030
|
description: t.description,
|
|
1024
1031
|
location: l ? void 0 : t.location,
|
|
@@ -1036,8 +1043,8 @@ const Ye = class {
|
|
|
1036
1043
|
this.nylasSchedulerError.emit({
|
|
1037
1044
|
notification: {
|
|
1038
1045
|
title: e.title,
|
|
1039
|
-
category: e.category ||
|
|
1040
|
-
type: e.type ||
|
|
1046
|
+
category: e.category || v.Component,
|
|
1047
|
+
type: e.type || _.Error,
|
|
1041
1048
|
description: e.message,
|
|
1042
1049
|
id: e.message.split(" ").join("-"),
|
|
1043
1050
|
ttl: "none"
|
|
@@ -1046,10 +1053,10 @@ const Ye = class {
|
|
|
1046
1053
|
});
|
|
1047
1054
|
}
|
|
1048
1055
|
getGroupEventDetailsFromFormState() {
|
|
1049
|
-
var
|
|
1050
|
-
const e = ((
|
|
1051
|
-
name: ((
|
|
1052
|
-
email: ((
|
|
1056
|
+
var f, k, T, O, U, H, L, z, D;
|
|
1057
|
+
const e = ((f = this.calendars) == null ? void 0 : f.find((R) => R.is_primary)) ?? ((k = this.calendars) == null ? void 0 : k[0]), t = {
|
|
1058
|
+
name: ((T = this.currentUser) == null ? void 0 : T.name) ?? ((O = this.currentUser) == null ? void 0 : O.email) ?? "",
|
|
1059
|
+
email: ((U = this.currentUser) == null ? void 0 : U.email) ?? ""
|
|
1053
1060
|
}, a = [{ ...t, is_organizer: !0 }], { title: s, description: l, bookingCalendar: r, location: o, conferencing: d, eventCapacity: c, eventTimeslot: p, participants: h } = this.formState;
|
|
1054
1061
|
return {
|
|
1055
1062
|
title: s,
|
|
@@ -1057,10 +1064,10 @@ const Ye = class {
|
|
|
1057
1064
|
location: d ? void 0 : o,
|
|
1058
1065
|
conferencing: o ? void 0 : d,
|
|
1059
1066
|
when: {
|
|
1060
|
-
start_time: ((
|
|
1061
|
-
end_time: ((
|
|
1062
|
-
start_timezone: ((
|
|
1063
|
-
end_timezone: ((
|
|
1067
|
+
start_time: ((H = p == null ? void 0 : p.when) == null ? void 0 : H.start_time) ?? 0,
|
|
1068
|
+
end_time: ((L = p == null ? void 0 : p.when) == null ? void 0 : L.end_time) ?? 0,
|
|
1069
|
+
start_timezone: ((z = p == null ? void 0 : p.when) == null ? void 0 : z.start_timezone) ?? "",
|
|
1070
|
+
end_timezone: ((D = p == null ? void 0 : p.when) == null ? void 0 : D.end_timezone) ?? ""
|
|
1064
1071
|
},
|
|
1065
1072
|
recurrence: (p == null ? void 0 : p.recurrence) ?? [],
|
|
1066
1073
|
calendar_id: r || (e == null ? void 0 : e.id) || "primary",
|
|
@@ -1070,7 +1077,7 @@ const Ye = class {
|
|
|
1070
1077
|
};
|
|
1071
1078
|
}
|
|
1072
1079
|
getFormStateFromConfig(e) {
|
|
1073
|
-
var t, a, s, l, r, o, d, c, p, h,
|
|
1080
|
+
var t, a, s, l, r, o, d, c, p, h, f, k, T, O;
|
|
1074
1081
|
return e != null && e.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
|
|
1075
1082
|
additionalFields: ((t = e == null ? void 0 : e.scheduler) == null ? void 0 : t.additional_fields) ?? {},
|
|
1076
1083
|
bookingType: ((a = e == null ? void 0 : e.group_booking) == null ? void 0 : a.booking_type) ?? "booking",
|
|
@@ -1085,9 +1092,9 @@ const Ye = class {
|
|
|
1085
1092
|
slug: e == null ? void 0 : e.slug,
|
|
1086
1093
|
appearance: e == null ? void 0 : e.appearance,
|
|
1087
1094
|
name: e == null ? void 0 : e.name,
|
|
1088
|
-
bookingCalendar: (
|
|
1095
|
+
bookingCalendar: (f = e == null ? void 0 : e.group_booking) == null ? void 0 : f.calendar_id,
|
|
1089
1096
|
disableEmails: (k = e == null ? void 0 : e.group_booking) == null ? void 0 : k.disable_emails,
|
|
1090
|
-
organizerLocale: (
|
|
1097
|
+
organizerLocale: (O = (T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.email_template) == null ? void 0 : O.organizer_locale
|
|
1091
1098
|
};
|
|
1092
1099
|
}
|
|
1093
1100
|
setFormState(e, t) {
|
|
@@ -1188,18 +1195,18 @@ const Ye = class {
|
|
|
1188
1195
|
}
|
|
1189
1196
|
render() {
|
|
1190
1197
|
var e, t, a, s, l, r;
|
|
1191
|
-
return b("[nylas-editor-tabs-group]", "render", this.formState), n(ce, { key: "
|
|
1198
|
+
return b("[nylas-editor-tabs-group]", "render", this.formState), n(ce, { key: "dab39465763f8792725dc25a9539ac1ec64a2934" }, n("nylas-notification", { key: "1e16886e8a9b33bf47988ec8a4632bacc149b85a" }), n("form", { key: "f6949b2f11a413bb2734fb3c045c07f7273749ba", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (o) => this.formRef = o, noValidate: !0 }, this.mode === "app" ? n("div", { class: "return-to-calendar-view", part: "editor__return-to-calendar-view net__return-to-calendar-view" }, n("button-component", { id: "return-to-calendar-view-button", variant: "invisible", part: "nset__header__back-button", type: "button", onClick: (o) => {
|
|
1192
1199
|
this.setActiveTab(o, g.CalendarView);
|
|
1193
|
-
} }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, i.t("returnToCalendarView")))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: g.BookingOptions, class: { tab: !0, active: this.activeTab == g.BookingOptions, hide: this.hideTab(g.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (o) => this.setActiveTab(o, g.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), i.t("bookingOptionsTab")), n("button", { name: g.BookingForm, class: { tab: !0, active: this.activeTab == g.BookingForm, hide: this.hideTab(g.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (o) => this.setActiveTab(o, g.BookingForm) }, this.activeTab == g.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), i.t("bookingFormTab")), n("button", { name: g.Communications, class: { tab: !0, active: this.activeTab == g.Communications, hide: this.hideTab(g.Communications) }, onClick: (o) => this.setActiveTab(o, g.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == g.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), i.t("communicationsTab")), n("button", { name: g.PageStyles, class: { tab: !0, active: this.activeTab == g.PageStyles, hide: this.hideTab(g.PageStyles) }, onClick: (o) => this.setActiveTab(o, g.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == g.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), i.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(
|
|
1200
|
+
} }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, i.t("returnToCalendarView")))) : null, this.mode === "app" ? n("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, n("div", { class: "tabs", part: "editor__tabs net__tabs" }, n("button", { name: g.BookingOptions, class: { tab: !0, active: this.activeTab == g.BookingOptions, hide: this.hideTab(g.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (o) => this.setActiveTab(o, g.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), i.t("bookingOptionsTab")), n("button", { name: g.BookingForm, class: { tab: !0, active: this.activeTab == g.BookingForm, hide: this.hideTab(g.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (o) => this.setActiveTab(o, g.BookingForm) }, this.activeTab == g.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), i.t("bookingFormTab")), n("button", { name: g.Communications, class: { tab: !0, active: this.activeTab == g.Communications, hide: this.hideTab(g.Communications) }, onClick: (o) => this.setActiveTab(o, g.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == g.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), i.t("communicationsTab")), n("button", { name: g.PageStyles, class: { tab: !0, active: this.activeTab == g.PageStyles, hide: this.hideTab(g.PageStyles) }, onClick: (o) => this.setActiveTab(o, g.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == g.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), i.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(gt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: i }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "3f68911c711edd8d31e62cbae3b037d1df756e83", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "712d97751222889a4042f74606c0d56706635040", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (o) => this.onFeedbackClick(o) }, n("feedback-icon", null)), this.activeTab === g.CalendarView && n("button-component", { class: "page-settings-button", title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (o) => this.setActiveTab(o, g.BookingOptions) }, i.t("pageSettingsButton"))), n("div", { key: "16db38627f911e843337965f7c583d591adfec71", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "c6a29b4aa1fc48b0cefb09f0eaa3174f73c34705", class: {
|
|
1194
1201
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
1195
1202
|
"saved-changes": this.changesSaved,
|
|
1196
1203
|
error: ((a = this.error) == null ? void 0 : a.message) !== "",
|
|
1197
1204
|
"error-full-width": ((s = this.error) == null ? void 0 : s.message) !== "" && this.action === "create"
|
|
1198
|
-
} }, ((l = this.error) == null ? void 0 : l.message) == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== g.CalendarView ? i.t("unsavedChangesLabel") : ((r = this.error) == null ? void 0 : r.message) == "" && this.changesSaved ? `${i.t("changesSavedLabel")}!` : ""), n("div", { key: "
|
|
1205
|
+
} }, ((l = this.error) == null ? void 0 : l.message) == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== g.CalendarView ? i.t("unsavedChangesLabel") : ((r = this.error) == null ? void 0 : r.message) == "" && this.changesSaved ? `${i.t("changesSavedLabel")}!` : ""), n("div", { key: "6f41ace488c197acc6fe9022439853361bb2c7ef", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (o) => {
|
|
1199
1206
|
o.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(le(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
1200
|
-
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "
|
|
1207
|
+
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "22a57e394f093b95d4b395f322d1875a5ec11b09", type: "button", disabled: this.isLoading, clickHandler: (o) => {
|
|
1201
1208
|
o.preventDefault(), this.cancelButtonClick.emit(), this.host.resetError();
|
|
1202
|
-
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("
|
|
1209
|
+
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, i.t("cancelButton")), n("button-component", { key: "414aa27aad816da5a7aa1ff36b7a143e13c99c7c", class: { "save-changes": this.action === "edit" }, type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.componentLoaded ? this.isLoading ? n("span", null, i.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${i.t("createButtonText")}` : `${i.t("saveChangesButtonText")}` : n("span", null, n("loading-icon", null), " ")))))), this.showFeedbackModal && n("nylas-feedback-form", null));
|
|
1203
1210
|
}
|
|
1204
1211
|
get host() {
|
|
1205
1212
|
return pe(this);
|
|
@@ -1213,7 +1220,7 @@ const Ye = class {
|
|
|
1213
1220
|
};
|
|
1214
1221
|
}
|
|
1215
1222
|
};
|
|
1216
|
-
|
|
1223
|
+
_t([
|
|
1217
1224
|
be({
|
|
1218
1225
|
name: "nylas-editor-tabs-group",
|
|
1219
1226
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -1228,13 +1235,13 @@ mt([
|
|
|
1228
1235
|
eventToProps: {
|
|
1229
1236
|
schedulerConfigChanged: async (e, t) => {
|
|
1230
1237
|
const { resetLoadingState: a, host: s, action: l, config: r, groupEvent: o } = e.detail, d = (c, p) => {
|
|
1231
|
-
const [h,
|
|
1232
|
-
!h &&
|
|
1233
|
-
message:
|
|
1234
|
-
type:
|
|
1235
|
-
category:
|
|
1238
|
+
const [h, f] = c;
|
|
1239
|
+
!h && f ? s.setError({
|
|
1240
|
+
message: f.message || i.t("genericErrorTitle"),
|
|
1241
|
+
type: _.Error,
|
|
1242
|
+
category: v.Component,
|
|
1236
1243
|
title: p
|
|
1237
|
-
}) : h && !
|
|
1244
|
+
}) : h && !f && l === "create" && s.schedulerConfigCreatedEventHandler({ config: h, action: l, host: s });
|
|
1238
1245
|
};
|
|
1239
1246
|
if (l === "edit") {
|
|
1240
1247
|
const c = await t.schedulerConfig.updateConfiguration(r);
|
|
@@ -1242,9 +1249,9 @@ mt([
|
|
|
1242
1249
|
} else {
|
|
1243
1250
|
const c = await t.schedulerConfig.createConfiguration(r);
|
|
1244
1251
|
d(c, i.t("nylasEditorTabs.createConfigurationError"));
|
|
1245
|
-
const [p, h] = c,
|
|
1246
|
-
if (
|
|
1247
|
-
const k = await t.schedulerConfig.createGroupEvent(o,
|
|
1252
|
+
const [p, h] = c, f = p == null ? void 0 : p.id;
|
|
1253
|
+
if (f && o) {
|
|
1254
|
+
const k = await t.schedulerConfig.createGroupEvent(o, f);
|
|
1248
1255
|
d(k, i.t("nylasEditorTabsGroup.createGroupEventError"));
|
|
1249
1256
|
}
|
|
1250
1257
|
a && a(e);
|
|
@@ -1269,8 +1276,8 @@ mt([
|
|
|
1269
1276
|
const { groupEvent: a, host: s, chosenOption: l, configId: r } = e.detail, o = await t.schedulerConfig.updateGroupEvent(a, l, r), [d, c] = o;
|
|
1270
1277
|
!d && c && s.setError({
|
|
1271
1278
|
message: c.message || i.t("genericErrorTitle"),
|
|
1272
|
-
type:
|
|
1273
|
-
category:
|
|
1279
|
+
type: _.Error,
|
|
1280
|
+
category: v.Component,
|
|
1274
1281
|
title: i.t("nylasEditorTabsGroup.updateGroupEventError")
|
|
1275
1282
|
});
|
|
1276
1283
|
},
|
|
@@ -1278,8 +1285,8 @@ mt([
|
|
|
1278
1285
|
const { groupEvent: a, chosenOption: s, configId: l, host: r } = e.detail, o = await t.schedulerConfig.deleteGroupEvent(a, s, l), [d, c] = o;
|
|
1279
1286
|
!d && c && r.setError({
|
|
1280
1287
|
message: c.message || i.t("genericErrorTitle"),
|
|
1281
|
-
type:
|
|
1282
|
-
category:
|
|
1288
|
+
type: _.Error,
|
|
1289
|
+
category: v.Component,
|
|
1283
1290
|
title: i.t("nylasEditorTabsGroup.deleteGroupEventError")
|
|
1284
1291
|
});
|
|
1285
1292
|
},
|
|
@@ -1287,8 +1294,8 @@ mt([
|
|
|
1287
1294
|
const { groupEvent: a, configId: s, host: l } = e.detail, r = await t.schedulerConfig.createGroupEvent(a, s), [o, d] = r;
|
|
1288
1295
|
!o && d && l.setError({
|
|
1289
1296
|
message: d.message || i.t("genericErrorTitle"),
|
|
1290
|
-
type:
|
|
1291
|
-
category:
|
|
1297
|
+
type: _.Error,
|
|
1298
|
+
category: v.Component,
|
|
1292
1299
|
title: i.t("nylasEditorTabsGroup.createGroupEventError")
|
|
1293
1300
|
});
|
|
1294
1301
|
},
|
|
@@ -1296,16 +1303,16 @@ mt([
|
|
|
1296
1303
|
const { groupEvent: a, configId: s, host: l } = e.detail, r = await t.schedulerConfig.importGroupEvent([a], s), [o, d] = r;
|
|
1297
1304
|
if (!o && d && l.setError({
|
|
1298
1305
|
message: d.message || i.t("genericErrorTitle"),
|
|
1299
|
-
type:
|
|
1300
|
-
category:
|
|
1306
|
+
type: _.Error,
|
|
1307
|
+
category: v.Component,
|
|
1301
1308
|
title: i.t("nylasEditorTabsGroup.importGroupEventError")
|
|
1302
1309
|
}), o && o.import_failed && o.import_failed.length > 0) {
|
|
1303
1310
|
const c = o.import_failed.map((p) => p.reason).join(`
|
|
1304
1311
|
`);
|
|
1305
1312
|
l.setError({
|
|
1306
1313
|
message: c,
|
|
1307
|
-
type:
|
|
1308
|
-
category:
|
|
1314
|
+
type: _.Error,
|
|
1315
|
+
category: v.Component,
|
|
1309
1316
|
title: i.t("nylasEditorTabsGroup.importGroupEventError")
|
|
1310
1317
|
}), setTimeout(() => {
|
|
1311
1318
|
l.resetError();
|
|
@@ -1328,9 +1335,9 @@ mt([
|
|
|
1328
1335
|
ge("design:paramtypes", []),
|
|
1329
1336
|
ge("design:returntype", void 0)
|
|
1330
1337
|
], Ye.prototype, "render", null);
|
|
1331
|
-
Ye.style =
|
|
1332
|
-
const
|
|
1333
|
-
var
|
|
1338
|
+
Ye.style = mt;
|
|
1339
|
+
const vt = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.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:16px;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;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}@media screen and (max-width: 768px){.configurations .table-container{min-height:624px}}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container 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-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem;text-align:right}.configurations .table-container table .actions button-component.edit-button{min-width:98px}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .actions select-dropdown.last::part(sd_dropdown-content){bottom:54px}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.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}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', wt = vt;
|
|
1340
|
+
var kt = function(e, t, a, s) {
|
|
1334
1341
|
var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
|
|
1335
1342
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1336
1343
|
r = Reflect.decorate(e, t, a, s);
|
|
@@ -1344,10 +1351,10 @@ var wt = function(e, t, a, s) {
|
|
|
1344
1351
|
};
|
|
1345
1352
|
const Qe = class {
|
|
1346
1353
|
constructor(e) {
|
|
1347
|
-
te(this, e), this.initListConfigurations =
|
|
1354
|
+
te(this, e), this.initListConfigurations = m(this, "initListConfigurations", 7), this.createButtonClick = m(this, "createButtonClick", 7), this.editButtonClick = m(this, "editButtonClick", 7), this.deleteButtonClick = m(this, "deleteButtonClick", 7), this.nylasSchedulerError = m(this, "nylasSchedulerError", 6), this.dismissNotification = m(this, "dismissNotification", 6), this.configurations = [], this.selectedLanguage = void 0, this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = {
|
|
1348
1355
|
message: "",
|
|
1349
|
-
type:
|
|
1350
|
-
category:
|
|
1356
|
+
type: _.Error,
|
|
1357
|
+
category: v.Component,
|
|
1351
1358
|
title: ""
|
|
1352
1359
|
}, this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1, this.editButtonLoadingId = "";
|
|
1353
1360
|
}
|
|
@@ -1421,9 +1428,9 @@ const Qe = class {
|
|
|
1421
1428
|
this.nylasSchedulerError.emit({
|
|
1422
1429
|
notification: {
|
|
1423
1430
|
id: e.message.split(" ").join("-"),
|
|
1424
|
-
type: e.type ||
|
|
1431
|
+
type: e.type || _.Error,
|
|
1425
1432
|
title: e.title,
|
|
1426
|
-
category: e.category ||
|
|
1433
|
+
category: e.category || v.Component,
|
|
1427
1434
|
description: e.message,
|
|
1428
1435
|
ttl: "none"
|
|
1429
1436
|
},
|
|
@@ -1515,7 +1522,7 @@ const Qe = class {
|
|
|
1515
1522
|
};
|
|
1516
1523
|
}
|
|
1517
1524
|
};
|
|
1518
|
-
|
|
1525
|
+
kt([
|
|
1519
1526
|
be({
|
|
1520
1527
|
name: "nylas-list-configurations",
|
|
1521
1528
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -1532,8 +1539,8 @@ wt([
|
|
|
1532
1539
|
if (!l && r && r.message) {
|
|
1533
1540
|
await a.setState("error"), await a.setError({
|
|
1534
1541
|
message: r.message,
|
|
1535
|
-
type:
|
|
1536
|
-
category:
|
|
1542
|
+
type: _.Error,
|
|
1543
|
+
category: v.Component,
|
|
1537
1544
|
title: i.t("nylasEditorTabs.getConfigsError")
|
|
1538
1545
|
});
|
|
1539
1546
|
return;
|
|
@@ -1543,21 +1550,21 @@ wt([
|
|
|
1543
1550
|
createButtonClick: async (e, t) => {
|
|
1544
1551
|
t.schedulerConfigStore.resetSelectedConfiguration();
|
|
1545
1552
|
const a = Object.entries(t.schedulerConfigStore.state.enableEventTypes || {}).filter(([s, l]) => l);
|
|
1546
|
-
a.length === 1 ? (t.schedulerConfigStore.state.action = "create", t.schedulerConfigStore.state.selectedEventType =
|
|
1553
|
+
a.length === 1 ? (t.schedulerConfigStore.state.action = "create", t.schedulerConfigStore.state.selectedEventType = I[a[0][0]]) : t.schedulerConfigStore.state.action = "create-select";
|
|
1547
1554
|
},
|
|
1548
1555
|
deleteButtonClick: async (e, t) => {
|
|
1549
1556
|
const { host: a, configuration: s } = e.detail, [l, r] = await t.schedulerConfig.deleteConfiguration(s.id);
|
|
1550
1557
|
!l && r && r.message && (await a.setState("error"), await a.setError({
|
|
1551
1558
|
message: r.message,
|
|
1552
|
-
type:
|
|
1553
|
-
category:
|
|
1559
|
+
type: _.Error,
|
|
1560
|
+
category: v.Component,
|
|
1554
1561
|
title: i.t("nylasEditorTabs.deleteConfigError")
|
|
1555
1562
|
})), await a.hideDeleteConfirmation();
|
|
1556
1563
|
},
|
|
1557
1564
|
editButtonClick: async (e, t) => {
|
|
1558
1565
|
const { host: a, configuration: s } = e.detail;
|
|
1559
1566
|
if (s.type === "group") {
|
|
1560
|
-
const { startTime: l, endTime: r } =
|
|
1567
|
+
const { startTime: l, endTime: r } = at((/* @__PURE__ */ new Date()).toISOString(), "week");
|
|
1561
1568
|
t.schedulerConfigStore.state.calendarViewDateRange = {
|
|
1562
1569
|
start_time: l.toString(),
|
|
1563
1570
|
end_time: r.toString()
|
|
@@ -1566,8 +1573,8 @@ wt([
|
|
|
1566
1573
|
if (!o && d && d.message) {
|
|
1567
1574
|
await a.setError({
|
|
1568
1575
|
message: d.message,
|
|
1569
|
-
type:
|
|
1570
|
-
category:
|
|
1576
|
+
type: _.Error,
|
|
1577
|
+
category: v.Component,
|
|
1571
1578
|
title: i.t("nylasEditorTabsGroup.getGroupEventsError")
|
|
1572
1579
|
}), a.hideEditButtonLoading();
|
|
1573
1580
|
return;
|
|
@@ -1582,9 +1589,9 @@ wt([
|
|
|
1582
1589
|
fe("design:paramtypes", []),
|
|
1583
1590
|
fe("design:returntype", void 0)
|
|
1584
1591
|
], Qe.prototype, "render", null);
|
|
1585
|
-
Qe.style =
|
|
1586
|
-
const
|
|
1587
|
-
var
|
|
1592
|
+
Qe.style = wt;
|
|
1593
|
+
const Ct = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-select-event-type{height:inherit;overflow-y:auto}.nylas-select-event-type div.header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200)}.nylas-select-event-type div.header h2{font-size:18px;padding:0 24px;line-height:24px;margin:0;font-weight:600;color:var(--nylas-base-800)}.nylas-select-event-type div.header button-component button{background:transparent;border:none;cursor:pointer}.nylas-select-event-type div.header button-component button:hover,.nylas-select-event-type div.header button-component button:active{color:var(--nylas-primary);background-color:transparent}.nylas-select-event-type div.header button-component button:disabled{cursor:not-allowed}.nylas-select-event-type div.content{padding:40px}.nylas-select-event-type div.content h3{margin:0 0 32px 0;font-size:18px;line-height:24px;font-weight:600}.nylas-select-event-type div.content div.event-type{display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option{padding:16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-3x);width:inherit;cursor:pointer;display:flex;flex-direction:column;gap:8px}.nylas-select-event-type div.content div.event-type div.event-type-option h4{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--nylas-base-900)}.nylas-select-event-type div.content div.event-type div.event-type-option p{margin:0;font-size:14px;line-height:21px;font-weight:400;color:var(--nylas-base-800)}', xt = Ct;
|
|
1594
|
+
var Et = function(e, t, a, s) {
|
|
1588
1595
|
var l = arguments.length, r = l < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, o;
|
|
1589
1596
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1590
1597
|
r = Reflect.decorate(e, t, a, s);
|
|
@@ -1598,7 +1605,7 @@ var xt = function(e, t, a, s) {
|
|
|
1598
1605
|
};
|
|
1599
1606
|
const Xe = class {
|
|
1600
1607
|
constructor(e) {
|
|
1601
|
-
te(this, e), this.returnToAllSchedulingPagesEvent =
|
|
1608
|
+
te(this, e), this.returnToAllSchedulingPagesEvent = m(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = m(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0, this.enableEventTypes = {
|
|
1602
1609
|
one_on_one: !0,
|
|
1603
1610
|
collective: !0,
|
|
1604
1611
|
max_fairness: !0,
|
|
@@ -1635,30 +1642,30 @@ const Xe = class {
|
|
|
1635
1642
|
}, t = [
|
|
1636
1643
|
{
|
|
1637
1644
|
label: i.t("nylasSelectEventType.eventTypeOptions.oneOnOne.label"),
|
|
1638
|
-
value:
|
|
1645
|
+
value: I.one_on_one,
|
|
1639
1646
|
description: i.t("nylasSelectEventType.eventTypeOptions.oneOnOne.desc")
|
|
1640
1647
|
},
|
|
1641
1648
|
{
|
|
1642
1649
|
label: i.t("nylasSelectEventType.eventTypeOptions.collective.label"),
|
|
1643
|
-
value:
|
|
1650
|
+
value: I.collective,
|
|
1644
1651
|
description: i.t("nylasSelectEventType.eventTypeOptions.collective.desc")
|
|
1645
1652
|
},
|
|
1646
1653
|
{
|
|
1647
1654
|
label: i.t("nylasSelectEventType.eventTypeOptions.maxFairness.label"),
|
|
1648
|
-
value:
|
|
1655
|
+
value: I.max_fairness,
|
|
1649
1656
|
description: i.t("nylasSelectEventType.eventTypeOptions.maxFairness.desc")
|
|
1650
1657
|
},
|
|
1651
1658
|
{
|
|
1652
1659
|
label: i.t("nylasSelectEventType.eventTypeOptions.maxAvailability.label"),
|
|
1653
|
-
value:
|
|
1660
|
+
value: I.max_availability,
|
|
1654
1661
|
description: i.t("nylasSelectEventType.eventTypeOptions.maxAvailability.desc")
|
|
1655
1662
|
},
|
|
1656
1663
|
{
|
|
1657
1664
|
label: i.t("nylasSelectEventType.eventTypeOptions.group.label"),
|
|
1658
|
-
value:
|
|
1665
|
+
value: I.group,
|
|
1659
1666
|
description: i.t("nylasSelectEventType.eventTypeOptions.group.desc")
|
|
1660
1667
|
}
|
|
1661
|
-
], a = [
|
|
1668
|
+
], a = [I.collective, I.max_availability, I.max_fairness], s = this.participantOptions && ((r = this.participantOptions) == null ? void 0 : r.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, l = this.enableEventTypes ? t.filter((o) => {
|
|
1662
1669
|
const d = o.value, c = e[d];
|
|
1663
1670
|
return console.log("key", d, this.enableEventTypes ? this.enableEventTypes[c] : "no enableEventTypes"), a.includes(d) && !s ? !1 : this.enableEventTypes && this.enableEventTypes[c];
|
|
1664
1671
|
}) : t;
|
|
@@ -1678,7 +1685,7 @@ const Xe = class {
|
|
|
1678
1685
|
};
|
|
1679
1686
|
}
|
|
1680
1687
|
};
|
|
1681
|
-
|
|
1688
|
+
Et([
|
|
1682
1689
|
be({
|
|
1683
1690
|
name: "nylas-select-event-type",
|
|
1684
1691
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -1701,10 +1708,10 @@ xt([
|
|
|
1701
1708
|
me("design:paramtypes", []),
|
|
1702
1709
|
me("design:returntype", void 0)
|
|
1703
1710
|
], Xe.prototype, "render", null);
|
|
1704
|
-
Xe.style =
|
|
1711
|
+
Xe.style = xt;
|
|
1705
1712
|
export {
|
|
1706
|
-
|
|
1707
|
-
|
|
1713
|
+
lt as google_logo_icon,
|
|
1714
|
+
pt as microsoft_logo_icon,
|
|
1708
1715
|
Ke as nylas_editor_tabs,
|
|
1709
1716
|
Ye as nylas_editor_tabs_group,
|
|
1710
1717
|
Qe as nylas_list_configurations,
|