@nylas/react 1.1.1 → 1.1.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_2.entry-c6211866.cjs → add-circle-icon_2.entry-b77120e5.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-b14ecb5c.js → add-circle-icon_2.entry-fbc1e82b.js} +1 -1
- package/dist/{archive-icon_7.entry-3fe7721a.js → archive-icon_7.entry-30962e70.js} +13 -13
- package/dist/{archive-icon_7.entry-54fc1f03.cjs → archive-icon_7.entry-dd8c7642.cjs} +1 -1
- package/dist/{arrow-icon.entry-1dfee3bc.cjs → arrow-icon.entry-2dfd8319.cjs} +1 -1
- package/dist/{arrow-icon.entry-cc936041.js → arrow-icon.entry-5b436054.js} +1 -1
- package/dist/{bold-icon_3.entry-e2a1d434.js → bold-icon_3.entry-5120a9c8.js} +3 -3
- package/dist/{bold-icon_3.entry-4b9de887.cjs → bold-icon_3.entry-da2d1270.cjs} +1 -1
- package/dist/{button-component_2.entry-5666fdfa.cjs → button-component_2.entry-27a504d9.cjs} +1 -1
- package/dist/{button-component_2.entry-3639ade6.js → button-component_2.entry-697bf5ac.js} +7 -7
- package/dist/{calendar-agenda-fill-icon_48.entry-56e364cd.js → calendar-agenda-fill-icon_51.entry-52b5bf31.js} +993 -913
- package/dist/calendar-agenda-fill-icon_51.entry-a25262b3.cjs +7 -0
- package/dist/{calendar-cancel-icon.entry-ac1cb5dd.cjs → calendar-cancel-icon.entry-c6e2eed6.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-dcd777cd.js → calendar-cancel-icon.entry-e6a433a2.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-7ad1b2a0.cjs → calendar-check-icon_2.entry-45cad6f1.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-6330bd2d.js → calendar-check-icon_2.entry-d88307d6.js} +1 -1
- package/dist/{calendar-icon.entry-8559fa0d.js → calendar-icon.entry-2badc962.js} +1 -1
- package/dist/{calendar-icon.entry-5849a547.cjs → calendar-icon.entry-b2fffd21.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-6cf5da6b.cjs → checkbox-component_2.entry-3926b644.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-1474c465.js → checkbox-component_2.entry-5ab55050.js} +3 -3
- package/dist/chevron-icon_3.entry-1fe5d097.cjs +1 -0
- package/dist/{chevron-icon_3.entry-cb757aa3.js → chevron-icon_3.entry-664fae5d.js} +19 -8
- package/dist/{clock-icon_4.entry-36a33de5.cjs → clock-icon_4.entry-efec2c08.cjs} +1 -1
- package/dist/{clock-icon_4.entry-642f4dc6.js → clock-icon_4.entry-f11f9dad.js} +13 -13
- package/dist/{constants-50c3e067-83f1d865.js → constants-50c3e067-33cf0ffe.js} +1 -1
- package/dist/{constants-50c3e067-4e027da4.cjs → constants-50c3e067-5ec3f879.cjs} +1 -1
- package/dist/{copy-icon.entry-fb63cf53.cjs → copy-icon.entry-3965f206.cjs} +1 -1
- package/dist/{copy-icon.entry-60740516.js → copy-icon.entry-70131e8e.js} +1 -1
- package/dist/{delete-icon_2.entry-d1af0606.cjs → delete-icon.entry-5d067fef.cjs} +1 -1
- package/dist/{delete-icon_2.entry-45851bc5.js → delete-icon.entry-e003695d.js} +4 -14
- package/dist/{document-refresh-icon.entry-1731d4d9.cjs → document-refresh-icon.entry-30c974df.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-5db0830a.js → document-refresh-icon.entry-b4e01cd4.js} +1 -1
- package/dist/elements/index.d.ts +2 -0
- package/dist/{elements-dc5b338e-3099ee02.js → elements-dc5b338e-55823d00.js} +1 -1
- package/dist/{elements-dc5b338e-ab9afb63.cjs → elements-dc5b338e-6883a39e.cjs} +1 -1
- package/dist/feedbackSync-81d4c4d8-dd4d2e32.js +11735 -0
- package/dist/feedbackSync-81d4c4d8-f4e78902.cjs +455 -0
- package/dist/{focus-visible-e8093c16-811f50fa.cjs → focus-visible-e8093c16-431bbe59.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-067a8f23.js → focus-visible-e8093c16-f403fee8.js} +1 -1
- package/dist/{forward-icon_6.entry-e7c5fa46.js → forward-icon_6.entry-3bb91d58.js} +7 -7
- package/dist/{forward-icon_6.entry-4e9c9686.cjs → forward-icon_6.entry-ceec2371.cjs} +3 -3
- package/dist/{globe-icon.entry-aa3f3ea3.js → globe-icon.entry-6fc456c7.js} +5 -5
- package/dist/{globe-icon.entry-74f79652.cjs → globe-icon.entry-8c3c9e48.cjs} +1 -1
- package/dist/google-logo-icon_4.entry-4eb16cd2.cjs +1 -0
- package/dist/{google-logo-icon_4.entry-3fe41d69.js → google-logo-icon_4.entry-d6e0c4c0.js} +331 -289
- package/dist/index-11f33e47.cjs +82 -0
- package/dist/{index-a134f625.js → index-a282e817.js} +2890 -2792
- package/dist/{index.es-79f5b771-64a1baf0.cjs → index.es-ab9affcc-18263b66.cjs} +1 -1
- package/dist/{index.es-79f5b771-ce07d6fc.js → index.es-ab9affcc-30461b18.js} +1 -1
- package/dist/{info-icon_2.entry-fed731f4.js → info-icon_2.entry-d20b975c.js} +5 -5
- package/dist/{info-icon_2.entry-a3f40027.cjs → info-icon_2.entry-e582ac10.cjs} +1 -1
- package/dist/{input-color-picker.entry-37826630.js → input-color-picker.entry-27f4288f.js} +3 -3
- package/dist/{input-color-picker.entry-cbdce7a1.cjs → input-color-picker.entry-c6a28671.cjs} +1 -1
- package/dist/{input-component.entry-e71b7062.cjs → input-component.entry-744fcec1.cjs} +1 -1
- package/dist/{input-component.entry-b83b7103.js → input-component.entry-b6f1c417.js} +2 -2
- package/dist/{input-dropdown.entry-db0dae5f.js → input-dropdown.entry-18744def.js} +2 -2
- package/dist/{input-dropdown.entry-150819cd.cjs → input-dropdown.entry-f13234d7.cjs} +1 -1
- package/dist/{mailbox-store-9c52a3fa-04f22f60.cjs → mailbox-store-affca6de-9451094e.cjs} +1 -1
- package/dist/{mailbox-store-9c52a3fa-80fe343c.js → mailbox-store-affca6de-d601dc6b.js} +2 -2
- package/dist/{multi-select-dropdown.entry-6b429b39.js → multi-select-dropdown.entry-924809e1.js} +5 -5
- package/dist/{multi-select-dropdown.entry-629329d7.cjs → multi-select-dropdown.entry-dde671d7.cjs} +1 -1
- package/dist/{nylas-booked-event-card_12.entry-c22c02b4.js → nylas-booked-event-card_12.entry-52c3111d.js} +203 -198
- package/dist/nylas-booked-event-card_12.entry-d89c1f9d.cjs +1 -0
- package/dist/{nylas-form-card.entry-2ced5eef.cjs → nylas-form-card.entry-ab61fdc5.cjs} +1 -1
- package/dist/{nylas-form-card.entry-f3d6a1e4.js → nylas-form-card.entry-b0a2403f.js} +8 -8
- package/dist/{nylas-if-state.entry-862ad978.js → nylas-if-state.entry-523fdc6b.js} +2 -2
- package/dist/{nylas-if-state.entry-55c32c0c.cjs → nylas-if-state.entry-53883c36.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-77e936f7.cjs → nylas-list-folders.entry-4ef6cb3d.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-544fd38d.js → nylas-list-folders.entry-e37d069f.js} +8 -8
- package/dist/{nylas-list-threads.entry-82e04782.cjs → nylas-list-threads.entry-3be623e9.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-71411da7.js → nylas-list-threads.entry-8ba62db8.js} +3 -3
- package/dist/{nylas-login.entry-3ccc2bef.cjs → nylas-login.entry-05e1df3e.cjs} +1 -1
- package/dist/{nylas-login.entry-48179c01.js → nylas-login.entry-d9bf3974.js} +5 -5
- package/dist/{nylas-mailbox-pagination.entry-d31f9aa4.cjs → nylas-mailbox-pagination.entry-3dd05cf4.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-77cf03b5.js → nylas-mailbox-pagination.entry-50d9d9e3.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-40e3c373.js → nylas-mailbox-toolbar-button.entry-9a77d137.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-33aad610.cjs → nylas-mailbox-toolbar-button.entry-d87b55de.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-f4066fb2.js → nylas-mailbox.entry-cb7d1031.js} +3 -3
- package/dist/{nylas-mailbox.entry-963de1c3.cjs → nylas-mailbox.entry-f7db9aa8.cjs} +1 -1
- package/dist/{nylas-provider.entry-08767da3.cjs → nylas-provider.entry-1716bf48.cjs} +1 -1
- package/dist/{nylas-provider.entry-c61428b1.js → nylas-provider.entry-7aa46ea2.js} +37 -37
- package/dist/{nylas-reminder-emails.entry-d42a7f1d.cjs → nylas-reminder-emails.entry-88a862cd.cjs} +2 -2
- package/dist/{nylas-reminder-emails.entry-cd8e1d2e.js → nylas-reminder-emails.entry-a86231b7.js} +5 -5
- package/dist/{nylas-reminder-time_2.entry-d7115393.js → nylas-reminder-time_2.entry-9589d5f2.js} +4 -4
- package/dist/{nylas-reminder-time_2.entry-e5540fdd.cjs → nylas-reminder-time_2.entry-bc76d4ab.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-67904653.cjs → nylas-scheduler-editor.entry-1a2f3ee0.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-65eb4938.js → nylas-scheduler-editor.entry-b434b526.js} +10 -10
- package/dist/nylas-scheduling.entry-59e5e8c1.cjs +1 -0
- package/dist/nylas-scheduling.entry-b71080c8.js +400 -0
- package/dist/{nylas-threads-refresh.entry-d025575a.js → nylas-threads-refresh.entry-544ca90a.js} +2 -2
- package/dist/{nylas-threads-refresh.entry-1b8befab.cjs → nylas-threads-refresh.entry-7ada7b2d.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-a254c36e.js → nylas-threads-search.entry-181ba46a.js} +17 -17
- package/dist/{nylas-threads-search.entry-78c06183.cjs → nylas-threads-search.entry-f1cb19e4.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-30baeb50.cjs → nylas-time-window-picker.entry-a6d1c648.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-89c15823.js → nylas-time-window-picker.entry-c1ee860a.js} +2 -2
- package/dist/{nylas-view-thread.entry-939a4561.cjs → nylas-view-thread.entry-6ae8dd64.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-c8d56573.js → nylas-view-thread.entry-c066f522.js} +6 -6
- package/dist/{person-icon.entry-5ab75598.cjs → person-icon.entry-80c9022e.cjs} +1 -1
- package/dist/{person-icon.entry-8aef4041.js → person-icon.entry-8833e3cc.js} +4 -4
- package/dist/{play-icon_2.entry-392ad303.cjs → play-icon_2.entry-801c85bc.cjs} +1 -1
- package/dist/{play-icon_2.entry-4b068c1b.js → play-icon_2.entry-efca8f00.js} +3 -3
- package/dist/react.cjs +1 -1
- package/dist/react.js +118 -116
- package/dist/{refresh-icon.entry-a754a2b5.js → refresh-icon.entry-4d6791bd.js} +4 -4
- package/dist/{refresh-icon.entry-9ea254c9.cjs → refresh-icon.entry-d4cc16b7.cjs} +1 -1
- package/dist/{register-component-ea95564d-ab3d630f.cjs → register-component-a7ea27ad-2343f3df.cjs} +1 -1
- package/dist/{register-component-ea95564d-e19ec159.js → register-component-a7ea27ad-fa2c4b17.js} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-4e10b542.cjs → scheduler-config-store-2a3b403d-2263f999.cjs} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-581c70cf.js → scheduler-config-store-2a3b403d-5176cd45.js} +1 -1
- package/dist/{scheduler-store-9ff4914b-b71a0aca.js → scheduler-store-33ab8dea-9801357a.js} +2 -2
- package/dist/scheduler-store-33ab8dea-a0b39d36.cjs +1 -0
- package/dist/{textarea-component.entry-70bb02bf.cjs → textarea-component.entry-019e75d0.cjs} +1 -1
- package/dist/{textarea-component.entry-a5daab6c.js → textarea-component.entry-174089bc.js} +2 -2
- package/dist/{time-period-selector.entry-25348de7.js → time-period-selector.entry-62c854d1.js} +4 -4
- package/dist/{time-period-selector.entry-6306e456.cjs → time-period-selector.entry-8466d0f2.cjs} +1 -1
- package/dist/{translate-icon.entry-b6094ecc.js → translate-icon.entry-73f7127b.js} +4 -4
- package/dist/{translate-icon.entry-785fa109.cjs → translate-icon.entry-7d5cf4b8.cjs} +1 -1
- package/dist/{warning-icon.entry-94e34c58.cjs → warning-icon.entry-92638eeb.cjs} +1 -1
- package/dist/{warning-icon.entry-4b400ee2.js → warning-icon.entry-abf896c3.js} +5 -5
- package/package.json +2 -2
- package/dist/calendar-agenda-fill-icon_48.entry-bf278e34.cjs +0 -7
- package/dist/chevron-icon_3.entry-41170718.cjs +0 -1
- package/dist/google-logo-icon_4.entry-0332a181.cjs +0 -1
- package/dist/index-2a53b6a8.cjs +0 -82
- package/dist/nylas-booked-event-card_12.entry-660af56a.cjs +0 -1
- package/dist/nylas-scheduling.entry-50e41d85.cjs +0 -1
- package/dist/nylas-scheduling.entry-7aad4f63.js +0 -345
- package/dist/scheduler-store-9ff4914b-6e28240e.cjs +0 -1
|
@@ -1,100 +1,118 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { R as
|
|
3
|
-
import { D as
|
|
1
|
+
import { r as v, h as s, c as S, d, O as Ea, H as D, g as H, P as we, Q as fe, R as yn, S as bn, E as Te, T as cn, U as Sa, k as ke, V as xe, W as Oa } from "./index-a282e817.js";
|
|
2
|
+
import { R as I } from "./register-component-a7ea27ad-fa2c4b17.js";
|
|
3
|
+
import { D as $n, T as gn, F as vn, e as Da, P as yt, C as Ha, E as _n } from "./constants-50c3e067-33cf0ffe.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const Ia = ".sc-calendar-agenda-fill-icon-h{display:flex}", Ta = Ia, $a = class {
|
|
7
7
|
constructor(e) {
|
|
8
|
-
|
|
8
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
return s("svg", { key: "dea6ff511ea93aa24242c8b204e07892fe426713", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "d2e06e14b8957851f95e0e70edf535202176b2fb", 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
|
+
$a.style = Ta;
|
|
15
|
+
const Na = ".sc-calendar-agenda-icon-h{display:flex}", Pa = Na, Aa = class {
|
|
16
16
|
constructor(e) {
|
|
17
|
-
|
|
17
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
return s("svg", { key: "c38864a9bedc0b586b6c9eb35e2534e51de0a293", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "5cc1d82891e90f1ce2a4439e2d07958f0ed45a8c", 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
|
|
23
|
+
Aa.style = Pa;
|
|
24
|
+
const Fa = ".sc-calendar-info-icon-h{display:flex}", Ma = Fa, La = class {
|
|
25
25
|
constructor(e) {
|
|
26
|
-
|
|
26
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
return s("svg", { key: "4c8ecfeecdbf7c3f073f21d7e1c6c85e2a35137c", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "332091b1fd7013a46b5de54d474adec07b4f16a0", 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
|
+
La.style = Ma;
|
|
33
|
+
const Ra = ".sc-calendar-patterns-icon-h{display:flex}", za = Ra, ja = class {
|
|
34
34
|
constructor(e) {
|
|
35
|
-
|
|
35
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
return s("svg", { key: "8b3c03c9a70b42c69093e5ba010f4c7a60a085ff", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "b81d1253b8c7a5bc4127ae7c05c829ea9db2871a", 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
|
+
ja.style = za;
|
|
42
|
+
const Ba = ".sc-checkmark-icon-h{display:flex}", Ua = Ba, Wa = class {
|
|
43
43
|
constructor(e) {
|
|
44
|
-
|
|
44
|
+
v(this, e), this.width = "18", this.height = "14";
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
47
|
return s("svg", { key: "e8ee67dad2ae6438b3358babc1350245ec04de72", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "de655451a6d3d50b7b6ba66c5267842ff3385b89", 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
|
+
Wa.style = Ua;
|
|
51
|
+
const Za = ".sc-dragable-icon-h{display:flex}", qa = Za, Ga = class {
|
|
52
52
|
constructor(e) {
|
|
53
|
-
|
|
53
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
return s("svg", { key: "3e0fa2953a7c95286054735232c548fe1998e58a", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "7889404b444da086860a465ece918dd8980538f5", 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
|
+
Ga.style = qa;
|
|
60
|
+
const Va = ".sc-envelope-fill-icon-h{display:flex}", Ja = Va, Ya = class {
|
|
61
61
|
constructor(e) {
|
|
62
|
-
|
|
62
|
+
v(this, e), this.width = "16", this.height = "13";
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
65
|
return s("svg", { key: "e3078018e435f423d3a3e83a1f045dbf5b3b9c74", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "4a734103e5239969819a847c37b559ca3949f183", 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
|
|
68
|
+
Ya.style = Ja;
|
|
69
|
+
const Xa = ".sc-envelope-icon-h{display:flex}", Ka = Xa, Qa = class {
|
|
70
70
|
constructor(e) {
|
|
71
|
-
|
|
71
|
+
v(this, e), this.width = "16", this.height = "13";
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
74
|
return s("svg", { key: "120db9adc96cbc0d1d59cc2dfb4f0db9aee9bdde", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "cdaf2c6b324f8dbc11b5888101ede0c0fc4e8602", 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 = Ka;
|
|
78
|
+
const ei = ".sc-eye-icon-h{display:flex}", ti = ei, ni = class {
|
|
79
79
|
constructor(e) {
|
|
80
|
-
|
|
80
|
+
v(this, e), this.width = "17", this.height = "10";
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return s("svg", { key: "
|
|
83
|
+
return s("svg", { key: "ed63df13c7fb7f737ccf24f8e40e076450485183", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "75e25cc250765150f33657469924c7fa8c60c22f", 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
|
+
ni.style = ti;
|
|
87
|
+
const ai = ".sc-feedback-icon-h{display:flex}", ii = ai, oi = class {
|
|
88
88
|
constructor(e) {
|
|
89
|
-
|
|
89
|
+
v(this, e), this.width = "11", this.height = "14";
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
return s("svg", { key: "
|
|
92
|
+
return s("svg", { key: "d4c6cc2ed44226a66133895c7f5d161a78a31af8", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "648f5ce00a0e0ece188f533ae303818852129eb4", 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
|
|
97
|
-
|
|
95
|
+
oi.style = ii;
|
|
96
|
+
const si = ".sc-flow-icon-h{display:flex}", li = si, ri = class {
|
|
97
|
+
constructor(e) {
|
|
98
|
+
v(this, e), this.width = "16", this.height = "12";
|
|
99
|
+
}
|
|
100
|
+
render() {
|
|
101
|
+
return s("svg", { key: "28e2492a8b29ec585cd765db72e0958cd16959b4", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "095e3e387f920d0de45305e8912ebda05d2f49fd", 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
|
+
}
|
|
103
|
+
};
|
|
104
|
+
ri.style = li;
|
|
105
|
+
const di = ".sc-google-meet-icon-h{display:flex}", ci = di, pi = class {
|
|
106
|
+
constructor(e) {
|
|
107
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
108
|
+
}
|
|
109
|
+
render() {
|
|
110
|
+
return s("svg", { key: "46d95ddd938b7fac7f0528c75b3c37372cd574e9", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "b12ebf6497906b689c730b5c3eb2fde3aa581d91", "clip-path": "url(#clip0_22_6251)" }, s("path", { key: "e0d68e312275fed6555046de2e10907a9703c2ca", 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: "fa3ca98957bb3c7dac490570de66221c6cd36083", 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: "39c82767bb7a4aea2f661e4720432e544763b181", d: "M4.68571 1.875L0 6.56071L2.41143 7.24643L4.68571 6.56071L5.36 4.40986L4.68571 1.875Z", fill: "#E94235" }), s("path", { key: "69283a57a0ac0172fd405c327c92045faaa338de", d: "M4.68571 6.56067H0V13.6464H4.68571V6.56067Z", fill: "#2684FC" }), s("path", { key: "930645ed0a757c70b863b286c4cbb49fdd5d3140", 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: "b619c7b5ad2634c2c0318a17b9174488eb3e30c9", 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: "086f24f4c6564f8e46b43ecb1317a82b486d571c" }, s("clipPath", { key: "6ca9b472e7ab377fd809653b8651c9ea734306bc", id: "clip0_22_6251" }, s("rect", { key: "0e191fd4abb8c921bcc8368ccf87ef89f82a3d4e", width: "20", height: "20", fill: "white" }))));
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
pi.style = ci;
|
|
114
|
+
const fi = ':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}', ui = fi;
|
|
115
|
+
var hi = function(e, t, n, a) {
|
|
98
116
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
99
117
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
100
118
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -102,13 +120,13 @@ var oi = function(e, t, n, a) {
|
|
|
102
120
|
for (var r = e.length - 1; r >= 0; r--)
|
|
103
121
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
104
122
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
105
|
-
},
|
|
123
|
+
}, bt = function(e, t) {
|
|
106
124
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
107
125
|
return Reflect.metadata(e, t);
|
|
108
126
|
};
|
|
109
|
-
const
|
|
127
|
+
const Nn = class {
|
|
110
128
|
constructor(e) {
|
|
111
|
-
|
|
129
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
|
|
112
130
|
}
|
|
113
131
|
connectedCallback() {
|
|
114
132
|
d("nylas-image-input", "connectedCallback");
|
|
@@ -146,14 +164,14 @@ const In = class {
|
|
|
146
164
|
t === this.name && this.setImage(n);
|
|
147
165
|
}
|
|
148
166
|
setImage(e) {
|
|
149
|
-
this.errorMessage = "",
|
|
167
|
+
this.errorMessage = "", Ea(e).then(() => {
|
|
150
168
|
this.currentImageUrl = e, this.internals.setValidity({}), this.internals.setFormValue(this.currentImageUrl, this.name), this.valueChanged.emit({ value: this.currentImageUrl, name: this.name });
|
|
151
169
|
}).catch(() => {
|
|
152
170
|
this.internals.setValidity({ customError: !0 }, "Invalid image URL."), this.errorMessage = "Invalid image URL.";
|
|
153
171
|
});
|
|
154
172
|
}
|
|
155
173
|
render() {
|
|
156
|
-
return s(D, { key: "
|
|
174
|
+
return s(D, { key: "952db4937792a6c05cb31873d06229a1d0d3cabb" }, s("div", { key: "ba99d36f4b7d941dd7ddf51d27d7004c81f0a819", class: "logo-container" }, s("div", { key: "e8f80f6aa9ac78985ffff650e9d1241e64bdadf8", class: "input-container" }, s("input-component", { key: "ff5724cb5b8e3b0a51b405b452788e092bed9962", name: this.name, id: this.name, type: "text", required: !1, exportparts: "ic_input: iiu__logo-input-textfield", defaultValue: this.imageUrl ?? "" }), this.errorMessage && s("span", { class: "error-message" }, this.errorMessage)), this.currentImageUrl && !this.errorMessage && s("div", { class: "logo" }, s("img", { src: this.currentImageUrl, alt: "Logo" }))));
|
|
157
175
|
}
|
|
158
176
|
static get formAssociated() {
|
|
159
177
|
return !0;
|
|
@@ -167,8 +185,8 @@ const In = class {
|
|
|
167
185
|
};
|
|
168
186
|
}
|
|
169
187
|
};
|
|
170
|
-
|
|
171
|
-
|
|
188
|
+
hi([
|
|
189
|
+
I({
|
|
172
190
|
name: "nylas-image-input",
|
|
173
191
|
eventToProps: {
|
|
174
192
|
valueChanged: async (e, t) => {
|
|
@@ -177,40 +195,40 @@ oi([
|
|
|
177
195
|
}
|
|
178
196
|
}
|
|
179
197
|
}),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
],
|
|
184
|
-
|
|
185
|
-
const
|
|
198
|
+
bt("design:type", Function),
|
|
199
|
+
bt("design:paramtypes", []),
|
|
200
|
+
bt("design:returntype", void 0)
|
|
201
|
+
], Nn.prototype, "render", null);
|
|
202
|
+
Nn.style = ui;
|
|
203
|
+
const mi = ".sc-location-icon-h{display:flex}", yi = mi, bi = class {
|
|
186
204
|
constructor(e) {
|
|
187
|
-
|
|
205
|
+
v(this, e), this.width = "16", this.height = "18";
|
|
188
206
|
}
|
|
189
207
|
render() {
|
|
190
|
-
return s("svg", { key: "
|
|
208
|
+
return s("svg", { key: "bc4abeb62ff82b6b2696f57b8529f622e97aea4a", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "314b1898ab91de8d32971dbfdfc876f3df3901a1", 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" }));
|
|
191
209
|
}
|
|
192
210
|
};
|
|
193
|
-
|
|
194
|
-
const
|
|
211
|
+
bi.style = yi;
|
|
212
|
+
const gi = ".sc-location-off-icon-h{display:flex}", vi = gi, _i = class {
|
|
195
213
|
constructor(e) {
|
|
196
|
-
|
|
214
|
+
v(this, e), this.width = "16", this.height = "18";
|
|
197
215
|
}
|
|
198
216
|
render() {
|
|
199
|
-
return s("svg", { key: "
|
|
217
|
+
return s("svg", { key: "3080a6efda5d167de59779824fef27535d6e64a3", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "9ea63756db1828a94e256d7f6c8fb5e15fbd2348", 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" }));
|
|
200
218
|
}
|
|
201
219
|
};
|
|
202
|
-
|
|
203
|
-
const
|
|
220
|
+
_i.style = vi;
|
|
221
|
+
const Ci = ".sc-microsoft-teams-icon-h{display:flex}", wi = Ci, ki = class {
|
|
204
222
|
constructor(e) {
|
|
205
|
-
|
|
223
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
206
224
|
}
|
|
207
225
|
render() {
|
|
208
|
-
return s("svg", { key: "
|
|
226
|
+
return s("svg", { key: "cdc15515c0d247d0f662511b8c87a1641e1f95ed", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "1b4d283848a02b12c363e5d4044aaad3b2a88eca", "clip-path": "url(#clip0_22_6280)" }, s("path", { key: "6b79fa5d3bbc80ef67d52d8f46b7c11a8b1c2c7b", 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: "03019de77b01582f8e8211a20b4f304940318d3e", 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: "2ce8aaacfaa7b4c60e9fa87020388907b52b1b83", 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: "e961bd0a687b456bf5c5abdd99ea97bd1d4c4475", 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: "ea82b96140462b9a817d40fd79d393a7d4f2d63c", 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: "e390c69393a598e1bc87e07535f941071ffd4380", 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: "360a0b4b4f88b11536bcc2b73a20464cf35b1866", 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: "4c0ecf536a597c0af23dc918b5b0859dc4c69dae", 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: "3309f4674570697f523113725e4230dec4e3c97a", 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: "d385b528450f0ce3f4e60d79a4a476e6036739fd", 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: "c054750941797efec050658c0849db0084db60ff", 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: "4dac1fc7a3d4b648cab7ae2bf6d09d722b0549cb", 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: "4ccdda585e030ea1960c4b1dd79afc20774beeb0", 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: "8596f8c28243e5308ffc5855c2c98dadbc3093b7", d: "M7.12025 8.05659H5.4156V12.6985H4.32956V8.05659H2.63281V7.15613H7.12025V8.05659Z", fill: "white" })), s("defs", { key: "de629b43e71a45fe4a5953a40f3304782e878ad6" }, s("linearGradient", { key: "203754341f627ff1d74d1a9f03a6de06f83c2f94", id: "paint0_linear_22_6280", x1: "1.53835", y1: "4.14486", x2: "8.2157", y2: "15.7098", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "bf3f77771c7891d88f21048863fd7f48db079350", "stop-color": "#5A62C3" }), s("stop", { key: "3759be132fff3d2ea8ee8c856ef6eb00e47c0d78", offset: "0.5", "stop-color": "#4D55BD" }), s("stop", { key: "c3002aefbe66d4c42a33c8950f5d524d8411b289", offset: "1", "stop-color": "#3940AB" })), s("clipPath", { key: "40478ee090565723f8745dc38c20c2192cbfb67c", id: "clip0_22_6280" }, s("rect", { key: "7bab410c145270fdc1b4dac870a4fad278eca60b", width: "20", height: "20", fill: "white" }))));
|
|
209
227
|
}
|
|
210
228
|
};
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
var
|
|
229
|
+
ki.style = wi;
|
|
230
|
+
const xi = ':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)}', Ei = xi;
|
|
231
|
+
var Si = function(e, t, n, a) {
|
|
214
232
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
215
233
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
216
234
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -222,10 +240,10 @@ var gi = function(e, t, n, a) {
|
|
|
222
240
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
223
241
|
return Reflect.metadata(e, t);
|
|
224
242
|
};
|
|
225
|
-
const
|
|
243
|
+
const Pn = class {
|
|
226
244
|
constructor(e) {
|
|
227
245
|
var t, n, a;
|
|
228
|
-
|
|
246
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.currentUser = void 0, this.name = "participants", this.eventParticipants = void 0, this.participantOptions = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = ((a = (n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : a.availability_method) !== "collective", this.error = "";
|
|
229
247
|
}
|
|
230
248
|
elementNameChangedHandler(e) {
|
|
231
249
|
d("nylas-additional-participants", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -324,8 +342,8 @@ const $n = class {
|
|
|
324
342
|
};
|
|
325
343
|
}
|
|
326
344
|
};
|
|
327
|
-
|
|
328
|
-
|
|
345
|
+
Si([
|
|
346
|
+
I({
|
|
329
347
|
name: "nylas-additional-participants",
|
|
330
348
|
stateToProps: /* @__PURE__ */ new Map([
|
|
331
349
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -338,10 +356,10 @@ gi([
|
|
|
338
356
|
gt("design:type", Function),
|
|
339
357
|
gt("design:paramtypes", []),
|
|
340
358
|
gt("design:returntype", void 0)
|
|
341
|
-
],
|
|
342
|
-
|
|
343
|
-
const
|
|
344
|
-
var
|
|
359
|
+
], Pn.prototype, "render", null);
|
|
360
|
+
Pn.style = Ei;
|
|
361
|
+
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-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}', Di = Oi;
|
|
362
|
+
var Hi = function(e, t, n, a) {
|
|
345
363
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
346
364
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
347
365
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -349,13 +367,13 @@ var _i = function(e, t, n, a) {
|
|
|
349
367
|
for (var r = e.length - 1; r >= 0; r--)
|
|
350
368
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
351
369
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
352
|
-
},
|
|
370
|
+
}, vt = function(e, t) {
|
|
353
371
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
354
372
|
return Reflect.metadata(e, t);
|
|
355
373
|
};
|
|
356
|
-
const
|
|
374
|
+
const An = class {
|
|
357
375
|
constructor(e) {
|
|
358
|
-
|
|
376
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.openHours = void 0, this.name = "availability", this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.hideHeader = !1, this.schedule = {
|
|
359
377
|
SUN: [],
|
|
360
378
|
MON: [{ start: "09:00am", end: "05:00pm" }],
|
|
361
379
|
TUE: [{ start: "09:00am", end: "05:00pm" }],
|
|
@@ -370,7 +388,7 @@ const Nn = class {
|
|
|
370
388
|
}
|
|
371
389
|
configChangedHandler(e) {
|
|
372
390
|
var n, a;
|
|
373
|
-
const t = ((a = (n = e == null ? void 0 : e.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : a.default_open_hours) ??
|
|
391
|
+
const t = ((a = (n = e == null ? void 0 : e.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : a.default_open_hours) ?? $n;
|
|
374
392
|
this.openHours ? this.openHoursToSchedule(this.openHours) : t && this.openHoursToSchedule(t);
|
|
375
393
|
}
|
|
376
394
|
scheduleChanged(e, t) {
|
|
@@ -523,7 +541,7 @@ const Nn = class {
|
|
|
523
541
|
let n = /* @__PURE__ */ new Map();
|
|
524
542
|
t.forEach((o, i) => {
|
|
525
543
|
e[o] && e[o].forEach((l) => {
|
|
526
|
-
const r =
|
|
544
|
+
const r = yn(l.start), c = yn(l.end), p = `${r}-${c}`;
|
|
527
545
|
if (!n.has(p))
|
|
528
546
|
n.set(p, { days: [i], start: r, end: c });
|
|
529
547
|
else {
|
|
@@ -543,8 +561,8 @@ const Nn = class {
|
|
|
543
561
|
}), a;
|
|
544
562
|
}
|
|
545
563
|
render() {
|
|
546
|
-
const e = Object.keys(
|
|
547
|
-
label:
|
|
564
|
+
const e = Object.keys(gn).map((n) => ({
|
|
565
|
+
label: gn[n],
|
|
548
566
|
value: n
|
|
549
567
|
})), t = e.find((n) => n.value === this.timezone);
|
|
550
568
|
return s(D, { key: "3dc91eb1ac8799dd655a98a15483e19e871106e0" }, s("div", { key: "9e0ed987cb5d3eca99f929b25aff1703151942c6", class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && s("div", { class: "header", part: "nap__header" }, s("h3", null, "Default open hours"), s("p", null, "Set when you're regularly available for event bookings.", s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "This is the default availability for participants who don’t have availability set on the Participants tab.")))), s("div", { key: "db01b76095efb7b3d583ce42166468e429a46ae1", class: "content" }, s("div", { key: "d60e0b06d1a65ea27c7ed7a282852a8596618e26", class: "select-timezone", part: "nap__select-timezone" }, s("h4", { key: "aff3ba9f3d1bb51a1dc8593a9d308620f1521136", class: "sub-header" }, "Select timezone"), (t == null ? void 0 : t.label) && s("select-dropdown", { name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, defaultSelectedOption: t }, s("span", { slot: "select-icon" }, s("globe-icon", { width: "20", height: "20" })))), s("div", { key: "b1c0208279b5a9e93ecf0a3f9f627e9f48faced3", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((n) => {
|
|
@@ -572,19 +590,19 @@ const Nn = class {
|
|
|
572
590
|
};
|
|
573
591
|
}
|
|
574
592
|
};
|
|
575
|
-
|
|
576
|
-
|
|
593
|
+
Hi([
|
|
594
|
+
I({
|
|
577
595
|
name: "nylas-availability-picker",
|
|
578
596
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
579
597
|
fireRegisterEvent: !0
|
|
580
598
|
}),
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
],
|
|
585
|
-
|
|
586
|
-
const
|
|
587
|
-
var
|
|
599
|
+
vt("design:type", Function),
|
|
600
|
+
vt("design:paramtypes", []),
|
|
601
|
+
vt("design:returntype", void 0)
|
|
602
|
+
], An.prototype, "render", null);
|
|
603
|
+
An.style = Di;
|
|
604
|
+
const Ii = ':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}', Ti = Ii;
|
|
605
|
+
var $i = function(e, t, n, a) {
|
|
588
606
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
589
607
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
590
608
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -592,13 +610,13 @@ var xi = function(e, t, n, a) {
|
|
|
592
610
|
for (var r = e.length - 1; r >= 0; r--)
|
|
593
611
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
594
612
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
595
|
-
},
|
|
613
|
+
}, _t = function(e, t) {
|
|
596
614
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
597
615
|
return Reflect.metadata(e, t);
|
|
598
616
|
};
|
|
599
|
-
const
|
|
617
|
+
const Fn = class {
|
|
600
618
|
constructor(e) {
|
|
601
|
-
|
|
619
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.name = "booking-calendar", this.defaultBookingCalendar = "", this.hideHeader = !1, this.selectedCalendar = "";
|
|
602
620
|
}
|
|
603
621
|
connectedCallback() {
|
|
604
622
|
d("nylas-booking-calendar-picker", "connectedCallback");
|
|
@@ -663,8 +681,8 @@ const Pn = class {
|
|
|
663
681
|
};
|
|
664
682
|
}
|
|
665
683
|
};
|
|
666
|
-
|
|
667
|
-
|
|
684
|
+
$i([
|
|
685
|
+
I({
|
|
668
686
|
name: "nylas-booking-calendar-picker",
|
|
669
687
|
stateToProps: /* @__PURE__ */ new Map([
|
|
670
688
|
["schedulerConfig.calendars", "currentUserCalendars"],
|
|
@@ -678,13 +696,13 @@ xi([
|
|
|
678
696
|
},
|
|
679
697
|
fireRegisterEvent: !0
|
|
680
698
|
}),
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
],
|
|
685
|
-
|
|
686
|
-
const
|
|
687
|
-
var
|
|
699
|
+
_t("design:type", Function),
|
|
700
|
+
_t("design:paramtypes", []),
|
|
701
|
+
_t("design:returntype", void 0)
|
|
702
|
+
], Fn.prototype, "render", null);
|
|
703
|
+
Fn.style = Ti;
|
|
704
|
+
const Ni = ':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)}', Pi = Ni;
|
|
705
|
+
var Ai = function(e, t, n, a) {
|
|
688
706
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
689
707
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
690
708
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -692,13 +710,13 @@ var Si = function(e, t, n, a) {
|
|
|
692
710
|
for (var r = e.length - 1; r >= 0; r--)
|
|
693
711
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
694
712
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
695
|
-
},
|
|
713
|
+
}, Ct = function(e, t) {
|
|
696
714
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
697
715
|
return Reflect.metadata(e, t);
|
|
698
716
|
};
|
|
699
|
-
const
|
|
717
|
+
const Mn = class {
|
|
700
718
|
constructor(e) {
|
|
701
|
-
|
|
719
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-redirect", this.redirectUrl = "", this.redirectUrlErrorMessage = "", this.currentRedirectUrl = "", this.acceptUrl = void 0, this.componentLoaded = !1;
|
|
702
720
|
}
|
|
703
721
|
elementNameChangedHandler(e) {
|
|
704
722
|
d("nylas-booking-confirmation-redirect", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -739,7 +757,7 @@ const An = class {
|
|
|
739
757
|
nylasFormInputBlurHandler(e) {
|
|
740
758
|
const { name: t, value: n } = e.detail;
|
|
741
759
|
if (this.currentRedirectUrl = n, this.acceptUrl && t === "confirmation-redirect") {
|
|
742
|
-
if (this.redirectUrlErrorMessage = "", !
|
|
760
|
+
if (this.redirectUrlErrorMessage = "", !bn(this.currentRedirectUrl)) {
|
|
743
761
|
this.internals.setValidity({ customError: !0 }, "Please enter a valid URL."), this.redirectUrlErrorMessage = "Please enter a valid URL.";
|
|
744
762
|
return;
|
|
745
763
|
}
|
|
@@ -752,7 +770,7 @@ const An = class {
|
|
|
752
770
|
}
|
|
753
771
|
}
|
|
754
772
|
formSubmittedHandler(e) {
|
|
755
|
-
this.acceptUrl && !
|
|
773
|
+
this.acceptUrl && !bn(this.currentRedirectUrl) ? (this.internals.setValidity({ customError: !0 }, "Please enter a valid URL."), this.redirectUrlErrorMessage = "Please enter a valid URL.") : this.internals.setValidity({});
|
|
756
774
|
}
|
|
757
775
|
render() {
|
|
758
776
|
const e = [
|
|
@@ -780,8 +798,8 @@ const An = class {
|
|
|
780
798
|
};
|
|
781
799
|
}
|
|
782
800
|
};
|
|
783
|
-
|
|
784
|
-
|
|
801
|
+
Ai([
|
|
802
|
+
I({
|
|
785
803
|
name: "nylas-booking-confirmation-redirect",
|
|
786
804
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
787
805
|
eventToProps: {
|
|
@@ -792,13 +810,13 @@ Si([
|
|
|
792
810
|
},
|
|
793
811
|
fireRegisterEvent: !0
|
|
794
812
|
}),
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
],
|
|
799
|
-
|
|
800
|
-
const
|
|
801
|
-
var
|
|
813
|
+
Ct("design:type", Function),
|
|
814
|
+
Ct("design:paramtypes", []),
|
|
815
|
+
Ct("design:returntype", void 0)
|
|
816
|
+
], Mn.prototype, "render", null);
|
|
817
|
+
Mn.style = Pi;
|
|
818
|
+
const Fi = ':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}', Mi = Fi;
|
|
819
|
+
var Li = function(e, t, n, a) {
|
|
802
820
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
803
821
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
804
822
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -806,14 +824,14 @@ var Hi = function(e, t, n, a) {
|
|
|
806
824
|
for (var r = e.length - 1; r >= 0; r--)
|
|
807
825
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
808
826
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
809
|
-
},
|
|
827
|
+
}, wt = function(e, t) {
|
|
810
828
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
811
829
|
return Reflect.metadata(e, t);
|
|
812
830
|
};
|
|
813
|
-
const
|
|
831
|
+
const Ln = class {
|
|
814
832
|
constructor(e) {
|
|
815
833
|
var t, n;
|
|
816
|
-
|
|
834
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-type", this.bookingType = "booking", this.showComponent = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.booking_type) !== "custom-confirmation", this.selectedBookingType = void 0, this.showDropdown = void 0;
|
|
817
835
|
}
|
|
818
836
|
elementNameChangedHandler(e) {
|
|
819
837
|
d("nylas-booking-confirmation-type", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -881,8 +899,8 @@ const Fn = class {
|
|
|
881
899
|
};
|
|
882
900
|
}
|
|
883
901
|
};
|
|
884
|
-
|
|
885
|
-
|
|
902
|
+
Li([
|
|
903
|
+
I({
|
|
886
904
|
name: "nylas-booking-confirmation-type",
|
|
887
905
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
888
906
|
eventToProps: {
|
|
@@ -893,18 +911,18 @@ Hi([
|
|
|
893
911
|
},
|
|
894
912
|
fireRegisterEvent: !0
|
|
895
913
|
}),
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
],
|
|
900
|
-
|
|
914
|
+
wt("design:type", Function),
|
|
915
|
+
wt("design:paramtypes", []),
|
|
916
|
+
wt("design:returntype", void 0)
|
|
917
|
+
], Ln.prototype, "render", null);
|
|
918
|
+
Ln.style = Mi;
|
|
901
919
|
/**!
|
|
902
920
|
* Sortable 1.15.2
|
|
903
921
|
* @author RubaXa <trash@rubaxa.org>
|
|
904
922
|
* @author owenm <owen23355@gmail.com>
|
|
905
923
|
* @license MIT
|
|
906
924
|
*/
|
|
907
|
-
function
|
|
925
|
+
function Cn(e, t) {
|
|
908
926
|
var n = Object.keys(e);
|
|
909
927
|
if (Object.getOwnPropertySymbols) {
|
|
910
928
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -917,23 +935,23 @@ function vn(e, t) {
|
|
|
917
935
|
function se(e) {
|
|
918
936
|
for (var t = 1; t < arguments.length; t++) {
|
|
919
937
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
920
|
-
t % 2 ?
|
|
921
|
-
|
|
922
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
938
|
+
t % 2 ? Cn(Object(n), !0).forEach(function(a) {
|
|
939
|
+
Ri(e, a, n[a]);
|
|
940
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Cn(Object(n)).forEach(function(a) {
|
|
923
941
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
924
942
|
});
|
|
925
943
|
}
|
|
926
944
|
return e;
|
|
927
945
|
}
|
|
928
|
-
function
|
|
946
|
+
function ot(e) {
|
|
929
947
|
"@babel/helpers - typeof";
|
|
930
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
948
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ot = function(t) {
|
|
931
949
|
return typeof t;
|
|
932
|
-
} :
|
|
950
|
+
} : ot = function(t) {
|
|
933
951
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
934
|
-
},
|
|
952
|
+
}, ot(e);
|
|
935
953
|
}
|
|
936
|
-
function
|
|
954
|
+
function Ri(e, t, n) {
|
|
937
955
|
return t in e ? Object.defineProperty(e, t, {
|
|
938
956
|
value: n,
|
|
939
957
|
enumerable: !0,
|
|
@@ -951,7 +969,7 @@ function ee() {
|
|
|
951
969
|
return e;
|
|
952
970
|
}, ee.apply(this, arguments);
|
|
953
971
|
}
|
|
954
|
-
function
|
|
972
|
+
function zi(e, t) {
|
|
955
973
|
if (e == null)
|
|
956
974
|
return {};
|
|
957
975
|
var n = {}, a = Object.keys(e), o, i;
|
|
@@ -959,10 +977,10 @@ function Ii(e, t) {
|
|
|
959
977
|
o = a[i], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
960
978
|
return n;
|
|
961
979
|
}
|
|
962
|
-
function
|
|
980
|
+
function ji(e, t) {
|
|
963
981
|
if (e == null)
|
|
964
982
|
return {};
|
|
965
|
-
var n =
|
|
983
|
+
var n = zi(e, t), a, o;
|
|
966
984
|
if (Object.getOwnPropertySymbols) {
|
|
967
985
|
var i = Object.getOwnPropertySymbols(e);
|
|
968
986
|
for (o = 0; o < i.length; o++)
|
|
@@ -970,54 +988,54 @@ function $i(e, t) {
|
|
|
970
988
|
}
|
|
971
989
|
return n;
|
|
972
990
|
}
|
|
973
|
-
function
|
|
974
|
-
return
|
|
991
|
+
function Bi(e) {
|
|
992
|
+
return Ui(e) || Wi(e) || Zi(e) || qi();
|
|
975
993
|
}
|
|
976
|
-
function
|
|
994
|
+
function Ui(e) {
|
|
977
995
|
if (Array.isArray(e))
|
|
978
|
-
return
|
|
996
|
+
return on(e);
|
|
979
997
|
}
|
|
980
|
-
function
|
|
998
|
+
function Wi(e) {
|
|
981
999
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
982
1000
|
return Array.from(e);
|
|
983
1001
|
}
|
|
984
|
-
function
|
|
1002
|
+
function Zi(e, t) {
|
|
985
1003
|
if (e) {
|
|
986
1004
|
if (typeof e == "string")
|
|
987
|
-
return
|
|
1005
|
+
return on(e, t);
|
|
988
1006
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
989
1007
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
|
|
990
1008
|
return Array.from(e);
|
|
991
1009
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
992
|
-
return
|
|
1010
|
+
return on(e, t);
|
|
993
1011
|
}
|
|
994
1012
|
}
|
|
995
|
-
function
|
|
1013
|
+
function on(e, t) {
|
|
996
1014
|
(t == null || t > e.length) && (t = e.length);
|
|
997
1015
|
for (var n = 0, a = new Array(t); n < t; n++)
|
|
998
1016
|
a[n] = e[n];
|
|
999
1017
|
return a;
|
|
1000
1018
|
}
|
|
1001
|
-
function
|
|
1019
|
+
function qi() {
|
|
1002
1020
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1003
1021
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1004
1022
|
}
|
|
1005
|
-
var
|
|
1023
|
+
var Gi = "1.15.2";
|
|
1006
1024
|
function re(e) {
|
|
1007
1025
|
if (typeof window < "u" && window.navigator)
|
|
1008
1026
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1009
1027
|
}
|
|
1010
|
-
var de = re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Je = re(/Edge/i),
|
|
1028
|
+
var de = re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Je = re(/Edge/i), wn = re(/firefox/i), We = re(/safari/i) && !re(/chrome/i) && !re(/android/i), Rn = re(/iP(ad|od|hone)/i), zn = re(/chrome/i) && re(/android/i), jn = {
|
|
1011
1029
|
capture: !1,
|
|
1012
1030
|
passive: !1
|
|
1013
1031
|
};
|
|
1014
1032
|
function E(e, t, n) {
|
|
1015
|
-
e.addEventListener(t, n, !de &&
|
|
1033
|
+
e.addEventListener(t, n, !de && jn);
|
|
1016
1034
|
}
|
|
1017
|
-
function
|
|
1018
|
-
e.removeEventListener(t, n, !de &&
|
|
1035
|
+
function x(e, t, n) {
|
|
1036
|
+
e.removeEventListener(t, n, !de && jn);
|
|
1019
1037
|
}
|
|
1020
|
-
function
|
|
1038
|
+
function ct(e, t) {
|
|
1021
1039
|
if (t) {
|
|
1022
1040
|
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
1023
1041
|
try {
|
|
@@ -1033,32 +1051,32 @@ function dt(e, t) {
|
|
|
1033
1051
|
return !1;
|
|
1034
1052
|
}
|
|
1035
1053
|
}
|
|
1036
|
-
function
|
|
1054
|
+
function Vi(e) {
|
|
1037
1055
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1038
1056
|
}
|
|
1039
1057
|
function Q(e, t, n, a) {
|
|
1040
1058
|
if (e) {
|
|
1041
1059
|
n = n || document;
|
|
1042
1060
|
do {
|
|
1043
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
1061
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && ct(e, t) : ct(e, t)) || a && e === n)
|
|
1044
1062
|
return e;
|
|
1045
1063
|
if (e === n)
|
|
1046
1064
|
break;
|
|
1047
|
-
} while (e =
|
|
1065
|
+
} while (e = Vi(e));
|
|
1048
1066
|
}
|
|
1049
1067
|
return null;
|
|
1050
1068
|
}
|
|
1051
|
-
var
|
|
1069
|
+
var kn = /\s+/g;
|
|
1052
1070
|
function F(e, t, n) {
|
|
1053
1071
|
if (e && t)
|
|
1054
1072
|
if (e.classList)
|
|
1055
1073
|
e.classList[n ? "add" : "remove"](t);
|
|
1056
1074
|
else {
|
|
1057
|
-
var a = (" " + e.className + " ").replace(
|
|
1058
|
-
e.className = (a + (n ? " " + t : "")).replace(
|
|
1075
|
+
var a = (" " + e.className + " ").replace(kn, " ").replace(" " + t + " ", " ");
|
|
1076
|
+
e.className = (a + (n ? " " + t : "")).replace(kn, " ");
|
|
1059
1077
|
}
|
|
1060
1078
|
}
|
|
1061
|
-
function
|
|
1079
|
+
function b(e, t, n) {
|
|
1062
1080
|
var a = e && e.style;
|
|
1063
1081
|
if (a) {
|
|
1064
1082
|
if (n === void 0)
|
|
@@ -1072,13 +1090,13 @@ function Ce(e, t) {
|
|
|
1072
1090
|
n = e;
|
|
1073
1091
|
else
|
|
1074
1092
|
do {
|
|
1075
|
-
var a =
|
|
1093
|
+
var a = b(e, "transform");
|
|
1076
1094
|
a && a !== "none" && (n = a + " " + n);
|
|
1077
1095
|
} while (!t && (e = e.parentNode));
|
|
1078
1096
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1079
1097
|
return o && new o(n);
|
|
1080
1098
|
}
|
|
1081
|
-
function
|
|
1099
|
+
function Bn(e, t, n) {
|
|
1082
1100
|
if (e) {
|
|
1083
1101
|
var a = e.getElementsByTagName(t), o = 0, i = a.length;
|
|
1084
1102
|
if (n)
|
|
@@ -1097,15 +1115,15 @@ function N(e, t, n, a, o) {
|
|
|
1097
1115
|
var i, l, r, c, p, u, f;
|
|
1098
1116
|
if (e !== window && e.parentNode && e !== oe() ? (i = e.getBoundingClientRect(), l = i.top, r = i.left, c = i.bottom, p = i.right, u = i.height, f = i.width) : (l = 0, r = 0, c = window.innerHeight, p = window.innerWidth, u = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (o = o || e.parentNode, !de))
|
|
1099
1117
|
do
|
|
1100
|
-
if (o && o.getBoundingClientRect && (
|
|
1118
|
+
if (o && o.getBoundingClientRect && (b(o, "transform") !== "none" || n && b(o, "position") !== "static")) {
|
|
1101
1119
|
var h = o.getBoundingClientRect();
|
|
1102
|
-
l -= h.top + parseInt(
|
|
1120
|
+
l -= h.top + parseInt(b(o, "border-top-width")), r -= h.left + parseInt(b(o, "border-left-width")), c = l + i.height, p = r + i.width;
|
|
1103
1121
|
break;
|
|
1104
1122
|
}
|
|
1105
1123
|
while (o = o.parentNode);
|
|
1106
1124
|
if (a && e !== window) {
|
|
1107
|
-
var
|
|
1108
|
-
|
|
1125
|
+
var g = Ce(o || e), y = g && g.a, C = g && g.d;
|
|
1126
|
+
g && (l /= C, r /= y, f /= y, u /= C, c = l + u, p = r + f);
|
|
1109
1127
|
}
|
|
1110
1128
|
return {
|
|
1111
1129
|
top: l,
|
|
@@ -1117,7 +1135,7 @@ function N(e, t, n, a, o) {
|
|
|
1117
1135
|
};
|
|
1118
1136
|
}
|
|
1119
1137
|
}
|
|
1120
|
-
function
|
|
1138
|
+
function xn(e, t, n) {
|
|
1121
1139
|
for (var a = me(e, !0), o = N(e)[t]; a; ) {
|
|
1122
1140
|
var i = N(a)[n], l = void 0;
|
|
1123
1141
|
if (n === "top" || n === "left" ? l = o >= i : l = o <= i, !l)
|
|
@@ -1128,9 +1146,9 @@ function wn(e, t, n) {
|
|
|
1128
1146
|
}
|
|
1129
1147
|
return !1;
|
|
1130
1148
|
}
|
|
1131
|
-
function
|
|
1149
|
+
function Ie(e, t, n, a) {
|
|
1132
1150
|
for (var o = 0, i = 0, l = e.children; i < l.length; ) {
|
|
1133
|
-
if (l[i].style.display !== "none" && l[i] !==
|
|
1151
|
+
if (l[i].style.display !== "none" && l[i] !== _.ghost && (a || l[i] !== _.dragged) && Q(l[i], n.draggable, e, !1)) {
|
|
1134
1152
|
if (o === t)
|
|
1135
1153
|
return l[i];
|
|
1136
1154
|
o++;
|
|
@@ -1139,20 +1157,20 @@ function He(e, t, n, a) {
|
|
|
1139
1157
|
}
|
|
1140
1158
|
return null;
|
|
1141
1159
|
}
|
|
1142
|
-
function
|
|
1143
|
-
for (var n = e.lastElementChild; n && (n ===
|
|
1160
|
+
function pn(e, t) {
|
|
1161
|
+
for (var n = e.lastElementChild; n && (n === _.ghost || b(n, "display") === "none" || t && !ct(n, t)); )
|
|
1144
1162
|
n = n.previousElementSibling;
|
|
1145
1163
|
return n || null;
|
|
1146
1164
|
}
|
|
1147
|
-
function
|
|
1165
|
+
function L(e, t) {
|
|
1148
1166
|
var n = 0;
|
|
1149
1167
|
if (!e || !e.parentNode)
|
|
1150
1168
|
return -1;
|
|
1151
1169
|
for (; e = e.previousElementSibling; )
|
|
1152
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
1170
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== _.clone && (!t || ct(e, t)) && n++;
|
|
1153
1171
|
return n;
|
|
1154
1172
|
}
|
|
1155
|
-
function
|
|
1173
|
+
function En(e) {
|
|
1156
1174
|
var t = 0, n = 0, a = oe();
|
|
1157
1175
|
if (e)
|
|
1158
1176
|
do {
|
|
@@ -1161,7 +1179,7 @@ function xn(e) {
|
|
|
1161
1179
|
} while (e !== a && (e = e.parentNode));
|
|
1162
1180
|
return [t, n];
|
|
1163
1181
|
}
|
|
1164
|
-
function
|
|
1182
|
+
function Ji(e, t) {
|
|
1165
1183
|
for (var n in e)
|
|
1166
1184
|
if (e.hasOwnProperty(n)) {
|
|
1167
1185
|
for (var a in t)
|
|
@@ -1176,7 +1194,7 @@ function me(e, t) {
|
|
|
1176
1194
|
var n = e, a = !1;
|
|
1177
1195
|
do
|
|
1178
1196
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
1179
|
-
var o =
|
|
1197
|
+
var o = b(n);
|
|
1180
1198
|
if (n.clientWidth < n.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
1181
1199
|
if (!n.getBoundingClientRect || n === document.body)
|
|
1182
1200
|
return oe();
|
|
@@ -1188,43 +1206,43 @@ function me(e, t) {
|
|
|
1188
1206
|
while (n = n.parentNode);
|
|
1189
1207
|
return oe();
|
|
1190
1208
|
}
|
|
1191
|
-
function
|
|
1209
|
+
function Yi(e, t) {
|
|
1192
1210
|
if (e && t)
|
|
1193
1211
|
for (var n in t)
|
|
1194
1212
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
1195
1213
|
return e;
|
|
1196
1214
|
}
|
|
1197
|
-
function
|
|
1215
|
+
function kt(e, t) {
|
|
1198
1216
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
1199
1217
|
}
|
|
1200
|
-
var
|
|
1201
|
-
function
|
|
1218
|
+
var Ze;
|
|
1219
|
+
function Un(e, t) {
|
|
1202
1220
|
return function() {
|
|
1203
|
-
if (!
|
|
1221
|
+
if (!Ze) {
|
|
1204
1222
|
var n = arguments, a = this;
|
|
1205
|
-
n.length === 1 ? e.call(a, n[0]) : e.apply(a, n),
|
|
1206
|
-
|
|
1223
|
+
n.length === 1 ? e.call(a, n[0]) : e.apply(a, n), Ze = setTimeout(function() {
|
|
1224
|
+
Ze = void 0;
|
|
1207
1225
|
}, t);
|
|
1208
1226
|
}
|
|
1209
1227
|
};
|
|
1210
1228
|
}
|
|
1211
|
-
function
|
|
1212
|
-
clearTimeout(
|
|
1229
|
+
function Xi() {
|
|
1230
|
+
clearTimeout(Ze), Ze = void 0;
|
|
1213
1231
|
}
|
|
1214
|
-
function
|
|
1232
|
+
function Wn(e, t, n) {
|
|
1215
1233
|
e.scrollLeft += t, e.scrollTop += n;
|
|
1216
1234
|
}
|
|
1217
|
-
function
|
|
1235
|
+
function fn(e) {
|
|
1218
1236
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
1219
1237
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
1220
1238
|
}
|
|
1221
|
-
function
|
|
1222
|
-
|
|
1239
|
+
function Sn(e, t) {
|
|
1240
|
+
b(e, "position", "absolute"), b(e, "top", t.top), b(e, "left", t.left), b(e, "width", t.width), b(e, "height", t.height);
|
|
1223
1241
|
}
|
|
1224
1242
|
function xt(e) {
|
|
1225
|
-
|
|
1243
|
+
b(e, "position", ""), b(e, "top", ""), b(e, "left", ""), b(e, "width", ""), b(e, "height", "");
|
|
1226
1244
|
}
|
|
1227
|
-
function
|
|
1245
|
+
function Zn(e, t, n) {
|
|
1228
1246
|
var a = {};
|
|
1229
1247
|
return Array.from(e.children).forEach(function(o) {
|
|
1230
1248
|
var i, l, r, c;
|
|
@@ -1235,14 +1253,14 @@ function Bn(e, t, n) {
|
|
|
1235
1253
|
}), a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
1236
1254
|
}
|
|
1237
1255
|
var W = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1238
|
-
function
|
|
1256
|
+
function Ki() {
|
|
1239
1257
|
var e = [], t;
|
|
1240
1258
|
return {
|
|
1241
1259
|
captureAnimationState: function() {
|
|
1242
1260
|
if (e = [], !!this.options.animation) {
|
|
1243
1261
|
var a = [].slice.call(this.el.children);
|
|
1244
1262
|
a.forEach(function(o) {
|
|
1245
|
-
if (!(
|
|
1263
|
+
if (!(b(o, "display") === "none" || o === _.ghost)) {
|
|
1246
1264
|
e.push({
|
|
1247
1265
|
target: o,
|
|
1248
1266
|
rect: N(o)
|
|
@@ -1261,7 +1279,7 @@ function Bi() {
|
|
|
1261
1279
|
e.push(a);
|
|
1262
1280
|
},
|
|
1263
1281
|
removeAnimationState: function(a) {
|
|
1264
|
-
e.splice(
|
|
1282
|
+
e.splice(Ji(e, {
|
|
1265
1283
|
target: a
|
|
1266
1284
|
}), 1);
|
|
1267
1285
|
},
|
|
@@ -1273,9 +1291,9 @@ function Bi() {
|
|
|
1273
1291
|
}
|
|
1274
1292
|
var i = !1, l = 0;
|
|
1275
1293
|
e.forEach(function(r) {
|
|
1276
|
-
var c = 0, p = r.target, u = p.fromRect, f = N(p), h = p.prevFromRect,
|
|
1277
|
-
C && (f.top -= C.f, f.left -= C.e), p.toRect = f, p.thisAnimationDuration &&
|
|
1278
|
-
(y.top - f.top) / (y.left - f.left) === (u.top - f.top) / (u.left - f.left) && (c =
|
|
1294
|
+
var c = 0, p = r.target, u = p.fromRect, f = N(p), h = p.prevFromRect, g = p.prevToRect, y = r.rect, C = Ce(p, !0);
|
|
1295
|
+
C && (f.top -= C.f, f.left -= C.e), p.toRect = f, p.thisAnimationDuration && kt(h, f) && !kt(u, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1296
|
+
(y.top - f.top) / (y.left - f.left) === (u.top - f.top) / (u.left - f.left) && (c = eo(y, h, g, o.options)), kt(f, u) || (p.prevFromRect = u, p.prevToRect = f, c || (c = o.options.animation), o.animate(p, y, f, c)), c && (i = !0, l = Math.max(l, c), clearTimeout(p.animationResetTimer), p.animationResetTimer = setTimeout(function() {
|
|
1279
1297
|
p.animationTime = 0, p.prevFromRect = null, p.fromRect = null, p.prevToRect = null, p.thisAnimationDuration = null;
|
|
1280
1298
|
}, c), p.thisAnimationDuration = c);
|
|
1281
1299
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -1284,31 +1302,31 @@ function Bi() {
|
|
|
1284
1302
|
},
|
|
1285
1303
|
animate: function(a, o, i, l) {
|
|
1286
1304
|
if (l) {
|
|
1287
|
-
|
|
1305
|
+
b(a, "transition", ""), b(a, "transform", "");
|
|
1288
1306
|
var r = Ce(this.el), c = r && r.a, p = r && r.d, u = (o.left - i.left) / (c || 1), f = (o.top - i.top) / (p || 1);
|
|
1289
|
-
a.animatingX = !!u, a.animatingY = !!f,
|
|
1290
|
-
|
|
1307
|
+
a.animatingX = !!u, a.animatingY = !!f, b(a, "transform", "translate3d(" + u + "px," + f + "px,0)"), this.forRepaintDummy = Qi(a), b(a, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
|
|
1308
|
+
b(a, "transition", ""), b(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
|
|
1291
1309
|
}, l);
|
|
1292
1310
|
}
|
|
1293
1311
|
}
|
|
1294
1312
|
};
|
|
1295
1313
|
}
|
|
1296
|
-
function
|
|
1314
|
+
function Qi(e) {
|
|
1297
1315
|
return e.offsetWidth;
|
|
1298
1316
|
}
|
|
1299
|
-
function
|
|
1317
|
+
function eo(e, t, n, a) {
|
|
1300
1318
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * a.animation;
|
|
1301
1319
|
}
|
|
1302
|
-
var
|
|
1320
|
+
var Ee = [], Et = {
|
|
1303
1321
|
initializeByDefault: !0
|
|
1304
|
-
},
|
|
1322
|
+
}, Ye = {
|
|
1305
1323
|
mount: function(t) {
|
|
1306
|
-
for (var n in
|
|
1307
|
-
|
|
1308
|
-
|
|
1324
|
+
for (var n in Et)
|
|
1325
|
+
Et.hasOwnProperty(n) && !(n in t) && (t[n] = Et[n]);
|
|
1326
|
+
Ee.forEach(function(a) {
|
|
1309
1327
|
if (a.pluginName === t.pluginName)
|
|
1310
1328
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1311
|
-
}),
|
|
1329
|
+
}), Ee.push(t);
|
|
1312
1330
|
},
|
|
1313
1331
|
pluginEvent: function(t, n, a) {
|
|
1314
1332
|
var o = this;
|
|
@@ -1316,7 +1334,7 @@ var ke = [], kt = {
|
|
|
1316
1334
|
o.eventCanceled = !0;
|
|
1317
1335
|
};
|
|
1318
1336
|
var i = t + "Global";
|
|
1319
|
-
|
|
1337
|
+
Ee.forEach(function(l) {
|
|
1320
1338
|
n[l.pluginName] && (n[l.pluginName][i] && n[l.pluginName][i](se({
|
|
1321
1339
|
sortable: n
|
|
1322
1340
|
}, a)), n.options[l.pluginName] && n[l.pluginName][t] && n[l.pluginName][t](se({
|
|
@@ -1325,7 +1343,7 @@ var ke = [], kt = {
|
|
|
1325
1343
|
});
|
|
1326
1344
|
},
|
|
1327
1345
|
initializePlugins: function(t, n, a, o) {
|
|
1328
|
-
|
|
1346
|
+
Ee.forEach(function(r) {
|
|
1329
1347
|
var c = r.pluginName;
|
|
1330
1348
|
if (!(!t.options[c] && !r.initializeByDefault)) {
|
|
1331
1349
|
var p = new r(t, n, t.options);
|
|
@@ -1340,52 +1358,52 @@ var ke = [], kt = {
|
|
|
1340
1358
|
},
|
|
1341
1359
|
getEventProperties: function(t, n) {
|
|
1342
1360
|
var a = {};
|
|
1343
|
-
return
|
|
1361
|
+
return Ee.forEach(function(o) {
|
|
1344
1362
|
typeof o.eventProperties == "function" && ee(a, o.eventProperties.call(n[o.pluginName], t));
|
|
1345
1363
|
}), a;
|
|
1346
1364
|
},
|
|
1347
1365
|
modifyOption: function(t, n, a) {
|
|
1348
1366
|
var o;
|
|
1349
|
-
return
|
|
1367
|
+
return Ee.forEach(function(i) {
|
|
1350
1368
|
t[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (o = i.optionListeners[n].call(t[i.pluginName], a));
|
|
1351
1369
|
}), o;
|
|
1352
1370
|
}
|
|
1353
1371
|
};
|
|
1354
|
-
function
|
|
1355
|
-
var t = e.sortable, n = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, l = e.toEl, r = e.fromEl, c = e.oldIndex, p = e.newIndex, u = e.oldDraggableIndex, f = e.newDraggableIndex, h = e.originalEvent,
|
|
1372
|
+
function ze(e) {
|
|
1373
|
+
var t = e.sortable, n = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, l = e.toEl, r = e.fromEl, c = e.oldIndex, p = e.newIndex, u = e.oldDraggableIndex, f = e.newDraggableIndex, h = e.originalEvent, g = e.putSortable, y = e.extraEventProperties;
|
|
1356
1374
|
if (t = t || n && n[W], !!t) {
|
|
1357
|
-
var C,
|
|
1375
|
+
var C, T = t.options, R = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
1358
1376
|
window.CustomEvent && !de && !Je ? C = new CustomEvent(a, {
|
|
1359
1377
|
bubbles: !0,
|
|
1360
1378
|
cancelable: !0
|
|
1361
|
-
}) : (C = document.createEvent("Event"), C.initEvent(a, !0, !0)), C.to = l || n, C.from = r || n, C.item = o || n, C.clone = i, C.oldIndex = c, C.newIndex = p, C.oldDraggableIndex = u, C.newDraggableIndex = f, C.originalEvent = h, C.pullMode =
|
|
1362
|
-
var z = se(se({}, y),
|
|
1379
|
+
}) : (C = document.createEvent("Event"), C.initEvent(a, !0, !0)), C.to = l || n, C.from = r || n, C.item = o || n, C.clone = i, C.oldIndex = c, C.newIndex = p, C.oldDraggableIndex = u, C.newDraggableIndex = f, C.originalEvent = h, C.pullMode = g ? g.lastPutMode : void 0;
|
|
1380
|
+
var z = se(se({}, y), Ye.getEventProperties(a, t));
|
|
1363
1381
|
for (var q in z)
|
|
1364
1382
|
C[q] = z[q];
|
|
1365
|
-
n && n.dispatchEvent(C),
|
|
1383
|
+
n && n.dispatchEvent(C), T[R] && T[R].call(t, C);
|
|
1366
1384
|
}
|
|
1367
1385
|
}
|
|
1368
|
-
var
|
|
1369
|
-
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i =
|
|
1370
|
-
|
|
1386
|
+
var to = ["evt"], G = function(t, n) {
|
|
1387
|
+
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i = ji(a, to);
|
|
1388
|
+
Ye.pluginEvent.bind(_)(t, n, se({
|
|
1371
1389
|
dragEl: m,
|
|
1372
|
-
parentEl:
|
|
1373
|
-
ghostEl:
|
|
1390
|
+
parentEl: M,
|
|
1391
|
+
ghostEl: k,
|
|
1374
1392
|
rootEl: P,
|
|
1375
1393
|
nextEl: _e,
|
|
1376
|
-
lastDownEl:
|
|
1394
|
+
lastDownEl: st,
|
|
1377
1395
|
cloneEl: A,
|
|
1378
1396
|
cloneHidden: he,
|
|
1379
|
-
dragStarted:
|
|
1380
|
-
putSortable:
|
|
1381
|
-
activeSortable:
|
|
1397
|
+
dragStarted: je,
|
|
1398
|
+
putSortable: B,
|
|
1399
|
+
activeSortable: _.active,
|
|
1382
1400
|
originalEvent: o,
|
|
1383
|
-
oldIndex:
|
|
1384
|
-
oldDraggableIndex:
|
|
1401
|
+
oldIndex: He,
|
|
1402
|
+
oldDraggableIndex: qe,
|
|
1385
1403
|
newIndex: X,
|
|
1386
1404
|
newDraggableIndex: ue,
|
|
1387
|
-
hideGhostForTarget:
|
|
1388
|
-
unhideGhostForTarget:
|
|
1405
|
+
hideGhostForTarget: Jn,
|
|
1406
|
+
unhideGhostForTarget: Yn,
|
|
1389
1407
|
cloneNowHidden: function() {
|
|
1390
1408
|
he = !0;
|
|
1391
1409
|
},
|
|
@@ -1402,26 +1420,26 @@ var qi = ["evt"], G = function(t, n) {
|
|
|
1402
1420
|
}, i));
|
|
1403
1421
|
};
|
|
1404
1422
|
function Z(e) {
|
|
1405
|
-
|
|
1406
|
-
putSortable:
|
|
1423
|
+
ze(se({
|
|
1424
|
+
putSortable: B,
|
|
1407
1425
|
cloneEl: A,
|
|
1408
1426
|
targetEl: m,
|
|
1409
1427
|
rootEl: P,
|
|
1410
|
-
oldIndex:
|
|
1411
|
-
oldDraggableIndex:
|
|
1428
|
+
oldIndex: He,
|
|
1429
|
+
oldDraggableIndex: qe,
|
|
1412
1430
|
newIndex: X,
|
|
1413
1431
|
newDraggableIndex: ue
|
|
1414
1432
|
}, e));
|
|
1415
1433
|
}
|
|
1416
|
-
var m,
|
|
1417
|
-
if (
|
|
1434
|
+
var m, M, k, P, _e, st, A, he, He, X, qe, ue, Ke, B, De = !1, pt = !1, ft = [], ge, te, St, Ot, On, Dn, je, Se, Ge, Ve = !1, Qe = !1, lt, U, Dt = [], sn = !1, ut = [], mt = typeof document < "u", et = Rn, Hn = Je || de ? "cssFloat" : "float", no = mt && !zn && !Rn && "draggable" in document.createElement("div"), qn = function() {
|
|
1435
|
+
if (mt) {
|
|
1418
1436
|
if (de)
|
|
1419
1437
|
return !1;
|
|
1420
1438
|
var e = document.createElement("x");
|
|
1421
1439
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1422
1440
|
}
|
|
1423
|
-
}(),
|
|
1424
|
-
var a =
|
|
1441
|
+
}(), Gn = function(t, n) {
|
|
1442
|
+
var a = b(t), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ie(t, 0, n), l = Ie(t, 1, n), r = i && b(i), c = l && b(l), p = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + N(i).width, u = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + N(l).width;
|
|
1425
1443
|
if (a.display === "flex")
|
|
1426
1444
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1427
1445
|
if (a.display === "grid")
|
|
@@ -1430,21 +1448,21 @@ var m, L, x, P, _e, ot, A, he, De, X, Ze, ue, Xe, U, Oe = !1, ct = !1, pt = [],
|
|
|
1430
1448
|
var f = r.float === "left" ? "left" : "right";
|
|
1431
1449
|
return l && (c.clear === "both" || c.clear === f) ? "vertical" : "horizontal";
|
|
1432
1450
|
}
|
|
1433
|
-
return i && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || p >= o && a[
|
|
1434
|
-
},
|
|
1451
|
+
return i && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || p >= o && a[Hn] === "none" || l && a[Hn] === "none" && p + u > o) ? "vertical" : "horizontal";
|
|
1452
|
+
}, ao = function(t, n, a) {
|
|
1435
1453
|
var o = a ? t.left : t.top, i = a ? t.right : t.bottom, l = a ? t.width : t.height, r = a ? n.left : n.top, c = a ? n.right : n.bottom, p = a ? n.width : n.height;
|
|
1436
1454
|
return o === r || i === c || o + l / 2 === r + p / 2;
|
|
1437
|
-
},
|
|
1455
|
+
}, io = function(t, n) {
|
|
1438
1456
|
var a;
|
|
1439
|
-
return
|
|
1457
|
+
return ft.some(function(o) {
|
|
1440
1458
|
var i = o[W].options.emptyInsertThreshold;
|
|
1441
|
-
if (!(!i ||
|
|
1459
|
+
if (!(!i || pn(o))) {
|
|
1442
1460
|
var l = N(o), r = t >= l.left - i && t <= l.right + i, c = n >= l.top - i && n <= l.bottom + i;
|
|
1443
1461
|
if (r && c)
|
|
1444
1462
|
return a = o;
|
|
1445
1463
|
}
|
|
1446
1464
|
}), a;
|
|
1447
|
-
},
|
|
1465
|
+
}, Vn = function(t) {
|
|
1448
1466
|
function n(i, l) {
|
|
1449
1467
|
return function(r, c, p, u) {
|
|
1450
1468
|
var f = r.options.group.name && c.options.group.name && r.options.group.name === c.options.group.name;
|
|
@@ -1461,22 +1479,22 @@ var m, L, x, P, _e, ot, A, he, De, X, Ze, ue, Xe, U, Oe = !1, ct = !1, pt = [],
|
|
|
1461
1479
|
};
|
|
1462
1480
|
}
|
|
1463
1481
|
var a = {}, o = t.group;
|
|
1464
|
-
(!o ||
|
|
1482
|
+
(!o || ot(o) != "object") && (o = {
|
|
1465
1483
|
name: o
|
|
1466
1484
|
}), a.name = o.name, a.checkPull = n(o.pull, !0), a.checkPut = n(o.put), a.revertClone = o.revertClone, t.group = a;
|
|
1467
|
-
}, Gn = function() {
|
|
1468
|
-
!Wn && x && g(x, "display", "none");
|
|
1469
1485
|
}, Jn = function() {
|
|
1470
|
-
!
|
|
1486
|
+
!qn && k && b(k, "display", "none");
|
|
1487
|
+
}, Yn = function() {
|
|
1488
|
+
!qn && k && b(k, "display", "");
|
|
1471
1489
|
};
|
|
1472
|
-
|
|
1473
|
-
if (
|
|
1474
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
1490
|
+
mt && !zn && document.addEventListener("click", function(e) {
|
|
1491
|
+
if (pt)
|
|
1492
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), pt = !1, !1;
|
|
1475
1493
|
}, !0);
|
|
1476
1494
|
var ve = function(t) {
|
|
1477
1495
|
if (m) {
|
|
1478
1496
|
t = t.touches ? t.touches[0] : t;
|
|
1479
|
-
var n =
|
|
1497
|
+
var n = io(t.clientX, t.clientY);
|
|
1480
1498
|
if (n) {
|
|
1481
1499
|
var a = {};
|
|
1482
1500
|
for (var o in t)
|
|
@@ -1484,10 +1502,10 @@ var ve = function(t) {
|
|
|
1484
1502
|
a.target = a.rootEl = n, a.preventDefault = void 0, a.stopPropagation = void 0, n[W]._onDragOver(a);
|
|
1485
1503
|
}
|
|
1486
1504
|
}
|
|
1487
|
-
},
|
|
1505
|
+
}, oo = function(t) {
|
|
1488
1506
|
m && m.parentNode[W]._isOutsideThisEl(t.target);
|
|
1489
1507
|
};
|
|
1490
|
-
function
|
|
1508
|
+
function _(e, t) {
|
|
1491
1509
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
1492
1510
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
1493
1511
|
this.el = e, this.options = t = ee({}, t), e[W] = this;
|
|
@@ -1506,7 +1524,7 @@ function v(e, t) {
|
|
|
1506
1524
|
// will be set to same as swapThreshold if default
|
|
1507
1525
|
removeCloneOnHide: !0,
|
|
1508
1526
|
direction: function() {
|
|
1509
|
-
return
|
|
1527
|
+
return Gn(e, this.options);
|
|
1510
1528
|
},
|
|
1511
1529
|
ghostClass: "sortable-ghost",
|
|
1512
1530
|
chosenClass: "sortable-chosen",
|
|
@@ -1533,22 +1551,22 @@ function v(e, t) {
|
|
|
1533
1551
|
x: 0,
|
|
1534
1552
|
y: 0
|
|
1535
1553
|
},
|
|
1536
|
-
supportPointer:
|
|
1554
|
+
supportPointer: _.supportPointer !== !1 && "PointerEvent" in window && !We,
|
|
1537
1555
|
emptyInsertThreshold: 5
|
|
1538
1556
|
};
|
|
1539
|
-
|
|
1557
|
+
Ye.initializePlugins(this, e, n);
|
|
1540
1558
|
for (var a in n)
|
|
1541
1559
|
!(a in t) && (t[a] = n[a]);
|
|
1542
|
-
|
|
1560
|
+
Vn(t);
|
|
1543
1561
|
for (var o in this)
|
|
1544
1562
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1545
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1563
|
+
this.nativeDraggable = t.forceFallback ? !1 : no, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? E(e, "pointerdown", this._onTapStart) : (E(e, "mousedown", this._onTapStart), E(e, "touchstart", this._onTapStart)), this.nativeDraggable && (E(e, "dragover", this), E(e, "dragenter", this)), ft.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ee(this, Ki());
|
|
1546
1564
|
}
|
|
1547
|
-
|
|
1565
|
+
_.prototype = /** @lends Sortable.prototype */
|
|
1548
1566
|
{
|
|
1549
|
-
constructor:
|
|
1567
|
+
constructor: _,
|
|
1550
1568
|
_isOutsideThisEl: function(t) {
|
|
1551
|
-
!this.el.contains(t) && t !== this.el && (
|
|
1569
|
+
!this.el.contains(t) && t !== this.el && (Se = null);
|
|
1552
1570
|
},
|
|
1553
1571
|
_getDirection: function(t, n) {
|
|
1554
1572
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, m) : this.options.direction;
|
|
@@ -1556,8 +1574,8 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1556
1574
|
_onTapStart: function(t) {
|
|
1557
1575
|
if (t.cancelable) {
|
|
1558
1576
|
var n = this, a = this.el, o = this.options, i = o.preventOnFilter, l = t.type, r = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, c = (r || t).target, p = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || c, u = o.filter;
|
|
1559
|
-
if (
|
|
1560
|
-
if (
|
|
1577
|
+
if (ho(a), !m && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || o.disabled) && !p.isContentEditable && !(!this.nativeDraggable && We && c && c.tagName.toUpperCase() === "SELECT") && (c = Q(c, o.draggable, a, !1), !(c && c.animated) && st !== c)) {
|
|
1578
|
+
if (He = L(c), qe = L(c, o.draggable), typeof u == "function") {
|
|
1561
1579
|
if (u.call(this, t, c, this)) {
|
|
1562
1580
|
Z({
|
|
1563
1581
|
sortable: n,
|
|
@@ -1595,28 +1613,28 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1595
1613
|
var o = this, i = o.el, l = o.options, r = i.ownerDocument, c;
|
|
1596
1614
|
if (a && !m && a.parentNode === i) {
|
|
1597
1615
|
var p = N(a);
|
|
1598
|
-
if (P = i, m = a,
|
|
1616
|
+
if (P = i, m = a, M = m.parentNode, _e = m.nextSibling, st = a, Ke = l.group, _.dragged = m, ge = {
|
|
1599
1617
|
target: m,
|
|
1600
1618
|
clientX: (n || t).clientX,
|
|
1601
1619
|
clientY: (n || t).clientY
|
|
1602
|
-
},
|
|
1620
|
+
}, On = ge.clientX - p.left, Dn = ge.clientY - p.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, m.style["will-change"] = "all", c = function() {
|
|
1603
1621
|
if (G("delayEnded", o, {
|
|
1604
1622
|
evt: t
|
|
1605
|
-
}),
|
|
1623
|
+
}), _.eventCanceled) {
|
|
1606
1624
|
o._onDrop();
|
|
1607
1625
|
return;
|
|
1608
1626
|
}
|
|
1609
|
-
o._disableDelayedDragEvents(), !
|
|
1627
|
+
o._disableDelayedDragEvents(), !wn && o.nativeDraggable && (m.draggable = !0), o._triggerDragStart(t, n), Z({
|
|
1610
1628
|
sortable: o,
|
|
1611
1629
|
name: "choose",
|
|
1612
1630
|
originalEvent: t
|
|
1613
1631
|
}), F(m, l.chosenClass, !0);
|
|
1614
1632
|
}, l.ignore.split(",").forEach(function(u) {
|
|
1615
|
-
|
|
1616
|
-
}), E(r, "dragover", ve), E(r, "mousemove", ve), E(r, "touchmove", ve), E(r, "mouseup", o._onDrop), E(r, "touchend", o._onDrop), E(r, "touchcancel", o._onDrop),
|
|
1633
|
+
Bn(m, u.trim(), Ht);
|
|
1634
|
+
}), E(r, "dragover", ve), E(r, "mousemove", ve), E(r, "touchmove", ve), E(r, "mouseup", o._onDrop), E(r, "touchend", o._onDrop), E(r, "touchcancel", o._onDrop), wn && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), G("delayStart", this, {
|
|
1617
1635
|
evt: t
|
|
1618
1636
|
}), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Je || de))) {
|
|
1619
|
-
if (
|
|
1637
|
+
if (_.eventCanceled) {
|
|
1620
1638
|
this._onDrop();
|
|
1621
1639
|
return;
|
|
1622
1640
|
}
|
|
@@ -1630,28 +1648,28 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1630
1648
|
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1631
1649
|
},
|
|
1632
1650
|
_disableDelayedDrag: function() {
|
|
1633
|
-
m &&
|
|
1651
|
+
m && Ht(m), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1634
1652
|
},
|
|
1635
1653
|
_disableDelayedDragEvents: function() {
|
|
1636
1654
|
var t = this.el.ownerDocument;
|
|
1637
|
-
|
|
1655
|
+
x(t, "mouseup", this._disableDelayedDrag), x(t, "touchend", this._disableDelayedDrag), x(t, "touchcancel", this._disableDelayedDrag), x(t, "mousemove", this._delayedDragTouchMoveHandler), x(t, "touchmove", this._delayedDragTouchMoveHandler), x(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1638
1656
|
},
|
|
1639
1657
|
_triggerDragStart: function(t, n) {
|
|
1640
1658
|
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : n ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(m, "dragend", this), E(P, "dragstart", this._onDragStart));
|
|
1641
1659
|
try {
|
|
1642
|
-
document.selection ?
|
|
1660
|
+
document.selection ? rt(function() {
|
|
1643
1661
|
document.selection.empty();
|
|
1644
1662
|
}) : window.getSelection().removeAllRanges();
|
|
1645
1663
|
} catch {
|
|
1646
1664
|
}
|
|
1647
1665
|
},
|
|
1648
1666
|
_dragStarted: function(t, n) {
|
|
1649
|
-
if (
|
|
1667
|
+
if (De = !1, P && m) {
|
|
1650
1668
|
G("dragStarted", this, {
|
|
1651
1669
|
evt: n
|
|
1652
|
-
}), this.nativeDraggable && E(document, "dragover",
|
|
1670
|
+
}), this.nativeDraggable && E(document, "dragover", oo);
|
|
1653
1671
|
var a = this.options;
|
|
1654
|
-
!t && F(m, a.dragClass, !1), F(m, a.ghostClass, !0),
|
|
1672
|
+
!t && F(m, a.dragClass, !1), F(m, a.ghostClass, !0), _.active = this, t && this._appendGhost(), Z({
|
|
1655
1673
|
sortable: this,
|
|
1656
1674
|
name: "start",
|
|
1657
1675
|
originalEvent: n
|
|
@@ -1661,7 +1679,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1661
1679
|
},
|
|
1662
1680
|
_emulateDragOver: function() {
|
|
1663
1681
|
if (te) {
|
|
1664
|
-
this._lastX = te.clientX, this._lastY = te.clientY,
|
|
1682
|
+
this._lastX = te.clientX, this._lastY = te.clientY, Jn();
|
|
1665
1683
|
for (var t = document.elementFromPoint(te.clientX, te.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(te.clientX, te.clientY), t !== n); )
|
|
1666
1684
|
n = t;
|
|
1667
1685
|
if (m.parentNode[W]._isOutsideThisEl(t), n)
|
|
@@ -1678,19 +1696,19 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1678
1696
|
}
|
|
1679
1697
|
t = n;
|
|
1680
1698
|
} while (n = n.parentNode);
|
|
1681
|
-
|
|
1699
|
+
Yn();
|
|
1682
1700
|
}
|
|
1683
1701
|
},
|
|
1684
1702
|
_onTouchMove: function(t) {
|
|
1685
|
-
if (
|
|
1686
|
-
var n = this.options, a = n.fallbackTolerance, o = n.fallbackOffset, i = t.touches ? t.touches[0] : t, l =
|
|
1687
|
-
if (!
|
|
1703
|
+
if (ge) {
|
|
1704
|
+
var n = this.options, a = n.fallbackTolerance, o = n.fallbackOffset, i = t.touches ? t.touches[0] : t, l = k && Ce(k, !0), r = k && l && l.a, c = k && l && l.d, p = et && U && En(U), u = (i.clientX - ge.clientX + o.x) / (r || 1) + (p ? p[0] - Dt[0] : 0) / (r || 1), f = (i.clientY - ge.clientY + o.y) / (c || 1) + (p ? p[1] - Dt[1] : 0) / (c || 1);
|
|
1705
|
+
if (!_.active && !De) {
|
|
1688
1706
|
if (a && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < a)
|
|
1689
1707
|
return;
|
|
1690
1708
|
this._onDragStart(t, !0);
|
|
1691
1709
|
}
|
|
1692
|
-
if (
|
|
1693
|
-
l ? (l.e += u - (
|
|
1710
|
+
if (k) {
|
|
1711
|
+
l ? (l.e += u - (St || 0), l.f += f - (Ot || 0)) : l = {
|
|
1694
1712
|
a: 1,
|
|
1695
1713
|
b: 0,
|
|
1696
1714
|
c: 0,
|
|
@@ -1699,47 +1717,47 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1699
1717
|
f
|
|
1700
1718
|
};
|
|
1701
1719
|
var h = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
1702
|
-
|
|
1720
|
+
b(k, "webkitTransform", h), b(k, "mozTransform", h), b(k, "msTransform", h), b(k, "transform", h), St = u, Ot = f, te = i;
|
|
1703
1721
|
}
|
|
1704
1722
|
t.cancelable && t.preventDefault();
|
|
1705
1723
|
}
|
|
1706
1724
|
},
|
|
1707
1725
|
_appendGhost: function() {
|
|
1708
|
-
if (!
|
|
1709
|
-
var t = this.options.fallbackOnBody ? document.body : P, n = N(m, !0,
|
|
1710
|
-
if (
|
|
1711
|
-
for (
|
|
1712
|
-
|
|
1713
|
-
|
|
1726
|
+
if (!k) {
|
|
1727
|
+
var t = this.options.fallbackOnBody ? document.body : P, n = N(m, !0, et, !0, t), a = this.options;
|
|
1728
|
+
if (et) {
|
|
1729
|
+
for (U = t; b(U, "position") === "static" && b(U, "transform") === "none" && U !== document; )
|
|
1730
|
+
U = U.parentNode;
|
|
1731
|
+
U !== document.body && U !== document.documentElement ? (U === document && (U = oe()), n.top += U.scrollTop, n.left += U.scrollLeft) : U = oe(), Dt = En(U);
|
|
1714
1732
|
}
|
|
1715
|
-
|
|
1733
|
+
k = m.cloneNode(!0), F(k, a.ghostClass, !1), F(k, a.fallbackClass, !0), F(k, a.dragClass, !0), b(k, "transition", ""), b(k, "transform", ""), b(k, "box-sizing", "border-box"), b(k, "margin", 0), b(k, "top", n.top), b(k, "left", n.left), b(k, "width", n.width), b(k, "height", n.height), b(k, "opacity", "0.8"), b(k, "position", et ? "absolute" : "fixed"), b(k, "zIndex", "100000"), b(k, "pointerEvents", "none"), _.ghost = k, t.appendChild(k), b(k, "transform-origin", On / parseInt(k.style.width) * 100 + "% " + Dn / parseInt(k.style.height) * 100 + "%");
|
|
1716
1734
|
}
|
|
1717
1735
|
},
|
|
1718
1736
|
_onDragStart: function(t, n) {
|
|
1719
1737
|
var a = this, o = t.dataTransfer, i = a.options;
|
|
1720
1738
|
if (G("dragStart", this, {
|
|
1721
1739
|
evt: t
|
|
1722
|
-
}),
|
|
1740
|
+
}), _.eventCanceled) {
|
|
1723
1741
|
this._onDrop();
|
|
1724
1742
|
return;
|
|
1725
1743
|
}
|
|
1726
|
-
G("setupClone", this),
|
|
1727
|
-
G("clone", a), !
|
|
1744
|
+
G("setupClone", this), _.eventCanceled || (A = fn(m), A.removeAttribute("id"), A.draggable = !1, A.style["will-change"] = "", this._hideClone(), F(A, this.options.chosenClass, !1), _.clone = A), a.cloneId = rt(function() {
|
|
1745
|
+
G("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide || P.insertBefore(A, m), a._hideClone(), Z({
|
|
1728
1746
|
sortable: a,
|
|
1729
1747
|
name: "clone"
|
|
1730
1748
|
}));
|
|
1731
|
-
}), !n && F(m, i.dragClass, !0), n ? (
|
|
1749
|
+
}), !n && F(m, i.dragClass, !0), n ? (pt = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (x(document, "mouseup", a._onDrop), x(document, "touchend", a._onDrop), x(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(a, o, m)), E(document, "drop", a), b(m, "transform", "translateZ(0)")), De = !0, a._dragStartId = rt(a._dragStarted.bind(a, n, t)), E(document, "selectstart", a), je = !0, We && b(document.body, "user-select", "none");
|
|
1732
1750
|
},
|
|
1733
1751
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1734
1752
|
_onDragOver: function(t) {
|
|
1735
|
-
var n = this.el, a = t.target, o, i, l, r = this.options, c = r.group, p =
|
|
1736
|
-
if (
|
|
1753
|
+
var n = this.el, a = t.target, o, i, l, r = this.options, c = r.group, p = _.active, u = Ke === c, f = r.sort, h = B || p, g, y = this, C = !1;
|
|
1754
|
+
if (sn)
|
|
1737
1755
|
return;
|
|
1738
|
-
function
|
|
1739
|
-
G(
|
|
1756
|
+
function T(Fe, ka) {
|
|
1757
|
+
G(Fe, y, se({
|
|
1740
1758
|
evt: t,
|
|
1741
1759
|
isOwner: u,
|
|
1742
|
-
axis:
|
|
1760
|
+
axis: g ? "vertical" : "horizontal",
|
|
1743
1761
|
revert: l,
|
|
1744
1762
|
dragRect: o,
|
|
1745
1763
|
targetRect: i,
|
|
@@ -1747,24 +1765,24 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1747
1765
|
fromSortable: h,
|
|
1748
1766
|
target: a,
|
|
1749
1767
|
completed: z,
|
|
1750
|
-
onMove: function(
|
|
1751
|
-
return
|
|
1768
|
+
onMove: function(mn, xa) {
|
|
1769
|
+
return tt(P, n, m, o, mn, N(mn), t, xa);
|
|
1752
1770
|
},
|
|
1753
1771
|
changed: q
|
|
1754
|
-
},
|
|
1772
|
+
}, ka));
|
|
1755
1773
|
}
|
|
1756
1774
|
function R() {
|
|
1757
|
-
|
|
1775
|
+
T("dragOverAnimationCapture"), y.captureAnimationState(), y !== h && h.captureAnimationState();
|
|
1758
1776
|
}
|
|
1759
|
-
function z(
|
|
1760
|
-
return
|
|
1761
|
-
insertion:
|
|
1762
|
-
}),
|
|
1763
|
-
|
|
1764
|
-
}), y !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (a === m && !m.animated || a === n && !a.animated) && (
|
|
1777
|
+
function z(Fe) {
|
|
1778
|
+
return T("dragOverCompleted", {
|
|
1779
|
+
insertion: Fe
|
|
1780
|
+
}), Fe && (u ? p._hideClone() : p._showClone(y), y !== h && (F(m, B ? B.options.ghostClass : p.options.ghostClass, !1), F(m, r.ghostClass, !0)), B !== y && y !== _.active ? B = y : y === _.active && B && (B = null), h === y && (y._ignoreWhileAnimating = a), y.animateAll(function() {
|
|
1781
|
+
T("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
|
|
1782
|
+
}), y !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (a === m && !m.animated || a === n && !a.animated) && (Se = null), !r.dragoverBubble && !t.rootEl && a !== document && (m.parentNode[W]._isOutsideThisEl(t.target), !Fe && ve(t)), !r.dragoverBubble && t.stopPropagation && t.stopPropagation(), C = !0;
|
|
1765
1783
|
}
|
|
1766
1784
|
function q() {
|
|
1767
|
-
X =
|
|
1785
|
+
X = L(m), ue = L(m, r.draggable), Z({
|
|
1768
1786
|
sortable: y,
|
|
1769
1787
|
name: "change",
|
|
1770
1788
|
toEl: n,
|
|
@@ -1773,46 +1791,46 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1773
1791
|
originalEvent: t
|
|
1774
1792
|
});
|
|
1775
1793
|
}
|
|
1776
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), a = Q(a, r.draggable, n, !0),
|
|
1794
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), a = Q(a, r.draggable, n, !0), T("dragOver"), _.eventCanceled)
|
|
1777
1795
|
return C;
|
|
1778
1796
|
if (m.contains(t.target) || a.animated && a.animatingX && a.animatingY || y._ignoreWhileAnimating === a)
|
|
1779
1797
|
return z(!1);
|
|
1780
|
-
if (
|
|
1781
|
-
if (
|
|
1798
|
+
if (pt = !1, p && !r.disabled && (u ? f || (l = M !== P) : B === this || (this.lastPutMode = Ke.checkPull(this, p, m, t)) && c.checkPut(this, p, m, t))) {
|
|
1799
|
+
if (g = this._getDirection(t, a) === "vertical", o = N(m), T("dragOverValid"), _.eventCanceled)
|
|
1782
1800
|
return C;
|
|
1783
1801
|
if (l)
|
|
1784
|
-
return
|
|
1785
|
-
var
|
|
1786
|
-
if (!
|
|
1787
|
-
if (
|
|
1802
|
+
return M = P, R(), this._hideClone(), T("revert"), _.eventCanceled || (_e ? P.insertBefore(m, _e) : P.appendChild(m)), z(!0);
|
|
1803
|
+
var O = pn(n, r.draggable);
|
|
1804
|
+
if (!O || co(t, g, this) && !O.animated) {
|
|
1805
|
+
if (O === m)
|
|
1788
1806
|
return z(!1);
|
|
1789
|
-
if (
|
|
1790
|
-
return R(),
|
|
1791
|
-
} else if (
|
|
1792
|
-
var ae =
|
|
1807
|
+
if (O && n === t.target && (a = O), a && (i = N(a)), tt(P, n, m, o, a, i, t, !!a) !== !1)
|
|
1808
|
+
return R(), O && O.nextSibling ? n.insertBefore(m, O.nextSibling) : n.appendChild(m), M = n, q(), z(!0);
|
|
1809
|
+
} else if (O && ro(t, g, this)) {
|
|
1810
|
+
var ae = Ie(n, 0, r, !0);
|
|
1793
1811
|
if (ae === m)
|
|
1794
1812
|
return z(!1);
|
|
1795
|
-
if (a = ae, i = N(a),
|
|
1796
|
-
return R(), n.insertBefore(m, ae),
|
|
1813
|
+
if (a = ae, i = N(a), tt(P, n, m, o, a, i, t, !1) !== !1)
|
|
1814
|
+
return R(), n.insertBefore(m, ae), M = n, q(), z(!0);
|
|
1797
1815
|
} else if (a.parentNode === n) {
|
|
1798
1816
|
i = N(a);
|
|
1799
|
-
var ie = 0, ye,
|
|
1800
|
-
|
|
1817
|
+
var ie = 0, ye, $e = m.parentNode !== n, J = !ao(m.animated && m.toRect || o, a.animated && a.toRect || i, g), Ne = g ? "top" : "left", ce = xn(a, "top", "top") || xn(m, "top", "top"), Pe = ce ? ce.scrollTop : void 0;
|
|
1818
|
+
Se !== a && (ye = i[Ne], Ve = !1, Qe = !J && r.invertSwap || $e), ie = po(t, a, i, g, J ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, Qe, Se === a);
|
|
1801
1819
|
var le;
|
|
1802
1820
|
if (ie !== 0) {
|
|
1803
|
-
var
|
|
1821
|
+
var be = L(m);
|
|
1804
1822
|
do
|
|
1805
|
-
|
|
1806
|
-
while (le && (
|
|
1823
|
+
be -= ie, le = M.children[be];
|
|
1824
|
+
while (le && (b(le, "display") === "none" || le === k));
|
|
1807
1825
|
}
|
|
1808
1826
|
if (ie === 0 || le === a)
|
|
1809
1827
|
return z(!1);
|
|
1810
|
-
|
|
1811
|
-
var
|
|
1828
|
+
Se = a, Ge = ie;
|
|
1829
|
+
var Ae = a.nextElementSibling, pe = !1;
|
|
1812
1830
|
pe = ie === 1;
|
|
1813
|
-
var
|
|
1814
|
-
if (
|
|
1815
|
-
return (
|
|
1831
|
+
var Xe = tt(P, n, m, o, a, i, t, pe);
|
|
1832
|
+
if (Xe !== !1)
|
|
1833
|
+
return (Xe === 1 || Xe === -1) && (pe = Xe === 1), sn = !0, setTimeout(lo, 30), R(), pe && !Ae ? n.appendChild(m) : a.parentNode.insertBefore(m, pe ? Ae : a), ce && Wn(ce, 0, Pe - ce.scrollTop), M = m.parentNode, ye !== void 0 && !Qe && (lt = Math.abs(ye - N(a)[Ne])), q(), z(!0);
|
|
1816
1834
|
}
|
|
1817
1835
|
if (n.contains(m))
|
|
1818
1836
|
return z(!1);
|
|
@@ -1821,70 +1839,70 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1821
1839
|
},
|
|
1822
1840
|
_ignoreWhileAnimating: null,
|
|
1823
1841
|
_offMoveEvents: function() {
|
|
1824
|
-
|
|
1842
|
+
x(document, "mousemove", this._onTouchMove), x(document, "touchmove", this._onTouchMove), x(document, "pointermove", this._onTouchMove), x(document, "dragover", ve), x(document, "mousemove", ve), x(document, "touchmove", ve);
|
|
1825
1843
|
},
|
|
1826
1844
|
_offUpEvents: function() {
|
|
1827
1845
|
var t = this.el.ownerDocument;
|
|
1828
|
-
|
|
1846
|
+
x(t, "mouseup", this._onDrop), x(t, "touchend", this._onDrop), x(t, "pointerup", this._onDrop), x(t, "touchcancel", this._onDrop), x(document, "selectstart", this);
|
|
1829
1847
|
},
|
|
1830
1848
|
_onDrop: function(t) {
|
|
1831
1849
|
var n = this.el, a = this.options;
|
|
1832
|
-
if (X =
|
|
1850
|
+
if (X = L(m), ue = L(m, a.draggable), G("drop", this, {
|
|
1833
1851
|
evt: t
|
|
1834
|
-
}),
|
|
1852
|
+
}), M = m && m.parentNode, X = L(m), ue = L(m, a.draggable), _.eventCanceled) {
|
|
1835
1853
|
this._nulling();
|
|
1836
1854
|
return;
|
|
1837
1855
|
}
|
|
1838
|
-
|
|
1856
|
+
De = !1, Qe = !1, Ve = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ln(this.cloneId), ln(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), We && b(document.body, "user-select", ""), b(m, "transform", ""), t && (je && (t.cancelable && t.preventDefault(), !a.dropBubble && t.stopPropagation()), k && k.parentNode && k.parentNode.removeChild(k), (P === M || B && B.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), m && (this.nativeDraggable && x(m, "dragend", this), Ht(m), m.style["will-change"] = "", je && !De && F(m, B ? B.options.ghostClass : this.options.ghostClass, !1), F(m, this.options.chosenClass, !1), Z({
|
|
1839
1857
|
sortable: this,
|
|
1840
1858
|
name: "unchoose",
|
|
1841
|
-
toEl:
|
|
1859
|
+
toEl: M,
|
|
1842
1860
|
newIndex: null,
|
|
1843
1861
|
newDraggableIndex: null,
|
|
1844
1862
|
originalEvent: t
|
|
1845
|
-
}), P !==
|
|
1846
|
-
rootEl:
|
|
1863
|
+
}), P !== M ? (X >= 0 && (Z({
|
|
1864
|
+
rootEl: M,
|
|
1847
1865
|
name: "add",
|
|
1848
|
-
toEl:
|
|
1866
|
+
toEl: M,
|
|
1849
1867
|
fromEl: P,
|
|
1850
1868
|
originalEvent: t
|
|
1851
1869
|
}), Z({
|
|
1852
1870
|
sortable: this,
|
|
1853
1871
|
name: "remove",
|
|
1854
|
-
toEl:
|
|
1872
|
+
toEl: M,
|
|
1855
1873
|
originalEvent: t
|
|
1856
1874
|
}), Z({
|
|
1857
|
-
rootEl:
|
|
1875
|
+
rootEl: M,
|
|
1858
1876
|
name: "sort",
|
|
1859
|
-
toEl:
|
|
1877
|
+
toEl: M,
|
|
1860
1878
|
fromEl: P,
|
|
1861
1879
|
originalEvent: t
|
|
1862
1880
|
}), Z({
|
|
1863
1881
|
sortable: this,
|
|
1864
1882
|
name: "sort",
|
|
1865
|
-
toEl:
|
|
1883
|
+
toEl: M,
|
|
1866
1884
|
originalEvent: t
|
|
1867
|
-
})),
|
|
1885
|
+
})), B && B.save()) : X !== He && X >= 0 && (Z({
|
|
1868
1886
|
sortable: this,
|
|
1869
1887
|
name: "update",
|
|
1870
|
-
toEl:
|
|
1888
|
+
toEl: M,
|
|
1871
1889
|
originalEvent: t
|
|
1872
1890
|
}), Z({
|
|
1873
1891
|
sortable: this,
|
|
1874
1892
|
name: "sort",
|
|
1875
|
-
toEl:
|
|
1893
|
+
toEl: M,
|
|
1876
1894
|
originalEvent: t
|
|
1877
|
-
})),
|
|
1895
|
+
})), _.active && ((X == null || X === -1) && (X = He, ue = qe), Z({
|
|
1878
1896
|
sortable: this,
|
|
1879
1897
|
name: "end",
|
|
1880
|
-
toEl:
|
|
1898
|
+
toEl: M,
|
|
1881
1899
|
originalEvent: t
|
|
1882
1900
|
}), this.save()))), this._nulling();
|
|
1883
1901
|
},
|
|
1884
1902
|
_nulling: function() {
|
|
1885
|
-
G("nulling", this), P = m =
|
|
1903
|
+
G("nulling", this), P = m = M = k = _e = A = st = he = ge = te = je = X = ue = He = qe = Se = Ge = B = Ke = _.dragged = _.ghost = _.clone = _.active = null, ut.forEach(function(t) {
|
|
1886
1904
|
t.checked = !0;
|
|
1887
|
-
}),
|
|
1905
|
+
}), ut.length = St = Ot = 0;
|
|
1888
1906
|
},
|
|
1889
1907
|
handleEvent: function(t) {
|
|
1890
1908
|
switch (t.type) {
|
|
@@ -1894,7 +1912,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1894
1912
|
break;
|
|
1895
1913
|
case "dragenter":
|
|
1896
1914
|
case "dragover":
|
|
1897
|
-
m && (this._onDragOver(t),
|
|
1915
|
+
m && (this._onDragOver(t), so(t));
|
|
1898
1916
|
break;
|
|
1899
1917
|
case "selectstart":
|
|
1900
1918
|
t.preventDefault();
|
|
@@ -1907,7 +1925,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1907
1925
|
*/
|
|
1908
1926
|
toArray: function() {
|
|
1909
1927
|
for (var t = [], n, a = this.el.children, o = 0, i = a.length, l = this.options; o < i; o++)
|
|
1910
|
-
n = a[o], Q(n, l.draggable, this.el, !1) && t.push(n.getAttribute(l.dataIdAttr) ||
|
|
1928
|
+
n = a[o], Q(n, l.draggable, this.el, !1) && t.push(n.getAttribute(l.dataIdAttr) || uo(n));
|
|
1911
1929
|
return t;
|
|
1912
1930
|
},
|
|
1913
1931
|
/**
|
|
@@ -1949,8 +1967,8 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1949
1967
|
var a = this.options;
|
|
1950
1968
|
if (n === void 0)
|
|
1951
1969
|
return a[t];
|
|
1952
|
-
var o =
|
|
1953
|
-
typeof o < "u" ? a[t] = o : a[t] = n, t === "group" &&
|
|
1970
|
+
var o = Ye.modifyOption(this, t, n);
|
|
1971
|
+
typeof o < "u" ? a[t] = o : a[t] = n, t === "group" && Vn(a);
|
|
1954
1972
|
},
|
|
1955
1973
|
/**
|
|
1956
1974
|
* Destroy
|
|
@@ -1958,15 +1976,15 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1958
1976
|
destroy: function() {
|
|
1959
1977
|
G("destroy", this);
|
|
1960
1978
|
var t = this.el;
|
|
1961
|
-
t[W] = null,
|
|
1979
|
+
t[W] = null, x(t, "mousedown", this._onTapStart), x(t, "touchstart", this._onTapStart), x(t, "pointerdown", this._onTapStart), this.nativeDraggable && (x(t, "dragover", this), x(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
1962
1980
|
n.removeAttribute("draggable");
|
|
1963
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1981
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ft.splice(ft.indexOf(this.el), 1), this.el = t = null;
|
|
1964
1982
|
},
|
|
1965
1983
|
_hideClone: function() {
|
|
1966
1984
|
if (!he) {
|
|
1967
|
-
if (G("hideClone", this),
|
|
1985
|
+
if (G("hideClone", this), _.eventCanceled)
|
|
1968
1986
|
return;
|
|
1969
|
-
|
|
1987
|
+
b(A, "display", "none"), this.options.removeCloneOnHide && A.parentNode && A.parentNode.removeChild(A), he = !0;
|
|
1970
1988
|
}
|
|
1971
1989
|
},
|
|
1972
1990
|
_showClone: function(t) {
|
|
@@ -1975,110 +1993,110 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1975
1993
|
return;
|
|
1976
1994
|
}
|
|
1977
1995
|
if (he) {
|
|
1978
|
-
if (G("showClone", this),
|
|
1996
|
+
if (G("showClone", this), _.eventCanceled)
|
|
1979
1997
|
return;
|
|
1980
|
-
m.parentNode == P && !this.options.group.revertClone ? P.insertBefore(A, m) : _e ? P.insertBefore(A, _e) : P.appendChild(A), this.options.group.revertClone && this.animate(m, A),
|
|
1998
|
+
m.parentNode == P && !this.options.group.revertClone ? P.insertBefore(A, m) : _e ? P.insertBefore(A, _e) : P.appendChild(A), this.options.group.revertClone && this.animate(m, A), b(A, "display", ""), he = !1;
|
|
1981
1999
|
}
|
|
1982
2000
|
}
|
|
1983
2001
|
};
|
|
1984
|
-
function
|
|
2002
|
+
function so(e) {
|
|
1985
2003
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1986
2004
|
}
|
|
1987
|
-
function
|
|
2005
|
+
function tt(e, t, n, a, o, i, l, r) {
|
|
1988
2006
|
var c, p = e[W], u = p.options.onMove, f;
|
|
1989
2007
|
return window.CustomEvent && !de && !Je ? c = new CustomEvent("move", {
|
|
1990
2008
|
bubbles: !0,
|
|
1991
2009
|
cancelable: !0
|
|
1992
2010
|
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = a, c.related = o || t, c.relatedRect = i || N(t), c.willInsertAfter = r, c.originalEvent = l, e.dispatchEvent(c), u && (f = u.call(p, c, l)), f;
|
|
1993
2011
|
}
|
|
1994
|
-
function
|
|
2012
|
+
function Ht(e) {
|
|
1995
2013
|
e.draggable = !1;
|
|
1996
2014
|
}
|
|
1997
|
-
function
|
|
1998
|
-
|
|
2015
|
+
function lo() {
|
|
2016
|
+
sn = !1;
|
|
1999
2017
|
}
|
|
2000
|
-
function
|
|
2001
|
-
var a = N(
|
|
2018
|
+
function ro(e, t, n) {
|
|
2019
|
+
var a = N(Ie(n.el, 0, n.options, !0)), o = Zn(n.el, n.options, k), i = 10;
|
|
2002
2020
|
return t ? 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;
|
|
2003
2021
|
}
|
|
2004
|
-
function
|
|
2005
|
-
var a = N(
|
|
2022
|
+
function co(e, t, n) {
|
|
2023
|
+
var a = N(pn(n.el, n.options.draggable)), o = Zn(n.el, n.options, k), i = 10;
|
|
2006
2024
|
return t ? 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;
|
|
2007
2025
|
}
|
|
2008
|
-
function
|
|
2026
|
+
function po(e, t, n, a, o, i, l, r) {
|
|
2009
2027
|
var c = a ? e.clientY : e.clientX, p = a ? n.height : n.width, u = a ? n.top : n.left, f = a ? n.bottom : n.right, h = !1;
|
|
2010
2028
|
if (!l) {
|
|
2011
|
-
if (r &&
|
|
2012
|
-
if (!
|
|
2029
|
+
if (r && lt < p * o) {
|
|
2030
|
+
if (!Ve && (Ge === 1 ? c > u + p * i / 2 : c < f - p * i / 2) && (Ve = !0), Ve)
|
|
2013
2031
|
h = !0;
|
|
2014
|
-
else if (
|
|
2015
|
-
return -
|
|
2032
|
+
else if (Ge === 1 ? c < u + lt : c > f - lt)
|
|
2033
|
+
return -Ge;
|
|
2016
2034
|
} else if (c > u + p * (1 - o) / 2 && c < f - p * (1 - o) / 2)
|
|
2017
|
-
return
|
|
2035
|
+
return fo(t);
|
|
2018
2036
|
}
|
|
2019
2037
|
return h = h || l, h && (c < u + p * i / 2 || c > f - p * i / 2) ? c > u + p / 2 ? 1 : -1 : 0;
|
|
2020
2038
|
}
|
|
2021
|
-
function
|
|
2022
|
-
return
|
|
2039
|
+
function fo(e) {
|
|
2040
|
+
return L(m) < L(e) ? 1 : -1;
|
|
2023
2041
|
}
|
|
2024
|
-
function
|
|
2042
|
+
function uo(e) {
|
|
2025
2043
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, a = 0; n--; )
|
|
2026
2044
|
a += t.charCodeAt(n);
|
|
2027
2045
|
return a.toString(36);
|
|
2028
2046
|
}
|
|
2029
|
-
function
|
|
2030
|
-
|
|
2047
|
+
function ho(e) {
|
|
2048
|
+
ut.length = 0;
|
|
2031
2049
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
2032
2050
|
var a = t[n];
|
|
2033
|
-
a.checked &&
|
|
2051
|
+
a.checked && ut.push(a);
|
|
2034
2052
|
}
|
|
2035
2053
|
}
|
|
2036
|
-
function
|
|
2054
|
+
function rt(e) {
|
|
2037
2055
|
return setTimeout(e, 0);
|
|
2038
2056
|
}
|
|
2039
|
-
function
|
|
2057
|
+
function ln(e) {
|
|
2040
2058
|
return clearTimeout(e);
|
|
2041
2059
|
}
|
|
2042
|
-
|
|
2043
|
-
(
|
|
2060
|
+
mt && E(document, "touchmove", function(e) {
|
|
2061
|
+
(_.active || De) && e.cancelable && e.preventDefault();
|
|
2044
2062
|
});
|
|
2045
|
-
|
|
2063
|
+
_.utils = {
|
|
2046
2064
|
on: E,
|
|
2047
|
-
off:
|
|
2048
|
-
css:
|
|
2049
|
-
find:
|
|
2065
|
+
off: x,
|
|
2066
|
+
css: b,
|
|
2067
|
+
find: Bn,
|
|
2050
2068
|
is: function(t, n) {
|
|
2051
2069
|
return !!Q(t, n, t, !1);
|
|
2052
2070
|
},
|
|
2053
|
-
extend:
|
|
2054
|
-
throttle:
|
|
2071
|
+
extend: Yi,
|
|
2072
|
+
throttle: Un,
|
|
2055
2073
|
closest: Q,
|
|
2056
2074
|
toggleClass: F,
|
|
2057
|
-
clone:
|
|
2058
|
-
index:
|
|
2059
|
-
nextTick:
|
|
2060
|
-
cancelNextTick:
|
|
2061
|
-
detectDirection:
|
|
2062
|
-
getChild:
|
|
2075
|
+
clone: fn,
|
|
2076
|
+
index: L,
|
|
2077
|
+
nextTick: rt,
|
|
2078
|
+
cancelNextTick: ln,
|
|
2079
|
+
detectDirection: Gn,
|
|
2080
|
+
getChild: Ie
|
|
2063
2081
|
};
|
|
2064
|
-
|
|
2082
|
+
_.get = function(e) {
|
|
2065
2083
|
return e[W];
|
|
2066
2084
|
};
|
|
2067
|
-
|
|
2085
|
+
_.mount = function() {
|
|
2068
2086
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
2069
2087
|
t[n] = arguments[n];
|
|
2070
2088
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(a) {
|
|
2071
2089
|
if (!a.prototype || !a.prototype.constructor)
|
|
2072
2090
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));
|
|
2073
|
-
a.utils && (
|
|
2091
|
+
a.utils && (_.utils = se(se({}, _.utils), a.utils)), Ye.mount(a);
|
|
2074
2092
|
});
|
|
2075
2093
|
};
|
|
2076
|
-
|
|
2077
|
-
return new
|
|
2094
|
+
_.create = function(e, t) {
|
|
2095
|
+
return new _(e, t);
|
|
2078
2096
|
};
|
|
2079
|
-
|
|
2080
|
-
var j = [],
|
|
2081
|
-
function
|
|
2097
|
+
_.version = Gi;
|
|
2098
|
+
var j = [], Be, rn, dn = !1, It, Tt, ht, Ue;
|
|
2099
|
+
function mo() {
|
|
2082
2100
|
function e() {
|
|
2083
2101
|
this.defaults = {
|
|
2084
2102
|
scroll: !0,
|
|
@@ -2100,29 +2118,29 @@ function oo() {
|
|
|
2100
2118
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
2101
2119
|
},
|
|
2102
2120
|
drop: function() {
|
|
2103
|
-
this.sortable.nativeDraggable ?
|
|
2121
|
+
this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), In(), dt(), Xi();
|
|
2104
2122
|
},
|
|
2105
2123
|
nulling: function() {
|
|
2106
|
-
|
|
2124
|
+
ht = rn = Be = dn = Ue = It = Tt = null, j.length = 0;
|
|
2107
2125
|
},
|
|
2108
2126
|
_handleFallbackAutoScroll: function(n) {
|
|
2109
2127
|
this._handleAutoScroll(n, !0);
|
|
2110
2128
|
},
|
|
2111
2129
|
_handleAutoScroll: function(n, a) {
|
|
2112
2130
|
var o = this, i = (n.touches ? n.touches[0] : n).clientX, l = (n.touches ? n.touches[0] : n).clientY, r = document.elementFromPoint(i, l);
|
|
2113
|
-
if (
|
|
2114
|
-
|
|
2131
|
+
if (ht = n, a || this.options.forceAutoScrollFallback || Je || de || We) {
|
|
2132
|
+
$t(n, this.options, r, a);
|
|
2115
2133
|
var c = me(r, !0);
|
|
2116
|
-
|
|
2134
|
+
dn && (!Ue || i !== It || l !== Tt) && (Ue && In(), Ue = setInterval(function() {
|
|
2117
2135
|
var p = me(document.elementFromPoint(i, l), !0);
|
|
2118
|
-
p !== c && (c = p,
|
|
2119
|
-
}, 10),
|
|
2136
|
+
p !== c && (c = p, dt()), $t(n, o.options, p, a);
|
|
2137
|
+
}, 10), It = i, Tt = l);
|
|
2120
2138
|
} else {
|
|
2121
2139
|
if (!this.options.bubbleScroll || me(r, !0) === oe()) {
|
|
2122
|
-
|
|
2140
|
+
dt();
|
|
2123
2141
|
return;
|
|
2124
2142
|
}
|
|
2125
|
-
|
|
2143
|
+
$t(n, this.options, me(r, !1), !1);
|
|
2126
2144
|
}
|
|
2127
2145
|
}
|
|
2128
2146
|
}, ee(e, {
|
|
@@ -2130,37 +2148,37 @@ function oo() {
|
|
|
2130
2148
|
initializeByDefault: !0
|
|
2131
2149
|
});
|
|
2132
2150
|
}
|
|
2133
|
-
function
|
|
2151
|
+
function dt() {
|
|
2134
2152
|
j.forEach(function(e) {
|
|
2135
2153
|
clearInterval(e.pid);
|
|
2136
2154
|
}), j = [];
|
|
2137
2155
|
}
|
|
2138
|
-
function
|
|
2156
|
+
function In() {
|
|
2139
2157
|
clearInterval(Ue);
|
|
2140
2158
|
}
|
|
2141
|
-
var
|
|
2159
|
+
var $t = Un(function(e, t, n, a) {
|
|
2142
2160
|
if (t.scroll) {
|
|
2143
2161
|
var o = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, l = t.scrollSensitivity, r = t.scrollSpeed, c = oe(), p = !1, u;
|
|
2144
|
-
|
|
2145
|
-
var f = 0, h =
|
|
2162
|
+
rn !== n && (rn = n, dt(), Be = t.scroll, u = t.scrollFn, Be === !0 && (Be = me(n, !0)));
|
|
2163
|
+
var f = 0, h = Be;
|
|
2146
2164
|
do {
|
|
2147
|
-
var
|
|
2148
|
-
|
|
2149
|
-
var
|
|
2165
|
+
var g = h, y = N(g), C = y.top, T = y.bottom, R = y.left, z = y.right, q = y.width, O = y.height, ae = void 0, ie = void 0, ye = g.scrollWidth, $e = g.scrollHeight, J = b(g), Ne = g.scrollLeft, ce = g.scrollTop;
|
|
2166
|
+
g === c ? (ae = q < ye && (J.overflowX === "auto" || J.overflowX === "scroll" || J.overflowX === "visible"), ie = O < $e && (J.overflowY === "auto" || J.overflowY === "scroll" || J.overflowY === "visible")) : (ae = q < ye && (J.overflowX === "auto" || J.overflowX === "scroll"), ie = O < $e && (J.overflowY === "auto" || J.overflowY === "scroll"));
|
|
2167
|
+
var Pe = ae && (Math.abs(z - o) <= l && Ne + q < ye) - (Math.abs(R - o) <= l && !!Ne), le = ie && (Math.abs(T - i) <= l && ce + O < $e) - (Math.abs(C - i) <= l && !!ce);
|
|
2150
2168
|
if (!j[f])
|
|
2151
|
-
for (var
|
|
2152
|
-
j[
|
|
2153
|
-
(j[f].vx !=
|
|
2154
|
-
a && this.layer === 0 &&
|
|
2155
|
-
var
|
|
2156
|
-
typeof u == "function" && u.call(
|
|
2169
|
+
for (var be = 0; be <= f; be++)
|
|
2170
|
+
j[be] || (j[be] = {});
|
|
2171
|
+
(j[f].vx != Pe || j[f].vy != le || j[f].el !== g) && (j[f].el = g, j[f].vx = Pe, j[f].vy = le, clearInterval(j[f].pid), (Pe != 0 || le != 0) && (p = !0, j[f].pid = setInterval((function() {
|
|
2172
|
+
a && this.layer === 0 && _.active._onTouchMove(ht);
|
|
2173
|
+
var Ae = j[this.layer].vy ? j[this.layer].vy * r : 0, pe = j[this.layer].vx ? j[this.layer].vx * r : 0;
|
|
2174
|
+
typeof u == "function" && u.call(_.dragged.parentNode[W], pe, Ae, e, ht, j[this.layer].el) !== "continue" || Wn(j[this.layer].el, pe, Ae);
|
|
2157
2175
|
}).bind({
|
|
2158
2176
|
layer: f
|
|
2159
2177
|
}), 24))), f++;
|
|
2160
2178
|
} while (t.bubbleScroll && h !== c && (h = me(h, !1)));
|
|
2161
|
-
|
|
2179
|
+
dn = p;
|
|
2162
2180
|
}
|
|
2163
|
-
}, 30),
|
|
2181
|
+
}, 30), Xn = function(t) {
|
|
2164
2182
|
var n = t.originalEvent, a = t.putSortable, o = t.dragEl, i = t.activeSortable, l = t.dispatchSortableEvent, r = t.hideGhostForTarget, c = t.unhideGhostForTarget;
|
|
2165
2183
|
if (n) {
|
|
2166
2184
|
var p = a || i;
|
|
@@ -2172,9 +2190,9 @@ var It = jn(function(e, t, n, a) {
|
|
|
2172
2190
|
}));
|
|
2173
2191
|
}
|
|
2174
2192
|
};
|
|
2175
|
-
function
|
|
2193
|
+
function un() {
|
|
2176
2194
|
}
|
|
2177
|
-
|
|
2195
|
+
un.prototype = {
|
|
2178
2196
|
startIndex: null,
|
|
2179
2197
|
dragStart: function(t) {
|
|
2180
2198
|
var n = t.oldDraggableIndex;
|
|
@@ -2183,28 +2201,28 @@ pn.prototype = {
|
|
|
2183
2201
|
onSpill: function(t) {
|
|
2184
2202
|
var n = t.dragEl, a = t.putSortable;
|
|
2185
2203
|
this.sortable.captureAnimationState(), a && a.captureAnimationState();
|
|
2186
|
-
var o =
|
|
2204
|
+
var o = Ie(this.sortable.el, this.startIndex, this.options);
|
|
2187
2205
|
o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), a && a.animateAll();
|
|
2188
2206
|
},
|
|
2189
|
-
drop:
|
|
2207
|
+
drop: Xn
|
|
2190
2208
|
};
|
|
2191
|
-
ee(
|
|
2209
|
+
ee(un, {
|
|
2192
2210
|
pluginName: "revertOnSpill"
|
|
2193
2211
|
});
|
|
2194
|
-
function
|
|
2212
|
+
function hn() {
|
|
2195
2213
|
}
|
|
2196
|
-
|
|
2214
|
+
hn.prototype = {
|
|
2197
2215
|
onSpill: function(t) {
|
|
2198
2216
|
var n = t.dragEl, a = t.putSortable, o = a || this.sortable;
|
|
2199
2217
|
o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
|
|
2200
2218
|
},
|
|
2201
|
-
drop:
|
|
2219
|
+
drop: Xn
|
|
2202
2220
|
};
|
|
2203
|
-
ee(
|
|
2221
|
+
ee(hn, {
|
|
2204
2222
|
pluginName: "removeOnSpill"
|
|
2205
2223
|
});
|
|
2206
2224
|
var K;
|
|
2207
|
-
function
|
|
2225
|
+
function yo() {
|
|
2208
2226
|
function e() {
|
|
2209
2227
|
this.defaults = {
|
|
2210
2228
|
swapClass: "sortable-swap-highlight"
|
|
@@ -2228,7 +2246,7 @@ function so() {
|
|
|
2228
2246
|
},
|
|
2229
2247
|
drop: function(n) {
|
|
2230
2248
|
var a = n.activeSortable, o = n.putSortable, i = n.dragEl, l = o || this.sortable, r = this.options;
|
|
2231
|
-
K && F(K, r.swapClass, !1), K && (r.swap || o && o.options.swap) && i !== K && (l.captureAnimationState(), l !== a && a.captureAnimationState(),
|
|
2249
|
+
K && F(K, r.swapClass, !1), K && (r.swap || o && o.options.swap) && i !== K && (l.captureAnimationState(), l !== a && a.captureAnimationState(), bo(i, K), l.animateAll(), l !== a && a.animateAll());
|
|
2232
2250
|
},
|
|
2233
2251
|
nulling: function() {
|
|
2234
2252
|
K = null;
|
|
@@ -2242,12 +2260,12 @@ function so() {
|
|
|
2242
2260
|
}
|
|
2243
2261
|
});
|
|
2244
2262
|
}
|
|
2245
|
-
function
|
|
2263
|
+
function bo(e, t) {
|
|
2246
2264
|
var n = e.parentNode, a = t.parentNode, o, i;
|
|
2247
|
-
!n || !a || n.isEqualNode(t) || a.isEqualNode(e) || (o =
|
|
2265
|
+
!n || !a || n.isEqualNode(t) || a.isEqualNode(e) || (o = L(e), i = L(t), n.isEqualNode(a) && o < i && i++, n.insertBefore(t, n.children[o]), a.insertBefore(e, a.children[i]));
|
|
2248
2266
|
}
|
|
2249
|
-
var w = [], Y = [],
|
|
2250
|
-
function
|
|
2267
|
+
var w = [], Y = [], Me, ne, Le = !1, V = !1, Oe = !1, $, Re, nt;
|
|
2268
|
+
function go() {
|
|
2251
2269
|
function e(t) {
|
|
2252
2270
|
for (var n in this)
|
|
2253
2271
|
n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
|
|
@@ -2277,82 +2295,82 @@ function ro() {
|
|
|
2277
2295
|
var a = n.sortable, o = n.cancel;
|
|
2278
2296
|
if (this.isMultiDrag) {
|
|
2279
2297
|
for (var i = 0; i < w.length; i++)
|
|
2280
|
-
Y.push(
|
|
2298
|
+
Y.push(fn(w[i])), Y[i].sortableIndex = w[i].sortableIndex, Y[i].draggable = !1, Y[i].style["will-change"] = "", F(Y[i], this.options.selectedClass, !1), w[i] === $ && F(Y[i], this.options.chosenClass, !1);
|
|
2281
2299
|
a._hideClone(), o();
|
|
2282
2300
|
}
|
|
2283
2301
|
},
|
|
2284
2302
|
clone: function(n) {
|
|
2285
2303
|
var a = n.sortable, o = n.rootEl, i = n.dispatchSortableEvent, l = n.cancel;
|
|
2286
|
-
this.isMultiDrag && (this.options.removeCloneOnHide || w.length && ne === a && (
|
|
2304
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || w.length && ne === a && (Tn(!0, o), i("clone"), l()));
|
|
2287
2305
|
},
|
|
2288
2306
|
showClone: function(n) {
|
|
2289
2307
|
var a = n.cloneNowShown, o = n.rootEl, i = n.cancel;
|
|
2290
|
-
this.isMultiDrag && (
|
|
2291
|
-
|
|
2292
|
-
}), a(),
|
|
2308
|
+
this.isMultiDrag && (Tn(!1, o), Y.forEach(function(l) {
|
|
2309
|
+
b(l, "display", "");
|
|
2310
|
+
}), a(), nt = !1, i());
|
|
2293
2311
|
},
|
|
2294
2312
|
hideClone: function(n) {
|
|
2295
2313
|
var a = this, o = n.cloneNowHidden, i = n.cancel;
|
|
2296
2314
|
this.isMultiDrag && (Y.forEach(function(l) {
|
|
2297
|
-
|
|
2298
|
-
}), o(),
|
|
2315
|
+
b(l, "display", "none"), a.options.removeCloneOnHide && l.parentNode && l.parentNode.removeChild(l);
|
|
2316
|
+
}), o(), nt = !0, i());
|
|
2299
2317
|
},
|
|
2300
2318
|
dragStartGlobal: function(n) {
|
|
2301
2319
|
!this.isMultiDrag && ne && ne.multiDrag._deselectMultiDrag(), w.forEach(function(a) {
|
|
2302
|
-
a.sortableIndex =
|
|
2320
|
+
a.sortableIndex = L(a);
|
|
2303
2321
|
}), w = w.sort(function(a, o) {
|
|
2304
2322
|
return a.sortableIndex - o.sortableIndex;
|
|
2305
|
-
}),
|
|
2323
|
+
}), Oe = !0;
|
|
2306
2324
|
},
|
|
2307
2325
|
dragStarted: function(n) {
|
|
2308
2326
|
var a = this, o = n.sortable;
|
|
2309
2327
|
if (this.isMultiDrag) {
|
|
2310
2328
|
if (this.options.sort && (o.captureAnimationState(), this.options.animation)) {
|
|
2311
2329
|
w.forEach(function(l) {
|
|
2312
|
-
l !== $ &&
|
|
2330
|
+
l !== $ && b(l, "position", "absolute");
|
|
2313
2331
|
});
|
|
2314
2332
|
var i = N($, !1, !0, !0);
|
|
2315
2333
|
w.forEach(function(l) {
|
|
2316
|
-
l !== $ &&
|
|
2317
|
-
}),
|
|
2334
|
+
l !== $ && Sn(l, i);
|
|
2335
|
+
}), V = !0, Le = !0;
|
|
2318
2336
|
}
|
|
2319
2337
|
o.animateAll(function() {
|
|
2320
|
-
|
|
2338
|
+
V = !1, Le = !1, a.options.animation && w.forEach(function(l) {
|
|
2321
2339
|
xt(l);
|
|
2322
|
-
}), a.options.sort &&
|
|
2340
|
+
}), a.options.sort && at();
|
|
2323
2341
|
});
|
|
2324
2342
|
}
|
|
2325
2343
|
},
|
|
2326
2344
|
dragOver: function(n) {
|
|
2327
2345
|
var a = n.target, o = n.completed, i = n.cancel;
|
|
2328
|
-
|
|
2346
|
+
V && ~w.indexOf(a) && (o(!1), i());
|
|
2329
2347
|
},
|
|
2330
2348
|
revert: function(n) {
|
|
2331
2349
|
var a = n.fromSortable, o = n.rootEl, i = n.sortable, l = n.dragRect;
|
|
2332
2350
|
w.length > 1 && (w.forEach(function(r) {
|
|
2333
2351
|
i.addAnimationState({
|
|
2334
2352
|
target: r,
|
|
2335
|
-
rect:
|
|
2353
|
+
rect: V ? N(r) : l
|
|
2336
2354
|
}), xt(r), r.fromRect = l, a.removeAnimationState(r);
|
|
2337
|
-
}),
|
|
2355
|
+
}), V = !1, vo(!this.options.removeCloneOnHide, o));
|
|
2338
2356
|
},
|
|
2339
2357
|
dragOverCompleted: function(n) {
|
|
2340
2358
|
var a = n.sortable, o = n.isOwner, i = n.insertion, l = n.activeSortable, r = n.parentEl, c = n.putSortable, p = this.options;
|
|
2341
2359
|
if (i) {
|
|
2342
|
-
if (o && l._hideClone(), Le = !1, p.animation && w.length > 1 && (
|
|
2360
|
+
if (o && l._hideClone(), Le = !1, p.animation && w.length > 1 && (V || !o && !l.options.sort && !c)) {
|
|
2343
2361
|
var u = N($, !1, !0, !0);
|
|
2344
2362
|
w.forEach(function(h) {
|
|
2345
|
-
h !== $ && (
|
|
2346
|
-
}),
|
|
2363
|
+
h !== $ && (Sn(h, u), r.appendChild(h));
|
|
2364
|
+
}), V = !0;
|
|
2347
2365
|
}
|
|
2348
2366
|
if (!o)
|
|
2349
|
-
if (
|
|
2350
|
-
var f =
|
|
2351
|
-
l._showClone(a), l.options.animation && !
|
|
2367
|
+
if (V || at(), w.length > 1) {
|
|
2368
|
+
var f = nt;
|
|
2369
|
+
l._showClone(a), l.options.animation && !nt && f && Y.forEach(function(h) {
|
|
2352
2370
|
l.addAnimationState({
|
|
2353
2371
|
target: h,
|
|
2354
|
-
rect:
|
|
2355
|
-
}), h.fromRect =
|
|
2372
|
+
rect: Re
|
|
2373
|
+
}), h.fromRect = Re, h.thisAnimationDuration = null;
|
|
2356
2374
|
});
|
|
2357
2375
|
} else
|
|
2358
2376
|
l._showClone(a);
|
|
@@ -2363,21 +2381,21 @@ function ro() {
|
|
|
2363
2381
|
if (w.forEach(function(r) {
|
|
2364
2382
|
r.thisAnimationDuration = null;
|
|
2365
2383
|
}), i.options.animation && !o && i.multiDrag.isMultiDrag) {
|
|
2366
|
-
|
|
2384
|
+
Re = ee({}, a);
|
|
2367
2385
|
var l = Ce($, !0);
|
|
2368
|
-
|
|
2386
|
+
Re.top -= l.f, Re.left -= l.e;
|
|
2369
2387
|
}
|
|
2370
2388
|
},
|
|
2371
2389
|
dragOverAnimationComplete: function() {
|
|
2372
|
-
|
|
2390
|
+
V && (V = !1, at());
|
|
2373
2391
|
},
|
|
2374
2392
|
drop: function(n) {
|
|
2375
2393
|
var a = n.originalEvent, o = n.rootEl, i = n.parentEl, l = n.sortable, r = n.dispatchSortableEvent, c = n.oldIndex, p = n.putSortable, u = p || this.sortable;
|
|
2376
2394
|
if (a) {
|
|
2377
2395
|
var f = this.options, h = i.children;
|
|
2378
|
-
if (!
|
|
2396
|
+
if (!Oe)
|
|
2379
2397
|
if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), F($, f.selectedClass, !~w.indexOf($)), ~w.indexOf($))
|
|
2380
|
-
w.splice(w.indexOf($), 1),
|
|
2398
|
+
w.splice(w.indexOf($), 1), Me = null, ze({
|
|
2381
2399
|
sortable: l,
|
|
2382
2400
|
rootEl: o,
|
|
2383
2401
|
name: "deselect",
|
|
@@ -2385,73 +2403,73 @@ function ro() {
|
|
|
2385
2403
|
originalEvent: a
|
|
2386
2404
|
});
|
|
2387
2405
|
else {
|
|
2388
|
-
if (w.push($),
|
|
2406
|
+
if (w.push($), ze({
|
|
2389
2407
|
sortable: l,
|
|
2390
2408
|
rootEl: o,
|
|
2391
2409
|
name: "select",
|
|
2392
2410
|
targetEl: $,
|
|
2393
2411
|
originalEvent: a
|
|
2394
|
-
}), a.shiftKey &&
|
|
2395
|
-
var
|
|
2396
|
-
if (~
|
|
2397
|
-
var C,
|
|
2398
|
-
for (y >
|
|
2399
|
-
~w.indexOf(h[
|
|
2412
|
+
}), a.shiftKey && Me && l.el.contains(Me)) {
|
|
2413
|
+
var g = L(Me), y = L($);
|
|
2414
|
+
if (~g && ~y && g !== y) {
|
|
2415
|
+
var C, T;
|
|
2416
|
+
for (y > g ? (T = g, C = y) : (T = y, C = g + 1); T < C; T++)
|
|
2417
|
+
~w.indexOf(h[T]) || (F(h[T], f.selectedClass, !0), w.push(h[T]), ze({
|
|
2400
2418
|
sortable: l,
|
|
2401
2419
|
rootEl: o,
|
|
2402
2420
|
name: "select",
|
|
2403
|
-
targetEl: h[
|
|
2421
|
+
targetEl: h[T],
|
|
2404
2422
|
originalEvent: a
|
|
2405
2423
|
}));
|
|
2406
2424
|
}
|
|
2407
2425
|
} else
|
|
2408
|
-
|
|
2426
|
+
Me = $;
|
|
2409
2427
|
ne = u;
|
|
2410
2428
|
}
|
|
2411
|
-
if (
|
|
2412
|
-
if (
|
|
2413
|
-
var R = N($), z =
|
|
2414
|
-
if (!Le && f.animation && ($.thisAnimationDuration = null), u.captureAnimationState(), !Le && (f.animation && ($.fromRect = R, w.forEach(function(
|
|
2415
|
-
if (
|
|
2416
|
-
var ae =
|
|
2417
|
-
|
|
2418
|
-
target:
|
|
2429
|
+
if (Oe && this.isMultiDrag) {
|
|
2430
|
+
if (V = !1, (i[W].options.sort || i !== o) && w.length > 1) {
|
|
2431
|
+
var R = N($), z = L($, ":not(." + this.options.selectedClass + ")");
|
|
2432
|
+
if (!Le && f.animation && ($.thisAnimationDuration = null), u.captureAnimationState(), !Le && (f.animation && ($.fromRect = R, w.forEach(function(O) {
|
|
2433
|
+
if (O.thisAnimationDuration = null, O !== $) {
|
|
2434
|
+
var ae = V ? N(O) : R;
|
|
2435
|
+
O.fromRect = ae, u.addAnimationState({
|
|
2436
|
+
target: O,
|
|
2419
2437
|
rect: ae
|
|
2420
2438
|
});
|
|
2421
2439
|
}
|
|
2422
|
-
})),
|
|
2423
|
-
h[z] ? i.insertBefore(
|
|
2424
|
-
}), c ===
|
|
2440
|
+
})), at(), w.forEach(function(O) {
|
|
2441
|
+
h[z] ? i.insertBefore(O, h[z]) : i.appendChild(O), z++;
|
|
2442
|
+
}), c === L($))) {
|
|
2425
2443
|
var q = !1;
|
|
2426
|
-
w.forEach(function(
|
|
2427
|
-
if (
|
|
2444
|
+
w.forEach(function(O) {
|
|
2445
|
+
if (O.sortableIndex !== L(O)) {
|
|
2428
2446
|
q = !0;
|
|
2429
2447
|
return;
|
|
2430
2448
|
}
|
|
2431
2449
|
}), q && (r("update"), r("sort"));
|
|
2432
2450
|
}
|
|
2433
|
-
w.forEach(function(
|
|
2434
|
-
xt(
|
|
2451
|
+
w.forEach(function(O) {
|
|
2452
|
+
xt(O);
|
|
2435
2453
|
}), u.animateAll();
|
|
2436
2454
|
}
|
|
2437
2455
|
ne = u;
|
|
2438
2456
|
}
|
|
2439
|
-
(o === i || p && p.lastPutMode !== "clone") && Y.forEach(function(
|
|
2440
|
-
|
|
2457
|
+
(o === i || p && p.lastPutMode !== "clone") && Y.forEach(function(O) {
|
|
2458
|
+
O.parentNode && O.parentNode.removeChild(O);
|
|
2441
2459
|
});
|
|
2442
2460
|
}
|
|
2443
2461
|
},
|
|
2444
2462
|
nullingGlobal: function() {
|
|
2445
|
-
this.isMultiDrag =
|
|
2463
|
+
this.isMultiDrag = Oe = !1, Y.length = 0;
|
|
2446
2464
|
},
|
|
2447
2465
|
destroyGlobal: function() {
|
|
2448
|
-
this._deselectMultiDrag(),
|
|
2466
|
+
this._deselectMultiDrag(), x(document, "pointerup", this._deselectMultiDrag), x(document, "mouseup", this._deselectMultiDrag), x(document, "touchend", this._deselectMultiDrag), x(document, "keydown", this._checkKeyDown), x(document, "keyup", this._checkKeyUp);
|
|
2449
2467
|
},
|
|
2450
2468
|
_deselectMultiDrag: function(n) {
|
|
2451
|
-
if (!(typeof
|
|
2469
|
+
if (!(typeof Oe < "u" && Oe) && ne === this.sortable && !(n && Q(n.target, this.options.draggable, this.sortable.el, !1)) && !(n && n.button !== 0))
|
|
2452
2470
|
for (; w.length; ) {
|
|
2453
2471
|
var a = w[0];
|
|
2454
|
-
F(a, this.options.selectedClass, !1), w.shift(),
|
|
2472
|
+
F(a, this.options.selectedClass, !1), w.shift(), ze({
|
|
2455
2473
|
sortable: this.sortable,
|
|
2456
2474
|
rootEl: this.sortable.el,
|
|
2457
2475
|
name: "deselect",
|
|
@@ -2495,12 +2513,12 @@ function ro() {
|
|
|
2495
2513
|
index: i.sortableIndex
|
|
2496
2514
|
});
|
|
2497
2515
|
var l;
|
|
2498
|
-
|
|
2516
|
+
V && i !== $ ? l = -1 : V ? l = L(i, ":not(." + n.options.selectedClass + ")") : l = L(i), o.push({
|
|
2499
2517
|
multiDragElement: i,
|
|
2500
2518
|
index: l
|
|
2501
2519
|
});
|
|
2502
2520
|
}), {
|
|
2503
|
-
items:
|
|
2521
|
+
items: Bi(w),
|
|
2504
2522
|
clones: [].concat(Y),
|
|
2505
2523
|
oldIndicies: a,
|
|
2506
2524
|
newIndicies: o
|
|
@@ -2513,29 +2531,29 @@ function ro() {
|
|
|
2513
2531
|
}
|
|
2514
2532
|
});
|
|
2515
2533
|
}
|
|
2516
|
-
function
|
|
2534
|
+
function vo(e, t) {
|
|
2517
2535
|
w.forEach(function(n, a) {
|
|
2518
2536
|
var o = t.children[n.sortableIndex + (e ? Number(a) : 0)];
|
|
2519
2537
|
o ? t.insertBefore(n, o) : t.appendChild(n);
|
|
2520
2538
|
});
|
|
2521
2539
|
}
|
|
2522
|
-
function
|
|
2540
|
+
function Tn(e, t) {
|
|
2523
2541
|
Y.forEach(function(n, a) {
|
|
2524
2542
|
var o = t.children[n.sortableIndex + (e ? Number(a) : 0)];
|
|
2525
2543
|
o ? t.insertBefore(n, o) : t.appendChild(n);
|
|
2526
2544
|
});
|
|
2527
2545
|
}
|
|
2528
|
-
function
|
|
2546
|
+
function at() {
|
|
2529
2547
|
w.forEach(function(e) {
|
|
2530
2548
|
e !== $ && e.parentNode && e.parentNode.removeChild(e);
|
|
2531
2549
|
});
|
|
2532
2550
|
}
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
const
|
|
2538
|
-
var
|
|
2551
|
+
_.mount(new mo());
|
|
2552
|
+
_.mount(hn, un);
|
|
2553
|
+
_.mount(new yo());
|
|
2554
|
+
_.mount(new go());
|
|
2555
|
+
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}.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}.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)}', Co = _o;
|
|
2556
|
+
var wo = function(e, t, n, a) {
|
|
2539
2557
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
2540
2558
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2541
2559
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -2543,13 +2561,13 @@ var uo = function(e, t, n, a) {
|
|
|
2543
2561
|
for (var r = e.length - 1; r >= 0; r--)
|
|
2544
2562
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
2545
2563
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2546
|
-
},
|
|
2564
|
+
}, Nt = function(e, t) {
|
|
2547
2565
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2548
2566
|
return Reflect.metadata(e, t);
|
|
2549
2567
|
};
|
|
2550
|
-
const
|
|
2568
|
+
const Kn = class {
|
|
2551
2569
|
constructor(e) {
|
|
2552
|
-
|
|
2570
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "booking-form-config", this.additonalFields = void 0, this.formFields = void 0;
|
|
2553
2571
|
}
|
|
2554
2572
|
elementNameChangedHandler(e) {
|
|
2555
2573
|
d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -2593,12 +2611,12 @@ const Yn = class {
|
|
|
2593
2611
|
this.formFields = [
|
|
2594
2612
|
...this.formFields,
|
|
2595
2613
|
...e.sort((i, l) => i.order - l.order).map((i, l) => {
|
|
2596
|
-
const { typeLabel: r } =
|
|
2614
|
+
const { typeLabel: r } = vn.find((c) => c.type === i.type);
|
|
2597
2615
|
return i.order = l + 2, { ...i, isOpen: !1, typeLabel: r };
|
|
2598
2616
|
})
|
|
2599
2617
|
];
|
|
2600
2618
|
const t = (o = this.host.shadowRoot) == null ? void 0 : o.getElementById("fields");
|
|
2601
|
-
|
|
2619
|
+
_.create(t, {
|
|
2602
2620
|
animation: 150,
|
|
2603
2621
|
swap: !0,
|
|
2604
2622
|
swapClass: "highlight",
|
|
@@ -2630,7 +2648,7 @@ const Yn = class {
|
|
|
2630
2648
|
nylasFormDropdownChangedHandler(e) {
|
|
2631
2649
|
const { name: t, value: n } = e.detail;
|
|
2632
2650
|
if (t === "add-field") {
|
|
2633
|
-
const a =
|
|
2651
|
+
const a = vn.find((r) => r.type === n), o = Math.max(...this.formFields.map((r) => r.order)), i = { ...a, order: o + 1 }, l = this.formFields.filter((r) => r.label.startsWith(a.label));
|
|
2634
2652
|
if (l && l.length > 0) {
|
|
2635
2653
|
const r = `${a.label} ${l.length + 1}`;
|
|
2636
2654
|
i.label = r;
|
|
@@ -2680,7 +2698,7 @@ const Yn = class {
|
|
|
2680
2698
|
this.formFields = this.formFields.map((a, o) => (o === e && (a.options || (a.options = []), a.options = a.options.map((i, l) => (l === t && (i = n.detail.value), i))), a));
|
|
2681
2699
|
}
|
|
2682
2700
|
render() {
|
|
2683
|
-
return s(D, { key: "8db177dc9df5c63aaae9e657b81a564d2df2d34e" }, s("div", { key: "3026f554b98ffdb0e14173a49bff44a85ad5cc17", class: "nylas-booking-form-config" }, s("div", { key: "4369640ba9d4411713d5066324fa6f59fb4040da", class: "header", part: "nbfc__header" }, s("div", { key: "1a4bfa5b5ef7532cb36be53bdc1f7d73db365c33", class: "header_text" }, s("h3", { key: "c689200151903cb8b410c78da9dafc6550d0c51e" }, "Booking form"), s("p", { key: "a53818d44fb4fce66b4a07d41f4fd1322efb4f5a" }, "Add custom fields to the booking form.")), s("div", { key: "8059ccdaad2ccabd0f33728cd4f93b1f3b8aebdd", class: "header_action" }, s("select-dropdown", { key: "7c11e6c8d82c9b7d585f85e2847d48c70d696e72", 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:
|
|
2701
|
+
return s(D, { key: "8db177dc9df5c63aaae9e657b81a564d2df2d34e" }, s("div", { key: "3026f554b98ffdb0e14173a49bff44a85ad5cc17", class: "nylas-booking-form-config" }, s("div", { key: "4369640ba9d4411713d5066324fa6f59fb4040da", class: "header", part: "nbfc__header" }, s("div", { key: "1a4bfa5b5ef7532cb36be53bdc1f7d73db365c33", class: "header_text" }, s("h3", { key: "c689200151903cb8b410c78da9dafc6550d0c51e" }, "Booking form"), s("p", { key: "a53818d44fb4fce66b4a07d41f4fd1322efb4f5a" }, "Add custom fields to the booking form.")), s("div", { key: "8059ccdaad2ccabd0f33728cd4f93b1f3b8aebdd", class: "header_action" }, s("select-dropdown", { key: "7c11e6c8d82c9b7d585f85e2847d48c70d696e72", 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: Da, withSearch: !1, withChevron: !1, dropdownButtonText: "Add new field" }, s("span", { key: "7e099ef91121f954377db3a4a0c517d58df3a1e8", slot: "select-icon" }, s("plus-icon", { key: "bbdd97931d1826cc4955e1bc695f984f8ee35a20", width: "15", height: "15" }))))), s("div", { key: "417adc5084d74399f9a77f2da83117fe7c0160a3", class: "content" }, s("div", { key: "598bbda9bf5b9d87a8e13fc336c3879b327c58e6", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, t) => s("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: t }, 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: () => {
|
|
2684
2702
|
this.fieldRemove(t);
|
|
2685
2703
|
} }, s("close-icon", null)), s("span", { class: `chevron ${e.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2686
2704
|
this.fieldToggle(t);
|
|
@@ -2705,19 +2723,19 @@ const Yn = class {
|
|
|
2705
2723
|
};
|
|
2706
2724
|
}
|
|
2707
2725
|
};
|
|
2708
|
-
|
|
2709
|
-
|
|
2726
|
+
wo([
|
|
2727
|
+
I({
|
|
2710
2728
|
name: "nylas-booking-form-config",
|
|
2711
2729
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
2712
2730
|
fireRegisterEvent: !0
|
|
2713
2731
|
}),
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
],
|
|
2718
|
-
|
|
2719
|
-
const
|
|
2720
|
-
var
|
|
2732
|
+
Nt("design:type", Function),
|
|
2733
|
+
Nt("design:paramtypes", []),
|
|
2734
|
+
Nt("design:returntype", void 0)
|
|
2735
|
+
], Kn.prototype, "render", null);
|
|
2736
|
+
Kn.style = Co;
|
|
2737
|
+
const ko = ':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}', xo = ko;
|
|
2738
|
+
var Eo = function(e, t, n, a) {
|
|
2721
2739
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
2722
2740
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2723
2741
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -2725,14 +2743,14 @@ var yo = function(e, t, n, a) {
|
|
|
2725
2743
|
for (var r = e.length - 1; r >= 0; r--)
|
|
2726
2744
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
2727
2745
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2728
|
-
},
|
|
2746
|
+
}, Pt = function(e, t) {
|
|
2729
2747
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2730
2748
|
return Reflect.metadata(e, t);
|
|
2731
2749
|
};
|
|
2732
|
-
const
|
|
2750
|
+
const Qn = class {
|
|
2733
2751
|
constructor(e) {
|
|
2734
2752
|
var t, n, a;
|
|
2735
|
-
|
|
2753
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "buffer-time", this.buffer = ((a = (n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : a.buffer) ?? { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after, this.componentLoaded = !1;
|
|
2736
2754
|
}
|
|
2737
2755
|
connectedCallback() {
|
|
2738
2756
|
d("nylas-buffer-time", "connectedCallback");
|
|
@@ -2839,8 +2857,8 @@ const Xn = class {
|
|
|
2839
2857
|
};
|
|
2840
2858
|
}
|
|
2841
2859
|
};
|
|
2842
|
-
|
|
2843
|
-
|
|
2860
|
+
Eo([
|
|
2861
|
+
I({
|
|
2844
2862
|
name: "nylas-buffer-time",
|
|
2845
2863
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
2846
2864
|
eventToProps: {
|
|
@@ -2851,13 +2869,13 @@ yo([
|
|
|
2851
2869
|
},
|
|
2852
2870
|
fireRegisterEvent: !0
|
|
2853
2871
|
}),
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
],
|
|
2858
|
-
|
|
2859
|
-
const
|
|
2860
|
-
var
|
|
2872
|
+
Pt("design:type", Function),
|
|
2873
|
+
Pt("design:paramtypes", []),
|
|
2874
|
+
Pt("design:returntype", void 0)
|
|
2875
|
+
], Qn.prototype, "render", null);
|
|
2876
|
+
Qn.style = xo;
|
|
2877
|
+
const So = ':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}', Oo = So;
|
|
2878
|
+
var Do = function(e, t, n, a) {
|
|
2861
2879
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
2862
2880
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2863
2881
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -2865,13 +2883,13 @@ var vo = function(e, t, n, a) {
|
|
|
2865
2883
|
for (var r = e.length - 1; r >= 0; r--)
|
|
2866
2884
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
2867
2885
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2868
|
-
},
|
|
2886
|
+
}, At = function(e, t) {
|
|
2869
2887
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2870
2888
|
return Reflect.metadata(e, t);
|
|
2871
2889
|
};
|
|
2872
|
-
const
|
|
2890
|
+
const ea = class {
|
|
2873
2891
|
constructor(e) {
|
|
2874
|
-
|
|
2892
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.name = "calendar", this.defaultSelectedCalendars = [], this.selectedCalendars = [], this.error = "";
|
|
2875
2893
|
}
|
|
2876
2894
|
elementNameChangedHandler(e) {
|
|
2877
2895
|
d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -2932,8 +2950,8 @@ const Kn = class {
|
|
|
2932
2950
|
};
|
|
2933
2951
|
}
|
|
2934
2952
|
};
|
|
2935
|
-
|
|
2936
|
-
|
|
2953
|
+
Do([
|
|
2954
|
+
I({
|
|
2937
2955
|
name: "nylas-calendar-picker",
|
|
2938
2956
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.currentUser", "currentUser"]]),
|
|
2939
2957
|
eventToProps: {
|
|
@@ -2944,13 +2962,13 @@ vo([
|
|
|
2944
2962
|
},
|
|
2945
2963
|
fireRegisterEvent: !0
|
|
2946
2964
|
}),
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
],
|
|
2951
|
-
|
|
2952
|
-
const
|
|
2953
|
-
var
|
|
2965
|
+
At("design:type", Function),
|
|
2966
|
+
At("design:paramtypes", []),
|
|
2967
|
+
At("design:returntype", void 0)
|
|
2968
|
+
], ea.prototype, "render", null);
|
|
2969
|
+
ea.style = Oo;
|
|
2970
|
+
const Ho = ':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}', Io = Ho;
|
|
2971
|
+
var To = function(e, t, n, a) {
|
|
2954
2972
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
2955
2973
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2956
2974
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -2958,13 +2976,13 @@ var wo = function(e, t, n, a) {
|
|
|
2958
2976
|
for (var r = e.length - 1; r >= 0; r--)
|
|
2959
2977
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
2960
2978
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2961
|
-
},
|
|
2979
|
+
}, Ft = function(e, t) {
|
|
2962
2980
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2963
2981
|
return Reflect.metadata(e, t);
|
|
2964
2982
|
};
|
|
2965
|
-
const
|
|
2983
|
+
const ta = class {
|
|
2966
2984
|
constructor(e) {
|
|
2967
|
-
|
|
2985
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.cancellationPolicy = void 0, this.name = "cancelation-policy", this.message = void 0;
|
|
2968
2986
|
}
|
|
2969
2987
|
elementNameChangedHandler(e) {
|
|
2970
2988
|
d("nylas-cancellation-policy", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3005,20 +3023,20 @@ const Qn = class {
|
|
|
3005
3023
|
};
|
|
3006
3024
|
}
|
|
3007
3025
|
};
|
|
3008
|
-
|
|
3009
|
-
|
|
3026
|
+
To([
|
|
3027
|
+
I({
|
|
3010
3028
|
name: "nylas-cancellation-policy",
|
|
3011
3029
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3012
3030
|
eventToProps: {},
|
|
3013
3031
|
fireRegisterEvent: !0
|
|
3014
3032
|
}),
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
],
|
|
3019
|
-
|
|
3020
|
-
const
|
|
3021
|
-
var
|
|
3033
|
+
Ft("design:type", Function),
|
|
3034
|
+
Ft("design:paramtypes", []),
|
|
3035
|
+
Ft("design:returntype", void 0)
|
|
3036
|
+
], ta.prototype, "render", null);
|
|
3037
|
+
ta.style = Io;
|
|
3038
|
+
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}.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}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}', No = $o;
|
|
3039
|
+
var Po = function(e, t, n, a) {
|
|
3022
3040
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3023
3041
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3024
3042
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3026,13 +3044,13 @@ var Eo = function(e, t, n, a) {
|
|
|
3026
3044
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3027
3045
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3028
3046
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3029
|
-
},
|
|
3047
|
+
}, Mt = function(e, t) {
|
|
3030
3048
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3031
3049
|
return Reflect.metadata(e, t);
|
|
3032
3050
|
};
|
|
3033
|
-
const
|
|
3051
|
+
const na = class {
|
|
3034
3052
|
constructor(e) {
|
|
3035
|
-
|
|
3053
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.confirmationEmailTemplate = {}, this.isOpen = !1, this.participants = [], this.name = "confirmation-email-template", this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants;
|
|
3036
3054
|
}
|
|
3037
3055
|
connectedCallback() {
|
|
3038
3056
|
d("nylas-confirmation-email", "connectedCallback");
|
|
@@ -3094,8 +3112,8 @@ const ea = class {
|
|
|
3094
3112
|
};
|
|
3095
3113
|
}
|
|
3096
3114
|
};
|
|
3097
|
-
|
|
3098
|
-
|
|
3115
|
+
Po([
|
|
3116
|
+
I({
|
|
3099
3117
|
name: "nylas-confirmation-email",
|
|
3100
3118
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3101
3119
|
eventToProps: {
|
|
@@ -3106,13 +3124,13 @@ Eo([
|
|
|
3106
3124
|
},
|
|
3107
3125
|
fireRegisterEvent: !0
|
|
3108
3126
|
}),
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
],
|
|
3113
|
-
|
|
3114
|
-
const
|
|
3115
|
-
var
|
|
3127
|
+
Mt("design:type", Function),
|
|
3128
|
+
Mt("design:paramtypes", []),
|
|
3129
|
+
Mt("design:returntype", void 0)
|
|
3130
|
+
], na.prototype, "render", null);
|
|
3131
|
+
na.style = No;
|
|
3132
|
+
const Ao = ':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}', Fo = Ao;
|
|
3133
|
+
var Mo = function(e, t, n, a) {
|
|
3116
3134
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3117
3135
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3118
3136
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3124,10 +3142,10 @@ var Do = function(e, t, n, a) {
|
|
|
3124
3142
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3125
3143
|
return Reflect.metadata(e, t);
|
|
3126
3144
|
};
|
|
3127
|
-
const
|
|
3145
|
+
const aa = class {
|
|
3128
3146
|
constructor(e) {
|
|
3129
3147
|
var t;
|
|
3130
|
-
|
|
3148
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "connected-calendars", this.selectedConfiguration = void 0, this.participants = ((t = this.selectedConfiguration) == null ? void 0 : t.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendars = {};
|
|
3131
3149
|
}
|
|
3132
3150
|
elementNameChangedHandler(e) {
|
|
3133
3151
|
d("nylas-connected-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3152,18 +3170,18 @@ const ta = class {
|
|
|
3152
3170
|
if (t) {
|
|
3153
3171
|
const p = e == null ? void 0 : e.filter((f) => t.some((h) => h.email === f.email)), u = e == null ? void 0 : e.filter((f) => !t.some((h) => h.email === f.email));
|
|
3154
3172
|
p == null || p.forEach((f) => {
|
|
3155
|
-
var y, C,
|
|
3173
|
+
var y, C, T;
|
|
3156
3174
|
const h = t == null ? void 0 : t.find((R) => R.email === f.email);
|
|
3157
3175
|
if (!h)
|
|
3158
3176
|
return;
|
|
3159
3177
|
this.participantDefaultSelectedCalendars[f.email] = ((y = f.availability) == null ? void 0 : y.calendar_ids) || [];
|
|
3160
|
-
const
|
|
3161
|
-
(
|
|
3162
|
-
!(
|
|
3163
|
-
}), o[f.email] =
|
|
3178
|
+
const g = h.calendars ?? [];
|
|
3179
|
+
(T = (C = f.availability) == null ? void 0 : C.calendar_ids) == null || T.forEach((R) => {
|
|
3180
|
+
!(g != null && g.some((z) => z.id === R)) && R !== "primary" && g.push({ id: R, name: R });
|
|
3181
|
+
}), o[f.email] = g;
|
|
3164
3182
|
}), a && (u == null || u.forEach((f) => {
|
|
3165
|
-
var h,
|
|
3166
|
-
(h = f == null ? void 0 : f.availability) != null && h.calendar_ids && ((y = (
|
|
3183
|
+
var h, g, y, C;
|
|
3184
|
+
(h = f == null ? void 0 : f.availability) != null && h.calendar_ids && ((y = (g = f == null ? void 0 : f.availability) == null ? void 0 : g.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) || []);
|
|
3167
3185
|
}));
|
|
3168
3186
|
}
|
|
3169
3187
|
return n && (o[n.email] = this.calendars ?? [{ id: "primary", name: n.email }], this.participantDefaultSelectedCalendars[n.email] = ((c = n.availability) == null ? void 0 : c.calendar_ids) || []), o;
|
|
@@ -3240,8 +3258,8 @@ const ta = class {
|
|
|
3240
3258
|
};
|
|
3241
3259
|
}
|
|
3242
3260
|
};
|
|
3243
|
-
|
|
3244
|
-
|
|
3261
|
+
Mo([
|
|
3262
|
+
I({
|
|
3245
3263
|
name: "nylas-connected-calendars",
|
|
3246
3264
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3247
3265
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -3254,10 +3272,10 @@ Do([
|
|
|
3254
3272
|
Lt("design:type", Function),
|
|
3255
3273
|
Lt("design:paramtypes", []),
|
|
3256
3274
|
Lt("design:returntype", void 0)
|
|
3257
|
-
],
|
|
3258
|
-
|
|
3259
|
-
const
|
|
3260
|
-
var
|
|
3275
|
+
], aa.prototype, "render", null);
|
|
3276
|
+
aa.style = Fo;
|
|
3277
|
+
const Lo = ':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}', Ro = Lo;
|
|
3278
|
+
var zo = function(e, t, n, a) {
|
|
3261
3279
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3262
3280
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3263
3281
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3265,13 +3283,13 @@ var Io = function(e, t, n, a) {
|
|
|
3265
3283
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3266
3284
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3267
3285
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3268
|
-
},
|
|
3286
|
+
}, Rt = function(e, t) {
|
|
3269
3287
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3270
3288
|
return Reflect.metadata(e, t);
|
|
3271
3289
|
};
|
|
3272
|
-
const
|
|
3290
|
+
const ia = class {
|
|
3273
3291
|
constructor(e) {
|
|
3274
|
-
|
|
3292
|
+
v(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
3275
3293
|
}
|
|
3276
3294
|
connectedCallback() {
|
|
3277
3295
|
d("nylas-custom-booking-flow", "connectedCallback");
|
|
@@ -3283,7 +3301,7 @@ const na = class {
|
|
|
3283
3301
|
d("nylas-custom-booking-flow", "componentWillLoad");
|
|
3284
3302
|
}
|
|
3285
3303
|
componentDidLoad() {
|
|
3286
|
-
d("nylas-custom-booking-flow", "componentDidLoad"),
|
|
3304
|
+
d("nylas-custom-booking-flow", "componentDidLoad"), cn(["inputs"], this.el);
|
|
3287
3305
|
}
|
|
3288
3306
|
render() {
|
|
3289
3307
|
return s(D, { key: "9ac3169c2eff9023ac8b8059f14ae309af22d45a" }, s("nylas-form-card", { key: "02be9921b35d02afb300b272a2508871928514e3", exportparts: "nfc__header: ncbf__header" }, s("h1", { key: "0a7e4a9cc508c666cd0b5b3199b5e8fdbdcb9964", slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbf__title" }, "Custom booking flow"), s("div", { key: "0416972885e9a3581b64677e297eb8cd10226bc8", slot: "content", class: "nylas-custom-booking-flow__content" }, s("slot", { key: "779f10585d3011df40021104b2ff8d9334544441", name: "inputs" }))));
|
|
@@ -3295,19 +3313,19 @@ const na = class {
|
|
|
3295
3313
|
return H(this);
|
|
3296
3314
|
}
|
|
3297
3315
|
};
|
|
3298
|
-
|
|
3299
|
-
|
|
3316
|
+
zo([
|
|
3317
|
+
I({
|
|
3300
3318
|
name: "nylas-custom-booking-flow",
|
|
3301
3319
|
eventToProps: {},
|
|
3302
3320
|
fireRegisterEvent: !0
|
|
3303
3321
|
}),
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
],
|
|
3308
|
-
|
|
3309
|
-
const
|
|
3310
|
-
var
|
|
3322
|
+
Rt("design:type", Function),
|
|
3323
|
+
Rt("design:paramtypes", []),
|
|
3324
|
+
Rt("design:returntype", void 0)
|
|
3325
|
+
], ia.prototype, "render", null);
|
|
3326
|
+
ia.style = Ro;
|
|
3327
|
+
const jo = ':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:1;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}', Bo = jo;
|
|
3328
|
+
var Uo = function(e, t, n, a) {
|
|
3311
3329
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3312
3330
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3313
3331
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3315,13 +3333,13 @@ var Po = function(e, t, n, a) {
|
|
|
3315
3333
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3316
3334
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3317
3335
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3318
|
-
},
|
|
3336
|
+
}, zt = function(e, t) {
|
|
3319
3337
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3320
3338
|
return Reflect.metadata(e, t);
|
|
3321
3339
|
};
|
|
3322
|
-
const
|
|
3340
|
+
const oa = class {
|
|
3323
3341
|
constructor(e) {
|
|
3324
|
-
|
|
3342
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultUrlSlug = void 0, this.isOpen = !0, this.slugErrorMessage = "", this.name = "custom-event-slug", this.requiresSlug = !1, this.urlSlug = void 0, this.focus = !1, this.copied = !1;
|
|
3325
3343
|
}
|
|
3326
3344
|
connectedCallback() {
|
|
3327
3345
|
d("nylas-custom-event-slug", "connectedCallback");
|
|
@@ -3361,7 +3379,7 @@ const aa = class {
|
|
|
3361
3379
|
this.focus = !0;
|
|
3362
3380
|
}
|
|
3363
3381
|
async nylasFormInputBlurHandler() {
|
|
3364
|
-
if (this.focus = !1, this.requiresSlug && this.urlSlug === "") {
|
|
3382
|
+
if (this.slugErrorMessage = "", this.internals.setValidity({}), this.focus = !1, this.requiresSlug && this.urlSlug === "") {
|
|
3365
3383
|
this.internals.setValidity({ customError: !0 }, "Slug is required"), this.slugErrorMessage = "Slug cannot be blank";
|
|
3366
3384
|
return;
|
|
3367
3385
|
}
|
|
@@ -3375,7 +3393,7 @@ const aa = class {
|
|
|
3375
3393
|
}
|
|
3376
3394
|
async copyToClipboard() {
|
|
3377
3395
|
try {
|
|
3378
|
-
await navigator.clipboard.writeText(`${this.
|
|
3396
|
+
await navigator.clipboard.writeText(`${this.urlSlug}`), this.copied = !0, setTimeout(() => {
|
|
3379
3397
|
this.copied = !1;
|
|
3380
3398
|
}, 1e3);
|
|
3381
3399
|
} catch (e) {
|
|
@@ -3386,7 +3404,7 @@ const aa = class {
|
|
|
3386
3404
|
if (!this.requiresSlug)
|
|
3387
3405
|
return null;
|
|
3388
3406
|
const e = typeof this.urlSlug < "u";
|
|
3389
|
-
return s(D, null, s("div", { class: "nylas-custom-event-slug", part: "nces" }, s("div", { class: "header", part: "nces__header" }, s("div", null, s("h3", null, "Custom event slug"), s("p", null, "Create a custom URL slug for this event")), s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, s("div", { class: "nylas-custom-event-slug__section" }, s("div", { class: "nylas-custom-event-slug__row" }, s("div", { class: "input-container" }, s("label", null, "Event URL slug", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "Provide a custom slug for your URL to help uniquely identify your event (letters, numbers, and hyphens only)")))), s("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, s("div", { slot: "prefix", class: "prefix" },
|
|
3407
|
+
return s(D, null, s("div", { class: "nylas-custom-event-slug", part: "nces" }, s("div", { class: "header", part: "nces__header" }, s("div", null, s("h3", null, "Custom event slug"), s("p", null, "Create a custom URL slug for this event")), s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, s("div", { class: "nylas-custom-event-slug__section" }, s("div", { class: "nylas-custom-event-slug__row" }, s("div", { class: "input-container" }, s("label", null, "Event URL slug", s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, "Provide a custom slug for your URL to help uniquely identify your event (letters, numbers, and hyphens only)")))), s("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, s("div", { slot: "prefix", class: "prefix" }, "/"), e && s("input-component", { name: "event-slug", id: "event-slug", type: "text", required: !1, placeholder: "my-link-name", exportparts: "ic_input: nces__input-textfield", defaultValue: this.urlSlug }), s("div", { slot: "icon", class: { icon: !0, disabled: !this.urlSlug }, onClick: () => !this.copied && !!this.urlSlug && this.copyToClipboard() }, this.copied ? s("div", { class: "copied" }, s("checkmark-icon", { width: "12", height: "18" }), " Copied!") : s("copy-icon", { width: "12", height: "18" }))), this.slugErrorMessage && s("span", { class: "error-message" }, this.slugErrorMessage)))))));
|
|
3390
3408
|
}
|
|
3391
3409
|
static get formAssociated() {
|
|
3392
3410
|
return !0;
|
|
@@ -3401,8 +3419,8 @@ const aa = class {
|
|
|
3401
3419
|
};
|
|
3402
3420
|
}
|
|
3403
3421
|
};
|
|
3404
|
-
|
|
3405
|
-
|
|
3422
|
+
Uo([
|
|
3423
|
+
I({
|
|
3406
3424
|
name: "nylas-custom-event-slug",
|
|
3407
3425
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3408
3426
|
["schedulerConfig.requiresSlug", "requiresSlug"],
|
|
@@ -3416,13 +3434,13 @@ Po([
|
|
|
3416
3434
|
},
|
|
3417
3435
|
fireRegisterEvent: !0
|
|
3418
3436
|
}),
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
],
|
|
3423
|
-
|
|
3424
|
-
const
|
|
3425
|
-
var
|
|
3437
|
+
zt("design:type", Function),
|
|
3438
|
+
zt("design:paramtypes", []),
|
|
3439
|
+
zt("design:returntype", void 0)
|
|
3440
|
+
], oa.prototype, "render", null);
|
|
3441
|
+
oa.style = Bo;
|
|
3442
|
+
const Wo = ':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}}', Zo = Wo;
|
|
3443
|
+
var qo = function(e, t, n, a) {
|
|
3426
3444
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3427
3445
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3428
3446
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3430,14 +3448,14 @@ var Lo = function(e, t, n, a) {
|
|
|
3430
3448
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3431
3449
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3432
3450
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3433
|
-
},
|
|
3451
|
+
}, jt = function(e, t) {
|
|
3434
3452
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3435
3453
|
return Reflect.metadata(e, t);
|
|
3436
3454
|
};
|
|
3437
|
-
const
|
|
3455
|
+
const sa = class {
|
|
3438
3456
|
constructor(e) {
|
|
3439
3457
|
var t, n, a, o, i, l;
|
|
3440
|
-
|
|
3458
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : n.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 = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : l.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
|
|
3441
3459
|
}
|
|
3442
3460
|
elementNameChangedHandler(e) {
|
|
3443
3461
|
d("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3513,19 +3531,19 @@ const ia = class {
|
|
|
3513
3531
|
};
|
|
3514
3532
|
}
|
|
3515
3533
|
};
|
|
3516
|
-
|
|
3517
|
-
|
|
3534
|
+
qo([
|
|
3535
|
+
I({
|
|
3518
3536
|
name: "nylas-customize-booking-settings",
|
|
3519
3537
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3520
3538
|
fireRegisterEvent: !0
|
|
3521
3539
|
}),
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
],
|
|
3526
|
-
|
|
3527
|
-
const
|
|
3528
|
-
var
|
|
3540
|
+
jt("design:type", Function),
|
|
3541
|
+
jt("design:paramtypes", []),
|
|
3542
|
+
jt("design:returntype", void 0)
|
|
3543
|
+
], sa.prototype, "render", null);
|
|
3544
|
+
sa.style = Zo;
|
|
3545
|
+
const Go = ':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}', Vo = Go;
|
|
3546
|
+
var Jo = function(e, t, n, a) {
|
|
3529
3547
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3530
3548
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3531
3549
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3533,14 +3551,14 @@ var zo = function(e, t, n, a) {
|
|
|
3533
3551
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3534
3552
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3535
3553
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3536
|
-
},
|
|
3554
|
+
}, Bt = function(e, t) {
|
|
3537
3555
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3538
3556
|
return Reflect.metadata(e, t);
|
|
3539
3557
|
};
|
|
3540
|
-
const
|
|
3558
|
+
const la = class {
|
|
3541
3559
|
constructor(e) {
|
|
3542
3560
|
var t, n;
|
|
3543
|
-
|
|
3561
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = void 0, this.name = "description", this.description = this.eventDescription || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.description) || "";
|
|
3544
3562
|
}
|
|
3545
3563
|
elementNameChangedHandler(e) {
|
|
3546
3564
|
d("nylas-event-description", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3581,20 +3599,20 @@ const oa = class {
|
|
|
3581
3599
|
};
|
|
3582
3600
|
}
|
|
3583
3601
|
};
|
|
3584
|
-
|
|
3585
|
-
|
|
3602
|
+
Jo([
|
|
3603
|
+
I({
|
|
3586
3604
|
name: "nylas-event-description",
|
|
3587
3605
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3588
3606
|
eventToProps: {},
|
|
3589
3607
|
fireRegisterEvent: !0
|
|
3590
3608
|
}),
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
],
|
|
3595
|
-
|
|
3596
|
-
const
|
|
3597
|
-
var
|
|
3609
|
+
Bt("design:type", Function),
|
|
3610
|
+
Bt("design:paramtypes", []),
|
|
3611
|
+
Bt("design:returntype", void 0)
|
|
3612
|
+
], la.prototype, "render", null);
|
|
3613
|
+
la.style = Vo;
|
|
3614
|
+
const Yo = ':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)}', Xo = Yo;
|
|
3615
|
+
var Ko = function(e, t, n, a) {
|
|
3598
3616
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3599
3617
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3600
3618
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3606,9 +3624,9 @@ var Bo = function(e, t, n, a) {
|
|
|
3606
3624
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3607
3625
|
return Reflect.metadata(e, t);
|
|
3608
3626
|
};
|
|
3609
|
-
const
|
|
3627
|
+
const ra = class {
|
|
3610
3628
|
constructor(e) {
|
|
3611
|
-
|
|
3629
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "duration", this.eventDurationMinutes = void 0, this.duration = this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = void 0, this.durationIncrement = void 0, this.durationMinutesOptions = [
|
|
3612
3630
|
{ value: 15, label: "15" },
|
|
3613
3631
|
{ value: 30, label: "30" },
|
|
3614
3632
|
{ value: 45, label: "45" },
|
|
@@ -3680,8 +3698,8 @@ const sa = class {
|
|
|
3680
3698
|
};
|
|
3681
3699
|
}
|
|
3682
3700
|
};
|
|
3683
|
-
|
|
3684
|
-
|
|
3701
|
+
Ko([
|
|
3702
|
+
I({
|
|
3685
3703
|
name: "nylas-event-duration",
|
|
3686
3704
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3687
3705
|
eventToProps: {},
|
|
@@ -3690,10 +3708,10 @@ Bo([
|
|
|
3690
3708
|
Ut("design:type", Function),
|
|
3691
3709
|
Ut("design:paramtypes", []),
|
|
3692
3710
|
Ut("design:returntype", void 0)
|
|
3693
|
-
],
|
|
3694
|
-
|
|
3695
|
-
const
|
|
3696
|
-
var
|
|
3711
|
+
], ra.prototype, "render", null);
|
|
3712
|
+
ra.style = Xo;
|
|
3713
|
+
const Qo = ':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}', es = Qo;
|
|
3714
|
+
var ts = function(e, t, n, a) {
|
|
3697
3715
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3698
3716
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3699
3717
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3701,13 +3719,13 @@ var qo = function(e, t, n, a) {
|
|
|
3701
3719
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3702
3720
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3703
3721
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3704
|
-
},
|
|
3722
|
+
}, Wt = function(e, t) {
|
|
3705
3723
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3706
3724
|
return Reflect.metadata(e, t);
|
|
3707
3725
|
};
|
|
3708
|
-
const
|
|
3726
|
+
const da = class {
|
|
3709
3727
|
constructor(e) {
|
|
3710
|
-
|
|
3728
|
+
v(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
3711
3729
|
}
|
|
3712
3730
|
connectedCallback() {
|
|
3713
3731
|
d("nylas-event-info", "connectedCallback");
|
|
@@ -3716,13 +3734,13 @@ const la = class {
|
|
|
3716
3734
|
d("nylas-event-info", "componentWillLoad");
|
|
3717
3735
|
}
|
|
3718
3736
|
componentDidLoad() {
|
|
3719
|
-
d("nylas-event-info", "componentDidLoad"),
|
|
3737
|
+
d("nylas-event-info", "componentDidLoad"), cn(["inputs"], this.el);
|
|
3720
3738
|
}
|
|
3721
3739
|
disconnectedCallback() {
|
|
3722
3740
|
d("nylas-event-info", "disconnectedCallback");
|
|
3723
3741
|
}
|
|
3724
3742
|
render() {
|
|
3725
|
-
return s(D, { key: "
|
|
3743
|
+
return s(D, { key: "76b86a390342aa5d5b2ae95290da88102352cf82" }, s("nylas-form-card", { key: "0ff7b39350af1570925c9e0057b6ed6e55ddae79", exportparts: "nfc__header: nei__header" }, s("h1", { key: "ab44574885787a1492e267ee7c1a706c9015993f", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, "Event information"), s("div", { key: "551055087d383c80b17ac2d04821cd4be442ad77", slot: "content", class: "nylas-event-info__content" }, s("slot", { key: "d1ed8eb84034929ccfd675bbd5ebf047718fa313", name: "inputs" }))));
|
|
3726
3744
|
}
|
|
3727
3745
|
static get formAssociated() {
|
|
3728
3746
|
return !0;
|
|
@@ -3731,19 +3749,19 @@ const la = class {
|
|
|
3731
3749
|
return H(this);
|
|
3732
3750
|
}
|
|
3733
3751
|
};
|
|
3734
|
-
|
|
3735
|
-
|
|
3752
|
+
ts([
|
|
3753
|
+
I({
|
|
3736
3754
|
name: "nylas-event-info",
|
|
3737
3755
|
eventToProps: {},
|
|
3738
3756
|
fireRegisterEvent: !0
|
|
3739
3757
|
}),
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
],
|
|
3744
|
-
|
|
3745
|
-
const
|
|
3746
|
-
var
|
|
3758
|
+
Wt("design:type", Function),
|
|
3759
|
+
Wt("design:paramtypes", []),
|
|
3760
|
+
Wt("design:returntype", void 0)
|
|
3761
|
+
], da.prototype, "render", null);
|
|
3762
|
+
da.style = es;
|
|
3763
|
+
const ns = ':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}', as = ns;
|
|
3764
|
+
var is = function(e, t, n, a) {
|
|
3747
3765
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3748
3766
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3749
3767
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3751,13 +3769,13 @@ var Vo = function(e, t, n, a) {
|
|
|
3751
3769
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3752
3770
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3753
3771
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3754
|
-
},
|
|
3772
|
+
}, Zt = function(e, t) {
|
|
3755
3773
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3756
3774
|
return Reflect.metadata(e, t);
|
|
3757
3775
|
};
|
|
3758
|
-
const
|
|
3776
|
+
const ca = class {
|
|
3759
3777
|
constructor(e) {
|
|
3760
|
-
|
|
3778
|
+
v(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
3761
3779
|
}
|
|
3762
3780
|
connectedCallback() {
|
|
3763
3781
|
d("nylas-event-limits", "connectedCallback");
|
|
@@ -3766,13 +3784,13 @@ const ra = class {
|
|
|
3766
3784
|
d("nylas-event-limits", "componentWillLoad");
|
|
3767
3785
|
}
|
|
3768
3786
|
componentDidLoad() {
|
|
3769
|
-
d("nylas-event-limits", "componentDidLoad"),
|
|
3787
|
+
d("nylas-event-limits", "componentDidLoad"), cn(["inputs"], this.el);
|
|
3770
3788
|
}
|
|
3771
3789
|
disconnectedCallback() {
|
|
3772
3790
|
d("nylas-event-limits", "disconnectedCallback");
|
|
3773
3791
|
}
|
|
3774
3792
|
render() {
|
|
3775
|
-
return s(D, { key: "
|
|
3793
|
+
return s(D, { key: "736343d22be92b508aacd68333a5833e21408c7a" }, s("nylas-form-card", { key: "5ded1d19d02715911b73a4aca46d84e57ecc5ffb", exportparts: "nfc__header: nel__header" }, s("h1", { key: "0d8d224a178adbc0b13bb36bb845db4234387a61", slot: "header-title", class: "nylas-event-limits__title" }, "Event limits"), s("div", { key: "2e38cc37128d88ec672cef17ec7c3ada46a57530", slot: "content", class: "nylas-event-limits__content" }, s("slot", { key: "3cc194c50c642daef69828a4724e18616e8a983d", name: "inputs" }))));
|
|
3776
3794
|
}
|
|
3777
3795
|
static get formAssociated() {
|
|
3778
3796
|
return !0;
|
|
@@ -3781,19 +3799,19 @@ const ra = class {
|
|
|
3781
3799
|
return H(this);
|
|
3782
3800
|
}
|
|
3783
3801
|
};
|
|
3784
|
-
|
|
3785
|
-
|
|
3802
|
+
is([
|
|
3803
|
+
I({
|
|
3786
3804
|
name: "nylas-event-limits",
|
|
3787
3805
|
eventToProps: {},
|
|
3788
3806
|
fireRegisterEvent: !0
|
|
3789
3807
|
}),
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
],
|
|
3794
|
-
|
|
3795
|
-
const
|
|
3796
|
-
var
|
|
3808
|
+
Zt("design:type", Function),
|
|
3809
|
+
Zt("design:paramtypes", []),
|
|
3810
|
+
Zt("design:returntype", void 0)
|
|
3811
|
+
], ca.prototype, "render", null);
|
|
3812
|
+
ca.style = as;
|
|
3813
|
+
const os = ':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}', ss = os;
|
|
3814
|
+
var ls = function(e, t, n, a) {
|
|
3797
3815
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3798
3816
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3799
3817
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3801,13 +3819,13 @@ var Ko = function(e, t, n, a) {
|
|
|
3801
3819
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3802
3820
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3803
3821
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3804
|
-
},
|
|
3822
|
+
}, qt = function(e, t) {
|
|
3805
3823
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3806
3824
|
return Reflect.metadata(e, t);
|
|
3807
3825
|
};
|
|
3808
|
-
const
|
|
3826
|
+
const pa = class {
|
|
3809
3827
|
constructor(e) {
|
|
3810
|
-
|
|
3828
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "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 = this.eventConferencing ? this.setDefaultLocationOption(this.eventConferencing, this.location) : "", this.userProviderState = this.userProvider ?? "";
|
|
3811
3829
|
}
|
|
3812
3830
|
elementNameChangedHandler(e) {
|
|
3813
3831
|
d("nylas-event-location", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3846,7 +3864,7 @@ const da = class {
|
|
|
3846
3864
|
this.location = "", this.setFormValue("", this.name);
|
|
3847
3865
|
const i = (n = this.conferenceProviders) == null ? void 0 : n.google;
|
|
3848
3866
|
t = {
|
|
3849
|
-
provider:
|
|
3867
|
+
provider: yt.google,
|
|
3850
3868
|
autocreate: i ? {
|
|
3851
3869
|
conf_grant_id: i
|
|
3852
3870
|
} : {}
|
|
@@ -3856,7 +3874,7 @@ const da = class {
|
|
|
3856
3874
|
this.location = "", this.setFormValue("", this.name);
|
|
3857
3875
|
const l = (a = this.conferenceProviders) == null ? void 0 : a.microsoft;
|
|
3858
3876
|
t = {
|
|
3859
|
-
provider:
|
|
3877
|
+
provider: yt.microsoft,
|
|
3860
3878
|
autocreate: l ? {
|
|
3861
3879
|
conf_grant_id: l
|
|
3862
3880
|
} : {}
|
|
@@ -3866,7 +3884,7 @@ const da = class {
|
|
|
3866
3884
|
this.location = "", this.setFormValue("", this.name);
|
|
3867
3885
|
const r = (o = this.conferenceProviders) == null ? void 0 : o.zoom;
|
|
3868
3886
|
t = {
|
|
3869
|
-
provider:
|
|
3887
|
+
provider: yt.zoom,
|
|
3870
3888
|
autocreate: r ? {
|
|
3871
3889
|
conf_grant_id: r
|
|
3872
3890
|
} : {}
|
|
@@ -3875,7 +3893,7 @@ const da = class {
|
|
|
3875
3893
|
}
|
|
3876
3894
|
}
|
|
3877
3895
|
setDefaultLocationOption(e, t) {
|
|
3878
|
-
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ?
|
|
3896
|
+
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ? Ha[e == null ? void 0 : e.provider] : t ? "custom" : "none";
|
|
3879
3897
|
}
|
|
3880
3898
|
setDefaultGrantID(e) {
|
|
3881
3899
|
var t;
|
|
@@ -3925,8 +3943,8 @@ const da = class {
|
|
|
3925
3943
|
};
|
|
3926
3944
|
}
|
|
3927
3945
|
};
|
|
3928
|
-
|
|
3929
|
-
|
|
3946
|
+
ls([
|
|
3947
|
+
I({
|
|
3930
3948
|
name: "nylas-event-location",
|
|
3931
3949
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3932
3950
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3936,13 +3954,13 @@ Ko([
|
|
|
3936
3954
|
eventToProps: {},
|
|
3937
3955
|
fireRegisterEvent: !0
|
|
3938
3956
|
}),
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
],
|
|
3943
|
-
|
|
3944
|
-
const
|
|
3945
|
-
var
|
|
3957
|
+
qt("design:type", Function),
|
|
3958
|
+
qt("design:paramtypes", []),
|
|
3959
|
+
qt("design:returntype", void 0)
|
|
3960
|
+
], pa.prototype, "render", null);
|
|
3961
|
+
pa.style = ss;
|
|
3962
|
+
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}.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)}', ds = rs;
|
|
3963
|
+
var cs = function(e, t, n, a) {
|
|
3946
3964
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3947
3965
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3948
3966
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3950,14 +3968,14 @@ var ts = function(e, t, n, a) {
|
|
|
3950
3968
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3951
3969
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
3952
3970
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3953
|
-
},
|
|
3971
|
+
}, Gt = function(e, t) {
|
|
3954
3972
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3955
3973
|
return Reflect.metadata(e, t);
|
|
3956
3974
|
};
|
|
3957
|
-
const
|
|
3975
|
+
const fa = class {
|
|
3958
3976
|
constructor(e) {
|
|
3959
3977
|
var t, n;
|
|
3960
|
-
|
|
3978
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.title, this.name = "title", this.showTokens = !1, this.availableTokens = _n.map((a) => ({
|
|
3961
3979
|
label: a.token,
|
|
3962
3980
|
value: a.value,
|
|
3963
3981
|
labelHTML: a
|
|
@@ -4006,7 +4024,7 @@ const ca = class {
|
|
|
4006
4024
|
}
|
|
4007
4025
|
highlightTokens(e) {
|
|
4008
4026
|
let t = e;
|
|
4009
|
-
return
|
|
4027
|
+
return _n.forEach((n) => {
|
|
4010
4028
|
const a = n.value, o = new RegExp(`(\\${a})(?!\\w)`, "g");
|
|
4011
4029
|
t = (t == null ? void 0 : t.replace(o, '<span class="highlighted-tag">$1</span>')) || "";
|
|
4012
4030
|
}), t;
|
|
@@ -4027,7 +4045,7 @@ const ca = class {
|
|
|
4027
4045
|
var r, c;
|
|
4028
4046
|
return l.anchorOffset === 0 && l.focusOffset === ((c = (r = l.focusNode) == null ? void 0 : r.nodeValue) == null ? void 0 : c.length);
|
|
4029
4047
|
};
|
|
4030
|
-
switch (
|
|
4048
|
+
switch (Oa()) {
|
|
4031
4049
|
case "Chrome":
|
|
4032
4050
|
const l = (a = this.host.shadowRoot) == null ? void 0 : a.getSelection(), r = l == null ? void 0 : l.focusNode, c = (r == null ? void 0 : r.nodeValue) || "", p = l && t(l);
|
|
4033
4051
|
return e(c, (l == null ? void 0 : l.focusOffset) || -1, r, p);
|
|
@@ -4035,8 +4053,8 @@ const ca = class {
|
|
|
4035
4053
|
const u = document.getSelection(), f = ((o = u == null ? void 0 : u.anchorNode) == null ? void 0 : o.nodeValue) || "", h = u && t(u);
|
|
4036
4054
|
return e(f, (u == null ? void 0 : u.focusOffset) || -1, u == null ? void 0 : u.anchorNode, h);
|
|
4037
4055
|
case "Safari":
|
|
4038
|
-
const
|
|
4039
|
-
return e(C, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer,
|
|
4056
|
+
const g = window.getSelection(), y = g == null ? void 0 : g.getComposedRanges(this.host.shadowRoot)[0], C = ((i = y == null ? void 0 : y.startContainer) == null ? void 0 : i.nodeValue) || "", T = g && t(g);
|
|
4057
|
+
return e(C, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer, T);
|
|
4040
4058
|
default:
|
|
4041
4059
|
return console.warn("Browser not supported"), null;
|
|
4042
4060
|
}
|
|
@@ -4064,7 +4082,7 @@ const ca = class {
|
|
|
4064
4082
|
handleInputKeyDown(e) {
|
|
4065
4083
|
var n, a, o, i;
|
|
4066
4084
|
const t = this.getCurrentSelectionForBrowser();
|
|
4067
|
-
if (t != null && t.allSelected && !
|
|
4085
|
+
if (t != null && t.allSelected && !Sa(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
|
|
4068
4086
|
e.preventDefault();
|
|
4069
4087
|
const l = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(this.ariaActivedescendant);
|
|
4070
4088
|
l && (l.click(), this.ariaActivedescendant = "");
|
|
@@ -4094,8 +4112,8 @@ const ca = class {
|
|
|
4094
4112
|
let o = this.titleRef.firstChild, i = null;
|
|
4095
4113
|
for (; o; ) {
|
|
4096
4114
|
if (o.nodeType === 3) {
|
|
4097
|
-
const
|
|
4098
|
-
if (
|
|
4115
|
+
const T = ((C = o.textContent) == null ? void 0 : C.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", R = n.replace(/[\u200B-\u200D\uFEFF]/g, "");
|
|
4116
|
+
if (T.includes(R)) {
|
|
4099
4117
|
i = o;
|
|
4100
4118
|
break;
|
|
4101
4119
|
}
|
|
@@ -4106,12 +4124,12 @@ const ca = class {
|
|
|
4106
4124
|
return;
|
|
4107
4125
|
const l = i.textContent || "", r = l.indexOf(a), c = l.substring(0, r), p = l.substring(r + a.length), u = document.createTextNode(c), f = document.createRange(), h = document.createElement("span");
|
|
4108
4126
|
h.classList.add("highlighted-tag"), h.textContent = `${t.value}`;
|
|
4109
|
-
const
|
|
4127
|
+
const g = document.createTextNode(p);
|
|
4110
4128
|
if (p !== "")
|
|
4111
|
-
i.replaceWith(u, h,
|
|
4129
|
+
i.replaceWith(u, h, g), f.setStart(g, 1);
|
|
4112
4130
|
else {
|
|
4113
|
-
const
|
|
4114
|
-
i.replaceWith(u, h,
|
|
4131
|
+
const T = document.createTextNode("");
|
|
4132
|
+
i.replaceWith(u, h, T), f.setStart(T, 1);
|
|
4115
4133
|
}
|
|
4116
4134
|
this.resetDropdown(), this.titleRef.focus();
|
|
4117
4135
|
const y = window.getSelection();
|
|
@@ -4152,20 +4170,20 @@ const ca = class {
|
|
|
4152
4170
|
};
|
|
4153
4171
|
}
|
|
4154
4172
|
};
|
|
4155
|
-
|
|
4156
|
-
|
|
4173
|
+
cs([
|
|
4174
|
+
I({
|
|
4157
4175
|
name: "nylas-event-title",
|
|
4158
4176
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4159
4177
|
eventToProps: {},
|
|
4160
4178
|
fireRegisterEvent: !0
|
|
4161
4179
|
}),
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
],
|
|
4166
|
-
|
|
4167
|
-
const
|
|
4168
|
-
var
|
|
4180
|
+
Gt("design:type", Function),
|
|
4181
|
+
Gt("design:paramtypes", []),
|
|
4182
|
+
Gt("design:returntype", void 0)
|
|
4183
|
+
], fa.prototype, "render", null);
|
|
4184
|
+
fa.style = ds;
|
|
4185
|
+
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}.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)}', fs = ps;
|
|
4186
|
+
var us = function(e, t, n, a) {
|
|
4169
4187
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4170
4188
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4171
4189
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4173,13 +4191,72 @@ var is = function(e, t, n, a) {
|
|
|
4173
4191
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4174
4192
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4175
4193
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4176
|
-
},
|
|
4194
|
+
}, Vt = function(e, t) {
|
|
4177
4195
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4178
4196
|
return Reflect.metadata(e, t);
|
|
4179
4197
|
};
|
|
4180
|
-
const
|
|
4198
|
+
const ua = class {
|
|
4181
4199
|
constructor(e) {
|
|
4182
|
-
|
|
4200
|
+
v(this, e), this.feedbackModalClosed = S(this, "feedbackModalClosed", 7), this.feedbackSubmitted = S(this, "feedbackSubmitted", 7), this.triggerValidation = S(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
|
|
4201
|
+
this.triggerValidation.emit().defaultPrevented || this.feedbackSubmitted.emit({ feedback: this.feedbackMessage });
|
|
4202
|
+
}, this.feedbackMessage = "";
|
|
4203
|
+
}
|
|
4204
|
+
connectedCallback() {
|
|
4205
|
+
}
|
|
4206
|
+
disconnectedCallback() {
|
|
4207
|
+
}
|
|
4208
|
+
async componentWillLoad() {
|
|
4209
|
+
d("[nylas-feedback-form] Component will load");
|
|
4210
|
+
}
|
|
4211
|
+
async componentDidLoad() {
|
|
4212
|
+
d("[nylas-feedback-form] Component did load");
|
|
4213
|
+
}
|
|
4214
|
+
handleFormInputChanged(e) {
|
|
4215
|
+
d("[nylas-feedback-form] Form input changed"), e.detail.value && (this.triggerValidation.emit(), e.detail.name === "feedback" && (this.feedbackMessage = e.detail.value));
|
|
4216
|
+
}
|
|
4217
|
+
closeModal(e) {
|
|
4218
|
+
e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
|
|
4219
|
+
}
|
|
4220
|
+
render() {
|
|
4221
|
+
return s(D, { key: "f6e10ceb6550f0acc84ad54c2ee307364a1b7270", part: "nfbf" }, s("div", { key: "1e38da76d77d8c34734a9b8eefe9606ec5ba8737", class: "card-wrapper", part: "nfbfc__card" }, s("div", { key: "05b77dff41a8c747a7a6a7057397580a52f1c042", class: "close-button" }, s("button-component", { key: "7718b44fec828e5e24bd048067e951a0d37e318c", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, s("close-icon", { key: "17007decf07b354dda7b8b163060367ff592745e" }))), s("div", { key: "4e51e2aed4fe697708909bb182af1b4cb4a96d64", class: "header" }, s("h2", { key: "1311df70de86100161293a01c70d583b6d094caf", slot: "card-title", part: "nfbf__title" }, ke.t("feedbackFormTitle"))), s("div", { key: "2a896124f7b335701838ec025a099a4bad8e9198", class: "description title-desc" }, s("p", { key: "b5ca8e6e16a911f5e2461c35e2bd877a485841eb" }, ke.t("feedbackFormDescription"))), s("textarea-component", { key: "985a47bac8e5bff661df9168a1e042fcee7c74d2", label: ke.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: ke.t("feedbackMessagePlaceholder") }), s("div", { key: "5f2fda44999d3eaf21690e483f1f70bb10fd6584", class: "description footer-desc" }, s("p", { key: "d8572f6743b559541e1a252a2cf06ac2bd08a2db" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", s("a", { key: "40ef131398a39bc06af014ba75a18670e48b8587", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), s("div", { key: "3133e39353ac93d22088657af5f1a16ae4493bcc", class: {
|
|
4222
|
+
footer: !0
|
|
4223
|
+
} }, s("button-component", { key: "bde1379f6555a8a7d7bdc677ed44f037755f5055", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${ke.t("feedbackModalCloseButton")}`), s("button-component", { key: "a9f939c1a2231f29b698df2a4fe6a08bdf684148", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${ke.t("feedbackModalSubmitButton")}`))));
|
|
4224
|
+
}
|
|
4225
|
+
get host() {
|
|
4226
|
+
return H(this);
|
|
4227
|
+
}
|
|
4228
|
+
};
|
|
4229
|
+
us([
|
|
4230
|
+
I({
|
|
4231
|
+
name: "nylas-feedback-form",
|
|
4232
|
+
stateToProps: /* @__PURE__ */ new Map([]),
|
|
4233
|
+
eventToProps: {
|
|
4234
|
+
feedbackSubmitted: async (e, t) => {
|
|
4235
|
+
}
|
|
4236
|
+
},
|
|
4237
|
+
fireRegisterEvent: !0
|
|
4238
|
+
}),
|
|
4239
|
+
Vt("design:type", Function),
|
|
4240
|
+
Vt("design:paramtypes", []),
|
|
4241
|
+
Vt("design:returntype", void 0)
|
|
4242
|
+
], ua.prototype, "render", null);
|
|
4243
|
+
ua.style = fs;
|
|
4244
|
+
const hs = ':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}', ms = hs;
|
|
4245
|
+
var ys = function(e, t, n, a) {
|
|
4246
|
+
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4247
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4248
|
+
i = Reflect.decorate(e, t, n, a);
|
|
4249
|
+
else
|
|
4250
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
4251
|
+
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4252
|
+
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4253
|
+
}, Jt = function(e, t) {
|
|
4254
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4255
|
+
return Reflect.metadata(e, t);
|
|
4256
|
+
};
|
|
4257
|
+
const ha = class {
|
|
4258
|
+
constructor(e) {
|
|
4259
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.availableDaysInFuture = void 0, this.name = "limit-future-bookings", this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
4183
4260
|
}
|
|
4184
4261
|
elementNameChangedHandler(e) {
|
|
4185
4262
|
d("nylas-limit-future-bookings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4227,20 +4304,20 @@ const pa = class {
|
|
|
4227
4304
|
};
|
|
4228
4305
|
}
|
|
4229
4306
|
};
|
|
4230
|
-
|
|
4231
|
-
|
|
4307
|
+
ys([
|
|
4308
|
+
I({
|
|
4232
4309
|
name: "nylas-limit-future-bookings",
|
|
4233
4310
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4234
4311
|
eventToProps: {},
|
|
4235
4312
|
fireRegisterEvent: !0
|
|
4236
4313
|
}),
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
],
|
|
4241
|
-
|
|
4242
|
-
const
|
|
4243
|
-
var
|
|
4314
|
+
Jt("design:type", Function),
|
|
4315
|
+
Jt("design:paramtypes", []),
|
|
4316
|
+
Jt("design:returntype", void 0)
|
|
4317
|
+
], ha.prototype, "render", null);
|
|
4318
|
+
ha.style = ms;
|
|
4319
|
+
const bs = ':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}', gs = bs;
|
|
4320
|
+
var vs = function(e, t, n, a) {
|
|
4244
4321
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4245
4322
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4246
4323
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4248,13 +4325,13 @@ var ls = function(e, t, n, a) {
|
|
|
4248
4325
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4249
4326
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4250
4327
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4251
|
-
},
|
|
4328
|
+
}, Yt = function(e, t) {
|
|
4252
4329
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4253
4330
|
return Reflect.metadata(e, t);
|
|
4254
4331
|
};
|
|
4255
|
-
const
|
|
4332
|
+
const ma = class {
|
|
4256
4333
|
constructor(e) {
|
|
4257
|
-
|
|
4334
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.minBookingNotice = void 0, this.name = "min-booking-notice", this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
4258
4335
|
}
|
|
4259
4336
|
elementNameChangedHandler(e) {
|
|
4260
4337
|
d("nylas-min-booking-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4303,20 +4380,20 @@ const fa = class {
|
|
|
4303
4380
|
};
|
|
4304
4381
|
}
|
|
4305
4382
|
};
|
|
4306
|
-
|
|
4307
|
-
|
|
4383
|
+
vs([
|
|
4384
|
+
I({
|
|
4308
4385
|
name: "nylas-min-booking-notice",
|
|
4309
4386
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4310
4387
|
eventToProps: {},
|
|
4311
4388
|
fireRegisterEvent: !0
|
|
4312
4389
|
}),
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
],
|
|
4317
|
-
|
|
4318
|
-
const
|
|
4319
|
-
var
|
|
4390
|
+
Yt("design:type", Function),
|
|
4391
|
+
Yt("design:paramtypes", []),
|
|
4392
|
+
Yt("design:returntype", void 0)
|
|
4393
|
+
], ma.prototype, "render", null);
|
|
4394
|
+
ma.style = gs;
|
|
4395
|
+
const _s = ':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}', Cs = _s;
|
|
4396
|
+
var ws = function(e, t, n, a) {
|
|
4320
4397
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4321
4398
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4322
4399
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4324,13 +4401,13 @@ var cs = function(e, t, n, a) {
|
|
|
4324
4401
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4325
4402
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4326
4403
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4327
|
-
},
|
|
4404
|
+
}, Xt = function(e, t) {
|
|
4328
4405
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4329
4406
|
return Reflect.metadata(e, t);
|
|
4330
4407
|
};
|
|
4331
|
-
const
|
|
4408
|
+
const ya = class {
|
|
4332
4409
|
constructor(e) {
|
|
4333
|
-
|
|
4410
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.minCancellationNotice = void 0, this.name = "min-cancellation-notice", this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
4334
4411
|
}
|
|
4335
4412
|
elementNameChangedHandler(e) {
|
|
4336
4413
|
d("nylas-min-cancellation-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4364,7 +4441,7 @@ const ua = class {
|
|
|
4364
4441
|
}
|
|
4365
4442
|
render() {
|
|
4366
4443
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
4367
|
-
return s(D, { key: "
|
|
4444
|
+
return s(D, { key: "d0eb0c4b1e0f2f6a0d6f5d4a1706b823a5995460" }, s("div", { key: "cdbe655b75c8116d9eb2922f0c33e64a5b8f48bb", class: "nylas-min-cancellation-notice", part: "nmcn" }, s("label", { key: "6d3069ad632f3e50e3f41c703158272891e592bc" }, "Minimum cancellation notice", s("span", { key: "fa1c832064faee436759fad55382882ece2a0076", class: "label-icon" }, s("tooltip-component", { key: "3b64e4cd7368e51c97849aeb5ca677a55983924f" }, s("info-icon", { key: "818c40818eae3badb1a24d237520ae2651121b60", slot: "tooltip-icon" }), s("span", { key: "6411bb9ca8bff46ca01c367889f0dc057def084e", slot: "tooltip-content" }, "The minimum amount of time required to cancel a booking.")))), e && s("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ["minute", "hour", "day", "week"], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
|
|
4368
4445
|
}
|
|
4369
4446
|
static get formAssociated() {
|
|
4370
4447
|
return !0;
|
|
@@ -4379,20 +4456,20 @@ const ua = class {
|
|
|
4379
4456
|
};
|
|
4380
4457
|
}
|
|
4381
4458
|
};
|
|
4382
|
-
|
|
4383
|
-
|
|
4459
|
+
ws([
|
|
4460
|
+
I({
|
|
4384
4461
|
name: "nylas-min-cancellation-notice",
|
|
4385
4462
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4386
4463
|
eventToProps: {},
|
|
4387
4464
|
fireRegisterEvent: !0
|
|
4388
4465
|
}),
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
],
|
|
4393
|
-
|
|
4394
|
-
const
|
|
4395
|
-
var
|
|
4466
|
+
Xt("design:type", Function),
|
|
4467
|
+
Xt("design:paramtypes", []),
|
|
4468
|
+
Xt("design:returntype", void 0)
|
|
4469
|
+
], ya.prototype, "render", null);
|
|
4470
|
+
ya.style = Cs;
|
|
4471
|
+
const ks = ':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}', xs = ks;
|
|
4472
|
+
var Es = function(e, t, n, a) {
|
|
4396
4473
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4397
4474
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4398
4475
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4400,13 +4477,13 @@ var us = function(e, t, n, a) {
|
|
|
4400
4477
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4401
4478
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4402
4479
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4403
|
-
},
|
|
4480
|
+
}, Kt = function(e, t) {
|
|
4404
4481
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4405
4482
|
return Reflect.metadata(e, t);
|
|
4406
4483
|
};
|
|
4407
|
-
const
|
|
4484
|
+
const ba = class {
|
|
4408
4485
|
constructor(e) {
|
|
4409
|
-
|
|
4486
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.pageName = void 0, this.showToggle = !0, this.isOpen = !0, this.name = "page-name", this.currentPageName = void 0;
|
|
4410
4487
|
}
|
|
4411
4488
|
connectedCallback() {
|
|
4412
4489
|
d("nylas-page-name", "connectedCallback");
|
|
@@ -4447,7 +4524,7 @@ const ha = class {
|
|
|
4447
4524
|
}
|
|
4448
4525
|
render() {
|
|
4449
4526
|
const e = typeof this.currentPageName < "u";
|
|
4450
|
-
return s(D, { key: "
|
|
4527
|
+
return s(D, { key: "d4a0f9743f6b176f4352a0298fc4caaa7a9c69c6" }, s("div", { key: "f61425ccb15d018dc3287704aa09d14e0ef543fb", class: "nylas-page-name", part: "nces" }, s("div", { key: "2fb43c3342c57d572d95f192ad4f6203cf4b7462", class: "header", part: "nces__header" }, s("div", { key: "02652a2ed11d1b0f02afd75c62f5f2fc9848ee93" }, s("h3", { key: "79e7d6fd01342108973e864f4994e487b7c4dfef" }, "Page name"), s("p", { key: "33349e202231170b3dc18c397fee5fdf184edd0e" }, "Set the Scheduling Page name.", s("tooltip-component", { key: "d81d49009f51654a07978ce23ef3acb4cc2954c8" }, s("info-icon", { key: "1ea46e9ed9b15c6523dd6fdd08070c50ee3a9781", slot: "tooltip-icon" }), s("span", { key: "2672cb85dd1ad6bbe0012ef0d999da01c81e3938", slot: "tooltip-content" }, "By default, Scheduling Pages use your user name as the Page name. The Page name is displayed in the top-left corner of the calendar view.")))), this.showToggle && s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-page-name__body", part: "nces__body" }, s("div", { class: "nylas-page-name__section" }, s("div", { class: "nylas-page-name__row" }, s("div", { class: "input-container" }, s("div", { class: "nylas-page-name__input-wrapper" }, e && s("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "" }))))))));
|
|
4451
4528
|
}
|
|
4452
4529
|
static get formAssociated() {
|
|
4453
4530
|
return !0;
|
|
@@ -4462,8 +4539,8 @@ const ha = class {
|
|
|
4462
4539
|
};
|
|
4463
4540
|
}
|
|
4464
4541
|
};
|
|
4465
|
-
|
|
4466
|
-
|
|
4542
|
+
Es([
|
|
4543
|
+
I({
|
|
4467
4544
|
name: "nylas-page-name",
|
|
4468
4545
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4469
4546
|
eventToProps: {
|
|
@@ -4474,13 +4551,13 @@ us([
|
|
|
4474
4551
|
},
|
|
4475
4552
|
fireRegisterEvent: !0
|
|
4476
4553
|
}),
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
],
|
|
4481
|
-
|
|
4482
|
-
const
|
|
4483
|
-
var
|
|
4554
|
+
Kt("design:type", Function),
|
|
4555
|
+
Kt("design:paramtypes", []),
|
|
4556
|
+
Kt("design:returntype", void 0)
|
|
4557
|
+
], ba.prototype, "render", null);
|
|
4558
|
+
ba.style = xs;
|
|
4559
|
+
const Ss = ':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}', Os = Ss;
|
|
4560
|
+
var Ds = function(e, t, n, a) {
|
|
4484
4561
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4485
4562
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4486
4563
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4488,13 +4565,13 @@ var ys = function(e, t, n, a) {
|
|
|
4488
4565
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4489
4566
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4490
4567
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4491
|
-
},
|
|
4568
|
+
}, Qt = function(e, t) {
|
|
4492
4569
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4493
4570
|
return Reflect.metadata(e, t);
|
|
4494
4571
|
};
|
|
4495
|
-
const
|
|
4572
|
+
const ga = class {
|
|
4496
4573
|
constructor(e) {
|
|
4497
|
-
|
|
4574
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), this.bookingFormSubmitted = S(this, "bookingFormSubmitted", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.appearance = void 0, this.isOpen = !0, this.name = "page-styling", this.currentAppearance = void 0, this.customInputsSlot = null;
|
|
4498
4575
|
}
|
|
4499
4576
|
connectedCallback() {
|
|
4500
4577
|
d("nylas-page-styling", "connectedCallback");
|
|
@@ -4640,7 +4717,7 @@ const ma = class {
|
|
|
4640
4717
|
this.isOpen = !this.isOpen;
|
|
4641
4718
|
}
|
|
4642
4719
|
render() {
|
|
4643
|
-
return s(D, { key: "
|
|
4720
|
+
return s(D, { key: "1c79af526674539c4d9d6434727d3b068c768c94" }, s("div", { key: "396cf35d7c41884702620e0d1971395bbaf97da7", 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: "6e318b0db75553fe59b5e900a50b5ce196b15b22", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, s("div", { key: "ea19a264d0875fb94726c494e3f05fce0f3e780e", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, s("div", { key: "056be884696fb2b3391067ef6b723d5b28491f4c", class: "nylas-page-styling__row" }, s("div", { key: "fad29ffe76aa3cadf1e09df6466a173180c5549b", class: { subsection: !0, hide: !this.isOpen } }))))));
|
|
4644
4721
|
}
|
|
4645
4722
|
static get formAssociated() {
|
|
4646
4723
|
return !0;
|
|
@@ -4654,8 +4731,8 @@ const ma = class {
|
|
|
4654
4731
|
};
|
|
4655
4732
|
}
|
|
4656
4733
|
};
|
|
4657
|
-
|
|
4658
|
-
|
|
4734
|
+
Ds([
|
|
4735
|
+
I({
|
|
4659
4736
|
name: "nylas-page-styling",
|
|
4660
4737
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4661
4738
|
eventToProps: {
|
|
@@ -4666,13 +4743,13 @@ ys([
|
|
|
4666
4743
|
},
|
|
4667
4744
|
fireRegisterEvent: !0
|
|
4668
4745
|
}),
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
],
|
|
4673
|
-
|
|
4674
|
-
const
|
|
4675
|
-
var
|
|
4746
|
+
Qt("design:type", Function),
|
|
4747
|
+
Qt("design:paramtypes", []),
|
|
4748
|
+
Qt("design:returntype", void 0)
|
|
4749
|
+
], ga.prototype, "render", null);
|
|
4750
|
+
ga.style = Os;
|
|
4751
|
+
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-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}', Is = Hs;
|
|
4752
|
+
var Ts = function(e, t, n, a) {
|
|
4676
4753
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4677
4754
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4678
4755
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4680,14 +4757,14 @@ var vs = function(e, t, n, a) {
|
|
|
4680
4757
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4681
4758
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4682
4759
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4683
|
-
},
|
|
4760
|
+
}, en = function(e, t) {
|
|
4684
4761
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4685
4762
|
return Reflect.metadata(e, t);
|
|
4686
4763
|
};
|
|
4687
|
-
const
|
|
4764
|
+
const va = class {
|
|
4688
4765
|
constructor(e) {
|
|
4689
4766
|
var t;
|
|
4690
|
-
|
|
4767
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-booking-calendars", this.participants = ((t = this.selectedConfiguration) == null ? void 0 : t.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendar = {};
|
|
4691
4768
|
}
|
|
4692
4769
|
elementNameChangedHandler(e) {
|
|
4693
4770
|
d("nylas-participant-booking-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4717,11 +4794,11 @@ const ya = class {
|
|
|
4717
4794
|
if (!h)
|
|
4718
4795
|
return;
|
|
4719
4796
|
this.participantDefaultSelectedCalendar[f.email] = ((y = f.booking) == null ? void 0 : y.calendar_id) ?? "primary";
|
|
4720
|
-
const
|
|
4721
|
-
a[f.email] =
|
|
4797
|
+
const g = h.calendars ?? [];
|
|
4798
|
+
a[f.email] = g;
|
|
4722
4799
|
}), u == null || u.forEach((f) => {
|
|
4723
|
-
var h,
|
|
4724
|
-
(h = f == null ? void 0 : f.booking) != null && h.calendar_id && (a[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendar[f.email] = ((
|
|
4800
|
+
var h, g;
|
|
4801
|
+
(h = f == null ? void 0 : f.booking) != null && h.calendar_id && (a[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendar[f.email] = ((g = f == null ? void 0 : f.booking) == null ? void 0 : g.calendar_id) ?? "primary");
|
|
4725
4802
|
});
|
|
4726
4803
|
}
|
|
4727
4804
|
return n && (a[n.email] = this.calendars ?? [{ id: "primary", name: n.email }], this.participantDefaultSelectedCalendar[n.email] = ((c = n == null ? void 0 : n.booking) == null ? void 0 : c.calendar_id) ?? "primary"), a;
|
|
@@ -4799,8 +4876,8 @@ const ya = class {
|
|
|
4799
4876
|
};
|
|
4800
4877
|
}
|
|
4801
4878
|
};
|
|
4802
|
-
|
|
4803
|
-
|
|
4879
|
+
Ts([
|
|
4880
|
+
I({
|
|
4804
4881
|
name: "nylas-participant-booking-calendars",
|
|
4805
4882
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4806
4883
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -4810,13 +4887,13 @@ vs([
|
|
|
4810
4887
|
eventToProps: {},
|
|
4811
4888
|
fireRegisterEvent: !0
|
|
4812
4889
|
}),
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
],
|
|
4817
|
-
|
|
4818
|
-
const
|
|
4819
|
-
var
|
|
4890
|
+
en("design:type", Function),
|
|
4891
|
+
en("design:paramtypes", []),
|
|
4892
|
+
en("design:returntype", void 0)
|
|
4893
|
+
], va.prototype, "render", null);
|
|
4894
|
+
va.style = Is;
|
|
4895
|
+
const $s = ':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}', Ns = $s;
|
|
4896
|
+
var Ps = function(e, t, n, a) {
|
|
4820
4897
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4821
4898
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4822
4899
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4824,14 +4901,14 @@ var ws = function(e, t, n, a) {
|
|
|
4824
4901
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4825
4902
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4826
4903
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4827
|
-
},
|
|
4904
|
+
}, tn = function(e, t) {
|
|
4828
4905
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4829
4906
|
return Reflect.metadata(e, t);
|
|
4830
4907
|
};
|
|
4831
|
-
const
|
|
4908
|
+
const _a = class {
|
|
4832
4909
|
constructor(e) {
|
|
4833
4910
|
var t;
|
|
4834
|
-
|
|
4911
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-custom-availability", this.participants = ((t = this.selectedConfiguration) == null ? void 0 : t.participants) || [], this.selectedParticipants = this.setParticipants(this.participants);
|
|
4835
4912
|
}
|
|
4836
4913
|
elementNameChangedHandler(e) {
|
|
4837
4914
|
d("nylas-participants-custom-availability", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4859,7 +4936,7 @@ const ga = class {
|
|
|
4859
4936
|
var n, a, o;
|
|
4860
4937
|
d("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
|
|
4861
4938
|
const t = ((o = (a = (n = this.selectedConfiguration) == null ? void 0 : n.participants.find((i) => i.email === e.detail.name)) == null ? void 0 : a.availability) == null ? void 0 : o.open_hours) || [];
|
|
4862
|
-
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (t == null ? void 0 : t.length) > 0 ? t :
|
|
4939
|
+
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (t == null ? void 0 : t.length) > 0 ? t : $n : [], this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4863
4940
|
}
|
|
4864
4941
|
handleValueChanged(e) {
|
|
4865
4942
|
d("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
@@ -4919,20 +4996,20 @@ const ga = class {
|
|
|
4919
4996
|
};
|
|
4920
4997
|
}
|
|
4921
4998
|
};
|
|
4922
|
-
|
|
4923
|
-
|
|
4999
|
+
Ps([
|
|
5000
|
+
I({
|
|
4924
5001
|
name: "nylas-participants-custom-availability",
|
|
4925
5002
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4926
5003
|
eventToProps: {},
|
|
4927
5004
|
fireRegisterEvent: !0
|
|
4928
5005
|
}),
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
],
|
|
4933
|
-
|
|
4934
|
-
const
|
|
4935
|
-
var
|
|
5006
|
+
tn("design:type", Function),
|
|
5007
|
+
tn("design:paramtypes", []),
|
|
5008
|
+
tn("design:returntype", void 0)
|
|
5009
|
+
], _a.prototype, "render", null);
|
|
5010
|
+
_a.style = Ns;
|
|
5011
|
+
const As = ':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}', Fs = As;
|
|
5012
|
+
var Ms = function(e, t, n, a) {
|
|
4936
5013
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4937
5014
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4938
5015
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4940,13 +5017,13 @@ var Es = function(e, t, n, a) {
|
|
|
4940
5017
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4941
5018
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
4942
5019
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
4943
|
-
},
|
|
5020
|
+
}, nn = function(e, t) {
|
|
4944
5021
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4945
5022
|
return Reflect.metadata(e, t);
|
|
4946
5023
|
};
|
|
4947
|
-
const
|
|
5024
|
+
const Ca = class {
|
|
4948
5025
|
constructor(e) {
|
|
4949
|
-
|
|
5026
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "availability-method", this.selectedConfiguration = void 0, this.participantOptions = void 0, this.readOnly = !1, this.selectedBookingType = "";
|
|
4950
5027
|
}
|
|
4951
5028
|
connectedCallback() {
|
|
4952
5029
|
d("nylas-scheduling-method", "connectedCallback");
|
|
@@ -5007,8 +5084,8 @@ const ba = class {
|
|
|
5007
5084
|
};
|
|
5008
5085
|
}
|
|
5009
5086
|
};
|
|
5010
|
-
|
|
5011
|
-
|
|
5087
|
+
Ms([
|
|
5088
|
+
I({
|
|
5012
5089
|
name: "nylas-scheduling-method",
|
|
5013
5090
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5014
5091
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -5022,13 +5099,13 @@ Es([
|
|
|
5022
5099
|
},
|
|
5023
5100
|
fireRegisterEvent: !0
|
|
5024
5101
|
}),
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
],
|
|
5029
|
-
|
|
5030
|
-
const
|
|
5031
|
-
var
|
|
5102
|
+
nn("design:type", Function),
|
|
5103
|
+
nn("design:paramtypes", []),
|
|
5104
|
+
nn("design:returntype", void 0)
|
|
5105
|
+
], Ca.prototype, "render", null);
|
|
5106
|
+
Ca.style = Fs;
|
|
5107
|
+
const Ls = ':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}', Rs = Ls;
|
|
5108
|
+
var zs = function(e, t, n, a) {
|
|
5032
5109
|
var o = arguments.length, i = o < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
5033
5110
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5034
5111
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -5036,14 +5113,14 @@ var Ds = function(e, t, n, a) {
|
|
|
5036
5113
|
for (var r = e.length - 1; r >= 0; r--)
|
|
5037
5114
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
5038
5115
|
return o > 3 && i && Object.defineProperty(t, n, i), i;
|
|
5039
|
-
},
|
|
5116
|
+
}, an = function(e, t) {
|
|
5040
5117
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5041
5118
|
return Reflect.metadata(e, t);
|
|
5042
5119
|
};
|
|
5043
|
-
const
|
|
5120
|
+
const it = 15, wa = class {
|
|
5044
5121
|
constructor(e) {
|
|
5045
5122
|
var t, n, a, o, i, l;
|
|
5046
|
-
|
|
5123
|
+
v(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = (n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.duration_minutes, this.defaultIntervalMinutes = ((o = (a = this.selectedConfiguration) == null ? void 0 : a.availability) == null ? void 0 : o.interval_minutes) ?? this.eventDurationMinutes ?? 10, this.defaultRoundTo = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : l.round_to) ?? void 0, this.internalEventDurationMinutes = void 0, this.selectedInterval = void 0, this.selectedRoundTo = void 0, this.componentLoaded = !1;
|
|
5047
5124
|
}
|
|
5048
5125
|
elementNameChangedHandler(e) {
|
|
5049
5126
|
d("nylas-timeslot-interval", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -5091,19 +5168,19 @@ const at = 15, va = class {
|
|
|
5091
5168
|
d("nylas-timeslot-interval", "nylasFormDropdownChangedHandler", e.detail), e.detail.value === "duration" ? this.selectedInterval = this.internalEventDurationMinutes ?? 10 : this.selectedInterval = parseInt(e.detail.value), this.valueChanged.emit({
|
|
5092
5169
|
value: JSON.stringify({
|
|
5093
5170
|
interval: this.selectedInterval,
|
|
5094
|
-
roundTo: this.selectedRoundTo ? this.selectedInterval :
|
|
5171
|
+
roundTo: this.selectedRoundTo ? this.selectedInterval : it
|
|
5095
5172
|
}),
|
|
5096
5173
|
name: this.name
|
|
5097
|
-
}), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval :
|
|
5174
|
+
}), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval : it }), this.name);
|
|
5098
5175
|
}
|
|
5099
5176
|
nylasFormRadioChangedHandler(e) {
|
|
5100
5177
|
d("nylas-timeslot-interval", "nylasFormRadioChangedHandler", e.detail), e.detail.value === "no-rounding" ? this.selectedRoundTo = !1 : this.selectedRoundTo = !0, this.valueChanged.emit({
|
|
5101
5178
|
value: JSON.stringify({
|
|
5102
5179
|
interval: this.selectedInterval,
|
|
5103
|
-
roundTo: this.selectedRoundTo ? this.selectedInterval :
|
|
5180
|
+
roundTo: this.selectedRoundTo ? this.selectedInterval : it
|
|
5104
5181
|
}),
|
|
5105
5182
|
name: this.name
|
|
5106
|
-
}), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval :
|
|
5183
|
+
}), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval : it }), this.name);
|
|
5107
5184
|
}
|
|
5108
5185
|
render() {
|
|
5109
5186
|
const e = [
|
|
@@ -5116,7 +5193,7 @@ const at = 15, va = class {
|
|
|
5116
5193
|
{ value: "45", label: "45 mins" },
|
|
5117
5194
|
{ value: "60", label: "60 mins" }
|
|
5118
5195
|
], t = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? e[0] : e.find((n) => n.value == this.selectedInterval.toString()) ?? e[0] : void 0;
|
|
5119
|
-
return s(D, { key: "
|
|
5196
|
+
return s(D, { key: "d023457352eeadc973827939983e743cf3a36098" }, s("div", { key: "152a7bc2d36b7a6b960eb8a9622759aa4064abef", class: "nylas-timeslot-interval", part: "nti" }, s("div", { key: "db4dc5b87f379287622cda71f5b50a78f4e5f8d0", class: "header", part: "nti__header" }, s("h3", { key: "9a4a54adcd987b1231a5eb82d2e76a02ac1b1620" }, "Time slot settings")), s("div", { key: "6b52ee152593675f7058919a5752cfca3c659e8c", class: "nylas-timeslot-interval__dropdown" }, s("span", { key: "cf1b05d7944c4de9c8177fa3df8ec789711f2774", class: "label", part: "nti__input-label" }, "Time slot interval."), (t == null ? void 0 : t.label) && s("select-dropdown", { name: "interval-minutes", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: t }), s("span", { key: "f908eb193152bf3897bbdc2d8e22eb5e251c214d", slot: "label", class: "label", part: "nti__input-label" }, "Time slot rounding type", s("tooltip-component", { key: "fc19a8fc6a1b392740c10def5c789665ace669dd" }, s("info-icon", { key: "7ebbe33f951586d5a2ba8b58233759f1b3a2d6fb", slot: "tooltip-icon" }), s("span", { key: "89ffd6ecb6b1e92027bfffc1e676371bc20a1b13", slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), this.componentLoaded && s("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
|
|
5120
5197
|
{ value: "no-rounding", label: "Default", description: "Time slots will be rounded to the nearest quarter-hour." },
|
|
5121
5198
|
{
|
|
5122
5199
|
value: "rounding",
|
|
@@ -5138,47 +5215,47 @@ const at = 15, va = class {
|
|
|
5138
5215
|
};
|
|
5139
5216
|
}
|
|
5140
5217
|
};
|
|
5141
|
-
|
|
5142
|
-
|
|
5218
|
+
zs([
|
|
5219
|
+
I({
|
|
5143
5220
|
name: "nylas-timeslot-interval",
|
|
5144
5221
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
5145
5222
|
fireRegisterEvent: !0
|
|
5146
5223
|
}),
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
],
|
|
5151
|
-
|
|
5152
|
-
const
|
|
5224
|
+
an("design:type", Function),
|
|
5225
|
+
an("design:paramtypes", []),
|
|
5226
|
+
an("design:returntype", void 0)
|
|
5227
|
+
], wa.prototype, "render", null);
|
|
5228
|
+
wa.style = Rs;
|
|
5229
|
+
const js = ".sc-paintbrush-fill-icon-h{display:flex}", Bs = js, Us = class {
|
|
5153
5230
|
constructor(e) {
|
|
5154
|
-
|
|
5231
|
+
v(this, e), this.width = "16", this.height = "13";
|
|
5155
5232
|
}
|
|
5156
5233
|
render() {
|
|
5157
|
-
return s("svg", { key: "
|
|
5234
|
+
return s("svg", { key: "26fec4819c4b116471871d19d2a6564ae01bd00f", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "4f125d479d4e4d17d1dde53b52cf5983e093b501", 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" }));
|
|
5158
5235
|
}
|
|
5159
5236
|
};
|
|
5160
|
-
|
|
5161
|
-
const
|
|
5237
|
+
Us.style = Bs;
|
|
5238
|
+
const Ws = ".sc-paintbrush-icon-h{display:flex}", Zs = Ws, qs = class {
|
|
5162
5239
|
constructor(e) {
|
|
5163
|
-
|
|
5240
|
+
v(this, e), this.width = "16", this.height = "13";
|
|
5164
5241
|
}
|
|
5165
5242
|
render() {
|
|
5166
|
-
return s("svg", { key: "
|
|
5243
|
+
return s("svg", { key: "85e5c6f81de57e109b00e4aec6f696093a81c424", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "efc02074fed01030bfb99ae39e820746780ef1f6", 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" }));
|
|
5167
5244
|
}
|
|
5168
5245
|
};
|
|
5169
|
-
|
|
5170
|
-
const
|
|
5246
|
+
qs.style = Zs;
|
|
5247
|
+
const Gs = ".sc-people-icon-h{display:flex}", Vs = Gs, Js = class {
|
|
5171
5248
|
constructor(e) {
|
|
5172
|
-
|
|
5249
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
5173
5250
|
}
|
|
5174
5251
|
render() {
|
|
5175
|
-
return s("svg", { key: "
|
|
5252
|
+
return s("svg", { key: "acbfd88b6189408aa586cd7c9a71d452ddff3d95", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, s("path", { key: "4264b457347514e499a29c9491149802bd879477", 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" }));
|
|
5176
5253
|
}
|
|
5177
5254
|
};
|
|
5178
|
-
|
|
5179
|
-
const
|
|
5255
|
+
Js.style = Vs;
|
|
5256
|
+
const Ys = '.switch{--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;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-300);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:"";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}', Xs = Ys, Ks = class {
|
|
5180
5257
|
constructor(e) {
|
|
5181
|
-
|
|
5258
|
+
v(this, e), this.nylasFormSwitchToggled = S(this, "nylasFormSwitchToggled", 7), this.name = "toggle-switch", this.checked = !1, this.label = "", this.isChecked = this.checked;
|
|
5182
5259
|
}
|
|
5183
5260
|
componentWillLoad() {
|
|
5184
5261
|
this.isChecked = this.checked;
|
|
@@ -5191,66 +5268,69 @@ const Ms = '.switch{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-
|
|
|
5191
5268
|
});
|
|
5192
5269
|
}
|
|
5193
5270
|
render() {
|
|
5194
|
-
return s("label", { key: "
|
|
5271
|
+
return s("label", { key: "284da690eb9682916a3a3df20ca6dc2acfda9625", class: "switch", part: "ts_label" }, s("input", { key: "5fb30ec5b7a9e4217f3ea4743bacdfe34353e96a", type: "checkbox", part: "ts_input", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), s("div", { key: "8b1aa2b975fbb505b82a45ba0fb5c63954e15e0e", class: "slider round", part: "ts_slider" }));
|
|
5195
5272
|
}
|
|
5196
5273
|
};
|
|
5197
|
-
|
|
5198
|
-
const
|
|
5274
|
+
Ks.style = Xs;
|
|
5275
|
+
const Qs = ".sc-zoom-icon-h{display:flex}", el = Qs, tl = class {
|
|
5199
5276
|
constructor(e) {
|
|
5200
|
-
|
|
5277
|
+
v(this, e), this.width = "20", this.height = "20";
|
|
5201
5278
|
}
|
|
5202
5279
|
render() {
|
|
5203
|
-
return s("svg", { key: "
|
|
5280
|
+
return s("svg", { key: "1faf2c43a437493d12d1db6b070388ce8096c799", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "9a968605461e78c549e31ae298d49eafd00cc140", 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: "180aa5021fd06de38f462a7a77bf8e7fca8d4272", 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: "3216cf22538f854b1de60aaf313c3ce6d37364e1" }, s("linearGradient", { key: "9bb15b64bb3bb66c569686b6736614540b80cb12", id: "paint0_linear_22_6272", x1: "10", y1: "19.9954", x2: "10", y2: "-0.00455379", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "e3fc1136aacbd8f24109242bb50d3663ddae5439", "stop-color": "#003FAE" }), s("stop", { key: "74b3d41fff072e3919e4b4067452b2df471bdb45", offset: "0.02", "stop-color": "#0142B7" }), s("stop", { key: "ee1007eba36ebdf5a64df909e3876874c04efedf", offset: "0.09", "stop-color": "#044BD1" }), s("stop", { key: "a6dbecba4ad760ebb5aec51c0d2589132e018224", offset: "0.16", "stop-color": "#0752E5" }), s("stop", { key: "2588f3ab94060ac14fb42120b38bcdda51936c83", offset: "0.24", "stop-color": "#0958F4" }), s("stop", { key: "06cc69310aec46cf08382653b4f7e958b0037a1e", offset: "0.34", "stop-color": "#0A5BFC" }), s("stop", { key: "9db3de1e12a7a8a7ba57037670266051e70e1ffc", offset: "0.5", "stop-color": "#0B5CFF" }))));
|
|
5204
5281
|
}
|
|
5205
5282
|
};
|
|
5206
|
-
|
|
5283
|
+
tl.style = el;
|
|
5207
5284
|
export {
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
Pn as
|
|
5225
|
-
An as
|
|
5226
|
-
Fn as
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
Kn as
|
|
5230
|
-
Qn as
|
|
5231
|
-
ea as
|
|
5232
|
-
ta as
|
|
5233
|
-
na as
|
|
5234
|
-
aa as
|
|
5235
|
-
ia as
|
|
5236
|
-
oa as
|
|
5237
|
-
sa as
|
|
5238
|
-
la as
|
|
5239
|
-
ra as
|
|
5240
|
-
da as
|
|
5241
|
-
ca as
|
|
5242
|
-
pa as
|
|
5243
|
-
fa as
|
|
5244
|
-
ua as
|
|
5245
|
-
ha as
|
|
5246
|
-
ma as
|
|
5247
|
-
ya as
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
va as
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5285
|
+
$a as calendar_agenda_fill_icon,
|
|
5286
|
+
Aa as calendar_agenda_icon,
|
|
5287
|
+
La as calendar_info_icon,
|
|
5288
|
+
ja as calendar_patterns_icon,
|
|
5289
|
+
Wa as checkmark_icon,
|
|
5290
|
+
Ga as dragable_icon,
|
|
5291
|
+
Ya as envelope_fill_icon,
|
|
5292
|
+
Qa as envelope_icon,
|
|
5293
|
+
ni as eye_icon,
|
|
5294
|
+
oi as feedback_icon,
|
|
5295
|
+
ri as flow_icon,
|
|
5296
|
+
pi as google_meet_icon,
|
|
5297
|
+
Nn as input_image_url,
|
|
5298
|
+
bi as location_icon,
|
|
5299
|
+
_i as location_off_icon,
|
|
5300
|
+
ki as microsoft_teams_icon,
|
|
5301
|
+
Pn as nylas_additional_participants,
|
|
5302
|
+
An as nylas_availability_picker,
|
|
5303
|
+
Fn as nylas_booking_calendar_picker,
|
|
5304
|
+
Mn as nylas_booking_confirmation_redirect,
|
|
5305
|
+
Ln as nylas_booking_confirmation_type,
|
|
5306
|
+
Kn as nylas_booking_form_config,
|
|
5307
|
+
Qn as nylas_buffer_time,
|
|
5308
|
+
ea as nylas_calendar_picker,
|
|
5309
|
+
ta as nylas_cancellation_policy,
|
|
5310
|
+
na as nylas_confirmation_email,
|
|
5311
|
+
aa as nylas_connected_calendars,
|
|
5312
|
+
ia as nylas_custom_booking_flow,
|
|
5313
|
+
oa as nylas_custom_event_slug,
|
|
5314
|
+
sa as nylas_customize_booking_settings,
|
|
5315
|
+
la as nylas_event_description,
|
|
5316
|
+
ra as nylas_event_duration,
|
|
5317
|
+
da as nylas_event_info,
|
|
5318
|
+
ca as nylas_event_limits,
|
|
5319
|
+
pa as nylas_event_location,
|
|
5320
|
+
fa as nylas_event_title,
|
|
5321
|
+
ua as nylas_feedback_form,
|
|
5322
|
+
ha as nylas_limit_future_bookings,
|
|
5323
|
+
ma as nylas_min_booking_notice,
|
|
5324
|
+
ya as nylas_min_cancellation_notice,
|
|
5325
|
+
ba as nylas_page_name,
|
|
5326
|
+
ga as nylas_page_styling,
|
|
5327
|
+
va as nylas_participant_booking_calendars,
|
|
5328
|
+
_a as nylas_participants_custom_availability,
|
|
5329
|
+
Ca as nylas_scheduling_method,
|
|
5330
|
+
wa as nylas_timeslot_interval,
|
|
5331
|
+
Us as paintbrush_fill_icon,
|
|
5332
|
+
qs as paintbrush_icon,
|
|
5333
|
+
Js as people_icon,
|
|
5334
|
+
Ks as toggle_switch,
|
|
5335
|
+
tl as zoom_icon
|
|
5256
5336
|
};
|