@pie-element/likert 4.1.2-next.0 → 4.1.2-next.2

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.
Files changed (109) hide show
  1. package/dist/author/index.js +20 -20
  2. package/dist/author/main.js +109 -109
  3. package/dist/browser/{Radio-CAjl01LA.js → Radio-DlviDURs.js} +353 -337
  4. package/dist/browser/Radio-DlviDURs.js.map +1 -0
  5. package/dist/browser/author/index.js +5879 -7114
  6. package/dist/browser/author/index.js.map +1 -1
  7. package/dist/browser/delivery/index.js +1 -1
  8. package/dist/index.iife.js +21 -21
  9. package/dist/runtime-support.d.ts +12 -0
  10. package/dist/runtime-support.js +12 -0
  11. package/package.json +11 -8
  12. package/dist/browser/Radio-CAjl01LA.js.map +0 -1
  13. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  14. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  15. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  16. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  17. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  18. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  19. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  20. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  21. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  22. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +0 -8
  23. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  24. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  25. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  26. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  27. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +0 -5
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +0 -19
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +0 -15
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +0 -12
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +0 -6
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +0 -14
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +0 -8
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +0 -8
@@ -1,25 +1,25 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js";
2
- import t from "./main.js";
3
- import n from "./defaults.js";
4
- import r from "react";
5
- import { createRoot as i } from "react-dom/client";
6
- import a from "debug";
7
- import { DeleteSoundEvent as o, InsertSoundEvent as s, ModelUpdatedEvent as c } from "@pie-element/shared-configure-events";
1
+ import e from "./main.js";
2
+ import t from "./defaults.js";
3
+ import n from "react";
4
+ import { createRoot as r } from "react-dom/client";
5
+ import i from "debug";
6
+ import { DeleteSoundEvent as a, InsertSoundEvent as o, ModelUpdatedEvent as s } from "@pie-element/shared-configure-events";
7
+ import { defaults as c } from "@pie-element/shared-lodash";
8
8
  //#region src/author/index.ts
9
- var l = a("likert:configure"), u = (t, r) => ({
10
- configuration: e(t, n.configuration),
11
- model: r
12
- }), d = class e extends HTMLElement {
9
+ var l = i("likert:configure"), u = (e, n) => ({
10
+ configuration: c(e, t.configuration),
11
+ model: n
12
+ }), d = class i extends HTMLElement {
13
13
  static createDefaultModel = (e = {}) => ({
14
- ...n.model,
14
+ ...t.model,
15
15
  ...e,
16
16
  choices: e && e.choices || []
17
17
  });
18
18
  constructor() {
19
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = n.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
19
+ super(), this._root = null, this._model = i.createDefaultModel(), this._configuration = t.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
20
20
  }
21
- set model(t) {
22
- this._model = e.createDefaultModel(t), this._model = {
21
+ set model(e) {
22
+ this._model = i.createDefaultModel(e), this._model = {
23
23
  ...this._model,
24
24
  choices: this._model.choices.map((e) => ({
25
25
  ...e,
@@ -36,7 +36,7 @@ var l = a("likert:configure"), u = (t, r) => ({
36
36
  }
37
37
  dispatchModelUpdated(e) {
38
38
  let t = !!e;
39
- this.dispatchEvent(new c(this._model, t));
39
+ this.dispatchEvent(new s(this._model, t));
40
40
  }
41
41
  onModelChanged(e, t) {
42
42
  this._model = e, this._render(), this.dispatchModelUpdated(t);
@@ -45,14 +45,14 @@ var l = a("likert:configure"), u = (t, r) => ({
45
45
  this._configuration = u(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
46
46
  }
47
47
  insertSound(e) {
48
- this.dispatchEvent(new s(e));
48
+ this.dispatchEvent(new o(e));
49
49
  }
50
50
  onDeleteSound(e, t) {
51
- this.dispatchEvent(new o(e, t));
51
+ this.dispatchEvent(new a(e, t));
52
52
  }
53
53
  _render() {
54
54
  l("_render");
55
- let e = r.createElement(t, {
55
+ let t = n.createElement(e, {
56
56
  model: this._model,
57
57
  configuration: this._configuration,
58
58
  onModelChanged: this.onModelChanged,
@@ -63,7 +63,7 @@ var l = a("likert:configure"), u = (t, r) => ({
63
63
  delete: this.onDeleteSound.bind(this)
64
64
  }
65
65
  });
66
- this._root ||= i(this), this._root.render(e);
66
+ this._root ||= r(this), this._root.render(t);
67
67
  }
68
68
  disconnectedCallback() {
69
69
  this._root && this._root.unmount();
@@ -1,59 +1,59 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js";
2
- import { LIKERT_ORIENTATION as t, LIKERT_SCALE as n, LIKERT_TYPE as r } from "./likertEntities.js";
3
- import i from "./choiceGenerator.js";
4
- import a from "react";
5
- import o from "prop-types";
6
- import { color as s } from "@pie-lib/render-ui";
7
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
- import u from "@mui/material/FormControlLabel";
9
- import { styled as d } from "@mui/material/styles";
10
- import f from "@mui/material/Radio";
11
- import p from "@pie-lib/editable-html-tip-tap";
12
- import m from "@mui/material/RadioGroup";
13
- import { InputContainer as h, NumberTextField as g, layout as _, settings as v } from "@pie-lib/config-ui";
1
+ import { LIKERT_ORIENTATION as e, LIKERT_SCALE as t, LIKERT_TYPE as n } from "./likertEntities.js";
2
+ import r from "./choiceGenerator.js";
3
+ import i from "react";
4
+ import a from "prop-types";
5
+ import { color as o } from "@pie-lib/render-ui";
6
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
+ import l from "@mui/material/FormControlLabel";
8
+ import { styled as u } from "@mui/material/styles";
9
+ import d from "@mui/material/Radio";
10
+ import f from "@pie-lib/editable-html-tip-tap";
11
+ import p from "@mui/material/RadioGroup";
12
+ import { InputContainer as m, NumberTextField as h, layout as g, settings as _ } from "@pie-lib/config-ui";
13
+ import { merge as v } from "@pie-element/shared-lodash";
14
14
  //#region src/author/main.tsx
15
- var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
15
+ var { Panel: y, toggle: b, radio: x } = _, S = u(m)(({ theme: e }) => ({
16
16
  width: "100%",
17
17
  paddingTop: e.spacing(2),
18
18
  marginBottom: e.spacing(2)
19
- })), C = d("div")({
19
+ })), C = u("div")({
20
20
  display: "flex",
21
21
  flexDirection: "column"
22
- }), w = d("p")(({ theme: e }) => ({
22
+ }), w = u("p")(({ theme: e }) => ({
23
23
  color: e.palette.grey[400],
24
24
  fontSize: e.typography.fontSize - 2
25
- })), T = d("div")(({ theme: e }) => ({
25
+ })), T = u("div")(({ theme: e }) => ({
26
26
  display: "flex",
27
27
  width: "100%",
28
28
  alignItems: "flex-start",
29
29
  marginBottom: e.spacing(2)
30
- })), E = d("div")(({ theme: e }) => ({
30
+ })), E = u("div")(({ theme: e }) => ({
31
31
  display: "flex",
32
32
  width: "100%",
33
33
  justifyContent: "space-around",
34
34
  marginBottom: e.spacing(2.5)
35
- })), D = d(h)({
35
+ })), D = u(m)({
36
36
  width: "calc(100% - 200px)",
37
37
  marginRight: 0
38
- }), O = d("p")(({ theme: e }) => ({
38
+ }), O = u("p")(({ theme: e }) => ({
39
39
  color: e.palette.error.main,
40
40
  fontSize: e.typography.fontSize - 2
41
- })), k = d(g)({ width: "100%" }), A = d("div")({
41
+ })), k = u(h)({ width: "100%" }), A = u("div")({
42
42
  display: "flex",
43
43
  flexDirection: "row"
44
- }), j = d("div")(({ theme: e }) => ({
44
+ }), j = u("div")(({ theme: e }) => ({
45
45
  paddingLeft: e.spacing(2.5),
46
46
  width: "150px"
47
- })), M = d(p)(({ theme: e }) => ({ paddingTop: e.spacing(2) })), N = d("span")(({ theme: e }) => ({
47
+ })), M = u(f)(({ theme: e }) => ({ paddingTop: e.spacing(2) })), N = u("span")(({ theme: e }) => ({
48
48
  width: "30px",
49
49
  paddingTop: e.spacing(4)
50
- })), P = d("div")(({ theme: e }) => ({
50
+ })), P = u("div")(({ theme: e }) => ({
51
51
  fontSize: e.typography.fontSize - 2,
52
52
  color: e.palette.error.main,
53
53
  paddingTop: e.spacing(1)
54
- })), F = d(f)({ color: `${s.tertiary()} !important` }), I = (e) => {
55
- let { model: n, onChangeModel: r } = e;
56
- return /* @__PURE__ */ l(C, { children: [/* @__PURE__ */ c(w, { children: "Likert Orientation" }), /* @__PURE__ */ l(m, {
54
+ })), F = u(d)({ color: `${o.tertiary()} !important` }), I = (t) => {
55
+ let { model: n, onChangeModel: r } = t;
56
+ return /* @__PURE__ */ c(C, { children: [/* @__PURE__ */ s(w, { children: "Likert Orientation" }), /* @__PURE__ */ c(p, {
57
57
  "aria-label": "likertOrientation",
58
58
  name: "likertOrientation",
59
59
  value: n.likertOrientation,
@@ -64,98 +64,98 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
64
64
  likertOrientation: t
65
65
  });
66
66
  },
67
- children: [/* @__PURE__ */ c(u, {
68
- value: t.horizontal,
69
- control: /* @__PURE__ */ c(F, {}),
67
+ children: [/* @__PURE__ */ s(l, {
68
+ value: e.horizontal,
69
+ control: /* @__PURE__ */ s(F, {}),
70
70
  label: "Horizontal"
71
- }), /* @__PURE__ */ c(u, {
72
- value: t.vertical,
73
- control: /* @__PURE__ */ c(F, {}),
71
+ }), /* @__PURE__ */ s(l, {
72
+ value: e.vertical,
73
+ control: /* @__PURE__ */ s(F, {}),
74
74
  label: "Vertical"
75
75
  })]
76
76
  })] });
77
77
  }, L = (e) => {
78
- let { model: t, onChangeModel: r } = e;
79
- return /* @__PURE__ */ l(C, { children: [/* @__PURE__ */ c(w, { children: "Likert Scale" }), /* @__PURE__ */ l(m, {
78
+ let { model: n, onChangeModel: i } = e;
79
+ return /* @__PURE__ */ c(C, { children: [/* @__PURE__ */ s(w, { children: "Likert Scale" }), /* @__PURE__ */ c(p, {
80
80
  "aria-label": "likertScale",
81
81
  name: "likertScale",
82
- value: t.likertScale,
82
+ value: n.likertScale,
83
83
  onChange: (e) => {
84
- let n = e.target.value;
85
- r({
86
- ...t,
87
- likertScale: n,
88
- choices: i(n, t.likertType)
84
+ let t = e.target.value;
85
+ i({
86
+ ...n,
87
+ likertScale: t,
88
+ choices: r(t, n.likertType)
89
89
  });
90
90
  },
91
91
  children: [
92
- /* @__PURE__ */ c(u, {
93
- value: n.likert3,
94
- control: /* @__PURE__ */ c(F, {}),
92
+ /* @__PURE__ */ s(l, {
93
+ value: t.likert3,
94
+ control: /* @__PURE__ */ s(F, {}),
95
95
  label: "Likert 3"
96
96
  }),
97
- /* @__PURE__ */ c(u, {
98
- value: n.likert5,
99
- control: /* @__PURE__ */ c(F, {}),
97
+ /* @__PURE__ */ s(l, {
98
+ value: t.likert5,
99
+ control: /* @__PURE__ */ s(F, {}),
100
100
  label: "Likert 5"
101
101
  }),
102
- /* @__PURE__ */ c(u, {
103
- value: n.likert7,
104
- control: /* @__PURE__ */ c(F, {}),
102
+ /* @__PURE__ */ s(l, {
103
+ value: t.likert7,
104
+ control: /* @__PURE__ */ s(F, {}),
105
105
  label: "Likert 7"
106
106
  })
107
107
  ]
108
108
  })] });
109
109
  }, R = (e) => {
110
- let { model: t, onChangeModel: n } = e, a = (e) => {
111
- let r = e.target.value;
112
- n({
110
+ let { model: t, onChangeModel: i } = e, a = (e) => {
111
+ let n = e.target.value;
112
+ i({
113
113
  ...t,
114
- likertType: r,
115
- choices: i(t.likertScale, r)
114
+ likertType: n,
115
+ choices: r(t.likertScale, n)
116
116
  });
117
117
  };
118
- return /* @__PURE__ */ l(C, { children: [/* @__PURE__ */ c(w, { children: "Label Type" }), /* @__PURE__ */ l(A, { children: [/* @__PURE__ */ l(m, {
118
+ return /* @__PURE__ */ c(C, { children: [/* @__PURE__ */ s(w, { children: "Label Type" }), /* @__PURE__ */ c(A, { children: [/* @__PURE__ */ c(p, {
119
119
  "aria-label": "likertLabelType",
120
120
  name: "likertLabelType",
121
121
  value: t.likertType,
122
122
  onChange: a,
123
123
  children: [
124
- /* @__PURE__ */ c(u, {
125
- value: r.agreement,
126
- control: /* @__PURE__ */ c(F, {}),
124
+ /* @__PURE__ */ s(l, {
125
+ value: n.agreement,
126
+ control: /* @__PURE__ */ s(F, {}),
127
127
  label: "Agreement"
128
128
  }),
129
- /* @__PURE__ */ c(u, {
130
- value: r.frequency,
131
- control: /* @__PURE__ */ c(F, {}),
129
+ /* @__PURE__ */ s(l, {
130
+ value: n.frequency,
131
+ control: /* @__PURE__ */ s(F, {}),
132
132
  label: "Frequency"
133
133
  }),
134
- /* @__PURE__ */ c(u, {
135
- value: r.yesNo,
136
- control: /* @__PURE__ */ c(F, {}),
134
+ /* @__PURE__ */ s(l, {
135
+ value: n.yesNo,
136
+ control: /* @__PURE__ */ s(F, {}),
137
137
  label: "Yes/No"
138
138
  })
139
139
  ]
140
- }), /* @__PURE__ */ l(m, {
140
+ }), /* @__PURE__ */ c(p, {
141
141
  "aria-label": "likertLabelType",
142
142
  name: "likertLabelType",
143
143
  value: t.likertType,
144
144
  onChange: a,
145
145
  children: [
146
- /* @__PURE__ */ c(u, {
147
- value: r.importance,
148
- control: /* @__PURE__ */ c(F, {}),
146
+ /* @__PURE__ */ s(l, {
147
+ value: n.importance,
148
+ control: /* @__PURE__ */ s(F, {}),
149
149
  label: "Importance"
150
150
  }),
151
- /* @__PURE__ */ c(u, {
152
- value: r.likelihood,
153
- control: /* @__PURE__ */ c(F, {}),
151
+ /* @__PURE__ */ s(l, {
152
+ value: n.likelihood,
153
+ control: /* @__PURE__ */ s(F, {}),
154
154
  label: "Likelihood"
155
155
  }),
156
- /* @__PURE__ */ c(u, {
157
- value: r.like,
158
- control: /* @__PURE__ */ c(F, {}),
156
+ /* @__PURE__ */ s(l, {
157
+ value: n.like,
158
+ control: /* @__PURE__ */ s(F, {}),
159
159
  label: "Like"
160
160
  })
161
161
  ]
@@ -167,16 +167,16 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
167
167
  [r]: n[r] + 1
168
168
  };
169
169
  }, {}), B = (e) => {
170
- let { configuration: t, imageSupport: n, model: r, onChangeModel: i, onChoiceChanged: a, onConfigurationChanged: o, onPromptChanged: s, onTeacherInstructionsChanged: u, uploadSoundSupport: d } = e, { contentDimensions: f = {}, prompt: m = {}, scoringType: h = {}, settingsPanelDisabled: g, spellCheck: v = {}, teacherInstructions: C = {}, baseInputConfiguration: w = {}, likertChoice: A = {} } = t || {}, { errors: F = {}, extraCSSRules: B, spellCheckEnabled: V, teacherInstructionsEnabled: H } = r || {}, { prompt: U, teacherInstructions: W } = F, G = z(r), K = {
170
+ let { configuration: t, imageSupport: n, model: r, onChangeModel: i, onChoiceChanged: a, onConfigurationChanged: o, onPromptChanged: l, onTeacherInstructionsChanged: u, uploadSoundSupport: d } = e, { contentDimensions: p = {}, prompt: m = {}, scoringType: h = {}, settingsPanelDisabled: _, spellCheck: v = {}, teacherInstructions: C = {}, baseInputConfiguration: w = {}, likertChoice: A = {} } = t || {}, { errors: F = {}, extraCSSRules: B, spellCheckEnabled: V, teacherInstructionsEnabled: H } = r || {}, { prompt: U, teacherInstructions: W } = F, G = z(r), K = {
171
171
  teacherInstructionsEnabled: C.settings && b(C.label),
172
172
  spellCheckEnabled: v.settings && b(v.label),
173
173
  scoringType: h.settings && x(h.label, ["auto", "rubric"])
174
174
  }, q = (e = {}) => Object.assign({ ...w }, e || {});
175
- return /* @__PURE__ */ l(_.ConfigLayout, {
175
+ return /* @__PURE__ */ c(g.ConfigLayout, {
176
176
  extraCSSRules: B,
177
- dimensions: f,
178
- hideSettings: g,
179
- settings: /* @__PURE__ */ c(y, {
177
+ dimensions: p,
178
+ hideSettings: _,
179
+ settings: /* @__PURE__ */ s(y, {
180
180
  model: r,
181
181
  onChangeModel: i,
182
182
  configuration: t,
@@ -184,9 +184,9 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
184
184
  groups: { Properties: K }
185
185
  }),
186
186
  children: [
187
- H && /* @__PURE__ */ l(S, {
187
+ H && /* @__PURE__ */ c(S, {
188
188
  label: C.label,
189
- children: [/* @__PURE__ */ c(p, {
189
+ children: [/* @__PURE__ */ s(f, {
190
190
  markup: r.teacherInstructions || "",
191
191
  onChange: u,
192
192
  imageSupport: n,
@@ -195,13 +195,13 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
195
195
  spellCheck: V,
196
196
  uploadSoundSupport: d,
197
197
  pluginProps: q(C?.inputConfiguration)
198
- }), W && /* @__PURE__ */ c(P, { children: W })]
198
+ }), W && /* @__PURE__ */ s(P, { children: W })]
199
199
  }),
200
- /* @__PURE__ */ l(S, {
200
+ /* @__PURE__ */ c(S, {
201
201
  label: m.label,
202
- children: [/* @__PURE__ */ c(p, {
202
+ children: [/* @__PURE__ */ s(f, {
203
203
  markup: r.prompt,
204
- onChange: s,
204
+ onChange: l,
205
205
  imageSupport: n,
206
206
  nonEmpty: !1,
207
207
  error: U,
@@ -209,27 +209,27 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
209
209
  disableUnderline: !0,
210
210
  uploadSoundSupport: d,
211
211
  pluginProps: q(m?.inputConfiguration)
212
- }), U && /* @__PURE__ */ c(P, { children: U })]
212
+ }), U && /* @__PURE__ */ s(P, { children: U })]
213
213
  }),
214
- /* @__PURE__ */ l(E, { children: [
215
- /* @__PURE__ */ c(L, {
214
+ /* @__PURE__ */ c(E, { children: [
215
+ /* @__PURE__ */ s(L, {
216
216
  model: r,
217
217
  onChangeModel: i
218
218
  }),
219
- /* @__PURE__ */ c(R, {
219
+ /* @__PURE__ */ s(R, {
220
220
  model: r,
221
221
  onChangeModel: i
222
222
  }),
223
- /* @__PURE__ */ c(I, {
223
+ /* @__PURE__ */ s(I, {
224
224
  model: r,
225
225
  onChangeModel: i
226
226
  })
227
227
  ] }),
228
- r.choices.map((e, t) => /* @__PURE__ */ l(T, { children: [
229
- /* @__PURE__ */ l(N, { children: [t + 1, "."] }),
230
- /* @__PURE__ */ c(D, {
228
+ r.choices.map((e, t) => /* @__PURE__ */ c(T, { children: [
229
+ /* @__PURE__ */ c(N, { children: [t + 1, "."] }),
230
+ /* @__PURE__ */ s(D, {
231
231
  label: "Likert Label",
232
- children: /* @__PURE__ */ c(M, {
232
+ children: /* @__PURE__ */ s(M, {
233
233
  markup: e.label || "",
234
234
  onChange: (n) => a(t, {
235
235
  ...e,
@@ -241,7 +241,7 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
241
241
  pluginProps: q(A?.inputConfiguration)
242
242
  })
243
243
  }, `likert-label-${t}`),
244
- /* @__PURE__ */ l(j, { children: [/* @__PURE__ */ c(k, {
244
+ /* @__PURE__ */ c(j, { children: [/* @__PURE__ */ s(k, {
245
245
  label: "Likert Value",
246
246
  value: e.value,
247
247
  max: 100,
@@ -253,24 +253,24 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
253
253
  });
254
254
  },
255
255
  imageSupport: n
256
- }), G[e.value] && G[e.value] > 1 && /* @__PURE__ */ c(O, { children: "Value should be unique" })] })
256
+ }), G[e.value] && G[e.value] > 1 && /* @__PURE__ */ s(O, { children: "Value should be unique" })] })
257
257
  ] }, `choice-${t}`))
258
258
  ]
259
259
  });
260
- }, V = class extends a.Component {
260
+ }, V = class extends i.Component {
261
261
  static propTypes = {
262
- model: o.object.isRequired,
263
- disableSidePanel: o.bool,
264
- onModelChanged: o.func.isRequired,
265
- onConfigurationChanged: o.func.isRequired,
266
- imageSupport: o.shape({
267
- add: o.func.isRequired,
268
- delete: o.func.isRequired
262
+ model: a.object.isRequired,
263
+ disableSidePanel: a.bool,
264
+ onModelChanged: a.func.isRequired,
265
+ onConfigurationChanged: a.func.isRequired,
266
+ imageSupport: a.shape({
267
+ add: a.func.isRequired,
268
+ delete: a.func.isRequired
269
269
  })
270
270
  };
271
- onChoiceChanged = (t, n) => {
272
- let { model: r, onModelChanged: i } = this.props;
273
- r.choices = r.choices.map((t) => e({}, t)), r.choices.splice(t, 1, n), i(r);
271
+ onChoiceChanged = (e, t) => {
272
+ let { model: n, onModelChanged: r } = this.props;
273
+ n.choices = n.choices.map((e) => v({}, e)), n.choices.splice(e, 1, t), r(n);
274
274
  };
275
275
  onPromptChanged = (e) => {
276
276
  this.props.onModelChanged({
@@ -285,7 +285,7 @@ var { Panel: y, toggle: b, radio: x } = v, S = d(h)(({ theme: e }) => ({
285
285
  });
286
286
  };
287
287
  render() {
288
- return /* @__PURE__ */ c(B, {
288
+ return /* @__PURE__ */ s(B, {
289
289
  ...this.props,
290
290
  onChangeModel: this.props.onModelChanged,
291
291
  onChoiceChanged: this.onChoiceChanged,