@nylas/react 1.3.2 → 1.3.3
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.entry-10f2c319.cjs → add-circle-icon.entry-89060fe6.cjs} +1 -1
- package/dist/{add-circle-icon.entry-0ea05c5b.js → add-circle-icon.entry-8b883ae4.js} +1 -1
- package/dist/{archive-icon.entry-a0af58f2.js → archive-icon.entry-62c7e06e.js} +1 -1
- package/dist/{archive-icon.entry-7eeea6f4.cjs → archive-icon.entry-e9038aeb.cjs} +1 -1
- package/dist/{arrow-icon.entry-7fd7c18e.js → arrow-icon.entry-7c38f4ad.js} +1 -1
- package/dist/{arrow-icon.entry-954f2ba8.cjs → arrow-icon.entry-e8dbe365.cjs} +1 -1
- package/dist/{bold-icon.entry-690ecac8.js → bold-icon.entry-4ce7cfee.js} +1 -1
- package/dist/{bold-icon.entry-e970c498.cjs → bold-icon.entry-665901ce.cjs} +1 -1
- package/dist/{button-component_2.entry-b57d03fc.js → button-component_2.entry-89ea010b.js} +1 -1
- package/dist/{button-component_2.entry-b7d39903.cjs → button-component_2.entry-ca263036.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_53.entry-7792b45c.js → calendar-agenda-fill-icon_53.entry-347662f3.js} +682 -667
- package/dist/calendar-agenda-fill-icon_53.entry-da0fac2a.cjs +9 -0
- package/dist/{calendar-cancel-icon.entry-8cd02237.cjs → calendar-cancel-icon.entry-6b7836c9.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-5757c056.js → calendar-cancel-icon.entry-c1d33f90.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-6864b9d5.js → calendar-check-icon_2.entry-222e3c0b.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-4f59d206.cjs → calendar-check-icon_2.entry-67024cd6.cjs} +1 -1
- package/dist/{calendar-icon.entry-0b1edb49.cjs → calendar-icon.entry-380048b0.cjs} +1 -1
- package/dist/{calendar-icon.entry-3798880d.js → calendar-icon.entry-c08a8f21.js} +1 -1
- package/dist/checkbox-component_3.entry-52b27cb9.cjs +1 -0
- package/dist/{checkbox-component_3.entry-3d9fa7b5.js → checkbox-component_3.entry-dab3c3c8.js} +22 -9
- package/dist/{chevron-icon_3.entry-a5175d87.cjs → chevron-icon_3.entry-17bb7d23.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-43e83594.js → chevron-icon_3.entry-7be40d99.js} +1 -1
- package/dist/{clock-icon_4.entry-76751b46.cjs → clock-icon_4.entry-875db481.cjs} +1 -1
- package/dist/{clock-icon_4.entry-219733d8.js → clock-icon_4.entry-89e0dd55.js} +1 -1
- package/dist/{close-icon.entry-286fc5ca.js → close-icon.entry-4b2a2974.js} +1 -1
- package/dist/{close-icon.entry-cecd3cdd.cjs → close-icon.entry-e52d8440.cjs} +1 -1
- package/dist/{copy-icon.entry-121dd297.js → copy-icon.entry-eecc7301.js} +1 -1
- package/dist/{copy-icon.entry-d4835d9a.cjs → copy-icon.entry-f3370220.cjs} +1 -1
- package/dist/{delete-icon.entry-14249f70.cjs → delete-icon.entry-1e6c99ee.cjs} +1 -1
- package/dist/{delete-icon.entry-497ac8a2.js → delete-icon.entry-4b341b41.js} +1 -1
- package/dist/{document-refresh-icon.entry-c0eacb66.cjs → document-refresh-icon.entry-612c5d4f.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-f265bb1b.js → document-refresh-icon.entry-653dc173.js} +1 -1
- package/dist/{feedbackSync-e5cb0245-ea7ddac9.cjs → feedbackSync-e5cb0245-013ce5ec.cjs} +1 -1
- package/dist/{feedbackSync-e5cb0245-d84015c5.js → feedbackSync-e5cb0245-f8e4575c.js} +1 -1
- package/dist/{folder-icon.entry-e4806f0a.cjs → folder-icon.entry-5bc752d4.cjs} +1 -1
- package/dist/{folder-icon.entry-d22b3e80.js → folder-icon.entry-8d91bc75.js} +1 -1
- package/dist/{forward-icon.entry-b6711af7.js → forward-icon.entry-1d14a631.js} +1 -1
- package/dist/{forward-icon.entry-42b98c73.cjs → forward-icon.entry-fe0f2a3a.cjs} +1 -1
- package/dist/{globe-icon.entry-18605371.cjs → globe-icon.entry-13f5dd98.cjs} +1 -1
- package/dist/{globe-icon.entry-4c5d6be0.js → globe-icon.entry-c2ddabb6.js} +1 -1
- package/dist/{google-logo-icon_4.entry-007f2813.cjs → google-logo-icon_4.entry-59423b91.cjs} +1 -1
- package/dist/{google-logo-icon_4.entry-c3bae7b7.js → google-logo-icon_4.entry-b58af39b.js} +5 -5
- package/dist/{inbox-icon.entry-02c59267.cjs → inbox-icon.entry-2e8c1cf5.cjs} +1 -1
- package/dist/{inbox-icon.entry-ae4383af.js → inbox-icon.entry-5a452db1.js} +1 -1
- package/dist/{index-bbbc79ad.cjs → index-5611d3d5.cjs} +21 -21
- package/dist/{index-ad112f6a.js → index-589f8eee.js} +543 -543
- package/dist/{index.es-e9d66a9b-62be34ce.js → index.es-e9d66a9b-a07a895d.js} +1 -1
- package/dist/{index.es-e9d66a9b-a29322e0.cjs → index.es-e9d66a9b-fa36c085.cjs} +1 -1
- package/dist/{info-icon_2.entry-3f143408.js → info-icon_2.entry-14cad09c.js} +1 -1
- package/dist/{info-icon_2.entry-d10f1df5.cjs → info-icon_2.entry-fce3a1ce.cjs} +1 -1
- package/dist/{input-color-picker.entry-8ce41f49.js → input-color-picker.entry-2079f40e.js} +1 -1
- package/dist/{input-color-picker.entry-45caaa1d.cjs → input-color-picker.entry-785e80b1.cjs} +1 -1
- package/dist/{input-component.entry-37b106dc.cjs → input-component.entry-0edf62cf.cjs} +1 -1
- package/dist/{input-component.entry-6db98fb0.js → input-component.entry-cee3fa04.js} +1 -1
- package/dist/{input-dropdown.entry-1a2cdf40.cjs → input-dropdown.entry-63cf88c1.cjs} +1 -1
- package/dist/{input-dropdown.entry-ec3d04ad.js → input-dropdown.entry-a1bac5bf.js} +1 -1
- package/dist/{italic-icon.entry-36d1e644.js → italic-icon.entry-85a90ace.js} +1 -1
- package/dist/{italic-icon.entry-b5e4eec9.cjs → italic-icon.entry-9ced8045.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-6f22740f.js → multi-select-dropdown.entry-dd699cdf.js} +36 -19
- package/dist/multi-select-dropdown.entry-f6ac5ae9.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-cb6b2ce6.js → nylas-booked-event-card_12.entry-56068565.js} +2 -2
- package/dist/{nylas-booked-event-card_12.entry-4f115674.cjs → nylas-booked-event-card_12.entry-89bcf205.cjs} +1 -1
- package/dist/{nylas-form-card.entry-e2749723.cjs → nylas-form-card.entry-77485e1d.cjs} +1 -1
- package/dist/{nylas-form-card.entry-07e46491.js → nylas-form-card.entry-df1c70ff.js} +2 -2
- package/dist/{nylas-if-state.entry-88e01248.cjs → nylas-if-state.entry-0271bf92.cjs} +1 -1
- package/dist/{nylas-if-state.entry-e34c5cbb.js → nylas-if-state.entry-74c342ef.js} +2 -2
- package/dist/{nylas-login.entry-ab50ca6a.cjs → nylas-login.entry-2483aa51.cjs} +1 -1
- package/dist/{nylas-login.entry-a30bbd87.js → nylas-login.entry-6a308ac9.js} +2 -2
- package/dist/{nylas-provider.entry-070f8090.js → nylas-provider.entry-5cbbd312.js} +4 -4
- package/dist/{nylas-provider.entry-7f4a1520.cjs → nylas-provider.entry-df790de3.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-23e68865.js → nylas-scheduler-editor.entry-b6793c45.js} +3 -3
- package/dist/{nylas-scheduler-editor.entry-287ca230.cjs → nylas-scheduler-editor.entry-c23fd4d8.cjs} +1 -1
- package/dist/{nylas-scheduling.entry-c882ee9a.cjs → nylas-scheduling.entry-2a9aed18.cjs} +1 -1
- package/dist/{nylas-scheduling.entry-19fca55a.js → nylas-scheduling.entry-fea8dca0.js} +6 -6
- package/dist/{nylas-time-window-picker_2.entry-9a216230.cjs → nylas-time-window-picker_2.entry-32f657a2.cjs} +1 -1
- package/dist/{nylas-time-window-picker_2.entry-3d24eec4.js → nylas-time-window-picker_2.entry-fc5aa4be.js} +1 -1
- package/dist/{person-icon.entry-b26a199b.cjs → person-icon.entry-c853f6b5.cjs} +1 -1
- package/dist/{person-icon.entry-a6d86572.js → person-icon.entry-fae1d972.js} +1 -1
- package/dist/{play-icon.entry-87939760.js → play-icon.entry-6ccd7cb6.js} +1 -1
- package/dist/{play-icon.entry-5fc66fe6.cjs → play-icon.entry-b07a4311.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-3a8ae0f6.cjs → refresh-icon.entry-a218275f.cjs} +1 -1
- package/dist/{refresh-icon.entry-820111be.js → refresh-icon.entry-b717e4fe.js} +1 -1
- package/dist/{register-component-5d7bcc15-35e4a5a0.js → register-component-5d7bcc15-43981253.js} +1 -1
- package/dist/{register-component-5d7bcc15-d9900fbc.cjs → register-component-5d7bcc15-bb9405d1.cjs} +1 -1
- package/dist/{reply-all-icon.entry-864494e2.cjs → reply-all-icon.entry-cd2bafd1.cjs} +1 -1
- package/dist/{reply-all-icon.entry-5fbf1103.js → reply-all-icon.entry-f20c4a10.js} +1 -1
- package/dist/{reply-icon.entry-93084ffd.cjs → reply-icon.entry-30b5222b.cjs} +1 -1
- package/dist/{reply-icon.entry-7c136d06.js → reply-icon.entry-abfbde42.js} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-f7f53255.js → scheduler-config-store-ed4a8dfd-2619e757.js} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-b2986359.cjs → scheduler-config-store-ed4a8dfd-96520080.cjs} +1 -1
- package/dist/{scheduler-store-20151a77-2dfd28c2.cjs → scheduler-store-3acf4d70-53282ac4.cjs} +1 -1
- package/dist/{scheduler-store-20151a77-4f7ffb6f.js → scheduler-store-3acf4d70-68aacbea.js} +2 -2
- package/dist/{sent-icon.entry-18afc1f9.cjs → sent-icon.entry-2b183210.cjs} +1 -1
- package/dist/{sent-icon.entry-60f1b814.js → sent-icon.entry-77bb678e.js} +1 -1
- package/dist/{spam-icon.entry-b580b108.js → spam-icon.entry-42f9c9e7.js} +1 -1
- package/dist/{spam-icon.entry-9d41427e.cjs → spam-icon.entry-cbeaca0c.cjs} +1 -1
- package/dist/{star-icon.entry-7cbe5a81.js → star-icon.entry-6fc95071.js} +1 -1
- package/dist/{star-icon.entry-8792026f.cjs → star-icon.entry-a6e85c82.cjs} +1 -1
- package/dist/{stop-icon.entry-ae629874.js → stop-icon.entry-8b041eda.js} +1 -1
- package/dist/{stop-icon.entry-5b605364.cjs → stop-icon.entry-eee61c96.cjs} +1 -1
- package/dist/{textarea-component.entry-2dae13db.cjs → textarea-component.entry-cbe424d4.cjs} +1 -1
- package/dist/{textarea-component.entry-fa87a032.js → textarea-component.entry-dc92a53f.js} +1 -1
- package/dist/{time-period-selector.entry-0de79682.js → time-period-selector.entry-45ca7b1a.js} +56 -37
- package/dist/time-period-selector.entry-60718809.cjs +1 -0
- package/dist/{translate-icon.entry-07e9c2cf.js → translate-icon.entry-447f1502.js} +1 -1
- package/dist/{translate-icon.entry-22ef3602.cjs → translate-icon.entry-7307d3f1.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-d332cf5d.cjs → trash-fill-icon.entry-1138f73e.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-81ee0fdf.js → trash-fill-icon.entry-7d11144b.js} +1 -1
- package/dist/{underline-icon.entry-dce1c48b.js → underline-icon.entry-6acfca57.js} +1 -1
- package/dist/{underline-icon.entry-e381e3d2.cjs → underline-icon.entry-c636ca0e.cjs} +1 -1
- package/dist/{warning-icon.entry-b55e52d0.cjs → warning-icon.entry-03615141.cjs} +1 -1
- package/dist/{warning-icon.entry-76d03910.js → warning-icon.entry-290eb052.js} +1 -1
- package/package.json +2 -2
- package/dist/calendar-agenda-fill-icon_53.entry-89e5ac45.cjs +0 -9
- package/dist/checkbox-component_3.entry-10293364.cjs +0 -1
- package/dist/multi-select-dropdown.entry-00e43a89.cjs +0 -1
- package/dist/time-period-selector.entry-b1f5523b.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as g, h as s, c as x, d, D as
|
|
2
|
-
import { R as S } from "./register-component-5d7bcc15-
|
|
3
|
-
import { D as
|
|
1
|
+
import { r as g, h as s, c as x, d, D as ya, H as E, g as O, E as ye, G as se, I as it, J as st, t as Oe, K as Qn, L as ba, i as be, M as ge, O as ga } from "./index-589f8eee.js";
|
|
2
|
+
import { R as S } from "./register-component-5d7bcc15-43981253.js";
|
|
3
|
+
import { D as _t, T as ot, F as rt, c as va, P as on, C as _a, E as lt, R as dt, d as Ca, e as wa } from "./constants-54af2051-767e8462.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const xa = ".sc-calendar-agenda-fill-icon-h{display:flex}", ka = xa, Ea = class {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
g(this, e), this.width = "20", this.height = "20";
|
|
9
9
|
}
|
|
@@ -11,8 +11,8 @@ const wa = ".sc-calendar-agenda-fill-icon-h{display:flex}", xa = wa, ka = class
|
|
|
11
11
|
return s("svg", { key: "a275ba280fae8412c15b1fd1034e488be4cb2d27", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "a3092e55e03efede059223a3a7278761a00c07a5", 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" }));
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
const
|
|
14
|
+
Ea.style = ka;
|
|
15
|
+
const Oa = ".sc-calendar-agenda-icon-h{display:flex}", Sa = Oa, Ha = class {
|
|
16
16
|
constructor(e) {
|
|
17
17
|
g(this, e), this.width = "20", this.height = "20";
|
|
18
18
|
}
|
|
@@ -20,8 +20,8 @@ const Ea = ".sc-calendar-agenda-icon-h{display:flex}", Oa = Ea, Sa = class {
|
|
|
20
20
|
return s("svg", { key: "9e7bcafa585dc17975a1793711df835ca7d8d9c1", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "184e8215d1dc6a66b9041cacd4687a446b72a6ec", 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" }));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
const Da = ".sc-calendar-info-icon-h{display:flex}",
|
|
23
|
+
Ha.style = Sa;
|
|
24
|
+
const Da = ".sc-calendar-info-icon-h{display:flex}", Ta = Da, Ia = class {
|
|
25
25
|
constructor(e) {
|
|
26
26
|
g(this, e), this.width = "20", this.height = "20";
|
|
27
27
|
}
|
|
@@ -29,8 +29,8 @@ const Da = ".sc-calendar-info-icon-h{display:flex}", Ha = Da, Ta = class {
|
|
|
29
29
|
return s("svg", { key: "7ff2928e9a5dd1d9f96b869c4f8f45810117d55f", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "2c83ca56082a787a853d65c02ed6adf6c6d7a44c", 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" }));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
const
|
|
32
|
+
Ia.style = Ta;
|
|
33
|
+
const $a = ".sc-calendar-patterns-icon-h{display:flex}", Fa = $a, Pa = class {
|
|
34
34
|
constructor(e) {
|
|
35
35
|
g(this, e), this.width = "20", this.height = "20";
|
|
36
36
|
}
|
|
@@ -38,8 +38,8 @@ const Ia = ".sc-calendar-patterns-icon-h{display:flex}", $a = Ia, Fa = class {
|
|
|
38
38
|
return s("svg", { key: "8d830ffc53fbe073dddec56cf7819f1738539f22", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "3752fd1b7b498f1e2aee01aa5b3621a577f7a3b8", 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" }));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
const
|
|
41
|
+
Pa.style = Fa;
|
|
42
|
+
const La = ".sc-checkmark-icon-h{display:flex}", Na = La, Ra = class {
|
|
43
43
|
constructor(e) {
|
|
44
44
|
g(this, e), this.width = "18", this.height = "14";
|
|
45
45
|
}
|
|
@@ -47,8 +47,8 @@ const Na = ".sc-checkmark-icon-h{display:flex}", Pa = Na, La = class {
|
|
|
47
47
|
return s("svg", { key: "49ad9466fa210919af89c80d546cf2a846b84d49", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "08d62d352782e9847494ebc8daad7e1300ebaad9", d: "M1.53033 7.46967C1.23744 7.17678 0.762563 7.17678 0.46967 7.46967C0.176777 7.76256 0.176777 8.23744 0.46967 8.53033L4.96967 13.0303C5.26256 13.3232 5.73744 13.3232 6.03033 13.0303L17.0303 2.03033C17.3232 1.73744 17.3232 1.26256 17.0303 0.96967C16.7374 0.676777 16.2626 0.676777 15.9697 0.96967L5.5 11.4393L1.53033 7.46967Z", fill: "#293056" }));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
const
|
|
50
|
+
Ra.style = Na;
|
|
51
|
+
const Aa = ".sc-dragable-icon-h{display:flex}", Ma = Aa, za = class {
|
|
52
52
|
constructor(e) {
|
|
53
53
|
g(this, e), this.width = "20", this.height = "20";
|
|
54
54
|
}
|
|
@@ -56,8 +56,8 @@ const Ra = ".sc-dragable-icon-h{display:flex}", Aa = Ra, Ma = class {
|
|
|
56
56
|
return s("svg", { key: "eafe936e1e9cc4c5b877fdf8329f0092055d3b12", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "23d5d793affa4fe72001dcbacf9adb624c8ebe87", d: "M15.5 18C16.3284 18 17 18.6716 17 19.5C17 20.3284 16.3284 21 15.5 21C14.6716 21 14 20.3284 14 19.5C14 18.6716 14.6716 18 15.5 18ZM8.5 18C9.32843 18 10 18.6716 10 19.5C10 20.3284 9.32843 21 8.5 21C7.67157 21 7 20.3284 7 19.5C7 18.6716 7.67157 18 8.5 18ZM15.5 11C16.3284 11 17 11.6716 17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11ZM8.5 11C9.32843 11 10 11.6716 10 12.5C10 13.3284 9.32843 14 8.5 14C7.67157 14 7 13.3284 7 12.5C7 11.6716 7.67157 11 8.5 11ZM15.5 4C16.3284 4 17 4.67157 17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4ZM8.5 4C9.32843 4 10 4.67157 10 5.5C10 6.32843 9.32843 7 8.5 7C7.67157 7 7 6.32843 7 5.5C7 4.67157 7.67157 4 8.5 4Z", fill: "currentColor" }));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
const
|
|
59
|
+
za.style = Ma;
|
|
60
|
+
const ja = ".sc-envelope-fill-icon-h{display:flex}", Ua = ja, Wa = class {
|
|
61
61
|
constructor(e) {
|
|
62
62
|
g(this, e), this.width = "16", this.height = "13";
|
|
63
63
|
}
|
|
@@ -65,8 +65,8 @@ const za = ".sc-envelope-fill-icon-h{display:flex}", ja = za, Ua = class {
|
|
|
65
65
|
return s("svg", { key: "deb9b906ee52d7698b1b2acd3edec06c8cb4a2e1", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "3bd3caa47b4ecb0c5347dc8c71ee33ff57653913", 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" }));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
const Ba = ".sc-envelope-icon-h{display:flex}",
|
|
68
|
+
Wa.style = Ua;
|
|
69
|
+
const Ba = ".sc-envelope-icon-h{display:flex}", Za = Ba, qa = class {
|
|
70
70
|
constructor(e) {
|
|
71
71
|
g(this, e), this.width = "16", this.height = "13";
|
|
72
72
|
}
|
|
@@ -74,8 +74,8 @@ const Ba = ".sc-envelope-icon-h{display:flex}", Wa = Ba, Za = class {
|
|
|
74
74
|
return s("svg", { key: "73122f7a719952a557845096eaf5d47960f1f684", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "02a7f44ed198e422ccf2aff73400f8b6327f5cf7", 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" }));
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
const
|
|
77
|
+
qa.style = Za;
|
|
78
|
+
const Va = ".sc-eye-icon-h{display:flex}", Ja = Va, Ga = class {
|
|
79
79
|
constructor(e) {
|
|
80
80
|
g(this, e), this.width = "17", this.height = "10";
|
|
81
81
|
}
|
|
@@ -83,8 +83,8 @@ const qa = ".sc-eye-icon-h{display:flex}", Va = qa, Ja = class {
|
|
|
83
83
|
return s("svg", { key: "b6e4ef2a9e507d094def976df8d6f61e419881d8", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "2c0fd33d221150b5da2405e40574abb4208999d1", d: "M1.75909 6.60214C2.44254 3.32689 5.29437 1 8.50002 1C11.7057 1 14.5574 3.32688 15.2409 6.60215C15.2974 6.87246 15.5622 7.04587 15.8325 6.98946C16.1029 6.93304 16.2763 6.66817 16.2199 6.39785C15.4425 2.67312 12.1934 0 8.50002 0C4.8066 0 1.55742 2.67311 0.780175 6.39786C0.723767 6.66818 0.897177 6.93305 1.1675 6.98946C1.43782 7.04587 1.70268 6.87246 1.75909 6.60214ZM8.5 3C6.567 3 5 4.567 5 6.5C5 8.433 6.567 10 8.5 10C10.433 10 12 8.433 12 6.5C12 4.567 10.433 3 8.5 3ZM6 6.5C6 5.11929 7.11929 4 8.5 4C9.88071 4 11 5.11929 11 6.5C11 7.88071 9.88071 9 8.5 9C7.11929 9 6 7.88071 6 6.5Z", fill: "currentColor" }));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
|
|
87
|
-
const
|
|
86
|
+
Ga.style = Ja;
|
|
87
|
+
const Ya = ".sc-feedback-icon-h{display:flex}", Xa = Ya, Ka = class {
|
|
88
88
|
constructor(e) {
|
|
89
89
|
g(this, e), this.width = "11", this.height = "14";
|
|
90
90
|
}
|
|
@@ -92,8 +92,8 @@ const Ga = ".sc-feedback-icon-h{display:flex}", Ya = Ga, Xa = class {
|
|
|
92
92
|
return s("svg", { key: "fc5d4aa6d299768c11f13c54218eaf28a45c97df", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "457d0f4155d6da655950e8fb1d3c74374b053782", d: "M0.5 8.875C0.5 8.875 1.125 8.25 3 8.25C4.875 8.25 6.125 9.5 8 9.5C9.875 9.5 10.5 8.875 10.5 8.875V1.375C10.5 1.375 9.875 2 8 2C6.125 2 4.875 0.75 3 0.75C1.125 0.75 0.5 1.375 0.5 1.375V8.875ZM0.5 8.875V13.25", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
|
|
96
|
-
const
|
|
95
|
+
Ka.style = Xa;
|
|
96
|
+
const Qa = ".sc-flow-icon-h{display:flex}", ei = Qa, ni = class {
|
|
97
97
|
constructor(e) {
|
|
98
98
|
g(this, e), this.width = "16", this.height = "12";
|
|
99
99
|
}
|
|
@@ -101,8 +101,8 @@ const Ka = ".sc-flow-icon-h{display:flex}", Qa = Ka, ei = class {
|
|
|
101
101
|
return s("svg", { key: "c6782480f25c3598e585303021c510ec90f8de26", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "76a3d0ff8fccddb49969623ab60b1ae2c9d2d0e2", 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" }));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
const
|
|
104
|
+
ni.style = ei;
|
|
105
|
+
const ti = ".sc-google-meet-icon-h{display:flex}", ai = ti, ii = class {
|
|
106
106
|
constructor(e) {
|
|
107
107
|
g(this, e), this.width = "20", this.height = "20";
|
|
108
108
|
}
|
|
@@ -110,9 +110,9 @@ const ni = ".sc-google-meet-icon-h{display:flex}", ti = ni, ai = class {
|
|
|
110
110
|
return s("svg", { key: "b68e005c64b1deb85367e52afa53a3583420d6fc", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "c107fef0d62794b094d8096789b20ef66ad2f66d", "clip-path": "url(#clip0_22_6251)" }, s("path", { key: "f7ddbd7ef73ae7addaaa81a42d419c8e04e31341", d: "M11.3145 10.1036L13.2642 12.3321L15.8859 14.0076L16.343 10.1173L15.8859 6.31384L13.2139 7.78584L11.3145 10.1036Z", fill: "#00832D" }), s("path", { key: "678ee765afd11161ed9f7fe60015536077e708dc", d: "M0 13.6464V16.9607C0 17.7184 0.613714 18.3321 1.37143 18.3321H4.68571L5.37143 15.827L4.68571 13.6464L2.41143 12.9607L0 13.6464Z", fill: "#0066DA" }), s("path", { key: "5329acfae94e546cc21a4bc4803a584d41f4f644", d: "M4.68571 1.875L0 6.56071L2.41143 7.24643L4.68571 6.56071L5.36 4.40986L4.68571 1.875Z", fill: "#E94235" }), s("path", { key: "4441dc496cbe7317883740d0aa3469261bd7330f", d: "M4.68571 6.56067H0V13.6464H4.68571V6.56067Z", fill: "#2684FC" }), s("path", { key: "6cd237dedd6d0e9e98905a56d7cc437ec5994cae", d: "M18.8798 3.85895L15.8855 6.31381V14.0075L18.8935 16.4738C19.3438 16.8258 20.0021 16.5047 20.0021 15.9321V4.38923C20.0021 3.80981 19.329 3.49209 18.8798 3.85895ZM11.3141 10.1035V13.6464H4.68555V18.3321H14.5141C15.2718 18.3321 15.8855 17.7184 15.8855 16.9607V14.0075L11.3141 10.1035Z", fill: "#00AC47" }), s("path", { key: "7d00a0a63e9825231cececa544a516eb0a567609", d: "M14.5141 1.875H4.68555V6.56071H11.3141V10.1036L15.8855 6.31614V3.24643C15.8855 2.48871 15.2718 1.875 14.5141 1.875Z", fill: "#FFBA00" })), s("defs", { key: "6efd6aace86d9b576642ef44fbb27c73f7b14057" }, s("clipPath", { key: "79f87c29c41836a9ee2319f66c86ec19e6d1d329", id: "clip0_22_6251" }, s("rect", { key: "6d872b34ea312c8378c0762f342ea55d7d1b87ae", width: "20", height: "20", fill: "white" }))));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
var
|
|
113
|
+
ii.style = ai;
|
|
114
|
+
const si = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.logo-container{display:flex;flex-direction:row;gap:2rem}.logo-container .input-container{flex:1}.logo-container .input-container span.error-message{color:var(--nylas-error)}.logo-container .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}.logo-container .logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}', oi = si;
|
|
115
|
+
var ri = function(e, n, t, a) {
|
|
116
116
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
117
117
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
118
118
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -124,7 +124,7 @@ var oi = function(e, n, t, a) {
|
|
|
124
124
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
125
125
|
return Reflect.metadata(e, n);
|
|
126
126
|
};
|
|
127
|
-
const
|
|
127
|
+
const Ct = class {
|
|
128
128
|
constructor(e) {
|
|
129
129
|
g(this, e), this.nylasFormInputImageUrlInvalid = x(this, "nylasFormInputImageUrlInvalid", 7), this.valueChanged = x(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.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
|
|
130
130
|
}
|
|
@@ -164,7 +164,7 @@ const _t = class {
|
|
|
164
164
|
n === this.name && this.setImage(t);
|
|
165
165
|
}
|
|
166
166
|
setImage(e) {
|
|
167
|
-
this.errorMessage = "",
|
|
167
|
+
this.errorMessage = "", ya(e).then(() => {
|
|
168
168
|
this.currentImageUrl = e, this.internals.setValidity({}), this.internals.setFormValue(this.currentImageUrl, this.name), this.valueChanged.emit({ value: this.currentImageUrl, name: this.name });
|
|
169
169
|
}).catch(() => {
|
|
170
170
|
this.errorMessage = "Invalid image URL.", this.nylasFormInputImageUrlInvalid.emit({ value: "Invalid image URL.", name: this.name }), typeof this.internals.setValidity == "function" && this.internals.setValidity({ customError: !0 }, "Invalid image URL.");
|
|
@@ -185,7 +185,7 @@ const _t = class {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
ri([
|
|
189
189
|
S({
|
|
190
190
|
name: "nylas-image-input",
|
|
191
191
|
eventToProps: {
|
|
@@ -198,9 +198,9 @@ oi([
|
|
|
198
198
|
rn("design:type", Function),
|
|
199
199
|
rn("design:paramtypes", []),
|
|
200
200
|
rn("design:returntype", void 0)
|
|
201
|
-
],
|
|
202
|
-
|
|
203
|
-
const
|
|
201
|
+
], Ct.prototype, "render", null);
|
|
202
|
+
Ct.style = oi;
|
|
203
|
+
const li = ".sc-location-icon-h{display:flex}", di = li, ci = class {
|
|
204
204
|
constructor(e) {
|
|
205
205
|
g(this, e), this.width = "16", this.height = "18";
|
|
206
206
|
}
|
|
@@ -208,8 +208,8 @@ const ri = ".sc-location-icon-h{display:flex}", li = ri, di = class {
|
|
|
208
208
|
return s("svg", { key: "41c6752fb26ae7aa42d7bdfbadc16c2869e37d03", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "04912d24e06cbad0c6ece45f19827bbb62cfbcd0", d: "M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z", fill: "currentColor" }));
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
|
|
212
|
-
const
|
|
211
|
+
ci.style = di;
|
|
212
|
+
const pi = ".sc-location-off-icon-h{display:flex}", fi = pi, mi = class {
|
|
213
213
|
constructor(e) {
|
|
214
214
|
g(this, e), this.width = "16", this.height = "18";
|
|
215
215
|
}
|
|
@@ -217,8 +217,8 @@ const ci = ".sc-location-off-icon-h{display:flex}", pi = ci, fi = class {
|
|
|
217
217
|
return s("svg", { key: "63a6c285582208662ae8307e37621e96a22ce5f3", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "cf2dfb48d9a1e3b2d03aa86e37a79c702547bf8e", d: "M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z", fill: "currentColor" }));
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
|
-
|
|
221
|
-
const
|
|
220
|
+
mi.style = fi;
|
|
221
|
+
const hi = ".sc-microsoft-teams-icon-h{display:flex}", ui = hi, yi = class {
|
|
222
222
|
constructor(e) {
|
|
223
223
|
g(this, e), this.width = "20", this.height = "20";
|
|
224
224
|
}
|
|
@@ -226,9 +226,9 @@ const mi = ".sc-microsoft-teams-icon-h{display:flex}", ui = mi, hi = class {
|
|
|
226
226
|
return s("svg", { key: "43015b1429d29b0ce4d72d6efa983cf972200345", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "181d622e54dd6034328a3e2969d2c7435e0fe47c", "clip-path": "url(#clip0_22_6280)" }, s("path", { key: "a8371f19ba59bcb5299c27aee9bd9031100f113a", d: "M13.7109 7.60168H18.8769C19.365 7.60168 19.7607 7.99734 19.7607 8.4854V13.191C19.7607 14.9848 18.3065 16.4389 16.5127 16.4389H16.4974C14.7036 16.4391 13.2493 14.9852 13.249 13.1914C13.249 13.1913 13.249 13.1911 13.249 13.191V8.06355C13.249 7.80847 13.4558 7.60168 13.7109 7.60168Z", fill: "#5059C9" }), s("path", { key: "6938ccf952810d13a1f56a2cef920dc580204df1", d: "M17.2024 6.67152C18.3583 6.67152 19.2954 5.73444 19.2954 4.5785C19.2954 3.42255 18.3583 2.48547 17.2024 2.48547C16.0465 2.48547 15.1094 3.42255 15.1094 4.5785C15.1094 5.73444 16.0465 6.67152 17.2024 6.67152Z", fill: "#5059C9" }), s("path", { key: "6183cc2e18656369c6b6b13eba20256a91ca13be", d: "M10.6912 6.67152C12.3609 6.67152 13.7145 5.31796 13.7145 3.64826C13.7145 1.97856 12.3609 0.625 10.6912 0.625C9.02153 0.625 7.66797 1.97856 7.66797 3.64826C7.66797 5.31796 9.02153 6.67152 10.6912 6.67152Z", fill: "#7B83EB" }), s("path", { key: "0f555b8edfa78d27a064e2b8c355e652105dcef8", d: "M14.7223 7.60168H6.19482C5.71257 7.61362 5.33108 8.01384 5.34227 8.49611V13.8631C5.27492 16.7571 7.56457 19.1588 10.4586 19.2296C13.3525 19.1588 15.6422 16.7571 15.5748 13.8631V8.49611C15.586 8.01384 15.2045 7.61362 14.7223 7.60168Z", fill: "#7B83EB" }), s("path", { key: "f70b7f02b9afc002c0f54c5109aa37f9443b530b", opacity: "0.1", d: "M10.9234 7.60168V15.1226C10.9211 15.4675 10.7121 15.7773 10.3932 15.9087C10.2917 15.9516 10.1825 15.9738 10.0723 15.9738H5.75134C5.69088 15.8203 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.9234Z", fill: "black" }), s("path", { key: "099a90b1bcf8844977911db140a55b77e3d40dcb", opacity: "0.2", d: "M10.4583 7.60168V15.5877C10.4583 15.698 10.4362 15.8071 10.3932 15.9087C10.2619 16.2276 9.95205 16.4366 9.60717 16.4389H5.96995C5.89088 16.2854 5.81646 16.1319 5.75134 15.9738C5.68623 15.8156 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), s("path", { key: "df916fd9bb304a77cc01949e5322d635aef30dd4", opacity: "0.2", d: "M10.4583 7.60168V14.6575C10.4548 15.1261 10.0758 15.5051 9.60716 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), s("path", { key: "48cfb8d7f434c8899770155eef6a72184f698942", opacity: "0.2", d: "M9.9932 7.60168V14.6575C9.98965 15.1261 9.61065 15.5051 9.14203 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H9.9932Z", fill: "black" }), s("path", { key: "7418c396c4b00ef2c7de4d5035c46be0cf51224f", opacity: "0.1", d: "M10.9241 5.1971V6.66222C10.845 6.66687 10.7706 6.67152 10.6915 6.67152C10.6124 6.67152 10.538 6.66687 10.4589 6.66222C10.3019 6.6518 10.1462 6.62689 9.99382 6.5878C9.05195 6.36475 8.27382 5.70421 7.90079 4.81106C7.83661 4.66107 7.78678 4.50533 7.75195 4.34595H10.0729C10.5422 4.34772 10.9223 4.72775 10.9241 5.1971Z", fill: "black" }), s("path", { key: "4611d18789afc14764c6355c36ff4639c07ef3ea", opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), s("path", { key: "6a0b1761698c016c3ed6f15020e17c592ae8fd85", opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), s("path", { key: "9ac985a013b79dcc739fd48069d7a54956b48a07", opacity: "0.2", d: "M9.99341 5.6622V6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.14225C9.6116 4.81282 9.99163 5.19286 9.99341 5.6622Z", fill: "black" }), s("path", { key: "22aa61c2fbca8ea8599efa657405e3258f9a3e25", d: "M0.613296 4.81104H9.14074C9.61159 4.81104 9.99329 5.19274 9.99329 5.66359V14.191C9.99329 14.6619 9.61158 15.0436 9.14074 15.0436H0.613296C0.14244 15.0436 -0.239258 14.6619 -0.239258 14.191V5.66359C-0.239258 5.19274 0.142449 4.81104 0.613296 4.81104Z", fill: "url(#paint0_linear_22_6280)" }), s("path", { key: "cd2d8e75fa6bbb92b70006a507bd8447c5cbf7a7", d: "M7.12025 8.05659H5.4156V12.6985H4.32956V8.05659H2.63281V7.15613H7.12025V8.05659Z", fill: "white" })), s("defs", { key: "1b9552dc22885c57462fd2ae8b4c26dc2c79d92d" }, s("linearGradient", { key: "ea753705cbbdb91c51fc04a167b6afd3f41d41d9", id: "paint0_linear_22_6280", x1: "1.53835", y1: "4.14486", x2: "8.2157", y2: "15.7098", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "8390ae19866ffe03bd03d5b9b0a3a33fb2277e62", "stop-color": "#5A62C3" }), s("stop", { key: "80dd7a6a24bf2e42aac98ce40442501ab4e2395c", offset: "0.5", "stop-color": "#4D55BD" }), s("stop", { key: "59b6e034bc93cabef37a02ae9f4f16dfa957f8a7", offset: "1", "stop-color": "#3940AB" })), s("clipPath", { key: "124d7ccc8361f874fa3042ad4657900b9a3b3a4c", id: "clip0_22_6280" }, s("rect", { key: "2d92a7a7313625c8a8684630a25bb506bfb17a54", width: "20", height: "20", fill: "white" }))));
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
var
|
|
229
|
+
yi.style = ui;
|
|
230
|
+
const bi = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__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-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}', gi = bi;
|
|
231
|
+
var vi = function(e, n, t, a) {
|
|
232
232
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
233
233
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
234
234
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -240,7 +240,7 @@ var gi = function(e, n, t, a) {
|
|
|
240
240
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
241
241
|
return Reflect.metadata(e, n);
|
|
242
242
|
};
|
|
243
|
-
const
|
|
243
|
+
const wt = class {
|
|
244
244
|
constructor(e) {
|
|
245
245
|
g(this, e), this.valueChanged = x(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 = "participants", this.selectedConfiguration = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.participantOptions = void 0, this.eventParticipants = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = !1, this.error = "";
|
|
246
246
|
}
|
|
@@ -254,10 +254,10 @@ const Ct = class {
|
|
|
254
254
|
d("nylas-additional-participants", "connectedCallback");
|
|
255
255
|
}
|
|
256
256
|
componentWillLoad() {
|
|
257
|
-
d("nylas-additional-participants", "componentWillLoad"), this.host.setAttribute("name", this.name)
|
|
257
|
+
d("nylas-additional-participants", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
258
258
|
}
|
|
259
259
|
componentDidLoad() {
|
|
260
|
-
d("nylas-additional-participants", "componentDidLoad");
|
|
260
|
+
d("nylas-additional-participants", "componentDidLoad"), this.updateState(this.selectedConfiguration, this.currentUser);
|
|
261
261
|
}
|
|
262
262
|
disconnectedCallback() {
|
|
263
263
|
d("nylas-additional-participants", "disconnectedCallback");
|
|
@@ -346,7 +346,7 @@ const Ct = class {
|
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
348
|
};
|
|
349
|
-
|
|
349
|
+
vi([
|
|
350
350
|
S({
|
|
351
351
|
name: "nylas-additional-participants",
|
|
352
352
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -361,10 +361,10 @@ gi([
|
|
|
361
361
|
ln("design:type", Function),
|
|
362
362
|
ln("design:paramtypes", []),
|
|
363
363
|
ln("design:returntype", void 0)
|
|
364
|
-
],
|
|
365
|
-
|
|
366
|
-
const
|
|
367
|
-
var
|
|
364
|
+
], wt.prototype, "render", null);
|
|
365
|
+
wt.style = gi;
|
|
366
|
+
const _i = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}', Ci = _i;
|
|
367
|
+
var wi = function(e, n, t, a) {
|
|
368
368
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
369
369
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
370
370
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -376,7 +376,7 @@ var Ci = function(e, n, t, a) {
|
|
|
376
376
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
377
377
|
return Reflect.metadata(e, n);
|
|
378
378
|
};
|
|
379
|
-
const
|
|
379
|
+
const xt = class {
|
|
380
380
|
constructor(e) {
|
|
381
381
|
g(this, e), this.valueChanged = x(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.schedule = {
|
|
382
382
|
SUN: [],
|
|
@@ -393,7 +393,7 @@ const wt = class {
|
|
|
393
393
|
}
|
|
394
394
|
configChangedHandler(e) {
|
|
395
395
|
var a, o, i;
|
|
396
|
-
const n = ((o = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.default_open_hours) ??
|
|
396
|
+
const n = ((o = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.default_open_hours) ?? _t, t = ((i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.timezone) ?? this.defaultTimezone;
|
|
397
397
|
this.timezone = this.name === "availability" ? t : this.defaultTimezone, this.openHours ? this.openHoursToSchedule(this.openHours) : n && this.openHoursToSchedule(n);
|
|
398
398
|
}
|
|
399
399
|
scheduleChanged(e, n) {
|
|
@@ -463,8 +463,8 @@ const wt = class {
|
|
|
463
463
|
}
|
|
464
464
|
getOverlaps(e) {
|
|
465
465
|
let n = e.map((a, o) => ({
|
|
466
|
-
start:
|
|
467
|
-
end:
|
|
466
|
+
start: ye(a.start),
|
|
467
|
+
end: ye(a.end),
|
|
468
468
|
originalIndex: o
|
|
469
469
|
}));
|
|
470
470
|
n.sort((a, o) => a.start - o.start);
|
|
@@ -479,33 +479,33 @@ const wt = class {
|
|
|
479
479
|
this.schedule[e] = [{ start: "09:00am", end: "05:00pm" }];
|
|
480
480
|
else {
|
|
481
481
|
const o = n.map((r) => ({
|
|
482
|
-
start:
|
|
483
|
-
end:
|
|
482
|
+
start: ye(r.start),
|
|
483
|
+
end: ye(r.end)
|
|
484
484
|
})).sort((r, l) => r.start - l.start), i = o[o.length - 1].end;
|
|
485
485
|
if (i + 60 <= a)
|
|
486
486
|
this.schedule[e].push({
|
|
487
|
-
start: se(
|
|
488
|
-
end: se(
|
|
487
|
+
start: se(ge(i)),
|
|
488
|
+
end: se(ge(i + 60))
|
|
489
489
|
});
|
|
490
490
|
else {
|
|
491
491
|
let r = !1;
|
|
492
492
|
if (o[0].start > t + 60 && (this.schedule[e].push({
|
|
493
|
-
start: se(
|
|
494
|
-
end: se(
|
|
493
|
+
start: se(ge(t)),
|
|
494
|
+
end: se(ge(t + 60))
|
|
495
495
|
}), r = !0), !r)
|
|
496
496
|
for (let l = 0; l < o.length - 1; l++) {
|
|
497
497
|
const c = o[l].end;
|
|
498
498
|
if (o[l + 1].start - c >= 60) {
|
|
499
499
|
this.schedule[e].push({
|
|
500
|
-
start: se(
|
|
501
|
-
end: se(
|
|
500
|
+
start: se(ge(c)),
|
|
501
|
+
end: se(ge(c + 60))
|
|
502
502
|
});
|
|
503
503
|
break;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
this.schedule[e].sort((o, i) =>
|
|
508
|
+
this.schedule[e].sort((o, i) => ye(o.start) - ye(i.start)), this.schedule = { ...this.schedule };
|
|
509
509
|
}
|
|
510
510
|
removeTimeRange(e, n) {
|
|
511
511
|
this.schedule[e].splice(n, 1), this.schedule = { ...this.schedule };
|
|
@@ -594,7 +594,7 @@ const wt = class {
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
|
-
|
|
597
|
+
wi([
|
|
598
598
|
S({
|
|
599
599
|
name: "nylas-availability-picker",
|
|
600
600
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -603,10 +603,10 @@ Ci([
|
|
|
603
603
|
dn("design:type", Function),
|
|
604
604
|
dn("design:paramtypes", []),
|
|
605
605
|
dn("design:returntype", void 0)
|
|
606
|
-
],
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
var
|
|
606
|
+
], xt.prototype, "render", null);
|
|
607
|
+
xt.style = Ci;
|
|
608
|
+
const xi = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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:black;font-size:1rem;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}', ki = xi;
|
|
609
|
+
var Ei = function(e, n, t, a) {
|
|
610
610
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
611
611
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
612
612
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -618,7 +618,7 @@ var ki = function(e, n, t, a) {
|
|
|
618
618
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
619
619
|
return Reflect.metadata(e, n);
|
|
620
620
|
};
|
|
621
|
-
const
|
|
621
|
+
const kt = class {
|
|
622
622
|
constructor(e) {
|
|
623
623
|
g(this, e), this.valueChanged = x(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.selectedCalendar = "";
|
|
624
624
|
}
|
|
@@ -690,7 +690,7 @@ const xt = class {
|
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
692
|
};
|
|
693
|
-
|
|
693
|
+
Ei([
|
|
694
694
|
S({
|
|
695
695
|
name: "nylas-booking-calendar-picker",
|
|
696
696
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -708,10 +708,10 @@ ki([
|
|
|
708
708
|
cn("design:type", Function),
|
|
709
709
|
cn("design:paramtypes", []),
|
|
710
710
|
cn("design:returntype", void 0)
|
|
711
|
-
],
|
|
712
|
-
|
|
713
|
-
const
|
|
714
|
-
var
|
|
711
|
+
], kt.prototype, "render", null);
|
|
712
|
+
kt.style = ki;
|
|
713
|
+
const Oi = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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)}', Si = Oi;
|
|
714
|
+
var Hi = function(e, n, t, a) {
|
|
715
715
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
716
716
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
717
717
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -723,7 +723,7 @@ var Si = function(e, n, t, a) {
|
|
|
723
723
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
724
724
|
return Reflect.metadata(e, n);
|
|
725
725
|
};
|
|
726
|
-
const
|
|
726
|
+
const Et = class {
|
|
727
727
|
constructor(e) {
|
|
728
728
|
g(this, e), this.valueChanged = x(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.currentRedirectUrl = "", this.acceptUrl = void 0, this.componentLoaded = !1;
|
|
729
729
|
}
|
|
@@ -807,7 +807,7 @@ const kt = class {
|
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
809
|
};
|
|
810
|
-
|
|
810
|
+
Hi([
|
|
811
811
|
S({
|
|
812
812
|
name: "nylas-booking-confirmation-redirect",
|
|
813
813
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -822,10 +822,10 @@ Si([
|
|
|
822
822
|
pn("design:type", Function),
|
|
823
823
|
pn("design:paramtypes", []),
|
|
824
824
|
pn("design:returntype", void 0)
|
|
825
|
-
],
|
|
826
|
-
|
|
827
|
-
const Di = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}',
|
|
828
|
-
var
|
|
825
|
+
], Et.prototype, "render", null);
|
|
826
|
+
Et.style = Si;
|
|
827
|
+
const Di = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}', Ti = Di;
|
|
828
|
+
var Ii = function(e, n, t, a) {
|
|
829
829
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
830
830
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
831
831
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -837,7 +837,7 @@ var Ti = function(e, n, t, a) {
|
|
|
837
837
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
838
838
|
return Reflect.metadata(e, n);
|
|
839
839
|
};
|
|
840
|
-
const
|
|
840
|
+
const Ot = class {
|
|
841
841
|
constructor(e) {
|
|
842
842
|
var n, t;
|
|
843
843
|
g(this, e), this.valueChanged = x(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 = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.booking_type) !== "custom-confirmation", this.selectedBookingType = void 0, this.showDropdown = void 0;
|
|
@@ -907,7 +907,7 @@ const Et = class {
|
|
|
907
907
|
};
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
|
-
|
|
910
|
+
Ii([
|
|
911
911
|
S({
|
|
912
912
|
name: "nylas-booking-confirmation-type",
|
|
913
913
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -922,8 +922,8 @@ Ti([
|
|
|
922
922
|
fn("design:type", Function),
|
|
923
923
|
fn("design:paramtypes", []),
|
|
924
924
|
fn("design:returntype", void 0)
|
|
925
|
-
],
|
|
926
|
-
|
|
925
|
+
], Ot.prototype, "render", null);
|
|
926
|
+
Ot.style = Ti;
|
|
927
927
|
/**!
|
|
928
928
|
* Sortable 1.15.2
|
|
929
929
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -944,7 +944,7 @@ function K(e) {
|
|
|
944
944
|
for (var n = 1; n < arguments.length; n++) {
|
|
945
945
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
946
946
|
n % 2 ? ct(Object(t), !0).forEach(function(a) {
|
|
947
|
-
|
|
947
|
+
$i(e, a, t[a]);
|
|
948
948
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ct(Object(t)).forEach(function(a) {
|
|
949
949
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
950
950
|
});
|
|
@@ -959,7 +959,7 @@ function Je(e) {
|
|
|
959
959
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
960
960
|
}, Je(e);
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function $i(e, n, t) {
|
|
963
963
|
return n in e ? Object.defineProperty(e, n, {
|
|
964
964
|
value: t,
|
|
965
965
|
enumerable: !0,
|
|
@@ -977,7 +977,7 @@ function ne() {
|
|
|
977
977
|
return e;
|
|
978
978
|
}, ne.apply(this, arguments);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Fi(e, n) {
|
|
981
981
|
if (e == null)
|
|
982
982
|
return {};
|
|
983
983
|
var t = {}, a = Object.keys(e), o, i;
|
|
@@ -985,10 +985,10 @@ function $i(e, n) {
|
|
|
985
985
|
o = a[i], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
|
|
986
986
|
return t;
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function Pi(e, n) {
|
|
989
989
|
if (e == null)
|
|
990
990
|
return {};
|
|
991
|
-
var t =
|
|
991
|
+
var t = Fi(e, n), a, o;
|
|
992
992
|
if (Object.getOwnPropertySymbols) {
|
|
993
993
|
var i = Object.getOwnPropertySymbols(e);
|
|
994
994
|
for (o = 0; o < i.length; o++)
|
|
@@ -996,16 +996,16 @@ function Fi(e, n) {
|
|
|
996
996
|
}
|
|
997
997
|
return t;
|
|
998
998
|
}
|
|
999
|
-
var
|
|
999
|
+
var Li = "1.15.2";
|
|
1000
1000
|
function ee(e) {
|
|
1001
1001
|
if (typeof window < "u" && window.navigator)
|
|
1002
1002
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1003
1003
|
}
|
|
1004
|
-
var te = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ee(/Edge/i), pt = ee(/firefox/i),
|
|
1004
|
+
var te = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ee(/Edge/i), pt = ee(/firefox/i), Le = ee(/safari/i) && !ee(/chrome/i) && !ee(/android/i), St = ee(/iP(ad|od|hone)/i), Ht = ee(/chrome/i) && ee(/android/i), Dt = {
|
|
1005
1005
|
capture: !1,
|
|
1006
1006
|
passive: !1
|
|
1007
1007
|
};
|
|
1008
|
-
function
|
|
1008
|
+
function H(e, n, t) {
|
|
1009
1009
|
e.addEventListener(n, t, !te && Dt);
|
|
1010
1010
|
}
|
|
1011
1011
|
function k(e, n, t) {
|
|
@@ -1027,7 +1027,7 @@ function Qe(e, n) {
|
|
|
1027
1027
|
return !1;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Ni(e) {
|
|
1031
1031
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1032
1032
|
}
|
|
1033
1033
|
function G(e, n, t, a) {
|
|
@@ -1038,12 +1038,12 @@ function G(e, n, t, a) {
|
|
|
1038
1038
|
return e;
|
|
1039
1039
|
if (e === t)
|
|
1040
1040
|
break;
|
|
1041
|
-
} while (e =
|
|
1041
|
+
} while (e = Ni(e));
|
|
1042
1042
|
}
|
|
1043
1043
|
return null;
|
|
1044
1044
|
}
|
|
1045
1045
|
var ft = /\s+/g;
|
|
1046
|
-
function
|
|
1046
|
+
function W(e, n, t) {
|
|
1047
1047
|
if (e && n)
|
|
1048
1048
|
if (e.classList)
|
|
1049
1049
|
e.classList[t ? "add" : "remove"](n);
|
|
@@ -1072,7 +1072,7 @@ function ke(e, n) {
|
|
|
1072
1072
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1073
1073
|
return o && new o(t);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Tt(e, n, t) {
|
|
1076
1076
|
if (e) {
|
|
1077
1077
|
var a = e.getElementsByTagName(n), o = 0, i = a.length;
|
|
1078
1078
|
if (t)
|
|
@@ -1086,14 +1086,14 @@ function X() {
|
|
|
1086
1086
|
var e = document.scrollingElement;
|
|
1087
1087
|
return e || document.documentElement;
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function L(e, n, t, a, o) {
|
|
1090
1090
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
1091
1091
|
var i, r, l, c, p, m, f;
|
|
1092
1092
|
if (e !== window && e.parentNode && e !== X() ? (i = e.getBoundingClientRect(), r = i.top, l = i.left, c = i.bottom, p = i.right, m = i.height, f = i.width) : (r = 0, l = 0, c = window.innerHeight, p = window.innerWidth, m = window.innerHeight, f = window.innerWidth), (n || t) && e !== window && (o = o || e.parentNode, !te))
|
|
1093
1093
|
do
|
|
1094
1094
|
if (o && o.getBoundingClientRect && (v(o, "transform") !== "none" || t && v(o, "position") !== "static")) {
|
|
1095
|
-
var
|
|
1096
|
-
r -=
|
|
1095
|
+
var u = o.getBoundingClientRect();
|
|
1096
|
+
r -= u.top + parseInt(v(o, "border-top-width")), l -= u.left + parseInt(v(o, "border-left-width")), c = r + i.height, p = l + i.width;
|
|
1097
1097
|
break;
|
|
1098
1098
|
}
|
|
1099
1099
|
while (o = o.parentNode);
|
|
@@ -1112,8 +1112,8 @@ function P(e, n, t, a, o) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
function mt(e, n, t) {
|
|
1115
|
-
for (var a = le(e, !0), o =
|
|
1116
|
-
var i =
|
|
1115
|
+
for (var a = le(e, !0), o = L(e)[n]; a; ) {
|
|
1116
|
+
var i = L(a)[t], r = void 0;
|
|
1117
1117
|
if (t === "top" || t === "left" ? r = o >= i : r = o <= i, !r)
|
|
1118
1118
|
return a;
|
|
1119
1119
|
if (a === X())
|
|
@@ -1146,7 +1146,7 @@ function q(e, n) {
|
|
|
1146
1146
|
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== _.clone && (!n || Qe(e, n)) && t++;
|
|
1147
1147
|
return t;
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function ht(e) {
|
|
1150
1150
|
var n = 0, t = 0, a = X();
|
|
1151
1151
|
if (e)
|
|
1152
1152
|
do {
|
|
@@ -1155,7 +1155,7 @@ function ut(e) {
|
|
|
1155
1155
|
} while (e !== a && (e = e.parentNode));
|
|
1156
1156
|
return [n, t];
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Ri(e, n) {
|
|
1159
1159
|
for (var t in e)
|
|
1160
1160
|
if (e.hasOwnProperty(t)) {
|
|
1161
1161
|
for (var a in n)
|
|
@@ -1182,7 +1182,7 @@ function le(e, n) {
|
|
|
1182
1182
|
while (t = t.parentNode);
|
|
1183
1183
|
return X();
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Ai(e, n) {
|
|
1186
1186
|
if (e && n)
|
|
1187
1187
|
for (var t in n)
|
|
1188
1188
|
n.hasOwnProperty(t) && (e[t] = n[t]);
|
|
@@ -1191,39 +1191,39 @@ function Ri(e, n) {
|
|
|
1191
1191
|
function mn(e, n) {
|
|
1192
1192
|
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);
|
|
1193
1193
|
}
|
|
1194
|
-
var
|
|
1195
|
-
function
|
|
1194
|
+
var Ne;
|
|
1195
|
+
function It(e, n) {
|
|
1196
1196
|
return function() {
|
|
1197
|
-
if (!
|
|
1197
|
+
if (!Ne) {
|
|
1198
1198
|
var t = arguments, a = this;
|
|
1199
|
-
t.length === 1 ? e.call(a, t[0]) : e.apply(a, t),
|
|
1200
|
-
|
|
1199
|
+
t.length === 1 ? e.call(a, t[0]) : e.apply(a, t), Ne = setTimeout(function() {
|
|
1200
|
+
Ne = void 0;
|
|
1201
1201
|
}, n);
|
|
1202
1202
|
}
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
clearTimeout(
|
|
1205
|
+
function Mi() {
|
|
1206
|
+
clearTimeout(Ne), Ne = void 0;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function $t(e, n, t) {
|
|
1209
1209
|
e.scrollLeft += n, e.scrollTop += t;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Ft(e) {
|
|
1212
1212
|
var n = window.Polymer, t = window.jQuery || window.Zepto;
|
|
1213
1213
|
return n && n.dom ? n.dom(e).cloneNode(!0) : t ? t(e).clone(!0)[0] : e.cloneNode(!0);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Pt(e, n, t) {
|
|
1216
1216
|
var a = {};
|
|
1217
1217
|
return Array.from(e.children).forEach(function(o) {
|
|
1218
1218
|
var i, r, l, c;
|
|
1219
1219
|
if (!(!G(o, n.draggable, e, !1) || o.animated || o === t)) {
|
|
1220
|
-
var p =
|
|
1220
|
+
var p = L(o);
|
|
1221
1221
|
a.left = Math.min((i = a.left) !== null && i !== void 0 ? i : 1 / 0, p.left), a.top = Math.min((r = a.top) !== null && r !== void 0 ? r : 1 / 0, p.top), a.right = Math.max((l = a.right) !== null && l !== void 0 ? l : -1 / 0, p.right), a.bottom = Math.max((c = a.bottom) !== null && c !== void 0 ? c : -1 / 0, p.bottom);
|
|
1222
1222
|
}
|
|
1223
1223
|
}), a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
1224
1224
|
}
|
|
1225
1225
|
var Z = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1226
|
-
function
|
|
1226
|
+
function zi() {
|
|
1227
1227
|
var e = [], n;
|
|
1228
1228
|
return {
|
|
1229
1229
|
captureAnimationState: function() {
|
|
@@ -1233,7 +1233,7 @@ function Mi() {
|
|
|
1233
1233
|
if (!(v(o, "display") === "none" || o === _.ghost)) {
|
|
1234
1234
|
e.push({
|
|
1235
1235
|
target: o,
|
|
1236
|
-
rect:
|
|
1236
|
+
rect: L(o)
|
|
1237
1237
|
});
|
|
1238
1238
|
var i = K({}, e[e.length - 1].rect);
|
|
1239
1239
|
if (o.thisAnimationDuration) {
|
|
@@ -1249,7 +1249,7 @@ function Mi() {
|
|
|
1249
1249
|
e.push(a);
|
|
1250
1250
|
},
|
|
1251
1251
|
removeAnimationState: function(a) {
|
|
1252
|
-
e.splice(
|
|
1252
|
+
e.splice(Ri(e, {
|
|
1253
1253
|
target: a
|
|
1254
1254
|
}), 1);
|
|
1255
1255
|
},
|
|
@@ -1261,9 +1261,9 @@ function Mi() {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
var i = !1, r = 0;
|
|
1263
1263
|
e.forEach(function(l) {
|
|
1264
|
-
var c = 0, p = l.target, m = p.fromRect, f =
|
|
1265
|
-
C && (f.top -= C.f, f.left -= C.e), p.toRect = f, p.thisAnimationDuration && mn(
|
|
1266
|
-
(y.top - f.top) / (y.left - f.left) === (m.top - f.top) / (m.left - f.left) && (c =
|
|
1264
|
+
var c = 0, p = l.target, m = p.fromRect, f = L(p), u = p.prevFromRect, b = p.prevToRect, y = l.rect, C = ke(p, !0);
|
|
1265
|
+
C && (f.top -= C.f, f.left -= C.e), p.toRect = f, p.thisAnimationDuration && mn(u, f) && !mn(m, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1266
|
+
(y.top - f.top) / (y.left - f.left) === (m.top - f.top) / (m.left - f.left) && (c = Ui(y, u, b, o.options)), mn(f, m) || (p.prevFromRect = m, p.prevToRect = f, c || (c = o.options.animation), o.animate(p, y, f, c)), c && (i = !0, r = Math.max(r, c), clearTimeout(p.animationResetTimer), p.animationResetTimer = setTimeout(function() {
|
|
1267
1267
|
p.animationTime = 0, p.prevFromRect = null, p.fromRect = null, p.prevToRect = null, p.thisAnimationDuration = null;
|
|
1268
1268
|
}, c), p.thisAnimationDuration = c);
|
|
1269
1269
|
}), clearTimeout(n), i ? n = setTimeout(function() {
|
|
@@ -1274,29 +1274,29 @@ function Mi() {
|
|
|
1274
1274
|
if (r) {
|
|
1275
1275
|
v(a, "transition", ""), v(a, "transform", "");
|
|
1276
1276
|
var l = ke(this.el), c = l && l.a, p = l && l.d, m = (o.left - i.left) / (c || 1), f = (o.top - i.top) / (p || 1);
|
|
1277
|
-
a.animatingX = !!m, a.animatingY = !!f, v(a, "transform", "translate3d(" + m + "px," + f + "px,0)"), this.forRepaintDummy =
|
|
1277
|
+
a.animatingX = !!m, a.animatingY = !!f, v(a, "transform", "translate3d(" + m + "px," + f + "px,0)"), this.forRepaintDummy = ji(a), v(a, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), v(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
|
|
1278
1278
|
v(a, "transition", ""), v(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
|
|
1279
1279
|
}, r);
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function ji(e) {
|
|
1285
1285
|
return e.offsetWidth;
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Ui(e, n, t, a) {
|
|
1288
1288
|
return Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) * a.animation;
|
|
1289
1289
|
}
|
|
1290
|
-
var
|
|
1290
|
+
var ve = [], hn = {
|
|
1291
1291
|
initializeByDefault: !0
|
|
1292
1292
|
}, je = {
|
|
1293
1293
|
mount: function(n) {
|
|
1294
|
-
for (var t in
|
|
1295
|
-
|
|
1296
|
-
|
|
1294
|
+
for (var t in hn)
|
|
1295
|
+
hn.hasOwnProperty(t) && !(t in n) && (n[t] = hn[t]);
|
|
1296
|
+
ve.forEach(function(a) {
|
|
1297
1297
|
if (a.pluginName === n.pluginName)
|
|
1298
1298
|
throw "Sortable: Cannot mount plugin ".concat(n.pluginName, " more than once");
|
|
1299
|
-
}),
|
|
1299
|
+
}), ve.push(n);
|
|
1300
1300
|
},
|
|
1301
1301
|
pluginEvent: function(n, t, a) {
|
|
1302
1302
|
var o = this;
|
|
@@ -1304,7 +1304,7 @@ var ge = [], un = {
|
|
|
1304
1304
|
o.eventCanceled = !0;
|
|
1305
1305
|
};
|
|
1306
1306
|
var i = n + "Global";
|
|
1307
|
-
|
|
1307
|
+
ve.forEach(function(r) {
|
|
1308
1308
|
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](K({
|
|
1309
1309
|
sortable: t
|
|
1310
1310
|
}, a)), t.options[r.pluginName] && t[r.pluginName][n] && t[r.pluginName][n](K({
|
|
@@ -1313,7 +1313,7 @@ var ge = [], un = {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
},
|
|
1315
1315
|
initializePlugins: function(n, t, a, o) {
|
|
1316
|
-
|
|
1316
|
+
ve.forEach(function(l) {
|
|
1317
1317
|
var c = l.pluginName;
|
|
1318
1318
|
if (!(!n.options[c] && !l.initializeByDefault)) {
|
|
1319
1319
|
var p = new l(n, t, n.options);
|
|
@@ -1328,35 +1328,35 @@ var ge = [], un = {
|
|
|
1328
1328
|
},
|
|
1329
1329
|
getEventProperties: function(n, t) {
|
|
1330
1330
|
var a = {};
|
|
1331
|
-
return
|
|
1331
|
+
return ve.forEach(function(o) {
|
|
1332
1332
|
typeof o.eventProperties == "function" && ne(a, o.eventProperties.call(t[o.pluginName], n));
|
|
1333
1333
|
}), a;
|
|
1334
1334
|
},
|
|
1335
1335
|
modifyOption: function(n, t, a) {
|
|
1336
1336
|
var o;
|
|
1337
|
-
return
|
|
1337
|
+
return ve.forEach(function(i) {
|
|
1338
1338
|
n[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (o = i.optionListeners[t].call(n[i.pluginName], a));
|
|
1339
1339
|
}), o;
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
-
function
|
|
1343
|
-
var n = e.sortable, t = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, r = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, m = e.oldDraggableIndex, f = e.newDraggableIndex,
|
|
1342
|
+
function Wi(e) {
|
|
1343
|
+
var n = e.sortable, t = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, r = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, m = e.oldDraggableIndex, f = e.newDraggableIndex, u = e.originalEvent, b = e.putSortable, y = e.extraEventProperties;
|
|
1344
1344
|
if (n = n || t && t[Z], !!n) {
|
|
1345
|
-
var C,
|
|
1345
|
+
var C, D = n.options, F = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
1346
1346
|
window.CustomEvent && !te && !ze ? C = new CustomEvent(a, {
|
|
1347
1347
|
bubbles: !0,
|
|
1348
1348
|
cancelable: !0
|
|
1349
|
-
}) : (C = document.createEvent("Event"), C.initEvent(a, !0, !0)), C.to = r || t, C.from = l || t, C.item = o || t, C.clone = i, C.oldIndex = c, C.newIndex = p, C.oldDraggableIndex = m, C.newDraggableIndex = f, C.originalEvent =
|
|
1350
|
-
var
|
|
1351
|
-
for (var V in
|
|
1352
|
-
C[V] =
|
|
1353
|
-
t && t.dispatchEvent(C),
|
|
1349
|
+
}) : (C = document.createEvent("Event"), C.initEvent(a, !0, !0)), C.to = r || t, C.from = l || t, C.item = o || t, C.clone = i, C.oldIndex = c, C.newIndex = p, C.oldDraggableIndex = m, C.newDraggableIndex = f, C.originalEvent = u, C.pullMode = b ? b.lastPutMode : void 0;
|
|
1350
|
+
var N = K(K({}, y), je.getEventProperties(a, n));
|
|
1351
|
+
for (var V in N)
|
|
1352
|
+
C[V] = N[V];
|
|
1353
|
+
t && t.dispatchEvent(C), D[F] && D[F].call(n, C);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
var Bi = ["evt"], z = function(n, t) {
|
|
1357
|
-
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i =
|
|
1357
|
+
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i = Pi(a, Bi);
|
|
1358
1358
|
je.pluginEvent.bind(_)(n, t, K({
|
|
1359
|
-
dragEl:
|
|
1359
|
+
dragEl: h,
|
|
1360
1360
|
parentEl: $,
|
|
1361
1361
|
ghostEl: w,
|
|
1362
1362
|
rootEl: T,
|
|
@@ -1370,10 +1370,10 @@ var Bi = ["evt"], z = function(n, t) {
|
|
|
1370
1370
|
originalEvent: o,
|
|
1371
1371
|
oldIndex: we,
|
|
1372
1372
|
oldDraggableIndex: Re,
|
|
1373
|
-
newIndex:
|
|
1373
|
+
newIndex: B,
|
|
1374
1374
|
newDraggableIndex: oe,
|
|
1375
|
-
hideGhostForTarget:
|
|
1376
|
-
unhideGhostForTarget:
|
|
1375
|
+
hideGhostForTarget: At,
|
|
1376
|
+
unhideGhostForTarget: Mt,
|
|
1377
1377
|
cloneNowHidden: function() {
|
|
1378
1378
|
re = !0;
|
|
1379
1379
|
},
|
|
@@ -1390,26 +1390,26 @@ var Bi = ["evt"], z = function(n, t) {
|
|
|
1390
1390
|
}, i));
|
|
1391
1391
|
};
|
|
1392
1392
|
function M(e) {
|
|
1393
|
-
|
|
1393
|
+
Wi(K({
|
|
1394
1394
|
putSortable: R,
|
|
1395
1395
|
cloneEl: I,
|
|
1396
|
-
targetEl:
|
|
1396
|
+
targetEl: h,
|
|
1397
1397
|
rootEl: T,
|
|
1398
1398
|
oldIndex: we,
|
|
1399
1399
|
oldDraggableIndex: Re,
|
|
1400
|
-
newIndex:
|
|
1400
|
+
newIndex: B,
|
|
1401
1401
|
newDraggableIndex: oe
|
|
1402
1402
|
}, e));
|
|
1403
1403
|
}
|
|
1404
|
-
var
|
|
1404
|
+
var h, $, w, T, ue, Ge, I, re, we, B, Re, oe, We, R, Ce = !1, en = !1, nn = [], fe, J, un, yn, ut, yt, $e, _e, Ae, Me = !1, Be = !1, Ye, A, bn = [], Gn = !1, tn = [], sn = typeof document < "u", Ze = St, bt = ze || te ? "cssFloat" : "float", Zi = sn && !Ht && !St && "draggable" in document.createElement("div"), Lt = function() {
|
|
1405
1405
|
if (sn) {
|
|
1406
1406
|
if (te)
|
|
1407
1407
|
return !1;
|
|
1408
1408
|
var e = document.createElement("x");
|
|
1409
1409
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1410
1410
|
}
|
|
1411
|
-
}(),
|
|
1412
|
-
var a = v(n), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ee(n, 0, t), r = Ee(n, 1, t), l = i && v(i), c = r && v(r), p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) +
|
|
1411
|
+
}(), Nt = function(n, t) {
|
|
1412
|
+
var a = v(n), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ee(n, 0, t), r = Ee(n, 1, t), l = i && v(i), c = r && v(r), p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + L(i).width, m = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + L(r).width;
|
|
1413
1413
|
if (a.display === "flex")
|
|
1414
1414
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1415
1415
|
if (a.display === "grid")
|
|
@@ -1419,20 +1419,20 @@ var u, $, w, T, ue, Ge, I, re, we, W, Re, oe, Be, R, Ce = !1, en = !1, nn = [],
|
|
|
1419
1419
|
return r && (c.clear === "both" || c.clear === f) ? "vertical" : "horizontal";
|
|
1420
1420
|
}
|
|
1421
1421
|
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || p >= o && a[bt] === "none" || r && a[bt] === "none" && p + m > o) ? "vertical" : "horizontal";
|
|
1422
|
-
},
|
|
1422
|
+
}, qi = function(n, t, a) {
|
|
1423
1423
|
var o = a ? n.left : n.top, i = a ? n.right : n.bottom, r = a ? n.width : n.height, l = a ? t.left : t.top, c = a ? t.right : t.bottom, p = a ? t.width : t.height;
|
|
1424
1424
|
return o === l || i === c || o + r / 2 === l + p / 2;
|
|
1425
|
-
},
|
|
1425
|
+
}, Vi = function(n, t) {
|
|
1426
1426
|
var a;
|
|
1427
1427
|
return nn.some(function(o) {
|
|
1428
1428
|
var i = o[Z].options.emptyInsertThreshold;
|
|
1429
1429
|
if (!(!i || et(o))) {
|
|
1430
|
-
var r =
|
|
1430
|
+
var r = L(o), l = n >= r.left - i && n <= r.right + i, c = t >= r.top - i && t <= r.bottom + i;
|
|
1431
1431
|
if (l && c)
|
|
1432
1432
|
return a = o;
|
|
1433
1433
|
}
|
|
1434
1434
|
}), a;
|
|
1435
|
-
},
|
|
1435
|
+
}, Rt = function(n) {
|
|
1436
1436
|
function t(i, r) {
|
|
1437
1437
|
return function(l, c, p, m) {
|
|
1438
1438
|
var f = l.options.group.name && c.options.group.name && l.options.group.name === c.options.group.name;
|
|
@@ -1444,27 +1444,27 @@ var u, $, w, T, ue, Ge, I, re, we, W, Re, oe, Be, R, Ce = !1, en = !1, nn = [],
|
|
|
1444
1444
|
return i;
|
|
1445
1445
|
if (typeof i == "function")
|
|
1446
1446
|
return t(i(l, c, p, m), r)(l, c, p, m);
|
|
1447
|
-
var
|
|
1448
|
-
return i === !0 || typeof i == "string" && i ===
|
|
1447
|
+
var u = (r ? l : c).options.group.name;
|
|
1448
|
+
return i === !0 || typeof i == "string" && i === u || i.join && i.indexOf(u) > -1;
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
1451
|
var a = {}, o = n.group;
|
|
1452
1452
|
(!o || Je(o) != "object") && (o = {
|
|
1453
1453
|
name: o
|
|
1454
1454
|
}), a.name = o.name, a.checkPull = t(o.pull, !0), a.checkPut = t(o.put), a.revertClone = o.revertClone, n.group = a;
|
|
1455
|
-
}, Rt = function() {
|
|
1456
|
-
!Nt && w && v(w, "display", "none");
|
|
1457
1455
|
}, At = function() {
|
|
1458
|
-
!
|
|
1456
|
+
!Lt && w && v(w, "display", "none");
|
|
1457
|
+
}, Mt = function() {
|
|
1458
|
+
!Lt && w && v(w, "display", "");
|
|
1459
1459
|
};
|
|
1460
|
-
sn && !
|
|
1460
|
+
sn && !Ht && document.addEventListener("click", function(e) {
|
|
1461
1461
|
if (en)
|
|
1462
1462
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), en = !1, !1;
|
|
1463
1463
|
}, !0);
|
|
1464
1464
|
var me = function(n) {
|
|
1465
|
-
if (
|
|
1465
|
+
if (h) {
|
|
1466
1466
|
n = n.touches ? n.touches[0] : n;
|
|
1467
|
-
var t =
|
|
1467
|
+
var t = Vi(n.clientX, n.clientY);
|
|
1468
1468
|
if (t) {
|
|
1469
1469
|
var a = {};
|
|
1470
1470
|
for (var o in n)
|
|
@@ -1472,8 +1472,8 @@ var me = function(n) {
|
|
|
1472
1472
|
a.target = a.rootEl = t, a.preventDefault = void 0, a.stopPropagation = void 0, t[Z]._onDragOver(a);
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
|
-
},
|
|
1476
|
-
|
|
1475
|
+
}, Ji = function(n) {
|
|
1476
|
+
h && h.parentNode[Z]._isOutsideThisEl(n.target);
|
|
1477
1477
|
};
|
|
1478
1478
|
function _(e, n) {
|
|
1479
1479
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
@@ -1494,7 +1494,7 @@ function _(e, n) {
|
|
|
1494
1494
|
// will be set to same as swapThreshold if default
|
|
1495
1495
|
removeCloneOnHide: !0,
|
|
1496
1496
|
direction: function() {
|
|
1497
|
-
return
|
|
1497
|
+
return Nt(e, this.options);
|
|
1498
1498
|
},
|
|
1499
1499
|
ghostClass: "sortable-ghost",
|
|
1500
1500
|
chosenClass: "sortable-chosen",
|
|
@@ -1521,30 +1521,30 @@ function _(e, n) {
|
|
|
1521
1521
|
x: 0,
|
|
1522
1522
|
y: 0
|
|
1523
1523
|
},
|
|
1524
|
-
supportPointer: _.supportPointer !== !1 && "PointerEvent" in window && !
|
|
1524
|
+
supportPointer: _.supportPointer !== !1 && "PointerEvent" in window && !Le,
|
|
1525
1525
|
emptyInsertThreshold: 5
|
|
1526
1526
|
};
|
|
1527
1527
|
je.initializePlugins(this, e, t);
|
|
1528
1528
|
for (var a in t)
|
|
1529
1529
|
!(a in n) && (n[a] = t[a]);
|
|
1530
|
-
|
|
1530
|
+
Rt(n);
|
|
1531
1531
|
for (var o in this)
|
|
1532
1532
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1533
|
-
this.nativeDraggable = n.forceFallback ? !1 :
|
|
1533
|
+
this.nativeDraggable = n.forceFallback ? !1 : Zi, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? H(e, "pointerdown", this._onTapStart) : (H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart)), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), nn.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), ne(this, zi());
|
|
1534
1534
|
}
|
|
1535
1535
|
_.prototype = /** @lends Sortable.prototype */
|
|
1536
1536
|
{
|
|
1537
1537
|
constructor: _,
|
|
1538
1538
|
_isOutsideThisEl: function(n) {
|
|
1539
|
-
!this.el.contains(n) && n !== this.el && (
|
|
1539
|
+
!this.el.contains(n) && n !== this.el && (_e = null);
|
|
1540
1540
|
},
|
|
1541
1541
|
_getDirection: function(n, t) {
|
|
1542
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, t,
|
|
1542
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, t, h) : this.options.direction;
|
|
1543
1543
|
},
|
|
1544
1544
|
_onTapStart: function(n) {
|
|
1545
1545
|
if (n.cancelable) {
|
|
1546
1546
|
var t = this, a = this.el, o = this.options, i = o.preventOnFilter, r = n.type, l = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, c = (l || n).target, p = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || c, m = o.filter;
|
|
1547
|
-
if (
|
|
1547
|
+
if (ts(a), !h && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || o.disabled) && !p.isContentEditable && !(!this.nativeDraggable && Le && c && c.tagName.toUpperCase() === "SELECT") && (c = G(c, o.draggable, a, !1), !(c && c.animated) && Ge !== c)) {
|
|
1548
1548
|
if (we = q(c), Re = q(c, o.draggable), typeof m == "function") {
|
|
1549
1549
|
if (m.call(this, n, c, this)) {
|
|
1550
1550
|
M({
|
|
@@ -1581,34 +1581,34 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1581
1581
|
},
|
|
1582
1582
|
_prepareDragStart: function(n, t, a) {
|
|
1583
1583
|
var o = this, i = o.el, r = o.options, l = i.ownerDocument, c;
|
|
1584
|
-
if (a && !
|
|
1585
|
-
var p =
|
|
1586
|
-
if (T = i,
|
|
1587
|
-
target:
|
|
1584
|
+
if (a && !h && a.parentNode === i) {
|
|
1585
|
+
var p = L(a);
|
|
1586
|
+
if (T = i, h = a, $ = h.parentNode, ue = h.nextSibling, Ge = a, We = r.group, _.dragged = h, fe = {
|
|
1587
|
+
target: h,
|
|
1588
1588
|
clientX: (t || n).clientX,
|
|
1589
1589
|
clientY: (t || n).clientY
|
|
1590
|
-
},
|
|
1590
|
+
}, ut = fe.clientX - p.left, yt = fe.clientY - p.top, this._lastX = (t || n).clientX, this._lastY = (t || n).clientY, h.style["will-change"] = "all", c = function() {
|
|
1591
1591
|
if (z("delayEnded", o, {
|
|
1592
1592
|
evt: n
|
|
1593
1593
|
}), _.eventCanceled) {
|
|
1594
1594
|
o._onDrop();
|
|
1595
1595
|
return;
|
|
1596
1596
|
}
|
|
1597
|
-
o._disableDelayedDragEvents(), !pt && o.nativeDraggable && (
|
|
1597
|
+
o._disableDelayedDragEvents(), !pt && o.nativeDraggable && (h.draggable = !0), o._triggerDragStart(n, t), M({
|
|
1598
1598
|
sortable: o,
|
|
1599
1599
|
name: "choose",
|
|
1600
1600
|
originalEvent: n
|
|
1601
|
-
}),
|
|
1601
|
+
}), W(h, r.chosenClass, !0);
|
|
1602
1602
|
}, r.ignore.split(",").forEach(function(m) {
|
|
1603
|
-
|
|
1604
|
-
}),
|
|
1603
|
+
Tt(h, m.trim(), gn);
|
|
1604
|
+
}), H(l, "dragover", me), H(l, "mousemove", me), H(l, "touchmove", me), H(l, "mouseup", o._onDrop), H(l, "touchend", o._onDrop), H(l, "touchcancel", o._onDrop), pt && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), z("delayStart", this, {
|
|
1605
1605
|
evt: n
|
|
1606
1606
|
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ze || te))) {
|
|
1607
1607
|
if (_.eventCanceled) {
|
|
1608
1608
|
this._onDrop();
|
|
1609
1609
|
return;
|
|
1610
1610
|
}
|
|
1611
|
-
|
|
1611
|
+
H(l, "mouseup", o._disableDelayedDrag), H(l, "touchend", o._disableDelayedDrag), H(l, "touchcancel", o._disableDelayedDrag), H(l, "mousemove", o._delayedDragTouchMoveHandler), H(l, "touchmove", o._delayedDragTouchMoveHandler), r.supportPointer && H(l, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(c, r.delay);
|
|
1612
1612
|
} else
|
|
1613
1613
|
c();
|
|
1614
1614
|
}
|
|
@@ -1618,14 +1618,14 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1618
1618
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1619
1619
|
},
|
|
1620
1620
|
_disableDelayedDrag: function() {
|
|
1621
|
-
|
|
1621
|
+
h && gn(h), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1622
1622
|
},
|
|
1623
1623
|
_disableDelayedDragEvents: function() {
|
|
1624
1624
|
var n = this.el.ownerDocument;
|
|
1625
1625
|
k(n, "mouseup", this._disableDelayedDrag), k(n, "touchend", this._disableDelayedDrag), k(n, "touchcancel", this._disableDelayedDrag), k(n, "mousemove", this._delayedDragTouchMoveHandler), k(n, "touchmove", this._delayedDragTouchMoveHandler), k(n, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1626
1626
|
},
|
|
1627
1627
|
_triggerDragStart: function(n, t) {
|
|
1628
|
-
t = t || n.pointerType == "touch" && n, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
1628
|
+
t = t || n.pointerType == "touch" && n, !this.nativeDraggable || t ? this.options.supportPointer ? H(document, "pointermove", this._onTouchMove) : t ? H(document, "touchmove", this._onTouchMove) : H(document, "mousemove", this._onTouchMove) : (H(h, "dragend", this), H(T, "dragstart", this._onDragStart));
|
|
1629
1629
|
try {
|
|
1630
1630
|
document.selection ? Xe(function() {
|
|
1631
1631
|
document.selection.empty();
|
|
@@ -1634,12 +1634,12 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1634
1634
|
}
|
|
1635
1635
|
},
|
|
1636
1636
|
_dragStarted: function(n, t) {
|
|
1637
|
-
if (Ce = !1, T &&
|
|
1637
|
+
if (Ce = !1, T && h) {
|
|
1638
1638
|
z("dragStarted", this, {
|
|
1639
1639
|
evt: t
|
|
1640
|
-
}), this.nativeDraggable &&
|
|
1640
|
+
}), this.nativeDraggable && H(document, "dragover", Ji);
|
|
1641
1641
|
var a = this.options;
|
|
1642
|
-
!n &&
|
|
1642
|
+
!n && W(h, a.dragClass, !1), W(h, a.ghostClass, !0), _.active = this, n && this._appendGhost(), M({
|
|
1643
1643
|
sortable: this,
|
|
1644
1644
|
name: "start",
|
|
1645
1645
|
originalEvent: t
|
|
@@ -1649,10 +1649,10 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1649
1649
|
},
|
|
1650
1650
|
_emulateDragOver: function() {
|
|
1651
1651
|
if (J) {
|
|
1652
|
-
this._lastX = J.clientX, this._lastY = J.clientY,
|
|
1652
|
+
this._lastX = J.clientX, this._lastY = J.clientY, At();
|
|
1653
1653
|
for (var n = document.elementFromPoint(J.clientX, J.clientY), t = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(J.clientX, J.clientY), n !== t); )
|
|
1654
1654
|
t = n;
|
|
1655
|
-
if (
|
|
1655
|
+
if (h.parentNode[Z]._isOutsideThisEl(n), t)
|
|
1656
1656
|
do {
|
|
1657
1657
|
if (t[Z]) {
|
|
1658
1658
|
var a = void 0;
|
|
@@ -1666,19 +1666,19 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1666
1666
|
}
|
|
1667
1667
|
n = t;
|
|
1668
1668
|
} while (t = t.parentNode);
|
|
1669
|
-
|
|
1669
|
+
Mt();
|
|
1670
1670
|
}
|
|
1671
1671
|
},
|
|
1672
1672
|
_onTouchMove: function(n) {
|
|
1673
1673
|
if (fe) {
|
|
1674
|
-
var t = this.options, a = t.fallbackTolerance, o = t.fallbackOffset, i = n.touches ? n.touches[0] : n, r = w && ke(w, !0), l = w && r && r.a, c = w && r && r.d, p = Ze && A &&
|
|
1674
|
+
var t = this.options, a = t.fallbackTolerance, o = t.fallbackOffset, i = n.touches ? n.touches[0] : n, r = w && ke(w, !0), l = w && r && r.a, c = w && r && r.d, p = Ze && A && ht(A), m = (i.clientX - fe.clientX + o.x) / (l || 1) + (p ? p[0] - bn[0] : 0) / (l || 1), f = (i.clientY - fe.clientY + o.y) / (c || 1) + (p ? p[1] - bn[1] : 0) / (c || 1);
|
|
1675
1675
|
if (!_.active && !Ce) {
|
|
1676
1676
|
if (a && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < a)
|
|
1677
1677
|
return;
|
|
1678
1678
|
this._onDragStart(n, !0);
|
|
1679
1679
|
}
|
|
1680
1680
|
if (w) {
|
|
1681
|
-
r ? (r.e += m - (
|
|
1681
|
+
r ? (r.e += m - (un || 0), r.f += f - (yn || 0)) : r = {
|
|
1682
1682
|
a: 1,
|
|
1683
1683
|
b: 0,
|
|
1684
1684
|
c: 0,
|
|
@@ -1686,21 +1686,21 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1686
1686
|
e: m,
|
|
1687
1687
|
f
|
|
1688
1688
|
};
|
|
1689
|
-
var
|
|
1690
|
-
v(w, "webkitTransform",
|
|
1689
|
+
var u = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
|
|
1690
|
+
v(w, "webkitTransform", u), v(w, "mozTransform", u), v(w, "msTransform", u), v(w, "transform", u), un = m, yn = f, J = i;
|
|
1691
1691
|
}
|
|
1692
1692
|
n.cancelable && n.preventDefault();
|
|
1693
1693
|
}
|
|
1694
1694
|
},
|
|
1695
1695
|
_appendGhost: function() {
|
|
1696
1696
|
if (!w) {
|
|
1697
|
-
var n = this.options.fallbackOnBody ? document.body : T, t =
|
|
1697
|
+
var n = this.options.fallbackOnBody ? document.body : T, t = L(h, !0, Ze, !0, n), a = this.options;
|
|
1698
1698
|
if (Ze) {
|
|
1699
1699
|
for (A = n; v(A, "position") === "static" && v(A, "transform") === "none" && A !== document; )
|
|
1700
1700
|
A = A.parentNode;
|
|
1701
|
-
A !== document.body && A !== document.documentElement ? (A === document && (A = X()), t.top += A.scrollTop, t.left += A.scrollLeft) : A = X(), bn =
|
|
1701
|
+
A !== document.body && A !== document.documentElement ? (A === document && (A = X()), t.top += A.scrollTop, t.left += A.scrollLeft) : A = X(), bn = ht(A);
|
|
1702
1702
|
}
|
|
1703
|
-
w =
|
|
1703
|
+
w = h.cloneNode(!0), W(w, a.ghostClass, !1), W(w, a.fallbackClass, !0), W(w, a.dragClass, !0), v(w, "transition", ""), v(w, "transform", ""), v(w, "box-sizing", "border-box"), v(w, "margin", 0), v(w, "top", t.top), v(w, "left", t.left), v(w, "width", t.width), v(w, "height", t.height), v(w, "opacity", "0.8"), v(w, "position", Ze ? "absolute" : "fixed"), v(w, "zIndex", "100000"), v(w, "pointerEvents", "none"), _.ghost = w, n.appendChild(w), v(w, "transform-origin", ut / parseInt(w.style.width) * 100 + "% " + yt / parseInt(w.style.height) * 100 + "%");
|
|
1704
1704
|
}
|
|
1705
1705
|
},
|
|
1706
1706
|
_onDragStart: function(n, t) {
|
|
@@ -1711,19 +1711,19 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1711
1711
|
this._onDrop();
|
|
1712
1712
|
return;
|
|
1713
1713
|
}
|
|
1714
|
-
z("setupClone", this), _.eventCanceled || (I =
|
|
1715
|
-
z("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide || T.insertBefore(I,
|
|
1714
|
+
z("setupClone", this), _.eventCanceled || (I = Ft(h), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), W(I, this.options.chosenClass, !1), _.clone = I), a.cloneId = Xe(function() {
|
|
1715
|
+
z("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide || T.insertBefore(I, h), a._hideClone(), M({
|
|
1716
1716
|
sortable: a,
|
|
1717
1717
|
name: "clone"
|
|
1718
1718
|
}));
|
|
1719
|
-
}), !t &&
|
|
1719
|
+
}), !t && W(h, i.dragClass, !0), t ? (en = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (k(document, "mouseup", a._onDrop), k(document, "touchend", a._onDrop), k(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(a, o, h)), H(document, "drop", a), v(h, "transform", "translateZ(0)")), Ce = !0, a._dragStartId = Xe(a._dragStarted.bind(a, t, n)), H(document, "selectstart", a), $e = !0, Le && v(document.body, "user-select", "none");
|
|
1720
1720
|
},
|
|
1721
1721
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1722
1722
|
_onDragOver: function(n) {
|
|
1723
|
-
var t = this.el, a = n.target, o, i, r, l = this.options, c = l.group, p = _.active, m =
|
|
1723
|
+
var t = this.el, a = n.target, o, i, r, l = this.options, c = l.group, p = _.active, m = We === c, f = l.sort, u = R || p, b, y = this, C = !1;
|
|
1724
1724
|
if (Gn)
|
|
1725
1725
|
return;
|
|
1726
|
-
function
|
|
1726
|
+
function D(Ie, ha) {
|
|
1727
1727
|
z(Ie, y, K({
|
|
1728
1728
|
evt: n,
|
|
1729
1729
|
isOwner: m,
|
|
@@ -1732,78 +1732,78 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1732
1732
|
dragRect: o,
|
|
1733
1733
|
targetRect: i,
|
|
1734
1734
|
canSort: f,
|
|
1735
|
-
fromSortable:
|
|
1735
|
+
fromSortable: u,
|
|
1736
1736
|
target: a,
|
|
1737
|
-
completed:
|
|
1737
|
+
completed: N,
|
|
1738
1738
|
onMove: function(at, ua) {
|
|
1739
|
-
return qe(T, t,
|
|
1739
|
+
return qe(T, t, h, o, at, L(at), n, ua);
|
|
1740
1740
|
},
|
|
1741
1741
|
changed: V
|
|
1742
|
-
},
|
|
1742
|
+
}, ha));
|
|
1743
1743
|
}
|
|
1744
1744
|
function F() {
|
|
1745
|
-
|
|
1745
|
+
D("dragOverAnimationCapture"), y.captureAnimationState(), y !== u && u.captureAnimationState();
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1748
|
-
return
|
|
1747
|
+
function N(Ie) {
|
|
1748
|
+
return D("dragOverCompleted", {
|
|
1749
1749
|
insertion: Ie
|
|
1750
|
-
}), Ie && (m ? p._hideClone() : p._showClone(y), y !==
|
|
1751
|
-
|
|
1752
|
-
}), y !==
|
|
1750
|
+
}), Ie && (m ? p._hideClone() : p._showClone(y), y !== u && (W(h, R ? R.options.ghostClass : p.options.ghostClass, !1), W(h, l.ghostClass, !0)), R !== y && y !== _.active ? R = y : y === _.active && R && (R = null), u === y && (y._ignoreWhileAnimating = a), y.animateAll(function() {
|
|
1751
|
+
D("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
|
|
1752
|
+
}), y !== u && (u.animateAll(), u._ignoreWhileAnimating = null)), (a === h && !h.animated || a === t && !a.animated) && (_e = null), !l.dragoverBubble && !n.rootEl && a !== document && (h.parentNode[Z]._isOutsideThisEl(n.target), !Ie && me(n)), !l.dragoverBubble && n.stopPropagation && n.stopPropagation(), C = !0;
|
|
1753
1753
|
}
|
|
1754
1754
|
function V() {
|
|
1755
|
-
|
|
1755
|
+
B = q(h), oe = q(h, l.draggable), M({
|
|
1756
1756
|
sortable: y,
|
|
1757
1757
|
name: "change",
|
|
1758
1758
|
toEl: t,
|
|
1759
|
-
newIndex:
|
|
1759
|
+
newIndex: B,
|
|
1760
1760
|
newDraggableIndex: oe,
|
|
1761
1761
|
originalEvent: n
|
|
1762
1762
|
});
|
|
1763
1763
|
}
|
|
1764
|
-
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = G(a, l.draggable, t, !0),
|
|
1764
|
+
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = G(a, l.draggable, t, !0), D("dragOver"), _.eventCanceled)
|
|
1765
1765
|
return C;
|
|
1766
|
-
if (
|
|
1767
|
-
return
|
|
1768
|
-
if (en = !1, p && !l.disabled && (m ? f || (r = $ !== T) : R === this || (this.lastPutMode =
|
|
1769
|
-
if (b = this._getDirection(n, a) === "vertical", o =
|
|
1766
|
+
if (h.contains(n.target) || a.animated && a.animatingX && a.animatingY || y._ignoreWhileAnimating === a)
|
|
1767
|
+
return N(!1);
|
|
1768
|
+
if (en = !1, p && !l.disabled && (m ? f || (r = $ !== T) : R === this || (this.lastPutMode = We.checkPull(this, p, h, n)) && c.checkPut(this, p, h, n))) {
|
|
1769
|
+
if (b = this._getDirection(n, a) === "vertical", o = L(h), D("dragOverValid"), _.eventCanceled)
|
|
1770
1770
|
return C;
|
|
1771
1771
|
if (r)
|
|
1772
|
-
return $ = T, F(), this._hideClone(),
|
|
1772
|
+
return $ = T, F(), this._hideClone(), D("revert"), _.eventCanceled || (ue ? T.insertBefore(h, ue) : T.appendChild(h)), N(!0);
|
|
1773
1773
|
var j = et(t, l.draggable);
|
|
1774
|
-
if (!j ||
|
|
1775
|
-
if (j ===
|
|
1776
|
-
return
|
|
1777
|
-
if (j && t === n.target && (a = j), a && (i =
|
|
1778
|
-
return F(), j && j.nextSibling ? t.insertBefore(
|
|
1779
|
-
} else if (j &&
|
|
1774
|
+
if (!j || Ki(n, b, this) && !j.animated) {
|
|
1775
|
+
if (j === h)
|
|
1776
|
+
return N(!1);
|
|
1777
|
+
if (j && t === n.target && (a = j), a && (i = L(a)), qe(T, t, h, o, a, i, n, !!a) !== !1)
|
|
1778
|
+
return F(), j && j.nextSibling ? t.insertBefore(h, j.nextSibling) : t.appendChild(h), $ = t, V(), N(!0);
|
|
1779
|
+
} else if (j && Xi(n, b, this)) {
|
|
1780
1780
|
var de = Ee(t, 0, l, !0);
|
|
1781
|
-
if (de ===
|
|
1782
|
-
return
|
|
1783
|
-
if (a = de, i =
|
|
1784
|
-
return F(), t.insertBefore(
|
|
1781
|
+
if (de === h)
|
|
1782
|
+
return N(!1);
|
|
1783
|
+
if (a = de, i = L(a), qe(T, t, h, o, a, i, n, !1) !== !1)
|
|
1784
|
+
return F(), t.insertBefore(h, de), $ = t, V(), N(!0);
|
|
1785
1785
|
} else if (a.parentNode === t) {
|
|
1786
|
-
i =
|
|
1787
|
-
var Y = 0, ce, Se =
|
|
1788
|
-
|
|
1786
|
+
i = L(a);
|
|
1787
|
+
var Y = 0, ce, Se = h.parentNode !== t, U = !qi(h.animated && h.toRect || o, a.animated && a.toRect || i, b), He = b ? "top" : "left", ae = mt(a, "top", "top") || mt(h, "top", "top"), De = ae ? ae.scrollTop : void 0;
|
|
1788
|
+
_e !== a && (ce = i[He], Me = !1, Be = !U && l.invertSwap || Se), Y = Qi(n, a, i, b, U ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Be, _e === a);
|
|
1789
1789
|
var Q;
|
|
1790
1790
|
if (Y !== 0) {
|
|
1791
|
-
var pe = q(
|
|
1791
|
+
var pe = q(h);
|
|
1792
1792
|
do
|
|
1793
1793
|
pe -= Y, Q = $.children[pe];
|
|
1794
1794
|
while (Q && (v(Q, "display") === "none" || Q === w));
|
|
1795
1795
|
}
|
|
1796
1796
|
if (Y === 0 || Q === a)
|
|
1797
|
-
return
|
|
1798
|
-
|
|
1797
|
+
return N(!1);
|
|
1798
|
+
_e = a, Ae = Y;
|
|
1799
1799
|
var Te = a.nextElementSibling, ie = !1;
|
|
1800
1800
|
ie = Y === 1;
|
|
1801
|
-
var Ue = qe(T, t,
|
|
1801
|
+
var Ue = qe(T, t, h, o, a, i, n, ie);
|
|
1802
1802
|
if (Ue !== !1)
|
|
1803
|
-
return (Ue === 1 || Ue === -1) && (ie = Ue === 1), Gn = !0, setTimeout(
|
|
1803
|
+
return (Ue === 1 || Ue === -1) && (ie = Ue === 1), Gn = !0, setTimeout(Yi, 30), F(), ie && !Te ? t.appendChild(h) : a.parentNode.insertBefore(h, ie ? Te : a), ae && $t(ae, 0, De - ae.scrollTop), $ = h.parentNode, ce !== void 0 && !Be && (Ye = Math.abs(ce - L(a)[He])), V(), N(!0);
|
|
1804
1804
|
}
|
|
1805
|
-
if (t.contains(
|
|
1806
|
-
return
|
|
1805
|
+
if (t.contains(h))
|
|
1806
|
+
return N(!1);
|
|
1807
1807
|
}
|
|
1808
1808
|
return !1;
|
|
1809
1809
|
},
|
|
@@ -1817,20 +1817,20 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1817
1817
|
},
|
|
1818
1818
|
_onDrop: function(n) {
|
|
1819
1819
|
var t = this.el, a = this.options;
|
|
1820
|
-
if (
|
|
1820
|
+
if (B = q(h), oe = q(h, a.draggable), z("drop", this, {
|
|
1821
1821
|
evt: n
|
|
1822
|
-
}), $ =
|
|
1822
|
+
}), $ = h && h.parentNode, B = q(h), oe = q(h, a.draggable), _.eventCanceled) {
|
|
1823
1823
|
this._nulling();
|
|
1824
1824
|
return;
|
|
1825
1825
|
}
|
|
1826
|
-
Ce = !1,
|
|
1826
|
+
Ce = !1, Be = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yn(this.cloneId), Yn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Le && v(document.body, "user-select", ""), v(h, "transform", ""), n && ($e && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (T === $ || R && R.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), h && (this.nativeDraggable && k(h, "dragend", this), gn(h), h.style["will-change"] = "", $e && !Ce && W(h, R ? R.options.ghostClass : this.options.ghostClass, !1), W(h, this.options.chosenClass, !1), M({
|
|
1827
1827
|
sortable: this,
|
|
1828
1828
|
name: "unchoose",
|
|
1829
1829
|
toEl: $,
|
|
1830
1830
|
newIndex: null,
|
|
1831
1831
|
newDraggableIndex: null,
|
|
1832
1832
|
originalEvent: n
|
|
1833
|
-
}), T !== $ ? (
|
|
1833
|
+
}), T !== $ ? (B >= 0 && (M({
|
|
1834
1834
|
rootEl: $,
|
|
1835
1835
|
name: "add",
|
|
1836
1836
|
toEl: $,
|
|
@@ -1852,7 +1852,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1852
1852
|
name: "sort",
|
|
1853
1853
|
toEl: $,
|
|
1854
1854
|
originalEvent: n
|
|
1855
|
-
})), R && R.save()) :
|
|
1855
|
+
})), R && R.save()) : B !== we && B >= 0 && (M({
|
|
1856
1856
|
sortable: this,
|
|
1857
1857
|
name: "update",
|
|
1858
1858
|
toEl: $,
|
|
@@ -1862,7 +1862,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1862
1862
|
name: "sort",
|
|
1863
1863
|
toEl: $,
|
|
1864
1864
|
originalEvent: n
|
|
1865
|
-
})), _.active && ((
|
|
1865
|
+
})), _.active && ((B == null || B === -1) && (B = we, oe = Re), M({
|
|
1866
1866
|
sortable: this,
|
|
1867
1867
|
name: "end",
|
|
1868
1868
|
toEl: $,
|
|
@@ -1870,9 +1870,9 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1870
1870
|
}), this.save()))), this._nulling();
|
|
1871
1871
|
},
|
|
1872
1872
|
_nulling: function() {
|
|
1873
|
-
z("nulling", this), T =
|
|
1873
|
+
z("nulling", this), T = h = $ = w = ue = I = Ge = re = fe = J = $e = B = oe = we = Re = _e = Ae = R = We = _.dragged = _.ghost = _.clone = _.active = null, tn.forEach(function(n) {
|
|
1874
1874
|
n.checked = !0;
|
|
1875
|
-
}), tn.length =
|
|
1875
|
+
}), tn.length = un = yn = 0;
|
|
1876
1876
|
},
|
|
1877
1877
|
handleEvent: function(n) {
|
|
1878
1878
|
switch (n.type) {
|
|
@@ -1882,7 +1882,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1882
1882
|
break;
|
|
1883
1883
|
case "dragenter":
|
|
1884
1884
|
case "dragover":
|
|
1885
|
-
|
|
1885
|
+
h && (this._onDragOver(n), Gi(n));
|
|
1886
1886
|
break;
|
|
1887
1887
|
case "selectstart":
|
|
1888
1888
|
n.preventDefault();
|
|
@@ -1895,7 +1895,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1895
1895
|
*/
|
|
1896
1896
|
toArray: function() {
|
|
1897
1897
|
for (var n = [], t, a = this.el.children, o = 0, i = a.length, r = this.options; o < i; o++)
|
|
1898
|
-
t = a[o], G(t, r.draggable, this.el, !1) && n.push(t.getAttribute(r.dataIdAttr) ||
|
|
1898
|
+
t = a[o], G(t, r.draggable, this.el, !1) && n.push(t.getAttribute(r.dataIdAttr) || ns(t));
|
|
1899
1899
|
return n;
|
|
1900
1900
|
},
|
|
1901
1901
|
/**
|
|
@@ -1938,7 +1938,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1938
1938
|
if (t === void 0)
|
|
1939
1939
|
return a[n];
|
|
1940
1940
|
var o = je.modifyOption(this, n, t);
|
|
1941
|
-
typeof o < "u" ? a[n] = o : a[n] = t, n === "group" &&
|
|
1941
|
+
typeof o < "u" ? a[n] = o : a[n] = t, n === "group" && Rt(a);
|
|
1942
1942
|
},
|
|
1943
1943
|
/**
|
|
1944
1944
|
* Destroy
|
|
@@ -1965,11 +1965,11 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1965
1965
|
if (re) {
|
|
1966
1966
|
if (z("showClone", this), _.eventCanceled)
|
|
1967
1967
|
return;
|
|
1968
|
-
|
|
1968
|
+
h.parentNode == T && !this.options.group.revertClone ? T.insertBefore(I, h) : ue ? T.insertBefore(I, ue) : T.appendChild(I), this.options.group.revertClone && this.animate(h, I), v(I, "display", ""), re = !1;
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
};
|
|
1972
|
-
function
|
|
1972
|
+
function Gi(e) {
|
|
1973
1973
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1974
1974
|
}
|
|
1975
1975
|
function qe(e, n, t, a, o, i, r, l) {
|
|
@@ -1977,44 +1977,44 @@ function qe(e, n, t, a, o, i, r, l) {
|
|
|
1977
1977
|
return window.CustomEvent && !te && !ze ? c = new CustomEvent("move", {
|
|
1978
1978
|
bubbles: !0,
|
|
1979
1979
|
cancelable: !0
|
|
1980
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = n, c.from = e, c.dragged = t, c.draggedRect = a, c.related = o || n, c.relatedRect = i ||
|
|
1980
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = n, c.from = e, c.dragged = t, c.draggedRect = a, c.related = o || n, c.relatedRect = i || L(n), c.willInsertAfter = l, c.originalEvent = r, e.dispatchEvent(c), m && (f = m.call(p, c, r)), f;
|
|
1981
1981
|
}
|
|
1982
1982
|
function gn(e) {
|
|
1983
1983
|
e.draggable = !1;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function Yi() {
|
|
1986
1986
|
Gn = !1;
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1989
|
-
var a =
|
|
1988
|
+
function Xi(e, n, t) {
|
|
1989
|
+
var a = L(Ee(t.el, 0, t.options, !0)), o = Pt(t.el, t.options, w), i = 10;
|
|
1990
1990
|
return n ? e.clientX < o.left - i || e.clientY < a.top && e.clientX < a.right : e.clientY < o.top - i || e.clientY < a.bottom && e.clientX < a.left;
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1993
|
-
var a =
|
|
1992
|
+
function Ki(e, n, t) {
|
|
1993
|
+
var a = L(et(t.el, t.options.draggable)), o = Pt(t.el, t.options, w), i = 10;
|
|
1994
1994
|
return n ? e.clientX > o.right + i || e.clientY > a.bottom && e.clientX > a.left : e.clientY > o.bottom + i || e.clientX > a.right && e.clientY > a.top;
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1997
|
-
var c = a ? e.clientY : e.clientX, p = a ? t.height : t.width, m = a ? t.top : t.left, f = a ? t.bottom : t.right,
|
|
1996
|
+
function Qi(e, n, t, a, o, i, r, l) {
|
|
1997
|
+
var c = a ? e.clientY : e.clientX, p = a ? t.height : t.width, m = a ? t.top : t.left, f = a ? t.bottom : t.right, u = !1;
|
|
1998
1998
|
if (!r) {
|
|
1999
1999
|
if (l && Ye < p * o) {
|
|
2000
2000
|
if (!Me && (Ae === 1 ? c > m + p * i / 2 : c < f - p * i / 2) && (Me = !0), Me)
|
|
2001
|
-
|
|
2001
|
+
u = !0;
|
|
2002
2002
|
else if (Ae === 1 ? c < m + Ye : c > f - Ye)
|
|
2003
2003
|
return -Ae;
|
|
2004
2004
|
} else if (c > m + p * (1 - o) / 2 && c < f - p * (1 - o) / 2)
|
|
2005
|
-
return
|
|
2005
|
+
return es(n);
|
|
2006
2006
|
}
|
|
2007
|
-
return
|
|
2008
|
-
}
|
|
2009
|
-
function Qi(e) {
|
|
2010
|
-
return q(u) < q(e) ? 1 : -1;
|
|
2007
|
+
return u = u || r, u && (c < m + p * i / 2 || c > f - p * i / 2) ? c > m + p / 2 ? 1 : -1 : 0;
|
|
2011
2008
|
}
|
|
2012
2009
|
function es(e) {
|
|
2010
|
+
return q(h) < q(e) ? 1 : -1;
|
|
2011
|
+
}
|
|
2012
|
+
function ns(e) {
|
|
2013
2013
|
for (var n = e.tagName + e.className + e.src + e.href + e.textContent, t = n.length, a = 0; t--; )
|
|
2014
2014
|
a += n.charCodeAt(t);
|
|
2015
2015
|
return a.toString(36);
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function ts(e) {
|
|
2018
2018
|
tn.length = 0;
|
|
2019
2019
|
for (var n = e.getElementsByTagName("input"), t = n.length; t--; ) {
|
|
2020
2020
|
var a = n[t];
|
|
@@ -2027,26 +2027,26 @@ function Xe(e) {
|
|
|
2027
2027
|
function Yn(e) {
|
|
2028
2028
|
return clearTimeout(e);
|
|
2029
2029
|
}
|
|
2030
|
-
sn &&
|
|
2030
|
+
sn && H(document, "touchmove", function(e) {
|
|
2031
2031
|
(_.active || Ce) && e.cancelable && e.preventDefault();
|
|
2032
2032
|
});
|
|
2033
2033
|
_.utils = {
|
|
2034
|
-
on:
|
|
2034
|
+
on: H,
|
|
2035
2035
|
off: k,
|
|
2036
2036
|
css: v,
|
|
2037
|
-
find:
|
|
2037
|
+
find: Tt,
|
|
2038
2038
|
is: function(n, t) {
|
|
2039
2039
|
return !!G(n, t, n, !1);
|
|
2040
2040
|
},
|
|
2041
|
-
extend:
|
|
2042
|
-
throttle:
|
|
2041
|
+
extend: Ai,
|
|
2042
|
+
throttle: It,
|
|
2043
2043
|
closest: G,
|
|
2044
|
-
toggleClass:
|
|
2045
|
-
clone:
|
|
2044
|
+
toggleClass: W,
|
|
2045
|
+
clone: Ft,
|
|
2046
2046
|
index: q,
|
|
2047
2047
|
nextTick: Xe,
|
|
2048
2048
|
cancelNextTick: Yn,
|
|
2049
|
-
detectDirection:
|
|
2049
|
+
detectDirection: Nt,
|
|
2050
2050
|
getChild: Ee
|
|
2051
2051
|
};
|
|
2052
2052
|
_.get = function(e) {
|
|
@@ -2064,9 +2064,9 @@ _.mount = function() {
|
|
|
2064
2064
|
_.create = function(e, n) {
|
|
2065
2065
|
return new _(e, n);
|
|
2066
2066
|
};
|
|
2067
|
-
_.version =
|
|
2068
|
-
var
|
|
2069
|
-
function
|
|
2067
|
+
_.version = Li;
|
|
2068
|
+
var P = [], Fe, Xn, Kn = !1, vn, _n, an, Pe;
|
|
2069
|
+
function as() {
|
|
2070
2070
|
function e() {
|
|
2071
2071
|
this.defaults = {
|
|
2072
2072
|
scroll: !0,
|
|
@@ -2081,27 +2081,27 @@ function ts() {
|
|
|
2081
2081
|
return e.prototype = {
|
|
2082
2082
|
dragStarted: function(t) {
|
|
2083
2083
|
var a = t.originalEvent;
|
|
2084
|
-
this.sortable.nativeDraggable ?
|
|
2084
|
+
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? H(document, "pointermove", this._handleFallbackAutoScroll) : a.touches ? H(document, "touchmove", this._handleFallbackAutoScroll) : H(document, "mousemove", this._handleFallbackAutoScroll);
|
|
2085
2085
|
},
|
|
2086
2086
|
dragOverCompleted: function(t) {
|
|
2087
2087
|
var a = t.originalEvent;
|
|
2088
2088
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
2089
2089
|
},
|
|
2090
2090
|
drop: function() {
|
|
2091
|
-
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), gt(), Ke(),
|
|
2091
|
+
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), gt(), Ke(), Mi();
|
|
2092
2092
|
},
|
|
2093
2093
|
nulling: function() {
|
|
2094
|
-
an = Xn = Fe = Kn =
|
|
2094
|
+
an = Xn = Fe = Kn = Pe = vn = _n = null, P.length = 0;
|
|
2095
2095
|
},
|
|
2096
2096
|
_handleFallbackAutoScroll: function(t) {
|
|
2097
2097
|
this._handleAutoScroll(t, !0);
|
|
2098
2098
|
},
|
|
2099
2099
|
_handleAutoScroll: function(t, a) {
|
|
2100
2100
|
var o = this, i = (t.touches ? t.touches[0] : t).clientX, r = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(i, r);
|
|
2101
|
-
if (an = t, a || this.options.forceAutoScrollFallback || ze || te ||
|
|
2101
|
+
if (an = t, a || this.options.forceAutoScrollFallback || ze || te || Le) {
|
|
2102
2102
|
Cn(t, this.options, l, a);
|
|
2103
2103
|
var c = le(l, !0);
|
|
2104
|
-
Kn && (!
|
|
2104
|
+
Kn && (!Pe || i !== vn || r !== _n) && (Pe && gt(), Pe = setInterval(function() {
|
|
2105
2105
|
var p = le(document.elementFromPoint(i, r), !0);
|
|
2106
2106
|
p !== c && (c = p, Ke()), Cn(t, o.options, p, a);
|
|
2107
2107
|
}, 10), vn = i, _n = r);
|
|
@@ -2119,36 +2119,36 @@ function ts() {
|
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
2121
|
function Ke() {
|
|
2122
|
-
|
|
2122
|
+
P.forEach(function(e) {
|
|
2123
2123
|
clearInterval(e.pid);
|
|
2124
|
-
}),
|
|
2124
|
+
}), P = [];
|
|
2125
2125
|
}
|
|
2126
2126
|
function gt() {
|
|
2127
|
-
clearInterval(
|
|
2127
|
+
clearInterval(Pe);
|
|
2128
2128
|
}
|
|
2129
|
-
var Cn =
|
|
2129
|
+
var Cn = It(function(e, n, t, a) {
|
|
2130
2130
|
if (n.scroll) {
|
|
2131
2131
|
var o = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, r = n.scrollSensitivity, l = n.scrollSpeed, c = X(), p = !1, m;
|
|
2132
2132
|
Xn !== t && (Xn = t, Ke(), Fe = n.scroll, m = n.scrollFn, Fe === !0 && (Fe = le(t, !0)));
|
|
2133
|
-
var f = 0,
|
|
2133
|
+
var f = 0, u = Fe;
|
|
2134
2134
|
do {
|
|
2135
|
-
var b =
|
|
2135
|
+
var b = u, y = L(b), C = y.top, D = y.bottom, F = y.left, N = y.right, V = y.width, j = y.height, de = void 0, Y = void 0, ce = b.scrollWidth, Se = b.scrollHeight, U = v(b), He = b.scrollLeft, ae = b.scrollTop;
|
|
2136
2136
|
b === c ? (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
2137
|
-
var
|
|
2138
|
-
if (!
|
|
2137
|
+
var De = de && (Math.abs(N - o) <= r && He + V < ce) - (Math.abs(F - o) <= r && !!He), Q = Y && (Math.abs(D - i) <= r && ae + j < Se) - (Math.abs(C - i) <= r && !!ae);
|
|
2138
|
+
if (!P[f])
|
|
2139
2139
|
for (var pe = 0; pe <= f; pe++)
|
|
2140
|
-
|
|
2141
|
-
(
|
|
2140
|
+
P[pe] || (P[pe] = {});
|
|
2141
|
+
(P[f].vx != De || P[f].vy != Q || P[f].el !== b) && (P[f].el = b, P[f].vx = De, P[f].vy = Q, clearInterval(P[f].pid), (De != 0 || Q != 0) && (p = !0, P[f].pid = setInterval((function() {
|
|
2142
2142
|
a && this.layer === 0 && _.active._onTouchMove(an);
|
|
2143
|
-
var Te =
|
|
2144
|
-
typeof m == "function" && m.call(_.dragged.parentNode[Z], ie, Te, e, an,
|
|
2143
|
+
var Te = P[this.layer].vy ? P[this.layer].vy * l : 0, ie = P[this.layer].vx ? P[this.layer].vx * l : 0;
|
|
2144
|
+
typeof m == "function" && m.call(_.dragged.parentNode[Z], ie, Te, e, an, P[this.layer].el) !== "continue" || $t(P[this.layer].el, ie, Te);
|
|
2145
2145
|
}).bind({
|
|
2146
2146
|
layer: f
|
|
2147
2147
|
}), 24))), f++;
|
|
2148
|
-
} while (n.bubbleScroll &&
|
|
2148
|
+
} while (n.bubbleScroll && u !== c && (u = le(u, !1)));
|
|
2149
2149
|
Kn = p;
|
|
2150
2150
|
}
|
|
2151
|
-
}, 30),
|
|
2151
|
+
}, 30), zt = function(n) {
|
|
2152
2152
|
var t = n.originalEvent, a = n.putSortable, o = n.dragEl, i = n.activeSortable, r = n.dispatchSortableEvent, l = n.hideGhostForTarget, c = n.unhideGhostForTarget;
|
|
2153
2153
|
if (t) {
|
|
2154
2154
|
var p = a || i;
|
|
@@ -2174,7 +2174,7 @@ nt.prototype = {
|
|
|
2174
2174
|
var o = Ee(this.sortable.el, this.startIndex, this.options);
|
|
2175
2175
|
o ? this.sortable.el.insertBefore(t, o) : this.sortable.el.appendChild(t), this.sortable.animateAll(), a && a.animateAll();
|
|
2176
2176
|
},
|
|
2177
|
-
drop:
|
|
2177
|
+
drop: zt
|
|
2178
2178
|
};
|
|
2179
2179
|
ne(nt, {
|
|
2180
2180
|
pluginName: "revertOnSpill"
|
|
@@ -2186,15 +2186,15 @@ tt.prototype = {
|
|
|
2186
2186
|
var t = n.dragEl, a = n.putSortable, o = a || this.sortable;
|
|
2187
2187
|
o.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), o.animateAll();
|
|
2188
2188
|
},
|
|
2189
|
-
drop:
|
|
2189
|
+
drop: zt
|
|
2190
2190
|
};
|
|
2191
2191
|
ne(tt, {
|
|
2192
2192
|
pluginName: "removeOnSpill"
|
|
2193
2193
|
});
|
|
2194
|
-
_.mount(new
|
|
2194
|
+
_.mount(new as());
|
|
2195
2195
|
_.mount(tt, nt);
|
|
2196
|
-
const
|
|
2197
|
-
var
|
|
2196
|
+
const is = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:500;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}@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 .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)}', ss = is;
|
|
2197
|
+
var os = function(e, n, t, a) {
|
|
2198
2198
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2199
2199
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2200
2200
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2206,13 +2206,37 @@ var ss = function(e, n, t, a) {
|
|
|
2206
2206
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2207
2207
|
return Reflect.metadata(e, n);
|
|
2208
2208
|
};
|
|
2209
|
-
const
|
|
2209
|
+
const vt = [
|
|
2210
|
+
{
|
|
2211
|
+
type: "text",
|
|
2212
|
+
label: "Your name",
|
|
2213
|
+
key: "your_name",
|
|
2214
|
+
typeLabel: "Short text",
|
|
2215
|
+
readonly: !0,
|
|
2216
|
+
required: !0,
|
|
2217
|
+
isOpen: !1,
|
|
2218
|
+
order: 0
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
type: "email",
|
|
2222
|
+
label: "Your Email",
|
|
2223
|
+
key: "your_email",
|
|
2224
|
+
typeLabel: "Email",
|
|
2225
|
+
readonly: !0,
|
|
2226
|
+
isOpen: !1,
|
|
2227
|
+
required: !0,
|
|
2228
|
+
order: 1
|
|
2229
|
+
}
|
|
2230
|
+
], jt = class {
|
|
2210
2231
|
constructor(e) {
|
|
2211
2232
|
g(this, e), this.valueChanged = x(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 = "booking-form-config", this.additionalFields = void 0, this.formFields = void 0;
|
|
2212
2233
|
}
|
|
2213
2234
|
elementNameChangedHandler(e) {
|
|
2214
2235
|
d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
2215
2236
|
}
|
|
2237
|
+
selectedConfigurationChangedHandler(e) {
|
|
2238
|
+
this.updateFormFields(e);
|
|
2239
|
+
}
|
|
2216
2240
|
connectedCallback() {
|
|
2217
2241
|
d("nylas-booking-form-config", "connectedCallback");
|
|
2218
2242
|
}
|
|
@@ -2220,38 +2244,17 @@ const zt = class {
|
|
|
2220
2244
|
d("nylas-booking-form-config", "disconnectedCallback");
|
|
2221
2245
|
}
|
|
2222
2246
|
componentWillLoad() {
|
|
2223
|
-
d("nylas-booking-form-config", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
2224
|
-
const e = [
|
|
2225
|
-
{
|
|
2226
|
-
type: "text",
|
|
2227
|
-
label: "Your name",
|
|
2228
|
-
key: "your_name",
|
|
2229
|
-
typeLabel: "Short text",
|
|
2230
|
-
readonly: !0,
|
|
2231
|
-
required: !0,
|
|
2232
|
-
isOpen: !1,
|
|
2233
|
-
order: 0
|
|
2234
|
-
},
|
|
2235
|
-
{
|
|
2236
|
-
type: "email",
|
|
2237
|
-
label: "Your Email",
|
|
2238
|
-
key: "your_email",
|
|
2239
|
-
typeLabel: "Email",
|
|
2240
|
-
readonly: !0,
|
|
2241
|
-
isOpen: !1,
|
|
2242
|
-
required: !0,
|
|
2243
|
-
order: 1
|
|
2244
|
-
}
|
|
2245
|
-
];
|
|
2246
|
-
this.formFields = [...e];
|
|
2247
|
+
d("nylas-booking-form-config", "componentWillLoad"), this.host.setAttribute("name", this.name), this.formFields = [...vt];
|
|
2247
2248
|
}
|
|
2248
2249
|
componentDidLoad() {
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2250
|
+
d("nylas-booking-form-config", "componentDidLoad"), this.selectedConfiguration && this.updateFormFields(this.selectedConfiguration);
|
|
2251
|
+
}
|
|
2252
|
+
updateFormFields(e) {
|
|
2253
|
+
var a, o;
|
|
2254
|
+
const n = Object.entries(((a = e == null ? void 0 : e.scheduler) == null ? void 0 : a.additional_fields) || {}).map(([i, r]) => ({ ...r, key: i })) || this.additionalFields || [];
|
|
2252
2255
|
this.formFields = [
|
|
2253
|
-
...
|
|
2254
|
-
...
|
|
2256
|
+
...vt,
|
|
2257
|
+
...n.sort((i, r) => i.order - r.order).map((i, r) => {
|
|
2255
2258
|
const l = rt.find((p) => p.type === i.type);
|
|
2256
2259
|
if (!l)
|
|
2257
2260
|
return { ...i, isOpen: !1, typeLabel: "Unknown" };
|
|
@@ -2259,8 +2262,8 @@ const zt = class {
|
|
|
2259
2262
|
return i.order = r + 2, { ...i, isOpen: !1, typeLabel: c };
|
|
2260
2263
|
})
|
|
2261
2264
|
];
|
|
2262
|
-
const
|
|
2263
|
-
_.create(
|
|
2265
|
+
const t = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById("fields");
|
|
2266
|
+
_.create(t, {
|
|
2264
2267
|
animation: 150,
|
|
2265
2268
|
swap: !0,
|
|
2266
2269
|
swapClass: "highlight",
|
|
@@ -2370,7 +2373,7 @@ const zt = class {
|
|
|
2370
2373
|
this.formFields = this.formFields.map((t, a) => (a === e && (t.default = n.detail.value), t));
|
|
2371
2374
|
}
|
|
2372
2375
|
render() {
|
|
2373
|
-
return s(E, { key: "
|
|
2376
|
+
return s(E, { key: "bd832f2b9a02ce53187e4f633e4c0388e6e65a03" }, s("div", { key: "fcf79fe131d8e0a99312286b15f228b997d8c0be", class: "nylas-booking-form-config", part: "nbfc" }, s("div", { key: "07cd086a8af8145f5a8c6676e360fa5f919040f3", class: "header", part: "nbfc__header" }, s("div", { key: "f703982061b36b7f4b792f4deff59cc4256b7c25", class: "header_text" }, s("h3", { key: "a7cba135c527592a000c296ceaf68bb91c9ddcf4" }, "Booking form"), s("p", { key: "62acf8b4a583145e2bc300b1b351799dec1ff438" }, "Add custom fields to the booking form.")), s("div", { key: "574ef9a02aa06ad29ac0b08c22aa749a844d32d8", class: "header_action" }, s("select-dropdown", { key: "c2a83f721237dc1032af5e55e17438e1060b2e58", 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: va, withSearch: !1, withChevron: !1, dropdownButtonText: "Add new field" }, s("span", { key: "e0aaa33a3bd04b79499310c3904984269eaecbf3", slot: "select-icon" }, s("plus-icon", { key: "06bf29f2b3d0dca74d660db8791a47bc2474652b", width: "15", height: "15" }))))), s("div", { key: "b33cfae9a876be328d795366802a1791e22ca164", class: "content" }, s("div", { key: "0df453e1fc129a13b90b33c6e267ecd9dd149c56", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, n) => s("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: n }, s("div", { class: "form-field_header", part: "nbfc__form_field-header" }, s("span", { class: "dragable" }, s("dragable-icon", { width: "24", height: "25" })), s("div", { class: "form-field_header_text" }, s("h4", null, e.label), s("p", null, e.typeLabel)), s("div", { class: "form-field_header_actions" }, s("span", { class: "is-required" }, e.required ? "Required" : "Optional"), !e.readonly && s("button", { onClick: () => {
|
|
2374
2377
|
this.fieldRemove(n);
|
|
2375
2378
|
} }, s("close-icon", null)), s("span", { class: `chevron ${e.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2376
2379
|
this.fieldToggle(n);
|
|
@@ -2391,11 +2394,12 @@ const zt = class {
|
|
|
2391
2394
|
static get watchers() {
|
|
2392
2395
|
return {
|
|
2393
2396
|
name: ["elementNameChangedHandler"],
|
|
2397
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"],
|
|
2394
2398
|
formFields: ["watchHandler"]
|
|
2395
2399
|
};
|
|
2396
2400
|
}
|
|
2397
2401
|
};
|
|
2398
|
-
|
|
2402
|
+
os([
|
|
2399
2403
|
S({
|
|
2400
2404
|
name: "nylas-booking-form-config",
|
|
2401
2405
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -2404,10 +2408,10 @@ ss([
|
|
|
2404
2408
|
wn("design:type", Function),
|
|
2405
2409
|
wn("design:paramtypes", []),
|
|
2406
2410
|
wn("design:returntype", void 0)
|
|
2407
|
-
],
|
|
2408
|
-
|
|
2409
|
-
const
|
|
2410
|
-
var
|
|
2411
|
+
], jt.prototype, "render", null);
|
|
2412
|
+
jt.style = ss;
|
|
2413
|
+
const rs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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__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:1rem}.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}', ls = rs;
|
|
2414
|
+
var ds = function(e, n, t, a) {
|
|
2411
2415
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2412
2416
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2413
2417
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2419,7 +2423,7 @@ var ls = function(e, n, t, a) {
|
|
|
2419
2423
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2420
2424
|
return Reflect.metadata(e, n);
|
|
2421
2425
|
};
|
|
2422
|
-
const
|
|
2426
|
+
const Ut = class {
|
|
2423
2427
|
constructor(e) {
|
|
2424
2428
|
var n, t, a;
|
|
2425
2429
|
g(this, e), this.valueChanged = x(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 = ((a = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : a.buffer) ?? { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after, this.componentLoaded = !1;
|
|
@@ -2434,13 +2438,7 @@ const jt = class {
|
|
|
2434
2438
|
d("nylas-buffer-time", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
2435
2439
|
}
|
|
2436
2440
|
componentDidLoad() {
|
|
2437
|
-
|
|
2438
|
-
const e = {
|
|
2439
|
-
before: this.selectedBeforeBufferTime,
|
|
2440
|
-
after: this.selectedAfterBufferTime
|
|
2441
|
-
};
|
|
2442
|
-
this.internals.setFormValue(JSON.stringify(e), this.name);
|
|
2443
|
-
}
|
|
2441
|
+
d("nylas-buffer-time", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after), this.updateFormValue(), this.componentLoaded = !0;
|
|
2444
2442
|
}
|
|
2445
2443
|
componentWillUpdate() {
|
|
2446
2444
|
d("nylas-buffer-time", "componentWillUpdate");
|
|
@@ -2461,21 +2459,26 @@ const jt = class {
|
|
|
2461
2459
|
var t, a;
|
|
2462
2460
|
d("nylas-buffer-time", "selectedConfigurationChangedHandler", e);
|
|
2463
2461
|
const n = (a = (t = e == null ? void 0 : e.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : a.buffer;
|
|
2464
|
-
this.selectedAfterBufferTime = n != null && n.after ? n.after : this.buffer.after, this.selectedBeforeBufferTime = n != null && n.before ? n.before : this.buffer.before;
|
|
2462
|
+
this.selectedAfterBufferTime = n != null && n.after ? n.after : this.buffer.after, this.selectedBeforeBufferTime = n != null && n.before ? n.before : this.buffer.before, this.updateFormValue();
|
|
2465
2463
|
}
|
|
2466
2464
|
nylasFormDropdownChangedHandler(e) {
|
|
2467
2465
|
d("nylas-buffer-time", "nylasFormDropdownChangedHandler", e.detail);
|
|
2468
2466
|
const n = (t) => {
|
|
2469
2467
|
const { value: a, name: o } = t.detail;
|
|
2470
|
-
o === "before-buffer-time" ? this.selectedBeforeBufferTime = parseInt(a) : o === "after-buffer-time" && (this.selectedAfterBufferTime = parseInt(a));
|
|
2471
|
-
const i = {
|
|
2472
|
-
before: this.selectedBeforeBufferTime,
|
|
2473
|
-
after: this.selectedAfterBufferTime
|
|
2474
|
-
};
|
|
2475
|
-
this.internals.setFormValue(JSON.stringify(i), "booking-calendar");
|
|
2468
|
+
o === "before-buffer-time" ? this.selectedBeforeBufferTime = parseInt(a) : o === "after-buffer-time" && (this.selectedAfterBufferTime = parseInt(a)), this.updateFormValue();
|
|
2476
2469
|
};
|
|
2477
2470
|
this.valueChanged.emit({ ...e.detail, valueChanged: n });
|
|
2478
2471
|
}
|
|
2472
|
+
get isInternalsAvailable() {
|
|
2473
|
+
return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
|
|
2474
|
+
}
|
|
2475
|
+
updateFormValue() {
|
|
2476
|
+
const e = {
|
|
2477
|
+
before: this.selectedBeforeBufferTime,
|
|
2478
|
+
after: this.selectedAfterBufferTime
|
|
2479
|
+
};
|
|
2480
|
+
this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name);
|
|
2481
|
+
}
|
|
2479
2482
|
renderPreview() {
|
|
2480
2483
|
const a = (r) => {
|
|
2481
2484
|
const l = Math.floor(r / 30), c = r % 30 / 30 * 10;
|
|
@@ -2487,20 +2490,20 @@ const jt = class {
|
|
|
2487
2490
|
const { fullSlots: r, partialFillHeight: l } = a(this.selectedBeforeBufferTime);
|
|
2488
2491
|
return Array.from({ length: 4 }, (c, p) => {
|
|
2489
2492
|
const m = this.selectedBeforeBufferTime > 0 && p > 4 - r - 1, f = this.selectedBeforeBufferTime > 0 && p === 4 - r - 1 && l > 0;
|
|
2490
|
-
let
|
|
2491
|
-
return m && !f ?
|
|
2493
|
+
let u = {};
|
|
2494
|
+
return m && !f ? u.backgroundColor = "var(--nylas-base-100)" : f && (u.background = `linear-gradient(to top, var(--nylas-base-100) ${l}px, transparent 0)`), s("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
|
|
2492
2495
|
height: "10px",
|
|
2493
|
-
...
|
|
2496
|
+
...u
|
|
2494
2497
|
} });
|
|
2495
2498
|
});
|
|
2496
2499
|
}, i = () => {
|
|
2497
2500
|
const { fullSlots: r, partialFillHeight: l } = a(this.selectedAfterBufferTime);
|
|
2498
2501
|
return Array.from({ length: 4 }, (c, p) => {
|
|
2499
2502
|
const m = this.selectedAfterBufferTime > 0 && p < r, f = p === r && l > 0;
|
|
2500
|
-
let
|
|
2501
|
-
return m && !f ?
|
|
2503
|
+
let u = {};
|
|
2504
|
+
return m && !f ? u.backgroundColor = "var(--nylas-base-100)" : f && (u.background = `linear-gradient(to bottom, var(--nylas-base-100) ${l}px, transparent 0)`), s("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
|
|
2502
2505
|
height: "10px",
|
|
2503
|
-
...
|
|
2506
|
+
...u
|
|
2504
2507
|
} });
|
|
2505
2508
|
});
|
|
2506
2509
|
};
|
|
@@ -2529,7 +2532,7 @@ const jt = class {
|
|
|
2529
2532
|
};
|
|
2530
2533
|
}
|
|
2531
2534
|
};
|
|
2532
|
-
|
|
2535
|
+
ds([
|
|
2533
2536
|
S({
|
|
2534
2537
|
name: "nylas-buffer-time",
|
|
2535
2538
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -2544,10 +2547,10 @@ ls([
|
|
|
2544
2547
|
xn("design:type", Function),
|
|
2545
2548
|
xn("design:paramtypes", []),
|
|
2546
2549
|
xn("design:returntype", void 0)
|
|
2547
|
-
],
|
|
2548
|
-
|
|
2549
|
-
const
|
|
2550
|
-
var
|
|
2550
|
+
], Ut.prototype, "render", null);
|
|
2551
|
+
Ut.style = ls;
|
|
2552
|
+
const cs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:black;font-size:1rem;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}.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}', ps = cs;
|
|
2553
|
+
var fs = function(e, n, t, a) {
|
|
2551
2554
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2552
2555
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2553
2556
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2559,7 +2562,7 @@ var ps = function(e, n, t, a) {
|
|
|
2559
2562
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2560
2563
|
return Reflect.metadata(e, n);
|
|
2561
2564
|
};
|
|
2562
|
-
const
|
|
2565
|
+
const Wt = class {
|
|
2563
2566
|
constructor(e) {
|
|
2564
2567
|
g(this, e), this.valueChanged = x(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.selectedCalendars = [], this.error = "";
|
|
2565
2568
|
}
|
|
@@ -2622,7 +2625,7 @@ const Ut = class {
|
|
|
2622
2625
|
};
|
|
2623
2626
|
}
|
|
2624
2627
|
};
|
|
2625
|
-
|
|
2628
|
+
fs([
|
|
2626
2629
|
S({
|
|
2627
2630
|
name: "nylas-calendar-picker",
|
|
2628
2631
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.currentUser", "currentUser"]]),
|
|
@@ -2637,9 +2640,9 @@ ps([
|
|
|
2637
2640
|
kn("design:type", Function),
|
|
2638
2641
|
kn("design:paramtypes", []),
|
|
2639
2642
|
kn("design:returntype", void 0)
|
|
2640
|
-
],
|
|
2641
|
-
|
|
2642
|
-
const
|
|
2643
|
+
], Wt.prototype, "render", null);
|
|
2644
|
+
Wt.style = ps;
|
|
2645
|
+
const ms = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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}', hs = ms;
|
|
2643
2646
|
var us = function(e, n, t, a) {
|
|
2644
2647
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2645
2648
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -2706,9 +2709,9 @@ us([
|
|
|
2706
2709
|
En("design:paramtypes", []),
|
|
2707
2710
|
En("design:returntype", void 0)
|
|
2708
2711
|
], Bt.prototype, "render", null);
|
|
2709
|
-
Bt.style =
|
|
2710
|
-
const
|
|
2711
|
-
var
|
|
2712
|
+
Bt.style = hs;
|
|
2713
|
+
const ys = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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:1rem;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:1rem;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}', bs = ys;
|
|
2714
|
+
var gs = function(e, n, t, a) {
|
|
2712
2715
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2713
2716
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2714
2717
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2720,7 +2723,7 @@ var bs = function(e, n, t, a) {
|
|
|
2720
2723
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2721
2724
|
return Reflect.metadata(e, n);
|
|
2722
2725
|
};
|
|
2723
|
-
const
|
|
2726
|
+
const Zt = class {
|
|
2724
2727
|
constructor(e) {
|
|
2725
2728
|
g(this, e), this.valueChanged = x(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.isOpen = !1, this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants;
|
|
2726
2729
|
}
|
|
@@ -2792,7 +2795,7 @@ const Wt = class {
|
|
|
2792
2795
|
};
|
|
2793
2796
|
}
|
|
2794
2797
|
};
|
|
2795
|
-
|
|
2798
|
+
gs([
|
|
2796
2799
|
S({
|
|
2797
2800
|
name: "nylas-confirmation-email",
|
|
2798
2801
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -2807,10 +2810,10 @@ bs([
|
|
|
2807
2810
|
On("design:type", Function),
|
|
2808
2811
|
On("design:paramtypes", []),
|
|
2809
2812
|
On("design:returntype", void 0)
|
|
2810
|
-
],
|
|
2811
|
-
|
|
2812
|
-
const
|
|
2813
|
-
var
|
|
2813
|
+
], Zt.prototype, "render", null);
|
|
2814
|
+
Zt.style = bs;
|
|
2815
|
+
const vs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}', _s = vs;
|
|
2816
|
+
var Cs = function(e, n, t, a) {
|
|
2814
2817
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2815
2818
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2816
2819
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2822,7 +2825,7 @@ var _s = function(e, n, t, a) {
|
|
|
2822
2825
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2823
2826
|
return Reflect.metadata(e, n);
|
|
2824
2827
|
};
|
|
2825
|
-
const
|
|
2828
|
+
const qt = class {
|
|
2826
2829
|
constructor(e) {
|
|
2827
2830
|
var n;
|
|
2828
2831
|
g(this, e), this.valueChanged = x(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.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendars = {};
|
|
@@ -2848,20 +2851,20 @@ const Zt = class {
|
|
|
2848
2851
|
var i, r, l, c;
|
|
2849
2852
|
const t = e == null ? void 0 : e.find((p) => p.is_organizer), a = ((l = (r = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : l.availability_method) !== "collective", o = {};
|
|
2850
2853
|
if (n) {
|
|
2851
|
-
const p = e == null ? void 0 : e.filter((f) => n.some((
|
|
2854
|
+
const p = e == null ? void 0 : e.filter((f) => n.some((u) => u.email === f.email)), m = e == null ? void 0 : e.filter((f) => !n.some((u) => u.email === f.email));
|
|
2852
2855
|
p == null || p.forEach((f) => {
|
|
2853
|
-
var y, C,
|
|
2854
|
-
const
|
|
2855
|
-
if (!
|
|
2856
|
+
var y, C, D;
|
|
2857
|
+
const u = n == null ? void 0 : n.find((F) => F.email === f.email);
|
|
2858
|
+
if (!u)
|
|
2856
2859
|
return;
|
|
2857
2860
|
this.participantDefaultSelectedCalendars[f.email] = ((y = f.availability) == null ? void 0 : y.calendar_ids) || [];
|
|
2858
|
-
const b =
|
|
2859
|
-
(
|
|
2860
|
-
!(b != null && b.some((
|
|
2861
|
+
const b = u.calendars ?? [];
|
|
2862
|
+
(D = (C = f.availability) == null ? void 0 : C.calendar_ids) == null || D.forEach((F) => {
|
|
2863
|
+
!(b != null && b.some((N) => N.id === F)) && F !== "primary" && b.push({ id: F, name: F });
|
|
2861
2864
|
}), o[f.email] = b;
|
|
2862
2865
|
}), a && (m == null || m.forEach((f) => {
|
|
2863
|
-
var
|
|
2864
|
-
(
|
|
2866
|
+
var u, b, y, C;
|
|
2867
|
+
(u = f == null ? void 0 : f.availability) != null && u.calendar_ids && ((y = (b = f == null ? void 0 : f.availability) == null ? void 0 : b.calendar_ids) == null ? void 0 : y.length) > 0 && !f.is_organizer && (o[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendars[f.email] = ((C = f.availability) == null ? void 0 : C.calendar_ids) || []);
|
|
2865
2868
|
}));
|
|
2866
2869
|
}
|
|
2867
2870
|
return t && (o[t.email] = this.calendars ?? [{ id: "primary", name: t.email }], this.participantDefaultSelectedCalendars[t.email] = ((c = t.availability) == null ? void 0 : c.calendar_ids) || []), o;
|
|
@@ -2902,19 +2905,19 @@ const Zt = class {
|
|
|
2902
2905
|
setParticipants(e) {
|
|
2903
2906
|
const n = {};
|
|
2904
2907
|
return e == null || e.forEach((t) => {
|
|
2905
|
-
var a, o, i;
|
|
2908
|
+
var a, o, i, r;
|
|
2906
2909
|
if ((a = t == null ? void 0 : t.availability) != null && a.calendar_ids && ((i = (o = t == null ? void 0 : t.availability) == null ? void 0 : o.calendar_ids) == null ? void 0 : i.length) > 0) {
|
|
2907
|
-
const
|
|
2910
|
+
const l = !!t.is_organizer;
|
|
2908
2911
|
n[t.email] = {
|
|
2909
|
-
isOpen:
|
|
2912
|
+
isOpen: l,
|
|
2910
2913
|
name: t.name || t.email,
|
|
2911
|
-
|
|
2914
|
+
calendars: (r = t.availability) == null ? void 0 : r.calendar_ids
|
|
2912
2915
|
};
|
|
2913
2916
|
}
|
|
2914
2917
|
}), n;
|
|
2915
2918
|
}
|
|
2916
2919
|
render() {
|
|
2917
|
-
return s(E, { key: "
|
|
2920
|
+
return s(E, { key: "4b8cfcfa751c2790968049f6f10a06193f9adc70" }, s("div", { key: "ffbcde80612886bc09b4419bc1cc47d585834fac", class: "nylas-connected-calendars", part: "nccals" }, s("div", { key: "d00c14cd0ab8107a2ba609ba58b596a7d3e1e69f", class: "header", part: "nccals__header" }, s("h3", { key: "cb0ad20533c33a3778d0b89fe5d51aa4c15864a8" }, "Connected Calendars"), s("p", { key: "b3488e835534f477d2585be0a60b5800d42cbaac" }, "Select the calendars to use for checking your availability.", s("tooltip-component", { key: "6acbd37df60566fa8a3fb8676fe3b3f4287d5c06" }, s("info-icon", { key: "f1eb4a75f869b09bee95c074c8d180449654a49f", slot: "tooltip-icon" }), s("span", { key: "e8aca8b29c7a89fe7b6eea0635761bdde19349e2", slot: "tooltip-content" }, "Check availability across one or more calendars. If you select multiple calendars for a participant, the participant must be available across all of their calendars to be considered available.")))), s("div", { key: "844803e9ea3270bfcedbc212990c0038a74dd663", class: "content", part: "nccals__content" }, s("form", { key: "2970ec7cec45d2582b987cbfab8949c1ece02499", ref: (e) => this.connectedCalendarsFormRef = e }, Object.keys(this.participantCalendars).map((e, n) => {
|
|
2918
2921
|
const t = this.selectedCalendars[e], a = this.participantCalendars[e];
|
|
2919
2922
|
if (!(!t || !t.name))
|
|
2920
2923
|
return s("div", { class: "participant-container", part: "nccals__container", key: `participant-conatiner-${n}` }, s("div", { class: "participant-title", part: "nccals__title" }, s("p", null, t.name, "'s connected calendars"), s("div", { class: "participant-toggle", part: "nccals__toggle-container" }, s("span", { class: `chevron ${t.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
@@ -2938,7 +2941,7 @@ const Zt = class {
|
|
|
2938
2941
|
};
|
|
2939
2942
|
}
|
|
2940
2943
|
};
|
|
2941
|
-
|
|
2944
|
+
Cs([
|
|
2942
2945
|
S({
|
|
2943
2946
|
name: "nylas-connected-calendars",
|
|
2944
2947
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2952,10 +2955,10 @@ _s([
|
|
|
2952
2955
|
Sn("design:type", Function),
|
|
2953
2956
|
Sn("design:paramtypes", []),
|
|
2954
2957
|
Sn("design:returntype", void 0)
|
|
2955
|
-
],
|
|
2956
|
-
|
|
2957
|
-
const
|
|
2958
|
-
var
|
|
2958
|
+
], qt.prototype, "render", null);
|
|
2959
|
+
qt.style = _s;
|
|
2960
|
+
const ws = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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}', xs = ws;
|
|
2961
|
+
var ks = function(e, n, t, a) {
|
|
2959
2962
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2960
2963
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2961
2964
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2963,11 +2966,11 @@ var xs = function(e, n, t, a) {
|
|
|
2963
2966
|
for (var l = e.length - 1; l >= 0; l--)
|
|
2964
2967
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
2965
2968
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
2966
|
-
},
|
|
2969
|
+
}, Hn = function(e, n) {
|
|
2967
2970
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2968
2971
|
return Reflect.metadata(e, n);
|
|
2969
2972
|
};
|
|
2970
|
-
const
|
|
2973
|
+
const Vt = class {
|
|
2971
2974
|
constructor(e) {
|
|
2972
2975
|
g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
2973
2976
|
}
|
|
@@ -2993,19 +2996,19 @@ const qt = class {
|
|
|
2993
2996
|
return O(this);
|
|
2994
2997
|
}
|
|
2995
2998
|
};
|
|
2996
|
-
|
|
2999
|
+
ks([
|
|
2997
3000
|
S({
|
|
2998
3001
|
name: "nylas-custom-booking-flow",
|
|
2999
3002
|
eventToProps: {},
|
|
3000
3003
|
fireRegisterEvent: !0
|
|
3001
3004
|
}),
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
],
|
|
3006
|
-
|
|
3007
|
-
const
|
|
3008
|
-
var
|
|
3005
|
+
Hn("design:type", Function),
|
|
3006
|
+
Hn("design:paramtypes", []),
|
|
3007
|
+
Hn("design:returntype", void 0)
|
|
3008
|
+
], Vt.prototype, "render", null);
|
|
3009
|
+
Vt.style = xs;
|
|
3010
|
+
const Es = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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:1rem;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:1rem;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}', Os = Es;
|
|
3011
|
+
var Ss = function(e, n, t, a) {
|
|
3009
3012
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3010
3013
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3011
3014
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3013,11 +3016,11 @@ var Os = function(e, n, t, a) {
|
|
|
3013
3016
|
for (var l = e.length - 1; l >= 0; l--)
|
|
3014
3017
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
3015
3018
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3016
|
-
},
|
|
3019
|
+
}, Dn = function(e, n) {
|
|
3017
3020
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3018
3021
|
return Reflect.metadata(e, n);
|
|
3019
3022
|
};
|
|
3020
|
-
const
|
|
3023
|
+
const Jt = class {
|
|
3021
3024
|
constructor(e) {
|
|
3022
3025
|
g(this, e), this.valueChanged = x(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.urlSlug = void 0, this.focus = !1, this.copied = !1;
|
|
3023
3026
|
}
|
|
@@ -3099,7 +3102,7 @@ const Vt = class {
|
|
|
3099
3102
|
};
|
|
3100
3103
|
}
|
|
3101
3104
|
};
|
|
3102
|
-
|
|
3105
|
+
Ss([
|
|
3103
3106
|
S({
|
|
3104
3107
|
name: "nylas-custom-event-slug",
|
|
3105
3108
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3114,13 +3117,13 @@ Os([
|
|
|
3114
3117
|
},
|
|
3115
3118
|
fireRegisterEvent: !0
|
|
3116
3119
|
}),
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
],
|
|
3121
|
-
|
|
3122
|
-
const
|
|
3123
|
-
var
|
|
3120
|
+
Dn("design:type", Function),
|
|
3121
|
+
Dn("design:paramtypes", []),
|
|
3122
|
+
Dn("design:returntype", void 0)
|
|
3123
|
+
], Jt.prototype, "render", null);
|
|
3124
|
+
Jt.style = Os;
|
|
3125
|
+
const Hs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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}}', Ds = Hs;
|
|
3126
|
+
var Ts = function(e, n, t, a) {
|
|
3124
3127
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3125
3128
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3126
3129
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3132,7 +3135,7 @@ var Hs = function(e, n, t, a) {
|
|
|
3132
3135
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3133
3136
|
return Reflect.metadata(e, n);
|
|
3134
3137
|
};
|
|
3135
|
-
const
|
|
3138
|
+
const Gt = class {
|
|
3136
3139
|
constructor(e) {
|
|
3137
3140
|
var n, t, a, o, i, r;
|
|
3138
3141
|
g(this, e), this.valueChanged = x(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 = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : t.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (a = this.selectedConfiguration) == null ? void 0 : a.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((r = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : r.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
|
|
@@ -3211,7 +3214,7 @@ const Jt = class {
|
|
|
3211
3214
|
};
|
|
3212
3215
|
}
|
|
3213
3216
|
};
|
|
3214
|
-
|
|
3217
|
+
Ts([
|
|
3215
3218
|
S({
|
|
3216
3219
|
name: "nylas-customize-booking-settings",
|
|
3217
3220
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -3220,10 +3223,10 @@ Hs([
|
|
|
3220
3223
|
Tn("design:type", Function),
|
|
3221
3224
|
Tn("design:paramtypes", []),
|
|
3222
3225
|
Tn("design:returntype", void 0)
|
|
3223
|
-
],
|
|
3224
|
-
|
|
3225
|
-
const
|
|
3226
|
-
var
|
|
3226
|
+
], Gt.prototype, "render", null);
|
|
3227
|
+
Gt.style = Ds;
|
|
3228
|
+
const Is = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description 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-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description 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-event-description textarea::-webkit-resizer{display:none}', $s = Is;
|
|
3229
|
+
var Fs = function(e, n, t, a) {
|
|
3227
3230
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3228
3231
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3229
3232
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3235,7 +3238,7 @@ var $s = function(e, n, t, a) {
|
|
|
3235
3238
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3236
3239
|
return Reflect.metadata(e, n);
|
|
3237
3240
|
};
|
|
3238
|
-
const
|
|
3241
|
+
const Yt = class {
|
|
3239
3242
|
constructor(e) {
|
|
3240
3243
|
var n, t;
|
|
3241
3244
|
g(this, e), this.valueChanged = x(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.eventDescription = void 0, this.name = "description", this.description = this.eventDescription || ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.description) || "";
|
|
@@ -3279,7 +3282,7 @@ const Gt = class {
|
|
|
3279
3282
|
};
|
|
3280
3283
|
}
|
|
3281
3284
|
};
|
|
3282
|
-
|
|
3285
|
+
Fs([
|
|
3283
3286
|
S({
|
|
3284
3287
|
name: "nylas-event-description",
|
|
3285
3288
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -3289,10 +3292,10 @@ $s([
|
|
|
3289
3292
|
In("design:type", Function),
|
|
3290
3293
|
In("design:paramtypes", []),
|
|
3291
3294
|
In("design:returntype", void 0)
|
|
3292
|
-
],
|
|
3293
|
-
|
|
3294
|
-
const
|
|
3295
|
-
var
|
|
3295
|
+
], Yt.prototype, "render", null);
|
|
3296
|
+
Yt.style = $s;
|
|
3297
|
+
const Ps = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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__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 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)}', Ls = Ps;
|
|
3298
|
+
var Ns = function(e, n, t, a) {
|
|
3296
3299
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3297
3300
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3298
3301
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3304,7 +3307,7 @@ var Ps = function(e, n, t, a) {
|
|
|
3304
3307
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3305
3308
|
return Reflect.metadata(e, n);
|
|
3306
3309
|
};
|
|
3307
|
-
const
|
|
3310
|
+
const Xt = class {
|
|
3308
3311
|
constructor(e) {
|
|
3309
3312
|
g(this, e), this.valueChanged = x(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.duration = this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = void 0, this.durationIncrement = void 0, this.durationMinutesOptions = [
|
|
3310
3313
|
{ value: 15, label: "15" },
|
|
@@ -3381,7 +3384,7 @@ const Yt = class {
|
|
|
3381
3384
|
};
|
|
3382
3385
|
}
|
|
3383
3386
|
};
|
|
3384
|
-
|
|
3387
|
+
Ns([
|
|
3385
3388
|
S({
|
|
3386
3389
|
name: "nylas-event-duration",
|
|
3387
3390
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -3391,10 +3394,10 @@ Ps([
|
|
|
3391
3394
|
$n("design:type", Function),
|
|
3392
3395
|
$n("design:paramtypes", []),
|
|
3393
3396
|
$n("design:returntype", void 0)
|
|
3394
|
-
],
|
|
3395
|
-
|
|
3396
|
-
const
|
|
3397
|
-
var
|
|
3397
|
+
], Xt.prototype, "render", null);
|
|
3398
|
+
Xt.style = Ls;
|
|
3399
|
+
const Rs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-info__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-info__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-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', As = Rs;
|
|
3400
|
+
var Ms = function(e, n, t, a) {
|
|
3398
3401
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3399
3402
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3400
3403
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3406,7 +3409,7 @@ var As = function(e, n, t, a) {
|
|
|
3406
3409
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3407
3410
|
return Reflect.metadata(e, n);
|
|
3408
3411
|
};
|
|
3409
|
-
const
|
|
3412
|
+
const Kt = class {
|
|
3410
3413
|
constructor(e) {
|
|
3411
3414
|
g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
3412
3415
|
}
|
|
@@ -3432,7 +3435,7 @@ const Xt = class {
|
|
|
3432
3435
|
return O(this);
|
|
3433
3436
|
}
|
|
3434
3437
|
};
|
|
3435
|
-
|
|
3438
|
+
Ms([
|
|
3436
3439
|
S({
|
|
3437
3440
|
name: "nylas-event-info",
|
|
3438
3441
|
eventToProps: {},
|
|
@@ -3441,10 +3444,10 @@ As([
|
|
|
3441
3444
|
Fn("design:type", Function),
|
|
3442
3445
|
Fn("design:paramtypes", []),
|
|
3443
3446
|
Fn("design:returntype", void 0)
|
|
3444
|
-
],
|
|
3445
|
-
|
|
3446
|
-
const
|
|
3447
|
-
var
|
|
3447
|
+
], Kt.prototype, "render", null);
|
|
3448
|
+
Kt.style = As;
|
|
3449
|
+
const zs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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}', js = zs;
|
|
3450
|
+
var Us = function(e, n, t, a) {
|
|
3448
3451
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3449
3452
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3450
3453
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3452,11 +3455,11 @@ var js = function(e, n, t, a) {
|
|
|
3452
3455
|
for (var l = e.length - 1; l >= 0; l--)
|
|
3453
3456
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
3454
3457
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3455
|
-
},
|
|
3458
|
+
}, Pn = function(e, n) {
|
|
3456
3459
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3457
3460
|
return Reflect.metadata(e, n);
|
|
3458
3461
|
};
|
|
3459
|
-
const
|
|
3462
|
+
const Qt = class {
|
|
3460
3463
|
constructor(e) {
|
|
3461
3464
|
g(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
3462
3465
|
}
|
|
@@ -3482,19 +3485,19 @@ const Kt = class {
|
|
|
3482
3485
|
return O(this);
|
|
3483
3486
|
}
|
|
3484
3487
|
};
|
|
3485
|
-
|
|
3488
|
+
Us([
|
|
3486
3489
|
S({
|
|
3487
3490
|
name: "nylas-event-limits",
|
|
3488
3491
|
eventToProps: {},
|
|
3489
3492
|
fireRegisterEvent: !0
|
|
3490
3493
|
}),
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
],
|
|
3495
|
-
|
|
3496
|
-
const
|
|
3497
|
-
var
|
|
3494
|
+
Pn("design:type", Function),
|
|
3495
|
+
Pn("design:paramtypes", []),
|
|
3496
|
+
Pn("design:returntype", void 0)
|
|
3497
|
+
], Qt.prototype, "render", null);
|
|
3498
|
+
Qt.style = js;
|
|
3499
|
+
const Ws = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location 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-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Bs = Ws;
|
|
3500
|
+
var Zs = function(e, n, t, a) {
|
|
3498
3501
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3499
3502
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3500
3503
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3502,22 +3505,22 @@ var Ws = function(e, n, t, a) {
|
|
|
3502
3505
|
for (var l = e.length - 1; l >= 0; l--)
|
|
3503
3506
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
3504
3507
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3505
|
-
},
|
|
3508
|
+
}, Ln = function(e, n) {
|
|
3506
3509
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3507
3510
|
return Reflect.metadata(e, n);
|
|
3508
3511
|
};
|
|
3509
|
-
const
|
|
3512
|
+
const he = {
|
|
3510
3513
|
none: "None",
|
|
3511
3514
|
custom: "Custom location",
|
|
3512
3515
|
google: "Google Meet",
|
|
3513
3516
|
microsoft: "Microsoft Teams",
|
|
3514
3517
|
zoom: "Zoom Meeting"
|
|
3515
|
-
},
|
|
3518
|
+
}, ea = class {
|
|
3516
3519
|
constructor(e) {
|
|
3517
3520
|
var n;
|
|
3518
3521
|
g(this, e), this.valueChanged = x(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 = "location", this.currentUser = void 0, this.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : "", this.selectedLocationOption = void 0, this.userProviderState = this.userProvider ?? ((n = this.currentUser) == null ? void 0 : n.provider) ?? "", this.locationOptions = [
|
|
3519
|
-
{ value: "none", label:
|
|
3520
|
-
{ value: "custom", label:
|
|
3522
|
+
{ value: "none", label: he.none, labelHTML: this.getLabelHTML("none") },
|
|
3523
|
+
{ value: "custom", label: he.custom, labelHTML: this.getLabelHTML("custom") }
|
|
3521
3524
|
];
|
|
3522
3525
|
}
|
|
3523
3526
|
elementNameChangedHandler(e) {
|
|
@@ -3529,6 +3532,12 @@ const _e = {
|
|
|
3529
3532
|
const n = (a = e == null ? void 0 : e.event_booking) == null ? void 0 : a.location, t = (o = e == null ? void 0 : e.event_booking) == null ? void 0 : o.conferencing;
|
|
3530
3533
|
t != null && t.provider ? (this.selectedLocationOption = this.setDefaultLocationOption(t, n ?? ""), this.grantId = this.setDefaultGrantID(t), this.location = n || "") : n ? (this.selectedLocationOption = n ? "custom" : "none", this.location = n) : (this.selectedLocationOption = "none", this.location = "");
|
|
3531
3534
|
}
|
|
3535
|
+
currentUserChangedHandler(e) {
|
|
3536
|
+
d("nylas-custom-booking-flow", "currentUserChangedHandler", e), e != null && e.provider && (this.userProviderState = e == null ? void 0 : e.provider, this.setLocationOptionsForProvider(this.userProviderState));
|
|
3537
|
+
}
|
|
3538
|
+
conferenceProvidersChanged(e) {
|
|
3539
|
+
e != null && e.zoom && !this.locationOptions.some((n) => n.value === "zoom") && this.locationOptions.push({ value: "zoom", label: he.zoom, labelHTML: this.getLabelHTML("zoom") });
|
|
3540
|
+
}
|
|
3532
3541
|
connectedCallback() {
|
|
3533
3542
|
d("nylas-event-location", "connectedCallback");
|
|
3534
3543
|
}
|
|
@@ -3537,15 +3546,7 @@ const _e = {
|
|
|
3537
3546
|
}
|
|
3538
3547
|
componentDidLoad() {
|
|
3539
3548
|
var e, n;
|
|
3540
|
-
|
|
3541
|
-
case "google":
|
|
3542
|
-
this.locationOptions.push({ value: "google", label: _e.google, labelHTML: this.getLabelHTML("google") });
|
|
3543
|
-
break;
|
|
3544
|
-
case "microsoft":
|
|
3545
|
-
this.locationOptions.push({ value: "microsoft", label: _e.microsoft, labelHTML: this.getLabelHTML("microsoft") });
|
|
3546
|
-
break;
|
|
3547
|
-
}
|
|
3548
|
-
(n = this.conferenceProviders) != null && n.zoom && this.locationOptions.push({ value: "zoom", label: _e.zoom, labelHTML: this.getLabelHTML("zoom") });
|
|
3549
|
+
d("nylas-event-location", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : this.selectedLocationOption = this.setDefaultLocationOption(this.eventConferencing || null, this.eventLocation ?? ""), this.userProviderState = this.userProvider ?? ((e = this.currentUser) == null ? void 0 : e.provider) ?? "", this.setLocationOptionsForProvider(this.userProviderState), (n = this.conferenceProviders) != null && n.zoom && !this.locationOptions.some((t) => t.value === "zoom") && this.locationOptions.push({ value: "zoom", label: he.zoom, labelHTML: this.getLabelHTML("zoom") });
|
|
3549
3550
|
}
|
|
3550
3551
|
disconnectedCallback() {
|
|
3551
3552
|
d("nylas-event-location", "disconnectedCallback");
|
|
@@ -3593,8 +3594,18 @@ const _e = {
|
|
|
3593
3594
|
break;
|
|
3594
3595
|
}
|
|
3595
3596
|
}
|
|
3597
|
+
setLocationOptionsForProvider(e) {
|
|
3598
|
+
switch (e) {
|
|
3599
|
+
case "google":
|
|
3600
|
+
this.locationOptions.some((n) => n.value === "google") || this.locationOptions.push({ value: "google", label: he.google, labelHTML: this.getLabelHTML("google") });
|
|
3601
|
+
break;
|
|
3602
|
+
case "microsoft":
|
|
3603
|
+
this.locationOptions.some((n) => n.value === "microsoft") || this.locationOptions.push({ value: "microsoft", label: he.microsoft, labelHTML: this.getLabelHTML("microsoft") });
|
|
3604
|
+
break;
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3596
3607
|
setDefaultLocationOption(e, n) {
|
|
3597
|
-
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ?
|
|
3608
|
+
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ? _a[e == null ? void 0 : e.provider] : n ? "custom" : "none";
|
|
3598
3609
|
}
|
|
3599
3610
|
setDefaultGrantID(e) {
|
|
3600
3611
|
var n;
|
|
@@ -3630,11 +3641,11 @@ const _e = {
|
|
|
3630
3641
|
} }, this.getIcon(e), s("span", { class: "location-text", style: {
|
|
3631
3642
|
fontSize: "14px",
|
|
3632
3643
|
fontWeight: "400"
|
|
3633
|
-
} },
|
|
3644
|
+
} }, he[e]));
|
|
3634
3645
|
}
|
|
3635
3646
|
render() {
|
|
3636
3647
|
const e = typeof this.selectedLocationOption < "u" ? this.locationOptions.find((n) => n.value == this.selectedLocationOption) : null;
|
|
3637
|
-
return s(E, { key: "
|
|
3648
|
+
return s(E, { key: "c91ef22df2a83a3c2ac66ca9011ad8633a085b9e" }, s("div", { key: "9e6823ce704cf4870f99936a39371b255b165afb", class: "nylas-event-location", part: "nel" }, s("label", { key: "2d1a71a258d0576460acd68a93cbace4a5c9254c", htmlFor: "location" }, "Event meeting or location", s("span", { key: "9dd7df66eec4e35a8659c88d4f26be99093e815a", class: "label-icon" }, s("tooltip-component", { key: "9299313bad5724106fa7108d0874e760945bcb30" }, s("info-icon", { key: "2490fbc28caa2547d8a3cecc747dc94254c59df3", slot: "tooltip-icon" }), s("span", { key: "d6c73fef100e4f962507d58b4ed24a1bd19599c2", slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), s("div", { key: "726f78440a3e65e379368b0a849bee94b2839dfd", class: "location-input" }, e && (e == null ? void 0 : e.label) && s("select-dropdown", { withSearch: !1, name: "location", options: this.locationOptions, defaultSelectedOption: e, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, s("span", { slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && s("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
|
|
3638
3649
|
}
|
|
3639
3650
|
static get formAssociated() {
|
|
3640
3651
|
return !0;
|
|
@@ -3645,11 +3656,13 @@ const _e = {
|
|
|
3645
3656
|
static get watchers() {
|
|
3646
3657
|
return {
|
|
3647
3658
|
name: ["elementNameChangedHandler"],
|
|
3648
|
-
selectedConfiguration: ["selectedConfigurationChangedHandler"]
|
|
3659
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"],
|
|
3660
|
+
currentUser: ["currentUserChangedHandler"],
|
|
3661
|
+
conferenceProviders: ["conferenceProvidersChanged"]
|
|
3649
3662
|
};
|
|
3650
3663
|
}
|
|
3651
3664
|
};
|
|
3652
|
-
|
|
3665
|
+
Zs([
|
|
3653
3666
|
S({
|
|
3654
3667
|
name: "nylas-event-location",
|
|
3655
3668
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -3660,13 +3673,13 @@ Ws([
|
|
|
3660
3673
|
eventToProps: {},
|
|
3661
3674
|
fireRegisterEvent: !0
|
|
3662
3675
|
}),
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
],
|
|
3667
|
-
|
|
3668
|
-
const
|
|
3669
|
-
var
|
|
3676
|
+
Ln("design:type", Function),
|
|
3677
|
+
Ln("design:paramtypes", []),
|
|
3678
|
+
Ln("design:returntype", void 0)
|
|
3679
|
+
], ea.prototype, "render", null);
|
|
3680
|
+
ea.style = Bs;
|
|
3681
|
+
const qs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:flex;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title 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-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', Vs = qs;
|
|
3682
|
+
var Js = function(e, n, t, a) {
|
|
3670
3683
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3671
3684
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3672
3685
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3674,11 +3687,11 @@ var Vs = function(e, n, t, a) {
|
|
|
3674
3687
|
for (var l = e.length - 1; l >= 0; l--)
|
|
3675
3688
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
3676
3689
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3677
|
-
},
|
|
3690
|
+
}, Nn = function(e, n) {
|
|
3678
3691
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3679
3692
|
return Reflect.metadata(e, n);
|
|
3680
3693
|
};
|
|
3681
|
-
const
|
|
3694
|
+
const na = class {
|
|
3682
3695
|
constructor(e) {
|
|
3683
3696
|
var n, t;
|
|
3684
3697
|
g(this, e), this.valueChanged = x(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.eventTitle = (t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.title, this.name = "title", this.showTokens = !1, this.availableTokens = lt.map((a) => ({
|
|
@@ -3738,11 +3751,11 @@ const ea = class {
|
|
|
3738
3751
|
getCurrentSelectionForBrowser() {
|
|
3739
3752
|
var a, o, i;
|
|
3740
3753
|
const e = (r, l, c, p) => {
|
|
3741
|
-
const m = r.replace(/[\u200B-\u200D\uFEFF]/g, ""), f = m.lastIndexOf("$"),
|
|
3754
|
+
const m = r.replace(/[\u200B-\u200D\uFEFF]/g, ""), f = m.lastIndexOf("$"), u = m.substring(f).split(" ")[0];
|
|
3742
3755
|
return {
|
|
3743
3756
|
focusOffset: l,
|
|
3744
3757
|
dollarIndex: f,
|
|
3745
|
-
lastWord:
|
|
3758
|
+
lastWord: u,
|
|
3746
3759
|
currentText: m,
|
|
3747
3760
|
node: c,
|
|
3748
3761
|
allSelected: p
|
|
@@ -3751,16 +3764,16 @@ const ea = class {
|
|
|
3751
3764
|
var l, c;
|
|
3752
3765
|
return r.anchorOffset === 0 && r.focusOffset === ((c = (l = r.focusNode) == null ? void 0 : l.nodeValue) == null ? void 0 : c.length);
|
|
3753
3766
|
};
|
|
3754
|
-
switch (
|
|
3767
|
+
switch (ga()) {
|
|
3755
3768
|
case "Chrome":
|
|
3756
3769
|
const r = (a = this.host.shadowRoot) == null ? void 0 : a.getSelection(), l = r == null ? void 0 : r.focusNode, c = (l == null ? void 0 : l.nodeValue) || "", p = r && n(r);
|
|
3757
3770
|
return e(c, (r == null ? void 0 : r.focusOffset) || -1, l, p);
|
|
3758
3771
|
case "Firefox":
|
|
3759
|
-
const m = document.getSelection(), f = ((o = m == null ? void 0 : m.anchorNode) == null ? void 0 : o.nodeValue) || "",
|
|
3760
|
-
return e(f, (m == null ? void 0 : m.focusOffset) || -1, m == null ? void 0 : m.anchorNode,
|
|
3772
|
+
const m = document.getSelection(), f = ((o = m == null ? void 0 : m.anchorNode) == null ? void 0 : o.nodeValue) || "", u = m && n(m);
|
|
3773
|
+
return e(f, (m == null ? void 0 : m.focusOffset) || -1, m == null ? void 0 : m.anchorNode, u);
|
|
3761
3774
|
case "Safari":
|
|
3762
|
-
const b = window.getSelection(), y = b == null ? void 0 : b.getComposedRanges(this.host.shadowRoot)[0], C = ((i = y == null ? void 0 : y.startContainer) == null ? void 0 : i.nodeValue) || "",
|
|
3763
|
-
return e(C, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer,
|
|
3775
|
+
const b = window.getSelection(), y = b == null ? void 0 : b.getComposedRanges(this.host.shadowRoot)[0], C = ((i = y == null ? void 0 : y.startContainer) == null ? void 0 : i.nodeValue) || "", D = b && n(b);
|
|
3776
|
+
return e(C, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer, D);
|
|
3764
3777
|
default:
|
|
3765
3778
|
return console.warn("Browser not supported"), null;
|
|
3766
3779
|
}
|
|
@@ -3788,7 +3801,7 @@ const ea = class {
|
|
|
3788
3801
|
handleInputKeyDown(e) {
|
|
3789
3802
|
var t, a, o, i;
|
|
3790
3803
|
const n = this.getCurrentSelectionForBrowser();
|
|
3791
|
-
if (n != null && n.allSelected && !
|
|
3804
|
+
if (n != null && n.allSelected && !ba(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
|
|
3792
3805
|
e.preventDefault();
|
|
3793
3806
|
const r = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(this.ariaActivedescendant);
|
|
3794
3807
|
r && (r.click(), this.ariaActivedescendant = "");
|
|
@@ -3822,8 +3835,8 @@ const ea = class {
|
|
|
3822
3835
|
let o = this.titleRef.firstChild, i = null;
|
|
3823
3836
|
for (; o; ) {
|
|
3824
3837
|
if (o.nodeType === 3) {
|
|
3825
|
-
const
|
|
3826
|
-
if (
|
|
3838
|
+
const D = ((C = o.textContent) == null ? void 0 : C.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", F = t.replace(/[\u200B-\u200D\uFEFF]/g, "");
|
|
3839
|
+
if (D.includes(F)) {
|
|
3827
3840
|
i = o;
|
|
3828
3841
|
break;
|
|
3829
3842
|
}
|
|
@@ -3832,14 +3845,14 @@ const ea = class {
|
|
|
3832
3845
|
}
|
|
3833
3846
|
if (!i)
|
|
3834
3847
|
return;
|
|
3835
|
-
const r = i.textContent || "", l = r.indexOf(a), c = r.substring(0, l), p = r.substring(l + a.length), m = document.createTextNode(c), f = document.createRange(),
|
|
3836
|
-
|
|
3848
|
+
const r = i.textContent || "", l = r.indexOf(a), c = r.substring(0, l), p = r.substring(l + a.length), m = document.createTextNode(c), f = document.createRange(), u = document.createElement("span");
|
|
3849
|
+
u.classList.add("highlighted-tag"), u.textContent = `${n.value}`;
|
|
3837
3850
|
const b = document.createTextNode(p);
|
|
3838
3851
|
if (p !== "")
|
|
3839
|
-
i.replaceWith(m,
|
|
3852
|
+
i.replaceWith(m, u, b), f.setStart(b, 1);
|
|
3840
3853
|
else {
|
|
3841
|
-
const
|
|
3842
|
-
i.replaceWith(m,
|
|
3854
|
+
const D = document.createTextNode("");
|
|
3855
|
+
i.replaceWith(m, u, D), f.setStart(D, 1);
|
|
3843
3856
|
}
|
|
3844
3857
|
this.resetDropdown(), this.titleRef.focus();
|
|
3845
3858
|
const y = window.getSelection();
|
|
@@ -3883,20 +3896,20 @@ const ea = class {
|
|
|
3883
3896
|
};
|
|
3884
3897
|
}
|
|
3885
3898
|
};
|
|
3886
|
-
|
|
3899
|
+
Js([
|
|
3887
3900
|
S({
|
|
3888
3901
|
name: "nylas-event-title",
|
|
3889
3902
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3890
3903
|
eventToProps: {},
|
|
3891
3904
|
fireRegisterEvent: !0
|
|
3892
3905
|
}),
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
],
|
|
3897
|
-
|
|
3898
|
-
const
|
|
3899
|
-
var
|
|
3906
|
+
Nn("design:type", Function),
|
|
3907
|
+
Nn("design:paramtypes", []),
|
|
3908
|
+
Nn("design:returntype", void 0)
|
|
3909
|
+
], na.prototype, "render", null);
|
|
3910
|
+
na.style = Vs;
|
|
3911
|
+
const Gs = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.card-wrapper{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:1rem;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', Ys = Gs;
|
|
3912
|
+
var Xs = function(e, n, t, a) {
|
|
3900
3913
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3901
3914
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3902
3915
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3908,7 +3921,7 @@ var Ys = function(e, n, t, a) {
|
|
|
3908
3921
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3909
3922
|
return Reflect.metadata(e, n);
|
|
3910
3923
|
};
|
|
3911
|
-
const
|
|
3924
|
+
const ta = class {
|
|
3912
3925
|
constructor(e) {
|
|
3913
3926
|
g(this, e), this.feedbackModalClosed = x(this, "feedbackModalClosed", 7), this.feedbackSubmitted = x(this, "feedbackSubmitted", 7), this.triggerValidation = x(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
|
|
3914
3927
|
this.triggerValidation.emit().defaultPrevented || this.feedbackSubmitted.emit({ feedback: this.feedbackMessage });
|
|
@@ -3936,15 +3949,15 @@ const na = class {
|
|
|
3936
3949
|
e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
|
|
3937
3950
|
}
|
|
3938
3951
|
render() {
|
|
3939
|
-
return s(E, { key: "a30860bd5c42332657c3084c2680b136ec1eaa67", part: "nfbf" }, s("div", { key: "37cd7481d3017e3c896a940a7ebc776f7c19c2f2", class: "card-wrapper", part: "nfbfc__card" }, s("div", { key: "80c1c7770c36c9e01c39b68ff6c204b1a0a2db74", class: "close-button" }, s("button-component", { key: "408e2c4a25009a0acd593439ab7978fc38b89096", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, s("close-icon", { key: "e0afa64f4073eea9eaf4692026d23df6e5bb66af" }))), s("div", { key: "131e27ebc2d35bc489c9f10566ff6f0236e7828e", class: "header" }, s("h2", { key: "1a69a21f7882a4d098f651082fee8a95cfaf7030", slot: "card-title", part: "nfbf__title" },
|
|
3952
|
+
return s(E, { key: "a30860bd5c42332657c3084c2680b136ec1eaa67", part: "nfbf" }, s("div", { key: "37cd7481d3017e3c896a940a7ebc776f7c19c2f2", class: "card-wrapper", part: "nfbfc__card" }, s("div", { key: "80c1c7770c36c9e01c39b68ff6c204b1a0a2db74", class: "close-button" }, s("button-component", { key: "408e2c4a25009a0acd593439ab7978fc38b89096", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, s("close-icon", { key: "e0afa64f4073eea9eaf4692026d23df6e5bb66af" }))), s("div", { key: "131e27ebc2d35bc489c9f10566ff6f0236e7828e", class: "header" }, s("h2", { key: "1a69a21f7882a4d098f651082fee8a95cfaf7030", slot: "card-title", part: "nfbf__title" }, be.t("feedbackFormTitle"))), s("div", { key: "41da0f5a9c4d838904e2eea9a3354e7d24839e10", class: "description title-desc" }, s("p", { key: "4fbd2c5c0e49c2845f6595c108d68c1d2586dc9a" }, be.t("feedbackFormDescription"))), s("textarea-component", { key: "899b0f78b1b411517eb275d69dbf94f78583b71d", label: be.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: be.t("feedbackMessagePlaceholder") }), s("div", { key: "4774bf3601d35202ac17f4e2f34dd917201e6bba", class: "description footer-desc" }, s("p", { key: "5d24e812deb9d923e964db5e1707c26319c30aaf" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", s("a", { key: "5da0487543195028584d32f40190669df3955512", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), s("div", { key: "495cff113e92f77fd4f86ae85fc5f37362aca230", class: {
|
|
3940
3953
|
footer: !0
|
|
3941
|
-
} }, s("button-component", { key: "048d5a6c8a483c8fb2b7c6fe4b45ca167cf87fbe", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${
|
|
3954
|
+
} }, s("button-component", { key: "048d5a6c8a483c8fb2b7c6fe4b45ca167cf87fbe", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${be.t("feedbackModalCloseButton")}`), s("button-component", { key: "4a414579c7e47bc728fee83ee46756a488f12086", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${be.t("feedbackModalSubmitButton")}`))));
|
|
3942
3955
|
}
|
|
3943
3956
|
get host() {
|
|
3944
3957
|
return O(this);
|
|
3945
3958
|
}
|
|
3946
3959
|
};
|
|
3947
|
-
|
|
3960
|
+
Xs([
|
|
3948
3961
|
S({
|
|
3949
3962
|
name: "nylas-feedback-form",
|
|
3950
3963
|
stateToProps: /* @__PURE__ */ new Map([]),
|
|
@@ -3958,10 +3971,10 @@ Ys([
|
|
|
3958
3971
|
Rn("design:type", Function),
|
|
3959
3972
|
Rn("design:paramtypes", []),
|
|
3960
3973
|
Rn("design:returntype", void 0)
|
|
3961
|
-
],
|
|
3962
|
-
|
|
3963
|
-
const
|
|
3964
|
-
var
|
|
3974
|
+
], ta.prototype, "render", null);
|
|
3975
|
+
ta.style = Ys;
|
|
3976
|
+
const Ks = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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}', Qs = Ks;
|
|
3977
|
+
var eo = function(e, n, t, a) {
|
|
3965
3978
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3966
3979
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3967
3980
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3973,7 +3986,7 @@ var Qs = function(e, n, t, a) {
|
|
|
3973
3986
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3974
3987
|
return Reflect.metadata(e, n);
|
|
3975
3988
|
};
|
|
3976
|
-
const
|
|
3989
|
+
const aa = class {
|
|
3977
3990
|
constructor(e) {
|
|
3978
3991
|
g(this, e), this.valueChanged = x(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.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
3979
3992
|
}
|
|
@@ -4023,7 +4036,7 @@ const ta = class {
|
|
|
4023
4036
|
};
|
|
4024
4037
|
}
|
|
4025
4038
|
};
|
|
4026
|
-
|
|
4039
|
+
eo([
|
|
4027
4040
|
S({
|
|
4028
4041
|
name: "nylas-limit-future-bookings",
|
|
4029
4042
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4033,10 +4046,10 @@ Qs([
|
|
|
4033
4046
|
An("design:type", Function),
|
|
4034
4047
|
An("design:paramtypes", []),
|
|
4035
4048
|
An("design:returntype", void 0)
|
|
4036
|
-
],
|
|
4037
|
-
|
|
4038
|
-
const
|
|
4039
|
-
var
|
|
4049
|
+
], aa.prototype, "render", null);
|
|
4050
|
+
aa.style = Qs;
|
|
4051
|
+
const no = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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}', to = no;
|
|
4052
|
+
var ao = function(e, n, t, a) {
|
|
4040
4053
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4041
4054
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4042
4055
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4048,7 +4061,7 @@ var to = function(e, n, t, a) {
|
|
|
4048
4061
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4049
4062
|
return Reflect.metadata(e, n);
|
|
4050
4063
|
};
|
|
4051
|
-
const
|
|
4064
|
+
const ia = class {
|
|
4052
4065
|
constructor(e) {
|
|
4053
4066
|
g(this, e), this.valueChanged = x(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.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
4054
4067
|
}
|
|
@@ -4099,7 +4112,7 @@ const aa = class {
|
|
|
4099
4112
|
};
|
|
4100
4113
|
}
|
|
4101
4114
|
};
|
|
4102
|
-
|
|
4115
|
+
ao([
|
|
4103
4116
|
S({
|
|
4104
4117
|
name: "nylas-min-booking-notice",
|
|
4105
4118
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4109,10 +4122,10 @@ to([
|
|
|
4109
4122
|
Mn("design:type", Function),
|
|
4110
4123
|
Mn("design:paramtypes", []),
|
|
4111
4124
|
Mn("design:returntype", void 0)
|
|
4112
|
-
],
|
|
4113
|
-
|
|
4114
|
-
const
|
|
4115
|
-
var
|
|
4125
|
+
], ia.prototype, "render", null);
|
|
4126
|
+
ia.style = to;
|
|
4127
|
+
const io = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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}', so = io;
|
|
4128
|
+
var oo = function(e, n, t, a) {
|
|
4116
4129
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4117
4130
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4118
4131
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4124,7 +4137,7 @@ var so = function(e, n, t, a) {
|
|
|
4124
4137
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4125
4138
|
return Reflect.metadata(e, n);
|
|
4126
4139
|
};
|
|
4127
|
-
const
|
|
4140
|
+
const sa = class {
|
|
4128
4141
|
constructor(e) {
|
|
4129
4142
|
g(this, e), this.valueChanged = x(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.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
4130
4143
|
}
|
|
@@ -4175,7 +4188,7 @@ const ia = class {
|
|
|
4175
4188
|
};
|
|
4176
4189
|
}
|
|
4177
4190
|
};
|
|
4178
|
-
|
|
4191
|
+
oo([
|
|
4179
4192
|
S({
|
|
4180
4193
|
name: "nylas-min-cancellation-notice",
|
|
4181
4194
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4185,10 +4198,10 @@ so([
|
|
|
4185
4198
|
zn("design:type", Function),
|
|
4186
4199
|
zn("design:paramtypes", []),
|
|
4187
4200
|
zn("design:returntype", void 0)
|
|
4188
|
-
],
|
|
4189
|
-
|
|
4190
|
-
const
|
|
4191
|
-
var
|
|
4201
|
+
], sa.prototype, "render", null);
|
|
4202
|
+
sa.style = so;
|
|
4203
|
+
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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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 .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:1rem;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__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 input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}', lo = ro;
|
|
4204
|
+
var co = function(e, n, t, a) {
|
|
4192
4205
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4193
4206
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4194
4207
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4200,7 +4213,7 @@ var lo = function(e, n, t, a) {
|
|
|
4200
4213
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4201
4214
|
return Reflect.metadata(e, n);
|
|
4202
4215
|
};
|
|
4203
|
-
const
|
|
4216
|
+
const oa = class {
|
|
4204
4217
|
constructor(e) {
|
|
4205
4218
|
g(this, e), this.valueChanged = x(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.currentPageName = void 0;
|
|
4206
4219
|
}
|
|
@@ -4258,7 +4271,7 @@ const sa = class {
|
|
|
4258
4271
|
};
|
|
4259
4272
|
}
|
|
4260
4273
|
};
|
|
4261
|
-
|
|
4274
|
+
co([
|
|
4262
4275
|
S({
|
|
4263
4276
|
name: "nylas-page-name",
|
|
4264
4277
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4273,10 +4286,10 @@ lo([
|
|
|
4273
4286
|
jn("design:type", Function),
|
|
4274
4287
|
jn("design:paramtypes", []),
|
|
4275
4288
|
jn("design:returntype", void 0)
|
|
4276
|
-
],
|
|
4277
|
-
|
|
4278
|
-
const
|
|
4279
|
-
var
|
|
4289
|
+
], oa.prototype, "render", null);
|
|
4290
|
+
oa.style = lo;
|
|
4291
|
+
const po = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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.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:1rem;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:1rem;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:1rem;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}', fo = po;
|
|
4292
|
+
var mo = function(e, n, t, a) {
|
|
4280
4293
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4281
4294
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4282
4295
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4288,7 +4301,7 @@ var fo = function(e, n, t, a) {
|
|
|
4288
4301
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4289
4302
|
return Reflect.metadata(e, n);
|
|
4290
4303
|
};
|
|
4291
|
-
const
|
|
4304
|
+
const ra = class {
|
|
4292
4305
|
constructor(e) {
|
|
4293
4306
|
g(this, e), this.valueChanged = x(this, "valueChanged", 7), this.bookingFormSubmitted = x(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.currentAppearance = void 0, this.customInputsSlot = null;
|
|
4294
4307
|
}
|
|
@@ -4436,7 +4449,7 @@ const oa = class {
|
|
|
4436
4449
|
this.isOpen = !this.isOpen;
|
|
4437
4450
|
}
|
|
4438
4451
|
render() {
|
|
4439
|
-
return s(E, { key: "
|
|
4452
|
+
return s(E, { key: "c2ffa8ae940e9594f254903d45abc3f7c01d7d41" }, s("div", { key: "1813654e2aaa9c66d5a535186f227968b434654c", part: "nps", class: { "nylas-page-styling": !0, "no-border": !this.customInputsSlot } }, this.customInputsSlot ? s("div", { class: "header", part: "nps__header" }, s("div", null, s("h3", null, "Page styling and customization")), s("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, s("chevron-icon", { width: "24", height: "24" })))) : null, s("div", { key: "cff4891eeb1a958feb2a6b20623b97f908721c60", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, s("div", { key: "16b2398f10b6d7703d02bbbf5c43e3e229499b2d", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, s("div", { key: "fd09434076ea4626ee9d7b2710ec8418325aa117", class: "nylas-page-styling__row" }, s("div", { key: "16a29cabadc4f1a4ba9f389fe232ea22125cfe36", class: { subsection: !0, hide: !this.isOpen } }))))));
|
|
4440
4453
|
}
|
|
4441
4454
|
static get formAssociated() {
|
|
4442
4455
|
return !0;
|
|
@@ -4446,11 +4459,12 @@ const oa = class {
|
|
|
4446
4459
|
}
|
|
4447
4460
|
static get watchers() {
|
|
4448
4461
|
return {
|
|
4449
|
-
name: ["elementNameChangedHandler"]
|
|
4462
|
+
name: ["elementNameChangedHandler"],
|
|
4463
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"]
|
|
4450
4464
|
};
|
|
4451
4465
|
}
|
|
4452
4466
|
};
|
|
4453
|
-
|
|
4467
|
+
mo([
|
|
4454
4468
|
S({
|
|
4455
4469
|
name: "nylas-page-styling",
|
|
4456
4470
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4465,10 +4479,10 @@ fo([
|
|
|
4465
4479
|
Un("design:type", Function),
|
|
4466
4480
|
Un("design:paramtypes", []),
|
|
4467
4481
|
Un("design:returntype", void 0)
|
|
4468
|
-
],
|
|
4469
|
-
|
|
4470
|
-
const
|
|
4471
|
-
var
|
|
4482
|
+
], ra.prototype, "render", null);
|
|
4483
|
+
ra.style = fo;
|
|
4484
|
+
const ho = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}', uo = ho;
|
|
4485
|
+
var yo = function(e, n, t, a) {
|
|
4472
4486
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4473
4487
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4474
4488
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4476,11 +4490,11 @@ var ho = function(e, n, t, a) {
|
|
|
4476
4490
|
for (var l = e.length - 1; l >= 0; l--)
|
|
4477
4491
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
4478
4492
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4479
|
-
},
|
|
4493
|
+
}, Wn = function(e, n) {
|
|
4480
4494
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4481
4495
|
return Reflect.metadata(e, n);
|
|
4482
4496
|
};
|
|
4483
|
-
const
|
|
4497
|
+
const la = class {
|
|
4484
4498
|
constructor(e) {
|
|
4485
4499
|
var n;
|
|
4486
4500
|
g(this, e), this.valueChanged = x(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.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendar = {};
|
|
@@ -4506,18 +4520,18 @@ const ra = class {
|
|
|
4506
4520
|
var i, r, l, c;
|
|
4507
4521
|
const t = e == null ? void 0 : e.find((p) => p.is_organizer), a = {}, o = ((l = (r = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : l.availability_method) !== "collective";
|
|
4508
4522
|
if (n && o) {
|
|
4509
|
-
const p = e == null ? void 0 : e.filter((f) => n.some((
|
|
4523
|
+
const p = e == null ? void 0 : e.filter((f) => n.some((u) => u.email === f.email)), m = e == null ? void 0 : e.filter((f) => !n.some((u) => u.email === f.email));
|
|
4510
4524
|
p == null || p.forEach((f) => {
|
|
4511
4525
|
var y;
|
|
4512
|
-
const
|
|
4513
|
-
if (!
|
|
4526
|
+
const u = n == null ? void 0 : n.find((C) => C.email === f.email);
|
|
4527
|
+
if (!u)
|
|
4514
4528
|
return;
|
|
4515
4529
|
this.participantDefaultSelectedCalendar[f.email] = ((y = f.booking) == null ? void 0 : y.calendar_id) ?? "primary";
|
|
4516
|
-
const b =
|
|
4530
|
+
const b = u.calendars ?? [];
|
|
4517
4531
|
a[f.email] = b;
|
|
4518
4532
|
}), m == null || m.forEach((f) => {
|
|
4519
|
-
var
|
|
4520
|
-
(
|
|
4533
|
+
var u, b;
|
|
4534
|
+
(u = f == null ? void 0 : f.booking) != null && u.calendar_id && (a[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendar[f.email] = ((b = f == null ? void 0 : f.booking) == null ? void 0 : b.calendar_id) ?? "primary");
|
|
4521
4535
|
});
|
|
4522
4536
|
}
|
|
4523
4537
|
return t && (a[t.email] = this.calendars ?? [{ id: "primary", name: t.email }], this.participantDefaultSelectedCalendar[t.email] = ((c = t == null ? void 0 : t.booking) == null ? void 0 : c.calendar_id) ?? "primary"), a;
|
|
@@ -4595,7 +4609,7 @@ const ra = class {
|
|
|
4595
4609
|
};
|
|
4596
4610
|
}
|
|
4597
4611
|
};
|
|
4598
|
-
|
|
4612
|
+
yo([
|
|
4599
4613
|
S({
|
|
4600
4614
|
name: "nylas-participant-booking-calendars",
|
|
4601
4615
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -4606,13 +4620,13 @@ ho([
|
|
|
4606
4620
|
eventToProps: {},
|
|
4607
4621
|
fireRegisterEvent: !0
|
|
4608
4622
|
}),
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
],
|
|
4613
|
-
|
|
4614
|
-
const
|
|
4615
|
-
var
|
|
4623
|
+
Wn("design:type", Function),
|
|
4624
|
+
Wn("design:paramtypes", []),
|
|
4625
|
+
Wn("design:returntype", void 0)
|
|
4626
|
+
], la.prototype, "render", null);
|
|
4627
|
+
la.style = uo;
|
|
4628
|
+
const bo = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}', go = bo;
|
|
4629
|
+
var vo = function(e, n, t, a) {
|
|
4616
4630
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4617
4631
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4618
4632
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4620,11 +4634,11 @@ var go = function(e, n, t, a) {
|
|
|
4620
4634
|
for (var l = e.length - 1; l >= 0; l--)
|
|
4621
4635
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
4622
4636
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4623
|
-
},
|
|
4637
|
+
}, Bn = function(e, n) {
|
|
4624
4638
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4625
4639
|
return Reflect.metadata(e, n);
|
|
4626
4640
|
};
|
|
4627
|
-
const
|
|
4641
|
+
const da = class {
|
|
4628
4642
|
constructor(e) {
|
|
4629
4643
|
var n;
|
|
4630
4644
|
g(this, e), this.valueChanged = x(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.selectedParticipants = this.setParticipants(this.participants);
|
|
@@ -4652,10 +4666,10 @@ const la = class {
|
|
|
4652
4666
|
d("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);
|
|
4653
4667
|
}
|
|
4654
4668
|
nylasFormSwitchToggledHandler(e) {
|
|
4655
|
-
var i, r, l, c, p, m, f,
|
|
4669
|
+
var i, r, l, c, p, m, f, u, b, y, C, D;
|
|
4656
4670
|
d("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
|
|
4657
|
-
const n = (i = this.selectedConfiguration) == null ? void 0 : i.participants.find((F) => F.email === e.detail.name), t = (r = n == null ? void 0 : n.availability) == null ? void 0 : r.open_hours, a = t || ((p = (c = (l = this.selectedConfiguration) == null ? void 0 : l.availability) == null ? void 0 : c.availability_rules) == null ? void 0 : p.default_open_hours) || [], o = t && t.length > 0 ? n == null ? void 0 : n.timezone : ((y = (b = (
|
|
4658
|
-
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 ? (a == null ? void 0 : a.length) > 0 ? a :
|
|
4671
|
+
const n = (i = this.selectedConfiguration) == null ? void 0 : i.participants.find((F) => F.email === e.detail.name), t = (r = n == null ? void 0 : n.availability) == null ? void 0 : r.open_hours, a = t || ((p = (c = (l = this.selectedConfiguration) == null ? void 0 : l.availability) == null ? void 0 : c.availability_rules) == null ? void 0 : p.default_open_hours) || [], o = t && t.length > 0 ? n == null ? void 0 : n.timezone : ((y = (b = (u = (f = (m = this.selectedConfiguration) == null ? void 0 : m.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : u.default_open_hours) == null ? void 0 : b.at(0)) == null ? void 0 : y.timezone) || ((D = (C = this.selectedConfiguration) == null ? void 0 : C.event_booking) == null ? void 0 : D.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
4672
|
+
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 ? (a == null ? void 0 : a.length) > 0 ? a : _t : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? o : void 0, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4659
4673
|
}
|
|
4660
4674
|
handleValueChanged(e) {
|
|
4661
4675
|
d("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
@@ -4697,12 +4711,13 @@ const la = class {
|
|
|
4697
4711
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
4698
4712
|
}
|
|
4699
4713
|
render() {
|
|
4700
|
-
return s(E, { key: "
|
|
4701
|
-
|
|
4714
|
+
return s(E, { key: "64198b8231e1739484f81d02167d7b5f456eda69" }, s("div", { key: "68eb8279c510ef937e19dec06960867c98a5b02a", class: "nylas-participants-custom-availability", part: "npca" }, s("div", { key: "9622d8a7fbc124723cb7135a3a3846fad0e4e458", class: "header", part: "npca__header" }, s("h3", { key: "6424eeeb937ce2225a63d76482ec633efacd9e7a" }, "Participant open hours"), s("p", { key: "ac021fef4d4b0de03d5e2ca335563ec4f328156c" }, "If not set, the default open hours will be used to calculate availability for this participant.")), s("div", { key: "e9412e214011b575954196e39ea265dcf86801ec", class: "content", part: "npca__content" }, s("form", { key: "ab5b4239f2d2b31fcd69d0f2e2d61a8a13003739", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
|
|
4715
|
+
var o;
|
|
4716
|
+
const t = this.selectedParticipants[e], a = ((o = t.availability) == null ? void 0 : o.open_hours) || [];
|
|
4702
4717
|
if (!(!t || !t.name || !t.availability))
|
|
4703
4718
|
return s("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${n}` }, s("div", { class: "participant-title", part: "npca__participant-title" }, s("p", null, t.name, "'s open hours"), s("div", { class: "participant-toggle", part: "npca__participant-toggle--container" }, s("toggle-switch", { exportparts: "ts_label: npca__toggle-label, ts_input: npca_toggle-input, ts_slider: npca_toggle-slider", name: e, checked: !!(t != null && t.openHours) && (t == null ? void 0 : t.openHours.length) > 0 }), s("span", { class: `chevron ${t.isOpen ? "open" : "closed"} ${t.setCustom ? "" : "disabled"}`, onClick: () => {
|
|
4704
4719
|
t.setCustom && (this.selectedParticipants[e].isOpen = !t.isOpen, this.selectedParticipants = { ...this.selectedParticipants });
|
|
4705
|
-
} }, s("chevron-icon", { width: "24", height: "24" })))), t.isOpen && s("nylas-availability-picker", { key: n, name: `participant-${n}-${e}`, openHours:
|
|
4720
|
+
} }, s("chevron-icon", { width: "24", height: "24" })))), t.isOpen && s("nylas-availability-picker", { key: n, name: `participant-${n}-${e}`, openHours: a, defaultTimezone: t.timezone, hideHeader: !0 }));
|
|
4706
4721
|
})))));
|
|
4707
4722
|
}
|
|
4708
4723
|
static get formAssociated() {
|
|
@@ -4719,20 +4734,20 @@ const la = class {
|
|
|
4719
4734
|
};
|
|
4720
4735
|
}
|
|
4721
4736
|
};
|
|
4722
|
-
|
|
4737
|
+
vo([
|
|
4723
4738
|
S({
|
|
4724
4739
|
name: "nylas-participants-custom-availability",
|
|
4725
4740
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4726
4741
|
eventToProps: {},
|
|
4727
4742
|
fireRegisterEvent: !0
|
|
4728
4743
|
}),
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
],
|
|
4733
|
-
|
|
4734
|
-
const
|
|
4735
|
-
var
|
|
4744
|
+
Bn("design:type", Function),
|
|
4745
|
+
Bn("design:paramtypes", []),
|
|
4746
|
+
Bn("design:returntype", void 0)
|
|
4747
|
+
], da.prototype, "render", null);
|
|
4748
|
+
da.style = go;
|
|
4749
|
+
const _o = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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{margin:0.25rem 0 0 0;font-size:1rem;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:1rem;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}', Co = _o;
|
|
4750
|
+
var wo = function(e, n, t, a) {
|
|
4736
4751
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4737
4752
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4738
4753
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4744,7 +4759,7 @@ var Co = function(e, n, t, a) {
|
|
|
4744
4759
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4745
4760
|
return Reflect.metadata(e, n);
|
|
4746
4761
|
};
|
|
4747
|
-
const
|
|
4762
|
+
const ca = class {
|
|
4748
4763
|
constructor(e) {
|
|
4749
4764
|
var n, t, a;
|
|
4750
4765
|
g(this, e), this.valueChanged = x(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.eventReminders = void 0, this.name = "reminder-overrides", this.reminders = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.reminders) ?? this.eventReminders ?? [], this.reminderErrors = {}, this.participants = ((a = this.selectedConfiguration) == null ? void 0 : a.participants) ?? [];
|
|
@@ -4889,7 +4904,7 @@ const da = class {
|
|
|
4889
4904
|
};
|
|
4890
4905
|
}
|
|
4891
4906
|
};
|
|
4892
|
-
|
|
4907
|
+
wo([
|
|
4893
4908
|
S({
|
|
4894
4909
|
name: "nylas-reminder-emails",
|
|
4895
4910
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4904,10 +4919,10 @@ Co([
|
|
|
4904
4919
|
Zn("design:type", Function),
|
|
4905
4920
|
Zn("design:paramtypes", []),
|
|
4906
4921
|
Zn("design:returntype", void 0)
|
|
4907
|
-
],
|
|
4908
|
-
|
|
4909
|
-
const
|
|
4910
|
-
var
|
|
4922
|
+
], ca.prototype, "render", null);
|
|
4923
|
+
ca.style = Co;
|
|
4924
|
+
const xo = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-reminder-time{display:flex;flex-direction:column;gap:4px}.nylas-reminder-time label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-reminder-time label span.required{color:var(--nylas-error, #cc4841)}.nylas-reminder-time label span.label-icon{margin-left:4px}.nylas-reminder-time label span.label-icon tooltip-component{display:flex}.nylas-reminder-time__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-reminder-time__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-reminder-time__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-reminder-time__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:160px}.nylas-reminder-time__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-reminder-time__wrapper select-dropdown{width:100%}}.nylas-reminder-time__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', ko = xo;
|
|
4925
|
+
var Eo = function(e, n, t, a) {
|
|
4911
4926
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
4912
4927
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4913
4928
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4924,7 +4939,7 @@ const xe = [
|
|
|
4924
4939
|
{ value: 60, label: "hour" },
|
|
4925
4940
|
{ value: 1, label: "minute" }
|
|
4926
4941
|
];
|
|
4927
|
-
function
|
|
4942
|
+
function Oo(e) {
|
|
4928
4943
|
if (!e)
|
|
4929
4944
|
return 30;
|
|
4930
4945
|
for (const n of xe)
|
|
@@ -4932,7 +4947,7 @@ function Eo(e) {
|
|
|
4932
4947
|
return e / n.value;
|
|
4933
4948
|
return e;
|
|
4934
4949
|
}
|
|
4935
|
-
function
|
|
4950
|
+
function So(e) {
|
|
4936
4951
|
if (!e)
|
|
4937
4952
|
return 1;
|
|
4938
4953
|
for (const n of xe)
|
|
@@ -4940,9 +4955,9 @@ function Oo(e) {
|
|
|
4940
4955
|
return n.value;
|
|
4941
4956
|
return 1;
|
|
4942
4957
|
}
|
|
4943
|
-
const
|
|
4958
|
+
const pa = class {
|
|
4944
4959
|
constructor(e) {
|
|
4945
|
-
g(this, e), this.valueChanged = x(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 = "reminder-time", this.eventReminderTimeMinutes = void 0, this.reminderTime =
|
|
4960
|
+
g(this, e), this.valueChanged = x(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 = "reminder-time", this.eventReminderTimeMinutes = void 0, this.reminderTime = Oo(this.eventReminderTimeMinutes), this.reminderTimeMinutes = this.eventReminderTimeMinutes ?? 30, this.reminderTimeincrement = So(this.eventReminderTimeMinutes), this.reminderTimeMinutesOptions = dt;
|
|
4946
4961
|
}
|
|
4947
4962
|
elementNameChangedHandler(e) {
|
|
4948
4963
|
d("nylas-reminder-time", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4966,7 +4981,7 @@ const ca = class {
|
|
|
4966
4981
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
|
|
4967
4982
|
}
|
|
4968
4983
|
setReminderTimeMinuteOptions() {
|
|
4969
|
-
return this.reminderTimeincrement === 1 ? this.reminderTimeMinutesOptions = dt : this.reminderTimeincrement === 60 ? this.reminderTimeMinutesOptions =
|
|
4984
|
+
return this.reminderTimeincrement === 1 ? this.reminderTimeMinutesOptions = dt : this.reminderTimeincrement === 60 ? this.reminderTimeMinutesOptions = Ca : this.reminderTimeMinutesOptions = wa, this.reminderTimeMinutesOptions;
|
|
4970
4985
|
}
|
|
4971
4986
|
nylasFormDropdownChangedHandler(e) {
|
|
4972
4987
|
d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
@@ -4994,7 +5009,7 @@ const ca = class {
|
|
|
4994
5009
|
};
|
|
4995
5010
|
}
|
|
4996
5011
|
};
|
|
4997
|
-
|
|
5012
|
+
Eo([
|
|
4998
5013
|
S({
|
|
4999
5014
|
name: "nylas-reminder-time",
|
|
5000
5015
|
eventToProps: {},
|
|
@@ -5003,10 +5018,10 @@ ko([
|
|
|
5003
5018
|
qn("design:type", Function),
|
|
5004
5019
|
qn("design:paramtypes", []),
|
|
5005
5020
|
qn("design:returntype", void 0)
|
|
5006
|
-
],
|
|
5007
|
-
|
|
5008
|
-
const
|
|
5009
|
-
var
|
|
5021
|
+
], pa.prototype, "render", null);
|
|
5022
|
+
pa.style = ko;
|
|
5023
|
+
const Ho = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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}', Do = Ho;
|
|
5024
|
+
var To = function(e, n, t, a) {
|
|
5010
5025
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
5011
5026
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5012
5027
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -5018,7 +5033,7 @@ var Ho = function(e, n, t, a) {
|
|
|
5018
5033
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5019
5034
|
return Reflect.metadata(e, n);
|
|
5020
5035
|
};
|
|
5021
|
-
const
|
|
5036
|
+
const fa = class {
|
|
5022
5037
|
constructor(e) {
|
|
5023
5038
|
g(this, e), this.valueChanged = x(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 = "availability-method", this.participantOptions = void 0, this.readOnly = !1, this.selectedBookingType = "";
|
|
5024
5039
|
}
|
|
@@ -5081,7 +5096,7 @@ const pa = class {
|
|
|
5081
5096
|
};
|
|
5082
5097
|
}
|
|
5083
5098
|
};
|
|
5084
|
-
|
|
5099
|
+
To([
|
|
5085
5100
|
S({
|
|
5086
5101
|
name: "nylas-scheduling-method",
|
|
5087
5102
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -5097,10 +5112,10 @@ Ho([
|
|
|
5097
5112
|
Vn("design:type", Function),
|
|
5098
5113
|
Vn("design:paramtypes", []),
|
|
5099
5114
|
Vn("design:returntype", void 0)
|
|
5100
|
-
],
|
|
5101
|
-
|
|
5102
|
-
const
|
|
5103
|
-
var
|
|
5115
|
+
], fa.prototype, "render", null);
|
|
5116
|
+
fa.style = Do;
|
|
5117
|
+
const Io = ':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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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}', $o = Io;
|
|
5118
|
+
var Fo = function(e, n, t, a) {
|
|
5104
5119
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
5105
5120
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5106
5121
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -5112,7 +5127,7 @@ var $o = function(e, n, t, a) {
|
|
|
5112
5127
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5113
5128
|
return Reflect.metadata(e, n);
|
|
5114
5129
|
};
|
|
5115
|
-
const Ve = 15,
|
|
5130
|
+
const Ve = 15, ma = class {
|
|
5116
5131
|
constructor(e) {
|
|
5117
5132
|
var n, t;
|
|
5118
5133
|
g(this, e), this.valueChanged = x(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 = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.duration_minutes, this.internalEventDurationMinutes = void 0, this.selectedInterval = void 0, this.selectedRoundTo = void 0, this.componentLoaded = !1;
|
|
@@ -5210,7 +5225,7 @@ const Ve = 15, fa = class {
|
|
|
5210
5225
|
};
|
|
5211
5226
|
}
|
|
5212
5227
|
};
|
|
5213
|
-
|
|
5228
|
+
Fo([
|
|
5214
5229
|
S({
|
|
5215
5230
|
name: "nylas-timeslot-interval",
|
|
5216
5231
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -5219,9 +5234,9 @@ $o([
|
|
|
5219
5234
|
Jn("design:type", Function),
|
|
5220
5235
|
Jn("design:paramtypes", []),
|
|
5221
5236
|
Jn("design:returntype", void 0)
|
|
5222
|
-
],
|
|
5223
|
-
|
|
5224
|
-
const
|
|
5237
|
+
], ma.prototype, "render", null);
|
|
5238
|
+
ma.style = $o;
|
|
5239
|
+
const Po = ".sc-paintbrush-fill-icon-h{display:flex}", Lo = Po, No = class {
|
|
5225
5240
|
constructor(e) {
|
|
5226
5241
|
g(this, e), this.width = "16", this.height = "13";
|
|
5227
5242
|
}
|
|
@@ -5229,8 +5244,8 @@ const Fo = ".sc-paintbrush-fill-icon-h{display:flex}", No = Fo, Po = class {
|
|
|
5229
5244
|
return s("svg", { key: "e4684ac3235a59975a67508b6a5019e70b1a3a5a", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "00dee1b55784f1191d56a8c1b420f0076575a197", 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" }));
|
|
5230
5245
|
}
|
|
5231
5246
|
};
|
|
5232
|
-
|
|
5233
|
-
const
|
|
5247
|
+
No.style = Lo;
|
|
5248
|
+
const Ro = ".sc-paintbrush-icon-h{display:flex}", Ao = Ro, Mo = class {
|
|
5234
5249
|
constructor(e) {
|
|
5235
5250
|
g(this, e), this.width = "16", this.height = "13";
|
|
5236
5251
|
}
|
|
@@ -5238,8 +5253,8 @@ const Lo = ".sc-paintbrush-icon-h{display:flex}", Ro = Lo, Ao = class {
|
|
|
5238
5253
|
return s("svg", { key: "8ed14deda237ca56daa7b7cfd55788700ecf8614", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "5100cb1d8fba90615962e57facfd3361cd31f4e5", 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" }));
|
|
5239
5254
|
}
|
|
5240
5255
|
};
|
|
5241
|
-
|
|
5242
|
-
const
|
|
5256
|
+
Mo.style = Ao;
|
|
5257
|
+
const zo = ".sc-people-icon-h{display:flex}", jo = zo, Uo = class {
|
|
5243
5258
|
constructor(e) {
|
|
5244
5259
|
g(this, e), this.width = "20", this.height = "20";
|
|
5245
5260
|
}
|
|
@@ -5247,8 +5262,8 @@ const Mo = ".sc-people-icon-h{display:flex}", zo = Mo, jo = class {
|
|
|
5247
5262
|
return s("svg", { key: "e7e23abad1ff011b5e2d8931755a605179586351", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, s("path", { key: "3ddb5e0a172b339cd8d33c3ae95fda09c0edd3bb", 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" }));
|
|
5248
5263
|
}
|
|
5249
5264
|
};
|
|
5250
|
-
|
|
5251
|
-
const
|
|
5265
|
+
Uo.style = jo;
|
|
5266
|
+
const Wo = ".sc-trash-icon-h{display:flex}", Bo = Wo, Zo = class {
|
|
5252
5267
|
constructor(e) {
|
|
5253
5268
|
g(this, e), this.width = "20", this.height = "21";
|
|
5254
5269
|
}
|
|
@@ -5256,8 +5271,8 @@ const Uo = ".sc-trash-icon-h{display:flex}", Bo = Uo, Wo = class {
|
|
|
5256
5271
|
return s("svg", { key: "996def7abb49e7006b1982be54b9a7a0da6fb27f", width: this.width, height: this.height, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "85f12d3be93cba4337ddf2fc99d89c80dbf6008c", d: "M10 0.25C11.733 0.25 13.1492 1.60645 13.2449 3.31558L13.25 3.5H18.5C18.9142 3.5 19.25 3.83579 19.25 4.25C19.25 4.6297 18.9678 4.94349 18.6018 4.99315L18.5 5H17.704L16.4239 18.0192C16.2912 19.3683 15.1984 20.41 13.8626 20.4945L13.6871 20.5H6.31293C4.95734 20.5 3.81365 19.5145 3.59883 18.1934L3.57614 18.0192L2.295 5H1.5C1.1203 5 0.806509 4.71785 0.756847 4.35177L0.75 4.25C0.75 3.8703 1.03215 3.55651 1.39823 3.50685L1.5 3.5H6.75C6.75 1.70507 8.20507 0.25 10 0.25ZM16.197 5H3.802L5.06893 17.8724C5.12768 18.4696 5.60033 18.9343 6.18585 18.9936L6.31293 19H13.6871C14.2872 19 14.7959 18.5751 14.9123 17.9982L14.9311 17.8724L16.197 5ZM11.75 7.75C12.1297 7.75 12.4435 8.03215 12.4932 8.39823L12.5 8.5V15.5C12.5 15.9142 12.1642 16.25 11.75 16.25C11.3703 16.25 11.0565 15.9678 11.0068 15.6018L11 15.5V8.5C11 8.08579 11.3358 7.75 11.75 7.75ZM8.25 7.75C8.6297 7.75 8.94349 8.03215 8.99315 8.39823L9 8.5V15.5C9 15.9142 8.66421 16.25 8.25 16.25C7.8703 16.25 7.55651 15.9678 7.50685 15.6018L7.5 15.5V8.5C7.5 8.08579 7.83579 7.75 8.25 7.75ZM10 1.75C9.08183 1.75 8.32881 2.45711 8.2558 3.35647L8.25 3.5H11.75C11.75 2.5335 10.9665 1.75 10 1.75Z", fill: "currentColor" }));
|
|
5257
5272
|
}
|
|
5258
5273
|
};
|
|
5259
|
-
|
|
5260
|
-
const
|
|
5274
|
+
Zo.style = Bo;
|
|
5275
|
+
const qo = ".sc-zoom-icon-h{display:flex}", Vo = qo, Jo = class {
|
|
5261
5276
|
constructor(e) {
|
|
5262
5277
|
g(this, e), this.width = "20", this.height = "20";
|
|
5263
5278
|
}
|
|
@@ -5265,59 +5280,59 @@ const Zo = ".sc-zoom-icon-h{display:flex}", qo = Zo, Vo = class {
|
|
|
5265
5280
|
return s("svg", { key: "9789a9930b484f5094660e3b26ca8597a9b98079", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "a6c4d6c5d01a39cf9f302982b9d59e20ef8dd4fe", d: "M19.7495 6.85792C19.2077 3.4745 16.5255 0.792345 13.1421 0.250451C12.1175 0.0865155 11.0702 0 10 0C8.92992 0 7.88256 0.0865155 6.85797 0.250451C3.47453 0.792345 0.792373 3.4745 0.250478 6.85792C0.0865433 7.87796 0 8.92987 0 10C0 11.0701 0.0865433 12.1175 0.250478 13.1421C0.792373 16.5255 3.47453 19.2077 6.85797 19.7495C7.88256 19.9135 8.92992 20 10 20C11.0702 20 12.1175 19.9135 13.1421 19.7495C16.5255 19.2077 19.2077 16.5255 19.7495 13.1421C19.9135 12.122 20 11.0701 20 10C20 8.92987 19.9135 7.88251 19.7495 6.85792Z", fill: "url(#paint0_linear_22_6272)" }), s("path", { key: "8a1742b847a85d297382072fa1344e261236b2c7", d: "M12.154 12.1676C12.154 12.7596 11.6759 13.2377 11.0839 13.2377H6.42995C5.24598 13.2377 4.28516 12.2769 4.28516 11.0929V7.87794C4.28516 7.28596 4.76328 6.80786 5.35527 6.80786H10.0092C11.1932 6.80786 12.154 7.7687 12.154 8.95267V12.1676ZM14.8589 7.09475L13.2879 8.27412C13.0193 8.47448 12.8598 8.79324 12.8598 9.13022V10.9153C12.8598 11.2523 13.0193 11.5711 13.2879 11.7714L14.8589 12.9508C15.2141 13.2149 15.715 12.9645 15.715 12.5228V7.5228C15.715 7.08109 15.2096 6.83063 14.8589 7.09475Z", fill: "white" }), s("defs", { key: "be2e9962bb2dec55076c7b323ad5b1140ef9283b" }, s("linearGradient", { key: "7d273efb34a3a13abd745023ff924b1dbd87be37", id: "paint0_linear_22_6272", x1: "10", y1: "19.9954", x2: "10", y2: "-0.00455379", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "841a9fc4ea78d5507cd19a581573c8cf86fb443a", "stop-color": "#003FAE" }), s("stop", { key: "84c1e64fa2dcdf8bc3c532db4d67bcda557c6a50", offset: "0.02", "stop-color": "#0142B7" }), s("stop", { key: "c5fccfcd3460597ba44aea510048970b5ea750bf", offset: "0.09", "stop-color": "#044BD1" }), s("stop", { key: "08b1ebe7800ae3e1da23755119f3411693ab22ab", offset: "0.16", "stop-color": "#0752E5" }), s("stop", { key: "16c3bc399028a8377c06c6e1b4cf1680717ef464", offset: "0.24", "stop-color": "#0958F4" }), s("stop", { key: "c5938a655523d730914af0f13eebd1d51527cab8", offset: "0.34", "stop-color": "#0A5BFC" }), s("stop", { key: "c3ec1966b6d7602465a59c2b5db40ad4738cfc0b", offset: "0.5", "stop-color": "#0B5CFF" }))));
|
|
5266
5281
|
}
|
|
5267
5282
|
};
|
|
5268
|
-
|
|
5283
|
+
Jo.style = Vo;
|
|
5269
5284
|
export {
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5285
|
+
Ea as calendar_agenda_fill_icon,
|
|
5286
|
+
Ha as calendar_agenda_icon,
|
|
5287
|
+
Ia as calendar_info_icon,
|
|
5288
|
+
Pa as calendar_patterns_icon,
|
|
5289
|
+
Ra as checkmark_icon,
|
|
5290
|
+
za as dragable_icon,
|
|
5291
|
+
Wa as envelope_fill_icon,
|
|
5292
|
+
qa as envelope_icon,
|
|
5293
|
+
Ga as eye_icon,
|
|
5294
|
+
Ka as feedback_icon,
|
|
5295
|
+
ni as flow_icon,
|
|
5296
|
+
ii as google_meet_icon,
|
|
5297
|
+
Ct as input_image_url,
|
|
5298
|
+
ci as location_icon,
|
|
5299
|
+
mi as location_off_icon,
|
|
5300
|
+
yi as microsoft_teams_icon,
|
|
5301
|
+
wt as nylas_additional_participants,
|
|
5302
|
+
xt as nylas_availability_picker,
|
|
5303
|
+
kt as nylas_booking_calendar_picker,
|
|
5304
|
+
Et as nylas_booking_confirmation_redirect,
|
|
5305
|
+
Ot as nylas_booking_confirmation_type,
|
|
5306
|
+
jt as nylas_booking_form_config,
|
|
5307
|
+
Ut as nylas_buffer_time,
|
|
5308
|
+
Wt as nylas_calendar_picker,
|
|
5294
5309
|
Bt as nylas_cancellation_policy,
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5310
|
+
Zt as nylas_confirmation_email,
|
|
5311
|
+
qt as nylas_connected_calendars,
|
|
5312
|
+
Vt as nylas_custom_booking_flow,
|
|
5313
|
+
Jt as nylas_custom_event_slug,
|
|
5314
|
+
Gt as nylas_customize_booking_settings,
|
|
5315
|
+
Yt as nylas_event_description,
|
|
5316
|
+
Xt as nylas_event_duration,
|
|
5317
|
+
Kt as nylas_event_info,
|
|
5318
|
+
Qt as nylas_event_limits,
|
|
5319
|
+
ea as nylas_event_location,
|
|
5320
|
+
na as nylas_event_title,
|
|
5321
|
+
ta as nylas_feedback_form,
|
|
5322
|
+
aa as nylas_limit_future_bookings,
|
|
5323
|
+
ia as nylas_min_booking_notice,
|
|
5324
|
+
sa as nylas_min_cancellation_notice,
|
|
5325
|
+
oa as nylas_page_name,
|
|
5326
|
+
ra as nylas_page_styling,
|
|
5327
|
+
la as nylas_participant_booking_calendars,
|
|
5328
|
+
da as nylas_participants_custom_availability,
|
|
5329
|
+
ca as nylas_reminder_emails,
|
|
5330
|
+
pa as nylas_reminder_time,
|
|
5331
|
+
fa as nylas_scheduling_method,
|
|
5332
|
+
ma as nylas_timeslot_interval,
|
|
5333
|
+
No as paintbrush_fill_icon,
|
|
5334
|
+
Mo as paintbrush_icon,
|
|
5335
|
+
Uo as people_icon,
|
|
5336
|
+
Zo as trash_icon,
|
|
5337
|
+
Jo as zoom_icon
|
|
5323
5338
|
};
|