@nylas/web-elements 1.1.5 → 1.1.6
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-booked-event-card/nylas-booked-event-card.es.js +155 -145
- package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +80 -70
- package/dist/cdn/nylas-cancel-booking-form/nylas-cancel-booking-form.es.js +14 -4
- package/dist/cdn/nylas-cancelled-event-card/nylas-cancelled-event-card.es.js +14 -4
- package/dist/cdn/nylas-confirmed-event-card/nylas-confirmed-event-card.es.js +14 -4
- package/dist/cdn/nylas-date-picker/nylas-date-picker.es.js +86 -73
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +19 -12
- package/dist/cdn/nylas-feedback-form/nylas-feedback-form.es.js +1226 -1219
- package/dist/cdn/nylas-locale-switch/nylas-locale-switch.es.js +1233 -1220
- package/dist/cdn/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.es.js +11 -4
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +19 -12
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +1694 -1584
- package/dist/cdn/nylas-selected-event-card/nylas-selected-event-card.es.js +14 -4
- package/dist/cdn/nylas-timeslot-picker/nylas-timeslot-picker.es.js +13 -3
- package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js +13 -3
- package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon_4.cjs.entry.js +7 -6
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nylas-booked-event-card.cjs.entry.js +15 -4
- package/dist/cjs/nylas-booked-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +142 -25
- package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-booking-form.cjs.entry.js +16 -3
- package/dist/cjs/nylas-booking-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js +13 -2
- package/dist/cjs/nylas-cancel-booking-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js +13 -2
- package/dist/cjs/nylas-cancelled-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-confirmed-event-card.cjs.entry.js +13 -2
- package/dist/cjs/nylas-confirmed-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-date-picker.cjs.entry.js +16 -2
- package/dist/cjs/nylas-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js +7 -6
- package/dist/cjs/nylas-editor-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-feedback-form.cjs.entry.js +13 -3
- package/dist/cjs/nylas-feedback-form.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-locale-switch.cjs.entry.js +18 -4
- package/dist/cjs/nylas-locale-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-organizer-confirmation-card.cjs.entry.js +12 -2
- package/dist/cjs/nylas-organizer-confirmation-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +11 -10
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-selected-event-card.cjs.entry.js +14 -3
- package/dist/cjs/nylas-selected-event-card.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-timeslot-picker.cjs.entry.js +12 -1
- package/dist/cjs/nylas-timeslot-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-web-elements.cjs.js +1 -1
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js +34 -3
- package/dist/collection/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.css +0 -23
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js +35 -2
- package/dist/collection/components/scheduler/nylas-booking-form/nylas-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.css +0 -23
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js +32 -1
- package/dist/collection/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js +32 -1
- package/dist/collection/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js +32 -1
- package/dist/collection/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.css +0 -23
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +35 -1
- package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.css +0 -23
- package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js +36 -2
- package/dist/collection/components/scheduler/nylas-feedback-form/nylas-feedback-form.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.css +0 -23
- package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.js +37 -3
- package/dist/collection/components/scheduler/nylas-locale-switch/nylas-locale-switch.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js +31 -1
- package/dist/collection/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -9
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.css +0 -23
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js +33 -2
- package/dist/collection/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.css +0 -23
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js +31 -0
- package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-timeslot-picker/test/nylas-timeslot-picker.spec.js +7 -1
- package/dist/collection/components/scheduler/nylas-timeslot-picker/test/nylas-timeslot-picker.spec.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +5 -4
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/components/nylas-booked-event-card2.js +16 -4
- package/dist/components/nylas-booked-event-card2.js.map +1 -1
- package/dist/components/nylas-booking-form2.js +17 -3
- package/dist/components/nylas-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancel-booking-form2.js +14 -2
- package/dist/components/nylas-cancel-booking-form2.js.map +1 -1
- package/dist/components/nylas-cancelled-event-card2.js +14 -2
- package/dist/components/nylas-cancelled-event-card2.js.map +1 -1
- package/dist/components/nylas-confirmed-event-card2.js +14 -2
- package/dist/components/nylas-confirmed-event-card2.js.map +1 -1
- package/dist/components/nylas-date-picker2.js +18 -3
- package/dist/components/nylas-date-picker2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +7 -6
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-feedback-form2.js +14 -3
- package/dist/components/nylas-feedback-form2.js.map +1 -1
- package/dist/components/nylas-locale-switch2.js +20 -5
- package/dist/components/nylas-locale-switch2.js.map +1 -1
- package/dist/components/nylas-organizer-confirmation-card2.js +13 -2
- package/dist/components/nylas-organizer-confirmation-card2.js.map +1 -1
- package/dist/components/nylas-scheduling.js +11 -10
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/nylas-selected-event-card2.js +15 -3
- package/dist/components/nylas-selected-event-card2.js.map +1 -1
- package/dist/components/nylas-timeslot-picker2.js +13 -1
- package/dist/components/nylas-timeslot-picker2.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_54.entry.js +13 -3
- package/dist/esm/calendar-agenda-fill-icon_54.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_4.entry.js +7 -6
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nylas-booked-event-card.entry.js +16 -5
- package/dist/esm/nylas-booked-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-booked-event-card_12.entry.js +142 -25
- package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
- package/dist/esm/nylas-booking-form.entry.js +16 -3
- package/dist/esm/nylas-booking-form.entry.js.map +1 -1
- package/dist/esm/nylas-cancel-booking-form.entry.js +14 -3
- package/dist/esm/nylas-cancel-booking-form.entry.js.map +1 -1
- package/dist/esm/nylas-cancelled-event-card.entry.js +14 -3
- package/dist/esm/nylas-cancelled-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-confirmed-event-card.entry.js +14 -3
- package/dist/esm/nylas-confirmed-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-date-picker.entry.js +18 -4
- package/dist/esm/nylas-date-picker.entry.js.map +1 -1
- package/dist/esm/nylas-editor-tabs.entry.js +7 -6
- package/dist/esm/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/esm/nylas-feedback-form.entry.js +13 -3
- package/dist/esm/nylas-feedback-form.entry.js.map +1 -1
- package/dist/esm/nylas-locale-switch.entry.js +20 -6
- package/dist/esm/nylas-locale-switch.entry.js.map +1 -1
- package/dist/esm/nylas-organizer-confirmation-card.entry.js +12 -2
- package/dist/esm/nylas-organizer-confirmation-card.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +11 -10
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/nylas-selected-event-card.entry.js +15 -4
- package/dist/esm/nylas-selected-event-card.entry.js.map +1 -1
- package/dist/esm/nylas-timeslot-picker.entry.js +13 -2
- package/dist/esm/nylas-timeslot-picker.entry.js.map +1 -1
- package/dist/esm/nylas-web-elements.js +1 -1
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js +16 -5
- package/dist/nylas-web-elements/nylas-booked-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-booking-form.entry.js +16 -3
- package/dist/nylas-web-elements/nylas-booking-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js +14 -3
- package/dist/nylas-web-elements/nylas-cancel-booking-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js +14 -3
- package/dist/nylas-web-elements/nylas-cancelled-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-confirmed-event-card.entry.js +14 -3
- package/dist/nylas-web-elements/nylas-confirmed-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-date-picker.entry.js +18 -4
- package/dist/nylas-web-elements/nylas-date-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +7 -6
- package/dist/nylas-web-elements/nylas-editor-tabs.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-feedback-form.entry.js +13 -3
- package/dist/nylas-web-elements/nylas-feedback-form.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js +20 -6
- package/dist/nylas-web-elements/nylas-locale-switch.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-organizer-confirmation-card.entry.js +12 -2
- package/dist/nylas-web-elements/nylas-organizer-confirmation-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-scheduling.entry.js +11 -10
- package/dist/nylas-web-elements/nylas-scheduling.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js +15 -4
- package/dist/nylas-web-elements/nylas-selected-event-card.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js +13 -2
- package/dist/nylas-web-elements/nylas-timeslot-picker.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/p-2e7f0f20.entry.js +2 -0
- package/dist/nylas-web-elements/p-2e7f0f20.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-b5b568cf.entry.js → p-368190e9.entry.js} +2 -2
- package/dist/nylas-web-elements/p-368190e9.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-e790c71f.entry.js → p-9a8047b9.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-e790c71f.entry.js.map → p-9a8047b9.entry.js.map} +1 -1
- package/dist/nylas-web-elements/{p-d586ff14.entry.js → p-eba3d197.entry.js} +3 -3
- package/dist/nylas-web-elements/p-eba3d197.entry.js.map +1 -0
- package/dist/types/components/scheduler/nylas-booked-event-card/nylas-booked-event-card.d.ts +4 -1
- package/dist/types/components/scheduler/nylas-booking-form/nylas-booking-form.d.ts +5 -2
- package/dist/types/components/scheduler/nylas-cancel-booking-form/nylas-cancel-booking-form.d.ts +4 -1
- package/dist/types/components/scheduler/nylas-cancelled-event-card/nylas-cancelled-event-card.d.ts +4 -0
- package/dist/types/components/scheduler/nylas-confirmed-event-card/nylas-confirmed-event-card.d.ts +4 -0
- package/dist/types/components/scheduler/nylas-date-picker/nylas-date-picker.d.ts +5 -0
- package/dist/types/components/scheduler/nylas-feedback-form/nylas-feedback-form.d.ts +3 -0
- package/dist/types/components/scheduler/nylas-locale-switch/nylas-locale-switch.d.ts +5 -0
- package/dist/types/components/scheduler/nylas-organizer-confirmation-card/nylas-organizer-confirmation-card.d.ts +3 -1
- package/dist/types/components/scheduler/nylas-scheduling/nylas-scheduling.d.ts +1 -1
- package/dist/types/components/scheduler/nylas-selected-event-card/nylas-selected-event-card.d.ts +4 -1
- package/dist/types/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.d.ts +4 -1
- package/dist/types/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.d.ts +1 -1
- package/dist/types/components.d.ts +88 -0
- package/package.json +1 -1
- package/dist/nylas-web-elements/p-7a1d51ab.entry.js +0 -2
- package/dist/nylas-web-elements/p-7a1d51ab.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-b5b568cf.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-d586ff14.entry.js.map +0 -1
|
@@ -308,7 +308,7 @@ const E = (n, e, ...t) => {
|
|
|
308
308
|
}
|
|
309
309
|
_s(t);
|
|
310
310
|
}
|
|
311
|
-
},
|
|
311
|
+
}, Ye = [], Fs = (n) => {
|
|
312
312
|
let e, t, r;
|
|
313
313
|
for (const i of n.childNodes) {
|
|
314
314
|
if (i["s-sr"] && (e = i["s-cr"]) && e.parentNode) {
|
|
@@ -317,14 +317,14 @@ const E = (n, e, ...t) => {
|
|
|
317
317
|
for (r = t.length - 1; r >= 0; r--)
|
|
318
318
|
if (e = t[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== i["s-hn"] && !Ve.experimentalSlotFixes)
|
|
319
319
|
if (gi(e, s)) {
|
|
320
|
-
let o =
|
|
321
|
-
ln = !0, e["s-sn"] = e["s-sn"] || s, o ? (o.$nodeToRelocate$["s-sh"] = i["s-hn"], o.$slotRefNode$ = i) : (e["s-sh"] = i["s-hn"],
|
|
320
|
+
let o = Ye.find((u) => u.$nodeToRelocate$ === e);
|
|
321
|
+
ln = !0, e["s-sn"] = e["s-sn"] || s, o ? (o.$nodeToRelocate$["s-sh"] = i["s-hn"], o.$slotRefNode$ = i) : (e["s-sh"] = i["s-hn"], Ye.push({
|
|
322
322
|
$slotRefNode$: i,
|
|
323
323
|
$nodeToRelocate$: e
|
|
324
|
-
})), e["s-sr"] &&
|
|
325
|
-
gi(u.$nodeToRelocate$, e["s-sn"]) && (o =
|
|
324
|
+
})), e["s-sr"] && Ye.map((u) => {
|
|
325
|
+
gi(u.$nodeToRelocate$, e["s-sn"]) && (o = Ye.find((a) => a.$nodeToRelocate$ === e), o && !u.$slotRefNode$ && (u.$slotRefNode$ = o.$slotRefNode$));
|
|
326
326
|
});
|
|
327
|
-
} else
|
|
327
|
+
} else Ye.some((o) => o.$nodeToRelocate$ === e) || Ye.push({
|
|
328
328
|
$nodeToRelocate$: e
|
|
329
329
|
});
|
|
330
330
|
}
|
|
@@ -342,14 +342,14 @@ const E = (n, e, ...t) => {
|
|
|
342
342
|
{
|
|
343
343
|
if (le.$flags$ |= 1, Dr) {
|
|
344
344
|
Fs(f.$elm$);
|
|
345
|
-
for (const c of
|
|
345
|
+
for (const c of Ye) {
|
|
346
346
|
const h = c.$nodeToRelocate$;
|
|
347
347
|
if (!h["s-ol"]) {
|
|
348
348
|
const m = Be.createTextNode("");
|
|
349
349
|
m["s-nr"] = h, h.parentNode.insertBefore(h["s-ol"] = m, h);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
for (const c of
|
|
352
|
+
for (const c of Ye) {
|
|
353
353
|
const h = c.$nodeToRelocate$, m = c.$slotRefNode$;
|
|
354
354
|
if (m) {
|
|
355
355
|
const b = m.parentNode;
|
|
@@ -370,7 +370,7 @@ const E = (n, e, ...t) => {
|
|
|
370
370
|
h.nodeType === 1 && (t && (h["s-ih"] = (o = h.hidden) !== null && o !== void 0 ? o : !1), h.hidden = !0);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
ln && _s(f.$elm$), le.$flags$ &= -2,
|
|
373
|
+
ln && _s(f.$elm$), le.$flags$ &= -2, Ye.length = 0;
|
|
374
374
|
}
|
|
375
375
|
if (Ve.experimentalScopedSlotChanges && l.$flags$ & 2)
|
|
376
376
|
for (const c of f.$elm$.childNodes)
|
|
@@ -672,7 +672,7 @@ S.TYPED_ARRAY_SUPPORT = wi.TYPED_ARRAY_SUPPORT !== void 0 ? wi.TYPED_ARRAY_SUPPO
|
|
|
672
672
|
function rr() {
|
|
673
673
|
return S.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function Ge(n, e) {
|
|
676
676
|
if (rr() < e)
|
|
677
677
|
throw new RangeError("Invalid typed array length");
|
|
678
678
|
return S.TYPED_ARRAY_SUPPORT ? (n = new Uint8Array(e), n.__proto__ = S.prototype) : (n === null && (n = new S(e)), n.length = e), n;
|
|
@@ -709,13 +709,13 @@ function Ks(n) {
|
|
|
709
709
|
throw new RangeError('"size" argument must not be negative');
|
|
710
710
|
}
|
|
711
711
|
function hm(n, e, t, r) {
|
|
712
|
-
return Ks(e), e <= 0 ?
|
|
712
|
+
return Ks(e), e <= 0 ? Ge(n, e) : t !== void 0 ? typeof r == "string" ? Ge(n, e).fill(t, r) : Ge(n, e).fill(t) : Ge(n, e);
|
|
713
713
|
}
|
|
714
714
|
S.alloc = function(n, e, t) {
|
|
715
715
|
return hm(null, n, e, t);
|
|
716
716
|
};
|
|
717
717
|
function Nr(n, e) {
|
|
718
|
-
if (Ks(e), n =
|
|
718
|
+
if (Ks(e), n = Ge(n, e < 0 ? 0 : Pr(e) | 0), !S.TYPED_ARRAY_SUPPORT)
|
|
719
719
|
for (var t = 0; t < e; ++t)
|
|
720
720
|
n[t] = 0;
|
|
721
721
|
return n;
|
|
@@ -730,13 +730,13 @@ function pm(n, e, t) {
|
|
|
730
730
|
if ((typeof t != "string" || t === "") && (t = "utf8"), !S.isEncoding(t))
|
|
731
731
|
throw new TypeError('"encoding" must be a valid string encoding');
|
|
732
732
|
var r = Zs(e, t) | 0;
|
|
733
|
-
n =
|
|
733
|
+
n = Ge(n, r);
|
|
734
734
|
var i = n.write(e, t);
|
|
735
735
|
return i !== r && (n = n.slice(0, i)), n;
|
|
736
736
|
}
|
|
737
737
|
function ir(n, e) {
|
|
738
738
|
var t = e.length < 0 ? 0 : Pr(e.length) | 0;
|
|
739
|
-
n =
|
|
739
|
+
n = Ge(n, t);
|
|
740
740
|
for (var r = 0; r < t; r += 1)
|
|
741
741
|
n[r] = e[r] & 255;
|
|
742
742
|
return n;
|
|
@@ -749,13 +749,13 @@ function gm(n, e, t, r) {
|
|
|
749
749
|
return t === void 0 && r === void 0 ? e = new Uint8Array(e) : r === void 0 ? e = new Uint8Array(e, t) : e = new Uint8Array(e, t, r), S.TYPED_ARRAY_SUPPORT ? (n = e, n.__proto__ = S.prototype) : n = ir(n, e), n;
|
|
750
750
|
}
|
|
751
751
|
function mm(n, e) {
|
|
752
|
-
if (
|
|
752
|
+
if (Ue(e)) {
|
|
753
753
|
var t = Pr(e.length) | 0;
|
|
754
|
-
return n =
|
|
754
|
+
return n = Ge(n, t), n.length === 0 || e.copy(n, 0, 0, t), n;
|
|
755
755
|
}
|
|
756
756
|
if (e) {
|
|
757
757
|
if (typeof ArrayBuffer < "u" && e.buffer instanceof ArrayBuffer || "length" in e)
|
|
758
|
-
return typeof e.length != "number" || Nm(e.length) ?
|
|
758
|
+
return typeof e.length != "number" || Nm(e.length) ? Ge(n, 0) : ir(n, e);
|
|
759
759
|
if (e.type === "Buffer" && Ws(e.data))
|
|
760
760
|
return ir(n, e.data);
|
|
761
761
|
}
|
|
@@ -767,11 +767,11 @@ function Pr(n) {
|
|
|
767
767
|
return n | 0;
|
|
768
768
|
}
|
|
769
769
|
S.isBuffer = Pm;
|
|
770
|
-
function
|
|
770
|
+
function Ue(n) {
|
|
771
771
|
return !!(n != null && n._isBuffer);
|
|
772
772
|
}
|
|
773
773
|
S.compare = function(e, t) {
|
|
774
|
-
if (!
|
|
774
|
+
if (!Ue(e) || !Ue(t))
|
|
775
775
|
throw new TypeError("Arguments must be Buffers");
|
|
776
776
|
if (e === t) return 0;
|
|
777
777
|
for (var r = e.length, i = t.length, s = 0, o = Math.min(r, i); s < o; ++s)
|
|
@@ -811,14 +811,14 @@ S.concat = function(e, t) {
|
|
|
811
811
|
var i = S.allocUnsafe(t), s = 0;
|
|
812
812
|
for (r = 0; r < e.length; ++r) {
|
|
813
813
|
var o = e[r];
|
|
814
|
-
if (!
|
|
814
|
+
if (!Ue(o))
|
|
815
815
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
816
816
|
o.copy(i, s), s += o.length;
|
|
817
817
|
}
|
|
818
818
|
return i;
|
|
819
819
|
};
|
|
820
820
|
function Zs(n, e) {
|
|
821
|
-
if (
|
|
821
|
+
if (Ue(n))
|
|
822
822
|
return n.length;
|
|
823
823
|
if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(n) || n instanceof ArrayBuffer))
|
|
824
824
|
return n.byteLength;
|
|
@@ -912,7 +912,7 @@ S.prototype.toString = function() {
|
|
|
912
912
|
return e === 0 ? "" : arguments.length === 0 ? Xs(this, 0, e) : bm.apply(this, arguments);
|
|
913
913
|
};
|
|
914
914
|
S.prototype.equals = function(e) {
|
|
915
|
-
if (!
|
|
915
|
+
if (!Ue(e)) throw new TypeError("Argument must be a Buffer");
|
|
916
916
|
return this === e ? !0 : S.compare(this, e) === 0;
|
|
917
917
|
};
|
|
918
918
|
S.prototype.inspect = function() {
|
|
@@ -920,7 +920,7 @@ S.prototype.inspect = function() {
|
|
|
920
920
|
return this.length > 0 && (e = this.toString("hex", 0, t).match(/.{2}/g).join(" "), this.length > t && (e += " ... ")), "<Buffer " + e + ">";
|
|
921
921
|
};
|
|
922
922
|
S.prototype.compare = function(e, t, r, i, s) {
|
|
923
|
-
if (!
|
|
923
|
+
if (!Ue(e))
|
|
924
924
|
throw new TypeError("Argument must be a Buffer");
|
|
925
925
|
if (t === void 0 && (t = 0), r === void 0 && (r = e ? e.length : 0), i === void 0 && (i = 0), s === void 0 && (s = this.length), t < 0 || r > e.length || i < 0 || s > this.length)
|
|
926
926
|
throw new RangeError("out of range index");
|
|
@@ -946,7 +946,7 @@ function Js(n, e, t, r, i) {
|
|
|
946
946
|
} else if (t < 0)
|
|
947
947
|
if (i) t = 0;
|
|
948
948
|
else return -1;
|
|
949
|
-
if (typeof e == "string" && (e = S.from(e, r)),
|
|
949
|
+
if (typeof e == "string" && (e = S.from(e, r)), Ue(e))
|
|
950
950
|
return e.length === 0 ? -1 : Ti(n, e, t, r, i);
|
|
951
951
|
if (typeof e == "number")
|
|
952
952
|
return e = e & 255, S.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(n, e, t) : Uint8Array.prototype.lastIndexOf.call(n, e, t) : Ti(n, [e], t, r, i);
|
|
@@ -1218,7 +1218,7 @@ S.prototype.readDoubleBE = function(e, t) {
|
|
|
1218
1218
|
return t || se(e, 8, this.length), Dn(this, e, !1, 52, 8);
|
|
1219
1219
|
};
|
|
1220
1220
|
function be(n, e, t, r, i, s) {
|
|
1221
|
-
if (!
|
|
1221
|
+
if (!Ue(n)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1222
1222
|
if (e > i || e < s) throw new RangeError('"value" argument is out of bounds');
|
|
1223
1223
|
if (t + r > n.length) throw new RangeError("Index out of range");
|
|
1224
1224
|
}
|
|
@@ -1367,7 +1367,7 @@ S.prototype.fill = function(e, t, r, i) {
|
|
|
1367
1367
|
for (o = t; o < r; ++o)
|
|
1368
1368
|
this[o] = e;
|
|
1369
1369
|
else {
|
|
1370
|
-
var u =
|
|
1370
|
+
var u = Ue(e) ? e : hn(new S(e, i).toString()), a = u.length;
|
|
1371
1371
|
for (o = 0; o < r - t; ++o)
|
|
1372
1372
|
this[o + t] = u[o % a];
|
|
1373
1373
|
}
|
|
@@ -1710,7 +1710,7 @@ var sr = [
|
|
|
1710
1710
|
return typeof n == "number";
|
|
1711
1711
|
}, Si = function(n) {
|
|
1712
1712
|
return typeof n == "string" && sr.includes(n);
|
|
1713
|
-
}, ke = Array.isArray,
|
|
1713
|
+
}, ke = Array.isArray, qe = function(n, e) {
|
|
1714
1714
|
e === void 0 && (e = n), arguments.length === 1 && (e = n, n = 0);
|
|
1715
1715
|
for (var t = [], r = n; r < e; r++)
|
|
1716
1716
|
t.push(r);
|
|
@@ -2759,9 +2759,9 @@ var sb = (
|
|
|
2759
2759
|
return ke(r) ? Ai(r) : r instanceof Date ? ar(r) : r;
|
|
2760
2760
|
}, n;
|
|
2761
2761
|
}()
|
|
2762
|
-
), ob = I(I(I(I(I(I(I(I(I(I(I(I(I([], V(1, 31), !0), V(2, 28), !0), V(3, 31), !0), V(4, 30), !0), V(5, 31), !0), V(6, 30), !0), V(7, 31), !0), V(8, 31), !0), V(9, 30), !0), V(10, 31), !0), V(11, 30), !0), V(12, 31), !0), V(1, 7)), ab = I(I(I(I(I(I(I(I(I(I(I(I(I([], V(1, 31), !0), V(2, 29), !0), V(3, 31), !0), V(4, 30), !0), V(5, 31), !0), V(6, 30), !0), V(7, 31), !0), V(8, 31), !0), V(9, 30), !0), V(10, 31), !0), V(11, 30), !0), V(12, 31), !0), V(1, 7)), ub =
|
|
2762
|
+
), ob = I(I(I(I(I(I(I(I(I(I(I(I(I([], V(1, 31), !0), V(2, 28), !0), V(3, 31), !0), V(4, 30), !0), V(5, 31), !0), V(6, 30), !0), V(7, 31), !0), V(8, 31), !0), V(9, 30), !0), V(10, 31), !0), V(11, 30), !0), V(12, 31), !0), V(1, 7)), ab = I(I(I(I(I(I(I(I(I(I(I(I(I([], V(1, 31), !0), V(2, 29), !0), V(3, 31), !0), V(4, 30), !0), V(5, 31), !0), V(6, 30), !0), V(7, 31), !0), V(8, 31), !0), V(9, 30), !0), V(10, 31), !0), V(11, 30), !0), V(12, 31), !0), V(1, 7)), ub = qe(1, 29), lb = qe(1, 30), Ke = qe(1, 31), ae = qe(1, 32), cb = I(I(I(I(I(I(I(I(I(I(I(I(I([], ae, !0), lb, !0), ae, !0), Ke, !0), ae, !0), Ke, !0), ae, !0), ae, !0), Ke, !0), ae, !0), Ke, !0), ae, !0), ae.slice(0, 7)), db = I(I(I(I(I(I(I(I(I(I(I(I(I([], ae, !0), ub, !0), ae, !0), Ke, !0), ae, !0), Ke, !0), ae, !0), ae, !0), Ke, !0), ae, !0), Ke, !0), ae, !0), ae.slice(0, 7)), fb = qe(-28, 0), hb = qe(-29, 0), Ze = qe(-30, 0), ue = qe(-31, 0), pb = I(I(I(I(I(I(I(I(I(I(I(I(I([], ue, !0), hb, !0), ue, !0), Ze, !0), ue, !0), Ze, !0), ue, !0), ue, !0), Ze, !0), ue, !0), Ze, !0), ue, !0), ue.slice(0, 7)), gb = I(I(I(I(I(I(I(I(I(I(I(I(I([], ue, !0), fb, !0), ue, !0), Ze, !0), ue, !0), Ze, !0), ue, !0), ue, !0), Ze, !0), ue, !0), Ze, !0), ue, !0), ue.slice(0, 7)), mb = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], bb = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], Ni = function() {
|
|
2763
2763
|
for (var n = [], e = 0; e < 55; e++)
|
|
2764
|
-
n = n.concat(
|
|
2764
|
+
n = n.concat(qe(7));
|
|
2765
2765
|
return n;
|
|
2766
2766
|
}();
|
|
2767
2767
|
function yb(n, e) {
|
|
@@ -2930,7 +2930,7 @@ var wb = (
|
|
|
2930
2930
|
enumerable: !1,
|
|
2931
2931
|
configurable: !0
|
|
2932
2932
|
}), n.prototype.ydayset = function() {
|
|
2933
|
-
return [
|
|
2933
|
+
return [qe(this.yearlen), 0, this.yearlen];
|
|
2934
2934
|
}, n.prototype.mdayset = function(e, t) {
|
|
2935
2935
|
for (var r = this.mrange[t - 1], i = this.mrange[t], s = V(null, this.yearlen), o = r; o < i; o++)
|
|
2936
2936
|
s[o] = o;
|
|
@@ -2997,7 +2997,7 @@ function Eb(n, e, t, r, i, s) {
|
|
|
2997
2997
|
function mo(n, e) {
|
|
2998
2998
|
var t = e.dtstart, r = e.freq, i = e.interval, s = e.until, o = e.bysetpos, u = e.count;
|
|
2999
2999
|
if (u === 0 || i === 0)
|
|
3000
|
-
return
|
|
3000
|
+
return je(n);
|
|
3001
3001
|
var a = Jm.fromDate(t), l = new wb(e);
|
|
3002
3002
|
l.rebuild(a.year, a.month);
|
|
3003
3003
|
for (var d = Sb(l, a, e); ; ) {
|
|
@@ -3006,11 +3006,11 @@ function mo(n, e) {
|
|
|
3006
3006
|
for (var g = Eb(o, d, h, m, l, c), C = 0; C < g.length; C++) {
|
|
3007
3007
|
var B = g[C];
|
|
3008
3008
|
if (s && B > s)
|
|
3009
|
-
return
|
|
3009
|
+
return je(n);
|
|
3010
3010
|
if (B >= t) {
|
|
3011
3011
|
var P = Pi(B, e);
|
|
3012
3012
|
if (!n.accept(P) || u && (--u, !u))
|
|
3013
|
-
return
|
|
3013
|
+
return je(n);
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
3016
|
else
|
|
@@ -3020,16 +3020,16 @@ function mo(n, e) {
|
|
|
3020
3020
|
for (var R = fo(l.yearordinal + D), L = 0; L < d.length; L++) {
|
|
3021
3021
|
var j = d[L], B = ho(R, j);
|
|
3022
3022
|
if (s && B > s)
|
|
3023
|
-
return
|
|
3023
|
+
return je(n);
|
|
3024
3024
|
if (B >= t) {
|
|
3025
3025
|
var P = Pi(B, e);
|
|
3026
3026
|
if (!n.accept(P) || u && (--u, !u))
|
|
3027
|
-
return
|
|
3027
|
+
return je(n);
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
3030
3030
|
}
|
|
3031
3031
|
if (e.interval === 0 || (a.add(e, b), a.year > uo))
|
|
3032
|
-
return
|
|
3032
|
+
return je(n);
|
|
3033
3033
|
Ur(r) || (d = l.gettimeset(r)(a.hour, a.minute, a.second, 0)), l.rebuild(a.year, a.month);
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
@@ -3040,7 +3040,7 @@ function Tb(n, e, t) {
|
|
|
3040
3040
|
function Pi(n, e) {
|
|
3041
3041
|
return new bn(n, e.tzid).rezonedDate();
|
|
3042
3042
|
}
|
|
3043
|
-
function
|
|
3043
|
+
function je(n) {
|
|
3044
3044
|
return n.getValue();
|
|
3045
3045
|
}
|
|
3046
3046
|
function $b(n, e, t, r, i) {
|
|
@@ -6544,11 +6544,11 @@ var T;
|
|
|
6544
6544
|
(function(n) {
|
|
6545
6545
|
n[n.Text = 1] = "Text", n[n.BeforeTagName = 2] = "BeforeTagName", n[n.InTagName = 3] = "InTagName", n[n.InSelfClosingTag = 4] = "InSelfClosingTag", n[n.BeforeClosingTagName = 5] = "BeforeClosingTagName", n[n.InClosingTagName = 6] = "InClosingTagName", n[n.AfterClosingTagName = 7] = "AfterClosingTagName", n[n.BeforeAttributeName = 8] = "BeforeAttributeName", n[n.InAttributeName = 9] = "InAttributeName", n[n.AfterAttributeName = 10] = "AfterAttributeName", n[n.BeforeAttributeValue = 11] = "BeforeAttributeValue", n[n.InAttributeValueDq = 12] = "InAttributeValueDq", n[n.InAttributeValueSq = 13] = "InAttributeValueSq", n[n.InAttributeValueNq = 14] = "InAttributeValueNq", n[n.BeforeDeclaration = 15] = "BeforeDeclaration", n[n.InDeclaration = 16] = "InDeclaration", n[n.InProcessingInstruction = 17] = "InProcessingInstruction", n[n.BeforeComment = 18] = "BeforeComment", n[n.CDATASequence = 19] = "CDATASequence", n[n.InSpecialComment = 20] = "InSpecialComment", n[n.InCommentLike = 21] = "InCommentLike", n[n.BeforeSpecialS = 22] = "BeforeSpecialS", n[n.SpecialStartSequence = 23] = "SpecialStartSequence", n[n.InSpecialTag = 24] = "InSpecialTag", n[n.BeforeEntity = 25] = "BeforeEntity", n[n.BeforeNumericEntity = 26] = "BeforeNumericEntity", n[n.InNamedEntity = 27] = "InNamedEntity", n[n.InNumericEntity = 28] = "InNumericEntity", n[n.InHexEntity = 29] = "InHexEntity";
|
|
6546
6546
|
})(T || (T = {}));
|
|
6547
|
-
function
|
|
6547
|
+
function He(n) {
|
|
6548
6548
|
return n === O.Space || n === O.NewLine || n === O.Tab || n === O.FormFeed || n === O.CarriageReturn;
|
|
6549
6549
|
}
|
|
6550
6550
|
function Gt(n) {
|
|
6551
|
-
return n === O.Slash || n === O.Gt ||
|
|
6551
|
+
return n === O.Slash || n === O.Gt || He(n);
|
|
6552
6552
|
}
|
|
6553
6553
|
function Xi(n) {
|
|
6554
6554
|
return n >= O.Zero && n <= O.Nine;
|
|
@@ -6625,7 +6625,7 @@ class eg {
|
|
|
6625
6625
|
/** Look for an end tag. For <title> tags, also decode entities. */
|
|
6626
6626
|
stateInSpecialTag(e) {
|
|
6627
6627
|
if (this.sequenceIndex === this.currentSequence.length) {
|
|
6628
|
-
if (e === O.Gt ||
|
|
6628
|
+
if (e === O.Gt || He(e)) {
|
|
6629
6629
|
const t = this.index - this.currentSequence.length;
|
|
6630
6630
|
if (this.sectionStart < t) {
|
|
6631
6631
|
const r = this.index;
|
|
@@ -6690,28 +6690,28 @@ class eg {
|
|
|
6690
6690
|
Gt(e) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = T.BeforeAttributeName, this.stateBeforeAttributeName(e));
|
|
6691
6691
|
}
|
|
6692
6692
|
stateBeforeClosingTagName(e) {
|
|
6693
|
-
|
|
6693
|
+
He(e) || (e === O.Gt ? this.state = T.Text : (this.state = this.isTagStartChar(e) ? T.InClosingTagName : T.InSpecialComment, this.sectionStart = this.index));
|
|
6694
6694
|
}
|
|
6695
6695
|
stateInClosingTagName(e) {
|
|
6696
|
-
(e === O.Gt ||
|
|
6696
|
+
(e === O.Gt || He(e)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = T.AfterClosingTagName, this.stateAfterClosingTagName(e));
|
|
6697
6697
|
}
|
|
6698
6698
|
stateAfterClosingTagName(e) {
|
|
6699
6699
|
(e === O.Gt || this.fastForwardTo(O.Gt)) && (this.state = T.Text, this.baseState = T.Text, this.sectionStart = this.index + 1);
|
|
6700
6700
|
}
|
|
6701
6701
|
stateBeforeAttributeName(e) {
|
|
6702
|
-
e === O.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = T.InSpecialTag, this.sequenceIndex = 0) : this.state = T.Text, this.baseState = this.state, this.sectionStart = this.index + 1) : e === O.Slash ? this.state = T.InSelfClosingTag :
|
|
6702
|
+
e === O.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = T.InSpecialTag, this.sequenceIndex = 0) : this.state = T.Text, this.baseState = this.state, this.sectionStart = this.index + 1) : e === O.Slash ? this.state = T.InSelfClosingTag : He(e) || (this.state = T.InAttributeName, this.sectionStart = this.index);
|
|
6703
6703
|
}
|
|
6704
6704
|
stateInSelfClosingTag(e) {
|
|
6705
|
-
e === O.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = T.Text, this.baseState = T.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) :
|
|
6705
|
+
e === O.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = T.Text, this.baseState = T.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : He(e) || (this.state = T.BeforeAttributeName, this.stateBeforeAttributeName(e));
|
|
6706
6706
|
}
|
|
6707
6707
|
stateInAttributeName(e) {
|
|
6708
6708
|
(e === O.Eq || Gt(e)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = -1, this.state = T.AfterAttributeName, this.stateAfterAttributeName(e));
|
|
6709
6709
|
}
|
|
6710
6710
|
stateAfterAttributeName(e) {
|
|
6711
|
-
e === O.Eq ? this.state = T.BeforeAttributeValue : e === O.Slash || e === O.Gt ? (this.cbs.onattribend(Le.NoValue, this.index), this.state = T.BeforeAttributeName, this.stateBeforeAttributeName(e)) :
|
|
6711
|
+
e === O.Eq ? this.state = T.BeforeAttributeValue : e === O.Slash || e === O.Gt ? (this.cbs.onattribend(Le.NoValue, this.index), this.state = T.BeforeAttributeName, this.stateBeforeAttributeName(e)) : He(e) || (this.cbs.onattribend(Le.NoValue, this.index), this.state = T.InAttributeName, this.sectionStart = this.index);
|
|
6712
6712
|
}
|
|
6713
6713
|
stateBeforeAttributeValue(e) {
|
|
6714
|
-
e === O.DoubleQuote ? (this.state = T.InAttributeValueDq, this.sectionStart = this.index + 1) : e === O.SingleQuote ? (this.state = T.InAttributeValueSq, this.sectionStart = this.index + 1) :
|
|
6714
|
+
e === O.DoubleQuote ? (this.state = T.InAttributeValueDq, this.sectionStart = this.index + 1) : e === O.SingleQuote ? (this.state = T.InAttributeValueSq, this.sectionStart = this.index + 1) : He(e) || (this.sectionStart = this.index, this.state = T.InAttributeValueNq, this.stateInAttributeValueNoQuotes(e));
|
|
6715
6715
|
}
|
|
6716
6716
|
handleInAttributeValue(e, t) {
|
|
6717
6717
|
e === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === O.DoubleQuote ? Le.Double : Le.Single, this.index), this.state = T.BeforeAttributeName) : this.decodeEntities && e === O.Amp && (this.baseState = this.state, this.state = T.BeforeEntity);
|
|
@@ -6723,7 +6723,7 @@ class eg {
|
|
|
6723
6723
|
this.handleInAttributeValue(e, O.SingleQuote);
|
|
6724
6724
|
}
|
|
6725
6725
|
stateInAttributeValueNoQuotes(e) {
|
|
6726
|
-
|
|
6726
|
+
He(e) || e === O.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(Le.Unquoted, this.index), this.state = T.BeforeAttributeName, this.stateBeforeAttributeName(e)) : this.decodeEntities && e === O.Amp && (this.baseState = this.state, this.state = T.BeforeEntity);
|
|
6727
6727
|
}
|
|
6728
6728
|
stateBeforeDeclaration(e) {
|
|
6729
6729
|
e === O.OpeningSquareBracket ? (this.state = T.CDATASequence, this.sequenceIndex = 0) : this.state = e === O.Dash ? T.BeforeComment : T.InDeclaration;
|
|
@@ -10516,7 +10516,7 @@ function Tt(n, e) {
|
|
|
10516
10516
|
e(n[t], t);
|
|
10517
10517
|
});
|
|
10518
10518
|
}
|
|
10519
|
-
function
|
|
10519
|
+
function ze(n, e) {
|
|
10520
10520
|
return {}.hasOwnProperty.call(n, e);
|
|
10521
10521
|
}
|
|
10522
10522
|
function As(n, e) {
|
|
@@ -10527,7 +10527,7 @@ function As(n, e) {
|
|
|
10527
10527
|
}
|
|
10528
10528
|
function N6(n) {
|
|
10529
10529
|
for (const e in n)
|
|
10530
|
-
if (
|
|
10530
|
+
if (ze(n, e))
|
|
10531
10531
|
return !1;
|
|
10532
10532
|
return !0;
|
|
10533
10533
|
}
|
|
@@ -10586,7 +10586,7 @@ and ensure you are accounting for this risk.
|
|
|
10586
10586
|
}));
|
|
10587
10587
|
const d = {}, f = {}, c = {};
|
|
10588
10588
|
Tt(e.allowedClasses, function(p, v) {
|
|
10589
|
-
if (a && (
|
|
10589
|
+
if (a && (ze(a, v) || (a[v] = []), a[v].push("class")), d[v] = p, Array.isArray(p)) {
|
|
10590
10590
|
const y = [];
|
|
10591
10591
|
d[v] = [], c[v] = [], p.forEach(function($) {
|
|
10592
10592
|
typeof $ == "string" && $.indexOf("*") >= 0 ? y.push(Cs($).replace(/\\\*/g, ".*")) : $ instanceof RegExp ? c[v].push($) : d[v].push($);
|
|
@@ -10612,12 +10612,12 @@ and ensure you are accounting for this risk.
|
|
|
10612
10612
|
let $ = !1;
|
|
10613
10613
|
const M = !!y.text;
|
|
10614
10614
|
let N;
|
|
10615
|
-
if (
|
|
10615
|
+
if (ze(h, p) && (N = h[p](p, v), y.attribs = v = N.attribs, N.text !== void 0 && (y.innerText = N.text), p !== N.tagName && (y.name = p = N.tagName, B[b] = N.tagName)), m && (N = m(p, v), y.attribs = v = N.attribs, p !== N.tagName && (y.name = p = N.tagName, B[b] = N.tagName)), (!o(p) || e.disallowedTagsMode === "recursiveEscape" && !N6(C) || e.nestingLimit != null && b >= e.nestingLimit) && ($ = !0, C[b] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && u.indexOf(p) !== -1 && (P = !0, D = 1), C[b] = !0), b++, $) {
|
|
10616
10616
|
if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard")
|
|
10617
10617
|
return;
|
|
10618
10618
|
i = r, r = "";
|
|
10619
10619
|
}
|
|
10620
|
-
r += "<" + p, p === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (y.innerText = ""), (!a ||
|
|
10620
|
+
r += "<" + p, p === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (y.innerText = ""), (!a || ze(a, p) || a["*"]) && Tt(v, function(U, F) {
|
|
10621
10621
|
if (!_6.test(F)) {
|
|
10622
10622
|
delete y.attribs[F];
|
|
10623
10623
|
return;
|
|
@@ -10627,7 +10627,7 @@ and ensure you are accounting for this risk.
|
|
|
10627
10627
|
return;
|
|
10628
10628
|
}
|
|
10629
10629
|
let te = !1;
|
|
10630
|
-
if (!a ||
|
|
10630
|
+
if (!a || ze(a, p) && a[p].indexOf(F) !== -1 || a["*"] && a["*"].indexOf(F) !== -1 || ze(l, p) && l[p].test(F) || l["*"] && l["*"].test(F))
|
|
10631
10631
|
te = !0;
|
|
10632
10632
|
else if (a && a[p]) {
|
|
10633
10633
|
for (const G of a[p])
|
|
@@ -10672,7 +10672,7 @@ and ensure you are accounting for this risk.
|
|
|
10672
10672
|
try {
|
|
10673
10673
|
const z = _(U);
|
|
10674
10674
|
if (z.isRelativeUrl)
|
|
10675
|
-
G =
|
|
10675
|
+
G = ze(e, "allowIframeRelativeUrls") ? e.allowIframeRelativeUrls : !e.allowedIframeHostnames && !e.allowedIframeDomains;
|
|
10676
10676
|
else if (e.allowedIframeHostnames || e.allowedIframeDomains) {
|
|
10677
10677
|
const ye = (e.allowedIframeHostnames || []).find(function(re) {
|
|
10678
10678
|
return re === z.url.hostname;
|
|
@@ -10814,7 +10814,7 @@ and ensure you are accounting for this risk.
|
|
|
10814
10814
|
if (!y)
|
|
10815
10815
|
return v.match(/^[/\\]{2}/) ? !e.allowProtocolRelative : !1;
|
|
10816
10816
|
const $ = y[1].toLowerCase();
|
|
10817
|
-
return
|
|
10817
|
+
return ze(e.allowedSchemesByTag, p) ? e.allowedSchemesByTag[p].indexOf($) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf($) === -1;
|
|
10818
10818
|
}
|
|
10819
10819
|
function _(p) {
|
|
10820
10820
|
if (p = p.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), p.startsWith("relative:"))
|
|
@@ -10847,7 +10847,7 @@ and ensure you are accounting for this risk.
|
|
|
10847
10847
|
}
|
|
10848
10848
|
function w(p) {
|
|
10849
10849
|
return function(v, y) {
|
|
10850
|
-
return
|
|
10850
|
+
return ze(p, y.prop) && p[y.prop].some(function(M) {
|
|
10851
10851
|
return M.test(y.value);
|
|
10852
10852
|
}) && v.push(y), v;
|
|
10853
10853
|
};
|
|
@@ -11318,7 +11318,7 @@ const j6 = {
|
|
|
11318
11318
|
function ht(n) {
|
|
11319
11319
|
return Ir(n, j6);
|
|
11320
11320
|
}
|
|
11321
|
-
function
|
|
11321
|
+
function Fe(...n) {
|
|
11322
11322
|
window && window.localStorage && window.localStorage.getItem("debug") && (console.group(...n), console.trace(), console.groupEnd());
|
|
11323
11323
|
}
|
|
11324
11324
|
function nn(...n) {
|
|
@@ -11341,7 +11341,7 @@ function z6(n, e, t = "unregisterComponent") {
|
|
|
11341
11341
|
function Y6(n) {
|
|
11342
11342
|
return (e, t) => {
|
|
11343
11343
|
const r = n.name;
|
|
11344
|
-
|
|
11344
|
+
Fe(`[${r}] Registering component ${r} being called on ${t}`);
|
|
11345
11345
|
const i = e.componentWillLoad;
|
|
11346
11346
|
if (!i) {
|
|
11347
11347
|
nn(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);
|
|
@@ -11369,7 +11369,7 @@ function Y6(n) {
|
|
|
11369
11369
|
var l;
|
|
11370
11370
|
u.set(a, (l = n.eventToProps) == null ? void 0 : l[a]);
|
|
11371
11371
|
}), e.connectedCallback = function() {
|
|
11372
|
-
|
|
11372
|
+
Fe(`[~${r}] connectedCallback called`);
|
|
11373
11373
|
const a = s == null ? void 0 : s.call(this), l = sn(this);
|
|
11374
11374
|
return l.dataset.nylasId || (Object.defineProperty(l, "registerNylasComponent", {
|
|
11375
11375
|
get() {
|
|
@@ -11418,14 +11418,14 @@ function Y6(n) {
|
|
|
11418
11418
|
...n,
|
|
11419
11419
|
eventToProps: u
|
|
11420
11420
|
}, f = H6(e, d, n.registrationEventName);
|
|
11421
|
-
return l.dispatchEvent(f) &&
|
|
11421
|
+
return l.dispatchEvent(f) && Fe(`[${r}] Component ${r} successfully fired registration event`), a;
|
|
11422
11422
|
}, e.disconnectedCallback = function() {
|
|
11423
11423
|
const a = o == null ? void 0 : o.call(this), l = sn(this), d = {
|
|
11424
11424
|
element: l,
|
|
11425
11425
|
...n,
|
|
11426
11426
|
eventToProps: u
|
|
11427
11427
|
}, f = z6(e, d, n.unregistrationEventName);
|
|
11428
|
-
return l.dispatchEvent(f) &&
|
|
11428
|
+
return l.dispatchEvent(f) && Fe(`[${r}] Component ${r} successfully fired unregistration event`), a;
|
|
11429
11429
|
});
|
|
11430
11430
|
};
|
|
11431
11431
|
}
|
|
@@ -12075,7 +12075,7 @@ function Ux() {
|
|
|
12075
12075
|
}
|
|
12076
12076
|
});
|
|
12077
12077
|
}
|
|
12078
|
-
const qx =
|
|
12078
|
+
const qx = ":host{display:block;height:100%}.nylas-booking-form{width:100%;padding:1.5rem;box-sizing:border-box;height:450px;overflow-y:auto;height:100%}form{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center}sp-textfield{--spectrum-corner-radius-100:var(--nylas-border-radius-2x);--spectrum-textfield-border-color:var(--nylas-base-300);position:relative;width:100%;height:48px;margin-bottom:16px;color:var(--nylas-base-500)}.cta{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;align-items:flex-start;justify-content:space-between;gap:0.5rem;padding:14px;box-sizing:border-box;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.cta{grid-template-columns:1fr}}.input-wrapper{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:1rem}.input-wrapper input::placeholder{color:var(--nylas-base-300)}.input-wrapper label,.input-wrapper input{font-family:var(--nylas-font-family);font-size:16px}.input-wrapper .help-text{margin:0;color:var(--nylas-error)}.button-wrapper{width:100%;align-items:flex-start;height:max-content;position:relative}.button-content{display:flex;gap:4px;align-items:center}sp-infield-button{--spectrum-infield-button-background-color:transparent;--spectrum-infield-button-background-color-hover:transparent;--spectrum-infield-button-background-color-active:transparent;--spectrum-infield-button-border-color:transparent;--spectrum-infield-button-border-width:1px;--spectrum-infield-button-border-radius:0;color:var(--nylas-base-600);background:transparent;border:none;outline:1px solid var(--nylas-base-300);border-radius:0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x) 0;height:52px;width:52px;display:flex;position:absolute;right:0;align-items:center;justify-content:center;cursor:pointer}sp-infield-button sp-icon-cross300{color:var(--nylas-base-600)}sp-infield-button.error{border-width:2px;border-color:var(--nylas-error)}input[type=text],input[type=email]{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%}input[type=text]:focus,input[type=email]:focus{outline-color:var(--nylas-primary)}input[type=text].error,input[type=email].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=text].error::placeholder,input[type=email].error::placeholder{font-weight:400}input[type=text]::placeholder,input[type=email]::placeholder{color:var(--nylas-base-300)}input[type=text].guest-email,input[type=email].guest-email{color:var(--nylas-base-900);padding-right:52px}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}button-component.remove-guest{position:absolute;height:51px;right:0}button-component.remove-guest.error button{border-color:var(--nylas-error)}button-component.remove-guest button{height:inherit;border-top-left-radius:initial;border-bottom-left-radius:initial;border:none !important;border-left:1px solid var(--nylas-base-300) !important}button-component.remove-guest button:hover,button-component.remove-guest button:focus{outline:1px solid var(--nylas-primary) !important;color:var(--nylas-primary)}button-component.back button{--dot-color:var(--nylas-base-800)}.guest-email-input{position:relative;display:flex;width:100%}", jx = qx;
|
|
12079
12079
|
var Hx = function(n, e, t, r) {
|
|
12080
12080
|
var i = arguments.length, s = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, o;
|
|
12081
12081
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -12116,7 +12116,7 @@ const rn = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
12116
12116
|
var u, a, l, d, f, c, h, m, b;
|
|
12117
12117
|
if (e.preventDefault(), this.bookingFormSubmitted.emit().defaultPrevented)
|
|
12118
12118
|
return;
|
|
12119
|
-
|
|
12119
|
+
Fe("nylas-booking-form", "bookButtonClickedHandler", this.bookingInfo);
|
|
12120
12120
|
const r = this.name || ((a = (u = this.bookingInfo) == null ? void 0 : u.primaryParticipant) == null ? void 0 : a.name), i = this.email || ((d = (l = this.bookingInfo) == null ? void 0 : l.primaryParticipant) == null ? void 0 : d.email);
|
|
12121
12121
|
if (!r || r === "") {
|
|
12122
12122
|
this.isNameValid = !1, this.validationError.name = Y.t("fieldRequired", { field: Y.t("name") }) || "Name is required", this.bookingFormError.emit({
|
|
@@ -12170,19 +12170,27 @@ const rn = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
12170
12170
|
});
|
|
12171
12171
|
}, this.updateAdditionalFields = (e, t) => {
|
|
12172
12172
|
this.additionalFields && (this.additionalFields[e] = t);
|
|
12173
|
-
}, this.isLoading = void 0, this.bookingInfo = void 0, this.eventInfo = void 0, this.configSettings = void 0, this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.validationError = { name: "", email: "" }, this.backButtonLoading = !1;
|
|
12173
|
+
}, this.isLoading = void 0, this.bookingInfo = void 0, this.eventInfo = void 0, this.configSettings = void 0, this.themeConfig = void 0, this.name = "", this.email = "", this.guestEmails = [], this.guestEmailErrors = {}, this.isNameValid = !0, this.isEmailValid = !0, this.additionalFields = {}, this.validationError = { name: "", email: "" }, this.backButtonLoading = !1;
|
|
12174
12174
|
}
|
|
12175
12175
|
connectedCallback() {
|
|
12176
12176
|
}
|
|
12177
12177
|
disconnectedCallback() {
|
|
12178
12178
|
}
|
|
12179
12179
|
componentWillLoad() {
|
|
12180
|
+
Fe("nylas-booking-form", "componentWillLoad", this.bookingInfo);
|
|
12181
|
+
}
|
|
12182
|
+
componentDidLoad() {
|
|
12180
12183
|
var e, t, r;
|
|
12181
|
-
|
|
12184
|
+
Fe("nylas-booking-form", "componentDidLoad", this.bookingInfo), this.bookingInfo && ((e = this.bookingInfo) != null && e.primaryParticipant) && (this.name = (t = this.bookingInfo.primaryParticipant) == null ? void 0 : t.name, this.email = (r = this.bookingInfo.primaryParticipant) == null ? void 0 : r.email), this.applyThemeConfig(this.themeConfig);
|
|
12182
12185
|
}
|
|
12183
12186
|
bookingInfoChangedHandler(e) {
|
|
12184
12187
|
e && e.primaryParticipant && (this.name = e.primaryParticipant.name, this.email = e.primaryParticipant.email);
|
|
12185
12188
|
}
|
|
12189
|
+
applyThemeConfig(e) {
|
|
12190
|
+
if (e)
|
|
12191
|
+
for (const [t, r] of Object.entries(e))
|
|
12192
|
+
this.host.style.setProperty(`${t}`, r);
|
|
12193
|
+
}
|
|
12186
12194
|
changeName(e) {
|
|
12187
12195
|
this.isNameValid = !0, this.validationError.name = "", this.name = ht(e), this.nameChanged.emit(e);
|
|
12188
12196
|
}
|
|
@@ -12237,7 +12245,7 @@ const rn = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
12237
12245
|
}
|
|
12238
12246
|
render() {
|
|
12239
12247
|
var e, t, r, i, s, o, u, a, l;
|
|
12240
|
-
return E(Ds, { key: "
|
|
12248
|
+
return E(Ds, { key: "9a442ac154e4e8ab9d8e8ec08b2005bb9bda476c" }, E("form", { key: "63feaa1eb0688e4019e1af96d48a3e71cafe2d3a", onSubmit: (d) => this.bookButtonClickedHandler(d), noValidate: !0 }, E("div", { key: "95f92c677613fcddd743467c30e6b097a575fa40", class: "nylas-booking-form", part: "nbf" }, E("div", { key: "b37fc60cddc9172fbb65edaf45e77c3d999f6aa4", class: "input-wrapper", part: "nbf__input-wrapper" }, E("input-component", { key: "5545f58ce4fc92b0ab185087dfbeb5de6a25aca0", label: Y.t("name"), name: "name", id: "name", defaultValue: ((t = (e = this.bookingInfo) == null ? void 0 : e.primaryParticipant) == null ? void 0 : t.name) || this.name, placeholder: Y.t("namePlaceholder"), type: "text", required: !0, requiredError: Y.t("fieldRequired", { field: Y.t("name") }), patternError: Y.t("invalidInputFormat", { field: Y.t("name") }), part: "nbf__input-textfield" })), E("div", { key: "6ddd5a68d0966e1fa79998d757a47b2df8c2b6e6", class: "input-wrapper", part: "nbf__input-wrapper" }, E("input-component", { key: "20a13472d671c968a2f20c79992a04aca4b50f54", label: Y.t("email"), name: "email", id: "email", pattern: rn, defaultValue: ((i = (r = this.bookingInfo) == null ? void 0 : r.primaryParticipant) == null ? void 0 : i.email) || this.email, placeholder: Y.t("emailPlaceholder"), type: "email", required: !0, requiredError: Y.t("fieldRequired", { field: Y.t("email") }), patternError: Y.t("invalidInputFormat", { field: Y.t("email") }), part: "nbf__input-textfield" })), ((o = (s = this.configSettings) == null ? void 0 : s.scheduler) == null ? void 0 : o.hide_additional_guests) !== !0 && E("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, this.guestEmails.map((d, f) => E("div", { class: "input-wrapper button-wrapper" }, E("label", { class: {
|
|
12241
12249
|
error: !!this.guestEmailErrors[f]
|
|
12242
12250
|
} }, Y.t("guestEmail")), E("div", { class: "guest-email-input" }, E("input", { type: "email", id: `guest-email-${f}`, maxLength: 100, class: {
|
|
12243
12251
|
"guest-email": !0,
|
|
@@ -12266,7 +12274,7 @@ const rn = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
12266
12274
|
default:
|
|
12267
12275
|
return E("div", { class: "input-wrapper", part: "nbf__input-wrapper" }, E("input-component", { label: c, name: h, id: h, type: f.type, defaultValue: m || "", requiredError: Y.t("fieldRequired", { field: c }), required: f.required, part: "nbf__input-textfield" }));
|
|
12268
12276
|
}
|
|
12269
|
-
})), E("div", { key: "
|
|
12277
|
+
})), E("div", { key: "9229b464ad25565982e59b7d01fe5f2204e1d10e", class: "cta" }, E("button-component", { key: "877d574a7a39f960c5cddff0f84d3d0454bfc96c", variant: "basic", class: "back", part: "nbf__button-outline", isLoading: this.backButtonLoading && this.isLoading, onClick: this.handleBackButtonClicked }, E("slot", { key: "9436fe8276b9da6baa608695b1d0dceb03c865ae", name: "booking-form-back-label" }, `${Y.t("backButton")}`)), E("button-component", { key: "48814874005b24b2f21a8cdbd863194a563f171f", variant: "primary", isLoading: !this.backButtonLoading && this.isLoading, disabled: this.isLoading, part: "nbf__button-primary", type: "submit" }, E("slot", { key: "975aba7f10d24850113f7fcfe1e11abbb15ac401", name: "booking-form-book-label" }, `${Y.t("bookNowButton")}`)))));
|
|
12270
12278
|
}
|
|
12271
12279
|
get host() {
|
|
12272
12280
|
return this;
|
|
@@ -12284,6 +12292,7 @@ const rn = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a
|
|
|
12284
12292
|
bookingInfo: [16],
|
|
12285
12293
|
eventInfo: [16],
|
|
12286
12294
|
configSettings: [16],
|
|
12295
|
+
themeConfig: [8, "theme-config"],
|
|
12287
12296
|
name: [32],
|
|
12288
12297
|
email: [32],
|
|
12289
12298
|
guestEmails: [32],
|
|
@@ -12316,15 +12325,16 @@ Hx([
|
|
|
12316
12325
|
e.scheduler.setParticipantEmail(n.detail);
|
|
12317
12326
|
},
|
|
12318
12327
|
detailsConfirmed: async (n, e) => {
|
|
12319
|
-
|
|
12328
|
+
Fe("nylas-booking-form", "detailsConfirmed", n.detail);
|
|
12320
12329
|
},
|
|
12321
12330
|
bookingFormSubmitted: async (n, e) => {
|
|
12322
|
-
|
|
12331
|
+
Fe("nylas-booking-form", "bookingFormSubmitted", n.detail);
|
|
12323
12332
|
},
|
|
12324
12333
|
bookingFormError: async (n, e) => {
|
|
12325
|
-
|
|
12334
|
+
Fe("nylas-booking-form", "bookingFormError", n.detail);
|
|
12326
12335
|
}
|
|
12327
12336
|
},
|
|
12337
|
+
localPropsToProp: /* @__PURE__ */ new Map([["themeConfig", "themeConfig"]]),
|
|
12328
12338
|
fireRegisterEvent: !0
|
|
12329
12339
|
}),
|
|
12330
12340
|
Xn("design:type", Function),
|