@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.
@@ -80784,19 +80784,19 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80784
80784
  items: "_items_l6jk0_35",
80785
80785
  item: "_item_l6jk0_35",
80786
80786
  text: "_text_l6jk0_47"
80787
- }, 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 }) => {
80788
- let { t: f } = lU(), p = c.value ? $.getSex(c.value) : "", m = o.value ? `${f("age")}: ${o.value}` : "";
80787
+ }, 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 }) => {
80788
+ let { t: p } = lU(), m = c.value ? $.getSex(c.value) : "", _ = o.value ? `${p("age")}: ${o.value}` : "";
80789
80789
  return /* @__PURE__ */ g("div", {
80790
80790
  className: (0, yD.default)(uU.container, d),
80791
80791
  children: [u && /* @__PURE__ */ h("div", {
80792
80792
  className: uU.image,
80793
80793
  children: a ? /* @__PURE__ */ h(fA, {
80794
80794
  src: a,
80795
- alt: f("portrait"),
80795
+ alt: p("portrait"),
80796
80796
  draggable: !1,
80797
80797
  viewer: l,
80798
80798
  magnifier: !0,
80799
- download: !0,
80799
+ download: f,
80800
80800
  magnifierImgBorderRadius: 6
80801
80801
  }) : /* @__PURE__ */ h(VH, { type: "photo" })
80802
80802
  }), /* @__PURE__ */ g("div", {
@@ -80808,7 +80808,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80808
80808
  className: uU.title,
80809
80809
  children: e.value.replace(/\^/g, " ")
80810
80810
  }),
80811
- (p || m) && /* @__PURE__ */ h(G, { children: `${p}${p && m ? ", " : ""}${m}` }),
80811
+ (m || _) && /* @__PURE__ */ h(G, { children: `${m}${m && _ ? ", " : ""}${_}` }),
80812
80812
  /* @__PURE__ */ g("div", {
80813
80813
  className: uU.items,
80814
80814
  children: [
@@ -80818,7 +80818,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80818
80818
  className: uU.text,
80819
80819
  size: "12x160",
80820
80820
  uppercase: !0,
80821
- children: f("dateOfBirth")
80821
+ children: p("dateOfBirth")
80822
80822
  }), /* @__PURE__ */ h(G, { children: r.value })]
80823
80823
  }),
80824
80824
  s.value && /* @__PURE__ */ g("div", {
@@ -80827,7 +80827,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80827
80827
  className: uU.text,
80828
80828
  size: "12x160",
80829
80829
  uppercase: !0,
80830
- children: f("nationality")
80830
+ children: p("nationality")
80831
80831
  }), /* @__PURE__ */ h(G, { children: s.value.replace(/\^/g, " ") })]
80832
80832
  }),
80833
80833
  t.value && /* @__PURE__ */ g("div", {
@@ -80836,7 +80836,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80836
80836
  className: uU.text,
80837
80837
  size: "12x160",
80838
80838
  uppercase: !0,
80839
- children: f("issuingState")
80839
+ children: p("issuingState")
80840
80840
  }), /* @__PURE__ */ h(G, { children: t.value })]
80841
80841
  }),
80842
80842
  n.value && /* @__PURE__ */ g("div", {
@@ -80845,7 +80845,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80845
80845
  className: uU.text,
80846
80846
  size: "12x160",
80847
80847
  uppercase: !0,
80848
- children: f("dateOfExpiry")
80848
+ children: p("dateOfExpiry")
80849
80849
  }), /* @__PURE__ */ h(G, { children: n.value })]
80850
80850
  }),
80851
80851
  i.value && /* @__PURE__ */ g("div", {
@@ -80854,7 +80854,7 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80854
80854
  className: uU.text,
80855
80855
  size: "12x160",
80856
80856
  uppercase: !0,
80857
- children: f("number")
80857
+ children: p("number")
80858
80858
  }), /* @__PURE__ */ h(G, { children: i.value })]
80859
80859
  })
80860
80860
  ]
@@ -80866,23 +80866,24 @@ var lU = () => Qk("cba5b1563e4d8bfbec09cb310eaef733"), uU = {
80866
80866
  value: "",
80867
80867
  status: A.ERROR,
80868
80868
  lcid: j.LATIN
80869
- }, pU = ({ showPortrait: e = !0, imageViewer: t, className: n }) => {
80870
- let { response: r } = re();
80871
- if (!r) return null;
80872
- 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;
80869
+ }, pU = ({ showPortrait: e = !0, imageViewer: t, className: n, downloadImage: r }) => {
80870
+ let { response: i } = re();
80871
+ if (!i) return null;
80872
+ 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;
80873
80873
  return /* @__PURE__ */ h(dU, {
80874
- nameSurname: o,
80875
- issuingStateName: s,
80876
- dateOfExpiry: c,
80877
- dateOfBirth: BE(r, F.DATE_OF_BIRTH)?.[0] ?? fU,
80878
- documentNumber: l,
80879
- portrait: a,
80880
- documentOwnerAge: u,
80881
- documentOwnerSex: d,
80882
- documentOwnerNationalityCode: f,
80874
+ nameSurname: s,
80875
+ issuingStateName: c,
80876
+ dateOfExpiry: l,
80877
+ dateOfBirth: BE(i, F.DATE_OF_BIRTH)?.[0] ?? fU,
80878
+ documentNumber: u,
80879
+ portrait: o,
80880
+ documentOwnerAge: d,
80881
+ documentOwnerSex: f,
80882
+ documentOwnerNationalityCode: p,
80883
80883
  showPortrait: e,
80884
80884
  imageViewer: t,
80885
- className: n
80885
+ className: n,
80886
+ downloadImage: r
80886
80887
  });
80887
80888
  };
80888
80889
  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: "Вақти коркард" });
@@ -80928,12 +80929,15 @@ var mU = () => Qk("fd36d162be5de318f22b05af38ffef8b"), hU = { text: "_text_i1hpy
80928
80929
  }), SU = () => {
80929
80930
  let { response: e } = re();
80930
80931
  return e ? /* @__PURE__ */ h(xU, { detailedStatus: wE(e) }) : null;
80931
- }, CU = { container: "_container_3v1pw_1" }, wU = ({ additionalFields: e, scrollToResult: t, imageViewer: n }) => /* @__PURE__ */ g("div", {
80932
+ }, CU = { container: "_container_3v1pw_1" }, wU = ({ additionalFields: e, scrollToResult: t, imageViewer: n, downloadImage: r }) => /* @__PURE__ */ g("div", {
80932
80933
  className: CU.container,
80933
80934
  children: [
80934
80935
  /* @__PURE__ */ h(SU, {}),
80935
80936
  /* @__PURE__ */ h(cU, { scrollToResult: t }),
80936
- /* @__PURE__ */ h(pU, { imageViewer: n }),
80937
+ /* @__PURE__ */ h(pU, {
80938
+ imageViewer: n,
80939
+ downloadImage: r
80940
+ }),
80937
80941
  /* @__PURE__ */ h(yU, { additionalFields: e })
80938
80942
  ]
80939
80943
  }), TU = { canvas: "_canvas_1duaq_1" }, EU = ({ image: e, selections: t, onCanvas: n }) => {
@@ -81196,12 +81200,12 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81196
81200
  preview: "_preview_d5kxz_6",
81197
81201
  "view-container": "_view-container_d5kxz_12",
81198
81202
  current: "_current_d5kxz_20"
81199
- }, 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 }) => {
81200
- let { t: f } = FU();
81203
+ }, 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 }) => {
81204
+ let { t: p } = FU();
81201
81205
  return /* @__PURE__ */ g("div", {
81202
81206
  className: IU.viewer,
81203
81207
  children: [e && /* @__PURE__ */ h(PU, {
81204
- title: f("lights"),
81208
+ title: p("lights"),
81205
81209
  images: t,
81206
81210
  activeImg: r,
81207
81211
  onSelect: i
@@ -81214,13 +81218,13 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81214
81218
  children: [/* @__PURE__ */ h(fA, {
81215
81219
  className: IU.image,
81216
81220
  src: a,
81217
- alt: f("preview"),
81221
+ alt: p("preview"),
81218
81222
  magnifierImg: o,
81219
81223
  previewImg: o,
81220
81224
  magnifierImgBorderRadius: 16,
81221
81225
  draggable: !1,
81222
81226
  magnifier: !0,
81223
- download: !0,
81227
+ download: f,
81224
81228
  viewer: d
81225
81229
  }), /* @__PURE__ */ h(EU, {
81226
81230
  image: a,
@@ -81230,7 +81234,7 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81230
81234
  })
81231
81235
  }), n.length > 1 && /* @__PURE__ */ h(PU, {
81232
81236
  large: !e,
81233
- title: f("pages"),
81237
+ title: p("pages"),
81234
81238
  images: n,
81235
81239
  activeImg: l,
81236
81240
  onSelect: u,
@@ -81263,59 +81267,60 @@ var FU = () => Qk("c629d0f0d0896c2f20a19a5ed9ede37b"), IU = {
81263
81267
  pageImages: a,
81264
81268
  currentImage: u(() => a.find(({ id: e }) => e === n) || a[0], [a, n])
81265
81269
  };
81266
- }, zU = ({ imageViewer: e, className: t, initialPageIndex: n, initialLight: r, onPageChanged: i, onLightChanged: a }) => {
81267
- 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({
81268
- images: s,
81269
- currentLight: x,
81270
- page: y
81270
+ }, zU = ({ imageViewer: e, className: t, initialPageIndex: n, initialLight: r, onPageChanged: i, onLightChanged: a, downloadImage: o }) => {
81271
+ 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({
81272
+ images: l,
81273
+ currentLight: S,
81274
+ page: b
81271
81275
  });
81272
81276
  return c(() => {
81273
81277
  let e = (e) => {
81274
- if (ee.length <= 1 || cN(e.target) || cN(document.activeElement)) return;
81275
- let t = ee.findIndex((e) => e.id === y);
81276
- 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));
81278
+ if (te.length <= 1 || cN(e.target) || cN(document.activeElement)) return;
81279
+ let t = te.findIndex((e) => e.id === b);
81280
+ 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));
81277
81281
  };
81278
81282
  return window.addEventListener("keydown", e), () => {
81279
81283
  window.removeEventListener("keydown", e);
81280
81284
  };
81281
81285
  }, [
81282
- y,
81283
- ee,
81284
- b
81286
+ b,
81287
+ te,
81288
+ x
81285
81289
  ]), c(() => {
81286
- if (!_.length || !s.length) return;
81287
- let { location: e, page: t } = _[0];
81288
- S(e.light === void 0 ? s[0].light : e.light), b(t);
81289
- }, [_, s]), c(() => {
81290
- 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)));
81290
+ if (!v.length || !l.length) return;
81291
+ let { location: e, page: t } = v[0];
81292
+ C(e.light === void 0 ? l[0].light : e.light), x(t);
81293
+ }, [v, l]), c(() => {
81294
+ 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)));
81291
81295
  }, [
81292
- x,
81293
- y,
81294
- _,
81295
- s
81296
+ S,
81297
+ b,
81298
+ v,
81299
+ l
81296
81300
  ]), c(() => {
81297
- !ne || ne.id === y || b(ne.id);
81298
- }, [ne, y]), c(() => () => {
81299
- b(l), S(d), v([]);
81300
- }, [s]), c(() => {
81301
- m.current !== y && (m.current = y, i?.(y));
81302
- }, [y]), c(() => {
81303
- g.current !== x && (g.current = x, a?.(x));
81304
- }, [x]), /* @__PURE__ */ h(OU, {
81301
+ !ie || ie.id === b || x(ie.id);
81302
+ }, [ie, b]), c(() => () => {
81303
+ x(d), C(m), y([]);
81304
+ }, [l]), c(() => {
81305
+ g.current !== b && (g.current = b, i?.(b));
81306
+ }, [b]), c(() => {
81307
+ _.current !== S && (_.current = S, a?.(S));
81308
+ }, [S]), /* @__PURE__ */ h(OU, {
81305
81309
  className: t,
81306
- children: ne ? /* @__PURE__ */ h(LU, {
81307
- showLightDock: ie,
81308
- lightImages: te,
81309
- currentLight: x,
81310
- setCurrentLight: S,
81311
- currentImage: ne.src,
81312
- magnifierImg: C,
81313
- currentSelections: T,
81314
- setMagnifierImg: w,
81315
- pageImages: ee,
81316
- currentPage: y,
81317
- setCurrentPage: b,
81318
- imageViewer: e
81310
+ children: ie ? /* @__PURE__ */ h(LU, {
81311
+ showLightDock: ae,
81312
+ lightImages: ne,
81313
+ currentLight: S,
81314
+ setCurrentLight: C,
81315
+ currentImage: ie.src,
81316
+ magnifierImg: w,
81317
+ currentSelections: E,
81318
+ setMagnifierImg: T,
81319
+ pageImages: te,
81320
+ currentPage: b,
81321
+ setCurrentPage: x,
81322
+ imageViewer: e,
81323
+ downloadImage: o
81319
81324
  }) : /* @__PURE__ */ h(AU, {})
81320
81325
  });
81321
81326
  }, BU = /* @__PURE__ */ function(e) {
@@ -82080,10 +82085,10 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82080
82085
  status: n
82081
82086
  }),
82082
82087
  children: a
82083
- }), aW = ({ src: e, alt: t, imageViewer: n = !0, heightLimit: r = 100, className: i }) => {
82084
- let a = f(null);
82088
+ }), aW = ({ src: e, alt: t, imageViewer: n = !0, heightLimit: r = 100, className: i, downloadImage: a }) => {
82089
+ let o = f(null);
82085
82090
  return c(() => {
82086
- let e = a.current;
82091
+ let e = o.current;
82087
82092
  if (!e) return;
82088
82093
  let t = e.parentElement, n = e.children[0];
82089
82094
  if (!t || !n) return;
@@ -82099,47 +82104,48 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82099
82104
  alt: t,
82100
82105
  viewer: n,
82101
82106
  magnifier: !0,
82102
- download: !0,
82107
+ download: a,
82103
82108
  className: i,
82104
- ref: a
82109
+ ref: o
82105
82110
  });
82106
82111
  }, oW = {
82107
82112
  container: "_container_1bdwk_1",
82108
82113
  item: "_item_1bdwk_4",
82109
82114
  name: "_name_1bdwk_12"
82110
- }, 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 }) => {
82111
- let { t: p } = eW(), m = !!(t || n || i !== A.OK), _ = a === O.IR_VISIBILITY;
82115
+ }, 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 }) => {
82116
+ let { t: m } = eW(), _ = !!(t || n || i !== A.OK), v = a === O.IR_VISIBILITY;
82112
82117
  return /* @__PURE__ */ h(iW, {
82113
- shift: m ? f + 20 : f,
82118
+ shift: _ ? f + 20 : f,
82114
82119
  name: /* @__PURE__ */ h($.SecurityFeatureTypeLabel, { children: o }),
82115
82120
  status: i,
82116
82121
  selected: u,
82117
82122
  open: s,
82118
82123
  onOpen: c,
82119
- collapse: m,
82124
+ collapse: _,
82120
82125
  onHeadClick: d,
82121
82126
  children: /* @__PURE__ */ g("div", {
82122
82127
  className: oW.container,
82123
82128
  children: [
82124
- !(o === P.INVISIBLE_OBJECT || r === 0 && !_) && /* @__PURE__ */ g("div", {
82129
+ !(o === P.INVISIBLE_OBJECT || r === 0 && !v) && /* @__PURE__ */ g("div", {
82125
82130
  className: oW.item,
82126
82131
  children: [/* @__PURE__ */ h(G, {
82127
82132
  uppercase: !0,
82128
82133
  className: oW.name,
82129
- children: p(_ ? "visibility" : "similarity")
82130
- }), /* @__PURE__ */ h(G, { children: _ ? dd(r).map($.getIRVisibilityStatus).join(", ") : r + "%" })]
82134
+ children: m(v ? "visibility" : "similarity")
82135
+ }), /* @__PURE__ */ h(G, { children: v ? dd(r).map($.getIRVisibilityStatus).join(", ") : r + "%" })]
82131
82136
  }),
82132
82137
  n && /* @__PURE__ */ g("div", {
82133
82138
  className: oW.item,
82134
82139
  children: [/* @__PURE__ */ h(G, {
82135
82140
  uppercase: !0,
82136
82141
  className: oW.name,
82137
- children: p("reference")
82142
+ children: m("reference")
82138
82143
  }), /* @__PURE__ */ h("div", {
82139
82144
  className: oW.image,
82140
82145
  children: /* @__PURE__ */ h(aW, {
82141
82146
  src: n,
82142
82147
  imageViewer: l,
82148
+ downloadImage: p,
82143
82149
  alt: "Reference"
82144
82150
  })
82145
82151
  })]
@@ -82149,12 +82155,13 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82149
82155
  children: [/* @__PURE__ */ h(G, {
82150
82156
  uppercase: !0,
82151
82157
  className: oW.name,
82152
- children: p("image")
82158
+ children: m("image")
82153
82159
  }), /* @__PURE__ */ h("div", {
82154
82160
  className: oW.image,
82155
82161
  children: /* @__PURE__ */ h(aW, {
82156
82162
  src: t,
82157
82163
  imageViewer: l,
82164
+ downloadImage: p,
82158
82165
  alt: "Image"
82159
82166
  })
82160
82167
  })]
@@ -82164,7 +82171,7 @@ var eW = () => Qk("c5291d1c5e6d9464c1e104be56e67cda"), tW = {
82164
82171
  children: [/* @__PURE__ */ h(G, {
82165
82172
  uppercase: !0,
82166
82173
  className: oW.name,
82167
- children: p("diagnose")
82174
+ children: m("diagnose")
82168
82175
  }), /* @__PURE__ */ h(G, { children: /* @__PURE__ */ h($.CheckDiagnose, { children: e }) })]
82169
82176
  })
82170
82177
  ]
@@ -82293,22 +82300,23 @@ var cW = () => Qk("f5703a9089310f67332ce6624b257773"), lW = {
82293
82300
  container: "_container_1bdwk_1",
82294
82301
  item: "_item_1bdwk_4",
82295
82302
  name: "_name_1bdwk_12"
82296
- }, uW = ({ diagnose: e, image: t, status: n, imageViewer: r, shift: i }) => {
82297
- let { t: a } = cW(), o = { "--shift": i + "px" };
82303
+ }, uW = ({ diagnose: e, image: t, status: n, imageViewer: r, shift: i, downloadImage: a }) => {
82304
+ let { t: o } = cW(), s = { "--shift": i + "px" };
82298
82305
  return /* @__PURE__ */ g("div", {
82299
82306
  className: lW.container,
82300
- style: o,
82307
+ style: s,
82301
82308
  children: [t && /* @__PURE__ */ g("div", {
82302
82309
  className: lW.item,
82303
82310
  children: [/* @__PURE__ */ h(G, {
82304
82311
  uppercase: !0,
82305
82312
  className: lW.name,
82306
- children: a("image")
82313
+ children: o("image")
82307
82314
  }), /* @__PURE__ */ h("div", {
82308
82315
  className: lW.image,
82309
82316
  children: /* @__PURE__ */ h(aW, {
82310
82317
  imageViewer: r,
82311
82318
  src: t,
82319
+ downloadImage: a,
82312
82320
  alt: "Reference"
82313
82321
  })
82314
82322
  })]
@@ -82317,7 +82325,7 @@ var cW = () => Qk("f5703a9089310f67332ce6624b257773"), lW = {
82317
82325
  children: [/* @__PURE__ */ h(G, {
82318
82326
  uppercase: !0,
82319
82327
  className: lW.name,
82320
- children: a("diagnose")
82328
+ children: o("diagnose")
82321
82329
  }), /* @__PURE__ */ h(G, { children: /* @__PURE__ */ h($.CheckDiagnose, { children: e }) })]
82322
82330
  })]
82323
82331
  });
@@ -82716,7 +82724,7 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82716
82724
  dataTestKey: u
82717
82725
  }),
82718
82726
  children: a
82719
- }), 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, {
82727
+ }), 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, {
82720
82728
  shift: m,
82721
82729
  type: g,
82722
82730
  name: /* @__PURE__ */ h(OW, { group: e }),
@@ -82729,62 +82737,64 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82729
82737
  children: /* @__PURE__ */ h("div", {
82730
82738
  className: (0, yD.default)({ [NW.checks]: g !== "nested" }),
82731
82739
  children: t.map((t, n) => {
82732
- let { checkResult: o, diagnose: l, location: p } = t, g = `${d}.${n}`, _ = p && {
82740
+ let { checkResult: o, diagnose: l, location: p } = t, g = `${d}.${n}`, v = p && {
82733
82741
  light: p.light || KU(e),
82734
82742
  rect: p.rect
82735
- }, v = !!(_ && HU(i, [{
82743
+ }, y = !!(v && HU(i, [{
82736
82744
  page: a,
82737
82745
  path: String(e),
82738
82746
  checkResult: o,
82739
- location: _
82740
- }])), y = _ && VU(_.rect) ? [{
82747
+ location: v
82748
+ }])), b = v && VU(v.rect) ? [{
82741
82749
  page: a,
82742
82750
  path: String(e),
82743
82751
  checkResult: o,
82744
- location: _
82745
- }] : [], b = (t) => `${a}/${e}/${t}/${n}`, x = () => c(g), S = () => u(v, g, y);
82752
+ location: v
82753
+ }] : [], x = (t) => `${a}/${e}/${t}/${n}`, S = () => c(g), C = () => u(y, g, b);
82746
82754
  if (_T.isBelongs(t)) return /* @__PURE__ */ h(sW, {
82747
82755
  type: t.type,
82748
- isSelected: v,
82756
+ isSelected: y,
82749
82757
  status: o,
82750
82758
  diagnose: l,
82751
82759
  image: t.image,
82752
82760
  referenceImage: t.referenceImage,
82753
82761
  similarity: t.similarity,
82754
82762
  group: e,
82755
- onClick: S,
82763
+ onClick: C,
82756
82764
  shift: m,
82757
82765
  imageViewer: f,
82758
82766
  isOpen: s.has(g),
82759
- onOpen: x
82760
- }, b("ident"));
82767
+ onOpen: S,
82768
+ downloadImage: _
82769
+ }, x("ident"));
82761
82770
  if (yT.isBelongs(t)) return /* @__PURE__ */ h(uW, {
82762
82771
  status: o,
82763
82772
  diagnose: l,
82764
82773
  image: t.image,
82765
82774
  shift: m,
82766
- imageViewer: f
82767
- }, b("photoIdent"));
82775
+ imageViewer: f,
82776
+ downloadImage: _
82777
+ }, x("photoIdent"));
82768
82778
  if (hT.isBelongs(t)) return /* @__PURE__ */ h($U, {
82769
82779
  colorValues: t.colorValues,
82770
- isSelected: v,
82780
+ isSelected: y,
82771
82781
  status: o,
82772
82782
  diagnose: l,
82773
- onClick: S,
82783
+ onClick: C,
82774
82784
  shift: m,
82775
82785
  isOpen: s.has(g),
82776
- onOpen: x
82777
- }, b("fibers"));
82786
+ onOpen: S
82787
+ }, x("fibers"));
82778
82788
  if (xT.isBelongs(t)) return /* @__PURE__ */ h(_W, {
82779
82789
  type: t.feature,
82780
- isSelected: v,
82790
+ isSelected: y,
82781
82791
  status: o,
82782
82792
  diagnose: l,
82783
- onClick: S,
82793
+ onClick: C,
82784
82794
  shift: m,
82785
82795
  isOpen: s.has(g),
82786
- onOpen: x
82787
- }, b("security"));
82796
+ onOpen: S
82797
+ }, x("security"));
82788
82798
  if (CT.isBelongs(t)) {
82789
82799
  let n = (t) => `${e}${t}`, c = (e, t) => {
82790
82800
  r([{
@@ -82798,27 +82808,27 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82798
82808
  path: n(t),
82799
82809
  checkResult: o,
82800
82810
  location: e
82801
- }]), 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);
82811
+ }]), 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);
82802
82812
  return /* @__PURE__ */ h(wW, {
82803
82813
  type: t.type,
82804
- isSelected: v,
82814
+ isSelected: y,
82805
82815
  status: o,
82806
82816
  diagnose: l,
82807
82817
  reference: t.reference,
82808
82818
  onResultClick: f,
82809
82819
  onReferenceClick: _,
82810
- isResultSelected: y,
82811
- isReferenceSelected: C,
82812
- onClick: S,
82820
+ isResultSelected: v,
82821
+ isReferenceSelected: b,
82822
+ onClick: C,
82813
82823
  shift: m + 20,
82814
82824
  isOpen: s.has(g),
82815
- onOpen: x
82816
- }, b("text"));
82825
+ onOpen: S
82826
+ }, x("text"));
82817
82827
  }
82818
82828
  })
82819
82829
  })
82820
- }), FW = ({ group: e, checks: t, status: n, onSelect: r, selections: i, page: a, groupId: o, imageViewer: s, shift: c = 0, type: l }) => {
82821
- let { openFields: u, addOpenField: d, removeOpenField: f } = Qt(), p = t.reduce((t, n) => (n.location && VU(n.location.rect) && t.push({
82830
+ }), FW = ({ group: e, checks: t, status: n, onSelect: r, selections: i, page: a, groupId: o, imageViewer: s, shift: c = 0, type: l, downloadImage: u }) => {
82831
+ let { openFields: d, addOpenField: f, removeOpenField: p } = Qt(), m = t.reduce((t, n) => (n.location && VU(n.location.rect) && t.push({
82822
82832
  page: a,
82823
82833
  path: String(e),
82824
82834
  checkResult: n.checkResult,
@@ -82826,20 +82836,20 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82826
82836
  light: n.location.light || KU(e),
82827
82837
  rect: n.location.rect
82828
82838
  }
82829
- }), t), []), m = HU(i, p), g = (e) => u.authenticity.has(e) ? f("authenticity", e) : d("authenticity", e), _ = () => {
82830
- if (!p.length) return g(o);
82831
- let e = u.authenticity.has(o);
82832
- if ((!m || e) && r(p), !e) return d("authenticity", o);
82833
- m && f("authenticity", o);
82834
- }, v = (e, t, n) => {
82835
- if (!n.length) return g(t);
82836
- let i = u.authenticity.has(t);
82837
- if (m && p.length > 1) {
82838
- r(n), d("authenticity", t);
82839
+ }), t), []), g = HU(i, m), _ = (e) => d.authenticity.has(e) ? p("authenticity", e) : f("authenticity", e), v = () => {
82840
+ if (!m.length) return _(o);
82841
+ let e = d.authenticity.has(o);
82842
+ if ((!g || e) && r(m), !e) return f("authenticity", o);
82843
+ g && p("authenticity", o);
82844
+ }, y = (e, t, n) => {
82845
+ if (!n.length) return _(t);
82846
+ let i = d.authenticity.has(t);
82847
+ if (g && m.length > 1) {
82848
+ r(n), f("authenticity", t);
82839
82849
  return;
82840
82850
  }
82841
- (!e || i) && r(n), i ? e && f("authenticity", t) : d("authenticity", t);
82842
- }, y = t.length > 0;
82851
+ (!e || i) && r(n), i ? e && p("authenticity", t) : f("authenticity", t);
82852
+ }, b = t.length > 0;
82843
82853
  return /* @__PURE__ */ h(PW, {
82844
82854
  group: e,
82845
82855
  checks: t,
@@ -82848,23 +82858,24 @@ var TW = () => Qk("4e7992d19a663aace2a1c84e11059e2a"), EW = { content: "_content
82848
82858
  selections: i,
82849
82859
  page: a,
82850
82860
  groupId: o,
82851
- shift: y ? c : 0,
82861
+ shift: b ? c : 0,
82852
82862
  type: l,
82853
- openFields: u.authenticity,
82854
- onOpen: g,
82855
- onGroupClick: _,
82856
- onSubGroupClick: v,
82857
- collapse: y,
82858
- isSelected: m,
82859
- imageViewer: s
82863
+ openFields: d.authenticity,
82864
+ onOpen: _,
82865
+ onGroupClick: v,
82866
+ onSubGroupClick: y,
82867
+ collapse: b,
82868
+ isSelected: g,
82869
+ imageViewer: s,
82870
+ downloadImage: u
82860
82871
  });
82861
82872
  };
82862
82873
  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: "Саҳифа" });
82863
82874
  var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82864
82875
  scroll: "_scroll_wfx4h_1",
82865
82876
  authenticity: "_authenticity_wfx4h_7"
82866
- }, RW = 255, zW = ({ authenticity: e, documentIdentification: t, selections: n, onSelect: r, onOpen: i, openFields: a, imageViewer: o, initialScrollPosition: s, onScrollTop: c }) => {
82867
- let { t: l } = IW();
82877
+ }, RW = 255, zW = ({ authenticity: e, documentIdentification: t, selections: n, onSelect: r, onOpen: i, openFields: a, imageViewer: o, initialScrollPosition: s, onScrollTop: c, downloadImage: l }) => {
82878
+ let { t: u } = IW();
82868
82879
  return /* @__PURE__ */ h(FH, {
82869
82880
  extendedItemSelector: "[data-extended-scroll]",
82870
82881
  extendedScrollDelay: 200,
@@ -82882,10 +82893,11 @@ var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82882
82893
  selections: n,
82883
82894
  type: "nested",
82884
82895
  imageViewer: o,
82885
- groupId: String(s)
82896
+ groupId: String(s),
82897
+ downloadImage: l
82886
82898
  }, t))
82887
82899
  }) : e.map(({ page: e, groups: s }, c) => {
82888
- let u = String(c);
82900
+ let d = String(c);
82889
82901
  return e === RW ? s.map(({ group: t, checks: i }) => /* @__PURE__ */ h(FW, {
82890
82902
  checks: i,
82891
82903
  group: t,
@@ -82893,11 +82905,12 @@ var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82893
82905
  onSelect: r,
82894
82906
  selections: n,
82895
82907
  imageViewer: o,
82896
- groupId: u
82908
+ groupId: d,
82909
+ downloadImage: l
82897
82910
  }, t)) : /* @__PURE__ */ h(oO, {
82898
- head: /* @__PURE__ */ h(G, { children: t.find(({ pageIndex: t }) => t === e)?.documentName || `${l("page")} ${e + 1}` }),
82899
- open: a.has(u),
82900
- onOpen: () => i(e, u),
82911
+ head: /* @__PURE__ */ h(G, { children: t.find(({ pageIndex: t }) => t === e)?.documentName || `${u("page")} ${e + 1}` }),
82912
+ open: a.has(d),
82913
+ onOpen: () => i(e, d),
82901
82914
  openClickArea: "head",
82902
82915
  children: /* @__PURE__ */ h("div", {
82903
82916
  className: LW.authenticity,
@@ -82911,28 +82924,30 @@ var IW = () => Qk("c978bfc734ce43cb57f59e262c5b970c"), LW = {
82911
82924
  shift: 16,
82912
82925
  type: "nested",
82913
82926
  imageViewer: o,
82914
- groupId: `${u}.${s}`
82927
+ groupId: `${d}.${s}`,
82928
+ downloadImage: l
82915
82929
  }, t))
82916
82930
  })
82917
82931
  }, e);
82918
82932
  })
82919
82933
  });
82920
- }, BW = ({ authenticity: e, documentIdentification: t, onSelect: n, imageViewer: r, initialScrollPosition: i }) => {
82921
- let { setScroll: a } = rn(), { openFields: o, addOpenField: s, removeOpenField: l, resetOpenField: u } = Qt(), { selections: d } = le(), { setPage: f } = oe(), p = (e, t) => {
82922
- o.authenticity.has(t) ? l("authenticity", t) : (f(e), s("authenticity", t));
82923
- }, m = a ? (e) => a("authenticity", e) : void 0;
82934
+ }, BW = ({ authenticity: e, documentIdentification: t, onSelect: n, imageViewer: r, initialScrollPosition: i, downloadImage: a }) => {
82935
+ let { setScroll: o } = rn(), { openFields: s, addOpenField: l, removeOpenField: u, resetOpenField: d } = Qt(), { selections: f } = le(), { setPage: p } = oe(), m = (e, t) => {
82936
+ s.authenticity.has(t) ? u("authenticity", t) : (p(e), l("authenticity", t));
82937
+ }, g = o ? (e) => o("authenticity", e) : void 0;
82924
82938
  return c(() => () => {
82925
- u("authenticity");
82939
+ d("authenticity");
82926
82940
  }, [e]), /* @__PURE__ */ h(zW, {
82927
82941
  authenticity: e,
82928
82942
  documentIdentification: t,
82929
- selections: d,
82943
+ selections: f,
82930
82944
  onSelect: n,
82931
82945
  imageViewer: r,
82932
82946
  initialScrollPosition: i,
82933
- onScrollTop: m,
82934
- openFields: o.authenticity,
82935
- onOpen: p
82947
+ onScrollTop: g,
82948
+ openFields: s.authenticity,
82949
+ onOpen: m,
82950
+ downloadImage: a
82936
82951
  });
82937
82952
  };
82938
82953
  q.addResourceBundle("ru-RU", "dc87716ea86ebf584e6de7d3249457b2", {
@@ -83913,26 +83928,26 @@ var cG = () => Qk("0b9710958905a1fef033fa8881ba3e7a"), lG = {
83913
83928
  items: e,
83914
83929
  onTabChange: t
83915
83930
  })
83916
- }), NG = ({ imageViewer: e, className: t, initialTab: n, onTabChange: r, initialScrollPosition: i, onScrollTop: a, openFields: o, onOpenFieldsChange: s }) => {
83917
- let { t: l } = GU(), { response: d } = re(), { tabID: f = n, setTabID: p } = fe(), { setSelections: m } = le();
83931
+ }), NG = ({ imageViewer: e, className: t, initialTab: n, onTabChange: r, initialScrollPosition: i, onScrollTop: a, openFields: o, onOpenFieldsChange: s, downloadImage: l }) => {
83932
+ let { t: d } = GU(), { response: f } = re(), { tabID: p = n, setTabID: m } = fe(), { setSelections: g } = le();
83918
83933
  c(() => () => {
83919
- p(n ?? BU.TEXT_DATA);
83920
- }, [d]);
83921
- let { textData: g, imageQuality: _, authenticity: v, documentIdentification: y } = u(() => d ? {
83922
- textData: LE(d).filter((e) => e.value.trim() || e.checkResult !== A.WAS_NOT_DONE),
83923
- imageQuality: nE(d).sort((e, t) => e.pageIndex - t.pageIndex),
83924
- authenticity: AT(d).filter(({ groups: e }) => e.length > 0),
83925
- documentIdentification: kE(d).sort((e, t) => e.pageIndex - t.pageIndex)
83934
+ m(n ?? BU.TEXT_DATA);
83935
+ }, [f]);
83936
+ let { textData: _, imageQuality: v, authenticity: y, documentIdentification: b } = u(() => f ? {
83937
+ textData: LE(f).filter((e) => e.value.trim() || e.checkResult !== A.WAS_NOT_DONE),
83938
+ imageQuality: nE(f).sort((e, t) => e.pageIndex - t.pageIndex),
83939
+ authenticity: AT(f).filter(({ groups: e }) => e.length > 0),
83940
+ documentIdentification: kE(f).sort((e, t) => e.pageIndex - t.pageIndex)
83926
83941
  } : {
83927
83942
  textData: [],
83928
83943
  imageQuality: [],
83929
83944
  authenticity: [],
83930
83945
  documentIdentification: []
83931
- }, [d]), b = u(() => ({
83932
- authenticity: UU(v),
83933
- imageQuality: WU(_)
83934
- }), [v, _]), x = (e) => {
83935
- m((t) => {
83946
+ }, [f]), x = u(() => ({
83947
+ authenticity: UU(y),
83948
+ imageQuality: WU(v)
83949
+ }), [y, v]), S = (e) => {
83950
+ g((t) => {
83936
83951
  let n = t.map((e) => JSON.stringify(e)), r = [...t];
83937
83952
  if (e.length === 1) {
83938
83953
  let t = JSON.stringify(e[0]);
@@ -83942,63 +83957,64 @@ var cG = () => Qk("0b9710958905a1fef033fa8881ba3e7a"), lG = {
83942
83957
  return e.every((e) => n.includes(JSON.stringify(e))) ? r.filter((e) => !t.includes(JSON.stringify(e))) : e;
83943
83958
  }
83944
83959
  });
83945
- }, S = (e) => {
83946
- r?.(e), p(e), m([]);
83947
- }, C = u(() => {
83960
+ }, C = (e) => {
83961
+ r?.(e), m(e), g([]);
83962
+ }, w = u(() => {
83948
83963
  let t = [];
83949
- return g.length && t.push({
83964
+ return _.length && t.push({
83950
83965
  id: BU.TEXT_DATA,
83951
- label: l("textFields"),
83966
+ label: d("textFields"),
83952
83967
  children: /* @__PURE__ */ h(AG, {
83953
- textData: g,
83954
- onSelect: x,
83968
+ textData: _,
83969
+ onSelect: S,
83955
83970
  initialScrollPosition: i?.textData
83956
83971
  })
83957
- }), v.length && t.push({
83972
+ }), y.length && t.push({
83958
83973
  id: BU.AUTHENTICITY,
83959
- label: l("securityChecks"),
83974
+ label: d("securityChecks"),
83960
83975
  children: /* @__PURE__ */ h(BW, {
83961
- authenticity: v,
83962
- documentIdentification: y,
83963
- onSelect: x,
83976
+ authenticity: y,
83977
+ documentIdentification: b,
83978
+ onSelect: S,
83964
83979
  imageViewer: e,
83965
- initialScrollPosition: i?.authenticity
83980
+ initialScrollPosition: i?.authenticity,
83981
+ downloadImage: l
83966
83982
  })
83967
- }), _.length && t.push({
83983
+ }), v.length && t.push({
83968
83984
  id: BU.IMAGE_QUALITY,
83969
- label: l("imageQuality"),
83985
+ label: d("imageQuality"),
83970
83986
  children: /* @__PURE__ */ h(nG, {
83971
- imageQuality: _,
83972
- documentIdentification: y,
83973
- onSelect: x,
83987
+ imageQuality: v,
83988
+ documentIdentification: b,
83989
+ onSelect: S,
83974
83990
  initialScrollPosition: i?.imageQuality
83975
83991
  })
83976
- }), y.length && t.push({
83992
+ }), b.length && t.push({
83977
83993
  id: BU.IDENTIFICATION,
83978
- label: l("documentType"),
83994
+ label: d("documentType"),
83979
83995
  children: /* @__PURE__ */ h(KW, {
83980
- documentIdentification: y,
83996
+ documentIdentification: b,
83981
83997
  initialScrollPosition: i?.identification
83982
83998
  })
83983
83999
  }), t;
83984
84000
  }, [
83985
- g,
83986
- v,
83987
84001
  _,
83988
84002
  y,
84003
+ v,
84004
+ b,
83989
84005
  i,
83990
84006
  e,
83991
- l
84007
+ d
83992
84008
  ]);
83993
- return C.length ? /* @__PURE__ */ h(Zt, {
84009
+ return w.length ? /* @__PURE__ */ h(Zt, {
83994
84010
  onOpenFieldsChange: s,
83995
- openFields: o || b,
84011
+ openFields: o || x,
83996
84012
  children: /* @__PURE__ */ h(nn, {
83997
84013
  onScrollTop: a,
83998
84014
  children: /* @__PURE__ */ h(MG, {
83999
- tab: f,
84000
- onTabChange: S,
84001
- tabs: C,
84015
+ tab: p,
84016
+ onTabChange: C,
84017
+ tabs: w,
84002
84018
  className: t
84003
84019
  })
84004
84020
  })
@@ -84020,16 +84036,18 @@ var cG = () => Qk("0b9710958905a1fef033fa8881ba3e7a"), lG = {
84020
84036
  content: "_content_10kpe_11",
84021
84037
  tabs: "_tabs_10kpe_15",
84022
84038
  images: "_images_10kpe_18"
84023
- }, RG = ({ imageViewer: e }) => /* @__PURE__ */ g("div", {
84039
+ }, RG = ({ imageViewer: e, downloadImage: t }) => /* @__PURE__ */ g("div", {
84024
84040
  className: LG.container,
84025
84041
  children: [/* @__PURE__ */ h(IG, {}), /* @__PURE__ */ g("div", {
84026
84042
  className: LG.content,
84027
84043
  children: [/* @__PURE__ */ h(zU, {
84028
84044
  className: LG.images,
84029
- imageViewer: e
84045
+ imageViewer: e,
84046
+ downloadImage: t
84030
84047
  }), /* @__PURE__ */ h(NG, {
84031
84048
  className: LG.tabs,
84032
- imageViewer: e
84049
+ imageViewer: e,
84050
+ downloadImage: t
84033
84051
  })]
84034
84052
  })]
84035
84053
  });
@@ -85364,7 +85382,7 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85364
85382
  }, DK = {
85365
85383
  text: "_text_c8ml4_1",
85366
85384
  image: "_image_c8ml4_5"
85367
- }, OK = ({ name: e, url: t, imageViewer: n = !0 }) => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(G, {
85385
+ }, OK = ({ name: e, url: t, imageViewer: n = !0, downloadImage: r }) => /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(G, {
85368
85386
  className: DK.text,
85369
85387
  size: "12x160",
85370
85388
  uppercase: !0,
@@ -85376,7 +85394,7 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85376
85394
  draggable: !1,
85377
85395
  magnifierImgBorderRadius: 4,
85378
85396
  magnifier: !0,
85379
- download: !0,
85397
+ download: r,
85380
85398
  viewer: n
85381
85399
  })] }), kK = /* @__PURE__ */ function(e) {
85382
85400
  return e.NONE = "NONE", e.SOURCE = "SOURCE", e.LIGHT = "LIGHT", e.SOURCE_LIGHT = "SOURCE_LIGHT", e;
@@ -85390,31 +85408,33 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85390
85408
  case kK.SOURCE_LIGHT: return `${$.getGraphicFieldType(e)} (${$.getSource(t)}, ${$.getLightsLabel(n)})`;
85391
85409
  default: return $.getGraphicFieldType(e);
85392
85410
  }
85393
- }, MK = { container: "_container_b06p4_1" }, NK = ({ images: e, imageViewer: t }) => (Qk(), /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ h("div", {
85411
+ }, MK = { container: "_container_b06p4_1" }, NK = ({ images: e, imageViewer: t, downloadImage: n }) => (Qk(), /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ h("div", {
85394
85412
  className: MK.container,
85395
- children: Object.entries(e).reduce((e, [n, r]) => {
85396
- let i = AK(r);
85397
- return r.forEach(({ src: r, source: a, light: o }, s) => {
85398
- let c = jK(n, a, o, i);
85399
- r && e.push(/* @__PURE__ */ h(OK, {
85400
- name: c,
85401
- url: r,
85402
- imageViewer: t
85403
- }, n + s));
85413
+ children: Object.entries(e).reduce((e, [r, i]) => {
85414
+ let a = AK(i);
85415
+ return i.forEach(({ src: i, source: o, light: s }, c) => {
85416
+ let l = jK(r, o, s, a);
85417
+ i && e.push(/* @__PURE__ */ h(OK, {
85418
+ name: l,
85419
+ url: i,
85420
+ imageViewer: t,
85421
+ downloadImage: n
85422
+ }, r + c));
85404
85423
  }), e;
85405
85424
  }, [])
85406
- }) })), PK = { container: "_container_1hyjc_1" }, FK = ({ images: e, imageViewer: t }) => /* @__PURE__ */ g("div", {
85425
+ }) })), PK = { container: "_container_1hyjc_1" }, FK = ({ images: e, imageViewer: t, downloadImage: n }) => /* @__PURE__ */ g("div", {
85407
85426
  className: PK.container,
85408
85427
  children: [/* @__PURE__ */ h(EK, {}), /* @__PURE__ */ h(NK, {
85409
85428
  images: e,
85410
- imageViewer: t
85429
+ imageViewer: t,
85430
+ downloadImage: n
85411
85431
  })]
85412
- }), IK = ({ imageViewer: e }) => {
85413
- let { response: t } = re();
85414
- if (!t) return null;
85415
- let n = KT(t).filter((e) => e.fieldType !== za.DOCUMENT_FRONT);
85416
- return n.length ? /* @__PURE__ */ h(FK, {
85417
- images: n.reduce((e, { pages: t, light: n, fieldType: r }) => {
85432
+ }), IK = ({ imageViewer: e, downloadImage: t }) => {
85433
+ let { response: n } = re();
85434
+ if (!n) return null;
85435
+ let r = KT(n).filter((e) => e.fieldType !== za.DOCUMENT_FRONT);
85436
+ return r.length ? /* @__PURE__ */ h(FK, {
85437
+ images: r.reduce((e, { pages: t, light: n, fieldType: r }) => {
85418
85438
  let i = t.map(({ src: e, source: t }) => ({
85419
85439
  light: n,
85420
85440
  source: t,
@@ -85422,7 +85442,8 @@ var wK = () => Qk("3bc9054a63aa53765bd9ce110e67521e"), TK = { container: "_conta
85422
85442
  }));
85423
85443
  return e[r] ? e[r].push(...i) : e[r] = i, e;
85424
85444
  }, {}),
85425
- imageViewer: e
85445
+ imageViewer: e,
85446
+ downloadImage: t
85426
85447
  }) : null;
85427
85448
  }, LK = ({ response: e, request: t, children: n, language: r }) => {
85428
85449
  let i = eA(r);
@@ -86089,51 +86110,52 @@ var rq = () => Qk("90a425db4934211fafe21693ab2e9a39"), iq = {
86089
86110
  text: "_text_1wz9f_1",
86090
86111
  "source-content": "_source-content_1wz9f_5",
86091
86112
  rate: "_rate_1wz9f_28"
86092
- }, aq = ({ source: e, image: t, checkResult: n, similarity: r, imageViewer: i = !0 }) => {
86093
- let { t: a } = rq(), o = $.getPortraitComparisonSource(e);
86113
+ }, aq = ({ source: e, image: t, checkResult: n, similarity: r, imageViewer: i = !0, downloadImage: a }) => {
86114
+ let { t: o } = rq(), s = $.getPortraitComparisonSource(e);
86094
86115
  return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(G, {
86095
86116
  className: iq.text,
86096
86117
  size: "12x160",
86097
86118
  uppercase: !0,
86098
- children: o
86119
+ children: s
86099
86120
  }), /* @__PURE__ */ g("div", {
86100
86121
  className: iq["source-content"],
86101
86122
  children: [t ? /* @__PURE__ */ h(fA, {
86102
86123
  src: `data:image/jpeg;base64,${t}`,
86103
- alt: String(o),
86124
+ alt: String(s),
86104
86125
  magnifierImgBorderRadius: 4,
86105
86126
  draggable: !1,
86106
86127
  magnifier: !0,
86107
86128
  viewer: i,
86108
- download: !0
86129
+ download: a
86109
86130
  }) : /* @__PURE__ */ h(VH, {
86110
86131
  type: "photo",
86111
86132
  className: iq["default-image"]
86112
86133
  }), n !== void 0 && r !== void 0 && /* @__PURE__ */ g("span", {
86113
86134
  className: iq.rate,
86114
- children: [qH(n), /* @__PURE__ */ h(G, { children: `${a("rate")} ${r}%` })]
86135
+ children: [qH(n), /* @__PURE__ */ h(G, { children: `${o("rate")} ${r}%` })]
86115
86136
  })]
86116
86137
  })] });
86117
- }, oq = { result: "_result_1sdjd_1" }, sq = ({ source: e, image: t, comparable: n, imageViewer: r }) => /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ g("div", {
86138
+ }, oq = { result: "_result_1sdjd_1" }, sq = ({ source: e, image: t, comparable: n, imageViewer: r, downloadImage: i }) => /* @__PURE__ */ h(FH, { children: /* @__PURE__ */ g("div", {
86118
86139
  className: oq.result,
86119
86140
  children: [/* @__PURE__ */ h(aq, {
86120
86141
  source: e,
86121
86142
  image: t,
86122
86143
  imageViewer: r
86123
- }), n.map(({ source: e, image: t, checkResult: n, similarity: i }, a) => /* @__PURE__ */ h(aq, {
86144
+ }), n.map(({ source: e, image: t, checkResult: n, similarity: a }, o) => /* @__PURE__ */ h(aq, {
86124
86145
  source: e,
86125
86146
  image: t,
86126
86147
  checkResult: n,
86127
- similarity: i,
86128
- imageViewer: r
86129
- }, t || a))]
86148
+ similarity: a,
86149
+ imageViewer: r,
86150
+ downloadImage: i
86151
+ }, t || o))]
86130
86152
  }) });
86131
86153
  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: "Хизматрасонӣ посух намедиҳад" });
86132
86154
  var cq = () => Qk("aac8d134d61c1e4793fd82a4718ac196"), lq = {
86133
86155
  comparison: "_comparison_5medb_1",
86134
86156
  results: "_results_5medb_20"
86135
- }, uq = ({ status: e, name: t, comparisons: n, showDiagnose: r, imageViewer: i }) => {
86136
- let { t: a } = cq();
86157
+ }, uq = ({ status: e, name: t, comparisons: n, showDiagnose: r, imageViewer: i, downloadImage: a }) => {
86158
+ let { t: o } = cq();
86137
86159
  return /* @__PURE__ */ g("div", {
86138
86160
  className: lq.comparison,
86139
86161
  children: [/* @__PURE__ */ h(nq, {
@@ -86144,36 +86166,39 @@ var cq = () => Qk("aac8d134d61c1e4793fd82a4718ac196"), lq = {
86144
86166
  className: lq.results,
86145
86167
  children: [r && /* @__PURE__ */ h(GH, { children: /* @__PURE__ */ h(G, {
86146
86168
  size: "14x157",
86147
- children: a("serviceNotRespond")
86169
+ children: o("serviceNotRespond")
86148
86170
  }) }), n.map(({ source: e, image: t, comparable: n }, r) => /* @__PURE__ */ h(sq, {
86149
86171
  source: e,
86150
86172
  image: t,
86151
86173
  comparable: n,
86152
- imageViewer: i
86174
+ imageViewer: i,
86175
+ downloadImage: a
86153
86176
  }, t || r))]
86154
86177
  })]
86155
86178
  });
86156
- }, dq = { comparisons: "_comparisons_pgp5t_1" }, fq = ({ portraitsComparison: e, portraitsStatus: t, showDiagnose: n, imageViewer: r }) => {
86157
- let { t: i } = eq();
86179
+ }, dq = { comparisons: "_comparisons_pgp5t_1" }, fq = ({ portraitsComparison: e, portraitsStatus: t, showDiagnose: n, imageViewer: r, downloadImage: i }) => {
86180
+ let { t: a } = eq();
86158
86181
  return /* @__PURE__ */ h("div", {
86159
86182
  className: dq.comparisons,
86160
86183
  children: /* @__PURE__ */ h(uq, {
86161
86184
  status: t,
86162
- name: i("portraitComparison"),
86185
+ name: a("portraitComparison"),
86163
86186
  comparisons: e,
86164
86187
  showDiagnose: n,
86165
- imageViewer: r
86188
+ imageViewer: r,
86189
+ downloadImage: i
86166
86190
  })
86167
86191
  });
86168
- }, pq = ({ imageViewer: e }) => {
86169
- let { response: t } = re();
86170
- if (!t) return null;
86171
- let n = IT(t), r = wE(t), i = n.every(({ diagnose: e }) => e === k.PORTRAIT_COMPARISON_NO_SERVICE_REPLY);
86172
- return n.length ? /* @__PURE__ */ h(fq, {
86173
- portraitsComparison: n,
86174
- portraitsStatus: r.summary.portrait,
86192
+ }, pq = ({ imageViewer: e, downloadImage: t }) => {
86193
+ let { response: n } = re();
86194
+ if (!n) return null;
86195
+ let r = IT(n), i = wE(n), a = r.every(({ diagnose: e }) => e === k.PORTRAIT_COMPARISON_NO_SERVICE_REPLY);
86196
+ return r.length ? /* @__PURE__ */ h(fq, {
86197
+ portraitsComparison: r,
86198
+ portraitsStatus: i.summary.portrait,
86175
86199
  imageViewer: e,
86176
- showDiagnose: i
86200
+ showDiagnose: a,
86201
+ downloadImage: t
86177
86202
  }) : null;
86178
86203
  }, mq = (e) => Number.isInteger(e) ? e : parseFloat(e.toFixed(2)), hq = {
86179
86204
  list: "_list_1jb30_1",