fat-design 0.0.2-beta.20251124221954 โ 0.0.2-beta.20251130210452
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.
- package/index.browser.js +2 -2
- package/index.js +13 -10
- package/index.umd.cjs +1 -1
- package/index.umd.js +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -38768,33 +38768,36 @@ function Vv(s) {
|
|
|
38768
38768
|
`download_${s.deep}_${s.index}`
|
|
38769
38769
|
) : null;
|
|
38770
38770
|
}
|
|
38771
|
-
|
|
38771
|
+
function kM() {
|
|
38772
|
+
const s = window.FatDesignWebOfficeExtension;
|
|
38773
|
+
return Array.isArray(s) ? s : ["xlsx", "docx", "pptx", "pdf", "json", "xml", "txt", "js", "css", "html", "md", "csv"];
|
|
38774
|
+
}
|
|
38772
38775
|
function $M(s) {
|
|
38773
38776
|
const t = s.split(".");
|
|
38774
38777
|
return ("" + t[t.length - 1]).toLowerCase();
|
|
38775
38778
|
}
|
|
38776
38779
|
function jv(s) {
|
|
38777
|
-
const t = "fatd-previews-formats-filedownload", e = s.name,
|
|
38778
|
-
if (
|
|
38779
|
-
const
|
|
38780
|
-
if (
|
|
38781
|
-
const
|
|
38782
|
-
return
|
|
38780
|
+
const t = "fatd-previews-formats-filedownload", e = kM(), n = s.name, o = lr(s.downloadURL);
|
|
38781
|
+
if (o && o.length > 0) {
|
|
38782
|
+
const r = "" + (n || Pl(o)), a = $M(r);
|
|
38783
|
+
if (e.includes(a)) {
|
|
38784
|
+
const l = `/ns/app/weboffice?fileName=${encodeURIComponent(r)}&fileUrl=${encodeURIComponent(o)}`;
|
|
38785
|
+
return n ? /* @__PURE__ */ _(
|
|
38783
38786
|
"a",
|
|
38784
38787
|
{
|
|
38785
|
-
href:
|
|
38788
|
+
href: l,
|
|
38786
38789
|
className: t,
|
|
38787
38790
|
target: "_blank",
|
|
38788
38791
|
children: [
|
|
38789
38792
|
" ๐",
|
|
38790
|
-
|
|
38793
|
+
n
|
|
38791
38794
|
]
|
|
38792
38795
|
},
|
|
38793
38796
|
`download_${s.deep}_${s.index}`
|
|
38794
38797
|
) : /* @__PURE__ */ p(
|
|
38795
38798
|
"a",
|
|
38796
38799
|
{
|
|
38797
|
-
href:
|
|
38800
|
+
href: l,
|
|
38798
38801
|
className: t,
|
|
38799
38802
|
target: "_blank",
|
|
38800
38803
|
children: " ๐ๆฅ็ๆไปถ "
|