@oslokommune/punkt-react 12.5.0 → 12.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/punkt-react.es.js +338 -327
- package/dist/punkt-react.umd.js +69 -65
- package/package.json +4 -4
package/dist/punkt-react.es.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
var Um = Object.defineProperty;
|
|
37
37
|
var Wm = (e, t, n) => t in e ? Um(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
38
|
-
var
|
|
38
|
+
var ar = (e, t, n) => Wm(e, typeof t != "symbol" ? t + "" : t, n);
|
|
39
39
|
import * as zm from "react";
|
|
40
40
|
import Ce, { forwardRef as je, useState as tt, Fragment as fo, isValidElement as na, useRef as ga, useEffect as fi, cloneElement as Vm } from "react";
|
|
41
41
|
import { Link as su } from "react-router-dom";
|
|
@@ -212,7 +212,7 @@ function Km() {
|
|
|
212
212
|
q++;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Ee() {
|
|
216
216
|
{
|
|
217
217
|
if (q--, q === 0) {
|
|
218
218
|
var w = {
|
|
@@ -332,7 +332,7 @@ function Km() {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
} finally {
|
|
335
|
-
xt = !1, Ne.current = me,
|
|
335
|
+
xt = !1, Ne.current = me, Ee(), Error.prepareStackTrace = ve;
|
|
336
336
|
}
|
|
337
337
|
var He = w ? w.displayName || w.name : "", Xe = He ? dt(He) : "";
|
|
338
338
|
return typeof w == "function" && Dt.set(w, Xe), Xe;
|
|
@@ -373,13 +373,13 @@ function Km() {
|
|
|
373
373
|
}
|
|
374
374
|
return "";
|
|
375
375
|
}
|
|
376
|
-
var ke = Object.prototype.hasOwnProperty, Pe = {},
|
|
377
|
-
function
|
|
376
|
+
var ke = Object.prototype.hasOwnProperty, Pe = {}, _e = T.ReactDebugCurrentFrame;
|
|
377
|
+
function Jn(w) {
|
|
378
378
|
if (w) {
|
|
379
379
|
var M = w._owner, H = Pt(w.type, w._source, M ? M.type : null);
|
|
380
|
-
|
|
380
|
+
_e.setExtraStackFrame(H);
|
|
381
381
|
} else
|
|
382
|
-
|
|
382
|
+
_e.setExtraStackFrame(null);
|
|
383
383
|
}
|
|
384
384
|
function cn(w, M, H, Z, ve) {
|
|
385
385
|
{
|
|
@@ -396,7 +396,7 @@ function Km() {
|
|
|
396
396
|
} catch (Te) {
|
|
397
397
|
ae = Te;
|
|
398
398
|
}
|
|
399
|
-
ae && !(ae instanceof Error) && (
|
|
399
|
+
ae && !(ae instanceof Error) && (Jn(ve), F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Z || "React class", H, pe, typeof ae), Jn(null)), ae instanceof Error && !(ae.message in Pe) && (Pe[ae.message] = !0, Jn(ve), F("Failed %s type: %s", H, ae.message), Jn(null));
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
}
|
|
@@ -683,8 +683,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
683
683
|
function Xi(w, M, H) {
|
|
684
684
|
return Na(w, M, H, !1);
|
|
685
685
|
}
|
|
686
|
-
var Qi = Xi,
|
|
687
|
-
zr.Fragment = r, zr.jsx = Qi, zr.jsxs =
|
|
686
|
+
var Qi = Xi, Xn = ja;
|
|
687
|
+
zr.Fragment = r, zr.jsx = Qi, zr.jsxs = Xn;
|
|
688
688
|
}()), zr;
|
|
689
689
|
}
|
|
690
690
|
process.env.NODE_ENV === "production" ? Ws.exports = Ym() : Ws.exports = Km();
|
|
@@ -772,7 +772,7 @@ const Qm = (e) => new Xm(typeof e == "string" ? e : e + "", void 0, Rc), Zm = (e
|
|
|
772
772
|
* Copyright 2017 Google LLC
|
|
773
773
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
774
774
|
*/
|
|
775
|
-
const { is: eg, defineProperty: tg, getOwnPropertyDescriptor: ng, getOwnPropertyNames: rg, getOwnPropertySymbols: ag, getPrototypeOf: ig } = Object,
|
|
775
|
+
const { is: eg, defineProperty: tg, getOwnPropertyDescriptor: ng, getOwnPropertyNames: rg, getOwnPropertySymbols: ag, getPrototypeOf: ig } = Object, gr = globalThis, hu = gr.trustedTypes, sg = hu ? hu.emptyScript : "", fu = gr.reactiveElementPolyfillSupport, ra = (e, t) => e, mi = { toAttribute(e, t) {
|
|
776
776
|
switch (t) {
|
|
777
777
|
case Boolean:
|
|
778
778
|
e = e ? sg : null;
|
|
@@ -801,8 +801,8 @@ const { is: eg, defineProperty: tg, getOwnPropertyDescriptor: ng, getOwnProperty
|
|
|
801
801
|
}
|
|
802
802
|
return n;
|
|
803
803
|
} }, go = (e, t) => !eg(e, t), mu = { attribute: !0, type: String, converter: mi, reflect: !1, hasChanged: go };
|
|
804
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
805
|
-
let
|
|
804
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), gr.litPropertyMetadata ?? (gr.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
805
|
+
let ur = class extends HTMLElement {
|
|
806
806
|
static addInitializer(t) {
|
|
807
807
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
808
808
|
}
|
|
@@ -1000,7 +1000,7 @@ let lr = class extends HTMLElement {
|
|
|
1000
1000
|
firstUpdated(t) {
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
|
-
|
|
1003
|
+
ur.elementStyles = [], ur.shadowRootOptions = { mode: "open" }, ur[ra("elementProperties")] = /* @__PURE__ */ new Map(), ur[ra("finalized")] = /* @__PURE__ */ new Map(), fu == null || fu({ ReactiveElement: ur }), (gr.reactiveElementVersions ?? (gr.reactiveElementVersions = [])).push("2.0.4");
|
|
1004
1004
|
/**
|
|
1005
1005
|
* @license
|
|
1006
1006
|
* Copyright 2017 Google LLC
|
|
@@ -1236,7 +1236,7 @@ const cg = (e, t, n) => {
|
|
|
1236
1236
|
* Copyright 2017 Google LLC
|
|
1237
1237
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1238
1238
|
*/
|
|
1239
|
-
let aa = class extends
|
|
1239
|
+
let aa = class extends ur {
|
|
1240
1240
|
constructor() {
|
|
1241
1241
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1242
1242
|
}
|
|
@@ -1303,7 +1303,7 @@ function O(e) {
|
|
|
1303
1303
|
* Copyright 2017 Google LLC
|
|
1304
1304
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1305
1305
|
*/
|
|
1306
|
-
function
|
|
1306
|
+
function Un(e) {
|
|
1307
1307
|
return O({ ...e, state: !0, attribute: !1 });
|
|
1308
1308
|
}
|
|
1309
1309
|
var Ze = [];
|
|
@@ -1567,7 +1567,7 @@ Ge([
|
|
|
1567
1567
|
O({ type: String, reflect: !0 })
|
|
1568
1568
|
], Ye.prototype, "errorMessage");
|
|
1569
1569
|
Ge([
|
|
1570
|
-
|
|
1570
|
+
Un()
|
|
1571
1571
|
], Ye.prototype, "touched");
|
|
1572
1572
|
const Zc = (e) => {
|
|
1573
1573
|
if (Array.isArray(e)) return e;
|
|
@@ -1862,14 +1862,14 @@ const Bg = "pkt-calendar", Ng = {
|
|
|
1862
1862
|
props: Ng,
|
|
1863
1863
|
events: jg
|
|
1864
1864
|
};
|
|
1865
|
-
var Pg = Object.defineProperty, Lg = Object.getOwnPropertyDescriptor,
|
|
1865
|
+
var Pg = Object.defineProperty, Lg = Object.getOwnPropertyDescriptor, Se = (e, t, n, r) => {
|
|
1866
1866
|
for (var i = r > 1 ? void 0 : r ? Lg(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
1867
1867
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
1868
1868
|
return r && i && Pg(t, n, i), i;
|
|
1869
1869
|
};
|
|
1870
|
-
let
|
|
1870
|
+
let xe = class extends qt {
|
|
1871
1871
|
constructor() {
|
|
1872
|
-
super(...arguments), this.multiple = An.props.multiple.default, this.maxMultiple = An.props.maxMultiple.default, this.range = An.props.range.default, this.weeknumbers = An.props.weeknumbers.default, this.withcontrols = An.props.withcontrols.default, this.selected = [], this.earliest = An.props.earliest.default, this.latest = An.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.dayStrings = this.strings.dates.daysShort, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [], this.currentmonthtouched = !1;
|
|
1872
|
+
super(...arguments), this.multiple = An.props.multiple.default, this.maxMultiple = An.props.maxMultiple.default, this.range = An.props.range.default, this.weeknumbers = An.props.weeknumbers.default, this.withcontrols = An.props.withcontrols.default, this.selected = [], this.earliest = An.props.earliest.default, this.latest = An.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.dayStrings = this.strings.dates.daysShort, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [], this.currentmonthtouched = !1, this.tabIndexSet = 0;
|
|
1873
1873
|
}
|
|
1874
1874
|
/**
|
|
1875
1875
|
* Runs on mount, used to set up various values and whatever you need to run
|
|
@@ -1886,6 +1886,9 @@ let _e = class extends qt {
|
|
|
1886
1886
|
updated(t) {
|
|
1887
1887
|
t.has("selected") && this.convertSelected(), super.updated(t);
|
|
1888
1888
|
}
|
|
1889
|
+
firstUpdated(t) {
|
|
1890
|
+
this.addEventListener("keydown", this.handleKeydown);
|
|
1891
|
+
}
|
|
1889
1892
|
convertSelected() {
|
|
1890
1893
|
if (typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = this.selected.map((t) => new Date(t)), this.range && this.selected.length === 2) {
|
|
1891
1894
|
const t = Ss({
|
|
@@ -1925,8 +1928,8 @@ let _e = class extends qt {
|
|
|
1925
1928
|
}
|
|
1926
1929
|
}
|
|
1927
1930
|
handleArrowKey(t, n) {
|
|
1928
|
-
|
|
1929
|
-
const r = new Date(this.focusedDate);
|
|
1931
|
+
t.preventDefault(), this.focusedDate || this.focusOnCurrentDate();
|
|
1932
|
+
const r = this.focusedDate ? new Date(this.focusedDate) : new Date(this.year, this.month, 1);
|
|
1930
1933
|
let i = new Date(r.setDate(r.getDate() + n));
|
|
1931
1934
|
if (i) {
|
|
1932
1935
|
let o = this.querySelector(`div[data-date="${this.formatISODate(i)}"]`);
|
|
@@ -1937,7 +1940,7 @@ let _e = class extends qt {
|
|
|
1937
1940
|
u = new Date(u.setDate(u.getDate() + n)), c = this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);
|
|
1938
1941
|
o = c;
|
|
1939
1942
|
}
|
|
1940
|
-
o instanceof HTMLDivElement && !o.dataset.disabled && o.focus();
|
|
1943
|
+
o instanceof HTMLDivElement && !o.dataset.disabled && (this.focusedDate = this.formatISODate(i), o.focus());
|
|
1941
1944
|
}
|
|
1942
1945
|
}
|
|
1943
1946
|
}
|
|
@@ -1954,32 +1957,36 @@ let _e = class extends qt {
|
|
|
1954
1957
|
}}
|
|
1955
1958
|
>
|
|
1956
1959
|
<nav class="pkt-cal-month-nav">
|
|
1957
|
-
<div
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
+
<div>
|
|
1961
|
+
<div
|
|
1962
|
+
@click=${this.isPrevMonthAllowed() && this.prevMonth}
|
|
1963
|
+
@keydown=${(t) => {
|
|
1960
1964
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.isNextMonthAllowed() && this.prevMonth());
|
|
1961
1965
|
}}
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1966
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isPrevMonthAllowed() ? "" : "pkt-hide"}"
|
|
1967
|
+
.data-disabled=${this.isPrevMonthAllowed() ? te : "disabled"}
|
|
1968
|
+
?aria-disabled=${!this.isPrevMonthAllowed()}
|
|
1969
|
+
tabindex=${this.isPrevMonthAllowed() ? "0" : "-1"}
|
|
1970
|
+
>
|
|
1971
|
+
<pkt-icon class="pkt-btn__icon" name="chevron-thin-left"></pkt-icon>
|
|
1972
|
+
<span class="pkt-btn__text">${this.prevMonthString}</span>
|
|
1973
|
+
</div>
|
|
1969
1974
|
</div>
|
|
1970
1975
|
${this.renderMonthNav()}
|
|
1971
|
-
<div
|
|
1972
|
-
|
|
1973
|
-
|
|
1976
|
+
<div>
|
|
1977
|
+
<div
|
|
1978
|
+
@click=${this.isNextMonthAllowed() && this.nextMonth}
|
|
1979
|
+
@keydown=${(t) => {
|
|
1974
1980
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.isNextMonthAllowed() && this.nextMonth());
|
|
1975
1981
|
}}
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1982
|
+
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isNextMonthAllowed() ? "" : "pkt-hide"}"
|
|
1983
|
+
.data-disabled=${this.isNextMonthAllowed() ? te : "disabled"}
|
|
1984
|
+
?aria-disabled=${!this.isNextMonthAllowed()}
|
|
1985
|
+
tabindex=${this.isNextMonthAllowed() ? "0" : "-1"}
|
|
1986
|
+
>
|
|
1987
|
+
<pkt-icon class="pkt-btn__icon" name="chevron-thin-right"></pkt-icon>
|
|
1988
|
+
<span class="pkt-btn__text">${this.nextMonthString}</span>
|
|
1989
|
+
</div>
|
|
1983
1990
|
</div>
|
|
1984
1991
|
</nav>
|
|
1985
1992
|
<table
|
|
@@ -2033,34 +2040,35 @@ let _e = class extends qt {
|
|
|
2033
2040
|
), t;
|
|
2034
2041
|
}
|
|
2035
2042
|
renderDayView(t, n, r) {
|
|
2036
|
-
|
|
2037
|
-
this.
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
"pkt-cal-
|
|
2041
|
-
"pkt-cal-
|
|
2042
|
-
"pkt-cal-
|
|
2043
|
-
"pkt-cal-
|
|
2044
|
-
"pkt-cal-in-range-
|
|
2045
|
-
"pkt-cal-range-
|
|
2043
|
+
var i;
|
|
2044
|
+
const o = new Date(this.year, this.month, t, 12), u = this.formatISODate(o), c = u === this.formatISODate(n), d = this.selected.includes(u), h = this.isExcluded(r, o) || !d && this.multiple && this.maxMultiple > 0 && this.selected.length >= this.maxMultiple, g = this.focusedDate ? this.focusedDate === u && !h ? "0" : "-1" : !h && this.tabIndexSet === 0 || this.tabIndexSet === t ? "0" : "-1";
|
|
2045
|
+
g === "0" && (this.tabIndexSet = t), this.selectableDates.push({ currentDateISO: u, isDisabled: h, tabindex: g });
|
|
2046
|
+
const v = {
|
|
2047
|
+
"pkt-cal-today": c,
|
|
2048
|
+
"pkt-cal-selected": d,
|
|
2049
|
+
"pkt-cal-in-range": this.inRange[u],
|
|
2050
|
+
"pkt-cal-excluded": this.isExcluded(r, o),
|
|
2051
|
+
"pkt-cal-in-range-first": this.range && (this.selected.length === 2 || this.rangeHovered !== null) && u === this.selected[0],
|
|
2052
|
+
"pkt-cal-in-range-last": this.range && this.selected.length === 2 && u === this.selected[1],
|
|
2053
|
+
"pkt-cal-range-hover": this.rangeHovered !== null && u === this.formatISODate(this.rangeHovered)
|
|
2046
2054
|
};
|
|
2047
|
-
return J`<td class=${Ve(
|
|
2055
|
+
return J`<td class=${Ve(v)}>
|
|
2048
2056
|
<div
|
|
2049
|
-
?aria-selected=${
|
|
2057
|
+
?aria-selected=${d}
|
|
2050
2058
|
role="gridcell"
|
|
2051
2059
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
2052
|
-
@mouseover=${() => this.range && !this.isExcluded(r,
|
|
2060
|
+
@mouseover=${() => this.range && !this.isExcluded(r, o) && this.handleRangeHover(o)}
|
|
2053
2061
|
@focus=${() => {
|
|
2054
|
-
this.range && !this.isExcluded(r,
|
|
2062
|
+
this.range && !this.isExcluded(r, o) && this.handleRangeHover(o), this.focusedDate = u;
|
|
2055
2063
|
}}
|
|
2056
|
-
tabindex=${
|
|
2057
|
-
data-disabled=${
|
|
2058
|
-
data-date=${
|
|
2059
|
-
@keydown=${(
|
|
2060
|
-
(
|
|
2064
|
+
tabindex=${(i = this.selectableDates.find((D) => D.currentDateISO === u)) == null ? void 0 : i.tabindex}
|
|
2065
|
+
data-disabled=${h ? "disabled" : te}
|
|
2066
|
+
data-date=${u}
|
|
2067
|
+
@keydown=${(D) => {
|
|
2068
|
+
(D.key === "Enter" || D.key === " ") && (D.preventDefault(), this.handleDateSelect(o));
|
|
2061
2069
|
}}
|
|
2062
|
-
@click=${(
|
|
2063
|
-
|
|
2070
|
+
@click=${(D) => {
|
|
2071
|
+
h || (D.preventDefault(), this.handleDateSelect(o));
|
|
2064
2072
|
}}
|
|
2065
2073
|
>
|
|
2066
2074
|
<span class="pkt-btn__text pkt-txt-14-light">${t}</span>
|
|
@@ -2129,7 +2137,7 @@ let _e = class extends qt {
|
|
|
2129
2137
|
this.changeMonth(n, t);
|
|
2130
2138
|
}
|
|
2131
2139
|
changeMonth(t, n) {
|
|
2132
|
-
this.year = t, this.month = n, this.selectableDates = [], this.requestUpdate();
|
|
2140
|
+
this.year = t, this.month = n, this.tabIndexSet = 0, this.focusedDate = null, this.selectableDates = [], this.requestUpdate();
|
|
2133
2141
|
}
|
|
2134
2142
|
isInRange(t) {
|
|
2135
2143
|
if (this.range && this.selected.length === 2) {
|
|
@@ -2201,14 +2209,14 @@ let _e = class extends qt {
|
|
|
2201
2209
|
focusOnCurrentDate() {
|
|
2202
2210
|
const t = this.formatISODate(/* @__PURE__ */ new Date()), n = this.querySelector(`div[data-date="${t}"]`);
|
|
2203
2211
|
if (n instanceof HTMLDivElement)
|
|
2204
|
-
n.focus();
|
|
2212
|
+
this.focusedDate = t, n.focus();
|
|
2205
2213
|
else {
|
|
2206
2214
|
const r = this.selectableDates.find((i) => !i.isDisabled);
|
|
2207
2215
|
if (r) {
|
|
2208
2216
|
const i = this.querySelector(
|
|
2209
2217
|
`div[data-date="${r.currentDateISO}"]`
|
|
2210
2218
|
);
|
|
2211
|
-
i instanceof HTMLDivElement && i.focus();
|
|
2219
|
+
i instanceof HTMLDivElement && (this.focusedDate = r.currentDateISO, i.focus());
|
|
2212
2220
|
}
|
|
2213
2221
|
}
|
|
2214
2222
|
}
|
|
@@ -2225,84 +2233,87 @@ let _e = class extends qt {
|
|
|
2225
2233
|
);
|
|
2226
2234
|
}
|
|
2227
2235
|
};
|
|
2228
|
-
|
|
2236
|
+
Se([
|
|
2229
2237
|
O({ type: Boolean })
|
|
2230
|
-
],
|
|
2231
|
-
|
|
2238
|
+
], xe.prototype, "multiple", 2);
|
|
2239
|
+
Se([
|
|
2232
2240
|
O({ type: Number })
|
|
2233
|
-
],
|
|
2234
|
-
|
|
2241
|
+
], xe.prototype, "maxMultiple", 2);
|
|
2242
|
+
Se([
|
|
2235
2243
|
O({ type: Boolean })
|
|
2236
|
-
],
|
|
2237
|
-
|
|
2244
|
+
], xe.prototype, "range", 2);
|
|
2245
|
+
Se([
|
|
2238
2246
|
O({ type: Boolean })
|
|
2239
|
-
],
|
|
2240
|
-
|
|
2247
|
+
], xe.prototype, "weeknumbers", 2);
|
|
2248
|
+
Se([
|
|
2241
2249
|
O({ type: Boolean })
|
|
2242
|
-
],
|
|
2243
|
-
|
|
2250
|
+
], xe.prototype, "withcontrols", 2);
|
|
2251
|
+
Se([
|
|
2244
2252
|
O({ converter: kr.csvToArray })
|
|
2245
|
-
],
|
|
2246
|
-
|
|
2253
|
+
], xe.prototype, "selected", 2);
|
|
2254
|
+
Se([
|
|
2247
2255
|
O({ type: String })
|
|
2248
|
-
],
|
|
2249
|
-
|
|
2256
|
+
], xe.prototype, "earliest", 2);
|
|
2257
|
+
Se([
|
|
2250
2258
|
O({ type: String })
|
|
2251
|
-
],
|
|
2252
|
-
|
|
2259
|
+
], xe.prototype, "latest", 2);
|
|
2260
|
+
Se([
|
|
2253
2261
|
O({ converter: kr.stringsToDate })
|
|
2254
|
-
],
|
|
2255
|
-
|
|
2262
|
+
], xe.prototype, "excludedates", 2);
|
|
2263
|
+
Se([
|
|
2256
2264
|
O({ converter: kr.csvToArray })
|
|
2257
|
-
],
|
|
2258
|
-
|
|
2265
|
+
], xe.prototype, "excludeweekdays", 2);
|
|
2266
|
+
Se([
|
|
2259
2267
|
O({ converter: kr.stringToDate })
|
|
2260
|
-
],
|
|
2261
|
-
|
|
2268
|
+
], xe.prototype, "currentmonth", 2);
|
|
2269
|
+
Se([
|
|
2262
2270
|
O({ type: Array })
|
|
2263
|
-
],
|
|
2264
|
-
|
|
2271
|
+
], xe.prototype, "dayStrings", 2);
|
|
2272
|
+
Se([
|
|
2265
2273
|
O({ type: Array })
|
|
2266
|
-
],
|
|
2267
|
-
|
|
2274
|
+
], xe.prototype, "monthStrings", 2);
|
|
2275
|
+
Se([
|
|
2268
2276
|
O({ type: String })
|
|
2269
|
-
],
|
|
2270
|
-
|
|
2277
|
+
], xe.prototype, "weekString", 2);
|
|
2278
|
+
Se([
|
|
2271
2279
|
O({ type: String })
|
|
2272
|
-
],
|
|
2273
|
-
|
|
2280
|
+
], xe.prototype, "prevMonthString", 2);
|
|
2281
|
+
Se([
|
|
2274
2282
|
O({ type: String })
|
|
2275
|
-
],
|
|
2276
|
-
|
|
2283
|
+
], xe.prototype, "nextMonthString", 2);
|
|
2284
|
+
Se([
|
|
2277
2285
|
O({ type: Array })
|
|
2278
|
-
],
|
|
2279
|
-
|
|
2286
|
+
], xe.prototype, "_selected", 2);
|
|
2287
|
+
Se([
|
|
2280
2288
|
O({ type: Number })
|
|
2281
|
-
],
|
|
2282
|
-
|
|
2289
|
+
], xe.prototype, "year", 2);
|
|
2290
|
+
Se([
|
|
2283
2291
|
O({ type: Number })
|
|
2284
|
-
],
|
|
2285
|
-
|
|
2292
|
+
], xe.prototype, "month", 2);
|
|
2293
|
+
Se([
|
|
2286
2294
|
O({ type: Number })
|
|
2287
|
-
],
|
|
2288
|
-
|
|
2295
|
+
], xe.prototype, "week", 2);
|
|
2296
|
+
Se([
|
|
2289
2297
|
O({ type: Date })
|
|
2290
|
-
],
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
],
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
],
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
],
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
],
|
|
2303
|
-
|
|
2298
|
+
], xe.prototype, "rangeHovered", 2);
|
|
2299
|
+
Se([
|
|
2300
|
+
Un()
|
|
2301
|
+
], xe.prototype, "inRange", 2);
|
|
2302
|
+
Se([
|
|
2303
|
+
Un()
|
|
2304
|
+
], xe.prototype, "focusedDate", 2);
|
|
2305
|
+
Se([
|
|
2306
|
+
Un()
|
|
2307
|
+
], xe.prototype, "selectableDates", 2);
|
|
2308
|
+
Se([
|
|
2309
|
+
Un()
|
|
2310
|
+
], xe.prototype, "currentmonthtouched", 2);
|
|
2311
|
+
Se([
|
|
2312
|
+
Un()
|
|
2313
|
+
], xe.prototype, "tabIndexSet", 2);
|
|
2314
|
+
xe = Se([
|
|
2304
2315
|
en("pkt-calendar")
|
|
2305
|
-
],
|
|
2316
|
+
], xe);
|
|
2306
2317
|
let wr = class {
|
|
2307
2318
|
constructor(t, ...n) {
|
|
2308
2319
|
this.nodes = [], this.host = t, this.host.addController(this), this.slots = n, this.nodes = [];
|
|
@@ -2521,7 +2532,7 @@ const Fs = /* @__PURE__ */ new WeakMap(), ct = Da(class extends zg {
|
|
|
2521
2532
|
default: {
|
|
2522
2533
|
description: "Teksten til tag"
|
|
2523
2534
|
}
|
|
2524
|
-
},
|
|
2535
|
+
}, ir = {
|
|
2525
2536
|
name: Gg,
|
|
2526
2537
|
"css-class": "pkt-tag",
|
|
2527
2538
|
props: Yg,
|
|
@@ -2534,7 +2545,7 @@ var Jg = Object.defineProperty, Xg = Object.getOwnPropertyDescriptor, tn = (e, t
|
|
|
2534
2545
|
};
|
|
2535
2546
|
let Rt = class extends qt {
|
|
2536
2547
|
constructor() {
|
|
2537
|
-
super(), this.defaultSlot = At(), this.closeTag =
|
|
2548
|
+
super(), this.defaultSlot = At(), this.closeTag = ir.props.closeTag.default, this.size = ir.props.size.default, this.skin = ir.props.skin.default, this.textStyle = ir.props.textStyle.default, this.iconName = void 0, this.type = ir.props.type.default, this.ariaLabel = ir.props.ariaLabel.default, this._isClosed = !1, this.close = (t) => {
|
|
2538
2549
|
this._isClosed = !0, this.dispatchEvent(
|
|
2539
2550
|
new CustomEvent("onClose", {
|
|
2540
2551
|
detail: { origin: t },
|
|
@@ -2600,7 +2611,7 @@ tn([
|
|
|
2600
2611
|
O({ type: String, reflect: !0 })
|
|
2601
2612
|
], Rt.prototype, "ariaLabel", 2);
|
|
2602
2613
|
tn([
|
|
2603
|
-
|
|
2614
|
+
Un()
|
|
2604
2615
|
], Rt.prototype, "_isClosed", 2);
|
|
2605
2616
|
Rt = tn([
|
|
2606
2617
|
en("pkt-tag")
|
|
@@ -2704,7 +2715,7 @@ const Qg = "pkt-card", Zg = !0, ev = {
|
|
|
2704
2715
|
props: ev,
|
|
2705
2716
|
slots: tv
|
|
2706
2717
|
};
|
|
2707
|
-
var nv = Object.defineProperty, rv = Object.getOwnPropertyDescriptor,
|
|
2718
|
+
var nv = Object.defineProperty, rv = Object.getOwnPropertyDescriptor, Wn = (e, t, n, r) => {
|
|
2708
2719
|
for (var i = r > 1 ? void 0 : r ? rv(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
2709
2720
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
2710
2721
|
return r && i && nv(t, n, i), i;
|
|
@@ -2752,25 +2763,25 @@ let Qt = class extends qt {
|
|
|
2752
2763
|
`;
|
|
2753
2764
|
}
|
|
2754
2765
|
};
|
|
2755
|
-
|
|
2766
|
+
Wn([
|
|
2756
2767
|
O({ type: String, reflect: !0 })
|
|
2757
2768
|
], Qt.prototype, "skin", 2);
|
|
2758
|
-
|
|
2769
|
+
Wn([
|
|
2759
2770
|
O({ type: String, reflect: !0 })
|
|
2760
2771
|
], Qt.prototype, "direction", 2);
|
|
2761
|
-
|
|
2772
|
+
Wn([
|
|
2762
2773
|
O({ type: Object, reflect: !0 })
|
|
2763
2774
|
], Qt.prototype, "image", 2);
|
|
2764
|
-
|
|
2775
|
+
Wn([
|
|
2765
2776
|
O({ type: String, reflect: !0 })
|
|
2766
2777
|
], Qt.prototype, "heading", 2);
|
|
2767
|
-
|
|
2778
|
+
Wn([
|
|
2768
2779
|
O({ type: String, reflect: !0 })
|
|
2769
2780
|
], Qt.prototype, "subheading", 2);
|
|
2770
|
-
|
|
2781
|
+
Wn([
|
|
2771
2782
|
O({ type: Array, reflect: !0 })
|
|
2772
2783
|
], Qt.prototype, "tags", 2);
|
|
2773
|
-
Qt =
|
|
2784
|
+
Qt = Wn([
|
|
2774
2785
|
en("pkt-card")
|
|
2775
2786
|
], Qt);
|
|
2776
2787
|
var av = Object.defineProperty, iv = Object.getOwnPropertyDescriptor, ba = (e, t, n, r) => {
|
|
@@ -2778,7 +2789,7 @@ var av = Object.defineProperty, iv = Object.getOwnPropertyDescriptor, ba = (e, t
|
|
|
2778
2789
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
2779
2790
|
return r && i && av(t, n, i), i;
|
|
2780
2791
|
};
|
|
2781
|
-
let
|
|
2792
|
+
let vr = class extends qt {
|
|
2782
2793
|
constructor() {
|
|
2783
2794
|
super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = At(), this.namedSlot = At(), this.slotController = new wr(this, this.defaultSlot, this.namedSlot);
|
|
2784
2795
|
}
|
|
@@ -2851,19 +2862,19 @@ let gr = class extends qt {
|
|
|
2851
2862
|
};
|
|
2852
2863
|
ba([
|
|
2853
2864
|
O({ type: String })
|
|
2854
|
-
],
|
|
2865
|
+
], vr.prototype, "string", 2);
|
|
2855
2866
|
ba([
|
|
2856
2867
|
O({ converter: Zc })
|
|
2857
|
-
],
|
|
2868
|
+
], vr.prototype, "strings", 2);
|
|
2858
2869
|
ba([
|
|
2859
2870
|
O({ type: Boolean })
|
|
2860
|
-
],
|
|
2871
|
+
], vr.prototype, "darkmode", 2);
|
|
2861
2872
|
ba([
|
|
2862
2873
|
O({ type: Array })
|
|
2863
|
-
],
|
|
2864
|
-
|
|
2874
|
+
], vr.prototype, "_list", 2);
|
|
2875
|
+
vr = ba([
|
|
2865
2876
|
en("pkt-component")
|
|
2866
|
-
],
|
|
2877
|
+
], vr);
|
|
2867
2878
|
/**
|
|
2868
2879
|
* @license
|
|
2869
2880
|
* Copyright 2020 Google LLC
|
|
@@ -3696,7 +3707,7 @@ const hn = {
|
|
|
3696
3707
|
);
|
|
3697
3708
|
return we(i, t.length);
|
|
3698
3709
|
}
|
|
3699
|
-
},
|
|
3710
|
+
}, sr = {
|
|
3700
3711
|
am: "am",
|
|
3701
3712
|
pm: "pm",
|
|
3702
3713
|
midnight: "midnight",
|
|
@@ -4040,7 +4051,7 @@ const hn = {
|
|
|
4040
4051
|
b: function(e, t, n) {
|
|
4041
4052
|
const r = e.getHours();
|
|
4042
4053
|
let i;
|
|
4043
|
-
switch (r === 12 ? i =
|
|
4054
|
+
switch (r === 12 ? i = sr.noon : r === 0 ? i = sr.midnight : i = r / 12 >= 1 ? "pm" : "am", t) {
|
|
4044
4055
|
case "b":
|
|
4045
4056
|
case "bb":
|
|
4046
4057
|
return n.dayPeriod(i, {
|
|
@@ -4069,7 +4080,7 @@ const hn = {
|
|
|
4069
4080
|
B: function(e, t, n) {
|
|
4070
4081
|
const r = e.getHours();
|
|
4071
4082
|
let i;
|
|
4072
|
-
switch (r >= 17 ? i =
|
|
4083
|
+
switch (r >= 17 ? i = sr.evening : r >= 12 ? i = sr.afternoon : r >= 4 ? i = sr.morning : i = sr.night, t) {
|
|
4073
4084
|
case "B":
|
|
4074
4085
|
case "BB":
|
|
4075
4086
|
case "BBB":
|
|
@@ -4677,7 +4688,7 @@ let qe = class extends Ye {
|
|
|
4677
4688
|
if (e.target.value) {
|
|
4678
4689
|
this.manageValidity(e.target);
|
|
4679
4690
|
const r = this.fromISOToDate(e.target.value);
|
|
4680
|
-
r && this._value[0] !== e.target.value && this._value[1] && ((n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(r));
|
|
4691
|
+
r && this._value[0] !== e.target.value && this._value[1] && (this.clearInputValue(), (n = (t = this.calRef) == null ? void 0 : t.value) == null || n.handleDateSelect(r));
|
|
4681
4692
|
} else this._value[0] && this.clearInputValue();
|
|
4682
4693
|
}}
|
|
4683
4694
|
@change=${(e) => {
|
|
@@ -5038,7 +5049,7 @@ Cr([
|
|
|
5038
5049
|
vn = Cr([
|
|
5039
5050
|
en("pkt-link")
|
|
5040
5051
|
], vn);
|
|
5041
|
-
var E2 = Object.defineProperty, F2 = Object.getOwnPropertyDescriptor,
|
|
5052
|
+
var E2 = Object.defineProperty, F2 = Object.getOwnPropertyDescriptor, zn = (e, t, n, r) => {
|
|
5042
5053
|
for (var i = r > 1 ? void 0 : r ? F2(t, n) : t, o = e.length - 1, u; o >= 0; o--)
|
|
5043
5054
|
(u = e[o]) && (i = (r ? u(t, n, i) : u(i)) || i);
|
|
5044
5055
|
return r && i && E2(t, n, i), i;
|
|
@@ -5071,25 +5082,25 @@ let Dn = class extends qt {
|
|
|
5071
5082
|
</div>` : te;
|
|
5072
5083
|
}
|
|
5073
5084
|
};
|
|
5074
|
-
|
|
5085
|
+
zn([
|
|
5075
5086
|
O({ type: Boolean, reflect: !0 })
|
|
5076
5087
|
], Dn.prototype, "closable", 2);
|
|
5077
|
-
|
|
5088
|
+
zn([
|
|
5078
5089
|
O({ type: Boolean, reflect: !0 })
|
|
5079
5090
|
], Dn.prototype, "compact", 2);
|
|
5080
|
-
|
|
5091
|
+
zn([
|
|
5081
5092
|
O({ type: String, reflect: !0 })
|
|
5082
5093
|
], Dn.prototype, "title", 2);
|
|
5083
|
-
|
|
5094
|
+
zn([
|
|
5084
5095
|
O({ type: String, reflect: !0 })
|
|
5085
5096
|
], Dn.prototype, "skin", 2);
|
|
5086
|
-
|
|
5097
|
+
zn([
|
|
5087
5098
|
O({ type: Boolean, reflect: !0 })
|
|
5088
5099
|
], Dn.prototype, "isDisplayed", 2);
|
|
5089
|
-
|
|
5100
|
+
zn([
|
|
5090
5101
|
O({ type: Function, reflect: !0 })
|
|
5091
5102
|
], Dn.prototype, "onClose", 2);
|
|
5092
|
-
Dn =
|
|
5103
|
+
Dn = zn([
|
|
5093
5104
|
en("pkt-messagebox")
|
|
5094
5105
|
], Dn);
|
|
5095
5106
|
const ee = _i({
|
|
@@ -5260,7 +5271,7 @@ const x_ = je(
|
|
|
5260
5271
|
] })
|
|
5261
5272
|
] });
|
|
5262
5273
|
}
|
|
5263
|
-
),
|
|
5274
|
+
), Dr = je(
|
|
5264
5275
|
({
|
|
5265
5276
|
children: e,
|
|
5266
5277
|
className: t,
|
|
@@ -5300,7 +5311,7 @@ const x_ = je(
|
|
|
5300
5311
|
] });
|
|
5301
5312
|
}
|
|
5302
5313
|
);
|
|
5303
|
-
|
|
5314
|
+
Dr.displayName = "PktButton";
|
|
5304
5315
|
const T2 = _i({
|
|
5305
5316
|
tagName: "pkt-card",
|
|
5306
5317
|
elementClass: Qt,
|
|
@@ -5573,7 +5584,7 @@ const N2 = _i({
|
|
|
5573
5584
|
] }),
|
|
5574
5585
|
/* @__PURE__ */ m.jsx("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ m.jsxs("ul", { className: "pkt-header__actions-row", children: [
|
|
5575
5586
|
v && /* @__PURE__ */ m.jsx("li", { children: /* @__PURE__ */ m.jsx(
|
|
5576
|
-
|
|
5587
|
+
Dr,
|
|
5577
5588
|
{
|
|
5578
5589
|
className: "pkt-header__menu-btn",
|
|
5579
5590
|
skin: "secondary",
|
|
@@ -5658,7 +5669,7 @@ const N2 = _i({
|
|
|
5658
5669
|
),
|
|
5659
5670
|
C && /* @__PURE__ */ m.jsx("li", { children: C }),
|
|
5660
5671
|
D && /* @__PURE__ */ m.jsx("li", { children: /* @__PURE__ */ m.jsx(
|
|
5661
|
-
|
|
5672
|
+
Dr,
|
|
5662
5673
|
{
|
|
5663
5674
|
className: "pkt-header__user-btn pkt-header__user-btn-logout",
|
|
5664
5675
|
iconName: "exit",
|
|
@@ -5724,7 +5735,7 @@ const ka = je(
|
|
|
5724
5735
|
n && /* @__PURE__ */ m.jsx("div", { className: "pkt-inputwrapper__helptext", id: `${e}-helptext`, children: n }),
|
|
5725
5736
|
N && r !== "" && /* @__PURE__ */ m.jsxs("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
|
|
5726
5737
|
/* @__PURE__ */ m.jsx(
|
|
5727
|
-
|
|
5738
|
+
Dr,
|
|
5728
5739
|
{
|
|
5729
5740
|
skin: "tertiary",
|
|
5730
5741
|
size: "small",
|
|
@@ -6131,7 +6142,7 @@ function G2() {
|
|
|
6131
6142
|
function Be(K) {
|
|
6132
6143
|
return typeof K == "object" && K !== null && K.$$typeof === o;
|
|
6133
6144
|
}
|
|
6134
|
-
function
|
|
6145
|
+
function Ee(K) {
|
|
6135
6146
|
return _(K) === b;
|
|
6136
6147
|
}
|
|
6137
6148
|
function Ne(K) {
|
|
@@ -6158,7 +6169,7 @@ function G2() {
|
|
|
6158
6169
|
function bt(K) {
|
|
6159
6170
|
return _(K) === x;
|
|
6160
6171
|
}
|
|
6161
|
-
be.ContextConsumer = $, be.ContextProvider = P, be.Element = I, be.ForwardRef = j, be.Fragment = W, be.Lazy = Y, be.Memo = V, be.Portal = L, be.Profiler = N, be.StrictMode = q, be.Suspense = X, be.SuspenseList = de, be.isAsyncMode = he, be.isConcurrentMode = re, be.isContextConsumer = ge, be.isContextProvider = at, be.isElement = Be, be.isForwardRef =
|
|
6172
|
+
be.ContextConsumer = $, be.ContextProvider = P, be.Element = I, be.ForwardRef = j, be.Fragment = W, be.Lazy = Y, be.Memo = V, be.Portal = L, be.Profiler = N, be.StrictMode = q, be.Suspense = X, be.SuspenseList = de, be.isAsyncMode = he, be.isConcurrentMode = re, be.isContextConsumer = ge, be.isContextProvider = at, be.isElement = Be, be.isForwardRef = Ee, be.isFragment = Ne, be.isLazy = oe, be.isMemo = dt, be.isPortal = xt, be.isProfiler = Dt, be.isStrictMode = yt, be.isSuspense = un, be.isSuspenseList = bt, be.isValidElementType = A, be.typeOf = _;
|
|
6162
6173
|
}()), be;
|
|
6163
6174
|
}
|
|
6164
6175
|
process.env.NODE_ENV === "production" ? Ys.exports = V2() : Ys.exports = G2();
|
|
@@ -6775,20 +6786,20 @@ function XD(e) {
|
|
|
6775
6786
|
return ji(!1, e, /\r\n?/gu, `
|
|
6776
6787
|
`);
|
|
6777
6788
|
}
|
|
6778
|
-
var
|
|
6789
|
+
var Vn = "string", Zt = "array", Gn = "cursor", nn = "indent", rn = "align", an = "trim", vt = "group", Ht = "fill", Ct = "if-break", sn = "indent-if-break", on = "line-suffix", ln = "line-suffix-boundary", rt = "line", Ut = "label", $t = "break-parent", wp = /* @__PURE__ */ new Set([Gn, nn, rn, an, vt, Ht, Ct, sn, on, ln, rt, Ut, $t]);
|
|
6779
6790
|
function QD(e) {
|
|
6780
|
-
if (typeof e == "string") return
|
|
6791
|
+
if (typeof e == "string") return Vn;
|
|
6781
6792
|
if (Array.isArray(e)) return Zt;
|
|
6782
6793
|
if (!e) return;
|
|
6783
6794
|
let { type: t } = e;
|
|
6784
6795
|
if (wp.has(t)) return t;
|
|
6785
6796
|
}
|
|
6786
|
-
var
|
|
6797
|
+
var Yn = QD, ZD = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
|
|
6787
6798
|
function ey(e) {
|
|
6788
6799
|
let t = e === null ? "null" : typeof e;
|
|
6789
6800
|
if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
|
|
6790
6801
|
Expected it to be 'string' or 'object'.`;
|
|
6791
|
-
if (
|
|
6802
|
+
if (Yn(e)) throw new Error("doc is valid.");
|
|
6792
6803
|
let n = Object.prototype.toString.call(e);
|
|
6793
6804
|
if (n !== "[object Object]") return `Unexpected doc '${n}'.`;
|
|
6794
6805
|
let r = ZD([...wp].map((i) => `'${i}'`));
|
|
@@ -6798,10 +6809,10 @@ Expected it to be ${r}.`;
|
|
|
6798
6809
|
var ty = class extends Error {
|
|
6799
6810
|
constructor(t) {
|
|
6800
6811
|
super(ey(t));
|
|
6801
|
-
|
|
6812
|
+
ar(this, "name", "InvalidDocError");
|
|
6802
6813
|
this.doc = t;
|
|
6803
6814
|
}
|
|
6804
|
-
},
|
|
6815
|
+
}, yr = ty, Vu = {};
|
|
6805
6816
|
function ny(e, t, n, r) {
|
|
6806
6817
|
let i = [e];
|
|
6807
6818
|
for (; i.length > 0; ) {
|
|
@@ -6811,8 +6822,8 @@ function ny(e, t, n, r) {
|
|
|
6811
6822
|
continue;
|
|
6812
6823
|
}
|
|
6813
6824
|
n && i.push(o, Vu);
|
|
6814
|
-
let u =
|
|
6815
|
-
if (!u) throw new
|
|
6825
|
+
let u = Yn(o);
|
|
6826
|
+
if (!u) throw new yr(o);
|
|
6816
6827
|
if ((t == null ? void 0 : t(o)) !== !1) switch (u) {
|
|
6817
6828
|
case Zt:
|
|
6818
6829
|
case Ht: {
|
|
@@ -6834,15 +6845,15 @@ function ny(e, t, n, r) {
|
|
|
6834
6845
|
case on:
|
|
6835
6846
|
i.push(o.contents);
|
|
6836
6847
|
break;
|
|
6837
|
-
case zn:
|
|
6838
6848
|
case Vn:
|
|
6849
|
+
case Gn:
|
|
6839
6850
|
case an:
|
|
6840
6851
|
case ln:
|
|
6841
6852
|
case rt:
|
|
6842
6853
|
case $t:
|
|
6843
6854
|
break;
|
|
6844
6855
|
default:
|
|
6845
|
-
throw new
|
|
6856
|
+
throw new yr(o);
|
|
6846
6857
|
}
|
|
6847
6858
|
}
|
|
6848
6859
|
}
|
|
@@ -6851,20 +6862,20 @@ var xo = ny, ry = () => {
|
|
|
6851
6862
|
function Ci(e) {
|
|
6852
6863
|
return { type: nn, contents: e };
|
|
6853
6864
|
}
|
|
6854
|
-
function
|
|
6865
|
+
function br(e, t) {
|
|
6855
6866
|
return { type: rn, contents: t, n: e };
|
|
6856
6867
|
}
|
|
6857
6868
|
function Cp(e, t = {}) {
|
|
6858
6869
|
return ay(t.expandedStates), { type: vt, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
|
|
6859
6870
|
}
|
|
6860
6871
|
function iy(e) {
|
|
6861
|
-
return
|
|
6872
|
+
return br(Number.NEGATIVE_INFINITY, e);
|
|
6862
6873
|
}
|
|
6863
6874
|
function sy(e) {
|
|
6864
|
-
return
|
|
6875
|
+
return br({ type: "root" }, e);
|
|
6865
6876
|
}
|
|
6866
6877
|
function oy(e) {
|
|
6867
|
-
return
|
|
6878
|
+
return br(-1, e);
|
|
6868
6879
|
}
|
|
6869
6880
|
function ly(e, t) {
|
|
6870
6881
|
return Cp(e[0], { ...t, expandedStates: e });
|
|
@@ -6881,7 +6892,7 @@ function cy(e, t) {
|
|
|
6881
6892
|
function Qs(e) {
|
|
6882
6893
|
return { type: on, contents: e };
|
|
6883
6894
|
}
|
|
6884
|
-
var py = { type: ln }, Pi = { type: $t }, dy = { type: an }, _o = { type: rt, hard: !0 }, _p = { type: rt, hard: !0, literal: !0 }, Sp = { type: rt }, hy = { type: rt, soft: !0 }, On = [_o, Pi], Ep = [_p, Pi], Zs = { type:
|
|
6895
|
+
var py = { type: ln }, Pi = { type: $t }, dy = { type: an }, _o = { type: rt, hard: !0 }, _p = { type: rt, hard: !0, literal: !0 }, Sp = { type: rt }, hy = { type: rt, soft: !0 }, On = [_o, Pi], Ep = [_p, Pi], Zs = { type: Gn };
|
|
6885
6896
|
function Fp(e, t) {
|
|
6886
6897
|
let n = [];
|
|
6887
6898
|
for (let r = 0; r < t.length; r++) r !== 0 && n.push(e), n.push(t[r]);
|
|
@@ -6891,7 +6902,7 @@ function Ap(e, t, n) {
|
|
|
6891
6902
|
let r = e;
|
|
6892
6903
|
if (t > 0) {
|
|
6893
6904
|
for (let i = 0; i < Math.floor(t / n); ++i) r = Ci(r);
|
|
6894
|
-
r =
|
|
6905
|
+
r = br(t % n, r), r = br(Number.NEGATIVE_INFINITY, r);
|
|
6895
6906
|
}
|
|
6896
6907
|
return r;
|
|
6897
6908
|
}
|
|
@@ -6991,7 +7002,7 @@ function Li(e, t) {
|
|
|
6991
7002
|
return n.set(o, u), u;
|
|
6992
7003
|
}
|
|
6993
7004
|
function i(o) {
|
|
6994
|
-
switch (
|
|
7005
|
+
switch (Yn(o)) {
|
|
6995
7006
|
case Zt:
|
|
6996
7007
|
return t(o.map(r));
|
|
6997
7008
|
case Ht:
|
|
@@ -7008,15 +7019,15 @@ function Li(e, t) {
|
|
|
7008
7019
|
case Ut:
|
|
7009
7020
|
case on:
|
|
7010
7021
|
return t({ ...o, contents: r(o.contents) });
|
|
7011
|
-
case zn:
|
|
7012
7022
|
case Vn:
|
|
7023
|
+
case Gn:
|
|
7013
7024
|
case an:
|
|
7014
7025
|
case ln:
|
|
7015
7026
|
case rt:
|
|
7016
7027
|
case $t:
|
|
7017
7028
|
return t(o);
|
|
7018
7029
|
default:
|
|
7019
|
-
throw new
|
|
7030
|
+
throw new yr(o);
|
|
7020
7031
|
}
|
|
7021
7032
|
}
|
|
7022
7033
|
}
|
|
@@ -7070,7 +7081,7 @@ function Yu(e) {
|
|
|
7070
7081
|
return e;
|
|
7071
7082
|
}
|
|
7072
7083
|
function sa(e) {
|
|
7073
|
-
switch (
|
|
7084
|
+
switch (Yn(e)) {
|
|
7074
7085
|
case nn:
|
|
7075
7086
|
case sn:
|
|
7076
7087
|
case vt:
|
|
@@ -7085,17 +7096,17 @@ function sa(e) {
|
|
|
7085
7096
|
return { ...e, parts: Yu(e.parts) };
|
|
7086
7097
|
case Zt:
|
|
7087
7098
|
return Yu(e);
|
|
7088
|
-
case
|
|
7099
|
+
case Vn:
|
|
7089
7100
|
return e.replace(/[\n\r]*$/u, "");
|
|
7090
7101
|
case rn:
|
|
7091
|
-
case
|
|
7102
|
+
case Gn:
|
|
7092
7103
|
case an:
|
|
7093
7104
|
case ln:
|
|
7094
7105
|
case rt:
|
|
7095
7106
|
case $t:
|
|
7096
7107
|
break;
|
|
7097
7108
|
default:
|
|
7098
|
-
throw new
|
|
7109
|
+
throw new yr(e);
|
|
7099
7110
|
}
|
|
7100
7111
|
return e;
|
|
7101
7112
|
}
|
|
@@ -7103,7 +7114,7 @@ function $p(e) {
|
|
|
7103
7114
|
return sa(Ay(e));
|
|
7104
7115
|
}
|
|
7105
7116
|
function Fy(e) {
|
|
7106
|
-
switch (
|
|
7117
|
+
switch (Yn(e)) {
|
|
7107
7118
|
case Ht:
|
|
7108
7119
|
if (e.parts.every((t) => t === "")) return "";
|
|
7109
7120
|
break;
|
|
@@ -7129,8 +7140,8 @@ function Fy(e) {
|
|
|
7129
7140
|
}
|
|
7130
7141
|
return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
|
|
7131
7142
|
}
|
|
7132
|
-
case zn:
|
|
7133
7143
|
case Vn:
|
|
7144
|
+
case Gn:
|
|
7134
7145
|
case an:
|
|
7135
7146
|
case ln:
|
|
7136
7147
|
case rt:
|
|
@@ -7138,7 +7149,7 @@ function Fy(e) {
|
|
|
7138
7149
|
case $t:
|
|
7139
7150
|
break;
|
|
7140
7151
|
default:
|
|
7141
|
-
throw new
|
|
7152
|
+
throw new yr(e);
|
|
7142
7153
|
}
|
|
7143
7154
|
return e;
|
|
7144
7155
|
}
|
|
@@ -7232,9 +7243,9 @@ function ri(e, t, n, r, i, o) {
|
|
|
7232
7243
|
c.push(t[--u]);
|
|
7233
7244
|
continue;
|
|
7234
7245
|
}
|
|
7235
|
-
let { mode: h, doc: g } = c.pop(), v =
|
|
7246
|
+
let { mode: h, doc: g } = c.pop(), v = Yn(g);
|
|
7236
7247
|
switch (v) {
|
|
7237
|
-
case
|
|
7248
|
+
case Vn:
|
|
7238
7249
|
d.push(g), n -= So(g);
|
|
7239
7250
|
break;
|
|
7240
7251
|
case Zt:
|
|
@@ -7281,8 +7292,8 @@ function Oi(e, t) {
|
|
|
7281
7292
|
let n = {}, r = t.printWidth, i = Co(t.endOfLine), o = 0, u = [{ ind: Bp(), mode: gt, doc: e }], c = [], d = !1, h = [], g = 0;
|
|
7282
7293
|
for (_y(e); u.length > 0; ) {
|
|
7283
7294
|
let { ind: D, mode: b, doc: k } = u.pop();
|
|
7284
|
-
switch (
|
|
7285
|
-
case
|
|
7295
|
+
switch (Yn(k)) {
|
|
7296
|
+
case Vn: {
|
|
7286
7297
|
let x = i !== `
|
|
7287
7298
|
` ? ji(!1, k, `
|
|
7288
7299
|
`, i) : k;
|
|
@@ -7292,7 +7303,7 @@ function Oi(e, t) {
|
|
|
7292
7303
|
case Zt:
|
|
7293
7304
|
for (let x = k.length - 1; x >= 0; x--) u.push({ ind: D, mode: b, doc: k[x] });
|
|
7294
7305
|
break;
|
|
7295
|
-
case
|
|
7306
|
+
case Gn:
|
|
7296
7307
|
if (g >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
7297
7308
|
c.push(oa), g++;
|
|
7298
7309
|
break;
|
|
@@ -7397,7 +7408,7 @@ function Oi(e, t) {
|
|
|
7397
7408
|
case $t:
|
|
7398
7409
|
break;
|
|
7399
7410
|
default:
|
|
7400
|
-
throw new
|
|
7411
|
+
throw new yr(k);
|
|
7401
7412
|
}
|
|
7402
7413
|
u.length === 0 && h.length > 0 && (u.push(...h.reverse()), h.length = 0);
|
|
7403
7414
|
}
|
|
@@ -7614,13 +7625,13 @@ function Yy(e) {
|
|
|
7614
7625
|
function Ao(e, t) {
|
|
7615
7626
|
(e.comments ?? (e.comments = [])).push(t), t.printed = !1, t.nodeDescription = Yy(e);
|
|
7616
7627
|
}
|
|
7617
|
-
function
|
|
7628
|
+
function pr(e, t) {
|
|
7618
7629
|
t.leading = !0, t.trailing = !1, Ao(e, t);
|
|
7619
7630
|
}
|
|
7620
7631
|
function jn(e, t, n) {
|
|
7621
7632
|
t.leading = !1, t.trailing = !1, n && (t.marker = n), Ao(e, t);
|
|
7622
7633
|
}
|
|
7623
|
-
function
|
|
7634
|
+
function dr(e, t) {
|
|
7624
7635
|
t.leading = !1, t.trailing = !0, Ao(e, t);
|
|
7625
7636
|
}
|
|
7626
7637
|
var Ns = /* @__PURE__ */ new WeakMap();
|
|
@@ -7661,21 +7672,21 @@ function Ky(e, t) {
|
|
|
7661
7672
|
let { comment: x, precedingNode: C, enclosingNode: T, followingNode: F, text: S, options: A, ast: _, isLastComment: $ } = k;
|
|
7662
7673
|
if (A.parser === "json" || A.parser === "json5" || A.parser === "jsonc" || A.parser === "__js_expression" || A.parser === "__ts_expression" || A.parser === "__vue_expression" || A.parser === "__vue_ts_expression") {
|
|
7663
7674
|
if (i(x) - i(_) <= 0) {
|
|
7664
|
-
|
|
7675
|
+
pr(_, x);
|
|
7665
7676
|
continue;
|
|
7666
7677
|
}
|
|
7667
7678
|
if (o(x) - o(_) >= 0) {
|
|
7668
|
-
|
|
7679
|
+
dr(_, x);
|
|
7669
7680
|
continue;
|
|
7670
7681
|
}
|
|
7671
7682
|
}
|
|
7672
7683
|
let P;
|
|
7673
|
-
if (u ? P = [k] : (x.enclosingNode = T, x.precedingNode = C, x.followingNode = F, P = [x, S, A, _, $]), Jy(S, A, D, b)) x.placement = "ownLine", h(...P) || (F ?
|
|
7674
|
-
else if (Xy(S, A, D, b)) x.placement = "endOfLine", g(...P) || (C ?
|
|
7684
|
+
if (u ? P = [k] : (x.enclosingNode = T, x.precedingNode = C, x.followingNode = F, P = [x, S, A, _, $]), Jy(S, A, D, b)) x.placement = "ownLine", h(...P) || (F ? pr(F, x) : C ? dr(C, x) : jn(T || _, x));
|
|
7685
|
+
else if (Xy(S, A, D, b)) x.placement = "endOfLine", g(...P) || (C ? dr(C, x) : F ? pr(F, x) : jn(T || _, x));
|
|
7675
7686
|
else if (x.placement = "remaining", !v(...P)) if (C && F) {
|
|
7676
7687
|
let I = r.length;
|
|
7677
7688
|
I > 0 && r[I - 1].followingNode !== F && Ku(r, A), r.push(k);
|
|
7678
|
-
} else C ?
|
|
7689
|
+
} else C ? dr(C, x) : F ? pr(F, x) : jn(T || _, x);
|
|
7679
7690
|
}
|
|
7680
7691
|
if (Ku(r, t), !u) for (let b of n) delete b.precedingNode, delete b.enclosingNode, delete b.followingNode;
|
|
7681
7692
|
}
|
|
@@ -7710,7 +7721,7 @@ function Ku(e, t) {
|
|
|
7710
7721
|
if (((r = (n = t.printer).isGap) == null ? void 0 : r.call(n, D, t)) ?? /^[\s(]*$/u.test(D)) c = t.locStart(h);
|
|
7711
7722
|
else break;
|
|
7712
7723
|
}
|
|
7713
|
-
for (let [h, { comment: g }] of e.entries()) h < d ?
|
|
7724
|
+
for (let [h, { comment: g }] of e.entries()) h < d ? dr(o, g) : pr(u, g);
|
|
7714
7725
|
for (let h of [o, u]) h.comments && h.comments.length > 1 && h.comments.sort((g, v) => t.locStart(g) - t.locStart(v));
|
|
7715
7726
|
e.length = 0;
|
|
7716
7727
|
}
|
|
@@ -7776,12 +7787,12 @@ function r0(e) {
|
|
|
7776
7787
|
var qp = class extends Error {
|
|
7777
7788
|
constructor() {
|
|
7778
7789
|
super(...arguments);
|
|
7779
|
-
|
|
7790
|
+
ar(this, "name", "ConfigError");
|
|
7780
7791
|
}
|
|
7781
7792
|
}, Ju = class extends Error {
|
|
7782
7793
|
constructor() {
|
|
7783
7794
|
super(...arguments);
|
|
7784
|
-
|
|
7795
|
+
ar(this, "name", "UndefinedParserError");
|
|
7785
7796
|
}
|
|
7786
7797
|
}, a0 = { cursorOffset: { category: "Special", type: "int", default: -1, range: { start: -1, end: 1 / 0, step: 1 }, description: "Print (to stderr) where a cursor at the given position would move to after formatting.", cliCategory: "Editor" }, endOfLine: { category: "Global", type: "choice", default: "lf", description: "Which end of line characters to apply.", choices: [{ value: "lf", description: "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { value: "crlf", description: "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { value: "cr", description: "Carriage Return character only (\\r), used very rarely" }, { value: "auto", description: `Maintain existing
|
|
7787
7798
|
(mixed values within one file are normalised by looking at what's used after the first line)` }] }, filepath: { category: "Special", type: "path", description: "Specify the input filepath. This will be used to do parser inference.", cliName: "stdin-filepath", cliCategory: "Other", cliDescription: "Path to the file to pretend that stdin comes from." }, insertPragma: { category: "Special", type: "boolean", default: !1, description: "Insert @format pragma into file's first docblock comment.", cliCategory: "Other" }, parser: { category: "Global", type: "choice", default: void 0, description: "Which parser to use.", exception: (e) => typeof e == "string" || typeof e == "function", choices: [{ value: "flow", description: "Flow" }, { value: "babel", description: "JavaScript" }, { value: "babel-flow", description: "Flow" }, { value: "babel-ts", description: "TypeScript" }, { value: "typescript", description: "TypeScript" }, { value: "acorn", description: "JavaScript" }, { value: "espree", description: "JavaScript" }, { value: "meriyah", description: "JavaScript" }, { value: "css", description: "CSS" }, { value: "less", description: "Less" }, { value: "scss", description: "SCSS" }, { value: "json", description: "JSON" }, { value: "json5", description: "JSON5" }, { value: "jsonc", description: "JSON with Comments" }, { value: "json-stringify", description: "JSON.stringify" }, { value: "graphql", description: "GraphQL" }, { value: "markdown", description: "Markdown" }, { value: "mdx", description: "MDX" }, { value: "vue", description: "Vue" }, { value: "yaml", description: "YAML" }, { value: "glimmer", description: "Ember / Handlebars" }, { value: "html", description: "HTML" }, { value: "angular", description: "Angular" }, { value: "lwc", description: "Lightning Web Components" }] }, plugins: { type: "path", array: !0, default: [{ value: [] }], category: "Global", description: "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", exception: (e) => typeof e == "string" || typeof e == "object", cliName: "plugin", cliCategory: "Config" }, printWidth: { category: "Global", type: "int", default: 80, description: "The line length where Prettier will try wrap.", range: { start: 0, end: 1 / 0, step: 1 } }, rangeEnd: { category: "Special", type: "int", default: 1 / 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code ending at a given character offset (exclusive).
|
|
@@ -7827,25 +7838,25 @@ function u0(e, t) {
|
|
|
7827
7838
|
let n = e.plugins.flatMap((i) => i.languages ?? []), r = l0(n, t.language) ?? Xu(n, t.physicalFile) ?? Xu(n, t.file) ?? (t.physicalFile, void 0);
|
|
7828
7839
|
return r == null ? void 0 : r.parsers[0];
|
|
7829
7840
|
}
|
|
7830
|
-
var c0 = u0,
|
|
7841
|
+
var c0 = u0, hr = { key: (e) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e) ? e : JSON.stringify(e), value(e) {
|
|
7831
7842
|
if (e === null || typeof e != "object") return JSON.stringify(e);
|
|
7832
|
-
if (Array.isArray(e)) return `[${e.map((n) =>
|
|
7843
|
+
if (Array.isArray(e)) return `[${e.map((n) => hr.value(n)).join(", ")}]`;
|
|
7833
7844
|
let t = Object.keys(e);
|
|
7834
|
-
return t.length === 0 ? "{}" : `{ ${t.map((n) => `${
|
|
7835
|
-
}, pair: ({ key: e, value: t }) =>
|
|
7845
|
+
return t.length === 0 ? "{}" : `{ ${t.map((n) => `${hr.key(n)}: ${hr.value(e[n])}`).join(", ")} }`;
|
|
7846
|
+
}, pair: ({ key: e, value: t }) => hr.value({ [e]: t }) }, Qu = Ni(wo()), p0 = (e, t, { descriptor: n }) => {
|
|
7836
7847
|
let r = [`${Qu.default.yellow(typeof e == "string" ? n.key(e) : n.pair(e))} is deprecated`];
|
|
7837
7848
|
return t && r.push(`we now treat it as ${Qu.default.blue(typeof t == "string" ? n.key(t) : n.pair(t))}`), r.join("; ") + ".";
|
|
7838
|
-
},
|
|
7849
|
+
}, fr = Ni(wo()), Up = Symbol.for("vnopts.VALUE_NOT_EXIST"), di = Symbol.for("vnopts.VALUE_UNCHANGED"), Zu = " ".repeat(2), d0 = (e, t, n) => {
|
|
7839
7850
|
let { text: r, list: i } = n.normalizeExpectedResult(n.schemas[e].expected(n)), o = [];
|
|
7840
7851
|
return r && o.push(ec(e, t, r, n.descriptor)), i && o.push([ec(e, t, i.title, n.descriptor)].concat(i.values.map((u) => Wp(u, n.loggerPrintWidth))).join(`
|
|
7841
7852
|
`)), zp(o, n.loggerPrintWidth);
|
|
7842
7853
|
};
|
|
7843
7854
|
function ec(e, t, n, r) {
|
|
7844
|
-
return [`Invalid ${
|
|
7855
|
+
return [`Invalid ${fr.default.red(r.key(e))} value.`, `Expected ${fr.default.blue(n)},`, `but received ${t === Up ? fr.default.gray("nothing") : fr.default.red(r.value(t))}.`].join(" ");
|
|
7845
7856
|
}
|
|
7846
7857
|
function Wp({ text: e, list: t }, n) {
|
|
7847
7858
|
let r = [];
|
|
7848
|
-
return e && r.push(`- ${
|
|
7859
|
+
return e && r.push(`- ${fr.default.blue(e)}`), t && r.push([`- ${fr.default.blue(t.title)}:`].concat(t.values.map((i) => Wp(i, n - Zu.length).replace(/^|\n/g, `$&${Zu}`))).join(`
|
|
7849
7860
|
`)), zp(r, n);
|
|
7850
7861
|
}
|
|
7851
7862
|
function zp(e, t) {
|
|
@@ -8104,7 +8115,7 @@ var A0 = class extends kn {
|
|
|
8104
8115
|
validate(e) {
|
|
8105
8116
|
return typeof e == "string";
|
|
8106
8117
|
}
|
|
8107
|
-
}, B0 =
|
|
8118
|
+
}, B0 = hr, N0 = Vp, j0 = d0, P0 = p0, L0 = class {
|
|
8108
8119
|
constructor(e, t) {
|
|
8109
8120
|
let { logger: n = console, loggerPrintWidth: r = 80, descriptor: i = B0, unknown: o = N0, invalid: u = j0, deprecated: c = P0, missing: d = () => !1, required: h = () => !1, preprocess: g = (D) => D, postprocess: v = () => di } = t || {};
|
|
8110
8121
|
this._utils = { descriptor: i, logger: n || { warn: () => {
|
|
@@ -8214,7 +8225,7 @@ function O0(e, t, { logger: n = !1, isCLI: r = !1, passThrough: i = !1, FlagSche
|
|
|
8214
8225
|
if (r) {
|
|
8215
8226
|
if (!o) throw new Error("'FlagSchema' option is required.");
|
|
8216
8227
|
if (!u) throw new Error("'descriptor' option is required.");
|
|
8217
|
-
} else u =
|
|
8228
|
+
} else u = hr;
|
|
8218
8229
|
let c = i ? Array.isArray(i) ? (D, b) => i.includes(D) ? { [D]: b } : void 0 : (D, b) => ({ [D]: b }) : (D, b, k) => {
|
|
8219
8230
|
let { _: x, ...C } = k.schemas;
|
|
8220
8231
|
return Vp(D, b, { ...k, schemas: C });
|
|
@@ -8596,8 +8607,8 @@ async function mb(e, t) {
|
|
|
8596
8607
|
}
|
|
8597
8608
|
var ad = {};
|
|
8598
8609
|
Bi(ad, { builders: () => gb, printer: () => vb, utils: () => Db });
|
|
8599
|
-
var gb = { join: Fp, line: Sp, softline: hy, hardline: On, literalline: Ep, group: Cp, conditionalGroup: ly, fill: xp, lineSuffix: Qs, lineSuffixBoundary: py, cursor: Zs, breakParent: Pi, ifBreak: uy, trim: dy, indent: Ci, indentIfBreak: cy, align:
|
|
8600
|
-
Bi(id, { addDanglingComment: () => jn, addLeadingComment: () =>
|
|
8610
|
+
var gb = { join: Fp, line: Sp, softline: hy, hardline: On, literalline: Ep, group: Cp, conditionalGroup: ly, fill: xp, lineSuffix: Qs, lineSuffixBoundary: py, cursor: Zs, breakParent: Pi, ifBreak: uy, trim: dy, indent: Ci, indentIfBreak: cy, align: br, addAlignmentToDoc: Ap, markAsRoot: sy, dedentToRoot: iy, dedent: oy, hardlineWithoutBreakParent: _o, literallineWithoutBreakParent: _p, label: fy, concat: (e) => e }, vb = { printDocToString: Oi }, Db = { willBreak: xy, traverseDoc: xo, findInDoc: Eo, mapDoc: Li, removeLines: Ey, stripTrailingHardline: $p, replaceEndOfLine: $y, canBreak: By }, yb = "3.3.3", id = {};
|
|
8611
|
+
Bi(id, { addDanglingComment: () => jn, addLeadingComment: () => pr, addTrailingComment: () => dr, getAlignmentSize: () => Fo, getIndentSize: () => _b, getMaxContinuousCount: () => Fb, getNextNonSpaceNonCommentCharacter: () => $b, getNextNonSpaceNonCommentCharacterIndex: () => Ib, getStringWidth: () => So, hasNewline: () => mn, hasNewlineInRange: () => Bb, hasSpaces: () => jb, isNextLineEmpty: () => Hb, isNextLineEmptyAfterIndex: () => Po, isPreviousLineEmpty: () => Rb, makeString: () => Lb, skip: () => wa, skipEverythingButNewLine: () => Lp, skipInlineComment: () => Bo, skipNewline: () => Hn, skipSpaces: () => yn, skipToLineEnd: () => Pp, skipTrailingComment: () => No, skipWhitespace: () => qy });
|
|
8601
8612
|
function bb(e, t) {
|
|
8602
8613
|
if (t === !1) return !1;
|
|
8603
8614
|
if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
|
|
@@ -8732,12 +8743,12 @@ Expected it to be ${p}.`;
|
|
|
8732
8743
|
var re = class extends Error {
|
|
8733
8744
|
constructor(s) {
|
|
8734
8745
|
super(he(s));
|
|
8735
|
-
|
|
8746
|
+
ar(this, "name", "InvalidDocError");
|
|
8736
8747
|
this.doc = s;
|
|
8737
8748
|
}
|
|
8738
8749
|
}, ge = re, at = () => {
|
|
8739
8750
|
}, Be = at;
|
|
8740
|
-
function
|
|
8751
|
+
function Ee(a) {
|
|
8741
8752
|
return { type: A, contents: a };
|
|
8742
8753
|
}
|
|
8743
8754
|
function Ne(a, s) {
|
|
@@ -8761,7 +8772,7 @@ Expected it to be ${p}.`;
|
|
|
8761
8772
|
function un(a, s) {
|
|
8762
8773
|
return { type: W, contents: a, groupId: s.groupId, negate: s.negate };
|
|
8763
8774
|
}
|
|
8764
|
-
var bt = { type: q }, K = { type: L, hard: !0 }, Pt = { type: L, hard: !0, literal: !0 }, ke = { type: L }, Pe = { type: L, soft: !0 },
|
|
8775
|
+
var bt = { type: q }, K = { type: L, hard: !0 }, Pt = { type: L, hard: !0, literal: !0 }, ke = { type: L }, Pe = { type: L, soft: !0 }, _e = [K, bt], Jn = [Pt, bt];
|
|
8765
8776
|
function cn(a, s) {
|
|
8766
8777
|
let l = [];
|
|
8767
8778
|
for (let p = 0; p < s.length; p++) p !== 0 && l.push(a), l.push(s[p]);
|
|
@@ -8852,7 +8863,7 @@ Expected it to be ${p}.`;
|
|
|
8852
8863
|
function Sa(a) {
|
|
8853
8864
|
return Sr(a, (s) => Hi(s));
|
|
8854
8865
|
}
|
|
8855
|
-
function ht(a, s =
|
|
8866
|
+
function ht(a, s = Jn) {
|
|
8856
8867
|
return Sr(a, (l) => typeof l == "string" ? cn(s, l.split(`
|
|
8857
8868
|
`)) : l);
|
|
8858
8869
|
}
|
|
@@ -8928,7 +8939,7 @@ Expected it to be ${p}.`;
|
|
|
8928
8939
|
`, "\f", "\r", " "], Vi = new Wi(zi), _t = Vi, Gi = class extends Error {
|
|
8929
8940
|
constructor(s, l, p = "type") {
|
|
8930
8941
|
super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);
|
|
8931
|
-
|
|
8942
|
+
ar(this, "name", "UnexpectedNodeError");
|
|
8932
8943
|
this.node = s;
|
|
8933
8944
|
}
|
|
8934
8945
|
}, Fr = Gi;
|
|
@@ -8947,12 +8958,12 @@ Expected it to be ${p}.`;
|
|
|
8947
8958
|
async function Ta(a, s) {
|
|
8948
8959
|
if (a.language === "yaml") {
|
|
8949
8960
|
let l = a.value.trim(), p = l ? await s(l, { parser: "yaml" }) : "";
|
|
8950
|
-
return xt([a.startDelimiter, a.explicitLanguage,
|
|
8961
|
+
return xt([a.startDelimiter, a.explicitLanguage, _e, p, p ? _e : "", a.endDelimiter]);
|
|
8951
8962
|
}
|
|
8952
8963
|
}
|
|
8953
8964
|
var Ki = Ta;
|
|
8954
8965
|
function Cn(a, s = !0) {
|
|
8955
|
-
return [
|
|
8966
|
+
return [Ee([Pe, a]), s ? Pe : ""];
|
|
8956
8967
|
}
|
|
8957
8968
|
function Vt(a, s) {
|
|
8958
8969
|
let l = a.type === "NGRoot" ? a.node.type === "NGMicrosyntax" && a.node.body.length === 1 && a.node.body[0].type === "NGMicrosyntaxExpression" ? a.node.body[0].expression : a.node : a.type === "JsExpressionRoot" ? a.node : a;
|
|
@@ -8984,7 +8995,7 @@ Expected it to be ${p}.`;
|
|
|
8984
8995
|
let l = a.plugins.flatMap((f) => f.languages ?? []), p = Xi(l, s.language) ?? ja(l, s.physicalFile) ?? ja(l, s.file) ?? (s.physicalFile, void 0);
|
|
8985
8996
|
return p == null ? void 0 : p.parsers[0];
|
|
8986
8997
|
}
|
|
8987
|
-
var
|
|
8998
|
+
var Xn = Qi, w = "inline", M = { area: "none", base: "none", basefont: "none", datalist: "none", head: "none", link: "none", meta: "none", noembed: "none", noframes: "none", param: "block", rp: "none", script: "block", style: "none", template: "inline", title: "none", html: "block", body: "block", address: "block", blockquote: "block", center: "block", dialog: "block", div: "block", figure: "block", figcaption: "block", footer: "block", form: "block", header: "block", hr: "block", legend: "block", listing: "block", main: "block", p: "block", plaintext: "block", pre: "block", search: "block", xmp: "block", slot: "contents", ruby: "ruby", rt: "ruby-text", article: "block", aside: "block", h1: "block", h2: "block", h3: "block", h4: "block", h5: "block", h6: "block", hgroup: "block", nav: "block", section: "block", dir: "block", dd: "block", dl: "block", dt: "block", menu: "block", ol: "block", ul: "block", li: "list-item", table: "table", caption: "table-caption", colgroup: "table-column-group", col: "table-column", thead: "table-header-group", tbody: "table-row-group", tfoot: "table-footer-group", tr: "table-row", td: "table-cell", th: "table-cell", input: "inline-block", button: "inline-block", fieldset: "block", marquee: "inline-block", source: "block", track: "block", details: "block", summary: "block", meter: "inline-block", progress: "inline-block", object: "inline-block", video: "inline-block", audio: "inline-block", select: "inline-block", option: "block", optgroup: "block" }, H = "normal", Z = { listing: "pre", plaintext: "pre", pre: "pre", xmp: "pre", nobr: "nowrap", table: "initial", textarea: "pre-wrap" };
|
|
8988
8999
|
function ve(a) {
|
|
8989
9000
|
return a.type === "element" && !a.hasExplicitNamespace && !["html", "svg"].includes(a.namespace);
|
|
8990
9001
|
}
|
|
@@ -8995,7 +9006,7 @@ Expected it to be ${p}.`;
|
|
|
8995
9006
|
return p && (s = s.slice(0, -p.length)), { leadingWhitespace: l, trailingWhitespace: p, text: s };
|
|
8996
9007
|
};
|
|
8997
9008
|
function Te(a, s) {
|
|
8998
|
-
return !!(a.type === "ieConditionalComment" && a.lastChild && !a.lastChild.isSelfClosing && !a.lastChild.endSourceSpan || a.type === "ieConditionalComment" && !a.complete ||
|
|
9009
|
+
return !!(a.type === "ieConditionalComment" && a.lastChild && !a.lastChild.isSelfClosing && !a.lastChild.endSourceSpan || a.type === "ieConditionalComment" && !a.complete || Qn(a) && a.children.some((l) => l.type !== "text" && l.type !== "interpolation") || ns(a, s) && !Xe(a) && a.type !== "interpolation");
|
|
8999
9010
|
}
|
|
9000
9011
|
function Ae(a) {
|
|
9001
9012
|
return a.type === "attribute" || !a.parent || !a.prev ? !1 : ft(a.prev);
|
|
@@ -9024,11 +9035,11 @@ Expected it to be ${p}.`;
|
|
|
9024
9035
|
if (f && !a.prev && (p = (l = a.parent) == null ? void 0 : l.tagDefinition) != null && p.ignoreFirstLf) return a.type === "interpolation";
|
|
9025
9036
|
return f;
|
|
9026
9037
|
function y() {
|
|
9027
|
-
return Bt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.prev && (a.prev.type === "text" || a.prev.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 :
|
|
9038
|
+
return Bt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.prev && (a.prev.type === "text" || a.prev.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : Qn(a.parent) ? !0 : !(!a.prev && (a.parent.type === "root" || Qn(a) && a.parent || Xe(a.parent) || Oa(a.parent, s) || !Kd(a.parent.cssDisplay)) || a.prev && !Qd(a.prev.cssDisplay));
|
|
9028
9039
|
}
|
|
9029
9040
|
}
|
|
9030
9041
|
function qd(a, s) {
|
|
9031
|
-
return Bt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.next && (a.next.type === "text" || a.next.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 :
|
|
9042
|
+
return Bt(a) || a.type === "angularControlFlowBlock" ? !1 : (a.type === "text" || a.type === "interpolation") && a.next && (a.next.type === "text" || a.next.type === "interpolation") ? !0 : !a.parent || a.parent.cssDisplay === "none" ? !1 : Qn(a.parent) ? !0 : !(!a.next && (a.parent.type === "root" || Qn(a) && a.parent || Xe(a.parent) || Oa(a.parent, s) || !Jd(a.parent.cssDisplay)) || a.next && !Xd(a.next.cssDisplay));
|
|
9032
9043
|
}
|
|
9033
9044
|
function Hd(a) {
|
|
9034
9045
|
return Zd(a.cssDisplay) && !Xe(a);
|
|
@@ -9098,19 +9109,19 @@ Expected it to be ${p}.`;
|
|
|
9098
9109
|
let { name: l, attrMap: p } = a;
|
|
9099
9110
|
if (l !== "script" || Object.prototype.hasOwnProperty.call(p, "src")) return;
|
|
9100
9111
|
let { type: f, lang: y } = a.attrMap;
|
|
9101
|
-
return !y && !f ? "babel" :
|
|
9112
|
+
return !y && !f ? "babel" : Xn(s, { language: y }) ?? il(f);
|
|
9102
9113
|
}
|
|
9103
9114
|
function Gd(a, s) {
|
|
9104
9115
|
if (!ns(a, s)) return;
|
|
9105
9116
|
let { attrMap: l } = a;
|
|
9106
9117
|
if (Object.prototype.hasOwnProperty.call(l, "src")) return;
|
|
9107
9118
|
let { type: p, lang: f } = l;
|
|
9108
|
-
return
|
|
9119
|
+
return Xn(s, { language: f }) ?? il(p);
|
|
9109
9120
|
}
|
|
9110
9121
|
function Yd(a, s) {
|
|
9111
9122
|
if (a.name !== "style") return;
|
|
9112
9123
|
let { lang: l } = a.attrMap;
|
|
9113
|
-
return l ?
|
|
9124
|
+
return l ? Xn(s, { language: l }) : "css";
|
|
9114
9125
|
}
|
|
9115
9126
|
function sl(a, s) {
|
|
9116
9127
|
return Vd(a, s) ?? Yd(a, s) ?? Gd(a, s);
|
|
@@ -9133,7 +9144,7 @@ Expected it to be ${p}.`;
|
|
|
9133
9144
|
function Zd(a) {
|
|
9134
9145
|
return !Nr(a) && a !== "inline-block";
|
|
9135
9146
|
}
|
|
9136
|
-
function
|
|
9147
|
+
function Qn(a) {
|
|
9137
9148
|
return ol(a).startsWith("pre");
|
|
9138
9149
|
}
|
|
9139
9150
|
function eh(a, s) {
|
|
@@ -9146,7 +9157,7 @@ Expected it to be ${p}.`;
|
|
|
9146
9157
|
}
|
|
9147
9158
|
function th(a, s) {
|
|
9148
9159
|
var l;
|
|
9149
|
-
if (
|
|
9160
|
+
if (Zn(a, s)) return "block";
|
|
9150
9161
|
if (((l = a.prev) == null ? void 0 : l.type) === "comment") {
|
|
9151
9162
|
let f = a.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);
|
|
9152
9163
|
if (f) return f[1];
|
|
@@ -9190,13 +9201,13 @@ Expected it to be ${p}.`;
|
|
|
9190
9201
|
}
|
|
9191
9202
|
var rh = /* @__PURE__ */ new Set(["template", "style", "script"]);
|
|
9192
9203
|
function Oa(a, s) {
|
|
9193
|
-
return
|
|
9204
|
+
return Zn(a, s) && !rh.has(a.fullName);
|
|
9194
9205
|
}
|
|
9195
|
-
function
|
|
9206
|
+
function Zn(a, s) {
|
|
9196
9207
|
return s.parser === "vue" && a.type === "element" && a.parent.type === "root" && a.fullName.toLowerCase() !== "html";
|
|
9197
9208
|
}
|
|
9198
9209
|
function ns(a, s) {
|
|
9199
|
-
return
|
|
9210
|
+
return Zn(a, s) && (Oa(a, s) || a.attrMap.lang && a.attrMap.lang !== "html");
|
|
9200
9211
|
}
|
|
9201
9212
|
function ah(a) {
|
|
9202
9213
|
let s = a.fullName;
|
|
@@ -9204,22 +9215,22 @@ Expected it to be ${p}.`;
|
|
|
9204
9215
|
}
|
|
9205
9216
|
function ih(a, s) {
|
|
9206
9217
|
let l = a.parent;
|
|
9207
|
-
if (!
|
|
9218
|
+
if (!Zn(l, s)) return !1;
|
|
9208
9219
|
let p = l.fullName, f = a.fullName;
|
|
9209
9220
|
return p === "script" && f === "setup" || p === "style" && f === "vars";
|
|
9210
9221
|
}
|
|
9211
9222
|
function cl(a, s = a.value) {
|
|
9212
|
-
return a.parent.isWhitespaceSensitive ? a.parent.isIndentationSensitive ? ht(s) : ht(ll(ae(s)),
|
|
9223
|
+
return a.parent.isWhitespaceSensitive ? a.parent.isIndentationSensitive ? ht(s) : ht(ll(ae(s)), _e) : cn(ke, _t.split(s));
|
|
9213
9224
|
}
|
|
9214
9225
|
function pl(a, s) {
|
|
9215
|
-
return
|
|
9226
|
+
return Zn(a, s) && a.name === "script";
|
|
9216
9227
|
}
|
|
9217
9228
|
var dl = /\{\{(.+?)\}\}/su;
|
|
9218
9229
|
async function sh(a, s) {
|
|
9219
9230
|
let l = [];
|
|
9220
9231
|
for (let [p, f] of a.split(dl).entries()) if (p % 2 === 0) l.push(ht(f));
|
|
9221
9232
|
else try {
|
|
9222
|
-
l.push(oe(["{{",
|
|
9233
|
+
l.push(oe(["{{", Ee([ke, await wt(f, s, { parser: "__ng_interpolation", __isInHtmlInterpolation: !0 })]), ke, "}}"]));
|
|
9223
9234
|
} catch {
|
|
9224
9235
|
l.push("{{", ht(f), "}}");
|
|
9225
9236
|
}
|
|
@@ -9253,8 +9264,8 @@ Expected it to be ${p}.`;
|
|
|
9253
9264
|
function yh(a) {
|
|
9254
9265
|
let s = a.length, l, p, f, y, E, B = 0, R;
|
|
9255
9266
|
function G(ue) {
|
|
9256
|
-
let
|
|
9257
|
-
if (Ue) return [
|
|
9267
|
+
let Fe, Ue = ue.exec(a.substring(B));
|
|
9268
|
+
if (Ue) return [Fe] = Ue, B += Fe.length, Fe;
|
|
9258
9269
|
}
|
|
9259
9270
|
let U = [];
|
|
9260
9271
|
for (; ; ) {
|
|
@@ -9288,9 +9299,9 @@ Expected it to be ${p}.`;
|
|
|
9288
9299
|
}
|
|
9289
9300
|
}
|
|
9290
9301
|
function fe() {
|
|
9291
|
-
let ue = !1,
|
|
9292
|
-
for (st = 0; st < p.length; st++) ce = p[st], We = ce[ce.length - 1], Me = ce.substring(0, ce.length - 1), lt = parseInt(Me, 10),
|
|
9293
|
-
if (!ue) z.source = { value: l, startOffset: R },
|
|
9302
|
+
let ue = !1, Fe, Ue, Qe, st, z = {}, ce, We, Me, lt, rr;
|
|
9303
|
+
for (st = 0; st < p.length; st++) ce = p[st], We = ce[ce.length - 1], Me = ce.substring(0, ce.length - 1), lt = parseInt(Me, 10), rr = parseFloat(Me), fl.test(Me) && We === "w" ? ((Fe || Ue) && (ue = !0), lt === 0 ? ue = !0 : Fe = lt) : Dh.test(Me) && We === "x" ? ((Fe || Ue || Qe) && (ue = !0), rr < 0 ? ue = !0 : Ue = rr) : fl.test(Me) && We === "h" ? ((Qe || Ue) && (ue = !0), lt === 0 ? ue = !0 : Qe = lt) : ue = !0;
|
|
9304
|
+
if (!ue) z.source = { value: l, startOffset: R }, Fe && (z.width = { value: Fe }), Ue && (z.density = { value: Ue }), Qe && (z.height = { value: Qe }), U.push(z);
|
|
9294
9305
|
else throw new Error(`Invalid srcset descriptor found in "${a}" at "${ce}".`);
|
|
9295
9306
|
}
|
|
9296
9307
|
}
|
|
@@ -9309,7 +9320,7 @@ Expected it to be ${p}.`;
|
|
|
9309
9320
|
return Cn(cn([",", ke], y.map((U, De) => {
|
|
9310
9321
|
let fe = [U], ue = B[De];
|
|
9311
9322
|
if (ue) {
|
|
9312
|
-
let
|
|
9323
|
+
let Fe = E - U.length + 1, Ue = G - R[De], Qe = " ".repeat(Fe + Ue);
|
|
9313
9324
|
fe.push(yt(Qe, " "), ue + f);
|
|
9314
9325
|
}
|
|
9315
9326
|
return fe;
|
|
@@ -9452,7 +9463,7 @@ Expected it to be ${p}.`;
|
|
|
9452
9463
|
}
|
|
9453
9464
|
function Lr(a) {
|
|
9454
9465
|
var s;
|
|
9455
|
-
return ((s = a.lastChild) == null ? void 0 : s.isTrailingSpaceSensitive) && !a.lastChild.hasTrailingSpaces && !He(ts(a.lastChild)) && !
|
|
9466
|
+
return ((s = a.lastChild) == null ? void 0 : s.isTrailingSpaceSensitive) && !a.lastChild.hasTrailingSpaces && !He(ts(a.lastChild)) && !Qn(a);
|
|
9456
9467
|
}
|
|
9457
9468
|
function Or(a) {
|
|
9458
9469
|
return !a.next && !a.hasTrailingSpaces && a.isTrailingSpaceSensitive && He(ts(a));
|
|
@@ -9471,7 +9482,7 @@ Expected it to be ${p}.`;
|
|
|
9471
9482
|
var p;
|
|
9472
9483
|
let { node: f } = a;
|
|
9473
9484
|
if (!ss(f.attrs)) return f.isSelfClosing ? " " : "";
|
|
9474
|
-
let y = ((p = f.prev) == null ? void 0 : p.type) === "comment" && Hh(f.prev.value), E = typeof y == "boolean" ? () => y : Array.isArray(y) ? (De) => y.includes(De.rawName) : () => !1, B = a.map(({ node: De }) => E(De) ? ht(s.originalText.slice(Ia(De), Ma(De))) : l(), "attrs"), R = f.type === "element" && f.fullName === "script" && f.attrs.length === 1 && f.attrs[0].fullName === "src" && f.children.length === 0, G = s.singleAttributePerLine && f.attrs.length > 1 && !
|
|
9485
|
+
let y = ((p = f.prev) == null ? void 0 : p.type) === "comment" && Hh(f.prev.value), E = typeof y == "boolean" ? () => y : Array.isArray(y) ? (De) => y.includes(De.rawName) : () => !1, B = a.map(({ node: De }) => E(De) ? ht(s.originalText.slice(Ia(De), Ma(De))) : l(), "attrs"), R = f.type === "element" && f.fullName === "script" && f.attrs.length === 1 && f.attrs[0].fullName === "src" && f.children.length === 0, G = s.singleAttributePerLine && f.attrs.length > 1 && !Zn(f, s) ? _e : ke, U = [Ee([R ? " " : ke, cn(G, B)])];
|
|
9475
9486
|
return f.firstChild && qa(f.firstChild) || f.isSelfClosing && Lr(f.parent) || R ? U.push(f.isSelfClosing ? " " : "") : U.push(s.bracketSameLine ? f.isSelfClosing ? " " : "" : f.isSelfClosing ? ke : Pe), U;
|
|
9476
9487
|
}
|
|
9477
9488
|
function Wh(a) {
|
|
@@ -9533,7 +9544,7 @@ Expected it to be ${p}.`;
|
|
|
9533
9544
|
let p = sl(l, s);
|
|
9534
9545
|
return p ? async (f, y) => {
|
|
9535
9546
|
let E = bl(l, s), B = /^\s*$/u.test(E), R = "";
|
|
9536
|
-
return B || (R = await f(ae(E), { parser: p, __embeddedInHtml: !0 }), B = R === ""), [Sn(l, s), oe(us(a, s, y)), B ? "" :
|
|
9547
|
+
return B || (R = await f(ae(E), { parser: p, __embeddedInHtml: !0 }), B = R === ""), [Sn(l, s), oe(us(a, s, y)), B ? "" : _e, R, B ? "" : _e, os(l, s), xn(l, s)];
|
|
9537
9548
|
} : void 0;
|
|
9538
9549
|
}
|
|
9539
9550
|
break;
|
|
@@ -9550,7 +9561,7 @@ Expected it to be ${p}.`;
|
|
|
9550
9561
|
};
|
|
9551
9562
|
} else if (l.parent.type === "interpolation") return async (p) => {
|
|
9552
9563
|
let f = { __isInHtmlInterpolation: !0, __embeddedInHtml: !0 };
|
|
9553
|
-
return s.parser === "angular" ? f.parser = "__ng_interpolation" : s.parser === "vue" ? f.parser = is(a, s) ? "__vue_ts_expression" : "__vue_expression" : f.parser = "__js_expression", [
|
|
9564
|
+
return s.parser === "angular" ? f.parser = "__ng_interpolation" : s.parser === "vue" ? f.parser = is(a, s) ? "__vue_ts_expression" : "__vue_expression" : f.parser = "__js_expression", [Ee([ke, await p(l.value, f)]), l.parent.next && _n(l.parent.next) ? " " : ke];
|
|
9554
9565
|
};
|
|
9555
9566
|
break;
|
|
9556
9567
|
case "attribute":
|
|
@@ -9608,33 +9619,33 @@ Expected it to be ${p}.`;
|
|
|
9608
9619
|
return l();
|
|
9609
9620
|
}
|
|
9610
9621
|
function Ha(a, s) {
|
|
9611
|
-
return He(a) && He(s) ? a.isTrailingSpaceSensitive ? a.hasTrailingSpaces ? es(s) ?
|
|
9622
|
+
return He(a) && He(s) ? a.isTrailingSpaceSensitive ? a.hasTrailingSpaces ? es(s) ? _e : ke : "" : es(s) ? _e : Pe : Ra(a) && (Ae(s) || s.firstChild || s.isSelfClosing || s.type === "element" && s.attrs.length > 0) || a.type === "element" && a.isSelfClosing && _n(s) ? "" : !s.isLeadingSpaceSensitive || es(s) || _n(s) && a.lastChild && Or(a.lastChild) && a.lastChild.lastChild && Or(a.lastChild.lastChild) ? _e : s.hasLeadingSpaces ? ke : Pe;
|
|
9612
9623
|
}
|
|
9613
9624
|
function ds(a, s, l) {
|
|
9614
9625
|
let { node: p } = a;
|
|
9615
9626
|
if (el(p)) return [bt, ...a.map((y) => {
|
|
9616
9627
|
let E = y.node, B = E.prev ? Ha(E.prev, E) : "";
|
|
9617
|
-
return [B ? [B, La(E.prev) ?
|
|
9628
|
+
return [B ? [B, La(E.prev) ? _e : ""] : "", qr(y, s, l)];
|
|
9618
9629
|
}, "children")];
|
|
9619
9630
|
let f = p.children.map(() => Symbol(""));
|
|
9620
9631
|
return a.map((y, E) => {
|
|
9621
9632
|
let B = y.node;
|
|
9622
9633
|
if (He(B)) {
|
|
9623
9634
|
if (B.prev && He(B.prev)) {
|
|
9624
|
-
let
|
|
9625
|
-
if (
|
|
9635
|
+
let Fe = Ha(B.prev, B);
|
|
9636
|
+
if (Fe) return La(B.prev) ? [_e, _e, qr(y, s, l)] : [Fe, qr(y, s, l)];
|
|
9626
9637
|
}
|
|
9627
9638
|
return qr(y, s, l);
|
|
9628
9639
|
}
|
|
9629
9640
|
let R = [], G = [], U = [], De = [], fe = B.prev ? Ha(B.prev, B) : "", ue = B.next ? Ha(B, B.next) : "";
|
|
9630
|
-
return fe && (La(B.prev) ? R.push(
|
|
9641
|
+
return fe && (La(B.prev) ? R.push(_e, _e) : fe === _e ? R.push(_e) : He(B.prev) ? G.push(fe) : G.push(yt("", Pe, { groupId: f[E - 1] }))), ue && (La(B) ? He(B.next) && De.push(_e, _e) : ue === _e ? He(B.next) && De.push(_e) : U.push(ue)), [...R, oe([...G, oe([qr(y, s, l), ...U], { id: f[E] })]), ...De];
|
|
9631
9642
|
}, "children");
|
|
9632
9643
|
}
|
|
9633
9644
|
function of(a, s, l) {
|
|
9634
9645
|
let { node: p } = a, f = [];
|
|
9635
9646
|
lf(a) && f.push("} "), f.push("@", p.name), p.parameters && f.push(" (", oe(l("parameters")), ")"), f.push(" {");
|
|
9636
9647
|
let y = wl(p);
|
|
9637
|
-
return p.children.length > 0 ? (p.firstChild.hasLeadingSpaces = !0, p.lastChild.hasTrailingSpaces = !0, f.push(
|
|
9648
|
+
return p.children.length > 0 ? (p.firstChild.hasLeadingSpaces = !0, p.lastChild.hasTrailingSpaces = !0, f.push(Ee([_e, ds(a, s, l)])), y && f.push(_e, "}")) : y && f.push("}"), oe(f, { shouldBreak: !0 });
|
|
9638
9649
|
}
|
|
9639
9650
|
function wl(a) {
|
|
9640
9651
|
var s, l;
|
|
@@ -9645,20 +9656,20 @@ Expected it to be ${p}.`;
|
|
|
9645
9656
|
return (s == null ? void 0 : s.type) === "angularControlFlowBlock" && !Ae(s) && !wl(s);
|
|
9646
9657
|
}
|
|
9647
9658
|
function uf(a, s, l) {
|
|
9648
|
-
return [
|
|
9659
|
+
return [Ee([Pe, cn([";", ke], a.map(l, "children"))]), Pe];
|
|
9649
9660
|
}
|
|
9650
9661
|
function cf(a, s, l) {
|
|
9651
9662
|
let { node: p } = a;
|
|
9652
|
-
return [Ir(p, s), oe([p.switchValue.trim(), ", ", p.clause, p.cases.length > 0 ? [",",
|
|
9663
|
+
return [Ir(p, s), oe([p.switchValue.trim(), ", ", p.clause, p.cases.length > 0 ? [",", Ee([ke, cn(ke, a.map(l, "cases"))])] : "", Pe]), jr(p, s)];
|
|
9653
9664
|
}
|
|
9654
9665
|
function pf(a, s, l) {
|
|
9655
9666
|
let { node: p } = a;
|
|
9656
|
-
return [p.value, " {", oe([
|
|
9667
|
+
return [p.value, " {", oe([Ee([Pe, a.map(({ node: f }) => f.type === "text" && !_t.trim(f.value) ? "" : l(), "expression")]), Pe]), "}"];
|
|
9657
9668
|
}
|
|
9658
9669
|
function df(a, s, l) {
|
|
9659
9670
|
let { node: p } = a;
|
|
9660
9671
|
if (Te(p, s)) return [Sn(p, s), oe(us(a, s, l)), ht(bl(p, s)), ...os(p, s), xn(p, s)];
|
|
9661
|
-
let f = p.children.length === 1 && (p.firstChild.type === "interpolation" || p.firstChild.type === "angularIcuExpression") && p.firstChild.isLeadingSpaceSensitive && !p.firstChild.hasLeadingSpaces && p.lastChild.isTrailingSpaceSensitive && !p.lastChild.hasTrailingSpaces, y = Symbol("element-attr-group-id"), E = (U) => oe([oe(us(a, s, l), { id: y }), U, os(p, s)]), B = (U) => f ? un(U, { groupId: y }) : (Xe(p) || Oa(p, s)) && p.parent.type === "root" && s.parser === "vue" && !s.vueIndentScriptAndStyle ? U :
|
|
9672
|
+
let f = p.children.length === 1 && (p.firstChild.type === "interpolation" || p.firstChild.type === "angularIcuExpression") && p.firstChild.isLeadingSpaceSensitive && !p.firstChild.hasLeadingSpaces && p.lastChild.isTrailingSpaceSensitive && !p.lastChild.hasTrailingSpaces, y = Symbol("element-attr-group-id"), E = (U) => oe([oe(us(a, s, l), { id: y }), U, os(p, s)]), B = (U) => f ? un(U, { groupId: y }) : (Xe(p) || Oa(p, s)) && p.parent.type === "root" && s.parser === "vue" && !s.vueIndentScriptAndStyle ? U : Ee(U), R = () => f ? yt(Pe, "", { groupId: y }) : p.firstChild.hasLeadingSpaces && p.firstChild.isLeadingSpaceSensitive ? ke : p.firstChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive ? dt(Pe) : Pe, G = () => (p.next ? _n(p.next) : Lr(p.parent)) ? p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? " " : "" : f ? yt(Pe, "", { groupId: y }) : p.lastChild.hasTrailingSpaces && p.lastChild.isTrailingSpaceSensitive ? ke : (p.lastChild.type === "comment" || p.lastChild.type === "text" && p.isWhitespaceSensitive && p.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${s.tabWidth * (a.ancestors.length - 1)}}$`, "u").test(p.lastChild.value) ? "" : Pe;
|
|
9662
9673
|
return p.children.length === 0 ? E(p.hasDanglingSpaces && p.isDanglingSpaceSensitive ? ke : "") : E([Ud(p) ? bt : "", B([R(), ds(a, s, l)]), G()]);
|
|
9663
9674
|
}
|
|
9664
9675
|
function Ua(a) {
|
|
@@ -9879,7 +9890,7 @@ Expected it to be ${p}.`;
|
|
|
9879
9890
|
case "front-matter":
|
|
9880
9891
|
return ht(p.raw);
|
|
9881
9892
|
case "root":
|
|
9882
|
-
return s.__onHtmlRoot && s.__onHtmlRoot(p), [oe(ds(a, s, l)),
|
|
9893
|
+
return s.__onHtmlRoot && s.__onHtmlRoot(p), [oe(ds(a, s, l)), _e];
|
|
9883
9894
|
case "element":
|
|
9884
9895
|
case "ieConditionalComment":
|
|
9885
9896
|
return df(a, s, l);
|
|
@@ -9890,7 +9901,7 @@ Expected it to be ${p}.`;
|
|
|
9890
9901
|
case "angularControlFlowBlockParameter":
|
|
9891
9902
|
return _t.trim(p.expression);
|
|
9892
9903
|
case "angularLetDeclaration":
|
|
9893
|
-
return oe(["@let ", oe([p.id, " =", oe(
|
|
9904
|
+
return oe(["@let ", oe([p.id, " =", oe(Ee([ke, l("init")]))]), ";"]);
|
|
9894
9905
|
case "angularLetDeclarationInitializer":
|
|
9895
9906
|
return p.value;
|
|
9896
9907
|
case "angularIcuExpression":
|
|
@@ -9905,7 +9916,7 @@ Expected it to be ${p}.`;
|
|
|
9905
9916
|
case "text": {
|
|
9906
9917
|
if (p.parent.type === "interpolation") {
|
|
9907
9918
|
let y = /\n[^\S\n]*$/u, E = y.test(p.value), B = E ? p.value.replace(y, "") : p.value;
|
|
9908
|
-
return [ht(B), E ?
|
|
9919
|
+
return [ht(B), E ? _e : ""];
|
|
9909
9920
|
}
|
|
9910
9921
|
let f = Sa([Sn(p, s), ...cl(p), xn(p, s)]);
|
|
9911
9922
|
return Array.isArray(f) ? Dt(f) : f;
|
|
@@ -10114,25 +10125,25 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10114
10125
|
!Hr[s] && Ga(s) === null && (Hr[s] = new ne({ canSelfClose: !1 }));
|
|
10115
10126
|
})), Hr[a] ?? Ml;
|
|
10116
10127
|
}
|
|
10117
|
-
var
|
|
10128
|
+
var er = class {
|
|
10118
10129
|
constructor(a, s) {
|
|
10119
10130
|
this.sourceSpan = a, this.i18n = s;
|
|
10120
10131
|
}
|
|
10121
|
-
}, zf = class extends
|
|
10132
|
+
}, zf = class extends er {
|
|
10122
10133
|
constructor(a, s, l, p) {
|
|
10123
10134
|
super(s, p), this.value = a, this.tokens = l, this.type = "text";
|
|
10124
10135
|
}
|
|
10125
10136
|
visit(a, s) {
|
|
10126
10137
|
return a.visitText(this, s);
|
|
10127
10138
|
}
|
|
10128
|
-
}, Vf = class extends
|
|
10139
|
+
}, Vf = class extends er {
|
|
10129
10140
|
constructor(a, s, l, p) {
|
|
10130
10141
|
super(s, p), this.value = a, this.tokens = l, this.type = "cdata";
|
|
10131
10142
|
}
|
|
10132
10143
|
visit(a, s) {
|
|
10133
10144
|
return a.visitCdata(this, s);
|
|
10134
10145
|
}
|
|
10135
|
-
}, Gf = class extends
|
|
10146
|
+
}, Gf = class extends er {
|
|
10136
10147
|
constructor(a, s, l, p, f, y) {
|
|
10137
10148
|
super(p, y), this.switchValue = a, this.type = s, this.cases = l, this.switchValueSourceSpan = f;
|
|
10138
10149
|
}
|
|
@@ -10146,7 +10157,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10146
10157
|
visit(a, s) {
|
|
10147
10158
|
return a.visitExpansionCase(this, s);
|
|
10148
10159
|
}
|
|
10149
|
-
}, Kf = class extends
|
|
10160
|
+
}, Kf = class extends er {
|
|
10150
10161
|
constructor(a, s, l, p, f, y, E) {
|
|
10151
10162
|
super(l, E), this.name = a, this.value = s, this.keySpan = p, this.valueSpan = f, this.valueTokens = y, this.type = "attribute";
|
|
10152
10163
|
}
|
|
@@ -10156,7 +10167,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10156
10167
|
get nameSpan() {
|
|
10157
10168
|
return this.keySpan;
|
|
10158
10169
|
}
|
|
10159
|
-
}, dn = class extends
|
|
10170
|
+
}, dn = class extends er {
|
|
10160
10171
|
constructor(a, s, l, p, f, y = null, E = null, B) {
|
|
10161
10172
|
super(p, B), this.name = a, this.attrs = s, this.children = l, this.startSourceSpan = f, this.endSourceSpan = y, this.nameSpan = E, this.type = "element";
|
|
10162
10173
|
}
|
|
@@ -10177,7 +10188,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10177
10188
|
visit(a, s) {
|
|
10178
10189
|
return a.visitDocType(this, s);
|
|
10179
10190
|
}
|
|
10180
|
-
},
|
|
10191
|
+
}, tr = class extends er {
|
|
10181
10192
|
constructor(a, s, l, p, f, y, E = null, B) {
|
|
10182
10193
|
super(p, B), this.name = a, this.parameters = s, this.children = l, this.nameSpan = f, this.startSourceSpan = y, this.endSourceSpan = E, this.type = "block";
|
|
10183
10194
|
}
|
|
@@ -10281,7 +10292,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10281
10292
|
return f.tokenize(), new rm(hm(f.tokens), f.errors, f.nonNormalizedIcuExpressions);
|
|
10282
10293
|
}
|
|
10283
10294
|
var im = /\r\n?/g;
|
|
10284
|
-
function
|
|
10295
|
+
function nr(a) {
|
|
10285
10296
|
return `Unexpected character "${a === 0 ? "EOF" : String.fromCharCode(a)}"`;
|
|
10286
10297
|
}
|
|
10287
10298
|
function Wl(a) {
|
|
@@ -10428,7 +10439,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10428
10439
|
}
|
|
10429
10440
|
_requireCharCode(a) {
|
|
10430
10441
|
let s = this._cursor.clone();
|
|
10431
|
-
if (!this._attemptCharCode(a)) throw this._createError(
|
|
10442
|
+
if (!this._attemptCharCode(a)) throw this._createError(nr(this._cursor.peek()), this._cursor.getSpan(s));
|
|
10432
10443
|
}
|
|
10433
10444
|
_attemptStr(a) {
|
|
10434
10445
|
let s = a.length;
|
|
@@ -10443,18 +10454,18 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10443
10454
|
}
|
|
10444
10455
|
_requireStr(a) {
|
|
10445
10456
|
let s = this._cursor.clone();
|
|
10446
|
-
if (!this._attemptStr(a)) throw this._createError(
|
|
10457
|
+
if (!this._attemptStr(a)) throw this._createError(nr(this._cursor.peek()), this._cursor.getSpan(s));
|
|
10447
10458
|
}
|
|
10448
10459
|
_requireStrCaseInsensitive(a) {
|
|
10449
10460
|
let s = this._cursor.clone();
|
|
10450
|
-
if (!this._attemptStrCaseInsensitive(a)) throw this._createError(
|
|
10461
|
+
if (!this._attemptStrCaseInsensitive(a)) throw this._createError(nr(this._cursor.peek()), this._cursor.getSpan(s));
|
|
10451
10462
|
}
|
|
10452
10463
|
_attemptCharCodeUntilFn(a) {
|
|
10453
10464
|
for (; !a(this._cursor.peek()); ) this._cursor.advance();
|
|
10454
10465
|
}
|
|
10455
10466
|
_requireCharCodeUntilFn(a, s) {
|
|
10456
10467
|
let l = this._cursor.clone();
|
|
10457
|
-
if (this._attemptCharCodeUntilFn(a), this._cursor.diff(l) < s) throw this._createError(
|
|
10468
|
+
if (this._attemptCharCodeUntilFn(a), this._cursor.diff(l) < s) throw this._createError(nr(this._cursor.peek()), this._cursor.getSpan(l));
|
|
10458
10469
|
}
|
|
10459
10470
|
_attemptUntilChar(a) {
|
|
10460
10471
|
for (; this._cursor.peek() !== a; ) this._cursor.advance();
|
|
@@ -10526,7 +10537,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10526
10537
|
_consumeTagOpen(a) {
|
|
10527
10538
|
let s, l, p, f = [];
|
|
10528
10539
|
try {
|
|
10529
|
-
if (!Wa(this._cursor.peek())) throw this._createError(
|
|
10540
|
+
if (!Wa(this._cursor.peek())) throw this._createError(nr(this._cursor.peek()), this._cursor.getSpan(a));
|
|
10530
10541
|
for (p = this._consumeTagOpenStart(a), l = p.parts[0], s = p.parts[1], this._attemptCharCodeUntilFn(Ie); this._cursor.peek() !== 47 && this._cursor.peek() !== 62 && this._cursor.peek() !== 60 && this._cursor.peek() !== 0; ) {
|
|
10531
10542
|
let [E, B] = this._consumeAttributeName();
|
|
10532
10543
|
if (this._attemptCharCodeUntilFn(Ie), this._attemptCharCode(61)) {
|
|
@@ -10558,7 +10569,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10558
10569
|
}
|
|
10559
10570
|
_consumeAttributeName() {
|
|
10560
10571
|
let a = this._cursor.peek();
|
|
10561
|
-
if (a === 39 || a === 34) throw this._createError(
|
|
10572
|
+
if (a === 39 || a === 34) throw this._createError(nr(a), this._cursor.getSpan());
|
|
10562
10573
|
this._beginToken(14);
|
|
10563
10574
|
let s = this._consumePrefixAndName();
|
|
10564
10575
|
return this._endToken(s), s;
|
|
@@ -10856,8 +10867,8 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10856
10867
|
this.getTagDefinition = a;
|
|
10857
10868
|
}
|
|
10858
10869
|
parse(a, s, l, p = !1, f) {
|
|
10859
|
-
let y = (ue) => (
|
|
10860
|
-
let st = R(ue,
|
|
10870
|
+
let y = (ue) => (Fe, ...Ue) => ue(Fe.toLowerCase(), ...Ue), E = p ? this.getTagDefinition : y(this.getTagDefinition), B = (ue) => E(ue).getContentType(), R = p ? f : y(f), G = am(a, s, f ? (ue, Fe, Ue, Qe) => {
|
|
10871
|
+
let st = R(ue, Fe, Ue, Qe);
|
|
10861
10872
|
return st !== void 0 ? st : B(ue);
|
|
10862
10873
|
} : B, l), U = l && l.canSelfClose || !1, De = l && l.allowHtmComponentClosingTags || !1, fe = new vm(G.tokens, E, U, De, p);
|
|
10863
10874
|
return fe.build(), new mm(fe.rootNodes, G.errors.concat(fe.errors));
|
|
@@ -10868,7 +10879,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10868
10879
|
}
|
|
10869
10880
|
build() {
|
|
10870
10881
|
for (; this._peek.type !== 34; ) this._peek.type === 0 || this._peek.type === 4 ? this._consumeStartTag(this._advance()) : this._peek.type === 3 ? (this._closeVoidElement(), this._consumeEndTag(this._advance())) : this._peek.type === 12 ? (this._closeVoidElement(), this._consumeCdata(this._advance())) : this._peek.type === 10 ? (this._closeVoidElement(), this._consumeComment(this._advance())) : this._peek.type === 5 || this._peek.type === 7 || this._peek.type === 6 ? (this._closeVoidElement(), this._consumeText(this._advance())) : this._peek.type === 20 ? this._consumeExpansion(this._advance()) : this._peek.type === 25 ? (this._closeVoidElement(), this._consumeBlockOpen(this._advance())) : this._peek.type === 27 ? (this._closeVoidElement(), this._consumeBlockClose(this._advance())) : this._peek.type === 29 ? (this._closeVoidElement(), this._consumeIncompleteBlock(this._advance())) : this._peek.type === 30 ? (this._closeVoidElement(), this._consumeLet(this._advance())) : this._peek.type === 18 ? this._consumeDocType(this._advance()) : this._peek.type === 33 ? (this._closeVoidElement(), this._consumeIncompleteLet(this._advance())) : this._advance();
|
|
10871
|
-
for (let s of this._containerStack) s instanceof
|
|
10882
|
+
for (let s of this._containerStack) s instanceof tr && this.errors.push(ot.create(s.name, s.sourceSpan, `Unclosed block "${s.name}"`));
|
|
10872
10883
|
}
|
|
10873
10884
|
_advance() {
|
|
10874
10885
|
let s = this._peek;
|
|
@@ -10981,7 +10992,7 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
10981
10992
|
for (let y = this._containerStack.length - 1; y >= 0; y--) {
|
|
10982
10993
|
let E = this._containerStack[y];
|
|
10983
10994
|
if (Ga(E.name) ? E.name === s : (s == null || E.name.toLowerCase() === s.toLowerCase()) && E instanceof l) return E.endSourceSpan = p, E.sourceSpan.end = p !== null ? p.end : E.sourceSpan.end, this._containerStack.splice(y, this._containerStack.length - y), !f;
|
|
10984
|
-
(E instanceof
|
|
10995
|
+
(E instanceof tr || E instanceof dn && !this.getTagDefinition(E.name).closedByParent) && (f = !0);
|
|
10985
10996
|
}
|
|
10986
10997
|
return !1;
|
|
10987
10998
|
}
|
|
@@ -11004,11 +11015,11 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
11004
11015
|
l.push(new Rl(B.parts[0], B.sourceSpan));
|
|
11005
11016
|
}
|
|
11006
11017
|
this._peek.type === 26 && this._advance();
|
|
11007
|
-
let p = this._peek.sourceSpan.fullStart, f = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), y = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), E = new
|
|
11018
|
+
let p = this._peek.sourceSpan.fullStart, f = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), y = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), E = new tr(s.parts[0], l, [], f, s.sourceSpan, y);
|
|
11008
11019
|
this._pushContainer(E, !1);
|
|
11009
11020
|
}
|
|
11010
11021
|
_consumeBlockClose(s) {
|
|
11011
|
-
this._popContainer(null,
|
|
11022
|
+
this._popContainer(null, tr, s.sourceSpan) || this.errors.push(ot.create(null, s.sourceSpan, 'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'));
|
|
11012
11023
|
}
|
|
11013
11024
|
_consumeIncompleteBlock(s) {
|
|
11014
11025
|
let l = [];
|
|
@@ -11016,8 +11027,8 @@ If '${a}' is a directive input, make sure the directive is imported by the curre
|
|
|
11016
11027
|
let B = this._advance();
|
|
11017
11028
|
l.push(new Rl(B.parts[0], B.sourceSpan));
|
|
11018
11029
|
}
|
|
11019
|
-
let p = this._peek.sourceSpan.fullStart, f = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), y = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), E = new
|
|
11020
|
-
this._pushContainer(E, !1), this._popContainer(null,
|
|
11030
|
+
let p = this._peek.sourceSpan.fullStart, f = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), y = new ie(s.sourceSpan.start, p, s.sourceSpan.fullStart), E = new tr(s.parts[0], l, [], f, s.sourceSpan, y);
|
|
11031
|
+
this._pushContainer(E, !1), this._popContainer(null, tr, null), this.errors.push(ot.create(s.parts[0], f, `Incomplete block "${s.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`));
|
|
11021
11032
|
}
|
|
11022
11033
|
_consumeLet(s) {
|
|
11023
11034
|
let l = s.parts[0], p, f;
|
|
@@ -11229,10 +11240,10 @@ ${s}`, l), y = p;
|
|
|
11229
11240
|
if (U.some((Me) => Me.type === "docType" && Me.value === "html" || Me.type === "element" && Me.name.toLowerCase() === "html")) return eu(a, ru, l);
|
|
11230
11241
|
let z, ce = () => z ?? (z = Ql(a, { canSelfClose: f, allowHtmComponentClosingTags: B, isTagNameCaseSensitive: R })), We = (Me) => ce().rootNodes.find(({ startSourceSpan: lt }) => lt && lt.start.offset === Me.startSourceSpan.start.offset) ?? Me;
|
|
11231
11242
|
for (let [Me, lt] of U.entries()) {
|
|
11232
|
-
let { endSourceSpan:
|
|
11233
|
-
if (
|
|
11243
|
+
let { endSourceSpan: rr, startSourceSpan: Hm } = lt;
|
|
11244
|
+
if (rr === null) De = ce().errors, U[Me] = We(lt);
|
|
11234
11245
|
else if (Lm(lt, l)) {
|
|
11235
|
-
let au = ce().errors.find((iu) => iu.span.start.offset > Hm.start.offset && iu.span.start.offset <
|
|
11246
|
+
let au = ce().errors.find((iu) => iu.span.start.offset > Hm.start.offset && iu.span.start.offset < rr.end.offset);
|
|
11236
11247
|
au && tu(au), U[Me] = We(lt);
|
|
11237
11248
|
}
|
|
11238
11249
|
}
|
|
@@ -11254,11 +11265,11 @@ ${s}`, l), y = p;
|
|
|
11254
11265
|
z.value = z.sourceSpan.toString();
|
|
11255
11266
|
break;
|
|
11256
11267
|
}
|
|
11257
|
-
},
|
|
11268
|
+
}, Fe = (z, ce) => {
|
|
11258
11269
|
let We = z.toLowerCase();
|
|
11259
11270
|
return ce(We) ? We : z;
|
|
11260
11271
|
}, Ue = (z) => {
|
|
11261
|
-
if (z.type === "element" && (y && (!z.namespace || z.namespace === z.tagDefinition.implicitNamespacePrefix || me(z)) && (z.name =
|
|
11272
|
+
if (z.type === "element" && (y && (!z.namespace || z.namespace === z.tagDefinition.implicitNamespacePrefix || me(z)) && (z.name = Fe(z.name, (ce) => Bm.has(ce))), E)) for (let ce of z.attrs) ce.namespace || (ce.name = Fe(ce.name, (We) => ws.has(z.name) && (ws.get("*").has(We) || ws.get(z.name).has(We))));
|
|
11262
11273
|
}, Qe = (z) => {
|
|
11263
11274
|
z.sourceSpan && z.endSourceSpan && (z.sourceSpan = new ie(z.sourceSpan.start, z.endSourceSpan.end));
|
|
11264
11275
|
}, st = (z) => {
|
|
@@ -11282,7 +11293,7 @@ ${s}`, l), y = p;
|
|
|
11282
11293
|
var l;
|
|
11283
11294
|
if (a.type !== "element" || a.name !== "template") return !1;
|
|
11284
11295
|
let p = (l = a.attrs.find((f) => f.name === "lang")) == null ? void 0 : l.value;
|
|
11285
|
-
return !p ||
|
|
11296
|
+
return !p || Xn(s, { language: p }) === "html";
|
|
11286
11297
|
}
|
|
11287
11298
|
function tu(a) {
|
|
11288
11299
|
let { msg: s, span: { start: l, end: p } } = a;
|
|
@@ -11295,10 +11306,10 @@ ${s}`, l), y = p;
|
|
|
11295
11306
|
f.sourceSpan = new ie(fe, ue), G.children.unshift(f);
|
|
11296
11307
|
}
|
|
11297
11308
|
let U = new _m(G), De = (fe, ue) => {
|
|
11298
|
-
let { offset:
|
|
11309
|
+
let { offset: Fe } = ue, Ue = C(!1, a.slice(0, Fe), /[^\n\r]/gu, " "), Qe = nu(Ue + fe, s, l, !1);
|
|
11299
11310
|
Qe.sourceSpan = new ie(ue, zt(!1, Qe.children, -1).sourceSpan.end);
|
|
11300
11311
|
let st = Qe.children[0];
|
|
11301
|
-
return st.length ===
|
|
11312
|
+
return st.length === Fe ? Qe.children.shift() : (st.sourceSpan = new ie(st.sourceSpan.start.moveBy(Fe), st.sourceSpan.end), st.value = st.value.slice(Fe)), Qe;
|
|
11302
11313
|
};
|
|
11303
11314
|
return U.walk((fe) => {
|
|
11304
11315
|
if (fe.type === "comment") {
|
|
@@ -11414,7 +11425,7 @@ function vc(e, t) {
|
|
|
11414
11425
|
}
|
|
11415
11426
|
return n;
|
|
11416
11427
|
}
|
|
11417
|
-
function
|
|
11428
|
+
function mr(e) {
|
|
11418
11429
|
for (var t = 1; t < arguments.length; t++) {
|
|
11419
11430
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
11420
11431
|
t % 2 ? vc(Object(n), !0).forEach(function(r) {
|
|
@@ -11446,7 +11457,7 @@ function a1(e) {
|
|
|
11446
11457
|
return o !== "token";
|
|
11447
11458
|
}), i = r1(r);
|
|
11448
11459
|
return i.reduce(function(o, u) {
|
|
11449
|
-
return
|
|
11460
|
+
return mr(mr({}, o), n[u]);
|
|
11450
11461
|
}, t);
|
|
11451
11462
|
}
|
|
11452
11463
|
function Dc(e) {
|
|
@@ -11472,7 +11483,7 @@ function fd(e) {
|
|
|
11472
11483
|
if (h) {
|
|
11473
11484
|
var v = i1(n, o), D;
|
|
11474
11485
|
if (!o)
|
|
11475
|
-
D =
|
|
11486
|
+
D = mr(mr({}, c), {}, {
|
|
11476
11487
|
className: Dc(c.className)
|
|
11477
11488
|
});
|
|
11478
11489
|
else {
|
|
@@ -11483,7 +11494,7 @@ function fd(e) {
|
|
|
11483
11494
|
}, []), k = c.className && c.className.includes("token") ? ["token"] : [], x = c.className && k.concat(c.className.filter(function(T) {
|
|
11484
11495
|
return !b.includes(T);
|
|
11485
11496
|
}));
|
|
11486
|
-
D =
|
|
11497
|
+
D = mr(mr({}, c), {}, {
|
|
11487
11498
|
className: Dc(x) || void 0,
|
|
11488
11499
|
style: a1(c.className, Object.assign({}, c.style, i), n)
|
|
11489
11500
|
});
|
|
@@ -11751,16 +11762,16 @@ function g1(e, t) {
|
|
|
11751
11762
|
}, v.style), !se)
|
|
11752
11763
|
return /* @__PURE__ */ Ce.createElement(N, Be, re, /* @__PURE__ */ Ce.createElement(X, v, Q));
|
|
11753
11764
|
(P === void 0 && V || j) && (P = !0), V = V || f1;
|
|
11754
|
-
var
|
|
11765
|
+
var Ee = [{
|
|
11755
11766
|
type: "text",
|
|
11756
11767
|
value: Q
|
|
11757
11768
|
}], Ne = m1({
|
|
11758
11769
|
astGenerator: se,
|
|
11759
11770
|
language: i,
|
|
11760
11771
|
code: Q,
|
|
11761
|
-
defaultCodeValue:
|
|
11772
|
+
defaultCodeValue: Ee
|
|
11762
11773
|
});
|
|
11763
|
-
Ne.language === null && (Ne.value =
|
|
11774
|
+
Ne.language === null && (Ne.value = Ee);
|
|
11764
11775
|
var oe = Ne.value.length;
|
|
11765
11776
|
oe === 1 && Ne.value[0].type === "text" && (oe = Ne.value[0].value.split(`
|
|
11766
11777
|
`).length);
|
|
@@ -11819,14 +11830,14 @@ function wd(e, t) {
|
|
|
11819
11830
|
this.property = e, this.attribute = t;
|
|
11820
11831
|
}
|
|
11821
11832
|
var Wt = {}, x1 = 0;
|
|
11822
|
-
Wt.boolean =
|
|
11823
|
-
Wt.booleanish =
|
|
11824
|
-
Wt.overloadedBoolean =
|
|
11825
|
-
Wt.number =
|
|
11826
|
-
Wt.spaceSeparated =
|
|
11827
|
-
Wt.commaSeparated =
|
|
11828
|
-
Wt.commaOrSpaceSeparated =
|
|
11829
|
-
function
|
|
11833
|
+
Wt.boolean = Kn();
|
|
11834
|
+
Wt.booleanish = Kn();
|
|
11835
|
+
Wt.overloadedBoolean = Kn();
|
|
11836
|
+
Wt.number = Kn();
|
|
11837
|
+
Wt.spaceSeparated = Kn();
|
|
11838
|
+
Wt.commaSeparated = Kn();
|
|
11839
|
+
Wt.commaOrSpaceSeparated = Kn();
|
|
11840
|
+
function Kn() {
|
|
11830
11841
|
return Math.pow(2, ++x1);
|
|
11831
11842
|
}
|
|
11832
11843
|
var Cd = kd, kc = Wt, xd = Mo;
|
|
@@ -12584,7 +12595,7 @@ function VC(e) {
|
|
|
12584
12595
|
var t = "&" + e + ";", n;
|
|
12585
12596
|
return ii = ii || document.createElement("i"), ii.innerHTML = t, n = ii.textContent, n.charCodeAt(n.length - 1) === WC && e !== "semi" || n === t ? !1 : n;
|
|
12586
12597
|
}
|
|
12587
|
-
var Tc = NC, Bc = jC, GC = $d, YC = LC, Td = HC, KC = zC, JC = ux, XC = {}.hasOwnProperty,
|
|
12598
|
+
var Tc = NC, Bc = jC, GC = $d, YC = LC, Td = HC, KC = zC, JC = ux, XC = {}.hasOwnProperty, or = String.fromCharCode, QC = Function.prototype, Nc = {
|
|
12588
12599
|
warning: null,
|
|
12589
12600
|
reference: null,
|
|
12590
12601
|
text: null,
|
|
@@ -12595,11 +12606,11 @@ var Tc = NC, Bc = jC, GC = $d, YC = LC, Td = HC, KC = zC, JC = ux, XC = {}.hasOw
|
|
|
12595
12606
|
additional: null,
|
|
12596
12607
|
attribute: !1,
|
|
12597
12608
|
nonTerminated: !0
|
|
12598
|
-
}, ZC = 9, jc = 10, ex = 12, tx = 32, Pc = 38, nx = 59, rx = 60, ax = 61, ix = 35, sx = 88, ox = 120, lx = 65533,
|
|
12609
|
+
}, ZC = 9, jc = 10, ex = 12, tx = 32, Pc = 38, nx = 59, rx = 60, ax = 61, ix = 35, sx = 88, ox = 120, lx = 65533, cr = "named", Wo = "hexadecimal", zo = "decimal", Vo = {};
|
|
12599
12610
|
Vo[Wo] = 16;
|
|
12600
12611
|
Vo[zo] = 10;
|
|
12601
12612
|
var Ri = {};
|
|
12602
|
-
Ri[
|
|
12613
|
+
Ri[cr] = Td;
|
|
12603
12614
|
Ri[zo] = GC;
|
|
12604
12615
|
Ri[Wo] = YC;
|
|
12605
12616
|
var Bd = 1, Nd = 2, jd = 3, Pd = 4, Ld = 5, ho = 6, Od = 7, wn = {};
|
|
@@ -12622,19 +12633,19 @@ function cx(e, t) {
|
|
|
12622
12633
|
for (typeof n == "string" && (n = n.charCodeAt(0)), Q = ge(), W = u ? at : QC, b--, D++; ++b < D; )
|
|
12623
12634
|
if (P === jc && (x = v[k] || 1), P = e.charCodeAt(b), P === Pc) {
|
|
12624
12635
|
if (j = e.charCodeAt(b + 1), j === ZC || j === jc || j === ex || j === tx || j === Pc || j === rx || j !== j || n && j === n) {
|
|
12625
|
-
T +=
|
|
12636
|
+
T += or(P), x++;
|
|
12626
12637
|
continue;
|
|
12627
12638
|
}
|
|
12628
|
-
for (q = b + 1, N = q, re = q, j === ix ? (re = ++N, j = e.charCodeAt(re), j === sx || j === ox ? (X = Wo, re = ++N) : X = zo) : X =
|
|
12629
|
-
$ +=
|
|
12630
|
-
_ = e.charCodeAt(re) === nx, _ && (re++, A = X ===
|
|
12639
|
+
for (q = b + 1, N = q, re = q, j === ix ? (re = ++N, j = e.charCodeAt(re), j === sx || j === ox ? (X = Wo, re = ++N) : X = zo) : X = cr, S = "", L = "", $ = "", de = Ri[X], re--; ++re < D && (j = e.charCodeAt(re), !!de(j)); )
|
|
12640
|
+
$ += or(j), X === cr && XC.call(Tc, $) && (S = $, L = Tc[$]);
|
|
12641
|
+
_ = e.charCodeAt(re) === nx, _ && (re++, A = X === cr ? KC($) : !1, A && (S = $, L = A)), he = 1 + re - q, !_ && !r || ($ ? X === cr ? (_ && !L ? W(Ld, 1) : (S !== $ && (re = N + S.length, he = 1 + re - N, _ = !1), _ || (Y = S ? Bd : jd, t.attribute ? (j = e.charCodeAt(re), j === ax ? (W(Y, he), L = null) : Td(j) ? L = null : W(Y, he)) : W(Y, he))), I = L) : (_ || W(Nd, he), I = parseInt($, Vo[X]), px(I) ? (W(Od, he), I = or(lx)) : I in Bc ? (W(ho, he), I = Bc[I]) : (V = "", dx(I) && W(ho, he), I > 65535 && (I -= 65536, V += or(I >>> 10 | 55296), I = 56320 | I & 1023), I = V + or(I))) : X !== cr && W(Pd, he)), I ? (Be(), Q = ge(), b = re - 1, x += re - q + 1, F.push(I), se = ge(), se.offset++, o && o.call(
|
|
12631
12642
|
d,
|
|
12632
12643
|
I,
|
|
12633
12644
|
{ start: Q, end: se },
|
|
12634
12645
|
e.slice(q - 1, re)
|
|
12635
12646
|
), Q = se) : ($ = e.slice(q - 1, re), T += $, x += $.length, b = re - 1);
|
|
12636
12647
|
} else
|
|
12637
|
-
P === 10 && (C++, k++, x = 0), P === P ? (T +=
|
|
12648
|
+
P === 10 && (C++, k++, x = 0), P === P ? (T += or(P), x++) : Be();
|
|
12638
12649
|
return F.join("");
|
|
12639
12650
|
function ge() {
|
|
12640
12651
|
return {
|
|
@@ -12643,9 +12654,9 @@ function cx(e, t) {
|
|
|
12643
12654
|
offset: b + (g.offset || 0)
|
|
12644
12655
|
};
|
|
12645
12656
|
}
|
|
12646
|
-
function at(
|
|
12657
|
+
function at(Ee, Ne) {
|
|
12647
12658
|
var oe = ge();
|
|
12648
|
-
oe.column += Ne, oe.offset += Ne, u.call(h, wn[
|
|
12659
|
+
oe.column += Ne, oe.offset += Ne, u.call(h, wn[Ee], oe, Ee);
|
|
12649
12660
|
}
|
|
12650
12661
|
function Be() {
|
|
12651
12662
|
T && (F.push(T), i && i.call(c, T, { start: Q, end: ge() }), T = "");
|
|
@@ -13300,8 +13311,8 @@ var Id = { exports: {} };
|
|
|
13300
13311
|
Q = Q.next, Be += Q.value.length;
|
|
13301
13312
|
if (Be -= Q.value.length, se = Be, Q.value instanceof d)
|
|
13302
13313
|
continue;
|
|
13303
|
-
for (var
|
|
13304
|
-
re++, Be +=
|
|
13314
|
+
for (var Ee = Q; Ee !== S.tail && (Be < at || typeof Ee.value == "string"); Ee = Ee.next)
|
|
13315
|
+
re++, Be += Ee.value.length;
|
|
13305
13316
|
re--, he = F.slice(se, Be), ge.index -= se;
|
|
13306
13317
|
} else if (ge = h(de, 0, he, L), !ge)
|
|
13307
13318
|
continue;
|
|
@@ -15331,7 +15342,7 @@ const Ox = je(
|
|
|
15331
15342
|
role: "table",
|
|
15332
15343
|
children: i
|
|
15333
15344
|
}
|
|
15334
|
-
), qs = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("thead", { className: nt(e, "pkt-table__header", {}), role: "rowgroup", children: t }), Hs = ({ children: e, className: t }) => /* @__PURE__ */ m.jsx("tbody", { className: nt(t, "pkt-table__body", {}), role: "rowgroup", children: e }),
|
|
15345
|
+
), qs = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("thead", { className: nt(e, "pkt-table__header", {}), role: "rowgroup", children: t }), Hs = ({ children: e, className: t }) => /* @__PURE__ */ m.jsx("tbody", { className: nt(t, "pkt-table__body", {}), role: "rowgroup", children: e }), lr = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("tr", { className: nt(e, "pkt-table__row", {}), role: "row", children: t }), Ot = ({ className: e, children: t }) => /* @__PURE__ */ m.jsx("th", { className: nt(e, "pkt-table__header-cell", {}), role: "columnheader", children: t }), Ft = ({ children: e, className: t, dataLabel: n }) => /* @__PURE__ */ m.jsx(
|
|
15335
15346
|
"td",
|
|
15336
15347
|
{
|
|
15337
15348
|
className: nt(t, "pkt-table__data-cell", {}),
|
|
@@ -15346,14 +15357,14 @@ const Ox = je(
|
|
|
15346
15357
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
15347
15358
|
/* @__PURE__ */ m.jsx("h2", { children: "Egenskaper" }),
|
|
15348
15359
|
/* @__PURE__ */ m.jsxs(Rs, { compact: !0, children: [
|
|
15349
|
-
/* @__PURE__ */ m.jsx(qs, { children: /* @__PURE__ */ m.jsxs(
|
|
15360
|
+
/* @__PURE__ */ m.jsx(qs, { children: /* @__PURE__ */ m.jsxs(lr, { children: [
|
|
15350
15361
|
/* @__PURE__ */ m.jsx(Ot, { children: "Navn" }),
|
|
15351
15362
|
/* @__PURE__ */ m.jsx(Ot, { children: "Prop" }),
|
|
15352
15363
|
/* @__PURE__ */ m.jsx(Ot, { children: "Beskrivelse" }),
|
|
15353
15364
|
/* @__PURE__ */ m.jsx(Ot, { children: "Type" }),
|
|
15354
15365
|
/* @__PURE__ */ m.jsx(Ot, { children: "Standardverdi" })
|
|
15355
15366
|
] }) }),
|
|
15356
|
-
/* @__PURE__ */ m.jsx(Hs, { children: Object.entries(e.props || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(
|
|
15367
|
+
/* @__PURE__ */ m.jsx(Hs, { children: Object.entries(e.props || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(lr, { children: [
|
|
15357
15368
|
/* @__PURE__ */ m.jsx(Ft, { dataLabel: "Prop", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
|
|
15358
15369
|
/* @__PURE__ */ m.jsx(Ft, { dataLabel: "Navn", children: !Array.isArray(i) && i.name || r }),
|
|
15359
15370
|
Array.isArray(i) ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
@@ -15370,12 +15381,12 @@ const Ox = je(
|
|
|
15370
15381
|
e.events && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
15371
15382
|
/* @__PURE__ */ m.jsx("h2", { children: "Hendelser / handlinger" }),
|
|
15372
15383
|
/* @__PURE__ */ m.jsxs(Rs, { compact: !0, children: [
|
|
15373
|
-
/* @__PURE__ */ m.jsx(qs, { children: /* @__PURE__ */ m.jsxs(
|
|
15384
|
+
/* @__PURE__ */ m.jsx(qs, { children: /* @__PURE__ */ m.jsxs(lr, { children: [
|
|
15374
15385
|
/* @__PURE__ */ m.jsx(Ot, { children: "Event" }),
|
|
15375
15386
|
/* @__PURE__ */ m.jsx(Ot, { children: "Beskrivelse" }),
|
|
15376
15387
|
/* @__PURE__ */ m.jsx(Ot, { children: "Type" })
|
|
15377
15388
|
] }) }),
|
|
15378
|
-
/* @__PURE__ */ m.jsx(Hs, { children: Object.entries(e.events || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(
|
|
15389
|
+
/* @__PURE__ */ m.jsx(Hs, { children: Object.entries(e.events || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(lr, { children: [
|
|
15379
15390
|
/* @__PURE__ */ m.jsx(Ft, { dataLabel: "Event", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
|
|
15380
15391
|
/* @__PURE__ */ m.jsx(Ft, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) }),
|
|
15381
15392
|
/* @__PURE__ */ m.jsx(Ft, { dataLabel: "Type", children: i.type })
|
|
@@ -15385,11 +15396,11 @@ const Ox = je(
|
|
|
15385
15396
|
e.slots && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
15386
15397
|
/* @__PURE__ */ m.jsx("h2", { children: "Innhold" }),
|
|
15387
15398
|
/* @__PURE__ */ m.jsxs(Rs, { compact: !0, children: [
|
|
15388
|
-
/* @__PURE__ */ m.jsx(qs, { children: /* @__PURE__ */ m.jsxs(
|
|
15399
|
+
/* @__PURE__ */ m.jsx(qs, { children: /* @__PURE__ */ m.jsxs(lr, { children: [
|
|
15389
15400
|
/* @__PURE__ */ m.jsx(Ot, { children: "Slot" }),
|
|
15390
15401
|
/* @__PURE__ */ m.jsx(Ot, { children: "Beskrivelse" })
|
|
15391
15402
|
] }) }),
|
|
15392
|
-
/* @__PURE__ */ m.jsx(Hs, { children: Object.entries(e.slots || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(
|
|
15403
|
+
/* @__PURE__ */ m.jsx(Hs, { children: Object.entries(e.slots || {}).map(([r, i]) => /* @__PURE__ */ m.jsxs(lr, { children: [
|
|
15393
15404
|
/* @__PURE__ */ m.jsx(Ft, { dataLabel: "Slot", children: /* @__PURE__ */ m.jsx("pre", { children: r }) }),
|
|
15394
15405
|
/* @__PURE__ */ m.jsx(Ft, { dataLabel: "Beskrivelse", children: /* @__PURE__ */ m.jsx("span", { dangerouslySetInnerHTML: { __html: i.description || "" } }) })
|
|
15395
15406
|
] }, r)) })
|
|
@@ -15456,7 +15467,7 @@ const Rx = ({ specs: e, children: t, fullWidth: n }) => {
|
|
|
15456
15467
|
}, P = (L, N) => /* @__PURE__ */ m.jsxs("div", { className: "pkt-preview__copy", children: [
|
|
15457
15468
|
D === L && /* @__PURE__ */ m.jsx("span", { className: "pkt-preview__copied", children: "Kode kopiert til utklippstavle" }),
|
|
15458
15469
|
/* @__PURE__ */ m.jsx(
|
|
15459
|
-
|
|
15470
|
+
Dr,
|
|
15460
15471
|
{
|
|
15461
15472
|
skin: "tertiary",
|
|
15462
15473
|
variant: "icon-only",
|
|
@@ -15798,7 +15809,7 @@ const A_ = je(
|
|
|
15798
15809
|
}
|
|
15799
15810
|
),
|
|
15800
15811
|
/* @__PURE__ */ m.jsx(
|
|
15801
|
-
|
|
15812
|
+
Dr,
|
|
15802
15813
|
{
|
|
15803
15814
|
className: `pkt-searchinput__button ${e === "local" ? "pkt-input-icon" : ""}`,
|
|
15804
15815
|
variant: "icon-only",
|
|
@@ -15955,7 +15966,7 @@ export {
|
|
|
15955
15966
|
op as PktAlert,
|
|
15956
15967
|
$2 as PktBackLink,
|
|
15957
15968
|
x_ as PktBreadcrumbs,
|
|
15958
|
-
|
|
15969
|
+
Dr as PktButton,
|
|
15959
15970
|
B2 as PktCard,
|
|
15960
15971
|
Gs as PktCheckbox,
|
|
15961
15972
|
N2 as PktDatepicker,
|
|
@@ -15981,7 +15992,7 @@ export {
|
|
|
15981
15992
|
Ft as PktTableDataCell,
|
|
15982
15993
|
qs as PktTableHeader,
|
|
15983
15994
|
Ot as PktTableHeaderCell,
|
|
15984
|
-
|
|
15995
|
+
lr as PktTableRow,
|
|
15985
15996
|
Ox as PktTabs,
|
|
15986
15997
|
ma as PktTag,
|
|
15987
15998
|
B_ as PktTextarea,
|