@digabi/exam-engine-core 19.0.4-alpha.3 → 19.0.4-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,16 +27,16 @@ export function updateLargeImageWarnings(answer) {
27
27
  function updateImageStatus(img) {
28
28
  remainingImages--;
29
29
  const wrapper = img.parentElement;
30
- const nextSibling = wrapper.nextSibling;
30
+ const nextSibling = wrapper === null || wrapper === void 0 ? void 0 : wrapper.nextSibling;
31
31
  const hasFullSizeLink = nextSibling instanceof HTMLElement && nextSibling.classList.contains('full-size-image');
32
32
  if (img.naturalWidth > img.width) {
33
33
  if (!hasFullSizeLink) {
34
- wrapper.insertAdjacentHTML('afterend', `<div class="full-size-image"><a target="_blank" href="${img.src}"></a>`);
34
+ wrapper === null || wrapper === void 0 ? void 0 : wrapper.insertAdjacentHTML('afterend', `<div class="full-size-image"><a target="_blank" href="${img.src}"></a>`);
35
35
  }
36
36
  }
37
37
  else {
38
38
  if (hasFullSizeLink) {
39
- nextSibling.remove();
39
+ nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.remove();
40
40
  }
41
41
  }
42
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"largeImageDetector.js","sourceRoot":"","sources":["../../../src/components/grading/largeImageDetector.ts"],"names":[],"mappings":"AAAA,IAAI,eAAuB,CAAA;AAE3B,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,IAAI,KAAK,GAAG,IAAI,CAAA;IAChB,OAAO,KAAK,GAAG,CAAC,EAAE;QAChB,KAAK,EAAE,CAAA;QACP,IAAI,eAAe,KAAK,CAAC,EAAE;YACzB,OAAM;SACP;aAAM;YACL,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;SACzD;KACF;IACD,MAAM,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAClC,CAAC;AACD,MAAM,UAAU,wBAAwB,CAAC,MAAe;IACtD,MAAM,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAA;IAC7C,eAAe,GAAG,MAAM,CAAC,MAAM,CAAA;IAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACrB,IAAI,GAAG,CAAC,QAAQ,EAAE;YAChB,UAAU,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;SAC5C;aAAM;YACL,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAA;SAC3D;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AACD,SAAS,iBAAiB,CAAC,GAAqB;IAC9C,eAAe,EAAE,CAAA;IACjB,MAAM,OAAO,GAAG,GAAG,CAAC,aAAc,CAAA;IAClC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;IACvC,MAAM,eAAe,GAAG,WAAW,YAAY,WAAW,IAAI,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAC/G,IAAI,GAAG,CAAC,YAAY,GAAG,GAAG,CAAC,KAAK,EAAE;QAChC,IAAI,CAAC,eAAe,EAAE;YACpB,OAAO,CAAC,kBAAkB,CAAC,UAAU,EAAE,yDAAyD,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAA;SACjH;KACF;SAAM;QACL,IAAI,eAAe,EAAE;YACnB,WAAW,CAAC,MAAM,EAAE,CAAA;SACrB;KACF;AACH,CAAC"}
1
+ {"version":3,"file":"largeImageDetector.js","sourceRoot":"","sources":["../../../src/components/grading/largeImageDetector.ts"],"names":[],"mappings":"AAAA,IAAI,eAAuB,CAAA;AAE3B,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,IAAI,KAAK,GAAG,IAAI,CAAA;IAChB,OAAO,KAAK,GAAG,CAAC,EAAE;QAChB,KAAK,EAAE,CAAA;QACP,IAAI,eAAe,KAAK,CAAC,EAA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