@jt-home/mfe-components 1.0.52 → 1.0.54

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.
@@ -1,6 +1,6 @@
1
- import { ref as B, isRef as ue, watch as $, defineComponent as s, openBlock as d, createElementBlock as p, createElementVNode as l, onBeforeUnmount as Y, h as r, computed as E, onMounted as ee, nextTick as _e, render as D } from "vue";
2
- import { ElIcon as O } from "element-plus";
3
- const ge = {
1
+ import { ref as j, isRef as ue, watch as $, defineComponent as x, openBlock as O, createElementBlock as N, createElementVNode as V, onBeforeUnmount as G, h as o, computed as E, onMounted as ee, nextTick as we, render as _ } from "vue";
2
+ import { ElIcon as J } from "element-plus";
3
+ const be = {
4
4
  common: {
5
5
  "PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js 无法读取该文件,已切换为浏览器内置预览",
6
6
  PDF加载中___: "PDF 加载中...",
@@ -56,7 +56,7 @@ const ge = {
56
56
  附件预览: "附件预览",
57
57
  附件预览未初始化: "附件预览未初始化"
58
58
  }
59
- }, be = {
59
+ }, ye = {
60
60
  common: {
61
61
  "PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js cannot read the file. It has been switched to browser built-in preview",
62
62
  PDF加载中___: "PDF loading...",
@@ -112,7 +112,7 @@ const ge = {
112
112
  附件预览: "Attachment Preview",
113
113
  附件预览未初始化: "Attachment preview not initialized"
114
114
  }
115
- }, ye = {
115
+ }, ke = {
116
116
  common: {
117
117
  "PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js ไม่สามารถอ่านไฟล์ได้ เปลี่ยนเป็นตัวอย่างในตัวเบราว์เซอร์",
118
118
  PDF加载中___: "กําลังโหลดไฟล์ PDF ...",
@@ -168,7 +168,7 @@ const ge = {
168
168
  附件预览: "เอกสารแนบตัวอย่าง",
169
169
  附件预览未初始化: "การแสดงตัวอย่างของสิ่งที่แนบมาไม่ได้เริ่มต้น"
170
170
  }
171
- }, xe = {
171
+ }, Pe = {
172
172
  common: {
173
173
  "PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js không thể đọc tập tin, đã chuyển sang trình duyệt built-in xem trước",
174
174
  PDF加载中___: "Đang tải PDF...",
@@ -224,7 +224,7 @@ const ge = {
224
224
  附件预览: "Xem trước tệp đính kèm",
225
225
  附件预览未初始化: "Bản xem trước đính kèm không được khởi tạo"
226
226
  }
227
- }, ke = {
227
+ }, _e = {
228
228
  common: {
229
229
  "PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js no puede leer este archivo, cambió a la vista previa integrada del navegador",
230
230
  PDF加载中___: "Carga de PDF...",
@@ -280,7 +280,7 @@ const ge = {
280
280
  附件预览: "Anexo Preview",
281
281
  附件预览未初始化: "Anexo Preview no inicializado"
282
282
  }
283
- }, Le = {
283
+ }, De = {
284
284
  common: {
285
285
  "PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js tidak dapat membaca file ini, telah beralih ke pratinjau built-in browser",
286
286
  PDF加载中___: "PDF sedang memuat...",
@@ -392,7 +392,7 @@ const ge = {
392
392
  附件预览: "Anhang Vorschau",
393
393
  附件预览未初始化: "Anlage Vorschau nicht initialisiert"
394
394
  }
395
- }, Pe = {
395
+ }, je = {
396
396
  common: {
397
397
  "PDF_js无法读取该文件,已切换为浏览器内置预览": "O PDF.js não pode ler o arquivo, mudou para a visualização integrada do navegador",
398
398
  PDF加载中___: "PDF Carregando...",
@@ -448,16 +448,16 @@ const ge = {
448
448
  附件预览: "Anexo Preview",
449
449
  附件预览未初始化: "Anexo Preview não inicializado"
450
450
  }
451
- }, De = {}, Ce = {
452
- "zh-cn": ge,
453
- en: be,
454
- th: ye,
455
- vi: xe,
456
- es: ke,
457
- id: Le,
451
+ }, Le = {}, Ee = {
452
+ "zh-cn": be,
453
+ en: ye,
454
+ th: ke,
455
+ vi: Pe,
456
+ es: _e,
457
+ id: De,
458
458
  de: Ae,
459
- pt: Pe,
460
- km: De
459
+ pt: je,
460
+ km: Le
461
461
  }, U = [
462
462
  { key: "zh", label: "简体中文", displayLabel: "简体中文", elementPlusLocale: "zh-cn" },
463
463
  { key: "en", label: "英语", displayLabel: "English", elementPlusLocale: "en" },
@@ -472,39 +472,25 @@ const ge = {
472
472
  Object.freeze(
473
473
  Object.fromEntries(U.map((e) => [e.key, e.elementPlusLocale]))
474
474
  );
475
- const je = Object.freeze({
476
- zh: "ZHS",
477
- en: "ENG",
478
- id: "IDN",
479
- pt: "POR",
480
- th: "THA",
481
- vi: "VIE",
482
- es: "ESP",
483
- de: "GER",
484
- km: "CAM"
485
- });
486
- Object.freeze(
487
- Object.fromEntries(Object.entries(je).map(([e, t]) => [t, e]))
488
- );
489
- function Be(e, t = {}) {
490
- const a = t.fallback ?? "zh", o = Ee(t.languageList), n = e.toLowerCase();
491
- return o.find((i) => i.key === n) ?? o.find((i) => i.key === a) ?? U[0];
475
+ function xe(e, t = {}) {
476
+ const a = t.fallback ?? "zh", r = Be(t.languageList), n = e.toLowerCase();
477
+ return r.find((i) => i.key === n) ?? r.find((i) => i.key === a) ?? U[0];
492
478
  }
493
- function Me(e, t = {}) {
494
- return Be(e, t).elementPlusLocale;
479
+ function Re(e, t = {}) {
480
+ return xe(e, t).elementPlusLocale;
495
481
  }
496
- function Ee(e) {
482
+ function Be(e) {
497
483
  return e != null && e.length ? e.map((t) => {
498
- const a = t.key ?? t.value, o = U.find((n) => n.key === a) ?? U[0];
484
+ const a = t.key ?? t.value, r = U.find((n) => n.key === a) ?? U[0];
499
485
  return {
500
- ...o,
486
+ ...r,
501
487
  ...t,
502
- key: o.key,
503
- elementPlusLocale: t.elementPlusLocale ?? o.elementPlusLocale
488
+ key: r.key,
489
+ elementPlusLocale: t.elementPlusLocale ?? r.elementPlusLocale
504
490
  };
505
491
  }) : U;
506
492
  }
507
- const ze = {
493
+ const Te = {
508
494
  "zh-hans": "zh",
509
495
  "zh-cn": "zh",
510
496
  cn: "zh",
@@ -518,471 +504,122 @@ const ze = {
518
504
  "pt-br": "pt",
519
505
  "km-kh": "km"
520
506
  };
521
- function H(e) {
507
+ function q(e) {
522
508
  const t = String(e || "zh-cn").trim().toLowerCase().replace(/_/g, "-");
523
- return Me(ze[t] || t) || "zh-cn";
509
+ return Re(Te[t] || t) || "zh-cn";
524
510
  }
525
- const T = B("zh-cn");
511
+ const C = j("zh-cn");
526
512
  let Q;
527
513
  function te() {
528
514
  Q?.(), Q = void 0;
529
515
  }
530
516
  function le(e) {
531
- return e ? typeof e == "function" ? H(e()) : ue(e) ? H(e.value) : H(e) : T.value;
517
+ return e ? typeof e == "function" ? q(e()) : ue(e) ? q(e.value) : q(e) : C.value;
532
518
  }
533
- function Re(e, t) {
519
+ function Ce(e, t) {
534
520
  if (e)
535
- return t.split(".").reduce((a, o) => {
521
+ return t.split(".").reduce((a, r) => {
536
522
  if (!(!a || typeof a != "object"))
537
- return a[o];
523
+ return a[r];
538
524
  }, e);
539
525
  }
540
526
  function se(e, t) {
541
- const a = Re(Ce[e], t);
527
+ const a = Ce(Ee[e], t);
542
528
  return typeof a == "string" ? a : void 0;
543
529
  }
544
530
  function Se(e, t) {
545
- return t ? e.replace(/\{(\w+)\}/g, (a, o) => {
546
- const n = t[o];
531
+ return t ? e.replace(/\{(\w+)\}/g, (a, r) => {
532
+ const n = t[r];
547
533
  return n == null ? a : String(n);
548
534
  }) : e;
549
535
  }
550
- function Ft(e) {
551
- te(), T.value = H(e);
536
+ function ft(e) {
537
+ te(), C.value = q(e);
552
538
  }
553
- function Vt() {
554
- return T.value;
539
+ function pt() {
540
+ return C.value;
555
541
  }
556
- function qt() {
557
- te(), T.value = "zh-cn";
542
+ function vt() {
543
+ te(), C.value = "zh-cn";
558
544
  }
559
- function It(e, t = {}) {
545
+ function ht(e, t = {}) {
560
546
  if (te(), t.locale) {
561
547
  if (typeof t.locale == "function" || ue(t.locale)) {
562
548
  Q = $(
563
549
  () => le(t.locale),
564
550
  (a) => {
565
- T.value = a;
551
+ C.value = a;
566
552
  },
567
553
  { immediate: !0, flush: "sync" }
568
554
  );
569
555
  return;
570
556
  }
571
- T.value = le(t.locale);
557
+ C.value = le(t.locale);
572
558
  }
573
559
  }
574
- function m(e, t = e, a) {
575
- const o = t || e, n = T.value, i = se(n, e) || se("zh-cn", e) || o || e;
560
+ function c(e, t = e, a) {
561
+ const r = t || e, n = C.value, i = se(n, e) || se("zh-cn", e) || r || e;
576
562
  return Se(i, a);
577
563
  }
578
564
  /*! Element Plus Icons Vue v2.3.2 */
579
- var Te = /* @__PURE__ */ s({
580
- name: "ArrowDown",
581
- __name: "arrow-down",
582
- setup(e) {
583
- return (t, a) => (d(), p("svg", {
584
- xmlns: "http://www.w3.org/2000/svg",
585
- viewBox: "0 0 1024 1024"
586
- }, [
587
- l("path", {
588
- fill: "currentColor",
589
- d: "M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"
590
- })
591
- ]));
592
- }
593
- }), Ut = Te, Fe = /* @__PURE__ */ s({
594
- name: "ArrowLeft",
595
- __name: "arrow-left",
596
- setup(e) {
597
- return (t, a) => (d(), p("svg", {
598
- xmlns: "http://www.w3.org/2000/svg",
599
- viewBox: "0 0 1024 1024"
600
- }, [
601
- l("path", {
602
- fill: "currentColor",
603
- d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
604
- })
605
- ]));
606
- }
607
- }), Jt = Fe, Ve = /* @__PURE__ */ s({
608
- name: "ArrowRight",
609
- __name: "arrow-right",
610
- setup(e) {
611
- return (t, a) => (d(), p("svg", {
612
- xmlns: "http://www.w3.org/2000/svg",
613
- viewBox: "0 0 1024 1024"
614
- }, [
615
- l("path", {
616
- fill: "currentColor",
617
- d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
618
- })
619
- ]));
620
- }
621
- }), Ot = Ve, qe = /* @__PURE__ */ s({
622
- name: "ArrowUp",
623
- __name: "arrow-up",
624
- setup(e) {
625
- return (t, a) => (d(), p("svg", {
626
- xmlns: "http://www.w3.org/2000/svg",
627
- viewBox: "0 0 1024 1024"
628
- }, [
629
- l("path", {
630
- fill: "currentColor",
631
- d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
632
- })
633
- ]));
634
- }
635
- }), Ht = qe;
636
- var Ie = /* @__PURE__ */ s({
637
- name: "Calendar",
638
- __name: "calendar",
639
- setup(e) {
640
- return (t, a) => (d(), p("svg", {
641
- xmlns: "http://www.w3.org/2000/svg",
642
- viewBox: "0 0 1024 1024"
643
- }, [
644
- l("path", {
645
- fill: "currentColor",
646
- d: "M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"
647
- })
648
- ]));
649
- }
650
- }), Nt = Ie;
651
- var Ue = /* @__PURE__ */ s({
652
- name: "Check",
653
- __name: "check",
654
- setup(e) {
655
- return (t, a) => (d(), p("svg", {
656
- xmlns: "http://www.w3.org/2000/svg",
657
- viewBox: "0 0 1024 1024"
658
- }, [
659
- l("path", {
660
- fill: "currentColor",
661
- d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
662
- })
663
- ]));
664
- }
665
- }), Yt = Ue;
666
- var Je = /* @__PURE__ */ s({
667
- name: "CircleCheck",
668
- __name: "circle-check",
669
- setup(e) {
670
- return (t, a) => (d(), p("svg", {
671
- xmlns: "http://www.w3.org/2000/svg",
672
- viewBox: "0 0 1024 1024"
673
- }, [
674
- l("path", {
675
- fill: "currentColor",
676
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
677
- }),
678
- l("path", {
679
- fill: "currentColor",
680
- d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"
681
- })
682
- ]));
683
- }
684
- }), Gt = Je, Oe = /* @__PURE__ */ s({
685
- name: "CircleCloseFilled",
686
- __name: "circle-close-filled",
687
- setup(e) {
688
- return (t, a) => (d(), p("svg", {
689
- xmlns: "http://www.w3.org/2000/svg",
690
- viewBox: "0 0 1024 1024"
691
- }, [
692
- l("path", {
693
- fill: "currentColor",
694
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
695
- })
696
- ]));
697
- }
698
- }), Kt = Oe, He = /* @__PURE__ */ s({
699
- name: "CircleClose",
700
- __name: "circle-close",
701
- setup(e) {
702
- return (t, a) => (d(), p("svg", {
703
- xmlns: "http://www.w3.org/2000/svg",
704
- viewBox: "0 0 1024 1024"
705
- }, [
706
- l("path", {
707
- fill: "currentColor",
708
- d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
709
- }),
710
- l("path", {
711
- fill: "currentColor",
712
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
713
- })
714
- ]));
715
- }
716
- }), Wt = He, Ne = /* @__PURE__ */ s({
717
- name: "Clock",
718
- __name: "clock",
719
- setup(e) {
720
- return (t, a) => (d(), p("svg", {
721
- xmlns: "http://www.w3.org/2000/svg",
722
- viewBox: "0 0 1024 1024"
723
- }, [
724
- l("path", {
725
- fill: "currentColor",
726
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
727
- }),
728
- l("path", {
729
- fill: "currentColor",
730
- d: "M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
731
- }),
732
- l("path", {
733
- fill: "currentColor",
734
- d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"
735
- })
736
- ]));
737
- }
738
- }), Qt = Ne, Ye = /* @__PURE__ */ s({
739
- name: "Close",
740
- __name: "close",
741
- setup(e) {
742
- return (t, a) => (d(), p("svg", {
743
- xmlns: "http://www.w3.org/2000/svg",
744
- viewBox: "0 0 1024 1024"
745
- }, [
746
- l("path", {
747
- fill: "currentColor",
748
- d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
749
- })
750
- ]));
751
- }
752
- }), Xt = Ye, Ge = /* @__PURE__ */ s({
753
- name: "DArrowLeft",
754
- __name: "d-arrow-left",
755
- setup(e) {
756
- return (t, a) => (d(), p("svg", {
757
- xmlns: "http://www.w3.org/2000/svg",
758
- viewBox: "0 0 1024 1024"
759
- }, [
760
- l("path", {
761
- fill: "currentColor",
762
- d: "M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"
763
- })
764
- ]));
765
- }
766
- }), Zt = Ge, Ke = /* @__PURE__ */ s({
767
- name: "DArrowRight",
768
- __name: "d-arrow-right",
769
- setup(e) {
770
- return (t, a) => (d(), p("svg", {
771
- xmlns: "http://www.w3.org/2000/svg",
772
- viewBox: "0 0 1024 1024"
773
- }, [
774
- l("path", {
775
- fill: "currentColor",
776
- d: "M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"
777
- })
778
- ]));
779
- }
780
- }), $t = Ke;
781
- var We = /* @__PURE__ */ s({
565
+ var ze = /* @__PURE__ */ x({
782
566
  name: "Download",
783
567
  __name: "download",
784
568
  setup(e) {
785
- return (t, a) => (d(), p("svg", {
569
+ return (t, a) => (O(), N("svg", {
786
570
  xmlns: "http://www.w3.org/2000/svg",
787
571
  viewBox: "0 0 1024 1024"
788
572
  }, [
789
- l("path", {
573
+ V("path", {
790
574
  fill: "currentColor",
791
575
  d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
792
576
  })
793
577
  ]));
794
578
  }
795
- }), Qe = We;
796
- var Xe = /* @__PURE__ */ s({
797
- name: "Hide",
798
- __name: "hide",
799
- setup(e) {
800
- return (t, a) => (d(), p("svg", {
801
- xmlns: "http://www.w3.org/2000/svg",
802
- viewBox: "0 0 1024 1024"
803
- }, [
804
- l("path", {
805
- fill: "currentColor",
806
- d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"
807
- }),
808
- l("path", {
809
- fill: "currentColor",
810
- d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"
811
- })
812
- ]));
813
- }
814
- }), ea = Xe, Ze = /* @__PURE__ */ s({
815
- name: "InfoFilled",
816
- __name: "info-filled",
817
- setup(e) {
818
- return (t, a) => (d(), p("svg", {
819
- xmlns: "http://www.w3.org/2000/svg",
820
- viewBox: "0 0 1024 1024"
821
- }, [
822
- l("path", {
823
- fill: "currentColor",
824
- d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
825
- })
826
- ]));
827
- }
828
- }), ta = Ze, $e = /* @__PURE__ */ s({
829
- name: "Loading",
830
- __name: "loading",
831
- setup(e) {
832
- return (t, a) => (d(), p("svg", {
833
- xmlns: "http://www.w3.org/2000/svg",
834
- viewBox: "0 0 1024 1024"
835
- }, [
836
- l("path", {
837
- fill: "currentColor",
838
- d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"
839
- })
840
- ]));
841
- }
842
- }), aa = $e, et = /* @__PURE__ */ s({
843
- name: "Minus",
844
- __name: "minus",
845
- setup(e) {
846
- return (t, a) => (d(), p("svg", {
847
- xmlns: "http://www.w3.org/2000/svg",
848
- viewBox: "0 0 1024 1024"
849
- }, [
850
- l("path", {
851
- fill: "currentColor",
852
- d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
853
- })
854
- ]));
855
- }
856
- }), na = et, tt = /* @__PURE__ */ s({
857
- name: "MoreFilled",
858
- __name: "more-filled",
859
- setup(e) {
860
- return (t, a) => (d(), p("svg", {
861
- xmlns: "http://www.w3.org/2000/svg",
862
- viewBox: "0 0 1024 1024"
863
- }, [
864
- l("path", {
865
- fill: "currentColor",
866
- d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
867
- })
868
- ]));
869
- }
870
- }), ra = tt;
871
- var at = /* @__PURE__ */ s({
872
- name: "Plus",
873
- __name: "plus",
874
- setup(e) {
875
- return (t, a) => (d(), p("svg", {
876
- xmlns: "http://www.w3.org/2000/svg",
877
- viewBox: "0 0 1024 1024"
878
- }, [
879
- l("path", {
880
- fill: "currentColor",
881
- d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
882
- })
883
- ]));
884
- }
885
- }), oa = at, nt = /* @__PURE__ */ s({
886
- name: "QuestionFilled",
887
- __name: "question-filled",
888
- setup(e) {
889
- return (t, a) => (d(), p("svg", {
890
- xmlns: "http://www.w3.org/2000/svg",
891
- viewBox: "0 0 1024 1024"
892
- }, [
893
- l("path", {
894
- fill: "currentColor",
895
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"
896
- })
897
- ]));
898
- }
899
- }), ia = nt, rt = /* @__PURE__ */ s({
579
+ }), Me = ze, Fe = /* @__PURE__ */ x({
900
580
  name: "RefreshLeft",
901
581
  __name: "refresh-left",
902
582
  setup(e) {
903
- return (t, a) => (d(), p("svg", {
583
+ return (t, a) => (O(), N("svg", {
904
584
  xmlns: "http://www.w3.org/2000/svg",
905
585
  viewBox: "0 0 1024 1024"
906
586
  }, [
907
- l("path", {
587
+ V("path", {
908
588
  fill: "currentColor",
909
589
  d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
910
590
  })
911
591
  ]));
912
592
  }
913
- }), ot = rt;
914
- var it = /* @__PURE__ */ s({
915
- name: "SuccessFilled",
916
- __name: "success-filled",
917
- setup(e) {
918
- return (t, a) => (d(), p("svg", {
919
- xmlns: "http://www.w3.org/2000/svg",
920
- viewBox: "0 0 1024 1024"
921
- }, [
922
- l("path", {
923
- fill: "currentColor",
924
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
925
- })
926
- ]));
927
- }
928
- }), la = it, lt = /* @__PURE__ */ s({
929
- name: "View",
930
- __name: "view",
931
- setup(e) {
932
- return (t, a) => (d(), p("svg", {
933
- xmlns: "http://www.w3.org/2000/svg",
934
- viewBox: "0 0 1024 1024"
935
- }, [
936
- l("path", {
937
- fill: "currentColor",
938
- d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
939
- })
940
- ]));
941
- }
942
- }), sa = lt, st = /* @__PURE__ */ s({
943
- name: "WarningFilled",
944
- __name: "warning-filled",
945
- setup(e) {
946
- return (t, a) => (d(), p("svg", {
947
- xmlns: "http://www.w3.org/2000/svg",
948
- viewBox: "0 0 1024 1024"
949
- }, [
950
- l("path", {
951
- fill: "currentColor",
952
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
953
- })
954
- ]));
955
- }
956
- }), ca = st, ct = /* @__PURE__ */ s({
593
+ }), Ue = Fe, Ie = /* @__PURE__ */ x({
957
594
  name: "ZoomIn",
958
595
  __name: "zoom-in",
959
596
  setup(e) {
960
- return (t, a) => (d(), p("svg", {
597
+ return (t, a) => (O(), N("svg", {
961
598
  xmlns: "http://www.w3.org/2000/svg",
962
599
  viewBox: "0 0 1024 1024"
963
600
  }, [
964
- l("path", {
601
+ V("path", {
965
602
  fill: "currentColor",
966
603
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
967
604
  })
968
605
  ]));
969
606
  }
970
- }), ut = ct, mt = /* @__PURE__ */ s({
607
+ }), Je = Ie, qe = /* @__PURE__ */ x({
971
608
  name: "ZoomOut",
972
609
  __name: "zoom-out",
973
610
  setup(e) {
974
- return (t, a) => (d(), p("svg", {
611
+ return (t, a) => (O(), N("svg", {
975
612
  xmlns: "http://www.w3.org/2000/svg",
976
613
  viewBox: "0 0 1024 1024"
977
614
  }, [
978
- l("path", {
615
+ V("path", {
979
616
  fill: "currentColor",
980
617
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
981
618
  })
982
619
  ]));
983
620
  }
984
- }), dt = mt;
985
- const pt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAAAAaVBMVEUAAABWapNVapKeqsLJztx3hKnGzN2yu8////9XapWcqMGps8lXapVYa5RWaZWps8lfcJjS1+KjrsVXapWapr////9sfaKrtMrV2uWBj7B4iKqWob1wgaXr7fOBj6/Ax9dhc5yhq8OKl7Wba+6tAAAAE3RSTlMAgGDuDyVLoYDe2XuXRb68cy6e4BCQEAAAAyZJREFUeNrt29tyokAUheGOQjIoeMhuCQ4e0Pd/yCE1STU4mGq7bXqzZ/23ufoqYblTqkIIIYQQQggNlM42Lzctf5nMD22bKQYVOQ30sTPt6dEO74mKXLoiCgDTi1RFbUMUBhZXluQUDKbnWxWtjMLB2pYqUjmFg8WUzSg0TL+rCKVZeJheRJj9DYWHRRnHbBSYnr+qcSsoKCyeLKcfK/emc2UqH4LFGMcVWVftTC4w/TbmhGQjwvR6RBmNAbMYx4nD7k/I1GF3ZZOH3RtHAbDhcZQAG5SJgOn1Vt0mAzYwIUJgvjJ/2OVo2pcmcoQZWehxpBGue5sJEQTryyTBeuMoCtadEFmwjkwYzIyjNJief02IONj3OAqE/ZVJhJnZj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MIUpTGEcFKYwEgpTGAmFKYyEwhRGQmEKI+EJy3YDCeeNdgOesMH4ZTgk4zfAoxi9GR6dsctwCfRD1sNnNm7HCmtuY8wRH42dZSXCL/CW5QQcmtoax4iLIuOglQkVpIHrPlzGPqCSNE8diT4FiIiIiIjIP2/v9e/hKQXqEwAAAABJRU5ErkJggg==", Ve = /* @__PURE__ */ new Set([
986
623
  "jpg",
987
624
  "jpeg",
988
625
  "png",
@@ -992,7 +629,7 @@ const pt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
992
629
  "svg",
993
630
  "avif",
994
631
  "ico"
995
- ]), ft = /* @__PURE__ */ new Set(["mp4", "webm", "ogg", "ogv", "mov", "m4v"]), wt = /* @__PURE__ */ new Set([
632
+ ]), Ge = /* @__PURE__ */ new Set(["mp4", "webm", "ogg", "ogv", "mov", "m4v"]), He = /* @__PURE__ */ new Set([
996
633
  "mp3",
997
634
  "wav",
998
635
  "ogg",
@@ -1000,7 +637,7 @@ const pt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
1000
637
  "m4a",
1001
638
  "aac",
1002
639
  "flac"
1003
- ]), _t = /* @__PURE__ */ new Set([
640
+ ]), Ke = /* @__PURE__ */ new Set([
1004
641
  "html",
1005
642
  "htm",
1006
643
  "txt",
@@ -1009,7 +646,7 @@ const pt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
1009
646
  "csv",
1010
647
  "md",
1011
648
  "log"
1012
- ]), gt = /* @__PURE__ */ new Set([
649
+ ]), We = /* @__PURE__ */ new Set([
1013
650
  "doc",
1014
651
  "docx",
1015
652
  "xls",
@@ -1027,31 +664,31 @@ const pt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
1027
664
  previewDownloadMode: "openByParams-uses-registered-downloadRequest",
1028
665
  downloadResponseMode: "supports-blob-and-axios-response-data-blob"
1029
666
  };
1030
- function _(e, t) {
667
+ function p(e, t) {
1031
668
  console.info(`[JtAttachmentPreview DEBUG ${X.marker}] ${e}`, {
1032
669
  ...X,
1033
670
  ...t
1034
671
  });
1035
672
  }
1036
- typeof window < "u" && (window.__JT_ATTACHMENT_PREVIEW_DEBUG__ = X, _("module-loaded"));
1037
- let C = null, K = null, j = null;
1038
- async function bt() {
673
+ typeof window < "u" && (window.__JT_ATTACHMENT_PREVIEW_DEBUG__ = X, p("module-loaded"));
674
+ let D = null, K = null, A = null;
675
+ async function Qe() {
1039
676
  return K || (K = Promise.all([
1040
677
  import("./pdf-BmBuG7of.js"),
1041
678
  import("./pdf.worker.min-4PI-nNLo.js")
1042
679
  ]).then(([e, t]) => (e.GlobalWorkerOptions.workerSrc = t.default, e))), K;
1043
680
  }
1044
- function yt(e) {
681
+ function Xe(e) {
1045
682
  return typeof e == "string" ? { url: e } : e;
1046
683
  }
1047
- function me(e) {
684
+ function de(e) {
1048
685
  const [t] = e.split(/[?#]/);
1049
686
  return t ?? "";
1050
687
  }
1051
688
  function ae(e, t) {
1052
689
  if (t?.trim()) return t.trim();
1053
- const a = me(e).split("/").filter(Boolean).pop();
1054
- if (!a) return m("common.附件预览");
690
+ const a = de(e).split("/").filter(Boolean).pop();
691
+ if (!a) return c("common.附件预览");
1055
692
  try {
1056
693
  return decodeURIComponent(a);
1057
694
  } catch {
@@ -1059,32 +696,32 @@ function ae(e, t) {
1059
696
  }
1060
697
  }
1061
698
  function Z(e) {
1062
- return me(e).match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase() ?? "";
699
+ return de(e).match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase() ?? "";
1063
700
  }
1064
- function xt(e) {
701
+ function Ze(e) {
1065
702
  return e?.trim().replace(/^\./, "").toLowerCase() ?? "";
1066
703
  }
1067
- function kt(e) {
1068
- const t = xt(e);
1069
- return ht.has(t) ? "image" : t === "pdf" ? "pdf" : ft.has(t) ? "video" : wt.has(t) ? "audio" : _t.has(t) ? "iframe" : gt.has(t) ? "unsupported" : "unknown";
704
+ function $e(e) {
705
+ const t = Ze(e);
706
+ return Ve.has(t) ? "image" : t === "pdf" ? "pdf" : Ge.has(t) ? "video" : He.has(t) ? "audio" : Ke.has(t) ? "iframe" : We.has(t) ? "unsupported" : "unknown";
1070
707
  }
1071
708
  function ne(e) {
1072
709
  const t = e.toLowerCase().split(";")[0]?.trim() ?? "";
1073
710
  return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" : t.startsWith("text/") ? "iframe" : "unknown";
1074
711
  }
1075
- function de(e) {
712
+ function me(e) {
1076
713
  if (!e.url.trim()) return "empty";
1077
714
  if (e.mode && e.mode !== "auto") return e.mode;
1078
715
  if (e.mimeType) {
1079
716
  const a = ne(e.mimeType);
1080
717
  if (a !== "unknown") return a;
1081
718
  }
1082
- const t = kt(
719
+ const t = $e(
1083
720
  e.extension || Z(e.name || "") || Z(e.url)
1084
721
  );
1085
722
  return t !== "unknown" ? t : "unknown";
1086
723
  }
1087
- async function Lt(e) {
724
+ async function et(e) {
1088
725
  try {
1089
726
  const a = (await fetch(e, { method: "HEAD" })).headers.get("content-type") ?? "";
1090
727
  return ne(a);
@@ -1092,54 +729,54 @@ async function Lt(e) {
1092
729
  return "unknown";
1093
730
  }
1094
731
  }
1095
- async function pe(e, t) {
732
+ async function fe(e, t) {
1096
733
  const a = await fetch(e, t);
1097
734
  if (!a.ok) throw new Error(`fetch failed: ${a.status}`);
1098
735
  return a.blob();
1099
736
  }
1100
- async function At(e) {
1101
- _("fetch-pdf-bytes-start", {
737
+ async function tt(e) {
738
+ p("fetch-pdf-bytes-start", {
1102
739
  url: e
1103
740
  });
1104
741
  const t = await fetch(e);
1105
742
  if (!t.ok) throw new Error(`fetch failed: ${t.status}`);
1106
743
  const a = new Uint8Array(await t.arrayBuffer());
1107
- return _("fetch-pdf-bytes-done", {
744
+ return p("fetch-pdf-bytes-done", {
1108
745
  url: e,
1109
746
  byteLength: a.byteLength,
1110
747
  contentType: t.headers.get("content-type") ?? ""
1111
748
  }), a;
1112
749
  }
1113
- function Pt(e, t) {
750
+ function at(e, t) {
1114
751
  const a = Z(t);
1115
752
  return a === "doc" || a === "docx" ? "W" : a === "xls" || a === "xlsx" ? "X" : a === "ppt" || a === "pptx" ? "P" : a === "zip" || a === "rar" || a === "7z" ? "ZIP" : e === "pdf" ? "PDF" : "FILE";
1116
753
  }
1117
- function ve(e, t, a, o = !1) {
1118
- return r(
754
+ function pe(e, t, a, r = !1) {
755
+ return o(
1119
756
  "button",
1120
757
  {
1121
758
  class: a,
1122
759
  type: "button",
1123
760
  onClick: () => {
1124
- _("download-button-click", {
761
+ p("download-button-click", {
1125
762
  url: e.url,
1126
763
  downloadName: t,
1127
- fallbackToRawUrl: o
1128
- }), fe(e, t, {
1129
- fallbackToRawUrl: o
764
+ fallbackToRawUrl: r
765
+ }), he(e, t, {
766
+ fallbackToRawUrl: r
1130
767
  });
1131
768
  }
1132
769
  },
1133
770
  [
1134
- r(
1135
- O,
771
+ o(
772
+ J,
1136
773
  { class: "jt-attachment-preview-service__download-icon" },
1137
- () => r(Qe)
774
+ () => o(Me)
1138
775
  ),
1139
- r(
776
+ o(
1140
777
  "span",
1141
778
  { class: "jt-attachment-preview-service__download-text" },
1142
- m("common.下载")
779
+ c("common.下载")
1143
780
  )
1144
781
  ]
1145
782
  );
@@ -1147,22 +784,22 @@ function ve(e, t, a, o = !1) {
1147
784
  function W(e) {
1148
785
  return e === "image" || e === "pdf";
1149
786
  }
1150
- function he(e) {
1151
- return r(
787
+ function ve(e) {
788
+ return o(
1152
789
  "div",
1153
790
  { class: "jt-attachment-preview-service__preview-fallback" },
1154
791
  [
1155
- r("img", {
792
+ o("img", {
1156
793
  class: "jt-attachment-preview-service__preview-fallback-icon",
1157
794
  src: e.icon,
1158
795
  alt: ""
1159
796
  }),
1160
- r(
797
+ o(
1161
798
  "div",
1162
799
  { class: "jt-attachment-preview-service__unsupported-text" },
1163
- m("common.暂不支持预览此类型的文件")
800
+ c("common.暂不支持预览此类型的文件")
1164
801
  ),
1165
- r(
802
+ o(
1166
803
  "div",
1167
804
  {
1168
805
  class: "jt-attachment-preview-service__file-name",
@@ -1173,53 +810,53 @@ function he(e) {
1173
810
  ]
1174
811
  );
1175
812
  }
1176
- function re(e, t) {
813
+ function oe(e, t) {
1177
814
  const a = document.createElement("a");
1178
815
  a.href = e, a.download = t, a.style.display = "none", document.body.appendChild(a), a.click(), a.remove();
1179
816
  }
1180
- function oe(e, t) {
817
+ function re(e, t) {
1181
818
  const a = URL.createObjectURL(e);
1182
- re(a, t), window.setTimeout(() => URL.revokeObjectURL(a), 1e3);
819
+ oe(a, t), window.setTimeout(() => URL.revokeObjectURL(a), 1e3);
1183
820
  }
1184
- function N(e) {
821
+ function Y(e) {
1185
822
  return e instanceof Blob || Object.prototype.toString.call(e) === "[object Blob]";
1186
823
  }
1187
- function Dt(e, t) {
1188
- if (N(e))
824
+ function nt(e, t) {
825
+ if (Y(e))
1189
826
  return e;
1190
827
  if (e && typeof e == "object") {
1191
828
  const a = e;
1192
- if (N(a.data)) {
1193
- const o = a.data;
829
+ if (Y(a.data)) {
830
+ const r = a.data;
1194
831
  return {
1195
832
  blob: a.data,
1196
- name: a.fileName || a.name || o.name || t
833
+ name: a.fileName || a.name || r.name || t
1197
834
  };
1198
835
  }
1199
836
  }
1200
837
  return null;
1201
838
  }
1202
- async function Ct(e, t, a = {}) {
1203
- _("download-start", {
839
+ async function ot(e, t, a = {}) {
840
+ p("download-start", {
1204
841
  url: e,
1205
842
  downloadName: t,
1206
843
  fallbackToRawUrl: !!a.fallbackToRawUrl,
1207
844
  hasRequestInit: !!a.requestInit
1208
845
  });
1209
846
  try {
1210
- const o = await pe(e, a.requestInit);
1211
- _("download-blob-ready", {
847
+ const r = await fe(e, a.requestInit);
848
+ p("download-blob-ready", {
1212
849
  url: e,
1213
850
  downloadName: t,
1214
- blobType: o.type,
1215
- blobSize: o.size
1216
- }), oe(o, t);
851
+ blobType: r.type,
852
+ blobSize: r.size
853
+ }), re(r, t);
1217
854
  } catch {
1218
- _("download-blob-failed", {
855
+ p("download-blob-failed", {
1219
856
  url: e,
1220
857
  downloadName: t,
1221
858
  fallbackToRawUrl: !!a.fallbackToRawUrl
1222
- }), a.fallbackToRawUrl && re(e, t);
859
+ }), a.fallbackToRawUrl && oe(e, t);
1223
860
  }
1224
861
  }
1225
862
  function ce(e, t) {
@@ -1231,8 +868,8 @@ function ce(e, t) {
1231
868
  fallbackToRawUrl: e.fallbackToRawUrl
1232
869
  } : null;
1233
870
  }
1234
- async function fe(e, t, a = {}) {
1235
- const o = {
871
+ async function he(e, t, a = {}) {
872
+ const r = {
1236
873
  url: e.url,
1237
874
  name: t,
1238
875
  params: e.requestParams,
@@ -1240,64 +877,64 @@ async function fe(e, t, a = {}) {
1240
877
  };
1241
878
  try {
1242
879
  let n = null;
1243
- if (_("download-resolve-start", {
880
+ if (p("download-resolve-start", {
1244
881
  url: e.url,
1245
882
  downloadName: t,
1246
883
  hasCustomDownload: !!e.download,
1247
- hasRegisteredDownload: !!j?.downloadRequest,
884
+ hasRegisteredDownload: !!A?.downloadRequest,
1248
885
  useRegisteredDownload: !!e.useRegisteredDownload,
1249
886
  hasRequestParams: Object.prototype.hasOwnProperty.call(
1250
887
  e,
1251
888
  "requestParams"
1252
889
  )
1253
890
  }), e.download) {
1254
- _("download-custom-handler-start", {
891
+ p("download-custom-handler-start", {
1255
892
  url: e.url,
1256
893
  downloadName: t
1257
894
  });
1258
- const c = await e.download(o);
1259
- if (n = ce(c, t), !n) {
1260
- _("download-custom-handler-done", {
895
+ const l = await e.download(r);
896
+ if (n = ce(l, t), !n) {
897
+ p("download-custom-handler-done", {
1261
898
  url: e.url,
1262
899
  downloadName: t
1263
900
  });
1264
901
  return;
1265
902
  }
1266
- } else if (e.useRegisteredDownload && j?.downloadRequest) {
1267
- _("download-setup-request-start", {
903
+ } else if (e.useRegisteredDownload && A?.downloadRequest) {
904
+ p("download-setup-request-start", {
1268
905
  url: e.url,
1269
906
  downloadName: t,
1270
907
  params: e.requestParams
1271
908
  });
1272
- const c = await j.downloadRequest(
909
+ const l = await A.downloadRequest(
1273
910
  e.requestParams
1274
911
  );
1275
- _("download-request-response", {
1276
- isBlob: N(c),
1277
- isDataBlob: !!c && typeof c == "object" && N(c.data),
1278
- responseType: Object.prototype.toString.call(c)
912
+ p("download-request-response", {
913
+ isBlob: Y(l),
914
+ isDataBlob: !!l && typeof l == "object" && Y(l.data),
915
+ responseType: Object.prototype.toString.call(l)
1279
916
  });
1280
- const b = Dt(c, t), w = b || (j.mapDownloadResponse ? j.mapDownloadResponse(
1281
- c,
917
+ const h = nt(l, t), f = h || (A.mapDownloadResponse ? A.mapDownloadResponse(
918
+ l,
1282
919
  e.requestParams
1283
- ) : c);
1284
- n = ce(w, t);
920
+ ) : l);
921
+ n = ce(f, t);
1285
922
  }
1286
923
  if (n?.blob) {
1287
- _("download-result-blob", {
924
+ p("download-result-blob", {
1288
925
  downloadName: n.name,
1289
926
  blobType: n.blob.type,
1290
927
  blobSize: n.blob.size
1291
- }), oe(n.blob, n.name);
928
+ }), re(n.blob, n.name);
1292
929
  return;
1293
930
  }
1294
- const i = n?.url || e.downloadUrl || e.url, v = n?.name || t;
1295
- await Ct(i, v, {
931
+ const i = n?.url || e.downloadUrl || e.url, u = n?.name || t;
932
+ await ot(i, u, {
1296
933
  requestInit: n?.requestInit || e.downloadRequestInit,
1297
934
  fallbackToRawUrl: n?.fallbackToRawUrl ?? e.downloadFallbackToRawUrl ?? a.fallbackToRawUrl
1298
935
  });
1299
936
  } catch (n) {
1300
- _("download-handler-failed", {
937
+ p("download-handler-failed", {
1301
938
  url: e.url,
1302
939
  downloadName: t,
1303
940
  errorName: n instanceof Error ? n.name : "",
@@ -1308,10 +945,10 @@ async function fe(e, t, a = {}) {
1308
945
  n.response?.data
1309
946
  ) : void 0,
1310
947
  errorResponseDataType: n && typeof n == "object" ? n.response?.data?.type : void 0
1311
- }), a.fallbackToRawUrl && re(e.downloadUrl || e.url, t);
948
+ }), a.fallbackToRawUrl && oe(e.downloadUrl || e.url, t);
1312
949
  }
1313
950
  }
1314
- const jt = s({
951
+ const rt = x({
1315
952
  name: "JtAttachmentPreviewPdfCanvas",
1316
953
  props: {
1317
954
  url: {
@@ -1336,99 +973,99 @@ const jt = s({
1336
973
  previewError: (e) => e instanceof Event
1337
974
  },
1338
975
  setup(e, { emit: t }) {
1339
- const a = B("loading"), o = B([]), n = B([]), i = /* @__PURE__ */ new Map(), v = B("");
1340
- let c = null, b = [], w = 0;
1341
- async function g(u, h) {
1342
- if (!h) return null;
1343
- const x = typeof h == "string" ? await u.getDestination(h) : h;
1344
- return !Array.isArray(x) || !x[0] ? null : await u.getPageIndex(x[0]) + 1;
976
+ const a = j("loading"), r = j([]), n = j([]), i = /* @__PURE__ */ new Map(), u = j("");
977
+ let l = null, h = [], f = 0;
978
+ async function v(s, d) {
979
+ if (!d) return null;
980
+ const w = typeof d == "string" ? await s.getDestination(d) : d;
981
+ return !Array.isArray(w) || !w[0] ? null : await s.getPageIndex(w[0]) + 1;
1345
982
  }
1346
- async function A(u, h, x = 0) {
1347
- if (!h?.length) return [];
1348
- const k = [];
1349
- for (const M of h) {
1350
- const F = await g(u, M.dest);
1351
- k.push({
1352
- title: M.title || m("common.未命名标题"),
1353
- pageNumber: F,
1354
- level: x
983
+ async function k(s, d, w = 0) {
984
+ if (!d?.length) return [];
985
+ const b = [];
986
+ for (const L of d) {
987
+ const S = await v(s, L.dest);
988
+ b.push({
989
+ title: L.title || c("common.未命名标题"),
990
+ pageNumber: S,
991
+ level: w
1355
992
  });
1356
- const R = await A(u, M.items, x + 1);
1357
- k.push(...R);
993
+ const B = await k(s, L.items, w + 1);
994
+ b.push(...B);
1358
995
  }
1359
- return k;
996
+ return b;
1360
997
  }
1361
- function y() {
1362
- w += 1;
1363
- for (const u of b)
1364
- u.cancel();
1365
- b = [], c?.destroy(), c = null, i.clear();
998
+ function g() {
999
+ f += 1;
1000
+ for (const s of h)
1001
+ s.cancel();
1002
+ h = [], l?.destroy(), l = null, i.clear();
1366
1003
  }
1367
- async function z() {
1368
- y();
1369
- const u = w;
1370
- a.value = "loading", v.value = "", o.value = [], n.value = [];
1004
+ async function R() {
1005
+ g();
1006
+ const s = f;
1007
+ a.value = "loading", u.value = "", r.value = [], n.value = [];
1371
1008
  try {
1372
- const h = await bt();
1373
- if (u !== w) return;
1374
- const x = await At(e.url);
1375
- if (u !== w) return;
1376
- _("render-pdf-get-document-data", {
1377
- byteLength: x.byteLength
1378
- }), c = h.getDocument({ data: x });
1379
- const k = await c.promise;
1380
- if (u !== w) return;
1381
- o.value = Array.from(
1382
- { length: k.numPages },
1383
- (R, S) => S + 1
1384
- ), n.value = await A(
1385
- k,
1386
- await k.getOutline()
1387
- ), await _e();
1388
- const M = i.values().next().value, F = Math.max(
1389
- (M?.parentElement?.clientWidth ?? 800) - 32,
1009
+ const d = await Qe();
1010
+ if (s !== f) return;
1011
+ const w = await tt(e.url);
1012
+ if (s !== f) return;
1013
+ p("render-pdf-get-document-data", {
1014
+ byteLength: w.byteLength
1015
+ }), l = d.getDocument({ data: w });
1016
+ const b = await l.promise;
1017
+ if (s !== f) return;
1018
+ r.value = Array.from(
1019
+ { length: b.numPages },
1020
+ (B, T) => T + 1
1021
+ ), n.value = await k(
1022
+ b,
1023
+ await b.getOutline()
1024
+ ), await we();
1025
+ const L = i.values().next().value, S = Math.max(
1026
+ (L?.parentElement?.clientWidth ?? 800) - 32,
1390
1027
  320
1391
1028
  );
1392
- for (const R of o.value) {
1393
- if (u !== w) return;
1394
- const S = await k.getPage(R), L = i.get(R), V = L?.getContext("2d");
1395
- if (!L || !V) continue;
1396
- const G = S.getViewport({ scale: 1 }), f = Math.min(F / G.width, 2), q = S.getViewport({ scale: f }), J = window.devicePixelRatio || 1;
1397
- L.width = Math.floor(q.width * J), L.height = Math.floor(q.height * J), L.style.width = `${Math.floor(q.width)}px`, L.style.height = `${Math.floor(q.height)}px`, V.setTransform(J, 0, 0, J, 0, 0);
1398
- const ie = S.render({
1399
- canvas: L,
1400
- canvasContext: V,
1401
- viewport: q
1029
+ for (const B of r.value) {
1030
+ if (s !== f) return;
1031
+ const T = await b.getPage(B), y = i.get(B), z = y?.getContext("2d");
1032
+ if (!y || !z) continue;
1033
+ const H = T.getViewport({ scale: 1 }), m = Math.min(S / H.width, 2), M = T.getViewport({ scale: m }), I = window.devicePixelRatio || 1;
1034
+ y.width = Math.floor(M.width * I), y.height = Math.floor(M.height * I), y.style.width = `${Math.floor(M.width)}px`, y.style.height = `${Math.floor(M.height)}px`, z.setTransform(I, 0, 0, I, 0, 0);
1035
+ const ie = T.render({
1036
+ canvas: y,
1037
+ canvasContext: z,
1038
+ viewport: M
1402
1039
  });
1403
- b.push(ie), await ie.promise;
1040
+ h.push(ie), await ie.promise;
1404
1041
  }
1405
- if (u !== w) return;
1042
+ if (s !== f) return;
1406
1043
  a.value = "ready", t("previewLoad", new Event("load"));
1407
- } catch (h) {
1408
- if (u !== w) return;
1409
- a.value = "error", v.value = h instanceof Error ? h.message : m("common.PDF加载失败"), t("previewError", new Event("error"));
1044
+ } catch (d) {
1045
+ if (s !== f) return;
1046
+ a.value = "error", u.value = d instanceof Error ? d.message : c("common.PDF加载失败"), t("previewError", new Event("error"));
1410
1047
  }
1411
1048
  }
1412
- $(() => e.url, z, { immediate: !0 }), Y(y);
1413
- function P(u) {
1414
- if (!u) return;
1415
- i.get(u)?.scrollIntoView({ behavior: "smooth", block: "start" });
1049
+ $(() => e.url, R, { immediate: !0 }), G(g);
1050
+ function P(s) {
1051
+ if (!s) return;
1052
+ i.get(s)?.scrollIntoView({ behavior: "smooth", block: "start" });
1416
1053
  }
1417
- return () => r("div", { class: "jt-attachment-preview-service__pdf-viewer" }, [
1418
- a.value === "loading" ? r(
1054
+ return () => o("div", { class: "jt-attachment-preview-service__pdf-viewer" }, [
1055
+ a.value === "loading" ? o(
1419
1056
  "div",
1420
1057
  { class: "jt-attachment-preview-service__pdf-state" },
1421
- m("common.PDF加载中___")
1058
+ c("common.PDF加载中___")
1422
1059
  ) : null,
1423
- a.value === "error" ? r("div", { class: "jt-attachment-preview-service__pdf-state" }, [
1424
- he({
1425
- icon: vt,
1060
+ a.value === "error" ? o("div", { class: "jt-attachment-preview-service__pdf-state" }, [
1061
+ ve({
1062
+ icon: Ne,
1426
1063
  name: e.name
1427
1064
  })
1428
1065
  ]) : null,
1429
1066
  null,
1430
1067
  null,
1431
- r(
1068
+ o(
1432
1069
  "div",
1433
1070
  {
1434
1071
  class: [
@@ -1437,48 +1074,48 @@ const jt = s({
1437
1074
  ]
1438
1075
  },
1439
1076
  [
1440
- n.value.length ? r(
1077
+ n.value.length ? o(
1441
1078
  "aside",
1442
1079
  { class: "jt-attachment-preview-service__pdf-outline" },
1443
1080
  [
1444
- r(
1081
+ o(
1445
1082
  "div",
1446
1083
  {
1447
1084
  class: "jt-attachment-preview-service__pdf-outline-title"
1448
1085
  },
1449
- m("common.目录")
1086
+ c("common.目录")
1450
1087
  ),
1451
- r(
1088
+ o(
1452
1089
  "div",
1453
1090
  {
1454
1091
  class: "jt-attachment-preview-service__pdf-outline-list"
1455
1092
  },
1456
1093
  n.value.map(
1457
- (u, h) => r(
1094
+ (s, d) => o(
1458
1095
  "button",
1459
1096
  {
1460
- key: `${u.title}-${h}`,
1097
+ key: `${s.title}-${d}`,
1461
1098
  class: "jt-attachment-preview-service__pdf-outline-item",
1462
- style: { paddingLeft: `${12 + u.level * 14}px` },
1099
+ style: { paddingLeft: `${12 + s.level * 14}px` },
1463
1100
  type: "button",
1464
- disabled: !u.pageNumber,
1465
- title: u.title,
1466
- onClick: () => P(u.pageNumber)
1101
+ disabled: !s.pageNumber,
1102
+ title: s.title,
1103
+ onClick: () => P(s.pageNumber)
1467
1104
  },
1468
- u.title
1105
+ s.title
1469
1106
  )
1470
1107
  )
1471
1108
  )
1472
1109
  ]
1473
1110
  ) : null,
1474
- r(
1111
+ o(
1475
1112
  "div",
1476
1113
  { class: "jt-attachment-preview-service__pdf-pages" },
1477
- o.value.map(
1478
- (u) => r("canvas", {
1479
- key: u,
1480
- ref: (h) => {
1481
- h instanceof HTMLCanvasElement && i.set(u, h);
1114
+ r.value.map(
1115
+ (s) => o("canvas", {
1116
+ key: s,
1117
+ ref: (d) => {
1118
+ d instanceof HTMLCanvasElement && i.set(s, d);
1482
1119
  },
1483
1120
  class: "jt-attachment-preview-service__pdf-page"
1484
1121
  })
@@ -1488,7 +1125,7 @@ const jt = s({
1488
1125
  )
1489
1126
  ]);
1490
1127
  }
1491
- }), Bt = s({
1128
+ }), it = x({
1492
1129
  name: "JtAttachmentPreviewImageTransform",
1493
1130
  props: {
1494
1131
  url: {
@@ -1517,68 +1154,68 @@ const jt = s({
1517
1154
  previewError: (e) => e instanceof Event
1518
1155
  },
1519
1156
  setup(e, { emit: t }) {
1520
- const a = B(null), o = B("ready"), n = B(1), i = B(!1);
1521
- let v = 0, c = 0, b = 0, w = 0, g = 0, A = 0, y = 0;
1522
- const z = E(
1157
+ const a = j(null), r = j("ready"), n = j(1), i = j(!1);
1158
+ let u = 0, l = 0, h = 0, f = 0, v = 0, k = 0, g = 0;
1159
+ const R = E(
1523
1160
  () => ({
1524
1161
  "--jt-attachment-preview-service-image-fit": e.fit,
1525
- transform: `translate(${v}px, ${c}px) scale(${n.value})`
1162
+ transform: `translate(${u}px, ${l}px) scale(${n.value})`
1526
1163
  })
1527
1164
  );
1528
1165
  function P() {
1529
- a.value && (a.value.style.transform = `translate(${v}px, ${c}px) scale(${n.value})`);
1166
+ a.value && (a.value.style.transform = `translate(${u}px, ${l}px) scale(${n.value})`);
1530
1167
  }
1531
- function u() {
1532
- y || (y = window.requestAnimationFrame(() => {
1533
- y = 0, P();
1168
+ function s() {
1169
+ g || (g = window.requestAnimationFrame(() => {
1170
+ g = 0, P();
1534
1171
  }));
1535
1172
  }
1536
- function h(f) {
1537
- n.value = Math.min(Math.max(Number(f.toFixed(2)), 0.2), 5), n.value <= 1 && (v = 0, c = 0), P();
1173
+ function d(m) {
1174
+ n.value = Math.min(Math.max(Number(m.toFixed(2)), 0.2), 5), n.value <= 1 && (u = 0, l = 0), P();
1538
1175
  }
1539
- function x() {
1540
- h(n.value + 0.2);
1176
+ function w() {
1177
+ d(n.value + 0.2);
1541
1178
  }
1542
- function k() {
1543
- const f = Math.max(Number((n.value - 0.2).toFixed(2)), 0.2);
1544
- n.value = f, f <= 1 && (v = 0, c = 0), P();
1179
+ function b() {
1180
+ const m = Math.max(Number((n.value - 0.2).toFixed(2)), 0.2);
1181
+ n.value = m, m <= 1 && (u = 0, l = 0), P();
1545
1182
  }
1546
- function M() {
1547
- v = 0, c = 0, h(1);
1183
+ function L() {
1184
+ u = 0, l = 0, d(1);
1548
1185
  }
1549
- function F(f) {
1550
- o.value = "ready", t("previewLoad", f);
1186
+ function S(m) {
1187
+ r.value = "ready", t("previewLoad", m);
1551
1188
  }
1552
- function R(f) {
1553
- o.value = "error", t("previewError", f);
1189
+ function B(m) {
1190
+ r.value = "error", t("previewError", m);
1554
1191
  }
1555
- function S(f) {
1556
- n.value <= 1 || (f.preventDefault(), i.value = !0, b = f.clientX, w = f.clientY, g = v, A = c, window.addEventListener("pointermove", L), window.addEventListener("pointerup", V, { once: !0 }));
1192
+ function T(m) {
1193
+ n.value <= 1 || (m.preventDefault(), i.value = !0, h = m.clientX, f = m.clientY, v = u, k = l, window.addEventListener("pointermove", y), window.addEventListener("pointerup", z, { once: !0 }));
1557
1194
  }
1558
- function L(f) {
1559
- i.value && (v = g + f.clientX - b, c = A + f.clientY - w, u());
1195
+ function y(m) {
1196
+ i.value && (u = v + m.clientX - h, l = k + m.clientY - f, s());
1560
1197
  }
1561
- function V() {
1562
- i.value = !1, window.removeEventListener("pointermove", L);
1198
+ function z() {
1199
+ i.value = !1, window.removeEventListener("pointermove", y);
1563
1200
  }
1564
- function G(f) {
1565
- f.preventDefault(), h(n.value + (f.deltaY < 0 ? 0.1 : -0.1));
1201
+ function H(m) {
1202
+ m.preventDefault(), d(n.value + (m.deltaY < 0 ? 0.1 : -0.1));
1566
1203
  }
1567
1204
  return ee(P), $(
1568
1205
  () => e.url,
1569
1206
  () => {
1570
- o.value = "ready", M();
1207
+ r.value = "ready", L();
1571
1208
  }
1572
- ), Y(() => {
1573
- window.removeEventListener("pointermove", L), y && window.cancelAnimationFrame(y);
1574
- }), () => r(
1209
+ ), G(() => {
1210
+ window.removeEventListener("pointermove", y), g && window.cancelAnimationFrame(g);
1211
+ }), () => o(
1575
1212
  "div",
1576
1213
  { class: "jt-attachment-preview-service__image-viewer" },
1577
- o.value === "error" ? he({
1578
- icon: pt,
1214
+ r.value === "error" ? ve({
1215
+ icon: Oe,
1579
1216
  name: e.name
1580
1217
  }) : [
1581
- r("img", {
1218
+ o("img", {
1582
1219
  ref: a,
1583
1220
  class: [
1584
1221
  "jt-attachment-preview-service__media",
@@ -1588,59 +1225,59 @@ const jt = s({
1588
1225
  ],
1589
1226
  src: e.url,
1590
1227
  alt: e.name,
1591
- style: z.value,
1592
- onLoad: F,
1593
- onError: R,
1594
- onPointerdown: S,
1595
- onWheel: G,
1596
- onDragstart: (f) => f.preventDefault(),
1228
+ style: R.value,
1229
+ onLoad: S,
1230
+ onError: B,
1231
+ onPointerdown: T,
1232
+ onWheel: H,
1233
+ onDragstart: (m) => m.preventDefault(),
1597
1234
  draggable: !1
1598
1235
  }),
1599
- r(
1236
+ o(
1600
1237
  "div",
1601
1238
  { class: "jt-attachment-preview-service__image-toolbar" },
1602
1239
  [
1603
- r(
1240
+ o(
1604
1241
  "button",
1605
1242
  {
1606
1243
  class: "jt-attachment-preview-service__image-tool",
1607
1244
  type: "button",
1608
- title: m("common.缩小"),
1609
- onClick: k
1245
+ title: c("common.缩小"),
1246
+ onClick: b
1610
1247
  },
1611
- [r(O, () => r(dt))]
1248
+ [o(J, () => o(Ye))]
1612
1249
  ),
1613
- r(
1250
+ o(
1614
1251
  "span",
1615
1252
  { class: "jt-attachment-preview-service__image-scale" },
1616
1253
  `${Math.round(n.value * 100)}%`
1617
1254
  ),
1618
- r(
1255
+ o(
1619
1256
  "button",
1620
1257
  {
1621
1258
  class: "jt-attachment-preview-service__image-tool",
1622
1259
  type: "button",
1623
- title: m("common.放大"),
1624
- onClick: x
1260
+ title: c("common.放大"),
1261
+ onClick: w
1625
1262
  },
1626
- [r(O, () => r(ut))]
1263
+ [o(J, () => o(Je))]
1627
1264
  ),
1628
- r(
1265
+ o(
1629
1266
  "button",
1630
1267
  {
1631
1268
  class: "jt-attachment-preview-service__image-tool",
1632
1269
  type: "button",
1633
- title: m("common.复位"),
1634
- onClick: M
1270
+ title: c("common.复位"),
1271
+ onClick: L
1635
1272
  },
1636
- [r(O, () => r(ot))]
1273
+ [o(J, () => o(Ue))]
1637
1274
  )
1638
1275
  ]
1639
1276
  )
1640
1277
  ]
1641
1278
  );
1642
1279
  }
1643
- }), Mt = s({
1280
+ }), lt = x({
1644
1281
  name: "JtAttachmentPreviewService",
1645
1282
  props: {
1646
1283
  options: {
@@ -1657,45 +1294,45 @@ const jt = s({
1657
1294
  () => ae(e.options.url, e.options.name)
1658
1295
  ), a = E(
1659
1296
  () => e.options.downloadName || t.value
1660
- ), o = E(() => de(e.options)), n = E(
1661
- () => Pt(o.value, e.options.url)
1297
+ ), r = E(() => me(e.options)), n = E(
1298
+ () => at(r.value, e.options.url)
1662
1299
  ), i = E(
1663
1300
  () => ({
1664
1301
  zIndex: e.options.zIndex ?? 3e3,
1665
1302
  "--jt-attachment-preview-service-image-fit": e.options.fit ?? "contain"
1666
1303
  })
1667
1304
  );
1668
- function v() {
1305
+ function u() {
1669
1306
  e.options.onClose?.(), e.onDestroy();
1670
1307
  }
1671
- function c(g) {
1672
- g.key === "Escape" && e.options.closeOnPressEscape !== !1 && v();
1308
+ function l(v) {
1309
+ v.key === "Escape" && e.options.closeOnPressEscape !== !1 && u();
1673
1310
  }
1674
- function b(g) {
1675
- e.options.onLoad?.(g);
1311
+ function h(v) {
1312
+ e.options.onLoad?.(v);
1676
1313
  }
1677
- function w(g) {
1678
- e.options.onError?.(g);
1314
+ function f(v) {
1315
+ e.options.onError?.(v);
1679
1316
  }
1680
1317
  return ee(() => {
1681
- document.addEventListener("keydown", c), document.body.classList.add("jt-attachment-preview-service-lock");
1682
- }), Y(() => {
1683
- document.removeEventListener("keydown", c), document.body.classList.remove("jt-attachment-preview-service-lock");
1318
+ document.addEventListener("keydown", l), document.body.classList.add("jt-attachment-preview-service-lock");
1319
+ }), G(() => {
1320
+ document.removeEventListener("keydown", l), document.body.classList.remove("jt-attachment-preview-service-lock");
1684
1321
  }), () => {
1685
- const g = e.options.downloadable === !1 ? [] : [
1686
- ve(
1322
+ const v = e.options.downloadable === !1 ? [] : [
1323
+ pe(
1687
1324
  e.options,
1688
1325
  a.value,
1689
1326
  "jt-attachment-preview-service__top-download"
1690
1327
  )
1691
1328
  ];
1692
- return r(
1329
+ return o(
1693
1330
  "div",
1694
1331
  { class: "jt-attachment-preview-service", style: i.value },
1695
1332
  [
1696
- r("div", { class: "jt-attachment-preview-service__modal" }, [
1697
- r("div", { class: "jt-attachment-preview-service__header" }, [
1698
- r(
1333
+ o("div", { class: "jt-attachment-preview-service__modal" }, [
1334
+ o("div", { class: "jt-attachment-preview-service__header" }, [
1335
+ o(
1699
1336
  "div",
1700
1337
  {
1701
1338
  class: "jt-attachment-preview-service__filename",
@@ -1703,27 +1340,27 @@ const jt = s({
1703
1340
  },
1704
1341
  t.value
1705
1342
  ),
1706
- r(
1343
+ o(
1707
1344
  "div",
1708
1345
  { class: "jt-attachment-preview-service__header-actions" },
1709
1346
  [
1710
- ...g,
1711
- r(
1347
+ ...v,
1348
+ o(
1712
1349
  "button",
1713
1350
  {
1714
1351
  class: "jt-attachment-preview-service__close",
1715
1352
  type: "button",
1716
- "aria-label": m("common.关闭"),
1717
- onClick: v
1353
+ "aria-label": c("common.关闭"),
1354
+ onClick: u
1718
1355
  },
1719
1356
  "×"
1720
1357
  )
1721
1358
  ]
1722
1359
  )
1723
1360
  ]),
1724
- r("div", { class: "jt-attachment-preview-service__body" }, [
1725
- Et({
1726
- type: o.value,
1361
+ o("div", { class: "jt-attachment-preview-service__body" }, [
1362
+ st({
1363
+ type: r.value,
1727
1364
  url: e.options.url,
1728
1365
  name: t.value,
1729
1366
  downloadName: a.value,
@@ -1731,8 +1368,8 @@ const jt = s({
1731
1368
  sandbox: e.options.sandbox,
1732
1369
  iconText: n.value,
1733
1370
  downloadable: e.options.downloadable !== !1,
1734
- onLoad: b,
1735
- onError: w
1371
+ onLoad: h,
1372
+ onError: f
1736
1373
  })
1737
1374
  ])
1738
1375
  ])
@@ -1740,7 +1377,7 @@ const jt = s({
1740
1377
  );
1741
1378
  };
1742
1379
  }
1743
- }), I = s({
1380
+ }), F = x({
1744
1381
  name: "JtAttachmentPreviewDetectingService",
1745
1382
  props: {
1746
1383
  options: {
@@ -1753,11 +1390,11 @@ const jt = s({
1753
1390
  },
1754
1391
  title: {
1755
1392
  type: String,
1756
- default: m("common.正在识别文件类型")
1393
+ default: c("common.正在识别文件类型")
1757
1394
  },
1758
1395
  desc: {
1759
1396
  type: String,
1760
- default: m("common.请稍候,识别完成后将自动预览或下载")
1397
+ default: c("common.请稍候,识别完成后将自动预览或下载")
1761
1398
  },
1762
1399
  spinning: {
1763
1400
  type: Boolean,
@@ -1770,23 +1407,23 @@ const jt = s({
1770
1407
  ), a = E(() => ({
1771
1408
  zIndex: e.options.zIndex ?? 3e3
1772
1409
  }));
1773
- function o() {
1410
+ function r() {
1774
1411
  e.options.onClose?.(), e.onDestroy();
1775
1412
  }
1776
1413
  function n(i) {
1777
- i.key === "Escape" && e.options.closeOnPressEscape !== !1 && o();
1414
+ i.key === "Escape" && e.options.closeOnPressEscape !== !1 && r();
1778
1415
  }
1779
1416
  return ee(() => {
1780
1417
  document.addEventListener("keydown", n), document.body.classList.add("jt-attachment-preview-service-lock");
1781
- }), Y(() => {
1418
+ }), G(() => {
1782
1419
  document.removeEventListener("keydown", n), document.body.classList.remove("jt-attachment-preview-service-lock");
1783
- }), () => r(
1420
+ }), () => o(
1784
1421
  "div",
1785
1422
  { class: "jt-attachment-preview-service", style: a.value },
1786
1423
  [
1787
- r("div", { class: "jt-attachment-preview-service__modal" }, [
1788
- r("div", { class: "jt-attachment-preview-service__header" }, [
1789
- r(
1424
+ o("div", { class: "jt-attachment-preview-service__modal" }, [
1425
+ o("div", { class: "jt-attachment-preview-service__header" }, [
1426
+ o(
1790
1427
  "div",
1791
1428
  {
1792
1429
  class: "jt-attachment-preview-service__filename",
@@ -1794,34 +1431,34 @@ const jt = s({
1794
1431
  },
1795
1432
  t.value
1796
1433
  ),
1797
- r(
1434
+ o(
1798
1435
  "div",
1799
1436
  { class: "jt-attachment-preview-service__header-actions" },
1800
1437
  [
1801
- r(
1438
+ o(
1802
1439
  "button",
1803
1440
  {
1804
1441
  class: "jt-attachment-preview-service__close",
1805
1442
  type: "button",
1806
- "aria-label": m("common.关闭"),
1807
- onClick: o
1443
+ "aria-label": c("common.关闭"),
1444
+ onClick: r
1808
1445
  },
1809
1446
  "×"
1810
1447
  )
1811
1448
  ]
1812
1449
  )
1813
1450
  ]),
1814
- r("div", { class: "jt-attachment-preview-service__body" }, [
1815
- r("div", { class: "jt-attachment-preview-service__detecting" }, [
1816
- e.spinning ? r("span", {
1451
+ o("div", { class: "jt-attachment-preview-service__body" }, [
1452
+ o("div", { class: "jt-attachment-preview-service__detecting" }, [
1453
+ e.spinning ? o("span", {
1817
1454
  class: "jt-attachment-preview-service__detecting-spinner"
1818
1455
  }) : null,
1819
- r(
1456
+ o(
1820
1457
  "span",
1821
1458
  { class: "jt-attachment-preview-service__detecting-title" },
1822
1459
  e.title
1823
1460
  ),
1824
- r(
1461
+ o(
1825
1462
  "span",
1826
1463
  { class: "jt-attachment-preview-service__detecting-desc" },
1827
1464
  e.desc
@@ -1833,57 +1470,57 @@ const jt = s({
1833
1470
  );
1834
1471
  }
1835
1472
  });
1836
- function Et(e) {
1837
- return e.type === "empty" ? r(
1473
+ function st(e) {
1474
+ return e.type === "empty" ? o(
1838
1475
  "div",
1839
1476
  { class: "jt-attachment-preview-service__empty" },
1840
- m("common.暂无附件")
1841
- ) : e.type === "image" ? r(Bt, {
1477
+ c("common.暂无附件")
1478
+ ) : e.type === "image" ? o(it, {
1842
1479
  url: e.url,
1843
1480
  name: e.name,
1844
1481
  downloadName: e.downloadName,
1845
1482
  downloadable: e.downloadable,
1846
1483
  onPreviewLoad: e.onLoad,
1847
1484
  onPreviewError: e.onError
1848
- }) : e.type === "video" ? r("video", {
1485
+ }) : e.type === "video" ? o("video", {
1849
1486
  class: "jt-attachment-preview-service__media",
1850
1487
  src: e.url,
1851
1488
  controls: !0,
1852
1489
  onLoadeddata: e.onLoad,
1853
1490
  onError: e.onError
1854
- }) : e.type === "audio" ? r("audio", {
1491
+ }) : e.type === "audio" ? o("audio", {
1855
1492
  class: "jt-attachment-preview-service__audio",
1856
1493
  src: e.url,
1857
1494
  controls: !0,
1858
1495
  onLoadeddata: e.onLoad,
1859
1496
  onError: e.onError
1860
- }) : e.type === "pdf" ? r(jt, {
1497
+ }) : e.type === "pdf" ? o(rt, {
1861
1498
  url: e.url,
1862
1499
  name: e.name,
1863
1500
  downloadName: e.downloadName,
1864
1501
  downloadable: e.downloadable,
1865
1502
  onPreviewLoad: e.onLoad,
1866
1503
  onPreviewError: e.onError
1867
- }) : e.type === "iframe" ? r("iframe", {
1504
+ }) : e.type === "iframe" ? o("iframe", {
1868
1505
  class: "jt-attachment-preview-service__iframe",
1869
1506
  src: e.url,
1870
1507
  title: e.name,
1871
1508
  sandbox: e.sandbox || void 0,
1872
1509
  onLoad: e.onLoad
1873
- }) : r("div", { class: "jt-attachment-preview-service__unsupported" }, [
1874
- r("div", { class: "jt-attachment-preview-service__file-card" }, [
1875
- r(
1510
+ }) : o("div", { class: "jt-attachment-preview-service__unsupported" }, [
1511
+ o("div", { class: "jt-attachment-preview-service__file-card" }, [
1512
+ o(
1876
1513
  "div",
1877
1514
  { class: "jt-attachment-preview-service__file-icon" },
1878
1515
  e.iconText
1879
1516
  ),
1880
- r(
1517
+ o(
1881
1518
  "div",
1882
1519
  { class: "jt-attachment-preview-service__unsupported-text" },
1883
- m("common.暂不支持预览此类型的文件")
1520
+ c("common.暂不支持预览此类型的文件")
1884
1521
  )
1885
1522
  ]),
1886
- r(
1523
+ o(
1887
1524
  "div",
1888
1525
  {
1889
1526
  class: "jt-attachment-preview-service__file-name",
@@ -1891,182 +1528,159 @@ function Et(e) {
1891
1528
  },
1892
1529
  e.name
1893
1530
  ),
1894
- e.downloadable ? ve(
1531
+ e.downloadable ? pe(
1895
1532
  e.sourceOptions,
1896
1533
  e.downloadName,
1897
1534
  "jt-attachment-preview-service__primary-download"
1898
1535
  ) : null
1899
1536
  ]);
1900
1537
  }
1901
- function we(e) {
1538
+ function ge(e) {
1902
1539
  if (typeof document > "u")
1903
1540
  return { close: () => {
1904
1541
  } };
1905
- _("open-called", {
1542
+ p("open-called", {
1906
1543
  rawOptions: typeof e == "string" ? e : { ...e }
1907
- }), C?.close();
1908
- const t = yt(
1544
+ }), D?.close();
1545
+ const t = Xe(
1909
1546
  e
1910
1547
  ), a = t.downloadName || ae(t.url, t.name);
1911
- let o = !1, n = null, i = null;
1912
- const v = () => {
1913
- o = !0, n && (D(null, n), n.remove(), n = null), i && (URL.revokeObjectURL(i), i = null), C?.close === v && (C = null);
1548
+ let r = !1, n = null, i = null;
1549
+ const u = () => {
1550
+ r = !0, n && (_(null, n), n.remove(), n = null), i && (URL.revokeObjectURL(i), i = null), D?.close === u && (D = null);
1914
1551
  };
1915
- function c() {
1916
- o || (n || (n = document.createElement("div"), document.body.appendChild(n)), D(
1917
- r(Mt, {
1552
+ function l() {
1553
+ r || (n || (n = document.createElement("div"), document.body.appendChild(n)), _(
1554
+ o(lt, {
1918
1555
  options: t,
1919
- onDestroy: v
1556
+ onDestroy: u
1920
1557
  }),
1921
1558
  n
1922
1559
  ));
1923
1560
  }
1924
- function b() {
1925
- o || (n || (n = document.createElement("div"), document.body.appendChild(n)), D(
1926
- r(I, {
1561
+ function h() {
1562
+ r || (n || (n = document.createElement("div"), document.body.appendChild(n)), _(
1563
+ o(F, {
1927
1564
  options: t,
1928
- onDestroy: v
1565
+ onDestroy: u
1929
1566
  }),
1930
1567
  n
1931
1568
  ));
1932
1569
  }
1933
- function w() {
1934
- n && (D(null, n), n.remove(), n = null);
1570
+ function f() {
1571
+ n && (_(null, n), n.remove(), n = null);
1935
1572
  }
1936
- function g() {
1937
- o || fe(t, a, {
1573
+ function v() {
1574
+ r || he(t, a, {
1938
1575
  fallbackToRawUrl: !0
1939
1576
  });
1940
1577
  }
1941
- const A = de(t);
1942
- return _("type-resolved", {
1943
- resolvedType: A,
1578
+ const k = me(t);
1579
+ return p("type-resolved", {
1580
+ resolvedType: k,
1944
1581
  url: t.url,
1945
1582
  name: t.name,
1946
1583
  mode: t.mode,
1947
1584
  mimeType: t.mimeType,
1948
1585
  extension: t.extension
1949
- }), W(A) ? c() : A === "unknown" ? (b(), Lt(t.url).then(async (y) => {
1950
- if (!o) {
1951
- if (W(y)) {
1952
- t.mode = y, c();
1586
+ }), W(k) ? l() : k === "unknown" ? (h(), et(t.url).then(async (g) => {
1587
+ if (!r) {
1588
+ if (W(g)) {
1589
+ t.mode = g, l();
1953
1590
  return;
1954
1591
  }
1955
1592
  try {
1956
- const z = await pe(t.url), P = ne(z.type);
1593
+ const R = await fe(t.url), P = ne(R.type);
1957
1594
  if (W(P)) {
1958
- i = URL.createObjectURL(z), t.url = i, t.mode = P, c();
1595
+ i = URL.createObjectURL(R), t.url = i, t.mode = P, l();
1959
1596
  return;
1960
1597
  }
1961
- w(), oe(z, a);
1598
+ f(), re(R, a);
1962
1599
  } catch {
1963
- w(), g();
1600
+ f(), v();
1964
1601
  }
1965
1602
  }
1966
- })) : g(), C = { close: v }, C;
1603
+ })) : v(), D = { close: u }, D;
1967
1604
  }
1968
- function zt(e) {
1969
- j = e;
1605
+ function ct(e) {
1606
+ A = e;
1970
1607
  }
1971
- function Rt(e) {
1608
+ function ut(e) {
1972
1609
  if (typeof document > "u")
1973
1610
  return { close: () => {
1974
1611
  } };
1975
- C?.close();
1612
+ D?.close();
1976
1613
  let t = !1, a = document.createElement("div");
1977
1614
  document.body.appendChild(a);
1978
- const o = () => {
1979
- t = !0, a && (D(null, a), a.remove(), a = null), C?.close === o && (C = null);
1980
- }, n = { close: o };
1981
- return C = n, j ? (D(
1982
- r(I, {
1983
- options: { url: "", name: m("common.附件预览") },
1984
- title: m("common.正在获取文件信息"),
1985
- desc: m("common.请稍候,获取完成后将自动预览或下载"),
1615
+ const r = () => {
1616
+ t = !0, a && (_(null, a), a.remove(), a = null), D?.close === r && (D = null);
1617
+ }, n = { close: r };
1618
+ return D = n, A ? (_(
1619
+ o(F, {
1620
+ options: { url: "", name: c("common.附件预览") },
1621
+ title: c("common.正在获取文件信息"),
1622
+ desc: c("common.请稍候,获取完成后将自动预览或下载"),
1986
1623
  spinning: !0,
1987
- onDestroy: o
1624
+ onDestroy: r
1988
1625
  }),
1989
1626
  a
1990
- ), j.request(e).then((i) => {
1627
+ ), A.request(e).then((i) => {
1991
1628
  if (t) return;
1992
- const v = j?.mapResponse(i, e);
1993
- if (!v?.url) {
1994
- D(
1995
- r(I, {
1996
- options: { url: "", name: m("common.附件预览") },
1997
- title: m("common.文件信息缺少URL"),
1998
- desc: m("common.请检查mapResponse是否返回了url字段"),
1629
+ const u = A?.mapResponse(i, e);
1630
+ if (!u?.url) {
1631
+ _(
1632
+ o(F, {
1633
+ options: { url: "", name: c("common.附件预览") },
1634
+ title: c("common.文件信息缺少URL"),
1635
+ desc: c("common.请检查mapResponse是否返回了url字段"),
1999
1636
  spinning: !1,
2000
- onDestroy: o
1637
+ onDestroy: r
2001
1638
  }),
2002
1639
  a
2003
1640
  );
2004
1641
  return;
2005
1642
  }
2006
- we({
2007
- ...v,
1643
+ ge({
1644
+ ...u,
2008
1645
  requestParams: e,
2009
1646
  useRegisteredDownload: !0
2010
1647
  });
2011
1648
  }).catch((i) => {
2012
1649
  if (t) return;
2013
- const v = i instanceof Error ? i.message : m("common.接口请求失败");
2014
- D(
2015
- r(I, {
2016
- options: { url: "", name: m("common.附件预览") },
2017
- title: m("common.文件信息获取失败"),
2018
- desc: v,
1650
+ const u = i instanceof Error ? i.message : c("common.接口请求失败");
1651
+ _(
1652
+ o(F, {
1653
+ options: { url: "", name: c("common.附件预览") },
1654
+ title: c("common.文件信息获取失败"),
1655
+ desc: u,
2019
1656
  spinning: !1,
2020
- onDestroy: o
1657
+ onDestroy: r
2021
1658
  }),
2022
1659
  a
2023
1660
  );
2024
- }), n) : (D(
2025
- r(I, {
2026
- options: { url: "", name: m("common.附件预览") },
2027
- title: m("common.附件预览未初始化"),
2028
- desc: m("common.请先调用setupJtAttachmentPreview注册请求配置"),
1661
+ }), n) : (_(
1662
+ o(F, {
1663
+ options: { url: "", name: c("common.附件预览") },
1664
+ title: c("common.附件预览未初始化"),
1665
+ desc: c("common.请先调用setupJtAttachmentPreview注册请求配置"),
2029
1666
  spinning: !1,
2030
- onDestroy: o
1667
+ onDestroy: r
2031
1668
  }),
2032
1669
  a
2033
1670
  ), n);
2034
1671
  }
2035
- const ua = Object.assign(we, {
2036
- openByParams: Rt,
2037
- setup: zt
1672
+ const gt = Object.assign(ge, {
1673
+ openByParams: ut,
1674
+ setup: ct
2038
1675
  });
2039
1676
  export {
2040
- zt as A,
2041
- la as B,
2042
- m as C,
2043
- sa as D,
2044
- ca as E,
2045
- ua as J,
2046
- Rt as a,
2047
- Ut as b,
2048
- Jt as c,
2049
- Ot as d,
2050
- Ht as e,
2051
- Nt as f,
2052
- Yt as g,
2053
- Gt as h,
2054
- Wt as i,
2055
- Kt as j,
2056
- Qt as k,
2057
- Xt as l,
2058
- Zt as m,
2059
- $t as n,
2060
- Vt as o,
2061
- ea as p,
2062
- ta as q,
2063
- It as r,
2064
- aa as s,
2065
- na as t,
2066
- ra as u,
2067
- H as v,
2068
- oa as w,
2069
- ia as x,
2070
- qt as y,
2071
- Ft as z
1677
+ gt as J,
1678
+ ut as a,
1679
+ ct as b,
1680
+ pt as g,
1681
+ ht as i,
1682
+ q as n,
1683
+ vt as r,
1684
+ ft as s,
1685
+ c as t
2072
1686
  };