@maggioli-design-system/magma 2.0.0-beta.5 → 2.0.0

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.
Files changed (32) hide show
  1. package/README.md +2 -1
  2. package/dist/cjs/{locale.it-D-rxNDkm.js → locale.it-CfUV2hxK.js} +13 -10
  3. package/dist/cjs/mds-file-preview.cjs.entry.js +1 -1
  4. package/dist/cjs/mds-file.cjs.entry.js +1 -1
  5. package/dist/collection/common/file.js +13 -10
  6. package/dist/components/mds-file-preview.js +1 -1
  7. package/dist/components/mds-file.js +3 -3
  8. package/dist/components/mds-input-upload.js +1 -1
  9. package/dist/components/{p-sUKtonkE.js → p-ClKNADBg.js} +2 -2
  10. package/dist/components/{p-B14Ci2fO.js → p-s2Gu6hY7.js} +1 -1
  11. package/dist/documentation.json +2 -2
  12. package/dist/esm/{locale.it-Dj8sWDfj.js → locale.it-Cvxh7La5.js} +13 -10
  13. package/dist/esm/mds-file-preview.entry.js +1 -1
  14. package/dist/esm/mds-file.entry.js +1 -1
  15. package/dist/esm-es5/locale.it-Cvxh7La5.js +6 -0
  16. package/dist/esm-es5/mds-file-preview.entry.js +8 -8
  17. package/dist/esm-es5/mds-file.entry.js +6 -6
  18. package/dist/hydrate/index.js +13 -10
  19. package/dist/hydrate/index.mjs +13 -10
  20. package/dist/magma-components/magma-components.esm.js +1 -1
  21. package/dist/magma-components/{p-7d317ff0.entry.js → p-27ea99ee.entry.js} +1 -1
  22. package/dist/magma-components/{p-7f2e3b74.system.entry.js → p-4f107cb2.system.entry.js} +31 -31
  23. package/dist/magma-components/p-4oB0woT9.system.js +6 -0
  24. package/dist/magma-components/{p-8103d4d4.system.entry.js → p-8c4fb7ec.system.entry.js} +8 -8
  25. package/dist/magma-components/p-B6mQg6yQ.js +1 -0
  26. package/dist/magma-components/p-CnXBPjmc.system.js +1 -1
  27. package/dist/magma-components/{p-9d9a947b.entry.js → p-b35c26f8.entry.js} +2 -2
  28. package/dist/stats.json +38 -38
  29. package/package.json +3 -3
  30. package/dist/esm-es5/locale.it-Dj8sWDfj.js +0 -1
  31. package/dist/magma-components/p-CSb7Iu19.js +0 -1
  32. package/dist/magma-components/p-ihVfCXG4.system.js +0 -1
@@ -1 +1 @@
1
- import{b as e}from"./p-CGFwoK_U.js";const i={"7z":{format:"archive",description:"compressedArchive"},ace:{format:"archive",description:"compressedArchive"},ai:{format:"vector",description:"fileAI"},dart:{format:"code",description:"dart"},db:{format:"data",description:"fileDB"},default:{format:"attachment",description:"unknown"},dmg:{format:"executable",description:"appleDiskImage"},doc:{format:"text",description:"documentMS"},docm:{format:"text",description:"documentMS"},docx:{format:"text",description:"compressedDocumentMS"},eml:{format:"email",description:"email"},eps:{format:"vector",description:"fileEPS"},exe:{format:"executable",description:"fileEXE"},flac:{format:"audio",description:"uncompressedAudio"},gif:{format:"image",description:"compressedImage",preview:!0},heic:{format:"image",description:"imageHEFF"},htm:{format:"markup",description:"documentWeb"},html:{format:"markup",description:"documentWeb"},jpe:{format:"image",description:"compressedImage",preview:!0},jpeg:{format:"image",description:"compressedImage",preview:!0},jpg:{format:"image",description:"compressedImage",preview:!0},js:{format:"code",description:"fileJS"},json:{format:"data",description:"fileJSON"},jsx:{format:"code",description:"fileJS"},m2v:{format:"video",description:"videoSD"},mp2:{format:"audio",description:"compressedAudio"},mp3:{format:"audio",description:"compressedAudio"},mp4:{format:"video",description:"videoHD"},mp4v:{format:"video",description:"videoHD"},mpeg:{format:"video",description:"videoSD"},mpg4:{format:"video",description:"videoSD"},mpg:{format:"video",description:"videoSD"},mpga:{format:"audio",description:"compressedAudio"},odf:{format:"document",description:"openDocumentFormat"},odp:{format:"slide",description:"slideLO"},ods:{format:"spreadsheet",description:"spreadsheetLO"},odt:{format:"text",description:"documentLO"},ole:{format:"document",description:"objectLinkingAndEmbedding"},p7m:{format:"certificate",description:"documentDigitalSingnature"},pdf:{format:"document",description:"documentAdobe"},php:{format:"code",description:"filePHP"},png:{format:"image",description:"imagePNG",preview:!0},ppt:{format:"slide",description:"slidePowerPoint"},rar:{format:"archive",description:"compressedArchive"},rtf:{format:"text",description:"documentRTF"},sass:{format:"code",description:"fileSASS"},shtml:{format:"markup",description:"documentWeb"},svg:{format:"vector",description:"imageSVG",preview:!0},tar:{format:"archive",description:"uncompressedArchive"},tiff:{format:"image",description:"imageTIFF"},ts:{format:"code",description:"fileTS"},tsd:{format:"certificate",description:"certificateTSD"},tsx:{format:"code",description:"fileTSX"},txt:{format:"text",description:"documentTXT"},wav:{format:"audio",description:"uncompressedAudio"},webp:{format:"image",description:"imageWEBP",preview:!0},xar:{format:"archive",description:"compressedArchive"},xls:{format:"spreadsheet",description:"spreadsheetMS"},xlsx:{format:"spreadsheet",description:"spreadsheetMS"},xml:{format:"markup",description:"extensibleMarkupLanguage"},zip:{format:"archive",description:"compressedArchive"}},o=new Map([["image",[".png",".jpg",".jpeg",".tiff",".webp",".jpe",".gif",".heic"]],["audio",[".mp2",".mp3",".mpga",".wav",".flac"]],["video",[".mv2",".mp4",".mp4v",".mpeg",".mpg4",".mpg"]]]);var t='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-vector-curve" viewBox="0 0 24 24"><path d="M18.5,2A1.5,1.5 0 0,1 20,3.5A1.5,1.5 0 0,1 18.5,5C18.27,5 18.05,4.95 17.85,4.85L14.16,8.55L14.5,9C16.69,7.74 19.26,7 22,7L23,7.03V9.04L22,9C19.42,9 17,9.75 15,11.04A3.96,3.96 0 0,1 11.04,15C9.75,17 9,19.42 9,22L9.04,23H7.03L7,22C7,19.26 7.74,16.69 9,14.5L8.55,14.16L4.85,17.85C4.95,18.05 5,18.27 5,18.5A1.5,1.5 0 0,1 3.5,20A1.5,1.5 0 0,1 2,18.5A1.5,1.5 0 0,1 3.5,17C3.73,17 3.95,17.05 4.15,17.15L7.84,13.45C7.31,12.78 7,11.92 7,11A4,4 0 0,1 11,7C11.92,7 12.78,7.31 13.45,7.84L17.15,4.15C17.05,3.95 17,3.73 17,3.5A1.5,1.5 0 0,1 18.5,2M11,9A2,2 0 0,0 9,11A2,2 0 0,0 11,13A2,2 0 0,0 13,11A2,2 0 0,0 11,9Z" /></svg>';const a={archive:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"/></svg>',variant:"amaranth"},attachment:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 0 1 5 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 0 0 5 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"/></svg>',variant:"dark"},audio:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3v9.28a4.39 4.39 0 0 0-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/></svg>',variant:"violet"},certificate:{icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-license" viewBox="0 0 24 24"><path d="M9 10A3.04 3.04 0 0 1 12 7A3.04 3.04 0 0 1 15 10A3.04 3.04 0 0 1 12 13A3.04 3.04 0 0 1 9 10M12 19L16 20V16.92A7.54 7.54 0 0 1 12 18A7.54 7.54 0 0 1 8 16.92V20M12 4A5.78 5.78 0 0 0 7.76 5.74A5.78 5.78 0 0 0 6 10A5.78 5.78 0 0 0 7.76 14.23A5.78 5.78 0 0 0 12 16A5.78 5.78 0 0 0 16.24 14.23A5.78 5.78 0 0 0 18 10A5.78 5.78 0 0 0 16.24 5.74A5.78 5.78 0 0 0 12 4M20 10A8.04 8.04 0 0 1 19.43 12.8A7.84 7.84 0 0 1 18 15.28V23L12 21L6 23V15.28A7.9 7.9 0 0 1 4 10A7.68 7.68 0 0 1 6.33 4.36A7.73 7.73 0 0 1 12 2A7.73 7.73 0 0 1 17.67 4.36A7.68 7.68 0 0 1 20 10Z" /></svg>',variant:"orange"},code:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4l-4 4z"/></svg>',variant:"yellow"},data:{icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-harddisk" viewBox="0 0 24 24"><path d="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12,4A6,6 0 0,0 6,10C6,13.31 8.69,16 12.1,16L11.22,13.77C10.95,13.29 11.11,12.68 11.59,12.4L12.45,11.9C12.93,11.63 13.54,11.79 13.82,12.27L15.74,14.69C17.12,13.59 18,11.9 18,10A6,6 0 0,0 12,4M12,9A1,1 0 0,1 13,10A1,1 0 0,1 12,11A1,1 0 0,1 11,10A1,1 0 0,1 12,9M7,18A1,1 0 0,0 6,19A1,1 0 0,0 7,20A1,1 0 0,0 8,19A1,1 0 0,0 7,18M12.09,13.27L14.58,19.58L17.17,18.08L12.95,12.77L12.09,13.27Z" /></svg>',variant:"yellow"},document:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>',variant:"orange"},email:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5l-8-5V6l8 5l8-5v2z"/></svg>',variant:"blue"},executable:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 16H5V7h14v12zm-2-7H7v-2h10v2zm-4 4H7v-2h6v2z"/></svg>',variant:"amaranth"},image:{icon:e,variant:"green"},imageRaster:{icon:e,variant:"green"},markup:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/></svg>',variant:"yellow"},slide:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/></svg>',variant:"orchid"},spreadsheet:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/></svg>',variant:"lime"},text:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>',variant:"blue"},vectorImage:{icon:t,variant:"aqua"},vector:{icon:t,variant:"aqua"},video:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/></svg>',variant:"violet"}},r=(e,i='Attribute "filename" is undefined.')=>{var o;if(void 0===e)throw console.error(i);return e.includes("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":e},c=e=>{var i;const o=r(e);return o.includes(".")?null!==(i=o.split(".")[0])&&void 0!==i?i:"":o},d=(e,i)=>{const o=(e=>{var i;const o=r(e);return o.includes(".")?null!==(i=o.split(".").pop())&&void 0!==i?i:"":o})(e),t=r(e);return null!=i?i.toLowerCase():o!==t?o:"default"},m=(e,o)=>{var t;const a=d(e,o).toLocaleLowerCase();return null!==(t=i[a])&&void 0!==t?t:i.default},n=(e,i)=>a[m(e,i).format];var s={appleDiskImage:"Εικόνα δίσκου Apple",certificateTSD:"Πιστοποιητικό χρονικής σήμανσης",compressedArchive:"Συμπιεσμένο αρχείο",compressedAudio:"Συμπιεσμένος ήχος",compressedDocumentMS:"Συμπιεσμένο έγγραφο Microsoft Word",compressedImage:"Συμπιεσμένη εικόνα",dart:"Αρχείο Dart",documentAdobe:"Έγγραφο Adobe",documentDigitalSingnature:"Έγγραφο με ψηφιακή υπογραφή",documentLO:"Έγγραφο LibreOffice",documentMS:"Έγγραφο Microsoft Word",documentRTF:"Έγγραφο μορφής εμπλουτισμένου κειμένου",documentTXT:"Απλό έγγραφο κειμένου",documentWeb:"Ιστοσελίδα",email:"Ηλεκτρονικό ταχυδρομείο",extensibleMarkupLanguage:"Γλώσσα σήμανσης για δεδομένα",fileAI:"Διανυσματικό αρχείο Adobe Illustrator",fileDB:"Αρχείο βάσης δεδομένων",fileEPS:"Διανυσματικό αρχείο Corel Draw",fileEXE:"Εκτελέσιμο αρχείο Windows",fileJS:"Αρχείο JavaScript",fileJSON:"Αρχείο JavaScript Object Notation",filePHP:"Αρχείο Hypertext Preprocessor",fileSASS:"Αρχείο Syntactically Awesome StyleSheets",fileTS:"Αρχείο TypeScript",fileTSX:"Αρχείο TypeScript Extended Syntax",imageHEIC:"Μορφή αρχείου εικόνας υψηλής αποδοτικότητας",imagePNG:"Εικόνα Portable Network Graphics",imageSVG:"Διανυσματική εικόνα Scalable Vector Graphics",imageTIFF:"Εικόνα Tag Image File Format",imageWEBP:"Εικόνα Google Web Picture",objectLinkingAndEmbedding:"Σύνδεση και ενσωμάτωση αντικειμένων",openDocumentFormat:"Έγγραφο OpenDocument",slideLO:"Διαφάνεια παρουσίασης LibreOffice",slidePowerPoint:"Διαφάνεια παρουσίασης PowerPoint",spreadsheetLO:"Υπολογιστικό φύλλο LibreOffice",spreadsheetMS:"Υπολογιστικό φύλλο Microsoft Office",uncompressedArchive:"Μη συμπιεσμένο αρχείο",uncompressedAudio:"Μη συμπιεσμένος ήχος",unknown:"Άγνωστη μορφή αρχείου",videoHD:"Βίντεο υψηλής ανάλυσης",videoSD:"Βίντεο χαμηλής ανάλυσης"},p={appleDiskImage:"Apple Disk Image",certificateTSD:"Timestamp Certificate",compressedArchive:"Compressed Archive",compressedAudio:"Compressed Audio",compressedDocumentMS:"Compressed Microsoft Word Document",compressedImage:"Compressed Image",dart:"Dart File",documentAdobe:"Adobe Document",documentDigitalSingnature:"Document with digital signature",documentLO:"LibreOffice Document",documentMS:"Microsoft Word Document",documentRTF:"Rich Text Format Document",documentTXT:"Plain Text Document",documentWeb:"Web Page",email:"E-mail",extensibleMarkupLanguage:"Markup language for data",fileAI:"Adobe Illustrator Vector File",fileDB:"Database File",fileEPS:"Corel Draw Vector File",fileEXE:"Windows Executable File",fileJS:"JavaScript File",fileJSON:"JavaScript Object Notation File",filePHP:"Hypertext Preprocessor File",fileSASS:"Syntactically Awesome StyleSheets File",fileTS:"TypeScript File",fileTSX:"TypeScript Extended Syntax File",imageHEIC:"High Efficiency Image File Format",imagePNG:"Portable Network Graphics Image",imageSVG:"Scalable Vector Graphics Image",imageTIFF:"Tag Image File Format Image",imageWEBP:"Google Web Picture Image",objectLinkingAndEmbedding:"Object Linking and Embedding",openDocumentFormat:"OpenDocument Document",slideLO:"LibreOffice Presentation Slide",slidePowerPoint:"PowerPoint Presentation Slide",spreadsheetLO:"LibreOffice Spreadsheet",spreadsheetMS:"Microsoft Office Spreadsheet",uncompressedArchive:"Uncompressed Archive",uncompressedAudio:"Uncompressed Audio",unknown:"Unknown File Format",videoHD:"High Definition Video",videoSD:"Standard Definition Video"},l={appleDiskImage:"Imagen de disco Apple",certificateTSD:"Certificado de sello de tiempo",compressedArchive:"Archivo comprimido",compressedAudio:"Audio comprimido",compressedDocumentMS:"Documento comprimido de Microsoft Word",compressedImage:"Imagen comprimida",dart:"Archivo Dart",documentAdobe:"Documento Adobe",documentDigitalSingnature:"Documento con firma digital",documentLO:"Documento de LibreOffice",documentMS:"Documento de Microsoft Word",documentRTF:"Documento de formato de texto enriquecido",documentTXT:"Documento de texto sin formato",documentWeb:"Página web",email:"Correo electrónico",extensibleMarkupLanguage:"Lenguaje de marcado para datos",fileAI:"Archivo vectorial de Adobe Illustrator",fileDB:"Archivo de base de datos",fileEPS:"Archivo vectorial de Corel Draw",fileEXE:"Archivo ejecutable de Windows",fileJS:"Archivo JavaScript",fileJSON:"Archivo de notación de objetos de JavaScript",filePHP:"Archivo de preprocesador de hipertexto",fileSASS:"Archivo de Syntactically Awesome StyleSheets",fileTS:"Archivo TypeScript",fileTSX:"Archivo de sintaxis extendida de TypeScript",imageHEIC:"Formato de archivo de imagen de alta eficiencia",imagePNG:"Imagen Portable Network Graphics",imageSVG:"Imagen de gráficos vectoriales escalables",imageTIFF:"Imagen de formato de archivo de imagen etiquetado",imageWEBP:"Imagen Google Web Picture",objectLinkingAndEmbedding:"Vinculación e incrustación de objetos",openDocumentFormat:"Documento OpenDocument",slideLO:"Diapositiva de presentación de LibreOffice",slidePowerPoint:"Diapositiva de presentación de PowerPoint",spreadsheetLO:"Hoja de cálculo de LibreOffice",spreadsheetMS:"Hoja de cálculo de Microsoft Office",uncompressedArchive:"Archivo no comprimido",uncompressedAudio:"Audio no comprimido",unknown:"Formato de archivo desconocido",videoHD:"Video de alta definición",videoSD:"Video de definición estándar"},v={appleDiskImage:"Immagine Disco Apple",certificateTSD:"Marca temporale",compressedArchive:"Archivio compresso",compressedAudio:"Audio compresso",compressedDocumentMS:"Documento di testo Microsoft Word Compresso",compressedImage:"Immagine compressa",dart:"File Dart",documentAdobe:"Documento Adobe",documentDigitalSingnature:"Documento con firma digitale",documentLO:"Documento di testo LibreOffice",documentMS:"Documento di testo Microsoft Word",documentRTF:"Documento di testo Rich Text Format",documentTXT:"Documento di testo senza formattazione",documentWeb:"Pagina web",email:"E-mail",extensibleMarkupLanguage:"Linguaggio markup per dati",fileAI:"File vettoriale Adobe Illustrator",fileDB:"File di database",fileEPS:"File vettoriale Corel Draw",fileEXE:"File eseguibile Windows",fileJS:"File JavaScript",fileJSON:"File JavaScript Object Notation",filePHP:"File Hypertext Preprocessor",fileSASS:"File Syntactically Awesome StyleSheets",fileTS:"File TypeScript",fileTSX:"File TypeScript Extended Syntax",imageHEIC:"High Efficiency Image File Format",imagePNG:"Immagine Portable Network Graphics",imageSVG:"Immagine vettoriale Scalable Vector Graphics",imageTIFF:"Immagine Tag Image File Format",imageWEBP:"Immagine Google Web Picture",objectLinkingAndEmbedding:"Integrazione oggetti nei file",openDocumentFormat:"Documento OpenDocument",slideLO:"Slide di presentazione LibreOffice",slidePowerPoint:"Slide di presentazione PowerPoint",spreadsheetLO:"Foglio di calcolo LibreOffice",spreadsheetMS:"Foglio di calcolo Office",uncompressedArchive:"Archivio non compresso",uncompressedAudio:"Audio non compresso",unknown:"Formato file sconosciuto",videoHD:"Filmato HD ad alta risoluzione",videoSD:"Filmato SD a bassa risoluzione"};export{l as a,p as b,s as c,d,n as e,v as f,m as g,o as h,c as i}
1
+ import{b as e}from"./p-CGFwoK_U.js";const i={"7z":{format:"archive",description:"compressedArchive"},ace:{format:"archive",description:"compressedArchive"},ai:{format:"vector",description:"fileAI"},dart:{format:"code",description:"dart"},db:{format:"data",description:"fileDB"},default:{format:"attachment",description:"unknown"},dmg:{format:"executable",description:"appleDiskImage"},doc:{format:"text",description:"documentMS"},docm:{format:"text",description:"documentMS"},docx:{format:"text",description:"compressedDocumentMS"},eml:{format:"email",description:"email"},eps:{format:"vector",description:"fileEPS"},exe:{format:"executable",description:"fileEXE"},flac:{format:"audio",description:"uncompressedAudio"},gif:{format:"image",description:"compressedImage",preview:!0},heic:{format:"image",description:"imageHEFF"},htm:{format:"markup",description:"documentWeb"},html:{format:"markup",description:"documentWeb"},jpe:{format:"image",description:"compressedImage",preview:!0},jpeg:{format:"image",description:"compressedImage",preview:!0},jpg:{format:"image",description:"compressedImage",preview:!0},js:{format:"code",description:"fileJS"},json:{format:"data",description:"fileJSON"},jsx:{format:"code",description:"fileJS"},m2v:{format:"video",description:"videoSD"},mp2:{format:"audio",description:"compressedAudio"},mp3:{format:"audio",description:"compressedAudio"},mp4:{format:"video",description:"videoHD"},mp4v:{format:"video",description:"videoHD"},mpeg:{format:"video",description:"videoSD"},mpg4:{format:"video",description:"videoSD"},mpg:{format:"video",description:"videoSD"},mpga:{format:"audio",description:"compressedAudio"},odf:{format:"document",description:"openDocumentFormat"},odp:{format:"slide",description:"slideLO"},ods:{format:"spreadsheet",description:"spreadsheetLO"},odt:{format:"text",description:"documentLO"},ole:{format:"document",description:"objectLinkingAndEmbedding"},p7m:{format:"certificate",description:"documentDigitalSingnature"},pdf:{format:"document",description:"documentAdobe"},php:{format:"code",description:"filePHP"},png:{format:"image",description:"imagePNG",preview:!0},ppt:{format:"slide",description:"slidePowerPoint"},rar:{format:"archive",description:"compressedArchive"},rtf:{format:"text",description:"documentRTF"},sass:{format:"code",description:"fileSASS"},shtml:{format:"markup",description:"documentWeb"},svg:{format:"vector",description:"imageSVG",preview:!0},tar:{format:"archive",description:"uncompressedArchive"},tiff:{format:"image",description:"imageTIFF"},ts:{format:"code",description:"fileTS"},tsd:{format:"certificate",description:"certificateTSD"},tsx:{format:"code",description:"fileTSX"},txt:{format:"text",description:"documentTXT"},wav:{format:"audio",description:"uncompressedAudio"},webp:{format:"image",description:"imageWEBP",preview:!0},xar:{format:"archive",description:"compressedArchive"},xls:{format:"spreadsheet",description:"spreadsheetMS"},xlsx:{format:"spreadsheet",description:"spreadsheetMS"},xml:{format:"markup",description:"extensibleMarkupLanguage"},zip:{format:"archive",description:"compressedArchive"}},o=new Map([["image",[".png",".jpg",".jpeg",".tiff",".webp",".jpe",".gif",".heic"]],["audio",[".mp2",".mp3",".mpga",".wav",".flac"]],["video",[".mv2",".mp4",".mp4v",".mpeg",".mpg4",".mpg"]]]);var t='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-vector-curve" viewBox="0 0 24 24"><path d="M18.5,2A1.5,1.5 0 0,1 20,3.5A1.5,1.5 0 0,1 18.5,5C18.27,5 18.05,4.95 17.85,4.85L14.16,8.55L14.5,9C16.69,7.74 19.26,7 22,7L23,7.03V9.04L22,9C19.42,9 17,9.75 15,11.04A3.96,3.96 0 0,1 11.04,15C9.75,17 9,19.42 9,22L9.04,23H7.03L7,22C7,19.26 7.74,16.69 9,14.5L8.55,14.16L4.85,17.85C4.95,18.05 5,18.27 5,18.5A1.5,1.5 0 0,1 3.5,20A1.5,1.5 0 0,1 2,18.5A1.5,1.5 0 0,1 3.5,17C3.73,17 3.95,17.05 4.15,17.15L7.84,13.45C7.31,12.78 7,11.92 7,11A4,4 0 0,1 11,7C11.92,7 12.78,7.31 13.45,7.84L17.15,4.15C17.05,3.95 17,3.73 17,3.5A1.5,1.5 0 0,1 18.5,2M11,9A2,2 0 0,0 9,11A2,2 0 0,0 11,13A2,2 0 0,0 13,11A2,2 0 0,0 11,9Z" /></svg>';const r={archive:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"/></svg>',variant:"amaranth"},attachment:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 0 1 5 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 0 0 5 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"/></svg>',variant:"dark"},audio:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3v9.28a4.39 4.39 0 0 0-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/></svg>',variant:"violet"},certificate:{icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-license" viewBox="0 0 24 24"><path d="M9 10A3.04 3.04 0 0 1 12 7A3.04 3.04 0 0 1 15 10A3.04 3.04 0 0 1 12 13A3.04 3.04 0 0 1 9 10M12 19L16 20V16.92A7.54 7.54 0 0 1 12 18A7.54 7.54 0 0 1 8 16.92V20M12 4A5.78 5.78 0 0 0 7.76 5.74A5.78 5.78 0 0 0 6 10A5.78 5.78 0 0 0 7.76 14.23A5.78 5.78 0 0 0 12 16A5.78 5.78 0 0 0 16.24 14.23A5.78 5.78 0 0 0 18 10A5.78 5.78 0 0 0 16.24 5.74A5.78 5.78 0 0 0 12 4M20 10A8.04 8.04 0 0 1 19.43 12.8A7.84 7.84 0 0 1 18 15.28V23L12 21L6 23V15.28A7.9 7.9 0 0 1 4 10A7.68 7.68 0 0 1 6.33 4.36A7.73 7.73 0 0 1 12 2A7.73 7.73 0 0 1 17.67 4.36A7.68 7.68 0 0 1 20 10Z" /></svg>',variant:"orange"},code:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4l-4 4z"/></svg>',variant:"yellow"},data:{icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-harddisk" viewBox="0 0 24 24"><path d="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12,4A6,6 0 0,0 6,10C6,13.31 8.69,16 12.1,16L11.22,13.77C10.95,13.29 11.11,12.68 11.59,12.4L12.45,11.9C12.93,11.63 13.54,11.79 13.82,12.27L15.74,14.69C17.12,13.59 18,11.9 18,10A6,6 0 0,0 12,4M12,9A1,1 0 0,1 13,10A1,1 0 0,1 12,11A1,1 0 0,1 11,10A1,1 0 0,1 12,9M7,18A1,1 0 0,0 6,19A1,1 0 0,0 7,20A1,1 0 0,0 8,19A1,1 0 0,0 7,18M12.09,13.27L14.58,19.58L17.17,18.08L12.95,12.77L12.09,13.27Z" /></svg>',variant:"yellow"},document:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>',variant:"orange"},email:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5l-8-5V6l8 5l8-5v2z"/></svg>',variant:"blue"},executable:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 16H5V7h14v12zm-2-7H7v-2h10v2zm-4 4H7v-2h6v2z"/></svg>',variant:"amaranth"},image:{icon:e,variant:"green"},imageRaster:{icon:e,variant:"green"},markup:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/></svg>',variant:"yellow"},slide:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/></svg>',variant:"orchid"},spreadsheet:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/></svg>',variant:"lime"},text:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>',variant:"blue"},vectorImage:{icon:t,variant:"aqua"},vector:{icon:t,variant:"aqua"},video:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/></svg>',variant:"violet"}},a=(e,i='Attribute "filename" is undefined.')=>{var o;if(void 0===e)throw console.error(i);return e.includes("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":e},c=e=>{const i=e.lastIndexOf(".");return i>0?i:-1},d=e=>{const i=a(e),o=c(i);return-1===o?i:i.slice(0,o)},m=(e,i)=>{const o=(e=>{const i=a(e),o=c(i);return-1===o?i:i.slice(o+1)})(e),t=a(e);return null!=i?i.toLowerCase():o!==t?o:"default"},n=(e,o)=>{var t;const r=m(e,o).toLocaleLowerCase();return null!==(t=i[r])&&void 0!==t?t:i.default},s=(e,i)=>r[n(e,i).format];var p={appleDiskImage:"Εικόνα δίσκου Apple",certificateTSD:"Πιστοποιητικό χρονικής σήμανσης",compressedArchive:"Συμπιεσμένο αρχείο",compressedAudio:"Συμπιεσμένος ήχος",compressedDocumentMS:"Συμπιεσμένο έγγραφο Microsoft Word",compressedImage:"Συμπιεσμένη εικόνα",dart:"Αρχείο Dart",documentAdobe:"Έγγραφο Adobe",documentDigitalSingnature:"Έγγραφο με ψηφιακή υπογραφή",documentLO:"Έγγραφο LibreOffice",documentMS:"Έγγραφο Microsoft Word",documentRTF:"Έγγραφο μορφής εμπλουτισμένου κειμένου",documentTXT:"Απλό έγγραφο κειμένου",documentWeb:"Ιστοσελίδα",email:"Ηλεκτρονικό ταχυδρομείο",extensibleMarkupLanguage:"Γλώσσα σήμανσης για δεδομένα",fileAI:"Διανυσματικό αρχείο Adobe Illustrator",fileDB:"Αρχείο βάσης δεδομένων",fileEPS:"Διανυσματικό αρχείο Corel Draw",fileEXE:"Εκτελέσιμο αρχείο Windows",fileJS:"Αρχείο JavaScript",fileJSON:"Αρχείο JavaScript Object Notation",filePHP:"Αρχείο Hypertext Preprocessor",fileSASS:"Αρχείο Syntactically Awesome StyleSheets",fileTS:"Αρχείο TypeScript",fileTSX:"Αρχείο TypeScript Extended Syntax",imageHEIC:"Μορφή αρχείου εικόνας υψηλής αποδοτικότητας",imagePNG:"Εικόνα Portable Network Graphics",imageSVG:"Διανυσματική εικόνα Scalable Vector Graphics",imageTIFF:"Εικόνα Tag Image File Format",imageWEBP:"Εικόνα Google Web Picture",objectLinkingAndEmbedding:"Σύνδεση και ενσωμάτωση αντικειμένων",openDocumentFormat:"Έγγραφο OpenDocument",slideLO:"Διαφάνεια παρουσίασης LibreOffice",slidePowerPoint:"Διαφάνεια παρουσίασης PowerPoint",spreadsheetLO:"Υπολογιστικό φύλλο LibreOffice",spreadsheetMS:"Υπολογιστικό φύλλο Microsoft Office",uncompressedArchive:"Μη συμπιεσμένο αρχείο",uncompressedAudio:"Μη συμπιεσμένος ήχος",unknown:"Άγνωστη μορφή αρχείου",videoHD:"Βίντεο υψηλής ανάλυσης",videoSD:"Βίντεο χαμηλής ανάλυσης"},l={appleDiskImage:"Apple Disk Image",certificateTSD:"Timestamp Certificate",compressedArchive:"Compressed Archive",compressedAudio:"Compressed Audio",compressedDocumentMS:"Compressed Microsoft Word Document",compressedImage:"Compressed Image",dart:"Dart File",documentAdobe:"Adobe Document",documentDigitalSingnature:"Document with digital signature",documentLO:"LibreOffice Document",documentMS:"Microsoft Word Document",documentRTF:"Rich Text Format Document",documentTXT:"Plain Text Document",documentWeb:"Web Page",email:"E-mail",extensibleMarkupLanguage:"Markup language for data",fileAI:"Adobe Illustrator Vector File",fileDB:"Database File",fileEPS:"Corel Draw Vector File",fileEXE:"Windows Executable File",fileJS:"JavaScript File",fileJSON:"JavaScript Object Notation File",filePHP:"Hypertext Preprocessor File",fileSASS:"Syntactically Awesome StyleSheets File",fileTS:"TypeScript File",fileTSX:"TypeScript Extended Syntax File",imageHEIC:"High Efficiency Image File Format",imagePNG:"Portable Network Graphics Image",imageSVG:"Scalable Vector Graphics Image",imageTIFF:"Tag Image File Format Image",imageWEBP:"Google Web Picture Image",objectLinkingAndEmbedding:"Object Linking and Embedding",openDocumentFormat:"OpenDocument Document",slideLO:"LibreOffice Presentation Slide",slidePowerPoint:"PowerPoint Presentation Slide",spreadsheetLO:"LibreOffice Spreadsheet",spreadsheetMS:"Microsoft Office Spreadsheet",uncompressedArchive:"Uncompressed Archive",uncompressedAudio:"Uncompressed Audio",unknown:"Unknown File Format",videoHD:"High Definition Video",videoSD:"Standard Definition Video"},v={appleDiskImage:"Imagen de disco Apple",certificateTSD:"Certificado de sello de tiempo",compressedArchive:"Archivo comprimido",compressedAudio:"Audio comprimido",compressedDocumentMS:"Documento comprimido de Microsoft Word",compressedImage:"Imagen comprimida",dart:"Archivo Dart",documentAdobe:"Documento Adobe",documentDigitalSingnature:"Documento con firma digital",documentLO:"Documento de LibreOffice",documentMS:"Documento de Microsoft Word",documentRTF:"Documento de formato de texto enriquecido",documentTXT:"Documento de texto sin formato",documentWeb:"Página web",email:"Correo electrónico",extensibleMarkupLanguage:"Lenguaje de marcado para datos",fileAI:"Archivo vectorial de Adobe Illustrator",fileDB:"Archivo de base de datos",fileEPS:"Archivo vectorial de Corel Draw",fileEXE:"Archivo ejecutable de Windows",fileJS:"Archivo JavaScript",fileJSON:"Archivo de notación de objetos de JavaScript",filePHP:"Archivo de preprocesador de hipertexto",fileSASS:"Archivo de Syntactically Awesome StyleSheets",fileTS:"Archivo TypeScript",fileTSX:"Archivo de sintaxis extendida de TypeScript",imageHEIC:"Formato de archivo de imagen de alta eficiencia",imagePNG:"Imagen Portable Network Graphics",imageSVG:"Imagen de gráficos vectoriales escalables",imageTIFF:"Imagen de formato de archivo de imagen etiquetado",imageWEBP:"Imagen Google Web Picture",objectLinkingAndEmbedding:"Vinculación e incrustación de objetos",openDocumentFormat:"Documento OpenDocument",slideLO:"Diapositiva de presentación de LibreOffice",slidePowerPoint:"Diapositiva de presentación de PowerPoint",spreadsheetLO:"Hoja de cálculo de LibreOffice",spreadsheetMS:"Hoja de cálculo de Microsoft Office",uncompressedArchive:"Archivo no comprimido",uncompressedAudio:"Audio no comprimido",unknown:"Formato de archivo desconocido",videoHD:"Video de alta definición",videoSD:"Video de definición estándar"},g={appleDiskImage:"Immagine Disco Apple",certificateTSD:"Marca temporale",compressedArchive:"Archivio compresso",compressedAudio:"Audio compresso",compressedDocumentMS:"Documento di testo Microsoft Word Compresso",compressedImage:"Immagine compressa",dart:"File Dart",documentAdobe:"Documento Adobe",documentDigitalSingnature:"Documento con firma digitale",documentLO:"Documento di testo LibreOffice",documentMS:"Documento di testo Microsoft Word",documentRTF:"Documento di testo Rich Text Format",documentTXT:"Documento di testo senza formattazione",documentWeb:"Pagina web",email:"E-mail",extensibleMarkupLanguage:"Linguaggio markup per dati",fileAI:"File vettoriale Adobe Illustrator",fileDB:"File di database",fileEPS:"File vettoriale Corel Draw",fileEXE:"File eseguibile Windows",fileJS:"File JavaScript",fileJSON:"File JavaScript Object Notation",filePHP:"File Hypertext Preprocessor",fileSASS:"File Syntactically Awesome StyleSheets",fileTS:"File TypeScript",fileTSX:"File TypeScript Extended Syntax",imageHEIC:"High Efficiency Image File Format",imagePNG:"Immagine Portable Network Graphics",imageSVG:"Immagine vettoriale Scalable Vector Graphics",imageTIFF:"Immagine Tag Image File Format",imageWEBP:"Immagine Google Web Picture",objectLinkingAndEmbedding:"Integrazione oggetti nei file",openDocumentFormat:"Documento OpenDocument",slideLO:"Slide di presentazione LibreOffice",slidePowerPoint:"Slide di presentazione PowerPoint",spreadsheetLO:"Foglio di calcolo LibreOffice",spreadsheetMS:"Foglio di calcolo Office",uncompressedArchive:"Archivio non compresso",uncompressedAudio:"Audio non compresso",unknown:"Formato file sconosciuto",videoHD:"Filmato HD ad alta risoluzione",videoSD:"Filmato SD a bassa risoluzione"};export{v as a,l as b,p as c,m as d,s as e,g as f,n as g,o as h,d as i}
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-09-30T11:44:52",
2
+ "timestamp": "2026-09-30T14:40:34",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.44.2",
@@ -8630,7 +8630,7 @@
8630
8630
  "docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
8631
8631
  "docsTags": [],
8632
8632
  "usage": {
8633
- "1. Description": "The `<mds-file>` web component is the Magma Design System control for representing a downloadable file as a rich, clickable card. It pairs a filename with an auto-detected file-type icon, badge, and human-readable description, and tracks whether the file has already been downloaded.\n\n#### Semantic Behavior\n\n- **Clickable card**: The whole host is focusable and clicking it emits `mdsFileDownload`; the component itself does not fetch or download - the consumer wires the actual download to that event.\n- **Download event payload**: `mdsFileDownload` carries the resolved `description`, `extension`, `filename`, the host element as `target`, and the detected `type`/format.\n- **Downloaded persistence**: On click the component remembers the file as downloaded and shows a \"done\" indicator on subsequent renders; the state survives reloads.\n- **Automatic file-type recognition**: From `filename` it derives the format icon, badge variant, and default description; `suffix` overrides this detection.\n- **Localization**: Descriptions and the \"already downloaded\" tooltip are resolved against the active locale.\n\n#### Properties & Visual Configurations\n\n- **`filename`** is the primary input: it provides the displayed title and drives icon, badge, suffix, and description detection. The name and extension are rendered separately, with the extension shown only when not explicitly overridden by `suffix`.\n- **`suffix`** forces a specific file type from the supported format set when the filename's extension is missing or wrong; it bypasses automatic recognition.\n- **`description`** overrides the derived, localized file-type description when a custom label is needed.\n- **`preview`** supplies an image URL (logo or thumbnail) rendered as the preview surface instead of the generic format icon - use it when a meaningful visual of the file exists.\n- **`hideDownloadedIcon`** (default `false`) suppresses the persisted \"already downloaded\" indicator; set it when that affordance is not appropriate.\n- **`format`** is normally populated by the component itself from detection rather than set by the consumer.\n",
8633
+ "1. Description": "The `<mds-file>` web component is the Magma Design System control for representing a downloadable file as a rich, clickable card. It pairs a filename with an auto-detected file-type icon, badge, and human-readable description, and tracks whether the file has already been downloaded.\n\n#### Semantic Behavior\n\n- **Clickable card**: The whole host is focusable and clicking it emits `mdsFileDownload`; the component itself does not fetch or download - the consumer wires the actual download to that event.\n- **Download event payload**: `mdsFileDownload` carries the resolved `description`, `extension`, `filename`, the host element as `target`, and the detected `type`/format.\n- **Downloaded persistence**: On click the component remembers the file as downloaded and shows a \"done\" indicator on subsequent renders; the state survives reloads.\n- **Automatic file-type recognition**: From `filename` it derives the format icon, badge variant, and default description; `suffix` overrides this detection.\n- **Localization**: Descriptions and the \"already downloaded\" tooltip are resolved against the active locale.\n\n#### Properties & Visual Configurations\n\n- **`filename`** is the primary input: it provides the displayed title and drives icon, badge, suffix, and description detection. The name and extension are rendered separately, split at the last dot so the dots inside the name are kept (`report.v2.final.docx` shows `report.v2.final` and `.docx`; a leading dot belongs to the name, as in `.env`); the extension is shown only when not explicitly overridden by `suffix`.\n- **`suffix`** forces a specific file type from the supported format set when the filename's extension is missing or wrong; it bypasses automatic recognition.\n- **`description`** overrides the derived, localized file-type description when a custom label is needed.\n- **`preview`** supplies an image URL (logo or thumbnail) rendered as the preview surface instead of the generic format icon - use it when a meaningful visual of the file exists.\n- **`hideDownloadedIcon`** (default `false`) suppresses the persisted \"already downloaded\" indicator; set it when that affordance is not appropriate.\n- **`format`** is normally populated by the component itself from detection rather than set by the consumer.\n",
8634
8634
  "2. Pattern": "Correct and idiomatic ways to use the `<mds-file>` component, ordered from most common to most specialized. Patterns assume a working knowledge of the conventions documented in [`docs/COMPONENTS.md`](../../../../../../docs/COMPONENTS.md) and the generic stencil rules in [`projects/stencil/SPEC.md`](../../../../SPEC.md).\n\n#### Basic File Card\n\nThe minimal form. Pass `filename` with a real filename (including extension) and the component auto-detects the format icon, badge color, and localized description.\n\n```html\n<mds-file filename=\"relazione-annuale.pdf\"></mds-file>\n```\n\n#### Handling the Download Event\n\nThe component does not fetch or download anything by itself. Listen for `mdsFileDownload` and trigger the actual download in the event handler. The event detail carries `filename`, `extension`, `type`, `description`, and `target`.\n\n```html\n<mds-file filename=\"contratto-servizio.docx\" id=\"file-card\"></mds-file>\n\n<script>\n document.getElementById('file-card').addEventListener('mdsFileDownload', (event) => {\n const { filename, extension, type } = event.detail;\n console.log(`Download avviato: ${filename} (${type})`);\n // avvia il download effettivo dal server\n });\n</script>\n```\n\n#### Forcing a File Type with `suffix`\n\nWhen the filename lacks an extension or carries a misleading one, use `suffix` to force a specific format from the supported set.\n\n```html\n<!-- filename senza estensione - forza il riconoscimento come PDF -->\n<mds-file filename=\"documento-firmato\" suffix=\"pdf\"></mds-file>\n\n<!-- estensione sconosciuta - forzata come archivio ZIP -->\n<mds-file filename=\"backup.bkp\" suffix=\"zip\"></mds-file>\n```\n\n#### Custom Description\n\nOverride the localized auto-generated description with a specific label relevant to the document context. Use `description` when the default type label (e.g. \"Documento PDF\") is not informative enough.\n\n```html\n<mds-file\n filename=\"verbale-cda-2024.pdf\"\n description=\"Verbale approvato dal Consiglio di Amministrazione\"\n></mds-file>\n```\n\n#### Image Preview\n\nProvide `preview` with an image URL when a meaningful visual thumbnail is available - a logo, a reduced version of an image file, or a document cover. The preview replaces the generic format icon in the left panel.\n\n```html\n<mds-file\n filename=\"logo-aziendale.png\"\n preview=\"https://cdn.example.com/thumbnails/logo-aziendale-128.png\"\n></mds-file>\n```\n\n#### Hiding the \"Already Downloaded\" Indicator\n\nBy default the component persists a \"done\" indicator once the file has been downloaded. Add `hide-downloaded-icon` to suppress it when the affordance is not appropriate for the context (e.g. a list where every file is always shown as fresh).\n\n```html\n<mds-file filename=\"modulo-richiesta.xlsx\" hide-downloaded-icon></mds-file>\n```\n\nNote: this is the only valid way to turn the indicator off - do not set it to the string `\"false\"` (see the Antipattern file).\n\n#### Rendering a List of Files\n\nPlace multiple `<mds-file>` cards inside a container and attach a single delegated event listener when the file list is dynamic.\n\n```html\n<div class=\"file-list\">\n <mds-file filename=\"allegato-1.pdf\"></mds-file>\n <mds-file filename=\"allegato-2.docx\"></mds-file>\n <mds-file filename=\"allegato-3.xlsx\"></mds-file>\n</div>\n\n<script>\n document.querySelector('.file-list').addEventListener('mdsFileDownload', (event) => {\n const { filename } = event.detail;\n avviaDownload(filename);\n });\n</script>\n```\n\n#### Styling Customization\n\nStyle the preview panel only through the three documented `--mds-file-*` CSS custom properties. Use Magma color tokens via `rgb(var(--<token>))` so dark mode and high-contrast modes keep working.\n\n```css\n.archivio-documenti mds-file {\n --mds-file-preview-icon-color: rgb(var(--variant-primary-04));\n --mds-file-preview-icon-background: rgb(var(--variant-primary-10));\n --mds-file-preview-color: rgb(var(--variant-primary-04));\n}\n```\n",
8635
8635
  "3. Antipattern": "Common incorrect uses of `<mds-file>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`docs/COMPONENTS.md`](../../../../../../docs/COMPONENTS.md#system-level-anti-patterns) - they apply here too but are not repeated.\n\n#### Do Not Expect the Component to Perform the Download\n\n`<mds-file>` is a display card, not a download trigger. It emits `mdsFileDownload` and the consumer must wire the actual download logic to that event.\n\n```html\n<!-- 🚫 INCORRECT - expecting the component to handle the download itself -->\n<mds-file filename=\"report.pdf\" href=\"/files/report.pdf\"></mds-file>\n\n<!-- ✅ CORRECT - consumer listens to the event and handles the download -->\n<mds-file filename=\"report.pdf\" id=\"card-report\"></mds-file>\n\n<script>\n document.getElementById('card-report').addEventListener('mdsFileDownload', (e) => {\n window.location.href = '/files/' + e.detail.filename;\n });\n</script>\n```\n\n#### Do Not Set `format` Manually\n\n`format` is an internal reflected attribute automatically derived from the filename and suffix. Setting it directly has no guaranteed effect because the component overwrites it during `componentWillLoad` and on every `filename` change. Use `suffix` to control type detection.\n\n```html\n<!-- 🚫 INCORRECT -->\n<mds-file filename=\"archivio\" format=\"document\"></mds-file>\n\n<!-- ✅ CORRECT - use suffix to override file-type detection -->\n<mds-file filename=\"archivio\" suffix=\"pdf\"></mds-file>\n```\n\n#### Do Not Pierce Shadow DOM to Style the Preview Panel\n\nThe supported customization surface is `--mds-file-preview-*` CSS custom properties. Targeting internal elements with `>>>`, `/deep/`, or undocumented selectors couples your code to the Shadow DOM structure and will break on minor releases.\n\n```css\n/* 🚫 INCORRECT */\nmds-file >>> .preview {\n background-color: blue;\n}\n\n/* ✅ CORRECT */\nmds-file {\n --mds-file-preview-icon-background: rgb(var(--variant-primary-10));\n --mds-file-preview-icon-color: rgb(var(--variant-primary-04));\n}\n```\n\n#### Do Not Wrap `<mds-file>` in a Native Anchor or Button\n\nThe host is already focusable, keyboard-accessible, and emits its own interaction event. Wrapping it in `<a>` or `<button>` creates nested interactive controls and breaks keyboard semantics.\n\n```html\n<!-- 🚫 INCORRECT -->\n<a href=\"/download/report.pdf\">\n <mds-file filename=\"report.pdf\"></mds-file>\n</a>\n\n<!-- ✅ CORRECT - use the mdsFileDownload event to trigger navigation or download -->\n<mds-file filename=\"report.pdf\" id=\"file-report\"></mds-file>\n\n<script>\n document.getElementById('file-report').addEventListener('mdsFileDownload', () => {\n window.location.href = '/download/report.pdf';\n });\n</script>\n```\n\n#### Do Not Use a Raw `<div>` or `<li>` as a File Row When `<mds-file>` Exists\n\n`<mds-file>` handles format detection, theming, accessibility focus, download persistence, and localization. Rolling a custom file row loses all of these affordances.\n\n```html\n<!-- 🚫 INCORRECT -->\n<div class=\"file-row\" onclick=\"download('report.pdf')\">\n <img src=\"pdf-icon.svg\" alt=\"PDF\" />\n <span>report.pdf</span>\n</div>\n\n<!-- ✅ CORRECT -->\n<mds-file filename=\"report.pdf\"></mds-file>\n```\n"
8636
8636
  },
@@ -116,21 +116,24 @@ const sanitizeFilename = (filename, error = 'Attribute "filename" is undefined.'
116
116
  }
117
117
  return filename;
118
118
  };
119
+ /**
120
+ * Index of the dot that separates the name from the extension: the last one, so that the dots
121
+ * inside the name are kept (`report.v2.final.docx`). A leading dot is part of the name
122
+ * (`.env` has no extension). Returns -1 when the filename has no extension.
123
+ */
124
+ const getExtensionSeparator = (filename) => {
125
+ const dot = filename.lastIndexOf('.');
126
+ return dot > 0 ? dot : -1;
127
+ };
119
128
  const sanitizeSuffix = (rawFilename) => {
120
- var _a;
121
129
  const filename = sanitizeFilename(rawFilename);
122
- if (filename.includes('.')) {
123
- return (_a = filename.split('.').pop()) !== null && _a !== void 0 ? _a : '';
124
- }
125
- return filename;
130
+ const dot = getExtensionSeparator(filename);
131
+ return dot === -1 ? filename : filename.slice(dot + 1);
126
132
  };
127
133
  const getName = (rawFilename) => {
128
- var _a;
129
134
  const filename = sanitizeFilename(rawFilename);
130
- if (filename.includes('.')) {
131
- return (_a = filename.split('.')[0]) !== null && _a !== void 0 ? _a : '';
132
- }
133
- return filename;
135
+ const dot = getExtensionSeparator(filename);
136
+ return dot === -1 ? filename : filename.slice(0, dot);
134
137
  };
135
138
  const getSuffix = (rawFilename, suffixOverride) => {
136
139
  const suffix = sanitizeSuffix(rawFilename);
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-DIiEV39g.js';
2
2
  import { m as miBaselineCancel } from './cancel-BJ8rpzfj.js';
3
3
  import { c as clsx } from './clsx-ChV9xqsO.js';
4
- import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, e as getFormatsVariant } from './locale.it-Dj8sWDfj.js';
4
+ import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, e as getFormatsVariant } from './locale.it-Cvxh7La5.js';
5
5
  import { L as Locale } from './locale-CbJbTW_c.js';
6
6
  import { p as preferenceStore } from './preference-CKerJx2M.js';
7
7
  import './file-extensions-BxIk5ZFV.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, d as createEvent, h, e as Host, g as getElement } from './index-DIiEV39g.js';
2
2
  import { a as getAugmentedNamespace, c as commonjsGlobal } from './_commonjsHelpers-E-ZsRS8r.js';
3
- import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, h as getName, e as getFormatsVariant } from './locale.it-Dj8sWDfj.js';
3
+ import { f as fileDescriptionLocaleIt, a as fileDescriptionLocaleEs, b as fileDescriptionLocaleEn, c as fileDescriptionLocaleEl, g as getExtensionInfos, d as getSuffix, h as getName, e as getFormatsVariant } from './locale.it-Cvxh7La5.js';
4
4
  import { L as Locale } from './locale-CbJbTW_c.js';
5
5
  import { p as preferenceStore } from './preference-CKerJx2M.js';
6
6
  import './file-extensions-BxIk5ZFV.js';
@@ -0,0 +1,6 @@
1
+ import{f as fileExtensionsDictionary}from"./file-extensions-BxIk5ZFV.js";import{m as miBaselinePanorama}from"./panorama-b1ORvfSX.js";var baselineFolderZip='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"/></svg>';var baselineAttachFile='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 0 1 5 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 0 0 5 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"/></svg>';var baselineAudiotrack='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3v9.28a4.39 4.39 0 0 0-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/></svg>';var baselineTerminal='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4l-4 4z"/></svg>';var baselineInsertDriveFile='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>';var mdiLicense='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-license" viewBox="0 0 24 24"><path d="M9 10A3.04 3.04 0 0 1 12 7A3.04 3.04 0 0 1 15 10A3.04 3.04 0 0 1 12 13A3.04 3.04 0 0 1 9 10M12 19L16 20V16.92A7.54 7.54 0 0 1 12 18A7.54 7.54 0 0 1 8 16.92V20M12 4A5.78 5.78 0 0 0 7.76 5.74A5.78 5.78 0 0 0 6 10A5.78 5.78 0 0 0 7.76 14.23A5.78 5.78 0 0 0 12 16A5.78 5.78 0 0 0 16.24 14.23A5.78 5.78 0 0 0 18 10A5.78 5.78 0 0 0 16.24 5.74A5.78 5.78 0 0 0 12 4M20 10A8.04 8.04 0 0 1 19.43 12.8A7.84 7.84 0 0 1 18 15.28V23L12 21L6 23V15.28A7.9 7.9 0 0 1 4 10A7.68 7.68 0 0 1 6.33 4.36A7.73 7.73 0 0 1 12 2A7.73 7.73 0 0 1 17.67 4.36A7.68 7.68 0 0 1 20 10Z" /></svg>';var mdiHardDisk='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-harddisk" viewBox="0 0 24 24"><path d="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12,4A6,6 0 0,0 6,10C6,13.31 8.69,16 12.1,16L11.22,13.77C10.95,13.29 11.11,12.68 11.59,12.4L12.45,11.9C12.93,11.63 13.54,11.79 13.82,12.27L15.74,14.69C17.12,13.59 18,11.9 18,10A6,6 0 0,0 12,4M12,9A1,1 0 0,1 13,10A1,1 0 0,1 12,11A1,1 0 0,1 11,10A1,1 0 0,1 12,9M7,18A1,1 0 0,0 6,19A1,1 0 0,0 7,20A1,1 0 0,0 8,19A1,1 0 0,0 7,18M12.09,13.27L14.58,19.58L17.17,18.08L12.95,12.77L12.09,13.27Z" /></svg>';var baselineEmail='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5l-8-5V6l8 5l8-5v2z"/></svg>';var baselineWysiwyg='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 16H5V7h14v12zm-2-7H7v-2h10v2zm-4 4H7v-2h6v2z"/></svg>';var baselineWeb='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/></svg>';var baselineTV='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/></svg>';var baselineBorderAll='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/></svg>';var baselineDescription='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>';var mdiVectorCurve='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-vector-curve" viewBox="0 0 24 24"><path d="M18.5,2A1.5,1.5 0 0,1 20,3.5A1.5,1.5 0 0,1 18.5,5C18.27,5 18.05,4.95 17.85,4.85L14.16,8.55L14.5,9C16.69,7.74 19.26,7 22,7L23,7.03V9.04L22,9C19.42,9 17,9.75 15,11.04A3.96,3.96 0 0,1 11.04,15C9.75,17 9,19.42 9,22L9.04,23H7.03L7,22C7,19.26 7.74,16.69 9,14.5L8.55,14.16L4.85,17.85C4.95,18.05 5,18.27 5,18.5A1.5,1.5 0 0,1 3.5,20A1.5,1.5 0 0,1 2,18.5A1.5,1.5 0 0,1 3.5,17C3.73,17 3.95,17.05 4.15,17.15L7.84,13.45C7.31,12.78 7,11.92 7,11A4,4 0 0,1 11,7C11.92,7 12.78,7.31 13.45,7.84L17.15,4.15C17.05,3.95 17,3.73 17,3.5A1.5,1.5 0 0,1 18.5,2M11,9A2,2 0 0,0 9,11A2,2 0 0,0 11,13A2,2 0 0,0 13,11A2,2 0 0,0 11,9Z" /></svg>';var baselineVideocam='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/></svg>';var fileFormatsVariant={archive:{icon:baselineFolderZip,variant:"amaranth"},attachment:{icon:baselineAttachFile,variant:"dark"},audio:{icon:baselineAudiotrack,variant:"violet"},certificate:{icon:mdiLicense,variant:"orange"},code:{icon:baselineTerminal,variant:"yellow"},data:{icon:mdiHardDisk,variant:"yellow"},document:{icon:baselineInsertDriveFile,variant:"orange"},email:{icon:baselineEmail,variant:"blue"},executable:{icon:baselineWysiwyg,variant:"amaranth"},image:{icon:miBaselinePanorama,variant:"green"},imageRaster:{icon:miBaselinePanorama,variant:"green"},markup:{icon:baselineWeb,variant:"yellow"},slide:{icon:baselineTV,variant:"orchid"},spreadsheet:{icon:baselineBorderAll,variant:"lime"},text:{icon:baselineDescription,variant:"blue"},vectorImage:{icon:mdiVectorCurve,variant:"aqua"},vector:{icon:mdiVectorCurve,variant:"aqua"},video:{icon:baselineVideocam,variant:"violet"}};var sanitizeFilename=function(e,i){if(i===void 0){i='Attribute "filename" is undefined.'}var a;if(e===undefined){throw console.error(i)}if(e.includes("/")){return(a=e.split("/").pop())!==null&&a!==void 0?a:""}return e};
2
+ /**
3
+ * Index of the dot that separates the name from the extension: the last one, so that the dots
4
+ * inside the name are kept (`report.v2.final.docx`). A leading dot is part of the name
5
+ * (`.env` has no extension). Returns -1 when the filename has no extension.
6
+ */var getExtensionSeparator=function(e){var i=e.lastIndexOf(".");return i>0?i:-1};var sanitizeSuffix=function(e){var i=sanitizeFilename(e);var a=getExtensionSeparator(i);return a===-1?i:i.slice(a+1)};var getName=function(e){var i=sanitizeFilename(e);var a=getExtensionSeparator(i);return a===-1?i:i.slice(0,a)};var getSuffix=function(e,i){var a=sanitizeSuffix(e);var o=sanitizeFilename(e);if(i!==null&&i!==undefined){return i.toLowerCase()}if(a!==o){return a}return"default"};var getExtensionInfos=function(e,i){var a;var o=getSuffix(e,i).toLocaleLowerCase();return(a=fileExtensionsDictionary[o])!==null&&a!==void 0?a:fileExtensionsDictionary.default};var getFormatsVariant=function(e,i){return fileFormatsVariant[getExtensionInfos(e,i).format]};var appleDiskImage$3="Εικόνα δίσκου Apple";var certificateTSD$3="Πιστοποιητικό χρονικής σήμανσης";var compressedArchive$3="Συμπιεσμένο αρχείο";var compressedAudio$3="Συμπιεσμένος ήχος";var compressedDocumentMS$3="Συμπιεσμένο έγγραφο Microsoft Word";var compressedImage$3="Συμπιεσμένη εικόνα";var dart$3="Αρχείο Dart";var documentAdobe$3="Έγγραφο Adobe";var documentDigitalSingnature$3="Έγγραφο με ψηφιακή υπογραφή";var documentLO$3="Έγγραφο LibreOffice";var documentMS$3="Έγγραφο Microsoft Word";var documentRTF$3="Έγγραφο μορφής εμπλουτισμένου κειμένου";var documentTXT$3="Απλό έγγραφο κειμένου";var documentWeb$3="Ιστοσελίδα";var email$3="Ηλεκτρονικό ταχυδρομείο";var extensibleMarkupLanguage$3="Γλώσσα σήμανσης για δεδομένα";var fileAI$3="Διανυσματικό αρχείο Adobe Illustrator";var fileDB$3="Αρχείο βάσης δεδομένων";var fileEPS$3="Διανυσματικό αρχείο Corel Draw";var fileEXE$3="Εκτελέσιμο αρχείο Windows";var fileJS$3="Αρχείο JavaScript";var fileJSON$3="Αρχείο JavaScript Object Notation";var filePHP$3="Αρχείο Hypertext Preprocessor";var fileSASS$3="Αρχείο Syntactically Awesome StyleSheets";var fileTS$3="Αρχείο TypeScript";var fileTSX$3="Αρχείο TypeScript Extended Syntax";var imageHEIC$3="Μορφή αρχείου εικόνας υψηλής αποδοτικότητας";var imagePNG$3="Εικόνα Portable Network Graphics";var imageSVG$3="Διανυσματική εικόνα Scalable Vector Graphics";var imageTIFF$3="Εικόνα Tag Image File Format";var imageWEBP$3="Εικόνα Google Web Picture";var objectLinkingAndEmbedding$3="Σύνδεση και ενσωμάτωση αντικειμένων";var openDocumentFormat$3="Έγγραφο OpenDocument";var slideLO$3="Διαφάνεια παρουσίασης LibreOffice";var slidePowerPoint$3="Διαφάνεια παρουσίασης PowerPoint";var spreadsheetLO$3="Υπολογιστικό φύλλο LibreOffice";var spreadsheetMS$3="Υπολογιστικό φύλλο Microsoft Office";var uncompressedArchive$3="Μη συμπιεσμένο αρχείο";var uncompressedAudio$3="Μη συμπιεσμένος ήχος";var unknown$3="Άγνωστη μορφή αρχείου";var videoHD$3="Βίντεο υψηλής ανάλυσης";var videoSD$3="Βίντεο χαμηλής ανάλυσης";var fileDescriptionLocaleEl={appleDiskImage:appleDiskImage$3,certificateTSD:certificateTSD$3,compressedArchive:compressedArchive$3,compressedAudio:compressedAudio$3,compressedDocumentMS:compressedDocumentMS$3,compressedImage:compressedImage$3,dart:dart$3,documentAdobe:documentAdobe$3,documentDigitalSingnature:documentDigitalSingnature$3,documentLO:documentLO$3,documentMS:documentMS$3,documentRTF:documentRTF$3,documentTXT:documentTXT$3,documentWeb:documentWeb$3,email:email$3,extensibleMarkupLanguage:extensibleMarkupLanguage$3,fileAI:fileAI$3,fileDB:fileDB$3,fileEPS:fileEPS$3,fileEXE:fileEXE$3,fileJS:fileJS$3,fileJSON:fileJSON$3,filePHP:filePHP$3,fileSASS:fileSASS$3,fileTS:fileTS$3,fileTSX:fileTSX$3,imageHEIC:imageHEIC$3,imagePNG:imagePNG$3,imageSVG:imageSVG$3,imageTIFF:imageTIFF$3,imageWEBP:imageWEBP$3,objectLinkingAndEmbedding:objectLinkingAndEmbedding$3,openDocumentFormat:openDocumentFormat$3,slideLO:slideLO$3,slidePowerPoint:slidePowerPoint$3,spreadsheetLO:spreadsheetLO$3,spreadsheetMS:spreadsheetMS$3,uncompressedArchive:uncompressedArchive$3,uncompressedAudio:uncompressedAudio$3,unknown:unknown$3,videoHD:videoHD$3,videoSD:videoSD$3};var appleDiskImage$2="Apple Disk Image";var certificateTSD$2="Timestamp Certificate";var compressedArchive$2="Compressed Archive";var compressedAudio$2="Compressed Audio";var compressedDocumentMS$2="Compressed Microsoft Word Document";var compressedImage$2="Compressed Image";var dart$2="Dart File";var documentAdobe$2="Adobe Document";var documentDigitalSingnature$2="Document with digital signature";var documentLO$2="LibreOffice Document";var documentMS$2="Microsoft Word Document";var documentRTF$2="Rich Text Format Document";var documentTXT$2="Plain Text Document";var documentWeb$2="Web Page";var email$2="E-mail";var extensibleMarkupLanguage$2="Markup language for data";var fileAI$2="Adobe Illustrator Vector File";var fileDB$2="Database File";var fileEPS$2="Corel Draw Vector File";var fileEXE$2="Windows Executable File";var fileJS$2="JavaScript File";var fileJSON$2="JavaScript Object Notation File";var filePHP$2="Hypertext Preprocessor File";var fileSASS$2="Syntactically Awesome StyleSheets File";var fileTS$2="TypeScript File";var fileTSX$2="TypeScript Extended Syntax File";var imageHEIC$2="High Efficiency Image File Format";var imagePNG$2="Portable Network Graphics Image";var imageSVG$2="Scalable Vector Graphics Image";var imageTIFF$2="Tag Image File Format Image";var imageWEBP$2="Google Web Picture Image";var objectLinkingAndEmbedding$2="Object Linking and Embedding";var openDocumentFormat$2="OpenDocument Document";var slideLO$2="LibreOffice Presentation Slide";var slidePowerPoint$2="PowerPoint Presentation Slide";var spreadsheetLO$2="LibreOffice Spreadsheet";var spreadsheetMS$2="Microsoft Office Spreadsheet";var uncompressedArchive$2="Uncompressed Archive";var uncompressedAudio$2="Uncompressed Audio";var unknown$2="Unknown File Format";var videoHD$2="High Definition Video";var videoSD$2="Standard Definition Video";var fileDescriptionLocaleEn={appleDiskImage:appleDiskImage$2,certificateTSD:certificateTSD$2,compressedArchive:compressedArchive$2,compressedAudio:compressedAudio$2,compressedDocumentMS:compressedDocumentMS$2,compressedImage:compressedImage$2,dart:dart$2,documentAdobe:documentAdobe$2,documentDigitalSingnature:documentDigitalSingnature$2,documentLO:documentLO$2,documentMS:documentMS$2,documentRTF:documentRTF$2,documentTXT:documentTXT$2,documentWeb:documentWeb$2,email:email$2,extensibleMarkupLanguage:extensibleMarkupLanguage$2,fileAI:fileAI$2,fileDB:fileDB$2,fileEPS:fileEPS$2,fileEXE:fileEXE$2,fileJS:fileJS$2,fileJSON:fileJSON$2,filePHP:filePHP$2,fileSASS:fileSASS$2,fileTS:fileTS$2,fileTSX:fileTSX$2,imageHEIC:imageHEIC$2,imagePNG:imagePNG$2,imageSVG:imageSVG$2,imageTIFF:imageTIFF$2,imageWEBP:imageWEBP$2,objectLinkingAndEmbedding:objectLinkingAndEmbedding$2,openDocumentFormat:openDocumentFormat$2,slideLO:slideLO$2,slidePowerPoint:slidePowerPoint$2,spreadsheetLO:spreadsheetLO$2,spreadsheetMS:spreadsheetMS$2,uncompressedArchive:uncompressedArchive$2,uncompressedAudio:uncompressedAudio$2,unknown:unknown$2,videoHD:videoHD$2,videoSD:videoSD$2};var appleDiskImage$1="Imagen de disco Apple";var certificateTSD$1="Certificado de sello de tiempo";var compressedArchive$1="Archivo comprimido";var compressedAudio$1="Audio comprimido";var compressedDocumentMS$1="Documento comprimido de Microsoft Word";var compressedImage$1="Imagen comprimida";var dart$1="Archivo Dart";var documentAdobe$1="Documento Adobe";var documentDigitalSingnature$1="Documento con firma digital";var documentLO$1="Documento de LibreOffice";var documentMS$1="Documento de Microsoft Word";var documentRTF$1="Documento de formato de texto enriquecido";var documentTXT$1="Documento de texto sin formato";var documentWeb$1="Página web";var email$1="Correo electrónico";var extensibleMarkupLanguage$1="Lenguaje de marcado para datos";var fileAI$1="Archivo vectorial de Adobe Illustrator";var fileDB$1="Archivo de base de datos";var fileEPS$1="Archivo vectorial de Corel Draw";var fileEXE$1="Archivo ejecutable de Windows";var fileJS$1="Archivo JavaScript";var fileJSON$1="Archivo de notación de objetos de JavaScript";var filePHP$1="Archivo de preprocesador de hipertexto";var fileSASS$1="Archivo de Syntactically Awesome StyleSheets";var fileTS$1="Archivo TypeScript";var fileTSX$1="Archivo de sintaxis extendida de TypeScript";var imageHEIC$1="Formato de archivo de imagen de alta eficiencia";var imagePNG$1="Imagen Portable Network Graphics";var imageSVG$1="Imagen de gráficos vectoriales escalables";var imageTIFF$1="Imagen de formato de archivo de imagen etiquetado";var imageWEBP$1="Imagen Google Web Picture";var objectLinkingAndEmbedding$1="Vinculación e incrustación de objetos";var openDocumentFormat$1="Documento OpenDocument";var slideLO$1="Diapositiva de presentación de LibreOffice";var slidePowerPoint$1="Diapositiva de presentación de PowerPoint";var spreadsheetLO$1="Hoja de cálculo de LibreOffice";var spreadsheetMS$1="Hoja de cálculo de Microsoft Office";var uncompressedArchive$1="Archivo no comprimido";var uncompressedAudio$1="Audio no comprimido";var unknown$1="Formato de archivo desconocido";var videoHD$1="Video de alta definición";var videoSD$1="Video de definición estándar";var fileDescriptionLocaleEs={appleDiskImage:appleDiskImage$1,certificateTSD:certificateTSD$1,compressedArchive:compressedArchive$1,compressedAudio:compressedAudio$1,compressedDocumentMS:compressedDocumentMS$1,compressedImage:compressedImage$1,dart:dart$1,documentAdobe:documentAdobe$1,documentDigitalSingnature:documentDigitalSingnature$1,documentLO:documentLO$1,documentMS:documentMS$1,documentRTF:documentRTF$1,documentTXT:documentTXT$1,documentWeb:documentWeb$1,email:email$1,extensibleMarkupLanguage:extensibleMarkupLanguage$1,fileAI:fileAI$1,fileDB:fileDB$1,fileEPS:fileEPS$1,fileEXE:fileEXE$1,fileJS:fileJS$1,fileJSON:fileJSON$1,filePHP:filePHP$1,fileSASS:fileSASS$1,fileTS:fileTS$1,fileTSX:fileTSX$1,imageHEIC:imageHEIC$1,imagePNG:imagePNG$1,imageSVG:imageSVG$1,imageTIFF:imageTIFF$1,imageWEBP:imageWEBP$1,objectLinkingAndEmbedding:objectLinkingAndEmbedding$1,openDocumentFormat:openDocumentFormat$1,slideLO:slideLO$1,slidePowerPoint:slidePowerPoint$1,spreadsheetLO:spreadsheetLO$1,spreadsheetMS:spreadsheetMS$1,uncompressedArchive:uncompressedArchive$1,uncompressedAudio:uncompressedAudio$1,unknown:unknown$1,videoHD:videoHD$1,videoSD:videoSD$1};var appleDiskImage="Immagine Disco Apple";var certificateTSD="Marca temporale";var compressedArchive="Archivio compresso";var compressedAudio="Audio compresso";var compressedDocumentMS="Documento di testo Microsoft Word Compresso";var compressedImage="Immagine compressa";var dart="File Dart";var documentAdobe="Documento Adobe";var documentDigitalSingnature="Documento con firma digitale";var documentLO="Documento di testo LibreOffice";var documentMS="Documento di testo Microsoft Word";var documentRTF="Documento di testo Rich Text Format";var documentTXT="Documento di testo senza formattazione";var documentWeb="Pagina web";var email="E-mail";var extensibleMarkupLanguage="Linguaggio markup per dati";var fileAI="File vettoriale Adobe Illustrator";var fileDB="File di database";var fileEPS="File vettoriale Corel Draw";var fileEXE="File eseguibile Windows";var fileJS="File JavaScript";var fileJSON="File JavaScript Object Notation";var filePHP="File Hypertext Preprocessor";var fileSASS="File Syntactically Awesome StyleSheets";var fileTS="File TypeScript";var fileTSX="File TypeScript Extended Syntax";var imageHEIC="High Efficiency Image File Format";var imagePNG="Immagine Portable Network Graphics";var imageSVG="Immagine vettoriale Scalable Vector Graphics";var imageTIFF="Immagine Tag Image File Format";var imageWEBP="Immagine Google Web Picture";var objectLinkingAndEmbedding="Integrazione oggetti nei file";var openDocumentFormat="Documento OpenDocument";var slideLO="Slide di presentazione LibreOffice";var slidePowerPoint="Slide di presentazione PowerPoint";var spreadsheetLO="Foglio di calcolo LibreOffice";var spreadsheetMS="Foglio di calcolo Office";var uncompressedArchive="Archivio non compresso";var uncompressedAudio="Audio non compresso";var unknown="Formato file sconosciuto";var videoHD="Filmato HD ad alta risoluzione";var videoSD="Filmato SD a bassa risoluzione";var fileDescriptionLocaleIt={appleDiskImage:appleDiskImage,certificateTSD:certificateTSD,compressedArchive:compressedArchive,compressedAudio:compressedAudio,compressedDocumentMS:compressedDocumentMS,compressedImage:compressedImage,dart:dart,documentAdobe:documentAdobe,documentDigitalSingnature:documentDigitalSingnature,documentLO:documentLO,documentMS:documentMS,documentRTF:documentRTF,documentTXT:documentTXT,documentWeb:documentWeb,email:email,extensibleMarkupLanguage:extensibleMarkupLanguage,fileAI:fileAI,fileDB:fileDB,fileEPS:fileEPS,fileEXE:fileEXE,fileJS:fileJS,fileJSON:fileJSON,filePHP:filePHP,fileSASS:fileSASS,fileTS:fileTS,fileTSX:fileTSX,imageHEIC:imageHEIC,imagePNG:imagePNG,imageSVG:imageSVG,imageTIFF:imageTIFF,imageWEBP:imageWEBP,objectLinkingAndEmbedding:objectLinkingAndEmbedding,openDocumentFormat:openDocumentFormat,slideLO:slideLO,slidePowerPoint:slidePowerPoint,spreadsheetLO:spreadsheetLO,spreadsheetMS:spreadsheetMS,uncompressedArchive:uncompressedArchive,uncompressedAudio:uncompressedAudio,unknown:unknown,videoHD:videoHD,videoSD:videoSD};export{fileDescriptionLocaleEs as a,fileDescriptionLocaleEn as b,fileDescriptionLocaleEl as c,getSuffix as d,getFormatsVariant as e,fileDescriptionLocaleIt as f,getExtensionInfos as g,getName as h};
@@ -1,29 +1,29 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{m as miBaselineCancel}from"./cancel-BJ8rpzfj.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{f as fileDescriptionLocaleIt,a as fileDescriptionLocaleEs,b as fileDescriptionLocaleEn,c as fileDescriptionLocaleEl,g as getExtensionInfos,d as getSuffix,e as getFormatsVariant}from"./locale.it-Dj8sWDfj.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import"./file-extensions-BxIk5ZFV.js";import"./panorama-b1ORvfSX.js";
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{m as miBaselineCancel}from"./cancel-BJ8rpzfj.js";import{c as clsx}from"./clsx-ChV9xqsO.js";import{f as fileDescriptionLocaleIt,a as fileDescriptionLocaleEs,b as fileDescriptionLocaleEn,c as fileDescriptionLocaleEl,g as getExtensionInfos,d as getSuffix,e as getFormatsVariant}from"./locale.it-Cvxh7La5.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import"./file-extensions-BxIk5ZFV.js";import"./panorama-b1ORvfSX.js";
2
2
  /**
3
3
  * filesize
4
4
  *
5
5
  * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
6
6
  * @license BSD-3-Clause
7
7
  * @version 10.1.0
8
- */var ARRAY="array";var BIT="bit";var BITS="bits";var BYTE="byte";var BYTES="bytes";var EMPTY="";var EXPONENT="exponent";var FUNCTION="function";var IEC="iec";var INVALID_NUMBER="Invalid number";var INVALID_ROUND="Invalid rounding method";var JEDEC="jedec";var OBJECT="object";var PERIOD=".";var ROUND="round";var S="s";var SI="si";var SI_KBIT="kbit";var SI_KBYTE="kB";var SPACE=" ";var STRING="string";var ZERO="0";var STRINGS={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function filesize(e,r){var a=r===void 0?{}:r,i=a.bits,t=i===void 0?false:i,o=a.pad,s=o===void 0?false:o,l=a.base,n=l===void 0?-1:l,v=a.round,c=v===void 0?2:v,m=a.locale,d=m===void 0?EMPTY:m,b=a.localeOptions,g=b===void 0?{}:b,f=a.separator,p=f===void 0?EMPTY:f,u=a.spacer,h=u===void 0?SPACE:u,w=a.symbols,x=w===void 0?{}:w,k=a.standard,y=k===void 0?EMPTY:k,E=a.output,I=E===void 0?STRING:E,B=a.fullform,T=B===void 0?false:B,N=a.fullforms,j=N===void 0?[]:N,D=a.exponent,O=D===void 0?-1:D,M=a.roundingMethod,R=M===void 0?ROUND:M,P=a.precision,q=P===void 0?0:P;var C=O,Y=Number(e),L=[],F=0,z=EMPTY;
8
+ */var ARRAY="array";var BIT="bit";var BITS="bits";var BYTE="byte";var BYTES="bytes";var EMPTY="";var EXPONENT="exponent";var FUNCTION="function";var IEC="iec";var INVALID_NUMBER="Invalid number";var INVALID_ROUND="Invalid rounding method";var JEDEC="jedec";var OBJECT="object";var PERIOD=".";var ROUND="round";var S="s";var SI="si";var SI_KBIT="kbit";var SI_KBYTE="kB";var SPACE=" ";var STRING="string";var ZERO="0";var STRINGS={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function filesize(e,r){var a=r===void 0?{}:r,i=a.bits,t=i===void 0?false:i,o=a.pad,s=o===void 0?false:o,l=a.base,n=l===void 0?-1:l,v=a.round,c=v===void 0?2:v,m=a.locale,d=m===void 0?EMPTY:m,b=a.localeOptions,g=b===void 0?{}:b,f=a.separator,p=f===void 0?EMPTY:f,u=a.spacer,h=u===void 0?SPACE:u,w=a.symbols,x=w===void 0?{}:w,k=a.standard,y=k===void 0?EMPTY:k,E=a.output,I=E===void 0?STRING:E,B=a.fullform,T=B===void 0?false:B,N=a.fullforms,j=N===void 0?[]:N,D=a.exponent,O=D===void 0?-1:D,M=a.roundingMethod,R=M===void 0?ROUND:M,C=a.precision,P=C===void 0?0:C;var q=O,Y=Number(e),L=[],F=0,z=EMPTY;
9
9
  // Sync base & standard
10
10
  if(y===SI){n=10;y=JEDEC}else if(y===IEC||y===JEDEC){n=2}else if(n===2){y=IEC}else{n=10;y=JEDEC}var _=n===10?1e3:1024,A=T===true,G=Y<0,V=Math[R];if(typeof e!=="bigint"&&isNaN(e)){throw new TypeError(INVALID_NUMBER)}if(typeof V!==FUNCTION){throw new TypeError(INVALID_ROUND)}
11
11
  // Flipping a negative number to determine the size
12
12
  if(G){Y=-Y}
13
13
  // Determining the exponent
14
- if(C===-1||isNaN(C)){C=Math.floor(Math.log(Y)/Math.log(_));if(C<0){C=0}}
14
+ if(q===-1||isNaN(q)){q=Math.floor(Math.log(Y)/Math.log(_));if(q<0){q=0}}
15
15
  // Exceeding supported length, time to reduce & multiply
16
- if(C>8){if(q>0){q+=8-C}C=8}if(I===EXPONENT){return C}
16
+ if(q>8){if(P>0){P+=8-q}q=8}if(I===EXPONENT){return q}
17
17
  // Zero is now a special case because bytes divide by 1
18
- if(Y===0){L[0]=0;z=L[1]=STRINGS.symbol[y][t?BITS:BYTES][C]}else{F=Y/(n===2?Math.pow(2,C*10):Math.pow(1e3,C));if(t){F=F*8;if(F>=_&&C<8){F=F/_;C++}}var J=Math.pow(10,C>0?c:0);L[0]=V(F*J)/J;if(L[0]===_&&C<8&&O===-1){L[0]=1;C++}z=L[1]=n===10&&C===1?t?SI_KBIT:SI_KBYTE:STRINGS.symbol[y][t?BITS:BYTES][C]}
18
+ if(Y===0){L[0]=0;z=L[1]=STRINGS.symbol[y][t?BITS:BYTES][q]}else{F=Y/(n===2?Math.pow(2,q*10):Math.pow(1e3,q));if(t){F=F*8;if(F>=_&&q<8){F=F/_;q++}}var J=Math.pow(10,q>0?c:0);L[0]=V(F*J)/J;if(L[0]===_&&q<8&&O===-1){L[0]=1;q++}z=L[1]=n===10&&q===1?t?SI_KBIT:SI_KBYTE:STRINGS.symbol[y][t?BITS:BYTES][q]}
19
19
  // Decorating a 'diff'
20
20
  if(G){L[0]=-L[0]}
21
21
  // Setting optional precision
22
- if(q>0){L[0]=L[0].toPrecision(q)}
22
+ if(P>0){L[0]=L[0].toPrecision(P)}
23
23
  // Applying custom symbol
24
- L[1]=x[L[1]]||L[1];if(d===true){L[0]=L[0].toLocaleString()}else if(d.length>0){L[0]=L[0].toLocaleString(d,g)}else if(p.length>0){L[0]=L[0].toString().replace(PERIOD,p)}if(s&&Number.isInteger(L[0])===false&&c>0){var K=p||PERIOD,U=L[0].toString().split(K),Z=U[1]||EMPTY,$=Z.length,X=c-$;L[0]="".concat(U[0]).concat(K).concat(Z.padEnd($+X,ZERO))}if(A){L[1]=j[C]?j[C]:STRINGS.fullform[y][C]+(t?BIT:BYTE)+(L[0]===1?EMPTY:S)}
24
+ L[1]=x[L[1]]||L[1];if(d===true){L[0]=L[0].toLocaleString()}else if(d.length>0){L[0]=L[0].toLocaleString(d,g)}else if(p.length>0){L[0]=L[0].toString().replace(PERIOD,p)}if(s&&Number.isInteger(L[0])===false&&c>0){var K=p||PERIOD,U=L[0].toString().split(K),Z=U[1]||EMPTY,$=Z.length,X=c-$;L[0]="".concat(U[0]).concat(K).concat(Z.padEnd($+X,ZERO))}if(A){L[1]=j[q]?j[q]:STRINGS.fullform[y][q]+(t?BIT:BYTE)+(L[0]===1?EMPTY:S)}
25
25
  // Returning Array, Object, or String (default)
26
- return I===ARRAY?L:I===OBJECT?{value:L[0],symbol:L[1],exponent:C,unit:z}:L.join(h)}var remove$3="Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης";var localeEl={remove:remove$3};var remove$2="Remove file from upload queue";var localeEn={remove:remove$2};var remove$1="Eliminar archivo de la cola de carga";var localeEs={remove:remove$1};var remove="Rimuovi file dalla coda di upload";var localeIt={remove:remove};var mdsFilePreviewCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-button,mds-icon,mds-img,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-background-color:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-file-preview-border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--mds-file-preview-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-file-preview-icon-background:inherit;--mds-file-preview-icon-color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));--mds-file-preview-transition-duration:0s;--private-file-preview-padding:calc(var(--spacing,.0025rem)*400);--private-file-preview-transition-duration:var(--mds-file-preview-transition-duration);background-color:var(--mds-file-preview-background-color,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--mds-file-preview-border-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;fill:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));-ms-flex-pack:stretch;display:flex;justify-content:stretch;overflow:hidden;position:relative;-webkit-transition-duration:var(--private-file-preview-transition-duration);transition-duration:var(--private-file-preview-transition-duration)}.card{display:grid;gap:calc(var(--spacing,.0025rem)*200);grid-template-columns:repeat(1,minmax(1px,100%));padding:var(--private-file-preview-padding)}.card,.preview{corner-shape:inherit;width:100%}.preview{aspect-ratio:var(--aspect-square,1/1);background-color:var(--mds-file-preview-icon-background);border-radius:max(0px,calc(var(--mds-file-preview-border-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--private-file-preview-padding)));box-sizing:border-box;color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));-webkit-transition-duration:inherit;transition-duration:inherit}.preview--image{filter:brightness(.975);padding:0!important}.preview--icon,.preview--status{align-items:center;display:flex;flex-direction:column;justify-content:center}.preview--status{gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*400)}.icon{height:calc(var(--spacing,.0025rem)*1200);width:calc(var(--spacing,.0025rem)*1200)}.message{text-align:center}.action-delete{background-color:var(--mds-file-preview-background-color,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));position:absolute;right:0;top:0;z-index:10}.infos{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.suffix{flex-shrink:0}.infos--has-file-size{justify-content:space-between}.file-name{--mds-text-line-clamp:2}:host([format=archive]),:host([format=executable]){--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47))}:host([format=attachment]){--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([format=audio]),:host([format=video]){--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5))}:host([format=certificate]),:host([format=document]){--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5))}:host([format=email]),:host([format=text]){--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248))}:host([format=image]){--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61))}:host([format=slide]){--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113))}:host([format=spreadsheet]){--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13))}:host([format=vector]){--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143))}:host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-file-preview-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-file-preview-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-file-preview-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-09,253 214 221));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-03,170 10 37))}:host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-09,151 237 252));--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-03,3 97 114))}:host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-03,11 51 246))}:host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-09,165 240 193));--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-03,18 103 49))}:host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-09,189 239 111));--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-03,64 99 11))}:host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-09,253 217 191));--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-03,147 63 4))}:host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-09,251 213 232));--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-03,165 17 90))}:host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-09,235 216 253));--mds-file-preview-icon-color:rgb(var(--label-purple-04,150 51 245));--mds-file-preview-color:rgb(var(--label-purple-03,116 10 217))}:host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-09,250 215 215));--mds-file-preview-icon-color:rgb(var(--label-red-04,212 28 28));--mds-file-preview-color:rgb(var(--label-red-03,169 22 22))}:host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-09,185 231 251));--mds-file-preview-icon-color:rgb(var(--label-sky-04,10 118 167));--mds-file-preview-color:rgb(var(--label-sky-03,8 94 133))}:host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-09,229 218 253));--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-03,87 20 242))}:host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-09,251 221 131));--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-03,112 85 4))}:host([pref-contrast=more]):host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))));--mds-file-preview-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([pref-contrast=more]):host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-file-preview-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([pref-contrast=more]):host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-file-preview-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([pref-contrast=more]):host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([pref-contrast=more]):host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-file-preview-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([pref-contrast=more]):host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02,131 8 29));--mds-file-preview-color:rgb(var(--label-amaranth-01,88 5 19))}:host([pref-contrast=more]):host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-02,2 75 88));--mds-file-preview-color:rgb(var(--label-aqua-01,2 50 59))}:host([pref-contrast=more]):host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-file-preview-color:rgb(var(--label-blue-01,5 26 127))}:host([pref-contrast=more]):host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-02,14 80 38));--mds-file-preview-color:rgb(var(--label-green-01,9 52 25))}:host([pref-contrast=more]):host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-02,49 76 8));--mds-file-preview-color:rgb(var(--label-lime-01,33 51 6))}:host([pref-contrast=more]):host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-02,114 48 3));--mds-file-preview-color:rgb(var(--label-orange-01,76 32 2))}:host([pref-contrast=more]):host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-02,127 13 70));--mds-file-preview-color:rgb(var(--label-orchid-01,85 9 47))}:host([pref-contrast=more]):host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-10,244 233 254));--mds-file-preview-icon-color:rgb(var(--label-purple-02,90 8 168));--mds-file-preview-color:rgb(var(--label-purple-01,60 5 112))}:host([pref-contrast=more]):host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-10,252 233 233));--mds-file-preview-icon-color:rgb(var(--label-red-02,131 17 17));--mds-file-preview-color:rgb(var(--label-red-01,87 11 11))}:host([pref-contrast=more]):host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10,217 241 253));--mds-file-preview-icon-color:rgb(var(--label-sky-02,6 73 104));--mds-file-preview-color:rgb(var(--label-sky-01,4 48 68))}:host([pref-contrast=more]):host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-02,65 11 190));--mds-file-preview-color:rgb(var(--label-violet-01,43 7 127))}:host([pref-contrast=more]):host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-02,87 67 3));--mds-file-preview-color:rgb(var(--label-yellow-01,58 44 2))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-preview-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-file-preview-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))));--mds-file-preview-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-file-preview-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-file-preview-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-file-preview-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02,131 8 29));--mds-file-preview-color:rgb(var(--label-amaranth-01,88 5 19))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-02,2 75 88));--mds-file-preview-color:rgb(var(--label-aqua-01,2 50 59))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-file-preview-color:rgb(var(--label-blue-01,5 26 127))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-02,14 80 38));--mds-file-preview-color:rgb(var(--label-green-01,9 52 25))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-02,49 76 8));--mds-file-preview-color:rgb(var(--label-lime-01,33 51 6))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-02,114 48 3));--mds-file-preview-color:rgb(var(--label-orange-01,76 32 2))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-02,127 13 70));--mds-file-preview-color:rgb(var(--label-orchid-01,85 9 47))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-10,244 233 254));--mds-file-preview-icon-color:rgb(var(--label-purple-02,90 8 168));--mds-file-preview-color:rgb(var(--label-purple-01,60 5 112))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-10,252 233 233));--mds-file-preview-icon-color:rgb(var(--label-red-02,131 17 17));--mds-file-preview-color:rgb(var(--label-red-01,87 11 11))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10,217 241 253));--mds-file-preview-icon-color:rgb(var(--label-sky-02,6 73 104));--mds-file-preview-color:rgb(var(--label-sky-01,4 48 68))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-02,65 11 190));--mds-file-preview-color:rgb(var(--label-violet-01,43 7 127))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-02,87 67 3));--mds-file-preview-color:rgb(var(--label-yellow-01,58 44 2))}:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-file-preview-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-preview-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}"};var MdsFilePreview=/** @class */function(){function e(e){var r=this;registerInstance(this,e);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.deletedEvent=createEvent(this,"mdsFileDelete",7);this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});
26
+ return I===ARRAY?L:I===OBJECT?{value:L[0],symbol:L[1],exponent:q,unit:z}:L.join(h)}var remove$3="Αφαιρέστε το αρχείο από την ουρά μεταφόρτωσης";var localeEl={remove:remove$3};var remove$2="Remove file from upload queue";var localeEn={remove:remove$2};var remove$1="Eliminar archivo de la cola de carga";var localeEs={remove:remove$1};var remove="Rimuovi file dalla coda di upload";var localeIt={remove:remove};var mdsFilePreviewCss=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-button,mds-icon,mds-img,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-background-color:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));--mds-file-preview-border-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--mds-file-preview-color:rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73))));--mds-file-preview-icon-background:inherit;--mds-file-preview-icon-color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));--mds-file-preview-transition-duration:0s;--private-file-preview-padding:calc(var(--spacing,.0025rem)*400);--private-file-preview-transition-duration:var(--mds-file-preview-transition-duration);background-color:var(--mds-file-preview-background-color,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));border-radius:var(--mds-file-preview-border-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));-webkit-box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;fill:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));-ms-flex-pack:stretch;display:flex;justify-content:stretch;overflow:hidden;position:relative;-webkit-transition-duration:var(--private-file-preview-transition-duration);transition-duration:var(--private-file-preview-transition-duration)}.card{display:grid;gap:calc(var(--spacing,.0025rem)*200);grid-template-columns:repeat(1,minmax(1px,100%));padding:var(--private-file-preview-padding)}.card,.preview{corner-shape:inherit;width:100%}.preview{aspect-ratio:var(--aspect-square,1/1);background-color:var(--mds-file-preview-icon-background);border-radius:max(0px,calc(var(--mds-file-preview-border-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px))) - var(--private-file-preview-padding)));box-sizing:border-box;color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));-webkit-transition-duration:inherit;transition-duration:inherit}.preview--image{filter:brightness(.975);padding:0!important}.preview--icon,.preview--status{align-items:center;display:flex;flex-direction:column;justify-content:center}.preview--status{gap:calc(var(--spacing,.0025rem)*200);padding:calc(var(--spacing,.0025rem)*400)}.icon{height:calc(var(--spacing,.0025rem)*1200);width:calc(var(--spacing,.0025rem)*1200)}.message{text-align:center}.action-delete{background-color:var(--mds-file-preview-background-color,rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248)))));position:absolute;right:0;top:0;z-index:10}.infos{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200)}.suffix{flex-shrink:0}.infos--has-file-size{justify-content:space-between}.file-name{--mds-text-line-clamp:2}:host([format=archive]),:host([format=executable]){--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47))}:host([format=attachment]){--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))))}:host([format=audio]),:host([format=video]){--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5))}:host([format=certificate]),:host([format=document]){--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5))}:host([format=email]),:host([format=text]){--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248))}:host([format=image]){--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61))}:host([format=slide]){--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113))}:host([format=spreadsheet]){--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13))}:host([format=vector]){--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143))}:host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface,var(--magma-tint-accent-surface,var(--variant-primary-09,220 224 231))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis,var(--magma-tint-accent-emphasis,var(--variant-primary-04,36 103 231))))}:host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-file-preview-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)))}:host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-file-preview-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)))}:host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)))}:host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-file-preview-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)))}:host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-09,253 214 221));--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-03,170 10 37))}:host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-09,151 237 252));--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-03,3 97 114))}:host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-09,216 222 254));--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-03,11 51 246))}:host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-09,165 240 193));--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-03,18 103 49))}:host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-09,189 239 111));--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-03,64 99 11))}:host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-09,253 217 191));--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-03,147 63 4))}:host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-09,251 213 232));--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-03,165 17 90))}:host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-09,235 216 253));--mds-file-preview-icon-color:rgb(var(--label-purple-04,150 51 245));--mds-file-preview-color:rgb(var(--label-purple-03,116 10 217))}:host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-09,250 215 215));--mds-file-preview-icon-color:rgb(var(--label-red-04,212 28 28));--mds-file-preview-color:rgb(var(--label-red-03,169 22 22))}:host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-09,185 231 251));--mds-file-preview-icon-color:rgb(var(--label-sky-04,10 118 167));--mds-file-preview-color:rgb(var(--label-sky-03,8 94 133))}:host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-09,229 218 253));--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-03,87 20 242))}:host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-09,251 221 131));--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-03,112 85 4))}:host([pref-contrast=more]):host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))));--mds-file-preview-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:host([pref-contrast=more]):host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-file-preview-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([pref-contrast=more]):host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-file-preview-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([pref-contrast=more]):host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([pref-contrast=more]):host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-file-preview-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([pref-contrast=more]):host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02,131 8 29));--mds-file-preview-color:rgb(var(--label-amaranth-01,88 5 19))}:host([pref-contrast=more]):host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-02,2 75 88));--mds-file-preview-color:rgb(var(--label-aqua-01,2 50 59))}:host([pref-contrast=more]):host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-file-preview-color:rgb(var(--label-blue-01,5 26 127))}:host([pref-contrast=more]):host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-02,14 80 38));--mds-file-preview-color:rgb(var(--label-green-01,9 52 25))}:host([pref-contrast=more]):host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-02,49 76 8));--mds-file-preview-color:rgb(var(--label-lime-01,33 51 6))}:host([pref-contrast=more]):host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-02,114 48 3));--mds-file-preview-color:rgb(var(--label-orange-01,76 32 2))}:host([pref-contrast=more]):host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-02,127 13 70));--mds-file-preview-color:rgb(var(--label-orchid-01,85 9 47))}:host([pref-contrast=more]):host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-10,244 233 254));--mds-file-preview-icon-color:rgb(var(--label-purple-02,90 8 168));--mds-file-preview-color:rgb(var(--label-purple-01,60 5 112))}:host([pref-contrast=more]):host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-10,252 233 233));--mds-file-preview-icon-color:rgb(var(--label-red-02,131 17 17));--mds-file-preview-color:rgb(var(--label-red-01,87 11 11))}:host([pref-contrast=more]):host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10,217 241 253));--mds-file-preview-icon-color:rgb(var(--label-sky-02,6 73 104));--mds-file-preview-color:rgb(var(--label-sky-01,4 48 68))}:host([pref-contrast=more]):host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-02,65 11 190));--mds-file-preview-color:rgb(var(--label-violet-01,43 7 127))}:host([pref-contrast=more]):host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-02,87 67 3));--mds-file-preview-color:rgb(var(--label-yellow-01,58 44 2))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-preview-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-file-preview-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=primary][message]){--mds-file-preview-icon-background:rgb(var(--magma-accent-surface-subtle,var(--magma-tint-accent-surface-subtle,var(--variant-primary-10,236 237 240))));--mds-file-preview-icon-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))));--mds-file-preview-color:rgb(var(--magma-accent-emphasis-active,var(--magma-tint-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=info][message]){--mds-file-preview-icon-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-file-preview-icon-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-file-preview-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=success][message]){--mds-file-preview-icon-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-file-preview-icon-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-file-preview-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=warning][message]){--mds-file-preview-icon-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-file-preview-icon-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-file-preview-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=error][message]){--mds-file-preview-icon-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-file-preview-icon-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-file-preview-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=amaranth][message]){--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236));--mds-file-preview-icon-color:rgb(var(--label-amaranth-02,131 8 29));--mds-file-preview-color:rgb(var(--label-amaranth-01,88 5 19))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=aqua][message]){--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253));--mds-file-preview-icon-color:rgb(var(--label-aqua-02,2 75 88));--mds-file-preview-color:rgb(var(--label-aqua-01,2 50 59))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=blue][message]){--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254));--mds-file-preview-icon-color:rgb(var(--label-blue-02,7 39 192));--mds-file-preview-color:rgb(var(--label-blue-01,5 26 127))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=green][message]){--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221));--mds-file-preview-icon-color:rgb(var(--label-green-02,14 80 38));--mds-file-preview-color:rgb(var(--label-green-01,9 52 25))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=lime][message]){--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178));--mds-file-preview-icon-color:rgb(var(--label-lime-02,49 76 8));--mds-file-preview-color:rgb(var(--label-lime-01,33 51 6))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=orange][message]){--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219));--mds-file-preview-icon-color:rgb(var(--label-orange-02,114 48 3));--mds-file-preview-color:rgb(var(--label-orange-01,76 32 2))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=orchid][message]){--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242));--mds-file-preview-icon-color:rgb(var(--label-orchid-02,127 13 70));--mds-file-preview-color:rgb(var(--label-orchid-01,85 9 47))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=purple][message]){--mds-file-preview-icon-background:rgb(var(--label-purple-10,244 233 254));--mds-file-preview-icon-color:rgb(var(--label-purple-02,90 8 168));--mds-file-preview-color:rgb(var(--label-purple-01,60 5 112))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=red][message]){--mds-file-preview-icon-background:rgb(var(--label-red-10,252 233 233));--mds-file-preview-icon-color:rgb(var(--label-red-02,131 17 17));--mds-file-preview-color:rgb(var(--label-red-01,87 11 11))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=sky][message]){--mds-file-preview-icon-background:rgb(var(--label-sky-10,217 241 253));--mds-file-preview-icon-color:rgb(var(--label-sky-02,6 73 104));--mds-file-preview-color:rgb(var(--label-sky-01,4 48 68))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=violet][message]){--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254));--mds-file-preview-icon-color:rgb(var(--label-violet-02,65 11 190));--mds-file-preview-color:rgb(var(--label-violet-01,43 7 127))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host([variant=yellow][message]){--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186));--mds-file-preview-icon-color:rgb(var(--label-yellow-02,87 67 3));--mds-file-preview-color:rgb(var(--label-yellow-01,58 44 2))}:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-file-preview-color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))));-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-preview-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}"};var MdsFilePreview=/** @class */function(){function e(e){var r=this;registerInstance(this,e);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.deletedEvent=createEvent(this,"mdsFileDelete",7);this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});
27
27
  /**
28
28
  * Truncates the filename shown
29
29
  */this.truncate="word";this.getDefaultKeyDescription=function(){return getExtensionInfos(r.filename,r.suffix).description};this.onClickDeletedEvent=function(){r.deletedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})};this.onClickDownloadEvent=function(){r.downloadedEvent.emit({target:r.host,filename:r.filename,extension:getSuffix(r.filename,r.suffix)})}}e.prototype.componentWillLoad=function(){this.format=getExtensionInfos(this.filename,this.suffix).format};e.prototype.componentDidLoad=function(){this.handleDownloadable(this.downloadable)};e.prototype.handleFilename=function(e){this.format=getExtensionInfos(e,this.suffix).format};e.prototype.handleDownloadable=function(e,r){var a;if(e===r)return;var i=(a=this.host.shadowRoot)===null||a===void 0?void 0:a.querySelector(".card");if(e){i===null||i===void 0?void 0:i.addEventListener("click",this.onClickDownloadEvent);return}i===null||i===void 0?void 0:i.removeEventListener("click",this.onClickDownloadEvent)};e.prototype.render=function(){var e,r,a;return h(Host,{key:"389451c485ded68d3d3d99e950ec2e2ad08f4ac9","pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},this.deletable&&h("mds-button",{key:"e04b3974185c09a3d9407b74168a37afce9d23de",title:this.t.get("remove"),class:"action-delete",icon:miBaselineCancel,variant:"light",onClick:this.onClickDeletedEvent}),h("div",{key:"f899421ec875a83f2593890e0a736759b903b24f",class:"card",part:"card",onClick:this.onClickDownloadEvent},this.src!==undefined&&this.src!==""&&(this.message===undefined||this.message==="")&&getExtensionInfos(this.filename,this.suffix).preview?h("mds-img",{src:this.src,class:"preview preview--image","aspect-ratio":"1/1"}):h("div",{class:clsx("preview",this.message===undefined||this.message===""?"preview--icon":"preview--status")},this.icon!==undefined&&this.icon!==""?h("mds-icon",{class:"icon",name:this.icon}):h("mds-icon",{class:"icon",name:getFormatsVariant(this.filename,this.suffix).icon}),this.message&&h("mds-text",{class:"message",typography:"caption",variant:"info"},this.message)),h("mds-text",{key:"32d3359b9c41a845001e17987ce703219ba29843",class:"file-name",typography:"h6",variant:"title",truncate:this.truncate,title:this.filename},this.filename),h("div",{key:"79e555cedfc5d35b2d54ec6a3aee7591cc0edf2e",class:clsx("infos",this.filesize&&"infos--has-file-size")},this.filesize&&this.filesize===Number(this.filesize).toString()&&h("mds-text",{key:"84e7d78e1d0639e637173a1c781a61f21e459b6d",class:"file-size",truncate:"word",typography:"caption",variant:"info"},filesize(Number(this.filesize),{standard:"jedec"})),this.filesize&&this.filesize!==Number(this.filesize).toString()&&h("mds-text",{key:"8945ff2c6224b7a4803390eae2fc12474903a3dd",class:"file-size",truncate:"word",typography:"caption",variant:"info"},this.filesize),getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"5581cb1f4d13f6f15f28c0957094dcd5982f0a0f",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix",title:(e=this.description)!==null&&e!==void 0?e:this.t.get(this.getDefaultKeyDescription())},getSuffix(this.filename,this.suffix)),(this.filesize===undefined||this.filesize==="")&&h("mds-text",{key:"d743b838cc6fa9fed0f5cdf7914c7652bfc3e1ac",class:"description",truncate:"word",typography:"caption",variant:"info",title:(r=this.description)!==null&&r!==void 0?r:this.t.get(this.getDefaultKeyDescription())},(a=this.description)!==null&&a!==void 0?a:this.t.get(this.getDefaultKeyDescription())))))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{filename:[{handleFilename:0}],downloadable:[{handleDownloadable:0}]}},enumerable:false,configurable:true});return e}();MdsFilePreview.style=mdsFilePreviewCss();export{MdsFilePreview as mds_file_preview};
@@ -1,4 +1,4 @@
1
- import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{a as getAugmentedNamespace,c as commonjsGlobal}from"./_commonjsHelpers-E-ZsRS8r.js";import{f as fileDescriptionLocaleIt,a as fileDescriptionLocaleEs,b as fileDescriptionLocaleEn,c as fileDescriptionLocaleEl,g as getExtensionInfos,d as getSuffix,h as getName,e as getFormatsVariant}from"./locale.it-Dj8sWDfj.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import"./file-extensions-BxIk5ZFV.js";import"./panorama-b1ORvfSX.js";var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var require$$0=getAugmentedNamespace(_nodeResolve_empty$1);var core=core$1.exports;var hasRequiredCore;function requireCore(){if(hasRequiredCore)return core$1.exports;hasRequiredCore=1;(function(r,e){(function(e,a){{
1
+ import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{a as getAugmentedNamespace,c as commonjsGlobal}from"./_commonjsHelpers-E-ZsRS8r.js";import{f as fileDescriptionLocaleIt,a as fileDescriptionLocaleEs,b as fileDescriptionLocaleEn,c as fileDescriptionLocaleEl,g as getExtensionInfos,d as getSuffix,h as getName,e as getFormatsVariant}from"./locale.it-Cvxh7La5.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import"./file-extensions-BxIk5ZFV.js";import"./panorama-b1ORvfSX.js";var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var require$$0=getAugmentedNamespace(_nodeResolve_empty$1);var core=core$1.exports;var hasRequiredCore;function requireCore(){if(hasRequiredCore)return core$1.exports;hasRequiredCore=1;(function(r,e){(function(e,a){{
2
2
  // CommonJS
3
3
  r.exports=a()}})(core,(function(){
4
4
  /*globals window, global, require*/
@@ -1164,7 +1164,7 @@ var f=[];(function(){for(var r=0;r<80;r++){f[r]=v()}})();
1164
1164
  // Shortcuts
1165
1165
  var a=this._hash.words;var i=a[0];var t=a[1];var n=a[2];var o=a[3];var s=a[4];var v=a[5];var c=a[6];var d=a[7];var h=i.high;var l=i.low;var p=t.high;var m=t.low;var b=n.high;var g=n.low;var q=o.high;var w=o.low;var x=s.high;var y=s.low;var $=v.high;var C=v.low;var R=c.high;var k=c.low;var S=d.high;var E=d.low;
1166
1166
  // Working variables
1167
- var B=h;var _=l;var M=p;var z=m;var I=b;var P=g;var D=q;var F=w;var L=x;var A=y;var j=$;var H=C;var O=R;var T=k;var U=S;var N=E;
1167
+ var B=h;var _=l;var M=p;var z=m;var I=b;var P=g;var F=q;var D=w;var L=x;var A=y;var H=$;var O=C;var j=R;var T=k;var U=S;var N=E;
1168
1168
  // Rounds
1169
1169
  for(var J=0;J<80;J++){var G;var Z;
1170
1170
  // Shortcut
@@ -1172,19 +1172,19 @@ var X=f[J];
1172
1172
  // Extend message
1173
1173
  if(J<16){Z=X.high=r[e+J*2]|0;G=X.low=r[e+J*2+1]|0}else{
1174
1174
  // Gamma0
1175
- var Y=f[J-15];var V=Y.high;var W=Y.low;var K=(V>>>1|W<<31)^(V>>>8|W<<24)^V>>>7;var Q=(W>>>1|V<<31)^(W>>>8|V<<24)^(W>>>7|V<<25);
1175
+ var Y=f[J-15];var V=Y.high;var K=Y.low;var W=(V>>>1|K<<31)^(V>>>8|K<<24)^V>>>7;var Q=(K>>>1|V<<31)^(K>>>8|V<<24)^(K>>>7|V<<25);
1176
1176
  // Gamma1
1177
1177
  var rr=f[J-2];var er=rr.high;var ar=rr.low;var ir=(er>>>19|ar<<13)^(er<<3|ar>>>29)^er>>>6;var tr=(ar>>>19|er<<13)^(ar<<3|er>>>29)^(ar>>>6|er<<26);
1178
1178
  // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
1179
- var nr=f[J-7];var or=nr.high;var sr=nr.low;var vr=f[J-16];var ur=vr.high;var fr=vr.low;G=Q+sr;Z=K+or+(G>>>0<Q>>>0?1:0);G=G+tr;Z=Z+ir+(G>>>0<tr>>>0?1:0);G=G+fr;Z=Z+ur+(G>>>0<fr>>>0?1:0);X.high=Z;X.low=G}var cr=L&j^~L&O;var dr=A&H^~A&T;var hr=B&M^B&I^M&I;var lr=_&z^_&P^z&P;var pr=(B>>>28|_<<4)^(B<<30|_>>>2)^(B<<25|_>>>7);var mr=(_>>>28|B<<4)^(_<<30|B>>>2)^(_<<25|B>>>7);var br=(L>>>14|A<<18)^(L>>>18|A<<14)^(L<<23|A>>>9);var gr=(A>>>14|L<<18)^(A>>>18|L<<14)^(A<<23|L>>>9);
1179
+ var nr=f[J-7];var or=nr.high;var sr=nr.low;var vr=f[J-16];var ur=vr.high;var fr=vr.low;G=Q+sr;Z=W+or+(G>>>0<Q>>>0?1:0);G=G+tr;Z=Z+ir+(G>>>0<tr>>>0?1:0);G=G+fr;Z=Z+ur+(G>>>0<fr>>>0?1:0);X.high=Z;X.low=G}var cr=L&H^~L&j;var dr=A&O^~A&T;var hr=B&M^B&I^M&I;var lr=_&z^_&P^z&P;var pr=(B>>>28|_<<4)^(B<<30|_>>>2)^(B<<25|_>>>7);var mr=(_>>>28|B<<4)^(_<<30|B>>>2)^(_<<25|B>>>7);var br=(L>>>14|A<<18)^(L>>>18|A<<14)^(L<<23|A>>>9);var gr=(A>>>14|L<<18)^(A>>>18|L<<14)^(A<<23|L>>>9);
1180
1180
  // t1 = h + sigma1 + ch + K[i] + W[i]
1181
1181
  var qr=u[J];var wr=qr.high;var xr=qr.low;var yr=N+gr;var $r=U+br+(yr>>>0<N>>>0?1:0);var yr=yr+dr;var $r=$r+cr+(yr>>>0<dr>>>0?1:0);var yr=yr+xr;var $r=$r+wr+(yr>>>0<xr>>>0?1:0);var yr=yr+G;var $r=$r+Z+(yr>>>0<G>>>0?1:0);
1182
1182
  // t2 = sigma0 + maj
1183
1183
  var Cr=mr+lr;var Rr=pr+hr+(Cr>>>0<mr>>>0?1:0);
1184
1184
  // Update working variables
1185
- U=O;N=T;O=j;T=H;j=L;H=A;A=F+yr|0;L=D+$r+(A>>>0<F>>>0?1:0)|0;D=I;F=P;I=M;P=z;M=B;z=_;_=yr+Cr|0;B=$r+Rr+(_>>>0<yr>>>0?1:0)|0}
1185
+ U=j;N=T;j=H;T=O;H=L;O=A;A=D+yr|0;L=F+$r+(A>>>0<D>>>0?1:0)|0;F=I;D=P;I=M;P=z;M=B;z=_;_=yr+Cr|0;B=$r+Rr+(_>>>0<yr>>>0?1:0)|0}
1186
1186
  // Intermediate hash value
1187
- l=i.low=l+_;i.high=h+B+(l>>>0<_>>>0?1:0);m=t.low=m+z;t.high=p+M+(m>>>0<z>>>0?1:0);g=n.low=g+P;n.high=b+I+(g>>>0<P>>>0?1:0);w=o.low=w+F;o.high=q+D+(w>>>0<F>>>0?1:0);y=s.low=y+A;s.high=x+L+(y>>>0<A>>>0?1:0);C=v.low=C+H;v.high=$+j+(C>>>0<H>>>0?1:0);k=c.low=k+T;c.high=R+O+(k>>>0<T>>>0?1:0);E=d.low=E+N;d.high=S+U+(E>>>0<N>>>0?1:0)},_doFinalize:function(){
1187
+ l=i.low=l+_;i.high=h+B+(l>>>0<_>>>0?1:0);m=t.low=m+z;t.high=p+M+(m>>>0<z>>>0?1:0);g=n.low=g+P;n.high=b+I+(g>>>0<P>>>0?1:0);w=o.low=w+D;o.high=q+F+(w>>>0<D>>>0?1:0);y=s.low=y+A;s.high=x+L+(y>>>0<A>>>0?1:0);C=v.low=C+O;v.high=$+H+(C>>>0<O>>>0?1:0);k=c.low=k+T;c.high=R+j+(k>>>0<T>>>0?1:0);E=d.low=E+N;d.high=S+U+(E>>>0<N>>>0?1:0)},_doFinalize:function(){
1188
1188
  // Shortcuts
1189
1189
  var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;
1190
1190
  // Add padding
@@ -36435,21 +36435,24 @@ const sanitizeFilename = (filename, error = 'Attribute "filename" is undefined.'
36435
36435
  }
36436
36436
  return filename;
36437
36437
  };
36438
+ /**
36439
+ * Index of the dot that separates the name from the extension: the last one, so that the dots
36440
+ * inside the name are kept (`report.v2.final.docx`). A leading dot is part of the name
36441
+ * (`.env` has no extension). Returns -1 when the filename has no extension.
36442
+ */
36443
+ const getExtensionSeparator = (filename) => {
36444
+ const dot = filename.lastIndexOf('.');
36445
+ return dot > 0 ? dot : -1;
36446
+ };
36438
36447
  const sanitizeSuffix = (rawFilename) => {
36439
- var _a;
36440
36448
  const filename = sanitizeFilename(rawFilename);
36441
- if (filename.includes('.')) {
36442
- return (_a = filename.split('.').pop()) !== null && _a !== void 0 ? _a : '';
36443
- }
36444
- return filename;
36449
+ const dot = getExtensionSeparator(filename);
36450
+ return dot === -1 ? filename : filename.slice(dot + 1);
36445
36451
  };
36446
36452
  const getName = (rawFilename) => {
36447
- var _a;
36448
36453
  const filename = sanitizeFilename(rawFilename);
36449
- if (filename.includes('.')) {
36450
- return (_a = filename.split('.')[0]) !== null && _a !== void 0 ? _a : '';
36451
- }
36452
- return filename;
36454
+ const dot = getExtensionSeparator(filename);
36455
+ return dot === -1 ? filename : filename.slice(0, dot);
36453
36456
  };
36454
36457
  const getSuffix = (rawFilename, suffixOverride) => {
36455
36458
  const suffix = sanitizeSuffix(rawFilename);
@@ -36433,21 +36433,24 @@ const sanitizeFilename = (filename, error = 'Attribute "filename" is undefined.'
36433
36433
  }
36434
36434
  return filename;
36435
36435
  };
36436
+ /**
36437
+ * Index of the dot that separates the name from the extension: the last one, so that the dots
36438
+ * inside the name are kept (`report.v2.final.docx`). A leading dot is part of the name
36439
+ * (`.env` has no extension). Returns -1 when the filename has no extension.
36440
+ */
36441
+ const getExtensionSeparator = (filename) => {
36442
+ const dot = filename.lastIndexOf('.');
36443
+ return dot > 0 ? dot : -1;
36444
+ };
36436
36445
  const sanitizeSuffix = (rawFilename) => {
36437
- var _a;
36438
36446
  const filename = sanitizeFilename(rawFilename);
36439
- if (filename.includes('.')) {
36440
- return (_a = filename.split('.').pop()) !== null && _a !== void 0 ? _a : '';
36441
- }
36442
- return filename;
36447
+ const dot = getExtensionSeparator(filename);
36448
+ return dot === -1 ? filename : filename.slice(dot + 1);
36443
36449
  };
36444
36450
  const getName = (rawFilename) => {
36445
- var _a;
36446
36451
  const filename = sanitizeFilename(rawFilename);
36447
- if (filename.includes('.')) {
36448
- return (_a = filename.split('.')[0]) !== null && _a !== void 0 ? _a : '';
36449
- }
36450
- return filename;
36452
+ const dot = getExtensionSeparator(filename);
36453
+ return dot === -1 ? filename : filename.slice(0, dot);
36451
36454
  };
36452
36455
  const getSuffix = (rawFilename, suffixOverride) => {
36453
36456
  const suffix = sanitizeSuffix(rawFilename);