@nylas/react 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abstract-provider-efe136bd-2041bdce.js +187 -0
- package/dist/abstract-provider-efe136bd-b4663c02.cjs +1 -0
- package/dist/add-circle-icon_2.entry-5204c48a.cjs +1 -0
- package/dist/add-circle-icon_2.entry-ea1692a4.js +26 -0
- package/dist/archive-icon.entry-0b585dff.js +16 -0
- package/dist/archive-icon.entry-c2c66bca.cjs +1 -0
- package/dist/{arrow-icon.entry-9414299f.js → arrow-icon.entry-2e61394e.js} +5 -5
- package/dist/arrow-icon.entry-9d471162.cjs +1 -0
- package/dist/{bold-icon.entry-c781e9c1.cjs → bold-icon.entry-5c37622f.cjs} +1 -1
- package/dist/{bold-icon.entry-b72aed9f.js → bold-icon.entry-8ef1b653.js} +2 -2
- package/dist/{button-component_2.entry-73f76545.cjs → button-component_2.entry-8335ee1e.cjs} +1 -1
- package/dist/{button-component_2.entry-36e49459.js → button-component_2.entry-c906230f.js} +9 -9
- package/dist/calendar-agenda-fill-icon_36.entry-59c0a997.cjs +6 -0
- package/dist/{calendar-agenda-fill-icon_36.entry-efa7ad26.js → calendar-agenda-fill-icon_36.entry-5f184433.js} +900 -881
- package/dist/{calendar-cancel-icon.entry-01c388eb.cjs → calendar-cancel-icon.entry-65a4a34e.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-0f739a8a.js → calendar-cancel-icon.entry-dd6ac4db.js} +5 -5
- package/dist/{calendar-check-icon_2.entry-5febbadf.cjs → calendar-check-icon_2.entry-ded15038.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-dfb0036d.js → calendar-check-icon_2.entry-f9b50bb8.js} +3 -3
- package/dist/{calendar-icon.entry-f197396d.js → calendar-icon.entry-a2a1ddbc.js} +2 -2
- package/dist/{calendar-icon.entry-9743e0b7.cjs → calendar-icon.entry-ca512dd6.cjs} +1 -1
- package/dist/checkbox-component_2.entry-d6128246.js +115 -0
- package/dist/checkbox-component_2.entry-d79b5d1d.cjs +1 -0
- package/dist/checkbox-group_4.entry-2946c7ef.cjs +28 -0
- package/dist/{nylas-event-calendar_3.entry-9abd46c2.js → checkbox-group_4.entry-e5145451.js} +1038 -923
- package/dist/{checkmark-icon_15.entry-5c09cff5.js → checkmark-icon_15.entry-6e92e93e.js} +19 -19
- package/dist/{checkmark-icon_15.entry-35dd97b7.cjs → checkmark-icon_15.entry-a75a1825.cjs} +2 -2
- package/dist/{chevron-icon_3.entry-4a72f211.js → chevron-icon_3.entry-6eaa3513.js} +16 -16
- package/dist/{chevron-icon_3.entry-e0608b7c.cjs → chevron-icon_3.entry-9193a885.cjs} +1 -1
- package/dist/{clock-icon_4.entry-0afe79c2.js → clock-icon_4.entry-2c93270e.js} +8 -8
- package/dist/{clock-icon_4.entry-202ce025.cjs → clock-icon_4.entry-ae2272f4.cjs} +1 -1
- package/dist/{customParseFormat-d1de5ed0-c0ef002d.js → customParseFormat-edc38d83-b3722499.js} +1 -1
- package/dist/{customParseFormat-d1de5ed0-65a0bba3.cjs → customParseFormat-edc38d83-fa9c77d9.cjs} +1 -1
- package/dist/{delete-icon.entry-580bfcc9.js → delete-icon.entry-6684eba6.js} +2 -2
- package/dist/{delete-icon.entry-762ac892.cjs → delete-icon.entry-b9e4f2c7.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-4e0f0c61.cjs → document-refresh-icon.entry-7afe6163.cjs} +1 -1
- package/dist/document-refresh-icon.entry-fba9f60b.js +16 -0
- package/dist/{feedbackSync-172f942c-42124493.js → feedbackSync-e4378c0b-23289195.js} +811 -798
- package/dist/{feedbackSync-172f942c-62f72bd2.cjs → feedbackSync-e4378c0b-7876d067.cjs} +26 -26
- package/dist/{folder-icon.entry-54c3cc66.js → folder-icon.entry-430c6b47.js} +4 -4
- package/dist/{folder-icon.entry-2694e253.cjs → folder-icon.entry-b1632bf3.cjs} +1 -1
- package/dist/{forward-icon.entry-5e540f05.js → forward-icon.entry-5e53da76.js} +2 -2
- package/dist/{forward-icon.entry-f07102d8.cjs → forward-icon.entry-7626dcca.cjs} +1 -1
- package/dist/{globe-icon_2.entry-aaceb196.js → globe-icon_2.entry-646eae41.js} +20 -20
- package/dist/{globe-icon_2.entry-14a4c168.cjs → globe-icon_2.entry-bbb0a6ce.cjs} +1 -1
- package/dist/{google-logo-icon_6.entry-00d40db2.js → google-logo-icon_6.entry-5951a546.js} +682 -488
- package/dist/google-logo-icon_6.entry-e39dd9cb.cjs +2 -0
- package/dist/{google-meet-icon_5.entry-f1f05903.js → google-meet-icon_5.entry-a54c83da.js} +14 -14
- package/dist/{google-meet-icon_5.entry-6c20e149.cjs → google-meet-icon_5.entry-c13e0738.cjs} +1 -1
- package/dist/inbox-icon.entry-7bee82b3.js +16 -0
- package/dist/inbox-icon.entry-911b047a.cjs +1 -0
- package/dist/index-71f61ea9.js +24544 -0
- package/dist/index-f769bc2a.cjs +118 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.es-6a9d55cf-122c27e0.js +2724 -0
- package/dist/index.es-6a9d55cf-458ba0e0.cjs +7 -0
- package/dist/{info-icon_2.entry-bbcefb9a.cjs → info-icon_2.entry-471b836b.cjs} +1 -1
- package/dist/{info-icon_2.entry-b3b313ab.js → info-icon_2.entry-6ff2f004.js} +3 -3
- package/dist/{input-component.entry-401b9ba5.js → input-component.entry-781b584c.js} +12 -12
- package/dist/{input-component.entry-ec8e8e7c.cjs → input-component.entry-b6a9b4cb.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-c37f392c.js → input-dropdown_2.entry-1feebcba.js} +3 -3
- package/dist/{input-dropdown_2.entry-8cb11601.cjs → input-dropdown_2.entry-c71d14ff.cjs} +1 -1
- package/dist/{italic-icon.entry-6675558a.cjs → italic-icon.entry-16debde5.cjs} +1 -1
- package/dist/italic-icon.entry-9ef7f4a2.js +16 -0
- package/dist/{elements → lib/elements}/index.d.ts +1 -1
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/main.d.ts +0 -0
- package/dist/lib/notetaker/CalendarSync/CalendarSync.d.ts +37 -0
- package/dist/lib/notetaker/CalendarSync/CalendarSync.spec.d.ts +0 -0
- package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +31 -0
- package/dist/lib/notetaker/SendNotetaker/SendNotetaker.spec.d.ts +1 -0
- package/dist/lib/notetaker/Transcript/Transcript.d.ts +23 -0
- package/dist/lib/notetaker/Transcript/Transcript.spec.d.ts +0 -0
- package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +22 -0
- package/dist/lib/notetaker/VideoPlayer/VideoPlayer.spec.d.ts +1 -0
- package/dist/lib/notetaker/index.d.ts +9 -0
- package/dist/lib/notetaker/lib/constants.d.ts +12 -0
- package/dist/lib/notetaker/lib/http-client.d.ts +2 -0
- package/dist/lib/notetaker/lib/primitives.d.ts +66 -0
- package/dist/lib/notetaker/lib/store.d.ts +7 -0
- package/dist/lib/notetaker/types.d.ts +42 -0
- package/dist/multi-select-dropdown.entry-0a6f9417.cjs +1 -0
- package/dist/multi-select-dropdown.entry-1b27c746.js +121 -0
- package/dist/nylas-booked-event-card_11.entry-74fba802.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-e7464ae7.js → nylas-booked-event-card_11.entry-802671ee.js} +469 -534
- package/dist/{nylas-form-card.entry-cbb00fba.cjs → nylas-form-card.entry-59a837c9.cjs} +1 -1
- package/dist/{nylas-form-card.entry-a3186807.js → nylas-form-card.entry-7da9a312.js} +3 -3
- package/dist/nylas-notification_2.entry-8f8bad34.cjs +1 -0
- package/dist/nylas-notification_2.entry-b16bb805.js +85 -0
- package/dist/{nylas-scheduler-editor.entry-7b188a38.js → nylas-scheduler-editor.entry-cbe3e1e3.js} +160 -136
- package/dist/nylas-scheduler-editor.entry-e33e11fb.cjs +2 -0
- package/dist/nylas-scheduling.entry-4223e50b.cjs +1 -0
- package/dist/{nylas-scheduling.entry-e9929b03.js → nylas-scheduling.entry-6fb094a8.js} +295 -295
- package/dist/{person-icon.entry-d2856f08.js → person-icon.entry-6232e6fd.js} +7 -7
- package/dist/{person-icon.entry-8998fdb8.cjs → person-icon.entry-beb26b48.cjs} +1 -1
- package/dist/play-icon.entry-16a1c1ac.js +16 -0
- package/dist/{play-icon.entry-99eb969b.cjs → play-icon.entry-9060d0d8.cjs} +1 -1
- package/dist/{radio-button-group.entry-bc3b12fd.js → radio-button-group.entry-5a3728cd.js} +2 -2
- package/dist/{radio-button-group.entry-d66edd04.cjs → radio-button-group.entry-6935c39d.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +135 -126
- package/dist/{refresh-icon.entry-99d1982d.cjs → refresh-icon.entry-2411b2e1.cjs} +1 -1
- package/dist/{refresh-icon.entry-d6df8b1c.js → refresh-icon.entry-4f56e72b.js} +2 -2
- package/dist/{register-component-62d792d4-448b6a43.js → register-component-a1c3d7b4-774feacc.js} +1 -1
- package/dist/{register-component-62d792d4-c6e7d129.cjs → register-component-a1c3d7b4-97d7a6f5.cjs} +1 -1
- package/dist/{reply-all-icon.entry-d7c44139.cjs → reply-all-icon.entry-b4b6926b.cjs} +1 -1
- package/dist/{reply-all-icon.entry-7ebf01a0.js → reply-all-icon.entry-b4b917ec.js} +2 -2
- package/dist/{reply-icon.entry-d1622d85.js → reply-icon.entry-24f6f4c6.js} +5 -5
- package/dist/{reply-icon.entry-058c00e8.cjs → reply-icon.entry-454545ed.cjs} +1 -1
- package/dist/sent-icon.entry-d9a79336.cjs +1 -0
- package/dist/sent-icon.entry-fa59ce85.js +16 -0
- package/dist/spam-icon.entry-da39987e.cjs +1 -0
- package/dist/spam-icon.entry-fb18a08b.js +16 -0
- package/dist/{star-icon.entry-98b80645.js → star-icon.entry-406472c1.js} +4 -4
- package/dist/{star-icon.entry-4db13fdb.cjs → star-icon.entry-833f35a7.cjs} +1 -1
- package/dist/{stop-icon.entry-0290fd30.js → stop-icon.entry-1b6ae838.js} +2 -2
- package/dist/{stop-icon.entry-9d7b53fd.cjs → stop-icon.entry-3258db59.cjs} +1 -1
- package/dist/style.css +1 -0
- package/dist/test/vitest.setup.d.ts +0 -0
- package/dist/{textarea-component.entry-9b474ab5.cjs → textarea-component.entry-0ae18897.cjs} +1 -1
- package/dist/{textarea-component.entry-a62c257b.js → textarea-component.entry-569a281e.js} +2 -2
- package/dist/{toggle-switch.entry-5dbfcd48.cjs → toggle-switch.entry-60d75f16.cjs} +1 -1
- package/dist/{toggle-switch.entry-e423b793.js → toggle-switch.entry-dc3f796b.js} +4 -4
- package/dist/{translate-icon.entry-60c55a2e.js → translate-icon.entry-297cf20f.js} +4 -4
- package/dist/{translate-icon.entry-f82fa6fc.cjs → translate-icon.entry-c183ecb5.cjs} +1 -1
- package/dist/trash-fill-icon.entry-3d8a2e5e.js +16 -0
- package/dist/trash-fill-icon.entry-94d4f66c.cjs +1 -0
- package/dist/{underline-icon.entry-40028bc6.js → underline-icon.entry-4a9105c7.js} +2 -2
- package/dist/{underline-icon.entry-0807a43d.cjs → underline-icon.entry-50d1e766.cjs} +1 -1
- package/package.json +41 -17
- package/dist/add-circle-icon_2.entry-8a1c55bc.cjs +0 -1
- package/dist/add-circle-icon_2.entry-b4bbcfee.js +0 -26
- package/dist/archive-icon.entry-a2492cf3.js +0 -16
- package/dist/archive-icon.entry-e48d2356.cjs +0 -1
- package/dist/arrow-icon.entry-b1ecb2aa.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs +0 -6
- package/dist/checkbox-component.entry-1aa5782f.cjs +0 -1
- package/dist/checkbox-component.entry-72a6aa72.js +0 -43
- package/dist/document-refresh-icon.entry-e500b4e3.js +0 -16
- package/dist/google-logo-icon_6.entry-fa76ffe3.cjs +0 -2
- package/dist/inbox-icon.entry-9a4628f2.cjs +0 -1
- package/dist/inbox-icon.entry-aa78ba8c.js +0 -16
- package/dist/index-1e75512f.cjs +0 -57
- package/dist/index-e8380973.js +0 -18492
- package/dist/index.es-fc8588de-034ead51.cjs +0 -7
- package/dist/index.es-fc8588de-c943eef6.js +0 -2908
- package/dist/italic-icon.entry-0e85d0d9.js +0 -16
- package/dist/multi-select-dropdown_2.entry-3eecf18a.js +0 -193
- package/dist/multi-select-dropdown_2.entry-e37c501d.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-fddc9ab8.cjs +0 -1
- package/dist/nylas-event-calendar_3.entry-e6669bbf.cjs +0 -11
- package/dist/nylas-scheduler-editor.entry-5c92901a.cjs +0 -2
- package/dist/nylas-scheduling.entry-970240f6.cjs +0 -1
- package/dist/play-icon.entry-f949a80f.js +0 -16
- package/dist/sent-icon.entry-6c604512.cjs +0 -1
- package/dist/sent-icon.entry-fe12bc2f.js +0 -16
- package/dist/spam-icon.entry-45e5292e.cjs +0 -1
- package/dist/spam-icon.entry-b97c7709.js +0 -16
- package/dist/trash-fill-icon.entry-095caae3.cjs +0 -1
- package/dist/trash-fill-icon.entry-825055fd.js +0 -16
- package/dist/warning-icon.entry-24e37759.js +0 -16
- package/dist/warning-icon.entry-fce7c14f.cjs +0 -1
- /package/dist/{elements → lib/elements}/react-component-lib/createComponent.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/index.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/interfaces.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/case.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/dev.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/index.d.ts +0 -0
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { r as x, h as i, a as S, b as c, i as d, K as ge, L as ie, M as Zn, H, g as
|
|
2
|
-
import { R as
|
|
3
|
-
import { D as
|
|
1
|
+
import { r as x, h as i, a as S, b as c, i as d, K as ge, L as ie, M as Zn, H as O, g as H, O as Yn, y as jn, P as fa, Q as he } from "./index-71f61ea9.js";
|
|
2
|
+
import { R as L } from "./register-component-a1c3d7b4-774feacc.js";
|
|
3
|
+
import { D as ya, T as Xn, d as Kn, F as Vn, L as nt, a as Qn } from "./constants-f51538ef-e0a5f026.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
7
|
+
const at = ".sc-calendar-agenda-fill-icon-h{display:flex}", tt = at, lt = class {
|
|
8
8
|
constructor(e) {
|
|
9
9
|
x(this, e), this.width = "20", this.height = "20";
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return i("svg", { key: "
|
|
12
|
+
return i("svg", { key: "4d2692ba987b54cd822e4c2d2a945dd8d78fe87e", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "0d0911951649a49fc2b4d20aa22f329edbee4956", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM11 3.5C11 3.25454 10.8231 3.05039 10.5899 3.00806L10.5 3H3.5L3.41012 3.00806C3.17688 3.05039 3 3.25454 3 3.5C3 3.74546 3.17688 3.94961 3.41012 3.99194L3.5 4H10.5L10.5899 3.99194C10.8231 3.94961 11 3.74546 11 3.5ZM11 7C11 6.75454 10.8231 6.55039 10.5899 6.50806L10.5 6.5H3.5L3.41012 6.50806C3.17688 6.55039 3 6.75454 3 7C3 7.24546 3.17688 7.44961 3.41012 7.49194L3.5 7.5H10.5L10.5899 7.49194C10.8231 7.44961 11 7.24546 11 7ZM11 10.5C11 10.2545 10.8231 10.0504 10.5899 10.0081L10.5 10H3.5L3.41012 10.0081C3.17688 10.0504 3 10.2545 3 10.5C3 10.7455 3.17688 10.9496 3.41012 10.9919L3.5 11H10.5L10.5899 10.9919C10.8231 10.9496 11 10.7455 11 10.5Z", fill: "currentColor" }));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
const
|
|
15
|
+
lt.style = tt;
|
|
16
|
+
const ot = ".sc-calendar-agenda-icon-h{display:flex}", it = ot, st = class {
|
|
17
17
|
constructor(e) {
|
|
18
18
|
x(this, e), this.width = "20", this.height = "20";
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return i("svg", { key: "
|
|
21
|
+
return i("svg", { key: "73067881feeacd7becb2872f91f78229996f06dd", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "b8cc97d711af2084d8f199f1d26225f895f4d873", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM13 11.5V2.5C13 1.67157 12.3284 1 11.5 1H2.5C1.67157 1 1 1.67157 1 2.5V11.5C1 12.3284 1.67157 13 2.5 13H11.5C12.3284 13 13 12.3284 13 11.5ZM11 3.5C11 3.74546 10.8231 3.94961 10.5899 3.99194L10.5 4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.25454 3.17688 3.05039 3.41012 3.00806L3.5 3H10.5C10.7761 3 11 3.22386 11 3.5ZM11 7C11 7.24546 10.8231 7.44961 10.5899 7.49194L10.5 7.5H3.5C3.22386 7.5 3 7.27614 3 7C3 6.75454 3.17688 6.55039 3.41012 6.50806L3.5 6.5H10.5C10.7761 6.5 11 6.72386 11 7ZM11 10.5C11 10.7455 10.8231 10.9496 10.5899 10.9919L10.5 11H3.5C3.22386 11 3 10.7761 3 10.5C3 10.2545 3.17688 10.0504 3.41012 10.0081L3.5 10H10.5C10.7761 10 11 10.2239 11 10.5Z", fill: "currentColor" }));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
const
|
|
24
|
+
st.style = it;
|
|
25
|
+
const rt = ".sc-calendar-info-icon-h{display:flex}", ct = rt, dt = class {
|
|
26
26
|
constructor(e) {
|
|
27
27
|
x(this, e), this.width = "20", this.height = "20";
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return i("svg", { key: "
|
|
30
|
+
return i("svg", { key: "f669579bc064342b8b9fb206cd44599e39e477ad", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "a47118680962ca99de81caafcc3b170613b04d67", d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" }));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
const
|
|
33
|
+
dt.style = ct;
|
|
34
|
+
const ft = ".sc-calendar-patterns-icon-h{display:flex}", yt = ft, pt = class {
|
|
35
35
|
constructor(e) {
|
|
36
36
|
x(this, e), this.width = "20", this.height = "20";
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return i("svg", { key: "
|
|
39
|
+
return i("svg", { key: "2afd2ccb552cd665562dbf4aca6a930a7ccdacba", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "24d819b137f5b54bad4e5bb377c94ec207f40244", d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" }));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
const
|
|
42
|
+
pt.style = yt;
|
|
43
|
+
const ut = ".sc-envelope-fill-icon-h{display:flex}", mt = ut, gt = class {
|
|
44
44
|
constructor(e) {
|
|
45
45
|
x(this, e), this.width = "16", this.height = "13";
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return i("svg", { key: "
|
|
48
|
+
return i("svg", { key: "51f91ea0e05bdccf58f2cbec9a8ec304c61cb72b", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "53ceed83e62664cee1dbc066a38a93155b07c431", d: "M16.0001 3.373V10.5C16.0001 11.8807 14.8808 13 13.5001 13H2.50008C1.11937 13 0 11.8807 0 10.5V3.373L7.74657 7.93097C7.90304 8.02301 8.09711 8.02301 8.25359 7.93097L16.0001 3.373ZM13.5001 0C14.7871 0 15.847 0.972604 15.9849 2.22293L8.00008 6.91991L0.0152595 2.22293C0.153116 0.972604 1.21302 0 2.50008 0H13.5001Z", fill: "currentColor" }));
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
const
|
|
51
|
+
gt.style = mt;
|
|
52
|
+
const ht = ".sc-envelope-icon-h{display:flex}", bt = ht, vt = class {
|
|
53
53
|
constructor(e) {
|
|
54
54
|
x(this, e), this.width = "16", this.height = "13";
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return i("svg", { key: "
|
|
57
|
+
return i("svg", { key: "53fcb3957d4b940474e02225992b858084cf8c34", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "aace3e91683a8803f0af19725937ff364c24e0aa", d: "M13.5 0C14.8807 0 16 1.11929 16 2.5V10.5C16 11.8807 14.8807 13 13.5 13H2.5C1.11929 13 0 11.8807 0 10.5V2.5C0 1.11929 1.11929 0 2.5 0H13.5ZM15 3.961L8.25351 7.93097C8.12311 8.00767 7.96661 8.02045 7.82751 7.96932L7.74649 7.93097L1 3.963V10.5C1 11.3284 1.67157 12 2.5 12H13.5C14.3284 12 15 11.3284 15 10.5V3.961ZM13.5 1H2.5C1.67157 1 1 1.67157 1 2.5V2.802L8 6.91991L15 2.801V2.5C15 1.67157 14.3284 1 13.5 1Z", fill: "currentColor" }));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
const
|
|
60
|
+
vt.style = bt;
|
|
61
|
+
const _t = ".sc-flow-icon-h{display:flex}", Ct = _t, wt = class {
|
|
62
62
|
constructor(e) {
|
|
63
63
|
x(this, e), this.width = "16", this.height = "12";
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return i("svg", { key: "
|
|
66
|
+
return i("svg", { key: "c7d337e1c5d39a765590b62afc45c802c7a47af0", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "99140d48f0bc3b908054196a24c4a3c47abf4c27", d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" }));
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
var
|
|
72
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
69
|
+
wt.style = Ct;
|
|
70
|
+
const kt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', xt = kt;
|
|
71
|
+
var Et = function(e, n, a, t) {
|
|
72
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
73
73
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
74
74
|
l = Reflect.decorate(e, n, a, t);
|
|
75
75
|
else
|
|
76
|
-
for (var
|
|
77
|
-
(
|
|
76
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
77
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
78
78
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
79
79
|
}, an = function(e, n) {
|
|
80
80
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
81
81
|
return Reflect.metadata(e, n);
|
|
82
82
|
};
|
|
83
|
-
const
|
|
83
|
+
const pa = class {
|
|
84
84
|
constructor(e) {
|
|
85
85
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "availability", this.selectedConfiguration = void 0, this.openHours = void 0, this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.hideHeader = !1, this.selectedLanguage = void 0, this.schedule = {
|
|
86
86
|
SUN: [],
|
|
@@ -97,7 +97,7 @@ const fa = class {
|
|
|
97
97
|
}
|
|
98
98
|
configChangedHandler(e) {
|
|
99
99
|
var t, o, l;
|
|
100
|
-
const n = ((o = (t = e == null ? void 0 : e.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : o.default_open_hours) ??
|
|
100
|
+
const n = ((o = (t = e == null ? void 0 : e.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : o.default_open_hours) ?? ya, a = ((l = e == null ? void 0 : e.event_booking) == null ? void 0 : l.timezone) || this.defaultTimezone;
|
|
101
101
|
this.timezone = this.name === "availability" ? a : this.defaultTimezone, this.openHours && this.openHours.length > 0 ? this.openHoursToSchedule(this.openHours) : n && this.openHoursToSchedule(n);
|
|
102
102
|
}
|
|
103
103
|
scheduleChanged(e, n = !0) {
|
|
@@ -106,8 +106,8 @@ const fa = class {
|
|
|
106
106
|
if (Object.keys(e).forEach((o) => {
|
|
107
107
|
const l = e[o];
|
|
108
108
|
if (l.length > 0) {
|
|
109
|
-
const
|
|
110
|
-
|
|
109
|
+
const s = this.getOverlaps(l);
|
|
110
|
+
s.length > 0 && (a[o] = s);
|
|
111
111
|
}
|
|
112
112
|
}), this.overlapDays = a, Object.keys(a).length > 0) {
|
|
113
113
|
const o = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(Object.keys(a)[0]);
|
|
@@ -152,7 +152,7 @@ const fa = class {
|
|
|
152
152
|
c("nylas-availability-picker", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
153
153
|
}
|
|
154
154
|
componentDidLoad() {
|
|
155
|
-
c("nylas-availability-picker", "componentDidLoad"), this.selectedConfiguration ? this.configChangedHandler(this.selectedConfiguration) : this.timezone = this.defaultTimezone;
|
|
155
|
+
c("nylas-availability-picker", "componentDidLoad"), this.selectedConfiguration ? this.configChangedHandler(this.selectedConfiguration) : (this.timezone = this.defaultTimezone, this.openHours && this.openHoursToSchedule(this.openHours));
|
|
156
156
|
const e = {
|
|
157
157
|
openHours: this.scheduleToOpenHours(this.schedule),
|
|
158
158
|
timezone: this.timezone
|
|
@@ -179,24 +179,24 @@ const fa = class {
|
|
|
179
179
|
if (n.length === 0)
|
|
180
180
|
this.schedule[e] = [{ start: "09:00am", end: "05:00pm" }];
|
|
181
181
|
else {
|
|
182
|
-
const o = n.map((
|
|
183
|
-
start: ge(
|
|
184
|
-
end: ge(
|
|
185
|
-
})).sort((
|
|
182
|
+
const o = n.map((s) => ({
|
|
183
|
+
start: ge(s.start),
|
|
184
|
+
end: ge(s.end)
|
|
185
|
+
})).sort((s, r) => s.start - r.start), l = o[o.length - 1].end;
|
|
186
186
|
if (l + 60 <= t)
|
|
187
187
|
this.schedule[e].push({
|
|
188
188
|
start: ie(he(l)),
|
|
189
189
|
end: ie(he(l + 60))
|
|
190
190
|
});
|
|
191
191
|
else {
|
|
192
|
-
let
|
|
192
|
+
let s = !1;
|
|
193
193
|
if (o[0].start > a + 60 && (this.schedule[e].push({
|
|
194
194
|
start: ie(he(a)),
|
|
195
195
|
end: ie(he(a + 60))
|
|
196
|
-
}),
|
|
197
|
-
for (let
|
|
198
|
-
const f = o[
|
|
199
|
-
if (o[
|
|
196
|
+
}), s = !0), !s)
|
|
197
|
+
for (let r = 0; r < o.length - 1; r++) {
|
|
198
|
+
const f = o[r].end;
|
|
199
|
+
if (o[r + 1].start - f >= 60) {
|
|
200
200
|
this.schedule[e].push({
|
|
201
201
|
start: ie(he(f)),
|
|
202
202
|
end: ie(he(f + 60))
|
|
@@ -212,8 +212,8 @@ const fa = class {
|
|
|
212
212
|
this.schedule[e].splice(n, 1), this.schedule = { ...this.schedule }, this.scheduleChanged(this.schedule);
|
|
213
213
|
}
|
|
214
214
|
setTime(e) {
|
|
215
|
-
const { key: n, value: a } = e.detail, [t, o] = n.split("_"), [l,
|
|
216
|
-
o === "start" ? this.schedule[l][
|
|
215
|
+
const { key: n, value: a } = e.detail, [t, o] = n.split("_"), [l, s] = t.split(":");
|
|
216
|
+
o === "start" ? this.schedule[l][s].start = a : o === "end" && (this.schedule[l][s].end = a), this.internals.setValidity({ customError: !1 }), this.schedule = { ...this.schedule }, this.scheduleChanged(this.schedule);
|
|
217
217
|
}
|
|
218
218
|
setFormError(e) {
|
|
219
219
|
var l;
|
|
@@ -232,9 +232,9 @@ const fa = class {
|
|
|
232
232
|
};
|
|
233
233
|
e.forEach((a) => {
|
|
234
234
|
a.days.forEach((t) => {
|
|
235
|
-
const o = this.getDayKey(t), l = ie(a.start),
|
|
235
|
+
const o = this.getDayKey(t), l = ie(a.start), s = ie(a.end), r = { start: l, end: s };
|
|
236
236
|
let f = !1;
|
|
237
|
-
n[o] && (f = n[o].some((y) => y.start ===
|
|
237
|
+
n[o] && (f = n[o].some((y) => y.start === r.start && y.end === r.end)), f || (n[o] ? n[o].push(r) : n[o] = [r]);
|
|
238
238
|
});
|
|
239
239
|
}), this.schedule = n, this.scheduleChanged(this.schedule, !1);
|
|
240
240
|
}
|
|
@@ -244,10 +244,10 @@ const fa = class {
|
|
|
244
244
|
scheduleToOpenHours(e) {
|
|
245
245
|
const n = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], a = /* @__PURE__ */ new Map();
|
|
246
246
|
n.forEach((o, l) => {
|
|
247
|
-
e[o] && e[o].forEach((
|
|
248
|
-
const
|
|
247
|
+
e[o] && e[o].forEach((s) => {
|
|
248
|
+
const r = Zn(s.start), f = Zn(s.end), y = `${r}-${f}`;
|
|
249
249
|
if (!a.has(y))
|
|
250
|
-
a.set(y, { days: [l], start:
|
|
250
|
+
a.set(y, { days: [l], start: r, end: f });
|
|
251
251
|
else {
|
|
252
252
|
const u = a.get(y);
|
|
253
253
|
u && (u.days.push(l), a.set(y, u));
|
|
@@ -269,14 +269,14 @@ const fa = class {
|
|
|
269
269
|
label: Xn[a],
|
|
270
270
|
value: a
|
|
271
271
|
})), n = e.find((a) => a.value === this.timezone);
|
|
272
|
-
return i(
|
|
272
|
+
return i(O, { key: "be484e8f8b3e1c359674ab43c676da1a6a3ea523" }, i("div", { key: "224ad64626ed2f21663a1fd1c17659cbe8c79eab", class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && i("div", { class: "header", part: "nap__header" }, i("h3", null, d.t("nylasAvailabilityPicker.headerTitle")), i("p", null, d.t("nylasAvailabilityPicker.headerSubTitle"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasAvailabilityPicker.tooltip.desc"))))), i("div", { key: "c72d5a34de6538bdc159fbf29746dfe8d797e751", class: "content" }, i("div", { key: "b5d260f05ea19917ac102e5b6314fa9f095368f4", class: "select-timezone", part: "nap__select-timezone" }, i("h4", { key: "7d663e16d41d811024455e9e47552a3659e47bf7", class: "sub-header" }, d.t("nylasAvailabilityPicker.selectTimezone")), (n == null ? void 0 : n.label) && i("select-dropdown", { name: "timezone", searchPlaceholder: d.t("search"), exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, defaultSelectedOption: n }, i("span", { slot: "select-icon" }, i("globe-icon", { width: "20", height: "20" })))), i("div", { key: "3fded3d9c8210cdcac73f5ee334d15b20c82fa3e", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((a) => {
|
|
273
273
|
const t = a, o = this.schedule[a];
|
|
274
274
|
return i("div", { class: "availability-day" }, i("div", { class: "day", part: "nap__day" }, i("input", { type: "checkbox", name: t, id: t, checked: o.length > 0, onClick: () => {
|
|
275
275
|
o.length > 0 ? this.schedule[t] = [] : this.schedule[t] = [{ start: "09:00am", end: "05:00pm" }], this.schedule = { ...this.schedule }, this.scheduleChanged(this.schedule);
|
|
276
|
-
} }), i("label", { htmlFor: t, "aria-label": "Select day" }, d.t(`nylasAvailabilityPicker.days.${t}`))), i("div", { class: "time-ranges", part: "nap__time-ranges" }, o.length ? null : i("span", { class: "unavailable" }, d.t("nylasAvailabilityPicker.unavailable")), o.length > 0 && o.map((l,
|
|
276
|
+
} }), i("label", { htmlFor: t, "aria-label": "Select day" }, d.t(`nylasAvailabilityPicker.days.${t}`))), i("div", { class: "time-ranges", part: "nap__time-ranges" }, o.length ? null : i("span", { class: "unavailable" }, d.t("nylasAvailabilityPicker.unavailable")), o.length > 0 && o.map((l, s) => {
|
|
277
277
|
var y, u;
|
|
278
|
-
const
|
|
279
|
-
return i("div", { class: "time-range", part: "nap__time-range" }, i("div", { class: "pickers" }, i("nylas-time-window-picker", { id:
|
|
278
|
+
const r = `${a}:${s}_start`, f = `${a}:${s}_end`;
|
|
279
|
+
return i("div", { class: "time-range", part: "nap__time-range" }, i("div", { class: "pickers" }, i("nylas-time-window-picker", { id: r, hasError: (y = this.overlapDays[t]) == null ? void 0 : y.includes(s), time: l.start, name: r, key: r, language: this.selectedLanguage, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), i("span", null, " - "), i("nylas-time-window-picker", { id: f, hasError: (u = this.overlapDays[t]) == null ? void 0 : u.includes(s), time: l.end, name: f, key: f, minimumStartTime: l.start, language: this.selectedLanguage, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), i("button", { onClick: () => this.removeTimeRange(t, s) }, i("close-icon", null)));
|
|
280
280
|
}), i("p", { class: "error" }, this.overlapDays[t] ? "Overlapping time ranges" : "")), i("div", null, o.length > 0 ? i("button", { onClick: () => this.addTimeRange(t), part: "nap__add-time-range" }, i("add-circle-icon", null)) : null));
|
|
281
281
|
})))));
|
|
282
282
|
}
|
|
@@ -284,7 +284,7 @@ const fa = class {
|
|
|
284
284
|
return !0;
|
|
285
285
|
}
|
|
286
286
|
get host() {
|
|
287
|
-
return
|
|
287
|
+
return H(this);
|
|
288
288
|
}
|
|
289
289
|
static get watchers() {
|
|
290
290
|
return {
|
|
@@ -294,8 +294,8 @@ const fa = class {
|
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
Et([
|
|
298
|
+
L({
|
|
299
299
|
name: "nylas-availability-picker",
|
|
300
300
|
stateToProps: /* @__PURE__ */ new Map([
|
|
301
301
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -306,22 +306,22 @@ kt([
|
|
|
306
306
|
an("design:type", Function),
|
|
307
307
|
an("design:paramtypes", []),
|
|
308
308
|
an("design:returntype", void 0)
|
|
309
|
-
],
|
|
310
|
-
|
|
311
|
-
const
|
|
312
|
-
var
|
|
313
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
309
|
+
], pa.prototype, "render", null);
|
|
310
|
+
pa.style = xt;
|
|
311
|
+
const St = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:var(--nylas-base-900);font-size:16px;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ot = St;
|
|
312
|
+
var Ht = function(e, n, a, t) {
|
|
313
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
314
314
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
315
315
|
l = Reflect.decorate(e, n, a, t);
|
|
316
316
|
else
|
|
317
|
-
for (var
|
|
318
|
-
(
|
|
317
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
318
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
319
319
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
320
320
|
}, tn = function(e, n) {
|
|
321
321
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
322
322
|
return Reflect.metadata(e, n);
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const ua = class {
|
|
325
325
|
constructor(e) {
|
|
326
326
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.name = "booking-calendar", this.defaultBookingCalendar = "", this.hideHeader = !1, this.expressFlow = !1, this.selectedLanguage = void 0, this.selectedCalendar = "";
|
|
327
327
|
}
|
|
@@ -337,7 +337,7 @@ const ya = class {
|
|
|
337
337
|
componentDidLoad() {
|
|
338
338
|
var a, t, o, l;
|
|
339
339
|
c("nylas-booking-calendar-picker", "componentDidLoad");
|
|
340
|
-
const e = (t = (a = this.calendars) == null ? void 0 : a.find((
|
|
340
|
+
const e = (t = (a = this.calendars) == null ? void 0 : a.find((s) => s.is_primary)) == null ? void 0 : t.id, n = (l = (o = this.calendars) == null ? void 0 : o[0]) == null ? void 0 : l.id;
|
|
341
341
|
this.defaultBookingCalendar = this.defaultBookingCalendar || e || n || "", this.isInternalsAvailable && this.internals.setFormValue(this.defaultBookingCalendar.toString(), this.name), this.selectedCalendar = this.defaultBookingCalendar;
|
|
342
342
|
}
|
|
343
343
|
componentWillUpdate() {
|
|
@@ -374,20 +374,20 @@ const ya = class {
|
|
|
374
374
|
}
|
|
375
375
|
render() {
|
|
376
376
|
var o, l;
|
|
377
|
-
const e = ((o = this.currentUserCalendars) == null ? void 0 : o.map((
|
|
378
|
-
value:
|
|
379
|
-
label:
|
|
380
|
-
}))) ?? [], n = ((l = this.calendars) == null ? void 0 : l.map((
|
|
381
|
-
value:
|
|
382
|
-
label:
|
|
383
|
-
}))) ?? [], a = (n == null ? void 0 : n.length) > 0 ? n : e || [], t = a.find((
|
|
384
|
-
return i(
|
|
377
|
+
const e = ((o = this.currentUserCalendars) == null ? void 0 : o.map((s) => ({
|
|
378
|
+
value: s.id,
|
|
379
|
+
label: s.name
|
|
380
|
+
}))) ?? [], n = ((l = this.calendars) == null ? void 0 : l.map((s) => ({
|
|
381
|
+
value: s.id,
|
|
382
|
+
label: s.name
|
|
383
|
+
}))) ?? [], a = (n == null ? void 0 : n.length) > 0 ? n : e || [], t = a.find((s) => s.value == this.defaultBookingCalendar);
|
|
384
|
+
return i(O, null, i("div", { class: "nylas-booking-calendar-picker", part: "nbcp" }, !this.hideHeader && i("div", { class: "header", part: "nbcp__header" }, i("h3", null, d.t("nylasBookingCalendarPicker.headerTitle")), i("p", null, d.t("nylasBookingCalendarPicker.headerSubTitle"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasBookingCalendarPicker.tooltip.desc"))))), a.length > 0 ? i("div", { class: "nylas-booking-calendar-picker__dropdown" }, i("select-dropdown", { name: "booking-calendar", options: [{ value: "", label: d.t("nylasBookingCalendarPicker.selectOptionLabel") }, ...a], withSearch: !1, required: this.expressFlow, emptyValue: d.t("nylasBookingCalendarPicker.selectOptionLabel"), errorMessage: d.t("nylasBookingCalendarPicker.selectCalendarErrorMessage"), exportparts: "sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content", defaultSelectedOption: t || null })) : i("div", { class: "nylas-booking-calendar-picker__loading" }, i("span", { class: "label" }, d.t("nylasBookingCalendarPicker.tooltip.desc"), " ", i("info-icon", null)), i("div", { class: "loading-button" }, i("span", null, d.t("loading"), "...")))));
|
|
385
385
|
}
|
|
386
386
|
static get formAssociated() {
|
|
387
387
|
return !0;
|
|
388
388
|
}
|
|
389
389
|
get host() {
|
|
390
|
-
return
|
|
390
|
+
return H(this);
|
|
391
391
|
}
|
|
392
392
|
static get watchers() {
|
|
393
393
|
return {
|
|
@@ -397,8 +397,8 @@ const ya = class {
|
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
Ht([
|
|
401
|
+
L({
|
|
402
402
|
name: "nylas-booking-calendar-picker",
|
|
403
403
|
stateToProps: /* @__PURE__ */ new Map([
|
|
404
404
|
["schedulerConfig.calendars", "currentUserCalendars"],
|
|
@@ -416,22 +416,22 @@ St([
|
|
|
416
416
|
tn("design:type", Function),
|
|
417
417
|
tn("design:paramtypes", []),
|
|
418
418
|
tn("design:returntype", void 0)
|
|
419
|
-
],
|
|
420
|
-
|
|
421
|
-
const
|
|
422
|
-
var
|
|
423
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
419
|
+
], ua.prototype, "render", null);
|
|
420
|
+
ua.style = Ot;
|
|
421
|
+
const Lt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-booking-confirmation-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)}', Dt = Lt;
|
|
422
|
+
var It = function(e, n, a, t) {
|
|
423
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
424
424
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
425
425
|
l = Reflect.decorate(e, n, a, t);
|
|
426
426
|
else
|
|
427
|
-
for (var
|
|
428
|
-
(
|
|
427
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
428
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
429
429
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
430
430
|
}, ln = function(e, n) {
|
|
431
431
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
432
432
|
return Reflect.metadata(e, n);
|
|
433
433
|
};
|
|
434
|
-
const
|
|
434
|
+
const ma = class {
|
|
435
435
|
constructor(e) {
|
|
436
436
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-redirect", this.redirectUrl = "", this.redirectUrlErrorMessage = "", this.selectedLanguage = void 0, this.currentRedirectUrl = "", this.acceptUrl = void 0, this.componentLoaded = !1;
|
|
437
437
|
}
|
|
@@ -503,13 +503,13 @@ const pa = class {
|
|
|
503
503
|
value: "custom"
|
|
504
504
|
}
|
|
505
505
|
];
|
|
506
|
-
return i(
|
|
506
|
+
return i(O, { key: "cdeb8b02f983324f32eab10e0562d104e6502aaf" }, i("div", { key: "5e3acf615cebba5d2d78fbfd2c3cf6e4fe4dcd2a", class: "nylas-booking-confirmation-redirect", part: "nbcr" }, e.length > 0 && i("div", { class: "nylas-booking-confirmation-redirect__dropdown" }, i("span", { class: "label" }, d.t("nylasBookingConfirmationRedirect.dropdownLabel"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasBookingConfirmationRedirect.tooltip.desc")))), this.componentLoaded && i("select-dropdown", { name: "confirmation-redirect-dropdown", options: e, withSearch: !1, defaultSelectedOption: e.find((n) => n.value === (this.acceptUrl ? "custom" : "default")), exportparts: "sd_dropdown: nbcr__dropdown, sd_dropdown-button: nbcr__dropdown-button, sd_dropdown-content: nbcr__dropdown-content" }), this.acceptUrl && i("div", null, i("input-component", { name: "confirmation-redirect", id: "confirmation-redirect", type: "text", placeholder: "Enter custom redirect URL", required: !1, part: "ic__input_wrapper: nbcr__input-textfield", defaultValue: this.currentRedirectUrl }), this.redirectUrlErrorMessage && i("span", { class: "error-message" }, this.redirectUrlErrorMessage)))));
|
|
507
507
|
}
|
|
508
508
|
static get formAssociated() {
|
|
509
509
|
return !0;
|
|
510
510
|
}
|
|
511
511
|
get host() {
|
|
512
|
-
return
|
|
512
|
+
return H(this);
|
|
513
513
|
}
|
|
514
514
|
static get watchers() {
|
|
515
515
|
return {
|
|
@@ -519,8 +519,8 @@ const pa = class {
|
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
It([
|
|
523
|
+
L({
|
|
524
524
|
name: "nylas-booking-confirmation-redirect",
|
|
525
525
|
stateToProps: /* @__PURE__ */ new Map([
|
|
526
526
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -537,22 +537,22 @@ Dt([
|
|
|
537
537
|
ln("design:type", Function),
|
|
538
538
|
ln("design:paramtypes", []),
|
|
539
539
|
ln("design:returntype", void 0)
|
|
540
|
-
],
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
var
|
|
544
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
540
|
+
], ma.prototype, "render", null);
|
|
541
|
+
ma.style = Dt;
|
|
542
|
+
const Ft = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-booking-confirmation-type{width:inherit;display:flex;flex-direction:column;margin-bottom:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Tt = Ft;
|
|
543
|
+
var $t = function(e, n, a, t) {
|
|
544
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
545
545
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
546
546
|
l = Reflect.decorate(e, n, a, t);
|
|
547
547
|
else
|
|
548
|
-
for (var
|
|
549
|
-
(
|
|
548
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
549
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
550
550
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
551
551
|
}, on = function(e, n) {
|
|
552
552
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
553
553
|
return Reflect.metadata(e, n);
|
|
554
554
|
};
|
|
555
|
-
const
|
|
555
|
+
const ga = class {
|
|
556
556
|
constructor(e) {
|
|
557
557
|
var n, a;
|
|
558
558
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-type", this.bookingType = "booking", this.showComponent = ((a = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : a.booking_type) !== "custom-confirmation", this.selectedLanguage = void 0, this.selectedBookingType = void 0, this.showDropdown = void 0;
|
|
@@ -562,7 +562,7 @@ const ua = class {
|
|
|
562
562
|
}
|
|
563
563
|
selectedConfigurationChangedHandler(e) {
|
|
564
564
|
var n, a, t, o;
|
|
565
|
-
c("nylas-booking-confirmation-type", "selectedConfigurationChangedHandler", e), (n = e == null ? void 0 : e.event_booking) != null && n.booking_type && (this.selectedBookingType = (a = e == null ? void 0 : e.event_booking) == null ? void 0 : a.booking_type, this.showDropdown = ((t = e == null ? void 0 : e.event_booking) == null ? void 0 : t.booking_type) !== "custom-confirmation" && !!((o = e == null ? void 0 : e.scheduler) != null && o.organizer_confirmation_url));
|
|
565
|
+
c("nylas-booking-confirmation-type", "selectedConfigurationChangedHandler", e), (n = e == null ? void 0 : e.event_booking) != null && n.booking_type && (this.selectedBookingType = (a = e == null ? void 0 : e.event_booking) == null ? void 0 : a.booking_type, this.showDropdown = ((t = e == null ? void 0 : e.event_booking) == null ? void 0 : t.booking_type) !== "custom-confirmation" && !!((o = e == null ? void 0 : e.scheduler) != null && o.organizer_confirmation_url), this.isInternalsAvailable && this.internals.setFormValue(this.selectedBookingType.toString(), this.name));
|
|
566
566
|
}
|
|
567
567
|
selectedLanguageChangedHandler(e, n) {
|
|
568
568
|
e !== n && d.changeLanguage(e);
|
|
@@ -577,7 +577,7 @@ const ua = class {
|
|
|
577
577
|
c("nylas-booking-confirmation-type", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
578
578
|
}
|
|
579
579
|
componentDidLoad() {
|
|
580
|
-
c("nylas-booking-confirmation-type", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.selectedBookingType = this.bookingType || "booking", this.showDropdown = this.showComponent), this.internals.setFormValue(this.selectedBookingType.toString(), this.name);
|
|
580
|
+
c("nylas-booking-confirmation-type", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.selectedBookingType = this.bookingType || "booking", this.showDropdown = this.showComponent), this.isInternalsAvailable && this.internals.setFormValue(this.selectedBookingType.toString(), this.name);
|
|
581
581
|
}
|
|
582
582
|
componentWillUpdate() {
|
|
583
583
|
c("nylas-booking-confirmation-type", "componentWillUpdate");
|
|
@@ -591,6 +591,9 @@ const ua = class {
|
|
|
591
591
|
componentDidRender() {
|
|
592
592
|
c("nylas-booking-confirmation-type", "componentDidRender");
|
|
593
593
|
}
|
|
594
|
+
get isInternalsAvailable() {
|
|
595
|
+
return typeof this.internals.setFormValue == "function" && typeof this.internals.setFormValue == "function";
|
|
596
|
+
}
|
|
594
597
|
nylasFormDropdownChangedHandler(e) {
|
|
595
598
|
c("nylas-booking-confirmation-type", "nylasFormDropdownChangedHandler", e.detail);
|
|
596
599
|
const n = (a) => {
|
|
@@ -610,13 +613,13 @@ const ua = class {
|
|
|
610
613
|
value: "organizer-confirmation"
|
|
611
614
|
}
|
|
612
615
|
];
|
|
613
|
-
return i(
|
|
616
|
+
return i(O, { key: "d7a8b1d66ca61c17b00d8d891358a31268f10461" }, this.showDropdown && i("div", { class: "nylas-booking-confirmation-type", part: "nbct" }, e.length > 0 && i("div", { class: "nylas-booking-confirmation-type__dropdown" }, i("span", { class: "label" }, d.t("nylasBookingConfirmationType.dropdownLabel"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasBookingConfirmationType.tooltip.desc")))), this.selectedBookingType && i("select-dropdown", { name: "booking-type", options: e, withSearch: !1, exportparts: "sd_dropdown: nbct__dropdown, sd_dropdown-button: nbct__dropdown-button, sd_dropdown-content: nbct__dropdown-content", defaultSelectedOption: e.find((n) => n.value == this.selectedBookingType) }))));
|
|
614
617
|
}
|
|
615
618
|
static get formAssociated() {
|
|
616
619
|
return !0;
|
|
617
620
|
}
|
|
618
621
|
get host() {
|
|
619
|
-
return
|
|
622
|
+
return H(this);
|
|
620
623
|
}
|
|
621
624
|
static get watchers() {
|
|
622
625
|
return {
|
|
@@ -626,8 +629,8 @@ const ua = class {
|
|
|
626
629
|
};
|
|
627
630
|
}
|
|
628
631
|
};
|
|
629
|
-
|
|
630
|
-
|
|
632
|
+
$t([
|
|
633
|
+
L({
|
|
631
634
|
name: "nylas-booking-confirmation-type",
|
|
632
635
|
stateToProps: /* @__PURE__ */ new Map([
|
|
633
636
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -644,8 +647,8 @@ It([
|
|
|
644
647
|
on("design:type", Function),
|
|
645
648
|
on("design:paramtypes", []),
|
|
646
649
|
on("design:returntype", void 0)
|
|
647
|
-
],
|
|
648
|
-
|
|
650
|
+
], ga.prototype, "render", null);
|
|
651
|
+
ga.style = Tt;
|
|
649
652
|
/**!
|
|
650
653
|
* Sortable 1.15.6
|
|
651
654
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -662,11 +665,11 @@ function ea(e, n) {
|
|
|
662
665
|
}
|
|
663
666
|
return a;
|
|
664
667
|
}
|
|
665
|
-
function
|
|
668
|
+
function Q(e) {
|
|
666
669
|
for (var n = 1; n < arguments.length; n++) {
|
|
667
670
|
var a = arguments[n] != null ? arguments[n] : {};
|
|
668
671
|
n % 2 ? ea(Object(a), !0).forEach(function(t) {
|
|
669
|
-
|
|
672
|
+
Nt(e, t, a[t]);
|
|
670
673
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : ea(Object(a)).forEach(function(t) {
|
|
671
674
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(a, t));
|
|
672
675
|
});
|
|
@@ -681,7 +684,7 @@ function qe(e) {
|
|
|
681
684
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
682
685
|
}, qe(e);
|
|
683
686
|
}
|
|
684
|
-
function
|
|
687
|
+
function Nt(e, n, a) {
|
|
685
688
|
return n in e ? Object.defineProperty(e, n, {
|
|
686
689
|
value: a,
|
|
687
690
|
enumerable: !0,
|
|
@@ -699,7 +702,7 @@ function ae() {
|
|
|
699
702
|
return e;
|
|
700
703
|
}, ae.apply(this, arguments);
|
|
701
704
|
}
|
|
702
|
-
function
|
|
705
|
+
function Pt(e, n) {
|
|
703
706
|
if (e == null)
|
|
704
707
|
return {};
|
|
705
708
|
var a = {}, t = Object.keys(e), o, l;
|
|
@@ -707,10 +710,10 @@ function $t(e, n) {
|
|
|
707
710
|
o = t[l], !(n.indexOf(o) >= 0) && (a[o] = e[o]);
|
|
708
711
|
return a;
|
|
709
712
|
}
|
|
710
|
-
function
|
|
713
|
+
function At(e, n) {
|
|
711
714
|
if (e == null)
|
|
712
715
|
return {};
|
|
713
|
-
var a =
|
|
716
|
+
var a = Pt(e, n), t, o;
|
|
714
717
|
if (Object.getOwnPropertySymbols) {
|
|
715
718
|
var l = Object.getOwnPropertySymbols(e);
|
|
716
719
|
for (o = 0; o < l.length; o++)
|
|
@@ -718,20 +721,20 @@ function Nt(e, n) {
|
|
|
718
721
|
}
|
|
719
722
|
return a;
|
|
720
723
|
}
|
|
721
|
-
var
|
|
724
|
+
var Rt = "1.15.6";
|
|
722
725
|
function ne(e) {
|
|
723
726
|
if (typeof window < "u" && window.navigator)
|
|
724
727
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
725
728
|
}
|
|
726
|
-
var te = ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
729
|
+
var te = ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ae = ne(/Edge/i), na = ne(/firefox/i), Fe = ne(/safari/i) && !ne(/chrome/i) && !ne(/android/i), Wn = ne(/iP(ad|od|hone)/i), ha = ne(/chrome/i) && ne(/android/i), ba = {
|
|
727
730
|
capture: !1,
|
|
728
731
|
passive: !1
|
|
729
732
|
};
|
|
730
733
|
function E(e, n, a) {
|
|
731
|
-
e.addEventListener(n, a, !te &&
|
|
734
|
+
e.addEventListener(n, a, !te && ba);
|
|
732
735
|
}
|
|
733
736
|
function k(e, n, a) {
|
|
734
|
-
e.removeEventListener(n, a, !te &&
|
|
737
|
+
e.removeEventListener(n, a, !te && ba);
|
|
735
738
|
}
|
|
736
739
|
function Xe(e, n) {
|
|
737
740
|
if (n) {
|
|
@@ -749,7 +752,7 @@ function Xe(e, n) {
|
|
|
749
752
|
return !1;
|
|
750
753
|
}
|
|
751
754
|
}
|
|
752
|
-
function
|
|
755
|
+
function va(e) {
|
|
753
756
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
754
757
|
}
|
|
755
758
|
function X(e, n, a, t) {
|
|
@@ -760,7 +763,7 @@ function X(e, n, a, t) {
|
|
|
760
763
|
return e;
|
|
761
764
|
if (e === a)
|
|
762
765
|
break;
|
|
763
|
-
} while (e =
|
|
766
|
+
} while (e = va(e));
|
|
764
767
|
}
|
|
765
768
|
return null;
|
|
766
769
|
}
|
|
@@ -794,7 +797,7 @@ function we(e, n) {
|
|
|
794
797
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
795
798
|
return o && new o(a);
|
|
796
799
|
}
|
|
797
|
-
function
|
|
800
|
+
function _a(e, n, a) {
|
|
798
801
|
if (e) {
|
|
799
802
|
var t = e.getElementsByTagName(n), o = 0, l = t.length;
|
|
800
803
|
if (a)
|
|
@@ -804,28 +807,28 @@ function ba(e, n, a) {
|
|
|
804
807
|
}
|
|
805
808
|
return [];
|
|
806
809
|
}
|
|
807
|
-
function
|
|
810
|
+
function V() {
|
|
808
811
|
var e = document.scrollingElement;
|
|
809
812
|
return e || document.documentElement;
|
|
810
813
|
}
|
|
811
814
|
function $(e, n, a, t, o) {
|
|
812
815
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
813
|
-
var l,
|
|
814
|
-
if (e !== window && e.parentNode && e !==
|
|
816
|
+
var l, s, r, f, y, u, p;
|
|
817
|
+
if (e !== window && e.parentNode && e !== V() ? (l = e.getBoundingClientRect(), s = l.top, r = l.left, f = l.bottom, y = l.right, u = l.height, p = l.width) : (s = 0, r = 0, f = window.innerHeight, y = window.innerWidth, u = window.innerHeight, p = window.innerWidth), (n || a) && e !== window && (o = o || e.parentNode, !te))
|
|
815
818
|
do
|
|
816
819
|
if (o && o.getBoundingClientRect && (h(o, "transform") !== "none" || a && h(o, "position") !== "static")) {
|
|
817
820
|
var g = o.getBoundingClientRect();
|
|
818
|
-
|
|
821
|
+
s -= g.top + parseInt(h(o, "border-top-width")), r -= g.left + parseInt(h(o, "border-left-width")), f = s + l.height, y = r + l.width;
|
|
819
822
|
break;
|
|
820
823
|
}
|
|
821
824
|
while (o = o.parentNode);
|
|
822
825
|
if (t && e !== window) {
|
|
823
|
-
var
|
|
824
|
-
|
|
826
|
+
var v = we(o || e), _ = v && v.a, w = v && v.d;
|
|
827
|
+
v && (s /= w, r /= _, p /= _, u /= w, f = s + u, y = r + p);
|
|
825
828
|
}
|
|
826
829
|
return {
|
|
827
|
-
top:
|
|
828
|
-
left:
|
|
830
|
+
top: s,
|
|
831
|
+
left: r,
|
|
829
832
|
bottom: f,
|
|
830
833
|
right: y,
|
|
831
834
|
width: p,
|
|
@@ -835,20 +838,20 @@ function $(e, n, a, t, o) {
|
|
|
835
838
|
}
|
|
836
839
|
function ta(e, n, a) {
|
|
837
840
|
for (var t = ce(e, !0), o = $(e)[n]; t; ) {
|
|
838
|
-
var l = $(t)[a],
|
|
839
|
-
if (a === "top" || a === "left" ?
|
|
841
|
+
var l = $(t)[a], s = void 0;
|
|
842
|
+
if (a === "top" || a === "left" ? s = o >= l : s = o <= l, !s)
|
|
840
843
|
return t;
|
|
841
|
-
if (t ===
|
|
844
|
+
if (t === V())
|
|
842
845
|
break;
|
|
843
846
|
t = ce(t, !1);
|
|
844
847
|
}
|
|
845
848
|
return !1;
|
|
846
849
|
}
|
|
847
850
|
function ke(e, n, a, t) {
|
|
848
|
-
for (var o = 0, l = 0,
|
|
849
|
-
if (
|
|
851
|
+
for (var o = 0, l = 0, s = e.children; l < s.length; ) {
|
|
852
|
+
if (s[l].style.display !== "none" && s[l] !== b.ghost && (t || s[l] !== b.dragged) && X(s[l], a.draggable, e, !1)) {
|
|
850
853
|
if (o === n)
|
|
851
|
-
return
|
|
854
|
+
return s[l];
|
|
852
855
|
o++;
|
|
853
856
|
}
|
|
854
857
|
l++;
|
|
@@ -869,15 +872,15 @@ function G(e, n) {
|
|
|
869
872
|
return a;
|
|
870
873
|
}
|
|
871
874
|
function la(e) {
|
|
872
|
-
var n = 0, a = 0, t =
|
|
875
|
+
var n = 0, a = 0, t = V();
|
|
873
876
|
if (e)
|
|
874
877
|
do {
|
|
875
|
-
var o = we(e), l = o.a,
|
|
876
|
-
n += e.scrollLeft * l, a += e.scrollTop *
|
|
878
|
+
var o = we(e), l = o.a, s = o.d;
|
|
879
|
+
n += e.scrollLeft * l, a += e.scrollTop * s;
|
|
877
880
|
} while (e !== t && (e = e.parentNode));
|
|
878
881
|
return [n, a];
|
|
879
882
|
}
|
|
880
|
-
function
|
|
883
|
+
function Mt(e, n) {
|
|
881
884
|
for (var a in e)
|
|
882
885
|
if (e.hasOwnProperty(a)) {
|
|
883
886
|
for (var t in n)
|
|
@@ -888,33 +891,33 @@ function Rt(e, n) {
|
|
|
888
891
|
}
|
|
889
892
|
function ce(e, n) {
|
|
890
893
|
if (!e || !e.getBoundingClientRect)
|
|
891
|
-
return
|
|
894
|
+
return V();
|
|
892
895
|
var a = e, t = !1;
|
|
893
896
|
do
|
|
894
897
|
if (a.clientWidth < a.scrollWidth || a.clientHeight < a.scrollHeight) {
|
|
895
898
|
var o = h(a);
|
|
896
899
|
if (a.clientWidth < a.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || a.clientHeight < a.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
897
900
|
if (!a.getBoundingClientRect || a === document.body)
|
|
898
|
-
return
|
|
901
|
+
return V();
|
|
899
902
|
if (t || n)
|
|
900
903
|
return a;
|
|
901
904
|
t = !0;
|
|
902
905
|
}
|
|
903
906
|
}
|
|
904
907
|
while (a = a.parentNode);
|
|
905
|
-
return
|
|
908
|
+
return V();
|
|
906
909
|
}
|
|
907
|
-
function
|
|
910
|
+
function zt(e, n) {
|
|
908
911
|
if (e && n)
|
|
909
912
|
for (var a in n)
|
|
910
913
|
n.hasOwnProperty(a) && (e[a] = n[a]);
|
|
911
914
|
return e;
|
|
912
915
|
}
|
|
913
|
-
function
|
|
916
|
+
function sn(e, n) {
|
|
914
917
|
return Math.round(e.top) === Math.round(n.top) && Math.round(e.left) === Math.round(n.left) && Math.round(e.height) === Math.round(n.height) && Math.round(e.width) === Math.round(n.width);
|
|
915
918
|
}
|
|
916
919
|
var Te;
|
|
917
|
-
function
|
|
920
|
+
function Ca(e, n) {
|
|
918
921
|
return function() {
|
|
919
922
|
if (!Te) {
|
|
920
923
|
var a = arguments, t = this;
|
|
@@ -924,28 +927,28 @@ function _a(e, n) {
|
|
|
924
927
|
}
|
|
925
928
|
};
|
|
926
929
|
}
|
|
927
|
-
function
|
|
930
|
+
function Bt() {
|
|
928
931
|
clearTimeout(Te), Te = void 0;
|
|
929
932
|
}
|
|
930
|
-
function
|
|
933
|
+
function wa(e, n, a) {
|
|
931
934
|
e.scrollLeft += n, e.scrollTop += a;
|
|
932
935
|
}
|
|
933
|
-
function
|
|
936
|
+
function ka(e) {
|
|
934
937
|
var n = window.Polymer, a = window.jQuery || window.Zepto;
|
|
935
938
|
return n && n.dom ? n.dom(e).cloneNode(!0) : a ? a(e).clone(!0)[0] : e.cloneNode(!0);
|
|
936
939
|
}
|
|
937
|
-
function
|
|
940
|
+
function xa(e, n, a) {
|
|
938
941
|
var t = {};
|
|
939
942
|
return Array.from(e.children).forEach(function(o) {
|
|
940
|
-
var l,
|
|
943
|
+
var l, s, r, f;
|
|
941
944
|
if (!(!X(o, n.draggable, e, !1) || o.animated || o === a)) {
|
|
942
945
|
var y = $(o);
|
|
943
|
-
t.left = Math.min((l = t.left) !== null && l !== void 0 ? l : 1 / 0, y.left), t.top = Math.min((
|
|
946
|
+
t.left = Math.min((l = t.left) !== null && l !== void 0 ? l : 1 / 0, y.left), t.top = Math.min((s = t.top) !== null && s !== void 0 ? s : 1 / 0, y.top), t.right = Math.max((r = t.right) !== null && r !== void 0 ? r : -1 / 0, y.right), t.bottom = Math.max((f = t.bottom) !== null && f !== void 0 ? f : -1 / 0, y.bottom);
|
|
944
947
|
}
|
|
945
948
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
946
949
|
}
|
|
947
950
|
var j = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
948
|
-
function
|
|
951
|
+
function jt() {
|
|
949
952
|
var e = [], n;
|
|
950
953
|
return {
|
|
951
954
|
captureAnimationState: function() {
|
|
@@ -957,10 +960,10 @@ function zt() {
|
|
|
957
960
|
target: o,
|
|
958
961
|
rect: $(o)
|
|
959
962
|
});
|
|
960
|
-
var l =
|
|
963
|
+
var l = Q({}, e[e.length - 1].rect);
|
|
961
964
|
if (o.thisAnimationDuration) {
|
|
962
|
-
var
|
|
963
|
-
|
|
965
|
+
var s = we(o, !0);
|
|
966
|
+
s && (l.top -= s.f, l.left -= s.e);
|
|
964
967
|
}
|
|
965
968
|
o.fromRect = l;
|
|
966
969
|
}
|
|
@@ -971,7 +974,7 @@ function zt() {
|
|
|
971
974
|
e.push(t);
|
|
972
975
|
},
|
|
973
976
|
removeAnimationState: function(t) {
|
|
974
|
-
e.splice(
|
|
977
|
+
e.splice(Mt(e, {
|
|
975
978
|
target: t
|
|
976
979
|
}), 1);
|
|
977
980
|
},
|
|
@@ -981,40 +984,40 @@ function zt() {
|
|
|
981
984
|
clearTimeout(n), typeof t == "function" && t();
|
|
982
985
|
return;
|
|
983
986
|
}
|
|
984
|
-
var l = !1,
|
|
985
|
-
e.forEach(function(
|
|
986
|
-
var f = 0, y =
|
|
987
|
-
w && (p.top -= w.f, p.left -= w.e), y.toRect = p, y.thisAnimationDuration &&
|
|
988
|
-
(
|
|
987
|
+
var l = !1, s = 0;
|
|
988
|
+
e.forEach(function(r) {
|
|
989
|
+
var f = 0, y = r.target, u = y.fromRect, p = $(y), g = y.prevFromRect, v = y.prevToRect, _ = r.rect, w = we(y, !0);
|
|
990
|
+
w && (p.top -= w.f, p.left -= w.e), y.toRect = p, y.thisAnimationDuration && sn(g, p) && !sn(u, p) && // Make sure animatingRect is on line between toRect & fromRect
|
|
991
|
+
(_.top - p.top) / (_.left - p.left) === (u.top - p.top) / (u.left - p.left) && (f = Ut(_, g, v, o.options)), sn(p, u) || (y.prevFromRect = u, y.prevToRect = p, f || (f = o.options.animation), o.animate(y, _, p, f)), f && (l = !0, s = Math.max(s, f), clearTimeout(y.animationResetTimer), y.animationResetTimer = setTimeout(function() {
|
|
989
992
|
y.animationTime = 0, y.prevFromRect = null, y.fromRect = null, y.prevToRect = null, y.thisAnimationDuration = null;
|
|
990
993
|
}, f), y.thisAnimationDuration = f);
|
|
991
994
|
}), clearTimeout(n), l ? n = setTimeout(function() {
|
|
992
995
|
typeof t == "function" && t();
|
|
993
|
-
},
|
|
996
|
+
}, s) : typeof t == "function" && t(), e = [];
|
|
994
997
|
},
|
|
995
|
-
animate: function(t, o, l,
|
|
996
|
-
if (
|
|
998
|
+
animate: function(t, o, l, s) {
|
|
999
|
+
if (s) {
|
|
997
1000
|
h(t, "transition", ""), h(t, "transform", "");
|
|
998
|
-
var
|
|
999
|
-
t.animatingX = !!u, t.animatingY = !!p, h(t, "transform", "translate3d(" + u + "px," + p + "px,0)"), this.forRepaintDummy =
|
|
1001
|
+
var r = we(this.el), f = r && r.a, y = r && r.d, u = (o.left - l.left) / (f || 1), p = (o.top - l.top) / (y || 1);
|
|
1002
|
+
t.animatingX = !!u, t.animatingY = !!p, h(t, "transform", "translate3d(" + u + "px," + p + "px,0)"), this.forRepaintDummy = Wt(t), h(t, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
1000
1003
|
h(t, "transition", ""), h(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
1001
|
-
},
|
|
1004
|
+
}, s);
|
|
1002
1005
|
}
|
|
1003
1006
|
}
|
|
1004
1007
|
};
|
|
1005
1008
|
}
|
|
1006
|
-
function
|
|
1009
|
+
function Wt(e) {
|
|
1007
1010
|
return e.offsetWidth;
|
|
1008
1011
|
}
|
|
1009
|
-
function
|
|
1012
|
+
function Ut(e, n, a, t) {
|
|
1010
1013
|
return Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - a.top, 2) + Math.pow(n.left - a.left, 2)) * t.animation;
|
|
1011
1014
|
}
|
|
1012
|
-
var be = [],
|
|
1015
|
+
var be = [], rn = {
|
|
1013
1016
|
initializeByDefault: !0
|
|
1014
|
-
},
|
|
1017
|
+
}, Re = {
|
|
1015
1018
|
mount: function(n) {
|
|
1016
|
-
for (var a in
|
|
1017
|
-
|
|
1019
|
+
for (var a in rn)
|
|
1020
|
+
rn.hasOwnProperty(a) && !(a in n) && (n[a] = rn[a]);
|
|
1018
1021
|
be.forEach(function(t) {
|
|
1019
1022
|
if (t.pluginName === n.pluginName)
|
|
1020
1023
|
throw "Sortable: Cannot mount plugin ".concat(n.pluginName, " more than once");
|
|
@@ -1026,26 +1029,26 @@ var be = [], sn = {
|
|
|
1026
1029
|
o.eventCanceled = !0;
|
|
1027
1030
|
};
|
|
1028
1031
|
var l = n + "Global";
|
|
1029
|
-
be.forEach(function(
|
|
1030
|
-
a[
|
|
1032
|
+
be.forEach(function(s) {
|
|
1033
|
+
a[s.pluginName] && (a[s.pluginName][l] && a[s.pluginName][l](Q({
|
|
1031
1034
|
sortable: a
|
|
1032
|
-
}, t)), a.options[
|
|
1035
|
+
}, t)), a.options[s.pluginName] && a[s.pluginName][n] && a[s.pluginName][n](Q({
|
|
1033
1036
|
sortable: a
|
|
1034
1037
|
}, t)));
|
|
1035
1038
|
});
|
|
1036
1039
|
},
|
|
1037
1040
|
initializePlugins: function(n, a, t, o) {
|
|
1038
|
-
be.forEach(function(
|
|
1039
|
-
var f =
|
|
1040
|
-
if (!(!n.options[f] && !
|
|
1041
|
-
var y = new
|
|
1041
|
+
be.forEach(function(r) {
|
|
1042
|
+
var f = r.pluginName;
|
|
1043
|
+
if (!(!n.options[f] && !r.initializeByDefault)) {
|
|
1044
|
+
var y = new r(n, a, n.options);
|
|
1042
1045
|
y.sortable = n, y.options = n.options, n[f] = y, ae(t, y.defaults);
|
|
1043
1046
|
}
|
|
1044
1047
|
});
|
|
1045
1048
|
for (var l in n.options)
|
|
1046
1049
|
if (n.options.hasOwnProperty(l)) {
|
|
1047
|
-
var
|
|
1048
|
-
typeof
|
|
1050
|
+
var s = this.modifyOption(n, l, n.options[l]);
|
|
1051
|
+
typeof s < "u" && (n.options[l] = s);
|
|
1049
1052
|
}
|
|
1050
1053
|
},
|
|
1051
1054
|
getEventProperties: function(n, a) {
|
|
@@ -1061,112 +1064,112 @@ var be = [], sn = {
|
|
|
1061
1064
|
}), o;
|
|
1062
1065
|
}
|
|
1063
1066
|
};
|
|
1064
|
-
function
|
|
1065
|
-
var n = e.sortable, a = e.rootEl, t = e.name, o = e.targetEl, l = e.cloneEl,
|
|
1067
|
+
function qt(e) {
|
|
1068
|
+
var n = e.sortable, a = e.rootEl, t = e.name, o = e.targetEl, l = e.cloneEl, s = e.toEl, r = e.fromEl, f = e.oldIndex, y = e.newIndex, u = e.oldDraggableIndex, p = e.newDraggableIndex, g = e.originalEvent, v = e.putSortable, _ = e.extraEventProperties;
|
|
1066
1069
|
if (n = n || a && a[j], !!n) {
|
|
1067
1070
|
var w, P = n.options, N = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
1068
|
-
window.CustomEvent && !te && !
|
|
1071
|
+
window.CustomEvent && !te && !Ae ? w = new CustomEvent(t, {
|
|
1069
1072
|
bubbles: !0,
|
|
1070
1073
|
cancelable: !0
|
|
1071
|
-
}) : (w = document.createEvent("Event"), w.initEvent(t, !0, !0)), w.to =
|
|
1072
|
-
var
|
|
1073
|
-
for (var Z in
|
|
1074
|
-
w[Z] =
|
|
1074
|
+
}) : (w = document.createEvent("Event"), w.initEvent(t, !0, !0)), w.to = s || a, w.from = r || a, w.item = o || a, w.clone = l, w.oldIndex = f, w.newIndex = y, w.oldDraggableIndex = u, w.newDraggableIndex = p, w.originalEvent = g, w.pullMode = v ? v.lastPutMode : void 0;
|
|
1075
|
+
var A = Q(Q({}, _), Re.getEventProperties(t, n));
|
|
1076
|
+
for (var Z in A)
|
|
1077
|
+
w[Z] = A[Z];
|
|
1075
1078
|
a && a.dispatchEvent(w), P[N] && P[N].call(n, w);
|
|
1076
1079
|
}
|
|
1077
1080
|
}
|
|
1078
|
-
var
|
|
1079
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = t.evt, l =
|
|
1080
|
-
|
|
1081
|
+
var Jt = ["evt"], B = function(n, a) {
|
|
1082
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = t.evt, l = At(t, Jt);
|
|
1083
|
+
Re.pluginEvent.bind(b)(n, a, Q({
|
|
1081
1084
|
dragEl: m,
|
|
1082
|
-
parentEl:
|
|
1085
|
+
parentEl: F,
|
|
1083
1086
|
ghostEl: C,
|
|
1084
|
-
rootEl:
|
|
1087
|
+
rootEl: D,
|
|
1085
1088
|
nextEl: me,
|
|
1086
1089
|
lastDownEl: Je,
|
|
1087
|
-
cloneEl:
|
|
1088
|
-
cloneHidden:
|
|
1089
|
-
dragStarted:
|
|
1090
|
-
putSortable:
|
|
1090
|
+
cloneEl: I,
|
|
1091
|
+
cloneHidden: re,
|
|
1092
|
+
dragStarted: Le,
|
|
1093
|
+
putSortable: R,
|
|
1091
1094
|
activeSortable: b.active,
|
|
1092
1095
|
originalEvent: o,
|
|
1093
1096
|
oldIndex: Ce,
|
|
1094
1097
|
oldDraggableIndex: $e,
|
|
1095
1098
|
newIndex: J,
|
|
1096
|
-
newDraggableIndex:
|
|
1097
|
-
hideGhostForTarget:
|
|
1098
|
-
unhideGhostForTarget:
|
|
1099
|
+
newDraggableIndex: se,
|
|
1100
|
+
hideGhostForTarget: Ha,
|
|
1101
|
+
unhideGhostForTarget: La,
|
|
1099
1102
|
cloneNowHidden: function() {
|
|
1100
|
-
|
|
1103
|
+
re = !0;
|
|
1101
1104
|
},
|
|
1102
1105
|
cloneNowShown: function() {
|
|
1103
|
-
|
|
1106
|
+
re = !1;
|
|
1104
1107
|
},
|
|
1105
|
-
dispatchSortableEvent: function(
|
|
1108
|
+
dispatchSortableEvent: function(r) {
|
|
1106
1109
|
z({
|
|
1107
1110
|
sortable: a,
|
|
1108
|
-
name:
|
|
1111
|
+
name: r,
|
|
1109
1112
|
originalEvent: o
|
|
1110
1113
|
});
|
|
1111
1114
|
}
|
|
1112
1115
|
}, l));
|
|
1113
1116
|
};
|
|
1114
1117
|
function z(e) {
|
|
1115
|
-
|
|
1116
|
-
putSortable:
|
|
1117
|
-
cloneEl:
|
|
1118
|
+
qt(Q({
|
|
1119
|
+
putSortable: R,
|
|
1120
|
+
cloneEl: I,
|
|
1118
1121
|
targetEl: m,
|
|
1119
|
-
rootEl:
|
|
1122
|
+
rootEl: D,
|
|
1120
1123
|
oldIndex: Ce,
|
|
1121
1124
|
oldDraggableIndex: $e,
|
|
1122
1125
|
newIndex: J,
|
|
1123
|
-
newDraggableIndex:
|
|
1126
|
+
newDraggableIndex: se
|
|
1124
1127
|
}, e));
|
|
1125
1128
|
}
|
|
1126
|
-
var m,
|
|
1129
|
+
var m, F, C, D, me, Je, I, re, Ce, J, $e, se, ze, R, _e = !1, Ke = !1, Ve = [], pe, Y, cn, dn, oa, ia, Le, ve, Ne, Pe = !1, Be = !1, Ge, M, fn = [], Rn = !1, Qe = [], nn = typeof document < "u", je = Wn, sa = Ae || te ? "cssFloat" : "float", Gt = nn && !ha && !Wn && "draggable" in document.createElement("div"), Ea = function() {
|
|
1127
1130
|
if (nn) {
|
|
1128
1131
|
if (te)
|
|
1129
1132
|
return !1;
|
|
1130
1133
|
var e = document.createElement("x");
|
|
1131
1134
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1132
1135
|
}
|
|
1133
|
-
}(),
|
|
1134
|
-
var t = h(n), o = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), l = ke(n, 0, a),
|
|
1136
|
+
}(), Sa = function(n, a) {
|
|
1137
|
+
var t = h(n), o = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), l = ke(n, 0, a), s = ke(n, 1, a), r = l && h(l), f = s && h(s), y = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + $(l).width, u = f && parseInt(f.marginLeft) + parseInt(f.marginRight) + $(s).width;
|
|
1135
1138
|
if (t.display === "flex")
|
|
1136
1139
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1137
1140
|
if (t.display === "grid")
|
|
1138
1141
|
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
1139
|
-
if (l &&
|
|
1140
|
-
var p =
|
|
1141
|
-
return
|
|
1142
|
-
}
|
|
1143
|
-
return l && (
|
|
1144
|
-
},
|
|
1145
|
-
var o = t ? n.left : n.top, l = t ? n.right : n.bottom,
|
|
1146
|
-
return o ===
|
|
1147
|
-
},
|
|
1142
|
+
if (l && r.float && r.float !== "none") {
|
|
1143
|
+
var p = r.float === "left" ? "left" : "right";
|
|
1144
|
+
return s && (f.clear === "both" || f.clear === p) ? "vertical" : "horizontal";
|
|
1145
|
+
}
|
|
1146
|
+
return l && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || y >= o && t[sa] === "none" || s && t[sa] === "none" && y + u > o) ? "vertical" : "horizontal";
|
|
1147
|
+
}, Zt = function(n, a, t) {
|
|
1148
|
+
var o = t ? n.left : n.top, l = t ? n.right : n.bottom, s = t ? n.width : n.height, r = t ? a.left : a.top, f = t ? a.right : a.bottom, y = t ? a.width : a.height;
|
|
1149
|
+
return o === r || l === f || o + s / 2 === r + y / 2;
|
|
1150
|
+
}, Yt = function(n, a) {
|
|
1148
1151
|
var t;
|
|
1149
|
-
return
|
|
1152
|
+
return Ve.some(function(o) {
|
|
1150
1153
|
var l = o[j].options.emptyInsertThreshold;
|
|
1151
1154
|
if (!(!l || Un(o))) {
|
|
1152
|
-
var
|
|
1153
|
-
if (
|
|
1155
|
+
var s = $(o), r = n >= s.left - l && n <= s.right + l, f = a >= s.top - l && a <= s.bottom + l;
|
|
1156
|
+
if (r && f)
|
|
1154
1157
|
return t = o;
|
|
1155
1158
|
}
|
|
1156
1159
|
}), t;
|
|
1157
|
-
},
|
|
1158
|
-
function a(l,
|
|
1159
|
-
return function(
|
|
1160
|
-
var p =
|
|
1161
|
-
if (l == null && (
|
|
1160
|
+
}, Oa = function(n) {
|
|
1161
|
+
function a(l, s) {
|
|
1162
|
+
return function(r, f, y, u) {
|
|
1163
|
+
var p = r.options.group.name && f.options.group.name && r.options.group.name === f.options.group.name;
|
|
1164
|
+
if (l == null && (s || p))
|
|
1162
1165
|
return !0;
|
|
1163
1166
|
if (l == null || l === !1)
|
|
1164
1167
|
return !1;
|
|
1165
|
-
if (
|
|
1168
|
+
if (s && l === "clone")
|
|
1166
1169
|
return l;
|
|
1167
1170
|
if (typeof l == "function")
|
|
1168
|
-
return a(l(
|
|
1169
|
-
var g = (
|
|
1171
|
+
return a(l(r, f, y, u), s)(r, f, y, u);
|
|
1172
|
+
var g = (s ? r : f).options.group.name;
|
|
1170
1173
|
return l === !0 || typeof l == "string" && l === g || l.join && l.indexOf(g) > -1;
|
|
1171
1174
|
};
|
|
1172
1175
|
}
|
|
@@ -1174,19 +1177,19 @@ var m, I, C, L, me, Je, F, se, Ce, J, $e, re, ze, A, ve = !1, Ke = !1, Qe = [],
|
|
|
1174
1177
|
(!o || qe(o) != "object") && (o = {
|
|
1175
1178
|
name: o
|
|
1176
1179
|
}), t.name = o.name, t.checkPull = a(o.pull, !0), t.checkPut = a(o.put), t.revertClone = o.revertClone, n.group = t;
|
|
1177
|
-
}, Sa = function() {
|
|
1178
|
-
!ka && C && h(C, "display", "none");
|
|
1179
1180
|
}, Ha = function() {
|
|
1180
|
-
!
|
|
1181
|
+
!Ea && C && h(C, "display", "none");
|
|
1182
|
+
}, La = function() {
|
|
1183
|
+
!Ea && C && h(C, "display", "");
|
|
1181
1184
|
};
|
|
1182
|
-
nn && !
|
|
1185
|
+
nn && !ha && document.addEventListener("click", function(e) {
|
|
1183
1186
|
if (Ke)
|
|
1184
1187
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ke = !1, !1;
|
|
1185
1188
|
}, !0);
|
|
1186
1189
|
var ue = function(n) {
|
|
1187
1190
|
if (m) {
|
|
1188
1191
|
n = n.touches ? n.touches[0] : n;
|
|
1189
|
-
var a =
|
|
1192
|
+
var a = Yt(n.clientX, n.clientY);
|
|
1190
1193
|
if (a) {
|
|
1191
1194
|
var t = {};
|
|
1192
1195
|
for (var o in n)
|
|
@@ -1194,7 +1197,7 @@ var ue = function(n) {
|
|
|
1194
1197
|
t.target = t.rootEl = a, t.preventDefault = void 0, t.stopPropagation = void 0, a[j]._onDragOver(t);
|
|
1195
1198
|
}
|
|
1196
1199
|
}
|
|
1197
|
-
},
|
|
1200
|
+
}, Xt = function(n) {
|
|
1198
1201
|
m && m.parentNode[j]._isOutsideThisEl(n.target);
|
|
1199
1202
|
};
|
|
1200
1203
|
function b(e, n) {
|
|
@@ -1216,7 +1219,7 @@ function b(e, n) {
|
|
|
1216
1219
|
// will be set to same as swapThreshold if default
|
|
1217
1220
|
removeCloneOnHide: !0,
|
|
1218
1221
|
direction: function() {
|
|
1219
|
-
return
|
|
1222
|
+
return Sa(e, this.options);
|
|
1220
1223
|
},
|
|
1221
1224
|
ghostClass: "sortable-ghost",
|
|
1222
1225
|
chosenClass: "sortable-chosen",
|
|
@@ -1226,8 +1229,8 @@ function b(e, n) {
|
|
|
1226
1229
|
preventOnFilter: !0,
|
|
1227
1230
|
animation: 0,
|
|
1228
1231
|
easing: null,
|
|
1229
|
-
setData: function(
|
|
1230
|
-
|
|
1232
|
+
setData: function(s, r) {
|
|
1233
|
+
s.setData("Text", r.textContent);
|
|
1231
1234
|
},
|
|
1232
1235
|
dropBubble: !1,
|
|
1233
1236
|
dragoverBubble: !1,
|
|
@@ -1244,30 +1247,30 @@ function b(e, n) {
|
|
|
1244
1247
|
y: 0
|
|
1245
1248
|
},
|
|
1246
1249
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1247
|
-
supportPointer: b.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
1250
|
+
supportPointer: b.supportPointer !== !1 && "PointerEvent" in window && (!Fe || Wn),
|
|
1248
1251
|
emptyInsertThreshold: 5
|
|
1249
1252
|
};
|
|
1250
|
-
|
|
1253
|
+
Re.initializePlugins(this, e, a);
|
|
1251
1254
|
for (var t in a)
|
|
1252
1255
|
!(t in n) && (n[t] = a[t]);
|
|
1253
|
-
|
|
1256
|
+
Oa(n);
|
|
1254
1257
|
for (var o in this)
|
|
1255
1258
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1256
|
-
this.nativeDraggable = n.forceFallback ? !1 :
|
|
1259
|
+
this.nativeDraggable = n.forceFallback ? !1 : Gt, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? E(e, "pointerdown", this._onTapStart) : (E(e, "mousedown", this._onTapStart), E(e, "touchstart", this._onTapStart)), this.nativeDraggable && (E(e, "dragover", this), E(e, "dragenter", this)), Ve.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), ae(this, jt());
|
|
1257
1260
|
}
|
|
1258
1261
|
b.prototype = /** @lends Sortable.prototype */
|
|
1259
1262
|
{
|
|
1260
1263
|
constructor: b,
|
|
1261
1264
|
_isOutsideThisEl: function(n) {
|
|
1262
|
-
!this.el.contains(n) && n !== this.el && (
|
|
1265
|
+
!this.el.contains(n) && n !== this.el && (ve = null);
|
|
1263
1266
|
},
|
|
1264
1267
|
_getDirection: function(n, a) {
|
|
1265
1268
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, a, m) : this.options.direction;
|
|
1266
1269
|
},
|
|
1267
1270
|
_onTapStart: function(n) {
|
|
1268
1271
|
if (n.cancelable) {
|
|
1269
|
-
var a = this, t = this.el, o = this.options, l = o.preventOnFilter,
|
|
1270
|
-
if (
|
|
1272
|
+
var a = this, t = this.el, o = this.options, l = o.preventOnFilter, s = n.type, r = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, f = (r || n).target, y = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || f, u = o.filter;
|
|
1273
|
+
if (ll(t), !m && !(/mousedown|pointerdown/.test(s) && n.button !== 0 || o.disabled) && !y.isContentEditable && !(!this.nativeDraggable && Fe && f && f.tagName.toUpperCase() === "SELECT") && (f = X(f, o.draggable, t, !1), !(f && f.animated) && Je !== f)) {
|
|
1271
1274
|
if (Ce = G(f), $e = G(f, o.draggable), typeof u == "function") {
|
|
1272
1275
|
if (u.call(this, n, f, this)) {
|
|
1273
1276
|
z({
|
|
@@ -1298,15 +1301,15 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1298
1301
|
l && n.preventDefault();
|
|
1299
1302
|
return;
|
|
1300
1303
|
}
|
|
1301
|
-
o.handle && !X(y, o.handle, t, !1) || this._prepareDragStart(n,
|
|
1304
|
+
o.handle && !X(y, o.handle, t, !1) || this._prepareDragStart(n, r, f);
|
|
1302
1305
|
}
|
|
1303
1306
|
}
|
|
1304
1307
|
},
|
|
1305
1308
|
_prepareDragStart: function(n, a, t) {
|
|
1306
|
-
var o = this, l = o.el,
|
|
1309
|
+
var o = this, l = o.el, s = o.options, r = l.ownerDocument, f;
|
|
1307
1310
|
if (t && !m && t.parentNode === l) {
|
|
1308
1311
|
var y = $(t);
|
|
1309
|
-
if (
|
|
1312
|
+
if (D = l, m = t, F = m.parentNode, me = m.nextSibling, Je = t, ze = s.group, b.dragged = m, pe = {
|
|
1310
1313
|
target: m,
|
|
1311
1314
|
clientX: (a || n).clientX,
|
|
1312
1315
|
clientY: (a || n).clientY
|
|
@@ -1321,17 +1324,17 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1321
1324
|
sortable: o,
|
|
1322
1325
|
name: "choose",
|
|
1323
1326
|
originalEvent: n
|
|
1324
|
-
}), q(m,
|
|
1325
|
-
},
|
|
1326
|
-
|
|
1327
|
-
}), E(
|
|
1327
|
+
}), q(m, s.chosenClass, !0);
|
|
1328
|
+
}, s.ignore.split(",").forEach(function(u) {
|
|
1329
|
+
_a(m, u.trim(), yn);
|
|
1330
|
+
}), E(r, "dragover", ue), E(r, "mousemove", ue), E(r, "touchmove", ue), s.supportPointer ? (E(r, "pointerup", o._onDrop), !this.nativeDraggable && E(r, "pointercancel", o._onDrop)) : (E(r, "mouseup", o._onDrop), E(r, "touchend", o._onDrop), E(r, "touchcancel", o._onDrop)), na && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), B("delayStart", this, {
|
|
1328
1331
|
evt: n
|
|
1329
|
-
}),
|
|
1332
|
+
}), s.delay && (!s.delayOnTouchOnly || a) && (!this.nativeDraggable || !(Ae || te))) {
|
|
1330
1333
|
if (b.eventCanceled) {
|
|
1331
1334
|
this._onDrop();
|
|
1332
1335
|
return;
|
|
1333
1336
|
}
|
|
1334
|
-
|
|
1337
|
+
s.supportPointer ? (E(r, "pointerup", o._disableDelayedDrag), E(r, "pointercancel", o._disableDelayedDrag)) : (E(r, "mouseup", o._disableDelayedDrag), E(r, "touchend", o._disableDelayedDrag), E(r, "touchcancel", o._disableDelayedDrag)), E(r, "mousemove", o._delayedDragTouchMoveHandler), E(r, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && E(r, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(f, s.delay);
|
|
1335
1338
|
} else
|
|
1336
1339
|
f();
|
|
1337
1340
|
}
|
|
@@ -1348,7 +1351,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1348
1351
|
k(n, "mouseup", this._disableDelayedDrag), k(n, "touchend", this._disableDelayedDrag), k(n, "touchcancel", this._disableDelayedDrag), k(n, "pointerup", this._disableDelayedDrag), k(n, "pointercancel", this._disableDelayedDrag), k(n, "mousemove", this._delayedDragTouchMoveHandler), k(n, "touchmove", this._delayedDragTouchMoveHandler), k(n, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1349
1352
|
},
|
|
1350
1353
|
_triggerDragStart: function(n, a) {
|
|
1351
|
-
a = a || n.pointerType == "touch" && n, !this.nativeDraggable || a ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : a ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(m, "dragend", this), E(
|
|
1354
|
+
a = a || n.pointerType == "touch" && n, !this.nativeDraggable || a ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : a ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(m, "dragend", this), E(D, "dragstart", this._onDragStart));
|
|
1352
1355
|
try {
|
|
1353
1356
|
document.selection ? Ze(function() {
|
|
1354
1357
|
document.selection.empty();
|
|
@@ -1357,10 +1360,10 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1357
1360
|
}
|
|
1358
1361
|
},
|
|
1359
1362
|
_dragStarted: function(n, a) {
|
|
1360
|
-
if (
|
|
1363
|
+
if (_e = !1, D && m) {
|
|
1361
1364
|
B("dragStarted", this, {
|
|
1362
1365
|
evt: a
|
|
1363
|
-
}), this.nativeDraggable && E(document, "dragover",
|
|
1366
|
+
}), this.nativeDraggable && E(document, "dragover", Xt);
|
|
1364
1367
|
var t = this.options;
|
|
1365
1368
|
!n && q(m, t.dragClass, !1), q(m, t.ghostClass, !0), b.active = this, n && this._appendGhost(), z({
|
|
1366
1369
|
sortable: this,
|
|
@@ -1372,7 +1375,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1372
1375
|
},
|
|
1373
1376
|
_emulateDragOver: function() {
|
|
1374
1377
|
if (Y) {
|
|
1375
|
-
this._lastX = Y.clientX, this._lastY = Y.clientY,
|
|
1378
|
+
this._lastX = Y.clientX, this._lastY = Y.clientY, Ha();
|
|
1376
1379
|
for (var n = document.elementFromPoint(Y.clientX, Y.clientY), a = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), n !== a); )
|
|
1377
1380
|
a = n;
|
|
1378
1381
|
if (m.parentNode[j]._isOutsideThisEl(n), a)
|
|
@@ -1388,20 +1391,20 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1388
1391
|
break;
|
|
1389
1392
|
}
|
|
1390
1393
|
n = a;
|
|
1391
|
-
} while (a =
|
|
1392
|
-
|
|
1394
|
+
} while (a = va(a));
|
|
1395
|
+
La();
|
|
1393
1396
|
}
|
|
1394
1397
|
},
|
|
1395
1398
|
_onTouchMove: function(n) {
|
|
1396
1399
|
if (pe) {
|
|
1397
|
-
var a = this.options, t = a.fallbackTolerance, o = a.fallbackOffset, l = n.touches ? n.touches[0] : n,
|
|
1398
|
-
if (!b.active && !
|
|
1400
|
+
var a = this.options, t = a.fallbackTolerance, o = a.fallbackOffset, l = n.touches ? n.touches[0] : n, s = C && we(C, !0), r = C && s && s.a, f = C && s && s.d, y = je && M && la(M), u = (l.clientX - pe.clientX + o.x) / (r || 1) + (y ? y[0] - fn[0] : 0) / (r || 1), p = (l.clientY - pe.clientY + o.y) / (f || 1) + (y ? y[1] - fn[1] : 0) / (f || 1);
|
|
1401
|
+
if (!b.active && !_e) {
|
|
1399
1402
|
if (t && Math.max(Math.abs(l.clientX - this._lastX), Math.abs(l.clientY - this._lastY)) < t)
|
|
1400
1403
|
return;
|
|
1401
1404
|
this._onDragStart(n, !0);
|
|
1402
1405
|
}
|
|
1403
1406
|
if (C) {
|
|
1404
|
-
|
|
1407
|
+
s ? (s.e += u - (cn || 0), s.f += p - (dn || 0)) : s = {
|
|
1405
1408
|
a: 1,
|
|
1406
1409
|
b: 0,
|
|
1407
1410
|
c: 0,
|
|
@@ -1409,7 +1412,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1409
1412
|
e: u,
|
|
1410
1413
|
f: p
|
|
1411
1414
|
};
|
|
1412
|
-
var g = "matrix(".concat(
|
|
1415
|
+
var g = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
1413
1416
|
h(C, "webkitTransform", g), h(C, "mozTransform", g), h(C, "msTransform", g), h(C, "transform", g), cn = u, dn = p, Y = l;
|
|
1414
1417
|
}
|
|
1415
1418
|
n.cancelable && n.preventDefault();
|
|
@@ -1417,11 +1420,11 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1417
1420
|
},
|
|
1418
1421
|
_appendGhost: function() {
|
|
1419
1422
|
if (!C) {
|
|
1420
|
-
var n = this.options.fallbackOnBody ? document.body :
|
|
1423
|
+
var n = this.options.fallbackOnBody ? document.body : D, a = $(m, !0, je, !0, n), t = this.options;
|
|
1421
1424
|
if (je) {
|
|
1422
1425
|
for (M = n; h(M, "position") === "static" && h(M, "transform") === "none" && M !== document; )
|
|
1423
1426
|
M = M.parentNode;
|
|
1424
|
-
M !== document.body && M !== document.documentElement ? (M === document && (M =
|
|
1427
|
+
M !== document.body && M !== document.documentElement ? (M === document && (M = V()), a.top += M.scrollTop, a.left += M.scrollLeft) : M = V(), fn = la(M);
|
|
1425
1428
|
}
|
|
1426
1429
|
C = m.cloneNode(!0), q(C, t.ghostClass, !1), q(C, t.fallbackClass, !0), q(C, t.dragClass, !0), h(C, "transition", ""), h(C, "transform", ""), h(C, "box-sizing", "border-box"), h(C, "margin", 0), h(C, "top", a.top), h(C, "left", a.left), h(C, "width", a.width), h(C, "height", a.height), h(C, "opacity", "0.8"), h(C, "position", je ? "absolute" : "fixed"), h(C, "zIndex", "100000"), h(C, "pointerEvents", "none"), b.ghost = C, n.appendChild(C), h(C, "transform-origin", oa / parseInt(C.style.width) * 100 + "% " + ia / parseInt(C.style.height) * 100 + "%");
|
|
1427
1430
|
}
|
|
@@ -1434,99 +1437,99 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1434
1437
|
this._onDrop();
|
|
1435
1438
|
return;
|
|
1436
1439
|
}
|
|
1437
|
-
B("setupClone", this), b.eventCanceled || (
|
|
1438
|
-
B("clone", t), !b.eventCanceled && (t.options.removeCloneOnHide ||
|
|
1440
|
+
B("setupClone", this), b.eventCanceled || (I = ka(m), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), q(I, this.options.chosenClass, !1), b.clone = I), t.cloneId = Ze(function() {
|
|
1441
|
+
B("clone", t), !b.eventCanceled && (t.options.removeCloneOnHide || D.insertBefore(I, m), t._hideClone(), z({
|
|
1439
1442
|
sortable: t,
|
|
1440
1443
|
name: "clone"
|
|
1441
1444
|
}));
|
|
1442
|
-
}), !a && q(m, l.dragClass, !0), a ? (Ke = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (k(document, "mouseup", t._onDrop), k(document, "touchend", t._onDrop), k(document, "touchcancel", t._onDrop), o && (o.effectAllowed = "move", l.setData && l.setData.call(t, o, m)), E(document, "drop", t), h(m, "transform", "translateZ(0)")),
|
|
1445
|
+
}), !a && q(m, l.dragClass, !0), a ? (Ke = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (k(document, "mouseup", t._onDrop), k(document, "touchend", t._onDrop), k(document, "touchcancel", t._onDrop), o && (o.effectAllowed = "move", l.setData && l.setData.call(t, o, m)), E(document, "drop", t), h(m, "transform", "translateZ(0)")), _e = !0, t._dragStartId = Ze(t._dragStarted.bind(t, a, n)), E(document, "selectstart", t), Le = !0, window.getSelection().removeAllRanges(), Fe && h(document.body, "user-select", "none");
|
|
1443
1446
|
},
|
|
1444
1447
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1445
1448
|
_onDragOver: function(n) {
|
|
1446
|
-
var a = this.el, t = n.target, o, l,
|
|
1447
|
-
if (
|
|
1449
|
+
var a = this.el, t = n.target, o, l, s, r = this.options, f = r.group, y = b.active, u = ze === f, p = r.sort, g = R || y, v, _ = this, w = !1;
|
|
1450
|
+
if (Rn)
|
|
1448
1451
|
return;
|
|
1449
|
-
function P(
|
|
1450
|
-
B(
|
|
1452
|
+
function P(He, Qa) {
|
|
1453
|
+
B(He, _, Q({
|
|
1451
1454
|
evt: n,
|
|
1452
1455
|
isOwner: u,
|
|
1453
|
-
axis:
|
|
1454
|
-
revert:
|
|
1456
|
+
axis: v ? "vertical" : "horizontal",
|
|
1457
|
+
revert: s,
|
|
1455
1458
|
dragRect: o,
|
|
1456
1459
|
targetRect: l,
|
|
1457
1460
|
canSort: p,
|
|
1458
1461
|
fromSortable: g,
|
|
1459
1462
|
target: t,
|
|
1460
|
-
completed:
|
|
1461
|
-
onMove: function(Gn,
|
|
1462
|
-
return We(
|
|
1463
|
+
completed: A,
|
|
1464
|
+
onMove: function(Gn, et) {
|
|
1465
|
+
return We(D, a, m, o, Gn, $(Gn), n, et);
|
|
1463
1466
|
},
|
|
1464
1467
|
changed: Z
|
|
1465
|
-
},
|
|
1468
|
+
}, Qa));
|
|
1466
1469
|
}
|
|
1467
1470
|
function N() {
|
|
1468
|
-
P("dragOverAnimationCapture"),
|
|
1471
|
+
P("dragOverAnimationCapture"), _.captureAnimationState(), _ !== g && g.captureAnimationState();
|
|
1469
1472
|
}
|
|
1470
|
-
function
|
|
1473
|
+
function A(He) {
|
|
1471
1474
|
return P("dragOverCompleted", {
|
|
1472
|
-
insertion:
|
|
1473
|
-
}),
|
|
1474
|
-
P("dragOverAnimationComplete"),
|
|
1475
|
-
}),
|
|
1475
|
+
insertion: He
|
|
1476
|
+
}), He && (u ? y._hideClone() : y._showClone(_), _ !== g && (q(m, R ? R.options.ghostClass : y.options.ghostClass, !1), q(m, r.ghostClass, !0)), R !== _ && _ !== b.active ? R = _ : _ === b.active && R && (R = null), g === _ && (_._ignoreWhileAnimating = t), _.animateAll(function() {
|
|
1477
|
+
P("dragOverAnimationComplete"), _._ignoreWhileAnimating = null;
|
|
1478
|
+
}), _ !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (t === m && !m.animated || t === a && !t.animated) && (ve = null), !r.dragoverBubble && !n.rootEl && t !== document && (m.parentNode[j]._isOutsideThisEl(n.target), !He && ue(n)), !r.dragoverBubble && n.stopPropagation && n.stopPropagation(), w = !0;
|
|
1476
1479
|
}
|
|
1477
1480
|
function Z() {
|
|
1478
|
-
J = G(m),
|
|
1479
|
-
sortable:
|
|
1481
|
+
J = G(m), se = G(m, r.draggable), z({
|
|
1482
|
+
sortable: _,
|
|
1480
1483
|
name: "change",
|
|
1481
1484
|
toEl: a,
|
|
1482
1485
|
newIndex: J,
|
|
1483
|
-
newDraggableIndex:
|
|
1486
|
+
newDraggableIndex: se,
|
|
1484
1487
|
originalEvent: n
|
|
1485
1488
|
});
|
|
1486
1489
|
}
|
|
1487
|
-
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), t = X(t,
|
|
1490
|
+
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), t = X(t, r.draggable, a, !0), P("dragOver"), b.eventCanceled)
|
|
1488
1491
|
return w;
|
|
1489
|
-
if (m.contains(n.target) || t.animated && t.animatingX && t.animatingY ||
|
|
1490
|
-
return
|
|
1491
|
-
if (Ke = !1, y && !
|
|
1492
|
-
if (
|
|
1492
|
+
if (m.contains(n.target) || t.animated && t.animatingX && t.animatingY || _._ignoreWhileAnimating === t)
|
|
1493
|
+
return A(!1);
|
|
1494
|
+
if (Ke = !1, y && !r.disabled && (u ? p || (s = F !== D) : R === this || (this.lastPutMode = ze.checkPull(this, y, m, n)) && f.checkPut(this, y, m, n))) {
|
|
1495
|
+
if (v = this._getDirection(n, t) === "vertical", o = $(m), P("dragOverValid"), b.eventCanceled)
|
|
1493
1496
|
return w;
|
|
1494
|
-
if (
|
|
1495
|
-
return
|
|
1496
|
-
var W = Un(a,
|
|
1497
|
-
if (!W ||
|
|
1497
|
+
if (s)
|
|
1498
|
+
return F = D, N(), this._hideClone(), P("revert"), b.eventCanceled || (me ? D.insertBefore(m, me) : D.appendChild(m)), A(!0);
|
|
1499
|
+
var W = Un(a, r.draggable);
|
|
1500
|
+
if (!W || el(n, v, this) && !W.animated) {
|
|
1498
1501
|
if (W === m)
|
|
1499
|
-
return
|
|
1500
|
-
if (W && a === n.target && (t = W), t && (l = $(t)), We(
|
|
1501
|
-
return N(), W && W.nextSibling ? a.insertBefore(m, W.nextSibling) : a.appendChild(m),
|
|
1502
|
-
} else if (W &&
|
|
1503
|
-
var de = ke(a, 0,
|
|
1502
|
+
return A(!1);
|
|
1503
|
+
if (W && a === n.target && (t = W), t && (l = $(t)), We(D, a, m, o, t, l, n, !!t) !== !1)
|
|
1504
|
+
return N(), W && W.nextSibling ? a.insertBefore(m, W.nextSibling) : a.appendChild(m), F = a, Z(), A(!0);
|
|
1505
|
+
} else if (W && Qt(n, v, this)) {
|
|
1506
|
+
var de = ke(a, 0, r, !0);
|
|
1504
1507
|
if (de === m)
|
|
1505
|
-
return
|
|
1506
|
-
if (t = de, l = $(t), We(
|
|
1507
|
-
return N(), a.insertBefore(m, de),
|
|
1508
|
+
return A(!1);
|
|
1509
|
+
if (t = de, l = $(t), We(D, a, m, o, t, l, n, !1) !== !1)
|
|
1510
|
+
return N(), a.insertBefore(m, de), F = a, Z(), A(!0);
|
|
1508
1511
|
} else if (t.parentNode === a) {
|
|
1509
1512
|
l = $(t);
|
|
1510
|
-
var K = 0, fe, xe = m.parentNode !== a, U = !
|
|
1511
|
-
|
|
1513
|
+
var K = 0, fe, xe = m.parentNode !== a, U = !Zt(m.animated && m.toRect || o, t.animated && t.toRect || l, v), Ee = v ? "top" : "left", le = ta(t, "top", "top") || ta(m, "top", "top"), Se = le ? le.scrollTop : void 0;
|
|
1514
|
+
ve !== t && (fe = l[Ee], Pe = !1, Be = !U && r.invertSwap || xe), K = nl(n, t, l, v, U ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, Be, ve === t);
|
|
1512
1515
|
var ee;
|
|
1513
1516
|
if (K !== 0) {
|
|
1514
1517
|
var ye = G(m);
|
|
1515
1518
|
do
|
|
1516
|
-
ye -= K, ee =
|
|
1519
|
+
ye -= K, ee = F.children[ye];
|
|
1517
1520
|
while (ee && (h(ee, "display") === "none" || ee === C));
|
|
1518
1521
|
}
|
|
1519
1522
|
if (K === 0 || ee === t)
|
|
1520
|
-
return
|
|
1521
|
-
|
|
1522
|
-
var
|
|
1523
|
+
return A(!1);
|
|
1524
|
+
ve = t, Ne = K;
|
|
1525
|
+
var Oe = t.nextElementSibling, oe = !1;
|
|
1523
1526
|
oe = K === 1;
|
|
1524
|
-
var Me = We(
|
|
1527
|
+
var Me = We(D, a, m, o, t, l, n, oe);
|
|
1525
1528
|
if (Me !== !1)
|
|
1526
|
-
return (Me === 1 || Me === -1) && (oe = Me === 1),
|
|
1529
|
+
return (Me === 1 || Me === -1) && (oe = Me === 1), Rn = !0, setTimeout(Vt, 30), N(), oe && !Oe ? a.appendChild(m) : t.parentNode.insertBefore(m, oe ? Oe : t), le && wa(le, 0, Se - le.scrollTop), F = m.parentNode, fe !== void 0 && !Be && (Ge = Math.abs(fe - $(t)[Ee])), Z(), A(!0);
|
|
1527
1530
|
}
|
|
1528
1531
|
if (a.contains(m))
|
|
1529
|
-
return
|
|
1532
|
+
return A(!1);
|
|
1530
1533
|
}
|
|
1531
1534
|
return !1;
|
|
1532
1535
|
},
|
|
@@ -1540,62 +1543,62 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1540
1543
|
},
|
|
1541
1544
|
_onDrop: function(n) {
|
|
1542
1545
|
var a = this.el, t = this.options;
|
|
1543
|
-
if (J = G(m),
|
|
1546
|
+
if (J = G(m), se = G(m, t.draggable), B("drop", this, {
|
|
1544
1547
|
evt: n
|
|
1545
|
-
}),
|
|
1548
|
+
}), F = m && m.parentNode, J = G(m), se = G(m, t.draggable), b.eventCanceled) {
|
|
1546
1549
|
this._nulling();
|
|
1547
1550
|
return;
|
|
1548
1551
|
}
|
|
1549
|
-
|
|
1552
|
+
_e = !1, Be = !1, Pe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Mn(this.cloneId), Mn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Fe && h(document.body, "user-select", ""), h(m, "transform", ""), n && (Le && (n.cancelable && n.preventDefault(), !t.dropBubble && n.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (D === F || R && R.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), m && (this.nativeDraggable && k(m, "dragend", this), yn(m), m.style["will-change"] = "", Le && !_e && q(m, R ? R.options.ghostClass : this.options.ghostClass, !1), q(m, this.options.chosenClass, !1), z({
|
|
1550
1553
|
sortable: this,
|
|
1551
1554
|
name: "unchoose",
|
|
1552
|
-
toEl:
|
|
1555
|
+
toEl: F,
|
|
1553
1556
|
newIndex: null,
|
|
1554
1557
|
newDraggableIndex: null,
|
|
1555
1558
|
originalEvent: n
|
|
1556
|
-
}),
|
|
1557
|
-
rootEl:
|
|
1559
|
+
}), D !== F ? (J >= 0 && (z({
|
|
1560
|
+
rootEl: F,
|
|
1558
1561
|
name: "add",
|
|
1559
|
-
toEl:
|
|
1560
|
-
fromEl:
|
|
1562
|
+
toEl: F,
|
|
1563
|
+
fromEl: D,
|
|
1561
1564
|
originalEvent: n
|
|
1562
1565
|
}), z({
|
|
1563
1566
|
sortable: this,
|
|
1564
1567
|
name: "remove",
|
|
1565
|
-
toEl:
|
|
1568
|
+
toEl: F,
|
|
1566
1569
|
originalEvent: n
|
|
1567
1570
|
}), z({
|
|
1568
|
-
rootEl:
|
|
1571
|
+
rootEl: F,
|
|
1569
1572
|
name: "sort",
|
|
1570
|
-
toEl:
|
|
1571
|
-
fromEl:
|
|
1573
|
+
toEl: F,
|
|
1574
|
+
fromEl: D,
|
|
1572
1575
|
originalEvent: n
|
|
1573
1576
|
}), z({
|
|
1574
1577
|
sortable: this,
|
|
1575
1578
|
name: "sort",
|
|
1576
|
-
toEl:
|
|
1579
|
+
toEl: F,
|
|
1577
1580
|
originalEvent: n
|
|
1578
|
-
})),
|
|
1581
|
+
})), R && R.save()) : J !== Ce && J >= 0 && (z({
|
|
1579
1582
|
sortable: this,
|
|
1580
1583
|
name: "update",
|
|
1581
|
-
toEl:
|
|
1584
|
+
toEl: F,
|
|
1582
1585
|
originalEvent: n
|
|
1583
1586
|
}), z({
|
|
1584
1587
|
sortable: this,
|
|
1585
1588
|
name: "sort",
|
|
1586
|
-
toEl:
|
|
1589
|
+
toEl: F,
|
|
1587
1590
|
originalEvent: n
|
|
1588
|
-
})), b.active && ((J == null || J === -1) && (J = Ce,
|
|
1591
|
+
})), b.active && ((J == null || J === -1) && (J = Ce, se = $e), z({
|
|
1589
1592
|
sortable: this,
|
|
1590
1593
|
name: "end",
|
|
1591
|
-
toEl:
|
|
1594
|
+
toEl: F,
|
|
1592
1595
|
originalEvent: n
|
|
1593
1596
|
}), this.save()))), this._nulling();
|
|
1594
1597
|
},
|
|
1595
1598
|
_nulling: function() {
|
|
1596
|
-
B("nulling", this),
|
|
1599
|
+
B("nulling", this), D = m = F = C = me = I = Je = re = pe = Y = Le = J = se = Ce = $e = ve = Ne = R = ze = b.dragged = b.ghost = b.clone = b.active = null, Qe.forEach(function(n) {
|
|
1597
1600
|
n.checked = !0;
|
|
1598
|
-
}),
|
|
1601
|
+
}), Qe.length = cn = dn = 0;
|
|
1599
1602
|
},
|
|
1600
1603
|
handleEvent: function(n) {
|
|
1601
1604
|
switch (n.type) {
|
|
@@ -1605,7 +1608,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1605
1608
|
break;
|
|
1606
1609
|
case "dragenter":
|
|
1607
1610
|
case "dragover":
|
|
1608
|
-
m && (this._onDragOver(n),
|
|
1611
|
+
m && (this._onDragOver(n), Kt(n));
|
|
1609
1612
|
break;
|
|
1610
1613
|
case "selectstart":
|
|
1611
1614
|
n.preventDefault();
|
|
@@ -1617,8 +1620,8 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1617
1620
|
* @returns {String[]}
|
|
1618
1621
|
*/
|
|
1619
1622
|
toArray: function() {
|
|
1620
|
-
for (var n = [], a, t = this.el.children, o = 0, l = t.length,
|
|
1621
|
-
a = t[o], X(a,
|
|
1623
|
+
for (var n = [], a, t = this.el.children, o = 0, l = t.length, s = this.options; o < l; o++)
|
|
1624
|
+
a = t[o], X(a, s.draggable, this.el, !1) && n.push(a.getAttribute(s.dataIdAttr) || tl(a));
|
|
1622
1625
|
return n;
|
|
1623
1626
|
},
|
|
1624
1627
|
/**
|
|
@@ -1627,9 +1630,9 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1627
1630
|
*/
|
|
1628
1631
|
sort: function(n, a) {
|
|
1629
1632
|
var t = {}, o = this.el;
|
|
1630
|
-
this.toArray().forEach(function(l,
|
|
1631
|
-
var
|
|
1632
|
-
X(
|
|
1633
|
+
this.toArray().forEach(function(l, s) {
|
|
1634
|
+
var r = o.children[s];
|
|
1635
|
+
X(r, this.options.draggable, o, !1) && (t[l] = r);
|
|
1633
1636
|
}, this), a && this.captureAnimationState(), n.forEach(function(l) {
|
|
1634
1637
|
t[l] && (o.removeChild(t[l]), o.appendChild(t[l]));
|
|
1635
1638
|
}), a && this.animateAll();
|
|
@@ -1660,8 +1663,8 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1660
1663
|
var t = this.options;
|
|
1661
1664
|
if (a === void 0)
|
|
1662
1665
|
return t[n];
|
|
1663
|
-
var o =
|
|
1664
|
-
typeof o < "u" ? t[n] = o : t[n] = a, n === "group" &&
|
|
1666
|
+
var o = Re.modifyOption(this, n, a);
|
|
1667
|
+
typeof o < "u" ? t[n] = o : t[n] = a, n === "group" && Oa(t);
|
|
1665
1668
|
},
|
|
1666
1669
|
/**
|
|
1667
1670
|
* Destroy
|
|
@@ -1671,13 +1674,13 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1671
1674
|
var n = this.el;
|
|
1672
1675
|
n[j] = null, k(n, "mousedown", this._onTapStart), k(n, "touchstart", this._onTapStart), k(n, "pointerdown", this._onTapStart), this.nativeDraggable && (k(n, "dragover", this), k(n, "dragenter", this)), Array.prototype.forEach.call(n.querySelectorAll("[draggable]"), function(a) {
|
|
1673
1676
|
a.removeAttribute("draggable");
|
|
1674
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1677
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Ve.splice(Ve.indexOf(this.el), 1), this.el = n = null;
|
|
1675
1678
|
},
|
|
1676
1679
|
_hideClone: function() {
|
|
1677
|
-
if (!
|
|
1680
|
+
if (!re) {
|
|
1678
1681
|
if (B("hideClone", this), b.eventCanceled)
|
|
1679
1682
|
return;
|
|
1680
|
-
h(
|
|
1683
|
+
h(I, "display", "none"), this.options.removeCloneOnHide && I.parentNode && I.parentNode.removeChild(I), re = !0;
|
|
1681
1684
|
}
|
|
1682
1685
|
},
|
|
1683
1686
|
_showClone: function(n) {
|
|
@@ -1685,63 +1688,63 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1685
1688
|
this._hideClone();
|
|
1686
1689
|
return;
|
|
1687
1690
|
}
|
|
1688
|
-
if (
|
|
1691
|
+
if (re) {
|
|
1689
1692
|
if (B("showClone", this), b.eventCanceled)
|
|
1690
1693
|
return;
|
|
1691
|
-
m.parentNode ==
|
|
1694
|
+
m.parentNode == D && !this.options.group.revertClone ? D.insertBefore(I, m) : me ? D.insertBefore(I, me) : D.appendChild(I), this.options.group.revertClone && this.animate(m, I), h(I, "display", ""), re = !1;
|
|
1692
1695
|
}
|
|
1693
1696
|
}
|
|
1694
1697
|
};
|
|
1695
|
-
function
|
|
1698
|
+
function Kt(e) {
|
|
1696
1699
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1697
1700
|
}
|
|
1698
|
-
function We(e, n, a, t, o, l,
|
|
1701
|
+
function We(e, n, a, t, o, l, s, r) {
|
|
1699
1702
|
var f, y = e[j], u = y.options.onMove, p;
|
|
1700
|
-
return window.CustomEvent && !te && !
|
|
1703
|
+
return window.CustomEvent && !te && !Ae ? f = new CustomEvent("move", {
|
|
1701
1704
|
bubbles: !0,
|
|
1702
1705
|
cancelable: !0
|
|
1703
|
-
}) : (f = document.createEvent("Event"), f.initEvent("move", !0, !0)), f.to = n, f.from = e, f.dragged = a, f.draggedRect = t, f.related = o || n, f.relatedRect = l || $(n), f.willInsertAfter =
|
|
1706
|
+
}) : (f = document.createEvent("Event"), f.initEvent("move", !0, !0)), f.to = n, f.from = e, f.dragged = a, f.draggedRect = t, f.related = o || n, f.relatedRect = l || $(n), f.willInsertAfter = r, f.originalEvent = s, e.dispatchEvent(f), u && (p = u.call(y, f, s)), p;
|
|
1704
1707
|
}
|
|
1705
1708
|
function yn(e) {
|
|
1706
1709
|
e.draggable = !1;
|
|
1707
1710
|
}
|
|
1708
|
-
function
|
|
1709
|
-
|
|
1711
|
+
function Vt() {
|
|
1712
|
+
Rn = !1;
|
|
1710
1713
|
}
|
|
1711
|
-
function
|
|
1712
|
-
var t = $(ke(a.el, 0, a.options, !0)), o =
|
|
1714
|
+
function Qt(e, n, a) {
|
|
1715
|
+
var t = $(ke(a.el, 0, a.options, !0)), o = xa(a.el, a.options, C), l = 10;
|
|
1713
1716
|
return n ? e.clientX < o.left - l || e.clientY < t.top && e.clientX < t.right : e.clientY < o.top - l || e.clientY < t.bottom && e.clientX < t.left;
|
|
1714
1717
|
}
|
|
1715
|
-
function
|
|
1716
|
-
var t = $(Un(a.el, a.options.draggable)), o =
|
|
1718
|
+
function el(e, n, a) {
|
|
1719
|
+
var t = $(Un(a.el, a.options.draggable)), o = xa(a.el, a.options, C), l = 10;
|
|
1717
1720
|
return n ? e.clientX > o.right + l || e.clientY > t.bottom && e.clientX > t.left : e.clientY > o.bottom + l || e.clientX > t.right && e.clientY > t.top;
|
|
1718
1721
|
}
|
|
1719
|
-
function
|
|
1722
|
+
function nl(e, n, a, t, o, l, s, r) {
|
|
1720
1723
|
var f = t ? e.clientY : e.clientX, y = t ? a.height : a.width, u = t ? a.top : a.left, p = t ? a.bottom : a.right, g = !1;
|
|
1721
|
-
if (!
|
|
1722
|
-
if (
|
|
1724
|
+
if (!s) {
|
|
1725
|
+
if (r && Ge < y * o) {
|
|
1723
1726
|
if (!Pe && (Ne === 1 ? f > u + y * l / 2 : f < p - y * l / 2) && (Pe = !0), Pe)
|
|
1724
1727
|
g = !0;
|
|
1725
1728
|
else if (Ne === 1 ? f < u + Ge : f > p - Ge)
|
|
1726
1729
|
return -Ne;
|
|
1727
1730
|
} else if (f > u + y * (1 - o) / 2 && f < p - y * (1 - o) / 2)
|
|
1728
|
-
return
|
|
1731
|
+
return al(n);
|
|
1729
1732
|
}
|
|
1730
|
-
return g = g ||
|
|
1733
|
+
return g = g || s, g && (f < u + y * l / 2 || f > p - y * l / 2) ? f > u + y / 2 ? 1 : -1 : 0;
|
|
1731
1734
|
}
|
|
1732
|
-
function
|
|
1735
|
+
function al(e) {
|
|
1733
1736
|
return G(m) < G(e) ? 1 : -1;
|
|
1734
1737
|
}
|
|
1735
|
-
function
|
|
1738
|
+
function tl(e) {
|
|
1736
1739
|
for (var n = e.tagName + e.className + e.src + e.href + e.textContent, a = n.length, t = 0; a--; )
|
|
1737
1740
|
t += n.charCodeAt(a);
|
|
1738
1741
|
return t.toString(36);
|
|
1739
1742
|
}
|
|
1740
|
-
function
|
|
1741
|
-
|
|
1743
|
+
function ll(e) {
|
|
1744
|
+
Qe.length = 0;
|
|
1742
1745
|
for (var n = e.getElementsByTagName("input"), a = n.length; a--; ) {
|
|
1743
1746
|
var t = n[a];
|
|
1744
|
-
t.checked &&
|
|
1747
|
+
t.checked && Qe.push(t);
|
|
1745
1748
|
}
|
|
1746
1749
|
}
|
|
1747
1750
|
function Ze(e) {
|
|
@@ -1751,25 +1754,25 @@ function Mn(e) {
|
|
|
1751
1754
|
return clearTimeout(e);
|
|
1752
1755
|
}
|
|
1753
1756
|
nn && E(document, "touchmove", function(e) {
|
|
1754
|
-
(b.active ||
|
|
1757
|
+
(b.active || _e) && e.cancelable && e.preventDefault();
|
|
1755
1758
|
});
|
|
1756
1759
|
b.utils = {
|
|
1757
1760
|
on: E,
|
|
1758
1761
|
off: k,
|
|
1759
1762
|
css: h,
|
|
1760
|
-
find:
|
|
1763
|
+
find: _a,
|
|
1761
1764
|
is: function(n, a) {
|
|
1762
1765
|
return !!X(n, a, n, !1);
|
|
1763
1766
|
},
|
|
1764
|
-
extend:
|
|
1765
|
-
throttle:
|
|
1767
|
+
extend: zt,
|
|
1768
|
+
throttle: Ca,
|
|
1766
1769
|
closest: X,
|
|
1767
1770
|
toggleClass: q,
|
|
1768
|
-
clone:
|
|
1771
|
+
clone: ka,
|
|
1769
1772
|
index: G,
|
|
1770
1773
|
nextTick: Ze,
|
|
1771
1774
|
cancelNextTick: Mn,
|
|
1772
|
-
detectDirection:
|
|
1775
|
+
detectDirection: Sa,
|
|
1773
1776
|
getChild: ke,
|
|
1774
1777
|
expando: j
|
|
1775
1778
|
};
|
|
@@ -1782,15 +1785,15 @@ b.mount = function() {
|
|
|
1782
1785
|
n[0].constructor === Array && (n = n[0]), n.forEach(function(t) {
|
|
1783
1786
|
if (!t.prototype || !t.prototype.constructor)
|
|
1784
1787
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
|
|
1785
|
-
t.utils && (b.utils =
|
|
1788
|
+
t.utils && (b.utils = Q(Q({}, b.utils), t.utils)), Re.mount(t);
|
|
1786
1789
|
});
|
|
1787
1790
|
};
|
|
1788
1791
|
b.create = function(e, n) {
|
|
1789
1792
|
return new b(e, n);
|
|
1790
1793
|
};
|
|
1791
|
-
b.version =
|
|
1792
|
-
var T = [],
|
|
1793
|
-
function
|
|
1794
|
+
b.version = Rt;
|
|
1795
|
+
var T = [], De, zn, Bn = !1, pn, un, en, Ie;
|
|
1796
|
+
function ol() {
|
|
1794
1797
|
function e() {
|
|
1795
1798
|
this.defaults = {
|
|
1796
1799
|
scroll: !0,
|
|
@@ -1812,29 +1815,29 @@ function tl() {
|
|
|
1812
1815
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1813
1816
|
},
|
|
1814
1817
|
drop: function() {
|
|
1815
|
-
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
1818
|
+
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), ra(), Ye(), Bt();
|
|
1816
1819
|
},
|
|
1817
1820
|
nulling: function() {
|
|
1818
|
-
en = zn =
|
|
1821
|
+
en = zn = De = Bn = Ie = pn = un = null, T.length = 0;
|
|
1819
1822
|
},
|
|
1820
1823
|
_handleFallbackAutoScroll: function(a) {
|
|
1821
1824
|
this._handleAutoScroll(a, !0);
|
|
1822
1825
|
},
|
|
1823
1826
|
_handleAutoScroll: function(a, t) {
|
|
1824
|
-
var o = this, l = (a.touches ? a.touches[0] : a).clientX,
|
|
1825
|
-
if (en = a, t || this.options.forceAutoScrollFallback ||
|
|
1826
|
-
mn(a, this.options,
|
|
1827
|
-
var f = ce(
|
|
1828
|
-
Bn && (!
|
|
1829
|
-
var y = ce(document.elementFromPoint(l,
|
|
1827
|
+
var o = this, l = (a.touches ? a.touches[0] : a).clientX, s = (a.touches ? a.touches[0] : a).clientY, r = document.elementFromPoint(l, s);
|
|
1828
|
+
if (en = a, t || this.options.forceAutoScrollFallback || Ae || te || Fe) {
|
|
1829
|
+
mn(a, this.options, r, t);
|
|
1830
|
+
var f = ce(r, !0);
|
|
1831
|
+
Bn && (!Ie || l !== pn || s !== un) && (Ie && ra(), Ie = setInterval(function() {
|
|
1832
|
+
var y = ce(document.elementFromPoint(l, s), !0);
|
|
1830
1833
|
y !== f && (f = y, Ye()), mn(a, o.options, y, t);
|
|
1831
|
-
}, 10), pn = l, un =
|
|
1834
|
+
}, 10), pn = l, un = s);
|
|
1832
1835
|
} else {
|
|
1833
|
-
if (!this.options.bubbleScroll || ce(
|
|
1836
|
+
if (!this.options.bubbleScroll || ce(r, !0) === V()) {
|
|
1834
1837
|
Ye();
|
|
1835
1838
|
return;
|
|
1836
1839
|
}
|
|
1837
|
-
mn(a, this.options, ce(
|
|
1840
|
+
mn(a, this.options, ce(r, !1), !1);
|
|
1838
1841
|
}
|
|
1839
1842
|
}
|
|
1840
1843
|
}, ae(e, {
|
|
@@ -1847,38 +1850,38 @@ function Ye() {
|
|
|
1847
1850
|
clearInterval(e.pid);
|
|
1848
1851
|
}), T = [];
|
|
1849
1852
|
}
|
|
1850
|
-
function
|
|
1851
|
-
clearInterval(
|
|
1853
|
+
function ra() {
|
|
1854
|
+
clearInterval(Ie);
|
|
1852
1855
|
}
|
|
1853
|
-
var mn =
|
|
1856
|
+
var mn = Ca(function(e, n, a, t) {
|
|
1854
1857
|
if (n.scroll) {
|
|
1855
|
-
var o = (e.touches ? e.touches[0] : e).clientX, l = (e.touches ? e.touches[0] : e).clientY,
|
|
1856
|
-
zn !== a && (zn = a, Ye(),
|
|
1857
|
-
var p = 0, g =
|
|
1858
|
+
var o = (e.touches ? e.touches[0] : e).clientX, l = (e.touches ? e.touches[0] : e).clientY, s = n.scrollSensitivity, r = n.scrollSpeed, f = V(), y = !1, u;
|
|
1859
|
+
zn !== a && (zn = a, Ye(), De = n.scroll, u = n.scrollFn, De === !0 && (De = ce(a, !0)));
|
|
1860
|
+
var p = 0, g = De;
|
|
1858
1861
|
do {
|
|
1859
|
-
var
|
|
1860
|
-
|
|
1861
|
-
var Se = de && (Math.abs(
|
|
1862
|
+
var v = g, _ = $(v), w = _.top, P = _.bottom, N = _.left, A = _.right, Z = _.width, W = _.height, de = void 0, K = void 0, fe = v.scrollWidth, xe = v.scrollHeight, U = h(v), Ee = v.scrollLeft, le = v.scrollTop;
|
|
1863
|
+
v === f ? (de = Z < fe && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), K = W < xe && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (de = Z < fe && (U.overflowX === "auto" || U.overflowX === "scroll"), K = W < xe && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
1864
|
+
var Se = de && (Math.abs(A - o) <= s && Ee + Z < fe) - (Math.abs(N - o) <= s && !!Ee), ee = K && (Math.abs(P - l) <= s && le + W < xe) - (Math.abs(w - l) <= s && !!le);
|
|
1862
1865
|
if (!T[p])
|
|
1863
1866
|
for (var ye = 0; ye <= p; ye++)
|
|
1864
1867
|
T[ye] || (T[ye] = {});
|
|
1865
|
-
(T[p].vx != Se || T[p].vy != ee || T[p].el !==
|
|
1868
|
+
(T[p].vx != Se || T[p].vy != ee || T[p].el !== v) && (T[p].el = v, T[p].vx = Se, T[p].vy = ee, clearInterval(T[p].pid), (Se != 0 || ee != 0) && (y = !0, T[p].pid = setInterval((function() {
|
|
1866
1869
|
t && this.layer === 0 && b.active._onTouchMove(en);
|
|
1867
|
-
var
|
|
1868
|
-
typeof u == "function" && u.call(b.dragged.parentNode[j], oe,
|
|
1870
|
+
var Oe = T[this.layer].vy ? T[this.layer].vy * r : 0, oe = T[this.layer].vx ? T[this.layer].vx * r : 0;
|
|
1871
|
+
typeof u == "function" && u.call(b.dragged.parentNode[j], oe, Oe, e, en, T[this.layer].el) !== "continue" || wa(T[this.layer].el, oe, Oe);
|
|
1869
1872
|
}).bind({
|
|
1870
1873
|
layer: p
|
|
1871
1874
|
}), 24))), p++;
|
|
1872
1875
|
} while (n.bubbleScroll && g !== f && (g = ce(g, !1)));
|
|
1873
1876
|
Bn = y;
|
|
1874
1877
|
}
|
|
1875
|
-
}, 30),
|
|
1876
|
-
var a = n.originalEvent, t = n.putSortable, o = n.dragEl, l = n.activeSortable,
|
|
1878
|
+
}, 30), Da = function(n) {
|
|
1879
|
+
var a = n.originalEvent, t = n.putSortable, o = n.dragEl, l = n.activeSortable, s = n.dispatchSortableEvent, r = n.hideGhostForTarget, f = n.unhideGhostForTarget;
|
|
1877
1880
|
if (a) {
|
|
1878
1881
|
var y = t || l;
|
|
1879
|
-
|
|
1882
|
+
r();
|
|
1880
1883
|
var u = a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a, p = document.elementFromPoint(u.clientX, u.clientY);
|
|
1881
|
-
f(), y && !y.el.contains(p) && (
|
|
1884
|
+
f(), y && !y.el.contains(p) && (s("spill"), this.onSpill({
|
|
1882
1885
|
dragEl: o,
|
|
1883
1886
|
putSortable: t
|
|
1884
1887
|
}));
|
|
@@ -1898,7 +1901,7 @@ qn.prototype = {
|
|
|
1898
1901
|
var o = ke(this.sortable.el, this.startIndex, this.options);
|
|
1899
1902
|
o ? this.sortable.el.insertBefore(a, o) : this.sortable.el.appendChild(a), this.sortable.animateAll(), t && t.animateAll();
|
|
1900
1903
|
},
|
|
1901
|
-
drop:
|
|
1904
|
+
drop: Da
|
|
1902
1905
|
};
|
|
1903
1906
|
ae(qn, {
|
|
1904
1907
|
pluginName: "revertOnSpill"
|
|
@@ -1910,27 +1913,27 @@ Jn.prototype = {
|
|
|
1910
1913
|
var a = n.dragEl, t = n.putSortable, o = t || this.sortable;
|
|
1911
1914
|
o.captureAnimationState(), a.parentNode && a.parentNode.removeChild(a), o.animateAll();
|
|
1912
1915
|
},
|
|
1913
|
-
drop:
|
|
1916
|
+
drop: Da
|
|
1914
1917
|
};
|
|
1915
1918
|
ae(Jn, {
|
|
1916
1919
|
pluginName: "removeOnSpill"
|
|
1917
1920
|
});
|
|
1918
|
-
b.mount(new
|
|
1921
|
+
b.mount(new ol());
|
|
1919
1922
|
b.mount(Jn, qn);
|
|
1920
|
-
const
|
|
1921
|
-
var
|
|
1922
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
1923
|
+
const il = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .header .header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .header .header_action{display:flex}.nylas-booking-form-config .header .header_action select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-form-config .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-booking-form-config .content{font-size:15px}}.nylas-booking-form-config .content .additional_fields{display:flex;flex-direction:column;gap:1rem;position:relative;overflow:auto}.nylas-booking-form-config .content .additional_fields.static_fields{margin-bottom:1rem}@media screen and (max-width: 504px){.nylas-booking-form-config .content .additional_fields{gap:0.5rem;padding:0}}.nylas-booking-form-config .content .additional_fields .form-field{border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);padding:1rem;user-select:none;background-color:white;position:relative}.nylas-booking-form-config .content .additional_fields .form-field.highlight{background-color:var(--nylas-base-200)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .dragable{cursor:move}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text{flex:1;text-align:left;padding-left:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text h4{margin:0;font-size:16px;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions{display:flex;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .is-required{color:var(--nylas-base-500);background-color:var(--nylas-base-50);font-weight:600;padding:4px 8px;border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron{display:flex;align-self:center;cursor:pointer}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.open{transform:rotate(90deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.closed{transform:rotate(270deg)}.nylas-booking-form-config .content .additional_fields .form-field span.error{opacity:1;color:var(--nylas-error);margin-top:8px;transition:opacity 0.3s ease-out}.nylas-booking-form-config .content .additional_fields .form-field span.error.fade-out{opacity:0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content{padding:1.5rem 0 0 2.7rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content.hidden{display:none}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs{display:flex;flex-direction:column;gap:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .label-input{padding:0 1rem 0 0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input label{padding:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input input[type=checkbox]{transform:scale(1.3)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container h4{margin:0;font-size:16px;line-height:20px;font-weight:500;padding:0.5rem 0;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button{border:none;background:transparent;height:40px;margin:1rem 0;cursor:pointer;color:var(--nylas-base-800);display:flex;align-items:center;justify-content:space-between}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options{display:flex;flex-direction:column;gap:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:active{color:var(--nylas-primary)}', sl = il;
|
|
1924
|
+
var rl = function(e, n, a, t) {
|
|
1925
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
1923
1926
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1924
1927
|
l = Reflect.decorate(e, n, a, t);
|
|
1925
1928
|
else
|
|
1926
|
-
for (var
|
|
1927
|
-
(
|
|
1929
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
1930
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
1928
1931
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
1929
1932
|
}, gn = function(e, n) {
|
|
1930
1933
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1931
1934
|
return Reflect.metadata(e, n);
|
|
1932
1935
|
};
|
|
1933
|
-
const
|
|
1936
|
+
const ca = ["dropdown", "radio_button"], da = ["multi_select"], Ia = class {
|
|
1934
1937
|
constructor(e) {
|
|
1935
1938
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "additional-fields", this.additionalFields = void 0, this.selectedLanguage = void 0, this.staticFields = [
|
|
1936
1939
|
{
|
|
@@ -1982,22 +1985,22 @@ const Da = class {
|
|
|
1982
1985
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
|
|
1983
1986
|
}
|
|
1984
1987
|
updateFormFields(e, n = !0) {
|
|
1985
|
-
var o, l,
|
|
1988
|
+
var o, l, s, r;
|
|
1986
1989
|
this.watchFields = {
|
|
1987
1990
|
title: ((o = e == null ? void 0 : e.event_booking) == null ? void 0 : o.title) || "",
|
|
1988
1991
|
description: ((l = e == null ? void 0 : e.event_booking) == null ? void 0 : l.description) || ""
|
|
1989
1992
|
};
|
|
1990
|
-
const a = Object.entries(((
|
|
1993
|
+
const a = Object.entries(((s = e == null ? void 0 : e.scheduler) == null ? void 0 : s.additional_fields) || {}).map(([f, y]) => ({ ...y, key: f })) || this.additionalFields || [];
|
|
1991
1994
|
this.formFields = [
|
|
1992
1995
|
...a.sort((f, y) => f.order - y.order).map((f, y) => {
|
|
1993
|
-
const u =
|
|
1996
|
+
const u = Vn.find((v) => v.type === f.type);
|
|
1994
1997
|
if (!u)
|
|
1995
1998
|
return { ...f, isOpen: !1, typeLabel: "Unknown" };
|
|
1996
1999
|
const p = u.label, g = f.order || 0;
|
|
1997
2000
|
return { ...f, order: g - 1, isOpen: !1, typeLabel: p, fieldLabelKey: f.type };
|
|
1998
2001
|
})
|
|
1999
2002
|
], this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields, n);
|
|
2000
|
-
const t = (
|
|
2003
|
+
const t = (r = this.host.shadowRoot) == null ? void 0 : r.getElementById("fields");
|
|
2001
2004
|
b.create(t, {
|
|
2002
2005
|
animation: 150,
|
|
2003
2006
|
swap: !0,
|
|
@@ -2010,22 +2013,22 @@ const Da = class {
|
|
|
2010
2013
|
});
|
|
2011
2014
|
}
|
|
2012
2015
|
formFieldsChangedHandler(e, n = !0) {
|
|
2013
|
-
const o = (e || []).filter((l) => !l.readonly).sort((l,
|
|
2016
|
+
const o = (e || []).filter((l) => !l.readonly).sort((l, s) => l.order - s.order).map((l, s) => ({ ...{
|
|
2014
2017
|
type: l.type,
|
|
2015
2018
|
required: l.required,
|
|
2016
2019
|
label: l.label,
|
|
2017
|
-
order:
|
|
2020
|
+
order: s + 1,
|
|
2018
2021
|
options: l.options,
|
|
2019
2022
|
key: l.key,
|
|
2020
2023
|
default: l.default,
|
|
2021
2024
|
fieldLabelKey: l.fieldLabelKey
|
|
2022
|
-
} })).reduce((l,
|
|
2023
|
-
type:
|
|
2024
|
-
required:
|
|
2025
|
-
order:
|
|
2026
|
-
options:
|
|
2027
|
-
label:
|
|
2028
|
-
default:
|
|
2025
|
+
} })).reduce((l, s) => (s.key && (l[s.key] = {
|
|
2026
|
+
type: s.type,
|
|
2027
|
+
required: s.required,
|
|
2028
|
+
order: s.order,
|
|
2029
|
+
options: s.options,
|
|
2030
|
+
label: s.label,
|
|
2031
|
+
default: s.default
|
|
2029
2032
|
}), l), {});
|
|
2030
2033
|
this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(o), this.name), n && this.valueChanged.emit({
|
|
2031
2034
|
value: JSON.stringify(o),
|
|
@@ -2047,8 +2050,19 @@ const Da = class {
|
|
|
2047
2050
|
nylasFormDropdownChangedHandler(e) {
|
|
2048
2051
|
const { name: n, value: a } = e.detail;
|
|
2049
2052
|
if (n === "add-field") {
|
|
2050
|
-
const t =
|
|
2051
|
-
this.formFields = [...this.formFields,
|
|
2053
|
+
const t = Vn.find((f) => f.type === a), o = Math.max(...this.formFields.map((f) => f.order)), l = this.formFields.filter((f) => f.type === t.type && f.key !== void 0).map((f) => f.key), s = this.findNextMissingNumber(l), r = { ...t, label: t.label, key: `${t.type}_${t.label.split(" ").join("-")}_${s}`, order: o + 1 };
|
|
2054
|
+
this.formFields = [...this.formFields, r], this.formFieldsChangedHandler(this.formFields);
|
|
2055
|
+
} else if (n.includes("-default-value")) {
|
|
2056
|
+
const t = parseInt(n.split("-")[0] || "0");
|
|
2057
|
+
let o = a;
|
|
2058
|
+
a === "null" && (o = ""), this.fieldDefaultValueChanged(t, { detail: { value: o } });
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
selectedOptionsChangedHandler(e) {
|
|
2062
|
+
const { name: n, value: a } = e.detail;
|
|
2063
|
+
if (n.includes("-default-value")) {
|
|
2064
|
+
const t = parseInt(n.split("-")[0] || "0"), o = a.join(", ");
|
|
2065
|
+
this.fieldDefaultValueChanged(t, { detail: { value: o } });
|
|
2052
2066
|
}
|
|
2053
2067
|
}
|
|
2054
2068
|
nylasFormInputChangedHandler(e) {
|
|
@@ -2072,10 +2086,9 @@ const Da = class {
|
|
|
2072
2086
|
const { oldIndex: n, newIndex: a } = e;
|
|
2073
2087
|
if (n == null || a == null || n === a)
|
|
2074
2088
|
return;
|
|
2075
|
-
console.log("###swapFields", n, a);
|
|
2076
2089
|
const t = [...this.formFields], [o] = t.splice(n, 1);
|
|
2077
|
-
t.splice(a, 0, o), t.forEach((l,
|
|
2078
|
-
l.order =
|
|
2090
|
+
t.splice(a, 0, o), t.forEach((l, s) => {
|
|
2091
|
+
l.order = s + 1;
|
|
2079
2092
|
}), this.formFields = t, this.formFieldsChangedHandler(this.formFields);
|
|
2080
2093
|
}
|
|
2081
2094
|
fieldToggle(e) {
|
|
@@ -2110,50 +2123,56 @@ const Da = class {
|
|
|
2110
2123
|
this.formFields = this.formFields.map((a, t) => (t === e && (a.options || (a.options = []), a.options = a.options.filter((o, l) => l !== n)), a)), this.formFieldsChangedHandler(this.formFields);
|
|
2111
2124
|
}
|
|
2112
2125
|
fieldOptionChange(e, n, a) {
|
|
2113
|
-
this.formFields = this.formFields.map((t, o) => (o === e && (t.options || (t.options = []), t.options = t.options.map((l,
|
|
2126
|
+
this.formFields = this.formFields.map((t, o) => (o === e && (t.options || (t.options = []), t.options = t.options.map((l, s) => (s === n && (l = a.detail.value), l))), t)), this.formFieldsChangedHandler(this.formFields);
|
|
2114
2127
|
}
|
|
2115
2128
|
fieldDefaultValueChanged(e, n) {
|
|
2116
2129
|
this.formFields = this.formFields.map((a, t) => (t === e && (a.default = n.detail.value), a)), this.formFieldsChangedHandler(this.formFields);
|
|
2117
2130
|
}
|
|
2118
2131
|
render() {
|
|
2119
2132
|
var e;
|
|
2120
|
-
return i(
|
|
2133
|
+
return i(O, { key: "20f0aeab89c822407ffaf1f96edf15d49440a72f" }, i("div", { key: "79ed7c953897d5b319adbdd9f09f6da1851622c1", class: "nylas-booking-form-config", part: "nbfc" }, i("div", { key: "2805f58cd85ee3252037aa340ebf65185f2d8d9e", class: "header", part: "nbfc__header" }, i("div", { key: "2467bd598226df19e9eb00d7a7288c9492270599", class: "header_text" }, i("h3", { key: "e5d7ede40d90f7e2c25c46fc192040a138e7f1fa" }, d.t("nylasBookingFormConfig.headerTitle")), i("p", { key: "6118c71c1e3c9fd531aca31b95ae764f186b98a8" }, d.t("nylasBookingFormConfig.headerSubTitle"))), i("div", { key: "84f7d998d1cc8918183406fe19da487356b5a0d5", class: "header_action" }, i("select-dropdown", { key: "35c60cb0e733b7602c01cfe16793faaa80d21629", name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: this.fieldTypes, withSearch: !1, withChevron: !1, dropdownButtonText: d.t("nylasBookingFormConfig.dropdownButtonText") }, i("span", { key: "81819f5ed73e5e826bb9374d382699c69a4852e8", slot: "select-icon" }, i("plus-icon", { key: "1c8df2d966e00e48338559e436eac3c59aa4054c", width: "15", height: "15" }))))), i("div", { key: "4bbff378cf59553922de4d8c2ad7fda4765889b9", class: "content" }, i("div", { key: "c9679c35f96c072a558360dec003acefba62f7dc", class: "additional_fields static_fields", part: "nbfc__static_fields" }, this.staticFields.map((n, a) => i("div", { class: `form-field draggable ${n.readonly && "fixed"}`, part: "nbfc__form_field", key: a }, i("div", { class: "form-field_header", part: "nbfc__form_field-header" }, i("span", { class: "dragable" }, i("dragable-icon", { width: "24", height: "25" })), i("div", { class: "form-field_header_text" }, i("h4", null, d.t(`nylasBookingFormConfig.fieldLabel.${n.fieldLabelKey}`)), i("p", null, d.t(`nylasBookingFormConfig.fieldType.${n.type}`))), i("div", { class: "form-field_header_actions" }, i("span", { class: "is-required" }, n.required ? d.t("required") : d.t("optional")), i("span", { class: `chevron ${n.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2121
2134
|
this.staticFieldToggle(a);
|
|
2122
2135
|
} }, i("chevron-icon", { width: "24", height: "24" })))), i("div", { class: `form-field_content ${!n.isOpen && "hidden"}`, part: "nbfc__form_field-content" }, i("div", { class: "inputs" }, i("input-component", { class: "label-input", name: `${a}`, key: a, label: d.t("nylasBookingFormConfig.label"), required: !1, readOnly: n.readonly, defaultValue: n.label }, i("div", { class: "required-input", slot: "additional-input" }, i("input", { type: "checkbox", name: `required_${n.order}`, id: `required_${n.order}`, onClick: () => {
|
|
2123
2136
|
this.fieldRequired(a);
|
|
2124
|
-
}, checked: n.required, disabled: n.readonly }), i("label", { htmlFor: `required_${n.order}`, "aria-label": "Required" }, d.t("required"))))))))), i("div", { key: "
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
"
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2137
|
+
}, checked: n.required, disabled: n.readonly }), i("label", { htmlFor: `required_${n.order}`, "aria-label": "Required" }, d.t("required"))))))))), i("div", { key: "165f7e84613393e33a8216224e09ea35a5b2a13a", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, (e = this.formFields) == null ? void 0 : e.map((n, a) => {
|
|
2138
|
+
var t, o;
|
|
2139
|
+
return i("div", { class: `form-field draggable ${n != null && n.readonly ? "fixed" : ""}`, part: "nbfc__form_field", key: n.key }, i("div", { class: "form-field_header", part: "nbfc__form_field-header" }, i("span", { class: "dragable" }, i("dragable-icon", { width: "24", height: "25" })), i("div", { class: "form-field_header_text" }, i("h4", null, n.label || d.t(`nylasBookingFormConfig.fieldLabel.${n.fieldLabelKey}`)), i("p", null, d.t(`nylasBookingFormConfig.fieldType.${n.type}`))), i("div", { class: "form-field_header_actions" }, i("span", { class: "is-required" }, n.required ? d.t("required") : d.t("optional")), !n.readonly && i("button", { onClick: () => {
|
|
2140
|
+
const l = this.watchFields.title, s = this.watchFields.description;
|
|
2141
|
+
if (l && n.key && l.includes(n.key)) {
|
|
2142
|
+
n.error = d.t("nylasBookingFormConfig.fieldInTitleError"), this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields), setTimeout(() => {
|
|
2143
|
+
n.error = "", this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields);
|
|
2144
|
+
}, 3e3);
|
|
2145
|
+
return;
|
|
2146
|
+
}
|
|
2147
|
+
if (s && n.key && s.includes(n.key)) {
|
|
2148
|
+
n.error = d.t("nylasBookingFormConfig.fieldInDescriptionError"), this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields), setTimeout(() => {
|
|
2149
|
+
n.error = "", this.formFields = [...this.formFields], this.formFieldsChangedHandler(this.formFields);
|
|
2150
|
+
}, 3e3);
|
|
2151
|
+
return;
|
|
2152
|
+
}
|
|
2153
|
+
this.fieldRemove(a);
|
|
2154
|
+
} }, i("close-icon", null)), i("span", { class: `chevron ${n.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2155
|
+
this.fieldToggle(a);
|
|
2156
|
+
} }, i("chevron-icon", { width: "24", height: "24" })))), i("span", { class: {
|
|
2157
|
+
error: !0,
|
|
2158
|
+
"fade-out": !(n != null && n.error) || n.error === ""
|
|
2159
|
+
} }, n.error), i("div", { class: `form-field_content ${!n.isOpen && "hidden"}`, part: "nbfc__form_field-content" }, i("div", { class: "inputs" }, i("input-component", { class: "label-input", name: `${a}`, key: `${a}-${n.key}-label`, label: d.t("nylasBookingFormConfig.label"), required: !1, readOnly: n.readonly, defaultValue: n.label }, i("div", { class: "required-input", slot: "additional-input" }, i("input", { type: "checkbox", name: `required_${a}`, id: `required_${a}`, onClick: () => {
|
|
2160
|
+
this.fieldRequired(a);
|
|
2161
|
+
}, checked: n.required, disabled: n.readonly }), i("label", { htmlFor: `required_${a}`, "aria-label": "Required" }, d.t("required")))), !n.readonly && ca.includes(n.type) && i("select-dropdown", { name: `${a}-${n.key}-default-value`, key: `${a}-${n.key}-default-value`, label: d.t("nylasBookingFormConfig.defaultValue"), required: !1, readOnly: n.readonly, options: [
|
|
2162
|
+
{ value: "null", label: d.t("nylasBookingCalendarPicker.selectOptionLabel") },
|
|
2163
|
+
...((t = n.options) == null ? void 0 : t.map((l) => ({ value: l, label: l }))) || []
|
|
2164
|
+
], emptyValue: d.t("nylasBookingCalendarPicker.selectOptionLabel"), withSearch: !1 }), !n.readonly && n.type === "checkbox" && i("select-dropdown", { name: `${a}-${n.key}-default-value`, key: `${a}-${n.key}-default-value`, label: d.t("nylasBookingFormConfig.defaultValue"), required: !1, readOnly: n.readonly, options: [{ value: "null", label: d.t("nylasBookingCalendarPicker.selectOptionLabel") }, ...["true", "false"].map((l) => ({ value: l, label: l }))], emptyValue: d.t("nylasBookingCalendarPicker.selectOptionLabel"), withSearch: !1 }), !n.readonly && da.includes(n.type) && i("multi-select-dropdown", { name: `${a}-${n.key}-default-value`, key: `${a}-${n.key}-default-value`, label: d.t("nylasBookingFormConfig.defaultValue"), required: !1, selectAtLeastOneOptionLabel: d.t("selectOneOrMoreOptions"), multipleOptionsSelectedLabel: d.t("multipleOptionsSelected"), readOnly: n.readonly, options: ((o = n.options) == null ? void 0 : o.filter((l) => !!l && l !== null).map((l) => ({ value: l, label: l }))) || [] }), !n.readonly && n.type !== "date" && n.type !== "checkbox" && !ca.includes(n.type) && !da.includes(n.type) && i("input-component", { class: "default-value", name: `default-value-${a}`, key: `${a}-${n.key}-default-value`, label: d.t("nylasBookingFormConfig.defaultValue"), required: !1, readOnly: n.readonly, defaultValue: n.default }), !n.readonly && n.type === "date" && i("nylas-date-component", { class: "default-value", name: `default-value-${a}`, key: `${a}-${n.key}-default-value`, label: d.t("nylasBookingFormConfig.defaultValue"), required: !1, readOnly: n.readonly, defaultValue: n.default })), n.options != null && i("div", { class: "options-container" }, i("h4", null, d.t("nylasBookingFormConfig.allOptionsHeader")), i("div", { class: "options" }, n.options.map((l, s) => i("div", { class: "option" }, i("input-component", { key: s, name: `${a}_${s}`, label: n.typeLabel + " option " + (s + 1), required: !0, defaultValue: l }, s > 1 && i("div", { class: "required-input", slot: "additional-input" }, i("button", { onClick: () => {
|
|
2165
|
+
this.fieldOptionRemove(a, s);
|
|
2166
|
+
} }, i("close-icon", null))))))), i("button", { onClick: () => {
|
|
2167
|
+
this.fieldOptionAdd(a);
|
|
2168
|
+
}, part: "nap__add-time-range" }, i("add-circle-icon", null), " ", d.t("nylasBookingFormConfig.addOption")))));
|
|
2169
|
+
})))));
|
|
2151
2170
|
}
|
|
2152
2171
|
static get formAssociated() {
|
|
2153
2172
|
return !0;
|
|
2154
2173
|
}
|
|
2155
2174
|
get host() {
|
|
2156
|
-
return
|
|
2175
|
+
return H(this);
|
|
2157
2176
|
}
|
|
2158
2177
|
static get watchers() {
|
|
2159
2178
|
return {
|
|
@@ -2163,8 +2182,8 @@ const Da = class {
|
|
|
2163
2182
|
};
|
|
2164
2183
|
}
|
|
2165
2184
|
};
|
|
2166
|
-
|
|
2167
|
-
|
|
2185
|
+
rl([
|
|
2186
|
+
L({
|
|
2168
2187
|
name: "nylas-booking-form-config",
|
|
2169
2188
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2170
2189
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2175,22 +2194,22 @@ il([
|
|
|
2175
2194
|
gn("design:type", Function),
|
|
2176
2195
|
gn("design:paramtypes", []),
|
|
2177
2196
|
gn("design:returntype", void 0)
|
|
2178
|
-
],
|
|
2179
|
-
|
|
2180
|
-
const
|
|
2181
|
-
var
|
|
2182
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2197
|
+
], Ia.prototype, "render", null);
|
|
2198
|
+
Ia.style = sl;
|
|
2199
|
+
const cl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container span{width:-webkit-fill-available;width:fill-available;width:-moz-available;text-align:end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', dl = cl;
|
|
2200
|
+
var fl = function(e, n, a, t) {
|
|
2201
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2183
2202
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2184
2203
|
l = Reflect.decorate(e, n, a, t);
|
|
2185
2204
|
else
|
|
2186
|
-
for (var
|
|
2187
|
-
(
|
|
2205
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2206
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2188
2207
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2189
2208
|
}, hn = function(e, n) {
|
|
2190
2209
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2191
2210
|
return Reflect.metadata(e, n);
|
|
2192
2211
|
};
|
|
2193
|
-
const
|
|
2212
|
+
const Fa = class {
|
|
2194
2213
|
constructor(e) {
|
|
2195
2214
|
var n, a, t;
|
|
2196
2215
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "buffer-time", this.buffer = ((t = (a = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : t.buffer) ?? { before: 0, after: 0 }, this.selectedLanguage = void 0, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after, this.componentLoaded = !1;
|
|
@@ -2247,26 +2266,26 @@ const La = class {
|
|
|
2247
2266
|
this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(n), this.name), e && this.valueChanged.emit({ value: JSON.stringify(n), name: this.name });
|
|
2248
2267
|
}
|
|
2249
2268
|
renderPreview() {
|
|
2250
|
-
const t = (
|
|
2251
|
-
const
|
|
2269
|
+
const t = (s) => {
|
|
2270
|
+
const r = Math.floor(s / 30), f = s % 30 / 30 * 10;
|
|
2252
2271
|
return {
|
|
2253
|
-
fullSlots:
|
|
2272
|
+
fullSlots: r,
|
|
2254
2273
|
partialFillHeight: f
|
|
2255
2274
|
};
|
|
2256
2275
|
}, o = () => {
|
|
2257
|
-
const { fullSlots:
|
|
2276
|
+
const { fullSlots: s, partialFillHeight: r } = t(this.selectedBeforeBufferTime);
|
|
2258
2277
|
return Array.from({ length: 4 }, (f, y) => {
|
|
2259
|
-
const u = this.selectedBeforeBufferTime > 0 && y > 4 -
|
|
2260
|
-
return u && !p ? g.backgroundColor = "var(--nylas-base-100)" : p && (g.background = `linear-gradient(to top, var(--nylas-base-100) ${
|
|
2278
|
+
const u = this.selectedBeforeBufferTime > 0 && y > 4 - s - 1, p = this.selectedBeforeBufferTime > 0 && y === 4 - s - 1 && r > 0, g = {};
|
|
2279
|
+
return u && !p ? g.backgroundColor = "var(--nylas-base-100)" : p && (g.background = `linear-gradient(to top, var(--nylas-base-100) ${r}px, transparent 0)`), i("div", { key: y, class: `slot ${u ? "active" : ""}`, style: {
|
|
2261
2280
|
height: "10px",
|
|
2262
2281
|
...g
|
|
2263
2282
|
} });
|
|
2264
2283
|
});
|
|
2265
2284
|
}, l = () => {
|
|
2266
|
-
const { fullSlots:
|
|
2285
|
+
const { fullSlots: s, partialFillHeight: r } = t(this.selectedAfterBufferTime);
|
|
2267
2286
|
return Array.from({ length: 4 }, (f, y) => {
|
|
2268
|
-
const u = this.selectedAfterBufferTime > 0 && y <
|
|
2269
|
-
return u && !p ? g.backgroundColor = "var(--nylas-base-100)" : p && (g.background = `linear-gradient(to bottom, var(--nylas-base-100) ${
|
|
2287
|
+
const u = this.selectedAfterBufferTime > 0 && y < s, p = y === s && r > 0, g = {};
|
|
2288
|
+
return u && !p ? g.backgroundColor = "var(--nylas-base-100)" : p && (g.background = `linear-gradient(to bottom, var(--nylas-base-100) ${r}px, transparent 0)`), i("div", { key: y, class: `slot ${u ? "active" : ""}`, style: {
|
|
2270
2289
|
height: "10px",
|
|
2271
2290
|
...g
|
|
2272
2291
|
} });
|
|
@@ -2282,13 +2301,13 @@ const La = class {
|
|
|
2282
2301
|
value: t.toString()
|
|
2283
2302
|
};
|
|
2284
2303
|
});
|
|
2285
|
-
return i(
|
|
2304
|
+
return i(O, null, i("div", { class: "nylas-buffer-time", part: "nbt" }, i("div", { class: "header", part: "nbt__header" }, i("h3", null, d.t("nylasBufferTime.headerTitle")), i("p", null, d.t("nylasBufferTime.headerSubTitle"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasBufferTime.tooltip.desc"))))), i("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, i("div", { class: "nylas-buffer-time__dropdown" }, i("div", { class: "nylas-buffer-time__row" }, i("label", null, d.t("nylasBufferTime.beforeBufferLabel")), i("div", { class: "dropdown-container" }, this.componentLoaded && i("select-dropdown", { id: "before-buffer-time", withSearch: !1, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: e, defaultSelectedOption: e.find((n) => n.value === this.selectedBeforeBufferTime.toString()) }), i("span", null, d.t("nylasBufferTime.minutesShort")))), i("div", { class: "nylas-buffer-time__row" }, i("label", null, d.t("nylasBufferTime.afterBufferLabel")), i("div", { class: "dropdown-container" }, this.componentLoaded && i("select-dropdown", { id: "after-buffer-time", withSearch: !1, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: e, defaultSelectedOption: e.find((n) => n.value === this.selectedAfterBufferTime.toString()) }), i("span", null, d.t("nylasBufferTime.minutesShort"))))), i("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, i("h4", null, d.t("nylasBufferTime.previewHeader")), this.renderPreview()))));
|
|
2286
2305
|
}
|
|
2287
2306
|
static get formAssociated() {
|
|
2288
2307
|
return !0;
|
|
2289
2308
|
}
|
|
2290
2309
|
get host() {
|
|
2291
|
-
return
|
|
2310
|
+
return H(this);
|
|
2292
2311
|
}
|
|
2293
2312
|
static get watchers() {
|
|
2294
2313
|
return {
|
|
@@ -2298,8 +2317,8 @@ const La = class {
|
|
|
2298
2317
|
};
|
|
2299
2318
|
}
|
|
2300
2319
|
};
|
|
2301
|
-
|
|
2302
|
-
|
|
2320
|
+
fl([
|
|
2321
|
+
L({
|
|
2303
2322
|
name: "nylas-buffer-time",
|
|
2304
2323
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2305
2324
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2316,22 +2335,22 @@ cl([
|
|
|
2316
2335
|
hn("design:type", Function),
|
|
2317
2336
|
hn("design:paramtypes", []),
|
|
2318
2337
|
hn("design:returntype", void 0)
|
|
2319
|
-
],
|
|
2320
|
-
|
|
2321
|
-
const
|
|
2322
|
-
var
|
|
2323
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2338
|
+
], Fa.prototype, "render", null);
|
|
2339
|
+
Fa.style = dl;
|
|
2340
|
+
const yl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:var(--nylas-base-900);font-size:16px;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button--error){border:1px solid var(--nylas-error)}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset;margin-top:-0.5rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', pl = yl;
|
|
2341
|
+
var ul = function(e, n, a, t) {
|
|
2342
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2324
2343
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2325
2344
|
l = Reflect.decorate(e, n, a, t);
|
|
2326
2345
|
else
|
|
2327
|
-
for (var
|
|
2328
|
-
(
|
|
2346
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2347
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2329
2348
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2330
2349
|
}, bn = function(e, n) {
|
|
2331
2350
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2332
2351
|
return Reflect.metadata(e, n);
|
|
2333
2352
|
};
|
|
2334
|
-
const
|
|
2353
|
+
const Ta = class {
|
|
2335
2354
|
constructor(e) {
|
|
2336
2355
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "calendar", this.currentUser = void 0, this.calendars = void 0, this.defaultSelectedCalendars = [], this.selectedLanguage = void 0, this.selectedCalendars = [], this.error = "";
|
|
2337
2356
|
}
|
|
@@ -2376,20 +2395,20 @@ const Fa = class {
|
|
|
2376
2395
|
render() {
|
|
2377
2396
|
var n;
|
|
2378
2397
|
const e = ((n = this.calendars) == null ? void 0 : n.map((a) => {
|
|
2379
|
-
var t, o, l,
|
|
2398
|
+
var t, o, l, s;
|
|
2380
2399
|
return {
|
|
2381
2400
|
value: a.id,
|
|
2382
2401
|
label: a.name,
|
|
2383
|
-
selected: ((t = this.defaultSelectedCalendars) == null ? void 0 : t.includes(a.id)) || ((o = this.defaultSelectedCalendars) != null && o.includes("primary") || ((l = this.defaultSelectedCalendars) == null ? void 0 : l.length) === 0 ? a.id === ((
|
|
2402
|
+
selected: ((t = this.defaultSelectedCalendars) == null ? void 0 : t.includes(a.id)) || ((o = this.defaultSelectedCalendars) != null && o.includes("primary") || ((l = this.defaultSelectedCalendars) == null ? void 0 : l.length) === 0 ? a.id === ((s = this.currentUser) == null ? void 0 : s.email) || a.id === this.name.split("participant-")[1] : !1)
|
|
2384
2403
|
};
|
|
2385
2404
|
})) ?? [];
|
|
2386
|
-
return i(
|
|
2405
|
+
return i(O, null, i("div", { class: "nylas-calendar-picker", part: "ncp" }, e.length > 0 ? i("div", { class: "nylas-calendar-picker__dropdown" }, i("multi-select-dropdown", { name: this.name, options: e, selectAtLeastOneOptionLabel: d.t("selectOneOrMoreOptions"), multipleOptionsSelectedLabel: d.t("multipleOptionsSelected"), error: this.error, exportparts: "msd_dropdown: ncp__dropdown, msd_dropdown-button: ncp__dropdown-button, msd_dropdown-content: ncp__dropdown-content" })) : i("div", { class: "nylas-calendar-picker__loading" }, i("span", { class: "label" }, d.t("nylasCalendarPicker.calendarPickerLabel"), " ", i("info-icon", null)), i("div", { class: "loading-button" }, i("span", null, d.t("loading"), "...")))));
|
|
2387
2406
|
}
|
|
2388
2407
|
static get formAssociated() {
|
|
2389
2408
|
return !0;
|
|
2390
2409
|
}
|
|
2391
2410
|
get host() {
|
|
2392
|
-
return
|
|
2411
|
+
return H(this);
|
|
2393
2412
|
}
|
|
2394
2413
|
static get watchers() {
|
|
2395
2414
|
return {
|
|
@@ -2398,8 +2417,8 @@ const Fa = class {
|
|
|
2398
2417
|
};
|
|
2399
2418
|
}
|
|
2400
2419
|
};
|
|
2401
|
-
|
|
2402
|
-
|
|
2420
|
+
ul([
|
|
2421
|
+
L({
|
|
2403
2422
|
name: "nylas-calendar-picker",
|
|
2404
2423
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2405
2424
|
["schedulerConfig.currentUser", "currentUser"],
|
|
@@ -2416,22 +2435,22 @@ yl([
|
|
|
2416
2435
|
bn("design:type", Function),
|
|
2417
2436
|
bn("design:paramtypes", []),
|
|
2418
2437
|
bn("design:returntype", void 0)
|
|
2419
|
-
],
|
|
2420
|
-
|
|
2421
|
-
const
|
|
2422
|
-
var
|
|
2423
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2438
|
+
], Ta.prototype, "render", null);
|
|
2439
|
+
Ta.style = pl;
|
|
2440
|
+
const ml = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}', gl = ml;
|
|
2441
|
+
var hl = function(e, n, a, t) {
|
|
2442
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2424
2443
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2425
2444
|
l = Reflect.decorate(e, n, a, t);
|
|
2426
2445
|
else
|
|
2427
|
-
for (var
|
|
2428
|
-
(
|
|
2446
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2447
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2429
2448
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2430
|
-
},
|
|
2449
|
+
}, vn = function(e, n) {
|
|
2431
2450
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2432
2451
|
return Reflect.metadata(e, n);
|
|
2433
2452
|
};
|
|
2434
|
-
const
|
|
2453
|
+
const $a = class {
|
|
2435
2454
|
constructor(e) {
|
|
2436
2455
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.cancellationPolicy = void 0, this.name = "cancelation-policy", this.selectedLanguage = void 0, this.message = void 0;
|
|
2437
2456
|
}
|
|
@@ -2462,13 +2481,13 @@ const Ia = class {
|
|
|
2462
2481
|
this.message = n, this.internals.setFormValue(n, this.name), this.valueChanged.emit({ value: n, name: this.name });
|
|
2463
2482
|
}
|
|
2464
2483
|
render() {
|
|
2465
|
-
return i(
|
|
2484
|
+
return i(O, { key: "f60529ebedba533044eb12193ca7d98a655206ec" }, i("div", { key: "3141f903629853ce469c6545cc6632632a1921c5", class: "nylas-cancellation-policy", part: "ncpolicy" }, i("label", { key: "6650e991b482bc4abe327d7a6e118b80a2d049ea", htmlFor: this.name }, d.t("nylasCancellationPolicy.cancellationPolicyLabel"), i("span", { key: "2759ece1e0ca31e1b037a09d8f946745b0f56ac7", class: "label-icon" }, i("tooltip-component", { key: "a56898a05f83a9ad4fc0397a744ea61b92c95908" }, i("info-icon", { key: "ff718a84a962e0c97228ef98ba49c4e3d0b50ca5", slot: "tooltip-icon" }), i("span", { key: "14f7a568b0ff38a978bbb8d23ba51207fadc52fe", slot: "tooltip-content" }, d.t("nylasCancellationPolicy.tooltip.desc"))))), i("textarea", { key: "209ce7d84e3b618261c1b0bbea7ba50322e70ec1", id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: (e) => this.handleChange(e) })));
|
|
2466
2485
|
}
|
|
2467
2486
|
static get formAssociated() {
|
|
2468
2487
|
return !0;
|
|
2469
2488
|
}
|
|
2470
2489
|
get host() {
|
|
2471
|
-
return
|
|
2490
|
+
return H(this);
|
|
2472
2491
|
}
|
|
2473
2492
|
static get watchers() {
|
|
2474
2493
|
return {
|
|
@@ -2478,8 +2497,8 @@ const Ia = class {
|
|
|
2478
2497
|
};
|
|
2479
2498
|
}
|
|
2480
2499
|
};
|
|
2481
|
-
|
|
2482
|
-
|
|
2500
|
+
hl([
|
|
2501
|
+
L({
|
|
2483
2502
|
name: "nylas-cancellation-policy",
|
|
2484
2503
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2485
2504
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2488,25 +2507,25 @@ ml([
|
|
|
2488
2507
|
eventToProps: {},
|
|
2489
2508
|
fireRegisterEvent: !0
|
|
2490
2509
|
}),
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
],
|
|
2495
|
-
|
|
2496
|
-
const
|
|
2497
|
-
var
|
|
2498
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2510
|
+
vn("design:type", Function),
|
|
2511
|
+
vn("design:paramtypes", []),
|
|
2512
|
+
vn("design:returntype", void 0)
|
|
2513
|
+
], $a.prototype, "render", null);
|
|
2514
|
+
$a.style = gl;
|
|
2515
|
+
const bl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr;border-top:1px solid var(--nylas-base-200);padding-top:1.25rem;margin:0.25rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row span.selected-value{font-weight:500}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container{padding:0 2rem 1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body span.error-message{color:var(--nylas-error)}.nylas-confirmation-email .nylas-confirmation-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}toggle-switch{padding-right:8px}', vl = bl;
|
|
2516
|
+
var _l = function(e, n, a, t) {
|
|
2517
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2499
2518
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2500
2519
|
l = Reflect.decorate(e, n, a, t);
|
|
2501
2520
|
else
|
|
2502
|
-
for (var
|
|
2503
|
-
(
|
|
2521
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2522
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2504
2523
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2505
|
-
},
|
|
2524
|
+
}, _n = function(e, n) {
|
|
2506
2525
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2507
2526
|
return Reflect.metadata(e, n);
|
|
2508
2527
|
};
|
|
2509
|
-
const
|
|
2528
|
+
const Na = class {
|
|
2510
2529
|
constructor(e) {
|
|
2511
2530
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.confirmationEmailTemplate = {}, this.participants = [], this.name = "confirmation-email-template", this.nylasBranding = !0, this.isOpen = !1, this.selectedLanguage = void 0, this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants, this.invalidImageErrorMessage = d.t("nylasConfirmationEmail.error.invalidImageUrl");
|
|
2512
2531
|
}
|
|
@@ -2566,17 +2585,17 @@ const Ta = class {
|
|
|
2566
2585
|
this.confirmationEmail = { ...this.confirmationEmail, booking_confirmed: { ...((a = this.confirmationEmail) == null ? void 0 : a.booking_confirmed) || {}, body: n } }, this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name });
|
|
2567
2586
|
}
|
|
2568
2587
|
render() {
|
|
2569
|
-
var a, t, o, l,
|
|
2588
|
+
var a, t, o, l, s, r, f, y;
|
|
2570
2589
|
const e = this.participantsState.find((u) => u.is_organizer), n = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.email);
|
|
2571
|
-
return i(
|
|
2590
|
+
return i(O, { key: "f97ea75387183c592ff2d7c125c1749cd5786540" }, i("div", { key: "9a28805654e4c8fb4778d821b92c45cb8c616730", class: "nylas-confirmation-email", part: "nce" }, i("div", { key: "3c9f7313a008cfbe506a211b46b361da4447a481", class: "header", part: "nce__header" }, i("div", { key: "4c980155e1b10a49b50202a6c34e45c3d8882e22" }, i("h3", { key: "e56be66a98d11404875372d40ea1bca5564c1ba1" }, ((t = (a = this.confirmationEmail) == null ? void 0 : a.booking_confirmed) == null ? void 0 : t.title) || d.t("nylasConfirmationEmail.headerTitle", { organizerName: `${n ? ` with ${n}` : ""}` })), i("p", { key: "c4ceda25ce206e9ca78cfcc4bb887a89a7498b73" }, d.t("nylasConfirmationEmail.headerSubTitle"))), this.isConfirmationEmailOpen ? i("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, i("span", { class: `chevron ${this.isConfirmationEmailOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, i("chevron-icon", { width: "24", height: "24" }))) : i("button-component", { variant: "basic", clickHandler: (u) => {
|
|
2572
2591
|
u.preventDefault(), this.toggleConfirmationEmail();
|
|
2573
|
-
} }, i("edit-icon", { width: "16", height: "16" }), d.t("nylasConfirmationEmail.editButtonText"))), this.isConfirmationEmailOpen ? i("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, i("div", { class: "nylas-confirmation-email__section" }, this.nylasBranding && i("div", { class: "nylas-confirmation-email__row" }, i("label", null, d.t("nylasConfirmationEmail.nylasBranding.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasConfirmationEmail.nylasBranding.tooltip.desc"))))), i("toggle-switch", { exportparts: "ts_label: nce__toggle-label, ts_input: nce_toggle-input, ts_slider: nce_toggle-slider", name: "confirmation-email-show-branding", checked: (o = this.confirmationEmail) == null ? void 0 : o.show_nylas_branding })), i("div", { class: "nylas-confirmation-email__row" }, i("div", { class: "subsection" }, i("div", { class: "input-container" }, i("label", null, d.t("nylasConfirmationEmail.companyLogoUrl.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasConfirmationEmail.companyLogoUrl.tooltip.desc"))))), this.confirmationEmail && i("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", errorMessage: this.invalidImageErrorMessage, imageUrl: ((l = this.confirmationEmail) == null ? void 0 : l.logo) ?? "" })))), i("div", { class: "nylas-confirmation-email__row full-width-col" }, i("div", { class: "subsection" }, i("h3", null, d.t("nylasConfirmationEmail.emailMessage.header")), i("div", { class: "input-container" }, i("label", { htmlFor: "title" }, d.t("nylasConfirmationEmail.emailMessage.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasConfirmationEmail.emailMessage.tooltip.desc"))))), i("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: d.t("nylasConfirmationEmail.headerTitle", { organizerName: `${n ? ` with ${n}` : ""}` }), defaultValue: ((
|
|
2592
|
+
} }, i("edit-icon", { width: "16", height: "16" }), d.t("nylasConfirmationEmail.editButtonText"))), this.isConfirmationEmailOpen ? i("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, i("div", { class: "nylas-confirmation-email__section" }, this.nylasBranding && i("div", { class: "nylas-confirmation-email__row" }, i("label", null, d.t("nylasConfirmationEmail.nylasBranding.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasConfirmationEmail.nylasBranding.tooltip.desc"))))), i("toggle-switch", { exportparts: "ts_label: nce__toggle-label, ts_input: nce_toggle-input, ts_slider: nce_toggle-slider", name: "confirmation-email-show-branding", checked: (o = this.confirmationEmail) == null ? void 0 : o.show_nylas_branding })), i("div", { class: "nylas-confirmation-email__row" }, i("div", { class: "subsection" }, i("div", { class: "input-container" }, i("label", null, d.t("nylasConfirmationEmail.companyLogoUrl.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasConfirmationEmail.companyLogoUrl.tooltip.desc"))))), this.confirmationEmail && i("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", errorMessage: this.invalidImageErrorMessage, imageUrl: ((l = this.confirmationEmail) == null ? void 0 : l.logo) ?? "" })))), i("div", { class: "nylas-confirmation-email__row full-width-col" }, i("div", { class: "subsection" }, i("h3", null, d.t("nylasConfirmationEmail.emailMessage.header")), i("div", { class: "input-container" }, i("label", { htmlFor: "title" }, d.t("nylasConfirmationEmail.emailMessage.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasConfirmationEmail.emailMessage.tooltip.desc"))))), i("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: d.t("nylasConfirmationEmail.headerTitle", { organizerName: `${n ? ` with ${n}` : ""}` }), defaultValue: ((r = (s = this.confirmationEmail) == null ? void 0 : s.booking_confirmed) == null ? void 0 : r.title) ?? "" })), i("div", { class: "input-container" }, i("textarea-component", { label: d.t("nylasConfirmationEmail.emailMessage.additionalInfoLabel"), name: "confirmation-email-body", id: "confirmation-email-body", placeholder: d.t("nylasConfirmationEmail.emailMessage.additionalInfoPlaceholder"), tooltip: d.t("nylasConfirmationEmail.emailMessage.additionalInfoTooltip"), maxLength: 500, defaultValue: ((y = (f = this.confirmationEmail) == null ? void 0 : f.booking_confirmed) == null ? void 0 : y.body) ?? "" })))))) : i("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, i("p", null, i("span", { class: "summary-icon" }, i("person-clipboard-icon", null)), d.t("nylasConfirmationEmail.allHosts")), i("p", null, i("span", { class: "summary-icon" }, i("clock-icon", null)), d.t("nylasConfirmationEmail.immediatelyUponBooking")))));
|
|
2574
2593
|
}
|
|
2575
2594
|
static get formAssociated() {
|
|
2576
2595
|
return !0;
|
|
2577
2596
|
}
|
|
2578
2597
|
get host() {
|
|
2579
|
-
return
|
|
2598
|
+
return H(this);
|
|
2580
2599
|
}
|
|
2581
2600
|
static get watchers() {
|
|
2582
2601
|
return {
|
|
@@ -2587,8 +2606,8 @@ const Ta = class {
|
|
|
2587
2606
|
};
|
|
2588
2607
|
}
|
|
2589
2608
|
};
|
|
2590
|
-
|
|
2591
|
-
|
|
2609
|
+
_l([
|
|
2610
|
+
L({
|
|
2592
2611
|
name: "nylas-confirmation-email",
|
|
2593
2612
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2594
2613
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2603,25 +2622,25 @@ bl([
|
|
|
2603
2622
|
},
|
|
2604
2623
|
fireRegisterEvent: !0
|
|
2605
2624
|
}),
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
],
|
|
2610
|
-
|
|
2611
|
-
const
|
|
2612
|
-
var
|
|
2613
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2625
|
+
_n("design:type", Function),
|
|
2626
|
+
_n("design:paramtypes", []),
|
|
2627
|
+
_n("design:returntype", void 0)
|
|
2628
|
+
], Na.prototype, "render", null);
|
|
2629
|
+
Na.style = vl;
|
|
2630
|
+
const Cl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-connected-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-connected-calendars .header{padding:1rem}.nylas-connected-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-connected-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-connected-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-connected-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-connected-calendars .content .participant-container .participant-title p{margin:0}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-calendar-picker::part(ncp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', wl = Cl;
|
|
2631
|
+
var kl = function(e, n, a, t) {
|
|
2632
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2614
2633
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2615
2634
|
l = Reflect.decorate(e, n, a, t);
|
|
2616
2635
|
else
|
|
2617
|
-
for (var
|
|
2618
|
-
(
|
|
2636
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2637
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2619
2638
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2620
2639
|
}, Cn = function(e, n) {
|
|
2621
2640
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2622
2641
|
return Reflect.metadata(e, n);
|
|
2623
2642
|
};
|
|
2624
|
-
const
|
|
2643
|
+
const Pa = class {
|
|
2625
2644
|
constructor(e) {
|
|
2626
2645
|
var n;
|
|
2627
2646
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "connected-calendars", this.selectedConfiguration = void 0, this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedLanguage = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendars = {};
|
|
@@ -2647,23 +2666,23 @@ const $a = class {
|
|
|
2647
2666
|
e !== n && d.changeLanguage(e);
|
|
2648
2667
|
}
|
|
2649
2668
|
getParticipantCalendarOptions(e, n) {
|
|
2650
|
-
var l,
|
|
2651
|
-
const a = e == null ? void 0 : e.find((y) => y.is_organizer), t = ((
|
|
2669
|
+
var l, s, r, f;
|
|
2670
|
+
const a = e == null ? void 0 : e.find((y) => y.is_organizer), t = ((r = (s = (l = this.selectedConfiguration) == null ? void 0 : l.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : r.availability_method) !== "collective", o = {};
|
|
2652
2671
|
if (n) {
|
|
2653
2672
|
const y = e == null ? void 0 : e.filter((p) => n.some((g) => g.email === p.email)), u = e == null ? void 0 : e.filter((p) => !n.some((g) => g.email === p.email));
|
|
2654
2673
|
y == null || y.forEach((p) => {
|
|
2655
|
-
var
|
|
2674
|
+
var _, w, P;
|
|
2656
2675
|
const g = n == null ? void 0 : n.find((N) => N.email === p.email);
|
|
2657
2676
|
if (!g)
|
|
2658
2677
|
return;
|
|
2659
|
-
this.participantDefaultSelectedCalendars[p.email] = ((
|
|
2660
|
-
const
|
|
2678
|
+
this.participantDefaultSelectedCalendars[p.email] = ((_ = p.availability) == null ? void 0 : _.calendar_ids) || [];
|
|
2679
|
+
const v = g.calendars ?? [];
|
|
2661
2680
|
(P = (w = p.availability) == null ? void 0 : w.calendar_ids) == null || P.forEach((N) => {
|
|
2662
|
-
!(
|
|
2663
|
-
}), o[p.email] =
|
|
2681
|
+
!(v != null && v.some((A) => A.id === N)) && N !== "primary" && v.push({ id: N, name: N });
|
|
2682
|
+
}), o[p.email] = v;
|
|
2664
2683
|
}), t && (u == null || u.forEach((p) => {
|
|
2665
|
-
var g,
|
|
2666
|
-
(g = p == null ? void 0 : p.availability) != null && g.calendar_ids && ((
|
|
2684
|
+
var g, v, _, w;
|
|
2685
|
+
(g = p == null ? void 0 : p.availability) != null && g.calendar_ids && ((_ = (v = p == null ? void 0 : p.availability) == null ? void 0 : v.calendar_ids) == null ? void 0 : _.length) > 0 && !p.is_organizer && (o[p.email] = this.calendars ?? [{ id: "primary", name: p.email }], this.participantDefaultSelectedCalendars[p.email] = ((w = p.availability) == null ? void 0 : w.calendar_ids) || []);
|
|
2667
2686
|
}));
|
|
2668
2687
|
}
|
|
2669
2688
|
return a && (o[a.email] = this.calendars ?? [{ id: "primary", name: a.email }], this.participantDefaultSelectedCalendars[a.email] = ((f = a.availability) == null ? void 0 : f.calendar_ids) || []), o;
|
|
@@ -2707,13 +2726,13 @@ const $a = class {
|
|
|
2707
2726
|
setParticipants(e) {
|
|
2708
2727
|
const n = {};
|
|
2709
2728
|
return e == null || e.forEach((a) => {
|
|
2710
|
-
var t, o, l,
|
|
2729
|
+
var t, o, l, s;
|
|
2711
2730
|
if ((t = a == null ? void 0 : a.availability) != null && t.calendar_ids && ((l = (o = a == null ? void 0 : a.availability) == null ? void 0 : o.calendar_ids) == null ? void 0 : l.length) > 0) {
|
|
2712
|
-
const
|
|
2731
|
+
const r = !!a.is_organizer;
|
|
2713
2732
|
n[a.email] = {
|
|
2714
|
-
isOpen:
|
|
2733
|
+
isOpen: r,
|
|
2715
2734
|
name: a.name || a.email,
|
|
2716
|
-
calendars: (
|
|
2735
|
+
calendars: (s = a.availability) == null ? void 0 : s.calendar_ids
|
|
2717
2736
|
};
|
|
2718
2737
|
}
|
|
2719
2738
|
}), n;
|
|
@@ -2725,7 +2744,7 @@ const $a = class {
|
|
|
2725
2744
|
}), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name);
|
|
2726
2745
|
}
|
|
2727
2746
|
render() {
|
|
2728
|
-
return i(
|
|
2747
|
+
return i(O, { key: "bcb62cb98553019ec61e5d743270a083ff36e81c" }, i("div", { key: "7b63f01d524c0841465f83b6c3ea896f388965d2", class: "nylas-connected-calendars", part: "nccals" }, i("div", { key: "df8c6f5600f17eb68a823c3cc1c322169565743d", class: "header", part: "nccals__header" }, i("h3", { key: "b10e3bfa548e128b04369985120bc5340051a8e4" }, d.t("nylasConnectedCalendars.headerTitle")), i("p", { key: "42338af3633d6e8d46e840fc326fd761e81933fb" }, d.t("nylasConnectedCalendars.headerSubTitle"), i("tooltip-component", { key: "fa3196bbc6bdcfebb27774a01eaedc610658c55d" }, i("info-icon", { key: "f564baf11a052af2780535e2c25d4b60f9c9c2fa", slot: "tooltip-icon" }), i("span", { key: "554ed1515075fabf377816fe0437252b2cd081d4", slot: "tooltip-content" }, d.t("nylasConnectedCalendars.tooltip.desc"))))), i("div", { key: "8af6552815526854745083e3bbf5c1531293fc6c", class: "content", part: "nccals__content" }, i("form", { key: "a5b2f09404b2a3d6bfc03b25f12f82d9fe8fb5e8", ref: (e) => this.connectedCalendarsFormRef = e }, Object.keys(this.participantCalendars).map((e, n) => {
|
|
2729
2748
|
const a = this.selectedCalendars[e], t = this.participantCalendars[e];
|
|
2730
2749
|
if (!(!a || !a.name))
|
|
2731
2750
|
return i("div", { class: "participant-container", part: "nccals__container", key: `participant-conatiner-${n}` }, i("div", { class: "participant-title", part: "nccals__title" }, i("p", null, d.t("nylasConnectedCalendars.participantCalendarTitle", { participantName: a.name })), i("div", { class: "participant-toggle", part: "nccals__toggle-container" }, i("span", { class: `chevron ${a.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
@@ -2737,7 +2756,7 @@ const $a = class {
|
|
|
2737
2756
|
return !0;
|
|
2738
2757
|
}
|
|
2739
2758
|
get host() {
|
|
2740
|
-
return
|
|
2759
|
+
return H(this);
|
|
2741
2760
|
}
|
|
2742
2761
|
static get watchers() {
|
|
2743
2762
|
return {
|
|
@@ -2750,8 +2769,8 @@ const $a = class {
|
|
|
2750
2769
|
};
|
|
2751
2770
|
}
|
|
2752
2771
|
};
|
|
2753
|
-
|
|
2754
|
-
|
|
2772
|
+
kl([
|
|
2773
|
+
L({
|
|
2755
2774
|
name: "nylas-connected-calendars",
|
|
2756
2775
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2757
2776
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -2765,22 +2784,22 @@ Cl([
|
|
|
2765
2784
|
Cn("design:type", Function),
|
|
2766
2785
|
Cn("design:paramtypes", []),
|
|
2767
2786
|
Cn("design:returntype", void 0)
|
|
2768
|
-
],
|
|
2769
|
-
|
|
2770
|
-
const
|
|
2771
|
-
var
|
|
2772
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2787
|
+
], Pa.prototype, "render", null);
|
|
2788
|
+
Pa.style = wl;
|
|
2789
|
+
const xl = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}', El = xl;
|
|
2790
|
+
var Sl = function(e, n, a, t) {
|
|
2791
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2773
2792
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2774
2793
|
l = Reflect.decorate(e, n, a, t);
|
|
2775
2794
|
else
|
|
2776
|
-
for (var
|
|
2777
|
-
(
|
|
2795
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2796
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2778
2797
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2779
2798
|
}, wn = function(e, n) {
|
|
2780
2799
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2781
2800
|
return Reflect.metadata(e, n);
|
|
2782
2801
|
};
|
|
2783
|
-
const
|
|
2802
|
+
const Aa = class {
|
|
2784
2803
|
constructor(e) {
|
|
2785
2804
|
x(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedLanguage = void 0;
|
|
2786
2805
|
}
|
|
@@ -2797,16 +2816,16 @@ const Na = class {
|
|
|
2797
2816
|
c("nylas-custom-booking-flow", "componentWillLoad");
|
|
2798
2817
|
}
|
|
2799
2818
|
componentDidLoad() {
|
|
2800
|
-
c("nylas-custom-booking-flow", "componentDidLoad"),
|
|
2819
|
+
c("nylas-custom-booking-flow", "componentDidLoad"), fa(["inputs"], this.el);
|
|
2801
2820
|
}
|
|
2802
2821
|
render() {
|
|
2803
|
-
return i(
|
|
2822
|
+
return i(O, { key: "d3e66761b8b87fa0e110d2f781714cd1571a4b81", part: "ncbflow" }, i("nylas-form-card", { key: "12dc4b22aef0225eb0a40bd262d9f354acecc3c1", exportparts: "nfc__header: ncbflow__header" }, i("h1", { key: "3f73196ebf0086ad13f8bca15bfaf1f4b2231294", slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbflow__title" }, d.t("nylasCustomBookingFlow.headerTitle")), i("div", { key: "725ac895815660a38f7d1dc0a39473c1725939f0", slot: "content", class: "nylas-custom-booking-flow__content", part: "ncbflow__content" }, i("slot", { key: "a93ae3ed92a6d56641e388766674dfe62256cc7a", name: "inputs" }))));
|
|
2804
2823
|
}
|
|
2805
2824
|
static get formAssociated() {
|
|
2806
2825
|
return !0;
|
|
2807
2826
|
}
|
|
2808
2827
|
get el() {
|
|
2809
|
-
return
|
|
2828
|
+
return H(this);
|
|
2810
2829
|
}
|
|
2811
2830
|
static get watchers() {
|
|
2812
2831
|
return {
|
|
@@ -2814,8 +2833,8 @@ const Na = class {
|
|
|
2814
2833
|
};
|
|
2815
2834
|
}
|
|
2816
2835
|
};
|
|
2817
|
-
|
|
2818
|
-
|
|
2836
|
+
Sl([
|
|
2837
|
+
L({
|
|
2819
2838
|
name: "nylas-custom-booking-flow",
|
|
2820
2839
|
eventToProps: {},
|
|
2821
2840
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
|
|
@@ -2824,22 +2843,22 @@ xl([
|
|
|
2824
2843
|
wn("design:type", Function),
|
|
2825
2844
|
wn("design:paramtypes", []),
|
|
2826
2845
|
wn("design:returntype", void 0)
|
|
2827
|
-
],
|
|
2828
|
-
|
|
2829
|
-
const
|
|
2830
|
-
var
|
|
2831
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2846
|
+
], Aa.prototype, "render", null);
|
|
2847
|
+
Aa.style = El;
|
|
2848
|
+
const Ol = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:16px;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:0;margin-top:1px;color:var(--nylas-base-400);font-weight:500;font-size:24px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon{margin-right:0.25rem;padding:0 0.75rem;height:100%;display:flex;align-items:center;right:0;cursor:pointer;user-select:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon.disabled{cursor:not-allowed}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:hover svg path{fill:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:active svg path{fill:var(--nylas-base-500)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon .copied{display:flex;align-items:center;font-size:0.875rem;gap:0.125rem}', Hl = Ol;
|
|
2849
|
+
var Ll = function(e, n, a, t) {
|
|
2850
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2832
2851
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2833
2852
|
l = Reflect.decorate(e, n, a, t);
|
|
2834
2853
|
else
|
|
2835
|
-
for (var
|
|
2836
|
-
(
|
|
2854
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2855
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2837
2856
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2838
2857
|
}, kn = function(e, n) {
|
|
2839
2858
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2840
2859
|
return Reflect.metadata(e, n);
|
|
2841
2860
|
};
|
|
2842
|
-
const
|
|
2861
|
+
const Ra = class {
|
|
2843
2862
|
constructor(e) {
|
|
2844
2863
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultUrlSlug = void 0, this.isOpen = !0, this.slugErrorMessage = "", this.name = "custom-event-slug", this.requiresSlug = !1, this.selectedLanguage = void 0, this.urlSlug = void 0, this.focus = !1, this.copied = !1;
|
|
2845
2864
|
}
|
|
@@ -2909,13 +2928,13 @@ const Pa = class {
|
|
|
2909
2928
|
if (!this.requiresSlug)
|
|
2910
2929
|
return null;
|
|
2911
2930
|
const e = typeof this.urlSlug < "u";
|
|
2912
|
-
return i(
|
|
2931
|
+
return i(O, null, i("div", { class: "nylas-custom-event-slug", part: "nces" }, i("div", { class: "header", part: "nces__header" }, i("div", null, i("h3", null, d.t("nylasCustomEventSlug.headerTitle")), i("p", null, d.t("nylasCustomEventSlug.headerSubTitle"))), i("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, i("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, i("chevron-icon", { width: "24", height: "24" })))), this.isOpen && i("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, i("div", { class: "nylas-custom-event-slug__section" }, i("div", { class: "nylas-custom-event-slug__row" }, i("div", { class: "input-container" }, i("label", null, d.t("nylasCustomEventSlug.eventSlugLabel"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasCustomEventSlug.tooltip.desc"))))), i("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, i("div", { slot: "prefix", class: "prefix" }, "/"), e && i("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 }), i("div", { slot: "icon", class: { icon: !0, disabled: !this.urlSlug }, onClick: () => !this.copied && !!this.urlSlug && this.copyToClipboard() }, this.copied ? i("div", { class: "copied" }, i("checkmark-icon", { width: "12", height: "18" }), " ", d.t("nylasCustomEventSlug.copied")) : i("copy-icon", { width: "12", height: "18" }))), this.slugErrorMessage && i("span", { class: "error-message" }, this.slugErrorMessage)))))));
|
|
2913
2932
|
}
|
|
2914
2933
|
static get formAssociated() {
|
|
2915
2934
|
return !0;
|
|
2916
2935
|
}
|
|
2917
2936
|
get host() {
|
|
2918
|
-
return
|
|
2937
|
+
return H(this);
|
|
2919
2938
|
}
|
|
2920
2939
|
static get watchers() {
|
|
2921
2940
|
return {
|
|
@@ -2925,8 +2944,8 @@ const Pa = class {
|
|
|
2925
2944
|
};
|
|
2926
2945
|
}
|
|
2927
2946
|
};
|
|
2928
|
-
|
|
2929
|
-
|
|
2947
|
+
Ll([
|
|
2948
|
+
L({
|
|
2930
2949
|
name: "nylas-custom-event-slug",
|
|
2931
2950
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2932
2951
|
["schedulerConfig.requiresSlug", "requiresSlug"],
|
|
@@ -2944,25 +2963,25 @@ Hl([
|
|
|
2944
2963
|
kn("design:type", Function),
|
|
2945
2964
|
kn("design:paramtypes", []),
|
|
2946
2965
|
kn("design:returntype", void 0)
|
|
2947
|
-
],
|
|
2948
|
-
|
|
2949
|
-
const
|
|
2950
|
-
var
|
|
2951
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
2966
|
+
], Ra.prototype, "render", null);
|
|
2967
|
+
Ra.style = Hl;
|
|
2968
|
+
const Dl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}', Il = Dl;
|
|
2969
|
+
var Fl = function(e, n, a, t) {
|
|
2970
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
2952
2971
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2953
2972
|
l = Reflect.decorate(e, n, a, t);
|
|
2954
2973
|
else
|
|
2955
|
-
for (var
|
|
2956
|
-
(
|
|
2974
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2975
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
2957
2976
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
2958
2977
|
}, xn = function(e, n) {
|
|
2959
2978
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2960
2979
|
return Reflect.metadata(e, n);
|
|
2961
2980
|
};
|
|
2962
|
-
const
|
|
2981
|
+
const Ma = class {
|
|
2963
2982
|
constructor(e) {
|
|
2964
|
-
var n, a, t, o, l,
|
|
2965
|
-
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((a = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : a.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((
|
|
2983
|
+
var n, a, t, o, l, s;
|
|
2984
|
+
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((a = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : a.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((s = (l = this.selectedConfiguration) == null ? void 0 : l.scheduler) == null ? void 0 : s.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.selectedLanguage = void 0, this.showSettings = ["allowGuestsToInvite", "hideCancellationOptions", "hideReschedulingOptions"], this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
|
|
2966
2985
|
}
|
|
2967
2986
|
elementNameChangedHandler(e) {
|
|
2968
2987
|
c("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3032,13 +3051,13 @@ const Ra = class {
|
|
|
3032
3051
|
}
|
|
3033
3052
|
render() {
|
|
3034
3053
|
const e = typeof this.hideCancellationOptions == "boolean" && typeof this.hideReschedulingOptions == "boolean" && typeof this.allowGuestsToInvite == "boolean", n = this.showSettings.includes("allowGuestsToInvite");
|
|
3035
|
-
return i(
|
|
3054
|
+
return i(O, { key: "8e687df3a2a2f3fcc5a35786766a80a91944c3bc" }, e && i("div", { class: "nylas-customize-booking-settings", part: "ncbs" }, i("div", { class: "header", part: "ncbs__header" }, i("h3", null, d.t("nylasCustomizeBookingSettings.headerTitle")), i("p", null, d.t("nylasCustomizeBookingSettings.headerSubTitle"))), i("div", { class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, n && i("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, i("checkbox-component", { name: "hide_additional_guests", label: d.t("nylasCustomizeBookingSettings.allowGuests.label"), checked: this.allowGuestsToInvite }, i("span", { slot: "label", class: "label" }, i("p", { class: "label-contents" }, d.t("nylasCustomizeBookingSettings.allowGuests.label", { interpolation: { escapeValue: !1, escape: (a) => `${a}`, useRawValueToEscape: !0 } }))))), i("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, i("checkbox-component", { name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, i("span", { slot: "label", class: "label" }, i("p", { class: "label-contents" }, d.t("nylasCustomizeBookingSettings.hideReschedule.label")), i("tooltip-component", { id: "reschedule" }, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasCustomizeBookingSettings.hideReschedule.tooltip.desc")))))), i("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, i("checkbox-component", { name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, i("span", { slot: "label", class: "label" }, i("p", { class: "label-contents" }, d.t("nylasCustomizeBookingSettings.hideCancel.label")), i("tooltip-component", { id: "cancel" }, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasCustomizeBookingSettings.hideCancel.tooltip.desc")))))))));
|
|
3036
3055
|
}
|
|
3037
3056
|
static get formAssociated() {
|
|
3038
3057
|
return !0;
|
|
3039
3058
|
}
|
|
3040
3059
|
get host() {
|
|
3041
|
-
return
|
|
3060
|
+
return H(this);
|
|
3042
3061
|
}
|
|
3043
3062
|
static get watchers() {
|
|
3044
3063
|
return {
|
|
@@ -3048,8 +3067,8 @@ const Ra = class {
|
|
|
3048
3067
|
};
|
|
3049
3068
|
}
|
|
3050
3069
|
};
|
|
3051
|
-
|
|
3052
|
-
|
|
3070
|
+
Fl([
|
|
3071
|
+
L({
|
|
3053
3072
|
name: "nylas-customize-booking-settings",
|
|
3054
3073
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3055
3074
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3060,22 +3079,22 @@ Ll([
|
|
|
3060
3079
|
xn("design:type", Function),
|
|
3061
3080
|
xn("design:paramtypes", []),
|
|
3062
3081
|
xn("design:returntype", void 0)
|
|
3063
|
-
],
|
|
3064
|
-
|
|
3065
|
-
const
|
|
3066
|
-
var
|
|
3067
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3082
|
+
], Ma.prototype, "render", null);
|
|
3083
|
+
Ma.style = Il;
|
|
3084
|
+
const Tl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-disable-emails{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);margin:1rem}.header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.header .drawer-toggle{display:flex;gap:24px;align-items:center}.header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.header .drawer-toggle .chevron:hover,.header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.header .drawer-toggle .chevron.open{transform:rotate(90deg)}.header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.toggle{display:flex;align-items:center;justify-content:space-between;padding:0;margin:16px}.toggle label{display:inline-flex;align-items:center;gap:8px}.toggle toggle-switch{margin-right:12px}.toggle select-dropdown{width:auto}', $l = Tl;
|
|
3085
|
+
var Nl = function(e, n, a, t) {
|
|
3086
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3068
3087
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3069
3088
|
l = Reflect.decorate(e, n, a, t);
|
|
3070
3089
|
else
|
|
3071
|
-
for (var
|
|
3072
|
-
(
|
|
3090
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3091
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3073
3092
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3074
3093
|
}, En = function(e, n) {
|
|
3075
3094
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3076
3095
|
return Reflect.metadata(e, n);
|
|
3077
3096
|
};
|
|
3078
|
-
const
|
|
3097
|
+
const za = class {
|
|
3079
3098
|
constructor(e) {
|
|
3080
3099
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "disable-emails", this.selectedLanguage = void 0, this.organizerLocale = this.selectedLanguage || "en", this.disableEmails = !1;
|
|
3081
3100
|
}
|
|
@@ -3089,11 +3108,11 @@ const Aa = class {
|
|
|
3089
3108
|
c("nylas-disable-emails", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
3090
3109
|
}
|
|
3091
3110
|
componentDidLoad() {
|
|
3092
|
-
var t, o, l,
|
|
3111
|
+
var t, o, l, s, r, f, y, u;
|
|
3093
3112
|
c("nylas-disable-emails", "componentDidLoad");
|
|
3094
3113
|
const e = ((l = (o = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : o.email_template) == null ? void 0 : l.organizer_locale) || this.selectedLanguage || "en";
|
|
3095
3114
|
this.organizerLocale = e;
|
|
3096
|
-
const a = ((
|
|
3115
|
+
const a = ((s = this.selectedConfiguration) == null ? void 0 : s.group_booking) !== void 0 ? (f = (r = this.selectedConfiguration) == null ? void 0 : r.group_booking) == null ? void 0 : f.disable_emails : (u = (y = this.selectedConfiguration) == null ? void 0 : y.event_booking) == null ? void 0 : u.disable_emails;
|
|
3097
3116
|
this.disableEmails = a || !1, this.handleSettingValue(!1);
|
|
3098
3117
|
}
|
|
3099
3118
|
elementNameChangedHandler(e) {
|
|
@@ -3103,11 +3122,11 @@ const Aa = class {
|
|
|
3103
3122
|
e !== n && d.changeLanguage(e);
|
|
3104
3123
|
}
|
|
3105
3124
|
selectedConfigurationChangedHandler(e, n) {
|
|
3106
|
-
var o, l,
|
|
3125
|
+
var o, l, s, r;
|
|
3107
3126
|
if (e === n)
|
|
3108
3127
|
return;
|
|
3109
3128
|
this.organizerLocale = ((l = (o = e.scheduler) == null ? void 0 : o.email_template) == null ? void 0 : l.organizer_locale) || this.selectedLanguage || "en", this.handleSettingValue(!1);
|
|
3110
|
-
const t = (e == null ? void 0 : e.group_booking) !== void 0 ? (
|
|
3129
|
+
const t = (e == null ? void 0 : e.group_booking) !== void 0 ? (s = e == null ? void 0 : e.group_booking) == null ? void 0 : s.disable_emails : (r = e == null ? void 0 : e.event_booking) == null ? void 0 : r.disable_emails;
|
|
3111
3130
|
this.disableEmails = t || !1, this.handleSettingValue(!1);
|
|
3112
3131
|
}
|
|
3113
3132
|
nyalsFormSwitchToggledHandler(e) {
|
|
@@ -3118,7 +3137,7 @@ const Aa = class {
|
|
|
3118
3137
|
nylasFormDropdownChangedHandler(e) {
|
|
3119
3138
|
const { name: n, value: a } = e.detail;
|
|
3120
3139
|
if (n === "organizer-locale") {
|
|
3121
|
-
const t =
|
|
3140
|
+
const t = nt[a];
|
|
3122
3141
|
this.organizerLocale = t, this.handleSettingValue();
|
|
3123
3142
|
}
|
|
3124
3143
|
}
|
|
@@ -3135,18 +3154,18 @@ const Aa = class {
|
|
|
3135
3154
|
}), this.name);
|
|
3136
3155
|
}
|
|
3137
3156
|
render() {
|
|
3138
|
-
var t, o, l,
|
|
3139
|
-
const e = Object.keys(
|
|
3140
|
-
label:
|
|
3157
|
+
var t, o, l, s, r;
|
|
3158
|
+
const e = Object.keys(Qn).map((f) => ({
|
|
3159
|
+
label: Qn[f],
|
|
3141
3160
|
value: f
|
|
3142
|
-
})), a = ((t = this.selectedConfiguration) == null ? void 0 : t.group_booking) !== void 0 ? (l = (o = this.selectedConfiguration) == null ? void 0 : o.group_booking) == null ? void 0 : l.disable_emails : (
|
|
3143
|
-
return i(
|
|
3161
|
+
})), a = ((t = this.selectedConfiguration) == null ? void 0 : t.group_booking) !== void 0 ? (l = (o = this.selectedConfiguration) == null ? void 0 : o.group_booking) == null ? void 0 : l.disable_emails : (r = (s = this.selectedConfiguration) == null ? void 0 : s.event_booking) == null ? void 0 : r.disable_emails;
|
|
3162
|
+
return i(O, { key: "61c656e8493effefc64d68b07bf663350d854630" }, i("div", { key: "e3e32aea50842e2e9c1426fd639eb0dab573a989", class: "nylas-disable-emails", part: "nde" }, i("div", { key: "621732af92baada7bc6c06408ff9a51674cc158c", class: "header", part: "nde__header" }, i("div", { key: "8f882d8b83994abc4c73219701979d2287411edb" }, i("h3", { key: "a81f9e1b64dac3621ee45eb3d6dc1709f61c272b" }, d.t("eventCommunicationsTitle")), i("p", { key: "c52741d9875a3f3c8df86e1a5d104783a7934c5e" }, d.t("eventCommunicationsDescription")))), i("div", { key: "5a08c4030ba531402a9a4bb42153eb8d4968dfd6", class: "toggle", part: "nde__toggle" }, i("label", { key: "9f2c2a5d4f07e2882d598d0f7f8a90d7f4ec5758" }, d.t("nylasConfirmationEmail.confirmationEmail.label"), i("span", { key: "8743fdc4d47c1ad833656629a7096610436ddccd", class: "label-icon" }, i("tooltip-component", { key: "a92ff3a415b36a68fd94eff0a4b2f0d825fbfbb6" }, i("info-icon", { key: "eb0806cdc0690f2d7f6e515a691569b683099c09", slot: "tooltip-icon" }), i("span", { key: "45f1a35f845617099c9b8d786dc5762a46ca374e", slot: "tooltip-content" }, " ", d.t("nylasConfirmationEmail.confirmationEmail.tooltip.desc"))))), i("toggle-switch", { key: "984d924370c58341ac73cce774c26b910d54a52b", exportparts: "ts_label: nde__toggle-label, ts_input: nde_toggle-input, ts_slider: nde_toggle-slider", name: "disable-emails", checked: !a })), i("div", { key: "50524c61fa7d56e401a76b7f53a08e83b7498cc6", class: "toggle", part: "nde__toggle" }, i("label", { key: "e72bac6b8d355a2d87cdb98e058e3564555c2783" }, d.t("nylasConfirmationEmail.confirmationEmail.language"), i("span", { key: "ec813fa7ca1cb750b55c75f0954664dcb4625995", class: "label-icon" }, i("tooltip-component", { key: "5efbf9e93637e15b93e4baa786131534424d8896" }, i("info-icon", { key: "5e2e302326c873d637e7892d508d83636e81a20b", slot: "tooltip-icon" }), i("span", { key: "b6a1e85100d303079c2efb4833d9b98fe74326c6", slot: "tooltip-content" }, " ", d.t("nylasConfirmationEmail.confirmationEmail.tooltip.language"))))), i("select-dropdown", { key: "d1b12b65f4dcb88781400ec594611e6a41f86c0f", name: "organizer-locale", options: e, searchPlaceholder: d.t("search"), withChevron: !1, defaultSelectedOption: e.find((f) => f.value == this.organizerLocale), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, i("span", { key: "52a4959de14fb93cdcb0f624d0b86e768f302a5b", slot: "select-icon" }, i("translate-icon", { key: "5c0aa2784847c6b858b833606c661d593e7cd40c", width: "20", height: "20" }))))));
|
|
3144
3163
|
}
|
|
3145
3164
|
static get formAssociated() {
|
|
3146
3165
|
return !0;
|
|
3147
3166
|
}
|
|
3148
3167
|
get host() {
|
|
3149
|
-
return
|
|
3168
|
+
return H(this);
|
|
3150
3169
|
}
|
|
3151
3170
|
static get watchers() {
|
|
3152
3171
|
return {
|
|
@@ -3156,8 +3175,8 @@ const Aa = class {
|
|
|
3156
3175
|
};
|
|
3157
3176
|
}
|
|
3158
3177
|
};
|
|
3159
|
-
|
|
3160
|
-
|
|
3178
|
+
Nl([
|
|
3179
|
+
L({
|
|
3161
3180
|
name: "nylas-disable-emails",
|
|
3162
3181
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3163
3182
|
["schedulerConfig.selectedLanguage", "selectedLanguage"],
|
|
@@ -3174,22 +3193,22 @@ Tl([
|
|
|
3174
3193
|
En("design:type", Function),
|
|
3175
3194
|
En("design:paramtypes", []),
|
|
3176
3195
|
En("design:returntype", void 0)
|
|
3177
|
-
],
|
|
3178
|
-
|
|
3179
|
-
const
|
|
3180
|
-
var
|
|
3181
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3196
|
+
], za.prototype, "render", null);
|
|
3197
|
+
za.style = $l;
|
|
3198
|
+
const Pl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__error-container{max-height:0;opacity:0;overflow:hidden;transition:max-height 0.3s ease, opacity 0.3s ease}.nylas-event-duration__error-container.visible{max-height:20px;opacity:1}.nylas-event-duration__error-container .nylas-event-duration__error{color:var(--nylas-error);font-family:var(--nylas-font-family);font-size:12px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper input-dropdown{width:80px}.nylas-event-duration__wrapper input-dropdown.error::part(id_dropdown-input){border:1px solid var(--nylas-error)}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Al = Pl;
|
|
3199
|
+
var Rl = function(e, n, a, t) {
|
|
3200
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3182
3201
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3183
3202
|
l = Reflect.decorate(e, n, a, t);
|
|
3184
3203
|
else
|
|
3185
|
-
for (var
|
|
3186
|
-
(
|
|
3204
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3205
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3187
3206
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3188
3207
|
}, Sn = function(e, n) {
|
|
3189
3208
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3190
3209
|
return Reflect.metadata(e, n);
|
|
3191
3210
|
};
|
|
3192
|
-
const
|
|
3211
|
+
const Ba = class {
|
|
3193
3212
|
constructor(e) {
|
|
3194
3213
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "duration", this.eventDurationMinutes = void 0, this.selectedLanguage = void 0, this.duration = this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = void 0, this.durationIncrement = void 0, this.error = "", this.durationMinutesOptions = [
|
|
3195
3214
|
{ value: 15 .toString(), label: "15" },
|
|
@@ -3250,13 +3269,13 @@ const Ma = class {
|
|
|
3250
3269
|
{ value: 1 .toString(), label: d.t("timeDuration", { context: "minute" }) },
|
|
3251
3270
|
{ value: 60 .toString(), label: d.t("timeDuration", { context: "hour" }) }
|
|
3252
3271
|
];
|
|
3253
|
-
return i(
|
|
3272
|
+
return i(O, { key: "bee74ed5eb48a1bc48dc362f078d7171e8a34257" }, i("div", { key: "5a04f4235b729b9ef3c8bdd85d154aff975736a2", class: "nylas-event-duration", part: "ned" }, i("label", { key: "a66b0a5879cbdc7fdec1e1fe43385cea6a961a91", htmlFor: "duration" }, d.t("nylasEventDuration.headerTitle"), i("span", { key: "9c7b52f52a84a8ed7d956d7e3c3dd27386eacec4", class: "required" }, "*")), i("div", { key: "266a3ed77da606bfbed95157fa2ca4aaafe27a2b", class: "nylas-event-duration__wrapper" }, i("input-dropdown", { key: "7b3a65e9fb1d687b03cec7b0e9df10e8a873ebcf", class: this.error ? "error" : "", name: "event-duration", options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find((n) => n.value === this.duration.toString()) }), this.durationIncrement && i("select-dropdown", { name: "event-duration", options: e, pluralizedLabel: this.duration > 1 ? d.t(`time.${this.durationIncrement === 60 ? "hours" : "minutes"}`) : d.t(`time.${this.durationIncrement === 60 ? "hour" : "minute"}`), exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: e.find((n) => n.value === this.durationIncrement.toString()), withSearch: !1 })), i("div", { key: "ab0e152a7d9858325b968ed4f01827c3b14cac3a", class: `nylas-event-duration__error-container ${this.error ? "visible" : ""}`, part: "ned__error-container" }, i("div", { key: "1bfc3072b3e2b51d46247f3eebcbdf917df121e8", class: "nylas-event-duration__error", part: "ned__error" }, this.error))));
|
|
3254
3273
|
}
|
|
3255
3274
|
static get formAssociated() {
|
|
3256
3275
|
return !0;
|
|
3257
3276
|
}
|
|
3258
3277
|
get host() {
|
|
3259
|
-
return
|
|
3278
|
+
return H(this);
|
|
3260
3279
|
}
|
|
3261
3280
|
static get watchers() {
|
|
3262
3281
|
return {
|
|
@@ -3266,8 +3285,8 @@ const Ma = class {
|
|
|
3266
3285
|
};
|
|
3267
3286
|
}
|
|
3268
3287
|
};
|
|
3269
|
-
|
|
3270
|
-
|
|
3288
|
+
Rl([
|
|
3289
|
+
L({
|
|
3271
3290
|
name: "nylas-event-duration",
|
|
3272
3291
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3273
3292
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3279,22 +3298,22 @@ Pl([
|
|
|
3279
3298
|
Sn("design:type", Function),
|
|
3280
3299
|
Sn("design:paramtypes", []),
|
|
3281
3300
|
Sn("design:returntype", void 0)
|
|
3282
|
-
],
|
|
3283
|
-
|
|
3284
|
-
const
|
|
3285
|
-
var
|
|
3286
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3301
|
+
], Ba.prototype, "render", null);
|
|
3302
|
+
Ba.style = Al;
|
|
3303
|
+
const Ml = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', zl = Ml;
|
|
3304
|
+
var Bl = function(e, n, a, t) {
|
|
3305
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3287
3306
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3288
3307
|
l = Reflect.decorate(e, n, a, t);
|
|
3289
3308
|
else
|
|
3290
|
-
for (var
|
|
3291
|
-
(
|
|
3309
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3310
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3292
3311
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3293
|
-
},
|
|
3312
|
+
}, On = function(e, n) {
|
|
3294
3313
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3295
3314
|
return Reflect.metadata(e, n);
|
|
3296
3315
|
};
|
|
3297
|
-
const
|
|
3316
|
+
const ja = class {
|
|
3298
3317
|
constructor(e) {
|
|
3299
3318
|
x(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedLanguage = void 0;
|
|
3300
3319
|
}
|
|
@@ -3308,19 +3327,19 @@ const za = class {
|
|
|
3308
3327
|
c("nylas-event-limits", "componentWillLoad");
|
|
3309
3328
|
}
|
|
3310
3329
|
componentDidLoad() {
|
|
3311
|
-
c("nylas-event-limits", "componentDidLoad"),
|
|
3330
|
+
c("nylas-event-limits", "componentDidLoad"), fa(["inputs"], this.el);
|
|
3312
3331
|
}
|
|
3313
3332
|
disconnectedCallback() {
|
|
3314
3333
|
c("nylas-event-limits", "disconnectedCallback");
|
|
3315
3334
|
}
|
|
3316
3335
|
render() {
|
|
3317
|
-
return i(
|
|
3336
|
+
return i(O, { key: "55aa3f8056c94943e6c6d3586dbd6ef1cf6b341d" }, i("nylas-form-card", { key: "9c8447aca415e05387da72b42ef19920eb9fdfc6", exportparts: "nfc__header: nel__header" }, i("h1", { key: "7ce1d22ea30b7ee2c233388395afdbfd74addff7", slot: "header-title", class: "nylas-event-limits__title" }, d.t("nylasEventLimits.headerTitle")), i("div", { key: "1e5e870fd33c10751694b5690381f8827e91725c", slot: "content", class: "nylas-event-limits__content" }, i("slot", { key: "44c884363860d449efaa5a394ad73e91d6d3a8fa", name: "inputs" }))));
|
|
3318
3337
|
}
|
|
3319
3338
|
static get formAssociated() {
|
|
3320
3339
|
return !0;
|
|
3321
3340
|
}
|
|
3322
3341
|
get el() {
|
|
3323
|
-
return
|
|
3342
|
+
return H(this);
|
|
3324
3343
|
}
|
|
3325
3344
|
static get watchers() {
|
|
3326
3345
|
return {
|
|
@@ -3328,32 +3347,32 @@ const za = class {
|
|
|
3328
3347
|
};
|
|
3329
3348
|
}
|
|
3330
3349
|
};
|
|
3331
|
-
|
|
3332
|
-
|
|
3350
|
+
Bl([
|
|
3351
|
+
L({
|
|
3333
3352
|
name: "nylas-event-limits",
|
|
3334
3353
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
|
|
3335
3354
|
eventToProps: {},
|
|
3336
3355
|
fireRegisterEvent: !0
|
|
3337
3356
|
}),
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
],
|
|
3342
|
-
|
|
3343
|
-
const
|
|
3344
|
-
var
|
|
3345
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3357
|
+
On("design:type", Function),
|
|
3358
|
+
On("design:paramtypes", []),
|
|
3359
|
+
On("design:returntype", void 0)
|
|
3360
|
+
], ja.prototype, "render", null);
|
|
3361
|
+
ja.style = zl;
|
|
3362
|
+
const jl = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-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}', Wl = jl;
|
|
3363
|
+
var Ul = function(e, n, a, t) {
|
|
3364
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3346
3365
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3347
3366
|
l = Reflect.decorate(e, n, a, t);
|
|
3348
3367
|
else
|
|
3349
|
-
for (var
|
|
3350
|
-
(
|
|
3368
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3369
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3351
3370
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3352
|
-
},
|
|
3371
|
+
}, Hn = function(e, n) {
|
|
3353
3372
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3354
3373
|
return Reflect.metadata(e, n);
|
|
3355
3374
|
};
|
|
3356
|
-
const
|
|
3375
|
+
const Wa = class {
|
|
3357
3376
|
constructor(e) {
|
|
3358
3377
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.availableDaysInFuture = void 0, this.name = "limit-future-bookings", this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
3359
3378
|
}
|
|
@@ -3391,7 +3410,7 @@ const Ba = class {
|
|
|
3391
3410
|
}
|
|
3392
3411
|
render() {
|
|
3393
3412
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
3394
|
-
return i(
|
|
3413
|
+
return i(O, { key: "8221f933532a38bdfc81a2ff8f60323086a6ad9d" }, i("div", { key: "8b35407fd6b210f0e0c78a531e4389b5396c6916", class: "nylas-limit-future-bookings", part: "nlfb" }, i("label", { key: "4ecb5b9fa899977d3d0cc859fdbacae76b10f052" }, d.t("nylasLimitFutureBookings.headerTitle"), i("span", { key: "6befc7d1bd356152b641fe866957dadd6b5fd028", class: "label-icon" }, i("tooltip-component", { key: "9fcfb7a3a7d4a9b37d9e9ac209823528800ebd9a" }, i("info-icon", { key: "4befbc048bc024b26864261e7762a487c5553218", slot: "tooltip-icon" }), i("span", { key: "8de1d3a29453d93531c7197966e979f80a317e10", slot: "tooltip-content" }, d.t("nylasLimitFutureBookings.tooltip.desc"))))), e && i("time-period-selector", { id: "limit-future-bookings", timePeriods: [
|
|
3395
3414
|
{ value: "day", label: d.t("timePeriod", { context: "day" }) },
|
|
3396
3415
|
{ value: "week", label: d.t("timePeriod", { context: "week" }) },
|
|
3397
3416
|
{ value: "month", label: d.t("timePeriod", { context: "month" }) }
|
|
@@ -3401,7 +3420,7 @@ const Ba = class {
|
|
|
3401
3420
|
return !0;
|
|
3402
3421
|
}
|
|
3403
3422
|
get host() {
|
|
3404
|
-
return
|
|
3423
|
+
return H(this);
|
|
3405
3424
|
}
|
|
3406
3425
|
static get watchers() {
|
|
3407
3426
|
return {
|
|
@@ -3411,8 +3430,8 @@ const Ba = class {
|
|
|
3411
3430
|
};
|
|
3412
3431
|
}
|
|
3413
3432
|
};
|
|
3414
|
-
|
|
3415
|
-
|
|
3433
|
+
Ul([
|
|
3434
|
+
L({
|
|
3416
3435
|
name: "nylas-limit-future-bookings",
|
|
3417
3436
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3418
3437
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3421,25 +3440,25 @@ jl([
|
|
|
3421
3440
|
eventToProps: {},
|
|
3422
3441
|
fireRegisterEvent: !0
|
|
3423
3442
|
}),
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
],
|
|
3428
|
-
|
|
3429
|
-
const
|
|
3430
|
-
var
|
|
3431
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3443
|
+
Hn("design:type", Function),
|
|
3444
|
+
Hn("design:paramtypes", []),
|
|
3445
|
+
Hn("design:returntype", void 0)
|
|
3446
|
+
], Wa.prototype, "render", null);
|
|
3447
|
+
Wa.style = Wl;
|
|
3448
|
+
const ql = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Jl = ql;
|
|
3449
|
+
var Gl = function(e, n, a, t) {
|
|
3450
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3432
3451
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3433
3452
|
l = Reflect.decorate(e, n, a, t);
|
|
3434
3453
|
else
|
|
3435
|
-
for (var
|
|
3436
|
-
(
|
|
3454
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3455
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3437
3456
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3438
|
-
},
|
|
3457
|
+
}, Ln = function(e, n) {
|
|
3439
3458
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3440
3459
|
return Reflect.metadata(e, n);
|
|
3441
3460
|
};
|
|
3442
|
-
const
|
|
3461
|
+
const Ua = class {
|
|
3443
3462
|
constructor(e) {
|
|
3444
3463
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-booking-notice", this.minBookingNotice = void 0, this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
3445
3464
|
}
|
|
@@ -3469,16 +3488,16 @@ const ja = class {
|
|
|
3469
3488
|
timePeriodChangedHandler(e) {
|
|
3470
3489
|
const { number: n, period: a } = e.detail;
|
|
3471
3490
|
let t;
|
|
3472
|
-
const o = 60, l = o * 24,
|
|
3473
|
-
a === "minute" ? t = n : a === "hour" ? t = n * o : a === "day" ? t = n * l : a === "week" ? t = n *
|
|
3491
|
+
const o = 60, l = o * 24, s = l * 7, r = l * 30;
|
|
3492
|
+
a === "minute" ? t = n : a === "hour" ? t = n * o : a === "day" ? t = n * l : a === "week" ? t = n * s : a === "month" ? t = n * r : t = 0, this.valueChanged.emit({ value: t, name: this.name }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(t.toString(), this.name);
|
|
3474
3493
|
}
|
|
3475
3494
|
updateNumberAndPeriodFromMinutes(e) {
|
|
3476
|
-
let l,
|
|
3477
|
-
e === 0 ? (l = 0,
|
|
3495
|
+
let l, s;
|
|
3496
|
+
e === 0 ? (l = 0, s = "minute") : e >= 43200 && e % 43200 === 0 ? (l = Math.floor(e / 43200), s = "month") : e >= 10080 && e % 10080 === 0 ? (l = Math.floor(e / 10080), s = "week") : e >= 1440 && e % 1440 === 0 ? (l = Math.floor(e / 1440), s = "day") : e >= 60 && e % 60 === 0 ? (l = Math.floor(e / 60), s = "hour") : (l = e, s = "minute"), this.selectedNumber = l, this.selectedPeriod = s;
|
|
3478
3497
|
}
|
|
3479
3498
|
render() {
|
|
3480
3499
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
3481
|
-
return i(
|
|
3500
|
+
return i(O, { key: "82e8ce461e4bedcb56757764cf3036d633965689" }, i("div", { key: "a7b740ef8f1226c42bbb5cda4b2b152296a4a4fc", class: "nylas-min-booking-notice", part: "nmbn" }, i("label", { key: "8cad7e417eee3ef06a6f7269e9208ae3f02284d5" }, d.t("nylasMinBookingNotice.headerTitle"), i("span", { key: "6b9262824dd82e020721e51ea0ba085b51bdb12b", class: "label-icon" }, i("tooltip-component", { key: "209364c2a20e445766e71ddf40fc864bbd64aa27" }, i("info-icon", { key: "edef52629cb74cbf1d0ba4e2a2ea9f407344976e", slot: "tooltip-icon" }), i("span", { key: "346a631408e9a060975c77343effc0133f9a0e3e", slot: "tooltip-content" }, d.t("nylasMinBookingNotice.tooltip.desc"))))), e && i("time-period-selector", { id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: [
|
|
3482
3501
|
{ value: "minute", label: d.t("timeDuration", { context: "minute" }) },
|
|
3483
3502
|
{ value: "hour", label: d.t("timeDuration", { context: "hour" }) },
|
|
3484
3503
|
{ value: "day", label: d.t("timePeriod", { context: "day" }) },
|
|
@@ -3489,7 +3508,7 @@ const ja = class {
|
|
|
3489
3508
|
return !0;
|
|
3490
3509
|
}
|
|
3491
3510
|
get host() {
|
|
3492
|
-
return
|
|
3511
|
+
return H(this);
|
|
3493
3512
|
}
|
|
3494
3513
|
static get watchers() {
|
|
3495
3514
|
return {
|
|
@@ -3499,8 +3518,8 @@ const ja = class {
|
|
|
3499
3518
|
};
|
|
3500
3519
|
}
|
|
3501
3520
|
};
|
|
3502
|
-
|
|
3503
|
-
|
|
3521
|
+
Gl([
|
|
3522
|
+
L({
|
|
3504
3523
|
name: "nylas-min-booking-notice",
|
|
3505
3524
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3506
3525
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3509,25 +3528,25 @@ ql([
|
|
|
3509
3528
|
eventToProps: {},
|
|
3510
3529
|
fireRegisterEvent: !0
|
|
3511
3530
|
}),
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
],
|
|
3516
|
-
|
|
3517
|
-
const
|
|
3518
|
-
var
|
|
3519
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3531
|
+
Ln("design:type", Function),
|
|
3532
|
+
Ln("design:paramtypes", []),
|
|
3533
|
+
Ln("design:returntype", void 0)
|
|
3534
|
+
], Ua.prototype, "render", null);
|
|
3535
|
+
Ua.style = Jl;
|
|
3536
|
+
const Zl = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-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}', Yl = Zl;
|
|
3537
|
+
var Xl = function(e, n, a, t) {
|
|
3538
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3520
3539
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3521
3540
|
l = Reflect.decorate(e, n, a, t);
|
|
3522
3541
|
else
|
|
3523
|
-
for (var
|
|
3524
|
-
(
|
|
3542
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3543
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3525
3544
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3526
|
-
},
|
|
3545
|
+
}, Dn = function(e, n) {
|
|
3527
3546
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3528
3547
|
return Reflect.metadata(e, n);
|
|
3529
3548
|
};
|
|
3530
|
-
const
|
|
3549
|
+
const qa = class {
|
|
3531
3550
|
constructor(e) {
|
|
3532
3551
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "min-cancellation-notice", this.minCancellationNotice = void 0, this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
3533
3552
|
}
|
|
@@ -3557,16 +3576,16 @@ const Wa = class {
|
|
|
3557
3576
|
timePeriodChangedHandler(e) {
|
|
3558
3577
|
const { number: n, period: a } = e.detail;
|
|
3559
3578
|
let t;
|
|
3560
|
-
const o = 60, l = o * 24,
|
|
3561
|
-
a === "minute" ? t = n : a === "hour" ? t = n * o : a === "day" ? t = n * l : a === "week" ? t = n *
|
|
3579
|
+
const o = 60, l = o * 24, s = l * 7, r = l * 30;
|
|
3580
|
+
a === "minute" ? t = n : a === "hour" ? t = n * o : a === "day" ? t = n * l : a === "week" ? t = n * s : a === "month" ? t = n * r : t = 0, this.valueChanged.emit({ value: t, name: this.name }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(t.toString(), this.name);
|
|
3562
3581
|
}
|
|
3563
3582
|
updateNumberAndPeriodFromMinutes(e) {
|
|
3564
|
-
let l,
|
|
3565
|
-
e === 0 ? (l = 0,
|
|
3583
|
+
let l, s;
|
|
3584
|
+
e === 0 ? (l = 0, s = "minute") : e % 43200 === 0 && e >= 43200 ? (l = e / 43200, s = "month") : e % 10080 === 0 && e >= 10080 ? (l = e / 10080, s = "week") : e % 1440 === 0 && e >= 1440 ? (l = e / 1440, s = "day") : e % 60 === 0 && e >= 60 ? (l = e / 60, s = "hour") : (l = e, s = "minute"), this.selectedNumber = l, this.selectedPeriod = s;
|
|
3566
3585
|
}
|
|
3567
3586
|
render() {
|
|
3568
3587
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
3569
|
-
return i(
|
|
3588
|
+
return i(O, { key: "26e4bff1673300d24fb6bc892c1bb1cde17ded02" }, i("div", { key: "5934d449056ebfb549ce260e6fc59d6e0ac17589", class: "nylas-min-cancellation-notice", part: "nmcn" }, i("label", { key: "5669707844f090c2f93fd90aca0c44a38bc5ac26" }, d.t("nylasMinCancellationNotice.headerTitle"), i("span", { key: "6e43fa5c118898d369296e878102a6276a6d428e", class: "label-icon" }, i("tooltip-component", { key: "990a9c2042cece0dcadfe802bbcbf920e4aa2c12" }, i("info-icon", { key: "42f00991ae4b53ec2b36663ceeabe6a3b6d35d09", slot: "tooltip-icon" }), i("span", { key: "2417a3202b996dfe5a0598aee6e7b3c23f758bb6", slot: "tooltip-content" }, d.t("nylasMinCancellationNotice.tooltip.desc"))))), e && i("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: [
|
|
3570
3589
|
{ value: "minute", label: d.t("timeDuration", { context: "minute" }) },
|
|
3571
3590
|
{ value: "hour", label: d.t("timeDuration", { context: "hour" }) },
|
|
3572
3591
|
{ value: "day", label: d.t("timePeriod", { context: "day" }) },
|
|
@@ -3577,7 +3596,7 @@ const Wa = class {
|
|
|
3577
3596
|
return !0;
|
|
3578
3597
|
}
|
|
3579
3598
|
get host() {
|
|
3580
|
-
return
|
|
3599
|
+
return H(this);
|
|
3581
3600
|
}
|
|
3582
3601
|
static get watchers() {
|
|
3583
3602
|
return {
|
|
@@ -3587,8 +3606,8 @@ const Wa = class {
|
|
|
3587
3606
|
};
|
|
3588
3607
|
}
|
|
3589
3608
|
};
|
|
3590
|
-
|
|
3591
|
-
|
|
3609
|
+
Xl([
|
|
3610
|
+
L({
|
|
3592
3611
|
name: "nylas-min-cancellation-notice",
|
|
3593
3612
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3594
3613
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3597,25 +3616,25 @@ Zl([
|
|
|
3597
3616
|
eventToProps: {},
|
|
3598
3617
|
fireRegisterEvent: !0
|
|
3599
3618
|
}),
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
],
|
|
3604
|
-
|
|
3605
|
-
const
|
|
3606
|
-
var
|
|
3607
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3619
|
+
Dn("design:type", Function),
|
|
3620
|
+
Dn("design:paramtypes", []),
|
|
3621
|
+
Dn("design:returntype", void 0)
|
|
3622
|
+
], qa.prototype, "render", null);
|
|
3623
|
+
qa.style = Yl;
|
|
3624
|
+
const Kl = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-name .header p .required-asterisk{color:var(--nylas-error)}.nylas-page-name .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-name .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-name .header .drawer-toggle .chevron:hover,.nylas-page-name .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-name .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-name .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-name .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-name .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body{grid-template-columns:1fr}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body .nylas-page-name__section{border:none}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row{display:flex;align-items:center;gap:1rem}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label{display:flex;align-items:center}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container{width:100%}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container span.error-message{color:var(--nylas-error)}.nylas-page-name .nylas-page-name__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper.error{border:1px solid var(--nylas-error)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:16px;height:auto;padding-left:0px}', Vl = Kl;
|
|
3625
|
+
var Ql = function(e, n, a, t) {
|
|
3626
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3608
3627
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3609
3628
|
l = Reflect.decorate(e, n, a, t);
|
|
3610
3629
|
else
|
|
3611
|
-
for (var
|
|
3612
|
-
(
|
|
3630
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3631
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3613
3632
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3614
|
-
},
|
|
3633
|
+
}, In = function(e, n) {
|
|
3615
3634
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3616
3635
|
return Reflect.metadata(e, n);
|
|
3617
3636
|
};
|
|
3618
|
-
const
|
|
3637
|
+
const Ja = class {
|
|
3619
3638
|
constructor(e) {
|
|
3620
3639
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-name", this.pageName = void 0, this.showToggle = !0, this.isOpen = !0, this.required = !1, this.selectedLanguage = void 0, this.requirePageName = !1, this.currentPageName = void 0, this.pageNameErrorMessage = void 0;
|
|
3621
3640
|
}
|
|
@@ -3669,13 +3688,13 @@ const Ua = class {
|
|
|
3669
3688
|
}
|
|
3670
3689
|
render() {
|
|
3671
3690
|
const e = typeof this.currentPageName < "u";
|
|
3672
|
-
return i(
|
|
3691
|
+
return i(O, { key: "48dc81f6cb19070851dec5ba6c7288f9a8c96552" }, i("div", { key: "1a544a206cf53ade88c5e3a1c3c91ca2503f0aed", class: "nylas-page-name", part: "nces" }, i("div", { key: "b0ccdb0931a83fdd9084a34debab17425377e16c", class: "header", part: "nces__header" }, i("div", { key: "5975d11765fb2c677b686066edd23c2e561e012b" }, i("h3", { key: "0432bb19ca842840ebebdb2cfdc32d1b602d2ac0" }, d.t("nylasPageName.headerTitle")), i("p", { key: "294de668835f0ed720dc5aa64a6105b37ebdcb51" }, d.t("nylasPageName.headerSubTitle"), i("tooltip-component", { key: "99e9365195756044d20a656a916c97254323a0f8" }, i("info-icon", { key: "92afd20dd5eaa225da5f10f7709fe5cacdd9d6b0", slot: "tooltip-icon" }), i("span", { key: "8151a4fe52ed5a0f2872a11b69e2a7aa7955583a", slot: "tooltip-content" }, d.t("nylasPageName.tooltip.desc"))), this.requirePageName && i("span", { class: "required-asterisk" }, "*"))), this.showToggle && i("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, i("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, i("chevron-icon", { width: "24", height: "24" })))), this.isOpen && i("div", { class: "nylas-page-name__body", part: "nces__body" }, i("div", { class: "nylas-page-name__section" }, i("div", { class: "nylas-page-name__row" }, i("div", { class: "input-container" }, i("div", { class: { "nylas-page-name__input-wrapper": !0, error: !!this.pageNameErrorMessage } }, e && i("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "" })), this.pageNameErrorMessage && i("span", { class: "error-message" }, this.pageNameErrorMessage)))))));
|
|
3673
3692
|
}
|
|
3674
3693
|
static get formAssociated() {
|
|
3675
3694
|
return !0;
|
|
3676
3695
|
}
|
|
3677
3696
|
get host() {
|
|
3678
|
-
return
|
|
3697
|
+
return H(this);
|
|
3679
3698
|
}
|
|
3680
3699
|
static get watchers() {
|
|
3681
3700
|
return {
|
|
@@ -3685,8 +3704,8 @@ const Ua = class {
|
|
|
3685
3704
|
};
|
|
3686
3705
|
}
|
|
3687
3706
|
};
|
|
3688
|
-
|
|
3689
|
-
|
|
3707
|
+
Ql([
|
|
3708
|
+
L({
|
|
3690
3709
|
name: "nylas-page-name",
|
|
3691
3710
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3692
3711
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3700,25 +3719,25 @@ Kl([
|
|
|
3700
3719
|
},
|
|
3701
3720
|
fireRegisterEvent: !0
|
|
3702
3721
|
}),
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
],
|
|
3707
|
-
|
|
3708
|
-
const
|
|
3709
|
-
var
|
|
3710
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3722
|
+
In("design:type", Function),
|
|
3723
|
+
In("design:paramtypes", []),
|
|
3724
|
+
In("design:returntype", void 0)
|
|
3725
|
+
], Ja.prototype, "render", null);
|
|
3726
|
+
Ja.style = Vl;
|
|
3727
|
+
const eo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-page-styling{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-styling .hidden{display:none}.nylas-page-styling.no-border{border:none}.nylas-page-styling .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body{grid-template-columns:1fr}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section.no-padding{padding:0}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection.hide{display:none}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>*{display:flex;flex-direction:column;column-gap:2rem;row-gap:0.25rem;width:100%;flex:1}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container textarea,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>* textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-page-styling .nylas-page-styling__body span.error-message{color:var(--nylas-error)}.nylas-page-styling .nylas-page-styling__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}', no = eo;
|
|
3728
|
+
var ao = function(e, n, a, t) {
|
|
3729
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3711
3730
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3712
3731
|
l = Reflect.decorate(e, n, a, t);
|
|
3713
3732
|
else
|
|
3714
|
-
for (var
|
|
3715
|
-
(
|
|
3733
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3734
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3716
3735
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3717
|
-
},
|
|
3736
|
+
}, Fn = function(e, n) {
|
|
3718
3737
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3719
3738
|
return Reflect.metadata(e, n);
|
|
3720
3739
|
};
|
|
3721
|
-
const
|
|
3740
|
+
const Ga = class {
|
|
3722
3741
|
constructor(e) {
|
|
3723
3742
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), this.bookingFormSubmitted = S(this, "bookingFormSubmitted", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "page-styling", this.appearance = void 0, this.isOpen = !0, this.selectedLanguage = void 0, this.currentAppearance = void 0, this.customInputsSlot = null;
|
|
3724
3743
|
}
|
|
@@ -3767,8 +3786,8 @@ const qa = class {
|
|
|
3767
3786
|
else if (l === "color-picker")
|
|
3768
3787
|
t.setAttribute("default-selected-color", n[o]);
|
|
3769
3788
|
else if (l === "select-dropdown") {
|
|
3770
|
-
const
|
|
3771
|
-
t.setAttribute("default-selected-option", JSON.stringify(
|
|
3789
|
+
const s = t.getAttribute("options"), r = s ? JSON.parse(s).find((f) => f.value === n[o]) : null;
|
|
3790
|
+
t.setAttribute("default-selected-option", JSON.stringify(r));
|
|
3772
3791
|
} else
|
|
3773
3792
|
l === "image-url" ? t.setAttribute("image-url", n[o]) : t.setAttribute("default-value", n[o]);
|
|
3774
3793
|
}
|
|
@@ -3787,8 +3806,8 @@ const qa = class {
|
|
|
3787
3806
|
try {
|
|
3788
3807
|
const l = JSON.parse(o);
|
|
3789
3808
|
if (n.options = l, a === "select-dropdown" && t && t in this.currentAppearance) {
|
|
3790
|
-
const
|
|
3791
|
-
n.setAttribute("default-selected-option", JSON.stringify(
|
|
3809
|
+
const s = l.find((r) => r.value === this.currentAppearance[t]);
|
|
3810
|
+
n.setAttribute("default-selected-option", JSON.stringify(s));
|
|
3792
3811
|
}
|
|
3793
3812
|
} catch (l) {
|
|
3794
3813
|
console.error("Error parsing options", l);
|
|
@@ -3805,9 +3824,9 @@ const qa = class {
|
|
|
3805
3824
|
}), n;
|
|
3806
3825
|
}
|
|
3807
3826
|
selectedConfigurationChangedHandler(e) {
|
|
3808
|
-
var
|
|
3827
|
+
var r, f;
|
|
3809
3828
|
c("nylas-page-styling", "selectedConfigurationChangedHandler", e), this.currentAppearance = (e == null ? void 0 : e.appearance) || {};
|
|
3810
|
-
const n = document.querySelector("nylas-scheduler-editor"), a = (
|
|
3829
|
+
const n = document.querySelector("nylas-scheduler-editor"), a = (r = n == null ? void 0 : n.shadowRoot) == null ? void 0 : r.querySelector('slot[name="custom-page-style-inputs"]');
|
|
3811
3830
|
if (!a)
|
|
3812
3831
|
return;
|
|
3813
3832
|
const t = document.createElement("div"), o = a == null ? void 0 : a.assignedElements({ flatten: !0 });
|
|
@@ -3815,9 +3834,9 @@ const qa = class {
|
|
|
3815
3834
|
const u = this.cloneAndCopyProps(y);
|
|
3816
3835
|
this.customInputsSlotChangedHandler(u), t.appendChild(u);
|
|
3817
3836
|
});
|
|
3818
|
-
const l = (f = this.host.shadowRoot) == null ? void 0 : f.querySelector(".nylas-page-styling"),
|
|
3819
|
-
|
|
3820
|
-
|
|
3837
|
+
const l = (f = this.host.shadowRoot) == null ? void 0 : f.querySelector(".nylas-page-styling"), s = l == null ? void 0 : l.querySelector(".nylas-page-styling__body .subsection");
|
|
3838
|
+
s && (s.innerHTML = "", t.childNodes.forEach((y) => {
|
|
3839
|
+
s.appendChild(y);
|
|
3821
3840
|
}), this.customInputsSlot = t);
|
|
3822
3841
|
}
|
|
3823
3842
|
checkIfElementIsInSlot(e) {
|
|
@@ -3869,13 +3888,13 @@ const qa = class {
|
|
|
3869
3888
|
this.isOpen = !this.isOpen;
|
|
3870
3889
|
}
|
|
3871
3890
|
render() {
|
|
3872
|
-
return i(
|
|
3891
|
+
return i(O, { key: "a2e2afc8af6ace07e0aee58b55b2ff98804902f4" }, i("div", { key: "8e52ba854d6645abcff00e1785d884b979144ad9", part: "nps", class: { "nylas-page-styling": !0, "no-border": !this.customInputsSlot } }, this.customInputsSlot ? i("div", { class: "header", part: "nps__header" }, i("div", null, i("h3", null, d.t("nylasPageStyling.headerTitle"))), i("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, i("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, i("chevron-icon", { width: "24", height: "24" })))) : null, i("div", { key: "429cdb734583f5cc542a3604a8066afb740bfbac", class: "hidden" }, i("input-color-picker", { key: "c0e506aa822d0d6a8c4f9e8676161d98a8a37191", name: "color-picker" })), i("div", { key: "b5549e43ff51e0d141beec0180befeea0a31e307", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, i("div", { key: "c84050ea2848dc0c58ff9574e2fd57feab38a4db", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, i("div", { key: "909faf8dc17b58f49a5b3f7783d3b1d9b6fbe283", class: "nylas-page-styling__row" }, i("div", { key: "ea673d1ba6f04eb25ba3a6b9898f23bde10a5749", class: { subsection: !0, hide: !this.isOpen } }))))));
|
|
3873
3892
|
}
|
|
3874
3893
|
static get formAssociated() {
|
|
3875
3894
|
return !0;
|
|
3876
3895
|
}
|
|
3877
3896
|
get host() {
|
|
3878
|
-
return
|
|
3897
|
+
return H(this);
|
|
3879
3898
|
}
|
|
3880
3899
|
static get watchers() {
|
|
3881
3900
|
return {
|
|
@@ -3885,8 +3904,8 @@ const qa = class {
|
|
|
3885
3904
|
};
|
|
3886
3905
|
}
|
|
3887
3906
|
};
|
|
3888
|
-
|
|
3889
|
-
|
|
3907
|
+
ao([
|
|
3908
|
+
L({
|
|
3890
3909
|
name: "nylas-page-styling",
|
|
3891
3910
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3892
3911
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3900,25 +3919,25 @@ eo([
|
|
|
3900
3919
|
},
|
|
3901
3920
|
fireRegisterEvent: !0
|
|
3902
3921
|
}),
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
],
|
|
3907
|
-
|
|
3908
|
-
const
|
|
3909
|
-
var
|
|
3910
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
3922
|
+
Fn("design:type", Function),
|
|
3923
|
+
Fn("design:paramtypes", []),
|
|
3924
|
+
Fn("design:returntype", void 0)
|
|
3925
|
+
], Ga.prototype, "render", null);
|
|
3926
|
+
Ga.style = no;
|
|
3927
|
+
const to = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-participant-booking-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .header{padding:1rem}.nylas-participant-booking-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participant-booking-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-participant-booking-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-participant-booking-calendars .content .participant-container .participant-title p{margin:0}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-booking-calendar-picker::part(nbcp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', lo = to;
|
|
3928
|
+
var oo = function(e, n, a, t) {
|
|
3929
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
3911
3930
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3912
3931
|
l = Reflect.decorate(e, n, a, t);
|
|
3913
3932
|
else
|
|
3914
|
-
for (var
|
|
3915
|
-
(
|
|
3933
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3934
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
3916
3935
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
3917
3936
|
}, Tn = function(e, n) {
|
|
3918
3937
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3919
3938
|
return Reflect.metadata(e, n);
|
|
3920
3939
|
};
|
|
3921
|
-
const
|
|
3940
|
+
const Za = class {
|
|
3922
3941
|
constructor(e) {
|
|
3923
3942
|
var n;
|
|
3924
3943
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-booking-calendars", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.calendars = void 0, this.participantOptions = void 0, this.selectedLanguage = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendar = {};
|
|
@@ -3944,21 +3963,21 @@ const Ja = class {
|
|
|
3944
3963
|
e !== n && d.changeLanguage(e);
|
|
3945
3964
|
}
|
|
3946
3965
|
getParticipantCalendarOptions(e, n) {
|
|
3947
|
-
var l,
|
|
3948
|
-
const a = e == null ? void 0 : e.find((y) => y.is_organizer), t = {}, o = ((
|
|
3966
|
+
var l, s, r, f;
|
|
3967
|
+
const a = e == null ? void 0 : e.find((y) => y.is_organizer), t = {}, o = ((r = (s = (l = this.selectedConfiguration) == null ? void 0 : l.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : r.availability_method) !== "collective";
|
|
3949
3968
|
if (n && o) {
|
|
3950
3969
|
const y = e == null ? void 0 : e.filter((p) => n.some((g) => g.email === p.email)), u = e == null ? void 0 : e.filter((p) => !n.some((g) => g.email === p.email));
|
|
3951
3970
|
y == null || y.forEach((p) => {
|
|
3952
|
-
var
|
|
3971
|
+
var _;
|
|
3953
3972
|
const g = n == null ? void 0 : n.find((w) => w.email === p.email);
|
|
3954
3973
|
if (!g)
|
|
3955
3974
|
return;
|
|
3956
|
-
this.participantDefaultSelectedCalendar[p.email] = ((
|
|
3957
|
-
const
|
|
3958
|
-
t[p.email] =
|
|
3975
|
+
this.participantDefaultSelectedCalendar[p.email] = ((_ = p.booking) == null ? void 0 : _.calendar_id) ?? "primary";
|
|
3976
|
+
const v = g.calendars ?? [];
|
|
3977
|
+
t[p.email] = v;
|
|
3959
3978
|
}), u == null || u.forEach((p) => {
|
|
3960
|
-
var g,
|
|
3961
|
-
(g = p == null ? void 0 : p.booking) != null && g.calendar_id && (t[p.email] = this.calendars ?? [{ id: "primary", name: p.email }], this.participantDefaultSelectedCalendar[p.email] = ((
|
|
3979
|
+
var g, v;
|
|
3980
|
+
(g = p == null ? void 0 : p.booking) != null && g.calendar_id && (t[p.email] = this.calendars ?? [{ id: "primary", name: p.email }], this.participantDefaultSelectedCalendar[p.email] = ((v = p == null ? void 0 : p.booking) == null ? void 0 : v.calendar_id) ?? "primary");
|
|
3962
3981
|
});
|
|
3963
3982
|
}
|
|
3964
3983
|
return a && (t[a.email] = this.calendars ?? [{ id: "primary", name: a.email }], this.participantDefaultSelectedCalendar[a.email] = ((f = a == null ? void 0 : a.booking) == null ? void 0 : f.calendar_id) ?? "primary"), t;
|
|
@@ -3993,8 +4012,8 @@ const Ja = class {
|
|
|
3993
4012
|
this.selectedCalendars[t].calendar = a, this.selectedCalendars = { ...this.selectedCalendars };
|
|
3994
4013
|
const o = {};
|
|
3995
4014
|
Object.keys(this.selectedCalendars).forEach((l) => {
|
|
3996
|
-
var
|
|
3997
|
-
o[l] = (
|
|
4015
|
+
var s;
|
|
4016
|
+
o[l] = (s = this.selectedCalendars[l]) == null ? void 0 : s.calendar;
|
|
3998
4017
|
}), this.internals.setFormValue(JSON.stringify(o), this.name), this.valueChanged.emit({ value: JSON.stringify(o), name: this.name });
|
|
3999
4018
|
}
|
|
4000
4019
|
setParticipants(e) {
|
|
@@ -4012,7 +4031,7 @@ const Ja = class {
|
|
|
4012
4031
|
}), n;
|
|
4013
4032
|
}
|
|
4014
4033
|
render() {
|
|
4015
|
-
return i(
|
|
4034
|
+
return i(O, { key: "c2b83da3995838d673c8b3ed18418e849d6b58fd" }, i("div", { key: "fb958f1c1b88541ee8ef85c96707efcb16db6510", class: "nylas-participant-booking-calendars", part: "npbc" }, i("div", { key: "f86d56b924605c56979eb702a79c30cc8a666d6d", class: "header", part: "npbc__header" }, i("h3", { key: "b31cefbc25927a25ecc3ffa07ce15f3b3ddd1987" }, d.t("nylasParticipantBookingCalendars.headerTitle")), i("p", { key: "f3ff6410ac9b70ff65a8227385792203fdd807a1" }, d.t("nylasParticipantBookingCalendars.headerSubTitle"))), i("div", { key: "78537bb4cd178ed8aae2b7fa2dc8c91398974954", class: "content", part: "npbc__content" }, i("form", { key: "1863572c4c4c50972eb759778d66a175065ca1bd", ref: (e) => this.bookingCalendarsFormRef = e }, this.participantCalendars && Object.keys(this.participantCalendars).map((e, n) => {
|
|
4016
4035
|
const a = this.selectedCalendars[e], t = this.participantCalendars[e];
|
|
4017
4036
|
if (!(!a || !a.name))
|
|
4018
4037
|
return i("div", { class: "participant-container", part: "npbc__participant-container", key: `participant-conatiner-${n}` }, i("div", { class: "participant-title", part: "npbc__participant-title" }, i("p", null, d.t("nylasParticipantBookingCalendars.participantBookingCalendarTitle", { participantName: a.name })), i("div", { class: "participant-toggle", part: "npbc__participant-toggle-container" }, i("span", { class: `chevron ${a.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
@@ -4024,7 +4043,7 @@ const Ja = class {
|
|
|
4024
4043
|
return !0;
|
|
4025
4044
|
}
|
|
4026
4045
|
get host() {
|
|
4027
|
-
return
|
|
4046
|
+
return H(this);
|
|
4028
4047
|
}
|
|
4029
4048
|
static get watchers() {
|
|
4030
4049
|
return {
|
|
@@ -4037,8 +4056,8 @@ const Ja = class {
|
|
|
4037
4056
|
};
|
|
4038
4057
|
}
|
|
4039
4058
|
};
|
|
4040
|
-
|
|
4041
|
-
|
|
4059
|
+
oo([
|
|
4060
|
+
L({
|
|
4042
4061
|
name: "nylas-participant-booking-calendars",
|
|
4043
4062
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4044
4063
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -4052,22 +4071,22 @@ to([
|
|
|
4052
4071
|
Tn("design:type", Function),
|
|
4053
4072
|
Tn("design:paramtypes", []),
|
|
4054
4073
|
Tn("design:returntype", void 0)
|
|
4055
|
-
],
|
|
4056
|
-
|
|
4057
|
-
const
|
|
4058
|
-
var
|
|
4059
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
4074
|
+
], Za.prototype, "render", null);
|
|
4075
|
+
Za.style = lo;
|
|
4076
|
+
const io = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}', so = io;
|
|
4077
|
+
var ro = function(e, n, a, t) {
|
|
4078
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
4060
4079
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4061
4080
|
l = Reflect.decorate(e, n, a, t);
|
|
4062
4081
|
else
|
|
4063
|
-
for (var
|
|
4064
|
-
(
|
|
4082
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
4083
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
4065
4084
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
4066
4085
|
}, $n = function(e, n) {
|
|
4067
4086
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4068
4087
|
return Reflect.metadata(e, n);
|
|
4069
4088
|
};
|
|
4070
|
-
const
|
|
4089
|
+
const Ya = class {
|
|
4071
4090
|
constructor(e) {
|
|
4072
4091
|
var n;
|
|
4073
4092
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "participant-custom-availability", this.participants = ((n = this.selectedConfiguration) == null ? void 0 : n.participants) || [], this.selectedLanguage = void 0, this.selectedParticipants = this.setParticipants(this.participants);
|
|
@@ -4098,13 +4117,13 @@ const Ga = class {
|
|
|
4098
4117
|
c("nylas-participants-custom-availability", "componentDidLoad"), this.selectedConfiguration ? this.selectedParticipants = this.setParticipants((e = this.selectedConfiguration) == null ? void 0 : e.participants) : this.selectedParticipants = this.setParticipants(this.participants);
|
|
4099
4118
|
}
|
|
4100
4119
|
nylasFormSwitchToggledHandler(e) {
|
|
4101
|
-
var l,
|
|
4120
|
+
var l, s, r, f, y, u, p, g, v, _, w, P;
|
|
4102
4121
|
c("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
|
|
4103
|
-
const n = (l = this.selectedConfiguration) == null ? void 0 : l.participants.find((N) => N.email === e.detail.name), a = ((
|
|
4104
|
-
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (t == null ? void 0 : t.length) > 0 ? t :
|
|
4122
|
+
const n = (l = this.selectedConfiguration) == null ? void 0 : l.participants.find((N) => N.email === e.detail.name), a = ((s = n == null ? void 0 : n.availability) == null ? void 0 : s.open_hours) || [], t = (a == null ? void 0 : a.length) > 0 ? a : ((y = (f = (r = this.selectedConfiguration) == null ? void 0 : r.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : y.default_open_hours) || [], o = a && a.length > 0 ? n == null ? void 0 : n.timezone : ((_ = (v = (g = (p = (u = this.selectedConfiguration) == null ? void 0 : u.availability) == null ? void 0 : p.availability_rules) == null ? void 0 : g.default_open_hours) == null ? void 0 : v.at(0)) == null ? void 0 : _.timezone) || ((P = (w = this.selectedConfiguration) == null ? void 0 : w.event_booking) == null ? void 0 : P.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
4123
|
+
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 : ya : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? o : void 0, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4105
4124
|
}
|
|
4106
4125
|
handleValueChanged(e) {
|
|
4107
|
-
var
|
|
4126
|
+
var r, f, y;
|
|
4108
4127
|
c("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
4109
4128
|
const { name: n, value: a } = e.detail;
|
|
4110
4129
|
if (!n.startsWith("participant-"))
|
|
@@ -4119,8 +4138,8 @@ const Ga = class {
|
|
|
4119
4138
|
const t = JSON.parse(a), o = n.split("-")[2];
|
|
4120
4139
|
if (!this.selectedParticipants[o])
|
|
4121
4140
|
return;
|
|
4122
|
-
const l = t.openHours || [],
|
|
4123
|
-
this.selectedParticipants[o].openHours =
|
|
4141
|
+
const l = t.openHours || [], s = (l == null ? void 0 : l.length) > 0 ? l : ((y = (f = (r = this.selectedConfiguration) == null ? void 0 : r.availability) == null ? void 0 : f.availability_rules) == null ? void 0 : y.default_open_hours) || [];
|
|
4142
|
+
this.selectedParticipants[o].openHours = s, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4124
4143
|
}
|
|
4125
4144
|
updateFormValue() {
|
|
4126
4145
|
const e = {};
|
|
@@ -4146,7 +4165,7 @@ const Ga = class {
|
|
|
4146
4165
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
4147
4166
|
}
|
|
4148
4167
|
render() {
|
|
4149
|
-
return i(
|
|
4168
|
+
return i(O, { key: "2d2837e4d4771accfd3a902dacf1eb614150fb37" }, i("div", { key: "addcacf8a1d68b173dc02ecaeb662f2eb650de52", class: "nylas-participants-custom-availability", part: "npca" }, i("div", { key: "16834714aa8b3bc29f51f03b8742fd137bf23ae0", class: "header", part: "npca__header" }, i("h3", { key: "9f30489d89e9480f713fcdddf8a981ec059a4eb5" }, d.t("nylasParticipantCustomAvailability.headerTitle")), i("p", { key: "e4eab7c44d58b3257249c9e974562d7bcaf37e32" }, d.t("nylasParticipantCustomAvailability.headerSubTitle"))), i("div", { key: "dd6c6f6569a656b96ad7466c7b1378c7d332a7d6", class: "content", part: "npca__content" }, i("form", { key: "b3ddef24777b0b865808eb990c25dc863468d625", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
|
|
4150
4169
|
var o;
|
|
4151
4170
|
const a = this.selectedParticipants[e], t = ((o = a.availability) == null ? void 0 : o.open_hours) || [];
|
|
4152
4171
|
if (!(!a || !a.name || !a.availability))
|
|
@@ -4159,7 +4178,7 @@ const Ga = class {
|
|
|
4159
4178
|
return !0;
|
|
4160
4179
|
}
|
|
4161
4180
|
get host() {
|
|
4162
|
-
return
|
|
4181
|
+
return H(this);
|
|
4163
4182
|
}
|
|
4164
4183
|
static get watchers() {
|
|
4165
4184
|
return {
|
|
@@ -4170,8 +4189,8 @@ const Ga = class {
|
|
|
4170
4189
|
};
|
|
4171
4190
|
}
|
|
4172
4191
|
};
|
|
4173
|
-
|
|
4174
|
-
|
|
4192
|
+
ro([
|
|
4193
|
+
L({
|
|
4175
4194
|
name: "nylas-participants-custom-availability",
|
|
4176
4195
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4177
4196
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4183,22 +4202,22 @@ io([
|
|
|
4183
4202
|
$n("design:type", Function),
|
|
4184
4203
|
$n("design:paramtypes", []),
|
|
4185
4204
|
$n("design:returntype", void 0)
|
|
4186
|
-
],
|
|
4187
|
-
|
|
4188
|
-
const ro = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:hover,.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body{grid-template-columns:1fr}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{border:none}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__block{display:flex;flex-direction:column;gap:0.5rem;border-top:1px solid var(--nylas-base-200);padding-top:1rem;margin-top:0.5rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row.full-width-col{grid-template-columns:1fr}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label{display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.required{color:var(--nylas-error, #cc4841)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon{margin-left:4px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon tooltip-component{display:flex}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message{color:var(--nylas-error);display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button{color:blue}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button:hover{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container{display:flex;gap:32px;width:100%}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row span.selected-value{font-weight:500}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container{padding:0 2rem 1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.error-message{color:var(--nylas-error)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}button-component.create-reminder button{margin:1rem;width:calc(100% - 2rem)}button-component.delete-btn button{color:var(--nylas-error) !important}', so = ro;
|
|
4189
|
-
var
|
|
4190
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
4205
|
+
], Ya.prototype, "render", null);
|
|
4206
|
+
Ya.style = so;
|
|
4207
|
+
const co = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:hover,.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body{grid-template-columns:1fr}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section{border:none}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__block{display:flex;flex-direction:column;gap:0.5rem;border-top:1px solid var(--nylas-base-200);padding-top:1rem;margin-top:0.5rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row.full-width-col{grid-template-columns:1fr}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label{display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.required{color:var(--nylas-error, #cc4841)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon{margin-left:4px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row label span.label-icon tooltip-component{display:flex}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message{color:var(--nylas-error);display:flex;align-items:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button{color:blue}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p.error-message button-component button:hover{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container{display:flex;gap:32px;width:100%}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .nylas-reminder-email__row span.selected-value{font-weight:500}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container{padding:0 2rem 1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body .nylas-reminder-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.error-message{color:var(--nylas-error)}.cards-container .nylas-reminder-email .nylas-reminder-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.cards-container .nylas-reminder-email .nylas-reminder-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}button-component.create-reminder button{margin:1rem;width:calc(100% - 2rem)}button-component.delete-btn button{color:var(--nylas-error) !important}', fo = co;
|
|
4208
|
+
var yo = function(e, n, a, t) {
|
|
4209
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
4191
4210
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4192
4211
|
l = Reflect.decorate(e, n, a, t);
|
|
4193
4212
|
else
|
|
4194
|
-
for (var
|
|
4195
|
-
(
|
|
4213
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
4214
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
4196
4215
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
4197
4216
|
}, Nn = function(e, n) {
|
|
4198
4217
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4199
4218
|
return Reflect.metadata(e, n);
|
|
4200
4219
|
};
|
|
4201
|
-
const
|
|
4220
|
+
const Xa = class {
|
|
4202
4221
|
constructor(e) {
|
|
4203
4222
|
var n, a, t, o, l;
|
|
4204
4223
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), this.nylasSuggestReminderMinutes = S(this, "nylasSuggestReminderMinutes", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventReminders = void 0, this.name = "reminder-overrides", this.selectedLanguage = void 0, this.reminders = ((a = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : a.reminders) ?? ((o = (t = this.selectedConfiguration) == null ? void 0 : t.group_booking) == null ? void 0 : o.reminders) ?? this.eventReminders ?? [], this.reminderErrors = {}, this.participants = ((l = this.selectedConfiguration) == null ? void 0 : l.participants) ?? [], this.clearError = !1;
|
|
@@ -4252,8 +4271,8 @@ const Za = class {
|
|
|
4252
4271
|
return;
|
|
4253
4272
|
} else
|
|
4254
4273
|
delete this.reminderErrors[n], this.reminderErrors = { ...this.reminderErrors }, this.internals.setValidity({ customError: !1 });
|
|
4255
|
-
const [o, l] = n.split(/(\d+)/),
|
|
4256
|
-
|
|
4274
|
+
const [o, l] = n.split(/(\d+)/), s = [...this.reminders];
|
|
4275
|
+
s[l].minutes_before_event = parseInt(a), this.reminders = [...s], this.updateRemindersFormValue();
|
|
4257
4276
|
}
|
|
4258
4277
|
}
|
|
4259
4278
|
handleNylasFormDropdownChanged(e) {
|
|
@@ -4332,27 +4351,27 @@ const Za = class {
|
|
|
4332
4351
|
value: "host"
|
|
4333
4352
|
}
|
|
4334
4353
|
];
|
|
4335
|
-
return ((t = this.selectedConfiguration) == null ? void 0 : t.type) === "group" && (n = n.filter((o) => o.value !== "all")), i(
|
|
4336
|
-
var
|
|
4354
|
+
return ((t = this.selectedConfiguration) == null ? void 0 : t.type) === "group" && (n = n.filter((o) => o.value !== "all")), i(O, { key: "a14f383c9531076b75a3c8848b1a866199675f95" }, i("div", { key: "bfa9969c2318b4f3c23bc159524da0f05b571b51", class: "cards-container" }, this.reminders.map((o, l) => {
|
|
4355
|
+
var s, r, f, y;
|
|
4337
4356
|
return o.type !== "webhook" ? i("div", { class: "nylas-reminder-email", part: "nre" }, i("div", { class: "header", part: "nre__header" }, i("div", null, i("h3", null, d.t("nylasReminderEmails.headerTitle", { organizerName: e ? ` with ${e} ` : "" })), i("p", null, d.t("nylasReminderEmails.headerSubTitle"))), o.editing ? i("div", { class: "reminder-open-close-toggle" }, i("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${l} `, clickHandler: (u) => {
|
|
4338
4357
|
u.preventDefault(), this.deleteReminder(l);
|
|
4339
4358
|
} }, i("trash-icon", { width: "16", height: "16" })), i("span", { class: `chevron ${o.editing ? "open" : "closed"}`, onClick: () => {
|
|
4340
4359
|
o.editing = !o.editing, this.reminders = [...this.reminders];
|
|
4341
4360
|
} }, i("chevron-icon", { width: "24", height: "24" }))) : i("button-component", { variant: "basic", key: `edit-${l} `, clickHandler: (u) => {
|
|
4342
4361
|
u.preventDefault(), o.editing = !0, this.reminders = [...this.reminders];
|
|
4343
|
-
} }, i("edit-icon", { width: "16", height: "16" }), d.t("nylasReminderEmails.editButtonText"))), o.editing ? i("div", { class: "nylas-reminder-email__body", part: "nre__body" }, i("div", { class: "nylas-reminder-email__section" }, i("div", { class: "nylas-reminder-email__row" }, i("label", null, d.t("nylasReminderEmails.emailRecipients.label")), i("select-dropdown", { name: `recipient-${l}`, options: n, defaultSelectedOption: n.find((u) => u.value === o.recipient) ?? n[0], withSearch: !1 })), i("div", { class: "nylas-reminder-email__row" }, i("label", null, d.t("nylasReminderEmails.sendConfirmation.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasReminderEmails.sendConfirmation.tooltip.desc"))))), i("div", null, i("nylas-reminder-time", { name: `reminder-time-${l}`, eventReminderTimeMinutes: o.minutes_before_event, exportparts: "nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" }), ((
|
|
4362
|
+
} }, i("edit-icon", { width: "16", height: "16" }), d.t("nylasReminderEmails.editButtonText"))), o.editing ? i("div", { class: "nylas-reminder-email__body", part: "nre__body" }, i("div", { class: "nylas-reminder-email__section" }, i("div", { class: "nylas-reminder-email__row" }, i("label", null, d.t("nylasReminderEmails.emailRecipients.label")), i("select-dropdown", { name: `recipient-${l}`, options: n, defaultSelectedOption: n.find((u) => u.value === o.recipient) ?? n[0], withSearch: !1 })), i("div", { class: "nylas-reminder-email__row" }, i("label", null, d.t("nylasReminderEmails.sendConfirmation.label"), i("span", { class: "label-icon" }, i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, d.t("nylasReminderEmails.sendConfirmation.tooltip.desc"))))), i("div", null, i("nylas-reminder-time", { name: `reminder-time-${l}`, eventReminderTimeMinutes: o.minutes_before_event, exportparts: "nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" }), ((s = this.reminderErrors[`reminder-time-${l}`]) == null ? void 0 : s.error) && i("p", { class: "error-message" }, (r = this.reminderErrors[`reminder-time-${l}`]) == null ? void 0 : r.error, " ", i("button-component", { variant: "invisible", onClick: (u) => {
|
|
4344
4363
|
var p;
|
|
4345
4364
|
this.nylasSuggestReminderMinutes.emit({ minutes: (p = this.reminderErrors[`reminder-time-${l}`]) == null ? void 0 : p.suggestion });
|
|
4346
4365
|
} }, (f = this.reminderErrors[`reminder-time-${l}`]) == null ? void 0 : f.suggestion)))), i("div", { class: "nylas-reminder-email__block" }, i("label", null, d.t("nylasReminderEmails.emailSubject.label")), i("input-component", { name: `reminder-subject-${l}`, maxLength: 60, placeholder: d.t("nylasReminderEmails.emailSubject.placeholder", { organizerName: e ? ` with ${e}` : "" }), defaultValue: (o == null ? void 0 : o.email_subject) || "" })))) : i("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, i("p", null, i("span", { class: "summary-icon" }, i("person-clipboard-icon", null)), (y = n.find((u) => u.value === o.recipient)) == null ? void 0 : y.label), i("p", null, i("span", { class: "summary-icon" }, i("clock-icon", null)), this.formatReminderTime(o.minutes_before_event), " ", d.t("nylasReminderEmails.beforeTheEvent")))) : null;
|
|
4347
|
-
})), i("button-component", { key: "
|
|
4366
|
+
})), i("button-component", { key: "7ce94e57ade399ef39bb69df3bef3c0eec4c94ce", class: "create-reminder", variant: "basic", clickHandler: (o) => {
|
|
4348
4367
|
o.preventDefault(), this.addReminder();
|
|
4349
|
-
} }, i("plus-icon", { key: "
|
|
4368
|
+
} }, i("plus-icon", { key: "9c40a99b724f31d196f81640c882d2c673f31f43", width: "16", height: "16" }), d.t("nylasReminderEmails.newReminderButtonText")));
|
|
4350
4369
|
}
|
|
4351
4370
|
static get formAssociated() {
|
|
4352
4371
|
return !0;
|
|
4353
4372
|
}
|
|
4354
4373
|
get host() {
|
|
4355
|
-
return
|
|
4374
|
+
return H(this);
|
|
4356
4375
|
}
|
|
4357
4376
|
static get watchers() {
|
|
4358
4377
|
return {
|
|
@@ -4362,8 +4381,8 @@ const Za = class {
|
|
|
4362
4381
|
};
|
|
4363
4382
|
}
|
|
4364
4383
|
};
|
|
4365
|
-
|
|
4366
|
-
|
|
4384
|
+
yo([
|
|
4385
|
+
L({
|
|
4367
4386
|
name: "nylas-reminder-emails",
|
|
4368
4387
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4369
4388
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4380,22 +4399,22 @@ co([
|
|
|
4380
4399
|
Nn("design:type", Function),
|
|
4381
4400
|
Nn("design:paramtypes", []),
|
|
4382
4401
|
Nn("design:returntype", void 0)
|
|
4383
|
-
],
|
|
4384
|
-
|
|
4385
|
-
const
|
|
4386
|
-
var
|
|
4387
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
4402
|
+
], Xa.prototype, "render", null);
|
|
4403
|
+
Xa.style = fo;
|
|
4404
|
+
const po = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-scheduling-method{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);margin:0.25rem 0 0 0;font-size:14px;font-weight:400;line-height:20px;text-align:left}.nylas-scheduling-method .nylas-scheduling-method__dropdown span.nylas-scheduling-method__dropdown-label tooltip-component{display:flex}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-scheduling-method .nylas-scheduling-method__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-scheduling-method .nylas-scheduling-method__dropdown input-component::part(ic__input){background:var(--nylas-base-50);outline:none;cursor:not-allowed}', uo = po;
|
|
4405
|
+
var mo = function(e, n, a, t) {
|
|
4406
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
4388
4407
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4389
4408
|
l = Reflect.decorate(e, n, a, t);
|
|
4390
4409
|
else
|
|
4391
|
-
for (var
|
|
4392
|
-
(
|
|
4410
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
4411
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
4393
4412
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
4394
4413
|
}, Pn = function(e, n) {
|
|
4395
4414
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4396
4415
|
return Reflect.metadata(e, n);
|
|
4397
4416
|
};
|
|
4398
|
-
const
|
|
4417
|
+
const Ka = class {
|
|
4399
4418
|
constructor(e) {
|
|
4400
4419
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "availability-method", this.participantOptions = void 0, this.readOnly = !1, this.selectedLanguage = void 0, this.showSubTitle = !1, this.selectedBookingType = "";
|
|
4401
4420
|
}
|
|
@@ -4446,19 +4465,19 @@ const Ya = class {
|
|
|
4446
4465
|
this.valueChanged.emit({ value: e.detail.value, name: this.name, valueChanged: n });
|
|
4447
4466
|
}
|
|
4448
4467
|
render() {
|
|
4449
|
-
var t, o, l,
|
|
4468
|
+
var t, o, l, s, r, f;
|
|
4450
4469
|
const e = [
|
|
4451
4470
|
{ label: d.t("nylasSchedulingMethod.schedulingMethodOptions", { context: "collective" }), value: "collective" },
|
|
4452
4471
|
{ label: d.t("nylasSchedulingMethod.schedulingMethodOptions", { context: "maxFairness" }), value: "max-fairness" },
|
|
4453
4472
|
{ label: d.t("nylasSchedulingMethod.schedulingMethodOptions", { context: "maxAvailability" }), value: "max-availability" }
|
|
4454
|
-
], n = (
|
|
4455
|
-
return (n || !a) && !this.readOnly ? null : i(
|
|
4473
|
+
], n = (s = (l = (o = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : l.availability_method) == null ? void 0 : s.toString(), a = this.participantOptions && ((r = this.participantOptions) == null ? void 0 : r.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0;
|
|
4474
|
+
return (n || !a) && !this.readOnly ? null : i(O, null, i("div", { class: "nylas-scheduling-method", part: "nsm" }, i("div", { class: "header", part: "nsm__header" }, i("h3", null, d.t("nylasSchedulingMethod.headerTitle"))), i("div", { class: "nylas-scheduling-method__dropdown" }, this.showSubTitle && i("span", { class: "nylas-scheduling-method__dropdown-label" }, d.t("nylasSchedulingMethod.headerSubTitle"), i("tooltip-component", null, i("info-icon", { slot: "tooltip-icon" }), i("span", { slot: "tooltip-content" }, i("strong", null, d.t("nylasSchedulingMethod.tooltip.standard.label")), i("br", null), "- ", d.t("nylasSchedulingMethod.tooltip.standard.desc"), i("br", null), i("br", null), i("strong", null, d.t("nylasSchedulingMethod.tooltip.maxFairness.label")), i("br", null), "- ", d.t("nylasSchedulingMethod.tooltip.maxFairness.desc"), i("br", null), i("br", null), i("strong", null, d.t("nylasSchedulingMethod.tooltip.maxAvailability.label")), i("br", null), "- ", d.t("nylasSchedulingMethod.tooltip.maxAvailability.desc"), i("br", null)))), this.readOnly ? i("input-component", { name: "availability-method-read-only", type: "text", exportparts: "ic__label: nsm__input-label, ic__input: nsm__input, ic__input_wrapper: nsm__input_wrapper", readOnly: !0, defaultValue: ((f = e.find((y) => y.value == n)) == null ? void 0 : f.label) ?? e[0].label }) : i("select-dropdown", { name: this.name, options: e, withSearch: !1, exportparts: "sd_dropdown: nsm__dropdown, sd_dropdown-button: nsm__dropdown-button, sd_dropdown-content: nsm__dropdown-content", defaultSelectedOption: e.find((y) => y.value == n) ?? e[0] }))));
|
|
4456
4475
|
}
|
|
4457
4476
|
static get formAssociated() {
|
|
4458
4477
|
return !0;
|
|
4459
4478
|
}
|
|
4460
4479
|
get host() {
|
|
4461
|
-
return
|
|
4480
|
+
return H(this);
|
|
4462
4481
|
}
|
|
4463
4482
|
static get watchers() {
|
|
4464
4483
|
return {
|
|
@@ -4468,8 +4487,8 @@ const Ya = class {
|
|
|
4468
4487
|
};
|
|
4469
4488
|
}
|
|
4470
4489
|
};
|
|
4471
|
-
|
|
4472
|
-
|
|
4490
|
+
mo([
|
|
4491
|
+
L({
|
|
4473
4492
|
name: "nylas-scheduling-method",
|
|
4474
4493
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4475
4494
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4487,22 +4506,22 @@ po([
|
|
|
4487
4506
|
Pn("design:type", Function),
|
|
4488
4507
|
Pn("design:paramtypes", []),
|
|
4489
4508
|
Pn("design:returntype", void 0)
|
|
4490
|
-
],
|
|
4491
|
-
|
|
4492
|
-
const
|
|
4493
|
-
var
|
|
4494
|
-
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t,
|
|
4509
|
+
], Ka.prototype, "render", null);
|
|
4510
|
+
Ka.style = uo;
|
|
4511
|
+
const go = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', ho = go;
|
|
4512
|
+
var bo = function(e, n, a, t) {
|
|
4513
|
+
var o = arguments.length, l = o < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, s;
|
|
4495
4514
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4496
4515
|
l = Reflect.decorate(e, n, a, t);
|
|
4497
4516
|
else
|
|
4498
|
-
for (var
|
|
4499
|
-
(
|
|
4517
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
4518
|
+
(s = e[r]) && (l = (o < 3 ? s(l) : o > 3 ? s(n, a, l) : s(n, a)) || l);
|
|
4500
4519
|
return o > 3 && l && Object.defineProperty(n, a, l), l;
|
|
4501
|
-
},
|
|
4520
|
+
}, An = function(e, n) {
|
|
4502
4521
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4503
4522
|
return Reflect.metadata(e, n);
|
|
4504
4523
|
};
|
|
4505
|
-
const Ue = 15,
|
|
4524
|
+
const Ue = 15, Va = class {
|
|
4506
4525
|
constructor(e) {
|
|
4507
4526
|
var n, a;
|
|
4508
4527
|
x(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = (a = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : a.duration_minutes, this.selectedLanguage = void 0, this.internalEventDurationMinutes = void 0, this.selectedInterval = void 0, this.selectedRoundTo = void 0, this.componentLoaded = !1;
|
|
@@ -4511,11 +4530,11 @@ const Ue = 15, Xa = class {
|
|
|
4511
4530
|
c("nylas-timeslot-interval", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
4512
4531
|
}
|
|
4513
4532
|
selectedConfigurationChangedHandler(e) {
|
|
4514
|
-
var t, o, l,
|
|
4533
|
+
var t, o, l, s;
|
|
4515
4534
|
c("nylas-timeslot-interval", "selectedConfigurationChangedHandler", e), this.internalEventDurationMinutes = ((t = e == null ? void 0 : e.availability) == null ? void 0 : t.duration_minutes) ?? this.eventDurationMinutes ?? 30;
|
|
4516
4535
|
const n = ((o = e == null ? void 0 : e.availability) == null ? void 0 : o.interval_minutes) ?? this.internalEventDurationMinutes ?? 30;
|
|
4517
4536
|
this.selectedInterval = ((l = e == null ? void 0 : e.availability) == null ? void 0 : l.interval_minutes) ?? n ?? 10;
|
|
4518
|
-
const a = ((
|
|
4537
|
+
const a = ((s = e == null ? void 0 : e.availability) == null ? void 0 : s.round_to) || null;
|
|
4519
4538
|
this.selectedRoundTo = !!(a && a === n);
|
|
4520
4539
|
}
|
|
4521
4540
|
selectedLanguageChangedHandler(e, n) {
|
|
@@ -4581,7 +4600,7 @@ const Ue = 15, Xa = class {
|
|
|
4581
4600
|
{ value: "45", label: `45 ${d.t("nylasTimeslotInterval.minutesShort")}` },
|
|
4582
4601
|
{ value: "60", label: `60 ${d.t("nylasTimeslotInterval.minutesShort")}` }
|
|
4583
4602
|
], n = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? e[0] : e.find((a) => a.value == this.selectedInterval.toString()) ?? e[0] : void 0;
|
|
4584
|
-
return i(
|
|
4603
|
+
return i(O, { key: "2aa58e54587a744c677dbf4b003abd3fa14c37fc" }, i("div", { key: "fddae80f16cf4ec5b93c74bf5d45b4b7b543ec60", class: "nylas-timeslot-interval", part: "nti" }, i("div", { key: "ff8a2e492f4d1fde6aba065d76bce11d6a184c4e", class: "header", part: "nti__header" }, i("h3", { key: "367bd8bd5f2949574132409109030528d03c18d3" }, d.t("nylasTimeslotInterval.headerTitle"))), i("div", { key: "6d2d0bb341ca2c0cb1121de5afad874bd5e8090d", class: "nylas-timeslot-interval__dropdown" }, i("span", { key: "21608859e39b3ded5007090377feed1d0f54f868", class: "label", part: "nti__input-label" }, d.t("nylasTimeslotInterval.timeslotInterval.label")), (n == null ? void 0 : n.label) && i("select-dropdown", { name: "interval-minutes", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: n }), i("span", { key: "d8de089cad61b48ce07f8b3ccdf503759e3bb377", slot: "label", class: "label", part: "nti__input-label" }, d.t("nylasTimeslotInterval.timeslotRounding.label"), i("tooltip-component", { key: "e95e8dc5ccf68914d331c98f929a6f0a3456e3ee" }, i("info-icon", { key: "a07cc67390b570a614b61a7c8577046b29180b1f", slot: "tooltip-icon" }), i("span", { key: "6b649bf635c07fb5a3fe78d27f3742c8da0d8b92", slot: "tooltip-content" }, d.t("nylasTimeslotInterval.timeslotRounding.tooltip.desc")))), this.componentLoaded && i("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
|
|
4585
4604
|
{
|
|
4586
4605
|
value: "no-rounding",
|
|
4587
4606
|
label: d.t("nylasTimeslotInterval.timeslotRoundingOptions.noRounding.label"),
|
|
@@ -4598,7 +4617,7 @@ const Ue = 15, Xa = class {
|
|
|
4598
4617
|
return !0;
|
|
4599
4618
|
}
|
|
4600
4619
|
get host() {
|
|
4601
|
-
return
|
|
4620
|
+
return H(this);
|
|
4602
4621
|
}
|
|
4603
4622
|
static get watchers() {
|
|
4604
4623
|
return {
|
|
@@ -4608,8 +4627,8 @@ const Ue = 15, Xa = class {
|
|
|
4608
4627
|
};
|
|
4609
4628
|
}
|
|
4610
4629
|
};
|
|
4611
|
-
|
|
4612
|
-
|
|
4630
|
+
bo([
|
|
4631
|
+
L({
|
|
4613
4632
|
name: "nylas-timeslot-interval",
|
|
4614
4633
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4615
4634
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4617,73 +4636,73 @@ go([
|
|
|
4617
4636
|
]),
|
|
4618
4637
|
fireRegisterEvent: !0
|
|
4619
4638
|
}),
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
],
|
|
4624
|
-
|
|
4625
|
-
const
|
|
4639
|
+
An("design:type", Function),
|
|
4640
|
+
An("design:paramtypes", []),
|
|
4641
|
+
An("design:returntype", void 0)
|
|
4642
|
+
], Va.prototype, "render", null);
|
|
4643
|
+
Va.style = ho;
|
|
4644
|
+
const vo = ".sc-paintbrush-fill-icon-h{display:flex}", _o = vo, Co = class {
|
|
4626
4645
|
constructor(e) {
|
|
4627
4646
|
x(this, e), this.width = "16", this.height = "13";
|
|
4628
4647
|
}
|
|
4629
4648
|
render() {
|
|
4630
|
-
return i("svg", { key: "
|
|
4649
|
+
return i("svg", { key: "23641a2641d64db717d6824f788b9a35753b96cd", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "6fd2d71a5858d6de9b88cedc950ec53e8ee8702f", 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" }));
|
|
4631
4650
|
}
|
|
4632
4651
|
};
|
|
4633
|
-
|
|
4634
|
-
const
|
|
4652
|
+
Co.style = _o;
|
|
4653
|
+
const wo = ".sc-paintbrush-icon-h{display:flex}", ko = wo, xo = class {
|
|
4635
4654
|
constructor(e) {
|
|
4636
4655
|
x(this, e), this.width = "16", this.height = "13";
|
|
4637
4656
|
}
|
|
4638
4657
|
render() {
|
|
4639
|
-
return i("svg", { key: "
|
|
4658
|
+
return i("svg", { key: "23eb7f769f731828e21c4109fb5247452454913f", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "abc09fde66aea5f6db9f0907ab327a33f0db3c28", 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" }));
|
|
4640
4659
|
}
|
|
4641
4660
|
};
|
|
4642
|
-
|
|
4643
|
-
const
|
|
4661
|
+
xo.style = ko;
|
|
4662
|
+
const Eo = ".sc-people-icon-h{display:flex}", So = Eo, Oo = class {
|
|
4644
4663
|
constructor(e) {
|
|
4645
4664
|
x(this, e), this.width = "20", this.height = "20";
|
|
4646
4665
|
}
|
|
4647
4666
|
render() {
|
|
4648
|
-
return i("svg", { key: "
|
|
4667
|
+
return i("svg", { key: "c161770203c006b56420f8b779729d7f190563b9", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, i("path", { key: "1eee2b029f0d619c89432831d3392402fc5df7e8", 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" }));
|
|
4649
4668
|
}
|
|
4650
4669
|
};
|
|
4651
|
-
|
|
4670
|
+
Oo.style = So;
|
|
4652
4671
|
export {
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4672
|
+
lt as calendar_agenda_fill_icon,
|
|
4673
|
+
st as calendar_agenda_icon,
|
|
4674
|
+
dt as calendar_info_icon,
|
|
4675
|
+
pt as calendar_patterns_icon,
|
|
4676
|
+
gt as envelope_fill_icon,
|
|
4677
|
+
vt as envelope_icon,
|
|
4678
|
+
wt as flow_icon,
|
|
4679
|
+
pa as nylas_availability_picker,
|
|
4680
|
+
ua as nylas_booking_calendar_picker,
|
|
4681
|
+
ma as nylas_booking_confirmation_redirect,
|
|
4682
|
+
ga as nylas_booking_confirmation_type,
|
|
4683
|
+
Ia as nylas_booking_form_config,
|
|
4684
|
+
Fa as nylas_buffer_time,
|
|
4685
|
+
Ta as nylas_calendar_picker,
|
|
4686
|
+
$a as nylas_cancellation_policy,
|
|
4687
|
+
Na as nylas_confirmation_email,
|
|
4688
|
+
Pa as nylas_connected_calendars,
|
|
4689
|
+
Aa as nylas_custom_booking_flow,
|
|
4690
|
+
Ra as nylas_custom_event_slug,
|
|
4691
|
+
Ma as nylas_customize_booking_settings,
|
|
4692
|
+
za as nylas_disable_emails,
|
|
4693
|
+
Ba as nylas_event_duration,
|
|
4694
|
+
ja as nylas_event_limits,
|
|
4695
|
+
Wa as nylas_limit_future_bookings,
|
|
4696
|
+
Ua as nylas_min_booking_notice,
|
|
4697
|
+
qa as nylas_min_cancellation_notice,
|
|
4698
|
+
Ja as nylas_page_name,
|
|
4699
|
+
Ga as nylas_page_styling,
|
|
4700
|
+
Za as nylas_participant_booking_calendars,
|
|
4701
|
+
Ya as nylas_participants_custom_availability,
|
|
4702
|
+
Xa as nylas_reminder_emails,
|
|
4703
|
+
Ka as nylas_scheduling_method,
|
|
4704
|
+
Va as nylas_timeslot_interval,
|
|
4705
|
+
Co as paintbrush_fill_icon,
|
|
4706
|
+
xo as paintbrush_icon,
|
|
4707
|
+
Oo as people_icon
|
|
4689
4708
|
};
|