@nylas/react 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add-circle-icon.entry-606d3096.cjs +1 -0
- package/dist/add-circle-icon.entry-d8358e3f.js +15 -0
- package/dist/{archive-icon.entry-50c4b134.js → archive-icon.entry-8c6d31f2.js} +1 -1
- package/dist/{archive-icon.entry-718a1225.cjs → archive-icon.entry-e8ce8c7d.cjs} +1 -1
- package/dist/{arrow-icon.entry-ca9625d3.cjs → arrow-icon.entry-13d23d01.cjs} +1 -1
- package/dist/{arrow-icon.entry-53337688.js → arrow-icon.entry-d950ddce.js} +1 -1
- package/dist/{bold-icon.entry-36e679f1.cjs → bold-icon.entry-12072568.cjs} +1 -1
- package/dist/{bold-icon.entry-c6109b88.js → bold-icon.entry-5382fea2.js} +1 -1
- package/dist/{button-component_2.entry-0a06b0c4.js → button-component_2.entry-4aa63891.js} +1 -1
- package/dist/{button-component_2.entry-a1b8cd03.cjs → button-component_2.entry-d34ed360.cjs} +1 -1
- package/dist/calendar-agenda-fill-icon_54.entry-33d08f1a.cjs +9 -0
- package/dist/{calendar-agenda-fill-icon_54.entry-e4d8ab10.js → calendar-agenda-fill-icon_54.entry-50c9ed7b.js} +115 -106
- package/dist/{calendar-cancel-icon.entry-813a8330.js → calendar-cancel-icon.entry-64ea7038.js} +1 -1
- package/dist/{calendar-cancel-icon.entry-22862d8c.cjs → calendar-cancel-icon.entry-b13aa245.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-79d381ce.js → calendar-check-icon_2.entry-935310fc.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-2ca25094.cjs → calendar-check-icon_2.entry-9cbe60a8.cjs} +1 -1
- package/dist/{calendar-icon.entry-78bb4f9b.cjs → calendar-icon.entry-0c560a35.cjs} +1 -1
- package/dist/{calendar-icon.entry-d52951b0.js → calendar-icon.entry-2448eea2.js} +1 -1
- package/dist/{checkbox-component_2.entry-a6114846.cjs → checkbox-component_2.entry-1e3afb3a.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-1219f0cf.js → checkbox-component_2.entry-ec5e75fb.js} +1 -1
- package/dist/{chevron-icon_3.entry-82878ccf.js → chevron-icon_3.entry-1f72ef71.js} +1 -1
- package/dist/{chevron-icon_3.entry-d8f195dc.cjs → chevron-icon_3.entry-da1751d2.cjs} +1 -1
- package/dist/{clock-icon_4.entry-9ab4bc41.js → clock-icon_4.entry-4502c9f0.js} +1 -1
- package/dist/{clock-icon_4.entry-e081ccca.cjs → clock-icon_4.entry-b87aaaa9.cjs} +1 -1
- package/dist/close-icon.entry-92e93293.cjs +1 -0
- package/dist/close-icon.entry-e96749ed.js +15 -0
- package/dist/{constants-35df11e7-b37e3406.js → constants-24eca8c9-922dc05c.js} +16 -4
- package/dist/{constants-35df11e7-d87ad6d9.cjs → constants-24eca8c9-d0d9f3ec.cjs} +1 -1
- package/dist/{copy-icon.entry-9c6f38c2.cjs → copy-icon.entry-19bb7d2f.cjs} +1 -1
- package/dist/{copy-icon.entry-9d6e0f48.js → copy-icon.entry-7c958d7c.js} +1 -1
- package/dist/{delete-icon.entry-6ec9c80d.cjs → delete-icon.entry-41c7d463.cjs} +1 -1
- package/dist/{delete-icon.entry-fd8dc119.js → delete-icon.entry-59c9ca04.js} +1 -1
- package/dist/{document-refresh-icon.entry-bea78baf.cjs → document-refresh-icon.entry-afc75ddb.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-2b531e97.js → document-refresh-icon.entry-c32cda4f.js} +1 -1
- package/dist/{feedbackSync-b56b29ed-a7e9f258.js → feedbackSync-b4015b72-0785986b.js} +1 -1
- package/dist/{feedbackSync-b56b29ed-cdcec5be.cjs → feedbackSync-b4015b72-d343d411.cjs} +1 -1
- package/dist/{folder-icon.entry-6a43630e.js → folder-icon.entry-5dcf707b.js} +1 -1
- package/dist/{folder-icon.entry-485465be.cjs → folder-icon.entry-61ccaddd.cjs} +1 -1
- package/dist/{forward-icon.entry-a1af9122.cjs → forward-icon.entry-3d598cb4.cjs} +1 -1
- package/dist/{forward-icon.entry-514ea4a8.js → forward-icon.entry-5a156d37.js} +1 -1
- package/dist/{globe-icon.entry-adcff451.js → globe-icon.entry-99e8bebf.js} +1 -1
- package/dist/{globe-icon.entry-970082a4.cjs → globe-icon.entry-a88502ce.cjs} +1 -1
- package/dist/{google-logo-icon_4.entry-2b68fe81.js → google-logo-icon_4.entry-531021bd.js} +142 -128
- package/dist/{google-logo-icon_4.entry-21cb4b95.cjs → google-logo-icon_4.entry-9a7790d2.cjs} +1 -1
- package/dist/{inbox-icon.entry-94507d27.cjs → inbox-icon.entry-6eadce9b.cjs} +1 -1
- package/dist/{inbox-icon.entry-d3e42f82.js → inbox-icon.entry-b2a2f48e.js} +1 -1
- package/dist/{index-9dc1bd32.js → index-13a43508.js} +2624 -2554
- package/dist/{index-bec58f1d.cjs → index-7dbf0ae7.cjs} +28 -28
- package/dist/{index.es-c7ca1bad-38475209.js → index.es-aa323594-17c2a3f6.js} +1 -1
- package/dist/{index.es-c7ca1bad-5652d50c.cjs → index.es-aa323594-84331fa3.cjs} +1 -1
- package/dist/{info-icon_2.entry-3b5a2c7f.js → info-icon_2.entry-c6e650c4.js} +1 -1
- package/dist/{info-icon_2.entry-e23f3ffd.cjs → info-icon_2.entry-f53d81e5.cjs} +1 -1
- package/dist/{input-color-picker.entry-b4ea90c5.cjs → input-color-picker.entry-16fa8456.cjs} +1 -1
- package/dist/{input-color-picker.entry-9bc48bd3.js → input-color-picker.entry-cd398537.js} +1 -1
- package/dist/{input-component.entry-e567ec08.cjs → input-component.entry-74b63249.cjs} +1 -1
- package/dist/{input-component.entry-ebae3a8a.js → input-component.entry-b471f023.js} +1 -1
- package/dist/{input-dropdown.entry-1f704009.js → input-dropdown.entry-14e1f6cb.js} +1 -1
- package/dist/{input-dropdown.entry-597cd5a8.cjs → input-dropdown.entry-32b4b8be.cjs} +1 -1
- package/dist/{italic-icon.entry-08593dd0.js → italic-icon.entry-8a1a7568.js} +1 -1
- package/dist/{italic-icon.entry-8f614353.cjs → italic-icon.entry-c9ae0186.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-eb978e22.cjs → multi-select-dropdown.entry-58b860a0.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-5f1c73f3.js → multi-select-dropdown.entry-bc4901aa.js} +1 -1
- package/dist/nylas-booked-event-card_12.entry-f64eecaa.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-c4043d8f.js → nylas-booked-event-card_12.entry-fbdb2f3d.js} +378 -378
- package/dist/{nylas-form-card.entry-1540207c.cjs → nylas-form-card.entry-7e9a0cf1.cjs} +1 -1
- package/dist/{nylas-form-card.entry-80688e35.js → nylas-form-card.entry-aa1d5aca.js} +2 -2
- package/dist/{nylas-if-state.entry-037d0454.js → nylas-if-state.entry-5e30f6b3.js} +2 -2
- package/dist/{nylas-if-state.entry-e5155b5b.cjs → nylas-if-state.entry-96914d61.cjs} +1 -1
- package/dist/{nylas-login.entry-b3d73ab9.cjs → nylas-login.entry-e26689b0.cjs} +1 -1
- package/dist/{nylas-login.entry-d157a6ed.js → nylas-login.entry-e52648da.js} +2 -2
- package/dist/{nylas-provider.entry-884ba204.cjs → nylas-provider.entry-9d43f4f0.cjs} +1 -1
- package/dist/{nylas-provider.entry-cf4b8b57.js → nylas-provider.entry-ac669351.js} +4 -4
- package/dist/nylas-scheduler-editor.entry-0f1370d9.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-e731ca4a.js → nylas-scheduler-editor.entry-9655ce2e.js} +12 -12
- package/dist/{nylas-scheduling.entry-86b18d85.js → nylas-scheduling.entry-14d4cd69.js} +43 -42
- package/dist/nylas-scheduling.entry-ab10f8a4.cjs +1 -0
- package/dist/{nylas-time-window-picker.entry-393e855b.js → nylas-time-window-picker.entry-a2f71121.js} +1 -1
- package/dist/{nylas-time-window-picker.entry-f9687046.cjs → nylas-time-window-picker.entry-dfbd975e.cjs} +1 -1
- package/dist/{person-icon.entry-b5ccb1f4.js → person-icon.entry-40b5a8c5.js} +1 -1
- package/dist/{person-icon.entry-1b5dcd2e.cjs → person-icon.entry-a45918af.cjs} +1 -1
- package/dist/{play-icon.entry-5e51d961.js → play-icon.entry-b2315f8c.js} +1 -1
- package/dist/{play-icon.entry-3f2e7e31.cjs → play-icon.entry-c5757946.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-9beaa8e1.js → refresh-icon.entry-37d038f8.js} +1 -1
- package/dist/{refresh-icon.entry-3d241ffd.cjs → refresh-icon.entry-b9afd192.cjs} +1 -1
- package/dist/{register-component-3444af44-94783766.js → register-component-555477e7-42247763.js} +1 -1
- package/dist/{register-component-3444af44-890ac950.cjs → register-component-555477e7-ecafba1c.cjs} +1 -1
- package/dist/{reply-all-icon.entry-a0fcbf30.cjs → reply-all-icon.entry-07a6783a.cjs} +1 -1
- package/dist/{reply-all-icon.entry-6b55d3b3.js → reply-all-icon.entry-89fd0e10.js} +1 -1
- package/dist/{reply-icon.entry-c7d0d967.cjs → reply-icon.entry-8cddb112.cjs} +1 -1
- package/dist/{reply-icon.entry-c709b46f.js → reply-icon.entry-a53a6fc4.js} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-13c1c187.js → scheduler-config-store-ed4a8dfd-656579e3.js} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-ba68cc09.cjs → scheduler-config-store-ed4a8dfd-733c6442.cjs} +1 -1
- package/dist/scheduler-store-c37aa5ca-0484b074.cjs +1 -0
- package/dist/{scheduler-store-ecd15be2-d2ef4ac2.js → scheduler-store-c37aa5ca-c9752707.js} +127 -124
- package/dist/{sent-icon.entry-b65083f4.js → sent-icon.entry-6ac749b3.js} +1 -1
- package/dist/{sent-icon.entry-9083bca9.cjs → sent-icon.entry-b740a32d.cjs} +1 -1
- package/dist/{spam-icon.entry-e6c1a82a.cjs → spam-icon.entry-78cec025.cjs} +1 -1
- package/dist/{spam-icon.entry-120eca46.js → spam-icon.entry-872ff1e4.js} +1 -1
- package/dist/{star-icon.entry-e3563c0b.js → star-icon.entry-57246dc1.js} +1 -1
- package/dist/{star-icon.entry-efbc2679.cjs → star-icon.entry-ab9ad7df.cjs} +1 -1
- package/dist/{stop-icon.entry-ab5cf663.js → stop-icon.entry-5054fa33.js} +1 -1
- package/dist/{stop-icon.entry-8d07d719.cjs → stop-icon.entry-f79dce49.cjs} +1 -1
- package/dist/{textarea-component.entry-a0ef9f03.js → textarea-component.entry-15c9a676.js} +1 -1
- package/dist/{textarea-component.entry-93be4a65.cjs → textarea-component.entry-2967dd82.cjs} +1 -1
- package/dist/{time-period-selector.entry-2a86f48f.js → time-period-selector.entry-9226fd08.js} +1 -1
- package/dist/{time-period-selector.entry-16f96af9.cjs → time-period-selector.entry-a53c94c2.cjs} +1 -1
- package/dist/{translate-icon.entry-d632b37b.js → translate-icon.entry-52939fa4.js} +1 -1
- package/dist/{translate-icon.entry-868948d3.cjs → translate-icon.entry-f4dcc479.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-88dfffbc.cjs → trash-fill-icon.entry-7f4ddaf5.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-eeab235e.js → trash-fill-icon.entry-b9ab3cfc.js} +1 -1
- package/dist/{underline-icon.entry-65e42dcf.js → underline-icon.entry-c8142970.js} +1 -1
- package/dist/{underline-icon.entry-35430c19.cjs → underline-icon.entry-e9959c5c.cjs} +1 -1
- package/dist/{warning-icon.entry-bab6d190.js → warning-icon.entry-00426457.js} +1 -1
- package/dist/{warning-icon.entry-e7714a43.cjs → warning-icon.entry-98c0d003.cjs} +1 -1
- package/package.json +3 -3
- package/dist/add-circle-icon_2.entry-52cc3933.cjs +0 -1
- package/dist/add-circle-icon_2.entry-5ea903bf.js +0 -25
- package/dist/calendar-agenda-fill-icon_54.entry-5b185e75.cjs +0 -9
- package/dist/nylas-booked-event-card_12.entry-73785c5c.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-6f76d0d5.cjs +0 -2
- package/dist/nylas-scheduling.entry-c8ee9a2a.cjs +0 -1
- package/dist/scheduler-store-ecd15be2-8f7d171f.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as b, h as s, c as x, d, D as ua, H as E, g as O, E as ue, G as se, I as it, J as st, t as Oe, K as Qn, L as ya, i as ye, M as be, O as ba } from "./index-
|
|
2
|
-
import { R as S } from "./register-component-
|
|
3
|
-
import { D as vt, T as ot, F as rt, c as ga, P as on, C as va, E as lt, R as dt, d as _a, e as Ca } from "./constants-
|
|
1
|
+
import { r as b, h as s, c as x, d, D as ua, H as E, g as O, E as ue, G as se, I as it, J as st, t as Oe, K as Qn, L as ya, i as ye, M as be, O as ba } from "./index-13a43508.js";
|
|
2
|
+
import { R as S } from "./register-component-555477e7-42247763.js";
|
|
3
|
+
import { D as vt, T as ot, F as rt, c as ga, P as on, C as va, E as lt, R as dt, d as _a, e as Ca } from "./constants-24eca8c9-922dc05c.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const wa = ".sc-calendar-agenda-fill-icon-h{display:flex}", xa = wa, ka = class {
|
|
@@ -39,7 +39,7 @@ const Ia = ".sc-calendar-patterns-icon-h{display:flex}", $a = Ia, Pa = class {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
Pa.style = $a;
|
|
42
|
-
const
|
|
42
|
+
const Fa = ".sc-checkmark-icon-h{display:flex}", Na = Fa, Ra = class {
|
|
43
43
|
constructor(e) {
|
|
44
44
|
b(this, e), this.width = "18", this.height = "14";
|
|
45
45
|
}
|
|
@@ -47,7 +47,7 @@ const Na = ".sc-checkmark-icon-h{display:flex}", Fa = Na, Ra = class {
|
|
|
47
47
|
return s("svg", { key: "49ad9466fa210919af89c80d546cf2a846b84d49", width: this.width, height: this.height, viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "08d62d352782e9847494ebc8daad7e1300ebaad9", d: "M1.53033 7.46967C1.23744 7.17678 0.762563 7.17678 0.46967 7.46967C0.176777 7.76256 0.176777 8.23744 0.46967 8.53033L4.96967 13.0303C5.26256 13.3232 5.73744 13.3232 6.03033 13.0303L17.0303 2.03033C17.3232 1.73744 17.3232 1.26256 17.0303 0.96967C16.7374 0.676777 16.2626 0.676777 15.9697 0.96967L5.5 11.4393L1.53033 7.46967Z", fill: "#293056" }));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
Ra.style =
|
|
50
|
+
Ra.style = Na;
|
|
51
51
|
const La = ".sc-dragable-icon-h{display:flex}", Aa = La, Ma = class {
|
|
52
52
|
constructor(e) {
|
|
53
53
|
b(this, e), this.width = "20", this.height = "20";
|
|
@@ -997,12 +997,12 @@ function Pi(e, n) {
|
|
|
997
997
|
}
|
|
998
998
|
return t;
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1000
|
+
var Fi = "1.15.2";
|
|
1001
1001
|
function ee(e) {
|
|
1002
1002
|
if (typeof window < "u" && window.navigator)
|
|
1003
1003
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1004
1004
|
}
|
|
1005
|
-
var te = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ee(/Edge/i), pt = ee(/firefox/i),
|
|
1005
|
+
var te = ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = ee(/Edge/i), pt = ee(/firefox/i), Ne = ee(/safari/i) && !ee(/chrome/i) && !ee(/android/i), Ot = ee(/iP(ad|od|hone)/i), St = ee(/chrome/i) && ee(/android/i), Dt = {
|
|
1006
1006
|
capture: !1,
|
|
1007
1007
|
passive: !1
|
|
1008
1008
|
};
|
|
@@ -1028,7 +1028,7 @@ function Qe(e, n) {
|
|
|
1028
1028
|
return !1;
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function Ni(e) {
|
|
1032
1032
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1033
1033
|
}
|
|
1034
1034
|
function G(e, n, t, a) {
|
|
@@ -1039,7 +1039,7 @@ function G(e, n, t, a) {
|
|
|
1039
1039
|
return e;
|
|
1040
1040
|
if (e === t)
|
|
1041
1041
|
break;
|
|
1042
|
-
} while (e =
|
|
1042
|
+
} while (e = Ni(e));
|
|
1043
1043
|
}
|
|
1044
1044
|
return null;
|
|
1045
1045
|
}
|
|
@@ -1087,7 +1087,7 @@ function X() {
|
|
|
1087
1087
|
var e = document.scrollingElement;
|
|
1088
1088
|
return e || document.documentElement;
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function F(e, n, t, a, o) {
|
|
1091
1091
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
1092
1092
|
var i, r, l, c, p, m, f;
|
|
1093
1093
|
if (e !== window && e.parentNode && e !== X() ? (i = e.getBoundingClientRect(), r = i.top, l = i.left, c = i.bottom, p = i.right, m = i.height, f = i.width) : (r = 0, l = 0, c = window.innerHeight, p = window.innerWidth, m = window.innerHeight, f = window.innerWidth), (n || t) && e !== window && (o = o || e.parentNode, !te))
|
|
@@ -1113,8 +1113,8 @@ function N(e, n, t, a, o) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
1115
|
function mt(e, n, t) {
|
|
1116
|
-
for (var a = le(e, !0), o =
|
|
1117
|
-
var i =
|
|
1116
|
+
for (var a = le(e, !0), o = F(e)[n]; a; ) {
|
|
1117
|
+
var i = F(a)[t], r = void 0;
|
|
1118
1118
|
if (t === "top" || t === "left" ? r = o >= i : r = o <= i, !r)
|
|
1119
1119
|
return a;
|
|
1120
1120
|
if (a === X())
|
|
@@ -1218,7 +1218,7 @@ function Pt(e, n, t) {
|
|
|
1218
1218
|
return Array.from(e.children).forEach(function(o) {
|
|
1219
1219
|
var i, r, l, c;
|
|
1220
1220
|
if (!(!G(o, n.draggable, e, !1) || o.animated || o === t)) {
|
|
1221
|
-
var p =
|
|
1221
|
+
var p = F(o);
|
|
1222
1222
|
a.left = Math.min((i = a.left) !== null && i !== void 0 ? i : 1 / 0, p.left), a.top = Math.min((r = a.top) !== null && r !== void 0 ? r : 1 / 0, p.top), a.right = Math.max((l = a.right) !== null && l !== void 0 ? l : -1 / 0, p.right), a.bottom = Math.max((c = a.bottom) !== null && c !== void 0 ? c : -1 / 0, p.bottom);
|
|
1223
1223
|
}
|
|
1224
1224
|
}), a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
@@ -1234,7 +1234,7 @@ function Mi() {
|
|
|
1234
1234
|
if (!(v(o, "display") === "none" || o === _.ghost)) {
|
|
1235
1235
|
e.push({
|
|
1236
1236
|
target: o,
|
|
1237
|
-
rect:
|
|
1237
|
+
rect: F(o)
|
|
1238
1238
|
});
|
|
1239
1239
|
var i = K({}, e[e.length - 1].rect);
|
|
1240
1240
|
if (o.thisAnimationDuration) {
|
|
@@ -1262,7 +1262,7 @@ function Mi() {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
var i = !1, r = 0;
|
|
1264
1264
|
e.forEach(function(l) {
|
|
1265
|
-
var c = 0, p = l.target, m = p.fromRect, f =
|
|
1265
|
+
var c = 0, p = l.target, m = p.fromRect, f = F(p), u = p.prevFromRect, g = p.prevToRect, y = l.rect, w = ke(p, !0);
|
|
1266
1266
|
w && (f.top -= w.f, f.left -= w.e), p.toRect = f, p.thisAnimationDuration && mn(u, f) && !mn(m, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1267
1267
|
(y.top - f.top) / (y.left - f.left) === (m.top - f.top) / (m.left - f.left) && (c = ji(y, u, g, o.options)), mn(f, m) || (p.prevFromRect = m, p.prevToRect = f, c || (c = o.options.animation), o.animate(p, y, f, c)), c && (i = !0, r = Math.max(r, c), clearTimeout(p.animationResetTimer), p.animationResetTimer = setTimeout(function() {
|
|
1268
1268
|
p.animationTime = 0, p.prevFromRect = null, p.fromRect = null, p.prevToRect = null, p.thisAnimationDuration = null;
|
|
@@ -1343,7 +1343,7 @@ var ge = [], hn = {
|
|
|
1343
1343
|
function Ui(e) {
|
|
1344
1344
|
var n = e.sortable, t = e.rootEl, a = e.name, o = e.targetEl, i = e.cloneEl, r = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, m = e.oldDraggableIndex, f = e.newDraggableIndex, u = e.originalEvent, g = e.putSortable, y = e.extraEventProperties;
|
|
1345
1345
|
if (n = n || t && t[Z], !!n) {
|
|
1346
|
-
var w, $ = n.options,
|
|
1346
|
+
var w, $ = n.options, N = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
1347
1347
|
window.CustomEvent && !te && !ze ? w = new CustomEvent(a, {
|
|
1348
1348
|
bubbles: !0,
|
|
1349
1349
|
cancelable: !0
|
|
@@ -1351,7 +1351,7 @@ function Ui(e) {
|
|
|
1351
1351
|
var R = K(K({}, y), je.getEventProperties(a, n));
|
|
1352
1352
|
for (var V in R)
|
|
1353
1353
|
w[V] = R[V];
|
|
1354
|
-
t && t.dispatchEvent(w), $[
|
|
1354
|
+
t && t.dispatchEvent(w), $[N] && $[N].call(n, w);
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
1357
|
var Wi = ["evt"], z = function(n, t) {
|
|
@@ -1402,15 +1402,15 @@ function M(e) {
|
|
|
1402
1402
|
newDraggableIndex: oe
|
|
1403
1403
|
}, e));
|
|
1404
1404
|
}
|
|
1405
|
-
var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [], fe, J, un, yn, ut, yt, $e, ve, Ae, Me = !1, Be = !1, Ye, A, bn = [], Gn = !1, tn = [], sn = typeof document < "u", Ze = Ot, bt = ze || te ? "cssFloat" : "float", Bi = sn && !St && !Ot && "draggable" in document.createElement("div"),
|
|
1405
|
+
var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [], fe, J, un, yn, ut, yt, $e, ve, Ae, Me = !1, Be = !1, Ye, A, bn = [], Gn = !1, tn = [], sn = typeof document < "u", Ze = Ot, bt = ze || te ? "cssFloat" : "float", Bi = sn && !St && !Ot && "draggable" in document.createElement("div"), Ft = function() {
|
|
1406
1406
|
if (sn) {
|
|
1407
1407
|
if (te)
|
|
1408
1408
|
return !1;
|
|
1409
1409
|
var e = document.createElement("x");
|
|
1410
1410
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1411
1411
|
}
|
|
1412
|
-
}(),
|
|
1413
|
-
var a = v(n), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ee(n, 0, t), r = Ee(n, 1, t), l = i && v(i), c = r && v(r), p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) +
|
|
1412
|
+
}(), Nt = function(n, t) {
|
|
1413
|
+
var a = v(n), o = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), i = Ee(n, 0, t), r = Ee(n, 1, t), l = i && v(i), c = r && v(r), p = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + F(i).width, m = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + F(r).width;
|
|
1414
1414
|
if (a.display === "flex")
|
|
1415
1415
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
1416
1416
|
if (a.display === "grid")
|
|
@@ -1428,7 +1428,7 @@ var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [],
|
|
|
1428
1428
|
return nn.some(function(o) {
|
|
1429
1429
|
var i = o[Z].options.emptyInsertThreshold;
|
|
1430
1430
|
if (!(!i || et(o))) {
|
|
1431
|
-
var r =
|
|
1431
|
+
var r = F(o), l = n >= r.left - i && n <= r.right + i, c = t >= r.top - i && t <= r.bottom + i;
|
|
1432
1432
|
if (l && c)
|
|
1433
1433
|
return a = o;
|
|
1434
1434
|
}
|
|
@@ -1454,9 +1454,9 @@ var h, I, C, H, he, Ge, T, re, we, B, Le, oe, We, L, Ce = !1, en = !1, nn = [],
|
|
|
1454
1454
|
name: o
|
|
1455
1455
|
}), a.name = o.name, a.checkPull = t(o.pull, !0), a.checkPut = t(o.put), a.revertClone = o.revertClone, n.group = a;
|
|
1456
1456
|
}, Lt = function() {
|
|
1457
|
-
!
|
|
1457
|
+
!Ft && C && v(C, "display", "none");
|
|
1458
1458
|
}, At = function() {
|
|
1459
|
-
!
|
|
1459
|
+
!Ft && C && v(C, "display", "");
|
|
1460
1460
|
};
|
|
1461
1461
|
sn && !St && document.addEventListener("click", function(e) {
|
|
1462
1462
|
if (en)
|
|
@@ -1495,7 +1495,7 @@ function _(e, n) {
|
|
|
1495
1495
|
// will be set to same as swapThreshold if default
|
|
1496
1496
|
removeCloneOnHide: !0,
|
|
1497
1497
|
direction: function() {
|
|
1498
|
-
return
|
|
1498
|
+
return Nt(e, this.options);
|
|
1499
1499
|
},
|
|
1500
1500
|
ghostClass: "sortable-ghost",
|
|
1501
1501
|
chosenClass: "sortable-chosen",
|
|
@@ -1522,7 +1522,7 @@ function _(e, n) {
|
|
|
1522
1522
|
x: 0,
|
|
1523
1523
|
y: 0
|
|
1524
1524
|
},
|
|
1525
|
-
supportPointer: _.supportPointer !== !1 && "PointerEvent" in window && !
|
|
1525
|
+
supportPointer: _.supportPointer !== !1 && "PointerEvent" in window && !Ne,
|
|
1526
1526
|
emptyInsertThreshold: 5
|
|
1527
1527
|
};
|
|
1528
1528
|
je.initializePlugins(this, e, t);
|
|
@@ -1545,7 +1545,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1545
1545
|
_onTapStart: function(n) {
|
|
1546
1546
|
if (n.cancelable) {
|
|
1547
1547
|
var t = this, a = this.el, o = this.options, i = o.preventOnFilter, r = n.type, l = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, c = (l || n).target, p = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || c, m = o.filter;
|
|
1548
|
-
if (ns(a), !h && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || o.disabled) && !p.isContentEditable && !(!this.nativeDraggable &&
|
|
1548
|
+
if (ns(a), !h && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || o.disabled) && !p.isContentEditable && !(!this.nativeDraggable && Ne && c && c.tagName.toUpperCase() === "SELECT") && (c = G(c, o.draggable, a, !1), !(c && c.animated) && Ge !== c)) {
|
|
1549
1549
|
if (we = q(c), Le = q(c, o.draggable), typeof m == "function") {
|
|
1550
1550
|
if (m.call(this, n, c, this)) {
|
|
1551
1551
|
M({
|
|
@@ -1583,7 +1583,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1583
1583
|
_prepareDragStart: function(n, t, a) {
|
|
1584
1584
|
var o = this, i = o.el, r = o.options, l = i.ownerDocument, c;
|
|
1585
1585
|
if (a && !h && a.parentNode === i) {
|
|
1586
|
-
var p =
|
|
1586
|
+
var p = F(a);
|
|
1587
1587
|
if (H = i, h = a, I = h.parentNode, he = h.nextSibling, Ge = a, We = r.group, _.dragged = h, fe = {
|
|
1588
1588
|
target: h,
|
|
1589
1589
|
clientX: (t || n).clientX,
|
|
@@ -1695,7 +1695,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1695
1695
|
},
|
|
1696
1696
|
_appendGhost: function() {
|
|
1697
1697
|
if (!C) {
|
|
1698
|
-
var n = this.options.fallbackOnBody ? document.body : H, t =
|
|
1698
|
+
var n = this.options.fallbackOnBody ? document.body : H, t = F(h, !0, Ze, !0, n), a = this.options;
|
|
1699
1699
|
if (Ze) {
|
|
1700
1700
|
for (A = n; v(A, "position") === "static" && v(A, "transform") === "none" && A !== document; )
|
|
1701
1701
|
A = A.parentNode;
|
|
@@ -1717,7 +1717,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1717
1717
|
sortable: a,
|
|
1718
1718
|
name: "clone"
|
|
1719
1719
|
}));
|
|
1720
|
-
}), !t && W(h, i.dragClass, !0), t ? (en = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (k(document, "mouseup", a._onDrop), k(document, "touchend", a._onDrop), k(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(a, o, h)), D(document, "drop", a), v(h, "transform", "translateZ(0)")), Ce = !0, a._dragStartId = Xe(a._dragStarted.bind(a, t, n)), D(document, "selectstart", a), $e = !0,
|
|
1720
|
+
}), !t && W(h, i.dragClass, !0), t ? (en = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (k(document, "mouseup", a._onDrop), k(document, "touchend", a._onDrop), k(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(a, o, h)), D(document, "drop", a), v(h, "transform", "translateZ(0)")), Ce = !0, a._dragStartId = Xe(a._dragStarted.bind(a, t, n)), D(document, "selectstart", a), $e = !0, Ne && v(document.body, "user-select", "none");
|
|
1721
1721
|
},
|
|
1722
1722
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1723
1723
|
_onDragOver: function(n) {
|
|
@@ -1737,12 +1737,12 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1737
1737
|
target: a,
|
|
1738
1738
|
completed: R,
|
|
1739
1739
|
onMove: function(at, ha) {
|
|
1740
|
-
return qe(H, t, h, o, at,
|
|
1740
|
+
return qe(H, t, h, o, at, F(at), n, ha);
|
|
1741
1741
|
},
|
|
1742
1742
|
changed: V
|
|
1743
1743
|
}, ma));
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function N() {
|
|
1746
1746
|
$("dragOverAnimationCapture"), y.captureAnimationState(), y !== u && u.captureAnimationState();
|
|
1747
1747
|
}
|
|
1748
1748
|
function R(Ie) {
|
|
@@ -1767,24 +1767,24 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1767
1767
|
if (h.contains(n.target) || a.animated && a.animatingX && a.animatingY || y._ignoreWhileAnimating === a)
|
|
1768
1768
|
return R(!1);
|
|
1769
1769
|
if (en = !1, p && !l.disabled && (m ? f || (r = I !== H) : L === this || (this.lastPutMode = We.checkPull(this, p, h, n)) && c.checkPut(this, p, h, n))) {
|
|
1770
|
-
if (g = this._getDirection(n, a) === "vertical", o =
|
|
1770
|
+
if (g = this._getDirection(n, a) === "vertical", o = F(h), $("dragOverValid"), _.eventCanceled)
|
|
1771
1771
|
return w;
|
|
1772
1772
|
if (r)
|
|
1773
|
-
return I = H,
|
|
1773
|
+
return I = H, N(), this._hideClone(), $("revert"), _.eventCanceled || (he ? H.insertBefore(h, he) : H.appendChild(h)), R(!0);
|
|
1774
1774
|
var j = et(t, l.draggable);
|
|
1775
1775
|
if (!j || Xi(n, g, this) && !j.animated) {
|
|
1776
1776
|
if (j === h)
|
|
1777
1777
|
return R(!1);
|
|
1778
|
-
if (j && t === n.target && (a = j), a && (i =
|
|
1779
|
-
return
|
|
1778
|
+
if (j && t === n.target && (a = j), a && (i = F(a)), qe(H, t, h, o, a, i, n, !!a) !== !1)
|
|
1779
|
+
return N(), j && j.nextSibling ? t.insertBefore(h, j.nextSibling) : t.appendChild(h), I = t, V(), R(!0);
|
|
1780
1780
|
} else if (j && Yi(n, g, this)) {
|
|
1781
1781
|
var de = Ee(t, 0, l, !0);
|
|
1782
1782
|
if (de === h)
|
|
1783
1783
|
return R(!1);
|
|
1784
|
-
if (a = de, i =
|
|
1785
|
-
return
|
|
1784
|
+
if (a = de, i = F(a), qe(H, t, h, o, a, i, n, !1) !== !1)
|
|
1785
|
+
return N(), t.insertBefore(h, de), I = t, V(), R(!0);
|
|
1786
1786
|
} else if (a.parentNode === t) {
|
|
1787
|
-
i =
|
|
1787
|
+
i = F(a);
|
|
1788
1788
|
var Y = 0, ce, Se = h.parentNode !== t, U = !Zi(h.animated && h.toRect || o, a.animated && a.toRect || i, g), De = g ? "top" : "left", ae = mt(a, "top", "top") || mt(h, "top", "top"), He = ae ? ae.scrollTop : void 0;
|
|
1789
1789
|
ve !== a && (ce = i[De], Me = !1, Be = !U && l.invertSwap || Se), Y = Ki(n, a, i, g, U ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Be, ve === a);
|
|
1790
1790
|
var Q;
|
|
@@ -1801,7 +1801,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1801
1801
|
ie = Y === 1;
|
|
1802
1802
|
var Ue = qe(H, t, h, o, a, i, n, ie);
|
|
1803
1803
|
if (Ue !== !1)
|
|
1804
|
-
return (Ue === 1 || Ue === -1) && (ie = Ue === 1), Gn = !0, setTimeout(Gi, 30),
|
|
1804
|
+
return (Ue === 1 || Ue === -1) && (ie = Ue === 1), Gn = !0, setTimeout(Gi, 30), N(), ie && !Te ? t.appendChild(h) : a.parentNode.insertBefore(h, ie ? Te : a), ae && It(ae, 0, He - ae.scrollTop), I = h.parentNode, ce !== void 0 && !Be && (Ye = Math.abs(ce - F(a)[De])), V(), R(!0);
|
|
1805
1805
|
}
|
|
1806
1806
|
if (t.contains(h))
|
|
1807
1807
|
return R(!1);
|
|
@@ -1824,7 +1824,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1824
1824
|
this._nulling();
|
|
1825
1825
|
return;
|
|
1826
1826
|
}
|
|
1827
|
-
Ce = !1, Be = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yn(this.cloneId), Yn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(),
|
|
1827
|
+
Ce = !1, Be = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yn(this.cloneId), Yn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ne && v(document.body, "user-select", ""), v(h, "transform", ""), n && ($e && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (H === I || L && L.lastPutMode !== "clone") && T && T.parentNode && T.parentNode.removeChild(T), h && (this.nativeDraggable && k(h, "dragend", this), gn(h), h.style["will-change"] = "", $e && !Ce && W(h, L ? L.options.ghostClass : this.options.ghostClass, !1), W(h, this.options.chosenClass, !1), M({
|
|
1828
1828
|
sortable: this,
|
|
1829
1829
|
name: "unchoose",
|
|
1830
1830
|
toEl: I,
|
|
@@ -1978,7 +1978,7 @@ function qe(e, n, t, a, o, i, r, l) {
|
|
|
1978
1978
|
return window.CustomEvent && !te && !ze ? c = new CustomEvent("move", {
|
|
1979
1979
|
bubbles: !0,
|
|
1980
1980
|
cancelable: !0
|
|
1981
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = n, c.from = e, c.dragged = t, c.draggedRect = a, c.related = o || n, c.relatedRect = i ||
|
|
1981
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = n, c.from = e, c.dragged = t, c.draggedRect = a, c.related = o || n, c.relatedRect = i || F(n), c.willInsertAfter = l, c.originalEvent = r, e.dispatchEvent(c), m && (f = m.call(p, c, r)), f;
|
|
1982
1982
|
}
|
|
1983
1983
|
function gn(e) {
|
|
1984
1984
|
e.draggable = !1;
|
|
@@ -1987,11 +1987,11 @@ function Gi() {
|
|
|
1987
1987
|
Gn = !1;
|
|
1988
1988
|
}
|
|
1989
1989
|
function Yi(e, n, t) {
|
|
1990
|
-
var a =
|
|
1990
|
+
var a = F(Ee(t.el, 0, t.options, !0)), o = Pt(t.el, t.options, C), i = 10;
|
|
1991
1991
|
return n ? e.clientX < o.left - i || e.clientY < a.top && e.clientX < a.right : e.clientY < o.top - i || e.clientY < a.bottom && e.clientX < a.left;
|
|
1992
1992
|
}
|
|
1993
1993
|
function Xi(e, n, t) {
|
|
1994
|
-
var a =
|
|
1994
|
+
var a = F(et(t.el, t.options.draggable)), o = Pt(t.el, t.options, C), i = 10;
|
|
1995
1995
|
return n ? e.clientX > o.right + i || e.clientY > a.bottom && e.clientX > a.left : e.clientY > o.bottom + i || e.clientX > a.right && e.clientY > a.top;
|
|
1996
1996
|
}
|
|
1997
1997
|
function Ki(e, n, t, a, o, i, r, l) {
|
|
@@ -2047,7 +2047,7 @@ _.utils = {
|
|
|
2047
2047
|
index: q,
|
|
2048
2048
|
nextTick: Xe,
|
|
2049
2049
|
cancelNextTick: Yn,
|
|
2050
|
-
detectDirection:
|
|
2050
|
+
detectDirection: Nt,
|
|
2051
2051
|
getChild: Ee
|
|
2052
2052
|
};
|
|
2053
2053
|
_.get = function(e) {
|
|
@@ -2065,8 +2065,8 @@ _.mount = function() {
|
|
|
2065
2065
|
_.create = function(e, n) {
|
|
2066
2066
|
return new _(e, n);
|
|
2067
2067
|
};
|
|
2068
|
-
_.version =
|
|
2069
|
-
var P = [], Pe, Xn, Kn = !1, vn, _n, an,
|
|
2068
|
+
_.version = Fi;
|
|
2069
|
+
var P = [], Pe, Xn, Kn = !1, vn, _n, an, Fe;
|
|
2070
2070
|
function ts() {
|
|
2071
2071
|
function e() {
|
|
2072
2072
|
this.defaults = {
|
|
@@ -2092,17 +2092,17 @@ function ts() {
|
|
|
2092
2092
|
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), gt(), Ke(), Ai();
|
|
2093
2093
|
},
|
|
2094
2094
|
nulling: function() {
|
|
2095
|
-
an = Xn = Pe = Kn =
|
|
2095
|
+
an = Xn = Pe = Kn = Fe = vn = _n = null, P.length = 0;
|
|
2096
2096
|
},
|
|
2097
2097
|
_handleFallbackAutoScroll: function(t) {
|
|
2098
2098
|
this._handleAutoScroll(t, !0);
|
|
2099
2099
|
},
|
|
2100
2100
|
_handleAutoScroll: function(t, a) {
|
|
2101
2101
|
var o = this, i = (t.touches ? t.touches[0] : t).clientX, r = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(i, r);
|
|
2102
|
-
if (an = t, a || this.options.forceAutoScrollFallback || ze || te ||
|
|
2102
|
+
if (an = t, a || this.options.forceAutoScrollFallback || ze || te || Ne) {
|
|
2103
2103
|
Cn(t, this.options, l, a);
|
|
2104
2104
|
var c = le(l, !0);
|
|
2105
|
-
Kn && (!
|
|
2105
|
+
Kn && (!Fe || i !== vn || r !== _n) && (Fe && gt(), Fe = setInterval(function() {
|
|
2106
2106
|
var p = le(document.elementFromPoint(i, r), !0);
|
|
2107
2107
|
p !== c && (c = p, Ke()), Cn(t, o.options, p, a);
|
|
2108
2108
|
}, 10), vn = i, _n = r);
|
|
@@ -2125,7 +2125,7 @@ function Ke() {
|
|
|
2125
2125
|
}), P = [];
|
|
2126
2126
|
}
|
|
2127
2127
|
function gt() {
|
|
2128
|
-
clearInterval(
|
|
2128
|
+
clearInterval(Fe);
|
|
2129
2129
|
}
|
|
2130
2130
|
var Cn = Tt(function(e, n, t, a) {
|
|
2131
2131
|
if (n.scroll) {
|
|
@@ -2133,9 +2133,9 @@ var Cn = Tt(function(e, n, t, a) {
|
|
|
2133
2133
|
Xn !== t && (Xn = t, Ke(), Pe = n.scroll, m = n.scrollFn, Pe === !0 && (Pe = le(t, !0)));
|
|
2134
2134
|
var f = 0, u = Pe;
|
|
2135
2135
|
do {
|
|
2136
|
-
var g = u, y =
|
|
2136
|
+
var g = u, y = F(g), w = y.top, $ = y.bottom, N = y.left, R = y.right, V = y.width, j = y.height, de = void 0, Y = void 0, ce = g.scrollWidth, Se = g.scrollHeight, U = v(g), De = g.scrollLeft, ae = g.scrollTop;
|
|
2137
2137
|
g === c ? (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (de = V < ce && (U.overflowX === "auto" || U.overflowX === "scroll"), Y = j < Se && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
2138
|
-
var He = de && (Math.abs(R - o) <= r && De + V < ce) - (Math.abs(
|
|
2138
|
+
var He = de && (Math.abs(R - o) <= r && De + V < ce) - (Math.abs(N - o) <= r && !!De), Q = Y && (Math.abs($ - i) <= r && ae + j < Se) - (Math.abs(w - i) <= r && !!ae);
|
|
2139
2139
|
if (!P[f])
|
|
2140
2140
|
for (var pe = 0; pe <= f; pe++)
|
|
2141
2141
|
P[pe] || (P[pe] = {});
|
|
@@ -2194,7 +2194,7 @@ ne(tt, {
|
|
|
2194
2194
|
});
|
|
2195
2195
|
_.mount(new ts());
|
|
2196
2196
|
_.mount(tt, nt);
|
|
2197
|
-
const as = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .header .header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .header .header_action{display:flex}.nylas-booking-form-config .header .header_action select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-form-config .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-booking-form-config .content{font-size:15px}}.nylas-booking-form-config .content .additional_fields{display:flex;flex-direction:column;gap:1rem;position:relative;overflow:auto}@media screen and (max-width: 504px){.nylas-booking-form-config .content .additional_fields{gap:0.5rem;padding:0}}.nylas-booking-form-config .content .additional_fields .form-field{border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);padding:1rem;user-select:none;background-color:white;position:relative}.nylas-booking-form-config .content .additional_fields .form-field.highlight{background-color:var(--nylas-base-200)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .dragable{cursor:move}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text{flex:1;text-align:left;padding-left:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text h4{margin:0;font-size:16px;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions{display:flex;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .is-required{color:var(--nylas-base-500);background-color:var(--nylas-base-50);font-weight:600;padding:4px 8px;border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron{display:flex;align-self:center;cursor:pointer}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.open{transform:rotate(90deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.closed{transform:rotate(270deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content{padding:1.5rem 0 0 2.7rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content.hidden{display:none}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .label-input{padding:0 1rem 0 0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input label{padding:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input input[type=checkbox]{transform:scale(1.3)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container h4{margin:0;font-size:16px;line-height:20px;font-weight:500;padding:0.5rem 0;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button{border:none;background:transparent;height:40px;margin:1rem 0;cursor:pointer;color:var(--nylas-base-800);display:flex;align-items:center;justify-content:space-between}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options{display:flex;flex-direction:column;gap:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:active{color:var(--nylas-primary)}', is = as;
|
|
2197
|
+
const as = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-form-config{width:inherit;display:flex;flex-direction:column;margin:1rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .header{padding:1rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-form-config .header .header_text h3{margin:0;font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .header .header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .header .header_action{display:flex}.nylas-booking-form-config .header .header_action select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-form-config .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-booking-form-config .content{font-size:15px}}.nylas-booking-form-config .content .additional_fields{display:flex;flex-direction:column;gap:1rem;position:relative;overflow:auto}@media screen and (max-width: 504px){.nylas-booking-form-config .content .additional_fields{gap:0.5rem;padding:0}}.nylas-booking-form-config .content .additional_fields .form-field{border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);padding:1rem;user-select:none;background-color:white;position:relative}.nylas-booking-form-config .content .additional_fields .form-field.highlight{background-color:var(--nylas-base-200)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .dragable{cursor:move}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text{flex:1;text-align:left;padding-left:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text h4{margin:0;font-size:16px;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_text p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions{display:flex;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .is-required{color:var(--nylas-base-500);background-color:var(--nylas-base-50);font-weight:600;padding:4px 8px;border-radius:var(--nylas-border-radius-2x)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron{display:flex;align-self:center;cursor:pointer}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.open{transform:rotate(90deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_header .form-field_header_actions .chevron.closed{transform:rotate(270deg)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content{padding:1.5rem 0 0 2.7rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content.hidden{display:none}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs{display:flex;flex-direction:column;gap:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .label-input{padding:0 1rem 0 0}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input{display:flex}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input label{padding:0.5rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .inputs .required-input input[type=checkbox]{transform:scale(1.3)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container h4{margin:0;font-size:16px;line-height:20px;font-weight:500;padding:0.5rem 0;color:var(--nylas-base-900);text-align:left}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button{border:none;background:transparent;height:40px;margin:1rem 0;cursor:pointer;color:var(--nylas-base-800);display:flex;align-items:center;justify-content:space-between}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container button:active{color:var(--nylas-primary)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options{display:flex;flex-direction:column;gap:1rem}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option{display:flex;justify-content:space-between;align-items:center}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button{border:none;background:transparent;height:40px;margin:0 1rem;cursor:pointer;color:var(--nylas-base-800)}.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:hover,.nylas-booking-form-config .content .additional_fields .form-field .form-field_content .options-container .options .option button:active{color:var(--nylas-primary)}', is = as;
|
|
2198
2198
|
var ss = function(e, n, t, a) {
|
|
2199
2199
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
2200
2200
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -2274,13 +2274,15 @@ const zt = class {
|
|
|
2274
2274
|
label: o.label,
|
|
2275
2275
|
order: i + 1,
|
|
2276
2276
|
options: o.options,
|
|
2277
|
-
key: o.key
|
|
2277
|
+
key: o.key,
|
|
2278
|
+
default: o.default
|
|
2278
2279
|
} })).reduce((o, i) => (o[i.key] = {
|
|
2279
2280
|
type: i.type,
|
|
2280
2281
|
required: i.required,
|
|
2281
2282
|
order: i.order,
|
|
2282
2283
|
options: i.options,
|
|
2283
|
-
label: i.label
|
|
2284
|
+
label: i.label,
|
|
2285
|
+
default: i.default
|
|
2284
2286
|
}, o), {});
|
|
2285
2287
|
this.valueChanged.emit({
|
|
2286
2288
|
value: a,
|
|
@@ -2307,8 +2309,14 @@ const zt = class {
|
|
|
2307
2309
|
}
|
|
2308
2310
|
}
|
|
2309
2311
|
nylasFormInputChangedHandler(e) {
|
|
2310
|
-
const { name: n } = e.detail
|
|
2311
|
-
|
|
2312
|
+
const { name: n } = e.detail;
|
|
2313
|
+
if (n.startsWith("default-value-")) {
|
|
2314
|
+
const t = parseInt(n.split("-").pop() || "0");
|
|
2315
|
+
this.fieldDefaultValueChanged(t, e);
|
|
2316
|
+
} else {
|
|
2317
|
+
const [t, a] = n.split("_");
|
|
2318
|
+
a ? this.fieldOptionChange(parseInt(t), parseInt(a), e) : this.fieldLabelChange(parseInt(t), e);
|
|
2319
|
+
}
|
|
2312
2320
|
}
|
|
2313
2321
|
swapFields(e) {
|
|
2314
2322
|
const { oldIndex: n, newIndex: t } = e;
|
|
@@ -2356,14 +2364,17 @@ const zt = class {
|
|
|
2356
2364
|
fieldOptionChange(e, n, t) {
|
|
2357
2365
|
this.formFields = this.formFields.map((a, o) => (o === e && (a.options || (a.options = []), a.options = a.options.map((i, r) => (r === n && (i = t.detail.value), i))), a));
|
|
2358
2366
|
}
|
|
2367
|
+
fieldDefaultValueChanged(e, n) {
|
|
2368
|
+
this.formFields = this.formFields.map((t, a) => (a === e && (t.default = n.detail.value), t));
|
|
2369
|
+
}
|
|
2359
2370
|
render() {
|
|
2360
|
-
return s(E, { key: "
|
|
2371
|
+
return s(E, { key: "c04d0559326b5a5f2b06a50ec75108aa9205f554" }, s("div", { key: "b28ce5476fc6d458e578bacc70f8515a41140bdb", class: "nylas-booking-form-config", part: "nbfc" }, s("div", { key: "8ae9f70bafd0c3389e2e8cfb1bc9167322c51d02", class: "header", part: "nbfc__header" }, s("div", { key: "00aca11123f8789fc33e19aa563ae989eabd732b", class: "header_text" }, s("h3", { key: "1236bc055f9da4d9edb6a46f123ac26f7e3bf3be" }, "Booking form"), s("p", { key: "10e937c33b0b2cc06cd2d55dd6dce17e53731885" }, "Add custom fields to the booking form.")), s("div", { key: "7aa116effb6fa846a50d214195bb0297d2370a7f", class: "header_action" }, s("select-dropdown", { key: "6f6e50d1349f633bb6fc3114f17f357ef273047b", name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: ga, withSearch: !1, withChevron: !1, dropdownButtonText: "Add new field" }, s("span", { key: "f7efbb6d8d43323944d73b50afe891e6037ef618", slot: "select-icon" }, s("plus-icon", { key: "6c201dcd7830277b33459886e2889b3daf69ce4f", width: "15", height: "15" }))))), s("div", { key: "0de903a139c7055abd25fcdfa887c26c375fc0c6", class: "content" }, s("div", { key: "bfad27230ada72d362e79add159fddf66ecc742f", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, n) => s("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: n }, s("div", { class: "form-field_header", part: "nbfc__form_field-header" }, s("span", { class: "dragable" }, s("dragable-icon", { width: "24", height: "25" })), s("div", { class: "form-field_header_text" }, s("h4", null, e.label), s("p", null, e.typeLabel)), s("div", { class: "form-field_header_actions" }, s("span", { class: "is-required" }, e.required ? "Required" : "Optional"), !e.readonly && s("button", { onClick: () => {
|
|
2361
2372
|
this.fieldRemove(n);
|
|
2362
2373
|
} }, s("close-icon", null)), s("span", { class: `chevron ${e.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2363
2374
|
this.fieldToggle(n);
|
|
2364
2375
|
} }, s("chevron-icon", { width: "24", height: "24" })))), s("div", { class: `form-field_content ${!e.isOpen && "hidden"}`, part: "nbfc__form_field-content" }, s("div", { class: "inputs" }, s("input-component", { class: "label-input", name: `${n}`, key: n, label: "Label", required: !1, readOnly: e.readonly, defaultValue: e.label }, s("div", { class: "required-input", slot: "additional-input" }, s("input", { type: "checkbox", name: `required_${e.order}`, id: `required_${e.order}`, onClick: () => {
|
|
2365
2376
|
this.fieldRequired(n);
|
|
2366
|
-
}, checked: e.required, disabled: e.readonly }), s("label", { htmlFor: `required_${e.order}`, "aria-label": "Required" }, "Required")))), e.options != null && s("div", { class: "options-container" }, s("h4", null, "ALL OPTIONS"), s("div", { class: "options" }, e.options.map((t, a) => s("div", { class: "option" }, s("input-component", { key: a, name: `${n}_${a}`, label: e.typeLabel + " option " + (a + 1), required: !0, defaultValue: t }, a > 1 && s("div", { class: "required-input", slot: "additional-input" }, s("button", { onClick: () => {
|
|
2377
|
+
}, checked: e.required, disabled: e.readonly }), s("label", { htmlFor: `required_${e.order}`, "aria-label": "Required" }, "Required"))), !e.readonly && s("input-component", { class: "default-value", name: `default-value-${n}`, key: n, label: "Default value", required: !1, readOnly: e.readonly, defaultValue: e.default })), e.options != null && s("div", { class: "options-container" }, s("h4", null, "ALL OPTIONS"), s("div", { class: "options" }, e.options.map((t, a) => s("div", { class: "option" }, s("input-component", { key: a, name: `${n}_${a}`, label: e.typeLabel + " option " + (a + 1), required: !0, defaultValue: t }, a > 1 && s("div", { class: "required-input", slot: "additional-input" }, s("button", { onClick: () => {
|
|
2367
2378
|
this.fieldOptionRemove(n, a);
|
|
2368
2379
|
} }, s("close-icon", null))))))), s("button", { onClick: () => {
|
|
2369
2380
|
this.fieldOptionAdd(n);
|
|
@@ -2834,13 +2845,13 @@ const Zt = class {
|
|
|
2834
2845
|
const p = e == null ? void 0 : e.filter((f) => n.some((u) => u.email === f.email)), m = e == null ? void 0 : e.filter((f) => !n.some((u) => u.email === f.email));
|
|
2835
2846
|
p == null || p.forEach((f) => {
|
|
2836
2847
|
var y, w, $;
|
|
2837
|
-
const u = n == null ? void 0 : n.find((
|
|
2848
|
+
const u = n == null ? void 0 : n.find((N) => N.email === f.email);
|
|
2838
2849
|
if (!u)
|
|
2839
2850
|
return;
|
|
2840
2851
|
this.participantDefaultSelectedCalendars[f.email] = ((y = f.availability) == null ? void 0 : y.calendar_ids) || [];
|
|
2841
2852
|
const g = u.calendars ?? [];
|
|
2842
|
-
($ = (w = f.availability) == null ? void 0 : w.calendar_ids) == null || $.forEach((
|
|
2843
|
-
!(g != null && g.some((R) => R.id ===
|
|
2853
|
+
($ = (w = f.availability) == null ? void 0 : w.calendar_ids) == null || $.forEach((N) => {
|
|
2854
|
+
!(g != null && g.some((R) => R.id === N)) && N !== "primary" && g.push({ id: N, name: N });
|
|
2844
2855
|
}), o[f.email] = g;
|
|
2845
2856
|
}), a && (m == null || m.forEach((f) => {
|
|
2846
2857
|
var u, g, y, w;
|
|
@@ -3247,7 +3258,7 @@ const Gt = class {
|
|
|
3247
3258
|
this.description = n, this.internals.setFormValue(n, "description"), this.valueChanged.emit({ value: n, name: this.name });
|
|
3248
3259
|
}
|
|
3249
3260
|
render() {
|
|
3250
|
-
return s(E, { key: "6a7fc19449be05b4b6207692d5ceec94347f913e" }, s("div", { key: "8e0d79a310e1cccf1d9b7772703714907b01688f", class: "nylas-event-description", part: "nedesc" }, s("label", { key: "aac3fa43d77623ce9f51cd4aa81075c779a9da3e", htmlFor: "description" }, "Event description", s("span", { key: "a62743418230bdc20188052795c6ecb9e7ad2903", class: "label-icon" }, s("tooltip-component", { key: "7842c029c8f46d97f65cd321668cc6c7243b9787" }, s("info-icon", { key: "df7e6389587e8a76f9dcb8b57c7373f747569a0b", slot: "tooltip-icon" }), s("span", { key: "a8c37a68325c6d674c2f8ee6bdb8999d5f5d4b04", slot: "tooltip-content" }, "The event description appears in the Scheduler Editor’s manager view.")))), s("textarea", { key: "
|
|
3261
|
+
return s(E, { key: "6a7fc19449be05b4b6207692d5ceec94347f913e" }, s("div", { key: "8e0d79a310e1cccf1d9b7772703714907b01688f", class: "nylas-event-description", part: "nedesc" }, s("label", { key: "aac3fa43d77623ce9f51cd4aa81075c779a9da3e", htmlFor: "description" }, "Event description", s("span", { key: "a62743418230bdc20188052795c6ecb9e7ad2903", class: "label-icon" }, s("tooltip-component", { key: "7842c029c8f46d97f65cd321668cc6c7243b9787" }, s("info-icon", { key: "df7e6389587e8a76f9dcb8b57c7373f747569a0b", slot: "tooltip-icon" }), s("span", { key: "a8c37a68325c6d674c2f8ee6bdb8999d5f5d4b04", slot: "tooltip-content" }, "The event description appears in the Scheduler Editor’s manager view and in the response payload when a booking is created.")))), s("textarea", { key: "b411e8e7b3986b2197af6089116f9a5bf99fab89", id: "description", part: "nedesc__textarea", name: "description", value: this.description, maxlength: "8192", onInput: (e) => this.handleChange(e) })));
|
|
3251
3262
|
}
|
|
3252
3263
|
static get formAssociated() {
|
|
3253
3264
|
return !0;
|
|
@@ -3274,8 +3285,8 @@ $s([
|
|
|
3274
3285
|
In("design:returntype", void 0)
|
|
3275
3286
|
], Gt.prototype, "render", null);
|
|
3276
3287
|
Gt.style = Is;
|
|
3277
|
-
const Ps = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}',
|
|
3278
|
-
var
|
|
3288
|
+
const Ps = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-input){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:14px 16px;width:50px}.nylas-event-duration__wrapper input-dropdown::part(id_dropdown-content){width:100%;min-width:unset;height:200px}.nylas-event-duration__wrapper select-dropdown{width:120px}@media screen and (max-width: 768px){.nylas-event-duration__wrapper select-dropdown{width:100%}}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200)}', Fs = Ps;
|
|
3289
|
+
var Ns = function(e, n, t, a) {
|
|
3279
3290
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
3280
3291
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
3281
3292
|
i = Reflect.decorate(e, n, t, a);
|
|
@@ -3364,7 +3375,7 @@ const Yt = class {
|
|
|
3364
3375
|
};
|
|
3365
3376
|
}
|
|
3366
3377
|
};
|
|
3367
|
-
|
|
3378
|
+
Ns([
|
|
3368
3379
|
S({
|
|
3369
3380
|
name: "nylas-event-duration",
|
|
3370
3381
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -3375,7 +3386,7 @@ Fs([
|
|
|
3375
3386
|
$n("design:paramtypes", []),
|
|
3376
3387
|
$n("design:returntype", void 0)
|
|
3377
3388
|
], Yt.prototype, "render", null);
|
|
3378
|
-
Yt.style =
|
|
3389
|
+
Yt.style = Fs;
|
|
3379
3390
|
const Rs = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}', Ls = Rs;
|
|
3380
3391
|
var As = function(e, n, t, a) {
|
|
3381
3392
|
var o = arguments.length, i = o < 3 ? n : a === null ? a = Object.getOwnPropertyDescriptor(n, t) : a, r;
|
|
@@ -3435,7 +3446,7 @@ var js = function(e, n, t, a) {
|
|
|
3435
3446
|
for (var l = e.length - 1; l >= 0; l--)
|
|
3436
3447
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
3437
3448
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3438
|
-
},
|
|
3449
|
+
}, Fn = function(e, n) {
|
|
3439
3450
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3440
3451
|
return Reflect.metadata(e, n);
|
|
3441
3452
|
};
|
|
@@ -3471,9 +3482,9 @@ js([
|
|
|
3471
3482
|
eventToProps: {},
|
|
3472
3483
|
fireRegisterEvent: !0
|
|
3473
3484
|
}),
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3485
|
+
Fn("design:type", Function),
|
|
3486
|
+
Fn("design:paramtypes", []),
|
|
3487
|
+
Fn("design:returntype", void 0)
|
|
3477
3488
|
], Kt.prototype, "render", null);
|
|
3478
3489
|
Kt.style = zs;
|
|
3479
3490
|
const Us = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ws = Us;
|
|
@@ -3485,7 +3496,7 @@ var Bs = function(e, n, t, a) {
|
|
|
3485
3496
|
for (var l = e.length - 1; l >= 0; l--)
|
|
3486
3497
|
(r = e[l]) && (i = (o < 3 ? r(i) : o > 3 ? r(n, t, i) : r(n, t)) || i);
|
|
3487
3498
|
return o > 3 && i && Object.defineProperty(n, t, i), i;
|
|
3488
|
-
},
|
|
3499
|
+
}, Nn = function(e, n) {
|
|
3489
3500
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3490
3501
|
return Reflect.metadata(e, n);
|
|
3491
3502
|
};
|
|
@@ -3497,7 +3508,11 @@ const _e = {
|
|
|
3497
3508
|
zoom: "Zoom Meeting"
|
|
3498
3509
|
}, Qt = class {
|
|
3499
3510
|
constructor(e) {
|
|
3500
|
-
|
|
3511
|
+
var n;
|
|
3512
|
+
b(this, e), this.valueChanged = x(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "location", this.currentUser = void 0, this.userProvider = void 0, this.eventConferencing = void 0, this.conferenceProviders = void 0, this.selectedConfiguration = void 0, this.eventLocation = void 0, this.location = this.eventLocation ?? "", this.grantId = this.eventConferencing ? this.setDefaultGrantID(this.eventConferencing) : "", this.selectedLocationOption = void 0, this.userProviderState = this.userProvider ?? ((n = this.currentUser) == null ? void 0 : n.provider) ?? "", this.locationOptions = [
|
|
3513
|
+
{ value: "none", label: _e.none, labelHTML: this.getLabelHTML("none") },
|
|
3514
|
+
{ value: "custom", label: _e.custom, labelHTML: this.getLabelHTML("custom") }
|
|
3515
|
+
];
|
|
3501
3516
|
}
|
|
3502
3517
|
elementNameChangedHandler(e) {
|
|
3503
3518
|
d("nylas-event-location", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
@@ -3515,8 +3530,16 @@ const _e = {
|
|
|
3515
3530
|
d("nylas-event-location", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
3516
3531
|
}
|
|
3517
3532
|
componentDidLoad() {
|
|
3518
|
-
var e;
|
|
3519
|
-
d("nylas-event-location", "componentDidLoad"), this.selectedConfiguration
|
|
3533
|
+
var e, n;
|
|
3534
|
+
switch (d("nylas-event-location", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : this.selectedLocationOption = this.setDefaultLocationOption(this.eventConferencing || null, this.eventLocation ?? ""), this.userProviderState = this.userProvider ?? ((e = this.currentUser) == null ? void 0 : e.provider) ?? "", this.userProviderState) {
|
|
3535
|
+
case "google":
|
|
3536
|
+
this.locationOptions.push({ value: "google", label: _e.google, labelHTML: this.getLabelHTML("google") });
|
|
3537
|
+
break;
|
|
3538
|
+
case "microsoft":
|
|
3539
|
+
this.locationOptions.push({ value: "microsoft", label: _e.microsoft, labelHTML: this.getLabelHTML("microsoft") });
|
|
3540
|
+
break;
|
|
3541
|
+
}
|
|
3542
|
+
(n = this.conferenceProviders) != null && n.zoom && this.locationOptions.push({ value: "zoom", label: _e.zoom, labelHTML: this.getLabelHTML("zoom") });
|
|
3520
3543
|
}
|
|
3521
3544
|
disconnectedCallback() {
|
|
3522
3545
|
d("nylas-event-location", "disconnectedCallback");
|
|
@@ -3527,10 +3550,10 @@ const _e = {
|
|
|
3527
3550
|
let n;
|
|
3528
3551
|
switch (this.selectedLocationOption) {
|
|
3529
3552
|
case "none":
|
|
3530
|
-
this.location = "", this.setFormValue("", this.name), this.valueChanged.emit({ value: "", name: this.name }), this.valueChanged.emit({ value: JSON.stringify(
|
|
3553
|
+
this.location = "", this.setFormValue("", this.name), this.valueChanged.emit({ value: "", name: this.name }), this.valueChanged.emit({ value: JSON.stringify(null), name: "conference" });
|
|
3531
3554
|
break;
|
|
3532
3555
|
case "custom":
|
|
3533
|
-
this.valueChanged.emit({ value: JSON.stringify(
|
|
3556
|
+
this.valueChanged.emit({ value: JSON.stringify(null), name: "conference" });
|
|
3534
3557
|
break;
|
|
3535
3558
|
case "google":
|
|
3536
3559
|
this.location = "", this.setFormValue("", this.name);
|
|
@@ -3604,22 +3627,8 @@ const _e = {
|
|
|
3604
3627
|
} }, _e[e]));
|
|
3605
3628
|
}
|
|
3606
3629
|
render() {
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
{ value: "none", label: _e.none, labelHTML: this.getLabelHTML("none") },
|
|
3610
|
-
{ value: "custom", label: _e.custom, labelHTML: this.getLabelHTML("custom") }
|
|
3611
|
-
];
|
|
3612
|
-
switch (this.userProviderState) {
|
|
3613
|
-
case "google":
|
|
3614
|
-
e.push({ value: "google", label: _e.google, labelHTML: this.getLabelHTML("google") });
|
|
3615
|
-
break;
|
|
3616
|
-
case "microsoft":
|
|
3617
|
-
e.push({ value: "microsoft", label: _e.microsoft, labelHTML: this.getLabelHTML("microsoft") });
|
|
3618
|
-
break;
|
|
3619
|
-
}
|
|
3620
|
-
(a = this.conferenceProviders) != null && a.zoom && e.push({ value: "zoom", label: _e.zoom, labelHTML: this.getLabelHTML("zoom") });
|
|
3621
|
-
const n = [...e], t = e.find((o) => o.value == this.selectedLocationOption);
|
|
3622
|
-
return s(E, { key: "9ace3d0c618879dede4f6ea52aed41a0e193352f" }, s("div", { key: "06f62cedba0696aabc59058f9d1cce12819f350b", class: "nylas-event-location", part: "nel" }, s("label", { key: "584acc644bdeddcb319395b531a7dad90a165452", htmlFor: "location" }, "Event meeting or location", s("span", { key: "a4e2414ab1cf5c83c5f487a21d22d5c66f5b945d", class: "label-icon" }, s("tooltip-component", { key: "41a0429b5987bd6359c2fd42e8ab4abf67a3f83e" }, s("info-icon", { key: "8723ecf7cd91edee84b3ca28ffba0c4b3d3967f0", slot: "tooltip-icon" }), s("span", { key: "e0201540705e2aa0a94357fd2dd1af95887abe71", slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), s("div", { key: "e983eb85462b31b665edad087c4aea7259c85407", class: "location-input" }, (t == null ? void 0 : t.label) && s("select-dropdown", { withSearch: !1, name: "location", options: n, defaultSelectedOption: t, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, s("span", { slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && s("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (o) => this.handleChange(o) }))));
|
|
3630
|
+
const e = typeof this.selectedLocationOption < "u" ? this.locationOptions.find((n) => n.value == this.selectedLocationOption) : null;
|
|
3631
|
+
return s(E, { key: "6869d3c2f6316dc482becc022bc973783332658f" }, s("div", { key: "e17b95b15e181f73efd5c666ff0074bcd5467b65", class: "nylas-event-location", part: "nel" }, s("label", { key: "9370ab01f5f730099dd5061ccf39ca3b53132244", htmlFor: "location" }, "Event meeting or location", s("span", { key: "acd558f22ad18afc63b93456450a5aa946916fd4", class: "label-icon" }, s("tooltip-component", { key: "bd2ea171a9eef9e9a377a0be2dc4a16b91bb1359" }, s("info-icon", { key: "745289e658441e9aadb245c94da890cdb3119179", slot: "tooltip-icon" }), s("span", { key: "ffa4a9597a7d63e33b639dafd736a654a97589c9", slot: "tooltip-content" }, "Select a conferencing option or add a custom location.")))), s("div", { key: "59f930e30b758b740128b42a855608a02ee1a739", class: "location-input" }, e && (e == null ? void 0 : e.label) && s("select-dropdown", { withSearch: !1, name: "location", options: this.locationOptions, defaultSelectedOption: e, exportparts: "sd_dropdown: nel__dropdown, sd_dropdown-button: nel__dropdown-button, sd_dropdown-content: nel__dropdown-content" }, s("span", { slot: "select-icon" }, this.getIcon(this.selectedLocationOption))), this.selectedLocationOption === "custom" && s("input", { type: "text", part: "nel__location", id: "location", name: "location", maxlength: "1024", value: this.location, onInput: (n) => this.handleChange(n) }))));
|
|
3623
3632
|
}
|
|
3624
3633
|
static get formAssociated() {
|
|
3625
3634
|
return !0;
|
|
@@ -3645,9 +3654,9 @@ Bs([
|
|
|
3645
3654
|
eventToProps: {},
|
|
3646
3655
|
fireRegisterEvent: !0
|
|
3647
3656
|
}),
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3657
|
+
Nn("design:type", Function),
|
|
3658
|
+
Nn("design:paramtypes", []),
|
|
3659
|
+
Nn("design:returntype", void 0)
|
|
3651
3660
|
], Qt.prototype, "render", null);
|
|
3652
3661
|
Qt.style = Ws;
|
|
3653
3662
|
const Zs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:flex;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', qs = Zs;
|
|
@@ -3807,8 +3816,8 @@ const ea = class {
|
|
|
3807
3816
|
let o = this.titleRef.firstChild, i = null;
|
|
3808
3817
|
for (; o; ) {
|
|
3809
3818
|
if (o.nodeType === 3) {
|
|
3810
|
-
const $ = ((w = o.textContent) == null ? void 0 : w.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "",
|
|
3811
|
-
if ($.includes(
|
|
3819
|
+
const $ = ((w = o.textContent) == null ? void 0 : w.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", N = t.replace(/[\u200B-\u200D\uFEFF]/g, "");
|
|
3820
|
+
if ($.includes(N)) {
|
|
3812
3821
|
i = o;
|
|
3813
3822
|
break;
|
|
3814
3823
|
}
|
|
@@ -4678,7 +4687,7 @@ const la = class {
|
|
|
4678
4687
|
}), n;
|
|
4679
4688
|
}
|
|
4680
4689
|
render() {
|
|
4681
|
-
return s(E, { key: "6f9b3c61650e7dd61b6e548fe008be57494b5e89" }, s("div", { key: "256e2e41f0849180ffdb5c67c66dffd9c1ce031a", class: "nylas-participants-custom-availability", part: "npca" }, s("div", { key: "c3e1aefbb7872b233938aefeb22a13169f194864", class: "header", part: "npca__header" }, s("h3", { key: "8f7af6fa1435b2530fb5d179db1357e765270865" }, "Participant open hours"), s("p", { key: "ff146ecd72673369a01773b2f00e81264654acf5" }, "If not set,
|
|
4690
|
+
return s(E, { key: "6f9b3c61650e7dd61b6e548fe008be57494b5e89" }, s("div", { key: "256e2e41f0849180ffdb5c67c66dffd9c1ce031a", class: "nylas-participants-custom-availability", part: "npca" }, s("div", { key: "c3e1aefbb7872b233938aefeb22a13169f194864", class: "header", part: "npca__header" }, s("h3", { key: "8f7af6fa1435b2530fb5d179db1357e765270865" }, "Participant open hours"), s("p", { key: "ff146ecd72673369a01773b2f00e81264654acf5" }, "If not set, the default open hours will be used to calculate availability for this participant.")), s("div", { key: "c6aa29f7b88ecb5082f86b7b63416b3537e89dfe", class: "content", part: "npca__content" }, s("form", { key: "f46b43df9ee6026aa74c08feab122b4fd4e8e2bd", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
|
|
4682
4691
|
const t = this.selectedParticipants[e];
|
|
4683
4692
|
if (!(!t || !t.name || !t.availability))
|
|
4684
4693
|
return s("div", { class: "participant-container", part: "npca__participant-container", key: `participant-conatiner-${n}` }, s("div", { class: "participant-title", part: "npca__participant-title" }, s("p", null, t.name, "'s open hours"), s("div", { class: "participant-toggle", part: "npca__participant-toggle--container" }, s("toggle-switch", { exportparts: "ts_label: npca__toggle-label, ts_input: npca_toggle-input, ts_slider: npca_toggle-slider", name: e, checked: !!(t != null && t.openHours) && (t == null ? void 0 : t.openHours.length) > 0 }), s("span", { class: `chevron ${t.isOpen ? "open" : "closed"} ${t.setCustom ? "" : "disabled"}`, onClick: () => {
|
|
@@ -4740,7 +4749,7 @@ const da = class {
|
|
|
4740
4749
|
d("nylas-reminder-emails", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
4741
4750
|
}
|
|
4742
4751
|
componentDidLoad() {
|
|
4743
|
-
d("nylas-reminder-emails", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.reminders = this.eventReminders ?? [], this.updateRemindersFormValue())
|
|
4752
|
+
d("nylas-reminder-emails", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.reminders = this.eventReminders ?? [], this.updateRemindersFormValue());
|
|
4744
4753
|
}
|
|
4745
4754
|
componentWillUpdate() {
|
|
4746
4755
|
d("nylas-reminder-emails", "componentWillUpdate");
|
|
@@ -4841,7 +4850,7 @@ const da = class {
|
|
|
4841
4850
|
value: "host"
|
|
4842
4851
|
}
|
|
4843
4852
|
];
|
|
4844
|
-
return s(E, { key: "
|
|
4853
|
+
return s(E, { key: "f077a4f36237092515331a1f7003373eb5246b24" }, s("div", { key: "9e80591159b41af9953591145b19347152307b03", class: "cards-container" }, this.reminders.map((a, o) => {
|
|
4845
4854
|
var i;
|
|
4846
4855
|
return a.type !== "webhook" ? s("div", { class: "nylas-reminder-email", part: "nre" }, s("div", { class: "header", part: "nre__header" }, s("div", null, s("h3", null, "Upcoming meeting", e ? ` with ${e} ` : ""), s("p", null, "Reminder before event")), a.editing ? s("div", { class: "reminder-open-close-toggle" }, s("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${o} `, clickHandler: (r) => {
|
|
4847
4856
|
r.preventDefault(), this.deleteReminder(o);
|
|
@@ -4853,9 +4862,9 @@ const da = class {
|
|
|
4853
4862
|
nrt__input_dropdown-input: nre__reminder-input_dropdown-input,
|
|
4854
4863
|
nrt__input_dropdown-content: nre__reminder-input_dropdown-content,
|
|
4855
4864
|
` })), s("div", { class: "nylas-reminder-email__block" }, s("label", null, "Email subject"), s("input-component", { name: `reminder-subject-${o}`, maxLength: 60, placeholder: `Upcoming meeting ${e ? `with ${e}` : ""}`, defaultValue: (a == null ? void 0 : a.email_subject) || "" })))) : s("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, s("p", null, s("span", { class: "summary-icon" }, s("person-clipboard-icon", null)), (i = n.find((r) => r.value === a.recipient)) == null ? void 0 : i.label), s("p", null, s("span", { class: "summary-icon" }, s("clock-icon", null)), this.formatReminderTime(a.minutes_before_event), " before the event"))) : null;
|
|
4856
|
-
})), s("button-component", { key: "
|
|
4865
|
+
})), s("button-component", { key: "f4ac42071e8c797daf29f055b139cbca46d12a82", class: "create-reminder", variant: "basic", clickHandler: (a) => {
|
|
4857
4866
|
a.preventDefault(), this.addReminder();
|
|
4858
|
-
} }, s("plus-icon", { key: "
|
|
4867
|
+
} }, s("plus-icon", { key: "ea3dcad1d5bae23ad4453120f05a5d9011233a1c", width: "16", height: "16" }), "New reminder"));
|
|
4859
4868
|
}
|
|
4860
4869
|
static get formAssociated() {
|
|
4861
4870
|
return !0;
|
|
@@ -5202,7 +5211,7 @@ $o([
|
|
|
5202
5211
|
Jn("design:returntype", void 0)
|
|
5203
5212
|
], fa.prototype, "render", null);
|
|
5204
5213
|
fa.style = Io;
|
|
5205
|
-
const Po = ".sc-paintbrush-fill-icon-h{display:flex}",
|
|
5214
|
+
const Po = ".sc-paintbrush-fill-icon-h{display:flex}", Fo = Po, No = class {
|
|
5206
5215
|
constructor(e) {
|
|
5207
5216
|
b(this, e), this.width = "16", this.height = "13";
|
|
5208
5217
|
}
|
|
@@ -5210,7 +5219,7 @@ const Po = ".sc-paintbrush-fill-icon-h{display:flex}", No = Po, Fo = class {
|
|
|
5210
5219
|
return s("svg", { key: "e4684ac3235a59975a67508b6a5019e70b1a3a5a", width: "16", height: "17", viewBox: "-3 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "00dee1b55784f1191d56a8c1b420f0076575a197", d: "M5 2.875V0.375H0.5C0.223858 0.375 0 0.598858 0 0.875V7.37585H10V0.875C10 0.598858 9.77614 0.375 9.5 0.375H8V3.87722C8 4.15337 7.77614 4.37722 7.5 4.37722C7.22386 4.37722 7 4.15337 7 3.87722V0.375H6V2.875C6 3.15114 5.77614 3.375 5.5 3.375C5.22386 3.375 5 3.15114 5 2.875ZM10 8.37585H0V9.37938C0 10.4839 0.895431 11.3794 2 11.3794H3.5V14.8767C3.5 15.7051 4.17157 16.3767 5 16.3767C5.82843 16.3767 6.5 15.7051 6.5 14.8767V11.3794H8C9.10457 11.3794 10 10.4839 10 9.37938V8.37585Z", fill: "currentColor" }));
|
|
5211
5220
|
}
|
|
5212
5221
|
};
|
|
5213
|
-
|
|
5222
|
+
No.style = Fo;
|
|
5214
5223
|
const Ro = ".sc-paintbrush-icon-h{display:flex}", Lo = Ro, Ao = class {
|
|
5215
5224
|
constructor(e) {
|
|
5216
5225
|
b(this, e), this.width = "16", this.height = "13";
|
|
@@ -5315,7 +5324,7 @@ export {
|
|
|
5315
5324
|
ca as nylas_reminder_time,
|
|
5316
5325
|
pa as nylas_scheduling_method,
|
|
5317
5326
|
fa as nylas_timeslot_interval,
|
|
5318
|
-
|
|
5327
|
+
No as paintbrush_fill_icon,
|
|
5319
5328
|
Ao as paintbrush_icon,
|
|
5320
5329
|
jo as people_icon,
|
|
5321
5330
|
Bo as toggle_switch,
|