@nylas/react 3.2.6 → 3.2.7
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/cjs/components.js +15 -15
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/p-DVWbg8if.js.map +1 -1
- package/dist/cjs/utils.js.map +1 -1
- package/dist/es/components.js +519 -517
- package/dist/es/components.js.map +1 -1
- package/dist/es/p-DVWbg8if.js.map +1 -1
- package/dist/es/utils.js.map +1 -1
- package/package.json +2 -2
package/dist/es/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as te, H as ne, h as r, c as K, i as h, s as sn, d as b, e as bn, g as fc, a as P5, b as Pe, f as Rs, j as Be, k as Os, L as Lt, l as uc, v as hc, m as Un, r as Pp, n as Hp, o as Ni, D as fs, t as
|
|
1
|
+
import { p as te, H as ne, h as r, c as K, i as h, s as sn, d as b, e as bn, g as fc, a as P5, b as Pe, f as Rs, j as Be, k as Os, L as Lt, l as uc, v as hc, m as Un, r as Pp, n as Hp, o as Ni, D as fs, t as Aa, q as Si, T as Ln, u as Na, w as wf, x as Ng, y as Mp, z as Fp, F as $p, A as Np, B as Ls, C as Ps, E as gn, G as us, I as Co, J as H5, K as M5, M as F5, O as $5, P as Bp, Q as Ba, R as Ha, S as Bg, U as zg, V as Ar, W as N5, X as B5, Y as pc, Z as jg, _ as Ug, $ as ga, a0 as Ft, a1 as qd, a2 as Vg, a3 as z5, a4 as hs, a5 as j5, a6 as U5, a7 as Wg, a8 as pa, a9 as ps, aa as V5, ab as W5, ac as mc, N as q5, ad as qg, ae as Ye, af as Rr, ag as Ti } from "./p-DVWbg8if.js";
|
|
2
2
|
import { createComponent as ae } from "@stencil/react-output-target/runtime";
|
|
3
3
|
import ie from "react";
|
|
4
4
|
const G5 = ".sc-add-circle-icon-h{display:flex}", Gg = te(class extends ne {
|
|
@@ -277,7 +277,7 @@ const kC = ny, wC = Bo, EC = ".sc-calendar-icon-h{display:flex}", ay = te(class
|
|
|
277
277
|
width: [1],
|
|
278
278
|
height: [1]
|
|
279
279
|
}]);
|
|
280
|
-
function
|
|
280
|
+
function ja() {
|
|
281
281
|
if (typeof customElements > "u")
|
|
282
282
|
return;
|
|
283
283
|
["calendar-icon"].forEach((e) => {
|
|
@@ -288,7 +288,7 @@ function za() {
|
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
const xC = ay, SC =
|
|
291
|
+
const xC = ay, SC = ja, TC = ".sc-calendar-info-icon-h{display:flex}", iy = te(class extends ne {
|
|
292
292
|
constructor() {
|
|
293
293
|
super(), this.__registerHost(), this.width = "20", this.height = "20";
|
|
294
294
|
}
|
|
@@ -590,7 +590,7 @@ const qC = dy, GC = ot, YC = ".sc-clock-icon-h{display:flex}", fy = te(class ext
|
|
|
590
590
|
width: [1],
|
|
591
591
|
height: [1]
|
|
592
592
|
}]);
|
|
593
|
-
function
|
|
593
|
+
function Ua() {
|
|
594
594
|
if (typeof customElements > "u")
|
|
595
595
|
return;
|
|
596
596
|
["clock-icon"].forEach((e) => {
|
|
@@ -601,7 +601,7 @@ function ja() {
|
|
|
601
601
|
}
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
const ZC = fy, XC =
|
|
604
|
+
const ZC = fy, XC = Ua, JC = ".sc-close-icon-h{display:flex}", uy = te(class extends ne {
|
|
605
605
|
constructor() {
|
|
606
606
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
607
607
|
}
|
|
@@ -740,7 +740,7 @@ const f_ = gy, u_ = jo, h_ = ".sc-edit-icon-h{display:flex}", yy = te(class exte
|
|
|
740
740
|
width: [1],
|
|
741
741
|
height: [1]
|
|
742
742
|
}]);
|
|
743
|
-
function
|
|
743
|
+
function hi() {
|
|
744
744
|
if (typeof customElements > "u")
|
|
745
745
|
return;
|
|
746
746
|
["edit-icon"].forEach((e) => {
|
|
@@ -751,7 +751,7 @@ function ui() {
|
|
|
751
751
|
}
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
|
-
const p_ = yy, m_ =
|
|
754
|
+
const p_ = yy, m_ = hi, g_ = ".sc-envelope-fill-icon-h{display:flex}", by = te(class extends ne {
|
|
755
755
|
constructor() {
|
|
756
756
|
super(), this.__registerHost(), this.width = "16", this.height = "13";
|
|
757
757
|
}
|
|
@@ -2076,7 +2076,7 @@ B6([
|
|
|
2076
2076
|
yc("design:paramtypes", []),
|
|
2077
2077
|
yc("design:returntype", void 0)
|
|
2078
2078
|
], If.prototype, "render", null);
|
|
2079
|
-
function
|
|
2079
|
+
function wa() {
|
|
2080
2080
|
if (typeof customElements > "u")
|
|
2081
2081
|
return;
|
|
2082
2082
|
["nylas-form-card"].forEach((e) => {
|
|
@@ -2593,7 +2593,7 @@ function qo() {
|
|
|
2593
2593
|
customElements.get(e) || fn();
|
|
2594
2594
|
break;
|
|
2595
2595
|
case "nylas-form-card":
|
|
2596
|
-
customElements.get(e) ||
|
|
2596
|
+
customElements.get(e) || wa();
|
|
2597
2597
|
break;
|
|
2598
2598
|
case "tooltip-component":
|
|
2599
2599
|
customElements.get(e) || lt();
|
|
@@ -2961,7 +2961,7 @@ const Uy = te(class extends ne {
|
|
|
2961
2961
|
minimumStartTime: ["minimumStartTimeChangedHandler"],
|
|
2962
2962
|
themeConfig: ["themeConfigChangedHandler"]
|
|
2963
2963
|
}]);
|
|
2964
|
-
function
|
|
2964
|
+
function Ea() {
|
|
2965
2965
|
if (typeof customElements > "u")
|
|
2966
2966
|
return;
|
|
2967
2967
|
["nylas-time-window-picker"].forEach((e) => {
|
|
@@ -3309,8 +3309,8 @@ const Rf = te(class extends ne {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
getOverlaps(e) {
|
|
3311
3311
|
const t = e.map((i, o) => ({
|
|
3312
|
-
start:
|
|
3313
|
-
end:
|
|
3312
|
+
start: Aa(i.start),
|
|
3313
|
+
end: Aa(i.end),
|
|
3314
3314
|
originalIndex: o
|
|
3315
3315
|
}));
|
|
3316
3316
|
t.sort((i, o) => i.start - o.start);
|
|
@@ -3325,33 +3325,33 @@ const Rf = te(class extends ne {
|
|
|
3325
3325
|
this.schedule[e] = [{ start: "09:00am", end: "05:00pm" }];
|
|
3326
3326
|
else {
|
|
3327
3327
|
const o = t.map((f) => ({
|
|
3328
|
-
start:
|
|
3329
|
-
end:
|
|
3328
|
+
start: Aa(f.start),
|
|
3329
|
+
end: Aa(f.end)
|
|
3330
3330
|
})).sort((f, p) => f.start - p.start), l = o[o.length - 1].end;
|
|
3331
3331
|
if (l + 60 <= i)
|
|
3332
3332
|
this.schedule[e].push({
|
|
3333
|
-
start: Un(
|
|
3334
|
-
end: Un(
|
|
3333
|
+
start: Un(Si(l)),
|
|
3334
|
+
end: Un(Si(l + 60))
|
|
3335
3335
|
});
|
|
3336
3336
|
else {
|
|
3337
3337
|
let f = !1;
|
|
3338
3338
|
if (o[0].start > a + 60 && (this.schedule[e].push({
|
|
3339
|
-
start: Un(
|
|
3340
|
-
end: Un(
|
|
3339
|
+
start: Un(Si(a)),
|
|
3340
|
+
end: Un(Si(a + 60))
|
|
3341
3341
|
}), f = !0), !f)
|
|
3342
3342
|
for (let p = 0; p < o.length - 1; p++) {
|
|
3343
3343
|
const g = o[p].end;
|
|
3344
3344
|
if (o[p + 1].start - g >= 60) {
|
|
3345
3345
|
this.schedule[e].push({
|
|
3346
|
-
start: Un(
|
|
3347
|
-
end: Un(
|
|
3346
|
+
start: Un(Si(g)),
|
|
3347
|
+
end: Un(Si(g + 60))
|
|
3348
3348
|
});
|
|
3349
3349
|
break;
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
3354
|
-
this.schedule[e].sort((o, l) =>
|
|
3354
|
+
this.schedule[e].sort((o, l) => Aa(o.start) - Aa(l.start)), this.schedule = { ...this.schedule }, this.scheduleChanged(this.schedule);
|
|
3355
3355
|
}
|
|
3356
3356
|
removeTimeRange(e, t) {
|
|
3357
3357
|
const a = `${e}:${t}_start`, i = `${e}:${t}_end`, o = { ...this.timeWindowErrors };
|
|
@@ -3526,7 +3526,7 @@ function js() {
|
|
|
3526
3526
|
customElements.get(e) || st();
|
|
3527
3527
|
break;
|
|
3528
3528
|
case "nylas-time-window-picker":
|
|
3529
|
-
customElements.get(e) ||
|
|
3529
|
+
customElements.get(e) || Ea();
|
|
3530
3530
|
break;
|
|
3531
3531
|
case "search-icon":
|
|
3532
3532
|
customElements.get(e) || vt();
|
|
@@ -3601,7 +3601,7 @@ const Of = te(class extends ne {
|
|
|
3601
3601
|
}
|
|
3602
3602
|
async componentDidLoad() {
|
|
3603
3603
|
b("[nylas-booked-event-card] Component did load"), this.eventInfo || b('[nylas-booked-event-card] "eventInfo" prop missing. Please provide the event info to display the event details in the booked event card component.'), this.bookingInfo || b('[nylas-booked-event-card] "bookingInfo" prop missing. Please provide the booking info to display the guest details in the booked event card component.');
|
|
3604
|
-
const e =
|
|
3604
|
+
const e = Na[this.selectedLanguage || "en"], t = new Intl.DateTimeFormat(e, {
|
|
3605
3605
|
hour: "2-digit",
|
|
3606
3606
|
minute: "2-digit",
|
|
3607
3607
|
timeZone: this.selectedTimezone,
|
|
@@ -3616,7 +3616,7 @@ const Of = te(class extends ne {
|
|
|
3616
3616
|
}
|
|
3617
3617
|
render() {
|
|
3618
3618
|
const e = this.configSettings?.booking_type, t = e && e !== "booking";
|
|
3619
|
-
return r(Pe, { key: "302d347b5ff01084308df20bfb4c2b5cd640c611", part: "nbec" }, r("div", { key: "3fd703405d5d67f15e2420cb5b797b26e1fbecf7", class: "nylas-booked-event-card" }, r("div", { key: "60980fe5326d21fe0956ee206859023eb1f07126", class: "booked-event-timezone" }, r("globe-icon", { key: "cc3154733bec79085dfa93e161a3d3afad65e9e6" }), Ln[this.selectedTimezone]), r("div", { key: "c08101d7afb5321127dd32216e844eb14bc49d93", class: "event-card-wrapper", part: "nbec__card" }, r("div", { key: "ef2179ffc943e3a4d833f72926ac82e5079cc358", class: "calendar-icon" }, r("calendar-check-icon", { key: "6c5c3cebf22a0ea56c789f2c961e88e77295c221" })), r("div", { key: "ee3b2f86f4aa50031c3724c9f4222ed232e63308", class: "booked-event-header" }, r("h2", { key: "97ae572217fe1692f2f2528dcedd80dcb7c48e83", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${h.t("bookingRescheduled")}` : t && !this.isLoading ? `${h.t("bookingSent")}` : `${h.t("bookingConfirmed")}`, "!"), r("div", { key: "9cea60bb948552978eabda962a1102cdc9f2910d", class: "card-description", part: "nbec__description" }, t ? h.t("bookingSentDescription") : r("span", null, h.t("bookingConfirmedDescription")))), r("div", { key: "177747d21336d0716fac77345c9f375fd2660c0a", class: "booking-date-time" }, r("checkmark-circle-icon", { key: "6a5db3642484d5a36399abaf77674683c8abe141" }), r("h3", { key: "a0443d20a5fdd173ae971eb382cb5741f84b2456" }, h.t("bookingDateAndTimeHeader")), r("p", { key: "5975c69e38fd959ebb52c726df83e4a0e1727630" }, this.selectedTimeslot?.start_time ? wf(Ng(this.selectedTimeslot?.start_time, this.selectedTimezone,
|
|
3619
|
+
return r(Pe, { key: "302d347b5ff01084308df20bfb4c2b5cd640c611", part: "nbec" }, r("div", { key: "3fd703405d5d67f15e2420cb5b797b26e1fbecf7", class: "nylas-booked-event-card" }, r("div", { key: "60980fe5326d21fe0956ee206859023eb1f07126", class: "booked-event-timezone" }, r("globe-icon", { key: "cc3154733bec79085dfa93e161a3d3afad65e9e6" }), Ln[this.selectedTimezone]), r("div", { key: "c08101d7afb5321127dd32216e844eb14bc49d93", class: "event-card-wrapper", part: "nbec__card" }, r("div", { key: "ef2179ffc943e3a4d833f72926ac82e5079cc358", class: "calendar-icon" }, r("calendar-check-icon", { key: "6c5c3cebf22a0ea56c789f2c961e88e77295c221" })), r("div", { key: "ee3b2f86f4aa50031c3724c9f4222ed232e63308", class: "booked-event-header" }, r("h2", { key: "97ae572217fe1692f2f2528dcedd80dcb7c48e83", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${h.t("bookingRescheduled")}` : t && !this.isLoading ? `${h.t("bookingSent")}` : `${h.t("bookingConfirmed")}`, "!"), r("div", { key: "9cea60bb948552978eabda962a1102cdc9f2910d", class: "card-description", part: "nbec__description" }, t ? h.t("bookingSentDescription") : r("span", null, h.t("bookingConfirmedDescription")))), r("div", { key: "177747d21336d0716fac77345c9f375fd2660c0a", class: "booking-date-time" }, r("checkmark-circle-icon", { key: "6a5db3642484d5a36399abaf77674683c8abe141" }), r("h3", { key: "a0443d20a5fdd173ae971eb382cb5741f84b2456" }, h.t("bookingDateAndTimeHeader")), r("p", { key: "5975c69e38fd959ebb52c726df83e4a0e1727630" }, this.selectedTimeslot?.start_time ? wf(Ng(this.selectedTimeslot?.start_time, this.selectedTimezone, Na[this.selectedLanguage])) : "-", " ", r("br", { key: "57e9a4786f013eabe020a9b34491c0072e8b8bba" }), this.startTime, " - ", this.endTime)), r("div", { key: "3dd212ae1c1c0e3475445593eeef5d0aa72e10b8", class: "booking-participants" }), !t && r("div", { key: "6cd2a3c135a24c4bba3567ff9342b56f5eacb0df", class: "button-container" }, r("div", { key: "7b05305fbd1741297930c30b0f747b0152768bd1", class: {
|
|
3620
3620
|
footer: !0,
|
|
3621
3621
|
"no-footer": this.configSettings?.scheduler?.hide_cancellation_options && this.configSettings?.scheduler?.hide_rescheduling_options || this.configSettings?.booking_type === "organizer-confirmation",
|
|
3622
3622
|
"no-template-cols": !!this.configSettings?.scheduler?.hide_cancellation_options || !!this.configSettings?.scheduler?.hide_rescheduling_options
|
|
@@ -4408,15 +4408,15 @@ function _3(n, e, t) {
|
|
|
4408
4408
|
writable: !0
|
|
4409
4409
|
}) : n[e] = t, n;
|
|
4410
4410
|
}
|
|
4411
|
-
function
|
|
4412
|
-
return
|
|
4411
|
+
function Ca() {
|
|
4412
|
+
return Ca = Object.assign || function(n) {
|
|
4413
4413
|
for (var e = 1; e < arguments.length; e++) {
|
|
4414
4414
|
var t = arguments[e];
|
|
4415
4415
|
for (var a in t)
|
|
4416
4416
|
Object.prototype.hasOwnProperty.call(t, a) && (n[a] = t[a]);
|
|
4417
4417
|
}
|
|
4418
4418
|
return n;
|
|
4419
|
-
},
|
|
4419
|
+
}, Ca.apply(this, arguments);
|
|
4420
4420
|
}
|
|
4421
4421
|
function k3(n, e) {
|
|
4422
4422
|
if (n == null) return {};
|
|
@@ -4436,19 +4436,19 @@ function w3(n, e) {
|
|
|
4436
4436
|
return t;
|
|
4437
4437
|
}
|
|
4438
4438
|
var E3 = "1.15.6";
|
|
4439
|
-
function
|
|
4439
|
+
function ya(n) {
|
|
4440
4440
|
if (typeof window < "u" && window.navigator)
|
|
4441
4441
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
4442
4442
|
}
|
|
4443
|
-
var
|
|
4443
|
+
var xa = ya(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Go = ya(/Edge/i), Up = ya(/firefox/i), Ao = ya(/safari/i) && !ya(/chrome/i) && !ya(/android/i), Mf = ya(/iP(ad|od|hone)/i), Zy = ya(/chrome/i) && ya(/android/i), Xy = {
|
|
4444
4444
|
capture: !1,
|
|
4445
4445
|
passive: !1
|
|
4446
4446
|
};
|
|
4447
4447
|
function ht(n, e, t) {
|
|
4448
|
-
n.addEventListener(e, t, !
|
|
4448
|
+
n.addEventListener(e, t, !xa && Xy);
|
|
4449
4449
|
}
|
|
4450
4450
|
function ut(n, e, t) {
|
|
4451
|
-
n.removeEventListener(e, t, !
|
|
4451
|
+
n.removeEventListener(e, t, !xa && Xy);
|
|
4452
4452
|
}
|
|
4453
4453
|
function ms(n, e) {
|
|
4454
4454
|
if (e) {
|
|
@@ -4527,7 +4527,7 @@ function aa() {
|
|
|
4527
4527
|
function qt(n, e, t, a, i) {
|
|
4528
4528
|
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
4529
4529
|
var o, l, f, p, g, y, C;
|
|
4530
|
-
if (n !== window && n.parentNode && n !== aa() ? (o = n.getBoundingClientRect(), l = o.top, f = o.left, p = o.bottom, g = o.right, y = o.height, C = o.width) : (l = 0, f = 0, p = window.innerHeight, g = window.innerWidth, y = window.innerHeight, C = window.innerWidth), (e || t) && n !== window && (i = i || n.parentNode, !
|
|
4530
|
+
if (n !== window && n.parentNode && n !== aa() ? (o = n.getBoundingClientRect(), l = o.top, f = o.left, p = o.bottom, g = o.right, y = o.height, C = o.width) : (l = 0, f = 0, p = window.innerHeight, g = window.innerWidth, y = window.innerHeight, C = window.innerWidth), (e || t) && n !== window && (i = i || n.parentNode, !xa))
|
|
4531
4531
|
do
|
|
4532
4532
|
if (i && i.getBoundingClientRect && (Qe(i, "transform") !== "none" || t && Qe(i, "position") !== "static")) {
|
|
4533
4533
|
var I = i.getBoundingClientRect();
|
|
@@ -4550,11 +4550,11 @@ function qt(n, e, t, a, i) {
|
|
|
4550
4550
|
}
|
|
4551
4551
|
}
|
|
4552
4552
|
function Wp(n, e, t) {
|
|
4553
|
-
for (var a =
|
|
4553
|
+
for (var a = Ma(n, !0), i = qt(n)[e]; a; ) {
|
|
4554
4554
|
var o = qt(a)[t], l = void 0;
|
|
4555
4555
|
if (l = i >= o, !l) return a;
|
|
4556
4556
|
if (a === aa()) break;
|
|
4557
|
-
a =
|
|
4557
|
+
a = Ma(a, !1);
|
|
4558
4558
|
}
|
|
4559
4559
|
return !1;
|
|
4560
4560
|
}
|
|
@@ -4599,7 +4599,7 @@ function x3(n, e) {
|
|
|
4599
4599
|
}
|
|
4600
4600
|
return -1;
|
|
4601
4601
|
}
|
|
4602
|
-
function
|
|
4602
|
+
function Ma(n, e) {
|
|
4603
4603
|
if (!n || !n.getBoundingClientRect) return aa();
|
|
4604
4604
|
var t = n, a = !1;
|
|
4605
4605
|
do
|
|
@@ -4719,16 +4719,16 @@ function I3(n) {
|
|
|
4719
4719
|
function A3(n, e, t, a) {
|
|
4720
4720
|
return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * a.animation;
|
|
4721
4721
|
}
|
|
4722
|
-
var
|
|
4722
|
+
var Di = [], xc = {
|
|
4723
4723
|
initializeByDefault: !0
|
|
4724
4724
|
}, Yo = {
|
|
4725
4725
|
mount: function(e) {
|
|
4726
4726
|
for (var t in xc)
|
|
4727
4727
|
xc.hasOwnProperty(t) && !(t in e) && (e[t] = xc[t]);
|
|
4728
|
-
|
|
4728
|
+
Di.forEach(function(a) {
|
|
4729
4729
|
if (a.pluginName === e.pluginName)
|
|
4730
4730
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
4731
|
-
}),
|
|
4731
|
+
}), Di.push(e);
|
|
4732
4732
|
},
|
|
4733
4733
|
pluginEvent: function(e, t, a) {
|
|
4734
4734
|
var i = this;
|
|
@@ -4736,7 +4736,7 @@ var Ti = [], xc = {
|
|
|
4736
4736
|
i.eventCanceled = !0;
|
|
4737
4737
|
};
|
|
4738
4738
|
var o = e + "Global";
|
|
4739
|
-
|
|
4739
|
+
Di.forEach(function(l) {
|
|
4740
4740
|
t[l.pluginName] && (t[l.pluginName][o] && t[l.pluginName][o](oa({
|
|
4741
4741
|
sortable: t
|
|
4742
4742
|
}, a)), t.options[l.pluginName] && t[l.pluginName][e] && t[l.pluginName][e](oa({
|
|
@@ -4745,11 +4745,11 @@ var Ti = [], xc = {
|
|
|
4745
4745
|
});
|
|
4746
4746
|
},
|
|
4747
4747
|
initializePlugins: function(e, t, a, i) {
|
|
4748
|
-
|
|
4748
|
+
Di.forEach(function(f) {
|
|
4749
4749
|
var p = f.pluginName;
|
|
4750
4750
|
if (!(!e.options[p] && !f.initializeByDefault)) {
|
|
4751
4751
|
var g = new f(e, t, e.options);
|
|
4752
|
-
g.sortable = e, g.options = e.options, e[p] = g,
|
|
4752
|
+
g.sortable = e, g.options = e.options, e[p] = g, Ca(a, g.defaults);
|
|
4753
4753
|
}
|
|
4754
4754
|
});
|
|
4755
4755
|
for (var o in e.options)
|
|
@@ -4760,13 +4760,13 @@ var Ti = [], xc = {
|
|
|
4760
4760
|
},
|
|
4761
4761
|
getEventProperties: function(e, t) {
|
|
4762
4762
|
var a = {};
|
|
4763
|
-
return
|
|
4764
|
-
typeof i.eventProperties == "function" &&
|
|
4763
|
+
return Di.forEach(function(i) {
|
|
4764
|
+
typeof i.eventProperties == "function" && Ca(a, i.eventProperties.call(t[i.pluginName], e));
|
|
4765
4765
|
}), a;
|
|
4766
4766
|
},
|
|
4767
4767
|
modifyOption: function(e, t, a) {
|
|
4768
4768
|
var i;
|
|
4769
|
-
return
|
|
4769
|
+
return Di.forEach(function(o) {
|
|
4770
4770
|
e[o.pluginName] && o.optionListeners && typeof o.optionListeners[t] == "function" && (i = o.optionListeners[t].call(e[o.pluginName], a));
|
|
4771
4771
|
}), i;
|
|
4772
4772
|
}
|
|
@@ -4775,7 +4775,7 @@ function R3(n) {
|
|
|
4775
4775
|
var e = n.sortable, t = n.rootEl, a = n.name, i = n.targetEl, o = n.cloneEl, l = n.toEl, f = n.fromEl, p = n.oldIndex, g = n.newIndex, y = n.oldDraggableIndex, C = n.newDraggableIndex, I = n.originalEvent, T = n.putSortable, F = n.extraEventProperties;
|
|
4776
4776
|
if (e = e || t && t[dn], !!e) {
|
|
4777
4777
|
var W, V = e.options, Q = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
4778
|
-
window.CustomEvent && !
|
|
4778
|
+
window.CustomEvent && !xa && !Go ? W = new CustomEvent(a, {
|
|
4779
4779
|
bubbles: !0,
|
|
4780
4780
|
cancelable: !0
|
|
4781
4781
|
}) : (W = document.createEvent("Event"), W.initEvent(a, !0, !0)), W.to = l || t, W.from = f || t, W.item = i || t, W.clone = o, W.oldIndex = p, W.newIndex = g, W.oldDraggableIndex = y, W.newDraggableIndex = C, W.originalEvent = I, W.pullMode = T ? T.lastPutMode : void 0;
|
|
@@ -4792,25 +4792,25 @@ var O3 = ["evt"], ln = function(e, t) {
|
|
|
4792
4792
|
parentEl: Nt,
|
|
4793
4793
|
ghostEl: nt,
|
|
4794
4794
|
rootEl: Rt,
|
|
4795
|
-
nextEl:
|
|
4795
|
+
nextEl: ii,
|
|
4796
4796
|
lastDownEl: Jr,
|
|
4797
4797
|
cloneEl: Ht,
|
|
4798
|
-
cloneHidden:
|
|
4798
|
+
cloneHidden: Pa,
|
|
4799
4799
|
dragStarted: Eo,
|
|
4800
4800
|
putSortable: Kt,
|
|
4801
4801
|
activeSortable: Ke.active,
|
|
4802
4802
|
originalEvent: i,
|
|
4803
|
-
oldIndex:
|
|
4803
|
+
oldIndex: Oi,
|
|
4804
4804
|
oldDraggableIndex: Oo,
|
|
4805
4805
|
newIndex: mn,
|
|
4806
|
-
newDraggableIndex:
|
|
4806
|
+
newDraggableIndex: Ra,
|
|
4807
4807
|
hideGhostForTarget: r0,
|
|
4808
4808
|
unhideGhostForTarget: s0,
|
|
4809
4809
|
cloneNowHidden: function() {
|
|
4810
|
-
|
|
4810
|
+
Pa = !0;
|
|
4811
4811
|
},
|
|
4812
4812
|
cloneNowShown: function() {
|
|
4813
|
-
|
|
4813
|
+
Pa = !1;
|
|
4814
4814
|
},
|
|
4815
4815
|
dispatchSortableEvent: function(f) {
|
|
4816
4816
|
rn({
|
|
@@ -4827,15 +4827,15 @@ function rn(n) {
|
|
|
4827
4827
|
cloneEl: Ht,
|
|
4828
4828
|
targetEl: Ee,
|
|
4829
4829
|
rootEl: Rt,
|
|
4830
|
-
oldIndex:
|
|
4830
|
+
oldIndex: Oi,
|
|
4831
4831
|
oldDraggableIndex: Oo,
|
|
4832
4832
|
newIndex: mn,
|
|
4833
|
-
newDraggableIndex:
|
|
4833
|
+
newDraggableIndex: Ra
|
|
4834
4834
|
}, n));
|
|
4835
4835
|
}
|
|
4836
|
-
var Ee, Nt, nt, Rt,
|
|
4836
|
+
var Ee, Nt, nt, Rt, ii, Jr, Ht, Pa, Oi, mn, Oo, Ra, Or, Kt, Ri = !1, gs = !1, ys = [], ei, jn, Sc, Tc, Gp, Yp, Eo, Ii, Lo, Po = !1, Lr = !1, Qr, nn, Dc = [], Gd = !1, bs = [], qs = typeof document < "u", Pr = Mf, Zp = Go || xa ? "cssFloat" : "float", L3 = qs && !Zy && !Mf && "draggable" in document.createElement("div"), a0 = function() {
|
|
4837
4837
|
if (qs) {
|
|
4838
|
-
if (
|
|
4838
|
+
if (xa)
|
|
4839
4839
|
return !1;
|
|
4840
4840
|
var n = document.createElement("x");
|
|
4841
4841
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
@@ -4893,7 +4893,7 @@ qs && !Zy && document.addEventListener("click", function(n) {
|
|
|
4893
4893
|
if (gs)
|
|
4894
4894
|
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), gs = !1, !1;
|
|
4895
4895
|
}, !0);
|
|
4896
|
-
var
|
|
4896
|
+
var ti = function(e) {
|
|
4897
4897
|
if (Ee) {
|
|
4898
4898
|
e = e.touches ? e.touches[0] : e;
|
|
4899
4899
|
var t = H3(e.clientX, e.clientY);
|
|
@@ -4910,7 +4910,7 @@ var ei = function(e) {
|
|
|
4910
4910
|
function Ke(n, e) {
|
|
4911
4911
|
if (!(n && n.nodeType && n.nodeType === 1))
|
|
4912
4912
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
4913
|
-
this.el = n, this.options = e =
|
|
4913
|
+
this.el = n, this.options = e = Ca({}, e), n[dn] = this;
|
|
4914
4914
|
var t = {
|
|
4915
4915
|
group: null,
|
|
4916
4916
|
sort: !0,
|
|
@@ -4963,13 +4963,13 @@ function Ke(n, e) {
|
|
|
4963
4963
|
o0(e);
|
|
4964
4964
|
for (var i in this)
|
|
4965
4965
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
4966
|
-
this.nativeDraggable = e.forceFallback ? !1 : L3, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? ht(n, "pointerdown", this._onTapStart) : (ht(n, "mousedown", this._onTapStart), ht(n, "touchstart", this._onTapStart)), this.nativeDraggable && (ht(n, "dragover", this), ht(n, "dragenter", this)), ys.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []),
|
|
4966
|
+
this.nativeDraggable = e.forceFallback ? !1 : L3, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? ht(n, "pointerdown", this._onTapStart) : (ht(n, "mousedown", this._onTapStart), ht(n, "touchstart", this._onTapStart)), this.nativeDraggable && (ht(n, "dragover", this), ht(n, "dragenter", this)), ys.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Ca(this, D3());
|
|
4967
4967
|
}
|
|
4968
4968
|
Ke.prototype = /** @lends Sortable.prototype */
|
|
4969
4969
|
{
|
|
4970
4970
|
constructor: Ke,
|
|
4971
4971
|
_isOutsideThisEl: function(e) {
|
|
4972
|
-
!this.el.contains(e) && e !== this.el && (
|
|
4972
|
+
!this.el.contains(e) && e !== this.el && (Ii = null);
|
|
4973
4973
|
},
|
|
4974
4974
|
_getDirection: function(e, t) {
|
|
4975
4975
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, Ee) : this.options.direction;
|
|
@@ -4978,7 +4978,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
4978
4978
|
if (e.cancelable) {
|
|
4979
4979
|
var t = this, a = this.el, i = this.options, o = i.preventOnFilter, l = e.type, f = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, p = (f || e).target, g = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || p, y = i.filter;
|
|
4980
4980
|
if (V3(a), !Ee && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || i.disabled) && !g.isContentEditable && !(!this.nativeDraggable && Ao && p && p.tagName.toUpperCase() === "SELECT") && (p = Vn(p, i.draggable, a, !1), !(p && p.animated) && Jr !== p)) {
|
|
4981
|
-
if (
|
|
4981
|
+
if (Oi = Rn(p), Oo = Rn(p, i.draggable), typeof y == "function") {
|
|
4982
4982
|
if (y.call(this, e, p, this)) {
|
|
4983
4983
|
rn({
|
|
4984
4984
|
sortable: t,
|
|
@@ -5016,11 +5016,11 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5016
5016
|
var i = this, o = i.el, l = i.options, f = o.ownerDocument, p;
|
|
5017
5017
|
if (a && !Ee && a.parentNode === o) {
|
|
5018
5018
|
var g = qt(a);
|
|
5019
|
-
if (Rt = o, Ee = a, Nt = Ee.parentNode,
|
|
5019
|
+
if (Rt = o, Ee = a, Nt = Ee.parentNode, ii = Ee.nextSibling, Jr = a, Or = l.group, Ke.dragged = Ee, ei = {
|
|
5020
5020
|
target: Ee,
|
|
5021
5021
|
clientX: (t || e).clientX,
|
|
5022
5022
|
clientY: (t || e).clientY
|
|
5023
|
-
}, Gp =
|
|
5023
|
+
}, Gp = ei.clientX - g.left, Yp = ei.clientY - g.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, Ee.style["will-change"] = "all", p = function() {
|
|
5024
5024
|
if (ln("delayEnded", i, {
|
|
5025
5025
|
evt: e
|
|
5026
5026
|
}), Ke.eventCanceled) {
|
|
@@ -5034,9 +5034,9 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5034
5034
|
}), pn(Ee, l.chosenClass, !0);
|
|
5035
5035
|
}, l.ignore.split(",").forEach(function(y) {
|
|
5036
5036
|
Qy(Ee, y.trim(), Ic);
|
|
5037
|
-
}), ht(f, "dragover",
|
|
5037
|
+
}), ht(f, "dragover", ti), ht(f, "mousemove", ti), ht(f, "touchmove", ti), l.supportPointer ? (ht(f, "pointerup", i._onDrop), !this.nativeDraggable && ht(f, "pointercancel", i._onDrop)) : (ht(f, "mouseup", i._onDrop), ht(f, "touchend", i._onDrop), ht(f, "touchcancel", i._onDrop)), Up && this.nativeDraggable && (this.options.touchStartThreshold = 4, Ee.draggable = !0), ln("delayStart", this, {
|
|
5038
5038
|
evt: e
|
|
5039
|
-
}), l.delay && (!l.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Go ||
|
|
5039
|
+
}), l.delay && (!l.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Go || xa))) {
|
|
5040
5040
|
if (Ke.eventCanceled) {
|
|
5041
5041
|
this._onDrop();
|
|
5042
5042
|
return;
|
|
@@ -5067,7 +5067,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5067
5067
|
}
|
|
5068
5068
|
},
|
|
5069
5069
|
_dragStarted: function(e, t) {
|
|
5070
|
-
if (
|
|
5070
|
+
if (Ri = !1, Rt && Ee) {
|
|
5071
5071
|
ln("dragStarted", this, {
|
|
5072
5072
|
evt: t
|
|
5073
5073
|
}), this.nativeDraggable && ht(document, "dragover", M3);
|
|
@@ -5103,9 +5103,9 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5103
5103
|
}
|
|
5104
5104
|
},
|
|
5105
5105
|
_onTouchMove: function(e) {
|
|
5106
|
-
if (
|
|
5107
|
-
var t = this.options, a = t.fallbackTolerance, i = t.fallbackOffset, o = e.touches ? e.touches[0] : e, l = nt && Hi(nt, !0), f = nt && l && l.a, p = nt && l && l.d, g = Pr && nn && qp(nn), y = (o.clientX -
|
|
5108
|
-
if (!Ke.active && !
|
|
5106
|
+
if (ei) {
|
|
5107
|
+
var t = this.options, a = t.fallbackTolerance, i = t.fallbackOffset, o = e.touches ? e.touches[0] : e, l = nt && Hi(nt, !0), f = nt && l && l.a, p = nt && l && l.d, g = Pr && nn && qp(nn), y = (o.clientX - ei.clientX + i.x) / (f || 1) + (g ? g[0] - Dc[0] : 0) / (f || 1), C = (o.clientY - ei.clientY + i.y) / (p || 1) + (g ? g[1] - Dc[1] : 0) / (p || 1);
|
|
5108
|
+
if (!Ke.active && !Ri) {
|
|
5109
5109
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5110
5110
|
return;
|
|
5111
5111
|
this._onDragStart(e, !0);
|
|
@@ -5149,7 +5149,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5149
5149
|
sortable: a,
|
|
5150
5150
|
name: "clone"
|
|
5151
5151
|
}));
|
|
5152
|
-
}), !t && pn(Ee, o.dragClass, !0), t ? (gs = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (ut(document, "mouseup", a._onDrop), ut(document, "touchend", a._onDrop), ut(document, "touchcancel", a._onDrop), i && (i.effectAllowed = "move", o.setData && o.setData.call(a, i, Ee)), ht(document, "drop", a), Qe(Ee, "transform", "translateZ(0)")),
|
|
5152
|
+
}), !t && pn(Ee, o.dragClass, !0), t ? (gs = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (ut(document, "mouseup", a._onDrop), ut(document, "touchend", a._onDrop), ut(document, "touchcancel", a._onDrop), i && (i.effectAllowed = "move", o.setData && o.setData.call(a, i, Ee)), ht(document, "drop", a), Qe(Ee, "transform", "translateZ(0)")), Ri = !0, a._dragStartId = Kr(a._dragStarted.bind(a, t, e)), ht(document, "selectstart", a), Eo = !0, window.getSelection().removeAllRanges(), Ao && Qe(document.body, "user-select", "none");
|
|
5153
5153
|
},
|
|
5154
5154
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
5155
5155
|
_onDragOver: function(e) {
|
|
@@ -5181,15 +5181,15 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5181
5181
|
insertion: Xe
|
|
5182
5182
|
}), Xe && (y ? g._hideClone() : g._showClone(F), F !== I && (pn(Ee, Kt ? Kt.options.ghostClass : g.options.ghostClass, !1), pn(Ee, f.ghostClass, !0)), Kt !== F && F !== Ke.active ? Kt = F : F === Ke.active && Kt && (Kt = null), I === F && (F._ignoreWhileAnimating = a), F.animateAll(function() {
|
|
5183
5183
|
V("dragOverAnimationComplete"), F._ignoreWhileAnimating = null;
|
|
5184
|
-
}), F !== I && (I.animateAll(), I._ignoreWhileAnimating = null)), (a === Ee && !Ee.animated || a === t && !a.animated) && (
|
|
5184
|
+
}), F !== I && (I.animateAll(), I._ignoreWhileAnimating = null)), (a === Ee && !Ee.animated || a === t && !a.animated) && (Ii = null), !f.dragoverBubble && !e.rootEl && a !== document && (Ee.parentNode[dn]._isOutsideThisEl(e.target), !Xe && ti(e)), !f.dragoverBubble && e.stopPropagation && e.stopPropagation(), W = !0;
|
|
5185
5185
|
}
|
|
5186
5186
|
function me() {
|
|
5187
|
-
mn = Rn(Ee),
|
|
5187
|
+
mn = Rn(Ee), Ra = Rn(Ee, f.draggable), rn({
|
|
5188
5188
|
sortable: F,
|
|
5189
5189
|
name: "change",
|
|
5190
5190
|
toEl: t,
|
|
5191
5191
|
newIndex: mn,
|
|
5192
|
-
newDraggableIndex:
|
|
5192
|
+
newDraggableIndex: Ra,
|
|
5193
5193
|
originalEvent: e
|
|
5194
5194
|
});
|
|
5195
5195
|
}
|
|
@@ -5199,7 +5199,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5199
5199
|
if (gs = !1, g && !f.disabled && (y ? C || (l = Nt !== Rt) : Kt === this || (this.lastPutMode = Or.checkPull(this, g, Ee, e)) && p.checkPut(this, g, Ee, e))) {
|
|
5200
5200
|
if (T = this._getDirection(e, a) === "vertical", i = qt(Ee), V("dragOverValid"), Ke.eventCanceled) return W;
|
|
5201
5201
|
if (l)
|
|
5202
|
-
return Nt = Rt, Q(), this._hideClone(), V("revert"), Ke.eventCanceled || (
|
|
5202
|
+
return Nt = Rt, Q(), this._hideClone(), V("revert"), Ke.eventCanceled || (ii ? Rt.insertBefore(Ee, ii) : Rt.appendChild(Ee)), Y(!0);
|
|
5203
5203
|
var _e = Ff(t, f.draggable);
|
|
5204
5204
|
if (!_e || B3(e, T, this) && !_e.animated) {
|
|
5205
5205
|
if (_e === Ee)
|
|
@@ -5215,7 +5215,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5215
5215
|
} else if (a.parentNode === t) {
|
|
5216
5216
|
o = qt(a);
|
|
5217
5217
|
var Te = 0, Ie, xe = Ee.parentNode !== t, ue = !P3(Ee.animated && Ee.toRect || i, a.animated && a.toRect || o, T), be = T ? "top" : "left", ke = Wp(a, "top", "top") || Wp(Ee, "top", "top"), ye = ke ? ke.scrollTop : void 0;
|
|
5218
|
-
|
|
5218
|
+
Ii !== a && (Ie = o[be], Po = !1, Lr = !ue && f.invertSwap || xe), Te = z3(e, a, o, T, ue ? 1 : f.swapThreshold, f.invertedSwapThreshold == null ? f.swapThreshold : f.invertedSwapThreshold, Lr, Ii === a);
|
|
5219
5219
|
var Re;
|
|
5220
5220
|
if (Te !== 0) {
|
|
5221
5221
|
var Ae = Rn(Ee);
|
|
@@ -5225,7 +5225,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5225
5225
|
}
|
|
5226
5226
|
if (Te === 0 || Re === a)
|
|
5227
5227
|
return Y(!1);
|
|
5228
|
-
|
|
5228
|
+
Ii = a, Lo = Te;
|
|
5229
5229
|
var $e = a.nextElementSibling, Je = !1;
|
|
5230
5230
|
Je = Te === 1;
|
|
5231
5231
|
var We = Hr(Rt, t, Ee, i, a, o, e, Je);
|
|
@@ -5239,7 +5239,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5239
5239
|
},
|
|
5240
5240
|
_ignoreWhileAnimating: null,
|
|
5241
5241
|
_offMoveEvents: function() {
|
|
5242
|
-
ut(document, "mousemove", this._onTouchMove), ut(document, "touchmove", this._onTouchMove), ut(document, "pointermove", this._onTouchMove), ut(document, "dragover",
|
|
5242
|
+
ut(document, "mousemove", this._onTouchMove), ut(document, "touchmove", this._onTouchMove), ut(document, "pointermove", this._onTouchMove), ut(document, "dragover", ti), ut(document, "mousemove", ti), ut(document, "touchmove", ti);
|
|
5243
5243
|
},
|
|
5244
5244
|
_offUpEvents: function() {
|
|
5245
5245
|
var e = this.el.ownerDocument;
|
|
@@ -5247,13 +5247,13 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5247
5247
|
},
|
|
5248
5248
|
_onDrop: function(e) {
|
|
5249
5249
|
var t = this.el, a = this.options;
|
|
5250
|
-
if (mn = Rn(Ee),
|
|
5250
|
+
if (mn = Rn(Ee), Ra = Rn(Ee, a.draggable), ln("drop", this, {
|
|
5251
5251
|
evt: e
|
|
5252
|
-
}), Nt = Ee && Ee.parentNode, mn = Rn(Ee),
|
|
5252
|
+
}), Nt = Ee && Ee.parentNode, mn = Rn(Ee), Ra = Rn(Ee, a.draggable), Ke.eventCanceled) {
|
|
5253
5253
|
this._nulling();
|
|
5254
5254
|
return;
|
|
5255
5255
|
}
|
|
5256
|
-
|
|
5256
|
+
Ri = !1, Lr = !1, Po = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yd(this.cloneId), Yd(this._dragStartId), this.nativeDraggable && (ut(document, "drop", this), ut(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ao && Qe(document.body, "user-select", ""), Qe(Ee, "transform", ""), e && (Eo && (e.cancelable && e.preventDefault(), !a.dropBubble && e.stopPropagation()), nt && nt.parentNode && nt.parentNode.removeChild(nt), (Rt === Nt || Kt && Kt.lastPutMode !== "clone") && Ht && Ht.parentNode && Ht.parentNode.removeChild(Ht), Ee && (this.nativeDraggable && ut(Ee, "dragend", this), Ic(Ee), Ee.style["will-change"] = "", Eo && !Ri && pn(Ee, Kt ? Kt.options.ghostClass : this.options.ghostClass, !1), pn(Ee, this.options.chosenClass, !1), rn({
|
|
5257
5257
|
sortable: this,
|
|
5258
5258
|
name: "unchoose",
|
|
5259
5259
|
toEl: Nt,
|
|
@@ -5282,7 +5282,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5282
5282
|
name: "sort",
|
|
5283
5283
|
toEl: Nt,
|
|
5284
5284
|
originalEvent: e
|
|
5285
|
-
})), Kt && Kt.save()) : mn !==
|
|
5285
|
+
})), Kt && Kt.save()) : mn !== Oi && mn >= 0 && (rn({
|
|
5286
5286
|
sortable: this,
|
|
5287
5287
|
name: "update",
|
|
5288
5288
|
toEl: Nt,
|
|
@@ -5292,7 +5292,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5292
5292
|
name: "sort",
|
|
5293
5293
|
toEl: Nt,
|
|
5294
5294
|
originalEvent: e
|
|
5295
|
-
})), Ke.active && ((mn == null || mn === -1) && (mn =
|
|
5295
|
+
})), Ke.active && ((mn == null || mn === -1) && (mn = Oi, Ra = Oo), rn({
|
|
5296
5296
|
sortable: this,
|
|
5297
5297
|
name: "end",
|
|
5298
5298
|
toEl: Nt,
|
|
@@ -5300,7 +5300,7 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5300
5300
|
}), this.save()))), this._nulling();
|
|
5301
5301
|
},
|
|
5302
5302
|
_nulling: function() {
|
|
5303
|
-
ln("nulling", this), Rt = Ee = Nt = nt =
|
|
5303
|
+
ln("nulling", this), Rt = Ee = Nt = nt = ii = Ht = Jr = Pa = ei = jn = Eo = mn = Ra = Oi = Oo = Ii = Lo = Kt = Or = Ke.dragged = Ke.ghost = Ke.clone = Ke.active = null, bs.forEach(function(e) {
|
|
5304
5304
|
e.checked = !0;
|
|
5305
5305
|
}), bs.length = Sc = Tc = 0;
|
|
5306
5306
|
},
|
|
@@ -5381,9 +5381,9 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5381
5381
|
}), this._onDrop(), this._disableDelayedDragEvents(), ys.splice(ys.indexOf(this.el), 1), this.el = e = null;
|
|
5382
5382
|
},
|
|
5383
5383
|
_hideClone: function() {
|
|
5384
|
-
if (!
|
|
5384
|
+
if (!Pa) {
|
|
5385
5385
|
if (ln("hideClone", this), Ke.eventCanceled) return;
|
|
5386
|
-
Qe(Ht, "display", "none"), this.options.removeCloneOnHide && Ht.parentNode && Ht.parentNode.removeChild(Ht),
|
|
5386
|
+
Qe(Ht, "display", "none"), this.options.removeCloneOnHide && Ht.parentNode && Ht.parentNode.removeChild(Ht), Pa = !0;
|
|
5387
5387
|
}
|
|
5388
5388
|
},
|
|
5389
5389
|
_showClone: function(e) {
|
|
@@ -5391,9 +5391,9 @@ Ke.prototype = /** @lends Sortable.prototype */
|
|
|
5391
5391
|
this._hideClone();
|
|
5392
5392
|
return;
|
|
5393
5393
|
}
|
|
5394
|
-
if (
|
|
5394
|
+
if (Pa) {
|
|
5395
5395
|
if (ln("showClone", this), Ke.eventCanceled) return;
|
|
5396
|
-
Ee.parentNode == Rt && !this.options.group.revertClone ? Rt.insertBefore(Ht, Ee) :
|
|
5396
|
+
Ee.parentNode == Rt && !this.options.group.revertClone ? Rt.insertBefore(Ht, Ee) : ii ? Rt.insertBefore(Ht, ii) : Rt.appendChild(Ht), this.options.group.revertClone && this.animate(Ee, Ht), Qe(Ht, "display", ""), Pa = !1;
|
|
5397
5397
|
}
|
|
5398
5398
|
}
|
|
5399
5399
|
};
|
|
@@ -5402,7 +5402,7 @@ function F3(n) {
|
|
|
5402
5402
|
}
|
|
5403
5403
|
function Hr(n, e, t, a, i, o, l, f) {
|
|
5404
5404
|
var p, g = n[dn], y = g.options.onMove, C;
|
|
5405
|
-
return window.CustomEvent && !
|
|
5405
|
+
return window.CustomEvent && !xa && !Go ? p = new CustomEvent("move", {
|
|
5406
5406
|
bubbles: !0,
|
|
5407
5407
|
cancelable: !0
|
|
5408
5408
|
}) : (p = document.createEvent("Event"), p.initEvent("move", !0, !0)), p.to = e, p.from = n, p.dragged = t, p.draggedRect = a, p.related = i || e, p.relatedRect = o || qt(e), p.willInsertAfter = f, p.originalEvent = l, n.dispatchEvent(p), y && (C = y.call(g, p, l)), C;
|
|
@@ -5456,7 +5456,7 @@ function Yd(n) {
|
|
|
5456
5456
|
return clearTimeout(n);
|
|
5457
5457
|
}
|
|
5458
5458
|
qs && ht(document, "touchmove", function(n) {
|
|
5459
|
-
(Ke.active ||
|
|
5459
|
+
(Ke.active || Ri) && n.cancelable && n.preventDefault();
|
|
5460
5460
|
});
|
|
5461
5461
|
Ke.utils = {
|
|
5462
5462
|
on: ht,
|
|
@@ -5527,22 +5527,22 @@ function W3() {
|
|
|
5527
5527
|
},
|
|
5528
5528
|
_handleAutoScroll: function(t, a) {
|
|
5529
5529
|
var i = this, o = (t.touches ? t.touches[0] : t).clientX, l = (t.touches ? t.touches[0] : t).clientY, f = document.elementFromPoint(o, l);
|
|
5530
|
-
if (vs = t, a || this.options.forceAutoScrollFallback || Go ||
|
|
5530
|
+
if (vs = t, a || this.options.forceAutoScrollFallback || Go || xa || Ao) {
|
|
5531
5531
|
Oc(t, this.options, f, a);
|
|
5532
|
-
var p =
|
|
5532
|
+
var p = Ma(f, !0);
|
|
5533
5533
|
Xd && (!So || o !== Ac || l !== Rc) && (So && Xp(), So = setInterval(function() {
|
|
5534
|
-
var g =
|
|
5534
|
+
var g = Ma(document.elementFromPoint(o, l), !0);
|
|
5535
5535
|
g !== p && (p = g, es()), Oc(t, i.options, g, a);
|
|
5536
5536
|
}, 10), Ac = o, Rc = l);
|
|
5537
5537
|
} else {
|
|
5538
|
-
if (!this.options.bubbleScroll ||
|
|
5538
|
+
if (!this.options.bubbleScroll || Ma(f, !0) === aa()) {
|
|
5539
5539
|
es();
|
|
5540
5540
|
return;
|
|
5541
5541
|
}
|
|
5542
|
-
Oc(t, this.options,
|
|
5542
|
+
Oc(t, this.options, Ma(f, !1), !1);
|
|
5543
5543
|
}
|
|
5544
5544
|
}
|
|
5545
|
-
},
|
|
5545
|
+
}, Ca(n, {
|
|
5546
5546
|
pluginName: "scroll",
|
|
5547
5547
|
initializeByDefault: !0
|
|
5548
5548
|
});
|
|
@@ -5558,7 +5558,7 @@ function Xp() {
|
|
|
5558
5558
|
var Oc = Ky(function(n, e, t, a) {
|
|
5559
5559
|
if (e.scroll) {
|
|
5560
5560
|
var i = (n.touches ? n.touches[0] : n).clientX, o = (n.touches ? n.touches[0] : n).clientY, l = e.scrollSensitivity, f = e.scrollSpeed, p = aa(), g = !1, y;
|
|
5561
|
-
Zd !== t && (Zd = t, es(), xo = e.scroll, y = e.scrollFn, xo === !0 && (xo =
|
|
5561
|
+
Zd !== t && (Zd = t, es(), xo = e.scroll, y = e.scrollFn, xo === !0 && (xo = Ma(t, !0)));
|
|
5562
5562
|
var C = 0, I = xo;
|
|
5563
5563
|
do {
|
|
5564
5564
|
var T = I, F = qt(T), W = F.top, V = F.bottom, Q = F.left, Y = F.right, me = F.width, _e = F.height, He = void 0, Te = void 0, Ie = T.scrollWidth, xe = T.scrollHeight, ue = Qe(T), be = T.scrollLeft, ke = T.scrollTop;
|
|
@@ -5574,7 +5574,7 @@ var Oc = Ky(function(n, e, t, a) {
|
|
|
5574
5574
|
}.bind({
|
|
5575
5575
|
layer: C
|
|
5576
5576
|
}), 24))), C++;
|
|
5577
|
-
} while (e.bubbleScroll && I !== p && (I =
|
|
5577
|
+
} while (e.bubbleScroll && I !== p && (I = Ma(I, !1)));
|
|
5578
5578
|
Xd = g;
|
|
5579
5579
|
}
|
|
5580
5580
|
}, 30), l0 = function(e) {
|
|
@@ -5605,7 +5605,7 @@ $f.prototype = {
|
|
|
5605
5605
|
},
|
|
5606
5606
|
drop: l0
|
|
5607
5607
|
};
|
|
5608
|
-
|
|
5608
|
+
Ca($f, {
|
|
5609
5609
|
pluginName: "revertOnSpill"
|
|
5610
5610
|
});
|
|
5611
5611
|
function Nf() {
|
|
@@ -5617,7 +5617,7 @@ Nf.prototype = {
|
|
|
5617
5617
|
},
|
|
5618
5618
|
drop: l0
|
|
5619
5619
|
};
|
|
5620
|
-
|
|
5620
|
+
Ca(Nf, {
|
|
5621
5621
|
pluginName: "removeOnSpill"
|
|
5622
5622
|
});
|
|
5623
5623
|
Ke.mount(new W3());
|
|
@@ -7358,7 +7358,7 @@ const wk = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50
|
|
|
7358
7358
|
checked: ["checkedChanged"],
|
|
7359
7359
|
themeConfig: ["themeConfigChangedHandler"]
|
|
7360
7360
|
}]);
|
|
7361
|
-
function
|
|
7361
|
+
function Va() {
|
|
7362
7362
|
if (typeof customElements > "u")
|
|
7363
7363
|
return;
|
|
7364
7364
|
["toggle-switch"].forEach((e) => {
|
|
@@ -7526,10 +7526,10 @@ function Xs() {
|
|
|
7526
7526
|
customElements.get(e) || ot();
|
|
7527
7527
|
break;
|
|
7528
7528
|
case "clock-icon":
|
|
7529
|
-
customElements.get(e) ||
|
|
7529
|
+
customElements.get(e) || Ua();
|
|
7530
7530
|
break;
|
|
7531
7531
|
case "edit-icon":
|
|
7532
|
-
customElements.get(e) ||
|
|
7532
|
+
customElements.get(e) || hi();
|
|
7533
7533
|
break;
|
|
7534
7534
|
case "info-icon":
|
|
7535
7535
|
customElements.get(e) || st();
|
|
@@ -7550,7 +7550,7 @@ function Xs() {
|
|
|
7550
7550
|
customElements.get(e) || Gn();
|
|
7551
7551
|
break;
|
|
7552
7552
|
case "toggle-switch":
|
|
7553
|
-
customElements.get(e) ||
|
|
7553
|
+
customElements.get(e) || Va();
|
|
7554
7554
|
break;
|
|
7555
7555
|
case "tooltip-component":
|
|
7556
7556
|
customElements.get(e) || lt();
|
|
@@ -7980,7 +7980,7 @@ function Js() {
|
|
|
7980
7980
|
customElements.get(e) || customElements.define(e, Qf);
|
|
7981
7981
|
break;
|
|
7982
7982
|
case "nylas-form-card":
|
|
7983
|
-
customElements.get(e) ||
|
|
7983
|
+
customElements.get(e) || wa();
|
|
7984
7984
|
break;
|
|
7985
7985
|
}
|
|
7986
7986
|
});
|
|
@@ -8602,7 +8602,7 @@ function v0() {
|
|
|
8602
8602
|
customElements.get(e) || ot();
|
|
8603
8603
|
break;
|
|
8604
8604
|
case "clock-icon":
|
|
8605
|
-
customElements.get(e) ||
|
|
8605
|
+
customElements.get(e) || Ua();
|
|
8606
8606
|
break;
|
|
8607
8607
|
case "person-icon":
|
|
8608
8608
|
customElements.get(e) || tu();
|
|
@@ -8624,7 +8624,7 @@ const t4 = nu, n4 = v0, a4 = ".sc-translate-icon-h{display:flex}", C0 = te(class
|
|
|
8624
8624
|
width: [1],
|
|
8625
8625
|
height: [1]
|
|
8626
8626
|
}]);
|
|
8627
|
-
function
|
|
8627
|
+
function pi() {
|
|
8628
8628
|
if (typeof customElements > "u")
|
|
8629
8629
|
return;
|
|
8630
8630
|
["translate-icon"].forEach((e) => {
|
|
@@ -8716,8 +8716,8 @@ const au = te(class extends ne {
|
|
|
8716
8716
|
}), this.name);
|
|
8717
8717
|
}
|
|
8718
8718
|
render() {
|
|
8719
|
-
const e = Object.keys(
|
|
8720
|
-
label:
|
|
8719
|
+
const e = Object.keys(Ba).map((i) => ({
|
|
8720
|
+
label: Ba[i],
|
|
8721
8721
|
value: i
|
|
8722
8722
|
})), a = this.selectedConfiguration?.group_booking !== void 0 ? this.selectedConfiguration?.group_booking?.disable_emails : this.selectedConfiguration?.event_booking?.disable_emails;
|
|
8723
8723
|
return r(Pe, { key: "07d3d5275ab14deec818fdb6ff6b4b2f0f5e078d" }, r("div", { key: "4dbcb650e58678f861e3e82832437b0af8363cc0", class: "nylas-disable-emails", part: "nde" }, r("div", { key: "d491e0bcefd4e37df85b94bfd46d0e0f3ea2bf37", class: "header", part: "nde__header" }, r("div", { key: "ace1707c84e6665d71ab6663e697bf80067a9ac3" }, r("h3", { key: "e40280e96aaa289876d53e0c1981d2915ff7c8e8" }, h.t("eventCommunicationsTitle")), r("p", { key: "5036ab68f60a9d499bc3b3c95a3924a4ae482f9c" }, h.t("eventCommunicationsDescription")))), r("div", { key: "9561d7c3848271d7ee091d2646e6f246ccc7ff8d", class: "content", part: "nde__content" }, r("div", { key: "bb4911d8bf5f85fa5a9932f100ecf4a091de1244", class: "toggle", part: "nde__toggle" }, r("label", { key: "6088d4450e82cdfd40674f9a6a53ca805a29e4c7" }, h.t("nylasConfirmationEmail.confirmationEmail.label"), r("span", { key: "09bf3e473a52f345d8b2df81b051ccfe4b4cc10d", class: "label-icon" }, r("tooltip-component", { key: "b149d5a6af28aea73736e578d2d3915d83f9e61a" }, r("info-icon", { key: "84cba6873caed5ec1fccbd2edfa9290f64f2627f", slot: "tooltip-icon" }), r("span", { key: "06fc53c0d26e06316187161abb56fade55726207", slot: "tooltip-content" }, " ", h.t("nylasConfirmationEmail.confirmationEmail.tooltip.desc"))))), r("toggle-switch", { key: "42af0697188bc05712a5438eb085fada2792df59", exportparts: "ts_label: nde__toggle-label, ts_input: nde_toggle-input, ts_slider: nde_toggle-slider", name: "disable-emails", checked: !a, themeConfig: this.themeConfig })), r("div", { key: "f94628394451dcf34e326c208a53ebea030e2973", class: "toggle", part: "nde__toggle" }, r("label", { key: "8a803d4c8a217bd2e60fb36e5139a4a4e250046a" }, h.t("nylasConfirmationEmail.confirmationEmail.language"), r("span", { key: "3a32a67e2a1e876a579d432f2dce2128f32fdb4b", class: "label-icon" }, r("tooltip-component", { key: "aa4cdae80a58ec09cc5f5845fa33143910ef3cbc" }, r("info-icon", { key: "c4bbbaa334eff483a6f054c0ea639d5fb47699c2", slot: "tooltip-icon" }), r("span", { key: "004af4410de6e2d48b70b1ab06c7f50f1defcb01", slot: "tooltip-content" }, " ", h.t("nylasConfirmationEmail.confirmationEmail.tooltip.language"))))), r("select-dropdown", { key: "c5e1f889cb730389dc16ab64ee7684bb40184885", name: "organizer-locale", options: e, searchPlaceholder: h.t("search"), withChevron: !1, defaultSelectedOption: e.find((i) => i.value == this.organizerLocale), themeConfig: this.themeConfig, exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, r("span", { key: "dd5bf53fc73c7fbce2bdfbb9d550425cdb1e1c3a", slot: "select-icon" }, r("translate-icon", { key: "a48c87064392b990b9c32693a9a7ac57ad84e1d7", width: "20", height: "20" })))))));
|
|
@@ -8793,13 +8793,13 @@ function tl() {
|
|
|
8793
8793
|
customElements.get(e) || _t();
|
|
8794
8794
|
break;
|
|
8795
8795
|
case "toggle-switch":
|
|
8796
|
-
customElements.get(e) ||
|
|
8796
|
+
customElements.get(e) || Va();
|
|
8797
8797
|
break;
|
|
8798
8798
|
case "tooltip-component":
|
|
8799
8799
|
customElements.get(e) || lt();
|
|
8800
8800
|
break;
|
|
8801
8801
|
case "translate-icon":
|
|
8802
|
-
customElements.get(e) ||
|
|
8802
|
+
customElements.get(e) || pi();
|
|
8803
8803
|
break;
|
|
8804
8804
|
}
|
|
8805
8805
|
});
|
|
@@ -8807,10 +8807,10 @@ function tl() {
|
|
|
8807
8807
|
const r4 = au, s4 = tl;
|
|
8808
8808
|
var gt = /* @__PURE__ */ ((n) => (n.Error = "error", n.Warning = "warning", n.Info = "info", n.Success = "success", n))(gt || {});
|
|
8809
8809
|
const Sn = (n) => n !== null && typeof n == "object" && "error" in n;
|
|
8810
|
-
var
|
|
8810
|
+
var Li;
|
|
8811
8811
|
(function(n) {
|
|
8812
8812
|
n.Error = "error", n.Warning = "warning", n.Info = "info", n.Success = "success";
|
|
8813
|
-
})(
|
|
8813
|
+
})(Li || (Li = {}));
|
|
8814
8814
|
var it;
|
|
8815
8815
|
(function(n) {
|
|
8816
8816
|
n.Component = "component", n.Api = "api", n.Auth = "auth";
|
|
@@ -8827,7 +8827,7 @@ function iu(n) {
|
|
|
8827
8827
|
case "[object DOMException]":
|
|
8828
8828
|
return !0;
|
|
8829
8829
|
default:
|
|
8830
|
-
return
|
|
8830
|
+
return si(n, Error);
|
|
8831
8831
|
}
|
|
8832
8832
|
}
|
|
8833
8833
|
function oo(n, e) {
|
|
@@ -8842,7 +8842,7 @@ function em(n) {
|
|
|
8842
8842
|
function l4(n) {
|
|
8843
8843
|
return oo(n, "DOMException");
|
|
8844
8844
|
}
|
|
8845
|
-
function
|
|
8845
|
+
function ba(n) {
|
|
8846
8846
|
return oo(n, "String");
|
|
8847
8847
|
}
|
|
8848
8848
|
function ou(n) {
|
|
@@ -8855,10 +8855,10 @@ function zi(n) {
|
|
|
8855
8855
|
return oo(n, "Object");
|
|
8856
8856
|
}
|
|
8857
8857
|
function nl(n) {
|
|
8858
|
-
return typeof Event < "u" &&
|
|
8858
|
+
return typeof Event < "u" && si(n, Event);
|
|
8859
8859
|
}
|
|
8860
8860
|
function c4(n) {
|
|
8861
|
-
return typeof Element < "u" &&
|
|
8861
|
+
return typeof Element < "u" && si(n, Element);
|
|
8862
8862
|
}
|
|
8863
8863
|
function d4(n) {
|
|
8864
8864
|
return oo(n, "RegExp");
|
|
@@ -8869,7 +8869,7 @@ function al(n) {
|
|
|
8869
8869
|
function f4(n) {
|
|
8870
8870
|
return zi(n) && "nativeEvent" in n && "preventDefault" in n && "stopPropagation" in n;
|
|
8871
8871
|
}
|
|
8872
|
-
function
|
|
8872
|
+
function si(n, e) {
|
|
8873
8873
|
try {
|
|
8874
8874
|
return n instanceof e;
|
|
8875
8875
|
} catch {
|
|
@@ -8897,13 +8897,13 @@ function tm(n, e) {
|
|
|
8897
8897
|
return t.join(e);
|
|
8898
8898
|
}
|
|
8899
8899
|
function u4(n, e, t = !1) {
|
|
8900
|
-
return
|
|
8900
|
+
return ba(n) ? d4(e) ? e.test(n) : ba(e) ? t ? n === e : n.includes(e) : !1 : !1;
|
|
8901
8901
|
}
|
|
8902
8902
|
function il(n, e = [], t = !1) {
|
|
8903
8903
|
return e.some((a) => u4(n, a, t));
|
|
8904
8904
|
}
|
|
8905
8905
|
function h4(n, e, t = 250, a, i, o, l) {
|
|
8906
|
-
if (!o.exception || !o.exception.values || !l || !
|
|
8906
|
+
if (!o.exception || !o.exception.values || !l || !si(l.originalException, Error))
|
|
8907
8907
|
return;
|
|
8908
8908
|
const f = o.exception.values.length > 0 ? o.exception.values[o.exception.values.length - 1] : void 0;
|
|
8909
8909
|
f && (o.exception.values = p4(
|
|
@@ -8924,7 +8924,7 @@ function Jd(n, e, t, a, i, o, l, f) {
|
|
|
8924
8924
|
if (o.length >= t + 1)
|
|
8925
8925
|
return o;
|
|
8926
8926
|
let p = [...o];
|
|
8927
|
-
if (
|
|
8927
|
+
if (si(a[i], Error)) {
|
|
8928
8928
|
nm(l, f);
|
|
8929
8929
|
const g = n(e, a[i]), y = p.length;
|
|
8930
8930
|
am(g, i, y, f), p = Jd(
|
|
@@ -8939,7 +8939,7 @@ function Jd(n, e, t, a, i, o, l, f) {
|
|
|
8939
8939
|
);
|
|
8940
8940
|
}
|
|
8941
8941
|
return Array.isArray(a.errors) && a.errors.forEach((g, y) => {
|
|
8942
|
-
if (
|
|
8942
|
+
if (si(g, Error)) {
|
|
8943
8943
|
nm(l, f);
|
|
8944
8944
|
const C = n(e, g), I = p.length;
|
|
8945
8945
|
am(C, `errors[${y}]`, I, f), p = Jd(
|
|
@@ -8974,9 +8974,9 @@ function am(n, e, t, a) {
|
|
|
8974
8974
|
function p4(n, e) {
|
|
8975
8975
|
return n.map((t) => (t.value && (t.value = Mi(t.value, e)), t));
|
|
8976
8976
|
}
|
|
8977
|
-
const
|
|
8977
|
+
const $a = "8.28.0", pt = globalThis;
|
|
8978
8978
|
function su(n, e, t) {
|
|
8979
|
-
const a = pt, i = a.__SENTRY__ = a.__SENTRY__ || {}, o = i[
|
|
8979
|
+
const a = pt, i = a.__SENTRY__ = a.__SENTRY__ || {}, o = i[$a] = i[$a] || {};
|
|
8980
8980
|
return o[n] || (o[n] = e());
|
|
8981
8981
|
}
|
|
8982
8982
|
const lu = pt, m4 = 80;
|
|
@@ -9016,7 +9016,7 @@ function g4(n, e) {
|
|
|
9016
9016
|
else {
|
|
9017
9017
|
t.id && a.push(`#${t.id}`);
|
|
9018
9018
|
const l = t.className;
|
|
9019
|
-
if (l &&
|
|
9019
|
+
if (l && ba(l)) {
|
|
9020
9020
|
const f = l.split(/\s+/);
|
|
9021
9021
|
for (const p of f)
|
|
9022
9022
|
a.push(`.${p}`);
|
|
@@ -9160,7 +9160,7 @@ function vn(n, e, t) {
|
|
|
9160
9160
|
const a = n[e], i = t(a);
|
|
9161
9161
|
typeof i == "function" && T0(i, a), n[e] = i;
|
|
9162
9162
|
}
|
|
9163
|
-
function
|
|
9163
|
+
function li(n, e, t) {
|
|
9164
9164
|
try {
|
|
9165
9165
|
Object.defineProperty(n, e, {
|
|
9166
9166
|
// enumerable: false, // the default, so we can save on bundle size by not explicitly setting it
|
|
@@ -9175,7 +9175,7 @@ function si(n, e, t) {
|
|
|
9175
9175
|
function T0(n, e) {
|
|
9176
9176
|
try {
|
|
9177
9177
|
const t = e.prototype || {};
|
|
9178
|
-
n.prototype = e.prototype = t,
|
|
9178
|
+
n.prototype = e.prototype = t, li(n, "__sentry_original__", e);
|
|
9179
9179
|
} catch {
|
|
9180
9180
|
}
|
|
9181
9181
|
}
|
|
@@ -9200,7 +9200,7 @@ function D0(n) {
|
|
|
9200
9200
|
currentTarget: im(n.currentTarget),
|
|
9201
9201
|
...om(n)
|
|
9202
9202
|
};
|
|
9203
|
-
return typeof CustomEvent < "u" &&
|
|
9203
|
+
return typeof CustomEvent < "u" && si(n, CustomEvent) && (e.detail = n.detail), e;
|
|
9204
9204
|
} else
|
|
9205
9205
|
return n;
|
|
9206
9206
|
}
|
|
@@ -9270,7 +9270,7 @@ function T4(n) {
|
|
|
9270
9270
|
return !0;
|
|
9271
9271
|
}
|
|
9272
9272
|
}
|
|
9273
|
-
const I0 = 50,
|
|
9273
|
+
const I0 = 50, ci = "?", rm = /\(error: (.*)\)/, sm = /captureMessage|captureException/;
|
|
9274
9274
|
function A0(...n) {
|
|
9275
9275
|
const e = n.sort((t, a) => t[0] - a[0]).map((t) => t[1]);
|
|
9276
9276
|
return (t, a = 0, i = 0) => {
|
|
@@ -9306,14 +9306,14 @@ function I4(n) {
|
|
|
9306
9306
|
return /sentryWrapped/.test(Fr(e).function || "") && e.pop(), e.reverse(), sm.test(Fr(e).function || "") && (e.pop(), sm.test(Fr(e).function || "") && e.pop()), e.slice(0, I0).map((t) => ({
|
|
9307
9307
|
...t,
|
|
9308
9308
|
filename: t.filename || Fr(e).filename,
|
|
9309
|
-
function: t.function ||
|
|
9309
|
+
function: t.function || ci
|
|
9310
9310
|
}));
|
|
9311
9311
|
}
|
|
9312
9312
|
function Fr(n) {
|
|
9313
9313
|
return n[n.length - 1] || {};
|
|
9314
9314
|
}
|
|
9315
9315
|
const Jc = "<anonymous>";
|
|
9316
|
-
function
|
|
9316
|
+
function za(n) {
|
|
9317
9317
|
try {
|
|
9318
9318
|
return !n || typeof n != "function" ? Jc : n.name || Jc;
|
|
9319
9319
|
} catch {
|
|
@@ -9334,10 +9334,10 @@ function lm(n) {
|
|
|
9334
9334
|
}
|
|
9335
9335
|
}
|
|
9336
9336
|
const ts = {}, cm = {};
|
|
9337
|
-
function
|
|
9337
|
+
function mi(n, e) {
|
|
9338
9338
|
ts[n] = ts[n] || [], ts[n].push(e);
|
|
9339
9339
|
}
|
|
9340
|
-
function
|
|
9340
|
+
function gi(n, e) {
|
|
9341
9341
|
cm[n] || (e(), cm[n] = !0);
|
|
9342
9342
|
}
|
|
9343
9343
|
function Wn(n, e) {
|
|
@@ -9350,7 +9350,7 @@ function Wn(n, e) {
|
|
|
9350
9350
|
Zo && et.error(
|
|
9351
9351
|
`Error while triggering instrumentation handler.
|
|
9352
9352
|
Type: ${n}
|
|
9353
|
-
Name: ${
|
|
9353
|
+
Name: ${za(a)}
|
|
9354
9354
|
Error:`,
|
|
9355
9355
|
i
|
|
9356
9356
|
);
|
|
@@ -9358,7 +9358,7 @@ Error:`,
|
|
|
9358
9358
|
}
|
|
9359
9359
|
function A4(n) {
|
|
9360
9360
|
const e = "console";
|
|
9361
|
-
|
|
9361
|
+
mi(e, n), gi(e, R4);
|
|
9362
9362
|
}
|
|
9363
9363
|
function R4() {
|
|
9364
9364
|
"console" in pt && Qd.forEach(function(n) {
|
|
@@ -9413,7 +9413,7 @@ function L4() {
|
|
|
9413
9413
|
const e = Date.now() - n.now(), t = n.timeOrigin == null ? e : n.timeOrigin;
|
|
9414
9414
|
return () => (t + n.now()) / O0;
|
|
9415
9415
|
}
|
|
9416
|
-
const
|
|
9416
|
+
const va = L4();
|
|
9417
9417
|
(() => {
|
|
9418
9418
|
const { performance: n } = pt;
|
|
9419
9419
|
if (!n || !n.now)
|
|
@@ -9423,7 +9423,7 @@ const ba = L4();
|
|
|
9423
9423
|
})();
|
|
9424
9424
|
function P4(n, e) {
|
|
9425
9425
|
const t = "fetch";
|
|
9426
|
-
|
|
9426
|
+
mi(t, n), gi(t, () => H4(void 0, e));
|
|
9427
9427
|
}
|
|
9428
9428
|
function H4(n, e = !1) {
|
|
9429
9429
|
e && !O4() || vn(pt, "fetch", function(t) {
|
|
@@ -9434,7 +9434,7 @@ function H4(n, e = !1) {
|
|
|
9434
9434
|
method: i,
|
|
9435
9435
|
url: o
|
|
9436
9436
|
},
|
|
9437
|
-
startTimestamp:
|
|
9437
|
+
startTimestamp: va() * 1e3
|
|
9438
9438
|
};
|
|
9439
9439
|
Wn("fetch", {
|
|
9440
9440
|
...l
|
|
@@ -9443,15 +9443,15 @@ function H4(n, e = !1) {
|
|
|
9443
9443
|
return t.apply(pt, a).then(
|
|
9444
9444
|
async (p) => (Wn("fetch", {
|
|
9445
9445
|
...l,
|
|
9446
|
-
endTimestamp:
|
|
9446
|
+
endTimestamp: va() * 1e3,
|
|
9447
9447
|
response: p
|
|
9448
9448
|
}), p),
|
|
9449
9449
|
(p) => {
|
|
9450
9450
|
throw Wn("fetch", {
|
|
9451
9451
|
...l,
|
|
9452
|
-
endTimestamp:
|
|
9452
|
+
endTimestamp: va() * 1e3,
|
|
9453
9453
|
error: p
|
|
9454
|
-
}), iu(p) && p.stack === void 0 && (p.stack = f,
|
|
9454
|
+
}), iu(p) && p.stack === void 0 && (p.stack = f, li(p, "framesToPop", 1)), p;
|
|
9455
9455
|
}
|
|
9456
9456
|
);
|
|
9457
9457
|
};
|
|
@@ -9482,7 +9482,7 @@ function M4(n) {
|
|
|
9482
9482
|
let $r = null;
|
|
9483
9483
|
function F4(n) {
|
|
9484
9484
|
const e = "error";
|
|
9485
|
-
|
|
9485
|
+
mi(e, n), gi(e, $4);
|
|
9486
9486
|
}
|
|
9487
9487
|
function $4() {
|
|
9488
9488
|
$r = pt.onerror, pt.onerror = function(n, e, t, a, i) {
|
|
@@ -9498,7 +9498,7 @@ function $4() {
|
|
|
9498
9498
|
let Nr = null;
|
|
9499
9499
|
function N4(n) {
|
|
9500
9500
|
const e = "unhandledrejection";
|
|
9501
|
-
|
|
9501
|
+
mi(e, n), gi(e, B4);
|
|
9502
9502
|
}
|
|
9503
9503
|
function B4() {
|
|
9504
9504
|
Nr = pt.onunhandledrejection, pt.onunhandledrejection = function(n) {
|
|
@@ -9568,7 +9568,7 @@ function Pn() {
|
|
|
9568
9568
|
function L0(n) {
|
|
9569
9569
|
return n.exception && n.exception.values ? n.exception.values[0] : void 0;
|
|
9570
9570
|
}
|
|
9571
|
-
function
|
|
9571
|
+
function Oa(n) {
|
|
9572
9572
|
const { message: e, event_id: t } = n;
|
|
9573
9573
|
if (e)
|
|
9574
9574
|
return e;
|
|
@@ -9593,7 +9593,7 @@ function fm(n) {
|
|
|
9593
9593
|
if (n && n.__sentry_captured__)
|
|
9594
9594
|
return !0;
|
|
9595
9595
|
try {
|
|
9596
|
-
|
|
9596
|
+
li(n, "__sentry_captured__", !0);
|
|
9597
9597
|
} catch {
|
|
9598
9598
|
}
|
|
9599
9599
|
return !1;
|
|
@@ -9601,7 +9601,7 @@ function fm(n) {
|
|
|
9601
9601
|
function P0(n) {
|
|
9602
9602
|
return Array.isArray(n) ? n : [n];
|
|
9603
9603
|
}
|
|
9604
|
-
function
|
|
9604
|
+
function La(n, e = 100, t = 1 / 0) {
|
|
9605
9605
|
try {
|
|
9606
9606
|
return of("", n, e, t);
|
|
9607
9607
|
} catch (a) {
|
|
@@ -9609,7 +9609,7 @@ function Oa(n, e = 100, t = 1 / 0) {
|
|
|
9609
9609
|
}
|
|
9610
9610
|
}
|
|
9611
9611
|
function H0(n, e = 3, t = 100 * 1024) {
|
|
9612
|
-
const a =
|
|
9612
|
+
const a = La(n, e);
|
|
9613
9613
|
return X4(a) > t ? H0(n, e - 1, t) : a;
|
|
9614
9614
|
}
|
|
9615
9615
|
function of(n, e, t = 1 / 0, a = 1 / 0, i = q4()) {
|
|
@@ -9668,7 +9668,7 @@ function G4(n, e) {
|
|
|
9668
9668
|
if (typeof e == "number" && e !== e)
|
|
9669
9669
|
return "[NaN]";
|
|
9670
9670
|
if (typeof e == "function")
|
|
9671
|
-
return `[Function: ${
|
|
9671
|
+
return `[Function: ${za(e)}]`;
|
|
9672
9672
|
if (typeof e == "symbol")
|
|
9673
9673
|
return `[${String(e)}]`;
|
|
9674
9674
|
if (typeof e == "bigint")
|
|
@@ -9697,7 +9697,7 @@ var ha;
|
|
|
9697
9697
|
const a = 2;
|
|
9698
9698
|
n[n.REJECTED = a] = "REJECTED";
|
|
9699
9699
|
})(ha || (ha = {}));
|
|
9700
|
-
function
|
|
9700
|
+
function di(n) {
|
|
9701
9701
|
return new On((e) => {
|
|
9702
9702
|
e(n);
|
|
9703
9703
|
});
|
|
@@ -9831,7 +9831,7 @@ function J4(n) {
|
|
|
9831
9831
|
l && l > 0 && f(!1);
|
|
9832
9832
|
}, l);
|
|
9833
9833
|
e.forEach((C) => {
|
|
9834
|
-
|
|
9834
|
+
di(C).then(() => {
|
|
9835
9835
|
--g || (clearTimeout(y), f(!0));
|
|
9836
9836
|
}, p);
|
|
9837
9837
|
});
|
|
@@ -9880,7 +9880,7 @@ function n7(n) {
|
|
|
9880
9880
|
return t;
|
|
9881
9881
|
}
|
|
9882
9882
|
function a7(n) {
|
|
9883
|
-
if (!(!n || !
|
|
9883
|
+
if (!(!n || !ba(n) && !Array.isArray(n)))
|
|
9884
9884
|
return Array.isArray(n) ? n.reduce((e, t) => {
|
|
9885
9885
|
const a = um(t);
|
|
9886
9886
|
return Object.entries(a).forEach(([i, o]) => {
|
|
@@ -9927,7 +9927,7 @@ ${JSON.stringify(l)}
|
|
|
9927
9927
|
try {
|
|
9928
9928
|
p = JSON.stringify(f);
|
|
9929
9929
|
} catch {
|
|
9930
|
-
p = JSON.stringify(
|
|
9930
|
+
p = JSON.stringify(La(f));
|
|
9931
9931
|
}
|
|
9932
9932
|
i(p);
|
|
9933
9933
|
}
|
|
@@ -10049,10 +10049,10 @@ function rl() {
|
|
|
10049
10049
|
}
|
|
10050
10050
|
function du(n) {
|
|
10051
10051
|
const e = n.__SENTRY__ = n.__SENTRY__ || {};
|
|
10052
|
-
return e.version = e.version ||
|
|
10052
|
+
return e.version = e.version || $a, e[$a] = e[$a] || {};
|
|
10053
10053
|
}
|
|
10054
10054
|
function y7(n) {
|
|
10055
|
-
const e =
|
|
10055
|
+
const e = va(), t = {
|
|
10056
10056
|
sid: Pn(),
|
|
10057
10057
|
init: !0,
|
|
10058
10058
|
timestamp: e,
|
|
@@ -10066,7 +10066,7 @@ function y7(n) {
|
|
|
10066
10066
|
return n && ji(t, n), t;
|
|
10067
10067
|
}
|
|
10068
10068
|
function ji(n, e = {}) {
|
|
10069
|
-
if (e.user && (!n.ipAddress && e.user.ip_address && (n.ipAddress = e.user.ip_address), !n.did && !e.did && (n.did = e.user.id || e.user.email || e.user.username)), n.timestamp = e.timestamp ||
|
|
10069
|
+
if (e.user && (!n.ipAddress && e.user.ip_address && (n.ipAddress = e.user.ip_address), !n.did && !e.did && (n.did = e.user.id || e.user.email || e.user.username)), n.timestamp = e.timestamp || va(), e.abnormal_mechanism && (n.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (n.ignoreDuration = e.ignoreDuration), e.sid && (n.sid = e.sid.length === 32 ? e.sid : Pn()), e.init !== void 0 && (n.init = e.init), !n.did && e.did && (n.did = `${e.did}`), typeof e.started == "number" && (n.started = e.started), n.ignoreDuration)
|
|
10070
10070
|
n.duration = void 0;
|
|
10071
10071
|
else if (typeof e.duration == "number")
|
|
10072
10072
|
n.duration = e.duration;
|
|
@@ -10102,7 +10102,7 @@ function v7(n) {
|
|
|
10102
10102
|
}
|
|
10103
10103
|
const sf = "_sentrySpan";
|
|
10104
10104
|
function gm(n, e) {
|
|
10105
|
-
e ?
|
|
10105
|
+
e ? li(n, sf, e) : delete n[sf];
|
|
10106
10106
|
}
|
|
10107
10107
|
function ym(n) {
|
|
10108
10108
|
return n[sf];
|
|
@@ -10283,7 +10283,7 @@ class fu {
|
|
|
10283
10283
|
update(e) {
|
|
10284
10284
|
if (!e)
|
|
10285
10285
|
return this;
|
|
10286
|
-
const t = typeof e == "function" ? e(this) : e, [a, i] = t instanceof
|
|
10286
|
+
const t = typeof e == "function" ? e(this) : e, [a, i] = t instanceof fi ? [t.getScopeData(), t.getRequestSession()] : zi(t) ? [e, e.requestSession] : [], { tags: o, extra: l, user: f, contexts: p, level: g, fingerprint: y = [], propagationContext: C } = a || {};
|
|
10287
10287
|
return this._tags = { ...this._tags, ...o }, this._extra = { ...this._extra, ...l }, this._contexts = { ...this._contexts, ...p }, f && Object.keys(f).length && (this._user = f), g && (this._level = g), y.length && (this._fingerprint = y), C && (this._propagationContext = C), i && (this._requestSession = i), this;
|
|
10288
10288
|
}
|
|
10289
10289
|
/**
|
|
@@ -10420,19 +10420,19 @@ class fu {
|
|
|
10420
10420
|
}), this._notifyingListeners = !1);
|
|
10421
10421
|
}
|
|
10422
10422
|
}
|
|
10423
|
-
const
|
|
10423
|
+
const fi = fu;
|
|
10424
10424
|
function _7() {
|
|
10425
|
-
return su("defaultCurrentScope", () => new
|
|
10425
|
+
return su("defaultCurrentScope", () => new fi());
|
|
10426
10426
|
}
|
|
10427
10427
|
function k7() {
|
|
10428
|
-
return su("defaultIsolationScope", () => new
|
|
10428
|
+
return su("defaultIsolationScope", () => new fi());
|
|
10429
10429
|
}
|
|
10430
10430
|
class w7 {
|
|
10431
10431
|
constructor(e, t) {
|
|
10432
10432
|
let a;
|
|
10433
|
-
e ? a = e : a = new
|
|
10433
|
+
e ? a = e : a = new fi();
|
|
10434
10434
|
let i;
|
|
10435
|
-
t ? i = t : i = new
|
|
10435
|
+
t ? i = t : i = new fi(), this._stack = [{ scope: a }], this._isolationScope = i;
|
|
10436
10436
|
}
|
|
10437
10437
|
/**
|
|
10438
10438
|
* Fork a scope for the stack.
|
|
@@ -10530,7 +10530,7 @@ function ro() {
|
|
|
10530
10530
|
return uu(n).getIsolationScope();
|
|
10531
10531
|
}
|
|
10532
10532
|
function F0() {
|
|
10533
|
-
return su("globalScope", () => new
|
|
10533
|
+
return su("globalScope", () => new fi());
|
|
10534
10534
|
}
|
|
10535
10535
|
function T7(...n) {
|
|
10536
10536
|
const e = rl(), t = uu(e);
|
|
@@ -10559,7 +10559,7 @@ function F7(n) {
|
|
|
10559
10559
|
return Cn({ parent_span_id: a, span_id: e, trace_id: t });
|
|
10560
10560
|
}
|
|
10561
10561
|
function vm(n) {
|
|
10562
|
-
return typeof n == "number" ? Cm(n) : Array.isArray(n) ? n[0] + n[1] / 1e9 : n instanceof Date ? Cm(n.getTime()) :
|
|
10562
|
+
return typeof n == "number" ? Cm(n) : Array.isArray(n) ? n[0] + n[1] / 1e9 : n instanceof Date ? Cm(n.getTime()) : va();
|
|
10563
10563
|
}
|
|
10564
10564
|
function Cm(n) {
|
|
10565
10565
|
return n > 9999999999 ? n / 1e3 : n;
|
|
@@ -10845,31 +10845,31 @@ function r9(n, e, t) {
|
|
|
10845
10845
|
breadcrumbs: n.breadcrumbs.map((i) => ({
|
|
10846
10846
|
...i,
|
|
10847
10847
|
...i.data && {
|
|
10848
|
-
data:
|
|
10848
|
+
data: La(i.data, e, t)
|
|
10849
10849
|
}
|
|
10850
10850
|
}))
|
|
10851
10851
|
},
|
|
10852
10852
|
...n.user && {
|
|
10853
|
-
user:
|
|
10853
|
+
user: La(n.user, e, t)
|
|
10854
10854
|
},
|
|
10855
10855
|
...n.contexts && {
|
|
10856
|
-
contexts:
|
|
10856
|
+
contexts: La(n.contexts, e, t)
|
|
10857
10857
|
},
|
|
10858
10858
|
...n.extra && {
|
|
10859
|
-
extra:
|
|
10859
|
+
extra: La(n.extra, e, t)
|
|
10860
10860
|
}
|
|
10861
10861
|
};
|
|
10862
|
-
return n.contexts && n.contexts.trace && a.contexts && (a.contexts.trace = n.contexts.trace, n.contexts.trace.data && (a.contexts.trace.data =
|
|
10862
|
+
return n.contexts && n.contexts.trace && a.contexts && (a.contexts.trace = n.contexts.trace, n.contexts.trace.data && (a.contexts.trace.data = La(n.contexts.trace.data, e, t))), n.spans && (a.spans = n.spans.map((i) => ({
|
|
10863
10863
|
...i,
|
|
10864
10864
|
...i.data && {
|
|
10865
|
-
data:
|
|
10865
|
+
data: La(i.data, e, t)
|
|
10866
10866
|
}
|
|
10867
10867
|
}))), a;
|
|
10868
10868
|
}
|
|
10869
10869
|
function s9(n, e) {
|
|
10870
10870
|
if (!e)
|
|
10871
10871
|
return n;
|
|
10872
|
-
const t = n ? n.clone() : new
|
|
10872
|
+
const t = n ? n.clone() : new fi();
|
|
10873
10873
|
return t.update(e), t;
|
|
10874
10874
|
}
|
|
10875
10875
|
function l9(n, e) {
|
|
@@ -11085,7 +11085,7 @@ class y9 {
|
|
|
11085
11085
|
*/
|
|
11086
11086
|
flush(e) {
|
|
11087
11087
|
const t = this._transport;
|
|
11088
|
-
return t ? (this.emit("flush"), this._isClientDoneProcessing(e).then((a) => t.flush(e).then((i) => a && i))) :
|
|
11088
|
+
return t ? (this.emit("flush"), this._isClientDoneProcessing(e).then((a) => t.flush(e).then((i) => a && i))) : di(!0);
|
|
11089
11089
|
}
|
|
11090
11090
|
/**
|
|
11091
11091
|
* @inheritDoc
|
|
@@ -11173,7 +11173,7 @@ class y9 {
|
|
|
11173
11173
|
* @inheritdoc
|
|
11174
11174
|
*/
|
|
11175
11175
|
sendEnvelope(e) {
|
|
11176
|
-
return this.emit("beforeEnvelope", e), this._isEnabled() && this._transport ? this._transport.send(e).then(null, (t) => (St && et.error("Error while sending event:", t), t)) : (St && et.error("Transport disabled"),
|
|
11176
|
+
return this.emit("beforeEnvelope", e), this._isEnabled() && this._transport ? this._transport.send(e).then(null, (t) => (St && et.error("Error while sending event:", t), t)) : (St && et.error("Transport disabled"), di({}));
|
|
11177
11177
|
}
|
|
11178
11178
|
/* eslint-enable @typescript-eslint/unified-signatures */
|
|
11179
11179
|
/** Setup integrations for this client. */
|
|
@@ -11467,7 +11467,7 @@ function w9(n, e, t = J4(
|
|
|
11467
11467
|
} else
|
|
11468
11468
|
f.push(C);
|
|
11469
11469
|
}), f.length === 0)
|
|
11470
|
-
return
|
|
11470
|
+
return di({});
|
|
11471
11471
|
const p = Qo(l[0], f), g = (C) => {
|
|
11472
11472
|
hm(p, (I, T) => {
|
|
11473
11473
|
const F = Dm(I, T);
|
|
@@ -11483,7 +11483,7 @@ function w9(n, e, t = J4(
|
|
|
11483
11483
|
(C) => C,
|
|
11484
11484
|
(C) => {
|
|
11485
11485
|
if (C instanceof ta)
|
|
11486
|
-
return St && et.error("Skipped sending event because buffer is full."), g("queue_overflow"),
|
|
11486
|
+
return St && et.error("Skipped sending event because buffer is full."), g("queue_overflow"), di({});
|
|
11487
11487
|
throw C;
|
|
11488
11488
|
}
|
|
11489
11489
|
);
|
|
@@ -11503,13 +11503,13 @@ function E9(n, e, t = [e], a = "npm") {
|
|
|
11503
11503
|
name: `sentry.javascript.${e}`,
|
|
11504
11504
|
packages: t.map((o) => ({
|
|
11505
11505
|
name: `${a}:@sentry/${o}`,
|
|
11506
|
-
version:
|
|
11506
|
+
version: $a
|
|
11507
11507
|
})),
|
|
11508
|
-
version:
|
|
11508
|
+
version: $a
|
|
11509
11509
|
}), n._metadata = i;
|
|
11510
11510
|
}
|
|
11511
11511
|
const x9 = 100;
|
|
11512
|
-
function
|
|
11512
|
+
function ui(n, e) {
|
|
11513
11513
|
const t = Yt(), a = ro();
|
|
11514
11514
|
if (!t) return;
|
|
11515
11515
|
const { beforeBreadcrumb: i = null, maxBreadcrumbs: o = x9 } = t.getOptions();
|
|
@@ -11570,26 +11570,26 @@ function L9(n = {}, e = {}) {
|
|
|
11570
11570
|
}
|
|
11571
11571
|
function P9(n, e) {
|
|
11572
11572
|
return e.ignoreInternal && B9(n) ? (St && et.warn(`Event dropped due to being internal Sentry Error.
|
|
11573
|
-
Event: ${
|
|
11573
|
+
Event: ${Oa(n)}`), !0) : H9(n, e.ignoreErrors) ? (St && et.warn(
|
|
11574
11574
|
`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
11575
|
-
Event: ${
|
|
11575
|
+
Event: ${Oa(n)}`
|
|
11576
11576
|
), !0) : j9(n) ? (St && et.warn(
|
|
11577
11577
|
`Event dropped due to not having an error message, error type or stacktrace.
|
|
11578
|
-
Event: ${
|
|
11578
|
+
Event: ${Oa(
|
|
11579
11579
|
n
|
|
11580
11580
|
)}`
|
|
11581
11581
|
), !0) : M9(n, e.ignoreTransactions) ? (St && et.warn(
|
|
11582
11582
|
`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
11583
|
-
Event: ${
|
|
11583
|
+
Event: ${Oa(n)}`
|
|
11584
11584
|
), !0) : F9(n, e.denyUrls) ? (St && et.warn(
|
|
11585
11585
|
`Event dropped due to being matched by \`denyUrls\` option.
|
|
11586
|
-
Event: ${
|
|
11586
|
+
Event: ${Oa(
|
|
11587
11587
|
n
|
|
11588
11588
|
)}.
|
|
11589
11589
|
Url: ${Es(n)}`
|
|
11590
11590
|
), !0) : $9(n, e.allowUrls) ? !1 : (St && et.warn(
|
|
11591
11591
|
`Event dropped due to not being matched by \`allowUrls\` option.
|
|
11592
|
-
Event: ${
|
|
11592
|
+
Event: ${Oa(
|
|
11593
11593
|
n
|
|
11594
11594
|
)}.
|
|
11595
11595
|
Url: ${Es(n)}`
|
|
@@ -11650,7 +11650,7 @@ function Es(n) {
|
|
|
11650
11650
|
}
|
|
11651
11651
|
return e ? z9(e) : null;
|
|
11652
11652
|
} catch {
|
|
11653
|
-
return St && et.error(`Cannot extract url for event ${
|
|
11653
|
+
return St && et.error(`Cannot extract url for event ${Oa(n)}`), null;
|
|
11654
11654
|
}
|
|
11655
11655
|
}
|
|
11656
11656
|
function j9(n) {
|
|
@@ -11775,7 +11775,7 @@ function Vi(n, e = {}, t) {
|
|
|
11775
11775
|
Object.prototype.hasOwnProperty.call(n, i) && (a[i] = n[i]);
|
|
11776
11776
|
} catch {
|
|
11777
11777
|
}
|
|
11778
|
-
T0(a, n),
|
|
11778
|
+
T0(a, n), li(n, "__sentry_wrapped__", a);
|
|
11779
11779
|
try {
|
|
11780
11780
|
Object.getOwnPropertyDescriptor(a, "name").configurable && Object.defineProperty(a, "name", {
|
|
11781
11781
|
get() {
|
|
@@ -11850,11 +11850,11 @@ function ew(n) {
|
|
|
11850
11850
|
}
|
|
11851
11851
|
function tw(n, e, t, a) {
|
|
11852
11852
|
const i = t && t.syntheticException || void 0, o = bu(n, e, i, a);
|
|
11853
|
-
return Fo(o), o.level = "error", t && t.event_id && (o.event_id = t.event_id),
|
|
11853
|
+
return Fo(o), o.level = "error", t && t.event_id && (o.event_id = t.event_id), di(o);
|
|
11854
11854
|
}
|
|
11855
11855
|
function nw(n, e, t = "info", a, i) {
|
|
11856
11856
|
const o = a && a.syntheticException || void 0, l = df(n, e, o, i);
|
|
11857
|
-
return l.level = t, a && a.event_id && (l.event_id = a.event_id),
|
|
11857
|
+
return l.level = t, a && a.event_id && (l.event_id = a.event_id), di(l);
|
|
11858
11858
|
}
|
|
11859
11859
|
function bu(n, e, t, a, i) {
|
|
11860
11860
|
let o;
|
|
@@ -11991,7 +11991,7 @@ const cw = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, an = pt, dw = 1e3;
|
|
|
11991
11991
|
let Om, ff, uf;
|
|
11992
11992
|
function fw(n) {
|
|
11993
11993
|
const e = "dom";
|
|
11994
|
-
|
|
11994
|
+
mi(e, n), gi(e, uw);
|
|
11995
11995
|
}
|
|
11996
11996
|
function uw() {
|
|
11997
11997
|
if (!an.document)
|
|
@@ -12050,7 +12050,7 @@ function Lm(n, e = !1) {
|
|
|
12050
12050
|
const a = mw(t);
|
|
12051
12051
|
if (pw(t.type, a))
|
|
12052
12052
|
return;
|
|
12053
|
-
|
|
12053
|
+
li(t, "_sentryCaptured", !0), a && !a._sentryId && li(a, "_sentryId", Pn());
|
|
12054
12054
|
const i = t.type === "keypress" ? "input" : t.type;
|
|
12055
12055
|
hw(t) || (n({ event: t, name: i, global: e }), ff = t.type, uf = a ? a._sentryId : void 0), clearTimeout(Om), Om = an.setTimeout(() => {
|
|
12056
12056
|
uf = void 0, ff = void 0;
|
|
@@ -12067,7 +12067,7 @@ function mw(n) {
|
|
|
12067
12067
|
let zr;
|
|
12068
12068
|
function Z0(n) {
|
|
12069
12069
|
const e = "history";
|
|
12070
|
-
|
|
12070
|
+
mi(e, n), gi(e, gw);
|
|
12071
12071
|
}
|
|
12072
12072
|
function gw() {
|
|
12073
12073
|
if (!g7())
|
|
@@ -12119,7 +12119,7 @@ function Pm(n) {
|
|
|
12119
12119
|
const To = "__sentry_xhr_v3__";
|
|
12120
12120
|
function bw(n) {
|
|
12121
12121
|
const e = "xhr";
|
|
12122
|
-
|
|
12122
|
+
mi(e, n), gi(e, vw);
|
|
12123
12123
|
}
|
|
12124
12124
|
function vw() {
|
|
12125
12125
|
if (!an.XMLHttpRequest)
|
|
@@ -12127,7 +12127,7 @@ function vw() {
|
|
|
12127
12127
|
const n = XMLHttpRequest.prototype;
|
|
12128
12128
|
n.open = new Proxy(n.open, {
|
|
12129
12129
|
apply(e, t, a) {
|
|
12130
|
-
const i =
|
|
12130
|
+
const i = va() * 1e3, o = ba(a[0]) ? a[0].toUpperCase() : void 0, l = Cw(a[1]);
|
|
12131
12131
|
if (!o || !l)
|
|
12132
12132
|
return e.apply(t, a);
|
|
12133
12133
|
t[To] = {
|
|
@@ -12143,7 +12143,7 @@ function vw() {
|
|
|
12143
12143
|
} catch {
|
|
12144
12144
|
}
|
|
12145
12145
|
const g = {
|
|
12146
|
-
endTimestamp:
|
|
12146
|
+
endTimestamp: va() * 1e3,
|
|
12147
12147
|
startTimestamp: i,
|
|
12148
12148
|
xhr: t
|
|
12149
12149
|
};
|
|
@@ -12157,7 +12157,7 @@ function vw() {
|
|
|
12157
12157
|
}) : t.addEventListener("readystatechange", f), t.setRequestHeader = new Proxy(t.setRequestHeader, {
|
|
12158
12158
|
apply(p, g, y) {
|
|
12159
12159
|
const [C, I] = y, T = g[To];
|
|
12160
|
-
return T &&
|
|
12160
|
+
return T && ba(C) && ba(I) && (T.request_headers[C.toLowerCase()] = I), p.apply(g, y);
|
|
12161
12161
|
}
|
|
12162
12162
|
}), e.apply(t, a);
|
|
12163
12163
|
}
|
|
@@ -12168,7 +12168,7 @@ function vw() {
|
|
|
12168
12168
|
return e.apply(t, a);
|
|
12169
12169
|
a[0] !== void 0 && (i.body = a[0]);
|
|
12170
12170
|
const o = {
|
|
12171
|
-
startTimestamp:
|
|
12171
|
+
startTimestamp: va() * 1e3,
|
|
12172
12172
|
xhr: t
|
|
12173
12173
|
};
|
|
12174
12174
|
return Wn("xhr", o), e.apply(t, a);
|
|
@@ -12176,7 +12176,7 @@ function vw() {
|
|
|
12176
12176
|
});
|
|
12177
12177
|
}
|
|
12178
12178
|
function Cw(n) {
|
|
12179
|
-
if (
|
|
12179
|
+
if (ba(n))
|
|
12180
12180
|
return n;
|
|
12181
12181
|
try {
|
|
12182
12182
|
return n.toString();
|
|
@@ -12227,7 +12227,7 @@ const kw = 30, ww = 50;
|
|
|
12227
12227
|
function hf(n, e, t, a) {
|
|
12228
12228
|
const i = {
|
|
12229
12229
|
filename: n,
|
|
12230
|
-
function: e === "<anonymous>" ?
|
|
12230
|
+
function: e === "<anonymous>" ? ci : e,
|
|
12231
12231
|
in_app: !0
|
|
12232
12232
|
// All browser frames are considered in_app
|
|
12233
12233
|
};
|
|
@@ -12237,7 +12237,7 @@ const Ew = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, xw = /^\s*at (?:(.+?\)(?: \
|
|
|
12237
12237
|
const e = Ew.exec(n);
|
|
12238
12238
|
if (e) {
|
|
12239
12239
|
const [, a, i, o] = e;
|
|
12240
|
-
return hf(a,
|
|
12240
|
+
return hf(a, ci, +i, +o);
|
|
12241
12241
|
}
|
|
12242
12242
|
const t = xw.exec(n);
|
|
12243
12243
|
if (t) {
|
|
@@ -12245,7 +12245,7 @@ const Ew = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, xw = /^\s*at (?:(.+?\)(?: \
|
|
|
12245
12245
|
const l = Sw.exec(t[2]);
|
|
12246
12246
|
l && (t[2] = l[1], t[3] = l[2], t[4] = l[3]);
|
|
12247
12247
|
}
|
|
12248
|
-
const [i, o] = X0(t[1] ||
|
|
12248
|
+
const [i, o] = X0(t[1] || ci, t[2]);
|
|
12249
12249
|
return hf(o, i, t[3] ? +t[3] : void 0, t[4] ? +t[4] : void 0);
|
|
12250
12250
|
}
|
|
12251
12251
|
}, Dw = [kw, Tw], Iw = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, Aw = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, Rw = (n) => {
|
|
@@ -12255,13 +12255,13 @@ const Ew = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, xw = /^\s*at (?:(.+?\)(?: \
|
|
|
12255
12255
|
const o = Aw.exec(e[3]);
|
|
12256
12256
|
o && (e[1] = e[1] || "eval", e[3] = o[1], e[4] = o[2], e[5] = "");
|
|
12257
12257
|
}
|
|
12258
|
-
let a = e[3], i = e[1] ||
|
|
12258
|
+
let a = e[3], i = e[1] || ci;
|
|
12259
12259
|
return [i, a] = X0(i, a), hf(a, i, e[4] ? +e[4] : void 0, e[5] ? +e[5] : void 0);
|
|
12260
12260
|
}
|
|
12261
12261
|
}, Ow = [ww, Rw], Lw = [Dw, Ow], Pw = A0(...Lw), X0 = (n, e) => {
|
|
12262
12262
|
const t = n.indexOf("safari-extension") !== -1, a = n.indexOf("safari-web-extension") !== -1;
|
|
12263
12263
|
return t || a ? [
|
|
12264
|
-
n.indexOf("@") !== -1 ? n.split("@")[0] :
|
|
12264
|
+
n.indexOf("@") !== -1 ? n.split("@")[0] : ci,
|
|
12265
12265
|
t ? `safari-extension:${e}` : `safari-web-extension:${e}`
|
|
12266
12266
|
] : [n, e];
|
|
12267
12267
|
}, jr = 1024, Hw = "Breadcrumbs", Mw = (n = {}) => {
|
|
@@ -12283,12 +12283,12 @@ const Ew = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, xw = /^\s*at (?:(.+?\)(?: \
|
|
|
12283
12283
|
}, Fw = Mw;
|
|
12284
12284
|
function $w(n) {
|
|
12285
12285
|
return function(t) {
|
|
12286
|
-
Yt() === n &&
|
|
12286
|
+
Yt() === n && ui(
|
|
12287
12287
|
{
|
|
12288
12288
|
category: `sentry.${t.type === "transaction" ? "transaction" : "event"}`,
|
|
12289
12289
|
event_id: t.event_id,
|
|
12290
12290
|
level: t.level,
|
|
12291
|
-
message:
|
|
12291
|
+
message: Oa(t)
|
|
12292
12292
|
},
|
|
12293
12293
|
{
|
|
12294
12294
|
event: t
|
|
@@ -12316,7 +12316,7 @@ function Nw(n, e) {
|
|
|
12316
12316
|
category: `ui.${a.name}`,
|
|
12317
12317
|
message: i
|
|
12318
12318
|
};
|
|
12319
|
-
o && (p.data = { "ui.component_name": o }),
|
|
12319
|
+
o && (p.data = { "ui.component_name": o }), ui(p, {
|
|
12320
12320
|
event: a.event,
|
|
12321
12321
|
name: a.name,
|
|
12322
12322
|
global: a.global
|
|
@@ -12341,7 +12341,7 @@ function Bw(n) {
|
|
|
12341
12341
|
a.message = `Assertion failed: ${tm(t.args.slice(1), " ") || "console.assert"}`, a.data.arguments = t.args.slice(1);
|
|
12342
12342
|
else
|
|
12343
12343
|
return;
|
|
12344
|
-
|
|
12344
|
+
ui(a, {
|
|
12345
12345
|
input: t.args,
|
|
12346
12346
|
level: t.level
|
|
12347
12347
|
});
|
|
@@ -12364,7 +12364,7 @@ function zw(n) {
|
|
|
12364
12364
|
startTimestamp: a,
|
|
12365
12365
|
endTimestamp: i
|
|
12366
12366
|
};
|
|
12367
|
-
|
|
12367
|
+
ui(
|
|
12368
12368
|
{
|
|
12369
12369
|
category: "xhr",
|
|
12370
12370
|
data: y,
|
|
@@ -12387,7 +12387,7 @@ function jw(n) {
|
|
|
12387
12387
|
startTimestamp: a,
|
|
12388
12388
|
endTimestamp: i
|
|
12389
12389
|
};
|
|
12390
|
-
|
|
12390
|
+
ui(
|
|
12391
12391
|
{
|
|
12392
12392
|
category: "fetch",
|
|
12393
12393
|
data: o,
|
|
@@ -12406,7 +12406,7 @@ function jw(n) {
|
|
|
12406
12406
|
startTimestamp: a,
|
|
12407
12407
|
endTimestamp: i
|
|
12408
12408
|
};
|
|
12409
|
-
|
|
12409
|
+
ui(
|
|
12410
12410
|
{
|
|
12411
12411
|
category: "fetch",
|
|
12412
12412
|
data: l,
|
|
@@ -12425,7 +12425,7 @@ function Uw(n) {
|
|
|
12425
12425
|
const o = Qc(Ct.location.href);
|
|
12426
12426
|
let l = a ? Qc(a) : void 0;
|
|
12427
12427
|
const f = Qc(i);
|
|
12428
|
-
(!l || !l.path) && (l = o), o.protocol === f.protocol && o.host === f.host && (i = f.relative), o.protocol === l.protocol && o.host === l.host && (a = l.relative),
|
|
12428
|
+
(!l || !l.path) && (l = o), o.protocol === f.protocol && o.host === f.host && (i = f.relative), o.protocol === l.protocol && o.host === l.host && (a = l.relative), ui({
|
|
12429
12429
|
category: "navigation",
|
|
12430
12430
|
data: {
|
|
12431
12431
|
from: a,
|
|
@@ -12494,7 +12494,7 @@ function Hm(n) {
|
|
|
12494
12494
|
const t = e[0];
|
|
12495
12495
|
return e[0] = Vi(t, {
|
|
12496
12496
|
mechanism: {
|
|
12497
|
-
data: { function:
|
|
12497
|
+
data: { function: za(n) },
|
|
12498
12498
|
handled: !1,
|
|
12499
12499
|
type: "instrument"
|
|
12500
12500
|
}
|
|
@@ -12508,7 +12508,7 @@ function Zw(n) {
|
|
|
12508
12508
|
mechanism: {
|
|
12509
12509
|
data: {
|
|
12510
12510
|
function: "requestAnimationFrame",
|
|
12511
|
-
handler:
|
|
12511
|
+
handler: za(n)
|
|
12512
12512
|
},
|
|
12513
12513
|
handled: !1,
|
|
12514
12514
|
type: "instrument"
|
|
@@ -12526,13 +12526,13 @@ function Xw(n) {
|
|
|
12526
12526
|
mechanism: {
|
|
12527
12527
|
data: {
|
|
12528
12528
|
function: i,
|
|
12529
|
-
handler:
|
|
12529
|
+
handler: za(o)
|
|
12530
12530
|
},
|
|
12531
12531
|
handled: !1,
|
|
12532
12532
|
type: "instrument"
|
|
12533
12533
|
}
|
|
12534
12534
|
}, f = cu(o);
|
|
12535
|
-
return f && (l.mechanism.data.handler =
|
|
12535
|
+
return f && (l.mechanism.data.handler = za(f)), Vi(o, l);
|
|
12536
12536
|
});
|
|
12537
12537
|
}), n.apply(this, e);
|
|
12538
12538
|
};
|
|
@@ -12546,7 +12546,7 @@ function Jw(n) {
|
|
|
12546
12546
|
mechanism: {
|
|
12547
12547
|
data: {
|
|
12548
12548
|
function: "handleEvent",
|
|
12549
|
-
handler:
|
|
12549
|
+
handler: za(o),
|
|
12550
12550
|
target: n
|
|
12551
12551
|
},
|
|
12552
12552
|
handled: !1,
|
|
@@ -12562,7 +12562,7 @@ function Jw(n) {
|
|
|
12562
12562
|
mechanism: {
|
|
12563
12563
|
data: {
|
|
12564
12564
|
function: "addEventListener",
|
|
12565
|
-
handler:
|
|
12565
|
+
handler: za(o),
|
|
12566
12566
|
target: n
|
|
12567
12567
|
},
|
|
12568
12568
|
handled: !1,
|
|
@@ -12665,11 +12665,11 @@ function iE(n) {
|
|
|
12665
12665
|
};
|
|
12666
12666
|
}
|
|
12667
12667
|
function oE(n, e, t, a) {
|
|
12668
|
-
const i = n.exception = n.exception || {}, o = i.values = i.values || [], l = o[0] = o[0] || {}, f = l.stacktrace = l.stacktrace || {}, p = f.frames = f.frames || [], g = isNaN(parseInt(a, 10)) ? void 0 : a, y = isNaN(parseInt(t, 10)) ? void 0 : t, C =
|
|
12668
|
+
const i = n.exception = n.exception || {}, o = i.values = i.values || [], l = o[0] = o[0] || {}, f = l.stacktrace = l.stacktrace || {}, p = f.frames = f.frames || [], g = isNaN(parseInt(a, 10)) ? void 0 : a, y = isNaN(parseInt(t, 10)) ? void 0 : t, C = ba(e) && e.length > 0 ? e : x0();
|
|
12669
12669
|
return p.length === 0 && p.push({
|
|
12670
12670
|
colno: g,
|
|
12671
12671
|
filename: C,
|
|
12672
|
-
function:
|
|
12672
|
+
function: ci,
|
|
12673
12673
|
in_app: !0,
|
|
12674
12674
|
lineno: y
|
|
12675
12675
|
}), n;
|
|
@@ -12816,7 +12816,7 @@ async function yE(n, e) {
|
|
|
12816
12816
|
}
|
|
12817
12817
|
function bE(n) {
|
|
12818
12818
|
const e = Yt(), t = e && e.getOptions(), a = t && t.cdnBaseUrl || "https://browser.sentry-cdn.com";
|
|
12819
|
-
return new URL(`/${
|
|
12819
|
+
return new URL(`/${$a}/${n}.min.js`, a).toString();
|
|
12820
12820
|
}
|
|
12821
12821
|
const na = pt, kt = na.document, Do = na.navigator, Q0 = "Report a Bug", vE = "Cancel", CE = "Send Bug Report", _E = "Confirm", kE = "Report a Bug", wE = "your.email@example.org", EE = "Email", xE = "What's the bug? What did you expect?", SE = "Description", TE = "Your Name", DE = "Name", IE = "Thank you for your report!", AE = "(required)", RE = "Add a screenshot", OE = "Remove screenshot", LE = "widget", PE = "api", HE = 5e3, ME = (n, e = { includeReplay: !0 }) => {
|
|
12822
12822
|
if (!n.message)
|
|
@@ -12942,12 +12942,12 @@ function yn(n, e) {
|
|
|
12942
12942
|
n.setAttributeNS(null, t, a);
|
|
12943
12943
|
}), n;
|
|
12944
12944
|
}
|
|
12945
|
-
const
|
|
12945
|
+
const Ai = 20, NE = "http://www.w3.org/2000/svg";
|
|
12946
12946
|
function BE() {
|
|
12947
12947
|
const n = (f) => na.document.createElementNS(NE, f), e = yn(n("svg"), {
|
|
12948
|
-
width: `${
|
|
12949
|
-
height: `${
|
|
12950
|
-
viewBox: `0 0 ${
|
|
12948
|
+
width: `${Ai}`,
|
|
12949
|
+
height: `${Ai}`,
|
|
12950
|
+
viewBox: `0 0 ${Ai} ${Ai}`,
|
|
12951
12951
|
fill: "var(--foreground)"
|
|
12952
12952
|
}), t = yn(n("g"), {
|
|
12953
12953
|
clipPath: "url(#clip0_57_80)"
|
|
@@ -12960,8 +12960,8 @@ function BE() {
|
|
|
12960
12960
|
const i = n("defs"), o = yn(n("clipPath"), {
|
|
12961
12961
|
id: "clip0_57_80"
|
|
12962
12962
|
}), l = yn(n("rect"), {
|
|
12963
|
-
width: `${
|
|
12964
|
-
height: `${
|
|
12963
|
+
width: `${Ai}`,
|
|
12964
|
+
height: `${Ai}`,
|
|
12965
12965
|
fill: "white"
|
|
12966
12966
|
});
|
|
12967
12967
|
return o.appendChild(l), i.appendChild(o), e.appendChild(i).appendChild(o).appendChild(l), e;
|
|
@@ -13263,8 +13263,8 @@ const VE = ({
|
|
|
13263
13263
|
}
|
|
13264
13264
|
};
|
|
13265
13265
|
};
|
|
13266
|
-
var ll, Dt, eb,
|
|
13267
|
-
function
|
|
13266
|
+
var ll, Dt, eb, oi, Bm, tb, pf, $o = {}, Cu = [], WE = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, _u = Array.isArray;
|
|
13267
|
+
function Fa(n, e) {
|
|
13268
13268
|
for (var t in e) n[t] = e[t];
|
|
13269
13269
|
return n;
|
|
13270
13270
|
}
|
|
@@ -13295,7 +13295,7 @@ function Wi(n, e) {
|
|
|
13295
13295
|
}
|
|
13296
13296
|
function qE(n, e, t) {
|
|
13297
13297
|
var a, i = n.__v, o = i.__e, l = n.__P;
|
|
13298
|
-
if (l) return (a =
|
|
13298
|
+
if (l) return (a = Fa({}, i)).__v = i.__v + 1, Dt.vnode && Dt.vnode(a), ku(l, a, i, n.__n, l.ownerSVGElement !== void 0, 32 & i.__u ? [o] : null, e, o ?? Wi(i), !!(32 & i.__u), t), a.__.__k[a.__i] = a, a.__d = void 0, a.__e != o && ab(a), a;
|
|
13299
13299
|
}
|
|
13300
13300
|
function ab(n) {
|
|
13301
13301
|
var e, t;
|
|
@@ -13308,11 +13308,11 @@ function ab(n) {
|
|
|
13308
13308
|
}
|
|
13309
13309
|
}
|
|
13310
13310
|
function zm(n) {
|
|
13311
|
-
(!n.__d && (n.__d = !0) &&
|
|
13311
|
+
(!n.__d && (n.__d = !0) && oi.push(n) && !xs.__r++ || Bm !== Dt.debounceRendering) && ((Bm = Dt.debounceRendering) || tb)(xs);
|
|
13312
13312
|
}
|
|
13313
13313
|
function xs() {
|
|
13314
13314
|
var n, e, t, a = [], i = [];
|
|
13315
|
-
for (
|
|
13315
|
+
for (oi.sort(pf); n = oi.shift(); ) n.__d && (t = oi.length, e = qE(n, a, i) || e, t === 0 || oi.length > t ? (mf(a, e, i), i.length = a.length = 0, e = void 0, oi.sort(pf)) : e && Dt.__c && Dt.__c(e, Cu));
|
|
13316
13316
|
e && mf(a, e, i), xs.__r = 0;
|
|
13317
13317
|
}
|
|
13318
13318
|
function ib(n, e, t, a, i, o, l, f, p, g, y) {
|
|
@@ -13390,7 +13390,7 @@ function ku(n, e, t, a, i, o, l, f, p, g) {
|
|
|
13390
13390
|
if (e.constructor !== void 0) return null;
|
|
13391
13391
|
128 & t.__u && (p = !!(32 & t.__u), o = [f = e.__e = t.__e]), (y = Dt.__b) && y(e);
|
|
13392
13392
|
e: if (typeof ue == "function") try {
|
|
13393
|
-
if (Q = e.props, Y = (y = ue.contextType) && a[y.__c], me = y ? Y ? Y.props.value : y.__ : a, t.__c ? V = (C = e.__c = t.__c).__ = C.__E : ("prototype" in ue && ue.prototype.render ? e.__c = C = new ue(Q, me) : (e.__c = C = new os(Q, me), C.constructor = ue, C.render = XE), Y && Y.sub(C), C.props = Q, C.state || (C.state = {}), C.context = me, C.__n = a, I = C.__d = !0, C.__h = [], C._sb = []), C.__s == null && (C.__s = C.state), ue.getDerivedStateFromProps != null && (C.__s == C.state && (C.__s =
|
|
13393
|
+
if (Q = e.props, Y = (y = ue.contextType) && a[y.__c], me = y ? Y ? Y.props.value : y.__ : a, t.__c ? V = (C = e.__c = t.__c).__ = C.__E : ("prototype" in ue && ue.prototype.render ? e.__c = C = new ue(Q, me) : (e.__c = C = new os(Q, me), C.constructor = ue, C.render = XE), Y && Y.sub(C), C.props = Q, C.state || (C.state = {}), C.context = me, C.__n = a, I = C.__d = !0, C.__h = [], C._sb = []), C.__s == null && (C.__s = C.state), ue.getDerivedStateFromProps != null && (C.__s == C.state && (C.__s = Fa({}, C.__s)), Fa(C.__s, ue.getDerivedStateFromProps(Q, C.__s))), T = C.props, F = C.state, C.__v = e, I) ue.getDerivedStateFromProps == null && C.componentWillMount != null && C.componentWillMount(), C.componentDidMount != null && C.__h.push(C.componentDidMount);
|
|
13394
13394
|
else {
|
|
13395
13395
|
if (ue.getDerivedStateFromProps == null && Q !== T && C.componentWillReceiveProps != null && C.componentWillReceiveProps(Q, me), !C.__e && (C.shouldComponentUpdate != null && C.shouldComponentUpdate(Q, C.__s, me) === !1 || e.__v === t.__v)) {
|
|
13396
13396
|
for (e.__v !== t.__v && (C.props = Q, C.state = C.__s, C.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(be) {
|
|
@@ -13409,7 +13409,7 @@ function ku(n, e, t, a, i, o, l, f, p, g) {
|
|
|
13409
13409
|
} else do
|
|
13410
13410
|
C.__d = !1, He && He(e), y = C.render(C.props, C.state, C.context), C.state = C.__s;
|
|
13411
13411
|
while (C.__d && ++Te < 25);
|
|
13412
|
-
C.state = C.__s, C.getChildContext != null && (a =
|
|
13412
|
+
C.state = C.__s, C.getChildContext != null && (a = Fa(Fa({}, a), C.getChildContext())), I || C.getSnapshotBeforeUpdate == null || (W = C.getSnapshotBeforeUpdate(T, F)), ib(n, _u(xe = y != null && y.type === er && y.key == null ? y.props.children : y) ? xe : [xe], e, t, a, i, o, l, f, p, g), C.base = e.__e, e.__u &= -161, C.__h.length && l.push(C), V && (C.__E = C.__ = null);
|
|
13413
13413
|
} catch (be) {
|
|
13414
13414
|
e.__v = null, p || o != null ? (e.__e = f, e.__u |= p ? 160 : 32, o[o.indexOf(f)] = null) : (e.__e = t.__e, e.__k = t.__k), Dt.__e(be, e, t);
|
|
13415
13415
|
}
|
|
@@ -13487,14 +13487,14 @@ ll = Cu.slice, Dt = { __e: function(n, e, t, a) {
|
|
|
13487
13487
|
throw n;
|
|
13488
13488
|
} }, eb = 0, os.prototype.setState = function(n, e) {
|
|
13489
13489
|
var t;
|
|
13490
|
-
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
13490
|
+
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Fa({}, this.state), typeof n == "function" && (n = n(Fa({}, t), this.props)), n && Fa(t, n), n != null && this.__v && (e && this._sb.push(e), zm(this));
|
|
13491
13491
|
}, os.prototype.forceUpdate = function(n) {
|
|
13492
13492
|
this.__v && (this.__e = !0, n && this.__h.push(n), zm(this));
|
|
13493
|
-
}, os.prototype.render = er,
|
|
13493
|
+
}, os.prototype.render = er, oi = [], tb = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, pf = function(n, e) {
|
|
13494
13494
|
return n.__v.__b - e.__v.__b;
|
|
13495
13495
|
}, xs.__r = 0;
|
|
13496
|
-
var
|
|
13497
|
-
function
|
|
13496
|
+
var _a, Tt, ed, Wm, qi = 0, rb = [], rs = [], Mt = Dt, qm = Mt.__b, Gm = Mt.__r, Ym = Mt.diffed, Zm = Mt.__c, Xm = Mt.unmount, Jm = Mt.__;
|
|
13497
|
+
function yi(n, e) {
|
|
13498
13498
|
Mt.__h && Mt.__h(Tt, n, qi || e), qi = 0;
|
|
13499
13499
|
var t = Tt.__H || (Tt.__H = { __: [], __h: [] });
|
|
13500
13500
|
return n >= t.__.length && t.__.push({ __V: rs }), t.__[n];
|
|
@@ -13503,7 +13503,7 @@ function Fi(n) {
|
|
|
13503
13503
|
return qi = 1, sb(cb, n);
|
|
13504
13504
|
}
|
|
13505
13505
|
function sb(n, e, t) {
|
|
13506
|
-
var a =
|
|
13506
|
+
var a = yi(_a++, 2);
|
|
13507
13507
|
if (a.t = n, !a.__c && (a.__ = [t ? t(e) : cb(void 0, e), function(f) {
|
|
13508
13508
|
var p = a.__N ? a.__N[0] : a.__[0], g = a.t(p, f);
|
|
13509
13509
|
p !== g && (a.__N = [g, a.__[1]], a.__c.setState({}));
|
|
@@ -13537,11 +13537,11 @@ function sb(n, e, t) {
|
|
|
13537
13537
|
return a.__N || a.__;
|
|
13538
13538
|
}
|
|
13539
13539
|
function QE(n, e) {
|
|
13540
|
-
var t =
|
|
13540
|
+
var t = yi(_a++, 3);
|
|
13541
13541
|
!Mt.__s && Eu(t.__H, e) && (t.__ = n, t.i = e, Tt.__H.__h.push(t));
|
|
13542
13542
|
}
|
|
13543
13543
|
function lb(n, e) {
|
|
13544
|
-
var t =
|
|
13544
|
+
var t = yi(_a++, 4);
|
|
13545
13545
|
!Mt.__s && Eu(t.__H, e) && (t.__ = n, t.i = e, Tt.__h.push(t));
|
|
13546
13546
|
}
|
|
13547
13547
|
function KE(n) {
|
|
@@ -13559,7 +13559,7 @@ function e8(n, e, t) {
|
|
|
13559
13559
|
}, t == null ? t : t.concat(n));
|
|
13560
13560
|
}
|
|
13561
13561
|
function tr(n, e) {
|
|
13562
|
-
var t =
|
|
13562
|
+
var t = yi(_a++, 7);
|
|
13563
13563
|
return Eu(t.__H, e) ? (t.__V = n(), t.i = e, t.__h = n, t.__V) : t.__;
|
|
13564
13564
|
}
|
|
13565
13565
|
function $i(n, e) {
|
|
@@ -13568,14 +13568,14 @@ function $i(n, e) {
|
|
|
13568
13568
|
}, e);
|
|
13569
13569
|
}
|
|
13570
13570
|
function t8(n) {
|
|
13571
|
-
var e = Tt.context[n.__c], t =
|
|
13571
|
+
var e = Tt.context[n.__c], t = yi(_a++, 9);
|
|
13572
13572
|
return t.c = n, e ? (t.__ == null && (t.__ = !0, e.sub(Tt)), e.props.value) : n.__;
|
|
13573
13573
|
}
|
|
13574
13574
|
function n8(n, e) {
|
|
13575
13575
|
Mt.useDebugValue && Mt.useDebugValue(e ? e(n) : n);
|
|
13576
13576
|
}
|
|
13577
13577
|
function a8(n) {
|
|
13578
|
-
var e =
|
|
13578
|
+
var e = yi(_a++, 10), t = Fi();
|
|
13579
13579
|
return e.__ = n, Tt.componentDidCatch || (Tt.componentDidCatch = function(a, i) {
|
|
13580
13580
|
e.__ && e.__(a, i), t[1](a);
|
|
13581
13581
|
}), [t[0], function() {
|
|
@@ -13583,7 +13583,7 @@ function a8(n) {
|
|
|
13583
13583
|
}];
|
|
13584
13584
|
}
|
|
13585
13585
|
function i8() {
|
|
13586
|
-
var n =
|
|
13586
|
+
var n = yi(_a++, 11);
|
|
13587
13587
|
if (!n.__) {
|
|
13588
13588
|
for (var e = Tt.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__;
|
|
13589
13589
|
var t = e.__m || (e.__m = [0, 0]);
|
|
@@ -13603,11 +13603,11 @@ Mt.__b = function(n) {
|
|
|
13603
13603
|
}, Mt.__ = function(n, e) {
|
|
13604
13604
|
e.__k && e.__k.__m && (n.__m = e.__k.__m), Jm && Jm(n, e);
|
|
13605
13605
|
}, Mt.__r = function(n) {
|
|
13606
|
-
Gm && Gm(n),
|
|
13606
|
+
Gm && Gm(n), _a = 0;
|
|
13607
13607
|
var e = (Tt = n.__c).__H;
|
|
13608
13608
|
e && (ed === Tt ? (e.__h = [], Tt.__h = [], e.__.forEach(function(t) {
|
|
13609
13609
|
t.__N && (t.__ = t.__N), t.__V = rs, t.__N = t.i = void 0;
|
|
13610
|
-
})) : (e.__h.forEach(ss), e.__h.forEach(yf), e.__h = [],
|
|
13610
|
+
})) : (e.__h.forEach(ss), e.__h.forEach(yf), e.__h = [], _a = 0)), ed = Tt;
|
|
13611
13611
|
}, Mt.diffed = function(n) {
|
|
13612
13612
|
Ym && Ym(n);
|
|
13613
13613
|
var e = n.__c;
|
|
@@ -14457,7 +14457,7 @@ function D8({ hooks: n }) {
|
|
|
14457
14457
|
}, []);
|
|
14458
14458
|
};
|
|
14459
14459
|
}
|
|
14460
|
-
const Tn = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx", Io = 30, ua = 3,
|
|
14460
|
+
const Tn = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx", Io = 30, ua = 3, Ia = Io + ua, cn = na.devicePixelRatio, ko = (n) => ({
|
|
14461
14461
|
x: Math.min(n.startX, n.endX),
|
|
14462
14462
|
y: Math.min(n.startY, n.endY),
|
|
14463
14463
|
width: Math.abs(n.startX - n.endX),
|
|
@@ -14517,29 +14517,29 @@ function I8({
|
|
|
14517
14517
|
case "top-left":
|
|
14518
14518
|
F(($e) => ({
|
|
14519
14519
|
...$e,
|
|
14520
|
-
startX: Math.min(Math.max(0, Re), $e.endX -
|
|
14521
|
-
startY: Math.min(Math.max(0, Ae), $e.endY -
|
|
14520
|
+
startX: Math.min(Math.max(0, Re), $e.endX - Ia),
|
|
14521
|
+
startY: Math.min(Math.max(0, Ae), $e.endY - Ia)
|
|
14522
14522
|
}));
|
|
14523
14523
|
break;
|
|
14524
14524
|
case "top-right":
|
|
14525
14525
|
F(($e) => ({
|
|
14526
14526
|
...$e,
|
|
14527
|
-
endX: Math.max(Math.min(Re, ke.width / cn), $e.startX +
|
|
14528
|
-
startY: Math.min(Math.max(0, Ae), $e.endY -
|
|
14527
|
+
endX: Math.max(Math.min(Re, ke.width / cn), $e.startX + Ia),
|
|
14528
|
+
startY: Math.min(Math.max(0, Ae), $e.endY - Ia)
|
|
14529
14529
|
}));
|
|
14530
14530
|
break;
|
|
14531
14531
|
case "bottom-left":
|
|
14532
14532
|
F(($e) => ({
|
|
14533
14533
|
...$e,
|
|
14534
|
-
startX: Math.min(Math.max(0, Re), $e.endX -
|
|
14535
|
-
endY: Math.max(Math.min(Ae, ke.height / cn), $e.startY +
|
|
14534
|
+
startX: Math.min(Math.max(0, Re), $e.endX - Ia),
|
|
14535
|
+
endY: Math.max(Math.min(Ae, ke.height / cn), $e.startY + Ia)
|
|
14536
14536
|
}));
|
|
14537
14537
|
break;
|
|
14538
14538
|
case "bottom-right":
|
|
14539
14539
|
F(($e) => ({
|
|
14540
14540
|
...$e,
|
|
14541
|
-
endX: Math.max(Math.min(Re, ke.width / cn), $e.startX +
|
|
14542
|
-
endY: Math.max(Math.min(Ae, ke.height / cn), $e.startY +
|
|
14541
|
+
endX: Math.max(Math.min(Re, ke.width / cn), $e.startX + Ia),
|
|
14542
|
+
endY: Math.max(Math.min(Ae, ke.height / cn), $e.startY + Ia)
|
|
14543
14543
|
}));
|
|
14544
14544
|
break;
|
|
14545
14545
|
}
|
|
@@ -14755,7 +14755,7 @@ const A8 = () => ({
|
|
|
14755
14755
|
lazyLoadIntegration: yE,
|
|
14756
14756
|
getModalIntegration: () => E8,
|
|
14757
14757
|
getScreenshotIntegration: () => A8
|
|
14758
|
-
}),
|
|
14758
|
+
}), ka = "2.5.8", R8 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-event-capacity{display:flex;flex-direction:column;gap:4px}.nylas-event-capacity label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-capacity label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-capacity label span.label-icon{margin-left:4px}.nylas-event-capacity label span.label-icon tooltip-component{display:flex}.nylas-event-capacity label tooltip-component::part(tc__content){left:50px}.nylas-event-capacity__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-capacity__wrapper input-component{width:auto}.nylas-event-capacity__wrapper input-component::part(ic__input){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:80px}.nylas-event-capacity__wrapper input-component::part(ic__input--error){border:1px solid var(--nylas-error)}.nylas-event-capacity__wrapper input-component::part(ic__label--error){position:relative;margin-bottom:24px}.nylas-event-capacity__wrapper input-component::part(ic__error_message){position:absolute;top:54px;width:max-content}.nylas-event-capacity__wrapper span.attendees.error{margin-top:-24px}';
|
|
14759
14759
|
var O8 = function(n, e, t, a) {
|
|
14760
14760
|
var i = arguments.length, o = i < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, t) : a, l;
|
|
14761
14761
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -14909,7 +14909,7 @@ var P8 = function(n, e, t, a) {
|
|
|
14909
14909
|
};
|
|
14910
14910
|
const Tu = te(class extends ne {
|
|
14911
14911
|
constructor() {
|
|
14912
|
-
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = K(this, "valueChanged", 7), this.internals = this.attachInternals(), this.eventDescription = this.selectedConfiguration?.event_booking?.description, this.name = "description", this.hideAutoPopulateButton = !1, this.noTemplates = !1, this.description = this.eventDescription || this.selectedConfiguration?.event_booking?.description || "", this.showTokens = !1, this.availableTokens =
|
|
14912
|
+
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = K(this, "valueChanged", 7), this.internals = this.attachInternals(), this.eventDescription = this.selectedConfiguration?.event_booking?.description, this.name = "description", this.hideAutoPopulateButton = !1, this.noTemplates = !1, this.description = this.eventDescription || this.selectedConfiguration?.event_booking?.description || "", this.showTokens = !1, this.availableTokens = Ha.map((e) => ({
|
|
14913
14913
|
label: e.token,
|
|
14914
14914
|
value: e.value,
|
|
14915
14915
|
labelHTML: e
|
|
@@ -14925,7 +14925,7 @@ const Tu = te(class extends ne {
|
|
|
14925
14925
|
value: `\${${l}}`,
|
|
14926
14926
|
description: a[l].label || ""
|
|
14927
14927
|
}));
|
|
14928
|
-
this.additionalFieldTokens = [...o], this.availableTokens = [...
|
|
14928
|
+
this.additionalFieldTokens = [...o], this.availableTokens = [...Ha, ...o].map((l) => ({
|
|
14929
14929
|
label: l.token,
|
|
14930
14930
|
value: l.value,
|
|
14931
14931
|
labelHTML: l
|
|
@@ -14972,7 +14972,7 @@ const Tu = te(class extends ne {
|
|
|
14972
14972
|
value: `\${${f}}`,
|
|
14973
14973
|
description: i[f].label || ""
|
|
14974
14974
|
}));
|
|
14975
|
-
this.additionalFieldTokens = [...l], this.availableTokens = [...
|
|
14975
|
+
this.additionalFieldTokens = [...l], this.availableTokens = [...Ha, ...l].map((f) => ({
|
|
14976
14976
|
label: f.token,
|
|
14977
14977
|
value: f.value,
|
|
14978
14978
|
labelHTML: f
|
|
@@ -14986,7 +14986,7 @@ const Tu = te(class extends ne {
|
|
|
14986
14986
|
}
|
|
14987
14987
|
highlightTokens(e) {
|
|
14988
14988
|
let t = e;
|
|
14989
|
-
return [...
|
|
14989
|
+
return [...Ha, ...this.additionalFieldTokens].forEach((a) => {
|
|
14990
14990
|
const i = a.value, o = new RegExp(`(\\${i})(?!\\w)`, "g");
|
|
14991
14991
|
t = t?.replace(o, '<span class="highlighted-tag">$1</span>') || "";
|
|
14992
14992
|
}), t;
|
|
@@ -15004,6 +15004,7 @@ const Tu = te(class extends ne {
|
|
|
15004
15004
|
};
|
|
15005
15005
|
}, t = (i) => i.anchorOffset === 0 && i.focusOffset === i.focusNode?.nodeValue?.length;
|
|
15006
15006
|
switch (zg()) {
|
|
15007
|
+
case "Edge (Chromium)":
|
|
15007
15008
|
case "Chrome": {
|
|
15008
15009
|
const i = this.host.shadowRoot?.getSelection(), o = i?.focusNode, l = o?.nodeValue || "", f = i && t(i);
|
|
15009
15010
|
return e(l, i?.focusOffset || -1, o, f);
|
|
@@ -15150,7 +15151,7 @@ const Tu = te(class extends ne {
|
|
|
15150
15151
|
i !== -1 && o !== -1 ? f = e.substring(0, i) + l + e.substring(o + a.length) : f = e + l, this.updateEventDescriptionFromProp(f), this.updateEventDescription(f);
|
|
15151
15152
|
}
|
|
15152
15153
|
render() {
|
|
15153
|
-
return r(Pe, { key: "
|
|
15154
|
+
return r(Pe, { key: "53d3cacafda04b14b7189df270d7fbcecb62725c" }, r("div", { key: "22865cbf68472aca10e158564e7e95f337281a8a", class: "nylas-event-description", part: "nedesc" }, r("label", { key: "5a449e4b1fedb09a1f5135ffd718e555ab084d7e", htmlFor: "description" }, r("p", { key: "18b802e88912341fdc1f0a1093f7fea7277889c4" }, h.t("nylasEventDescription.headerTitle"), r("span", { key: "401f2d8936bc7cacb2d6ccd9a559c716ea127162", class: "label-icon" }, r("tooltip-component", { key: "de7c05ceb209aa156b6f5db5a90cd324f3ddeb35" }, r("info-icon", { key: "44cde9c411e3e4769d5ed98513b41bf01034dcfb", slot: "tooltip-icon" }), r("span", { key: "96e57015a7911d4f966a0c6c1a682f77f3a43250", slot: "tooltip-content" }, h.t("nylasEventDescription.tooltip.desc")))))), r("div", { key: "88c3c5822a09ac43ea965dcb8c24e35dcc2baed9", id: "event-description", class: { "event-description": !0 }, part: "nedesc__textarea", contentEditable: "true", onInput: (e) => this.handleChange(e), onKeyDown: (e) => this.handleInputKeyDown(e), ref: (e) => this.descriptionRef = e }), !this.noTemplates && this.showTokens && this.filteredTokens?.length > 0 && r("div", { key: "68c129489ba73fee92a2496faceeb2d8e4c0bb35", class: "token-options", part: "nedesc__dropdown-content" }, r("ul", { key: "28459161c996973c962f8bce4bd95334de7e59fa", tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((e) => r("li", { tabindex: "0", key: e.label, id: e.label, class: { active: this.ariaActivedescendant === e.label }, onClick: (t) => this.selectOption(t, e), role: "option" }, this.getLabelHTML(e.labelHTML))))), !this.noTemplates && r("span", { key: "19f781775b3882f3acb9857450403e757d29fbe6", class: "help-text" }, h.t("nylasEventTitle.helpText", { context: "start", field: h.t("nylasEventTitle.description") }), " ", r("code", { key: "e403e6e6a5342c21cc71a14280a75158978e4fde" }, "$"), " ", h.t("nylasEventTitle.helpText", { context: "end" }), r("span", { key: "a3810fd7dda4abcf86c5b0114361f964373bbad9", class: "label-icon" }, r("tooltip-component", { key: "e238c192ebb2aab79ae87c17a7368411968ecc6a" }, r("info-icon", { key: "6ad059d3ac7ba0f30464329d0d29193ce42df9de", slot: "tooltip-icon", width: "13", height: "13" }), r("span", { key: "d7a1786234dac338d11298ee90dea5f7eeabc661", slot: "tooltip-content" }, h.t("nylasEventTitle.tooltip.desc"), " ", r("code", { key: "2f18fade22e39d1788c6b1d1ff6b17e501b4079c" }, "${invitee}"))))), !this.noTemplates && !this.hideAutoPopulateButton && r("span", { key: "2d0c2c8c93c89f2674203a22534607ad4761b0fb", class: "add-additional-fields" }, r("button-component", { key: "6c17ca47b82203dfc3c909775f88e3f842bbc9ca", variant: "basic", onClick: () => this.handleAddAdditionalFields() }, h.t("nylasEventDescription.addAdditionalFields.buttonText")), r("span", { key: "714a04b438d6cc3f782eac1b0479089ee16bb47f", class: "label-icon" }, r("tooltip-component", { key: "62fc5c38ba24009ba43f0f7c0cfecef899fc096c" }, r("info-icon", { key: "d838d269ade9dcb389333d6b3503165b6decfa4f", slot: "tooltip-icon" }), r("span", { key: "a8c77933b5c0599c9f2a965e39b32be6df0dd71c", slot: "tooltip-content" }, h.t("nylasEventDescription.addAdditionalFields.tooltip.desc"), " ", r("code", { key: "b06403678e958e577785ca6bb63036343277ef55" }, "${invitee}")))))));
|
|
15154
15155
|
}
|
|
15155
15156
|
static get formAssociated() {
|
|
15156
15157
|
return !0;
|
|
@@ -15319,7 +15320,7 @@ function ar() {
|
|
|
15319
15320
|
customElements.get(e) || customElements.define(e, Du);
|
|
15320
15321
|
break;
|
|
15321
15322
|
case "nylas-form-card":
|
|
15322
|
-
customElements.get(e) ||
|
|
15323
|
+
customElements.get(e) || wa();
|
|
15323
15324
|
break;
|
|
15324
15325
|
}
|
|
15325
15326
|
});
|
|
@@ -16146,7 +16147,7 @@ function dl() {
|
|
|
16146
16147
|
customElements.get(e) || qn();
|
|
16147
16148
|
break;
|
|
16148
16149
|
case "nylas-time-window-picker":
|
|
16149
|
-
customElements.get(e) ||
|
|
16150
|
+
customElements.get(e) || Ea();
|
|
16150
16151
|
break;
|
|
16151
16152
|
case "search-icon":
|
|
16152
16153
|
customElements.get(e) || vt();
|
|
@@ -16175,7 +16176,7 @@ var q8 = function(n, e, t, a) {
|
|
|
16175
16176
|
};
|
|
16176
16177
|
const Ru = te(class extends ne {
|
|
16177
16178
|
constructor() {
|
|
16178
|
-
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = K(this, "valueChanged", 7), this.internals = this.attachInternals(), this.eventTitle = this.selectedConfiguration?.event_booking?.title, this.name = "title", this.noTemplates = !1, this.showTokens = !1, this.availableTokens =
|
|
16179
|
+
super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = K(this, "valueChanged", 7), this.internals = this.attachInternals(), this.eventTitle = this.selectedConfiguration?.event_booking?.title, this.name = "title", this.noTemplates = !1, this.showTokens = !1, this.availableTokens = Ha.map((e) => ({
|
|
16179
16180
|
label: e.token,
|
|
16180
16181
|
value: e.value,
|
|
16181
16182
|
labelHTML: e
|
|
@@ -16193,7 +16194,7 @@ const Ru = te(class extends ne {
|
|
|
16193
16194
|
value: `\${${l}}`,
|
|
16194
16195
|
description: a[l].label || ""
|
|
16195
16196
|
}));
|
|
16196
|
-
this.additionalFieldTokens = [...o], this.availableTokens = [...
|
|
16197
|
+
this.additionalFieldTokens = [...o], this.availableTokens = [...Ha, ...o].map((l) => ({
|
|
16197
16198
|
label: l.token,
|
|
16198
16199
|
value: l.value,
|
|
16199
16200
|
labelHTML: l
|
|
@@ -16245,7 +16246,7 @@ const Ru = te(class extends ne {
|
|
|
16245
16246
|
value: `\${${f}}`,
|
|
16246
16247
|
description: i[f].label || ""
|
|
16247
16248
|
}));
|
|
16248
|
-
this.additionalFieldTokens = [...l], this.availableTokens = [...
|
|
16249
|
+
this.additionalFieldTokens = [...l], this.availableTokens = [...Ha, ...l].map((f) => ({
|
|
16249
16250
|
label: f.token,
|
|
16250
16251
|
value: f.value,
|
|
16251
16252
|
labelHTML: f
|
|
@@ -16259,7 +16260,7 @@ const Ru = te(class extends ne {
|
|
|
16259
16260
|
}
|
|
16260
16261
|
highlightTokens(e) {
|
|
16261
16262
|
let t = e;
|
|
16262
|
-
return [...
|
|
16263
|
+
return [...Ha, ...this.additionalFieldTokens].forEach((a) => {
|
|
16263
16264
|
const i = a.value, o = new RegExp(`(\\${i})(?!\\w)`, "g");
|
|
16264
16265
|
t = t?.replace(o, '<span class="highlighted-tag">$1</span>') || "";
|
|
16265
16266
|
}), t;
|
|
@@ -16277,6 +16278,7 @@ const Ru = te(class extends ne {
|
|
|
16277
16278
|
};
|
|
16278
16279
|
}, t = (i) => i.anchorOffset === 0 && i.focusOffset === i.focusNode?.nodeValue?.length;
|
|
16279
16280
|
switch (zg()) {
|
|
16281
|
+
case "Edge (Chromium)":
|
|
16280
16282
|
case "Chrome": {
|
|
16281
16283
|
const i = this.host.shadowRoot?.getSelection(), o = i?.focusNode, l = o?.nodeValue || "", f = i && t(i);
|
|
16282
16284
|
return e(l, i?.focusOffset || -1, o, f);
|
|
@@ -16388,10 +16390,10 @@ const Ru = te(class extends ne {
|
|
|
16388
16390
|
return r("div", { class: "token-label" }, r("span", { class: "token" }, e.token), r("span", { class: "description" }, e.description));
|
|
16389
16391
|
}
|
|
16390
16392
|
render() {
|
|
16391
|
-
return r(Pe, { key: "
|
|
16393
|
+
return r(Pe, { key: "3604606cc0de1d29de92fd21d2b560d3ca392572" }, r("div", { key: "9f1ecaa4adcb1f911d5f2801cabde787d260e980", class: "nylas-event-title", part: "net" }, r("label", { key: "45279a83fb0e167d26c9d05ff6aa67b833baee05", htmlFor: "title" }, r("p", { key: "a7735d4b980b402f627d7ec62fb6943cc8f91dd6" }, h.t("nylasEventTitle.headerTitle"), r("span", { key: "8fd19ca367d1cb6bcd6eb7411833974f324cb6da", class: "required" }, "*"))), r("div", { key: "74d707a90fe47424b00174845b0c3dc23b17e6aa", class: {
|
|
16392
16394
|
title: !0,
|
|
16393
16395
|
error: this.validationError !== ""
|
|
16394
|
-
}, part: "net__title", ref: (e) => this.titleRef = e, contentEditable: "true", onInput: (e) => this.handleChange(e), onKeyDown: (e) => this.handleInputKeyDown(e) }), !this.noTemplates && this.showTokens && this.filteredTokens?.length > 0 && r("div", { key: "
|
|
16396
|
+
}, part: "net__title", ref: (e) => this.titleRef = e, contentEditable: "true", onInput: (e) => this.handleChange(e), onKeyDown: (e) => this.handleInputKeyDown(e) }), !this.noTemplates && this.showTokens && this.filteredTokens?.length > 0 && r("div", { key: "16b297a4298867ea952cf43cbe8d20ce7f4c1538", class: "token-options", part: "net__dropdown-content" }, r("ul", { key: "e30fbd7643d315ad8ef53bc54baa3cfdfbf763d4", tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant }, this.filteredTokens.map((e) => r("li", { tabindex: "0", key: e.label, id: e.label, class: { active: this.ariaActivedescendant === e.label }, onClick: (t) => this.selectOption(t, e), role: "option" }, this.getLabelHTML(e.labelHTML))))), !this.noTemplates && r("span", { key: "868b0cc3391b0958dc09a65ef113be0143706c35", class: "help-text" }, h.t("nylasEventTitle.helpText", { context: "start", field: h.t("nylasEventTitle.title") }), " ", r("code", { key: "9f3f2e79e5b261d49bd1325fdac2afa99bc3789f" }, "$"), " ", h.t("nylasEventTitle.helpText", { context: "end" }), r("span", { key: "e1a39fcf4b862e2c4b4770d1b04442305ebe4cc6", class: "label-icon" }, r("tooltip-component", { key: "8917b60d4abb8b100cd2d857b3964fafcb7ad69c" }, r("info-icon", { key: "7afc14c64e8c00cb08fa5fd22f740508911cd9b5", slot: "tooltip-icon" }), r("span", { key: "fa4e054a1d58831030e6f0c9278e106506e60f7e", slot: "tooltip-content" }, h.t("nylasEventTitle.tooltip.desc"), " ", r("code", { key: "26f4a35890c68b0bcd8c5ba7446932e1f3a579a9" }, "${invitee}"))))), this.validationError != "" && r("span", { key: "215db5fa24c611e66f343ef24e364ea4cd2466b7", class: "error-message" }, h.t(`nylasEventTitle.${this.validationError}`))));
|
|
16395
16397
|
}
|
|
16396
16398
|
static get formAssociated() {
|
|
16397
16399
|
return !0;
|
|
@@ -16465,8 +16467,8 @@ function or() {
|
|
|
16465
16467
|
}
|
|
16466
16468
|
});
|
|
16467
16469
|
}
|
|
16468
|
-
var Dn = {}, $ = {}, rr, ze, ub, hb, Gi,
|
|
16469
|
-
function
|
|
16470
|
+
var Dn = {}, $ = {}, rr, ze, ub, hb, Gi, ri, tg, pb, mb, Ss = {}, gb = [], G8 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
16471
|
+
function ma(n, e) {
|
|
16470
16472
|
for (var t in e) n[t] = e[t];
|
|
16471
16473
|
return n;
|
|
16472
16474
|
}
|
|
@@ -16554,13 +16556,13 @@ function Z8(n) {
|
|
|
16554
16556
|
Gi ? setTimeout(n) : pb(n);
|
|
16555
16557
|
}
|
|
16556
16558
|
function bf(n) {
|
|
16557
|
-
(!n.__d && (n.__d = !0) &&
|
|
16559
|
+
(!n.__d && (n.__d = !0) && ri.push(n) && !Ds.__r++ || tg !== ze.debounceRendering) && ((tg = ze.debounceRendering) || Z8)(Ds);
|
|
16558
16560
|
}
|
|
16559
16561
|
function Ds() {
|
|
16560
16562
|
var n, e, t, a, i, o, l, f;
|
|
16561
|
-
for (
|
|
16563
|
+
for (ri.sort(function(p, g) {
|
|
16562
16564
|
return p.__v.__b - g.__v.__b;
|
|
16563
|
-
}); n =
|
|
16565
|
+
}); n = ri.shift(); ) n.__d && (e = ri.length, a = void 0, i = void 0, l = (o = (t = n).__v).__e, (f = t.__P) && (a = [], (i = ma({}, o)).__v = o.__v + 1, Lu(f, o, i, t.__n, f.ownerSVGElement !== void 0, o.__h != null ? [l] : null, a, l ?? No(o), o.__h), wb(a, o), o.__e != l && bb(o)), ri.length > e && ri.sort(function(p, g) {
|
|
16564
16566
|
return p.__v.__b - g.__v.__b;
|
|
16565
16567
|
}));
|
|
16566
16568
|
Ds.__r = 0;
|
|
@@ -16614,7 +16616,7 @@ function Lu(n, e, t, a, i, o, l, f, p) {
|
|
|
16614
16616
|
t.__h != null && (p = t.__h, f = e.__e = t.__e, e.__h = null, o = [f]), (g = ze.__b) && g(e);
|
|
16615
16617
|
try {
|
|
16616
16618
|
e: if (typeof xe == "function") {
|
|
16617
|
-
if (V = e.props, Q = (g = xe.contextType) && a[g.__c], Y = g ? Q ? Q.props.value : g.__ : a, t.__c ? W = (y = e.__c = t.__c).__ = y.__E : ("prototype" in xe && xe.prototype.render ? e.__c = y = new xe(V, Y) : (e.__c = y = new Hn(V, Y), y.constructor = xe, y.render = J8), Q && Q.sub(y), y.props = V, y.state || (y.state = {}), y.context = Y, y.__n = a, C = y.__d = !0, y.__h = [], y._sb = []), y.__s == null && (y.__s = y.state), xe.getDerivedStateFromProps != null && (y.__s == y.state && (y.__s =
|
|
16619
|
+
if (V = e.props, Q = (g = xe.contextType) && a[g.__c], Y = g ? Q ? Q.props.value : g.__ : a, t.__c ? W = (y = e.__c = t.__c).__ = y.__E : ("prototype" in xe && xe.prototype.render ? e.__c = y = new xe(V, Y) : (e.__c = y = new Hn(V, Y), y.constructor = xe, y.render = J8), Q && Q.sub(y), y.props = V, y.state || (y.state = {}), y.context = Y, y.__n = a, C = y.__d = !0, y.__h = [], y._sb = []), y.__s == null && (y.__s = y.state), xe.getDerivedStateFromProps != null && (y.__s == y.state && (y.__s = ma({}, y.__s)), ma(y.__s, xe.getDerivedStateFromProps(V, y.__s))), I = y.props, T = y.state, y.__v = e, C) xe.getDerivedStateFromProps == null && y.componentWillMount != null && y.componentWillMount(), y.componentDidMount != null && y.__h.push(y.componentDidMount);
|
|
16618
16620
|
else {
|
|
16619
16621
|
if (xe.getDerivedStateFromProps == null && V !== I && y.componentWillReceiveProps != null && y.componentWillReceiveProps(V, Y), !y.__e && y.shouldComponentUpdate != null && y.shouldComponentUpdate(V, y.__s, Y) === !1 || e.__v === t.__v) {
|
|
16620
16622
|
for (e.__v !== t.__v && (y.props = V, y.state = y.__s, y.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(ue) {
|
|
@@ -16633,7 +16635,7 @@ function Lu(n, e, t, a, i, o, l, f, p) {
|
|
|
16633
16635
|
} else do
|
|
16634
16636
|
y.__d = !1, _e && _e(e), g = y.render(y.props, y.state, y.context), y.state = y.__s;
|
|
16635
16637
|
while (y.__d && ++He < 25);
|
|
16636
|
-
y.state = y.__s, y.getChildContext != null && (a =
|
|
16638
|
+
y.state = y.__s, y.getChildContext != null && (a = ma(ma({}, a), y.getChildContext())), C || y.getSnapshotBeforeUpdate == null || (F = y.getSnapshotBeforeUpdate(I, T)), Ie = g != null && g.type === ra && g.key == null ? g.props.children : g, vb(n, Array.isArray(Ie) ? Ie : [Ie], e, t, a, i, o, l, f, p), y.base = e.__e, e.__h = null, y.__h.length && l.push(y), W && (y.__E = y.__ = null), y.__e = !1;
|
|
16637
16639
|
} else o == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = X8(t.__e, e, t, a, i, o, l, p);
|
|
16638
16640
|
(g = ze.diffed) && g(e);
|
|
16639
16641
|
} catch (ue) {
|
|
@@ -16706,7 +16708,7 @@ function Pu(n, e) {
|
|
|
16706
16708
|
Yi(n, e, Pu);
|
|
16707
16709
|
}
|
|
16708
16710
|
function Sb(n, e, t) {
|
|
16709
|
-
var a, i, o, l =
|
|
16711
|
+
var a, i, o, l = ma({}, n.props);
|
|
16710
16712
|
for (o in e) o == "key" ? a = e[o] : o == "ref" ? i = e[o] : l[o] = e[o];
|
|
16711
16713
|
return arguments.length > 2 && (l.children = arguments.length > 3 ? rr.call(arguments, 2) : t), Ho(n.type, l, a || n.key, i || n.ref, null);
|
|
16712
16714
|
}
|
|
@@ -16742,10 +16744,10 @@ rr = gb.slice, ze = { __e: function(n, e, t, a) {
|
|
|
16742
16744
|
return n != null && n.constructor === void 0;
|
|
16743
16745
|
}, Gi = !1, Hn.prototype.setState = function(n, e) {
|
|
16744
16746
|
var t;
|
|
16745
|
-
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
16747
|
+
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ma({}, this.state), typeof n == "function" && (n = n(ma({}, t), this.props)), n && ma(t, n), n != null && this.__v && (e && this._sb.push(e), bf(this));
|
|
16746
16748
|
}, Hn.prototype.forceUpdate = function(n) {
|
|
16747
16749
|
this.__v && (this.__e = !0, n && this.__h.push(n), bf(this));
|
|
16748
|
-
}, Hn.prototype.render = ra,
|
|
16750
|
+
}, Hn.prototype.render = ra, ri = [], pb = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ds.__r = 0, mb = 0;
|
|
16749
16751
|
var Q8 = /* @__PURE__ */ Object.freeze({
|
|
16750
16752
|
__proto__: null,
|
|
16751
16753
|
Component: Hn,
|
|
@@ -16764,8 +16766,8 @@ var Q8 = /* @__PURE__ */ Object.freeze({
|
|
|
16764
16766
|
},
|
|
16765
16767
|
render: Yi,
|
|
16766
16768
|
toChildArray: ia
|
|
16767
|
-
}), Mu = /* @__PURE__ */ Ug(Q8),
|
|
16768
|
-
function
|
|
16769
|
+
}), Mu = /* @__PURE__ */ Ug(Q8), Wa, At, dd, og, Zi = 0, Tb = [], ls = [], rg = ze.__b, sg = ze.__r, lg = ze.diffed, cg = ze.__c, dg = ze.unmount;
|
|
16770
|
+
function bi(n, e) {
|
|
16769
16771
|
ze.__h && ze.__h(At, n, Zi || e), Zi = 0;
|
|
16770
16772
|
var t = At.__H || (At.__H = { __: [], __h: [] });
|
|
16771
16773
|
return n >= t.__.length && t.__.push({ __V: ls }), t.__[n];
|
|
@@ -16774,7 +16776,7 @@ function fl(n) {
|
|
|
16774
16776
|
return Zi = 1, Fu(Pb, n);
|
|
16775
16777
|
}
|
|
16776
16778
|
function Fu(n, e, t) {
|
|
16777
|
-
var a =
|
|
16779
|
+
var a = bi(Wa++, 2);
|
|
16778
16780
|
if (a.t = n, !a.__c && (a.__ = [t ? t(e) : Pb(void 0, e), function(o) {
|
|
16779
16781
|
var l = a.__N ? a.__N[0] : a.__[0], f = a.t(l, o);
|
|
16780
16782
|
l !== f && (a.__N = [f, a.__[1]], a.__c.setState({}));
|
|
@@ -16801,11 +16803,11 @@ function Fu(n, e, t) {
|
|
|
16801
16803
|
return a.__N || a.__;
|
|
16802
16804
|
}
|
|
16803
16805
|
function $u(n, e) {
|
|
16804
|
-
var t =
|
|
16806
|
+
var t = bi(Wa++, 3);
|
|
16805
16807
|
!ze.__s && Nu(t.__H, e) && (t.__ = n, t.i = e, At.__H.__h.push(t));
|
|
16806
16808
|
}
|
|
16807
16809
|
function sr(n, e) {
|
|
16808
|
-
var t =
|
|
16810
|
+
var t = bi(Wa++, 4);
|
|
16809
16811
|
!ze.__s && Nu(t.__H, e) && (t.__ = n, t.i = e, At.__h.push(t));
|
|
16810
16812
|
}
|
|
16811
16813
|
function Db(n) {
|
|
@@ -16823,7 +16825,7 @@ function Ib(n, e, t) {
|
|
|
16823
16825
|
}, t == null ? t : t.concat(n));
|
|
16824
16826
|
}
|
|
16825
16827
|
function ul(n, e) {
|
|
16826
|
-
var t =
|
|
16828
|
+
var t = bi(Wa++, 7);
|
|
16827
16829
|
return Nu(t.__H, e) ? (t.__V = n(), t.i = e, t.__h = n, t.__V) : t.__;
|
|
16828
16830
|
}
|
|
16829
16831
|
function Ab(n, e) {
|
|
@@ -16832,14 +16834,14 @@ function Ab(n, e) {
|
|
|
16832
16834
|
}, e);
|
|
16833
16835
|
}
|
|
16834
16836
|
function Rb(n) {
|
|
16835
|
-
var e = At.context[n.__c], t =
|
|
16837
|
+
var e = At.context[n.__c], t = bi(Wa++, 9);
|
|
16836
16838
|
return t.c = n, e ? (t.__ == null && (t.__ = !0, e.sub(At)), e.props.value) : n.__;
|
|
16837
16839
|
}
|
|
16838
16840
|
function Ob(n, e) {
|
|
16839
16841
|
ze.useDebugValue && ze.useDebugValue(e ? e(n) : n);
|
|
16840
16842
|
}
|
|
16841
16843
|
function K8(n) {
|
|
16842
|
-
var e =
|
|
16844
|
+
var e = bi(Wa++, 10), t = fl();
|
|
16843
16845
|
return e.__ = n, At.componentDidCatch || (At.componentDidCatch = function(a, i) {
|
|
16844
16846
|
e.__ && e.__(a, i), t[1](a);
|
|
16845
16847
|
}), [t[0], function() {
|
|
@@ -16847,7 +16849,7 @@ function K8(n) {
|
|
|
16847
16849
|
}];
|
|
16848
16850
|
}
|
|
16849
16851
|
function Lb() {
|
|
16850
|
-
var n =
|
|
16852
|
+
var n = bi(Wa++, 11);
|
|
16851
16853
|
if (!n.__) {
|
|
16852
16854
|
for (var e = At.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__;
|
|
16853
16855
|
var t = e.__m || (e.__m = [0, 0]);
|
|
@@ -16865,7 +16867,7 @@ function ex() {
|
|
|
16865
16867
|
ze.__b = function(n) {
|
|
16866
16868
|
At = null, rg && rg(n);
|
|
16867
16869
|
}, ze.__r = function(n) {
|
|
16868
|
-
sg && sg(n),
|
|
16870
|
+
sg && sg(n), Wa = 0;
|
|
16869
16871
|
var e = (At = n.__c).__H;
|
|
16870
16872
|
e && (dd === At ? (e.__h = [], At.__h = [], e.__.forEach(function(t) {
|
|
16871
16873
|
t.__N && (t.__ = t.__N), t.__V = ls, t.__N = t.i = void 0;
|
|
@@ -17010,7 +17012,7 @@ function jb(n) {
|
|
|
17010
17012
|
}
|
|
17011
17013
|
return i.displayName = "Lazy", i.__f = !0, i;
|
|
17012
17014
|
}
|
|
17013
|
-
function
|
|
17015
|
+
function Pi() {
|
|
17014
17016
|
this.u = null, this.o = null;
|
|
17015
17017
|
}
|
|
17016
17018
|
ze.unmount = function(n) {
|
|
@@ -17075,7 +17077,7 @@ function Ub(n, e) {
|
|
|
17075
17077
|
var t = Mn(ox, { __v: n, i: e });
|
|
17076
17078
|
return t.containerInfo = e, t;
|
|
17077
17079
|
}
|
|
17078
|
-
(
|
|
17080
|
+
(Pi.prototype = new Hn()).__a = function(n) {
|
|
17079
17081
|
var e = this, t = zb(e.__v), a = e.o.get(n);
|
|
17080
17082
|
return a[0]++, function(i) {
|
|
17081
17083
|
var o = function() {
|
|
@@ -17083,13 +17085,13 @@ function Ub(n, e) {
|
|
|
17083
17085
|
};
|
|
17084
17086
|
t ? t(o) : o();
|
|
17085
17087
|
};
|
|
17086
|
-
},
|
|
17088
|
+
}, Pi.prototype.render = function(n) {
|
|
17087
17089
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
17088
17090
|
var e = ia(n.children);
|
|
17089
17091
|
n.revealOrder && n.revealOrder[0] === "b" && e.reverse();
|
|
17090
17092
|
for (var t = e.length; t--; ) this.o.set(e[t], this.u = [1, 0, this.u]);
|
|
17091
17093
|
return n.children;
|
|
17092
|
-
},
|
|
17094
|
+
}, Pi.prototype.componentDidUpdate = Pi.prototype.componentDidMount = function() {
|
|
17093
17095
|
var n = this;
|
|
17094
17096
|
this.o.forEach(function(e, t) {
|
|
17095
17097
|
mg(n, t, e);
|
|
@@ -17189,7 +17191,7 @@ function o1(n, e) {
|
|
|
17189
17191
|
});
|
|
17190
17192
|
}, [n]), t;
|
|
17191
17193
|
}
|
|
17192
|
-
var hx = { useState: fl, useId: Lb, useReducer: Fu, useEffect: $u, useLayoutEffect: sr, useInsertionEffect: i1, useTransition: a1, useDeferredValue: n1, useSyncExternalStore: o1, startTransition: zu, useRef: Db, useImperativeHandle: Ib, useMemo: ul, useCallback: Ab, useContext: Rb, useDebugValue: Ob, version: "17.0.2", Children: $b, render: Wb, hydrate: qb, unmountComponentAtNode: Jb, createPortal: Ub, createElement: Mn, createContext: Hu, createFactory: Zb, cloneElement: Xb, createRef: Ou, Fragment: ra, isValidElement: Bu, findDOMNode: Qb, Component: Hn, PureComponent: Is, memo: Mb, forwardRef: Fb, flushSync: e1, unstable_batchedUpdates: Kb, StrictMode: t1, Suspense: Mo, SuspenseList:
|
|
17194
|
+
var hx = { useState: fl, useId: Lb, useReducer: Fu, useEffect: $u, useLayoutEffect: sr, useInsertionEffect: i1, useTransition: a1, useDeferredValue: n1, useSyncExternalStore: o1, startTransition: zu, useRef: Db, useImperativeHandle: Ib, useMemo: ul, useCallback: Ab, useContext: Rb, useDebugValue: Ob, version: "17.0.2", Children: $b, render: Wb, hydrate: qb, unmountComponentAtNode: Jb, createPortal: Ub, createElement: Mn, createContext: Hu, createFactory: Zb, cloneElement: Xb, createRef: Ou, Fragment: ra, isValidElement: Bu, findDOMNode: Qb, Component: Hn, PureComponent: Is, memo: Mb, forwardRef: Fb, flushSync: e1, unstable_batchedUpdates: Kb, StrictMode: t1, Suspense: Mo, SuspenseList: Pi, lazy: jb, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Yb }, px = /* @__PURE__ */ Object.freeze({
|
|
17193
17195
|
__proto__: null,
|
|
17194
17196
|
Children: $b,
|
|
17195
17197
|
Component: Hn,
|
|
@@ -17197,7 +17199,7 @@ var hx = { useState: fl, useId: Lb, useReducer: Fu, useEffect: $u, useLayoutEffe
|
|
|
17197
17199
|
PureComponent: Is,
|
|
17198
17200
|
StrictMode: t1,
|
|
17199
17201
|
Suspense: Mo,
|
|
17200
|
-
SuspenseList:
|
|
17202
|
+
SuspenseList: Pi,
|
|
17201
17203
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Yb,
|
|
17202
17204
|
cloneElement: Xb,
|
|
17203
17205
|
createContext: Hu,
|
|
@@ -17587,7 +17589,7 @@ function ju() {
|
|
|
17587
17589
|
let d = {};
|
|
17588
17590
|
if (s) {
|
|
17589
17591
|
for (let u in s)
|
|
17590
|
-
if (s[u] ===
|
|
17592
|
+
if (s[u] === Za) {
|
|
17591
17593
|
let m = [];
|
|
17592
17594
|
for (let v = c.length - 1; v >= 0; v -= 1) {
|
|
17593
17595
|
let E = c[v][u];
|
|
@@ -17620,13 +17622,13 @@ function ju() {
|
|
|
17620
17622
|
d[u] = s(c[u], u);
|
|
17621
17623
|
return d;
|
|
17622
17624
|
}
|
|
17623
|
-
function
|
|
17625
|
+
function qa(c) {
|
|
17624
17626
|
let s = {};
|
|
17625
17627
|
for (let d of c)
|
|
17626
17628
|
s[d] = !0;
|
|
17627
17629
|
return s;
|
|
17628
17630
|
}
|
|
17629
|
-
function
|
|
17631
|
+
function Ga(c) {
|
|
17630
17632
|
let s = [];
|
|
17631
17633
|
for (let d in c)
|
|
17632
17634
|
s.push(c[d]);
|
|
@@ -17645,13 +17647,13 @@ function ju() {
|
|
|
17645
17647
|
}
|
|
17646
17648
|
const co = /^on[A-Z]/;
|
|
17647
17649
|
function fo(c, s) {
|
|
17648
|
-
const d =
|
|
17650
|
+
const d = Ya(c, s);
|
|
17649
17651
|
for (let u of d)
|
|
17650
17652
|
if (!co.test(u))
|
|
17651
17653
|
return !1;
|
|
17652
17654
|
return !0;
|
|
17653
17655
|
}
|
|
17654
|
-
function
|
|
17656
|
+
function Ya(c, s) {
|
|
17655
17657
|
let d = [];
|
|
17656
17658
|
for (let u in c)
|
|
17657
17659
|
Zn.call(c, u) && (u in s || d.push(u));
|
|
@@ -17659,7 +17661,7 @@ function ju() {
|
|
|
17659
17661
|
Zn.call(s, u) && c[u] !== s[u] && d.push(u);
|
|
17660
17662
|
return d;
|
|
17661
17663
|
}
|
|
17662
|
-
function
|
|
17664
|
+
function Sa(c, s, d = {}) {
|
|
17663
17665
|
if (c === s)
|
|
17664
17666
|
return !0;
|
|
17665
17667
|
for (let u in s)
|
|
@@ -17736,10 +17738,10 @@ function ju() {
|
|
|
17736
17738
|
};
|
|
17737
17739
|
}
|
|
17738
17740
|
function ur(c, s) {
|
|
17739
|
-
let d =
|
|
17741
|
+
let d = Ci(c, s);
|
|
17740
17742
|
return d !== null && d % 7 === 0 ? d / 7 : null;
|
|
17741
17743
|
}
|
|
17742
|
-
function
|
|
17744
|
+
function Ci(c, s) {
|
|
17743
17745
|
return rt(c) === rt(s) ? Math.round(Qn(c, s)) : null;
|
|
17744
17746
|
}
|
|
17745
17747
|
function w(c) {
|
|
@@ -17840,7 +17842,7 @@ function ju() {
|
|
|
17840
17842
|
function jt(c) {
|
|
17841
17843
|
return c.toISOString().replace(/T.*$/, "");
|
|
17842
17844
|
}
|
|
17843
|
-
function
|
|
17845
|
+
function Ta(c) {
|
|
17844
17846
|
return c.toISOString().match(/^\d{4}-\d{2}/)[0];
|
|
17845
17847
|
}
|
|
17846
17848
|
function $t(c) {
|
|
@@ -18343,18 +18345,18 @@ function ju() {
|
|
|
18343
18345
|
events: le,
|
|
18344
18346
|
eventSources: le
|
|
18345
18347
|
}, Th = {
|
|
18346
|
-
headerToolbar:
|
|
18347
|
-
footerToolbar:
|
|
18348
|
-
buttonText:
|
|
18349
|
-
buttonHints:
|
|
18350
|
-
buttonIcons:
|
|
18351
|
-
dateIncrement:
|
|
18348
|
+
headerToolbar: Za,
|
|
18349
|
+
footerToolbar: Za,
|
|
18350
|
+
buttonText: Za,
|
|
18351
|
+
buttonHints: Za,
|
|
18352
|
+
buttonIcons: Za,
|
|
18353
|
+
dateIncrement: Za,
|
|
18352
18354
|
plugins: pr,
|
|
18353
18355
|
events: pr,
|
|
18354
18356
|
eventSources: pr,
|
|
18355
18357
|
resources: pr
|
|
18356
18358
|
};
|
|
18357
|
-
function
|
|
18359
|
+
function Za(c, s) {
|
|
18358
18360
|
return typeof c == "object" && typeof s == "object" && c && s ? kn(c, s) : c === s;
|
|
18359
18361
|
}
|
|
18360
18362
|
function pr(c, s) {
|
|
@@ -18410,7 +18412,7 @@ function ju() {
|
|
|
18410
18412
|
}
|
|
18411
18413
|
return null;
|
|
18412
18414
|
}
|
|
18413
|
-
function
|
|
18415
|
+
function Xa(c, s, d) {
|
|
18414
18416
|
let { dateEnv: u, pluginHooks: m, options: v } = d, { defs: E, instances: L } = c;
|
|
18415
18417
|
L = un(L, (U) => !E[U.defId].recurringDef);
|
|
18416
18418
|
for (let U in E) {
|
|
@@ -18438,14 +18440,14 @@ function ju() {
|
|
|
18438
18440
|
return c.allDay && (E = E.map(w)), E;
|
|
18439
18441
|
}
|
|
18440
18442
|
function mo(c, s, d, u, m, v) {
|
|
18441
|
-
let E =
|
|
18443
|
+
let E = Da(), L = Hl(d);
|
|
18442
18444
|
for (let U of c) {
|
|
18443
18445
|
let oe = Ah(U, s, d, u, L, m, v);
|
|
18444
18446
|
oe && gr(oe, E);
|
|
18445
18447
|
}
|
|
18446
18448
|
return E;
|
|
18447
18449
|
}
|
|
18448
|
-
function gr(c, s =
|
|
18450
|
+
function gr(c, s = Da()) {
|
|
18449
18451
|
return s.defs[c.def.defId] = c.def, c.instance && (s.instances[c.instance.instanceId] = c.instance), s;
|
|
18450
18452
|
}
|
|
18451
18453
|
function Dh(c, s) {
|
|
@@ -18454,12 +18456,12 @@ function ju() {
|
|
|
18454
18456
|
let u = c.defs[d.defId], m = br(c, (v) => sv(u, v));
|
|
18455
18457
|
return m.defs[u.defId] = u, m.instances[d.instanceId] = d, m;
|
|
18456
18458
|
}
|
|
18457
|
-
return
|
|
18459
|
+
return Da();
|
|
18458
18460
|
}
|
|
18459
18461
|
function sv(c, s) {
|
|
18460
18462
|
return !!(c.groupId && c.groupId === s.groupId);
|
|
18461
18463
|
}
|
|
18462
|
-
function
|
|
18464
|
+
function Da() {
|
|
18463
18465
|
return { defs: {}, instances: {} };
|
|
18464
18466
|
}
|
|
18465
18467
|
function yr(c, s) {
|
|
@@ -18707,7 +18709,7 @@ function ju() {
|
|
|
18707
18709
|
let d = c.querySelector("div").offsetHeight > 0;
|
|
18708
18710
|
return document.body.removeChild(c), d;
|
|
18709
18711
|
}
|
|
18710
|
-
const $l =
|
|
18712
|
+
const $l = Da();
|
|
18711
18713
|
class xv {
|
|
18712
18714
|
constructor() {
|
|
18713
18715
|
this.getKeysForEventDefs = xt(this._getKeysForEventDefs), this.splitDateSelection = xt(this._splitDateSpan), this.splitEventStore = xt(this._splitEventStore), this.splitIndividualUi = xt(this._splitIndividualUi), this.splitEventDrag = xt(this._splitInteraction), this.splitEventResize = xt(this._splitInteraction), this.eventUiBuilders = {};
|
|
@@ -18745,7 +18747,7 @@ function ju() {
|
|
|
18745
18747
|
let { defs: u, instances: m } = s, v = {};
|
|
18746
18748
|
for (let E in u)
|
|
18747
18749
|
for (let L of d[E])
|
|
18748
|
-
v[L] || (v[L] =
|
|
18750
|
+
v[L] || (v[L] = Da()), v[L].defs[E] = u[E];
|
|
18749
18751
|
for (let E in m) {
|
|
18750
18752
|
let L = m[E];
|
|
18751
18753
|
for (let U of d[L.defId])
|
|
@@ -18813,7 +18815,7 @@ function ju() {
|
|
|
18813
18815
|
function Er(c, s) {
|
|
18814
18816
|
return (c.start === null || s.start !== null && s.start >= c.start) && (c.end === null || s.end !== null && s.end <= c.end);
|
|
18815
18817
|
}
|
|
18816
|
-
function
|
|
18818
|
+
function _i(c, s) {
|
|
18817
18819
|
return (c.start === null || s >= c.start) && (c.end === null || s < c.end);
|
|
18818
18820
|
}
|
|
18819
18821
|
function Iv(c, s) {
|
|
@@ -18822,9 +18824,9 @@ function ju() {
|
|
|
18822
18824
|
function Nl(c, s, d, u) {
|
|
18823
18825
|
return {
|
|
18824
18826
|
dow: c.getUTCDay(),
|
|
18825
|
-
isDisabled: !!(u && !
|
|
18826
|
-
isOther: !!(u && !
|
|
18827
|
-
isToday: !!(s &&
|
|
18827
|
+
isDisabled: !!(u && !_i(u.activeRange, c)),
|
|
18828
|
+
isOther: !!(u && !_i(u.currentRange, c)),
|
|
18829
|
+
isToday: !!(s && _i(s, c)),
|
|
18828
18830
|
isPast: !!(d ? c < d : s && c < s.start),
|
|
18829
18831
|
isFuture: !!(d ? c > d : s && c >= s.end)
|
|
18830
18832
|
};
|
|
@@ -19213,7 +19215,7 @@ function ju() {
|
|
|
19213
19215
|
this.queuedRequest && this.execFunc(this.queuedRequest) && (this.queuedRequest = null);
|
|
19214
19216
|
}
|
|
19215
19217
|
}
|
|
19216
|
-
const
|
|
19218
|
+
const Ja = Ul({});
|
|
19217
19219
|
function Wv(c, s, d, u, m, v, E, L, U, oe, he, Oe, Se) {
|
|
19218
19220
|
return {
|
|
19219
19221
|
dateEnv: m,
|
|
@@ -19241,19 +19243,19 @@ function ju() {
|
|
|
19241
19243
|
unregisterInteractiveComponent: Se
|
|
19242
19244
|
};
|
|
19243
19245
|
}
|
|
19244
|
-
class
|
|
19246
|
+
class Qa extends n.Component {
|
|
19245
19247
|
shouldComponentUpdate(s, d) {
|
|
19246
|
-
return this.debug && console.log(
|
|
19248
|
+
return this.debug && console.log(Ya(s, this.props), Ya(d, this.state)), !Sa(this.props, s, this.propEquality) || !Sa(this.state, d, this.stateEquality);
|
|
19247
19249
|
}
|
|
19248
19250
|
// HACK for freakin' React StrictMode
|
|
19249
19251
|
safeSetState(s) {
|
|
19250
|
-
|
|
19252
|
+
Sa(this.state, Object.assign(Object.assign({}, this.state), s), this.stateEquality) || this.setState(s);
|
|
19251
19253
|
}
|
|
19252
19254
|
}
|
|
19253
|
-
|
|
19254
|
-
class Jt extends
|
|
19255
|
+
Qa.addPropsEquality = qv, Qa.addStateEquality = Gv, Qa.contextType = Ja, Qa.prototype.propEquality = {}, Qa.prototype.stateEquality = {};
|
|
19256
|
+
class Jt extends Qa {
|
|
19255
19257
|
}
|
|
19256
|
-
Jt.contextType =
|
|
19258
|
+
Jt.contextType = Ja;
|
|
19257
19259
|
function qv(c) {
|
|
19258
19260
|
let s = Object.create(this.prototype.propEquality);
|
|
19259
19261
|
Object.assign(s, c), this.prototype.propEquality = s;
|
|
@@ -19262,7 +19264,7 @@ function ju() {
|
|
|
19262
19264
|
let s = Object.create(this.prototype.stateEquality);
|
|
19263
19265
|
Object.assign(s, c), this.prototype.stateEquality = s;
|
|
19264
19266
|
}
|
|
19265
|
-
function
|
|
19267
|
+
function Ka(c, s) {
|
|
19266
19268
|
typeof c == "function" ? c(s) : c && (c.current = s);
|
|
19267
19269
|
}
|
|
19268
19270
|
class Vh extends Jt {
|
|
@@ -19333,7 +19335,7 @@ function ju() {
|
|
|
19333
19335
|
// from its previous value. decremented = -1, incremented = 1 (default).
|
|
19334
19336
|
build(s, d, u = !0) {
|
|
19335
19337
|
let { props: m } = this, v, E, L, U, oe, he;
|
|
19336
|
-
return v = this.buildValidRange(), v = this.trimHiddenDays(v), u && (s = Iv(s, v)), E = this.buildCurrentRangeInfo(s, d), L = /^(year|month|week|day)$/.test(E.unit), U = this.buildRenderRange(this.trimHiddenDays(E.range), E.unit, L), U = this.trimHiddenDays(U), oe = U, m.showNonCurrentDates || (oe = yo(oe, E.range)), oe = this.adjustActiveRange(oe), oe = yo(oe, v), he = wr(E.range, v),
|
|
19338
|
+
return v = this.buildValidRange(), v = this.trimHiddenDays(v), u && (s = Iv(s, v)), E = this.buildCurrentRangeInfo(s, d), L = /^(year|month|week|day)$/.test(E.unit), U = this.buildRenderRange(this.trimHiddenDays(E.range), E.unit, L), U = this.trimHiddenDays(U), oe = U, m.showNonCurrentDates || (oe = yo(oe, E.range)), oe = this.adjustActiveRange(oe), oe = yo(oe, v), he = wr(E.range, v), _i(U, s) || (s = U.start), {
|
|
19337
19339
|
currentDate: s,
|
|
19338
19340
|
// constraint for where prev/next operations can go and where events can be dragged/resized to.
|
|
19339
19341
|
// an object with optional start and end properties.
|
|
@@ -19485,7 +19487,7 @@ function ju() {
|
|
|
19485
19487
|
return c ? (v = w(v), v = u.add(v, m.defaultAllDayEventDuration)) : v = u.add(v, m.defaultTimedEventDuration), v;
|
|
19486
19488
|
}
|
|
19487
19489
|
function qh(c, s, d, u) {
|
|
19488
|
-
let m = Tr(c.defs, s), v =
|
|
19490
|
+
let m = Tr(c.defs, s), v = Da();
|
|
19489
19491
|
for (let E in c.defs) {
|
|
19490
19492
|
let L = c.defs[E];
|
|
19491
19493
|
v.defs[E] = Qv(L, m[E], d, u);
|
|
@@ -19524,7 +19526,7 @@ function ju() {
|
|
|
19524
19526
|
end: w(U.range.end)
|
|
19525
19527
|
}), U.range.end < U.range.start && (U.range.end = Wl(s.allDay, U.range.start, m)), U;
|
|
19526
19528
|
}
|
|
19527
|
-
class
|
|
19529
|
+
class ki {
|
|
19528
19530
|
constructor(s, d) {
|
|
19529
19531
|
this.context = s, this.internalEventSource = d;
|
|
19530
19532
|
}
|
|
@@ -19693,7 +19695,7 @@ function ju() {
|
|
|
19693
19695
|
}
|
|
19694
19696
|
get source() {
|
|
19695
19697
|
let { sourceId: s } = this._def;
|
|
19696
|
-
return s ? new
|
|
19698
|
+
return s ? new ki(this._context, this._context.getCurrentData().eventSources[s]) : null;
|
|
19697
19699
|
}
|
|
19698
19700
|
get start() {
|
|
19699
19701
|
return this._instance ? this._context.dateEnv.toDate(this._instance.range.start) : null;
|
|
@@ -19898,7 +19900,7 @@ function ju() {
|
|
|
19898
19900
|
return {
|
|
19899
19901
|
isPast: u.end < (d || s.start),
|
|
19900
19902
|
isFuture: u.start >= (d || s.end),
|
|
19901
|
-
isToday: s &&
|
|
19903
|
+
isToday: s && _i(s, u.start)
|
|
19902
19904
|
};
|
|
19903
19905
|
}
|
|
19904
19906
|
function l2(c) {
|
|
@@ -20097,11 +20099,11 @@ function ju() {
|
|
|
20097
20099
|
// Range / Duration
|
|
20098
20100
|
greatestWholeUnit(s, d) {
|
|
20099
20101
|
let u = this.diffWholeYears(s, d);
|
|
20100
|
-
return u !== null ? { unit: "year", value: u } : (u = this.diffWholeMonths(s, d), u !== null ? { unit: "month", value: u } : (u = ur(s, d), u !== null ? { unit: "week", value: u } : (u =
|
|
20102
|
+
return u !== null ? { unit: "year", value: u } : (u = this.diffWholeMonths(s, d), u !== null ? { unit: "month", value: u } : (u = ur(s, d), u !== null ? { unit: "week", value: u } : (u = Ci(s, d), u !== null ? { unit: "day", value: u } : (u = Dl(s, d), B(u) ? { unit: "hour", value: u } : (u = Il(s, d), B(u) ? { unit: "minute", value: u } : (u = Al(s, d), B(u) ? { unit: "second", value: u } : { unit: "millisecond", value: d.valueOf() - s.valueOf() }))))));
|
|
20101
20103
|
}
|
|
20102
20104
|
countDurationsBetween(s, d, u) {
|
|
20103
20105
|
let m;
|
|
20104
|
-
return u.years && (m = this.diffWholeYears(s, d), m !== null) ? m / Ue(u) : u.months && (m = this.diffWholeMonths(s, d), m !== null) ? m / tt(u) : u.days && (m =
|
|
20106
|
+
return u.years && (m = this.diffWholeYears(s, d), m !== null) ? m / Ue(u) : u.months && (m = this.diffWholeMonths(s, d), m !== null) ? m / tt(u) : u.days && (m = Ci(s, d), m !== null) ? m / Ge(u) : (d.valueOf() - s.valueOf()) / Pt(u);
|
|
20105
20107
|
}
|
|
20106
20108
|
// Start-Of
|
|
20107
20109
|
// these DON'T return zoned-dates. only UTC start-of dates
|
|
@@ -20219,15 +20221,15 @@ function ju() {
|
|
|
20219
20221
|
let bt = d[It];
|
|
20220
20222
|
if (!m && bt >= L + s.thickness)
|
|
20221
20223
|
break;
|
|
20222
|
-
let Vt = u[It], xn, ea = Ql(Vt, s.span.start, Yl),
|
|
20224
|
+
let Vt = u[It], xn, ea = Ql(Vt, s.span.start, Yl), wi = ea[0] + ea[1];
|
|
20223
20225
|
for (
|
|
20224
20226
|
;
|
|
20225
20227
|
// loop through entries that horizontally intersect
|
|
20226
|
-
(xn = Vt[
|
|
20228
|
+
(xn = Vt[wi]) && // but not past the whole entry list
|
|
20227
20229
|
xn.span.start < s.span.end;
|
|
20228
20230
|
) {
|
|
20229
|
-
let
|
|
20230
|
-
|
|
20231
|
+
let Ei = bt + xn.thickness;
|
|
20232
|
+
Ei > L && (L = Ei, he = xn, U = It, oe = wi), Ei === L && (Oe = Math.max(Oe, v[Zl(xn)] + 1)), wi += 1;
|
|
20231
20233
|
}
|
|
20232
20234
|
}
|
|
20233
20235
|
let Se = 0;
|
|
@@ -20396,7 +20398,7 @@ function ju() {
|
|
|
20396
20398
|
class Kl extends Jt {
|
|
20397
20399
|
constructor() {
|
|
20398
20400
|
super(...arguments), this.id = Ze(), this.queuedDomNodes = [], this.currentDomNodes = [], this.handleEl = (s) => {
|
|
20399
|
-
this.props.elRef &&
|
|
20401
|
+
this.props.elRef && Ka(this.props.elRef, s);
|
|
20400
20402
|
};
|
|
20401
20403
|
}
|
|
20402
20404
|
render() {
|
|
@@ -20469,7 +20471,7 @@ function ju() {
|
|
|
20469
20471
|
class Kn extends n.Component {
|
|
20470
20472
|
constructor() {
|
|
20471
20473
|
super(...arguments), this.InnerContent = F2.bind(void 0, this), this.handleRootEl = (s) => {
|
|
20472
|
-
this.rootEl = s, this.props.elRef &&
|
|
20474
|
+
this.rootEl = s, this.props.elRef && Ka(this.props.elRef, s);
|
|
20473
20475
|
};
|
|
20474
20476
|
}
|
|
20475
20477
|
render() {
|
|
@@ -20574,7 +20576,7 @@ function ju() {
|
|
|
20574
20576
|
this.timeoutId && clearTimeout(this.timeoutId);
|
|
20575
20577
|
}
|
|
20576
20578
|
}
|
|
20577
|
-
tc.contextType =
|
|
20579
|
+
tc.contextType = Ja;
|
|
20578
20580
|
function lp(c) {
|
|
20579
20581
|
let s = w(c), d = on(s, 1);
|
|
20580
20582
|
return { start: s, end: d };
|
|
@@ -20702,7 +20704,7 @@ function ju() {
|
|
|
20702
20704
|
);
|
|
20703
20705
|
}
|
|
20704
20706
|
_sliceBusinessHours(s, d, u, m, ...v) {
|
|
20705
|
-
return s ? this._sliceEventStore(
|
|
20707
|
+
return s ? this._sliceEventStore(Xa(s, Dr(d, !!u), m), {}, d, u, ...v).bg : [];
|
|
20706
20708
|
}
|
|
20707
20709
|
_sliceEventStore(s, d, u, m, ...v) {
|
|
20708
20710
|
if (s) {
|
|
@@ -20791,7 +20793,7 @@ function ju() {
|
|
|
20791
20793
|
case "NEXT":
|
|
20792
20794
|
case "CHANGE_DATE":
|
|
20793
20795
|
case "CHANGE_VIEW_TYPE":
|
|
20794
|
-
return u ?
|
|
20796
|
+
return u ? Xa(c, u.activeRange, m) : c;
|
|
20795
20797
|
case "REMOVE_EVENTS":
|
|
20796
20798
|
return lv(c, s.eventStore);
|
|
20797
20799
|
case "REMOVE_EVENT_SOURCE":
|
|
@@ -20799,7 +20801,7 @@ function ju() {
|
|
|
20799
20801
|
case "REMOVE_ALL_EVENT_SOURCES":
|
|
20800
20802
|
return br(c, (v) => !v.sourceId);
|
|
20801
20803
|
case "REMOVE_ALL_EVENTS":
|
|
20802
|
-
return
|
|
20804
|
+
return Da();
|
|
20803
20805
|
default:
|
|
20804
20806
|
return c;
|
|
20805
20807
|
}
|
|
@@ -20808,14 +20810,14 @@ function ju() {
|
|
|
20808
20810
|
if (s && // not already removed
|
|
20809
20811
|
d === s.latestFetchId) {
|
|
20810
20812
|
let E = mo(cp(m, s, v), s, v);
|
|
20811
|
-
return u && (E =
|
|
20813
|
+
return u && (E = Xa(E, u, v)), yr(fp(c, s.sourceId), E);
|
|
20812
20814
|
}
|
|
20813
20815
|
return c;
|
|
20814
20816
|
}
|
|
20815
20817
|
function G2(c, s, d, u, m) {
|
|
20816
20818
|
const { defIdMap: v, instanceIdMap: E } = J2(c);
|
|
20817
20819
|
let L = mo(cp(d, s, m), s, m, !1, v, E);
|
|
20818
|
-
return
|
|
20820
|
+
return Xa(L, u, m);
|
|
20819
20821
|
}
|
|
20820
20822
|
function cp(c, s, d) {
|
|
20821
20823
|
let u = d.options.eventDataTransform, m = s ? s.eventDataTransform : null;
|
|
@@ -20835,7 +20837,7 @@ function ju() {
|
|
|
20835
20837
|
return d;
|
|
20836
20838
|
}
|
|
20837
20839
|
function Y2(c, s, d, u) {
|
|
20838
|
-
return d && (s =
|
|
20840
|
+
return d && (s = Xa(s, d, u)), yr(c, s);
|
|
20839
20841
|
}
|
|
20840
20842
|
function Z2(c, s, d) {
|
|
20841
20843
|
let { defs: u } = c, m = Zt(c.instances, (v) => u[v.defId].allDay ? v : Object.assign(Object.assign({}, v), { range: {
|
|
@@ -20890,11 +20892,11 @@ function ju() {
|
|
|
20890
20892
|
let bt = U[It], Vt = bt.range, xn = oe[bt.defId], ea = L[bt.defId];
|
|
20891
20893
|
if (!pp(xn.constraints, Vt, he, c.businessHours, s))
|
|
20892
20894
|
return !1;
|
|
20893
|
-
let { eventOverlap:
|
|
20895
|
+
let { eventOverlap: wi } = s.options, Ei = typeof wi == "function" ? wi : null;
|
|
20894
20896
|
for (let lc in Se) {
|
|
20895
|
-
let
|
|
20896
|
-
if (wr(Vt,
|
|
20897
|
-
new tn(s, Oe[
|
|
20897
|
+
let xi = Se[lc];
|
|
20898
|
+
if (wr(Vt, xi.range) && (qe[xi.defId].overlap === !1 && v.isEvent || xn.overlap === !1 || Ei && !Ei(
|
|
20899
|
+
new tn(s, Oe[xi.defId], xi),
|
|
20898
20900
|
// still event
|
|
20899
20901
|
new tn(s, ea, bt)
|
|
20900
20902
|
)))
|
|
@@ -20902,8 +20904,8 @@ function ju() {
|
|
|
20902
20904
|
}
|
|
20903
20905
|
let Lp = m.eventStore;
|
|
20904
20906
|
for (let lc of xn.allows) {
|
|
20905
|
-
let
|
|
20906
|
-
if (cc ? dc = new tn(s, cc, L5) : dc = new tn(s, ea), !lc(Vl(
|
|
20907
|
+
let xi = Object.assign(Object.assign({}, d), { range: bt.range, allDay: ea.allDay }), cc = Lp.defs[ea.defId], L5 = Lp.instances[It], dc;
|
|
20908
|
+
if (cc ? dc = new tn(s, cc, L5) : dc = new tn(s, ea), !lc(Vl(xi, s), dc))
|
|
20907
20909
|
return !1;
|
|
20908
20910
|
}
|
|
20909
20911
|
}
|
|
@@ -20933,7 +20935,7 @@ function ju() {
|
|
|
20933
20935
|
return !0;
|
|
20934
20936
|
}
|
|
20935
20937
|
function n5(c, s, d, u, m) {
|
|
20936
|
-
return c === "businessHours" ? nc(
|
|
20938
|
+
return c === "businessHours" ? nc(Xa(u, s, m)) : typeof c == "string" ? nc(br(d, (v) => v.groupId === c)) : typeof c == "object" && c ? nc(Xa(c, s, m)) : [];
|
|
20937
20939
|
}
|
|
20938
20940
|
function nc(c) {
|
|
20939
20941
|
let { instances: s } = c, d = [];
|
|
@@ -21010,7 +21012,7 @@ function ju() {
|
|
|
21010
21012
|
class mp extends Jt {
|
|
21011
21013
|
constructor() {
|
|
21012
21014
|
super(...arguments), this.handleEl = (s) => {
|
|
21013
|
-
this.el = s,
|
|
21015
|
+
this.el = s, Ka(this.props.elRef, s);
|
|
21014
21016
|
};
|
|
21015
21017
|
}
|
|
21016
21018
|
render() {
|
|
@@ -21072,7 +21074,7 @@ function ju() {
|
|
|
21072
21074
|
return uo(this.currentMap, s, d, u);
|
|
21073
21075
|
}
|
|
21074
21076
|
getAll() {
|
|
21075
|
-
return
|
|
21077
|
+
return Ga(this.currentMap);
|
|
21076
21078
|
}
|
|
21077
21079
|
}
|
|
21078
21080
|
function gp(c) {
|
|
@@ -21217,7 +21219,7 @@ function ju() {
|
|
|
21217
21219
|
}
|
|
21218
21220
|
_handleScrollerEl(s, d) {
|
|
21219
21221
|
let u = c5(this.props.sections, d);
|
|
21220
|
-
u &&
|
|
21222
|
+
u && Ka(u.chunk.scrollerElRef, s);
|
|
21221
21223
|
}
|
|
21222
21224
|
componentDidMount() {
|
|
21223
21225
|
this.handleSizing(), this.context.addResizeHandler(this.handleSizing);
|
|
@@ -21324,7 +21326,7 @@ function ju() {
|
|
|
21324
21326
|
)
|
|
21325
21327
|
);
|
|
21326
21328
|
}
|
|
21327
|
-
const u5 = (c) => n.createElement(
|
|
21329
|
+
const u5 = (c) => n.createElement(Ja.Consumer, null, (s) => {
|
|
21328
21330
|
let { options: d } = s, u = {
|
|
21329
21331
|
isAxis: c.isAxis,
|
|
21330
21332
|
date: s.dateEnv.toDate(c.date),
|
|
@@ -21380,7 +21382,7 @@ function ju() {
|
|
|
21380
21382
|
function y5(c) {
|
|
21381
21383
|
return n.createElement("div", { className: `fc-${c}` });
|
|
21382
21384
|
}
|
|
21383
|
-
const b5 = (c) => n.createElement(
|
|
21385
|
+
const b5 = (c) => n.createElement(Ja.Consumer, null, (s) => {
|
|
21384
21386
|
let { dateEnv: d, options: u } = s, { date: m } = c, v = u.weekNumberFormat || c.defaultFormat, E = d.computeWeekNumber(m), L = d.format(m, v), U = { num: E, text: L, date: m };
|
|
21385
21387
|
return n.createElement(
|
|
21386
21388
|
Kn,
|
|
@@ -21396,7 +21398,7 @@ function ju() {
|
|
|
21396
21398
|
super(...arguments), this.state = {
|
|
21397
21399
|
titleId: ue()
|
|
21398
21400
|
}, this.handleRootEl = (s) => {
|
|
21399
|
-
this.rootEl = s, this.props.elRef &&
|
|
21401
|
+
this.rootEl = s, this.props.elRef && Ka(this.props.elRef, s);
|
|
21400
21402
|
}, this.handleDocumentMouseDown = (s) => {
|
|
21401
21403
|
const d = Ie(s);
|
|
21402
21404
|
this.rootEl.contains(d) || this.handleCloseClick();
|
|
@@ -21487,7 +21489,7 @@ function ju() {
|
|
|
21487
21489
|
isPopoverOpen: !1,
|
|
21488
21490
|
popoverId: ue()
|
|
21489
21491
|
}, this.handleLinkEl = (s) => {
|
|
21490
|
-
this.linkEl = s, this.props.elRef &&
|
|
21492
|
+
this.linkEl = s, this.props.elRef && Ka(this.props.elRef, s);
|
|
21491
21493
|
}, this.handleClick = (s) => {
|
|
21492
21494
|
let { props: d, context: u } = this, { moreLinkClick: m } = u.options, v = Dp(d).start;
|
|
21493
21495
|
function E(L) {
|
|
@@ -21514,7 +21516,7 @@ function ju() {
|
|
|
21514
21516
|
}
|
|
21515
21517
|
render() {
|
|
21516
21518
|
let { props: s, state: d } = this;
|
|
21517
|
-
return n.createElement(
|
|
21519
|
+
return n.createElement(Ja.Consumer, null, (u) => {
|
|
21518
21520
|
let { viewApi: m, options: v, calendarApi: E } = u, { moreLinkText: L } = v, { moreCnt: U } = s, oe = Dp(s), he = typeof L == "function" ? L.call(E, U) : `+${U} ${L}`, Oe = z(v.moreLinkHint, [U], he), Se = {
|
|
21519
21521
|
num: U,
|
|
21520
21522
|
shortText: `+${U}`,
|
|
@@ -21821,10 +21823,10 @@ function ju() {
|
|
|
21821
21823
|
}), this.triggerEventAdd(s)), s;
|
|
21822
21824
|
}
|
|
21823
21825
|
let u = this.getCurrentData(), m;
|
|
21824
|
-
if (d instanceof
|
|
21826
|
+
if (d instanceof ki)
|
|
21825
21827
|
m = d.internalEventSource;
|
|
21826
21828
|
else if (typeof d == "boolean")
|
|
21827
|
-
d && ([m] =
|
|
21829
|
+
d && ([m] = Ga(u.eventSources));
|
|
21828
21830
|
else if (d != null) {
|
|
21829
21831
|
let E = this.getEventSourceById(d);
|
|
21830
21832
|
if (!E)
|
|
@@ -21884,7 +21886,7 @@ function ju() {
|
|
|
21884
21886
|
getEventSources() {
|
|
21885
21887
|
let s = this.getCurrentData(), d = s.eventSources, u = [];
|
|
21886
21888
|
for (let m in d)
|
|
21887
|
-
u.push(new
|
|
21889
|
+
u.push(new ki(s, d[m]));
|
|
21888
21890
|
return u;
|
|
21889
21891
|
}
|
|
21890
21892
|
getEventSourceById(s) {
|
|
@@ -21892,18 +21894,18 @@ function ju() {
|
|
|
21892
21894
|
s = String(s);
|
|
21893
21895
|
for (let m in u)
|
|
21894
21896
|
if (u[m].publicId === s)
|
|
21895
|
-
return new
|
|
21897
|
+
return new ki(d, u[m]);
|
|
21896
21898
|
return null;
|
|
21897
21899
|
}
|
|
21898
21900
|
addEventSource(s) {
|
|
21899
21901
|
let d = this.getCurrentData();
|
|
21900
|
-
if (s instanceof
|
|
21902
|
+
if (s instanceof ki)
|
|
21901
21903
|
return d.eventSources[s.internalEventSource.sourceId] || this.dispatch({
|
|
21902
21904
|
type: "ADD_EVENT_SOURCES",
|
|
21903
21905
|
sources: [s.internalEventSource]
|
|
21904
21906
|
}), s;
|
|
21905
21907
|
let u = Rp(s, d);
|
|
21906
|
-
return u ? (this.dispatch({ type: "ADD_EVENT_SOURCES", sources: [u] }), new
|
|
21908
|
+
return u ? (this.dispatch({ type: "ADD_EVENT_SOURCES", sources: [u] }), new ki(d, u)) : null;
|
|
21907
21909
|
}
|
|
21908
21910
|
removeAllEventSources() {
|
|
21909
21911
|
this.dispatch({ type: "REMOVE_ALL_EVENT_SOURCES" });
|
|
@@ -21942,7 +21944,7 @@ function ju() {
|
|
|
21942
21944
|
s.isActive ? (d.set(s.id, s), u = !0) : d.has(s.id) && (d.delete(s.id), u = !0), u && this.set(d);
|
|
21943
21945
|
}
|
|
21944
21946
|
}
|
|
21945
|
-
return $.BASE_OPTION_DEFAULTS = ev, $.BASE_OPTION_REFINERS = K1, $.BaseComponent = Jt, $.BgEvent = m5, $.CALENDAR_LISTENER_REFINERS = tv, $.CALENDAR_OPTION_REFINERS = nv, $.COMPLEX_OPTION_COMPARATORS = Th, $.CalendarImpl = A5, $.CalendarRoot = H2, $.ContentContainer = Kn, $.CustomRenderingStore = O5, $.DateComponent = Vh, $.DateEnv = k2, $.DateProfileGenerator = Xv, $.DayCellContainer = Sp, $.DayHeader = B2, $.DaySeriesModel = j2, $.DayTableModel = U2, $.DelayedRunner = o5, $.ElementDragging = R2, $.ElementScrollController = zv, $.Emitter = jh, $.EventContainer = rc, $.EventImpl = tn, $.Interaction = T2, $.JsonRequestError = ac, $.MoreLinkContainer = k5, $.NamedTimeZoneImpl = w2, $.NowIndicatorContainer = u5, $.NowTimer = tc, $.PositionCache = Bv, $.PureComponent =
|
|
21947
|
+
return $.BASE_OPTION_DEFAULTS = ev, $.BASE_OPTION_REFINERS = K1, $.BaseComponent = Jt, $.BgEvent = m5, $.CALENDAR_LISTENER_REFINERS = tv, $.CALENDAR_OPTION_REFINERS = nv, $.COMPLEX_OPTION_COMPARATORS = Th, $.CalendarImpl = A5, $.CalendarRoot = H2, $.ContentContainer = Kn, $.CustomRenderingStore = O5, $.DateComponent = Vh, $.DateEnv = k2, $.DateProfileGenerator = Xv, $.DayCellContainer = Sp, $.DayHeader = B2, $.DaySeriesModel = j2, $.DayTableModel = U2, $.DelayedRunner = o5, $.ElementDragging = R2, $.ElementScrollController = zv, $.Emitter = jh, $.EventContainer = rc, $.EventImpl = tn, $.Interaction = T2, $.JsonRequestError = ac, $.MoreLinkContainer = k5, $.NamedTimeZoneImpl = w2, $.NowIndicatorContainer = u5, $.NowTimer = tc, $.PositionCache = Bv, $.PureComponent = Qa, $.RefMap = ic, $.RenderId = op, $.ScrollController = jl, $.ScrollResponder = Uh, $.Scroller = mp, $.SegHierarchy = E2, $.SimpleScrollGrid = xp, $.Slicer = V2, $.Splitter = xv, $.StandardEvent = d5, $.TableDateCell = rp, $.TableDowCell = sp, $.Theme = bo, $.VIEW_OPTION_REFINERS = av, $.ViewContainer = T5, $.ViewContextType = Ja, $.WeekNumberContainer = b5, $.WindowScrollController = jv, $.addDays = on, $.addDurations = ve, $.addMs = Jn, $.addWeeks = Sl, $.allowContextMenu = re, $.allowSelection = G, $.applyMutationToEventStore = qh, $.applyStyle = He, $.applyStyleProp = Te, $.arrayToHash = qa, $.asCleanDays = fe, $.asRoughMinutes = wt, $.asRoughMs = Pt, $.asRoughSeconds = mt, $.binarySearch = Ql, $.buildElAttrs = ec, $.buildEntryKey = Zl, $.buildEventApis = ql, $.buildEventRangeKey = c2, $.buildEventSourceRefiners = Op, $.buildIsoString = Ve, $.buildNavLinkAttrs = Hh, $.buildRangeApiWithTimeZone = g2, $.buildSegTimeText = Xh, $.buildViewClassNames = Ap, $.buildViewContext = Wv, $.collectFromHash = uo, $.combineEventUis = Ll, $.compareByFieldSpecs = ge, $.compareNumbers = N, $.compareObjs = Sa, $.computeEarliestSegStart = Ip, $.computeEdges = Nh, $.computeFallbackHeaderFormat = tp, $.computeInnerRect = Hv, $.computeRect = Bh, $.computeShrinkWidth = gp, $.computeVisibleDayRange = kr, $.config = O2, $.constrainPoint = _v, $.createContext = Ul, $.createDuration = R, $.createEmptyEventStore = Da, $.createEventInstance = mr, $.createEventUi = Ol, $.createFormatter = en, $.diffDates = go, $.diffDayAndTime = ho, $.diffDays = Qn, $.diffPoints = wv, $.diffWeeks = Tl, $.diffWholeDays = Ci, $.diffWholeWeeks = ur, $.disableCursor = P, $.elementClosest = V, $.elementMatches = Q, $.enableCursor = x, $.ensureElHasStyles = f, $.eventTupleToStore = gr, $.filterHash = un, $.findDirectChildren = me, $.findElements = Y, $.flexibleCompare = ce, $.flushSync = Uv, $.formatDayString = jt, $.formatIsoMonthStr = Ta, $.formatIsoTimeString = $t, $.formatWithOrdinals = z, $.getAllowYScrolling = yp, $.getCanVGrowWithinCell = Fl, $.getClippingParents = zh, $.getDateMeta = Nl, $.getDayClassNames = xr, $.getDefaultEventEnd = Wl, $.getElSeg = t2, $.getEntrySpanEnd = Yl, $.getEventTargetViaRoot = Ie, $.getInitialDate = Zv, $.getIsRtlScrollbarOnLeft = Mh, $.getNow = vo, $.getRectCenter = kv, $.getRelevantEvents = Dh, $.getScrollGridClassNames = wp, $.getScrollbarWidths = Fh, $.getSectionClassNames = Ep, $.getSectionHasLiquidHeight = oc, $.getSegAnchorAttrs = Jh, $.getSegMeta = s2, $.getSlotClassNames = Av, $.getStickyFooterScrollbar = l5, $.getStickyHeaderDates = s5, $.getUniqueDomId = ue, $.greatestDurationDenominator = ca, $.groupIntersectingEntries = x2, $.guid = Ze, $.hasBgRendering = e2, $.hasCustomDayCellContent = Tp, $.hasShrinkWidth = kp, $.hashValuesToArray = Ga, $.identity = le, $.injectStyles = l, $.interactionSettingsStore = A2, $.interactionSettingsToStore = I2, $.intersectRanges = yo, $.intersectRects = Oh, $.intersectSpans = Xl, $.isArraysEqual = Bn, $.isColPropsEqual = vp, $.isDateSelectionValid = K2, $.isDateSpansEqual = h2, $.isInt = B, $.isInteractionValid = Q2, $.isMultiDayRange = bv, $.isPropsEqual = kn, $.isPropsValid = hp, $.isValidDate = at, $.listenBySelector = ye, $.listenToHoverBySelector = Re, $.mapHash = Zt, $.memoize = xt, $.memoizeArraylike = zn, $.memoizeHashlike = da, $.memoizeObjArg = wn, $.mergeEventStores = yr, $.mergeProps = Xn, $.mergeRawOptions = iv, $.multiplyDuration = Le, $.padStart = S, $.parse = ep, $.parseBusinessHours = gv, $.parseClassNames = Rl, $.parseDragMeta = P2, $.parseEventDef = _r, $.parseEventSource = Rp, $.parseFieldSpecs = pe, $.parseInteractionSettings = D2, $.pointInsideRect = vv, $.preventContextMenu = de, $.preventDefault = be, $.preventSelection = j, $.rangeContainsMarker = _i, $.rangeContainsRange = Er, $.rangesEqual = Ph, $.rangesIntersect = wr, $.reduceCurrentDate = Yv, $.reduceEventStore = W2, $.refineEventDef = Pl, $.refineProps = po, $.removeElement = W, $.removeExact = xl, $.renderChunkContent = bp, $.renderFill = y5, $.renderMicroColGroup = Cp, $.renderScrollShim = r5, $.requestJson = i5, $.rezoneEventStoreDates = Z2, $.sanitizeShrinkWidth = _p, $.setRef = Ka, $.sliceEventStore = Gl, $.sortEventSegs = n2, $.startOfDay = w, $.subtractDurations = Me, $.translateRect = Cv, $.triggerDateSelect = Wh, $.unpromisify = Fv, $.whenTransitionDone = $e, $.wholeDivideDurations = Nn, $;
|
|
21946
21948
|
}
|
|
21947
21949
|
var _g;
|
|
21948
21950
|
function hl() {
|
|
@@ -22742,7 +22744,7 @@ function hl() {
|
|
|
22742
22744
|
}
|
|
22743
22745
|
class un {
|
|
22744
22746
|
constructor(k) {
|
|
22745
|
-
this.computeCurrentViewData = n.memoize(this._computeCurrentViewData), this.organizeRawLocales = n.memoize(o), this.buildLocale = n.memoize(l), this.buildPluginHooks = I(), this.buildDateEnv = n.memoize(Zt), this.buildTheme = n.memoize(
|
|
22747
|
+
this.computeCurrentViewData = n.memoize(this._computeCurrentViewData), this.organizeRawLocales = n.memoize(o), this.buildLocale = n.memoize(l), this.buildPluginHooks = I(), this.buildDateEnv = n.memoize(Zt), this.buildTheme = n.memoize(qa), this.parseToolbars = n.memoize(z), this.buildViewSpecs = n.memoize(Te), this.buildDateProfileGenerator = n.memoizeObjArg(Ga), this.buildViewApi = n.memoize(kn), this.buildViewUiProps = n.memoizeObjArg(Ya), this.buildEventUiBySource = n.memoize(co, n.isPropsEqual), this.buildEventUiBases = n.memoize(fo), this.parseContextBusinessHours = n.memoizeObjArg(El), this.buildTitle = n.memoize(Zn), this.emitter = new n.Emitter(), this.actionRunner = new ca(this._handleAction.bind(this), this.updateData.bind(this)), this.currentCalendarOptionsInput = {}, this.currentCalendarOptionsRefined = {}, this.currentViewOptionsInput = {}, this.currentViewOptionsRefined = {}, this.currentCalendarOptionsRefiners = {}, this.optionsForRefining = [], this.optionsForHandling = [], this.getCurrentData = () => this.data, this.dispatch = (rt) => {
|
|
22746
22748
|
this.actionRunner.request(rt);
|
|
22747
22749
|
}, this.props = k, this.actionRunner.pause();
|
|
22748
22750
|
let A = {}, H = this.computeOptionsData(k.optionOverrides, A, k.calendarApi), X = H.calendarOptions.initialView || H.pluginHooks.initialView, se = this.computeCurrentViewData(X, H, k.optionOverrides, A);
|
|
@@ -22778,7 +22780,7 @@ function hl() {
|
|
|
22778
22780
|
}, at = Object.assign(Object.assign({}, we), Ne);
|
|
22779
22781
|
for (let rt of H.pluginHooks.reducers)
|
|
22780
22782
|
Object.assign(Ne, rt(null, null, at));
|
|
22781
|
-
|
|
22783
|
+
Sa(Ne, we) && this.emitter.trigger("loading", !0), this.state = Ne, this.updateData(), this.actionRunner.resume();
|
|
22782
22784
|
}
|
|
22783
22785
|
resetOptions(k, A) {
|
|
22784
22786
|
let { props: H } = this;
|
|
@@ -22801,14 +22803,14 @@ function hl() {
|
|
|
22801
22803
|
this.data && this.data.dateProfileGenerator !== we.dateProfileGenerator && (at = we.dateProfileGenerator.build(Ne)), Ne = n.reduceCurrentDate(Ne, k), at = ye(at, k, Ne, we.dateProfileGenerator), (k.type === "PREV" || // TODO: move this logic into DateProfileGenerator
|
|
22802
22804
|
k.type === "NEXT" || // "
|
|
22803
22805
|
!n.rangeContainsMarker(at.currentRange, Ne)) && (Ne = at.currentRange.start);
|
|
22804
|
-
let rt = Ae(H.eventSources, k, at, De), Ve = n.reduceEventStore(H.eventStore, k, rt, at, De),
|
|
22806
|
+
let rt = Ae(H.eventSources, k, at, De), Ve = n.reduceEventStore(H.eventStore, k, rt, at, De), Ta = Je(rt) && !we.options.progressiveEventRendering && H.renderableEventStore || Ve, { eventUiSingleBase: $t, selectionConfig: Et } = this.buildViewUiProps(De), xt = this.buildEventUiBySource(rt), wn = this.buildEventUiBases(Ta.defs, $t, xt), zn = {
|
|
22805
22807
|
dynamicOptionOverrides: se,
|
|
22806
22808
|
currentViewType: Ce,
|
|
22807
22809
|
currentDate: Ne,
|
|
22808
22810
|
dateProfile: at,
|
|
22809
22811
|
eventSources: rt,
|
|
22810
22812
|
eventStore: Ve,
|
|
22811
|
-
renderableEventStore:
|
|
22813
|
+
renderableEventStore: Ta,
|
|
22812
22814
|
selectionConfig: Et,
|
|
22813
22815
|
eventUiBases: wn,
|
|
22814
22816
|
businessHours: this.parseContextBusinessHours(De),
|
|
@@ -22819,7 +22821,7 @@ function hl() {
|
|
|
22819
22821
|
}, da = Object.assign(Object.assign({}, De), zn);
|
|
22820
22822
|
for (let Ut of ee.pluginHooks.reducers)
|
|
22821
22823
|
Object.assign(zn, Ut(H, k, da));
|
|
22822
|
-
let En =
|
|
22824
|
+
let En = Sa(H, De), hn = Sa(zn, De);
|
|
22823
22825
|
!En && hn ? X.trigger("loading", !0) : En && !hn && X.trigger("loading", !1), this.state = zn, A.onAction && A.onAction(k);
|
|
22824
22826
|
}
|
|
22825
22827
|
updateData() {
|
|
@@ -22859,10 +22861,10 @@ function hl() {
|
|
|
22859
22861
|
Ce,
|
|
22860
22862
|
k,
|
|
22861
22863
|
A
|
|
22862
|
-
]), rt = {}, Ve = this.currentCalendarOptionsInput, jt = this.currentCalendarOptionsRefined,
|
|
22864
|
+
]), rt = {}, Ve = this.currentCalendarOptionsInput, jt = this.currentCalendarOptionsRefined, Ta = !1;
|
|
22863
22865
|
for (let $t in at)
|
|
22864
|
-
this.optionsForRefining.indexOf($t) === -1 && (at[$t] === Ve[$t] || n.COMPLEX_OPTION_COMPARATORS[$t] && $t in Ve && n.COMPLEX_OPTION_COMPARATORS[$t](Ve[$t], at[$t])) ? rt[$t] = jt[$t] : De[$t] ? (rt[$t] = De[$t](at[$t]),
|
|
22865
|
-
return
|
|
22866
|
+
this.optionsForRefining.indexOf($t) === -1 && (at[$t] === Ve[$t] || n.COMPLEX_OPTION_COMPARATORS[$t] && $t in Ve && n.COMPLEX_OPTION_COMPARATORS[$t](Ve[$t], at[$t])) ? rt[$t] = jt[$t] : De[$t] ? (rt[$t] = De[$t](at[$t]), Ta = !0) : Ne[$t] = Ve[$t];
|
|
22867
|
+
return Ta && (this.currentCalendarOptionsInput = at, this.currentCalendarOptionsRefined = rt, this.stableOptionOverrides = k, this.stableDynamicOptionOverrides = A), this.optionsForHandling.push(...this.optionsForRefining), this.optionsForRefining = [], {
|
|
22866
22868
|
rawOptions: this.currentCalendarOptionsInput,
|
|
22867
22869
|
refinedOptions: this.currentCalendarOptionsRefined,
|
|
22868
22870
|
pluginHooks: we,
|
|
@@ -22931,11 +22933,11 @@ function hl() {
|
|
|
22931
22933
|
defaultSeparator: Ce
|
|
22932
22934
|
});
|
|
22933
22935
|
}
|
|
22934
|
-
function
|
|
22936
|
+
function qa(w, k) {
|
|
22935
22937
|
let A = k.themeClasses[w.themeSystem] || W;
|
|
22936
22938
|
return new A(w);
|
|
22937
22939
|
}
|
|
22938
|
-
function
|
|
22940
|
+
function Ga(w) {
|
|
22939
22941
|
let k = w.dateProfileGeneratorClass || n.DateProfileGenerator;
|
|
22940
22942
|
return new k(w);
|
|
22941
22943
|
}
|
|
@@ -22953,7 +22955,7 @@ function hl() {
|
|
|
22953
22955
|
}
|
|
22954
22956
|
return H;
|
|
22955
22957
|
}
|
|
22956
|
-
function
|
|
22958
|
+
function Ya(w) {
|
|
22957
22959
|
let { options: k } = w;
|
|
22958
22960
|
return {
|
|
22959
22961
|
eventUiSingleBase: n.createEventUi({
|
|
@@ -22977,7 +22979,7 @@ function hl() {
|
|
|
22977
22979
|
}, w)
|
|
22978
22980
|
};
|
|
22979
22981
|
}
|
|
22980
|
-
function
|
|
22982
|
+
function Sa(w, k) {
|
|
22981
22983
|
for (let A of k.pluginHooks.isLoadingFuncs)
|
|
22982
22984
|
if (A(w))
|
|
22983
22985
|
return !0;
|
|
@@ -23313,8 +23315,8 @@ function hl() {
|
|
|
23313
23315
|
function ur(w, k) {
|
|
23314
23316
|
return n.sliceEventStore(w.eventStore, w.eventUiBases, w.dateProfile.activeRange, k ? w.nextDayThreshold : null).fg;
|
|
23315
23317
|
}
|
|
23316
|
-
const
|
|
23317
|
-
return Dn.JsonRequestError = n.JsonRequestError, Dn.Calendar = Dl, Dn.createPlugin = y, Dn.formatDate = Il, Dn.formatRange = Al, Dn.globalLocales = t, Dn.globalPlugins = Nn, Dn.sliceEvents = ur, Dn.version =
|
|
23318
|
+
const Ci = "6.1.8";
|
|
23319
|
+
return Dn.JsonRequestError = n.JsonRequestError, Dn.Calendar = Dl, Dn.createPlugin = y, Dn.formatDate = Il, Dn.formatRange = Al, Dn.globalLocales = t, Dn.globalPlugins = Nn, Dn.sliceEvents = ur, Dn.version = Ci, Dn;
|
|
23318
23320
|
}
|
|
23319
23321
|
var mx = /* @__PURE__ */ hl(), ud = {}, In = {}, q = {}, kg;
|
|
23320
23322
|
function Uu() {
|
|
@@ -24715,11 +24717,11 @@ function vx() {
|
|
|
24715
24717
|
null,
|
|
24716
24718
|
this.renderHiddenGroups(Zn, _),
|
|
24717
24719
|
ca.map((Xn) => {
|
|
24718
|
-
let { seg: un, rect: Zt } = Xn,
|
|
24720
|
+
let { seg: un, rect: Zt } = Xn, qa = un.eventRange.instance.instanceId, Ga = Pt || !!(!D[qa] && Zt), kn = P(Zt && Zt.span), co = !Pt && Zt ? this.computeSegHStyle(Zt) : { left: 0, right: 0 }, fo = !!Zt && Zt.stackForward > 0, Ya = !!Zt && Zt.span.end - Zt.span.start < ve;
|
|
24719
24721
|
return e.createElement(
|
|
24720
24722
|
"div",
|
|
24721
|
-
{ className: "fc-timegrid-event-harness" + (fo ? " fc-timegrid-event-harness-inset" : ""), key: J ||
|
|
24722
|
-
e.createElement(We, Object.assign({ seg: un, isDragging: R, isResizing: O, isDateSelecting: Z, isSelected:
|
|
24723
|
+
{ className: "fc-timegrid-event-harness" + (fo ? " fc-timegrid-event-harness-inset" : ""), key: J || qa, style: Object.assign(Object.assign({ visibility: Ga ? "" : "hidden" }, kn), co) },
|
|
24724
|
+
e.createElement(We, Object.assign({ seg: un, isDragging: R, isResizing: O, isDateSelecting: Z, isSelected: qa === Ge, isShort: Ya }, n.getSegMeta(un, wt, mt)))
|
|
24723
24725
|
);
|
|
24724
24726
|
})
|
|
24725
24727
|
);
|
|
@@ -26638,10 +26640,10 @@ function Wu() {
|
|
|
26638
26640
|
customElements.get(e) || or();
|
|
26639
26641
|
break;
|
|
26640
26642
|
case "nylas-form-card":
|
|
26641
|
-
customElements.get(e) ||
|
|
26643
|
+
customElements.get(e) || wa();
|
|
26642
26644
|
break;
|
|
26643
26645
|
case "nylas-time-window-picker":
|
|
26644
|
-
customElements.get(e) ||
|
|
26646
|
+
customElements.get(e) || Ea();
|
|
26645
26647
|
break;
|
|
26646
26648
|
case "search-icon":
|
|
26647
26649
|
customElements.get(e) || vt();
|
|
@@ -26751,7 +26753,7 @@ function pl() {
|
|
|
26751
26753
|
customElements.get(e) || customElements.define(e, qu);
|
|
26752
26754
|
break;
|
|
26753
26755
|
case "nylas-form-card":
|
|
26754
|
-
customElements.get(e) ||
|
|
26756
|
+
customElements.get(e) || wa();
|
|
26755
26757
|
break;
|
|
26756
26758
|
}
|
|
26757
26759
|
});
|
|
@@ -27164,7 +27166,7 @@ const Bx = ".sc-warning-icon-h{display:flex}", c1 = te(class extends ne {
|
|
|
27164
27166
|
width: [1],
|
|
27165
27167
|
height: [1]
|
|
27166
27168
|
}]);
|
|
27167
|
-
function
|
|
27169
|
+
function vi() {
|
|
27168
27170
|
if (typeof customElements > "u")
|
|
27169
27171
|
return;
|
|
27170
27172
|
["warning-icon"].forEach((e) => {
|
|
@@ -27239,7 +27241,7 @@ const zx = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
|
|
|
27239
27241
|
this.notifications = this.notifications.filter((t) => t.id !== e);
|
|
27240
27242
|
}
|
|
27241
27243
|
render() {
|
|
27242
|
-
return r(Pe, { key: "54d50ed0063714575ec6815e59f972c98ce58533" }, r(
|
|
27244
|
+
return r(Pe, { key: "54d50ed0063714575ec6815e59f972c98ce58533" }, r(ga, { key: "ad526ed3f38f423fae88b18b442349380e5e7066" }, this.notifications.map((e) => r("div", { class: `notif ${e.type}`, key: e.id }, r("div", { class: "content" }, r("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && r("warning-icon", null)), r("span", { class: "message" }, r("span", { class: "title" }, e.title), e.description && r("span", { class: "description" }, e.description))), r("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, r("close-icon", null)))), r("slot", { key: "08406e75bea26072bdc4526fcfbb19ad0760c80d" })));
|
|
27243
27245
|
}
|
|
27244
27246
|
get host() {
|
|
27245
27247
|
return this;
|
|
@@ -27264,7 +27266,7 @@ function lo() {
|
|
|
27264
27266
|
customElements.get(e) || Xt();
|
|
27265
27267
|
break;
|
|
27266
27268
|
case "warning-icon":
|
|
27267
|
-
customElements.get(e) ||
|
|
27269
|
+
customElements.get(e) || vi();
|
|
27268
27270
|
break;
|
|
27269
27271
|
}
|
|
27270
27272
|
});
|
|
@@ -28099,10 +28101,10 @@ function vl() {
|
|
|
28099
28101
|
customElements.get(e) || ot();
|
|
28100
28102
|
break;
|
|
28101
28103
|
case "clock-icon":
|
|
28102
|
-
customElements.get(e) ||
|
|
28104
|
+
customElements.get(e) || Ua();
|
|
28103
28105
|
break;
|
|
28104
28106
|
case "edit-icon":
|
|
28105
|
-
customElements.get(e) ||
|
|
28107
|
+
customElements.get(e) || hi();
|
|
28106
28108
|
break;
|
|
28107
28109
|
case "info-icon":
|
|
28108
28110
|
customElements.get(e) || st();
|
|
@@ -28360,7 +28362,7 @@ var yt;
|
|
|
28360
28362
|
})(yt || (yt = {}));
|
|
28361
28363
|
function tS({ id: n, formState: e, activeTab: t }, a) {
|
|
28362
28364
|
return r(
|
|
28363
|
-
|
|
28365
|
+
ga,
|
|
28364
28366
|
null,
|
|
28365
28367
|
t === yt.CalendarView && r(
|
|
28366
28368
|
"div",
|
|
@@ -28399,7 +28401,7 @@ function tS({ id: n, formState: e, activeTab: t }, a) {
|
|
|
28399
28401
|
{ key: `communications-${n}`, class: { hide: t !== yt.Communications } },
|
|
28400
28402
|
r("nylas-disable-emails", { name: "disable-emails", exportparts: "nde, nde__toggle-label, nde_toggle-input, nde_toggle-slider" }),
|
|
28401
28403
|
!e?.disableEmails && r(
|
|
28402
|
-
|
|
28404
|
+
ga,
|
|
28403
28405
|
null,
|
|
28404
28406
|
r("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
|
|
28405
28407
|
r("nylas-reminder-emails", { name: "reminder-overrides", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" })
|
|
@@ -28614,7 +28616,7 @@ const th = te(class extends ne {
|
|
|
28614
28616
|
componentDidLoad() {
|
|
28615
28617
|
b("[nylas-editor-tabs-group]", "componentDidLoad"), this.enableUserFeedback && !mu() && vu({
|
|
28616
28618
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
28617
|
-
release:
|
|
28619
|
+
release: ka,
|
|
28618
28620
|
integrations: (t) => [
|
|
28619
28621
|
...t.filter((a) => !1),
|
|
28620
28622
|
xu({
|
|
@@ -28652,7 +28654,7 @@ const th = te(class extends ne {
|
|
|
28652
28654
|
captureContext: {
|
|
28653
28655
|
tags: {
|
|
28654
28656
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
28655
|
-
"nylas-web-element-version":
|
|
28657
|
+
"nylas-web-element-version": ka
|
|
28656
28658
|
},
|
|
28657
28659
|
extra: {
|
|
28658
28660
|
configId: this.selectedConfiguration?.id,
|
|
@@ -29092,7 +29094,7 @@ function p1() {
|
|
|
29092
29094
|
customElements.get(e) || ot();
|
|
29093
29095
|
break;
|
|
29094
29096
|
case "clock-icon":
|
|
29095
|
-
customElements.get(e) ||
|
|
29097
|
+
customElements.get(e) || Ua();
|
|
29096
29098
|
break;
|
|
29097
29099
|
case "close-icon":
|
|
29098
29100
|
customElements.get(e) || Xt();
|
|
@@ -29104,7 +29106,7 @@ function p1() {
|
|
|
29104
29106
|
customElements.get(e) || jo();
|
|
29105
29107
|
break;
|
|
29106
29108
|
case "edit-icon":
|
|
29107
|
-
customElements.get(e) ||
|
|
29109
|
+
customElements.get(e) || hi();
|
|
29108
29110
|
break;
|
|
29109
29111
|
case "envelope-fill-icon":
|
|
29110
29112
|
customElements.get(e) || Ns();
|
|
@@ -29218,7 +29220,7 @@ function p1() {
|
|
|
29218
29220
|
customElements.get(e) || lr();
|
|
29219
29221
|
break;
|
|
29220
29222
|
case "nylas-form-card":
|
|
29221
|
-
customElements.get(e) ||
|
|
29223
|
+
customElements.get(e) || wa();
|
|
29222
29224
|
break;
|
|
29223
29225
|
case "nylas-min-booking-notice":
|
|
29224
29226
|
customElements.get(e) || ml();
|
|
@@ -29245,7 +29247,7 @@ function p1() {
|
|
|
29245
29247
|
customElements.get(e) || Cl();
|
|
29246
29248
|
break;
|
|
29247
29249
|
case "nylas-time-window-picker":
|
|
29248
|
-
customElements.get(e) ||
|
|
29250
|
+
customElements.get(e) || Ea();
|
|
29249
29251
|
break;
|
|
29250
29252
|
case "paintbrush-fill-icon":
|
|
29251
29253
|
customElements.get(e) || _l();
|
|
@@ -29272,19 +29274,19 @@ function p1() {
|
|
|
29272
29274
|
customElements.get(e) || Yn();
|
|
29273
29275
|
break;
|
|
29274
29276
|
case "toggle-switch":
|
|
29275
|
-
customElements.get(e) ||
|
|
29277
|
+
customElements.get(e) || Va();
|
|
29276
29278
|
break;
|
|
29277
29279
|
case "tooltip-component":
|
|
29278
29280
|
customElements.get(e) || lt();
|
|
29279
29281
|
break;
|
|
29280
29282
|
case "translate-icon":
|
|
29281
|
-
customElements.get(e) ||
|
|
29283
|
+
customElements.get(e) || pi();
|
|
29282
29284
|
break;
|
|
29283
29285
|
case "trash-icon":
|
|
29284
29286
|
customElements.get(e) || dr();
|
|
29285
29287
|
break;
|
|
29286
29288
|
case "warning-icon":
|
|
29287
|
-
customElements.get(e) ||
|
|
29289
|
+
customElements.get(e) || vi();
|
|
29288
29290
|
break;
|
|
29289
29291
|
case "zoom-icon":
|
|
29290
29292
|
customElements.get(e) || so();
|
|
@@ -30127,7 +30129,7 @@ function ch() {
|
|
|
30127
30129
|
customElements.get(e) || st();
|
|
30128
30130
|
break;
|
|
30129
30131
|
case "toggle-switch":
|
|
30130
|
-
customElements.get(e) ||
|
|
30132
|
+
customElements.get(e) || Va();
|
|
30131
30133
|
break;
|
|
30132
30134
|
case "tooltip-component":
|
|
30133
30135
|
customElements.get(e) || lt();
|
|
@@ -30459,7 +30461,7 @@ const uh = te(class extends ne {
|
|
|
30459
30461
|
return null;
|
|
30460
30462
|
if (!e.startTime || !e.endTime)
|
|
30461
30463
|
return h.t("nylasSpecificTimeAvailabilityPicker.errors.timesRequired");
|
|
30462
|
-
const a =
|
|
30464
|
+
const a = Aa(e.startTime), i = Aa(e.endTime);
|
|
30463
30465
|
return a >= i ? h.t("nylasSpecificTimeAvailabilityPicker.errors.startTimeBeforeEndTime") : null;
|
|
30464
30466
|
}
|
|
30465
30467
|
validateTimezone() {
|
|
@@ -30609,7 +30611,7 @@ function wl() {
|
|
|
30609
30611
|
customElements.get(e) || zt();
|
|
30610
30612
|
break;
|
|
30611
30613
|
case "calendar-icon":
|
|
30612
|
-
customElements.get(e) ||
|
|
30614
|
+
customElements.get(e) || ja();
|
|
30613
30615
|
break;
|
|
30614
30616
|
case "chevron-icon":
|
|
30615
30617
|
customElements.get(e) || ot();
|
|
@@ -30630,7 +30632,7 @@ function wl() {
|
|
|
30630
30632
|
customElements.get(e) || qn();
|
|
30631
30633
|
break;
|
|
30632
30634
|
case "nylas-time-window-picker":
|
|
30633
|
-
customElements.get(e) ||
|
|
30635
|
+
customElements.get(e) || Ea();
|
|
30634
30636
|
break;
|
|
30635
30637
|
case "search-icon":
|
|
30636
30638
|
customElements.get(e) || vt();
|
|
@@ -30871,7 +30873,7 @@ function ph() {
|
|
|
30871
30873
|
customElements.get(e) || zt();
|
|
30872
30874
|
break;
|
|
30873
30875
|
case "calendar-icon":
|
|
30874
|
-
customElements.get(e) ||
|
|
30876
|
+
customElements.get(e) || ja();
|
|
30875
30877
|
break;
|
|
30876
30878
|
case "chevron-icon":
|
|
30877
30879
|
customElements.get(e) || ot();
|
|
@@ -30898,7 +30900,7 @@ function ph() {
|
|
|
30898
30900
|
customElements.get(e) || wl();
|
|
30899
30901
|
break;
|
|
30900
30902
|
case "nylas-time-window-picker":
|
|
30901
|
-
customElements.get(e) ||
|
|
30903
|
+
customElements.get(e) || Ea();
|
|
30902
30904
|
break;
|
|
30903
30905
|
case "search-icon":
|
|
30904
30906
|
customElements.get(e) || vt();
|
|
@@ -30907,7 +30909,7 @@ function ph() {
|
|
|
30907
30909
|
customElements.get(e) || _t();
|
|
30908
30910
|
break;
|
|
30909
30911
|
case "toggle-switch":
|
|
30910
|
-
customElements.get(e) ||
|
|
30912
|
+
customElements.get(e) || Va();
|
|
30911
30913
|
break;
|
|
30912
30914
|
case "tooltip-component":
|
|
30913
30915
|
customElements.get(e) || lt();
|
|
@@ -31135,7 +31137,7 @@ var ct;
|
|
|
31135
31137
|
})(ct || (ct = {}));
|
|
31136
31138
|
function wS({ id: n, formState: e, activeTab: t, enableNotetaker: a, themeConfig: i }, o) {
|
|
31137
31139
|
return r(
|
|
31138
|
-
|
|
31140
|
+
ga,
|
|
31139
31141
|
null,
|
|
31140
31142
|
r(
|
|
31141
31143
|
"div",
|
|
@@ -31198,7 +31200,7 @@ function wS({ id: n, formState: e, activeTab: t, enableNotetaker: a, themeConfig
|
|
|
31198
31200
|
{ key: `communications-${n}`, class: { hide: t !== ct.Communications } },
|
|
31199
31201
|
r("nylas-disable-emails", { name: "disable-emails", themeConfig: i, exportparts: "nde, nde__toggle-label, nde_toggle-input, nde_toggle-slider" }),
|
|
31200
31202
|
!e?.disableEmails && r(
|
|
31201
|
-
|
|
31203
|
+
ga,
|
|
31202
31204
|
null,
|
|
31203
31205
|
r("nylas-confirmation-email", { name: "confirmation-email-template", themeConfig: i, exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
|
|
31204
31206
|
r("nylas-reminder-emails", { name: "reminder-overrides", themeConfig: i, exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nrt, nrt__number-dropdown, nrt__number-dropdown-button, nrt__number-dropdown-content, nrt__period-dropdown, nrt__period-dropdown-button, nrt__period-dropdown-content, nrt__time-period-selector" })
|
|
@@ -31466,7 +31468,7 @@ const bh = te(class extends ne {
|
|
|
31466
31468
|
componentDidLoad() {
|
|
31467
31469
|
b("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !mu() && vu({
|
|
31468
31470
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
31469
|
-
release:
|
|
31471
|
+
release: ka,
|
|
31470
31472
|
integrations: (t) => [
|
|
31471
31473
|
...t.filter((a) => !1),
|
|
31472
31474
|
xu({
|
|
@@ -31509,7 +31511,7 @@ const bh = te(class extends ne {
|
|
|
31509
31511
|
captureContext: {
|
|
31510
31512
|
tags: {
|
|
31511
31513
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
31512
|
-
"nylas-web-element-version":
|
|
31514
|
+
"nylas-web-element-version": ka,
|
|
31513
31515
|
"nylas-config-id": this.selectedConfiguration?.id,
|
|
31514
31516
|
"nylas-slug": this.selectedConfiguration?.slug,
|
|
31515
31517
|
"host-url": window.location.href
|
|
@@ -31865,7 +31867,7 @@ function g1() {
|
|
|
31865
31867
|
customElements.get(e) || Ms();
|
|
31866
31868
|
break;
|
|
31867
31869
|
case "calendar-icon":
|
|
31868
|
-
customElements.get(e) ||
|
|
31870
|
+
customElements.get(e) || ja();
|
|
31869
31871
|
break;
|
|
31870
31872
|
case "calendar-info-icon":
|
|
31871
31873
|
customElements.get(e) || Ef();
|
|
@@ -31883,7 +31885,7 @@ function g1() {
|
|
|
31883
31885
|
customElements.get(e) || ot();
|
|
31884
31886
|
break;
|
|
31885
31887
|
case "clock-icon":
|
|
31886
|
-
customElements.get(e) ||
|
|
31888
|
+
customElements.get(e) || Ua();
|
|
31887
31889
|
break;
|
|
31888
31890
|
case "close-icon":
|
|
31889
31891
|
customElements.get(e) || Xt();
|
|
@@ -31895,7 +31897,7 @@ function g1() {
|
|
|
31895
31897
|
customElements.get(e) || jo();
|
|
31896
31898
|
break;
|
|
31897
31899
|
case "edit-icon":
|
|
31898
|
-
customElements.get(e) ||
|
|
31900
|
+
customElements.get(e) || hi();
|
|
31899
31901
|
break;
|
|
31900
31902
|
case "envelope-fill-icon":
|
|
31901
31903
|
customElements.get(e) || Ns();
|
|
@@ -32018,7 +32020,7 @@ function g1() {
|
|
|
32018
32020
|
customElements.get(e) || lr();
|
|
32019
32021
|
break;
|
|
32020
32022
|
case "nylas-form-card":
|
|
32021
|
-
customElements.get(e) ||
|
|
32023
|
+
customElements.get(e) || wa();
|
|
32022
32024
|
break;
|
|
32023
32025
|
case "nylas-limit-future-bookings":
|
|
32024
32026
|
customElements.get(e) || oh();
|
|
@@ -32063,7 +32065,7 @@ function g1() {
|
|
|
32063
32065
|
customElements.get(e) || wl();
|
|
32064
32066
|
break;
|
|
32065
32067
|
case "nylas-time-window-picker":
|
|
32066
|
-
customElements.get(e) ||
|
|
32068
|
+
customElements.get(e) || Ea();
|
|
32067
32069
|
break;
|
|
32068
32070
|
case "nylas-timeslot-interval":
|
|
32069
32071
|
customElements.get(e) || gh();
|
|
@@ -32099,19 +32101,19 @@ function g1() {
|
|
|
32099
32101
|
customElements.get(e) || Yn();
|
|
32100
32102
|
break;
|
|
32101
32103
|
case "toggle-switch":
|
|
32102
|
-
customElements.get(e) ||
|
|
32104
|
+
customElements.get(e) || Va();
|
|
32103
32105
|
break;
|
|
32104
32106
|
case "tooltip-component":
|
|
32105
32107
|
customElements.get(e) || lt();
|
|
32106
32108
|
break;
|
|
32107
32109
|
case "translate-icon":
|
|
32108
|
-
customElements.get(e) ||
|
|
32110
|
+
customElements.get(e) || pi();
|
|
32109
32111
|
break;
|
|
32110
32112
|
case "trash-icon":
|
|
32111
32113
|
customElements.get(e) || dr();
|
|
32112
32114
|
break;
|
|
32113
32115
|
case "warning-icon":
|
|
32114
|
-
customElements.get(e) ||
|
|
32116
|
+
customElements.get(e) || vi();
|
|
32115
32117
|
break;
|
|
32116
32118
|
case "zoom-icon":
|
|
32117
32119
|
customElements.get(e) || so();
|
|
@@ -32119,7 +32121,7 @@ function g1() {
|
|
|
32119
32121
|
}
|
|
32120
32122
|
});
|
|
32121
32123
|
}
|
|
32122
|
-
const SS = bh, TS = g1, DS = Vu, IS = Wu, AS = Su, RS = cl, OS = Tu, LS = nr, PS = nh, HS = ah, MS = Du, FS = ar, $S = qu, NS = pl, BS = Iu, zS = ir, jS = Au, US = dl, VS = Ru, WS = or, qS = Gu, GS = lr, YS = If, ZS =
|
|
32124
|
+
const SS = bh, TS = g1, DS = Vu, IS = Wu, AS = Su, RS = cl, OS = Tu, LS = nr, PS = nh, HS = ah, MS = Du, FS = ar, $S = qu, NS = pl, BS = Iu, zS = ir, jS = Au, US = dl, VS = Ru, WS = or, qS = Gu, GS = lr, YS = If, ZS = wa, XS = ih, JS = oh, QS = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:16px;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}@media screen and (max-width: 768px){.configurations .table-container{min-height:624px}}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem;text-align:right}.configurations .table-container table .actions button-component.edit-button{min-width:98px}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .actions select-dropdown.last::part(sd_dropdown-content){bottom:54px}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:var(--nylas-base-0);width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto;color:inherit}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}.card-wrapper{position:absolute;top:0;left:0;height:calc(100% + 4rem);width:-webkit-fill-available;width:-moz-available;width:fill-available;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.card-wrapper{justify-content:start;height:100%}}.card-modal{background:var(--nylas-base-0);display:flex;flex-direction:column;font-family:var(--nylas-font-family);background-color:var(--nylas-base-0);color:var(--nylas-base-900);border-radius:var(--nylas-border-radius-3x);padding:32px;width:562px;box-shadow:0px 1px 4px rgba(0, 0, 0, 0.1), 0px 3px 6px rgba(0, 0, 0, 0.06)}@media screen and (max-width: 768px){.card-modal{width:auto;border-radius:0px}}.description.title-desc{margin-bottom:2rem}.description p{margin:0;font-size:18px;color:var(--nylas-base-600)}.footer{margin-top:1rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:0.5rem;box-sizing:border-box;background-color:var(--nylas-base-25);width:100%;border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x)}.close-button{width:100%;display:flex;justify-content:flex-end}.close-button button-component button{padding:0;height:auto}.close-button button-component button:hover{background-color:transparent !important}button-component{--dot-color:var(--nylas-base-700)}';
|
|
32123
32125
|
var KS = function(n, e, t, a) {
|
|
32124
32126
|
var i = arguments.length, o = i < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, t) : a, l;
|
|
32125
32127
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -32429,7 +32431,7 @@ function y1() {
|
|
|
32429
32431
|
customElements.get(e) || zt();
|
|
32430
32432
|
break;
|
|
32431
32433
|
case "calendar-icon":
|
|
32432
|
-
customElements.get(e) ||
|
|
32434
|
+
customElements.get(e) || ja();
|
|
32433
32435
|
break;
|
|
32434
32436
|
case "chevron-icon":
|
|
32435
32437
|
customElements.get(e) || ot();
|
|
@@ -32444,7 +32446,7 @@ function y1() {
|
|
|
32444
32446
|
customElements.get(e) || Tf();
|
|
32445
32447
|
break;
|
|
32446
32448
|
case "edit-icon":
|
|
32447
|
-
customElements.get(e) ||
|
|
32449
|
+
customElements.get(e) || hi();
|
|
32448
32450
|
break;
|
|
32449
32451
|
case "eye-icon":
|
|
32450
32452
|
customElements.get(e) || Uo();
|
|
@@ -32462,7 +32464,7 @@ function y1() {
|
|
|
32462
32464
|
customElements.get(e) || _t();
|
|
32463
32465
|
break;
|
|
32464
32466
|
case "warning-icon":
|
|
32465
|
-
customElements.get(e) ||
|
|
32467
|
+
customElements.get(e) || vi();
|
|
32466
32468
|
break;
|
|
32467
32469
|
}
|
|
32468
32470
|
});
|
|
@@ -32482,7 +32484,7 @@ var aT = function(n, e, t, a) {
|
|
|
32482
32484
|
};
|
|
32483
32485
|
const Ch = te(class extends ne {
|
|
32484
32486
|
constructor() {
|
|
32485
|
-
super(), this.__registerHost(), this.__attachShadow(), this.timezoneChanged = K(this, "timezoneChanged", 7), this.languageChanged = K(this, "languageChanged", 7), this.selectedTimezone = this.bookingInfo?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage =
|
|
32487
|
+
super(), this.__registerHost(), this.__attachShadow(), this.timezoneChanged = K(this, "timezoneChanged", 7), this.languageChanged = K(this, "languageChanged", 7), this.selectedTimezone = this.bookingInfo?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = pa(this.bookingInfo?.language) || ps() || Lt.en, this.searchPlaceholder = h.t("search");
|
|
32486
32488
|
}
|
|
32487
32489
|
themeConfigChanged(e) {
|
|
32488
32490
|
this.applyThemeConfig(e);
|
|
@@ -32511,7 +32513,7 @@ const Ch = te(class extends ne {
|
|
|
32511
32513
|
this.selectedTimezone = e, this.timezoneChanged.emit(e);
|
|
32512
32514
|
}
|
|
32513
32515
|
changeLanguage(e) {
|
|
32514
|
-
const t =
|
|
32516
|
+
const t = pa(e) || Lt.en;
|
|
32515
32517
|
this.selectedLanguage = t, h.changeLanguage(t), this.searchPlaceholder = h.t("search"), this.languageChanged.emit(t);
|
|
32516
32518
|
}
|
|
32517
32519
|
nylasFormDropdownChangedHandler(e) {
|
|
@@ -32536,8 +32538,8 @@ const Ch = te(class extends ne {
|
|
|
32536
32538
|
labelHTML: this.getTimezoneLabelHTML(a),
|
|
32537
32539
|
label: Ln[a],
|
|
32538
32540
|
value: a
|
|
32539
|
-
})), t = Object.keys(
|
|
32540
|
-
label:
|
|
32541
|
+
})), t = Object.keys(Ba).map((a) => ({
|
|
32542
|
+
label: Ba[a],
|
|
32541
32543
|
value: a
|
|
32542
32544
|
}));
|
|
32543
32545
|
return r(Pe, { key: "878ad0576a298f76e1d76383c7ea395690abc500" }, r("div", { key: "f717bdec7d6f0252ad9fbc373e56b4d6cbf6843a", class: "nylas-locale-switch", part: "nls" }, r("div", { key: "e218d237a8848e76ce1559a814da4380ebca23a0", class: {
|
|
@@ -32614,7 +32616,7 @@ function b1() {
|
|
|
32614
32616
|
customElements.get(e) || _t();
|
|
32615
32617
|
break;
|
|
32616
32618
|
case "translate-icon":
|
|
32617
|
-
customElements.get(e) ||
|
|
32619
|
+
customElements.get(e) || pi();
|
|
32618
32620
|
break;
|
|
32619
32621
|
}
|
|
32620
32622
|
});
|
|
@@ -33618,7 +33620,7 @@ class zT {
|
|
|
33618
33620
|
});
|
|
33619
33621
|
}
|
|
33620
33622
|
}
|
|
33621
|
-
const Bd = "pkce", zd = "grant",
|
|
33623
|
+
const Bd = "pkce", zd = "grant", ni = "user", jT = (n) => {
|
|
33622
33624
|
if (typeof globalThis.btoa == "function" && typeof TextEncoder < "u") {
|
|
33623
33625
|
const e = new TextEncoder().encode(n);
|
|
33624
33626
|
let t = "";
|
|
@@ -33682,32 +33684,32 @@ class Ig {
|
|
|
33682
33684
|
if (t)
|
|
33683
33685
|
if (t.find((i) => i.sub === e.sub)) {
|
|
33684
33686
|
const i = t.map((o) => (o.sub === e.sub && (o = e), o));
|
|
33685
|
-
this.Storage.set(
|
|
33687
|
+
this.Storage.set(ni, i);
|
|
33686
33688
|
} else {
|
|
33687
33689
|
const i = [...t, e];
|
|
33688
|
-
this.Storage.set(
|
|
33690
|
+
this.Storage.set(ni, i);
|
|
33689
33691
|
}
|
|
33690
33692
|
else
|
|
33691
|
-
this.Storage.set(
|
|
33693
|
+
this.Storage.set(ni, [e]);
|
|
33692
33694
|
}
|
|
33693
33695
|
// getUserToken is used to retrieve a specific IDToken from storage
|
|
33694
33696
|
async getUserToken(e = "") {
|
|
33695
|
-
const t = await this.Storage.get(
|
|
33697
|
+
const t = await this.Storage.get(ni);
|
|
33696
33698
|
return t ? e === "" ? t[0] : t.find((i) => i.sub === e) : null;
|
|
33697
33699
|
}
|
|
33698
33700
|
// getUserTokens is used to retrieve all IDTokens from storage
|
|
33699
33701
|
async getUserTokens() {
|
|
33700
|
-
const e = await this.Storage.get(
|
|
33702
|
+
const e = await this.Storage.get(ni);
|
|
33701
33703
|
return e || null;
|
|
33702
33704
|
}
|
|
33703
33705
|
// removeUserTokens is used to remove all IDTokens from storage
|
|
33704
33706
|
removeUserTokens() {
|
|
33705
|
-
this.Storage.remove(
|
|
33707
|
+
this.Storage.remove(ni);
|
|
33706
33708
|
}
|
|
33707
33709
|
// removeUserToken is used to remove a specific IDToken from storage
|
|
33708
33710
|
async removeUserToken(e) {
|
|
33709
33711
|
const a = (await this.getUserTokens())?.filter((i) => i.sub !== e);
|
|
33710
|
-
this.Storage.set(
|
|
33712
|
+
this.Storage.set(ni, a);
|
|
33711
33713
|
}
|
|
33712
33714
|
async clearSession() {
|
|
33713
33715
|
(await this.getUserTokens())?.forEach((t) => {
|
|
@@ -34728,7 +34730,7 @@ function Hg({ currentUser: n, calendars: e, selectedEventType: t }) {
|
|
|
34728
34730
|
case Ft.max_availability:
|
|
34729
34731
|
case Ft.max_fairness:
|
|
34730
34732
|
return r(
|
|
34731
|
-
|
|
34733
|
+
ga,
|
|
34732
34734
|
null,
|
|
34733
34735
|
r(
|
|
34734
34736
|
"nylas-event-info",
|
|
@@ -34746,7 +34748,7 @@ function Hg({ currentUser: n, calendars: e, selectedEventType: t }) {
|
|
|
34746
34748
|
);
|
|
34747
34749
|
case Ft.collective:
|
|
34748
34750
|
return r(
|
|
34749
|
-
|
|
34751
|
+
ga,
|
|
34750
34752
|
null,
|
|
34751
34753
|
r(
|
|
34752
34754
|
"nylas-event-info",
|
|
@@ -34765,7 +34767,7 @@ function Hg({ currentUser: n, calendars: e, selectedEventType: t }) {
|
|
|
34765
34767
|
);
|
|
34766
34768
|
case Ft.group:
|
|
34767
34769
|
return r(
|
|
34768
|
-
|
|
34770
|
+
ga,
|
|
34769
34771
|
null,
|
|
34770
34772
|
r(
|
|
34771
34773
|
"nylas-event-info",
|
|
@@ -34795,7 +34797,7 @@ const hD = ':host{display:flex;flex-direction:column;overflow:visible;border-rad
|
|
|
34795
34797
|
max_fairness: !0,
|
|
34796
34798
|
max_availability: !0,
|
|
34797
34799
|
group: !0
|
|
34798
|
-
}, this.automaticComponentRegistration = !0, this.selectedLanguage = this.defaultLanguage || Lt.en, this.langVersion = 0, this.version =
|
|
34800
|
+
}, this.automaticComponentRegistration = !0, this.selectedLanguage = this.defaultLanguage || Lt.en, this.langVersion = 0, this.version = ka, this.handleSchedulerConfigCloseClicked = (e) => {
|
|
34799
34801
|
const t = this.schedulerConfigCloseClicked.emit(this.host);
|
|
34800
34802
|
"schedulerConfigCloseClicked" in this.eventOverrides && this.eventOverrides.schedulerConfigCloseClicked(t, this.nylasSchedulerConfigConnector), t.defaultPrevented || (localStorage.removeItem("grant"), localStorage.removeItem("user"), window.location.reload());
|
|
34801
34803
|
}, this.authenticationUrl = async (e) => {
|
|
@@ -34804,7 +34806,7 @@ const hD = ':host{display:flex;flex-direction:column;overflow:visible;border-rad
|
|
|
34804
34806
|
return bn(`[nylas-scheduler-editor] ${t}`), this.authError = t, this.nylasSchedulerEditorError.emit({
|
|
34805
34807
|
notification: {
|
|
34806
34808
|
id: "auth-not-initialized",
|
|
34807
|
-
type:
|
|
34809
|
+
type: Li.Error,
|
|
34808
34810
|
title: "Authentication Error",
|
|
34809
34811
|
category: it.Auth,
|
|
34810
34812
|
description: t,
|
|
@@ -34820,7 +34822,7 @@ const hD = ':host{display:flex;flex-direction:column;overflow:visible;border-rad
|
|
|
34820
34822
|
this.authError = a, this.nylasSchedulerEditorError.emit({
|
|
34821
34823
|
notification: {
|
|
34822
34824
|
id: "auth-url-failed",
|
|
34823
|
-
type:
|
|
34825
|
+
type: Li.Error,
|
|
34824
34826
|
title: "Authentication Error",
|
|
34825
34827
|
category: it.Auth,
|
|
34826
34828
|
description: a,
|
|
@@ -34835,7 +34837,7 @@ const hD = ':host{display:flex;flex-direction:column;overflow:visible;border-rad
|
|
|
34835
34837
|
return bn(`[nylas-scheduler-editor] ${a}`), this.authError = a, this.nylasSchedulerEditorError.emit({
|
|
34836
34838
|
notification: {
|
|
34837
34839
|
id: "auth-url-exception",
|
|
34838
|
-
type:
|
|
34840
|
+
type: Li.Error,
|
|
34839
34841
|
title: "Authentication Error",
|
|
34840
34842
|
category: it.Auth,
|
|
34841
34843
|
description: a,
|
|
@@ -34889,7 +34891,7 @@ const hD = ':host{display:flex;flex-direction:column;overflow:visible;border-rad
|
|
|
34889
34891
|
this.stores?.schedulerConfig?.set("currentUser", null), this.authError = "Authentication failed. Please try again.", this.nylasSchedulerEditorError.emit({
|
|
34890
34892
|
notification: {
|
|
34891
34893
|
id: "auth-login-failed",
|
|
34892
|
-
type:
|
|
34894
|
+
type: Li.Error,
|
|
34893
34895
|
title: "Authentication Error",
|
|
34894
34896
|
category: it.Auth,
|
|
34895
34897
|
description: "Authentication failed. Please try again.",
|
|
@@ -34925,7 +34927,7 @@ const hD = ':host{display:flex;flex-direction:column;overflow:visible;border-rad
|
|
|
34925
34927
|
}), this.baseProvider?.componentWillLoad(this.nylasSchedulerConfigConnector), this.applyThemeConfig(this.themeConfig);
|
|
34926
34928
|
}
|
|
34927
34929
|
async componentDidLoad() {
|
|
34928
|
-
b("[nylas-scheduler-editor] componentDidLoad"), await this.baseProvider?.componentDidLoad(), this.updateLocalization(this.localization), this.version =
|
|
34930
|
+
b("[nylas-scheduler-editor] componentDidLoad"), await this.baseProvider?.componentDidLoad(), this.updateLocalization(this.localization), this.version = ka;
|
|
34929
34931
|
}
|
|
34930
34932
|
async componentDisconnected() {
|
|
34931
34933
|
await this.baseProvider?.componentDisconnected();
|
|
@@ -34987,8 +34989,8 @@ const hD = ':host{display:flex;flex-direction:column;overflow:visible;border-rad
|
|
|
34987
34989
|
}
|
|
34988
34990
|
}
|
|
34989
34991
|
render() {
|
|
34990
|
-
const e = this.host.querySelector('[slot="custom-page-style-inputs"]'), t = this.stores?.schedulerConfig?.state.selectedConfiguration?.id, a = Object.keys(
|
|
34991
|
-
label:
|
|
34992
|
+
const e = this.host.querySelector('[slot="custom-page-style-inputs"]'), t = this.stores?.schedulerConfig?.state.selectedConfiguration?.id, a = Object.keys(Ba).map((o) => ({
|
|
34993
|
+
label: Ba[o],
|
|
34992
34994
|
value: o
|
|
34993
34995
|
})), i = this.stores?.schedulerConfig?.state.selectedEventType === Ft.group || this.stores?.schedulerConfig?.state.selectedConfiguration?.type === Ft.group;
|
|
34994
34996
|
return b(`[nylas-scheduler-editor] render mode: ${this.mode}`), r(Pe, { key: "bd34e24975197c26bf6e08430c8434c40441c367" }, r("div", { key: "5c1bb57eb7dbd13f879dcbe7de251e6d8687c470", class: "scheduler-editor-header", part: "nse__header" }, r("h1", { key: "ecf284b9c4c39129233c977b978d8069e448367e", class: "scheduler-editor-title", part: "nse__title" }, r("calendar-icon", { key: "44b73dbff4441d72ceda5281f6bf07bfb2134dae", width: "18", height: "18" }), h.t("schedulerEditorTitle"), r("tooltip-component", { key: "bc20294846164811db22d185e52f50f848d59bd5" }, r("info-icon", { key: "22955828856eae5f4f7e5d7d51e8e73f11f9805d", slot: "tooltip-icon" }), r("span", { key: "9178f588fa8ffe60865b8c6c632ec4dafd91a00d", slot: "tooltip-content" }, this.version))), r("div", { key: "a67874094ff69226349d1ee0274e27da0da38ad6", class: {
|
|
@@ -35080,7 +35082,7 @@ function pD() {
|
|
|
35080
35082
|
customElements.get(e) || Ms();
|
|
35081
35083
|
break;
|
|
35082
35084
|
case "calendar-icon":
|
|
35083
|
-
customElements.get(e) ||
|
|
35085
|
+
customElements.get(e) || ja();
|
|
35084
35086
|
break;
|
|
35085
35087
|
case "calendar-info-icon":
|
|
35086
35088
|
customElements.get(e) || Ef();
|
|
@@ -35101,7 +35103,7 @@ function pD() {
|
|
|
35101
35103
|
customElements.get(e) || ot();
|
|
35102
35104
|
break;
|
|
35103
35105
|
case "clock-icon":
|
|
35104
|
-
customElements.get(e) ||
|
|
35106
|
+
customElements.get(e) || Ua();
|
|
35105
35107
|
break;
|
|
35106
35108
|
case "close-icon":
|
|
35107
35109
|
customElements.get(e) || Xt();
|
|
@@ -35116,7 +35118,7 @@ function pD() {
|
|
|
35116
35118
|
customElements.get(e) || jo();
|
|
35117
35119
|
break;
|
|
35118
35120
|
case "edit-icon":
|
|
35119
|
-
customElements.get(e) ||
|
|
35121
|
+
customElements.get(e) || hi();
|
|
35120
35122
|
break;
|
|
35121
35123
|
case "envelope-fill-icon":
|
|
35122
35124
|
customElements.get(e) || Ns();
|
|
@@ -35260,7 +35262,7 @@ function pD() {
|
|
|
35260
35262
|
customElements.get(e) || lr();
|
|
35261
35263
|
break;
|
|
35262
35264
|
case "nylas-form-card":
|
|
35263
|
-
customElements.get(e) ||
|
|
35265
|
+
customElements.get(e) || wa();
|
|
35264
35266
|
break;
|
|
35265
35267
|
case "nylas-limit-future-bookings":
|
|
35266
35268
|
customElements.get(e) || oh();
|
|
@@ -35311,7 +35313,7 @@ function pD() {
|
|
|
35311
35313
|
customElements.get(e) || wl();
|
|
35312
35314
|
break;
|
|
35313
35315
|
case "nylas-time-window-picker":
|
|
35314
|
-
customElements.get(e) ||
|
|
35316
|
+
customElements.get(e) || Ea();
|
|
35315
35317
|
break;
|
|
35316
35318
|
case "nylas-timeslot-interval":
|
|
35317
35319
|
customElements.get(e) || gh();
|
|
@@ -35347,19 +35349,19 @@ function pD() {
|
|
|
35347
35349
|
customElements.get(e) || Yn();
|
|
35348
35350
|
break;
|
|
35349
35351
|
case "toggle-switch":
|
|
35350
|
-
customElements.get(e) ||
|
|
35352
|
+
customElements.get(e) || Va();
|
|
35351
35353
|
break;
|
|
35352
35354
|
case "tooltip-component":
|
|
35353
35355
|
customElements.get(e) || lt();
|
|
35354
35356
|
break;
|
|
35355
35357
|
case "translate-icon":
|
|
35356
|
-
customElements.get(e) ||
|
|
35358
|
+
customElements.get(e) || pi();
|
|
35357
35359
|
break;
|
|
35358
35360
|
case "trash-icon":
|
|
35359
35361
|
customElements.get(e) || dr();
|
|
35360
35362
|
break;
|
|
35361
35363
|
case "warning-icon":
|
|
35362
|
-
customElements.get(e) ||
|
|
35364
|
+
customElements.get(e) || vi();
|
|
35363
35365
|
break;
|
|
35364
35366
|
case "zoom-icon":
|
|
35365
35367
|
customElements.get(e) || so();
|
|
@@ -35417,7 +35419,7 @@ const wh = te(class extends ne {
|
|
|
35417
35419
|
this.startTime = "", this.endTime = "";
|
|
35418
35420
|
return;
|
|
35419
35421
|
}
|
|
35420
|
-
const e =
|
|
35422
|
+
const e = Na[this.selectedLanguage || "en"], t = new Intl.DateTimeFormat(e, {
|
|
35421
35423
|
hour: "2-digit",
|
|
35422
35424
|
minute: "2-digit",
|
|
35423
35425
|
timeZone: this.selectedTimezone,
|
|
@@ -35431,7 +35433,7 @@ const wh = te(class extends ne {
|
|
|
35431
35433
|
this.host.style.setProperty(`${t}`, a);
|
|
35432
35434
|
}
|
|
35433
35435
|
render() {
|
|
35434
|
-
return r(Pe, { key: "9610116de1cf94e0204fd691318e916f534d07a8", part: "nsec" }, r("div", { key: "670e4099f18113f3b8ea9e0b6c76a408e26c713c", class: "event-card", part: "nsec__card" }, r("div", { key: "b4806f52b760b1839224f2344b5524e33fe75cf9", class: "calendar-icon", part: "nsec__icon" }, r("calendar-icon", { key: "bbc6c139aeac8f868fc60bffcebcf6d72ca38b18" })), r("div", { key: "a6b42bc8fba2ed5416216b51a523a6c6d0b34b19", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? wf(Ng(this.selectedTimeslot?.start_time, this.selectedTimezone,
|
|
35436
|
+
return r(Pe, { key: "9610116de1cf94e0204fd691318e916f534d07a8", part: "nsec" }, r("div", { key: "670e4099f18113f3b8ea9e0b6c76a408e26c713c", class: "event-card", part: "nsec__card" }, r("div", { key: "b4806f52b760b1839224f2344b5524e33fe75cf9", class: "calendar-icon", part: "nsec__icon" }, r("calendar-icon", { key: "bbc6c139aeac8f868fc60bffcebcf6d72ca38b18" })), r("div", { key: "a6b42bc8fba2ed5416216b51a523a6c6d0b34b19", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? wf(Ng(this.selectedTimeslot?.start_time, this.selectedTimezone, Na[this.selectedLanguage || "en"])) : "-"), r("div", { key: "6863f6b7ceb0a75cc3767e03df10cf837a8506d8", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), r("div", { key: "81a459e1c205e8a27eebb23e6ff6d9ab4d067d5d", class: "event-timezone", part: "nsec__timezone" }, r("globe-icon", { key: "074bf2f15c33da5697112d4498f6b8e2d092d3b9" }), Ln[this.selectedTimezone]));
|
|
35435
35437
|
}
|
|
35436
35438
|
get host() {
|
|
35437
35439
|
return this;
|
|
@@ -35491,7 +35493,7 @@ function x1() {
|
|
|
35491
35493
|
customElements.get(e) || customElements.define(e, wh);
|
|
35492
35494
|
break;
|
|
35493
35495
|
case "calendar-icon":
|
|
35494
|
-
customElements.get(e) ||
|
|
35496
|
+
customElements.get(e) || ja();
|
|
35495
35497
|
break;
|
|
35496
35498
|
case "globe-icon":
|
|
35497
35499
|
customElements.get(e) || _n();
|
|
@@ -35585,7 +35587,7 @@ const Eh = te(class extends ne {
|
|
|
35585
35587
|
this.validateTimeslotError.emit({ error: e, type: t });
|
|
35586
35588
|
}
|
|
35587
35589
|
getTimeSlotLabel(e) {
|
|
35588
|
-
const t =
|
|
35590
|
+
const t = Na[this.selectedLanguage || "en"], a = new Intl.DateTimeFormat(t, {
|
|
35589
35591
|
hour: "2-digit",
|
|
35590
35592
|
minute: "2-digit",
|
|
35591
35593
|
timeZone: this.selectedTimezone,
|
|
@@ -35594,7 +35596,7 @@ const Eh = te(class extends ne {
|
|
|
35594
35596
|
return `${a.format(e.start_time)} - ${a.format(e.end_time)}`;
|
|
35595
35597
|
}
|
|
35596
35598
|
render() {
|
|
35597
|
-
const e =
|
|
35599
|
+
const e = Na[this.selectedLanguage || "en"];
|
|
35598
35600
|
if (this.isLoading)
|
|
35599
35601
|
return r(Pe, null, r("div", { class: "loading" }, new Array(6).fill(0).map((a, i) => r("div", { class: "timeslot-skeleton", style: { animationDelay: `${i * 20}ms` } }))));
|
|
35600
35602
|
if (this.availability && this.availability.length === 0)
|
|
@@ -35818,7 +35820,7 @@ class ED {
|
|
|
35818
35820
|
"Content-Type": "application/json",
|
|
35819
35821
|
Origin: window.location.origin,
|
|
35820
35822
|
"X-Source": "nylas-scheduling",
|
|
35821
|
-
"X-Nylas-Web-Elements-Version":
|
|
35823
|
+
"X-Nylas-Web-Elements-Version": ka,
|
|
35822
35824
|
...this.clientId && { "X-Nylas-Application-Public-Id": this.clientId },
|
|
35823
35825
|
...i
|
|
35824
35826
|
},
|
|
@@ -35860,7 +35862,7 @@ class ED {
|
|
|
35860
35862
|
this.schedulerStore.set("selectedTimezone", e);
|
|
35861
35863
|
}
|
|
35862
35864
|
selectLanguage(e) {
|
|
35863
|
-
const t =
|
|
35865
|
+
const t = pa(e) || Lt.en;
|
|
35864
35866
|
this.schedulerStore.set("selectedLanguage", t), h.changeLanguage(t);
|
|
35865
35867
|
}
|
|
35866
35868
|
async toggleAdditionalData(e) {
|
|
@@ -36267,10 +36269,10 @@ function xD(n = {}) {
|
|
|
36267
36269
|
}
|
|
36268
36270
|
}, t;
|
|
36269
36271
|
}
|
|
36270
|
-
const
|
|
36272
|
+
const ai = (n, e) => {
|
|
36271
36273
|
const t = n.isLoading, a = n.showNotification, i = n.nylasBranding, o = n.version;
|
|
36272
36274
|
return r(
|
|
36273
|
-
|
|
36275
|
+
ga,
|
|
36274
36276
|
null,
|
|
36275
36277
|
a && r("nylas-notification", null),
|
|
36276
36278
|
t && r(
|
|
@@ -36312,17 +36314,17 @@ const ni = (n, e) => {
|
|
|
36312
36314
|
);
|
|
36313
36315
|
}, Fg = (n, e) => r("div", { class: "message-banner" }, e), SD = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto;border-left:none}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer .powered-by-nylas{display:flex;align-items:center;text-decoration:none;color:var(--nylas-base-500)}.footer .powered-by-nylas:hover{color:var(--nylas-base-800)}.footer svg{fill:var(--nylas-base-500)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}.language-feedback-container{width:auto;position:absolute;bottom:4px;left:16px;display:flex;gap:8px;align-items:center}.language-feedback-container button-component#report-issue{position:initial}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', $g = { title: h.t("genericErrorTitle"), category: it.Component }, T1 = te(class extends ne {
|
|
36314
36316
|
constructor() {
|
|
36315
|
-
super(), this.__registerHost(), this.__attachShadow(), this.init = K(this, "init", 7), this.schedulerWillLoad = K(this, "schedulerWillLoad", 7), this.schedulerDidLoad = K(this, "schedulerDidLoad", 7), this.nylasSchedulerError = K(this, "nylasSchedulerError", 7), this.nylasSchedulerInfo = K(this, "nylasSchedulerInfo", 7), this.configSettingsLoaded = K(this, "configSettingsLoaded", 7), this.bookingRefExtracted = K(this, "bookingRefExtracted", 7), this.bookedEventInfo = K(this, "bookedEventInfo", 7), this.initDeferred = !1, this.mode = "app", this.schedulerApiUrl = "https://api.us.nylas.com", this.nylasBranding = !0, this.eventOverrides = {}, this.showNotification = !0, this.enableUserFeedback = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = `${h.t("noDateSelected")}`, this.language = navigator.language, this.showFeedbackModal = !1, this.bookingInfoConfirmed = null, this.version =
|
|
36317
|
+
super(), this.__registerHost(), this.__attachShadow(), this.init = K(this, "init", 7), this.schedulerWillLoad = K(this, "schedulerWillLoad", 7), this.schedulerDidLoad = K(this, "schedulerDidLoad", 7), this.nylasSchedulerError = K(this, "nylasSchedulerError", 7), this.nylasSchedulerInfo = K(this, "nylasSchedulerInfo", 7), this.configSettingsLoaded = K(this, "configSettingsLoaded", 7), this.bookingRefExtracted = K(this, "bookingRefExtracted", 7), this.bookedEventInfo = K(this, "bookedEventInfo", 7), this.initDeferred = !1, this.mode = "app", this.schedulerApiUrl = "https://api.us.nylas.com", this.nylasBranding = !0, this.eventOverrides = {}, this.showNotification = !0, this.enableUserFeedback = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = `${h.t("noDateSelected")}`, this.language = navigator.language, this.showFeedbackModal = !1, this.bookingInfoConfirmed = null, this.version = ka;
|
|
36316
36318
|
}
|
|
36317
36319
|
connectedCallback() {
|
|
36318
36320
|
b("[nylas-scheduler] connectedCallback");
|
|
36319
36321
|
}
|
|
36320
36322
|
async componentWillLoad() {
|
|
36321
|
-
b("[nylas-scheduler] Component will load"), this.version =
|
|
36323
|
+
b("[nylas-scheduler] Component will load"), this.version = ka, await new Promise((p) => setTimeout(p, 0)), this.enableUserFeedback && !mu() && vu({
|
|
36322
36324
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
36323
36325
|
release: this.version,
|
|
36324
|
-
integrations: (
|
|
36325
|
-
...
|
|
36326
|
+
integrations: (p) => [
|
|
36327
|
+
...p.filter((g) => !1),
|
|
36326
36328
|
xu({
|
|
36327
36329
|
colorScheme: "system",
|
|
36328
36330
|
autoInject: !1
|
|
@@ -36334,51 +36336,51 @@ const ni = (n, e) => {
|
|
|
36334
36336
|
const e = this.schedulerWillLoad.emit(this.host);
|
|
36335
36337
|
if ("schedulerWillLoad" in this.eventOverrides && (await this.eventOverrides.schedulerWillLoad(e, this.nylasSchedulerConnector), e.defaultPrevented))
|
|
36336
36338
|
return;
|
|
36337
|
-
const
|
|
36338
|
-
this.language =
|
|
36339
|
+
const t = new URLSearchParams(window.location.search), i = pa(t.get("lang")) || pa(t.get("language")) || this.defaultLanguage || pa(this.bookingInfo?.language) || this.defaultSchedulerState?.selectedLanguage || ps() || Lt.en;
|
|
36340
|
+
this.language = i, h.changeLanguage(i), this.stores = {
|
|
36339
36341
|
scheduler: xD({
|
|
36340
36342
|
bookingInfo: this.bookingInfo,
|
|
36341
36343
|
nylasBranding: this.nylasBranding,
|
|
36342
36344
|
themeConfig: this.themeConfig,
|
|
36343
36345
|
hour12: this.hour12,
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
+
...this.defaultSchedulerState,
|
|
36347
|
+
selectedLanguage: i
|
|
36346
36348
|
})
|
|
36347
36349
|
}, this.baseProvider = new k1(this.host, this.stores, this.automaticComponentRegistration, this.eventOverrides), this.refConfigId = this.configurationId;
|
|
36348
|
-
let
|
|
36350
|
+
let o;
|
|
36349
36351
|
try {
|
|
36350
36352
|
if (this.rescheduleBookingRef) {
|
|
36351
|
-
const [g, y
|
|
36352
|
-
this.refConfigId =
|
|
36353
|
+
const [p, g, y] = Ti(this.rescheduleBookingRef);
|
|
36354
|
+
this.refConfigId = p, this.stores.scheduler.set("rescheduleBookingId", g), o = this.bookingRefExtracted.emit({ configurationId: p, bookingId: g });
|
|
36353
36355
|
} else if (this.cancelBookingRef) {
|
|
36354
|
-
const [g, y
|
|
36355
|
-
this.refConfigId =
|
|
36356
|
+
const [p, g, y] = Ti(this.cancelBookingRef);
|
|
36357
|
+
this.refConfigId = p, this.stores.scheduler.set("cancelBookingId", g), o = this.bookingRefExtracted.emit({ configurationId: p, bookingId: g });
|
|
36356
36358
|
} else if (this.organizerConfirmationBookingRef) {
|
|
36357
|
-
const [g, y
|
|
36358
|
-
this.refConfigId =
|
|
36359
|
+
const [p, g, y] = Ti(this.organizerConfirmationBookingRef);
|
|
36360
|
+
this.refConfigId = p, this.stores.scheduler.set("organizerConfirmationBookingId", g), this.stores.scheduler.set("organizerConfirmationSalt", y), o = this.bookingRefExtracted.emit({ configurationId: p, bookingId: g, salt: y });
|
|
36359
36361
|
}
|
|
36360
|
-
} catch (
|
|
36361
|
-
b(
|
|
36362
|
-
const
|
|
36363
|
-
this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject({ message: `Invalid booking reference: ${
|
|
36362
|
+
} catch (p) {
|
|
36363
|
+
b(p);
|
|
36364
|
+
const g = this.rescheduleBookingRef || this.cancelBookingRef || this.organizerConfirmationBookingRef;
|
|
36365
|
+
this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject({ message: `Invalid booking reference: ${g}` }) }, host: this.host });
|
|
36364
36366
|
}
|
|
36365
|
-
if (this.applyThemeConfig(this.themeConfig), "bookingRefExtracted" in this.eventOverrides && (await this.eventOverrides.bookingRefExtracted(
|
|
36367
|
+
if (this.applyThemeConfig(this.themeConfig), "bookingRefExtracted" in this.eventOverrides && (await this.eventOverrides.bookingRefExtracted(o, this.nylasSchedulerConnector), o.defaultPrevented))
|
|
36366
36368
|
return;
|
|
36367
36369
|
if (!this.checkIfSessionIdOrConfigIdExists(!1)) {
|
|
36368
36370
|
this.initDeferred = !0;
|
|
36369
36371
|
return;
|
|
36370
36372
|
}
|
|
36371
|
-
const
|
|
36373
|
+
const l = this.baseProvider?.getStore("scheduler");
|
|
36372
36374
|
this.nylasSchedulerConnector = new Mg({
|
|
36373
36375
|
schedulerAPIURL: this.schedulerApiUrl,
|
|
36374
36376
|
sessionId: this.sessionId,
|
|
36375
36377
|
configId: this.refConfigId,
|
|
36376
36378
|
slug: this.slug,
|
|
36377
36379
|
clientId: this.clientId,
|
|
36378
|
-
nylasSchedulerStore:
|
|
36380
|
+
nylasSchedulerStore: l
|
|
36379
36381
|
});
|
|
36380
|
-
const
|
|
36381
|
-
"init" in this.eventOverrides && (await this.eventOverrides.init(
|
|
36382
|
+
const f = this.init.emit(this.host);
|
|
36383
|
+
"init" in this.eventOverrides && (await this.eventOverrides.init(f, this.nylasSchedulerConnector), f.defaultPrevented) || this.baseProvider?.componentWillLoad(this.nylasSchedulerConnector);
|
|
36382
36384
|
}
|
|
36383
36385
|
async componentDidLoad() {
|
|
36384
36386
|
if (this.initDeferred)
|
|
@@ -36485,13 +36487,13 @@ const ni = (n, e) => {
|
|
|
36485
36487
|
this.baseProvider?.componentDisconnected();
|
|
36486
36488
|
}
|
|
36487
36489
|
bookingInfoChanged(e) {
|
|
36488
|
-
this.stores?.scheduler.set("bookingInfo", e), e?.language && !this.defaultLanguage && this.stores?.scheduler.set("selectedLanguage",
|
|
36490
|
+
this.stores?.scheduler.set("bookingInfo", e), e?.language && !this.defaultLanguage && this.stores?.scheduler.set("selectedLanguage", pa(e.language) || Lt.en);
|
|
36489
36491
|
}
|
|
36490
36492
|
rescheduleBookingRefChanged(e) {
|
|
36491
36493
|
let t;
|
|
36492
36494
|
if (e)
|
|
36493
36495
|
try {
|
|
36494
|
-
const [a, i] =
|
|
36496
|
+
const [a, i] = Ti(e);
|
|
36495
36497
|
this.stores?.scheduler.set("rescheduleBookingId", i), this.refConfigId = a, this.nylasSchedulerConnector?.scheduler.setConfigId(a), t = this.bookingRefExtracted.emit({ configurationId: a, bookingId: i });
|
|
36496
36498
|
} catch (a) {
|
|
36497
36499
|
b(a), this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject({ message: `Invalid booking reference: ${e}` }) }, host: this.host });
|
|
@@ -36502,7 +36504,7 @@ const ni = (n, e) => {
|
|
|
36502
36504
|
let t;
|
|
36503
36505
|
if (e)
|
|
36504
36506
|
try {
|
|
36505
|
-
const [a, i] =
|
|
36507
|
+
const [a, i] = Ti(e);
|
|
36506
36508
|
this.stores?.scheduler.set("cancelBookingId", i), this.refConfigId = a, this.nylasSchedulerConnector?.scheduler.setConfigId(a), t = this.bookingRefExtracted.emit({ configurationId: a, bookingId: i });
|
|
36507
36509
|
} catch (a) {
|
|
36508
36510
|
b(a), this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject({ message: `Invalid booking reference: ${e}` }) }, host: this.host });
|
|
@@ -36513,7 +36515,7 @@ const ni = (n, e) => {
|
|
|
36513
36515
|
let t;
|
|
36514
36516
|
if (e)
|
|
36515
36517
|
try {
|
|
36516
|
-
const [a, i, o] =
|
|
36518
|
+
const [a, i, o] = Ti(e);
|
|
36517
36519
|
this.stores?.scheduler.set("organizerConfirmationBookingId", i), this.stores?.scheduler.set("organizerConfirmationSalt", o), this.refConfigId = a, this.nylasSchedulerConnector?.scheduler.setConfigId(a), t = this.bookingRefExtracted.emit({ configurationId: a, bookingId: i, salt: o });
|
|
36518
36520
|
} catch (a) {
|
|
36519
36521
|
b(a), this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject({ message: `Invalid booking reference: ${e}` }) }, host: this.host });
|
|
@@ -36532,8 +36534,8 @@ const ni = (n, e) => {
|
|
|
36532
36534
|
this.baseProvider?.getStore("scheduler")?.set("themeConfig", e), this.applyThemeConfig(e);
|
|
36533
36535
|
}
|
|
36534
36536
|
languageChanged(e) {
|
|
36535
|
-
const t = e.detail;
|
|
36536
|
-
this.language = t, h.changeLanguage(t);
|
|
36537
|
+
const t = pa(e.detail) || Lt.en;
|
|
36538
|
+
this.language = t, h.changeLanguage(t), this.stores?.scheduler?.set("selectedLanguage", t);
|
|
36537
36539
|
}
|
|
36538
36540
|
async registerComponentHandler(e) {
|
|
36539
36541
|
this.baseProvider?.registerComponent(e.detail);
|
|
@@ -36586,11 +36588,11 @@ const ni = (n, e) => {
|
|
|
36586
36588
|
}
|
|
36587
36589
|
getSelectedLanguage() {
|
|
36588
36590
|
const e = this.stores?.scheduler.get("selectedLanguage") || this.defaultLanguage || ps() || Lt.en;
|
|
36589
|
-
return
|
|
36591
|
+
return pa(e) || Lt.en;
|
|
36590
36592
|
}
|
|
36591
36593
|
getSelectedDateLocale() {
|
|
36592
36594
|
const e = this.getSelectedLanguage();
|
|
36593
|
-
return
|
|
36595
|
+
return Na[e] || e || Na[Lt.en];
|
|
36594
36596
|
}
|
|
36595
36597
|
formatSelectedDateLabel(e) {
|
|
36596
36598
|
return wf(e.toLocaleDateString(this.getSelectedDateLocale(), { dateStyle: "full" }));
|
|
@@ -36727,18 +36729,18 @@ const ni = (n, e) => {
|
|
|
36727
36729
|
}
|
|
36728
36730
|
}
|
|
36729
36731
|
render() {
|
|
36730
|
-
const e = this.mode === "app", t = this.baseProvider?.getStore("scheduler"), a = t?.get("eventInfo"), i = t?.get("showBookingForm"), o = t?.get("cancelledEventInfo"), l = t?.get("cancelBookingId"), f = t?.get("selectedTimeslot"), p = t?.get("rescheduleBookingId"), g = t?.get("organizerConfirmationBookingId"), y = t?.get("rejectBookingId"), C = t?.get("confirmedEventInfo"), I = t?.get("nylasBranding") || this.nylasBranding, T = gn(t?.get("selectedDate")), F = t?.get("configSettings")?.scheduler?.confirmation_redirect_url, W = Object.keys(
|
|
36731
|
-
label:
|
|
36732
|
+
const e = this.mode === "app", t = this.baseProvider?.getStore("scheduler"), a = t?.get("eventInfo"), i = t?.get("showBookingForm"), o = t?.get("cancelledEventInfo"), l = t?.get("cancelBookingId"), f = t?.get("selectedTimeslot"), p = t?.get("rescheduleBookingId"), g = t?.get("organizerConfirmationBookingId"), y = t?.get("rejectBookingId"), C = t?.get("confirmedEventInfo"), I = t?.get("nylasBranding") || this.nylasBranding, T = gn(t?.get("selectedDate")), F = t?.get("configSettings")?.scheduler?.confirmation_redirect_url, W = Object.keys(Ba).map((Y) => ({
|
|
36733
|
+
label: Ba[Y],
|
|
36732
36734
|
value: Y
|
|
36733
36735
|
})), V = this.getSelectedLanguage(), Q = T ? this.formatSelectedDateLabel(T) : `${h.t("noDateSelected")}`;
|
|
36734
36736
|
if (e && (l || y) && !o)
|
|
36735
|
-
return r(Pe, null, r(
|
|
36737
|
+
return r(Pe, null, r(ai, { version: this.version, nylasBranding: I, isLoading: this.isLoading, showNotification: this.showNotification }, r("div", { class: "cancel-flow-page", part: "cancel-flow-page" }, r("nylas-cancel-booking-form", { selectedTimeslot: f, cancelBookingId: l, rejectBookingId: y, exportparts: "ncbf, ncbf__icon, ncbf__title, ncbf__description, ncbf__reason-textarea, ncbf__button-cta, ncbf__button-outline, ncbf__card" }))), r("div", { class: "language-feedback-container" }, this.enableUserFeedback && r("button-component", { id: "report-issue", variant: "basic", onClick: (Y) => this.onFeedbackClick(Y) }, r("feedback-icon", null)), r("select-dropdown", { name: "language", searchPlaceholder: h.t("search"), options: W, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: W.find((Y) => Y.value == V), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, r("span", { slot: "select-icon" }, r("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && r("nylas-feedback-form", null));
|
|
36736
36738
|
if (e && g)
|
|
36737
|
-
return r(Pe, null, r(
|
|
36739
|
+
return r(Pe, null, r(ai, null, r("div", { class: "manual-confirmation-page", part: "manual-confirmation-page" }, r("nylas-organizer-confirmation-card", { organizerConfirmationBookingId: g, exportparts: "nmcc, nmcc__title, nmcc__description, nmcc__button-cta, nmcc__button-outline" }))), r("div", { class: "language-feedback-container" }, this.enableUserFeedback && r("button-component", { id: "report-issue", variant: "basic", onClick: (Y) => this.onFeedbackClick(Y) }, r("feedback-icon", null)), r("select-dropdown", { name: "language", searchPlaceholder: h.t("search"), options: W, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: W.find((Y) => Y.value == V), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, r("span", { slot: "select-icon" }, r("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && r("nylas-feedback-form", null));
|
|
36738
36740
|
if (e && o)
|
|
36739
|
-
return r(Pe, null, r(
|
|
36741
|
+
return r(Pe, null, r(ai, { version: this.version, nylasBranding: I, isLoading: this.isLoading, showNotification: this.showNotification }, r("div", { class: "cancelled-event-page", part: "cancelled-event-page" }, r("nylas-cancelled-event-card", { cancelledEventInfo: o, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), r("div", { class: "language-feedback-container" }, this.enableUserFeedback && r("button-component", { id: "report-issue", variant: "basic", onClick: (Y) => this.onFeedbackClick(Y) }, r("feedback-icon", null)), r("select-dropdown", { name: "language", searchPlaceholder: h.t("search"), options: W, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: W.find((Y) => Y.value == V), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, r("span", { slot: "select-icon" }, r("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && r("nylas-feedback-form", null));
|
|
36740
36742
|
if (e && C)
|
|
36741
|
-
return r(Pe, null, r(
|
|
36743
|
+
return r(Pe, null, r(ai, { version: this.version, nylasBranding: I, isLoading: this.isLoading, showNotification: this.showNotification }, r("div", { class: "cancelled-event-page", part: "confirmed-event-page" }, r("nylas-confirmed-event-card", { confirmedEventInfo: C, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))), r("div", { class: "language-feedback-container" }, this.enableUserFeedback && r("button-component", { id: "report-issue", variant: "basic", onClick: (Y) => this.onFeedbackClick(Y) }, r("feedback-icon", null)), r("select-dropdown", { name: "language", searchPlaceholder: h.t("search"), options: W, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: W.find((Y) => Y.value == V), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, r("span", { slot: "select-icon" }, r("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && r("nylas-feedback-form", null));
|
|
36742
36744
|
if (e && a && F) {
|
|
36743
36745
|
const Y = this.bookingInfoConfirmed?.primaryParticipant, me = this.bookingInfoConfirmed?.location, _e = this.bookingInfoConfirmed?.booking_ref, He = this.bookingInfoConfirmed?.additionalFields || {};
|
|
36744
36746
|
if (this.bookingInfo && typeof this.bookingInfo?.additionalFields < "u") {
|
|
@@ -36756,12 +36758,12 @@ const ni = (n, e) => {
|
|
|
36756
36758
|
return;
|
|
36757
36759
|
}
|
|
36758
36760
|
if (e && a)
|
|
36759
|
-
return r(Pe, null, r(
|
|
36761
|
+
return r(Pe, null, r(ai, { version: this.version, nylasBranding: I, isLoading: this.isLoading, showNotification: this.showNotification }, r("div", { class: "booked-event-page", part: "booked-event-page ns_booked-event-page" }, r("nylas-booked-event-card", { selectedTimeslot: f, eventInfo: a, exportparts: "nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta" }))), r("div", { class: "language-feedback-container" }, this.enableUserFeedback && r("button-component", { id: "report-issue", variant: "basic", onClick: (Y) => this.onFeedbackClick(Y) }, r("feedback-icon", null)), r("select-dropdown", { name: "language", searchPlaceholder: h.t("search"), options: W, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: W.find((Y) => Y.value == V), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, r("span", { slot: "select-icon" }, r("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && r("nylas-feedback-form", null));
|
|
36760
36762
|
if (e && (!a || p) && !i) {
|
|
36761
36763
|
const Y = this.host.querySelector('[slot="timeslot-picker-cta-label"]');
|
|
36762
|
-
return r(Pe, null, r(
|
|
36764
|
+
return r(Pe, null, r(ai, { version: this.version, nylasBranding: I, isLoading: this.isLoading, showNotification: this.showNotification }, p && r(Fg, null, `${h.t("rescheduleTitle")}`), r("div", { class: "select-date-page", part: "select-date-page ns_select-date-page" }, r("div", { class: "left-panel", part: "ns_left-panel" }, r("nylas-date-picker", { exportparts: "ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month" }), r("nylas-locale-switch", { exportparts: "nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label" })), r("div", { class: `right-panel ${p ? "reschedule" : ""}`, part: `ns_right-panel ${p ? "ns_reschedule" : ""}` }, r("h2", { part: "ns_right-panel__title" }, r("calendar-icon", { part: "ns_right-panel__calendar-icon" }), r("span", { id: "selectedDate", part: "ns_right-panel__selected-date" }, Q)), r("nylas-timeslot-picker", { exportparts: "ntp, ntp__time-picker-wrapper, ntp__timeslots, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, Y && r("span", { slot: "timeslot-picker-cta-label" }, r("slot", { name: "timeslot-picker-cta-label" })))))), this.enableUserFeedback && r("button-component", { id: "report-issue", variant: "basic", onClick: (me) => this.onFeedbackClick(me) }, r("feedback-icon", null)), this.showFeedbackModal && r("nylas-feedback-form", null));
|
|
36763
36765
|
}
|
|
36764
|
-
return e && !a && i ? r(Pe, null, r(
|
|
36766
|
+
return e && !a && i ? r(Pe, null, r(ai, { version: this.version, nylasBranding: I, isLoading: this.isLoading, showNotification: this.showNotification }, p && r(Fg, null, `${h.t("rescheduleTitle")}`), r("div", { class: "additional-data-page", part: "additional-data-page ns_additional-data-page" }, r("div", { class: "left-panel ns_left-panel", part: "ns_left-panel" }, r("div", { class: "wrapper", part: "ns_left-panel__wrapper" }, r("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone" }))), r("div", { class: `right-panel ${p ? "reschedule" : ""}`, part: `ns_right-panel ${p ? "ns_reschedule" : ""}` }, r("nylas-booking-form", { exportparts: "nbf, nbf__input-textfield, nbf__button-ghost, nbf__button-outline, nbf__button-primary, nbf__input-wrapper, nbf__checkbox-component, nbf__radio-button-group, nbf__textarea-component, nbf__dropdown, nbf__dropdown-button, nbf__dropdown-content" })))), r("div", { class: "language-feedback-container" }, this.enableUserFeedback && r("button-component", { id: "report-issue", variant: "basic", onClick: (Y) => this.onFeedbackClick(Y) }, r("feedback-icon", null)), r("select-dropdown", { name: "language", searchPlaceholder: h.t("search"), options: W, withChevron: !1, themeConfig: this.themeConfig, defaultSelectedOption: W.find((Y) => Y.value == V), exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, r("span", { slot: "select-icon" }, r("translate-icon", { width: "20", height: "20" })))), this.showFeedbackModal && r("nylas-feedback-form", null)) : r(Pe, null, r("slot", null));
|
|
36765
36767
|
}
|
|
36766
36768
|
get host() {
|
|
36767
36769
|
return this;
|
|
@@ -36851,7 +36853,7 @@ function TD() {
|
|
|
36851
36853
|
customElements.get(e) || Bo();
|
|
36852
36854
|
break;
|
|
36853
36855
|
case "calendar-icon":
|
|
36854
|
-
customElements.get(e) ||
|
|
36856
|
+
customElements.get(e) || ja();
|
|
36855
36857
|
break;
|
|
36856
36858
|
case "checkbox-component":
|
|
36857
36859
|
customElements.get(e) || sa();
|
|
@@ -36863,7 +36865,7 @@ function TD() {
|
|
|
36863
36865
|
customElements.get(e) || ot();
|
|
36864
36866
|
break;
|
|
36865
36867
|
case "clock-icon":
|
|
36866
|
-
customElements.get(e) ||
|
|
36868
|
+
customElements.get(e) || Ua();
|
|
36867
36869
|
break;
|
|
36868
36870
|
case "close-icon":
|
|
36869
36871
|
customElements.get(e) || Xt();
|
|
@@ -36947,15 +36949,15 @@ function TD() {
|
|
|
36947
36949
|
customElements.get(e) || lt();
|
|
36948
36950
|
break;
|
|
36949
36951
|
case "translate-icon":
|
|
36950
|
-
customElements.get(e) ||
|
|
36952
|
+
customElements.get(e) || pi();
|
|
36951
36953
|
break;
|
|
36952
36954
|
case "warning-icon":
|
|
36953
|
-
customElements.get(e) ||
|
|
36955
|
+
customElements.get(e) || vi();
|
|
36954
36956
|
break;
|
|
36955
36957
|
}
|
|
36956
36958
|
});
|
|
36957
36959
|
}
|
|
36958
|
-
const DD = T1, ID = TD, AD = kh, RD = w1, OD = wh, LD = x1, PD = uh, HD = wl, MD = Uy, FD =
|
|
36960
|
+
const DD = T1, ID = TD, AD = kh, RD = w1, OD = wh, LD = x1, PD = uh, HD = wl, MD = Uy, FD = Ea, $D = mh, ND = gh, BD = Eh, zD = S1, jD = u1, UD = _l, VD = h1, WD = kl, qD = m1, GD = yh, YD = p0, ZD = io, XD = y0, JD = tu, QD = ".sc-play-icon-h{display:flex}", D1 = te(class extends ne {
|
|
36959
36961
|
constructor() {
|
|
36960
36962
|
super(), this.__registerHost(), this.width = "15", this.height = "15";
|
|
36961
36963
|
}
|
|
@@ -37155,7 +37157,7 @@ function HI() {
|
|
|
37155
37157
|
}
|
|
37156
37158
|
});
|
|
37157
37159
|
}
|
|
37158
|
-
const MI = H1, FI = HI, $I = d0, NI = Gn, BI = fb, zI = Yn, jI = m0, UI =
|
|
37160
|
+
const MI = H1, FI = HI, $I = d0, NI = Gn, BI = fb, zI = Yn, jI = m0, UI = Va, VI = zy, WI = lt, qI = C0, GI = pi, YI = ".sc-trash-fill-icon-h{display:flex}", M1 = te(class extends ne {
|
|
37159
37161
|
constructor() {
|
|
37160
37162
|
super(), this.__registerHost(), this.width = "15", this.height = "15";
|
|
37161
37163
|
}
|
|
@@ -37205,7 +37207,7 @@ function tA() {
|
|
|
37205
37207
|
}
|
|
37206
37208
|
});
|
|
37207
37209
|
}
|
|
37208
|
-
const nA = F1, aA = tA, iA = c1, oA =
|
|
37210
|
+
const nA = F1, aA = tA, iA = c1, oA = vi, rA = db, sA = so, FO = /* @__PURE__ */ ae({
|
|
37209
37211
|
tagName: "add-circle-icon",
|
|
37210
37212
|
elementClass: Y5,
|
|
37211
37213
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|