@regulaforensics/ui-components 9.7.1084-nightly → 9.7.1086-nightly

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.
@@ -80783,19 +80783,19 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80783
80783
  items: "_items_l6jk0_35",
80784
80784
  item: "_item_l6jk0_35",
80785
80785
  text: "_text_l6jk0_47"
80786
- }, dU = ({ nameSurname: e, issuingStateName: t, dateOfExpiry: n, dateOfBirth: r, documentNumber: i, portrait: a, documentOwnerAge: o, documentOwnerNationalityCode: s, documentOwnerSex: c, imageViewer: l = !0, showPortrait: u, className: d }) => {
80787
- let { t: f } = lU(), p = c.value ? $.getSex(c.value) : "", m = o.value ? `${f("age")}: ${o.value}` : "";
80786
+ }, dU = ({ nameSurname: e, issuingStateName: t, dateOfExpiry: n, dateOfBirth: r, documentNumber: i, portrait: a, documentOwnerAge: o, documentOwnerNationalityCode: s, documentOwnerSex: c, imageViewer: l = !0, showPortrait: u, className: d, downloadImage: f }) => {
80787
+ let { t: p } = lU(), m = c.value ? $.getSex(c.value) : "", _ = o.value ? `${p("age")}: ${o.value}` : "";
80788
80788
  return /* @__PURE__ */ g("div", {
80789
80789
  className: (0, yD.default)(uU.container, d),
80790
80790
  children: [u && /* @__PURE__ */ h("div", {
80791
80791
  className: uU.image,
80792
80792
  children: a ? /* @__PURE__ */ h(fA, {
80793
80793
  src: a,
80794
- alt: f("portrait"),
80794
+ alt: p("portrait"),
80795
80795
  draggable: !1,
80796
80796
  viewer: l,
80797
80797
  magnifier: !0,
80798
- download: !0,
80798
+ download: f,
80799
80799
  magnifierImgBorderRadius: 6
80800
80800
  }) : /* @__PURE__ */ h(VH, { type: "photo" })
80801
80801
  }), /* @__PURE__ */ g("div", {
@@ -80807,7 +80807,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80807
80807
  className: uU.title,
80808
80808
  children: e.value.replace(/\^/g, " ")
80809
80809
  }),
80810
- (p || m) && /* @__PURE__ */ h(G, { children: `${p}${p && m ? ", " : ""}${m}` }),
80810
+ (m || _) && /* @__PURE__ */ h(G, { children: `${m}${m && _ ? ", " : ""}${_}` }),
80811
80811
  /* @__PURE__ */ g("div", {
80812
80812
  className: uU.items,
80813
80813
  children: [
@@ -80817,7 +80817,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80817
80817
  className: uU.text,
80818
80818
  size: "12x160",
80819
80819
  uppercase: !0,
80820
- children: f("dateOfBirth")
80820
+ children: p("dateOfBirth")
80821
80821
  }), /* @__PURE__ */ h(G, { children: r.value })]
80822
80822
  }),
80823
80823
  s.value && /* @__PURE__ */ g("div", {
@@ -80826,7 +80826,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80826
80826
  className: uU.text,
80827
80827
  size: "12x160",
80828
80828
  uppercase: !0,
80829
- children: f("nationality")
80829
+ children: p("nationality")
80830
80830
  }), /* @__PURE__ */ h(G, { children: s.value.replace(/\^/g, " ") })]
80831
80831
  }),
80832
80832
  t.value && /* @__PURE__ */ g("div", {
@@ -80835,7 +80835,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80835
80835
  className: uU.text,
80836
80836
  size: "12x160",
80837
80837
  uppercase: !0,
80838
- children: f("issuingState")
80838
+ children: p("issuingState")
80839
80839
  }), /* @__PURE__ */ h(G, { children: t.value })]
80840
80840
  }),
80841
80841
  n.value && /* @__PURE__ */ g("div", {
@@ -80844,7 +80844,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80844
80844
  className: uU.text,
80845
80845
  size: "12x160",
80846
80846
  uppercase: !0,
80847
- children: f("dateOfExpiry")
80847
+ children: p("dateOfExpiry")
80848
80848
  }), /* @__PURE__ */ h(G, { children: n.value })]
80849
80849
  }),
80850
80850
  i.value && /* @__PURE__ */ g("div", {
@@ -80853,7 +80853,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80853
80853
  className: uU.text,
80854
80854
  size: "12x160",
80855
80855
  uppercase: !0,
80856
- children: f("number")
80856
+ children: p("number")
80857
80857
  }), /* @__PURE__ */ h(G, { children: i.value })]
80858
80858
  })
80859
80859
  ]
@@ -80865,23 +80865,24 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80865
80865
  value: "",
80866
80866
  status: A.ERROR,
80867
80867
  lcid: j.LATIN
80868
- }, pU = ({ showPortrait: e = !0, imageViewer: t, className: n }) => {
80869
- let { response: r } = re();
80870
- if (!r) return null;
80871
- let i = (e) => KT(r, [za.PORTRAIT], e)?.[0]?.pages?.[0]?.src, a = i([M.RFID_GRAPHICS]) || i([M.VISUAL_GRAPHICS]) || i([M.BARCODE_GRAPHICS]) || i([M.LIVE_PORTRAIT]) || i([M.EXT_PORTRAIT]), o = ME(r), s = HE(r)?.[0] ?? fU, c = VE(r)?.[0] ?? fU, l = UE(r)?.[0] ?? fU, u = WE(r)?.[0] ?? fU, d = KE(r)?.[0] ?? fU, f = BE(r, F.NATIONALITY)?.[0] ?? fU;
80868
+ }, pU = ({ showPortrait: e = !0, imageViewer: t, className: n, downloadImage: r }) => {
80869
+ let { response: i } = re();
80870
+ if (!i) return null;
80871
+ let a = (e) => KT(i, [za.PORTRAIT], e)?.[0]?.pages?.[0]?.src, o = a([M.RFID_GRAPHICS]) || a([M.VISUAL_GRAPHICS]) || a([M.BARCODE_GRAPHICS]) || a([M.LIVE_PORTRAIT]) || a([M.EXT_PORTRAIT]), s = ME(i), c = HE(i)?.[0] ?? fU, l = VE(i)?.[0] ?? fU, u = UE(i)?.[0] ?? fU, d = WE(i)?.[0] ?? fU, f = KE(i)?.[0] ?? fU, p = BE(i, F.NATIONALITY)?.[0] ?? fU;
80872
80872
  return /* @__PURE__ */ h(dU, {
80873
- nameSurname: o,
80874
- issuingStateName: s,
80875
- dateOfExpiry: c,
80876
- dateOfBirth: BE(r, F.DATE_OF_BIRTH)?.[0] ?? fU,
80877
- documentNumber: l,
80878
- portrait: a,
80879
- documentOwnerAge: u,
80880
- documentOwnerSex: d,
80881
- documentOwnerNationalityCode: f,
80873
+ nameSurname: s,
80874
+ issuingStateName: c,
80875
+ dateOfExpiry: l,
80876
+ dateOfBirth: BE(i, F.DATE_OF_BIRTH)?.[0] ?? fU,
80877
+ documentNumber: u,
80878
+ portrait: o,
80879
+ documentOwnerAge: d,
80880
+ documentOwnerSex: f,
80881
+ documentOwnerNationalityCode: p,
80882
80882
  showPortrait: e,
80883
80883
  imageViewer: t,
80884
- className: n
80884
+ className: n,
80885
+ downloadImage: r
80885
80886
  });
80886
80887
  };
80887
80888
  q.addResourceBundle("ru-RU", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Время обработки" }), q.addResourceBundle("en-US", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("lv-LV", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("de-DE", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("pl-PL", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("it-IT", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("hu-HU", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("zh-Hans", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "处理时间" }), q.addResourceBundle("zh-Hant", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "處理時間" }), q.addResourceBundle("sk-SK", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("uk-UA", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("fr-FR", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("es-ES", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("pt-PT", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("ar-AE", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "معالجة الوقت" }), q.addResourceBundle("nl-NL", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("id-ID", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("vi-VN", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("ko-KR", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("ms-MY", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("ro-RO", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("el-GR", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("tr-TR", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("ja-JP", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("cs-CZ", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("th-TH", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("hi-IN", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("bn-BD", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("he-IL", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("fi-FI", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("sv-SE", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("da-DK", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("hr-HR", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("no-NO", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("uz-Latn", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Processing time" }), q.addResourceBundle("hy-AM", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Մշակման ժամանակը" }), q.addResourceBundle("ky-KG", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Иштетүү убактысы" }), q.addResourceBundle("ku-Arab", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "کاتی چاککردن" }), q.addResourceBundle("tg-TJ", "fd36d162be5de318f22b05af38ffef8b", { processingTime: "Вақти коркард" });
@@ -80927,12 +80928,15 @@ var mU = () => Qk("fd36d162be5de318f22b05af38ffef8b"), hU = { text: "_text_i1hpy
80927
80928
  }), SU = () => {
80928
80929
  let { response: e } = re();
80929
80930
  return e ? /* @__PURE__ */ h(xU, { detailedStatus: wE(e) }) : null;
80930
- }, CU = { container: "_container_3v1pw_1" }, wU = ({ additionalFields: e, scrollToResult: t, imageViewer: n }) => /* @__PURE__ */ g("div", {
80931
+ }, CU = { container: "_container_3v1pw_1" }, wU = ({ additionalFields: e, scrollToResult: t, imageViewer: n, downloadImage: r }) => /* @__PURE__ */ g("div", {
80931
80932
  className: CU.container,
80932
80933
  children: [
80933
80934
  /* @__PURE__ */ h(SU, {}),
80934
80935
  /* @__PURE__ */ h(cU, { scrollToResult: t }),
80935
- /* @__PURE__ */ h(pU, { imageViewer: n }),
80936
+ /* @__PURE__ */ h(pU, {
80937
+ imageViewer: n,
80938
+ downloadImage: r
80939
+ }),
80936
80940
  /* @__PURE__ */ h(yU, { additionalFields: e })
80937
80941
  ]
80938
80942
  }), TU = { canvas: "_canvas_1duaq_1" }, EU = ({ image: e, selections: t, onCanvas: n }) => {
@@ -81195,12 +81199,12 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81195
81199
  preview: "_preview_d5kxz_6",
81196
81200
  "view-container": "_view-container_d5kxz_12",
81197
81201
  current: "_current_d5kxz_20"
81198
- }, LU = ({ showLightDock: e, lightImages: t, pageImages: n, currentLight: r, setCurrentLight: i, currentImage: a, magnifierImg: o, currentSelections: s, setMagnifierImg: c, currentPage: l, setCurrentPage: u, imageViewer: d = !0 }) => {
81199
- let { t: f } = FU();
81202
+ }, LU = ({ showLightDock: e, lightImages: t, pageImages: n, currentLight: r, setCurrentLight: i, currentImage: a, magnifierImg: o, currentSelections: s, setMagnifierImg: c, currentPage: l, setCurrentPage: u, imageViewer: d = !0, downloadImage: f }) => {
81203
+ let { t: p } = FU();
81200
81204
  return /* @__PURE__ */ g("div", {
81201
81205
  className: IU.viewer,
81202
81206
  children: [e && /* @__PURE__ */ h(PU, {
81203
- title: f("lights"),
81207
+ title: p("lights"),
81204
81208
  images: t,
81205
81209
  activeImg: r,
81206
81210
  onSelect: i
@@ -81213,13 +81217,13 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81213
81217
  children: [/* @__PURE__ */ h(fA, {
81214
81218
  className: IU.image,
81215
81219
  src: a,
81216
- alt: f("preview"),
81220
+ alt: p("preview"),
81217
81221
  magnifierImg: o,
81218
81222
  previewImg: o,
81219
81223
  magnifierImgBorderRadius: 16,
81220
81224
  draggable: !1,
81221
81225
  magnifier: !0,
81222
- download: !0,
81226
+ download: f,
81223
81227
  viewer: d
81224
81228
  }), /* @__PURE__ */ h(EU, {
81225
81229
  image: a,
@@ -81229,7 +81233,7 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81229
81233
  })
81230
81234
  }), n.length > 1 && /* @__PURE__ */ h(PU, {
81231
81235
  large: !e,
81232
- title: f("pages"),
81236
+ title: p("pages"),
81233
81237
  images: n,
81234
81238
  activeImg: l,
81235
81239
  onSelect: u,
@@ -81262,59 +81266,60 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81262
81266
  pageImages: a,
81263
81267
  currentImage: u(() => a.find(({ id: e }) => e === n) || a[0], [a, n])
81264
81268
  };
81265
- }, zU = ({ imageViewer: e, className: t, initialPageIndex: n, initialLight: r, onPageChanged: i, onLightChanged: a }) => {
81266
- let { response: o } = re(), s = u(() => sN(o), [o]), l = n ?? 0, d = r ?? s[0]?.light ?? Ua.WHITE, m = f(l), g = f(d), { selections: _, setSelections: v } = le(), { page: y = l, setPage: b } = oe(), [x, S] = p(d), [C, w] = p(""), [T, E] = p([]), { pageImages: ee, lightImages: te, currentImage: ne, showLightDock: ie } = RU({
81267
- images: s,
81268
- currentLight: x,
81269
- page: y
81269
+ }, zU = ({ imageViewer: e, className: t, initialPageIndex: n, initialLight: r, onPageChanged: i, onLightChanged: a, downloadImage: o }) => {
81270
+ let { response: s } = re(), l = u(() => sN(s), [s]), d = n ?? 0, m = r ?? l[0]?.light ?? Ua.WHITE, g = f(d), _ = f(m), { selections: v, setSelections: y } = le(), { page: b = d, setPage: x } = oe(), [S, C] = p(m), [w, T] = p(""), [E, ee] = p([]), { pageImages: te, lightImages: ne, currentImage: ie, showLightDock: ae } = RU({
81271
+ images: l,
81272
+ currentLight: S,
81273
+ page: b
81270
81274
  });
81271
81275
  return c(() => {
81272
81276
  let e = (e) => {
81273
- if (ee.length <= 1 || cN(e.target) || cN(document.activeElement)) return;
81274
- let t = ee.findIndex((e) => e.id === y);
81275
- e.key === "ArrowLeft" ? (e.preventDefault(), b(ee[t > 0 ? t - 1 : ee.length - 1].id)) : e.key === "ArrowRight" && (e.preventDefault(), b(ee[t < ee.length - 1 ? t + 1 : 0].id));
81277
+ if (te.length <= 1 || cN(e.target) || cN(document.activeElement)) return;
81278
+ let t = te.findIndex((e) => e.id === b);
81279
+ e.key === "ArrowLeft" ? (e.preventDefault(), x(te[t > 0 ? t - 1 : te.length - 1].id)) : e.key === "ArrowRight" && (e.preventDefault(), x(te[t < te.length - 1 ? t + 1 : 0].id));
81276
81280
  };
81277
81281
  return window.addEventListener("keydown", e), () => {
81278
81282
  window.removeEventListener("keydown", e);
81279
81283
  };
81280
81284
  }, [
81281
- y,
81282
- ee,
81283
- b
81285
+ b,
81286
+ te,
81287
+ x
81284
81288
  ]), c(() => {
81285
- if (!_.length || !s.length) return;
81286
- let { location: e, page: t } = _[0];
81287
- S(e.light === void 0 ? s[0].light : e.light), b(t);
81288
- }, [_, s]), c(() => {
81289
- s.length && E(_.filter((e) => e.page === y && (x === s[0].light ? e.location.light === x || e.location.light === void 0 : e.location.light === x)));
81289
+ if (!v.length || !l.length) return;
81290
+ let { location: e, page: t } = v[0];
81291
+ C(e.light === void 0 ? l[0].light : e.light), x(t);
81292
+ }, [v, l]), c(() => {
81293
+ l.length && ee(v.filter((e) => e.page === b && (S === l[0].light ? e.location.light === S || e.location.light === void 0 : e.location.light === S)));
81290
81294
  }, [
81291
- x,
81292
- y,
81293
- _,
81294
- s
81295
+ S,
81296
+ b,
81297
+ v,
81298
+ l
81295
81299
  ]), c(() => {
81296
- !ne || ne.id === y || b(ne.id);
81297
- }, [ne, y]), c(() => () => {
81298
- b(l), S(d), v([]);
81299
- }, [s]), c(() => {
81300
- m.current !== y && (m.current = y, i?.(y));
81301
- }, [y]), c(() => {
81302
- g.current !== x && (g.current = x, a?.(x));
81303
- }, [x]), /* @__PURE__ */ h(OU, {
81300
+ !ie || ie.id === b || x(ie.id);
81301
+ }, [ie, b]), c(() => () => {
81302
+ x(d), C(m), y([]);
81303
+ }, [l]), c(() => {
81304
+ g.current !== b && (g.current = b, i?.(b));
81305
+ }, [b]), c(() => {
81306
+ _.current !== S && (_.current = S, a?.(S));
81307
+ }, [S]), /* @__PURE__ */ h(OU, {
81304
81308
  className: t,
81305
- children: ne ? /* @__PURE__ */ h(LU, {
81306
- showLightDock: ie,
81307
- lightImages: te,
81308
- currentLight: x,
81309
- setCurrentLight: S,
81310
- currentImage: ne.src,
81311
- magnifierImg: C,
81312
- currentSelections: T,
81313
- setMagnifierImg: w,
81314
- pageImages: ee,
81315
- currentPage: y,
81316
- setCurrentPage: b,
81317
- imageViewer: e
81309
+ children: ie ? /* @__PURE__ */ h(LU, {
81310
+ showLightDock: ae,
81311
+ lightImages: ne,
81312
+ currentLight: S,
81313
+ setCurrentLight: C,
81314
+ currentImage: ie.src,
81315
+ magnifierImg: w,
81316
+ currentSelections: E,
81317
+ setMagnifierImg: T,
81318
+ pageImages: te,
81319
+ currentPage: b,
81320
+ setCurrentPage: x,
81321
+ imageViewer: e,
81322
+ downloadImage: o
81318
81323
  }) : /* @__PURE__ */ h(AU, {})
81319
81324
  });
81320
81325
  }, BU = /* @__PURE__ */ function(e) {
@@ -82079,10 +82084,10 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82079
82084
  status: n
82080
82085
  }),
82081
82086
  children: a
82082
- }), aW = ({ src: e, alt: t, imageViewer: n = !0, heightLimit: r = 100, className: i }) => {
82083
- let a = f(null);
82087
+ }), aW = ({ src: e, alt: t, imageViewer: n = !0, heightLimit: r = 100, className: i, downloadImage: a }) => {
82088
+ let o = f(null);
82084
82089
  return c(() => {
82085
- let e = a.current;
82090
+ let e = o.current;
82086
82091
  if (!e) return;
82087
82092
  let t = e.parentElement, n = e.children[0];
82088
82093
  if (!t || !n) return;
@@ -82098,47 +82103,48 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82098
82103
  alt: t,
82099
82104
  viewer: n,
82100
82105
  magnifier: !0,
82101
- download: !0,
82106
+ download: a,
82102
82107
  className: i,
82103
- ref: a
82108
+ ref: o
82104
82109
  });
82105
82110
  }, oW = {
82106
82111
  container: "_container_1bdwk_1",
82107
82112
  item: "_item_1bdwk_4",
82108
82113
  name: "_name_1bdwk_12"
82109
- }, sW = ({ diagnose: e, image: t, referenceImage: n, similarity: r, status: i, group: a, type: o, isOpen: s, onOpen: c, imageViewer: l, isSelected: u, onClick: d, shift: f = 0 }) => {
82110
- let { t: p } = eW(), m = !!(t || n || i !== A.OK), _ = a === O.IR_VISIBILITY;
82114
+ }, sW = ({ diagnose: e, image: t, referenceImage: n, similarity: r, status: i, group: a, type: o, isOpen: s, onOpen: c, imageViewer: l, isSelected: u, onClick: d, shift: f = 0, downloadImage: p }) => {
82115
+ let { t: m } = eW(), _ = !!(t || n || i !== A.OK), v = a === O.IR_VISIBILITY;
82111
82116
  return /* @__PURE__ */ h(iW, {
82112
- shift: m ? f + 20 : f,
82117
+ shift: _ ? f + 20 : f,
82113
82118
  name: /* @__PURE__ */ h($.SecurityFeatureTypeLabel, { children: o }),
82114
82119
  status: i,
82115
82120
  selected: u,
82116
82121
  open: s,
82117
82122
  onOpen: c,
82118
- collapse: m,
82123
+ collapse: _,
82119
82124
  onHeadClick: d,
82120
82125
  children: /* @__PURE__ */ g("div", {
82121
82126
  className: oW.container,
82122
82127
  children: [
82123
- !(o === P.INVISIBLE_OBJECT || r === 0 && !_) && /* @__PURE__ */ g("div", {
82128
+ !(o === P.INVISIBLE_OBJECT || r === 0 && !v) && /* @__PURE__ */ g("div", {
82124
82129
  className: oW.item,
82125
82130
  children: [/* @__PURE__ */ h(G, {
82126
82131
  uppercase: !0,
82127
82132
  className: oW.name,
82128
- children: p(_ ? "visibility" : "similarity")
82129
- }), /* @__PURE__ */ h(G, { children: _ ? dd(r).map($.getIRVisibilityStatus).join(", ") : r + "%" })]
82133
+ children: m(v ? "visibility" : "similarity")
82134
+ }), /* @__PURE__ */ h(G, { children: v ? dd(r).map($.getIRVisibilityStatus).join(", ") : r + "%" })]
82130
82135
  }),
82131
82136
  n && /* @__PURE__ */ g("div", {
82132
82137
  className: oW.item,
82133
82138
  children: [/* @__PURE__ */ h(G, {
82134
82139
  uppercase: !0,
82135
82140
  className: oW.name,
82136
- children: p("reference")
82141
+ children: m("reference")
82137
82142
  }), /* @__PURE__ */ h("div", {
82138
82143
  className: oW.image,
82139
82144
  children: /* @__PURE__ */ h(aW, {
82140
82145
  src: n,
82141
82146
  imageViewer: l,
82147
+ downloadImage: p,
82142
82148
  alt: "Reference"
82143
82149
  })
82144
82150
  })]
@@ -82148,12 +82154,13 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82148
82154
  children: [/* @__PURE__ */ h(G, {
82149
82155
  uppercase: !0,
82150
82156
  className: oW.name,
82151
- children: p("image")
82157
+ children: m("image")
82152
82158
  }), /* @__PURE__ */ h("div", {
82153
82159
  className: oW.image,
82154
82160
  children: /* @__PURE__ */ h(aW, {
82155
82161
  src: t,
82156
82162
  imageViewer: l,
82163
+ downloadImage: p,
82157
82164
  alt: "Image"
82158
82165
  })
82159
82166
  })]
@@ -82163,7 +82170,7 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82163
82170
  children: [/* @__PURE__ */ h(G, {
82164
82171
  uppercase: !0,
82165
82172
  className: oW.name,
82166
- children: p("diagnose")
82173
+ children: m("diagnose")
82167
82174
  }), /* @__PURE__ */ h(G, { children: /* @__PURE__ */ h($.CheckDiagnose, { children: e }) })]
82168
82175
  })
82169
82176
  ]
@@ -82292,22 +82299,23 @@ var cW = () => Qk("f5703a9089310f67332ce6624b257773"), lW = {
82292
82299
  container: "_container_1bdwk_1",
82293
82300
  item: "_item_1bdwk_4",
82294
82301
  name: "_name_1bdwk_12"
82295
- }, uW = ({ diagnose: e, image: t, status: n, imageViewer: r, shift: i }) => {
82296
- let { t: a } = cW(), o = { "--shift": i + "px" };
82302
+ }, uW = ({ diagnose: e, image: t, status: n, imageViewer: r, shift: i, downloadImage: a }) => {
82303
+ let { t: o } = cW(), s = { "--shift": i + "px" };
82297
82304
  return /* @__PURE__ */ g("div", {
82298
82305
  className: lW.container,
82299
- style: o,
82306
+ style: s,
82300
82307
  children: [t && /* @__PURE__ */ g("div", {
82301
82308
  className: lW.item,
82302
82309
  children: [/* @__PURE__ */ h(G, {
82303
82310
  uppercase: !0,
82304
82311
  className: lW.name,
82305
- children: a("image")
82312
+ children: o("image")
82306
82313
  }), /* @__PURE__ */ h("div", {
82307
82314
  className: lW.image,
82308
82315
  children: /* @__PURE__ */ h(aW, {
82309
82316
  imageViewer: r,
82310
82317
  src: t,
82318
+ downloadImage: a,
82311
82319
  alt: "Reference"
82312
82320
  })
82313
82321
  })]
@@ -82316,7 +82324,7 @@ var cW = () => Qk("f5703a9089310f67332ce6624b257773"), lW = {
82316
82324
  children: [/* @__PURE__ */ h(G, {
82317
82325
  uppercase: !0,
82318
82326
  className: lW.name,
82319
- children: a("diagnose")
82327
+ children: o("diagnose")
82320
82328
  }), /* @__PURE__ */ h(G, { children: /* @__PURE__ */ h($.CheckDiagnose, { children: e }) })]
82321
82329
  })]
82322
82330
  });
@@ -82715,7 +82723,7 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82715
82723
  dataTestKey: u
82716
82724
  }),
82717
82725
  children: a
82718
- }), NW = { checks: "_checks_zbgpv_1" }, PW = ({ group: e, checks: t, status: n, onSelect: r, selections: i, page: a, isSelected: o, openFields: s, onOpen: c, onGroupClick: l, onSubGroupClick: u, groupId: d, imageViewer: f, collapse: p, shift: m = 0, type: g }) => /* @__PURE__ */ h(MW, {
82726
+ }), NW = { checks: "_checks_zbgpv_1" }, PW = ({ group: e, checks: t, status: n, onSelect: r, selections: i, page: a, isSelected: o, openFields: s, onOpen: c, onGroupClick: l, onSubGroupClick: u, groupId: d, imageViewer: f, collapse: p, shift: m = 0, type: g, downloadImage: _ }) => /* @__PURE__ */ h(MW, {
82719
82727
  shift: m,
82720
82728
  type: g,
82721
82729
  name: /* @__PURE__ */ h(OW, { group: e }),
@@ -82728,62 +82736,64 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82728
82736
  children: /* @__PURE__ */ h("div", {
82729
82737
  className: (0, yD.default)({ [NW.checks]: g !== "nested" }),
82730
82738
  children: t.map((t, n) => {
82731
- let { checkResult: o, diagnose: l, location: p } = t, g = `${d}.${n}`, _ = p && {
82739
+ let { checkResult: o, diagnose: l, location: p } = t, g = `${d}.${n}`, v = p && {
82732
82740
  light: p.light || KU(e),
82733
82741
  rect: p.rect
82734
- }, v = !!(_ && HU(i, [{
82742
+ }, y = !!(v && HU(i, [{
82735
82743
  page: a,
82736
82744
  path: String(e),
82737
82745
  checkResult: o,
82738
- location: _
82739
- }])), y = _ && VU(_.rect) ? [{
82746
+ location: v
82747
+ }])), b = v && VU(v.rect) ? [{
82740
82748
  page: a,
82741
82749
  path: String(e),
82742
82750
  checkResult: o,
82743
- location: _
82744
- }] : [], b = (t) => `${a}/${e}/${t}/${n}`, x = () => c(g), S = () => u(v, g, y);
82751
+ location: v
82752
+ }] : [], x = (t) => `${a}/${e}/${t}/${n}`, S = () => c(g), C = () => u(y, g, b);
82745
82753
  if (_T.isBelongs(t)) return /* @__PURE__ */ h(sW, {
82746
82754
  type: t.type,
82747
- isSelected: v,
82755
+ isSelected: y,
82748
82756
  status: o,
82749
82757
  diagnose: l,
82750
82758
  image: t.image,
82751
82759
  referenceImage: t.referenceImage,
82752
82760
  similarity: t.similarity,
82753
82761
  group: e,
82754
- onClick: S,
82762
+ onClick: C,
82755
82763
  shift: m,
82756
82764
  imageViewer: f,
82757
82765
  isOpen: s.has(g),
82758
- onOpen: x
82759
- }, b("ident"));
82766
+ onOpen: S,
82767
+ downloadImage: _
82768
+ }, x("ident"));
82760
82769
  if (yT.isBelongs(t)) return /* @__PURE__ */ h(uW, {
82761
82770
  status: o,
82762
82771
  diagnose: l,
82763
82772
  image: t.image,
82764
82773
  shift: m,
82765
- imageViewer: f
82766
- }, b("photoIdent"));
82774
+ imageViewer: f,
82775
+ downloadImage: _
82776
+ }, x("photoIdent"));
82767
82777
  if (hT.isBelongs(t)) return /* @__PURE__ */ h($U, {
82768
82778
  colorValues: t.colorValues,
82769
- isSelected: v,
82779
+ isSelected: y,
82770
82780
  status: o,
82771
82781
  diagnose: l,
82772
- onClick: S,
82782
+ onClick: C,
82773
82783
  shift: m,
82774
82784
  isOpen: s.has(g),
82775
- onOpen: x
82776
- }, b("fibers"));
82785
+ onOpen: S
82786
+ }, x("fibers"));
82777
82787
  if (xT.isBelongs(t)) return /* @__PURE__ */ h(_W, {
82778
82788
  type: t.feature,
82779
- isSelected: v,
82789
+ isSelected: y,
82780
82790
  status: o,
82781
82791
  diagnose: l,
82782
- onClick: S,
82792
+ onClick: C,
82783
82793
  shift: m,
82784
82794
  isOpen: s.has(g),
82785
- onOpen: x
82786
- }, b("security"));
82795
+ onOpen: S
82796
+ }, x("security"));
82787
82797
  if (CT.isBelongs(t)) {
82788
82798
  let n = (t) => `${e}${t}`, c = (e, t) => {
82789
82799
  r([{
@@ -82797,27 +82807,27 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82797
82807
  path: n(t),
82798
82808
  checkResult: o,
82799
82809
  location: e
82800
- }]), f = u(p, t.type), _ = u(t.reference.location, t.reference.type), y = d(p, t.type), C = d(t.reference.location, t.reference.type);
82810
+ }]), f = u(p, t.type), _ = u(t.reference.location, t.reference.type), v = d(p, t.type), b = d(t.reference.location, t.reference.type);
82801
82811
  return /* @__PURE__ */ h(wW, {
82802
82812
  type: t.type,
82803
- isSelected: v,
82813
+ isSelected: y,
82804
82814
  status: o,
82805
82815
  diagnose: l,
82806
82816
  reference: t.reference,
82807
82817
  onResultClick: f,
82808
82818
  onReferenceClick: _,
82809
- isResultSelected: y,
82810
- isReferenceSelected: C,
82811
- onClick: S,
82819
+ isResultSelected: v,
82820
+ isReferenceSelected: b,
82821
+ onClick: C,
82812
82822
  shift: m + 20,
82813
82823
  isOpen: s.has(g),
82814
- onOpen: x
82815
- }, b("text"));
82824
+ onOpen: S
82825
+ }, x("text"));
82816
82826
  }
82817
82827
  })
82818
82828
  })
82819
- }), FW = ({ group: e, checks: t, status: n, onSelect: r, selections: i, page: a, groupId: o, imageViewer: s, shift: c = 0, type: l }) => {
82820
- let { openFields: u, addOpenField: d, removeOpenField: f } = Qt(), p = t.reduce((t, n) => (n.location && VU(n.location.rect) && t.push({
82829
+ }), FW = ({ group: e, checks: t, status: n, onSelect: r, selections: i, page: a, groupId: o, imageViewer: s, shift: c = 0, type: l, downloadImage: u }) => {
82830
+ let { openFields: d, addOpenField: f, removeOpenField: p } = Qt(), m = t.reduce((t, n) => (n.location && VU(n.location.rect) && t.push({
82821
82831
  page: a,
82822
82832
  path: String(e),
82823
82833
  checkResult: n.checkResult,
@@ -82825,20 +82835,20 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82825
82835
  light: n.location.light || KU(e),
82826
82836
  rect: n.location.rect
82827
82837
  }
82828
- }), t), []), m = HU(i, p), g = (e) => u.authenticity.has(e) ? f("authenticity", e) : d("authenticity", e), _ = () => {
82829
- if (!p.length) return g(o);
82830
- let e = u.authenticity.has(o);
82831
- if ((!m || e) && r(p), !e) return d("authenticity", o);
82832
- m && f("authenticity", o);
82833
- }, v = (e, t, n) => {
82834
- if (!n.length) return g(t);
82835
- let i = u.authenticity.has(t);
82836
- if (m && p.length > 1) {
82837
- r(n), d("authenticity", t);
82838
+ }), t), []), g = HU(i, m), _ = (e) => d.authenticity.has(e) ? p("authenticity", e) : f("authenticity", e), v = () => {
82839
+ if (!m.length) return _(o);
82840
+ let e = d.authenticity.has(o);
82841
+ if ((!g || e) && r(m), !e) return f("authenticity", o);
82842
+ g && p("authenticity", o);
82843
+ }, y = (e, t, n) => {
82844
+ if (!n.length) return _(t);
82845
+ let i = d.authenticity.has(t);
82846
+ if (g && m.length > 1) {
82847
+ r(n), f("authenticity", t);
82838
82848
  return;
82839
82849
  }
82840
- (!e || i) && r(n), i ? e && f("authenticity", t) : d("authenticity", t);
82841
- }, y = t.length > 0;
82850
+ (!e || i) && r(n), i ? e && p("authenticity", t) : f("authenticity", t);
82851
+ }, b = t.length > 0;
82842
82852
  return /* @__PURE__ */ h(PW, {
82843
82853
  group: e,
82844
82854
  checks: t,
@@ -82847,23 +82857,24 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82847
82857
  selections: i,
82848
82858
  page: a,
82849
82859
  groupId: o,
82850
- shift: y ? c : 0,
82860
+ shift: b ? c : 0,
82851
82861
  type: l,
82852
- openFields: u.authenticity,
82853
- onOpen: g,
82854
- onGroupClick: _,
82855
- onSubGroupClick: v,
82856
- collapse: y,
82857
- isSelected: m,
82858
- imageViewer: s
82862
+ openFields: d.authenticity,
82863
+ onOpen: _,
82864
+ onGroupClick: v,
82865
+ onSubGroupClick: y,
82866
+ collapse: b,
82867
+ isSelected: g,
82868
+ imageViewer: s,
82869
+ downloadImage: u
82859
82870
  });
82860
82871
  };
82861
82872
  q.addResourceBundle("ru-RU", "c978bfc734ce43cb57f59e262c5b970c", { page: "Страница" }), q.addResourceBundle("en-US", "c978bfc734ce43cb57f59e262c5b970c", { page: "Page" }), q.addResourceBundle("lv-LV", "c978bfc734ce43cb57f59e262c5b970c", { page: "Lappuse" }), q.addResourceBundle("de-DE", "c978bfc734ce43cb57f59e262c5b970c", { page: "Seite" }), q.addResourceBundle("pl-PL", "c978bfc734ce43cb57f59e262c5b970c", { page: "Strona" }), q.addResourceBundle("it-IT", "c978bfc734ce43cb57f59e262c5b970c", { page: "Pagina" }), q.addResourceBundle("hu-HU", "c978bfc734ce43cb57f59e262c5b970c", { page: "Oldal" }), q.addResourceBundle("zh-Hans", "c978bfc734ce43cb57f59e262c5b970c", { page: "页" }), q.addResourceBundle("zh-Hant", "c978bfc734ce43cb57f59e262c5b970c", { page: "頁" }), q.addResourceBundle("sk-SK", "c978bfc734ce43cb57f59e262c5b970c", { page: "Strana" }), q.addResourceBundle("uk-UA", "c978bfc734ce43cb57f59e262c5b970c", { page: "Сторінка" }), q.addResourceBundle("fr-FR", "c978bfc734ce43cb57f59e262c5b970c", { page: "Page" }), q.addResourceBundle("es-ES", "c978bfc734ce43cb57f59e262c5b970c", { page: "Página" }), q.addResourceBundle("pt-PT", "c978bfc734ce43cb57f59e262c5b970c", { page: "Página" }), q.addResourceBundle("ar-AE", "c978bfc734ce43cb57f59e262c5b970c", { page: "صفحة" }), q.addResourceBundle("nl-NL", "c978bfc734ce43cb57f59e262c5b970c", { page: "Pagina" }), q.addResourceBundle("id-ID", "c978bfc734ce43cb57f59e262c5b970c", { page: "Halaman" }), q.addResourceBundle("vi-VN", "c978bfc734ce43cb57f59e262c5b970c", { page: "Trang" }), q.addResourceBundle("ko-KR", "c978bfc734ce43cb57f59e262c5b970c", { page: "페이지" }), q.addResourceBundle("ms-MY", "c978bfc734ce43cb57f59e262c5b970c", { page: "Halaman" }), q.addResourceBundle("ro-RO", "c978bfc734ce43cb57f59e262c5b970c", { page: "Pagina" }), q.addResourceBundle("el-GR", "c978bfc734ce43cb57f59e262c5b970c", { page: "Σελίδα" }), q.addResourceBundle("tr-TR", "c978bfc734ce43cb57f59e262c5b970c", { page: "Sayfa" }), q.addResourceBundle("ja-JP", "c978bfc734ce43cb57f59e262c5b970c", { page: "ページ" }), q.addResourceBundle("cs-CZ", "c978bfc734ce43cb57f59e262c5b970c", { page: "Strana" }), q.addResourceBundle("th-TH", "c978bfc734ce43cb57f59e262c5b970c", { page: "หน้า" }), q.addResourceBundle("hi-IN", "c978bfc734ce43cb57f59e262c5b970c", { page: "पृष्ठ" }), q.addResourceBundle("bn-BD", "c978bfc734ce43cb57f59e262c5b970c", { page: "পেইজ" }), q.addResourceBundle("he-IL", "c978bfc734ce43cb57f59e262c5b970c", { page: "דף" }), q.addResourceBundle("fi-FI", "c978bfc734ce43cb57f59e262c5b970c", { page: "Sivu" }), q.addResourceBundle("sv-SE", "c978bfc734ce43cb57f59e262c5b970c", { page: "Sida" }), q.addResourceBundle("da-DK", "c978bfc734ce43cb57f59e262c5b970c", { page: "Side" }), q.addResourceBundle("hr-HR", "c978bfc734ce43cb57f59e262c5b970c", { page: "Stranica" }), q.addResourceBundle("no-NO", "c978bfc734ce43cb57f59e262c5b970c", { page: "Side" }), q.addResourceBundle("uz-Latn", "c978bfc734ce43cb57f59e262c5b970c", { page: "Sahifa" }), q.addResourceBundle("hy-AM", "c978bfc734ce43cb57f59e262c5b970c", { page: "Էջ" }), q.addResourceBundle("ky-KG", "c978bfc734ce43cb57f59e262c5b970c", { page: "Бет" }), q.addResourceBundle("ku-Arab", "c978bfc734ce43cb57f59e262c5b970c", { page: "پەڕە" }), q.addResourceBundle("tg-TJ", "c978bfc734ce43cb57f59e262c5b970c", { page: "Саҳифа" });
82862
82873
  var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82863
82874
  scroll: "_scroll_wfx4h_1",
82864
82875
  authenticity: "_authenticity_wfx4h_7"
82865
- }, RW = 255, zW = ({ authenticity: e, documentIdentification: t, selections: n, onSelect: r, onOpen: i, openFields: a, imageViewer: o, initialScrollPosition: s, onScrollTop: c }) => {
82866
- let { t: l } = IW();
82876
+ }, RW = 255, zW = ({ authenticity: e, documentIdentification: t, selections: n, onSelect: r, onOpen: i, openFields: a, imageViewer: o, initialScrollPosition: s, onScrollTop: c, downloadImage: l }) => {
82877
+ let { t: u } = IW();
82867
82878
  return /* @__PURE__ */ h(FH, {
82868
82879
  extendedItemSelector: "[data-extended-scroll]",
82869
82880
  extendedScrollDelay: 200,
@@ -82881,10 +82892,11 @@ var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82881
82892
  selections: n,
82882
82893
  type: "nested",
82883
82894
  imageViewer: o,
82884
- groupId: String(s)
82895
+ groupId: String(s),
82896
+ downloadImage: l
82885
82897
  }, t))
82886
82898
  }) : e.map(({ page: e, groups: s }, c) => {
82887
- let u = String(c);
82899
+ let d = String(c);
82888
82900
  return e === RW ? s.map(({ group: t, checks: i }) => /* @__PURE__ */ h(FW, {
82889
82901
  checks: i,
82890
82902
  group: t,
@@ -82892,11 +82904,12 @@ var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82892
82904
  onSelect: r,
82893
82905
  selections: n,
82894
82906
  imageViewer: o,
82895
- groupId: u
82907
+ groupId: d,
82908
+ downloadImage: l
82896
82909
  }, t)) : /* @__PURE__ */ h(oO, {
82897
- head: /* @__PURE__ */ h(G, { children: t.find(({ pageIndex: t }) => t === e)?.documentName || `${l("page")} ${e + 1}` }),
82898
- open: a.has(u),
82899
- onOpen: () => i(e, u),
82910
+ head: /* @__PURE__ */ h(G, { children: t.find(({ pageIndex: t }) => t === e)?.documentName || `${u("page")} ${e + 1}` }),
82911
+ open: a.has(d),
82912
+ onOpen: () => i(e, d),
82900
82913
  openClickArea: "head",
82901
82914
  children: /* @__PURE__ */ h("div", {
82902
82915
  className: LW.authenticity,
@@ -82910,28 +82923,30 @@ var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82910
82923
  shift: 16,
82911
82924
  type: "nested",
82912
82925
  imageViewer: o,
82913
- groupId: `${u}.${s}`
82926
+ groupId: `${d}.${s}`,
82927
+ downloadImage: l
82914
82928
  }, t))
82915
82929
  })
82916
82930
  }, e);
82917
82931
  })
82918
82932
  });
82919
- }, BW = ({ authenticity: e, documentIdentification: t, onSelect: n, imageViewer: r, initialScrollPosition: i }) => {
82920
- let { setScroll: a } = rn(), { openFields: o, addOpenField: s, removeOpenField: l, resetOpenField: u } = Qt(), { selections: d } = le(), { setPage: f } = oe(), p = (e, t) => {
82921
- o.authenticity.has(t) ? l("authenticity", t) : (f(e), s("authenticity", t));
82922
- }, m = a ? (e) => a("authenticity", e) : void 0;
82933
+ }, BW = ({ authenticity: e, documentIdentification: t, onSelect: n, imageViewer: r, initialScrollPosition: i, downloadImage: a }) => {
82934
+ let { setScroll: o } = rn(), { openFields: s, addOpenField: l, removeOpenField: u, resetOpenField: d } = Qt(), { selections: f } = le(), { setPage: p } = oe(), m = (e, t) => {
82935
+ s.authenticity.has(t) ? u("authenticity", t) : (p(e), l("authenticity", t));
82936
+ }, g = o ? (e) => o("authenticity", e) : void 0;
82923
82937
  return c(() => () => {
82924
- u("authenticity");
82938
+ d("authenticity");
82925
82939
  }, [e]), /* @__PURE__ */ h(zW, {
82926
82940
  authenticity: e,
82927
82941
  documentIdentification: t,
82928
- selections: d,
82942
+ selections: f,
82929
82943
  onSelect: n,
82930
82944
  imageViewer: r,
82931
82945
  initialScrollPosition: i,
82932
- onScrollTop: m,
82933
- openFields: o.authenticity,
82934
- onOpen: p
82946
+ onScrollTop: g,
82947
+ openFields: s.authenticity,
82948
+ onOpen: m,
82949
+ downloadImage: a
82935
82950
  });
82936
82951
  };
82937
82952
  q.addResourceBundle("ru-RU", "dc87716ea86ebf584e6de7d3249457b2", {
@@ -83912,26 +83927,26 @@ var cG = () => Qk("0b9710958905a1fef033fa8881ba3e7a"), lG = {
83912
83927
  items: e,
83913
83928
  onTabChange: t
83914
83929
  })
83915
- }), NG = ({ imageViewer: e, className: t, initialTab: n, onTabChange: r, initialScrollPosition: i, onScrollTop: a, openFields: o, onOpenFieldsChange: s }) => {
83916
- let { t: l } = GU(), { response: d } = re(), { tabID: f = n, setTabID: p } = fe(), { setSelections: m } = le();
83930
+ }), NG = ({ imageViewer: e, className: t, initialTab: n, onTabChange: r, initialScrollPosition: i, onScrollTop: a, openFields: o, onOpenFieldsChange: s, downloadImage: l }) => {
83931
+ let { t: d } = GU(), { response: f } = re(), { tabID: p = n, setTabID: m } = fe(), { setSelections: g } = le();
83917
83932
  c(() => () => {
83918
- p(n ?? BU.TEXT_DATA);
83919
- }, [d]);
83920
- let { textData: g, imageQuality: _, authenticity: v, documentIdentification: y } = u(() => d ? {
83921
- textData: LE(d).filter((e) => e.value.trim() || e.checkResult !== A.WAS_NOT_DONE),
83922
- imageQuality: nE(d).sort((e, t) => e.pageIndex - t.pageIndex),
83923
- authenticity: AT(d).filter(({ groups: e }) => e.length > 0),
83924
- documentIdentification: kE(d).sort((e, t) => e.pageIndex - t.pageIndex)
83933
+ m(n ?? BU.TEXT_DATA);
83934
+ }, [f]);
83935
+ let { textData: _, imageQuality: v, authenticity: y, documentIdentification: b } = u(() => f ? {
83936
+ textData: LE(f).filter((e) => e.value.trim() || e.checkResult !== A.WAS_NOT_DONE),
83937
+ imageQuality: nE(f).sort((e, t) => e.pageIndex - t.pageIndex),
83938
+ authenticity: AT(f).filter(({ groups: e }) => e.length > 0),
83939
+ documentIdentification: kE(f).sort((e, t) => e.pageIndex - t.pageIndex)
83925
83940
  } : {
83926
83941
  textData: [],
83927
83942
  imageQuality: [],
83928
83943
  authenticity: [],
83929
83944
  documentIdentification: []
83930
- }, [d]), b = u(() => ({
83931
- authenticity: UU(v),
83932
- imageQuality: WU(_)
83933
- }), [v, _]), x = (e) => {
83934
- m((t) => {
83945
+ }, [f]), x = u(() => ({
83946
+ authenticity: UU(y),
83947
+ imageQuality: WU(v)
83948
+ }), [y, v]), S = (e) => {
83949
+ g((t) => {
83935
83950
  let n = t.map((e) => JSON.stringify(e)), r = [...t];
83936
83951
  if (e.length === 1) {
83937
83952
  let t = JSON.stringify(e[0]);
@@ -83941,63 +83956,64 @@ var cG = () => Qk("0b9710958905a1fef033fa8881ba3e7a"), lG = {
83941
83956
  return e.every((e) => n.includes(JSON.stringify(e))) ? r.filter((e) => !t.includes(JSON.stringify(e))) : e;
83942
83957
  }
83943
83958
  });
83944
- }, S = (e) => {
83945
- r?.(e), p(e), m([]);
83946
- }, C = u(() => {
83959
+ }, C = (e) => {
83960
+ r?.(e), m(e), g([]);
83961
+ }, w = u(() => {
83947
83962
  let t = [];
83948
- return g.length && t.push({
83963
+ return _.length && t.push({
83949
83964
  id: BU.TEXT_DATA,
83950
- label: l("textFields"),
83965
+ label: d("textFields"),
83951
83966
  children: /* @__PURE__ */ h(AG, {
83952
- textData: g,
83953
- onSelect: x,
83967
+ textData: _,
83968
+ onSelect: S,
83954
83969
  initialScrollPosition: i?.textData
83955
83970
  })
83956
- }), v.length && t.push({
83971
+ }), y.length && t.push({
83957
83972
  id: BU.AUTHENTICITY,
83958
- label: l("securityChecks"),
83973
+ label: d("securityChecks"),
83959
83974
  children: /* @__PURE__ */ h(BW, {
83960
- authenticity: v,
83961
- documentIdentification: y,
83962
- onSelect: x,
83975
+ authenticity: y,
83976
+ documentIdentification: b,
83977
+ onSelect: S,
83963
83978
  imageViewer: e,
83964
- initialScrollPosition: i?.authenticity
83979
+ initialScrollPosition: i?.authenticity,
83980
+ downloadImage: l
83965
83981
  })
83966
- }), _.length && t.push({
83982
+ }), v.length && t.push({
83967
83983
  id: BU.IMAGE_QUALITY,
83968
- label: l("imageQuality"),
83984
+ label: d("imageQuality"),
83969
83985
  children: /* @__PURE__ */ h(nG, {
83970
- imageQuality: _,
83971
- documentIdentification: y,
83972
- onSelect: x,
83986
+ imageQuality: v,
83987
+ documentIdentification: b,
83988
+ onSelect: S,
83973
83989
  initialScrollPosition: i?.imageQuality
83974
83990
  })
83975
- }), y.length && t.push({
83991
+ }), b.length && t.push({
83976
83992
  id: BU.IDENTIFICATION,
83977
- label: l("documentType"),
83993
+ label: d("documentType"),
83978
83994
  children: /* @__PURE__ */ h(KW, {
83979
- documentIdentification: y,
83995
+ documentIdentification: b,
83980
83996
  initialScrollPosition: i?.identification
83981
83997
  })
83982
83998
  }), t;
83983
83999
  }, [
83984
- g,
83985
- v,
83986
84000
  _,
83987
84001
  y,
84002
+ v,
84003
+ b,
83988
84004
  i,
83989
84005
  e,
83990
- l
84006
+ d
83991
84007
  ]);
83992
- return C.length ? /* @__PURE__ */ h(Zt, {
84008
+ return w.length ? /* @__PURE__ */ h(Zt, {
83993
84009
  onOpenFieldsChange: s,
83994
- openFields: o || b,
84010
+ openFields: o || x,
83995
84011
  children: /* @__PURE__ */ h(nn, {
83996
84012
  onScrollTop: a,
83997
84013
  children: /* @__PURE__ */ h(MG, {
83998
- tab: f,
83999
- onTabChange: S,
84000
- tabs: C,
84014
+ tab: p,
84015
+ onTabChange: C,
84016
+ tabs: w,
84001
84017
  className: t
84002
84018
  })
84003
84019
  })
@@ -84019,16 +84035,18 @@ var cG = () => Qk("0b9710958905a1fef033fa8881ba3e7a"), lG = {
84019
84035
  content: "_content_10kpe_11",
84020
84036
  tabs: "_tabs_10kpe_15",
84021
84037
  images: "_images_10kpe_18"
84022
- }, RG = ({ imageViewer: e }) => /* @__PURE__ */ g("div", {
84038
+ }, RG = ({ imageViewer: e, downloadImage: t }) => /* @__PURE__ */ g("div", {
84023
84039
  className: LG.container,
84024
84040
  children: [/* @__PURE__ */ h(IG, {}), /* @__PURE__ */ g("div", {
84025
84041
  className: LG.content,
84026
84042
  children: [/* @__PURE__ */ h(zU, {
84027
84043
  className: LG.images,
84028
- imageViewer: e
84044
+ imageViewer: e,
84045
+ downloadImage: t
84029
84046
  }), /* @__PURE__ */ h(NG, {
84030
84047
  className: LG.tabs,
84031
- imageViewer: e
84048
+ imageViewer: e,
84049
+ downloadImage: t
84032
84050
  })]
84033
84051
  })]
84034
84052
  });
@@ -85363,7 +85381,7 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85363
85381
  }, DK = {
85364
85382
  text: "_text_c8ml4_1",
85365
85383
  image: "_image_c8ml4_5"
85366
- }, OK = ({ name: e, url: t, imageViewer: n = !0 }) => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(G, {
85384
+ }, OK = ({ name: e, url: t, imageViewer: n = !0, downloadImage: r }) => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(G, {
85367
85385
  className: DK.text,
85368
85386
  size: "12x160",
85369
85387
  uppercase: !0,
@@ -85375,7 +85393,7 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85375
85393
  draggable: !1,
85376
85394
  magnifierImgBorderRadius: 4,
85377
85395
  magnifier: !0,
85378
- download: !0,
85396
+ download: r,
85379
85397
  viewer: n
85380
85398
  })] }), kK = /* @__PURE__ */ function(e) {
85381
85399
  return e.NONE = "NONE", e.SOURCE = "SOURCE", e.LIGHT = "LIGHT", e.SOURCE_LIGHT = "SOURCE_LIGHT", e;
@@ -85389,31 +85407,33 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85389
85407
  case kK.SOURCE_LIGHT: return `${$.getGraphicFieldType(e)} (${$.getSource(t)}, ${$.getLightsLabel(n)})`;
85390
85408
  default: return $.getGraphicFieldType(e);
85391
85409
  }
85392
- }, MK = { container: "_container_b06p4_1" }, NK = ({ images: e, imageViewer: t }) => (Qk(), /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ h("div", {
85410
+ }, MK = { container: "_container_b06p4_1" }, NK = ({ images: e, imageViewer: t, downloadImage: n }) => (Qk(), /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ h("div", {
85393
85411
  className: MK.container,
85394
- children: Object.entries(e).reduce((e, [n, r]) => {
85395
- let i = AK(r);
85396
- return r.forEach(({ src: r, source: a, light: o }, s) => {
85397
- let c = jK(n, a, o, i);
85398
- r && e.push(/* @__PURE__ */ h(OK, {
85399
- name: c,
85400
- url: r,
85401
- imageViewer: t
85402
- }, n + s));
85412
+ children: Object.entries(e).reduce((e, [r, i]) => {
85413
+ let a = AK(i);
85414
+ return i.forEach(({ src: i, source: o, light: s }, c) => {
85415
+ let l = jK(r, o, s, a);
85416
+ i && e.push(/* @__PURE__ */ h(OK, {
85417
+ name: l,
85418
+ url: i,
85419
+ imageViewer: t,
85420
+ downloadImage: n
85421
+ }, r + c));
85403
85422
  }), e;
85404
85423
  }, [])
85405
- }) })), PK = { container: "_container_1hyjc_1" }, FK = ({ images: e, imageViewer: t }) => /* @__PURE__ */ g("div", {
85424
+ }) })), PK = { container: "_container_1hyjc_1" }, FK = ({ images: e, imageViewer: t, downloadImage: n }) => /* @__PURE__ */ g("div", {
85406
85425
  className: PK.container,
85407
85426
  children: [/* @__PURE__ */ h(EK, {}), /* @__PURE__ */ h(NK, {
85408
85427
  images: e,
85409
- imageViewer: t
85428
+ imageViewer: t,
85429
+ downloadImage: n
85410
85430
  })]
85411
- }), IK = ({ imageViewer: e }) => {
85412
- let { response: t } = re();
85413
- if (!t) return null;
85414
- let n = KT(t).filter((e) => e.fieldType !== za.DOCUMENT_FRONT);
85415
- return n.length ? /* @__PURE__ */ h(FK, {
85416
- images: n.reduce((e, { pages: t, light: n, fieldType: r }) => {
85431
+ }), IK = ({ imageViewer: e, downloadImage: t }) => {
85432
+ let { response: n } = re();
85433
+ if (!n) return null;
85434
+ let r = KT(n).filter((e) => e.fieldType !== za.DOCUMENT_FRONT);
85435
+ return r.length ? /* @__PURE__ */ h(FK, {
85436
+ images: r.reduce((e, { pages: t, light: n, fieldType: r }) => {
85417
85437
  let i = t.map(({ src: e, source: t }) => ({
85418
85438
  light: n,
85419
85439
  source: t,
@@ -85421,7 +85441,8 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85421
85441
  }));
85422
85442
  return e[r] ? e[r].push(...i) : e[r] = i, e;
85423
85443
  }, {}),
85424
- imageViewer: e
85444
+ imageViewer: e,
85445
+ downloadImage: t
85425
85446
  }) : null;
85426
85447
  }, LK = ({ response: e, request: t, children: n, language: r }) => {
85427
85448
  let i = eA(r);
@@ -86088,51 +86109,52 @@ var rq = () => Qk("90a425db4934211fafe21693ab2e9a39"), iq = {
86088
86109
  text: "_text_1wz9f_1",
86089
86110
  "source-content": "_source-content_1wz9f_5",
86090
86111
  rate: "_rate_1wz9f_28"
86091
- }, aq = ({ source: e, image: t, checkResult: n, similarity: r, imageViewer: i = !0 }) => {
86092
- let { t: a } = rq(), o = $.getPortraitComparisonSource(e);
86112
+ }, aq = ({ source: e, image: t, checkResult: n, similarity: r, imageViewer: i = !0, downloadImage: a }) => {
86113
+ let { t: o } = rq(), s = $.getPortraitComparisonSource(e);
86093
86114
  return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(G, {
86094
86115
  className: iq.text,
86095
86116
  size: "12x160",
86096
86117
  uppercase: !0,
86097
- children: o
86118
+ children: s
86098
86119
  }), /* @__PURE__ */ g("div", {
86099
86120
  className: iq["source-content"],
86100
86121
  children: [t ? /* @__PURE__ */ h(fA, {
86101
86122
  src: `data:image/jpeg;base64,${t}`,
86102
- alt: String(o),
86123
+ alt: String(s),
86103
86124
  magnifierImgBorderRadius: 4,
86104
86125
  draggable: !1,
86105
86126
  magnifier: !0,
86106
86127
  viewer: i,
86107
- download: !0
86128
+ download: a
86108
86129
  }) : /* @__PURE__ */ h(VH, {
86109
86130
  type: "photo",
86110
86131
  className: iq["default-image"]
86111
86132
  }), n !== void 0 && r !== void 0 && /* @__PURE__ */ g("span", {
86112
86133
  className: iq.rate,
86113
- children: [qH(n), /* @__PURE__ */ h(G, { children: `${a("rate")} ${r}%` })]
86134
+ children: [qH(n), /* @__PURE__ */ h(G, { children: `${o("rate")} ${r}%` })]
86114
86135
  })]
86115
86136
  })] });
86116
- }, oq = { result: "_result_1sdjd_1" }, sq = ({ source: e, image: t, comparable: n, imageViewer: r }) => /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ g("div", {
86137
+ }, oq = { result: "_result_1sdjd_1" }, sq = ({ source: e, image: t, comparable: n, imageViewer: r, downloadImage: i }) => /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ g("div", {
86117
86138
  className: oq.result,
86118
86139
  children: [/* @__PURE__ */ h(aq, {
86119
86140
  source: e,
86120
86141
  image: t,
86121
86142
  imageViewer: r
86122
- }), n.map(({ source: e, image: t, checkResult: n, similarity: i }, a) => /* @__PURE__ */ h(aq, {
86143
+ }), n.map(({ source: e, image: t, checkResult: n, similarity: a }, o) => /* @__PURE__ */ h(aq, {
86123
86144
  source: e,
86124
86145
  image: t,
86125
86146
  checkResult: n,
86126
- similarity: i,
86127
- imageViewer: r
86128
- }, t || a))]
86147
+ similarity: a,
86148
+ imageViewer: r,
86149
+ downloadImage: i
86150
+ }, t || o))]
86129
86151
  }) });
86130
86152
  q.addResourceBundle("ru-RU", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Сервис не отвечает" }), q.addResourceBundle("en-US", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "The service does not respond" }), q.addResourceBundle("lv-LV", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "The service does not respond" }), q.addResourceBundle("de-DE", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Keine Rückmeldung vom Service" }), q.addResourceBundle("pl-PL", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Serwis nie odpowiada" }), q.addResourceBundle("it-IT", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Il servizio non risponde" }), q.addResourceBundle("hu-HU", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "A szolgáltatás nem válaszol" }), q.addResourceBundle("zh-Hans", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "服务没有回应" }), q.addResourceBundle("zh-Hant", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "服務沒有響應" }), q.addResourceBundle("sk-SK", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Služba nereaguje" }), q.addResourceBundle("uk-UA", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Сервіс не відповідає" }), q.addResourceBundle("fr-FR", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Le service ne répond pas" }), q.addResourceBundle("es-ES", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Servicio no responde" }), q.addResourceBundle("pt-PT", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "O serviço não responde" }), q.addResourceBundle("ar-AE", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "الخدمة لا تستجيب" }), q.addResourceBundle("nl-NL", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "De dienst reageert niet" }), q.addResourceBundle("id-ID", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Layanan tidak merepsons" }), q.addResourceBundle("vi-VN", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Dịch vụ không phản hồi" }), q.addResourceBundle("ko-KR", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "서비스가 응답하지 않습니다" }), q.addResourceBundle("ms-MY", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Perkhidmatan tidak memberi maklum balas" }), q.addResourceBundle("ro-RO", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Serviciul nu răspunde" }), q.addResourceBundle("el-GR", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Η υπηρεσία δεν ανταποκρίνεται" }), q.addResourceBundle("tr-TR", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Hizmet yanıt vermiyor" }), q.addResourceBundle("ja-JP", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "サービスは応答しません" }), q.addResourceBundle("cs-CZ", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Služba neodpovídá" }), q.addResourceBundle("th-TH", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "บริการไม่ตอบสนอง" }), q.addResourceBundle("hi-IN", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "सेवा जवाब नहीं देती है" }), q.addResourceBundle("bn-BD", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "পরিষেবাটি সাড়া দেয়নি" }), q.addResourceBundle("he-IL", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "אין תגובה מהשירות" }), q.addResourceBundle("fi-FI", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Palvelu ei vastaa" }), q.addResourceBundle("sv-SE", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Tjänsten svarar inte" }), q.addResourceBundle("da-DK", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Servicen fungerer ikke" }), q.addResourceBundle("hr-HR", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Usluga ne odgovara" }), q.addResourceBundle("no-NO", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Tjenesten svarer ikke" }), q.addResourceBundle("uz-Latn", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Xizmat javob bermaydi" }), q.addResourceBundle("hy-AM", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Ծառայությունը չի պատասխանում" }), q.addResourceBundle("ky-KG", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Сервис жооп бербей жатат" }), q.addResourceBundle("ku-Arab", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "خزمەتگوزاری وەڵام ناداتەوە" }), q.addResourceBundle("tg-TJ", "aac8d134d61c1e4793fd82a4718ac196", { serviceNotRespond: "Хизматрасонӣ посух намедиҳад" });
86131
86153
  var cq = () => Qk("aac8d134d61c1e4793fd82a4718ac196"), lq = {
86132
86154
  comparison: "_comparison_5medb_1",
86133
86155
  results: "_results_5medb_20"
86134
- }, uq = ({ status: e, name: t, comparisons: n, showDiagnose: r, imageViewer: i }) => {
86135
- let { t: a } = cq();
86156
+ }, uq = ({ status: e, name: t, comparisons: n, showDiagnose: r, imageViewer: i, downloadImage: a }) => {
86157
+ let { t: o } = cq();
86136
86158
  return /* @__PURE__ */ g("div", {
86137
86159
  className: lq.comparison,
86138
86160
  children: [/* @__PURE__ */ h(nq, {
@@ -86143,36 +86165,39 @@ var cq = () => Qk("aac8d134d61c1e4793fd82a4718ac196"), lq = {
86143
86165
  className: lq.results,
86144
86166
  children: [r && /* @__PURE__ */ h(GH, { children: /* @__PURE__ */ h(G, {
86145
86167
  size: "14x157",
86146
- children: a("serviceNotRespond")
86168
+ children: o("serviceNotRespond")
86147
86169
  }) }), n.map(({ source: e, image: t, comparable: n }, r) => /* @__PURE__ */ h(sq, {
86148
86170
  source: e,
86149
86171
  image: t,
86150
86172
  comparable: n,
86151
- imageViewer: i
86173
+ imageViewer: i,
86174
+ downloadImage: a
86152
86175
  }, t || r))]
86153
86176
  })]
86154
86177
  });
86155
- }, dq = { comparisons: "_comparisons_pgp5t_1" }, fq = ({ portraitsComparison: e, portraitsStatus: t, showDiagnose: n, imageViewer: r }) => {
86156
- let { t: i } = eq();
86178
+ }, dq = { comparisons: "_comparisons_pgp5t_1" }, fq = ({ portraitsComparison: e, portraitsStatus: t, showDiagnose: n, imageViewer: r, downloadImage: i }) => {
86179
+ let { t: a } = eq();
86157
86180
  return /* @__PURE__ */ h("div", {
86158
86181
  className: dq.comparisons,
86159
86182
  children: /* @__PURE__ */ h(uq, {
86160
86183
  status: t,
86161
- name: i("portraitComparison"),
86184
+ name: a("portraitComparison"),
86162
86185
  comparisons: e,
86163
86186
  showDiagnose: n,
86164
- imageViewer: r
86187
+ imageViewer: r,
86188
+ downloadImage: i
86165
86189
  })
86166
86190
  });
86167
- }, pq = ({ imageViewer: e }) => {
86168
- let { response: t } = re();
86169
- if (!t) return null;
86170
- let n = IT(t), r = wE(t), i = n.every(({ diagnose: e }) => e === k.PORTRAIT_COMPARISON_NO_SERVICE_REPLY);
86171
- return n.length ? /* @__PURE__ */ h(fq, {
86172
- portraitsComparison: n,
86173
- portraitsStatus: r.summary.portrait,
86191
+ }, pq = ({ imageViewer: e, downloadImage: t }) => {
86192
+ let { response: n } = re();
86193
+ if (!n) return null;
86194
+ let r = IT(n), i = wE(n), a = r.every(({ diagnose: e }) => e === k.PORTRAIT_COMPARISON_NO_SERVICE_REPLY);
86195
+ return r.length ? /* @__PURE__ */ h(fq, {
86196
+ portraitsComparison: r,
86197
+ portraitsStatus: i.summary.portrait,
86174
86198
  imageViewer: e,
86175
- showDiagnose: i
86199
+ showDiagnose: a,
86200
+ downloadImage: t
86176
86201
  }) : null;
86177
86202
  }, mq = (e) => Number.isInteger(e) ? e : parseFloat(e.toFixed(2)), hq = {
86178
86203
  list: "_list_1jb30_1",