@nylas/react 1.4.0 → 1.4.2
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-dbad9a3b.js → add-circle-icon_2.entry-6b57fd96.js} +1 -1
- package/dist/{add-circle-icon_2.entry-6e8e4e1e.cjs → add-circle-icon_2.entry-db0c5d68.cjs} +1 -1
- package/dist/{archive-icon.entry-21f532af.cjs → archive-icon.entry-bf00cb75.cjs} +1 -1
- package/dist/{archive-icon.entry-802f7877.js → archive-icon.entry-cf731ded.js} +1 -1
- package/dist/{arrow-icon.entry-e3dec626.js → arrow-icon.entry-2471d146.js} +1 -1
- package/dist/{arrow-icon.entry-e9af732a.cjs → arrow-icon.entry-5031b5ac.cjs} +1 -1
- package/dist/{bold-icon.entry-1a2be28a.cjs → bold-icon.entry-9cec8c45.cjs} +1 -1
- package/dist/{bold-icon.entry-0492ff02.js → bold-icon.entry-da045de2.js} +1 -1
- package/dist/{button-component_2.entry-fea9bd3d.js → button-component_2.entry-ad0e9642.js} +8 -8
- package/dist/{button-component_2.entry-f0c7f894.cjs → button-component_2.entry-adbcccdf.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_36.entry-c85d6a79.js → calendar-agenda-fill-icon_36.entry-05898830.js} +509 -462
- package/dist/calendar-agenda-fill-icon_36.entry-aeb96033.cjs +6 -0
- package/dist/{calendar-cancel-icon.entry-237b8c9e.cjs → calendar-cancel-icon.entry-7b62f915.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-e7dd5b8f.js → calendar-cancel-icon.entry-85ebd74c.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-a868e0bc.cjs → calendar-check-icon_2.entry-2e1586eb.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-c7f47fc8.js → calendar-check-icon_2.entry-72ab0311.js} +1 -1
- package/dist/{calendar-icon.entry-324de624.js → calendar-icon.entry-230a1263.js} +1 -1
- package/dist/{calendar-icon.entry-071eb30d.cjs → calendar-icon.entry-b8c87d5f.cjs} +1 -1
- package/dist/{checkbox-component.entry-0f9970cc.js → checkbox-component.entry-51287f4f.js} +1 -1
- package/dist/{checkbox-component.entry-5bcf4b08.cjs → checkbox-component.entry-b6f0741a.cjs} +1 -1
- package/dist/{checkmark-icon_15.entry-98377585.js → checkmark-icon_15.entry-554964a3.js} +7 -7
- package/dist/{checkmark-icon_15.entry-7776e533.cjs → checkmark-icon_15.entry-a61f7d0b.cjs} +2 -2
- package/dist/{chevron-icon_3.entry-526b4b85.cjs → chevron-icon_3.entry-3913b854.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-ec66260c.js → chevron-icon_3.entry-4595b992.js} +5 -5
- package/dist/{clock-icon_4.entry-66d15f7c.cjs → clock-icon_4.entry-282b96df.cjs} +1 -1
- package/dist/{clock-icon_4.entry-4fa47996.js → clock-icon_4.entry-e081381a.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-45ade322.cjs → customParseFormat-a4d9ea69-573fe3af.cjs} +1 -1
- package/dist/{customParseFormat-39eacb44-eeffe2bb.js → customParseFormat-a4d9ea69-aeaa945c.js} +1 -1
- package/dist/{delete-icon.entry-540aa2bb.cjs → delete-icon.entry-6c9be3e2.cjs} +1 -1
- package/dist/{delete-icon.entry-95d01eb8.js → delete-icon.entry-e5182b5a.js} +1 -1
- package/dist/{document-refresh-icon.entry-c467f082.cjs → document-refresh-icon.entry-018ce16d.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-b82d5da8.js → document-refresh-icon.entry-0b2c1eb1.js} +1 -1
- package/dist/{feedbackSync-47d13bb0-9f249f33.cjs → feedbackSync-aa8d23d1-2c779b00.cjs} +1 -1
- package/dist/{feedbackSync-47d13bb0-5608d680.js → feedbackSync-aa8d23d1-785b41fd.js} +1 -1
- package/dist/{folder-icon.entry-cb0dc63d.js → folder-icon.entry-eb9c7f65.js} +1 -1
- package/dist/{folder-icon.entry-4d48c2ee.cjs → folder-icon.entry-fdce88ea.cjs} +1 -1
- package/dist/{forward-icon.entry-5aa01f53.js → forward-icon.entry-0b9c7166.js} +1 -1
- package/dist/{forward-icon.entry-d04aaf6d.cjs → forward-icon.entry-1ea23df4.cjs} +1 -1
- package/dist/{globe-icon_2.entry-87e29cdf.cjs → globe-icon_2.entry-385877d0.cjs} +1 -1
- package/dist/{globe-icon_2.entry-c7ae78cc.js → globe-icon_2.entry-3cf1b102.js} +3 -3
- package/dist/google-logo-icon_6.entry-9d97b8db.cjs +2 -0
- package/dist/{google-logo-icon_6.entry-80a6bfa3.js → google-logo-icon_6.entry-f5adddf0.js} +314 -287
- package/dist/{google-meet-icon_5.entry-4e71c83b.js → google-meet-icon_5.entry-20574ba9.js} +1 -1
- package/dist/{google-meet-icon_5.entry-26d667b6.cjs → google-meet-icon_5.entry-e5c673bf.cjs} +1 -1
- package/dist/{inbox-icon.entry-60a82bfc.cjs → inbox-icon.entry-29169ba7.cjs} +1 -1
- package/dist/{inbox-icon.entry-77e4e17b.js → inbox-icon.entry-3ed18276.js} +1 -1
- package/dist/index-58c1674c.cjs +57 -0
- package/dist/{index-04630615.js → index-b04bb93f.js} +114 -87
- package/dist/{index.es-1fdb1e36-fbdb04fa.js → index.es-6d4b50d5-724fa642.js} +1 -1
- package/dist/{index.es-1fdb1e36-830a422f.cjs → index.es-6d4b50d5-7383c4f8.cjs} +1 -1
- package/dist/{info-icon_2.entry-34800b66.cjs → info-icon_2.entry-4fa9aa36.cjs} +1 -1
- package/dist/{info-icon_2.entry-3c483f61.js → info-icon_2.entry-f709a5bf.js} +1 -1
- package/dist/{input-component.entry-ea4016fe.js → input-component.entry-1b91f7cf.js} +1 -1
- package/dist/{input-component.entry-f7ccf3d6.cjs → input-component.entry-82dc06b1.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-d4024d2f.cjs → input-dropdown_2.entry-0601fe2f.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-c7730cf8.js → input-dropdown_2.entry-600dfd62.js} +4 -4
- package/dist/{italic-icon.entry-6e0805ab.js → italic-icon.entry-7bb5d844.js} +1 -1
- package/dist/{italic-icon.entry-8127c2ee.cjs → italic-icon.entry-cfeb3329.cjs} +1 -1
- package/dist/{multi-select-dropdown_2.entry-d749999d.js → multi-select-dropdown_2.entry-2e2caeeb.js} +2 -2
- package/dist/{multi-select-dropdown_2.entry-49d6f0e7.cjs → multi-select-dropdown_2.entry-ded44143.cjs} +1 -1
- package/dist/{notebook-store-b61693cd-7a5576e7.js → notebook-store-b61693cd-a6630a19.js} +1 -1
- package/dist/{notebook-store-b61693cd-84de36d2.cjs → notebook-store-b61693cd-fe56f6e3.cjs} +1 -1
- package/dist/{nylas-booked-event-card_12.entry-3fcfd6f9.js → nylas-booked-event-card_12.entry-46bf945a.js} +347 -343
- package/dist/nylas-booked-event-card_12.entry-c0d66ddf.cjs +1 -0
- package/dist/{nylas-call-summary.entry-38aed89a.js → nylas-call-summary.entry-02a9b542.js} +1 -1
- package/dist/{nylas-call-summary.entry-e9adcb93.cjs → nylas-call-summary.entry-92089a11.cjs} +1 -1
- package/dist/{nylas-event-calendar_3.entry-48f656e5.cjs → nylas-event-calendar_3.entry-c7421045.cjs} +2 -2
- package/dist/{nylas-event-calendar_3.entry-62d1f1f5.js → nylas-event-calendar_3.entry-c77a26ca.js} +35 -23
- package/dist/{nylas-form-card.entry-b900b46e.cjs → nylas-form-card.entry-48b2d9d4.cjs} +1 -1
- package/dist/{nylas-form-card.entry-3828ccb1.js → nylas-form-card.entry-ddaea368.js} +2 -2
- package/dist/{nylas-if-state.entry-92af0a51.cjs → nylas-if-state.entry-b7c26f4c.cjs} +1 -1
- package/dist/{nylas-if-state.entry-2810dcf5.js → nylas-if-state.entry-bd3cba4e.js} +2 -2
- package/dist/{nylas-key-points.entry-977a6fae.js → nylas-key-points.entry-d9a22328.js} +3 -3
- package/dist/{nylas-key-points.entry-de658637.cjs → nylas-key-points.entry-da89162b.cjs} +1 -1
- package/dist/{nylas-login.entry-4a6c11e6.cjs → nylas-login.entry-a4ee2c70.cjs} +1 -1
- package/dist/{nylas-login.entry-8101d3d0.js → nylas-login.entry-cb830f5d.js} +2 -2
- package/dist/{nylas-provider.entry-c054d68a.js → nylas-provider.entry-7b416341.js} +5 -5
- package/dist/{nylas-provider.entry-b7ac25f5.cjs → nylas-provider.entry-8f71dc58.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-e35fad5c.js → nylas-scheduler-editor.entry-04e8f10b.js} +20 -20
- package/dist/nylas-scheduler-editor.entry-77f49e22.cjs +2 -0
- package/dist/nylas-scheduling.entry-df177e08.cjs +1 -0
- package/dist/{nylas-scheduling.entry-360b978c.js → nylas-scheduling.entry-f187da9e.js} +33 -33
- package/dist/{nylas-transcript.entry-81e2c821.js → nylas-transcript.entry-130d62d2.js} +24 -24
- package/dist/{nylas-transcript.entry-4d973027.cjs → nylas-transcript.entry-f35ee1ec.cjs} +3 -3
- package/dist/nylas-video-player.entry-3e1d8faa.js +39 -0
- package/dist/nylas-video-player.entry-7ba2cd73.cjs +1 -0
- package/dist/{nylas-video-preview.entry-12e05e4d.cjs → nylas-video-preview.entry-84b7d31d.cjs} +1 -1
- package/dist/{nylas-video-preview.entry-320421b6.js → nylas-video-preview.entry-85751140.js} +1 -1
- package/dist/{person-icon.entry-967ad730.cjs → person-icon.entry-28c58d83.cjs} +1 -1
- package/dist/{person-icon.entry-8533209c.js → person-icon.entry-29a5030a.js} +1 -1
- package/dist/{play-icon.entry-7b1fd79d.cjs → play-icon.entry-4f53806b.cjs} +1 -1
- package/dist/{play-icon.entry-15ee8568.js → play-icon.entry-78eb1cc5.js} +1 -1
- package/dist/{radio-button-group.entry-53dcf16c.js → radio-button-group.entry-1739abfc.js} +1 -1
- package/dist/{radio-button-group.entry-24cb342f.cjs → radio-button-group.entry-1d2a0c94.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-f3320971.js → refresh-icon.entry-8703a22f.js} +1 -1
- package/dist/{refresh-icon.entry-0486ae54.cjs → refresh-icon.entry-e5f2b07f.cjs} +1 -1
- package/dist/{register-component-504a1cbb-89124fd8.cjs → register-component-238f28de-4166d4fd.cjs} +1 -1
- package/dist/{register-component-504a1cbb-5f986d7f.js → register-component-238f28de-daee0751.js} +1 -1
- package/dist/{reply-all-icon.entry-2cea1a40.cjs → reply-all-icon.entry-77711564.cjs} +1 -1
- package/dist/{reply-all-icon.entry-006fd1fb.js → reply-all-icon.entry-c1da34a1.js} +1 -1
- package/dist/{reply-icon.entry-d27166a1.js → reply-icon.entry-1fe825af.js} +1 -1
- package/dist/{reply-icon.entry-bd252aed.cjs → reply-icon.entry-267c524a.cjs} +1 -1
- package/dist/{scheduler-config-store-d6729d8d-4a2defea.cjs → scheduler-config-store-d6729d8d-39f2a8c8.cjs} +1 -1
- package/dist/{scheduler-config-store-d6729d8d-63e34849.js → scheduler-config-store-d6729d8d-634e14c6.js} +1 -1
- package/dist/{scheduler-store-baf100ed-81b183dc.js → scheduler-store-82bb212a-64d99231.js} +60 -60
- package/dist/scheduler-store-82bb212a-dd809b50.cjs +1 -0
- package/dist/{sent-icon.entry-ee434395.cjs → sent-icon.entry-82b5056c.cjs} +1 -1
- package/dist/{sent-icon.entry-bf101068.js → sent-icon.entry-86f841dd.js} +1 -1
- package/dist/{spam-icon.entry-11016b63.cjs → spam-icon.entry-ce6d3260.cjs} +1 -1
- package/dist/{spam-icon.entry-5193f9c6.js → spam-icon.entry-d8a9b8c3.js} +1 -1
- package/dist/{star-icon.entry-0e269252.cjs → star-icon.entry-13fec0d7.cjs} +1 -1
- package/dist/{star-icon.entry-9c7449f3.js → star-icon.entry-c9272ed6.js} +1 -1
- package/dist/{stop-icon.entry-86412c9f.cjs → stop-icon.entry-95c34b68.cjs} +1 -1
- package/dist/{stop-icon.entry-2ac11166.js → stop-icon.entry-ae569b6b.js} +1 -1
- package/dist/{textarea-component.entry-27717409.cjs → textarea-component.entry-75f2e50a.cjs} +1 -1
- package/dist/{textarea-component.entry-9df3fa96.js → textarea-component.entry-9d484b96.js} +1 -1
- package/dist/{toggle-switch.entry-a5ddfad9.js → toggle-switch.entry-3a2069a0.js} +1 -1
- package/dist/{toggle-switch.entry-9623e2b2.cjs → toggle-switch.entry-b832b7bf.cjs} +1 -1
- package/dist/{translate-icon.entry-e0617680.cjs → translate-icon.entry-a2f84ac4.cjs} +1 -1
- package/dist/{translate-icon.entry-f22293e6.js → translate-icon.entry-b9347ebf.js} +1 -1
- package/dist/{trash-fill-icon.entry-2616c5df.js → trash-fill-icon.entry-25a48052.js} +1 -1
- package/dist/{trash-fill-icon.entry-0275f657.cjs → trash-fill-icon.entry-ae7a4d13.cjs} +1 -1
- package/dist/{underline-icon.entry-d54b06ab.cjs → underline-icon.entry-2e75ba4c.cjs} +1 -1
- package/dist/{underline-icon.entry-1110dcb1.js → underline-icon.entry-53025db9.js} +1 -1
- package/dist/{warning-icon.entry-9a6e7913.js → warning-icon.entry-5c49aabe.js} +1 -1
- package/dist/{warning-icon.entry-6d390ab7.cjs → warning-icon.entry-a87938c6.cjs} +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,10 +1,10 @@
|
|
|
1
|
-
import { r as x, h as i, c as S, d as c, i as d, K as ge, L as ie, M as
|
|
2
|
-
import { R as D } from "./register-component-
|
|
3
|
-
import { D as
|
|
1
|
+
import { r as x, h as i, c as S, d as c, i as d, K as ge, L as ie, M as Zn, H, g as O, O as Yn, y as jn, P as ca, Q as he } from "./index-b04bb93f.js";
|
|
2
|
+
import { R as D } from "./register-component-238f28de-daee0751.js";
|
|
3
|
+
import { D as da, T as Xn, d as Kn, F as Qn, L as Va, a as Vn } from "./constants-3d8016e3-3c080f00.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const et = ".sc-calendar-agenda-fill-icon-h{display:flex}", nt = et, at = class {
|
|
8
8
|
constructor(e) {
|
|
9
9
|
x(this, e), this.width = "20", this.height = "20";
|
|
10
10
|
}
|
|
@@ -12,8 +12,8 @@ const Qa = ".sc-calendar-agenda-fill-icon-h{display:flex}", Va = Qa, et = class
|
|
|
12
12
|
return i("svg", { key: "cfcec8433dc1985a15473b7618d843455b901b4e", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "56f131a6fb4afe06e21420248283476ea83a4480", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM11 3.5C11 3.25454 10.8231 3.05039 10.5899 3.00806L10.5 3H3.5L3.41012 3.00806C3.17688 3.05039 3 3.25454 3 3.5C3 3.74546 3.17688 3.94961 3.41012 3.99194L3.5 4H10.5L10.5899 3.99194C10.8231 3.94961 11 3.74546 11 3.5ZM11 7C11 6.75454 10.8231 6.55039 10.5899 6.50806L10.5 6.5H3.5L3.41012 6.50806C3.17688 6.55039 3 6.75454 3 7C3 7.24546 3.17688 7.44961 3.41012 7.49194L3.5 7.5H10.5L10.5899 7.49194C10.8231 7.44961 11 7.24546 11 7ZM11 10.5C11 10.2545 10.8231 10.0504 10.5899 10.0081L10.5 10H3.5L3.41012 10.0081C3.17688 10.0504 3 10.2545 3 10.5C3 10.7455 3.17688 10.9496 3.41012 10.9919L3.5 11H10.5L10.5899 10.9919C10.8231 10.9496 11 10.7455 11 10.5Z", fill: "currentColor" }));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
at.style = nt;
|
|
16
|
+
const tt = ".sc-calendar-agenda-icon-h{display:flex}", lt = tt, ot = class {
|
|
17
17
|
constructor(e) {
|
|
18
18
|
x(this, e), this.width = "20", this.height = "20";
|
|
19
19
|
}
|
|
@@ -21,8 +21,8 @@ const nt = ".sc-calendar-agenda-icon-h{display:flex}", at = nt, tt = class {
|
|
|
21
21
|
return i("svg", { key: "1878b0a061eab92264f4ba44ad9e29437c22f9fb", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "9f04ab38b9b3388b0c74ee79eef4d3d6c78bf089", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM13 11.5V2.5C13 1.67157 12.3284 1 11.5 1H2.5C1.67157 1 1 1.67157 1 2.5V11.5C1 12.3284 1.67157 13 2.5 13H11.5C12.3284 13 13 12.3284 13 11.5ZM11 3.5C11 3.74546 10.8231 3.94961 10.5899 3.99194L10.5 4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.25454 3.17688 3.05039 3.41012 3.00806L3.5 3H10.5C10.7761 3 11 3.22386 11 3.5ZM11 7C11 7.24546 10.8231 7.44961 10.5899 7.49194L10.5 7.5H3.5C3.22386 7.5 3 7.27614 3 7C3 6.75454 3.17688 6.55039 3.41012 6.50806L3.5 6.5H10.5C10.7761 6.5 11 6.72386 11 7ZM11 10.5C11 10.7455 10.8231 10.9496 10.5899 10.9919L10.5 11H3.5C3.22386 11 3 10.7761 3 10.5C3 10.2545 3.17688 10.0504 3.41012 10.0081L3.5 10H10.5C10.7761 10 11 10.2239 11 10.5Z", fill: "currentColor" }));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
const
|
|
24
|
+
ot.style = lt;
|
|
25
|
+
const it = ".sc-calendar-info-icon-h{display:flex}", rt = it, st = class {
|
|
26
26
|
constructor(e) {
|
|
27
27
|
x(this, e), this.width = "20", this.height = "20";
|
|
28
28
|
}
|
|
@@ -30,8 +30,8 @@ const lt = ".sc-calendar-info-icon-h{display:flex}", ot = lt, it = class {
|
|
|
30
30
|
return i("svg", { key: "822b0643d0d53907a006f733faaf33d061b9c6c6", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "6586db59f0e427340111c213cb404281e83709e1", d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" }));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
st.style = rt;
|
|
34
|
+
const ct = ".sc-calendar-patterns-icon-h{display:flex}", dt = ct, ft = class {
|
|
35
35
|
constructor(e) {
|
|
36
36
|
x(this, e), this.width = "20", this.height = "20";
|
|
37
37
|
}
|
|
@@ -39,8 +39,8 @@ const rt = ".sc-calendar-patterns-icon-h{display:flex}", st = rt, ct = class {
|
|
|
39
39
|
return i("svg", { key: "8cf3fea80be3e4d8a59d4bb77316bbaf82cd1f27", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "07026e1118ee8f3422c9410bb131afb037c5011c", d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" }));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
const
|
|
42
|
+
ft.style = dt;
|
|
43
|
+
const yt = ".sc-envelope-fill-icon-h{display:flex}", pt = yt, ut = class {
|
|
44
44
|
constructor(e) {
|
|
45
45
|
x(this, e), this.width = "16", this.height = "13";
|
|
46
46
|
}
|
|
@@ -48,8 +48,8 @@ const dt = ".sc-envelope-fill-icon-h{display:flex}", ft = dt, yt = class {
|
|
|
48
48
|
return i("svg", { key: "867f1ddf88689d54fc7355f4fd1cb12fe26dc2d4", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "291ec2f76fd1694f0bde8481c4c46def9bfe52a2", d: "M16.0001 3.373V10.5C16.0001 11.8807 14.8808 13 13.5001 13H2.50008C1.11937 13 0 11.8807 0 10.5V3.373L7.74657 7.93097C7.90304 8.02301 8.09711 8.02301 8.25359 7.93097L16.0001 3.373ZM13.5001 0C14.7871 0 15.847 0.972604 15.9849 2.22293L8.00008 6.91991L0.0152595 2.22293C0.153116 0.972604 1.21302 0 2.50008 0H13.5001Z", fill: "currentColor" }));
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
const
|
|
51
|
+
ut.style = pt;
|
|
52
|
+
const mt = ".sc-envelope-icon-h{display:flex}", gt = mt, ht = class {
|
|
53
53
|
constructor(e) {
|
|
54
54
|
x(this, e), this.width = "16", this.height = "13";
|
|
55
55
|
}
|
|
@@ -57,8 +57,8 @@ const pt = ".sc-envelope-icon-h{display:flex}", ut = pt, mt = class {
|
|
|
57
57
|
return i("svg", { key: "b318a8addc3ace9fda25758e3b0435a0ecd8deb1", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "e134d76cb69a796dc379694a5f6efe98847becb9", d: "M13.5 0C14.8807 0 16 1.11929 16 2.5V10.5C16 11.8807 14.8807 13 13.5 13H2.5C1.11929 13 0 11.8807 0 10.5V2.5C0 1.11929 1.11929 0 2.5 0H13.5ZM15 3.961L8.25351 7.93097C8.12311 8.00767 7.96661 8.02045 7.82751 7.96932L7.74649 7.93097L1 3.963V10.5C1 11.3284 1.67157 12 2.5 12H13.5C14.3284 12 15 11.3284 15 10.5V3.961ZM13.5 1H2.5C1.67157 1 1 1.67157 1 2.5V2.802L8 6.91991L15 2.801V2.5C15 1.67157 14.3284 1 13.5 1Z", fill: "currentColor" }));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
const
|
|
60
|
+
ht.style = gt;
|
|
61
|
+
const bt = ".sc-flow-icon-h{display:flex}", _t = bt, vt = class {
|
|
62
62
|
constructor(e) {
|
|
63
63
|
x(this, e), this.width = "16", this.height = "12";
|
|
64
64
|
}
|
|
@@ -66,9 +66,9 @@ const gt = ".sc-flow-icon-h{display:flex}", ht = gt, bt = class {
|
|
|
66
66
|
return i("svg", { key: "bae7ca78cad6f8d3f6b0bb17410ad7140d336ee3", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "839840075704b29806f247ca9d3fb6f08be84655", d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" }));
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
var
|
|
69
|
+
vt.style = _t;
|
|
70
|
+
const Ct = ':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-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', wt = Ct;
|
|
71
|
+
var kt = function(e, n, a, t) {
|
|
72
72
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
73
73
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
74
74
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -80,7 +80,7 @@ var Ct = function(e, n, a, t) {
|
|
|
80
80
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
81
81
|
return Reflect.metadata(e, n);
|
|
82
82
|
};
|
|
83
|
-
const
|
|
83
|
+
const fa = class {
|
|
84
84
|
constructor(e) {
|
|
85
85
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "availability", this.selectedConfiguration = void 0, this.openHours = void 0, this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.hideHeader = !1, this.selectedLanguage = void 0, this.schedule = {
|
|
86
86
|
SUN: [],
|
|
@@ -97,7 +97,7 @@ const da = class {
|
|
|
97
97
|
}
|
|
98
98
|
configChangedHandler(e) {
|
|
99
99
|
var t, o, l;
|
|
100
|
-
const n = ((o = (t = e == null ? void 0 : e.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : o.default_open_hours) ??
|
|
100
|
+
const n = ((o = (t = e == null ? void 0 : e.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : o.default_open_hours) ?? da, a = ((l = e == null ? void 0 : e.event_booking) == null ? void 0 : l.timezone) || this.defaultTimezone;
|
|
101
101
|
this.timezone = this.name === "availability" ? a : this.defaultTimezone, this.openHours && this.openHours.length > 0 ? this.openHoursToSchedule(this.openHours) : n && this.openHoursToSchedule(n);
|
|
102
102
|
}
|
|
103
103
|
scheduleChanged(e, n = !0) {
|
|
@@ -245,7 +245,7 @@ const da = class {
|
|
|
245
245
|
const n = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], a = /* @__PURE__ */ new Map();
|
|
246
246
|
n.forEach((o, l) => {
|
|
247
247
|
e[o] && e[o].forEach((r) => {
|
|
248
|
-
const s =
|
|
248
|
+
const s = Zn(r.start), f = Zn(r.end), y = `${s}-${f}`;
|
|
249
249
|
if (!a.has(y))
|
|
250
250
|
a.set(y, { days: [l], start: s, end: f });
|
|
251
251
|
else {
|
|
@@ -294,7 +294,7 @@ const da = class {
|
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
kt([
|
|
298
298
|
D({
|
|
299
299
|
name: "nylas-availability-picker",
|
|
300
300
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -306,10 +306,10 @@ Ct([
|
|
|
306
306
|
an("design:type", Function),
|
|
307
307
|
an("design:paramtypes", []),
|
|
308
308
|
an("design:returntype", void 0)
|
|
309
|
-
],
|
|
310
|
-
|
|
311
|
-
const
|
|
312
|
-
var
|
|
309
|
+
], fa.prototype, "render", null);
|
|
310
|
+
fa.style = wt;
|
|
311
|
+
const xt = ':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-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:var(--nylas-base-900);font-size:16px;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Et = xt;
|
|
312
|
+
var St = function(e, n, a, t) {
|
|
313
313
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
314
314
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
315
315
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -321,7 +321,7 @@ var xt = function(e, n, a, t) {
|
|
|
321
321
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
322
322
|
return Reflect.metadata(e, n);
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const ya = class {
|
|
325
325
|
constructor(e) {
|
|
326
326
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.name = "booking-calendar", this.defaultBookingCalendar = "", this.hideHeader = !1, this.expressFlow = !1, this.selectedLanguage = void 0, this.selectedCalendar = "";
|
|
327
327
|
}
|
|
@@ -397,7 +397,7 @@ const fa = class {
|
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
|
-
|
|
400
|
+
St([
|
|
401
401
|
D({
|
|
402
402
|
name: "nylas-booking-calendar-picker",
|
|
403
403
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -416,10 +416,10 @@ xt([
|
|
|
416
416
|
tn("design:type", Function),
|
|
417
417
|
tn("design:paramtypes", []),
|
|
418
418
|
tn("design:returntype", void 0)
|
|
419
|
-
],
|
|
420
|
-
|
|
421
|
-
const
|
|
422
|
-
var
|
|
419
|
+
], ya.prototype, "render", null);
|
|
420
|
+
ya.style = Et;
|
|
421
|
+
const Ht = ':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-booking-confirmation-redirect{width:inherit;display:flex;flex-direction:column}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label{display:flex;align-items:center;gap:4px;margin-bottom:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown input-component::part(ic__input_wrapper){margin-top:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.error-message{color:var(--nylas-error)}', Ot = Ht;
|
|
422
|
+
var Dt = function(e, n, a, t) {
|
|
423
423
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
424
424
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
425
425
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -431,7 +431,7 @@ var Ht = function(e, n, a, t) {
|
|
|
431
431
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
432
432
|
return Reflect.metadata(e, n);
|
|
433
433
|
};
|
|
434
|
-
const
|
|
434
|
+
const pa = class {
|
|
435
435
|
constructor(e) {
|
|
436
436
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-redirect", this.redirectUrl = "", this.redirectUrlErrorMessage = "", this.selectedLanguage = void 0, this.currentRedirectUrl = "", this.acceptUrl = void 0, this.componentLoaded = !1;
|
|
437
437
|
}
|
|
@@ -477,7 +477,7 @@ const ya = class {
|
|
|
477
477
|
nylasFormInputBlurHandler(e) {
|
|
478
478
|
const { name: n, value: a } = e.detail;
|
|
479
479
|
if (this.currentRedirectUrl = a, this.acceptUrl && n === "confirmation-redirect") {
|
|
480
|
-
if (this.redirectUrlErrorMessage = "", !
|
|
480
|
+
if (this.redirectUrlErrorMessage = "", !Yn(this.currentRedirectUrl)) {
|
|
481
481
|
this.internals.setValidity({ customError: !0 }, "Please enter a valid URL."), this.redirectUrlErrorMessage = "Please enter a valid URL.";
|
|
482
482
|
return;
|
|
483
483
|
}
|
|
@@ -490,7 +490,7 @@ const ya = class {
|
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
formSubmittedHandler(e) {
|
|
493
|
-
this.acceptUrl && !
|
|
493
|
+
this.acceptUrl && !Yn(this.currentRedirectUrl) ? (this.internals.setValidity({ customError: !0 }, "Please enter a valid URL."), this.redirectUrlErrorMessage = "Please enter a valid URL.") : this.internals.setValidity({});
|
|
494
494
|
}
|
|
495
495
|
render() {
|
|
496
496
|
const e = [
|
|
@@ -519,7 +519,7 @@ const ya = class {
|
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
|
|
522
|
+
Dt([
|
|
523
523
|
D({
|
|
524
524
|
name: "nylas-booking-confirmation-redirect",
|
|
525
525
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -537,10 +537,10 @@ Ht([
|
|
|
537
537
|
ln("design:type", Function),
|
|
538
538
|
ln("design:paramtypes", []),
|
|
539
539
|
ln("design:returntype", void 0)
|
|
540
|
-
],
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
var
|
|
540
|
+
], pa.prototype, "render", null);
|
|
541
|
+
pa.style = Ot;
|
|
542
|
+
const Lt = ':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-booking-confirmation-type{width:inherit;display:flex;flex-direction:column;margin-bottom:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', It = Lt;
|
|
543
|
+
var Ft = function(e, n, a, t) {
|
|
544
544
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
545
545
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
546
546
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -552,7 +552,7 @@ var Lt = function(e, n, a, t) {
|
|
|
552
552
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
553
553
|
return Reflect.metadata(e, n);
|
|
554
554
|
};
|
|
555
|
-
const
|
|
555
|
+
const ua = class {
|
|
556
556
|
constructor(e) {
|
|
557
557
|
var n, a;
|
|
558
558
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-type", this.bookingType = "booking", this.showComponent = ((a = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : a.booking_type) !== "custom-confirmation", this.selectedLanguage = void 0, this.selectedBookingType = void 0, this.showDropdown = void 0;
|
|
@@ -626,7 +626,7 @@ const pa = class {
|
|
|
626
626
|
};
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
|
-
|
|
629
|
+
Ft([
|
|
630
630
|
D({
|
|
631
631
|
name: "nylas-booking-confirmation-type",
|
|
632
632
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -644,15 +644,15 @@ Lt([
|
|
|
644
644
|
on("design:type", Function),
|
|
645
645
|
on("design:paramtypes", []),
|
|
646
646
|
on("design:returntype", void 0)
|
|
647
|
-
],
|
|
648
|
-
|
|
647
|
+
], ua.prototype, "render", null);
|
|
648
|
+
ua.style = It;
|
|
649
649
|
/**!
|
|
650
650
|
* Sortable 1.15.6
|
|
651
651
|
* @author RubaXa <trash@rubaxa.org>
|
|
652
652
|
* @author owenm <owen23355@gmail.com>
|
|
653
653
|
* @license MIT
|
|
654
654
|
*/
|
|
655
|
-
function
|
|
655
|
+
function ea(e, n) {
|
|
656
656
|
var a = Object.keys(e);
|
|
657
657
|
if (Object.getOwnPropertySymbols) {
|
|
658
658
|
var t = Object.getOwnPropertySymbols(e);
|
|
@@ -665,9 +665,9 @@ function Vn(e, n) {
|
|
|
665
665
|
function V(e) {
|
|
666
666
|
for (var n = 1; n < arguments.length; n++) {
|
|
667
667
|
var a = arguments[n] != null ? arguments[n] : {};
|
|
668
|
-
n % 2 ?
|
|
669
|
-
|
|
670
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) :
|
|
668
|
+
n % 2 ? ea(Object(a), !0).forEach(function(t) {
|
|
669
|
+
Tt(e, t, a[t]);
|
|
670
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : ea(Object(a)).forEach(function(t) {
|
|
671
671
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(a, t));
|
|
672
672
|
});
|
|
673
673
|
}
|
|
@@ -681,7 +681,7 @@ function qe(e) {
|
|
|
681
681
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
682
682
|
}, qe(e);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Tt(e, n, a) {
|
|
685
685
|
return n in e ? Object.defineProperty(e, n, {
|
|
686
686
|
value: a,
|
|
687
687
|
enumerable: !0,
|
|
@@ -699,7 +699,7 @@ function ae() {
|
|
|
699
699
|
return e;
|
|
700
700
|
}, ae.apply(this, arguments);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function $t(e, n) {
|
|
703
703
|
if (e == null)
|
|
704
704
|
return {};
|
|
705
705
|
var a = {}, t = Object.keys(e), o, l;
|
|
@@ -707,10 +707,10 @@ function Ft(e, n) {
|
|
|
707
707
|
o = t[l], !(n.indexOf(o) >= 0) && (a[o] = e[o]);
|
|
708
708
|
return a;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Nt(e, n) {
|
|
711
711
|
if (e == null)
|
|
712
712
|
return {};
|
|
713
|
-
var a =
|
|
713
|
+
var a = $t(e, n), t, o;
|
|
714
714
|
if (Object.getOwnPropertySymbols) {
|
|
715
715
|
var l = Object.getOwnPropertySymbols(e);
|
|
716
716
|
for (o = 0; o < l.length; o++)
|
|
@@ -718,20 +718,20 @@ function Tt(e, n) {
|
|
|
718
718
|
}
|
|
719
719
|
return a;
|
|
720
720
|
}
|
|
721
|
-
var
|
|
721
|
+
var Pt = "1.15.6";
|
|
722
722
|
function ne(e) {
|
|
723
723
|
if (typeof window < "u" && window.navigator)
|
|
724
724
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
725
725
|
}
|
|
726
|
-
var te = ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = ne(/Edge/i),
|
|
726
|
+
var te = ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Re = ne(/Edge/i), na = ne(/firefox/i), Fe = ne(/safari/i) && !ne(/chrome/i) && !ne(/android/i), Wn = ne(/iP(ad|od|hone)/i), ma = ne(/chrome/i) && ne(/android/i), ga = {
|
|
727
727
|
capture: !1,
|
|
728
728
|
passive: !1
|
|
729
729
|
};
|
|
730
730
|
function E(e, n, a) {
|
|
731
|
-
e.addEventListener(n, a, !te &&
|
|
731
|
+
e.addEventListener(n, a, !te && ga);
|
|
732
732
|
}
|
|
733
733
|
function k(e, n, a) {
|
|
734
|
-
e.removeEventListener(n, a, !te &&
|
|
734
|
+
e.removeEventListener(n, a, !te && ga);
|
|
735
735
|
}
|
|
736
736
|
function Xe(e, n) {
|
|
737
737
|
if (n) {
|
|
@@ -749,7 +749,7 @@ function Xe(e, n) {
|
|
|
749
749
|
return !1;
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function ha(e) {
|
|
753
753
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
754
754
|
}
|
|
755
755
|
function X(e, n, a, t) {
|
|
@@ -760,18 +760,18 @@ function X(e, n, a, t) {
|
|
|
760
760
|
return e;
|
|
761
761
|
if (e === a)
|
|
762
762
|
break;
|
|
763
|
-
} while (e =
|
|
763
|
+
} while (e = ha(e));
|
|
764
764
|
}
|
|
765
765
|
return null;
|
|
766
766
|
}
|
|
767
|
-
var
|
|
767
|
+
var aa = /\s+/g;
|
|
768
768
|
function q(e, n, a) {
|
|
769
769
|
if (e && n)
|
|
770
770
|
if (e.classList)
|
|
771
771
|
e.classList[a ? "add" : "remove"](n);
|
|
772
772
|
else {
|
|
773
|
-
var t = (" " + e.className + " ").replace(
|
|
774
|
-
e.className = (t + (a ? " " + n : "")).replace(
|
|
773
|
+
var t = (" " + e.className + " ").replace(aa, " ").replace(" " + n + " ", " ");
|
|
774
|
+
e.className = (t + (a ? " " + n : "")).replace(aa, " ");
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
function h(e, n, a) {
|
|
@@ -794,7 +794,7 @@ function we(e, n) {
|
|
|
794
794
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
795
795
|
return o && new o(a);
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function ba(e, n, a) {
|
|
798
798
|
if (e) {
|
|
799
799
|
var t = e.getElementsByTagName(n), o = 0, l = t.length;
|
|
800
800
|
if (a)
|
|
@@ -820,8 +820,8 @@ function $(e, n, a, t, o) {
|
|
|
820
820
|
}
|
|
821
821
|
while (o = o.parentNode);
|
|
822
822
|
if (t && e !== window) {
|
|
823
|
-
var
|
|
824
|
-
|
|
823
|
+
var _ = we(o || e), v = _ && _.a, w = _ && _.d;
|
|
824
|
+
_ && (r /= w, s /= v, p /= v, u /= w, f = r + u, y = s + p);
|
|
825
825
|
}
|
|
826
826
|
return {
|
|
827
827
|
top: r,
|
|
@@ -833,7 +833,7 @@ function $(e, n, a, t, o) {
|
|
|
833
833
|
};
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function ta(e, n, a) {
|
|
837
837
|
for (var t = ce(e, !0), o = $(e)[n]; t; ) {
|
|
838
838
|
var l = $(t)[a], r = void 0;
|
|
839
839
|
if (a === "top" || a === "left" ? r = o >= l : r = o <= l, !r)
|
|
@@ -860,7 +860,7 @@ function Un(e, n) {
|
|
|
860
860
|
a = a.previousElementSibling;
|
|
861
861
|
return a || null;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function G(e, n) {
|
|
864
864
|
var a = 0;
|
|
865
865
|
if (!e || !e.parentNode)
|
|
866
866
|
return -1;
|
|
@@ -868,7 +868,7 @@ function Z(e, n) {
|
|
|
868
868
|
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== b.clone && (!n || Xe(e, n)) && a++;
|
|
869
869
|
return a;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function la(e) {
|
|
872
872
|
var n = 0, a = 0, t = Q();
|
|
873
873
|
if (e)
|
|
874
874
|
do {
|
|
@@ -877,7 +877,7 @@ function ta(e) {
|
|
|
877
877
|
} while (e !== t && (e = e.parentNode));
|
|
878
878
|
return [n, a];
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Rt(e, n) {
|
|
881
881
|
for (var a in e)
|
|
882
882
|
if (e.hasOwnProperty(a)) {
|
|
883
883
|
for (var t in n)
|
|
@@ -904,7 +904,7 @@ function ce(e, n) {
|
|
|
904
904
|
while (a = a.parentNode);
|
|
905
905
|
return Q();
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function At(e, n) {
|
|
908
908
|
if (e && n)
|
|
909
909
|
for (var a in n)
|
|
910
910
|
n.hasOwnProperty(a) && (e[a] = n[a]);
|
|
@@ -914,7 +914,7 @@ function rn(e, n) {
|
|
|
914
914
|
return Math.round(e.top) === Math.round(n.top) && Math.round(e.left) === Math.round(n.left) && Math.round(e.height) === Math.round(n.height) && Math.round(e.width) === Math.round(n.width);
|
|
915
915
|
}
|
|
916
916
|
var Te;
|
|
917
|
-
function
|
|
917
|
+
function _a(e, n) {
|
|
918
918
|
return function() {
|
|
919
919
|
if (!Te) {
|
|
920
920
|
var a = arguments, t = this;
|
|
@@ -924,17 +924,17 @@ function ba(e, n) {
|
|
|
924
924
|
}
|
|
925
925
|
};
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Mt() {
|
|
928
928
|
clearTimeout(Te), Te = void 0;
|
|
929
929
|
}
|
|
930
930
|
function va(e, n, a) {
|
|
931
931
|
e.scrollLeft += n, e.scrollTop += a;
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Ca(e) {
|
|
934
934
|
var n = window.Polymer, a = window.jQuery || window.Zepto;
|
|
935
935
|
return n && n.dom ? n.dom(e).cloneNode(!0) : a ? a(e).clone(!0)[0] : e.cloneNode(!0);
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function wa(e, n, a) {
|
|
938
938
|
var t = {};
|
|
939
939
|
return Array.from(e.children).forEach(function(o) {
|
|
940
940
|
var l, r, s, f;
|
|
@@ -945,7 +945,7 @@ function Ca(e, n, a) {
|
|
|
945
945
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
946
946
|
}
|
|
947
947
|
var j = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
948
|
-
function
|
|
948
|
+
function zt() {
|
|
949
949
|
var e = [], n;
|
|
950
950
|
return {
|
|
951
951
|
captureAnimationState: function() {
|
|
@@ -971,7 +971,7 @@ function At() {
|
|
|
971
971
|
e.push(t);
|
|
972
972
|
},
|
|
973
973
|
removeAnimationState: function(t) {
|
|
974
|
-
e.splice(
|
|
974
|
+
e.splice(Rt(e, {
|
|
975
975
|
target: t
|
|
976
976
|
}), 1);
|
|
977
977
|
},
|
|
@@ -983,9 +983,9 @@ function At() {
|
|
|
983
983
|
}
|
|
984
984
|
var l = !1, r = 0;
|
|
985
985
|
e.forEach(function(s) {
|
|
986
|
-
var f = 0, y = s.target, u = y.fromRect, p = $(y), g = y.prevFromRect,
|
|
986
|
+
var f = 0, y = s.target, u = y.fromRect, p = $(y), g = y.prevFromRect, _ = y.prevToRect, v = s.rect, w = we(y, !0);
|
|
987
987
|
w && (p.top -= w.f, p.left -= w.e), y.toRect = p, y.thisAnimationDuration && rn(g, p) && !rn(u, p) && // Make sure animatingRect is on line between toRect & fromRect
|
|
988
|
-
(
|
|
988
|
+
(v.top - p.top) / (v.left - p.left) === (u.top - p.top) / (u.left - p.left) && (f = jt(v, g, _, o.options)), rn(p, u) || (y.prevFromRect = u, y.prevToRect = p, f || (f = o.options.animation), o.animate(y, v, p, f)), f && (l = !0, r = Math.max(r, f), clearTimeout(y.animationResetTimer), y.animationResetTimer = setTimeout(function() {
|
|
989
989
|
y.animationTime = 0, y.prevFromRect = null, y.fromRect = null, y.prevToRect = null, y.thisAnimationDuration = null;
|
|
990
990
|
}, f), y.thisAnimationDuration = f);
|
|
991
991
|
}), clearTimeout(n), l ? n = setTimeout(function() {
|
|
@@ -996,17 +996,17 @@ function At() {
|
|
|
996
996
|
if (r) {
|
|
997
997
|
h(t, "transition", ""), h(t, "transform", "");
|
|
998
998
|
var s = we(this.el), f = s && s.a, y = s && s.d, u = (o.left - l.left) / (f || 1), p = (o.top - l.top) / (y || 1);
|
|
999
|
-
t.animatingX = !!u, t.animatingY = !!p, h(t, "transform", "translate3d(" + u + "px," + p + "px,0)"), this.forRepaintDummy =
|
|
999
|
+
t.animatingX = !!u, t.animatingY = !!p, h(t, "transform", "translate3d(" + u + "px," + p + "px,0)"), this.forRepaintDummy = Bt(t), h(t, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
1000
1000
|
h(t, "transition", ""), h(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
1001
1001
|
}, r);
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
};
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function Bt(e) {
|
|
1007
1007
|
return e.offsetWidth;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function jt(e, n, a, t) {
|
|
1010
1010
|
return Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - a.top, 2) + Math.pow(n.left - a.left, 2)) * t.animation;
|
|
1011
1011
|
}
|
|
1012
1012
|
var be = [], sn = {
|
|
@@ -1061,22 +1061,22 @@ var be = [], sn = {
|
|
|
1061
1061
|
}), o;
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
|
-
function
|
|
1065
|
-
var n = e.sortable, a = e.rootEl, t = e.name, o = e.targetEl, l = e.cloneEl, r = e.toEl, s = e.fromEl, f = e.oldIndex, y = e.newIndex, u = e.oldDraggableIndex, p = e.newDraggableIndex, g = e.originalEvent,
|
|
1064
|
+
function Wt(e) {
|
|
1065
|
+
var n = e.sortable, a = e.rootEl, t = e.name, o = e.targetEl, l = e.cloneEl, r = e.toEl, s = e.fromEl, f = e.oldIndex, y = e.newIndex, u = e.oldDraggableIndex, p = e.newDraggableIndex, g = e.originalEvent, _ = e.putSortable, v = e.extraEventProperties;
|
|
1066
1066
|
if (n = n || a && a[j], !!n) {
|
|
1067
1067
|
var w, P = n.options, N = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
1068
1068
|
window.CustomEvent && !te && !Re ? w = new CustomEvent(t, {
|
|
1069
1069
|
bubbles: !0,
|
|
1070
1070
|
cancelable: !0
|
|
1071
|
-
}) : (w = document.createEvent("Event"), w.initEvent(t, !0, !0)), w.to = r || a, w.from = s || a, w.item = o || a, w.clone = l, w.oldIndex = f, w.newIndex = y, w.oldDraggableIndex = u, w.newDraggableIndex = p, w.originalEvent = g, w.pullMode =
|
|
1072
|
-
var R = V(V({},
|
|
1073
|
-
for (var
|
|
1074
|
-
w[
|
|
1071
|
+
}) : (w = document.createEvent("Event"), w.initEvent(t, !0, !0)), w.to = r || a, w.from = s || a, w.item = o || a, w.clone = l, w.oldIndex = f, w.newIndex = y, w.oldDraggableIndex = u, w.newDraggableIndex = p, w.originalEvent = g, w.pullMode = _ ? _.lastPutMode : void 0;
|
|
1072
|
+
var R = V(V({}, v), Ae.getEventProperties(t, n));
|
|
1073
|
+
for (var Z in R)
|
|
1074
|
+
w[Z] = R[Z];
|
|
1075
1075
|
a && a.dispatchEvent(w), P[N] && P[N].call(n, w);
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
|
-
var
|
|
1079
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = t.evt, l =
|
|
1078
|
+
var Ut = ["evt"], B = function(n, a) {
|
|
1079
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = t.evt, l = Nt(t, Ut);
|
|
1080
1080
|
Ae.pluginEvent.bind(b)(n, a, V({
|
|
1081
1081
|
dragEl: m,
|
|
1082
1082
|
parentEl: F,
|
|
@@ -1094,8 +1094,8 @@ var jt = ["evt"], B = function(n, a) {
|
|
|
1094
1094
|
oldDraggableIndex: $e,
|
|
1095
1095
|
newIndex: J,
|
|
1096
1096
|
newDraggableIndex: re,
|
|
1097
|
-
hideGhostForTarget:
|
|
1098
|
-
unhideGhostForTarget:
|
|
1097
|
+
hideGhostForTarget: Sa,
|
|
1098
|
+
unhideGhostForTarget: Ha,
|
|
1099
1099
|
cloneNowHidden: function() {
|
|
1100
1100
|
se = !0;
|
|
1101
1101
|
},
|
|
@@ -1112,7 +1112,7 @@ var jt = ["evt"], B = function(n, a) {
|
|
|
1112
1112
|
}, l));
|
|
1113
1113
|
};
|
|
1114
1114
|
function z(e) {
|
|
1115
|
-
|
|
1115
|
+
Wt(V({
|
|
1116
1116
|
putSortable: A,
|
|
1117
1117
|
cloneEl: I,
|
|
1118
1118
|
targetEl: m,
|
|
@@ -1123,14 +1123,14 @@ function z(e) {
|
|
|
1123
1123
|
newDraggableIndex: re
|
|
1124
1124
|
}, e));
|
|
1125
1125
|
}
|
|
1126
|
-
var m, F, C, L, me, Je, I, se, Ce, J, $e, re, ze, A,
|
|
1126
|
+
var m, F, C, L, me, Je, I, se, Ce, J, $e, re, ze, A, ve = !1, Ke = !1, Qe = [], pe, Y, cn, dn, oa, ia, De, _e, Ne, Pe = !1, Be = !1, Ge, M, fn = [], An = !1, Ve = [], nn = typeof document < "u", je = Wn, ra = Re || te ? "cssFloat" : "float", qt = nn && !ma && !Wn && "draggable" in document.createElement("div"), ka = function() {
|
|
1127
1127
|
if (nn) {
|
|
1128
1128
|
if (te)
|
|
1129
1129
|
return !1;
|
|
1130
1130
|
var e = document.createElement("x");
|
|
1131
1131
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1132
1132
|
}
|
|
1133
|
-
}(),
|
|
1133
|
+
}(), xa = function(n, a) {
|
|
1134
1134
|
var t = h(n), o = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), l = ke(n, 0, a), r = ke(n, 1, a), s = l && h(l), f = r && h(r), y = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + $(l).width, u = f && parseInt(f.marginLeft) + parseInt(f.marginRight) + $(r).width;
|
|
1135
1135
|
if (t.display === "flex")
|
|
1136
1136
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -1140,11 +1140,11 @@ var m, F, C, L, me, Je, I, se, Ce, J, $e, re, ze, A, _e = !1, Ke = !1, Qe = [],
|
|
|
1140
1140
|
var p = s.float === "left" ? "left" : "right";
|
|
1141
1141
|
return r && (f.clear === "both" || f.clear === p) ? "vertical" : "horizontal";
|
|
1142
1142
|
}
|
|
1143
|
-
return l && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || y >= o && t[
|
|
1144
|
-
},
|
|
1143
|
+
return l && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || y >= o && t[ra] === "none" || r && t[ra] === "none" && y + u > o) ? "vertical" : "horizontal";
|
|
1144
|
+
}, Jt = function(n, a, t) {
|
|
1145
1145
|
var o = t ? n.left : n.top, l = t ? n.right : n.bottom, r = t ? n.width : n.height, s = t ? a.left : a.top, f = t ? a.right : a.bottom, y = t ? a.width : a.height;
|
|
1146
1146
|
return o === s || l === f || o + r / 2 === s + y / 2;
|
|
1147
|
-
},
|
|
1147
|
+
}, Gt = function(n, a) {
|
|
1148
1148
|
var t;
|
|
1149
1149
|
return Qe.some(function(o) {
|
|
1150
1150
|
var l = o[j].options.emptyInsertThreshold;
|
|
@@ -1154,7 +1154,7 @@ var m, F, C, L, me, Je, I, se, Ce, J, $e, re, ze, A, _e = !1, Ke = !1, Qe = [],
|
|
|
1154
1154
|
return t = o;
|
|
1155
1155
|
}
|
|
1156
1156
|
}), t;
|
|
1157
|
-
},
|
|
1157
|
+
}, Ea = function(n) {
|
|
1158
1158
|
function a(l, r) {
|
|
1159
1159
|
return function(s, f, y, u) {
|
|
1160
1160
|
var p = s.options.group.name && f.options.group.name && s.options.group.name === f.options.group.name;
|
|
@@ -1174,19 +1174,19 @@ var m, F, C, L, me, Je, I, se, Ce, J, $e, re, ze, A, _e = !1, Ke = !1, Qe = [],
|
|
|
1174
1174
|
(!o || qe(o) != "object") && (o = {
|
|
1175
1175
|
name: o
|
|
1176
1176
|
}), t.name = o.name, t.checkPull = a(o.pull, !0), t.checkPut = a(o.put), t.revertClone = o.revertClone, n.group = t;
|
|
1177
|
-
}, Ea = function() {
|
|
1178
|
-
!wa && C && h(C, "display", "none");
|
|
1179
1177
|
}, Sa = function() {
|
|
1180
|
-
!
|
|
1178
|
+
!ka && C && h(C, "display", "none");
|
|
1179
|
+
}, Ha = function() {
|
|
1180
|
+
!ka && C && h(C, "display", "");
|
|
1181
1181
|
};
|
|
1182
|
-
nn && !
|
|
1182
|
+
nn && !ma && document.addEventListener("click", function(e) {
|
|
1183
1183
|
if (Ke)
|
|
1184
1184
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ke = !1, !1;
|
|
1185
1185
|
}, !0);
|
|
1186
1186
|
var ue = function(n) {
|
|
1187
1187
|
if (m) {
|
|
1188
1188
|
n = n.touches ? n.touches[0] : n;
|
|
1189
|
-
var a =
|
|
1189
|
+
var a = Gt(n.clientX, n.clientY);
|
|
1190
1190
|
if (a) {
|
|
1191
1191
|
var t = {};
|
|
1192
1192
|
for (var o in n)
|
|
@@ -1194,7 +1194,7 @@ var ue = function(n) {
|
|
|
1194
1194
|
t.target = t.rootEl = a, t.preventDefault = void 0, t.stopPropagation = void 0, a[j]._onDragOver(t);
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
},
|
|
1197
|
+
}, Zt = function(n) {
|
|
1198
1198
|
m && m.parentNode[j]._isOutsideThisEl(n.target);
|
|
1199
1199
|
};
|
|
1200
1200
|
function b(e, n) {
|
|
@@ -1216,7 +1216,7 @@ function b(e, n) {
|
|
|
1216
1216
|
// will be set to same as swapThreshold if default
|
|
1217
1217
|
removeCloneOnHide: !0,
|
|
1218
1218
|
direction: function() {
|
|
1219
|
-
return
|
|
1219
|
+
return xa(e, this.options);
|
|
1220
1220
|
},
|
|
1221
1221
|
ghostClass: "sortable-ghost",
|
|
1222
1222
|
chosenClass: "sortable-chosen",
|
|
@@ -1250,16 +1250,16 @@ function b(e, n) {
|
|
|
1250
1250
|
Ae.initializePlugins(this, e, a);
|
|
1251
1251
|
for (var t in a)
|
|
1252
1252
|
!(t in n) && (n[t] = a[t]);
|
|
1253
|
-
|
|
1253
|
+
Ea(n);
|
|
1254
1254
|
for (var o in this)
|
|
1255
1255
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1256
|
-
this.nativeDraggable = n.forceFallback ? !1 :
|
|
1256
|
+
this.nativeDraggable = n.forceFallback ? !1 : qt, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? E(e, "pointerdown", this._onTapStart) : (E(e, "mousedown", this._onTapStart), E(e, "touchstart", this._onTapStart)), this.nativeDraggable && (E(e, "dragover", this), E(e, "dragenter", this)), Qe.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), ae(this, zt());
|
|
1257
1257
|
}
|
|
1258
1258
|
b.prototype = /** @lends Sortable.prototype */
|
|
1259
1259
|
{
|
|
1260
1260
|
constructor: b,
|
|
1261
1261
|
_isOutsideThisEl: function(n) {
|
|
1262
|
-
!this.el.contains(n) && n !== this.el && (
|
|
1262
|
+
!this.el.contains(n) && n !== this.el && (_e = null);
|
|
1263
1263
|
},
|
|
1264
1264
|
_getDirection: function(n, a) {
|
|
1265
1265
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, a, m) : this.options.direction;
|
|
@@ -1267,8 +1267,8 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1267
1267
|
_onTapStart: function(n) {
|
|
1268
1268
|
if (n.cancelable) {
|
|
1269
1269
|
var a = this, t = this.el, o = this.options, l = o.preventOnFilter, r = n.type, s = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, f = (s || n).target, y = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || f, u = o.filter;
|
|
1270
|
-
if (
|
|
1271
|
-
if (Ce =
|
|
1270
|
+
if (al(t), !m && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || o.disabled) && !y.isContentEditable && !(!this.nativeDraggable && Fe && f && f.tagName.toUpperCase() === "SELECT") && (f = X(f, o.draggable, t, !1), !(f && f.animated) && Je !== f)) {
|
|
1271
|
+
if (Ce = G(f), $e = G(f, o.draggable), typeof u == "function") {
|
|
1272
1272
|
if (u.call(this, n, f, this)) {
|
|
1273
1273
|
z({
|
|
1274
1274
|
sortable: a,
|
|
@@ -1310,21 +1310,21 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1310
1310
|
target: m,
|
|
1311
1311
|
clientX: (a || n).clientX,
|
|
1312
1312
|
clientY: (a || n).clientY
|
|
1313
|
-
},
|
|
1313
|
+
}, oa = pe.clientX - y.left, ia = pe.clientY - y.top, this._lastX = (a || n).clientX, this._lastY = (a || n).clientY, m.style["will-change"] = "all", f = function() {
|
|
1314
1314
|
if (B("delayEnded", o, {
|
|
1315
1315
|
evt: n
|
|
1316
1316
|
}), b.eventCanceled) {
|
|
1317
1317
|
o._onDrop();
|
|
1318
1318
|
return;
|
|
1319
1319
|
}
|
|
1320
|
-
o._disableDelayedDragEvents(), !
|
|
1320
|
+
o._disableDelayedDragEvents(), !na && o.nativeDraggable && (m.draggable = !0), o._triggerDragStart(n, a), z({
|
|
1321
1321
|
sortable: o,
|
|
1322
1322
|
name: "choose",
|
|
1323
1323
|
originalEvent: n
|
|
1324
1324
|
}), q(m, r.chosenClass, !0);
|
|
1325
1325
|
}, r.ignore.split(",").forEach(function(u) {
|
|
1326
|
-
|
|
1327
|
-
}), E(s, "dragover", ue), E(s, "mousemove", ue), E(s, "touchmove", ue), r.supportPointer ? (E(s, "pointerup", o._onDrop), !this.nativeDraggable && E(s, "pointercancel", o._onDrop)) : (E(s, "mouseup", o._onDrop), E(s, "touchend", o._onDrop), E(s, "touchcancel", o._onDrop)),
|
|
1326
|
+
ba(m, u.trim(), yn);
|
|
1327
|
+
}), E(s, "dragover", ue), E(s, "mousemove", ue), E(s, "touchmove", ue), r.supportPointer ? (E(s, "pointerup", o._onDrop), !this.nativeDraggable && E(s, "pointercancel", o._onDrop)) : (E(s, "mouseup", o._onDrop), E(s, "touchend", o._onDrop), E(s, "touchcancel", o._onDrop)), na && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), B("delayStart", this, {
|
|
1328
1328
|
evt: n
|
|
1329
1329
|
}), r.delay && (!r.delayOnTouchOnly || a) && (!this.nativeDraggable || !(Re || te))) {
|
|
1330
1330
|
if (b.eventCanceled) {
|
|
@@ -1350,17 +1350,17 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1350
1350
|
_triggerDragStart: function(n, a) {
|
|
1351
1351
|
a = a || n.pointerType == "touch" && n, !this.nativeDraggable || a ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : a ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(m, "dragend", this), E(L, "dragstart", this._onDragStart));
|
|
1352
1352
|
try {
|
|
1353
|
-
document.selection ?
|
|
1353
|
+
document.selection ? Ze(function() {
|
|
1354
1354
|
document.selection.empty();
|
|
1355
1355
|
}) : window.getSelection().removeAllRanges();
|
|
1356
1356
|
} catch {
|
|
1357
1357
|
}
|
|
1358
1358
|
},
|
|
1359
1359
|
_dragStarted: function(n, a) {
|
|
1360
|
-
if (
|
|
1360
|
+
if (ve = !1, L && m) {
|
|
1361
1361
|
B("dragStarted", this, {
|
|
1362
1362
|
evt: a
|
|
1363
|
-
}), this.nativeDraggable && E(document, "dragover",
|
|
1363
|
+
}), this.nativeDraggable && E(document, "dragover", Zt);
|
|
1364
1364
|
var t = this.options;
|
|
1365
1365
|
!n && q(m, t.dragClass, !1), q(m, t.ghostClass, !0), b.active = this, n && this._appendGhost(), z({
|
|
1366
1366
|
sortable: this,
|
|
@@ -1371,31 +1371,31 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1371
1371
|
this._nulling();
|
|
1372
1372
|
},
|
|
1373
1373
|
_emulateDragOver: function() {
|
|
1374
|
-
if (
|
|
1375
|
-
this._lastX =
|
|
1376
|
-
for (var n = document.elementFromPoint(
|
|
1374
|
+
if (Y) {
|
|
1375
|
+
this._lastX = Y.clientX, this._lastY = Y.clientY, Sa();
|
|
1376
|
+
for (var n = document.elementFromPoint(Y.clientX, Y.clientY), a = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), n !== a); )
|
|
1377
1377
|
a = n;
|
|
1378
1378
|
if (m.parentNode[j]._isOutsideThisEl(n), a)
|
|
1379
1379
|
do {
|
|
1380
1380
|
if (a[j]) {
|
|
1381
1381
|
var t = void 0;
|
|
1382
1382
|
if (t = a[j]._onDragOver({
|
|
1383
|
-
clientX:
|
|
1384
|
-
clientY:
|
|
1383
|
+
clientX: Y.clientX,
|
|
1384
|
+
clientY: Y.clientY,
|
|
1385
1385
|
target: n,
|
|
1386
1386
|
rootEl: a
|
|
1387
1387
|
}), t && !this.options.dragoverBubble)
|
|
1388
1388
|
break;
|
|
1389
1389
|
}
|
|
1390
1390
|
n = a;
|
|
1391
|
-
} while (a =
|
|
1392
|
-
|
|
1391
|
+
} while (a = ha(a));
|
|
1392
|
+
Ha();
|
|
1393
1393
|
}
|
|
1394
1394
|
},
|
|
1395
1395
|
_onTouchMove: function(n) {
|
|
1396
1396
|
if (pe) {
|
|
1397
|
-
var a = this.options, t = a.fallbackTolerance, o = a.fallbackOffset, l = n.touches ? n.touches[0] : n, r = C && we(C, !0), s = C && r && r.a, f = C && r && r.d, y = je && M &&
|
|
1398
|
-
if (!b.active && !
|
|
1397
|
+
var a = this.options, t = a.fallbackTolerance, o = a.fallbackOffset, l = n.touches ? n.touches[0] : n, r = C && we(C, !0), s = C && r && r.a, f = C && r && r.d, y = je && M && la(M), u = (l.clientX - pe.clientX + o.x) / (s || 1) + (y ? y[0] - fn[0] : 0) / (s || 1), p = (l.clientY - pe.clientY + o.y) / (f || 1) + (y ? y[1] - fn[1] : 0) / (f || 1);
|
|
1398
|
+
if (!b.active && !ve) {
|
|
1399
1399
|
if (t && Math.max(Math.abs(l.clientX - this._lastX), Math.abs(l.clientY - this._lastY)) < t)
|
|
1400
1400
|
return;
|
|
1401
1401
|
this._onDragStart(n, !0);
|
|
@@ -1410,7 +1410,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1410
1410
|
f: p
|
|
1411
1411
|
};
|
|
1412
1412
|
var g = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
|
|
1413
|
-
h(C, "webkitTransform", g), h(C, "mozTransform", g), h(C, "msTransform", g), h(C, "transform", g), cn = u, dn = p,
|
|
1413
|
+
h(C, "webkitTransform", g), h(C, "mozTransform", g), h(C, "msTransform", g), h(C, "transform", g), cn = u, dn = p, Y = l;
|
|
1414
1414
|
}
|
|
1415
1415
|
n.cancelable && n.preventDefault();
|
|
1416
1416
|
}
|
|
@@ -1421,9 +1421,9 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1421
1421
|
if (je) {
|
|
1422
1422
|
for (M = n; h(M, "position") === "static" && h(M, "transform") === "none" && M !== document; )
|
|
1423
1423
|
M = M.parentNode;
|
|
1424
|
-
M !== document.body && M !== document.documentElement ? (M === document && (M = Q()), a.top += M.scrollTop, a.left += M.scrollLeft) : M = Q(), fn =
|
|
1424
|
+
M !== document.body && M !== document.documentElement ? (M === document && (M = Q()), a.top += M.scrollTop, a.left += M.scrollLeft) : M = Q(), fn = la(M);
|
|
1425
1425
|
}
|
|
1426
|
-
C = m.cloneNode(!0), q(C, t.ghostClass, !1), q(C, t.fallbackClass, !0), q(C, t.dragClass, !0), h(C, "transition", ""), h(C, "transform", ""), h(C, "box-sizing", "border-box"), h(C, "margin", 0), h(C, "top", a.top), h(C, "left", a.left), h(C, "width", a.width), h(C, "height", a.height), h(C, "opacity", "0.8"), h(C, "position", je ? "absolute" : "fixed"), h(C, "zIndex", "100000"), h(C, "pointerEvents", "none"), b.ghost = C, n.appendChild(C), h(C, "transform-origin",
|
|
1426
|
+
C = m.cloneNode(!0), q(C, t.ghostClass, !1), q(C, t.fallbackClass, !0), q(C, t.dragClass, !0), h(C, "transition", ""), h(C, "transform", ""), h(C, "box-sizing", "border-box"), h(C, "margin", 0), h(C, "top", a.top), h(C, "left", a.left), h(C, "width", a.width), h(C, "height", a.height), h(C, "opacity", "0.8"), h(C, "position", je ? "absolute" : "fixed"), h(C, "zIndex", "100000"), h(C, "pointerEvents", "none"), b.ghost = C, n.appendChild(C), h(C, "transform-origin", oa / parseInt(C.style.width) * 100 + "% " + ia / parseInt(C.style.height) * 100 + "%");
|
|
1427
1427
|
}
|
|
1428
1428
|
},
|
|
1429
1429
|
_onDragStart: function(n, a) {
|
|
@@ -1434,23 +1434,23 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1434
1434
|
this._onDrop();
|
|
1435
1435
|
return;
|
|
1436
1436
|
}
|
|
1437
|
-
B("setupClone", this), b.eventCanceled || (I =
|
|
1437
|
+
B("setupClone", this), b.eventCanceled || (I = Ca(m), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), q(I, this.options.chosenClass, !1), b.clone = I), t.cloneId = Ze(function() {
|
|
1438
1438
|
B("clone", t), !b.eventCanceled && (t.options.removeCloneOnHide || L.insertBefore(I, m), t._hideClone(), z({
|
|
1439
1439
|
sortable: t,
|
|
1440
1440
|
name: "clone"
|
|
1441
1441
|
}));
|
|
1442
|
-
}), !a && q(m, l.dragClass, !0), a ? (Ke = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (k(document, "mouseup", t._onDrop), k(document, "touchend", t._onDrop), k(document, "touchcancel", t._onDrop), o && (o.effectAllowed = "move", l.setData && l.setData.call(t, o, m)), E(document, "drop", t), h(m, "transform", "translateZ(0)")),
|
|
1442
|
+
}), !a && q(m, l.dragClass, !0), a ? (Ke = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (k(document, "mouseup", t._onDrop), k(document, "touchend", t._onDrop), k(document, "touchcancel", t._onDrop), o && (o.effectAllowed = "move", l.setData && l.setData.call(t, o, m)), E(document, "drop", t), h(m, "transform", "translateZ(0)")), ve = !0, t._dragStartId = Ze(t._dragStarted.bind(t, a, n)), E(document, "selectstart", t), De = !0, window.getSelection().removeAllRanges(), Fe && h(document.body, "user-select", "none");
|
|
1443
1443
|
},
|
|
1444
1444
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1445
1445
|
_onDragOver: function(n) {
|
|
1446
|
-
var a = this.el, t = n.target, o, l, r, s = this.options, f = s.group, y = b.active, u = ze === f, p = s.sort, g = A || y,
|
|
1446
|
+
var a = this.el, t = n.target, o, l, r, s = this.options, f = s.group, y = b.active, u = ze === f, p = s.sort, g = A || y, _, v = this, w = !1;
|
|
1447
1447
|
if (An)
|
|
1448
1448
|
return;
|
|
1449
|
-
function P(Oe,
|
|
1450
|
-
B(Oe,
|
|
1449
|
+
function P(Oe, Ka) {
|
|
1450
|
+
B(Oe, v, V({
|
|
1451
1451
|
evt: n,
|
|
1452
1452
|
isOwner: u,
|
|
1453
|
-
axis:
|
|
1453
|
+
axis: _ ? "vertical" : "horizontal",
|
|
1454
1454
|
revert: r,
|
|
1455
1455
|
dragRect: o,
|
|
1456
1456
|
targetRect: l,
|
|
@@ -1458,25 +1458,25 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1458
1458
|
fromSortable: g,
|
|
1459
1459
|
target: t,
|
|
1460
1460
|
completed: R,
|
|
1461
|
-
onMove: function(
|
|
1462
|
-
return We(L, a, m, o,
|
|
1461
|
+
onMove: function(Gn, Qa) {
|
|
1462
|
+
return We(L, a, m, o, Gn, $(Gn), n, Qa);
|
|
1463
1463
|
},
|
|
1464
|
-
changed:
|
|
1465
|
-
},
|
|
1464
|
+
changed: Z
|
|
1465
|
+
}, Ka));
|
|
1466
1466
|
}
|
|
1467
1467
|
function N() {
|
|
1468
|
-
P("dragOverAnimationCapture"),
|
|
1468
|
+
P("dragOverAnimationCapture"), v.captureAnimationState(), v !== g && g.captureAnimationState();
|
|
1469
1469
|
}
|
|
1470
1470
|
function R(Oe) {
|
|
1471
1471
|
return P("dragOverCompleted", {
|
|
1472
1472
|
insertion: Oe
|
|
1473
|
-
}), Oe && (u ? y._hideClone() : y._showClone(
|
|
1474
|
-
P("dragOverAnimationComplete"),
|
|
1475
|
-
}),
|
|
1473
|
+
}), Oe && (u ? y._hideClone() : y._showClone(v), v !== g && (q(m, A ? A.options.ghostClass : y.options.ghostClass, !1), q(m, s.ghostClass, !0)), A !== v && v !== b.active ? A = v : v === b.active && A && (A = null), g === v && (v._ignoreWhileAnimating = t), v.animateAll(function() {
|
|
1474
|
+
P("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
1475
|
+
}), v !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (t === m && !m.animated || t === a && !t.animated) && (_e = null), !s.dragoverBubble && !n.rootEl && t !== document && (m.parentNode[j]._isOutsideThisEl(n.target), !Oe && ue(n)), !s.dragoverBubble && n.stopPropagation && n.stopPropagation(), w = !0;
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1478
|
-
J =
|
|
1479
|
-
sortable:
|
|
1477
|
+
function Z() {
|
|
1478
|
+
J = G(m), re = G(m, s.draggable), z({
|
|
1479
|
+
sortable: v,
|
|
1480
1480
|
name: "change",
|
|
1481
1481
|
toEl: a,
|
|
1482
1482
|
newIndex: J,
|
|
@@ -1486,44 +1486,44 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1486
1486
|
}
|
|
1487
1487
|
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), t = X(t, s.draggable, a, !0), P("dragOver"), b.eventCanceled)
|
|
1488
1488
|
return w;
|
|
1489
|
-
if (m.contains(n.target) || t.animated && t.animatingX && t.animatingY ||
|
|
1489
|
+
if (m.contains(n.target) || t.animated && t.animatingX && t.animatingY || v._ignoreWhileAnimating === t)
|
|
1490
1490
|
return R(!1);
|
|
1491
1491
|
if (Ke = !1, y && !s.disabled && (u ? p || (r = F !== L) : A === this || (this.lastPutMode = ze.checkPull(this, y, m, n)) && f.checkPut(this, y, m, n))) {
|
|
1492
|
-
if (
|
|
1492
|
+
if (_ = this._getDirection(n, t) === "vertical", o = $(m), P("dragOverValid"), b.eventCanceled)
|
|
1493
1493
|
return w;
|
|
1494
1494
|
if (r)
|
|
1495
1495
|
return F = L, N(), this._hideClone(), P("revert"), b.eventCanceled || (me ? L.insertBefore(m, me) : L.appendChild(m)), R(!0);
|
|
1496
1496
|
var W = Un(a, s.draggable);
|
|
1497
|
-
if (!W ||
|
|
1497
|
+
if (!W || Qt(n, _, this) && !W.animated) {
|
|
1498
1498
|
if (W === m)
|
|
1499
1499
|
return R(!1);
|
|
1500
1500
|
if (W && a === n.target && (t = W), t && (l = $(t)), We(L, a, m, o, t, l, n, !!t) !== !1)
|
|
1501
|
-
return N(), W && W.nextSibling ? a.insertBefore(m, W.nextSibling) : a.appendChild(m), F = a,
|
|
1502
|
-
} else if (W &&
|
|
1501
|
+
return N(), W && W.nextSibling ? a.insertBefore(m, W.nextSibling) : a.appendChild(m), F = a, Z(), R(!0);
|
|
1502
|
+
} else if (W && Kt(n, _, this)) {
|
|
1503
1503
|
var de = ke(a, 0, s, !0);
|
|
1504
1504
|
if (de === m)
|
|
1505
1505
|
return R(!1);
|
|
1506
1506
|
if (t = de, l = $(t), We(L, a, m, o, t, l, n, !1) !== !1)
|
|
1507
|
-
return N(), a.insertBefore(m, de), F = a,
|
|
1507
|
+
return N(), a.insertBefore(m, de), F = a, Z(), R(!0);
|
|
1508
1508
|
} else if (t.parentNode === a) {
|
|
1509
1509
|
l = $(t);
|
|
1510
|
-
var K = 0, fe, xe = m.parentNode !== a, U = !
|
|
1511
|
-
|
|
1510
|
+
var K = 0, fe, xe = m.parentNode !== a, U = !Jt(m.animated && m.toRect || o, t.animated && t.toRect || l, _), Ee = _ ? "top" : "left", le = ta(t, "top", "top") || ta(m, "top", "top"), Se = le ? le.scrollTop : void 0;
|
|
1511
|
+
_e !== t && (fe = l[Ee], Pe = !1, Be = !U && s.invertSwap || xe), K = Vt(n, t, l, _, U ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Be, _e === t);
|
|
1512
1512
|
var ee;
|
|
1513
1513
|
if (K !== 0) {
|
|
1514
|
-
var ye =
|
|
1514
|
+
var ye = G(m);
|
|
1515
1515
|
do
|
|
1516
1516
|
ye -= K, ee = F.children[ye];
|
|
1517
1517
|
while (ee && (h(ee, "display") === "none" || ee === C));
|
|
1518
1518
|
}
|
|
1519
1519
|
if (K === 0 || ee === t)
|
|
1520
1520
|
return R(!1);
|
|
1521
|
-
|
|
1521
|
+
_e = t, Ne = K;
|
|
1522
1522
|
var He = t.nextElementSibling, oe = !1;
|
|
1523
1523
|
oe = K === 1;
|
|
1524
1524
|
var Me = We(L, a, m, o, t, l, n, oe);
|
|
1525
1525
|
if (Me !== !1)
|
|
1526
|
-
return (Me === 1 || Me === -1) && (oe = Me === 1), An = !0, setTimeout(
|
|
1526
|
+
return (Me === 1 || Me === -1) && (oe = Me === 1), An = !0, setTimeout(Xt, 30), N(), oe && !He ? a.appendChild(m) : t.parentNode.insertBefore(m, oe ? He : t), le && va(le, 0, Se - le.scrollTop), F = m.parentNode, fe !== void 0 && !Be && (Ge = Math.abs(fe - $(t)[Ee])), Z(), R(!0);
|
|
1527
1527
|
}
|
|
1528
1528
|
if (a.contains(m))
|
|
1529
1529
|
return R(!1);
|
|
@@ -1540,13 +1540,13 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1540
1540
|
},
|
|
1541
1541
|
_onDrop: function(n) {
|
|
1542
1542
|
var a = this.el, t = this.options;
|
|
1543
|
-
if (J =
|
|
1543
|
+
if (J = G(m), re = G(m, t.draggable), B("drop", this, {
|
|
1544
1544
|
evt: n
|
|
1545
|
-
}), F = m && m.parentNode, J =
|
|
1545
|
+
}), F = m && m.parentNode, J = G(m), re = G(m, t.draggable), b.eventCanceled) {
|
|
1546
1546
|
this._nulling();
|
|
1547
1547
|
return;
|
|
1548
1548
|
}
|
|
1549
|
-
|
|
1549
|
+
ve = !1, Be = !1, Pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Mn(this.cloneId), Mn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Fe && h(document.body, "user-select", ""), h(m, "transform", ""), n && (De && (n.cancelable && n.preventDefault(), !t.dropBubble && n.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (L === F || A && A.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), m && (this.nativeDraggable && k(m, "dragend", this), yn(m), m.style["will-change"] = "", De && !ve && q(m, A ? A.options.ghostClass : this.options.ghostClass, !1), q(m, this.options.chosenClass, !1), z({
|
|
1550
1550
|
sortable: this,
|
|
1551
1551
|
name: "unchoose",
|
|
1552
1552
|
toEl: F,
|
|
@@ -1593,7 +1593,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1593
1593
|
}), this.save()))), this._nulling();
|
|
1594
1594
|
},
|
|
1595
1595
|
_nulling: function() {
|
|
1596
|
-
B("nulling", this), L = m = F = C = me = I = Je = se = pe =
|
|
1596
|
+
B("nulling", this), L = m = F = C = me = I = Je = se = pe = Y = De = J = re = Ce = $e = _e = Ne = A = ze = b.dragged = b.ghost = b.clone = b.active = null, Ve.forEach(function(n) {
|
|
1597
1597
|
n.checked = !0;
|
|
1598
1598
|
}), Ve.length = cn = dn = 0;
|
|
1599
1599
|
},
|
|
@@ -1605,7 +1605,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1605
1605
|
break;
|
|
1606
1606
|
case "dragenter":
|
|
1607
1607
|
case "dragover":
|
|
1608
|
-
m && (this._onDragOver(n),
|
|
1608
|
+
m && (this._onDragOver(n), Yt(n));
|
|
1609
1609
|
break;
|
|
1610
1610
|
case "selectstart":
|
|
1611
1611
|
n.preventDefault();
|
|
@@ -1618,7 +1618,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1618
1618
|
*/
|
|
1619
1619
|
toArray: function() {
|
|
1620
1620
|
for (var n = [], a, t = this.el.children, o = 0, l = t.length, r = this.options; o < l; o++)
|
|
1621
|
-
a = t[o], X(a, r.draggable, this.el, !1) && n.push(a.getAttribute(r.dataIdAttr) ||
|
|
1621
|
+
a = t[o], X(a, r.draggable, this.el, !1) && n.push(a.getAttribute(r.dataIdAttr) || nl(a));
|
|
1622
1622
|
return n;
|
|
1623
1623
|
},
|
|
1624
1624
|
/**
|
|
@@ -1661,7 +1661,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1661
1661
|
if (a === void 0)
|
|
1662
1662
|
return t[n];
|
|
1663
1663
|
var o = Ae.modifyOption(this, n, a);
|
|
1664
|
-
typeof o < "u" ? t[n] = o : t[n] = a, n === "group" &&
|
|
1664
|
+
typeof o < "u" ? t[n] = o : t[n] = a, n === "group" && Ea(t);
|
|
1665
1665
|
},
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Destroy
|
|
@@ -1692,7 +1692,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
1694
|
};
|
|
1695
|
-
function
|
|
1695
|
+
function Yt(e) {
|
|
1696
1696
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1697
1697
|
}
|
|
1698
1698
|
function We(e, n, a, t, o, l, r, s) {
|
|
@@ -1705,71 +1705,71 @@ function We(e, n, a, t, o, l, r, s) {
|
|
|
1705
1705
|
function yn(e) {
|
|
1706
1706
|
e.draggable = !1;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Xt() {
|
|
1709
1709
|
An = !1;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1712
|
-
var t = $(ke(a.el, 0, a.options, !0)), o =
|
|
1711
|
+
function Kt(e, n, a) {
|
|
1712
|
+
var t = $(ke(a.el, 0, a.options, !0)), o = wa(a.el, a.options, C), l = 10;
|
|
1713
1713
|
return n ? e.clientX < o.left - l || e.clientY < t.top && e.clientX < t.right : e.clientY < o.top - l || e.clientY < t.bottom && e.clientX < t.left;
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1716
|
-
var t = $(Un(a.el, a.options.draggable)), o =
|
|
1715
|
+
function Qt(e, n, a) {
|
|
1716
|
+
var t = $(Un(a.el, a.options.draggable)), o = wa(a.el, a.options, C), l = 10;
|
|
1717
1717
|
return n ? e.clientX > o.right + l || e.clientY > t.bottom && e.clientX > t.left : e.clientY > o.bottom + l || e.clientX > t.right && e.clientY > t.top;
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function Vt(e, n, a, t, o, l, r, s) {
|
|
1720
1720
|
var f = t ? e.clientY : e.clientX, y = t ? a.height : a.width, u = t ? a.top : a.left, p = t ? a.bottom : a.right, g = !1;
|
|
1721
1721
|
if (!r) {
|
|
1722
|
-
if (s &&
|
|
1722
|
+
if (s && Ge < y * o) {
|
|
1723
1723
|
if (!Pe && (Ne === 1 ? f > u + y * l / 2 : f < p - y * l / 2) && (Pe = !0), Pe)
|
|
1724
1724
|
g = !0;
|
|
1725
|
-
else if (Ne === 1 ? f < u +
|
|
1725
|
+
else if (Ne === 1 ? f < u + Ge : f > p - Ge)
|
|
1726
1726
|
return -Ne;
|
|
1727
1727
|
} else if (f > u + y * (1 - o) / 2 && f < p - y * (1 - o) / 2)
|
|
1728
|
-
return
|
|
1728
|
+
return el(n);
|
|
1729
1729
|
}
|
|
1730
1730
|
return g = g || r, g && (f < u + y * l / 2 || f > p - y * l / 2) ? f > u + y / 2 ? 1 : -1 : 0;
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1733
|
-
return
|
|
1732
|
+
function el(e) {
|
|
1733
|
+
return G(m) < G(e) ? 1 : -1;
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function nl(e) {
|
|
1736
1736
|
for (var n = e.tagName + e.className + e.src + e.href + e.textContent, a = n.length, t = 0; a--; )
|
|
1737
1737
|
t += n.charCodeAt(a);
|
|
1738
1738
|
return t.toString(36);
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function al(e) {
|
|
1741
1741
|
Ve.length = 0;
|
|
1742
1742
|
for (var n = e.getElementsByTagName("input"), a = n.length; a--; ) {
|
|
1743
1743
|
var t = n[a];
|
|
1744
1744
|
t.checked && Ve.push(t);
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function Ze(e) {
|
|
1748
1748
|
return setTimeout(e, 0);
|
|
1749
1749
|
}
|
|
1750
1750
|
function Mn(e) {
|
|
1751
1751
|
return clearTimeout(e);
|
|
1752
1752
|
}
|
|
1753
1753
|
nn && E(document, "touchmove", function(e) {
|
|
1754
|
-
(b.active ||
|
|
1754
|
+
(b.active || ve) && e.cancelable && e.preventDefault();
|
|
1755
1755
|
});
|
|
1756
1756
|
b.utils = {
|
|
1757
1757
|
on: E,
|
|
1758
1758
|
off: k,
|
|
1759
1759
|
css: h,
|
|
1760
|
-
find:
|
|
1760
|
+
find: ba,
|
|
1761
1761
|
is: function(n, a) {
|
|
1762
1762
|
return !!X(n, a, n, !1);
|
|
1763
1763
|
},
|
|
1764
|
-
extend:
|
|
1765
|
-
throttle:
|
|
1764
|
+
extend: At,
|
|
1765
|
+
throttle: _a,
|
|
1766
1766
|
closest: X,
|
|
1767
1767
|
toggleClass: q,
|
|
1768
|
-
clone:
|
|
1769
|
-
index:
|
|
1770
|
-
nextTick:
|
|
1768
|
+
clone: Ca,
|
|
1769
|
+
index: G,
|
|
1770
|
+
nextTick: Ze,
|
|
1771
1771
|
cancelNextTick: Mn,
|
|
1772
|
-
detectDirection:
|
|
1772
|
+
detectDirection: xa,
|
|
1773
1773
|
getChild: ke,
|
|
1774
1774
|
expando: j
|
|
1775
1775
|
};
|
|
@@ -1788,9 +1788,9 @@ b.mount = function() {
|
|
|
1788
1788
|
b.create = function(e, n) {
|
|
1789
1789
|
return new b(e, n);
|
|
1790
1790
|
};
|
|
1791
|
-
b.version =
|
|
1791
|
+
b.version = Pt;
|
|
1792
1792
|
var T = [], Le, zn, Bn = !1, pn, un, en, Ie;
|
|
1793
|
-
function
|
|
1793
|
+
function tl() {
|
|
1794
1794
|
function e() {
|
|
1795
1795
|
this.defaults = {
|
|
1796
1796
|
scroll: !0,
|
|
@@ -1812,7 +1812,7 @@ function nl() {
|
|
|
1812
1812
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1813
1813
|
},
|
|
1814
1814
|
drop: function() {
|
|
1815
|
-
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
1815
|
+
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), sa(), Ye(), Mt();
|
|
1816
1816
|
},
|
|
1817
1817
|
nulling: function() {
|
|
1818
1818
|
en = zn = Le = Bn = Ie = pn = un = null, T.length = 0;
|
|
@@ -1825,13 +1825,13 @@ function nl() {
|
|
|
1825
1825
|
if (en = a, t || this.options.forceAutoScrollFallback || Re || te || Fe) {
|
|
1826
1826
|
mn(a, this.options, s, t);
|
|
1827
1827
|
var f = ce(s, !0);
|
|
1828
|
-
Bn && (!Ie || l !== pn || r !== un) && (Ie &&
|
|
1828
|
+
Bn && (!Ie || l !== pn || r !== un) && (Ie && sa(), Ie = setInterval(function() {
|
|
1829
1829
|
var y = ce(document.elementFromPoint(l, r), !0);
|
|
1830
|
-
y !== f && (f = y,
|
|
1830
|
+
y !== f && (f = y, Ye()), mn(a, o.options, y, t);
|
|
1831
1831
|
}, 10), pn = l, un = r);
|
|
1832
1832
|
} else {
|
|
1833
1833
|
if (!this.options.bubbleScroll || ce(s, !0) === Q()) {
|
|
1834
|
-
|
|
1834
|
+
Ye();
|
|
1835
1835
|
return;
|
|
1836
1836
|
}
|
|
1837
1837
|
mn(a, this.options, ce(s, !1), !1);
|
|
@@ -1842,27 +1842,27 @@ function nl() {
|
|
|
1842
1842
|
initializeByDefault: !0
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function Ye() {
|
|
1846
1846
|
T.forEach(function(e) {
|
|
1847
1847
|
clearInterval(e.pid);
|
|
1848
1848
|
}), T = [];
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function sa() {
|
|
1851
1851
|
clearInterval(Ie);
|
|
1852
1852
|
}
|
|
1853
|
-
var mn =
|
|
1853
|
+
var mn = _a(function(e, n, a, t) {
|
|
1854
1854
|
if (n.scroll) {
|
|
1855
1855
|
var o = (e.touches ? e.touches[0] : e).clientX, l = (e.touches ? e.touches[0] : e).clientY, r = n.scrollSensitivity, s = n.scrollSpeed, f = Q(), y = !1, u;
|
|
1856
|
-
zn !== a && (zn = a,
|
|
1856
|
+
zn !== a && (zn = a, Ye(), Le = n.scroll, u = n.scrollFn, Le === !0 && (Le = ce(a, !0)));
|
|
1857
1857
|
var p = 0, g = Le;
|
|
1858
1858
|
do {
|
|
1859
|
-
var
|
|
1860
|
-
|
|
1861
|
-
var Se = de && (Math.abs(R - o) <= r && Ee +
|
|
1859
|
+
var _ = g, v = $(_), w = v.top, P = v.bottom, N = v.left, R = v.right, Z = v.width, W = v.height, de = void 0, K = void 0, fe = _.scrollWidth, xe = _.scrollHeight, U = h(_), Ee = _.scrollLeft, le = _.scrollTop;
|
|
1860
|
+
_ === f ? (de = Z < fe && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), K = W < xe && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (de = Z < fe && (U.overflowX === "auto" || U.overflowX === "scroll"), K = W < xe && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
1861
|
+
var Se = de && (Math.abs(R - o) <= r && Ee + Z < fe) - (Math.abs(N - o) <= r && !!Ee), ee = K && (Math.abs(P - l) <= r && le + W < xe) - (Math.abs(w - l) <= r && !!le);
|
|
1862
1862
|
if (!T[p])
|
|
1863
1863
|
for (var ye = 0; ye <= p; ye++)
|
|
1864
1864
|
T[ye] || (T[ye] = {});
|
|
1865
|
-
(T[p].vx != Se || T[p].vy != ee || T[p].el !==
|
|
1865
|
+
(T[p].vx != Se || T[p].vy != ee || T[p].el !== _) && (T[p].el = _, T[p].vx = Se, T[p].vy = ee, clearInterval(T[p].pid), (Se != 0 || ee != 0) && (y = !0, T[p].pid = setInterval((function() {
|
|
1866
1866
|
t && this.layer === 0 && b.active._onTouchMove(en);
|
|
1867
1867
|
var He = T[this.layer].vy ? T[this.layer].vy * s : 0, oe = T[this.layer].vx ? T[this.layer].vx * s : 0;
|
|
1868
1868
|
typeof u == "function" && u.call(b.dragged.parentNode[j], oe, He, e, en, T[this.layer].el) !== "continue" || va(T[this.layer].el, oe, He);
|
|
@@ -1872,7 +1872,7 @@ var mn = ba(function(e, n, a, t) {
|
|
|
1872
1872
|
} while (n.bubbleScroll && g !== f && (g = ce(g, !1)));
|
|
1873
1873
|
Bn = y;
|
|
1874
1874
|
}
|
|
1875
|
-
}, 30),
|
|
1875
|
+
}, 30), Oa = function(n) {
|
|
1876
1876
|
var a = n.originalEvent, t = n.putSortable, o = n.dragEl, l = n.activeSortable, r = n.dispatchSortableEvent, s = n.hideGhostForTarget, f = n.unhideGhostForTarget;
|
|
1877
1877
|
if (a) {
|
|
1878
1878
|
var y = t || l;
|
|
@@ -1898,7 +1898,7 @@ qn.prototype = {
|
|
|
1898
1898
|
var o = ke(this.sortable.el, this.startIndex, this.options);
|
|
1899
1899
|
o ? this.sortable.el.insertBefore(a, o) : this.sortable.el.appendChild(a), this.sortable.animateAll(), t && t.animateAll();
|
|
1900
1900
|
},
|
|
1901
|
-
drop:
|
|
1901
|
+
drop: Oa
|
|
1902
1902
|
};
|
|
1903
1903
|
ae(qn, {
|
|
1904
1904
|
pluginName: "revertOnSpill"
|
|
@@ -1910,15 +1910,15 @@ Jn.prototype = {
|
|
|
1910
1910
|
var a = n.dragEl, t = n.putSortable, o = t || this.sortable;
|
|
1911
1911
|
o.captureAnimationState(), a.parentNode && a.parentNode.removeChild(a), o.animateAll();
|
|
1912
1912
|
},
|
|
1913
|
-
drop:
|
|
1913
|
+
drop: Oa
|
|
1914
1914
|
};
|
|
1915
1915
|
ae(Jn, {
|
|
1916
1916
|
pluginName: "removeOnSpill"
|
|
1917
1917
|
});
|
|
1918
|
-
b.mount(new
|
|
1918
|
+
b.mount(new tl());
|
|
1919
1919
|
b.mount(Jn, qn);
|
|
1920
|
-
const
|
|
1921
|
-
var
|
|
1920
|
+
const ll = ':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-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .header .header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .header .header_action{display:flex}.nylas-booking-form-config .header .header_action select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-form-config .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-booking-form-config .content{font-size:15px}}.nylas-booking-form-config .content .additional_fields{display:flex;flex-direction:column;gap:1rem;position:relative;overflow:auto}.nylas-booking-form-config .content .additional_fields.static_fields{margin-bottom:1rem}@media screen and (max-width: 504px){.nylas-booking-form-config .content .additional_fields{gap:0.5rem;padding:0}}.nylas-booking-form-config .content .additional_fields .form-field{border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);padding:1rem;user-select:none;background-color:white;position:relative}.nylas-booking-form-config .content .additional_fields .form-field.highlight{background-color:var(--nylas-base-200)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .dragable{cursor:move}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text{flex:1;text-align:left;padding-left:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text h4{margin:0;font-size:16px;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions{display:flex;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .is-required{color:var(--nylas-base-500);background-color:var(--nylas-base-50);font-weight:600;padding:4px 8px;border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron{display:flex;align-self:center;cursor:pointer}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.open{transform:rotate(90deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.closed{transform:rotate(270deg)}.nylas-booking-form-config .content .additional_fields .form-field span.error{opacity:1;color:var(--nylas-error);margin-top:8px;transition:opacity 0.3s ease-out}.nylas-booking-form-config .content .additional_fields .form-field span.error.fade-out{opacity:0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content{padding:1.5rem 0 0 2.7rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content.hidden{display:none}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs{display:flex;flex-direction:column;gap:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .label-input{padding:0 1rem 0 0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input label{padding:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input input[type=checkbox]{transform:scale(1.3)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container h4{margin:0;font-size:16px;line-height:20px;font-weight:500;padding:0.5rem 0;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button{border:none;background:transparent;height:40px;margin:1rem 0;cursor:pointer;color:var(--nylas-base-800);display:flex;align-items:center;justify-content:space-between}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options{display:flex;flex-direction:column;gap:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:active{color:var(--nylas-primary)}', ol = ll;
|
|
1921
|
+
var il = function(e, n, a, t) {
|
|
1922
1922
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
1923
1923
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1924
1924
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -1930,9 +1930,9 @@ var ll = function(e, n, a, t) {
|
|
|
1930
1930
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1931
1931
|
return Reflect.metadata(e, n);
|
|
1932
1932
|
};
|
|
1933
|
-
const
|
|
1933
|
+
const Da = class {
|
|
1934
1934
|
constructor(e) {
|
|
1935
|
-
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.staticFields = [
|
|
1935
|
+
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "additional-fields", this.additionalFields = void 0, this.selectedLanguage = void 0, this.staticFields = [
|
|
1936
1936
|
{
|
|
1937
1937
|
type: "text",
|
|
1938
1938
|
label: "Your name",
|
|
@@ -1955,7 +1955,7 @@ const Oa = class {
|
|
|
1955
1955
|
fieldLabelKey: "your_email",
|
|
1956
1956
|
order: 1
|
|
1957
1957
|
}
|
|
1958
|
-
], this.
|
|
1958
|
+
], this.formFields = void 0, this.formFieldsOrder = void 0, this.count = 0, this.watchFields = void 0, this.fieldTypes = Kn.map((n) => ({ label: d.t(`nylasBookingFormConfig.fieldType.${n.value}`), value: n.value }));
|
|
1959
1959
|
}
|
|
1960
1960
|
elementNameChangedHandler(e) {
|
|
1961
1961
|
c("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -1990,7 +1990,7 @@ const Oa = class {
|
|
|
1990
1990
|
const a = Object.entries(((r = e == null ? void 0 : e.scheduler) == null ? void 0 : r.additional_fields) || {}).map(([f, y]) => ({ ...y, key: f })) || this.additionalFields || [];
|
|
1991
1991
|
this.formFields = [
|
|
1992
1992
|
...a.sort((f, y) => f.order - y.order).map((f, y) => {
|
|
1993
|
-
const u = Qn.find((
|
|
1993
|
+
const u = Qn.find((_) => _.type === f.type);
|
|
1994
1994
|
if (!u)
|
|
1995
1995
|
return { ...f, isOpen: !1, typeLabel: "Unknown" };
|
|
1996
1996
|
const p = u.label, g = f.order || 0;
|
|
@@ -2019,14 +2019,14 @@ const Oa = class {
|
|
|
2019
2019
|
key: l.key,
|
|
2020
2020
|
default: l.default,
|
|
2021
2021
|
fieldLabelKey: l.fieldLabelKey
|
|
2022
|
-
} })).reduce((l, r) => (l[r.key] = {
|
|
2022
|
+
} })).reduce((l, r) => (r.key && (l[r.key] = {
|
|
2023
2023
|
type: r.type,
|
|
2024
2024
|
required: r.required,
|
|
2025
2025
|
order: r.order,
|
|
2026
2026
|
options: r.options,
|
|
2027
2027
|
label: r.label,
|
|
2028
2028
|
default: r.default
|
|
2029
|
-
}, l), {});
|
|
2029
|
+
}), l), {});
|
|
2030
2030
|
this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(o), this.name), n && this.valueChanged.emit({
|
|
2031
2031
|
value: JSON.stringify(o),
|
|
2032
2032
|
name: this.name
|
|
@@ -2047,7 +2047,7 @@ const Oa = class {
|
|
|
2047
2047
|
nylasFormDropdownChangedHandler(e) {
|
|
2048
2048
|
const { name: n, value: a } = e.detail;
|
|
2049
2049
|
if (n === "add-field") {
|
|
2050
|
-
const t = Qn.find((f) => f.type === a), o = Math.max(...this.formFields.map((f) => f.order)), l = this.formFields.filter((f) => f.type === t.type).map((f) => f.key), r = this.findNextMissingNumber(l), s = { ...t, label: t.label, key: `${t.type}_${t.label.split(" ").join("-")}_${r}`, order: o + 1 };
|
|
2050
|
+
const t = Qn.find((f) => f.type === a), o = Math.max(...this.formFields.map((f) => f.order)), l = this.formFields.filter((f) => f.type === t.type && f.key !== void 0).map((f) => f.key), r = this.findNextMissingNumber(l), s = { ...t, label: t.label, key: `${t.type}_${t.label.split(" ").join("-")}_${r}`, order: o + 1 };
|
|
2051
2051
|
this.formFields = [...this.formFields, s], this.formFieldsChangedHandler(this.formFields);
|
|
2052
2052
|
}
|
|
2053
2053
|
}
|
|
@@ -2081,6 +2081,9 @@ const Oa = class {
|
|
|
2081
2081
|
fieldToggle(e) {
|
|
2082
2082
|
this.formFields = this.formFields.map((n, a) => (e == a && (n.isOpen = !n.isOpen), n)), this.formFieldsChangedHandler(this.formFields);
|
|
2083
2083
|
}
|
|
2084
|
+
staticFieldToggle(e) {
|
|
2085
|
+
this.staticFields = this.staticFields.map((n, a) => (e == a && (n.isOpen = !n.isOpen), n)), this.staticFields = [...this.staticFields];
|
|
2086
|
+
}
|
|
2084
2087
|
fieldRemove(e) {
|
|
2085
2088
|
this.formFields = this.formFields.filter((n, a) => a !== e), this.formFieldsChangedHandler(this.formFields);
|
|
2086
2089
|
}
|
|
@@ -2114,19 +2117,19 @@ const Oa = class {
|
|
|
2114
2117
|
}
|
|
2115
2118
|
render() {
|
|
2116
2119
|
var e;
|
|
2117
|
-
return i(H, { key: "
|
|
2118
|
-
this.
|
|
2120
|
+
return i(H, { key: "abe868d2d79aee1eb882e6a4db594cf195e42433" }, i("div", { key: "03e80ceba265c79bbfb3d8c718da067d1e8e82bd", class: "nylas-booking-form-config", part: "nbfc" }, i("div", { key: "54070858c1e8ae5b1cc488d685d91e6722f66c22", class: "header", part: "nbfc__header" }, i("div", { key: "b23b0b6ad6160e443197bdec6ec3d952cef640e0", class: "header_text" }, i("h3", { key: "91df4b63f66c9d8f14cf965624823ee02325f3c8" }, d.t("nylasBookingFormConfig.headerTitle")), i("p", { key: "844e62f99fae2896bf882a6e3e26ce4b98e2926a" }, d.t("nylasBookingFormConfig.headerSubTitle"))), i("div", { key: "b7887f73501af4bac596b7023ac1bfcff9aa47ed", class: "header_action" }, i("select-dropdown", { key: "9c2532a041b166f43b3df2a4dd9b7070075703b1", name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: this.fieldTypes, withSearch: !1, withChevron: !1, dropdownButtonText: d.t("nylasBookingFormConfig.dropdownButtonText") }, i("span", { key: "f230a48d19eb815efffb3f051212d9713147912a", slot: "select-icon" }, i("plus-icon", { key: "a9eff035c160cfe55dd289d3dae5124bc01af7c2", width: "15", height: "15" }))))), i("div", { key: "8c7a2a2f833e861300206bcf2ee5c2b432abc762", class: "content" }, i("div", { key: "0cb043c132cd84a5c465f371467b50ae9e5281d5", class: "additional_fields static_fields", part: "nbfc__static_fields" }, this.staticFields.map((n, a) => i("div", { class: `form-field draggable ${n.readonly && "fixed"}`, part: "nbfc__form_field", key: a }, i("div", { class: "form-field_header", part: "nbfc__form_field-header" }, i("span", { class: "dragable" }, i("dragable-icon", { width: "24", height: "25" })), i("div", { class: "form-field_header_text" }, i("h4", null, d.t(`nylasBookingFormConfig.fieldLabel.${n.fieldLabelKey}`)), i("p", null, n.typeLabel)), i("div", { class: "form-field_header_actions" }, i("span", { class: "is-required" }, n.required ? d.t("required") : d.t("optional")), i("span", { class: `chevron ${n.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2121
|
+
this.staticFieldToggle(a);
|
|
2119
2122
|
} }, i("chevron-icon", { width: "24", height: "24" })))), i("div", { class: `form-field_content ${!n.isOpen && "hidden"}`, part: "nbfc__form_field-content" }, i("div", { class: "inputs" }, i("input-component", { class: "label-input", name: `${a}`, key: a, label: d.t("nylasBookingFormConfig.label"), required: !1, readOnly: n.readonly, defaultValue: n.label }, i("div", { class: "required-input", slot: "additional-input" }, i("input", { type: "checkbox", name: `required_${n.order}`, id: `required_${n.order}`, onClick: () => {
|
|
2120
2123
|
this.fieldRequired(a);
|
|
2121
|
-
}, checked: n.required, disabled: n.readonly }), i("label", { htmlFor: `required_${n.order}`, "aria-label": "Required" }, d.t("required"))))))))), i("div", { key: "
|
|
2124
|
+
}, checked: n.required, disabled: n.readonly }), i("label", { htmlFor: `required_${n.order}`, "aria-label": "Required" }, d.t("required"))))))))), i("div", { key: "0b0a7010171cae6940ac79f7f1f884b773d110b5", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, (e = this.formFields) == null ? void 0 : e.map((n, a) => i("div", { class: `form-field draggable ${n != null && n.readonly ? "fixed" : ""}`, part: "nbfc__form_field", key: n.key }, i("div", { class: "form-field_header", part: "nbfc__form_field-header" }, i("span", { class: "dragable" }, i("dragable-icon", { width: "24", height: "25" })), i("div", { class: "form-field_header_text" }, i("h4", null, n.label || d.t(`nylasBookingFormConfig.fieldLabel.${n.fieldLabelKey}`)), i("p", null, n.typeLabel)), i("div", { class: "form-field_header_actions" }, i("span", { class: "is-required" }, n.required ? d.t("required") : d.t("optional")), !n.readonly && i("button", { onClick: () => {
|
|
2122
2125
|
const t = this.watchFields.title, o = this.watchFields.description;
|
|
2123
|
-
if (t && t.includes(n.key)) {
|
|
2126
|
+
if (t && n.key && t.includes(n.key)) {
|
|
2124
2127
|
n.error = d.t("nylasBookingFormConfig.fieldInTitleError"), this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields), setTimeout(() => {
|
|
2125
2128
|
n.error = "", this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields);
|
|
2126
2129
|
}, 3e3);
|
|
2127
2130
|
return;
|
|
2128
2131
|
}
|
|
2129
|
-
if (o && o.includes(n.key)) {
|
|
2132
|
+
if (o && n.key && o.includes(n.key)) {
|
|
2130
2133
|
n.error = d.t("nylasBookingFormConfig.fieldInDescriptionError"), this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields), setTimeout(() => {
|
|
2131
2134
|
n.error = "", this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields);
|
|
2132
2135
|
}, 3e3);
|
|
@@ -2160,7 +2163,7 @@ const Oa = class {
|
|
|
2160
2163
|
};
|
|
2161
2164
|
}
|
|
2162
2165
|
};
|
|
2163
|
-
|
|
2166
|
+
il([
|
|
2164
2167
|
D({
|
|
2165
2168
|
name: "nylas-booking-form-config",
|
|
2166
2169
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2172,10 +2175,10 @@ ll([
|
|
|
2172
2175
|
gn("design:type", Function),
|
|
2173
2176
|
gn("design:paramtypes", []),
|
|
2174
2177
|
gn("design:returntype", void 0)
|
|
2175
|
-
],
|
|
2176
|
-
|
|
2177
|
-
const
|
|
2178
|
-
var
|
|
2178
|
+
], Da.prototype, "render", null);
|
|
2179
|
+
Da.style = ol;
|
|
2180
|
+
const rl = ':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-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container span{width:-webkit-fill-available;width:fill-available;width:-moz-available;text-align:end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', sl = rl;
|
|
2181
|
+
var cl = function(e, n, a, t) {
|
|
2179
2182
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2180
2183
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2181
2184
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2187,7 +2190,7 @@ var rl = function(e, n, a, t) {
|
|
|
2187
2190
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2188
2191
|
return Reflect.metadata(e, n);
|
|
2189
2192
|
};
|
|
2190
|
-
const
|
|
2193
|
+
const La = class {
|
|
2191
2194
|
constructor(e) {
|
|
2192
2195
|
var n, a, t;
|
|
2193
2196
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "buffer-time", this.buffer = ((t = (a = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : t.buffer) ?? { before: 0, after: 0 }, this.selectedLanguage = void 0, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after, this.componentLoaded = !1;
|
|
@@ -2276,10 +2279,10 @@ const Da = class {
|
|
|
2276
2279
|
const t = a * 5;
|
|
2277
2280
|
return {
|
|
2278
2281
|
label: t.toString(),
|
|
2279
|
-
value: t
|
|
2282
|
+
value: t.toString()
|
|
2280
2283
|
};
|
|
2281
2284
|
});
|
|
2282
|
-
return i(H, null, i("div", { class: "nylas-buffer-time", part: "nbt" }, i("div", { class: "header", part: "nbt__header" }, i("h3", null, d.t("nylasBufferTime.headerTitle")), i("p", null, d.t("nylasBufferTime.headerSubTitle"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasBufferTime.tooltip.desc"))))), i("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, i("div", { class: "nylas-buffer-time__dropdown" }, i("div", { class: "nylas-buffer-time__row" }, i("label", null, d.t("nylasBufferTime.beforeBufferLabel")), i("div", { class: "dropdown-container" }, this.componentLoaded && i("select-dropdown", { id: "before-buffer-time", withSearch: !1, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: e, defaultSelectedOption: e.find((n) => n.value
|
|
2285
|
+
return i(H, null, i("div", { class: "nylas-buffer-time", part: "nbt" }, i("div", { class: "header", part: "nbt__header" }, i("h3", null, d.t("nylasBufferTime.headerTitle")), i("p", null, d.t("nylasBufferTime.headerSubTitle"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasBufferTime.tooltip.desc"))))), i("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, i("div", { class: "nylas-buffer-time__dropdown" }, i("div", { class: "nylas-buffer-time__row" }, i("label", null, d.t("nylasBufferTime.beforeBufferLabel")), i("div", { class: "dropdown-container" }, this.componentLoaded && i("select-dropdown", { id: "before-buffer-time", withSearch: !1, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: e, defaultSelectedOption: e.find((n) => n.value === this.selectedBeforeBufferTime.toString()) }), i("span", null, d.t("nylasBufferTime.minutesShort")))), i("div", { class: "nylas-buffer-time__row" }, i("label", null, d.t("nylasBufferTime.afterBufferLabel")), i("div", { class: "dropdown-container" }, this.componentLoaded && i("select-dropdown", { id: "after-buffer-time", withSearch: !1, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: e, defaultSelectedOption: e.find((n) => n.value === this.selectedAfterBufferTime.toString()) }), i("span", null, d.t("nylasBufferTime.minutesShort"))))), i("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, i("h4", null, d.t("nylasBufferTime.previewHeader")), this.renderPreview()))));
|
|
2283
2286
|
}
|
|
2284
2287
|
static get formAssociated() {
|
|
2285
2288
|
return !0;
|
|
@@ -2295,7 +2298,7 @@ const Da = class {
|
|
|
2295
2298
|
};
|
|
2296
2299
|
}
|
|
2297
2300
|
};
|
|
2298
|
-
|
|
2301
|
+
cl([
|
|
2299
2302
|
D({
|
|
2300
2303
|
name: "nylas-buffer-time",
|
|
2301
2304
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2313,10 +2316,10 @@ rl([
|
|
|
2313
2316
|
hn("design:type", Function),
|
|
2314
2317
|
hn("design:paramtypes", []),
|
|
2315
2318
|
hn("design:returntype", void 0)
|
|
2316
|
-
],
|
|
2317
|
-
|
|
2318
|
-
const
|
|
2319
|
-
var
|
|
2319
|
+
], La.prototype, "render", null);
|
|
2320
|
+
La.style = sl;
|
|
2321
|
+
const dl = ':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-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:var(--nylas-base-900);font-size:16px;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button--error){border:1px solid var(--nylas-error)}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset;margin-top:-0.5rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', fl = dl;
|
|
2322
|
+
var yl = function(e, n, a, t) {
|
|
2320
2323
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2321
2324
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2322
2325
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2328,7 +2331,7 @@ var dl = function(e, n, a, t) {
|
|
|
2328
2331
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2329
2332
|
return Reflect.metadata(e, n);
|
|
2330
2333
|
};
|
|
2331
|
-
const
|
|
2334
|
+
const Ia = class {
|
|
2332
2335
|
constructor(e) {
|
|
2333
2336
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "calendar", this.currentUser = void 0, this.calendars = void 0, this.defaultSelectedCalendars = [], this.selectedLanguage = void 0, this.selectedCalendars = [], this.error = "";
|
|
2334
2337
|
}
|
|
@@ -2395,7 +2398,7 @@ const La = class {
|
|
|
2395
2398
|
};
|
|
2396
2399
|
}
|
|
2397
2400
|
};
|
|
2398
|
-
|
|
2401
|
+
yl([
|
|
2399
2402
|
D({
|
|
2400
2403
|
name: "nylas-calendar-picker",
|
|
2401
2404
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2413,10 +2416,10 @@ dl([
|
|
|
2413
2416
|
bn("design:type", Function),
|
|
2414
2417
|
bn("design:paramtypes", []),
|
|
2415
2418
|
bn("design:returntype", void 0)
|
|
2416
|
-
],
|
|
2417
|
-
|
|
2418
|
-
const
|
|
2419
|
-
var
|
|
2419
|
+
], Ia.prototype, "render", null);
|
|
2420
|
+
Ia.style = fl;
|
|
2421
|
+
const pl = ':host{--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}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}', ul = pl;
|
|
2422
|
+
var ml = function(e, n, a, t) {
|
|
2420
2423
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2421
2424
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2422
2425
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2424,11 +2427,11 @@ var pl = function(e, n, a, t) {
|
|
|
2424
2427
|
for (var s = e.length - 1; s >= 0; s--)
|
|
2425
2428
|
(r = e[s]) && (l = (o < 3 ? r(l) : o > 3 ? r(n, a, l) : r(n, a)) || l);
|
|
2426
2429
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2427
|
-
},
|
|
2430
|
+
}, _n = function(e, n) {
|
|
2428
2431
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2429
2432
|
return Reflect.metadata(e, n);
|
|
2430
2433
|
};
|
|
2431
|
-
const
|
|
2434
|
+
const Fa = class {
|
|
2432
2435
|
constructor(e) {
|
|
2433
2436
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.cancellationPolicy = void 0, this.name = "cancelation-policy", this.selectedLanguage = void 0, this.message = void 0;
|
|
2434
2437
|
}
|
|
@@ -2475,7 +2478,7 @@ const Ia = class {
|
|
|
2475
2478
|
};
|
|
2476
2479
|
}
|
|
2477
2480
|
};
|
|
2478
|
-
|
|
2481
|
+
ml([
|
|
2479
2482
|
D({
|
|
2480
2483
|
name: "nylas-cancellation-policy",
|
|
2481
2484
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2485,13 +2488,13 @@ pl([
|
|
|
2485
2488
|
eventToProps: {},
|
|
2486
2489
|
fireRegisterEvent: !0
|
|
2487
2490
|
}),
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
],
|
|
2492
|
-
|
|
2493
|
-
const
|
|
2494
|
-
var
|
|
2491
|
+
_n("design:type", Function),
|
|
2492
|
+
_n("design:paramtypes", []),
|
|
2493
|
+
_n("design:returntype", void 0)
|
|
2494
|
+
], Fa.prototype, "render", null);
|
|
2495
|
+
Fa.style = ul;
|
|
2496
|
+
const gl = ':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-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr;border-top:1px solid var(--nylas-base-200);padding-top:1.25rem;margin:0.25rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row span.selected-value{font-weight:500}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container{padding:0 2rem 1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body span.error-message{color:var(--nylas-error)}.nylas-confirmation-email .nylas-confirmation-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}toggle-switch{padding-right:8px}', hl = gl;
|
|
2497
|
+
var bl = function(e, n, a, t) {
|
|
2495
2498
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2496
2499
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2497
2500
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2499,11 +2502,11 @@ var gl = function(e, n, a, t) {
|
|
|
2499
2502
|
for (var s = e.length - 1; s >= 0; s--)
|
|
2500
2503
|
(r = e[s]) && (l = (o < 3 ? r(l) : o > 3 ? r(n, a, l) : r(n, a)) || l);
|
|
2501
2504
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2502
|
-
},
|
|
2505
|
+
}, vn = function(e, n) {
|
|
2503
2506
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2504
2507
|
return Reflect.metadata(e, n);
|
|
2505
2508
|
};
|
|
2506
|
-
const
|
|
2509
|
+
const Ta = class {
|
|
2507
2510
|
constructor(e) {
|
|
2508
2511
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.confirmationEmailTemplate = {}, this.participants = [], this.name = "confirmation-email-template", this.nylasBranding = !0, this.isOpen = !1, this.selectedLanguage = void 0, this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants, this.invalidImageErrorMessage = d.t("nylasConfirmationEmail.error.invalidImageUrl");
|
|
2509
2512
|
}
|
|
@@ -2584,7 +2587,7 @@ const Fa = class {
|
|
|
2584
2587
|
};
|
|
2585
2588
|
}
|
|
2586
2589
|
};
|
|
2587
|
-
|
|
2590
|
+
bl([
|
|
2588
2591
|
D({
|
|
2589
2592
|
name: "nylas-confirmation-email",
|
|
2590
2593
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2600,13 +2603,13 @@ gl([
|
|
|
2600
2603
|
},
|
|
2601
2604
|
fireRegisterEvent: !0
|
|
2602
2605
|
}),
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
],
|
|
2607
|
-
|
|
2608
|
-
const
|
|
2609
|
-
var
|
|
2606
|
+
vn("design:type", Function),
|
|
2607
|
+
vn("design:paramtypes", []),
|
|
2608
|
+
vn("design:returntype", void 0)
|
|
2609
|
+
], Ta.prototype, "render", null);
|
|
2610
|
+
Ta.style = hl;
|
|
2611
|
+
const _l = ':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-connected-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-connected-calendars .header{padding:1rem}.nylas-connected-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-connected-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-connected-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-connected-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-connected-calendars .content .participant-container .participant-title p{margin:0}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-calendar-picker::part(ncp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', vl = _l;
|
|
2612
|
+
var Cl = function(e, n, a, t) {
|
|
2610
2613
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2611
2614
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2612
2615
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2618,7 +2621,7 @@ var vl = function(e, n, a, t) {
|
|
|
2618
2621
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2619
2622
|
return Reflect.metadata(e, n);
|
|
2620
2623
|
};
|
|
2621
|
-
const
|
|
2624
|
+
const $a = class {
|
|
2622
2625
|
constructor(e) {
|
|
2623
2626
|
var n;
|
|
2624
2627
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "connected-calendars", this.selectedConfiguration = void 0, this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedLanguage = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendars = {};
|
|
@@ -2649,18 +2652,18 @@ const Ta = class {
|
|
|
2649
2652
|
if (n) {
|
|
2650
2653
|
const y = e == null ? void 0 : e.filter((p) => n.some((g) => g.email === p.email)), u = e == null ? void 0 : e.filter((p) => !n.some((g) => g.email === p.email));
|
|
2651
2654
|
y == null || y.forEach((p) => {
|
|
2652
|
-
var
|
|
2655
|
+
var v, w, P;
|
|
2653
2656
|
const g = n == null ? void 0 : n.find((N) => N.email === p.email);
|
|
2654
2657
|
if (!g)
|
|
2655
2658
|
return;
|
|
2656
|
-
this.participantDefaultSelectedCalendars[p.email] = ((
|
|
2657
|
-
const
|
|
2659
|
+
this.participantDefaultSelectedCalendars[p.email] = ((v = p.availability) == null ? void 0 : v.calendar_ids) || [];
|
|
2660
|
+
const _ = g.calendars ?? [];
|
|
2658
2661
|
(P = (w = p.availability) == null ? void 0 : w.calendar_ids) == null || P.forEach((N) => {
|
|
2659
|
-
!(
|
|
2660
|
-
}), o[p.email] =
|
|
2662
|
+
!(_ != null && _.some((R) => R.id === N)) && N !== "primary" && _.push({ id: N, name: N });
|
|
2663
|
+
}), o[p.email] = _;
|
|
2661
2664
|
}), t && (u == null || u.forEach((p) => {
|
|
2662
|
-
var g,
|
|
2663
|
-
(g = p == null ? void 0 : p.availability) != null && g.calendar_ids && ((
|
|
2665
|
+
var g, _, v, w;
|
|
2666
|
+
(g = p == null ? void 0 : p.availability) != null && g.calendar_ids && ((v = (_ = p == null ? void 0 : p.availability) == null ? void 0 : _.calendar_ids) == null ? void 0 : v.length) > 0 && !p.is_organizer && (o[p.email] = this.calendars ?? [{ id: "primary", name: p.email }], this.participantDefaultSelectedCalendars[p.email] = ((w = p.availability) == null ? void 0 : w.calendar_ids) || []);
|
|
2664
2667
|
}));
|
|
2665
2668
|
}
|
|
2666
2669
|
return a && (o[a.email] = this.calendars ?? [{ id: "primary", name: a.email }], this.participantDefaultSelectedCalendars[a.email] = ((f = a.availability) == null ? void 0 : f.calendar_ids) || []), o;
|
|
@@ -2747,7 +2750,7 @@ const Ta = class {
|
|
|
2747
2750
|
};
|
|
2748
2751
|
}
|
|
2749
2752
|
};
|
|
2750
|
-
|
|
2753
|
+
Cl([
|
|
2751
2754
|
D({
|
|
2752
2755
|
name: "nylas-connected-calendars",
|
|
2753
2756
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2762,10 +2765,10 @@ vl([
|
|
|
2762
2765
|
Cn("design:type", Function),
|
|
2763
2766
|
Cn("design:paramtypes", []),
|
|
2764
2767
|
Cn("design:returntype", void 0)
|
|
2765
|
-
],
|
|
2766
|
-
|
|
2767
|
-
const
|
|
2768
|
-
var
|
|
2768
|
+
], $a.prototype, "render", null);
|
|
2769
|
+
$a.style = vl;
|
|
2770
|
+
const wl = ':host{display:block;margin:1rem;--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}.nylas-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}', kl = wl;
|
|
2771
|
+
var xl = function(e, n, a, t) {
|
|
2769
2772
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2770
2773
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2771
2774
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2777,7 +2780,7 @@ var wl = function(e, n, a, t) {
|
|
|
2777
2780
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2778
2781
|
return Reflect.metadata(e, n);
|
|
2779
2782
|
};
|
|
2780
|
-
const
|
|
2783
|
+
const Na = class {
|
|
2781
2784
|
constructor(e) {
|
|
2782
2785
|
x(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedLanguage = void 0;
|
|
2783
2786
|
}
|
|
@@ -2794,7 +2797,7 @@ const $a = class {
|
|
|
2794
2797
|
c("nylas-custom-booking-flow", "componentWillLoad");
|
|
2795
2798
|
}
|
|
2796
2799
|
componentDidLoad() {
|
|
2797
|
-
c("nylas-custom-booking-flow", "componentDidLoad"),
|
|
2800
|
+
c("nylas-custom-booking-flow", "componentDidLoad"), ca(["inputs"], this.el);
|
|
2798
2801
|
}
|
|
2799
2802
|
render() {
|
|
2800
2803
|
return i(H, { key: "a06cd3d062db7faf96f368d66866d82956b944a0", part: "ncbflow" }, i("nylas-form-card", { key: "643ad3a1895e12d4272f89ca8d6ecf731ae6008c", exportparts: "nfc__header: ncbflow__header" }, i("h1", { key: "f3651a04ac470da0bc6bb72abf0b9d12bee05c79", slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbflow__title" }, d.t("nylasCustomBookingFlow.headerTitle")), i("div", { key: "4106fd5fd00d2b20c42492712e9343d94388c8c2", slot: "content", class: "nylas-custom-booking-flow__content", part: "ncbflow__content" }, i("slot", { key: "be19881b05f1630948ccdb9bd8018d58645c4c35", name: "inputs" }))));
|
|
@@ -2811,7 +2814,7 @@ const $a = class {
|
|
|
2811
2814
|
};
|
|
2812
2815
|
}
|
|
2813
2816
|
};
|
|
2814
|
-
|
|
2817
|
+
xl([
|
|
2815
2818
|
D({
|
|
2816
2819
|
name: "nylas-custom-booking-flow",
|
|
2817
2820
|
eventToProps: {},
|
|
@@ -2821,10 +2824,10 @@ wl([
|
|
|
2821
2824
|
wn("design:type", Function),
|
|
2822
2825
|
wn("design:paramtypes", []),
|
|
2823
2826
|
wn("design:returntype", void 0)
|
|
2824
|
-
],
|
|
2825
|
-
|
|
2826
|
-
const
|
|
2827
|
-
var
|
|
2827
|
+
], Na.prototype, "render", null);
|
|
2828
|
+
Na.style = kl;
|
|
2829
|
+
const El = ':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-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:16px;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:0;margin-top:1px;color:var(--nylas-base-400);font-weight:500;font-size:24px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon{margin-right:0.25rem;padding:0 0.75rem;height:100%;display:flex;align-items:center;right:0;cursor:pointer;user-select:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon.disabled{cursor:not-allowed}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:hover svg path{fill:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:active svg path{fill:var(--nylas-base-500)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon .copied{display:flex;align-items:center;font-size:0.875rem;gap:0.125rem}', Sl = El;
|
|
2830
|
+
var Hl = function(e, n, a, t) {
|
|
2828
2831
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2829
2832
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2830
2833
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2836,7 +2839,7 @@ var El = function(e, n, a, t) {
|
|
|
2836
2839
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2837
2840
|
return Reflect.metadata(e, n);
|
|
2838
2841
|
};
|
|
2839
|
-
const
|
|
2842
|
+
const Pa = class {
|
|
2840
2843
|
constructor(e) {
|
|
2841
2844
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultUrlSlug = void 0, this.isOpen = !0, this.slugErrorMessage = "", this.name = "custom-event-slug", this.requiresSlug = !1, this.selectedLanguage = void 0, this.urlSlug = void 0, this.focus = !1, this.copied = !1;
|
|
2842
2845
|
}
|
|
@@ -2922,7 +2925,7 @@ const Na = class {
|
|
|
2922
2925
|
};
|
|
2923
2926
|
}
|
|
2924
2927
|
};
|
|
2925
|
-
|
|
2928
|
+
Hl([
|
|
2926
2929
|
D({
|
|
2927
2930
|
name: "nylas-custom-event-slug",
|
|
2928
2931
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2941,10 +2944,10 @@ El([
|
|
|
2941
2944
|
kn("design:type", Function),
|
|
2942
2945
|
kn("design:paramtypes", []),
|
|
2943
2946
|
kn("design:returntype", void 0)
|
|
2944
|
-
],
|
|
2945
|
-
|
|
2946
|
-
const
|
|
2947
|
-
var
|
|
2947
|
+
], Pa.prototype, "render", null);
|
|
2948
|
+
Pa.style = Sl;
|
|
2949
|
+
const Ol = ':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-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}', Dl = Ol;
|
|
2950
|
+
var Ll = function(e, n, a, t) {
|
|
2948
2951
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2949
2952
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2950
2953
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -2956,17 +2959,17 @@ var Ol = function(e, n, a, t) {
|
|
|
2956
2959
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2957
2960
|
return Reflect.metadata(e, n);
|
|
2958
2961
|
};
|
|
2959
|
-
const
|
|
2962
|
+
const Ra = class {
|
|
2960
2963
|
constructor(e) {
|
|
2961
2964
|
var n, a, t, o, l, r;
|
|
2962
|
-
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((a = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : a.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((r = (l = this.selectedConfiguration) == null ? void 0 : l.scheduler) == null ? void 0 : r.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.selectedLanguage = void 0, this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
|
|
2965
|
+
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((a = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : a.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((r = (l = this.selectedConfiguration) == null ? void 0 : l.scheduler) == null ? void 0 : r.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.selectedLanguage = void 0, this.showSettings = ["allowGuestsToInvite", "hideCancellationOptions", "hideReschedulingOptions"], this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
|
|
2963
2966
|
}
|
|
2964
2967
|
elementNameChangedHandler(e) {
|
|
2965
2968
|
c("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
2966
2969
|
}
|
|
2967
2970
|
selectedConfigurationChangedHandler(e) {
|
|
2968
2971
|
var n, a, t;
|
|
2969
|
-
c("nylas-customize-booking-settings", "selectedConfigurationChangedHandler", e), this.allowGuestsToInvite = !((n = e == null ? void 0 : e.scheduler) != null && n.hide_additional_guests), this.hideCancellationOptions = ((a = e == null ? void 0 : e.scheduler) == null ? void 0 : a.hide_cancellation_options) ?? !1, this.hideReschedulingOptions = ((t = e == null ? void 0 : e.scheduler) == null ? void 0 : t.hide_rescheduling_options) ?? !1;
|
|
2972
|
+
c("nylas-customize-booking-settings", "selectedConfigurationChangedHandler", e), this.allowGuestsToInvite = !((n = e == null ? void 0 : e.scheduler) != null && n.hide_additional_guests), this.hideCancellationOptions = ((a = e == null ? void 0 : e.scheduler) == null ? void 0 : a.hide_cancellation_options) ?? !1, this.hideReschedulingOptions = ((t = e == null ? void 0 : e.scheduler) == null ? void 0 : t.hide_rescheduling_options) ?? !1, this.handleSettingValues(!1);
|
|
2970
2973
|
}
|
|
2971
2974
|
selectedLanguageChangedHandler(e, n) {
|
|
2972
2975
|
e !== n && d.changeLanguage(e);
|
|
@@ -2981,7 +2984,7 @@ const Pa = class {
|
|
|
2981
2984
|
c("nylas-customize-booking-settings", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
2982
2985
|
}
|
|
2983
2986
|
componentDidLoad() {
|
|
2984
|
-
c("nylas-customize-booking-settings", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.allowGuestsToInvite = !this.defaultHideAdditionalGuests, this.hideCancellationOptions = this.defaultHideCancellationOptions, this.hideReschedulingOptions = this.defaultHideReschedulingOptions);
|
|
2987
|
+
c("nylas-customize-booking-settings", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.allowGuestsToInvite = !this.defaultHideAdditionalGuests, this.hideCancellationOptions = this.defaultHideCancellationOptions, this.hideReschedulingOptions = this.defaultHideReschedulingOptions, this.handleSettingValues(!1));
|
|
2985
2988
|
}
|
|
2986
2989
|
componentWillUpdate() {
|
|
2987
2990
|
c("nylas-customize-booking-settings", "componentWillUpdate");
|
|
@@ -3008,22 +3011,28 @@ const Pa = class {
|
|
|
3008
3011
|
this.hideReschedulingOptions = a;
|
|
3009
3012
|
break;
|
|
3010
3013
|
}
|
|
3011
|
-
this.
|
|
3014
|
+
this.handleSettingValues();
|
|
3015
|
+
}
|
|
3016
|
+
handleSettingValues(e = !0) {
|
|
3017
|
+
e && this.valueChanged.emit({
|
|
3012
3018
|
value: JSON.stringify({
|
|
3013
|
-
additionalGuestsHidden: !this.allowGuestsToInvite,
|
|
3019
|
+
additionalGuestsHidden: this.showSettings.includes("allowGuestsToInvite") ? !this.allowGuestsToInvite : void 0,
|
|
3014
3020
|
hideCancellationOptions: this.hideCancellationOptions,
|
|
3015
3021
|
hideReschedulingOptions: this.hideReschedulingOptions
|
|
3016
3022
|
}),
|
|
3017
3023
|
name: this.name
|
|
3018
|
-
}), this.internals.setFormValue(JSON.stringify({
|
|
3019
|
-
additionalGuestsHidden: !this.allowGuestsToInvite,
|
|
3024
|
+
}), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify({
|
|
3025
|
+
additionalGuestsHidden: this.showSettings.includes("allowGuestsToInvite") ? !this.allowGuestsToInvite : void 0,
|
|
3020
3026
|
hideCancellationOptions: this.hideCancellationOptions,
|
|
3021
3027
|
hideReschedulingOptions: this.hideReschedulingOptions
|
|
3022
3028
|
}), this.name);
|
|
3023
3029
|
}
|
|
3030
|
+
get isInternalsAvailable() {
|
|
3031
|
+
return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
|
|
3032
|
+
}
|
|
3024
3033
|
render() {
|
|
3025
|
-
const e = typeof this.hideCancellationOptions == "boolean" && typeof this.hideReschedulingOptions == "boolean" && typeof this.allowGuestsToInvite == "boolean";
|
|
3026
|
-
return i(H, { key: "
|
|
3034
|
+
const e = typeof this.hideCancellationOptions == "boolean" && typeof this.hideReschedulingOptions == "boolean" && typeof this.allowGuestsToInvite == "boolean", n = this.showSettings.includes("allowGuestsToInvite");
|
|
3035
|
+
return i(H, { key: "ed303031ab949448e16a0bb9f06a8cb4f4a4c5fb" }, e && i("div", { class: "nylas-customize-booking-settings", part: "ncbs" }, i("div", { class: "header", part: "ncbs__header" }, i("h3", null, d.t("nylasCustomizeBookingSettings.headerTitle")), i("p", null, d.t("nylasCustomizeBookingSettings.headerSubTitle"))), i("div", { class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, n && i("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, i("checkbox-component", { name: "hide_additional_guests", label: d.t("nylasCustomizeBookingSettings.allowGuests.label"), checked: this.allowGuestsToInvite }, i("span", { slot: "label", class: "label" }, i("p", { class: "label-contents" }, d.t("nylasCustomizeBookingSettings.allowGuests.label", { interpolation: { escapeValue: !1, escape: (a) => `${a}`, useRawValueToEscape: !0 } }))))), i("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, i("checkbox-component", { name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, i("span", { slot: "label", class: "label" }, i("p", { class: "label-contents" }, d.t("nylasCustomizeBookingSettings.hideReschedule.label")), i("tooltip-component", { id: "reschedule" }, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasCustomizeBookingSettings.hideReschedule.tooltip.desc")))))), i("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, i("checkbox-component", { name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, i("span", { slot: "label", class: "label" }, i("p", { class: "label-contents" }, d.t("nylasCustomizeBookingSettings.hideCancel.label")), i("tooltip-component", { id: "cancel" }, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasCustomizeBookingSettings.hideCancel.tooltip.desc")))))))));
|
|
3027
3036
|
}
|
|
3028
3037
|
static get formAssociated() {
|
|
3029
3038
|
return !0;
|
|
@@ -3039,7 +3048,7 @@ const Pa = class {
|
|
|
3039
3048
|
};
|
|
3040
3049
|
}
|
|
3041
3050
|
};
|
|
3042
|
-
|
|
3051
|
+
Ll([
|
|
3043
3052
|
D({
|
|
3044
3053
|
name: "nylas-customize-booking-settings",
|
|
3045
3054
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3051,10 +3060,10 @@ Ol([
|
|
|
3051
3060
|
xn("design:type", Function),
|
|
3052
3061
|
xn("design:paramtypes", []),
|
|
3053
3062
|
xn("design:returntype", void 0)
|
|
3054
|
-
],
|
|
3055
|
-
|
|
3056
|
-
const
|
|
3057
|
-
var
|
|
3063
|
+
], Ra.prototype, "render", null);
|
|
3064
|
+
Ra.style = Dl;
|
|
3065
|
+
const Il = ':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-disable-emails{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);margin:1rem}.header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.header .drawer-toggle{display:flex;gap:24px;align-items:center}.header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.header .drawer-toggle .chevron:hover,.header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.header .drawer-toggle .chevron.open{transform:rotate(90deg)}.header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.toggle{display:flex;align-items:center;justify-content:space-between;padding:0;margin:16px}.toggle label{display:inline-flex;align-items:center;gap:8px}.toggle toggle-switch{margin-right:12px}.toggle select-dropdown{width:auto}', Fl = Il;
|
|
3066
|
+
var Tl = function(e, n, a, t) {
|
|
3058
3067
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3059
3068
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3060
3069
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3066,9 +3075,9 @@ var Il = function(e, n, a, t) {
|
|
|
3066
3075
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3067
3076
|
return Reflect.metadata(e, n);
|
|
3068
3077
|
};
|
|
3069
|
-
const
|
|
3078
|
+
const Aa = class {
|
|
3070
3079
|
constructor(e) {
|
|
3071
|
-
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "disable-emails", this.selectedLanguage = void 0;
|
|
3080
|
+
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "disable-emails", this.selectedLanguage = void 0, this.organizerLocale = this.selectedLanguage || "en", this.disableEmails = !1;
|
|
3072
3081
|
}
|
|
3073
3082
|
connectedCallback() {
|
|
3074
3083
|
c("nylas-disable-emails", "connectedCallback");
|
|
@@ -3080,7 +3089,12 @@ const Ra = class {
|
|
|
3080
3089
|
c("nylas-disable-emails", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
3081
3090
|
}
|
|
3082
3091
|
componentDidLoad() {
|
|
3092
|
+
var t, o, l, r, s, f, y, u;
|
|
3083
3093
|
c("nylas-disable-emails", "componentDidLoad");
|
|
3094
|
+
const e = ((l = (o = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : o.email_template) == null ? void 0 : l.organizer_locale) || this.selectedLanguage || "en";
|
|
3095
|
+
this.organizerLocale = e;
|
|
3096
|
+
const a = ((r = this.selectedConfiguration) == null ? void 0 : r.group_booking) !== void 0 ? (f = (s = this.selectedConfiguration) == null ? void 0 : s.group_booking) == null ? void 0 : f.disable_emails : (u = (y = this.selectedConfiguration) == null ? void 0 : y.event_booking) == null ? void 0 : u.disable_emails;
|
|
3097
|
+
this.disableEmails = a || !1, this.handleSettingValue(!1);
|
|
3084
3098
|
}
|
|
3085
3099
|
elementNameChangedHandler(e) {
|
|
3086
3100
|
c("nylas-disable-emails", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3088,14 +3102,45 @@ const Ra = class {
|
|
|
3088
3102
|
selectedLanguageChangedHandler(e, n) {
|
|
3089
3103
|
e !== n && d.changeLanguage(e);
|
|
3090
3104
|
}
|
|
3105
|
+
selectedConfigurationChangedHandler(e, n) {
|
|
3106
|
+
var o, l, r, s;
|
|
3107
|
+
if (e === n)
|
|
3108
|
+
return;
|
|
3109
|
+
this.organizerLocale = ((l = (o = e.scheduler) == null ? void 0 : o.email_template) == null ? void 0 : l.organizer_locale) || this.selectedLanguage || "en", this.handleSettingValue(!1);
|
|
3110
|
+
const t = (e == null ? void 0 : e.group_booking) !== void 0 ? (r = e == null ? void 0 : e.group_booking) == null ? void 0 : r.disable_emails : (s = e == null ? void 0 : e.event_booking) == null ? void 0 : s.disable_emails;
|
|
3111
|
+
this.disableEmails = t || !1, this.handleSettingValue(!1);
|
|
3112
|
+
}
|
|
3091
3113
|
nyalsFormSwitchToggledHandler(e) {
|
|
3092
|
-
c("nylas-confirmation-email", "nyalsFormSwitchToggledHandler", e.detail)
|
|
3114
|
+
c("nylas-confirmation-email", "nyalsFormSwitchToggledHandler", e.detail);
|
|
3093
3115
|
const { checked: n } = e.detail;
|
|
3094
|
-
e.detail.name === "disable-emails" && (this.
|
|
3116
|
+
e.detail.name === "disable-emails" && (this.disableEmails = !n, this.handleSettingValue());
|
|
3117
|
+
}
|
|
3118
|
+
nylasFormDropdownChangedHandler(e) {
|
|
3119
|
+
const { name: n, value: a } = e.detail;
|
|
3120
|
+
if (n === "organizer-locale") {
|
|
3121
|
+
const t = Va[a];
|
|
3122
|
+
this.organizerLocale = t, this.handleSettingValue();
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
handleSettingValue(e = !0) {
|
|
3126
|
+
e && this.valueChanged.emit({
|
|
3127
|
+
value: JSON.stringify({
|
|
3128
|
+
disableEmails: this.disableEmails,
|
|
3129
|
+
organizerLocale: this.organizerLocale
|
|
3130
|
+
}),
|
|
3131
|
+
name: this.name
|
|
3132
|
+
}), this.internals.setFormValue(JSON.stringify({
|
|
3133
|
+
disableEmails: this.disableEmails,
|
|
3134
|
+
organizerLocale: this.organizerLocale
|
|
3135
|
+
}), this.name);
|
|
3095
3136
|
}
|
|
3096
3137
|
render() {
|
|
3097
|
-
var
|
|
3098
|
-
|
|
3138
|
+
var t, o, l, r, s;
|
|
3139
|
+
const e = Object.keys(Vn).map((f) => ({
|
|
3140
|
+
label: Vn[f],
|
|
3141
|
+
value: f
|
|
3142
|
+
})), a = ((t = this.selectedConfiguration) == null ? void 0 : t.group_booking) !== void 0 ? (l = (o = this.selectedConfiguration) == null ? void 0 : o.group_booking) == null ? void 0 : l.disable_emails : (s = (r = this.selectedConfiguration) == null ? void 0 : r.event_booking) == null ? void 0 : s.disable_emails;
|
|
3143
|
+
return i(H, { key: "447e36ee3e2429ac7d7abe98ce2696edec046663" }, i("div", { key: "cea5ae7612018a2867f5b485d2b7c2af0ce87a4a", class: "nylas-disable-emails", part: "nde" }, i("div", { key: "889ec728e012e5ca32abcf6eb7c590b39fcc3c57", class: "header", part: "nde__header" }, i("div", { key: "f26465c44ffdc522d798a9f11bfe5c25cd721af2" }, i("h3", { key: "4aad761b72c67848a22ac325f6cfeebded566d5b" }, d.t("eventCommunicationsTitle")), i("p", { key: "976ab2de26e6732b09b0555afb7c15e09073b846" }, d.t("eventCommunicationsDescription")))), i("div", { key: "9ea33ddd8a49f0e9df5959bf70e96bbc28f8b7d6", class: "toggle", part: "nde__toggle" }, i("label", { key: "48dc1977081b1e10a9b5f22adc9782c210dca245" }, d.t("nylasConfirmationEmail.confirmationEmail.label"), i("span", { key: "12e9839514485ef0142cd5b410130b8c91fb0212", class: "label-icon" }, i("tooltip-component", { key: "66154e17cb06979105587383454c602fecc177ec" }, i("info-icon", { key: "9b1b61df89f25236842b7feaecce3e014eba0a1b", slot: "tooltip-icon" }), i("span", { key: "034487730f00e400ce498b95ee6210bee06eba76", slot: "tooltip-content" }, " ", d.t("nylasConfirmationEmail.confirmationEmail.tooltip.desc"))))), i("toggle-switch", { key: "74e27fe88241ea75e862881383813261333783dc", exportparts: "ts_label: nde__toggle-label, ts_input: nde_toggle-input, ts_slider: nde_toggle-slider", name: "disable-emails", checked: !a })), i("div", { key: "a2666a29dfe272e38ed11f9ff31369cb1dbe3354", class: "toggle", part: "nde__toggle" }, i("label", { key: "d45044cd530c7899732ebf2e408a2adf07773c70" }, d.t("nylasConfirmationEmail.confirmationEmail.language"), i("span", { key: "c21271bbe8b2eb0d32e4dcaaa889d6d0a38a96e4", class: "label-icon" }, i("tooltip-component", { key: "8fa27bf5c088fd2723ce4c16f2d91fe0eaf4c290" }, i("info-icon", { key: "9dc6051e7f6767ca5a06469a39446efd594603f6", slot: "tooltip-icon" }), i("span", { key: "2c73279e322c2b750bf7c68c64d304c2877d79fe", slot: "tooltip-content" }, " ", d.t("nylasConfirmationEmail.confirmationEmail.tooltip.language"))))), i("select-dropdown", { key: "81b49dfee7917074e2be43d24a55a5aa4422bc4e", name: "organizer-locale", options: e, withChevron: !1, defaultSelectedOption: e.find((f) => f.value == this.organizerLocale), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, i("span", { key: "86c4423a47d1edc2630f3882126e2ddbff0c73a5", slot: "select-icon" }, i("translate-icon", { key: "75baac74c2c084e43fa66ffe5298a39ce53a4695", width: "20", height: "20" }))))));
|
|
3099
3144
|
}
|
|
3100
3145
|
static get formAssociated() {
|
|
3101
3146
|
return !0;
|
|
@@ -3106,11 +3151,12 @@ const Ra = class {
|
|
|
3106
3151
|
static get watchers() {
|
|
3107
3152
|
return {
|
|
3108
3153
|
name: ["elementNameChangedHandler"],
|
|
3109
|
-
selectedLanguage: ["selectedLanguageChangedHandler"]
|
|
3154
|
+
selectedLanguage: ["selectedLanguageChangedHandler"],
|
|
3155
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"]
|
|
3110
3156
|
};
|
|
3111
3157
|
}
|
|
3112
3158
|
};
|
|
3113
|
-
|
|
3159
|
+
Tl([
|
|
3114
3160
|
D({
|
|
3115
3161
|
name: "nylas-disable-emails",
|
|
3116
3162
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3128,10 +3174,10 @@ Il([
|
|
|
3128
3174
|
En("design:type", Function),
|
|
3129
3175
|
En("design:paramtypes", []),
|
|
3130
3176
|
En("design:returntype", void 0)
|
|
3131
|
-
],
|
|
3132
|
-
|
|
3133
|
-
const
|
|
3134
|
-
var
|
|
3177
|
+
], Aa.prototype, "render", null);
|
|
3178
|
+
Aa.style = Fl;
|
|
3179
|
+
const $l = ':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}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__error-container{max-height:0;opacity:0;overflow:hidden;transition:max-height 0.3s ease, opacity 0.3s ease}.nylas-event-duration__error-container.visible{max-height:20px;opacity:1}.nylas-event-duration__error-container .nylas-event-duration__error{color:var(--nylas-error);font-family:var(--nylas-font-family);font-size:12px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper input-dropdown.error::part(id_dropdown-input){border:1px solid var(--nylas-error)}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Nl = $l;
|
|
3180
|
+
var Pl = function(e, n, a, t) {
|
|
3135
3181
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3136
3182
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3137
3183
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3143,13 +3189,13 @@ var $l = function(e, n, a, t) {
|
|
|
3143
3189
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3144
3190
|
return Reflect.metadata(e, n);
|
|
3145
3191
|
};
|
|
3146
|
-
const
|
|
3192
|
+
const Ma = class {
|
|
3147
3193
|
constructor(e) {
|
|
3148
3194
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "duration", this.eventDurationMinutes = void 0, this.selectedLanguage = void 0, this.duration = this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = void 0, this.durationIncrement = void 0, this.error = "", this.durationMinutesOptions = [
|
|
3149
|
-
{ value: 15, label: "15" },
|
|
3150
|
-
{ value: 30, label: "30" },
|
|
3151
|
-
{ value: 45, label: "45" },
|
|
3152
|
-
{ value: 60, label: "60" }
|
|
3195
|
+
{ value: 15 .toString(), label: "15" },
|
|
3196
|
+
{ value: 30 .toString(), label: "30" },
|
|
3197
|
+
{ value: 45 .toString(), label: "45" },
|
|
3198
|
+
{ value: 60 .toString(), label: "60" }
|
|
3153
3199
|
];
|
|
3154
3200
|
}
|
|
3155
3201
|
elementNameChangedHandler(e) {
|
|
@@ -3180,11 +3226,11 @@ const Aa = class {
|
|
|
3180
3226
|
}
|
|
3181
3227
|
setDurationMintueOptions() {
|
|
3182
3228
|
return this.durationIncrement === 1 ? this.durationMinutesOptions = [
|
|
3183
|
-
{ value: 15, label: "15" },
|
|
3184
|
-
{ value: 30, label: "30" },
|
|
3185
|
-
{ value: 45, label: "45" },
|
|
3186
|
-
{ value: 60, label: "60" }
|
|
3187
|
-
] : this.durationMinutesOptions = Array.from({ length: 23 }, (e, n) => ({ value: n + 1, label: (n + 1).toString() })), this.durationMinutesOptions;
|
|
3229
|
+
{ value: 15 .toString(), label: "15" },
|
|
3230
|
+
{ value: 30 .toString(), label: "30" },
|
|
3231
|
+
{ value: 45 .toString(), label: "45" },
|
|
3232
|
+
{ value: 60 .toString(), label: "60" }
|
|
3233
|
+
] : this.durationMinutesOptions = Array.from({ length: 23 }, (e, n) => ({ value: (n + 1).toString(), label: (n + 1).toString() })), this.durationMinutesOptions;
|
|
3188
3234
|
}
|
|
3189
3235
|
validateDuration() {
|
|
3190
3236
|
return this.durationMinutes % 5 !== 0 ? (this.error = d.t("nylasEventDuration.error.durationMustBeMultipleOf5"), this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, this.error)) : this.durationMinutes <= 0 ? (this.error = d.t("nylasEventDuration.error.durationMustBeGreaterThan0"), this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, this.error)) : (this.error = "", this.isInternalsAvailable && this.internals.setValidity({})), this.error;
|
|
@@ -3192,19 +3238,19 @@ const Aa = class {
|
|
|
3192
3238
|
nylasFormDropdownChangedHandler(e) {
|
|
3193
3239
|
c("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
3194
3240
|
const { value: n } = e.detail;
|
|
3195
|
-
this.durationIncrement = parseInt(n), this.durationIncrement === 1 ? this.duration = 60 : this.duration = 1, this.setDurationMintueOptions(), this.durationMinutes = this.duration * this.durationIncrement, this.validateDuration() === "" && (this.isInternalsAvailable && this.internals.setFormValue(this.durationMinutes.toString(), this.name), this.valueChanged.emit({ value: this.durationMinutes.toString(), name: this.name }));
|
|
3241
|
+
this.durationIncrement = parseInt(n.toString()), this.durationIncrement === 1 ? this.duration = 60 : this.duration = 1, this.setDurationMintueOptions(), this.durationMinutes = this.duration * this.durationIncrement, this.validateDuration() === "" && (this.isInternalsAvailable && this.internals.setFormValue(this.durationMinutes.toString(), this.name), this.valueChanged.emit({ value: this.durationMinutes.toString(), name: this.name }));
|
|
3196
3242
|
}
|
|
3197
3243
|
inputOptionChangedHandler(e) {
|
|
3198
3244
|
c("nylas-calendar-picker", "inputOptionChangedHandler", e.detail);
|
|
3199
3245
|
const { value: n } = e.detail;
|
|
3200
|
-
this.duration = n, this.durationMinutes = this.duration * this.durationIncrement,
|
|
3246
|
+
this.duration = parseFloat(n.toString()), this.durationMinutes = this.duration * this.durationIncrement, this.validateDuration() === "" && (this.isInternalsAvailable && this.internals.setFormValue(this.durationMinutes.toString(), this.name), this.valueChanged.emit({ value: this.durationMinutes.toString(), name: this.name }));
|
|
3201
3247
|
}
|
|
3202
3248
|
render() {
|
|
3203
3249
|
const e = [
|
|
3204
|
-
{ value: 1, label: d.t("timeDuration", { context: "minute" }) },
|
|
3205
|
-
{ value: 60, label: d.t("timeDuration", { context: "hour" }) }
|
|
3250
|
+
{ value: 1 .toString(), label: d.t("timeDuration", { context: "minute" }) },
|
|
3251
|
+
{ value: 60 .toString(), label: d.t("timeDuration", { context: "hour" }) }
|
|
3206
3252
|
];
|
|
3207
|
-
return i(H, { key: "
|
|
3253
|
+
return i(H, { key: "291d5aada4656f1e7a3ad639459090a164c667cd" }, i("div", { key: "389ed738c72f9af0b2413360ca30048a903fe834", class: "nylas-event-duration", part: "ned" }, i("label", { key: "3ab5ae91a80a98386cd77ffc2ed9bee1773e2cce", htmlFor: "duration" }, d.t("nylasEventDuration.headerTitle"), i("span", { key: "a3eb28826f0237e227c6b9c4fbbbbb96544df143", class: "required" }, "*")), i("div", { key: "48e6f8aebb8f14fbe0ff74a600c1d06f0b65d2b4", class: "nylas-event-duration__wrapper" }, i("input-dropdown", { key: "4502e6a0eea47789edb136886dc0de048893b639", class: this.error ? "error" : "", name: "event-duration", options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find((n) => n.value === this.duration.toString()) }), this.durationIncrement && i("select-dropdown", { name: "event-duration", options: e, pluralizedLabel: this.duration > 1 ? d.t(`time.${this.durationIncrement === 60 ? "hours" : "minutes"}`) : d.t(`time.${this.durationIncrement === 60 ? "hour" : "minute"}`), exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: e.find((n) => n.value === this.durationIncrement.toString()), withSearch: !1 })), i("div", { key: "f847e873066be7c174f7c5eea94e4cdc473d1ecd", class: `nylas-event-duration__error-container ${this.error ? "visible" : ""}`, part: "ned__error-container" }, i("div", { key: "7cac0c1055ce71dd4de9cf08558d74c051527eb5", class: "nylas-event-duration__error", part: "ned__error" }, this.error))));
|
|
3208
3254
|
}
|
|
3209
3255
|
static get formAssociated() {
|
|
3210
3256
|
return !0;
|
|
@@ -3220,7 +3266,7 @@ const Aa = class {
|
|
|
3220
3266
|
};
|
|
3221
3267
|
}
|
|
3222
3268
|
};
|
|
3223
|
-
|
|
3269
|
+
Pl([
|
|
3224
3270
|
D({
|
|
3225
3271
|
name: "nylas-event-duration",
|
|
3226
3272
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3233,10 +3279,10 @@ $l([
|
|
|
3233
3279
|
Sn("design:type", Function),
|
|
3234
3280
|
Sn("design:paramtypes", []),
|
|
3235
3281
|
Sn("design:returntype", void 0)
|
|
3236
|
-
],
|
|
3237
|
-
|
|
3238
|
-
const
|
|
3239
|
-
var
|
|
3282
|
+
], Ma.prototype, "render", null);
|
|
3283
|
+
Ma.style = Nl;
|
|
3284
|
+
const Rl = ':host{display:block;margin:1rem;--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}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', Al = Rl;
|
|
3285
|
+
var Ml = function(e, n, a, t) {
|
|
3240
3286
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3241
3287
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3242
3288
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3248,7 +3294,7 @@ var Rl = function(e, n, a, t) {
|
|
|
3248
3294
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3249
3295
|
return Reflect.metadata(e, n);
|
|
3250
3296
|
};
|
|
3251
|
-
const
|
|
3297
|
+
const za = class {
|
|
3252
3298
|
constructor(e) {
|
|
3253
3299
|
x(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedLanguage = void 0;
|
|
3254
3300
|
}
|
|
@@ -3262,13 +3308,13 @@ const Ma = class {
|
|
|
3262
3308
|
c("nylas-event-limits", "componentWillLoad");
|
|
3263
3309
|
}
|
|
3264
3310
|
componentDidLoad() {
|
|
3265
|
-
c("nylas-event-limits", "componentDidLoad"),
|
|
3311
|
+
c("nylas-event-limits", "componentDidLoad"), ca(["inputs"], this.el);
|
|
3266
3312
|
}
|
|
3267
3313
|
disconnectedCallback() {
|
|
3268
3314
|
c("nylas-event-limits", "disconnectedCallback");
|
|
3269
3315
|
}
|
|
3270
3316
|
render() {
|
|
3271
|
-
return i(H, { key: "
|
|
3317
|
+
return i(H, { key: "8027d04da926e71fc27dd06fd52c4b3d190ee9f2" }, i("nylas-form-card", { key: "e517b9cc6ba5b5ac369eaff83827cb965fdd06f0", exportparts: "nfc__header: nel__header" }, i("h1", { key: "b29de508d80091dacf7086e27fe3bb33d758d424", slot: "header-title", class: "nylas-event-limits__title" }, d.t("nylasEventLimits.headerTitle")), i("div", { key: "eccacf56f1af5142f678ec0a252e759a43194276", slot: "content", class: "nylas-event-limits__content" }, i("slot", { key: "826e2817e7d087bea95fb2e8bba2ecc414ba19be", name: "inputs" }))));
|
|
3272
3318
|
}
|
|
3273
3319
|
static get formAssociated() {
|
|
3274
3320
|
return !0;
|
|
@@ -3282,7 +3328,7 @@ const Ma = class {
|
|
|
3282
3328
|
};
|
|
3283
3329
|
}
|
|
3284
3330
|
};
|
|
3285
|
-
|
|
3331
|
+
Ml([
|
|
3286
3332
|
D({
|
|
3287
3333
|
name: "nylas-event-limits",
|
|
3288
3334
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
|
|
@@ -3292,10 +3338,10 @@ Rl([
|
|
|
3292
3338
|
Hn("design:type", Function),
|
|
3293
3339
|
Hn("design:paramtypes", []),
|
|
3294
3340
|
Hn("design:returntype", void 0)
|
|
3295
|
-
],
|
|
3296
|
-
|
|
3297
|
-
const
|
|
3298
|
-
var
|
|
3341
|
+
], za.prototype, "render", null);
|
|
3342
|
+
za.style = Al;
|
|
3343
|
+
const zl = ':host{--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}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Bl = zl;
|
|
3344
|
+
var jl = function(e, n, a, t) {
|
|
3299
3345
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3300
3346
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3301
3347
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3307,7 +3353,7 @@ var zl = function(e, n, a, t) {
|
|
|
3307
3353
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3308
3354
|
return Reflect.metadata(e, n);
|
|
3309
3355
|
};
|
|
3310
|
-
const
|
|
3356
|
+
const Ba = class {
|
|
3311
3357
|
constructor(e) {
|
|
3312
3358
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.availableDaysInFuture = void 0, this.name = "limit-future-bookings", this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
3313
3359
|
}
|
|
@@ -3365,7 +3411,7 @@ const za = class {
|
|
|
3365
3411
|
};
|
|
3366
3412
|
}
|
|
3367
3413
|
};
|
|
3368
|
-
|
|
3414
|
+
jl([
|
|
3369
3415
|
D({
|
|
3370
3416
|
name: "nylas-limit-future-bookings",
|
|
3371
3417
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3378,10 +3424,10 @@ zl([
|
|
|
3378
3424
|
On("design:type", Function),
|
|
3379
3425
|
On("design:paramtypes", []),
|
|
3380
3426
|
On("design:returntype", void 0)
|
|
3381
|
-
],
|
|
3382
|
-
|
|
3383
|
-
const
|
|
3384
|
-
var
|
|
3427
|
+
], Ba.prototype, "render", null);
|
|
3428
|
+
Ba.style = Bl;
|
|
3429
|
+
const Wl = ':host{--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}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Ul = Wl;
|
|
3430
|
+
var ql = function(e, n, a, t) {
|
|
3385
3431
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3386
3432
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3387
3433
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3393,7 +3439,7 @@ var Wl = function(e, n, a, t) {
|
|
|
3393
3439
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3394
3440
|
return Reflect.metadata(e, n);
|
|
3395
3441
|
};
|
|
3396
|
-
const
|
|
3442
|
+
const ja = class {
|
|
3397
3443
|
constructor(e) {
|
|
3398
3444
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-booking-notice", this.minBookingNotice = void 0, this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
3399
3445
|
}
|
|
@@ -3453,7 +3499,7 @@ const Ba = class {
|
|
|
3453
3499
|
};
|
|
3454
3500
|
}
|
|
3455
3501
|
};
|
|
3456
|
-
|
|
3502
|
+
ql([
|
|
3457
3503
|
D({
|
|
3458
3504
|
name: "nylas-min-booking-notice",
|
|
3459
3505
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3466,10 +3512,10 @@ Wl([
|
|
|
3466
3512
|
Dn("design:type", Function),
|
|
3467
3513
|
Dn("design:paramtypes", []),
|
|
3468
3514
|
Dn("design:returntype", void 0)
|
|
3469
|
-
],
|
|
3470
|
-
|
|
3471
|
-
const
|
|
3472
|
-
var
|
|
3515
|
+
], ja.prototype, "render", null);
|
|
3516
|
+
ja.style = Ul;
|
|
3517
|
+
const Jl = ':host{--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}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Gl = Jl;
|
|
3518
|
+
var Zl = function(e, n, a, t) {
|
|
3473
3519
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3474
3520
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3475
3521
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3481,7 +3527,7 @@ var Jl = function(e, n, a, t) {
|
|
|
3481
3527
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3482
3528
|
return Reflect.metadata(e, n);
|
|
3483
3529
|
};
|
|
3484
|
-
const
|
|
3530
|
+
const Wa = class {
|
|
3485
3531
|
constructor(e) {
|
|
3486
3532
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-cancellation-notice", this.minCancellationNotice = void 0, this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
3487
3533
|
}
|
|
@@ -3520,7 +3566,7 @@ const ja = class {
|
|
|
3520
3566
|
}
|
|
3521
3567
|
render() {
|
|
3522
3568
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
3523
|
-
return i(H, { key: "
|
|
3569
|
+
return i(H, { key: "9c61e75a024cf54b79edc5d3e50b63a456a404ab" }, i("div", { key: "22af2defca23cee4868a17c06da840ebe4c4c2e6", class: "nylas-min-cancellation-notice", part: "nmcn" }, i("label", { key: "ab5cc0690cc11b710e04643e1016e6c693616c54" }, d.t("nylasMinCancellationNotice.headerTitle"), i("span", { key: "f2cea42274657450623148a62ef2fd20194678bd", class: "label-icon" }, i("tooltip-component", { key: "c8cb411792f7cb5086b87b0b04a9c4b0bde1a523" }, i("info-icon", { key: "981a379d2018e4f571901e36f44b2b34e247d0d3", slot: "tooltip-icon" }), i("span", { key: "235e804d3431a0a5b974c4022441f9791ffcfe54", slot: "tooltip-content" }, d.t("nylasMinCancellationNotice.tooltip.desc"))))), e && i("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: [
|
|
3524
3570
|
{ value: "minute", label: d.t("timeDuration", { context: "minute" }) },
|
|
3525
3571
|
{ value: "hour", label: d.t("timeDuration", { context: "hour" }) },
|
|
3526
3572
|
{ value: "day", label: d.t("timePeriod", { context: "day" }) },
|
|
@@ -3541,7 +3587,7 @@ const ja = class {
|
|
|
3541
3587
|
};
|
|
3542
3588
|
}
|
|
3543
3589
|
};
|
|
3544
|
-
|
|
3590
|
+
Zl([
|
|
3545
3591
|
D({
|
|
3546
3592
|
name: "nylas-min-cancellation-notice",
|
|
3547
3593
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3554,10 +3600,10 @@ Jl([
|
|
|
3554
3600
|
Ln("design:type", Function),
|
|
3555
3601
|
Ln("design:paramtypes", []),
|
|
3556
3602
|
Ln("design:returntype", void 0)
|
|
3557
|
-
],
|
|
3558
|
-
|
|
3559
|
-
const
|
|
3560
|
-
var
|
|
3603
|
+
], Wa.prototype, "render", null);
|
|
3604
|
+
Wa.style = Gl;
|
|
3605
|
+
const Yl = ':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-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-name .header p .required-asterisk{color:var(--nylas-error)}.nylas-page-name .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-name .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-name .header .drawer-toggle .chevron:hover,.nylas-page-name .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-name .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-name .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-name .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-name .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body{grid-template-columns:1fr}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body .nylas-page-name__section{border:none}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row{display:flex;align-items:center;gap:1rem}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label{display:flex;align-items:center}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container{width:100%}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container span.error-message{color:var(--nylas-error)}.nylas-page-name .nylas-page-name__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper.error{border:1px solid var(--nylas-error)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:16px;height:auto;padding-left:0px}', Xl = Yl;
|
|
3606
|
+
var Kl = function(e, n, a, t) {
|
|
3561
3607
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3562
3608
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3563
3609
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3569,9 +3615,9 @@ var Gl = function(e, n, a, t) {
|
|
|
3569
3615
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3570
3616
|
return Reflect.metadata(e, n);
|
|
3571
3617
|
};
|
|
3572
|
-
const
|
|
3618
|
+
const Ua = class {
|
|
3573
3619
|
constructor(e) {
|
|
3574
|
-
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-name", this.pageName = void 0, this.showToggle = !0, this.isOpen = !0, this.required = !1, this.selectedLanguage = void 0, this.currentPageName = void 0, this.pageNameErrorMessage = void 0;
|
|
3620
|
+
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-name", this.pageName = void 0, this.showToggle = !0, this.isOpen = !0, this.required = !1, this.selectedLanguage = void 0, this.requirePageName = !1, this.currentPageName = void 0, this.pageNameErrorMessage = void 0;
|
|
3575
3621
|
}
|
|
3576
3622
|
connectedCallback() {
|
|
3577
3623
|
c("nylas-page-name", "connectedCallback");
|
|
@@ -3601,7 +3647,7 @@ const Wa = class {
|
|
|
3601
3647
|
c("nylas-page-name", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
3602
3648
|
}
|
|
3603
3649
|
selectedConfigurationChangedHandler(e) {
|
|
3604
|
-
c("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e), this.currentPageName = (e == null ? void 0 : e.name) ?? this.pageName ?? "";
|
|
3650
|
+
c("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e), this.currentPageName = (e == null ? void 0 : e.name) ?? this.pageName ?? "", this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(this.currentPageName), this.name);
|
|
3605
3651
|
}
|
|
3606
3652
|
selectedLanguageChangedHandler(e, n) {
|
|
3607
3653
|
e !== n && d.changeLanguage(e);
|
|
@@ -3611,12 +3657,11 @@ const Wa = class {
|
|
|
3611
3657
|
}
|
|
3612
3658
|
async nylasFormInputChangeHandler(e) {
|
|
3613
3659
|
const { name: n, value: a } = e.detail;
|
|
3614
|
-
if (a)
|
|
3615
|
-
this.internals.setValidity({ customError: !
|
|
3616
|
-
else {
|
|
3617
|
-
this.internals.setValidity({ customError: !0 }, "Please enter a page name"), this.pageNameErrorMessage = "Please enter a page name";
|
|
3660
|
+
if (!a && this.requirePageName) {
|
|
3661
|
+
this.isInternalsAvailable && this.internals.setValidity({ customError: !0 }, d.t("nylasPageName.pageNameError")), this.pageNameErrorMessage = d.t("nylasPageName.pageNameError");
|
|
3618
3662
|
return;
|
|
3619
|
-
}
|
|
3663
|
+
} else
|
|
3664
|
+
this.isInternalsAvailable && this.internals.setValidity({ customError: !1 }), this.pageNameErrorMessage = "";
|
|
3620
3665
|
n === "page-name" && (this.currentPageName = a, this.internals.setFormValue(JSON.stringify(a), this.name), this.valueChanged.emit({ value: JSON.stringify(a), name: this.name }));
|
|
3621
3666
|
}
|
|
3622
3667
|
toggleDrawer() {
|
|
@@ -3624,7 +3669,7 @@ const Wa = class {
|
|
|
3624
3669
|
}
|
|
3625
3670
|
render() {
|
|
3626
3671
|
const e = typeof this.currentPageName < "u";
|
|
3627
|
-
return i(H, { key: "
|
|
3672
|
+
return i(H, { key: "35c5dc589e164193e2536b570b2e62924ca44ae3" }, i("div", { key: "d6f7b0884f5a3b59beeb842874109b72e3f796d8", class: "nylas-page-name", part: "nces" }, i("div", { key: "5404b4d686502ff4bc6896fdd34ed51e0a24188a", class: "header", part: "nces__header" }, i("div", { key: "175c6481577f569033d593715520bdd4853f5ea1" }, i("h3", { key: "4a86a38b25c2757a65ccbaa9d2a391e9b74e3c4e" }, d.t("nylasPageName.headerTitle")), i("p", { key: "c9c1d724da748f89aa385c978e1e0f20b1800a0e" }, d.t("nylasPageName.headerSubTitle"), i("tooltip-component", { key: "23e3abc7bdb0fb53a7ef69ed84f5510874b47897" }, i("info-icon", { key: "17f7edc423536652a9bd11c1c4d02aee01b33088", slot: "tooltip-icon" }), i("span", { key: "74f1d088c3d666123047d7d915f1f105446dff6e", slot: "tooltip-content" }, d.t("nylasPageName.tooltip.desc"))), this.requirePageName && i("span", { class: "required-asterisk" }, "*"))), this.showToggle && i("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, i("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, i("chevron-icon", { width: "24", height: "24" })))), this.isOpen && i("div", { class: "nylas-page-name__body", part: "nces__body" }, i("div", { class: "nylas-page-name__section" }, i("div", { class: "nylas-page-name__row" }, i("div", { class: "input-container" }, i("div", { class: { "nylas-page-name__input-wrapper": !0, error: !!this.pageNameErrorMessage } }, e && i("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "" })), this.pageNameErrorMessage && i("span", { class: "error-message" }, this.pageNameErrorMessage)))))));
|
|
3628
3673
|
}
|
|
3629
3674
|
static get formAssociated() {
|
|
3630
3675
|
return !0;
|
|
@@ -3640,7 +3685,7 @@ const Wa = class {
|
|
|
3640
3685
|
};
|
|
3641
3686
|
}
|
|
3642
3687
|
};
|
|
3643
|
-
|
|
3688
|
+
Kl([
|
|
3644
3689
|
D({
|
|
3645
3690
|
name: "nylas-page-name",
|
|
3646
3691
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3658,10 +3703,10 @@ Gl([
|
|
|
3658
3703
|
In("design:type", Function),
|
|
3659
3704
|
In("design:paramtypes", []),
|
|
3660
3705
|
In("design:returntype", void 0)
|
|
3661
|
-
],
|
|
3662
|
-
|
|
3663
|
-
const
|
|
3664
|
-
var
|
|
3706
|
+
], Ua.prototype, "render", null);
|
|
3707
|
+
Ua.style = Xl;
|
|
3708
|
+
const Ql = ':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-page-styling{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-styling .hidden{display:none}.nylas-page-styling.no-border{border:none}.nylas-page-styling .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body{grid-template-columns:1fr}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section.no-padding{padding:0}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection.hide{display:none}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>*{display:flex;flex-direction:column;column-gap:2rem;row-gap:0.25rem;width:100%;flex:1}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container textarea,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>* textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-page-styling .nylas-page-styling__body span.error-message{color:var(--nylas-error)}.nylas-page-styling .nylas-page-styling__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}', Vl = Ql;
|
|
3709
|
+
var eo = function(e, n, a, t) {
|
|
3665
3710
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3666
3711
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3667
3712
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3673,7 +3718,7 @@ var Ql = function(e, n, a, t) {
|
|
|
3673
3718
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3674
3719
|
return Reflect.metadata(e, n);
|
|
3675
3720
|
};
|
|
3676
|
-
const
|
|
3721
|
+
const qa = class {
|
|
3677
3722
|
constructor(e) {
|
|
3678
3723
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), this.bookingFormSubmitted = S(this, "bookingFormSubmitted", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-styling", this.appearance = void 0, this.isOpen = !0, this.selectedLanguage = void 0, this.currentAppearance = void 0, this.customInputsSlot = null;
|
|
3679
3724
|
}
|
|
@@ -3824,7 +3869,7 @@ const Ua = class {
|
|
|
3824
3869
|
this.isOpen = !this.isOpen;
|
|
3825
3870
|
}
|
|
3826
3871
|
render() {
|
|
3827
|
-
return i(H, { key: "
|
|
3872
|
+
return i(H, { key: "76e0ec0a8152058952eea7180878f2b54b7ffa04" }, i("div", { key: "4dd3a2cfec007158f6123e3e5eadac4d9a9512f2", part: "nps", class: { "nylas-page-styling": !0, "no-border": !this.customInputsSlot } }, this.customInputsSlot ? i("div", { class: "header", part: "nps__header" }, i("div", null, i("h3", null, d.t("nylasPageStyling.headerTitle"))), i("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, i("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, i("chevron-icon", { width: "24", height: "24" })))) : null, i("div", { key: "b7f72ce8d070a0c4a1895a1c5fd025db9f050bb3", class: "hidden" }, i("input-color-picker", { key: "7f70e926c095a5ecd7fa664379ecbbbb03cf02e5", name: "color-picker" })), i("div", { key: "7e5e882c77fec5669d196dc663f5158ca67f6f63", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, i("div", { key: "6a5c0dd783b4d7e2f333713ec5754c3cb6bad726", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, i("div", { key: "c3fdebaf7ddb9d8fc1a10c230038482fe80f80a1", class: "nylas-page-styling__row" }, i("div", { key: "387481c71bc7564f4690ff8348fbaf5b456f1e67", class: { subsection: !0, hide: !this.isOpen } }))))));
|
|
3828
3873
|
}
|
|
3829
3874
|
static get formAssociated() {
|
|
3830
3875
|
return !0;
|
|
@@ -3840,7 +3885,7 @@ const Ua = class {
|
|
|
3840
3885
|
};
|
|
3841
3886
|
}
|
|
3842
3887
|
};
|
|
3843
|
-
|
|
3888
|
+
eo([
|
|
3844
3889
|
D({
|
|
3845
3890
|
name: "nylas-page-styling",
|
|
3846
3891
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3858,10 +3903,10 @@ Ql([
|
|
|
3858
3903
|
Fn("design:type", Function),
|
|
3859
3904
|
Fn("design:paramtypes", []),
|
|
3860
3905
|
Fn("design:returntype", void 0)
|
|
3861
|
-
],
|
|
3862
|
-
|
|
3863
|
-
const
|
|
3864
|
-
var
|
|
3906
|
+
], qa.prototype, "render", null);
|
|
3907
|
+
qa.style = Vl;
|
|
3908
|
+
const no = ':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-participant-booking-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .header{padding:1rem}.nylas-participant-booking-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participant-booking-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-participant-booking-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-participant-booking-calendars .content .participant-container .participant-title p{margin:0}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-booking-calendar-picker::part(nbcp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', ao = no;
|
|
3909
|
+
var to = function(e, n, a, t) {
|
|
3865
3910
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3866
3911
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3867
3912
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -3873,7 +3918,7 @@ var no = function(e, n, a, t) {
|
|
|
3873
3918
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3874
3919
|
return Reflect.metadata(e, n);
|
|
3875
3920
|
};
|
|
3876
|
-
const
|
|
3921
|
+
const Ja = class {
|
|
3877
3922
|
constructor(e) {
|
|
3878
3923
|
var n;
|
|
3879
3924
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-booking-calendars", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedLanguage = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendar = {};
|
|
@@ -3904,16 +3949,16 @@ const qa = class {
|
|
|
3904
3949
|
if (n && o) {
|
|
3905
3950
|
const y = e == null ? void 0 : e.filter((p) => n.some((g) => g.email === p.email)), u = e == null ? void 0 : e.filter((p) => !n.some((g) => g.email === p.email));
|
|
3906
3951
|
y == null || y.forEach((p) => {
|
|
3907
|
-
var
|
|
3952
|
+
var v;
|
|
3908
3953
|
const g = n == null ? void 0 : n.find((w) => w.email === p.email);
|
|
3909
3954
|
if (!g)
|
|
3910
3955
|
return;
|
|
3911
|
-
this.participantDefaultSelectedCalendar[p.email] = ((
|
|
3912
|
-
const
|
|
3913
|
-
t[p.email] =
|
|
3956
|
+
this.participantDefaultSelectedCalendar[p.email] = ((v = p.booking) == null ? void 0 : v.calendar_id) ?? "primary";
|
|
3957
|
+
const _ = g.calendars ?? [];
|
|
3958
|
+
t[p.email] = _;
|
|
3914
3959
|
}), u == null || u.forEach((p) => {
|
|
3915
|
-
var g,
|
|
3916
|
-
(g = p == null ? void 0 : p.booking) != null && g.calendar_id && (t[p.email] = this.calendars ?? [{ id: "primary", name: p.email }], this.participantDefaultSelectedCalendar[p.email] = ((
|
|
3960
|
+
var g, _;
|
|
3961
|
+
(g = p == null ? void 0 : p.booking) != null && g.calendar_id && (t[p.email] = this.calendars ?? [{ id: "primary", name: p.email }], this.participantDefaultSelectedCalendar[p.email] = ((_ = p == null ? void 0 : p.booking) == null ? void 0 : _.calendar_id) ?? "primary");
|
|
3917
3962
|
});
|
|
3918
3963
|
}
|
|
3919
3964
|
return a && (t[a.email] = this.calendars ?? [{ id: "primary", name: a.email }], this.participantDefaultSelectedCalendar[a.email] = ((f = a == null ? void 0 : a.booking) == null ? void 0 : f.calendar_id) ?? "primary"), t;
|
|
@@ -3992,7 +4037,7 @@ const qa = class {
|
|
|
3992
4037
|
};
|
|
3993
4038
|
}
|
|
3994
4039
|
};
|
|
3995
|
-
|
|
4040
|
+
to([
|
|
3996
4041
|
D({
|
|
3997
4042
|
name: "nylas-participant-booking-calendars",
|
|
3998
4043
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -4007,10 +4052,10 @@ no([
|
|
|
4007
4052
|
Tn("design:type", Function),
|
|
4008
4053
|
Tn("design:paramtypes", []),
|
|
4009
4054
|
Tn("design:returntype", void 0)
|
|
4010
|
-
],
|
|
4011
|
-
|
|
4012
|
-
const
|
|
4013
|
-
var
|
|
4055
|
+
], Ja.prototype, "render", null);
|
|
4056
|
+
Ja.style = ao;
|
|
4057
|
+
const lo = ':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-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}', oo = lo;
|
|
4058
|
+
var io = function(e, n, a, t) {
|
|
4014
4059
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
4015
4060
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4016
4061
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -4022,7 +4067,7 @@ var lo = function(e, n, a, t) {
|
|
|
4022
4067
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4023
4068
|
return Reflect.metadata(e, n);
|
|
4024
4069
|
};
|
|
4025
|
-
const
|
|
4070
|
+
const Ga = class {
|
|
4026
4071
|
constructor(e) {
|
|
4027
4072
|
var n;
|
|
4028
4073
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-custom-availability", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.selectedLanguage = void 0, this.selectedParticipants = this.setParticipants(this.participants);
|
|
@@ -4053,10 +4098,10 @@ const Ja = class {
|
|
|
4053
4098
|
c("nylas-participants-custom-availability", "componentDidLoad"), this.selectedConfiguration ? this.selectedParticipants = this.setParticipants((e = this.selectedConfiguration) == null ? void 0 : e.participants) : this.selectedParticipants = this.setParticipants(this.participants);
|
|
4054
4099
|
}
|
|
4055
4100
|
nylasFormSwitchToggledHandler(e) {
|
|
4056
|
-
var l, r, s, f, y, u, p, g,
|
|
4101
|
+
var l, r, s, f, y, u, p, g, _, v, w, P;
|
|
4057
4102
|
c("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
|
|
4058
|
-
const n = (l = this.selectedConfiguration) == null ? void 0 : l.participants.find((N) => N.email === e.detail.name), a = ((r = n == null ? void 0 : n.availability) == null ? void 0 : r.open_hours) || [], t = (a == null ? void 0 : a.length) > 0 ? a : ((y = (f = (s = this.selectedConfiguration) == null ? void 0 : s.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : y.default_open_hours) || [], o = a && a.length > 0 ? n == null ? void 0 : n.timezone : ((
|
|
4059
|
-
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (t == null ? void 0 : t.length) > 0 ? t :
|
|
4103
|
+
const n = (l = this.selectedConfiguration) == null ? void 0 : l.participants.find((N) => N.email === e.detail.name), a = ((r = n == null ? void 0 : n.availability) == null ? void 0 : r.open_hours) || [], t = (a == null ? void 0 : a.length) > 0 ? a : ((y = (f = (s = this.selectedConfiguration) == null ? void 0 : s.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : y.default_open_hours) || [], o = a && a.length > 0 ? n == null ? void 0 : n.timezone : ((v = (_ = (g = (p = (u = this.selectedConfiguration) == null ? void 0 : u.availability) == null ? void 0 : p.availability_rules) == null ? void 0 : g.default_open_hours) == null ? void 0 : _.at(0)) == null ? void 0 : v.timezone) || ((P = (w = this.selectedConfiguration) == null ? void 0 : w.event_booking) == null ? void 0 : P.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
4104
|
+
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (t == null ? void 0 : t.length) > 0 ? t : da : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? o : void 0, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4060
4105
|
}
|
|
4061
4106
|
handleValueChanged(e) {
|
|
4062
4107
|
var s, f, y;
|
|
@@ -4078,10 +4123,9 @@ const Ja = class {
|
|
|
4078
4123
|
this.selectedParticipants[o].openHours = r, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4079
4124
|
}
|
|
4080
4125
|
updateFormValue() {
|
|
4081
|
-
var a;
|
|
4082
4126
|
const e = {};
|
|
4083
|
-
(
|
|
4084
|
-
e[
|
|
4127
|
+
Object.keys(this.selectedParticipants).forEach((n) => {
|
|
4128
|
+
e[n] = this.selectedParticipants[n].openHours;
|
|
4085
4129
|
}), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name), this.valueChanged.emit({ value: JSON.stringify(e), name: this.name });
|
|
4086
4130
|
}
|
|
4087
4131
|
setParticipants(e) {
|
|
@@ -4102,7 +4146,7 @@ const Ja = class {
|
|
|
4102
4146
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
4103
4147
|
}
|
|
4104
4148
|
render() {
|
|
4105
|
-
return i(H, { key: "
|
|
4149
|
+
return i(H, { key: "3c4983c971e133b5f1f77b4b435a8001fed0fa53" }, i("div", { key: "c80b00ed32e7b0d3ce78cbda214f15a2e07bd5e6", class: "nylas-participants-custom-availability", part: "npca" }, i("div", { key: "f1adc8fed54bedb012808e98c15943f6aa0ae3e5", class: "header", part: "npca__header" }, i("h3", { key: "e029d902dd4bad8ebc79cba56026e9e493235e8e" }, d.t("nylasParticipantCustomAvailability.headerTitle")), i("p", { key: "943ff798c572865d25a8270f04515405adc03231" }, d.t("nylasParticipantCustomAvailability.headerSubTitle"))), i("div", { key: "bc10d84b37b4499fa1c17d99fb8a0d208dac7422", class: "content", part: "npca__content" }, i("form", { key: "189d5ee292f0c895d9d6c4f58970d37fb657f7b0", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
|
|
4106
4150
|
var o;
|
|
4107
4151
|
const a = this.selectedParticipants[e], t = ((o = a.availability) == null ? void 0 : o.open_hours) || [];
|
|
4108
4152
|
if (!(!a || !a.name || !a.availability))
|
|
@@ -4126,7 +4170,7 @@ const Ja = class {
|
|
|
4126
4170
|
};
|
|
4127
4171
|
}
|
|
4128
4172
|
};
|
|
4129
|
-
|
|
4173
|
+
io([
|
|
4130
4174
|
D({
|
|
4131
4175
|
name: "nylas-participants-custom-availability",
|
|
4132
4176
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -4139,10 +4183,10 @@ lo([
|
|
|
4139
4183
|
$n("design:type", Function),
|
|
4140
4184
|
$n("design:paramtypes", []),
|
|
4141
4185
|
$n("design:returntype", void 0)
|
|
4142
|
-
],
|
|
4143
|
-
|
|
4144
|
-
const oo = ':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}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:hover,.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body{grid-template-columns:1fr}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{border:none}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__block{display:flex;flex-direction:column;gap:0.5rem;border-top:1px solid var(--nylas-base-200);padding-top:1rem;margin-top:0.5rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row.full-width-col{grid-template-columns:1fr}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label{display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.required{color:var(--nylas-error, #cc4841)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon{margin-left:4px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon tooltip-component{display:flex}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message{color:var(--nylas-error);display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button{color:blue}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button:hover{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container{display:flex;gap:32px;width:100%}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row span.selected-value{font-weight:500}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container{padding:0 2rem 1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.error-message{color:var(--nylas-error)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}button-component.create-reminder button{margin:1rem;width:calc(100% - 2rem)}button-component.delete-btn button{color:var(--nylas-error) !important}', io = oo;
|
|
4145
|
-
var
|
|
4186
|
+
], Ga.prototype, "render", null);
|
|
4187
|
+
Ga.style = oo;
|
|
4188
|
+
const ro = ':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}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:hover,.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body{grid-template-columns:1fr}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{border:none}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__block{display:flex;flex-direction:column;gap:0.5rem;border-top:1px solid var(--nylas-base-200);padding-top:1rem;margin-top:0.5rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row.full-width-col{grid-template-columns:1fr}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label{display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.required{color:var(--nylas-error, #cc4841)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon{margin-left:4px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon tooltip-component{display:flex}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message{color:var(--nylas-error);display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button{color:blue}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button:hover{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container{display:flex;gap:32px;width:100%}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row span.selected-value{font-weight:500}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container{padding:0 2rem 1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.error-message{color:var(--nylas-error)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}button-component.create-reminder button{margin:1rem;width:calc(100% - 2rem)}button-component.delete-btn button{color:var(--nylas-error) !important}', so = ro;
|
|
4189
|
+
var co = function(e, n, a, t) {
|
|
4146
4190
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
4147
4191
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4148
4192
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -4229,13 +4273,16 @@ const Za = class {
|
|
|
4229
4273
|
l[o].email_subject = a, this.reminders = [...l], this.updateRemindersFormValue();
|
|
4230
4274
|
}
|
|
4231
4275
|
addReminder() {
|
|
4232
|
-
|
|
4276
|
+
var n;
|
|
4277
|
+
c("nylas-reminder-emails", "addReminder");
|
|
4278
|
+
const e = ((n = this.selectedConfiguration) == null ? void 0 : n.type) === "group" ? "guest" : "all";
|
|
4279
|
+
this.reminders = [
|
|
4233
4280
|
...this.reminders,
|
|
4234
4281
|
{
|
|
4235
4282
|
type: "email",
|
|
4236
4283
|
minutes_before_event: 30,
|
|
4237
4284
|
editing: !0,
|
|
4238
|
-
recipient:
|
|
4285
|
+
recipient: e
|
|
4239
4286
|
}
|
|
4240
4287
|
], this.updateRemindersFormValue();
|
|
4241
4288
|
}
|
|
@@ -4285,7 +4332,7 @@ const Za = class {
|
|
|
4285
4332
|
value: "host"
|
|
4286
4333
|
}
|
|
4287
4334
|
];
|
|
4288
|
-
return ((t = this.selectedConfiguration) == null ? void 0 : t.type) === "group" && (n = n.filter((o) => o.value !== "all")), i(H, { key: "
|
|
4335
|
+
return ((t = this.selectedConfiguration) == null ? void 0 : t.type) === "group" && (n = n.filter((o) => o.value !== "all")), i(H, { key: "993ed8c7a270a0c8e38e27cc2bb6a520eb22ceba" }, i("div", { key: "84d43e7ba482eac39c1f3cdde04ee57d44c90d12", class: "cards-container" }, this.reminders.map((o, l) => {
|
|
4289
4336
|
var r, s, f, y;
|
|
4290
4337
|
return o.type !== "webhook" ? i("div", { class: "nylas-reminder-email", part: "nre" }, i("div", { class: "header", part: "nre__header" }, i("div", null, i("h3", null, d.t("nylasReminderEmails.headerTitle", { organizerName: e ? ` with ${e} ` : "" })), i("p", null, d.t("nylasReminderEmails.headerSubTitle"))), o.editing ? i("div", { class: "reminder-open-close-toggle" }, i("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${l} `, clickHandler: (u) => {
|
|
4291
4338
|
u.preventDefault(), this.deleteReminder(l);
|
|
@@ -4297,9 +4344,9 @@ const Za = class {
|
|
|
4297
4344
|
var p;
|
|
4298
4345
|
this.nylasSuggestReminderMinutes.emit({ minutes: (p = this.reminderErrors[`reminder-time-${l}`]) == null ? void 0 : p.suggestion });
|
|
4299
4346
|
} }, (f = this.reminderErrors[`reminder-time-${l}`]) == null ? void 0 : f.suggestion)))), i("div", { class: "nylas-reminder-email__block" }, i("label", null, d.t("nylasReminderEmails.emailSubject.label")), i("input-component", { name: `reminder-subject-${l}`, maxLength: 60, placeholder: d.t("nylasReminderEmails.emailSubject.placeholder", { organizerName: e ? ` with ${e}` : "" }), defaultValue: (o == null ? void 0 : o.email_subject) || "" })))) : i("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, i("p", null, i("span", { class: "summary-icon" }, i("person-clipboard-icon", null)), (y = n.find((u) => u.value === o.recipient)) == null ? void 0 : y.label), i("p", null, i("span", { class: "summary-icon" }, i("clock-icon", null)), this.formatReminderTime(o.minutes_before_event), " ", d.t("nylasReminderEmails.beforeTheEvent")))) : null;
|
|
4300
|
-
})), i("button-component", { key: "
|
|
4347
|
+
})), i("button-component", { key: "09ee729fca7463ccb13ed750d787bbf270975df0", class: "create-reminder", variant: "basic", clickHandler: (o) => {
|
|
4301
4348
|
o.preventDefault(), this.addReminder();
|
|
4302
|
-
} }, i("plus-icon", { key: "
|
|
4349
|
+
} }, i("plus-icon", { key: "d35a9975898ec6663621407c49f5c55023501eb9", width: "16", height: "16" }), d.t("nylasReminderEmails.newReminderButtonText")));
|
|
4303
4350
|
}
|
|
4304
4351
|
static get formAssociated() {
|
|
4305
4352
|
return !0;
|
|
@@ -4315,7 +4362,7 @@ const Za = class {
|
|
|
4315
4362
|
};
|
|
4316
4363
|
}
|
|
4317
4364
|
};
|
|
4318
|
-
|
|
4365
|
+
co([
|
|
4319
4366
|
D({
|
|
4320
4367
|
name: "nylas-reminder-emails",
|
|
4321
4368
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -4334,9 +4381,9 @@ ro([
|
|
|
4334
4381
|
Nn("design:paramtypes", []),
|
|
4335
4382
|
Nn("design:returntype", void 0)
|
|
4336
4383
|
], Za.prototype, "render", null);
|
|
4337
|
-
Za.style =
|
|
4338
|
-
const
|
|
4339
|
-
var
|
|
4384
|
+
Za.style = so;
|
|
4385
|
+
const fo = ':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-scheduling-method{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);margin:0.25rem 0 0 0;font-size:14px;font-weight:400;line-height:20px;text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label tooltip-component{display:flex}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-scheduling-method .nylas-scheduling-method__dropdown input-component::part(ic__input){background:var(--nylas-base-50);outline:none;cursor:not-allowed}', yo = fo;
|
|
4386
|
+
var po = function(e, n, a, t) {
|
|
4340
4387
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
4341
4388
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4342
4389
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -4421,7 +4468,7 @@ const Ya = class {
|
|
|
4421
4468
|
};
|
|
4422
4469
|
}
|
|
4423
4470
|
};
|
|
4424
|
-
|
|
4471
|
+
po([
|
|
4425
4472
|
D({
|
|
4426
4473
|
name: "nylas-scheduling-method",
|
|
4427
4474
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -4441,9 +4488,9 @@ fo([
|
|
|
4441
4488
|
Pn("design:paramtypes", []),
|
|
4442
4489
|
Pn("design:returntype", void 0)
|
|
4443
4490
|
], Ya.prototype, "render", null);
|
|
4444
|
-
Ya.style =
|
|
4445
|
-
const
|
|
4446
|
-
var
|
|
4491
|
+
Ya.style = yo;
|
|
4492
|
+
const uo = ':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-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', mo = uo;
|
|
4493
|
+
var go = function(e, n, a, t) {
|
|
4447
4494
|
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
4448
4495
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4449
4496
|
l = Reflect.decorate(e, n, a, t);
|
|
@@ -4455,7 +4502,7 @@ var uo = function(e, n, a, t) {
|
|
|
4455
4502
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4456
4503
|
return Reflect.metadata(e, n);
|
|
4457
4504
|
};
|
|
4458
|
-
const Ue = 15,
|
|
4505
|
+
const Ue = 15, Xa = class {
|
|
4459
4506
|
constructor(e) {
|
|
4460
4507
|
var n, a;
|
|
4461
4508
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = (a = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : a.duration_minutes, this.selectedLanguage = void 0, this.internalEventDurationMinutes = void 0, this.selectedInterval = void 0, this.selectedRoundTo = void 0, this.componentLoaded = !1;
|
|
@@ -4534,7 +4581,7 @@ const Ue = 15, Ga = class {
|
|
|
4534
4581
|
{ value: "45", label: `45 ${d.t("nylasTimeslotInterval.minutesShort")}` },
|
|
4535
4582
|
{ value: "60", label: `60 ${d.t("nylasTimeslotInterval.minutesShort")}` }
|
|
4536
4583
|
], n = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? e[0] : e.find((a) => a.value == this.selectedInterval.toString()) ?? e[0] : void 0;
|
|
4537
|
-
return i(H, { key: "
|
|
4584
|
+
return i(H, { key: "f004010f441ec7113689d8a6eecb408b24d7d68c" }, i("div", { key: "aedc0b484170e3ad7731aee07f286c324c117bdf", class: "nylas-timeslot-interval", part: "nti" }, i("div", { key: "71bb9b5d42a24ded08a722e09f709e8873d777d7", class: "header", part: "nti__header" }, i("h3", { key: "a7c9868eaf862baa726ac34adb96906c1e0ec791" }, d.t("nylasTimeslotInterval.headerTitle"))), i("div", { key: "1a5d01c3527559012a4b991c706ea63102e2cb74", class: "nylas-timeslot-interval__dropdown" }, i("span", { key: "30d72077b635b19e0af1f404402a92829ef92bdf", class: "label", part: "nti__input-label" }, d.t("nylasTimeslotInterval.timeslotInterval.label")), (n == null ? void 0 : n.label) && i("select-dropdown", { name: "interval-minutes", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: n }), i("span", { key: "17d6586dfffc3e71a3c1faf3f1238f4e974a865c", slot: "label", class: "label", part: "nti__input-label" }, d.t("nylasTimeslotInterval.timeslotRounding.label"), i("tooltip-component", { key: "b85500f177f727da153ad13a64a2587e27d9df27" }, i("info-icon", { key: "e9c4ff956dd6d11324b203b3f1a36203d4cb8140", slot: "tooltip-icon" }), i("span", { key: "c15d850769db8572ba74a6ce33bfcbfb2d1b7ad0", slot: "tooltip-content" }, d.t("nylasTimeslotInterval.timeslotRounding.tooltip.desc")))), this.componentLoaded && i("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
|
|
4538
4585
|
{
|
|
4539
4586
|
value: "no-rounding",
|
|
4540
4587
|
label: d.t("nylasTimeslotInterval.timeslotRoundingOptions.noRounding.label"),
|
|
@@ -4561,7 +4608,7 @@ const Ue = 15, Ga = class {
|
|
|
4561
4608
|
};
|
|
4562
4609
|
}
|
|
4563
4610
|
};
|
|
4564
|
-
|
|
4611
|
+
go([
|
|
4565
4612
|
D({
|
|
4566
4613
|
name: "nylas-timeslot-interval",
|
|
4567
4614
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -4573,9 +4620,9 @@ uo([
|
|
|
4573
4620
|
Rn("design:type", Function),
|
|
4574
4621
|
Rn("design:paramtypes", []),
|
|
4575
4622
|
Rn("design:returntype", void 0)
|
|
4576
|
-
],
|
|
4577
|
-
|
|
4578
|
-
const
|
|
4623
|
+
], Xa.prototype, "render", null);
|
|
4624
|
+
Xa.style = mo;
|
|
4625
|
+
const ho = ".sc-paintbrush-fill-icon-h{display:flex}", bo = ho, _o = class {
|
|
4579
4626
|
constructor(e) {
|
|
4580
4627
|
x(this, e), this.width = "16", this.height = "13";
|
|
4581
4628
|
}
|
|
@@ -4583,8 +4630,8 @@ const mo = ".sc-paintbrush-fill-icon-h{display:flex}", go = mo, ho = class {
|
|
|
4583
4630
|
return i("svg", { key: "98cb20064f478f5c462b1bc8a9c77a4741593e66", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "de2c4a8340e25cee0dd199a5e98bf28657acf192", d: "M5 2.875V0.375H0.5C0.223858 0.375 0 0.598858 0 0.875V7.37585H10V0.875C10 0.598858 9.77614 0.375 9.5 0.375H8V3.87722C8 4.15337 7.77614 4.37722 7.5 4.37722C7.22386 4.37722 7 4.15337 7 3.87722V0.375H6V2.875C6 3.15114 5.77614 3.375 5.5 3.375C5.22386 3.375 5 3.15114 5 2.875ZM10 8.37585H0V9.37938C0 10.4839 0.895431 11.3794 2 11.3794H3.5V14.8767C3.5 15.7051 4.17157 16.3767 5 16.3767C5.82843 16.3767 6.5 15.7051 6.5 14.8767V11.3794H8C9.10457 11.3794 10 10.4839 10 9.37938V8.37585Z", fill: "currentColor" }));
|
|
4584
4631
|
}
|
|
4585
4632
|
};
|
|
4586
|
-
|
|
4587
|
-
const
|
|
4633
|
+
_o.style = bo;
|
|
4634
|
+
const vo = ".sc-paintbrush-icon-h{display:flex}", Co = vo, wo = class {
|
|
4588
4635
|
constructor(e) {
|
|
4589
4636
|
x(this, e), this.width = "16", this.height = "13";
|
|
4590
4637
|
}
|
|
@@ -4592,8 +4639,8 @@ const bo = ".sc-paintbrush-icon-h{display:flex}", vo = bo, _o = class {
|
|
|
4592
4639
|
return i("svg", { key: "13409c45ec2700920b7cbe236cb4f3513b543566", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "ea25ebc4a0465b97eecb6313c33b25dd18809cfe", d: "M0.5 -0.000976562C0.223858 -0.000976562 0 0.222881 0 0.499023L1.90735e-05 9.00337C1.90735e-05 10.1079 0.89545 11.0034 2.00002 11.0034H3.00411V14.0007C3.00411 15.1053 3.89954 16.0007 5.00411 16.0007C6.10868 16.0007 7.00411 15.1053 7.00411 14.0007V11.0034H8.00002C9.10459 11.0034 10 10.1079 10 9.00337V7.50339L10 7.49897V0.499023C10 0.222881 9.77614 -0.000976562 9.5 -0.000976562H0.5ZM1.00002 8.00342H9.00002V9.00337C9.00002 9.55566 8.5523 10.0034 8.00002 10.0034H6.50411C6.22797 10.0034 6.00411 10.2272 6.00411 10.5034V14.0007C6.00411 14.553 5.5564 15.0007 5.00411 15.0007C4.45183 15.0007 4.00411 14.553 4.00411 14.0007V10.5034C4.00411 10.2272 3.78026 10.0034 3.50411 10.0034H2.00002C1.44773 10.0034 1.00002 9.55566 1.00002 9.00337V8.00342ZM9 7.00339H1V0.999023H5V2.49902C5 2.77517 5.22386 2.99902 5.5 2.99902C5.77614 2.99902 6 2.77517 6 2.49902V0.999023H7V3.50122C7 3.77736 7.22386 4.00122 7.5 4.00122C7.77614 4.00122 8 3.77736 8 3.50122V0.999023H9V7.00339Z", fill: "currentColor" }));
|
|
4593
4640
|
}
|
|
4594
4641
|
};
|
|
4595
|
-
|
|
4596
|
-
const
|
|
4642
|
+
wo.style = Co;
|
|
4643
|
+
const ko = ".sc-people-icon-h{display:flex}", xo = ko, Eo = class {
|
|
4597
4644
|
constructor(e) {
|
|
4598
4645
|
x(this, e), this.width = "20", this.height = "20";
|
|
4599
4646
|
}
|
|
@@ -4601,42 +4648,42 @@ const Co = ".sc-people-icon-h{display:flex}", wo = Co, ko = class {
|
|
|
4601
4648
|
return i("svg", { key: "83a2358c0af0fc994ec3d62cc66a40e62999ae72", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, i("path", { key: "f8e0b6f171470ec0d658f16f4fab84d56438bda3", fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" }));
|
|
4602
4649
|
}
|
|
4603
4650
|
};
|
|
4604
|
-
|
|
4651
|
+
Eo.style = xo;
|
|
4605
4652
|
export {
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4653
|
+
at as calendar_agenda_fill_icon,
|
|
4654
|
+
ot as calendar_agenda_icon,
|
|
4655
|
+
st as calendar_info_icon,
|
|
4656
|
+
ft as calendar_patterns_icon,
|
|
4657
|
+
ut as envelope_fill_icon,
|
|
4658
|
+
ht as envelope_icon,
|
|
4659
|
+
vt as flow_icon,
|
|
4660
|
+
fa as nylas_availability_picker,
|
|
4661
|
+
ya as nylas_booking_calendar_picker,
|
|
4662
|
+
pa as nylas_booking_confirmation_redirect,
|
|
4663
|
+
ua as nylas_booking_confirmation_type,
|
|
4664
|
+
Da as nylas_booking_form_config,
|
|
4665
|
+
La as nylas_buffer_time,
|
|
4666
|
+
Ia as nylas_calendar_picker,
|
|
4667
|
+
Fa as nylas_cancellation_policy,
|
|
4668
|
+
Ta as nylas_confirmation_email,
|
|
4669
|
+
$a as nylas_connected_calendars,
|
|
4670
|
+
Na as nylas_custom_booking_flow,
|
|
4671
|
+
Pa as nylas_custom_event_slug,
|
|
4672
|
+
Ra as nylas_customize_booking_settings,
|
|
4673
|
+
Aa as nylas_disable_emails,
|
|
4674
|
+
Ma as nylas_event_duration,
|
|
4675
|
+
za as nylas_event_limits,
|
|
4676
|
+
Ba as nylas_limit_future_bookings,
|
|
4677
|
+
ja as nylas_min_booking_notice,
|
|
4678
|
+
Wa as nylas_min_cancellation_notice,
|
|
4679
|
+
Ua as nylas_page_name,
|
|
4680
|
+
qa as nylas_page_styling,
|
|
4681
|
+
Ja as nylas_participant_booking_calendars,
|
|
4682
|
+
Ga as nylas_participants_custom_availability,
|
|
4636
4683
|
Za as nylas_reminder_emails,
|
|
4637
4684
|
Ya as nylas_scheduling_method,
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4685
|
+
Xa as nylas_timeslot_interval,
|
|
4686
|
+
_o as paintbrush_fill_icon,
|
|
4687
|
+
wo as paintbrush_icon,
|
|
4688
|
+
Eo as people_icon
|
|
4642
4689
|
};
|