@nylas/web-elements 1.1.1 → 1.1.2
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/cdn/nylas-availability-picker/nylas-availability-picker.es.js +202 -191
- package/dist/cdn/nylas-booking-calendar-picker/nylas-booking-calendar-picker.es.js +466 -455
- package/dist/cdn/nylas-booking-confirmation-redirect/nylas-booking-confirmation-redirect.es.js +299 -288
- package/dist/cdn/nylas-booking-confirmation-type/nylas-booking-confirmation-type.es.js +330 -319
- package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +440 -426
- package/dist/cdn/nylas-booking-form-config/nylas-booking-form-config.es.js +174 -163
- package/dist/cdn/nylas-buffer-time/nylas-buffer-time.es.js +469 -458
- package/dist/cdn/nylas-custom-event-slug/nylas-custom-event-slug.es.js +194 -194
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +20 -9
- package/dist/cdn/nylas-event-duration/nylas-event-duration.es.js +357 -346
- package/dist/cdn/nylas-event-location/nylas-event-location.es.js +502 -491
- package/dist/cdn/nylas-limit-future-bookings/nylas-limit-future-bookings.es.js +325 -314
- package/dist/cdn/nylas-list-configurations/nylas-list-configurations.es.js +239 -228
- package/dist/cdn/nylas-locale-switch/nylas-locale-switch.es.js +235 -224
- package/dist/cdn/nylas-min-booking-notice/nylas-min-booking-notice.es.js +325 -314
- package/dist/cdn/nylas-min-cancellation-notice/nylas-min-cancellation-notice.es.js +209 -198
- package/dist/cdn/nylas-participant-booking-calendars/nylas-participant-booking-calendars.es.js +249 -238
- package/dist/cdn/nylas-participants-custom-availability/nylas-participants-custom-availability.es.js +801 -790
- package/dist/cdn/nylas-reminder-emails/nylas-reminder-emails.es.js +287 -276
- package/dist/cdn/nylas-reminder-time/nylas-reminder-time.es.js +334 -323
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +23 -12
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +587 -559
- package/dist/cdn/nylas-scheduling-method/nylas-scheduling-method.es.js +275 -264
- package/dist/cdn/nylas-timeslot-interval/nylas-timeslot-interval.es.js +353 -342
- package/dist/cdn/select-dropdown/select-dropdown.es.js +108 -97
- package/dist/cdn/time-period-selector/time-period-selector.es.js +340 -329
- package/dist/cjs/calendar-agenda-fill-icon_48.cjs.entry.js +5 -4
- package/dist/cjs/calendar-agenda-fill-icon_48.cjs.entry.js.map +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js +14 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +11 -7
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booking-form.cjs.entry.js +11 -7
- package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-custom-event-slug.cjs.entry.js +5 -4
- package/dist/cjs/nylas-custom-event-slug.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js +2 -1
- package/dist/cjs/nylas-scheduler-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +25 -4
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/cjs/select-dropdown.cjs.entry.js +14 -1
- package/dist/cjs/select-dropdown.cjs.entry.js.map +1 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +33 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +17 -7
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +26 -5
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.css +6 -2
- package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.js +4 -3
- package/dist/collection/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/ExpressFlow.js +2 -1
- package/dist/collection/components/scheduler-editor/nylas-scheduler-editor/ExpressFlow.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +12 -8
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-custom-event-slug2.js +5 -4
- package/dist/components/nylas-custom-event-slug2.js.map +1 -1
- package/dist/components/nylas-scheduler-editor.js +2 -1
- package/dist/components/nylas-scheduler-editor.js.map +1 -1
- package/dist/components/nylas-scheduling.js +25 -4
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/select-dropdown2.js +14 -1
- package/dist/components/select-dropdown2.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_48.entry.js +5 -4
- package/dist/esm/calendar-agenda-fill-icon_48.entry.js.map +1 -1
- package/dist/esm/chevron-icon_3.entry.js +14 -1
- package/dist/esm/chevron-icon_3.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nylas-booked-event-card_12.entry.js +11 -7
- package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
- package/dist/esm/nylas-booking-form.entry.js +11 -7
- package/dist/esm/nylas-booking-form.entry.js.map +1 -1
- package/dist/esm/nylas-custom-event-slug.entry.js +5 -4
- package/dist/esm/nylas-custom-event-slug.entry.js.map +1 -1
- package/dist/esm/nylas-scheduler-editor.entry.js +2 -1
- package/dist/esm/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +25 -4
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/esm/select-dropdown.entry.js +14 -1
- package/dist/esm/select-dropdown.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +11 -7
- package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-custom-event-slug.entry.js +5 -4
- package/dist/nylas-web-elements/nylas-custom-event-slug.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js +2 -1
- package/dist/nylas-web-elements/nylas-scheduler-editor.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +25 -4
- package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-670e4bd1.entry.js → p-795ebe60.entry.js} +2 -2
- package/dist/nylas-web-elements/p-795ebe60.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-d32d9a1d.entry.js → p-8dee5c91.entry.js} +2 -2
- package/dist/nylas-web-elements/p-8dee5c91.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-8fdc5d3d.entry.js +2 -0
- package/dist/nylas-web-elements/p-8fdc5d3d.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-efa03f8c.entry.js +2 -0
- package/dist/nylas-web-elements/p-efa03f8c.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-fbec0698.entry.js +2 -0
- package/dist/nylas-web-elements/p-fbec0698.entry.js.map +1 -0
- package/dist/nylas-web-elements/select-dropdown.entry.js +14 -1
- package/dist/nylas-web-elements/select-dropdown.entry.js.map +1 -1
- package/dist/types/components/design-system/select-dropdown/select-dropdown.d.ts +6 -0
- package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +6 -0
- package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +1 -0
- package/dist/types/components/scheduler-editor/nylas-custom-event-slug/nylas-custom-event-slug.d.ts +0 -1
- package/dist/types/components.d.ts +15 -0
- package/package.json +1 -1
- package/dist/nylas-web-elements/p-14e194b2.entry.js +0 -2
- package/dist/nylas-web-elements/p-14e194b2.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-169a3f6d.entry.js +0 -2
- package/dist/nylas-web-elements/p-169a3f6d.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-670e4bd1.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-8ad09f72.entry.js +0 -2
- package/dist/nylas-web-elements/p-8ad09f72.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-d32d9a1d.entry.js.map +0 -1
|
@@ -94,7 +94,7 @@ function l5(t) {
|
|
|
94
94
|
var e, o, n;
|
|
95
95
|
return (n = (o = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || o === void 0 ? void 0 : o.getAttribute("content")) !== null && n !== void 0 ? n : void 0;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const d = (t, e, ...o) => {
|
|
98
98
|
let n = null, b = null, c = null, M = !1, p = !1;
|
|
99
99
|
const i = [], r = (z) => {
|
|
100
100
|
for (let s = 0; s < z.length; s++)
|
|
@@ -133,11 +133,11 @@ const u = (t, e, ...o) => {
|
|
|
133
133
|
}), q5 = (t) => {
|
|
134
134
|
if (typeof t.vtag == "function") {
|
|
135
135
|
const o = Object.assign({}, t.vattrs);
|
|
136
|
-
return t.vkey && (o.key = t.vkey), t.vname && (o.name = t.vname),
|
|
136
|
+
return t.vkey && (o.key = t.vkey), t.vname && (o.name = t.vname), d(t.vtag, o, ...t.vchildren || []);
|
|
137
137
|
}
|
|
138
138
|
const e = ho(t.vtag, t.vtext);
|
|
139
139
|
return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
|
|
140
|
-
}, h5 = (t) => Y5.map((e) => e(t)).find((e) => !!e), W5 = (t, e) => t != null && !vc(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, no = (t) => t,
|
|
140
|
+
}, h5 = (t) => Y5.map((e) => e(t)).find((e) => !!e), W5 = (t, e) => t != null && !vc(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, no = (t) => t, M0 = (t, e, o) => {
|
|
141
141
|
const n = no(t);
|
|
142
142
|
return {
|
|
143
143
|
emit: (b) => g5(n, e, {
|
|
@@ -255,7 +255,7 @@ const u = (t, e, ...o) => {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
}, v5 = (t, e, o, n, b = !1) => {
|
|
258
|
-
let c = 0, M = 0, p = 0, i = 0, r = e.length - 1, a = e[0], z = e[r], s = n.length - 1, O = n[0],
|
|
258
|
+
let c = 0, M = 0, p = 0, i = 0, r = e.length - 1, a = e[0], z = e[r], s = n.length - 1, O = n[0], u = n[s], A, l;
|
|
259
259
|
for (; c <= r && M <= s; )
|
|
260
260
|
if (a == null)
|
|
261
261
|
a = e[++c];
|
|
@@ -263,16 +263,16 @@ const u = (t, e, ...o) => {
|
|
|
263
263
|
z = e[--r];
|
|
264
264
|
else if (O == null)
|
|
265
265
|
O = n[++M];
|
|
266
|
-
else if (
|
|
267
|
-
|
|
266
|
+
else if (u == null)
|
|
267
|
+
u = n[--s];
|
|
268
268
|
else if (Et(a, O, b))
|
|
269
269
|
b2(a, O, b), a = e[++c], O = n[++M];
|
|
270
|
-
else if (Et(z,
|
|
271
|
-
b2(z,
|
|
272
|
-
else if (Et(a,
|
|
273
|
-
(a.$tag$ === "slot" ||
|
|
270
|
+
else if (Et(z, u, b))
|
|
271
|
+
b2(z, u, b), z = e[--r], u = n[--s];
|
|
272
|
+
else if (Et(a, u, b))
|
|
273
|
+
(a.$tag$ === "slot" || u.$tag$ === "slot") && et(a.$elm$.parentNode, !1), b2(a, u, b), t.insertBefore(a.$elm$, z.$elm$.nextSibling), a = e[++c], u = n[--s];
|
|
274
274
|
else if (Et(z, O, b))
|
|
275
|
-
(a.$tag$ === "slot" ||
|
|
275
|
+
(a.$tag$ === "slot" || u.$tag$ === "slot") && et(z.$elm$.parentNode, !1), b2(z, O, b), t.insertBefore(z.$elm$, a.$elm$), z = e[--r], O = n[++M];
|
|
276
276
|
else {
|
|
277
277
|
for (p = -1, i = c; i <= r; ++i)
|
|
278
278
|
if (e[i] && e[i].$key$ !== null && e[i].$key$ === O.$key$) {
|
|
@@ -334,7 +334,7 @@ const u = (t, e, ...o) => {
|
|
|
334
334
|
t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(ji);
|
|
335
335
|
}, N5 = (t, e, o = !1) => {
|
|
336
336
|
var n, b, c, M, p;
|
|
337
|
-
const i = t.$hostElement$, r = t.$cmpMeta$, a = t.$vnode$ || ho(null, null), z = A5(e) ? e :
|
|
337
|
+
const i = t.$hostElement$, r = t.$cmpMeta$, a = t.$vnode$ || ho(null, null), z = A5(e) ? e : d(null, null, e);
|
|
338
338
|
if (Q2 = i.tagName, r.$attrsToReflect$ && (z.$attrs$ = z.$attrs$ || {}, r.$attrsToReflect$.map(([s, O]) => z.$attrs$[O] = i[s])), o && z.$attrs$)
|
|
339
339
|
for (const s of Object.keys(z.$attrs$))
|
|
340
340
|
i.hasAttribute(s) && !["key", "ref", "style", "class"].includes(s) && (z.$attrs$[s] = i[s]);
|
|
@@ -345,15 +345,15 @@ const u = (t, e, ...o) => {
|
|
|
345
345
|
for (const s of J1) {
|
|
346
346
|
const O = s.$nodeToRelocate$;
|
|
347
347
|
if (!O["s-ol"]) {
|
|
348
|
-
const
|
|
349
|
-
|
|
348
|
+
const u = g1.createTextNode("");
|
|
349
|
+
u["s-nr"] = O, O.parentNode.insertBefore(O["s-ol"] = u, O);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
for (const s of J1) {
|
|
353
|
-
const O = s.$nodeToRelocate$,
|
|
354
|
-
if (
|
|
355
|
-
const A =
|
|
356
|
-
let l =
|
|
353
|
+
const O = s.$nodeToRelocate$, u = s.$slotRefNode$;
|
|
354
|
+
if (u) {
|
|
355
|
+
const A = u.parentNode;
|
|
356
|
+
let l = u.nextSibling;
|
|
357
357
|
{
|
|
358
358
|
let f = (n = O["s-ol"]) === null || n === void 0 ? void 0 : n.previousSibling;
|
|
359
359
|
for (; f; ) {
|
|
@@ -653,12 +653,12 @@ function on(t, e, o, n, b) {
|
|
|
653
653
|
return (O ? -1 : 1) * M * Math.pow(2, c - n);
|
|
654
654
|
}
|
|
655
655
|
function Vi(t, e, o, n, b, c) {
|
|
656
|
-
var M, p, i, r = c * 8 - b - 1, a = (1 << r) - 1, z = a >> 1, s = b === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = n ? 0 : c - 1,
|
|
657
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (p = isNaN(e) ? 1 : 0, M = a) : (M = Math.floor(Math.log(e) / Math.LN2), e * (i = Math.pow(2, -M)) < 1 && (M--, i *= 2), M + z >= 1 ? e += s / i : e += s * Math.pow(2, 1 - z), e * i >= 2 && (M++, i /= 2), M + z >= a ? (p = 0, M = a) : M + z >= 1 ? (p = (e * i - 1) * Math.pow(2, b), M = M + z) : (p = e * Math.pow(2, z - 1) * Math.pow(2, b), M = 0)); b >= 8; t[o + O] = p & 255, O +=
|
|
656
|
+
var M, p, i, r = c * 8 - b - 1, a = (1 << r) - 1, z = a >> 1, s = b === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = n ? 0 : c - 1, u = n ? 1 : -1, A = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
657
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (p = isNaN(e) ? 1 : 0, M = a) : (M = Math.floor(Math.log(e) / Math.LN2), e * (i = Math.pow(2, -M)) < 1 && (M--, i *= 2), M + z >= 1 ? e += s / i : e += s * Math.pow(2, 1 - z), e * i >= 2 && (M++, i /= 2), M + z >= a ? (p = 0, M = a) : M + z >= 1 ? (p = (e * i - 1) * Math.pow(2, b), M = M + z) : (p = e * Math.pow(2, z - 1) * Math.pow(2, b), M = 0)); b >= 8; t[o + O] = p & 255, O += u, p /= 256, b -= 8)
|
|
658
658
|
;
|
|
659
|
-
for (M = M << b | p, r += b; r > 0; t[o + O] = M & 255, O +=
|
|
659
|
+
for (M = M << b | p, r += b; r > 0; t[o + O] = M & 255, O += u, M /= 256, r -= 8)
|
|
660
660
|
;
|
|
661
|
-
t[o + O -
|
|
661
|
+
t[o + O - u] |= A * 128;
|
|
662
662
|
}
|
|
663
663
|
var bq = {}.toString, Zi = Array.isArray || function(t) {
|
|
664
664
|
return bq.call(t) == "[object Array]";
|
|
@@ -961,8 +961,8 @@ function cp(t, e, o, n, b) {
|
|
|
961
961
|
return -1;
|
|
962
962
|
c = 2, M /= 2, p /= 2, o /= 2;
|
|
963
963
|
}
|
|
964
|
-
function i(O,
|
|
965
|
-
return c === 1 ? O[
|
|
964
|
+
function i(O, u) {
|
|
965
|
+
return c === 1 ? O[u] : O.readUInt16BE(u * c);
|
|
966
966
|
}
|
|
967
967
|
var r;
|
|
968
968
|
if (b) {
|
|
@@ -1487,7 +1487,7 @@ var wq = { exports: {} };
|
|
|
1487
1487
|
(function(o, n) {
|
|
1488
1488
|
t.exports = n();
|
|
1489
1489
|
})(u1, function() {
|
|
1490
|
-
var o = 1e3, n = 6e4, b = 36e5, c = "millisecond", M = "second", p = "minute", i = "hour", r = "day", a = "week", z = "month", s = "quarter", O = "year",
|
|
1490
|
+
var o = 1e3, n = 6e4, b = 36e5, c = "millisecond", M = "second", p = "minute", i = "hour", r = "day", a = "week", z = "month", s = "quarter", O = "year", u = "date", A = "Invalid Date", l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, f = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, h = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
|
|
1491
1491
|
var y = ["th", "st", "nd", "rd"], q = v % 100;
|
|
1492
1492
|
return "[" + v + (y[(q - 20) % 10] || y[q] || y[0]) + "]";
|
|
1493
1493
|
} }, L = function(v, y, q) {
|
|
@@ -1498,31 +1498,31 @@ var wq = { exports: {} };
|
|
|
1498
1498
|
return (y <= 0 ? "+" : "-") + L(R, 2, "0") + ":" + L(g, 2, "0");
|
|
1499
1499
|
}, m: function v(y, q) {
|
|
1500
1500
|
if (y.date() < q.date()) return -v(q, y);
|
|
1501
|
-
var R = 12 * (q.year() - y.year()) + (q.month() - y.month()), g = y.clone().add(R, z),
|
|
1502
|
-
return +(-(R + (q - g) / (
|
|
1501
|
+
var R = 12 * (q.year() - y.year()) + (q.month() - y.month()), g = y.clone().add(R, z), T = q - g < 0, P = y.clone().add(R + (T ? -1 : 1), z);
|
|
1502
|
+
return +(-(R + (q - g) / (T ? g - P : P - g)) || 0);
|
|
1503
1503
|
}, a: function(v) {
|
|
1504
1504
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
1505
1505
|
}, p: function(v) {
|
|
1506
|
-
return { M: z, y: O, w: a, d: r, D:
|
|
1506
|
+
return { M: z, y: O, w: a, d: r, D: u, h: i, m: p, s: M, ms: c, Q: s }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
1507
1507
|
}, u: function(v) {
|
|
1508
1508
|
return v === void 0;
|
|
1509
|
-
} },
|
|
1510
|
-
k
|
|
1509
|
+
} }, k = "en", w = {};
|
|
1510
|
+
w[k] = h;
|
|
1511
1511
|
var N = function(v) {
|
|
1512
1512
|
return v instanceof m;
|
|
1513
1513
|
}, V = function v(y, q, R) {
|
|
1514
1514
|
var g;
|
|
1515
|
-
if (!y) return
|
|
1515
|
+
if (!y) return k;
|
|
1516
1516
|
if (typeof y == "string") {
|
|
1517
|
-
var
|
|
1518
|
-
|
|
1517
|
+
var T = y.toLowerCase();
|
|
1518
|
+
w[T] && (g = T), q && (w[T] = q, g = T);
|
|
1519
1519
|
var P = y.split("-");
|
|
1520
1520
|
if (!g && P.length > 1) return v(P[0]);
|
|
1521
1521
|
} else {
|
|
1522
1522
|
var Z = y.name;
|
|
1523
|
-
|
|
1523
|
+
w[Z] = y, g = Z;
|
|
1524
1524
|
}
|
|
1525
|
-
return !R && g && (
|
|
1525
|
+
return !R && g && (k = g), g || !R && k;
|
|
1526
1526
|
}, x = function(v, y) {
|
|
1527
1527
|
if (N(v)) return v.clone();
|
|
1528
1528
|
var q = typeof y == "object" ? y : {};
|
|
@@ -1538,7 +1538,7 @@ var wq = { exports: {} };
|
|
|
1538
1538
|
var y = v.prototype;
|
|
1539
1539
|
return y.parse = function(q) {
|
|
1540
1540
|
this.$d = function(R) {
|
|
1541
|
-
var g = R.date,
|
|
1541
|
+
var g = R.date, T = R.utc;
|
|
1542
1542
|
if (g === null) return /* @__PURE__ */ new Date(NaN);
|
|
1543
1543
|
if (F.u(g)) return /* @__PURE__ */ new Date();
|
|
1544
1544
|
if (g instanceof Date) return new Date(g);
|
|
@@ -1546,7 +1546,7 @@ var wq = { exports: {} };
|
|
|
1546
1546
|
var P = g.match(l);
|
|
1547
1547
|
if (P) {
|
|
1548
1548
|
var Z = P[2] - 1 || 0, t0 = (P[7] || "0").substring(0, 3);
|
|
1549
|
-
return
|
|
1549
|
+
return T ? new Date(Date.UTC(P[1], Z, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, t0)) : new Date(P[1], Z, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, t0);
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
1552
|
return new Date(g);
|
|
@@ -1572,22 +1572,22 @@ var wq = { exports: {} };
|
|
|
1572
1572
|
}, y.valueOf = function() {
|
|
1573
1573
|
return this.$d.getTime();
|
|
1574
1574
|
}, y.startOf = function(q, R) {
|
|
1575
|
-
var g = this,
|
|
1575
|
+
var g = this, T = !!F.u(R) || R, P = F.p(q), Z = function(h0, _0) {
|
|
1576
1576
|
var c1 = F.w(g.$u ? Date.UTC(g.$y, _0, h0) : new Date(g.$y, _0, h0), g);
|
|
1577
|
-
return
|
|
1577
|
+
return T ? c1 : c1.endOf(r);
|
|
1578
1578
|
}, t0 = function(h0, _0) {
|
|
1579
|
-
return F.w(g.toDate()[h0].apply(g.toDate("s"), (
|
|
1580
|
-
}, Q = this.$W, E0 = this.$M,
|
|
1579
|
+
return F.w(g.toDate()[h0].apply(g.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_0)), g);
|
|
1580
|
+
}, Q = this.$W, E0 = this.$M, p0 = this.$D, c0 = "set" + (this.$u ? "UTC" : "");
|
|
1581
1581
|
switch (P) {
|
|
1582
1582
|
case O:
|
|
1583
|
-
return
|
|
1583
|
+
return T ? Z(1, 0) : Z(31, 11);
|
|
1584
1584
|
case z:
|
|
1585
|
-
return
|
|
1585
|
+
return T ? Z(1, E0) : Z(0, E0 + 1);
|
|
1586
1586
|
case a:
|
|
1587
1587
|
var C0 = this.$locale().weekStart || 0, i0 = (Q < C0 ? Q + 7 : Q) - C0;
|
|
1588
|
-
return Z(
|
|
1588
|
+
return Z(T ? p0 - i0 : p0 + (6 - i0), E0);
|
|
1589
1589
|
case r:
|
|
1590
|
-
case
|
|
1590
|
+
case u:
|
|
1591
1591
|
return t0(c0 + "Hours", 0);
|
|
1592
1592
|
case i:
|
|
1593
1593
|
return t0(c0 + "Minutes", 1);
|
|
@@ -1601,10 +1601,10 @@ var wq = { exports: {} };
|
|
|
1601
1601
|
}, y.endOf = function(q) {
|
|
1602
1602
|
return this.startOf(q, !1);
|
|
1603
1603
|
}, y.$set = function(q, R) {
|
|
1604
|
-
var g,
|
|
1605
|
-
if (
|
|
1606
|
-
var Q = this.clone().set(
|
|
1607
|
-
Q.$d[Z](t0), Q.init(), this.$d = Q.set(
|
|
1604
|
+
var g, T = F.p(q), P = "set" + (this.$u ? "UTC" : ""), Z = (g = {}, g[r] = P + "Date", g[u] = P + "Date", g[z] = P + "Month", g[O] = P + "FullYear", g[i] = P + "Hours", g[p] = P + "Minutes", g[M] = P + "Seconds", g[c] = P + "Milliseconds", g)[T], t0 = T === r ? this.$D + (R - this.$W) : R;
|
|
1605
|
+
if (T === z || T === O) {
|
|
1606
|
+
var Q = this.clone().set(u, 1);
|
|
1607
|
+
Q.$d[Z](t0), Q.init(), this.$d = Q.set(u, Math.min(this.$D, Q.daysInMonth())).$d;
|
|
1608
1608
|
} else Z && this.$d[Z](t0);
|
|
1609
1609
|
return this.init(), this;
|
|
1610
1610
|
}, y.set = function(q, R) {
|
|
@@ -1612,11 +1612,11 @@ var wq = { exports: {} };
|
|
|
1612
1612
|
}, y.get = function(q) {
|
|
1613
1613
|
return this[F.p(q)]();
|
|
1614
1614
|
}, y.add = function(q, R) {
|
|
1615
|
-
var g,
|
|
1615
|
+
var g, T = this;
|
|
1616
1616
|
q = Number(q);
|
|
1617
1617
|
var P = F.p(R), Z = function(E0) {
|
|
1618
|
-
var
|
|
1619
|
-
return F.w(
|
|
1618
|
+
var p0 = x(T);
|
|
1619
|
+
return F.w(p0.date(p0.date() + Math.round(E0 * q)), T);
|
|
1620
1620
|
};
|
|
1621
1621
|
if (P === z) return this.set(z, this.$M + q);
|
|
1622
1622
|
if (P === O) return this.set(O, this.$y + q);
|
|
@@ -1629,30 +1629,30 @@ var wq = { exports: {} };
|
|
|
1629
1629
|
}, y.format = function(q) {
|
|
1630
1630
|
var R = this, g = this.$locale();
|
|
1631
1631
|
if (!this.isValid()) return g.invalidDate || A;
|
|
1632
|
-
var
|
|
1633
|
-
return _0 && (_0[c1] || _0(R,
|
|
1632
|
+
var T = q || "YYYY-MM-DDTHH:mm:ssZ", P = F.z(this), Z = this.$H, t0 = this.$m, Q = this.$M, E0 = g.weekdays, p0 = g.months, c0 = function(_0, c1, T2, N1) {
|
|
1633
|
+
return _0 && (_0[c1] || _0(R, T)) || T2[c1].slice(0, N1);
|
|
1634
1634
|
}, C0 = function(_0) {
|
|
1635
1635
|
return F.s(Z % 12 || 12, _0, "0");
|
|
1636
1636
|
}, i0 = g.meridiem || function(_0, c1, T2) {
|
|
1637
1637
|
var N1 = _0 < 12 ? "AM" : "PM";
|
|
1638
1638
|
return T2 ? N1.toLowerCase() : N1;
|
|
1639
|
-
}, h0 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: F.s(Q + 1, 2, "0"), MMM: c0(g.monthsShort, Q,
|
|
1640
|
-
return
|
|
1639
|
+
}, h0 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: F.s(Q + 1, 2, "0"), MMM: c0(g.monthsShort, Q, p0, 3), MMMM: c0(p0, Q), D: this.$D, DD: F.s(this.$D, 2, "0"), d: String(this.$W), dd: c0(g.weekdaysMin, this.$W, E0, 2), ddd: c0(g.weekdaysShort, this.$W, E0, 3), dddd: E0[this.$W], H: String(Z), HH: F.s(Z, 2, "0"), h: C0(1), hh: C0(2), a: i0(Z, t0, !0), A: i0(Z, t0, !1), m: String(t0), mm: F.s(t0, 2, "0"), s: String(this.$s), ss: F.s(this.$s, 2, "0"), SSS: F.s(this.$ms, 3, "0"), Z: P };
|
|
1640
|
+
return T.replace(f, function(_0, c1) {
|
|
1641
1641
|
return c1 || h0[_0] || P.replace(":", "");
|
|
1642
1642
|
});
|
|
1643
1643
|
}, y.utcOffset = function() {
|
|
1644
1644
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1645
1645
|
}, y.diff = function(q, R, g) {
|
|
1646
|
-
var
|
|
1647
|
-
return E0 = (
|
|
1646
|
+
var T, P = F.p(R), Z = x(q), t0 = (Z.utcOffset() - this.utcOffset()) * n, Q = this - Z, E0 = F.m(this, Z);
|
|
1647
|
+
return E0 = (T = {}, T[O] = E0 / 12, T[z] = E0, T[s] = E0 / 3, T[a] = (Q - t0) / 6048e5, T[r] = (Q - t0) / 864e5, T[i] = Q / b, T[p] = Q / n, T[M] = Q / o, T)[P] || Q, g ? E0 : F.a(E0);
|
|
1648
1648
|
}, y.daysInMonth = function() {
|
|
1649
1649
|
return this.endOf(z).$D;
|
|
1650
1650
|
}, y.$locale = function() {
|
|
1651
|
-
return
|
|
1651
|
+
return w[this.$L];
|
|
1652
1652
|
}, y.locale = function(q, R) {
|
|
1653
1653
|
if (!q) return this.$L;
|
|
1654
|
-
var g = this.clone(),
|
|
1655
|
-
return
|
|
1654
|
+
var g = this.clone(), T = V(q, R, !0);
|
|
1655
|
+
return T && (g.$L = T), g;
|
|
1656
1656
|
}, y.clone = function() {
|
|
1657
1657
|
return F.w(this.$d, this);
|
|
1658
1658
|
}, y.toDate = function() {
|
|
@@ -1665,7 +1665,7 @@ var wq = { exports: {} };
|
|
|
1665
1665
|
return this.$d.toUTCString();
|
|
1666
1666
|
}, v;
|
|
1667
1667
|
}(), C = m.prototype;
|
|
1668
|
-
return x.prototype = C, [["$ms", c], ["$s", M], ["$m", p], ["$H", i], ["$W", r], ["$M", z], ["$y", O], ["$D",
|
|
1668
|
+
return x.prototype = C, [["$ms", c], ["$s", M], ["$m", p], ["$H", i], ["$W", r], ["$M", z], ["$y", O], ["$D", u]].forEach(function(v) {
|
|
1669
1669
|
C[v[1]] = function(y) {
|
|
1670
1670
|
return this.$g(y, v[0], v[1]);
|
|
1671
1671
|
};
|
|
@@ -1673,7 +1673,7 @@ var wq = { exports: {} };
|
|
|
1673
1673
|
return v.$i || (v(y, m, x), v.$i = !0), x;
|
|
1674
1674
|
}, x.locale = V, x.isDayjs = N, x.unix = function(v) {
|
|
1675
1675
|
return x(1e3 * v);
|
|
1676
|
-
}, x.en = k
|
|
1676
|
+
}, x.en = w[k], x.Ls = w, x.p = {}, x;
|
|
1677
1677
|
});
|
|
1678
1678
|
})(wq);
|
|
1679
1679
|
var gb = [
|
|
@@ -2189,10 +2189,10 @@ function dr(t, e) {
|
|
|
2189
2189
|
for (; n.accept("comma"); ) {
|
|
2190
2190
|
if (n.isDone())
|
|
2191
2191
|
throw new Error("Unexpected end");
|
|
2192
|
-
var
|
|
2193
|
-
if (!
|
|
2192
|
+
var u = i();
|
|
2193
|
+
if (!u)
|
|
2194
2194
|
throw new Error("Unexpected symbol " + n.symbol + ", expected weekday");
|
|
2195
|
-
o.byweekday.push(n0[
|
|
2195
|
+
o.byweekday.push(n0[u]), n.nextSymbol();
|
|
2196
2196
|
}
|
|
2197
2197
|
a(), z();
|
|
2198
2198
|
break;
|
|
@@ -2228,9 +2228,9 @@ function dr(t, e) {
|
|
|
2228
2228
|
var s = n.accept("on"), O = n.accept("the");
|
|
2229
2229
|
if (s || O)
|
|
2230
2230
|
do {
|
|
2231
|
-
var
|
|
2232
|
-
if (
|
|
2233
|
-
A ? (n.nextSymbol(), o.byweekday || (o.byweekday = []), o.byweekday.push(n0[A].nth(
|
|
2231
|
+
var u = r(), A = i(), l = p();
|
|
2232
|
+
if (u)
|
|
2233
|
+
A ? (n.nextSymbol(), o.byweekday || (o.byweekday = []), o.byweekday.push(n0[A].nth(u))) : (o.bymonthday || (o.bymonthday = []), o.bymonthday.push(u), n.accept("day(s)"));
|
|
2234
2234
|
else if (A)
|
|
2235
2235
|
n.nextSymbol(), o.byweekday || (o.byweekday = []), o.byweekday.push(n0[A]);
|
|
2236
2236
|
else if (n.symbol === "weekday(s)")
|
|
@@ -2709,8 +2709,8 @@ function Bb(t) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
2711
|
var z = e.map(function(O) {
|
|
2712
|
-
var
|
|
2713
|
-
return "".concat(
|
|
2712
|
+
var u = O[0], A = O[1];
|
|
2713
|
+
return "".concat(u, "=").concat(A.toString());
|
|
2714
2714
|
}).join(";"), s = "";
|
|
2715
2715
|
return z !== "" && (s = "RRULE:".concat(z)), [o, s].filter(function(O) {
|
|
2716
2716
|
return !!O;
|
|
@@ -2772,8 +2772,8 @@ function s6(t, e) {
|
|
|
2772
2772
|
p.wnomask = d0(0, n + 7);
|
|
2773
2773
|
var i, r, a = i = l1(7 - M + e.wkst, 7);
|
|
2774
2774
|
a >= 4 ? (a = 0, r = p.yearlen + l1(M - e.wkst, 7)) : r = n - a;
|
|
2775
|
-
for (var z = Math.floor(r / 7), s = l1(r, 7), O = Math.floor(z + s / 4),
|
|
2776
|
-
var A = e.byweekno[
|
|
2775
|
+
for (var z = Math.floor(r / 7), s = l1(r, 7), O = Math.floor(z + s / 4), u = 0; u < e.byweekno.length; u++) {
|
|
2776
|
+
var A = e.byweekno[u];
|
|
2777
2777
|
if (A < 0 && (A += O + 1), A > 0 && A <= O) {
|
|
2778
2778
|
var l = void 0;
|
|
2779
2779
|
A > 1 ? (l = a + (A - 1) * 7, a !== i && (l -= 7 - i)) : l = a;
|
|
@@ -2784,7 +2784,7 @@ function s6(t, e) {
|
|
|
2784
2784
|
if (y0(e.byweekno, 1)) {
|
|
2785
2785
|
var l = a + O * 7;
|
|
2786
2786
|
if (a !== i && (l -= 7 - i), l < n)
|
|
2787
|
-
for (var
|
|
2787
|
+
for (var u = 0; u < 7 && (p.wnomask[l] = 1, l += 1, p.wdaymask[l] !== e.wkst); u++)
|
|
2788
2788
|
;
|
|
2789
2789
|
}
|
|
2790
2790
|
if (a) {
|
|
@@ -2792,8 +2792,8 @@ function s6(t, e) {
|
|
|
2792
2792
|
if (y0(e.byweekno, -1))
|
|
2793
2793
|
h = -1;
|
|
2794
2794
|
else {
|
|
2795
|
-
var L = f2(Pe(t - 1, 1, 1)), B = l1(7 - L.valueOf() + e.wkst, 7),
|
|
2796
|
-
B >= 4 ? (B = 0,
|
|
2795
|
+
var L = f2(Pe(t - 1, 1, 1)), B = l1(7 - L.valueOf() + e.wkst, 7), k = F2(t - 1) ? 366 : 365, w = void 0;
|
|
2796
|
+
B >= 4 ? (B = 0, w = k + l1(L - e.wkst, 7)) : w = n - a, h = Math.floor(52 + l1(w, 7) / 4);
|
|
2797
2797
|
}
|
|
2798
2798
|
if (y0(e.byweekno, h))
|
|
2799
2799
|
for (var l = 0; l < a; l++)
|
|
@@ -2835,14 +2835,14 @@ function u6(t, e, o, n, b, c) {
|
|
|
2835
2835
|
M.nwdaymask = d0(0, o);
|
|
2836
2836
|
for (var i = 0; i < p.length; i++)
|
|
2837
2837
|
for (var r = p[i], a = r[0], z = r[1] - 1, s = 0; s < c.bynweekday.length; s++) {
|
|
2838
|
-
var O = void 0,
|
|
2838
|
+
var O = void 0, u = c.bynweekday[s], A = u[0], l = u[1];
|
|
2839
2839
|
l < 0 ? (O = z + (l + 1) * 7, O -= l1(b[O] - A, 7)) : (O = a + (l - 1) * 7, O += l1(7 - b[O] + A, 7)), a <= O && O <= z && (M.nwdaymask[O] = 1);
|
|
2840
2840
|
}
|
|
2841
2841
|
return M;
|
|
2842
2842
|
}
|
|
2843
2843
|
function d6(t, e) {
|
|
2844
2844
|
e === void 0 && (e = 0);
|
|
2845
|
-
var o = t % 19, n = Math.floor(t / 100), b = t % 100, c = Math.floor(n / 4), M = n % 4, p = Math.floor((n + 8) / 25), i = Math.floor((n - p + 1) / 3), r = Math.floor(19 * o + n - c - i + 15) % 30, a = Math.floor(b / 4), z = b % 4, s = Math.floor(32 + 2 * M + 2 * a - r - z) % 7, O = Math.floor((o + 11 * r + 22 * s) / 451),
|
|
2845
|
+
var o = t % 19, n = Math.floor(t / 100), b = t % 100, c = Math.floor(n / 4), M = n % 4, p = Math.floor((n + 8) / 25), i = Math.floor((n - p + 1) / 3), r = Math.floor(19 * o + n - c - i + 15) % 30, a = Math.floor(b / 4), z = b % 4, s = Math.floor(32 + 2 * M + 2 * a - r - z) % 7, O = Math.floor((o + 11 * r + 22 * s) / 451), u = Math.floor((r + s - 7 * O + 114) / 31), A = (r + s - 7 * O + 114) % 31 + 1, l = Date.UTC(t, u - 1, A + e), f = Date.UTC(t, 0, 1);
|
|
2846
2846
|
return [Math.ceil((l - f) / (1e3 * 60 * 60 * 24))];
|
|
2847
2847
|
}
|
|
2848
2848
|
var l6 = (
|
|
@@ -2988,9 +2988,9 @@ function A6(t, e, o, n, b, c) {
|
|
|
2988
2988
|
var O = c[s];
|
|
2989
2989
|
I0(O) && z.push(O);
|
|
2990
2990
|
}
|
|
2991
|
-
var
|
|
2992
|
-
i < 0 ?
|
|
2993
|
-
var A = e[r], l = Or(b.yearordinal +
|
|
2991
|
+
var u = void 0;
|
|
2992
|
+
i < 0 ? u = z.slice(i)[0] : u = z[i];
|
|
2993
|
+
var A = e[r], l = Or(b.yearordinal + u), f = ur(l, A);
|
|
2994
2994
|
y0(M, f) || M.push(f);
|
|
2995
2995
|
}
|
|
2996
2996
|
return tt(M), M;
|
|
@@ -3002,9 +3002,9 @@ function Ar(t, e) {
|
|
|
3002
3002
|
var i = jq.fromDate(o), r = new l6(e);
|
|
3003
3003
|
r.rebuild(i.year, i.month);
|
|
3004
3004
|
for (var a = h6(r, i, e); ; ) {
|
|
3005
|
-
var z = r.getdayset(n)(i.year, i.month, i.day), s = z[0], O = z[1],
|
|
3005
|
+
var z = r.getdayset(n)(i.year, i.month, i.day), s = z[0], O = z[1], u = z[2], A = q6(s, O, u, r, e);
|
|
3006
3006
|
if (U0(M))
|
|
3007
|
-
for (var l = A6(M, a, O,
|
|
3007
|
+
for (var l = A6(M, a, O, u, r, s), f = 0; f < l.length; f++) {
|
|
3008
3008
|
var h = l[f];
|
|
3009
3009
|
if (c && h > c)
|
|
3010
3010
|
return H1(t);
|
|
@@ -3015,11 +3015,11 @@ function Ar(t, e) {
|
|
|
3015
3015
|
}
|
|
3016
3016
|
}
|
|
3017
3017
|
else
|
|
3018
|
-
for (var f = O; f <
|
|
3018
|
+
for (var f = O; f < u; f++) {
|
|
3019
3019
|
var B = s[f];
|
|
3020
3020
|
if (I0(B))
|
|
3021
|
-
for (var
|
|
3022
|
-
var N = a[
|
|
3021
|
+
for (var k = Or(r.yearordinal + B), w = 0; w < a.length; w++) {
|
|
3022
|
+
var N = a[w], h = ur(k, N);
|
|
3023
3023
|
if (c && h > c)
|
|
3024
3024
|
return H1(t);
|
|
3025
3025
|
if (h >= o) {
|
|
@@ -3155,8 +3155,8 @@ var h1 = {
|
|
|
3155
3155
|
function g6(t, e, o, n, b, c) {
|
|
3156
3156
|
var M = {}, p = t.accept;
|
|
3157
3157
|
function i(s, O) {
|
|
3158
|
-
o.forEach(function(
|
|
3159
|
-
|
|
3158
|
+
o.forEach(function(u) {
|
|
3159
|
+
u.between(s, O, !0).forEach(function(A) {
|
|
3160
3160
|
M[Number(A)] = !0;
|
|
3161
3161
|
});
|
|
3162
3162
|
});
|
|
@@ -3204,24 +3204,24 @@ function m6(t, e) {
|
|
|
3204
3204
|
return r.forEach(function(a) {
|
|
3205
3205
|
var z;
|
|
3206
3206
|
if (a) {
|
|
3207
|
-
var s = B6(a), O = s.name,
|
|
3207
|
+
var s = B6(a), O = s.name, u = s.parms, A = s.value;
|
|
3208
3208
|
switch (O.toUpperCase()) {
|
|
3209
3209
|
case "RRULE":
|
|
3210
|
-
if (
|
|
3211
|
-
throw new Error("unsupported RRULE parm: ".concat(
|
|
3210
|
+
if (u.length)
|
|
3211
|
+
throw new Error("unsupported RRULE parm: ".concat(u.join(",")));
|
|
3212
3212
|
o.push(Lb(a));
|
|
3213
3213
|
break;
|
|
3214
3214
|
case "RDATE":
|
|
3215
3215
|
var l = (z = /RDATE(?:;TZID=([^:=]+))?/i.exec(a)) !== null && z !== void 0 ? z : [], f = l[1];
|
|
3216
|
-
f && !i && (i = f), n = n.concat(hp(A,
|
|
3216
|
+
f && !i && (i = f), n = n.concat(hp(A, u));
|
|
3217
3217
|
break;
|
|
3218
3218
|
case "EXRULE":
|
|
3219
|
-
if (
|
|
3220
|
-
throw new Error("unsupported EXRULE parm: ".concat(
|
|
3219
|
+
if (u.length)
|
|
3220
|
+
throw new Error("unsupported EXRULE parm: ".concat(u.join(",")));
|
|
3221
3221
|
b.push(Lb(A));
|
|
3222
3222
|
break;
|
|
3223
3223
|
case "EXDATE":
|
|
3224
|
-
c = c.concat(hp(A,
|
|
3224
|
+
c = c.concat(hp(A, u));
|
|
3225
3225
|
break;
|
|
3226
3226
|
case "DTSTART":
|
|
3227
3227
|
break;
|
|
@@ -3792,7 +3792,7 @@ class wo extends Mn {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
const z = this.resolve(e, o);
|
|
3794
3794
|
let s = z && z.res;
|
|
3795
|
-
const O = z && z.usedKey || M,
|
|
3795
|
+
const O = z && z.usedKey || M, u = z && z.exactUsedKey || M, A = Object.prototype.toString.apply(s), l = ["[object Number]", "[object Function]", "[object RegExp]"], f = o.joinArrays !== void 0 ? o.joinArrays : this.options.joinArrays, h = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
3796
3796
|
if (h && s && (typeof s != "string" && typeof s != "boolean" && typeof s != "number") && l.indexOf(A) < 0 && !(typeof f == "string" && Array.isArray(s))) {
|
|
3797
3797
|
if (!o.returnObjects && !this.options.returnObjects) {
|
|
3798
3798
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
@@ -3803,53 +3803,53 @@ class wo extends Mn {
|
|
|
3803
3803
|
return b ? (z.res = B, z.usedParams = this.getUsedParamsDetails(o), z) : B;
|
|
3804
3804
|
}
|
|
3805
3805
|
if (c) {
|
|
3806
|
-
const B = Array.isArray(s),
|
|
3806
|
+
const B = Array.isArray(s), k = B ? [] : {}, w = B ? u : O;
|
|
3807
3807
|
for (const N in s)
|
|
3808
3808
|
if (Object.prototype.hasOwnProperty.call(s, N)) {
|
|
3809
|
-
const V = `${
|
|
3810
|
-
|
|
3809
|
+
const V = `${w}${c}${N}`;
|
|
3810
|
+
k[N] = this.translate(V, {
|
|
3811
3811
|
...o,
|
|
3812
3812
|
joinArrays: !1,
|
|
3813
3813
|
ns: p
|
|
3814
|
-
}),
|
|
3814
|
+
}), k[N] === V && (k[N] = s[N]);
|
|
3815
3815
|
}
|
|
3816
|
-
s =
|
|
3816
|
+
s = k;
|
|
3817
3817
|
}
|
|
3818
3818
|
} else if (h && typeof f == "string" && Array.isArray(s))
|
|
3819
3819
|
s = s.join(f), s && (s = this.extendTranslation(s, e, o, n));
|
|
3820
3820
|
else {
|
|
3821
|
-
let B = !1,
|
|
3822
|
-
const
|
|
3821
|
+
let B = !1, k = !1;
|
|
3822
|
+
const w = o.count !== void 0 && typeof o.count != "string", N = wo.hasDefaultValue(o), V = w ? this.pluralResolver.getSuffix(r, o.count, o) : "", x = o.ordinal && w ? this.pluralResolver.getSuffix(r, o.count, {
|
|
3823
3823
|
ordinal: !1
|
|
3824
|
-
}) : "", F =
|
|
3825
|
-
!this.isValidLookup(s) && N && (B = !0, s = m), this.isValidLookup(s) || (
|
|
3826
|
-
const v = (o.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
3827
|
-
if (
|
|
3824
|
+
}) : "", F = w && !o.ordinal && o.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = F && o[`defaultValue${this.options.pluralSeparator}zero`] || o[`defaultValue${V}`] || o[`defaultValue${x}`] || o.defaultValue;
|
|
3825
|
+
!this.isValidLookup(s) && N && (B = !0, s = m), this.isValidLookup(s) || (k = !0, s = M);
|
|
3826
|
+
const v = (o.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && k ? void 0 : s, y = N && m !== s && this.options.updateMissing;
|
|
3827
|
+
if (k || B || y) {
|
|
3828
3828
|
if (this.logger.log(y ? "updateKey" : "missingKey", r, i, M, y ? m : s), c) {
|
|
3829
|
-
const
|
|
3829
|
+
const T = this.resolve(M, {
|
|
3830
3830
|
...o,
|
|
3831
3831
|
keySeparator: !1
|
|
3832
3832
|
});
|
|
3833
|
-
|
|
3833
|
+
T && T.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
3834
3834
|
}
|
|
3835
3835
|
let q = [];
|
|
3836
3836
|
const R = this.languageUtils.getFallbackCodes(this.options.fallbackLng, o.lng || this.language);
|
|
3837
3837
|
if (this.options.saveMissingTo === "fallback" && R && R[0])
|
|
3838
|
-
for (let
|
|
3839
|
-
q.push(R[
|
|
3838
|
+
for (let T = 0; T < R.length; T++)
|
|
3839
|
+
q.push(R[T]);
|
|
3840
3840
|
else this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(o.lng || this.language) : q.push(o.lng || this.language);
|
|
3841
|
-
const g = (
|
|
3841
|
+
const g = (T, P, Z) => {
|
|
3842
3842
|
const t0 = N && Z !== s ? Z : v;
|
|
3843
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
3843
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(T, i, P, t0, y, o) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(T, i, P, t0, y, o), this.emit("missingKey", T, i, P, s);
|
|
3844
3844
|
};
|
|
3845
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
3846
|
-
const P = this.pluralResolver.getSuffixes(
|
|
3845
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && w ? q.forEach((T) => {
|
|
3846
|
+
const P = this.pluralResolver.getSuffixes(T, o);
|
|
3847
3847
|
F && o[`defaultValue${this.options.pluralSeparator}zero`] && P.indexOf(`${this.options.pluralSeparator}zero`) < 0 && P.push(`${this.options.pluralSeparator}zero`), P.forEach((Z) => {
|
|
3848
|
-
g([
|
|
3848
|
+
g([T], M + Z, o[`defaultValue${Z}`] || m);
|
|
3849
3849
|
});
|
|
3850
3850
|
}) : g(q, M, m));
|
|
3851
3851
|
}
|
|
3852
|
-
s = this.extendTranslation(s, e, o, z, n),
|
|
3852
|
+
s = this.extendTranslation(s, e, o, z, n), k && s === M && this.options.appendNamespaceToMissingKey && (s = `${i}:${M}`), (k || B) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? s = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${i}:${M}` : M, B ? s : void 0) : s = this.options.parseMissingKeyHandler(s));
|
|
3853
3853
|
}
|
|
3854
3854
|
return b ? (z.res = s, z.usedParams = this.getUsedParamsDetails(o), z) : s;
|
|
3855
3855
|
}
|
|
@@ -3885,8 +3885,8 @@ class wo extends Mn {
|
|
|
3885
3885
|
a < O && (n.nest = !1);
|
|
3886
3886
|
}
|
|
3887
3887
|
!n.lng && this.options.compatibilityAPI !== "v1" && b && b.res && (n.lng = b.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
3888
|
-
for (var s = arguments.length, O = new Array(s),
|
|
3889
|
-
O[
|
|
3888
|
+
for (var s = arguments.length, O = new Array(s), u = 0; u < s; u++)
|
|
3889
|
+
O[u] = arguments[u];
|
|
3890
3890
|
return c && c[0] === O[0] && !n.context ? (M.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${o[0]}`), null) : M.translate(...O, o);
|
|
3891
3891
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
3892
3892
|
}
|
|
@@ -3907,7 +3907,7 @@ class wo extends Mn {
|
|
|
3907
3907
|
b = a;
|
|
3908
3908
|
let z = r.namespaces;
|
|
3909
3909
|
this.options.fallbackNS && (z = z.concat(this.options.fallbackNS));
|
|
3910
|
-
const s = o.count !== void 0 && typeof o.count != "string", O = s && !o.ordinal && o.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
3910
|
+
const s = o.count !== void 0 && typeof o.count != "string", O = s && !o.ordinal && o.count === 0 && this.pluralResolver.shouldUseIntlApi(), u = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", A = o.lngs ? o.lngs : this.languageUtils.toResolveHierarchy(o.lng || this.language, o.fallbackLng);
|
|
3911
3911
|
z.forEach((l) => {
|
|
3912
3912
|
this.isValidLookup(n) || (p = l, !vp[`${A[0]}-${l}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(p) && (vp[`${A[0]}-${l}`] = !0, this.logger.warn(`key "${b}" for languages "${A.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), A.forEach((f) => {
|
|
3913
3913
|
if (this.isValidLookup(n)) return;
|
|
@@ -3918,10 +3918,10 @@ class wo extends Mn {
|
|
|
3918
3918
|
else {
|
|
3919
3919
|
let B;
|
|
3920
3920
|
s && (B = this.pluralResolver.getSuffix(f, o.count, o));
|
|
3921
|
-
const
|
|
3922
|
-
if (s && (h.push(a + B), o.ordinal && B.indexOf(
|
|
3921
|
+
const k = `${this.options.pluralSeparator}zero`, w = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
3922
|
+
if (s && (h.push(a + B), o.ordinal && B.indexOf(w) === 0 && h.push(a + B.replace(w, this.options.pluralSeparator)), O && h.push(a + k)), u) {
|
|
3923
3923
|
const N = `${a}${this.options.contextSeparator}${o.context}`;
|
|
3924
|
-
h.push(N), s && (h.push(N + B), o.ordinal && B.indexOf(
|
|
3924
|
+
h.push(N), s && (h.push(N + B), o.ordinal && B.indexOf(w) === 0 && h.push(N + B.replace(w, this.options.pluralSeparator)), O && h.push(N + k));
|
|
3925
3925
|
}
|
|
3926
3926
|
}
|
|
3927
3927
|
let L;
|
|
@@ -4286,13 +4286,13 @@ class G6 {
|
|
|
4286
4286
|
unescapePrefix: z,
|
|
4287
4287
|
nestingPrefix: s,
|
|
4288
4288
|
nestingPrefixEscaped: O,
|
|
4289
|
-
nestingSuffix:
|
|
4289
|
+
nestingSuffix: u,
|
|
4290
4290
|
nestingSuffixEscaped: A,
|
|
4291
4291
|
nestingOptionsSeparator: l,
|
|
4292
4292
|
maxReplaces: f,
|
|
4293
4293
|
alwaysFormat: h
|
|
4294
4294
|
} = e.interpolation;
|
|
4295
|
-
this.escape = o !== void 0 ? o : S6, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = b !== void 0 ? b : !1, this.prefix = c ? Ve(c) : M || "{{", this.suffix = p ? Ve(p) : i || "}}", this.formatSeparator = r || ",", this.unescapePrefix = a ? "" : z || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = s ? Ve(s) : O || Ve("$t("), this.nestingSuffix =
|
|
4295
|
+
this.escape = o !== void 0 ? o : S6, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = b !== void 0 ? b : !1, this.prefix = c ? Ve(c) : M || "{{", this.suffix = p ? Ve(p) : i || "}}", this.formatSeparator = r || ",", this.unescapePrefix = a ? "" : z || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = s ? Ve(s) : O || Ve("$t("), this.nestingSuffix = u ? Ve(u) : A || Ve(")"), this.nestingOptionsSeparator = l || ",", this.maxReplaces = f || 1e3, this.alwaysFormat = h !== void 0 ? h : !1, this.resetRegExp();
|
|
4296
4296
|
}
|
|
4297
4297
|
reset() {
|
|
4298
4298
|
this.options && this.init(this.options);
|
|
@@ -4304,19 +4304,19 @@ class G6 {
|
|
|
4304
4304
|
interpolate(e, o, n, b) {
|
|
4305
4305
|
let c, M, p;
|
|
4306
4306
|
const i = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
4307
|
-
function r(
|
|
4308
|
-
return
|
|
4307
|
+
function r(u) {
|
|
4308
|
+
return u.replace(/\$/g, "$$$$");
|
|
4309
4309
|
}
|
|
4310
|
-
const a = (
|
|
4311
|
-
if (
|
|
4312
|
-
const h = wp(o, i,
|
|
4310
|
+
const a = (u) => {
|
|
4311
|
+
if (u.indexOf(this.formatSeparator) < 0) {
|
|
4312
|
+
const h = wp(o, i, u, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
4313
4313
|
return this.alwaysFormat ? this.format(h, void 0, n, {
|
|
4314
4314
|
...b,
|
|
4315
4315
|
...o,
|
|
4316
|
-
interpolationkey:
|
|
4316
|
+
interpolationkey: u
|
|
4317
4317
|
}) : h;
|
|
4318
4318
|
}
|
|
4319
|
-
const A =
|
|
4319
|
+
const A = u.split(this.formatSeparator), l = A.shift().trim(), f = A.join(this.formatSeparator).trim();
|
|
4320
4320
|
return this.format(wp(o, i, l, this.options.keySeparator, this.options.ignoreJSONStructure), f, n, {
|
|
4321
4321
|
...b,
|
|
4322
4322
|
...o,
|
|
@@ -4327,12 +4327,12 @@ class G6 {
|
|
|
4327
4327
|
const z = b && b.missingInterpolationHandler || this.options.missingInterpolationHandler, s = b && b.interpolation && b.interpolation.skipOnVariables !== void 0 ? b.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
4328
4328
|
return [{
|
|
4329
4329
|
regex: this.regexpUnescape,
|
|
4330
|
-
safeValue: (
|
|
4330
|
+
safeValue: (u) => r(u)
|
|
4331
4331
|
}, {
|
|
4332
4332
|
regex: this.regexp,
|
|
4333
|
-
safeValue: (
|
|
4334
|
-
}].forEach((
|
|
4335
|
-
for (p = 0; c =
|
|
4333
|
+
safeValue: (u) => this.escapeValue ? r(this.escape(u)) : r(u)
|
|
4334
|
+
}].forEach((u) => {
|
|
4335
|
+
for (p = 0; c = u.regex.exec(e); ) {
|
|
4336
4336
|
const A = c[1].trim();
|
|
4337
4337
|
if (M = a(A), M === void 0)
|
|
4338
4338
|
if (typeof z == "function") {
|
|
@@ -4346,8 +4346,8 @@ class G6 {
|
|
|
4346
4346
|
} else
|
|
4347
4347
|
this.logger.warn(`missed to pass in variable ${A} for interpolating ${e}`), M = "";
|
|
4348
4348
|
else typeof M != "string" && !this.useRawValueToEscape && (M = yp(M));
|
|
4349
|
-
const l =
|
|
4350
|
-
if (e = e.replace(c[0], l), s ? (
|
|
4349
|
+
const l = u.safeValue(M);
|
|
4350
|
+
if (e = e.replace(c[0], l), s ? (u.regex.lastIndex += M.length, u.regex.lastIndex -= c[0].length) : u.regex.lastIndex = 0, p++, p >= this.maxReplaces)
|
|
4351
4351
|
break;
|
|
4352
4352
|
}
|
|
4353
4353
|
}), e;
|
|
@@ -4360,8 +4360,8 @@ class G6 {
|
|
|
4360
4360
|
const z = i.split(new RegExp(`${a}[ ]*{`));
|
|
4361
4361
|
let s = `{${z[1]}`;
|
|
4362
4362
|
i = z[0], s = this.interpolate(s, M);
|
|
4363
|
-
const O = s.match(/'/g),
|
|
4364
|
-
(O && O.length % 2 === 0 && !
|
|
4363
|
+
const O = s.match(/'/g), u = s.match(/"/g);
|
|
4364
|
+
(O && O.length % 2 === 0 && !u || u.length % 2 !== 0) && (s = s.replace(/'/g, '"'));
|
|
4365
4365
|
try {
|
|
4366
4366
|
M = JSON.parse(s), r && (M = {
|
|
4367
4367
|
...r,
|
|
@@ -4743,11 +4743,11 @@ class ot extends Mn {
|
|
|
4743
4743
|
}), a && (!this.options.interpolation.format || this.options.interpolation.format === b.interpolation.format) && (s.formatter = c(a), s.formatter.init(s, this.options), this.options.interpolation.format = s.formatter.format.bind(s.formatter)), s.interpolator = new G6(this.options), s.utils = {
|
|
4744
4744
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
4745
4745
|
}, s.backendConnector = new J6(c(this.modules.backend), s.resourceStore, s, this.options), s.backendConnector.on("*", function(O) {
|
|
4746
|
-
for (var
|
|
4746
|
+
for (var u = arguments.length, A = new Array(u > 1 ? u - 1 : 0), l = 1; l < u; l++)
|
|
4747
4747
|
A[l - 1] = arguments[l];
|
|
4748
4748
|
e.emit(O, ...A);
|
|
4749
4749
|
}), this.modules.languageDetector && (s.languageDetector = c(this.modules.languageDetector), s.languageDetector.init && s.languageDetector.init(s, this.options.detection, this.options)), this.modules.i18nFormat && (s.i18nFormat = c(this.modules.i18nFormat), s.i18nFormat.init && s.i18nFormat.init(this)), this.translator = new wo(this.services, this.options), this.translator.on("*", function(O) {
|
|
4750
|
-
for (var
|
|
4750
|
+
for (var u = arguments.length, A = new Array(u > 1 ? u - 1 : 0), l = 1; l < u; l++)
|
|
4751
4751
|
A[l - 1] = arguments[l];
|
|
4752
4752
|
e.emit(O, ...A);
|
|
4753
4753
|
}), this.modules.external.forEach((O) => {
|
|
@@ -4851,7 +4851,7 @@ class ot extends Mn {
|
|
|
4851
4851
|
i.lng = i.lng || c.lng, i.lngs = i.lngs || c.lngs, i.ns = i.ns || c.ns, i.keyPrefix = i.keyPrefix || n || c.keyPrefix;
|
|
4852
4852
|
const s = b.options.keySeparator || ".";
|
|
4853
4853
|
let O;
|
|
4854
|
-
return i.keyPrefix && Array.isArray(M) ? O = M.map((
|
|
4854
|
+
return i.keyPrefix && Array.isArray(M) ? O = M.map((u) => `${i.keyPrefix}${s}${u}`) : O = i.keyPrefix ? `${i.keyPrefix}${s}${M}` : M, b.t(O, i);
|
|
4855
4855
|
};
|
|
4856
4856
|
return typeof e == "string" ? c.lng = e : c.lngs = e, c.ns = o, c.keyPrefix = n, c;
|
|
4857
4857
|
}
|
|
@@ -6273,11 +6273,11 @@ var Nb = {};
|
|
|
6273
6273
|
function O(m) {
|
|
6274
6274
|
return m >= r.UPPER_A && m <= r.UPPER_F || m >= r.LOWER_A && m <= r.LOWER_F;
|
|
6275
6275
|
}
|
|
6276
|
-
function
|
|
6276
|
+
function u(m) {
|
|
6277
6277
|
return m >= r.UPPER_A && m <= r.UPPER_Z || m >= r.LOWER_A && m <= r.LOWER_Z || s(m);
|
|
6278
6278
|
}
|
|
6279
6279
|
function A(m) {
|
|
6280
|
-
return m === r.EQUALS ||
|
|
6280
|
+
return m === r.EQUALS || u(m);
|
|
6281
6281
|
}
|
|
6282
6282
|
var l;
|
|
6283
6283
|
(function(m) {
|
|
@@ -6386,18 +6386,18 @@ var Nb = {};
|
|
|
6386
6386
|
return C += (0, p.fromCodePoint)(y);
|
|
6387
6387
|
});
|
|
6388
6388
|
return function(q, R) {
|
|
6389
|
-
for (var g = 0,
|
|
6390
|
-
C += q.slice(g,
|
|
6389
|
+
for (var g = 0, T = 0; (T = q.indexOf("&", T)) >= 0; ) {
|
|
6390
|
+
C += q.slice(g, T), v.startEntity(R);
|
|
6391
6391
|
var P = v.write(
|
|
6392
6392
|
q,
|
|
6393
6393
|
// Skip the "&"
|
|
6394
|
-
|
|
6394
|
+
T + 1
|
|
6395
6395
|
);
|
|
6396
6396
|
if (P < 0) {
|
|
6397
|
-
g =
|
|
6397
|
+
g = T + v.end();
|
|
6398
6398
|
break;
|
|
6399
6399
|
}
|
|
6400
|
-
g =
|
|
6400
|
+
g = T + P, T = P === 0 ? g + 1 : g;
|
|
6401
6401
|
}
|
|
6402
6402
|
var Z = C + q.slice(g);
|
|
6403
6403
|
return C = "", Z;
|
|
@@ -6411,10 +6411,10 @@ var Nb = {};
|
|
|
6411
6411
|
var g = y - R;
|
|
6412
6412
|
return g < 0 || g >= q ? -1 : m[v + g] - 1;
|
|
6413
6413
|
}
|
|
6414
|
-
for (var
|
|
6415
|
-
var Z =
|
|
6414
|
+
for (var T = v, P = T + q - 1; T <= P; ) {
|
|
6415
|
+
var Z = T + P >>> 1, t0 = m[Z];
|
|
6416
6416
|
if (t0 < y)
|
|
6417
|
-
|
|
6417
|
+
T = Z + 1;
|
|
6418
6418
|
else if (t0 > y)
|
|
6419
6419
|
P = Z - 1;
|
|
6420
6420
|
else
|
|
@@ -6423,21 +6423,21 @@ var Nb = {};
|
|
|
6423
6423
|
return -1;
|
|
6424
6424
|
}
|
|
6425
6425
|
t.determineBranch = B;
|
|
6426
|
-
var
|
|
6426
|
+
var k = L(c.default), w = L(M.default);
|
|
6427
6427
|
function N(m, C) {
|
|
6428
|
-
return C === void 0 && (C = f.Legacy),
|
|
6428
|
+
return C === void 0 && (C = f.Legacy), k(m, C);
|
|
6429
6429
|
}
|
|
6430
6430
|
t.decodeHTML = N;
|
|
6431
6431
|
function V(m) {
|
|
6432
|
-
return
|
|
6432
|
+
return k(m, f.Attribute);
|
|
6433
6433
|
}
|
|
6434
6434
|
t.decodeHTMLAttribute = V;
|
|
6435
6435
|
function x(m) {
|
|
6436
|
-
return
|
|
6436
|
+
return k(m, f.Strict);
|
|
6437
6437
|
}
|
|
6438
6438
|
t.decodeHTMLStrict = x;
|
|
6439
6439
|
function F(m) {
|
|
6440
|
-
return
|
|
6440
|
+
return w(m, f.Strict);
|
|
6441
6441
|
}
|
|
6442
6442
|
t.decodeXML = F;
|
|
6443
6443
|
})(T1);
|
|
@@ -7068,8 +7068,8 @@ class $c {
|
|
|
7068
7068
|
oncdata(e, o, n) {
|
|
7069
7069
|
var b, c, M, p, i, r, a, z, s, O;
|
|
7070
7070
|
this.endIndex = o;
|
|
7071
|
-
const
|
|
7072
|
-
this.options.xmlMode || this.options.recognizeCDATA ? ((c = (b = this.cbs).oncdatastart) === null || c === void 0 || c.call(b), (p = (M = this.cbs).ontext) === null || p === void 0 || p.call(M,
|
|
7071
|
+
const u = this.getSlice(e, o - n);
|
|
7072
|
+
this.options.xmlMode || this.options.recognizeCDATA ? ((c = (b = this.cbs).oncdatastart) === null || c === void 0 || c.call(b), (p = (M = this.cbs).ontext) === null || p === void 0 || p.call(M, u), (r = (i = this.cbs).oncdataend) === null || r === void 0 || r.call(i)) : ((z = (a = this.cbs).oncomment) === null || z === void 0 || z.call(a, `[CDATA[${u}]]`), (O = (s = this.cbs).oncommentend) === null || O === void 0 || O.call(s)), this.startIndex = o + 1;
|
|
7073
7073
|
}
|
|
7074
7074
|
/** @internal */
|
|
7075
7075
|
onend() {
|
|
@@ -8227,52 +8227,52 @@ var EW = q2, XW = EW, _A = { exports: {} };
|
|
|
8227
8227
|
B === "\r";
|
|
8228
8228
|
}
|
|
8229
8229
|
function n(B) {
|
|
8230
|
-
var
|
|
8231
|
-
if (
|
|
8232
|
-
return
|
|
8230
|
+
var k, w = B.exec(e.substring(l));
|
|
8231
|
+
if (w)
|
|
8232
|
+
return k = w[0], l += k.length, k;
|
|
8233
8233
|
}
|
|
8234
|
-
for (var b = e.length, c = /^[ \t\n\r\u000c]+/, M = /^[, \t\n\r\u000c]+/, p = /^[^ \t\n\r\u000c]+/, i = /[,]+$/, r = /^\d+$/, a = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, z, s, O,
|
|
8234
|
+
for (var b = e.length, c = /^[ \t\n\r\u000c]+/, M = /^[, \t\n\r\u000c]+/, p = /^[^ \t\n\r\u000c]+/, i = /[,]+$/, r = /^\d+$/, a = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, z, s, O, u, A, l = 0, f = []; ; ) {
|
|
8235
8235
|
if (n(M), l >= b)
|
|
8236
8236
|
return f;
|
|
8237
8237
|
z = n(p), s = [], z.slice(-1) === "," ? (z = z.replace(i, ""), L()) : h();
|
|
8238
8238
|
}
|
|
8239
8239
|
function h() {
|
|
8240
|
-
for (n(c), O = "",
|
|
8241
|
-
if (A = e.charAt(l),
|
|
8240
|
+
for (n(c), O = "", u = "in descriptor"; ; ) {
|
|
8241
|
+
if (A = e.charAt(l), u === "in descriptor")
|
|
8242
8242
|
if (o(A))
|
|
8243
|
-
O && (s.push(O), O = "",
|
|
8243
|
+
O && (s.push(O), O = "", u = "after descriptor");
|
|
8244
8244
|
else if (A === ",") {
|
|
8245
8245
|
l += 1, O && s.push(O), L();
|
|
8246
8246
|
return;
|
|
8247
8247
|
} else if (A === "(")
|
|
8248
|
-
O = O + A,
|
|
8248
|
+
O = O + A, u = "in parens";
|
|
8249
8249
|
else if (A === "") {
|
|
8250
8250
|
O && s.push(O), L();
|
|
8251
8251
|
return;
|
|
8252
8252
|
} else
|
|
8253
8253
|
O = O + A;
|
|
8254
|
-
else if (
|
|
8254
|
+
else if (u === "in parens")
|
|
8255
8255
|
if (A === ")")
|
|
8256
|
-
O = O + A,
|
|
8256
|
+
O = O + A, u = "in descriptor";
|
|
8257
8257
|
else if (A === "") {
|
|
8258
8258
|
s.push(O), L();
|
|
8259
8259
|
return;
|
|
8260
8260
|
} else
|
|
8261
8261
|
O = O + A;
|
|
8262
|
-
else if (
|
|
8262
|
+
else if (u === "after descriptor" && !o(A))
|
|
8263
8263
|
if (A === "") {
|
|
8264
8264
|
L();
|
|
8265
8265
|
return;
|
|
8266
8266
|
} else
|
|
8267
|
-
|
|
8267
|
+
u = "in descriptor", l -= 1;
|
|
8268
8268
|
l += 1;
|
|
8269
8269
|
}
|
|
8270
8270
|
}
|
|
8271
8271
|
function L() {
|
|
8272
|
-
var B = !1,
|
|
8272
|
+
var B = !1, k, w, N, V, x = {}, F, m, C, v, y;
|
|
8273
8273
|
for (V = 0; V < s.length; V++)
|
|
8274
|
-
F = s[V], m = F[F.length - 1], C = F.substring(0, F.length - 1), v = parseInt(C, 10), y = parseFloat(C), r.test(C) && m === "w" ? ((
|
|
8275
|
-
B ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + F + "'.") : (x.url = z,
|
|
8274
|
+
F = s[V], m = F[F.length - 1], C = F.substring(0, F.length - 1), v = parseInt(C, 10), y = parseFloat(C), r.test(C) && m === "w" ? ((k || w) && (B = !0), v === 0 ? B = !0 : k = v) : a.test(C) && m === "x" ? ((k || w || N) && (B = !0), y < 0 ? B = !0 : w = y) : r.test(C) && m === "h" ? ((N || w) && (B = !0), v === 0 ? B = !0 : N = v) : B = !0;
|
|
8275
|
+
B ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + F + "'.") : (x.url = z, k && (x.w = k), w && (x.d = w), N && (x.h = N), f.push(x));
|
|
8276
8276
|
}
|
|
8277
8277
|
};
|
|
8278
8278
|
});
|
|
@@ -9384,17 +9384,17 @@ var Qc = Fb;
|
|
|
9384
9384
|
Fb.default = Fb;
|
|
9385
9385
|
const $n = 39, ti = 34, Dt = 92, oi = 47, It = 10, E2 = 32, $t = 12, Pt = 9, Ft = 13, Og = 91, ug = 93, dg = 40, lg = 41, Ag = 123, fg = 125, qg = 59, hg = 42, Wg = 58, gg = 64, Ut = /[\t\n\f\r "#'()/;[\\\]{}]/g, jt = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, mg = /.[\n"'(/\\]/, ni = /[\da-f]/i;
|
|
9386
9386
|
var Rg = function(e, o = {}) {
|
|
9387
|
-
let n = e.css.valueOf(), b = o.ignoreErrors, c, M, p, i, r, a, z, s, O,
|
|
9387
|
+
let n = e.css.valueOf(), b = o.ignoreErrors, c, M, p, i, r, a, z, s, O, u, A = n.length, l = 0, f = [], h = [];
|
|
9388
9388
|
function L() {
|
|
9389
9389
|
return l;
|
|
9390
9390
|
}
|
|
9391
9391
|
function B(V) {
|
|
9392
9392
|
throw e.error("Unclosed " + V, l);
|
|
9393
9393
|
}
|
|
9394
|
-
function
|
|
9394
|
+
function k() {
|
|
9395
9395
|
return h.length === 0 && l >= A;
|
|
9396
9396
|
}
|
|
9397
|
-
function
|
|
9397
|
+
function w(V) {
|
|
9398
9398
|
if (h.length) return h.pop();
|
|
9399
9399
|
if (l >= A) return;
|
|
9400
9400
|
let x = V ? V.ignoreUnclosed : !1;
|
|
@@ -9408,7 +9408,7 @@ var Rg = function(e, o = {}) {
|
|
|
9408
9408
|
do
|
|
9409
9409
|
M += 1, c = n.charCodeAt(M);
|
|
9410
9410
|
while (c === E2 || c === It || c === Pt || c === Ft || c === $t);
|
|
9411
|
-
|
|
9411
|
+
u = ["space", n.slice(l, M)], l = M - 1;
|
|
9412
9412
|
break;
|
|
9413
9413
|
}
|
|
9414
9414
|
case Og:
|
|
@@ -9419,7 +9419,7 @@ var Rg = function(e, o = {}) {
|
|
|
9419
9419
|
case qg:
|
|
9420
9420
|
case lg: {
|
|
9421
9421
|
let F = String.fromCharCode(c);
|
|
9422
|
-
|
|
9422
|
+
u = [F, F, l];
|
|
9423
9423
|
break;
|
|
9424
9424
|
}
|
|
9425
9425
|
case dg: {
|
|
@@ -9435,9 +9435,9 @@ var Rg = function(e, o = {}) {
|
|
|
9435
9435
|
for (z = M; n.charCodeAt(z - 1) === Dt; )
|
|
9436
9436
|
z -= 1, a = !a;
|
|
9437
9437
|
} while (a);
|
|
9438
|
-
|
|
9438
|
+
u = ["brackets", n.slice(l, M + 1), l, M], l = M;
|
|
9439
9439
|
} else
|
|
9440
|
-
M = n.indexOf(")", l + 1), i = n.slice(l, M + 1), M === -1 || mg.test(i) ?
|
|
9440
|
+
M = n.indexOf(")", l + 1), i = n.slice(l, M + 1), M === -1 || mg.test(i) ? u = ["(", "(", l] : (u = ["brackets", i, l, M], l = M);
|
|
9441
9441
|
break;
|
|
9442
9442
|
}
|
|
9443
9443
|
case $n:
|
|
@@ -9453,11 +9453,11 @@ var Rg = function(e, o = {}) {
|
|
|
9453
9453
|
for (z = M; n.charCodeAt(z - 1) === Dt; )
|
|
9454
9454
|
z -= 1, a = !a;
|
|
9455
9455
|
} while (a);
|
|
9456
|
-
|
|
9456
|
+
u = ["string", n.slice(l, M + 1), l, M], l = M;
|
|
9457
9457
|
break;
|
|
9458
9458
|
}
|
|
9459
9459
|
case gg: {
|
|
9460
|
-
Ut.lastIndex = l + 1, Ut.test(n), Ut.lastIndex === 0 ? M = n.length - 1 : M = Ut.lastIndex - 2,
|
|
9460
|
+
Ut.lastIndex = l + 1, Ut.test(n), Ut.lastIndex === 0 ? M = n.length - 1 : M = Ut.lastIndex - 2, u = ["at-word", n.slice(l, M + 1), l, M], l = M;
|
|
9461
9461
|
break;
|
|
9462
9462
|
}
|
|
9463
9463
|
case Dt: {
|
|
@@ -9468,23 +9468,23 @@ var Rg = function(e, o = {}) {
|
|
|
9468
9468
|
M += 1;
|
|
9469
9469
|
n.charCodeAt(M + 1) === E2 && (M += 1);
|
|
9470
9470
|
}
|
|
9471
|
-
|
|
9471
|
+
u = ["word", n.slice(l, M + 1), l, M], l = M;
|
|
9472
9472
|
break;
|
|
9473
9473
|
}
|
|
9474
9474
|
default: {
|
|
9475
|
-
c === oi && n.charCodeAt(l + 1) === hg ? (M = n.indexOf("*/", l + 2) + 1, M === 0 && (b || x ? M = n.length : B("comment")),
|
|
9475
|
+
c === oi && n.charCodeAt(l + 1) === hg ? (M = n.indexOf("*/", l + 2) + 1, M === 0 && (b || x ? M = n.length : B("comment")), u = ["comment", n.slice(l, M + 1), l, M], l = M) : (jt.lastIndex = l + 1, jt.test(n), jt.lastIndex === 0 ? M = n.length - 1 : M = jt.lastIndex - 2, u = ["word", n.slice(l, M + 1), l, M], f.push(u), l = M);
|
|
9476
9476
|
break;
|
|
9477
9477
|
}
|
|
9478
9478
|
}
|
|
9479
|
-
return l++,
|
|
9479
|
+
return l++, u;
|
|
9480
9480
|
}
|
|
9481
9481
|
function N(V) {
|
|
9482
9482
|
h.push(V);
|
|
9483
9483
|
}
|
|
9484
9484
|
return {
|
|
9485
9485
|
back: N,
|
|
9486
|
-
nextToken:
|
|
9487
|
-
endOfFile:
|
|
9486
|
+
nextToken: w,
|
|
9487
|
+
endOfFile: k,
|
|
9488
9488
|
position: L
|
|
9489
9489
|
};
|
|
9490
9490
|
};
|
|
@@ -9779,7 +9779,7 @@ class Tg {
|
|
|
9779
9779
|
for (let s = 0; s < p; s += 1)
|
|
9780
9780
|
c = n[s], M = c[0], M === "space" && s === p - 1 && !b ? r = !1 : M === "comment" ? (z = n[s - 1] ? n[s - 1][0] : "empty", a = n[s + 1] ? n[s + 1][0] : "empty", !ci[z] && !ci[a] ? i.slice(-1) === "," ? r = !1 : i += c[1] : r = !1) : i += c[1];
|
|
9781
9781
|
if (!r) {
|
|
9782
|
-
let s = n.reduce((O,
|
|
9782
|
+
let s = n.reduce((O, u) => O + u[1], "");
|
|
9783
9783
|
e.raws[o] = { value: i, raw: s };
|
|
9784
9784
|
}
|
|
9785
9785
|
e[o] = i;
|
|
@@ -10454,8 +10454,8 @@ function rt(t, e, o) {
|
|
|
10454
10454
|
const g = this;
|
|
10455
10455
|
this.tag = q, this.attribs = R || {}, this.tagPosition = n.length, this.text = "", this.mediaChildren = [], this.updateParentNodeText = function() {
|
|
10456
10456
|
if (l.length) {
|
|
10457
|
-
const
|
|
10458
|
-
|
|
10457
|
+
const T = l[l.length - 1];
|
|
10458
|
+
T.text += g.text;
|
|
10459
10459
|
}
|
|
10460
10460
|
}, this.updateParentNodeMediaChildren = function() {
|
|
10461
10461
|
l.length && Bm.includes(this.tag) && l[l.length - 1].mediaChildren.push(this.tag);
|
|
@@ -10485,28 +10485,28 @@ and ensure you are accounting for this risk.
|
|
|
10485
10485
|
e.allowedAttributes && (i = {}, r = {}, I2(e.allowedAttributes, function(q, R) {
|
|
10486
10486
|
i[R] = [];
|
|
10487
10487
|
const g = [];
|
|
10488
|
-
q.forEach(function(
|
|
10489
|
-
typeof
|
|
10488
|
+
q.forEach(function(T) {
|
|
10489
|
+
typeof T == "string" && T.indexOf("*") >= 0 ? g.push(ii(T).replace(/\\\*/g, ".*")) : i[R].push(T);
|
|
10490
10490
|
}), g.length && (r[R] = new RegExp("^(" + g.join("|") + ")$"));
|
|
10491
10491
|
}));
|
|
10492
10492
|
const a = {}, z = {}, s = {};
|
|
10493
10493
|
I2(e.allowedClasses, function(q, R) {
|
|
10494
10494
|
if (i && (V1(i, R) || (i[R] = []), i[R].push("class")), a[R] = q, Array.isArray(q)) {
|
|
10495
10495
|
const g = [];
|
|
10496
|
-
a[R] = [], s[R] = [], q.forEach(function(
|
|
10497
|
-
typeof
|
|
10496
|
+
a[R] = [], s[R] = [], q.forEach(function(T) {
|
|
10497
|
+
typeof T == "string" && T.indexOf("*") >= 0 ? g.push(ii(T).replace(/\\\*/g, ".*")) : T instanceof RegExp ? s[R].push(T) : a[R].push(T);
|
|
10498
10498
|
}), g.length && (z[R] = new RegExp("^(" + g.join("|") + ")$"));
|
|
10499
10499
|
}
|
|
10500
10500
|
});
|
|
10501
10501
|
const O = {};
|
|
10502
|
-
let
|
|
10502
|
+
let u;
|
|
10503
10503
|
I2(e.transformTags, function(q, R) {
|
|
10504
10504
|
let g;
|
|
10505
|
-
typeof q == "function" ? g = q : typeof q == "string" && (g = rt.simpleTransform(q)), R === "*" ?
|
|
10505
|
+
typeof q == "function" ? g = q : typeof q == "string" && (g = rt.simpleTransform(q)), R === "*" ? u = g : O[R] = g;
|
|
10506
10506
|
});
|
|
10507
|
-
let A, l, f, h, L, B,
|
|
10507
|
+
let A, l, f, h, L, B, k = !1;
|
|
10508
10508
|
N();
|
|
10509
|
-
const
|
|
10509
|
+
const w = new mm.Parser({
|
|
10510
10510
|
onopentag: function(q, R) {
|
|
10511
10511
|
if (e.enforceHtmlBoundary && q === "html" && N(), L) {
|
|
10512
10512
|
B++;
|
|
@@ -10514,10 +10514,10 @@ and ensure you are accounting for this risk.
|
|
|
10514
10514
|
}
|
|
10515
10515
|
const g = new c(q, R);
|
|
10516
10516
|
l.push(g);
|
|
10517
|
-
let
|
|
10517
|
+
let T = !1;
|
|
10518
10518
|
const P = !!g.text;
|
|
10519
10519
|
let Z;
|
|
10520
|
-
if (V1(O, q) && (Z = O[q](q, R), g.attribs = R = Z.attribs, Z.text !== void 0 && (g.innerText = Z.text), q !== Z.tagName && (g.name = q = Z.tagName, h[A] = Z.tagName)),
|
|
10520
|
+
if (V1(O, q) && (Z = O[q](q, R), g.attribs = R = Z.attribs, Z.text !== void 0 && (g.innerText = Z.text), q !== Z.tagName && (g.name = q = Z.tagName, h[A] = Z.tagName)), u && (Z = u(q, R), g.attribs = R = Z.attribs, q !== Z.tagName && (g.name = q = Z.tagName, h[A] = Z.tagName)), (!M(q) || e.disallowedTagsMode === "recursiveEscape" && !Nm(f) || e.nestingLimit != null && A >= e.nestingLimit) && (T = !0, f[A] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && p.indexOf(q) !== -1 && (L = !0, B = 1), f[A] = !0), A++, T) {
|
|
10521
10521
|
if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard")
|
|
10522
10522
|
return;
|
|
10523
10523
|
b = n, n = "";
|
|
@@ -10535,15 +10535,15 @@ and ensure you are accounting for this risk.
|
|
|
10535
10535
|
if (!i || V1(i, q) && i[q].indexOf(Q) !== -1 || i["*"] && i["*"].indexOf(Q) !== -1 || V1(r, q) && r[q].test(Q) || r["*"] && r["*"].test(Q))
|
|
10536
10536
|
E0 = !0;
|
|
10537
10537
|
else if (i && i[q]) {
|
|
10538
|
-
for (const
|
|
10539
|
-
if (Rm(
|
|
10538
|
+
for (const p0 of i[q])
|
|
10539
|
+
if (Rm(p0) && p0.name && p0.name === Q) {
|
|
10540
10540
|
E0 = !0;
|
|
10541
10541
|
let c0 = "";
|
|
10542
|
-
if (
|
|
10542
|
+
if (p0.multiple === !0) {
|
|
10543
10543
|
const C0 = t0.split(" ");
|
|
10544
10544
|
for (const i0 of C0)
|
|
10545
|
-
|
|
10546
|
-
} else
|
|
10545
|
+
p0.values.indexOf(i0) !== -1 && (c0 === "" ? c0 = i0 : c0 += " " + i0);
|
|
10546
|
+
} else p0.values.indexOf(t0) >= 0 && (c0 = t0);
|
|
10547
10547
|
t0 = c0;
|
|
10548
10548
|
}
|
|
10549
10549
|
}
|
|
@@ -10553,7 +10553,7 @@ and ensure you are accounting for this risk.
|
|
|
10553
10553
|
return;
|
|
10554
10554
|
}
|
|
10555
10555
|
if (q === "script" && Q === "src") {
|
|
10556
|
-
let
|
|
10556
|
+
let p0 = !0;
|
|
10557
10557
|
try {
|
|
10558
10558
|
const c0 = F(t0);
|
|
10559
10559
|
if (e.allowedScriptHostnames || e.allowedScriptDomains) {
|
|
@@ -10562,47 +10562,47 @@ and ensure you are accounting for this risk.
|
|
|
10562
10562
|
}), i0 = (e.allowedScriptDomains || []).find(function(h0) {
|
|
10563
10563
|
return c0.url.hostname === h0 || c0.url.hostname.endsWith(`.${h0}`);
|
|
10564
10564
|
});
|
|
10565
|
-
|
|
10565
|
+
p0 = C0 || i0;
|
|
10566
10566
|
}
|
|
10567
10567
|
} catch {
|
|
10568
|
-
|
|
10568
|
+
p0 = !1;
|
|
10569
10569
|
}
|
|
10570
|
-
if (!
|
|
10570
|
+
if (!p0) {
|
|
10571
10571
|
delete g.attribs[Q];
|
|
10572
10572
|
return;
|
|
10573
10573
|
}
|
|
10574
10574
|
}
|
|
10575
10575
|
if (q === "iframe" && Q === "src") {
|
|
10576
|
-
let
|
|
10576
|
+
let p0 = !0;
|
|
10577
10577
|
try {
|
|
10578
10578
|
const c0 = F(t0);
|
|
10579
10579
|
if (c0.isRelativeUrl)
|
|
10580
|
-
|
|
10580
|
+
p0 = V1(e, "allowIframeRelativeUrls") ? e.allowIframeRelativeUrls : !e.allowedIframeHostnames && !e.allowedIframeDomains;
|
|
10581
10581
|
else if (e.allowedIframeHostnames || e.allowedIframeDomains) {
|
|
10582
10582
|
const C0 = (e.allowedIframeHostnames || []).find(function(h0) {
|
|
10583
10583
|
return h0 === c0.url.hostname;
|
|
10584
10584
|
}), i0 = (e.allowedIframeDomains || []).find(function(h0) {
|
|
10585
10585
|
return c0.url.hostname === h0 || c0.url.hostname.endsWith(`.${h0}`);
|
|
10586
10586
|
});
|
|
10587
|
-
|
|
10587
|
+
p0 = C0 || i0;
|
|
10588
10588
|
}
|
|
10589
10589
|
} catch {
|
|
10590
|
-
|
|
10590
|
+
p0 = !1;
|
|
10591
10591
|
}
|
|
10592
|
-
if (!
|
|
10592
|
+
if (!p0) {
|
|
10593
10593
|
delete g.attribs[Q];
|
|
10594
10594
|
return;
|
|
10595
10595
|
}
|
|
10596
10596
|
}
|
|
10597
10597
|
if (Q === "srcset")
|
|
10598
10598
|
try {
|
|
10599
|
-
let
|
|
10600
|
-
if (
|
|
10599
|
+
let p0 = ym(t0);
|
|
10600
|
+
if (p0.forEach(function(c0) {
|
|
10601
10601
|
x("srcset", c0.url) && (c0.evil = !0);
|
|
10602
|
-
}),
|
|
10602
|
+
}), p0 = zi(p0, function(c0) {
|
|
10603
10603
|
return !c0.evil;
|
|
10604
|
-
}),
|
|
10605
|
-
t0 = km(zi(
|
|
10604
|
+
}), p0.length)
|
|
10605
|
+
t0 = km(zi(p0, function(c0) {
|
|
10606
10606
|
return !c0.evil;
|
|
10607
10607
|
})), g.attribs[Q] = t0;
|
|
10608
10608
|
else {
|
|
@@ -10614,13 +10614,13 @@ and ensure you are accounting for this risk.
|
|
|
10614
10614
|
return;
|
|
10615
10615
|
}
|
|
10616
10616
|
if (Q === "class") {
|
|
10617
|
-
const
|
|
10617
|
+
const p0 = a[q], c0 = a["*"], C0 = z[q], i0 = s[q], h0 = z["*"], _0 = [
|
|
10618
10618
|
C0,
|
|
10619
10619
|
h0
|
|
10620
10620
|
].concat(i0).filter(function(c1) {
|
|
10621
10621
|
return c1;
|
|
10622
10622
|
});
|
|
10623
|
-
if (
|
|
10623
|
+
if (p0 && c0 ? t0 = y(t0, ri(p0, c0), _0) : t0 = y(t0, p0 || c0, _0), !t0.length) {
|
|
10624
10624
|
delete g.attribs[Q];
|
|
10625
10625
|
return;
|
|
10626
10626
|
}
|
|
@@ -10628,7 +10628,7 @@ and ensure you are accounting for this risk.
|
|
|
10628
10628
|
if (Q === "style") {
|
|
10629
10629
|
if (e.parseStyleAttributes)
|
|
10630
10630
|
try {
|
|
10631
|
-
const
|
|
10631
|
+
const p0 = Lm(q + " {" + t0 + "}", { map: !1 }), c0 = m(p0, e.allowedStyles);
|
|
10632
10632
|
if (t0 = C(c0), t0.length === 0) {
|
|
10633
10633
|
delete g.attribs[Q];
|
|
10634
10634
|
return;
|
|
@@ -10643,7 +10643,7 @@ and ensure you are accounting for this risk.
|
|
|
10643
10643
|
n += " " + Q, t0 && t0.length ? n += '="' + V(t0, !0) + '"' : e.allowedEmptyAttributes.includes(Q) && (n += '=""');
|
|
10644
10644
|
} else
|
|
10645
10645
|
delete g.attribs[Q];
|
|
10646
|
-
}), e.selfClosing.indexOf(q) !== -1 ? n += " />" : (n += ">", g.innerText && !P && !e.textFilter && (n += V(g.innerText),
|
|
10646
|
+
}), e.selfClosing.indexOf(q) !== -1 ? n += " />" : (n += ">", g.innerText && !P && !e.textFilter && (n += V(g.innerText), k = !0)), T && (n = b + V(n), b = "");
|
|
10647
10647
|
},
|
|
10648
10648
|
ontext: function(q) {
|
|
10649
10649
|
if (L)
|
|
@@ -10655,12 +10655,12 @@ and ensure you are accounting for this risk.
|
|
|
10655
10655
|
else if ((e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && (g === "script" || g === "style"))
|
|
10656
10656
|
n += q;
|
|
10657
10657
|
else {
|
|
10658
|
-
const
|
|
10659
|
-
e.textFilter && !
|
|
10658
|
+
const T = V(q, !1);
|
|
10659
|
+
e.textFilter && !k ? n += e.textFilter(T, g) : k || (n += T);
|
|
10660
10660
|
}
|
|
10661
10661
|
if (l.length) {
|
|
10662
|
-
const
|
|
10663
|
-
|
|
10662
|
+
const T = l[l.length - 1];
|
|
10663
|
+
T.text += q;
|
|
10664
10664
|
}
|
|
10665
10665
|
},
|
|
10666
10666
|
onclosetag: function(q, R) {
|
|
@@ -10677,8 +10677,8 @@ and ensure you are accounting for this risk.
|
|
|
10677
10677
|
return;
|
|
10678
10678
|
}
|
|
10679
10679
|
L = e.enforceHtmlBoundary ? q === "html" : !1, A--;
|
|
10680
|
-
const
|
|
10681
|
-
if (
|
|
10680
|
+
const T = f[A];
|
|
10681
|
+
if (T) {
|
|
10682
10682
|
if (delete f[A], e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
10683
10683
|
g.updateParentNodeText();
|
|
10684
10684
|
return;
|
|
@@ -10692,13 +10692,13 @@ and ensure you are accounting for this risk.
|
|
|
10692
10692
|
if (g.updateParentNodeMediaChildren(), g.updateParentNodeText(), // Already output />
|
|
10693
10693
|
e.selfClosing.indexOf(q) !== -1 || // Escaped tag, closing tag is implied
|
|
10694
10694
|
R && !M(q) && ["escape", "recursiveEscape"].indexOf(e.disallowedTagsMode) >= 0) {
|
|
10695
|
-
|
|
10695
|
+
T && (n = b, b = "");
|
|
10696
10696
|
return;
|
|
10697
10697
|
}
|
|
10698
|
-
n += "</" + q + ">",
|
|
10698
|
+
n += "</" + q + ">", T && (n = b + V(n), b = ""), k = !1;
|
|
10699
10699
|
}
|
|
10700
10700
|
}, e.parser);
|
|
10701
|
-
return
|
|
10701
|
+
return w.write(t), w.end(), n;
|
|
10702
10702
|
function N() {
|
|
10703
10703
|
n = "", A = 0, l = [], f = {}, h = {}, L = !1, B = 0;
|
|
10704
10704
|
}
|
|
@@ -10718,8 +10718,8 @@ and ensure you are accounting for this risk.
|
|
|
10718
10718
|
const g = R.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);
|
|
10719
10719
|
if (!g)
|
|
10720
10720
|
return R.match(/^[/\\]{2}/) ? !e.allowProtocolRelative : !1;
|
|
10721
|
-
const
|
|
10722
|
-
return V1(e.allowedSchemesByTag, q) ? e.allowedSchemesByTag[q].indexOf(
|
|
10721
|
+
const T = g[1].toLowerCase();
|
|
10722
|
+
return V1(e.allowedSchemesByTag, q) ? e.allowedSchemesByTag[q].indexOf(T) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf(T) === -1;
|
|
10723
10723
|
}
|
|
10724
10724
|
function F(q) {
|
|
10725
10725
|
if (q = q.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), q.startsWith("relative:"))
|
|
@@ -10737,11 +10737,11 @@ and ensure you are accounting for this risk.
|
|
|
10737
10737
|
if (!R)
|
|
10738
10738
|
return q;
|
|
10739
10739
|
const g = q.nodes[0];
|
|
10740
|
-
let
|
|
10741
|
-
return R[g.selector] && R["*"] ?
|
|
10740
|
+
let T;
|
|
10741
|
+
return R[g.selector] && R["*"] ? T = ri(
|
|
10742
10742
|
R[g.selector],
|
|
10743
10743
|
R["*"]
|
|
10744
|
-
) :
|
|
10744
|
+
) : T = R[g.selector] || R["*"], T && (q.nodes[0].nodes = g.nodes.reduce(v(T), [])), q;
|
|
10745
10745
|
}
|
|
10746
10746
|
function C(q) {
|
|
10747
10747
|
return q.nodes[0].nodes.reduce(function(R, g) {
|
|
@@ -10758,9 +10758,9 @@ and ensure you are accounting for this risk.
|
|
|
10758
10758
|
};
|
|
10759
10759
|
}
|
|
10760
10760
|
function y(q, R, g) {
|
|
10761
|
-
return R ? (q = q.split(/\s+/), q.filter(function(
|
|
10762
|
-
return R.indexOf(
|
|
10763
|
-
return P.test(
|
|
10761
|
+
return R ? (q = q.split(/\s+/), q.filter(function(T) {
|
|
10762
|
+
return R.indexOf(T) !== -1 || g.some(function(P) {
|
|
10763
|
+
return P.test(T);
|
|
10764
10764
|
});
|
|
10765
10765
|
}).join(" ")) : q;
|
|
10766
10766
|
}
|
|
@@ -11195,23 +11195,23 @@ class Im {
|
|
|
11195
11195
|
const a = this.eventOverrides;
|
|
11196
11196
|
c == null || c.forEach((z, s) => {
|
|
11197
11197
|
var f;
|
|
11198
|
-
const O = this.nylasConnector,
|
|
11198
|
+
const O = this.nylasConnector, u = async (h) => {
|
|
11199
11199
|
I(`[${this.hostTagName}] Handling "${e.name}" prop "${String(s)}" event.`, { event: h }), s in a && (I(`[${this.hostTagName}] Found event override for "${String(s)}" event. Calling override.`), await a[s](h, O)), h.defaultPrevented || await z(h, O);
|
|
11200
11200
|
}, A = e.element.dataset.nylasId;
|
|
11201
|
-
A && !this.eventListenerRegistrations.has(A) && this.eventListenerRegistrations.set(A, []), A && ((f = this.eventListenerRegistrations.get(A)) == null || f.push([r, s,
|
|
11201
|
+
A && !this.eventListenerRegistrations.has(A) && this.eventListenerRegistrations.set(A, []), A && ((f = this.eventListenerRegistrations.get(A)) == null || f.push([r, s, u])), I(`[${this.hostTagName}] Setting "${e.name}" event "${String(s)}" to automcially call NylasConnector method.`);
|
|
11202
11202
|
const l = ai(s.toString());
|
|
11203
|
-
I(`[${this.hostTagName}] Adding event listener for "${l}" on "${r.tagName}"`), r.addEventListener(l,
|
|
11203
|
+
I(`[${this.hostTagName}] Adding event listener for "${l}" on "${r.tagName}"`), r.addEventListener(l, u);
|
|
11204
11204
|
}), n == null || n.forEach((z, s) => {
|
|
11205
11205
|
var f, h, L, B;
|
|
11206
|
-
const [O,
|
|
11206
|
+
const [O, u] = s.split("."), l = this.getStore(O).state[u];
|
|
11207
11207
|
if (!r.dataset.nylasId) {
|
|
11208
11208
|
I(`[${this.hostTagName}] Component "${e.name}" not registered. Skipping.`, { component: e });
|
|
11209
11209
|
return;
|
|
11210
11210
|
}
|
|
11211
|
-
this.propStateRegistrations.has(O) || this.propStateRegistrations.set(O, /* @__PURE__ */ new Map()), (f = this.propStateRegistrations.get(O)) != null && f.has(
|
|
11211
|
+
this.propStateRegistrations.has(O) || this.propStateRegistrations.set(O, /* @__PURE__ */ new Map()), (f = this.propStateRegistrations.get(O)) != null && f.has(u) ? (B = (L = this.propStateRegistrations.get(O)) == null ? void 0 : L.get(u)) == null || B.push({
|
|
11212
11212
|
elementId: r.dataset.nylasId,
|
|
11213
11213
|
propKey: z
|
|
11214
|
-
}) : (h = this.propStateRegistrations.get(O)) == null || h.set(
|
|
11214
|
+
}) : (h = this.propStateRegistrations.get(O)) == null || h.set(u, [
|
|
11215
11215
|
{
|
|
11216
11216
|
elementId: r.dataset.nylasId,
|
|
11217
11217
|
propKey: z
|
|
@@ -11280,8 +11280,8 @@ class Im {
|
|
|
11280
11280
|
I(`[${e.hostTagName}] Component "${a}" not found. Skipping.`, { component: s });
|
|
11281
11281
|
return;
|
|
11282
11282
|
}
|
|
11283
|
-
const
|
|
11284
|
-
s.element[z.toString()] =
|
|
11283
|
+
const u = e.getStore(o).state[b];
|
|
11284
|
+
s.element[z.toString()] = u, I(`[${e.hostTagName}] Setting "${s.name}" prop "${z.toString()}" to "${b.toString()}" value.`, { stateValue: u });
|
|
11285
11285
|
});
|
|
11286
11286
|
}
|
|
11287
11287
|
});
|
|
@@ -11991,10 +11991,10 @@ class a8 {
|
|
|
11991
11991
|
}
|
|
11992
11992
|
const [p, i] = o.reduce(([r, a], z) => {
|
|
11993
11993
|
const s = b[z], O = e[z];
|
|
11994
|
-
return [r || s, r || !s ? je(a, s && s.multi ? (
|
|
11995
|
-
const A = Me(
|
|
11994
|
+
return [r || s, r || !s ? je(a, s && s.multi ? (u) => {
|
|
11995
|
+
const A = Me(u, z);
|
|
11996
11996
|
return K0(A) && A.some((l) => M(O, l));
|
|
11997
|
-
} : (
|
|
11997
|
+
} : (u) => M(O, Me(u, z))) : a];
|
|
11998
11998
|
}, [null, null]);
|
|
11999
11999
|
return p ? this.where(p.name).equals(e[p.keyPath]).filter(i) : n ? this.filter(i) : this.where(o).equals("");
|
|
12000
12000
|
}
|
|
@@ -12105,10 +12105,10 @@ class a8 {
|
|
|
12105
12105
|
throw new o0.InvalidArgument("Arguments objects and keys must have the same length");
|
|
12106
12106
|
const r = e.length;
|
|
12107
12107
|
let a = i && p ? e.map(Vt(i)) : e;
|
|
12108
|
-
return this.core.mutate({ trans: M, type: "add", keys: b, values: a, wantResults: c }).then(({ numFailures: z, results: s, lastResult: O, failures:
|
|
12108
|
+
return this.core.mutate({ trans: M, type: "add", keys: b, values: a, wantResults: c }).then(({ numFailures: z, results: s, lastResult: O, failures: u }) => {
|
|
12109
12109
|
if (z === 0)
|
|
12110
12110
|
return c ? s : O;
|
|
12111
|
-
throw new H2(`${this.name}.bulkAdd(): ${z} of ${r} operations failed`,
|
|
12111
|
+
throw new H2(`${this.name}.bulkAdd(): ${z} of ${r} operations failed`, u);
|
|
12112
12112
|
});
|
|
12113
12113
|
});
|
|
12114
12114
|
}
|
|
@@ -12122,10 +12122,10 @@ class a8 {
|
|
|
12122
12122
|
throw new o0.InvalidArgument("Arguments objects and keys must have the same length");
|
|
12123
12123
|
const r = e.length;
|
|
12124
12124
|
let a = i && p ? e.map(Vt(i)) : e;
|
|
12125
|
-
return this.core.mutate({ trans: M, type: "put", keys: b, values: a, wantResults: c }).then(({ numFailures: z, results: s, lastResult: O, failures:
|
|
12125
|
+
return this.core.mutate({ trans: M, type: "put", keys: b, values: a, wantResults: c }).then(({ numFailures: z, results: s, lastResult: O, failures: u }) => {
|
|
12126
12126
|
if (z === 0)
|
|
12127
12127
|
return c ? s : O;
|
|
12128
|
-
throw new H2(`${this.name}.bulkPut(): ${z} of ${r} operations failed`,
|
|
12128
|
+
throw new H2(`${this.name}.bulkPut(): ${z} of ${r} operations failed`, u);
|
|
12129
12129
|
});
|
|
12130
12130
|
});
|
|
12131
12131
|
}
|
|
@@ -12173,8 +12173,8 @@ function K2(t) {
|
|
|
12173
12173
|
if (s !== "asap")
|
|
12174
12174
|
throw new o0.InvalidArgument("Invalid event config");
|
|
12175
12175
|
var O = c(z, at, function() {
|
|
12176
|
-
for (var
|
|
12177
|
-
A[
|
|
12176
|
+
for (var u = arguments.length, A = new Array(u); u--; )
|
|
12177
|
+
A[u] = arguments[u];
|
|
12178
12178
|
O.subscribers.forEach(function(l) {
|
|
12179
12179
|
h4(function() {
|
|
12180
12180
|
l.apply(null, A);
|
|
@@ -12475,7 +12475,7 @@ class s8 {
|
|
|
12475
12475
|
}
|
|
12476
12476
|
const p = o.table.core, { outbound: i, extractKey: r } = p.schema.primaryKey, a = this.db._options.modifyChunkSize || 200, z = [];
|
|
12477
12477
|
let s = 0;
|
|
12478
|
-
const O = [],
|
|
12478
|
+
const O = [], u = (A, l) => {
|
|
12479
12479
|
const { failures: f, numFailures: h } = l;
|
|
12480
12480
|
s += A - h;
|
|
12481
12481
|
for (let L of $0(f))
|
|
@@ -12485,17 +12485,17 @@ class s8 {
|
|
|
12485
12485
|
const l = (f) => {
|
|
12486
12486
|
const h = Math.min(a, A.length - f);
|
|
12487
12487
|
return p.getMany({ trans: n, keys: A.slice(f, f + h), cache: "immutable" }).then((L) => {
|
|
12488
|
-
const B = [],
|
|
12488
|
+
const B = [], k = [], w = i ? [] : null, N = [];
|
|
12489
12489
|
for (let x = 0; x < h; ++x) {
|
|
12490
12490
|
const F = L[x], m = { value: Lt(F), primKey: A[f + x] };
|
|
12491
|
-
b.call(m, m.value, m) !== !1 && (m.value == null ? N.push(A[f + x]) : i || Q0(r(F), r(m.value)) === 0 ? (
|
|
12491
|
+
b.call(m, m.value, m) !== !1 && (m.value == null ? N.push(A[f + x]) : i || Q0(r(F), r(m.value)) === 0 ? (k.push(m.value), i && w.push(A[f + x])) : (N.push(A[f + x]), B.push(m.value)));
|
|
12492
12492
|
}
|
|
12493
12493
|
const V = e2(o) && o.limit === 1 / 0 && (typeof e != "function" || e === Gn) && { index: o.index, range: o.range };
|
|
12494
12494
|
return Promise.resolve(B.length > 0 && p.mutate({ trans: n, type: "add", values: B }).then((x) => {
|
|
12495
12495
|
for (let F in x.failures)
|
|
12496
12496
|
N.splice(parseInt(F), 1);
|
|
12497
|
-
|
|
12498
|
-
})).then(() => (
|
|
12497
|
+
u(B.length, x);
|
|
12498
|
+
})).then(() => (k.length > 0 || V && typeof e == "object") && p.mutate({ trans: n, type: "put", keys: w, values: k, criteria: V, changeSpec: typeof e != "function" && e }).then((x) => u(k.length, x))).then(() => (N.length > 0 || V && e === Gn) && p.mutate({ trans: n, type: "delete", keys: N, criteria: V }).then((x) => u(N.length, x))).then(() => A.length > f + h && l(f + a));
|
|
12499
12499
|
});
|
|
12500
12500
|
};
|
|
12501
12501
|
return l(0).then(() => {
|
|
@@ -12567,17 +12567,17 @@ function Jt(t, e, o, n) {
|
|
|
12567
12567
|
O._ondirectionchange = function(A) {
|
|
12568
12568
|
s(A);
|
|
12569
12569
|
};
|
|
12570
|
-
var
|
|
12570
|
+
var u = 0;
|
|
12571
12571
|
return O._addAlgorithm(function(A, l, f) {
|
|
12572
12572
|
var h = A.key;
|
|
12573
12573
|
if (typeof h != "string")
|
|
12574
12574
|
return !1;
|
|
12575
12575
|
var L = c(h);
|
|
12576
|
-
if (e(L, i,
|
|
12576
|
+
if (e(L, i, u))
|
|
12577
12577
|
return !0;
|
|
12578
|
-
for (var B = null,
|
|
12579
|
-
var
|
|
12580
|
-
|
|
12578
|
+
for (var B = null, k = u; k < z; ++k) {
|
|
12579
|
+
var w = d8(h, L, p[k], i[k], M, r);
|
|
12580
|
+
w === null && B === null ? u = k + 1 : (B === null || M(B, w) > 0) && (B = w);
|
|
12581
12581
|
}
|
|
12582
12582
|
return l(B !== null ? function() {
|
|
12583
12583
|
A.continue(B + a);
|
|
@@ -12687,32 +12687,32 @@ class P4 {
|
|
|
12687
12687
|
}
|
|
12688
12688
|
try {
|
|
12689
12689
|
a = e.reduce(function(h, L) {
|
|
12690
|
-
let B = 0,
|
|
12691
|
-
for (; B <
|
|
12692
|
-
const
|
|
12693
|
-
if (n(L[0],
|
|
12694
|
-
|
|
12690
|
+
let B = 0, k = h.length;
|
|
12691
|
+
for (; B < k; ++B) {
|
|
12692
|
+
const w = h[B];
|
|
12693
|
+
if (n(L[0], w[1]) < 0 && n(L[1], w[0]) > 0) {
|
|
12694
|
+
w[0] = M(w[0], L[0]), w[1] = p(w[1], L[1]);
|
|
12695
12695
|
break;
|
|
12696
12696
|
}
|
|
12697
12697
|
}
|
|
12698
|
-
return B ===
|
|
12698
|
+
return B === k && h.push(L), h;
|
|
12699
12699
|
}, []), a.sort(s);
|
|
12700
12700
|
} catch {
|
|
12701
12701
|
return M1(this, Y1);
|
|
12702
12702
|
}
|
|
12703
12703
|
let O = 0;
|
|
12704
|
-
const
|
|
12705
|
-
let l =
|
|
12704
|
+
const u = r ? (h) => b(h, a[O][1]) > 0 : (h) => b(h, a[O][1]) >= 0, A = i ? (h) => c(h, a[O][0]) > 0 : (h) => c(h, a[O][0]) >= 0;
|
|
12705
|
+
let l = u;
|
|
12706
12706
|
const f = new this.Collection(this, () => de(a[0][0], a[a.length - 1][1], !i, !r));
|
|
12707
12707
|
return f._ondirectionchange = (h) => {
|
|
12708
|
-
h === "next" ? (l =
|
|
12708
|
+
h === "next" ? (l = u, z = b) : (l = A, z = c), a.sort(s);
|
|
12709
12709
|
}, f._addAlgorithm((h, L, B) => {
|
|
12710
|
-
for (var
|
|
12710
|
+
for (var k = h.key; l(k); )
|
|
12711
12711
|
if (++O, O === a.length)
|
|
12712
12712
|
return L(B), !1;
|
|
12713
|
-
return !!function(
|
|
12714
|
-
return !
|
|
12715
|
-
}(
|
|
12713
|
+
return !!function(w) {
|
|
12714
|
+
return !u(w) && !A(w);
|
|
12715
|
+
}(k) || (this._cmp(k, a[O][1]) === 0 || this._cmp(k, a[O][0]) === 0 || L(() => {
|
|
12716
12716
|
z === b ? h.continue(a[O][0]) : h.continue(a[O][1]);
|
|
12717
12717
|
}), !1);
|
|
12718
12718
|
}), f;
|
|
@@ -12877,26 +12877,26 @@ function f8(t, e, o) {
|
|
|
12877
12877
|
const { schema: b, hasGetAll: c } = function(i, r) {
|
|
12878
12878
|
const a = Wi(i.objectStoreNames);
|
|
12879
12879
|
return { schema: { name: i.name, tables: a.map((z) => r.objectStore(z)).map((z) => {
|
|
12880
|
-
const { keyPath: s, autoIncrement: O } = z,
|
|
12881
|
-
const { name: L, unique: B, multiEntry:
|
|
12882
|
-
return l[V2(
|
|
12880
|
+
const { keyPath: s, autoIncrement: O } = z, u = K0(s), A = s == null, l = {}, f = { name: z.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: A, compound: u, keyPath: s, autoIncrement: O, unique: !0, extractKey: rc(s) }, indexes: Wi(z.indexNames).map((h) => z.index(h)).map((h) => {
|
|
12881
|
+
const { name: L, unique: B, multiEntry: k, keyPath: w } = h, N = { name: L, compound: K0(w), keyPath: w, unique: B, multiEntry: k, extractKey: rc(w) };
|
|
12882
|
+
return l[V2(w)] = N, N;
|
|
12883
12883
|
}), getIndexByKeyPath: (h) => l[V2(h)] };
|
|
12884
12884
|
return l[":id"] = f.primaryKey, s != null && (l[V2(s)] = f.primaryKey), f;
|
|
12885
12885
|
}) }, hasGetAll: a.length > 0 && "getAll" in r.objectStore(a[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) };
|
|
12886
12886
|
}(t, o), M = b.tables.map((i) => function(r) {
|
|
12887
12887
|
const a = r.name;
|
|
12888
|
-
return { name: a, schema: r, mutate: function({ trans: z, type: s, keys: O, values:
|
|
12888
|
+
return { name: a, schema: r, mutate: function({ trans: z, type: s, keys: O, values: u, range: A }) {
|
|
12889
12889
|
return new Promise((l, f) => {
|
|
12890
12890
|
l = T0(l);
|
|
12891
12891
|
const h = z.objectStore(a), L = h.keyPath == null, B = s === "put" || s === "add";
|
|
12892
12892
|
if (!B && s !== "delete" && s !== "deleteRange")
|
|
12893
12893
|
throw new Error("Invalid operation type: " + s);
|
|
12894
|
-
const { length:
|
|
12895
|
-
if (O &&
|
|
12894
|
+
const { length: k } = O || u || { length: 1 };
|
|
12895
|
+
if (O && u && O.length !== u.length)
|
|
12896
12896
|
throw new Error("Given keys array must have same length as given values array.");
|
|
12897
|
-
if (
|
|
12897
|
+
if (k === 0)
|
|
12898
12898
|
return l({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
12899
|
-
let
|
|
12899
|
+
let w;
|
|
12900
12900
|
const N = [], V = [];
|
|
12901
12901
|
let x = 0;
|
|
12902
12902
|
const F = (C) => {
|
|
@@ -12905,61 +12905,61 @@ function f8(t, e, o) {
|
|
|
12905
12905
|
if (s === "deleteRange") {
|
|
12906
12906
|
if (A.type === 4)
|
|
12907
12907
|
return l({ numFailures: x, failures: V, results: [], lastResult: void 0 });
|
|
12908
|
-
A.type === 3 ? N.push(
|
|
12908
|
+
A.type === 3 ? N.push(w = h.clear()) : N.push(w = h.delete(n(A)));
|
|
12909
12909
|
} else {
|
|
12910
|
-
const [C, v] = B ? L ? [
|
|
12910
|
+
const [C, v] = B ? L ? [u, O] : [u, null] : [O, null];
|
|
12911
12911
|
if (B)
|
|
12912
|
-
for (let y = 0; y <
|
|
12913
|
-
N.push(
|
|
12912
|
+
for (let y = 0; y < k; ++y)
|
|
12913
|
+
N.push(w = v && v[y] !== void 0 ? h[s](C[y], v[y]) : h[s](C[y])), w.onerror = F;
|
|
12914
12914
|
else
|
|
12915
|
-
for (let y = 0; y <
|
|
12916
|
-
N.push(
|
|
12915
|
+
for (let y = 0; y < k; ++y)
|
|
12916
|
+
N.push(w = h[s](C[y])), w.onerror = F;
|
|
12917
12917
|
}
|
|
12918
12918
|
const m = (C) => {
|
|
12919
12919
|
const v = C.target.result;
|
|
12920
12920
|
N.forEach((y, q) => y.error != null && (V[q] = y.error)), l({ numFailures: x, failures: V, results: s === "delete" ? O : N.map((y) => y.result), lastResult: v });
|
|
12921
12921
|
};
|
|
12922
|
-
|
|
12922
|
+
w.onerror = (C) => {
|
|
12923
12923
|
F(C), m(C);
|
|
12924
|
-
},
|
|
12924
|
+
}, w.onsuccess = m;
|
|
12925
12925
|
});
|
|
12926
|
-
}, getMany: ({ trans: z, keys: s }) => new Promise((O,
|
|
12926
|
+
}, getMany: ({ trans: z, keys: s }) => new Promise((O, u) => {
|
|
12927
12927
|
O = T0(O);
|
|
12928
12928
|
const A = z.objectStore(a), l = s.length, f = new Array(l);
|
|
12929
12929
|
let h, L = 0, B = 0;
|
|
12930
|
-
const
|
|
12930
|
+
const k = (N) => {
|
|
12931
12931
|
const V = N.target;
|
|
12932
12932
|
f[V._pos] = V.result, ++B === L && O(f);
|
|
12933
|
-
},
|
|
12933
|
+
}, w = x1(u);
|
|
12934
12934
|
for (let N = 0; N < l; ++N)
|
|
12935
|
-
s[N] != null && (h = A.get(s[N]), h._pos = N, h.onsuccess =
|
|
12935
|
+
s[N] != null && (h = A.get(s[N]), h._pos = N, h.onsuccess = k, h.onerror = w, ++L);
|
|
12936
12936
|
L === 0 && O(f);
|
|
12937
|
-
}), get: ({ trans: z, key: s }) => new Promise((O,
|
|
12937
|
+
}), get: ({ trans: z, key: s }) => new Promise((O, u) => {
|
|
12938
12938
|
O = T0(O);
|
|
12939
12939
|
const A = z.objectStore(a).get(s);
|
|
12940
|
-
A.onsuccess = (l) => O(l.target.result), A.onerror = x1(
|
|
12940
|
+
A.onsuccess = (l) => O(l.target.result), A.onerror = x1(u);
|
|
12941
12941
|
}), query: /* @__PURE__ */ function(z) {
|
|
12942
|
-
return (s) => new Promise((O,
|
|
12942
|
+
return (s) => new Promise((O, u) => {
|
|
12943
12943
|
O = T0(O);
|
|
12944
|
-
const { trans: A, values: l, limit: f, query: h } = s, L = f === 1 / 0 ? void 0 : f, { index: B, range:
|
|
12944
|
+
const { trans: A, values: l, limit: f, query: h } = s, L = f === 1 / 0 ? void 0 : f, { index: B, range: k } = h, w = A.objectStore(a), N = B.isPrimaryKey ? w : w.index(B.name), V = n(k);
|
|
12945
12945
|
if (f === 0)
|
|
12946
12946
|
return O({ result: [] });
|
|
12947
12947
|
if (z) {
|
|
12948
12948
|
const x = l ? N.getAll(V, L) : N.getAllKeys(V, L);
|
|
12949
|
-
x.onsuccess = (F) => O({ result: F.target.result }), x.onerror = x1(
|
|
12949
|
+
x.onsuccess = (F) => O({ result: F.target.result }), x.onerror = x1(u);
|
|
12950
12950
|
} else {
|
|
12951
12951
|
let x = 0;
|
|
12952
12952
|
const F = l || !("openKeyCursor" in N) ? N.openCursor(V) : N.openKeyCursor(V), m = [];
|
|
12953
12953
|
F.onsuccess = (C) => {
|
|
12954
12954
|
const v = F.result;
|
|
12955
12955
|
return v ? (m.push(l ? v.value : v.primaryKey), ++x === f ? O({ result: m }) : void v.continue()) : O({ result: m });
|
|
12956
|
-
}, F.onerror = x1(
|
|
12956
|
+
}, F.onerror = x1(u);
|
|
12957
12957
|
}
|
|
12958
12958
|
});
|
|
12959
|
-
}(c), openCursor: function({ trans: z, values: s, query: O, reverse:
|
|
12959
|
+
}(c), openCursor: function({ trans: z, values: s, query: O, reverse: u, unique: A }) {
|
|
12960
12960
|
return new Promise((l, f) => {
|
|
12961
12961
|
l = T0(l);
|
|
12962
|
-
const { index: h, range: L } = O, B = z.objectStore(a),
|
|
12962
|
+
const { index: h, range: L } = O, B = z.objectStore(a), k = h.isPrimaryKey ? B : B.index(h.name), w = u ? A ? "prevunique" : "prev" : A ? "nextunique" : "next", N = s || !("openKeyCursor" in k) ? k.openCursor(n(L), w) : k.openKeyCursor(n(L), w);
|
|
12963
12963
|
N.onerror = x1(f), N.onsuccess = T0((V) => {
|
|
12964
12964
|
const x = N.result;
|
|
12965
12965
|
if (!x)
|
|
@@ -12977,8 +12977,8 @@ function f8(t, e, o) {
|
|
|
12977
12977
|
let y = 1;
|
|
12978
12978
|
return this.start(() => y-- ? this.continue() : this.stop()).then(() => this);
|
|
12979
12979
|
}, x.start = (y) => {
|
|
12980
|
-
const q = new Promise((g,
|
|
12981
|
-
g = T0(g), N.onerror = x1(
|
|
12980
|
+
const q = new Promise((g, T) => {
|
|
12981
|
+
g = T0(g), N.onerror = x1(T), x.fail = T, x.stop = (P) => {
|
|
12982
12982
|
x.stop = x.continue = x.continuePrimaryKey = x.advance = v, g(P);
|
|
12983
12983
|
};
|
|
12984
12984
|
}), R = () => {
|
|
@@ -13000,10 +13000,10 @@ function f8(t, e, o) {
|
|
|
13000
13000
|
}, f);
|
|
13001
13001
|
});
|
|
13002
13002
|
}, count({ query: z, trans: s }) {
|
|
13003
|
-
const { index: O, range:
|
|
13003
|
+
const { index: O, range: u } = z;
|
|
13004
13004
|
return new Promise((A, l) => {
|
|
13005
|
-
const f = s.objectStore(a), h = O.isPrimaryKey ? f : f.index(O.name), L = n(
|
|
13006
|
-
B.onsuccess = T0((
|
|
13005
|
+
const f = s.objectStore(a), h = O.isPrimaryKey ? f : f.index(O.name), L = n(u), B = L ? h.count(L) : h.count();
|
|
13006
|
+
B.onsuccess = T0((k) => A(k.target.result)), B.onerror = x1(l);
|
|
13007
13007
|
});
|
|
13008
13008
|
} };
|
|
13009
13009
|
}(i)), p = {};
|
|
@@ -13055,19 +13055,19 @@ function h8(t, e, o, n) {
|
|
|
13055
13055
|
Kn(o, i, b[i].primKey, b[i].indexes);
|
|
13056
13056
|
}), zc(t, o), K.follow(() => t.on.populate.fire(c)).catch(M)) : function({ _novip: i }, r, a, z) {
|
|
13057
13057
|
const s = [], O = i._versions;
|
|
13058
|
-
let
|
|
13058
|
+
let u = i._dbSchema = Oc(i, i.idbdb, z), A = !1;
|
|
13059
13059
|
const l = O.filter((h) => h._cfg.version >= r);
|
|
13060
13060
|
function f() {
|
|
13061
13061
|
return s.length ? K.resolve(s.shift()(a.idbtrans)).then(f) : K.resolve();
|
|
13062
13062
|
}
|
|
13063
13063
|
return l.forEach((h) => {
|
|
13064
13064
|
s.push(() => {
|
|
13065
|
-
const L =
|
|
13066
|
-
uc(i, L, z), uc(i, B, z),
|
|
13067
|
-
const
|
|
13068
|
-
|
|
13065
|
+
const L = u, B = h._cfg.dbschema;
|
|
13066
|
+
uc(i, L, z), uc(i, B, z), u = i._dbSchema = B;
|
|
13067
|
+
const k = j4(L, B);
|
|
13068
|
+
k.add.forEach((N) => {
|
|
13069
13069
|
Kn(z, N[0], N[1].primKey, N[1].indexes);
|
|
13070
|
-
}),
|
|
13070
|
+
}), k.change.forEach((N) => {
|
|
13071
13071
|
if (N.recreate)
|
|
13072
13072
|
throw new o0.Upgrade("Not yet support for changing primary key");
|
|
13073
13073
|
{
|
|
@@ -13077,18 +13077,18 @@ function h8(t, e, o, n) {
|
|
|
13077
13077
|
}), N.del.forEach((x) => V.deleteIndex(x));
|
|
13078
13078
|
}
|
|
13079
13079
|
});
|
|
13080
|
-
const
|
|
13081
|
-
if (
|
|
13080
|
+
const w = h._cfg.contentUpgrade;
|
|
13081
|
+
if (w && h._cfg.version > r) {
|
|
13082
13082
|
zc(i, z), a._memoizedTables = {}, A = !0;
|
|
13083
13083
|
let N = g4(B);
|
|
13084
|
-
|
|
13084
|
+
k.del.forEach((m) => {
|
|
13085
13085
|
N[m] = L[m];
|
|
13086
13086
|
}), ac(i, [i.Transaction.prototype]), Yo(i, [i.Transaction.prototype], $0(N), N), a.schema = N;
|
|
13087
|
-
const V = MM(
|
|
13087
|
+
const V = MM(w);
|
|
13088
13088
|
let x;
|
|
13089
13089
|
V && B2();
|
|
13090
13090
|
const F = K.follow(() => {
|
|
13091
|
-
if (x =
|
|
13091
|
+
if (x = w(a), x && V) {
|
|
13092
13092
|
var m = re.bind(null, null);
|
|
13093
13093
|
x.then(m, m);
|
|
13094
13094
|
}
|
|
@@ -13096,13 +13096,13 @@ function h8(t, e, o, n) {
|
|
|
13096
13096
|
return x && typeof x.then == "function" ? K.resolve(x) : F.then(() => x);
|
|
13097
13097
|
}
|
|
13098
13098
|
}), s.push((L) => {
|
|
13099
|
-
(!A || !r8) && function(B,
|
|
13100
|
-
[].slice.call(
|
|
13099
|
+
(!A || !r8) && function(B, k) {
|
|
13100
|
+
[].slice.call(k.db.objectStoreNames).forEach((w) => B[w] == null && k.db.deleteObjectStore(w));
|
|
13101
13101
|
}(h._cfg.dbschema, L), ac(i, [i.Transaction.prototype]), Yo(i, [i.Transaction.prototype], i._storeNames, i._dbSchema), a.schema = i._dbSchema;
|
|
13102
13102
|
});
|
|
13103
13103
|
}), f().then(() => {
|
|
13104
13104
|
var h, L;
|
|
13105
|
-
L = z, $0(h =
|
|
13105
|
+
L = z, $0(h = u).forEach((B) => {
|
|
13106
13106
|
L.db.objectStoreNames.contains(B) || Kn(L, B, h[B].primKey, h[B].indexes);
|
|
13107
13107
|
});
|
|
13108
13108
|
});
|
|
@@ -13248,8 +13248,8 @@ function m8(t) {
|
|
|
13248
13248
|
z.onerror = x1(r), z.onblocked = T0(t._fireOnBlocked), z.onupgradeneeded = T0((s) => {
|
|
13249
13249
|
if (M = z.transaction, e.autoSchema && !t._options.allowEmptyDB) {
|
|
13250
13250
|
z.onerror = Ot, M.abort(), z.result.close();
|
|
13251
|
-
const
|
|
13252
|
-
|
|
13251
|
+
const u = o.deleteDatabase(a);
|
|
13252
|
+
u.onsuccess = u.onerror = T0(() => {
|
|
13253
13253
|
r(new o0.NoSuchDatabase(`Database ${a} doesnt exist`));
|
|
13254
13254
|
});
|
|
13255
13255
|
} else {
|
|
@@ -13262,7 +13262,7 @@ function m8(t) {
|
|
|
13262
13262
|
const s = t._novip.idbdb = z.result, O = $o(s.objectStoreNames);
|
|
13263
13263
|
if (O.length > 0)
|
|
13264
13264
|
try {
|
|
13265
|
-
const A = s.transaction((
|
|
13265
|
+
const A = s.transaction((u = O).length === 1 ? u[0] : u, "readonly");
|
|
13266
13266
|
e.autoSchema ? function({ _novip: l }, f, h) {
|
|
13267
13267
|
l.verno = f.version / 10;
|
|
13268
13268
|
const L = l._dbSchema = Oc(0, f, h);
|
|
@@ -13273,7 +13273,7 @@ function m8(t) {
|
|
|
13273
13273
|
}(t, A) || console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")), zc(t, A);
|
|
13274
13274
|
} catch {
|
|
13275
13275
|
}
|
|
13276
|
-
var
|
|
13276
|
+
var u;
|
|
13277
13277
|
G2.push(t), s.onversionchange = T0((A) => {
|
|
13278
13278
|
e.vcFired = !0, t.on("versionchange").fire(A);
|
|
13279
13279
|
}), s.onclose = T0((A) => {
|
|
@@ -13353,8 +13353,8 @@ const y8 = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create:
|
|
|
13353
13353
|
return { ...t, table(e) {
|
|
13354
13354
|
const o = t.table(e), { schema: n } = o, b = {}, c = [];
|
|
13355
13355
|
function M(r, a, z) {
|
|
13356
|
-
const s = V2(r), O = b[s] = b[s] || [],
|
|
13357
|
-
return O.push(l), l.isPrimaryKey || c.push(l),
|
|
13356
|
+
const s = V2(r), O = b[s] = b[s] || [], u = r == null ? 0 : typeof r == "string" ? 1 : r.length, A = a > 0, l = { ...z, isVirtual: A, keyTail: a, keyLength: u, extractKey: rc(r), unique: !A && z.unique };
|
|
13357
|
+
return O.push(l), l.isPrimaryKey || c.push(l), u > 1 && M(u === 2 ? r[0] : r.slice(0, u - 1), a + 1, z), O.sort((f, h) => f.keyTail - h.keyTail), l;
|
|
13358
13358
|
}
|
|
13359
13359
|
const p = M(n.primaryKey.keyPath, 0, n.primaryKey);
|
|
13360
13360
|
b[":id"] = [p];
|
|
@@ -13370,15 +13370,15 @@ const y8 = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create:
|
|
|
13370
13370
|
return a && a[0];
|
|
13371
13371
|
} }, count: (r) => o.count(i(r)), query: (r) => o.query(i(r)), openCursor(r) {
|
|
13372
13372
|
const { keyTail: a, isVirtual: z, keyLength: s } = r.query.index;
|
|
13373
|
-
return z ? o.openCursor(i(r)).then((O) => O && function(
|
|
13374
|
-
return Object.create(
|
|
13375
|
-
A != null ?
|
|
13373
|
+
return z ? o.openCursor(i(r)).then((O) => O && function(u) {
|
|
13374
|
+
return Object.create(u, { continue: { value: function(A) {
|
|
13375
|
+
A != null ? u.continue(Qt(A, r.reverse ? t.MAX_KEY : t.MIN_KEY, a)) : r.unique ? u.continue(u.key.slice(0, s).concat(r.reverse ? t.MIN_KEY : t.MAX_KEY, a)) : u.continue();
|
|
13376
13376
|
} }, continuePrimaryKey: { value(A, l) {
|
|
13377
|
-
|
|
13378
|
-
} }, primaryKey: { get: () =>
|
|
13379
|
-
const A =
|
|
13377
|
+
u.continuePrimaryKey(Qt(A, t.MAX_KEY, a), l);
|
|
13378
|
+
} }, primaryKey: { get: () => u.primaryKey }, key: { get() {
|
|
13379
|
+
const A = u.key;
|
|
13380
13380
|
return s === 1 ? A[0] : A.slice(0, s);
|
|
13381
|
-
} }, value: { get: () =>
|
|
13381
|
+
} }, value: { get: () => u.value } });
|
|
13382
13382
|
}(O)) : o.openCursor(r);
|
|
13383
13383
|
} };
|
|
13384
13384
|
} };
|
|
@@ -13424,27 +13424,27 @@ const L8 = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: (t) =>
|
|
|
13424
13424
|
}
|
|
13425
13425
|
return o.mutate(b);
|
|
13426
13426
|
function r(z) {
|
|
13427
|
-
const s = e0.trans, O = z.keys || function(
|
|
13428
|
-
return A.type === "delete" ? A.keys : A.keys || A.values.map(
|
|
13427
|
+
const s = e0.trans, O = z.keys || function(u, A) {
|
|
13428
|
+
return A.type === "delete" ? A.keys : A.keys || A.values.map(u.extractKey);
|
|
13429
13429
|
}(n, z);
|
|
13430
13430
|
if (!O)
|
|
13431
13431
|
throw new Error("Keys missing");
|
|
13432
|
-
return (z = z.type === "add" || z.type === "put" ? { ...z, keys: O } : { ...z }).type !== "delete" && (z.values = [...z.values]), z.keys && (z.keys = [...z.keys]), function(
|
|
13433
|
-
return A.type === "add" ? Promise.resolve([]) :
|
|
13434
|
-
}(o, z, O).then((
|
|
13432
|
+
return (z = z.type === "add" || z.type === "put" ? { ...z, keys: O } : { ...z }).type !== "delete" && (z.values = [...z.values]), z.keys && (z.keys = [...z.keys]), function(u, A, l) {
|
|
13433
|
+
return A.type === "add" ? Promise.resolve([]) : u.getMany({ trans: A.trans, keys: l, cache: "immutable" });
|
|
13434
|
+
}(o, z, O).then((u) => {
|
|
13435
13435
|
const A = O.map((l, f) => {
|
|
13436
|
-
const h =
|
|
13436
|
+
const h = u[f], L = { onerror: null, onsuccess: null };
|
|
13437
13437
|
if (z.type === "delete")
|
|
13438
13438
|
M.fire.call(L, l, h, s);
|
|
13439
13439
|
else if (z.type === "add" || h === void 0) {
|
|
13440
13440
|
const B = p.fire.call(L, l, z.values[f], s);
|
|
13441
13441
|
l == null && B != null && (l = B, z.keys[f] = l, n.outbound || m1(z.values[f], n.keyPath, l));
|
|
13442
13442
|
} else {
|
|
13443
|
-
const B = dM(h, z.values[f]),
|
|
13444
|
-
if (
|
|
13445
|
-
const
|
|
13446
|
-
Object.keys(
|
|
13447
|
-
a1(
|
|
13443
|
+
const B = dM(h, z.values[f]), k = i.fire.call(L, B, l, h, s);
|
|
13444
|
+
if (k) {
|
|
13445
|
+
const w = z.values[f];
|
|
13446
|
+
Object.keys(k).forEach((N) => {
|
|
13447
|
+
a1(w, N) ? w[N] = k[N] : m1(w, N, k[N]);
|
|
13448
13448
|
});
|
|
13449
13449
|
}
|
|
13450
13450
|
}
|
|
@@ -13452,15 +13452,15 @@ const L8 = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: (t) =>
|
|
|
13452
13452
|
});
|
|
13453
13453
|
return o.mutate(z).then(({ failures: l, results: f, numFailures: h, lastResult: L }) => {
|
|
13454
13454
|
for (let B = 0; B < O.length; ++B) {
|
|
13455
|
-
const
|
|
13456
|
-
|
|
13455
|
+
const k = f ? f[B] : O[B], w = A[B];
|
|
13456
|
+
k == null ? w.onerror && w.onerror(l[B]) : w.onsuccess && w.onsuccess(z.type === "put" && u[B] ? z.values[B] : k);
|
|
13457
13457
|
}
|
|
13458
13458
|
return { failures: l, results: f, numFailures: h, lastResult: L };
|
|
13459
13459
|
}).catch((l) => (A.forEach((f) => f.onerror && f.onerror(l)), Promise.reject(l)));
|
|
13460
13460
|
});
|
|
13461
13461
|
}
|
|
13462
13462
|
function a(z, s, O) {
|
|
13463
|
-
return o.query({ trans: z, values: !1, query: { index: n, range: s }, limit: O }).then(({ result:
|
|
13463
|
+
return o.query({ trans: z, values: !1, query: { index: n, range: s }, limit: O }).then(({ result: u }) => r({ type: "delete", keys: u, trans: z }).then((A) => A.numFailures > 0 ? Promise.reject(A.failures[0]) : u.length < O ? { failures: [], numFailures: 0, lastResult: void 0 } : a(z, { ...s, lower: u[u.length - 1], lowerOpen: !0 }, O)));
|
|
13464
13464
|
}
|
|
13465
13465
|
} };
|
|
13466
13466
|
} }) };
|
|
@@ -13584,25 +13584,25 @@ const N8 = { stack: "dbcore", level: 0, create: (t) => {
|
|
|
13584
13584
|
const e = t.schema.name, o = new Q1(t.MIN_KEY, t.MAX_KEY);
|
|
13585
13585
|
return { ...t, table: (n) => {
|
|
13586
13586
|
const b = t.table(n), { schema: c } = b, { primaryKey: M } = c, { extractKey: p, outbound: i } = M, r = { ...b, mutate: (s) => {
|
|
13587
|
-
const O = s.trans,
|
|
13588
|
-
const N = `idb://${e}/${n}/${
|
|
13589
|
-
return
|
|
13587
|
+
const O = s.trans, u = O.mutatedParts || (O.mutatedParts = {}), A = (w) => {
|
|
13588
|
+
const N = `idb://${e}/${n}/${w}`;
|
|
13589
|
+
return u[N] || (u[N] = new Q1());
|
|
13590
13590
|
}, l = A(""), f = A(":dels"), { type: h } = s;
|
|
13591
13591
|
let [L, B] = s.type === "deleteRange" ? [s.range] : s.type === "delete" ? [s.keys] : s.values.length < 50 ? [[], s.values] : [];
|
|
13592
|
-
const
|
|
13593
|
-
return b.mutate(s).then((
|
|
13592
|
+
const k = s.trans._cache;
|
|
13593
|
+
return b.mutate(s).then((w) => {
|
|
13594
13594
|
if (K0(L)) {
|
|
13595
|
-
h !== "delete" && (L =
|
|
13596
|
-
const N = Y4(L,
|
|
13595
|
+
h !== "delete" && (L = w.results), l.addKeys(L);
|
|
13596
|
+
const N = Y4(L, k);
|
|
13597
13597
|
N || h === "add" || f.addKeys(L), (N || B) && function(V, x, F, m) {
|
|
13598
13598
|
function C(v) {
|
|
13599
13599
|
const y = V(v.name || "");
|
|
13600
13600
|
function q(g) {
|
|
13601
13601
|
return g != null ? v.extractKey(g) : null;
|
|
13602
13602
|
}
|
|
13603
|
-
const R = (g) => v.multiEntry && K0(g) ? g.forEach((
|
|
13604
|
-
(F || m).forEach((g,
|
|
13605
|
-
const P = F && q(F[
|
|
13603
|
+
const R = (g) => v.multiEntry && K0(g) ? g.forEach((T) => y.addKey(T)) : y.addKey(g);
|
|
13604
|
+
(F || m).forEach((g, T) => {
|
|
13605
|
+
const P = F && q(F[T]), Z = m && q(m[T]);
|
|
13606
13606
|
Q0(P, Z) !== 0 && (P != null && R(P), Z != null && R(Z));
|
|
13607
13607
|
});
|
|
13608
13608
|
}
|
|
@@ -13613,37 +13613,37 @@ const N8 = { stack: "dbcore", level: 0, create: (t) => {
|
|
|
13613
13613
|
f.add(N), l.add(N);
|
|
13614
13614
|
} else
|
|
13615
13615
|
l.add(o), f.add(o), c.indexes.forEach((N) => A(N.name).add(o));
|
|
13616
|
-
return
|
|
13616
|
+
return w;
|
|
13617
13617
|
});
|
|
13618
13618
|
} }, a = ({ query: { index: s, range: O } }) => {
|
|
13619
|
-
var
|
|
13620
|
-
return [s, new Q1((
|
|
13619
|
+
var u, A;
|
|
13620
|
+
return [s, new Q1((u = O.lower) !== null && u !== void 0 ? u : t.MIN_KEY, (A = O.upper) !== null && A !== void 0 ? A : t.MAX_KEY)];
|
|
13621
13621
|
}, z = { get: (s) => [M, new Q1(s.key)], getMany: (s) => [M, new Q1().addKeys(s.keys)], count: a, query: a, openCursor: a };
|
|
13622
13622
|
return $0(z).forEach((s) => {
|
|
13623
13623
|
r[s] = function(O) {
|
|
13624
|
-
const { subscr:
|
|
13625
|
-
if (
|
|
13624
|
+
const { subscr: u } = e0;
|
|
13625
|
+
if (u) {
|
|
13626
13626
|
const A = (B) => {
|
|
13627
|
-
const
|
|
13628
|
-
return
|
|
13627
|
+
const k = `idb://${e}/${n}/${B}`;
|
|
13628
|
+
return u[k] || (u[k] = new Q1());
|
|
13629
13629
|
}, l = A(""), f = A(":dels"), [h, L] = z[s](O);
|
|
13630
13630
|
if (A(h.name || "").add(L), !h.isPrimaryKey) {
|
|
13631
13631
|
if (s !== "count") {
|
|
13632
13632
|
const B = s === "query" && i && O.values && b.query({ ...O, values: !1 });
|
|
13633
|
-
return b[s].apply(this, arguments).then((
|
|
13633
|
+
return b[s].apply(this, arguments).then((k) => {
|
|
13634
13634
|
if (s === "query") {
|
|
13635
13635
|
if (i && O.values)
|
|
13636
|
-
return B.then(({ result: N }) => (l.addKeys(N),
|
|
13637
|
-
const
|
|
13638
|
-
O.values ? l.addKeys(
|
|
13636
|
+
return B.then(({ result: N }) => (l.addKeys(N), k));
|
|
13637
|
+
const w = O.values ? k.result.map(p) : k.result;
|
|
13638
|
+
O.values ? l.addKeys(w) : f.addKeys(w);
|
|
13639
13639
|
} else if (s === "openCursor") {
|
|
13640
|
-
const
|
|
13641
|
-
return
|
|
13642
|
-
const V =
|
|
13640
|
+
const w = k, N = O.values;
|
|
13641
|
+
return w && Object.create(w, { key: { get: () => (f.addKey(w.primaryKey), w.key) }, primaryKey: { get() {
|
|
13642
|
+
const V = w.primaryKey;
|
|
13643
13643
|
return f.addKey(V), V;
|
|
13644
|
-
} }, value: { get: () => (N && l.addKey(
|
|
13644
|
+
} }, value: { get: () => (N && l.addKey(w.primaryKey), w.value) } });
|
|
13645
13645
|
}
|
|
13646
|
-
return
|
|
13646
|
+
return k;
|
|
13647
13647
|
});
|
|
13648
13648
|
}
|
|
13649
13649
|
f.add(o);
|
|
@@ -13688,8 +13688,8 @@ class u2 {
|
|
|
13688
13688
|
if (i)
|
|
13689
13689
|
try {
|
|
13690
13690
|
r = i();
|
|
13691
|
-
} catch (
|
|
13692
|
-
a =
|
|
13691
|
+
} catch (u) {
|
|
13692
|
+
a = u;
|
|
13693
13693
|
}
|
|
13694
13694
|
const z = p._ctx, s = z.table, O = s.hook.reading.fire;
|
|
13695
13695
|
this._ctx = { table: s, index: z.index, isPrimKey: !z.index || s.schema.primKey.keyPath && z.index === s.schema.primKey.name, range: r, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: a, or: z.or, valueMapper: O !== at ? O : null };
|
|
@@ -13699,13 +13699,13 @@ class u2 {
|
|
|
13699
13699
|
});
|
|
13700
13700
|
}(this), this.Transaction = function(p) {
|
|
13701
13701
|
return C2(l8.prototype, function(i, r, a, z, s) {
|
|
13702
|
-
this.db = p, this.mode = i, this.storeNames = r, this.schema = a, this.chromeTransactionDurability = z, this.idbtrans = null, this.on = K2(this, "complete", "error", "abort"), this.parent = s || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new K((O,
|
|
13703
|
-
this._resolve = O, this._reject =
|
|
13702
|
+
this.db = p, this.mode = i, this.storeNames = r, this.schema = a, this.chromeTransactionDurability = z, this.idbtrans = null, this.on = K2(this, "complete", "error", "abort"), this.parent = s || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new K((O, u) => {
|
|
13703
|
+
this._resolve = O, this._reject = u;
|
|
13704
13704
|
}), this._completion.then(() => {
|
|
13705
13705
|
this.active = !1, this.on.complete.fire();
|
|
13706
13706
|
}, (O) => {
|
|
13707
|
-
var
|
|
13708
|
-
return this.active = !1, this.on.error.fire(O), this.parent ? this.parent._reject(O) :
|
|
13707
|
+
var u = this.active;
|
|
13708
|
+
return this.active = !1, this.on.error.fire(O), this.parent ? this.parent._reject(O) : u && this.idbtrans && this.idbtrans.abort(), F0(O);
|
|
13709
13709
|
});
|
|
13710
13710
|
});
|
|
13711
13711
|
}(this), this.Version = function(p) {
|
|
@@ -13901,8 +13901,8 @@ function T8(t) {
|
|
|
13901
13901
|
return $0(i).some((A) => p[A] && v8(p[A], i[A]));
|
|
13902
13902
|
}
|
|
13903
13903
|
const O = (A) => {
|
|
13904
|
-
G4(p, A), s() &&
|
|
13905
|
-
},
|
|
13904
|
+
G4(p, A), s() && u();
|
|
13905
|
+
}, u = () => {
|
|
13906
13906
|
if (a || M)
|
|
13907
13907
|
return;
|
|
13908
13908
|
p = {};
|
|
@@ -13912,12 +13912,12 @@ function T8(t) {
|
|
|
13912
13912
|
return c && L.then(re, re), L;
|
|
13913
13913
|
}(A);
|
|
13914
13914
|
z || (ke(ut, O), z = !0), a = !0, Promise.resolve(l).then((f) => {
|
|
13915
|
-
o = !0, e = f, a = !1, M || (s() ?
|
|
13915
|
+
o = !0, e = f, a = !1, M || (s() ? u() : (p = {}, i = A, b.next && b.next(f)));
|
|
13916
13916
|
}, (f) => {
|
|
13917
13917
|
a = !1, o = !1, b.error && b.error(f), r.unsubscribe();
|
|
13918
13918
|
});
|
|
13919
13919
|
};
|
|
13920
|
-
return
|
|
13920
|
+
return u(), r;
|
|
13921
13921
|
});
|
|
13922
13922
|
return n.hasValue = () => o, n.getValue = () => e, n;
|
|
13923
13923
|
}
|
|
@@ -14052,18 +14052,18 @@ const x8 = (t, e, o) => {
|
|
|
14052
14052
|
set: [],
|
|
14053
14053
|
reset: []
|
|
14054
14054
|
}, c = () => {
|
|
14055
|
-
var
|
|
14056
|
-
n = new Map(Object.entries((
|
|
14055
|
+
var u;
|
|
14056
|
+
n = new Map(Object.entries((u = Vn(t)) !== null && u !== void 0 ? u : {})), b.reset.forEach((A) => A());
|
|
14057
14057
|
}, M = () => {
|
|
14058
|
-
b.dispose.forEach((
|
|
14059
|
-
}, p = (
|
|
14060
|
-
const l = n.get(
|
|
14061
|
-
e(A, l,
|
|
14058
|
+
b.dispose.forEach((u) => u()), c();
|
|
14059
|
+
}, p = (u) => (b.get.forEach((A) => A(u)), n.get(u)), i = (u, A) => {
|
|
14060
|
+
const l = n.get(u);
|
|
14061
|
+
e(A, l, u) && (n.set(u, A), b.set.forEach((f) => f(u, A, l)));
|
|
14062
14062
|
}, r = typeof Proxy > "u" ? {} : new Proxy(o, {
|
|
14063
|
-
get(
|
|
14063
|
+
get(u, A) {
|
|
14064
14064
|
return p(A);
|
|
14065
14065
|
},
|
|
14066
|
-
ownKeys(
|
|
14066
|
+
ownKeys(u) {
|
|
14067
14067
|
return Array.from(n.keys());
|
|
14068
14068
|
},
|
|
14069
14069
|
getOwnPropertyDescriptor() {
|
|
@@ -14072,37 +14072,37 @@ const x8 = (t, e, o) => {
|
|
|
14072
14072
|
configurable: !0
|
|
14073
14073
|
};
|
|
14074
14074
|
},
|
|
14075
|
-
has(
|
|
14075
|
+
has(u, A) {
|
|
14076
14076
|
return n.has(A);
|
|
14077
14077
|
},
|
|
14078
|
-
set(
|
|
14078
|
+
set(u, A, l) {
|
|
14079
14079
|
return i(A, l), !0;
|
|
14080
14080
|
}
|
|
14081
|
-
}), a = (
|
|
14082
|
-
_8(b[
|
|
14081
|
+
}), a = (u, A) => (b[u].push(A), () => {
|
|
14082
|
+
_8(b[u], A);
|
|
14083
14083
|
});
|
|
14084
14084
|
return {
|
|
14085
14085
|
state: r,
|
|
14086
14086
|
get: p,
|
|
14087
14087
|
set: i,
|
|
14088
14088
|
on: a,
|
|
14089
|
-
onChange: (
|
|
14089
|
+
onChange: (u, A) => {
|
|
14090
14090
|
const l = a("set", (h, L) => {
|
|
14091
|
-
h ===
|
|
14092
|
-
}), f = a("reset", () => A(Vn(t)[
|
|
14091
|
+
h === u && A(L);
|
|
14092
|
+
}), f = a("reset", () => A(Vn(t)[u]));
|
|
14093
14093
|
return () => {
|
|
14094
14094
|
l(), f();
|
|
14095
14095
|
};
|
|
14096
14096
|
},
|
|
14097
|
-
use: (...
|
|
14098
|
-
const A =
|
|
14097
|
+
use: (...u) => {
|
|
14098
|
+
const A = u.reduce((l, f) => (f.set && l.push(a("set", f.set)), f.get && l.push(a("get", f.get)), f.reset && l.push(a("reset", f.reset)), f.dispose && l.push(a("dispose", f.dispose)), l), []);
|
|
14099
14099
|
return () => A.forEach((l) => l());
|
|
14100
14100
|
},
|
|
14101
14101
|
dispose: M,
|
|
14102
14102
|
reset: c,
|
|
14103
|
-
forceUpdate: (
|
|
14104
|
-
const A = n.get(
|
|
14105
|
-
b.set.forEach((l) => l(
|
|
14103
|
+
forceUpdate: (u) => {
|
|
14104
|
+
const A = n.get(u);
|
|
14105
|
+
b.set.forEach((l) => l(u, A, A));
|
|
14106
14106
|
}
|
|
14107
14107
|
};
|
|
14108
14108
|
}, _8 = (t, e) => {
|
|
@@ -14397,7 +14397,7 @@ class $8 {
|
|
|
14397
14397
|
return Math.min(b, e);
|
|
14398
14398
|
}
|
|
14399
14399
|
async getAvailability(e = 0, o = 0) {
|
|
14400
|
-
var s, O,
|
|
14400
|
+
var s, O, u, A;
|
|
14401
14401
|
this.schedulerStore.set("isLoading", !0);
|
|
14402
14402
|
const n = new URLSearchParams(), b = /* @__PURE__ */ new Date(), c = b.getTime();
|
|
14403
14403
|
if (o && o < c / 1e3)
|
|
@@ -14427,7 +14427,7 @@ class $8 {
|
|
|
14427
14427
|
return { error: f };
|
|
14428
14428
|
}
|
|
14429
14429
|
if ("data" in z) {
|
|
14430
|
-
const f = (((
|
|
14430
|
+
const f = (((u = (O = z.data) == null ? void 0 : O.time_slots) == null ? void 0 : u.map((L) => ({
|
|
14431
14431
|
...L,
|
|
14432
14432
|
start_time: new Date(L.start_time * 1e3),
|
|
14433
14433
|
end_time: new Date(L.end_time * 1e3)
|
|
@@ -14470,20 +14470,20 @@ class $8 {
|
|
|
14470
14470
|
const O = a || (M == null ? void 0 : M.end_time);
|
|
14471
14471
|
if (!O)
|
|
14472
14472
|
return { error: b.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
|
|
14473
|
-
const
|
|
14473
|
+
const u = this.schedulerStore.get("availabilityOrderEmails");
|
|
14474
14474
|
let A = "";
|
|
14475
|
-
if (
|
|
14475
|
+
if (u.length > 0) {
|
|
14476
14476
|
const F = (M == null ? void 0 : M.emails) || [];
|
|
14477
|
-
for (let m = 0; m <
|
|
14478
|
-
if (F.includes(
|
|
14479
|
-
A =
|
|
14477
|
+
for (let m = 0; m < u.length; m++)
|
|
14478
|
+
if (F.includes(u[m])) {
|
|
14479
|
+
A = u[m];
|
|
14480
14480
|
break;
|
|
14481
14481
|
}
|
|
14482
14482
|
}
|
|
14483
14483
|
const l = z || p;
|
|
14484
14484
|
if (!l)
|
|
14485
14485
|
return { error: b.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
|
|
14486
|
-
const f = o ? o == null ? void 0 : o.primaryParticipant : c == null ? void 0 : c.primaryParticipant, h = o ? (o == null ? void 0 : o.guests) || [] : (c == null ? void 0 : c.guests) || [], L = o ? o == null ? void 0 : o.additionalFields : c == null ? void 0 : c.additionalFields, B = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "",
|
|
14486
|
+
const f = o ? o == null ? void 0 : o.primaryParticipant : c == null ? void 0 : c.primaryParticipant, h = o ? (o == null ? void 0 : o.guests) || [] : (c == null ? void 0 : c.guests) || [], L = o ? o == null ? void 0 : o.additionalFields : c == null ? void 0 : c.additionalFields, B = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", k = `/v3/scheduling/bookings/${e}${B}`, w = this.getHeaders(), N = await this.makeAPIRequest(decodeURIComponent(k), "PATCH", JSON.stringify({
|
|
14487
14487
|
start_time: s.getTime() / 1e3,
|
|
14488
14488
|
end_time: O.getTime() / 1e3,
|
|
14489
14489
|
timezone: l,
|
|
@@ -14492,7 +14492,7 @@ class $8 {
|
|
|
14492
14492
|
additional_guests: h,
|
|
14493
14493
|
participants: A ? [{ email: A }] : void 0,
|
|
14494
14494
|
email_language: this.getTwoLetterLanguageCode(i)
|
|
14495
|
-
}),
|
|
14495
|
+
}), w);
|
|
14496
14496
|
if ("error" in N) {
|
|
14497
14497
|
this.schedulerStore.set("isLoading", !1);
|
|
14498
14498
|
const F = (x = N.error) == null ? void 0 : x.type;
|
|
@@ -14534,8 +14534,8 @@ class $8 {
|
|
|
14534
14534
|
const s = (z = a.error) == null ? void 0 : z.type;
|
|
14535
14535
|
let O = a.error;
|
|
14536
14536
|
if (s && s in this.errors.api(M)) {
|
|
14537
|
-
const
|
|
14538
|
-
O = this.errors.api(M)[s](
|
|
14537
|
+
const u = this.getErrorMessage(O);
|
|
14538
|
+
O = this.errors.api(M)[s](u);
|
|
14539
14539
|
}
|
|
14540
14540
|
return { error: O };
|
|
14541
14541
|
}
|
|
@@ -17185,7 +17185,7 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17185
17185
|
u0 = u0 / 60, D0 = s(b0.charCodeAt(_)), W0 += D0 * u0;
|
|
17186
17186
|
return W0 * X0;
|
|
17187
17187
|
}
|
|
17188
|
-
function
|
|
17188
|
+
function u(W) {
|
|
17189
17189
|
for (var _ = 0; _ < W.length; _++)
|
|
17190
17190
|
W[_] = O(W[_]);
|
|
17191
17191
|
}
|
|
@@ -17202,7 +17202,7 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17202
17202
|
}
|
|
17203
17203
|
function f(W) {
|
|
17204
17204
|
var _ = W.split("|"), D = _[2].split(" "), j = _[3].split(""), b0 = _[4].split(" ");
|
|
17205
|
-
return
|
|
17205
|
+
return u(D), u(j), u(b0), A(b0, j.length), {
|
|
17206
17206
|
name: _[0],
|
|
17207
17207
|
abbrs: l(_[1].split(" "), j),
|
|
17208
17208
|
offsets: l(D, j),
|
|
@@ -17260,27 +17260,27 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17260
17260
|
function B(W, _) {
|
|
17261
17261
|
this.name = W, this.zones = _;
|
|
17262
17262
|
}
|
|
17263
|
-
function
|
|
17263
|
+
function k(W) {
|
|
17264
17264
|
var _ = W.toTimeString(), D = _.match(/\([a-z ]+\)/i);
|
|
17265
17265
|
D && D[0] ? (D = D[0].match(/[A-Z]/g), D = D ? D.join("") : void 0) : (D = _.match(/[A-Z]{3,5}/g), D = D ? D[0] : void 0), D === "GMT" && (D = void 0), this.at = +W, this.abbr = D, this.offset = W.getTimezoneOffset();
|
|
17266
17266
|
}
|
|
17267
|
-
function
|
|
17267
|
+
function w(W) {
|
|
17268
17268
|
this.zone = W, this.offsetScore = 0, this.abbrScore = 0;
|
|
17269
17269
|
}
|
|
17270
|
-
|
|
17270
|
+
w.prototype.scoreOffsetAt = function(W) {
|
|
17271
17271
|
this.offsetScore += Math.abs(this.zone.utcOffset(W.at) - W.offset), this.zone.abbr(W.at).replace(/[^A-Z]/g, "") !== W.abbr && this.abbrScore++;
|
|
17272
17272
|
};
|
|
17273
17273
|
function N(W, _) {
|
|
17274
17274
|
for (var D, j; j = ((_.at - W.at) / 12e4 | 0) * 6e4; )
|
|
17275
|
-
D = new
|
|
17275
|
+
D = new k(new Date(W.at + j)), D.offset === W.offset ? W = D : _ = D;
|
|
17276
17276
|
return W;
|
|
17277
17277
|
}
|
|
17278
17278
|
function V() {
|
|
17279
|
-
var W = (/* @__PURE__ */ new Date()).getFullYear() - 2, _ = new
|
|
17279
|
+
var W = (/* @__PURE__ */ new Date()).getFullYear() - 2, _ = new k(new Date(W, 0, 1)), D = _.offset, j = [_], b0, u0, D0, W0;
|
|
17280
17280
|
for (W0 = 1; W0 < 48; W0++)
|
|
17281
|
-
D0 = new Date(W, W0, 1).getTimezoneOffset(), D0 !== D && (u0 = new
|
|
17281
|
+
D0 = new Date(W, W0, 1).getTimezoneOffset(), D0 !== D && (u0 = new k(new Date(W, W0, 1)), b0 = N(_, u0), j.push(b0), j.push(new k(new Date(b0.at + 6e4))), _ = u0, D = D0);
|
|
17282
17282
|
for (W0 = 0; W0 < 4; W0++)
|
|
17283
|
-
j.push(new
|
|
17283
|
+
j.push(new k(new Date(W + W0, 0, 1))), j.push(new k(new Date(W + W0, 6, 1)));
|
|
17284
17284
|
return j;
|
|
17285
17285
|
}
|
|
17286
17286
|
function x(W, _) {
|
|
@@ -17288,7 +17288,7 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17288
17288
|
}
|
|
17289
17289
|
function F(W, _) {
|
|
17290
17290
|
var D, j;
|
|
17291
|
-
for (
|
|
17291
|
+
for (u(_), D = 0; D < _.length; D++)
|
|
17292
17292
|
j = _[D], p[j] = p[j] || {}, p[j][W] = !0;
|
|
17293
17293
|
}
|
|
17294
17294
|
function m(W) {
|
|
@@ -17317,7 +17317,7 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17317
17317
|
}
|
|
17318
17318
|
var D = V(), j = D.length, b0 = m(D), u0 = [], D0, W0, X0;
|
|
17319
17319
|
for (W0 = 0; W0 < b0.length; W0++) {
|
|
17320
|
-
for (D0 = new
|
|
17320
|
+
for (D0 = new w(R(b0[W0])), X0 = 0; X0 < j; X0++)
|
|
17321
17321
|
D0.scoreOffsetAt(D[X0]);
|
|
17322
17322
|
u0.push(D0);
|
|
17323
17323
|
}
|
|
@@ -17345,7 +17345,7 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17345
17345
|
M.hasOwnProperty(W) && (n[W] || n[b[W]]) && M[W] && _.push(M[W]);
|
|
17346
17346
|
return _.sort();
|
|
17347
17347
|
}
|
|
17348
|
-
function
|
|
17348
|
+
function T() {
|
|
17349
17349
|
return Object.keys(c);
|
|
17350
17350
|
}
|
|
17351
17351
|
function P(W) {
|
|
@@ -17379,8 +17379,8 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17379
17379
|
function E0(W) {
|
|
17380
17380
|
q(W.zones), P(W.links), Z(W.countries), i0.dataVersion = W.version;
|
|
17381
17381
|
}
|
|
17382
|
-
function
|
|
17383
|
-
return
|
|
17382
|
+
function p0(W) {
|
|
17383
|
+
return p0.didShowError || (p0.didShowError = !0, C0("moment.tz.zoneExists('" + W + "') has been deprecated in favor of !moment.tz.zone('" + W + "')")), !!R(W);
|
|
17384
17384
|
}
|
|
17385
17385
|
function c0(W) {
|
|
17386
17386
|
var _ = W._f === "X" || W._f === "x";
|
|
@@ -17393,7 +17393,7 @@ const F9 = /* @__PURE__ */ Object.freeze({
|
|
|
17393
17393
|
var _ = Array.prototype.slice.call(arguments, 0, -1), D = arguments[arguments.length - 1], j = e.utc.apply(null, _), b0;
|
|
17394
17394
|
return !e.isMoment(W) && c0(j) && (b0 = R(D)) && j.add(b0.parse(j), "minutes"), j.tz(D), j;
|
|
17395
17395
|
}
|
|
17396
|
-
i0.version = o, i0.dataVersion = "", i0._zones = n, i0._links = b, i0._names = M, i0._countries = c, i0.add = q, i0.link = P, i0.load = E0, i0.zone = R, i0.zoneExists =
|
|
17396
|
+
i0.version = o, i0.dataVersion = "", i0._zones = n, i0._links = b, i0._names = M, i0._countries = c, i0.add = q, i0.link = P, i0.load = E0, i0.zone = R, i0.zoneExists = p0, i0.guess = v, i0.names = g, i0.Zone = h, i0.unpack = f, i0.unpackBase60 = O, i0.needsOffset = c0, i0.moveInvalidForward = !0, i0.moveAmbiguousForward = !1, i0.countries = T, i0.zonesForCountry = Q;
|
|
17397
17397
|
var h0 = e.fn;
|
|
17398
17398
|
e.tz = i0, e.defaultZone = null, e.updateOffset = function(W, _) {
|
|
17399
17399
|
var D = e.defaultZone, j;
|
|
@@ -18335,7 +18335,7 @@ const Q9 = ".sc-add-circle-icon-h{display:flex}", eL = Q9, tL = a0(class extends
|
|
|
18335
18335
|
super(), this.__registerHost(), this.width = "24", this.height = "25";
|
|
18336
18336
|
}
|
|
18337
18337
|
render() {
|
|
18338
|
-
return
|
|
18338
|
+
return d("svg", { key: "9b8f05e545513c4c1c04aaeb303c60d51e8263f4", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "80bd0f3a26f863b80196b8ff3831223db307701d", d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" }));
|
|
18339
18339
|
}
|
|
18340
18340
|
static get style() {
|
|
18341
18341
|
return eL;
|
|
@@ -18360,7 +18360,7 @@ const oL = ".wave{display:flex;align-items:center;justify-content:center}.dot{wi
|
|
|
18360
18360
|
super(), this.__registerHost(), this.__attachShadow(), this.width = "15", this.height = "15";
|
|
18361
18361
|
}
|
|
18362
18362
|
render() {
|
|
18363
|
-
return
|
|
18363
|
+
return d("div", { key: "5ff9aa86f4d346ab894e59e1a4b96756a5f38231", class: "wave" }, d("div", { key: "35fa4038e2be7d2a18e65ada70f40f2d2e1001e8", class: "dot" }), d("div", { key: "f16983cd2790b6a781cdb71e317046f7fa27c264", class: "dot" }), d("div", { key: "c03e50ae47d23c1caa2c9c5c19f6d1ae274de1b7", class: "dot" }));
|
|
18364
18364
|
}
|
|
18365
18365
|
static get style() {
|
|
18366
18366
|
return nL;
|
|
@@ -18386,7 +18386,7 @@ const cL = "button.sc-button-component{display:flex;align-items:center;justify-c
|
|
|
18386
18386
|
}
|
|
18387
18387
|
render() {
|
|
18388
18388
|
const e = `button-${this.variant}` + (this.disabled ? " disabled" : "");
|
|
18389
|
-
return
|
|
18389
|
+
return d("button", { key: "8e535c0a5cb3be758941eee5ac5bf9b1e65b9e42", class: e, disabled: this.disabled, type: "type", onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, !!this.isLoading && d("loading-icon", { slot: "icon" }), d("slot", { key: "cc75d33abd248961336b47c5ae558c87d1ddce1e" }));
|
|
18390
18390
|
}
|
|
18391
18391
|
static get style() {
|
|
18392
18392
|
return ML;
|
|
@@ -18421,7 +18421,7 @@ const iL = ".sc-calendar-cancel-icon-h{display:flex}", rL = iL, zL = a0(class ex
|
|
|
18421
18421
|
super(), this.__registerHost(), this.width = "20", this.height = "20";
|
|
18422
18422
|
}
|
|
18423
18423
|
render() {
|
|
18424
|
-
return
|
|
18424
|
+
return d("svg", { key: "f906a149b55a76e7c4ffb6d912992a2c5995bb03", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "95a84e4821b1c9da1633690004da847fc79f2eb3", d: "M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z", fill: "currentColor" }));
|
|
18425
18425
|
}
|
|
18426
18426
|
static get style() {
|
|
18427
18427
|
return rL;
|
|
@@ -18446,7 +18446,7 @@ const aL = ".sc-calendar-check-icon-h{display:flex}", sL = aL, OL = a0(class ext
|
|
|
18446
18446
|
super(), this.__registerHost(), this.width = "20", this.height = "20";
|
|
18447
18447
|
}
|
|
18448
18448
|
render() {
|
|
18449
|
-
return
|
|
18449
|
+
return d("svg", { key: "a1c54b1279fece33095b459f3e94555b27f703b7", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "cc74a6a2aaf0961c56af2243361bbf9bcda9d999", fill: "currentColor", d: "M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z" }));
|
|
18450
18450
|
}
|
|
18451
18451
|
static get style() {
|
|
18452
18452
|
return sL;
|
|
@@ -18471,7 +18471,7 @@ const uL = ".sc-calendar-icon-h{display:flex}", dL = uL, lL = a0(class extends s
|
|
|
18471
18471
|
super(), this.__registerHost(), this.width = "15", this.height = "15";
|
|
18472
18472
|
}
|
|
18473
18473
|
render() {
|
|
18474
|
-
return
|
|
18474
|
+
return d("svg", { key: "a3b4e601e6e37853975fe84c583d9ef3f373be33", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "7928deb0c04f7a894a1c7d988a36ac2c789ba252", fill: "currentColor", d: "M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z" }));
|
|
18475
18475
|
}
|
|
18476
18476
|
static get style() {
|
|
18477
18477
|
return dL;
|
|
@@ -18493,7 +18493,7 @@ function jf() {
|
|
|
18493
18493
|
}
|
|
18494
18494
|
const AL = '.checkbox-container{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', fL = AL, qL = a0(class extends s0 {
|
|
18495
18495
|
constructor() {
|
|
18496
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormCheckboxToggled =
|
|
18496
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormCheckboxToggled = M0(this, "nylasFormCheckboxToggled", 7), this.componentType = "checkbox", this.name = "checkbox", this.checked = void 0, this.label = "", this.required = !1, this.isChecked = void 0, this.error = "";
|
|
18497
18497
|
}
|
|
18498
18498
|
componentWillLoad() {
|
|
18499
18499
|
this.el.setAttribute("component-type", this.componentType);
|
|
@@ -18516,7 +18516,7 @@ const AL = '.checkbox-container{--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
18516
18516
|
});
|
|
18517
18517
|
}
|
|
18518
18518
|
render() {
|
|
18519
|
-
return
|
|
18519
|
+
return d("div", { key: "2e9457e9cc43e9361637d4e7d708d5ed7bcc81e7", class: "checkbox-container" }, d("label", { key: "3c67d580d1c99e55651d819d8412164f3f781853" }, d("input", { key: "01d2fd66e344ab9465cf1899327f5ee25deb6d8d", type: "checkbox", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), d("span", { key: "67f17754686147fcfdaf20fdf779f4bb2a213e09", class: "checkmark" }), d("slot", { key: "4ee5c4d97e1911c0481a7983fd5893be14d27656", name: "label" }, d("span", { key: "387fd51b12ae65d1a68436146dd71fcad6a67e88", class: "label" }, this.label))), this.error && d("p", { class: "error" }, this.error));
|
|
18520
18520
|
}
|
|
18521
18521
|
get el() {
|
|
18522
18522
|
return this;
|
|
@@ -18548,7 +18548,7 @@ const hL = ".sc-checkmark-circle-icon-h{display:flex}", WL = hL, gL = a0(class e
|
|
|
18548
18548
|
super(), this.__registerHost(), this.width = "20", this.height = "20";
|
|
18549
18549
|
}
|
|
18550
18550
|
render() {
|
|
18551
|
-
return
|
|
18551
|
+
return d("svg", { key: "e532ec8571810fa7b538f4bbde8245e829186d80", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, d("path", { key: "1907a308dcb3f2bacd4ea5b07c2ecdc1523c4367", fill: "currentColor", d: "M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z" }));
|
|
18552
18552
|
}
|
|
18553
18553
|
static get style() {
|
|
18554
18554
|
return WL;
|
|
@@ -18573,7 +18573,7 @@ const mL = ".sc-chevron-icon-h{display:flex}", RL = mL, yL = a0(class extends s0
|
|
|
18573
18573
|
super(), this.__registerHost(), this.width = "24", this.height = "24";
|
|
18574
18574
|
}
|
|
18575
18575
|
render() {
|
|
18576
|
-
return
|
|
18576
|
+
return d("svg", { key: "90d483478e14f04ab2793f5c922ccb87a8b1f1cc", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, d("path", { key: "b50664e82487982f62f962fd7e6586d2a68e42e9", fill: "currentColor", d: "M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z" }));
|
|
18577
18577
|
}
|
|
18578
18578
|
static get style() {
|
|
18579
18579
|
return RL;
|
|
@@ -18598,7 +18598,7 @@ const LL = ".sc-clock-icon-h{display:flex}", BL = LL, vL = a0(class extends s0 {
|
|
|
18598
18598
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
18599
18599
|
}
|
|
18600
18600
|
render() {
|
|
18601
|
-
return
|
|
18601
|
+
return d("svg", { key: "b8bd059fe853d0249935592253184210e085d5f7", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "05779775a1914fac9e5f6e58c58c46ec41080d9a", d: "M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z", fill: "currentColor" }));
|
|
18602
18602
|
}
|
|
18603
18603
|
static get style() {
|
|
18604
18604
|
return BL;
|
|
@@ -18623,7 +18623,7 @@ const NL = ".sc-close-icon-h{display:flex}", kL = NL, wL = a0(class extends s0 {
|
|
|
18623
18623
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
18624
18624
|
}
|
|
18625
18625
|
render() {
|
|
18626
|
-
return
|
|
18626
|
+
return d("svg", { key: "781556b9f4b7e7601555738d269d42c865e1d39a", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("g", { key: "40e7787cbf60dc41c46e23571582d97b6ba95b6e", "clip-path": "url(#a)" }, d("path", { key: "991d9d4c71663288ebd4c5202c997624b8215678", d: "M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z", fill: "currentColor" })), d("defs", { key: "f8d0c70fc77f5be3791251e0f03208ece6af517f" }, d("clipPath", { key: "1c88efda98af5a21f7efbfa60d68ddad75e73893", id: "a" }, d("path", { key: "8d66c6f7b956df6d1db19ab1c7282ffaebc2406a", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
|
|
18627
18627
|
}
|
|
18628
18628
|
static get style() {
|
|
18629
18629
|
return kL;
|
|
@@ -18648,7 +18648,7 @@ const TL = ".sc-globe-icon-h{display:flex}", xL = TL, EL = a0(class extends s0 {
|
|
|
18648
18648
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
18649
18649
|
}
|
|
18650
18650
|
render() {
|
|
18651
|
-
return
|
|
18651
|
+
return d("svg", { key: "7c83ee77abce8b529eaa559dfc1b00b0b2369af0", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none" }, d("path", { key: "87f616c71c80ea48e80294b32532056791013852", d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z", fill: "currentColor" }));
|
|
18652
18652
|
}
|
|
18653
18653
|
static get style() {
|
|
18654
18654
|
return xL;
|
|
@@ -18673,7 +18673,7 @@ const XL = ".sc-info-icon-h{display:flex}", CL = XL, SL = a0(class extends s0 {
|
|
|
18673
18673
|
super(), this.__registerHost(), this.width = "14", this.height = "14";
|
|
18674
18674
|
}
|
|
18675
18675
|
render() {
|
|
18676
|
-
return
|
|
18676
|
+
return d("svg", { key: "53da1e7144b384f7c1b7aed55e2a31f8cdca2ff4", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "2183e258f3d47e706ddc63dc0f7352d2dfef00d2", fill: "currentColor", d: "M6.5 5.5C6.77614 5.5 7 5.72386 7 6V9C7 9.27614 6.77614 9.5 6.5 9.5C6.22386 9.5 6 9.27614 6 9V6C6 5.72386 6.22386 5.5 6.5 5.5ZM6.50001 4.74907C6.91369 4.74907 7.24905 4.41371 7.24905 4.00003C7.24905 3.58635 6.91369 3.251 6.50001 3.251C6.08633 3.251 5.75098 3.58635 5.75098 4.00003C5.75098 4.41371 6.08633 4.74907 6.50001 4.74907ZM0.5 6.5C0.5 3.18629 3.18629 0.5 6.5 0.5C9.81371 0.5 12.5 3.18629 12.5 6.5C12.5 9.81371 9.81371 12.5 6.5 12.5C3.18629 12.5 0.5 9.81371 0.5 6.5ZM6.5 1.5C3.73858 1.5 1.5 3.73858 1.5 6.5C1.5 9.26142 3.73858 11.5 6.5 11.5C9.26142 11.5 11.5 9.26142 11.5 6.5C11.5 3.73858 9.26142 1.5 6.5 1.5Z" }));
|
|
18677
18677
|
}
|
|
18678
18678
|
static get style() {
|
|
18679
18679
|
return CL;
|
|
@@ -18701,7 +18701,7 @@ const _L = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
|
|
|
18701
18701
|
phone_number: "1234567890"
|
|
18702
18702
|
}, PL = a0(class extends s0 {
|
|
18703
18703
|
constructor() {
|
|
18704
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormInputChanged =
|
|
18704
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormInputChanged = M0(this, "nylasFormInputChanged", 7), this.nylasFormInputFocused = M0(this, "nylasFormInputFocused", 7), this.nylasFormInputBlurred = M0(this, "nylasFormInputBlurred", 7), this.name = "input", this.defaultValue = void 0, this.label = "", this.type = "text", this.placeholder = $L[this.type], this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.pattern = void 0, this.maxLength = 255, this.patternError = "", this.requiredError = "", this.value = void 0, this.error = "";
|
|
18705
18705
|
}
|
|
18706
18706
|
handleDefaultValueChange(e) {
|
|
18707
18707
|
this.value = z2(e), this.value && this.validatePattern(this.value);
|
|
@@ -18745,7 +18745,7 @@ const _L = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-erro
|
|
|
18745
18745
|
!this.pattern || !e && !this.required || (this.pattern.test(e) ? this.error = "" : this.error = this.patternError || "Invalid format.");
|
|
18746
18746
|
}
|
|
18747
18747
|
render() {
|
|
18748
|
-
return
|
|
18748
|
+
return d("label", { key: "207cb06847b7a045c4917180affc535169b55596", part: "ic__label", class: { error: !!this.error } }, this.label && d("p", null, d("span", { class: "label" }, this.label), this.required && d("span", { class: "required" }, "*")), d("div", { key: "8da4d52acd543376116d9851df43eb54b3e3fec1", part: "ic__input_wrapper", class: "input_wrapper" }, d("input", { key: "541168da152c81e01dfa0263f8c1f0b6e73e09f2", type: "text", name: this.name, part: "ic__input", readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, placeholder: this.placeholder, class: { error: !!this.error }, onInput: (e) => this.handleInput(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), d("slot", { key: "9e4ccbf52802dc59bda1d6b738c45026b8b78bd4", name: "additional-input" })), this.error && d("span", { class: "error help-text" }, this.error));
|
|
18749
18749
|
}
|
|
18750
18750
|
get el() {
|
|
18751
18751
|
return this;
|
|
@@ -18907,7 +18907,7 @@ var YL = function(t, e, o, n) {
|
|
|
18907
18907
|
};
|
|
18908
18908
|
const Vf = a0(class extends s0 {
|
|
18909
18909
|
constructor() {
|
|
18910
|
-
super(), this.__registerHost(), this.__attachShadow(), this.cancelBookingButtonClicked =
|
|
18910
|
+
super(), this.__registerHost(), this.__attachShadow(), this.cancelBookingButtonClicked = M0(this, "cancelBookingButtonClicked", 7), this.rescheduleButtonClicked = M0(this, "rescheduleButtonClicked", 7), this.rescheduleBookedEventError = M0(this, "rescheduleBookedEventError", 7), this.cancelBookedEventValidationError = M0(this, "cancelBookedEventValidationError", 7), this.handleCancelBookingButtonClicked = () => {
|
|
18911
18911
|
var b, c;
|
|
18912
18912
|
const e = new Date(this.selectedTimeslot.start_time), o = (c = (b = this.configSettings) == null ? void 0 : b.scheduler) == null ? void 0 : c.min_cancellation_notice;
|
|
18913
18913
|
e.getTime() - o * 60 * 1e3 < (/* @__PURE__ */ new Date()).getTime() ? this.cancelBookedEventValidationError.emit({
|
|
@@ -18943,13 +18943,13 @@ const Vf = a0(class extends s0 {
|
|
|
18943
18943
|
I("[nylas-booked-event-card] Component did load"), this.eventInfo || console.warn('[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 || console.warn('[nylas-booked-event-card] "bookingInfo" prop missing. Please provide the booking info to display the guest details in the booked event card component.');
|
|
18944
18944
|
}
|
|
18945
18945
|
render() {
|
|
18946
|
-
var n, b, c, M, p, i, r, a, z, s, O,
|
|
18946
|
+
var n, b, c, M, p, i, r, a, z, s, O, u, A, l, f, h, L, B;
|
|
18947
18947
|
const e = (n = this.configSettings) == null ? void 0 : n.booking_type, o = e && e !== "booking";
|
|
18948
|
-
return
|
|
18948
|
+
return d(x0, { key: "6780a2a0b1c59efc4311278e85e6800f72ab6a98", part: "nbec" }, d("div", { key: "eed7c01aaaca8c92a65beccac1242efe1194f4a3", class: "nylas-booked-event-card" }, d("div", { key: "f20609db6794c30012f299017b01bf63752b6b7f", class: "booked-event-timezone" }, d("globe-icon", { key: "e2f277abf894b2c34e32f4cec4309e81a1b6e19b" }), J2[this.selectedTimezone]), d("div", { key: "84c8bcdc7f247eade07d502cd480430cfb2894fd", class: "event-card-wrapper", part: "nbec__card" }, d("div", { key: "58835f4e2b261dff59e212573a2391cac9217cb6", class: "calendar-icon" }, d("calendar-check-icon", { key: "53e406d85941c03c7d0c7c5e86e071f948fe85bd" })), d("div", { key: "0e16b5cabfe5afcea5fd15fefbf88ed2558c5492", class: "booked-event-header" }, d("h2", { key: "8ad08c13c5860cf47b217cc9c6d82dddb0940894", slot: "card-title", part: "nbec__title" }, this.rescheduleBookingId && !this.isLoading ? `${E.t("bookingRescheduled")}` : o && !this.isLoading ? `${E.t("bookingSent")}` : `${E.t("bookingConfirmed")}`, "!"), d("div", { key: "07a056ef47e7d3c173c7ad67acedc5b94748d28f", class: "card-description", part: "nbec__description" }, o ? E.t("bookingSentDescription") : d("span", null, E.t("bookingConfirmedDescription")))), d("div", { key: "4d4f43295cef324b63b3d5fa6f3476dcf3163d25", class: "booking-date-time" }, d("checkmark-circle-icon", { key: "2c717204ed669e40898c8b23dd408e3c62608e8f" }), d("h3", { key: "1a2ec41f82e740d9bdbac8fe1a818454e402db2f" }, E.t("bookingDateAndTimeHeader")), d("p", { key: "1451ecae33ccfbe9f0bc4b682d90a64313f1120c" }, (b = this.selectedTimeslot) != null && b.start_time ? bM(new Date((c = this.selectedTimeslot) == null ? void 0 : c.start_time).toLocaleDateString(DM[this.selectedLanguage], { dateStyle: "full" })) : "-", " ", d("br", { key: "df6922d0097f6d3aa7b17dee26a7903e89c9258c" }), new Date((M = this.selectedTimeslot) == null ? void 0 : M.start_time).toLocaleTimeString(void 0, { timeStyle: "short" }), " -", " ", new Date((p = this.selectedTimeslot) == null ? void 0 : p.end_time).toLocaleTimeString(void 0, { timeStyle: "short" }))), d("div", { key: "6e4264737dc50225feeec5374a6bec91de77a0ea", class: "booking-participants" }), !o && d("div", { class: "button-container" }, d("div", { class: {
|
|
18949
18949
|
footer: !0,
|
|
18950
18950
|
"no-footer": ((r = (i = this.configSettings) == null ? void 0 : i.scheduler) == null ? void 0 : r.hide_cancellation_options) && ((z = (a = this.configSettings) == null ? void 0 : a.scheduler) == null ? void 0 : z.hide_rescheduling_options) || ((s = this.configSettings) == null ? void 0 : s.booking_type) === "organizer-confirmation",
|
|
18951
|
-
"no-template-cols": ((
|
|
18952
|
-
} }, !((h = (f = this.configSettings) == null ? void 0 : f.scheduler) != null && h.hide_cancellation_options) &&
|
|
18951
|
+
"no-template-cols": ((u = (O = this.configSettings) == null ? void 0 : O.scheduler) == null ? void 0 : u.hide_cancellation_options) || ((l = (A = this.configSettings) == null ? void 0 : A.scheduler) == null ? void 0 : l.hide_rescheduling_options)
|
|
18952
|
+
} }, !((h = (f = this.configSettings) == null ? void 0 : f.scheduler) != null && h.hide_cancellation_options) && d("button-component", { variant: "destructive", onClick: this.handleCancelBookingButtonClicked, part: "nbec__button-outline nbec__cancel-cta" }, `${E.t("cancelBookingButton")}`), !((B = (L = this.configSettings) == null ? void 0 : L.scheduler) != null && B.hide_rescheduling_options) && d("button-component", { variant: "basic", onClick: this.handleRescheduleButtonClicked, part: "nbec__button-outline nbec__reschedule-cta" }, `${E.t("rescheduleBookingButton")}`))))));
|
|
18953
18953
|
}
|
|
18954
18954
|
static get style() {
|
|
18955
18955
|
return HL;
|
|
@@ -19025,7 +19025,7 @@ function GL() {
|
|
|
19025
19025
|
}
|
|
19026
19026
|
const KL = '.radio-group{display:flex;flex-direction:column;gap:0.5rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}', VL = KL, ZL = a0(class extends s0 {
|
|
19027
19027
|
constructor() {
|
|
19028
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormRadioChanged =
|
|
19028
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormRadioChanged = M0(this, "nylasFormRadioChanged", 7), this.componentType = "radio-group", this.name = "radio-group", this.options = [], this.defaultSelectedValue = "", this.label = void 0, this.required = !1, this.selectedValue = void 0, this.error = "";
|
|
19029
19029
|
}
|
|
19030
19030
|
handleDefaultSelectedValueChange(e) {
|
|
19031
19031
|
this.selectedValue = e;
|
|
@@ -19051,7 +19051,7 @@ const KL = '.radio-group{display:flex;flex-direction:column;gap:0.5rem;--nylas-p
|
|
|
19051
19051
|
});
|
|
19052
19052
|
}
|
|
19053
19053
|
render() {
|
|
19054
|
-
return
|
|
19054
|
+
return d("div", { key: "20c4be1bdb2f8fc16cba7cd91b97f618e185e24f", class: "radio-group" }, d("slot", { key: "4a54edf907afa1e3e9e6191b21bdceb913503a2e", name: "label" }, this.label && d("p", { class: { error: !!this.error } }, d("span", { class: "label" }, this.label), this.required && d("span", { class: "required" }, "*"))), this.options.map((e) => d("label", null, d("div", { class: "radio-option" }, d("input", { type: "radio", name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), d("p", null, d("span", { class: "title" }, e.label), d("span", { class: "description" }, e.description))))), this.error && d("span", { class: "error help-text" }, this.error));
|
|
19055
19055
|
}
|
|
19056
19056
|
get el() {
|
|
19057
19057
|
return this;
|
|
@@ -19091,7 +19091,7 @@ const JL = ".sc-search-icon-h{display:flex}", QL = JL, eB = a0(class extends s0
|
|
|
19091
19091
|
super(), this.__registerHost(), this.width = "15", this.height = "15";
|
|
19092
19092
|
}
|
|
19093
19093
|
render() {
|
|
19094
|
-
return
|
|
19094
|
+
return d("svg", { key: "bed5da3f7b1b6d9737b4289b2123ed11a0ce3298", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "c43ccee98412d9f980018c737e15ce43d0f5c2be", fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" }));
|
|
19095
19095
|
}
|
|
19096
19096
|
static get style() {
|
|
19097
19097
|
return QL;
|
|
@@ -19113,19 +19113,30 @@ function wn() {
|
|
|
19113
19113
|
}
|
|
19114
19114
|
const tB = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}', oB = tB, nB = a0(class extends s0 {
|
|
19115
19115
|
constructor() {
|
|
19116
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged =
|
|
19116
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormDropdownChanged = M0(this, "nylasFormDropdownChanged", 7), this.nylasFormDropdownDefaultSelected = M0(this, "nylasFormDropdownDefaultSelected", 7), this.componentType = "select-dropdown", this.name = void 0, this.options = [], this.defaultSelectedOption = null, this.withSearch = !0, this.label = void 0, this.required = !1, this.pluralizedLabel = "", this.dropdownButtonText = void 0, this.withChevron = !0, this.selectedOption = void 0, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "", this.errorMessage = "";
|
|
19117
19117
|
}
|
|
19118
19118
|
optionsChangedHandler(e, o) {
|
|
19119
19119
|
e !== o && (this.filteredOptions = e);
|
|
19120
19120
|
}
|
|
19121
19121
|
defaultSelectedOptionChangedHandler(e, o) {
|
|
19122
|
-
typeof e > "u" || (e == null ? void 0 : e.label) === (o == null ? void 0 : o.label) || (this.selectedOption = e
|
|
19122
|
+
typeof e > "u" || (e == null ? void 0 : e.label) === (o == null ? void 0 : o.label) || (this.selectedOption = e, this.nylasFormDropdownDefaultSelected.emit({
|
|
19123
|
+
value: (e == null ? void 0 : e.value) || "",
|
|
19124
|
+
name: this.name,
|
|
19125
|
+
error: this.errorMessage,
|
|
19126
|
+
label: this.label
|
|
19127
|
+
}));
|
|
19123
19128
|
}
|
|
19124
19129
|
componentWillLoad() {
|
|
19125
19130
|
this.el.setAttribute("component-type", this.componentType);
|
|
19126
19131
|
}
|
|
19127
19132
|
componentDidLoad() {
|
|
19128
|
-
|
|
19133
|
+
var e;
|
|
19134
|
+
this.filteredOptions = this.options, this.selectedOption = this.defaultSelectedOption, !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]), this.nylasFormDropdownDefaultSelected.emit({
|
|
19135
|
+
value: ((e = this.selectedOption) == null ? void 0 : e.value) || "",
|
|
19136
|
+
name: this.name,
|
|
19137
|
+
error: this.errorMessage,
|
|
19138
|
+
label: this.label
|
|
19139
|
+
});
|
|
19129
19140
|
}
|
|
19130
19141
|
handleBookingFormSubmitted(e) {
|
|
19131
19142
|
var o;
|
|
@@ -19199,11 +19210,11 @@ const tB = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nyla
|
|
|
19199
19210
|
}
|
|
19200
19211
|
render() {
|
|
19201
19212
|
const e = this.generateButtonText(this.selectedOption, this.dropdownButtonText);
|
|
19202
|
-
return
|
|
19213
|
+
return d("div", { key: "4b724d892194708b2dcd0ed74c8e23486ba2b4f7", class: "dropdown", part: "sd_dropdown" }, d("label", { key: "06d33f4f5daa7c09eed054505989210e35c2beb5", part: "sd_dropdown_label", class: { error: !!this.errorMessage } }, this.label && d("p", null, d("span", { class: "label" }, this.label), this.required && d("span", { class: "required" }, "*")), d("button", { key: "8e5952f7e2a1279670304e82f329da3e8e60522a", part: "sd_dropdown-button", class: { dropbtn: !0, open: this.isOpen, error: !!this.errorMessage }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (o) => this.handleSelectButtonKeyDown(o) }, d("slot", { key: "aece407da3b35858b9ec1248d09447706b3120cc", name: "select-icon", "aria-hidden": "true" }), d("span", { key: "55aae4a92f862c81533635999fb60693705cb12b", class: "selected-option", part: "sd_dropdown-button-selected-label" }, e), this.withChevron && d("span", { class: {
|
|
19203
19214
|
open: this.isOpen,
|
|
19204
19215
|
closed: !this.isOpen,
|
|
19205
19216
|
chevron: !0
|
|
19206
|
-
}, "aria-hidden": "true" },
|
|
19217
|
+
}, "aria-hidden": "true" }, d("chevron-icon", { width: "16", height: "16" }))), this.errorMessage && d("span", { class: "error help-text" }, this.errorMessage)), this.isOpen ? d("div", { class: "dropdown-content", part: "sd_dropdown-content" }, this.withSearch && d("div", { class: { "search-box": !0, open: this.isOpen } }, d("search-icon", { width: "15", height: "15", class: "icon" }), d("input", { type: "text", role: "combobox", placeholder: "Search", value: this.searchValue, ref: (o) => this.inputRef = o, onInput: (o) => this.filterOptions(o), onKeyDown: (o) => this.handleComboboxKeyDown(o) })), d("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (o) => this.handleListboxKeydown(o) }, this.filteredOptions.map((o) => o.value.toString() ? d("li", { tabindex: "0", key: o.value, id: o.value, onClick: () => this.selectOption(o), role: "option" }, o.labelHTML ? d("div", { part: "sd_dropdown-labelhtml" }, o.labelHTML) : o.label) : null))) : null);
|
|
19207
19218
|
}
|
|
19208
19219
|
get el() {
|
|
19209
19220
|
return this;
|
|
@@ -19265,7 +19276,7 @@ const bB = '.tooltip-container{position:relative;display:flex;--nylas-primary:#2
|
|
|
19265
19276
|
e.target.nextElementSibling.style.visibility = "hidden", e.target.nextElementSibling.style.opacity = "0";
|
|
19266
19277
|
}
|
|
19267
19278
|
render() {
|
|
19268
|
-
return
|
|
19279
|
+
return d("div", { key: "39014243f733656bf550b9141eabd5c13e3c43d9", class: "tooltip-container", part: "tc__container" }, d("span", { key: "8b331b143065287a337e26a4680b3744ca8e2bc7", class: "info-icon", tabindex: "0", onFocus: this.showTooltip.bind(this), onBlur: this.hideTooltip.bind(this) }, d("slot", { key: "cf584033435cee5ca7143f5ee5fb983e3e9ab550", name: "tooltip-icon" }, "i")), d("span", { key: "409b87ee03bc5aa39fcaf965eca18d03f0ef1a44", class: `tooltip-content ${this.position}`, part: "tc__content" }, d("slot", { key: "00f5fa51bcf2cd31fac498f94a97ac67d5b7de3f", name: "tooltip-content" }, "This is a help text.")));
|
|
19269
19280
|
}
|
|
19270
19281
|
get el() {
|
|
19271
19282
|
return this;
|
|
@@ -19289,7 +19300,7 @@ function Tn() {
|
|
|
19289
19300
|
}
|
|
19290
19301
|
const pB = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}', iB = pB, rB = a0(class extends s0 {
|
|
19291
19302
|
constructor() {
|
|
19292
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormInputChanged =
|
|
19303
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormInputChanged = M0(this, "nylasFormInputChanged", 7), this.name = "textarea", this.defaultValue = void 0, this.label = "", this.placeholder = "", this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.maxLength = 255, this.type = "multi_line_text", this.tooltip = "", this.value = "", this.error = "";
|
|
19293
19304
|
}
|
|
19294
19305
|
componentDidLoad() {
|
|
19295
19306
|
this.value = z2(this.defaultValue || "");
|
|
@@ -19314,7 +19325,7 @@ const pB = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
19314
19325
|
this.required && !e ? this.error = `${this.label} is required.` : e.length > this.maxLength ? this.error = `${this.label} cannot exceed ${this.maxLength} characters.` : this.error = "";
|
|
19315
19326
|
}
|
|
19316
19327
|
render() {
|
|
19317
|
-
return
|
|
19328
|
+
return d("label", { key: "fe5c08ffc334bbf3018b5d092cfa3c0dc3493366", part: "tc__label", class: { error: !!this.error } }, d("p", { key: "7d572a5c200d968902be56c8915d8da4e27454a7" }, d("span", { key: "ab9b1b67451ed46b4e1d6ccf9403d7cca51b6028", class: "label" }, this.label), this.required && d("span", { class: "required" }, "*"), this.tooltip && d("tooltip-component", null, d("info-icon", { slot: "tooltip-icon" }), d("span", { slot: "tooltip-content" }, this.tooltip))), d("textarea", { key: "c71b3cc7cac22ce0d153f4c6ac57b7cd7f5732c6", name: this.name, placeholder: this.placeholder, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), class: { error: !!this.error }, part: "tc__textarea" }), this.error && d("span", { class: "error help-text" }, this.error));
|
|
19318
19329
|
}
|
|
19319
19330
|
static get style() {
|
|
19320
19331
|
return iB;
|
|
@@ -19365,7 +19376,7 @@ var sB = function(t, e, o, n) {
|
|
|
19365
19376
|
};
|
|
19366
19377
|
const oo = /^[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])?)*$/, Jf = a0(class extends s0 {
|
|
19367
19378
|
constructor() {
|
|
19368
|
-
super(), this.__registerHost(), this.__attachShadow(), this.nameChanged =
|
|
19379
|
+
super(), this.__registerHost(), this.__attachShadow(), this.nameChanged = M0(this, "nameChanged", 7), this.emailChanged = M0(this, "emailChanged", 7), this.backButtonClicked = M0(this, "backButtonClicked", 7), this.detailsConfirmed = M0(this, "detailsConfirmed", 7), this.bookingFormError = M0(this, "bookingFormError", 7), this.bookingFormSubmitted = M0(this, "bookingFormSubmitted", 7), this.handleGuestChange = (e, o) => {
|
|
19369
19380
|
this.resetGuestEmailError(e);
|
|
19370
19381
|
const n = [...this.guestEmails];
|
|
19371
19382
|
n[e] = Yb(o), this.guestEmails = [...n];
|
|
@@ -19416,10 +19427,10 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
19416
19427
|
}
|
|
19417
19428
|
let c = [];
|
|
19418
19429
|
if (this.guestEmails.length > 0) {
|
|
19419
|
-
let
|
|
19430
|
+
let u = !1;
|
|
19420
19431
|
if (this.guestEmails.forEach((A, l) => {
|
|
19421
|
-
A === "" ? (
|
|
19422
|
-
}),
|
|
19432
|
+
A === "" ? (u = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [l]: E.t("fieldRequired", { field: E.t("email") }) }) : oo.test(A) || (u = !0, this.guestEmailErrors = { ...this.guestEmailErrors, [l]: E.t("invalidInputFormat", { field: E.t("email") }) });
|
|
19433
|
+
}), u) {
|
|
19423
19434
|
this.bookingFormError.emit({
|
|
19424
19435
|
title: "Booking form error",
|
|
19425
19436
|
description: E.t("invalidInputFormat", { field: E.t("guestEmail") }) || "Invalid guest email"
|
|
@@ -19501,11 +19512,14 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
19501
19512
|
radioChangedHandler(e) {
|
|
19502
19513
|
this.updateAdditionalFields(e.detail.name, e.detail.value);
|
|
19503
19514
|
}
|
|
19515
|
+
dropdownDefaultSelectedHandler(e) {
|
|
19516
|
+
this.updateAdditionalFields(e.detail.name, e.detail.value);
|
|
19517
|
+
}
|
|
19504
19518
|
render() {
|
|
19505
19519
|
var e, o, n, b, c, M, p, i, r;
|
|
19506
|
-
return
|
|
19520
|
+
return d(x0, { key: "e6226715a8817b1ac42f46e3efd78cc2aa1d413c" }, d("form", { key: "d6e4aff3c6f9b978bef7cc7c1becdd8f84f2897d", onSubmit: (a) => this.bookButtonClickedHandler(a), noValidate: !0 }, d("div", { key: "c3561940f06b86fab4eb248626cb63a09cbf1353", class: "nylas-booking-form", part: "nbf" }, d("div", { key: "02072469ac898b656c9829c484a24415d9e8e597", class: "input-wrapper", part: "nbf__input-wrapper" }, d("input-component", { key: "301574dd5c31489404efc426bc41d413b659c0a4", label: E.t("name"), name: "name", id: "name", defaultValue: ((o = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : o.name) || this.name, placeholder: E.t("namePlaceholder"), type: "text", required: !0, requiredError: E.t("fieldRequired", { field: E.t("name") }), patternError: E.t("invalidInputFormat", { field: E.t("name") }), part: "nbf__input-textfield" })), d("div", { key: "af992058321d3efbc622e335400da283123fe54c", class: "input-wrapper", part: "nbf__input-wrapper" }, d("input-component", { key: "3815bf80434a7178dcdc75fde5ee80db5c651179", label: E.t("email"), name: "email", id: "email", pattern: oo, defaultValue: ((b = (n = this.bookingInfo) == null ? void 0 : n.primaryParticipant) == null ? void 0 : b.email) || this.email, placeholder: E.t("emailPlaceholder"), type: "email", required: !0, requiredError: E.t("fieldRequired", { field: E.t("email") }), patternError: E.t("invalidInputFormat", { field: E.t("email") }), part: "nbf__input-textfield" })), ((M = (c = this.configSettings) == null ? void 0 : c.scheduler) == null ? void 0 : M.hide_additional_guests) !== !0 && d("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((a, z) => d("div", { class: "input-wrapper button-wrapper" }, d("label", { class: {
|
|
19507
19521
|
error: !!this.guestEmailErrors[z]
|
|
19508
|
-
} }, E.t("guestEmail")),
|
|
19522
|
+
} }, E.t("guestEmail")), d("div", { class: "guest-email-input" }, d("input", { type: "email", id: `guest-email-${z}`, maxLength: 100, class: {
|
|
19509
19523
|
"guest-email": !0,
|
|
19510
19524
|
error: !!this.guestEmailErrors[z]
|
|
19511
19525
|
}, placeholder: E.t("guestEmailPlaceholder"), value: a, "data-index": z, part: "nbf__input-textfield", onBlur: (s) => {
|
|
@@ -19514,25 +19528,25 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
19514
19528
|
}, onInput: (s) => {
|
|
19515
19529
|
var O;
|
|
19516
19530
|
return this.handleGuestChange(z, (O = s.target) == null ? void 0 : O.value);
|
|
19517
|
-
} }),
|
|
19531
|
+
} }), d("button-component", { variant: "basic", onClick: (s) => this.removeGuestButtonClickHandler(s, z), class: {
|
|
19518
19532
|
"remove-guest": !0,
|
|
19519
19533
|
error: !!this.guestEmailErrors[z]
|
|
19520
|
-
} },
|
|
19521
|
-
var
|
|
19522
|
-
const z = a[1], s = z.label, O = a[0];
|
|
19534
|
+
} }, d("close-icon", null))), d("p", { class: "help-text" }, this.guestEmailErrors[z]))), d("button-component", { class: "add-guest", variant: "invisible", part: "nbf__button-ghost", onClick: (a) => this.addGuestButtonClickedHandler(a) }, d("div", { class: "button-content" }, d("add-circle-icon", { slot: "icon" }), this.guestEmails.length > 0 ? `${E.t("addAnotherGuest")}` : `${E.t("addGuest")}`))), (r = Object.entries(((i = (p = this.configSettings) == null ? void 0 : p.scheduler) == null ? void 0 : i.additional_fields) || {})) == null ? void 0 : r.sort((a, z) => a[1].order - z[1].order).map((a) => {
|
|
19535
|
+
var A, l, f, h, L, B;
|
|
19536
|
+
const z = a[1], s = z.label, O = a[0], u = ((f = (l = (A = this.bookingInfo) == null ? void 0 : A.additionalFields) == null ? void 0 : l[O]) == null ? void 0 : f.value) || "";
|
|
19523
19537
|
switch (z.type) {
|
|
19524
19538
|
case "dropdown":
|
|
19525
|
-
return
|
|
19539
|
+
return d("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, d("select-dropdown", { label: s, name: O, id: O, withSearch: !1, defaultSelectedOption: u ? { value: u, label: u } : void 0, options: (h = z.options) == null ? void 0 : h.map((k) => ({ value: k, label: k })), required: z.required, exportparts: "sd_dropdown: nbf__dropdown, sd_dropdown-button: nbf__dropdown-button, sd_dropdown-content: nbf__dropdown-content" }));
|
|
19526
19540
|
case "checkbox":
|
|
19527
|
-
return
|
|
19541
|
+
return d("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, d("checkbox-component", { label: s, name: O, id: O, checked: u === "true", required: z.required, part: "nbf__checkbox-component" }));
|
|
19528
19542
|
case "radio_button":
|
|
19529
|
-
return
|
|
19543
|
+
return d("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, d("radio-button-group", { label: s, name: O, id: O, defaultSelectedValue: u || ((L = z.options) == null ? void 0 : L[0]) || "", options: (B = z.options) == null ? void 0 : B.map((k) => ({ value: k, label: k })), required: z.required, part: "nbf__radio-button-group" }));
|
|
19530
19544
|
case "multi_line_text":
|
|
19531
|
-
return
|
|
19545
|
+
return d("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, d("textarea-component", { label: s, defaultValue: u, name: O, id: O, required: z.required, part: "nbf__textarea-component" }));
|
|
19532
19546
|
default:
|
|
19533
|
-
return
|
|
19547
|
+
return d("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, d("input-component", { label: s, name: O, id: O, type: z.type, defaultValue: u || "", requiredError: E.t("fieldRequired", { field: s }), required: z.required, part: "nbf__input-textfield" }));
|
|
19534
19548
|
}
|
|
19535
|
-
})),
|
|
19549
|
+
})), d("div", { key: "0f18461673aa4542e73b9316509aa7b5a2fba6f3", class: "cta" }, d("button-component", { key: "7041a279f4acc3fb2029321dec40b9fffd9d9a6d", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, d("slot", { key: "6bf9092b2143c0b48cf56f2159d91283f804c3a3", name: "booking-form-back-label" }, `${E.t("backButton")}`)), d("button-component", { key: "2e97b28476b04ede3687737c78bfa6a8814b42c9", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, d("slot", { key: "e708cfa7c230cced4f75c814a660af51a1b8dfe4", name: "booking-form-book-label" }, `${E.t("bookNowButton")}`)))));
|
|
19536
19550
|
}
|
|
19537
19551
|
get host() {
|
|
19538
19552
|
return this;
|
|
@@ -19559,7 +19573,7 @@ const oo = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
19559
19573
|
additionalFields: [32],
|
|
19560
19574
|
validationError: [32],
|
|
19561
19575
|
backButtonLoading: [32]
|
|
19562
|
-
}, [[0, "nylasFormInputChanged", "nylasFormInputChangedHandler"], [0, "nylasFormDropdownChanged", "selectOptionChangedHandler"], [0, "nylasFormSwitchToggled", "switchToggledHandler"], [0, "nylasFormCheckboxToggled", "checkboxToggledHandler"], [0, "nylasFormRadioChanged", "radioChangedHandler"]], {
|
|
19576
|
+
}, [[0, "nylasFormInputChanged", "nylasFormInputChangedHandler"], [0, "nylasFormDropdownChanged", "selectOptionChangedHandler"], [0, "nylasFormSwitchToggled", "switchToggledHandler"], [0, "nylasFormCheckboxToggled", "checkboxToggledHandler"], [0, "nylasFormRadioChanged", "radioChangedHandler"], [0, "nylasFormDropdownDefaultSelected", "dropdownDefaultSelectedHandler"]], {
|
|
19563
19577
|
bookingInfo: ["bookingInfoChangedHandler"]
|
|
19564
19578
|
}]);
|
|
19565
19579
|
sB([
|
|
@@ -19663,7 +19677,7 @@ var lB = function(t, e, o, n) {
|
|
|
19663
19677
|
const Qf = a0(class extends s0 {
|
|
19664
19678
|
constructor() {
|
|
19665
19679
|
var e, o;
|
|
19666
|
-
super(), this.__registerHost(), this.__attachShadow(), this.goBackButtonClicked =
|
|
19680
|
+
super(), this.__registerHost(), this.__attachShadow(), this.goBackButtonClicked = M0(this, "goBackButtonClicked", 7), this.cancelBookingFormSubmitted = M0(this, "cancelBookingFormSubmitted", 7), this.triggerValidation = M0(this, "triggerValidation", 7), this.cancelBookedEventError = M0(this, "cancelBookedEventError", 7), this.cancelBookingFormError = M0(this, "cancelBookingFormError", 7), this.handleGoBackClicked = () => {
|
|
19667
19681
|
this.goBackButtonClicked.emit();
|
|
19668
19682
|
}, this.handleSubmitCancelBooking = (n) => {
|
|
19669
19683
|
var M, p, i;
|
|
@@ -19709,7 +19723,7 @@ const Qf = a0(class extends s0 {
|
|
|
19709
19723
|
}
|
|
19710
19724
|
render() {
|
|
19711
19725
|
var e, o;
|
|
19712
|
-
return
|
|
19726
|
+
return d(x0, { key: "6f680273959b2726cc68cb465aeacce03447ba8e", part: "ncbf" }, d("div", { key: "be243375f24e2029af0ad14c990a254c7f005631", class: "nylas-cancel-booking-form", part: "ncbf__card" }, d("div", { key: "5bef53a115c1108a0ff15ed52b773e03456ed249", class: "nylas-cancel-booking-form__calendar-icon", part: "ncbf__icon" }, d("calendar-cancel-icon", { key: "baa79cd9b1b8fea1019ccacdf0679b702d2f07a2" })), d("h3", { key: "260994a6886a04baccbba07198cb7b55843dcb94", class: "nylas-cancel-booking-form__title", part: "ncbf__title" }, E.t("cancelBookingTitle")), d("div", { key: "5b551fb4c2f91a043b1a06b64dd635cfb2a6465e", class: "nylas-cancel-booking-form__description", part: "ncbf__description" }, (o = (e = this.configSettings) == null ? void 0 : e.scheduler) != null && o.cancellation_policy ? this.cancellationPolicy : `${E.t("cancelBookingMessage")}`), d("form", { key: "535c7fbc0ccd04b614b0b52e39c183bcc0bd4501", onSubmit: this.handleSubmitCancelBooking }, d("textarea-component", { key: "349fa734e6ca521418f315feca30de5c67c5b4ab", id: "cancel-reason", name: "cancel-reason", required: !0, label: E.t("reasonForCancellation"), class: this.cancellationError ? "error" : "", part: "ncbf__reason-textarea", defaultValue: this.cancellationReason }), d("div", { key: "c260628841bb3872a9a1439499c42e494894af9e", class: "footer" }, d("button-component", { key: "1de46efdfe24eaffae44d5a649f9b3ad6a11b3b6", variant: "destructive", class: "cancel", type: "submit", part: "ncbf__button-cta", disabled: this.isLoading }, E.t("cancelBookingButton")), !!this.eventInfo && d("button-component", { variant: "basic", class: "back", part: "ncbf__button-outline", onClick: this.handleGoBackClicked }, E.t("goBackButton"))))));
|
|
19713
19727
|
}
|
|
19714
19728
|
static get watchers() {
|
|
19715
19729
|
return {
|
|
@@ -19818,7 +19832,7 @@ var hB = function(t, e, o, n) {
|
|
|
19818
19832
|
};
|
|
19819
19833
|
const e5 = a0(class extends s0 {
|
|
19820
19834
|
constructor() {
|
|
19821
|
-
super(), this.__registerHost(), this.__attachShadow(), this.closeCancelEventCardClicked =
|
|
19835
|
+
super(), this.__registerHost(), this.__attachShadow(), this.closeCancelEventCardClicked = M0(this, "closeCancelEventCardClicked", 7), this.cancelledEventCardError = M0(this, "cancelledEventCardError", 7), this.handleCloseClicked = () => {
|
|
19822
19836
|
this.isClosing = !0;
|
|
19823
19837
|
const e = (o) => {
|
|
19824
19838
|
this.cancelledEventCardError.emit(o), this.isClosing = !1;
|
|
@@ -19840,7 +19854,7 @@ const e5 = a0(class extends s0 {
|
|
|
19840
19854
|
}
|
|
19841
19855
|
render() {
|
|
19842
19856
|
var e, o;
|
|
19843
|
-
return
|
|
19857
|
+
return d(x0, { key: "e890d06179d7e35d38abe0f30934645d0dd0866f", part: "ncec" }, d("div", { key: "c2e455774c4d962dbd178c967d6ffcf0dad495e8", class: "nylas-cancelled-event-card", part: "ncec__card" }, d("div", { key: "dae3d09a326b89e8d5c5ac662b663a87332b483f", class: "nylas-cancelled-event-card__calendar-icon", part: "ncec__icon" }, d("calendar-cancel-icon", { key: "908f8f9dce64ef8a02d12b8bea383a9e65662def" })), d("h3", { key: "61a2d624b51686a6a1d9e045a3efa99f204c9e21", class: "nylas-cancelled-event-card__title", part: "ncec__title" }, E.t("bookingCancelledTitle"), "!"), d("div", { key: "0cbf5bce08b5b623729e0741108ecd1a169c0cdb", class: "nylas-cancelled-event-card__description", part: "ncec__description" }, E.t("bookingCancelledMessage"), " ", ((o = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : o.name) || "the participants", "."), d("div", { key: "e43af5b395977d607b3c427bcb7d6062db8d6678", class: "nylas-cancelled-event-card__cta" }, d("button-component", { key: "36bb4ba3bf9fa46a52f5fd7b452bf8e001341d00", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${E.t("closingButton")}...` : `${E.t("closeButton")}`))));
|
|
19844
19858
|
}
|
|
19845
19859
|
static get style() {
|
|
19846
19860
|
return qB;
|
|
@@ -19904,7 +19918,7 @@ var RB = function(t, e, o, n) {
|
|
|
19904
19918
|
};
|
|
19905
19919
|
const t5 = a0(class extends s0 {
|
|
19906
19920
|
constructor() {
|
|
19907
|
-
super(), this.__registerHost(), this.__attachShadow(), this.closeConfirmEventCardClicked =
|
|
19921
|
+
super(), this.__registerHost(), this.__attachShadow(), this.closeConfirmEventCardClicked = M0(this, "closeConfirmEventCardClicked", 7), this.confirmedEventCardError = M0(this, "confirmedEventCardError", 7), this.handleCloseClicked = () => {
|
|
19908
19922
|
this.isClosing = !0;
|
|
19909
19923
|
const e = (o) => {
|
|
19910
19924
|
this.confirmedEventCardError.emit(o), this.isClosing = !1;
|
|
@@ -19926,7 +19940,7 @@ const t5 = a0(class extends s0 {
|
|
|
19926
19940
|
}
|
|
19927
19941
|
render() {
|
|
19928
19942
|
var e, o;
|
|
19929
|
-
return
|
|
19943
|
+
return d(x0, { key: "f78755849f1e51daa16349080efbd1154ee5421f", part: "ncec" }, d("div", { key: "3bef7ce7a2365171566b29b096b1625d0724a322", class: "nylas-confirmed-event-card", part: "ncec__card" }, d("div", { key: "1a246865b9400017d1945eb079691ac8f94baf1b", class: "nylas-confirmed-event-card__calendar-icon", part: "ncec__icon" }, d("calendar-cancel-icon", { key: "6af3a586336dc9d89f9e20bd9fbb2d64641c883f" })), d("h3", { key: "ccb933bf503bd9f316c04647dd99652ac4422c78", class: "nylas-confirmed-event-card__title", part: "ncec__title" }, E.t("confirmedEventCardTitle"), "!"), d("div", { key: "21d9fa9069fc947e05b1bfe5f9c5e9a6aa4bb091", class: "nylas-confirmed-event-card__description", part: "ncec__description" }, E.t("confirmedEventCardDescription"), " ", ((o = (e = this.configSettings) == null ? void 0 : e.organizer) == null ? void 0 : o.name) || "the participants", "."), d("div", { key: "93ee8ddcb48b9ec5f30df4cce75ca1a13a38bfff", class: "nylas-confirmed-event-card__cta" }, d("button-component", { key: "ca0960f860c3701821b492e318a47a7cf58d6c40", variant: "basic", disabled: this.isClosing, part: "ncec__button-outline", onClick: this.handleCloseClicked }, this.isClosing ? `${E.t("closingButton")}...` : `${E.t("closeButton")}`))));
|
|
19930
19944
|
}
|
|
19931
19945
|
static get style() {
|
|
19932
19946
|
return mB;
|
|
@@ -19977,7 +19991,7 @@ const LB = ".sc-person-icon-h{display:flex}", BB = LB, vB = a0(class extends s0
|
|
|
19977
19991
|
super(), this.__registerHost(), this.width = "14", this.height = "16";
|
|
19978
19992
|
}
|
|
19979
19993
|
render() {
|
|
19980
|
-
return
|
|
19994
|
+
return d("svg", { key: "0a47e6585ae19ad96e3c57b2aec1547798fe7abc", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "5aba35e97caadb061d6948c4f5ffc9390b2cd223", d: "M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z", fill: "currentColor" }));
|
|
19981
19995
|
}
|
|
19982
19996
|
static get style() {
|
|
19983
19997
|
return BB;
|
|
@@ -20056,7 +20070,7 @@ var xB = function(t, e, o, n) {
|
|
|
20056
20070
|
};
|
|
20057
20071
|
const b5 = a0(class extends s0 {
|
|
20058
20072
|
constructor() {
|
|
20059
|
-
super(), this.__registerHost(), this.__attachShadow(), this.dateSelected =
|
|
20073
|
+
super(), this.__registerHost(), this.__attachShadow(), this.dateSelected = M0(this, "dateSelected", 7), this.monthChanged = M0(this, "monthChanged", 7), this.selectableDates = void 0, this.selectedDate = void 0, this.configSettings = void 0, this.selectedLanguage = void 0, this.isLoading = void 0, this.eventDuration = void 0, this.month = this.selectedDate || /* @__PURE__ */ new Date(), this.dates = this.getDates(), this.disableNextMonthButton = !1;
|
|
20060
20074
|
}
|
|
20061
20075
|
configSettingsChanged(e) {
|
|
20062
20076
|
var c;
|
|
@@ -20095,7 +20109,7 @@ const b5 = a0(class extends s0 {
|
|
|
20095
20109
|
}
|
|
20096
20110
|
render() {
|
|
20097
20111
|
var e, o, n, b, c, M, p;
|
|
20098
|
-
return
|
|
20112
|
+
return d(x0, { key: "3e6dd28572687991de4841d639c5bdbd5d2d6e0b", part: "ndp" }, d("div", { key: "b8a31231d9e04035c468f9c025bbd3adb4f0dbb2", class: "nylas-date-picker" }, d("div", { key: "c25024241ce71fb94bcc485cc32614c820a69fee", class: "title", part: "ndp__title" }, (e = this.configSettings) != null && e.name ? d("h1", null, (o = this.configSettings) == null ? void 0 : o.name) : ((b = (n = this.configSettings) == null ? void 0 : n.organizer) == null ? void 0 : b.name) && d("h1", null, d("person-icon", null), ((M = (c = this.configSettings) == null ? void 0 : c.organizer) == null ? void 0 : M.name) || "Organizer"), d("p", { key: "f51da2bb7f8b5d6b84ea5a9ea66aef03b9e10e12" }, d("clock-icon", { key: "42a947b00a14afe7c57c716e37ef4d418e55e337" }), this.eventDuration ? _m(this.eventDuration) : `- ${E.t("time.minutes")}`)), d("div", { key: "bb264f745cbe51ece10238e3a2f3fae55d2f1bdb", class: "header flex-row" }, d("h2", { key: "16ecbac96e4ede32b8b524a645f96e30d16e2814", part: "ndp__month-header" }, d("strong", { key: "aaf8064ac4ebd41680fb4c147b5a23fc7e5554f2" }, Dm(this.month.toLocaleDateString(void 0, { month: "long" }).toLocaleLowerCase())), " ", this.month.toLocaleDateString(void 0, { year: "numeric" })), d("div", { key: "8d5fdca1f4de5d8b75c89ebf6bc6d964b39b8351", class: "pagination" }, d("button", { key: "9a993814c06483337caea097727932aa75e53243", onClick: () => this.changeMonth(-1), class: { "chevron-left": !0, button: !0 }, disabled: !((p = this.selectableDates) != null && p.length) || this.month <= /* @__PURE__ */ new Date(), part: "ndp__month-button" }, d("chevron-icon", { key: "edd3668dee154cb573cf3ed25e72beb2938cb9d2" })), d("button", { key: "9452edc29c45e8ff24f76521b94762f128201ba0", onClick: () => this.changeMonth(1), class: { "chevron-right": !0, button: !0 }, disabled: this.disableNextMonthButton, part: "ndp__month-button" }, d("chevron-icon", { key: "1f27334ee808470e844f8f08c4fd4dfc39376b2d" })))), d("div", { key: "4173feb8a2661c49d0c898864886db0f90f6a181", class: "dates" }, [
|
|
20099
20113
|
E.t("days.sunday"),
|
|
20100
20114
|
E.t("days.monday"),
|
|
20101
20115
|
E.t("days.tuesday"),
|
|
@@ -20103,13 +20117,13 @@ const b5 = a0(class extends s0 {
|
|
|
20103
20117
|
E.t("days.thursday"),
|
|
20104
20118
|
E.t("days.friday"),
|
|
20105
20119
|
E.t("days.saturday")
|
|
20106
|
-
].map((i) =>
|
|
20120
|
+
].map((i) => d("div", { class: "day", part: "ndp__day" }, i)), this.dates.map((i, r) => {
|
|
20107
20121
|
var z;
|
|
20108
20122
|
const a = this.isDisabled(i, this.selectableDates);
|
|
20109
|
-
return this.isLoading ?
|
|
20123
|
+
return this.isLoading ? d("button", { disabled: !0, class: {
|
|
20110
20124
|
"date day-skeleton": !0,
|
|
20111
20125
|
"current-month": Pn(i, this.month)
|
|
20112
|
-
}, style: { animationDelay: `${r * 20}ms` }, part: "ndp__date ndp__date--disabled" }, i.getDate()) :
|
|
20126
|
+
}, style: { animationDelay: `${r * 20}ms` }, part: "ndp__date ndp__date--disabled" }, i.getDate()) : d("button", { class: {
|
|
20113
20127
|
date: !0,
|
|
20114
20128
|
selected: !!(this.selectedDate && fe(i, this.selectedDate) && this.selectableDates && ((z = this.selectableDates) == null ? void 0 : z.length) > 0),
|
|
20115
20129
|
"current-day": fe(i, /* @__PURE__ */ new Date()),
|
|
@@ -20190,7 +20204,7 @@ const XB = ".sc-translate-icon-h{display:flex}", CB = XB, SB = a0(class extends
|
|
|
20190
20204
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
20191
20205
|
}
|
|
20192
20206
|
render() {
|
|
20193
|
-
return
|
|
20207
|
+
return d("svg", { key: "6db13b0c797d975d04f0bd2d3efd8bcf8856739b", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, d("path", { key: "33eaa0513504f0853c5cc7f74a9da40b5de59614", fill: "currentColor", d: "M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z" }));
|
|
20194
20208
|
}
|
|
20195
20209
|
static get style() {
|
|
20196
20210
|
return CB;
|
|
@@ -20225,7 +20239,7 @@ var IB = function(t, e, o, n) {
|
|
|
20225
20239
|
};
|
|
20226
20240
|
const M5 = a0(class extends s0 {
|
|
20227
20241
|
constructor() {
|
|
20228
|
-
super(), this.__registerHost(), this.__attachShadow(), this.timezoneChanged =
|
|
20242
|
+
super(), this.__registerHost(), this.__attachShadow(), this.timezoneChanged = M0(this, "timezoneChanged", 7), this.languageChanged = M0(this, "languageChanged", 7), this.selectedTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone, this.selectedLanguage = navigator.language;
|
|
20229
20243
|
}
|
|
20230
20244
|
connectedCallback() {
|
|
20231
20245
|
}
|
|
@@ -20245,12 +20259,12 @@ const M5 = a0(class extends s0 {
|
|
|
20245
20259
|
}
|
|
20246
20260
|
getTimezoneLabelHTML(e) {
|
|
20247
20261
|
const o = Z9(e);
|
|
20248
|
-
return
|
|
20262
|
+
return d("span", { class: "timezone-label", style: {
|
|
20249
20263
|
display: "flex",
|
|
20250
20264
|
alignItems: "center",
|
|
20251
20265
|
justifyContent: "space-between",
|
|
20252
20266
|
width: "-webkit-fill-available"
|
|
20253
|
-
} }, J2[e], " ",
|
|
20267
|
+
} }, J2[e], " ", d("span", { class: "timezone-offset", style: {
|
|
20254
20268
|
fontSize: "14px",
|
|
20255
20269
|
fontWeight: "400",
|
|
20256
20270
|
color: "var(--nylas-base-500)"
|
|
@@ -20265,13 +20279,13 @@ const M5 = a0(class extends s0 {
|
|
|
20265
20279
|
label: xi[n],
|
|
20266
20280
|
value: n
|
|
20267
20281
|
}));
|
|
20268
|
-
return
|
|
20282
|
+
return d(x0, { key: "8e8ec3819083fb25cb8620f14aa1f140a995ec89" }, d("div", { key: "45aaebcd9f80d54dc01b5d611094fa05225c8331", class: "nylas-locale-switch", part: "nls" }, d("div", { key: "47d8166b91a3ef742b14e5783338c3701be85eb7", class: {
|
|
20269
20283
|
"select-wrapper": !0,
|
|
20270
20284
|
timezone: !0
|
|
20271
|
-
}, part: "nls__timezone" },
|
|
20285
|
+
}, part: "nls__timezone" }, d("select-dropdown", { key: "71edd2352b6067a18b9ba676495e59c954e6c07d", name: "timezone", options: e, defaultSelectedOption: e.find((n) => n.value == this.selectedTimezone), exportparts: "sd_dropdown: nls__timezone-dropdown, sd_dropdown-button: nls__timezone-drop-button, sd_dropdown-button-selected-label: nls__timezone-drop-button-selected-label, sd_dropdown-content: nls__timezone-drop-content, sd_dropdown_label: nls__timezone-drop-label" }, d("span", { key: "f48e3c11a1981e32b75f5425570db0b584db7f51", slot: "select-icon" }, d("globe-icon", { key: "6b6721c8d88d715dbcb52d2e2750c22015ac252c", width: "20", height: "20" })))), d("div", { key: "fe652536d637774336cad11a65bba7bfd8636972", class: {
|
|
20272
20286
|
"select-wrapper": !0,
|
|
20273
20287
|
language: !0
|
|
20274
|
-
}, part: "nls__language" },
|
|
20288
|
+
}, part: "nls__language" }, d("select-dropdown", { key: "f83f8dbf84878fb1670d4a6f59b045c111420ce1", name: "language", options: o, defaultSelectedOption: o.find((n) => n.value == this.selectedLanguage), exportparts: "sd_dropdown: nls__language-dropdown, sd_dropdown-button: nls__language-drop-button, sd_dropdown-content: nls__language-drop-content, sd_dropdown_label: nls__language-drop-label" }, d("span", { key: "3d66833265053e81c9333b5d36ae822ed3a17878", slot: "select-icon" }, d("translate-icon", { key: "30121c5733873930e7e1e3bdaedf11bd2f258139", width: "20", height: "20" }))))));
|
|
20275
20289
|
}
|
|
20276
20290
|
static get style() {
|
|
20277
20291
|
return DB;
|
|
@@ -20332,7 +20346,7 @@ const PB = ".sc-nylas-logo-h{display:flex}", FB = PB, UB = a0(class extends s0 {
|
|
|
20332
20346
|
super(), this.__registerHost(), this.width = "69", this.height = "24";
|
|
20333
20347
|
}
|
|
20334
20348
|
render() {
|
|
20335
|
-
return
|
|
20349
|
+
return d("svg", { key: "62222dd3800378729b2adde6c2983fe6cee23caa", width: this.width, height: this.height, viewBox: "0 0 69 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("g", { key: "97910c954c2b27d45639c4efee40a9b692928d5c", "clip-path": "url(#clip0_455_3543)" }, d("path", { key: "e0334bf2d85c5bb3d69f9ef9fd16dfcc213fe853", d: "M15.8092 3.03248C14.6497 1.86996 13.1076 1.23047 11.4646 1.23047C9.82156 1.23047 8.27753 1.86996 7.11999 3.03248L0.835347 9.33381C0.686846 9.4827 0.60498 9.68123 0.60498 9.89312C0.60498 10.105 0.686846 10.3035 0.835347 10.4524C0.983848 10.6013 1.18185 10.6834 1.39318 10.6834C1.60451 10.6834 1.80251 10.6013 1.95101 10.4524L8.23374 4.15111C10.0139 2.36627 12.9134 2.36627 14.6935 4.15111C16.4736 5.93785 16.4756 8.84322 14.6935 10.6281L8.4108 16.9275C8.10428 17.2348 8.10428 17.7368 8.4108 18.0461C8.5593 18.195 8.75731 18.2771 8.96863 18.2771C9.17996 18.2771 9.37796 18.195 9.52646 18.0461L15.8092 11.7467C16.9687 10.5841 17.6064 9.03793 17.6064 7.39053C17.6064 5.74314 16.9687 4.19501 15.8092 3.03439V3.03248Z", fill: "currentColor" }), d("path", { key: "0e4dcb860598c50b18aa23b870f995c387df5db1", d: "M14.9296 7.39038C14.9296 6.46074 14.5698 5.58837 13.9148 4.93361C12.5631 3.57828 10.3641 3.57828 9.01239 4.93361L0.663961 13.3023C0.51546 13.4512 0.433594 13.6497 0.433594 13.8616C0.433594 14.0735 0.51546 14.272 0.663961 14.4209C0.812462 14.5698 1.01046 14.6519 1.22179 14.6519C1.43312 14.6519 1.63112 14.5698 1.77962 14.4209L10.0367 6.1515L10.05 6.13623C10.0747 6.10759 10.1014 6.07705 10.128 6.05033C10.1585 6.01978 10.1928 5.99115 10.2251 5.96252L10.2442 5.94534C10.9886 5.31349 12.1119 5.3593 12.8011 6.05033C13.4903 6.74135 13.536 7.78171 12.9705 8.53192L12.9648 8.53955C12.9058 8.61591 12.8544 8.67699 12.8011 8.73044C12.7497 8.78198 12.6906 8.83352 12.6069 8.90033L4.45264 17.0991C4.30414 17.248 4.22227 17.4465 4.22227 17.6584C4.22227 17.8703 4.30414 18.0689 4.45264 18.2177C4.60114 18.3666 4.79914 18.4487 5.01047 18.4487C5.2218 18.4487 5.4198 18.3666 5.5683 18.2177L13.9167 9.84716C14.5698 9.1924 14.9315 8.31812 14.9315 7.39038H14.9296Z", fill: "currentColor" }), d("path", { key: "0932b6eef652d9a91bd578c888bdaf3bd14aba4a", d: "M10.6821 9.11238C10.4727 9.01694 10.2861 8.88904 10.1281 8.7306C9.97008 8.57216 9.84252 8.38508 9.74733 8.1751L9.69021 8.05103L0.467916 17.2978C0.287049 17.4792 0.174721 17.7082 0.149971 17.9411C0.125221 18.1778 0.19376 18.3897 0.344165 18.5405C0.471724 18.6684 0.65259 18.739 0.850592 18.739C1.11142 18.739 1.37796 18.6207 1.58358 18.4145L10.8059 9.16774L10.6821 9.11047V9.11238Z", fill: "currentColor" }), d("path", { key: "19c41ab0458b7c96debb14698f9b7c12fb8155d7", d: "M68.401 10.6185C68.2126 10.2692 67.9593 9.97334 67.6433 9.73854C67.3235 9.49993 66.956 9.31094 66.5486 9.17541C66.1316 9.03606 65.7033 8.91771 65.2749 8.81844C64.7951 8.70582 64.3039 8.57983 63.8165 8.44811C63.3196 8.31258 62.9065 8.14269 62.5905 7.94225C62.4743 7.88689 62.3391 7.76663 62.3391 7.50129C62.3391 7.39821 62.3639 7.29704 62.4153 7.19587L62.4248 7.18059C62.5352 7.02216 62.7142 6.8828 62.975 6.75109C63.234 6.62128 63.609 6.55829 64.1231 6.55829C64.5286 6.55829 64.877 6.61365 65.1569 6.72436C65.4348 6.83508 65.6652 6.96871 65.8442 7.12524C66.0212 7.27986 66.1659 7.45357 66.2782 7.63873C66.3563 7.76854 66.4267 7.89262 66.4858 8.00525L68.2754 6.84081C68.1669 6.59456 68.0146 6.33495 67.8204 6.0677C67.6033 5.768 67.3254 5.4893 66.9922 5.23732C66.659 4.98534 66.2516 4.77345 65.7813 4.60929C65.3111 4.44512 64.7532 4.36304 64.1231 4.36304C63.3844 4.36304 62.7599 4.46421 62.2706 4.66083C61.7813 4.85935 61.3815 5.09988 61.0845 5.37667C60.7875 5.65346 60.5628 5.95125 60.4143 6.2605C60.2639 6.57547 60.1611 6.85799 60.1078 7.10233C60.0945 7.18059 60.0812 7.27031 60.0678 7.36767C60.0545 7.4593 60.0469 7.5452 60.0469 7.62537C60.0469 8.13314 60.1745 8.56074 60.4239 8.89671C60.679 9.24222 61.0045 9.53429 61.391 9.76336C61.7813 9.99624 62.2116 10.1852 62.6704 10.3227C63.1388 10.462 63.5862 10.5823 64.0012 10.6796C64.4067 10.777 64.7932 10.8782 65.1531 10.9774C65.5224 11.0786 65.8289 11.2122 66.0631 11.3745C66.2801 11.5425 66.3887 11.7448 66.3887 11.9777C66.3887 12.2278 66.2916 12.4263 66.0993 12.5695C65.9279 12.6954 65.7261 12.7985 65.4958 12.8711C65.273 12.9436 65.0407 12.9913 64.8066 13.0142C64.58 13.0352 64.3915 13.0467 64.2468 13.0467C63.8032 13.0467 63.4224 13.0028 63.1197 12.915C62.8151 12.8272 62.5638 12.7241 62.3734 12.6057C62.1811 12.4874 62.0288 12.3614 61.9222 12.2316C61.8213 12.1094 61.747 12.0082 61.7014 11.9319L61.4957 11.6303L59.708 12.7928C59.8508 13.0161 60.0298 13.2643 60.2392 13.5296C60.4772 13.8293 60.7837 14.1138 61.153 14.3734C61.5224 14.633 61.966 14.8525 62.4724 15.0243C62.9788 15.1961 63.5748 15.282 64.2468 15.282C64.797 15.282 65.2901 15.2324 65.7166 15.137C66.1412 15.0396 66.5162 14.9117 66.8285 14.7552C67.1388 14.6005 67.4015 14.4192 67.6109 14.2149C67.8223 14.0107 67.9974 13.8026 68.1326 13.6003C68.4563 13.1135 68.6409 12.5504 68.6828 11.9262C68.6828 11.4069 68.5876 10.9641 68.401 10.6166V10.6185Z", fill: "currentColor" }), d("path", { key: "3f67d09eef5ed6fd2189d8f346cdc87a1fb2d9eb", d: "M26.3585 4.27905C23.7901 4.27905 21.6997 6.37504 21.6997 8.95017V15.0701H23.9291V8.95017C23.9291 7.6082 25.0181 6.5163 26.3565 6.5163C27.695 6.5163 28.784 7.6082 28.784 8.95017V15.0701H31.0134V8.95017C31.0134 6.37504 28.9229 4.27905 26.3546 4.27905H26.3585Z", fill: "currentColor" }), d("path", { key: "12c89a71827969f361db08eaa92989e77273197c", d: "M53.4522 4.27905C50.4251 4.27905 47.9634 6.74728 47.9634 9.78245C47.9634 12.8176 50.427 15.2859 53.4522 15.2859C54.5545 15.2859 55.6188 14.9594 56.5288 14.3409L56.7116 14.2169V15.0682H58.941V9.78245C58.941 6.74728 56.4793 4.27905 53.4522 4.27905ZM53.4522 13.0505C51.655 13.0505 50.1928 11.5845 50.1928 9.78245C50.1928 7.98044 51.655 6.51439 53.4522 6.51439C55.2494 6.51439 56.7116 7.98044 56.7116 9.78245C56.7116 11.5845 55.2494 13.0505 53.4522 13.0505Z", fill: "currentColor" }), d("path", { key: "e129a0531742754423169ea6d4f88a8b9a7a3448", d: "M45.5795 10.6166V0.356201H43.3501V10.6166C43.3501 13.1517 45.3758 15.2228 47.8908 15.2858V13.0486C46.6057 12.9875 45.5795 11.9204 45.5795 10.6166Z", fill: "currentColor" }), d("path", { key: "f1e19b3ef09568e57cac44d71d21a8db19ee1184", d: "M39.5428 4.4967V10.63C39.5428 11.6761 38.8669 12.621 37.9016 12.9284C37.1249 13.1746 36.3157 13.0486 35.6817 12.5829C35.0592 12.1247 34.6879 11.3917 34.6879 10.6186V4.4967H32.4585V10.5995C32.4585 12.7165 33.8388 14.57 35.8131 15.1084C37.0354 15.4424 38.2995 15.2973 39.3695 14.7037L39.5428 14.6063V14.9747C39.5428 16.2766 38.5166 17.3437 37.2315 17.4067V19.6439C39.7465 19.5809 41.7722 17.5117 41.7722 14.9747V4.4967H39.5428Z", fill: "currentColor" })), d("defs", { key: "c97ba75e4811081b3bd50460af81e60666c44d38" }, d("clipPath", { key: "e585d77949e6cf411e08275bd51b239a8a6b4af8", id: "clip0_455_3543" }, d("rect", { key: "586c6b1e9c085419045cf92a2fd21301ead072ea", width: "68.7123", height: "19.2877", fill: "white", transform: "translate(0.144043 0.356201)" }))));
|
|
20336
20350
|
}
|
|
20337
20351
|
static get style() {
|
|
20338
20352
|
return FB;
|
|
@@ -20357,7 +20371,7 @@ const HB = ".sc-warning-icon-h{display:flex}", YB = HB, GB = a0(class extends s0
|
|
|
20357
20371
|
super(), this.__registerHost(), this.width = "16", this.height = "16";
|
|
20358
20372
|
}
|
|
20359
20373
|
render() {
|
|
20360
|
-
return
|
|
20374
|
+
return d("svg", { key: "b34f130a672a27ebfdc11770c3581748b8d187e1", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("path", { key: "d37f2b7155b8f15d943afa13e2c975e608a5f364", d: "M7.68551 1.35232L1.12678 13.2773C0.576954 14.277 1.3002 15.5002 2.4411 15.5002H15.5586C16.6995 15.5002 17.4227 14.277 16.8729 13.2773L10.3142 1.35232C9.74426 0.316153 8.2554 0.316157 7.68551 1.35232ZM8.99982 5.25016C9.41403 5.25016 9.74982 5.58595 9.74982 6.00016V10.0002C9.74982 10.4144 9.41403 10.7502 8.99982 10.7502C8.5856 10.7502 8.24982 10.4144 8.24982 10.0002V6.00016C8.24982 5.58595 8.5856 5.25016 8.99982 5.25016ZM9.74982 12.2502C9.74982 12.6644 9.41403 13.0002 8.99982 13.0002C8.5856 13.0002 8.24982 12.6644 8.24982 12.2502C8.24982 11.8359 8.5856 11.5002 8.99982 11.5002C9.41403 11.5002 9.74982 11.8359 9.74982 12.2502Z", fill: "currentColor" }));
|
|
20361
20375
|
}
|
|
20362
20376
|
static get style() {
|
|
20363
20377
|
return YB;
|
|
@@ -20431,7 +20445,7 @@ const KB = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--nylas
|
|
|
20431
20445
|
this.notifications = this.notifications.filter((o) => o.id !== e);
|
|
20432
20446
|
}
|
|
20433
20447
|
render() {
|
|
20434
|
-
return
|
|
20448
|
+
return d(x0, { key: "9a2b2d32b746b25c06f61494c2cae183712f61e0" }, d(Ab, { key: "561d628e0954735a0a0643b076101f4a0e4cfe0a" }, this.notifications.map((e) => d("div", { class: `notif ${e.type}`, key: e.id }, d("div", { class: "content" }, d("span", { class: `icon ${e.type}` }, (e.type === "error" || e.type === "warning") && d("warning-icon", null)), d("span", { class: "message" }, d("span", { class: "title" }, e.title), e.description && d("span", { class: "description" }, e.description))), d("button", { class: "dismiss-btn", onClick: () => this.dismissNotification(e.id) }, d("close-icon", null)))), d("slot", { key: "2f2d91b57282c87026f507f065b0e98615658ff2" })));
|
|
20435
20449
|
}
|
|
20436
20450
|
get host() {
|
|
20437
20451
|
return this;
|
|
@@ -20476,7 +20490,7 @@ var tv = function(t, e, o, n) {
|
|
|
20476
20490
|
};
|
|
20477
20491
|
const i5 = a0(class extends s0 {
|
|
20478
20492
|
constructor() {
|
|
20479
|
-
super(), this.__registerHost(), this.__attachShadow(), this.rejectBookingButtonClicked =
|
|
20493
|
+
super(), this.__registerHost(), this.__attachShadow(), this.rejectBookingButtonClicked = M0(this, "rejectBookingButtonClicked", 7), this.confirmBookingButtonClicked = M0(this, "confirmBookingButtonClicked", 7), this.confirmBookingError = M0(this, "confirmBookingError", 7), this.handleConfirmBookingButtonClicked = () => {
|
|
20480
20494
|
this.action = "confirm";
|
|
20481
20495
|
const e = (o) => {
|
|
20482
20496
|
this.confirmBookingError.emit(o);
|
|
@@ -20501,11 +20515,11 @@ const i5 = a0(class extends s0 {
|
|
|
20501
20515
|
}
|
|
20502
20516
|
render() {
|
|
20503
20517
|
var e, o, n, b, c, M, p, i, r, a, z, s;
|
|
20504
|
-
return
|
|
20518
|
+
return d(x0, { key: "6d80da6d7d359bad3d317d04db827e51d02f36c9", part: "nmcc" }, d("div", { key: "eeca3a1fe7937e7be2a15ab418e0c46bee8b207f", class: "event-card-wrapper", part: "nmccc__card" }, d("div", { key: "7b5fad347fbe69a1b62945cd4945854e086e4bd2", class: "calendar-icon" }, d("calendar-check-icon", { key: "427696f8e3de3f7d1f8d131626897460beb616f9" })), d("div", { key: "fdb11fa1b76f83cd64e8ed44e637aff89b33e93e", class: "booked-event-header" }, d("h2", { key: "2c18ab70ed2f00251552c972a040721c64979276", slot: "card-title", part: "nmcc__title" }, !!this.organizerConfirmationBookingId && `${E.t("bookingPendingTitle")}!`)), d("div", { key: "70cbb157ae6436799d24092f6bd0ce82df8c4c5d", class: "manage-booking-description" }, d("p", { key: "afaeb94cf6ff0d75fa17c8a24298078b95d5d8f8" }, E.t("bookingPendingnDescription"))), d("div", { key: "fb6b22ad30e9af98b50cd4a35ad545ba8b5a100b", class: {
|
|
20505
20519
|
footer: !0,
|
|
20506
20520
|
"no-footer": ((o = (e = this.configSettings) == null ? void 0 : e.scheduler) == null ? void 0 : o.hide_cancellation_options) && ((b = (n = this.configSettings) == null ? void 0 : n.scheduler) == null ? void 0 : b.hide_rescheduling_options),
|
|
20507
20521
|
"no-template-cols": ((M = (c = this.configSettings) == null ? void 0 : c.scheduler) == null ? void 0 : M.hide_cancellation_options) || ((i = (p = this.configSettings) == null ? void 0 : p.scheduler) == null ? void 0 : i.hide_rescheduling_options)
|
|
20508
|
-
} }, !((a = (r = this.configSettings) == null ? void 0 : r.scheduler) != null && a.hide_cancellation_options) &&
|
|
20522
|
+
} }, !((a = (r = this.configSettings) == null ? void 0 : r.scheduler) != null && a.hide_cancellation_options) && d("button-component", { variant: "destructive", onClick: this.handleRejectBookingButtonClicked, isLoading: this.isLoading && this.action === "reject", part: "nmcc__button-outline nmcc__cancel-cta" }, `${E.t("rejectBookingButton")}`), !((s = (z = this.configSettings) == null ? void 0 : z.scheduler) != null && s.hide_rescheduling_options) && d("button-component", { variant: "basic", onClick: this.handleConfirmBookingButtonClicked, isLoading: this.isLoading && this.action === "confirm", part: "nmcc__button-outline nmcc__reschedule-cta" }, `${E.t("confirmBookingButton")}`))));
|
|
20509
20523
|
}
|
|
20510
20524
|
get host() {
|
|
20511
20525
|
return this;
|
|
@@ -20604,7 +20618,7 @@ const r5 = a0(class extends s0 {
|
|
|
20604
20618
|
}
|
|
20605
20619
|
render() {
|
|
20606
20620
|
var e;
|
|
20607
|
-
return
|
|
20621
|
+
return d(x0, { key: "2b4257d6793fd263e7978504b88e270d77e2e78f", part: "nsec" }, d("div", { key: "8eb84c0c375afd9824d88337003d09b7fe3db171", class: "event-card", part: "nsec__card" }, d("div", { key: "bc7d364f1ec772f06f5eab4549b0433cb947f68d", class: "calendar-icon", part: "nsec__icon" }, d("calendar-icon", { key: "a3f38777fea8b17714ad0dc34cd236a93e4360fd" })), d("div", { key: "1d23698c5a8d627bc10c7969e269a381584b6477", class: "nylas-selected-event-card__date", part: "nsec__date" }, this.selectedDate ? bM((e = this.selectedDate) == null ? void 0 : e.toLocaleDateString(DM[this.selectedLanguage || navigator.language], { dateStyle: "full", timeZone: this.selectedTimezone })) : "-"), d("div", { key: "4e02d04cc6918076935614be321619a9df16430d", class: "nylas-selected-event-card__time", part: "nsec__time" }, this.startTime, " - ", this.endTime)), d("div", { key: "ad39ae7e3df5e6652b0dad88b98695cfee00e3db", class: "event-timezone", part: "nsec__timezone" }, d("globe-icon", { key: "23b1e1fd15842a65278a969e1ce3aea0313ea46e" }), J2[this.selectedTimezone]));
|
|
20608
20622
|
}
|
|
20609
20623
|
static get style() {
|
|
20610
20624
|
return bv;
|
|
@@ -20665,7 +20679,7 @@ var rv = function(t, e, o, n) {
|
|
|
20665
20679
|
};
|
|
20666
20680
|
const z5 = a0(class extends s0 {
|
|
20667
20681
|
constructor() {
|
|
20668
|
-
super(), this.__registerHost(), this.__attachShadow(), this.timeslotSelected =
|
|
20682
|
+
super(), this.__registerHost(), this.__attachShadow(), this.timeslotSelected = M0(this, "timeslotSelected", 7), this.timeslotConfirmed = M0(this, "timeslotConfirmed", 7), this.handleConfirmedTimeslot = async (e, o) => {
|
|
20669
20683
|
e.preventDefault(), I("[nylas-timeslot-picker] Confirm timeslot", o), this.timeslotConfirmed.emit(o);
|
|
20670
20684
|
}, this.handleMouseEnter = (e) => {
|
|
20671
20685
|
this.hoveredTimeslotIndex = e;
|
|
@@ -20720,13 +20734,13 @@ const z5 = a0(class extends s0 {
|
|
|
20720
20734
|
return `${o.format(e.start_time)} - ${o.format(e.end_time)}`;
|
|
20721
20735
|
}
|
|
20722
20736
|
render() {
|
|
20723
|
-
return this.isLoading ?
|
|
20737
|
+
return this.isLoading ? d(x0, null, d("div", { class: "loading" }, new Array(6).fill(0).map((e, o) => d("div", { class: "timeslot-skeleton", style: { animationDelay: `${o * 20}ms` } })))) : this.availability && this.availability.length === 0 ? d(x0, null, d("div", { class: "empty" }, d("span", null, "No dates available"))) : (!this.times || this.times.length === 0) && this.selectedDate ? d(x0, null, d("div", { class: "empty" }, d("span", null, "No time slots available for selected date"))) : this.selectedDate ? d(x0, { part: "ntp" }, d("div", { class: "time-picker-wrapper" }, d("div", { class: "timeslots" }, this.times.map((e, o) => {
|
|
20724
20738
|
var n, b, c, M;
|
|
20725
|
-
return
|
|
20739
|
+
return d("button", { part: `ntp__timeslot ${((b = (n = this.selectedTimeslot) == null ? void 0 : n.start_time) == null ? void 0 : b.getTime()) === e.start_time.getTime() ? "ntp__timeslot--selected" : ""}`, "aria-role": "button", class: {
|
|
20726
20740
|
time: !0,
|
|
20727
20741
|
selected: typeof this.selectedTimeslot < "u" && ((M = (c = this.selectedTimeslot) == null ? void 0 : c.start_time) == null ? void 0 : M.getTime()) === e.start_time.getTime()
|
|
20728
20742
|
}, onClick: () => this.onClickSelectTime(e, o), onMouseEnter: () => this.handleMouseEnter(o), onMouseLeave: () => this.handleMouseLeave() }, this.hoveredTimeslotIndex == o || this.selectedTimeslotIndex == this.getTimeslotId(e.start_time, o) ? this.getTimeSlotLabel(e) : e.start_time.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", timeZone: this.selectedTimezone }));
|
|
20729
|
-
})), this.selectedTimeslot &&
|
|
20743
|
+
})), this.selectedTimeslot && d("div", { class: "footer" }, d("button-component", { variant: "primary", onClick: (e) => this.handleConfirmedTimeslot(e, this.selectedTimeslot), part: "ntp__button-primary" }, d("slot", { name: "timeslot-picker-cta-label" }, E.t("nextButton")))))) : d(x0, null);
|
|
20730
20744
|
}
|
|
20731
20745
|
static get watchers() {
|
|
20732
20746
|
return {
|
|
@@ -20827,39 +20841,39 @@ class av {
|
|
|
20827
20841
|
}
|
|
20828
20842
|
const Ee = (t, e) => {
|
|
20829
20843
|
const o = t.isLoading, n = t.showNotification, b = t.nylasBranding;
|
|
20830
|
-
return
|
|
20844
|
+
return d(
|
|
20831
20845
|
Ab,
|
|
20832
20846
|
null,
|
|
20833
|
-
n &&
|
|
20834
|
-
o &&
|
|
20847
|
+
n && d("nylas-notification", null),
|
|
20848
|
+
o && d(
|
|
20835
20849
|
"div",
|
|
20836
20850
|
{ class: "loading" },
|
|
20837
|
-
|
|
20851
|
+
d(
|
|
20838
20852
|
"div",
|
|
20839
20853
|
{ class: "left" },
|
|
20840
|
-
|
|
20854
|
+
d("div", { class: "skeleton" })
|
|
20841
20855
|
),
|
|
20842
|
-
|
|
20856
|
+
d(
|
|
20843
20857
|
"div",
|
|
20844
20858
|
{ class: "right" },
|
|
20845
|
-
|
|
20846
|
-
|
|
20847
|
-
|
|
20848
|
-
|
|
20849
|
-
|
|
20859
|
+
d("div", { class: "skeleton" }),
|
|
20860
|
+
d("div", { class: "skeleton" }),
|
|
20861
|
+
d("div", { class: "skeleton" }),
|
|
20862
|
+
d("div", { class: "skeleton" }),
|
|
20863
|
+
d("div", { class: "skeleton" })
|
|
20850
20864
|
)
|
|
20851
20865
|
),
|
|
20852
20866
|
!o && e,
|
|
20853
|
-
|
|
20867
|
+
d("div", { class: "footer" }, b && d(
|
|
20854
20868
|
Ab,
|
|
20855
20869
|
null,
|
|
20856
20870
|
"Powered by ",
|
|
20857
|
-
|
|
20871
|
+
d("nylas-logo", null)
|
|
20858
20872
|
))
|
|
20859
20873
|
);
|
|
20860
|
-
}, Ei = (t, e) =>
|
|
20874
|
+
}, Ei = (t, e) => d("div", { class: "message-banner" }, e), sv = ':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-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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{padding:0.5rem 4px 0;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}}.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;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 svg{fill:var(--nylas-base-500)}.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}', Ov = sv, Xi = { title: E.t("genericErrorTitle"), type: j2.Error, category: He.Component }, a5 = a0(class extends s0 {
|
|
20861
20875
|
constructor() {
|
|
20862
|
-
super(), this.__registerHost(), this.__attachShadow(), this.init =
|
|
20876
|
+
super(), this.__registerHost(), this.__attachShadow(), this.init = M0(this, "init", 7), this.schedulerWillLoad = M0(this, "schedulerWillLoad", 7), this.schedulerDidLoad = M0(this, "schedulerDidLoad", 7), this.nylasSchedulerError = M0(this, "nylasSchedulerError", 7), this.configSettingsLoaded = M0(this, "configSettingsLoaded", 7), this.bookingRefExtracted = M0(this, "bookingRefExtracted", 7), this.bookedEventInfo = M0(this, "bookedEventInfo", 7), this.mode = "app", this.defaultSchedulerState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://api.us.nylas.com", this.bookingInfo = void 0, this.rescheduleBookingRef = void 0, this.cancelBookingRef = void 0, this.organizerConfirmationBookingRef = void 0, this.configurationId = void 0, this.slug = void 0, this.clientId = void 0, this.nylasBranding = !0, this.eventOverrides = {}, this.isLoading = void 0, this.themeConfig = void 0, this.localization = void 0, this.showNotification = !0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(void 0, { dateStyle: "full" }) || `${E.t("noDateSelected")}`, this.refConfigId = void 0, this.language = navigator.language;
|
|
20863
20877
|
}
|
|
20864
20878
|
connectedCallback() {
|
|
20865
20879
|
I("[nylas-scheduler] connectedCallback");
|
|
@@ -20903,22 +20917,23 @@ const Ee = (t, e) => {
|
|
|
20903
20917
|
"init" in this.eventOverrides && (await this.eventOverrides.init(b, this.nylasSchedulerConnector), b.defaultPrevented) || ((M = this.baseProvider) == null || M.componentWillLoad(this.nylasSchedulerConnector), this.applyThemeConfig(this.themeConfig));
|
|
20904
20918
|
}
|
|
20905
20919
|
async componentDidLoad() {
|
|
20906
|
-
var r, a, z, s, O,
|
|
20920
|
+
var r, a, z, s, O, u, A, l;
|
|
20907
20921
|
(r = this.baseProvider) == null || r.componentDidLoad();
|
|
20908
20922
|
const e = this.schedulerDidLoad.emit(this.host);
|
|
20909
20923
|
if ("schedulerDidLoad" in this.eventOverrides && (await this.eventOverrides.schedulerDidLoad(e, this.nylasSchedulerConnector), e.defaultPrevented) || !this.checkIfSessionIdOrConfigIdExists())
|
|
20910
20924
|
return;
|
|
20911
20925
|
this.localizationChanged(this.localization);
|
|
20912
20926
|
const o = await ((a = this.nylasSchedulerConnector) == null ? void 0 : a.scheduler.getUISettings());
|
|
20913
|
-
if (!o || "error" in o)
|
|
20927
|
+
if (!o || "error" in o) {
|
|
20914
20928
|
this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(o == null ? void 0 : o.error) }, host: this.host });
|
|
20915
|
-
|
|
20929
|
+
return;
|
|
20930
|
+
} else {
|
|
20916
20931
|
"data" in o && ((z = o.data) != null && z.appearance) && console.info("Appearance settings have been returned from the configuration used byt his scheduling page; please remember to grab them from the configSettingsLoaded event and apply them as desired.");
|
|
20917
20932
|
const f = this.configSettingsLoaded.emit({ settings: o });
|
|
20918
20933
|
if ("configSettingsLoaded" in this.eventOverrides && (await this.eventOverrides.configSettingsLoaded(f, this.nylasSchedulerConnector), f.defaultPrevented))
|
|
20919
20934
|
return;
|
|
20920
20935
|
}
|
|
20921
|
-
const n = (s = this.baseProvider) == null ? void 0 : s.getStore("scheduler"), b = (
|
|
20936
|
+
const n = (s = this.baseProvider) == null ? void 0 : s.getStore("scheduler"), b = (u = (O = n == null ? void 0 : n.get("configSettings")) == null ? void 0 : O.scheduler) == null ? void 0 : u.available_days_in_future, c = n == null ? void 0 : n.get("selectedTimeslot");
|
|
20922
20937
|
if (c && (c != null && c.start_time)) {
|
|
20923
20938
|
if (!this.isTimeslotValid(c))
|
|
20924
20939
|
return;
|
|
@@ -20997,26 +21012,39 @@ const Ee = (t, e) => {
|
|
|
20997
21012
|
var p, i, r, a, z, s, O;
|
|
20998
21013
|
const o = e.detail, n = (a = (r = (i = (p = this.nylasSchedulerConnector) == null ? void 0 : p.schedulerStore) == null ? void 0 : i.get("configSettings")) == null ? void 0 : r.scheduler) == null ? void 0 : a.available_days_in_future, { startTime: b, endTime: c, endTimeForAvailableDaysInFuture: M } = this.validateAvailableDaysInFuture(o, n || 30);
|
|
20999
21014
|
if (b < M && o.getTime() < M * 1e3) {
|
|
21000
|
-
const
|
|
21001
|
-
(!
|
|
21015
|
+
const u = await ((z = this.nylasSchedulerConnector) == null ? void 0 : z.scheduler.getAvailability(b, c));
|
|
21016
|
+
(!u || "error" in u) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(u == null ? void 0 : u.error) }, host: this.host });
|
|
21002
21017
|
const A = (s = this.stores) == null ? void 0 : s.scheduler.get("selectableDates");
|
|
21003
21018
|
A && A.length > 0 && ((O = this.stores) == null || O.scheduler.set("selectedDate", A[0]));
|
|
21004
21019
|
}
|
|
21005
21020
|
}
|
|
21021
|
+
mapToBookingData(e) {
|
|
21022
|
+
var p, i, r;
|
|
21023
|
+
const o = (p = this.stores) == null ? void 0 : p.scheduler.get("selectedTimeslot"), n = (i = this.stores) == null ? void 0 : i.scheduler.get("selectedLanguage"), b = (r = this.stores) == null ? void 0 : r.scheduler.get("selectedTimezone"), c = o != null && o.start_time ? new Date(o == null ? void 0 : o.start_time).getTime() / 1e3 : "", M = o != null && o.end_time ? new Date(o == null ? void 0 : o.end_time).getTime() / 1e3 : "";
|
|
21024
|
+
return {
|
|
21025
|
+
additional_guests: e.guests,
|
|
21026
|
+
guest: e.primaryParticipant,
|
|
21027
|
+
additional_fields: e.additionalFields,
|
|
21028
|
+
start_time: c,
|
|
21029
|
+
end_time: M,
|
|
21030
|
+
email_language: n,
|
|
21031
|
+
timezone: b
|
|
21032
|
+
};
|
|
21033
|
+
}
|
|
21006
21034
|
async bookButtonClickedHandler(e) {
|
|
21007
|
-
var
|
|
21008
|
-
const n = (
|
|
21009
|
-
if (
|
|
21010
|
-
const
|
|
21011
|
-
(!
|
|
21012
|
-
const
|
|
21013
|
-
"bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(
|
|
21035
|
+
var r, a, z, s;
|
|
21036
|
+
const o = e.detail, n = this.mapToBookingData(o), c = (a = (r = this.nylasSchedulerConnector) == null ? void 0 : r.schedulerStore) == null ? void 0 : a.get("rescheduleBookingId");
|
|
21037
|
+
if (c) {
|
|
21038
|
+
const O = await ((z = this.nylasSchedulerConnector) == null ? void 0 : z.scheduler.rescheduleBooking(c, o));
|
|
21039
|
+
(!O || "error" in O) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(O == null ? void 0 : O.error) }, host: this.host });
|
|
21040
|
+
const u = O == null ? void 0 : O.data, A = this.bookedEventInfo.emit({ ...O, data: { ...u, ...n } });
|
|
21041
|
+
"bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(A, this.nylasSchedulerConnector);
|
|
21014
21042
|
return;
|
|
21015
21043
|
}
|
|
21016
|
-
const
|
|
21017
|
-
(!
|
|
21018
|
-
const
|
|
21019
|
-
"bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(
|
|
21044
|
+
const M = await ((s = this.nylasSchedulerConnector) == null ? void 0 : s.scheduler.bookTimeslot(o));
|
|
21045
|
+
(!M || "error" in M) && this.nylasSchedulerError.emit({ notification: { ...this.getErrorObject(M == null ? void 0 : M.error) }, host: this.host });
|
|
21046
|
+
const p = M == null ? void 0 : M.data, i = this.bookedEventInfo.emit({ ...M, data: { ...p, ...n } });
|
|
21047
|
+
"bookedEventInfo" in this.eventOverrides && await this.eventOverrides.bookedEventInfo(i, this.nylasSchedulerConnector);
|
|
21020
21048
|
}
|
|
21021
21049
|
dateSelectedHandler(e) {
|
|
21022
21050
|
const o = e.detail;
|
|
@@ -21095,26 +21123,26 @@ const Ee = (t, e) => {
|
|
|
21095
21123
|
}
|
|
21096
21124
|
render() {
|
|
21097
21125
|
var A, l, f;
|
|
21098
|
-
const e = this.mode === "app", o = (A = this.baseProvider) == null ? void 0 : A.getStore("scheduler"), n = o == null ? void 0 : o.get("eventInfo"), b = o == null ? void 0 : o.get("showBookingForm"), c = o == null ? void 0 : o.get("cancelledEventInfo"), M = o == null ? void 0 : o.get("cancelBookingId"), p = o == null ? void 0 : o.get("selectedTimeslot"), i = o == null ? void 0 : o.get("rescheduleBookingId"), r = o == null ? void 0 : o.get("organizerConfirmationBookingId"), a = o == null ? void 0 : o.get("rejectBookingId"), z = o == null ? void 0 : o.get("confirmedEventInfo"), s = (o == null ? void 0 : o.get("nylasBranding")) || this.nylasBranding, O = o == null ? void 0 : o.get("selectedDate"),
|
|
21126
|
+
const e = this.mode === "app", o = (A = this.baseProvider) == null ? void 0 : A.getStore("scheduler"), n = o == null ? void 0 : o.get("eventInfo"), b = o == null ? void 0 : o.get("showBookingForm"), c = o == null ? void 0 : o.get("cancelledEventInfo"), M = o == null ? void 0 : o.get("cancelBookingId"), p = o == null ? void 0 : o.get("selectedTimeslot"), i = o == null ? void 0 : o.get("rescheduleBookingId"), r = o == null ? void 0 : o.get("organizerConfirmationBookingId"), a = o == null ? void 0 : o.get("rejectBookingId"), z = o == null ? void 0 : o.get("confirmedEventInfo"), s = (o == null ? void 0 : o.get("nylasBranding")) || this.nylasBranding, O = o == null ? void 0 : o.get("selectedDate"), u = (f = (l = o == null ? void 0 : o.get("configSettings")) == null ? void 0 : l.scheduler) == null ? void 0 : f.confirmation_redirect_url;
|
|
21099
21127
|
if (this.selectedDateLabel = O && this.language ? bM(O.toLocaleDateString(DM[this.language], { dateStyle: "full" })) : `${E.t("noDateSelected")}`, e && (M || a) && !c)
|
|
21100
|
-
return
|
|
21128
|
+
return d(x0, null, d(Ee, { nylasBranding: s, isLoading: this.isLoading, showNotification: this.showNotification }, d("div", { class: "cancel-flow-page", part: "cancel-flow-page" }, d("nylas-cancel-booking-form", { selectedTimeslot: p, cancelBookingId: M, rejectBookingId: a, exportparts: "ncbf, ncbf__icon, ncbf__title, ncbf__description, ncbf__reason-textarea, ncbf__button-cta, ncbf__button-outline, ncbf__card" }))));
|
|
21101
21129
|
if (e && r)
|
|
21102
|
-
return
|
|
21130
|
+
return d(x0, null, d(Ee, { nylasBranding: s, isLoading: this.isLoading, showNotification: this.showNotification }, d("div", { class: "manual-confirmation-page", part: "manual-confirmation-page" }, d("nylas-organizer-confirmation-card", { organizerConfirmationBookingId: r, exportparts: "nmcc, nmcc__title, nmcc__description, nmcc__button-cta, nmcc__button-outline" }))));
|
|
21103
21131
|
if (e && c)
|
|
21104
|
-
return
|
|
21132
|
+
return d(x0, null, d(Ee, { nylasBranding: s, isLoading: this.isLoading, showNotification: this.showNotification }, d("div", { class: "cancelled-event-page", part: "cancelled-event-page" }, d("nylas-cancelled-event-card", { cancelledEventInfo: c, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))));
|
|
21105
21133
|
if (e && z)
|
|
21106
|
-
return
|
|
21107
|
-
if (e && n &&
|
|
21108
|
-
window.location.assign(
|
|
21134
|
+
return d(x0, null, d(Ee, { nylasBranding: s, isLoading: this.isLoading, showNotification: this.showNotification }, d("div", { class: "cancelled-event-page", part: "confirmed-event-page" }, d("nylas-confirmed-event-card", { confirmedEventInfo: z, exportparts: "ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card" }))));
|
|
21135
|
+
if (e && n && u) {
|
|
21136
|
+
window.location.assign(u);
|
|
21109
21137
|
return;
|
|
21110
21138
|
}
|
|
21111
21139
|
if (e && n)
|
|
21112
|
-
return
|
|
21140
|
+
return d(x0, null, d(Ee, { nylasBranding: s, isLoading: this.isLoading, showNotification: this.showNotification }, d("div", { class: "booked-event-page", part: "booked-event-page" }, d("nylas-booked-event-card", { selectedTimeslot: p, eventInfo: n, exportparts: "nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta" }))));
|
|
21113
21141
|
if (e && (!n || i) && !b) {
|
|
21114
21142
|
const h = this.host.querySelector('[slot="timeslot-picker-cta-label"]');
|
|
21115
|
-
return
|
|
21143
|
+
return d(x0, null, d(Ee, { nylasBranding: s, isLoading: this.isLoading, showNotification: this.showNotification }, i && d(Ei, null, `${E.t("rescheduleTitle")}`), d("div", { class: "select-date-page", part: "select-date-page" }, d("div", { class: "left-panel" }, d("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" }), d("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" })), d("div", { class: `right-panel ${i ? "reschedule" : ""}` }, d("h2", null, d("calendar-icon", null), d("span", { id: "selectedDate" }, this.selectedDateLabel)), d("nylas-timeslot-picker", { exportparts: "ntp, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary" }, h && d("span", { slot: "timeslot-picker-cta-label" }, d("slot", { name: "timeslot-picker-cta-label" })))))));
|
|
21116
21144
|
}
|
|
21117
|
-
return e && !n && b ?
|
|
21145
|
+
return e && !n && b ? d(x0, null, d(Ee, { nylasBranding: s, isLoading: this.isLoading, showNotification: this.showNotification }, i && d(Ei, null, `${E.t("rescheduleTitle")}`), d("div", { class: "additional-data-page", part: "additional-data-page" }, d("div", { class: "left-panel" }, d("div", { class: "wrapper" }, d("nylas-selected-event-card", { exportparts: "nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone" }))), d("div", { class: `right-panel ${i ? "reschedule" : ""}` }, d("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" }))))) : d(x0, null, d("slot", null));
|
|
21118
21146
|
}
|
|
21119
21147
|
get host() {
|
|
21120
21148
|
return this;
|