@pie-element/hotspot 12.0.4-next.20261011174919 → 12.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.
@@ -35523,15 +35523,12 @@ var ZW = class extends P.Component {
35523
35523
  }), tG = (e) => typeof e == "string" ? {
35524
35524
  label: e,
35525
35525
  value: e
35526
- } : e, nG = function() {
35527
- let [e, t, n = !1] = Array.prototype.slice.call(arguments);
35528
- return {
35529
- type: "radio",
35530
- label: e,
35531
- choices: t && t.map((e) => tG(e)),
35532
- isConfigProperty: n
35533
- };
35534
- }, rG = (e, t, n = !1) => ({
35526
+ } : e, nG = (e, t, n = !1) => ({
35527
+ type: "radio",
35528
+ label: e,
35529
+ choices: t && t.map((e) => tG(e)),
35530
+ isConfigProperty: n
35531
+ }), rG = (e, t, n = !1) => ({
35535
35532
  type: "dropdown",
35536
35533
  label: e,
35537
35534
  choices: t,
@@ -37422,31 +37419,7 @@ var { Panel: RK, toggle: zK, dropdown: BK } = QW, VK = (e) => e != null, HK = A(
37422
37419
  ]
37423
37420
  });
37424
37421
  }
37425
- };
37426
- YK.propTypes = {
37427
- configuration: L.default.object,
37428
- model: L.default.object.isRequired,
37429
- imageSupport: L.default.shape({
37430
- add: L.default.func,
37431
- delete: L.default.func
37432
- }),
37433
- uploadSoundSupport: L.default.shape({
37434
- add: L.default.func,
37435
- delete: L.default.func
37436
- }),
37437
- onImageUpload: L.default.func.isRequired,
37438
- onColorChanged: L.default.func.isRequired,
37439
- onPromptChanged: L.default.func.isRequired,
37440
- onUpdateImageDimension: L.default.func.isRequired,
37441
- onUpdateShapes: L.default.func.isRequired,
37442
- onModelChangedByConfig: L.default.func.isRequired,
37443
- onRationaleChanged: L.default.func.isRequired,
37444
- onConfigurationChanged: L.default.func.isRequired,
37445
- onTeacherInstructionsChanged: L.default.func.isRequired
37446
- };
37447
- //#endregion
37448
- //#region src/author/defaults.ts
37449
- var XK = {
37422
+ }, XK = {
37450
37423
  model: {
37451
37424
  dimensions: {
37452
37425
  height: 0,
@@ -37562,12 +37535,15 @@ var XK = {
37562
37535
  }
37563
37536
  }
37564
37537
  }, ZK = (0, an.default)("hotspot:configure"), QK = class e extends HTMLElement {
37538
+ _root;
37539
+ _model;
37540
+ _configuration;
37565
37541
  static createDefaultModel = (e = {}) => ({
37566
37542
  ...XK.model,
37567
37543
  ...e,
37568
37544
  hotspotList: e.hotspotList || [e.hotspotColor],
37569
37545
  outlineList: e.outlineList || [e.outlineColor],
37570
- shapes: e.shapes || XK.model.shapes || {}
37546
+ shapes: e.shapes || XK.model.shapes
37571
37547
  });
37572
37548
  constructor() {
37573
37549
  super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = XK.configuration, this.onModelChanged = this.onModelChanged.bind(this);
@@ -37580,7 +37556,7 @@ var XK = {
37580
37556
  ...XK.configuration,
37581
37557
  ...e
37582
37558
  };
37583
- 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({
37559
+ this._configuration = t, t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (t.language.enabled = !0, (!t.languageChoices.options || !t.languageChoices.options.length) && (t.languageChoices.options = []), t.languageChoices.options.find((e) => e.value === this._model.language) || t.languageChoices.options.push({
37584
37560
  value: this._model.language,
37585
37561
  label: this._model.language
37586
37562
  })) : delete this._model.language, this._render();