@nylas/react 1.1.0-canary.14 → 1.1.0-canary.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add-circle-icon_2.entry-00dc2c13.cjs +1 -0
- package/dist/add-circle-icon_2.entry-3f834b47.js +26 -0
- package/dist/{archive-icon_7.entry-60311199.cjs → archive-icon_7.entry-25d8b2f0.cjs} +1 -1
- package/dist/{archive-icon_7.entry-0dfc9782.js → archive-icon_7.entry-ca8262ff.js} +15 -15
- package/dist/{arrow-icon.entry-eb53c4cb.cjs → arrow-icon.entry-01192ecf.cjs} +1 -1
- package/dist/{arrow-icon.entry-f38f3014.js → arrow-icon.entry-991ba7cd.js} +2 -2
- package/dist/{bold-icon_3.entry-20e74265.js → bold-icon_3.entry-81a3ff1e.js} +10 -10
- package/dist/{bold-icon_3.entry-d5100ffa.cjs → bold-icon_3.entry-e94dcf5b.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-e5d1bc0a.cjs → calendar-cancel-icon.entry-9088fa8b.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-0bdee178.js → calendar-cancel-icon.entry-f646c147.js} +5 -5
- package/dist/{calendar-check-icon_2.entry-10af2017.cjs → calendar-check-icon_2.entry-4dc1391a.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-f18a2ddb.js → calendar-check-icon_2.entry-a7e4d0e6.js} +7 -7
- package/dist/{calendar-icon.entry-12ca0ae4.js → calendar-icon.entry-1658930c.js} +2 -2
- package/dist/{calendar-icon.entry-bc6f0808.cjs → calendar-icon.entry-1e2acd5c.cjs} +1 -1
- package/dist/{add-circle-icon_22.entry-ab0d5ede.js → calendar-info-icon_25.entry-493c5547.js} +966 -704
- package/dist/calendar-info-icon_25.entry-7513d798.cjs +1 -0
- package/dist/chevron-icon_3.entry-52b97043.cjs +1 -0
- package/dist/chevron-icon_3.entry-b3c7eb44.js +126 -0
- package/dist/{clock-icon_2.entry-ffc9e057.js → clock-icon_2.entry-58f07042.js} +3 -3
- package/dist/{clock-icon_2.entry-7cddf901.cjs → clock-icon_2.entry-882249ee.cjs} +1 -1
- package/dist/close-icon.entry-4a39816a.js +15 -0
- package/dist/close-icon.entry-f1166251.cjs +1 -0
- package/dist/{constants-f34b9c6e-108993e8.cjs → constants-f34b9c6e-1da5094b.cjs} +1 -1
- package/dist/{constants-f34b9c6e-37cabe82.js → constants-f34b9c6e-628beaa8.js} +1 -1
- package/dist/{document-refresh-icon.entry-d1f6259a.cjs → document-refresh-icon.entry-4f581bf4.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-e4636c8e.js → document-refresh-icon.entry-b53316b4.js} +2 -2
- package/dist/elements/index.d.ts +9 -0
- package/dist/{elements-dc5b338e-a37a0510.cjs → elements-dc5b338e-3284591d.cjs} +1 -1
- package/dist/{elements-dc5b338e-c6f2806c.js → elements-dc5b338e-7abe37c6.js} +1 -1
- package/dist/{focus-visible-e8093c16-b62197ad.cjs → focus-visible-e8093c16-cb6c97b1.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-b0821d89.js → focus-visible-e8093c16-d6612604.js} +1 -1
- package/dist/{forward-icon_6.entry-2a694e7c.js → forward-icon_6.entry-d54244f7.js} +9 -9
- package/dist/{forward-icon_6.entry-b81b22f6.cjs → forward-icon_6.entry-e402ad1e.cjs} +2 -2
- package/dist/{globe-icon.entry-c037589b.cjs → globe-icon.entry-db7377d9.cjs} +1 -1
- package/dist/{globe-icon.entry-e794eb52.js → globe-icon.entry-e83c79c2.js} +4 -4
- package/dist/google-logo-icon_4.entry-8818686b.js +429 -0
- package/dist/google-logo-icon_4.entry-fa65ae29.cjs +1 -0
- package/dist/{index-d61429c6.js → index-2d032bec.js} +1288 -1265
- package/dist/index-53420959-41ed02ae.js +5 -0
- package/dist/index-53420959-a76f0327.cjs +1 -0
- package/dist/{index-ef01c714-1e2feefc.js → index-6d9eeb53-91d36348.js} +2 -2
- package/dist/{index-ef01c714-54e17405.cjs → index-6d9eeb53-f478270c.cjs} +1 -1
- package/dist/index-9c04361d.cjs +42 -0
- package/dist/{index.es-74f70f7d-a22eba35.cjs → index.es-9cc0eb3c-2242baf6.cjs} +1 -1
- package/dist/{index.es-74f70f7d-da0e7fcf.js → index.es-9cc0eb3c-ee2ebbe1.js} +1 -1
- package/dist/{info-icon_2.entry-23e3fa8a.cjs → info-icon_2.entry-4b257e73.cjs} +1 -1
- package/dist/{info-icon_2.entry-647915bb.js → info-icon_2.entry-74eb7415.js} +5 -5
- package/dist/input-component.entry-3ef7ce2c.cjs +1 -0
- package/dist/input-component.entry-6bb4a5e8.js +45 -0
- package/dist/input-dropdown_2.entry-a87714fc.cjs +1 -0
- package/dist/input-dropdown_2.entry-f71e4c01.js +209 -0
- package/dist/{loading-icon.entry-1ddd0244.js → loading-icon.entry-30724cb0.js} +2 -2
- package/dist/{loading-icon.entry-98d65a5d.cjs → loading-icon.entry-bb250f1c.cjs} +1 -1
- package/dist/{mailbox-store-050a2914-6fef25fb.js → mailbox-store-64b4ef7c-202f1afd.js} +2 -2
- package/dist/{mailbox-store-050a2914-bd0a86bb.cjs → mailbox-store-64b4ef7c-74f959be.cjs} +1 -1
- package/dist/{nylas-additional-participants.entry-3c598863.cjs → nylas-additional-participants.entry-567c7c2a.cjs} +1 -1
- package/dist/{nylas-additional-participants.entry-0f93e24e.js → nylas-additional-participants.entry-7961be04.js} +5 -5
- package/dist/nylas-booked-event-card_10.entry-c2f889ba.cjs +1 -0
- package/dist/{nylas-booked-event-card_10.entry-9f7869af.js → nylas-booked-event-card_10.entry-ddfcff5e.js} +371 -299
- package/dist/{nylas-custom-booking-flow.entry-877cac85.cjs → nylas-custom-booking-flow.entry-63ed387e.cjs} +1 -1
- package/dist/{nylas-custom-booking-flow.entry-69638c50.js → nylas-custom-booking-flow.entry-a1f66d05.js} +10 -10
- package/dist/{nylas-form-card.entry-4349d07d.cjs → nylas-form-card.entry-6fece0ff.cjs} +1 -1
- package/dist/{nylas-form-card.entry-b2da5266.js → nylas-form-card.entry-ea1153b9.js} +11 -11
- package/dist/{nylas-if-state.entry-62474acb.js → nylas-if-state.entry-05f8f66f.js} +3 -3
- package/dist/{nylas-if-state.entry-9eade180.cjs → nylas-if-state.entry-b75320f0.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-348a784b.js → nylas-list-folders.entry-bd5a1b1d.js} +7 -7
- package/dist/{nylas-list-folders.entry-b32ec92a.cjs → nylas-list-folders.entry-edc61b97.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-7e8044b2.cjs → nylas-list-threads.entry-79ad0944.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-ec1c5fb6.js → nylas-list-threads.entry-f3cd80de.js} +3 -3
- package/dist/{nylas-login.entry-0495d0b5.cjs → nylas-login.entry-68873357.cjs} +1 -1
- package/dist/{nylas-login.entry-f6f1e306.js → nylas-login.entry-b3207e82.js} +7 -7
- package/dist/{nylas-mailbox-pagination.entry-24c82c53.js → nylas-mailbox-pagination.entry-22c5b9ca.js} +2 -2
- package/dist/{nylas-mailbox-pagination.entry-22385ead.cjs → nylas-mailbox-pagination.entry-2ef5b88a.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-b13b2a58.js → nylas-mailbox-toolbar-button.entry-95bb58b5.js} +9 -9
- package/dist/{nylas-mailbox-toolbar-button.entry-e8e52474.cjs → nylas-mailbox-toolbar-button.entry-f2fa3a8e.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-77f4c37e.cjs → nylas-mailbox.entry-4b1d320f.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-0365fbb0.js → nylas-mailbox.entry-4ef7d18d.js} +6 -6
- package/dist/{nylas-provider.entry-11239372.js → nylas-provider.entry-7f7e098a.js} +6 -6
- package/dist/{nylas-provider.entry-d454a4d1.cjs → nylas-provider.entry-b629340a.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-16473950.cjs → nylas-scheduler-editor.entry-19a29c4c.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-c4d38853.js → nylas-scheduler-editor.entry-2d19593f.js} +13 -7
- package/dist/nylas-scheduling.entry-70454242.cjs +1 -0
- package/dist/{nylas-scheduling.entry-cc2535a9.js → nylas-scheduling.entry-753cb746.js} +61 -61
- package/dist/{nylas-threads-refresh.entry-725ef87d.cjs → nylas-threads-refresh.entry-0a832631.cjs} +1 -1
- package/dist/{nylas-threads-refresh.entry-5a6378fe.js → nylas-threads-refresh.entry-5a774ad7.js} +4 -4
- package/dist/{nylas-threads-search.entry-5e7b6a03.js → nylas-threads-search.entry-451c6d5c.js} +9 -9
- package/dist/nylas-threads-search.entry-5b57688b.cjs +1 -0
- package/dist/{nylas-view-thread.entry-98f8e35b.cjs → nylas-view-thread.entry-7b273955.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-249f0b65.js → nylas-view-thread.entry-e0af8998.js} +3 -3
- package/dist/{people-icon.entry-0ab4b752.cjs → people-icon.entry-c7fb7f6c.cjs} +1 -1
- package/dist/{people-icon.entry-0ed95db0.js → people-icon.entry-de3fada0.js} +6 -6
- package/dist/{play-icon_2.entry-433a8722.js → play-icon_2.entry-58592b64.js} +5 -5
- package/dist/play-icon_2.entry-5b22a7ca.cjs +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +98 -89
- package/dist/{refresh-icon.entry-508a246d.cjs → refresh-icon.entry-876b8aea.cjs} +1 -1
- package/dist/{refresh-icon.entry-b5bee0f4.js → refresh-icon.entry-90756bc6.js} +4 -4
- package/dist/{register-component-e4dc8778-7812a275.cjs → register-component-a5a9ca5d-1fbb27d2.cjs} +1 -1
- package/dist/{register-component-e4dc8778-53fe0729.js → register-component-a5a9ca5d-8bede801.js} +1 -1
- package/dist/{scheduler-config-store-ec3b6190-435c84ca.cjs → scheduler-config-store-ec3b6190-104df545.cjs} +1 -1
- package/dist/{scheduler-config-store-ec3b6190-01892765.js → scheduler-config-store-ec3b6190-cbc40d60.js} +1 -1
- package/dist/scheduler-store-f02ce045-1d93c571.js +390 -0
- package/dist/scheduler-store-f02ce045-712c600c.cjs +1 -0
- package/dist/textarea-component.entry-3ea161d6.js +35 -0
- package/dist/textarea-component.entry-9d6b5cdc.cjs +1 -0
- package/dist/toggle-switch.entry-10aa0c1a.cjs +1 -0
- package/dist/toggle-switch.entry-a08c1027.js +25 -0
- package/dist/{translate-icon.entry-f77cfd3d.cjs → translate-icon.entry-04dde6b1.cjs} +1 -1
- package/dist/{translate-icon.entry-c34bad94.js → translate-icon.entry-be9c3401.js} +6 -6
- package/dist/{warning-icon.entry-f781a623.js → warning-icon.entry-347d77af.js} +5 -5
- package/dist/{warning-icon.entry-f73b31bf.cjs → warning-icon.entry-84121a43.cjs} +1 -1
- package/package.json +3 -3
- package/dist/add-circle-icon_22.entry-c165f0de.cjs +0 -1
- package/dist/chevron-icon_3.entry-55eb864f.js +0 -117
- package/dist/chevron-icon_3.entry-a18c373d.cjs +0 -1
- package/dist/close-icon.entry-7c67181c.js +0 -15
- package/dist/close-icon.entry-918dd254.cjs +0 -1
- package/dist/google-logo-icon_4.entry-748af8c3.cjs +0 -1
- package/dist/google-logo-icon_4.entry-b4464873.js +0 -393
- package/dist/index-53420959-31867ccf.js +0 -5
- package/dist/index-53420959-535906ce.cjs +0 -1
- package/dist/index-6a4ee4f8.cjs +0 -42
- package/dist/nylas-booked-event-card_10.entry-912e4a89.cjs +0 -1
- package/dist/nylas-scheduling.entry-5b156a28.cjs +0 -1
- package/dist/nylas-threads-search.entry-a2553cbe.cjs +0 -1
- package/dist/play-icon_2.entry-f9c0b647.cjs +0 -1
- package/dist/scheduler-store-04e15f8a-5d06eaf3.cjs +0 -1
- package/dist/scheduler-store-04e15f8a-69eb8d7a.js +0 -376
- package/dist/time-period-selector.entry-77a6debf.cjs +0 -1
- package/dist/time-period-selector.entry-a29c8ffa.js +0 -76
package/dist/{add-circle-icon_22.entry-ab0d5ede.js → calendar-info-icon_25.entry-493c5547.js}
RENAMED
|
@@ -1,192 +1,77 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { R as C } from "./register-component-
|
|
3
|
-
import { T as
|
|
4
|
-
import { s as
|
|
5
|
-
import "./index-53420959-
|
|
1
|
+
import { r as b, h as a, c as k, d, H as _, g as w, G as W, I as N, J as Ce, K as Oe, L as Qe, i as Xe, M as Z, O as se, P as le, Q as Te, R as Ie, S as U, T as et } from "./index-2d032bec.js";
|
|
2
|
+
import { R as C } from "./register-component-a5a9ca5d-8bede801.js";
|
|
3
|
+
import { T as De, E as Se } from "./constants-f34b9c6e-628beaa8.js";
|
|
4
|
+
import { s as V } from "./index-6d9eeb53-91d36348.js";
|
|
5
|
+
import "./index-53420959-41ed02ae.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
const
|
|
8
|
+
const tt = ".sc-calendar-info-icon-h{display:flex}", nt = tt, at = class {
|
|
9
9
|
constructor(e) {
|
|
10
|
-
|
|
10
|
+
b(this, e), this.width = "20", this.height = "20";
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
Ve.style = Ye;
|
|
17
|
-
const qe = "button.sc-button-component{height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}", Je = qe, Ge = class {
|
|
18
|
-
constructor(e) {
|
|
19
|
-
m(this, e), this.variant = "primary", this.disabled = !1, this.type = "button", this.clickHandler = void 0, this.mouseOverHandler = void 0, this.mouseOutHandler = void 0, this.focusHandler = void 0, this.blurHandler = void 0;
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const e = `button-${this.variant}` + (this.disabled ? " disabled" : "");
|
|
23
|
-
return i("button", { key: "b5d5ab5f387a6159524e0981e0b15f2594096130", class: e, disabled: this.disabled, type: "type", onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, i("slot", { key: "d3d7ec151854d1164f8699b57fee9998eb9e2039" }));
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
Ge.style = Je;
|
|
27
|
-
const Xe = ".sc-calendar-info-icon-h{display:flex}", Qe = Xe, et = class {
|
|
28
|
-
constructor(e) {
|
|
29
|
-
m(this, e), this.width = "20", this.height = "20";
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return i("svg", { key: "70a80808372e537f9e317ba568922f503d2fa358", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "f06b4115c72ac00183bfd9b7d9610608790ad051", 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" }));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
et.style = Qe;
|
|
36
|
-
const tt = ".sc-calendar-patterns-icon-h{display:flex}", nt = tt, at = class {
|
|
37
|
-
constructor(e) {
|
|
38
|
-
m(this, e), this.width = "20", this.height = "20";
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return i("svg", { key: "34186e64e6fa5e330d4c3cc027451c9aab4c4330", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "4f3c46e550436f3e9723af7f1bf96302cbe3d052", 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" }));
|
|
13
|
+
return a("svg", { key: "4627a1bd7409bf86d6e987334411a7791cced94d", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "0ac301e5d6ecc7f616f2e4efe4bc58a492b5d6c2", 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" }));
|
|
42
14
|
}
|
|
43
15
|
};
|
|
44
16
|
at.style = nt;
|
|
45
|
-
const it = ".sc-
|
|
17
|
+
const it = ".sc-calendar-patterns-icon-h{display:flex}", st = it, lt = class {
|
|
46
18
|
constructor(e) {
|
|
47
|
-
|
|
19
|
+
b(this, e), this.width = "20", this.height = "20";
|
|
48
20
|
}
|
|
49
21
|
render() {
|
|
50
|
-
return
|
|
22
|
+
return a("svg", { key: "51194c3d75fbd584a92f542e1577cd42d02220ea", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "4c59913ad1970a360ae9cd8e69551131e66fc00e", 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" }));
|
|
51
23
|
}
|
|
52
24
|
};
|
|
53
|
-
|
|
54
|
-
const
|
|
25
|
+
lt.style = st;
|
|
26
|
+
const ot = 'label{--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:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', rt = ot, dt = class {
|
|
55
27
|
constructor(e) {
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
optionsChangedHandler(e, t) {
|
|
59
|
-
e !== t && (this.filteredOptions = e);
|
|
60
|
-
}
|
|
61
|
-
defaultSelectedOptionChangedHandler(e, t) {
|
|
62
|
-
e.label !== t.label && (this.selectedOption = e);
|
|
28
|
+
b(this, e), this.nylasFormCheckboxToggled = k(this, "nylasFormCheckboxToggled", 7), this.name = "checkbox", this.checked = !1, this.label = "", this.isChecked = this.checked;
|
|
63
29
|
}
|
|
64
30
|
componentWillLoad() {
|
|
65
|
-
this.
|
|
31
|
+
this.isChecked = this.checked;
|
|
66
32
|
}
|
|
67
|
-
|
|
68
|
-
this.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
value: e.value,
|
|
73
|
-
name: this.name
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
handleOnInput(e) {
|
|
77
|
-
const t = e.target.value, n = this.options.findIndex((a) => a.label.toLowerCase().includes(t.toLowerCase()));
|
|
78
|
-
n > -1 && this.scrollToViewWithinParent(n), this.inputOptionChanged.emit({
|
|
79
|
-
value: t,
|
|
80
|
-
name: this.name
|
|
33
|
+
toggleCheck() {
|
|
34
|
+
this.isChecked = !this.isChecked, this.nylasFormCheckboxToggled.emit({
|
|
35
|
+
checked: this.isChecked,
|
|
36
|
+
name: this.name,
|
|
37
|
+
label: this.label
|
|
81
38
|
});
|
|
82
39
|
}
|
|
83
|
-
scrollToViewWithinParent(e) {
|
|
84
|
-
var l;
|
|
85
|
-
const t = this.options[e], n = (l = this.el.shadowRoot) == null ? void 0 : l.getElementById(t.value.toString()), a = this.optionsRef;
|
|
86
|
-
this.ariaActivedescendant = t.value.toString();
|
|
87
|
-
const o = n.getBoundingClientRect(), s = a.getBoundingClientRect();
|
|
88
|
-
o.top < s.top ? a.scrollTop -= s.top - o.top : o.bottom > s.bottom && (a.scrollTop += o.bottom - s.bottom);
|
|
89
|
-
}
|
|
90
|
-
handleSelectButtonKeyDown(e) {
|
|
91
|
-
var t;
|
|
92
|
-
switch (e.key) {
|
|
93
|
-
case "ArrowDown":
|
|
94
|
-
case "Enter":
|
|
95
|
-
e.preventDefault(), this.isOpen || this.toggleDropdown(), (t = this.inputRef) == null || t.focus();
|
|
96
|
-
break;
|
|
97
|
-
case "Escape":
|
|
98
|
-
this.isOpen = !1;
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
handleClick(e) {
|
|
103
|
-
if (this.isOpen) {
|
|
104
|
-
const t = e.target.value, n = this.options.findIndex((a) => a.label.toLowerCase().includes(t.toLowerCase()));
|
|
105
|
-
n > -1 && setTimeout(() => {
|
|
106
|
-
this.scrollToViewWithinParent(n);
|
|
107
|
-
}, 10);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
handleListboxKeydown(e) {
|
|
111
|
-
var a, o;
|
|
112
|
-
const t = this.filteredOptions, n = t.findIndex((s) => s.value === this.ariaActivedescendant);
|
|
113
|
-
if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
|
|
114
|
-
if (e.preventDefault(), n === t.length - 1) {
|
|
115
|
-
this.ariaActivedescendant = "", (a = this.inputRef) == null || a.focus();
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
const s = n + 1 < t.length ? n + 1 : 0;
|
|
119
|
-
this.ariaActivedescendant = t[s].value, this.focusOption(s);
|
|
120
|
-
} else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
|
|
121
|
-
if (e.preventDefault(), n === 0) {
|
|
122
|
-
this.ariaActivedescendant = "", (o = this.inputRef) == null || o.focus();
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
const s = n - 1 >= 0 ? n - 1 : t.length - 1;
|
|
126
|
-
this.ariaActivedescendant = t[s].value, this.focusOption(s);
|
|
127
|
-
} else
|
|
128
|
-
e.key === "Enter" ? (e.preventDefault(), this.ariaActivedescendant && this.selectOption(t[n])) : e.key === "Escape" && (this.isOpen = !1);
|
|
129
|
-
}
|
|
130
|
-
focusOption(e) {
|
|
131
|
-
var o;
|
|
132
|
-
const t = this.filteredOptions[e];
|
|
133
|
-
if (!t)
|
|
134
|
-
return;
|
|
135
|
-
const n = t.value, a = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(n);
|
|
136
|
-
a && (a.focus(), a.scrollIntoView({ behavior: "smooth", block: "nearest" }));
|
|
137
|
-
}
|
|
138
|
-
handleComboboxKeyDown(e) {
|
|
139
|
-
if (e.key === "ArrowDown" || e.key == "Tab" && !e.shiftKey) {
|
|
140
|
-
if (e.preventDefault(), !this.isOpen) {
|
|
141
|
-
this.isOpen = !0, this.shouldAutoScroll = !0;
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
this.ariaActivedescendant = this.filteredOptions[0].value, this.focusOption(0);
|
|
145
|
-
} else
|
|
146
|
-
e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[this.filteredOptions.length - 1].value, this.focusOption(this.filteredOptions.length - 1)) : e.key === "Escape" && (this.isOpen = !1);
|
|
147
|
-
}
|
|
148
|
-
handleOutsideClick(e) {
|
|
149
|
-
!e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
|
|
150
|
-
}
|
|
151
40
|
render() {
|
|
152
|
-
return
|
|
153
|
-
this.toggleDropdown(), this.shouldAutoScroll = !0, this.handleClick(e);
|
|
154
|
-
}, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.isOpen ? "true" : "false", onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e) }), this.isOpen ? i("div", { class: "dropdown-content", part: "id_dropdown-content", ref: (e) => this.optionsRef = e }, i("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (e) => this.handleListboxKeydown(e) }, this.filteredOptions.map((e) => i("li", { tabindex: "0", key: e.value, id: e.value, onClick: () => this.selectOption(e), role: "option", class: {
|
|
155
|
-
focused: this.ariaActivedescendant === e.value.toString()
|
|
156
|
-
} }, e.labelHTML ? e.labelHTML : e.label)))) : null);
|
|
157
|
-
}
|
|
158
|
-
get el() {
|
|
159
|
-
return k(this);
|
|
160
|
-
}
|
|
161
|
-
static get watchers() {
|
|
162
|
-
return {
|
|
163
|
-
options: ["optionsChangedHandler"],
|
|
164
|
-
defaultInputOption: ["defaultSelectedOptionChangedHandler"]
|
|
165
|
-
};
|
|
41
|
+
return a("label", { key: "38e5db24a5990c9b892fc824508148c28d918097" }, a("input", { key: "98d0bcc2e427035e7cc6fe216a1db105b65fc848", type: "checkbox", checked: this.isChecked, onChange: () => this.toggleCheck() }), a("span", { key: "9d475bd9e76606d62791e3aad90acd3286daae4b", class: "checkmark" }), a("slot", { key: "901fc53b3031d828a9e83f074b4223ef40ed0566", name: "label" }, a("span", { key: "fa95b9232724d82e023214e666948f5dd9d11a4f", class: "label" }, this.label)));
|
|
166
42
|
}
|
|
167
43
|
};
|
|
168
44
|
dt.style = rt;
|
|
169
|
-
const ct = ".sc-
|
|
45
|
+
const ct = ".sc-flow-icon-h{display:flex}", ft = ct, pt = class {
|
|
170
46
|
constructor(e) {
|
|
171
|
-
|
|
47
|
+
b(this, e), this.width = "16", this.height = "12";
|
|
172
48
|
}
|
|
173
49
|
render() {
|
|
174
|
-
return
|
|
50
|
+
return a("svg", { key: "3cc6938f442a5a5929c7b649b2b1e63dc4ce9d9b", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "2fd666481696e0717a006c6cc35d14bfe076e778", 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" }));
|
|
175
51
|
}
|
|
176
52
|
};
|
|
177
|
-
|
|
178
|
-
const ut = ".sc-location-
|
|
53
|
+
pt.style = ft;
|
|
54
|
+
const ut = ".sc-location-icon-h{display:flex}", ht = ut, bt = class {
|
|
179
55
|
constructor(e) {
|
|
180
|
-
|
|
56
|
+
b(this, e), this.width = "16", this.height = "18";
|
|
181
57
|
}
|
|
182
58
|
render() {
|
|
183
|
-
return
|
|
59
|
+
return a("svg", { key: "ac7261b5c4435c0ce081169de0cc9f9153a4c0fc", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "72f2ad6299564760a1586d975d15cbfb776b171f", 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" }));
|
|
184
60
|
}
|
|
185
61
|
};
|
|
186
62
|
bt.style = ht;
|
|
187
|
-
const mt =
|
|
63
|
+
const mt = ".sc-location-off-icon-h{display:flex}", yt = mt, gt = class {
|
|
188
64
|
constructor(e) {
|
|
189
|
-
|
|
65
|
+
b(this, e), this.width = "16", this.height = "18";
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return a("svg", { key: "71b77626fd36927b30dd10b92175179cde4de388", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "a37496113d32883d1dde6a7821b7a34dbbe2e705", 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" }));
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
gt.style = yt;
|
|
72
|
+
const vt = ':host{display:block;width:inherit;--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}.dropdown{display:inline-block;width:100%;position:relative}.dropdown .dropdown-label{display:flex;align-items:center;gap:0.25rem;color:var(--nylas-base-800)}.dropbtn{width:inherit;height:48px;color:black;padding:0.5rem;font-size:1rem;cursor:pointer;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)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{border:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content 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}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content ul li label{display:flex;align-items:center;gap:0.5rem}.dropdown-content ul li label input{margin:0}.selected-options{display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.5rem 0;margin-top:0.25rem;background:var(--nylas-base-0)}.selected-options .selected-option{display:flex;align-items:center;gap:0.5rem;padding:4px 8px;border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-100);color:var(--nylas-base-800);font-size:16px;font-weight:500;line-height:1.5rem;letter-spacing:0.5px}.selected-options .selected-option button{background:transparent;border:none;cursor:pointer;padding:0}.selected-options .selected-option button:hover{color:var(--nylas-primary)}', kt = vt, xt = class {
|
|
73
|
+
constructor(e) {
|
|
74
|
+
b(this, e), this.selectedOptionsChanged = k(this, "selectedOptionsChanged", 7), this.name = void 0, this.label = void 0, this.options = [], this.availableOptions = this.options, this.isOpen = !1, this.ariaActivedescendant = "", this.shouldFocusFirstOption = !1;
|
|
190
75
|
}
|
|
191
76
|
componentDidRender() {
|
|
192
77
|
d("multi-select-dropdown", "componentDidRender"), this.isOpen && this.shouldFocusFirstOption && (this.ariaActivedescendant = this.availableOptions[0].value, this.focusOption(0), this.shouldFocusFirstOption = !1);
|
|
@@ -217,24 +102,24 @@ const mt = ':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-er
|
|
|
217
102
|
}
|
|
218
103
|
}
|
|
219
104
|
handleListboxKeydown(e) {
|
|
220
|
-
const t = this.availableOptions, n = t.findIndex((
|
|
105
|
+
const t = this.availableOptions, n = t.findIndex((i) => i.value === this.ariaActivedescendant);
|
|
221
106
|
switch (e.key) {
|
|
222
107
|
case "ArrowDown":
|
|
223
108
|
case "Tab":
|
|
224
109
|
if (e.shiftKey) {
|
|
225
110
|
e.preventDefault();
|
|
226
|
-
const
|
|
227
|
-
this.ariaActivedescendant = t[
|
|
111
|
+
const l = n - 1 >= 0 ? n - 1 : t.length - 1;
|
|
112
|
+
this.ariaActivedescendant = t[l].value, this.focusOption(l);
|
|
228
113
|
} else {
|
|
229
114
|
e.preventDefault();
|
|
230
|
-
const
|
|
231
|
-
this.ariaActivedescendant = t[
|
|
115
|
+
const l = n + 1 < t.length ? n + 1 : 0;
|
|
116
|
+
this.ariaActivedescendant = t[l].value, this.focusOption(l);
|
|
232
117
|
}
|
|
233
118
|
break;
|
|
234
119
|
case "ArrowUp":
|
|
235
120
|
e.preventDefault();
|
|
236
|
-
const
|
|
237
|
-
this.ariaActivedescendant = t[
|
|
121
|
+
const i = n - 1 >= 0 ? n - 1 : t.length - 1;
|
|
122
|
+
this.ariaActivedescendant = t[i].value, this.focusOption(i);
|
|
238
123
|
break;
|
|
239
124
|
case "Enter":
|
|
240
125
|
e.preventDefault(), this.ariaActivedescendant && this.selectOption(t[n]);
|
|
@@ -245,46 +130,46 @@ const mt = ':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-er
|
|
|
245
130
|
}
|
|
246
131
|
}
|
|
247
132
|
focusOption(e) {
|
|
248
|
-
var
|
|
133
|
+
var l;
|
|
249
134
|
const t = this.availableOptions[e];
|
|
250
135
|
if (!t)
|
|
251
136
|
return;
|
|
252
|
-
const n = t.value,
|
|
253
|
-
|
|
137
|
+
const n = t.value, i = (l = this.el.shadowRoot) == null ? void 0 : l.getElementById(n);
|
|
138
|
+
i && (i.focus(), i.scrollIntoView({ behavior: "smooth", block: "nearest" }));
|
|
254
139
|
}
|
|
255
140
|
getSelectedOptions() {
|
|
256
141
|
return this.availableOptions.filter((e) => e.selected);
|
|
257
142
|
}
|
|
258
143
|
renderOption(e) {
|
|
259
|
-
return
|
|
144
|
+
return a("li", { key: e.value, id: e.value, role: "option", tabindex: "0", "aria-selected": e.selected ? "true" : "false", onClick: (t) => {
|
|
260
145
|
t.stopImmediatePropagation(), this.selectOption(e);
|
|
261
|
-
}, class: { selected: !!e.selected } },
|
|
146
|
+
}, class: { selected: !!e.selected } }, a("label", { htmlFor: e.value }, a("input", { "aria-hidden": "true", id: e.value, type: "checkbox", checked: e.selected }), a("span", null, e.label)));
|
|
262
147
|
}
|
|
263
148
|
render() {
|
|
264
149
|
var e, t;
|
|
265
|
-
return
|
|
150
|
+
return a(_, { key: "89819bc74cdae708fbdd60dc3f4160c0047d1414" }, a("div", { key: "2c3568247699101568790460b5d9ef6780cef096", class: "dropdown", part: "msd_dropdown" }, a("label", { key: "d524fd75f9a8fcde85727904b6e2b21e5f6cbe0e", class: "dropdown-label" }, this.label, a("slot", { key: "e4442acbc279840d6c3d815907fa79f6fd7a11d5", name: "label-icon", "aria-hidden": "true" })), a("button", { key: "8b66520137e83747c4e74237c74598fa2081275f", part: "msd_dropdown-button", class: { dropbtn: !0, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (n) => this.handleSelectButtonKeyDown(n) }, a("slot", { key: "e6ba4fd51fb6cf3dde63757f9eef8d1538a9a91d", name: "select-icon", "aria-hidden": "true" }), a("span", { key: "bfc7c1bdc8046bb3a27f11a587619ecfe6d62d32", class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1 ? `Multiple ${this.name}s selected` : ((e = this.availableOptions.filter((n) => n.selected)[0]) == null ? void 0 : e.label) ?? ((t = this.availableOptions[0]) == null ? void 0 : t.label)), a("span", { key: "f93e18714865b54dee754d2764b0b3bec3a4dead", class: this.isOpen ? "open" : "closed", "aria-hidden": "true" }, a("chevron-icon", { key: "d91d60366c8503e84cb6e41e43ac77f911f9517c", width: "16", height: "16" }))), this.isOpen ? null : a("div", { class: "selected-options" }, this.getSelectedOptions().map((n) => a("span", { class: "selected-option" }, n.label, a("button", { key: n.label, onClick: () => this.selectOption(n) }, a("close-icon", null))))), this.isOpen ? a("div", { class: "dropdown-content", part: "msd_dropdown-content" }, a("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": !0, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (n) => this.handleListboxKeydown(n) }, this.availableOptions.map((n) => this.renderOption(n)))) : null));
|
|
266
151
|
}
|
|
267
152
|
get el() {
|
|
268
|
-
return
|
|
153
|
+
return w(this);
|
|
269
154
|
}
|
|
270
155
|
};
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
-
var
|
|
274
|
-
var
|
|
156
|
+
xt.style = kt;
|
|
157
|
+
const _t = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', wt = _t;
|
|
158
|
+
var Ct = function(e, t, n, i) {
|
|
159
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
275
160
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
276
|
-
s = Reflect.decorate(e, t, n,
|
|
161
|
+
s = Reflect.decorate(e, t, n, i);
|
|
277
162
|
else
|
|
278
163
|
for (var r = e.length - 1; r >= 0; r--)
|
|
279
|
-
(
|
|
280
|
-
return
|
|
281
|
-
},
|
|
164
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
165
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
166
|
+
}, oe = function(e, t) {
|
|
282
167
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
283
168
|
return Reflect.metadata(e, t);
|
|
284
169
|
};
|
|
285
|
-
const
|
|
170
|
+
const Ee = class {
|
|
286
171
|
constructor(e) {
|
|
287
|
-
|
|
172
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.openHours = void 0, this.name = "availability", this.defaultTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.schedule = {
|
|
288
173
|
SUN: [],
|
|
289
174
|
MON: [{ start: "09:00am", end: "05:00pm" }],
|
|
290
175
|
TUE: [{ start: "09:00am", end: "05:00pm" }],
|
|
@@ -298,9 +183,9 @@ const Oe = class {
|
|
|
298
183
|
d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
299
184
|
}
|
|
300
185
|
configChangedHandler(e) {
|
|
301
|
-
var n,
|
|
186
|
+
var n, i, l;
|
|
302
187
|
const t = (n = e == null ? void 0 : e.participants) == null ? void 0 : n.find((s) => s.is_organizer);
|
|
303
|
-
t && ((
|
|
188
|
+
t && ((i = t == null ? void 0 : t.availability) != null && i.open_hours) && this.openHoursToSchedule((l = t == null ? void 0 : t.availability) == null ? void 0 : l.open_hours);
|
|
304
189
|
}
|
|
305
190
|
scheduleChanged(e, t) {
|
|
306
191
|
var n;
|
|
@@ -312,18 +197,18 @@ const Oe = class {
|
|
|
312
197
|
},
|
|
313
198
|
name: this.name
|
|
314
199
|
});
|
|
315
|
-
let
|
|
316
|
-
if (Object.keys(e).forEach((
|
|
317
|
-
const s = e[
|
|
200
|
+
let i = {};
|
|
201
|
+
if (Object.keys(e).forEach((l) => {
|
|
202
|
+
const s = e[l];
|
|
318
203
|
if (s.length > 0) {
|
|
319
|
-
const
|
|
320
|
-
|
|
204
|
+
const o = this.getOverlaps(s);
|
|
205
|
+
o.length > 0 && (i[l] = o);
|
|
321
206
|
}
|
|
322
|
-
}), this.overlapDays =
|
|
207
|
+
}), this.overlapDays = i, typeof this.internals.setFormValue != "function")
|
|
323
208
|
return;
|
|
324
|
-
if (Object.keys(
|
|
325
|
-
const
|
|
326
|
-
|
|
209
|
+
if (Object.keys(i).length > 0) {
|
|
210
|
+
const l = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(Object.keys(i)[0]);
|
|
211
|
+
l && (d("nylas-availability-picker", "The time ranges are overlapping. Overlap: ", i), this.internals.setValidity({ customError: !0 }, "Overlapping time ranges found", l));
|
|
327
212
|
} else
|
|
328
213
|
this.internals.setValidity({ customError: !1 }), this.internals.setFormValue(JSON.stringify({
|
|
329
214
|
openHours: this.scheduleToOpenHours(this.schedule),
|
|
@@ -331,7 +216,7 @@ const Oe = class {
|
|
|
331
216
|
}));
|
|
332
217
|
}
|
|
333
218
|
}
|
|
334
|
-
|
|
219
|
+
nylasFormDropdownChangedHandler(e) {
|
|
335
220
|
const { name: t, value: n } = e.detail;
|
|
336
221
|
if (t === "timezone") {
|
|
337
222
|
if (this.timezone = n, typeof this.internals.setFormValue != "function")
|
|
@@ -358,62 +243,62 @@ const Oe = class {
|
|
|
358
243
|
}));
|
|
359
244
|
}
|
|
360
245
|
getOverlaps(e) {
|
|
361
|
-
let t = e.map((
|
|
362
|
-
start: W(
|
|
363
|
-
end: W(
|
|
364
|
-
originalIndex:
|
|
246
|
+
let t = e.map((i, l) => ({
|
|
247
|
+
start: W(i.start),
|
|
248
|
+
end: W(i.end),
|
|
249
|
+
originalIndex: l
|
|
365
250
|
}));
|
|
366
|
-
t.sort((
|
|
251
|
+
t.sort((i, l) => i.start - l.start);
|
|
367
252
|
let n = [];
|
|
368
|
-
for (let
|
|
369
|
-
t[
|
|
370
|
-
return n.sort((
|
|
253
|
+
for (let i = 1; i < t.length; i++)
|
|
254
|
+
t[i].start < t[i - 1].end && (n.includes(t[i].originalIndex) || n.push(t[i].originalIndex), n.includes(t[i - 1].originalIndex) || n.push(t[i - 1].originalIndex));
|
|
255
|
+
return n.sort((i, l) => i - l);
|
|
371
256
|
}
|
|
372
257
|
addTimeRange(e) {
|
|
373
|
-
const t = this.schedule[e], n = 0,
|
|
258
|
+
const t = this.schedule[e], n = 0, i = 1425;
|
|
374
259
|
if (t.length === 0)
|
|
375
260
|
this.schedule[e] = [{ start: "09:00am", end: "05:00pm" }];
|
|
376
261
|
else {
|
|
377
|
-
const
|
|
378
|
-
start: W(
|
|
379
|
-
end: W(
|
|
380
|
-
})).sort((
|
|
381
|
-
if (s + 60 <=
|
|
262
|
+
const l = t.map((o) => ({
|
|
263
|
+
start: W(o.start),
|
|
264
|
+
end: W(o.end)
|
|
265
|
+
})).sort((o, r) => o.start - r.start), s = l[l.length - 1].end;
|
|
266
|
+
if (s + 60 <= i)
|
|
382
267
|
this.schedule[e].push({
|
|
383
|
-
start:
|
|
384
|
-
end:
|
|
268
|
+
start: N(U(s)),
|
|
269
|
+
end: N(U(s + 60))
|
|
385
270
|
});
|
|
386
271
|
else {
|
|
387
|
-
let
|
|
388
|
-
if (
|
|
389
|
-
start:
|
|
390
|
-
end:
|
|
391
|
-
}),
|
|
392
|
-
for (let r = 0; r <
|
|
393
|
-
const h =
|
|
394
|
-
if (
|
|
272
|
+
let o = !1;
|
|
273
|
+
if (l[0].start > n + 60 && (this.schedule[e].push({
|
|
274
|
+
start: N(U(n)),
|
|
275
|
+
end: N(U(n + 60))
|
|
276
|
+
}), o = !0), !o)
|
|
277
|
+
for (let r = 0; r < l.length - 1; r++) {
|
|
278
|
+
const h = l[r].end;
|
|
279
|
+
if (l[r + 1].start - h >= 60) {
|
|
395
280
|
this.schedule[e].push({
|
|
396
|
-
start:
|
|
397
|
-
end:
|
|
281
|
+
start: N(U(h)),
|
|
282
|
+
end: N(U(h + 60))
|
|
398
283
|
});
|
|
399
284
|
break;
|
|
400
285
|
}
|
|
401
286
|
}
|
|
402
287
|
}
|
|
403
288
|
}
|
|
404
|
-
this.schedule[e].sort((
|
|
289
|
+
this.schedule[e].sort((l, s) => W(l.start) - W(s.start)), this.schedule = { ...this.schedule };
|
|
405
290
|
}
|
|
406
291
|
removeTimeRange(e, t) {
|
|
407
292
|
this.schedule[e].splice(t, 1), this.schedule = { ...this.schedule };
|
|
408
293
|
}
|
|
409
294
|
setTime(e) {
|
|
410
|
-
const { key: t, value: n } = e.detail, [
|
|
411
|
-
|
|
295
|
+
const { key: t, value: n } = e.detail, [i, l] = t.split("_"), [s, o] = i.split(":");
|
|
296
|
+
l === "start" ? this.schedule[s][o].start = n : l === "end" && (this.schedule[s][o].end = n), this.internals.setValidity({ customError: !1 }), this.schedule = { ...this.schedule };
|
|
412
297
|
}
|
|
413
298
|
setFormError(e) {
|
|
414
299
|
var s;
|
|
415
|
-
const { key: t } = e.detail, [n,
|
|
416
|
-
|
|
300
|
+
const { key: t } = e.detail, [n, i] = t.split("_"), l = (s = this.host.shadowRoot) == null ? void 0 : s.getElementById(t);
|
|
301
|
+
l && this.internals.setValidity({ customError: !0 }, `Invalid ${i} time`, l);
|
|
417
302
|
}
|
|
418
303
|
openHoursToSchedule(e) {
|
|
419
304
|
const t = {
|
|
@@ -426,10 +311,10 @@ const Oe = class {
|
|
|
426
311
|
SAT: []
|
|
427
312
|
};
|
|
428
313
|
e.forEach((n) => {
|
|
429
|
-
n.days.forEach((
|
|
430
|
-
const
|
|
314
|
+
n.days.forEach((i) => {
|
|
315
|
+
const l = this.getDayKey(i), s = N(n.start), o = N(n.end), r = { start: s, end: o };
|
|
431
316
|
let h = !1;
|
|
432
|
-
t[
|
|
317
|
+
t[l] && (h = t[l].some((f) => f.start === r.start && f.end === r.end)), h || (t[l] ? t[l].push(r) : t[l] = [r]);
|
|
433
318
|
});
|
|
434
319
|
}), this.timezone = this.defaultTimezone, this.schedule = t;
|
|
435
320
|
}
|
|
@@ -439,48 +324,48 @@ const Oe = class {
|
|
|
439
324
|
scheduleToOpenHours(e) {
|
|
440
325
|
const t = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
441
326
|
let n = /* @__PURE__ */ new Map();
|
|
442
|
-
t.forEach((
|
|
443
|
-
e[
|
|
444
|
-
const r =
|
|
445
|
-
if (!n.has(
|
|
446
|
-
n.set(
|
|
327
|
+
t.forEach((l, s) => {
|
|
328
|
+
e[l] && e[l].forEach((o) => {
|
|
329
|
+
const r = Ce(o.start), h = Ce(o.end), f = `${r}-${h}`;
|
|
330
|
+
if (!n.has(f))
|
|
331
|
+
n.set(f, { days: [s], start: r, end: h });
|
|
447
332
|
else {
|
|
448
|
-
let u = n.get(
|
|
449
|
-
u && (u.days.push(s), n.set(
|
|
333
|
+
let u = n.get(f);
|
|
334
|
+
u && (u.days.push(s), n.set(f, u));
|
|
450
335
|
}
|
|
451
336
|
});
|
|
452
337
|
});
|
|
453
|
-
let
|
|
454
|
-
return n.forEach((
|
|
455
|
-
|
|
456
|
-
days:
|
|
457
|
-
start:
|
|
458
|
-
end:
|
|
338
|
+
let i = [];
|
|
339
|
+
return n.forEach((l, s) => {
|
|
340
|
+
i.push({
|
|
341
|
+
days: l.days,
|
|
342
|
+
start: l.start,
|
|
343
|
+
end: l.end,
|
|
459
344
|
timezone: this.timezone
|
|
460
345
|
});
|
|
461
|
-
}),
|
|
346
|
+
}), i;
|
|
462
347
|
}
|
|
463
348
|
render() {
|
|
464
|
-
const e = Object.keys(
|
|
465
|
-
label:
|
|
349
|
+
const e = Object.keys(De).map((t) => ({
|
|
350
|
+
label: De[t],
|
|
466
351
|
value: t
|
|
467
352
|
}));
|
|
468
|
-
return
|
|
469
|
-
const n = t,
|
|
470
|
-
return
|
|
471
|
-
|
|
472
|
-
} }),
|
|
473
|
-
var h,
|
|
474
|
-
const
|
|
475
|
-
return
|
|
476
|
-
}),
|
|
353
|
+
return a(_, { key: "c032e8a3630fe918533895156285e4b37778d812" }, a("div", { key: "1582bd8c1f3ef09d793a7120dafb6c7d420c3e9a", class: "nylas-availability-picker" }, a("div", { key: "61f2c1de7921e15455d7b827379e7d4815f6fb13", class: "header", part: "nap__header" }, a("h3", { key: "238b0ab77477d06a62412fed051d5641924e46d4" }, "General availability"), a("p", { key: "81967b68c5077941a5bf3d055c9be9e41d4ae705" }, "Set your availability for scheduling meetings.")), a("div", { key: "f1da5a939c1459bd7e9833cf9a97add09d75a822", class: "content" }, a("div", { key: "71e2f859541bd4fb2a4485f3350db5d6bbf73b00", class: "select-timezone", part: "nap__select-timezone" }, a("h4", { key: "a136696a498fb1521d4d8d844b9b03e2e49ff93a", class: "sub-header" }, "Select timezone", a("span", { key: "52636e30a6dea12cb69d55bd258ed48837826c80", class: "icon" }, a("tooltip-component", { key: "9f0dbc8c234f3550e83bbce3226346981b764896" }, a("info-icon", { key: "a8f556694bd02b710c89242a3d3057de5b7b0612", slot: "tooltip-icon" }), a("span", { key: "a8a52dd9835c32becbae165fa972bf6be6e716fa", slot: "tooltip-content" }, "Select your timezone for displaying availability.")))), a("select-dropdown", { key: "4800272cc24dcd24c82a4a89f24131c11e528d8c", 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) }, a("span", { key: "8b072e23cd0130f203696f5c99baaad07b1bbb2e", slot: "select-icon" }, a("globe-icon", { key: "de4c7ef153bff887947d73ed458aa5de0786b576", width: "20", height: "20" })))), a("div", { key: "6234933a0307c253e33ad9242e06c71388ba7a0a", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((t) => {
|
|
354
|
+
const n = t, i = this.schedule[t];
|
|
355
|
+
return a("div", { class: "availability-day" }, a("div", { class: "day", part: "nap__day" }, a("input", { type: "checkbox", name: n, id: n, checked: i.length > 0, onClick: () => {
|
|
356
|
+
i.length > 0 ? this.schedule[n] = [] : this.schedule[n] = [{ start: "09:00am", end: "05:00pm" }], this.schedule = { ...this.schedule };
|
|
357
|
+
} }), a("label", { htmlFor: n, "aria-label": "Select day" }, n)), a("div", { class: "time-ranges", part: "nap__time-ranges" }, i.length ? null : a("span", { class: "unavailable" }, "Unavailable"), i.length > 0 && i.map((l, s) => {
|
|
358
|
+
var h, f;
|
|
359
|
+
const o = `${t}:${s}_start`, r = `${t}:${s}_end`;
|
|
360
|
+
return a("div", { class: "time-range", part: "nap__time-range" }, a("div", { class: "pickers" }, a("nylas-time-window-picker", { id: o, hasError: (h = this.overlapDays[n]) == null ? void 0 : h.includes(s), time: l.start, name: o, key: o, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" }), a("span", null, " - "), a("nylas-time-window-picker", { id: r, hasError: (f = this.overlapDays[n]) == null ? void 0 : f.includes(s), time: l.end, name: r, key: r, minimumStartTime: l.start, exportparts: "time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times" })), a("button", { onClick: () => this.removeTimeRange(n, s) }, a("close-icon", null)));
|
|
361
|
+
}), a("p", { class: "error" }, this.overlapDays[n] ? "Overlapping time ranges" : "")), a("div", null, i.length > 0 ? a("button", { onClick: () => this.addTimeRange(n), part: "nap__add-time-range" }, a("add-circle-icon", null)) : null));
|
|
477
362
|
})))));
|
|
478
363
|
}
|
|
479
364
|
static get formAssociated() {
|
|
480
365
|
return !0;
|
|
481
366
|
}
|
|
482
367
|
get host() {
|
|
483
|
-
return
|
|
368
|
+
return w(this);
|
|
484
369
|
}
|
|
485
370
|
static get watchers() {
|
|
486
371
|
return {
|
|
@@ -490,33 +375,33 @@ const Oe = class {
|
|
|
490
375
|
};
|
|
491
376
|
}
|
|
492
377
|
};
|
|
493
|
-
|
|
378
|
+
Ct([
|
|
494
379
|
C({
|
|
495
380
|
name: "nylas-availability-picker",
|
|
496
381
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
497
382
|
fireRegisterEvent: !0
|
|
498
383
|
}),
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
],
|
|
503
|
-
|
|
504
|
-
const
|
|
505
|
-
var
|
|
506
|
-
var
|
|
384
|
+
oe("design:type", Function),
|
|
385
|
+
oe("design:paramtypes", []),
|
|
386
|
+
oe("design:returntype", void 0)
|
|
387
|
+
], Ee.prototype, "render", null);
|
|
388
|
+
Ee.style = wt;
|
|
389
|
+
const Tt = ':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}.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}', It = Tt;
|
|
390
|
+
var Dt = function(e, t, n, i) {
|
|
391
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
507
392
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
508
|
-
s = Reflect.decorate(e, t, n,
|
|
393
|
+
s = Reflect.decorate(e, t, n, i);
|
|
509
394
|
else
|
|
510
395
|
for (var r = e.length - 1; r >= 0; r--)
|
|
511
|
-
(
|
|
512
|
-
return
|
|
513
|
-
},
|
|
396
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
397
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
398
|
+
}, re = function(e, t) {
|
|
514
399
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
515
400
|
return Reflect.metadata(e, t);
|
|
516
401
|
};
|
|
517
|
-
const
|
|
402
|
+
const $e = class {
|
|
518
403
|
constructor(e) {
|
|
519
|
-
|
|
404
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.name = "booking-calendar", this.defaultBookingCalendar = "", this.selectedCalendar = "";
|
|
520
405
|
}
|
|
521
406
|
connectedCallback() {
|
|
522
407
|
d("nylas-booking-calendar-picker", "connectedCallback");
|
|
@@ -546,11 +431,11 @@ const Te = class {
|
|
|
546
431
|
elementNameChangedHandler(e) {
|
|
547
432
|
d("nylas-booking-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
548
433
|
}
|
|
549
|
-
|
|
550
|
-
d("nylas-booking-calendar-picker", "
|
|
434
|
+
nylasFormDropdownChangedHandler(e) {
|
|
435
|
+
d("nylas-booking-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
551
436
|
const t = (n) => {
|
|
552
|
-
const { value:
|
|
553
|
-
this.selectedCalendar =
|
|
437
|
+
const { value: i } = n.detail;
|
|
438
|
+
this.selectedCalendar = i, this.internals.setFormValue(i.toString(), this.name);
|
|
554
439
|
};
|
|
555
440
|
this.valueChanged.emit({ value: e.detail.value, name: this.name, valueChanged: t });
|
|
556
441
|
}
|
|
@@ -560,13 +445,13 @@ const Te = class {
|
|
|
560
445
|
value: n.id,
|
|
561
446
|
label: n.name
|
|
562
447
|
}))) ?? [];
|
|
563
|
-
return
|
|
448
|
+
return a(_, null, a("div", { class: "nylas-booking-calendar-picker", part: "nbcp" }, a("div", { class: "header", part: "nbcp__header" }, a("h3", null, "Calendar booking"), a("p", null, "Choose calendar where you’d like the event bookings to show up.")), e.length > 0 ? a("div", { class: "nylas-booking-calendar-picker__dropdown" }, a("span", { class: "label", part: "nbcp__input-label" }, "Select a calendar to book meetings on", a("tooltip-component", null, a("info-icon", { slot: "tooltip-icon" }), a("span", { slot: "tooltip-content" }, "Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available."))), a("select-dropdown", { name: "booking-calendar", options: e, withSearch: !1, exportparts: "sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content", defaultSelectedOption: e.find((n) => n.value == this.defaultBookingCalendar) ?? e[0] })) : a("div", { class: "nylas-booking-calendar-picker__loading" }, a("span", { class: "label" }, "Select a calendar to book meetings on ", a("info-icon", null)), a("div", { class: "loading-button" }, a("span", null, "Loading...")))));
|
|
564
449
|
}
|
|
565
450
|
static get formAssociated() {
|
|
566
451
|
return !0;
|
|
567
452
|
}
|
|
568
453
|
get host() {
|
|
569
|
-
return
|
|
454
|
+
return w(this);
|
|
570
455
|
}
|
|
571
456
|
static get watchers() {
|
|
572
457
|
return {
|
|
@@ -574,7 +459,7 @@ const Te = class {
|
|
|
574
459
|
};
|
|
575
460
|
}
|
|
576
461
|
};
|
|
577
|
-
|
|
462
|
+
Dt([
|
|
578
463
|
C({
|
|
579
464
|
name: "nylas-booking-calendar-picker",
|
|
580
465
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -589,27 +474,27 @@ Ct([
|
|
|
589
474
|
},
|
|
590
475
|
fireRegisterEvent: !0
|
|
591
476
|
}),
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
],
|
|
596
|
-
|
|
597
|
-
const
|
|
598
|
-
var
|
|
599
|
-
var
|
|
477
|
+
re("design:type", Function),
|
|
478
|
+
re("design:paramtypes", []),
|
|
479
|
+
re("design:returntype", void 0)
|
|
480
|
+
], $e.prototype, "render", null);
|
|
481
|
+
$e.style = It;
|
|
482
|
+
const St = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-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}', Ot = St;
|
|
483
|
+
var Et = function(e, t, n, i) {
|
|
484
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
600
485
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
601
|
-
s = Reflect.decorate(e, t, n,
|
|
486
|
+
s = Reflect.decorate(e, t, n, i);
|
|
602
487
|
else
|
|
603
488
|
for (var r = e.length - 1; r >= 0; r--)
|
|
604
|
-
(
|
|
605
|
-
return
|
|
606
|
-
},
|
|
489
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
490
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
491
|
+
}, de = function(e, t) {
|
|
607
492
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
608
493
|
return Reflect.metadata(e, t);
|
|
609
494
|
};
|
|
610
|
-
const
|
|
495
|
+
const He = class {
|
|
611
496
|
constructor(e) {
|
|
612
|
-
|
|
497
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "buffer-time", this.buffer = { before: 0, after: 0 }, this.selectedBeforeBufferTime = this.buffer.before, this.selectedAfterBufferTime = this.buffer.after;
|
|
613
498
|
}
|
|
614
499
|
connectedCallback() {
|
|
615
500
|
d("nylas-buffer-time", "connectedCallback");
|
|
@@ -645,11 +530,11 @@ const Ie = class {
|
|
|
645
530
|
elementNameChangedHandler(e) {
|
|
646
531
|
d("nylas-buffer-time", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
647
532
|
}
|
|
648
|
-
|
|
649
|
-
d("nylas-buffer-time", "
|
|
533
|
+
nylasFormDropdownChangedHandler(e) {
|
|
534
|
+
d("nylas-buffer-time", "nylasFormDropdownChangedHandler", e.detail);
|
|
650
535
|
const t = (n) => {
|
|
651
|
-
const { value:
|
|
652
|
-
|
|
536
|
+
const { value: i, name: l } = n.detail;
|
|
537
|
+
l === "before-buffer-time" ? this.selectedBeforeBufferTime = parseInt(i) : l === "after-buffer-time" && (this.selectedAfterBufferTime = parseInt(i));
|
|
653
538
|
const s = {
|
|
654
539
|
before: this.selectedBeforeBufferTime,
|
|
655
540
|
after: this.selectedAfterBufferTime
|
|
@@ -659,50 +544,50 @@ const Ie = class {
|
|
|
659
544
|
this.valueChanged.emit({ ...e.detail, valueChanged: t });
|
|
660
545
|
}
|
|
661
546
|
renderPreview() {
|
|
662
|
-
const
|
|
663
|
-
const r = Math.floor(
|
|
547
|
+
const i = (o) => {
|
|
548
|
+
const r = Math.floor(o / 30), h = o % 30 / 30 * 10;
|
|
664
549
|
return {
|
|
665
550
|
fullSlots: r,
|
|
666
551
|
partialFillHeight: h
|
|
667
552
|
};
|
|
668
|
-
},
|
|
669
|
-
const { fullSlots:
|
|
670
|
-
return Array.from({ length: 4 }, (h,
|
|
671
|
-
const u = this.selectedBeforeBufferTime > 0 &&
|
|
553
|
+
}, l = () => {
|
|
554
|
+
const { fullSlots: o, partialFillHeight: r } = i(this.selectedBeforeBufferTime);
|
|
555
|
+
return Array.from({ length: 4 }, (h, f) => {
|
|
556
|
+
const u = this.selectedBeforeBufferTime > 0 && f > 4 - o - 1, g = this.selectedBeforeBufferTime > 0 && f === 4 - o - 1 && r > 0;
|
|
672
557
|
let v = {};
|
|
673
|
-
return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to top, var(--nylas-base-100) ${r}px, transparent 0)`),
|
|
558
|
+
return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to top, var(--nylas-base-100) ${r}px, transparent 0)`), a("div", { key: f, class: `slot ${u ? "active" : ""}`, style: {
|
|
674
559
|
height: "10px",
|
|
675
560
|
...v
|
|
676
561
|
} });
|
|
677
562
|
});
|
|
678
563
|
}, s = () => {
|
|
679
|
-
const { fullSlots:
|
|
680
|
-
return Array.from({ length: 4 }, (h,
|
|
681
|
-
const u = this.selectedAfterBufferTime > 0 &&
|
|
564
|
+
const { fullSlots: o, partialFillHeight: r } = i(this.selectedAfterBufferTime);
|
|
565
|
+
return Array.from({ length: 4 }, (h, f) => {
|
|
566
|
+
const u = this.selectedAfterBufferTime > 0 && f < o, g = f === o && r > 0;
|
|
682
567
|
let v = {};
|
|
683
|
-
return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to bottom, var(--nylas-base-100) ${r}px, transparent 0)`),
|
|
568
|
+
return u && !g ? v.backgroundColor = "var(--nylas-base-100)" : g && (v.background = `linear-gradient(to bottom, var(--nylas-base-100) ${r}px, transparent 0)`), a("div", { key: f, class: `slot ${u ? "active" : ""}`, style: {
|
|
684
569
|
height: "10px",
|
|
685
570
|
...v
|
|
686
571
|
} });
|
|
687
572
|
});
|
|
688
573
|
};
|
|
689
|
-
return
|
|
574
|
+
return a("div", { class: "preview-container" }, l(), a("div", { class: "event-slot", style: { height: "20px" } }), s());
|
|
690
575
|
}
|
|
691
576
|
render() {
|
|
692
577
|
const e = Array.from({ length: 25 }, (t, n) => {
|
|
693
|
-
const
|
|
578
|
+
const i = n * 5;
|
|
694
579
|
return {
|
|
695
|
-
label:
|
|
696
|
-
value:
|
|
580
|
+
label: i.toString(),
|
|
581
|
+
value: i
|
|
697
582
|
};
|
|
698
583
|
});
|
|
699
|
-
return
|
|
584
|
+
return a(_, null, a("div", { class: "nylas-buffer-time", part: "nbt" }, a("div", { class: "header", part: "nbt__header" }, a("h3", null, "Buffer time"), a("p", null, "Add buffer time before and after the event.")), a("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, a("div", { class: "nylas-buffer-time__dropdown" }, a("div", { class: "nylas-buffer-time__row" }, a("label", null, "Before the event"), a("div", { class: "dropdown-container" }, a("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] }), a("span", null, "mins"))), a("div", { class: "nylas-buffer-time__row" }, a("label", null, "After the event"), a("div", { class: "dropdown-container" }, a("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] }), a("span", null, "mins")))), a("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, a("h4", null, "PREVIEW"), this.renderPreview()))));
|
|
700
585
|
}
|
|
701
586
|
static get formAssociated() {
|
|
702
587
|
return !0;
|
|
703
588
|
}
|
|
704
589
|
get host() {
|
|
705
|
-
return
|
|
590
|
+
return w(this);
|
|
706
591
|
}
|
|
707
592
|
static get watchers() {
|
|
708
593
|
return {
|
|
@@ -710,7 +595,7 @@ const Ie = class {
|
|
|
710
595
|
};
|
|
711
596
|
}
|
|
712
597
|
};
|
|
713
|
-
|
|
598
|
+
Et([
|
|
714
599
|
C({
|
|
715
600
|
name: "nylas-buffer-time",
|
|
716
601
|
eventToProps: {
|
|
@@ -721,27 +606,27 @@ It([
|
|
|
721
606
|
},
|
|
722
607
|
fireRegisterEvent: !0
|
|
723
608
|
}),
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
],
|
|
728
|
-
|
|
729
|
-
const
|
|
730
|
-
var
|
|
731
|
-
var
|
|
609
|
+
de("design:type", Function),
|
|
610
|
+
de("design:paramtypes", []),
|
|
611
|
+
de("design:returntype", void 0)
|
|
612
|
+
], He.prototype, "render", null);
|
|
613
|
+
He.style = Ot;
|
|
614
|
+
const $t = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-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}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ht = $t;
|
|
615
|
+
var Lt = function(e, t, n, i) {
|
|
616
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
732
617
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
733
|
-
s = Reflect.decorate(e, t, n,
|
|
618
|
+
s = Reflect.decorate(e, t, n, i);
|
|
734
619
|
else
|
|
735
620
|
for (var r = e.length - 1; r >= 0; r--)
|
|
736
|
-
(
|
|
737
|
-
return
|
|
738
|
-
},
|
|
621
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
622
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
623
|
+
}, ce = function(e, t) {
|
|
739
624
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
740
625
|
return Reflect.metadata(e, t);
|
|
741
626
|
};
|
|
742
|
-
const
|
|
627
|
+
const Le = class {
|
|
743
628
|
constructor(e) {
|
|
744
|
-
|
|
629
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.calendars = void 0, this.currentUser = void 0, this.name = "calendar", this.defaultSelectedCalendars = [], this.selectedCalendars = [];
|
|
745
630
|
}
|
|
746
631
|
elementNameChangedHandler(e) {
|
|
747
632
|
d("nylas-calendar-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -771,30 +656,30 @@ const De = class {
|
|
|
771
656
|
d("nylas-calendar-picker", "componentDidRender");
|
|
772
657
|
}
|
|
773
658
|
selectedOptionsChangedHandler(e) {
|
|
774
|
-
d("nylas-calendar-picker", "
|
|
659
|
+
d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
775
660
|
const t = (n) => {
|
|
776
|
-
const { value:
|
|
777
|
-
this.selectedCalendars = [...
|
|
661
|
+
const { value: i } = n.detail;
|
|
662
|
+
this.selectedCalendars = [...i], this.internals.setFormValue(i.toString(), "calendar");
|
|
778
663
|
};
|
|
779
664
|
this.valueChanged.emit({ ...e.detail, name: this.name, valueChangedHandler: t });
|
|
780
665
|
}
|
|
781
666
|
render() {
|
|
782
667
|
var t;
|
|
783
668
|
const e = ((t = this.calendars) == null ? void 0 : t.map((n) => {
|
|
784
|
-
var
|
|
669
|
+
var i, l, s, o;
|
|
785
670
|
return {
|
|
786
671
|
value: n.id,
|
|
787
672
|
label: n.name,
|
|
788
|
-
selected: ((
|
|
673
|
+
selected: ((i = this.defaultSelectedCalendars) == null ? void 0 : i.includes(n.id)) || ((l = this.defaultSelectedCalendars) != null && l.includes("primary") || ((s = this.defaultSelectedCalendars) == null ? void 0 : s.length) === 0 ? n.id === ((o = this.currentUser) == null ? void 0 : o.email) : !1)
|
|
789
674
|
};
|
|
790
675
|
})) ?? [];
|
|
791
|
-
return
|
|
676
|
+
return a(_, null, a("div", { class: "nylas-calendar-picker", part: "ncp" }, a("div", { class: "header", part: "ncp__header" }, a("h3", null, "Calendar availability"), a("p", null, "Select calendars that you’d like to use for checking your availability.")), e.length > 0 ? a("div", { class: "nylas-calendar-picker__dropdown" }, a("multi-select-dropdown", { name: "calendar", label: "Select calendars that will be checked for availability", options: e, exportparts: "msd_dropdown: ncp__dropdown, msd_dropdown-button: ncp__dropdown-button, msd_dropdown-content: ncp__dropdown-content" }, a("span", { slot: "label-icon" }, a("tooltip-component", null, a("info-icon", { slot: "tooltip-icon" }), a("span", { slot: "tooltip-content" }, "Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available. The default is your primary calendar if none are selected."))))) : a("div", { class: "nylas-calendar-picker__loading" }, a("span", { class: "label" }, "Select calendars that will be checked for availability ", a("info-icon", null)), a("div", { class: "loading-button" }, a("span", null, "Loading...")))));
|
|
792
677
|
}
|
|
793
678
|
static get formAssociated() {
|
|
794
679
|
return !0;
|
|
795
680
|
}
|
|
796
681
|
get host() {
|
|
797
|
-
return
|
|
682
|
+
return w(this);
|
|
798
683
|
}
|
|
799
684
|
static get watchers() {
|
|
800
685
|
return {
|
|
@@ -802,7 +687,7 @@ const De = class {
|
|
|
802
687
|
};
|
|
803
688
|
}
|
|
804
689
|
};
|
|
805
|
-
|
|
690
|
+
Lt([
|
|
806
691
|
C({
|
|
807
692
|
name: "nylas-calendar-picker",
|
|
808
693
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -817,35 +702,206 @@ Et([
|
|
|
817
702
|
},
|
|
818
703
|
fireRegisterEvent: !0
|
|
819
704
|
}),
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
],
|
|
824
|
-
|
|
825
|
-
const
|
|
826
|
-
var
|
|
827
|
-
var
|
|
705
|
+
ce("design:type", Function),
|
|
706
|
+
ce("design:paramtypes", []),
|
|
707
|
+
ce("design:returntype", void 0)
|
|
708
|
+
], Le.prototype, "render", null);
|
|
709
|
+
Le.style = Ht;
|
|
710
|
+
const Mt = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}', At = Mt;
|
|
711
|
+
var Nt = function(e, t, n, i) {
|
|
712
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
828
713
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
829
|
-
s = Reflect.decorate(e, t, n,
|
|
714
|
+
s = Reflect.decorate(e, t, n, i);
|
|
830
715
|
else
|
|
831
716
|
for (var r = e.length - 1; r >= 0; r--)
|
|
832
|
-
(
|
|
833
|
-
return
|
|
834
|
-
},
|
|
717
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
718
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
719
|
+
}, fe = function(e, t) {
|
|
720
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
721
|
+
return Reflect.metadata(e, t);
|
|
722
|
+
};
|
|
723
|
+
const Me = class {
|
|
724
|
+
constructor(e) {
|
|
725
|
+
var t, n;
|
|
726
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.cancellationPolicy = void 0, this.name = "cancelation-policy", this.message = this.cancellationPolicy || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : n.cancellation_policy) || "";
|
|
727
|
+
}
|
|
728
|
+
elementNameChangedHandler(e) {
|
|
729
|
+
d("nylas-cancellation-policy", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
730
|
+
}
|
|
731
|
+
selectedConfigurationChangedHandler(e, t) {
|
|
732
|
+
var n, i;
|
|
733
|
+
d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t), (n = e == null ? void 0 : e.scheduler) != null && n.cancellation_policy && (this.message = (i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.cancellation_policy);
|
|
734
|
+
}
|
|
735
|
+
connectedCallback() {
|
|
736
|
+
d("nylas-cancellation-policy", "connectedCallback");
|
|
737
|
+
}
|
|
738
|
+
componentWillLoad() {
|
|
739
|
+
d("nylas-cancellation-policy", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
740
|
+
}
|
|
741
|
+
componentDidLoad() {
|
|
742
|
+
d("nylas-cancellation-policy", "componentDidLoad");
|
|
743
|
+
}
|
|
744
|
+
disconnectedCallback() {
|
|
745
|
+
d("nylas-cancellation-policy", "disconnectedCallback");
|
|
746
|
+
}
|
|
747
|
+
handleChange(e) {
|
|
748
|
+
const t = V(e.target.value);
|
|
749
|
+
this.message = t, this.internals.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
|
|
750
|
+
}
|
|
751
|
+
render() {
|
|
752
|
+
return a(_, { key: "9ad194925cfb18c323d3f75aec51c4ac5ad67230" }, a("div", { key: "a4ae061a504a0cd6a91dd6dd23adcf7c3b8f43d5", class: "nylas-cancellation-policy", part: "ncpolicy" }, a("label", { key: "ea742ee8fba2e50a5694c210172e8783fa3d5e7b", htmlFor: this.name }, "Cancellation policy message", a("span", { key: "5c7143f8da100b650aa386c9fb895c3fd9ed2e04", class: "label-icon" }, a("tooltip-component", { key: "f46c7b94a1a58bd7162e5cfffc14a88b04a18a4c" }, a("info-icon", { key: "9d85ce578da1db7b080f3152b8fdb43834968829", slot: "tooltip-icon" }), a("span", { key: "0e4d0c4f98d1529179622c22fa6bf9d56d085ffb", slot: "tooltip-content" }, "Attendees receive this message if trying to cancel the event. Attendees are asked to provide a reason for cancellation.")))), a("textarea", { key: "570404ef8450c4ef2bb28fad4d1c6359b735abae", id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: (e) => this.handleChange(e) })));
|
|
753
|
+
}
|
|
754
|
+
static get formAssociated() {
|
|
755
|
+
return !0;
|
|
756
|
+
}
|
|
757
|
+
get host() {
|
|
758
|
+
return w(this);
|
|
759
|
+
}
|
|
760
|
+
static get watchers() {
|
|
761
|
+
return {
|
|
762
|
+
name: ["elementNameChangedHandler"],
|
|
763
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"]
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
Nt([
|
|
768
|
+
C({
|
|
769
|
+
name: "nylas-cancellation-policy",
|
|
770
|
+
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
771
|
+
eventToProps: {},
|
|
772
|
+
fireRegisterEvent: !0
|
|
773
|
+
}),
|
|
774
|
+
fe("design:type", Function),
|
|
775
|
+
fe("design:paramtypes", []),
|
|
776
|
+
fe("design:returntype", void 0)
|
|
777
|
+
], Me.prototype, "render", null);
|
|
778
|
+
Me.style = At;
|
|
779
|
+
const Ft = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-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}}', Rt = Ft;
|
|
780
|
+
var Pt = function(e, t, n, i) {
|
|
781
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
782
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
783
|
+
s = Reflect.decorate(e, t, n, i);
|
|
784
|
+
else
|
|
785
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
786
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
787
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
788
|
+
}, pe = function(e, t) {
|
|
789
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
790
|
+
return Reflect.metadata(e, t);
|
|
791
|
+
};
|
|
792
|
+
const Ae = class {
|
|
793
|
+
constructor(e) {
|
|
794
|
+
var t, n, i, l, s, o;
|
|
795
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.defaultAdditionalGuestsHidden = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.scheduler) == null ? void 0 : n.additional_guests_hidden) ?? !1, this.defaultHideCancellationOptions = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.scheduler) == null ? void 0 : l.hide_cancellation_options) ?? !1, this.defaultHideReschedulingOptions = ((o = (s = this.selectedConfiguration) == null ? void 0 : s.scheduler) == null ? void 0 : o.hide_rescheduling_options) ?? !1, this.name = "customize-booking-settings", this.allowGuestsToInvite = this.defaultAdditionalGuestsHidden, this.hideCancellationOptions = this.defaultHideCancellationOptions, this.hideReschedulingOptions = this.defaultHideReschedulingOptions;
|
|
796
|
+
}
|
|
797
|
+
elementNameChangedHandler(e) {
|
|
798
|
+
d("nylas-customize-booking-settings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
799
|
+
}
|
|
800
|
+
selectedConfigurationChangedHandler(e) {
|
|
801
|
+
var t, n, i;
|
|
802
|
+
d("nylas-customize-booking-settings", "selectedConfigurationChangedHandler", e), this.allowGuestsToInvite = !((t = e == null ? void 0 : e.scheduler) != null && t.additional_guests_hidden), this.hideCancellationOptions = ((n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.hide_cancellation_options) ?? !1, this.hideReschedulingOptions = ((i = e == null ? void 0 : e.scheduler) == null ? void 0 : i.hide_rescheduling_options) ?? !1;
|
|
803
|
+
}
|
|
804
|
+
connectedCallback() {
|
|
805
|
+
d("nylas-customize-booking-settings", "connectedCallback");
|
|
806
|
+
}
|
|
807
|
+
disconnectedCallback() {
|
|
808
|
+
d("nylas-customize-booking-settings", "disconnectedCallback");
|
|
809
|
+
}
|
|
810
|
+
componentWillLoad() {
|
|
811
|
+
d("nylas-customize-booking-settings", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
812
|
+
}
|
|
813
|
+
componentDidLoad() {
|
|
814
|
+
d("nylas-customize-booking-settings", "componentDidLoad");
|
|
815
|
+
}
|
|
816
|
+
componentWillUpdate() {
|
|
817
|
+
d("nylas-customize-booking-settings", "componentWillUpdate");
|
|
818
|
+
}
|
|
819
|
+
componentDidUpdate() {
|
|
820
|
+
d("nylas-customize-booking-settings", "componentDidUpdate");
|
|
821
|
+
}
|
|
822
|
+
componentWillRender() {
|
|
823
|
+
d("nylas-customize-booking-settings", "componentWillRender");
|
|
824
|
+
}
|
|
825
|
+
componentDidRender() {
|
|
826
|
+
d("nylas-customize-booking-settings", "componentDidRender");
|
|
827
|
+
}
|
|
828
|
+
checkboxToggledHandler(e) {
|
|
829
|
+
const { name: t, checked: n } = e.detail;
|
|
830
|
+
switch (t) {
|
|
831
|
+
case "additional_guests_hidden":
|
|
832
|
+
this.allowGuestsToInvite = n;
|
|
833
|
+
break;
|
|
834
|
+
case "hide_cancellation_options":
|
|
835
|
+
this.hideCancellationOptions = n;
|
|
836
|
+
break;
|
|
837
|
+
case "hide_rescheduling_options":
|
|
838
|
+
this.hideReschedulingOptions = n;
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
this.valueChanged.emit({
|
|
842
|
+
value: JSON.stringify({
|
|
843
|
+
additionalGuestsHidden: !this.allowGuestsToInvite,
|
|
844
|
+
hideCancellationOptions: this.hideCancellationOptions,
|
|
845
|
+
hideReschedulingOptions: this.hideReschedulingOptions
|
|
846
|
+
}),
|
|
847
|
+
name: this.name
|
|
848
|
+
}), this.internals.setFormValue(JSON.stringify({
|
|
849
|
+
additionalGuestsHidden: !this.allowGuestsToInvite,
|
|
850
|
+
hideCancellationOptions: this.hideCancellationOptions,
|
|
851
|
+
hideReschedulingOptions: this.hideReschedulingOptions
|
|
852
|
+
}), this.name);
|
|
853
|
+
}
|
|
854
|
+
render() {
|
|
855
|
+
return a(_, { key: "992ccff7eab4869bf8b845713417b95e3389fd4e" }, a("div", { key: "b6ef35657d2bbad229988c0b49583230db54161f", class: "nylas-customize-booking-settings", part: "ncbs" }, a("div", { key: "ff4e03f5c0e9f7d0dae8e231aecc051e6c4c0e19", class: "header", part: "ncbs__header" }, a("h3", { key: "d2bec3aa510726cbf74972eb88adf5f138ba0b1e" }, "Additional settings"), a("p", { key: "d77ad0ca1cad6ee54fc7324732d54a8b4a3b8169" }, "Booking settings for the event.")), a("div", { key: "24e2811534d1ecf7fa8581e9fc55c34ceb3ef6d2", class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, a("div", { key: "61a22cc50cdc6e625d25c5970cf853e5dd8187ab", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, a("checkbox-component", { key: "79b6079f75f2fd1b1c850a29ab5b0c15a8ed7d18", name: "additional_guests_hidden", label: "Allow guests to invite additional guests.", checked: this.allowGuestsToInvite }, a("span", { key: "11955e5ef0d789692ccb6c4657eaa4c45da26706", slot: "label", class: "label" }, a("p", { key: "9b968109bbabf45eab71c2c44534983138f04f23", class: "label-contents" }, "Allow guests to invite additional guests to the booking."), a("tooltip-component", { key: "a07a91c34ae38dda51d598fb4468df21adb3f7be", id: "guests" }, a("info-icon", { key: "007977190eff2a79fe50de5f46b8fd51ce331cbe", slot: "tooltip-icon" }), a("span", { key: "10f385796d8872f4a2568192ec707268defe89e9", slot: "tooltip-content" }, "Allow guests to invite additional guests to the event. If enabled, the guest will be able to add additional guests' email addresses."))))), a("div", { key: "a134a6ac8b3908c6fa9c512ee110bcd577aac029", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, a("checkbox-component", { key: "5ad8ad1c3fb1c937335dd8e0d82a0dd3d5a635dd", name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions }, a("span", { key: "40c94ef2bf663ac961eb7aec4bc39691ac6b0818", slot: "label", class: "label" }, a("p", { key: "d3417ba815f5ab78e503ae6cf9fc7bffcc12d111", class: "label-contents" }, "Hide the ", a("strong", { key: "7b1c6e8327f76fa552ff9f285bb7d7e88d601a0b" }, "Reschedule"), " button on the Scheduling Page and in the email notifications."), a("tooltip-component", { key: "4c9acdacae74c069b6d9c4f2bab65f2f2a8bd3f7", id: "reschedule" }, a("info-icon", { key: "2a16cac01e270b0383377692de9ae13717a2d3d0", slot: "tooltip-icon" }), a("span", { key: "17b130ce1be45cce38f72450bc4e6f63aa0bad41", slot: "tooltip-content" }, "Hide the 'Reschedule' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to reschedule the booking."))))), a("div", { key: "1ab5fe25b44eae2f53b2018b6f68f14f1845cf77", class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, a("checkbox-component", { key: "48502f280cdc6bd9dd4ddfd3b56ee91209b7dec5", name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions }, a("span", { key: "4a71756f70076e96ed5eb109f54b679f2267bf69", slot: "label", class: "label" }, a("p", { key: "838fdd1635b8f0ce3f3918adbdd70f516d0fa6bc", class: "label-contents" }, "Hide the ", a("strong", { key: "85529b0715b538ac7f783d599269bb47bcc5634c" }, "Cancel"), " button on the Scheduling Page and in the email notifications."), a("tooltip-component", { key: "748342d43b711d3e3dc28424fe404195c1857c38", id: "cancel" }, a("info-icon", { key: "96e121ef01d79273cd6d170271caadc0aab5e821", slot: "tooltip-icon" }), a("span", { key: "13c99611d0f63cda85aafaf09f29ae283bf52fd5", slot: "tooltip-content" }, "Hide the 'Cancel' button on the Scheduling page and in the email notifications. If enabled, the guest will not be able to cancel the booking."))))))));
|
|
856
|
+
}
|
|
857
|
+
static get formAssociated() {
|
|
858
|
+
return !0;
|
|
859
|
+
}
|
|
860
|
+
get host() {
|
|
861
|
+
return w(this);
|
|
862
|
+
}
|
|
863
|
+
static get watchers() {
|
|
864
|
+
return {
|
|
865
|
+
name: ["elementNameChangedHandler"],
|
|
866
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"]
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
Pt([
|
|
871
|
+
C({
|
|
872
|
+
name: "nylas-customize-booking-settings",
|
|
873
|
+
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
874
|
+
fireRegisterEvent: !0
|
|
875
|
+
}),
|
|
876
|
+
pe("design:type", Function),
|
|
877
|
+
pe("design:paramtypes", []),
|
|
878
|
+
pe("design:returntype", void 0)
|
|
879
|
+
], Ae.prototype, "render", null);
|
|
880
|
+
Ae.style = Rt;
|
|
881
|
+
const zt = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}', jt = zt;
|
|
882
|
+
var Bt = function(e, t, n, i) {
|
|
883
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
884
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
885
|
+
s = Reflect.decorate(e, t, n, i);
|
|
886
|
+
else
|
|
887
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
888
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
889
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
890
|
+
}, ue = function(e, t) {
|
|
835
891
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
836
892
|
return Reflect.metadata(e, t);
|
|
837
893
|
};
|
|
838
|
-
const
|
|
894
|
+
const Ne = class {
|
|
839
895
|
constructor(e) {
|
|
840
896
|
var t, n;
|
|
841
|
-
|
|
897
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventDescription = void 0, this.name = "description", this.description = this.eventDescription || ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.description) || "";
|
|
842
898
|
}
|
|
843
899
|
elementNameChangedHandler(e) {
|
|
844
900
|
d("nylas-event-description", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
845
901
|
}
|
|
846
902
|
selectedConfigurationChangedHandler(e, t) {
|
|
847
|
-
var n,
|
|
848
|
-
d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t), (n = e == null ? void 0 : e.event_booking) != null && n.description && (this.description = (
|
|
903
|
+
var n, i;
|
|
904
|
+
d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t), (n = e == null ? void 0 : e.event_booking) != null && n.description && (this.description = (i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.description);
|
|
849
905
|
}
|
|
850
906
|
connectedCallback() {
|
|
851
907
|
d("nylas-event-description", "connectedCallback");
|
|
@@ -860,17 +916,17 @@ const Se = class {
|
|
|
860
916
|
d("nylas-event-description", "disconnectedCallback");
|
|
861
917
|
}
|
|
862
918
|
handleChange(e) {
|
|
863
|
-
const t =
|
|
919
|
+
const t = V(e.target.value);
|
|
864
920
|
this.description = t, this.internals.setFormValue(t, "description"), this.valueChanged.emit({ value: t, name: this.name });
|
|
865
921
|
}
|
|
866
922
|
render() {
|
|
867
|
-
return
|
|
923
|
+
return a(_, { key: "ba8fe981702f13ac0b8132bc13fc6fea56500a62" }, a("div", { key: "41ab7f418a4878f7e9322564f77fe1008f048090", class: "nylas-event-description", part: "nedesc" }, a("label", { key: "8dd6e3fc10d8a360606b53eef4b7c596df082167", htmlFor: "description" }, "Event description", a("span", { key: "1533f26a880a136a76ad6bacb33b9cbf3895b35e", class: "label-icon" }, a("tooltip-component", { key: "f378fa630e3a8c80a5423c5086ff8ed3d0baa50b" }, a("info-icon", { key: "e343fc186b270f6c7eb9c38bf1ea04dbb7de7d6e", slot: "tooltip-icon" }), a("span", { key: "fb397590af111cac95805c50b96e22ebf3a3836e", slot: "tooltip-content" }, "Provide any additional details for your event.")))), a("textarea", { key: "650ab0c3162ad8fda2d3b0dfa9870bdc1aa700e6", id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: (e) => this.handleChange(e) })));
|
|
868
924
|
}
|
|
869
925
|
static get formAssociated() {
|
|
870
926
|
return !0;
|
|
871
927
|
}
|
|
872
928
|
get host() {
|
|
873
|
-
return
|
|
929
|
+
return w(this);
|
|
874
930
|
}
|
|
875
931
|
static get watchers() {
|
|
876
932
|
return {
|
|
@@ -879,34 +935,34 @@ const Se = class {
|
|
|
879
935
|
};
|
|
880
936
|
}
|
|
881
937
|
};
|
|
882
|
-
|
|
938
|
+
Bt([
|
|
883
939
|
C({
|
|
884
940
|
name: "nylas-event-description",
|
|
885
941
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
886
942
|
eventToProps: {},
|
|
887
943
|
fireRegisterEvent: !0
|
|
888
944
|
}),
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
],
|
|
893
|
-
|
|
894
|
-
const
|
|
895
|
-
var
|
|
896
|
-
var
|
|
945
|
+
ue("design:type", Function),
|
|
946
|
+
ue("design:paramtypes", []),
|
|
947
|
+
ue("design:returntype", void 0)
|
|
948
|
+
], Ne.prototype, "render", null);
|
|
949
|
+
Ne.style = jt;
|
|
950
|
+
const Wt = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Ut = Wt;
|
|
951
|
+
var Zt = function(e, t, n, i) {
|
|
952
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
897
953
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
898
|
-
s = Reflect.decorate(e, t, n,
|
|
954
|
+
s = Reflect.decorate(e, t, n, i);
|
|
899
955
|
else
|
|
900
956
|
for (var r = e.length - 1; r >= 0; r--)
|
|
901
|
-
(
|
|
902
|
-
return
|
|
903
|
-
},
|
|
957
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
958
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
959
|
+
}, he = function(e, t) {
|
|
904
960
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
905
961
|
return Reflect.metadata(e, t);
|
|
906
962
|
};
|
|
907
|
-
const
|
|
963
|
+
const Fe = class {
|
|
908
964
|
constructor(e) {
|
|
909
|
-
|
|
965
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "duration", this.eventDurationMinutes = void 0, this.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 = [
|
|
910
966
|
{ value: 15, label: "15" },
|
|
911
967
|
{ value: 30, label: "30" },
|
|
912
968
|
{ value: 45, label: "45" },
|
|
@@ -919,7 +975,7 @@ const Ee = class {
|
|
|
919
975
|
selectedConfigurationChangedHandler(e) {
|
|
920
976
|
var n;
|
|
921
977
|
const t = (n = e == null ? void 0 : e.availability) == null ? void 0 : n.duration_minutes;
|
|
922
|
-
t && (this.duration = t >= 60 ? t / 60 : t, this.durationMinutes = t ??
|
|
978
|
+
t && (this.duration = t >= 60 ? t / 60 : t, this.durationMinutes = t ?? 30, this.durationIncrement = t >= 60 ? 60 : 1);
|
|
923
979
|
}
|
|
924
980
|
durationMinutesChangedHandler(e, t) {
|
|
925
981
|
d("nylas-event-duration", "durationMinutesChangedHandler", e), e !== t && this.valueChanged.emit({ value: e.toString(), name: this.name });
|
|
@@ -947,16 +1003,13 @@ const Ee = class {
|
|
|
947
1003
|
handleChange(e) {
|
|
948
1004
|
this.duration = e.target.value, this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), this.name);
|
|
949
1005
|
}
|
|
950
|
-
|
|
951
|
-
(
|
|
952
|
-
}
|
|
953
|
-
selectedOptionChangedHandler(e) {
|
|
954
|
-
d("nylas-calendar-picker", "selectedOptionChangedHandler", e.detail);
|
|
1006
|
+
nylasFormDropdownChangedHandler(e) {
|
|
1007
|
+
d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
955
1008
|
const { value: t } = e.detail;
|
|
956
1009
|
this.durationIncrement = parseInt(t), this.durationIncrement === 1 ? this.duration = 60 : this.duration = 1, this.setDurationMintueOptions(), this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), "duration");
|
|
957
1010
|
}
|
|
958
1011
|
inputOptionChangedHandler(e) {
|
|
959
|
-
d("nylas-calendar-picker", "
|
|
1012
|
+
d("nylas-calendar-picker", "inputOptionChangedHandler", e.detail);
|
|
960
1013
|
const { value: t } = e.detail;
|
|
961
1014
|
this.duration = t, this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), this.name);
|
|
962
1015
|
}
|
|
@@ -965,13 +1018,13 @@ const Ee = class {
|
|
|
965
1018
|
{ value: 1, label: "minute" },
|
|
966
1019
|
{ value: 60, label: "hour" }
|
|
967
1020
|
];
|
|
968
|
-
return
|
|
1021
|
+
return a(_, { key: "69f81ffd2ca891c9c4681ac03e28091c52db815d" }, a("div", { key: "0f2f55279a060023ee3d0996e255075821c0eaf8", class: "nylas-event-duration", part: "ned" }, a("label", { key: "034772be3a25547f190ea70575e07f356aec1268", htmlFor: "duration" }, "Event duration", a("span", { key: "b3bbb769c229d9de4da23b330c6801093ec70ffe", class: "required" }, "*"), a("span", { key: "f62a2f5e762073f5dea8be87948fc75cc398c2cf", class: "label-icon" }, a("tooltip-component", { key: "73fa017a9c54ee8b38c5d9ebecffeb247bb94e1a" }, a("info-icon", { key: "662f790d63babba084ffb7b3d2c1d6ad57872444", slot: "tooltip-icon" }), a("span", { key: "71e2c2816bde5eef547f8004858c10809a3d9fc8", slot: "tooltip-content" }, "Set the duration of your event.")))), a("div", { key: "491c79e0a0ff84aa3421c084bbe0370fe3fae874", class: "nylas-event-duration__wrapper" }, a("input-dropdown", { key: "de21d1aa7aa5dffd80c73bd27860b4a8949e54d6", 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] }), a("select-dropdown", { key: "8ecfa42bb8d7065750b80a523e051aede990237e", 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 }))));
|
|
969
1022
|
}
|
|
970
1023
|
static get formAssociated() {
|
|
971
1024
|
return !0;
|
|
972
1025
|
}
|
|
973
1026
|
get host() {
|
|
974
|
-
return
|
|
1027
|
+
return w(this);
|
|
975
1028
|
}
|
|
976
1029
|
static get watchers() {
|
|
977
1030
|
return {
|
|
@@ -981,34 +1034,34 @@ const Ee = class {
|
|
|
981
1034
|
};
|
|
982
1035
|
}
|
|
983
1036
|
};
|
|
984
|
-
|
|
1037
|
+
Zt([
|
|
985
1038
|
C({
|
|
986
1039
|
name: "nylas-event-duration",
|
|
987
1040
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
988
1041
|
eventToProps: {},
|
|
989
1042
|
fireRegisterEvent: !0
|
|
990
1043
|
}),
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
],
|
|
995
|
-
|
|
996
|
-
const
|
|
997
|
-
var
|
|
998
|
-
var
|
|
1044
|
+
he("design:type", Function),
|
|
1045
|
+
he("design:paramtypes", []),
|
|
1046
|
+
he("design:returntype", void 0)
|
|
1047
|
+
], Fe.prototype, "render", null);
|
|
1048
|
+
Fe.style = Ut;
|
|
1049
|
+
const Yt = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', Gt = Yt;
|
|
1050
|
+
var Kt = function(e, t, n, i) {
|
|
1051
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
999
1052
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1000
|
-
s = Reflect.decorate(e, t, n,
|
|
1053
|
+
s = Reflect.decorate(e, t, n, i);
|
|
1001
1054
|
else
|
|
1002
1055
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1003
|
-
(
|
|
1004
|
-
return
|
|
1005
|
-
},
|
|
1056
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
1057
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
1058
|
+
}, be = function(e, t) {
|
|
1006
1059
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1007
1060
|
return Reflect.metadata(e, t);
|
|
1008
1061
|
};
|
|
1009
|
-
const
|
|
1062
|
+
const Re = class {
|
|
1010
1063
|
constructor(e) {
|
|
1011
|
-
|
|
1064
|
+
b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
1012
1065
|
}
|
|
1013
1066
|
connectedCallback() {
|
|
1014
1067
|
d("nylas-event-info", "connectedCallback");
|
|
@@ -1017,48 +1070,48 @@ const Le = class {
|
|
|
1017
1070
|
d("nylas-event-info", "componentWillLoad");
|
|
1018
1071
|
}
|
|
1019
1072
|
componentDidLoad() {
|
|
1020
|
-
d("nylas-event-info", "componentDidLoad"),
|
|
1073
|
+
d("nylas-event-info", "componentDidLoad"), Oe(["inputs"], this.el);
|
|
1021
1074
|
}
|
|
1022
1075
|
disconnectedCallback() {
|
|
1023
1076
|
d("nylas-event-info", "disconnectedCallback");
|
|
1024
1077
|
}
|
|
1025
1078
|
render() {
|
|
1026
|
-
return
|
|
1079
|
+
return a(_, { key: "311ce4cda7377b94f12a98ff6a3318697762f6f0" }, a("nylas-form-card", { key: "99e5490667e83818242ae24863e5cdd94b39b0fa" }, a("h1", { key: "f8c0f0cc5c330fac2b2f17e46be32ea4f3cc0b4b", slot: "header-title", class: "nylas-event-info__title" }, "Event information"), a("h3", { key: "637d443ca5851d7038acf20425c7fc969543951d", slot: "header-subtitle", class: "nylas-event-info__subtitle" }, "Enter all event information."), a("div", { key: "aa0c51b31eeda0ba4b2c0090ed8367d139ea447b", slot: "content", class: "nylas-event-info__content" }, a("slot", { key: "95cf051184160aa802d89fc395bf914df09412e9", name: "inputs" }))));
|
|
1027
1080
|
}
|
|
1028
1081
|
static get formAssociated() {
|
|
1029
1082
|
return !0;
|
|
1030
1083
|
}
|
|
1031
1084
|
get el() {
|
|
1032
|
-
return
|
|
1085
|
+
return w(this);
|
|
1033
1086
|
}
|
|
1034
1087
|
};
|
|
1035
|
-
|
|
1088
|
+
Kt([
|
|
1036
1089
|
C({
|
|
1037
1090
|
name: "nylas-event-info",
|
|
1038
1091
|
eventToProps: {},
|
|
1039
1092
|
fireRegisterEvent: !0
|
|
1040
1093
|
}),
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
],
|
|
1045
|
-
|
|
1046
|
-
const
|
|
1047
|
-
var
|
|
1048
|
-
var
|
|
1094
|
+
be("design:type", Function),
|
|
1095
|
+
be("design:paramtypes", []),
|
|
1096
|
+
be("design:returntype", void 0)
|
|
1097
|
+
], Re.prototype, "render", null);
|
|
1098
|
+
Re.style = Gt;
|
|
1099
|
+
const Jt = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', qt = Jt;
|
|
1100
|
+
var Vt = function(e, t, n, i) {
|
|
1101
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
1049
1102
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1050
|
-
s = Reflect.decorate(e, t, n,
|
|
1103
|
+
s = Reflect.decorate(e, t, n, i);
|
|
1051
1104
|
else
|
|
1052
1105
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1053
|
-
(
|
|
1054
|
-
return
|
|
1055
|
-
},
|
|
1106
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
1107
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
1108
|
+
}, me = function(e, t) {
|
|
1056
1109
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1057
1110
|
return Reflect.metadata(e, t);
|
|
1058
1111
|
};
|
|
1059
|
-
const
|
|
1112
|
+
const Pe = class {
|
|
1060
1113
|
constructor(e) {
|
|
1061
|
-
|
|
1114
|
+
b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
1062
1115
|
}
|
|
1063
1116
|
connectedCallback() {
|
|
1064
1117
|
d("nylas-event-limits", "connectedCallback");
|
|
@@ -1067,56 +1120,56 @@ const $e = class {
|
|
|
1067
1120
|
d("nylas-event-limits", "componentWillLoad");
|
|
1068
1121
|
}
|
|
1069
1122
|
componentDidLoad() {
|
|
1070
|
-
d("nylas-event-limits", "componentDidLoad"),
|
|
1123
|
+
d("nylas-event-limits", "componentDidLoad"), Oe(["inputs"], this.el);
|
|
1071
1124
|
}
|
|
1072
1125
|
disconnectedCallback() {
|
|
1073
1126
|
d("nylas-event-limits", "disconnectedCallback");
|
|
1074
1127
|
}
|
|
1075
1128
|
render() {
|
|
1076
|
-
return
|
|
1129
|
+
return a(_, { key: "6bfa0e29afa1529eb445b68339a658e4d7c8a6be" }, a("nylas-form-card", { key: "eda419f6f0f7bb8dfd2ebdb0a13c0a8c650190eb" }, a("h1", { key: "ea2c9af0d66665f25dcbb9c4c152bf159ceb4169", slot: "header-title", class: "nylas-event-limits__title" }, "Set event limits"), a("h3", { key: "b600fd0b690bab256fde199b373913d9009be9bf", slot: "header-subtitle", class: "nylas-event-limits__subtitle" }, "Customize event limits for the event."), a("div", { key: "72b24085107528833d406802b206eed3719bb358", slot: "content", class: "nylas-event-limits__content" }, a("slot", { key: "74a09fd8044065a2f52ef5abaeef0ba80f38f17b", name: "inputs" }))));
|
|
1077
1130
|
}
|
|
1078
1131
|
static get formAssociated() {
|
|
1079
1132
|
return !0;
|
|
1080
1133
|
}
|
|
1081
1134
|
get el() {
|
|
1082
|
-
return
|
|
1135
|
+
return w(this);
|
|
1083
1136
|
}
|
|
1084
1137
|
};
|
|
1085
|
-
|
|
1138
|
+
Vt([
|
|
1086
1139
|
C({
|
|
1087
1140
|
name: "nylas-event-limits",
|
|
1088
1141
|
eventToProps: {},
|
|
1089
1142
|
fireRegisterEvent: !0
|
|
1090
1143
|
}),
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
],
|
|
1095
|
-
|
|
1096
|
-
const
|
|
1097
|
-
var
|
|
1098
|
-
var
|
|
1144
|
+
me("design:type", Function),
|
|
1145
|
+
me("design:paramtypes", []),
|
|
1146
|
+
me("design:returntype", void 0)
|
|
1147
|
+
], Pe.prototype, "render", null);
|
|
1148
|
+
Pe.style = qt;
|
|
1149
|
+
const Qt = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Xt = Qt;
|
|
1150
|
+
var en = function(e, t, n, i) {
|
|
1151
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
1099
1152
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1100
|
-
s = Reflect.decorate(e, t, n,
|
|
1153
|
+
s = Reflect.decorate(e, t, n, i);
|
|
1101
1154
|
else
|
|
1102
1155
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1103
|
-
(
|
|
1104
|
-
return
|
|
1105
|
-
},
|
|
1156
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
1157
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
1158
|
+
}, ye = function(e, t) {
|
|
1106
1159
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1107
1160
|
return Reflect.metadata(e, t);
|
|
1108
1161
|
};
|
|
1109
|
-
const
|
|
1162
|
+
const ze = class {
|
|
1110
1163
|
constructor(e) {
|
|
1111
|
-
|
|
1164
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "location", this.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.selectedLocationOption = this.eventLocation ? "custom" : "none";
|
|
1112
1165
|
}
|
|
1113
1166
|
elementNameChangedHandler(e) {
|
|
1114
1167
|
d("nylas-event-location", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
1115
1168
|
}
|
|
1116
1169
|
selectedConfigurationChangedHandler(e, t) {
|
|
1117
|
-
var
|
|
1170
|
+
var i;
|
|
1118
1171
|
d("nylas-custom-booking-flow", "selectedConfigurationChangedHandler", e, t);
|
|
1119
|
-
const n = (
|
|
1172
|
+
const n = (i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.location;
|
|
1120
1173
|
n && (this.selectedLocationOption = n ? "custom" : "none", this.location = n);
|
|
1121
1174
|
}
|
|
1122
1175
|
eventLocationChangedHandler(e, t) {
|
|
@@ -1134,14 +1187,14 @@ const He = class {
|
|
|
1134
1187
|
disconnectedCallback() {
|
|
1135
1188
|
d("nylas-event-location", "disconnectedCallback");
|
|
1136
1189
|
}
|
|
1137
|
-
|
|
1190
|
+
nylasFormDropdownChangedHandler(e) {
|
|
1138
1191
|
this.selectedLocationOption = e.detail.value, this.selectedLocationOption === "none" && (this.location = "", this.setFormValue("", "location"), this.valueChanged.emit({ value: "", name: this.name }));
|
|
1139
1192
|
}
|
|
1140
1193
|
setFormValue(e, t) {
|
|
1141
1194
|
typeof this.internals.setFormValue == "function" && this.internals.setFormValue(e, t);
|
|
1142
1195
|
}
|
|
1143
1196
|
handleChange(e) {
|
|
1144
|
-
const t =
|
|
1197
|
+
const t = V(e.target.value);
|
|
1145
1198
|
this.location = t, this.setFormValue(t, "location"), this.valueChanged.emit({ value: t, name: this.name });
|
|
1146
1199
|
}
|
|
1147
1200
|
render() {
|
|
@@ -1149,16 +1202,16 @@ const He = class {
|
|
|
1149
1202
|
{ value: "none", label: "None" },
|
|
1150
1203
|
{ value: "custom", label: "Custom location" }
|
|
1151
1204
|
], t = {
|
|
1152
|
-
none:
|
|
1153
|
-
custom:
|
|
1205
|
+
none: a("location-off-icon", { key: "f9a254f862acd3c1b8a24b7efe0069f232bd9f51" }),
|
|
1206
|
+
custom: a("location-icon", { key: "641cfced66068f659d7d6db3b88a11314d9cacf6" })
|
|
1154
1207
|
};
|
|
1155
|
-
return
|
|
1208
|
+
return a(_, { key: "9e86c85ff957ac4d8192350e61bc66dfb7d8f764" }, a("div", { key: "a51752993c346200236187f906caa0629be50e88", class: "nylas-event-location", part: "nel" }, a("label", { key: "53cb18b0acd1a46b4be9a49f88a2786e7832d761", htmlFor: "location" }, "Location type", a("span", { key: "2b2debd710387758562de5833b5160f1d3a18481", class: "label-icon" }, a("tooltip-component", { key: "237da0e3bbfae495fd865d99e8f1e1ef68ae027e" }, a("info-icon", { key: "5f23b94c2bbe0f3ddd3870aeb69cee2f75b0bd28", slot: "tooltip-icon" }), a("span", { key: "b1ed166875a24ce4bcfbc808c26d0042b74f73f3", slot: "tooltip-content" }, "Choose how you’ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))), a("div", { key: "316411158feced50b61ce97014ffa0ba7c4400e8", class: "location-input" }, a("select-dropdown", { key: "cc6bdbca81e738f43dfb37b7dc66f06ac338dc40", withSearch: !1, name: "location", options: e, defaultSelectedOption: e.find((n) => n.value == this.selectedLocationOption), exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, a("span", { key: "faacafdffda95071ee9304ac0e4c0125dc31c123", slot: "select-icon" }, t[this.selectedLocationOption])), this.selectedLocationOption === "custom" && a("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
|
|
1156
1209
|
}
|
|
1157
1210
|
static get formAssociated() {
|
|
1158
1211
|
return !0;
|
|
1159
1212
|
}
|
|
1160
1213
|
get host() {
|
|
1161
|
-
return
|
|
1214
|
+
return w(this);
|
|
1162
1215
|
}
|
|
1163
1216
|
static get watchers() {
|
|
1164
1217
|
return {
|
|
@@ -1168,38 +1221,38 @@ const He = class {
|
|
|
1168
1221
|
};
|
|
1169
1222
|
}
|
|
1170
1223
|
};
|
|
1171
|
-
|
|
1224
|
+
en([
|
|
1172
1225
|
C({
|
|
1173
1226
|
name: "nylas-event-location",
|
|
1174
1227
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
1175
1228
|
eventToProps: {},
|
|
1176
1229
|
fireRegisterEvent: !0
|
|
1177
1230
|
}),
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
],
|
|
1182
|
-
|
|
1183
|
-
const
|
|
1184
|
-
var
|
|
1185
|
-
var
|
|
1231
|
+
ye("design:type", Function),
|
|
1232
|
+
ye("design:paramtypes", []),
|
|
1233
|
+
ye("design:returntype", void 0)
|
|
1234
|
+
], ze.prototype, "render", null);
|
|
1235
|
+
ze.style = Xt;
|
|
1236
|
+
const tn = ':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);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)}', nn = tn;
|
|
1237
|
+
var an = function(e, t, n, i) {
|
|
1238
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
1186
1239
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1187
|
-
s = Reflect.decorate(e, t, n,
|
|
1240
|
+
s = Reflect.decorate(e, t, n, i);
|
|
1188
1241
|
else
|
|
1189
1242
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1190
|
-
(
|
|
1191
|
-
return
|
|
1192
|
-
},
|
|
1243
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
1244
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
1245
|
+
}, ge = function(e, t) {
|
|
1193
1246
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1194
1247
|
return Reflect.metadata(e, t);
|
|
1195
1248
|
};
|
|
1196
|
-
const
|
|
1249
|
+
const je = class {
|
|
1197
1250
|
constructor(e) {
|
|
1198
1251
|
var t, n;
|
|
1199
|
-
|
|
1200
|
-
label:
|
|
1201
|
-
value:
|
|
1202
|
-
labelHTML:
|
|
1252
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.eventTitle = (n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.title, this.name = "title", this.showTokens = !1, this.availableTokens = Se.map((i) => ({
|
|
1253
|
+
label: i.token,
|
|
1254
|
+
value: i.value,
|
|
1255
|
+
labelHTML: i
|
|
1203
1256
|
})), this.filteredTokens = this.availableTokens, this.ariaActivedescendant = "", this.currentWord = { $value: "", fullText: "", index: -1, focusOffset: -1 }, this.validationError = "";
|
|
1204
1257
|
}
|
|
1205
1258
|
elementNameChangedHandler(e) {
|
|
@@ -1208,11 +1261,11 @@ const Ae = class {
|
|
|
1208
1261
|
ariaActivedescendantChangedHandler(e) {
|
|
1209
1262
|
var t, n;
|
|
1210
1263
|
if (d("nylas-event-title", "ariaActivedescendantChangedHandler", e), e !== "") {
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1264
|
+
const i = (t = this.host.shadowRoot) == null ? void 0 : t.getElementById(e);
|
|
1265
|
+
i == null || i.classList.add("active");
|
|
1213
1266
|
} else {
|
|
1214
|
-
const
|
|
1215
|
-
|
|
1267
|
+
const i = (n = this.host.shadowRoot) == null ? void 0 : n.querySelectorAll(".token-options li.active");
|
|
1268
|
+
i == null || i.forEach((l) => l.classList.remove("active"));
|
|
1216
1269
|
}
|
|
1217
1270
|
}
|
|
1218
1271
|
configChangedHandler(e) {
|
|
@@ -1242,81 +1295,81 @@ const Ae = class {
|
|
|
1242
1295
|
}
|
|
1243
1296
|
highlightTokens(e) {
|
|
1244
1297
|
let t = e;
|
|
1245
|
-
return
|
|
1246
|
-
const
|
|
1247
|
-
t = t.replace(
|
|
1298
|
+
return Se.forEach((n) => {
|
|
1299
|
+
const i = n.value, l = new RegExp(`(\\${i})(?!\\w)`, "g");
|
|
1300
|
+
t = t.replace(l, '<span class="highlighted-tag">$1</span>');
|
|
1248
1301
|
}), t;
|
|
1249
1302
|
}
|
|
1250
1303
|
getCurrentSelectionForBrowser() {
|
|
1251
|
-
var
|
|
1252
|
-
const e = (
|
|
1253
|
-
const u =
|
|
1304
|
+
var i, l, s;
|
|
1305
|
+
const e = (o, r, h, f) => {
|
|
1306
|
+
const u = o.replace(/[\u200B-\u200D\uFEFF]/g, ""), g = u.lastIndexOf("$"), v = u.substring(g).split(" ")[0];
|
|
1254
1307
|
return {
|
|
1255
1308
|
focusOffset: r,
|
|
1256
1309
|
dollarIndex: g,
|
|
1257
1310
|
lastWord: v,
|
|
1258
1311
|
currentText: u,
|
|
1259
1312
|
node: h,
|
|
1260
|
-
allSelected:
|
|
1313
|
+
allSelected: f
|
|
1261
1314
|
};
|
|
1262
|
-
}, t = (
|
|
1315
|
+
}, t = (o) => {
|
|
1263
1316
|
var r, h;
|
|
1264
|
-
return
|
|
1317
|
+
return o.anchorOffset === 0 && o.focusOffset === ((h = (r = o.focusNode) == null ? void 0 : r.nodeValue) == null ? void 0 : h.length);
|
|
1265
1318
|
};
|
|
1266
|
-
switch (
|
|
1319
|
+
switch (et()) {
|
|
1267
1320
|
case "Chrome":
|
|
1268
|
-
const
|
|
1269
|
-
return e(h, (
|
|
1321
|
+
const o = (i = this.host.shadowRoot) == null ? void 0 : i.getSelection(), r = o == null ? void 0 : o.focusNode, h = (r == null ? void 0 : r.nodeValue) || "", f = o && t(o);
|
|
1322
|
+
return e(h, (o == null ? void 0 : o.focusOffset) || -1, r, f);
|
|
1270
1323
|
case "Firefox":
|
|
1271
|
-
const u = document.getSelection(), g = ((
|
|
1324
|
+
const u = document.getSelection(), g = ((l = u == null ? void 0 : u.anchorNode) == null ? void 0 : l.nodeValue) || "", v = u && t(u);
|
|
1272
1325
|
return e(g, (u == null ? void 0 : u.focusOffset) || -1, u == null ? void 0 : u.anchorNode, v);
|
|
1273
1326
|
case "Safari":
|
|
1274
|
-
const
|
|
1275
|
-
return e(c, (x == null ? void 0 : x.endOffset) || -1, x == null ? void 0 : x.startContainer,
|
|
1327
|
+
const D = window.getSelection(), x = D == null ? void 0 : D.getComposedRanges(this.host.shadowRoot)[0], c = ((s = x == null ? void 0 : x.startContainer) == null ? void 0 : s.nodeValue) || "", p = D && t(D);
|
|
1328
|
+
return e(c, (x == null ? void 0 : x.endOffset) || -1, x == null ? void 0 : x.startContainer, p);
|
|
1276
1329
|
default:
|
|
1277
1330
|
return console.warn("Browser not supported"), null;
|
|
1278
1331
|
}
|
|
1279
1332
|
}
|
|
1280
1333
|
handleChange(e) {
|
|
1281
1334
|
let t = e.target.textContent || "";
|
|
1282
|
-
t =
|
|
1335
|
+
t = V(t);
|
|
1283
1336
|
const n = this.getCurrentSelectionForBrowser();
|
|
1284
1337
|
if (!n) {
|
|
1285
1338
|
this.updateEventTitle(t), this.resetDropdown();
|
|
1286
1339
|
return;
|
|
1287
1340
|
}
|
|
1288
|
-
const { focusOffset:
|
|
1289
|
-
if (
|
|
1341
|
+
const { focusOffset: i, dollarIndex: l, lastWord: s, currentText: o } = n;
|
|
1342
|
+
if (l === -1 || i < l) {
|
|
1290
1343
|
this.updateEventTitle(t), this.resetDropdown();
|
|
1291
1344
|
return;
|
|
1292
1345
|
}
|
|
1293
1346
|
s.startsWith("$") ? (this.showTokens = !0, this.currentWord = {
|
|
1294
1347
|
$value: s,
|
|
1295
|
-
fullText:
|
|
1296
|
-
index:
|
|
1297
|
-
focusOffset:
|
|
1348
|
+
fullText: o,
|
|
1349
|
+
index: l,
|
|
1350
|
+
focusOffset: i
|
|
1298
1351
|
}, this.populateSuggestionsDropdown(s)) : this.resetDropdown(), this.updateEventTitle(t);
|
|
1299
1352
|
}
|
|
1300
1353
|
handleInputKeyDown(e) {
|
|
1301
|
-
var n,
|
|
1354
|
+
var n, i, l, s;
|
|
1302
1355
|
const t = this.getCurrentSelectionForBrowser();
|
|
1303
|
-
if (t != null && t.allSelected && !
|
|
1356
|
+
if (t != null && t.allSelected && !Qe(e) && (this.titleRef.innerHTML = ""), e.key === "Enter") {
|
|
1304
1357
|
e.preventDefault();
|
|
1305
|
-
const
|
|
1306
|
-
|
|
1358
|
+
const o = (n = this.host.shadowRoot) == null ? void 0 : n.getElementById(this.ariaActivedescendant);
|
|
1359
|
+
o && (o.click(), this.ariaActivedescendant = "");
|
|
1307
1360
|
} else if (e.key === "ArrowDown") {
|
|
1308
1361
|
e.preventDefault();
|
|
1309
|
-
const
|
|
1310
|
-
if (
|
|
1311
|
-
const r =
|
|
1362
|
+
const o = (i = this.host.shadowRoot) == null ? void 0 : i.getElementById(this.ariaActivedescendant);
|
|
1363
|
+
if (o) {
|
|
1364
|
+
const r = o.nextElementSibling;
|
|
1312
1365
|
r ? this.ariaActivedescendant = r.id : this.ariaActivedescendant = this.filteredTokens[0].label;
|
|
1313
1366
|
} else
|
|
1314
1367
|
this.ariaActivedescendant = this.filteredTokens[0].label;
|
|
1315
1368
|
} else if (e.key === "ArrowUp") {
|
|
1316
1369
|
e.preventDefault();
|
|
1317
|
-
const
|
|
1318
|
-
if (
|
|
1319
|
-
const r =
|
|
1370
|
+
const o = (l = this.host.shadowRoot) == null ? void 0 : l.getElementById(this.ariaActivedescendant);
|
|
1371
|
+
if (o) {
|
|
1372
|
+
const r = o.previousElementSibling;
|
|
1320
1373
|
r ? this.ariaActivedescendant = r.id : this.ariaActivedescendant = this.filteredTokens[this.filteredTokens.length - 1].label;
|
|
1321
1374
|
} else
|
|
1322
1375
|
this.ariaActivedescendant = this.filteredTokens[this.filteredTokens.length - 1].label;
|
|
@@ -1326,28 +1379,28 @@ const Ae = class {
|
|
|
1326
1379
|
selectOption(e, t) {
|
|
1327
1380
|
var c;
|
|
1328
1381
|
e.preventDefault();
|
|
1329
|
-
const n = this.currentWord.fullText,
|
|
1330
|
-
let
|
|
1331
|
-
for (;
|
|
1332
|
-
if (
|
|
1333
|
-
const
|
|
1334
|
-
if (
|
|
1335
|
-
s =
|
|
1382
|
+
const n = this.currentWord.fullText, i = this.currentWord.$value;
|
|
1383
|
+
let l = this.titleRef.firstChild, s = null;
|
|
1384
|
+
for (; l; ) {
|
|
1385
|
+
if (l.nodeType === 3) {
|
|
1386
|
+
const p = ((c = l.textContent) == null ? void 0 : c.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", m = n.replace(/[\u200B-\u200D\uFEFF]/g, "");
|
|
1387
|
+
if (p.includes(m)) {
|
|
1388
|
+
s = l;
|
|
1336
1389
|
break;
|
|
1337
1390
|
}
|
|
1338
1391
|
}
|
|
1339
|
-
|
|
1392
|
+
l = l.nextSibling;
|
|
1340
1393
|
}
|
|
1341
1394
|
if (!s)
|
|
1342
1395
|
return;
|
|
1343
|
-
const
|
|
1396
|
+
const o = s.textContent || "", r = o.indexOf(i), h = o.substring(0, r), f = o.substring(r + i.length), u = document.createTextNode(h), g = document.createRange(), v = document.createElement("span");
|
|
1344
1397
|
v.classList.add("highlighted-tag"), v.textContent = `${t.value}`;
|
|
1345
|
-
const
|
|
1346
|
-
if (
|
|
1347
|
-
s.replaceWith(u, v,
|
|
1398
|
+
const D = document.createTextNode(f);
|
|
1399
|
+
if (f !== "")
|
|
1400
|
+
s.replaceWith(u, v, D), g.setStart(D, 1);
|
|
1348
1401
|
else {
|
|
1349
|
-
const
|
|
1350
|
-
s.replaceWith(u, v,
|
|
1402
|
+
const p = document.createTextNode("");
|
|
1403
|
+
s.replaceWith(u, v, p), g.setStart(p, 1);
|
|
1351
1404
|
}
|
|
1352
1405
|
this.resetDropdown(), this.titleRef.focus();
|
|
1353
1406
|
const x = window.getSelection();
|
|
@@ -1357,28 +1410,28 @@ const Ae = class {
|
|
|
1357
1410
|
this.filteredTokens = this.availableTokens.filter((t) => t.label.startsWith(e.toString()) || t.value.startsWith(e.toString())), this.filteredTokens.length > 0 && (this.ariaActivedescendant = this.filteredTokens[0].label);
|
|
1358
1411
|
}
|
|
1359
1412
|
updateEventTitle(e) {
|
|
1360
|
-
var n,
|
|
1413
|
+
var n, i, l;
|
|
1361
1414
|
const t = e.replace(/ +/g, " ");
|
|
1362
|
-
t === "" ? ((n = this.internals) == null || n.setValidity({ customError: !0 }, "Event title is required", this.titleRef), this.validationError = "Event title is required") : ((
|
|
1415
|
+
t === "" ? ((n = this.internals) == null || n.setValidity({ customError: !0 }, "Event title is required", this.titleRef), this.validationError = "Event title is required") : ((i = this.internals) == null || i.setValidity({ customError: !1 }), this.validationError = ""), (l = this.internals) == null || l.setFormValue(t, this.name), this.valueChanged.emit({ value: t, name: this.name });
|
|
1363
1416
|
}
|
|
1364
1417
|
resetDropdown() {
|
|
1365
1418
|
this.showTokens = !1, this.ariaActivedescendant = "";
|
|
1366
1419
|
}
|
|
1367
1420
|
getLabelHTML(e) {
|
|
1368
|
-
return
|
|
1421
|
+
return a("div", { class: "token-label" }, a("span", { class: "token" }, e.token), a("span", { class: "description" }, e.description));
|
|
1369
1422
|
}
|
|
1370
1423
|
render() {
|
|
1371
1424
|
var e;
|
|
1372
|
-
return
|
|
1425
|
+
return a(_, { key: "8e8de66d58ca4428f35effa133fc8c0b3e3c804f" }, a("div", { key: "411cf6eb2553063facf74bc0fcf46cbced1b2eb8", class: "nylas-event-title", part: "net" }, a("label", { key: "47c8a32d54022a41182ba71aa665f05275e0926b", htmlFor: "title" }, "Event title", a("span", { key: "664268aa456eeae43411ef0c59c3391dfebac185", class: "required" }, "*"), a("span", { key: "c4db00b1f2f428c30344dbe098fabba19e15cf76", class: "label-icon" }, a("tooltip-component", { key: "9884d36d7237310d454cb2cce36ea7a7391a58e5" }, a("info-icon", { key: "6a2c57dc06b77fb2c8faaa21af08558f7cfcf98c", slot: "tooltip-icon" }), a("span", { key: "185fee4da67795d4cbad48ce905c573e42749b95", slot: "tooltip-content" }, "Enter a title for your event.")))), a("div", { key: "80db52b66751ec73660465a2185d2e5c1304903d", class: {
|
|
1373
1426
|
title: !0,
|
|
1374
1427
|
error: this.validationError !== ""
|
|
1375
|
-
}, 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 &&
|
|
1428
|
+
}, 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 && a("div", { class: "token-options", part: "net__dropdown-content" }, a("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((t) => a("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))))), a("span", { key: "35d1099854f33517e668691f98a3bf296a8280d4", class: "help-text" }, "Create a dynamic templated event title by typing $. Learn more"), this.validationError != "" && a("span", { class: "error-message" }, this.validationError)));
|
|
1376
1429
|
}
|
|
1377
1430
|
static get formAssociated() {
|
|
1378
1431
|
return !0;
|
|
1379
1432
|
}
|
|
1380
1433
|
get host() {
|
|
1381
|
-
return
|
|
1434
|
+
return w(this);
|
|
1382
1435
|
}
|
|
1383
1436
|
static get watchers() {
|
|
1384
1437
|
return {
|
|
@@ -1388,34 +1441,34 @@ const Ae = class {
|
|
|
1388
1441
|
};
|
|
1389
1442
|
}
|
|
1390
1443
|
};
|
|
1391
|
-
|
|
1444
|
+
an([
|
|
1392
1445
|
C({
|
|
1393
1446
|
name: "nylas-event-title",
|
|
1394
1447
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
1395
1448
|
eventToProps: {},
|
|
1396
1449
|
fireRegisterEvent: !0
|
|
1397
1450
|
}),
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
],
|
|
1402
|
-
|
|
1403
|
-
const
|
|
1404
|
-
var
|
|
1405
|
-
var
|
|
1451
|
+
ge("design:type", Function),
|
|
1452
|
+
ge("design:paramtypes", []),
|
|
1453
|
+
ge("design:returntype", void 0)
|
|
1454
|
+
], je.prototype, "render", null);
|
|
1455
|
+
je.style = nn;
|
|
1456
|
+
const sn = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', ln = sn;
|
|
1457
|
+
var on = function(e, t, n, i) {
|
|
1458
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
1406
1459
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1407
|
-
s = Reflect.decorate(e, t, n,
|
|
1460
|
+
s = Reflect.decorate(e, t, n, i);
|
|
1408
1461
|
else
|
|
1409
1462
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1410
|
-
(
|
|
1411
|
-
return
|
|
1412
|
-
},
|
|
1463
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
1464
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
1465
|
+
}, ve = function(e, t) {
|
|
1413
1466
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1414
1467
|
return Reflect.metadata(e, t);
|
|
1415
1468
|
};
|
|
1416
|
-
const
|
|
1469
|
+
const Be = class {
|
|
1417
1470
|
constructor(e) {
|
|
1418
|
-
|
|
1471
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.availableDaysInFuture = void 0, this.name = "limit-future-bookings", this.selectedNumber = 1, this.selectedPeriod = "day";
|
|
1419
1472
|
}
|
|
1420
1473
|
elementNameChangedHandler(e) {
|
|
1421
1474
|
d("nylas-limit-future-bookings", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -1443,21 +1496,21 @@ const Me = class {
|
|
|
1443
1496
|
}
|
|
1444
1497
|
timePeriodChangedHandler(e) {
|
|
1445
1498
|
const { number: t, period: n } = e.detail;
|
|
1446
|
-
let
|
|
1447
|
-
n === "day" ?
|
|
1499
|
+
let i;
|
|
1500
|
+
n === "day" ? i = t : n === "week" ? i = t * 7 : i = t * 30, this.valueChanged.emit({ value: i, name: "availableDaysInFuture" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(i.toString(), this.name);
|
|
1448
1501
|
}
|
|
1449
1502
|
updateNumberAndPeriodFromDays(e) {
|
|
1450
1503
|
let t, n;
|
|
1451
1504
|
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;
|
|
1452
1505
|
}
|
|
1453
1506
|
render() {
|
|
1454
|
-
return
|
|
1507
|
+
return a(_, { key: "e1e24151575c5c687d51fdf177840aa7c05424d9" }, a("div", { key: "ceb19c13b5ad7e132260de266b1883b3f8d53f3d", class: "nylas-limit-future-bookings", part: "nlfb" }, a("label", { key: "44c296c74b9a9cd7152d2c704d4dc6ef82cc39c7" }, "Limit future bookings", a("span", { key: "11e7622613f38d12ef4f1c564b0ca311ab679cb3", class: "label-icon" }, a("tooltip-component", { key: "d9ab1be2efb6616a937d112017be0e2c8e965ab3" }, a("info-icon", { key: "9f207ec82aa2a122ebfd0ba047f650751c49e470", slot: "tooltip-icon" }), a("span", { key: "1d91cfa505846f5f9da0457b785d8c645044be55", slot: "tooltip-content" }, "Set a limit on how far in the future bookings can be made.")))), a("time-period-selector", { key: "cc11ea1514b99b8b4ef1721a15d56fbda1c1693b", 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 })));
|
|
1455
1508
|
}
|
|
1456
1509
|
static get formAssociated() {
|
|
1457
1510
|
return !0;
|
|
1458
1511
|
}
|
|
1459
1512
|
get host() {
|
|
1460
|
-
return
|
|
1513
|
+
return w(this);
|
|
1461
1514
|
}
|
|
1462
1515
|
static get watchers() {
|
|
1463
1516
|
return {
|
|
@@ -1467,34 +1520,114 @@ const Me = class {
|
|
|
1467
1520
|
};
|
|
1468
1521
|
}
|
|
1469
1522
|
};
|
|
1470
|
-
|
|
1523
|
+
on([
|
|
1471
1524
|
C({
|
|
1472
1525
|
name: "nylas-limit-future-bookings",
|
|
1473
1526
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
1474
1527
|
eventToProps: {},
|
|
1475
1528
|
fireRegisterEvent: !0
|
|
1476
1529
|
}),
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
],
|
|
1481
|
-
|
|
1482
|
-
const
|
|
1483
|
-
var
|
|
1484
|
-
var
|
|
1530
|
+
ve("design:type", Function),
|
|
1531
|
+
ve("design:paramtypes", []),
|
|
1532
|
+
ve("design:returntype", void 0)
|
|
1533
|
+
], Be.prototype, "render", null);
|
|
1534
|
+
Be.style = ln;
|
|
1535
|
+
const rn = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', dn = rn;
|
|
1536
|
+
var cn = function(e, t, n, i) {
|
|
1537
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
1485
1538
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1486
|
-
s = Reflect.decorate(e, t, n,
|
|
1539
|
+
s = Reflect.decorate(e, t, n, i);
|
|
1487
1540
|
else
|
|
1488
1541
|
for (var r = e.length - 1; r >= 0; r--)
|
|
1489
|
-
(
|
|
1490
|
-
return
|
|
1491
|
-
},
|
|
1542
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
1543
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
1544
|
+
}, ke = function(e, t) {
|
|
1492
1545
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1493
1546
|
return Reflect.metadata(e, t);
|
|
1494
1547
|
};
|
|
1495
|
-
const
|
|
1548
|
+
const We = class {
|
|
1496
1549
|
constructor(e) {
|
|
1497
|
-
|
|
1550
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.minBookingNotice = void 0, this.name = "min-booking-notice", this.selectedNumber = 1, this.selectedPeriod = "hour";
|
|
1551
|
+
}
|
|
1552
|
+
elementNameChangedHandler(e) {
|
|
1553
|
+
d("nylas-min-booking-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
1554
|
+
}
|
|
1555
|
+
selectedConfigurationChangedHandler(e) {
|
|
1556
|
+
var n;
|
|
1557
|
+
const t = (n = e == null ? void 0 : e.scheduler) == null ? void 0 : n.min_booking_notice;
|
|
1558
|
+
t && this.updateNumberAndPeriodFromMinutes(t);
|
|
1559
|
+
}
|
|
1560
|
+
availableDaysInFutureChanged(e) {
|
|
1561
|
+
this.updateNumberAndPeriodFromMinutes(e);
|
|
1562
|
+
}
|
|
1563
|
+
connectedCallback() {
|
|
1564
|
+
d("nylas-min-booking-notice", "connectedCallback");
|
|
1565
|
+
}
|
|
1566
|
+
componentWillLoad() {
|
|
1567
|
+
d("nylas-min-booking-notice", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
1568
|
+
}
|
|
1569
|
+
componentDidLoad() {
|
|
1570
|
+
var e;
|
|
1571
|
+
d("nylas-min-booking-notice", "componentDidLoad"), this.availableDaysInFutureChanged(this.minBookingNotice ?? 1), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(((e = this.minBookingNotice) == null ? void 0 : e.toString()) ?? "1", this.name);
|
|
1572
|
+
}
|
|
1573
|
+
disconnectedCallback() {
|
|
1574
|
+
d("nylas-min-booking-notice", "disconnectedCallback");
|
|
1575
|
+
}
|
|
1576
|
+
timePeriodChangedHandler(e) {
|
|
1577
|
+
const { number: t, period: n } = e.detail;
|
|
1578
|
+
let i;
|
|
1579
|
+
const l = 60, s = l * 24, o = s * 7, r = s * 30;
|
|
1580
|
+
n === "minute" ? i = t : n === "hour" ? i = t * l : n === "day" ? i = t * s : n === "week" ? i = t * o : n === "month" ? i = t * r : i = 0, this.valueChanged.emit({ value: i, name: "minBookingNotice" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(i.toString(), this.name);
|
|
1581
|
+
}
|
|
1582
|
+
updateNumberAndPeriodFromMinutes(e) {
|
|
1583
|
+
let s, o;
|
|
1584
|
+
e >= 43200 ? (s = Math.floor(e / 43200), o = "month") : e >= 10080 ? (s = Math.floor(e / 10080), o = "week") : e >= 1440 ? (s = Math.floor(e / 1440), o = "day") : e >= 60 ? (s = Math.floor(e / 60), o = "hour") : (s = e, o = "minute"), this.selectedNumber = s, this.selectedPeriod = o;
|
|
1585
|
+
}
|
|
1586
|
+
render() {
|
|
1587
|
+
return a(_, { key: "75bc177620fae5662328ba8f53f9f4a4e84733e5" }, a("div", { key: "a76b27e58174ca827e389b361ce4837e6ae11ced", class: "nylas-min-booking-notice", part: "nmbn" }, a("label", { key: "1db3f2c7c54b05744b64ad40c951595122d317c5" }, "Minimum booking notice", a("span", { key: "a4c7db6f534b570cbbf5af4c3d60d97843599a4b", class: "label-icon" }, a("tooltip-component", { key: "f7d6ba6b294f85c9d573933b6916cd50ad830d2a" }, a("info-icon", { key: "16b11bfaa5affbe15748f6ae6129c1e5a6fcfe32", slot: "tooltip-icon" }), a("span", { key: "1fe829a53fa3dcef0a6d5954717889d9e92d0c68", slot: "tooltip-content" }, "The minimum amount of time in the future for planning the event.")))), a("time-period-selector", { key: "e4a545fc471e67447cab675ccd11fa786337fc23", 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 })));
|
|
1588
|
+
}
|
|
1589
|
+
static get formAssociated() {
|
|
1590
|
+
return !0;
|
|
1591
|
+
}
|
|
1592
|
+
get host() {
|
|
1593
|
+
return w(this);
|
|
1594
|
+
}
|
|
1595
|
+
static get watchers() {
|
|
1596
|
+
return {
|
|
1597
|
+
name: ["elementNameChangedHandler"],
|
|
1598
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"],
|
|
1599
|
+
availableDaysInFuture: ["availableDaysInFutureChanged"]
|
|
1600
|
+
};
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
cn([
|
|
1604
|
+
C({
|
|
1605
|
+
name: "nylas-min-booking-notice",
|
|
1606
|
+
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
1607
|
+
eventToProps: {},
|
|
1608
|
+
fireRegisterEvent: !0
|
|
1609
|
+
}),
|
|
1610
|
+
ke("design:type", Function),
|
|
1611
|
+
ke("design:paramtypes", []),
|
|
1612
|
+
ke("design:returntype", void 0)
|
|
1613
|
+
], We.prototype, "render", null);
|
|
1614
|
+
We.style = dn;
|
|
1615
|
+
const fn = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', pn = fn;
|
|
1616
|
+
var un = function(e, t, n, i) {
|
|
1617
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
1618
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
1619
|
+
s = Reflect.decorate(e, t, n, i);
|
|
1620
|
+
else
|
|
1621
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
1622
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
1623
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
1624
|
+
}, xe = function(e, t) {
|
|
1625
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
1626
|
+
return Reflect.metadata(e, t);
|
|
1627
|
+
};
|
|
1628
|
+
const Ue = class {
|
|
1629
|
+
constructor(e) {
|
|
1630
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.minCancellationNotice = void 0, this.name = "min-cancellation-notice", this.selectedNumber = 1, this.selectedPeriod = "day";
|
|
1498
1631
|
}
|
|
1499
1632
|
elementNameChangedHandler(e) {
|
|
1500
1633
|
d("nylas-min-cancellation-notice", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -1522,22 +1655,22 @@ const Fe = class {
|
|
|
1522
1655
|
}
|
|
1523
1656
|
timePeriodChangedHandler(e) {
|
|
1524
1657
|
const { number: t, period: n } = e.detail;
|
|
1525
|
-
let
|
|
1526
|
-
const
|
|
1527
|
-
n === "minute" ?
|
|
1658
|
+
let i;
|
|
1659
|
+
const l = 60, s = l * 24, o = s * 7, r = s * 30;
|
|
1660
|
+
n === "minute" ? i = t : n === "hour" ? i = t * l : n === "day" ? i = t * s : n === "week" ? i = t * o : n === "month" ? i = t * r : i = 0, this.valueChanged.emit({ value: i, name: "minCancellationNotice" }), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(i.toString(), this.name);
|
|
1528
1661
|
}
|
|
1529
1662
|
updateNumberAndPeriodFromMinutes(e) {
|
|
1530
|
-
let s,
|
|
1531
|
-
e >= 43200 ? (s = Math.floor(e / 43200),
|
|
1663
|
+
let s, o;
|
|
1664
|
+
e >= 43200 ? (s = Math.floor(e / 43200), o = "month") : e >= 10080 ? (s = Math.floor(e / 10080), o = "week") : e >= 1440 ? (s = Math.floor(e / 1440), o = "day") : e >= 60 ? (s = Math.floor(e / 60), o = "hour") : (s = e, o = "minute"), this.selectedNumber = s, this.selectedPeriod = o;
|
|
1532
1665
|
}
|
|
1533
1666
|
render() {
|
|
1534
|
-
return
|
|
1667
|
+
return a(_, { key: "8cccdce4a9960ecf6b860b638da26c50a68104c4" }, a("div", { key: "82854ad81861233231fe4a1e8006196155328141", class: "nylas-min-cancellation-notice", part: "nmcn" }, a("label", { key: "db3eddec3a8fb28c0b035d4d4cd61986832dff0b" }, "Minimum cancellation notice", a("span", { key: "137472a58beef549599289b04be8fde01e7d81da", class: "label-icon" }, a("tooltip-component", { key: "2cfcceb4c7144553ac85d32da46fbd894955a9ee" }, a("info-icon", { key: "9e13ddb61e10e10a5fa426fb6a2b56159597ea88", slot: "tooltip-icon" }), a("span", { key: "9670035ec49fe0db37564d2d44d30f2197a7ec85", slot: "tooltip-content" }, "Set the minimum amount of time required to cancel an event.")))), a("time-period-selector", { key: "0e7b9f7b99d7e10c2c39c5affdfc014a403146ad", 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 })));
|
|
1535
1668
|
}
|
|
1536
1669
|
static get formAssociated() {
|
|
1537
1670
|
return !0;
|
|
1538
1671
|
}
|
|
1539
1672
|
get host() {
|
|
1540
|
-
return
|
|
1673
|
+
return w(this);
|
|
1541
1674
|
}
|
|
1542
1675
|
static get watchers() {
|
|
1543
1676
|
return {
|
|
@@ -1547,163 +1680,163 @@ const Fe = class {
|
|
|
1547
1680
|
};
|
|
1548
1681
|
}
|
|
1549
1682
|
};
|
|
1550
|
-
|
|
1683
|
+
un([
|
|
1551
1684
|
C({
|
|
1552
1685
|
name: "nylas-min-cancellation-notice",
|
|
1553
1686
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
1554
1687
|
eventToProps: {},
|
|
1555
1688
|
fireRegisterEvent: !0
|
|
1556
1689
|
}),
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
],
|
|
1561
|
-
|
|
1562
|
-
var
|
|
1690
|
+
xe("design:type", Function),
|
|
1691
|
+
xe("design:paramtypes", []),
|
|
1692
|
+
xe("design:returntype", void 0)
|
|
1693
|
+
], Ue.prototype, "render", null);
|
|
1694
|
+
Ue.style = pn;
|
|
1695
|
+
var Ze = { exports: {} };
|
|
1563
1696
|
(function(e, t) {
|
|
1564
|
-
(function(n,
|
|
1565
|
-
e.exports =
|
|
1566
|
-
})(
|
|
1567
|
-
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" },
|
|
1697
|
+
(function(n, i) {
|
|
1698
|
+
e.exports = i();
|
|
1699
|
+
})(Xe, function() {
|
|
1700
|
+
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d\d/, s = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, r = {}, h = function(c) {
|
|
1568
1701
|
return (c = +c) + (c > 68 ? 1900 : 2e3);
|
|
1569
|
-
},
|
|
1570
|
-
return function(
|
|
1571
|
-
this[c] = +
|
|
1702
|
+
}, f = function(c) {
|
|
1703
|
+
return function(p) {
|
|
1704
|
+
this[c] = +p;
|
|
1572
1705
|
};
|
|
1573
1706
|
}, u = [/[+-]\d\d:?(\d\d)?|Z/, function(c) {
|
|
1574
|
-
(this.zone || (this.zone = {})).offset = function(
|
|
1575
|
-
if (!
|
|
1707
|
+
(this.zone || (this.zone = {})).offset = function(p) {
|
|
1708
|
+
if (!p || p === "Z")
|
|
1576
1709
|
return 0;
|
|
1577
|
-
var
|
|
1578
|
-
return y === 0 ? 0 :
|
|
1710
|
+
var m = p.match(/([+-]|\d\d)/g), y = 60 * m[1] + (+m[2] || 0);
|
|
1711
|
+
return y === 0 ? 0 : m[0] === "+" ? -y : y;
|
|
1579
1712
|
}(c);
|
|
1580
1713
|
}], g = function(c) {
|
|
1581
|
-
var
|
|
1582
|
-
return
|
|
1583
|
-
}, v = function(c,
|
|
1584
|
-
var
|
|
1714
|
+
var p = r[c];
|
|
1715
|
+
return p && (p.indexOf ? p : p.s.concat(p.f));
|
|
1716
|
+
}, v = function(c, p) {
|
|
1717
|
+
var m, y = r.meridiem;
|
|
1585
1718
|
if (y) {
|
|
1586
|
-
for (var
|
|
1587
|
-
if (c.indexOf(y(
|
|
1588
|
-
|
|
1719
|
+
for (var O = 1; O <= 24; O += 1)
|
|
1720
|
+
if (c.indexOf(y(O, 0, p)) > -1) {
|
|
1721
|
+
m = O > 12;
|
|
1589
1722
|
break;
|
|
1590
1723
|
}
|
|
1591
1724
|
} else
|
|
1592
|
-
|
|
1593
|
-
return
|
|
1594
|
-
},
|
|
1725
|
+
m = c === (p ? "pm" : "PM");
|
|
1726
|
+
return m;
|
|
1727
|
+
}, D = { A: [o, function(c) {
|
|
1595
1728
|
this.afternoon = v(c, !1);
|
|
1596
|
-
}], a: [
|
|
1729
|
+
}], a: [o, function(c) {
|
|
1597
1730
|
this.afternoon = v(c, !0);
|
|
1598
1731
|
}], S: [/\d/, function(c) {
|
|
1599
1732
|
this.milliseconds = 100 * +c;
|
|
1600
|
-
}], SS: [
|
|
1733
|
+
}], SS: [l, function(c) {
|
|
1601
1734
|
this.milliseconds = 10 * +c;
|
|
1602
1735
|
}], SSS: [/\d{3}/, function(c) {
|
|
1603
1736
|
this.milliseconds = +c;
|
|
1604
|
-
}], s: [s,
|
|
1605
|
-
var
|
|
1606
|
-
if (this.day =
|
|
1737
|
+
}], s: [s, f("seconds")], ss: [s, f("seconds")], m: [s, f("minutes")], mm: [s, f("minutes")], H: [s, f("hours")], h: [s, f("hours")], HH: [s, f("hours")], hh: [s, f("hours")], D: [s, f("day")], DD: [l, f("day")], Do: [o, function(c) {
|
|
1738
|
+
var p = r.ordinal, m = c.match(/\d+/);
|
|
1739
|
+
if (this.day = m[0], p)
|
|
1607
1740
|
for (var y = 1; y <= 31; y += 1)
|
|
1608
|
-
|
|
1609
|
-
}], M: [s,
|
|
1610
|
-
var
|
|
1741
|
+
p(y).replace(/\[|\]/g, "") === c && (this.day = y);
|
|
1742
|
+
}], M: [s, f("month")], MM: [l, f("month")], MMM: [o, function(c) {
|
|
1743
|
+
var p = g("months"), m = (g("monthsShort") || p.map(function(y) {
|
|
1611
1744
|
return y.slice(0, 3);
|
|
1612
1745
|
})).indexOf(c) + 1;
|
|
1613
|
-
if (
|
|
1746
|
+
if (m < 1)
|
|
1614
1747
|
throw new Error();
|
|
1615
|
-
this.month =
|
|
1616
|
-
}], MMMM: [
|
|
1617
|
-
var
|
|
1618
|
-
if (
|
|
1748
|
+
this.month = m % 12 || m;
|
|
1749
|
+
}], MMMM: [o, function(c) {
|
|
1750
|
+
var p = g("months").indexOf(c) + 1;
|
|
1751
|
+
if (p < 1)
|
|
1619
1752
|
throw new Error();
|
|
1620
|
-
this.month =
|
|
1621
|
-
}], Y: [/[+-]?\d+/,
|
|
1753
|
+
this.month = p % 12 || p;
|
|
1754
|
+
}], Y: [/[+-]?\d+/, f("year")], YY: [l, function(c) {
|
|
1622
1755
|
this.year = h(c);
|
|
1623
|
-
}], YYYY: [/\d{4}/,
|
|
1756
|
+
}], YYYY: [/\d{4}/, f("year")], Z: u, ZZ: u };
|
|
1624
1757
|
function x(c) {
|
|
1625
|
-
var
|
|
1626
|
-
|
|
1627
|
-
for (var y = (c =
|
|
1628
|
-
var
|
|
1629
|
-
return
|
|
1630
|
-
return
|
|
1758
|
+
var p, m;
|
|
1759
|
+
p = c, m = r && r.formats;
|
|
1760
|
+
for (var y = (c = p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(R, L, S) {
|
|
1761
|
+
var T = S && S.toUpperCase();
|
|
1762
|
+
return L || m[S] || n[S] || m[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, A, P) {
|
|
1763
|
+
return A || P.slice(1);
|
|
1631
1764
|
});
|
|
1632
|
-
})).match(
|
|
1633
|
-
var
|
|
1634
|
-
y[E] =
|
|
1765
|
+
})).match(i), O = y.length, E = 0; E < O; E += 1) {
|
|
1766
|
+
var Y = y[E], F = D[Y], $ = F && F[0], H = F && F[1];
|
|
1767
|
+
y[E] = H ? { regex: $, parser: H } : Y.replace(/^\[|\]$/g, "");
|
|
1635
1768
|
}
|
|
1636
1769
|
return function(R) {
|
|
1637
|
-
for (var
|
|
1638
|
-
var
|
|
1639
|
-
if (typeof
|
|
1640
|
-
|
|
1770
|
+
for (var L = {}, S = 0, T = 0; S < O; S += 1) {
|
|
1771
|
+
var M = y[S];
|
|
1772
|
+
if (typeof M == "string")
|
|
1773
|
+
T += M.length;
|
|
1641
1774
|
else {
|
|
1642
|
-
var
|
|
1643
|
-
P.call(
|
|
1775
|
+
var A = M.regex, P = M.parser, G = R.slice(T), j = A.exec(G)[0];
|
|
1776
|
+
P.call(L, j), R = R.replace(j, "");
|
|
1644
1777
|
}
|
|
1645
1778
|
}
|
|
1646
1779
|
return function(z) {
|
|
1647
|
-
var
|
|
1648
|
-
if (
|
|
1649
|
-
var
|
|
1650
|
-
|
|
1780
|
+
var I = z.afternoon;
|
|
1781
|
+
if (I !== void 0) {
|
|
1782
|
+
var B = z.hours;
|
|
1783
|
+
I ? B < 12 && (z.hours += 12) : B === 12 && (z.hours = 0), delete z.afternoon;
|
|
1651
1784
|
}
|
|
1652
|
-
}(
|
|
1785
|
+
}(L), L;
|
|
1653
1786
|
};
|
|
1654
1787
|
}
|
|
1655
|
-
return function(c,
|
|
1656
|
-
|
|
1657
|
-
var y =
|
|
1788
|
+
return function(c, p, m) {
|
|
1789
|
+
m.p.customParseFormat = !0, c && c.parseTwoDigitYear && (h = c.parseTwoDigitYear);
|
|
1790
|
+
var y = p.prototype, O = y.parse;
|
|
1658
1791
|
y.parse = function(E) {
|
|
1659
|
-
var
|
|
1660
|
-
this.$u =
|
|
1661
|
-
var
|
|
1662
|
-
if (typeof
|
|
1663
|
-
var R =
|
|
1664
|
-
|
|
1792
|
+
var Y = E.date, F = E.utc, $ = E.args;
|
|
1793
|
+
this.$u = F;
|
|
1794
|
+
var H = $[1];
|
|
1795
|
+
if (typeof H == "string") {
|
|
1796
|
+
var R = $[2] === !0, L = $[3] === !0, S = R || L, T = $[2];
|
|
1797
|
+
L && (T = $[2]), r = this.$locale(), !R && T && (r = m.Ls[T]), this.$d = function(G, j, z) {
|
|
1665
1798
|
try {
|
|
1666
|
-
if (["x", "X"].indexOf(
|
|
1667
|
-
return new Date((
|
|
1668
|
-
var
|
|
1669
|
-
|
|
1670
|
-
var
|
|
1671
|
-
return
|
|
1799
|
+
if (["x", "X"].indexOf(j) > -1)
|
|
1800
|
+
return new Date((j === "X" ? 1e3 : 1) * G);
|
|
1801
|
+
var I = x(j)(G), B = I.year, K = I.month, Ge = I.day, Ke = I.hours, Je = I.minutes, qe = I.seconds, Ve = I.milliseconds, we = I.zone, Q = /* @__PURE__ */ new Date(), X = Ge || (B || K ? 1 : Q.getDate()), ee = B || Q.getFullYear(), J = 0;
|
|
1802
|
+
B && !K || (J = K > 0 ? K - 1 : Q.getMonth());
|
|
1803
|
+
var te = Ke || 0, ne = Je || 0, ae = qe || 0, ie = Ve || 0;
|
|
1804
|
+
return we ? new Date(Date.UTC(ee, J, X, te, ne, ae, ie + 60 * we.offset * 1e3)) : z ? new Date(Date.UTC(ee, J, X, te, ne, ae, ie)) : new Date(ee, J, X, te, ne, ae, ie);
|
|
1672
1805
|
} catch {
|
|
1673
1806
|
return /* @__PURE__ */ new Date("");
|
|
1674
1807
|
}
|
|
1675
|
-
}(
|
|
1676
|
-
} else if (
|
|
1677
|
-
for (var
|
|
1678
|
-
|
|
1679
|
-
var P =
|
|
1808
|
+
}(Y, H, F), this.init(), T && T !== !0 && (this.$L = this.locale(T).$L), S && Y != this.format(H) && (this.$d = /* @__PURE__ */ new Date("")), r = {};
|
|
1809
|
+
} else if (H instanceof Array)
|
|
1810
|
+
for (var M = H.length, A = 1; A <= M; A += 1) {
|
|
1811
|
+
$[1] = H[A - 1];
|
|
1812
|
+
var P = m.apply(this, $);
|
|
1680
1813
|
if (P.isValid()) {
|
|
1681
1814
|
this.$d = P.$d, this.$L = P.$L, this.init();
|
|
1682
1815
|
break;
|
|
1683
1816
|
}
|
|
1684
|
-
|
|
1817
|
+
A === M && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1685
1818
|
}
|
|
1686
1819
|
else
|
|
1687
|
-
|
|
1820
|
+
O.call(this, E);
|
|
1688
1821
|
};
|
|
1689
1822
|
};
|
|
1690
1823
|
});
|
|
1691
|
-
})(
|
|
1692
|
-
const
|
|
1693
|
-
|
|
1694
|
-
const
|
|
1824
|
+
})(Ze);
|
|
1825
|
+
const hn = Ze.exports, bn = ':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}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times 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:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}', mn = bn;
|
|
1826
|
+
Z.extend(hn);
|
|
1827
|
+
const yn = class {
|
|
1695
1828
|
constructor(e) {
|
|
1696
|
-
|
|
1829
|
+
b(this, e), this.timeChange = k(this, "timeChange", 7), this.formError = k(this, "formError", 7), this.time = void 0, this.minimumStartTime = null, this.placeholder = "hh:mmam/pm", this.name = void 0, this.hasError = !1, this.err = "", this.showTimes = !1, this.ariaActivedescendant = "", this.times = this.generateTimes(), this.shouldAutoScroll = !1;
|
|
1697
1830
|
}
|
|
1698
1831
|
handleOutsideClick(e) {
|
|
1699
1832
|
!e.composedPath().includes(this.el) && this.showTimes && (this.showTimes = !1);
|
|
1700
1833
|
}
|
|
1701
1834
|
minimumStartTimeChangedHandler() {
|
|
1702
1835
|
if (this.minimumStartTime) {
|
|
1703
|
-
let e =
|
|
1836
|
+
let e = Z().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4, -2)));
|
|
1704
1837
|
this.minimumStartTime.slice(-2).toLowerCase() === "pm" && parseInt(this.minimumStartTime) !== 12 ? e = e.add(12, "hour") : this.minimumStartTime.slice(-2).toLowerCase() === "am" && parseInt(this.minimumStartTime) === 12 && (e = e.subtract(12, "hour")), this.times = this.generateTimes();
|
|
1705
|
-
const t =
|
|
1706
|
-
|
|
1838
|
+
const t = Z(this.times[0].value, "hh:mma");
|
|
1839
|
+
Z(this.time, "hh:mma").isBefore(t) && (this.err = "Invalid", this.formError.emit({
|
|
1707
1840
|
key: this.el.id,
|
|
1708
1841
|
message: "Invalid"
|
|
1709
1842
|
}));
|
|
@@ -1711,7 +1844,7 @@ const sn = class {
|
|
|
1711
1844
|
}
|
|
1712
1845
|
componentDidRender() {
|
|
1713
1846
|
if (this.showTimes && this.shouldAutoScroll) {
|
|
1714
|
-
const e =
|
|
1847
|
+
const e = se(this.time), t = this.times.findIndex((n) => n.value === e);
|
|
1715
1848
|
t > -1 && (this.shouldAutoScroll = !1, this.scrollToViewWithinParent(t));
|
|
1716
1849
|
return;
|
|
1717
1850
|
}
|
|
@@ -1721,7 +1854,7 @@ const sn = class {
|
|
|
1721
1854
|
n[0] === "00" && n[1].slice(-2) == "pm" && (this.err = "Invalid", this.formError.emit({
|
|
1722
1855
|
key: this.el.id,
|
|
1723
1856
|
message: "Invalid"
|
|
1724
|
-
})),
|
|
1857
|
+
})), le(t) ? (this.err = "", this.formError.emit({
|
|
1725
1858
|
key: this.el.id,
|
|
1726
1859
|
message: ""
|
|
1727
1860
|
})) : (this.err = "Invalid", this.formError.emit({
|
|
@@ -1735,7 +1868,7 @@ const sn = class {
|
|
|
1735
1868
|
handleTimeAutocomplete(e) {
|
|
1736
1869
|
var n;
|
|
1737
1870
|
const t = (n = e.target) == null ? void 0 : n.value;
|
|
1738
|
-
if (!
|
|
1871
|
+
if (!le(t)) {
|
|
1739
1872
|
this.err = "Invalid", this.formError.emit({
|
|
1740
1873
|
key: this.el.id,
|
|
1741
1874
|
message: "Invalid"
|
|
@@ -1743,18 +1876,18 @@ const sn = class {
|
|
|
1743
1876
|
return;
|
|
1744
1877
|
}
|
|
1745
1878
|
if (t === "") {
|
|
1746
|
-
const
|
|
1879
|
+
const i = Te().format("hh:mma");
|
|
1747
1880
|
this.timeChange.emit({
|
|
1748
1881
|
key: this.el.id,
|
|
1749
|
-
value:
|
|
1882
|
+
value: i
|
|
1750
1883
|
});
|
|
1751
1884
|
return;
|
|
1752
1885
|
}
|
|
1753
|
-
if (!
|
|
1754
|
-
const
|
|
1886
|
+
if (!Ie(t)) {
|
|
1887
|
+
const i = se(t);
|
|
1755
1888
|
this.timeChange.emit({
|
|
1756
1889
|
key: this.el.id,
|
|
1757
|
-
value:
|
|
1890
|
+
value: i
|
|
1758
1891
|
});
|
|
1759
1892
|
return;
|
|
1760
1893
|
}
|
|
@@ -1766,29 +1899,29 @@ const sn = class {
|
|
|
1766
1899
|
handleOnInput(e) {
|
|
1767
1900
|
var n;
|
|
1768
1901
|
const t = (n = e.target) == null ? void 0 : n.value;
|
|
1769
|
-
if (
|
|
1902
|
+
if (le(t)) {
|
|
1770
1903
|
if (t === "") {
|
|
1771
|
-
const
|
|
1772
|
-
|
|
1904
|
+
const i = Te().format("hh:mma"), l = this.times.findIndex((s) => s.value === i);
|
|
1905
|
+
l > -1 && this.scrollToViewWithinParent(l);
|
|
1773
1906
|
return;
|
|
1774
1907
|
}
|
|
1775
|
-
if (!
|
|
1776
|
-
const
|
|
1777
|
-
|
|
1908
|
+
if (!Ie(t)) {
|
|
1909
|
+
const i = se(t), l = this.times.findIndex((s) => s.value === i);
|
|
1910
|
+
l > -1 && this.scrollToViewWithinParent(l);
|
|
1778
1911
|
return;
|
|
1779
1912
|
}
|
|
1780
1913
|
}
|
|
1781
1914
|
}
|
|
1782
1915
|
generateTimes() {
|
|
1783
1916
|
const e = [];
|
|
1784
|
-
let t =
|
|
1785
|
-
this.minimumStartTime && (t =
|
|
1786
|
-
const n = t.endOf("day").diff(t, "minutes"),
|
|
1787
|
-
for (let
|
|
1788
|
-
const s = t.add(
|
|
1789
|
-
if (
|
|
1917
|
+
let t = Z().set("hour", 0).set("minute", 0).set("second", 0);
|
|
1918
|
+
this.minimumStartTime && (t = Z(this.minimumStartTime, "hh:mma"));
|
|
1919
|
+
const n = t.endOf("day").diff(t, "minutes"), i = Math.round(n / 15);
|
|
1920
|
+
for (let l = 0; l < i + 1; l++) {
|
|
1921
|
+
const s = t.add(l * 15, "minute");
|
|
1922
|
+
if (l == i && s.format("hh:mma").includes("am"))
|
|
1790
1923
|
break;
|
|
1791
|
-
e.push({ id:
|
|
1924
|
+
e.push({ id: l, value: s.format("hh:mma") });
|
|
1792
1925
|
}
|
|
1793
1926
|
return e;
|
|
1794
1927
|
}
|
|
@@ -1801,66 +1934,66 @@ const sn = class {
|
|
|
1801
1934
|
if (this.ariaActivedescendant === "")
|
|
1802
1935
|
this.ariaActivedescendant = this.times[0].id.toString(), this.focusOption(0);
|
|
1803
1936
|
else {
|
|
1804
|
-
const t = this.times.findIndex((
|
|
1937
|
+
const t = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), n = t + 1 < this.times.length ? t + 1 : 0;
|
|
1805
1938
|
this.ariaActivedescendant = this.times[n].id.toString(), this.focusOption(n);
|
|
1806
1939
|
}
|
|
1807
1940
|
} else if (e.key === "ArrowUp")
|
|
1808
1941
|
if (e.preventDefault(), this.ariaActivedescendant === "")
|
|
1809
1942
|
this.ariaActivedescendant = this.times[this.times.length - 1].id.toString(), this.focusOption(this.times.length - 1);
|
|
1810
1943
|
else {
|
|
1811
|
-
const t = this.times.findIndex((
|
|
1944
|
+
const t = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), n = t - 1 >= 0 ? t - 1 : this.times.length - 1;
|
|
1812
1945
|
this.ariaActivedescendant = this.times[n].id.toString(), this.focusOption(n);
|
|
1813
1946
|
}
|
|
1814
1947
|
else
|
|
1815
1948
|
e.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
|
|
1816
1949
|
}
|
|
1817
1950
|
handleListboxKeydown(e) {
|
|
1818
|
-
const t = this.times, n = t.findIndex((
|
|
1951
|
+
const t = this.times, n = t.findIndex((i) => i.id.toString() === this.ariaActivedescendant);
|
|
1819
1952
|
if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
|
|
1820
1953
|
e.preventDefault();
|
|
1821
|
-
const
|
|
1822
|
-
this.ariaActivedescendant = t[
|
|
1954
|
+
const i = n + 1 < t.length ? n + 1 : 0;
|
|
1955
|
+
this.ariaActivedescendant = t[i].id.toString(), this.focusOption(i);
|
|
1823
1956
|
} else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
|
|
1824
1957
|
e.preventDefault();
|
|
1825
|
-
const
|
|
1826
|
-
this.ariaActivedescendant = t[
|
|
1958
|
+
const i = n - 1 >= 0 ? n - 1 : t.length - 1;
|
|
1959
|
+
this.ariaActivedescendant = t[i].id.toString(), this.focusOption(i);
|
|
1827
1960
|
} else if (e.key === "Enter") {
|
|
1828
1961
|
if (e.preventDefault(), this.ariaActivedescendant) {
|
|
1829
|
-
const
|
|
1830
|
-
this.handleTimeChange(e,
|
|
1962
|
+
const i = t[n];
|
|
1963
|
+
this.handleTimeChange(e, i.value), this.showTimes = !1, this.ariaActivedescendant = "", this.timeInput.focus();
|
|
1831
1964
|
}
|
|
1832
1965
|
} else
|
|
1833
1966
|
e.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
|
|
1834
1967
|
}
|
|
1835
1968
|
scrollToViewWithinParent(e) {
|
|
1836
|
-
var
|
|
1837
|
-
const t = this.times[e], n = (
|
|
1969
|
+
var o;
|
|
1970
|
+
const t = this.times[e], n = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(t.id.toString()), i = this.timeMenu;
|
|
1838
1971
|
this.ariaActivedescendant = t.id.toString();
|
|
1839
|
-
const
|
|
1840
|
-
|
|
1972
|
+
const l = n.getBoundingClientRect(), s = i.getBoundingClientRect();
|
|
1973
|
+
l.top < s.top ? i.scrollTop -= s.top - l.top : l.bottom > s.bottom && (i.scrollTop += l.bottom - s.bottom), l.left < s.left ? i.scrollLeft -= s.left - l.left : l.right > s.right && (i.scrollLeft += l.right - s.right);
|
|
1841
1974
|
}
|
|
1842
1975
|
focusOption(e) {
|
|
1843
|
-
var
|
|
1976
|
+
var l;
|
|
1844
1977
|
const t = this.times[e];
|
|
1845
1978
|
if (!t)
|
|
1846
1979
|
return;
|
|
1847
|
-
const n = t.id.toString(),
|
|
1848
|
-
|
|
1980
|
+
const n = t.id.toString(), i = (l = this.el.shadowRoot) == null ? void 0 : l.getElementById(n);
|
|
1981
|
+
i && (i.focus(), i.scrollIntoView({ behavior: "smooth", block: "nearest" }));
|
|
1849
1982
|
}
|
|
1850
1983
|
render() {
|
|
1851
|
-
return
|
|
1984
|
+
return a(_, { key: "a6c2e840c56397a1365b3205e793df4157c734d0" }, a("div", { key: "d36acf9fb02fa1ae9337d02b161d51880a68422e", class: "time-picker", part: "time-picker" }, a("input", { key: "d574493f83e42ef66a64d14a21abaaf38f7926c3", type: "text", name: this.name, id: this.name, part: "time-input", class: {
|
|
1852
1985
|
"time-input": !0,
|
|
1853
1986
|
error: !!this.err || this.hasError
|
|
1854
1987
|
}, ref: (e) => this.timeInput = e, value: this.time, onClick: () => {
|
|
1855
1988
|
this.showTimes = !this.showTimes, this.shouldAutoScroll = !0;
|
|
1856
|
-
}, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.showTimes ? "true" : "false", placeholder: this.placeholder, onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e), onBlur: (e) => this.handleTimeAutocomplete(e) }), this.err &&
|
|
1989
|
+
}, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.showTimes ? "true" : "false", placeholder: this.placeholder, onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e), onBlur: (e) => this.handleTimeAutocomplete(e) }), this.err && a("div", { class: "invalid-time-icon" }), this.showTimes && a("div", { class: "times", part: "times", ref: (e) => this.timeMenu = e }, a("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (e) => this.handleListboxKeydown(e) }, this.times.map((e) => a("li", { tabindex: "0", key: e.id, id: e.id.toString(), class: {
|
|
1857
1990
|
focused: this.ariaActivedescendant === e.id.toString()
|
|
1858
1991
|
}, onClick: (t) => {
|
|
1859
1992
|
this.handleTimeChange(t, e.value), this.showTimes = !1, this.timeInput.focus();
|
|
1860
|
-
}, role: "option" }, `${e.value}`)))), !this.showTimes && this.err &&
|
|
1993
|
+
}, role: "option" }, `${e.value}`)))), !this.showTimes && this.err && a("p", { class: "error", id: "email-error" }, this.err)));
|
|
1861
1994
|
}
|
|
1862
1995
|
get el() {
|
|
1863
|
-
return
|
|
1996
|
+
return w(this);
|
|
1864
1997
|
}
|
|
1865
1998
|
static get watchers() {
|
|
1866
1999
|
return {
|
|
@@ -1868,28 +2001,157 @@ const sn = class {
|
|
|
1868
2001
|
};
|
|
1869
2002
|
}
|
|
1870
2003
|
};
|
|
1871
|
-
|
|
2004
|
+
yn.style = mn;
|
|
2005
|
+
const gn = ':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}', vn = gn;
|
|
2006
|
+
var kn = function(e, t, n, i) {
|
|
2007
|
+
var l = arguments.length, s = l < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, n) : i, o;
|
|
2008
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2009
|
+
s = Reflect.decorate(e, t, n, i);
|
|
2010
|
+
else
|
|
2011
|
+
for (var r = e.length - 1; r >= 0; r--)
|
|
2012
|
+
(o = e[r]) && (s = (l < 3 ? o(s) : l > 3 ? o(t, n, s) : o(t, n)) || s);
|
|
2013
|
+
return l > 3 && s && Object.defineProperty(t, n, s), s;
|
|
2014
|
+
}, _e = function(e, t) {
|
|
2015
|
+
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2016
|
+
return Reflect.metadata(e, t);
|
|
2017
|
+
};
|
|
2018
|
+
const q = 15, Ye = class {
|
|
2019
|
+
constructor(e) {
|
|
2020
|
+
var t, n, i, l, s, o;
|
|
2021
|
+
b(this, e), this.valueChanged = k(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.selectedConfiguration = void 0, this.name = "timeslot-picker", this.eventDurationMinutes = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.duration_minutes) ?? 5, this.defaultIntervalMinutes = ((l = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : l.interval_minutes) ?? this.eventDurationMinutes, this.defaultRoundTo = ((o = (s = this.selectedConfiguration) == null ? void 0 : s.availability) == null ? void 0 : o.round_to) ?? void 0, this.selectedInterval = this.defaultIntervalMinutes, this.selectedRoundTo = !!(this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes);
|
|
2022
|
+
}
|
|
2023
|
+
elementNameChangedHandler(e) {
|
|
2024
|
+
d("nylas-timeslot-interval", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
2025
|
+
}
|
|
2026
|
+
selectedConfigurationChangedHandler(e) {
|
|
2027
|
+
var t, n;
|
|
2028
|
+
d("nylas-timeslot-interval", "selectedConfigurationChangedHandler", e), this.defaultIntervalMinutes = ((t = e.availability) == null ? void 0 : t.interval_minutes) ?? this.eventDurationMinutes, this.defaultRoundTo = ((n = e.availability) == null ? void 0 : n.round_to) ?? void 0, this.selectedInterval = this.defaultIntervalMinutes, this.selectedRoundTo = !!(this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes);
|
|
2029
|
+
}
|
|
2030
|
+
connectedCallback() {
|
|
2031
|
+
d("nylas-timeslot-interval", "connectedCallback");
|
|
2032
|
+
}
|
|
2033
|
+
disconnectedCallback() {
|
|
2034
|
+
d("nylas-timeslot-interval", "disconnectedCallback");
|
|
2035
|
+
}
|
|
2036
|
+
componentWillLoad() {
|
|
2037
|
+
d("nylas-timeslot-interval", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
2038
|
+
}
|
|
2039
|
+
componentDidLoad() {
|
|
2040
|
+
d("nylas-timeslot-interval", "componentDidLoad");
|
|
2041
|
+
}
|
|
2042
|
+
componentWillUpdate() {
|
|
2043
|
+
d("nylas-timeslot-interval", "componentWillUpdate");
|
|
2044
|
+
}
|
|
2045
|
+
componentDidUpdate() {
|
|
2046
|
+
d("nylas-timeslot-interval", "componentDidUpdate");
|
|
2047
|
+
}
|
|
2048
|
+
componentWillRender() {
|
|
2049
|
+
d("nylas-timeslot-interval", "componentWillRender");
|
|
2050
|
+
}
|
|
2051
|
+
componentDidRender() {
|
|
2052
|
+
d("nylas-timeslot-interval", "componentDidRender");
|
|
2053
|
+
}
|
|
2054
|
+
nylasFormDropdownChangedHandler(e) {
|
|
2055
|
+
d("nylas-timeslot-interval", "nylasFormDropdownChangedHandler", e.detail), e.detail.value === "duration" ? this.selectedInterval = this.eventDurationMinutes : this.selectedInterval = parseInt(e.detail.value), console.log("nylasFormDropdownChanged selectedRoundTo", this.selectedRoundTo), this.valueChanged.emit({
|
|
2056
|
+
value: JSON.stringify({
|
|
2057
|
+
interval: this.selectedInterval,
|
|
2058
|
+
roundTo: this.selectedRoundTo ? this.selectedInterval : q
|
|
2059
|
+
}),
|
|
2060
|
+
name: this.name
|
|
2061
|
+
}), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval : q }), this.name);
|
|
2062
|
+
}
|
|
2063
|
+
radioSelectionChangedHandler(e) {
|
|
2064
|
+
d("nylas-timeslot-interval", "radioSelectionChangedHandler", e.detail), e.detail.value === "no-rounding" ? this.selectedRoundTo = !1 : this.selectedRoundTo = !0, console.log("selectedRoundTo", this.selectedRoundTo), this.valueChanged.emit({
|
|
2065
|
+
value: JSON.stringify({
|
|
2066
|
+
interval: this.selectedInterval,
|
|
2067
|
+
roundTo: this.selectedRoundTo ? this.selectedInterval : q
|
|
2068
|
+
}),
|
|
2069
|
+
name: this.name
|
|
2070
|
+
}), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(JSON.stringify({ interval: this.selectedInterval, roundTo: this.selectedRoundTo ? this.selectedInterval : q }), this.name);
|
|
2071
|
+
}
|
|
2072
|
+
render() {
|
|
2073
|
+
const e = [
|
|
2074
|
+
{ value: "duration", label: "Length of the booking" },
|
|
2075
|
+
{ value: "5", label: "5 mins" },
|
|
2076
|
+
{ value: "10", label: "10 mins" },
|
|
2077
|
+
{ value: "15", label: "15 mins" },
|
|
2078
|
+
{ value: "20", label: "20 mins" },
|
|
2079
|
+
{ value: "30", label: "30 mins" },
|
|
2080
|
+
{ value: "45", label: "45 mins" },
|
|
2081
|
+
{ value: "60", label: "60 mins" }
|
|
2082
|
+
];
|
|
2083
|
+
return a(_, { key: "218908e5caee3df264532000ee406e888a7ae6b5" }, a("div", { key: "c7fbf0c98a0a1999541a2970eafa7ab3bb76181f", class: "nylas-timeslot-interval", part: "nti" }, a("div", { key: "2e434be03d0bf571a7dc9a984c8d7fd243faab2f", class: "header", part: "nti__header" }, a("h3", { key: "957af7f458ed3dde113b473e46f01c18636a26ff" }, "Time-slot interval preferences"), a("p", { key: "5d16f7c33bcba2e3e457f07b85c9a3159f5f28fc" }, "Choose your interval preference for time-slots.")), a("div", { key: "9e2a6327ae104b162ad1882ff42e3b39b634c7e4", class: "nylas-timeslot-interval__dropdown" }, a("span", { key: "70bec24786bdcfdf07356f91640be14ee5d2c147", class: "label", part: "nti__input-label" }, "Select interval preference", a("tooltip-component", { key: "a7d3a458106b07b1ae79517b2c7de11c9401033c" }, a("info-icon", { key: "2fef5cb6c3fe62f7034c3c43e51f2ade04261021", slot: "tooltip-icon" }), a("span", { key: "d321766e49f8487610267a964ffbecb84e352082", slot: "tooltip-content" }, "Set the interval preference for the time-slots."))), a("select-dropdown", { key: "77ba683ef75281101d5e677de21a45599d00d061", 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] }), a("span", { key: "9bea159b0fd24c70214c1bc554d447e1a8c6e124", class: "label", part: "nti__input-label" }, "Select the type of time-slot rounding", a("tooltip-component", { key: "c0e5c9f89e0b48149f114214a299f6f85ddfd7fa" }, a("info-icon", { key: "b0c4588afabb822532fecce06d12045ad16c534b", slot: "tooltip-icon" }), a("span", { key: "7b0d4571043dc17ff35747cfa6e8b98c5742ac24", slot: "tooltip-content" }, "Select if you want to round the time slots to the nearest interval."))), a("radio-button-group", { key: "50eaa3d8675ddcba7d6b4d81324bc70668e9ad2f", name: "interval-preference", defaultSelectedValue: this.defaultRoundTo && this.defaultRoundTo === this.defaultIntervalMinutes ? "rounding" : "no-rounding", options: [
|
|
2084
|
+
{ value: "no-rounding", label: "Default", description: "Time-slots will be rounded to the nearest quarter-hour." },
|
|
2085
|
+
{
|
|
2086
|
+
value: "rounding",
|
|
2087
|
+
label: "Interval rounding",
|
|
2088
|
+
description: "Time-slots will begin at times rounded to the interval value."
|
|
2089
|
+
}
|
|
2090
|
+
] }))));
|
|
2091
|
+
}
|
|
2092
|
+
static get formAssociated() {
|
|
2093
|
+
return !0;
|
|
2094
|
+
}
|
|
2095
|
+
get host() {
|
|
2096
|
+
return w(this);
|
|
2097
|
+
}
|
|
2098
|
+
static get watchers() {
|
|
2099
|
+
return {
|
|
2100
|
+
name: ["elementNameChangedHandler"],
|
|
2101
|
+
selectedConfiguration: ["selectedConfigurationChangedHandler"]
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2104
|
+
};
|
|
2105
|
+
kn([
|
|
2106
|
+
C({
|
|
2107
|
+
name: "nylas-timeslot-interval",
|
|
2108
|
+
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
2109
|
+
fireRegisterEvent: !0
|
|
2110
|
+
}),
|
|
2111
|
+
_e("design:type", Function),
|
|
2112
|
+
_e("design:paramtypes", []),
|
|
2113
|
+
_e("design:returntype", void 0)
|
|
2114
|
+
], Ye.prototype, "render", null);
|
|
2115
|
+
Ye.style = vn;
|
|
2116
|
+
const xn = ".radio-group{display:flex;flex-direction:column}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary);margin-top:16px}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}", _n = xn, wn = class {
|
|
2117
|
+
constructor(e) {
|
|
2118
|
+
b(this, e), this.radioSelectionChanged = k(this, "radioSelectionChanged", 7), this.name = "radio-group", this.options = [], this.defaultSelectedValue = "", this.selectedValue = this.defaultSelectedValue;
|
|
2119
|
+
}
|
|
2120
|
+
handleChange(e) {
|
|
2121
|
+
this.selectedValue = e, this.radioSelectionChanged.emit({
|
|
2122
|
+
value: e,
|
|
2123
|
+
name: this.name
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
render() {
|
|
2127
|
+
return a("div", { key: "d407d08b8179a3370934e580c0971c00f323879a", class: "radio-group" }, this.options.map((e) => a("label", null, a("div", { class: "radio-option" }, a("input", { type: "radio", name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), a("p", null, a("span", { class: "title" }, e.label), a("span", { class: "description" }, e.description))))));
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
2130
|
+
wn.style = _n;
|
|
1872
2131
|
export {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
2132
|
+
at as calendar_info_icon,
|
|
2133
|
+
lt as calendar_patterns_icon,
|
|
2134
|
+
dt as checkbox_component,
|
|
2135
|
+
pt as flow_icon,
|
|
2136
|
+
bt as location_icon,
|
|
2137
|
+
gt as location_off_icon,
|
|
2138
|
+
xt as multi_select_dropdown,
|
|
2139
|
+
Ee as nylas_availability_picker,
|
|
2140
|
+
$e as nylas_booking_calendar_picker,
|
|
2141
|
+
He as nylas_buffer_time,
|
|
2142
|
+
Le as nylas_calendar_picker,
|
|
2143
|
+
Me as nylas_cancellation_policy,
|
|
2144
|
+
Ae as nylas_customize_booking_settings,
|
|
2145
|
+
Ne as nylas_event_description,
|
|
2146
|
+
Fe as nylas_event_duration,
|
|
2147
|
+
Re as nylas_event_info,
|
|
2148
|
+
Pe as nylas_event_limits,
|
|
2149
|
+
ze as nylas_event_location,
|
|
2150
|
+
je as nylas_event_title,
|
|
2151
|
+
Be as nylas_limit_future_bookings,
|
|
2152
|
+
We as nylas_min_booking_notice,
|
|
2153
|
+
Ue as nylas_min_cancellation_notice,
|
|
2154
|
+
yn as nylas_time_window_picker,
|
|
2155
|
+
Ye as nylas_timeslot_interval,
|
|
2156
|
+
wn as radio_button_group
|
|
1895
2157
|
};
|