@nylas/react 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-circle-icon_2.entry-6e8e4e1e.cjs → add-circle-icon_2.entry-04909861.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-dbad9a3b.js → add-circle-icon_2.entry-0d9ba871.js} +1 -1
- package/dist/{archive-icon.entry-802f7877.js → archive-icon.entry-3d6d9d3f.js} +1 -1
- package/dist/{archive-icon.entry-21f532af.cjs → archive-icon.entry-88459432.cjs} +1 -1
- package/dist/{arrow-icon.entry-e3dec626.js → arrow-icon.entry-789ee889.js} +1 -1
- package/dist/{arrow-icon.entry-e9af732a.cjs → arrow-icon.entry-c35e1933.cjs} +1 -1
- package/dist/{bold-icon.entry-1a2be28a.cjs → bold-icon.entry-827e95bf.cjs} +1 -1
- package/dist/{bold-icon.entry-0492ff02.js → bold-icon.entry-fbb382d2.js} +1 -1
- package/dist/{button-component_2.entry-fea9bd3d.js → button-component_2.entry-6c012ee4.js} +8 -8
- package/dist/{button-component_2.entry-f0c7f894.cjs → button-component_2.entry-acd13f45.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_36.entry-c85d6a79.js → calendar-agenda-fill-icon_36.entry-1bb3b1a8.js} +509 -462
- package/dist/calendar-agenda-fill-icon_36.entry-fa8121df.cjs +6 -0
- package/dist/{calendar-cancel-icon.entry-237b8c9e.cjs → calendar-cancel-icon.entry-2e97f7d8.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-e7dd5b8f.js → calendar-cancel-icon.entry-a4d040db.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-c7f47fc8.js → calendar-check-icon_2.entry-a48a358d.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-a868e0bc.cjs → calendar-check-icon_2.entry-bca4821d.cjs} +1 -1
- package/dist/{calendar-icon.entry-324de624.js → calendar-icon.entry-57727659.js} +1 -1
- package/dist/{calendar-icon.entry-071eb30d.cjs → calendar-icon.entry-a289313a.cjs} +1 -1
- package/dist/{checkbox-component.entry-5bcf4b08.cjs → checkbox-component.entry-af3e7005.cjs} +1 -1
- package/dist/{checkbox-component.entry-0f9970cc.js → checkbox-component.entry-f4f98226.js} +1 -1
- package/dist/{checkmark-icon_15.entry-7776e533.cjs → checkmark-icon_15.entry-dace1b62.cjs} +2 -2
- package/dist/{checkmark-icon_15.entry-98377585.js → checkmark-icon_15.entry-f43549b3.js} +7 -7
- package/dist/{chevron-icon_3.entry-526b4b85.cjs → chevron-icon_3.entry-219b42e6.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-ec66260c.js → chevron-icon_3.entry-25533d13.js} +5 -5
- package/dist/{clock-icon_4.entry-66d15f7c.cjs → clock-icon_4.entry-3917c667.cjs} +1 -1
- package/dist/{clock-icon_4.entry-4fa47996.js → clock-icon_4.entry-76f29f7e.js} +1 -1
- package/dist/{constants-f5ba52b9-40ab2ded.js → constants-3d8016e3-3c080f00.js} +17 -28
- package/dist/constants-3d8016e3-fd6c3848.cjs +1 -0
- package/dist/{customParseFormat-39eacb44-eeffe2bb.js → customParseFormat-6c652dbb-8a42d5b0.js} +1 -1
- package/dist/{customParseFormat-39eacb44-45ade322.cjs → customParseFormat-6c652dbb-ba81ab97.cjs} +1 -1
- package/dist/{delete-icon.entry-95d01eb8.js → delete-icon.entry-3b61864e.js} +1 -1
- package/dist/{delete-icon.entry-540aa2bb.cjs → delete-icon.entry-96420b21.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-b82d5da8.js → document-refresh-icon.entry-7333b7c9.js} +1 -1
- package/dist/{document-refresh-icon.entry-c467f082.cjs → document-refresh-icon.entry-8b5c6b9b.cjs} +1 -1
- package/dist/{feedbackSync-47d13bb0-5608d680.js → feedbackSync-352aaf4a-b2b83cfa.js} +1 -1
- package/dist/{feedbackSync-47d13bb0-9f249f33.cjs → feedbackSync-352aaf4a-ba1bf452.cjs} +1 -1
- package/dist/{folder-icon.entry-cb0dc63d.js → folder-icon.entry-bb5e2452.js} +1 -1
- package/dist/{folder-icon.entry-4d48c2ee.cjs → folder-icon.entry-d2e46d3a.cjs} +1 -1
- package/dist/{forward-icon.entry-d04aaf6d.cjs → forward-icon.entry-1fcf5a6b.cjs} +1 -1
- package/dist/{forward-icon.entry-5aa01f53.js → forward-icon.entry-af8d2147.js} +1 -1
- package/dist/{globe-icon_2.entry-87e29cdf.cjs → globe-icon_2.entry-b4b55760.cjs} +1 -1
- package/dist/{globe-icon_2.entry-c7ae78cc.js → globe-icon_2.entry-cc6d9d67.js} +3 -3
- package/dist/{google-logo-icon_6.entry-80a6bfa3.js → google-logo-icon_6.entry-aa7b5b42.js} +314 -287
- package/dist/google-logo-icon_6.entry-eefdec63.cjs +2 -0
- package/dist/{google-meet-icon_5.entry-4e71c83b.js → google-meet-icon_5.entry-9758e527.js} +1 -1
- package/dist/{google-meet-icon_5.entry-26d667b6.cjs → google-meet-icon_5.entry-c545537a.cjs} +1 -1
- package/dist/{inbox-icon.entry-60a82bfc.cjs → inbox-icon.entry-b9640d5a.cjs} +1 -1
- package/dist/{inbox-icon.entry-77e4e17b.js → inbox-icon.entry-c005ebc5.js} +1 -1
- package/dist/index-05630f15.cjs +57 -0
- package/dist/{index-04630615.js → index-78390f2e.js} +114 -87
- package/dist/{index.es-1fdb1e36-fbdb04fa.js → index.es-4a203e8e-cf485db5.js} +1 -1
- package/dist/{index.es-1fdb1e36-830a422f.cjs → index.es-4a203e8e-f668b8c2.cjs} +1 -1
- package/dist/{info-icon_2.entry-3c483f61.js → info-icon_2.entry-b17298b6.js} +1 -1
- package/dist/{info-icon_2.entry-34800b66.cjs → info-icon_2.entry-ecbc6605.cjs} +1 -1
- package/dist/{input-component.entry-f7ccf3d6.cjs → input-component.entry-24366ab8.cjs} +1 -1
- package/dist/{input-component.entry-ea4016fe.js → input-component.entry-9da5da6c.js} +1 -1
- package/dist/{input-dropdown_2.entry-d4024d2f.cjs → input-dropdown_2.entry-0109b06c.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-c7730cf8.js → input-dropdown_2.entry-d65f7152.js} +4 -4
- package/dist/{italic-icon.entry-8127c2ee.cjs → italic-icon.entry-afa4332a.cjs} +1 -1
- package/dist/{italic-icon.entry-6e0805ab.js → italic-icon.entry-d0a536f2.js} +1 -1
- package/dist/{multi-select-dropdown_2.entry-49d6f0e7.cjs → multi-select-dropdown_2.entry-2c7a1a06.cjs} +1 -1
- package/dist/{multi-select-dropdown_2.entry-d749999d.js → multi-select-dropdown_2.entry-c56b5fd2.js} +2 -2
- package/dist/{notebook-store-b61693cd-7a5576e7.js → notebook-store-b61693cd-0877e7a2.js} +1 -1
- package/dist/{notebook-store-b61693cd-84de36d2.cjs → notebook-store-b61693cd-a7b8ae37.cjs} +1 -1
- package/dist/nylas-booked-event-card_12.entry-827c7fb4.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-3fcfd6f9.js → nylas-booked-event-card_12.entry-960fdfe2.js} +347 -343
- package/dist/{nylas-call-summary.entry-38aed89a.js → nylas-call-summary.entry-1cce1446.js} +1 -1
- package/dist/{nylas-call-summary.entry-e9adcb93.cjs → nylas-call-summary.entry-f10f3c54.cjs} +1 -1
- package/dist/{nylas-event-calendar_3.entry-62d1f1f5.js → nylas-event-calendar_3.entry-8bb08ed3.js} +35 -23
- package/dist/{nylas-event-calendar_3.entry-48f656e5.cjs → nylas-event-calendar_3.entry-b656237b.cjs} +2 -2
- package/dist/{nylas-form-card.entry-b900b46e.cjs → nylas-form-card.entry-62578338.cjs} +1 -1
- package/dist/{nylas-form-card.entry-3828ccb1.js → nylas-form-card.entry-7455b8f1.js} +2 -2
- package/dist/{nylas-if-state.entry-92af0a51.cjs → nylas-if-state.entry-0897dc70.cjs} +1 -1
- package/dist/{nylas-if-state.entry-2810dcf5.js → nylas-if-state.entry-7fa6d392.js} +2 -2
- package/dist/{nylas-key-points.entry-977a6fae.js → nylas-key-points.entry-449e1be0.js} +3 -3
- package/dist/{nylas-key-points.entry-de658637.cjs → nylas-key-points.entry-693f33a1.cjs} +1 -1
- package/dist/{nylas-login.entry-4a6c11e6.cjs → nylas-login.entry-36544dc8.cjs} +1 -1
- package/dist/{nylas-login.entry-8101d3d0.js → nylas-login.entry-d7082306.js} +2 -2
- package/dist/{nylas-provider.entry-c054d68a.js → nylas-provider.entry-a0e7ce4d.js} +5 -5
- package/dist/{nylas-provider.entry-b7ac25f5.cjs → nylas-provider.entry-b93d2a62.cjs} +1 -1
- package/dist/nylas-scheduler-editor.entry-332d27e0.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-e35fad5c.js → nylas-scheduler-editor.entry-78fe5abf.js} +20 -20
- package/dist/nylas-scheduling.entry-1d80c349.cjs +1 -0
- package/dist/{nylas-scheduling.entry-360b978c.js → nylas-scheduling.entry-fa9ff55b.js} +33 -33
- package/dist/{nylas-transcript.entry-4d973027.cjs → nylas-transcript.entry-570d3abe.cjs} +3 -3
- package/dist/{nylas-transcript.entry-81e2c821.js → nylas-transcript.entry-b129565c.js} +24 -24
- package/dist/nylas-video-player.entry-9c7c9792.cjs +1 -0
- package/dist/nylas-video-player.entry-e208d443.js +39 -0
- package/dist/{nylas-video-preview.entry-320421b6.js → nylas-video-preview.entry-a3f542ad.js} +1 -1
- package/dist/{nylas-video-preview.entry-12e05e4d.cjs → nylas-video-preview.entry-bd9bdda7.cjs} +1 -1
- package/dist/{person-icon.entry-8533209c.js → person-icon.entry-82fbc43e.js} +1 -1
- package/dist/{person-icon.entry-967ad730.cjs → person-icon.entry-e4d11400.cjs} +1 -1
- package/dist/{play-icon.entry-15ee8568.js → play-icon.entry-68bc660a.js} +1 -1
- package/dist/{play-icon.entry-7b1fd79d.cjs → play-icon.entry-9cab598b.cjs} +1 -1
- package/dist/{radio-button-group.entry-24cb342f.cjs → radio-button-group.entry-6a2adf11.cjs} +1 -1
- package/dist/{radio-button-group.entry-53dcf16c.js → radio-button-group.entry-f7679911.js} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-0486ae54.cjs → refresh-icon.entry-0f1e5f20.cjs} +1 -1
- package/dist/{refresh-icon.entry-f3320971.js → refresh-icon.entry-394b0814.js} +1 -1
- package/dist/{register-component-504a1cbb-89124fd8.cjs → register-component-1027b769-62812558.cjs} +1 -1
- package/dist/{register-component-504a1cbb-5f986d7f.js → register-component-1027b769-dd21b16d.js} +1 -1
- package/dist/{reply-all-icon.entry-006fd1fb.js → reply-all-icon.entry-0fad8f2f.js} +1 -1
- package/dist/{reply-all-icon.entry-2cea1a40.cjs → reply-all-icon.entry-1680f1e5.cjs} +1 -1
- package/dist/{reply-icon.entry-d27166a1.js → reply-icon.entry-5f4b7837.js} +1 -1
- package/dist/{reply-icon.entry-bd252aed.cjs → reply-icon.entry-77342442.cjs} +1 -1
- package/dist/{scheduler-config-store-d6729d8d-4a2defea.cjs → scheduler-config-store-d6729d8d-06a3a314.cjs} +1 -1
- package/dist/{scheduler-config-store-d6729d8d-63e34849.js → scheduler-config-store-d6729d8d-854b5da8.js} +1 -1
- package/dist/scheduler-store-f3e2a26f-7cee436f.cjs +1 -0
- package/dist/{scheduler-store-baf100ed-81b183dc.js → scheduler-store-f3e2a26f-85df53f7.js} +60 -60
- package/dist/{sent-icon.entry-ee434395.cjs → sent-icon.entry-20a8945d.cjs} +1 -1
- package/dist/{sent-icon.entry-bf101068.js → sent-icon.entry-2d122865.js} +1 -1
- package/dist/{spam-icon.entry-11016b63.cjs → spam-icon.entry-86178cc5.cjs} +1 -1
- package/dist/{spam-icon.entry-5193f9c6.js → spam-icon.entry-9e374d44.js} +1 -1
- package/dist/{star-icon.entry-0e269252.cjs → star-icon.entry-1b94c861.cjs} +1 -1
- package/dist/{star-icon.entry-9c7449f3.js → star-icon.entry-bb1b517d.js} +1 -1
- package/dist/{stop-icon.entry-86412c9f.cjs → stop-icon.entry-7b21833b.cjs} +1 -1
- package/dist/{stop-icon.entry-2ac11166.js → stop-icon.entry-e4d3526d.js} +1 -1
- package/dist/{textarea-component.entry-9df3fa96.js → textarea-component.entry-ba3c9311.js} +1 -1
- package/dist/{textarea-component.entry-27717409.cjs → textarea-component.entry-fdba933d.cjs} +1 -1
- package/dist/{toggle-switch.entry-a5ddfad9.js → toggle-switch.entry-4a980d1d.js} +1 -1
- package/dist/{toggle-switch.entry-9623e2b2.cjs → toggle-switch.entry-9142a3d3.cjs} +1 -1
- package/dist/{translate-icon.entry-f22293e6.js → translate-icon.entry-1657aa04.js} +1 -1
- package/dist/{translate-icon.entry-e0617680.cjs → translate-icon.entry-b4908cf3.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-0275f657.cjs → trash-fill-icon.entry-a6791185.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-2616c5df.js → trash-fill-icon.entry-c9e1769e.js} +1 -1
- package/dist/{underline-icon.entry-1110dcb1.js → underline-icon.entry-1ba4d923.js} +1 -1
- package/dist/{underline-icon.entry-d54b06ab.cjs → underline-icon.entry-d1f91e63.cjs} +1 -1
- package/dist/{warning-icon.entry-6d390ab7.cjs → warning-icon.entry-b1480f57.cjs} +1 -1
- package/dist/{warning-icon.entry-9a6e7913.js → warning-icon.entry-fe155c15.js} +1 -1
- package/package.json +4 -4
- package/dist/calendar-agenda-fill-icon_36.entry-70681da2.cjs +0 -6
- package/dist/constants-f5ba52b9-a0866d2f.cjs +0 -1
- package/dist/google-logo-icon_6.entry-a8b6efc0.cjs +0 -2
- package/dist/index-3d1f13d6.cjs +0 -57
- package/dist/nylas-booked-event-card_12.entry-29337b10.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-1538950d.cjs +0 -2
- package/dist/nylas-scheduling.entry-92351cd2.cjs +0 -1
- package/dist/nylas-video-player.entry-60268c07.js +0 -39
- package/dist/nylas-video-player.entry-f3c2b073.cjs +0 -1
- package/dist/scheduler-store-baf100ed-5c5d3aa5.cjs +0 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { R as
|
|
3
|
-
import { C as
|
|
4
|
-
import { i as
|
|
1
|
+
import { r as X, h as n, c as _, d as b, i as p, s as fe, v as se, H as re, g as le, F as ie, j as et } from "./index-78390f2e.js";
|
|
2
|
+
import { R as de } from "./register-component-1027b769-dd21b16d.js";
|
|
3
|
+
import { C as O, D as Ge, e as tt, b as nt } from "./constants-3d8016e3-3c080f00.js";
|
|
4
|
+
import { i as Ae, a as je, c as $e, b as Je, f as Ve } from "./feedbackSync-352aaf4a-b2b83cfa.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
const
|
|
8
|
+
const at = ".sc-google-logo-icon-h{display:flex}", ot = at, st = class {
|
|
9
9
|
constructor(e) {
|
|
10
|
-
|
|
10
|
+
X(this, e), this.width = "24", this.height = "24";
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
return n("svg", { key: "6a2c621ba5bde80fe3adc8427ad0d94df265a2fc", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("g", { key: "87acb19eeb19382c6063360f92c7554039ad2c87", "clip-path": "url(#clip0_959_12452)" }, n("path", { key: "3d6abcc6b7755164cd3037df0529793becefce72", 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: "b7961a5e8c0e93b3d8996cf40b845d7741335229", 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: "32a135d689dc72b3a0fc597dea20f88290c1f6ae", 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: "74518d77b48b593df3085f600d38b99abfe368bb", 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: "0c69b9fad17f8891565bdb5162822cd3c44f6ca0" }, n("clipPath", { key: "3c645b8c42436ad0664b38ce08b42404f4fa541b", id: "clip0_959_12452" }, n("rect", { key: "f6f7b93e206bce48be1739a1b8ae8bc2e8242357", width: 24, height: 24, fill: "white" }))));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
const
|
|
16
|
+
st.style = ot;
|
|
17
|
+
const it = ".sc-microsoft-logo-icon-h{display:flex}", rt = it, lt = class {
|
|
18
18
|
constructor(e) {
|
|
19
|
-
|
|
19
|
+
X(this, e), this.width = "22", this.height = "22";
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
return n("svg", { key: "43e12d49816520a670de91afdb1cfd1136ba6a8e", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, n("path", { key: "08c5a9b3a6d34bf5900e6149bf0f732e8fb1f51f", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), n("path", { key: "ae3d52d82f9727d53a675d17c76eaf82c3d545ac", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), n("path", { key: "b42837c53c4c0bfc7bbf5676bc82c83e1f3af391", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), n("path", { key: "eec316af4193848e15630e680e357e4c313c6b6c", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
lt.style = rt;
|
|
26
26
|
var u;
|
|
27
27
|
(function(e) {
|
|
28
28
|
e.EventInfo = "eventInfo", e.Availability = "availability", e.BookingOptions = "bookingOptions", e.Communications = "communications", e.Participants = "participants", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles";
|
|
29
29
|
})(u || (u = {}));
|
|
30
|
-
function
|
|
30
|
+
function dt({ id: e, formState: t, activeTab: a }, s) {
|
|
31
31
|
return n(
|
|
32
|
-
|
|
32
|
+
ie,
|
|
33
33
|
null,
|
|
34
34
|
n(
|
|
35
35
|
"div",
|
|
@@ -89,7 +89,7 @@ function lt({ id: e, formState: t, activeTab: a }, s) {
|
|
|
89
89
|
{ key: `communications-${e}`, class: { hide: a !== u.Communications } },
|
|
90
90
|
n("nylas-disable-emails", { name: "disable-emails", exportparts: "nde, nde__toggle-label, nde_toggle-input, nde_toggle-slider" }),
|
|
91
91
|
!(t != null && t.disableEmails) && n(
|
|
92
|
-
|
|
92
|
+
ie,
|
|
93
93
|
null,
|
|
94
94
|
n("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
|
|
95
95
|
n("nylas-reminder-emails", { name: "reminder-overrides", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" })
|
|
@@ -115,8 +115,8 @@ function lt({ id: e, formState: t, activeTab: a }, s) {
|
|
|
115
115
|
)
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
var
|
|
118
|
+
const ct = '.sc-nylas-editor-tabs-h{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-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}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}', pt = ct;
|
|
119
|
+
var bt = function(e, t, a, s) {
|
|
120
120
|
var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
|
|
121
121
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
122
122
|
o = Reflect.decorate(e, t, a, s);
|
|
@@ -124,14 +124,14 @@ var pt = function(e, t, a, s) {
|
|
|
124
124
|
for (var r = e.length - 1; r >= 0; r--)
|
|
125
125
|
(l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
|
|
126
126
|
return i > 3 && o && Object.defineProperty(t, a, o), o;
|
|
127
|
-
},
|
|
127
|
+
}, be = function(e, t) {
|
|
128
128
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
129
129
|
return Reflect.metadata(e, t);
|
|
130
130
|
};
|
|
131
|
-
const
|
|
131
|
+
const Ze = class {
|
|
132
132
|
constructor(e) {
|
|
133
|
-
|
|
134
|
-
var
|
|
133
|
+
X(this, e), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = _(this, "schedulerConfigCreated", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = _(this, "schedulerEditorFormUpdated", 7), this.formSubmissionHandler = async (t) => {
|
|
134
|
+
var ge, me, _e, ve, we, ke, Ce, xe, Se, Ee, Te, Fe, Le, Oe, Pe, Be, ze;
|
|
135
135
|
t.preventDefault();
|
|
136
136
|
const a = await this.formSubmitted.emit();
|
|
137
137
|
if (b("[nylas-editor-tabs]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
|
|
@@ -141,10 +141,10 @@ const Je = class {
|
|
|
141
141
|
this.isLoading = !0, this.hasUnsavedChanges = !1;
|
|
142
142
|
const i = this.updateFormState();
|
|
143
143
|
b("[nylas-editor-tabs]", "formState", i);
|
|
144
|
-
const { title: o, description: l, duration: r, availability: d, bookingCalendar: c, location:
|
|
144
|
+
const { title: o, description: l, duration: r, availability: d, bookingCalendar: c, location: y, bookingType: g, buffer: C, availableDaysInFuture: E, minCancellationNotice: z, minBookingNotice: P, cancellationPolicy: H, timeslotInterval: S, additionalGuestsHidden: U, hideCancellationOptions: I, hideReschedulingOptions: R, participants: T, participantOpenHours: w, additionalFields: m, participantCalendars: v, conferencing: G, participantBookingCalendars: x, reminders: A, emailTemplate: D, redirectUrl: B, availabilityMethod: j, slug: V, appearance: M, name: Z, disableEmails: Y, organizerLocale: K } = i, k = ((me = (ge = this.selectedConfiguration) == null ? void 0 : ge.participants) == null ? void 0 : me.find((f) => f.is_organizer)) || (T == null ? void 0 : T.find((f) => f.is_organizer)), $ = v && (k != null && k.email) ? v[k == null ? void 0 : k.email] : [], W = ((_e = k == null ? void 0 : k.booking) == null ? void 0 : _e.calendar_id) || c, F = r ? parseInt(r) : 30, L = T && (T == null ? void 0 : T.length) > 0 ? T : [
|
|
145
145
|
{
|
|
146
|
-
name: (
|
|
147
|
-
email: (
|
|
146
|
+
name: (k == null ? void 0 : k.name) ?? ((ve = this.currentUser) == null ? void 0 : ve.name) ?? "",
|
|
147
|
+
email: (k == null ? void 0 : k.email) ?? ((we = this.currentUser) == null ? void 0 : we.email) ?? "",
|
|
148
148
|
is_organizer: !0,
|
|
149
149
|
timezone: (d == null ? void 0 : d.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
150
150
|
availability: {
|
|
@@ -156,90 +156,94 @@ const Je = class {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
];
|
|
159
|
-
let
|
|
160
|
-
this.selectedEventType && this.selectedEventType !==
|
|
161
|
-
const
|
|
162
|
-
...((
|
|
163
|
-
version: ((
|
|
164
|
-
slug:
|
|
165
|
-
name:
|
|
159
|
+
let N = j || (((xe = (Ce = (ke = this.selectedConfiguration) == null ? void 0 : ke.availability) == null ? void 0 : Ce.availability_rules) == null ? void 0 : xe.availability_method) ?? "collective");
|
|
160
|
+
this.selectedEventType && this.selectedEventType !== O.group && (N = this.selectedEventType === O.one_on_one ? O.collective : this.selectedEventType), console.log("availabilityMethodSelected", N);
|
|
161
|
+
const q = {
|
|
162
|
+
...((Se = this.selectedConfiguration) == null ? void 0 : Se.id) && { id: this.selectedConfiguration.id },
|
|
163
|
+
version: ((Ee = this.selectedConfiguration) == null ? void 0 : Ee.version) ?? "1.0.0",
|
|
164
|
+
slug: V,
|
|
165
|
+
name: Z,
|
|
166
166
|
availability: {
|
|
167
|
-
duration_minutes:
|
|
168
|
-
interval_minutes: (
|
|
169
|
-
round_to:
|
|
167
|
+
duration_minutes: F,
|
|
168
|
+
interval_minutes: (S == null ? void 0 : S.interval) ?? F,
|
|
169
|
+
round_to: S == null ? void 0 : S.roundTo,
|
|
170
170
|
availability_rules: {
|
|
171
|
-
availability_method:
|
|
172
|
-
buffer:
|
|
173
|
-
default_open_hours: (d == null ? void 0 : d.openHours) ?? ((
|
|
174
|
-
round_robin_group_id: ((
|
|
171
|
+
availability_method: N,
|
|
172
|
+
buffer: C || { before: 0, after: 0 },
|
|
173
|
+
default_open_hours: (d == null ? void 0 : d.openHours) ?? ((Le = (Fe = (Te = this.selectedConfiguration) == null ? void 0 : Te.availability) == null ? void 0 : Fe.availability_rules) == null ? void 0 : Le.default_open_hours) ?? Ge,
|
|
174
|
+
round_robin_group_id: ((Be = (Pe = (Oe = this.selectedConfiguration) == null ? void 0 : Oe.availability) == null ? void 0 : Pe.availability_rules) == null ? void 0 : Be.round_robin_group_id) ?? ""
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
participants: [
|
|
178
|
-
...
|
|
179
|
-
var
|
|
180
|
-
let
|
|
181
|
-
if ((
|
|
182
|
-
const
|
|
178
|
+
...L ? L.map((f) => {
|
|
179
|
+
var He, Ue, Ie, Ne, Re, De;
|
|
180
|
+
let Q = (d == null ? void 0 : d.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
181
|
+
if ((He = w == null ? void 0 : w[f.email]) != null && He.length && (Q = (Ie = (Ue = w == null ? void 0 : w[f.email]) == null ? void 0 : Ue[0]) == null ? void 0 : Ie.timezone), f.is_organizer) {
|
|
182
|
+
const Me = x != null && x[f.email] ? x == null ? void 0 : x[f.email] : W || "primary", pe = v != null && v[f.email] ? v == null ? void 0 : v[f.email] : $ != null && $.length ? $ : ["primary"], Xe = pe.length === 1 && pe[0] === "primary";
|
|
183
183
|
return {
|
|
184
184
|
name: f.name ?? "",
|
|
185
185
|
email: f.email,
|
|
186
186
|
is_organizer: !0,
|
|
187
|
-
timezone:
|
|
187
|
+
timezone: Q,
|
|
188
188
|
availability: {
|
|
189
|
-
calendar_ids:
|
|
190
|
-
open_hours: (
|
|
189
|
+
calendar_ids: Xe ? [Me] : pe,
|
|
190
|
+
open_hours: (w == null ? void 0 : w[f.email]) ?? ((Ne = f.availability) == null ? void 0 : Ne.open_hours) ?? []
|
|
191
191
|
},
|
|
192
192
|
booking: {
|
|
193
|
-
calendar_id:
|
|
193
|
+
calendar_id: Me
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const ee = x != null && x[f.email] ? { calendar_id: x == null ? void 0 : x[f.email] } : (f == null ? void 0 : f.booking) ?? void 0, ce = (v == null ? void 0 : v[f.email]) ?? ((Re = f.availability) == null ? void 0 : Re.calendar_ids) ?? ["primary"], Qe = ce.length === 1 && ce[0] === "primary";
|
|
198
198
|
return {
|
|
199
199
|
...f,
|
|
200
|
-
timezone:
|
|
200
|
+
timezone: Q,
|
|
201
201
|
availability: f.availability ? {
|
|
202
|
-
calendar_ids:
|
|
203
|
-
open_hours: (
|
|
202
|
+
calendar_ids: Qe && typeof ee < "u" ? [ee == null ? void 0 : ee.calendar_id] : ce,
|
|
203
|
+
open_hours: (w == null ? void 0 : w[f.email]) ?? ((De = f.availability) == null ? void 0 : De.open_hours) ?? []
|
|
204
204
|
} : void 0,
|
|
205
|
-
booking:
|
|
205
|
+
booking: ee
|
|
206
206
|
};
|
|
207
207
|
}) : []
|
|
208
208
|
],
|
|
209
209
|
event_booking: {
|
|
210
210
|
title: (o == null ? void 0 : o.toString()) ?? "",
|
|
211
211
|
description: (l == null ? void 0 : l.toString()) ?? "",
|
|
212
|
-
location: (
|
|
213
|
-
booking_type: (
|
|
212
|
+
location: (y == null ? void 0 : y.toString()) ?? "",
|
|
213
|
+
booking_type: (g == null ? void 0 : g.toString()) ?? "booking",
|
|
214
214
|
timezone: (d == null ? void 0 : d.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
215
215
|
conferencing: G,
|
|
216
|
-
reminders:
|
|
217
|
-
disable_emails: typeof
|
|
216
|
+
reminders: A,
|
|
217
|
+
disable_emails: typeof Y == "boolean" ? Y : !1
|
|
218
218
|
},
|
|
219
219
|
scheduler: {
|
|
220
|
-
cancellation_policy:
|
|
221
|
-
available_days_in_future:
|
|
222
|
-
min_cancellation_notice:
|
|
220
|
+
cancellation_policy: H ?? "",
|
|
221
|
+
available_days_in_future: E ?? 30,
|
|
222
|
+
min_cancellation_notice: z ?? 0,
|
|
223
223
|
min_booking_notice: P ?? 60,
|
|
224
224
|
hide_additional_guests: U ?? !1,
|
|
225
|
-
hide_cancellation_options:
|
|
226
|
-
hide_rescheduling_options:
|
|
227
|
-
additional_fields:
|
|
228
|
-
email_template:
|
|
229
|
-
|
|
225
|
+
hide_cancellation_options: I ?? !1,
|
|
226
|
+
hide_rescheduling_options: R ?? !1,
|
|
227
|
+
additional_fields: m,
|
|
228
|
+
email_template: D ? {
|
|
229
|
+
...D,
|
|
230
|
+
organizer_locale: K || "en",
|
|
231
|
+
logo: D.logo || ""
|
|
232
|
+
} : void 0,
|
|
233
|
+
confirmation_redirect_url: B
|
|
230
234
|
},
|
|
231
|
-
appearance:
|
|
232
|
-
},
|
|
233
|
-
this.isConfigRoundRobin(
|
|
234
|
-
const
|
|
235
|
+
appearance: M
|
|
236
|
+
}, te = fe(this.selectedConfiguration, q || {}), J = this.action === "create" ? te : q;
|
|
237
|
+
this.isConfigRoundRobin(J) && (J.participants = J.participants.map((f) => ({ ...f, is_organizer: void 0 })));
|
|
238
|
+
const ne = (f) => {
|
|
235
239
|
this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
|
|
236
240
|
this.changesSaved = !1;
|
|
237
241
|
}, 5e3);
|
|
238
|
-
},
|
|
239
|
-
var
|
|
240
|
-
return f.id === ((
|
|
241
|
-
})) || {},
|
|
242
|
-
|
|
242
|
+
}, ae = this.checkForBookingFormErrors(J), oe = ((ze = this.configurations) == null ? void 0 : ze.find((f) => {
|
|
243
|
+
var Q;
|
|
244
|
+
return f.id === ((Q = this.selectedConfiguration) == null ? void 0 : Q.id);
|
|
245
|
+
})) || {}, Ke = this.checkForOrganizerConfirmationError(fe(J, oe));
|
|
246
|
+
ae || Ke || this.schedulerConfigChanged.emit({ config: J, resetLoadingState: ne, action: this.action, host: this.host });
|
|
243
247
|
}, this.isConfigRoundRobin = (t) => {
|
|
244
248
|
var a, s, i, o;
|
|
245
249
|
return ((s = (a = t == null ? void 0 : t.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : s.availability_method) === "max-availability" || ((o = (i = t.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : o.availability_method) === "max-fairness";
|
|
@@ -295,12 +299,12 @@ const Je = class {
|
|
|
295
299
|
}
|
|
296
300
|
componentDidLoad() {
|
|
297
301
|
var t, a;
|
|
298
|
-
b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !
|
|
302
|
+
b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Ae() && je({
|
|
299
303
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
300
|
-
release: "1.4.
|
|
304
|
+
release: "1.4.1",
|
|
301
305
|
integrations: (s) => [
|
|
302
306
|
...s.filter((i) => !1),
|
|
303
|
-
|
|
307
|
+
Ve({
|
|
304
308
|
colorScheme: "system",
|
|
305
309
|
autoInject: !1
|
|
306
310
|
})
|
|
@@ -317,7 +321,7 @@ const Je = class {
|
|
|
317
321
|
handleValueChanged(e) {
|
|
318
322
|
b("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
319
323
|
const { name: t, value: a } = e.detail;
|
|
320
|
-
console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, this.error = "",
|
|
324
|
+
console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, this.error = "", tt.includes(t) && (this.hasUnsavedChanges = !0), this.schedulerEditorFormUpdated.emit({
|
|
321
325
|
value: e.detail.value,
|
|
322
326
|
name: e.detail.name
|
|
323
327
|
});
|
|
@@ -328,7 +332,7 @@ const Je = class {
|
|
|
328
332
|
feedbackSubmittedHandler(e) {
|
|
329
333
|
var s, i, o, l, r, d;
|
|
330
334
|
const a = {
|
|
331
|
-
eventId:
|
|
335
|
+
eventId: $e("Scheduler Editor User Feedback", {
|
|
332
336
|
extra: {
|
|
333
337
|
configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
|
|
334
338
|
slug: (i = this.selectedConfiguration) == null ? void 0 : i.slug
|
|
@@ -336,12 +340,12 @@ const Je = class {
|
|
|
336
340
|
}),
|
|
337
341
|
message: e.detail.feedback
|
|
338
342
|
};
|
|
339
|
-
|
|
343
|
+
Je(a, {
|
|
340
344
|
includeReplay: !0,
|
|
341
345
|
captureContext: {
|
|
342
346
|
tags: {
|
|
343
347
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
344
|
-
"nylas-web-element-version": "1.4.
|
|
348
|
+
"nylas-web-element-version": "1.4.1",
|
|
345
349
|
"nylas-config-id": (o = this.selectedConfiguration) == null ? void 0 : o.id,
|
|
346
350
|
"nylas-slug": (l = this.selectedConfiguration) == null ? void 0 : l.slug,
|
|
347
351
|
"host-url": window.location.href
|
|
@@ -354,53 +358,54 @@ const Je = class {
|
|
|
354
358
|
}), this.showFeedbackModal = !1;
|
|
355
359
|
}
|
|
356
360
|
getFormStateFromConfig(e) {
|
|
357
|
-
var a, s, i, o, l, r, d, c,
|
|
358
|
-
let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((
|
|
359
|
-
return !t && ((i = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : i.availability_method) !== "collective" && (t = (o = e == null ? void 0 : e.participants) == null ? void 0 : o.find((
|
|
360
|
-
var
|
|
361
|
-
return
|
|
361
|
+
var a, s, i, o, l, r, d, c, y, g, C, E, z, P, H, S, U, I, R, T, w, m, v, G, x, A, D, B, j, V, M, Z, Y, K, k, $, W;
|
|
362
|
+
let t = (a = e == null ? void 0 : e.participants) == null ? void 0 : a.find((F) => F.is_organizer);
|
|
363
|
+
return !t && ((i = (s = e == null ? void 0 : e.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : i.availability_method) !== "collective" && (t = (o = e == null ? void 0 : e.participants) == null ? void 0 : o.find((F) => {
|
|
364
|
+
var L;
|
|
365
|
+
return F.email === ((L = this.currentUser) == null ? void 0 : L.email);
|
|
362
366
|
}), 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."), {
|
|
363
367
|
title: ((l = e == null ? void 0 : e.event_booking) == null ? void 0 : l.title) ?? "",
|
|
364
368
|
description: ((r = e == null ? void 0 : e.event_booking) == null ? void 0 : r.description) ?? "",
|
|
365
369
|
duration: ((c = (d = e == null ? void 0 : e.availability) == null ? void 0 : d.duration_minutes) == null ? void 0 : c.toString()) ?? "30",
|
|
366
370
|
availability: {
|
|
367
|
-
timezone: ((
|
|
368
|
-
openHours: ((
|
|
371
|
+
timezone: ((y = e == null ? void 0 : e.event_booking) == null ? void 0 : y.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
372
|
+
openHours: ((C = (g = e == null ? void 0 : e.availability) == null ? void 0 : g.availability_rules) == null ? void 0 : C.default_open_hours) ?? Ge
|
|
369
373
|
},
|
|
370
|
-
additionalFields: ((
|
|
371
|
-
conferencing: ((
|
|
374
|
+
additionalFields: ((E = e == null ? void 0 : e.scheduler) == null ? void 0 : E.additional_fields) ?? {},
|
|
375
|
+
conferencing: ((z = e == null ? void 0 : e.event_booking) == null ? void 0 : z.conferencing) ?? {},
|
|
372
376
|
calendarIds: ((P = t == null ? void 0 : t.availability) == null ? void 0 : P.calendar_ids) ?? [],
|
|
373
377
|
participants: (e == null ? void 0 : e.participants) ?? [],
|
|
374
|
-
bookingCalendar: ((
|
|
375
|
-
location: ((
|
|
378
|
+
bookingCalendar: ((H = t == null ? void 0 : t.booking) == null ? void 0 : H.calendar_id) ?? (t == null ? void 0 : t.email) ?? "",
|
|
379
|
+
location: ((S = e == null ? void 0 : e.event_booking) == null ? void 0 : S.location) ?? "",
|
|
376
380
|
bookingType: ((U = e == null ? void 0 : e.event_booking) == null ? void 0 : U.booking_type) ?? "booking",
|
|
377
|
-
buffer: ((
|
|
378
|
-
cancellationPolicy: ((
|
|
379
|
-
availableDaysInFuture: ((
|
|
380
|
-
minCancellationNotice: ((
|
|
381
|
-
minBookingNotice: ((
|
|
381
|
+
buffer: ((R = (I = e == null ? void 0 : e.availability) == null ? void 0 : I.availability_rules) == null ? void 0 : R.buffer) ?? { before: 0, after: 0 },
|
|
382
|
+
cancellationPolicy: ((T = e == null ? void 0 : e.scheduler) == null ? void 0 : T.cancellation_policy) ?? "",
|
|
383
|
+
availableDaysInFuture: ((w = e == null ? void 0 : e.scheduler) == null ? void 0 : w.available_days_in_future) ?? 30,
|
|
384
|
+
minCancellationNotice: ((m = e == null ? void 0 : e.scheduler) == null ? void 0 : m.min_cancellation_notice) ?? 0,
|
|
385
|
+
minBookingNotice: ((v = e == null ? void 0 : e.scheduler) == null ? void 0 : v.min_booking_notice) ?? 60,
|
|
382
386
|
timeslotInterval: {
|
|
383
|
-
interval: ((G = e == null ? void 0 : e.availability) == null ? void 0 : G.interval_minutes) ?? ((
|
|
384
|
-
roundTo: (
|
|
387
|
+
interval: ((G = e == null ? void 0 : e.availability) == null ? void 0 : G.interval_minutes) ?? ((x = e == null ? void 0 : e.availability) == null ? void 0 : x.duration_minutes),
|
|
388
|
+
roundTo: (A = e == null ? void 0 : e.availability) == null ? void 0 : A.round_to
|
|
385
389
|
},
|
|
386
|
-
additionalGuestsHidden: ((
|
|
387
|
-
hideCancellationOptions: ((
|
|
388
|
-
hideReschedulingOptions: ((
|
|
389
|
-
participantBookingCalendars: ((
|
|
390
|
-
var
|
|
391
|
-
return (
|
|
390
|
+
additionalGuestsHidden: ((D = e == null ? void 0 : e.scheduler) == null ? void 0 : D.hide_additional_guests) ?? !1,
|
|
391
|
+
hideCancellationOptions: ((B = e == null ? void 0 : e.scheduler) == null ? void 0 : B.hide_cancellation_options) ?? !1,
|
|
392
|
+
hideReschedulingOptions: ((j = e == null ? void 0 : e.scheduler) == null ? void 0 : j.hide_rescheduling_options) ?? !1,
|
|
393
|
+
participantBookingCalendars: ((V = e == null ? void 0 : e.participants) == null ? void 0 : V.reduce((F, L) => {
|
|
394
|
+
var N, q;
|
|
395
|
+
return (N = L.booking) != null && N.calendar_id && (F[L.email] = (q = L.booking) == null ? void 0 : q.calendar_id), F;
|
|
392
396
|
})) ?? {},
|
|
393
|
-
participantCalendars: ((
|
|
394
|
-
var
|
|
395
|
-
return
|
|
397
|
+
participantCalendars: ((M = e == null ? void 0 : e.participants) == null ? void 0 : M.reduce((F, L) => {
|
|
398
|
+
var N;
|
|
399
|
+
return F[L.email] = (N = L.availability) == null ? void 0 : N.calendar_ids, F;
|
|
396
400
|
}, {})) ?? {},
|
|
397
|
-
reminders: (
|
|
398
|
-
emailTemplate: (
|
|
399
|
-
redirectUrl: (
|
|
401
|
+
reminders: (Z = e == null ? void 0 : e.event_booking) == null ? void 0 : Z.reminders,
|
|
402
|
+
emailTemplate: (Y = e == null ? void 0 : e.scheduler) == null ? void 0 : Y.email_template,
|
|
403
|
+
redirectUrl: (K = e == null ? void 0 : e.scheduler) == null ? void 0 : K.confirmation_redirect_url,
|
|
400
404
|
slug: e == null ? void 0 : e.slug,
|
|
401
405
|
appearance: e == null ? void 0 : e.appearance,
|
|
402
406
|
name: e == null ? void 0 : e.name,
|
|
403
|
-
disableEmails: (
|
|
407
|
+
disableEmails: (k = e == null ? void 0 : e.event_booking) == null ? void 0 : k.disable_emails,
|
|
408
|
+
organizerLocale: (W = ($ = e == null ? void 0 : e.scheduler) == null ? void 0 : $.email_template) == null ? void 0 : W.organizer_locale
|
|
404
409
|
};
|
|
405
410
|
}
|
|
406
411
|
setFormState(e, t) {
|
|
@@ -472,9 +477,11 @@ const Je = class {
|
|
|
472
477
|
case "confirmation-email-template":
|
|
473
478
|
this.formState.emailTemplate = JSON.parse(e.toString());
|
|
474
479
|
break;
|
|
475
|
-
case "disable-emails":
|
|
476
|
-
|
|
480
|
+
case "disable-emails": {
|
|
481
|
+
const { disableEmails: a, organizerLocale: s } = JSON.parse(e.toString());
|
|
482
|
+
this.formState.disableEmails = a, this.formState.organizerLocale = s;
|
|
477
483
|
break;
|
|
484
|
+
}
|
|
478
485
|
case "reminder-overrides":
|
|
479
486
|
this.formState.reminders = JSON.parse(e.toString());
|
|
480
487
|
break;
|
|
@@ -516,19 +523,19 @@ const Je = class {
|
|
|
516
523
|
}
|
|
517
524
|
render() {
|
|
518
525
|
var e, t;
|
|
519
|
-
return b("[nylas-editor-tabs]", "render", this.formState), n(
|
|
526
|
+
return b("[nylas-editor-tabs]", "render", this.formState), n(re, { key: "19f6d1ad319b8c695078eac212c0316e8c4f96a6" }, n("form", { key: "c32b5443ea3f4797005b38b69184212994b9991e", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, 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: (a) => this.setActiveTab(a, u.EventInfo) }, n("calendar-info-icon", { width: "16", height: "16" }), p.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: (a) => this.setActiveTab(a, u.Availability) }, n("calendar-patterns-icon", { width: "16", height: "16" }), p.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: (a) => this.setActiveTab(a, u.Participants) }, n("people-icon", { width: "16", height: "16" }), p.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: (a) => this.setActiveTab(a, u.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), p.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: (a) => this.setActiveTab(a, u.BookingForm) }, this.activeTab == u.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), p.t("bookingFormTab")), n("button", { name: u.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(u.Communications) }, onClick: (a) => this.setActiveTab(a, 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" }), p.t("communicationsTab")), n("button", { name: u.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(u.PageStyles) }, onClick: (a) => this.setActiveTab(a, 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" }), p.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(dt, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: p }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "6f9c0945829766cbfba0c7425a78a7af49ad6364", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "679739b48dcba5bb65037dc495a7c5bcdf48b3c9", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null))), n("div", { key: "bc6758b9768fe3de1cd0acf5bf5cd1e76c36a4a5", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "513690770ca68d84ac1045a0287eb5278bf4f1e9", class: {
|
|
520
527
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
521
528
|
"saved-changes": this.changesSaved,
|
|
522
529
|
error: this.error !== "",
|
|
523
530
|
"error-full-width": this.error !== "" && this.action === "create"
|
|
524
531
|
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? p.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${p.t("changesSavedLabel")}!` : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
|
|
525
|
-
a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(
|
|
526
|
-
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "
|
|
532
|
+
a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(se(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
533
|
+
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "4c142bdcf49ad45d73b4eb69732b87f1c0ee5d53", type: "button", disabled: this.isLoading, clickHandler: (a) => {
|
|
527
534
|
a.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
|
|
528
|
-
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, p.t("backButton")), n("button-component", { key: "
|
|
535
|
+
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, p.t("backButton")), n("button-component", { key: "7609fa4f1c76454e0d65253e76eeadc3169bd93d", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, p.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${p.t("createButtonText")}` : `${p.t("saveChangesButtonText")}`)))), this.showFeedbackModal && n("nylas-feedback-form", null));
|
|
529
536
|
}
|
|
530
537
|
get host() {
|
|
531
|
-
return
|
|
538
|
+
return le(this);
|
|
532
539
|
}
|
|
533
540
|
static get watchers() {
|
|
534
541
|
return {
|
|
@@ -538,8 +545,8 @@ const Je = class {
|
|
|
538
545
|
};
|
|
539
546
|
}
|
|
540
547
|
};
|
|
541
|
-
|
|
542
|
-
|
|
548
|
+
bt([
|
|
549
|
+
de({
|
|
543
550
|
name: "nylas-editor-tabs",
|
|
544
551
|
stateToProps: /* @__PURE__ */ new Map([
|
|
545
552
|
["schedulerConfig.calendars", "calendars"],
|
|
@@ -586,28 +593,38 @@ pt([
|
|
|
586
593
|
]),
|
|
587
594
|
fireRegisterEvent: !0
|
|
588
595
|
}),
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
],
|
|
593
|
-
|
|
594
|
-
var
|
|
596
|
+
be("design:type", Function),
|
|
597
|
+
be("design:paramtypes", []),
|
|
598
|
+
be("design:returntype", void 0)
|
|
599
|
+
], Ze.prototype, "render", null);
|
|
600
|
+
Ze.style = pt;
|
|
601
|
+
var h;
|
|
595
602
|
(function(e) {
|
|
596
603
|
e.BookingOptions = "bookingOptions", e.Communications = "communications", e.BookingForm = "bookingForm", e.PageStyles = "pageStyles", e.CalendarView = "calendarView";
|
|
597
|
-
})(
|
|
598
|
-
function
|
|
604
|
+
})(h || (h = {}));
|
|
605
|
+
function ut({ id: e, formState: t, activeTab: a }, s) {
|
|
599
606
|
return n(
|
|
600
|
-
|
|
607
|
+
ie,
|
|
601
608
|
null,
|
|
602
|
-
|
|
609
|
+
a === h.CalendarView && n(
|
|
603
610
|
"div",
|
|
604
|
-
{ key: `calendar-view-${e}`, class: { hide:
|
|
611
|
+
{ key: `calendar-view-${e}`, class: { hide: a !== h.CalendarView, "calendar-view": !0 } },
|
|
605
612
|
n("nylas-event-calendar", null)
|
|
606
613
|
),
|
|
607
614
|
n(
|
|
608
615
|
"div",
|
|
609
|
-
{ key: `booking-options-${e}`, class: { hide:
|
|
616
|
+
{ key: `booking-options-${e}`, class: { hide: a !== h.BookingOptions } },
|
|
610
617
|
n("nylas-scheduling-method", { name: "availability-method", readOnly: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
|
|
618
|
+
n(
|
|
619
|
+
"nylas-custom-booking-flow",
|
|
620
|
+
{ exportparts: "ncbflow, ncbflow__header, ncbflow__title, ncbflow__content" },
|
|
621
|
+
n(
|
|
622
|
+
"div",
|
|
623
|
+
{ slot: "inputs" },
|
|
624
|
+
n("nylas-booking-confirmation-type", { name: "confirmation-type", exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
|
|
625
|
+
n("nylas-booking-confirmation-redirect", { name: "confirmation-redirect", exportparts: "nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield" })
|
|
626
|
+
)
|
|
627
|
+
),
|
|
611
628
|
n(
|
|
612
629
|
"nylas-event-limits",
|
|
613
630
|
null,
|
|
@@ -618,35 +635,34 @@ function bt({ id: e, activeTab: t, i18next: a }, s) {
|
|
|
618
635
|
n("nylas-cancellation-policy", { name: "cancellation-policy", exportparts: "ncpolicy, ncpolicy__textarea" })
|
|
619
636
|
)
|
|
620
637
|
),
|
|
621
|
-
n("nylas-customize-booking-settings", { name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
|
|
638
|
+
n("nylas-customize-booking-settings", { showSettings: ["hideCancellationOptions", "hideReschedulingOptions"], name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
|
|
622
639
|
),
|
|
623
640
|
n(
|
|
624
641
|
"div",
|
|
625
|
-
{ key: `communications-${e}`, class: { hide:
|
|
626
|
-
n(
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
n("
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
n("nylas-reminder-emails", { name: "reminder-overrides", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" })
|
|
642
|
+
{ key: `communications-${e}`, class: { hide: a !== h.Communications } },
|
|
643
|
+
n("nylas-disable-emails", { name: "disable-emails", exportparts: "nde, nde__toggle-label, nde_toggle-input, nde_toggle-slider" }),
|
|
644
|
+
!(t != null && t.disableEmails) && n(
|
|
645
|
+
ie,
|
|
646
|
+
null,
|
|
647
|
+
n("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
|
|
648
|
+
n("nylas-reminder-emails", { name: "reminder-overrides", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" })
|
|
649
|
+
)
|
|
634
650
|
),
|
|
635
651
|
n(
|
|
636
652
|
"div",
|
|
637
|
-
{ key: `page-styles-${e}`, class: { hide:
|
|
653
|
+
{ key: `page-styles-${e}`, class: { hide: a !== h.PageStyles } },
|
|
638
654
|
n("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
|
|
639
|
-
n("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
|
|
655
|
+
n("nylas-page-name", { name: "page-name", requirePageName: !0, exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
|
|
640
656
|
n("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, s)
|
|
641
657
|
),
|
|
642
658
|
n(
|
|
643
659
|
"div",
|
|
644
|
-
{ key: `booking-form-${e}`, class: { hide:
|
|
660
|
+
{ key: `booking-form-${e}`, class: { hide: a !== h.BookingForm } },
|
|
645
661
|
n("nylas-booking-form-config", { name: "additional-fields", exportparts: "nbfc, nbfc__header, nbfc__add_field, nbfc__add_field-button, nbfc__add_field-content, nbfc__static_fields, nbfc__additional_fields, nbfc__form-field, nbfc__form-field-header, nbfc__form-field-content" })
|
|
646
662
|
)
|
|
647
663
|
);
|
|
648
664
|
}
|
|
649
|
-
const ut = '.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 .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}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}', ht = ut;
|
|
665
|
+
const ht = '.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 .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}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}', yt = ht;
|
|
650
666
|
var ft = function(e, t, a, s) {
|
|
651
667
|
var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
|
|
652
668
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -655,14 +671,14 @@ var ft = function(e, t, a, s) {
|
|
|
655
671
|
for (var r = e.length - 1; r >= 0; r--)
|
|
656
672
|
(l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
|
|
657
673
|
return i > 3 && o && Object.defineProperty(t, a, o), o;
|
|
658
|
-
},
|
|
674
|
+
}, ue = function(e, t) {
|
|
659
675
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
660
676
|
return Reflect.metadata(e, t);
|
|
661
677
|
};
|
|
662
|
-
const
|
|
678
|
+
const We = class {
|
|
663
679
|
constructor(e) {
|
|
664
|
-
|
|
665
|
-
var
|
|
680
|
+
X(this, e), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = _(this, "schedulerConfigCreated", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = _(this, "schedulerEditorFormUpdated", 7), this.groupEventCreateTriggered = _(this, "groupEventCreateTriggered", 7), this.groupEventUpdateTriggered = _(this, "groupEventUpdateTriggered", 7), this.groupEventDeleteTriggered = _(this, "groupEventDeleteTriggered", 7), this.groupEventImportTriggered = _(this, "groupEventImportTriggered", 7), this.saveGroupEventChangesError = _(this, "saveGroupEventChangesError", 7), this.formSubmissionHandler = async (t) => {
|
|
681
|
+
var k, $, W, F, L, N, q, te, J, ne, ae;
|
|
666
682
|
t.preventDefault();
|
|
667
683
|
const a = await this.formSubmitted.emit();
|
|
668
684
|
if (b("[nylas-editor-tabs-group]", "formSubmissionHandler", a), !this.formRef.checkValidity() || a.defaultPrevented) {
|
|
@@ -672,59 +688,63 @@ const Ve = class {
|
|
|
672
688
|
this.isLoading = !0, this.hasUnsavedChanges = !1;
|
|
673
689
|
const i = this.updateFormState();
|
|
674
690
|
b("[nylas-editor-tabs-group]", "formState", i);
|
|
675
|
-
const { title: o, description: l, bookingCalendar: r, location: d, bookingType: c, minCancellationNotice:
|
|
676
|
-
...((
|
|
677
|
-
slug:
|
|
678
|
-
name:
|
|
679
|
-
type: this.selectedEventType ===
|
|
691
|
+
const { title: o, description: l, bookingCalendar: r, location: d, bookingType: c, minCancellationNotice: y, cancellationPolicy: g, hideCancellationOptions: C, hideReschedulingOptions: E, additionalFields: z, conferencing: P, reminders: H, emailTemplate: S, redirectUrl: U, slug: I, appearance: R, name: T, eventCapacity: w, eventTimeslot: m, participants: v, disableEmails: G, organizerLocale: x } = i, A = {
|
|
692
|
+
...((k = this.selectedConfiguration) == null ? void 0 : k.id) && { id: this.selectedConfiguration.id },
|
|
693
|
+
slug: I,
|
|
694
|
+
name: T,
|
|
695
|
+
type: this.selectedEventType === O.group ? O.group : void 0,
|
|
680
696
|
scheduler: {
|
|
681
|
-
cancellation_policy:
|
|
682
|
-
min_cancellation_notice:
|
|
683
|
-
hide_cancellation_options:
|
|
684
|
-
hide_rescheduling_options:
|
|
685
|
-
additional_fields:
|
|
686
|
-
email_template:
|
|
697
|
+
cancellation_policy: g ?? "",
|
|
698
|
+
min_cancellation_notice: y ?? 0,
|
|
699
|
+
hide_cancellation_options: C ?? !1,
|
|
700
|
+
hide_rescheduling_options: E ?? !1,
|
|
701
|
+
additional_fields: z,
|
|
702
|
+
email_template: S ? {
|
|
703
|
+
...S,
|
|
704
|
+
organizer_locale: x || "en",
|
|
705
|
+
logo: S.logo || ""
|
|
706
|
+
} : void 0,
|
|
687
707
|
confirmation_redirect_url: U
|
|
688
708
|
},
|
|
689
|
-
appearance:
|
|
709
|
+
appearance: R,
|
|
690
710
|
group_booking: {
|
|
691
711
|
booking_type: c || "booking",
|
|
692
|
-
disable_emails: !1,
|
|
693
|
-
reminders:
|
|
712
|
+
disable_emails: typeof G == "boolean" ? G : !1,
|
|
713
|
+
reminders: H,
|
|
694
714
|
conferencing: P,
|
|
695
715
|
calendar_id: r || "primary",
|
|
696
|
-
default_capacity:
|
|
716
|
+
default_capacity: w || 10
|
|
697
717
|
}
|
|
698
|
-
},
|
|
699
|
-
delete
|
|
700
|
-
const
|
|
718
|
+
}, D = fe(this.selectedConfiguration, A || {}), B = this.action === "create" ? D : A;
|
|
719
|
+
delete B.availability, delete B.participants, delete B.event_booking;
|
|
720
|
+
const j = (oe) => {
|
|
701
721
|
this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
|
|
702
722
|
this.changesSaved = !1;
|
|
703
723
|
}, 3e3);
|
|
704
724
|
};
|
|
705
|
-
if (this.checkForBookingFormErrors(
|
|
725
|
+
if (this.checkForBookingFormErrors(B))
|
|
706
726
|
return;
|
|
707
|
-
const
|
|
708
|
-
name: ((
|
|
709
|
-
email: ((
|
|
710
|
-
},
|
|
727
|
+
const M = {
|
|
728
|
+
name: (($ = this.currentUser) == null ? void 0 : $.name) ?? ((W = this.currentUser) == null ? void 0 : W.email) ?? "",
|
|
729
|
+
email: ((F = this.currentUser) == null ? void 0 : F.email) ?? ""
|
|
730
|
+
}, Z = ((L = this.calendars) == null ? void 0 : L.find((oe) => oe.is_primary)) ?? ((N = this.calendars) == null ? void 0 : N[0]), Y = [{ ...M, is_organizer: !0 }], K = (q = this.selectedConfiguration) != null && q.id ? void 0 : {
|
|
711
731
|
title: o,
|
|
712
732
|
description: l,
|
|
713
733
|
location: P ? void 0 : d,
|
|
714
734
|
conferencing: d ? void 0 : P,
|
|
715
735
|
when: {
|
|
716
|
-
start_time: ((
|
|
717
|
-
end_time: ((
|
|
718
|
-
start_timezone: ((
|
|
719
|
-
end_timezone: ((
|
|
736
|
+
start_time: ((te = m == null ? void 0 : m.when) == null ? void 0 : te.start_time) ?? 0,
|
|
737
|
+
end_time: ((J = m == null ? void 0 : m.when) == null ? void 0 : J.end_time) ?? 0,
|
|
738
|
+
start_timezone: ((ne = m == null ? void 0 : m.when) == null ? void 0 : ne.start_timezone) ?? "",
|
|
739
|
+
end_timezone: ((ae = m == null ? void 0 : m.when) == null ? void 0 : ae.end_timezone) ?? ""
|
|
720
740
|
},
|
|
721
|
-
|
|
722
|
-
calendar_id: r || (
|
|
723
|
-
participants:
|
|
724
|
-
organizer:
|
|
725
|
-
capacity:
|
|
741
|
+
recurrence: (m == null ? void 0 : m.recurrence) ?? [],
|
|
742
|
+
calendar_id: r || (Z == null ? void 0 : Z.id) || "primary",
|
|
743
|
+
participants: v != null && v.length ? v : Y,
|
|
744
|
+
organizer: M,
|
|
745
|
+
capacity: w || 10
|
|
726
746
|
};
|
|
727
|
-
this.schedulerConfigChanged.emit({ groupEvent:
|
|
747
|
+
this.schedulerConfigChanged.emit({ groupEvent: K || void 0, config: B, resetLoadingState: j, action: this.action, host: this.host });
|
|
728
748
|
}, this.checkForBookingFormErrors = (t) => {
|
|
729
749
|
var o;
|
|
730
750
|
let a = !1, s = "";
|
|
@@ -743,7 +763,7 @@ const Ve = class {
|
|
|
743
763
|
}
|
|
744
764
|
}
|
|
745
765
|
})), a && (this.isLoading = !1, this.host.setError(new Error(s))), a;
|
|
746
|
-
}, 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 =
|
|
766
|
+
}, 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 = h.CalendarView, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
|
|
747
767
|
}
|
|
748
768
|
configChangedHandler(e) {
|
|
749
769
|
b("[nylas-editor-tabs-group]", "configChangedHandler", e, this.selectedConfiguration), this.formState = {
|
|
@@ -751,28 +771,28 @@ const Ve = class {
|
|
|
751
771
|
}, e != null && e.id ? this.action = "edit" : this.action = "create";
|
|
752
772
|
}
|
|
753
773
|
selectedGroupEventChangedHandler(e) {
|
|
754
|
-
var t, a, s, i, o, l, r, d, c,
|
|
774
|
+
var t, a, s, i, o, l, r, d, c, y, g, C, E, z, P, H, S, U, I, R, T, w, m, v, G, x, A, D, B, j, V;
|
|
755
775
|
b("[nylas-editor-tabs-group]", "selectedGroupEventChangedHandler", e, this.selectedConfiguration), this.formState = {
|
|
756
776
|
...this.formState,
|
|
757
777
|
title: (a = (t = this.selectedGroupEvent) == null ? void 0 : t.event) == null ? void 0 : a.title,
|
|
758
778
|
description: (i = (s = this.selectedGroupEvent) == null ? void 0 : s.event) == null ? void 0 : i.description,
|
|
759
779
|
location: (l = (o = this.selectedGroupEvent) == null ? void 0 : o.event) == null ? void 0 : l.location,
|
|
760
780
|
conferencing: (d = (r = this.selectedGroupEvent) == null ? void 0 : r.event) == null ? void 0 : d.conferencing,
|
|
761
|
-
eventCapacity: (
|
|
762
|
-
participants: (
|
|
763
|
-
name:
|
|
764
|
-
email:
|
|
765
|
-
is_organizer: !!
|
|
781
|
+
eventCapacity: (y = (c = this.selectedGroupEvent) == null ? void 0 : c.group_event_info) == null ? void 0 : y.capacity,
|
|
782
|
+
participants: (E = (C = (g = this.selectedGroupEvent) == null ? void 0 : g.group_event_info) == null ? void 0 : C.participants) == null ? void 0 : E.map((M) => ({
|
|
783
|
+
name: M.name,
|
|
784
|
+
email: M.email,
|
|
785
|
+
is_organizer: !!M.is_organizer,
|
|
766
786
|
timezone: ""
|
|
767
787
|
})),
|
|
768
|
-
eventTimeslot: (P = (
|
|
788
|
+
eventTimeslot: (P = (z = this.selectedGroupEvent) == null ? void 0 : z.event) != null && P.when ? {
|
|
769
789
|
when: {
|
|
770
|
-
start_time: (U = (
|
|
771
|
-
end_time: (
|
|
772
|
-
start_timezone: (
|
|
773
|
-
end_timezone: (
|
|
790
|
+
start_time: (U = (S = (H = this.selectedGroupEvent) == null ? void 0 : H.event) == null ? void 0 : S.when) == null ? void 0 : U.start_time,
|
|
791
|
+
end_time: (T = (R = (I = this.selectedGroupEvent) == null ? void 0 : I.event) == null ? void 0 : R.when) == null ? void 0 : T.end_time,
|
|
792
|
+
start_timezone: (v = (m = (w = this.selectedGroupEvent) == null ? void 0 : w.event) == null ? void 0 : m.when) == null ? void 0 : v.start_timezone,
|
|
793
|
+
end_timezone: (A = (x = (G = this.selectedGroupEvent) == null ? void 0 : G.event) == null ? void 0 : x.when) == null ? void 0 : A.end_timezone
|
|
774
794
|
},
|
|
775
|
-
recurrence: (
|
|
795
|
+
recurrence: (B = (D = this.selectedGroupEvent) == null ? void 0 : D.group_event_info) != null && B.rrule ? (V = (j = this.selectedGroupEvent) == null ? void 0 : j.group_event_info) == null ? void 0 : V.rrule : []
|
|
776
796
|
} : void 0
|
|
777
797
|
};
|
|
778
798
|
}
|
|
@@ -801,12 +821,12 @@ const Ve = class {
|
|
|
801
821
|
}
|
|
802
822
|
componentDidLoad() {
|
|
803
823
|
var t, a, s;
|
|
804
|
-
b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !
|
|
824
|
+
b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !Ae() && je({
|
|
805
825
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
806
|
-
release: "1.4.
|
|
826
|
+
release: "1.4.1",
|
|
807
827
|
integrations: (i) => [
|
|
808
828
|
...i.filter((o) => !1),
|
|
809
|
-
|
|
829
|
+
Ve({
|
|
810
830
|
colorScheme: "system",
|
|
811
831
|
autoInject: !1
|
|
812
832
|
})
|
|
@@ -823,7 +843,7 @@ const Ve = class {
|
|
|
823
843
|
handleValueChanged(e) {
|
|
824
844
|
b("[nylas-editor-tabs-group]", "handleValueChanged", e);
|
|
825
845
|
const { name: t, value: a } = e.detail;
|
|
826
|
-
console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState },
|
|
846
|
+
console.log("name", t, "value", a), this.setFormState(a, t), this.formState = { ...this.formState }, nt.includes(t) && (this.hasUnsavedChanges = !0), this.error = "", this.schedulerEditorFormUpdated.emit({
|
|
827
847
|
value: e.detail.value,
|
|
828
848
|
name: e.detail.name
|
|
829
849
|
});
|
|
@@ -834,15 +854,15 @@ const Ve = class {
|
|
|
834
854
|
feedbackSubmittedHandler(e) {
|
|
835
855
|
var s, i;
|
|
836
856
|
const a = {
|
|
837
|
-
eventId:
|
|
857
|
+
eventId: $e("Scheduler Editor User Feedback"),
|
|
838
858
|
message: e.detail.feedback
|
|
839
859
|
};
|
|
840
|
-
|
|
860
|
+
Je(a, {
|
|
841
861
|
includeReplay: !0,
|
|
842
862
|
captureContext: {
|
|
843
863
|
tags: {
|
|
844
864
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
845
|
-
"nylas-web-element-version": "1.4.
|
|
865
|
+
"nylas-web-element-version": "1.4.1"
|
|
846
866
|
},
|
|
847
867
|
extra: {
|
|
848
868
|
configId: (s = this.selectedConfiguration) == null ? void 0 : s.id,
|
|
@@ -859,7 +879,7 @@ const Ve = class {
|
|
|
859
879
|
var s, i, o, l, r, d, c;
|
|
860
880
|
b("saveGroupEventChangesHandler", e.detail, this.selectedGroupEvent);
|
|
861
881
|
const t = this.formRef.checkValidity(), a = this.getGroupEventDetailsFromFormState();
|
|
862
|
-
if (this.resetError(), a.title || this.setError(new Error("Event title is required.")), (!((s = a.when) != null && s.start_time) || !((i = a.when) != null && i.end_time)) && this.setError(new Error("Event time is required.")), (o = a.participants) != null && o.length || this.setError(new Error("Participants are required.")), (l = a.participants) != null && l.length && ((r = a.participants) != null && r.some((
|
|
882
|
+
if (this.resetError(), a.title || this.setError(new Error("Event title is required.")), (!((s = a.when) != null && s.start_time) || !((i = a.when) != null && i.end_time)) && this.setError(new Error("Event time is required.")), (o = a.participants) != null && o.length || this.setError(new Error("Participants are required.")), (l = a.participants) != null && l.length && ((r = a.participants) != null && r.some((y) => !y.email)) && this.setError(new Error("Participant email is required.")), this.error !== "" || !t) {
|
|
863
883
|
this.saveGroupEventChangesError.emit({
|
|
864
884
|
error: this.error ?? "An error occurred while saving changes.",
|
|
865
885
|
configId: ((d = this.selectedConfiguration) == null ? void 0 : d.id) ?? "",
|
|
@@ -886,50 +906,50 @@ const Ve = class {
|
|
|
886
906
|
});
|
|
887
907
|
}
|
|
888
908
|
createGroupEventHandler(e) {
|
|
889
|
-
var
|
|
909
|
+
var l, r, d, c, y, g, C;
|
|
890
910
|
const t = e.detail, a = {
|
|
891
|
-
name: ((
|
|
892
|
-
email: ((
|
|
893
|
-
}, s = ((
|
|
911
|
+
name: ((l = this.currentUser) == null ? void 0 : l.name) ?? ((r = this.currentUser) == null ? void 0 : r.email) ?? "",
|
|
912
|
+
email: ((d = this.currentUser) == null ? void 0 : d.email) ?? ""
|
|
913
|
+
}, s = ((c = this.calendars) == null ? void 0 : c.find((E) => E.is_primary)) ?? ((y = this.calendars) == null ? void 0 : y[0]), i = ((g = this.formState) == null ? void 0 : g.conferencing) || t.conferencing, o = {
|
|
894
914
|
title: t.title,
|
|
895
915
|
description: t.description,
|
|
896
|
-
location:
|
|
916
|
+
location: i ? void 0 : t.location,
|
|
897
917
|
participants: t.participants,
|
|
898
918
|
organizer: a,
|
|
899
|
-
conferencing: t.location ? void 0 :
|
|
919
|
+
conferencing: t.location ? void 0 : i,
|
|
900
920
|
when: t.eventTimeslot.when,
|
|
901
|
-
|
|
921
|
+
recurrence: t.eventTimeslot.recurrence,
|
|
902
922
|
calendar_id: (s == null ? void 0 : s.id) || "primary",
|
|
903
923
|
capacity: t.eventCapacity
|
|
904
924
|
};
|
|
905
|
-
this.groupEventCreateTriggered.emit({ groupEvent:
|
|
925
|
+
this.groupEventCreateTriggered.emit({ groupEvent: o, configId: ((C = this.selectedConfiguration) == null ? void 0 : C.id) ?? "", host: this.host });
|
|
906
926
|
}
|
|
907
927
|
getGroupEventDetailsFromFormState() {
|
|
908
|
-
var
|
|
909
|
-
const e = ((
|
|
910
|
-
name: ((
|
|
928
|
+
var g, C, E, z, P, H, S, U, I;
|
|
929
|
+
const e = ((g = this.calendars) == null ? void 0 : g.find((R) => R.is_primary)) ?? ((C = this.calendars) == null ? void 0 : C[0]), t = {
|
|
930
|
+
name: ((E = this.currentUser) == null ? void 0 : E.name) ?? ((z = this.currentUser) == null ? void 0 : z.email) ?? "",
|
|
911
931
|
email: ((P = this.currentUser) == null ? void 0 : P.email) ?? ""
|
|
912
|
-
}, a = [{ ...t, is_organizer: !0 }], { title: s, description: i, bookingCalendar: o, location: l, conferencing: r, eventCapacity: d, eventTimeslot: c, participants:
|
|
932
|
+
}, a = [{ ...t, is_organizer: !0 }], { title: s, description: i, bookingCalendar: o, location: l, conferencing: r, eventCapacity: d, eventTimeslot: c, participants: y } = this.formState;
|
|
913
933
|
return {
|
|
914
934
|
title: s,
|
|
915
935
|
description: i,
|
|
916
936
|
location: r ? void 0 : l,
|
|
917
937
|
conferencing: l ? void 0 : r,
|
|
918
938
|
when: {
|
|
919
|
-
start_time: ((
|
|
920
|
-
end_time: ((
|
|
939
|
+
start_time: ((H = c == null ? void 0 : c.when) == null ? void 0 : H.start_time) ?? 0,
|
|
940
|
+
end_time: ((S = c == null ? void 0 : c.when) == null ? void 0 : S.end_time) ?? 0,
|
|
921
941
|
start_timezone: ((U = c == null ? void 0 : c.when) == null ? void 0 : U.start_timezone) ?? "",
|
|
922
|
-
end_timezone: ((
|
|
942
|
+
end_timezone: ((I = c == null ? void 0 : c.when) == null ? void 0 : I.end_timezone) ?? ""
|
|
923
943
|
},
|
|
924
|
-
|
|
944
|
+
recurrence: (c == null ? void 0 : c.recurrence) ?? [],
|
|
925
945
|
calendar_id: o || (e == null ? void 0 : e.id) || "primary",
|
|
926
|
-
participants:
|
|
946
|
+
participants: y != null && y.length ? y : a,
|
|
927
947
|
organizer: t,
|
|
928
948
|
capacity: d || 10
|
|
929
949
|
};
|
|
930
950
|
}
|
|
931
951
|
getFormStateFromConfig(e) {
|
|
932
|
-
var t, a, s, i, o, l, r, d, c,
|
|
952
|
+
var t, a, s, i, o, l, r, d, c, y, g, C, E;
|
|
933
953
|
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."), {
|
|
934
954
|
additionalFields: ((t = e == null ? void 0 : e.scheduler) == null ? void 0 : t.additional_fields) ?? {},
|
|
935
955
|
bookingType: ((a = e == null ? void 0 : e.group_booking) == null ? void 0 : a.booking_type) ?? "booking",
|
|
@@ -943,7 +963,9 @@ const Ve = class {
|
|
|
943
963
|
slug: e == null ? void 0 : e.slug,
|
|
944
964
|
appearance: e == null ? void 0 : e.appearance,
|
|
945
965
|
name: e == null ? void 0 : e.name,
|
|
946
|
-
bookingCalendar: (
|
|
966
|
+
bookingCalendar: (y = e == null ? void 0 : e.group_booking) == null ? void 0 : y.calendar_id,
|
|
967
|
+
disableEmails: (g = e == null ? void 0 : e.group_booking) == null ? void 0 : g.disable_emails,
|
|
968
|
+
organizerLocale: (E = (C = e == null ? void 0 : e.scheduler) == null ? void 0 : C.email_template) == null ? void 0 : E.organizer_locale
|
|
947
969
|
};
|
|
948
970
|
}
|
|
949
971
|
setFormState(e, t) {
|
|
@@ -1013,6 +1035,11 @@ const Ve = class {
|
|
|
1013
1035
|
case "event-timeslot":
|
|
1014
1036
|
this.formState.eventTimeslot = JSON.parse(e.toString());
|
|
1015
1037
|
break;
|
|
1038
|
+
case "disable-emails": {
|
|
1039
|
+
const { disableEmails: a, organizerLocale: s } = JSON.parse(e.toString());
|
|
1040
|
+
this.formState.disableEmails = a, this.formState.organizerLocale = s;
|
|
1041
|
+
break;
|
|
1042
|
+
}
|
|
1016
1043
|
}
|
|
1017
1044
|
this.schedulerEditorFormUpdated.emit({
|
|
1018
1045
|
value: e,
|
|
@@ -1036,21 +1063,21 @@ const Ve = class {
|
|
|
1036
1063
|
}
|
|
1037
1064
|
render() {
|
|
1038
1065
|
var e, t;
|
|
1039
|
-
return b("[nylas-editor-tabs-group]", "render", this.formState), n(
|
|
1040
|
-
this.setActiveTab(a,
|
|
1041
|
-
} }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, "Return to Calendar view"))) : 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:
|
|
1066
|
+
return b("[nylas-editor-tabs-group]", "render", this.formState), n(re, { key: "295df515ac9d639344495598d31fe333db0486f8" }, n("form", { key: "77d72751aa0e09fb012af283b19c34c193250810", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (a) => this.formRef = a, 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: (a) => {
|
|
1067
|
+
this.setActiveTab(a, h.CalendarView);
|
|
1068
|
+
} }, n("chevron-icon", { width: "16", height: "16" }), n("span", null, "Return to Calendar view"))) : 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: h.BookingOptions, class: { tab: !0, active: this.activeTab == h.BookingOptions, hide: this.hideTab(h.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (a) => this.setActiveTab(a, h.BookingOptions) }, n("flow-icon", { width: "16", height: "16" }), p.t("bookingOptionsTab")), n("button", { name: h.BookingForm, class: { tab: !0, active: this.activeTab == h.BookingForm, hide: this.hideTab(h.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (a) => this.setActiveTab(a, h.BookingForm) }, this.activeTab == h.BookingForm ? n("calendar-agenda-fill-icon", { width: "16", height: "16" }) : n("calendar-agenda-icon", { width: "16", height: "16" }), p.t("bookingFormTab")), n("button", { name: h.Communications, class: { tab: !0, active: this.activeTab == h.Communications, hide: this.hideTab(h.Communications) }, onClick: (a) => this.setActiveTab(a, h.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == h.Communications ? n("envelope-fill-icon", { width: "16", height: "16" }) : n("envelope-icon", { width: "16", height: "16" }), p.t("communicationsTab")), n("button", { name: h.PageStyles, class: { tab: !0, active: this.activeTab == h.PageStyles, hide: this.hideTab(h.PageStyles) }, onClick: (a) => this.setActiveTab(a, h.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == h.PageStyles ? n("paintbrush-fill-icon", { width: "16", height: "16" }) : n("paintbrush-icon", { width: "16", height: "16" }), p.t("pageStylesTab"))), n("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, n(ut, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((e = this.selectedConfiguration) == null ? void 0 : e.id) ?? "new", i18next: p }))) : n("div", { class: "composable", key: (t = this.selectedConfiguration) == null ? void 0 : t.id }, n("slot", null)), n("div", { key: "187e6f1c8b1e6ebd75e811c7c9245f8e6be5faee", class: "footer", part: "editor__footer net__footer" }, n("div", { key: "e777b3e032cb0fbf0517817f99c5d53879339e6d", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && n("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (a) => this.onFeedbackClick(a) }, n("feedback-icon", null)), this.activeTab === h.CalendarView && n("button-component", { title: "Go to page settings", id: "page-settings", variant: "basic", onClick: (a) => this.setActiveTab(a, h.BookingOptions) }, "Page settings")), n("div", { key: "cfc06ab3f0cd113f59219feb50a0ae173ac816b7", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, n("p", { key: "5e85280a2bb1233afe6073b646a8d2dc4064b9b1", class: {
|
|
1042
1069
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
1043
1070
|
"saved-changes": this.changesSaved,
|
|
1044
1071
|
error: this.error !== "",
|
|
1045
1072
|
"error-full-width": this.error !== "" && this.action === "create"
|
|
1046
|
-
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !==
|
|
1047
|
-
a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(
|
|
1048
|
-
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "
|
|
1073
|
+
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved && this.activeTab !== h.CalendarView ? p.t("unsavedChangesLabel") : this.error == "" && this.changesSaved ? `${p.t("changesSavedLabel")}!` : ""), n("div", { key: "3b667f376c83d75a4c1e16f1a962168e49ca7864", class: "footer-buttons__row" }, this.schedulerPreviewLink !== "" && this.action === "edit" && n("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (a) => {
|
|
1074
|
+
a.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(se(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
1075
|
+
}, variant: "basic" }, n("eye-icon", null)), n("button-component", { key: "df258b8799fdf69739be838ae633aa278e54580a", type: "button", disabled: this.isLoading, clickHandler: (a) => {
|
|
1049
1076
|
a.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
|
|
1050
|
-
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, p.t("backButton")), n("button-component", { key: "
|
|
1077
|
+
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, p.t("backButton")), n("button-component", { key: "5bdea575e4aa962ac968a02d80b47086e62a5873", type: "submit", disabled: this.isLoading, part: "editor__footer-cta, net__footer-cta" }, this.isLoading ? n("span", null, p.t("savingButtonText"), n("loading-icon", null), " ") : this.action === "create" ? `${p.t("createButtonText")}` : `${p.t("saveChangesButtonText")}`))))), this.showFeedbackModal && n("nylas-feedback-form", null));
|
|
1051
1078
|
}
|
|
1052
1079
|
get host() {
|
|
1053
|
-
return
|
|
1080
|
+
return le(this);
|
|
1054
1081
|
}
|
|
1055
1082
|
static get watchers() {
|
|
1056
1083
|
return {
|
|
@@ -1062,7 +1089,7 @@ const Ve = class {
|
|
|
1062
1089
|
}
|
|
1063
1090
|
};
|
|
1064
1091
|
ft([
|
|
1065
|
-
|
|
1092
|
+
de({
|
|
1066
1093
|
name: "nylas-editor-tabs-group",
|
|
1067
1094
|
stateToProps: /* @__PURE__ */ new Map([
|
|
1068
1095
|
["schedulerConfig.calendars", "calendars"],
|
|
@@ -1076,8 +1103,8 @@ ft([
|
|
|
1076
1103
|
eventToProps: {
|
|
1077
1104
|
schedulerConfigChanged: async (e, t) => {
|
|
1078
1105
|
const { resetLoadingState: a, host: s, action: i, config: o, groupEvent: l } = e.detail, r = (d) => {
|
|
1079
|
-
const [c,
|
|
1080
|
-
!c &&
|
|
1106
|
+
const [c, y] = d;
|
|
1107
|
+
!c && y ? s.setError(y) : c && !y && i === "create" && s.schedulerConfigCreatedEventHandler({ config: c, action: i, host: s });
|
|
1081
1108
|
};
|
|
1082
1109
|
if (i === "edit") {
|
|
1083
1110
|
const d = await t.schedulerConfig.updateConfiguration(o);
|
|
@@ -1085,10 +1112,10 @@ ft([
|
|
|
1085
1112
|
} else {
|
|
1086
1113
|
const d = await t.schedulerConfig.createConfiguration(o);
|
|
1087
1114
|
r(d);
|
|
1088
|
-
const [c,
|
|
1089
|
-
if (
|
|
1090
|
-
const
|
|
1091
|
-
r(
|
|
1115
|
+
const [c, y] = d, g = c == null ? void 0 : c.id;
|
|
1116
|
+
if (g && l) {
|
|
1117
|
+
const C = await t.schedulerConfig.createGroupEvent(l, g);
|
|
1118
|
+
r(C);
|
|
1092
1119
|
}
|
|
1093
1120
|
a && a(e);
|
|
1094
1121
|
}
|
|
@@ -1142,13 +1169,13 @@ ft([
|
|
|
1142
1169
|
]),
|
|
1143
1170
|
fireRegisterEvent: !0
|
|
1144
1171
|
}),
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
],
|
|
1149
|
-
|
|
1150
|
-
const
|
|
1151
|
-
var
|
|
1172
|
+
ue("design:type", Function),
|
|
1173
|
+
ue("design:paramtypes", []),
|
|
1174
|
+
ue("design:returntype", void 0)
|
|
1175
|
+
], We.prototype, "render", null);
|
|
1176
|
+
We.style = yt;
|
|
1177
|
+
const gt = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-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}@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)}', mt = gt;
|
|
1178
|
+
var _t = function(e, t, a, s) {
|
|
1152
1179
|
var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
|
|
1153
1180
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1154
1181
|
o = Reflect.decorate(e, t, a, s);
|
|
@@ -1156,13 +1183,13 @@ var mt = function(e, t, a, s) {
|
|
|
1156
1183
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1157
1184
|
(l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
|
|
1158
1185
|
return i > 3 && o && Object.defineProperty(t, a, o), o;
|
|
1159
|
-
},
|
|
1186
|
+
}, he = function(e, t) {
|
|
1160
1187
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1161
1188
|
return Reflect.metadata(e, t);
|
|
1162
1189
|
};
|
|
1163
|
-
const
|
|
1190
|
+
const qe = class {
|
|
1164
1191
|
constructor(e) {
|
|
1165
|
-
|
|
1192
|
+
X(this, e), this.initListConfigurations = _(this, "initListConfigurations", 7), this.createButtonClick = _(this, "createButtonClick", 7), this.editButtonClick = _(this, "editButtonClick", 7), this.deleteButtonClick = _(this, "deleteButtonClick", 7), this.configurations = [], this.selectedLanguage = void 0, this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1;
|
|
1166
1193
|
}
|
|
1167
1194
|
listConfigurationsNextCursorChangedHandler(e, t) {
|
|
1168
1195
|
if (!e || e === t) {
|
|
@@ -1197,10 +1224,10 @@ const Ze = class {
|
|
|
1197
1224
|
this.deleteConfigurationId = (i = this.configurations[s]) == null ? void 0 : i.id;
|
|
1198
1225
|
break;
|
|
1199
1226
|
case "preview":
|
|
1200
|
-
window.open(
|
|
1227
|
+
window.open(se(this.schedulerPreviewLink, this.configurations[s]), "_blank");
|
|
1201
1228
|
break;
|
|
1202
1229
|
case "copy":
|
|
1203
|
-
await navigator.clipboard.writeText(
|
|
1230
|
+
await navigator.clipboard.writeText(se(this.schedulerPreviewLink, this.configurations[s]));
|
|
1204
1231
|
break;
|
|
1205
1232
|
}
|
|
1206
1233
|
}
|
|
@@ -1272,7 +1299,7 @@ const Ze = class {
|
|
|
1272
1299
|
}
|
|
1273
1300
|
render() {
|
|
1274
1301
|
var e;
|
|
1275
|
-
return n(
|
|
1302
|
+
return n(re, null, n("div", { class: "header" }, n("div", { class: "description" }, n("h2", null, p.t("allSchedulingPages")), n("p", null, p.t("createAndManageSchedulingPages"))), this.configurations && this.configurations.length > 0 && n("div", { class: "actions" }, n("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
|
|
1276
1303
|
this.createButtonClick.emit(this.host);
|
|
1277
1304
|
} }, p.t("createNewSchedulingPageButtonText")))), n("div", { class: "configurations" }, n("div", { class: "table-container" }, n("table", { class: {
|
|
1278
1305
|
"no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
|
|
@@ -1283,8 +1310,8 @@ const Ze = class {
|
|
|
1283
1310
|
} }, p.t("createNewSchedulingPageButtonText"))))), this.state !== "loading" && ((e = this.configurations) == null ? void 0 : e.map((t, a) => {
|
|
1284
1311
|
var l, r, d, c;
|
|
1285
1312
|
const s = (a === this.configurations.length - 1 || a === this.configurations.length - 2) && this.configurations.length > 3, i = t, o = t;
|
|
1286
|
-
return n("tr", { key: t == null ? void 0 : t.id }, n("td", null, n("div", { class: "title" }, n("div", { class: "config-event-title", title: (l = o == null ? void 0 : o.event_booking) == null ? void 0 : l.title }, ((r = o == null ? void 0 : o.event_booking) == null ? void 0 : r.title) || (i == null ? void 0 : i.name)), n("div", { class: "config-event-description" }, (d = o == null ? void 0 : o.event_booking) == null ? void 0 : d.description))), n("td", null, n("div", { class: "duration" }, this.getDurationString((c = o == null ? void 0 : o.availability) == null ? void 0 : c.duration_minutes))), n("td", null, n("div", { class: "actions" }, n("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (
|
|
1287
|
-
|
|
1313
|
+
return n("tr", { key: t == null ? void 0 : t.id }, n("td", null, n("div", { class: "title" }, n("div", { class: "config-event-title", title: (l = o == null ? void 0 : o.event_booking) == null ? void 0 : l.title }, ((r = o == null ? void 0 : o.event_booking) == null ? void 0 : r.title) || (i == null ? void 0 : i.name)), n("div", { class: "config-event-description" }, (d = o == null ? void 0 : o.event_booking) == null ? void 0 : d.description))), n("td", null, n("div", { class: "duration" }, this.getDurationString((c = o == null ? void 0 : o.availability) == null ? void 0 : c.duration_minutes))), n("td", null, n("div", { class: "actions" }, n("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (y) => {
|
|
1314
|
+
y.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: t });
|
|
1288
1315
|
} }, n("edit-icon", { width: "16", height: "16" }), p.t("editSchedulingPageButtonText")), n("select-dropdown", { class: {
|
|
1289
1316
|
last: s
|
|
1290
1317
|
}, name: "actions", options: [
|
|
@@ -1297,7 +1324,7 @@ const Ze = class {
|
|
|
1297
1324
|
} }, n("button-component", { variant: "basic", onClick: (t) => this.closeModal(t), part: "nfbf__button-outline nfbf__cancel-cta" }, `${p.t("deleteSchedulingPageCancelButton")}`), n("button-component", { variant: "destructive", onClick: (t) => this.handleConfirmDeleteButtonClicked(t), disabled: this.showDeleteButtonLoading, isLoading: this.showDeleteButtonLoading, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${p.t("deleteSchedulingPageConfirmButton")}`)))));
|
|
1298
1325
|
}
|
|
1299
1326
|
get host() {
|
|
1300
|
-
return
|
|
1327
|
+
return le(this);
|
|
1301
1328
|
}
|
|
1302
1329
|
static get watchers() {
|
|
1303
1330
|
return {
|
|
@@ -1306,8 +1333,8 @@ const Ze = class {
|
|
|
1306
1333
|
};
|
|
1307
1334
|
}
|
|
1308
1335
|
};
|
|
1309
|
-
|
|
1310
|
-
|
|
1336
|
+
_t([
|
|
1337
|
+
de({
|
|
1311
1338
|
name: "nylas-list-configurations",
|
|
1312
1339
|
stateToProps: /* @__PURE__ */ new Map([
|
|
1313
1340
|
["schedulerConfig.configurations", "configurations"],
|
|
@@ -1337,7 +1364,7 @@ mt([
|
|
|
1337
1364
|
editButtonClick: async (e, t) => {
|
|
1338
1365
|
const { configuration: a } = e.detail;
|
|
1339
1366
|
if (t.schedulerConfigStore.state.selectedConfiguration = a, a.type === "group") {
|
|
1340
|
-
const { startTime: s, endTime: i } =
|
|
1367
|
+
const { startTime: s, endTime: i } = et((/* @__PURE__ */ new Date()).toISOString(), "week");
|
|
1341
1368
|
t.schedulerConfigStore.state.calendarViewDateRange = {
|
|
1342
1369
|
start_time: s.toString(),
|
|
1343
1370
|
end_time: i.toString()
|
|
@@ -1351,13 +1378,13 @@ mt([
|
|
|
1351
1378
|
},
|
|
1352
1379
|
fireRegisterEvent: !0
|
|
1353
1380
|
}),
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
],
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1360
|
-
var
|
|
1381
|
+
he("design:type", Function),
|
|
1382
|
+
he("design:paramtypes", []),
|
|
1383
|
+
he("design:returntype", void 0)
|
|
1384
|
+
], qe.prototype, "render", null);
|
|
1385
|
+
qe.style = mt;
|
|
1386
|
+
const vt = ':host{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;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)}', wt = vt;
|
|
1387
|
+
var kt = function(e, t, a, s) {
|
|
1361
1388
|
var i = arguments.length, o = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, a) : s, l;
|
|
1362
1389
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1363
1390
|
o = Reflect.decorate(e, t, a, s);
|
|
@@ -1365,13 +1392,13 @@ var wt = function(e, t, a, s) {
|
|
|
1365
1392
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1366
1393
|
(l = e[r]) && (o = (i < 3 ? l(o) : i > 3 ? l(t, a, o) : l(t, a)) || o);
|
|
1367
1394
|
return i > 3 && o && Object.defineProperty(t, a, o), o;
|
|
1368
|
-
},
|
|
1395
|
+
}, ye = function(e, t) {
|
|
1369
1396
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1370
1397
|
return Reflect.metadata(e, t);
|
|
1371
1398
|
};
|
|
1372
|
-
const
|
|
1399
|
+
const Ye = class {
|
|
1373
1400
|
constructor(e) {
|
|
1374
|
-
|
|
1401
|
+
X(this, e), this.returnToAllSchedulingPagesEvent = _(this, "returnToAllSchedulingPagesEvent", 7), this.createEventTypeSelected = _(this, "createEventTypeSelected", 7), this.participantOptions = void 0, this.name = "select-event-type", this.selectedLanguage = void 0;
|
|
1375
1402
|
}
|
|
1376
1403
|
connectedCallback() {
|
|
1377
1404
|
b("nylas-select-event-type", "connectedCallback");
|
|
@@ -1394,28 +1421,28 @@ const We = class {
|
|
|
1394
1421
|
render() {
|
|
1395
1422
|
var i;
|
|
1396
1423
|
const e = [
|
|
1397
|
-
{ label: "1:1", value:
|
|
1398
|
-
{ label: "Collective", value:
|
|
1424
|
+
{ label: "1:1", value: O.one_on_one, description: "Allows 1:1 bookings" },
|
|
1425
|
+
{ label: "Collective", value: O.collective, description: "Allows n:1 bookings with additional participants" },
|
|
1399
1426
|
{
|
|
1400
1427
|
label: "Round-Robin Maximize Fairness",
|
|
1401
|
-
value:
|
|
1428
|
+
value: O.max_fairness,
|
|
1402
1429
|
description: "Rotates through the list of participants you select, displaying the participant with the fewest recent bookings."
|
|
1403
1430
|
},
|
|
1404
1431
|
{
|
|
1405
1432
|
label: "Round-Robin Maximize Availability",
|
|
1406
|
-
value:
|
|
1433
|
+
value: O.max_availability,
|
|
1407
1434
|
description: "Rotates through the list of participants you select, prioritizing participants with the fewest recent bookings, but making as many time-slots available as possible."
|
|
1408
1435
|
},
|
|
1409
|
-
{ label: "Group / Class", value:
|
|
1410
|
-
], t = this.participantOptions && ((i = this.participantOptions) == null ? void 0 : i.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, a = [
|
|
1411
|
-
return n(
|
|
1436
|
+
{ label: "Group / Class", value: O.group, description: "These are events which generally have one organizer and multiple participants" }
|
|
1437
|
+
], t = this.participantOptions && ((i = this.participantOptions) == null ? void 0 : i.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0, a = [O.collective, O.max_availability, O.max_fairness], s = [O.one_on_one, O.group];
|
|
1438
|
+
return n(re, { key: "d5aed715d0b33063596b250da816b617301f16f0" }, n("div", { key: "679668eaf49d2f68f4338fd1c83f9a27875dec79", class: "nylas-select-event-type", part: "nset" }, n("div", { key: "0fa60b4547433bd2e4395c2d05942693eae00ce8", class: "header", part: "nset__header" }, n("h2", { key: "348d27d9e2398ef6cda24e53cc9127c7f7b627fe" }, "Create an event"), n("button-component", { key: "c4420cd4d2be87567c82178620fe14dbbe3babeb", variant: "invisible", part: "nset__header__back-button", onClick: (o) => {
|
|
1412
1439
|
this.returnToAllSchedulingPagesEvent.emit();
|
|
1413
|
-
} }, n("chevron-icon", { key: "
|
|
1440
|
+
} }, n("chevron-icon", { key: "4d7c919f04de328e5ad064eb802f6faa86c67c97", width: "16", height: "16" }), n("span", { key: "40204db0d92e8d1a6458ac8ce23c25222345e8de" }, "Return to all scheduling pages"))), n("div", { key: "1bf550eefbb9819f85da9884365c29120d4fa5ab", class: "content", part: "nset__content" }, n("h3", { key: "5391f331fe9ffc538ffee32af02e8be056b9eb3b" }, "Event type"), n("div", { key: "fe6612a8ee555df7bdaabb0d500a4d6671b03192", class: "event-type", part: "nset__content__event-type" }, e.filter((o) => s.includes(o.value) || t && a.includes(o.value)).map((o) => n("div", { class: "event-type-option", onClick: (l) => {
|
|
1414
1441
|
this.createEventTypeSelected.emit({ eventType: o.value });
|
|
1415
1442
|
}, part: `nset__content__event-type-option-${o.value}` }, n("h4", null, o.label), n("p", null, o.description)))))));
|
|
1416
1443
|
}
|
|
1417
1444
|
get host() {
|
|
1418
|
-
return
|
|
1445
|
+
return le(this);
|
|
1419
1446
|
}
|
|
1420
1447
|
static get watchers() {
|
|
1421
1448
|
return {
|
|
@@ -1424,8 +1451,8 @@ const We = class {
|
|
|
1424
1451
|
};
|
|
1425
1452
|
}
|
|
1426
1453
|
};
|
|
1427
|
-
|
|
1428
|
-
|
|
1454
|
+
kt([
|
|
1455
|
+
de({
|
|
1429
1456
|
name: "nylas-select-event-type",
|
|
1430
1457
|
stateToProps: /* @__PURE__ */ new Map([
|
|
1431
1458
|
["schedulerConfig.selectedLanguage", "selectedLanguage"],
|
|
@@ -1442,16 +1469,16 @@ wt([
|
|
|
1442
1469
|
},
|
|
1443
1470
|
fireRegisterEvent: !0
|
|
1444
1471
|
}),
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
],
|
|
1449
|
-
|
|
1472
|
+
ye("design:type", Function),
|
|
1473
|
+
ye("design:paramtypes", []),
|
|
1474
|
+
ye("design:returntype", void 0)
|
|
1475
|
+
], Ye.prototype, "render", null);
|
|
1476
|
+
Ye.style = wt;
|
|
1450
1477
|
export {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1478
|
+
st as google_logo_icon,
|
|
1479
|
+
lt as microsoft_logo_icon,
|
|
1480
|
+
Ze as nylas_editor_tabs,
|
|
1481
|
+
We as nylas_editor_tabs_group,
|
|
1482
|
+
qe as nylas_list_configurations,
|
|
1483
|
+
Ye as nylas_select_event_type
|
|
1457
1484
|
};
|