@squirrel-cloud/ui-vue 0.3.10 → 0.3.12
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.
|
@@ -669,15 +669,15 @@ pe.prototype.parse = function(u, e) {
|
|
|
669
669
|
const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
670
670
|
if (!h) {
|
|
671
671
|
const d = this.hostname.split(/\./);
|
|
672
|
-
for (let
|
|
673
|
-
const
|
|
674
|
-
if (
|
|
675
|
-
let
|
|
676
|
-
for (let
|
|
677
|
-
|
|
678
|
-
if (!
|
|
679
|
-
const
|
|
680
|
-
E && (
|
|
672
|
+
for (let g = 0, k = d.length; g < k; g++) {
|
|
673
|
+
const _ = d[g];
|
|
674
|
+
if (_ && !_.match(yt)) {
|
|
675
|
+
let v = "";
|
|
676
|
+
for (let y = 0, w = _.length; y < w; y++)
|
|
677
|
+
_.charCodeAt(y) > 127 ? v += "x" : v += _[y];
|
|
678
|
+
if (!v.match(yt)) {
|
|
679
|
+
const y = d.slice(0, g), w = d.slice(g + 1), E = _.match(Tr);
|
|
680
|
+
E && (y.push(E[1]), w.unshift(E[2])), w.length && (o = w.join(".") + o), this.hostname = y.join(".");
|
|
681
681
|
break;
|
|
682
682
|
}
|
|
683
683
|
}
|
|
@@ -1544,22 +1544,22 @@ function wo(u) {
|
|
|
1544
1544
|
let f = i.level, p = 0;
|
|
1545
1545
|
a.length > 0 && a[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (a = a.slice(1));
|
|
1546
1546
|
for (let h = 0; h < a.length; h++) {
|
|
1547
|
-
const d = a[h].url,
|
|
1548
|
-
if (!u.md.validateLink(
|
|
1547
|
+
const d = a[h].url, g = u.md.normalizeLink(d);
|
|
1548
|
+
if (!u.md.validateLink(g))
|
|
1549
1549
|
continue;
|
|
1550
|
-
let
|
|
1551
|
-
a[h].schema ? a[h].schema === "mailto:" && !/^mailto:/i.test(
|
|
1552
|
-
const
|
|
1553
|
-
if (
|
|
1550
|
+
let k = a[h].text;
|
|
1551
|
+
a[h].schema ? a[h].schema === "mailto:" && !/^mailto:/i.test(k) ? k = u.md.normalizeLinkText("mailto:" + k).replace(/^mailto:/, "") : k = u.md.normalizeLinkText(k) : k = u.md.normalizeLinkText("http://" + k).replace(/^http:\/\//, "");
|
|
1552
|
+
const _ = a[h].index;
|
|
1553
|
+
if (_ > p) {
|
|
1554
1554
|
const E = new u.Token("text", "", 0);
|
|
1555
|
-
E.content = s.slice(p,
|
|
1555
|
+
E.content = s.slice(p, _), E.level = f, l.push(E);
|
|
1556
1556
|
}
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1561
|
-
const
|
|
1562
|
-
|
|
1557
|
+
const v = new u.Token("link_open", "a", 1);
|
|
1558
|
+
v.attrs = [["href", g]], v.level = f++, v.markup = "linkify", v.info = "auto", l.push(v);
|
|
1559
|
+
const y = new u.Token("text", "", 0);
|
|
1560
|
+
y.content = k, y.level = f, l.push(y);
|
|
1561
|
+
const w = new u.Token("link_close", "a", -1);
|
|
1562
|
+
w.level = --f, w.markup = "linkify", w.info = "auto", l.push(w), p = a[h].lastIndex;
|
|
1563
1563
|
}
|
|
1564
1564
|
if (p < s.length) {
|
|
1565
1565
|
const h = new u.Token("text", "", 0);
|
|
@@ -1630,33 +1630,33 @@ function Bo(u, e) {
|
|
|
1630
1630
|
d = u[t].content.charCodeAt(u[t].content.length - 1);
|
|
1631
1631
|
break;
|
|
1632
1632
|
}
|
|
1633
|
-
let
|
|
1633
|
+
let g = 32;
|
|
1634
1634
|
if (s < a)
|
|
1635
|
-
|
|
1635
|
+
g = i.charCodeAt(s);
|
|
1636
1636
|
else
|
|
1637
1637
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1638
1638
|
if (u[t].content) {
|
|
1639
|
-
|
|
1639
|
+
g = u[t].content.charCodeAt(0);
|
|
1640
1640
|
break;
|
|
1641
1641
|
}
|
|
1642
|
-
const
|
|
1643
|
-
if (
|
|
1642
|
+
const k = Ku(d) || Ju(String.fromCharCode(d)), _ = Ku(g) || Ju(String.fromCharCode(g)), v = Qu(d), y = Qu(g);
|
|
1643
|
+
if (y ? f = !1 : _ && (v || k || (f = !1)), v ? p = !1 : k && (y || _ || (p = !1)), g === 34 && l[0] === '"' && d >= 48 && d <= 57 && (p = f = !1), f && p && (f = k, p = _), !f && !p) {
|
|
1644
1644
|
h && (o.content = le(o.content, l.index, Et));
|
|
1645
1645
|
continue;
|
|
1646
1646
|
}
|
|
1647
1647
|
if (p)
|
|
1648
1648
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1649
|
-
let
|
|
1649
|
+
let w = n[t];
|
|
1650
1650
|
if (n[t].level < c)
|
|
1651
1651
|
break;
|
|
1652
|
-
if (
|
|
1653
|
-
|
|
1652
|
+
if (w.single === h && n[t].level === c) {
|
|
1653
|
+
w = n[t];
|
|
1654
1654
|
let E, M;
|
|
1655
|
-
h ? (E = e.md.options.quotes[2], M = e.md.options.quotes[3]) : (E = e.md.options.quotes[0], M = e.md.options.quotes[1]), o.content = le(o.content, l.index, M), u[
|
|
1656
|
-
u[
|
|
1657
|
-
|
|
1655
|
+
h ? (E = e.md.options.quotes[2], M = e.md.options.quotes[3]) : (E = e.md.options.quotes[0], M = e.md.options.quotes[1]), o.content = le(o.content, l.index, M), u[w.token].content = le(
|
|
1656
|
+
u[w.token].content,
|
|
1657
|
+
w.pos,
|
|
1658
1658
|
E
|
|
1659
|
-
), s += M.length - 1,
|
|
1659
|
+
), s += M.length - 1, w.token === r && (s += E.length - 1), i = o.content, a = i.length, n.length = t;
|
|
1660
1660
|
continue u;
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
@@ -1816,17 +1816,17 @@ function Ro(u, e, t, n) {
|
|
|
1816
1816
|
if (i !== 124 && i !== 45 && i !== 58 && !V(i) || c === 45 && V(i))
|
|
1817
1817
|
return !1;
|
|
1818
1818
|
for (; o < u.eMarks[r]; ) {
|
|
1819
|
-
const
|
|
1820
|
-
if (
|
|
1819
|
+
const w = u.src.charCodeAt(o);
|
|
1820
|
+
if (w !== 124 && w !== 45 && w !== 58 && !V(w))
|
|
1821
1821
|
return !1;
|
|
1822
1822
|
o++;
|
|
1823
1823
|
}
|
|
1824
1824
|
let s = Le(u, e + 1), a = s.split("|");
|
|
1825
1825
|
const l = [];
|
|
1826
|
-
for (let
|
|
1827
|
-
const E = a[
|
|
1826
|
+
for (let w = 0; w < a.length; w++) {
|
|
1827
|
+
const E = a[w].trim();
|
|
1828
1828
|
if (!E) {
|
|
1829
|
-
if (
|
|
1829
|
+
if (w === 0 || w === a.length - 1)
|
|
1830
1830
|
continue;
|
|
1831
1831
|
return !1;
|
|
1832
1832
|
}
|
|
@@ -1844,32 +1844,32 @@ function Ro(u, e, t, n) {
|
|
|
1844
1844
|
return !0;
|
|
1845
1845
|
const p = u.parentType;
|
|
1846
1846
|
u.parentType = "table";
|
|
1847
|
-
const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1),
|
|
1848
|
-
d.map =
|
|
1849
|
-
const
|
|
1847
|
+
const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), g = [e, 0];
|
|
1848
|
+
d.map = g;
|
|
1849
|
+
const k = u.push("thead_open", "thead", 1);
|
|
1850
|
+
k.map = [e, e + 1];
|
|
1851
|
+
const _ = u.push("tr_open", "tr", 1);
|
|
1850
1852
|
_.map = [e, e + 1];
|
|
1851
|
-
|
|
1852
|
-
v.map = [e, e + 1];
|
|
1853
|
-
for (let C = 0; C < a.length; C++) {
|
|
1853
|
+
for (let w = 0; w < a.length; w++) {
|
|
1854
1854
|
const E = u.push("th_open", "th", 1);
|
|
1855
|
-
l[
|
|
1855
|
+
l[w] && (E.attrs = [["style", "text-align:" + l[w]]]);
|
|
1856
1856
|
const M = u.push("inline", "", 0);
|
|
1857
|
-
M.content = a[
|
|
1857
|
+
M.content = a[w].trim(), M.children = [], u.push("th_close", "th", -1);
|
|
1858
1858
|
}
|
|
1859
1859
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
1860
|
-
let
|
|
1860
|
+
let v, y = 0;
|
|
1861
1861
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
1862
|
-
let
|
|
1862
|
+
let w = !1;
|
|
1863
1863
|
for (let M = 0, $ = h.length; M < $; M++)
|
|
1864
1864
|
if (h[M](u, r, t, !0)) {
|
|
1865
|
-
|
|
1865
|
+
w = !0;
|
|
1866
1866
|
break;
|
|
1867
1867
|
}
|
|
1868
|
-
if (
|
|
1868
|
+
if (w || (s = Le(u, r).trim(), !s) || u.sCount[r] - u.blkIndent >= 4 || (a = At(s), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop(), y += f - a.length, y > Lo))
|
|
1869
1869
|
break;
|
|
1870
1870
|
if (r === e + 2) {
|
|
1871
1871
|
const M = u.push("tbody_open", "tbody", 1);
|
|
1872
|
-
M.map =
|
|
1872
|
+
M.map = v = [e + 2, 0];
|
|
1873
1873
|
}
|
|
1874
1874
|
const E = u.push("tr_open", "tr", 1);
|
|
1875
1875
|
E.map = [r, r + 1];
|
|
@@ -1881,7 +1881,7 @@ function Ro(u, e, t, n) {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
u.push("tr_close", "tr", -1);
|
|
1883
1883
|
}
|
|
1884
|
-
return
|
|
1884
|
+
return v && (u.push("tbody_close", "tbody", -1), v[1] = r), u.push("table_close", "table", -1), g[1] = r, u.parentType = p, u.line = r, !0;
|
|
1885
1885
|
}
|
|
1886
1886
|
function Io(u, e, t) {
|
|
1887
1887
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
@@ -1941,17 +1941,17 @@ function Po(u, e, t, n) {
|
|
|
1941
1941
|
u.parentType = "blockquote";
|
|
1942
1942
|
let h = !1, d;
|
|
1943
1943
|
for (d = e; d < t; d++) {
|
|
1944
|
-
const
|
|
1944
|
+
const y = u.sCount[d] < u.blkIndent;
|
|
1945
1945
|
if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
|
|
1946
1946
|
break;
|
|
1947
|
-
if (u.src.charCodeAt(r++) === 62 && !
|
|
1947
|
+
if (u.src.charCodeAt(r++) === 62 && !y) {
|
|
1948
1948
|
let E = u.sCount[d] + 1, M, $;
|
|
1949
1949
|
u.src.charCodeAt(r) === 32 ? (r++, E++, $ = !1, M = !0) : u.src.charCodeAt(r) === 9 ? (M = !0, (u.bsCount[d] + E) % 4 === 3 ? (r++, E++, $ = !1) : $ = !0) : M = !1;
|
|
1950
1950
|
let Z = E;
|
|
1951
1951
|
for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
|
|
1952
|
-
const
|
|
1953
|
-
if (V(
|
|
1954
|
-
|
|
1952
|
+
const C = u.src.charCodeAt(r);
|
|
1953
|
+
if (V(C))
|
|
1954
|
+
C === 9 ? Z += 4 - (Z + u.bsCount[d] + ($ ? 1 : 0)) % 4 : Z++;
|
|
1955
1955
|
else
|
|
1956
1956
|
break;
|
|
1957
1957
|
r++;
|
|
@@ -1961,29 +1961,29 @@ function Po(u, e, t, n) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
if (h)
|
|
1963
1963
|
break;
|
|
1964
|
-
let
|
|
1964
|
+
let w = !1;
|
|
1965
1965
|
for (let E = 0, M = f.length; E < M; E++)
|
|
1966
1966
|
if (f[E](u, d, t, !0)) {
|
|
1967
|
-
|
|
1967
|
+
w = !0;
|
|
1968
1968
|
break;
|
|
1969
1969
|
}
|
|
1970
|
-
if (
|
|
1970
|
+
if (w) {
|
|
1971
1971
|
u.lineMax = d, u.blkIndent !== 0 && (i.push(u.bMarks[d]), s.push(u.bsCount[d]), l.push(u.tShift[d]), a.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
1972
1972
|
break;
|
|
1973
1973
|
}
|
|
1974
1974
|
i.push(u.bMarks[d]), s.push(u.bsCount[d]), l.push(u.tShift[d]), a.push(u.sCount[d]), u.sCount[d] = -1;
|
|
1975
1975
|
}
|
|
1976
|
-
const
|
|
1976
|
+
const g = u.blkIndent;
|
|
1977
1977
|
u.blkIndent = 0;
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1980
|
-
const
|
|
1981
|
-
|
|
1982
|
-
const
|
|
1983
|
-
|
|
1984
|
-
for (let
|
|
1985
|
-
u.bMarks[
|
|
1986
|
-
return u.blkIndent =
|
|
1978
|
+
const k = u.push("blockquote_open", "blockquote", 1);
|
|
1979
|
+
k.markup = ">";
|
|
1980
|
+
const _ = [e, 0];
|
|
1981
|
+
k.map = _, u.md.block.tokenize(u, e, d);
|
|
1982
|
+
const v = u.push("blockquote_close", "blockquote", -1);
|
|
1983
|
+
v.markup = ">", u.lineMax = c, u.parentType = p, _[1] = u.line;
|
|
1984
|
+
for (let y = 0; y < l.length; y++)
|
|
1985
|
+
u.bMarks[y + e] = i[y], u.tShift[y + e] = l[y], u.sCount[y + e] = a[y], u.bsCount[y + e] = s[y];
|
|
1986
|
+
return u.blkIndent = g, !0;
|
|
1987
1987
|
}
|
|
1988
1988
|
function No(u, e, t, n) {
|
|
1989
1989
|
const r = u.eMarks[e];
|
|
@@ -2065,16 +2065,16 @@ function jo(u, e, t, n) {
|
|
|
2065
2065
|
return !1;
|
|
2066
2066
|
if (n)
|
|
2067
2067
|
return !0;
|
|
2068
|
-
const d = u.src.charCodeAt(h - 1),
|
|
2068
|
+
const d = u.src.charCodeAt(h - 1), g = u.tokens.length;
|
|
2069
2069
|
f ? (i = u.push("ordered_list_open", "ol", 1), p !== 1 && (i.attrs = [["start", p]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
2070
|
-
const
|
|
2071
|
-
i.map =
|
|
2072
|
-
let
|
|
2073
|
-
const
|
|
2070
|
+
const k = [s, 0];
|
|
2071
|
+
i.map = k, i.markup = String.fromCharCode(d);
|
|
2072
|
+
let _ = !1;
|
|
2073
|
+
const v = u.md.block.ruler.getRules("list"), y = u.parentType;
|
|
2074
2074
|
for (u.parentType = "list"; s < t; ) {
|
|
2075
2075
|
o = h, r = u.eMarks[s];
|
|
2076
|
-
const
|
|
2077
|
-
let E =
|
|
2076
|
+
const w = u.sCount[s] + h - (u.bMarks[s] + u.tShift[s]);
|
|
2077
|
+
let E = w;
|
|
2078
2078
|
for (; o < r; ) {
|
|
2079
2079
|
const W = u.src.charCodeAt(o);
|
|
2080
2080
|
if (W === 9)
|
|
@@ -2087,17 +2087,17 @@ function jo(u, e, t, n) {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
const M = o;
|
|
2089
2089
|
let $;
|
|
2090
|
-
M >= r ? $ = 1 : $ = E -
|
|
2091
|
-
const Z =
|
|
2090
|
+
M >= r ? $ = 1 : $ = E - w, $ > 4 && ($ = 1);
|
|
2091
|
+
const Z = w + $;
|
|
2092
2092
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
2093
|
-
const
|
|
2094
|
-
i.map =
|
|
2095
|
-
const q = u.tight,
|
|
2096
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = Z, u.tight = !0, u.tShift[s] = M - u.bMarks[s], u.sCount[s] = E, M >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight ||
|
|
2093
|
+
const C = [s, 0];
|
|
2094
|
+
i.map = C, f && (i.info = u.src.slice(c, h - 1));
|
|
2095
|
+
const q = u.tight, x = u.tShift[s], B = u.sCount[s], L = u.listIndent;
|
|
2096
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = Z, u.tight = !0, u.tShift[s] = M - u.bMarks[s], u.sCount[s] = E, M >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || _) && (a = !1), _ = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = L, u.tShift[s] = x, u.sCount[s] = B, u.tight = q, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), s = u.line, C[1] = s, s >= t || u.sCount[s] < u.blkIndent || u.sCount[s] - u.blkIndent >= 4)
|
|
2097
2097
|
break;
|
|
2098
2098
|
let O = !1;
|
|
2099
|
-
for (let W = 0, Y =
|
|
2100
|
-
if (
|
|
2099
|
+
for (let W = 0, Y = v.length; W < Y; W++)
|
|
2100
|
+
if (v[W](u, s, t, !0)) {
|
|
2101
2101
|
O = !0;
|
|
2102
2102
|
break;
|
|
2103
2103
|
}
|
|
@@ -2112,58 +2112,58 @@ function jo(u, e, t, n) {
|
|
|
2112
2112
|
if (d !== u.src.charCodeAt(h - 1))
|
|
2113
2113
|
break;
|
|
2114
2114
|
}
|
|
2115
|
-
return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d),
|
|
2115
|
+
return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), k[1] = s, u.line = s, u.parentType = y, a && Zo(u, g), !0;
|
|
2116
2116
|
}
|
|
2117
2117
|
function Ho(u, e, t, n) {
|
|
2118
2118
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
|
|
2119
2119
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2120
2120
|
return !1;
|
|
2121
|
-
function i(
|
|
2122
|
-
const
|
|
2123
|
-
if (
|
|
2121
|
+
function i(v) {
|
|
2122
|
+
const y = u.lineMax;
|
|
2123
|
+
if (v >= y || u.isEmpty(v))
|
|
2124
2124
|
return null;
|
|
2125
|
-
let
|
|
2126
|
-
if (u.sCount[
|
|
2125
|
+
let w = !1;
|
|
2126
|
+
if (u.sCount[v] - u.blkIndent > 3 && (w = !0), u.sCount[v] < 0 && (w = !0), !w) {
|
|
2127
2127
|
const $ = u.md.block.ruler.getRules("reference"), Z = u.parentType;
|
|
2128
2128
|
u.parentType = "reference";
|
|
2129
|
-
let
|
|
2130
|
-
for (let q = 0,
|
|
2131
|
-
if ($[q](u,
|
|
2132
|
-
|
|
2129
|
+
let C = !1;
|
|
2130
|
+
for (let q = 0, x = $.length; q < x; q++)
|
|
2131
|
+
if ($[q](u, v, y, !0)) {
|
|
2132
|
+
C = !0;
|
|
2133
2133
|
break;
|
|
2134
2134
|
}
|
|
2135
|
-
if (u.parentType = Z,
|
|
2135
|
+
if (u.parentType = Z, C)
|
|
2136
2136
|
return null;
|
|
2137
2137
|
}
|
|
2138
|
-
const E = u.bMarks[
|
|
2138
|
+
const E = u.bMarks[v] + u.tShift[v], M = u.eMarks[v];
|
|
2139
2139
|
return u.src.slice(E, M + 1);
|
|
2140
2140
|
}
|
|
2141
2141
|
let s = u.src.slice(r, o + 1);
|
|
2142
2142
|
o = s.length;
|
|
2143
2143
|
let a = -1;
|
|
2144
2144
|
for (r = 1; r < o; r++) {
|
|
2145
|
-
const
|
|
2146
|
-
if (
|
|
2145
|
+
const v = s.charCodeAt(r);
|
|
2146
|
+
if (v === 91)
|
|
2147
2147
|
return !1;
|
|
2148
|
-
if (
|
|
2148
|
+
if (v === 93) {
|
|
2149
2149
|
a = r;
|
|
2150
2150
|
break;
|
|
2151
|
-
} else if (
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2154
|
-
} else if (
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2151
|
+
} else if (v === 10) {
|
|
2152
|
+
const y = i(c);
|
|
2153
|
+
y !== null && (s += y, o = s.length, c++);
|
|
2154
|
+
} else if (v === 92 && (r++, r < o && s.charCodeAt(r) === 10)) {
|
|
2155
|
+
const y = i(c);
|
|
2156
|
+
y !== null && (s += y, o = s.length, c++);
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
2159
|
if (a < 0 || s.charCodeAt(a + 1) !== 58)
|
|
2160
2160
|
return !1;
|
|
2161
2161
|
for (r = a + 2; r < o; r++) {
|
|
2162
|
-
const
|
|
2163
|
-
if (
|
|
2164
|
-
const
|
|
2165
|
-
|
|
2166
|
-
} else if (!V(
|
|
2162
|
+
const v = s.charCodeAt(r);
|
|
2163
|
+
if (v === 10) {
|
|
2164
|
+
const y = i(c);
|
|
2165
|
+
y !== null && (s += y, o = s.length, c++);
|
|
2166
|
+
} else if (!V(v)) break;
|
|
2167
2167
|
}
|
|
2168
2168
|
const l = u.md.helpers.parseLinkDestination(s, r, o);
|
|
2169
2169
|
if (!l.ok)
|
|
@@ -2174,36 +2174,36 @@ function Ho(u, e, t, n) {
|
|
|
2174
2174
|
r = l.pos;
|
|
2175
2175
|
const p = r, h = c, d = r;
|
|
2176
2176
|
for (; r < o; r++) {
|
|
2177
|
-
const
|
|
2178
|
-
if (
|
|
2179
|
-
const
|
|
2180
|
-
|
|
2181
|
-
} else if (!V(
|
|
2182
|
-
}
|
|
2183
|
-
let
|
|
2184
|
-
for (;
|
|
2185
|
-
const
|
|
2186
|
-
if (
|
|
2187
|
-
s +=
|
|
2188
|
-
}
|
|
2189
|
-
let
|
|
2190
|
-
for (r < o && d !== r &&
|
|
2191
|
-
const
|
|
2192
|
-
if (!V(
|
|
2177
|
+
const v = s.charCodeAt(r);
|
|
2178
|
+
if (v === 10) {
|
|
2179
|
+
const y = i(c);
|
|
2180
|
+
y !== null && (s += y, o = s.length, c++);
|
|
2181
|
+
} else if (!V(v)) break;
|
|
2182
|
+
}
|
|
2183
|
+
let g = u.md.helpers.parseLinkTitle(s, r, o);
|
|
2184
|
+
for (; g.can_continue; ) {
|
|
2185
|
+
const v = i(c);
|
|
2186
|
+
if (v === null) break;
|
|
2187
|
+
s += v, r = o, o = s.length, c++, g = u.md.helpers.parseLinkTitle(s, r, o, g);
|
|
2188
|
+
}
|
|
2189
|
+
let k;
|
|
2190
|
+
for (r < o && d !== r && g.ok ? (k = g.str, r = g.pos) : (k = "", r = p, c = h); r < o; ) {
|
|
2191
|
+
const v = s.charCodeAt(r);
|
|
2192
|
+
if (!V(v))
|
|
2193
2193
|
break;
|
|
2194
2194
|
r++;
|
|
2195
2195
|
}
|
|
2196
|
-
if (r < o && s.charCodeAt(r) !== 10 &&
|
|
2197
|
-
for (
|
|
2198
|
-
const
|
|
2199
|
-
if (!V(
|
|
2196
|
+
if (r < o && s.charCodeAt(r) !== 10 && k)
|
|
2197
|
+
for (k = "", r = p, c = h; r < o; ) {
|
|
2198
|
+
const v = s.charCodeAt(r);
|
|
2199
|
+
if (!V(v))
|
|
2200
2200
|
break;
|
|
2201
2201
|
r++;
|
|
2202
2202
|
}
|
|
2203
2203
|
if (r < o && s.charCodeAt(r) !== 10)
|
|
2204
2204
|
return !1;
|
|
2205
|
-
const
|
|
2206
|
-
return
|
|
2205
|
+
const _ = De(s.slice(1, a));
|
|
2206
|
+
return _ ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[_] > "u" && (u.env.references[_] = { title: k, href: f }), u.line = c), !0) : !1;
|
|
2207
2207
|
}
|
|
2208
2208
|
const Vo = [
|
|
2209
2209
|
"address",
|
|
@@ -2727,8 +2727,8 @@ function _c(u, e) {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
if (!e) {
|
|
2729
2729
|
u.pos = p, u.posMax = h;
|
|
2730
|
-
const
|
|
2731
|
-
|
|
2730
|
+
const g = u.push("link_open", "a", 1), k = [["href", c]];
|
|
2731
|
+
g.attrs = k, i && k.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2732
2732
|
}
|
|
2733
2733
|
return u.pos = d, u.posMax = f, !0;
|
|
2734
2734
|
}
|
|
@@ -2764,15 +2764,15 @@ function vc(u, e) {
|
|
|
2764
2764
|
}
|
|
2765
2765
|
if (!e) {
|
|
2766
2766
|
n = u.src.slice(h, d);
|
|
2767
|
-
const
|
|
2767
|
+
const g = [];
|
|
2768
2768
|
u.md.inline.parse(
|
|
2769
2769
|
n,
|
|
2770
2770
|
u.md,
|
|
2771
2771
|
u.env,
|
|
2772
|
-
|
|
2772
|
+
g
|
|
2773
2773
|
);
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2774
|
+
const k = u.push("image", "img", 0), _ = [["src", l], ["alt", ""]];
|
|
2775
|
+
k.attrs = _, k.children = g, k.content = n, s && _.push(["title", s]);
|
|
2776
2776
|
}
|
|
2777
2777
|
return u.pos = o, u.posMax = p, !0;
|
|
2778
2778
|
}
|
|
@@ -3274,10 +3274,10 @@ const Jc = (u) => String.fromCodePoint(...u), Kc = function(u) {
|
|
|
3274
3274
|
const h = p <= o ? lt : p >= o + ue ? ue : p - o;
|
|
3275
3275
|
if (f < h)
|
|
3276
3276
|
break;
|
|
3277
|
-
const d = f - h,
|
|
3277
|
+
const d = f - h, g = hu - h;
|
|
3278
3278
|
e.push(
|
|
3279
|
-
Pe($t(h + d %
|
|
3280
|
-
), f = pu(d /
|
|
3279
|
+
Pe($t(h + d % g, 0))
|
|
3280
|
+
), f = pu(d / g);
|
|
3281
3281
|
}
|
|
3282
3282
|
e.push(Pe($t(f, 0))), o = x0(r, a, i === c), r = 0, ++i;
|
|
3283
3283
|
}
|
|
@@ -3597,8 +3597,8 @@ function fi() {
|
|
|
3597
3597
|
const c = [], i = { children: [] };
|
|
3598
3598
|
let s = i;
|
|
3599
3599
|
return r.forEach((a) => {
|
|
3600
|
-
var _, v,
|
|
3601
|
-
const { type: l, children: f, content: p, attrs: h, tag: d, hidden:
|
|
3600
|
+
var k, _, v, y, w, E, M, $, Z, C, q;
|
|
3601
|
+
const { type: l, children: f, content: p, attrs: h, tag: d, hidden: g } = a;
|
|
3602
3602
|
switch (l) {
|
|
3603
3603
|
case "heading_open":
|
|
3604
3604
|
case "paragraph_open":
|
|
@@ -3616,15 +3616,15 @@ function fi() {
|
|
|
3616
3616
|
case "em_open":
|
|
3617
3617
|
case "s_open":
|
|
3618
3618
|
case "link_open": {
|
|
3619
|
-
if (
|
|
3620
|
-
const
|
|
3619
|
+
if (g) break;
|
|
3620
|
+
const x = {
|
|
3621
3621
|
tag: (o == null ? void 0 : o[d]) ?? d,
|
|
3622
3622
|
children: [],
|
|
3623
3623
|
attrs: h ? Object.fromEntries(h) : {}
|
|
3624
3624
|
};
|
|
3625
3625
|
if (l === "link_open") {
|
|
3626
3626
|
const B = a.attrGet("href") ?? "", L = document.location.origin;
|
|
3627
|
-
B != null && B.startsWith("http") && !B.includes(L) && (
|
|
3627
|
+
B != null && B.startsWith("http") && !B.includes(L) && (x.attrs.target = "_blank", x.attrs.rel = "noopener noreferrer", x.attrs.dataOuter = "", (k = x.children) == null || k.push({ tag: nr }));
|
|
3628
3628
|
}
|
|
3629
3629
|
if (l === "table_open") {
|
|
3630
3630
|
const B = {
|
|
@@ -3632,9 +3632,9 @@ function fi() {
|
|
|
3632
3632
|
children: [],
|
|
3633
3633
|
attrs: { class: "sq-article-table" }
|
|
3634
3634
|
};
|
|
3635
|
-
(
|
|
3635
|
+
(_ = s.children) == null || _.push(B), c.push(s), s = B;
|
|
3636
3636
|
}
|
|
3637
|
-
(
|
|
3637
|
+
(v = s.children) == null || v.push(x), c.push(s), s = x;
|
|
3638
3638
|
break;
|
|
3639
3639
|
}
|
|
3640
3640
|
case "heading_close":
|
|
@@ -3653,12 +3653,12 @@ function fi() {
|
|
|
3653
3653
|
case "em_close":
|
|
3654
3654
|
case "s_close":
|
|
3655
3655
|
case "link_close": {
|
|
3656
|
-
if (
|
|
3656
|
+
if (g) break;
|
|
3657
3657
|
s = c.pop();
|
|
3658
3658
|
break;
|
|
3659
3659
|
}
|
|
3660
3660
|
case "code_inline": {
|
|
3661
|
-
(
|
|
3661
|
+
(y = s.children) == null || y.push({
|
|
3662
3662
|
tag: (o == null ? void 0 : o[d]) ?? d,
|
|
3663
3663
|
children: [p],
|
|
3664
3664
|
attrs: h ? Object.fromEntries(h) : {}
|
|
@@ -3667,8 +3667,8 @@ function fi() {
|
|
|
3667
3667
|
}
|
|
3668
3668
|
case "inline": {
|
|
3669
3669
|
if (f) {
|
|
3670
|
-
const
|
|
3671
|
-
(
|
|
3670
|
+
const x = n(f, o);
|
|
3671
|
+
(w = s.children) == null || w.push(...x ?? []);
|
|
3672
3672
|
} else
|
|
3673
3673
|
(E = s.children) == null || E.push(p);
|
|
3674
3674
|
break;
|
|
@@ -3692,11 +3692,11 @@ function fi() {
|
|
|
3692
3692
|
break;
|
|
3693
3693
|
}
|
|
3694
3694
|
case "input": {
|
|
3695
|
-
const
|
|
3696
|
-
(
|
|
3695
|
+
const x = h ? Object.fromEntries(h) : {}, B = x.type ?? "text", L = `${d}-${B}`;
|
|
3696
|
+
(C = s.children) == null || C.push({
|
|
3697
3697
|
tag: (o == null ? void 0 : o[L]) ?? d,
|
|
3698
3698
|
children: [],
|
|
3699
|
-
attrs:
|
|
3699
|
+
attrs: x
|
|
3700
3700
|
});
|
|
3701
3701
|
break;
|
|
3702
3702
|
}
|
|
@@ -3704,8 +3704,8 @@ function fi() {
|
|
|
3704
3704
|
if (p.startsWith("</"))
|
|
3705
3705
|
s = c.pop();
|
|
3706
3706
|
else {
|
|
3707
|
-
const
|
|
3708
|
-
tag: (o == null ? void 0 : o[
|
|
3707
|
+
const x = p.replace("<", "").replace(">", ""), B = {
|
|
3708
|
+
tag: (o == null ? void 0 : o[x]) ?? x,
|
|
3709
3709
|
children: []
|
|
3710
3710
|
};
|
|
3711
3711
|
(q = s.children) == null || q.push(B), c.push(s), s = B;
|
|
@@ -3860,7 +3860,7 @@ const { md2tokens: hi, tokens2vueh: pi } = fi(), bi = "sq-article", cl = I({
|
|
|
3860
3860
|
name: r.transition
|
|
3861
3861
|
}, {
|
|
3862
3862
|
default: H(() => {
|
|
3863
|
-
var h, d,
|
|
3863
|
+
var h, d, g;
|
|
3864
3864
|
return [
|
|
3865
3865
|
bu(F("div", _i, [
|
|
3866
3866
|
F("div", {
|
|
@@ -3875,7 +3875,7 @@ const { md2tokens: hi, tokens2vueh: pi } = fi(), bi = "sq-article", cl = I({
|
|
|
3875
3875
|
max: o.value,
|
|
3876
3876
|
type: (h = r.progressProps) == null ? void 0 : h.type,
|
|
3877
3877
|
stroke: (d = r.progressProps) == null ? void 0 : d.stroke,
|
|
3878
|
-
color: (
|
|
3878
|
+
color: (g = r.progressProps) == null ? void 0 : g.color
|
|
3879
3879
|
}, null, 8, ["value", "max", "type", "stroke", "color"])) : j("", !0),
|
|
3880
3880
|
U(f.$slots, "default", {}, () => [
|
|
3881
3881
|
(m(), R(Cu(r.icon)))
|
|
@@ -4093,8 +4093,8 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4093
4093
|
emits: ["click"],
|
|
4094
4094
|
setup(u, { emit: e }) {
|
|
4095
4095
|
const t = e, n = u, { btnTextType: r, btnSize: o, btnType: c, btnRound: i, btnDisabled: s } = Ci(n), a = D(() => {
|
|
4096
|
-
const p = [], h = b(o), d = b(c),
|
|
4097
|
-
return h !== "md" && p.push(`sq-button--${h}`), d && p.push(`is-${d}`),
|
|
4096
|
+
const p = [], h = b(o), d = b(c), g = b(i), k = b(r);
|
|
4097
|
+
return h !== "md" && p.push(`sq-button--${h}`), d && p.push(`is-${d}`), g && p.push("is-round"), k && p.push("is-text"), k && n.bg && p.push("has-bg"), p;
|
|
4098
4098
|
}), l = D(() => n.loading ? Ce : n.icon), f = D(() => n.loading || b(s));
|
|
4099
4099
|
return (p, h) => (m(), A("button", {
|
|
4100
4100
|
class: G(["sq-button", a.value]),
|
|
@@ -4192,8 +4192,8 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4192
4192
|
checkboxVariant: s,
|
|
4193
4193
|
groupContext: a
|
|
4194
4194
|
} = wi(n), l = lu(u, "checked"), f = D(() => {
|
|
4195
|
-
const h = [], d = b(r),
|
|
4196
|
-
return d !== "md" && h.push(`sq-selection--${d}`), p.value && h.push("is-checked"),
|
|
4195
|
+
const h = [], d = b(r), g = b(o), k = b(s);
|
|
4196
|
+
return d !== "md" && h.push(`sq-selection--${d}`), p.value && h.push("is-checked"), g && h.push("is-disabled"), k && h.push(`is-${k}`), h;
|
|
4197
4197
|
}), p = D(() => n.label && a ? b(b(a).list).includes(n.label) : l.value);
|
|
4198
4198
|
return wu(p, (h) => {
|
|
4199
4199
|
if (l.value !== h) {
|
|
@@ -4214,8 +4214,8 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4214
4214
|
form: b(c),
|
|
4215
4215
|
value: n.label,
|
|
4216
4216
|
disabled: b(o),
|
|
4217
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
4218
|
-
onChange: d[1] || (d[1] = (
|
|
4217
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => l.value = g),
|
|
4218
|
+
onChange: d[1] || (d[1] = (g) => t("change", l.value))
|
|
4219
4219
|
}, null, 40, Ri), [
|
|
4220
4220
|
[Ut, l.value]
|
|
4221
4221
|
]),
|
|
@@ -4392,137 +4392,137 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4392
4392
|
})
|
|
4393
4393
|
);
|
|
4394
4394
|
const c = N({}), i = N([]), s = N({}), a = D(() => {
|
|
4395
|
-
const
|
|
4396
|
-
return o.size !== "md" &&
|
|
4395
|
+
const C = [];
|
|
4396
|
+
return o.size !== "md" && C.push(`sq-form--${o.size}`), o.requiredMark !== "hidden" && C.push(`required-${o.requiredMark}`), C.push(`is-${o.layout}`), C;
|
|
4397
4397
|
}), l = D(() => ({
|
|
4398
4398
|
"--form-label-width": o.labelWidth
|
|
4399
4399
|
})), f = D(() => {
|
|
4400
|
-
const
|
|
4401
|
-
return
|
|
4400
|
+
const C = o.step;
|
|
4401
|
+
return C === void 0 ? o.items : o.items.filter((q) => q.step === void 0 ? q : Array.isArray(q.step) ? q.step.includes(C) : q.step === C);
|
|
4402
4402
|
});
|
|
4403
4403
|
Du(() => {
|
|
4404
4404
|
n = structuredClone(Ou(o.formData));
|
|
4405
4405
|
});
|
|
4406
|
-
function p(
|
|
4406
|
+
function p(C) {
|
|
4407
4407
|
var q;
|
|
4408
|
-
return (q =
|
|
4408
|
+
return (q = C.rule) == null ? void 0 : q.required;
|
|
4409
4409
|
}
|
|
4410
|
-
function h(
|
|
4411
|
-
if (s.value[
|
|
4412
|
-
if (i.value.includes(
|
|
4413
|
-
if (c.value[
|
|
4410
|
+
function h(C) {
|
|
4411
|
+
if (s.value[C]) return Ce;
|
|
4412
|
+
if (i.value.includes(C)) return Je;
|
|
4413
|
+
if (c.value[C])
|
|
4414
4414
|
return o.invalidStatus === "error" ? Ke : ut;
|
|
4415
4415
|
}
|
|
4416
|
-
async function d(
|
|
4417
|
-
if (!
|
|
4418
|
-
const L =
|
|
4416
|
+
async function d(C, q, x, B = !0) {
|
|
4417
|
+
if (!x) return;
|
|
4418
|
+
const L = x.trigger ?? "change", O = Array.isArray(L) ? "array" : "string";
|
|
4419
4419
|
if (q) {
|
|
4420
4420
|
if (O === "array" && !L.includes(q)) return;
|
|
4421
4421
|
if (O === "string" && L !== q) return;
|
|
4422
4422
|
}
|
|
4423
|
-
i.value = i.value.filter((z) => z !==
|
|
4424
|
-
const W = o.formData[
|
|
4423
|
+
i.value = i.value.filter((z) => z !== C), M(C), s.value[C] = new AbortController(), await P0();
|
|
4424
|
+
const W = o.formData[C];
|
|
4425
4425
|
let Y = !1;
|
|
4426
|
-
const S =
|
|
4427
|
-
return
|
|
4426
|
+
const S = x.validateType ?? "string";
|
|
4427
|
+
return x.validateFunc ? Y = await k(C, W, x, q) : S === "string" ? Y = _(C, W, x) : S === "boolean" ? Y = v(C, W, x) : S === "list" && (Y = y(C, W, x)), B && r("validate", C, Y, Ou(i.value)), s.value[C].signal.aborted || M(C), Y;
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4430
|
-
if (c.value[
|
|
4429
|
+
function g(C) {
|
|
4430
|
+
if (c.value[C]) return o.invalidStatus;
|
|
4431
4431
|
}
|
|
4432
|
-
async function
|
|
4433
|
-
const L = s.value[
|
|
4432
|
+
async function k(C, q, x, B) {
|
|
4433
|
+
const L = s.value[C].signal, O = await x.validateFunc(q, L, B);
|
|
4434
4434
|
if (O === void 0) {
|
|
4435
|
-
i.value = i.value.filter((W) => W !==
|
|
4435
|
+
i.value = i.value.filter((W) => W !== C), delete c.value[C];
|
|
4436
4436
|
return;
|
|
4437
4437
|
}
|
|
4438
|
-
return O === !0 ? E(
|
|
4438
|
+
return O === !0 ? E(C) : O === !1 ? w(C, "字段验证失败") : O ? w(C, O) : E(C), O === !0 || typeof O == "string" && !O;
|
|
4439
4439
|
}
|
|
4440
|
-
function
|
|
4441
|
-
return
|
|
4440
|
+
function _(C, q, x) {
|
|
4441
|
+
return x.required && !q ? (w(C, x.requiredText ?? "字段必填"), !1) : x.pattern && q && !x.pattern.test(q) ? (w(C, x.patternText ?? "字段验证失败"), !1) : (E(C), !0);
|
|
4442
4442
|
}
|
|
4443
|
-
function
|
|
4444
|
-
return
|
|
4443
|
+
function v(C, q, x) {
|
|
4444
|
+
return x.required && q === void 0 ? (w(C, x.requiredText ?? "字段必填"), !1) : (E(C), !0);
|
|
4445
4445
|
}
|
|
4446
|
-
function
|
|
4447
|
-
return
|
|
4446
|
+
function y(C, q, x) {
|
|
4447
|
+
return x.required && (!q || !q.length) ? (w(C, x.requiredText ?? "字段必填"), !1) : x.pattern && q && q.map((O) => O.toString()).map((O) => x.pattern.test(O)).includes(!1) ? (w(C, x.patternText ?? "字段验证失败"), !1) : (E(C), !0);
|
|
4448
4448
|
}
|
|
4449
|
-
function C
|
|
4450
|
-
i.value = i.value.filter((
|
|
4449
|
+
function w(C, q) {
|
|
4450
|
+
i.value = i.value.filter((x) => x !== C), c.value[C] = q;
|
|
4451
4451
|
}
|
|
4452
|
-
function E(
|
|
4453
|
-
i.value.push(
|
|
4452
|
+
function E(C) {
|
|
4453
|
+
i.value.push(C), delete c.value[C];
|
|
4454
4454
|
}
|
|
4455
|
-
function M(
|
|
4455
|
+
function M(C) {
|
|
4456
4456
|
var q;
|
|
4457
|
-
(q = s.value[
|
|
4457
|
+
(q = s.value[C]) == null || q.abort(), delete s.value[C];
|
|
4458
4458
|
}
|
|
4459
4459
|
function $() {
|
|
4460
4460
|
r("update:formData", structuredClone(n)), c.value = {}, i.value = [], r("validate", "SQFORM", !1, Ou(i.value));
|
|
4461
4461
|
}
|
|
4462
|
-
function Z(
|
|
4463
|
-
const
|
|
4462
|
+
function Z(C = !0) {
|
|
4463
|
+
const x = (C ? o.items : f.value).filter(
|
|
4464
4464
|
(B) => B.type !== "custom" && B.rule && !i.value.includes(B.binding)
|
|
4465
4465
|
).map((B) => {
|
|
4466
4466
|
const L = B;
|
|
4467
4467
|
return d(L.binding, void 0, L.rule, !1);
|
|
4468
4468
|
});
|
|
4469
|
-
return Promise.all(
|
|
4469
|
+
return Promise.all(x).then((B) => (r("validate", "SQFORM", !B.includes(!1), Ou(i.value)), B));
|
|
4470
4470
|
}
|
|
4471
|
-
return e({ resetFields: $, validate: Z }), (
|
|
4471
|
+
return e({ resetFields: $, validate: Z }), (C, q) => (m(), A("form", {
|
|
4472
4472
|
class: G(["sq-form", a.value]),
|
|
4473
4473
|
style: eu(l.value),
|
|
4474
4474
|
onSubmit: q[0] || (q[0] = Qe(() => {
|
|
4475
4475
|
}, ["prevent"]))
|
|
4476
4476
|
}, [
|
|
4477
|
-
(m(!0), A(gu, null, Uu(f.value, (
|
|
4478
|
-
class: G(
|
|
4479
|
-
type:
|
|
4477
|
+
(m(!0), A(gu, null, Uu(f.value, (x, B) => (m(), R(Gi, {
|
|
4478
|
+
class: G(x.itemClass),
|
|
4479
|
+
type: x.type,
|
|
4480
4480
|
key: B,
|
|
4481
|
-
"label-width":
|
|
4482
|
-
label:
|
|
4483
|
-
"show-label":
|
|
4484
|
-
"is-required": p(
|
|
4485
|
-
"error-msg": o.hasFeedback ? c.value[
|
|
4481
|
+
"label-width": x.labelWidth,
|
|
4482
|
+
label: x.label,
|
|
4483
|
+
"show-label": x.showLabel && o.layout !== "vertical",
|
|
4484
|
+
"is-required": p(x),
|
|
4485
|
+
"error-msg": o.hasFeedback ? c.value[x.binding] : ""
|
|
4486
4486
|
}, {
|
|
4487
4487
|
default: H(() => [
|
|
4488
|
-
|
|
4488
|
+
x.type === "input" ? (m(), R(b(hs), ae({
|
|
4489
4489
|
key: 0,
|
|
4490
4490
|
ref_for: !0
|
|
4491
|
-
},
|
|
4492
|
-
name:
|
|
4493
|
-
status: x
|
|
4494
|
-
"suffix-icon": h(
|
|
4495
|
-
value: o.formData[
|
|
4496
|
-
"onUpdate:value": (L) => o.formData[
|
|
4497
|
-
onChange: (L) => d(
|
|
4498
|
-
onInput: (L) => d(
|
|
4499
|
-
onBlur: (L) => d(
|
|
4500
|
-
}), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) :
|
|
4491
|
+
}, x.props, {
|
|
4492
|
+
name: x.name,
|
|
4493
|
+
status: g(x.binding),
|
|
4494
|
+
"suffix-icon": h(x.binding),
|
|
4495
|
+
value: o.formData[x.binding],
|
|
4496
|
+
"onUpdate:value": (L) => o.formData[x.binding] = L,
|
|
4497
|
+
onChange: (L) => d(x.binding, "change", x.rule),
|
|
4498
|
+
onInput: (L) => d(x.binding, "input", x.rule),
|
|
4499
|
+
onBlur: (L) => d(x.binding, "blur", x.rule)
|
|
4500
|
+
}), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : x.type === "checkbox" ? (m(), R(b(Zi), ae({
|
|
4501
4501
|
key: 1,
|
|
4502
4502
|
ref_for: !0
|
|
4503
|
-
},
|
|
4504
|
-
name:
|
|
4505
|
-
value: o.formData[
|
|
4506
|
-
"onUpdate:value": (L) => o.formData[
|
|
4507
|
-
onChange: (L) => d(
|
|
4508
|
-
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) :
|
|
4503
|
+
}, x.props, {
|
|
4504
|
+
name: x.name,
|
|
4505
|
+
value: o.formData[x.binding],
|
|
4506
|
+
"onUpdate:value": (L) => o.formData[x.binding] = L,
|
|
4507
|
+
onChange: (L) => d(x.binding, "change", x.rule)
|
|
4508
|
+
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : x.type === "radio" ? (m(), R(b(Pa), ae({
|
|
4509
4509
|
key: 2,
|
|
4510
4510
|
ref_for: !0
|
|
4511
|
-
},
|
|
4512
|
-
name:
|
|
4513
|
-
value: o.formData[
|
|
4514
|
-
"onUpdate:value": (L) => o.formData[
|
|
4515
|
-
onChange: (L) => d(
|
|
4516
|
-
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) :
|
|
4511
|
+
}, x.props, {
|
|
4512
|
+
name: x.name,
|
|
4513
|
+
value: o.formData[x.binding],
|
|
4514
|
+
"onUpdate:value": (L) => o.formData[x.binding] = L,
|
|
4515
|
+
onChange: (L) => d(x.binding, "change", x.rule)
|
|
4516
|
+
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : x.type === "switch" ? (m(), R(b(Va), ae({
|
|
4517
4517
|
key: 3,
|
|
4518
4518
|
ref_for: !0
|
|
4519
|
-
},
|
|
4520
|
-
name:
|
|
4521
|
-
loading: !!s.value[
|
|
4522
|
-
checked: o.formData[
|
|
4523
|
-
"onUpdate:checked": (L) => o.formData[
|
|
4524
|
-
onChange: (L) => d(
|
|
4525
|
-
}), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : U(
|
|
4519
|
+
}, x.props, {
|
|
4520
|
+
name: x.name,
|
|
4521
|
+
loading: !!s.value[x.binding],
|
|
4522
|
+
checked: o.formData[x.binding],
|
|
4523
|
+
"onUpdate:checked": (L) => o.formData[x.binding] = L,
|
|
4524
|
+
onChange: (L) => d(x.binding, "change", x.rule)
|
|
4525
|
+
}), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : U(C.$slots, x.slot, { key: 4 })
|
|
4526
4526
|
]),
|
|
4527
4527
|
_: 2
|
|
4528
4528
|
}, 1032, ["class", "type", "label-width", "label", "show-label", "is-required", "error-msg"]))), 128))
|
|
@@ -4554,72 +4554,73 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4554
4554
|
lazy: { type: Boolean, default: !0 },
|
|
4555
4555
|
source: {}
|
|
4556
4556
|
},
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4557
|
+
emits: ["load", "error"],
|
|
4558
|
+
setup(u, { emit: e }) {
|
|
4559
|
+
const t = new IntersectionObserver(g), n = e, r = u, o = N(!1), c = N(r.src), i = N(!1), s = N(!1), a = N(!1), l = Yu(null), f = D(() => o.value && !i.value), p = D(() => ({
|
|
4560
|
+
height: f.value ? void 0 : "var(--image-placeholder-height)",
|
|
4561
|
+
aspectRatio: f.value ? void 0 : r.aspectRatio
|
|
4561
4562
|
}));
|
|
4562
4563
|
Du(() => {
|
|
4563
|
-
|
|
4564
|
+
t.observe(l.value);
|
|
4564
4565
|
}), ye(() => {
|
|
4565
|
-
|
|
4566
|
+
t.disconnect();
|
|
4566
4567
|
});
|
|
4567
|
-
function
|
|
4568
|
-
|
|
4568
|
+
function h(_) {
|
|
4569
|
+
o.value = !0, n("load", _);
|
|
4569
4570
|
}
|
|
4570
|
-
function
|
|
4571
|
-
if (
|
|
4572
|
-
|
|
4571
|
+
function d(_) {
|
|
4572
|
+
if (c.value !== r.fallback && r.fallback) {
|
|
4573
|
+
c.value = r.fallback;
|
|
4573
4574
|
return;
|
|
4574
4575
|
}
|
|
4575
|
-
|
|
4576
|
+
i.value = !0, o.value = !0, n("error", _);
|
|
4576
4577
|
}
|
|
4577
|
-
function
|
|
4578
|
-
|
|
4578
|
+
function g(_) {
|
|
4579
|
+
_[0].isIntersecting && (s.value = !0, t.disconnect());
|
|
4579
4580
|
}
|
|
4580
|
-
function
|
|
4581
|
-
|
|
4581
|
+
function k() {
|
|
4582
|
+
a.value = !0;
|
|
4582
4583
|
}
|
|
4583
|
-
return (
|
|
4584
|
+
return (_, v) => (m(), A("div", {
|
|
4584
4585
|
class: "sq-image",
|
|
4585
|
-
style: eu(
|
|
4586
|
+
style: eu(p.value),
|
|
4586
4587
|
ref_key: "imgRef",
|
|
4587
|
-
ref:
|
|
4588
|
+
ref: l
|
|
4588
4589
|
}, [
|
|
4589
4590
|
P(Vu, { name: "sq-fade" }, {
|
|
4590
4591
|
default: H(() => [
|
|
4591
|
-
|
|
4592
|
+
o.value ? j("", !0) : (m(), A("div", Yi))
|
|
4592
4593
|
]),
|
|
4593
4594
|
_: 1
|
|
4594
4595
|
}),
|
|
4595
|
-
!
|
|
4596
|
-
(m(!0), A(gu, null, Uu(
|
|
4597
|
-
key:
|
|
4598
|
-
srcset:
|
|
4599
|
-
media:
|
|
4600
|
-
type:
|
|
4596
|
+
!i.value && s.value ? (m(), A("picture", Qi, [
|
|
4597
|
+
(m(!0), A(gu, null, Uu(r.source, (y, w) => (m(), A("source", {
|
|
4598
|
+
key: w,
|
|
4599
|
+
srcset: y.src,
|
|
4600
|
+
media: y.media,
|
|
4601
|
+
type: y.type
|
|
4601
4602
|
}, null, 8, Ji))), 128)),
|
|
4602
4603
|
F("img", {
|
|
4603
|
-
style: eu({ objectFit:
|
|
4604
|
-
crossorigin:
|
|
4605
|
-
alt:
|
|
4606
|
-
src:
|
|
4607
|
-
onLoad:
|
|
4608
|
-
onError:
|
|
4604
|
+
style: eu({ objectFit: r.objectFit }),
|
|
4605
|
+
crossorigin: r.crossorigin,
|
|
4606
|
+
alt: r.alt,
|
|
4607
|
+
src: c.value,
|
|
4608
|
+
onLoad: h,
|
|
4609
|
+
onError: d
|
|
4609
4610
|
}, null, 44, Ki)
|
|
4610
4611
|
])) : j("", !0),
|
|
4611
|
-
!
|
|
4612
|
-
P(b(Yt), { onClick:
|
|
4612
|
+
!i.value && s.value && r.preview ? (m(), A("div", us, [
|
|
4613
|
+
P(b(Yt), { onClick: k })
|
|
4613
4614
|
])) : j("", !0),
|
|
4614
|
-
|
|
4615
|
-
U(
|
|
4616
|
-
|
|
4615
|
+
i.value ? (m(), A("div", es, [
|
|
4616
|
+
U(_.$slots, "error", {}, () => [
|
|
4617
|
+
v[1] || (v[1] = F("span", null, "图片加载失败", -1))
|
|
4617
4618
|
])
|
|
4618
4619
|
])) : j("", !0),
|
|
4619
4620
|
P(b(is), {
|
|
4620
|
-
"src-list": [
|
|
4621
|
-
visible:
|
|
4622
|
-
"onUpdate:visible":
|
|
4621
|
+
"src-list": [c.value],
|
|
4622
|
+
visible: a.value,
|
|
4623
|
+
"onUpdate:visible": v[0] || (v[0] = (y) => a.value = y)
|
|
4623
4624
|
}, null, 8, ["src-list", "visible"])
|
|
4624
4625
|
], 4));
|
|
4625
4626
|
}
|
|
@@ -4644,7 +4645,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4644
4645
|
setup(u) {
|
|
4645
4646
|
const { nextZIndex: e } = tt(), t = {}, n = {};
|
|
4646
4647
|
let r, o = !1, c;
|
|
4647
|
-
const i = u, s = N(0), a = N(1), l = N(!1), f = N(!1), p = N(0), h = N({ x: 0, y: 0 }), d = lu(u, "visible"),
|
|
4648
|
+
const i = u, s = N(0), a = N(1), l = N(!1), f = N(!1), p = N(0), h = N({ x: 0, y: 0 }), d = lu(u, "visible"), g = D(() => {
|
|
4648
4649
|
const S = l.value ? -1 : 1, z = f.value ? -1 : 1;
|
|
4649
4650
|
return {
|
|
4650
4651
|
transform: [
|
|
@@ -4659,21 +4660,21 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4659
4660
|
const z = document.scrollingElement;
|
|
4660
4661
|
S ? (r = z.style.overflow, z.style.overflow = "hidden", s.value = e()) : (l.value = !1, f.value = !1, p.value = 0, h.value = { x: 0, y: 0 }, a.value = 1, z.style.overflow = r);
|
|
4661
4662
|
});
|
|
4662
|
-
function
|
|
4663
|
-
S.deltaY < 0 ? Z() :
|
|
4663
|
+
function k(S) {
|
|
4664
|
+
S.deltaY < 0 ? Z() : C();
|
|
4664
4665
|
}
|
|
4665
|
-
function
|
|
4666
|
+
function _(S) {
|
|
4666
4667
|
o = !0, t.x = S.x, t.y = S.y;
|
|
4667
4668
|
}
|
|
4668
|
-
function
|
|
4669
|
+
function v() {
|
|
4669
4670
|
o = !1;
|
|
4670
4671
|
}
|
|
4671
|
-
function
|
|
4672
|
+
function y(S) {
|
|
4672
4673
|
if (!o || !i.moveable) return;
|
|
4673
4674
|
const z = S.x - t.x, T = S.y - t.y;
|
|
4674
4675
|
h.value.x += z * 2, h.value.y += T * 2, t.x = S.x, t.y = S.y;
|
|
4675
4676
|
}
|
|
4676
|
-
function
|
|
4677
|
+
function w(S) {
|
|
4677
4678
|
S.touches.length === 1 ? (o = !0, t.x = S.touches[0].screenX, t.y = S.touches[0].screenY) : S.touches.length === 2 && (c = $(S.touches[0], S.touches[1]));
|
|
4678
4679
|
}
|
|
4679
4680
|
function E() {
|
|
@@ -4698,13 +4699,13 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4698
4699
|
function Z() {
|
|
4699
4700
|
a.value >= i.maxScale || (a.value = Math.min(i.maxScale, a.value * (1 + i.scaleStep)));
|
|
4700
4701
|
}
|
|
4701
|
-
function
|
|
4702
|
+
function C() {
|
|
4702
4703
|
a.value <= i.minScale || (a.value = Math.max(i.minScale, a.value / (1 + i.scaleStep)));
|
|
4703
4704
|
}
|
|
4704
4705
|
function q() {
|
|
4705
4706
|
a.value = Math.min(n.x, n.y), h.value = { x: 0, y: 0 };
|
|
4706
4707
|
}
|
|
4707
|
-
function
|
|
4708
|
+
function x() {
|
|
4708
4709
|
a.value = 1, h.value = { x: 0, y: 0 };
|
|
4709
4710
|
}
|
|
4710
4711
|
function B() {
|
|
@@ -4730,18 +4731,18 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4730
4731
|
key: 0,
|
|
4731
4732
|
class: "sq-image-viewer-mask",
|
|
4732
4733
|
style: eu({ zIndex: s.value }),
|
|
4733
|
-
onWheelPassive:
|
|
4734
|
-
onMousemove:
|
|
4735
|
-
onMouseup:
|
|
4734
|
+
onWheelPassive: k,
|
|
4735
|
+
onMousemove: y,
|
|
4736
|
+
onMouseup: v,
|
|
4736
4737
|
onTouchmovePassive: M,
|
|
4737
4738
|
onTouchend: E
|
|
4738
4739
|
}, [
|
|
4739
4740
|
F("img", {
|
|
4740
|
-
style: eu(
|
|
4741
|
+
style: eu(g.value),
|
|
4741
4742
|
src: i.srcList[0],
|
|
4742
4743
|
onLoad: Y,
|
|
4743
|
-
onMousedown: Qe(
|
|
4744
|
-
onTouchstartPassive:
|
|
4744
|
+
onMousedown: Qe(_, ["prevent"]),
|
|
4745
|
+
onTouchstartPassive: w
|
|
4745
4746
|
}, null, 44, rs),
|
|
4746
4747
|
P(b(ru), {
|
|
4747
4748
|
class: "sq-image-viewer-close",
|
|
@@ -4767,7 +4768,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4767
4768
|
text: "",
|
|
4768
4769
|
icon: b(vr),
|
|
4769
4770
|
disabled: a.value <= i.minScale,
|
|
4770
|
-
onClick:
|
|
4771
|
+
onClick: C
|
|
4771
4772
|
}, null, 8, ["icon", "disabled"])
|
|
4772
4773
|
]),
|
|
4773
4774
|
_: 1
|
|
@@ -4820,7 +4821,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4820
4821
|
P(b(ru), {
|
|
4821
4822
|
text: "",
|
|
4822
4823
|
icon: b(Tn),
|
|
4823
|
-
onClick:
|
|
4824
|
+
onClick: x
|
|
4824
4825
|
}, null, 8, ["icon"])
|
|
4825
4826
|
]),
|
|
4826
4827
|
_: 1
|
|
@@ -4876,21 +4877,21 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4876
4877
|
}),
|
|
4877
4878
|
emits: /* @__PURE__ */ tu(["focus", "blur", "input", "change"], ["update:value"]),
|
|
4878
4879
|
setup(u, { expose: e, emit: t }) {
|
|
4879
|
-
const n = Ye(), r = t, o = u, { inputSize: c, inputRound: i, inputDisabled: s, inputReadonly: a, id: l } = Di(o), f = lu(u, "value"), p = N(!1), h = N(!1), d = Yu(null),
|
|
4880
|
+
const n = Ye(), r = t, o = u, { inputSize: c, inputRound: i, inputDisabled: s, inputReadonly: a, id: l } = Di(o), f = lu(u, "value"), p = N(!1), h = N(!1), d = Yu(null), g = D(() => {
|
|
4880
4881
|
const S = [], z = b(c), T = b(i), K = b(Z);
|
|
4881
4882
|
return z !== "md" && S.push(`sq-input--${z}`), o.status && S.push(`is-${o.status}`), T && S.push("is-round"), K && S.push("is-disabled"), S;
|
|
4882
|
-
}),
|
|
4883
|
-
() => o.type === "password" && b(
|
|
4884
|
-
), E = D(() => o.clearable && b(
|
|
4885
|
-
() => b(
|
|
4886
|
-
), Z = D(() => o.loading || b(s)),
|
|
4883
|
+
}), k = D(() => b(h) ? Yn : Yt), _ = D(() => b(h) ? "text" : o.type), v = D(() => n.prefix || o.prefixIcon), y = D(() => b(p) && b(f).length), w = D(
|
|
4884
|
+
() => o.type === "password" && b(y)
|
|
4885
|
+
), E = D(() => o.clearable && b(y)), M = D(() => o.loading ? Ce : o.suffixIcon), $ = D(
|
|
4886
|
+
() => b(w) || b(E) || b(M) || n.suffix
|
|
4887
|
+
), Z = D(() => o.loading || b(s)), C = D(() => {
|
|
4887
4888
|
if (o.type === "textarea")
|
|
4888
4889
|
return b(Z) || b(a) ? "none" : o.resize;
|
|
4889
4890
|
});
|
|
4890
4891
|
function q(S) {
|
|
4891
4892
|
r("focus", S), !b(a) && (p.value = !0);
|
|
4892
4893
|
}
|
|
4893
|
-
function
|
|
4894
|
+
function x(S) {
|
|
4894
4895
|
r("blur", S), !b(a) && (p.value = !1);
|
|
4895
4896
|
}
|
|
4896
4897
|
function B() {
|
|
@@ -4911,10 +4912,10 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4911
4912
|
p.value = !1, (S = d.value) == null || S.blur();
|
|
4912
4913
|
}
|
|
4913
4914
|
return e({ focus: W, blur: Y }), (S, z) => (m(), A("div", {
|
|
4914
|
-
class: G(["sq-input",
|
|
4915
|
+
class: G(["sq-input", g.value]),
|
|
4915
4916
|
onMousedown: B
|
|
4916
4917
|
}, [
|
|
4917
|
-
|
|
4918
|
+
v.value ? (m(), A("span", ss, [
|
|
4918
4919
|
U(S.$slots, "prefix", {}, () => [
|
|
4919
4920
|
(m(), R(Cu(o.prefixIcon)))
|
|
4920
4921
|
])
|
|
@@ -4927,7 +4928,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4927
4928
|
disabled: Z.value,
|
|
4928
4929
|
readonly: b(a),
|
|
4929
4930
|
placeholder: o.placeholder,
|
|
4930
|
-
type:
|
|
4931
|
+
type: _.value,
|
|
4931
4932
|
maxlength: o.maxlength,
|
|
4932
4933
|
minlength: o.minlength,
|
|
4933
4934
|
autocomplete: o.autocomplete,
|
|
@@ -4938,7 +4939,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4938
4939
|
ref_key: "inputRef",
|
|
4939
4940
|
ref: d,
|
|
4940
4941
|
onFocus: q,
|
|
4941
|
-
onBlur:
|
|
4942
|
+
onBlur: x,
|
|
4942
4943
|
onInput: z[1] || (z[1] = (T) => r("input", T)),
|
|
4943
4944
|
onChange: z[2] || (z[2] = (T) => r("change", T))
|
|
4944
4945
|
}, null, 40, as)), [
|
|
@@ -4946,13 +4947,13 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4946
4947
|
]) : bu((m(), A("textarea", {
|
|
4947
4948
|
key: 2,
|
|
4948
4949
|
class: "sq-input-inner",
|
|
4949
|
-
style: eu({ resize:
|
|
4950
|
+
style: eu({ resize: C.value }),
|
|
4950
4951
|
"onUpdate:modelValue": z[3] || (z[3] = (T) => f.value = T),
|
|
4951
4952
|
id: b(l),
|
|
4952
4953
|
disabled: Z.value,
|
|
4953
4954
|
readonly: b(a),
|
|
4954
4955
|
placeholder: o.placeholder,
|
|
4955
|
-
type:
|
|
4956
|
+
type: _.value,
|
|
4956
4957
|
maxlength: o.maxlength,
|
|
4957
4958
|
minlength: o.minlength,
|
|
4958
4959
|
autocomplete: o.autocomplete,
|
|
@@ -4965,14 +4966,14 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
|
|
|
4965
4966
|
ref_key: "inputRef",
|
|
4966
4967
|
ref: d,
|
|
4967
4968
|
onFocus: q,
|
|
4968
|
-
onBlur:
|
|
4969
|
+
onBlur: x,
|
|
4969
4970
|
onInput: z[4] || (z[4] = (T) => r("input", T)),
|
|
4970
4971
|
onChange: z[5] || (z[5] = (T) => r("change", T))
|
|
4971
4972
|
}, null, 44, ls)), [
|
|
4972
4973
|
[Z0, f.value]
|
|
4973
4974
|
]),
|
|
4974
4975
|
bu(F("span", fs, [
|
|
4975
|
-
|
|
4976
|
+
w.value ? (m(), R(Cu(k.value), {
|
|
4976
4977
|
key: 0,
|
|
4977
4978
|
class: "sq-input-suffix-pwd",
|
|
4978
4979
|
onMousedown: O
|
|
@@ -5445,16 +5446,16 @@ const Vs = async (u, e, t) => {
|
|
|
5445
5446
|
x: l,
|
|
5446
5447
|
y: f
|
|
5447
5448
|
} = Pt(a, n, s), p = n, h = {}, d = 0;
|
|
5448
|
-
for (let
|
|
5449
|
+
for (let g = 0; g < i.length; g++) {
|
|
5449
5450
|
const {
|
|
5450
|
-
name:
|
|
5451
|
-
fn:
|
|
5452
|
-
} = i[
|
|
5453
|
-
x:
|
|
5454
|
-
y
|
|
5455
|
-
data:
|
|
5451
|
+
name: k,
|
|
5452
|
+
fn: _
|
|
5453
|
+
} = i[g], {
|
|
5454
|
+
x: v,
|
|
5455
|
+
y,
|
|
5456
|
+
data: w,
|
|
5456
5457
|
reset: E
|
|
5457
|
-
} = await
|
|
5458
|
+
} = await _({
|
|
5458
5459
|
x: l,
|
|
5459
5460
|
y: f,
|
|
5460
5461
|
initialPlacement: n,
|
|
@@ -5468,11 +5469,11 @@ const Vs = async (u, e, t) => {
|
|
|
5468
5469
|
floating: e
|
|
5469
5470
|
}
|
|
5470
5471
|
});
|
|
5471
|
-
l =
|
|
5472
|
+
l = v ?? l, f = y ?? f, h = {
|
|
5472
5473
|
...h,
|
|
5473
|
-
[
|
|
5474
|
-
...h[
|
|
5475
|
-
...
|
|
5474
|
+
[k]: {
|
|
5475
|
+
...h[k],
|
|
5476
|
+
...w
|
|
5476
5477
|
}
|
|
5477
5478
|
}, E && d <= 50 && (d++, typeof E == "object" && (E.placement && (p = E.placement), E.rects && (a = E.rects === !0 ? await c.getElementRects({
|
|
5478
5479
|
reference: u,
|
|
@@ -5481,7 +5482,7 @@ const Vs = async (u, e, t) => {
|
|
|
5481
5482
|
}) : E.rects), {
|
|
5482
5483
|
x: l,
|
|
5483
5484
|
y: f
|
|
5484
|
-
} = Pt(a, p, s)),
|
|
5485
|
+
} = Pt(a, p, s)), g = -1);
|
|
5485
5486
|
}
|
|
5486
5487
|
return {
|
|
5487
5488
|
x: l,
|
|
@@ -5507,17 +5508,17 @@ async function S0(u, e) {
|
|
|
5507
5508
|
elementContext: f = "floating",
|
|
5508
5509
|
altBoundary: p = !1,
|
|
5509
5510
|
padding: h = 0
|
|
5510
|
-
} = Fe(e, u), d = Hs(h),
|
|
5511
|
-
element: (t = await (o.isElement == null ? void 0 : o.isElement(
|
|
5511
|
+
} = Fe(e, u), d = Hs(h), k = i[p ? f === "floating" ? "reference" : "floating" : f], _ = ve(await o.getClippingRect({
|
|
5512
|
+
element: (t = await (o.isElement == null ? void 0 : o.isElement(k))) == null || t ? k : k.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
|
|
5512
5513
|
boundary: a,
|
|
5513
5514
|
rootBoundary: l,
|
|
5514
5515
|
strategy: s
|
|
5515
|
-
})),
|
|
5516
|
+
})), v = f === "floating" ? {
|
|
5516
5517
|
x: n,
|
|
5517
5518
|
y: r,
|
|
5518
5519
|
width: c.floating.width,
|
|
5519
5520
|
height: c.floating.height
|
|
5520
|
-
} : c.reference,
|
|
5521
|
+
} : c.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), w = await (o.isElement == null ? void 0 : o.isElement(y)) ? await (o.getScale == null ? void 0 : o.getScale(y)) || {
|
|
5521
5522
|
x: 1,
|
|
5522
5523
|
y: 1
|
|
5523
5524
|
} : {
|
|
@@ -5525,15 +5526,15 @@ async function S0(u, e) {
|
|
|
5525
5526
|
y: 1
|
|
5526
5527
|
}, E = ve(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5527
5528
|
elements: i,
|
|
5528
|
-
rect:
|
|
5529
|
-
offsetParent:
|
|
5529
|
+
rect: v,
|
|
5530
|
+
offsetParent: y,
|
|
5530
5531
|
strategy: s
|
|
5531
|
-
}) :
|
|
5532
|
+
}) : v);
|
|
5532
5533
|
return {
|
|
5533
|
-
top: (
|
|
5534
|
-
bottom: (E.bottom -
|
|
5535
|
-
left: (
|
|
5536
|
-
right: (E.right -
|
|
5534
|
+
top: (_.top - E.top + d.top) / w.y,
|
|
5535
|
+
bottom: (E.bottom - _.bottom + d.bottom) / w.y,
|
|
5536
|
+
left: (_.left - E.left + d.left) / w.x,
|
|
5537
|
+
right: (E.right - _.right + d.right) / w.x
|
|
5537
5538
|
};
|
|
5538
5539
|
}
|
|
5539
5540
|
const Us = function(u) {
|
|
@@ -5555,28 +5556,28 @@ const Us = function(u) {
|
|
|
5555
5556
|
fallbackPlacements: p,
|
|
5556
5557
|
fallbackStrategy: h = "bestFit",
|
|
5557
5558
|
fallbackAxisSideDirection: d = "none",
|
|
5558
|
-
flipAlignment:
|
|
5559
|
-
...
|
|
5559
|
+
flipAlignment: g = !0,
|
|
5560
|
+
...k
|
|
5560
5561
|
} = Fe(u, e);
|
|
5561
5562
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
5562
5563
|
return {};
|
|
5563
|
-
const
|
|
5564
|
-
!p && M && E.push(...Zs(i,
|
|
5565
|
-
const $ = [i, ...E], Z = await S0(e,
|
|
5564
|
+
const _ = Tu(r), v = qu(i), y = Tu(i) === i, w = await (s.isRTL == null ? void 0 : s.isRTL(a.floating)), E = p || (y || !g ? [_e(i)] : Is(i)), M = d !== "none";
|
|
5565
|
+
!p && M && E.push(...Zs(i, g, d, w));
|
|
5566
|
+
const $ = [i, ...E], Z = await S0(e, k), C = [];
|
|
5566
5567
|
let q = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
5567
|
-
if (l &&
|
|
5568
|
-
const O = Rs(r, c,
|
|
5569
|
-
|
|
5568
|
+
if (l && C.push(Z[_]), f) {
|
|
5569
|
+
const O = Rs(r, c, w);
|
|
5570
|
+
C.push(Z[O[0]], Z[O[1]]);
|
|
5570
5571
|
}
|
|
5571
5572
|
if (q = [...q, {
|
|
5572
5573
|
placement: r,
|
|
5573
|
-
overflows:
|
|
5574
|
-
}], !
|
|
5575
|
-
var
|
|
5576
|
-
const O = (((
|
|
5577
|
-
if (W && (!(f === "alignment" ?
|
|
5574
|
+
overflows: C
|
|
5575
|
+
}], !C.every((O) => O <= 0)) {
|
|
5576
|
+
var x, B;
|
|
5577
|
+
const O = (((x = o.flip) == null ? void 0 : x.index) || 0) + 1, W = $[O];
|
|
5578
|
+
if (W && (!(f === "alignment" ? v !== qu(W) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5578
5579
|
// overflows the main axis.
|
|
5579
|
-
q.every((z) => qu(z.placement) ===
|
|
5580
|
+
q.every((z) => qu(z.placement) === v ? z.overflows[0] > 0 : !0)))
|
|
5580
5581
|
return {
|
|
5581
5582
|
data: {
|
|
5582
5583
|
index: O,
|
|
@@ -5594,7 +5595,7 @@ const Us = function(u) {
|
|
|
5594
5595
|
const S = (L = q.filter((z) => {
|
|
5595
5596
|
if (M) {
|
|
5596
5597
|
const T = qu(z.placement);
|
|
5597
|
-
return T ===
|
|
5598
|
+
return T === v || // Create a bias to the `y` side axis due to horizontal
|
|
5598
5599
|
// reading directions favoring greater width.
|
|
5599
5600
|
T === "y";
|
|
5600
5601
|
}
|
|
@@ -5680,14 +5681,14 @@ const Xs = function(u) {
|
|
|
5680
5681
|
mainAxis: o = !0,
|
|
5681
5682
|
crossAxis: c = !1,
|
|
5682
5683
|
limiter: i = {
|
|
5683
|
-
fn: (
|
|
5684
|
+
fn: (k) => {
|
|
5684
5685
|
let {
|
|
5685
|
-
x:
|
|
5686
|
-
y:
|
|
5687
|
-
} =
|
|
5686
|
+
x: _,
|
|
5687
|
+
y: v
|
|
5688
|
+
} = k;
|
|
5688
5689
|
return {
|
|
5689
|
-
x:
|
|
5690
|
-
y:
|
|
5690
|
+
x: _,
|
|
5691
|
+
y: v
|
|
5691
5692
|
};
|
|
5692
5693
|
}
|
|
5693
5694
|
},
|
|
@@ -5698,23 +5699,23 @@ const Xs = function(u) {
|
|
|
5698
5699
|
}, l = await S0(e, s), f = qu(Tu(r)), p = E0(f);
|
|
5699
5700
|
let h = a[p], d = a[f];
|
|
5700
5701
|
if (o) {
|
|
5701
|
-
const
|
|
5702
|
-
h = Rt(
|
|
5702
|
+
const k = p === "y" ? "top" : "left", _ = p === "y" ? "bottom" : "right", v = h + l[k], y = h - l[_];
|
|
5703
|
+
h = Rt(v, h, y);
|
|
5703
5704
|
}
|
|
5704
5705
|
if (c) {
|
|
5705
|
-
const
|
|
5706
|
-
d = Rt(
|
|
5706
|
+
const k = f === "y" ? "top" : "left", _ = f === "y" ? "bottom" : "right", v = d + l[k], y = d - l[_];
|
|
5707
|
+
d = Rt(v, d, y);
|
|
5707
5708
|
}
|
|
5708
|
-
const
|
|
5709
|
+
const g = i.fn({
|
|
5709
5710
|
...e,
|
|
5710
5711
|
[p]: h,
|
|
5711
5712
|
[f]: d
|
|
5712
5713
|
});
|
|
5713
5714
|
return {
|
|
5714
|
-
...
|
|
5715
|
+
...g,
|
|
5715
5716
|
data: {
|
|
5716
|
-
x:
|
|
5717
|
-
y:
|
|
5717
|
+
x: g.x - t,
|
|
5718
|
+
y: g.y - n,
|
|
5718
5719
|
enabled: {
|
|
5719
5720
|
[p]: o,
|
|
5720
5721
|
[f]: c
|
|
@@ -5886,10 +5887,10 @@ function $u(u, e, t, n) {
|
|
|
5886
5887
|
let s = (r.left + i.x) / c.x, a = (r.top + i.y) / c.y, l = r.width / c.x, f = r.height / c.y;
|
|
5887
5888
|
if (o) {
|
|
5888
5889
|
const p = ou(o), h = n && fu(n) ? ou(n) : n;
|
|
5889
|
-
let d = p,
|
|
5890
|
-
for (;
|
|
5891
|
-
const
|
|
5892
|
-
s *=
|
|
5890
|
+
let d = p, g = Xe(d);
|
|
5891
|
+
for (; g && n && h !== d; ) {
|
|
5892
|
+
const k = Nu(g), _ = g.getBoundingClientRect(), v = du(g), y = _.left + (g.clientLeft + parseFloat(v.paddingLeft)) * k.x, w = _.top + (g.clientTop + parseFloat(v.paddingTop)) * k.y;
|
|
5893
|
+
s *= k.x, a *= k.y, l *= k.x, f *= k.y, s += y, a += w, d = ou(g), g = Xe(d);
|
|
5893
5894
|
}
|
|
5894
5895
|
}
|
|
5895
5896
|
return ve({
|
|
@@ -6146,30 +6147,30 @@ function ka(u, e) {
|
|
|
6146
6147
|
} = a;
|
|
6147
6148
|
if (i || e(), !p || !h)
|
|
6148
6149
|
return;
|
|
6149
|
-
const d = de(f),
|
|
6150
|
-
rootMargin: -d + "px " + -
|
|
6150
|
+
const d = de(f), g = de(r.clientWidth - (l + p)), k = de(r.clientHeight - (f + h)), _ = de(l), y = {
|
|
6151
|
+
rootMargin: -d + "px " + -g + "px " + -k + "px " + -_ + "px",
|
|
6151
6152
|
threshold: Bu(0, xe(1, s)) || 1
|
|
6152
6153
|
};
|
|
6153
|
-
let
|
|
6154
|
+
let w = !0;
|
|
6154
6155
|
function E(M) {
|
|
6155
6156
|
const $ = M[0].intersectionRatio;
|
|
6156
6157
|
if ($ !== s) {
|
|
6157
|
-
if (!
|
|
6158
|
+
if (!w)
|
|
6158
6159
|
return c();
|
|
6159
6160
|
$ ? c(!1, $) : n = setTimeout(() => {
|
|
6160
6161
|
c(!1, 1e-7);
|
|
6161
6162
|
}, 1e3);
|
|
6162
6163
|
}
|
|
6163
|
-
$ === 1 && !R0(a, u.getBoundingClientRect()) && c(),
|
|
6164
|
+
$ === 1 && !R0(a, u.getBoundingClientRect()) && c(), w = !1;
|
|
6164
6165
|
}
|
|
6165
6166
|
try {
|
|
6166
6167
|
t = new IntersectionObserver(E, {
|
|
6167
|
-
...
|
|
6168
|
+
...y,
|
|
6168
6169
|
// Handle <iframe>s
|
|
6169
6170
|
root: r.ownerDocument
|
|
6170
6171
|
});
|
|
6171
6172
|
} catch {
|
|
6172
|
-
t = new IntersectionObserver(E,
|
|
6173
|
+
t = new IntersectionObserver(E, y);
|
|
6173
6174
|
}
|
|
6174
6175
|
t.observe(u);
|
|
6175
6176
|
}
|
|
@@ -6184,31 +6185,31 @@ function ya(u, e, t, n) {
|
|
|
6184
6185
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
6185
6186
|
animationFrame: s = !1
|
|
6186
6187
|
} = n, a = pt(u), l = r || o ? [...a ? ee(a) : [], ...ee(e)] : [];
|
|
6187
|
-
l.forEach((
|
|
6188
|
-
r &&
|
|
6188
|
+
l.forEach((_) => {
|
|
6189
|
+
r && _.addEventListener("scroll", t, {
|
|
6189
6190
|
passive: !0
|
|
6190
|
-
}), o &&
|
|
6191
|
+
}), o && _.addEventListener("resize", t);
|
|
6191
6192
|
});
|
|
6192
6193
|
const f = a && i ? ka(a, t) : null;
|
|
6193
6194
|
let p = -1, h = null;
|
|
6194
|
-
c && (h = new ResizeObserver((
|
|
6195
|
-
let [
|
|
6196
|
-
|
|
6197
|
-
var
|
|
6198
|
-
(
|
|
6195
|
+
c && (h = new ResizeObserver((_) => {
|
|
6196
|
+
let [v] = _;
|
|
6197
|
+
v && v.target === a && h && (h.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
6198
|
+
var y;
|
|
6199
|
+
(y = h) == null || y.observe(e);
|
|
6199
6200
|
})), t();
|
|
6200
6201
|
}), a && !s && h.observe(a), h.observe(e));
|
|
6201
|
-
let d,
|
|
6202
|
-
s &&
|
|
6203
|
-
function
|
|
6204
|
-
const
|
|
6205
|
-
|
|
6202
|
+
let d, g = s ? $u(u) : null;
|
|
6203
|
+
s && k();
|
|
6204
|
+
function k() {
|
|
6205
|
+
const _ = $u(u);
|
|
6206
|
+
g && !R0(g, _) && t(), g = _, d = requestAnimationFrame(k);
|
|
6206
6207
|
}
|
|
6207
6208
|
return t(), () => {
|
|
6208
|
-
var
|
|
6209
|
-
l.forEach((
|
|
6210
|
-
r &&
|
|
6211
|
-
}), f == null || f(), (
|
|
6209
|
+
var _;
|
|
6210
|
+
l.forEach((v) => {
|
|
6211
|
+
r && v.removeEventListener("scroll", t), o && v.removeEventListener("resize", t);
|
|
6212
|
+
}), f == null || f(), (_ = h) == null || _.disconnect(), h = null, s && cancelAnimationFrame(d);
|
|
6212
6213
|
};
|
|
6213
6214
|
}
|
|
6214
6215
|
const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
@@ -6245,40 +6246,40 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
|
6245
6246
|
const { nextZIndex: e } = tt();
|
|
6246
6247
|
let t, n;
|
|
6247
6248
|
const r = u, o = lu(u, "visible"), c = N(0), i = N({}), s = Yu(null), a = Yu(null);
|
|
6248
|
-
wu(o, (
|
|
6249
|
-
|
|
6249
|
+
wu(o, (_) => {
|
|
6250
|
+
_ ? (c.value = e(), g(), n = ya(
|
|
6250
6251
|
s.value.$el,
|
|
6251
6252
|
a.value,
|
|
6252
|
-
|
|
6253
|
+
g
|
|
6253
6254
|
)) : n == null || n();
|
|
6254
6255
|
}), Du(() => {
|
|
6255
|
-
|
|
6256
|
+
g();
|
|
6256
6257
|
}), ye(() => {
|
|
6257
|
-
|
|
6258
|
+
k(), document.removeEventListener("click", d);
|
|
6258
6259
|
});
|
|
6259
6260
|
function l() {
|
|
6260
|
-
r.trigger !== "hover" || r.disabled || (
|
|
6261
|
+
r.trigger !== "hover" || r.disabled || (k(), t = setTimeout(() => {
|
|
6261
6262
|
h(!1);
|
|
6262
6263
|
}, r.showAfter));
|
|
6263
6264
|
}
|
|
6264
6265
|
function f() {
|
|
6265
|
-
r.trigger === "hover" && (
|
|
6266
|
+
r.trigger === "hover" && (k(), t = setTimeout(() => {
|
|
6266
6267
|
d();
|
|
6267
6268
|
}, r.hideAfter));
|
|
6268
6269
|
}
|
|
6269
|
-
function p(
|
|
6270
|
-
r.trigger === "click" && !r.disabled && !o.value && (
|
|
6270
|
+
function p(_) {
|
|
6271
|
+
r.trigger === "click" && !r.disabled && !o.value && (_.stopPropagation(), h());
|
|
6271
6272
|
}
|
|
6272
|
-
function h(
|
|
6273
|
-
o.value = !0,
|
|
6273
|
+
function h(_ = !0) {
|
|
6274
|
+
o.value = !0, _ && document.addEventListener("click", d);
|
|
6274
6275
|
}
|
|
6275
6276
|
function d() {
|
|
6276
6277
|
o.value = !1, document.removeEventListener("click", d);
|
|
6277
6278
|
}
|
|
6278
|
-
async function
|
|
6279
|
-
var
|
|
6280
|
-
const
|
|
6281
|
-
if (
|
|
6279
|
+
async function g() {
|
|
6280
|
+
var C, q;
|
|
6281
|
+
const _ = typeof ((C = s.value) == null ? void 0 : C.$el.getBoundingClientRect), v = typeof ((q = a.value) == null ? void 0 : q.getBoundingClientRect), y = document.documentElement, w = getComputedStyle(y).getPropertyValue("--sq-padding-md").trim(), E = parseInt(w);
|
|
6282
|
+
if (_ !== "function" || v !== "function") return;
|
|
6282
6283
|
const M = await Ea(s.value.$el, a.value, {
|
|
6283
6284
|
placement: r.placement,
|
|
6284
6285
|
middleware: [Ca(r.offset), Da(), wa({ padding: E })]
|
|
@@ -6288,13 +6289,13 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
|
6288
6289
|
top: `${Z}px`
|
|
6289
6290
|
};
|
|
6290
6291
|
}
|
|
6291
|
-
function
|
|
6292
|
+
function k() {
|
|
6292
6293
|
t && (clearTimeout(t), t = void 0);
|
|
6293
6294
|
}
|
|
6294
|
-
return (
|
|
6295
|
+
return (_, v) => (m(), A(gu, null, [
|
|
6295
6296
|
P(b(Bs), {
|
|
6296
|
-
class: G(["sq-popover-trigger",
|
|
6297
|
-
style: eu(
|
|
6297
|
+
class: G(["sq-popover-trigger", _.$attrs.class]),
|
|
6298
|
+
style: eu(_.$attrs.style),
|
|
6298
6299
|
ref_key: "triggerRef",
|
|
6299
6300
|
ref: s,
|
|
6300
6301
|
onMouseenter: l,
|
|
@@ -6302,7 +6303,7 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
|
6302
6303
|
onClick: p
|
|
6303
6304
|
}, {
|
|
6304
6305
|
default: H(() => [
|
|
6305
|
-
U(
|
|
6306
|
+
U(_.$slots, "reference")
|
|
6306
6307
|
]),
|
|
6307
6308
|
_: 3
|
|
6308
6309
|
}, 8, ["class", "style"]),
|
|
@@ -6315,14 +6316,14 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
|
6315
6316
|
}, {
|
|
6316
6317
|
default: H(() => [
|
|
6317
6318
|
bu(F("div", {
|
|
6318
|
-
class: G(["sq-popover",
|
|
6319
|
+
class: G(["sq-popover", _.popoverClass]),
|
|
6319
6320
|
style: eu({ ...i.value, zIndex: c.value }),
|
|
6320
6321
|
ref_key: "popverRef",
|
|
6321
6322
|
ref: a,
|
|
6322
|
-
onClick:
|
|
6323
|
+
onClick: v[0] || (v[0] = Qe(() => {
|
|
6323
6324
|
}, ["stop"]))
|
|
6324
6325
|
}, [
|
|
6325
|
-
U(
|
|
6326
|
+
U(_.$slots, "default")
|
|
6326
6327
|
], 6), [
|
|
6327
6328
|
[te, o.value]
|
|
6328
6329
|
])
|
|
@@ -6438,8 +6439,8 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
|
6438
6439
|
radioVariant: s,
|
|
6439
6440
|
groupContext: a
|
|
6440
6441
|
} = Ei(n), l = N(), f = lu(u, "checked"), p = D(() => {
|
|
6441
|
-
const d = [],
|
|
6442
|
-
return
|
|
6442
|
+
const d = [], g = b(r), k = b(o), _ = b(s);
|
|
6443
|
+
return g !== "md" && d.push(`sq-selection--${g}`), h.value && d.push("is-checked"), k && d.push("is-disabled"), _ && d.push(`is-${_}`), d;
|
|
6443
6444
|
}), h = D(() => n.label && a ? b(b(a)).checked === n.label : f.value);
|
|
6444
6445
|
return wu(l, (d) => {
|
|
6445
6446
|
n.label ? f.value = d === n.label : f.value = d === "on";
|
|
@@ -6452,7 +6453,7 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
|
6452
6453
|
h.value !== d && n.label && a && a.value.toggleItem(n.label);
|
|
6453
6454
|
}), Du(() => {
|
|
6454
6455
|
f.value = h.value, l.value = f.value ? n.label ?? "on" : void 0;
|
|
6455
|
-
}), (d,
|
|
6456
|
+
}), (d, g) => (m(), A("label", {
|
|
6456
6457
|
class: G(["sq-selection sq-radio", p.value])
|
|
6457
6458
|
}, [
|
|
6458
6459
|
bu(F("input", {
|
|
@@ -6462,8 +6463,8 @@ const Ca = Xs, wa = Ys, Da = Us, Ea = (u, e, t) => {
|
|
|
6462
6463
|
form: b(c),
|
|
6463
6464
|
value: n.label,
|
|
6464
6465
|
disabled: b(o),
|
|
6465
|
-
"onUpdate:modelValue":
|
|
6466
|
-
onChange:
|
|
6466
|
+
"onUpdate:modelValue": g[0] || (g[0] = (k) => l.value = k),
|
|
6467
|
+
onChange: g[1] || (g[1] = (k) => t("change", h.value))
|
|
6467
6468
|
}, null, 40, Ba), [
|
|
6468
6469
|
[U0, l.value]
|
|
6469
6470
|
]),
|