@nylas/react 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add-circle-icon.entry-25aecb13.js +15 -0
- package/dist/{add-circle-icon.entry-640d2b46.cjs → add-circle-icon.entry-5c49ba96.cjs} +1 -1
- package/dist/{archive-icon.entry-5b209336.cjs → archive-icon.entry-0a9e8ec3.cjs} +1 -1
- package/dist/{archive-icon.entry-e8a39eda.js → archive-icon.entry-89e31121.js} +2 -2
- package/dist/{arrow-icon.entry-a25b7b7e.cjs → arrow-icon.entry-19e5237c.cjs} +1 -1
- package/dist/{arrow-icon.entry-fa9584cf.js → arrow-icon.entry-9cfd86a1.js} +2 -2
- package/dist/bold-icon.entry-d591e701.cjs +1 -0
- package/dist/{bold-icon.entry-ac6a4956.js → bold-icon.entry-eab3420d.js} +6 -6
- package/dist/{button-component_2.entry-caf33abf.js → button-component_2.entry-7cd5f9c0.js} +6 -6
- package/dist/{button-component_2.entry-1471422a.cjs → button-component_2.entry-ce4314bf.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_53.entry-6d7f9c79.js → calendar-agenda-fill-icon_54.entry-7099138a.js} +786 -678
- package/dist/calendar-agenda-fill-icon_54.entry-9228dbe7.cjs +8 -0
- package/dist/{calendar-cancel-icon.entry-02015d74.js → calendar-cancel-icon.entry-299d6fba.js} +4 -4
- package/dist/{calendar-cancel-icon.entry-42d3d226.cjs → calendar-cancel-icon.entry-6e3d20f1.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-45aacd91.cjs → calendar-check-icon_2.entry-087dd913.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-2f7dc236.js → calendar-check-icon_2.entry-08ef8d2f.js} +5 -5
- package/dist/{calendar-icon.entry-70ac9bd6.js → calendar-icon.entry-53b54115.js} +5 -5
- package/dist/{calendar-icon.entry-90d67b03.cjs → calendar-icon.entry-73f9d05b.cjs} +1 -1
- package/dist/checkbox-component_3.entry-bc9768dd.cjs +1 -0
- package/dist/checkbox-component_3.entry-d828eb1d.js +149 -0
- package/dist/{chevron-icon_3.entry-3c95cc88.js → chevron-icon_3.entry-783588a9.js} +8 -8
- package/dist/chevron-icon_3.entry-e956d78c.cjs +1 -0
- package/dist/{clock-icon_4.entry-af5301d7.js → clock-icon_4.entry-0e809dcb.js} +18 -18
- package/dist/{clock-icon_4.entry-b50cce70.cjs → clock-icon_4.entry-60d41dfd.cjs} +1 -1
- package/dist/close-icon.entry-1b5d25c5.cjs +1 -0
- package/dist/close-icon.entry-fef4f624.js +15 -0
- package/dist/constants-6da0ede7-151395ad.cjs +1 -0
- package/dist/{constants-f6e79ab7-24392f9e.js → constants-6da0ede7-49c32ba7.js} +24 -13
- package/dist/{copy-icon.entry-312ff230.js → copy-icon.entry-25699ab8.js} +7 -7
- package/dist/{copy-icon.entry-74f8ebcd.cjs → copy-icon.entry-ab6530e0.cjs} +1 -1
- package/dist/{delete-icon.entry-00cb3ee8.js → delete-icon.entry-802084f6.js} +5 -5
- package/dist/{delete-icon.entry-b61a6706.cjs → delete-icon.entry-e99e1f82.cjs} +1 -1
- package/dist/document-refresh-icon.entry-065a59f5.cjs +1 -0
- package/dist/document-refresh-icon.entry-d1604f53.js +15 -0
- package/dist/elements/index.d.ts +1 -0
- package/dist/{feedbackSync-547e51ee-bcaf691c.js → feedbackSync-c040f483-2b6476c4.js} +1 -1
- package/dist/{feedbackSync-547e51ee-9b572309.cjs → feedbackSync-c040f483-d6dd0560.cjs} +1 -1
- package/dist/{folder-icon.entry-c32a6e15.cjs → folder-icon.entry-351e61fc.cjs} +1 -1
- package/dist/{folder-icon.entry-60b3eda5.js → folder-icon.entry-6c0c09ed.js} +4 -4
- package/dist/forward-icon.entry-0ccfb600.js +15 -0
- package/dist/forward-icon.entry-6b7af9cd.cjs +1 -0
- package/dist/{globe-icon.entry-21a80591.cjs → globe-icon.entry-2b75b66b.cjs} +1 -1
- package/dist/{globe-icon.entry-397727e1.js → globe-icon.entry-5ddcd2cb.js} +4 -4
- package/dist/{google-logo-icon_4.entry-6ccf8379.js → google-logo-icon_4.entry-04174684.js} +354 -342
- package/dist/google-logo-icon_4.entry-a685ff91.cjs +1 -0
- package/dist/inbox-icon.entry-0ad18b3f.js +15 -0
- package/dist/inbox-icon.entry-425d1ded.cjs +1 -0
- package/dist/{index-594c8e7b.js → index-7e7c24f1.js} +1486 -1412
- package/dist/index-81719cc6.cjs +81 -0
- package/dist/{index.es-2d849a15-2d84f7a5.cjs → index.es-2b014ec7-0589e68a.cjs} +1 -1
- package/dist/{index.es-2d849a15-4eb8e180.js → index.es-2b014ec7-72557487.js} +1 -1
- package/dist/{info-icon_2.entry-e7b86847.cjs → info-icon_2.entry-7ec02802.cjs} +1 -1
- package/dist/{info-icon_2.entry-65e0023f.js → info-icon_2.entry-a6d0e842.js} +6 -6
- package/dist/{input-color-picker.entry-37d2fb66.js → input-color-picker.entry-d98d06ca.js} +3 -3
- package/dist/{input-color-picker.entry-aabfe638.cjs → input-color-picker.entry-ed9a1c07.cjs} +1 -1
- package/dist/input-component.entry-2e57b00e.cjs +1 -0
- package/dist/{input-component.entry-c07d92b1.js → input-component.entry-f3aa3419.js} +7 -7
- package/dist/{input-dropdown_2.entry-90c08f10.js → input-dropdown_2.entry-0d9c8475.js} +15 -15
- package/dist/input-dropdown_2.entry-6fc7df16.cjs +1 -0
- package/dist/italic-icon.entry-7a8712f2.cjs +1 -0
- package/dist/italic-icon.entry-d610e66f.js +15 -0
- package/dist/{multi-select-dropdown.entry-c143becc.js → multi-select-dropdown.entry-b31d9f11.js} +4 -4
- package/dist/multi-select-dropdown.entry-eaa268b4.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-4974ffe6.js → nylas-booked-event-card_12.entry-45514813.js} +395 -349
- package/dist/nylas-booked-event-card_12.entry-498de30a.cjs +1 -0
- package/dist/{nylas-form-card.entry-42e718e2.js → nylas-form-card.entry-67aec298.js} +3 -3
- package/dist/{nylas-form-card.entry-55d3909c.cjs → nylas-form-card.entry-fdb3c114.cjs} +1 -1
- package/dist/{nylas-if-state.entry-4de782b7.cjs → nylas-if-state.entry-76b38c9c.cjs} +1 -1
- package/dist/{nylas-if-state.entry-beef8af6.js → nylas-if-state.entry-ee7d92b0.js} +3 -3
- package/dist/{nylas-login.entry-1661cbd4.js → nylas-login.entry-265f9d0f.js} +3 -3
- package/dist/{nylas-login.entry-d6b80abe.cjs → nylas-login.entry-589e45d0.cjs} +1 -1
- package/dist/{nylas-provider.entry-1f140378.js → nylas-provider.entry-5605a3e0.js} +5 -5
- package/dist/{nylas-provider.entry-d5495e1a.cjs → nylas-provider.entry-cfb9627c.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-bebe4e7d.cjs → nylas-scheduler-editor.entry-6fdfb9b5.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-f184f72e.js → nylas-scheduler-editor.entry-b3e085b3.js} +30 -30
- package/dist/nylas-scheduling.entry-8cc5c353.cjs +1 -0
- package/dist/{nylas-scheduling.entry-c335ad21.js → nylas-scheduling.entry-bc00beba.js} +88 -79
- package/dist/nylas-time-window-picker.entry-a77c1d67.cjs +1 -0
- package/dist/nylas-time-window-picker.entry-c421303e.js +316 -0
- package/dist/{person-icon.entry-21946944.cjs → person-icon.entry-36b21e95.cjs} +1 -1
- package/dist/{person-icon.entry-f9ca9147.js → person-icon.entry-85660f98.js} +2 -2
- package/dist/{play-icon.entry-dbfed5e8.js → play-icon.entry-953b1bc8.js} +4 -4
- package/dist/{play-icon.entry-b27fcb18.cjs → play-icon.entry-c35ade8a.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +71 -70
- package/dist/{refresh-icon.entry-9d94a60b.cjs → refresh-icon.entry-038501ca.cjs} +1 -1
- package/dist/{refresh-icon.entry-7886041f.js → refresh-icon.entry-d8644f5d.js} +4 -4
- package/dist/{register-component-677d8d2b-0113766e.js → register-component-e9c10e19-099fb50f.js} +1 -1
- package/dist/{register-component-677d8d2b-4738af1d.cjs → register-component-e9c10e19-80bbc4dd.cjs} +1 -1
- package/dist/{reply-all-icon.entry-f0e0a5c4.cjs → reply-all-icon.entry-ead9d0ba.cjs} +1 -1
- package/dist/{reply-all-icon.entry-fdd0058e.js → reply-all-icon.entry-f209daeb.js} +5 -5
- package/dist/reply-icon.entry-b7f35ecd.cjs +1 -0
- package/dist/reply-icon.entry-d37a129b.js +15 -0
- package/dist/{scheduler-config-store-ed4a8dfd-a16d5c62.cjs → scheduler-config-store-ed4a8dfd-0d4408cf.cjs} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-012dcf85.js → scheduler-config-store-ed4a8dfd-35ec90c6.js} +1 -1
- package/dist/{scheduler-store-92eb8804-bc68a43a.js → scheduler-store-dc3a7958-7c73f5e2.js} +2 -2
- package/dist/{scheduler-store-92eb8804-c3deee73.cjs → scheduler-store-dc3a7958-99c6bdf6.cjs} +1 -1
- package/dist/sent-icon.entry-b662ef5b.cjs +1 -0
- package/dist/sent-icon.entry-ec433cec.js +15 -0
- package/dist/spam-icon.entry-3a553ae4.js +15 -0
- package/dist/spam-icon.entry-a79819fd.cjs +1 -0
- package/dist/{star-icon.entry-4dcae472.cjs → star-icon.entry-47ea44e7.cjs} +1 -1
- package/dist/{star-icon.entry-501083c1.js → star-icon.entry-9b22bb32.js} +4 -4
- package/dist/stop-icon.entry-1f7918b2.js +15 -0
- package/dist/{stop-icon.entry-ed949255.cjs → stop-icon.entry-26e2e633.cjs} +1 -1
- package/dist/{textarea-component.entry-efae9031.js → textarea-component.entry-6939d0fc.js} +5 -4
- package/dist/textarea-component.entry-da0a861e.cjs +1 -0
- package/dist/toggle-switch.entry-5ae5ba46.js +33 -0
- package/dist/toggle-switch.entry-c5fd3e33.cjs +1 -0
- package/dist/{translate-icon.entry-2591baf8.cjs → translate-icon.entry-72e0369e.cjs} +1 -1
- package/dist/{translate-icon.entry-676a4150.js → translate-icon.entry-8cffa646.js} +2 -2
- package/dist/trash-fill-icon.entry-815859c6.js +15 -0
- package/dist/trash-fill-icon.entry-8620c28f.cjs +1 -0
- package/dist/{underline-icon.entry-3513c5ef.js → underline-icon.entry-afd9c78b.js} +2 -2
- package/dist/{underline-icon.entry-6bf14476.cjs → underline-icon.entry-ba1a9e87.cjs} +1 -1
- package/dist/{warning-icon.entry-6e723597.js → warning-icon.entry-53441175.js} +7 -7
- package/dist/{warning-icon.entry-719a094d.cjs → warning-icon.entry-7cbede6b.cjs} +1 -1
- package/package.json +3 -3
- package/dist/add-circle-icon.entry-00c87903.js +0 -15
- package/dist/bold-icon.entry-d837c73d.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_53.entry-094bd4b9.cjs +0 -6
- package/dist/checkbox-component_3.entry-231b2254.cjs +0 -1
- package/dist/checkbox-component_3.entry-7270533c.js +0 -153
- package/dist/chevron-icon_3.entry-ead3d4c8.cjs +0 -1
- package/dist/close-icon.entry-04008446.cjs +0 -1
- package/dist/close-icon.entry-0a4105c9.js +0 -15
- package/dist/constants-f6e79ab7-23d7236b.cjs +0 -1
- package/dist/document-refresh-icon.entry-1c985b1e.js +0 -15
- package/dist/document-refresh-icon.entry-27ff5cb2.cjs +0 -1
- package/dist/forward-icon.entry-5f9a7639.js +0 -15
- package/dist/forward-icon.entry-8cd805dc.cjs +0 -1
- package/dist/google-logo-icon_4.entry-42e87368.cjs +0 -1
- package/dist/inbox-icon.entry-1e448b4b.js +0 -15
- package/dist/inbox-icon.entry-50605b1d.cjs +0 -1
- package/dist/index-cfb93df6.cjs +0 -81
- package/dist/input-component.entry-51f6da14.cjs +0 -1
- package/dist/input-dropdown_2.entry-20fb0552.cjs +0 -1
- package/dist/italic-icon.entry-8e5599ff.js +0 -15
- package/dist/italic-icon.entry-ee10a040.cjs +0 -1
- package/dist/multi-select-dropdown.entry-656d2791.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-669bb872.cjs +0 -1
- package/dist/nylas-scheduling.entry-21c04831.cjs +0 -1
- package/dist/nylas-time-window-picker_2.entry-9e0dd470.js +0 -336
- package/dist/nylas-time-window-picker_2.entry-a2651ee7.cjs +0 -1
- package/dist/reply-icon.entry-0a42fb2c.cjs +0 -1
- package/dist/reply-icon.entry-a8d2b0f8.js +0 -15
- package/dist/sent-icon.entry-c3f84a59.cjs +0 -1
- package/dist/sent-icon.entry-e047f087.js +0 -15
- package/dist/spam-icon.entry-55d01416.js +0 -15
- package/dist/spam-icon.entry-671eb165.cjs +0 -1
- package/dist/stop-icon.entry-130a28b2.js +0 -15
- package/dist/textarea-component.entry-65dd740a.cjs +0 -1
- package/dist/trash-fill-icon.entry-5b373be7.js +0 -15
- package/dist/trash-fill-icon.entry-c411d0e0.cjs +0 -1
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
import { r as v, h as s, c as k, d,
|
|
2
|
-
import { R as
|
|
3
|
-
import { D as
|
|
1
|
+
import { r as v, h as s, c as k, d, E as ba, H as E, g as L, i as c, G as be, I as oe, J as st, K as ot, t as Le, L as et, M as vt, O as ve, P as _t } from "./index-7e7c24f1.js";
|
|
2
|
+
import { R as T } from "./register-component-e9c10e19-099fb50f.js";
|
|
3
|
+
import { D as Ct, T as lt, F as rt, d as va, E as de, P as on, C as _a } from "./constants-6da0ede7-49c32ba7.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const Ca = ".sc-calendar-agenda-fill-icon-h{display:flex}", xa = Ca, wa = class {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
v(this, e), this.width = "20", this.height = "20";
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return s("svg", { key: "
|
|
11
|
+
return s("svg", { key: "5759718f02156a479af57330fbe4b851b4eb2b5c", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "1a1ace8491669a80d5525d5e2cc6567a3a586487", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM11 3.5C11 3.25454 10.8231 3.05039 10.5899 3.00806L10.5 3H3.5L3.41012 3.00806C3.17688 3.05039 3 3.25454 3 3.5C3 3.74546 3.17688 3.94961 3.41012 3.99194L3.5 4H10.5L10.5899 3.99194C10.8231 3.94961 11 3.74546 11 3.5ZM11 7C11 6.75454 10.8231 6.55039 10.5899 6.50806L10.5 6.5H3.5L3.41012 6.50806C3.17688 6.55039 3 6.75454 3 7C3 7.24546 3.17688 7.44961 3.41012 7.49194L3.5 7.5H10.5L10.5899 7.49194C10.8231 7.44961 11 7.24546 11 7ZM11 10.5C11 10.2545 10.8231 10.0504 10.5899 10.0081L10.5 10H3.5L3.41012 10.0081C3.17688 10.0504 3 10.2545 3 10.5C3 10.7455 3.17688 10.9496 3.41012 10.9919L3.5 11H10.5L10.5899 10.9919C10.8231 10.9496 11 10.7455 11 10.5Z", fill: "currentColor" }));
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
const
|
|
14
|
+
wa.style = xa;
|
|
15
|
+
const ka = ".sc-calendar-agenda-icon-h{display:flex}", Ea = ka, La = class {
|
|
16
16
|
constructor(e) {
|
|
17
17
|
v(this, e), this.width = "20", this.height = "20";
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return s("svg", { key: "
|
|
20
|
+
return s("svg", { key: "99440276a0cfd044f3986d55e8f8a067d96e7b45", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "14b34eb6b85385e6695be225170035c94440e0e6", d: "M14 11.5C14 12.8807 12.8807 14 11.5 14H2.5C1.11929 14 0 12.8807 0 11.5V2.5C0 1.11929 1.11929 0 2.5 0H11.5C12.8807 0 14 1.11929 14 2.5V11.5ZM13 11.5V2.5C13 1.67157 12.3284 1 11.5 1H2.5C1.67157 1 1 1.67157 1 2.5V11.5C1 12.3284 1.67157 13 2.5 13H11.5C12.3284 13 13 12.3284 13 11.5ZM11 3.5C11 3.74546 10.8231 3.94961 10.5899 3.99194L10.5 4H3.5C3.22386 4 3 3.77614 3 3.5C3 3.25454 3.17688 3.05039 3.41012 3.00806L3.5 3H10.5C10.7761 3 11 3.22386 11 3.5ZM11 7C11 7.24546 10.8231 7.44961 10.5899 7.49194L10.5 7.5H3.5C3.22386 7.5 3 7.27614 3 7C3 6.75454 3.17688 6.55039 3.41012 6.50806L3.5 6.5H10.5C10.7761 6.5 11 6.72386 11 7ZM11 10.5C11 10.7455 10.8231 10.9496 10.5899 10.9919L10.5 11H3.5C3.22386 11 3 10.7761 3 10.5C3 10.2545 3.17688 10.0504 3.41012 10.0081L3.5 10H10.5C10.7761 10 11 10.2239 11 10.5Z", fill: "currentColor" }));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
const
|
|
23
|
+
La.style = Ea;
|
|
24
|
+
const Ta = ".sc-calendar-info-icon-h{display:flex}", Ha = Ta, Sa = class {
|
|
25
25
|
constructor(e) {
|
|
26
26
|
v(this, e), this.width = "20", this.height = "20";
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return s("svg", { key: "
|
|
29
|
+
return s("svg", { key: "355aaa054f91d62cabe4809b06a2cb13b703f1af", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "a606b8290df9358b300c297053d153bb17993544", d: "M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z", fill: "currentColor" }));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
const
|
|
32
|
+
Sa.style = Ha;
|
|
33
|
+
const Oa = ".sc-calendar-patterns-icon-h{display:flex}", Da = Oa, Ia = class {
|
|
34
34
|
constructor(e) {
|
|
35
35
|
v(this, e), this.width = "20", this.height = "20";
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return s("svg", { key: "
|
|
38
|
+
return s("svg", { key: "b56e61f7305420a0841303a0c01e85e27f405df2", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "ae51551c2eeace8dc4892fb66339c8982c42a909", d: "M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z", fill: "currentColor" }));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
const
|
|
41
|
+
Ia.style = Da;
|
|
42
|
+
const $a = ".sc-checkmark-icon-h{display:flex}", Fa = $a, Pa = class {
|
|
43
43
|
constructor(e) {
|
|
44
44
|
v(this, e), this.width = "18", this.height = "14";
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return s("svg", { key: "
|
|
47
|
+
return s("svg", { key: "8233c5e105cfc44ebcd398aa7f12fb30caa0b9a4", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "85876f6029721c3e04778159e1813828feb37cc8", d: "M1.53033 7.46967C1.23744 7.17678 0.762563 7.17678 0.46967 7.46967C0.176777 7.76256 0.176777 8.23744 0.46967 8.53033L4.96967 13.0303C5.26256 13.3232 5.73744 13.3232 6.03033 13.0303L17.0303 2.03033C17.3232 1.73744 17.3232 1.26256 17.0303 0.96967C16.7374 0.676777 16.2626 0.676777 15.9697 0.96967L5.5 11.4393L1.53033 7.46967Z", fill: "#293056" }));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
const
|
|
50
|
+
Pa.style = Fa;
|
|
51
|
+
const Na = ".sc-dragable-icon-h{display:flex}", Aa = Na, Ra = class {
|
|
52
52
|
constructor(e) {
|
|
53
53
|
v(this, e), this.width = "20", this.height = "20";
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return s("svg", { key: "
|
|
56
|
+
return s("svg", { key: "6f72c4338454f982250cbb20be1f84e495bfe830", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "dd6495954100df5ffeb90cf143ef246a36082a4e", d: "M15.5 18C16.3284 18 17 18.6716 17 19.5C17 20.3284 16.3284 21 15.5 21C14.6716 21 14 20.3284 14 19.5C14 18.6716 14.6716 18 15.5 18ZM8.5 18C9.32843 18 10 18.6716 10 19.5C10 20.3284 9.32843 21 8.5 21C7.67157 21 7 20.3284 7 19.5C7 18.6716 7.67157 18 8.5 18ZM15.5 11C16.3284 11 17 11.6716 17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11ZM8.5 11C9.32843 11 10 11.6716 10 12.5C10 13.3284 9.32843 14 8.5 14C7.67157 14 7 13.3284 7 12.5C7 11.6716 7.67157 11 8.5 11ZM15.5 4C16.3284 4 17 4.67157 17 5.5C17 6.32843 16.3284 7 15.5 7C14.6716 7 14 6.32843 14 5.5C14 4.67157 14.6716 4 15.5 4ZM8.5 4C9.32843 4 10 4.67157 10 5.5C10 6.32843 9.32843 7 8.5 7C7.67157 7 7 6.32843 7 5.5C7 4.67157 7.67157 4 8.5 4Z", fill: "currentColor" }));
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
const
|
|
59
|
+
Ra.style = Aa;
|
|
60
|
+
const Ma = ".sc-envelope-fill-icon-h{display:flex}", za = Ma, Ba = class {
|
|
61
61
|
constructor(e) {
|
|
62
62
|
v(this, e), this.width = "16", this.height = "13";
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return s("svg", { key: "
|
|
65
|
+
return s("svg", { key: "d1f00016a1594292753a7994946ee0d053caaae5", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "690383d263156c9611a9c051b4cfae9b8ccd8afa", d: "M16.0001 3.373V10.5C16.0001 11.8807 14.8808 13 13.5001 13H2.50008C1.11937 13 0 11.8807 0 10.5V3.373L7.74657 7.93097C7.90304 8.02301 8.09711 8.02301 8.25359 7.93097L16.0001 3.373ZM13.5001 0C14.7871 0 15.847 0.972604 15.9849 2.22293L8.00008 6.91991L0.0152595 2.22293C0.153116 0.972604 1.21302 0 2.50008 0H13.5001Z", fill: "currentColor" }));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
const
|
|
68
|
+
Ba.style = za;
|
|
69
|
+
const ja = ".sc-envelope-icon-h{display:flex}", Wa = ja, Ua = class {
|
|
70
70
|
constructor(e) {
|
|
71
71
|
v(this, e), this.width = "16", this.height = "13";
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return s("svg", { key: "
|
|
74
|
+
return s("svg", { key: "37898f543ad2b3f5d7892406dc7831c2cbd8cfb5", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "070c032947758eeb0435125865e3a061cd4c5431", d: "M13.5 0C14.8807 0 16 1.11929 16 2.5V10.5C16 11.8807 14.8807 13 13.5 13H2.5C1.11929 13 0 11.8807 0 10.5V2.5C0 1.11929 1.11929 0 2.5 0H13.5ZM15 3.961L8.25351 7.93097C8.12311 8.00767 7.96661 8.02045 7.82751 7.96932L7.74649 7.93097L1 3.963V10.5C1 11.3284 1.67157 12 2.5 12H13.5C14.3284 12 15 11.3284 15 10.5V3.961ZM13.5 1H2.5C1.67157 1 1 1.67157 1 2.5V2.802L8 6.91991L15 2.801V2.5C15 1.67157 14.3284 1 13.5 1Z", fill: "currentColor" }));
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
const
|
|
77
|
+
Ua.style = Wa;
|
|
78
|
+
const Za = ".sc-eye-icon-h{display:flex}", qa = Za, Ja = class {
|
|
79
79
|
constructor(e) {
|
|
80
80
|
v(this, e), this.width = "17", this.height = "10";
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return s("svg", { key: "
|
|
83
|
+
return s("svg", { key: "ea5b35be57c2086e6a894cadb0fb516b7a12e0b5", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "0f7a91a6f0a6d79548068d609a82cf6c4781f3d1", d: "M1.75909 6.60214C2.44254 3.32689 5.29437 1 8.50002 1C11.7057 1 14.5574 3.32688 15.2409 6.60215C15.2974 6.87246 15.5622 7.04587 15.8325 6.98946C16.1029 6.93304 16.2763 6.66817 16.2199 6.39785C15.4425 2.67312 12.1934 0 8.50002 0C4.8066 0 1.55742 2.67311 0.780175 6.39786C0.723767 6.66818 0.897177 6.93305 1.1675 6.98946C1.43782 7.04587 1.70268 6.87246 1.75909 6.60214ZM8.5 3C6.567 3 5 4.567 5 6.5C5 8.433 6.567 10 8.5 10C10.433 10 12 8.433 12 6.5C12 4.567 10.433 3 8.5 3ZM6 6.5C6 5.11929 7.11929 4 8.5 4C9.88071 4 11 5.11929 11 6.5C11 7.88071 9.88071 9 8.5 9C7.11929 9 6 7.88071 6 6.5Z", fill: "currentColor" }));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
|
|
87
|
-
const
|
|
86
|
+
Ja.style = qa;
|
|
87
|
+
const Ga = ".sc-feedback-icon-h{display:flex}", Xa = Ga, Ya = class {
|
|
88
88
|
constructor(e) {
|
|
89
89
|
v(this, e), this.width = "11", this.height = "14";
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
return s("svg", { key: "
|
|
92
|
+
return s("svg", { key: "ef40692a62ba281844037b6d5d21bba7c320e1d3", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "4f9ec787e52251e3170d7947af30ce18704c5ea7", d: "M0.5 8.875C0.5 8.875 1.125 8.25 3 8.25C4.875 8.25 6.125 9.5 8 9.5C9.875 9.5 10.5 8.875 10.5 8.875V1.375C10.5 1.375 9.875 2 8 2C6.125 2 4.875 0.75 3 0.75C1.125 0.75 0.5 1.375 0.5 1.375V8.875ZM0.5 8.875V13.25", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
|
|
96
|
-
const
|
|
95
|
+
Ya.style = Xa;
|
|
96
|
+
const Ka = ".sc-flow-icon-h{display:flex}", Va = Ka, Qa = class {
|
|
97
97
|
constructor(e) {
|
|
98
98
|
v(this, e), this.width = "16", this.height = "12";
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return s("svg", { key: "
|
|
101
|
+
return s("svg", { key: "d50f1530846894a2cb9a40838d440327bfd91567", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "c098a5d441ed3ad409c7658f8d023d6fb55b8dc1", d: "M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z", fill: "currentColor" }));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
const
|
|
104
|
+
Qa.style = Va;
|
|
105
|
+
const ei = ".sc-google-meet-icon-h{display:flex}", ni = ei, ti = class {
|
|
106
106
|
constructor(e) {
|
|
107
107
|
v(this, e), this.width = "20", this.height = "20";
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return s("svg", { key: "
|
|
110
|
+
return s("svg", { key: "0aa498e61ebce2d78f63c403477b8d0a96bdfeee", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "8eccb2471e9b06ad96a831ae9fa0eba4e08a35b6", "clip-path": "url(#clip0_22_6251)" }, s("path", { key: "1d17ce009fca759d96661753ef0189a377dce539", d: "M11.3145 10.1036L13.2642 12.3321L15.8859 14.0076L16.343 10.1173L15.8859 6.31384L13.2139 7.78584L11.3145 10.1036Z", fill: "#00832D" }), s("path", { key: "3039bd6dfe965f2cd4426a9c5ed79c73bd72610a", d: "M0 13.6464V16.9607C0 17.7184 0.613714 18.3321 1.37143 18.3321H4.68571L5.37143 15.827L4.68571 13.6464L2.41143 12.9607L0 13.6464Z", fill: "#0066DA" }), s("path", { key: "f1d875b0d02f12605c2cb6aff6cad72a4fcc3814", d: "M4.68571 1.875L0 6.56071L2.41143 7.24643L4.68571 6.56071L5.36 4.40986L4.68571 1.875Z", fill: "#E94235" }), s("path", { key: "d6ae2d7d2c4ff0f16b0ff44b10b677527eb828ba", d: "M4.68571 6.56067H0V13.6464H4.68571V6.56067Z", fill: "#2684FC" }), s("path", { key: "4038bb56f14f8e3e0c341311d42c87be42654b4f", d: "M18.8798 3.85895L15.8855 6.31381V14.0075L18.8935 16.4738C19.3438 16.8258 20.0021 16.5047 20.0021 15.9321V4.38923C20.0021 3.80981 19.329 3.49209 18.8798 3.85895ZM11.3141 10.1035V13.6464H4.68555V18.3321H14.5141C15.2718 18.3321 15.8855 17.7184 15.8855 16.9607V14.0075L11.3141 10.1035Z", fill: "#00AC47" }), s("path", { key: "97552d1ad3a93113020c952639c09e78d0fb44eb", d: "M14.5141 1.875H4.68555V6.56071H11.3141V10.1036L15.8855 6.31614V3.24643C15.8855 2.48871 15.2718 1.875 14.5141 1.875Z", fill: "#FFBA00" })), s("defs", { key: "f65426e4705030b50f2a11f2b80c21e554b78b7f" }, s("clipPath", { key: "babd1df94171d7415934ce92cf1cc221def81c48", id: "clip0_22_6251" }, s("rect", { key: "d4c2b22875d26ace18561ba9c3bbf1e1b196864c", width: "20", height: "20", fill: "white" }))));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
var
|
|
113
|
+
ti.style = ni;
|
|
114
|
+
const ai = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.logo-container{display:flex;flex-direction:row;gap:2rem}.logo-container .input-container{flex:1}.logo-container .input-container span.error-message{color:var(--nylas-error)}.logo-container .logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.logo-container .logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}', ii = ai;
|
|
115
|
+
var si = function(e, n, t, a) {
|
|
116
116
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
117
117
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
118
118
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -124,7 +124,7 @@ var ai = function(e, n, t, a) {
|
|
|
124
124
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
125
125
|
return Reflect.metadata(e, n);
|
|
126
126
|
};
|
|
127
|
-
const
|
|
127
|
+
const xt = class {
|
|
128
128
|
constructor(e) {
|
|
129
129
|
v(this, e), this.nylasFormInputImageUrlInvalid = k(this, "nylasFormInputImageUrlInvalid", 7), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
|
|
130
130
|
}
|
|
@@ -164,20 +164,20 @@ const Ct = class {
|
|
|
164
164
|
n === this.name && this.setImage(t);
|
|
165
165
|
}
|
|
166
166
|
setImage(e) {
|
|
167
|
-
this.errorMessage = "",
|
|
167
|
+
this.errorMessage = "", ba(e).then(() => {
|
|
168
168
|
this.currentImageUrl = e, this.internals.setValidity({}), this.internals.setFormValue(this.currentImageUrl, this.name), this.valueChanged.emit({ value: this.currentImageUrl, name: this.name });
|
|
169
169
|
}).catch(() => {
|
|
170
170
|
this.errorMessage = "Invalid image URL.", this.nylasFormInputImageUrlInvalid.emit({ value: "Invalid image URL.", name: this.name }), typeof this.internals.setValidity == "function" && this.internals.setValidity({ customError: !0 }, "Invalid image URL.");
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
|
-
return s(
|
|
174
|
+
return s(E, { key: "e01a97c2dd134cfbeff27da1b62e80c4bc02b244" }, s("div", { key: "8dea44ec80247f01dfdfb81330e80b3e83c82b44", class: "logo-container" }, s("div", { key: "19680e2687aa6d112df3ef896321009fc1c05da5", class: "input-container" }, s("input-component", { key: "5d641e617499d4eb1186c0d4e51f0cad435bcfbb", name: this.name, id: this.name, type: "text", required: !1, exportparts: "ic_input: iiu__logo-input-textfield", defaultValue: this.imageUrl ?? "" }), this.errorMessage && s("span", { class: "error-message" }, this.errorMessage)), this.currentImageUrl && !this.errorMessage && s("div", { class: "logo" }, s("img", { src: this.currentImageUrl, alt: "Logo" }))));
|
|
175
175
|
}
|
|
176
176
|
static get formAssociated() {
|
|
177
177
|
return !0;
|
|
178
178
|
}
|
|
179
179
|
get host() {
|
|
180
|
-
return
|
|
180
|
+
return L(this);
|
|
181
181
|
}
|
|
182
182
|
static get watchers() {
|
|
183
183
|
return {
|
|
@@ -185,8 +185,8 @@ const Ct = class {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
si([
|
|
189
|
+
T({
|
|
190
190
|
name: "nylas-image-input",
|
|
191
191
|
eventToProps: {
|
|
192
192
|
valueChanged: async (e, n) => {
|
|
@@ -198,37 +198,37 @@ ai([
|
|
|
198
198
|
ln("design:type", Function),
|
|
199
199
|
ln("design:paramtypes", []),
|
|
200
200
|
ln("design:returntype", void 0)
|
|
201
|
-
],
|
|
202
|
-
|
|
203
|
-
const
|
|
201
|
+
], xt.prototype, "render", null);
|
|
202
|
+
xt.style = ii;
|
|
203
|
+
const oi = ".sc-location-icon-h{display:flex}", li = oi, ri = class {
|
|
204
204
|
constructor(e) {
|
|
205
205
|
v(this, e), this.width = "16", this.height = "18";
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return s("svg", { key: "
|
|
208
|
+
return s("svg", { key: "806ba5ca58e74afa4409ce67e2ed972640256b9f", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "14b6d40eb9640634513500b572d575b5dff684f5", d: "M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z", fill: "currentColor" }));
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
|
|
212
|
-
const
|
|
211
|
+
ri.style = li;
|
|
212
|
+
const di = ".sc-location-off-icon-h{display:flex}", ci = di, pi = class {
|
|
213
213
|
constructor(e) {
|
|
214
214
|
v(this, e), this.width = "16", this.height = "18";
|
|
215
215
|
}
|
|
216
216
|
render() {
|
|
217
|
-
return s("svg", { key: "
|
|
217
|
+
return s("svg", { key: "25a5c126749ce1f689e3d7c14f4cbcafa8611251", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "fa6f4d6b268b5e50d44b5f57b36a0aeebd8f4e66", d: "M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z", fill: "currentColor" }));
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
|
-
|
|
221
|
-
const
|
|
220
|
+
pi.style = ci;
|
|
221
|
+
const fi = ".sc-microsoft-teams-icon-h{display:flex}", ui = fi, mi = class {
|
|
222
222
|
constructor(e) {
|
|
223
223
|
v(this, e), this.width = "20", this.height = "20";
|
|
224
224
|
}
|
|
225
225
|
render() {
|
|
226
|
-
return s("svg", { key: "
|
|
226
|
+
return s("svg", { key: "2790e106a829bd6ba36b31339b4824adf7049971", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("g", { key: "53c34257182cf8f4ae8954046fa51ad1718b0083", "clip-path": "url(#clip0_22_6280)" }, s("path", { key: "303420389718ee9a125384282c28c87078ae1915", d: "M13.7109 7.60168H18.8769C19.365 7.60168 19.7607 7.99734 19.7607 8.4854V13.191C19.7607 14.9848 18.3065 16.4389 16.5127 16.4389H16.4974C14.7036 16.4391 13.2493 14.9852 13.249 13.1914C13.249 13.1913 13.249 13.1911 13.249 13.191V8.06355C13.249 7.80847 13.4558 7.60168 13.7109 7.60168Z", fill: "#5059C9" }), s("path", { key: "c1e4f1e3d78d2f5782e5a5d29a0ccaaffb783317", d: "M17.2024 6.67152C18.3583 6.67152 19.2954 5.73444 19.2954 4.5785C19.2954 3.42255 18.3583 2.48547 17.2024 2.48547C16.0465 2.48547 15.1094 3.42255 15.1094 4.5785C15.1094 5.73444 16.0465 6.67152 17.2024 6.67152Z", fill: "#5059C9" }), s("path", { key: "a6c1b7b283ce3d578bfc48406f52af3e34a84622", d: "M10.6912 6.67152C12.3609 6.67152 13.7145 5.31796 13.7145 3.64826C13.7145 1.97856 12.3609 0.625 10.6912 0.625C9.02153 0.625 7.66797 1.97856 7.66797 3.64826C7.66797 5.31796 9.02153 6.67152 10.6912 6.67152Z", fill: "#7B83EB" }), s("path", { key: "44dca02495dc53c8f0c026293dec2150e97574a2", d: "M14.7223 7.60168H6.19482C5.71257 7.61362 5.33108 8.01384 5.34227 8.49611V13.8631C5.27492 16.7571 7.56457 19.1588 10.4586 19.2296C13.3525 19.1588 15.6422 16.7571 15.5748 13.8631V8.49611C15.586 8.01384 15.2045 7.61362 14.7223 7.60168Z", fill: "#7B83EB" }), s("path", { key: "ecf9e952215914777c167a4a1325df588cdc090b", opacity: "0.1", d: "M10.9234 7.60168V15.1226C10.9211 15.4675 10.7121 15.7773 10.3932 15.9087C10.2917 15.9516 10.1825 15.9738 10.0723 15.9738H5.75134C5.69088 15.8203 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.9234Z", fill: "black" }), s("path", { key: "8a318eac9554c88ca8e1550231a73fe4de65f261", opacity: "0.2", d: "M10.4583 7.60168V15.5877C10.4583 15.698 10.4362 15.8071 10.3932 15.9087C10.2619 16.2276 9.95205 16.4366 9.60717 16.4389H5.96995C5.89088 16.2854 5.81646 16.1319 5.75134 15.9738C5.68623 15.8156 5.63507 15.6668 5.58855 15.5087C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), s("path", { key: "a5d540b91755f8d19c26dfdab57c39c534a9eff9", opacity: "0.2", d: "M10.4583 7.60168V14.6575C10.4548 15.1261 10.0758 15.5051 9.60716 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H10.4583Z", fill: "black" }), s("path", { key: "21b9038c075e8728d0b62183218d40bd31f8d72e", opacity: "0.2", d: "M9.9932 7.60168V14.6575C9.98965 15.1261 9.61065 15.5051 9.14203 15.5087H5.58855C5.42574 14.975 5.34267 14.4201 5.34204 13.8622V8.49471C5.33086 8.01321 5.71172 7.61362 6.1932 7.60168H9.9932Z", fill: "black" }), s("path", { key: "5b879da3b6b717710c8be72a739f9b01e57dc729", opacity: "0.1", d: "M10.9241 5.1971V6.66222C10.845 6.66687 10.7706 6.67152 10.6915 6.67152C10.6124 6.67152 10.538 6.66687 10.4589 6.66222C10.3019 6.6518 10.1462 6.62689 9.99382 6.5878C9.05195 6.36475 8.27382 5.70421 7.90079 4.81106C7.83661 4.66107 7.78678 4.50533 7.75195 4.34595H10.0729C10.5422 4.34772 10.9223 4.72775 10.9241 5.1971Z", fill: "black" }), s("path", { key: "a584fef7d6e2ba0315d8368983c5e154a7808845", opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), s("path", { key: "3802f77668d6ad6cba7e224bb2697cf1f5bf5586", opacity: "0.2", d: "M10.4585 5.66219V6.66219C10.3015 6.65177 10.1458 6.62686 9.99341 6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.60736C10.0767 4.81281 10.4567 5.19285 10.4585 5.66219Z", fill: "black" }), s("path", { key: "189a029917d8a97a05a9b2980aedda0c4a416af0", opacity: "0.2", d: "M9.99341 5.6622V6.58778C9.05155 6.36473 8.27342 5.70418 7.90039 4.81104H9.14225C9.6116 4.81282 9.99163 5.19286 9.99341 5.6622Z", fill: "black" }), s("path", { key: "984226515b4170402921b2fb5ff4c87fb01ff9a1", d: "M0.613296 4.81104H9.14074C9.61159 4.81104 9.99329 5.19274 9.99329 5.66359V14.191C9.99329 14.6619 9.61158 15.0436 9.14074 15.0436H0.613296C0.14244 15.0436 -0.239258 14.6619 -0.239258 14.191V5.66359C-0.239258 5.19274 0.142449 4.81104 0.613296 4.81104Z", fill: "url(#paint0_linear_22_6280)" }), s("path", { key: "7b905e71794975f0f91ae1297c3ba1ccf37d678e", d: "M7.12025 8.05659H5.4156V12.6985H4.32956V8.05659H2.63281V7.15613H7.12025V8.05659Z", fill: "white" })), s("defs", { key: "7a7dbfd86bc079c7b3647480081120c16e4ca132" }, s("linearGradient", { key: "7ac053a0b1d0ae22093669bc2fb4ad4948010b40", id: "paint0_linear_22_6280", x1: "1.53835", y1: "4.14486", x2: "8.2157", y2: "15.7098", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "7841d97791bd304b00fb99ca236fc7f6dd62cc8c", "stop-color": "#5A62C3" }), s("stop", { key: "daa6763f0dce8224205f873c6386dafb89ab4082", offset: "0.5", "stop-color": "#4D55BD" }), s("stop", { key: "780d7b9b0ac31342742a40400facd2fbfd05c046", offset: "1", "stop-color": "#3940AB" })), s("clipPath", { key: "02feab0d8cb837c530eab828b582fcb42a9f0e51", id: "clip0_22_6280" }, s("rect", { key: "c5bd5f57aad611636346570aac1649773a518616", width: "20", height: "20", fill: "white" }))));
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
var
|
|
229
|
+
mi.style = ui;
|
|
230
|
+
const hi = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__input_group label span.org-as-participant{width:max-content}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}', yi = hi;
|
|
231
|
+
var gi = function(e, n, t, a) {
|
|
232
232
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
233
233
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
234
234
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -240,7 +240,7 @@ var hi = function(e, n, t, a) {
|
|
|
240
240
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
241
241
|
return Reflect.metadata(e, n);
|
|
242
242
|
};
|
|
243
|
-
const
|
|
243
|
+
const wt = class {
|
|
244
244
|
constructor(e) {
|
|
245
245
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "participants", this.selectedConfiguration = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.participantOptions = void 0, this.eventParticipants = void 0, this.selectedLanguage = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = !1, this.error = "";
|
|
246
246
|
}
|
|
@@ -326,20 +326,20 @@ const xt = class {
|
|
|
326
326
|
return e.filter((a) => !n.some((o) => a.email === o.email)).map((a) => ({ value: a.email, label: a.email }));
|
|
327
327
|
}
|
|
328
328
|
render() {
|
|
329
|
-
return s(
|
|
329
|
+
return s(E, { key: "782e6706d189ce291e5f61dae9f0a0b004615830", part: "nap" }, s("nylas-form-card", { key: "736ad8d8a53b7c68bf0ca0a4ec9228ad2a461812" }, s("h3", { key: "c7e8d5059899a035f607f45d5cc5cc075485f2a2", slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, c.t("nylasAdditionalParticipants.headerTitle")), s("p", { key: "ca9b65707d77afe324298460bfa764bafc8f297b", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, c.t("nylasAdditionalParticipants.headerSubTitle")), s("div", { key: "7fab0c384f09a346b3c7510985667d6d96086f48", slot: "content", class: "nylas-additional-participants__content" }, s("div", { key: "0a0262d7d0c2ed17f9e95d2d8d44ed582a9f6b82" }, this.participants.map((e, n) => s("div", { class: "nylas-additional-participants__input_group", part: "nap__input_group" }, !e.is_organizer && s("label", null, `${c.t("nylasAdditionalParticipants.participant")} ${n}`), s("div", { part: "nap__input_wrapper", class: {
|
|
330
330
|
"nylas-additional-participants__input_wrapper": !0,
|
|
331
331
|
"nylas-additional-participants__input_wrapper_organizer": (e == null ? void 0 : e.is_organizer) === !0,
|
|
332
332
|
"nylas-additional-participants__input_wrapper_invalid": e.is_valid === !1,
|
|
333
333
|
error: e.is_valid === !1
|
|
334
334
|
} }, s("div", { class: { "nylas-additional-participants__input": !0, organizer: (e == null ? void 0 : e.is_organizer) === !0 }, part: "nap__input" }, e.is_organizer ? s("input-component", { class: "label-input", name: `${n}`, key: n, label: c.t("nylasAdditionalParticipants.organizer"), required: !1, readOnly: e.is_organizer, defaultValue: e.email }, this.isRoundRobinConfig && s("div", { class: "required-input", slot: "additional-input" }, s("input", { type: "checkbox", name: "organizer_participant", id: "organizer_participant", onClick: () => {
|
|
335
335
|
this.includeOrganizerAsParticipant = !this.includeOrganizerAsParticipant, this.updateFormValue();
|
|
336
|
-
}, checked: this.includeOrganizerAsParticipant }), s("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, s("span", { class: "org-as-participant", part: "nap__org-as-participant" }, c.t("nylasAdditionalParticipants.organizerAsParticipant")), s("tooltip-component", { id: "organizer_participant_tooltip" }, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, s("strong", null, c.t("nylasAdditionalParticipants.tooltip.includeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.includeOrganizerDesc"), " ", s("br", null), s("strong", null, c.t("nylasAdditionalParticipants.tooltip.excludeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.excludeOrganizerDesc")))))) : s("input-dropdown", { id: `${n}`, name: `${n}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !e.is_organizer && s("button", { onClick: () => this.removeParticipant(n), part: "nap__remove-participant" }, s("close-icon", null)))), !e.is_valid && s("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[n]))), s("p", { key: "
|
|
336
|
+
}, checked: this.includeOrganizerAsParticipant }), s("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, s("span", { class: "org-as-participant", part: "nap__org-as-participant" }, c.t("nylasAdditionalParticipants.organizerAsParticipant")), s("tooltip-component", { id: "organizer_participant_tooltip" }, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, s("strong", null, c.t("nylasAdditionalParticipants.tooltip.includeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.includeOrganizerDesc"), " ", s("br", null), s("strong", null, c.t("nylasAdditionalParticipants.tooltip.excludeOrganizer"), ":"), " ", c.t("nylasAdditionalParticipants.tooltip.excludeOrganizerDesc")))))) : s("input-dropdown", { id: `${n}`, name: `${n}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !e.is_organizer && s("button", { onClick: () => this.removeParticipant(n), part: "nap__remove-participant" }, s("close-icon", null)))), !e.is_valid && s("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[n]))), s("p", { key: "85c0bdc08af21285dffbe456b8be7d2a25ba21b7", class: "nylas-additional-participants__error", part: "nap__error" }, this.error)), s("button", { key: "5316cc15b8aabe8637cdebd45de384ab17d2524a", class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, s("add-circle-icon", { key: "5faa4b7d3703d05f0800dcd9f99caed829cbfda7" }), " ", s("span", { key: "2494d9b9efbf871ad6cbe4ad29685243ab7999d2" }, this.participants.length > 1 ? c.t("nylasAdditionalParticipants.addParticipant", { context: "next" }) : c.t("nylasAdditionalParticipants.addParticipant", { context: "first" }))))));
|
|
337
337
|
}
|
|
338
338
|
static get formAssociated() {
|
|
339
339
|
return !0;
|
|
340
340
|
}
|
|
341
341
|
get host() {
|
|
342
|
-
return
|
|
342
|
+
return L(this);
|
|
343
343
|
}
|
|
344
344
|
static get watchers() {
|
|
345
345
|
return {
|
|
@@ -350,8 +350,8 @@ const xt = class {
|
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
gi([
|
|
354
|
+
T({
|
|
355
355
|
name: "nylas-additional-participants",
|
|
356
356
|
stateToProps: /* @__PURE__ */ new Map([
|
|
357
357
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -366,10 +366,10 @@ hi([
|
|
|
366
366
|
rn("design:type", Function),
|
|
367
367
|
rn("design:paramtypes", []),
|
|
368
368
|
rn("design:returntype", void 0)
|
|
369
|
-
],
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
var
|
|
369
|
+
], wt.prototype, "render", null);
|
|
370
|
+
wt.style = yi;
|
|
371
|
+
const bi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', vi = bi;
|
|
372
|
+
var _i = function(e, n, t, a) {
|
|
373
373
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
374
374
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
375
375
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -381,7 +381,7 @@ var bi = function(e, n, t, a) {
|
|
|
381
381
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
382
382
|
return Reflect.metadata(e, n);
|
|
383
383
|
};
|
|
384
|
-
const
|
|
384
|
+
const kt = class {
|
|
385
385
|
constructor(e) {
|
|
386
386
|
v(this, e), this.valueChanged = k(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 = {
|
|
387
387
|
SUN: [],
|
|
@@ -398,7 +398,7 @@ const wt = class {
|
|
|
398
398
|
}
|
|
399
399
|
configChangedHandler(e) {
|
|
400
400
|
var a, o, i;
|
|
401
|
-
const n = ((o = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.default_open_hours) ??
|
|
401
|
+
const n = ((o = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : o.default_open_hours) ?? Ct, t = ((i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.timezone) || this.defaultTimezone;
|
|
402
402
|
this.timezone = this.name === "availability" ? t : this.defaultTimezone, this.openHours ? this.openHoursToSchedule(this.openHours) : n && this.openHoursToSchedule(n);
|
|
403
403
|
}
|
|
404
404
|
scheduleChanged(e, n) {
|
|
@@ -553,7 +553,7 @@ const wt = class {
|
|
|
553
553
|
let t = /* @__PURE__ */ new Map();
|
|
554
554
|
n.forEach((o, i) => {
|
|
555
555
|
e[o] && e[o].forEach((l) => {
|
|
556
|
-
const r =
|
|
556
|
+
const r = st(l.start), p = st(l.end), f = `${r}-${p}`;
|
|
557
557
|
if (!t.has(f))
|
|
558
558
|
t.set(f, { days: [i], start: r, end: p });
|
|
559
559
|
else {
|
|
@@ -573,11 +573,11 @@ const wt = class {
|
|
|
573
573
|
}), a;
|
|
574
574
|
}
|
|
575
575
|
render() {
|
|
576
|
-
const e = Object.keys(
|
|
577
|
-
label:
|
|
576
|
+
const e = Object.keys(lt).map((t) => ({
|
|
577
|
+
label: lt[t],
|
|
578
578
|
value: t
|
|
579
579
|
})), n = e.find((t) => t.value === this.timezone);
|
|
580
|
-
return s(
|
|
580
|
+
return s(E, { key: "5abccc8fc41d53ec43b3a5188a1bf198f02ff5f6" }, s("div", { key: "5426902949247a7790cc32298da713b1aa6b5afc", class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && s("div", { class: "header", part: "nap__header" }, s("h3", null, c.t("nylasAvailabilityPicker.headerTitle")), s("p", null, c.t("nylasAvailabilityPicker.headerSubTitle"), s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasAvailabilityPicker.tooltip.desc"))))), s("div", { key: "9f22e77acdc78e160b1a38b0d34d950fdc585935", class: "content" }, s("div", { key: "72243cd620ecfb6331597542d13c15ce8eb619f5", class: "select-timezone", part: "nap__select-timezone" }, s("h4", { key: "6a6fde98027af2d93e76eeb61035d10a824a7ddf", class: "sub-header" }, c.t("nylasAvailabilityPicker.selectTimezone")), (n == null ? void 0 : n.label) && s("select-dropdown", { name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, defaultSelectedOption: n }, s("span", { slot: "select-icon" }, s("globe-icon", { width: "20", height: "20" })))), s("div", { key: "f10bc99b9966e0c31559a4cd4d779c41bce9974d", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((t) => {
|
|
581
581
|
const a = t, o = this.schedule[t];
|
|
582
582
|
return s("div", { class: "availability-day" }, s("div", { class: "day", part: "nap__day" }, s("input", { type: "checkbox", name: a, id: a, checked: o.length > 0, onClick: () => {
|
|
583
583
|
o.length > 0 ? this.schedule[a] = [] : this.schedule[a] = [{ start: "09:00am", end: "05:00pm" }], this.schedule = { ...this.schedule };
|
|
@@ -592,7 +592,7 @@ const wt = class {
|
|
|
592
592
|
return !0;
|
|
593
593
|
}
|
|
594
594
|
get host() {
|
|
595
|
-
return
|
|
595
|
+
return L(this);
|
|
596
596
|
}
|
|
597
597
|
static get watchers() {
|
|
598
598
|
return {
|
|
@@ -603,8 +603,8 @@ const wt = class {
|
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
|
-
|
|
607
|
-
|
|
606
|
+
_i([
|
|
607
|
+
T({
|
|
608
608
|
name: "nylas-availability-picker",
|
|
609
609
|
stateToProps: /* @__PURE__ */ new Map([
|
|
610
610
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -615,10 +615,10 @@ bi([
|
|
|
615
615
|
dn("design:type", Function),
|
|
616
616
|
dn("design:paramtypes", []),
|
|
617
617
|
dn("design:returntype", void 0)
|
|
618
|
-
],
|
|
619
|
-
|
|
620
|
-
const
|
|
621
|
-
var
|
|
618
|
+
], kt.prototype, "render", null);
|
|
619
|
+
kt.style = vi;
|
|
620
|
+
const Ci = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size: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}', xi = Ci;
|
|
621
|
+
var wi = function(e, n, t, a) {
|
|
622
622
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
623
623
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
624
624
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -630,7 +630,7 @@ var Ci = function(e, n, t, a) {
|
|
|
630
630
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
631
631
|
return Reflect.metadata(e, n);
|
|
632
632
|
};
|
|
633
|
-
const
|
|
633
|
+
const Et = class {
|
|
634
634
|
constructor(e) {
|
|
635
635
|
v(this, e), this.valueChanged = k(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 = "";
|
|
636
636
|
}
|
|
@@ -690,13 +690,13 @@ const kt = class {
|
|
|
690
690
|
value: l.id,
|
|
691
691
|
label: l.name
|
|
692
692
|
}))) ?? [], t = (n == null ? void 0 : n.length) > 0 ? n : e || [], a = t.find((l) => l.value == this.defaultBookingCalendar);
|
|
693
|
-
return s(
|
|
693
|
+
return s(E, null, s("div", { class: "nylas-booking-calendar-picker", part: "nbcp" }, !this.hideHeader && s("div", { class: "header", part: "nbcp__header" }, s("h3", null, c.t("nylasBookingCalendarPicker.headerTitle")), s("p", null, c.t("nylasBookingCalendarPicker.headerSubTitle"), s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasBookingCalendarPicker.tooltip.desc"))))), t.length > 0 ? s("div", { class: "nylas-booking-calendar-picker__dropdown" }, s("select-dropdown", { name: "booking-calendar", options: [{ value: "", label: c.t("nylasBookingCalendarPicker.selectOptionLabel") }, ...t], withSearch: !1, required: this.expressFlow, emptyValue: c.t("nylasBookingCalendarPicker.selectOptionLabel"), errorMessage: c.t("nylasBookingCalendarPicker.selectCalendarErrorMessage"), exportparts: "sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content", defaultSelectedOption: a || null })) : s("div", { class: "nylas-booking-calendar-picker__loading" }, s("span", { class: "label" }, c.t("nylasBookingCalendarPicker.tooltip.desc"), " ", s("info-icon", null)), s("div", { class: "loading-button" }, s("span", null, c.t("loading"), "...")))));
|
|
694
694
|
}
|
|
695
695
|
static get formAssociated() {
|
|
696
696
|
return !0;
|
|
697
697
|
}
|
|
698
698
|
get host() {
|
|
699
|
-
return
|
|
699
|
+
return L(this);
|
|
700
700
|
}
|
|
701
701
|
static get watchers() {
|
|
702
702
|
return {
|
|
@@ -706,8 +706,8 @@ const kt = class {
|
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
|
-
|
|
710
|
-
|
|
709
|
+
wi([
|
|
710
|
+
T({
|
|
711
711
|
name: "nylas-booking-calendar-picker",
|
|
712
712
|
stateToProps: /* @__PURE__ */ new Map([
|
|
713
713
|
["schedulerConfig.calendars", "currentUserCalendars"],
|
|
@@ -725,10 +725,10 @@ Ci([
|
|
|
725
725
|
cn("design:type", Function),
|
|
726
726
|
cn("design:paramtypes", []),
|
|
727
727
|
cn("design:returntype", void 0)
|
|
728
|
-
],
|
|
729
|
-
|
|
730
|
-
const
|
|
731
|
-
var
|
|
728
|
+
], Et.prototype, "render", null);
|
|
729
|
+
Et.style = xi;
|
|
730
|
+
const ki = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-confirmation-redirect{width:inherit;display:flex;flex-direction:column}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label{display:flex;align-items:center;gap:4px;margin-bottom:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown input-component::part(ic__input_wrapper){margin-top:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.error-message{color:var(--nylas-error)}', Ei = ki;
|
|
731
|
+
var Li = function(e, n, t, a) {
|
|
732
732
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
733
733
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
734
734
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -740,7 +740,7 @@ var ki = function(e, n, t, a) {
|
|
|
740
740
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
741
741
|
return Reflect.metadata(e, n);
|
|
742
742
|
};
|
|
743
|
-
const
|
|
743
|
+
const Lt = class {
|
|
744
744
|
constructor(e) {
|
|
745
745
|
v(this, e), this.valueChanged = k(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;
|
|
746
746
|
}
|
|
@@ -786,7 +786,7 @@ const Et = class {
|
|
|
786
786
|
nylasFormInputBlurHandler(e) {
|
|
787
787
|
const { name: n, value: t } = e.detail;
|
|
788
788
|
if (this.currentRedirectUrl = t, this.acceptUrl && n === "confirmation-redirect") {
|
|
789
|
-
if (this.redirectUrlErrorMessage = "", !
|
|
789
|
+
if (this.redirectUrlErrorMessage = "", !ot(this.currentRedirectUrl)) {
|
|
790
790
|
this.internals.setValidity({ customError: !0 }, "Please enter a valid URL."), this.redirectUrlErrorMessage = "Please enter a valid URL.";
|
|
791
791
|
return;
|
|
792
792
|
}
|
|
@@ -799,7 +799,7 @@ const Et = class {
|
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
formSubmittedHandler(e) {
|
|
802
|
-
this.acceptUrl && !
|
|
802
|
+
this.acceptUrl && !ot(this.currentRedirectUrl) ? (this.internals.setValidity({ customError: !0 }, "Please enter a valid URL."), this.redirectUrlErrorMessage = "Please enter a valid URL.") : this.internals.setValidity({});
|
|
803
803
|
}
|
|
804
804
|
render() {
|
|
805
805
|
const e = [
|
|
@@ -812,13 +812,13 @@ const Et = class {
|
|
|
812
812
|
value: "custom"
|
|
813
813
|
}
|
|
814
814
|
];
|
|
815
|
-
return s(
|
|
815
|
+
return s(E, { key: "1d349a21c26f361242da2e8c00ff71f3ad0543ff" }, s("div", { key: "ab007e82dfc90a1bb4075efdcdc296c218b26a54", class: "nylas-booking-confirmation-redirect", part: "nbcr" }, e.length > 0 && s("div", { class: "nylas-booking-confirmation-redirect__dropdown" }, s("span", { class: "label" }, c.t("nylasBookingConfirmationRedirect.dropdownLabel"), s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasBookingConfirmationRedirect.tooltip.desc")))), this.componentLoaded && s("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 && s("div", null, s("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 && s("span", { class: "error-message" }, this.redirectUrlErrorMessage)))));
|
|
816
816
|
}
|
|
817
817
|
static get formAssociated() {
|
|
818
818
|
return !0;
|
|
819
819
|
}
|
|
820
820
|
get host() {
|
|
821
|
-
return
|
|
821
|
+
return L(this);
|
|
822
822
|
}
|
|
823
823
|
static get watchers() {
|
|
824
824
|
return {
|
|
@@ -828,8 +828,8 @@ const Et = class {
|
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
};
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
Li([
|
|
832
|
+
T({
|
|
833
833
|
name: "nylas-booking-confirmation-redirect",
|
|
834
834
|
stateToProps: /* @__PURE__ */ new Map([
|
|
835
835
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -846,10 +846,10 @@ ki([
|
|
|
846
846
|
pn("design:type", Function),
|
|
847
847
|
pn("design:paramtypes", []),
|
|
848
848
|
pn("design:returntype", void 0)
|
|
849
|
-
],
|
|
850
|
-
|
|
851
|
-
const
|
|
852
|
-
var
|
|
849
|
+
], Lt.prototype, "render", null);
|
|
850
|
+
Lt.style = Ei;
|
|
851
|
+
const Ti = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-confirmation-type{width:inherit;display:flex;flex-direction:column;margin-bottom:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-type .nylas-booking-confirmation-type__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Hi = Ti;
|
|
852
|
+
var Si = function(e, n, t, a) {
|
|
853
853
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
854
854
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
855
855
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -861,7 +861,7 @@ var Ti = function(e, n, t, a) {
|
|
|
861
861
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
862
862
|
return Reflect.metadata(e, n);
|
|
863
863
|
};
|
|
864
|
-
const
|
|
864
|
+
const Tt = class {
|
|
865
865
|
constructor(e) {
|
|
866
866
|
var n, t;
|
|
867
867
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-type", this.bookingType = "booking", this.showComponent = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.booking_type) !== "custom-confirmation", this.selectedLanguage = void 0, this.selectedBookingType = void 0, this.showDropdown = void 0;
|
|
@@ -919,13 +919,13 @@ const Lt = class {
|
|
|
919
919
|
value: "organizer-confirmation"
|
|
920
920
|
}
|
|
921
921
|
];
|
|
922
|
-
return s(
|
|
922
|
+
return s(E, { key: "5e7fee965bee0238e0b5649f9382f3f725a49b9f" }, this.showDropdown && s("div", { class: "nylas-booking-confirmation-type", part: "nbct" }, e.length > 0 && s("div", { class: "nylas-booking-confirmation-type__dropdown" }, s("span", { class: "label" }, c.t("nylasBookingConfirmationType.dropdownLabel"), s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasBookingConfirmationType.tooltip.desc")))), this.selectedBookingType && s("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) }))));
|
|
923
923
|
}
|
|
924
924
|
static get formAssociated() {
|
|
925
925
|
return !0;
|
|
926
926
|
}
|
|
927
927
|
get host() {
|
|
928
|
-
return
|
|
928
|
+
return L(this);
|
|
929
929
|
}
|
|
930
930
|
static get watchers() {
|
|
931
931
|
return {
|
|
@@ -935,8 +935,8 @@ const Lt = class {
|
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
|
-
|
|
939
|
-
|
|
938
|
+
Si([
|
|
939
|
+
T({
|
|
940
940
|
name: "nylas-booking-confirmation-type",
|
|
941
941
|
stateToProps: /* @__PURE__ */ new Map([
|
|
942
942
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -953,15 +953,15 @@ Ti([
|
|
|
953
953
|
fn("design:type", Function),
|
|
954
954
|
fn("design:paramtypes", []),
|
|
955
955
|
fn("design:returntype", void 0)
|
|
956
|
-
],
|
|
957
|
-
|
|
956
|
+
], Tt.prototype, "render", null);
|
|
957
|
+
Tt.style = Hi;
|
|
958
958
|
/**!
|
|
959
959
|
* Sortable 1.15.2
|
|
960
960
|
* @author RubaXa <trash@rubaxa.org>
|
|
961
961
|
* @author owenm <owen23355@gmail.com>
|
|
962
962
|
* @license MIT
|
|
963
963
|
*/
|
|
964
|
-
function
|
|
964
|
+
function dt(e, n) {
|
|
965
965
|
var t = Object.keys(e);
|
|
966
966
|
if (Object.getOwnPropertySymbols) {
|
|
967
967
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -974,9 +974,9 @@ function rt(e, n) {
|
|
|
974
974
|
function Q(e) {
|
|
975
975
|
for (var n = 1; n < arguments.length; n++) {
|
|
976
976
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
977
|
-
n % 2 ?
|
|
978
|
-
|
|
979
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
977
|
+
n % 2 ? dt(Object(t), !0).forEach(function(a) {
|
|
978
|
+
Oi(e, a, t[a]);
|
|
979
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : dt(Object(t)).forEach(function(a) {
|
|
980
980
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
981
981
|
});
|
|
982
982
|
}
|
|
@@ -990,7 +990,7 @@ function Ge(e) {
|
|
|
990
990
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
991
991
|
}, Ge(e);
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function Oi(e, n, t) {
|
|
994
994
|
return n in e ? Object.defineProperty(e, n, {
|
|
995
995
|
value: t,
|
|
996
996
|
enumerable: !0,
|
|
@@ -1008,7 +1008,7 @@ function te() {
|
|
|
1008
1008
|
return e;
|
|
1009
1009
|
}, te.apply(this, arguments);
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Di(e, n) {
|
|
1012
1012
|
if (e == null)
|
|
1013
1013
|
return {};
|
|
1014
1014
|
var t = {}, a = Object.keys(e), o, i;
|
|
@@ -1016,10 +1016,10 @@ function Si(e, n) {
|
|
|
1016
1016
|
o = a[i], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
|
|
1017
1017
|
return t;
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function Ii(e, n) {
|
|
1020
1020
|
if (e == null)
|
|
1021
1021
|
return {};
|
|
1022
|
-
var t =
|
|
1022
|
+
var t = Di(e, n), a, o;
|
|
1023
1023
|
if (Object.getOwnPropertySymbols) {
|
|
1024
1024
|
var i = Object.getOwnPropertySymbols(e);
|
|
1025
1025
|
for (o = 0; o < i.length; o++)
|
|
@@ -1027,20 +1027,20 @@ function Oi(e, n) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
return t;
|
|
1029
1029
|
}
|
|
1030
|
-
var
|
|
1030
|
+
var $i = "1.15.2";
|
|
1031
1031
|
function ne(e) {
|
|
1032
1032
|
if (typeof window < "u" && window.navigator)
|
|
1033
1033
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1034
1034
|
}
|
|
1035
|
-
var ae = ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ne(/Edge/i),
|
|
1035
|
+
var ae = ne(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ne(/Edge/i), ct = ne(/firefox/i), Pe = ne(/safari/i) && !ne(/chrome/i) && !ne(/android/i), Ht = ne(/iP(ad|od|hone)/i), St = ne(/chrome/i) && ne(/android/i), Ot = {
|
|
1036
1036
|
capture: !1,
|
|
1037
1037
|
passive: !1
|
|
1038
1038
|
};
|
|
1039
1039
|
function O(e, n, t) {
|
|
1040
|
-
e.addEventListener(n, t, !ae &&
|
|
1040
|
+
e.addEventListener(n, t, !ae && Ot);
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1043
|
-
e.removeEventListener(n, t, !ae &&
|
|
1042
|
+
function H(e, n, t) {
|
|
1043
|
+
e.removeEventListener(n, t, !ae && Ot);
|
|
1044
1044
|
}
|
|
1045
1045
|
function Qe(e, n) {
|
|
1046
1046
|
if (n) {
|
|
@@ -1058,7 +1058,7 @@ function Qe(e, n) {
|
|
|
1058
1058
|
return !1;
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function Fi(e) {
|
|
1062
1062
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1063
1063
|
}
|
|
1064
1064
|
function Y(e, n, t, a) {
|
|
@@ -1069,18 +1069,18 @@ function Y(e, n, t, a) {
|
|
|
1069
1069
|
return e;
|
|
1070
1070
|
if (e === t)
|
|
1071
1071
|
break;
|
|
1072
|
-
} while (e =
|
|
1072
|
+
} while (e = Fi(e));
|
|
1073
1073
|
}
|
|
1074
1074
|
return null;
|
|
1075
1075
|
}
|
|
1076
|
-
var
|
|
1076
|
+
var pt = /\s+/g;
|
|
1077
1077
|
function U(e, n, t) {
|
|
1078
1078
|
if (e && n)
|
|
1079
1079
|
if (e.classList)
|
|
1080
1080
|
e.classList[t ? "add" : "remove"](n);
|
|
1081
1081
|
else {
|
|
1082
|
-
var a = (" " + e.className + " ").replace(
|
|
1083
|
-
e.className = (a + (t ? " " + n : "")).replace(
|
|
1082
|
+
var a = (" " + e.className + " ").replace(pt, " ").replace(" " + n + " ", " ");
|
|
1083
|
+
e.className = (a + (t ? " " + n : "")).replace(pt, " ");
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
function C(e, n, t) {
|
|
@@ -1103,7 +1103,7 @@ function ke(e, n) {
|
|
|
1103
1103
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1104
1104
|
return o && new o(t);
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function Dt(e, n, t) {
|
|
1107
1107
|
if (e) {
|
|
1108
1108
|
var a = e.getElementsByTagName(n), o = 0, i = a.length;
|
|
1109
1109
|
if (t)
|
|
@@ -1142,7 +1142,7 @@ function N(e, n, t, a, o) {
|
|
|
1142
1142
|
};
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function ft(e, n, t) {
|
|
1146
1146
|
for (var a = ce(e, !0), o = N(e)[n]; a; ) {
|
|
1147
1147
|
var i = N(a)[t], l = void 0;
|
|
1148
1148
|
if (t === "top" || t === "left" ? l = o >= i : l = o <= i, !l)
|
|
@@ -1164,7 +1164,7 @@ function Ee(e, n, t, a) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
return null;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function nt(e, n) {
|
|
1168
1168
|
for (var t = e.lastElementChild; t && (t === x.ghost || C(t, "display") === "none" || n && !Qe(t, n)); )
|
|
1169
1169
|
t = t.previousElementSibling;
|
|
1170
1170
|
return t || null;
|
|
@@ -1177,7 +1177,7 @@ function J(e, n) {
|
|
|
1177
1177
|
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== x.clone && (!n || Qe(e, n)) && t++;
|
|
1178
1178
|
return t;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function ut(e) {
|
|
1181
1181
|
var n = 0, t = 0, a = V();
|
|
1182
1182
|
if (e)
|
|
1183
1183
|
do {
|
|
@@ -1186,7 +1186,7 @@ function ft(e) {
|
|
|
1186
1186
|
} while (e !== a && (e = e.parentNode));
|
|
1187
1187
|
return [n, t];
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function Pi(e, n) {
|
|
1190
1190
|
for (var t in e)
|
|
1191
1191
|
if (e.hasOwnProperty(t)) {
|
|
1192
1192
|
for (var a in n)
|
|
@@ -1213,7 +1213,7 @@ function ce(e, n) {
|
|
|
1213
1213
|
while (t = t.parentNode);
|
|
1214
1214
|
return V();
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Ni(e, n) {
|
|
1217
1217
|
if (e && n)
|
|
1218
1218
|
for (var t in n)
|
|
1219
1219
|
n.hasOwnProperty(t) && (e[t] = n[t]);
|
|
@@ -1223,7 +1223,7 @@ function un(e, n) {
|
|
|
1223
1223
|
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);
|
|
1224
1224
|
}
|
|
1225
1225
|
var Ne;
|
|
1226
|
-
function
|
|
1226
|
+
function It(e, n) {
|
|
1227
1227
|
return function() {
|
|
1228
1228
|
if (!Ne) {
|
|
1229
1229
|
var t = arguments, a = this;
|
|
@@ -1233,17 +1233,17 @@ function Dt(e, n) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function Ai() {
|
|
1237
1237
|
clearTimeout(Ne), Ne = void 0;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function $t(e, n, t) {
|
|
1240
1240
|
e.scrollLeft += n, e.scrollTop += t;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Ft(e) {
|
|
1243
1243
|
var n = window.Polymer, t = window.jQuery || window.Zepto;
|
|
1244
1244
|
return n && n.dom ? n.dom(e).cloneNode(!0) : t ? t(e).clone(!0)[0] : e.cloneNode(!0);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Pt(e, n, t) {
|
|
1247
1247
|
var a = {};
|
|
1248
1248
|
return Array.from(e.children).forEach(function(o) {
|
|
1249
1249
|
var i, l, r, p;
|
|
@@ -1254,7 +1254,7 @@ function Ft(e, n, t) {
|
|
|
1254
1254
|
}), a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
1255
1255
|
}
|
|
1256
1256
|
var q = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1257
|
-
function
|
|
1257
|
+
function Ri() {
|
|
1258
1258
|
var e = [], n;
|
|
1259
1259
|
return {
|
|
1260
1260
|
captureAnimationState: function() {
|
|
@@ -1280,7 +1280,7 @@ function Ni() {
|
|
|
1280
1280
|
e.push(a);
|
|
1281
1281
|
},
|
|
1282
1282
|
removeAnimationState: function(a) {
|
|
1283
|
-
e.splice(
|
|
1283
|
+
e.splice(Pi(e, {
|
|
1284
1284
|
target: a
|
|
1285
1285
|
}), 1);
|
|
1286
1286
|
},
|
|
@@ -1294,7 +1294,7 @@ function Ni() {
|
|
|
1294
1294
|
e.forEach(function(r) {
|
|
1295
1295
|
var p = 0, f = r.target, m = f.fromRect, u = N(f), h = f.prevFromRect, b = f.prevToRect, g = r.rect, _ = ke(f, !0);
|
|
1296
1296
|
_ && (u.top -= _.f, u.left -= _.e), f.toRect = u, f.thisAnimationDuration && un(h, u) && !un(m, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1297
|
-
(g.top - u.top) / (g.left - u.left) === (m.top - u.top) / (m.left - u.left) && (p =
|
|
1297
|
+
(g.top - u.top) / (g.left - u.left) === (m.top - u.top) / (m.left - u.left) && (p = zi(g, h, b, o.options)), un(u, m) || (f.prevFromRect = m, f.prevToRect = u, p || (p = o.options.animation), o.animate(f, g, u, p)), p && (i = !0, l = Math.max(l, p), clearTimeout(f.animationResetTimer), f.animationResetTimer = setTimeout(function() {
|
|
1298
1298
|
f.animationTime = 0, f.prevFromRect = null, f.fromRect = null, f.prevToRect = null, f.thisAnimationDuration = null;
|
|
1299
1299
|
}, p), f.thisAnimationDuration = p);
|
|
1300
1300
|
}), clearTimeout(n), i ? n = setTimeout(function() {
|
|
@@ -1305,17 +1305,17 @@ function Ni() {
|
|
|
1305
1305
|
if (l) {
|
|
1306
1306
|
C(a, "transition", ""), C(a, "transform", "");
|
|
1307
1307
|
var r = ke(this.el), p = r && r.a, f = r && r.d, m = (o.left - i.left) / (p || 1), u = (o.top - i.top) / (f || 1);
|
|
1308
|
-
a.animatingX = !!m, a.animatingY = !!u, C(a, "transform", "translate3d(" + m + "px," + u + "px,0)"), this.forRepaintDummy =
|
|
1308
|
+
a.animatingX = !!m, a.animatingY = !!u, C(a, "transform", "translate3d(" + m + "px," + u + "px,0)"), this.forRepaintDummy = Mi(a), C(a, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), C(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
|
|
1309
1309
|
C(a, "transition", ""), C(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
|
|
1310
1310
|
}, l);
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
};
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Mi(e) {
|
|
1316
1316
|
return e.offsetWidth;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function zi(e, n, t, a) {
|
|
1319
1319
|
return Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) * a.animation;
|
|
1320
1320
|
}
|
|
1321
1321
|
var _e = [], mn = {
|
|
@@ -1370,7 +1370,7 @@ var _e = [], mn = {
|
|
|
1370
1370
|
}), o;
|
|
1371
1371
|
}
|
|
1372
1372
|
};
|
|
1373
|
-
function
|
|
1373
|
+
function Bi(e) {
|
|
1374
1374
|
var n = e.sortable, t = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, l = e.toEl, r = e.fromEl, p = e.oldIndex, f = e.newIndex, m = e.oldDraggableIndex, u = e.newDraggableIndex, h = e.originalEvent, b = e.putSortable, g = e.extraEventProperties;
|
|
1375
1375
|
if (n = n || t && t[q], !!n) {
|
|
1376
1376
|
var _, S = n.options, $ = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
@@ -1378,14 +1378,14 @@ function Mi(e) {
|
|
|
1378
1378
|
bubbles: !0,
|
|
1379
1379
|
cancelable: !0
|
|
1380
1380
|
}) : (_ = document.createEvent("Event"), _.initEvent(a, !0, !0)), _.to = l || t, _.from = r || t, _.item = o || t, _.clone = i, _.oldIndex = p, _.newIndex = f, _.oldDraggableIndex = m, _.newDraggableIndex = u, _.originalEvent = h, _.pullMode = b ? b.lastPutMode : void 0;
|
|
1381
|
-
var
|
|
1382
|
-
for (var G in
|
|
1383
|
-
_[G] =
|
|
1381
|
+
var A = Q(Q({}, g), Be.getEventProperties(a, n));
|
|
1382
|
+
for (var G in A)
|
|
1383
|
+
_[G] = A[G];
|
|
1384
1384
|
t && t.dispatchEvent(_), S[$] && S[$].call(n, _);
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
var
|
|
1388
|
-
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i =
|
|
1387
|
+
var ji = ["evt"], B = function(n, t) {
|
|
1388
|
+
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, i = Ii(a, ji);
|
|
1389
1389
|
Be.pluginEvent.bind(x)(n, t, Q({
|
|
1390
1390
|
dragEl: y,
|
|
1391
1391
|
parentEl: F,
|
|
@@ -1396,15 +1396,15 @@ var zi = ["evt"], B = function(n, t) {
|
|
|
1396
1396
|
cloneEl: I,
|
|
1397
1397
|
cloneHidden: re,
|
|
1398
1398
|
dragStarted: Ie,
|
|
1399
|
-
putSortable:
|
|
1399
|
+
putSortable: R,
|
|
1400
1400
|
activeSortable: x.active,
|
|
1401
1401
|
originalEvent: o,
|
|
1402
1402
|
oldIndex: we,
|
|
1403
|
-
oldDraggableIndex:
|
|
1403
|
+
oldDraggableIndex: Ae,
|
|
1404
1404
|
newIndex: Z,
|
|
1405
1405
|
newDraggableIndex: le,
|
|
1406
|
-
hideGhostForTarget:
|
|
1407
|
-
unhideGhostForTarget:
|
|
1406
|
+
hideGhostForTarget: Mt,
|
|
1407
|
+
unhideGhostForTarget: zt,
|
|
1408
1408
|
cloneNowHidden: function() {
|
|
1409
1409
|
re = !0;
|
|
1410
1410
|
},
|
|
@@ -1421,25 +1421,25 @@ var zi = ["evt"], B = function(n, t) {
|
|
|
1421
1421
|
}, i));
|
|
1422
1422
|
};
|
|
1423
1423
|
function z(e) {
|
|
1424
|
-
|
|
1425
|
-
putSortable:
|
|
1424
|
+
Bi(Q({
|
|
1425
|
+
putSortable: R,
|
|
1426
1426
|
cloneEl: I,
|
|
1427
1427
|
targetEl: y,
|
|
1428
1428
|
rootEl: D,
|
|
1429
1429
|
oldIndex: we,
|
|
1430
|
-
oldDraggableIndex:
|
|
1430
|
+
oldDraggableIndex: Ae,
|
|
1431
1431
|
newIndex: Z,
|
|
1432
1432
|
newDraggableIndex: le
|
|
1433
1433
|
}, e));
|
|
1434
1434
|
}
|
|
1435
|
-
var y, F, w, D, ge, Xe, I, re, we, Z,
|
|
1435
|
+
var y, F, w, D, ge, Xe, I, re, we, Z, Ae, le, We, R, xe = !1, en = !1, nn = [], me, X, hn, yn, mt, ht, Ie, Ce, Re, Me = !1, Ue = !1, Ye, M, gn = [], Yn = !1, tn = [], sn = typeof document < "u", Ze = Ht, yt = ze || ae ? "cssFloat" : "float", Wi = sn && !St && !Ht && "draggable" in document.createElement("div"), Nt = function() {
|
|
1436
1436
|
if (sn) {
|
|
1437
1437
|
if (ae)
|
|
1438
1438
|
return !1;
|
|
1439
1439
|
var e = document.createElement("x");
|
|
1440
1440
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1441
1441
|
}
|
|
1442
|
-
}(),
|
|
1442
|
+
}(), At = function(n, t) {
|
|
1443
1443
|
var a = C(n), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ee(n, 0, t), l = Ee(n, 1, t), r = i && C(i), p = l && C(l), f = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + N(i).width, m = p && parseInt(p.marginLeft) + parseInt(p.marginRight) + N(l).width;
|
|
1444
1444
|
if (a.display === "flex")
|
|
1445
1445
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -1449,15 +1449,15 @@ var y, F, w, D, ge, Xe, I, re, we, Z, Re, le, We, A, xe = !1, en = !1, nn = [],
|
|
|
1449
1449
|
var u = r.float === "left" ? "left" : "right";
|
|
1450
1450
|
return l && (p.clear === "both" || p.clear === u) ? "vertical" : "horizontal";
|
|
1451
1451
|
}
|
|
1452
|
-
return i && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || f >= o && a[
|
|
1453
|
-
},
|
|
1452
|
+
return i && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || f >= o && a[yt] === "none" || l && a[yt] === "none" && f + m > o) ? "vertical" : "horizontal";
|
|
1453
|
+
}, Ui = function(n, t, a) {
|
|
1454
1454
|
var o = a ? n.left : n.top, i = a ? n.right : n.bottom, l = a ? n.width : n.height, r = a ? t.left : t.top, p = a ? t.right : t.bottom, f = a ? t.width : t.height;
|
|
1455
1455
|
return o === r || i === p || o + l / 2 === r + f / 2;
|
|
1456
|
-
},
|
|
1456
|
+
}, Zi = function(n, t) {
|
|
1457
1457
|
var a;
|
|
1458
1458
|
return nn.some(function(o) {
|
|
1459
1459
|
var i = o[q].options.emptyInsertThreshold;
|
|
1460
|
-
if (!(!i ||
|
|
1460
|
+
if (!(!i || nt(o))) {
|
|
1461
1461
|
var l = N(o), r = n >= l.left - i && n <= l.right + i, p = t >= l.top - i && t <= l.bottom + i;
|
|
1462
1462
|
if (r && p)
|
|
1463
1463
|
return a = o;
|
|
@@ -1483,19 +1483,19 @@ var y, F, w, D, ge, Xe, I, re, we, Z, Re, le, We, A, xe = !1, en = !1, nn = [],
|
|
|
1483
1483
|
(!o || Ge(o) != "object") && (o = {
|
|
1484
1484
|
name: o
|
|
1485
1485
|
}), a.name = o.name, a.checkPull = t(o.pull, !0), a.checkPut = t(o.put), a.revertClone = o.revertClone, n.group = a;
|
|
1486
|
-
}, At = function() {
|
|
1487
|
-
!Pt && w && C(w, "display", "none");
|
|
1488
1486
|
}, Mt = function() {
|
|
1489
|
-
!
|
|
1487
|
+
!Nt && w && C(w, "display", "none");
|
|
1488
|
+
}, zt = function() {
|
|
1489
|
+
!Nt && w && C(w, "display", "");
|
|
1490
1490
|
};
|
|
1491
|
-
sn && !
|
|
1491
|
+
sn && !St && document.addEventListener("click", function(e) {
|
|
1492
1492
|
if (en)
|
|
1493
1493
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), en = !1, !1;
|
|
1494
1494
|
}, !0);
|
|
1495
1495
|
var he = function(n) {
|
|
1496
1496
|
if (y) {
|
|
1497
1497
|
n = n.touches ? n.touches[0] : n;
|
|
1498
|
-
var t =
|
|
1498
|
+
var t = Zi(n.clientX, n.clientY);
|
|
1499
1499
|
if (t) {
|
|
1500
1500
|
var a = {};
|
|
1501
1501
|
for (var o in n)
|
|
@@ -1503,7 +1503,7 @@ var he = function(n) {
|
|
|
1503
1503
|
a.target = a.rootEl = t, a.preventDefault = void 0, a.stopPropagation = void 0, t[q]._onDragOver(a);
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
},
|
|
1506
|
+
}, qi = function(n) {
|
|
1507
1507
|
y && y.parentNode[q]._isOutsideThisEl(n.target);
|
|
1508
1508
|
};
|
|
1509
1509
|
function x(e, n) {
|
|
@@ -1525,7 +1525,7 @@ function x(e, n) {
|
|
|
1525
1525
|
// will be set to same as swapThreshold if default
|
|
1526
1526
|
removeCloneOnHide: !0,
|
|
1527
1527
|
direction: function() {
|
|
1528
|
-
return
|
|
1528
|
+
return At(e, this.options);
|
|
1529
1529
|
},
|
|
1530
1530
|
ghostClass: "sortable-ghost",
|
|
1531
1531
|
chosenClass: "sortable-chosen",
|
|
@@ -1561,7 +1561,7 @@ function x(e, n) {
|
|
|
1561
1561
|
Rt(n);
|
|
1562
1562
|
for (var o in this)
|
|
1563
1563
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
1564
|
-
this.nativeDraggable = n.forceFallback ? !1 :
|
|
1564
|
+
this.nativeDraggable = n.forceFallback ? !1 : Wi, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? O(e, "pointerdown", this._onTapStart) : (O(e, "mousedown", this._onTapStart), O(e, "touchstart", this._onTapStart)), this.nativeDraggable && (O(e, "dragover", this), O(e, "dragenter", this)), nn.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), te(this, Ri());
|
|
1565
1565
|
}
|
|
1566
1566
|
x.prototype = /** @lends Sortable.prototype */
|
|
1567
1567
|
{
|
|
@@ -1575,8 +1575,8 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1575
1575
|
_onTapStart: function(n) {
|
|
1576
1576
|
if (n.cancelable) {
|
|
1577
1577
|
var t = this, a = this.el, o = this.options, i = o.preventOnFilter, l = n.type, r = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, p = (r || n).target, f = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || p, m = o.filter;
|
|
1578
|
-
if (
|
|
1579
|
-
if (we = J(p),
|
|
1578
|
+
if (es(a), !y && !(/mousedown|pointerdown/.test(l) && n.button !== 0 || o.disabled) && !f.isContentEditable && !(!this.nativeDraggable && Pe && p && p.tagName.toUpperCase() === "SELECT") && (p = Y(p, o.draggable, a, !1), !(p && p.animated) && Xe !== p)) {
|
|
1579
|
+
if (we = J(p), Ae = J(p, o.draggable), typeof m == "function") {
|
|
1580
1580
|
if (m.call(this, n, p, this)) {
|
|
1581
1581
|
z({
|
|
1582
1582
|
sortable: t,
|
|
@@ -1618,21 +1618,21 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1618
1618
|
target: y,
|
|
1619
1619
|
clientX: (t || n).clientX,
|
|
1620
1620
|
clientY: (t || n).clientY
|
|
1621
|
-
},
|
|
1621
|
+
}, mt = me.clientX - f.left, ht = me.clientY - f.top, this._lastX = (t || n).clientX, this._lastY = (t || n).clientY, y.style["will-change"] = "all", p = function() {
|
|
1622
1622
|
if (B("delayEnded", o, {
|
|
1623
1623
|
evt: n
|
|
1624
1624
|
}), x.eventCanceled) {
|
|
1625
1625
|
o._onDrop();
|
|
1626
1626
|
return;
|
|
1627
1627
|
}
|
|
1628
|
-
o._disableDelayedDragEvents(), !
|
|
1628
|
+
o._disableDelayedDragEvents(), !ct && o.nativeDraggable && (y.draggable = !0), o._triggerDragStart(n, t), z({
|
|
1629
1629
|
sortable: o,
|
|
1630
1630
|
name: "choose",
|
|
1631
1631
|
originalEvent: n
|
|
1632
1632
|
}), U(y, l.chosenClass, !0);
|
|
1633
1633
|
}, l.ignore.split(",").forEach(function(m) {
|
|
1634
|
-
|
|
1635
|
-
}), O(r, "dragover", he), O(r, "mousemove", he), O(r, "touchmove", he), O(r, "mouseup", o._onDrop), O(r, "touchend", o._onDrop), O(r, "touchcancel", o._onDrop),
|
|
1634
|
+
Dt(y, m.trim(), bn);
|
|
1635
|
+
}), O(r, "dragover", he), O(r, "mousemove", he), O(r, "touchmove", he), O(r, "mouseup", o._onDrop), O(r, "touchend", o._onDrop), O(r, "touchcancel", o._onDrop), ct && this.nativeDraggable && (this.options.touchStartThreshold = 4, y.draggable = !0), B("delayStart", this, {
|
|
1636
1636
|
evt: n
|
|
1637
1637
|
}), l.delay && (!l.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ze || ae))) {
|
|
1638
1638
|
if (x.eventCanceled) {
|
|
@@ -1653,7 +1653,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1653
1653
|
},
|
|
1654
1654
|
_disableDelayedDragEvents: function() {
|
|
1655
1655
|
var n = this.el.ownerDocument;
|
|
1656
|
-
|
|
1656
|
+
H(n, "mouseup", this._disableDelayedDrag), H(n, "touchend", this._disableDelayedDrag), H(n, "touchcancel", this._disableDelayedDrag), H(n, "mousemove", this._delayedDragTouchMoveHandler), H(n, "touchmove", this._delayedDragTouchMoveHandler), H(n, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1657
1657
|
},
|
|
1658
1658
|
_triggerDragStart: function(n, t) {
|
|
1659
1659
|
t = t || n.pointerType == "touch" && n, !this.nativeDraggable || t ? this.options.supportPointer ? O(document, "pointermove", this._onTouchMove) : t ? O(document, "touchmove", this._onTouchMove) : O(document, "mousemove", this._onTouchMove) : (O(y, "dragend", this), O(D, "dragstart", this._onDragStart));
|
|
@@ -1668,7 +1668,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1668
1668
|
if (xe = !1, D && y) {
|
|
1669
1669
|
B("dragStarted", this, {
|
|
1670
1670
|
evt: t
|
|
1671
|
-
}), this.nativeDraggable && O(document, "dragover",
|
|
1671
|
+
}), this.nativeDraggable && O(document, "dragover", qi);
|
|
1672
1672
|
var a = this.options;
|
|
1673
1673
|
!n && U(y, a.dragClass, !1), U(y, a.ghostClass, !0), x.active = this, n && this._appendGhost(), z({
|
|
1674
1674
|
sortable: this,
|
|
@@ -1680,7 +1680,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1680
1680
|
},
|
|
1681
1681
|
_emulateDragOver: function() {
|
|
1682
1682
|
if (X) {
|
|
1683
|
-
this._lastX = X.clientX, this._lastY = X.clientY,
|
|
1683
|
+
this._lastX = X.clientX, this._lastY = X.clientY, Mt();
|
|
1684
1684
|
for (var n = document.elementFromPoint(X.clientX, X.clientY), t = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(X.clientX, X.clientY), n !== t); )
|
|
1685
1685
|
t = n;
|
|
1686
1686
|
if (y.parentNode[q]._isOutsideThisEl(n), t)
|
|
@@ -1697,12 +1697,12 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1697
1697
|
}
|
|
1698
1698
|
n = t;
|
|
1699
1699
|
} while (t = t.parentNode);
|
|
1700
|
-
|
|
1700
|
+
zt();
|
|
1701
1701
|
}
|
|
1702
1702
|
},
|
|
1703
1703
|
_onTouchMove: function(n) {
|
|
1704
1704
|
if (me) {
|
|
1705
|
-
var t = this.options, a = t.fallbackTolerance, o = t.fallbackOffset, i = n.touches ? n.touches[0] : n, l = w && ke(w, !0), r = w && l && l.a, p = w && l && l.d, f = Ze && M &&
|
|
1705
|
+
var t = this.options, a = t.fallbackTolerance, o = t.fallbackOffset, i = n.touches ? n.touches[0] : n, l = w && ke(w, !0), r = w && l && l.a, p = w && l && l.d, f = Ze && M && ut(M), m = (i.clientX - me.clientX + o.x) / (r || 1) + (f ? f[0] - gn[0] : 0) / (r || 1), u = (i.clientY - me.clientY + o.y) / (p || 1) + (f ? f[1] - gn[1] : 0) / (p || 1);
|
|
1706
1706
|
if (!x.active && !xe) {
|
|
1707
1707
|
if (a && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < a)
|
|
1708
1708
|
return;
|
|
@@ -1729,9 +1729,9 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1729
1729
|
if (Ze) {
|
|
1730
1730
|
for (M = n; C(M, "position") === "static" && C(M, "transform") === "none" && M !== document; )
|
|
1731
1731
|
M = M.parentNode;
|
|
1732
|
-
M !== document.body && M !== document.documentElement ? (M === document && (M = V()), t.top += M.scrollTop, t.left += M.scrollLeft) : M = V(), gn =
|
|
1732
|
+
M !== document.body && M !== document.documentElement ? (M === document && (M = V()), t.top += M.scrollTop, t.left += M.scrollLeft) : M = V(), gn = ut(M);
|
|
1733
1733
|
}
|
|
1734
|
-
w = y.cloneNode(!0), U(w, a.ghostClass, !1), U(w, a.fallbackClass, !0), U(w, a.dragClass, !0), C(w, "transition", ""), C(w, "transform", ""), C(w, "box-sizing", "border-box"), C(w, "margin", 0), C(w, "top", t.top), C(w, "left", t.left), C(w, "width", t.width), C(w, "height", t.height), C(w, "opacity", "0.8"), C(w, "position", Ze ? "absolute" : "fixed"), C(w, "zIndex", "100000"), C(w, "pointerEvents", "none"), x.ghost = w, n.appendChild(w), C(w, "transform-origin",
|
|
1734
|
+
w = y.cloneNode(!0), U(w, a.ghostClass, !1), U(w, a.fallbackClass, !0), U(w, a.dragClass, !0), C(w, "transition", ""), C(w, "transform", ""), C(w, "box-sizing", "border-box"), C(w, "margin", 0), C(w, "top", t.top), C(w, "left", t.left), C(w, "width", t.width), C(w, "height", t.height), C(w, "opacity", "0.8"), C(w, "position", Ze ? "absolute" : "fixed"), C(w, "zIndex", "100000"), C(w, "pointerEvents", "none"), x.ghost = w, n.appendChild(w), C(w, "transform-origin", mt / parseInt(w.style.width) * 100 + "% " + ht / parseInt(w.style.height) * 100 + "%");
|
|
1735
1735
|
}
|
|
1736
1736
|
},
|
|
1737
1737
|
_onDragStart: function(n, t) {
|
|
@@ -1742,19 +1742,19 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1742
1742
|
this._onDrop();
|
|
1743
1743
|
return;
|
|
1744
1744
|
}
|
|
1745
|
-
B("setupClone", this), x.eventCanceled || (I =
|
|
1745
|
+
B("setupClone", this), x.eventCanceled || (I = Ft(y), I.removeAttribute("id"), I.draggable = !1, I.style["will-change"] = "", this._hideClone(), U(I, this.options.chosenClass, !1), x.clone = I), a.cloneId = Ke(function() {
|
|
1746
1746
|
B("clone", a), !x.eventCanceled && (a.options.removeCloneOnHide || D.insertBefore(I, y), a._hideClone(), z({
|
|
1747
1747
|
sortable: a,
|
|
1748
1748
|
name: "clone"
|
|
1749
1749
|
}));
|
|
1750
|
-
}), !t && U(y, i.dragClass, !0), t ? (en = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (
|
|
1750
|
+
}), !t && U(y, i.dragClass, !0), t ? (en = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (H(document, "mouseup", a._onDrop), H(document, "touchend", a._onDrop), H(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(a, o, y)), O(document, "drop", a), C(y, "transform", "translateZ(0)")), xe = !0, a._dragStartId = Ke(a._dragStarted.bind(a, t, n)), O(document, "selectstart", a), Ie = !0, Pe && C(document.body, "user-select", "none");
|
|
1751
1751
|
},
|
|
1752
1752
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1753
1753
|
_onDragOver: function(n) {
|
|
1754
|
-
var t = this.el, a = n.target, o, i, l, r = this.options, p = r.group, f = x.active, m = We === p, u = r.sort, h =
|
|
1755
|
-
if (
|
|
1754
|
+
var t = this.el, a = n.target, o, i, l, r = this.options, p = r.group, f = x.active, m = We === p, u = r.sort, h = R || f, b, g = this, _ = !1;
|
|
1755
|
+
if (Yn)
|
|
1756
1756
|
return;
|
|
1757
|
-
function S(De,
|
|
1757
|
+
function S(De, ya) {
|
|
1758
1758
|
B(De, g, Q({
|
|
1759
1759
|
evt: n,
|
|
1760
1760
|
isOwner: m,
|
|
@@ -1765,20 +1765,20 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1765
1765
|
canSort: u,
|
|
1766
1766
|
fromSortable: h,
|
|
1767
1767
|
target: a,
|
|
1768
|
-
completed:
|
|
1769
|
-
onMove: function(
|
|
1770
|
-
return qe(D, t, y, o,
|
|
1768
|
+
completed: A,
|
|
1769
|
+
onMove: function(it, ga) {
|
|
1770
|
+
return qe(D, t, y, o, it, N(it), n, ga);
|
|
1771
1771
|
},
|
|
1772
1772
|
changed: G
|
|
1773
|
-
},
|
|
1773
|
+
}, ya));
|
|
1774
1774
|
}
|
|
1775
1775
|
function $() {
|
|
1776
1776
|
S("dragOverAnimationCapture"), g.captureAnimationState(), g !== h && h.captureAnimationState();
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function A(De) {
|
|
1779
1779
|
return S("dragOverCompleted", {
|
|
1780
1780
|
insertion: De
|
|
1781
|
-
}), De && (m ? f._hideClone() : f._showClone(g), g !== h && (U(y,
|
|
1781
|
+
}), De && (m ? f._hideClone() : f._showClone(g), g !== h && (U(y, R ? R.options.ghostClass : f.options.ghostClass, !1), U(y, r.ghostClass, !0)), R !== g && g !== x.active ? R = g : g === x.active && R && (R = null), h === g && (g._ignoreWhileAnimating = a), g.animateAll(function() {
|
|
1782
1782
|
S("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
1783
1783
|
}), g !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (a === y && !y.animated || a === t && !a.animated) && (Ce = null), !r.dragoverBubble && !n.rootEl && a !== document && (y.parentNode[q]._isOutsideThisEl(n.target), !De && he(n)), !r.dragoverBubble && n.stopPropagation && n.stopPropagation(), _ = !0;
|
|
1784
1784
|
}
|
|
@@ -1795,28 +1795,28 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1795
1795
|
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = Y(a, r.draggable, t, !0), S("dragOver"), x.eventCanceled)
|
|
1796
1796
|
return _;
|
|
1797
1797
|
if (y.contains(n.target) || a.animated && a.animatingX && a.animatingY || g._ignoreWhileAnimating === a)
|
|
1798
|
-
return
|
|
1799
|
-
if (en = !1, f && !r.disabled && (m ? u || (l = F !== D) :
|
|
1798
|
+
return A(!1);
|
|
1799
|
+
if (en = !1, f && !r.disabled && (m ? u || (l = F !== D) : R === this || (this.lastPutMode = We.checkPull(this, f, y, n)) && p.checkPut(this, f, y, n))) {
|
|
1800
1800
|
if (b = this._getDirection(n, a) === "vertical", o = N(y), S("dragOverValid"), x.eventCanceled)
|
|
1801
1801
|
return _;
|
|
1802
1802
|
if (l)
|
|
1803
|
-
return F = D, $(), this._hideClone(), S("revert"), x.eventCanceled || (ge ? D.insertBefore(y, ge) : D.appendChild(y)),
|
|
1804
|
-
var j =
|
|
1805
|
-
if (!j ||
|
|
1803
|
+
return F = D, $(), this._hideClone(), S("revert"), x.eventCanceled || (ge ? D.insertBefore(y, ge) : D.appendChild(y)), A(!0);
|
|
1804
|
+
var j = nt(t, r.draggable);
|
|
1805
|
+
if (!j || Yi(n, b, this) && !j.animated) {
|
|
1806
1806
|
if (j === y)
|
|
1807
|
-
return
|
|
1807
|
+
return A(!1);
|
|
1808
1808
|
if (j && t === n.target && (a = j), a && (i = N(a)), qe(D, t, y, o, a, i, n, !!a) !== !1)
|
|
1809
|
-
return $(), j && j.nextSibling ? t.insertBefore(y, j.nextSibling) : t.appendChild(y), F = t, G(),
|
|
1810
|
-
} else if (j &&
|
|
1809
|
+
return $(), j && j.nextSibling ? t.insertBefore(y, j.nextSibling) : t.appendChild(y), F = t, G(), A(!0);
|
|
1810
|
+
} else if (j && Xi(n, b, this)) {
|
|
1811
1811
|
var pe = Ee(t, 0, r, !0);
|
|
1812
1812
|
if (pe === y)
|
|
1813
|
-
return
|
|
1813
|
+
return A(!1);
|
|
1814
1814
|
if (a = pe, i = N(a), qe(D, t, y, o, a, i, n, !1) !== !1)
|
|
1815
|
-
return $(), t.insertBefore(y, pe), F = t, G(),
|
|
1815
|
+
return $(), t.insertBefore(y, pe), F = t, G(), A(!0);
|
|
1816
1816
|
} else if (a.parentNode === t) {
|
|
1817
1817
|
i = N(a);
|
|
1818
|
-
var K = 0, fe, Te = y.parentNode !== t, W = !
|
|
1819
|
-
Ce !== a && (fe = i[He], Me = !1, Ue = !W && r.invertSwap || Te), K =
|
|
1818
|
+
var K = 0, fe, Te = y.parentNode !== t, W = !Ui(y.animated && y.toRect || o, a.animated && a.toRect || i, b), He = b ? "top" : "left", ie = ft(a, "top", "top") || ft(y, "top", "top"), Se = ie ? ie.scrollTop : void 0;
|
|
1819
|
+
Ce !== a && (fe = i[He], Me = !1, Ue = !W && r.invertSwap || Te), K = Ki(n, a, i, b, W ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, Ue, Ce === a);
|
|
1820
1820
|
var ee;
|
|
1821
1821
|
if (K !== 0) {
|
|
1822
1822
|
var ue = J(y);
|
|
@@ -1825,26 +1825,26 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1825
1825
|
while (ee && (C(ee, "display") === "none" || ee === w));
|
|
1826
1826
|
}
|
|
1827
1827
|
if (K === 0 || ee === a)
|
|
1828
|
-
return
|
|
1829
|
-
Ce = a,
|
|
1828
|
+
return A(!1);
|
|
1829
|
+
Ce = a, Re = K;
|
|
1830
1830
|
var Oe = a.nextElementSibling, se = !1;
|
|
1831
1831
|
se = K === 1;
|
|
1832
1832
|
var je = qe(D, t, y, o, a, i, n, se);
|
|
1833
1833
|
if (je !== !1)
|
|
1834
|
-
return (je === 1 || je === -1) && (se = je === 1),
|
|
1834
|
+
return (je === 1 || je === -1) && (se = je === 1), Yn = !0, setTimeout(Gi, 30), $(), se && !Oe ? t.appendChild(y) : a.parentNode.insertBefore(y, se ? Oe : a), ie && $t(ie, 0, Se - ie.scrollTop), F = y.parentNode, fe !== void 0 && !Ue && (Ye = Math.abs(fe - N(a)[He])), G(), A(!0);
|
|
1835
1835
|
}
|
|
1836
1836
|
if (t.contains(y))
|
|
1837
|
-
return
|
|
1837
|
+
return A(!1);
|
|
1838
1838
|
}
|
|
1839
1839
|
return !1;
|
|
1840
1840
|
},
|
|
1841
1841
|
_ignoreWhileAnimating: null,
|
|
1842
1842
|
_offMoveEvents: function() {
|
|
1843
|
-
|
|
1843
|
+
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", he), H(document, "mousemove", he), H(document, "touchmove", he);
|
|
1844
1844
|
},
|
|
1845
1845
|
_offUpEvents: function() {
|
|
1846
1846
|
var n = this.el.ownerDocument;
|
|
1847
|
-
|
|
1847
|
+
H(n, "mouseup", this._onDrop), H(n, "touchend", this._onDrop), H(n, "pointerup", this._onDrop), H(n, "touchcancel", this._onDrop), H(document, "selectstart", this);
|
|
1848
1848
|
},
|
|
1849
1849
|
_onDrop: function(n) {
|
|
1850
1850
|
var t = this.el, a = this.options;
|
|
@@ -1854,7 +1854,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1854
1854
|
this._nulling();
|
|
1855
1855
|
return;
|
|
1856
1856
|
}
|
|
1857
|
-
xe = !1, Ue = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer),
|
|
1857
|
+
xe = !1, Ue = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Kn(this.cloneId), Kn(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Pe && C(document.body, "user-select", ""), C(y, "transform", ""), n && (Ie && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (D === F || R && R.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), y && (this.nativeDraggable && H(y, "dragend", this), bn(y), y.style["will-change"] = "", Ie && !xe && U(y, R ? R.options.ghostClass : this.options.ghostClass, !1), U(y, this.options.chosenClass, !1), z({
|
|
1858
1858
|
sortable: this,
|
|
1859
1859
|
name: "unchoose",
|
|
1860
1860
|
toEl: F,
|
|
@@ -1883,7 +1883,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1883
1883
|
name: "sort",
|
|
1884
1884
|
toEl: F,
|
|
1885
1885
|
originalEvent: n
|
|
1886
|
-
})),
|
|
1886
|
+
})), R && R.save()) : Z !== we && Z >= 0 && (z({
|
|
1887
1887
|
sortable: this,
|
|
1888
1888
|
name: "update",
|
|
1889
1889
|
toEl: F,
|
|
@@ -1893,7 +1893,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1893
1893
|
name: "sort",
|
|
1894
1894
|
toEl: F,
|
|
1895
1895
|
originalEvent: n
|
|
1896
|
-
})), x.active && ((Z == null || Z === -1) && (Z = we, le =
|
|
1896
|
+
})), x.active && ((Z == null || Z === -1) && (Z = we, le = Ae), z({
|
|
1897
1897
|
sortable: this,
|
|
1898
1898
|
name: "end",
|
|
1899
1899
|
toEl: F,
|
|
@@ -1901,7 +1901,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1901
1901
|
}), this.save()))), this._nulling();
|
|
1902
1902
|
},
|
|
1903
1903
|
_nulling: function() {
|
|
1904
|
-
B("nulling", this), D = y = F = w = ge = I = Xe = re = me = X = Ie = Z = le = we =
|
|
1904
|
+
B("nulling", this), D = y = F = w = ge = I = Xe = re = me = X = Ie = Z = le = we = Ae = Ce = Re = R = We = x.dragged = x.ghost = x.clone = x.active = null, tn.forEach(function(n) {
|
|
1905
1905
|
n.checked = !0;
|
|
1906
1906
|
}), tn.length = hn = yn = 0;
|
|
1907
1907
|
},
|
|
@@ -1913,7 +1913,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1913
1913
|
break;
|
|
1914
1914
|
case "dragenter":
|
|
1915
1915
|
case "dragover":
|
|
1916
|
-
y && (this._onDragOver(n),
|
|
1916
|
+
y && (this._onDragOver(n), Ji(n));
|
|
1917
1917
|
break;
|
|
1918
1918
|
case "selectstart":
|
|
1919
1919
|
n.preventDefault();
|
|
@@ -1926,7 +1926,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1926
1926
|
*/
|
|
1927
1927
|
toArray: function() {
|
|
1928
1928
|
for (var n = [], t, a = this.el.children, o = 0, i = a.length, l = this.options; o < i; o++)
|
|
1929
|
-
t = a[o], Y(t, l.draggable, this.el, !1) && n.push(t.getAttribute(l.dataIdAttr) ||
|
|
1929
|
+
t = a[o], Y(t, l.draggable, this.el, !1) && n.push(t.getAttribute(l.dataIdAttr) || Qi(t));
|
|
1930
1930
|
return n;
|
|
1931
1931
|
},
|
|
1932
1932
|
/**
|
|
@@ -1977,7 +1977,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1977
1977
|
destroy: function() {
|
|
1978
1978
|
B("destroy", this);
|
|
1979
1979
|
var n = this.el;
|
|
1980
|
-
n[q] = null,
|
|
1980
|
+
n[q] = null, H(n, "mousedown", this._onTapStart), H(n, "touchstart", this._onTapStart), H(n, "pointerdown", this._onTapStart), this.nativeDraggable && (H(n, "dragover", this), H(n, "dragenter", this)), Array.prototype.forEach.call(n.querySelectorAll("[draggable]"), function(t) {
|
|
1981
1981
|
t.removeAttribute("draggable");
|
|
1982
1982
|
}), this._onDrop(), this._disableDelayedDragEvents(), nn.splice(nn.indexOf(this.el), 1), this.el = n = null;
|
|
1983
1983
|
},
|
|
@@ -2000,7 +2000,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
|
-
function
|
|
2003
|
+
function Ji(e) {
|
|
2004
2004
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2005
2005
|
}
|
|
2006
2006
|
function qe(e, n, t, a, o, i, l, r) {
|
|
@@ -2013,39 +2013,39 @@ function qe(e, n, t, a, o, i, l, r) {
|
|
|
2013
2013
|
function bn(e) {
|
|
2014
2014
|
e.draggable = !1;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2017
|
-
|
|
2016
|
+
function Gi() {
|
|
2017
|
+
Yn = !1;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2020
|
-
var a = N(Ee(t.el, 0, t.options, !0)), o =
|
|
2019
|
+
function Xi(e, n, t) {
|
|
2020
|
+
var a = N(Ee(t.el, 0, t.options, !0)), o = Pt(t.el, t.options, w), i = 10;
|
|
2021
2021
|
return n ? e.clientX < o.left - i || e.clientY < a.top && e.clientX < a.right : e.clientY < o.top - i || e.clientY < a.bottom && e.clientX < a.left;
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2024
|
-
var a = N(
|
|
2023
|
+
function Yi(e, n, t) {
|
|
2024
|
+
var a = N(nt(t.el, t.options.draggable)), o = Pt(t.el, t.options, w), i = 10;
|
|
2025
2025
|
return n ? e.clientX > o.right + i || e.clientY > a.bottom && e.clientX > a.left : e.clientY > o.bottom + i || e.clientX > a.right && e.clientY > a.top;
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function Ki(e, n, t, a, o, i, l, r) {
|
|
2028
2028
|
var p = a ? e.clientY : e.clientX, f = a ? t.height : t.width, m = a ? t.top : t.left, u = a ? t.bottom : t.right, h = !1;
|
|
2029
2029
|
if (!l) {
|
|
2030
2030
|
if (r && Ye < f * o) {
|
|
2031
|
-
if (!Me && (
|
|
2031
|
+
if (!Me && (Re === 1 ? p > m + f * i / 2 : p < u - f * i / 2) && (Me = !0), Me)
|
|
2032
2032
|
h = !0;
|
|
2033
|
-
else if (
|
|
2034
|
-
return -
|
|
2033
|
+
else if (Re === 1 ? p < m + Ye : p > u - Ye)
|
|
2034
|
+
return -Re;
|
|
2035
2035
|
} else if (p > m + f * (1 - o) / 2 && p < u - f * (1 - o) / 2)
|
|
2036
|
-
return
|
|
2036
|
+
return Vi(n);
|
|
2037
2037
|
}
|
|
2038
2038
|
return h = h || l, h && (p < m + f * i / 2 || p > u - f * i / 2) ? p > m + f / 2 ? 1 : -1 : 0;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function Vi(e) {
|
|
2041
2041
|
return J(y) < J(e) ? 1 : -1;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function Qi(e) {
|
|
2044
2044
|
for (var n = e.tagName + e.className + e.src + e.href + e.textContent, t = n.length, a = 0; t--; )
|
|
2045
2045
|
a += n.charCodeAt(t);
|
|
2046
2046
|
return a.toString(36);
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function es(e) {
|
|
2049
2049
|
tn.length = 0;
|
|
2050
2050
|
for (var n = e.getElementsByTagName("input"), t = n.length; t--; ) {
|
|
2051
2051
|
var a = n[t];
|
|
@@ -2055,7 +2055,7 @@ function Vi(e) {
|
|
|
2055
2055
|
function Ke(e) {
|
|
2056
2056
|
return setTimeout(e, 0);
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Kn(e) {
|
|
2059
2059
|
return clearTimeout(e);
|
|
2060
2060
|
}
|
|
2061
2061
|
sn && O(document, "touchmove", function(e) {
|
|
@@ -2063,21 +2063,21 @@ sn && O(document, "touchmove", function(e) {
|
|
|
2063
2063
|
});
|
|
2064
2064
|
x.utils = {
|
|
2065
2065
|
on: O,
|
|
2066
|
-
off:
|
|
2066
|
+
off: H,
|
|
2067
2067
|
css: C,
|
|
2068
|
-
find:
|
|
2068
|
+
find: Dt,
|
|
2069
2069
|
is: function(n, t) {
|
|
2070
2070
|
return !!Y(n, t, n, !1);
|
|
2071
2071
|
},
|
|
2072
|
-
extend:
|
|
2073
|
-
throttle:
|
|
2072
|
+
extend: Ni,
|
|
2073
|
+
throttle: It,
|
|
2074
2074
|
closest: Y,
|
|
2075
2075
|
toggleClass: U,
|
|
2076
|
-
clone:
|
|
2076
|
+
clone: Ft,
|
|
2077
2077
|
index: J,
|
|
2078
2078
|
nextTick: Ke,
|
|
2079
|
-
cancelNextTick:
|
|
2080
|
-
detectDirection:
|
|
2079
|
+
cancelNextTick: Kn,
|
|
2080
|
+
detectDirection: At,
|
|
2081
2081
|
getChild: Ee
|
|
2082
2082
|
};
|
|
2083
2083
|
x.get = function(e) {
|
|
@@ -2095,9 +2095,9 @@ x.mount = function() {
|
|
|
2095
2095
|
x.create = function(e, n) {
|
|
2096
2096
|
return new x(e, n);
|
|
2097
2097
|
};
|
|
2098
|
-
x.version =
|
|
2099
|
-
var P = [], $e,
|
|
2100
|
-
function
|
|
2098
|
+
x.version = $i;
|
|
2099
|
+
var P = [], $e, Vn, Qn = !1, vn, _n, an, Fe;
|
|
2100
|
+
function ns() {
|
|
2101
2101
|
function e() {
|
|
2102
2102
|
this.defaults = {
|
|
2103
2103
|
scroll: !0,
|
|
@@ -2119,10 +2119,10 @@ function Qi() {
|
|
|
2119
2119
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
2120
2120
|
},
|
|
2121
2121
|
drop: function() {
|
|
2122
|
-
this.sortable.nativeDraggable ?
|
|
2122
|
+
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), gt(), Ve(), Ai();
|
|
2123
2123
|
},
|
|
2124
2124
|
nulling: function() {
|
|
2125
|
-
an =
|
|
2125
|
+
an = Vn = $e = Qn = Fe = vn = _n = null, P.length = 0;
|
|
2126
2126
|
},
|
|
2127
2127
|
_handleFallbackAutoScroll: function(t) {
|
|
2128
2128
|
this._handleAutoScroll(t, !0);
|
|
@@ -2132,7 +2132,7 @@ function Qi() {
|
|
|
2132
2132
|
if (an = t, a || this.options.forceAutoScrollFallback || ze || ae || Pe) {
|
|
2133
2133
|
Cn(t, this.options, r, a);
|
|
2134
2134
|
var p = ce(r, !0);
|
|
2135
|
-
|
|
2135
|
+
Qn && (!Fe || i !== vn || l !== _n) && (Fe && gt(), Fe = setInterval(function() {
|
|
2136
2136
|
var f = ce(document.elementFromPoint(i, l), !0);
|
|
2137
2137
|
f !== p && (p = f, Ve()), Cn(t, o.options, f, a);
|
|
2138
2138
|
}, 10), vn = i, _n = l);
|
|
@@ -2154,32 +2154,32 @@ function Ve() {
|
|
|
2154
2154
|
clearInterval(e.pid);
|
|
2155
2155
|
}), P = [];
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2157
|
+
function gt() {
|
|
2158
2158
|
clearInterval(Fe);
|
|
2159
2159
|
}
|
|
2160
|
-
var Cn =
|
|
2160
|
+
var Cn = It(function(e, n, t, a) {
|
|
2161
2161
|
if (n.scroll) {
|
|
2162
2162
|
var o = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, l = n.scrollSensitivity, r = n.scrollSpeed, p = V(), f = !1, m;
|
|
2163
|
-
|
|
2163
|
+
Vn !== t && (Vn = t, Ve(), $e = n.scroll, m = n.scrollFn, $e === !0 && ($e = ce(t, !0)));
|
|
2164
2164
|
var u = 0, h = $e;
|
|
2165
2165
|
do {
|
|
2166
|
-
var b = h, g = N(b), _ = g.top, S = g.bottom, $ = g.left,
|
|
2166
|
+
var b = h, g = N(b), _ = g.top, S = g.bottom, $ = g.left, A = g.right, G = g.width, j = g.height, pe = void 0, K = void 0, fe = b.scrollWidth, Te = b.scrollHeight, W = C(b), He = b.scrollLeft, ie = b.scrollTop;
|
|
2167
2167
|
b === p ? (pe = G < fe && (W.overflowX === "auto" || W.overflowX === "scroll" || W.overflowX === "visible"), K = j < Te && (W.overflowY === "auto" || W.overflowY === "scroll" || W.overflowY === "visible")) : (pe = G < fe && (W.overflowX === "auto" || W.overflowX === "scroll"), K = j < Te && (W.overflowY === "auto" || W.overflowY === "scroll"));
|
|
2168
|
-
var Se = pe && (Math.abs(
|
|
2168
|
+
var Se = pe && (Math.abs(A - o) <= l && He + G < fe) - (Math.abs($ - o) <= l && !!He), ee = K && (Math.abs(S - i) <= l && ie + j < Te) - (Math.abs(_ - i) <= l && !!ie);
|
|
2169
2169
|
if (!P[u])
|
|
2170
2170
|
for (var ue = 0; ue <= u; ue++)
|
|
2171
2171
|
P[ue] || (P[ue] = {});
|
|
2172
2172
|
(P[u].vx != Se || P[u].vy != ee || P[u].el !== b) && (P[u].el = b, P[u].vx = Se, P[u].vy = ee, clearInterval(P[u].pid), (Se != 0 || ee != 0) && (f = !0, P[u].pid = setInterval((function() {
|
|
2173
2173
|
a && this.layer === 0 && x.active._onTouchMove(an);
|
|
2174
2174
|
var Oe = P[this.layer].vy ? P[this.layer].vy * r : 0, se = P[this.layer].vx ? P[this.layer].vx * r : 0;
|
|
2175
|
-
typeof m == "function" && m.call(x.dragged.parentNode[q], se, Oe, e, an, P[this.layer].el) !== "continue" ||
|
|
2175
|
+
typeof m == "function" && m.call(x.dragged.parentNode[q], se, Oe, e, an, P[this.layer].el) !== "continue" || $t(P[this.layer].el, se, Oe);
|
|
2176
2176
|
}).bind({
|
|
2177
2177
|
layer: u
|
|
2178
2178
|
}), 24))), u++;
|
|
2179
2179
|
} while (n.bubbleScroll && h !== p && (h = ce(h, !1)));
|
|
2180
|
-
|
|
2180
|
+
Qn = f;
|
|
2181
2181
|
}
|
|
2182
|
-
}, 30),
|
|
2182
|
+
}, 30), Bt = function(n) {
|
|
2183
2183
|
var t = n.originalEvent, a = n.putSortable, o = n.dragEl, i = n.activeSortable, l = n.dispatchSortableEvent, r = n.hideGhostForTarget, p = n.unhideGhostForTarget;
|
|
2184
2184
|
if (t) {
|
|
2185
2185
|
var f = a || i;
|
|
@@ -2191,9 +2191,9 @@ var Cn = Dt(function(e, n, t, a) {
|
|
|
2191
2191
|
}));
|
|
2192
2192
|
}
|
|
2193
2193
|
};
|
|
2194
|
-
function
|
|
2194
|
+
function tt() {
|
|
2195
2195
|
}
|
|
2196
|
-
|
|
2196
|
+
tt.prototype = {
|
|
2197
2197
|
startIndex: null,
|
|
2198
2198
|
dragStart: function(n) {
|
|
2199
2199
|
var t = n.oldDraggableIndex;
|
|
@@ -2205,27 +2205,27 @@ nt.prototype = {
|
|
|
2205
2205
|
var o = Ee(this.sortable.el, this.startIndex, this.options);
|
|
2206
2206
|
o ? this.sortable.el.insertBefore(t, o) : this.sortable.el.appendChild(t), this.sortable.animateAll(), a && a.animateAll();
|
|
2207
2207
|
},
|
|
2208
|
-
drop:
|
|
2208
|
+
drop: Bt
|
|
2209
2209
|
};
|
|
2210
|
-
te(
|
|
2210
|
+
te(tt, {
|
|
2211
2211
|
pluginName: "revertOnSpill"
|
|
2212
2212
|
});
|
|
2213
|
-
function
|
|
2213
|
+
function at() {
|
|
2214
2214
|
}
|
|
2215
|
-
|
|
2215
|
+
at.prototype = {
|
|
2216
2216
|
onSpill: function(n) {
|
|
2217
2217
|
var t = n.dragEl, a = n.putSortable, o = a || this.sortable;
|
|
2218
2218
|
o.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), o.animateAll();
|
|
2219
2219
|
},
|
|
2220
|
-
drop:
|
|
2220
|
+
drop: Bt
|
|
2221
2221
|
};
|
|
2222
|
-
te(
|
|
2222
|
+
te(at, {
|
|
2223
2223
|
pluginName: "removeOnSpill"
|
|
2224
2224
|
});
|
|
2225
|
-
x.mount(new
|
|
2226
|
-
x.mount(
|
|
2227
|
-
const
|
|
2228
|
-
var
|
|
2225
|
+
x.mount(new ns());
|
|
2226
|
+
x.mount(at, tt);
|
|
2227
|
+
const ts = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight: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}@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)}', as = ts;
|
|
2228
|
+
var is = function(e, n, t, a) {
|
|
2229
2229
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
2230
2230
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2231
2231
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2237,7 +2237,7 @@ var ts = function(e, n, t, a) {
|
|
|
2237
2237
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2238
2238
|
return Reflect.metadata(e, n);
|
|
2239
2239
|
};
|
|
2240
|
-
const
|
|
2240
|
+
const bt = [
|
|
2241
2241
|
{
|
|
2242
2242
|
type: "text",
|
|
2243
2243
|
label: "Your name",
|
|
@@ -2258,7 +2258,7 @@ const gt = [
|
|
|
2258
2258
|
required: !0,
|
|
2259
2259
|
order: 1
|
|
2260
2260
|
}
|
|
2261
|
-
],
|
|
2261
|
+
], jt = class {
|
|
2262
2262
|
constructor(e) {
|
|
2263
2263
|
v(this, e), this.valueChanged = k(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.formFields = void 0, this.watchFields = void 0;
|
|
2264
2264
|
}
|
|
@@ -2278,7 +2278,7 @@ const gt = [
|
|
|
2278
2278
|
d("nylas-booking-form-config", "disconnectedCallback");
|
|
2279
2279
|
}
|
|
2280
2280
|
componentWillLoad() {
|
|
2281
|
-
d("nylas-booking-form-config", "componentWillLoad"), this.host.setAttribute("name", this.name), this.formFields = [...
|
|
2281
|
+
d("nylas-booking-form-config", "componentWillLoad"), this.host.setAttribute("name", this.name), this.formFields = [...bt];
|
|
2282
2282
|
}
|
|
2283
2283
|
componentDidLoad() {
|
|
2284
2284
|
d("nylas-booking-form-config", "componentDidLoad"), this.selectedConfiguration && this.updateFormFields(this.selectedConfiguration);
|
|
@@ -2291,9 +2291,9 @@ const gt = [
|
|
|
2291
2291
|
};
|
|
2292
2292
|
const n = Object.entries(((i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.additional_fields) || {}).map(([r, p]) => ({ ...p, key: r })) || this.additionalFields || [];
|
|
2293
2293
|
this.formFields = [
|
|
2294
|
-
...
|
|
2294
|
+
...bt,
|
|
2295
2295
|
...n.sort((r, p) => r.order - p.order).map((r, p) => {
|
|
2296
|
-
const f =
|
|
2296
|
+
const f = rt.find((u) => u.type === r.type);
|
|
2297
2297
|
if (!f)
|
|
2298
2298
|
return { ...r, isOpen: !1, typeLabel: "Unknown" };
|
|
2299
2299
|
const m = f.label;
|
|
@@ -2348,7 +2348,7 @@ const gt = [
|
|
|
2348
2348
|
nylasFormDropdownChangedHandler(e) {
|
|
2349
2349
|
const { name: n, value: t } = e.detail;
|
|
2350
2350
|
if (n === "add-field") {
|
|
2351
|
-
const a =
|
|
2351
|
+
const a = rt.find((p) => p.type === t), o = Math.max(...this.formFields.map((p) => p.order)), i = this.formFields.filter((p) => p.type === a.type).map((p) => p.key), l = this.findNextMissingNumber(i), r = { ...a, label: a.label, key: `${a.type}_${a.label.split(" ").join("-")}_${l}`, order: o + 1 };
|
|
2352
2352
|
this.formFields = [...this.formFields, r];
|
|
2353
2353
|
}
|
|
2354
2354
|
}
|
|
@@ -2419,7 +2419,7 @@ const gt = [
|
|
|
2419
2419
|
this.formFields = this.formFields.map((t, a) => (a === e && (t.default = n.detail.value), t));
|
|
2420
2420
|
}
|
|
2421
2421
|
render() {
|
|
2422
|
-
return s(
|
|
2422
|
+
return s(E, { key: "14023377f442481722a8ee28a23af6b90ca2a1e4" }, s("div", { key: "2d4592aaddb4fdb3a5554722911ae59828787572", class: "nylas-booking-form-config", part: "nbfc" }, s("div", { key: "c501aca03d6eda77c2c8bd3857c9225325541d4c", class: "header", part: "nbfc__header" }, s("div", { key: "9fa0ffaf949e3d6df58c1a76e704d21daad74b01", class: "header_text" }, s("h3", { key: "541428c7f503cbe3c496e3f584ad2d9c280ad34f" }, c.t("nylasBookingFormConfig.headerTitle")), s("p", { key: "561a43d888b4a5955c9559111996256b79aef5a3" }, c.t("nylasBookingFormConfig.headerSubTitle"))), s("div", { key: "bc598d62668969f69600a508defaedf33785d73d", class: "header_action" }, s("select-dropdown", { key: "ae1b749a3eb837c921846ed78c66f3bc1f10e97d", name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: va, withSearch: !1, withChevron: !1, dropdownButtonText: c.t("nylasBookingFormConfig.dropdownButtonText") }, s("span", { key: "063b42e6a11d53515c44f41fa1c04fea91e3e70e", slot: "select-icon" }, s("plus-icon", { key: "0d72edd5bf172984f34ff9b84f2734fddef3d6e8", width: "15", height: "15" }))))), s("div", { key: "a6cbfedd77b196d14e8fd137a2a929eecf601404", class: "content" }, s("div", { key: "88aa4545ab47a06f2f8cb82fa4feb10c77e54830", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, n) => s("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: n }, s("div", { class: "form-field_header", part: "nbfc__form_field-header" }, s("span", { class: "dragable" }, s("dragable-icon", { width: "24", height: "25" })), s("div", { class: "form-field_header_text" }, s("h4", null, e.label), s("p", null, e.typeLabel)), s("div", { class: "form-field_header_actions" }, s("span", { class: "is-required" }, e.required ? "Required" : "Optional"), !e.readonly && s("button", { onClick: () => {
|
|
2423
2423
|
const t = this.watchFields.title, a = this.watchFields.description;
|
|
2424
2424
|
if (t && t.includes(e.key)) {
|
|
2425
2425
|
e.error = "This field is used in the event title and cannot be removed.", this.formFields = [...this.formFields], setTimeout(() => {
|
|
@@ -2451,7 +2451,7 @@ const gt = [
|
|
|
2451
2451
|
return !0;
|
|
2452
2452
|
}
|
|
2453
2453
|
get host() {
|
|
2454
|
-
return
|
|
2454
|
+
return L(this);
|
|
2455
2455
|
}
|
|
2456
2456
|
static get watchers() {
|
|
2457
2457
|
return {
|
|
@@ -2462,8 +2462,8 @@ const gt = [
|
|
|
2462
2462
|
};
|
|
2463
2463
|
}
|
|
2464
2464
|
};
|
|
2465
|
-
|
|
2466
|
-
|
|
2465
|
+
is([
|
|
2466
|
+
T({
|
|
2467
2467
|
name: "nylas-booking-form-config",
|
|
2468
2468
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2469
2469
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2474,10 +2474,10 @@ ts([
|
|
|
2474
2474
|
xn("design:type", Function),
|
|
2475
2475
|
xn("design:paramtypes", []),
|
|
2476
2476
|
xn("design:returntype", void 0)
|
|
2477
|
-
],
|
|
2478
|
-
|
|
2479
|
-
const
|
|
2480
|
-
var
|
|
2477
|
+
], jt.prototype, "render", null);
|
|
2478
|
+
jt.style = as;
|
|
2479
|
+
const ss = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-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:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', os = ss;
|
|
2480
|
+
var ls = function(e, n, t, a) {
|
|
2481
2481
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
2482
2482
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2483
2483
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2489,7 +2489,7 @@ var ss = function(e, n, t, a) {
|
|
|
2489
2489
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2490
2490
|
return Reflect.metadata(e, n);
|
|
2491
2491
|
};
|
|
2492
|
-
const
|
|
2492
|
+
const Wt = class {
|
|
2493
2493
|
constructor(e) {
|
|
2494
2494
|
var n, t, a;
|
|
2495
2495
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "buffer-time", this.buffer = ((a = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.availability_rules) == null ? void 0 : a.buffer) ?? { before: 0, after: 0 }, this.selectedLanguage = void 0, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after, this.componentLoaded = !1;
|
|
@@ -2586,13 +2586,13 @@ const jt = class {
|
|
|
2586
2586
|
value: a
|
|
2587
2587
|
};
|
|
2588
2588
|
});
|
|
2589
|
-
return s(
|
|
2589
|
+
return s(E, null, s("div", { class: "nylas-buffer-time", part: "nbt" }, s("div", { class: "header", part: "nbt__header" }, s("h3", null, c.t("nylasBufferTime.headerTitle")), s("p", null, c.t("nylasBufferTime.headerSubTitle"), s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasBufferTime.tooltip.desc"))))), s("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, s("div", { class: "nylas-buffer-time__dropdown" }, s("div", { class: "nylas-buffer-time__row" }, s("label", null, c.t("nylasBufferTime.beforeBufferLabel")), s("div", { class: "dropdown-container" }, this.componentLoaded && s("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) }), s("span", null, c.t("nylasBufferTime.minutesShort")))), s("div", { class: "nylas-buffer-time__row" }, s("label", null, c.t("nylasBufferTime.afterBufferLabel")), s("div", { class: "dropdown-container" }, this.componentLoaded && s("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) }), s("span", null, c.t("nylasBufferTime.minutesShort"))))), s("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, s("h4", null, c.t("nylasBufferTime.previewHeader")), this.renderPreview()))));
|
|
2590
2590
|
}
|
|
2591
2591
|
static get formAssociated() {
|
|
2592
2592
|
return !0;
|
|
2593
2593
|
}
|
|
2594
2594
|
get host() {
|
|
2595
|
-
return
|
|
2595
|
+
return L(this);
|
|
2596
2596
|
}
|
|
2597
2597
|
static get watchers() {
|
|
2598
2598
|
return {
|
|
@@ -2602,8 +2602,8 @@ const jt = class {
|
|
|
2602
2602
|
};
|
|
2603
2603
|
}
|
|
2604
2604
|
};
|
|
2605
|
-
|
|
2606
|
-
|
|
2605
|
+
ls([
|
|
2606
|
+
T({
|
|
2607
2607
|
name: "nylas-buffer-time",
|
|
2608
2608
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2609
2609
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2620,10 +2620,10 @@ ss([
|
|
|
2620
2620
|
wn("design:type", Function),
|
|
2621
2621
|
wn("design:paramtypes", []),
|
|
2622
2622
|
wn("design:returntype", void 0)
|
|
2623
|
-
],
|
|
2624
|
-
|
|
2625
|
-
const
|
|
2626
|
-
var
|
|
2623
|
+
], Wt.prototype, "render", null);
|
|
2624
|
+
Wt.style = os;
|
|
2625
|
+
const rs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-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}', ds = rs;
|
|
2626
|
+
var cs = function(e, n, t, a) {
|
|
2627
2627
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
2628
2628
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2629
2629
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2635,7 +2635,7 @@ var rs = function(e, n, t, a) {
|
|
|
2635
2635
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2636
2636
|
return Reflect.metadata(e, n);
|
|
2637
2637
|
};
|
|
2638
|
-
const
|
|
2638
|
+
const Ut = class {
|
|
2639
2639
|
constructor(e) {
|
|
2640
2640
|
v(this, e), this.valueChanged = k(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 = "";
|
|
2641
2641
|
}
|
|
@@ -2687,13 +2687,13 @@ const Wt = class {
|
|
|
2687
2687
|
selected: ((a = this.defaultSelectedCalendars) == null ? void 0 : a.includes(t.id)) || ((o = this.defaultSelectedCalendars) != null && o.includes("primary") || ((i = this.defaultSelectedCalendars) == null ? void 0 : i.length) === 0 ? t.id === ((l = this.currentUser) == null ? void 0 : l.email) || t.id === this.name.split("participant-")[1] : !1)
|
|
2688
2688
|
};
|
|
2689
2689
|
})) ?? [];
|
|
2690
|
-
return s(
|
|
2690
|
+
return s(E, null, s("div", { class: "nylas-calendar-picker", part: "ncp" }, e.length > 0 ? s("div", { class: "nylas-calendar-picker__dropdown" }, s("multi-select-dropdown", { name: this.name, options: e, error: this.error, exportparts: "msd_dropdown: ncp__dropdown, msd_dropdown-button: ncp__dropdown-button, msd_dropdown-content: ncp__dropdown-content" })) : s("div", { class: "nylas-calendar-picker__loading" }, s("span", { class: "label" }, c.t("nylasCalendarPicker.calendarPickerLabel"), " ", s("info-icon", null)), s("div", { class: "loading-button" }, s("span", null, c.t("loading"), "...")))));
|
|
2691
2691
|
}
|
|
2692
2692
|
static get formAssociated() {
|
|
2693
2693
|
return !0;
|
|
2694
2694
|
}
|
|
2695
2695
|
get host() {
|
|
2696
|
-
return
|
|
2696
|
+
return L(this);
|
|
2697
2697
|
}
|
|
2698
2698
|
static get watchers() {
|
|
2699
2699
|
return {
|
|
@@ -2702,8 +2702,8 @@ const Wt = class {
|
|
|
2702
2702
|
};
|
|
2703
2703
|
}
|
|
2704
2704
|
};
|
|
2705
|
-
|
|
2706
|
-
|
|
2705
|
+
cs([
|
|
2706
|
+
T({
|
|
2707
2707
|
name: "nylas-calendar-picker",
|
|
2708
2708
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2709
2709
|
["schedulerConfig.currentUser", "currentUser"],
|
|
@@ -2720,10 +2720,10 @@ rs([
|
|
|
2720
2720
|
kn("design:type", Function),
|
|
2721
2721
|
kn("design:paramtypes", []),
|
|
2722
2722
|
kn("design:returntype", void 0)
|
|
2723
|
-
],
|
|
2724
|
-
|
|
2725
|
-
const
|
|
2726
|
-
var
|
|
2723
|
+
], Ut.prototype, "render", null);
|
|
2724
|
+
Ut.style = ds;
|
|
2725
|
+
const ps = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}', fs = ps;
|
|
2726
|
+
var us = function(e, n, t, a) {
|
|
2727
2727
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
2728
2728
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2729
2729
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2735,7 +2735,7 @@ var ps = function(e, n, t, a) {
|
|
|
2735
2735
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2736
2736
|
return Reflect.metadata(e, n);
|
|
2737
2737
|
};
|
|
2738
|
-
const
|
|
2738
|
+
const Zt = class {
|
|
2739
2739
|
constructor(e) {
|
|
2740
2740
|
v(this, e), this.valueChanged = k(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;
|
|
2741
2741
|
}
|
|
@@ -2766,13 +2766,13 @@ const Ut = class {
|
|
|
2766
2766
|
this.message = n, this.internals.setFormValue(n, this.name), this.valueChanged.emit({ value: n, name: this.name });
|
|
2767
2767
|
}
|
|
2768
2768
|
render() {
|
|
2769
|
-
return s(
|
|
2769
|
+
return s(E, { key: "c358365bb3451584136cc36da9ab2a789c618336" }, s("div", { key: "0fbd160194e3d81e9b285a316a61985f7e98863a", class: "nylas-cancellation-policy", part: "ncpolicy" }, s("label", { key: "d09b7db1173e3223dee84ffd18444539951ab393", htmlFor: this.name }, c.t("nylasCancellationPolicy.cancellationPolicyLabel"), s("span", { key: "ebc64fa452d982b58ad1202fd2ea96d4d389d1dc", class: "label-icon" }, s("tooltip-component", { key: "f9245df67f0389a2c5d0ccd128a88c8ee5ef1240" }, s("info-icon", { key: "4aa2e5e83c02185b9c753037a238b9f4156c5306", slot: "tooltip-icon" }), s("span", { key: "349f25b38f4255ba441dde777fd3d1d7d4d1b5f3", slot: "tooltip-content" }, c.t("nylasCancellationPolicy.tooltip.desc"))))), s("textarea", { key: "3f8fabd61ba944cca152ec8363b2006eec24fde3", id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: (e) => this.handleChange(e) })));
|
|
2770
2770
|
}
|
|
2771
2771
|
static get formAssociated() {
|
|
2772
2772
|
return !0;
|
|
2773
2773
|
}
|
|
2774
2774
|
get host() {
|
|
2775
|
-
return
|
|
2775
|
+
return L(this);
|
|
2776
2776
|
}
|
|
2777
2777
|
static get watchers() {
|
|
2778
2778
|
return {
|
|
@@ -2782,8 +2782,8 @@ const Ut = class {
|
|
|
2782
2782
|
};
|
|
2783
2783
|
}
|
|
2784
2784
|
};
|
|
2785
|
-
|
|
2786
|
-
|
|
2785
|
+
us([
|
|
2786
|
+
T({
|
|
2787
2787
|
name: "nylas-cancellation-policy",
|
|
2788
2788
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2789
2789
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2795,10 +2795,10 @@ ps([
|
|
|
2795
2795
|
En("design:type", Function),
|
|
2796
2796
|
En("design:paramtypes", []),
|
|
2797
2797
|
En("design:returntype", void 0)
|
|
2798
|
-
],
|
|
2799
|
-
|
|
2800
|
-
const
|
|
2801
|
-
var
|
|
2798
|
+
], Zt.prototype, "render", null);
|
|
2799
|
+
Zt.style = fs;
|
|
2800
|
+
const ms = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size: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}', hs = ms;
|
|
2801
|
+
var ys = function(e, n, t, a) {
|
|
2802
2802
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
2803
2803
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2804
2804
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2810,7 +2810,7 @@ var ms = function(e, n, t, a) {
|
|
|
2810
2810
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2811
2811
|
return Reflect.metadata(e, n);
|
|
2812
2812
|
};
|
|
2813
|
-
const
|
|
2813
|
+
const qt = class {
|
|
2814
2814
|
constructor(e) {
|
|
2815
2815
|
v(this, e), this.valueChanged = k(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;
|
|
2816
2816
|
}
|
|
@@ -2872,15 +2872,15 @@ const Zt = class {
|
|
|
2872
2872
|
render() {
|
|
2873
2873
|
var t, a, o, i, l, r, p, f;
|
|
2874
2874
|
const e = this.participantsState.find((m) => m.is_organizer), n = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.email);
|
|
2875
|
-
return s(
|
|
2875
|
+
return s(E, { key: "016cea40c3da5ac7e82648e64f9bcd7aab957821" }, s("div", { key: "38fef4c94332010aa83d32af4dc9f3b042b9cc33", class: "nylas-confirmation-email", part: "nce" }, s("div", { key: "0a99bcee1b66e7c833d73c1813b5caddb54a48ce", class: "header", part: "nce__header" }, s("div", { key: "3cf914b0b71ef62330e5796339f63179ccdd20d6" }, s("h3", { key: "e5f31f31ef324d5ab533ea48bd7e938eeff933da" }, ((a = (t = this.confirmationEmail) == null ? void 0 : t.booking_confirmed) == null ? void 0 : a.title) || c.t("nylasConfirmationEmail.headerTitle", { organizerName: `${n ? ` with ${n}` : ""}` })), s("p", { key: "8e325376cf748c62af944ed34f2a6ec40ea58b3a" }, c.t("nylasConfirmationEmail.headerSubTitle"))), this.isConfirmationEmailOpen ? s("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, s("span", { class: `chevron ${this.isConfirmationEmailOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, s("chevron-icon", { width: "24", height: "24" }))) : s("button-component", { variant: "basic", clickHandler: (m) => {
|
|
2876
2876
|
m.preventDefault(), this.toggleConfirmationEmail();
|
|
2877
|
-
} }, s("edit-icon", { width: "16", height: "16" }), c.t("nylasConfirmationEmail.editButtonText"))), this.isConfirmationEmailOpen ? s("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, s("div", { class: "nylas-confirmation-email__section" },
|
|
2877
|
+
} }, s("edit-icon", { width: "16", height: "16" }), c.t("nylasConfirmationEmail.editButtonText"))), this.isConfirmationEmailOpen ? s("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, s("div", { class: "nylas-confirmation-email__section" }, this.nylasBranding && s("div", { class: "nylas-confirmation-email__row" }, s("label", null, c.t("nylasConfirmationEmail.nylasBranding.label"), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasConfirmationEmail.nylasBranding.tooltip.desc"))))), s("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 })), s("div", { class: "nylas-confirmation-email__row" }, s("div", { class: "subsection" }, s("div", { class: "input-container" }, s("label", null, c.t("nylasConfirmationEmail.companyLogoUrl.label"), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasConfirmationEmail.companyLogoUrl.tooltip.desc"))))), this.confirmationEmail && s("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", imageUrl: ((i = this.confirmationEmail) == null ? void 0 : i.logo) ?? "" })))), s("div", { class: "nylas-confirmation-email__row full-width-col" }, s("div", { class: "subsection" }, s("h3", null, c.t("nylasConfirmationEmail.emailMessage.header")), s("div", { class: "input-container" }, s("label", { htmlFor: "title" }, c.t("nylasConfirmationEmail.emailMessage.label"), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasConfirmationEmail.emailMessage.tooltip.desc"))))), s("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: c.t("nylasConfirmationEmail.headerTitle", { organizerName: `${n ? ` with ${n}` : ""}` }), defaultValue: ((r = (l = this.confirmationEmail) == null ? void 0 : l.booking_confirmed) == null ? void 0 : r.title) ?? "" })), s("div", { class: "input-container" }, s("textarea-component", { label: c.t("nylasConfirmationEmail.emailMessage.additionalInfoLabel"), name: "confirmation-email-body", id: "confirmation-email-body", placeholder: c.t("nylasConfirmationEmail.emailMessage.additionalInfoPlaceholder"), tooltip: c.t("nylasConfirmationEmail.emailMessage.additionalInfoTooltip"), maxLength: 500, defaultValue: ((f = (p = this.confirmationEmail) == null ? void 0 : p.booking_confirmed) == null ? void 0 : f.body) ?? "" })))))) : s("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, s("p", null, s("span", { class: "summary-icon" }, s("person-clipboard-icon", null)), c.t("nylasConfirmationEmail.allHosts")), s("p", null, s("span", { class: "summary-icon" }, s("clock-icon", null)), c.t("nylasConfirmationEmail.immediatelyUponBooking")))));
|
|
2878
2878
|
}
|
|
2879
2879
|
static get formAssociated() {
|
|
2880
2880
|
return !0;
|
|
2881
2881
|
}
|
|
2882
2882
|
get host() {
|
|
2883
|
-
return
|
|
2883
|
+
return L(this);
|
|
2884
2884
|
}
|
|
2885
2885
|
static get watchers() {
|
|
2886
2886
|
return {
|
|
@@ -2891,8 +2891,8 @@ const Zt = class {
|
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
2893
|
};
|
|
2894
|
-
|
|
2895
|
-
|
|
2894
|
+
ys([
|
|
2895
|
+
T({
|
|
2896
2896
|
name: "nylas-confirmation-email",
|
|
2897
2897
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2898
2898
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2910,10 +2910,10 @@ ms([
|
|
|
2910
2910
|
Ln("design:type", Function),
|
|
2911
2911
|
Ln("design:paramtypes", []),
|
|
2912
2912
|
Ln("design:returntype", void 0)
|
|
2913
|
-
],
|
|
2914
|
-
|
|
2915
|
-
const
|
|
2916
|
-
var
|
|
2913
|
+
], qt.prototype, "render", null);
|
|
2914
|
+
qt.style = hs;
|
|
2915
|
+
const gs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}', bs = gs;
|
|
2916
|
+
var vs = function(e, n, t, a) {
|
|
2917
2917
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
2918
2918
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2919
2919
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -2925,7 +2925,7 @@ var gs = function(e, n, t, a) {
|
|
|
2925
2925
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2926
2926
|
return Reflect.metadata(e, n);
|
|
2927
2927
|
};
|
|
2928
|
-
const
|
|
2928
|
+
const Jt = class {
|
|
2929
2929
|
constructor(e) {
|
|
2930
2930
|
var n;
|
|
2931
2931
|
v(this, e), this.valueChanged = k(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 = {};
|
|
@@ -2963,7 +2963,7 @@ const qt = class {
|
|
|
2963
2963
|
this.participantDefaultSelectedCalendars[u.email] = ((g = u.availability) == null ? void 0 : g.calendar_ids) || [];
|
|
2964
2964
|
const b = h.calendars ?? [];
|
|
2965
2965
|
(S = (_ = u.availability) == null ? void 0 : _.calendar_ids) == null || S.forEach(($) => {
|
|
2966
|
-
!(b != null && b.some((
|
|
2966
|
+
!(b != null && b.some((A) => A.id === $)) && $ !== "primary" && b.push({ id: $, name: $ });
|
|
2967
2967
|
}), o[u.email] = b;
|
|
2968
2968
|
}), a && (m == null || m.forEach((u) => {
|
|
2969
2969
|
var h, b, g, _;
|
|
@@ -3020,7 +3020,7 @@ const qt = class {
|
|
|
3020
3020
|
}), n;
|
|
3021
3021
|
}
|
|
3022
3022
|
render() {
|
|
3023
|
-
return s(
|
|
3023
|
+
return s(E, { key: "37c0890d0abf880f1b5bc5d293dd2488f818b488" }, s("div", { key: "a470c818d30852cda8972f0a8d171711bedb30a1", class: "nylas-connected-calendars", part: "nccals" }, s("div", { key: "2613e7ea201d308647b175365b30103ef122c8db", class: "header", part: "nccals__header" }, s("h3", { key: "a5e16877302378b7c50a935d77ed5fa9a3d56e95" }, c.t("nylasConnectedCalendars.headerTitle")), s("p", { key: "3a62639bbc3e120938a688ca4f57b51bd9316013" }, c.t("nylasConnectedCalendars.headerSubTitle"), s("tooltip-component", { key: "61c94d151261d57589d238e066c821e59f3ed860" }, s("info-icon", { key: "d058b4c96a04beb75b57ebd7c5e9dea11742c8e3", slot: "tooltip-icon" }), s("span", { key: "020d445f3d91a62e70500770129b50c516ed9b06", slot: "tooltip-content" }, c.t("nylasConnectedCalendars.tooltip.desc"))))), s("div", { key: "0db9adaa2acd2d4ab6ce273a564fbea5c65e8d9c", class: "content", part: "nccals__content" }, s("form", { key: "606194e7bed907cbae36243a3ce5d0c366dd93a6", ref: (e) => this.connectedCalendarsFormRef = e }, Object.keys(this.participantCalendars).map((e, n) => {
|
|
3024
3024
|
const t = this.selectedCalendars[e], a = this.participantCalendars[e];
|
|
3025
3025
|
if (!(!t || !t.name))
|
|
3026
3026
|
return s("div", { class: "participant-container", part: "nccals__container", key: `participant-conatiner-${n}` }, s("div", { class: "participant-title", part: "nccals__title" }, s("p", null, c.t("nylasConnectedCalendars.participantCalendarTitle", { participantName: t.name })), s("div", { class: "participant-toggle", part: "nccals__toggle-container" }, s("span", { class: `chevron ${t.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
@@ -3032,7 +3032,7 @@ const qt = class {
|
|
|
3032
3032
|
return !0;
|
|
3033
3033
|
}
|
|
3034
3034
|
get host() {
|
|
3035
|
-
return
|
|
3035
|
+
return L(this);
|
|
3036
3036
|
}
|
|
3037
3037
|
static get watchers() {
|
|
3038
3038
|
return {
|
|
@@ -3045,8 +3045,8 @@ const qt = class {
|
|
|
3045
3045
|
};
|
|
3046
3046
|
}
|
|
3047
3047
|
};
|
|
3048
|
-
|
|
3049
|
-
|
|
3048
|
+
vs([
|
|
3049
|
+
T({
|
|
3050
3050
|
name: "nylas-connected-calendars",
|
|
3051
3051
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3052
3052
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -3060,10 +3060,10 @@ gs([
|
|
|
3060
3060
|
Tn("design:type", Function),
|
|
3061
3061
|
Tn("design:paramtypes", []),
|
|
3062
3062
|
Tn("design:returntype", void 0)
|
|
3063
|
-
],
|
|
3064
|
-
|
|
3065
|
-
const
|
|
3066
|
-
var
|
|
3063
|
+
], Jt.prototype, "render", null);
|
|
3064
|
+
Jt.style = bs;
|
|
3065
|
+
const _s = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}', Cs = _s;
|
|
3066
|
+
var xs = function(e, n, t, a) {
|
|
3067
3067
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3068
3068
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3069
3069
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3075,7 +3075,7 @@ var _s = function(e, n, t, a) {
|
|
|
3075
3075
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3076
3076
|
return Reflect.metadata(e, n);
|
|
3077
3077
|
};
|
|
3078
|
-
const
|
|
3078
|
+
const Gt = class {
|
|
3079
3079
|
constructor(e) {
|
|
3080
3080
|
v(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;
|
|
3081
3081
|
}
|
|
@@ -3092,16 +3092,16 @@ const Jt = class {
|
|
|
3092
3092
|
d("nylas-custom-booking-flow", "componentWillLoad");
|
|
3093
3093
|
}
|
|
3094
3094
|
componentDidLoad() {
|
|
3095
|
-
d("nylas-custom-booking-flow", "componentDidLoad"),
|
|
3095
|
+
d("nylas-custom-booking-flow", "componentDidLoad"), et(["inputs"], this.el);
|
|
3096
3096
|
}
|
|
3097
3097
|
render() {
|
|
3098
|
-
return s(
|
|
3098
|
+
return s(E, { key: "b60f34d28d7e04b9c8b6e60be4b76967c4a5b6e5", part: "ncbflow" }, s("nylas-form-card", { key: "fe51e7a1521f6ca68d06e4ca3bb4f049404fd1cd", exportparts: "nfc__header: ncbflow__header" }, s("h1", { key: "5df35cd279a4b9af4a8d85e224ff09a552c37ff9", slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbflow__title" }, c.t("nylasCustomBookingFlow.headerTitle")), s("div", { key: "f46efa9eac7ec046b07344b5af4737c955431cad", slot: "content", class: "nylas-custom-booking-flow__content", part: "ncbflow__content" }, s("slot", { key: "d06a48b2af4f5316b90d0186123fb2213341c634", name: "inputs" }))));
|
|
3099
3099
|
}
|
|
3100
3100
|
static get formAssociated() {
|
|
3101
3101
|
return !0;
|
|
3102
3102
|
}
|
|
3103
3103
|
get el() {
|
|
3104
|
-
return
|
|
3104
|
+
return L(this);
|
|
3105
3105
|
}
|
|
3106
3106
|
static get watchers() {
|
|
3107
3107
|
return {
|
|
@@ -3109,8 +3109,8 @@ const Jt = class {
|
|
|
3109
3109
|
};
|
|
3110
3110
|
}
|
|
3111
3111
|
};
|
|
3112
|
-
|
|
3113
|
-
|
|
3112
|
+
xs([
|
|
3113
|
+
T({
|
|
3114
3114
|
name: "nylas-custom-booking-flow",
|
|
3115
3115
|
eventToProps: {},
|
|
3116
3116
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
|
|
@@ -3119,10 +3119,10 @@ _s([
|
|
|
3119
3119
|
Hn("design:type", Function),
|
|
3120
3120
|
Hn("design:paramtypes", []),
|
|
3121
3121
|
Hn("design:returntype", void 0)
|
|
3122
|
-
],
|
|
3123
|
-
|
|
3124
|
-
const
|
|
3125
|
-
var
|
|
3122
|
+
], Gt.prototype, "render", null);
|
|
3123
|
+
Gt.style = Cs;
|
|
3124
|
+
const ws = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size: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}', ks = ws;
|
|
3125
|
+
var Es = function(e, n, t, a) {
|
|
3126
3126
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3127
3127
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3128
3128
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3134,7 +3134,7 @@ var ws = function(e, n, t, a) {
|
|
|
3134
3134
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3135
3135
|
return Reflect.metadata(e, n);
|
|
3136
3136
|
};
|
|
3137
|
-
const
|
|
3137
|
+
const Xt = class {
|
|
3138
3138
|
constructor(e) {
|
|
3139
3139
|
v(this, e), this.valueChanged = k(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;
|
|
3140
3140
|
}
|
|
@@ -3204,13 +3204,13 @@ const Gt = class {
|
|
|
3204
3204
|
if (!this.requiresSlug)
|
|
3205
3205
|
return null;
|
|
3206
3206
|
const e = typeof this.urlSlug < "u";
|
|
3207
|
-
return s(
|
|
3207
|
+
return s(E, null, s("div", { class: "nylas-custom-event-slug", part: "nces" }, s("div", { class: "header", part: "nces__header" }, s("div", null, s("h3", null, c.t("nylasCustomEventSlug.headerTitle")), s("p", null, c.t("nylasCustomEventSlug.headerSubTitle"))), s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, s("div", { class: "nylas-custom-event-slug__section" }, s("div", { class: "nylas-custom-event-slug__row" }, s("div", { class: "input-container" }, s("label", null, c.t("nylasCustomEventSlug.eventSlugLabel"), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasCustomEventSlug.tooltip.desc"))))), s("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, s("div", { slot: "prefix", class: "prefix" }, "/"), e && s("input-component", { name: "event-slug", id: "event-slug", type: "text", required: !1, placeholder: "my-link-name", exportparts: "ic_input: nces__input-textfield", defaultValue: this.urlSlug }), s("div", { slot: "icon", class: { icon: !0, disabled: !this.urlSlug }, onClick: () => !this.copied && !!this.urlSlug && this.copyToClipboard() }, this.copied ? s("div", { class: "copied" }, s("checkmark-icon", { width: "12", height: "18" }), " ", c.t("nylasCustomEventSlug.copied")) : s("copy-icon", { width: "12", height: "18" }))), this.slugErrorMessage && s("span", { class: "error-message" }, this.slugErrorMessage)))))));
|
|
3208
3208
|
}
|
|
3209
3209
|
static get formAssociated() {
|
|
3210
3210
|
return !0;
|
|
3211
3211
|
}
|
|
3212
3212
|
get host() {
|
|
3213
|
-
return
|
|
3213
|
+
return L(this);
|
|
3214
3214
|
}
|
|
3215
3215
|
static get watchers() {
|
|
3216
3216
|
return {
|
|
@@ -3220,8 +3220,8 @@ const Gt = class {
|
|
|
3220
3220
|
};
|
|
3221
3221
|
}
|
|
3222
3222
|
};
|
|
3223
|
-
|
|
3224
|
-
|
|
3223
|
+
Es([
|
|
3224
|
+
T({
|
|
3225
3225
|
name: "nylas-custom-event-slug",
|
|
3226
3226
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3227
3227
|
["schedulerConfig.requiresSlug", "requiresSlug"],
|
|
@@ -3239,10 +3239,10 @@ ws([
|
|
|
3239
3239
|
Sn("design:type", Function),
|
|
3240
3240
|
Sn("design:paramtypes", []),
|
|
3241
3241
|
Sn("design:returntype", void 0)
|
|
3242
|
-
],
|
|
3243
|
-
|
|
3244
|
-
const
|
|
3245
|
-
var
|
|
3242
|
+
], Xt.prototype, "render", null);
|
|
3243
|
+
Xt.style = ks;
|
|
3244
|
+
const Ls = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-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}}', Ts = Ls;
|
|
3245
|
+
var Hs = function(e, n, t, a) {
|
|
3246
3246
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3247
3247
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3248
3248
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3254,7 +3254,7 @@ var Ls = function(e, n, t, a) {
|
|
|
3254
3254
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3255
3255
|
return Reflect.metadata(e, n);
|
|
3256
3256
|
};
|
|
3257
|
-
const
|
|
3257
|
+
const Yt = class {
|
|
3258
3258
|
constructor(e) {
|
|
3259
3259
|
var n, t, a, o, i, l;
|
|
3260
3260
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.scheduler) == null ? void 0 : t.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((o = (a = this.selectedConfiguration) == null ? void 0 : a.scheduler) == null ? void 0 : o.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : l.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.selectedLanguage = void 0, this.allowGuestsToInvite = void 0, this.hideCancellationOptions = void 0, this.hideReschedulingOptions = void 0;
|
|
@@ -3321,13 +3321,13 @@ const Xt = class {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
render() {
|
|
3323
3323
|
const e = typeof this.hideCancellationOptions == "boolean" && typeof this.hideReschedulingOptions == "boolean" && typeof this.allowGuestsToInvite == "boolean";
|
|
3324
|
-
return s(
|
|
3324
|
+
return s(E, { key: "70bae066bb7d6f29c5c9bc93c58ea8513a021c38" }, e && s("div", { class: "nylas-customize-booking-settings", part: "ncbs" }, s("div", { class: "header", part: "ncbs__header" }, s("h3", null, c.t("nylasCustomizeBookingSettings.headerTitle")), s("p", null, c.t("nylasCustomizeBookingSettings.headerSubTitle"))), s("div", { class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, s("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, s("checkbox-component", { name: "hide_additional_guests", label: c.t("nylasCustomizeBookingSettings.allowGuests.label"), checked: this.allowGuestsToInvite }, s("span", { slot: "label", class: "label" }, s("p", { class: "label-contents" }, c.t("nylasCustomizeBookingSettings.allowGuests.label", { interpolation: { escapeValue: !1, escape: (n) => `${n}`, useRawValueToEscape: !0 } }))))), s("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, s("checkbox-component", { name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, s("span", { slot: "label", class: "label" }, s("p", { class: "label-contents" }, c.t("nylasCustomizeBookingSettings.hideReschedule.label")), s("tooltip-component", { id: "reschedule" }, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasCustomizeBookingSettings.hideReschedule.tooltip.desc")))))), s("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, s("checkbox-component", { name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, s("span", { slot: "label", class: "label" }, s("p", { class: "label-contents" }, c.t("nylasCustomizeBookingSettings.hideCancel.label")), s("tooltip-component", { id: "cancel" }, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasCustomizeBookingSettings.hideCancel.tooltip.desc")))))))));
|
|
3325
3325
|
}
|
|
3326
3326
|
static get formAssociated() {
|
|
3327
3327
|
return !0;
|
|
3328
3328
|
}
|
|
3329
3329
|
get host() {
|
|
3330
|
-
return
|
|
3330
|
+
return L(this);
|
|
3331
3331
|
}
|
|
3332
3332
|
static get watchers() {
|
|
3333
3333
|
return {
|
|
@@ -3337,8 +3337,8 @@ const Xt = class {
|
|
|
3337
3337
|
};
|
|
3338
3338
|
}
|
|
3339
3339
|
};
|
|
3340
|
-
|
|
3341
|
-
|
|
3340
|
+
Hs([
|
|
3341
|
+
T({
|
|
3342
3342
|
name: "nylas-customize-booking-settings",
|
|
3343
3343
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3344
3344
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3349,10 +3349,10 @@ Ls([
|
|
|
3349
3349
|
On("design:type", Function),
|
|
3350
3350
|
On("design:paramtypes", []),
|
|
3351
3351
|
On("design:returntype", void 0)
|
|
3352
|
-
],
|
|
3353
|
-
|
|
3354
|
-
const
|
|
3355
|
-
var
|
|
3352
|
+
], Yt.prototype, "render", null);
|
|
3353
|
+
Yt.style = Ts;
|
|
3354
|
+
const Ss = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-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:16px}.toggle label{display:inline-flex;align-items:center;gap:8px}.toggle toggle-switch{margin-right:12px}', Os = Ss;
|
|
3355
|
+
var Ds = function(e, n, t, a) {
|
|
3356
3356
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3357
3357
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3358
3358
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3364,7 +3364,84 @@ var Ss = function(e, n, t, a) {
|
|
|
3364
3364
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3365
3365
|
return Reflect.metadata(e, n);
|
|
3366
3366
|
};
|
|
3367
|
-
const
|
|
3367
|
+
const Kt = class {
|
|
3368
|
+
constructor(e) {
|
|
3369
|
+
v(this, e), this.valueChanged = k(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;
|
|
3370
|
+
}
|
|
3371
|
+
connectedCallback() {
|
|
3372
|
+
d("nylas-disable-emails", "connectedCallback");
|
|
3373
|
+
}
|
|
3374
|
+
disconnectedCallback() {
|
|
3375
|
+
d("nylas-disable-emails", "disconnectedCallback");
|
|
3376
|
+
}
|
|
3377
|
+
componentWillLoad() {
|
|
3378
|
+
d("nylas-disable-emails", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
3379
|
+
}
|
|
3380
|
+
componentDidLoad() {
|
|
3381
|
+
d("nylas-disable-emails", "componentDidLoad");
|
|
3382
|
+
}
|
|
3383
|
+
elementNameChangedHandler(e) {
|
|
3384
|
+
d("nylas-disable-emails", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
3385
|
+
}
|
|
3386
|
+
selectedLanguageChangedHandler(e, n) {
|
|
3387
|
+
e !== n && c.changeLanguage(e);
|
|
3388
|
+
}
|
|
3389
|
+
nyalsFormSwitchToggledHandler(e) {
|
|
3390
|
+
d("nylas-confirmation-email", "nyalsFormSwitchToggledHandler", e.detail), console.log("nylas-confirmation-email", "nyalsFormSwitchToggledHandler", e.detail);
|
|
3391
|
+
const { checked: n } = e.detail;
|
|
3392
|
+
e.detail.name === "disable-emails" && (this.internals.setFormValue(JSON.stringify(!n), this.name), this.valueChanged.emit({ value: JSON.stringify(!n), name: this.name }));
|
|
3393
|
+
}
|
|
3394
|
+
render() {
|
|
3395
|
+
var e, n, t, a;
|
|
3396
|
+
return console.log("nylas-disable-emails", "render", (n = (e = this.selectedConfiguration) == null ? void 0 : e.event_booking) == null ? void 0 : n.disable_emails), s(E, { key: "fbbad6a7eb9e8d173302e2cfa4f75d48f19c9d2a" }, s("div", { key: "9eabf206ef46540057d6c02ad11444442bd6867b", class: "nylas-disable-emails", part: "nde" }, s("div", { key: "4c7ab6243bf65208291502752e8ef84cf97379f7", class: "header", part: "nde__header" }, s("div", { key: "4caf61d8ded4e46a8bfac89c18b590f460ef31e1" }, s("h3", { key: "996442f9d9edab2fea5f8b9f89d652225df2d294" }, c.t("eventCommunicationsTitle")), s("p", { key: "e9e9a3bd8f617592418e6a263f5d1a138feafd00" }, c.t("eventCommunicationsDescription")))), s("div", { key: "c2d7c65d314e43482a28452b25229109d702f748", class: "toggle", part: "nde__toggle" }, s("label", { key: "c81dcdd9889a67a7540612160f8073c69530ad06" }, c.t("nylasConfirmationEmail.confirmationEmail.label"), s("span", { key: "d966d0eb5ba9e9119dffb85931b7eb6ae755dd21", class: "label-icon" }, s("tooltip-component", { key: "a65d2279d1c6afea436ae18b81eb64fe839ebfd9" }, s("info-icon", { key: "f9f0d93a441d548acc3e343ffbe574030dba073b", slot: "tooltip-icon" }), s("span", { key: "1e489e3db9d8fb19fc7c483bb2dc77c4b3c58e1a", slot: "tooltip-content" }, " ", c.t("nylasConfirmationEmail.confirmationEmail.tooltip.desc"))))), s("toggle-switch", { key: "9bdf9d07c4b8eeccaf9e17f6fd934ddd3ffbf3b1", exportparts: "ts_label: nde__toggle-label, ts_input: nde_toggle-input, ts_slider: nde_toggle-slider", name: "disable-emails", checked: !((a = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) != null && a.disable_emails) }))));
|
|
3397
|
+
}
|
|
3398
|
+
static get formAssociated() {
|
|
3399
|
+
return !0;
|
|
3400
|
+
}
|
|
3401
|
+
get host() {
|
|
3402
|
+
return L(this);
|
|
3403
|
+
}
|
|
3404
|
+
static get watchers() {
|
|
3405
|
+
return {
|
|
3406
|
+
name: ["elementNameChangedHandler"],
|
|
3407
|
+
selectedLanguage: ["selectedLanguageChangedHandler"]
|
|
3408
|
+
};
|
|
3409
|
+
}
|
|
3410
|
+
};
|
|
3411
|
+
Ds([
|
|
3412
|
+
T({
|
|
3413
|
+
name: "nylas-disable-emails",
|
|
3414
|
+
stateToProps: /* @__PURE__ */ new Map([
|
|
3415
|
+
["schedulerConfig.selectedLanguage", "selectedLanguage"],
|
|
3416
|
+
["schedulerConfig.selectedConfiguration", "selectedConfiguration"]
|
|
3417
|
+
]),
|
|
3418
|
+
eventToProps: {
|
|
3419
|
+
valueChanged: async (e, n) => {
|
|
3420
|
+
const { valueChanged: t } = e.detail;
|
|
3421
|
+
t && t(e);
|
|
3422
|
+
}
|
|
3423
|
+
},
|
|
3424
|
+
fireRegisterEvent: !0
|
|
3425
|
+
}),
|
|
3426
|
+
Dn("design:type", Function),
|
|
3427
|
+
Dn("design:paramtypes", []),
|
|
3428
|
+
Dn("design:returntype", void 0)
|
|
3429
|
+
], Kt.prototype, "render", null);
|
|
3430
|
+
Kt.style = Os;
|
|
3431
|
+
const Is = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px;position:relative}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}.nylas-event-description div.event-description{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);white-space:nowrap;scrollbar-width:thin;min-height:50px;overflow-y:auto;white-space:pre-wrap;line-height:1.5;}.nylas-event-description div.event-description::-webkit-scrollbar{width:6px;height:6px}.nylas-event-description div.event-description.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-description span.add-additional-fields{display:flex;align-items:center;gap:8px}.nylas-event-description span.add-additional-fields button-component button{height:35px}.nylas-event-description span.help-text{display:inline-block;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px;position:relative}.nylas-event-description span.help-text span.label-icon{display:inline-block}.nylas-event-description span.help-text span.label-icon tooltip-component::part(tc__container){position:unset}.nylas-event-description span.help-text span.label-icon tooltip-component::part(tc__content){position:absolute;top:4px;left:50%;transform:translateX(-50%)}.nylas-event-description .highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:2px 5px;margin-left:4px;margin-bottom:4px;display:inline-block;vertical-align:baseline}.nylas-event-description .token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;margin-top:28px;overflow:auto;z-index:1;border-radius:4px;position:absolute;bottom:108px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.nylas-event-description .token-options{right:0;width:325px;max-width:unset}}.nylas-event-description .token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.nylas-event-description .token-options ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.nylas-event-description .token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.nylas-event-description .token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.nylas-event-description .token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.nylas-event-description .token-options ul li:hover,.nylas-event-description .token-options ul li:focus,.nylas-event-description .token-options ul li:active,.nylas-event-description .token-options ul li.active{background-color:var(--nylas-base-100)}.nylas-event-description .token-options ul li:hover .token-label .token,.nylas-event-description .token-options ul li:focus .token-label .token,.nylas-event-description .token-options ul li:active .token-label .token,.nylas-event-description .token-options ul li.active .token-label .token{color:var(--nylas-primary)}.nylas-event-description .token-options .selected{background-color:var(--nylas-base-100)}', $s = Is;
|
|
3432
|
+
var Fs = function(e, n, t, a) {
|
|
3433
|
+
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3434
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3435
|
+
i = Reflect.decorate(e, n, t, a);
|
|
3436
|
+
else
|
|
3437
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
3438
|
+
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
3439
|
+
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3440
|
+
}, In = function(e, n) {
|
|
3441
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3442
|
+
return Reflect.metadata(e, n);
|
|
3443
|
+
};
|
|
3444
|
+
const Vt = class {
|
|
3368
3445
|
constructor(e) {
|
|
3369
3446
|
var n, t, a, o;
|
|
3370
3447
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = (t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.description, this.name = "description", this.selectedLanguage = void 0, this.description = this.eventDescription || ((o = (a = this.selectedConfiguration) == null ? void 0 : a.event_booking) == null ? void 0 : o.description) || "", this.showTokens = !1, this.availableTokens = de.map((i) => ({
|
|
@@ -3400,7 +3477,7 @@ const Yt = class {
|
|
|
3400
3477
|
d("nylas-event-description", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
3401
3478
|
}
|
|
3402
3479
|
componentDidLoad() {
|
|
3403
|
-
d("nylas-event-description", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : this.description = this.eventDescription || "";
|
|
3480
|
+
d("nylas-event-description", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.description = this.eventDescription || "", this.updateEventDescriptionFromProp(this.description));
|
|
3404
3481
|
}
|
|
3405
3482
|
disconnectedCallback() {
|
|
3406
3483
|
d("nylas-event-description", "disconnectedCallback");
|
|
@@ -3448,7 +3525,7 @@ const Yt = class {
|
|
|
3448
3525
|
var r, p;
|
|
3449
3526
|
return l.anchorOffset === 0 && l.focusOffset === ((p = (r = l.focusNode) == null ? void 0 : r.nodeValue) == null ? void 0 : p.length);
|
|
3450
3527
|
};
|
|
3451
|
-
switch (
|
|
3528
|
+
switch (_t()) {
|
|
3452
3529
|
case "Chrome":
|
|
3453
3530
|
const l = (a = this.host.shadowRoot) == null ? void 0 : a.getSelection(), r = l == null ? void 0 : l.focusNode, p = (r == null ? void 0 : r.nodeValue) || "", f = l && n(l);
|
|
3454
3531
|
return e(p, (l == null ? void 0 : l.focusOffset) || -1, r, f);
|
|
@@ -3485,7 +3562,7 @@ const Yt = class {
|
|
|
3485
3562
|
handleInputKeyDown(e) {
|
|
3486
3563
|
var t, a, o, i;
|
|
3487
3564
|
const n = this.getCurrentSelectionForBrowser();
|
|
3488
|
-
if (n != null && n.allSelected && !
|
|
3565
|
+
if (n != null && n.allSelected && !vt(e) && (this.descriptionRef.innerHTML = ""), e.key === "Enter") {
|
|
3489
3566
|
e.preventDefault();
|
|
3490
3567
|
const l = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(this.ariaActivedescendant);
|
|
3491
3568
|
l && (l.click(), this.ariaActivedescendant = "");
|
|
@@ -3559,15 +3636,27 @@ const Yt = class {
|
|
|
3559
3636
|
getLabelHTML(e) {
|
|
3560
3637
|
return s("div", { class: "token-label" }, s("span", { class: "token" }, e.token), s("span", { class: "description" }, e.description));
|
|
3561
3638
|
}
|
|
3639
|
+
handleAddAdditionalFields() {
|
|
3640
|
+
if (this.additionalFieldTokens.length === 0)
|
|
3641
|
+
return;
|
|
3642
|
+
let e = `
|
|
3643
|
+
`;
|
|
3644
|
+
this.additionalFieldTokens.forEach((t) => {
|
|
3645
|
+
e += `${t.description}: ${t.value}
|
|
3646
|
+
`;
|
|
3647
|
+
});
|
|
3648
|
+
const n = this.descriptionRef.innerHTML + e;
|
|
3649
|
+
this.updateEventDescriptionFromProp(n), this.updateEventDescription(n);
|
|
3650
|
+
}
|
|
3562
3651
|
render() {
|
|
3563
3652
|
var e;
|
|
3564
|
-
return s(
|
|
3653
|
+
return s(E, { key: "4fa83ac689fed09670358d0095e76be76af0e3fd" }, s("div", { key: "47f351017c23349ad6e7d10ad3ec02e6c208061b", class: "nylas-event-description", part: "nedesc" }, s("label", { key: "f3a79cfdd128fa895088ab470370acf53a1f6fb1", htmlFor: "description" }, c.t("nylasEventDescription.headerTitle"), s("span", { key: "c65c0dca363e1357d7c35833ebc6cffc3393d514", class: "label-icon" }, s("tooltip-component", { key: "f528acfc901443b7c3d3ad253a219ead75f9e1f6" }, s("info-icon", { key: "9ff4f49c6b7b5bd17ba0c6085f842e2c9fb5cda5", slot: "tooltip-icon" }), s("span", { key: "327673ab955a46f4dcae29836dcd1a987c5ee073", slot: "tooltip-content" }, c.t("nylasEventDescription.tooltip.desc"))))), s("div", { key: "3c119fd44ba6061a34a697e0cc00d6006b2fa174", id: "event-description", class: { "event-description": !0 }, part: "nedesc__textarea", contentEditable: "true", onInput: (n) => this.handleChange(n), onKeyDown: (n) => this.handleInputKeyDown(n), ref: (n) => this.descriptionRef = n }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && s("div", { class: "token-options", part: "nedesc__dropdown-content" }, s("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((n) => s("li", { tabindex: "0", key: n.label, id: n.label, class: { active: this.ariaActivedescendant === n.label }, onClick: (t) => this.selectOption(t, n), role: "option" }, this.getLabelHTML(n.labelHTML))))), s("span", { key: "3069c233bbac2bcbb520183428f1376e8c642ed3", class: "help-text" }, c.t("nylasEventTitle.helpText", { context: "start", field: c.t("nylasEventTitle.description") }), " ", s("code", { key: "dca735ca7b24595b654b228b609e5589045fca98" }, "$"), " ", c.t("nylasEventTitle.helpText", { context: "end" }), s("span", { key: "e73c37b05c27e726234f2ff6b30578737d003279", class: "label-icon" }, s("tooltip-component", { key: "26feba7f031dcca8a60257e9026876157311f70e" }, s("info-icon", { key: "dc5f132038e490b384271416fa4963fab47b6f28", slot: "tooltip-icon", width: "13", height: "13" }), s("span", { key: "a5fbccff4046ea1aba67a85456d9f072ef87b048", slot: "tooltip-content" }, c.t("nylasEventTitle.tooltip.desc"), " ", s("code", { key: "3c2f8ab1f2bd6b841901246c60e84b1e8af16649" }, "${invitee}"))))), s("span", { key: "b8abe673cacac76c7683da5a433c348fcaee642e", class: "add-additional-fields" }, s("button-component", { key: "69a68c6dd5e78ab49ad1ee4d5ddcb39b1420194c", variant: "basic", onClick: () => this.handleAddAdditionalFields() }, c.t("nylasEventDescription.addAdditionalFields.buttonText")), s("span", { key: "0618c1b3ecf7f595a8c03e1157795b795de37fb3", class: "label-icon" }, s("tooltip-component", { key: "bd1deb8cdca3a79f83711436a5ba3f4aeeb62c2c" }, s("info-icon", { key: "7f601ae742d03b38fd08bc53d0ffd2d961ba94af", slot: "tooltip-icon" }), s("span", { key: "cc8cb6966998b65bb91e80fa23265e183ed8a3a0", slot: "tooltip-content" }, c.t("nylasEventDescription.addAdditionalFields.tooltip.desc"), " ", s("code", { key: "751218d16b784a26128e85ca0307d3acb391d3c3" }, "${invitee}")))))));
|
|
3565
3654
|
}
|
|
3566
3655
|
static get formAssociated() {
|
|
3567
3656
|
return !0;
|
|
3568
3657
|
}
|
|
3569
3658
|
get host() {
|
|
3570
|
-
return
|
|
3659
|
+
return L(this);
|
|
3571
3660
|
}
|
|
3572
3661
|
static get watchers() {
|
|
3573
3662
|
return {
|
|
@@ -3577,8 +3666,8 @@ const Yt = class {
|
|
|
3577
3666
|
};
|
|
3578
3667
|
}
|
|
3579
3668
|
};
|
|
3580
|
-
|
|
3581
|
-
|
|
3669
|
+
Fs([
|
|
3670
|
+
T({
|
|
3582
3671
|
name: "nylas-event-description",
|
|
3583
3672
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3584
3673
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3587,13 +3676,13 @@ Ss([
|
|
|
3587
3676
|
eventToProps: {},
|
|
3588
3677
|
fireRegisterEvent: !0
|
|
3589
3678
|
}),
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
],
|
|
3594
|
-
|
|
3595
|
-
const
|
|
3596
|
-
var
|
|
3679
|
+
In("design:type", Function),
|
|
3680
|
+
In("design:paramtypes", []),
|
|
3681
|
+
In("design:returntype", void 0)
|
|
3682
|
+
], Vt.prototype, "render", null);
|
|
3683
|
+
Vt.style = $s;
|
|
3684
|
+
const Ps = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Ns = Ps;
|
|
3685
|
+
var As = function(e, n, t, a) {
|
|
3597
3686
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3598
3687
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3599
3688
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3601,11 +3690,11 @@ var Is = function(e, n, t, a) {
|
|
|
3601
3690
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3602
3691
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
3603
3692
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3604
|
-
},
|
|
3693
|
+
}, $n = function(e, n) {
|
|
3605
3694
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3606
3695
|
return Reflect.metadata(e, n);
|
|
3607
3696
|
};
|
|
3608
|
-
const
|
|
3697
|
+
const Qt = class {
|
|
3609
3698
|
constructor(e) {
|
|
3610
3699
|
v(this, e), this.valueChanged = k(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.durationMinutesOptions = [
|
|
3611
3700
|
{ value: 15, label: "15" },
|
|
@@ -3669,13 +3758,13 @@ const Kt = class {
|
|
|
3669
3758
|
{ value: 1, label: c.t("timeDuration", { context: "minute" }) },
|
|
3670
3759
|
{ value: 60, label: c.t("timeDuration", { context: "hour" }) }
|
|
3671
3760
|
];
|
|
3672
|
-
return s(
|
|
3761
|
+
return s(E, { key: "4d4abb5d962a2997a9bfc9837d8afc564f7e3ef7" }, s("div", { key: "794e1476f644152cd5fb382e75ea277b6cf42c59", class: "nylas-event-duration", part: "ned" }, s("label", { key: "8623f4570bf92e4f606c5ac624f197a26216f66c", htmlFor: "duration" }, c.t("nylasEventDuration.headerTitle"), s("span", { key: "aaaaf86dcffd338964736ae513512eacfcd166ec", class: "required" }, "*")), s("div", { key: "55bfb48285ea8872a129daecacb067c448122d7b", class: "nylas-event-duration__wrapper" }, s("input-dropdown", { key: "8dadaa1e245cd1623ecf45ec11a0b8fe4eac1e41", 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) }), this.durationIncrement && s("select-dropdown", { name: "event-duration", options: e, pluralizedLabel: this.duration > 1 ? "s" : "", 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), withSearch: !1 }))));
|
|
3673
3762
|
}
|
|
3674
3763
|
static get formAssociated() {
|
|
3675
3764
|
return !0;
|
|
3676
3765
|
}
|
|
3677
3766
|
get host() {
|
|
3678
|
-
return
|
|
3767
|
+
return L(this);
|
|
3679
3768
|
}
|
|
3680
3769
|
static get watchers() {
|
|
3681
3770
|
return {
|
|
@@ -3686,8 +3775,8 @@ const Kt = class {
|
|
|
3686
3775
|
};
|
|
3687
3776
|
}
|
|
3688
3777
|
};
|
|
3689
|
-
|
|
3690
|
-
|
|
3778
|
+
As([
|
|
3779
|
+
T({
|
|
3691
3780
|
name: "nylas-event-duration",
|
|
3692
3781
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3693
3782
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3696,13 +3785,13 @@ Is([
|
|
|
3696
3785
|
eventToProps: {},
|
|
3697
3786
|
fireRegisterEvent: !0
|
|
3698
3787
|
}),
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
],
|
|
3703
|
-
|
|
3704
|
-
const
|
|
3705
|
-
var
|
|
3788
|
+
$n("design:type", Function),
|
|
3789
|
+
$n("design:paramtypes", []),
|
|
3790
|
+
$n("design:returntype", void 0)
|
|
3791
|
+
], Qt.prototype, "render", null);
|
|
3792
|
+
Qt.style = Ns;
|
|
3793
|
+
const Rs = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', Ms = Rs;
|
|
3794
|
+
var zs = function(e, n, t, a) {
|
|
3706
3795
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3707
3796
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3708
3797
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3710,11 +3799,11 @@ var Ps = function(e, n, t, a) {
|
|
|
3710
3799
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3711
3800
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
3712
3801
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3713
|
-
},
|
|
3802
|
+
}, Fn = function(e, n) {
|
|
3714
3803
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3715
3804
|
return Reflect.metadata(e, n);
|
|
3716
3805
|
};
|
|
3717
|
-
const
|
|
3806
|
+
const ea = class {
|
|
3718
3807
|
constructor(e) {
|
|
3719
3808
|
v(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;
|
|
3720
3809
|
}
|
|
@@ -3728,19 +3817,19 @@ const Vt = class {
|
|
|
3728
3817
|
d("nylas-event-info", "componentWillLoad");
|
|
3729
3818
|
}
|
|
3730
3819
|
componentDidLoad() {
|
|
3731
|
-
d("nylas-event-info", "componentDidLoad"),
|
|
3820
|
+
d("nylas-event-info", "componentDidLoad"), et(["inputs"], this.el);
|
|
3732
3821
|
}
|
|
3733
3822
|
disconnectedCallback() {
|
|
3734
3823
|
d("nylas-event-info", "disconnectedCallback");
|
|
3735
3824
|
}
|
|
3736
3825
|
render() {
|
|
3737
|
-
return s(
|
|
3826
|
+
return s(E, { key: "cfaed6dc85514cb6d1a458bb3b3cba937938d87c" }, s("nylas-form-card", { key: "a30b4ad9c134378aae18f426d38b236e5189524e", exportparts: "nfc__header: nei__header" }, s("h1", { key: "4e692206e124cd95e8196a98e74593a39d32f692", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, c.t("nylasEventInfo.headerTitle")), s("div", { key: "186dadb73f1ede6693ab976a0de3619b1836981d", slot: "content", class: "nylas-event-info__content" }, s("slot", { key: "e903ac53fadc4be46eaf9524aa4d73dbed27fccc", name: "inputs" }))));
|
|
3738
3827
|
}
|
|
3739
3828
|
static get formAssociated() {
|
|
3740
3829
|
return !0;
|
|
3741
3830
|
}
|
|
3742
3831
|
get el() {
|
|
3743
|
-
return
|
|
3832
|
+
return L(this);
|
|
3744
3833
|
}
|
|
3745
3834
|
static get watchers() {
|
|
3746
3835
|
return {
|
|
@@ -3748,20 +3837,20 @@ const Vt = class {
|
|
|
3748
3837
|
};
|
|
3749
3838
|
}
|
|
3750
3839
|
};
|
|
3751
|
-
|
|
3752
|
-
|
|
3840
|
+
zs([
|
|
3841
|
+
T({
|
|
3753
3842
|
name: "nylas-event-info",
|
|
3754
3843
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
|
|
3755
3844
|
eventToProps: {},
|
|
3756
3845
|
fireRegisterEvent: !0
|
|
3757
3846
|
}),
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
],
|
|
3762
|
-
|
|
3763
|
-
const
|
|
3764
|
-
var
|
|
3847
|
+
Fn("design:type", Function),
|
|
3848
|
+
Fn("design:paramtypes", []),
|
|
3849
|
+
Fn("design:returntype", void 0)
|
|
3850
|
+
], ea.prototype, "render", null);
|
|
3851
|
+
ea.style = Ms;
|
|
3852
|
+
const Bs = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', js = Bs;
|
|
3853
|
+
var Ws = function(e, n, t, a) {
|
|
3765
3854
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3766
3855
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3767
3856
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3769,11 +3858,11 @@ var As = function(e, n, t, a) {
|
|
|
3769
3858
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3770
3859
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
3771
3860
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3772
|
-
},
|
|
3861
|
+
}, Pn = function(e, n) {
|
|
3773
3862
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3774
3863
|
return Reflect.metadata(e, n);
|
|
3775
3864
|
};
|
|
3776
|
-
const
|
|
3865
|
+
const na = class {
|
|
3777
3866
|
constructor(e) {
|
|
3778
3867
|
v(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;
|
|
3779
3868
|
}
|
|
@@ -3787,19 +3876,19 @@ const Qt = class {
|
|
|
3787
3876
|
d("nylas-event-limits", "componentWillLoad");
|
|
3788
3877
|
}
|
|
3789
3878
|
componentDidLoad() {
|
|
3790
|
-
d("nylas-event-limits", "componentDidLoad"),
|
|
3879
|
+
d("nylas-event-limits", "componentDidLoad"), et(["inputs"], this.el);
|
|
3791
3880
|
}
|
|
3792
3881
|
disconnectedCallback() {
|
|
3793
3882
|
d("nylas-event-limits", "disconnectedCallback");
|
|
3794
3883
|
}
|
|
3795
3884
|
render() {
|
|
3796
|
-
return s(
|
|
3885
|
+
return s(E, { key: "fd3d7071d407def00214c6a0ce9eba8d2f5d1f25" }, s("nylas-form-card", { key: "cd796f19797dd2809fec2438de4da7dd2d3c6ab6", exportparts: "nfc__header: nel__header" }, s("h1", { key: "5a476cbe531ead639d8efc2e7403a832a6119209", slot: "header-title", class: "nylas-event-limits__title" }, c.t("nylasEventLimits.headerTitle")), s("div", { key: "19b3512e8fe43cbb0a140e32120147da4e56d2be", slot: "content", class: "nylas-event-limits__content" }, s("slot", { key: "c7de3dcca4b256152c1cc27290c50c2766f122d4", name: "inputs" }))));
|
|
3797
3886
|
}
|
|
3798
3887
|
static get formAssociated() {
|
|
3799
3888
|
return !0;
|
|
3800
3889
|
}
|
|
3801
3890
|
get el() {
|
|
3802
|
-
return
|
|
3891
|
+
return L(this);
|
|
3803
3892
|
}
|
|
3804
3893
|
static get watchers() {
|
|
3805
3894
|
return {
|
|
@@ -3807,20 +3896,20 @@ const Qt = class {
|
|
|
3807
3896
|
};
|
|
3808
3897
|
}
|
|
3809
3898
|
};
|
|
3810
|
-
|
|
3811
|
-
|
|
3899
|
+
Ws([
|
|
3900
|
+
T({
|
|
3812
3901
|
name: "nylas-event-limits",
|
|
3813
3902
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
|
|
3814
3903
|
eventToProps: {},
|
|
3815
3904
|
fireRegisterEvent: !0
|
|
3816
3905
|
}),
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
],
|
|
3821
|
-
|
|
3822
|
-
const
|
|
3823
|
-
var
|
|
3906
|
+
Pn("design:type", Function),
|
|
3907
|
+
Pn("design:paramtypes", []),
|
|
3908
|
+
Pn("design:returntype", void 0)
|
|
3909
|
+
], na.prototype, "render", null);
|
|
3910
|
+
na.style = js;
|
|
3911
|
+
const Us = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Zs = Us;
|
|
3912
|
+
var qs = function(e, n, t, a) {
|
|
3824
3913
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
3825
3914
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3826
3915
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3828,7 +3917,7 @@ var Bs = function(e, n, t, a) {
|
|
|
3828
3917
|
for (var r = e.length - 1; r >= 0; r--)
|
|
3829
3918
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
3830
3919
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3831
|
-
},
|
|
3920
|
+
}, Nn = function(e, n) {
|
|
3832
3921
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3833
3922
|
return Reflect.metadata(e, n);
|
|
3834
3923
|
};
|
|
@@ -3838,7 +3927,7 @@ const ye = {
|
|
|
3838
3927
|
google: "Google Meet",
|
|
3839
3928
|
microsoft: "Microsoft Teams",
|
|
3840
3929
|
zoom: "Zoom Meeting"
|
|
3841
|
-
},
|
|
3930
|
+
}, ta = class {
|
|
3842
3931
|
constructor(e) {
|
|
3843
3932
|
var n;
|
|
3844
3933
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "location", this.currentUser = void 0, this.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.selectedLanguage = void 0, this.location = this.eventLocation ?? "", this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : "", this.selectedLocationOption = void 0, this.userProviderState = this.userProvider ?? ((n = this.currentUser) == null ? void 0 : n.provider) ?? "", this.locationOptions = [
|
|
@@ -3931,7 +4020,7 @@ const ye = {
|
|
|
3931
4020
|
}
|
|
3932
4021
|
}
|
|
3933
4022
|
setDefaultLocationOption(e, n) {
|
|
3934
|
-
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ?
|
|
4023
|
+
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ? _a[e == null ? void 0 : e.provider] : n ? "custom" : "none";
|
|
3935
4024
|
}
|
|
3936
4025
|
setDefaultGrantID(e) {
|
|
3937
4026
|
var n;
|
|
@@ -3971,13 +4060,13 @@ const ye = {
|
|
|
3971
4060
|
}
|
|
3972
4061
|
render() {
|
|
3973
4062
|
const e = typeof this.selectedLocationOption < "u" ? this.locationOptions.find((n) => n.value == this.selectedLocationOption) : null;
|
|
3974
|
-
return s(
|
|
4063
|
+
return s(E, { key: "0d7c2725abe931681701c4b42b0ec04442d4860e" }, s("div", { key: "db1c9930a3f0ed32dae974371126f70b598fecb4", class: "nylas-event-location", part: "nel" }, s("label", { key: "98e307433a1849fb2e43e2add802e466b9160d7d", htmlFor: "location" }, c.t("nylasEventLocation.headerTitle"), s("span", { key: "5016410da54176b9c86e01651b4d1becbcd3ccad", class: "label-icon" }, s("tooltip-component", { key: "52c5b1afd2a96426ceb7861e89ed4f4f8765d583" }, s("info-icon", { key: "5daae76e8e06cfc04cf83b936f95bcf7e4bf9a0f", slot: "tooltip-icon" }), s("span", { key: "e8d882a74bce55b1018c5118f9cf650d5d219cd0", slot: "tooltip-content" }, c.t("nylasEventLocation.tooltip.desc"))))), s("div", { key: "f1b97e8d4881c1dcf98e1d4e3f86857f8c3cfc93", class: "location-input" }, e && (e == null ? void 0 : e.label) && s("select-dropdown", { withSearch: !1, name: "location", options: this.locationOptions, defaultSelectedOption: e, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, s("span", { slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && s("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
|
|
3975
4064
|
}
|
|
3976
4065
|
static get formAssociated() {
|
|
3977
4066
|
return !0;
|
|
3978
4067
|
}
|
|
3979
4068
|
get host() {
|
|
3980
|
-
return
|
|
4069
|
+
return L(this);
|
|
3981
4070
|
}
|
|
3982
4071
|
static get watchers() {
|
|
3983
4072
|
return {
|
|
@@ -3989,8 +4078,8 @@ const ye = {
|
|
|
3989
4078
|
};
|
|
3990
4079
|
}
|
|
3991
4080
|
};
|
|
3992
|
-
|
|
3993
|
-
|
|
4081
|
+
qs([
|
|
4082
|
+
T({
|
|
3994
4083
|
name: "nylas-event-location",
|
|
3995
4084
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3996
4085
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4001,13 +4090,13 @@ Bs([
|
|
|
4001
4090
|
eventToProps: {},
|
|
4002
4091
|
fireRegisterEvent: !0
|
|
4003
4092
|
}),
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
],
|
|
4008
|
-
|
|
4009
|
-
const
|
|
4010
|
-
var
|
|
4093
|
+
Nn("design:type", Function),
|
|
4094
|
+
Nn("design:paramtypes", []),
|
|
4095
|
+
Nn("design:returntype", void 0)
|
|
4096
|
+
], ta.prototype, "render", null);
|
|
4097
|
+
ta.style = Zs;
|
|
4098
|
+
const Js = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:inline-block;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px;position:relative}.nylas-event-title span.help-text span.label-icon{display:inline-block}.nylas-event-title span.help-text span.label-icon tooltip-component::part(tc__container){position:unset}.nylas-event-title span.help-text span.label-icon tooltip-component::part(tc__content){position:absolute;top:4px;left:50%;transform:translateX(-50%)}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', Gs = Js;
|
|
4099
|
+
var Xs = function(e, n, t, a) {
|
|
4011
4100
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4012
4101
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4013
4102
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4015,11 +4104,11 @@ var Us = function(e, n, t, a) {
|
|
|
4015
4104
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4016
4105
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
4017
4106
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4018
|
-
},
|
|
4107
|
+
}, An = function(e, n) {
|
|
4019
4108
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4020
4109
|
return Reflect.metadata(e, n);
|
|
4021
4110
|
};
|
|
4022
|
-
const
|
|
4111
|
+
const aa = class {
|
|
4023
4112
|
constructor(e) {
|
|
4024
4113
|
var n, t;
|
|
4025
4114
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.title, this.name = "title", this.selectedLanguage = void 0, this.showTokens = !1, this.availableTokens = de.map((a) => ({
|
|
@@ -4118,7 +4207,7 @@ const na = class {
|
|
|
4118
4207
|
var r, p;
|
|
4119
4208
|
return l.anchorOffset === 0 && l.focusOffset === ((p = (r = l.focusNode) == null ? void 0 : r.nodeValue) == null ? void 0 : p.length);
|
|
4120
4209
|
};
|
|
4121
|
-
switch (
|
|
4210
|
+
switch (_t()) {
|
|
4122
4211
|
case "Chrome":
|
|
4123
4212
|
const l = (a = this.host.shadowRoot) == null ? void 0 : a.getSelection(), r = l == null ? void 0 : l.focusNode, p = (r == null ? void 0 : r.nodeValue) || "", f = l && n(l);
|
|
4124
4213
|
return e(p, (l == null ? void 0 : l.focusOffset) || -1, r, f);
|
|
@@ -4155,7 +4244,7 @@ const na = class {
|
|
|
4155
4244
|
handleInputKeyDown(e) {
|
|
4156
4245
|
var t, a, o, i, l;
|
|
4157
4246
|
const n = this.getCurrentSelectionForBrowser();
|
|
4158
|
-
if (n != null && n.allSelected && !
|
|
4247
|
+
if (n != null && n.allSelected && !vt(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
|
|
4159
4248
|
e.preventDefault();
|
|
4160
4249
|
const r = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(this.ariaActivedescendant);
|
|
4161
4250
|
r && (r.click(), this.ariaActivedescendant = "");
|
|
@@ -4231,7 +4320,7 @@ const na = class {
|
|
|
4231
4320
|
}
|
|
4232
4321
|
render() {
|
|
4233
4322
|
var e;
|
|
4234
|
-
return s(
|
|
4323
|
+
return s(E, { key: "939a9d39a09fc21d9ddc3a9439531e67eb3c3ca4" }, s("div", { key: "64b4c5803d47507ce973901a2b72bd6e282d69ec", class: "nylas-event-title", part: "net" }, s("label", { key: "1e767bdcb14c5856116c292f1528ae48426fa629", htmlFor: "title" }, c.t("nylasEventTitle.headerTitle"), s("span", { key: "f067d784f17ce438f6691470ae78014028fe0ae9", class: "required" }, "*")), s("div", { key: "043eaabcf1c15d4935717e00b04d62d087f75a87", class: {
|
|
4235
4324
|
title: !0,
|
|
4236
4325
|
error: this.validationError !== ""
|
|
4237
4326
|
}, part: "net__title", ref: (n) => this.titleRef = n, contentEditable: "true", onInput: (n) => this.handleChange(n), onKeyDown: (n) => this.handleInputKeyDown(n) }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && s("div", { class: "token-options", part: "net__dropdown-content" }, s("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((n) => s("li", { tabindex: "0", key: n.label, id: n.label, class: { active: this.ariaActivedescendant === n.label }, onClick: (t) => this.selectOption(t, n), role: "option" }, this.getLabelHTML(n.labelHTML))))), s("span", { key: "90cb59742f5f9feb4f1a95ecc11fdb0f6626c1b4", class: "help-text" }, c.t("nylasEventTitle.helpText", { context: "start", field: c.t("nylasEventTitle.title") }), " ", s("code", { key: "4ccb07d90b5366e29b7ec041d9ea96e2dbe2f17f" }, "$"), " ", c.t("nylasEventTitle.helpText", { context: "end" }), s("span", { key: "762784688425f7c75c00d02650602d55a4c39a7f", class: "label-icon" }, s("tooltip-component", { key: "6c896cb600dfb33eea7d3d34d02dbf4957daaccb" }, s("info-icon", { key: "8510b9ff47f14773f3c156b01d9ee692a2e23b9d", slot: "tooltip-icon" }), s("span", { key: "55dc64d424f76c3e53380957d2a2194161509c05", slot: "tooltip-content" }, c.t("nylasEventTitle.tooltip.desc"), " ", s("code", { key: "02cacd5eca30da22d0ea5a74991238d3a0b68524" }, "${invitee}"))))), this.validationError != "" && s("span", { class: "error-message" }, this.validationError)));
|
|
@@ -4240,7 +4329,7 @@ const na = class {
|
|
|
4240
4329
|
return !0;
|
|
4241
4330
|
}
|
|
4242
4331
|
get host() {
|
|
4243
|
-
return
|
|
4332
|
+
return L(this);
|
|
4244
4333
|
}
|
|
4245
4334
|
static get watchers() {
|
|
4246
4335
|
return {
|
|
@@ -4251,8 +4340,8 @@ const na = class {
|
|
|
4251
4340
|
};
|
|
4252
4341
|
}
|
|
4253
4342
|
};
|
|
4254
|
-
|
|
4255
|
-
|
|
4343
|
+
Xs([
|
|
4344
|
+
T({
|
|
4256
4345
|
name: "nylas-event-title",
|
|
4257
4346
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4258
4347
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4261,13 +4350,13 @@ Us([
|
|
|
4261
4350
|
eventToProps: {},
|
|
4262
4351
|
fireRegisterEvent: !0
|
|
4263
4352
|
}),
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
],
|
|
4268
|
-
|
|
4269
|
-
const
|
|
4270
|
-
var
|
|
4353
|
+
An("design:type", Function),
|
|
4354
|
+
An("design:paramtypes", []),
|
|
4355
|
+
An("design:returntype", void 0)
|
|
4356
|
+
], aa.prototype, "render", null);
|
|
4357
|
+
aa.style = Gs;
|
|
4358
|
+
const Ys = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.card-wrapper{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);position:relative;padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-wrapper{width:100%;border-radius:0px}}.header{overflow-wrap:anywhere;display:flex;flex-direction:column;font-size:16px;font-weight:400}.header h2{color:var(--nylas-base-900);font-size:24px;font-weight:600;text-align:left;margin:0}.description.title-desc{margin-bottom:2rem}.description.footer-desc{margin-top:2rem}.description.footer-desc a{color:var(--nylas-primary);text-decoration:none}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}', Ks = Ys;
|
|
4359
|
+
var Vs = function(e, n, t, a) {
|
|
4271
4360
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4272
4361
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4273
4362
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4279,7 +4368,7 @@ var Js = function(e, n, t, a) {
|
|
|
4279
4368
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4280
4369
|
return Reflect.metadata(e, n);
|
|
4281
4370
|
};
|
|
4282
|
-
const
|
|
4371
|
+
const ia = class {
|
|
4283
4372
|
constructor(e) {
|
|
4284
4373
|
v(this, e), this.feedbackModalClosed = k(this, "feedbackModalClosed", 7), this.feedbackSubmitted = k(this, "feedbackSubmitted", 7), this.triggerValidation = k(this, "triggerValidation", 7), this.handleConfirmBookingButtonClicked = () => {
|
|
4285
4374
|
this.triggerValidation.emit().defaultPrevented || this.feedbackSubmitted.emit({ feedback: this.feedbackMessage });
|
|
@@ -4307,16 +4396,16 @@ const ta = class {
|
|
|
4307
4396
|
e.preventDefault(), e.stopImmediatePropagation(), this.feedbackModalClosed.emit();
|
|
4308
4397
|
}
|
|
4309
4398
|
render() {
|
|
4310
|
-
return s(
|
|
4399
|
+
return s(E, { key: "d4b502859be6b8e7f2a9e72434c6235c1e0b3f6c", part: "nfbf" }, s("div", { key: "3efafa64f7cc272e860db13329985998427fc56f", class: "card-wrapper", part: "nfbfc__card" }, s("div", { key: "62e54301fb5e08ddc2b84ea83cd76a9b1b9bac40", class: "close-button" }, s("button-component", { key: "7c1a30cf729201a24f7b5bfdf7f14a33ac658fa2", tooltip: "Close", id: "close", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__close-button" }, s("close-icon", { key: "7196738a1d94c2c051114aab8c47694c4bf727d7" }))), s("div", { key: "adc3999e28c691be551c03b18d68d7780e8fcb79", class: "header" }, s("h2", { key: "92d340a6bad7d98463b0f969ab7c87ebb53ef8d5", slot: "card-title", part: "nfbf__title" }, c.t("feedbackFormTitle"))), s("div", { key: "e96c74ee485b733d42a4f00cecdeb8225b6172d2", class: "description title-desc" }, s("p", { key: "9ddd5e9d4e942bd06f10bebc022d93849cf55275" }, c.t("feedbackFormDescription"))), s("textarea-component", { key: "22fd7f9b0fe14cbdcc65baddf9e8b544d4fa690e", label: c.t("feedbackMessageLabel"), required: !0, maxLength: 500, part: "nfbf__description", name: "feedback", placeholder: c.t("feedbackMessagePlaceholder") }), s("div", { key: "0406304bced48c735f33325aa1e17b1f27126e50", class: "description footer-desc" }, s("p", { key: "c579023d7c3fa0104ac1496cdb3a56b3dfaefc82" }, "By sending this report, you agree to Nylas’ access to the data necessary to respond to this issue, subject to Nylas’", " ", s("a", { key: "ef5bb66743a764c3f8a799e896b58379f7281a55", href: "https://www.nylas.com/privacy-policy/", target: "_blank", rel: "nofollow noreferrer noopener" }, "Privacy Policy"), ".")), s("div", { key: "7949c6ab500bbd765f38c40777cb25225064a93c", class: {
|
|
4311
4400
|
footer: !0
|
|
4312
|
-
} }, s("button-component", { key: "
|
|
4401
|
+
} }, s("button-component", { key: "1794e4387a5d00e4ecec25bb34d2fbb12b6ff8ba", variant: "invisible", onClick: (e) => this.closeModal(e), part: "nfbf__button-outline nfbf__cancel-cta" }, `${c.t("feedbackModalCloseButton")}`), s("button-component", { key: "e91516d9ef9fa08c3ef17b85efaad9370767edd4", variant: "primary", onClick: this.handleConfirmBookingButtonClicked, part: "nfbf__button-outline nfbf__reschedule-cta" }, `${c.t("feedbackModalSubmitButton")}`))));
|
|
4313
4402
|
}
|
|
4314
4403
|
get host() {
|
|
4315
|
-
return
|
|
4404
|
+
return L(this);
|
|
4316
4405
|
}
|
|
4317
4406
|
};
|
|
4318
|
-
|
|
4319
|
-
|
|
4407
|
+
Vs([
|
|
4408
|
+
T({
|
|
4320
4409
|
name: "nylas-feedback-form",
|
|
4321
4410
|
stateToProps: /* @__PURE__ */ new Map([]),
|
|
4322
4411
|
eventToProps: {
|
|
@@ -4329,10 +4418,10 @@ Js([
|
|
|
4329
4418
|
Rn("design:type", Function),
|
|
4330
4419
|
Rn("design:paramtypes", []),
|
|
4331
4420
|
Rn("design:returntype", void 0)
|
|
4332
|
-
],
|
|
4333
|
-
|
|
4334
|
-
const
|
|
4335
|
-
var
|
|
4421
|
+
], ia.prototype, "render", null);
|
|
4422
|
+
ia.style = Ks;
|
|
4423
|
+
const Qs = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', eo = Qs;
|
|
4424
|
+
var no = function(e, n, t, a) {
|
|
4336
4425
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4337
4426
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4338
4427
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4340,11 +4429,11 @@ var Ys = function(e, n, t, a) {
|
|
|
4340
4429
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4341
4430
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
4342
4431
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4343
|
-
},
|
|
4432
|
+
}, Mn = function(e, n) {
|
|
4344
4433
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4345
4434
|
return Reflect.metadata(e, n);
|
|
4346
4435
|
};
|
|
4347
|
-
const
|
|
4436
|
+
const sa = class {
|
|
4348
4437
|
constructor(e) {
|
|
4349
4438
|
v(this, e), this.valueChanged = k(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;
|
|
4350
4439
|
}
|
|
@@ -4382,13 +4471,13 @@ const aa = class {
|
|
|
4382
4471
|
}
|
|
4383
4472
|
render() {
|
|
4384
4473
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
4385
|
-
return s(
|
|
4474
|
+
return s(E, { key: "aa8b6a2631937f85ebb0664124bba1c526d205a3" }, s("div", { key: "c83f1067e6b5d2604ee3e6768cb61d18b72e3492", class: "nylas-limit-future-bookings", part: "nlfb" }, s("label", { key: "47c79cbcc6d04e0eb5a002e90bef7a18702cb59b" }, c.t("nylasLimitFutureBookings.headerTitle"), s("span", { key: "66f3eb5115e3ae2f883572ead0a319751f1367a2", class: "label-icon" }, s("tooltip-component", { key: "8ed85f605b0dc950875689561c9b37c5bd6d1bfb" }, s("info-icon", { key: "e34d71f493cb6462e90ab35d3d854e788dc091f0", slot: "tooltip-icon" }), s("span", { key: "1eb106506cfb81388a2a3f06a71f1e29310cc8b4", slot: "tooltip-content" }, c.t("nylasLimitFutureBookings.tooltip.desc"))))), e && s("time-period-selector", { id: "limit-future-bookings", timePeriods: [c.t("timePeriod", { context: "day" }), c.t("timePeriod", { context: "week" }), c.t("timePeriod", { context: "month" })], exportparts: "tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
|
|
4386
4475
|
}
|
|
4387
4476
|
static get formAssociated() {
|
|
4388
4477
|
return !0;
|
|
4389
4478
|
}
|
|
4390
4479
|
get host() {
|
|
4391
|
-
return
|
|
4480
|
+
return L(this);
|
|
4392
4481
|
}
|
|
4393
4482
|
static get watchers() {
|
|
4394
4483
|
return {
|
|
@@ -4398,8 +4487,8 @@ const aa = class {
|
|
|
4398
4487
|
};
|
|
4399
4488
|
}
|
|
4400
4489
|
};
|
|
4401
|
-
|
|
4402
|
-
|
|
4490
|
+
no([
|
|
4491
|
+
T({
|
|
4403
4492
|
name: "nylas-limit-future-bookings",
|
|
4404
4493
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4405
4494
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4408,13 +4497,13 @@ Ys([
|
|
|
4408
4497
|
eventToProps: {},
|
|
4409
4498
|
fireRegisterEvent: !0
|
|
4410
4499
|
}),
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
],
|
|
4415
|
-
|
|
4416
|
-
const
|
|
4417
|
-
var
|
|
4500
|
+
Mn("design:type", Function),
|
|
4501
|
+
Mn("design:paramtypes", []),
|
|
4502
|
+
Mn("design:returntype", void 0)
|
|
4503
|
+
], sa.prototype, "render", null);
|
|
4504
|
+
sa.style = eo;
|
|
4505
|
+
const to = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', ao = to;
|
|
4506
|
+
var io = function(e, n, t, a) {
|
|
4418
4507
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4419
4508
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4420
4509
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4422,11 +4511,11 @@ var Qs = function(e, n, t, a) {
|
|
|
4422
4511
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4423
4512
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
4424
4513
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4425
|
-
},
|
|
4514
|
+
}, zn = function(e, n) {
|
|
4426
4515
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4427
4516
|
return Reflect.metadata(e, n);
|
|
4428
4517
|
};
|
|
4429
|
-
const
|
|
4518
|
+
const oa = class {
|
|
4430
4519
|
constructor(e) {
|
|
4431
4520
|
v(this, e), this.valueChanged = k(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;
|
|
4432
4521
|
}
|
|
@@ -4465,7 +4554,7 @@ const ia = class {
|
|
|
4465
4554
|
}
|
|
4466
4555
|
render() {
|
|
4467
4556
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
4468
|
-
return s(
|
|
4557
|
+
return s(E, { key: "ecd5783d9c6dada0895170f9855401ab9028cd17" }, s("div", { key: "d5bf58c3cd84b8c241322e351bd951001f1d0776", class: "nylas-min-booking-notice", part: "nmbn" }, s("label", { key: "95c8226eb21a150265a475b1545cbad2a42b400a" }, c.t("nylasMinBookingNotice.headerTitle"), s("span", { key: "6345ad841f2d4c08a1e9df6b2dcfa3cce6852110", class: "label-icon" }, s("tooltip-component", { key: "88c09ce1c640449c3d1883c88afe412933e7383c" }, s("info-icon", { key: "5834a449929840d5b9c0ffac8fcd255ecd49effa", slot: "tooltip-icon" }), s("span", { key: "46e18444512157c7ea1a8155e8e3e382477e2ebb", slot: "tooltip-content" }, c.t("nylasMinBookingNotice.tooltip.desc"))))), e && s("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: [
|
|
4469
4558
|
c.t("timeDuration", { context: "minute" }),
|
|
4470
4559
|
c.t("timeDuration", { context: "hour" }),
|
|
4471
4560
|
c.t("timePeriod", { context: "day" }),
|
|
@@ -4476,7 +4565,7 @@ const ia = class {
|
|
|
4476
4565
|
return !0;
|
|
4477
4566
|
}
|
|
4478
4567
|
get host() {
|
|
4479
|
-
return
|
|
4568
|
+
return L(this);
|
|
4480
4569
|
}
|
|
4481
4570
|
static get watchers() {
|
|
4482
4571
|
return {
|
|
@@ -4486,8 +4575,8 @@ const ia = class {
|
|
|
4486
4575
|
};
|
|
4487
4576
|
}
|
|
4488
4577
|
};
|
|
4489
|
-
|
|
4490
|
-
|
|
4578
|
+
io([
|
|
4579
|
+
T({
|
|
4491
4580
|
name: "nylas-min-booking-notice",
|
|
4492
4581
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4493
4582
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4496,13 +4585,13 @@ Qs([
|
|
|
4496
4585
|
eventToProps: {},
|
|
4497
4586
|
fireRegisterEvent: !0
|
|
4498
4587
|
}),
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
],
|
|
4503
|
-
|
|
4504
|
-
const
|
|
4505
|
-
var
|
|
4588
|
+
zn("design:type", Function),
|
|
4589
|
+
zn("design:paramtypes", []),
|
|
4590
|
+
zn("design:returntype", void 0)
|
|
4591
|
+
], oa.prototype, "render", null);
|
|
4592
|
+
oa.style = ao;
|
|
4593
|
+
const so = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', oo = so;
|
|
4594
|
+
var lo = function(e, n, t, a) {
|
|
4506
4595
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4507
4596
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4508
4597
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4510,11 +4599,11 @@ var to = function(e, n, t, a) {
|
|
|
4510
4599
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4511
4600
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
4512
4601
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4513
|
-
},
|
|
4602
|
+
}, Bn = function(e, n) {
|
|
4514
4603
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4515
4604
|
return Reflect.metadata(e, n);
|
|
4516
4605
|
};
|
|
4517
|
-
const
|
|
4606
|
+
const la = class {
|
|
4518
4607
|
constructor(e) {
|
|
4519
4608
|
v(this, e), this.valueChanged = k(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;
|
|
4520
4609
|
}
|
|
@@ -4553,7 +4642,7 @@ const sa = class {
|
|
|
4553
4642
|
}
|
|
4554
4643
|
render() {
|
|
4555
4644
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
4556
|
-
return s(
|
|
4645
|
+
return s(E, { key: "7c6c0af2b3272b92d3b791cddd2354b6a3c94d21" }, s("div", { key: "dc35ab5d0c5e52df0953400e2f56743d67764b3d", class: "nylas-min-cancellation-notice", part: "nmcn" }, s("label", { key: "0c1e94715b477cf064c5f637e3aad8b4a5145e5b" }, c.t("nylasMinCancellationNotice.headerTitle"), s("span", { key: "bfab3e1a2e89304edfb347c42743ce2acb00e32e", class: "label-icon" }, s("tooltip-component", { key: "37bed1eeadab00e41eaed2a927618a35e33aec1f" }, s("info-icon", { key: "962f678cba4d9fcfcbe623cf90dfa9badf52d258", slot: "tooltip-icon" }), s("span", { key: "2b38fa33f4a98d4a4513d3837f0831b754c456cb", slot: "tooltip-content" }, c.t("nylasMinCancellationNotice.tooltip.desc"))))), e && s("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: [
|
|
4557
4646
|
c.t("timeDuration", { context: "minute" }),
|
|
4558
4647
|
c.t("timeDuration", { context: "hour" }),
|
|
4559
4648
|
c.t("timePeriod", { context: "day" }),
|
|
@@ -4564,7 +4653,7 @@ const sa = class {
|
|
|
4564
4653
|
return !0;
|
|
4565
4654
|
}
|
|
4566
4655
|
get host() {
|
|
4567
|
-
return
|
|
4656
|
+
return L(this);
|
|
4568
4657
|
}
|
|
4569
4658
|
static get watchers() {
|
|
4570
4659
|
return {
|
|
@@ -4574,8 +4663,8 @@ const sa = class {
|
|
|
4574
4663
|
};
|
|
4575
4664
|
}
|
|
4576
4665
|
};
|
|
4577
|
-
|
|
4578
|
-
|
|
4666
|
+
lo([
|
|
4667
|
+
T({
|
|
4579
4668
|
name: "nylas-min-cancellation-notice",
|
|
4580
4669
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4581
4670
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4584,13 +4673,13 @@ to([
|
|
|
4584
4673
|
eventToProps: {},
|
|
4585
4674
|
fireRegisterEvent: !0
|
|
4586
4675
|
}),
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
],
|
|
4591
|
-
|
|
4592
|
-
const
|
|
4593
|
-
var
|
|
4676
|
+
Bn("design:type", Function),
|
|
4677
|
+
Bn("design:paramtypes", []),
|
|
4678
|
+
Bn("design:returntype", void 0)
|
|
4679
|
+
], la.prototype, "render", null);
|
|
4680
|
+
la.style = oo;
|
|
4681
|
+
const ro = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size: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 .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__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:16px;height:auto;padding-left:0px}', co = ro;
|
|
4682
|
+
var po = function(e, n, t, a) {
|
|
4594
4683
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4595
4684
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4596
4685
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4598,11 +4687,11 @@ var so = function(e, n, t, a) {
|
|
|
4598
4687
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4599
4688
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
4600
4689
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4601
|
-
},
|
|
4690
|
+
}, jn = function(e, n) {
|
|
4602
4691
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4603
4692
|
return Reflect.metadata(e, n);
|
|
4604
4693
|
};
|
|
4605
|
-
const
|
|
4694
|
+
const ra = class {
|
|
4606
4695
|
constructor(e) {
|
|
4607
4696
|
v(this, e), this.valueChanged = k(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.selectedLanguage = void 0, this.currentPageName = void 0;
|
|
4608
4697
|
}
|
|
@@ -4648,13 +4737,13 @@ const oa = class {
|
|
|
4648
4737
|
}
|
|
4649
4738
|
render() {
|
|
4650
4739
|
const e = typeof this.currentPageName < "u";
|
|
4651
|
-
return s(
|
|
4740
|
+
return s(E, { key: "1599ce068b5617d7461eb40057df8236bacdfbea" }, s("div", { key: "79b3e8d126e3cf5ccc4ec777b6ec3f80e5de9584", class: "nylas-page-name", part: "nces" }, s("div", { key: "7f7b0e1b367455ad024dbf292755ec11324ff281", class: "header", part: "nces__header" }, s("div", { key: "1343ff04259f9189d247ee13802209ab94242b17" }, s("h3", { key: "d3eaec67794f8aa6ed6fa5640b22466449de83fc" }, c.t("nylasPageName.headerTitle")), s("p", { key: "8296b0a09ac48d4cebf5bf38d8a0d9e1577d81b2" }, c.t("nylasPageName.headerSubTitle"), s("tooltip-component", { key: "6778d6a203e80c154bb2a5706383cf24635e7253" }, s("info-icon", { key: "fe4070361f59dc00f55d8ed871607fe69b2007db", slot: "tooltip-icon" }), s("span", { key: "fae1da781d3db4a4a3af4a707b95242beb391f58", slot: "tooltip-content" }, c.t("nylasPageName.tooltip.desc"))))), this.showToggle && s("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, s("chevron-icon", { width: "24", height: "24" })))), this.isOpen && s("div", { class: "nylas-page-name__body", part: "nces__body" }, s("div", { class: "nylas-page-name__section" }, s("div", { class: "nylas-page-name__row" }, s("div", { class: "input-container" }, s("div", { class: "nylas-page-name__input-wrapper" }, e && s("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "" }))))))));
|
|
4652
4741
|
}
|
|
4653
4742
|
static get formAssociated() {
|
|
4654
4743
|
return !0;
|
|
4655
4744
|
}
|
|
4656
4745
|
get host() {
|
|
4657
|
-
return
|
|
4746
|
+
return L(this);
|
|
4658
4747
|
}
|
|
4659
4748
|
static get watchers() {
|
|
4660
4749
|
return {
|
|
@@ -4664,8 +4753,8 @@ const oa = class {
|
|
|
4664
4753
|
};
|
|
4665
4754
|
}
|
|
4666
4755
|
};
|
|
4667
|
-
|
|
4668
|
-
|
|
4756
|
+
po([
|
|
4757
|
+
T({
|
|
4669
4758
|
name: "nylas-page-name",
|
|
4670
4759
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4671
4760
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4679,13 +4768,13 @@ so([
|
|
|
4679
4768
|
},
|
|
4680
4769
|
fireRegisterEvent: !0
|
|
4681
4770
|
}),
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
],
|
|
4686
|
-
|
|
4687
|
-
const
|
|
4688
|
-
var
|
|
4771
|
+
jn("design:type", Function),
|
|
4772
|
+
jn("design:paramtypes", []),
|
|
4773
|
+
jn("design:returntype", void 0)
|
|
4774
|
+
], ra.prototype, "render", null);
|
|
4775
|
+
ra.style = co;
|
|
4776
|
+
const fo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-styling{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-styling.no-border{border:none}.nylas-page-styling .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size: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}', uo = fo;
|
|
4777
|
+
var mo = function(e, n, t, a) {
|
|
4689
4778
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4690
4779
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4691
4780
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4693,11 +4782,11 @@ var ro = function(e, n, t, a) {
|
|
|
4693
4782
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4694
4783
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
4695
4784
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4696
|
-
},
|
|
4785
|
+
}, Wn = function(e, n) {
|
|
4697
4786
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4698
4787
|
return Reflect.metadata(e, n);
|
|
4699
4788
|
};
|
|
4700
|
-
const
|
|
4789
|
+
const da = class {
|
|
4701
4790
|
constructor(e) {
|
|
4702
4791
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), this.bookingFormSubmitted = k(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;
|
|
4703
4792
|
}
|
|
@@ -4848,13 +4937,13 @@ const la = class {
|
|
|
4848
4937
|
this.isOpen = !this.isOpen;
|
|
4849
4938
|
}
|
|
4850
4939
|
render() {
|
|
4851
|
-
return s(
|
|
4940
|
+
return s(E, { key: "be305278c6a81d80cd61b66414aee98acaa200c3" }, s("div", { key: "9d85c773beb67379f28e6f119d95dcd454e97737", part: "nps", class: { "nylas-page-styling": !0, "no-border": !this.customInputsSlot } }, this.customInputsSlot ? s("div", { class: "header", part: "nps__header" }, s("div", null, s("h3", null, c.t("nylasPageStyling.headerTitle"))), s("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, s("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, s("chevron-icon", { width: "24", height: "24" })))) : null, s("div", { key: "7f083cd1159c152b97d5d173e0fc5f495cf97edd", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, s("div", { key: "0fdc71c1de25ad0acf9285d403f4985a4836e7dc", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, s("div", { key: "7cc3f068d2c85f30a033d19d49886427328301f1", class: "nylas-page-styling__row" }, s("div", { key: "32946c8231c3fb9a38c50c88fe35f8a3e241c956", class: { subsection: !0, hide: !this.isOpen } }))))));
|
|
4852
4941
|
}
|
|
4853
4942
|
static get formAssociated() {
|
|
4854
4943
|
return !0;
|
|
4855
4944
|
}
|
|
4856
4945
|
get host() {
|
|
4857
|
-
return
|
|
4946
|
+
return L(this);
|
|
4858
4947
|
}
|
|
4859
4948
|
static get watchers() {
|
|
4860
4949
|
return {
|
|
@@ -4864,8 +4953,8 @@ const la = class {
|
|
|
4864
4953
|
};
|
|
4865
4954
|
}
|
|
4866
4955
|
};
|
|
4867
|
-
|
|
4868
|
-
|
|
4956
|
+
mo([
|
|
4957
|
+
T({
|
|
4869
4958
|
name: "nylas-page-styling",
|
|
4870
4959
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4871
4960
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4879,13 +4968,13 @@ ro([
|
|
|
4879
4968
|
},
|
|
4880
4969
|
fireRegisterEvent: !0
|
|
4881
4970
|
}),
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
],
|
|
4886
|
-
|
|
4887
|
-
const
|
|
4888
|
-
var
|
|
4971
|
+
Wn("design:type", Function),
|
|
4972
|
+
Wn("design:paramtypes", []),
|
|
4973
|
+
Wn("design:returntype", void 0)
|
|
4974
|
+
], da.prototype, "render", null);
|
|
4975
|
+
da.style = uo;
|
|
4976
|
+
const ho = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participant-booking-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .header{padding:1rem}.nylas-participant-booking-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participant-booking-calendars .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-participant-booking-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-participant-booking-calendars .content .participant-container .participant-title p{margin:0}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-booking-calendar-picker::part(nbcp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', yo = ho;
|
|
4977
|
+
var go = function(e, n, t, a) {
|
|
4889
4978
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
4890
4979
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4891
4980
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -4893,11 +4982,11 @@ var fo = function(e, n, t, a) {
|
|
|
4893
4982
|
for (var r = e.length - 1; r >= 0; r--)
|
|
4894
4983
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
4895
4984
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
4896
|
-
},
|
|
4985
|
+
}, Un = function(e, n) {
|
|
4897
4986
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
4898
4987
|
return Reflect.metadata(e, n);
|
|
4899
4988
|
};
|
|
4900
|
-
const
|
|
4989
|
+
const ca = class {
|
|
4901
4990
|
constructor(e) {
|
|
4902
4991
|
var n;
|
|
4903
4992
|
v(this, e), this.valueChanged = k(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 = {};
|
|
@@ -4991,7 +5080,7 @@ const ra = class {
|
|
|
4991
5080
|
}), n;
|
|
4992
5081
|
}
|
|
4993
5082
|
render() {
|
|
4994
|
-
return s(
|
|
5083
|
+
return s(E, { key: "047d154cc988cbb5c99bbfcf50d4d16f85b45d93" }, s("div", { key: "02d059367caf0b12a10c1bdb11e6775083dea888", class: "nylas-participant-booking-calendars", part: "npbc" }, s("div", { key: "797963e88ed94683e65a9059871826da7e6d6387", class: "header", part: "npbc__header" }, s("h3", { key: "1ee80c177257d81132d68e791842944fa3f1965d" }, c.t("nylasParticipantBookingCalendars.headerTitle")), s("p", { key: "c6adfc5751c0c55a318fbfebb8fc6e5b791a8205" }, c.t("nylasParticipantBookingCalendars.headerSubTitle"))), s("div", { key: "4fcac4cec0eb8c8969b7daae287b68492cff148a", class: "content", part: "npbc__content" }, s("form", { key: "68987c004f2668bc46d2c26f4520a15168dbd31e", ref: (e) => this.bookingCalendarsFormRef = e }, this.participantCalendars && Object.keys(this.participantCalendars).map((e, n) => {
|
|
4995
5084
|
const t = this.selectedCalendars[e], a = this.participantCalendars[e];
|
|
4996
5085
|
if (!(!t || !t.name))
|
|
4997
5086
|
return s("div", { class: "participant-container", part: "npbc__participant-container", key: `participant-conatiner-${n}` }, s("div", { class: "participant-title", part: "npbc__participant-title" }, s("p", null, c.t("nylasParticipantBookingCalendars.participantBookingCalendarTitle", { participantName: t.name })), s("div", { class: "participant-toggle", part: "npbc__participant-toggle-container" }, s("span", { class: `chevron ${t.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
@@ -5003,7 +5092,7 @@ const ra = class {
|
|
|
5003
5092
|
return !0;
|
|
5004
5093
|
}
|
|
5005
5094
|
get host() {
|
|
5006
|
-
return
|
|
5095
|
+
return L(this);
|
|
5007
5096
|
}
|
|
5008
5097
|
static get watchers() {
|
|
5009
5098
|
return {
|
|
@@ -5016,8 +5105,8 @@ const ra = class {
|
|
|
5016
5105
|
};
|
|
5017
5106
|
}
|
|
5018
5107
|
};
|
|
5019
|
-
|
|
5020
|
-
|
|
5108
|
+
go([
|
|
5109
|
+
T({
|
|
5021
5110
|
name: "nylas-participant-booking-calendars",
|
|
5022
5111
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5023
5112
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -5028,13 +5117,13 @@ fo([
|
|
|
5028
5117
|
eventToProps: {},
|
|
5029
5118
|
fireRegisterEvent: !0
|
|
5030
5119
|
}),
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
],
|
|
5035
|
-
|
|
5036
|
-
const
|
|
5037
|
-
var
|
|
5120
|
+
Un("design:type", Function),
|
|
5121
|
+
Un("design:paramtypes", []),
|
|
5122
|
+
Un("design:returntype", void 0)
|
|
5123
|
+
], ca.prototype, "render", null);
|
|
5124
|
+
ca.style = yo;
|
|
5125
|
+
const bo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}', vo = bo;
|
|
5126
|
+
var _o = function(e, n, t, a) {
|
|
5038
5127
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
5039
5128
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5040
5129
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -5042,11 +5131,11 @@ var ho = function(e, n, t, a) {
|
|
|
5042
5131
|
for (var r = e.length - 1; r >= 0; r--)
|
|
5043
5132
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
5044
5133
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
5045
|
-
},
|
|
5134
|
+
}, Zn = function(e, n) {
|
|
5046
5135
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5047
5136
|
return Reflect.metadata(e, n);
|
|
5048
5137
|
};
|
|
5049
|
-
const
|
|
5138
|
+
const pa = class {
|
|
5050
5139
|
constructor(e) {
|
|
5051
5140
|
var n;
|
|
5052
5141
|
v(this, e), this.valueChanged = k(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);
|
|
@@ -5080,7 +5169,7 @@ const da = class {
|
|
|
5080
5169
|
var i, l, r, p, f, m, u, h, b, g, _, S;
|
|
5081
5170
|
d("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
|
|
5082
5171
|
const n = (i = this.selectedConfiguration) == null ? void 0 : i.participants.find(($) => $.email === e.detail.name), t = (l = n == null ? void 0 : n.availability) == null ? void 0 : l.open_hours, a = t || ((f = (p = (r = this.selectedConfiguration) == null ? void 0 : r.availability) == null ? void 0 : p.availability_rules) == null ? void 0 : f.default_open_hours) || [], o = t && t.length > 0 ? n == null ? void 0 : n.timezone : ((g = (b = (h = (u = (m = this.selectedConfiguration) == null ? void 0 : m.availability) == null ? void 0 : u.availability_rules) == null ? void 0 : h.default_open_hours) == null ? void 0 : b.at(0)) == null ? void 0 : g.timezone) || ((S = (_ = this.selectedConfiguration) == null ? void 0 : _.event_booking) == null ? void 0 : S.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
5083
|
-
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (a == null ? void 0 : a.length) > 0 ? a :
|
|
5172
|
+
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (a == null ? void 0 : a.length) > 0 ? a : Ct : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? o : void 0, this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
5084
5173
|
}
|
|
5085
5174
|
handleValueChanged(e) {
|
|
5086
5175
|
d("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
@@ -5122,7 +5211,7 @@ const da = class {
|
|
|
5122
5211
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
5123
5212
|
}
|
|
5124
5213
|
render() {
|
|
5125
|
-
return s(
|
|
5214
|
+
return s(E, { key: "59a66316623007f451e97f5379b11ccb4ff2ddf6" }, s("div", { key: "b50e8fd722ba6a503cdee069ad3bad40909e5f8d", class: "nylas-participants-custom-availability", part: "npca" }, s("div", { key: "8b1f22b77e25e0a7db2857d76ade1c18b7108eaf", class: "header", part: "npca__header" }, s("h3", { key: "13058c878c7f6dae89a2b38964ddefe39f7824b4" }, c.t("nylasParticipantCustomAvailability.headerTitle")), s("p", { key: "dbc7b20a64fc635dfe0bbdb902c92fc1238b8337" }, c.t("nylasParticipantCustomAvailability.headerSubTitle"))), s("div", { key: "c114b1863dad837946c2d93465acbac42505b30d", class: "content", part: "npca__content" }, s("form", { key: "e0c52233490c44e01e860cb9bd5a07d15bb289a8", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
|
|
5126
5215
|
var o;
|
|
5127
5216
|
const t = this.selectedParticipants[e], a = ((o = t.availability) == null ? void 0 : o.open_hours) || [];
|
|
5128
5217
|
if (!(!t || !t.name || !t.availability))
|
|
@@ -5135,7 +5224,7 @@ const da = class {
|
|
|
5135
5224
|
return !0;
|
|
5136
5225
|
}
|
|
5137
5226
|
get host() {
|
|
5138
|
-
return
|
|
5227
|
+
return L(this);
|
|
5139
5228
|
}
|
|
5140
5229
|
static get watchers() {
|
|
5141
5230
|
return {
|
|
@@ -5146,8 +5235,8 @@ const da = class {
|
|
|
5146
5235
|
};
|
|
5147
5236
|
}
|
|
5148
5237
|
};
|
|
5149
|
-
|
|
5150
|
-
|
|
5238
|
+
_o([
|
|
5239
|
+
T({
|
|
5151
5240
|
name: "nylas-participants-custom-availability",
|
|
5152
5241
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5153
5242
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -5156,13 +5245,13 @@ ho([
|
|
|
5156
5245
|
eventToProps: {},
|
|
5157
5246
|
fireRegisterEvent: !0
|
|
5158
5247
|
}),
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
],
|
|
5163
|
-
|
|
5164
|
-
const yo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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{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}', go = yo;
|
|
5165
|
-
var
|
|
5248
|
+
Zn("design:type", Function),
|
|
5249
|
+
Zn("design:paramtypes", []),
|
|
5250
|
+
Zn("design:returntype", void 0)
|
|
5251
|
+
], pa.prototype, "render", null);
|
|
5252
|
+
pa.style = vo;
|
|
5253
|
+
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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.cards-container{margin-bottom:4rem}.cards-container .nylas-reminder-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.cards-container .nylas-reminder-email .reminder-open-close-toggle{display:flex;gap:16px}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron{display:flex;align-self:center;cursor:pointer}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:hover,.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron:active{color:var(--nylas-primary)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.open{transform:rotate(90deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.closed{transform:rotate(270deg)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .reminder-open-close-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.cards-container .nylas-reminder-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.cards-container .nylas-reminder-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size: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}', xo = Co;
|
|
5254
|
+
var wo = function(e, n, t, a) {
|
|
5166
5255
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
5167
5256
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5168
5257
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -5170,14 +5259,14 @@ var bo = function(e, n, t, a) {
|
|
|
5170
5259
|
for (var r = e.length - 1; r >= 0; r--)
|
|
5171
5260
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
5172
5261
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
5173
|
-
},
|
|
5262
|
+
}, qn = function(e, n) {
|
|
5174
5263
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5175
5264
|
return Reflect.metadata(e, n);
|
|
5176
5265
|
};
|
|
5177
|
-
const
|
|
5266
|
+
const fa = class {
|
|
5178
5267
|
constructor(e) {
|
|
5179
5268
|
var n, t, a;
|
|
5180
|
-
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventReminders = void 0, this.name = "reminder-overrides", this.selectedLanguage = void 0, this.reminders = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.reminders) ?? this.eventReminders ?? [], this.reminderErrors = {}, this.participants = ((a = this.selectedConfiguration) == null ? void 0 : a.participants) ?? [];
|
|
5269
|
+
v(this, e), this.valueChanged = k(this, "valueChanged", 7), this.nylasSuggestReminderMinutes = k(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 = ((t = (n = this.selectedConfiguration) == null ? void 0 : n.event_booking) == null ? void 0 : t.reminders) ?? this.eventReminders ?? [], this.reminderErrors = {}, this.participants = ((a = this.selectedConfiguration) == null ? void 0 : a.participants) ?? [], this.clearError = !1;
|
|
5181
5270
|
}
|
|
5182
5271
|
connectedCallback() {
|
|
5183
5272
|
d("nylas-reminder-emails", "connectedCallback");
|
|
@@ -5217,8 +5306,17 @@ const ca = class {
|
|
|
5217
5306
|
d("nylas-reminder-emails", "handleValueChanged", e);
|
|
5218
5307
|
const { name: n, value: t } = e.detail;
|
|
5219
5308
|
if (n.startsWith("reminder-time-")) {
|
|
5220
|
-
const
|
|
5221
|
-
|
|
5309
|
+
const a = parseInt(t) % 5;
|
|
5310
|
+
if (a !== 0) {
|
|
5311
|
+
this.reminderErrors[n] = {
|
|
5312
|
+
error: c.t("nylasReminderEmails.reminderMinutesValidationError"),
|
|
5313
|
+
suggestion: parseInt(t) + (5 - a)
|
|
5314
|
+
}, this.reminderErrors = { ...this.reminderErrors }, this.internals.setValidity({ customError: !0 }, "Reminder time must be a multiple of 5");
|
|
5315
|
+
return;
|
|
5316
|
+
} else
|
|
5317
|
+
delete this.reminderErrors[n], this.reminderErrors = { ...this.reminderErrors }, this.internals.setValidity({ customError: !1 });
|
|
5318
|
+
const [o, i] = n.split(/(\d+)/), l = [...this.reminders];
|
|
5319
|
+
l[i].minutes_before_event = parseInt(t), this.reminders = [...l], this.updateRemindersFormValue();
|
|
5222
5320
|
}
|
|
5223
5321
|
}
|
|
5224
5322
|
handleNylasFormDropdownChanged(e) {
|
|
@@ -5293,24 +5391,27 @@ const ca = class {
|
|
|
5293
5391
|
value: "host"
|
|
5294
5392
|
}
|
|
5295
5393
|
];
|
|
5296
|
-
return s(
|
|
5297
|
-
var i;
|
|
5298
|
-
return a.type !== "webhook" ? s("div", { class: "nylas-reminder-email", part: "nre" }, s("div", { class: "header", part: "nre__header" }, s("div", null, s("h3", null, c.t("nylasReminderEmails.headerTitle", { organizerName: e ? ` with ${e} ` : "" })), s("p", null, c.t("nylasReminderEmails.headerSubTitle"))), a.editing ? s("div", { class: "reminder-open-close-toggle" }, s("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${o} `, clickHandler: (
|
|
5299
|
-
|
|
5394
|
+
return s(E, { key: "f4335352570632f91ea1b04b087022f6faf22b6f" }, s("div", { key: "29ea4d9b937eaacdd21cdad9a82c7e9c04573e41", class: "cards-container" }, this.reminders.map((a, o) => {
|
|
5395
|
+
var i, l, r, p;
|
|
5396
|
+
return a.type !== "webhook" ? s("div", { class: "nylas-reminder-email", part: "nre" }, s("div", { class: "header", part: "nre__header" }, s("div", null, s("h3", null, c.t("nylasReminderEmails.headerTitle", { organizerName: e ? ` with ${e} ` : "" })), s("p", null, c.t("nylasReminderEmails.headerSubTitle"))), a.editing ? s("div", { class: "reminder-open-close-toggle" }, s("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${o} `, clickHandler: (f) => {
|
|
5397
|
+
f.preventDefault(), this.deleteReminder(o);
|
|
5300
5398
|
} }, s("trash-icon", { width: "16", height: "16" })), s("span", { class: `chevron ${a.editing ? "open" : "closed"}`, onClick: () => {
|
|
5301
5399
|
a.editing = !a.editing, this.reminders = [...this.reminders];
|
|
5302
|
-
} }, s("chevron-icon", { width: "24", height: "24" }))) : s("button-component", { variant: "basic", key: `edit-${o} `, clickHandler: (
|
|
5303
|
-
|
|
5304
|
-
} }, s("edit-icon", { width: "16", height: "16" }), c.t("nylasReminderEmails.editButtonText"))), a.editing ? s("div", { class: "nylas-reminder-email__body", part: "nre__body" }, s("div", { class: "nylas-reminder-email__section" }, s("div", { class: "nylas-reminder-email__row" }, s("label", null, c.t("nylasReminderEmails.emailRecipients.label")), s("select-dropdown", { name: `recipient-${o}`, options: n, defaultSelectedOption: n.find((
|
|
5305
|
-
|
|
5400
|
+
} }, s("chevron-icon", { width: "24", height: "24" }))) : s("button-component", { variant: "basic", key: `edit-${o} `, clickHandler: (f) => {
|
|
5401
|
+
f.preventDefault(), a.editing = !0, this.reminders = [...this.reminders];
|
|
5402
|
+
} }, s("edit-icon", { width: "16", height: "16" }), c.t("nylasReminderEmails.editButtonText"))), a.editing ? s("div", { class: "nylas-reminder-email__body", part: "nre__body" }, s("div", { class: "nylas-reminder-email__section" }, s("div", { class: "nylas-reminder-email__row" }, s("label", null, c.t("nylasReminderEmails.emailRecipients.label")), s("select-dropdown", { name: `recipient-${o}`, options: n, defaultSelectedOption: n.find((f) => f.value === a.recipient) ?? n[0], withSearch: !1 })), s("div", { class: "nylas-reminder-email__row" }, s("label", null, c.t("nylasReminderEmails.sendConfirmation.label"), s("span", { class: "label-icon" }, s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, c.t("nylasReminderEmails.sendConfirmation.tooltip.desc"))))), s("div", null, s("nylas-reminder-time", { name: `reminder-time-${o}`, eventReminderTimeMinutes: a.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" }), ((i = this.reminderErrors[`reminder-time-${o}`]) == null ? void 0 : i.error) && s("p", { class: "error-message" }, (l = this.reminderErrors[`reminder-time-${o}`]) == null ? void 0 : l.error, " ", s("button-component", { variant: "invisible", onClick: (f) => {
|
|
5403
|
+
var m;
|
|
5404
|
+
this.nylasSuggestReminderMinutes.emit({ minutes: (m = this.reminderErrors[`reminder-time-${o}`]) == null ? void 0 : m.suggestion });
|
|
5405
|
+
} }, (r = this.reminderErrors[`reminder-time-${o}`]) == null ? void 0 : r.suggestion)))), s("div", { class: "nylas-reminder-email__block" }, s("label", null, c.t("nylasReminderEmails.emailSubject.label")), s("input-component", { name: `reminder-subject-${o}`, maxLength: 60, placeholder: c.t("nylasReminderEmails.emailSubject.placeholder", { organizerName: e ? ` with ${e}` : "" }), defaultValue: (a == null ? void 0 : a.email_subject) || "" })))) : s("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, s("p", null, s("span", { class: "summary-icon" }, s("person-clipboard-icon", null)), (p = n.find((f) => f.value === a.recipient)) == null ? void 0 : p.label), s("p", null, s("span", { class: "summary-icon" }, s("clock-icon", null)), this.formatReminderTime(a.minutes_before_event), " before the event"))) : null;
|
|
5406
|
+
})), s("button-component", { key: "65bb7ee189abcea5524d10046ef5115f510b8c5e", class: "create-reminder", variant: "basic", clickHandler: (a) => {
|
|
5306
5407
|
a.preventDefault(), this.addReminder();
|
|
5307
|
-
} }, s("plus-icon", { key: "
|
|
5408
|
+
} }, s("plus-icon", { key: "0f805648ef175b1a0e7447e867ea356082f77ed4", width: "16", height: "16" }), c.t("nylasReminderEmails.newReminderButtonText")));
|
|
5308
5409
|
}
|
|
5309
5410
|
static get formAssociated() {
|
|
5310
5411
|
return !0;
|
|
5311
5412
|
}
|
|
5312
5413
|
get host() {
|
|
5313
|
-
return
|
|
5414
|
+
return L(this);
|
|
5314
5415
|
}
|
|
5315
5416
|
static get watchers() {
|
|
5316
5417
|
return {
|
|
@@ -5320,8 +5421,8 @@ const ca = class {
|
|
|
5320
5421
|
};
|
|
5321
5422
|
}
|
|
5322
5423
|
};
|
|
5323
|
-
|
|
5324
|
-
|
|
5424
|
+
wo([
|
|
5425
|
+
T({
|
|
5325
5426
|
name: "nylas-reminder-emails",
|
|
5326
5427
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5327
5428
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -5335,13 +5436,13 @@ bo([
|
|
|
5335
5436
|
},
|
|
5336
5437
|
fireRegisterEvent: !0
|
|
5337
5438
|
}),
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
],
|
|
5342
|
-
|
|
5343
|
-
const
|
|
5344
|
-
var
|
|
5439
|
+
qn("design:type", Function),
|
|
5440
|
+
qn("design:paramtypes", []),
|
|
5441
|
+
qn("design:returntype", void 0)
|
|
5442
|
+
], fa.prototype, "render", null);
|
|
5443
|
+
fa.style = xo;
|
|
5444
|
+
const ko = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-reminder-time{display:flex;flex-direction:column;gap:4px}.nylas-reminder-time label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-reminder-time label span.required{color:var(--nylas-error, #cc4841)}.nylas-reminder-time label span.label-icon{margin-left:4px}.nylas-reminder-time label span.label-icon tooltip-component{display:flex}.nylas-reminder-time__wrapper{display:flex;align-items:center;justify-content:flex-end;gap:0.5rem}.nylas-reminder-time__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-reminder-time__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:160px}.nylas-reminder-time__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-reminder-time__wrapper select-dropdown{width:100%}}.nylas-reminder-time__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Eo = ko;
|
|
5445
|
+
var Lo = function(e, n, t, a) {
|
|
5345
5446
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
5346
5447
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5347
5448
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -5349,13 +5450,13 @@ var Co = function(e, n, t, a) {
|
|
|
5349
5450
|
for (var r = e.length - 1; r >= 0; r--)
|
|
5350
5451
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
5351
5452
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
5352
|
-
},
|
|
5453
|
+
}, Jn = function(e, n) {
|
|
5353
5454
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5354
5455
|
return Reflect.metadata(e, n);
|
|
5355
5456
|
};
|
|
5356
|
-
const
|
|
5457
|
+
const ua = class {
|
|
5357
5458
|
constructor(e) {
|
|
5358
|
-
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "reminder-time", this.eventReminderTimeMinutes = void 0, this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0;
|
|
5459
|
+
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "reminder-time", this.eventReminderTimeMinutes = void 0, this.selectedLanguage = void 0, this.selectedNumber = void 0, this.selectedPeriod = void 0, this.errorState = !1;
|
|
5359
5460
|
}
|
|
5360
5461
|
elementNameChangedHandler(e) {
|
|
5361
5462
|
d("nylas-reminder-time", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -5378,28 +5479,34 @@ const pa = class {
|
|
|
5378
5479
|
disconnectedCallback() {
|
|
5379
5480
|
d("nylas-reminder-time", "disconnectedCallback");
|
|
5380
5481
|
}
|
|
5482
|
+
nylasSuggestReminderMinutesHandler(e) {
|
|
5483
|
+
const { minutes: n } = e.detail;
|
|
5484
|
+
this.errorState = !1, this.valueChanged.emit({ value: n.toString(), name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(n.toString(), this.name), this.updateNumberAndPeriodFromMinutes(n + 7), setTimeout(() => {
|
|
5485
|
+
this.updateNumberAndPeriodFromMinutes(n);
|
|
5486
|
+
}, 10);
|
|
5487
|
+
}
|
|
5381
5488
|
timePeriodChangedHandler(e) {
|
|
5382
5489
|
const { number: n, period: t } = e.detail;
|
|
5383
5490
|
let a;
|
|
5384
5491
|
const o = 60, i = o * 24, l = i * 7, r = i * 30;
|
|
5385
|
-
t === "minute" ? a = n : t === "hour" ? a = n * o : t === "day" ? a = n * i : t === "week" ? a = n * l : t === "month" ? a = n * r : a = 0, this.valueChanged.emit({ value: a, name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(a.toString(), this.name);
|
|
5492
|
+
t === "minute" ? a = n : t === "hour" ? a = n * o : t === "day" ? a = n * i : t === "week" ? a = n * l : t === "month" ? a = n * r : a = 0, this.errorState = a % 5 !== 0, this.valueChanged.emit({ value: a, name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(a.toString(), this.name);
|
|
5386
5493
|
}
|
|
5387
5494
|
updateNumberAndPeriodFromMinutes(e) {
|
|
5388
5495
|
let i, l;
|
|
5389
5496
|
e >= 43200 ? (i = Math.floor(e / 43200), l = "month") : e >= 10080 ? (i = Math.floor(e / 10080), l = "week") : e >= 1440 ? (i = Math.floor(e / 1440), l = "day") : e >= 60 ? (i = Math.floor(e / 60), l = "hour") : (i = e, l = "minute"), this.selectedNumber = i, this.selectedPeriod = l;
|
|
5390
5497
|
}
|
|
5391
5498
|
get isInternalsAvailable() {
|
|
5392
|
-
return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
|
|
5499
|
+
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
5393
5500
|
}
|
|
5394
5501
|
render() {
|
|
5395
5502
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
5396
|
-
return s(
|
|
5503
|
+
return s(E, { key: "804e4d6a1d7aaa0c6577e6940ba3dab3ec94d2f8" }, s("div", { key: "36f728ee6fbf449cc8246d502ef8dbe302ab5f73", class: "nylas-reminder-time", part: "nrt" }, s("div", { key: "5f4f305e1ab2f6a30750e328ec68afb1aa2fa94d", class: "nylas-reminder-time__wrapper" }, e && s("time-period-selector", { id: "limit-future-bookings", part: "nrt__time-period-selector", hasError: this.errorState, timePeriods: [c.t("timeDuration", { context: "minute" }), c.t("timeDuration", { context: "hour" }), c.t("timePeriod", { context: "day" })], exportparts: "tps__number-dropdown: nrt__number-dropdown, tps__number-dropdown-button: nrt__number-dropdown-button, tps__number-dropdown-content: nrt__number-dropdown-content, tps__period-dropdown: nrt__period-dropdown, tps__period-dropdown-button: nrt__period-dropdown-button, tps__period-dropdown-content: nrt__period-dropdown-content", defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod }))));
|
|
5397
5504
|
}
|
|
5398
5505
|
static get formAssociated() {
|
|
5399
5506
|
return !0;
|
|
5400
5507
|
}
|
|
5401
5508
|
get host() {
|
|
5402
|
-
return
|
|
5509
|
+
return L(this);
|
|
5403
5510
|
}
|
|
5404
5511
|
static get watchers() {
|
|
5405
5512
|
return {
|
|
@@ -5409,20 +5516,20 @@ const pa = class {
|
|
|
5409
5516
|
};
|
|
5410
5517
|
}
|
|
5411
5518
|
};
|
|
5412
|
-
|
|
5413
|
-
|
|
5519
|
+
Lo([
|
|
5520
|
+
T({
|
|
5414
5521
|
name: "nylas-reminder-time",
|
|
5415
5522
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedLanguage", "selectedLanguage"]]),
|
|
5416
5523
|
eventToProps: {},
|
|
5417
5524
|
fireRegisterEvent: !0
|
|
5418
5525
|
}),
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
],
|
|
5423
|
-
|
|
5424
|
-
const
|
|
5425
|
-
var
|
|
5526
|
+
Jn("design:type", Function),
|
|
5527
|
+
Jn("design:paramtypes", []),
|
|
5528
|
+
Jn("design:returntype", void 0)
|
|
5529
|
+
], ua.prototype, "render", null);
|
|
5530
|
+
ua.style = Eo;
|
|
5531
|
+
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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-scheduling-method{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-scheduling-method .header h3{margin:0;font-size: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}', Ho = To;
|
|
5532
|
+
var So = function(e, n, t, a) {
|
|
5426
5533
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
5427
5534
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5428
5535
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -5430,11 +5537,11 @@ var ko = function(e, n, t, a) {
|
|
|
5430
5537
|
for (var r = e.length - 1; r >= 0; r--)
|
|
5431
5538
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
5432
5539
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
5433
|
-
},
|
|
5540
|
+
}, Gn = function(e, n) {
|
|
5434
5541
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5435
5542
|
return Reflect.metadata(e, n);
|
|
5436
5543
|
};
|
|
5437
|
-
const
|
|
5544
|
+
const ma = class {
|
|
5438
5545
|
constructor(e) {
|
|
5439
5546
|
v(this, e), this.valueChanged = k(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.selectedBookingType = "";
|
|
5440
5547
|
}
|
|
@@ -5486,13 +5593,13 @@ const fa = class {
|
|
|
5486
5593
|
{ label: c.t("nylasSchedulingMethod.schedulingMethodOptions", { context: "maxFairness" }), value: "max-fairness" },
|
|
5487
5594
|
{ label: c.t("nylasSchedulingMethod.schedulingMethodOptions", { context: "maxAvailability" }), value: "max-availability" }
|
|
5488
5595
|
], n = (l = (i = (o = (a = this.selectedConfiguration) == null ? void 0 : a.availability) == null ? void 0 : o.availability_rules) == null ? void 0 : i.availability_method) == null ? void 0 : l.toString(), t = 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;
|
|
5489
|
-
return (n || !t) && !this.readOnly ? null : s(
|
|
5596
|
+
return (n || !t) && !this.readOnly ? null : s(E, null, s("div", { class: "nylas-scheduling-method", part: "nsm" }, s("div", { class: "header", part: "nsm__header" }, s("h3", null, c.t("nylasSchedulingMethod.headerTitle"))), s("div", { class: "nylas-scheduling-method__dropdown" }, s("span", { class: "nylas-scheduling-method__dropdown-label" }, c.t("nylasSchedulingMethod.headerSubTitle"), s("tooltip-component", null, s("info-icon", { slot: "tooltip-icon" }), s("span", { slot: "tooltip-content" }, s("strong", null, c.t("nylasSchedulingMethod.tooltip.standard.label")), s("br", null), "- ", c.t("nylasSchedulingMethod.tooltip.standard.desc"), s("br", null), s("br", null), s("strong", null, c.t("nylasSchedulingMethod.tooltip.maxFairness.label")), s("br", null), "- ", c.t("nylasSchedulingMethod.tooltip.maxFairness.desc"), s("br", null), s("br", null), s("strong", null, c.t("nylasSchedulingMethod.tooltip.maxAvailability.label")), s("br", null), "- ", c.t("nylasSchedulingMethod.tooltip.maxAvailability.desc"), s("br", null)))), this.readOnly ? s("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: ((p = e.find((f) => f.value == n)) == null ? void 0 : p.label) ?? e[0].label }) : s("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((f) => f.value == n) ?? e[0] }))));
|
|
5490
5597
|
}
|
|
5491
5598
|
static get formAssociated() {
|
|
5492
5599
|
return !0;
|
|
5493
5600
|
}
|
|
5494
5601
|
get host() {
|
|
5495
|
-
return
|
|
5602
|
+
return L(this);
|
|
5496
5603
|
}
|
|
5497
5604
|
static get watchers() {
|
|
5498
5605
|
return {
|
|
@@ -5501,8 +5608,8 @@ const fa = class {
|
|
|
5501
5608
|
};
|
|
5502
5609
|
}
|
|
5503
5610
|
};
|
|
5504
|
-
|
|
5505
|
-
|
|
5611
|
+
So([
|
|
5612
|
+
T({
|
|
5506
5613
|
name: "nylas-scheduling-method",
|
|
5507
5614
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5508
5615
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -5517,13 +5624,13 @@ ko([
|
|
|
5517
5624
|
},
|
|
5518
5625
|
fireRegisterEvent: !0
|
|
5519
5626
|
}),
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
],
|
|
5524
|
-
|
|
5525
|
-
const
|
|
5526
|
-
var
|
|
5627
|
+
Gn("design:type", Function),
|
|
5628
|
+
Gn("design:paramtypes", []),
|
|
5629
|
+
Gn("design:returntype", void 0)
|
|
5630
|
+
], ma.prototype, "render", null);
|
|
5631
|
+
ma.style = Ho;
|
|
5632
|
+
const Oo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size: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}', Do = Oo;
|
|
5633
|
+
var Io = function(e, n, t, a) {
|
|
5527
5634
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, l;
|
|
5528
5635
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
5529
5636
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -5531,11 +5638,11 @@ var To = function(e, n, t, a) {
|
|
|
5531
5638
|
for (var r = e.length - 1; r >= 0; r--)
|
|
5532
5639
|
(l = e[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(n, t, i) : l(n, t)) || i);
|
|
5533
5640
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
5534
|
-
},
|
|
5641
|
+
}, Xn = function(e, n) {
|
|
5535
5642
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
5536
5643
|
return Reflect.metadata(e, n);
|
|
5537
5644
|
};
|
|
5538
|
-
const Je = 15,
|
|
5645
|
+
const Je = 15, ha = class {
|
|
5539
5646
|
constructor(e) {
|
|
5540
5647
|
var n, t;
|
|
5541
5648
|
v(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = (t = (n = this.selectedConfiguration) == null ? void 0 : n.availability) == null ? void 0 : t.duration_minutes, this.selectedLanguage = void 0, this.internalEventDurationMinutes = void 0, this.selectedInterval = void 0, this.selectedRoundTo = void 0, this.componentLoaded = !1;
|
|
@@ -5614,7 +5721,7 @@ const Je = 15, ua = class {
|
|
|
5614
5721
|
{ value: "45", label: "45 mins" },
|
|
5615
5722
|
{ value: "60", label: "60 mins" }
|
|
5616
5723
|
], n = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? e[0] : e.find((t) => t.value == this.selectedInterval.toString()) ?? e[0] : void 0;
|
|
5617
|
-
return s(
|
|
5724
|
+
return s(E, { key: "b23aa7d2e108d0cb1e9987a5540336edde6d5908" }, s("div", { key: "e51d7b52934c5eb3557a790665d13616c90d1aa3", class: "nylas-timeslot-interval", part: "nti" }, s("div", { key: "e611dd8c90279861eb3b59549d71ff9dcba692f3", class: "header", part: "nti__header" }, s("h3", { key: "ad8e9b3fe0ed2ef9f16b6e14c949bd802fb768fc" }, c.t("nylasTimeslotInterval.headerTitle"))), s("div", { key: "3e023987e73765beca3a5112ebf2d44185e4de44", class: "nylas-timeslot-interval__dropdown" }, s("span", { key: "6a25da3e3e2ae557eaa610e5ffbf0a7c50431394", class: "label", part: "nti__input-label" }, c.t("nylasTimeslotInterval.timeslotInterval.label")), (n == null ? void 0 : n.label) && s("select-dropdown", { name: "interval-minutes", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: n }), s("span", { key: "a309581409e7b6c51e717cd9511d02367711cc49", slot: "label", class: "label", part: "nti__input-label" }, c.t("nylasTimeslotInterval.timeslotRounding.label"), s("tooltip-component", { key: "fc3cc89959c759a773ee1ea8ea6081b067e6d13b" }, s("info-icon", { key: "788ec48b04e3fb371fc2ad6ec1b8639d49af7c20", slot: "tooltip-icon" }), s("span", { key: "84014157120196feab459814fe22804d73fdd05a", slot: "tooltip-content" }, c.t("nylasTimeslotInterval.timeslotRounding.tooltip.desc")))), this.componentLoaded && s("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
|
|
5618
5725
|
{
|
|
5619
5726
|
value: "no-rounding",
|
|
5620
5727
|
label: c.t("nylasTimeslotInterval.timeslotRoundingOptions.noRounding.label"),
|
|
@@ -5631,7 +5738,7 @@ const Je = 15, ua = class {
|
|
|
5631
5738
|
return !0;
|
|
5632
5739
|
}
|
|
5633
5740
|
get host() {
|
|
5634
|
-
return
|
|
5741
|
+
return L(this);
|
|
5635
5742
|
}
|
|
5636
5743
|
static get watchers() {
|
|
5637
5744
|
return {
|
|
@@ -5641,8 +5748,8 @@ const Je = 15, ua = class {
|
|
|
5641
5748
|
};
|
|
5642
5749
|
}
|
|
5643
5750
|
};
|
|
5644
|
-
|
|
5645
|
-
|
|
5751
|
+
Io([
|
|
5752
|
+
T({
|
|
5646
5753
|
name: "nylas-timeslot-interval",
|
|
5647
5754
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5648
5755
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -5650,108 +5757,109 @@ To([
|
|
|
5650
5757
|
]),
|
|
5651
5758
|
fireRegisterEvent: !0
|
|
5652
5759
|
}),
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
],
|
|
5657
|
-
|
|
5658
|
-
const
|
|
5760
|
+
Xn("design:type", Function),
|
|
5761
|
+
Xn("design:paramtypes", []),
|
|
5762
|
+
Xn("design:returntype", void 0)
|
|
5763
|
+
], ha.prototype, "render", null);
|
|
5764
|
+
ha.style = Do;
|
|
5765
|
+
const $o = ".sc-paintbrush-fill-icon-h{display:flex}", Fo = $o, Po = class {
|
|
5659
5766
|
constructor(e) {
|
|
5660
5767
|
v(this, e), this.width = "16", this.height = "13";
|
|
5661
5768
|
}
|
|
5662
5769
|
render() {
|
|
5663
|
-
return s("svg", { key: "
|
|
5770
|
+
return s("svg", { key: "9e60c0ca988347767206d959340273adfcce2ec4", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "c8b0c81a072cdcc7e273a641be71d7dddc1dbab4", 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" }));
|
|
5664
5771
|
}
|
|
5665
5772
|
};
|
|
5666
|
-
|
|
5667
|
-
const
|
|
5773
|
+
Po.style = Fo;
|
|
5774
|
+
const No = ".sc-paintbrush-icon-h{display:flex}", Ao = No, Ro = class {
|
|
5668
5775
|
constructor(e) {
|
|
5669
5776
|
v(this, e), this.width = "16", this.height = "13";
|
|
5670
5777
|
}
|
|
5671
5778
|
render() {
|
|
5672
|
-
return s("svg", { key: "
|
|
5779
|
+
return s("svg", { key: "02b47fe5253046320c8f4cbd86d511edef4e5e79", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "7cb10e459d2c6180a68d1a5252cb07db560847c3", 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" }));
|
|
5673
5780
|
}
|
|
5674
5781
|
};
|
|
5675
|
-
|
|
5676
|
-
const
|
|
5782
|
+
Ro.style = Ao;
|
|
5783
|
+
const Mo = ".sc-people-icon-h{display:flex}", zo = Mo, Bo = class {
|
|
5677
5784
|
constructor(e) {
|
|
5678
5785
|
v(this, e), this.width = "20", this.height = "20";
|
|
5679
5786
|
}
|
|
5680
5787
|
render() {
|
|
5681
|
-
return s("svg", { key: "
|
|
5788
|
+
return s("svg", { key: "8f10d8b35f66b328fd30ac00fab5ca847b48b61a", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, s("path", { key: "9b226374844e8715cd1a8d28da78c916b935d8fc", 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" }));
|
|
5682
5789
|
}
|
|
5683
5790
|
};
|
|
5684
|
-
|
|
5685
|
-
const
|
|
5791
|
+
Bo.style = zo;
|
|
5792
|
+
const jo = ".sc-trash-icon-h{display:flex}", Wo = jo, Uo = class {
|
|
5686
5793
|
constructor(e) {
|
|
5687
5794
|
v(this, e), this.width = "20", this.height = "21";
|
|
5688
5795
|
}
|
|
5689
5796
|
render() {
|
|
5690
|
-
return s("svg", { key: "
|
|
5797
|
+
return s("svg", { key: "7908ffe40cb75a54ea019e5bebd2dd4c000bc8c7", width: this.width, height: this.height, viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "fc21813c45dcd05f402e36732eac300db3905272", d: "M10 0.25C11.733 0.25 13.1492 1.60645 13.2449 3.31558L13.25 3.5H18.5C18.9142 3.5 19.25 3.83579 19.25 4.25C19.25 4.6297 18.9678 4.94349 18.6018 4.99315L18.5 5H17.704L16.4239 18.0192C16.2912 19.3683 15.1984 20.41 13.8626 20.4945L13.6871 20.5H6.31293C4.95734 20.5 3.81365 19.5145 3.59883 18.1934L3.57614 18.0192L2.295 5H1.5C1.1203 5 0.806509 4.71785 0.756847 4.35177L0.75 4.25C0.75 3.8703 1.03215 3.55651 1.39823 3.50685L1.5 3.5H6.75C6.75 1.70507 8.20507 0.25 10 0.25ZM16.197 5H3.802L5.06893 17.8724C5.12768 18.4696 5.60033 18.9343 6.18585 18.9936L6.31293 19H13.6871C14.2872 19 14.7959 18.5751 14.9123 17.9982L14.9311 17.8724L16.197 5ZM11.75 7.75C12.1297 7.75 12.4435 8.03215 12.4932 8.39823L12.5 8.5V15.5C12.5 15.9142 12.1642 16.25 11.75 16.25C11.3703 16.25 11.0565 15.9678 11.0068 15.6018L11 15.5V8.5C11 8.08579 11.3358 7.75 11.75 7.75ZM8.25 7.75C8.6297 7.75 8.94349 8.03215 8.99315 8.39823L9 8.5V15.5C9 15.9142 8.66421 16.25 8.25 16.25C7.8703 16.25 7.55651 15.9678 7.50685 15.6018L7.5 15.5V8.5C7.5 8.08579 7.83579 7.75 8.25 7.75ZM10 1.75C9.08183 1.75 8.32881 2.45711 8.2558 3.35647L8.25 3.5H11.75C11.75 2.5335 10.9665 1.75 10 1.75Z", fill: "currentColor" }));
|
|
5691
5798
|
}
|
|
5692
5799
|
};
|
|
5693
|
-
|
|
5694
|
-
const
|
|
5800
|
+
Uo.style = Wo;
|
|
5801
|
+
const Zo = ".sc-zoom-icon-h{display:flex}", qo = Zo, Jo = class {
|
|
5695
5802
|
constructor(e) {
|
|
5696
5803
|
v(this, e), this.width = "20", this.height = "20";
|
|
5697
5804
|
}
|
|
5698
5805
|
render() {
|
|
5699
|
-
return s("svg", { key: "
|
|
5806
|
+
return s("svg", { key: "1bd7b290f01a051a60bd1830dbbcfc42be2c384b", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "9763e73ce706e4ceb475ce3e552d558dc6a7e56b", d: "M19.7495 6.85792C19.2077 3.4745 16.5255 0.792345 13.1421 0.250451C12.1175 0.0865155 11.0702 0 10 0C8.92992 0 7.88256 0.0865155 6.85797 0.250451C3.47453 0.792345 0.792373 3.4745 0.250478 6.85792C0.0865433 7.87796 0 8.92987 0 10C0 11.0701 0.0865433 12.1175 0.250478 13.1421C0.792373 16.5255 3.47453 19.2077 6.85797 19.7495C7.88256 19.9135 8.92992 20 10 20C11.0702 20 12.1175 19.9135 13.1421 19.7495C16.5255 19.2077 19.2077 16.5255 19.7495 13.1421C19.9135 12.122 20 11.0701 20 10C20 8.92987 19.9135 7.88251 19.7495 6.85792Z", fill: "url(#paint0_linear_22_6272)" }), s("path", { key: "b6937eb079b6040131a9cd33b653bf628460bdd5", d: "M12.154 12.1676C12.154 12.7596 11.6759 13.2377 11.0839 13.2377H6.42995C5.24598 13.2377 4.28516 12.2769 4.28516 11.0929V7.87794C4.28516 7.28596 4.76328 6.80786 5.35527 6.80786H10.0092C11.1932 6.80786 12.154 7.7687 12.154 8.95267V12.1676ZM14.8589 7.09475L13.2879 8.27412C13.0193 8.47448 12.8598 8.79324 12.8598 9.13022V10.9153C12.8598 11.2523 13.0193 11.5711 13.2879 11.7714L14.8589 12.9508C15.2141 13.2149 15.715 12.9645 15.715 12.5228V7.5228C15.715 7.08109 15.2096 6.83063 14.8589 7.09475Z", fill: "white" }), s("defs", { key: "fa53afb5526d68adfe705263543f1a928c75f699" }, s("linearGradient", { key: "2b00330bd672f456e27220632b3c46f5c5d96699", id: "paint0_linear_22_6272", x1: "10", y1: "19.9954", x2: "10", y2: "-0.00455379", gradientUnits: "userSpaceOnUse" }, s("stop", { key: "d3170bd72ac6ce8cc2f3d0fdbd01b6397066b331", "stop-color": "#003FAE" }), s("stop", { key: "4b5d17989b86140805f61fd69356feb6fe9a6bca", offset: "0.02", "stop-color": "#0142B7" }), s("stop", { key: "79805e5703aced573671dd7922153791be6708f9", offset: "0.09", "stop-color": "#044BD1" }), s("stop", { key: "b602ef6b222d8326a4c8a1a0d12aa4a3e01d3311", offset: "0.16", "stop-color": "#0752E5" }), s("stop", { key: "9350d9eec171c7875a6f4a508e97b521acd77c15", offset: "0.24", "stop-color": "#0958F4" }), s("stop", { key: "80c66addcddba9b8c2b9671b97d275d9f0beee51", offset: "0.34", "stop-color": "#0A5BFC" }), s("stop", { key: "7a771986fb174b1d676776f5c6ab42a5480163a6", offset: "0.5", "stop-color": "#0B5CFF" }))));
|
|
5700
5807
|
}
|
|
5701
5808
|
};
|
|
5702
|
-
|
|
5809
|
+
Jo.style = qo;
|
|
5703
5810
|
export {
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5811
|
+
wa as calendar_agenda_fill_icon,
|
|
5812
|
+
La as calendar_agenda_icon,
|
|
5813
|
+
Sa as calendar_info_icon,
|
|
5814
|
+
Ia as calendar_patterns_icon,
|
|
5815
|
+
Pa as checkmark_icon,
|
|
5816
|
+
Ra as dragable_icon,
|
|
5817
|
+
Ba as envelope_fill_icon,
|
|
5818
|
+
Ua as envelope_icon,
|
|
5819
|
+
Ja as eye_icon,
|
|
5820
|
+
Ya as feedback_icon,
|
|
5821
|
+
Qa as flow_icon,
|
|
5822
|
+
ti as google_meet_icon,
|
|
5823
|
+
xt as input_image_url,
|
|
5824
|
+
ri as location_icon,
|
|
5825
|
+
pi as location_off_icon,
|
|
5826
|
+
mi as microsoft_teams_icon,
|
|
5827
|
+
wt as nylas_additional_participants,
|
|
5828
|
+
kt as nylas_availability_picker,
|
|
5829
|
+
Et as nylas_booking_calendar_picker,
|
|
5830
|
+
Lt as nylas_booking_confirmation_redirect,
|
|
5831
|
+
Tt as nylas_booking_confirmation_type,
|
|
5832
|
+
jt as nylas_booking_form_config,
|
|
5833
|
+
Wt as nylas_buffer_time,
|
|
5834
|
+
Ut as nylas_calendar_picker,
|
|
5835
|
+
Zt as nylas_cancellation_policy,
|
|
5836
|
+
qt as nylas_confirmation_email,
|
|
5837
|
+
Jt as nylas_connected_calendars,
|
|
5838
|
+
Gt as nylas_custom_booking_flow,
|
|
5839
|
+
Xt as nylas_custom_event_slug,
|
|
5840
|
+
Yt as nylas_customize_booking_settings,
|
|
5841
|
+
Kt as nylas_disable_emails,
|
|
5842
|
+
Vt as nylas_event_description,
|
|
5843
|
+
Qt as nylas_event_duration,
|
|
5844
|
+
ea as nylas_event_info,
|
|
5845
|
+
na as nylas_event_limits,
|
|
5846
|
+
ta as nylas_event_location,
|
|
5847
|
+
aa as nylas_event_title,
|
|
5848
|
+
ia as nylas_feedback_form,
|
|
5849
|
+
sa as nylas_limit_future_bookings,
|
|
5850
|
+
oa as nylas_min_booking_notice,
|
|
5851
|
+
la as nylas_min_cancellation_notice,
|
|
5852
|
+
ra as nylas_page_name,
|
|
5853
|
+
da as nylas_page_styling,
|
|
5854
|
+
ca as nylas_participant_booking_calendars,
|
|
5855
|
+
pa as nylas_participants_custom_availability,
|
|
5856
|
+
fa as nylas_reminder_emails,
|
|
5857
|
+
ua as nylas_reminder_time,
|
|
5858
|
+
ma as nylas_scheduling_method,
|
|
5859
|
+
ha as nylas_timeslot_interval,
|
|
5860
|
+
Po as paintbrush_fill_icon,
|
|
5861
|
+
Ro as paintbrush_icon,
|
|
5862
|
+
Bo as people_icon,
|
|
5863
|
+
Uo as trash_icon,
|
|
5864
|
+
Jo as zoom_icon
|
|
5757
5865
|
};
|