@pie-element/math-inline 13.0.4-next.20261011174919 → 13.0.4

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.
@@ -11260,15 +11260,12 @@ var sh = class extends K.Component {
11260
11260
  }), dh = (e) => typeof e == "string" ? {
11261
11261
  label: e,
11262
11262
  value: e
11263
- } : e, fh = function() {
11264
- let [e, t, n = !1] = Array.prototype.slice.call(arguments);
11265
- return {
11266
- type: "radio",
11267
- label: e,
11268
- choices: t && t.map((e) => dh(e)),
11269
- isConfigProperty: n
11270
- };
11271
- }, ph = (e, t, n = !1) => ({
11263
+ } : e, fh = (e, t, n = !1) => ({
11264
+ type: "radio",
11265
+ label: e,
11266
+ choices: t && t.map((e) => dh(e)),
11267
+ isConfigProperty: n
11268
+ }), ph = (e, t, n = !1) => ({
11272
11269
  type: "dropdown",
11273
11270
  label: e,
11274
11271
  choices: t,
@@ -11914,14 +11911,6 @@ var ag = class extends G.Component {
11914
11911
  color: e.palette.error.main,
11915
11912
  paddingTop: e.spacing(1)
11916
11913
  })), pg = class extends K.Component {
11917
- static propTypes = {
11918
- onModelChanged: Q.default.func,
11919
- onConfigurationChanged: Q.default.func,
11920
- model: Q.default.object.isRequired,
11921
- configuration: Q.default.object.isRequired,
11922
- imageSupport: Q.default.object,
11923
- uploadSoundSupport: Q.default.object
11924
- };
11925
11914
  onChange = (e) => {
11926
11915
  this.props.onModelChanged(e);
11927
11916
  };
@@ -11995,8 +11984,7 @@ var ag = class extends G.Component {
11995
11984
  onChange: this.onChange,
11996
11985
  rationaleEnabled: k,
11997
11986
  promptEnabled: O,
11998
- toolbarOpts: P,
11999
- spellCheck: A
11987
+ toolbarOpts: P
12000
11988
  }),
12001
11989
  D && /* @__PURE__ */ X(gp, {
12002
11990
  feedback: e.feedback,
@@ -12206,6 +12194,9 @@ var ag = class extends G.Component {
12206
12194
  }
12207
12195
  }
12208
12196
  }, bg = (0, Yt.default)("pie-elements:math-inline:configure"), xg = class e extends HTMLElement {
12197
+ _root;
12198
+ _model;
12199
+ _configuration;
12209
12200
  static createDefaultModel = (e = {}) => (h(e.responses) || (e.responses = e.responses.map((e) => ({
12210
12201
  ...e,
12211
12202
  validation: e.validation || yg.model.validationDefault,
@@ -12226,10 +12217,15 @@ var ag = class extends G.Component {
12226
12217
  ...yg.configuration,
12227
12218
  ...e
12228
12219
  };
12229
- this._configuration = t, t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
12230
- value: this._model.language,
12231
- label: this._model.language
12232
- })) : delete this._model.language, this._render();
12220
+ if (this._configuration = t, t?.language?.enabled) t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value);
12221
+ else if (t.language.settings && this._model.language) {
12222
+ let e = this._configuration.language, t = this._configuration.languageChoices, n = this._model.language;
12223
+ e.enabled = !0, (!t.options || !t.options.length) && (t.options = []), t.options.find((e) => e.value === n) || t.options.push({
12224
+ value: n,
12225
+ label: n
12226
+ });
12227
+ } else delete this._model.language;
12228
+ this._render();
12233
12229
  }
12234
12230
  onModelChanged(e) {
12235
12231
  this._model = e, bg("[onModelChanged]: ", this._model), this._render(), this.dispatchEvent(new mg(this._model));