@pie-element/categorize 13.2.0-next.32 → 13.2.0-next.34

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 { Bt as t, C as n, Dt as r, E as i, F as a, H as o, Ht as s, Mt as c, Nt as l, St as u, T as d, Tt as f, _ as p, bt as m, d as h, f as g, g as ee, gt as _, h as v, jt as y, l as b, m as x, p as S, s as te, t as ne, u as re, w as C, yt as ie, zt as ae } from "../alert-dialog-ytxmPh86.js";
2
+ import { Bt as t, C as n, Dt as r, E as i, F as a, H as o, Mt as s, Nt as c, St as l, T as u, Tt as d, Ut as f, _ as p, bt as m, d as h, f as g, g as ee, gt as _, h as v, jt as y, l as b, m as x, p as S, s as te, t as ne, u as re, w as C, yt as ie, zt as ae } from "../alert-dialog-DjezK_ch.js";
3
3
  import { D as oe, E as w, l as T, r as E, t as se } from "../dist-Denz71xw.js";
4
4
  import * as D from "react";
5
5
  import O, { useRef as k, useState as ce } from "react";
@@ -77,7 +77,7 @@ de.propTypes = {
77
77
  fgFill: M.default.string.isRequired,
78
78
  borderFill: M.default.string.isRequired
79
79
  };
80
- var fe = u("div")(({ size: e }) => ({
80
+ var fe = l("div")(({ size: e }) => ({
81
81
  width: e || "25px",
82
82
  height: e || "25px"
83
83
  })), N = ({ open: e, size: t }) => /* @__PURE__ */ A(fe, {
@@ -134,7 +134,7 @@ function he(e, t, n) {
134
134
  var ge = (e) => {
135
135
  let { draggingNodeRect: t, transform: n, scrollableAncestorRects: r } = e, i = r[0];
136
136
  return !t || !i ? n : he(n, t, i);
137
- }, _e = "height ease-in 300ms, opacity ease-in 300ms", ve = u("div")(() => ({
137
+ }, _e = "height ease-in 300ms, opacity ease-in 300ms", ve = l("div")(() => ({
138
138
  position: "relative",
139
139
  height: 0,
140
140
  overflow: "hidden",
@@ -202,21 +202,21 @@ function F(e) {
202
202
  function be(e, t) {
203
203
  return !e || F(e) ? e : F(e.default) ? e.default : t && F(e[t]) ? e[t] : t && F(e[t]?.default) ? e[t].default : e;
204
204
  }
205
- var xe = be(d, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default, Se = L && typeof L == "object" ? L : I, { translator: R } = w, Ce = {
205
+ var xe = be(u, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default, Se = L && typeof L == "object" ? L : I, { translator: R } = w, Ce = {
206
206
  WebkitTouchCallout: "none",
207
207
  WebkitUserSelect: "none",
208
208
  KhtmlUserSelect: "none",
209
209
  MozUserSelect: "none",
210
210
  msUserSelect: "none",
211
211
  userSelect: "none"
212
- }, we = u("div")(() => ({
212
+ }, we = l("div")(() => ({
213
213
  width: "100%",
214
214
  cursor: "pointer"
215
- })), Te = u("div")(() => ({
215
+ })), Te = l("div")(() => ({
216
216
  margin: "0 auto",
217
217
  textAlign: "center",
218
218
  display: "flex"
219
- })), Ee = u("div")(() => ({
219
+ })), Ee = l("div")(() => ({
220
220
  width: "fit-content",
221
221
  minWidth: "140px",
222
222
  alignSelf: "center",
@@ -224,7 +224,7 @@ var xe = be(d, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default,
224
224
  color: `var(--correct-answer-toggle-label-color, ${t.text()})`,
225
225
  fontWeight: "normal",
226
226
  ...Ce
227
- })), z = u("div")(() => ({
227
+ })), z = l("div")(() => ({
228
228
  position: "absolute",
229
229
  width: "25px",
230
230
  "&.enter": { opacity: "0" },
@@ -237,7 +237,7 @@ var xe = be(d, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default,
237
237
  opacity: "0",
238
238
  transition: "opacity 0.3s ease-in"
239
239
  }
240
- })), De = u("div")(() => ({
240
+ })), De = l("div")(() => ({
241
241
  width: "25px",
242
242
  marginRight: "5px",
243
243
  display: "flex",
@@ -332,7 +332,7 @@ var xe = be(d, "Readable") || be(Se.Readable, "Readable"), I = p, L = I.default,
332
332
  //#endregion
333
333
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/CardContent/cardContentClasses.js
334
334
  function ke(e) {
335
- return c("MuiCardContent", e);
335
+ return s("MuiCardContent", e);
336
336
  }
337
337
  y("MuiCardContent", ["root"]);
338
338
  //#endregion
@@ -340,7 +340,7 @@ y("MuiCardContent", ["root"]);
340
340
  var Ae = (e) => {
341
341
  let { classes: t } = e;
342
342
  return r({ root: ["root"] }, ke, t);
343
- }, je = u("div", {
343
+ }, je = l("div", {
344
344
  name: "MuiCardContent",
345
345
  slot: "Root"
346
346
  })({
@@ -356,7 +356,7 @@ var Ae = (e) => {
356
356
  };
357
357
  return /*#__PURE__*/ A(je, {
358
358
  as: i,
359
- className: l(Ae(o).root, r),
359
+ className: c(Ae(o).root, r),
360
360
  ownerState: o,
361
361
  ref: t,
362
362
  ...a
@@ -368,7 +368,7 @@ var Ae = (e) => {
368
368
  var B = {
369
369
  content: M.default.string.isRequired,
370
370
  id: M.default.string
371
- }, Ne = u("div", { shouldForwardProp: (e) => ![
371
+ }, Ne = l("div", { shouldForwardProp: (e) => ![
372
372
  "isDragging",
373
373
  "disabled",
374
374
  "correct",
@@ -381,12 +381,12 @@ var B = {
381
381
  ...i && { border: `solid 2px ${t.buttonFocusOutline()}` },
382
382
  ...r === !0 && { border: `solid 2px ${t.correct()}` },
383
383
  ...r === !1 && { border: `solid 2px ${t.incorrect()}` }
384
- })), Pe = u(te, { shouldForwardProp: (e) => e !== "isSelected" })(({ isSelected: e }) => ({
384
+ })), Pe = l(te, { shouldForwardProp: (e) => e !== "isSelected" })(({ isSelected: e }) => ({
385
385
  color: t.text(),
386
386
  backgroundColor: t.background(),
387
387
  width: "100%",
388
388
  opacity: e ? .5 : 1
389
- })), Fe = u(Me)(({ theme: e }) => ({
389
+ })), Fe = l(Me)(({ theme: e }) => ({
390
390
  color: t.text(),
391
391
  backgroundColor: t.white(),
392
392
  "&:last-child": { paddingBottom: e.spacing(2) },
@@ -469,14 +469,14 @@ var H = b.withUid(V);
469
469
  //#region src/delivery/categorize/droppable-placeholder.tsx
470
470
  (0, P.default)("@pie-ui:categorize:droppable-placeholder");
471
471
  var U = ({ children: e, grid: n, disabled: r, choiceBoard: i, minRowHeight: a, id: o, correct: s, selectedItem: c, onPlacementClick: l }) => {
472
- let u = f(), [d, p] = ce(!1), { setNodeRef: m, isOver: g } = ee({
472
+ let u = d(), [f, p] = ce(!1), { setNodeRef: m, isOver: g } = ee({
473
473
  id: o,
474
474
  data: {
475
475
  itemType: "categorize",
476
476
  categoryId: o
477
477
  },
478
478
  disabled: r
479
- }), _ = !!c, v = g || _ && d && !r, y = !r, b = () => {
479
+ }), _ = !!c, v = g || _ && f && !r, y = !r, b = () => {
480
480
  r || !c || l?.(o);
481
481
  }, x = (e) => {
482
482
  e.target === e.currentTarget && (e.code === "Space" || e.code === "Enter") && (e.preventDefault(), b());
@@ -535,10 +535,10 @@ U.propTypes = {
535
535
  };
536
536
  //#endregion
537
537
  //#region src/delivery/categorize/choices.tsx
538
- var Le = u("div")({
538
+ var Le = l("div")({
539
539
  flex: 1,
540
540
  touchAction: "none"
541
- }), Re = u("div")(({ theme: e }) => ({
541
+ }), Re = l("div")(({ theme: e }) => ({
542
542
  margin: "0 auto",
543
543
  textAlign: "center",
544
544
  paddingTop: e.spacing(1)
@@ -607,7 +607,7 @@ var Le = u("div")({
607
607
  children: t
608
608
  });
609
609
  }
610
- }, Ve = u("div")(({ theme: e }) => ({
610
+ }, Ve = l("div")(({ theme: e }) => ({
611
611
  display: "grid",
612
612
  columnGap: e.spacing(1),
613
613
  gridColumnGap: e.spacing(1),
@@ -655,7 +655,7 @@ var Le = u("div")({
655
655
  })
656
656
  });
657
657
  }
658
- }, We = u("div")(({ theme: e }) => ({
658
+ }, We = l("div")(({ theme: e }) => ({
659
659
  display: "flex",
660
660
  flexDirection: "column",
661
661
  flex: 2
@@ -705,18 +705,18 @@ var Le = u("div")({
705
705
  })
706
706
  });
707
707
  }
708
- }, Ke = u("div")(({ theme: e }) => ({
708
+ }, Ke = l("div")(({ theme: e }) => ({
709
709
  color: t.text(),
710
710
  backgroundColor: t.background(),
711
711
  textAlign: "center",
712
712
  paddingTop: e.spacing(1)
713
- })), qe = u("div")({
713
+ })), qe = l("div")({
714
714
  alignItems: "center",
715
715
  display: "flex",
716
716
  justifyContent: "center",
717
717
  flex: .5,
718
718
  marginRight: "12px"
719
- }), Je = u("div")({
719
+ }), Je = l("div")({
720
720
  display: "flex",
721
721
  flex: "2",
722
722
  flexDirection: "column"
@@ -777,7 +777,7 @@ var Qe = G(a, "UiLayout") || G(Y.UiLayout, "UiLayout"), K = G(i, "PreviewPrompt"
777
777
  static propTypes = { children: M.default.node };
778
778
  containerRef = O.createRef();
779
779
  componentDidMount() {
780
- this.containerRef.current && s(this.containerRef.current);
780
+ this.containerRef.current && f(this.containerRef.current);
781
781
  }
782
782
  render() {
783
783
  return /* @__PURE__ */ A("div", {
@@ -1055,19 +1055,19 @@ var Qe = G(a, "UiLayout") || G(Y.UiLayout, "UiLayout"), K = G(i, "PreviewPrompt"
1055
1055
  })
1056
1056
  });
1057
1057
  }
1058
- }, ot = u(Qe)({
1058
+ }, ot = l(Qe)({
1059
1059
  color: t.text(),
1060
1060
  backgroundColor: t.background(),
1061
1061
  position: "relative"
1062
- }), st = u("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), ct = u("div")(({ theme: e }) => ({
1062
+ }), st = l("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), ct = l("div")(({ theme: e }) => ({
1063
1063
  marginBottom: e.spacing(1),
1064
1064
  maxWidth: "100%",
1065
1065
  overflowX: "auto",
1066
1066
  overflowY: "hidden"
1067
- })), lt = u("div")(() => ({
1067
+ })), lt = l("div")(() => ({
1068
1068
  display: "flex",
1069
1069
  minWidth: "min-content"
1070
- })), ut = u($e)(({ theme: e }) => ({ paddingBottom: e.spacing(2) }));
1070
+ })), ut = l($e)(({ theme: e }) => ({ paddingBottom: e.spacing(2) }));
1071
1071
  //#endregion
1072
1072
  //#region src/delivery/index.ts
1073
1073
  function Q(e) {
@@ -1082,7 +1082,7 @@ var ft = dt("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMC
1082
1082
  }
1083
1083
  _scheduleMathRender = () => {
1084
1084
  this._mathRenderPending || (this._mathRenderPending = !0, requestAnimationFrame(() => {
1085
- this._mathObserver && !this._mathObserverPaused && this._mathObserver.disconnect(), s(this), this._mathRenderPending = !1, setTimeout(() => {
1085
+ this._mathObserver && !this._mathObserverPaused && this._mathObserver.disconnect(), f(this), this._mathRenderPending = !1, setTimeout(() => {
1086
1086
  this._mathObserver && !this._mathObserverPaused && this._mathObserver.observe(this, {
1087
1087
  childList: !0,
1088
1088
  subtree: !0,
@@ -1144,7 +1144,7 @@ var ft = dt("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMC
1144
1144
  this._session.answers = e, this._session.selector = "Mouse", this.dispatchEvent(new me(this.tagName.toLowerCase(), this.isComplete())), this.render();
1145
1145
  }
1146
1146
  onShowCorrectToggle() {
1147
- s(this);
1147
+ f(this);
1148
1148
  }
1149
1149
  _createAudioInfoToast() {
1150
1150
  let e = document.createElement("div");