@nylas/react 1.1.0-canary.24 → 1.1.0-canary.25
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/README.md +110 -2
- package/dist/add-circle-icon_2.entry-7165bd0e.js +25 -0
- package/dist/add-circle-icon_2.entry-f1ddca18.cjs +1 -0
- package/dist/{archive-icon_7.entry-0d379e81.js → archive-icon_7.entry-7411c224.js} +14 -14
- package/dist/{archive-icon_7.entry-464293d2.cjs → archive-icon_7.entry-e3df60ed.cjs} +1 -1
- package/dist/{arrow-icon.entry-4e6fe7be.cjs → arrow-icon.entry-280e18b0.cjs} +1 -1
- package/dist/arrow-icon.entry-38949317.js +15 -0
- package/dist/{bold-icon_3.entry-5f0eedfe.js → bold-icon_3.entry-5963945c.js} +4 -4
- package/dist/{bold-icon_3.entry-ba65ceeb.cjs → bold-icon_3.entry-5dffbedd.cjs} +1 -1
- package/dist/{button-component_2.entry-1290a222.js → button-component_2.entry-237733b4.js} +6 -6
- package/dist/{button-component_2.entry-ae5e68ec.cjs → button-component_2.entry-b29d2873.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_48.entry-4ae8cc76.js → calendar-agenda-fill-icon_48.entry-9afba869.js} +219 -227
- package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +7 -0
- package/dist/{calendar-cancel-icon.entry-6506440a.cjs → calendar-cancel-icon.entry-77ccf227.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-d2f0c9e0.js → calendar-cancel-icon.entry-780723a6.js} +4 -4
- package/dist/{calendar-check-icon_2.entry-5212c5b3.js → calendar-check-icon_2.entry-2c89c230.js} +7 -7
- package/dist/{calendar-check-icon_2.entry-0f70758f.cjs → calendar-check-icon_2.entry-b37ac7f0.cjs} +1 -1
- package/dist/{calendar-icon.entry-b7626be4.js → calendar-icon.entry-02dd3990.js} +6 -6
- package/dist/{calendar-icon.entry-f10bd734.cjs → calendar-icon.entry-ffc93569.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-879250a5.cjs → checkbox-component_2.entry-00b6a1e9.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-7ce6d945.js → checkbox-component_2.entry-ee9d0e6c.js} +3 -3
- package/dist/{chevron-icon_3.entry-a2f9e9ba.cjs → chevron-icon_3.entry-468abc26.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-8c9ca484.js → chevron-icon_3.entry-f62e9ef1.js} +10 -10
- package/dist/{clock-icon_4.entry-3d9d8690.js → clock-icon_4.entry-766a1b23.js} +18 -18
- package/dist/{clock-icon_4.entry-7ecb071a.cjs → clock-icon_4.entry-7dc2cc4a.cjs} +1 -1
- package/dist/{constants-50c3e067-8cc8e601.js → constants-50c3e067-8a40a5fe.js} +1 -1
- package/dist/{constants-50c3e067-da2d4786.cjs → constants-50c3e067-9f2a6372.cjs} +1 -1
- package/dist/{copy-icon.entry-38cfea6b.js → copy-icon.entry-2a841508.js} +5 -5
- package/dist/{copy-icon.entry-0a80a55e.cjs → copy-icon.entry-e5251410.cjs} +1 -1
- package/dist/{delete-icon_2.entry-9e7cf99e.cjs → delete-icon_2.entry-1a5c39dc.cjs} +1 -1
- package/dist/{delete-icon_2.entry-f9a43051.js → delete-icon_2.entry-64555a2f.js} +5 -5
- package/dist/{document-refresh-icon.entry-827975fd.js → document-refresh-icon.entry-4bf6398b.js} +5 -5
- package/dist/document-refresh-icon.entry-fdc7ddda.cjs +1 -0
- package/dist/{elements-dc5b338e-0f8b5d33.js → elements-dc5b338e-2da1fe61.js} +1 -1
- package/dist/{elements-dc5b338e-3a7e1134.cjs → elements-dc5b338e-c8016c3d.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-088a527d.cjs → focus-visible-e8093c16-0a38a184.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-40f0c20e.js → focus-visible-e8093c16-9d0c98c0.js} +1 -1
- package/dist/{forward-icon_6.entry-f984a68b.js → forward-icon_6.entry-390ef70a.js} +9 -9
- package/dist/{forward-icon_6.entry-a8f80871.cjs → forward-icon_6.entry-7238ef38.cjs} +2 -2
- package/dist/{globe-icon.entry-c50fc96c.cjs → globe-icon.entry-81f42f89.cjs} +1 -1
- package/dist/{globe-icon.entry-a78c8ea8.js → globe-icon.entry-8d106260.js} +4 -4
- package/dist/{google-logo-icon_4.entry-710632b6.js → google-logo-icon_4.entry-aabd3886.js} +15 -15
- package/dist/google-logo-icon_4.entry-fa2b8999.cjs +1 -0
- package/dist/index-53420959-5fc8ad2b.js +5 -0
- package/dist/index-53420959-fcf45780.cjs +1 -0
- package/dist/{index-eca7f3e2.js → index-5ccfd9df.js} +50 -50
- package/dist/{index-6d9eeb53-407c797a.js → index-6d9eeb53-58c8980a.js} +2 -2
- package/dist/{index-6d9eeb53-cac6eaea.cjs → index-6d9eeb53-b2a6d09f.cjs} +1 -1
- package/dist/{index-a3051853.cjs → index-eb33703c.cjs} +3 -3
- package/dist/{index.es-17b386f4-856af8bb.js → index.es-c9454237-00ccd1e6.js} +1 -1
- package/dist/{index.es-17b386f4-c6a8cc2a.cjs → index.es-c9454237-b64161d1.cjs} +1 -1
- package/dist/{info-icon_2.entry-c08c459c.cjs → info-icon_2.entry-b2e11336.cjs} +1 -1
- package/dist/{info-icon_2.entry-ffd39ba3.js → info-icon_2.entry-bb8ed71c.js} +5 -5
- package/dist/{input-component.entry-35e6e399.cjs → input-component.entry-378b1ccc.cjs} +1 -1
- package/dist/{input-component.entry-c09124d3.js → input-component.entry-cb86170f.js} +5 -5
- package/dist/{input-dropdown.entry-9ac3e157.cjs → input-dropdown.entry-98954c93.cjs} +1 -1
- package/dist/{input-dropdown.entry-83f2c378.js → input-dropdown.entry-a76c339e.js} +2 -2
- package/dist/{mailbox-store-2e401c7f-66a87143.cjs → mailbox-store-edc386fc-156b7236.cjs} +1 -1
- package/dist/{mailbox-store-2e401c7f-9d607fd1.js → mailbox-store-edc386fc-8bc7558b.js} +2 -2
- package/dist/{multi-select-dropdown.entry-8710acb4.cjs → multi-select-dropdown.entry-40b855e1.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-2c2125e3.js → multi-select-dropdown.entry-6b686695.js} +2 -2
- package/dist/{nylas-booked-event-card_12.entry-009a11e3.cjs → nylas-booked-event-card_12.entry-9d693125.cjs} +1 -1
- package/dist/{nylas-booked-event-card_12.entry-5821b0c4.js → nylas-booked-event-card_12.entry-e861bb16.js} +13 -13
- package/dist/{nylas-form-card.entry-0ce9dd7d.js → nylas-form-card.entry-b158d789.js} +18 -18
- package/dist/{nylas-form-card.entry-951163a1.cjs → nylas-form-card.entry-ca4a8746.cjs} +1 -1
- package/dist/{nylas-if-state.entry-474cfdcd.js → nylas-if-state.entry-8e4d922c.js} +8 -8
- package/dist/{nylas-if-state.entry-16aabbff.cjs → nylas-if-state.entry-95fac42d.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-a9e53520.js → nylas-list-folders.entry-83c39684.js} +7 -7
- package/dist/{nylas-list-folders.entry-f0a4d566.cjs → nylas-list-folders.entry-8a22e0c8.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-7fc8b71d.cjs → nylas-list-threads.entry-54c582af.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-5af74949.js → nylas-list-threads.entry-7ea370e1.js} +3 -3
- package/dist/{nylas-login.entry-acbdf23c.js → nylas-login.entry-9115fd81.js} +7 -7
- package/dist/{nylas-login.entry-d0fcf7c4.cjs → nylas-login.entry-fb627e40.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-a70e4777.cjs → nylas-mailbox-pagination.entry-04626d27.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-01f32d0c.js → nylas-mailbox-pagination.entry-3ff02cf9.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-208b2667.cjs → nylas-mailbox-toolbar-button.entry-8d00c789.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-a8166cf0.js → nylas-mailbox-toolbar-button.entry-f752e925.js} +7 -7
- package/dist/{nylas-mailbox.entry-bbd33bb0.js → nylas-mailbox.entry-99c27b6c.js} +6 -6
- package/dist/{nylas-mailbox.entry-7a3562b6.cjs → nylas-mailbox.entry-b3974f4e.cjs} +1 -1
- package/dist/{nylas-provider.entry-9cce7730.cjs → nylas-provider.entry-a3ad02a5.cjs} +1 -1
- package/dist/{nylas-provider.entry-7e8aedea.js → nylas-provider.entry-c206aa32.js} +6 -6
- package/dist/{nylas-reminder-emails.entry-a1b49b18.js → nylas-reminder-emails.entry-414ce6fe.js} +9 -9
- package/dist/nylas-reminder-emails.entry-59c07bfe.cjs +4 -0
- package/dist/{nylas-reminder-time_2.entry-6f6067f9.js → nylas-reminder-time_2.entry-197d83a0.js} +6 -6
- package/dist/{nylas-reminder-time_2.entry-0a480ab7.cjs → nylas-reminder-time_2.entry-d79dcd85.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-625d597e.js → nylas-scheduler-editor.entry-7f389982.js} +25 -25
- package/dist/{nylas-scheduler-editor.entry-6be8e9c6.cjs → nylas-scheduler-editor.entry-f1c6964a.cjs} +2 -2
- package/dist/nylas-scheduling.entry-1a8bd6fc.cjs +1 -0
- package/dist/{nylas-scheduling.entry-fa471c9e.js → nylas-scheduling.entry-4fa5381d.js} +126 -121
- package/dist/{nylas-threads-refresh.entry-da68039b.js → nylas-threads-refresh.entry-20602e7b.js} +11 -11
- package/dist/{nylas-threads-refresh.entry-77015d63.cjs → nylas-threads-refresh.entry-56b53449.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-27472aef.js → nylas-threads-search.entry-8872473c.js} +7 -7
- package/dist/{nylas-threads-search.entry-8f765c67.cjs → nylas-threads-search.entry-8e0ec3ae.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-e8842700.js → nylas-time-window-picker.entry-9ac542b7.js} +2 -2
- package/dist/{nylas-time-window-picker.entry-a59d7be6.cjs → nylas-time-window-picker.entry-ca47f721.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-16cc4066.cjs → nylas-view-thread.entry-1f758e43.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-322a9890.js → nylas-view-thread.entry-dcd3d5be.js} +3 -3
- package/dist/{person-icon.entry-fd56c344.cjs → person-icon.entry-63b28ace.cjs} +1 -1
- package/dist/{person-icon.entry-b62da62d.js → person-icon.entry-93130c05.js} +4 -4
- package/dist/play-icon_2.entry-6a99c32d.js +25 -0
- package/dist/play-icon_2.entry-b67fb649.cjs +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-99d7fbcb.js → refresh-icon.entry-84783c91.js} +2 -2
- package/dist/{refresh-icon.entry-5427ec8d.cjs → refresh-icon.entry-b49792fc.cjs} +1 -1
- package/dist/{register-component-4487ac6f-b29bf135.cjs → register-component-887199a9-003f96c5.cjs} +1 -1
- package/dist/{register-component-4487ac6f-4b0c1c53.js → register-component-887199a9-b41dfa7a.js} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-810ef774.js → scheduler-config-store-2a3b403d-73610089.js} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-51c51cff.cjs → scheduler-config-store-2a3b403d-a5e3433a.cjs} +1 -1
- package/dist/{scheduler-store-55107657-6c0c5de4.js → scheduler-store-fe281404-bddb1b6a.js} +1 -1
- package/dist/{scheduler-store-55107657-25845a8b.cjs → scheduler-store-fe281404-c3e477f6.cjs} +1 -1
- package/dist/textarea-component.entry-28c4bc05.cjs +1 -0
- package/dist/textarea-component.entry-40e959e5.js +36 -0
- package/dist/{time-period-selector.entry-d7792301.cjs → time-period-selector.entry-af71523a.cjs} +1 -1
- package/dist/{time-period-selector.entry-a6c6aefd.js → time-period-selector.entry-da5d8652.js} +2 -2
- package/dist/{translate-icon.entry-d65cfcea.js → translate-icon.entry-92b83635.js} +5 -5
- package/dist/{translate-icon.entry-4970d886.cjs → translate-icon.entry-a2ed4f76.cjs} +1 -1
- package/dist/{warning-icon.entry-eb7da408.js → warning-icon.entry-19f721c3.js} +4 -4
- package/dist/{warning-icon.entry-870059cb.cjs → warning-icon.entry-3ab9a59e.cjs} +1 -1
- package/package.json +3 -3
- package/dist/add-circle-icon_2.entry-4a6b44be.js +0 -25
- package/dist/add-circle-icon_2.entry-b0e8cb94.cjs +0 -1
- package/dist/arrow-icon.entry-3c2e4e0d.js +0 -15
- package/dist/calendar-agenda-fill-icon_48.entry-eaa36515.cjs +0 -7
- package/dist/document-refresh-icon.entry-5d6c4a99.cjs +0 -1
- package/dist/google-logo-icon_4.entry-14d75c66.cjs +0 -1
- package/dist/index-53420959-78cc8138.cjs +0 -1
- package/dist/index-53420959-da9158f8.js +0 -5
- package/dist/nylas-reminder-emails.entry-287316b6.cjs +0 -4
- package/dist/nylas-scheduling.entry-1678be21.cjs +0 -1
- package/dist/play-icon_2.entry-d0a67f7b.js +0 -25
- package/dist/play-icon_2.entry-d17c9937.cjs +0 -1
- package/dist/textarea-component.entry-8bdfbcc9.cjs +0 -1
- package/dist/textarea-component.entry-9803d3c3.js +0 -36
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as _, h as o, c as
|
|
2
|
-
import { R as
|
|
3
|
-
import { T as hn, F as mn, e as wa, P as mt, C as
|
|
4
|
-
import { s as
|
|
5
|
-
import "./index-53420959-
|
|
1
|
+
import { r as _, h as o, c as I, g as O, d, H, K as we, L as fe, M as un, O as va, P as On, Q as ln, R as _a, S as xe, T as Ca } from "./index-5ccfd9df.js";
|
|
2
|
+
import { R as T } from "./register-component-887199a9-b41dfa7a.js";
|
|
3
|
+
import { T as hn, F as mn, e as wa, P as mt, C as xa, E as yn } from "./constants-50c3e067-8a40a5fe.js";
|
|
4
|
+
import { s as Te } from "./index-6d9eeb53-58c8980a.js";
|
|
5
|
+
import "./index-53420959-5fc8ad2b.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
const
|
|
8
|
+
const ka = ".sc-calendar-agenda-fill-icon-h{display:flex}", Ea = ka, Sa = class {
|
|
9
9
|
constructor(e) {
|
|
10
10
|
_(this, e), this.width = "20", this.height = "20";
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return o("svg", { key: "
|
|
13
|
+
return o("svg", { key: "82ed3f33344ad3a3237af06cf998e389a7d4a5a8", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "0a7b3e0b8261aeba2146b6f349721aae5f4548f2", 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" }));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
Sa.style = Ea;
|
|
@@ -19,25 +19,25 @@ const Da = ".sc-calendar-agenda-icon-h{display:flex}", Oa = Da, Ha = class {
|
|
|
19
19
|
_(this, e), this.width = "20", this.height = "20";
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return o("svg", { key: "
|
|
22
|
+
return o("svg", { key: "55c989c33af099f8642452fb606d635dec17e246", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "38563c8ff9ac5d86905f84cba02d7d6dda878563", 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" }));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
Ha.style = Oa;
|
|
26
|
-
const
|
|
26
|
+
const Ta = ".sc-calendar-info-icon-h{display:flex}", Ia = Ta, $a = class {
|
|
27
27
|
constructor(e) {
|
|
28
28
|
_(this, e), this.width = "20", this.height = "20";
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return o("svg", { key: "
|
|
31
|
+
return o("svg", { key: "fecc10b67e362dc3d0b5a54965569a324a92be20", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "c054076fdbe0d45b4f6df1cc4356e24fcd2fd75c", 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" }));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
$a.style =
|
|
34
|
+
$a.style = Ia;
|
|
35
35
|
const Na = ".sc-calendar-patterns-icon-h{display:flex}", Fa = Na, Aa = class {
|
|
36
36
|
constructor(e) {
|
|
37
37
|
_(this, e), this.width = "20", this.height = "20";
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return o("svg", { key: "
|
|
40
|
+
return o("svg", { key: "2ccefcf483e2286b777676a2ae19bb4c3ebe0a64", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "c10926b15192cb69ea318507a3b2b704978ce574", 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" }));
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
Aa.style = Fa;
|
|
@@ -46,7 +46,7 @@ const La = ".sc-checkmark-icon-h{display:flex}", Pa = La, Ma = class {
|
|
|
46
46
|
_(this, e), this.width = "18", this.height = "14";
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return o("svg", { key: "
|
|
49
|
+
return o("svg", { key: "fdedf2255822587e4aa000a54d18055c69506cf3", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "29ab354c6c5716212381973365d29febcebe40d3", 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" }));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
Ma.style = Pa;
|
|
@@ -55,7 +55,7 @@ const Ra = ".sc-dragable-icon-h{display:flex}", za = Ra, ja = class {
|
|
|
55
55
|
_(this, e), this.width = "20", this.height = "20";
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return o("svg", { key: "
|
|
58
|
+
return o("svg", { key: "865d4def333f697c8792d95fe401368d9b982558", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "29b92487844b55c040f0fe5e45f698cce5f81f97", 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" }));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
ja.style = za;
|
|
@@ -64,7 +64,7 @@ const Ba = ".sc-envelope-fill-icon-h{display:flex}", Wa = Ba, Ua = class {
|
|
|
64
64
|
_(this, e), this.width = "16", this.height = "13";
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return o("svg", { key: "
|
|
67
|
+
return o("svg", { key: "473dce8e81c68f020f9d0de6054cb4289b25d91f", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "fad61f59f22a4c982055e48d76d051af7781b5f7", 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" }));
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
Ua.style = Wa;
|
|
@@ -73,7 +73,7 @@ const Za = ".sc-envelope-icon-h{display:flex}", Va = Za, qa = class {
|
|
|
73
73
|
_(this, e), this.width = "16", this.height = "13";
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return o("svg", { key: "
|
|
76
|
+
return o("svg", { key: "bf0dd6803f559bc1057f1bf0f1b4bc280a06b908", width: "16", height: "13", viewBox: "0 0 16 13", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "717fc1fcaa934e21b271727ea30698288e490f91", 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" }));
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
qa.style = Va;
|
|
@@ -82,7 +82,7 @@ const Ga = ".sc-flow-icon-h{display:flex}", Ja = Ga, Ya = class {
|
|
|
82
82
|
_(this, e), this.width = "16", this.height = "12";
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return o("svg", { key: "
|
|
85
|
+
return o("svg", { key: "e4839ebd364ea5148fbd8da6ef4681084764ba47", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "d1e7b7475407de794d25f2b1258e64487bb6a65a", 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" }));
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
Ya.style = Ja;
|
|
@@ -91,13 +91,13 @@ const Ka = ".sc-google-meet-icon-h{display:flex}", Xa = Ka, Qa = class {
|
|
|
91
91
|
_(this, e), this.width = "20", this.height = "20";
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
|
-
return o("svg", { key: "
|
|
94
|
+
return o("svg", { key: "0617c1a8793221ffd5a69cb9ee014d29f1b4a46f", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("g", { key: "cf8f7831b7d28f67400d9db38558545e8298284e", "clip-path": "url(#clip0_22_6251)" }, o("path", { key: "8c0d71102169a94270f6b69d6078f0d9d13cf1c7", 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" }), o("path", { key: "429ae6d7c3c71a99c6c80cb02d260ceebbbadfa9", 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" }), o("path", { key: "22ad1a8fda75daf570355b87d9929b0f5b25938e", d: "M4.68571 1.875L0 6.56071L2.41143 7.24643L4.68571 6.56071L5.36 4.40986L4.68571 1.875Z", fill: "#E94235" }), o("path", { key: "f93230ec720206dbb2d286953643c08223a425cc", d: "M4.68571 6.56067H0V13.6464H4.68571V6.56067Z", fill: "#2684FC" }), o("path", { key: "bf0b1ca199e817eb448b2e9c6e7c2ee969ba4d2e", 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" }), o("path", { key: "29d55a2d1cbad21d055cf1bdff6d1e6ae2d553c2", 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" })), o("defs", { key: "11a35389708901bdda4ee3da0d3789518ca9b61b" }, o("clipPath", { key: "41f0ccc5b065f78b43c7f4d0e54a72cea79246e3", id: "clip0_22_6251" }, o("rect", { key: "2de6ea2fc7e115b07cbd0017043302bd1d1c28ce", width: "20", height: "20", fill: "white" }))));
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
Qa.style = Xa;
|
|
98
98
|
const ei = ':host{display:block;position:relative;--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:100%}@media screen and (max-width: 768px){:host{position:unset}}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}.color-picker-container{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;padding-left:0;gap:0;overflow:hidden}.color-picker-container:focus{outline-color:var(--nylas-primary)}.color-picker-container.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.color-picker-container.error::placeholder{font-weight:400}.color-picker-container::placeholder{color:var(--nylas-base-300)}.color-picker-container input{display:flex;align-items:center;height:100%;appearance:none;border:none;border-right:1px solid var(--nylas-base-200);background:transparent}.color-picker-container input::-webkit-color-swatch{min-width:30px;border-radius:0.25rem;border:1px solid var(--nylas-base-200);margin:0.25rem}.color-picker-container input::-moz-color-swatch{min-width:30px;border-radius:0.25rem;border:1px solid var(--nylas-base-200);margin:0.25rem}.color-picker-container.error{border:1px solid var(--nylas-error)}.color-picker-container:hover,.color-picker-container:active{outline:1px solid var(--nylas-primary)}.color-picker-container:active{outline:2px solid var(--nylas-primary)}.color-picker-container label{width:100%}.labelBtn{color:var(--nylas-base-800);padding:14px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;flex-direction:row;justify-content:space-between;width:100%;gap:0.5rem;background:transparent;border:none}.labelBtn.error{border:1px solid var(--nylas-error)}.labelBtn.focus{background:transparent}.labelBtn:hover,.labelBtn:active{outline:1px solid var(--nylas-primary)}.labelBtn span.chevron{display:flex;align-self:center}.labelBtn span.open{transform:rotate(90deg)}.labelBtn span.closed{transform:rotate(270deg)}.labelBtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.labelBtn span.selected-option{max-width:124px;font-size:16px}}', ti = ei, ni = class {
|
|
99
99
|
constructor(e) {
|
|
100
|
-
_(this, e), this.nylasFormDropdownChanged =
|
|
100
|
+
_(this, e), this.nylasFormDropdownChanged = I(this, "nylasFormDropdownChanged", 7), this.name = void 0, this.defaultSelectedColor = void 0, this.selectedColor = this.defaultSelectedColor, this.isOpen = !1, this.ariaActivedescendant = "", this.errorMessage = "";
|
|
101
101
|
}
|
|
102
102
|
handleFocus() {
|
|
103
103
|
this.isOpen = !0;
|
|
@@ -123,11 +123,11 @@ const ei = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
|
|
|
123
123
|
!e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return o("div", { key: "
|
|
126
|
+
return o("div", { key: "1bc9a2e2031441ed8b8c88881edc67fb9fef70cf", class: "color-picker-container", part: "icp_color-picker", tabindex: "0", onKeyDown: (e) => this.handleKeyDown(e) }, o("input", { key: "eb6b46611e33a2ed3e1e1ed8996a99138b5f6add", type: "color", ref: (e) => this.inputRef = e, id: this.name, name: this.name, value: this.selectedColor, tabindex: "-1", onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), onInput: (e) => this.handleInput(e), onChange: (e) => this.handleChange(e), onKeyDown: (e) => this.handleKeyDown(e) }), o("label", { key: "35ca82137267b9db0e0a63a8746a9e145a098f98", part: "icp_color-picker-button", htmlFor: this.name, class: { labelBtn: !0, open: this.isOpen, error: !!this.errorMessage }, "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name }, o("span", { key: "700ceef54a6bcd4e8fe9dbc3cfa23c88fa431a95", class: "selected-option", part: "icp_color-picker-button-selected-label" }, this.selectedColor || "Select a color"), o("span", { key: "1878d2101f2638627d65879d7489c23e6f81ed2c", class: {
|
|
127
127
|
open: this.isOpen,
|
|
128
128
|
closed: !this.isOpen,
|
|
129
129
|
chevron: !0
|
|
130
|
-
}, "aria-hidden": "true" }, o("chevron-icon", { key: "
|
|
130
|
+
}, "aria-hidden": "true" }, o("chevron-icon", { key: "b167382d46eeccb4f0951446c4dc9000a5e9be10", width: "16", height: "16" })), this.errorMessage && o("span", { class: "error help-text" }, this.errorMessage)));
|
|
131
131
|
}
|
|
132
132
|
get el() {
|
|
133
133
|
return O(this);
|
|
@@ -139,7 +139,7 @@ const ai = ".sc-location-icon-h{display:flex}", ii = ai, oi = class {
|
|
|
139
139
|
_(this, e), this.width = "16", this.height = "18";
|
|
140
140
|
}
|
|
141
141
|
render() {
|
|
142
|
-
return o("svg", { key: "
|
|
142
|
+
return o("svg", { key: "fbd36e891fda7485fda9082365d038d3e7724196", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "2fc0e59253dc10906a6ae7b97d28285aa1c51476", 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" }));
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
oi.style = ii;
|
|
@@ -148,7 +148,7 @@ const si = ".sc-location-off-icon-h{display:flex}", li = si, ri = class {
|
|
|
148
148
|
_(this, e), this.width = "16", this.height = "18";
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return o("svg", { key: "
|
|
151
|
+
return o("svg", { key: "367ce392c62f6fa11ff2f864139c7d03e5235e1f", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "40876debb4c9a4d75fda68693dd4bb543d0b0450", 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" }));
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
ri.style = li;
|
|
@@ -157,7 +157,7 @@ const di = ".sc-microsoft-teams-icon-h{display:flex}", ci = di, pi = class {
|
|
|
157
157
|
_(this, e), this.width = "20", this.height = "20";
|
|
158
158
|
}
|
|
159
159
|
render() {
|
|
160
|
-
return o("svg", { key: "
|
|
160
|
+
return o("svg", { key: "db0166f78d26235c236d9ecb1ca1142bc3c84edd", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("g", { key: "065f2a06cda01493b6998db92fa83538615064ea", "clip-path": "url(#clip0_22_6280)" }, o("path", { key: "44f40057a76b709b0e527f500f9e92ef33642a9b", 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" }), o("path", { key: "b4a7a544499326e49df9e4f206b2d334cc1a9b27", 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" }), o("path", { key: "20707f7469757df82fd0024cd44850ee99327d8c", 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" }), o("path", { key: "56b9f7116c80cdd93049e105fa9ba532ea413d23", 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" }), o("path", { key: "8e83099389e8d0c1f1986460d28d1d816fdcb5e0", 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" }), o("path", { key: "8e90b8ed986e46c51590299a0597e48464b3c8a7", 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" }), o("path", { key: "65460c3f7e3fdd778f785b51556a85023e4bd2aa", 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" }), o("path", { key: "fba5f1f70c884b8f8bc10a26a0d40599271aadb5", 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" }), o("path", { key: "09aaa0838d0c1a8b0ec93a12778bf14c39f7861e", 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" }), o("path", { key: "2c2e34395c82ad056c7d59a6c361e514c50fa233", 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" }), o("path", { key: "c0c1b598ef7fd6362316eed3002e717f573e9d34", 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" }), o("path", { key: "d60e9edc163715b3adf08872df47a6c7c576a513", 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" }), o("path", { key: "042796b73db33927ba56259909c879c1cce01408", 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)" }), o("path", { key: "23bf921303dab3ac195fef178fcabf7dcdd0ab43", d: "M7.12025 8.05659H5.4156V12.6985H4.32956V8.05659H2.63281V7.15613H7.12025V8.05659Z", fill: "white" })), o("defs", { key: "b437db07cdaaec42ce39b55fb28b5f315e6d01ac" }, o("linearGradient", { key: "acb20ad9a5ece731988fbca43adcab392951e758", id: "paint0_linear_22_6280", x1: "1.53835", y1: "4.14486", x2: "8.2157", y2: "15.7098", gradientUnits: "userSpaceOnUse" }, o("stop", { key: "b5d4820db4b700baa8df8b2f3768908f2a584125", "stop-color": "#5A62C3" }), o("stop", { key: "d4e5c9badafb57559507ba3782e2d8e4a4b387e6", offset: "0.5", "stop-color": "#4D55BD" }), o("stop", { key: "b3a3e367cf28885682af3e98bf63969300b7490f", offset: "1", "stop-color": "#3940AB" })), o("clipPath", { key: "f9d37ca900f7bffe35bb297aa24d3629ff953f85", id: "clip0_22_6280" }, o("rect", { key: "e090908519b9a6b614e7936f673083ce085ddd88", width: "20", height: "20", fill: "white" }))));
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
pi.style = ci;
|
|
@@ -177,7 +177,7 @@ var hi = function(e, t, n, a) {
|
|
|
177
177
|
const Hn = class {
|
|
178
178
|
constructor(e) {
|
|
179
179
|
var t, n, a;
|
|
180
|
-
_(this, e), this.valueChanged =
|
|
180
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.currentUser = void 0, this.name = "participants", this.eventParticipants = void 0, this.participantOptions = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = ((a = (n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : a.availability_method) !== "collective", this.error = "";
|
|
181
181
|
}
|
|
182
182
|
elementNameChangedHandler(e) {
|
|
183
183
|
d("nylas-additional-participants", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -254,14 +254,14 @@ const Hn = class {
|
|
|
254
254
|
return e.filter((a) => !t.some((s) => a.email === s.email)).map((a) => ({ value: a.email, label: a.email }));
|
|
255
255
|
}
|
|
256
256
|
render() {
|
|
257
|
-
return o(H, { key: "
|
|
257
|
+
return o(H, { key: "af1222b808347d4b632c93bd933ca77a9aa42dd3" }, o("nylas-form-card", { key: "436003212bf0b0c6c80fcc32d0eca9ebb5613c62" }, o("h3", { key: "683d6206ab672fb22908d73cd882b3effbbb14c2", slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Participants"), o("p", { key: "e4f8fff6d7a1744cec20480c01c9db1ad59f988f", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add people in your team or organization to join the event."), o("div", { key: "e0de6082757f7e3428ce3d438ac86743d028212d", slot: "content", class: "nylas-additional-participants__content" }, o("div", { key: "0ab7af094e1d754267fd69ba1c168717f6e00bb0" }, this.participants.map((e, t) => o("div", { class: "nylas-additional-participants__input_group", part: "nap__input_group" }, !e.is_organizer && o("label", null, `Participant ${t}`), o("div", { part: "nap__input_wrapper", class: {
|
|
258
258
|
"nylas-additional-participants__input_wrapper": !0,
|
|
259
259
|
"nylas-additional-participants__input_wrapper_organizer": (e == null ? void 0 : e.is_organizer) === !0,
|
|
260
260
|
"nylas-additional-participants__input_wrapper_invalid": e.is_valid === !1,
|
|
261
261
|
error: e.is_valid === !1
|
|
262
262
|
} }, o("div", { class: { "nylas-additional-participants__input": !0, organizer: (e == null ? void 0 : e.is_organizer) === !0 }, part: "nap__input" }, e.is_organizer ? o("input-component", { class: "label-input", name: `${t}`, key: t, label: "Organizer", required: !1, readOnly: e.is_organizer, defaultValue: e.email }, this.isRoundRobinConfig && o("div", { class: "required-input", slot: "additional-input" }, o("input", { type: "checkbox", name: "organizer_participant", id: "organizer_participant", onClick: () => {
|
|
263
263
|
this.includeOrganizerAsParticipant = !this.includeOrganizerAsParticipant, this.updateFormValue();
|
|
264
|
-
}, checked: this.includeOrganizerAsParticipant }), o("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, "Participant", o("tooltip-component", { id: "organizer_participant_tooltip" }, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, o("strong", null, "Include Organizer:"), " The organizer (you) will be included in the round-robin rotation. ", o("br", null), o("strong", null, "Exclude Organizer:"), " The organizer (you) will not be included in the round-robin rotation."))))) : o("input-dropdown", { id: `${t}`, name: `${t}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !e.is_organizer && o("button", { onClick: () => this.removeParticipant(t), part: "nap__remove-participant" }, o("close-icon", null)))), !e.is_valid && o("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[t]))), o("p", { key: "
|
|
264
|
+
}, checked: this.includeOrganizerAsParticipant }), o("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, "Participant", o("tooltip-component", { id: "organizer_participant_tooltip" }, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, o("strong", null, "Include Organizer:"), " The organizer (you) will be included in the round-robin rotation. ", o("br", null), o("strong", null, "Exclude Organizer:"), " The organizer (you) will not be included in the round-robin rotation."))))) : o("input-dropdown", { id: `${t}`, name: `${t}`, filterable: !0, inputValue: e.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !e.is_organizer && o("button", { onClick: () => this.removeParticipant(t), part: "nap__remove-participant" }, o("close-icon", null)))), !e.is_valid && o("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[t]))), o("p", { key: "e44748e17fb726f367359f0c9ecf884e78670916", class: "nylas-additional-participants__error", part: "nap__error" }, this.error)), o("button", { key: "6abfdb905563d3d0412c1e577e6826c2234f551b", class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, o("add-circle-icon", { key: "a745b18671b4650b80e9e16b488d04c7fab95909" }), " ", o("span", { key: "b7fc8c770b11c489207fe424adf2156f7764bbe4" }, "Add ", this.participants.length > 1 ? "another" : "a", " participant")))));
|
|
265
265
|
}
|
|
266
266
|
static get formAssociated() {
|
|
267
267
|
return !0;
|
|
@@ -277,7 +277,7 @@ const Hn = class {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
hi([
|
|
280
|
-
|
|
280
|
+
T({
|
|
281
281
|
name: "nylas-additional-participants",
|
|
282
282
|
stateToProps: /* @__PURE__ */ new Map([
|
|
283
283
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -305,9 +305,9 @@ var bi = function(e, t, n, a) {
|
|
|
305
305
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
306
306
|
return Reflect.metadata(e, t);
|
|
307
307
|
};
|
|
308
|
-
const
|
|
308
|
+
const Tn = class {
|
|
309
309
|
constructor(e) {
|
|
310
|
-
_(this, e), this.valueChanged =
|
|
310
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.openHours = void 0, this.name = "availability", this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.hideHeader = !1, this.schedule = {
|
|
311
311
|
SUN: [],
|
|
312
312
|
MON: [{ start: "09:00am", end: "05:00pm" }],
|
|
313
313
|
TUE: [{ start: "09:00am", end: "05:00pm" }],
|
|
@@ -413,21 +413,21 @@ const In = class {
|
|
|
413
413
|
})).sort((l, r) => l.start - r.start), i = s[s.length - 1].end;
|
|
414
414
|
if (i + 60 <= a)
|
|
415
415
|
this.schedule[e].push({
|
|
416
|
-
start: fe(
|
|
417
|
-
end: fe(
|
|
416
|
+
start: fe(xe(i)),
|
|
417
|
+
end: fe(xe(i + 60))
|
|
418
418
|
});
|
|
419
419
|
else {
|
|
420
420
|
let l = !1;
|
|
421
421
|
if (s[0].start > n + 60 && (this.schedule[e].push({
|
|
422
|
-
start: fe(
|
|
423
|
-
end: fe(
|
|
422
|
+
start: fe(xe(n)),
|
|
423
|
+
end: fe(xe(n + 60))
|
|
424
424
|
}), l = !0), !l)
|
|
425
425
|
for (let r = 0; r < s.length - 1; r++) {
|
|
426
426
|
const c = s[r].end;
|
|
427
427
|
if (s[r + 1].start - c >= 60) {
|
|
428
428
|
this.schedule[e].push({
|
|
429
|
-
start: fe(
|
|
430
|
-
end: fe(
|
|
429
|
+
start: fe(xe(c)),
|
|
430
|
+
end: fe(xe(c + 60))
|
|
431
431
|
});
|
|
432
432
|
break;
|
|
433
433
|
}
|
|
@@ -498,7 +498,7 @@ const In = class {
|
|
|
498
498
|
label: hn[t],
|
|
499
499
|
value: t
|
|
500
500
|
}));
|
|
501
|
-
return o(H, { key: "
|
|
501
|
+
return o(H, { key: "375669df7de9704e478dab65cad71ae32b8761d6" }, o("div", { key: "3c61cf4e73391d58ad846a6585970d43c809bc9f", class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && o("div", { class: "header", part: "nap__header" }, o("h3", null, "Default open hours"), o("p", null, "Set when you're regularly available for event bookings.", o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "This is the default availability for participants who don’t have availability set on the Participants tab.")))), o("div", { key: "57826ba46573dd67b27880e5256acb6d6e4fb419", class: "content" }, o("div", { key: "20d4d8e47d7814346a425b334b0d31ded30555ab", class: "select-timezone", part: "nap__select-timezone" }, o("h4", { key: "cca20886a7e6cb49154bc4a713bb18ae765bca03", class: "sub-header" }, "Select timezone"), o("select-dropdown", { key: "df8f847fded30b6d7c040f11a03e28b57eb47c41", name: "timezone", exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, defaultSelectedOption: e.find((t) => t.value === this.defaultTimezone) }, o("span", { key: "43f91a5859f53d39de5c4aa8b5a104cf378aec2e", slot: "select-icon" }, o("globe-icon", { key: "22fc31c919c79c4826ffcd15b377a8f90c92df6b", width: "20", height: "20" })))), o("div", { key: "0c8c9767ecaca16041818595d654d74c1bc909a5", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((t) => {
|
|
502
502
|
const n = t, a = this.schedule[t];
|
|
503
503
|
return o("div", { class: "availability-day" }, o("div", { class: "day", part: "nap__day" }, o("input", { type: "checkbox", name: n, id: n, checked: a.length > 0, onClick: () => {
|
|
504
504
|
a.length > 0 ? this.schedule[n] = [] : this.schedule[n] = [{ start: "09:00am", end: "05:00pm" }], this.schedule = { ...this.schedule };
|
|
@@ -524,7 +524,7 @@ const In = class {
|
|
|
524
524
|
}
|
|
525
525
|
};
|
|
526
526
|
bi([
|
|
527
|
-
|
|
527
|
+
T({
|
|
528
528
|
name: "nylas-availability-picker",
|
|
529
529
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
530
530
|
fireRegisterEvent: !0
|
|
@@ -532,8 +532,8 @@ bi([
|
|
|
532
532
|
bt("design:type", Function),
|
|
533
533
|
bt("design:paramtypes", []),
|
|
534
534
|
bt("design:returntype", void 0)
|
|
535
|
-
],
|
|
536
|
-
|
|
535
|
+
], Tn.prototype, "render", null);
|
|
536
|
+
Tn.style = yi;
|
|
537
537
|
const gi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', vi = gi;
|
|
538
538
|
var _i = function(e, t, n, a) {
|
|
539
539
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
@@ -547,9 +547,9 @@ var _i = function(e, t, n, a) {
|
|
|
547
547
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
548
548
|
return Reflect.metadata(e, t);
|
|
549
549
|
};
|
|
550
|
-
const
|
|
550
|
+
const In = class {
|
|
551
551
|
constructor(e) {
|
|
552
|
-
_(this, e), this.valueChanged =
|
|
552
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.currentUserCalendars = void 0, this.name = "booking-calendar", this.defaultBookingCalendar = "", this.hideHeader = !1, this.selectedCalendar = "";
|
|
553
553
|
}
|
|
554
554
|
connectedCallback() {
|
|
555
555
|
d("nylas-booking-calendar-picker", "connectedCallback");
|
|
@@ -615,7 +615,7 @@ const Tn = class {
|
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
617
|
_i([
|
|
618
|
-
|
|
618
|
+
T({
|
|
619
619
|
name: "nylas-booking-calendar-picker",
|
|
620
620
|
stateToProps: /* @__PURE__ */ new Map([
|
|
621
621
|
["schedulerConfig.calendars", "currentUserCalendars"],
|
|
@@ -632,10 +632,10 @@ _i([
|
|
|
632
632
|
gt("design:type", Function),
|
|
633
633
|
gt("design:paramtypes", []),
|
|
634
634
|
gt("design:returntype", void 0)
|
|
635
|
-
],
|
|
636
|
-
|
|
635
|
+
], In.prototype, "render", null);
|
|
636
|
+
In.style = vi;
|
|
637
637
|
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-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)}', wi = Ci;
|
|
638
|
-
var
|
|
638
|
+
var xi = function(e, t, n, a) {
|
|
639
639
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
640
640
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
641
641
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -649,7 +649,7 @@ var ki = function(e, t, n, a) {
|
|
|
649
649
|
};
|
|
650
650
|
const $n = class {
|
|
651
651
|
constructor(e) {
|
|
652
|
-
_(this, e), this.valueChanged =
|
|
652
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "confirmation-redirect", this.redirectUrl = "", this.redirectUrlErrorMessage = "", this.currentRedirectUrl = "", this.acceptUrl = this.redirectUrl !== "";
|
|
653
653
|
}
|
|
654
654
|
elementNameChangedHandler(e) {
|
|
655
655
|
d("nylas-booking-confirmation-redirect", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -713,7 +713,7 @@ const $n = class {
|
|
|
713
713
|
value: "custom"
|
|
714
714
|
}
|
|
715
715
|
];
|
|
716
|
-
return o(H, { key: "
|
|
716
|
+
return o(H, { key: "61dffbaddc3fc7ae8d9d3501b1c72941f447224c" }, o("div", { key: "705b7a57559a98072a7ed5a780f7d4ff732d3754", class: "nylas-booking-confirmation-redirect", part: "nbcr" }, e.length > 0 && o("div", { class: "nylas-booking-confirmation-redirect__dropdown" }, o("span", { class: "label" }, "When a booking is confirmed", o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "You can either display the default confirmation page or redirect users to your own confirmation page."))), o("select-dropdown", { name: "confirmation-redirect-dropdown", options: e, withSearch: !1, defaultSelectedOption: (this.redirectUrl && e.find((t) => t.value === "custom")) ?? e[0], exportparts: "sd_dropdown: nbcr__dropdown, sd_dropdown-button: nbcr__dropdown-button, sd_dropdown-content: nbcr__dropdown-content" }), this.acceptUrl && o("div", null, o("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.redirectUrl }), this.redirectUrlErrorMessage && o("span", { class: "error-message" }, this.redirectUrlErrorMessage)))));
|
|
717
717
|
}
|
|
718
718
|
static get formAssociated() {
|
|
719
719
|
return !0;
|
|
@@ -728,8 +728,8 @@ const $n = class {
|
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
|
-
|
|
732
|
-
|
|
731
|
+
xi([
|
|
732
|
+
T({
|
|
733
733
|
name: "nylas-booking-confirmation-redirect",
|
|
734
734
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
735
735
|
eventToProps: {
|
|
@@ -745,7 +745,7 @@ ki([
|
|
|
745
745
|
vt("design:returntype", void 0)
|
|
746
746
|
], $n.prototype, "render", null);
|
|
747
747
|
$n.style = wi;
|
|
748
|
-
const
|
|
748
|
+
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-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}', Ei = ki;
|
|
749
749
|
var Si = function(e, t, n, a) {
|
|
750
750
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
751
751
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -761,7 +761,7 @@ var Si = function(e, t, n, a) {
|
|
|
761
761
|
const Nn = class {
|
|
762
762
|
constructor(e) {
|
|
763
763
|
var t, n, a, s;
|
|
764
|
-
_(this, e), this.valueChanged =
|
|
764
|
+
_(this, e), this.valueChanged = I(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 = "", this.showComponent = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.booking_type) !== "custom-confirmation", this.selectedBookingType = "", this.showDropdown = this.showComponent !== void 0 ? this.showComponent : ((s = (a = this.selectedConfiguration) == null ? void 0 : a.event_booking) == null ? void 0 : s.booking_type) !== "custom-confirmation";
|
|
765
765
|
}
|
|
766
766
|
elementNameChangedHandler(e) {
|
|
767
767
|
d("nylas-booking-confirmation-type", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -814,7 +814,7 @@ const Nn = class {
|
|
|
814
814
|
value: "organizer-confirmation"
|
|
815
815
|
}
|
|
816
816
|
];
|
|
817
|
-
return o(H, { key: "
|
|
817
|
+
return o(H, { key: "ad96a672fe5f9652917dccaf6e6734e64b75c577" }, this.showDropdown && o("div", { class: "nylas-booking-confirmation-type", part: "nbct" }, e.length > 0 && o("div", { class: "nylas-booking-confirmation-type__dropdown" }, o("span", { class: "label" }, "When a booking is requested", o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "Manually accept bookings allows you to review and either accept or decline each booking request."))), o("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((t) => t.value == this.bookingType) ?? e[0] }))));
|
|
818
818
|
}
|
|
819
819
|
static get formAssociated() {
|
|
820
820
|
return !0;
|
|
@@ -830,7 +830,7 @@ const Nn = class {
|
|
|
830
830
|
}
|
|
831
831
|
};
|
|
832
832
|
Si([
|
|
833
|
-
|
|
833
|
+
T({
|
|
834
834
|
name: "nylas-booking-confirmation-type",
|
|
835
835
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
836
836
|
eventToProps: {
|
|
@@ -918,10 +918,10 @@ function Hi(e, t) {
|
|
|
918
918
|
}
|
|
919
919
|
return n;
|
|
920
920
|
}
|
|
921
|
-
function Ii(e) {
|
|
922
|
-
return Ti(e) || $i(e) || Ni(e) || Fi();
|
|
923
|
-
}
|
|
924
921
|
function Ti(e) {
|
|
922
|
+
return Ii(e) || $i(e) || Ni(e) || Fi();
|
|
923
|
+
}
|
|
924
|
+
function Ii(e) {
|
|
925
925
|
if (Array.isArray(e))
|
|
926
926
|
return tn(e);
|
|
927
927
|
}
|
|
@@ -962,7 +962,7 @@ var de = re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ge = re(/E
|
|
|
962
962
|
function E(e, t, n) {
|
|
963
963
|
e.addEventListener(t, n, !de && Ln);
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function k(e, t, n) {
|
|
966
966
|
e.removeEventListener(t, n, !de && Ln);
|
|
967
967
|
}
|
|
968
968
|
function dt(e, t) {
|
|
@@ -1247,16 +1247,16 @@ function ji(e) {
|
|
|
1247
1247
|
function Bi(e, t, n, a) {
|
|
1248
1248
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * a.animation;
|
|
1249
1249
|
}
|
|
1250
|
-
var
|
|
1250
|
+
var ke = [], xt = {
|
|
1251
1251
|
initializeByDefault: !0
|
|
1252
1252
|
}, Je = {
|
|
1253
1253
|
mount: function(t) {
|
|
1254
|
-
for (var n in
|
|
1255
|
-
|
|
1256
|
-
|
|
1254
|
+
for (var n in xt)
|
|
1255
|
+
xt.hasOwnProperty(n) && !(n in t) && (t[n] = xt[n]);
|
|
1256
|
+
ke.forEach(function(a) {
|
|
1257
1257
|
if (a.pluginName === t.pluginName)
|
|
1258
1258
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
1259
|
-
}),
|
|
1259
|
+
}), ke.push(t);
|
|
1260
1260
|
},
|
|
1261
1261
|
pluginEvent: function(t, n, a) {
|
|
1262
1262
|
var s = this;
|
|
@@ -1264,7 +1264,7 @@ var xe = [], kt = {
|
|
|
1264
1264
|
s.eventCanceled = !0;
|
|
1265
1265
|
};
|
|
1266
1266
|
var i = t + "Global";
|
|
1267
|
-
|
|
1267
|
+
ke.forEach(function(l) {
|
|
1268
1268
|
n[l.pluginName] && (n[l.pluginName][i] && n[l.pluginName][i](se({
|
|
1269
1269
|
sortable: n
|
|
1270
1270
|
}, a)), n.options[l.pluginName] && n[l.pluginName][t] && n[l.pluginName][t](se({
|
|
@@ -1273,7 +1273,7 @@ var xe = [], kt = {
|
|
|
1273
1273
|
});
|
|
1274
1274
|
},
|
|
1275
1275
|
initializePlugins: function(t, n, a, s) {
|
|
1276
|
-
|
|
1276
|
+
ke.forEach(function(r) {
|
|
1277
1277
|
var c = r.pluginName;
|
|
1278
1278
|
if (!(!t.options[c] && !r.initializeByDefault)) {
|
|
1279
1279
|
var p = new r(t, n, t.options);
|
|
@@ -1288,13 +1288,13 @@ var xe = [], kt = {
|
|
|
1288
1288
|
},
|
|
1289
1289
|
getEventProperties: function(t, n) {
|
|
1290
1290
|
var a = {};
|
|
1291
|
-
return
|
|
1291
|
+
return ke.forEach(function(s) {
|
|
1292
1292
|
typeof s.eventProperties == "function" && ee(a, s.eventProperties.call(n[s.pluginName], t));
|
|
1293
1293
|
}), a;
|
|
1294
1294
|
},
|
|
1295
1295
|
modifyOption: function(t, n, a) {
|
|
1296
1296
|
var s;
|
|
1297
|
-
return
|
|
1297
|
+
return ke.forEach(function(i) {
|
|
1298
1298
|
t[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (s = i.optionListeners[n].call(t[i.pluginName], a));
|
|
1299
1299
|
}), s;
|
|
1300
1300
|
}
|
|
@@ -1318,7 +1318,7 @@ var Wi = ["evt"], q = function(t, n) {
|
|
|
1318
1318
|
Je.pluginEvent.bind(v)(t, n, se({
|
|
1319
1319
|
dragEl: m,
|
|
1320
1320
|
parentEl: P,
|
|
1321
|
-
ghostEl:
|
|
1321
|
+
ghostEl: x,
|
|
1322
1322
|
rootEl: F,
|
|
1323
1323
|
nextEl: _e,
|
|
1324
1324
|
lastDownEl: ot,
|
|
@@ -1361,7 +1361,7 @@ function Z(e) {
|
|
|
1361
1361
|
newDraggableIndex: ue
|
|
1362
1362
|
}, e));
|
|
1363
1363
|
}
|
|
1364
|
-
var m, P,
|
|
1364
|
+
var m, P, x, F, _e, ot, A, he, Oe, K, Ze, ue, Ke, B, De = !1, ct = !1, pt = [], ge, te, kt, Et, xn, kn, ze, Ee, Ve, qe = !1, Xe = !1, st, W, St = [], nn = !1, ft = [], ht = typeof document < "u", Qe = Fn, En = Ge || de ? "cssFloat" : "float", Ui = ht && !An && !Fn && "draggable" in document.createElement("div"), jn = function() {
|
|
1365
1365
|
if (ht) {
|
|
1366
1366
|
if (de)
|
|
1367
1367
|
return !1;
|
|
@@ -1413,9 +1413,9 @@ var m, P, k, F, _e, ot, A, he, Oe, K, Ze, ue, Ke, B, De = !1, ct = !1, pt = [],
|
|
|
1413
1413
|
name: s
|
|
1414
1414
|
}), a.name = s.name, a.checkPull = n(s.pull, !0), a.checkPut = n(s.put), a.revertClone = s.revertClone, t.group = a;
|
|
1415
1415
|
}, Un = function() {
|
|
1416
|
-
!jn &&
|
|
1416
|
+
!jn && x && b(x, "display", "none");
|
|
1417
1417
|
}, Zn = function() {
|
|
1418
|
-
!jn &&
|
|
1418
|
+
!jn && x && b(x, "display", "");
|
|
1419
1419
|
};
|
|
1420
1420
|
ht && !An && document.addEventListener("click", function(e) {
|
|
1421
1421
|
if (ct)
|
|
@@ -1547,7 +1547,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1547
1547
|
target: m,
|
|
1548
1548
|
clientX: (n || t).clientX,
|
|
1549
1549
|
clientY: (n || t).clientY
|
|
1550
|
-
},
|
|
1550
|
+
}, xn = ge.clientX - p.left, kn = ge.clientY - p.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, m.style["will-change"] = "all", c = function() {
|
|
1551
1551
|
if (q("delayEnded", s, {
|
|
1552
1552
|
evt: t
|
|
1553
1553
|
}), v.eventCanceled) {
|
|
@@ -1582,7 +1582,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1582
1582
|
},
|
|
1583
1583
|
_disableDelayedDragEvents: function() {
|
|
1584
1584
|
var t = this.el.ownerDocument;
|
|
1585
|
-
|
|
1585
|
+
k(t, "mouseup", this._disableDelayedDrag), k(t, "touchend", this._disableDelayedDrag), k(t, "touchcancel", this._disableDelayedDrag), k(t, "mousemove", this._delayedDragTouchMoveHandler), k(t, "touchmove", this._delayedDragTouchMoveHandler), k(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1586
1586
|
},
|
|
1587
1587
|
_triggerDragStart: function(t, n) {
|
|
1588
1588
|
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : n ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(m, "dragend", this), E(F, "dragstart", this._onDragStart));
|
|
@@ -1631,14 +1631,14 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1631
1631
|
},
|
|
1632
1632
|
_onTouchMove: function(t) {
|
|
1633
1633
|
if (ge) {
|
|
1634
|
-
var n = this.options, a = n.fallbackTolerance, s = n.fallbackOffset, i = t.touches ? t.touches[0] : t, l =
|
|
1634
|
+
var n = this.options, a = n.fallbackTolerance, s = n.fallbackOffset, i = t.touches ? t.touches[0] : t, l = x && Ce(x, !0), r = x && l && l.a, c = x && l && l.d, p = Qe && W && Cn(W), u = (i.clientX - ge.clientX + s.x) / (r || 1) + (p ? p[0] - St[0] : 0) / (r || 1), f = (i.clientY - ge.clientY + s.y) / (c || 1) + (p ? p[1] - St[1] : 0) / (c || 1);
|
|
1635
1635
|
if (!v.active && !De) {
|
|
1636
1636
|
if (a && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < a)
|
|
1637
1637
|
return;
|
|
1638
1638
|
this._onDragStart(t, !0);
|
|
1639
1639
|
}
|
|
1640
|
-
if (
|
|
1641
|
-
l ? (l.e += u - (
|
|
1640
|
+
if (x) {
|
|
1641
|
+
l ? (l.e += u - (kt || 0), l.f += f - (Et || 0)) : l = {
|
|
1642
1642
|
a: 1,
|
|
1643
1643
|
b: 0,
|
|
1644
1644
|
c: 0,
|
|
@@ -1647,20 +1647,20 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1647
1647
|
f
|
|
1648
1648
|
};
|
|
1649
1649
|
var h = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
1650
|
-
b(
|
|
1650
|
+
b(x, "webkitTransform", h), b(x, "mozTransform", h), b(x, "msTransform", h), b(x, "transform", h), kt = u, Et = f, te = i;
|
|
1651
1651
|
}
|
|
1652
1652
|
t.cancelable && t.preventDefault();
|
|
1653
1653
|
}
|
|
1654
1654
|
},
|
|
1655
1655
|
_appendGhost: function() {
|
|
1656
|
-
if (!
|
|
1656
|
+
if (!x) {
|
|
1657
1657
|
var t = this.options.fallbackOnBody ? document.body : F, n = N(m, !0, Qe, !0, t), a = this.options;
|
|
1658
1658
|
if (Qe) {
|
|
1659
1659
|
for (W = t; b(W, "position") === "static" && b(W, "transform") === "none" && W !== document; )
|
|
1660
1660
|
W = W.parentNode;
|
|
1661
1661
|
W !== document.body && W !== document.documentElement ? (W === document && (W = oe()), n.top += W.scrollTop, n.left += W.scrollLeft) : W = oe(), St = Cn(W);
|
|
1662
1662
|
}
|
|
1663
|
-
|
|
1663
|
+
x = m.cloneNode(!0), L(x, a.ghostClass, !1), L(x, a.fallbackClass, !0), L(x, a.dragClass, !0), b(x, "transition", ""), b(x, "transform", ""), b(x, "box-sizing", "border-box"), b(x, "margin", 0), b(x, "top", n.top), b(x, "left", n.left), b(x, "width", n.width), b(x, "height", n.height), b(x, "opacity", "0.8"), b(x, "position", Qe ? "absolute" : "fixed"), b(x, "zIndex", "100000"), b(x, "pointerEvents", "none"), v.ghost = x, t.appendChild(x), b(x, "transform-origin", xn / parseInt(x.style.width) * 100 + "% " + kn / parseInt(x.style.height) * 100 + "%");
|
|
1664
1664
|
}
|
|
1665
1665
|
},
|
|
1666
1666
|
_onDragStart: function(t, n) {
|
|
@@ -1676,7 +1676,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1676
1676
|
sortable: a,
|
|
1677
1677
|
name: "clone"
|
|
1678
1678
|
}));
|
|
1679
|
-
}), !n && L(m, i.dragClass, !0), n ? (ct = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (
|
|
1679
|
+
}), !n && L(m, i.dragClass, !0), n ? (ct = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (k(document, "mouseup", a._onDrop), k(document, "touchend", a._onDrop), k(document, "touchcancel", a._onDrop), s && (s.effectAllowed = "move", i.setData && i.setData.call(a, s, m)), E(document, "drop", a), b(m, "transform", "translateZ(0)")), De = !0, a._dragStartId = lt(a._dragStarted.bind(a, n, t)), E(document, "selectstart", a), ze = !0, We && b(document.body, "user-select", "none");
|
|
1680
1680
|
},
|
|
1681
1681
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1682
1682
|
_onDragOver: function(t) {
|
|
@@ -1744,14 +1744,14 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1744
1744
|
return R(), n.insertBefore(m, ae), P = n, V(), z(!0);
|
|
1745
1745
|
} else if (a.parentNode === n) {
|
|
1746
1746
|
i = N(a);
|
|
1747
|
-
var ie = 0, ye,
|
|
1748
|
-
Ee !== a && (ye = i[$e], qe = !1, Xe = !J && r.invertSwap ||
|
|
1747
|
+
var ie = 0, ye, Ie = m.parentNode !== n, J = !Zi(m.animated && m.toRect || s, a.animated && a.toRect || i, g), $e = g ? "top" : "left", ce = _n(a, "top", "top") || _n(m, "top", "top"), Ne = ce ? ce.scrollTop : void 0;
|
|
1748
|
+
Ee !== a && (ye = i[$e], qe = !1, Xe = !J && r.invertSwap || Ie), ie = Xi(t, a, i, g, J ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, Xe, Ee === a);
|
|
1749
1749
|
var le;
|
|
1750
1750
|
if (ie !== 0) {
|
|
1751
1751
|
var be = M(m);
|
|
1752
1752
|
do
|
|
1753
1753
|
be -= ie, le = P.children[be];
|
|
1754
|
-
while (le && (b(le, "display") === "none" || le ===
|
|
1754
|
+
while (le && (b(le, "display") === "none" || le === x));
|
|
1755
1755
|
}
|
|
1756
1756
|
if (ie === 0 || le === a)
|
|
1757
1757
|
return z(!1);
|
|
@@ -1769,11 +1769,11 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1769
1769
|
},
|
|
1770
1770
|
_ignoreWhileAnimating: null,
|
|
1771
1771
|
_offMoveEvents: function() {
|
|
1772
|
-
|
|
1772
|
+
k(document, "mousemove", this._onTouchMove), k(document, "touchmove", this._onTouchMove), k(document, "pointermove", this._onTouchMove), k(document, "dragover", ve), k(document, "mousemove", ve), k(document, "touchmove", ve);
|
|
1773
1773
|
},
|
|
1774
1774
|
_offUpEvents: function() {
|
|
1775
1775
|
var t = this.el.ownerDocument;
|
|
1776
|
-
|
|
1776
|
+
k(t, "mouseup", this._onDrop), k(t, "touchend", this._onDrop), k(t, "pointerup", this._onDrop), k(t, "touchcancel", this._onDrop), k(document, "selectstart", this);
|
|
1777
1777
|
},
|
|
1778
1778
|
_onDrop: function(t) {
|
|
1779
1779
|
var n = this.el, a = this.options;
|
|
@@ -1783,7 +1783,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1783
1783
|
this._nulling();
|
|
1784
1784
|
return;
|
|
1785
1785
|
}
|
|
1786
|
-
De = !1, Xe = !1, qe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), an(this.cloneId), an(this._dragStartId), this.nativeDraggable && (
|
|
1786
|
+
De = !1, Xe = !1, qe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), an(this.cloneId), an(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), We && b(document.body, "user-select", ""), b(m, "transform", ""), t && (ze && (t.cancelable && t.preventDefault(), !a.dropBubble && t.stopPropagation()), x && x.parentNode && x.parentNode.removeChild(x), (F === P || B && B.lastPutMode !== "clone") && A && A.parentNode && A.parentNode.removeChild(A), m && (this.nativeDraggable && k(m, "dragend", this), Dt(m), m.style["will-change"] = "", ze && !De && L(m, B ? B.options.ghostClass : this.options.ghostClass, !1), L(m, this.options.chosenClass, !1), Z({
|
|
1787
1787
|
sortable: this,
|
|
1788
1788
|
name: "unchoose",
|
|
1789
1789
|
toEl: P,
|
|
@@ -1830,9 +1830,9 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1830
1830
|
}), this.save()))), this._nulling();
|
|
1831
1831
|
},
|
|
1832
1832
|
_nulling: function() {
|
|
1833
|
-
q("nulling", this), F = m = P =
|
|
1833
|
+
q("nulling", this), F = m = P = x = _e = A = ot = he = ge = te = ze = K = ue = Oe = Ze = Ee = Ve = B = Ke = v.dragged = v.ghost = v.clone = v.active = null, ft.forEach(function(t) {
|
|
1834
1834
|
t.checked = !0;
|
|
1835
|
-
}), ft.length =
|
|
1835
|
+
}), ft.length = kt = Et = 0;
|
|
1836
1836
|
},
|
|
1837
1837
|
handleEvent: function(t) {
|
|
1838
1838
|
switch (t.type) {
|
|
@@ -1906,7 +1906,7 @@ v.prototype = /** @lends Sortable.prototype */
|
|
|
1906
1906
|
destroy: function() {
|
|
1907
1907
|
q("destroy", this);
|
|
1908
1908
|
var t = this.el;
|
|
1909
|
-
t[U] = null,
|
|
1909
|
+
t[U] = null, k(t, "mousedown", this._onTapStart), k(t, "touchstart", this._onTapStart), k(t, "pointerdown", this._onTapStart), this.nativeDraggable && (k(t, "dragover", this), k(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
1910
1910
|
n.removeAttribute("draggable");
|
|
1911
1911
|
}), this._onDrop(), this._disableDelayedDragEvents(), pt.splice(pt.indexOf(this.el), 1), this.el = t = null;
|
|
1912
1912
|
},
|
|
@@ -1946,11 +1946,11 @@ function Ji() {
|
|
|
1946
1946
|
nn = !1;
|
|
1947
1947
|
}
|
|
1948
1948
|
function Yi(e, t, n) {
|
|
1949
|
-
var a = N(He(n.el, 0, n.options, !0)), s = zn(n.el, n.options,
|
|
1949
|
+
var a = N(He(n.el, 0, n.options, !0)), s = zn(n.el, n.options, x), i = 10;
|
|
1950
1950
|
return t ? e.clientX < s.left - i || e.clientY < a.top && e.clientX < a.right : e.clientY < s.top - i || e.clientY < a.bottom && e.clientX < a.left;
|
|
1951
1951
|
}
|
|
1952
1952
|
function Ki(e, t, n) {
|
|
1953
|
-
var a = N(rn(n.el, n.options.draggable)), s = zn(n.el, n.options,
|
|
1953
|
+
var a = N(rn(n.el, n.options.draggable)), s = zn(n.el, n.options, x), i = 10;
|
|
1954
1954
|
return t ? e.clientX > s.right + i || e.clientY > a.bottom && e.clientX > a.left : e.clientY > s.bottom + i || e.clientX > a.right && e.clientY > a.top;
|
|
1955
1955
|
}
|
|
1956
1956
|
function Xi(e, t, n, a, s, i, l, r) {
|
|
@@ -1992,7 +1992,7 @@ ht && E(document, "touchmove", function(e) {
|
|
|
1992
1992
|
});
|
|
1993
1993
|
v.utils = {
|
|
1994
1994
|
on: E,
|
|
1995
|
-
off:
|
|
1995
|
+
off: k,
|
|
1996
1996
|
css: b,
|
|
1997
1997
|
find: Pn,
|
|
1998
1998
|
is: function(t, n) {
|
|
@@ -2048,7 +2048,7 @@ function no() {
|
|
|
2048
2048
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
2049
2049
|
},
|
|
2050
2050
|
drop: function() {
|
|
2051
|
-
this.sortable.nativeDraggable ?
|
|
2051
|
+
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), Sn(), rt(), Ri();
|
|
2052
2052
|
},
|
|
2053
2053
|
nulling: function() {
|
|
2054
2054
|
ut = on = je = sn = Be = Ot = Ht = null, j.length = 0;
|
|
@@ -2059,18 +2059,18 @@ function no() {
|
|
|
2059
2059
|
_handleAutoScroll: function(n, a) {
|
|
2060
2060
|
var s = this, i = (n.touches ? n.touches[0] : n).clientX, l = (n.touches ? n.touches[0] : n).clientY, r = document.elementFromPoint(i, l);
|
|
2061
2061
|
if (ut = n, a || this.options.forceAutoScrollFallback || Ge || de || We) {
|
|
2062
|
-
|
|
2062
|
+
Tt(n, this.options, r, a);
|
|
2063
2063
|
var c = me(r, !0);
|
|
2064
2064
|
sn && (!Be || i !== Ot || l !== Ht) && (Be && Sn(), Be = setInterval(function() {
|
|
2065
2065
|
var p = me(document.elementFromPoint(i, l), !0);
|
|
2066
|
-
p !== c && (c = p, rt()),
|
|
2066
|
+
p !== c && (c = p, rt()), Tt(n, s.options, p, a);
|
|
2067
2067
|
}, 10), Ot = i, Ht = l);
|
|
2068
2068
|
} else {
|
|
2069
2069
|
if (!this.options.bubbleScroll || me(r, !0) === oe()) {
|
|
2070
2070
|
rt();
|
|
2071
2071
|
return;
|
|
2072
2072
|
}
|
|
2073
|
-
|
|
2073
|
+
Tt(n, this.options, me(r, !1), !1);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
}, ee(e, {
|
|
@@ -2086,15 +2086,15 @@ function rt() {
|
|
|
2086
2086
|
function Sn() {
|
|
2087
2087
|
clearInterval(Be);
|
|
2088
2088
|
}
|
|
2089
|
-
var
|
|
2089
|
+
var Tt = Mn(function(e, t, n, a) {
|
|
2090
2090
|
if (t.scroll) {
|
|
2091
2091
|
var s = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, l = t.scrollSensitivity, r = t.scrollSpeed, c = oe(), p = !1, u;
|
|
2092
2092
|
on !== n && (on = n, rt(), je = t.scroll, u = t.scrollFn, je === !0 && (je = me(n, !0)));
|
|
2093
2093
|
var f = 0, h = je;
|
|
2094
2094
|
do {
|
|
2095
|
-
var g = h, y = N(g), C = y.top, D = y.bottom, R = y.left, z = y.right, V = y.width, S = y.height, ae = void 0, ie = void 0, ye = g.scrollWidth,
|
|
2096
|
-
g === c ? (ae = V < ye && (J.overflowX === "auto" || J.overflowX === "scroll" || J.overflowX === "visible"), ie = S <
|
|
2097
|
-
var Ne = ae && (Math.abs(z - s) <= l && $e + V < ye) - (Math.abs(R - s) <= l && !!$e), le = ie && (Math.abs(D - i) <= l && ce + S <
|
|
2095
|
+
var g = h, y = N(g), C = y.top, D = y.bottom, R = y.left, z = y.right, V = y.width, S = y.height, ae = void 0, ie = void 0, ye = g.scrollWidth, Ie = g.scrollHeight, J = b(g), $e = g.scrollLeft, ce = g.scrollTop;
|
|
2096
|
+
g === c ? (ae = V < ye && (J.overflowX === "auto" || J.overflowX === "scroll" || J.overflowX === "visible"), ie = S < Ie && (J.overflowY === "auto" || J.overflowY === "scroll" || J.overflowY === "visible")) : (ae = V < ye && (J.overflowX === "auto" || J.overflowX === "scroll"), ie = S < Ie && (J.overflowY === "auto" || J.overflowY === "scroll"));
|
|
2097
|
+
var Ne = ae && (Math.abs(z - s) <= l && $e + V < ye) - (Math.abs(R - s) <= l && !!$e), le = ie && (Math.abs(D - i) <= l && ce + S < Ie) - (Math.abs(C - i) <= l && !!ce);
|
|
2098
2098
|
if (!j[f])
|
|
2099
2099
|
for (var be = 0; be <= f; be++)
|
|
2100
2100
|
j[be] || (j[be] = {});
|
|
@@ -2393,7 +2393,7 @@ function oo() {
|
|
|
2393
2393
|
this.isMultiDrag = Se = !1, Y.length = 0;
|
|
2394
2394
|
},
|
|
2395
2395
|
destroyGlobal: function() {
|
|
2396
|
-
this._deselectMultiDrag(),
|
|
2396
|
+
this._deselectMultiDrag(), k(document, "pointerup", this._deselectMultiDrag), k(document, "mouseup", this._deselectMultiDrag), k(document, "touchend", this._deselectMultiDrag), k(document, "keydown", this._checkKeyDown), k(document, "keyup", this._checkKeyUp);
|
|
2397
2397
|
},
|
|
2398
2398
|
_deselectMultiDrag: function(n) {
|
|
2399
2399
|
if (!(typeof Se < "u" && Se) && ne === this.sortable && !(n && Q(n.target, this.options.draggable, this.sortable.el, !1)) && !(n && n.button !== 0))
|
|
@@ -2448,7 +2448,7 @@ function oo() {
|
|
|
2448
2448
|
index: l
|
|
2449
2449
|
});
|
|
2450
2450
|
}), {
|
|
2451
|
-
items:
|
|
2451
|
+
items: Ti(w),
|
|
2452
2452
|
clones: [].concat(Y),
|
|
2453
2453
|
oldIndicies: a,
|
|
2454
2454
|
newIndicies: s
|
|
@@ -2491,13 +2491,13 @@ var co = function(e, t, n, a) {
|
|
|
2491
2491
|
for (var r = e.length - 1; r >= 0; r--)
|
|
2492
2492
|
(l = e[r]) && (i = (s < 3 ? l(i) : s > 3 ? l(t, n, i) : l(t, n)) || i);
|
|
2493
2493
|
return s > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2494
|
-
},
|
|
2494
|
+
}, It = function(e, t) {
|
|
2495
2495
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2496
2496
|
return Reflect.metadata(e, t);
|
|
2497
2497
|
};
|
|
2498
2498
|
const qn = class {
|
|
2499
2499
|
constructor(e) {
|
|
2500
|
-
_(this, e), this.valueChanged =
|
|
2500
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "booking-form-config", this.additonalFields = [], this.formFields = [
|
|
2501
2501
|
{
|
|
2502
2502
|
type: "text",
|
|
2503
2503
|
label: "Your name",
|
|
@@ -2622,7 +2622,7 @@ const qn = class {
|
|
|
2622
2622
|
this.formFields = this.formFields.map((a, s) => (s === e && (a.options || (a.options = []), a.options = a.options.map((i, l) => (l === t && (i = n.detail.value), i))), a));
|
|
2623
2623
|
}
|
|
2624
2624
|
render() {
|
|
2625
|
-
return o(H, { key: "
|
|
2625
|
+
return o(H, { key: "22f26c5ab52fe68dab653a60d9a58b43f8e7a6ed" }, o("div", { key: "24dfd643002ef5868fd6f8794134bc8edf3da9dd", class: "nylas-booking-form-config" }, o("div", { key: "b5211630aa84d07a81b120860098fab5cec69b12", class: "header", part: "nbfc__header" }, o("div", { key: "f102ec94e5d1a0ec25e4a6790dddeb995bc41f93", class: "header_text" }, o("h3", { key: "f62ce9983048526605ed43de9b2a6325d0c0778a" }, "Booking form"), o("p", { key: "184a2431856ce32ec0b715e062c3fe30b3e83179" }, "Add custom fields to the booking form.")), o("div", { key: "b153fca6515c9ea39fc5553036de13218efee093", class: "header_action" }, o("select-dropdown", { key: "eafea61014b7f0931a34a4bdbd738c720f419d08", 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: wa, withSearch: !1, withChevron: !1, dropdownButtonText: "Add new field" }, o("span", { key: "48abde3d75f413b65579ac7ea3e87d0145b6748b", slot: "select-icon" }, o("plus-icon", { key: "858a1b7e88c5369c66a60fa3b05d7518c0f8a824", width: "15", height: "15" }))))), o("div", { key: "71e1b367e4a91df8a585d144dd6d929bd49347ec", class: "content" }, o("div", { key: "bbf49b232e9a990a812b860ae1538eda7338ef6c", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, t) => o("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: t }, o("div", { class: "form-field_header", part: "nbfc__form_field-header" }, o("span", { class: "dragable" }, o("dragable-icon", { width: "24", height: "25" })), o("div", { class: "form-field_header_text" }, o("h4", null, e.label), o("p", null, e.typeLabel)), o("div", { class: "form-field_header_actions" }, o("span", { class: "is-required" }, e.required ? "Required" : "Optional"), !e.readonly && o("button", { onClick: () => {
|
|
2626
2626
|
this.fieldRemove(t);
|
|
2627
2627
|
} }, o("close-icon", null)), o("span", { class: `chevron ${e.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2628
2628
|
this.fieldToggle(t);
|
|
@@ -2648,17 +2648,17 @@ const qn = class {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
};
|
|
2650
2650
|
co([
|
|
2651
|
-
|
|
2651
|
+
T({
|
|
2652
2652
|
name: "nylas-booking-form-config",
|
|
2653
2653
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
2654
2654
|
fireRegisterEvent: !0
|
|
2655
2655
|
}),
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2656
|
+
It("design:type", Function),
|
|
2657
|
+
It("design:paramtypes", []),
|
|
2658
|
+
It("design:returntype", void 0)
|
|
2659
2659
|
], qn.prototype, "render", null);
|
|
2660
2660
|
qn.style = ro;
|
|
2661
|
-
const po = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', fo = po;
|
|
2661
|
+
const po = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', fo = po;
|
|
2662
2662
|
var uo = function(e, t, n, a) {
|
|
2663
2663
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
2664
2664
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -2673,7 +2673,7 @@ var uo = function(e, t, n, a) {
|
|
|
2673
2673
|
};
|
|
2674
2674
|
const Gn = class {
|
|
2675
2675
|
constructor(e) {
|
|
2676
|
-
_(this, e), this.valueChanged =
|
|
2676
|
+
_(this, e), this.valueChanged = I(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 = "buffer-time", this.buffer = { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after;
|
|
2677
2677
|
}
|
|
2678
2678
|
connectedCallback() {
|
|
2679
2679
|
d("nylas-buffer-time", "connectedCallback");
|
|
@@ -2760,7 +2760,7 @@ const Gn = class {
|
|
|
2760
2760
|
value: a
|
|
2761
2761
|
};
|
|
2762
2762
|
});
|
|
2763
|
-
return o(H, null, o("div", { class: "nylas-buffer-time", part: "nbt" }, o("div", { class: "header", part: "nbt__header" }, o("h3", null, "Buffer time"), o("p", null, "
|
|
2763
|
+
return o(H, null, o("div", { class: "nylas-buffer-time", part: "nbt" }, o("div", { class: "header", part: "nbt__header" }, o("h3", null, "Buffer time"), o("p", null, "Require empty buffer time before and after an event.", o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "Scheduler does not book the buffer time.")))), o("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, o("div", { class: "nylas-buffer-time__dropdown" }, o("div", { class: "nylas-buffer-time__row" }, o("label", null, "Before the event"), o("div", { class: "dropdown-container" }, o("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((t) => t.value == this.selectedBeforeBufferTime) ?? e[0] }), o("span", null, "mins"))), o("div", { class: "nylas-buffer-time__row" }, o("label", null, "After the event"), o("div", { class: "dropdown-container" }, o("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((t) => t.value == this.selectedAfterBufferTime) ?? e[0] }), o("span", null, "mins")))), o("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, o("h4", null, "PREVIEW"), this.renderPreview()))));
|
|
2764
2764
|
}
|
|
2765
2765
|
static get formAssociated() {
|
|
2766
2766
|
return !0;
|
|
@@ -2775,7 +2775,7 @@ const Gn = class {
|
|
|
2775
2775
|
}
|
|
2776
2776
|
};
|
|
2777
2777
|
uo([
|
|
2778
|
-
|
|
2778
|
+
T({
|
|
2779
2779
|
name: "nylas-buffer-time",
|
|
2780
2780
|
eventToProps: {
|
|
2781
2781
|
valueChanged: async (e, t) => {
|
|
@@ -2805,7 +2805,7 @@ var yo = function(e, t, n, a) {
|
|
|
2805
2805
|
};
|
|
2806
2806
|
const Jn = class {
|
|
2807
2807
|
constructor(e) {
|
|
2808
|
-
_(this, e), this.valueChanged =
|
|
2808
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.name = "calendar", this.defaultSelectedCalendars = [], this.selectedCalendars = [], this.error = "";
|
|
2809
2809
|
}
|
|
2810
2810
|
elementNameChangedHandler(e) {
|
|
2811
2811
|
d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -2838,7 +2838,7 @@ const Jn = class {
|
|
|
2838
2838
|
d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
2839
2839
|
const t = (n) => {
|
|
2840
2840
|
const { value: a } = n.detail;
|
|
2841
|
-
this.selectedCalendars = [...a], this.selectedCalendars.length === 0 ? (this.error = "
|
|
2841
|
+
this.selectedCalendars = [...a], this.selectedCalendars.length === 0 ? (this.error = "Select at least one calendar.", this.internals.setValidity({ customError: !0 }, "Select at least one calendar.")) : (this.error = "", this.internals.setValidity({})), this.internals.setFormValue(a.toString(), this.name);
|
|
2842
2842
|
};
|
|
2843
2843
|
this.valueChanged.emit({ ...e.detail, name: this.name, valueChangedHandler: t });
|
|
2844
2844
|
}
|
|
@@ -2867,7 +2867,7 @@ const Jn = class {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
};
|
|
2869
2869
|
yo([
|
|
2870
|
-
|
|
2870
|
+
T({
|
|
2871
2871
|
name: "nylas-calendar-picker",
|
|
2872
2872
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.currentUser", "currentUser"]]),
|
|
2873
2873
|
eventToProps: {
|
|
@@ -2899,7 +2899,7 @@ var vo = function(e, t, n, a) {
|
|
|
2899
2899
|
const Yn = class {
|
|
2900
2900
|
constructor(e) {
|
|
2901
2901
|
var t, n;
|
|
2902
|
-
_(this, e), this.valueChanged =
|
|
2902
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.cancellationPolicy = void 0, this.name = "cancelation-policy", this.message = this.cancellationPolicy || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : n.cancellation_policy) || "";
|
|
2903
2903
|
}
|
|
2904
2904
|
elementNameChangedHandler(e) {
|
|
2905
2905
|
d("nylas-cancellation-policy", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -2921,11 +2921,11 @@ const Yn = class {
|
|
|
2921
2921
|
d("nylas-cancellation-policy", "disconnectedCallback");
|
|
2922
2922
|
}
|
|
2923
2923
|
handleChange(e) {
|
|
2924
|
-
const t =
|
|
2924
|
+
const t = Te(e.target.value);
|
|
2925
2925
|
this.message = t, this.internals.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
|
|
2926
2926
|
}
|
|
2927
2927
|
render() {
|
|
2928
|
-
return o(H, { key: "
|
|
2928
|
+
return o(H, { key: "3305f1583b3046a2272cd66d4f7100f04006e562" }, o("div", { key: "ebbcc5f6a06c25afa950ce0c5b00914e00bf134f", class: "nylas-cancellation-policy", part: "ncpolicy" }, o("label", { key: "b453a22c105b260a2c2c1ac19291aa2c3e3e1f07", htmlFor: this.name }, "Cancellation policy message", o("span", { key: "0654711d50cb0fce01acbf5ee25973e374f243b6", class: "label-icon" }, o("tooltip-component", { key: "caa77b3b6c028a6627bce1c6f67d5e8b677a145e" }, o("info-icon", { key: "f59c45db4ac86c467e7674a8c320b24556dc5f9a", slot: "tooltip-icon" }), o("span", { key: "2e8a9b0f151a2b510378b93a2bd00bf357bc09ac", slot: "tooltip-content" }, "Attendees receive this message if trying to cancel the event. Attendees are asked to provide a reason for cancellation.")))), o("textarea", { key: "cb2c352e51f4623e3e6eb11f5984134c3bb5aa2e", id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: (e) => this.handleChange(e) })));
|
|
2929
2929
|
}
|
|
2930
2930
|
static get formAssociated() {
|
|
2931
2931
|
return !0;
|
|
@@ -2941,7 +2941,7 @@ const Yn = class {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
};
|
|
2943
2943
|
vo([
|
|
2944
|
-
|
|
2944
|
+
T({
|
|
2945
2945
|
name: "nylas-cancellation-policy",
|
|
2946
2946
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
2947
2947
|
eventToProps: {},
|
|
@@ -2952,7 +2952,7 @@ vo([
|
|
|
2952
2952
|
Ft("design:returntype", void 0)
|
|
2953
2953
|
], Yn.prototype, "render", null);
|
|
2954
2954
|
Yn.style = go;
|
|
2955
|
-
const _o = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{height:100%;object-fit:
|
|
2955
|
+
const _o = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-confirmation-email{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row span.selected-value{font-weight:500}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container{padding:0 2rem 1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body span.error-message{color:var(--nylas-error)}.nylas-confirmation-email .nylas-confirmation-email__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}', Co = _o;
|
|
2956
2956
|
var wo = function(e, t, n, a) {
|
|
2957
2957
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
2958
2958
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -2967,7 +2967,7 @@ var wo = function(e, t, n, a) {
|
|
|
2967
2967
|
};
|
|
2968
2968
|
const Kn = class {
|
|
2969
2969
|
constructor(e) {
|
|
2970
|
-
_(this, e), this.valueChanged =
|
|
2970
|
+
_(this, e), this.valueChanged = I(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.confirmationEmailTemplate = {}, this.isOpen = !1, this.participants = [], this.companyLogoErrorMessage = "", this.name = "confirmation-email-template", this.confirmationEmail = this.confirmationEmailTemplate;
|
|
2971
2971
|
}
|
|
2972
2972
|
connectedCallback() {
|
|
2973
2973
|
d("nylas-confirmation-email", "connectedCallback");
|
|
@@ -3003,11 +3003,7 @@ const Kn = class {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
async nylasFormInputBlurHandler(e) {
|
|
3005
3005
|
const { name: t, value: n } = e.detail;
|
|
3006
|
-
t === "company-logo" && (this.companyLogoErrorMessage = "", On(n).then((
|
|
3007
|
-
if (!a) {
|
|
3008
|
-
this.internals.setValidity({ customError: !0 }, "Image cannot exceed 100px in height and 200px in width."), this.companyLogoErrorMessage = "Image cannot exceed 100px in height and 200px in width.";
|
|
3009
|
-
return;
|
|
3010
|
-
}
|
|
3006
|
+
t === "company-logo" && (this.companyLogoErrorMessage = "", On(n).then(() => {
|
|
3011
3007
|
this.confirmationEmail = { ...this.confirmationEmail, logo: n }, this.internals.setValidity({}), this.internals.setFormValue(JSON.stringify(this.confirmationEmail), "confirmation-email-template"), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: "confirmation-email-template" });
|
|
3012
3008
|
}).catch(() => {
|
|
3013
3009
|
this.internals.setValidity({ customError: !0 }, "Invalid image URL."), this.companyLogoErrorMessage = "Invalid image URL.";
|
|
@@ -3020,15 +3016,15 @@ const Kn = class {
|
|
|
3020
3016
|
this.isOpen = !this.isOpen;
|
|
3021
3017
|
}
|
|
3022
3018
|
handleEmailBodyChange(e) {
|
|
3023
|
-
const t =
|
|
3019
|
+
const t = Te(e.detail.value);
|
|
3024
3020
|
this.confirmationEmail = { ...this.confirmationEmail, booking_confirmed: { ...this.confirmationEmail.booking_confirmed, body: t } }, this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name });
|
|
3025
3021
|
}
|
|
3026
3022
|
render() {
|
|
3027
3023
|
var t;
|
|
3028
3024
|
const e = (t = this.participants.find((n) => n.is_organizer)) == null ? void 0 : t.name;
|
|
3029
|
-
return o(H, { key: "
|
|
3025
|
+
return o(H, { key: "fd7d8a1dd757f5a4a3fcf0565ef498746e74efc5" }, o("div", { key: "c62632c41c4cd617dece486b8066ba001abe1e0a", class: "nylas-confirmation-email", part: "nce" }, o("div", { key: "b4ecf272da7c929a1bb40cbac4564bc826ca4109", class: "header", part: "nce__header" }, o("div", { key: "c640e9eb50c20a3958368a3380e44d893a9575b3" }, o("h3", { key: "f35dbcad04924c812eadaaa608605c4e0d07d1e1" }, this.confirmationEmail.booking_confirmed.title ?? `Booking confirmed with ${e ? ` with ${e}` : ""}`), o("p", { key: "351b6d51c65cb44d8bd0d9cd76a3e71cf0b5ab24" }, "Booking confirmation email")), this.isOpen ? o("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, o("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, o("chevron-icon", { width: "24", height: "24" }))) : o("button-component", { variant: "basic", clickHandler: (n) => {
|
|
3030
3026
|
n.preventDefault(), this.toggleConfirmationEmail();
|
|
3031
|
-
} }, o("edit-icon", { width: "16", height: "16" }), "Edit")), this.isOpen ? o("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, o("div", { class: "nylas-confirmation-email__section" }, o("div", { class: "nylas-confirmation-email__row" }, o("label", null, "Send confirmation email
|
|
3027
|
+
} }, o("edit-icon", { width: "16", height: "16" }), "Edit")), this.isOpen ? o("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, o("div", { class: "nylas-confirmation-email__section" }, o("div", { class: "nylas-confirmation-email__row" }, o("label", null, "Send confirmation email", o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "You and your guests will receive a confirmation email immediately upon booking.")))), o("span", { class: "selected-value" }, "Immediately upon booking")), o("div", { class: `nylas-confirmation-email__row ${this.companyLogoErrorMessage ? "" : "full-width-col"} ` }, o("div", { class: "subsection" }, o("div", { class: "input-container" }, o("label", null, "Company logo URL", o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "This logo appears in the booking confirmation email. The URL must be publicly accessible. The image will be scaled down to a max size of 200px x 100px.")))), o("div", { class: "company-logo-container" }, o("div", { class: "input-container" }, o("input-component", { name: "company-logo", id: "company-logo", type: "text", required: !1, part: "nrt__input-textfield", defaultValue: this.confirmationEmail.logo ?? "" }), this.companyLogoErrorMessage && o("span", { class: "error-message" }, this.companyLogoErrorMessage)), this.confirmationEmail.logo && !this.companyLogoErrorMessage && o("div", { class: "company-logo" }, o("img", { src: this.confirmationEmail.logo, alt: "Company logo" })))))), o("sp-divider", null), o("div", { class: "nylas-confirmation-email__row full-width-col" }, o("div", { class: "subsection" }, o("h3", null, "Email message"), o("div", { class: "input-container" }, o("label", { htmlFor: "title" }, "Custom email title", o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "An email title is a headline within the body of the email. This doesn't change the subject line.")))), o("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: `Booking confirmed ${e ? `with ${e}` : ""}`, defaultValue: this.confirmationEmail.booking_confirmed.title ?? "" })), o("div", { class: "input-container" }, o("textarea-component", { label: "Additional info", name: "confirmation-email-body", id: "confirmation-email-body", placeholder: "Default body", tooltip: "Scheduler adds the content of the box to the email body.", maxLength: 500, defaultValue: this.confirmationEmail.booking_confirmed.body ?? "" })))))) : o("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, o("p", null, o("span", { class: "summary-icon" }, o("person-clipboard-icon", null)), "All host & guests"), o("p", null, o("span", { class: "summary-icon" }, o("clock-icon", null)), "Immediately on booking"))));
|
|
3032
3028
|
}
|
|
3033
3029
|
static get formAssociated() {
|
|
3034
3030
|
return !0;
|
|
@@ -3043,7 +3039,7 @@ const Kn = class {
|
|
|
3043
3039
|
}
|
|
3044
3040
|
};
|
|
3045
3041
|
wo([
|
|
3046
|
-
|
|
3042
|
+
T({
|
|
3047
3043
|
name: "nylas-confirmation-email",
|
|
3048
3044
|
eventToProps: {
|
|
3049
3045
|
valueChanged: async (e, t) => {
|
|
@@ -3058,7 +3054,7 @@ wo([
|
|
|
3058
3054
|
At("design:returntype", void 0)
|
|
3059
3055
|
], Kn.prototype, "render", null);
|
|
3060
3056
|
Kn.style = Co;
|
|
3061
|
-
const
|
|
3057
|
+
const xo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}', ko = xo;
|
|
3062
3058
|
var Eo = function(e, t, n, a) {
|
|
3063
3059
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3064
3060
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -3073,7 +3069,7 @@ var Eo = function(e, t, n, a) {
|
|
|
3073
3069
|
};
|
|
3074
3070
|
const Xn = class {
|
|
3075
3071
|
constructor(e) {
|
|
3076
|
-
_(this, e), this.valueChanged =
|
|
3072
|
+
_(this, e), this.valueChanged = I(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.participants = void 0, this.calendars = void 0, this.selectedConfiguration = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendars = {};
|
|
3077
3073
|
}
|
|
3078
3074
|
elementNameChangedHandler(e) {
|
|
3079
3075
|
d("nylas-connected-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3161,10 +3157,10 @@ const Xn = class {
|
|
|
3161
3157
|
}), t;
|
|
3162
3158
|
}
|
|
3163
3159
|
render() {
|
|
3164
|
-
return o(H, { key: "
|
|
3160
|
+
return o(H, { key: "99218e3a8685ee33dd498acf42eda2b56cceb038" }, o("div", { key: "e34a8c46e6d7c3c09029f42e2ca8b03197881ce1", class: "nylas-connected-calendars", part: "npca" }, o("div", { key: "d6b4544606c1c7c648d1d77a4a235e549e6e04ee", class: "header", part: "npca__header" }, o("h3", { key: "ac478ba35659e90f91ee1a927f8618281afd521a" }, "Connected Calendars"), o("p", { key: "9e275c501da2e774f1ce4aa5d6903d3b2a82a3ed" }, "Select the calendars to use for checking your availability.", o("tooltip-component", { key: "a3545c3f36bf59a18e242562a0a63b84ad3111ee" }, o("info-icon", { key: "183858a1b25a7b1f6acbf306d493528f33d1696c", slot: "tooltip-icon" }), o("span", { key: "a1ab29b7eb67297685684007a7ef8a53463644fb", slot: "tooltip-content" }, "Check availability across one or more calendars. If you select multiple calendars for a participant, the participant must be available across all of their calendars to be considered available.")))), o("div", { key: "7a1309e8f9483b7957994ad15aa2a391a53c0f2e", class: "content", part: "npca__content" }, o("form", { key: "4674709850202f90a46801ae6c0abd194c7102f1", ref: (e) => this.connectedCalendarsFormRef = e }, Object.keys(this.participantCalendars).map((e, t) => {
|
|
3165
3161
|
const n = this.selectedCalendars[e], a = this.participantCalendars[e];
|
|
3166
3162
|
if (!(!n || !n.name))
|
|
3167
|
-
return o("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${t}` }, o("div", { class: "participant-title", part: "npca__participant-title" }, o("p", null,
|
|
3163
|
+
return o("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${t}` }, o("div", { class: "participant-title", part: "npca__participant-title" }, o("p", null, n.name, "'s connected calendars"), o("div", { class: "participant-toggle", part: "npca__participant-toggle--container" }, o("span", { class: `chevron ${n.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
3168
3164
|
this.selectedCalendars[e].isOpen = !n.isOpen, this.selectedCalendars = { ...this.selectedCalendars };
|
|
3169
3165
|
} }, o("chevron-icon", { width: "24", height: "24" })))), n.isOpen && o("nylas-calendar-picker", { key: e, name: `participant-${e}`, calendars: a, defaultSelectedCalendars: this.participantDefaultSelectedCalendars[e] }));
|
|
3170
3166
|
})))));
|
|
@@ -3186,7 +3182,7 @@ const Xn = class {
|
|
|
3186
3182
|
}
|
|
3187
3183
|
};
|
|
3188
3184
|
Eo([
|
|
3189
|
-
|
|
3185
|
+
T({
|
|
3190
3186
|
name: "nylas-connected-calendars",
|
|
3191
3187
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3192
3188
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -3200,7 +3196,7 @@ Eo([
|
|
|
3200
3196
|
Lt("design:paramtypes", []),
|
|
3201
3197
|
Lt("design:returntype", void 0)
|
|
3202
3198
|
], Xn.prototype, "render", null);
|
|
3203
|
-
Xn.style =
|
|
3199
|
+
Xn.style = ko;
|
|
3204
3200
|
const So = ':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}', Do = So;
|
|
3205
3201
|
var Oo = function(e, t, n, a) {
|
|
3206
3202
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
@@ -3231,7 +3227,7 @@ const Qn = class {
|
|
|
3231
3227
|
d("nylas-custom-booking-flow", "componentDidLoad"), ln(["inputs"], this.el);
|
|
3232
3228
|
}
|
|
3233
3229
|
render() {
|
|
3234
|
-
return o(H, { key: "
|
|
3230
|
+
return o(H, { key: "7e8a06c21f24deab0e121f6f63fd17a9fcddefef" }, o("nylas-form-card", { key: "752765525c187d5b6aee8b872616404af92df938", exportparts: "nfc__header: ncbf__header" }, o("h1", { key: "5518d0e52b48d86d82945bee7804a54ae68635f9", slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbf__title" }, "Custom booking flow"), o("div", { key: "f3305aa45e4900571d1cc22130947fe616138711", slot: "content", class: "nylas-custom-booking-flow__content" }, o("slot", { key: "a82e2f5f339e37407186b1a91a750314905eecf5", name: "inputs" }))));
|
|
3235
3231
|
}
|
|
3236
3232
|
static get formAssociated() {
|
|
3237
3233
|
return !0;
|
|
@@ -3241,7 +3237,7 @@ const Qn = class {
|
|
|
3241
3237
|
}
|
|
3242
3238
|
};
|
|
3243
3239
|
Oo([
|
|
3244
|
-
|
|
3240
|
+
T({
|
|
3245
3241
|
name: "nylas-custom-booking-flow",
|
|
3246
3242
|
eventToProps: {},
|
|
3247
3243
|
fireRegisterEvent: !0
|
|
@@ -3251,8 +3247,8 @@ Oo([
|
|
|
3251
3247
|
Pt("design:returntype", void 0)
|
|
3252
3248
|
], Qn.prototype, "render", null);
|
|
3253
3249
|
Qn.style = Do;
|
|
3254
|
-
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-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:1;margin-top:1px;color:var(--nylas-base-600);font-size:1rem}.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: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}',
|
|
3255
|
-
var
|
|
3250
|
+
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-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:1;margin-top:1px;color:var(--nylas-base-600);font-size:1rem}.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: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}', To = Ho;
|
|
3251
|
+
var Io = function(e, t, n, a) {
|
|
3256
3252
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3257
3253
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3258
3254
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -3266,7 +3262,7 @@ var To = function(e, t, n, a) {
|
|
|
3266
3262
|
};
|
|
3267
3263
|
const ea = class {
|
|
3268
3264
|
constructor(e) {
|
|
3269
|
-
_(this, e), this.valueChanged =
|
|
3265
|
+
_(this, e), this.valueChanged = I(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.baseUrl = "", this.defaultUrlSlug = "", this.isOpen = !0, this.slugErrorMessage = "", this.name = "custom-event-slug", this.requiresSlug = !1, this.urlSlug = this.defaultUrlSlug, this.focus = !1, this.copied = !1;
|
|
3270
3266
|
}
|
|
3271
3267
|
connectedCallback() {
|
|
3272
3268
|
d("nylas-custom-event-slug", "connectedCallback");
|
|
@@ -3339,8 +3335,8 @@ const ea = class {
|
|
|
3339
3335
|
};
|
|
3340
3336
|
}
|
|
3341
3337
|
};
|
|
3342
|
-
|
|
3343
|
-
|
|
3338
|
+
Io([
|
|
3339
|
+
T({
|
|
3344
3340
|
name: "nylas-custom-event-slug",
|
|
3345
3341
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.requiresSlug", "requiresSlug"]]),
|
|
3346
3342
|
eventToProps: {
|
|
@@ -3355,7 +3351,7 @@ To([
|
|
|
3355
3351
|
Mt("design:paramtypes", []),
|
|
3356
3352
|
Mt("design:returntype", void 0)
|
|
3357
3353
|
], ea.prototype, "render", null);
|
|
3358
|
-
ea.style =
|
|
3354
|
+
ea.style = To;
|
|
3359
3355
|
const $o = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}', No = $o;
|
|
3360
3356
|
var Fo = function(e, t, n, a) {
|
|
3361
3357
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
@@ -3372,7 +3368,7 @@ var Fo = function(e, t, n, a) {
|
|
|
3372
3368
|
const ta = class {
|
|
3373
3369
|
constructor(e) {
|
|
3374
3370
|
var t, n, a, s, i, l;
|
|
3375
|
-
_(this, e), this.valueChanged =
|
|
3371
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultHideAdditionalGuests = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : n.hide_additional_guests) ?? !1, this.defaultHideCancellationOptions = ((s = (a = this.selectedConfiguration) == null ? void 0 : a.scheduler) == null ? void 0 : s.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : l.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.allowGuestsToInvite = this.defaultHideAdditionalGuests, this.hideCancellationOptions = this.defaultHideCancellationOptions, this.hideReschedulingOptions = this.defaultHideReschedulingOptions;
|
|
3376
3372
|
}
|
|
3377
3373
|
elementNameChangedHandler(e) {
|
|
3378
3374
|
d("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3432,7 +3428,7 @@ const ta = class {
|
|
|
3432
3428
|
}), this.name);
|
|
3433
3429
|
}
|
|
3434
3430
|
render() {
|
|
3435
|
-
return o(H, { key: "
|
|
3431
|
+
return o(H, { key: "55e9ec5ff73123c29ddc599fcc071a5f75939381" }, o("div", { key: "7359f74188c143e44321544ba05ab76d70bd96bc", class: "nylas-customize-booking-settings", part: "ncbs" }, o("div", { key: "5d5903e66529ccaf179669859b3d65f95993b319", class: "header", part: "ncbs__header" }, o("h3", { key: "6ba04c87f75ea4aba42785893912e184c24f0493" }, "Additional settings"), o("p", { key: "384fa254e4b51feb6ec8c59e208dc60384ffa1da" }, "Booking settings for the event.")), o("div", { key: "5f2ac8e85e3e09e60c43756369fcd60087966ddb", class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, o("div", { key: "330fed971c6c4dc7b2c04e9fcac6dbb92a997e3e", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, o("checkbox-component", { key: "d8a6475cb925ca24f5933a45a702edf8f3709d3d", name: "hide_additional_guests", label: "Allow guests to invite additional guests.", checked: this.allowGuestsToInvite }, o("span", { key: "9c73cc08b0f053595330759c1dfeb839d418926a", slot: "label", class: "label" }, o("p", { key: "5569b7951acf09c955df3b32e47a416274c9e6f4", class: "label-contents" }, "Allow guests to invite additional guests.")))), o("div", { key: "ca9ebca50596fe03dff749266c2c765f728b9f30", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, o("checkbox-component", { key: "5a4d54ae636d5404dac1a0fad32fd32acb74cf01", name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, o("span", { key: "c25fbe2bda5ff9f6a097306dfaade8a966d4245f", slot: "label", class: "label" }, o("p", { key: "bb25c2e25e0fe6695c6d75abece9de6acafa28dc", class: "label-contents" }, "Hide rescheduling option."), o("tooltip-component", { key: "5c08741331a84992c6da7da18bfc16cd873bed0c", id: "reschedule" }, o("info-icon", { key: "7c4ba77a994b59c7ef828b7741a5a880eb634fba", slot: "tooltip-icon" }), o("span", { key: "0c820d0dc119455db1a67fd7caa5044c8e930447", slot: "tooltip-content" }, "Hide the ", o("strong", { key: "78ef44de300ef82d8cbd593cb5664fdf8da09078" }, "Reschedule"), " button in the booking confirmation and email notifications."))))), o("div", { key: "c26176fb2860a7972740717c0574720583bb9352", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, o("checkbox-component", { key: "481ff3ac54529f6df325803ae15650a56b650eeb", name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, o("span", { key: "2db805c0201e9469df1b484e76bc00c2da41e74d", slot: "label", class: "label" }, o("p", { key: "2220f894da8cde9e30fa1d592f284f869841e0b3", class: "label-contents" }, "Hide cancellation option."), o("tooltip-component", { key: "fe7d8b5f6b1f6a4ac87912123c8c789694925bef", id: "cancel" }, o("info-icon", { key: "7f65f1a668e2bafcae842610490ca195bdbdd3e2", slot: "tooltip-icon" }), o("span", { key: "efe2508a3186d3126e581bef9546960319316d93", slot: "tooltip-content" }, "Hide the ", o("strong", { key: "7e661642f042ec81bf239bdd55c8af7d73e1f42d" }, "Cancel"), " button in the booking confirmation and email notifications."))))))));
|
|
3436
3432
|
}
|
|
3437
3433
|
static get formAssociated() {
|
|
3438
3434
|
return !0;
|
|
@@ -3448,7 +3444,7 @@ const ta = class {
|
|
|
3448
3444
|
}
|
|
3449
3445
|
};
|
|
3450
3446
|
Fo([
|
|
3451
|
-
|
|
3447
|
+
T({
|
|
3452
3448
|
name: "nylas-customize-booking-settings",
|
|
3453
3449
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3454
3450
|
fireRegisterEvent: !0
|
|
@@ -3474,7 +3470,7 @@ var Po = function(e, t, n, a) {
|
|
|
3474
3470
|
const na = class {
|
|
3475
3471
|
constructor(e) {
|
|
3476
3472
|
var t, n;
|
|
3477
|
-
_(this, e), this.valueChanged =
|
|
3473
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = void 0, this.name = "description", this.description = this.eventDescription || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.description) || "";
|
|
3478
3474
|
}
|
|
3479
3475
|
elementNameChangedHandler(e) {
|
|
3480
3476
|
d("nylas-event-description", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3496,11 +3492,11 @@ const na = class {
|
|
|
3496
3492
|
d("nylas-event-description", "disconnectedCallback");
|
|
3497
3493
|
}
|
|
3498
3494
|
handleChange(e) {
|
|
3499
|
-
const t =
|
|
3495
|
+
const t = Te(e.target.value);
|
|
3500
3496
|
this.description = t, this.internals.setFormValue(t, "description"), this.valueChanged.emit({ value: t, name: this.name });
|
|
3501
3497
|
}
|
|
3502
3498
|
render() {
|
|
3503
|
-
return o(H, { key: "
|
|
3499
|
+
return o(H, { key: "71d7ff1ca7a930d4320b0ac58c7fbd28403da3d9" }, o("div", { key: "852861ed9915e47be2bd52afd4de28fb1eb7d978", class: "nylas-event-description", part: "nedesc" }, o("label", { key: "8b24fe529f233199a78a7f6eabbe1006b255330b", htmlFor: "description" }, "Event description", o("span", { key: "e23a8ce0abb1b1fd47aefdc2cb106d110e769a96", class: "label-icon" }, o("tooltip-component", { key: "69b4cd4607177c498993ef8bc75e52ba66070826" }, o("info-icon", { key: "875c92142de4857105019157f635e6482b2fe197", slot: "tooltip-icon" }), o("span", { key: "2162d4c2c2c4d642f86216a50d591625f2f0e622", slot: "tooltip-content" }, "The event description appears in the Scheduler Editor’s manager view.")))), o("textarea", { key: "9c887cb63bc03fbc062687ff6bf7f9c5d4eabfd4", id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: (e) => this.handleChange(e) })));
|
|
3504
3500
|
}
|
|
3505
3501
|
static get formAssociated() {
|
|
3506
3502
|
return !0;
|
|
@@ -3516,7 +3512,7 @@ const na = class {
|
|
|
3516
3512
|
}
|
|
3517
3513
|
};
|
|
3518
3514
|
Po([
|
|
3519
|
-
|
|
3515
|
+
T({
|
|
3520
3516
|
name: "nylas-event-description",
|
|
3521
3517
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3522
3518
|
eventToProps: {},
|
|
@@ -3542,7 +3538,7 @@ var zo = function(e, t, n, a) {
|
|
|
3542
3538
|
};
|
|
3543
3539
|
const aa = class {
|
|
3544
3540
|
constructor(e) {
|
|
3545
|
-
_(this, e), this.valueChanged =
|
|
3541
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "duration", this.eventDurationMinutes = void 0, this.duration = this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = this.eventDurationMinutes ?? 30, this.durationIncrement = this.eventDurationMinutes && this.eventDurationMinutes >= 60 ? 60 : 1, this.durationMinutesOptions = [
|
|
3546
3542
|
{ value: 15, label: "15" },
|
|
3547
3543
|
{ value: 30, label: "30" },
|
|
3548
3544
|
{ value: 45, label: "45" },
|
|
@@ -3598,7 +3594,7 @@ const aa = class {
|
|
|
3598
3594
|
{ value: 1, label: "minute" },
|
|
3599
3595
|
{ value: 60, label: "hour" }
|
|
3600
3596
|
];
|
|
3601
|
-
return o(H, { key: "
|
|
3597
|
+
return o(H, { key: "8fbb229d360115f6991fac20743e6b14c884980c" }, o("div", { key: "12fe435669d83fba32e6d6fc96acf2763376412f", class: "nylas-event-duration", part: "ned" }, o("label", { key: "9ee46419c5973dcc444a4b7d165e51750abb4815", htmlFor: "duration" }, "Event duration", o("span", { key: "fbd3676ce94cf24b2974528e12859eadc1a1069d", class: "required" }, "*")), o("div", { key: "afd69276863c09399ed812278e7d140fe24f32a7", class: "nylas-event-duration__wrapper" }, o("input-dropdown", { key: "54ecf8966b6716ec10d4ef9f4983e03460cdd116", 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((t) => t.value == this.duration) ?? e[0] }), o("select-dropdown", { key: "f0a884483d417c2ac161a4bec406d1da08efc9c7", 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((t) => t.value == this.durationIncrement) ?? e[0], withSearch: !1 }))));
|
|
3602
3598
|
}
|
|
3603
3599
|
static get formAssociated() {
|
|
3604
3600
|
return !0;
|
|
@@ -3615,7 +3611,7 @@ const aa = class {
|
|
|
3615
3611
|
}
|
|
3616
3612
|
};
|
|
3617
3613
|
zo([
|
|
3618
|
-
|
|
3614
|
+
T({
|
|
3619
3615
|
name: "nylas-event-duration",
|
|
3620
3616
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3621
3617
|
eventToProps: {},
|
|
@@ -3656,7 +3652,7 @@ const ia = class {
|
|
|
3656
3652
|
d("nylas-event-info", "disconnectedCallback");
|
|
3657
3653
|
}
|
|
3658
3654
|
render() {
|
|
3659
|
-
return o(H, { key: "
|
|
3655
|
+
return o(H, { key: "5f51ff10ac2526b2453f99ebe8c32500b4aa9d52" }, o("nylas-form-card", { key: "49a013e366a33c6c4ec3f521a03edcd998ab93cc", exportparts: "nfc__header: nei__header" }, o("h1", { key: "5fc596b317e75889175fbef41422866524d39dd5", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, "Event information"), o("div", { key: "ce48c81a5934c6828918102f7035f7a4214ab0f4", slot: "content", class: "nylas-event-info__content" }, o("slot", { key: "1bfef4fae8945ce448b17c220315fb071b084926", name: "inputs" }))));
|
|
3660
3656
|
}
|
|
3661
3657
|
static get formAssociated() {
|
|
3662
3658
|
return !0;
|
|
@@ -3666,7 +3662,7 @@ const ia = class {
|
|
|
3666
3662
|
}
|
|
3667
3663
|
};
|
|
3668
3664
|
Wo([
|
|
3669
|
-
|
|
3665
|
+
T({
|
|
3670
3666
|
name: "nylas-event-info",
|
|
3671
3667
|
eventToProps: {},
|
|
3672
3668
|
fireRegisterEvent: !0
|
|
@@ -3706,7 +3702,7 @@ const oa = class {
|
|
|
3706
3702
|
d("nylas-event-limits", "disconnectedCallback");
|
|
3707
3703
|
}
|
|
3708
3704
|
render() {
|
|
3709
|
-
return o(H, { key: "
|
|
3705
|
+
return o(H, { key: "f799070da5f727e9c1286fca1a2bd320d1372a5a" }, o("nylas-form-card", { key: "bf94fd34bf38e5266f2d49ced14afed92e651299", exportparts: "nfc__header: nel__header" }, o("h1", { key: "3d0f1b7bdbf0b9d904090a91b5bc1031b25bdef1", slot: "header-title", class: "nylas-event-limits__title" }, "Event limits"), o("div", { key: "fc8899f56d61b94c60133ef7a8848dff485bfb28", slot: "content", class: "nylas-event-limits__content" }, o("slot", { key: "16fabc236d17458a8f3a057e846f839dbfca2ac1", name: "inputs" }))));
|
|
3710
3706
|
}
|
|
3711
3707
|
static get formAssociated() {
|
|
3712
3708
|
return !0;
|
|
@@ -3716,7 +3712,7 @@ const oa = class {
|
|
|
3716
3712
|
}
|
|
3717
3713
|
};
|
|
3718
3714
|
Vo([
|
|
3719
|
-
|
|
3715
|
+
T({
|
|
3720
3716
|
name: "nylas-event-limits",
|
|
3721
3717
|
eventToProps: {},
|
|
3722
3718
|
fireRegisterEvent: !0
|
|
@@ -3741,7 +3737,7 @@ var Jo = function(e, t, n, a) {
|
|
|
3741
3737
|
};
|
|
3742
3738
|
const sa = class {
|
|
3743
3739
|
constructor(e) {
|
|
3744
|
-
_(this, e), this.valueChanged =
|
|
3740
|
+
_(this, e), this.valueChanged = I(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.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.grantId = this.setDefaultGrantID(), this.selectedLocationOption = this.setDefaultLocationOption();
|
|
3745
3741
|
}
|
|
3746
3742
|
elementNameChangedHandler(e) {
|
|
3747
3743
|
d("nylas-event-location", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3818,7 +3814,7 @@ const sa = class {
|
|
|
3818
3814
|
}
|
|
3819
3815
|
}
|
|
3820
3816
|
setDefaultLocationOption() {
|
|
3821
|
-
return this.eventConferencing != null && this.eventConferencing.provider != null && this.eventConferencing.autocreate != null ?
|
|
3817
|
+
return this.eventConferencing != null && this.eventConferencing.provider != null && this.eventConferencing.autocreate != null ? xa[this.eventConferencing.provider] : this.eventLocation ? "custom" : "none";
|
|
3822
3818
|
}
|
|
3823
3819
|
setDefaultGrantID() {
|
|
3824
3820
|
return this.eventConferencing != null && this.eventConferencing.autocreate != null ? this.eventConferencing.autocreate.conf_grant_id : "";
|
|
@@ -3827,7 +3823,7 @@ const sa = class {
|
|
|
3827
3823
|
typeof this.internals.setFormValue == "function" && this.internals.setFormValue(e, t);
|
|
3828
3824
|
}
|
|
3829
3825
|
handleChange(e) {
|
|
3830
|
-
const t =
|
|
3826
|
+
const t = Te(e.target.value);
|
|
3831
3827
|
this.location = t, this.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
|
|
3832
3828
|
}
|
|
3833
3829
|
render() {
|
|
@@ -3846,13 +3842,13 @@ const sa = class {
|
|
|
3846
3842
|
}
|
|
3847
3843
|
(n = this.conferenceProviders) != null && n.zoom && e.push({ value: "zoom", label: "Zoom Meeting" });
|
|
3848
3844
|
const t = {
|
|
3849
|
-
none: o("location-off-icon", { key: "
|
|
3850
|
-
custom: o("location-icon", { key: "
|
|
3851
|
-
google: o("google-meet-icon", { key: "
|
|
3852
|
-
microsoft: o("microsoft-teams-icon", { key: "
|
|
3853
|
-
zoom: o("zoom-icon", { key: "
|
|
3845
|
+
none: o("location-off-icon", { key: "80ed2f0d448d624e1adcf7e16cdbcf82c2050c9f" }),
|
|
3846
|
+
custom: o("location-icon", { key: "1acbfc92ca9df63b8299a2819541d162fda7a7be" }),
|
|
3847
|
+
google: o("google-meet-icon", { key: "8b793d779c340b693d8ab8deab6b7e198fec1a31" }),
|
|
3848
|
+
microsoft: o("microsoft-teams-icon", { key: "b05b44a314d0f423f20be220165ebd7776402976" }),
|
|
3849
|
+
zoom: o("zoom-icon", { key: "89a8fd297b590eb8d547bbf7629cd87a94ef30cf" })
|
|
3854
3850
|
};
|
|
3855
|
-
return o(H, { key: "
|
|
3851
|
+
return o(H, { key: "d22a2ca1b72722565ecabbd730345371c6c8418d" }, o("div", { key: "9c91a5f5c8ef28248d6773be679e7c83ff9f55b9", class: "nylas-event-location", part: "nel" }, o("label", { key: "c576d038ad28eb8a68af1f61db363c04713e76ee", htmlFor: "location" }, "Event meeting or location", o("span", { key: "46ba8113a0cef05d306ffa9dc680530fe4601cfc", class: "label-icon" }, o("tooltip-component", { key: "0f384c860e41adeb6bd518e1284de16282e708ea" }, o("info-icon", { key: "87a20af69531a755e840c5b6a6d5a144d076fe34", slot: "tooltip-icon" }), o("span", { key: "5342da379fe57c15a974e4f5481f767941dd7e08", slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), o("div", { key: "08f8cfab59fe46f8a035dddf4a7ced762d128afc", class: "location-input" }, o("select-dropdown", { key: "ca05c4b54cf7a0e106d28ff93533d1da86e76437", withSearch: !1, name: "location", options: e.reverse(), defaultSelectedOption: e.find((a) => a.value == this.selectedLocationOption), exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, o("span", { key: "27bf393ae8c5a0a331186e622cdfb89d39e006b2", slot: "select-icon" }, t[this.selectedLocationOption])), this.selectedLocationOption === "custom" && o("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (a) => this.handleChange(a) }))));
|
|
3856
3852
|
}
|
|
3857
3853
|
static get formAssociated() {
|
|
3858
3854
|
return !0;
|
|
@@ -3869,7 +3865,7 @@ const sa = class {
|
|
|
3869
3865
|
}
|
|
3870
3866
|
};
|
|
3871
3867
|
Jo([
|
|
3872
|
-
|
|
3868
|
+
T({
|
|
3873
3869
|
name: "nylas-event-location",
|
|
3874
3870
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3875
3871
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3883,7 +3879,7 @@ Jo([
|
|
|
3883
3879
|
Ut("design:returntype", void 0)
|
|
3884
3880
|
], sa.prototype, "render", null);
|
|
3885
3881
|
sa.style = Go;
|
|
3886
|
-
const Yo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-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{color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', Ko = Yo;
|
|
3882
|
+
const Yo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:flex;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', Ko = Yo;
|
|
3887
3883
|
var Xo = function(e, t, n, a) {
|
|
3888
3884
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
3889
3885
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -3899,7 +3895,7 @@ var Xo = function(e, t, n, a) {
|
|
|
3899
3895
|
const la = class {
|
|
3900
3896
|
constructor(e) {
|
|
3901
3897
|
var t, n;
|
|
3902
|
-
_(this, e), this.valueChanged =
|
|
3898
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.title, this.name = "title", this.showTokens = !1, this.availableTokens = yn.map((a) => ({
|
|
3903
3899
|
label: a.token,
|
|
3904
3900
|
value: a.value,
|
|
3905
3901
|
labelHTML: a
|
|
@@ -3984,7 +3980,7 @@ const la = class {
|
|
|
3984
3980
|
}
|
|
3985
3981
|
handleChange(e) {
|
|
3986
3982
|
let t = e.target.textContent || "";
|
|
3987
|
-
t =
|
|
3983
|
+
t = Te(t);
|
|
3988
3984
|
const n = this.getCurrentSelectionForBrowser();
|
|
3989
3985
|
if (!n) {
|
|
3990
3986
|
this.updateEventTitle(t), this.resetDropdown();
|
|
@@ -4074,10 +4070,10 @@ const la = class {
|
|
|
4074
4070
|
}
|
|
4075
4071
|
render() {
|
|
4076
4072
|
var e;
|
|
4077
|
-
return o(H, { key: "409826debee9c6ac49fced2fb97594f3c2cd365f" }, o("div", { key: "8eb027edf9caaa1b8aceb28a9bd073cca242d33f", class: "nylas-event-title", part: "net" }, o("label", { key: "50b23ae90716e0d877a1597d9fe78e51c72fc3a5", htmlFor: "title" }, "Event title", o("span", { key: "8475448aa29ec0e2a8525f346057adee2fa10831", class: "required" }, "*")
|
|
4073
|
+
return o(H, { key: "409826debee9c6ac49fced2fb97594f3c2cd365f" }, o("div", { key: "8eb027edf9caaa1b8aceb28a9bd073cca242d33f", class: "nylas-event-title", part: "net" }, o("label", { key: "50b23ae90716e0d877a1597d9fe78e51c72fc3a5", htmlFor: "title" }, "Event title", o("span", { key: "8475448aa29ec0e2a8525f346057adee2fa10831", class: "required" }, "*")), o("div", { key: "a5d59fb3e06e1e66b6894a923ec74759b2350658", class: {
|
|
4078
4074
|
title: !0,
|
|
4079
4075
|
error: this.validationError !== ""
|
|
4080
|
-
}, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && o("div", { class: "token-options", part: "net__dropdown-content" }, o("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => o("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (n) => this.selectOption(n, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), o("span", { key: "
|
|
4076
|
+
}, part: "net__title", ref: (t) => this.titleRef = t, contentEditable: "true", onInput: (t) => this.handleChange(t), onKeyDown: (t) => this.handleInputKeyDown(t) }), this.showTokens && ((e = this.filteredTokens) == null ? void 0 : e.length) > 0 && o("div", { class: "token-options", part: "net__dropdown-content" }, o("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => o("li", { tabindex: "0", key: t.label, id: t.label, class: { active: this.ariaActivedescendant === t.label }, onClick: (n) => this.selectOption(n, t), role: "option" }, this.getLabelHTML(t.labelHTML))))), o("span", { key: "f4e9875cf1ea86c73a6fc024a1082452a45839f6", class: "help-text" }, "Create a dynamic templated event title by typing ", o("code", { key: "94ee43a1671dfe4f086bcca3deffa1c4e7c98a44" }, "$"), " and selecting a template item.", o("span", { key: "949fb0fd46f497936402f09f158bd66ab57b361e", class: "label-icon" }, o("tooltip-component", { key: "59d1026a0a2c7d3428bda4f01bc7f3c16ac71186" }, o("info-icon", { key: "98b31f170e716f98058fdee38d51edf61c57faf2", slot: "tooltip-icon" }), o("span", { key: "0f45ba294c9768543c9e06bbfbf19f2cacbce6bc", slot: "tooltip-content" }, "For example, Interview with ", o("code", { key: "edd0a42646f2389f0168a9e6e112ee388fd550f0" }, "${invitee}"))))), this.validationError != "" && o("span", { class: "error-message" }, this.validationError)));
|
|
4081
4077
|
}
|
|
4082
4078
|
static get formAssociated() {
|
|
4083
4079
|
return !0;
|
|
@@ -4094,7 +4090,7 @@ const la = class {
|
|
|
4094
4090
|
}
|
|
4095
4091
|
};
|
|
4096
4092
|
Xo([
|
|
4097
|
-
|
|
4093
|
+
T({
|
|
4098
4094
|
name: "nylas-event-title",
|
|
4099
4095
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4100
4096
|
eventToProps: {},
|
|
@@ -4120,7 +4116,7 @@ var ts = function(e, t, n, a) {
|
|
|
4120
4116
|
};
|
|
4121
4117
|
const ra = class {
|
|
4122
4118
|
constructor(e) {
|
|
4123
|
-
_(this, e), this.valueChanged =
|
|
4119
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.availableDaysInFuture = void 0, this.name = "limit-future-bookings", this.selectedNumber = 1, this.selectedPeriod = "day";
|
|
4124
4120
|
}
|
|
4125
4121
|
elementNameChangedHandler(e) {
|
|
4126
4122
|
d("nylas-limit-future-bookings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4156,7 +4152,7 @@ const ra = class {
|
|
|
4156
4152
|
e >= 30 && e % 30 === 0 ? (t = e / 30, n = "month") : e >= 7 && e % 7 === 0 ? (t = e / 7, n = "week") : (t = e, n = "day"), this.selectedNumber = t, this.selectedPeriod = n;
|
|
4157
4153
|
}
|
|
4158
4154
|
render() {
|
|
4159
|
-
return o(H, { key: "
|
|
4155
|
+
return o(H, { key: "0cf895e7a8cc9ff5786452ffd6e1281725946b9d" }, o("div", { key: "b3ae5e4373ed3c9607940fdadba04aadcd5440e3", class: "nylas-limit-future-bookings", part: "nlfb" }, o("label", { key: "a80d157fe6b6a0369e51339b1dba8345e9747083" }, "Limit future bookings", o("span", { key: "341eb1768add60d4882ff4a540db7e686abe8e53", class: "label-icon" }, o("tooltip-component", { key: "62742edb4107460d9d471e92beb1dbda1bbf5289" }, o("info-icon", { key: "c5fe00ee0161e7faf71773de636519b9fb4e2193", slot: "tooltip-icon" }), o("span", { key: "4c44a421fcb515ea6861fb995f219f1c9809198d", slot: "tooltip-content" }, "The limit on how far in the future bookings can be made.")))), o("time-period-selector", { key: "d3e7faf50ff80760bf01830166c86cf0e7e627c4", id: "limit-future-bookings", timePeriods: ["day", "week", "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 })));
|
|
4160
4156
|
}
|
|
4161
4157
|
static get formAssociated() {
|
|
4162
4158
|
return !0;
|
|
@@ -4173,7 +4169,7 @@ const ra = class {
|
|
|
4173
4169
|
}
|
|
4174
4170
|
};
|
|
4175
4171
|
ts([
|
|
4176
|
-
|
|
4172
|
+
T({
|
|
4177
4173
|
name: "nylas-limit-future-bookings",
|
|
4178
4174
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4179
4175
|
eventToProps: {},
|
|
@@ -4199,7 +4195,7 @@ var is = function(e, t, n, a) {
|
|
|
4199
4195
|
};
|
|
4200
4196
|
const da = class {
|
|
4201
4197
|
constructor(e) {
|
|
4202
|
-
_(this, e), this.valueChanged =
|
|
4198
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.minBookingNotice = void 0, this.name = "min-booking-notice", this.selectedNumber = 1, this.selectedPeriod = "hour";
|
|
4203
4199
|
}
|
|
4204
4200
|
elementNameChangedHandler(e) {
|
|
4205
4201
|
d("nylas-min-booking-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4236,7 +4232,7 @@ const da = class {
|
|
|
4236
4232
|
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;
|
|
4237
4233
|
}
|
|
4238
4234
|
render() {
|
|
4239
|
-
return o(H, { key: "
|
|
4235
|
+
return o(H, { key: "8f3d078f12672ca0d7db2b3ae03ffc34875d201d" }, o("div", { key: "156c609f8e31b1e1895b2fb1cf8030fbf2246210", class: "nylas-min-booking-notice", part: "nmbn" }, o("label", { key: "1b2ecf4f2fb0ac363a05a305ffbe3b1fb0320f64" }, "Minimum booking notice", o("span", { key: "36e7ea598f51742a72ff97d430f213541753991e", class: "label-icon" }, o("tooltip-component", { key: "6e6314eeb7ec178aa3ad947863e44ba1de6d2a20" }, o("info-icon", { key: "0ee79aaba7291dac22f210f09150d63dea497967", slot: "tooltip-icon" }), o("span", { key: "c71b4f3cf8542feba07957457ff9166ffaa141df", slot: "tooltip-content" }, "The minimum amount of time in the future that a new booking can be made.")))), o("time-period-selector", { key: "a3b15261823d6b592b4ef17c6ac2a90f8e34c142", 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: ["minute", "hour", "day", "week"], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
|
|
4240
4236
|
}
|
|
4241
4237
|
static get formAssociated() {
|
|
4242
4238
|
return !0;
|
|
@@ -4253,7 +4249,7 @@ const da = class {
|
|
|
4253
4249
|
}
|
|
4254
4250
|
};
|
|
4255
4251
|
is([
|
|
4256
|
-
|
|
4252
|
+
T({
|
|
4257
4253
|
name: "nylas-min-booking-notice",
|
|
4258
4254
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4259
4255
|
eventToProps: {},
|
|
@@ -4279,7 +4275,7 @@ var ls = function(e, t, n, a) {
|
|
|
4279
4275
|
};
|
|
4280
4276
|
const ca = class {
|
|
4281
4277
|
constructor(e) {
|
|
4282
|
-
_(this, e), this.valueChanged =
|
|
4278
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.minCancellationNotice = void 0, this.name = "min-cancellation-notice", this.selectedNumber = 1, this.selectedPeriod = "day";
|
|
4283
4279
|
}
|
|
4284
4280
|
elementNameChangedHandler(e) {
|
|
4285
4281
|
d("nylas-min-cancellation-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4316,7 +4312,7 @@ const ca = class {
|
|
|
4316
4312
|
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;
|
|
4317
4313
|
}
|
|
4318
4314
|
render() {
|
|
4319
|
-
return o(H, { key: "
|
|
4315
|
+
return o(H, { key: "b67ca9afb08e7e4d011a54662df4f3448119a41c" }, o("div", { key: "3333f56f5dff36179483fc2eb4ff7e7f4104086c", class: "nylas-min-cancellation-notice", part: "nmcn" }, o("label", { key: "8b6bda1b9a8f05af75de106d5a468ca3f2c2ac22" }, "Minimum cancellation notice", o("span", { key: "fe9fd3f3ef8b9e9649952aaa69c8a467d588adc9", class: "label-icon" }, o("tooltip-component", { key: "5e23e8e99b6e3fbaa76690918befa2b3700114b9" }, o("info-icon", { key: "a661563f46e20033055e0a7355eafbe6582260da", slot: "tooltip-icon" }), o("span", { key: "d9d614255a9feebfd6cd7875d85420289b148350", slot: "tooltip-content" }, "The minimum amount of time required to cancel a booking.")))), o("time-period-selector", { key: "d483b26f6f72b651a2c324200df20b030b2bc945", id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: ["minute", "hour", "day", "week"], defaultSelectedNumber: this.selectedNumber, defaultSelectedPeriod: this.selectedPeriod })));
|
|
4320
4316
|
}
|
|
4321
4317
|
static get formAssociated() {
|
|
4322
4318
|
return !0;
|
|
@@ -4333,7 +4329,7 @@ const ca = class {
|
|
|
4333
4329
|
}
|
|
4334
4330
|
};
|
|
4335
4331
|
ls([
|
|
4336
|
-
|
|
4332
|
+
T({
|
|
4337
4333
|
name: "nylas-min-cancellation-notice",
|
|
4338
4334
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4339
4335
|
eventToProps: {},
|
|
@@ -4344,7 +4340,7 @@ ls([
|
|
|
4344
4340
|
Gt("design:returntype", void 0)
|
|
4345
4341
|
], ca.prototype, "render", null);
|
|
4346
4342
|
ca.style = ss;
|
|
4347
|
-
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-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{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
|
|
4343
|
+
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-page-name{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{display:flex;gap:4px;align-items:center;margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-name .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-name .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-name .header .drawer-toggle .chevron:hover,.nylas-page-name .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-name .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-name .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-name .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-name .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body{grid-template-columns:1fr}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body .nylas-page-name__section{border:none}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row{display:flex;align-items:center;gap:1rem}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label{display:flex;align-items:center}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container{width:100%}.nylas-page-name .nylas-page-name__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}', ds = rs;
|
|
4348
4344
|
var cs = function(e, t, n, a) {
|
|
4349
4345
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4350
4346
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -4359,7 +4355,7 @@ var cs = function(e, t, n, a) {
|
|
|
4359
4355
|
};
|
|
4360
4356
|
const pa = class {
|
|
4361
4357
|
constructor(e) {
|
|
4362
|
-
_(this, e), this.valueChanged =
|
|
4358
|
+
_(this, e), this.valueChanged = I(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.pageName = "", this.showToggle = !0, this.isOpen = !0, this.name = "page-name", this.currentPageName = this.pageName;
|
|
4363
4359
|
}
|
|
4364
4360
|
connectedCallback() {
|
|
4365
4361
|
d("nylas-page-name", "connectedCallback");
|
|
@@ -4396,7 +4392,7 @@ const pa = class {
|
|
|
4396
4392
|
this.isOpen = !this.isOpen;
|
|
4397
4393
|
}
|
|
4398
4394
|
render() {
|
|
4399
|
-
return o(H, { key: "
|
|
4395
|
+
return o(H, { key: "7989dc84d65553fd406fbb6d7ec598eadefb8763" }, o("div", { key: "502fcca5aa6da31b8b51654a746cd3b7c4a2652d", class: "nylas-page-name", part: "nces" }, o("div", { key: "d2506713e01c3f052da9618c85078b7cc5da1255", class: "header", part: "nces__header" }, o("div", { key: "4a1ff53f8208cd03e126f991a4acf90afb2ecdba" }, o("h3", { key: "df5898ee0462d7378a264567e1e9969e63cd8b7f" }, "Page name"), o("p", { key: "548b1b1f8534985f01495fd2b531b34528035990" }, "Set the Scheduling Page name.", o("tooltip-component", { key: "1e3b746e5f11498d2cb827b4c7a0e3bf9b90b3b1" }, o("info-icon", { key: "4a93a5cbd57d18b62e8fe12ff75fe33baf40668d", slot: "tooltip-icon" }), o("span", { key: "2ce91e624317d20e1483d8eece754e680e62ccf2", slot: "tooltip-content" }, "By default, Scheduling Pages use your user name as the Page name. The Page name is displayed in the top-left corner of the calendar view.")))), this.showToggle && o("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, o("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, o("chevron-icon", { width: "24", height: "24" })))), this.isOpen && o("div", { class: "nylas-page-name__body", part: "nces__body" }, o("div", { class: "nylas-page-name__section" }, o("div", { class: "nylas-page-name__row" }, o("div", { class: "input-container" }, o("div", { class: "nylas-page-name__input-wrapper" }, o("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "" }))))))));
|
|
4400
4396
|
}
|
|
4401
4397
|
static get formAssociated() {
|
|
4402
4398
|
return !0;
|
|
@@ -4411,7 +4407,7 @@ const pa = class {
|
|
|
4411
4407
|
}
|
|
4412
4408
|
};
|
|
4413
4409
|
cs([
|
|
4414
|
-
|
|
4410
|
+
T({
|
|
4415
4411
|
name: "nylas-page-name",
|
|
4416
4412
|
eventToProps: {
|
|
4417
4413
|
valueChanged: async (e, t) => {
|
|
@@ -4426,7 +4422,7 @@ cs([
|
|
|
4426
4422
|
Jt("design:returntype", void 0)
|
|
4427
4423
|
], pa.prototype, "render", null);
|
|
4428
4424
|
pa.style = ds;
|
|
4429
|
-
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;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 .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@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)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container{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{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 .nylas-page-styling__section .nylas-page-styling__row .company-logo-container{display:flex;flex-direction:row;gap:2rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .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-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .company-logo img{height:100%;object-fit:
|
|
4425
|
+
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;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 .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@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)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container{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{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 .nylas-page-styling__section .nylas-page-styling__row .company-logo-container{display:flex;flex-direction:row;gap:2rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .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-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.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}', fs = ps;
|
|
4430
4426
|
var us = function(e, t, n, a) {
|
|
4431
4427
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4432
4428
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -4441,7 +4437,7 @@ var us = function(e, t, n, a) {
|
|
|
4441
4437
|
};
|
|
4442
4438
|
const fa = class {
|
|
4443
4439
|
constructor(e) {
|
|
4444
|
-
_(this, e), this.valueChanged =
|
|
4440
|
+
_(this, e), this.valueChanged = I(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.appearance = {}, this.companyLogoErrorMessage = "", this.isOpen = !0, this.name = "page-styling", this.currentAppearance = this.appearance;
|
|
4445
4441
|
}
|
|
4446
4442
|
connectedCallback() {
|
|
4447
4443
|
d("nylas-page-styling", "connectedCallback");
|
|
@@ -4479,7 +4475,7 @@ const fa = class {
|
|
|
4479
4475
|
break;
|
|
4480
4476
|
case "thank-you-booking-message":
|
|
4481
4477
|
if (a === "multi_line_text") {
|
|
4482
|
-
const i =
|
|
4478
|
+
const i = Te(e.detail.value);
|
|
4483
4479
|
this.currentAppearance = { ...this.currentAppearance, thank_you_message: i };
|
|
4484
4480
|
}
|
|
4485
4481
|
break;
|
|
@@ -4499,11 +4495,7 @@ const fa = class {
|
|
|
4499
4495
|
}
|
|
4500
4496
|
async nylasFormInputBlurHandler(e) {
|
|
4501
4497
|
const { name: t, value: n } = e.detail;
|
|
4502
|
-
t === "company-logo" && (this.companyLogoErrorMessage = "", On(n).then((
|
|
4503
|
-
if (!a) {
|
|
4504
|
-
this.internals.setValidity({ customError: !0 }, "Image cannot exceed 100px in height and 200px in width."), this.companyLogoErrorMessage = "Image cannot exceed 100px in height and 200px in width.";
|
|
4505
|
-
return;
|
|
4506
|
-
}
|
|
4498
|
+
t === "company-logo" && (this.companyLogoErrorMessage = "", On(n).then(() => {
|
|
4507
4499
|
this.currentAppearance = { ...this.currentAppearance, company_logo_url: n }, this.internals.setValidity({}), this.internals.setFormValue(JSON.stringify(this.currentAppearance), this.name), this.valueChanged.emit({ value: JSON.stringify(this.currentAppearance), name: this.name });
|
|
4508
4500
|
}).catch(() => {
|
|
4509
4501
|
this.internals.setValidity({ customError: !0 }, "Invalid image URL."), this.companyLogoErrorMessage = "Invalid image URL.";
|
|
@@ -4517,7 +4509,7 @@ const fa = class {
|
|
|
4517
4509
|
}
|
|
4518
4510
|
render() {
|
|
4519
4511
|
var e, t, n, a, s, i;
|
|
4520
|
-
return o(H, { key: "
|
|
4512
|
+
return o(H, { key: "30b78bef43e2b3cc9a52be73655bfab6e4587d41" }, o("div", { key: "150c3f7403c8745af4d76270f0d35e59158b69b2", class: "nylas-page-styling", part: "nps" }, o("div", { key: "ae999d4e2743976009329c5dec06ff96ac9ea4e3", class: "header", part: "nps__header" }, o("div", { key: "1d5ddde5b414fd79a9d358f86793c840c1d24caf" }, o("h3", { key: "11a7733dc71604da09bbe9c842bfa3bb45e7e51c" }, "Page styling and customization")), o("div", { key: "8fa6da036602ccdc7e44aa59164b18274045c293", class: "drawer-toggle", part: "nps__drawer-toggle--container" }, o("span", { key: "18d2c63571dac520c1ccdbccd31321d258f003f2", class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, o("chevron-icon", { key: "a3613889ab91355e6dad41c4fe1c8084f8cbcc66", width: "24", height: "24" })))), this.isOpen && o("div", { class: "nylas-page-styling__body", part: "nps__body" }, o("div", { class: "nylas-page-styling__section" }, o("div", { class: "nylas-page-styling__row" }, o("div", { class: "subsection" }, o("div", { class: "input-container" }, o("label", null, "Company logo URL", o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "This logo appears above the date selector in the hosted app. The URL must be publicly accessible. The image will be scaled down to a max size of 200px x 100px.")))), o("div", { class: "company-logo-container" }, o("div", { class: "input-container" }, o("input-component", { name: "company-logo", id: "company-logo", type: "text", required: !1, exportparts: "ic_input: nps__company-logo-input-textfield", defaultValue: ((e = this.currentAppearance) == null ? void 0 : e.company_logo_url) ?? "" }), this.companyLogoErrorMessage && o("span", { class: "error-message" }, this.companyLogoErrorMessage)), ((t = this.currentAppearance) == null ? void 0 : t.company_logo_url) && !this.companyLogoErrorMessage && o("div", { class: "company-logo" }, o("img", { src: (n = this.currentAppearance) == null ? void 0 : n.company_logo_url, alt: "Company logo" })))), o("div", { class: "input-container" }, o("label", null, "Primary color"), o("div", { class: "input-container" }, o("div", { class: "color-picker-container" }, o("input-color-picker", { name: "style-color-picker", exportparts: "icp_color-picker: nps__color-picker, icp_color-picker-button: nps__color-picker-button, icp_color-picker-button-selected-label: nps__color-picker-button-selected-label, icp_color-picker-label: nps__color-picker-label", defaultSelectedColor: (a = this.currentAppearance) == null ? void 0 : a.color })))), o("div", { class: "input-container" }, o("label", null, "Submit button label", o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "The text you want to display on the Submit button.")))), o("div", { class: "input-container" }, o("input-component", { name: "submit-button-label", id: "submit-button-label", type: "text", required: !1, part: "nps__submit-button-label-input-textfield", defaultValue: ((s = this.currentAppearance) == null ? void 0 : s.submit_button_label) ?? "" }))), o("div", { class: "input-container" }, o("label", null, "Thank you message", o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "The text you want to display on the confirmation page.")))), o("div", { class: "input-container" }, o("textarea-component", { id: "thank-you-booking-message", name: "thank-you-booking-message", part: "nps__message-textarea", placeholder: "You'll receive an email confirmation soon.", maxLength: 500, defaultValue: ((i = this.currentAppearance) == null ? void 0 : i.thank_you_message) ?? "" })))))))));
|
|
4521
4513
|
}
|
|
4522
4514
|
static get formAssociated() {
|
|
4523
4515
|
return !0;
|
|
@@ -4532,7 +4524,7 @@ const fa = class {
|
|
|
4532
4524
|
}
|
|
4533
4525
|
};
|
|
4534
4526
|
us([
|
|
4535
|
-
|
|
4527
|
+
T({
|
|
4536
4528
|
name: "nylas-page-styling",
|
|
4537
4529
|
eventToProps: {
|
|
4538
4530
|
valueChanged: async (e, t) => {
|
|
@@ -4562,7 +4554,7 @@ var ys = function(e, t, n, a) {
|
|
|
4562
4554
|
};
|
|
4563
4555
|
const ua = class {
|
|
4564
4556
|
constructor(e) {
|
|
4565
|
-
_(this, e), this.valueChanged =
|
|
4557
|
+
_(this, e), this.valueChanged = I(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 = void 0, this.calendars = void 0, this.participantOptions = void 0, this.selectedCalendars = this.setParticipants(this.participants), this.participantCalendars = {}, this.participantDefaultSelectedCalendar = {};
|
|
4566
4558
|
}
|
|
4567
4559
|
elementNameChangedHandler(e) {
|
|
4568
4560
|
d("nylas-participant-booking-calendars", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4649,10 +4641,10 @@ const ua = class {
|
|
|
4649
4641
|
}), t;
|
|
4650
4642
|
}
|
|
4651
4643
|
render() {
|
|
4652
|
-
return o(H, { key: "
|
|
4644
|
+
return o(H, { key: "d73c4849b31828ed585d52319b40ae1c3a762ae3" }, o("div", { key: "22db3b20d748c446ef3af6d2af2531526e394aae", class: "nylas-participant-booking-calendars", part: "npbc" }, o("div", { key: "af018eac59fcf2e65271e85dfe6f5866646a368c", class: "header", part: "npbc__header" }, o("h3", { key: "dd6af6b475bc88ac6e3f772e9b03dabc357e84e1" }, "Book to this calendar"), o("p", { key: "ba831e2b9ffa5dfe86e1b5493fa079aae7cf87fc" }, "Select the calendar where you want to add event bookings.")), o("div", { key: "5e1a567a288e5cba6c02fc2aa978083b650e20c8", class: "content", part: "npbc__content" }, o("form", { key: "e9e481d8ec1b04f07fd401287217921c3b4489f4", ref: (e) => this.bookingCalendarsFormRef = e }, this.participantCalendars && Object.keys(this.participantCalendars).map((e, t) => {
|
|
4653
4645
|
const n = this.selectedCalendars[e], a = this.participantCalendars[e];
|
|
4654
4646
|
if (!(!n || !n.name))
|
|
4655
|
-
return o("div", { class: "participant-container", part: "npbc__participant-container", key: `participant-conatiner-${t}` }, o("div", { class: "participant-title", part: "npbc__participant-title" }, o("p", null,
|
|
4647
|
+
return o("div", { class: "participant-container", part: "npbc__participant-container", key: `participant-conatiner-${t}` }, o("div", { class: "participant-title", part: "npbc__participant-title" }, o("p", null, n.name, "'s booking calendar"), o("div", { class: "participant-toggle", part: "npbc__participant-toggle--container" }, o("span", { class: `chevron ${n.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
4656
4648
|
this.selectedCalendars[e].isOpen = !n.isOpen, this.selectedCalendars = { ...this.selectedCalendars };
|
|
4657
4649
|
} }, o("chevron-icon", { width: "24", height: "24" })))), n.isOpen && o("nylas-booking-calendar-picker", { key: e, name: `participant-booking-${e}`, calendars: a, hideHeader: !0, defaultBookingCalendar: this.participantDefaultSelectedCalendar[e] }));
|
|
4658
4650
|
})))));
|
|
@@ -4674,7 +4666,7 @@ const ua = class {
|
|
|
4674
4666
|
}
|
|
4675
4667
|
};
|
|
4676
4668
|
ys([
|
|
4677
|
-
|
|
4669
|
+
T({
|
|
4678
4670
|
name: "nylas-participant-booking-calendars",
|
|
4679
4671
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4680
4672
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -4704,7 +4696,7 @@ var vs = function(e, t, n, a) {
|
|
|
4704
4696
|
};
|
|
4705
4697
|
const ha = class {
|
|
4706
4698
|
constructor(e) {
|
|
4707
|
-
_(this, e), this.valueChanged =
|
|
4699
|
+
_(this, e), this.valueChanged = I(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 = void 0, this.selectedParticipants = this.setParticipants(this.participants);
|
|
4708
4700
|
}
|
|
4709
4701
|
elementNameChangedHandler(e) {
|
|
4710
4702
|
d("nylas-participants-custom-availability", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4764,11 +4756,11 @@ const ha = class {
|
|
|
4764
4756
|
}), t;
|
|
4765
4757
|
}
|
|
4766
4758
|
render() {
|
|
4767
|
-
return o(H, { key: "
|
|
4759
|
+
return o(H, { key: "11a55f0d4f9e33c257d2272f2c30afb500dd005c" }, o("div", { key: "23f16202a99e9c0551330aaa05ec03abfeac8b4a", class: "nylas-participants-custom-availability", part: "npca" }, o("div", { key: "5b01e5fb911c594da4265cae684c7fc5db74808c", class: "header", part: "npca__header" }, o("h3", { key: "ae319d59e0cb97ff1952189d008ee61cf24f6bc6" }, "Participant open hours"), o("p", { key: "c209bf29faa2a6fb87de148a2441290acadef48a" }, "If not set, Nylas uses the default open hours for this participant.")), o("div", { key: "f11a720cce2b18d208454593dafa12c3845b7642", class: "content", part: "npca__content" }, o("form", { key: "a6e7df9301c870d9c5de9a55c4c1ee23ffa8c76a", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, t) => {
|
|
4768
4760
|
var a, s;
|
|
4769
4761
|
const n = this.selectedParticipants[e];
|
|
4770
4762
|
if (!(!n || !n.name || !n.availability))
|
|
4771
|
-
return o("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${t}` }, o("div", { class: "participant-title", part: "npca__participant-title" }, o("p", null,
|
|
4763
|
+
return o("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${t}` }, o("div", { class: "participant-title", part: "npca__participant-title" }, o("p", null, n.name, "'s open hours"), o("div", { class: "participant-toggle", part: "npca__participant-toggle--container" }, o("toggle-switch", { exportparts: "ts_label: npca__toggle-label, ts_input: npca_toggle-input, ts_slider: npca_toggle-slider", name: e, checked: !!n.openHours && n.openHours.length > 0 }), o("span", { class: `chevron ${n.isOpen ? "open" : "closed"} ${n.setCustom ? "" : "disabled"}`, onClick: () => {
|
|
4772
4764
|
n.setCustom && (this.selectedParticipants[e].isOpen = !n.isOpen, this.selectedParticipants = { ...this.selectedParticipants });
|
|
4773
4765
|
} }, o("chevron-icon", { width: "24", height: "24" })))), n.isOpen && o("nylas-availability-picker", { key: t, name: `participant-${t}-${e}`, openHours: n.openHours, defaultTimezone: (s = (a = n.openHours) == null ? void 0 : a[0]) == null ? void 0 : s.timezone, hideHeader: !0 }));
|
|
4774
4766
|
})))));
|
|
@@ -4788,7 +4780,7 @@ const ha = class {
|
|
|
4788
4780
|
}
|
|
4789
4781
|
};
|
|
4790
4782
|
vs([
|
|
4791
|
-
|
|
4783
|
+
T({
|
|
4792
4784
|
name: "nylas-participants-custom-availability",
|
|
4793
4785
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
4794
4786
|
eventToProps: {},
|
|
@@ -4814,7 +4806,7 @@ var ws = function(e, t, n, a) {
|
|
|
4814
4806
|
};
|
|
4815
4807
|
const ma = class {
|
|
4816
4808
|
constructor(e) {
|
|
4817
|
-
_(this, e), this.valueChanged =
|
|
4809
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "availability-method", this.selectedConfiguration = void 0, this.participantOptions = void 0, this.readOnly = !1, this.selectedBookingType = "";
|
|
4818
4810
|
}
|
|
4819
4811
|
connectedCallback() {
|
|
4820
4812
|
d("nylas-scheduling-method", "connectedCallback");
|
|
@@ -4858,10 +4850,10 @@ const ma = class {
|
|
|
4858
4850
|
var a, s, i, l, r, c;
|
|
4859
4851
|
const e = [
|
|
4860
4852
|
{ label: "Standard booking", value: "collective" },
|
|
4861
|
-
{ label: "Round-robin
|
|
4862
|
-
{ label: "Round-robin
|
|
4853
|
+
{ label: "Round-robin max fairness", value: "max-fairness" },
|
|
4854
|
+
{ label: "Round-robin max availability", value: "max-availability" }
|
|
4863
4855
|
], t = (l = (i = (s = (a = this.selectedConfiguration) == null ? void 0 : a.availability) == null ? void 0 : s.availability_rules) == null ? void 0 : i.availability_method) == null ? void 0 : l.toString(), n = 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;
|
|
4864
|
-
return (t || !n) && !this.readOnly ? null : o(H, null, o("div", { class: "nylas-scheduling-method", part: "nsm" }, o("div", { class: "header", part: "nsm__header" }, o("h3", null, "Scheduling method")), o("div", { class: "nylas-scheduling-method__dropdown" }, o("span", { class: "nylas-scheduling-method__dropdown-label" }, "
|
|
4856
|
+
return (t || !n) && !this.readOnly ? null : o(H, null, o("div", { class: "nylas-scheduling-method", part: "nsm" }, o("div", { class: "header", part: "nsm__header" }, o("h3", null, "Scheduling method")), o("div", { class: "nylas-scheduling-method__dropdown" }, o("span", { class: "nylas-scheduling-method__dropdown-label" }, "Select a scheduling method for the event.", o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, o("strong", null, "Standard Booking"), o("br", null), "- Allows 1:1 bookings, or n:1 bookings with additional participants.", o("br", null), o("br", null), o("strong", null, "Round-Robin Maximize Fairness"), o("br", null), "- Rotates through the list of participants you select, displaying the participant with the fewest recent bookings.", o("br", null), o("br", null), o("strong", null, "Round-Robin Maximize Availability"), o("br", null), "- Rotates through the list of participants you select, prioritizing participants with the fewest recent bookings, but making as many time-slots available as possible.", o("br", null)))), this.readOnly ? o("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: ((c = e.find((p) => p.value == t)) == null ? void 0 : c.label) ?? e[0].label }) : o("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((p) => p.value == t) ?? e[0] }))));
|
|
4865
4857
|
}
|
|
4866
4858
|
static get formAssociated() {
|
|
4867
4859
|
return !0;
|
|
@@ -4876,7 +4868,7 @@ const ma = class {
|
|
|
4876
4868
|
}
|
|
4877
4869
|
};
|
|
4878
4870
|
ws([
|
|
4879
|
-
|
|
4871
|
+
T({
|
|
4880
4872
|
name: "nylas-scheduling-method",
|
|
4881
4873
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4882
4874
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4895,7 +4887,7 @@ ws([
|
|
|
4895
4887
|
Qt("design:returntype", void 0)
|
|
4896
4888
|
], ma.prototype, "render", null);
|
|
4897
4889
|
ma.style = Cs;
|
|
4898
|
-
const
|
|
4890
|
+
const xs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-timeslot-interval{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-timeslot-interval .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-timeslot-interval .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown span.label tooltip-component{display:flex}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown{margin-bottom:1.5rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-timeslot-interval .nylas-timeslot-interval__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', ks = xs;
|
|
4899
4891
|
var Es = function(e, t, n, a) {
|
|
4900
4892
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, l;
|
|
4901
4893
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -4911,7 +4903,7 @@ var Es = function(e, t, n, a) {
|
|
|
4911
4903
|
const at = 15, ya = class {
|
|
4912
4904
|
constructor(e) {
|
|
4913
4905
|
var t, n, a, s, i, l;
|
|
4914
|
-
_(this, e), this.valueChanged =
|
|
4906
|
+
_(this, e), this.valueChanged = I(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = (n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.duration_minutes, this.defaultIntervalMinutes = ((s = (a = this.selectedConfiguration) == null ? void 0 : a.availability) == null ? void 0 : s.interval_minutes) ?? this.eventDurationMinutes ?? 10, this.defaultRoundTo = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : l.round_to) ?? void 0, this.selectedInterval = this.defaultIntervalMinutes, this.selectedRoundTo = !!(this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes);
|
|
4915
4907
|
}
|
|
4916
4908
|
elementNameChangedHandler(e) {
|
|
4917
4909
|
d("nylas-timeslot-interval", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -4973,7 +4965,7 @@ const at = 15, ya = class {
|
|
|
4973
4965
|
{ value: "45", label: "45 mins" },
|
|
4974
4966
|
{ value: "60", label: "60 mins" }
|
|
4975
4967
|
];
|
|
4976
|
-
return o(H, { key: "
|
|
4968
|
+
return o(H, { key: "22ccbc0780d15a7c730d034532246d2f72aeec0e" }, o("div", { key: "3b0a93a43c98bc54b9dc82a0ee11c3d19a26f4d3", class: "nylas-timeslot-interval", part: "nti" }, o("div", { key: "6dab14c4fff32d17bbc95f7232245e24251cf754", class: "header", part: "nti__header" }, o("h3", { key: "5f574f0ca900fa2842cbab826154d5d301a0f832" }, "Time slot settings")), o("div", { key: "9188d6bc5df98bd45051e091f450700c28e3cbab", class: "nylas-timeslot-interval__dropdown" }, o("span", { key: "f932692754db0e29abc5c8ea7d2028e3a94969b3", class: "label", part: "nti__input-label" }, "Time slot interval."), o("select-dropdown", { key: "7277ff12ec723bfa47c00e92168db5b751dbeb7c", name: "booking-calendar", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: this.defaultIntervalMinutes == this.eventDurationMinutes ? e[0] : e.find((t) => t.value == this.defaultIntervalMinutes.toString()) ?? e[0] }), o("span", { key: "7ee7314f1572e41be904047ab6f62c86e235cb0e", slot: "label", class: "label", part: "nti__input-label" }, "Time slot rounding type", o("tooltip-component", { key: "9b94fd8dd34b202f7d987a47a4146b12ee6c6a41" }, o("info-icon", { key: "71249af344559129a249c06598a35d1ed4310aba", slot: "tooltip-icon" }), o("span", { key: "6d6a4555d4306d3ffd48415384616a37d317ad1d", slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), o("radio-button-group", { key: "0fb06fad4b4b729ee9f8880abd6d9950ae7091fa", name: "interval-preference", defaultSelectedValue: this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes ? "rounding" : "no-rounding", options: [
|
|
4977
4969
|
{ value: "no-rounding", label: "Default", description: "Time slots will be rounded to the nearest quarter-hour." },
|
|
4978
4970
|
{
|
|
4979
4971
|
value: "rounding",
|
|
@@ -4996,7 +4988,7 @@ const at = 15, ya = class {
|
|
|
4996
4988
|
}
|
|
4997
4989
|
};
|
|
4998
4990
|
Es([
|
|
4999
|
-
|
|
4991
|
+
T({
|
|
5000
4992
|
name: "nylas-timeslot-interval",
|
|
5001
4993
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
5002
4994
|
fireRegisterEvent: !0
|
|
@@ -5005,37 +4997,37 @@ Es([
|
|
|
5005
4997
|
en("design:paramtypes", []),
|
|
5006
4998
|
en("design:returntype", void 0)
|
|
5007
4999
|
], ya.prototype, "render", null);
|
|
5008
|
-
ya.style =
|
|
5000
|
+
ya.style = ks;
|
|
5009
5001
|
const Ss = ".sc-paintbrush-fill-icon-h{display:flex}", Ds = Ss, Os = class {
|
|
5010
5002
|
constructor(e) {
|
|
5011
5003
|
_(this, e), this.width = "16", this.height = "13";
|
|
5012
5004
|
}
|
|
5013
5005
|
render() {
|
|
5014
|
-
return o("svg", { key: "
|
|
5006
|
+
return o("svg", { key: "f3ca93921931fcc8d1ddb340365ef064e319e43e", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "14bd9864b04e0671d4bbb2345fa8a0c1ac08a3af", 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" }));
|
|
5015
5007
|
}
|
|
5016
5008
|
};
|
|
5017
5009
|
Os.style = Ds;
|
|
5018
|
-
const Hs = ".sc-paintbrush-icon-h{display:flex}",
|
|
5010
|
+
const Hs = ".sc-paintbrush-icon-h{display:flex}", Ts = Hs, Is = class {
|
|
5019
5011
|
constructor(e) {
|
|
5020
5012
|
_(this, e), this.width = "16", this.height = "13";
|
|
5021
5013
|
}
|
|
5022
5014
|
render() {
|
|
5023
|
-
return o("svg", { key: "
|
|
5015
|
+
return o("svg", { key: "fa2a6b6cfb82523456bcd8bd449b4bfcc948cbba", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "dbf728f97aff8b9b003e63c23d594d789c561deb", 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" }));
|
|
5024
5016
|
}
|
|
5025
5017
|
};
|
|
5026
|
-
|
|
5018
|
+
Is.style = Ts;
|
|
5027
5019
|
const $s = ".sc-people-icon-h{display:flex}", Ns = $s, Fs = class {
|
|
5028
5020
|
constructor(e) {
|
|
5029
5021
|
_(this, e), this.width = "20", this.height = "20";
|
|
5030
5022
|
}
|
|
5031
5023
|
render() {
|
|
5032
|
-
return o("svg", { key: "
|
|
5024
|
+
return o("svg", { key: "a0dea2880480265ce7c3d7142c1200779232ed23", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, o("path", { key: "0c124cb2004e6ebe12908a6193c20cdaa786ffde", 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" }));
|
|
5033
5025
|
}
|
|
5034
5026
|
};
|
|
5035
5027
|
Fs.style = Ns;
|
|
5036
5028
|
const As = '.switch{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-300);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:"";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}', Ls = As, Ps = class {
|
|
5037
5029
|
constructor(e) {
|
|
5038
|
-
_(this, e), this.nylasFormSwitchToggled =
|
|
5030
|
+
_(this, e), this.nylasFormSwitchToggled = I(this, "nylasFormSwitchToggled", 7), this.name = "toggle-switch", this.checked = !1, this.label = "", this.isChecked = this.checked;
|
|
5039
5031
|
}
|
|
5040
5032
|
componentWillLoad() {
|
|
5041
5033
|
this.isChecked = this.checked;
|
|
@@ -5048,7 +5040,7 @@ const As = '.switch{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-
|
|
|
5048
5040
|
});
|
|
5049
5041
|
}
|
|
5050
5042
|
render() {
|
|
5051
|
-
return o("label", { key: "
|
|
5043
|
+
return o("label", { key: "850277bfe5630a073276f709f14a88b7a26a284a", class: "switch", part: "ts_label" }, o("input", { key: "fe20447ef8bd5cff2ca8c01350cce5caef09c1de", type: "checkbox", part: "ts_input", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), o("div", { key: "a5f46bc08090eebc23f05e1ffc2ededfe178d269", class: "slider round", part: "ts_slider" }));
|
|
5052
5044
|
}
|
|
5053
5045
|
};
|
|
5054
5046
|
Ps.style = Ls;
|
|
@@ -5057,7 +5049,7 @@ const Ms = ".sc-zoom-icon-h{display:flex}", Rs = Ms, zs = class {
|
|
|
5057
5049
|
_(this, e), this.width = "20", this.height = "20";
|
|
5058
5050
|
}
|
|
5059
5051
|
render() {
|
|
5060
|
-
return o("svg", { key: "
|
|
5052
|
+
return o("svg", { key: "0d7be2417b473b2208fab6bd14cc0b1c3249d373", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "b4c1f67b4863f44316e91d3af811963869cac289", 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)" }), o("path", { key: "1eb1809a2158e33eee45af14e127a01f60704756", 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" }), o("defs", { key: "030802ea41598e198cf6e031779a5dafd4754513" }, o("linearGradient", { key: "5ed65d84994dcca07b903aa89560ce5b5c6b40b2", id: "paint0_linear_22_6272", x1: "10", y1: "19.9954", x2: "10", y2: "-0.00455379", gradientUnits: "userSpaceOnUse" }, o("stop", { key: "72c7b5d35efe3638eb6c3ddd68380baf808412ec", "stop-color": "#003FAE" }), o("stop", { key: "7149854f65e65d95a363a8a797a2ebebe5ffc0ad", offset: "0.02", "stop-color": "#0142B7" }), o("stop", { key: "54249991af36896ebd9e63b7aa85eaf6dd70201d", offset: "0.09", "stop-color": "#044BD1" }), o("stop", { key: "289d8aa929a3dfbe0fab3c579c2db79eb160c3b1", offset: "0.16", "stop-color": "#0752E5" }), o("stop", { key: "4ccbc094af89aebfe3a06a75389bfde5ecd3a135", offset: "0.24", "stop-color": "#0958F4" }), o("stop", { key: "abcc6dfe887188a7e8b14002776c66a13a08e176", offset: "0.34", "stop-color": "#0A5BFC" }), o("stop", { key: "49c73ef3601abefcdfe692b9bfa2f3e35515b8e6", offset: "0.5", "stop-color": "#0B5CFF" }))));
|
|
5061
5053
|
}
|
|
5062
5054
|
};
|
|
5063
5055
|
zs.style = Rs;
|
|
@@ -5077,8 +5069,8 @@ export {
|
|
|
5077
5069
|
ri as location_off_icon,
|
|
5078
5070
|
pi as microsoft_teams_icon,
|
|
5079
5071
|
Hn as nylas_additional_participants,
|
|
5080
|
-
|
|
5081
|
-
|
|
5072
|
+
Tn as nylas_availability_picker,
|
|
5073
|
+
In as nylas_booking_calendar_picker,
|
|
5082
5074
|
$n as nylas_booking_confirmation_redirect,
|
|
5083
5075
|
Nn as nylas_booking_confirmation_type,
|
|
5084
5076
|
qn as nylas_booking_form_config,
|
|
@@ -5106,7 +5098,7 @@ export {
|
|
|
5106
5098
|
ma as nylas_scheduling_method,
|
|
5107
5099
|
ya as nylas_timeslot_interval,
|
|
5108
5100
|
Os as paintbrush_fill_icon,
|
|
5109
|
-
|
|
5101
|
+
Is as paintbrush_icon,
|
|
5110
5102
|
Fs as people_icon,
|
|
5111
5103
|
Ps as toggle_switch,
|
|
5112
5104
|
zs as zoom_icon
|