@nylas/react 3.2.15 → 3.2.16
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 +14 -14
- 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 +114 -71
- 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
|
@@ -6154,10 +6154,10 @@ var K3 = function(n, e, t, a) {
|
|
|
6154
6154
|
};
|
|
6155
6155
|
const Mr = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, zf = te(class extends ne {
|
|
6156
6156
|
constructor() {
|
|
6157
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nameChanged = K(this, "nameChanged", 7), this.emailChanged = K(this, "emailChanged", 7), this.backButtonClicked = K(this, "backButtonClicked", 7), this.detailsConfirmed = K(this, "detailsConfirmed", 7), this.bookingFormError = K(this, "bookingFormError", 7), this.bookingFormSubmitted = K(this, "bookingFormSubmitted", 7), this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.namePatternError = "", this.nameRequiredError = "", this.emailPatternError = "", this.emailRequiredError = "", this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0, this.handleGuestChange = (e, t) => {
|
|
6157
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nameChanged = K(this, "nameChanged", 7), this.emailChanged = K(this, "emailChanged", 7), this.guestEmailsChanged = K(this, "guestEmailsChanged", 7), this.additionalFieldsChanged = K(this, "additionalFieldsChanged", 7), this.backButtonClicked = K(this, "backButtonClicked", 7), this.detailsConfirmed = K(this, "detailsConfirmed", 7), this.bookingFormError = K(this, "bookingFormError", 7), this.bookingFormSubmitted = K(this, "bookingFormSubmitted", 7), this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.namePatternError = "", this.nameRequiredError = "", this.emailPatternError = "", this.emailRequiredError = "", this.validationError = { name: "", email: "" }, this.backButtonLoading = !1, this.firstRender = !0, this.handleGuestChange = (e, t) => {
|
|
6158
6158
|
this.resetGuestEmailError(e);
|
|
6159
6159
|
const a = [...this.guestEmails];
|
|
6160
|
-
a[e] = Np(t), this.guestEmails = [...a];
|
|
6160
|
+
a[e] = Np(t), this.guestEmails = [...a], this.guestEmailsChanged.emit(this.guestEmails);
|
|
6161
6161
|
}, this.handleGuestBlur = (e, t) => {
|
|
6162
6162
|
if (this.resetGuestEmailError(e), t === "") {
|
|
6163
6163
|
this.guestEmailErrors[e] = h.t("fieldRequired", { field: h.t("email") });
|
|
@@ -6169,11 +6169,11 @@ const Mr = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
6169
6169
|
}
|
|
6170
6170
|
this.handleGuestChange(e, t);
|
|
6171
6171
|
}, this.addGuestButtonClickedHandler = (e) => {
|
|
6172
|
-
e.preventDefault(), this.guestEmails = [...this.guestEmails, ""];
|
|
6172
|
+
e.preventDefault(), this.guestEmails = [...this.guestEmails, ""], this.guestEmailsChanged.emit(this.guestEmails);
|
|
6173
6173
|
}, this.removeGuestButtonClickHandler = (e, t) => {
|
|
6174
6174
|
e.preventDefault(), this.resetGuestEmailError(t);
|
|
6175
6175
|
const a = [...this.guestEmails];
|
|
6176
|
-
a.splice(t, 1), this.guestEmails = [...a];
|
|
6176
|
+
a.splice(t, 1), this.guestEmails = [...a], this.guestEmailsChanged.emit(this.guestEmails);
|
|
6177
6177
|
}, this.handleBackButtonClicked = (e) => {
|
|
6178
6178
|
e.preventDefault(), this.backButtonLoading = !0, this.backButtonClicked.emit();
|
|
6179
6179
|
}, this.bookButtonClickedHandler = async (e) => {
|
|
@@ -6233,7 +6233,7 @@ const Mr = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
6233
6233
|
additionalFields: { ...l, ...this.additionalFields }
|
|
6234
6234
|
});
|
|
6235
6235
|
}, this.updateAdditionalFields = (e, t) => {
|
|
6236
|
-
this.additionalFields && (this.additionalFields[e] = t);
|
|
6236
|
+
this.additionalFields && (this.additionalFields[e] = t, this.additionalFieldsChanged.emit({ ...this.additionalFields }));
|
|
6237
6237
|
};
|
|
6238
6238
|
}
|
|
6239
6239
|
connectedCallback() {
|
|
@@ -6357,7 +6357,7 @@ const Mr = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
6357
6357
|
}
|
|
6358
6358
|
render() {
|
|
6359
6359
|
const e = !!this.selectedTimeslot?.event_id && !!this.selectedTimeslot?.capacity, t = this.configSettings?.scheduler?.notetaker_settings?.show_ui_consent_message === !0;
|
|
6360
|
-
return r(Le, { key: "
|
|
6360
|
+
return r(Le, { key: "37cd9b82bc20430f4fc22ec1fc9395d40476d402" }, r("form", { key: "f9755c802b42d73ea9aaf48d4fb11c69faeb75de", onSubmit: (a) => this.bookButtonClickedHandler(a), ref: (a) => this.formRef = a, noValidate: !0 }, r("div", { key: "a0e74316cd25d942e033ec831fa4ed770be0df5a", class: "nylas-booking-form", part: "nbf" }, r("div", { key: "8a9cd8f75bfa974a47e5e2a3832828226f6ef2e6", class: "input-wrapper", part: "nbf__input-wrapper" }, r("input-component", { key: "3433a1edb0c011b8ae998af579210604329af86a", label: h.t("name"), name: "name", id: "name", defaultValue: this.bookingInfo?.primaryParticipant?.name || this.configSettings?.booking?.guest?.name || this.name, placeholder: h.t("namePlaceholder"), type: "text", readOnly: this.bookingInfo?.primaryParticipant?.nameReadOnly || !1, required: !0, requiredError: this.nameRequiredError, patternError: this.namePatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), r("div", { key: "17f91b7c2207442cb9206a3480674ba78c89052a", class: "input-wrapper", part: "nbf__input-wrapper" }, r("input-component", { key: "a9418226c0756deefabace1218a1bd1ec3c6157b", label: h.t("email"), name: "email", id: "email", pattern: Mr, defaultValue: this.bookingInfo?.primaryParticipant?.email || this.configSettings?.booking?.guest?.email || this.email, placeholder: h.t("emailPlaceholder"), type: "email", readOnly: this.bookingInfo?.primaryParticipant?.emailReadOnly || !1, required: !0, requiredError: this.emailRequiredError, patternError: this.emailPatternError, themeConfig: this.themeConfig, part: "nbf__input-textfield" })), this.configSettings?.scheduler?.hide_additional_guests !== !0 && r("div", { key: "512f56515ec34e71ac685b1cd54a744922adcf52", class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((a, i) => r("div", { class: "input-wrapper button-wrapper" }, r("label", { class: {
|
|
6361
6361
|
error: !!this.guestEmailErrors[i]
|
|
6362
6362
|
} }, h.t("guestEmail")), r("div", { class: "guest-email-input" }, r("input", { type: "email", id: `guest-email-${i}`, maxLength: 100, class: {
|
|
6363
6363
|
"guest-email": !0,
|
|
@@ -6365,7 +6365,7 @@ const Mr = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
6365
6365
|
}, placeholder: h.t("guestEmailPlaceholder"), value: a, "data-index": i, part: "nbf__input-textfield", onBlur: (o) => this.handleGuestBlur(i, o.target?.value), onInput: (o) => this.handleGuestChange(i, o.target?.value) }), r("button-component", { variant: "basic", tooltip: "Remove guest", onClick: (o) => this.removeGuestButtonClickHandler(o, i), class: {
|
|
6366
6366
|
"remove-guest": !0,
|
|
6367
6367
|
error: !!this.guestEmailErrors[i]
|
|
6368
|
-
} }, r("close-icon", null))), r("p", { class: "help-text" }, this.guestEmailErrors[i]))), !e && r("button-component", { key: "
|
|
6368
|
+
} }, r("close-icon", null))), r("p", { class: "help-text" }, this.guestEmailErrors[i]))), !e && r("button-component", { key: "189869ec5a18043e9bef8c282058cbb26bfcad93", class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (a) => this.addGuestButtonClickedHandler(a) }, r("div", { key: "68f7e68b8ff5081068bd64e2aa8366508ad3a7b4", class: "button-content" }, r("add-circle-icon", { key: "fb5b3dba51aed878bf60b6e6f40771938a6de433", slot: "icon" }), this.guestEmails.length > 0 ? `${h.t("addAnotherGuest")}` : `${h.t("addGuest")}`))), Object.entries(this.configSettings?.scheduler?.additional_fields || {})?.sort((a, i) => a[1].order - i[1].order).map((a) => {
|
|
6369
6369
|
const i = a[1], o = i.label, l = a[0], f = this.bookingInfo?.additionalFields?.[l]?.value || this.configSettings?.booking?.additional_fields?.[l] || i.default || "", p = this.bookingInfo?.additionalFields?.[l]?.readOnly || !1;
|
|
6370
6370
|
switch (i.type) {
|
|
6371
6371
|
case "dropdown":
|
|
@@ -6390,7 +6390,7 @@ const Mr = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
6390
6390
|
default:
|
|
6391
6391
|
return r("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, r("input-component", { label: o, name: l, id: l, type: i.type, readOnly: p, defaultValue: f || "", requiredError: h.t("fieldRequired", { field: o }), patternError: h.t("invalidInputFormat", { field: o }), required: i.required, part: "nbf__input-textfield", themeConfig: this.themeConfig }));
|
|
6392
6392
|
}
|
|
6393
|
-
})), r("div", { key: "
|
|
6393
|
+
})), r("div", { key: "7ebcde54517afad0f17e89e0170f230dbc7ff3ce", class: "cta" }, t && r("div", { key: "39aa8a18b033e3e82f6dc0750229360947ef1f0e", class: "consent-disclaimer" }, h.t("notetakerConsentMessage")), r("button-component", { key: "62ca6bd8f36a3a81ad43027bdb2b87421654f139", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, r("slot", { key: "ff4131f111581812c9caa5c71f57ba0d24222fe2", name: "booking-form-back-label" }, `${h.t("backButton")}`)), r("button-component", { key: "2ac93336ea230bad436de88688b87ce7c0741996", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, r("slot", { key: "91dd3cda59aa2387d5ac239263189cde4a310267", name: "booking-form-book-label" }, `${h.t("bookNowButton")}`)))));
|
|
6394
6394
|
}
|
|
6395
6395
|
get host() {
|
|
6396
6396
|
return this;
|
|
@@ -6456,6 +6456,12 @@ K3([
|
|
|
6456
6456
|
emailChanged: async (n, e) => {
|
|
6457
6457
|
e.scheduler.setParticipantEmail(n.detail);
|
|
6458
6458
|
},
|
|
6459
|
+
guestEmailsChanged: async (n, e) => {
|
|
6460
|
+
e.scheduler.setGuests(n.detail);
|
|
6461
|
+
},
|
|
6462
|
+
additionalFieldsChanged: async (n, e) => {
|
|
6463
|
+
e.scheduler.setAdditionalFields(n.detail);
|
|
6464
|
+
},
|
|
6459
6465
|
detailsConfirmed: async (n, e) => {
|
|
6460
6466
|
b("nylas-booking-form", "detailsConfirmed", n.detail);
|
|
6461
6467
|
},
|
|
@@ -8805,7 +8811,7 @@ function tl() {
|
|
|
8805
8811
|
});
|
|
8806
8812
|
}
|
|
8807
8813
|
const r4 = au, s4 = tl;
|
|
8808
|
-
var
|
|
8814
|
+
var gt = /* @__PURE__ */ ((n) => (n.Error = "error", n.Warning = "warning", n.Info = "info", n.Success = "success", n))(gt || {});
|
|
8809
8815
|
const Tn = (n) => n !== null && typeof n == "object" && "error" in n;
|
|
8810
8816
|
var Li;
|
|
8811
8817
|
(function(n) {
|
|
@@ -8974,12 +8980,12 @@ function am(n, e, t, a) {
|
|
|
8974
8980
|
function p4(n, e) {
|
|
8975
8981
|
return n.map((t) => (t.value && (t.value = Mi(t.value, e)), t));
|
|
8976
8982
|
}
|
|
8977
|
-
const $a = "8.28.0",
|
|
8983
|
+
const $a = "8.28.0", yt = globalThis;
|
|
8978
8984
|
function su(n, e, t) {
|
|
8979
|
-
const a =
|
|
8985
|
+
const a = yt, i = a.__SENTRY__ = a.__SENTRY__ || {}, o = i[$a] = i[$a] || {};
|
|
8980
8986
|
return o[n] || (o[n] = e());
|
|
8981
8987
|
}
|
|
8982
|
-
const lu =
|
|
8988
|
+
const lu = yt, m4 = 80;
|
|
8983
8989
|
function E0(n, e = {}) {
|
|
8984
8990
|
if (!n)
|
|
8985
8991
|
return "<unknown>";
|
|
@@ -9064,9 +9070,9 @@ const Zo = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, b4 = "Sentry Logge
|
|
|
9064
9070
|
"trace"
|
|
9065
9071
|
], _s = {};
|
|
9066
9072
|
function Xo(n) {
|
|
9067
|
-
if (!("console" in
|
|
9073
|
+
if (!("console" in yt))
|
|
9068
9074
|
return n();
|
|
9069
|
-
const e =
|
|
9075
|
+
const e = yt.console, t = {}, a = Object.keys(_s);
|
|
9070
9076
|
a.forEach((i) => {
|
|
9071
9077
|
const o = _s[i];
|
|
9072
9078
|
t[i] = e[i], e[i] = o;
|
|
@@ -9093,7 +9099,7 @@ function v4() {
|
|
|
9093
9099
|
return Zo ? Qd.forEach((t) => {
|
|
9094
9100
|
e[t] = (...a) => {
|
|
9095
9101
|
n && Xo(() => {
|
|
9096
|
-
|
|
9102
|
+
yt.console[t](`${b4}[${t}]:`, ...a);
|
|
9097
9103
|
});
|
|
9098
9104
|
};
|
|
9099
9105
|
}) : Qd.forEach((t) => {
|
|
@@ -9361,17 +9367,17 @@ function A4(n) {
|
|
|
9361
9367
|
mi(e, n), gi(e, R4);
|
|
9362
9368
|
}
|
|
9363
9369
|
function R4() {
|
|
9364
|
-
"console" in
|
|
9365
|
-
n in
|
|
9370
|
+
"console" in yt && Qd.forEach(function(n) {
|
|
9371
|
+
n in yt.console && Cn(yt.console, n, function(e) {
|
|
9366
9372
|
return _s[n] = e, function(...t) {
|
|
9367
9373
|
qn("console", { args: t, level: n });
|
|
9368
9374
|
const i = _s[n];
|
|
9369
|
-
i && i.apply(
|
|
9375
|
+
i && i.apply(yt.console, t);
|
|
9370
9376
|
};
|
|
9371
9377
|
});
|
|
9372
9378
|
});
|
|
9373
9379
|
}
|
|
9374
|
-
const ef =
|
|
9380
|
+
const ef = yt;
|
|
9375
9381
|
function R0() {
|
|
9376
9382
|
if (!("fetch" in ef))
|
|
9377
9383
|
return !1;
|
|
@@ -9407,7 +9413,7 @@ function Jo() {
|
|
|
9407
9413
|
return Date.now() / O0;
|
|
9408
9414
|
}
|
|
9409
9415
|
function L4() {
|
|
9410
|
-
const { performance: n } =
|
|
9416
|
+
const { performance: n } = yt;
|
|
9411
9417
|
if (!n || !n.now)
|
|
9412
9418
|
return Jo;
|
|
9413
9419
|
const e = Date.now() - n.now(), t = n.timeOrigin == null ? e : n.timeOrigin;
|
|
@@ -9415,7 +9421,7 @@ function L4() {
|
|
|
9415
9421
|
}
|
|
9416
9422
|
const va = L4();
|
|
9417
9423
|
(() => {
|
|
9418
|
-
const { performance: n } =
|
|
9424
|
+
const { performance: n } = yt;
|
|
9419
9425
|
if (!n || !n.now)
|
|
9420
9426
|
return;
|
|
9421
9427
|
const e = 3600 * 1e3, t = n.now(), a = Date.now(), i = n.timeOrigin ? Math.abs(n.timeOrigin + t - a) : e, o = i < e, l = n.timing && n.timing.navigationStart, p = typeof l == "number" ? Math.abs(l + t - a) : e, g = p < e;
|
|
@@ -9426,7 +9432,7 @@ function P4(n, e) {
|
|
|
9426
9432
|
mi(t, n), gi(t, () => H4(void 0, e));
|
|
9427
9433
|
}
|
|
9428
9434
|
function H4(n, e = !1) {
|
|
9429
|
-
e && !O4() || Cn(
|
|
9435
|
+
e && !O4() || Cn(yt, "fetch", function(t) {
|
|
9430
9436
|
return function(...a) {
|
|
9431
9437
|
const { method: i, url: o } = M4(a), l = {
|
|
9432
9438
|
args: a,
|
|
@@ -9440,7 +9446,7 @@ function H4(n, e = !1) {
|
|
|
9440
9446
|
...l
|
|
9441
9447
|
});
|
|
9442
9448
|
const f = new Error().stack;
|
|
9443
|
-
return t.apply(
|
|
9449
|
+
return t.apply(yt, a).then(
|
|
9444
9450
|
async (p) => (qn("fetch", {
|
|
9445
9451
|
...l,
|
|
9446
9452
|
endTimestamp: va() * 1e3,
|
|
@@ -9485,7 +9491,7 @@ function F4(n) {
|
|
|
9485
9491
|
mi(e, n), gi(e, $4);
|
|
9486
9492
|
}
|
|
9487
9493
|
function $4() {
|
|
9488
|
-
$r =
|
|
9494
|
+
$r = yt.onerror, yt.onerror = function(n, e, t, a, i) {
|
|
9489
9495
|
return qn("error", {
|
|
9490
9496
|
column: a,
|
|
9491
9497
|
error: i,
|
|
@@ -9493,7 +9499,7 @@ function $4() {
|
|
|
9493
9499
|
msg: n,
|
|
9494
9500
|
url: e
|
|
9495
9501
|
}), $r && !$r.__SENTRY_LOADER__ ? $r.apply(this, arguments) : !1;
|
|
9496
|
-
},
|
|
9502
|
+
}, yt.onerror.__SENTRY_INSTRUMENTED__ = !0;
|
|
9497
9503
|
}
|
|
9498
9504
|
let Nr = null;
|
|
9499
9505
|
function N4(n) {
|
|
@@ -9501,9 +9507,9 @@ function N4(n) {
|
|
|
9501
9507
|
mi(e, n), gi(e, B4);
|
|
9502
9508
|
}
|
|
9503
9509
|
function B4() {
|
|
9504
|
-
Nr =
|
|
9510
|
+
Nr = yt.onunhandledrejection, yt.onunhandledrejection = function(n) {
|
|
9505
9511
|
return qn("unhandledrejection", n), Nr && !Nr.__SENTRY_LOADER__ ? Nr.apply(this, arguments) : !0;
|
|
9506
|
-
},
|
|
9512
|
+
}, yt.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
|
|
9507
9513
|
}
|
|
9508
9514
|
function z4() {
|
|
9509
9515
|
return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
|
|
@@ -9520,7 +9526,7 @@ function V4() {
|
|
|
9520
9526
|
function W4() {
|
|
9521
9527
|
return (
|
|
9522
9528
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
|
|
9523
|
-
|
|
9529
|
+
yt.process !== void 0 && yt.process.type === "renderer"
|
|
9524
9530
|
);
|
|
9525
9531
|
}
|
|
9526
9532
|
function q4() {
|
|
@@ -9546,7 +9552,7 @@ function q4() {
|
|
|
9546
9552
|
return [t, a];
|
|
9547
9553
|
}
|
|
9548
9554
|
function Hn() {
|
|
9549
|
-
const n =
|
|
9555
|
+
const n = yt, e = n.crypto || n.msCrypto;
|
|
9550
9556
|
let t = () => Math.random() * 16;
|
|
9551
9557
|
try {
|
|
9552
9558
|
if (e && e.randomUUID)
|
|
@@ -9908,7 +9914,7 @@ function hm(n, e) {
|
|
|
9908
9914
|
return !1;
|
|
9909
9915
|
}
|
|
9910
9916
|
function rf(n) {
|
|
9911
|
-
return
|
|
9917
|
+
return yt.__SENTRY__ && yt.__SENTRY__.encodePolyfill ? yt.__SENTRY__.encodePolyfill(n) : new TextEncoder().encode(n);
|
|
9912
9918
|
}
|
|
9913
9919
|
function o7(n) {
|
|
9914
9920
|
const [e, t] = n;
|
|
@@ -10038,14 +10044,14 @@ function mm() {
|
|
|
10038
10044
|
spanId: Hn().substring(16)
|
|
10039
10045
|
};
|
|
10040
10046
|
}
|
|
10041
|
-
const Br =
|
|
10047
|
+
const Br = yt;
|
|
10042
10048
|
function g7() {
|
|
10043
10049
|
const n = Br.chrome, e = n && n.app && n.app.runtime, t = "history" in Br && !!Br.history.pushState && !!Br.history.replaceState;
|
|
10044
10050
|
return !e && t;
|
|
10045
10051
|
}
|
|
10046
10052
|
const St = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
|
|
10047
10053
|
function rl() {
|
|
10048
|
-
return du(
|
|
10054
|
+
return du(yt), yt;
|
|
10049
10055
|
}
|
|
10050
10056
|
function du(n) {
|
|
10051
10057
|
const e = n.__SENTRY__ = n.__SENTRY__ || {};
|
|
@@ -10780,7 +10786,7 @@ function n9(n, e) {
|
|
|
10780
10786
|
}
|
|
10781
10787
|
const km = /* @__PURE__ */ new WeakMap();
|
|
10782
10788
|
function a9(n, e) {
|
|
10783
|
-
const t =
|
|
10789
|
+
const t = yt._sentryDebugIds;
|
|
10784
10790
|
if (!t)
|
|
10785
10791
|
return;
|
|
10786
10792
|
let a;
|
|
@@ -10886,7 +10892,7 @@ function mu() {
|
|
|
10886
10892
|
return !!Yt();
|
|
10887
10893
|
}
|
|
10888
10894
|
function wm(n) {
|
|
10889
|
-
const e = Yt(), t = ro(), a = Nn(), { release: i, environment: o = hu } = e && e.getOptions() || {}, { userAgent: l } =
|
|
10895
|
+
const e = Yt(), t = ro(), a = Nn(), { release: i, environment: o = hu } = e && e.getOptions() || {}, { userAgent: l } = yt.navigator || {}, f = y7({
|
|
10890
10896
|
release: i,
|
|
10891
10897
|
environment: o,
|
|
10892
10898
|
user: a.getUser() || t.getUser(),
|
|
@@ -11734,7 +11740,7 @@ function sl(n, e = {}, t = Nn()) {
|
|
|
11734
11740
|
}, C = t && t.getClient() || Yt();
|
|
11735
11741
|
return C && C.emit("beforeSendFeedback", y, e), t.captureEvent(y, e);
|
|
11736
11742
|
}
|
|
11737
|
-
const _t =
|
|
11743
|
+
const _t = yt;
|
|
11738
11744
|
let cf = 0;
|
|
11739
11745
|
function Y0() {
|
|
11740
11746
|
return cf > 0;
|
|
@@ -11987,7 +11993,7 @@ class lw extends y9 {
|
|
|
11987
11993
|
return e.platform = e.platform || "javascript", super._prepareEvent(e, t, a);
|
|
11988
11994
|
}
|
|
11989
11995
|
}
|
|
11990
|
-
const cw = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, an =
|
|
11996
|
+
const cw = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, an = yt, dw = 1e3;
|
|
11991
11997
|
let Om, ff, uf;
|
|
11992
11998
|
function fw(n) {
|
|
11993
11999
|
const e = "dom";
|
|
@@ -12818,7 +12824,7 @@ function bE(n) {
|
|
|
12818
12824
|
const e = Yt(), t = e && e.getOptions(), a = t && t.cdnBaseUrl || "https://browser.sentry-cdn.com";
|
|
12819
12825
|
return new URL(`/${$a}/${n}.min.js`, a).toString();
|
|
12820
12826
|
}
|
|
12821
|
-
const aa =
|
|
12827
|
+
const aa = yt, wt = aa.document, Do = aa.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
12828
|
if (!n.message)
|
|
12823
12829
|
throw new Error("Unable to submit feedback with empty message");
|
|
12824
12830
|
const t = Yt();
|
|
@@ -14755,7 +14761,7 @@ const A8 = () => ({
|
|
|
14755
14761
|
lazyLoadIntegration: yE,
|
|
14756
14762
|
getModalIntegration: () => E8,
|
|
14757
14763
|
getScreenshotIntegration: () => A8
|
|
14758
|
-
}), ka = "2.5.
|
|
14764
|
+
}), ka = "2.5.18", 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
14765
|
var O8 = function(n, e, t, a) {
|
|
14760
14766
|
var i = arguments.length, o = i < 3 ? e : a === null ? a = Object.getOwnPropertyDescriptor(e, t) : a, l;
|
|
14761
14767
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -28441,7 +28447,7 @@ const th = te(class extends ne {
|
|
|
28441
28447
|
constructor() {
|
|
28442
28448
|
super(), this.__registerHost(), this.schedulerConfigChanged = K(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = K(this, "schedulerConfigCreated", 7), this.cancelButtonClick = K(this, "cancelButtonClick", 7), this.formSubmitted = K(this, "formSubmitted", 7), this.previewButtonClicked = K(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = K(this, "schedulerEditorFormUpdated", 7), this.groupEventCreateTriggered = K(this, "groupEventCreateTriggered", 7), this.groupEventUpdateTriggered = K(this, "groupEventUpdateTriggered", 7), this.groupEventDeleteTriggered = K(this, "groupEventDeleteTriggered", 7), this.groupEventImportTriggered = K(this, "groupEventImportTriggered", 7), this.saveGroupEventChangesError = K(this, "saveGroupEventChangesError", 7), this.nylasSchedulerError = K(this, "nylasSchedulerError", 6), this.dismissNotification = K(this, "dismissNotification", 6), this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = bt.CalendarView, this.isLoading = !1, this.componentLoaded = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = {
|
|
28443
28449
|
message: "",
|
|
28444
|
-
type:
|
|
28450
|
+
type: gt.Error,
|
|
28445
28451
|
category: at.Component,
|
|
28446
28452
|
title: ""
|
|
28447
28453
|
}, this.formSubmissionHandler = async (e) => {
|
|
@@ -28450,7 +28456,7 @@ const th = te(class extends ne {
|
|
|
28450
28456
|
if (b("[nylas-editor-tabs-group]", "formSubmissionHandler", t), !this.formRef.checkValidity() || t.defaultPrevented) {
|
|
28451
28457
|
await this.host.setError({
|
|
28452
28458
|
message: this.formRef.validationMessage || h.t("fixFormErrors"),
|
|
28453
|
-
type:
|
|
28459
|
+
type: gt.Error,
|
|
28454
28460
|
category: at.Component,
|
|
28455
28461
|
title: h.t("nylasEditorTabs.formErrorTitle")
|
|
28456
28462
|
});
|
|
@@ -28535,7 +28541,7 @@ const th = te(class extends ne {
|
|
|
28535
28541
|
}
|
|
28536
28542
|
})), t && (this.isLoading = !1, this.host.setError({
|
|
28537
28543
|
message: a,
|
|
28538
|
-
type:
|
|
28544
|
+
type: gt.Error,
|
|
28539
28545
|
category: at.Component,
|
|
28540
28546
|
title: h.t("nylasEditorTabs.bookingFormError")
|
|
28541
28547
|
})), t;
|
|
@@ -28603,7 +28609,7 @@ const th = te(class extends ne {
|
|
|
28603
28609
|
async resetError() {
|
|
28604
28610
|
this.error?.message && this.dismissNotification.emit({ id: this.error?.message.split(" ").join("-"), host: this.host }), this.error = {
|
|
28605
28611
|
message: "",
|
|
28606
|
-
type:
|
|
28612
|
+
type: gt.Error,
|
|
28607
28613
|
category: at.Component,
|
|
28608
28614
|
title: ""
|
|
28609
28615
|
};
|
|
@@ -28674,22 +28680,22 @@ const th = te(class extends ne {
|
|
|
28674
28680
|
const t = this.formRef.checkValidity(), a = this.getGroupEventDetailsFromFormState();
|
|
28675
28681
|
if (this.resetError(), a.title || this.setError({
|
|
28676
28682
|
message: h.t("nylasEditorTabsGroup.eventTitleRequired"),
|
|
28677
|
-
type:
|
|
28683
|
+
type: gt.Error,
|
|
28678
28684
|
category: at.Component,
|
|
28679
28685
|
title: h.t("nylasEditorTabs.formErrorTitle")
|
|
28680
28686
|
}), (!a.when?.start_time || !a.when?.end_time) && this.setError({
|
|
28681
28687
|
message: h.t("nylasEditorTabsGroup.eventTimeRequired"),
|
|
28682
|
-
type:
|
|
28688
|
+
type: gt.Error,
|
|
28683
28689
|
category: at.Component,
|
|
28684
28690
|
title: h.t("nylasEditorTabs.formErrorTitle")
|
|
28685
28691
|
}), a.participants?.length || this.setError({
|
|
28686
28692
|
message: h.t("nylasEditorTabsGroup.participantsRequired"),
|
|
28687
|
-
type:
|
|
28693
|
+
type: gt.Error,
|
|
28688
28694
|
category: at.Component,
|
|
28689
28695
|
title: h.t("nylasEditorTabs.formErrorTitle")
|
|
28690
28696
|
}), a.participants?.length && a.participants?.some((i) => !i.email) && this.setError({
|
|
28691
28697
|
message: h.t("nylasEditorTabsGroup.participantEmailRequired"),
|
|
28692
|
-
type:
|
|
28698
|
+
type: gt.Error,
|
|
28693
28699
|
category: at.Component,
|
|
28694
28700
|
title: h.t("nylasEditorTabs.formErrorTitle")
|
|
28695
28701
|
}), this.error?.message !== "" || !t) {
|
|
@@ -28740,7 +28746,7 @@ const th = te(class extends ne {
|
|
|
28740
28746
|
notification: {
|
|
28741
28747
|
title: e.title,
|
|
28742
28748
|
category: e.category || at.Component,
|
|
28743
|
-
type: e.type ||
|
|
28749
|
+
type: e.type || gt.Error,
|
|
28744
28750
|
description: e.message,
|
|
28745
28751
|
id: e.message.split(" ").join("-"),
|
|
28746
28752
|
ttl: "none"
|
|
@@ -28967,7 +28973,7 @@ aS([
|
|
|
28967
28973
|
const [y, C] = p;
|
|
28968
28974
|
!y && C ? a.setError({
|
|
28969
28975
|
message: C.message || h.t("genericErrorTitle"),
|
|
28970
|
-
type:
|
|
28976
|
+
type: gt.Error,
|
|
28971
28977
|
category: at.Component,
|
|
28972
28978
|
title: g
|
|
28973
28979
|
}) : y && !C && i === "create" && a.schedulerConfigCreatedEventHandler({ config: y, action: i, host: a });
|
|
@@ -29005,7 +29011,7 @@ aS([
|
|
|
29005
29011
|
const { groupEvent: t, host: a, chosenOption: i, configId: o } = n.detail, l = await e.schedulerConfig.updateGroupEvent(t, i, o), [f, p] = l;
|
|
29006
29012
|
!f && p && a.setError({
|
|
29007
29013
|
message: p.message || h.t("genericErrorTitle"),
|
|
29008
|
-
type:
|
|
29014
|
+
type: gt.Error,
|
|
29009
29015
|
category: at.Component,
|
|
29010
29016
|
title: h.t("nylasEditorTabsGroup.updateGroupEventError")
|
|
29011
29017
|
});
|
|
@@ -29014,7 +29020,7 @@ aS([
|
|
|
29014
29020
|
const { groupEvent: t, chosenOption: a, configId: i, host: o } = n.detail, l = await e.schedulerConfig.deleteGroupEvent(t, a, i), [f, p] = l;
|
|
29015
29021
|
!f && p && o.setError({
|
|
29016
29022
|
message: p.message || h.t("genericErrorTitle"),
|
|
29017
|
-
type:
|
|
29023
|
+
type: gt.Error,
|
|
29018
29024
|
category: at.Component,
|
|
29019
29025
|
title: h.t("nylasEditorTabsGroup.deleteGroupEventError")
|
|
29020
29026
|
});
|
|
@@ -29023,7 +29029,7 @@ aS([
|
|
|
29023
29029
|
const { groupEvent: t, configId: a, host: i } = n.detail, o = await e.schedulerConfig.createGroupEvent(t, a), [l, f] = o;
|
|
29024
29030
|
!l && f && i.setError({
|
|
29025
29031
|
message: f.message || h.t("genericErrorTitle"),
|
|
29026
|
-
type:
|
|
29032
|
+
type: gt.Error,
|
|
29027
29033
|
category: at.Component,
|
|
29028
29034
|
title: h.t("nylasEditorTabsGroup.createGroupEventError")
|
|
29029
29035
|
});
|
|
@@ -29032,7 +29038,7 @@ aS([
|
|
|
29032
29038
|
const { groupEvent: t, configId: a, host: i } = n.detail, o = await e.schedulerConfig.importGroupEvent([t], a), [l, f] = o;
|
|
29033
29039
|
if (!l && f && i.setError({
|
|
29034
29040
|
message: f.message || h.t("genericErrorTitle"),
|
|
29035
|
-
type:
|
|
29041
|
+
type: gt.Error,
|
|
29036
29042
|
category: at.Component,
|
|
29037
29043
|
title: h.t("nylasEditorTabsGroup.importGroupEventError")
|
|
29038
29044
|
}), l && l.import_failed && l.import_failed.length > 0) {
|
|
@@ -29040,7 +29046,7 @@ aS([
|
|
|
29040
29046
|
`);
|
|
29041
29047
|
i.setError({
|
|
29042
29048
|
message: p,
|
|
29043
|
-
type:
|
|
29049
|
+
type: gt.Error,
|
|
29044
29050
|
category: at.Component,
|
|
29045
29051
|
title: h.t("nylasEditorTabsGroup.importGroupEventError")
|
|
29046
29052
|
}), setTimeout(() => {
|
|
@@ -31239,7 +31245,7 @@ const bh = te(class extends ne {
|
|
|
31239
31245
|
constructor() {
|
|
31240
31246
|
super(), this.__registerHost(), this.schedulerConfigChanged = K(this, "schedulerConfigChanged", 7), this.schedulerConfigCreated = K(this, "schedulerConfigCreated", 7), this.cancelButtonClick = K(this, "cancelButtonClick", 7), this.formSubmitted = K(this, "formSubmitted", 7), this.previewButtonClicked = K(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = K(this, "schedulerEditorFormUpdated", 7), this.nylasSchedulerError = K(this, "nylasSchedulerError", 6), this.dismissNotification = K(this, "dismissNotification", 7), this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.enableNotetaker = !1, this.action = "create", this.showFeedbackModal = !1, this.activeTab = ct.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.loaded = !1, this.formState = {}, this.error = {
|
|
31241
31247
|
message: "",
|
|
31242
|
-
type:
|
|
31248
|
+
type: gt.Error,
|
|
31243
31249
|
category: at.Component,
|
|
31244
31250
|
title: ""
|
|
31245
31251
|
}, this.formSubmissionHandler = async (e) => {
|
|
@@ -31248,7 +31254,7 @@ const bh = te(class extends ne {
|
|
|
31248
31254
|
if (b("[nylas-editor-tabs]", "formSubmissionHandler", t), !this.formRef.checkValidity() || t.defaultPrevented) {
|
|
31249
31255
|
this.setError({
|
|
31250
31256
|
message: this.formRef.validationMessage || h.t("fixFormErrors"),
|
|
31251
|
-
type:
|
|
31257
|
+
type: gt.Error,
|
|
31252
31258
|
category: at.Component,
|
|
31253
31259
|
title: h.t("nylasEditorTabs.formErrorTitle")
|
|
31254
31260
|
});
|
|
@@ -31382,7 +31388,7 @@ const bh = te(class extends ne {
|
|
|
31382
31388
|
const i = e.event_booking?.booking_type === "organizer-confirmation", o = e.scheduler?.organizer_confirmation_url;
|
|
31383
31389
|
return i && !o && (a += "Organizer confirmation URL is required when using organizer confirmation booking type.", t = !0), t && (this.isLoading = !1, this.host.setError({
|
|
31384
31390
|
message: a,
|
|
31385
|
-
type:
|
|
31391
|
+
type: gt.Error,
|
|
31386
31392
|
category: at.Component,
|
|
31387
31393
|
title: "Error:"
|
|
31388
31394
|
})), t;
|
|
@@ -31404,7 +31410,7 @@ const bh = te(class extends ne {
|
|
|
31404
31410
|
}
|
|
31405
31411
|
})), t && (this.isLoading = !1, this.host.setError({
|
|
31406
31412
|
message: a,
|
|
31407
|
-
type:
|
|
31413
|
+
type: gt.Error,
|
|
31408
31414
|
category: at.Component,
|
|
31409
31415
|
title: h.t("nylasEditorTabs.bookingFormError")
|
|
31410
31416
|
})), t;
|
|
@@ -31448,7 +31454,7 @@ const bh = te(class extends ne {
|
|
|
31448
31454
|
async resetError() {
|
|
31449
31455
|
this.error?.message && this.dismissNotification.emit({ id: this.error?.message.split(" ").join("-"), host: this.host }), this.error = {
|
|
31450
31456
|
message: "",
|
|
31451
|
-
type:
|
|
31457
|
+
type: gt.Error,
|
|
31452
31458
|
category: at.Component,
|
|
31453
31459
|
title: ""
|
|
31454
31460
|
};
|
|
@@ -31524,7 +31530,7 @@ const bh = te(class extends ne {
|
|
|
31524
31530
|
notification: {
|
|
31525
31531
|
title: e.title,
|
|
31526
31532
|
category: e.category || at.Component,
|
|
31527
|
-
type: e.type ||
|
|
31533
|
+
type: e.type || gt.Error,
|
|
31528
31534
|
description: e.message,
|
|
31529
31535
|
id: e.message.split(" ").join("-"),
|
|
31530
31536
|
ttl: "none"
|
|
@@ -31801,7 +31807,7 @@ xS([
|
|
|
31801
31807
|
const [g, y] = f;
|
|
31802
31808
|
!g && y ? a.setError({
|
|
31803
31809
|
message: y.message || h.t("genericErrorTitle"),
|
|
31804
|
-
type:
|
|
31810
|
+
type: gt.Error,
|
|
31805
31811
|
category: at.Component,
|
|
31806
31812
|
title: p
|
|
31807
31813
|
}) : g && !y && i === "create" && (a.schedulerConfigCreatedEventHandler({ config: g, action: i, host: a }), e.schedulerConfigStore.set("selectedEventType", void 0)), t && t(n);
|
|
@@ -32134,7 +32140,7 @@ const vh = te(class extends ne {
|
|
|
32134
32140
|
constructor() {
|
|
32135
32141
|
super(), this.__registerHost(), this.__attachShadow(), this.initListConfigurations = K(this, "initListConfigurations", 7), this.createButtonClick = K(this, "createButtonClick", 7), this.editButtonClick = K(this, "editButtonClick", 7), this.deleteButtonClick = K(this, "deleteButtonClick", 7), this.nylasSchedulerError = K(this, "nylasSchedulerError", 6), this.dismissNotification = K(this, "dismissNotification", 6), this.configurations = [], this.schedulerPreviewLink = "", this.state = "loading", this.error = {
|
|
32136
32142
|
message: "",
|
|
32137
|
-
type:
|
|
32143
|
+
type: gt.Error,
|
|
32138
32144
|
category: at.Component,
|
|
32139
32145
|
title: ""
|
|
32140
32146
|
}, this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1, this.deleteConfigurationId = "", this.showDeleteButtonLoading = !1, this.editButtonLoadingId = "";
|
|
@@ -32217,7 +32223,7 @@ const vh = te(class extends ne {
|
|
|
32217
32223
|
this.nylasSchedulerError.emit({
|
|
32218
32224
|
notification: {
|
|
32219
32225
|
id: e.message.split(" ").join("-"),
|
|
32220
|
-
type: e.type ||
|
|
32226
|
+
type: e.type || gt.Error,
|
|
32221
32227
|
title: e.title,
|
|
32222
32228
|
category: e.category || at.Component,
|
|
32223
32229
|
description: e.message,
|
|
@@ -32355,7 +32361,7 @@ KS([
|
|
|
32355
32361
|
if (!i && o && o.message) {
|
|
32356
32362
|
await t.setState("error"), await t.setError({
|
|
32357
32363
|
message: o.message,
|
|
32358
|
-
type:
|
|
32364
|
+
type: gt.Error,
|
|
32359
32365
|
category: at.Component,
|
|
32360
32366
|
title: h.t("nylasEditorTabs.getConfigsError")
|
|
32361
32367
|
});
|
|
@@ -32372,7 +32378,7 @@ KS([
|
|
|
32372
32378
|
const { host: t, configuration: a } = n.detail, [i, o] = await e.schedulerConfig.deleteConfiguration(a.id);
|
|
32373
32379
|
!i && o && o.message && (await t.setState("error"), await t.setError({
|
|
32374
32380
|
message: o.message,
|
|
32375
|
-
type:
|
|
32381
|
+
type: gt.Error,
|
|
32376
32382
|
category: at.Component,
|
|
32377
32383
|
title: h.t("nylasEditorTabs.deleteConfigError")
|
|
32378
32384
|
})), await t.hideDeleteConfirmation();
|
|
@@ -32382,7 +32388,7 @@ KS([
|
|
|
32382
32388
|
if (!i && o?.message) {
|
|
32383
32389
|
await t.setError({
|
|
32384
32390
|
message: o.message,
|
|
32385
|
-
type:
|
|
32391
|
+
type: gt.Error,
|
|
32386
32392
|
category: at.Component,
|
|
32387
32393
|
title: h.t("nylasEditorTabs.getConfigsError")
|
|
32388
32394
|
}), t.hideEditButtonLoading();
|
|
@@ -32399,7 +32405,7 @@ KS([
|
|
|
32399
32405
|
if (!g && y && y.message) {
|
|
32400
32406
|
await t.setError({
|
|
32401
32407
|
message: y.message,
|
|
32402
|
-
type:
|
|
32408
|
+
type: gt.Error,
|
|
32403
32409
|
category: at.Component,
|
|
32404
32410
|
title: h.t("nylasEditorTabsGroup.getGroupEventsError")
|
|
32405
32411
|
}), t.hideEditButtonLoading();
|
|
@@ -35886,6 +35892,24 @@ class ED {
|
|
|
35886
35892
|
}
|
|
35887
35893
|
});
|
|
35888
35894
|
}
|
|
35895
|
+
setGuests(e) {
|
|
35896
|
+
const { bookingInfo: t } = this.schedulerStore.state;
|
|
35897
|
+
this.schedulerStore.set("bookingInfo", {
|
|
35898
|
+
...t,
|
|
35899
|
+
primaryParticipant: t?.primaryParticipant,
|
|
35900
|
+
guests: e.map((a) => ({ name: a, email: a }))
|
|
35901
|
+
});
|
|
35902
|
+
}
|
|
35903
|
+
setAdditionalFields(e) {
|
|
35904
|
+
const { bookingInfo: t } = this.schedulerStore.state, a = t?.additionalFields ?? {}, i = { ...a };
|
|
35905
|
+
Object.entries(e).forEach(([o, l]) => {
|
|
35906
|
+
i[o] = { ...a[o], value: l };
|
|
35907
|
+
}), this.schedulerStore.set("bookingInfo", {
|
|
35908
|
+
...t,
|
|
35909
|
+
primaryParticipant: t?.primaryParticipant,
|
|
35910
|
+
additionalFields: i
|
|
35911
|
+
});
|
|
35912
|
+
}
|
|
35889
35913
|
async refetchAvailability() {
|
|
35890
35914
|
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth(), 1).getTime() / 1e3, a = t < e.getTime() / 1e3 ? Math.floor(e.getTime() / 1e3) : t, i = new Date(e.getFullYear(), e.getMonth() + 1, 1).getTime() / 1e3;
|
|
35891
35915
|
return await this.getAvailability(a, i);
|
|
@@ -36576,7 +36600,23 @@ const ai = (n, e) => {
|
|
|
36576
36600
|
return;
|
|
36577
36601
|
}
|
|
36578
36602
|
const l = await this.nylasSchedulerConnector?.scheduler.bookTimeslot(t);
|
|
36579
|
-
(!l || "error" in l)
|
|
36603
|
+
if (!l || "error" in l) {
|
|
36604
|
+
if (this.isTimeslotUnavailableError(l?.error)) {
|
|
36605
|
+
this.nylasSchedulerInfo.emit({
|
|
36606
|
+
notification: {
|
|
36607
|
+
title: "Timeslot no longer available",
|
|
36608
|
+
category: at.Component,
|
|
36609
|
+
type: gt.Info,
|
|
36610
|
+
description: "That time was just booked. Here are the latest available times.",
|
|
36611
|
+
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
36612
|
+
ttl: 3e3
|
|
36613
|
+
},
|
|
36614
|
+
host: this.host
|
|
36615
|
+
}), await this.nylasSchedulerConnector?.scheduler.toggleAdditionalData(!1);
|
|
36616
|
+
return;
|
|
36617
|
+
}
|
|
36618
|
+
this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(l?.error) }, host: this.host });
|
|
36619
|
+
}
|
|
36580
36620
|
const f = l?.data, p = this.bookedEventInfo.emit({ ...l, data: { ...f, ...a } });
|
|
36581
36621
|
this.bookingInfoConfirmed = { ...this.bookingInfoConfirmed, ...f }, "bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(p, this.nylasSchedulerConnector);
|
|
36582
36622
|
}
|
|
@@ -36616,7 +36656,7 @@ const ai = (n, e) => {
|
|
|
36616
36656
|
notification: {
|
|
36617
36657
|
title: "Event is full",
|
|
36618
36658
|
category: at.Component,
|
|
36619
|
-
type:
|
|
36659
|
+
type: gt.Info,
|
|
36620
36660
|
description: "The event you selected is full. Please try a different time.",
|
|
36621
36661
|
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
36622
36662
|
ttl: 3e3
|
|
@@ -36661,11 +36701,14 @@ const ai = (n, e) => {
|
|
|
36661
36701
|
async getRef() {
|
|
36662
36702
|
return this.host;
|
|
36663
36703
|
}
|
|
36704
|
+
isTimeslotUnavailableError(e) {
|
|
36705
|
+
return (e?.message?.toLowerCase().trim() ?? "").includes("the selected timeslot is unavailable");
|
|
36706
|
+
}
|
|
36664
36707
|
getErrorObject(e) {
|
|
36665
36708
|
return {
|
|
36666
36709
|
title: e?.title || $g.title,
|
|
36667
36710
|
category: e?.category || $g.category,
|
|
36668
|
-
type:
|
|
36711
|
+
type: gt.Error,
|
|
36669
36712
|
description: e?.message || "",
|
|
36670
36713
|
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
36671
36714
|
ttl: "none"
|
|
@@ -36679,7 +36722,7 @@ const ai = (n, e) => {
|
|
|
36679
36722
|
notification: {
|
|
36680
36723
|
title: h.t("schedulingComponentErrorTitle"),
|
|
36681
36724
|
category: at.Component,
|
|
36682
|
-
type:
|
|
36725
|
+
type: gt.Error,
|
|
36683
36726
|
description: t,
|
|
36684
36727
|
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
36685
36728
|
ttl: "none"
|
|
@@ -36696,7 +36739,7 @@ const ai = (n, e) => {
|
|
|
36696
36739
|
notification: {
|
|
36697
36740
|
title: h.t("invalidTimeslotErrorTitle"),
|
|
36698
36741
|
category: at.Component,
|
|
36699
|
-
type:
|
|
36742
|
+
type: gt.Error,
|
|
36700
36743
|
description: h.t("invalidTimeslotErrorMessage"),
|
|
36701
36744
|
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
36702
36745
|
ttl: "none"
|