@pie-element/inline-dropdown 10.1.2-next.7 → 10.1.2-next.9

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.
@@ -1,5 +1,5 @@
1
1
  import { i as e } from "../rolldown-runtime-CWhphoD1.js";
2
- import { It as t, L as n, Lt as r, S as i, a, d as o, dt as s, f as c, i as l, j as u, k as d, m as f, n as p, o as m, p as h, pt as g, t as _, ut as v, v as y, w as b } from "../Close-_y0oVYUk.js";
2
+ import { It as t, L as n, Lt as r, S as i, a, d as o, dt as s, f as c, i as l, j as u, k as d, m as f, n as p, o as m, p as h, pt as g, t as _, ut as v, v as y, w as b } from "../Close-DvuMD5vl.js";
3
3
  import { _ as x, o as S } from "../dist-BJd6t-uW.js";
4
4
  import C, { useRef as w } from "react";
5
5
  import { createRoot as T } from "react-dom/client";
@@ -1796,16 +1796,16 @@ var mt = /* @__PURE__ */ q(((e, t) => {
1796
1796
  mt();
1797
1797
  //#endregion
1798
1798
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js
1799
- var ht = /* @__PURE__ */ q(((e, t) => {
1799
+ var J = /* @__PURE__ */ q(((e, t) => {
1800
1800
  t.exports = function(e) {
1801
1801
  return e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;
1802
1802
  };
1803
1803
  }));
1804
- ht();
1804
+ J();
1805
1805
  //#endregion
1806
1806
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js
1807
- var gt = /* @__PURE__ */ q(((e, t) => {
1808
- var n = ht(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
1807
+ var ht = /* @__PURE__ */ q(((e, t) => {
1808
+ var n = J(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
1809
1809
  t.exports = (function() {
1810
1810
  var e = (function() {
1811
1811
  for (var e in i) if (r.test(e)) return e.match(r)[0];
@@ -1822,54 +1822,54 @@ var gt = /* @__PURE__ */ q(((e, t) => {
1822
1822
  };
1823
1823
  })();
1824
1824
  }));
1825
- gt();
1825
+ ht();
1826
1826
  //#endregion
1827
1827
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js
1828
- var _t = /* @__PURE__ */ q(((e, t) => {
1828
+ var gt = /* @__PURE__ */ q(((e, t) => {
1829
1829
  t.exports = /[-\s]+(.)?/g;
1830
1830
  }));
1831
- _t();
1831
+ gt();
1832
1832
  //#endregion
1833
1833
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js
1834
- var vt = /* @__PURE__ */ q(((e, t) => {
1834
+ var _t = /* @__PURE__ */ q(((e, t) => {
1835
1835
  var n = function(e, t) {
1836
1836
  return t ? t.toUpperCase() : "";
1837
- }, r = _t();
1837
+ }, r = gt();
1838
1838
  t.exports = function(e) {
1839
1839
  return e ? e.replace(r, n) : "";
1840
1840
  };
1841
1841
  }));
1842
- vt();
1842
+ _t();
1843
1843
  //#endregion
1844
1844
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js
1845
- var yt = /* @__PURE__ */ q(((e, t) => {
1845
+ var vt = /* @__PURE__ */ q(((e, t) => {
1846
1846
  var n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\d])([A-Z])/g, a = /_/g;
1847
1847
  t.exports = function(e, t) {
1848
1848
  return e ? e.replace(n, "/").replace(r, "$1_$2").replace(i, "$1_$2").replace(a, t || "-") : "";
1849
1849
  };
1850
1850
  }));
1851
- yt();
1851
+ vt();
1852
1852
  //#endregion
1853
1853
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js
1854
- var bt = /* @__PURE__ */ q(((e, t) => {
1855
- var n = yt();
1854
+ var yt = /* @__PURE__ */ q(((e, t) => {
1855
+ var n = vt();
1856
1856
  t.exports = function(e) {
1857
1857
  return n(e).toLowerCase();
1858
1858
  };
1859
1859
  }));
1860
- bt();
1860
+ yt();
1861
1861
  //#endregion
1862
1862
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js
1863
- var xt = /* @__PURE__ */ q(((e, t) => {
1863
+ var bt = /* @__PURE__ */ q(((e, t) => {
1864
1864
  t.exports = function(e) {
1865
1865
  return e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;
1866
1866
  };
1867
1867
  }));
1868
- xt();
1868
+ bt();
1869
1869
  //#endregion
1870
1870
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js
1871
- var St = /* @__PURE__ */ q(((e, t) => {
1872
- var n = vt(), r = bt(), i = xt(), a = ht(), o = gt(), s = pt(), c = typeof document > "u" ? {} : document.documentElement.style;
1871
+ var xt = /* @__PURE__ */ q(((e, t) => {
1872
+ var n = _t(), r = yt(), i = bt(), a = J(), o = ht(), s = pt(), c = typeof document > "u" ? {} : document.documentElement.style;
1873
1873
  t.exports = function(e) {
1874
1874
  return function(t, l) {
1875
1875
  l ||= {};
@@ -1886,45 +1886,45 @@ var St = /* @__PURE__ */ q(((e, t) => {
1886
1886
  };
1887
1887
  };
1888
1888
  }));
1889
- St();
1889
+ xt();
1890
1890
  //#endregion
1891
1891
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js
1892
- var Ct = /* @__PURE__ */ q(((e, t) => {
1893
- t.exports = St()();
1892
+ var St = /* @__PURE__ */ q(((e, t) => {
1893
+ t.exports = xt()();
1894
1894
  }));
1895
- Ct();
1895
+ St();
1896
1896
  //#endregion
1897
1897
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js
1898
- var wt = /* @__PURE__ */ q(((e, t) => {
1898
+ var Ct = /* @__PURE__ */ q(((e, t) => {
1899
1899
  var n = Object.prototype.hasOwnProperty;
1900
1900
  t.exports = function(e, t) {
1901
1901
  return n.call(e, t);
1902
1902
  };
1903
1903
  }));
1904
- wt();
1904
+ Ct();
1905
1905
  //#endregion
1906
1906
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js
1907
- var Tt = /* @__PURE__ */ q(((e, t) => {
1907
+ var wt = /* @__PURE__ */ q(((e, t) => {
1908
1908
  var n = Object.prototype.toString;
1909
1909
  t.exports = function(e) {
1910
1910
  return !!e && n.call(e) === "[object Object]";
1911
1911
  };
1912
1912
  }));
1913
- Tt();
1913
+ wt();
1914
1914
  //#endregion
1915
1915
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js
1916
- var Et = /* @__PURE__ */ q(((e, t) => {
1916
+ var Tt = /* @__PURE__ */ q(((e, t) => {
1917
1917
  var n = Object.prototype.toString;
1918
1918
  t.exports = function(e) {
1919
1919
  return n.apply(e) === "[object Function]";
1920
1920
  };
1921
1921
  }));
1922
- Et();
1922
+ Tt();
1923
1923
  //#endregion
1924
1924
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js
1925
- var Dt = /* @__PURE__ */ q(((e, t) => {
1926
- gt();
1927
- var n = Ct(), r = bt(), i = vt(), a = wt(), o = Tt(), s = Et(), c = function(e, t, r, i) {
1925
+ var Et = /* @__PURE__ */ q(((e, t) => {
1926
+ ht();
1927
+ var n = St(), r = yt(), i = _t(), a = Ct(), o = wt(), s = Tt(), c = function(e, t, r, i) {
1928
1928
  n(t).forEach(function(t) {
1929
1929
  e[i ? i(t) : t] = r;
1930
1930
  });
@@ -1964,11 +1964,11 @@ var Dt = /* @__PURE__ */ q(((e, t) => {
1964
1964
  };
1965
1965
  t.exports = d;
1966
1966
  }));
1967
- Dt();
1967
+ Et();
1968
1968
  //#endregion
1969
1969
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js
1970
- var Ot = /* @__PURE__ */ q(((e, t) => {
1971
- var n = Dt(), r = wt();
1970
+ var Dt = /* @__PURE__ */ q(((e, t) => {
1971
+ var n = Et(), r = Ct();
1972
1972
  t.exports = function(e, t) {
1973
1973
  e = n(e, t);
1974
1974
  var i = [], a;
@@ -1976,25 +1976,25 @@ var Ot = /* @__PURE__ */ q(((e, t) => {
1976
1976
  return i.join("; ");
1977
1977
  };
1978
1978
  }));
1979
- Ot();
1979
+ Dt();
1980
1980
  //#endregion
1981
1981
  //#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js
1982
- var kt = /* @__PURE__ */ q(((e, t) => {
1982
+ var Ot = /* @__PURE__ */ q(((e, t) => {
1983
1983
  t.exports = {
1984
1984
  prefixProperties: pt(),
1985
1985
  cssUnitless: mt(),
1986
- object: Dt(),
1987
- string: Ot()
1986
+ object: Et(),
1987
+ string: Dt()
1988
1988
  };
1989
1989
  }));
1990
- kt();
1990
+ Ot();
1991
1991
  //#endregion
1992
1992
  //#region ../../lib-react/mask-markup/dist/serialization.js
1993
- var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:mask-markup:serialization"), Nt = ["span"], Pt = [
1993
+ var kt = /* @__PURE__ */ e(u(), 1), At = Ot(), jt = (0, kt.default)("@pie-lib:mask-markup:serialization"), Mt = ["span"], Nt = [
1994
1994
  "em",
1995
1995
  "strong",
1996
1996
  "u"
1997
- ], Ft = 3, It = 8, Lt = 1, Rt = (e) => {
1997
+ ], Pt = 3, Ft = 8, It = 1, Lt = (e) => {
1998
1998
  if (!e.attributes || e.attributes.length <= 0) return;
1999
1999
  let t = {}, n;
2000
2000
  for (n = 0; n < e.attributes.length; n++) {
@@ -2002,44 +2002,44 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2002
2002
  t[r.name] = r.value;
2003
2003
  }
2004
2004
  return t;
2005
- }, zt = (e) => Nt.includes(e) ? "inline" : Pt.includes(e) ? "mark" : "block", Bt = (e) => {
2005
+ }, Rt = (e) => Mt.includes(e) ? "inline" : Nt.includes(e) ? "mark" : "block", zt = (e) => {
2006
2006
  let t = /([\w-]*)\s*:\s*([^;]*)/g, n, r = {};
2007
2007
  for (; n = t.exec(e);) r[n[1]] = n[2].trim();
2008
2008
  return r;
2009
- }, Vt = (e) => (0, jt.object)(e, {
2009
+ }, Bt = (e) => (0, At.object)(e, {
2010
2010
  camelize: !0,
2011
2011
  addUnits: !1
2012
- }), Ht = (e, t) => Vt(Bt(e.getAttribute(t))), Ut = (e, t, n) => {
2012
+ }), Vt = (e, t) => Bt(zt(e.getAttribute(t))), Ht = (e, t, n) => {
2013
2013
  let r = e.getAttribute(n);
2014
2014
  return delete t.class, r;
2015
- }, Wt = (e) => (t, n) => {
2015
+ }, Ut = (e) => (t, n) => {
2016
2016
  if (!e.getAttribute) return t;
2017
2017
  if (e.getAttribute(n)) switch (n) {
2018
2018
  case "style":
2019
- t.style = Ht(e, n);
2019
+ t.style = Vt(e, n);
2020
2020
  break;
2021
2021
  case "class":
2022
- t.className = Ut(e, t, n);
2022
+ t.className = Ht(e, t, n);
2023
2023
  break;
2024
2024
  default:
2025
2025
  t[n] = e.getAttribute(n);
2026
2026
  break;
2027
2027
  }
2028
2028
  return t;
2029
- }, Gt = [
2029
+ }, Wt = [
2030
2030
  "border",
2031
2031
  "class",
2032
2032
  "style"
2033
- ], Kt = {
2033
+ ], Gt = {
2034
2034
  b: "bold",
2035
2035
  em: "italic",
2036
2036
  u: "underline",
2037
2037
  s: "strikethrough",
2038
2038
  code: "code",
2039
2039
  strong: "strong"
2040
- }, qt = (e, t = []) => {
2041
- if (e.nodeType === It) return null;
2042
- if (e.nodeType === Ft) {
2040
+ }, Kt = (e, t = []) => {
2041
+ if (e.nodeType === Ft) return null;
2042
+ if (e.nodeType === Pt) {
2043
2043
  let n = { text: e.textContent };
2044
2044
  return t.length > 0 && (n.marks = t.map((e) => ({
2045
2045
  type: e,
@@ -2049,19 +2049,19 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2049
2049
  leaves: [n]
2050
2050
  };
2051
2051
  }
2052
- if (e.nodeType === Lt) {
2053
- let n = e.tagName.toLowerCase(), r = Kt[n];
2054
- if (r) return Mt("[deserialize] mark: ", r), {
2052
+ if (e.nodeType === It) {
2053
+ let n = e.tagName.toLowerCase(), r = Gt[n];
2054
+ if (r) return jt("[deserialize] mark: ", r), {
2055
2055
  _flatten: !0,
2056
- nodes: Jt(e.childNodes, [...t, r])
2056
+ nodes: qt(e.childNodes, [...t, r])
2057
2057
  };
2058
2058
  if (n === "math") return {
2059
2059
  isMath: !0,
2060
2060
  nodes: [e]
2061
2061
  };
2062
- let i = Rt(e) || {};
2062
+ let i = Lt(e) || {};
2063
2063
  n === "audio" && i.controls === "" && (i.controls = !0);
2064
- let a = Gt.reduce(Wt(e), { ...i }), o = zt(n), s = Jt(e.childNodes, t);
2064
+ let a = Wt.reduce(Ut(e), { ...i }), o = Rt(n), s = qt(e.childNodes, t);
2065
2065
  return {
2066
2066
  object: o,
2067
2067
  type: n,
@@ -2073,14 +2073,14 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2073
2073
  };
2074
2074
  }
2075
2075
  return null;
2076
- }, Jt = (e, t = []) => {
2076
+ }, qt = (e, t = []) => {
2077
2077
  let n = [];
2078
2078
  for (let r = 0; r < e.length; r++) {
2079
- let i = qt(e[r], t);
2079
+ let i = Kt(e[r], t);
2080
2080
  i !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));
2081
2081
  }
2082
2082
  return n;
2083
- }, Yt = (e) => {
2083
+ }, Jt = (e) => {
2084
2084
  if (!e || !e.trim()) return {
2085
2085
  object: "value",
2086
2086
  document: {
@@ -2095,7 +2095,7 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2095
2095
  }]
2096
2096
  }
2097
2097
  };
2098
- let t = Jt(new DOMParser().parseFromString(e, "text/html").body.childNodes);
2098
+ let t = qt(new DOMParser().parseFromString(e, "text/html").body.childNodes);
2099
2099
  return !t.some((e) => e.object === "block" || e.object === "inline") && t.length > 0 && (t = [{
2100
2100
  object: "block",
2101
2101
  type: "span",
@@ -2116,19 +2116,19 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2116
2116
  nodes: t
2117
2117
  }
2118
2118
  };
2119
- }, Xt = g("div")(({ theme: e }) => ({
2119
+ }, Yt = g("div")(({ theme: e }) => ({
2120
2120
  paddingTop: e.spacing(.5),
2121
2121
  paddingBottom: e.spacing(.5)
2122
- })), Zt = g("span")(() => ({
2122
+ })), Xt = g("span")(() => ({
2123
2123
  display: "inline-block",
2124
2124
  width: ".75em"
2125
- })), Qt = ["tbody", "tr"], $t = (e, t) => {
2125
+ })), Zt = ["tbody", "tr"], Qt = (e, t) => {
2126
2126
  let n = t.trim() === "", r = e && e.type;
2127
- if (!(n && Qt.includes(r))) return t;
2128
- }, en = (e) => {
2127
+ if (!(n && Zt.includes(r))) return t;
2128
+ }, $t = (e) => {
2129
2129
  let t = e.leaves.find((e) => x(e, "marks", []).length);
2130
2130
  return t ? t.marks : null;
2131
- }, tn = (e, t, n, r, i, a) => {
2131
+ }, en = (e, t, n, r, i, a) => {
2132
2132
  if (!t) return null;
2133
2133
  let o = [];
2134
2134
  return (e.nodes || []).forEach((e, s) => {
@@ -2138,22 +2138,22 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2138
2138
  let i = r(e, t, n);
2139
2139
  if (i) {
2140
2140
  let t = e.data?.dataset?.component === "blank";
2141
- t && o.push(/* @__PURE__ */ D(Zt, {}, `spacer-${s}`)), o.push(i), t && o.push(/* @__PURE__ */ D(Zt, {}, `spacer-${s}`));
2141
+ t && o.push(/* @__PURE__ */ D(Xt, {}, `spacer-${s}-before`)), o.push(i), t && o.push(/* @__PURE__ */ D(Xt, {}, `spacer-${s}-after`));
2142
2142
  return;
2143
2143
  }
2144
2144
  }
2145
2145
  if (e.object === "text") {
2146
2146
  let t = e.leaves.reduce((e, t) => {
2147
- let n = t.text, r = $t(i, n);
2147
+ let n = t.text, r = Qt(i, n);
2148
2148
  return r ? e + r : e;
2149
- }, ""), n = en(e);
2149
+ }, ""), n = $t(e);
2150
2150
  if (n?.length > 0) {
2151
- let e = n.map((e) => Object.keys(Kt).find((t) => Kt[t] === e.type)).filter(Boolean);
2151
+ let e = n.map((e) => Object.keys(Gt).find((t) => Gt[t] === e.type)).filter(Boolean);
2152
2152
  e.length > 0 ? o.push(e.reduceRight((e, t, n) => /* @__PURE__ */ D(t, { children: e }, `${c}-${t}-${n}`), t)) : o.push(t);
2153
2153
  } else t.length > 0 && o.push(t);
2154
2154
  } else {
2155
- let i = tn(e, t, n, r, e, a);
2156
- if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ D(Xt, { children: i }, c));
2155
+ let i = en(e, t, n, r, e, a);
2156
+ if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ D(Yt, { children: i }, c));
2157
2157
  else {
2158
2158
  let t = e.type;
2159
2159
  e.nodes && e.nodes.length > 0 ? o.push(/* @__PURE__ */ D(t, {
@@ -2163,14 +2163,14 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2163
2163
  }
2164
2164
  }
2165
2165
  }), o;
2166
- }, nn = g("div")(() => ({
2166
+ }, tn = g("div")(() => ({
2167
2167
  display: "initial",
2168
2168
  "&:not(.MathJax) table": { borderCollapse: "collapse" },
2169
2169
  "&:not(.MathJax) table td, &:not(.MathJax) table th": {
2170
2170
  padding: "8px 12px",
2171
2171
  textAlign: "left"
2172
2172
  }
2173
- })), rn = class extends C.Component {
2173
+ })), nn = class extends C.Component {
2174
2174
  constructor(e) {
2175
2175
  super(e), this.internalContainerRef = C.createRef();
2176
2176
  }
@@ -2194,16 +2194,16 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2194
2194
  this.props.onChange(n);
2195
2195
  };
2196
2196
  render() {
2197
- let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = tn(t, e, this.handleChange, this.props.renderChildren, null, n);
2198
- return /* @__PURE__ */ D(nn, {
2197
+ let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = en(t, e, this.handleChange, this.props.renderChildren, null, n);
2198
+ return /* @__PURE__ */ D(tn, {
2199
2199
  ref: r || this.internalContainerRef,
2200
2200
  children: i
2201
2201
  });
2202
2202
  }
2203
- }, an = (e, t) => {
2203
+ }, rn = (e, t) => {
2204
2204
  let { markup: n } = ft(e, t);
2205
- return Yt(n).document;
2206
- }, on = (e, t) => class extends C.Component {
2205
+ return Jt(n).document;
2206
+ }, an = (e, t) => class extends C.Component {
2207
2207
  static propTypes = {
2208
2208
  markup: k.default.string,
2209
2209
  layout: k.default.object,
@@ -2225,8 +2225,8 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2225
2225
  }
2226
2226
  }
2227
2227
  render() {
2228
- let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || an(n, e);
2229
- return /* @__PURE__ */ D(rn, {
2228
+ let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || rn(n, e);
2229
+ return /* @__PURE__ */ D(nn, {
2230
2230
  containerRef: this.containerRef,
2231
2231
  elementType: o,
2232
2232
  layout: s,
@@ -2235,16 +2235,16 @@ var At = /* @__PURE__ */ e(u(), 1), jt = kt(), Mt = (0, At.default)("@pie-lib:ma
2235
2235
  renderChildren: t(this.props)
2236
2236
  });
2237
2237
  }
2238
- }, sn = n(/*#__PURE__*/ D("path", { d: "m7 10 5 5 5-5z" }), "ArrowDropDown"), cn = n(/*#__PURE__*/ D("path", { d: "m7 14 5-5 5 5z" }), "ArrowDropUp");
2238
+ }, on = n(/*#__PURE__*/ D("path", { d: "m7 10 5 5 5-5z" }), "ArrowDropDown"), sn = n(/*#__PURE__*/ D("path", { d: "m7 14 5-5 5 5z" }), "ArrowDropUp");
2239
2239
  //#endregion
2240
2240
  //#region ../../lib-react/mask-markup/dist/components/dropdown.js
2241
- function J(e) {
2241
+ function Y(e) {
2242
2242
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
2243
2243
  }
2244
- function ln(e, t) {
2245
- return !e || J(e) ? e : J(e.default) ? e.default : t && J(e[t]) ? e[t] : t && J(e[t]?.default) ? e[t].default : e;
2244
+ function cn(e, t) {
2245
+ return !e || Y(e) ? e : Y(e.default) ? e.default : t && Y(e[t]) ? e[t] : t && Y(e[t]?.default) ? e[t].default : e;
2246
2246
  }
2247
- var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.default, fn = Y && typeof Y == "object" ? Y : dn, pn = g(b)(() => ({
2247
+ var ln = cn(m, "InlineMenu") || cn(fn.InlineMenu, "InlineMenu"), un = a, dn = un.default, fn = dn && typeof dn == "object" ? dn : un, pn = v.v("pie"), mn = g(b)(() => ({
2248
2248
  color: v.text(),
2249
2249
  border: `1px solid ${v.borderGray()}`,
2250
2250
  borderRadius: "4px",
@@ -2279,10 +2279,10 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2279
2279
  borderColor: v.incorrectWithIcon(),
2280
2280
  color: `${v.text()} !important`
2281
2281
  }
2282
- })), mn = g(un)(() => ({
2283
- "& .MuiPaper-root": { backgroundColor: v.background() },
2282
+ })), hn = g(ln)(() => ({
2283
+ "& .MuiPaper-root": { backgroundColor: pn("background", v.defaults.WHITE) },
2284
2284
  "& .MuiList-root": { padding: 0 }
2285
- })), hn = g(p)(() => ({
2285
+ })), gn = g(p)(() => ({
2286
2286
  height: 24,
2287
2287
  overflow: "hidden",
2288
2288
  fontSize: "1rem",
@@ -2313,18 +2313,18 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2313
2313
  backgroundColor: `${v.dropdownBackground()} !important`
2314
2314
  }
2315
2315
  }
2316
- })), gn = g("span")(() => ({ fontSize: "max(1rem, 14px)" })), _n = g("span")(() => ({
2316
+ })), _n = g("span")(() => ({ fontSize: "max(1rem, 14px)" })), vn = g("span")(() => ({
2317
2317
  fontSize: "max(1rem, 14px)",
2318
2318
  flexShrink: 0,
2319
2319
  paddingLeft: "8px"
2320
- })), vn = g(y)(() => ({
2320
+ })), yn = g(y)(() => ({
2321
2321
  position: "absolute",
2322
2322
  left: "-10000px",
2323
2323
  top: "auto",
2324
2324
  width: "1px",
2325
2325
  height: "1px",
2326
2326
  overflow: "hidden"
2327
- })), yn = g(l)(() => ({
2327
+ })), bn = g(l)(() => ({
2328
2328
  color: `${v.white()} !important`,
2329
2329
  position: "absolute",
2330
2330
  top: "-8px !important",
@@ -2335,7 +2335,7 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2335
2335
  padding: "2px",
2336
2336
  "&.correct": { backgroundColor: v.correct() },
2337
2337
  "&.incorrect": { backgroundColor: v.incorrectWithIcon() }
2338
- })), bn = g(_)(() => ({
2338
+ })), xn = g(_)(() => ({
2339
2339
  color: `${v.white()} !important`,
2340
2340
  position: "absolute",
2341
2341
  top: "-8px !important",
@@ -2346,7 +2346,7 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2346
2346
  padding: "2px",
2347
2347
  "&.correct": { backgroundColor: v.correct() },
2348
2348
  "&.incorrect": { backgroundColor: v.incorrectWithIcon() }
2349
- })), xn = class extends C.Component {
2349
+ })), Sn = class extends C.Component {
2350
2350
  static propTypes = {
2351
2351
  id: k.default.string,
2352
2352
  value: k.default.string,
@@ -2430,7 +2430,7 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2430
2430
  let { id: e, correct: t, disabled: n, value: r, choices: i, showCorrectAnswer: a, singleQuery: o, correctValue: s } = this.props, { anchorEl: c } = this.state, l = !!c, u = `dropdown-button-${e}`, d = `dropdown-menu-${e}`, f = `dropdown-value-${e}`, p;
2431
2431
  this.elementRefs = [], n && t !== void 0 && (p = t || a ? "disabledCorrect" : "disabledIncorrect");
2432
2432
  let m = parseInt(e, 10) + 1, h = o ? "Query-label" : `Query-label-${m}`, g = o ? "Query" : `Query ${m}`, _ = null;
2433
- return n && t !== void 0 && (_ = t || a ? /* @__PURE__ */ D(yn, { className: "correct" }) : /* @__PURE__ */ D(bn, { className: "incorrect" })), /* @__PURE__ */ O(ee, { children: [
2433
+ return n && t !== void 0 && (_ = t || a ? /* @__PURE__ */ D(bn, { className: "correct" }) : /* @__PURE__ */ D(xn, { className: "incorrect" })), /* @__PURE__ */ O(ee, { children: [
2434
2434
  /* @__PURE__ */ D("div", {
2435
2435
  ref: this.hiddenRef,
2436
2436
  style: {
@@ -2441,19 +2441,19 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2441
2441
  },
2442
2442
  tabIndex: -1,
2443
2443
  "aria-hidden": "true",
2444
- children: (i || []).map((e, t) => /* @__PURE__ */ D(hn, {
2444
+ children: (i || []).map((e, t) => /* @__PURE__ */ D(gn, {
2445
2445
  tabIndex: -1,
2446
2446
  "aria-hidden": "true",
2447
- children: /* @__PURE__ */ D(gn, { dangerouslySetInnerHTML: { __html: e.label } })
2447
+ children: /* @__PURE__ */ D(_n, { dangerouslySetInnerHTML: { __html: e.label } })
2448
2448
  }, t))
2449
2449
  }),
2450
- /* @__PURE__ */ D(vn, {
2450
+ /* @__PURE__ */ D(yn, {
2451
2451
  id: h,
2452
2452
  tabIndex: -1,
2453
2453
  "aria-hidden": "true",
2454
2454
  children: g
2455
2455
  }),
2456
- /* @__PURE__ */ O(pn, {
2456
+ /* @__PURE__ */ O(mn, {
2457
2457
  ref: this.buttonRef,
2458
2458
  style: {
2459
2459
  ...this.state.menuWidth && { minWidth: `calc(${this.state.menuWidth}px + 8px)` },
@@ -2473,15 +2473,15 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2473
2473
  "aria-labelledby": f,
2474
2474
  children: [
2475
2475
  _,
2476
- /* @__PURE__ */ D(gn, {
2476
+ /* @__PURE__ */ D(_n, {
2477
2477
  id: f,
2478
2478
  ref: this.previewRef,
2479
2479
  dangerouslySetInnerHTML: { __html: s || (l && this.state.previewValue ? this.getLabel(i, this.state.previewValue) : this.getLabel(i, r) || "") }
2480
2480
  }),
2481
- D(l ? cn : sn, {})
2481
+ D(l ? sn : on, {})
2482
2482
  ]
2483
2483
  }),
2484
- /* @__PURE__ */ D(mn, {
2484
+ /* @__PURE__ */ D(hn, {
2485
2485
  id: d,
2486
2486
  anchorEl: c,
2487
2487
  keepMounted: !0,
@@ -2513,7 +2513,7 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2513
2513
  },
2514
2514
  children: (i || []).map((t, n) => {
2515
2515
  let i = `dropdown-option-${e}-${n}`;
2516
- return /* @__PURE__ */ O(hn, {
2516
+ return /* @__PURE__ */ O(gn, {
2517
2517
  id: i,
2518
2518
  className: t.value === r ? "selected" : "",
2519
2519
  selected: t.value === r,
@@ -2522,20 +2522,20 @@ var un = ln(m, "InlineMenu") || ln(fn.InlineMenu, "InlineMenu"), dn = a, Y = dn.
2522
2522
  role: "option",
2523
2523
  "aria-selected": this.state.highlightedOptionId === i ? "true" : void 0,
2524
2524
  onMouseOver: () => this.handleHover(n),
2525
- children: [/* @__PURE__ */ D(gn, {
2525
+ children: [/* @__PURE__ */ D(_n, {
2526
2526
  ref: (e) => this.elementRefs[n] = e,
2527
2527
  dangerouslySetInnerHTML: { __html: t.label }
2528
- }), /* @__PURE__ */ D(_n, { dangerouslySetInnerHTML: { __html: t.value === r ? " &check;" : "" } })]
2528
+ }), /* @__PURE__ */ D(vn, { dangerouslySetInnerHTML: { __html: t.value === r ? " &check;" : "" } })]
2529
2529
  }, `${t.label}-${n}`);
2530
2530
  })
2531
2531
  })
2532
2532
  ] });
2533
2533
  }
2534
- }, Sn = on("dropdown", (e) => (t, n, r) => {
2534
+ }, Cn = an("dropdown", (e) => (t, n, r) => {
2535
2535
  let i = t.data && t.data.dataset || {};
2536
2536
  if (i.component === "dropdown") {
2537
2537
  let { choices: a, disabled: o, feedback: s, showCorrectAnswer: c } = e, l = a && a[i.id] && a[i.id].find((e) => e.correct), u = c ? l && l.value : n[i.id];
2538
- return /* @__PURE__ */ D(xn, {
2538
+ return /* @__PURE__ */ D(Sn, {
2539
2539
  correct: s && s[i.id] && s[i.id] === "correct",
2540
2540
  disabled: o || c,
2541
2541
  value: u,
@@ -2556,23 +2556,23 @@ function X(e) {
2556
2556
  function Z(e, t) {
2557
2557
  return !e || X(e) ? e : X(e.default) ? e.default : t && X(e[t]) ? e[t] : t && X(e[t]?.default) ? e[t].default : e;
2558
2558
  }
2559
- var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt") || Z($.PreviewPrompt, "PreviewPrompt"), wn = Z(d, "Collapsible") || Z($.Collapsible, "Collapsible"), Tn = a, En = Tn.default, $ = En && typeof En == "object" ? En : Tn, Dn = g(Cn)({
2559
+ var wn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt") || Z($.PreviewPrompt, "PreviewPrompt"), Tn = Z(d, "Collapsible") || Z($.Collapsible, "Collapsible"), En = a, Dn = En.default, $ = Dn && typeof Dn == "object" ? Dn : En, On = g(wn)({
2560
2560
  color: v.text(),
2561
2561
  backgroundColor: v.background()
2562
- }), On = g(wn)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), kn = g("div")(({ theme: e }) => ({ "&:not(:last-child)": { marginBottom: e.spacing(2) } })), An = g("div")({
2562
+ }), kn = g(Tn)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), An = g("div")(({ theme: e }) => ({ "&:not(:last-child)": { marginBottom: e.spacing(2) } })), jn = g("div")({
2563
2563
  display: "flex",
2564
2564
  whiteSpace: "break-spaces"
2565
- }), jn = g("div")(({ correct: e }) => ({
2565
+ }), Mn = g("div")(({ correct: e }) => ({
2566
2566
  display: "flex",
2567
2567
  ...e ? { color: v.correct() } : { color: v.incorrectWithIcon() }
2568
- })), Mn = g("h2")({
2568
+ })), Nn = g("h2")({
2569
2569
  position: "absolute",
2570
2570
  left: "-10000px",
2571
2571
  top: "auto",
2572
2572
  width: "1px",
2573
2573
  height: "1px",
2574
2574
  overflow: "hidden"
2575
- }), Nn = class extends C.Component {
2575
+ }), Pn = class extends C.Component {
2576
2576
  static propTypes = {
2577
2577
  prompt: k.default.string,
2578
2578
  disabled: k.default.bool,
@@ -2601,12 +2601,12 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt"
2601
2601
  };
2602
2602
  render() {
2603
2603
  let { showCorrectAnswer: e } = this.state, { prompt: t, mode: n, model: r, rationale: i, teacherInstructions: a, choices: s, displayType: l, language: u } = this.props, { extraCSSRules: d } = r || {}, f = n === "evaluate", p = !1, m = i && (c(i) || o(i)), h = a && (c(a) || o(a)), g = (Object.keys(s) || []).map((e) => (s[e] || []).reduce((e, t) => (t.rationale && c(t.rationale) && (p = !0, e.push(t)), e), []));
2604
- return /* @__PURE__ */ O(Dn, {
2604
+ return /* @__PURE__ */ O(On, {
2605
2605
  extraCSSRules: d,
2606
2606
  style: { display: `${l}` },
2607
2607
  children: [
2608
- n === "gather" && /* @__PURE__ */ D(Mn, { children: "Inline Dropdown Question" }),
2609
- h && /* @__PURE__ */ D(On, {
2608
+ n === "gather" && /* @__PURE__ */ D(Nn, { children: "Inline Dropdown Question" }),
2609
+ h && /* @__PURE__ */ D(kn, {
2610
2610
  labels: {
2611
2611
  hidden: "Show Teacher Instructions",
2612
2612
  visible: "Hide Teacher Instructions"
@@ -2620,21 +2620,21 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt"
2620
2620
  onToggle: this.toggleShowCorrect,
2621
2621
  language: u
2622
2622
  }),
2623
- /* @__PURE__ */ D(Sn, {
2623
+ /* @__PURE__ */ D(Cn, {
2624
2624
  ...this.props,
2625
2625
  showCorrectAnswer: e
2626
2626
  }),
2627
- p && /* @__PURE__ */ D(On, {
2627
+ p && /* @__PURE__ */ D(kn, {
2628
2628
  labels: {
2629
2629
  hidden: "Show Rationale for choices",
2630
2630
  visible: "Hide Rationale for choices"
2631
2631
  },
2632
- children: g.map((e, t) => /* @__PURE__ */ D(kn, { children: e?.length > 0 && e.map((e) => /* @__PURE__ */ O(An, { children: [/* @__PURE__ */ D(jn, {
2632
+ children: g.map((e, t) => /* @__PURE__ */ D(An, { children: e?.length > 0 && e.map((e) => /* @__PURE__ */ O(jn, { children: [/* @__PURE__ */ D(Mn, {
2633
2633
  correct: e.correct,
2634
2634
  dangerouslySetInnerHTML: { __html: `${e.label}: ` }
2635
2635
  }), /* @__PURE__ */ D(Q, { prompt: e.rationale })] }, e.label)) }, t))
2636
2636
  }),
2637
- m && /* @__PURE__ */ D(wn, {
2637
+ m && /* @__PURE__ */ D(Tn, {
2638
2638
  labels: {
2639
2639
  hidden: "Show Rationale",
2640
2640
  visible: "Hide Rationale"
@@ -2644,7 +2644,7 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt"
2644
2644
  ]
2645
2645
  });
2646
2646
  }
2647
- }, Pn = class extends HTMLElement {
2647
+ }, Fn = class extends HTMLElement {
2648
2648
  constructor() {
2649
2649
  super(), this._model = null, this._session = null, this._root = null;
2650
2650
  }
@@ -2663,7 +2663,7 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt"
2663
2663
  }
2664
2664
  _render = () => {
2665
2665
  if (this._model && this._session) {
2666
- let e = C.createElement(Nn, {
2666
+ let e = C.createElement(Pn, {
2667
2667
  model: this._model,
2668
2668
  prompt: this._model.prompt,
2669
2669
  rationale: this._model.rationale,
@@ -2697,6 +2697,6 @@ var Cn = Z(i, "UiLayout") || Z($.UiLayout, "UiLayout"), Q = Z(f, "PreviewPrompt"
2697
2697
  }
2698
2698
  };
2699
2699
  //#endregion
2700
- export { Pn as default };
2700
+ export { Fn as default };
2701
2701
 
2702
2702
  //# sourceMappingURL=index.js.map