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.js CHANGED
@@ -38768,33 +38768,36 @@ function Vv(s) {
38768
38768
  `download_${s.deep}_${s.index}`
38769
38769
  ) : null;
38770
38770
  }
38771
- const kM = ["xlsx", "docx", "pptx", "pdf", "json", "xml", "txt", "js", "css", "html", "md"];
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, n = lr(s.downloadURL);
38778
- if (n && n.length > 0) {
38779
- const o = "" + (e || Pl(n)), r = $M(o);
38780
- if (kM.includes(r)) {
38781
- const a = `/ns/app/weboffice?fileName=${encodeURIComponent(o)}&fileUrl=${encodeURIComponent(n)}`;
38782
- return e ? /* @__PURE__ */ _(
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: a,
38788
+ href: l,
38786
38789
  className: t,
38787
38790
  target: "_blank",
38788
38791
  children: [
38789
38792
  " ๐Ÿ“Ž",
38790
- e
38793
+ n
38791
38794
  ]
38792
38795
  },
38793
38796
  `download_${s.deep}_${s.index}`
38794
38797
  ) : /* @__PURE__ */ p(
38795
38798
  "a",
38796
38799
  {
38797
- href: a,
38800
+ href: l,
38798
38801
  className: t,
38799
38802
  target: "_blank",
38800
38803
  children: " ๐Ÿ“ŽๆŸฅ็œ‹ๆ–‡ไปถ "