From 458b278e9742ba4b8133f84402de671dc994a7f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C3=96zdemir?= Date: Tue, 23 Jan 2024 13:18:54 +0300 Subject: [PATCH] update dist --- dist/{de-bb2cbcd2.js => de-3f6147f5.js} | 15 + dist/{de-d9027168.cjs => de-e4938207.cjs} | 2 +- dist/{en-6bb58248.cjs => en-39d37375.cjs} | 2 +- dist/{en-36ebc9b3.js => en-ffed8966.js} | 6 + dist/{fa-91321523.cjs => fa-64c35e1a.cjs} | 2 +- dist/{fa-38a6b855.js => fa-7534f880.js} | 21 +- dist/{he-ed562a13.js => he-1978fb6e.js} | 19 +- dist/{he-dba3fb45.cjs => he-6b2ea6a2.cjs} | 2 +- dist/{hi-66a90598.cjs => hi-7d3118ac.cjs} | 2 +- dist/{hi-6bb62179.js => hi-ffd5a2ba.js} | 21 +- dist/{ru-02b5dcbe.js => ru-9f317caf.js} | 19 +- dist/{ru-2753c715.cjs => ru-f208af8a.cjs} | 2 +- dist/style.css | 2 +- dist/{sv-0c0f15f4.js => sv-07e3c393.js} | 21 +- dist/{sv-51dc5883.cjs => sv-acbe2c28.cjs} | 2 +- dist/{tr-3c939bbd.cjs => tr-2fed3777.cjs} | 2 +- dist/{tr-410a966d.js => tr-ce32e2ae.js} | 21 +- dist/vuefinder.cjs | 2 +- dist/vuefinder.js | 2915 +++++++++-------- dist/{zhCN-f37edc4d.js => zhCN-9b524820.js} | 10 +- dist/{zhCN-5e98ef29.cjs => zhCN-e25e65b3.cjs} | 2 +- dist/{zhTW-ffaa338d.cjs => zhTW-6a024d5e.cjs} | 2 +- dist/{zhTW-0fd6dd31.js => zhTW-a803434e.js} | 6 + 23 files changed, 1696 insertions(+), 1402 deletions(-) rename dist/{de-bb2cbcd2.js => de-3f6147f5.js} (93%) rename dist/{de-d9027168.cjs => de-e4938207.cjs} (92%) rename dist/{en-6bb58248.cjs => en-39d37375.cjs} (97%) rename dist/{en-36ebc9b3.js => en-ffed8966.js} (97%) rename dist/{fa-91321523.cjs => fa-64c35e1a.cjs} (94%) rename dist/{fa-38a6b855.js => fa-7534f880.js} (94%) rename dist/{he-ed562a13.js => he-1978fb6e.js} (91%) rename dist/{he-dba3fb45.cjs => he-6b2ea6a2.cjs} (89%) rename dist/{hi-66a90598.cjs => hi-7d3118ac.cjs} (94%) rename dist/{hi-6bb62179.js => hi-ffd5a2ba.js} (95%) rename dist/{ru-02b5dcbe.js => ru-9f317caf.js} (92%) rename dist/{ru-2753c715.cjs => ru-f208af8a.cjs} (91%) rename dist/{sv-0c0f15f4.js => sv-07e3c393.js} (90%) rename dist/{sv-51dc5883.cjs => sv-acbe2c28.cjs} (88%) rename dist/{tr-3c939bbd.cjs => tr-2fed3777.cjs} (88%) rename dist/{tr-410a966d.js => tr-ce32e2ae.js} (89%) rename dist/{zhCN-f37edc4d.js => zhCN-9b524820.js} (96%) rename dist/{zhCN-5e98ef29.cjs => zhCN-e25e65b3.cjs} (96%) rename dist/{zhTW-ffaa338d.cjs => zhTW-6a024d5e.cjs} (97%) rename dist/{zhTW-0fd6dd31.js => zhTW-a803434e.js} (97%) diff --git a/dist/de-bb2cbcd2.js b/dist/de-3f6147f5.js similarity index 93% rename from dist/de-bb2cbcd2.js rename to dist/de-3f6147f5.js index f0a1286b..fa0223ac 100644 --- a/dist/de-bb2cbcd2.js +++ b/dist/de-3f6147f5.js @@ -254,6 +254,21 @@ const i = e, r = { "Last Modified": "Zuletzt geändert", "Drag&Drop: on": "Drag&Drop: an", "Drag&Drop: off": "Drag&Drop: aus", + "Select Folders": "Select Folders", + "Clear all": "Clear all", + "Clear only successful": "Clear only successful", + "Drag and drop the files/folders to here or click here.": "Drag and drop the files/folders to here or click here.", + "Release to drop these files.": "Release to drop these files.", + Canceled: "Canceled", + Done: "Done", + "Network Error, Unable establish connection to the server or interrupted.": "Network Error, Unable establish connection to the server or interrupted.", + "Pending upload": "Pending", + "Please select file to upload first.": "Bitte wählen Sie zuerst eine Datei zum Hochladen aus.", + "About %s": "Über %s", + Settings: "Einstellungen", + "Use Metric Units": "Use Metric Units", + "Saved.": "Saved.", + "Clear Local Storage": "Clear Local Storage", uppy: i }; export { diff --git a/dist/de-d9027168.cjs b/dist/de-e4938207.cjs similarity index 92% rename from dist/de-d9027168.cjs rename to dist/de-e4938207.cjs index af2bb0f9..e8c6e4cc 100644 --- a/dist/de-d9027168.cjs +++ b/dist/de-e4938207.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(n){return n===1?0:1}};e.strings={addBulkFilesFailed:{0:"Das Hinzufügen einer Datei ist aufgrund eines internen Fehlers fehlgeschlagen",1:"Das Hinzufügen von %{smart_count} Dateien ist aufgrund eines internen Fehlers fehlgeschlagen"},addingMoreFiles:"Dateien hinzufügen",addMore:"Mehr hinzufügen",addMoreFiles:"Dateien hinzufügen",allFilesFromFolderNamed:"Alle Dateien vom Ordner %{name}",allowAccessDescription:"Um Bilder oder Videos mit Ihrer Kamera aufzunehmen, erlauben Sie dieser Website bitte den Zugriff auf Ihre Kamera.",allowAccessTitle:"Bitte erlauben Sie Zugriff auf Ihre Kamera",aspectRatioLandscape:"Zuschneiden auf Querformat (16:9)",aspectRatioPortrait:"Zuschneiden auf Hochformat (9:16)",aspectRatioSquare:"Zuschneiden auf Quadrat",authenticateWith:"Mit %{pluginName} verbinden",authenticateWithTitle:"Bitte authentifizieren Sie sich mit %{pluginName}, um Dateien auszuwählen",back:"Zurück",backToSearch:"Zurück zur Suche",browse:"durchsuchen",browseFiles:"Dateien durchsuchen",browseFolders:"Ordner durchsuchen",cancel:"Abbrechen",cancelUpload:"Hochladen abbrechen",chooseFiles:"Dateien auswählen",closeModal:"Fenster schließen",companionError:"Verbindung zu Companion fehlgeschlagen",companionUnauthorizeHint:"Um die Autorisierung für Ihr %{provider} Konto aufzuheben, gehen Sie bitte zu %{url}",complete:"Fertig",connectedToInternet:"Mit dem Internet verbunden",copyLink:"Link kopieren",copyLinkToClipboardFallback:"Untenstehende URL kopieren",copyLinkToClipboardSuccess:"Link in die Zwischenablage kopiert",creatingAssembly:"Das Hochladen wird vorbereiten...",creatingAssemblyFailed:"Transloadit: Assembly konnte nicht erstellt werden",dashboardTitle:"Hochladen von Dateien",dashboardWindowTitle:"Hochladen von Dateien (ESC drücken zum Schließen)",dataUploadedOfTotal:"%{complete} von %{total}",discardRecordedFile:"Aufgenommene Datei verwerfen",done:"Abgeschlossen",dropHereOr:"Dateien hier ablegen oder %{browse}",dropHint:"Dateien hier ablegen",dropPasteBoth:"Dateien hier ablegen/einfügen, %{browseFiles} oder %{browseFolders}",dropPasteFiles:"Dateien hier ablegen/einfügen oder %{browseFiles}",dropPasteFolders:"Dateien hier ablegen/einfügen oder %{browseFolders}",dropPasteImportBoth:"Dateien hier ablegen/einfügen, %{browse} oder von folgenden Quellen importieren:",dropPasteImportFiles:"Dateien hier ablegen/einfügen, %{browseFiles} oder von folgenden Quellen importieren:",dropPasteImportFolders:"Dateien hier ablegen/einfügen, %{browseFolders} oder von folgenden Quellen importieren:",editFile:"Datei bearbeiten",editFileWithFilename:"Datei %{file} bearbeiten",editing:"%{file} bearbeiten",emptyFolderAdded:"Keine Dateien hinzugefügt, da der Ordner leer war",encoding:"Kodieren...",enterCorrectUrl:"Falsche URL: Bitte stellen Sie sicher, dass Sie einen direkten Link zu einer Datei eingeben",enterTextToSearch:"Text zum Suchen von Bildern eingeben",enterUrlToImport:"URL zum Importieren einer Datei eingeben",exceedsSize:"Datei %{file} ist größer als die maximal erlaubte Dateigröße von %{size}",failedToFetch:"Companion konnte diese URL nicht verarbeiten - stellen Sie bitte sicher, dass sie korrekt ist",failedToUpload:"Fehler beim Hochladen der Datei %{file}",filesUploadedOfTotal:{0:"%{complete} von %{smart_count} Datei hochgeladen",1:"%{complete} von %{smart_count} Dateien hochgeladen"},filter:"Filter",finishEditingFile:"Bearbeitung beenden",flipHorizontal:"Horizontal spiegeln",folderAdded:{0:"Eine Datei von %{folder} hinzugefügt",1:"%{smart_count} Dateien von %{folder} hinzugefügt"},folderAlreadyAdded:'Der Ordner "%{folder}" wurde bereits hinzugefügt',generatingThumbnails:"Erstellen von Miniaturansichten...",import:"Importieren",importFiles:"Importiere Dateien von:",importFrom:"Importieren von %{name}",inferiorSize:"Diese Datei ist kleiner als die minimal erlaubte Dateigröße von %{size}",loading:"Laden...",logOut:"Abmelden",micDisabled:"Zugriff auf Mikrofon von Benutzer abgelehnt",missingRequiredMetaField:"Fehlende erforderliche Meta-Felder",missingRequiredMetaFieldOnFile:"Fehlende erforderliche Meta-Felder in %{fileName}",missingRequiredMetaFields:{0:"Fehlendes erforderliches Meta-Feld: %{fields}.",1:"Fehlende erforderliche Meta-Felder: %{fields}."},myDevice:"Mein Gerät",noCameraDescription:"Bitte Kamera anschließen, um Bilder oder Videos aufzunehmen",noCameraTitle:"Kamera nicht verfügbar",noDuplicates:"Datei '%{fileName}' existiert bereits und kann nicht erneut hinzugefügt werden",noFilesFound:"Sie haben hier keine Dateien oder Ordner",noInternetConnection:"Keine Internetverbindung",noMoreFilesAllowed:"Während der Upload läuft, können keine weiteren Dateien hinzugefügt werden",openFolderNamed:"Ordner %{name} öffnen",pause:"Pausieren",paused:"Pausiert",pauseUpload:"Hochladen pausieren",pluginNameBox:"Box",pluginNameCamera:"Kamera",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google Drive",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"Eine Datei verarbeiten",1:"%{smart_count} Dateien verarbeiten"},recording:"Aufnahme",recordingLength:"Aufnahmedauer %{recording_length}",recordingStoppedMaxSize:"Die Aufnahme wurde gestoppt, weil die Dateigröße das Limit überschritten hat",recordVideoBtn:"Video aufnehmen",recoveredAllFiles:"Wir haben alle Dateien wiederhergestellt. Sie können mit dem Hochladen fortfahren.",recoveredXFiles:{0:"Wir konnten eine Datei nicht vollständig wiederherstellen. Bitte wählen Sie sie erneut aus und fahren Sie dann mit dem Hochladen fort.",1:"Wir konnten %{smart_count} Dateien nicht vollständig wiederherstellen. Bitte wählen Sie sie erneut aus und fahren Sie dann mit dem Hochladen fort."},removeFile:"Datei entfernen",reSelect:"Erneut auswählen",resetFilter:"Filter zurücksetzen",resume:"Fortsetzen",resumeUpload:"Hochladen fortsetzen",retry:"Erneut versuchen",retryUpload:"Hochladen erneut versuchen",revert:"Rückgängig machen",rotate:"Drehen",save:"Speichern",saveChanges:"Änderungen speichern",searchImages:"Suche nach Bildern",selectX:{0:"Wählen Sie %{smart_count}",1:"Wählen Sie %{smart_count}"},sessionRestored:"",smile:"Bitte lächeln!",startCapturing:"Bildschirmaufnahme starten",startRecording:"Videoaufnahme starten",stopCapturing:"Bildschirmaufnahme stoppen",stopRecording:"Videoaufnahme stoppen",streamActive:"Stream aktiv",streamPassive:"Stream passiv",submitRecordedFile:"Aufgezeichnete Datei verwenden",takePicture:"Ein Foto aufnehmen",takePictureBtn:"Foto aufnehmen",timedOut:"Upload für %{seconds} Sekunden stehen geblieben, breche ab.",upload:"Hochladen",uploadComplete:"Hochladen abgeschlossen",uploadFailed:"Hochladen fehlgeschlagen",uploading:"Wird hochgeladen",uploadingXFiles:{0:"Eine Datei wird hochgeladen",1:"%{smart_count} Dateien werden hochgeladen"},uploadPaused:"Hochladen pausiert",uploadXFiles:{0:"Eine Datei hochladen",1:"%{smart_count} Dateien hochladen"},uploadXNewFiles:{0:"+%{smart_count} Datei hochladen",1:"+%{smart_count} Dateien hochladen"},xFilesSelected:{0:"Eine Datei ausgewählt",1:"%{smart_count} Dateien ausgewählt"},xMoreFilesAdded:{0:"Eine weitere Datei hinzugefügt",1:"%{smart_count} weitere Dateien hinzugefügt"},xTimeLeft:"%{time} verbleibend",youCanOnlyUploadFileTypes:"Sie können nur folgende Dateitypen hochladen: %{types}",youCanOnlyUploadX:{0:"Sie können nur eine Datei hochladen",1:"Sie können nur %{smart_count} Dateien hochladen"},youHaveToAtLeastSelectX:{0:"Sie müssen mindestens eine Datei auswählen",1:"Sie müssen mindestens %{smart_count} Dateien auswählen"},zoomIn:"Vergrößern",zoomOut:"Verkleinern"};typeof Uppy<"u"&&(globalThis.Uppy.locales.de_DE=e);const i=e,r={Language:"Sprache",Create:"Erstellen",Close:"Schließen",Cancel:"Abbrechen",Save:"Speichern",Edit:"Bearbeiten",Crop:"Zuschneiden","New Folder":"Neuer Ordner","New File":"Neue Datei",Rename:"Umbenennen",Delete:"Löschen",Upload:"Hochladen",Download:"Herunterladen",Archive:"Archivieren",Unarchive:"Dearchivieren",Open:"Öffnen","Open containing folder":"Enthaltenden Ordner öffnen",Refresh:"Aktualisieren",Preview:"Vorschau","Dark Mode":"Dunkler Modus","Toggle Full Screen":"Vollbild umschalten","Change View":"Ansicht ändern",Storage:"Speicher","Go up a directory":"Ein Verzeichnis hochgehen","Search anything..":"Suche etwas..",Name:"Name",Size:"Größe",Date:"Datum",Filepath:"Dateipfad",About:"Über","Folder Name":"Ordnername","File Name":"Dateiname","Move files":"Dateien verschieben","Are you sure you want to move these files to?":"Sind Sie sicher, dass Sie diese Dateien verschieben möchten?","Yes, Move!":"Ja, Verschieben!","Delete files":"Dateien löschen","Yes, Delete!":"Ja, Löschen!","Upload Files":"Dateien hochladen","No files selected!":"Keine Dateien ausgewählt!","Select Files":"Dateien auswählen","Archive the files":"Dateien archivieren","Unarchive the files":"Dateien dearchivieren","The archive will be unarchived at":"Das Archiv wird dearchiviert bei","Archive name. (.zip file will be created)":"Archivname. (.zip Datei wird erstellt)","Vuefinder is a file manager component for vue 3.":"Vuefinder ist eine Dateimanager-Komponente für Vue 3.","Create a new folder":"Einen neuen Ordner erstellen","Create a new file":"Eine neue Datei erstellen","Are you sure you want to delete these files?":"Sind Sie sicher, dass Sie diese Dateien löschen möchten?","This action cannot be undone.":"Diese Aktion kann nicht rückgängig gemacht werden.","Search results for":"Suchergebnisse für","item(s) selected.":"Element(e) ausgewählt.","%s is renamed.":"%s wurde umbenannt.","This is a readonly storage.":"Dies ist ein schreibgeschützter Speicher.","%s is created.":"%s wurde erstellt.","Files moved.":"Dateien verschoben.","Files deleted.":"Dateien gelöscht.","The file unarchived.":"Die Datei wurde dearchiviert.","The file(s) archived.":"Die Datei(en) wurden archiviert.","Updated.":"Aktualisiert.","No search result found.":"Keine Suchergebnisse gefunden.","Are you sure you want to move these files?":"Sind Sie sicher, dass Sie diese Dateien verschieben möchten?","File Size":"Dateigröße","Last Modified":"Zuletzt geändert","Drag&Drop: on":"Drag&Drop: an","Drag&Drop: off":"Drag&Drop: aus",uppy:i};exports.default=r; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(n){return n===1?0:1}};e.strings={addBulkFilesFailed:{0:"Das Hinzufügen einer Datei ist aufgrund eines internen Fehlers fehlgeschlagen",1:"Das Hinzufügen von %{smart_count} Dateien ist aufgrund eines internen Fehlers fehlgeschlagen"},addingMoreFiles:"Dateien hinzufügen",addMore:"Mehr hinzufügen",addMoreFiles:"Dateien hinzufügen",allFilesFromFolderNamed:"Alle Dateien vom Ordner %{name}",allowAccessDescription:"Um Bilder oder Videos mit Ihrer Kamera aufzunehmen, erlauben Sie dieser Website bitte den Zugriff auf Ihre Kamera.",allowAccessTitle:"Bitte erlauben Sie Zugriff auf Ihre Kamera",aspectRatioLandscape:"Zuschneiden auf Querformat (16:9)",aspectRatioPortrait:"Zuschneiden auf Hochformat (9:16)",aspectRatioSquare:"Zuschneiden auf Quadrat",authenticateWith:"Mit %{pluginName} verbinden",authenticateWithTitle:"Bitte authentifizieren Sie sich mit %{pluginName}, um Dateien auszuwählen",back:"Zurück",backToSearch:"Zurück zur Suche",browse:"durchsuchen",browseFiles:"Dateien durchsuchen",browseFolders:"Ordner durchsuchen",cancel:"Abbrechen",cancelUpload:"Hochladen abbrechen",chooseFiles:"Dateien auswählen",closeModal:"Fenster schließen",companionError:"Verbindung zu Companion fehlgeschlagen",companionUnauthorizeHint:"Um die Autorisierung für Ihr %{provider} Konto aufzuheben, gehen Sie bitte zu %{url}",complete:"Fertig",connectedToInternet:"Mit dem Internet verbunden",copyLink:"Link kopieren",copyLinkToClipboardFallback:"Untenstehende URL kopieren",copyLinkToClipboardSuccess:"Link in die Zwischenablage kopiert",creatingAssembly:"Das Hochladen wird vorbereiten...",creatingAssemblyFailed:"Transloadit: Assembly konnte nicht erstellt werden",dashboardTitle:"Hochladen von Dateien",dashboardWindowTitle:"Hochladen von Dateien (ESC drücken zum Schließen)",dataUploadedOfTotal:"%{complete} von %{total}",discardRecordedFile:"Aufgenommene Datei verwerfen",done:"Abgeschlossen",dropHereOr:"Dateien hier ablegen oder %{browse}",dropHint:"Dateien hier ablegen",dropPasteBoth:"Dateien hier ablegen/einfügen, %{browseFiles} oder %{browseFolders}",dropPasteFiles:"Dateien hier ablegen/einfügen oder %{browseFiles}",dropPasteFolders:"Dateien hier ablegen/einfügen oder %{browseFolders}",dropPasteImportBoth:"Dateien hier ablegen/einfügen, %{browse} oder von folgenden Quellen importieren:",dropPasteImportFiles:"Dateien hier ablegen/einfügen, %{browseFiles} oder von folgenden Quellen importieren:",dropPasteImportFolders:"Dateien hier ablegen/einfügen, %{browseFolders} oder von folgenden Quellen importieren:",editFile:"Datei bearbeiten",editFileWithFilename:"Datei %{file} bearbeiten",editing:"%{file} bearbeiten",emptyFolderAdded:"Keine Dateien hinzugefügt, da der Ordner leer war",encoding:"Kodieren...",enterCorrectUrl:"Falsche URL: Bitte stellen Sie sicher, dass Sie einen direkten Link zu einer Datei eingeben",enterTextToSearch:"Text zum Suchen von Bildern eingeben",enterUrlToImport:"URL zum Importieren einer Datei eingeben",exceedsSize:"Datei %{file} ist größer als die maximal erlaubte Dateigröße von %{size}",failedToFetch:"Companion konnte diese URL nicht verarbeiten - stellen Sie bitte sicher, dass sie korrekt ist",failedToUpload:"Fehler beim Hochladen der Datei %{file}",filesUploadedOfTotal:{0:"%{complete} von %{smart_count} Datei hochgeladen",1:"%{complete} von %{smart_count} Dateien hochgeladen"},filter:"Filter",finishEditingFile:"Bearbeitung beenden",flipHorizontal:"Horizontal spiegeln",folderAdded:{0:"Eine Datei von %{folder} hinzugefügt",1:"%{smart_count} Dateien von %{folder} hinzugefügt"},folderAlreadyAdded:'Der Ordner "%{folder}" wurde bereits hinzugefügt',generatingThumbnails:"Erstellen von Miniaturansichten...",import:"Importieren",importFiles:"Importiere Dateien von:",importFrom:"Importieren von %{name}",inferiorSize:"Diese Datei ist kleiner als die minimal erlaubte Dateigröße von %{size}",loading:"Laden...",logOut:"Abmelden",micDisabled:"Zugriff auf Mikrofon von Benutzer abgelehnt",missingRequiredMetaField:"Fehlende erforderliche Meta-Felder",missingRequiredMetaFieldOnFile:"Fehlende erforderliche Meta-Felder in %{fileName}",missingRequiredMetaFields:{0:"Fehlendes erforderliches Meta-Feld: %{fields}.",1:"Fehlende erforderliche Meta-Felder: %{fields}."},myDevice:"Mein Gerät",noCameraDescription:"Bitte Kamera anschließen, um Bilder oder Videos aufzunehmen",noCameraTitle:"Kamera nicht verfügbar",noDuplicates:"Datei '%{fileName}' existiert bereits und kann nicht erneut hinzugefügt werden",noFilesFound:"Sie haben hier keine Dateien oder Ordner",noInternetConnection:"Keine Internetverbindung",noMoreFilesAllowed:"Während der Upload läuft, können keine weiteren Dateien hinzugefügt werden",openFolderNamed:"Ordner %{name} öffnen",pause:"Pausieren",paused:"Pausiert",pauseUpload:"Hochladen pausieren",pluginNameBox:"Box",pluginNameCamera:"Kamera",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google Drive",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"Eine Datei verarbeiten",1:"%{smart_count} Dateien verarbeiten"},recording:"Aufnahme",recordingLength:"Aufnahmedauer %{recording_length}",recordingStoppedMaxSize:"Die Aufnahme wurde gestoppt, weil die Dateigröße das Limit überschritten hat",recordVideoBtn:"Video aufnehmen",recoveredAllFiles:"Wir haben alle Dateien wiederhergestellt. Sie können mit dem Hochladen fortfahren.",recoveredXFiles:{0:"Wir konnten eine Datei nicht vollständig wiederherstellen. Bitte wählen Sie sie erneut aus und fahren Sie dann mit dem Hochladen fort.",1:"Wir konnten %{smart_count} Dateien nicht vollständig wiederherstellen. Bitte wählen Sie sie erneut aus und fahren Sie dann mit dem Hochladen fort."},removeFile:"Datei entfernen",reSelect:"Erneut auswählen",resetFilter:"Filter zurücksetzen",resume:"Fortsetzen",resumeUpload:"Hochladen fortsetzen",retry:"Erneut versuchen",retryUpload:"Hochladen erneut versuchen",revert:"Rückgängig machen",rotate:"Drehen",save:"Speichern",saveChanges:"Änderungen speichern",searchImages:"Suche nach Bildern",selectX:{0:"Wählen Sie %{smart_count}",1:"Wählen Sie %{smart_count}"},sessionRestored:"",smile:"Bitte lächeln!",startCapturing:"Bildschirmaufnahme starten",startRecording:"Videoaufnahme starten",stopCapturing:"Bildschirmaufnahme stoppen",stopRecording:"Videoaufnahme stoppen",streamActive:"Stream aktiv",streamPassive:"Stream passiv",submitRecordedFile:"Aufgezeichnete Datei verwenden",takePicture:"Ein Foto aufnehmen",takePictureBtn:"Foto aufnehmen",timedOut:"Upload für %{seconds} Sekunden stehen geblieben, breche ab.",upload:"Hochladen",uploadComplete:"Hochladen abgeschlossen",uploadFailed:"Hochladen fehlgeschlagen",uploading:"Wird hochgeladen",uploadingXFiles:{0:"Eine Datei wird hochgeladen",1:"%{smart_count} Dateien werden hochgeladen"},uploadPaused:"Hochladen pausiert",uploadXFiles:{0:"Eine Datei hochladen",1:"%{smart_count} Dateien hochladen"},uploadXNewFiles:{0:"+%{smart_count} Datei hochladen",1:"+%{smart_count} Dateien hochladen"},xFilesSelected:{0:"Eine Datei ausgewählt",1:"%{smart_count} Dateien ausgewählt"},xMoreFilesAdded:{0:"Eine weitere Datei hinzugefügt",1:"%{smart_count} weitere Dateien hinzugefügt"},xTimeLeft:"%{time} verbleibend",youCanOnlyUploadFileTypes:"Sie können nur folgende Dateitypen hochladen: %{types}",youCanOnlyUploadX:{0:"Sie können nur eine Datei hochladen",1:"Sie können nur %{smart_count} Dateien hochladen"},youHaveToAtLeastSelectX:{0:"Sie müssen mindestens eine Datei auswählen",1:"Sie müssen mindestens %{smart_count} Dateien auswählen"},zoomIn:"Vergrößern",zoomOut:"Verkleinern"};typeof Uppy<"u"&&(globalThis.Uppy.locales.de_DE=e);const i=e,r={Language:"Sprache",Create:"Erstellen",Close:"Schließen",Cancel:"Abbrechen",Save:"Speichern",Edit:"Bearbeiten",Crop:"Zuschneiden","New Folder":"Neuer Ordner","New File":"Neue Datei",Rename:"Umbenennen",Delete:"Löschen",Upload:"Hochladen",Download:"Herunterladen",Archive:"Archivieren",Unarchive:"Dearchivieren",Open:"Öffnen","Open containing folder":"Enthaltenden Ordner öffnen",Refresh:"Aktualisieren",Preview:"Vorschau","Dark Mode":"Dunkler Modus","Toggle Full Screen":"Vollbild umschalten","Change View":"Ansicht ändern",Storage:"Speicher","Go up a directory":"Ein Verzeichnis hochgehen","Search anything..":"Suche etwas..",Name:"Name",Size:"Größe",Date:"Datum",Filepath:"Dateipfad",About:"Über","Folder Name":"Ordnername","File Name":"Dateiname","Move files":"Dateien verschieben","Are you sure you want to move these files to?":"Sind Sie sicher, dass Sie diese Dateien verschieben möchten?","Yes, Move!":"Ja, Verschieben!","Delete files":"Dateien löschen","Yes, Delete!":"Ja, Löschen!","Upload Files":"Dateien hochladen","No files selected!":"Keine Dateien ausgewählt!","Select Files":"Dateien auswählen","Archive the files":"Dateien archivieren","Unarchive the files":"Dateien dearchivieren","The archive will be unarchived at":"Das Archiv wird dearchiviert bei","Archive name. (.zip file will be created)":"Archivname. (.zip Datei wird erstellt)","Vuefinder is a file manager component for vue 3.":"Vuefinder ist eine Dateimanager-Komponente für Vue 3.","Create a new folder":"Einen neuen Ordner erstellen","Create a new file":"Eine neue Datei erstellen","Are you sure you want to delete these files?":"Sind Sie sicher, dass Sie diese Dateien löschen möchten?","This action cannot be undone.":"Diese Aktion kann nicht rückgängig gemacht werden.","Search results for":"Suchergebnisse für","item(s) selected.":"Element(e) ausgewählt.","%s is renamed.":"%s wurde umbenannt.","This is a readonly storage.":"Dies ist ein schreibgeschützter Speicher.","%s is created.":"%s wurde erstellt.","Files moved.":"Dateien verschoben.","Files deleted.":"Dateien gelöscht.","The file unarchived.":"Die Datei wurde dearchiviert.","The file(s) archived.":"Die Datei(en) wurden archiviert.","Updated.":"Aktualisiert.","No search result found.":"Keine Suchergebnisse gefunden.","Are you sure you want to move these files?":"Sind Sie sicher, dass Sie diese Dateien verschieben möchten?","File Size":"Dateigröße","Last Modified":"Zuletzt geändert","Drag&Drop: on":"Drag&Drop: an","Drag&Drop: off":"Drag&Drop: aus","Select Folders":"Select Folders","Clear all":"Clear all","Clear only successful":"Clear only successful","Drag and drop the files/folders to here or click here.":"Drag and drop the files/folders to here or click here.","Release to drop these files.":"Release to drop these files.",Canceled:"Canceled",Done:"Done","Network Error, Unable establish connection to the server or interrupted.":"Network Error, Unable establish connection to the server or interrupted.","Pending upload":"Pending","Please select file to upload first.":"Bitte wählen Sie zuerst eine Datei zum Hochladen aus.","About %s":"Über %s",Settings:"Einstellungen","Use Metric Units":"Use Metric Units","Saved.":"Saved.","Clear Local Storage":"Clear Local Storage",uppy:i};exports.default=r; diff --git a/dist/en-6bb58248.cjs b/dist/en-39d37375.cjs similarity index 97% rename from dist/en-6bb58248.cjs rename to dist/en-39d37375.cjs index 3de0355f..9d1509f5 100644 --- a/dist/en-6bb58248.cjs +++ b/dist/en-39d37375.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},addedNumFiles:"Added %{numFiles} file(s)",addingMoreFiles:"Adding more files",additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",addMore:"Add more",addMoreFiles:"Add more files",allFilesFromFolderNamed:"All files from folder %{name}",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site.",allowAccessTitle:"Please allow access to your camera",allowAudioAccessDescription:"In order to record audio, please allow microphone access for this site.",allowAudioAccessTitle:"Please allow access to your microphone",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)",aspectRatioSquare:"Crop square",authAborted:"Authentication aborted",authenticateWith:"Connect to %{pluginName}",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",back:"Back",browse:"browse",browseFiles:"browse files",browseFolders:"browse folders",cancel:"Cancel",cancelUpload:"Cancel upload",chooseFiles:"Choose files",closeModal:"Close Modal",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",complete:"Complete",compressedX:"Saved %{size} by compressing images",compressingImages:"Compressing images...",connectedToInternet:"Connected to the Internet",copyLink:"Copy link",copyLinkToClipboardFallback:"Copy the URL below",copyLinkToClipboardSuccess:"Link copied to clipboard.",creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",dashboardTitle:"Uppy Dashboard",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dataUploadedOfTotal:"%{complete} of %{total}",discardRecordedFile:"Discard recorded file",done:"Done",dropHereOr:"Drop here or %{browse}",dropHint:"Drop your files here",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",editFile:"Edit file",editFileWithFilename:"Edit file %{file}",editing:"Editing %{file}",emptyFolderAdded:"No files were added from empty folder",encoding:"Encoding...",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file",enterTextToSearch:"Enter text to search for images",enterUrlToImport:"Enter URL to import a file",error:"Error",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",failedToFetch:"Companion failed to fetch this URL, please make sure it’s correct",failedToUpload:"Failed to upload %{file}",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},filter:"Filter",finishEditingFile:"Finish editing file",flipHorizontal:"Flip horizontal",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},folderAlreadyAdded:'The folder "%{folder}" was already added',generatingThumbnails:"Generating thumbnails...",import:"Import",importFiles:"Import files from:",importFrom:"Import from %{name}",inferiorSize:"This file is smaller than the allowed size of %{size}",loadedXFiles:"Loaded %{numFiles} files",loading:"Loading...",logOut:"Log out",micDisabled:"Microphone access denied by user",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},myDevice:"My Device",noAudioDescription:"In order to record audio, please connect a microphone or another audio input device",noAudioTitle:"Microphone Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",noCameraTitle:"Camera Not Available",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",noFilesFound:"You have no files or folders here",noInternetConnection:"No Internet connection",noMoreFilesAllowed:"Cannot add more files",noSearchResults:"Unfortunately, there are no results for this search",openFolderNamed:"Open folder %{name}",pause:"Pause",paused:"Paused",pauseUpload:"Pause upload",pluginNameAudio:"Audio",pluginNameBox:"Box",pluginNameCamera:"Camera",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google Drive",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},recording:"Recording",recordingLength:"Recording length %{recording_length}",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordVideoBtn:"Record Video",recoveredAllFiles:"We restored all files. You can now resume the upload.",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},removeFile:"Remove file",reSelect:"Re-select",resetFilter:"Reset filter",resetSearch:"Reset search",resume:"Resume",resumeUpload:"Resume upload",retry:"Retry",retryUpload:"Retry upload",revert:"Revert",rotate:"Rotate",save:"Save",saveChanges:"Save changes",search:"Search",searchImages:"Search for images",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},sessionRestored:"Session restored",showErrorDetails:"Show error details",signInWithGoogle:"Sign in with Google",smile:"Smile!",startAudioRecording:"Begin audio recording",startCapturing:"Begin screen capturing",startRecording:"Begin video recording",stopAudioRecording:"Stop audio recording",stopCapturing:"Stop screen capturing",stopRecording:"Stop video recording",streamActive:"Stream active",streamPassive:"Stream passive",submitRecordedFile:"Submit recorded file",takePicture:"Take a picture",takePictureBtn:"Take Picture",timedOut:"Upload stalled for %{seconds} seconds, aborting.",upload:"Upload",uploadComplete:"Upload complete",uploadFailed:"Upload failed",uploading:"Uploading",uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},uploadPaused:"Upload paused",uploadStalled:"Upload has not made any progress for %{seconds} seconds. You may want to retry it.",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"You can only upload: %{types}",youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},zoomIn:"Zoom in",zoomOut:"Zoom out"};typeof Uppy<"u"&&(globalThis.Uppy.locales.en_US=e);const r=e,i={Language:"Language",Create:"Create",Close:"Close",Cancel:"Cancel",Save:"Save",Edit:"Edit",Crop:"Crop","New Folder":"New Folder","New File":"New File",Rename:"Rename",Delete:"Delete",Upload:"Upload",Download:"Download",Archive:"Archive",Unarchive:"Unarchive",Open:"Open","Open containing folder":"Open containing folder",Refresh:"Refresh",Preview:"Preview","Dark Mode":"Dark Mode","Toggle Full Screen":"Toggle Full Screen","Change View":"Change View",Storage:"Storage","Go up a directory":"Go up a directory","Search anything..":"Search anything..",Name:"Name",Size:"Size",Date:"Date",Filepath:"Filepath",About:"About","Folder Name":"Folder Name","File Name":"File Name","Move files":"Move files","Are you sure you want to move these files to?":"Are you sure you want to move these files to?","Yes, Move!":"Yes, Move!","Delete files":"Delete files","Yes, Delete!":"Yes, Delete!","Upload Files":"Upload Files","No files selected!":"No files selected!","Select Files":"Select Files","Archive the files":"Archive the files","Unarchive the files":"Unarchive the files","The archive will be unarchived at":"The archive will be unarchived at","Archive name. (.zip file will be created)":"Archive name. (.zip file will be created)","Vuefinder is a file manager component for vue 3.":"Vuefinder is a file manager component for Vue 3.","Create a new folder":"Create a new folder","Create a new file":"Create a new file","Are you sure you want to delete these files?":"Are you sure you want to delete these files?","This action cannot be undone.":"This action cannot be undone.","Search results for":"Search results for","item(s) selected.":"item(s) selected.","%s is renamed.":"%s is renamed.","This is a readonly storage.":"This is a readonly storage.","%s is created.":"%s is created.","Files moved.":"Files moved.","Files deleted.":"Files deleted.","The file unarchived.":"The file unarchived.","The file(s) archived.":"The file(s) archived.","Updated.":"Updated.","No search result found.":"No search result found.","Are you sure you want to move these files?":"Are you sure you want to move these files?","File Size":"File Size","Last Modified":"Last Modified","Drag&Drop: on":"Drag&Drop: on","Drag&Drop: off":"Drag&Drop: off","Select Folders":"Select Folders","Clear all":"Clear all","Clear only successful":"Clear only successful","Drag and drop the files/folders to here or click here.":"Drag and drop the files/folders to here or click here.","Release to drop these files.":"Release to drop these files.",Canceled:"Canceled",Done:"Done","Network Error, Unable establish connection to the server or interrupted.":"Network Error, Unable establish connection to the server or interrupted.","Pending upload":"Pending",uppy:r};exports.default=i; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},addedNumFiles:"Added %{numFiles} file(s)",addingMoreFiles:"Adding more files",additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",addMore:"Add more",addMoreFiles:"Add more files",allFilesFromFolderNamed:"All files from folder %{name}",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site.",allowAccessTitle:"Please allow access to your camera",allowAudioAccessDescription:"In order to record audio, please allow microphone access for this site.",allowAudioAccessTitle:"Please allow access to your microphone",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)",aspectRatioSquare:"Crop square",authAborted:"Authentication aborted",authenticateWith:"Connect to %{pluginName}",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",back:"Back",browse:"browse",browseFiles:"browse files",browseFolders:"browse folders",cancel:"Cancel",cancelUpload:"Cancel upload",chooseFiles:"Choose files",closeModal:"Close Modal",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",complete:"Complete",compressedX:"Saved %{size} by compressing images",compressingImages:"Compressing images...",connectedToInternet:"Connected to the Internet",copyLink:"Copy link",copyLinkToClipboardFallback:"Copy the URL below",copyLinkToClipboardSuccess:"Link copied to clipboard.",creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",dashboardTitle:"Uppy Dashboard",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dataUploadedOfTotal:"%{complete} of %{total}",discardRecordedFile:"Discard recorded file",done:"Done",dropHereOr:"Drop here or %{browse}",dropHint:"Drop your files here",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",editFile:"Edit file",editFileWithFilename:"Edit file %{file}",editing:"Editing %{file}",emptyFolderAdded:"No files were added from empty folder",encoding:"Encoding...",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file",enterTextToSearch:"Enter text to search for images",enterUrlToImport:"Enter URL to import a file",error:"Error",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",failedToFetch:"Companion failed to fetch this URL, please make sure it’s correct",failedToUpload:"Failed to upload %{file}",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},filter:"Filter",finishEditingFile:"Finish editing file",flipHorizontal:"Flip horizontal",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},folderAlreadyAdded:'The folder "%{folder}" was already added',generatingThumbnails:"Generating thumbnails...",import:"Import",importFiles:"Import files from:",importFrom:"Import from %{name}",inferiorSize:"This file is smaller than the allowed size of %{size}",loadedXFiles:"Loaded %{numFiles} files",loading:"Loading...",logOut:"Log out",micDisabled:"Microphone access denied by user",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},myDevice:"My Device",noAudioDescription:"In order to record audio, please connect a microphone or another audio input device",noAudioTitle:"Microphone Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",noCameraTitle:"Camera Not Available",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",noFilesFound:"You have no files or folders here",noInternetConnection:"No Internet connection",noMoreFilesAllowed:"Cannot add more files",noSearchResults:"Unfortunately, there are no results for this search",openFolderNamed:"Open folder %{name}",pause:"Pause",paused:"Paused",pauseUpload:"Pause upload",pluginNameAudio:"Audio",pluginNameBox:"Box",pluginNameCamera:"Camera",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google Drive",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},recording:"Recording",recordingLength:"Recording length %{recording_length}",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordVideoBtn:"Record Video",recoveredAllFiles:"We restored all files. You can now resume the upload.",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},removeFile:"Remove file",reSelect:"Re-select",resetFilter:"Reset filter",resetSearch:"Reset search",resume:"Resume",resumeUpload:"Resume upload",retry:"Retry",retryUpload:"Retry upload",revert:"Revert",rotate:"Rotate",save:"Save",saveChanges:"Save changes",search:"Search",searchImages:"Search for images",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},sessionRestored:"Session restored",showErrorDetails:"Show error details",signInWithGoogle:"Sign in with Google",smile:"Smile!",startAudioRecording:"Begin audio recording",startCapturing:"Begin screen capturing",startRecording:"Begin video recording",stopAudioRecording:"Stop audio recording",stopCapturing:"Stop screen capturing",stopRecording:"Stop video recording",streamActive:"Stream active",streamPassive:"Stream passive",submitRecordedFile:"Submit recorded file",takePicture:"Take a picture",takePictureBtn:"Take Picture",timedOut:"Upload stalled for %{seconds} seconds, aborting.",upload:"Upload",uploadComplete:"Upload complete",uploadFailed:"Upload failed",uploading:"Uploading",uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},uploadPaused:"Upload paused",uploadStalled:"Upload has not made any progress for %{seconds} seconds. You may want to retry it.",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"You can only upload: %{types}",youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},zoomIn:"Zoom in",zoomOut:"Zoom out"};typeof Uppy<"u"&&(globalThis.Uppy.locales.en_US=e);const r=e,i={Language:"Language",Create:"Create",Close:"Close",Cancel:"Cancel",Save:"Save",Edit:"Edit",Crop:"Crop","New Folder":"New Folder","New File":"New File",Rename:"Rename",Delete:"Delete",Upload:"Upload",Download:"Download",Archive:"Archive",Unarchive:"Unarchive",Open:"Open","Open containing folder":"Open containing folder",Refresh:"Refresh",Preview:"Preview","Dark Mode":"Dark Mode","Toggle Full Screen":"Toggle Full Screen","Change View":"Change View",Storage:"Storage","Go up a directory":"Go up a directory","Search anything..":"Search anything..",Name:"Name",Size:"Size",Date:"Date",Filepath:"Filepath",About:"About","Folder Name":"Folder Name","File Name":"File Name","Move files":"Move files","Are you sure you want to move these files to?":"Are you sure you want to move these files to?","Yes, Move!":"Yes, Move!","Delete files":"Delete files","Yes, Delete!":"Yes, Delete!","Upload Files":"Upload Files","No files selected!":"No files selected!","Select Files":"Select Files","Archive the files":"Archive the files","Unarchive the files":"Unarchive the files","The archive will be unarchived at":"The archive will be unarchived at","Archive name. (.zip file will be created)":"Archive name. (.zip file will be created)","Vuefinder is a file manager component for vue 3.":"Vuefinder is a file manager component for Vue 3.","Create a new folder":"Create a new folder","Create a new file":"Create a new file","Are you sure you want to delete these files?":"Are you sure you want to delete these files?","This action cannot be undone.":"This action cannot be undone.","Search results for":"Search results for","item(s) selected.":"item(s) selected.","%s is renamed.":"%s is renamed.","This is a readonly storage.":"This is a readonly storage.","%s is created.":"%s is created.","Files moved.":"Files moved.","Files deleted.":"Files deleted.","The file unarchived.":"The file unarchived.","The file(s) archived.":"The file(s) archived.","Updated.":"Updated.","No search result found.":"No search result found.","Are you sure you want to move these files?":"Are you sure you want to move these files?","File Size":"File Size","Last Modified":"Last Modified","Drag&Drop: on":"Drag&Drop: on","Drag&Drop: off":"Drag&Drop: off","Select Folders":"Select Folders","Clear all":"Clear all","Clear only successful":"Clear only successful","Drag and drop the files/folders to here or click here.":"Drag and drop the files/folders to here or click here.","Release to drop these files.":"Release to drop these files.",Canceled:"Canceled",Done:"Done","Network Error, Unable establish connection to the server or interrupted.":"Network Error, Unable establish connection to the server or interrupted.","Pending upload":"Pending","Please select file to upload first.":"Please select file to upload first.","About %s":"About %s",Settings:"Settings","Use Metric Units":"Use Metric Units","Saved.":"Saved.","Clear Local Storage":"Clear Local Storage",uppy:r};exports.default=i; diff --git a/dist/en-36ebc9b3.js b/dist/en-ffed8966.js similarity index 97% rename from dist/en-36ebc9b3.js rename to dist/en-ffed8966.js index 2ea5e590..e288ed7b 100644 --- a/dist/en-36ebc9b3.js +++ b/dist/en-ffed8966.js @@ -282,6 +282,12 @@ const r = e, i = { Done: "Done", "Network Error, Unable establish connection to the server or interrupted.": "Network Error, Unable establish connection to the server or interrupted.", "Pending upload": "Pending", + "Please select file to upload first.": "Please select file to upload first.", + "About %s": "About %s", + Settings: "Settings", + "Use Metric Units": "Use Metric Units", + "Saved.": "Saved.", + "Clear Local Storage": "Clear Local Storage", uppy: r }; export { diff --git a/dist/fa-91321523.cjs b/dist/fa-64c35e1a.cjs similarity index 94% rename from dist/fa-91321523.cjs rename to dist/fa-64c35e1a.cjs index 743dc98a..a3b61f2b 100644 --- a/dist/fa-91321523.cjs +++ b/dist/fa-64c35e1a.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addBulkFilesFailed:{0:"افزودن %{smart_count} فایل به دلیل خطای داخلی با شکست مواجه شد",1:"افزودن %{smart_count} فایل به دلیل خطاهای داخلی با شکست مواجه شد"},addedNumFiles:"%{numFiles} فایل اضافه شد",addingMoreFiles:"درحال افزودن فایل‌ها",additionalRestrictionsFailed:"%{count} محدودیت اضافی رعایت نشد",addMore:"اضافه کردن بیشتر",addMoreFiles:"افزودن فایل‌های بیشتر",allFilesFromFolderNamed:"همه فایل‌ها از پوشه %{name}",allowAccessDescription:"برای گرفتن عکس یا ضبط ویدیو با دوربین خود، لطفاً اجازه دسترسی به دوربین را برای این سایت بدهید.",allowAccessTitle:"لطفا به دوربین اجازه‌ی دسترسی بدهید",allowAudioAccessDescription:"برای ضبط صدا، لطفاً اجازه دسترسی به میکروفون را برای این سایت بدهید.",allowAudioAccessTitle:"لطفا اجازه دسترسی به میکروفون خود را بدهید",aspectRatioLandscape:"برش منظره (16:9)",aspectRatioPortrait:"برش پرتره (9:16)",aspectRatioSquare:"برش مربعی",authAborted:"احراز هویت لغو شد",authenticateWith:"در حال اتصال به %{pluginName}",authenticateWithTitle:"احراز هویت %{pluginName} برای انتخاب فایل ضروریست!",back:"بازگشت",browse:"انتخاب کنید",browseFiles:"انتخاب فایل",browseFolders:"انتخاب فولدر",cancel:"انصراف",cancelUpload:"لغو بارگذاری",chooseFiles:"انتخاب فایل",closeModal:"بستن پنجره",companionError:"اتصال با طرق مقابل با شکست روبرو شد",companionUnauthorizeHint:"برای قطع احراز هویت حساب %{provider}, لطفا به آدرس %{url} بروید",complete:"کامل شد",compressedX:"%{size} با فشرده‌سازی تصاویر ذخیره شد",compressingImages:"فشرده سازی تصاویر ...",connectedToInternet:"به اینترنت متصل شد",copyLink:"کپی پیوند",copyLinkToClipboardFallback:"پیوند زیر را کپی کنید",copyLinkToClipboardSuccess:"پیوند به حافظه‌ی موقت منتقل شد",creatingAssembly:"درحال آماده سازی برای بارگذاری",creatingAssemblyFailed:"Transloadit: اسمبلی ایجاد نشد",dashboardTitle:"بارگذاری فایل",dashboardWindowTitle:"پنجره بارگذاری فایل. برای لغو کلید esc را بفشارید",dataUploadedOfTotal:"%{complete} از %{total}",discardRecordedFile:"دورانداختن فایل ضبط شده",done:"انجام شد",dropHereOr:"فایل را بکشید و اینجا رها کنید یا %{browse}",dropHint:"فایل‌ها را بکشید و اینجا رها کنید",dropPasteBoth:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteFiles:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteFolders:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteImportBoth:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteImportFiles:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteImportFolders:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",editFile:"ویرایش فایل",editFileWithFilename:"ویرایش فایل %{file}",editing:"در حال ویرایش %{file}",emptyFolderAdded:"از پوشه‌ی خالی هیچ فایلی افزوده نشد",encoding:"رمزگذاری...",enterCorrectUrl:"آدرس نامعتبر. لطفا مطمئن شوید که آدرس مستقیم به یک فایل را انتخاب کرده‌اید.",enterTextToSearch:"متن را جهت جستجوی تصویر وارد کنید",enterUrlToImport:"آدرس فایل را برای بارگذاری بنویسید",error:"خطا",exceedsSize:"اندازه‌ی این فایل از حد مجاز بیشتر است! %{size}",failedToFetch:"Companion نتوانست این URL را واکشی کند، لطفاً مطمئن شوید که درست است",failedToUpload:"شکست در بارگذاری %{file}",filesUploadedOfTotal:{0:"%{complete} از %{smart_count} فایل بارگذاری شد.",1:"%{complete} از %{smart_count} فایل بارگذاری شد."},filter:"پالایش",finishEditingFile:"اتمام ویرایش فایل",flipHorizontal:"چرخاندن کردن افقی",folderAdded:{0:"%{smart_count} فایل از %{folder} افزوده شد.",1:"%{smart_count} فایل از %{folder} افزوده شد."},folderAlreadyAdded:'پوشه "%{folder}" قبلاً اضافه شده است',generatingThumbnails:"تولید تصویر بندانگشتی...",import:"واردکردن",importFiles:"وارد کردن فایل‌ها از:",importFrom:"واردکردن از %{name}",inferiorSize:"این فایل کوچک‌تر از اندازه مجاز %{size} است",loadedXFiles:"%{numFiles} فایل بارگیری شد",loading:"درحال بارگذاری",logOut:"خروج",micDisabled:"عدم اجازه دسترسی توسط کاربر",missingRequiredMetaField:"فیلدهای متا لازم وجود ندارد",missingRequiredMetaFieldOnFile:"فیلدهای متا لازم در %{fileName} وجود ندارد",missingRequiredMetaFields:{0:"فیلد متا الزامی وجود ندارد: %{fields}.",1:"فیلدهای متا لازم وجود ندارد: %{fields}."},myDevice:"دستگاه من",noAudioDescription:"برای ضبط صدا، لطفاً یک میکروفون یا دستگاه ورودی صوتی دیگری را وصل کنید",noAudioTitle:"میکروفون در دسترس نیست",noCameraDescription:"جهت گرفتن عکس یا ضبط ویدیو لطفا یک دوربین متصل نمایید",noCameraTitle:"دوربین در دسترس نیست",noDuplicates:"نمی‌توان فایل تکراری بارگذاری کرد،'%{fileName}' قبلا بارگذاری شده است.",noFilesFound:"هیچ فایل یا پوشه‌ای اینجا ندارید",noInternetConnection:"عدم اتصال به اینترنت",noMoreFilesAllowed:"نمی توان فایل جدید بارگذاری کرد",noSearchResults:"متاسفانه هیچ نتیجه ای برای این جستجو وجود ندارد",openFolderNamed:"پوشه باز کنید %{name}",pause:"توقف",paused:"متوقف شده",pauseUpload:"توقف بارگذاری",pluginNameAudio:"صدا",pluginNameBox:"جعبه",pluginNameCamera:"دوربین",pluginNameDropbox:"دراپ باکس",pluginNameFacebook:"فیس بوک",pluginNameGoogleDrive:"درایو گوگل",pluginNameInstagram:"اینستاگرام",pluginNameOneDrive:"OneDrive",pluginNameZoom:"بزرگ‌نمایی",poweredBy:"قدرت گرفته از %{uppy}",processingXFiles:{0:"درحال پردازش %{smart_count} فایل",1:"درحال پردازش %{smart_count} فایل"},recording:"درحال ضبط",recordingLength:"مدت ضبط شده %{recording_length}",recordingStoppedMaxSize:"ضبط به دلیل رسیدن اندازه فایل به حدود حداکثر اندازه مجاز متوقف شد",recordVideoBtn:"ضبط تصویر",recoveredAllFiles:"ما همه فایل‌ها را بازیابی کردیم. اکنون می توانید بارگذاری را از سر بگیرید.",recoveredXFiles:{0:"امکان بازیابی %{smart_count} فایل وجود ندارد. لطفا مجددا انتخابش کنید و بارگذاری را ازسر بگیرید.",1:"امکان بازیابی %{smart_count} فایل‌ها وجود ندارد. لطفا مجددا انتخابش کنید و بارگذاری را ازسر بگیرید."},removeFile:"حذف فایل",reSelect:"انتخاب مجدد",resetFilter:"بازنشانی فیلتر",resetSearch:"بازنشانی جستجو",resume:"ادامه",resumeUpload:"ادامه بارگذاری",retry:"تلاش دوباره",retryUpload:"تلاش دوباره بارگذاری",revert:"Revert",rotate:"چرخاندن",save:"ذخیره",saveChanges:"ذخیره‌ی تغییرات",search:"Search",searchImages:"جستجو برای تصاویر",selectX:{0:"را انتخاب کنید %{smart_count}",1:"را انتخاب کنید %{smart_count}"},sessionRestored:"نشست بازیابی شد",showErrorDetails:"نمایش جزئیات خطا",signInWithGoogle:"با گوگل وارد شوید",smile:"لبخند!",startAudioRecording:"شروع ضبط صدا",startCapturing:"ضبط صفحه نمایش آغاز شد",startRecording:"آغاز تصویربرداری",stopAudioRecording:"ضبط صدا را متوقف کنید",stopCapturing:"ضبط صفحه نمایش متوقف شد",stopRecording:"توقف تصویربرداری",streamActive:"جریان فعال",streamPassive:"جریان غیرفعال",submitRecordedFile:"ارسال فایل ضبط شده",takePicture:"عکس بگیرید",takePictureBtn:"عکس بگیر",timedOut:"بارگذاری به مدت %{seconds} ثانیه متوقف شد, درحال متوقف کردن.",upload:"بارگذاری",uploadComplete:"بارگذاری انجام شد",uploadFailed:"بارگذاری شکست خورد",uploading:"بارگذاری",uploadXFiles:{0:"بارگذاری %{smart_count} فایل",1:"بارگذاری %{smart_count} فایل"},uploadPaused:"بارگذاری متوقف شد",uploadStalled:"آپلود برای %{seconds} ثانیه هیچ پیشرفتی نداشته است. ممکن است بخواهید دوباره آن را امتحان کنید.",uploadXNewFiles:{0:"بارگذاری +%{smart_count} فایل",1:"بارگذاری +%{smart_count} فایل"},uploadingXFiles:{0:"بارگذاری %{smart_count} فایل",1:"بارگذاری %{smart_count} فایل"},xFilesSelected:{0:"%{smart_count} فایل انتخاب شده",1:"%{smart_count} فایل انتخاب شده"},xMoreFilesAdded:{0:"%{smart_count} فایل دیگر افزوده شد",1:"%{smart_count} فایل دیگر افزوده شد"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"فایل‌های قابل قبول: %{types}",youCanOnlyUploadX:{0:"فقط می‌توانید %{smart_count} فایل انتخاب کنید",1:"فقط می‌توانید %{smart_count} فایل انتخاب کنید"},youHaveToAtLeastSelectX:{0:"می‌بایست حداقل %{smart_count} فایل انتخاب کنید",1:"می‌بایست حداقل %{smart_count} فایل انتخاب کنید"},zoomIn:"بزرگ‌نمایی",zoomOut:"کوچک‌نمایی"};typeof Uppy<"u"&&(globalThis.Uppy.locales.fa_IR=e);const t=e,i={Language:"زبان",Create:"ایجاد",Close:"بستن",Cancel:"انصراف",Save:"ذخیره",Edit:"ویرایش",Crop:"برش تصویر","New Folder":"پوشه جدید","New File":"فایل جدید",Rename:"تغییر نام",Delete:"حذف",Upload:"آپلود",Download:"دانلود",Archive:"فشرده سازی",Unarchive:"باز کردن فایل فشرده",Open:"باز کردن","Open containing folder":"محتوای پوشه را باز کن!",Refresh:"بارکذاری مجدد",Preview:"پیشنمایش","Dark Mode":"حالت شب","Toggle Full Screen":"تمام تصویر کردن","Change View":"تغییر نوع نمایش",Storage:"فضا","Go up a directory":"برو به پوشه","Search anything..":"به دنبال چه چیزی هستید ؟ جستجو کنید ...",Name:"نام",Size:"سایز",Date:"تاریخ انتشار",Filepath:"مسیر فایل",About:"درباره","Folder Name":"نام پوشه","File Name":"نام فایل","Move files":"انتقال فایل ها","Are you sure you want to move these files to?":"آیا برای انتقال فایل ها مطمئن هستید ؟","Yes, Move!":"بله، انتقال بده!","Delete files":"پاک کردن فایل ها","Yes, Delete!":"بله، پاک کن!","Upload Files":"آپلود کردن فایل ها","No files selected!":"هیچ فایلی انتخاب نشده است.","Select Files":"انتخاب فایل ها","Archive the files":"فشرده سازی فایل ها","Unarchive the files":"باز کردن فایل های فشرده","The archive will be unarchived at":"فایل فشرده سازه در این مسیر باز میشود: ","Archive name. (.zip file will be created)":"نام فایل فشرده","Vuefinder is a file manager component for vue 3.":"Vuefinder یک کتابخانه مدیریت فایل ها برای Vue3 میباشد.","Create a new folder":"ایجاد پوشه جدید","Create a new file":"ایجاد فایل جدید","Are you sure you want to delete these files?":"آیا از حذف فایل ها مطمئن هستید ؟","This action cannot be undone.":"این تغییرات قابل بازگشت نیست!","Search results for":"نتیجه جستجو برای","item(s) selected.":"آیتم(های) انتخاب شده","%s is renamed.":"تغییر نام برای %s صورت گرفت.","This is a readonly storage.":"این فضا فقط قابل خواندن است!","%s is created.":"%s ساخته شد!","Files moved.":"فایل(ها) انقال یافتند.","Files deleted.":"فایل(ها) حذف شدند.","The file unarchived.":"فایل فشرده شده باز شد.","The file(s) archived.":"فایل(ها) فشرده سازی شدند.","Updated.":"آپدیت شد.","No search result found.":"هیچ نتیجه ای یافت نشد.","Are you sure you want to move these files?":"آیا برای انتقال فایل ها مطمئن هستید ؟","File Size":"سایز فایل","Last Modified":"آخرین ویرایش","Drag&Drop: on":"Drag&Drop: روشن","Drag&Drop: off":"Drag&Drop: خاموش",uppy:t};exports.default=i; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addBulkFilesFailed:{0:"افزودن %{smart_count} فایل به دلیل خطای داخلی با شکست مواجه شد",1:"افزودن %{smart_count} فایل به دلیل خطاهای داخلی با شکست مواجه شد"},addedNumFiles:"%{numFiles} فایل اضافه شد",addingMoreFiles:"درحال افزودن فایل‌ها",additionalRestrictionsFailed:"%{count} محدودیت اضافی رعایت نشد",addMore:"اضافه کردن بیشتر",addMoreFiles:"افزودن فایل‌های بیشتر",allFilesFromFolderNamed:"همه فایل‌ها از پوشه %{name}",allowAccessDescription:"برای گرفتن عکس یا ضبط ویدیو با دوربین خود، لطفاً اجازه دسترسی به دوربین را برای این سایت بدهید.",allowAccessTitle:"لطفا به دوربین اجازه‌ی دسترسی بدهید",allowAudioAccessDescription:"برای ضبط صدا، لطفاً اجازه دسترسی به میکروفون را برای این سایت بدهید.",allowAudioAccessTitle:"لطفا اجازه دسترسی به میکروفون خود را بدهید",aspectRatioLandscape:"برش منظره (16:9)",aspectRatioPortrait:"برش پرتره (9:16)",aspectRatioSquare:"برش مربعی",authAborted:"احراز هویت لغو شد",authenticateWith:"در حال اتصال به %{pluginName}",authenticateWithTitle:"احراز هویت %{pluginName} برای انتخاب فایل ضروریست!",back:"بازگشت",browse:"انتخاب کنید",browseFiles:"انتخاب فایل",browseFolders:"انتخاب فولدر",cancel:"انصراف",cancelUpload:"لغو بارگذاری",chooseFiles:"انتخاب فایل",closeModal:"بستن پنجره",companionError:"اتصال با طرق مقابل با شکست روبرو شد",companionUnauthorizeHint:"برای قطع احراز هویت حساب %{provider}, لطفا به آدرس %{url} بروید",complete:"کامل شد",compressedX:"%{size} با فشرده‌سازی تصاویر ذخیره شد",compressingImages:"فشرده سازی تصاویر ...",connectedToInternet:"به اینترنت متصل شد",copyLink:"کپی پیوند",copyLinkToClipboardFallback:"پیوند زیر را کپی کنید",copyLinkToClipboardSuccess:"پیوند به حافظه‌ی موقت منتقل شد",creatingAssembly:"درحال آماده سازی برای بارگذاری",creatingAssemblyFailed:"Transloadit: اسمبلی ایجاد نشد",dashboardTitle:"بارگذاری فایل",dashboardWindowTitle:"پنجره بارگذاری فایل. برای لغو کلید esc را بفشارید",dataUploadedOfTotal:"%{complete} از %{total}",discardRecordedFile:"دورانداختن فایل ضبط شده",done:"انجام شد",dropHereOr:"فایل را بکشید و اینجا رها کنید یا %{browse}",dropHint:"فایل‌ها را بکشید و اینجا رها کنید",dropPasteBoth:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteFiles:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteFolders:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteImportBoth:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteImportFiles:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",dropPasteImportFolders:"فایل‌ها را اینجا رها کنید، بچسبانید یا %{browse}",editFile:"ویرایش فایل",editFileWithFilename:"ویرایش فایل %{file}",editing:"در حال ویرایش %{file}",emptyFolderAdded:"از پوشه‌ی خالی هیچ فایلی افزوده نشد",encoding:"رمزگذاری...",enterCorrectUrl:"آدرس نامعتبر. لطفا مطمئن شوید که آدرس مستقیم به یک فایل را انتخاب کرده‌اید.",enterTextToSearch:"متن را جهت جستجوی تصویر وارد کنید",enterUrlToImport:"آدرس فایل را برای بارگذاری بنویسید",error:"خطا",exceedsSize:"اندازه‌ی این فایل از حد مجاز بیشتر است! %{size}",failedToFetch:"Companion نتوانست این URL را واکشی کند، لطفاً مطمئن شوید که درست است",failedToUpload:"شکست در بارگذاری %{file}",filesUploadedOfTotal:{0:"%{complete} از %{smart_count} فایل بارگذاری شد.",1:"%{complete} از %{smart_count} فایل بارگذاری شد."},filter:"پالایش",finishEditingFile:"اتمام ویرایش فایل",flipHorizontal:"چرخاندن کردن افقی",folderAdded:{0:"%{smart_count} فایل از %{folder} افزوده شد.",1:"%{smart_count} فایل از %{folder} افزوده شد."},folderAlreadyAdded:'پوشه "%{folder}" قبلاً اضافه شده است',generatingThumbnails:"تولید تصویر بندانگشتی...",import:"واردکردن",importFiles:"وارد کردن فایل‌ها از:",importFrom:"واردکردن از %{name}",inferiorSize:"این فایل کوچک‌تر از اندازه مجاز %{size} است",loadedXFiles:"%{numFiles} فایل بارگیری شد",loading:"درحال بارگذاری",logOut:"خروج",micDisabled:"عدم اجازه دسترسی توسط کاربر",missingRequiredMetaField:"فیلدهای متا لازم وجود ندارد",missingRequiredMetaFieldOnFile:"فیلدهای متا لازم در %{fileName} وجود ندارد",missingRequiredMetaFields:{0:"فیلد متا الزامی وجود ندارد: %{fields}.",1:"فیلدهای متا لازم وجود ندارد: %{fields}."},myDevice:"دستگاه من",noAudioDescription:"برای ضبط صدا، لطفاً یک میکروفون یا دستگاه ورودی صوتی دیگری را وصل کنید",noAudioTitle:"میکروفون در دسترس نیست",noCameraDescription:"جهت گرفتن عکس یا ضبط ویدیو لطفا یک دوربین متصل نمایید",noCameraTitle:"دوربین در دسترس نیست",noDuplicates:"نمی‌توان فایل تکراری بارگذاری کرد،'%{fileName}' قبلا بارگذاری شده است.",noFilesFound:"هیچ فایل یا پوشه‌ای اینجا ندارید",noInternetConnection:"عدم اتصال به اینترنت",noMoreFilesAllowed:"نمی توان فایل جدید بارگذاری کرد",noSearchResults:"متاسفانه هیچ نتیجه ای برای این جستجو وجود ندارد",openFolderNamed:"پوشه باز کنید %{name}",pause:"توقف",paused:"متوقف شده",pauseUpload:"توقف بارگذاری",pluginNameAudio:"صدا",pluginNameBox:"جعبه",pluginNameCamera:"دوربین",pluginNameDropbox:"دراپ باکس",pluginNameFacebook:"فیس بوک",pluginNameGoogleDrive:"درایو گوگل",pluginNameInstagram:"اینستاگرام",pluginNameOneDrive:"OneDrive",pluginNameZoom:"بزرگ‌نمایی",poweredBy:"قدرت گرفته از %{uppy}",processingXFiles:{0:"درحال پردازش %{smart_count} فایل",1:"درحال پردازش %{smart_count} فایل"},recording:"درحال ضبط",recordingLength:"مدت ضبط شده %{recording_length}",recordingStoppedMaxSize:"ضبط به دلیل رسیدن اندازه فایل به حدود حداکثر اندازه مجاز متوقف شد",recordVideoBtn:"ضبط تصویر",recoveredAllFiles:"ما همه فایل‌ها را بازیابی کردیم. اکنون می توانید بارگذاری را از سر بگیرید.",recoveredXFiles:{0:"امکان بازیابی %{smart_count} فایل وجود ندارد. لطفا مجددا انتخابش کنید و بارگذاری را ازسر بگیرید.",1:"امکان بازیابی %{smart_count} فایل‌ها وجود ندارد. لطفا مجددا انتخابش کنید و بارگذاری را ازسر بگیرید."},removeFile:"حذف فایل",reSelect:"انتخاب مجدد",resetFilter:"بازنشانی فیلتر",resetSearch:"بازنشانی جستجو",resume:"ادامه",resumeUpload:"ادامه بارگذاری",retry:"تلاش دوباره",retryUpload:"تلاش دوباره بارگذاری",revert:"Revert",rotate:"چرخاندن",save:"ذخیره",saveChanges:"ذخیره‌ی تغییرات",search:"Search",searchImages:"جستجو برای تصاویر",selectX:{0:"را انتخاب کنید %{smart_count}",1:"را انتخاب کنید %{smart_count}"},sessionRestored:"نشست بازیابی شد",showErrorDetails:"نمایش جزئیات خطا",signInWithGoogle:"با گوگل وارد شوید",smile:"لبخند!",startAudioRecording:"شروع ضبط صدا",startCapturing:"ضبط صفحه نمایش آغاز شد",startRecording:"آغاز تصویربرداری",stopAudioRecording:"ضبط صدا را متوقف کنید",stopCapturing:"ضبط صفحه نمایش متوقف شد",stopRecording:"توقف تصویربرداری",streamActive:"جریان فعال",streamPassive:"جریان غیرفعال",submitRecordedFile:"ارسال فایل ضبط شده",takePicture:"عکس بگیرید",takePictureBtn:"عکس بگیر",timedOut:"بارگذاری به مدت %{seconds} ثانیه متوقف شد, درحال متوقف کردن.",upload:"بارگذاری",uploadComplete:"بارگذاری انجام شد",uploadFailed:"بارگذاری شکست خورد",uploading:"بارگذاری",uploadXFiles:{0:"بارگذاری %{smart_count} فایل",1:"بارگذاری %{smart_count} فایل"},uploadPaused:"بارگذاری متوقف شد",uploadStalled:"آپلود برای %{seconds} ثانیه هیچ پیشرفتی نداشته است. ممکن است بخواهید دوباره آن را امتحان کنید.",uploadXNewFiles:{0:"بارگذاری +%{smart_count} فایل",1:"بارگذاری +%{smart_count} فایل"},uploadingXFiles:{0:"بارگذاری %{smart_count} فایل",1:"بارگذاری %{smart_count} فایل"},xFilesSelected:{0:"%{smart_count} فایل انتخاب شده",1:"%{smart_count} فایل انتخاب شده"},xMoreFilesAdded:{0:"%{smart_count} فایل دیگر افزوده شد",1:"%{smart_count} فایل دیگر افزوده شد"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"فایل‌های قابل قبول: %{types}",youCanOnlyUploadX:{0:"فقط می‌توانید %{smart_count} فایل انتخاب کنید",1:"فقط می‌توانید %{smart_count} فایل انتخاب کنید"},youHaveToAtLeastSelectX:{0:"می‌بایست حداقل %{smart_count} فایل انتخاب کنید",1:"می‌بایست حداقل %{smart_count} فایل انتخاب کنید"},zoomIn:"بزرگ‌نمایی",zoomOut:"کوچک‌نمایی"};typeof Uppy<"u"&&(globalThis.Uppy.locales.fa_IR=e);const r=e,t={Language:"زبان",Create:"ایجاد",Close:"بستن",Cancel:"انصراف",Save:"ذخیره",Edit:"ویرایش",Crop:"برش تصویر","New Folder":"پوشه جدید","New File":"فایل جدید",Rename:"تغییر نام",Delete:"حذف",Upload:"آپلود",Download:"دانلود",Archive:"فشرده سازی",Unarchive:"باز کردن فایل فشرده",Open:"باز کردن","Open containing folder":"محتوای پوشه را باز کن!",Refresh:"بارکذاری مجدد",Preview:"پیشنمایش","Dark Mode":"حالت شب","Toggle Full Screen":"تمام تصویر کردن","Change View":"تغییر نوع نمایش",Storage:"فضا","Go up a directory":"برو به پوشه","Search anything..":"به دنبال چه چیزی هستید ؟ جستجو کنید ...",Name:"نام",Size:"سایز",Date:"تاریخ انتشار",Filepath:"مسیر فایل",About:"درباره","Folder Name":"نام پوشه","File Name":"نام فایل","Move files":"انتقال فایل ها","Are you sure you want to move these files to?":"آیا برای انتقال فایل ها مطمئن هستید ؟","Yes, Move!":"بله، انتقال بده!","Delete files":"پاک کردن فایل ها","Yes, Delete!":"بله، پاک کن!","Upload Files":"آپلود کردن فایل ها","No files selected!":"هیچ فایلی انتخاب نشده است.","Select Files":"انتخاب فایل ها","Archive the files":"فشرده سازی فایل ها","Unarchive the files":"باز کردن فایل های فشرده","The archive will be unarchived at":"فایل فشرده سازه در این مسیر باز میشود: ","Archive name. (.zip file will be created)":"نام فایل فشرده","Vuefinder is a file manager component for vue 3.":"Vuefinder یک کتابخانه مدیریت فایل ها برای Vue3 میباشد.","Create a new folder":"ایجاد پوشه جدید","Create a new file":"ایجاد فایل جدید","Are you sure you want to delete these files?":"آیا از حذف فایل ها مطمئن هستید ؟","This action cannot be undone.":"این تغییرات قابل بازگشت نیست!","Search results for":"نتیجه جستجو برای","item(s) selected.":"آیتم(های) انتخاب شده","%s is renamed.":"تغییر نام برای %s صورت گرفت.","This is a readonly storage.":"این فضا فقط قابل خواندن است!","%s is created.":"%s ساخته شد!","Files moved.":"فایل(ها) انقال یافتند.","Files deleted.":"فایل(ها) حذف شدند.","The file unarchived.":"فایل فشرده شده باز شد.","The file(s) archived.":"فایل(ها) فشرده سازی شدند.","Updated.":"آپدیت شد.","No search result found.":"هیچ نتیجه ای یافت نشد.","Are you sure you want to move these files?":"آیا برای انتقال فایل ها مطمئن هستید ؟","File Size":"سایز فایل","Last Modified":"آخرین ویرایش","Drag&Drop: on":"Drag&Drop: روشن","Drag&Drop: off":"Drag&Drop: خاموش","Select Folders":"Select Folders","Clear all":"Clear all","Clear only successful":"Clear only successful","Drag and drop the files/folders to here or click here.":"Drag and drop the files/folders to here or click here.","Release to drop these files.":"Release to drop these files.",Canceled:"Canceled",Done:"Done","Network Error, Unable establish connection to the server or interrupted.":"Network Error, Unable establish connection to the server or interrupted.","Pending upload":"Pending","Please select file to upload first.":"Please select file to upload first.","About %s":"درباره %s",Settings:"تنظیمات","Use Metric Units":"استفاده از واحد های متریک","Saved.":"ذخیره شد.","Clear Local Storage":"پاک کردن فضای ذخیره سازی محلی",uppy:r};exports.default=t; diff --git a/dist/fa-38a6b855.js b/dist/fa-7534f880.js similarity index 94% rename from dist/fa-38a6b855.js rename to dist/fa-7534f880.js index ff23d3ca..be768c9c 100644 --- a/dist/fa-38a6b855.js +++ b/dist/fa-7534f880.js @@ -207,7 +207,7 @@ e.strings = { zoomOut: "کوچک‌نمایی" }; typeof Uppy < "u" && (globalThis.Uppy.locales.fa_IR = e); -const t = e, a = { +const r = e, t = { Language: "زبان", Create: "ایجاد", Close: "بستن", @@ -273,8 +273,23 @@ const t = e, a = { "Last Modified": "آخرین ویرایش", "Drag&Drop: on": "Drag&Drop: روشن", "Drag&Drop: off": "Drag&Drop: خاموش", - uppy: t + "Select Folders": "Select Folders", + "Clear all": "Clear all", + "Clear only successful": "Clear only successful", + "Drag and drop the files/folders to here or click here.": "Drag and drop the files/folders to here or click here.", + "Release to drop these files.": "Release to drop these files.", + Canceled: "Canceled", + Done: "Done", + "Network Error, Unable establish connection to the server or interrupted.": "Network Error, Unable establish connection to the server or interrupted.", + "Pending upload": "Pending", + "Please select file to upload first.": "Please select file to upload first.", + "About %s": "درباره %s", + Settings: "تنظیمات", + "Use Metric Units": "استفاده از واحد های متریک", + "Saved.": "ذخیره شد.", + "Clear Local Storage": "پاک کردن فضای ذخیره سازی محلی", + uppy: r }; export { - a as default + t as default }; diff --git a/dist/he-ed562a13.js b/dist/he-1978fb6e.js similarity index 91% rename from dist/he-ed562a13.js rename to dist/he-1978fb6e.js index ae31733b..03c9449f 100644 --- a/dist/he-ed562a13.js +++ b/dist/he-1978fb6e.js @@ -132,7 +132,7 @@ e.strings = { } }; typeof Uppy < "u" && (globalThis.Uppy.locales.he_IL = e); -const t = e, a = { +const t = e, l = { Language: "שפה", Create: "יצירה", Close: "סגירה", @@ -198,8 +198,23 @@ const t = e, a = { "Last Modified": "תאריך שינוי", "Drag&Drop: on": "מצב גרירה: פעיל", "Drag&Drop: off": "מצב גרירה: כבוי", + "Select Folders": "Select Folders", + "Clear all": "Clear all", + "Clear only successful": "Clear only successful", + "Drag and drop the files/folders to here or click here.": "Drag and drop the files/folders to here or click here.", + "Release to drop these files.": "Release to drop these files.", + Canceled: "Canceled", + Done: "Done", + "Network Error, Unable establish connection to the server or interrupted.": "Network Error, Unable establish connection to the server or interrupted.", + "Pending upload": "Pending", + "Please select file to upload first.": "Please select file to upload first.", + "About %s": "אודות %s", + Settings: "הגדרות", + "Use Metric Units": "השתמש ביחידות מטריות", + "Saved.": "נשמר", + "Clear Local Storage": "נקה אחסון מקומי", uppy: t }; export { - a as default + l as default }; diff --git a/dist/he-dba3fb45.cjs b/dist/he-6b2ea6a2.cjs similarity index 89% rename from dist/he-dba3fb45.cjs rename to dist/he-6b2ea6a2.cjs index 33f71134..dbfd9e26 100644 --- a/dist/he-dba3fb45.cjs +++ b/dist/he-6b2ea6a2.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addMore:"הוסף עוד",addMoreFiles:"הוסף עוד קבצים",addingMoreFiles:"מוסיף עוד קבצים",allowAccessDescription:"על מנת לצלם תמונה או להקליט ווידאו עם המצלמה, בבקשה אפשר גישה למצלמה באתר זה.",allowAccessTitle:"אנא אפשר גישה למצלמה",authenticateWith:"התחבר ל %{pluginName}",authenticateWithTitle:"אנא בצע הזדהות עם %{pluginName} על מנת לבחור קבצים",back:"חזרה",browse:"בחר",browseFiles:"בחר",cancel:"ביטול",cancelUpload:"בטל העלאה",chooseFiles:"בחר קבצים",closeModal:"חלון",companionError:"הזדהות מול השירות נכשלה",companionUnauthorizeHint:"על מנת לבטל הזדהות חשבון %{provider}, אנא גלוש ל %{url}",complete:"הסתיים",connectedToInternet:"מחובר לאינטרנט",copyLink:"העתק קישור",copyLinkToClipboardFallback:"העתק את הקישור הבא",copyLinkToClipboardSuccess:"הקישור הועתק",creatingAssembly:"מכין העלאה..",creatingAssemblyFailed:"Transloadit: יצירת המידע נכשל",dashboardTitle:"העלאת קבצים",dashboardWindowTitle:"חלון העלאת קבצים (לחץ escape לסגירה)",dataUploadedOfTotal:"%{complete} מתוך %{total}",done:"סיים",dropHereOr:"גרור קבצים לכאן או %{browse}",dropHint:"גרור קבצים לכאן",dropPasteBoth:"גרור לכאן קבצים, הדבק או %{browse}",dropPasteFiles:"גרור לכאן קבצים, הדבק או %{browse}",dropPasteFolders:"גרור לכאן קבצים, הדבק או %{browse}",dropPasteImportBoth:"גרור לכאן קבצים, הדבק, %{browse} או ייבא מ",dropPasteImportFiles:"גרור לכאן קבצים, הדבק, %{browse} או ייבא מ",dropPasteImportFolders:"גרור לכאן קבצים, הדבק, %{browse} או ייבא מ",editFile:"ערוך קובץ",editing:"מעדכן %{file}",emptyFolderAdded:"לא נוספו קבצים מהתיקיה הריקה",encoding:"מקודד...",enterCorrectUrl:"כתובת לא חוקית: אנא וודא שהכתובת ישירה לקובץ",enterUrlToImport:"הזן כתובת לייבוא קבוץ",exceedsSize:"קובץ זה גדול מהגודל המקסימאלי המותר %{size}",failedToFetch:"השירות נכשל לטפל בכתובת זו, אנא וודא שהיא נכונה",failedToUpload:"העלאת הקובץ %{file} נכשלה",fileSource:"קובץ מקור: %{name}",filesUploadedOfTotal:{0:"קובץ %{complete} מתוך %{smart_count} הועלה",1:"%{complete} מתוך %{smart_count} קבצים הועלו"},filter:"סינון",finishEditingFile:"סיים לעדכן את הקובץ",folderAdded:{0:"נוסף קובץ %{smart_count} מ %{folder}",1:"נוספו %{smart_count} קבצים מ %{folder}"},generatingThumbnails:"יוצר תמונות ממוזערות...",import:"ייבוא",importFrom:"ייבוא מ %{name}",loading:"טוען...",logOut:"התנתק",myDevice:"המכשיר שלי",noFilesFound:"אין כאן קבצים או תיקיות",noInternetConnection:"אין חיבור לאינטרנט",openFolderNamed:"פתח קובץ %{name}",pause:"השהה",pauseUpload:"השהה העלאה",paused:"מושהה",poweredBy:"בחסות %{uppy}",processingXFiles:{0:"מעבד קובץ %{smart_count}",1:"מעבד %{smart_count} קבצים"},removeFile:"מחק קובץ",resetFilter:"אפס סינון",resume:"המשך",resumeUpload:"המשך העלאה",retry:"נסה שוב",retryUpload:"נסה להעלות שוב",saveChanges:"שמור שינויים",selectFileNamed:"בחר את הקובץ %{name}",selectX:{0:"בחר %{smart_count}",1:"בחר %{smart_count}"},smile:"Smile!",startRecording:"מתחיל הסרטת ווידאו",stopRecording:"עצור הסרטת ווידאו",takePicture:"צלם תמונה",timedOut:"העלאה נתקעה %{seconds} שניות, מבטל.",unselectFileNamed:"בטל בחירת הקובץ %{name}",upload:"מעלה",uploadComplete:"העלאה הסתיימה",uploadFailed:"העלאה נכשלה",uploadPaused:"העלאה מושהת",uploadXFiles:{0:"העלה קובץ %{smart_count}",1:"העלה %{smart_count} קבצים"},uploadXNewFiles:{0:"העלה קובץ +%{smart_count}",1:"העלה +%{smart_count} קבצים"},uploading:"Uploading",uploadingXFiles:{0:"מעלה קובץ %{smart_count}",1:"מעלה %{smart_count} קבצים"},xFilesSelected:{0:"קובץ %{smart_count} נבחר",1:"%{smart_count} קבצים נבחרו"},xMoreFilesAdded:{0:"עוד %{smart_count} קובץ נוסף",1:"עוד %{smart_count} קבצים נוספו"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"You can only upload: %{types}",youCanOnlyUploadX:{0:"ניתן העלות רק קובץ %{smart_count}",1:"ניתן להעלות רק %{smart_count} קבצים"},youHaveToAtLeastSelectX:{0:"עליך לבחור לפחות בקובץ %{smart_count}",1:"עליך לבחור לפחות ב %{smart_count} קבצים"}};typeof Uppy<"u"&&(globalThis.Uppy.locales.he_IL=e);const t=e,a={Language:"שפה",Create:"יצירה",Close:"סגירה",Cancel:"ביטול",Save:"שמירה",Edit:"עריכה",Crop:"חיתוך","New Folder":"תיקייה חדשה","New File":"קובץ חדש",Rename:"שינוי שם",Delete:"מחיקה",Upload:"העלאה",Download:"הורדה",Archive:"לדחוס",Unarchive:"לחלץ",Open:"פתיחה","Open containing folder":"פתיחת מיקום קובץ",Refresh:"רענון",Preview:"תצוגה מקדימה","Dark Mode":"עיצוב כהה","Toggle Full Screen":"שינוי מצב מסך מלא","Change View":"שינוי תצוגה",Storage:"אחסון","Go up a directory":"מעבר תיקייה אחת למעלה","Search anything..":"חיפוש...",Name:"שם",Size:"גודל",Date:"תאריך",Filepath:"נתיב קובץ",About:"אודות","Folder Name":"שם התיקייה","File Name":"שם הקובץ","Move files":"העברת קבצים","Are you sure you want to move these files to?":"האם בטוח להעביר קבצים אלה?","Yes, Move!":"כן, להעביר!","Delete files":"מחיקת קבצים","Yes, Delete!":"כן, למחוק!","Upload Files":"העלאת קבצים","No files selected!":"לא נבחרו קבצים","Select Files":"בחירת קבצים","Archive the files":"דחיסת קבצים אלו","Unarchive the files":"חילוץ קבצים אלו","The archive will be unarchived at":"הארכיןם יוחלץ ל:","Archive name. (.zip file will be created)":"שם הארכיון. (סיומת .zip תווסף)","Vuefinder is a file manager component for vue 3.":"Vuefinder הינו רכיב מנהל קבצים עבור vue 3","Create a new folder":"יצירת תיקייה חדשה","Create a new file":"יצירת קובץ חדש","Are you sure you want to delete these files?":"האם בטוח למחוק קבצים אלה?","This action cannot be undone.":"לא ניתן לבטל פעולה זו.","Search results for":"תוצאות חיפוש עבור","item(s) selected.":"פריט(ים) נבחרו.","%s is renamed.":"השם של %s השתנה.","This is a readonly storage.":"זהו אחסון לקריאה בלבד.","%s is created.":"%s נוצר","Files moved.":"הקבצים הועברו.","Files deleted.":"הקבצים נמחקו","The file unarchived.":"הקבצים חולצו.","The file(s) archived.":"הקובצים נדחסו.","Updated.":"התעדכן","No search result found.":"לא נמצאו תוצאות לחיפוש.","Are you sure you want to move these files?":"האם בטוח להעביר קבצים אלו?","File Size":"גודל קובץ","Last Modified":"תאריך שינוי","Drag&Drop: on":"מצב גרירה: פעיל","Drag&Drop: off":"מצב גרירה: כבוי",uppy:t};exports.default=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addMore:"הוסף עוד",addMoreFiles:"הוסף עוד קבצים",addingMoreFiles:"מוסיף עוד קבצים",allowAccessDescription:"על מנת לצלם תמונה או להקליט ווידאו עם המצלמה, בבקשה אפשר גישה למצלמה באתר זה.",allowAccessTitle:"אנא אפשר גישה למצלמה",authenticateWith:"התחבר ל %{pluginName}",authenticateWithTitle:"אנא בצע הזדהות עם %{pluginName} על מנת לבחור קבצים",back:"חזרה",browse:"בחר",browseFiles:"בחר",cancel:"ביטול",cancelUpload:"בטל העלאה",chooseFiles:"בחר קבצים",closeModal:"חלון",companionError:"הזדהות מול השירות נכשלה",companionUnauthorizeHint:"על מנת לבטל הזדהות חשבון %{provider}, אנא גלוש ל %{url}",complete:"הסתיים",connectedToInternet:"מחובר לאינטרנט",copyLink:"העתק קישור",copyLinkToClipboardFallback:"העתק את הקישור הבא",copyLinkToClipboardSuccess:"הקישור הועתק",creatingAssembly:"מכין העלאה..",creatingAssemblyFailed:"Transloadit: יצירת המידע נכשל",dashboardTitle:"העלאת קבצים",dashboardWindowTitle:"חלון העלאת קבצים (לחץ escape לסגירה)",dataUploadedOfTotal:"%{complete} מתוך %{total}",done:"סיים",dropHereOr:"גרור קבצים לכאן או %{browse}",dropHint:"גרור קבצים לכאן",dropPasteBoth:"גרור לכאן קבצים, הדבק או %{browse}",dropPasteFiles:"גרור לכאן קבצים, הדבק או %{browse}",dropPasteFolders:"גרור לכאן קבצים, הדבק או %{browse}",dropPasteImportBoth:"גרור לכאן קבצים, הדבק, %{browse} או ייבא מ",dropPasteImportFiles:"גרור לכאן קבצים, הדבק, %{browse} או ייבא מ",dropPasteImportFolders:"גרור לכאן קבצים, הדבק, %{browse} או ייבא מ",editFile:"ערוך קובץ",editing:"מעדכן %{file}",emptyFolderAdded:"לא נוספו קבצים מהתיקיה הריקה",encoding:"מקודד...",enterCorrectUrl:"כתובת לא חוקית: אנא וודא שהכתובת ישירה לקובץ",enterUrlToImport:"הזן כתובת לייבוא קבוץ",exceedsSize:"קובץ זה גדול מהגודל המקסימאלי המותר %{size}",failedToFetch:"השירות נכשל לטפל בכתובת זו, אנא וודא שהיא נכונה",failedToUpload:"העלאת הקובץ %{file} נכשלה",fileSource:"קובץ מקור: %{name}",filesUploadedOfTotal:{0:"קובץ %{complete} מתוך %{smart_count} הועלה",1:"%{complete} מתוך %{smart_count} קבצים הועלו"},filter:"סינון",finishEditingFile:"סיים לעדכן את הקובץ",folderAdded:{0:"נוסף קובץ %{smart_count} מ %{folder}",1:"נוספו %{smart_count} קבצים מ %{folder}"},generatingThumbnails:"יוצר תמונות ממוזערות...",import:"ייבוא",importFrom:"ייבוא מ %{name}",loading:"טוען...",logOut:"התנתק",myDevice:"המכשיר שלי",noFilesFound:"אין כאן קבצים או תיקיות",noInternetConnection:"אין חיבור לאינטרנט",openFolderNamed:"פתח קובץ %{name}",pause:"השהה",pauseUpload:"השהה העלאה",paused:"מושהה",poweredBy:"בחסות %{uppy}",processingXFiles:{0:"מעבד קובץ %{smart_count}",1:"מעבד %{smart_count} קבצים"},removeFile:"מחק קובץ",resetFilter:"אפס סינון",resume:"המשך",resumeUpload:"המשך העלאה",retry:"נסה שוב",retryUpload:"נסה להעלות שוב",saveChanges:"שמור שינויים",selectFileNamed:"בחר את הקובץ %{name}",selectX:{0:"בחר %{smart_count}",1:"בחר %{smart_count}"},smile:"Smile!",startRecording:"מתחיל הסרטת ווידאו",stopRecording:"עצור הסרטת ווידאו",takePicture:"צלם תמונה",timedOut:"העלאה נתקעה %{seconds} שניות, מבטל.",unselectFileNamed:"בטל בחירת הקובץ %{name}",upload:"מעלה",uploadComplete:"העלאה הסתיימה",uploadFailed:"העלאה נכשלה",uploadPaused:"העלאה מושהת",uploadXFiles:{0:"העלה קובץ %{smart_count}",1:"העלה %{smart_count} קבצים"},uploadXNewFiles:{0:"העלה קובץ +%{smart_count}",1:"העלה +%{smart_count} קבצים"},uploading:"Uploading",uploadingXFiles:{0:"מעלה קובץ %{smart_count}",1:"מעלה %{smart_count} קבצים"},xFilesSelected:{0:"קובץ %{smart_count} נבחר",1:"%{smart_count} קבצים נבחרו"},xMoreFilesAdded:{0:"עוד %{smart_count} קובץ נוסף",1:"עוד %{smart_count} קבצים נוספו"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"You can only upload: %{types}",youCanOnlyUploadX:{0:"ניתן העלות רק קובץ %{smart_count}",1:"ניתן להעלות רק %{smart_count} קבצים"},youHaveToAtLeastSelectX:{0:"עליך לבחור לפחות בקובץ %{smart_count}",1:"עליך לבחור לפחות ב %{smart_count} קבצים"}};typeof Uppy<"u"&&(globalThis.Uppy.locales.he_IL=e);const t=e,l={Language:"שפה",Create:"יצירה",Close:"סגירה",Cancel:"ביטול",Save:"שמירה",Edit:"עריכה",Crop:"חיתוך","New Folder":"תיקייה חדשה","New File":"קובץ חדש",Rename:"שינוי שם",Delete:"מחיקה",Upload:"העלאה",Download:"הורדה",Archive:"לדחוס",Unarchive:"לחלץ",Open:"פתיחה","Open containing folder":"פתיחת מיקום קובץ",Refresh:"רענון",Preview:"תצוגה מקדימה","Dark Mode":"עיצוב כהה","Toggle Full Screen":"שינוי מצב מסך מלא","Change View":"שינוי תצוגה",Storage:"אחסון","Go up a directory":"מעבר תיקייה אחת למעלה","Search anything..":"חיפוש...",Name:"שם",Size:"גודל",Date:"תאריך",Filepath:"נתיב קובץ",About:"אודות","Folder Name":"שם התיקייה","File Name":"שם הקובץ","Move files":"העברת קבצים","Are you sure you want to move these files to?":"האם בטוח להעביר קבצים אלה?","Yes, Move!":"כן, להעביר!","Delete files":"מחיקת קבצים","Yes, Delete!":"כן, למחוק!","Upload Files":"העלאת קבצים","No files selected!":"לא נבחרו קבצים","Select Files":"בחירת קבצים","Archive the files":"דחיסת קבצים אלו","Unarchive the files":"חילוץ קבצים אלו","The archive will be unarchived at":"הארכיןם יוחלץ ל:","Archive name. (.zip file will be created)":"שם הארכיון. (סיומת .zip תווסף)","Vuefinder is a file manager component for vue 3.":"Vuefinder הינו רכיב מנהל קבצים עבור vue 3","Create a new folder":"יצירת תיקייה חדשה","Create a new file":"יצירת קובץ חדש","Are you sure you want to delete these files?":"האם בטוח למחוק קבצים אלה?","This action cannot be undone.":"לא ניתן לבטל פעולה זו.","Search results for":"תוצאות חיפוש עבור","item(s) selected.":"פריט(ים) נבחרו.","%s is renamed.":"השם של %s השתנה.","This is a readonly storage.":"זהו אחסון לקריאה בלבד.","%s is created.":"%s נוצר","Files moved.":"הקבצים הועברו.","Files deleted.":"הקבצים נמחקו","The file unarchived.":"הקבצים חולצו.","The file(s) archived.":"הקובצים נדחסו.","Updated.":"התעדכן","No search result found.":"לא נמצאו תוצאות לחיפוש.","Are you sure you want to move these files?":"האם בטוח להעביר קבצים אלו?","File Size":"גודל קובץ","Last Modified":"תאריך שינוי","Drag&Drop: on":"מצב גרירה: פעיל","Drag&Drop: off":"מצב גרירה: כבוי","Select Folders":"Select Folders","Clear all":"Clear all","Clear only successful":"Clear only successful","Drag and drop the files/folders to here or click here.":"Drag and drop the files/folders to here or click here.","Release to drop these files.":"Release to drop these files.",Canceled:"Canceled",Done:"Done","Network Error, Unable establish connection to the server or interrupted.":"Network Error, Unable establish connection to the server or interrupted.","Pending upload":"Pending","Please select file to upload first.":"Please select file to upload first.","About %s":"אודות %s",Settings:"הגדרות","Use Metric Units":"השתמש ביחידות מטריות","Saved.":"נשמר","Clear Local Storage":"נקה אחסון מקומי",uppy:t};exports.default=l; diff --git a/dist/hi-66a90598.cjs b/dist/hi-7d3118ac.cjs similarity index 94% rename from dist/hi-66a90598.cjs rename to dist/hi-7d3118ac.cjs index ed9aa1a8..fd3bbda5 100644 --- a/dist/hi-66a90598.cjs +++ b/dist/hi-7d3118ac.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addBulkFilesFailed:{0:"आंतरिक त्रुटि के कारण %{smart_count} फ़ाइल जोड़ने में विफल",1:"आंतरिक त्रुटियों के कारण %{smart_count} फ़ाइलें जोड़ने में विफल"},addMore:"और जोड़ें",addMoreFiles:"और अधिक फ़ाइलें जोड़ें",addingMoreFiles:"और अधिक फ़ाइलें जोड़ रहे हैं",allowAccessDescription:"अपने कैमरे से फ़ोटो लेने या वीडियो रिकॉर्ड करने के लिए, कृपया इस साइट के लिए कैमरा पहुंच की अनुमति दें।",allowAccessTitle:"कृपया अपने कैमरे तक पहुंचने की अनुमति दें",aspectRatioLandscape:"लैंडस्केप क्रॉप करें (16:9)",aspectRatioPortrait:"पोर्ट्रेट क्रॉप करें (9:16)",aspectRatioSquare:"वर्ग क्रॉप करें",authenticateWith:"%{pluginName} से कनेक्ट करें",authenticateWithTitle:"%{pluginName} के साथ सत्यापित करें ताकि फ़ाइलें चुन सकें",back:"वापस",backToSearch:"खोज पर वापस जाएं",browse:"ब्राउज़ करें",browseFiles:"फ़ाइलें ब्राउज़ करें",browseFolders:"फ़ोल्डर ब्राउज़ करें",cancel:"रद्द करें",cancelUpload:"अपलोड रद्द करें",chooseFiles:"फ़ाइलें चुनें",closeModal:"मोडल बंद करें",companionError:"कंपैनियन के साथ कनेक्शन विफल",companionUnauthorizeHint:"अपने %{provider} खाते को अनधिकृत करने के लिए, कृपया %{url} पर जाएँ",complete:"पूरा हो गया",connectedToInternet:"इंटरनेट से जुड़ा हुआ",copyLink:"लिंक कॉपी करें",copyLinkToClipboardFallback:"नीचे दिए गए URL को कॉपी करें",copyLinkToClipboardSuccess:"लिंक क्लिपबोर्ड पर कॉपी किया गया",creatingAssembly:"अपलोड की तैयारी...",creatingAssemblyFailed:"Transloadit: असेंबली बना नहीं सका",dashboardTitle:"फ़ाइल अपलोडर",dashboardWindowTitle:"फ़ाइल अपलोडर विंडो (बंद करने के लिए एस्केप दबाएं)",dataUploadedOfTotal:"%{complete} का %{total}",discardRecordedFile:"रिकॉर्डेड फ़ाइल को छोड़ें",done:"हो गया",dropHereOr:"यहाँ फ़ाइलें ड्रॉप करें या %{browse}",dropHint:"यहाँ अपनी फ़ाइलें ड्रॉप करें",dropPasteBoth:"यहाँ फ़ाइलें ड्रॉप करें, %{browseFiles} या %{browseFolders}",dropPasteFiles:"यहाँ फ़ाइलें ड्रॉप करें या %{browseFiles}",dropPasteFolders:"यहाँ फ़ाइलें ड्रॉप करें या %{browseFolders}",dropPasteImportBoth:"यहां फ़ाइलें ड्रॉप करें, %{browseFiles}, %{browseFolders} या इससे आयात करें:",dropPasteImportFiles:"यहां फ़ाइलें ड्रॉप करें, %{browseFiles} या इससे आयात करें:",dropPasteImportFolders:"यहां फ़ाइलें ड्रॉप करें, %{browseFolders} या इससे आयात करें:",editFile:"फ़ाइल संपादित करें",editing:"संपादन %{file}",emptyFolderAdded:"खाली फ़ोल्डर से कोई फ़ाइलें नहीं जोड़ी गईं",encoding:"एन्कोडिंग...",enterCorrectUrl:"गलत यूआरएल: कृपया सुनिश्चित करें कि आप एक फ़ाइल के सीधे लिंक दर्ज कर रहे हैं",enterTextToSearch:"छवियाँ खोजने के लिए टेक्स्ट दर्ज करें",enterUrlToImport:"फ़ाइल आयात करने के लिए यूआरएल दर्ज करें",exceedsSize:"%{file} की अधिकतम अनुमति देने वाले आकार को पार करता है",exceedsSize2:"%{backwardsCompat} %{size}",failedToFetch:"Companion इस URL को लाने में विफल रहा, कृपया सुनिश्चित करें कि यह सही है",failedToUpload:"%{file} अपलोड करने में विफल रहा",fileSource:"फ़ाइल स्रोत: %{name}",filesUploadedOfTotal:{0:"%{complete} का %{smart_count} फ़ाइल अपलोड किया गया",1:"%{complete} के %{smart_count} फ़ाइलें अपलोड की गईं"},filter:"फ़िल्टर",finishEditingFile:"फ़ाइल संपादित करना समाप्त करें",flipHorizontal:"क्षैतिज पलटें",folderAdded:{0:"%{folder} से %{smart_count} फ़ाइल जोड़ी गई",1:"%{folder} से %{smart_count} फ़ाइलें जोड़ी गई"},generatingThumbnails:"थंबनेल उत्पन्न कर रहा है...",import:"आयात",importFiles:"फ़ाइलों को इम्पोर्ट करें:",importFrom:"%{name} से आयात करें",inferiorSize:"इस फ़ाइल का आकार %{size} से छोटा है",loading:"लोड हो रहा है...",logOut:"लॉग आउट",micDisabled:"उपयोगकर्ता द्वारा माइक्रोफ़ोन पहुंच नहीं हो सका",myDevice:"मेरी उपकरण",noCameraDescription:"तस्वीरें लेने या वीडियो रिकॉर्ड करने के लिए, कृपया कैमरा डिवाइस कनेक्ट करें",noCameraTitle:"कैमरा उपलब्ध नहीं है",noDuplicates:"डुप्लिकेट फ़ाइल '%{fileName}' नहीं जोड़ सकते, यह पहले से मौजूद है",noFilesFound:"यहां आपके पास कोई फ़ाइल या फ़ोल्डर नहीं है",noInternetConnection:"इंटरनेट कनेक्शन नहीं",noNewAlreadyUploading:"नई फ़ाइलें नहीं जोड़ सकते: पहले से अपलोड कर रहे हैं",openFolderNamed:"फ़ोल्डर %{name} खोलें",pause:"रोकें",pauseUpload:"अपलोड रोकें",paused:"रोका हुआ",poweredBy:"प्रायोजित द्वारा",poweredBy2:"%{backwardsCompat} %{uppy}",processingXFiles:{0:"%{smart_count} फ़ाइल को प्रोसेस कर रहा है",1:"%{smart_count} फ़ाइलें प्रोसेस कर रहा है"},reSelect:"पुनः-चुनें",recording:"रिकॉर्डिंग",recordingLength:"रिकॉर्डिंग की लंबाई %{recording_length}",recordingStoppedMaxSize:"रिकॉर्डिंग रोक दी गई क्योंकि फ़ाइल का आकार सीमा को पार करने वाला है",recoveredAllFiles:"हमने सभी फ़ाइलों को पुनर्स्थापित कर दिया है। अब आप अपलोड को फिर से शुरू कर सकते हैं।",recoveredXFiles:{0:"हम 1 फ़ाइल को पूरी तरह से वसूल नहीं कर सके। कृपया इसे फिर से चुनें और अपलोड जारी रखें।",1:"हम %{smart_count} फ़ाइलों को पूरी तरह से वसूल नहीं कर सके। कृपया उन्हें फिर से चुनें और अपलोड जारी रखें।"},removeFile:"फ़ाइल हटाएँ",resetFilter:"फ़िल्टर रीसेट करें",resume:"जारी रखें",resumeUpload:"अपलोड जारी रखें",retry:"पुनः प्रयास करें",retryUpload:"अपलोड पुनः प्रयास करें",revert:"वापस लें",rotate:"घुमाएँ",save:"सहेजें",saveChanges:"परिवर्तन सहेजें",searchImages:"चित्रों के लिए खोजें",selectAllFilesFromFolderNamed:"फ़ोल्डर %{name} से सभी फ़ाइलें चुनें",selectFileNamed:"फ़ाइल %{name} चुनें",selectX:{0:"%{smart_count} चुनें",1:"%{smart_count} चुनें"},sessionRestored:"सत्र बहाल",smile:"मुस्कराइए!",startCapturing:"स्क्रीन कैप्चर शुरू करें",startRecording:"वीडियो रिकॉर्डिंग शुरू करें",stopCapturing:"स्क्रीन कैप्चर बंद करें",stopRecording:"वीडियो रिकॉर्डिंग रोकें",streamActive:"स्ट्रीम सक्रिय",streamPassive:"स्ट्रीम निष्क्रिय",submitRecordedFile:"रिकॉर्ड की गई फ़ाइल सबमिट करें",takePicture:"एक तस्वीर लें",timedOut:"अपलोड %{seconds} सेकंड के लिए अवरुद्ध हुआ, निरस्त कर रहा है।",unselectAllFilesFromFolderNamed:"फ़ोल्डर %{name} से सभी फ़ाइलों को अचयनित करें",unselectFileNamed:"फ़ाइल %{name} को अचयनित करें",upload:"अपलोड",uploadComplete:"अपलोड पूरा हुआ",uploadFailed:"अपलोड विफल",uploadPaused:"अपलोड रुका हुआ",uploadXFiles:{0:"%{smart_count} फ़ाइल अपलोड करें",1:"%{smart_count} फ़ाइलें अपलोड करें"},uploadXNewFiles:{0:"+%{smart_count} फ़ाइल अपलोड करें",1:"+%{smart_count} फ़ाइलें अपलोड करें"},uploading:"अपलोड हो रहा है",uploadingXFiles:{0:"%{smart_count} फ़ाइल अपलोड हो रही है",1:"%{smart_count} फ़ाइलें अपलोड कर रहे हैं"},xFilesSelected:{0:"%{smart_count} फ़ाइल चयनित",1:"%{smart_count} फ़ाइलें चयनित"},xMoreFilesAdded:{0:"%{smart_count} और फ़ाइल जोड़ी गई",1:"%{smart_count} और फ़ाइलें जोड़ी गई"},xTimeLeft:"%{time} शेष",youCanOnlyUploadFileTypes:"आप केवल %{types} अपलोड कर सकते हैं",youCanOnlyUploadX:{0:"आप केवल %{smart_count} फ़ाइल अपलोड कर सकते हैं",1:"आप केवल %{smart_count} फ़ाइलें अपलोड कर सकते हैं"},youHaveToAtLeastSelectX:{0:"आपको कम से कम %{smart_count} फ़ाइल का चयन करना होगा",1:"आपको कम से कम %{smart_count} फ़ाइलें चुननी होंगी"},zoomIn:"ज़ूम इन",zoomOut:"ज़ूम आउट"};typeof Uppy<"u"&&(globalThis.Uppy.locales.hi_IN=e);const t=e,a={Language:"भाषा",Create:"बनाएँ",Close:"बंद करें",Cancel:"रद्द करें",Save:"सहेजें",Edit:"संपादित करें",Crop:"कटवा दें","New Folder":"नया फ़ोल्डर","New File":"नया फ़ाइल",Rename:"नाम बदलें",Delete:"हटाएं",Upload:"अपलोड करें",Download:"डाउनलोड करें",Archive:"आर्काइव",Unarchive:"अनआर्काइव",Open:"खोलें","Open containing folder":"धारक फोल्डर खोलें",Refresh:"ताजगी करें",Preview:"पूर्वावलोकन","Dark Mode":"डार्क मोड","Toggle Full Screen":"पूर्ण स्क्रीन टॉगल करें","Change View":"दृश्य बदलें",Storage:"संग्रहण","Go up a directory":"एक निर्देशिका ऊपर जाएं","Search anything..":"कुछ भी खोजें..",Name:"नाम",Size:"आकार",Date:"तारीख",Filepath:"फ़ाइल पथ",About:"के बारे में","Folder Name":"फ़ोल्डर नाम","File Name":"फ़ाइल नाम","Move files":"फ़ाइलें ले जाएं","Are you sure you want to move these files to?":"क्या आप वाकई इन फ़ाइलों को इस जगह ले जाना चाहते हैं?","Yes, Move!":"हां, ले जाएं!","Delete files":"फ़ाइलें हटाएं","Yes, Delete!":"हां, हटाएं!","Upload Files":"फ़ाइलें अपलोड करें","No files selected!":"कोई फ़ाइलें चयनित नहीं हैं!","Select Files":"फ़ाइलें चयनित करें","Archive the files":"फ़ाइलों को संग्रहित करें","Unarchive the files":"फ़ाइलों को संग्रहण से निकालें","The archive will be unarchived at":"संग्रहण इस तिथि पर से निकाला जाएगा","Archive name. (.zip file will be created)":"संग्रहण का नाम (.zip फ़ाइल बनाई जाएगी)","Vuefinder is a file manager component for vue 3.":"Vuefinder व्यू 3 के लिए एक फ़ाइल प्रबंधक घटक है।","Create a new folder":"नया फ़ोल्डर बनाएं","Create a new file":"नई फ़ाइल बनाएं","Are you sure you want to delete these files?":"क्या आप वाकई इन फ़ाइलों को हटाना चाहते हैं?","This action cannot be undone.":"इस क्रिया को पूर्वस्थित नहीं किया जा सकता है।","Search results for":"के लिए खोज परिणाम","item(s) selected.":"आइटम(आइटम) चयनित।","%s is renamed.":"%s का नाम बदला गया है।","This is a readonly storage.":"यह एक केवल पठनीय संग्रह है।","%s is created.":"%s बनाया गया है।","Files moved.":"फ़ाइलें मूव की गईं।","Files deleted.":"फ़ाइलें हटा दी गईं।","The file unarchived.":"फ़ाइल अनआर्काइव की गई है।","The file(s) archived.":"फ़ाइल(फ़ाइलें) आर्काइव की गई हैं।","Updated.":"अद्यतित।","No search result found.":"कोई खोज परिणाम नहीं मिले।","Are you sure you want to move these files?":"क्या आप वाकई इन फ़ाइलों को स्थानांतरित करना चाहते हैं?","File Size":"फ़ाइल का आकार","Last Modified":"अंतिम संशोधित","Drag&Drop: on":"ड्रैग और ड्रॉप: चालू","Drag&Drop: off":"ड्रैग और ड्रॉप: बंद",uppy:t};exports.default=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(o){return o===1?0:1}};e.strings={addBulkFilesFailed:{0:"आंतरिक त्रुटि के कारण %{smart_count} फ़ाइल जोड़ने में विफल",1:"आंतरिक त्रुटियों के कारण %{smart_count} फ़ाइलें जोड़ने में विफल"},addMore:"और जोड़ें",addMoreFiles:"और अधिक फ़ाइलें जोड़ें",addingMoreFiles:"और अधिक फ़ाइलें जोड़ रहे हैं",allowAccessDescription:"अपने कैमरे से फ़ोटो लेने या वीडियो रिकॉर्ड करने के लिए, कृपया इस साइट के लिए कैमरा पहुंच की अनुमति दें।",allowAccessTitle:"कृपया अपने कैमरे तक पहुंचने की अनुमति दें",aspectRatioLandscape:"लैंडस्केप क्रॉप करें (16:9)",aspectRatioPortrait:"पोर्ट्रेट क्रॉप करें (9:16)",aspectRatioSquare:"वर्ग क्रॉप करें",authenticateWith:"%{pluginName} से कनेक्ट करें",authenticateWithTitle:"%{pluginName} के साथ सत्यापित करें ताकि फ़ाइलें चुन सकें",back:"वापस",backToSearch:"खोज पर वापस जाएं",browse:"ब्राउज़ करें",browseFiles:"फ़ाइलें ब्राउज़ करें",browseFolders:"फ़ोल्डर ब्राउज़ करें",cancel:"रद्द करें",cancelUpload:"अपलोड रद्द करें",chooseFiles:"फ़ाइलें चुनें",closeModal:"मोडल बंद करें",companionError:"कंपैनियन के साथ कनेक्शन विफल",companionUnauthorizeHint:"अपने %{provider} खाते को अनधिकृत करने के लिए, कृपया %{url} पर जाएँ",complete:"पूरा हो गया",connectedToInternet:"इंटरनेट से जुड़ा हुआ",copyLink:"लिंक कॉपी करें",copyLinkToClipboardFallback:"नीचे दिए गए URL को कॉपी करें",copyLinkToClipboardSuccess:"लिंक क्लिपबोर्ड पर कॉपी किया गया",creatingAssembly:"अपलोड की तैयारी...",creatingAssemblyFailed:"Transloadit: असेंबली बना नहीं सका",dashboardTitle:"फ़ाइल अपलोडर",dashboardWindowTitle:"फ़ाइल अपलोडर विंडो (बंद करने के लिए एस्केप दबाएं)",dataUploadedOfTotal:"%{complete} का %{total}",discardRecordedFile:"रिकॉर्डेड फ़ाइल को छोड़ें",done:"हो गया",dropHereOr:"यहाँ फ़ाइलें ड्रॉप करें या %{browse}",dropHint:"यहाँ अपनी फ़ाइलें ड्रॉप करें",dropPasteBoth:"यहाँ फ़ाइलें ड्रॉप करें, %{browseFiles} या %{browseFolders}",dropPasteFiles:"यहाँ फ़ाइलें ड्रॉप करें या %{browseFiles}",dropPasteFolders:"यहाँ फ़ाइलें ड्रॉप करें या %{browseFolders}",dropPasteImportBoth:"यहां फ़ाइलें ड्रॉप करें, %{browseFiles}, %{browseFolders} या इससे आयात करें:",dropPasteImportFiles:"यहां फ़ाइलें ड्रॉप करें, %{browseFiles} या इससे आयात करें:",dropPasteImportFolders:"यहां फ़ाइलें ड्रॉप करें, %{browseFolders} या इससे आयात करें:",editFile:"फ़ाइल संपादित करें",editing:"संपादन %{file}",emptyFolderAdded:"खाली फ़ोल्डर से कोई फ़ाइलें नहीं जोड़ी गईं",encoding:"एन्कोडिंग...",enterCorrectUrl:"गलत यूआरएल: कृपया सुनिश्चित करें कि आप एक फ़ाइल के सीधे लिंक दर्ज कर रहे हैं",enterTextToSearch:"छवियाँ खोजने के लिए टेक्स्ट दर्ज करें",enterUrlToImport:"फ़ाइल आयात करने के लिए यूआरएल दर्ज करें",exceedsSize:"%{file} की अधिकतम अनुमति देने वाले आकार को पार करता है",exceedsSize2:"%{backwardsCompat} %{size}",failedToFetch:"Companion इस URL को लाने में विफल रहा, कृपया सुनिश्चित करें कि यह सही है",failedToUpload:"%{file} अपलोड करने में विफल रहा",fileSource:"फ़ाइल स्रोत: %{name}",filesUploadedOfTotal:{0:"%{complete} का %{smart_count} फ़ाइल अपलोड किया गया",1:"%{complete} के %{smart_count} फ़ाइलें अपलोड की गईं"},filter:"फ़िल्टर",finishEditingFile:"फ़ाइल संपादित करना समाप्त करें",flipHorizontal:"क्षैतिज पलटें",folderAdded:{0:"%{folder} से %{smart_count} फ़ाइल जोड़ी गई",1:"%{folder} से %{smart_count} फ़ाइलें जोड़ी गई"},generatingThumbnails:"थंबनेल उत्पन्न कर रहा है...",import:"आयात",importFiles:"फ़ाइलों को इम्पोर्ट करें:",importFrom:"%{name} से आयात करें",inferiorSize:"इस फ़ाइल का आकार %{size} से छोटा है",loading:"लोड हो रहा है...",logOut:"लॉग आउट",micDisabled:"उपयोगकर्ता द्वारा माइक्रोफ़ोन पहुंच नहीं हो सका",myDevice:"मेरी उपकरण",noCameraDescription:"तस्वीरें लेने या वीडियो रिकॉर्ड करने के लिए, कृपया कैमरा डिवाइस कनेक्ट करें",noCameraTitle:"कैमरा उपलब्ध नहीं है",noDuplicates:"डुप्लिकेट फ़ाइल '%{fileName}' नहीं जोड़ सकते, यह पहले से मौजूद है",noFilesFound:"यहां आपके पास कोई फ़ाइल या फ़ोल्डर नहीं है",noInternetConnection:"इंटरनेट कनेक्शन नहीं",noNewAlreadyUploading:"नई फ़ाइलें नहीं जोड़ सकते: पहले से अपलोड कर रहे हैं",openFolderNamed:"फ़ोल्डर %{name} खोलें",pause:"रोकें",pauseUpload:"अपलोड रोकें",paused:"रोका हुआ",poweredBy:"प्रायोजित द्वारा",poweredBy2:"%{backwardsCompat} %{uppy}",processingXFiles:{0:"%{smart_count} फ़ाइल को प्रोसेस कर रहा है",1:"%{smart_count} फ़ाइलें प्रोसेस कर रहा है"},reSelect:"पुनः-चुनें",recording:"रिकॉर्डिंग",recordingLength:"रिकॉर्डिंग की लंबाई %{recording_length}",recordingStoppedMaxSize:"रिकॉर्डिंग रोक दी गई क्योंकि फ़ाइल का आकार सीमा को पार करने वाला है",recoveredAllFiles:"हमने सभी फ़ाइलों को पुनर्स्थापित कर दिया है। अब आप अपलोड को फिर से शुरू कर सकते हैं।",recoveredXFiles:{0:"हम 1 फ़ाइल को पूरी तरह से वसूल नहीं कर सके। कृपया इसे फिर से चुनें और अपलोड जारी रखें।",1:"हम %{smart_count} फ़ाइलों को पूरी तरह से वसूल नहीं कर सके। कृपया उन्हें फिर से चुनें और अपलोड जारी रखें।"},removeFile:"फ़ाइल हटाएँ",resetFilter:"फ़िल्टर रीसेट करें",resume:"जारी रखें",resumeUpload:"अपलोड जारी रखें",retry:"पुनः प्रयास करें",retryUpload:"अपलोड पुनः प्रयास करें",revert:"वापस लें",rotate:"घुमाएँ",save:"सहेजें",saveChanges:"परिवर्तन सहेजें",searchImages:"चित्रों के लिए खोजें",selectAllFilesFromFolderNamed:"फ़ोल्डर %{name} से सभी फ़ाइलें चुनें",selectFileNamed:"फ़ाइल %{name} चुनें",selectX:{0:"%{smart_count} चुनें",1:"%{smart_count} चुनें"},sessionRestored:"सत्र बहाल",smile:"मुस्कराइए!",startCapturing:"स्क्रीन कैप्चर शुरू करें",startRecording:"वीडियो रिकॉर्डिंग शुरू करें",stopCapturing:"स्क्रीन कैप्चर बंद करें",stopRecording:"वीडियो रिकॉर्डिंग रोकें",streamActive:"स्ट्रीम सक्रिय",streamPassive:"स्ट्रीम निष्क्रिय",submitRecordedFile:"रिकॉर्ड की गई फ़ाइल सबमिट करें",takePicture:"एक तस्वीर लें",timedOut:"अपलोड %{seconds} सेकंड के लिए अवरुद्ध हुआ, निरस्त कर रहा है।",unselectAllFilesFromFolderNamed:"फ़ोल्डर %{name} से सभी फ़ाइलों को अचयनित करें",unselectFileNamed:"फ़ाइल %{name} को अचयनित करें",upload:"अपलोड",uploadComplete:"अपलोड पूरा हुआ",uploadFailed:"अपलोड विफल",uploadPaused:"अपलोड रुका हुआ",uploadXFiles:{0:"%{smart_count} फ़ाइल अपलोड करें",1:"%{smart_count} फ़ाइलें अपलोड करें"},uploadXNewFiles:{0:"+%{smart_count} फ़ाइल अपलोड करें",1:"+%{smart_count} फ़ाइलें अपलोड करें"},uploading:"अपलोड हो रहा है",uploadingXFiles:{0:"%{smart_count} फ़ाइल अपलोड हो रही है",1:"%{smart_count} फ़ाइलें अपलोड कर रहे हैं"},xFilesSelected:{0:"%{smart_count} फ़ाइल चयनित",1:"%{smart_count} फ़ाइलें चयनित"},xMoreFilesAdded:{0:"%{smart_count} और फ़ाइल जोड़ी गई",1:"%{smart_count} और फ़ाइलें जोड़ी गई"},xTimeLeft:"%{time} शेष",youCanOnlyUploadFileTypes:"आप केवल %{types} अपलोड कर सकते हैं",youCanOnlyUploadX:{0:"आप केवल %{smart_count} फ़ाइल अपलोड कर सकते हैं",1:"आप केवल %{smart_count} फ़ाइलें अपलोड कर सकते हैं"},youHaveToAtLeastSelectX:{0:"आपको कम से कम %{smart_count} फ़ाइल का चयन करना होगा",1:"आपको कम से कम %{smart_count} फ़ाइलें चुननी होंगी"},zoomIn:"ज़ूम इन",zoomOut:"ज़ूम आउट"};typeof Uppy<"u"&&(globalThis.Uppy.locales.hi_IN=e);const t=e,r={Language:"भाषा",Create:"बनाएँ",Close:"बंद करें",Cancel:"रद्द करें",Save:"सहेजें",Edit:"संपादित करें",Crop:"कटवा दें","New Folder":"नया फ़ोल्डर","New File":"नया फ़ाइल",Rename:"नाम बदलें",Delete:"हटाएं",Upload:"अपलोड करें",Download:"डाउनलोड करें",Archive:"आर्काइव",Unarchive:"अनआर्काइव",Open:"खोलें","Open containing folder":"धारक फोल्डर खोलें",Refresh:"ताजगी करें",Preview:"पूर्वावलोकन","Dark Mode":"डार्क मोड","Toggle Full Screen":"पूर्ण स्क्रीन टॉगल करें","Change View":"दृश्य बदलें",Storage:"संग्रहण","Go up a directory":"एक निर्देशिका ऊपर जाएं","Search anything..":"कुछ भी खोजें..",Name:"नाम",Size:"आकार",Date:"तारीख",Filepath:"फ़ाइल पथ",About:"के बारे में","Folder Name":"फ़ोल्डर नाम","File Name":"फ़ाइल नाम","Move files":"फ़ाइलें ले जाएं","Are you sure you want to move these files to?":"क्या आप वाकई इन फ़ाइलों को इस जगह ले जाना चाहते हैं?","Yes, Move!":"हां, ले जाएं!","Delete files":"फ़ाइलें हटाएं","Yes, Delete!":"हां, हटाएं!","Upload Files":"फ़ाइलें अपलोड करें","No files selected!":"कोई फ़ाइलें चयनित नहीं हैं!","Select Files":"फ़ाइलें चयनित करें","Archive the files":"फ़ाइलों को संग्रहित करें","Unarchive the files":"फ़ाइलों को संग्रहण से निकालें","The archive will be unarchived at":"संग्रहण इस तिथि पर से निकाला जाएगा","Archive name. (.zip file will be created)":"संग्रहण का नाम (.zip फ़ाइल बनाई जाएगी)","Vuefinder is a file manager component for vue 3.":"Vuefinder व्यू 3 के लिए एक फ़ाइल प्रबंधक घटक है।","Create a new folder":"नया फ़ोल्डर बनाएं","Create a new file":"नई फ़ाइल बनाएं","Are you sure you want to delete these files?":"क्या आप वाकई इन फ़ाइलों को हटाना चाहते हैं?","This action cannot be undone.":"इस क्रिया को पूर्वस्थित नहीं किया जा सकता है।","Search results for":"के लिए खोज परिणाम","item(s) selected.":"आइटम(आइटम) चयनित।","%s is renamed.":"%s का नाम बदला गया है।","This is a readonly storage.":"यह एक केवल पठनीय संग्रह है।","%s is created.":"%s बनाया गया है।","Files moved.":"फ़ाइलें मूव की गईं।","Files deleted.":"फ़ाइलें हटा दी गईं।","The file unarchived.":"फ़ाइल अनआर्काइव की गई है।","The file(s) archived.":"फ़ाइल(फ़ाइलें) आर्काइव की गई हैं।","Updated.":"अद्यतित।","No search result found.":"कोई खोज परिणाम नहीं मिले।","Are you sure you want to move these files?":"क्या आप वाकई इन फ़ाइलों को स्थानांतरित करना चाहते हैं?","File Size":"फ़ाइल का आकार","Last Modified":"अंतिम संशोधित","Drag&Drop: on":"ड्रैग और ड्रॉप: चालू","Drag&Drop: off":"ड्रैग और ड्रॉप: बंद","Select Folders":"Select Folders","Clear all":"Clear all","Clear only successful":"Clear only successful","Drag and drop the files/folders to here or click here.":"Drag and drop the files/folders to here or click here.","Release to drop these files.":"Release to drop these files.",Canceled:"Canceled",Done:"Done","Network Error, Unable establish connection to the server or interrupted.":"Network Error, Unable establish connection to the server or interrupted.","Pending upload":"Pending","Please select file to upload first.":"Please select file to upload first.","About %s":"के बारे में %s",Settings:"सेटिंग्स","Use Metric Units":"Use Metric Units","Saved.":"Saved.","Clear Local Storage":"Clear Local Storage",uppy:t};exports.default=r; diff --git a/dist/hi-6bb62179.js b/dist/hi-ffd5a2ba.js similarity index 95% rename from dist/hi-6bb62179.js rename to dist/hi-ffd5a2ba.js index 6e8dbea3..14eec047 100644 --- a/dist/hi-6bb62179.js +++ b/dist/hi-ffd5a2ba.js @@ -176,7 +176,7 @@ e.strings = { zoomOut: "ज़ूम आउट" }; typeof Uppy < "u" && (globalThis.Uppy.locales.hi_IN = e); -const t = e, a = { +const r = e, t = { Language: "भाषा", Create: "बनाएँ", Close: "बंद करें", @@ -242,8 +242,23 @@ const t = e, a = { "Last Modified": "अंतिम संशोधित", "Drag&Drop: on": "ड्रैग और ड्रॉप: चालू", "Drag&Drop: off": "ड्रैग और ड्रॉप: बंद", - uppy: t + "Select Folders": "Select Folders", + "Clear all": "Clear all", + "Clear only successful": "Clear only successful", + "Drag and drop the files/folders to here or click here.": "Drag and drop the files/folders to here or click here.", + "Release to drop these files.": "Release to drop these files.", + Canceled: "Canceled", + Done: "Done", + "Network Error, Unable establish connection to the server or interrupted.": "Network Error, Unable establish connection to the server or interrupted.", + "Pending upload": "Pending", + "Please select file to upload first.": "Please select file to upload first.", + "About %s": "के बारे में %s", + Settings: "सेटिंग्स", + "Use Metric Units": "Use Metric Units", + "Saved.": "Saved.", + "Clear Local Storage": "Clear Local Storage", + uppy: r }; export { - a as default + t as default }; diff --git a/dist/ru-02b5dcbe.js b/dist/ru-9f317caf.js similarity index 92% rename from dist/ru-02b5dcbe.js rename to dist/ru-9f317caf.js index 0576b46e..c967e95b 100644 --- a/dist/ru-02b5dcbe.js +++ b/dist/ru-9f317caf.js @@ -144,7 +144,7 @@ o.strings = { openFolderNamed: "Открыть папку %{name}" }; typeof Uppy < "u" && (globalThis.Uppy.locales.ru_RU = o); -const t = o, a = { +const t = o, r = { Language: "Язык", Create: "Создать", Close: "Закрыть", @@ -210,8 +210,23 @@ const t = o, a = { "Last Modified": "Последнее изменение", "Drag&Drop: on": "Drag&Drop: on", "Drag&Drop: off": "Drag&Drop: off", + "Select Folders": "Select Folders", + "Clear all": "Clear all", + "Clear only successful": "Clear only successful", + "Drag and drop the files/folders to here or click here.": "Drag and drop the files/folders to here or click here.", + "Release to drop these files.": "Release to drop these files.", + Canceled: "Canceled", + Done: "Done", + "Network Error, Unable establish connection to the server or interrupted.": "Network Error, Unable establish connection to the server or interrupted.", + "Pending upload": "Pending", + "Please select file to upload first.": "Please select file to upload first.", + "About %s": "О компоненте %s", + Settings: "Настройки", + "Use Metric Units": "Использовать метрические единицы", + "Saved.": "Сохранено.", + "Clear Local Storage": "Очистить локальное хранилище", uppy: t }; export { - a as default + r as default }; diff --git a/dist/ru-2753c715.cjs b/dist/ru-f208af8a.cjs similarity index 91% rename from dist/ru-2753c715.cjs rename to dist/ru-f208af8a.cjs index 52da8a3c..77042365 100644 --- a/dist/ru-2753c715.cjs +++ b/dist/ru-f208af8a.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={strings:{},pluralize(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}};o.strings={addMoreFiles:"Добавить еще файлы",addingMoreFiles:"Добавление дополнительных файлов",allowAccessDescription:"Чтобы сделать фото или видео, пожалуйста, разрешите доступ к камере для этого сайта",allowAccessTitle:"Пожалуйста, разрешите доступ к вашей камере",authenticateWithTitle:"Пожалуйста, авторизуйтесь в %{pluginName}, чтобы выбрать файлы",authenticateWith:"Подключиться к %{pluginName}",back:"Назад",addMore:"Добавить еще",browse:"выберите",browseFiles:"выберите",cancel:"Отменить",cancelUpload:"Отменить загрузку",chooseFiles:"Выбрать файлы",closeModal:"Закрыть окно",companionError:"Не удалось подключиться к Companion",complete:"Готово",connectedToInternet:"Подключено к интернету",copyLink:"Скопировать ссылку",copyLinkToClipboardFallback:"Скопируйте ссылку",copyLinkToClipboardSuccess:"Ссылка скопирована в буфер обмена",creatingAssembly:"Подготовка загрузки...",creatingAssemblyFailed:"Transloadit: не удалось создать Assembly",dashboardTitle:"Загрузчик файлов",dashboardWindowTitle:"Окно загрузчика файлов (нажмите escape, чтобы закрыть)",dataUploadedOfTotal:"%{complete} из %{total}",done:"Готово",dropHereOr:"Перетащите файлы или %{browse}",dropHint:"Перетащите файлы сюда",dropPasteBoth:"Перетащите файлы, вставьте или %{browse}",dropPasteFiles:"Перетащите файлы, вставьте или %{browse}",dropPasteFolders:"Перетащите файлы, вставьте или %{browse}",dropPasteImportBoth:"Перетащите файлы, вставьте, %{browse} или импортируйте из:",dropPasteImportFiles:"Перетащите файлы, вставьте, %{browse} или импортируйте из:",dropPasteImportFolders:"Перетащите файлы, вставьте, %{browse} или импортируйте из:",editFile:"Редактировать файл",editing:"Редактируется %{file}",emptyFolderAdded:"Файлы не были добавлены — папка пуста",encoding:"Обработка...",enterCorrectUrl:"Неправильный адрес: пожалуйста, убедитесь что вы используете прямую ссылку на файл",enterUrlToImport:"Введите адрес, чтобы импортировать файл",exceedsSize:"Этот файл больше максимально разрешенного размера в %{size}",failedToFetch:"Companion не смог загрузить файл по ссылке, пожалуйста, убедитесь, что адрес верный",failedToUpload:"Ошибка загрузки %{file}",fileSource:"Источник файла: %{name}",filesUploadedOfTotal:{0:"%{complete} из %{smart_count} файла загружено",1:"%{complete} из %{smart_count} файлов загружено",2:"%{complete} из %{smart_count} файлов загружено"},filter:"Фильтр",finishEditingFile:"Закончить редактирование файла",folderAdded:{0:"Добавлен %{smart_count} файл из %{folder}",1:"Добавлено %{smart_count} файла из %{folder}",2:"Добавлено %{smart_count} файлов из %{folder}"},import:"Импортировать",importFrom:"Импортировать из %{name}",loading:"Загрузка...",logOut:"Выйти",myDevice:"Мое устройство",noFilesFound:"Здесь нет файлов или папок",noInternetConnection:"Нет подключения к интернету",pause:"Поставить на паузу",pauseUpload:"Поставить загрузку на паузу",paused:"На паузе",processingXFiles:{0:"Обрабатывается %{smart_count} файл",1:"Обрабатываются %{smart_count} файла",2:"Обрабатываются %{smart_count} файлов"},poweredBy:"Работает на %{uppy}",removeFile:"Удалить файл",resetFilter:"Сбросить фильтр",resume:"Продолжить",resumeUpload:"Продолжить загрузку",retry:"Повторить попытку",retryUpload:"Повторить попытку загрузки",save:"Сохранить",saveChanges:"Сохранить",selectX:{0:"Выбрать %{smart_count}",1:"Выбрать %{smart_count}",2:"Выбрать %{smart_count}"},smile:"Улыбнитесь!",startRecording:"Начать запись видео",stopRecording:"Закончить запись видео",takePicture:"Сделать фотографию",timedOut:"Загрузка остановилась на %{seconds} секунд, отмена",upload:"Загрузить",uploadComplete:"Загрузка завершена",uploadFailed:"Загрузка не удалась",uploadPaused:"Загрузка на паузе",uploadXFiles:{0:"Загрузить %{smart_count} файл",1:"Загрузить %{smart_count} файла",2:"Загрузить %{smart_count} файлов"},uploadXNewFiles:{0:"Загрузить +%{smart_count} файл",1:"Загрузить +%{smart_count} файла",2:"Загрузить +%{smart_count} файлов"},uploading:"Загрузка",uploadingXFiles:{0:"Загружается %{smart_count} файл",1:"Загружается %{smart_count} файла",2:"Загружается %{smart_count} файлов"},xFilesSelected:{0:"%{smart_count} файл выбран",1:"%{smart_count} файла выбрано",2:"%{smart_count} файлов выбрано"},xMoreFilesAdded:{0:"%{smart_count} дополнительный файл добавлен",1:"%{smart_count} дополнительных файла добавлено",2:"%{smart_count} дополнительных файлов добавлено"},xTimeLeft:"осталось %{time}",youCanOnlyUploadFileTypes:"Вы можете загрузить только: %{types}",youCanOnlyUploadX:{0:"Вы можете загрузить только %{smart_count} файл",1:"Вы можете загрузить только %{smart_count} файла",2:"Вы можете загрузить только %{smart_count} файлов"},youHaveToAtLeastSelectX:{0:"Вы должны выбрать хотя бы %{smart_count} файл",1:"Вы должны выбрать хотя бы %{smart_count} файла",2:"Вы должны выбрать хотя бы %{smart_count} файлов"},selectFileNamed:"Выбрать файл %{name}",unselectFileNamed:"Отменить выбор файла %{name}",openFolderNamed:"Открыть папку %{name}"};typeof Uppy<"u"&&(globalThis.Uppy.locales.ru_RU=o);const t=o,a={Language:"Язык",Create:"Создать",Close:"Закрыть",Cancel:"Отмена",Save:"Сохранить",Edit:"Изменить",Crop:"Обрезать","New Folder":"Новая папка","New File":"Новый файл",Rename:"Переименовать",Delete:"Удалить",Upload:"Загрузить",Download:"Скачать",Archive:"Архивировать",Unarchive:"Разархивировать",Open:"Открыть","Open containing folder":"Открыть расположение",Refresh:"Обновить",Preview:"Предпросмотр","Dark Mode":"Тёмный режим","Toggle Full Screen":"Полный экран","Change View":"Изменить вид",Storage:"Хранилище","Go up a directory":"Вверх","Search anything..":"Поиск...",Name:"Название",Size:"Размер",Date:"Дата",Filepath:"Путь до файла",About:"О компоненте","Folder Name":"Название папки","File Name":"Название файла","Move files":"Переместить файлы","Are you sure you want to move these files to?":"Вы уверены, что хотите переместить эти файлы в?","Yes, Move!":"Переместить","Delete files":"Удалить файлы","Yes, Delete!":"Удалить","Upload Files":"Загрузить файлы","No files selected!":"Файлы не выбраны!","Select Files":"Выбрать файлы","Archive the files":"Архивировать файлы","Unarchive the files":"Разархивировать файлы","The archive will be unarchived at":"Архив будет разархивирован в","Archive name. (.zip file will be created)":"Название архива. (будет создан .zip файл)","Vuefinder is a file manager component for vue 3.":"Vuefinder - файловый менеджер, компонент для vue 3.","Create a new folder":"Создать новую папку","Create a new file":"Создать новый файл","Are you sure you want to delete these files?":"Вы уверены, что хотите удалить эти файлы?","This action cannot be undone.":"Это действия нельзя отменить.","Search results for":"Результаты поиска по","item(s) selected.":"выбраны.","%s is renamed.":"%s переименован.","This is a readonly storage.":"Данное хранилище только для чтения.","%s is created.":"%s создан.","Files moved.":"Файлы перемещены.","Files deleted.":"Файлы удалены.","The file unarchived.":"Файл разархивирован","The file(s) archived.":"Файл(-ы) архивированы","Updated.":"Обновлено.","No search result found.":"Ничего не найдено","Are you sure you want to move these files?":"Вы уверены, что хотите переместить эти файлы?","File Size":"Размер файла","Last Modified":"Последнее изменение","Drag&Drop: on":"Drag&Drop: on","Drag&Drop: off":"Drag&Drop: off",uppy:t};exports.default=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={strings:{},pluralize(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}};o.strings={addMoreFiles:"Добавить еще файлы",addingMoreFiles:"Добавление дополнительных файлов",allowAccessDescription:"Чтобы сделать фото или видео, пожалуйста, разрешите доступ к камере для этого сайта",allowAccessTitle:"Пожалуйста, разрешите доступ к вашей камере",authenticateWithTitle:"Пожалуйста, авторизуйтесь в %{pluginName}, чтобы выбрать файлы",authenticateWith:"Подключиться к %{pluginName}",back:"Назад",addMore:"Добавить еще",browse:"выберите",browseFiles:"выберите",cancel:"Отменить",cancelUpload:"Отменить загрузку",chooseFiles:"Выбрать файлы",closeModal:"Закрыть окно",companionError:"Не удалось подключиться к Companion",complete:"Готово",connectedToInternet:"Подключено к интернету",copyLink:"Скопировать ссылку",copyLinkToClipboardFallback:"Скопируйте ссылку",copyLinkToClipboardSuccess:"Ссылка скопирована в буфер обмена",creatingAssembly:"Подготовка загрузки...",creatingAssemblyFailed:"Transloadit: не удалось создать Assembly",dashboardTitle:"Загрузчик файлов",dashboardWindowTitle:"Окно загрузчика файлов (нажмите escape, чтобы закрыть)",dataUploadedOfTotal:"%{complete} из %{total}",done:"Готово",dropHereOr:"Перетащите файлы или %{browse}",dropHint:"Перетащите файлы сюда",dropPasteBoth:"Перетащите файлы, вставьте или %{browse}",dropPasteFiles:"Перетащите файлы, вставьте или %{browse}",dropPasteFolders:"Перетащите файлы, вставьте или %{browse}",dropPasteImportBoth:"Перетащите файлы, вставьте, %{browse} или импортируйте из:",dropPasteImportFiles:"Перетащите файлы, вставьте, %{browse} или импортируйте из:",dropPasteImportFolders:"Перетащите файлы, вставьте, %{browse} или импортируйте из:",editFile:"Редактировать файл",editing:"Редактируется %{file}",emptyFolderAdded:"Файлы не были добавлены — папка пуста",encoding:"Обработка...",enterCorrectUrl:"Неправильный адрес: пожалуйста, убедитесь что вы используете прямую ссылку на файл",enterUrlToImport:"Введите адрес, чтобы импортировать файл",exceedsSize:"Этот файл больше максимально разрешенного размера в %{size}",failedToFetch:"Companion не смог загрузить файл по ссылке, пожалуйста, убедитесь, что адрес верный",failedToUpload:"Ошибка загрузки %{file}",fileSource:"Источник файла: %{name}",filesUploadedOfTotal:{0:"%{complete} из %{smart_count} файла загружено",1:"%{complete} из %{smart_count} файлов загружено",2:"%{complete} из %{smart_count} файлов загружено"},filter:"Фильтр",finishEditingFile:"Закончить редактирование файла",folderAdded:{0:"Добавлен %{smart_count} файл из %{folder}",1:"Добавлено %{smart_count} файла из %{folder}",2:"Добавлено %{smart_count} файлов из %{folder}"},import:"Импортировать",importFrom:"Импортировать из %{name}",loading:"Загрузка...",logOut:"Выйти",myDevice:"Мое устройство",noFilesFound:"Здесь нет файлов или папок",noInternetConnection:"Нет подключения к интернету",pause:"Поставить на паузу",pauseUpload:"Поставить загрузку на паузу",paused:"На паузе",processingXFiles:{0:"Обрабатывается %{smart_count} файл",1:"Обрабатываются %{smart_count} файла",2:"Обрабатываются %{smart_count} файлов"},poweredBy:"Работает на %{uppy}",removeFile:"Удалить файл",resetFilter:"Сбросить фильтр",resume:"Продолжить",resumeUpload:"Продолжить загрузку",retry:"Повторить попытку",retryUpload:"Повторить попытку загрузки",save:"Сохранить",saveChanges:"Сохранить",selectX:{0:"Выбрать %{smart_count}",1:"Выбрать %{smart_count}",2:"Выбрать %{smart_count}"},smile:"Улыбнитесь!",startRecording:"Начать запись видео",stopRecording:"Закончить запись видео",takePicture:"Сделать фотографию",timedOut:"Загрузка остановилась на %{seconds} секунд, отмена",upload:"Загрузить",uploadComplete:"Загрузка завершена",uploadFailed:"Загрузка не удалась",uploadPaused:"Загрузка на паузе",uploadXFiles:{0:"Загрузить %{smart_count} файл",1:"Загрузить %{smart_count} файла",2:"Загрузить %{smart_count} файлов"},uploadXNewFiles:{0:"Загрузить +%{smart_count} файл",1:"Загрузить +%{smart_count} файла",2:"Загрузить +%{smart_count} файлов"},uploading:"Загрузка",uploadingXFiles:{0:"Загружается %{smart_count} файл",1:"Загружается %{smart_count} файла",2:"Загружается %{smart_count} файлов"},xFilesSelected:{0:"%{smart_count} файл выбран",1:"%{smart_count} файла выбрано",2:"%{smart_count} файлов выбрано"},xMoreFilesAdded:{0:"%{smart_count} дополнительный файл добавлен",1:"%{smart_count} дополнительных файла добавлено",2:"%{smart_count} дополнительных файлов добавлено"},xTimeLeft:"осталось %{time}",youCanOnlyUploadFileTypes:"Вы можете загрузить только: %{types}",youCanOnlyUploadX:{0:"Вы можете загрузить только %{smart_count} файл",1:"Вы можете загрузить только %{smart_count} файла",2:"Вы можете загрузить только %{smart_count} файлов"},youHaveToAtLeastSelectX:{0:"Вы должны выбрать хотя бы %{smart_count} файл",1:"Вы должны выбрать хотя бы %{smart_count} файла",2:"Вы должны выбрать хотя бы %{smart_count} файлов"},selectFileNamed:"Выбрать файл %{name}",unselectFileNamed:"Отменить выбор файла %{name}",openFolderNamed:"Открыть папку %{name}"};typeof Uppy<"u"&&(globalThis.Uppy.locales.ru_RU=o);const t=o,r={Language:"Язык",Create:"Создать",Close:"Закрыть",Cancel:"Отмена",Save:"Сохранить",Edit:"Изменить",Crop:"Обрезать","New Folder":"Новая папка","New File":"Новый файл",Rename:"Переименовать",Delete:"Удалить",Upload:"Загрузить",Download:"Скачать",Archive:"Архивировать",Unarchive:"Разархивировать",Open:"Открыть","Open containing folder":"Открыть расположение",Refresh:"Обновить",Preview:"Предпросмотр","Dark Mode":"Тёмный режим","Toggle Full Screen":"Полный экран","Change View":"Изменить вид",Storage:"Хранилище","Go up a directory":"Вверх","Search anything..":"Поиск...",Name:"Название",Size:"Размер",Date:"Дата",Filepath:"Путь до файла",About:"О компоненте","Folder Name":"Название папки","File Name":"Название файла","Move files":"Переместить файлы","Are you sure you want to move these files to?":"Вы уверены, что хотите переместить эти файлы в?","Yes, Move!":"Переместить","Delete files":"Удалить файлы","Yes, Delete!":"Удалить","Upload Files":"Загрузить файлы","No files selected!":"Файлы не выбраны!","Select Files":"Выбрать файлы","Archive the files":"Архивировать файлы","Unarchive the files":"Разархивировать файлы","The archive will be unarchived at":"Архив будет разархивирован в","Archive name. (.zip file will be created)":"Название архива. (будет создан .zip файл)","Vuefinder is a file manager component for vue 3.":"Vuefinder - файловый менеджер, компонент для vue 3.","Create a new folder":"Создать новую папку","Create a new file":"Создать новый файл","Are you sure you want to delete these files?":"Вы уверены, что хотите удалить эти файлы?","This action cannot be undone.":"Это действия нельзя отменить.","Search results for":"Результаты поиска по","item(s) selected.":"выбраны.","%s is renamed.":"%s переименован.","This is a readonly storage.":"Данное хранилище только для чтения.","%s is created.":"%s создан.","Files moved.":"Файлы перемещены.","Files deleted.":"Файлы удалены.","The file unarchived.":"Файл разархивирован","The file(s) archived.":"Файл(-ы) архивированы","Updated.":"Обновлено.","No search result found.":"Ничего не найдено","Are you sure you want to move these files?":"Вы уверены, что хотите переместить эти файлы?","File Size":"Размер файла","Last Modified":"Последнее изменение","Drag&Drop: on":"Drag&Drop: on","Drag&Drop: off":"Drag&Drop: off","Select Folders":"Select Folders","Clear all":"Clear all","Clear only successful":"Clear only successful","Drag and drop the files/folders to here or click here.":"Drag and drop the files/folders to here or click here.","Release to drop these files.":"Release to drop these files.",Canceled:"Canceled",Done:"Done","Network Error, Unable establish connection to the server or interrupted.":"Network Error, Unable establish connection to the server or interrupted.","Pending upload":"Pending","Please select file to upload first.":"Please select file to upload first.","About %s":"О компоненте %s",Settings:"Настройки","Use Metric Units":"Использовать метрические единицы","Saved.":"Сохранено.","Clear Local Storage":"Очистить локальное хранилище",uppy:t};exports.default=r; diff --git a/dist/style.css b/dist/style.css index 66f3b21c..a10414a3 100644 --- a/dist/style.css +++ b/dist/style.css @@ -1 +1 @@ -.vuefinder *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.vuefinder :before,:after{--tw-content: ""}.vuefinder hr{height:0;color:inherit;border-top-width:1px}.vuefinder abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.vuefinder h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}.vuefinder a{color:inherit;text-decoration:inherit}.vuefinder b,strong{font-weight:bolder}.vuefinder code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}.vuefinder small{font-size:80%}.vuefinder sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.vuefinder sub{bottom:-.25em}.vuefinder sup{top:-.5em}.vuefinder table{text-indent:0;border-color:inherit;border-collapse:collapse}.vuefinder button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.vuefinder button,select{text-transform:none}.vuefinder button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.vuefinder :-moz-focusring{outline:auto}.vuefinder :-moz-ui-invalid{box-shadow:none}.vuefinder progress{vertical-align:baseline}.vuefinder ::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}.vuefinder [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.vuefinder ::-webkit-search-decoration{-webkit-appearance:none}.vuefinder ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.vuefinder summary{display:list-item}.vuefinder blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.vuefinder fieldset{margin:0;padding:0}.vuefinder legend{padding:0}.vuefinder ol,ul,menu{list-style:none;margin:0;padding:0}.vuefinder dialog{padding:0}.vuefinder textarea{resize:vertical}.vuefinder input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}.vuefinder input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}.vuefinder button,[role=button]{cursor:pointer}.vuefinder :disabled{cursor:default}.vuefinder img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}.vuefinder img,video{max-width:100%;height:auto}.vuefinder [hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.vuefinder{position:relative}.vuefinder *{touch-action:manipulation}.vf-explorer-selected{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(212 212 212 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(245 245 245 / var(--tw-bg-opacity))!important}:is(.dark .vf-explorer-selected){border-color:rgb(17 24 39 / var(--tw-border-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(30 41 59 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(51 65 85 / var(--tw-bg-opacity))!important}.vf-explorer-selector{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(203 213 225 / var(--tw-bg-opacity))!important;opacity:.5!important}.vuefinder.dark{color-scheme:dark}.vf-scrollbar::-webkit-scrollbar{width:12px}.vf-scrollbar::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}:is(.dark .vf-scrollbar)::-webkit-scrollbar-track-piece{background-color:#0f172a80}.vf-scrollbar::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .vf-scrollbar)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.vf-scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .vf-scrollbar)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vf-scrollbar::-webkit-scrollbar-corner{background-color:transparent}.vuefinder :is(.pointer-events-none){pointer-events:none}.vuefinder :is(.fixed){position:fixed}.vuefinder :is(.absolute){position:absolute}.vuefinder :is(.relative){position:relative}.vuefinder :is(.inset-0){top:0;right:0;bottom:0;left:0}.vuefinder :is(.-top-96){top:-24rem}.vuefinder :is(.bottom-0){bottom:0}.vuefinder :is(.left-1\/2){left:50%}.vuefinder :is(.right-\[-2rem\]){right:-2rem}.vuefinder :is(.top-1\/2){top:50%}.vuefinder :is(.top-4){top:1rem}.vuefinder :is(.-z-50){z-index:-50}.vuefinder :is(.z-0){z-index:0}.vuefinder :is(.z-10){z-index:10}.vuefinder :is(.z-20){z-index:20}.vuefinder :is(.z-30){z-index:30}.vuefinder :is(.col-span-2){grid-column:span 2 / span 2}.vuefinder :is(.col-span-3){grid-column:span 3 / span 3}.vuefinder :is(.col-span-5){grid-column:span 5 / span 5}.vuefinder :is(.col-span-7){grid-column:span 7 / span 7}.vuefinder :is(.m-1){margin:.25rem}.vuefinder :is(.m-auto){margin:auto}.vuefinder :is(.mx-0){margin-left:0;margin-right:0}.vuefinder :is(.mx-0\.5){margin-left:.125rem;margin-right:.125rem}.vuefinder :is(.mx-1){margin-left:.25rem;margin-right:.25rem}.vuefinder :is(.mx-1\.5){margin-left:.375rem;margin-right:.375rem}.vuefinder :is(.mx-2){margin-left:.5rem;margin-right:.5rem}.vuefinder :is(.mx-auto){margin-left:auto;margin-right:auto}.vuefinder :is(.my-0){margin-top:0;margin-bottom:0}.vuefinder :is(.my-0\.5){margin-top:.125rem;margin-bottom:.125rem}.vuefinder :is(.my-1){margin-top:.25rem;margin-bottom:.25rem}.vuefinder :is(.-ml-1){margin-left:-.25rem}.vuefinder :is(.mb-1){margin-bottom:.25rem}.vuefinder :is(.mb-2){margin-bottom:.5rem}.vuefinder :is(.mb-4){margin-bottom:1rem}.vuefinder :is(.ml-1){margin-left:.25rem}.vuefinder :is(.ml-1\.5){margin-left:.375rem}.vuefinder :is(.ml-2){margin-left:.5rem}.vuefinder :is(.ml-3){margin-left:.75rem}.vuefinder :is(.ml-auto){margin-left:auto}.vuefinder :is(.mr-1){margin-right:.25rem}.vuefinder :is(.mr-3){margin-right:.75rem}.vuefinder :is(.mt-2){margin-top:.5rem}.vuefinder :is(.mt-3){margin-top:.75rem}.vuefinder :is(.inline-block){display:inline-block}.vuefinder :is(.flex){display:flex}.vuefinder :is(.inline-flex){display:inline-flex}.vuefinder :is(.grid){display:grid}.vuefinder :is(.\!hidden){display:none!important}.vuefinder :is(.hidden){display:none}.vuefinder :is(.h-10){height:2.5rem}.vuefinder :is(.h-12){height:3rem}.vuefinder :is(.h-20){height:5rem}.vuefinder :is(.h-5){height:1.25rem}.vuefinder :is(.h-6){height:1.5rem}.vuefinder :is(.h-\[120px\]){height:120px}.vuefinder :is(.h-\[60vh\]){height:60vh}.vuefinder :is(.h-fit){height:-moz-fit-content;height:fit-content}.vuefinder :is(.h-full){height:100%}.vuefinder :is(.max-h-\[200px\]){max-height:200px}.vuefinder :is(.max-h-\[50vh\]){max-height:50vh}.vuefinder :is(.max-h-\[60vh\]){max-height:60vh}.vuefinder :is(.min-h-\[150px\]){min-height:150px}.vuefinder :is(.min-h-\[200px\]){min-height:200px}.vuefinder :is(.min-h-full){min-height:100%}.vuefinder :is(.w-10){width:2.5rem}.vuefinder :is(.w-12){width:3rem}.vuefinder :is(.w-5){width:1.25rem}.vuefinder :is(.w-6){width:1.5rem}.vuefinder :is(.w-\[120px\]){width:120px}.vuefinder :is(.w-\[5\.5rem\]){width:5.5rem}.vuefinder :is(.w-full){width:100%}.vuefinder :is(.w-screen){width:100vw}.vuefinder :is(.min-w-max){min-width:-moz-max-content;min-width:max-content}.vuefinder :is(.min-w-min){min-width:-moz-min-content;min-width:min-content}.vuefinder :is(.max-w-\[50vh\]){max-width:50vh}.vuefinder :is(.max-w-fit){max-width:-moz-fit-content;max-width:fit-content}.vuefinder :is(.flex-auto){flex:1 1 auto}.vuefinder :is(.flex-shrink-0){flex-shrink:0}.vuefinder :is(.-translate-x-1\/2){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.vuefinder :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.vuefinder :is(.animate-spin){animation:spin 1s linear infinite}.vuefinder :is(.cursor-default){cursor:default}.vuefinder :is(.cursor-pointer){cursor:pointer}.vuefinder :is(.select-none){-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuefinder :is(.resize-y){resize:vertical}.vuefinder :is(.grid-cols-1){grid-template-columns:repeat(1,minmax(0,1fr))}.vuefinder :is(.grid-cols-12){grid-template-columns:repeat(12,minmax(0,1fr))}.vuefinder :is(.flex-col){flex-direction:column}.vuefinder :is(.items-end){align-items:flex-end}.vuefinder :is(.items-center){align-items:center}.vuefinder :is(.justify-end){justify-content:flex-end}.vuefinder :is(.justify-center){justify-content:center}.vuefinder :is(.justify-between){justify-content:space-between}.vuefinder :is(.overflow-auto){overflow:auto}.vuefinder :is(.overflow-hidden){overflow:hidden}.vuefinder :is(.overflow-y-auto){overflow-y:auto}.vuefinder :is(.overflow-ellipsis){text-overflow:ellipsis}.vuefinder :is(.whitespace-nowrap){white-space:nowrap}.vuefinder :is(.whitespace-pre-wrap){white-space:pre-wrap}.vuefinder :is(.break-all){word-break:break-all}.vuefinder :is(.rounded){border-radius:.25rem}.vuefinder :is(.rounded-full){border-radius:9999px}.vuefinder :is(.rounded-lg){border-radius:.5rem}.vuefinder :is(.rounded-md){border-radius:.375rem}.vuefinder :is(.border){border-width:1px}.vuefinder :is(.border-0){border-width:0px}.vuefinder :is(.border-2){border-width:2px}.vuefinder :is(.border-b){border-bottom-width:1px}.vuefinder :is(.border-l){border-left-width:1px}.vuefinder :is(.border-r){border-right-width:1px}.vuefinder :is(.border-t){border-top-width:1px}.vuefinder :is(.border-dashed){border-style:dashed}.vuefinder :is(.border-gray-200){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.vuefinder :is(.border-gray-300){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.vuefinder :is(.border-lime-600){--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity))}.vuefinder :is(.border-neutral-300){--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.vuefinder :is(.border-red-400){--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.vuefinder :is(.border-transparent){border-color:transparent}.vuefinder :is(.bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.vuefinder :is(.bg-blue-50){--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.vuefinder :is(.bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.vuefinder :is(.bg-blue-700\/75){background-color:#1d4ed8bf}.vuefinder :is(.bg-emerald-100){--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-100){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-200){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-50){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.bg-neutral-100){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder :is(.bg-neutral-50){--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder :is(.bg-red-100){--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.vuefinder :is(.bg-red-600){--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.vuefinder :is(.bg-transparent){background-color:transparent}.vuefinder :is(.bg-white){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.vuefinder :is(.bg-opacity-75){--tw-bg-opacity: .75}.vuefinder :is(.fill-gray-100){fill:#f3f4f6}.vuefinder :is(.fill-sky-100){fill:#e0f2fe}.vuefinder :is(.fill-sky-500){fill:#0ea5e9}.vuefinder :is(.fill-white){fill:#fff}.vuefinder :is(.stroke-blue-600){stroke:#2563eb}.vuefinder :is(.stroke-blue-900){stroke:#1e3a8a}.vuefinder :is(.stroke-gray-200){stroke:#e5e7eb}.vuefinder :is(.stroke-gray-400){stroke:#9ca3af}.vuefinder :is(.stroke-gray-500){stroke:#6b7280}.vuefinder :is(.stroke-neutral-500){stroke:#737373}.vuefinder :is(.stroke-red-600){stroke:#dc2626}.vuefinder :is(.stroke-sky-500){stroke:#0ea5e9}.vuefinder :is(.stroke-slate-500){stroke:#64748b}.vuefinder :is(.p-0){padding:0}.vuefinder :is(.p-0\.5){padding:.125rem}.vuefinder :is(.p-1){padding:.25rem}.vuefinder :is(.p-1\.5){padding:.375rem}.vuefinder :is(.p-2){padding:.5rem}.vuefinder :is(.p-4){padding:1rem}.vuefinder :is(.px-1){padding-left:.25rem;padding-right:.25rem}.vuefinder :is(.px-1\.5){padding-left:.375rem;padding-right:.375rem}.vuefinder :is(.px-2){padding-left:.5rem;padding-right:.5rem}.vuefinder :is(.px-4){padding-left:1rem;padding-right:1rem}.vuefinder :is(.py-0){padding-top:0;padding-bottom:0}.vuefinder :is(.py-0\.5){padding-top:.125rem;padding-bottom:.125rem}.vuefinder :is(.py-1){padding-top:.25rem;padding-bottom:.25rem}.vuefinder :is(.py-1\.5){padding-top:.375rem;padding-bottom:.375rem}.vuefinder :is(.py-2){padding-top:.5rem;padding-bottom:.5rem}.vuefinder :is(.py-3){padding-top:.75rem;padding-bottom:.75rem}.vuefinder :is(.pb-0){padding-bottom:0}.vuefinder :is(.pb-1){padding-bottom:.25rem}.vuefinder :is(.pb-4){padding-bottom:1rem}.vuefinder :is(.pl-1){padding-left:.25rem}.vuefinder :is(.pl-2){padding-left:.5rem}.vuefinder :is(.pr-1){padding-right:.25rem}.vuefinder :is(.pr-8){padding-right:2rem}.vuefinder :is(.pt-1){padding-top:.25rem}.vuefinder :is(.pt-3){padding-top:.75rem}.vuefinder :is(.pt-5){padding-top:1.25rem}.vuefinder :is(.text-left){text-align:left}.vuefinder :is(.text-center){text-align:center}.vuefinder :is(.text-base){font-size:1rem;line-height:1.5rem}.vuefinder :is(.text-lg){font-size:1.125rem;line-height:1.75rem}.vuefinder :is(.text-sm){font-size:.875rem;line-height:1.25rem}.vuefinder :is(.text-xs){font-size:.75rem;line-height:1rem}.vuefinder :is(.font-bold){font-weight:700}.vuefinder :is(.font-medium){font-weight:500}.vuefinder :is(.font-normal){font-weight:400}.vuefinder :is(.leading-5){line-height:1.25rem}.vuefinder :is(.leading-6){line-height:1.5rem}.vuefinder :is(.leading-none){line-height:1}.vuefinder :is(.text-blue-500){--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder :is(.text-emerald-600){--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-700){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-900){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder :is(.text-green-600){--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.vuefinder :is(.text-lime-600){--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity))}.vuefinder :is(.text-neutral-300){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder :is(.text-neutral-500){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.text-neutral-700){--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.vuefinder :is(.text-red-400){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.vuefinder :is(.text-red-500){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.vuefinder :is(.text-red-600){--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder :is(.text-slate-500){--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.vuefinder :is(.text-slate-700){--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder :is(.text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder :is(.text-opacity-50){--tw-text-opacity: .5}.vuefinder :is(.opacity-0){opacity:0}.vuefinder :is(.opacity-25){opacity:.25}.vuefinder :is(.opacity-75){opacity:.75}.vuefinder :is(.shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vuefinder :is(.shadow-sm){--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vuefinder :is(.shadow-xl){--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vuefinder :is(.outline-0){outline-width:0px}.vuefinder :is(.ring-0){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.vuefinder :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.vuefinder :is(.transition-\[width\]){transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder :is(.transition-all){transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder :is(.transition-opacity){transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder :is(.delay-200){transition-delay:.2s}.vuefinder :is(.duration-1000){transition-duration:1s}.vuefinder :is(.duration-300){transition-duration:.3s}.vuefinder :is(.hover\:w-full:hover){width:100%}.vuefinder :is(.hover\:bg-blue-200:hover){--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-gray-100:hover){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-gray-50:hover){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-100:hover){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-200:hover){--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-300:hover){--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-50:hover){--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:stroke-cyan-700:hover){stroke:#0e7490}.vuefinder :is(.hover\:stroke-sky-600:hover){stroke:#0284c7}.vuefinder :is(.hover\:text-red-600:hover){--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder :is(.focus\:border-transparent:focus){border-color:transparent}.vuefinder :is(.focus\:outline-none:focus){outline:2px solid transparent;outline-offset:2px}.vuefinder :is(.focus\:ring-2:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.vuefinder :is(.focus\:ring-indigo-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.vuefinder :is(.focus\:ring-red-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.vuefinder :is(.focus\:ring-transparent:focus){--tw-ring-color: transparent}.vuefinder :is(.focus\:ring-offset-2:focus){--tw-ring-offset-width: 2px}.vuefinder :is(.disabled\:cursor-not-allowed:disabled){cursor:not-allowed}.vuefinder :is(.disabled\:bg-gray-100:disabled){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:border-t){border-top-width:1px}.vuefinder :is(.dark .dark\:border-gray-200){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-gray-700\/50){border-color:#37415180}.vuefinder :is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-red-300){--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:bg-emerald-950){--tw-bg-opacity: 1;background-color:rgb(2 44 34 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-700\/25){background-color:#37415140}.vuefinder :is(.dark .dark\:bg-gray-700\/50){background-color:#37415180}.vuefinder :is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-red-950){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-opacity-75){--tw-bg-opacity: .75}.vuefinder :is(.dark .dark\:fill-gray-400\/20){fill:#9ca3af33}.vuefinder :is(.dark .dark\:fill-gray-700){fill:#374151}.vuefinder :is(.dark .dark\:fill-slate-500){fill:#64748b}.vuefinder :is(.dark .dark\:stroke-blue-100){stroke:#dbeafe}.vuefinder :is(.dark .dark\:stroke-gray-400){stroke:#9ca3af}.vuefinder :is(.dark .dark\:stroke-gray-600){stroke:#4b5563}.vuefinder :is(.dark .dark\:stroke-gray-700){stroke:#374151}.vuefinder :is(.dark .dark\:stroke-red-200){stroke:#fecaca}.vuefinder :is(.dark .dark\:stroke-slate-500){stroke:#64748b}.vuefinder :is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-50){--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-lime-300){--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-200){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-300){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-400){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-50){--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-500){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-slate-200){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:selection\:bg-gray-500 *)::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:selection\:bg-gray-500 *)::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:selection\:bg-gray-500)::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:selection\:bg-gray-500)::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:bg-gray-500:hover){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:bg-gray-600\/75:hover){background-color:#4b5563bf}.vuefinder :is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:bg-gray-700\/10:hover){background-color:#3741511a}.vuefinder :is(.dark .dark\:hover\:bg-gray-700\/50:hover){background-color:#37415180}.vuefinder :is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:stroke-gray-300:hover){stroke:#d1d5db}.vuefinder :is(.dark .dark\:hover\:text-gray-200:hover){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:focus\:border-gray-600:focus){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:focus\:border-transparent:focus){border-color:transparent}.vuefinder :is(.dark .dark\:focus\:ring-gray-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.vuefinder :is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder :is(.dark .dark\:focus\:ring-transparent:focus){--tw-ring-color: transparent}@media (min-width: 640px){.vuefinder :is(.sm\:mx-0){margin-left:0;margin-right:0}.vuefinder :is(.sm\:my-8){margin-top:2rem;margin-bottom:2rem}.vuefinder :is(.sm\:ml-3){margin-left:.75rem}.vuefinder :is(.sm\:ml-4){margin-left:1rem}.vuefinder :is(.sm\:mt-0){margin-top:0}.vuefinder :is(.sm\:flex){display:flex}.vuefinder :is(.sm\:h-10){height:2.5rem}.vuefinder :is(.sm\:w-10){width:2.5rem}.vuefinder :is(.sm\:w-auto){width:auto}.vuefinder :is(.sm\:max-w-4xl){max-width:56rem}.vuefinder :is(.sm\:flex-row-reverse){flex-direction:row-reverse}.vuefinder :is(.sm\:items-start){align-items:flex-start}.vuefinder :is(.sm\:items-center){align-items:center}.vuefinder :is(.sm\:p-0){padding:0}.vuefinder :is(.sm\:p-6){padding:1.5rem}.vuefinder :is(.sm\:px-6){padding-left:1.5rem;padding-right:1.5rem}.vuefinder :is(.sm\:pb-4){padding-bottom:1rem}.vuefinder :is(.sm\:text-left){text-align:left}.vuefinder :is(.sm\:text-sm){font-size:.875rem;line-height:1.25rem}.vuefinder :is(.sm\:text-xs){font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.vuefinder :is(.md\:right-\[-2\.4rem\]){right:-2.4rem}.vuefinder :is(.md\:top-5){top:1.25rem}.vuefinder :is(.md\:block){display:block}.vuefinder :is(.md\:hidden){display:none}.vuefinder :is(.md\:h-12){height:3rem}.vuefinder :is(.md\:h-8){height:2rem}.vuefinder :is(.md\:w-12){width:3rem}.vuefinder :is(.md\:w-24){width:6rem}.vuefinder :is(.md\:w-8){width:2rem}.vuefinder :is(.md\:max-w-2xl){max-width:42rem}}@media (min-width: 1024px){.vuefinder :is(.lg\:max-w-3xl){max-width:48rem}}@media (min-width: 1280px){.vuefinder :is(.xl\:max-w-5xl){max-width:64rem}} +.vuefinder *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.vuefinder :before,:after{--tw-content: ""}.vuefinder hr{height:0;color:inherit;border-top-width:1px}.vuefinder abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.vuefinder h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}.vuefinder a{color:inherit;text-decoration:inherit}.vuefinder b,strong{font-weight:bolder}.vuefinder code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}.vuefinder small{font-size:80%}.vuefinder sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.vuefinder sub{bottom:-.25em}.vuefinder sup{top:-.5em}.vuefinder table{text-indent:0;border-color:inherit;border-collapse:collapse}.vuefinder button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.vuefinder button,select{text-transform:none}.vuefinder button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.vuefinder :-moz-focusring{outline:auto}.vuefinder :-moz-ui-invalid{box-shadow:none}.vuefinder progress{vertical-align:baseline}.vuefinder ::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}.vuefinder [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.vuefinder ::-webkit-search-decoration{-webkit-appearance:none}.vuefinder ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.vuefinder summary{display:list-item}.vuefinder blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.vuefinder fieldset{margin:0;padding:0}.vuefinder legend{padding:0}.vuefinder ol,ul,menu{list-style:none;margin:0;padding:0}.vuefinder dialog{padding:0}.vuefinder textarea{resize:vertical}.vuefinder input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}.vuefinder input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}.vuefinder button,[role=button]{cursor:pointer}.vuefinder :disabled{cursor:default}.vuefinder img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}.vuefinder img,video{max-width:100%;height:auto}.vuefinder [hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.vuefinder{position:relative}.vuefinder *{touch-action:manipulation}.vuefinder :is(.vf-btn){margin-top:.125rem;display:inline-flex;width:100%;justify-content:center;border-radius:.375rem;border-width:1px;padding:.5rem 1rem;font-size:1rem;line-height:1.5rem;font-weight:500;letter-spacing:.025em;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vuefinder :is(.vf-btn:focus){outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-offset-width: 2px}@media (min-width: 640px){.vuefinder :is(.vf-btn){margin-left:.25rem;margin-right:.25rem;width:auto;font-size:.875rem;line-height:1.25rem}}.vuefinder :is(.vf-btn-primary){border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder :is(.vf-btn-primary:hover){--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder :is(.vf-btn-primary:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.vuefinder :is(.dark .vf-btn-primary){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.vuefinder :is(.dark .vf-btn-primary:hover){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vf-btn-secondary){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder :is(.vf-btn-secondary:hover){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder :is(.vf-btn-secondary:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.vuefinder :is(.dark .vf-btn-secondary){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder :is(.dark .vf-btn-secondary:hover){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vf-btn-danger){border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder :is(.vf-btn-danger:hover){--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.vuefinder :is(.vf-btn-danger:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(254 202 202 / var(--tw-ring-opacity));--tw-ring-offset-width: 1px}.vuefinder :is(.dark .vf-btn-danger){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.vuefinder :is(.dark .vf-btn-danger:hover){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.vuefinder :is(.disabled){cursor:not-allowed;opacity:.5}.vf-explorer-selected{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(212 212 212 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(245 245 245 / var(--tw-bg-opacity))!important}:is(.dark .vf-explorer-selected){border-color:rgb(17 24 39 / var(--tw-border-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(30 41 59 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(51 65 85 / var(--tw-bg-opacity))!important}.vf-explorer-selector{border-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity))!important;--tw-bg-opacity: 1 !important;background-color:rgb(203 213 225 / var(--tw-bg-opacity))!important;opacity:.5!important}.vuefinder.dark{color-scheme:dark}.vf-scrollbar::-webkit-scrollbar{width:12px}.vf-scrollbar::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}:is(.dark .vf-scrollbar)::-webkit-scrollbar-track-piece{background-color:#0f172a80}.vf-scrollbar::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .vf-scrollbar)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.vf-scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .vf-scrollbar)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vf-scrollbar::-webkit-scrollbar-corner{background-color:transparent}.vuefinder :is(.pointer-events-none){pointer-events:none}.vuefinder :is(.fixed){position:fixed}.vuefinder :is(.absolute){position:absolute}.vuefinder :is(.relative){position:relative}.vuefinder :is(.inset-0){top:0;right:0;bottom:0;left:0}.vuefinder :is(.-top-96){top:-24rem}.vuefinder :is(.bottom-0){bottom:0}.vuefinder :is(.left-1\/2){left:50%}.vuefinder :is(.right-\[-2rem\]){right:-2rem}.vuefinder :is(.top-1\/2){top:50%}.vuefinder :is(.top-4){top:1rem}.vuefinder :is(.-z-50){z-index:-50}.vuefinder :is(.z-0){z-index:0}.vuefinder :is(.z-10){z-index:10}.vuefinder :is(.z-20){z-index:20}.vuefinder :is(.z-30){z-index:30}.vuefinder :is(.col-span-2){grid-column:span 2 / span 2}.vuefinder :is(.col-span-3){grid-column:span 3 / span 3}.vuefinder :is(.col-span-5){grid-column:span 5 / span 5}.vuefinder :is(.col-span-7){grid-column:span 7 / span 7}.vuefinder :is(.m-1){margin:.25rem}.vuefinder :is(.m-auto){margin:auto}.vuefinder :is(.mx-0){margin-left:0;margin-right:0}.vuefinder :is(.mx-0\.5){margin-left:.125rem;margin-right:.125rem}.vuefinder :is(.mx-1){margin-left:.25rem;margin-right:.25rem}.vuefinder :is(.mx-1\.5){margin-left:.375rem;margin-right:.375rem}.vuefinder :is(.mx-2){margin-left:.5rem;margin-right:.5rem}.vuefinder :is(.mx-auto){margin-left:auto;margin-right:auto}.vuefinder :is(.my-0){margin-top:0;margin-bottom:0}.vuefinder :is(.my-0\.5){margin-top:.125rem;margin-bottom:.125rem}.vuefinder :is(.my-1){margin-top:.25rem;margin-bottom:.25rem}.vuefinder :is(.-ml-1){margin-left:-.25rem}.vuefinder :is(.mb-1){margin-bottom:.25rem}.vuefinder :is(.mb-2){margin-bottom:.5rem}.vuefinder :is(.mb-4){margin-bottom:1rem}.vuefinder :is(.ml-1){margin-left:.25rem}.vuefinder :is(.ml-1\.5){margin-left:.375rem}.vuefinder :is(.ml-2){margin-left:.5rem}.vuefinder :is(.ml-3){margin-left:.75rem}.vuefinder :is(.ml-auto){margin-left:auto}.vuefinder :is(.mr-1){margin-right:.25rem}.vuefinder :is(.mr-3){margin-right:.75rem}.vuefinder :is(.ms-3){margin-inline-start:.75rem}.vuefinder :is(.mt-2){margin-top:.5rem}.vuefinder :is(.mt-3){margin-top:.75rem}.vuefinder :is(.mt-5){margin-top:1.25rem}.vuefinder :is(.block){display:block}.vuefinder :is(.inline-block){display:inline-block}.vuefinder :is(.flex){display:flex}.vuefinder :is(.inline-flex){display:inline-flex}.vuefinder :is(.grid){display:grid}.vuefinder :is(.\!hidden){display:none!important}.vuefinder :is(.hidden){display:none}.vuefinder :is(.h-10){height:2.5rem}.vuefinder :is(.h-12){height:3rem}.vuefinder :is(.h-20){height:5rem}.vuefinder :is(.h-4){height:1rem}.vuefinder :is(.h-5){height:1.25rem}.vuefinder :is(.h-6){height:1.5rem}.vuefinder :is(.h-\[120px\]){height:120px}.vuefinder :is(.h-\[60vh\]){height:60vh}.vuefinder :is(.h-fit){height:-moz-fit-content;height:fit-content}.vuefinder :is(.h-full){height:100%}.vuefinder :is(.max-h-\[200px\]){max-height:200px}.vuefinder :is(.max-h-\[50vh\]){max-height:50vh}.vuefinder :is(.max-h-\[60vh\]){max-height:60vh}.vuefinder :is(.min-h-\[150px\]){min-height:150px}.vuefinder :is(.min-h-\[200px\]){min-height:200px}.vuefinder :is(.min-h-full){min-height:100%}.vuefinder :is(.w-10){width:2.5rem}.vuefinder :is(.w-12){width:3rem}.vuefinder :is(.w-4){width:1rem}.vuefinder :is(.w-5){width:1.25rem}.vuefinder :is(.w-6){width:1.5rem}.vuefinder :is(.w-\[120px\]){width:120px}.vuefinder :is(.w-\[5\.5rem\]){width:5.5rem}.vuefinder :is(.w-full){width:100%}.vuefinder :is(.w-screen){width:100vw}.vuefinder :is(.min-w-max){min-width:-moz-max-content;min-width:max-content}.vuefinder :is(.min-w-min){min-width:-moz-min-content;min-width:min-content}.vuefinder :is(.max-w-\[50vh\]){max-width:50vh}.vuefinder :is(.max-w-fit){max-width:-moz-fit-content;max-width:fit-content}.vuefinder :is(.flex-1){flex:1 1 0%}.vuefinder :is(.flex-auto){flex:1 1 auto}.vuefinder :is(.flex-shrink-0){flex-shrink:0}.vuefinder :is(.-translate-x-1\/2){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.vuefinder :is(.transform){transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.vuefinder :is(.animate-spin){animation:spin 1s linear infinite}.vuefinder :is(.cursor-default){cursor:default}.vuefinder :is(.cursor-pointer){cursor:pointer}.vuefinder :is(.select-none){-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuefinder :is(.resize-y){resize:vertical}.vuefinder :is(.grid-cols-1){grid-template-columns:repeat(1,minmax(0,1fr))}.vuefinder :is(.grid-cols-12){grid-template-columns:repeat(12,minmax(0,1fr))}.vuefinder :is(.flex-col){flex-direction:column}.vuefinder :is(.items-end){align-items:flex-end}.vuefinder :is(.items-center){align-items:center}.vuefinder :is(.justify-end){justify-content:flex-end}.vuefinder :is(.justify-center){justify-content:center}.vuefinder :is(.justify-between){justify-content:space-between}.vuefinder :is(.gap-x-3){-moz-column-gap:.75rem;column-gap:.75rem}.vuefinder :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.vuefinder :is(.overflow-auto){overflow:auto}.vuefinder :is(.overflow-hidden){overflow:hidden}.vuefinder :is(.overflow-y-auto){overflow-y:auto}.vuefinder :is(.overflow-ellipsis){text-overflow:ellipsis}.vuefinder :is(.whitespace-nowrap){white-space:nowrap}.vuefinder :is(.whitespace-pre-wrap){white-space:pre-wrap}.vuefinder :is(.break-all){word-break:break-all}.vuefinder :is(.rounded){border-radius:.25rem}.vuefinder :is(.rounded-full){border-radius:9999px}.vuefinder :is(.rounded-lg){border-radius:.5rem}.vuefinder :is(.rounded-md){border-radius:.375rem}.vuefinder :is(.border){border-width:1px}.vuefinder :is(.border-0){border-width:0px}.vuefinder :is(.border-2){border-width:2px}.vuefinder :is(.border-b){border-bottom-width:1px}.vuefinder :is(.border-l){border-left-width:1px}.vuefinder :is(.border-r){border-right-width:1px}.vuefinder :is(.border-t){border-top-width:1px}.vuefinder :is(.border-dashed){border-style:dashed}.vuefinder :is(.border-gray-200){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.vuefinder :is(.border-gray-300){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.vuefinder :is(.border-lime-600){--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity))}.vuefinder :is(.border-neutral-300){--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.vuefinder :is(.border-red-400){--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.vuefinder :is(.border-transparent){border-color:transparent}.vuefinder :is(.bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.vuefinder :is(.bg-blue-50){--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.vuefinder :is(.bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.vuefinder :is(.bg-blue-700\/75){background-color:#1d4ed8bf}.vuefinder :is(.bg-emerald-100){--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-100){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-200){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-50){--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder :is(.bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.bg-neutral-100){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder :is(.bg-neutral-50){--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder :is(.bg-red-100){--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.vuefinder :is(.bg-transparent){background-color:transparent}.vuefinder :is(.bg-white){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.vuefinder :is(.bg-opacity-75){--tw-bg-opacity: .75}.vuefinder :is(.fill-gray-100){fill:#f3f4f6}.vuefinder :is(.fill-sky-100){fill:#e0f2fe}.vuefinder :is(.fill-sky-500){fill:#0ea5e9}.vuefinder :is(.fill-white){fill:#fff}.vuefinder :is(.stroke-blue-600){stroke:#2563eb}.vuefinder :is(.stroke-blue-900){stroke:#1e3a8a}.vuefinder :is(.stroke-gray-200){stroke:#e5e7eb}.vuefinder :is(.stroke-gray-400){stroke:#9ca3af}.vuefinder :is(.stroke-gray-500){stroke:#6b7280}.vuefinder :is(.stroke-neutral-500){stroke:#737373}.vuefinder :is(.stroke-red-600){stroke:#dc2626}.vuefinder :is(.stroke-sky-500){stroke:#0ea5e9}.vuefinder :is(.stroke-slate-500){stroke:#64748b}.vuefinder :is(.p-0){padding:0}.vuefinder :is(.p-0\.5){padding:.125rem}.vuefinder :is(.p-1){padding:.25rem}.vuefinder :is(.p-1\.5){padding:.375rem}.vuefinder :is(.p-2){padding:.5rem}.vuefinder :is(.p-4){padding:1rem}.vuefinder :is(.px-1){padding-left:.25rem;padding-right:.25rem}.vuefinder :is(.px-1\.5){padding-left:.375rem;padding-right:.375rem}.vuefinder :is(.px-2){padding-left:.5rem;padding-right:.5rem}.vuefinder :is(.px-4){padding-left:1rem;padding-right:1rem}.vuefinder :is(.py-0){padding-top:0;padding-bottom:0}.vuefinder :is(.py-0\.5){padding-top:.125rem;padding-bottom:.125rem}.vuefinder :is(.py-1){padding-top:.25rem;padding-bottom:.25rem}.vuefinder :is(.py-1\.5){padding-top:.375rem;padding-bottom:.375rem}.vuefinder :is(.py-2){padding-top:.5rem;padding-bottom:.5rem}.vuefinder :is(.py-3){padding-top:.75rem;padding-bottom:.75rem}.vuefinder :is(.pb-0){padding-bottom:0}.vuefinder :is(.pb-1){padding-bottom:.25rem}.vuefinder :is(.pb-4){padding-bottom:1rem}.vuefinder :is(.pl-1){padding-left:.25rem}.vuefinder :is(.pl-2){padding-left:.5rem}.vuefinder :is(.pr-1){padding-right:.25rem}.vuefinder :is(.pr-8){padding-right:2rem}.vuefinder :is(.pt-1){padding-top:.25rem}.vuefinder :is(.pt-3){padding-top:.75rem}.vuefinder :is(.pt-5){padding-top:1.25rem}.vuefinder :is(.text-left){text-align:left}.vuefinder :is(.text-center){text-align:center}.vuefinder :is(.text-base){font-size:1rem;line-height:1.5rem}.vuefinder :is(.text-lg){font-size:1.125rem;line-height:1.75rem}.vuefinder :is(.text-sm){font-size:.875rem;line-height:1.25rem}.vuefinder :is(.text-xs){font-size:.75rem;line-height:1rem}.vuefinder :is(.font-bold){font-weight:700}.vuefinder :is(.font-medium){font-weight:500}.vuefinder :is(.font-normal){font-weight:400}.vuefinder :is(.font-semibold){font-weight:600}.vuefinder :is(.leading-5){line-height:1.25rem}.vuefinder :is(.leading-6){line-height:1.5rem}.vuefinder :is(.leading-none){line-height:1}.vuefinder :is(.tracking-wider){letter-spacing:.05em}.vuefinder :is(.text-blue-500){--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder :is(.text-emerald-600){--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-700){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder :is(.text-gray-900){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder :is(.text-green-600){--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.vuefinder :is(.text-indigo-600){--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.vuefinder :is(.text-lime-600){--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity))}.vuefinder :is(.text-neutral-300){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder :is(.text-neutral-500){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.text-neutral-700){--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.vuefinder :is(.text-red-400){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.vuefinder :is(.text-red-500){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.vuefinder :is(.text-red-600){--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder :is(.text-slate-500){--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.vuefinder :is(.text-slate-700){--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder :is(.text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder :is(.text-opacity-50){--tw-text-opacity: .5}.vuefinder :is(.opacity-0){opacity:0}.vuefinder :is(.opacity-25){opacity:.25}.vuefinder :is(.opacity-75){opacity:.75}.vuefinder :is(.shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vuefinder :is(.shadow-sm){--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vuefinder :is(.shadow-xl){--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.vuefinder :is(.outline-0){outline-width:0px}.vuefinder :is(.ring-0){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.vuefinder :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.vuefinder :is(.transition-\[width\]){transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder :is(.transition-all){transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder :is(.transition-opacity){transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder :is(.delay-200){transition-delay:.2s}.vuefinder :is(.duration-1000){transition-duration:1s}.vuefinder :is(.duration-300){transition-duration:.3s}.vuefinder :is(.duration-500){transition-duration:.5s}.vuefinder :is(.ease-out){transition-timing-function:cubic-bezier(0,0,.2,1)}.vuefinder :is(.hover\:w-full:hover){width:100%}.vuefinder :is(.hover\:bg-blue-200:hover){--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-gray-100:hover){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-100:hover){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-200:hover){--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-300:hover){--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:bg-neutral-50:hover){--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder :is(.hover\:stroke-cyan-700:hover){stroke:#0e7490}.vuefinder :is(.hover\:stroke-sky-600:hover){stroke:#0284c7}.vuefinder :is(.hover\:text-red-600:hover){--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder :is(.focus\:border-transparent:focus){border-color:transparent}.vuefinder :is(.focus\:outline-none:focus){outline:2px solid transparent;outline-offset:2px}.vuefinder :is(.focus\:ring-indigo-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.vuefinder :is(.focus\:ring-transparent:focus){--tw-ring-color: transparent}.vuefinder :is(.disabled\:bg-gray-100:disabled){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:border-t){border-top-width:1px}.vuefinder :is(.dark .dark\:border-gray-200){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-gray-700\/50){border-color:#37415180}.vuefinder :is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:border-red-300){--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:bg-emerald-950){--tw-bg-opacity: 1;background-color:rgb(2 44 34 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-gray-700\/25){background-color:#37415140}.vuefinder :is(.dark .dark\:bg-gray-700\/50){background-color:#37415180}.vuefinder :is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-red-950){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:bg-opacity-75){--tw-bg-opacity: .75}.vuefinder :is(.dark .dark\:fill-gray-400\/20){fill:#9ca3af33}.vuefinder :is(.dark .dark\:fill-gray-700){fill:#374151}.vuefinder :is(.dark .dark\:fill-slate-500){fill:#64748b}.vuefinder :is(.dark .dark\:stroke-blue-100){stroke:#dbeafe}.vuefinder :is(.dark .dark\:stroke-gray-400){stroke:#9ca3af}.vuefinder :is(.dark .dark\:stroke-gray-600){stroke:#4b5563}.vuefinder :is(.dark .dark\:stroke-gray-700){stroke:#374151}.vuefinder :is(.dark .dark\:stroke-red-200){stroke:#fecaca}.vuefinder :is(.dark .dark\:stroke-slate-500){stroke:#64748b}.vuefinder :is(.dark .dark\:text-gray-100){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-50){--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-green-600){--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-lime-300){--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-200){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-300){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-400){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-50){--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-neutral-500){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:text-slate-200){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:accent-slate-400){accent-color:#94a3b8}.vuefinder :is(.dark .dark\:opacity-75){opacity:.75}.vuefinder :is(.dark .dark\:selection\:bg-gray-500 *)::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:selection\:bg-gray-500 *)::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:selection\:bg-gray-500)::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:selection\:bg-gray-500)::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:bg-gray-500:hover){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:bg-gray-700\/10:hover){background-color:#3741511a}.vuefinder :is(.dark .dark\:hover\:bg-gray-700\/50:hover){background-color:#37415180}.vuefinder :is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder :is(.dark .dark\:hover\:stroke-gray-300:hover){stroke:#d1d5db}.vuefinder :is(.dark .dark\:hover\:text-gray-200:hover){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder :is(.dark .dark\:focus\:border-gray-600:focus){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder :is(.dark .dark\:focus\:border-transparent:focus){border-color:transparent}.vuefinder :is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder :is(.dark .dark\:focus\:ring-transparent:focus){--tw-ring-color: transparent}@media (min-width: 640px){.vuefinder :is(.sm\:mx-0){margin-left:0;margin-right:0}.vuefinder :is(.sm\:my-8){margin-top:2rem;margin-bottom:2rem}.vuefinder :is(.sm\:ml-3){margin-left:.75rem}.vuefinder :is(.sm\:ml-4){margin-left:1rem}.vuefinder :is(.sm\:mt-0){margin-top:0}.vuefinder :is(.sm\:flex){display:flex}.vuefinder :is(.sm\:h-10){height:2.5rem}.vuefinder :is(.sm\:w-10){width:2.5rem}.vuefinder :is(.sm\:w-auto){width:auto}.vuefinder :is(.sm\:max-w-4xl){max-width:56rem}.vuefinder :is(.sm\:flex-row-reverse){flex-direction:row-reverse}.vuefinder :is(.sm\:items-start){align-items:flex-start}.vuefinder :is(.sm\:items-center){align-items:center}.vuefinder :is(.sm\:p-0){padding:0}.vuefinder :is(.sm\:p-6){padding:1.5rem}.vuefinder :is(.sm\:px-6){padding-left:1.5rem;padding-right:1.5rem}.vuefinder :is(.sm\:pb-4){padding-bottom:1rem}.vuefinder :is(.sm\:text-left){text-align:left}.vuefinder :is(.sm\:text-sm){font-size:.875rem;line-height:1.25rem}.vuefinder :is(.sm\:text-xs){font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.vuefinder :is(.md\:right-\[-2\.4rem\]){right:-2.4rem}.vuefinder :is(.md\:top-5){top:1.25rem}.vuefinder :is(.md\:block){display:block}.vuefinder :is(.md\:hidden){display:none}.vuefinder :is(.md\:h-12){height:3rem}.vuefinder :is(.md\:h-8){height:2rem}.vuefinder :is(.md\:w-12){width:3rem}.vuefinder :is(.md\:w-24){width:6rem}.vuefinder :is(.md\:w-8){width:2rem}.vuefinder :is(.md\:max-w-2xl){max-width:42rem}}@media (min-width: 1024px){.vuefinder :is(.lg\:max-w-3xl){max-width:48rem}}@media (min-width: 1280px){.vuefinder :is(.xl\:max-w-5xl){max-width:64rem}} diff --git a/dist/sv-0c0f15f4.js b/dist/sv-07e3c393.js similarity index 90% rename from dist/sv-0c0f15f4.js rename to dist/sv-07e3c393.js index b402ba8d..ddca1166 100644 --- a/dist/sv-0c0f15f4.js +++ b/dist/sv-07e3c393.js @@ -131,7 +131,7 @@ e.strings = { } }; typeof Uppy < "u" && (globalThis.Uppy.locales.sv_SE = e); -const r = e, l = { +const l = e, r = { Language: "Språk", Create: "Skapa", Close: "Stäng", @@ -197,8 +197,23 @@ const r = e, l = { "Last Modified": "Senast ändrad", "Drag&Drop: on": "Dra och släpp: på", "Drag&Drop: off": "Dra och släpp: av", - uppy: r + "Select Folders": "Välj mappar", + "Clear all": "Rensa alla", + "Clear only successful": "Rensa endast lyckade", + "Drag and drop the files/folders to here or click here.": "Dra och släpp filerna/mapparna hit eller klicka här.", + "Release to drop these files.": "Släpp för att lägga till dessa filer.", + Canceled: "Avbruten", + Done: "Klar", + "Network Error, Unable establish connection to the server or interrupted.": "Nätverksfel, kan inte upprätta anslutning till servern eller avbruten.", + "Pending upload": "Väntar på uppladdning", + "Please select file to upload first.": "Välj fil att ladda upp först.", + "About %s": "Om %s", + Settings: "Inställningar", + "Use Metric Units": "Använd metriska enheter", + "Saved.": "Sparad.", + "Clear Local Storage": "Rensa lokal lagring", + uppy: l }; export { - l as default + r as default }; diff --git a/dist/sv-51dc5883.cjs b/dist/sv-acbe2c28.cjs similarity index 88% rename from dist/sv-51dc5883.cjs rename to dist/sv-acbe2c28.cjs index 7f92fda7..c243b708 100644 --- a/dist/sv-51dc5883.cjs +++ b/dist/sv-acbe2c28.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(a){return a===1?0:1}};e.strings={addMore:"Lägg till",addMoreFiles:"Lägg till filer",addingMoreFiles:"Lägger till fler filer",allowAccessDescription:"För att kunna ta bilder eller spela in video behöver du ge sidan behörighet att använda din kamera.",allowAccessTitle:"Tillåt användning av kameran",authenticateWith:"Anslut till %{pluginName}",authenticateWithTitle:"Anslut till %{pluginName} för att välja filer",back:"Tillbaka",browse:"bläddra",browseFiles:"bläddra",cancel:"Avbryt",cancelUpload:"Avbryt uppladdning",chooseFiles:"Välj filer",closeModal:"Stäng fönster",companionError:"Anslutning till Companion misslyckades",complete:"Klart",connectedToInternet:"Ansluten till internet",copyLink:"Kopiera länk",copyLinkToClipboardFallback:"Kopiera länken nedanför",copyLinkToClipboardSuccess:"Länken kopierad till urklipp",creatingAssembly:"Förbereder uppladdning...",creatingAssemblyFailed:"Transloadit: Kunde inte skapa Assembly",dashboardTitle:"Filuppladdare",dashboardWindowTitle:"Uppladdningsfönster (Tryck på Esc-tangenten för att stänga)",dataUploadedOfTotal:"%{complete} av %{total}",done:"Klart",dropHereOr:"Släpp filer här eller %{browse}",dropHint:"Släpp dina filer här",dropPasteBoth:"Släpp filer här, klistra in eller %{browse}",dropPasteFiles:"Släpp filer här, klistra in eller %{browse}",dropPasteFolders:"Släpp filer här, klistra in eller %{browse}",dropPasteImportBoth:"Släpp filer här, klistra in, %{browse} eller importera från",dropPasteImportFiles:"Släpp filer här, klistra in, %{browse} eller importera från",dropPasteImportFolders:"Släpp filer här, klistra in, %{browse} eller importera från",editFile:"Redigera fil",editing:"Redigerar %{file}",emptyFolderAdded:"Inga filer lades till från en tom mapp",encoding:"Kodar...",enterCorrectUrl:"Ogiltig URL: Kontrollera att adressen du anger är en direktlänk till en fil.",enterUrlToImport:"Ange URL för att importera en fil",exceedsSize:"Storleken på filen överstiger den tillåtna maxgränsen på %{size}",failedToFetch:"Companion kunde inte ladda ner filen, kontrollera att adressen är korrekt",failedToUpload:"Kunde inte ladda upp %{file}",fileSource:"Källa: %{name}",filesUploadedOfTotal:{0:"%{complete} av %{smart_count} fil uppladdad",1:"%{complete} av %{smart_count} filer uppladdade"},filter:"Filtrera",finishEditingFile:"Avsluta redigering av filen",folderAdded:{0:"La till %{smart_count} fil från %{folder}",1:"La till %{smart_count} filer från %{folder}"},import:"Importera",importFrom:"Importera från %{name}",loading:"Laddar...",logOut:"Logga ut",myDevice:"Min enhet",noFilesFound:"Du har inga filer eller mappar här",noInternetConnection:"Ingen internetuppkoppling",openFolderNamed:"Öppna mappen %{name}",pause:"Pausa",pauseUpload:"Pausa uppladdning",paused:"Pausad",poweredBy:"Drivs av %{uppy}",processingXFiles:{0:"Processerar %{smart_count} fil",1:"Processerar %{smart_count} filer"},removeFile:"Ta bort fil",resetFilter:"Nollställ filter",resume:"Återuppta",resumeUpload:"Återuppta uppladdning",retry:"Försök igen",retryUpload:"Försök igen",saveChanges:"Spara ändringar",selectFileNamed:"Välj fil %{name}",selectX:{0:"Välj %{smart_count}",1:"Välj %{smart_count}"},smile:"Säg omelett!",startRecording:"Starta inspelning",stopRecording:"Avbryt inspelning",takePicture:"Ta bild",timedOut:"Uppladdningen har stått stilla i %{seconds} sekunder; avbryter.",unselectFileNamed:"Avmarkera filen %{name}",upload:"Ladda upp",uploadComplete:"Uppladdning slutförd",uploadFailed:"Uppladdning misslyckad",uploadPaused:"Uppladdning pausad",uploadXFiles:{0:"Ladda upp %{smart_count} fil",1:"Ladda upp %{smart_count} filer"},uploadXNewFiles:{0:"Ladda upp %{smart_count} fil",1:"Ladda upp %{smart_count} filer"},uploading:"Laddar upp",uploadingXFiles:{0:"Ladda upp %{smart_count} fil",1:"Ladda upp %{smart_count} filer"},xFilesSelected:{0:"%{smart_count} fil vald",1:"%{smart_count} filer valda"},xMoreFilesAdded:{0:"%{smart_count} fil tillagd",1:"%{smart_count} filer tillagda"},xTimeLeft:"%{time} återstår",youCanOnlyUploadFileTypes:"Du kan endast ladda upp: %{types}",youCanOnlyUploadX:{0:"Du kan endast ladda upp %{smart_count} fil",1:"Du kan endast ladda upp %{smart_count} filer"},youHaveToAtLeastSelectX:{0:"Du måste välja minst %{smart_count} fil",1:"Du måste välja minst %{smart_count} filer"}};typeof Uppy<"u"&&(globalThis.Uppy.locales.sv_SE=e);const r=e,l={Language:"Språk",Create:"Skapa",Close:"Stäng",Cancel:"Avbryt",Save:"Spara",Edit:"Redigera",Crop:"Beskära","New Folder":"Ny mapp","New File":"Ny fil",Rename:"Byt namn",Delete:"Radera",Upload:"Ladda upp",Download:"Ladda ner",Archive:"Arkivera",Unarchive:"Avarkivera",Open:"Öppna","Open containing folder":"Öppna innehållande mapp",Refresh:"Uppdatera",Preview:"Förhandsgranska","Dark Mode":"Mörkt läge","Toggle Full Screen":"Växla till helskärm","Change View":"Ändra vy",Storage:"Lagring","Go up a directory":"Gå upp en katalog","Search anything..":"Sök överallt..",Name:"Namn",Size:"Storlek",Date:"Datum",Filepath:"Filväg",About:"Om","Folder Name":"Mappnamn","File Name":"Filnamn","Move files":"Flytta filer","Are you sure you want to move these files to?":"Är du säker på att du vill flytta dessa filer?","Yes, Move!":"Ja, flytta!","Delete files":"Radera filer","Yes, Delete!":"Ja, radera!","Upload Files":"Ladda upp filer","No files selected!":"Inga filer valda!","Select Files":"Välj filer","Archive the files":"Arkivera filer","Unarchive the files":"Avarkivera filer","The archive will be unarchived at":"Arkivet kommer att avarkiveras i","Archive name. (.zip file will be created)":"Arkivnamn. (.zip-fil kommer att skapas)","Vuefinder is a file manager component for vue 3.":"Vuefinder är en filhanteringskomponent för Vue 3.","Create a new folder":"Skapa en ny mapp","Create a new file":"Skapa en ny fil","Are you sure you want to delete these files?":"Är du säker på att du vill radera dessa filer?","This action cannot be undone.":"Denna åtgärd kan inte ångras.","Search results for":"Sökresultat för","item(s) selected.":"objekt valda.","%s is renamed.":"%s har fått ett nytt namn.","This is a readonly storage.":"Detta är en skrivskyddad lagring.","%s is created.":"%s har skapats.","Files moved.":"Filerna har flyttats.","Files deleted.":"Filerna har raderats.","The file unarchived.":"Filen har avarkiverats.","The file(s) archived.":"Filen/filerna har arkiverats.","Updated.":"Uppdaterad.","No search result found.":"Inget sökresultat hittades.","Are you sure you want to move these files?":"Är du säker på att du vill flytta dessa filer?","File Size":"Filstorlek","Last Modified":"Senast ändrad","Drag&Drop: on":"Dra och släpp: på","Drag&Drop: off":"Dra och släpp: av",uppy:r};exports.default=l; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(a){return a===1?0:1}};e.strings={addMore:"Lägg till",addMoreFiles:"Lägg till filer",addingMoreFiles:"Lägger till fler filer",allowAccessDescription:"För att kunna ta bilder eller spela in video behöver du ge sidan behörighet att använda din kamera.",allowAccessTitle:"Tillåt användning av kameran",authenticateWith:"Anslut till %{pluginName}",authenticateWithTitle:"Anslut till %{pluginName} för att välja filer",back:"Tillbaka",browse:"bläddra",browseFiles:"bläddra",cancel:"Avbryt",cancelUpload:"Avbryt uppladdning",chooseFiles:"Välj filer",closeModal:"Stäng fönster",companionError:"Anslutning till Companion misslyckades",complete:"Klart",connectedToInternet:"Ansluten till internet",copyLink:"Kopiera länk",copyLinkToClipboardFallback:"Kopiera länken nedanför",copyLinkToClipboardSuccess:"Länken kopierad till urklipp",creatingAssembly:"Förbereder uppladdning...",creatingAssemblyFailed:"Transloadit: Kunde inte skapa Assembly",dashboardTitle:"Filuppladdare",dashboardWindowTitle:"Uppladdningsfönster (Tryck på Esc-tangenten för att stänga)",dataUploadedOfTotal:"%{complete} av %{total}",done:"Klart",dropHereOr:"Släpp filer här eller %{browse}",dropHint:"Släpp dina filer här",dropPasteBoth:"Släpp filer här, klistra in eller %{browse}",dropPasteFiles:"Släpp filer här, klistra in eller %{browse}",dropPasteFolders:"Släpp filer här, klistra in eller %{browse}",dropPasteImportBoth:"Släpp filer här, klistra in, %{browse} eller importera från",dropPasteImportFiles:"Släpp filer här, klistra in, %{browse} eller importera från",dropPasteImportFolders:"Släpp filer här, klistra in, %{browse} eller importera från",editFile:"Redigera fil",editing:"Redigerar %{file}",emptyFolderAdded:"Inga filer lades till från en tom mapp",encoding:"Kodar...",enterCorrectUrl:"Ogiltig URL: Kontrollera att adressen du anger är en direktlänk till en fil.",enterUrlToImport:"Ange URL för att importera en fil",exceedsSize:"Storleken på filen överstiger den tillåtna maxgränsen på %{size}",failedToFetch:"Companion kunde inte ladda ner filen, kontrollera att adressen är korrekt",failedToUpload:"Kunde inte ladda upp %{file}",fileSource:"Källa: %{name}",filesUploadedOfTotal:{0:"%{complete} av %{smart_count} fil uppladdad",1:"%{complete} av %{smart_count} filer uppladdade"},filter:"Filtrera",finishEditingFile:"Avsluta redigering av filen",folderAdded:{0:"La till %{smart_count} fil från %{folder}",1:"La till %{smart_count} filer från %{folder}"},import:"Importera",importFrom:"Importera från %{name}",loading:"Laddar...",logOut:"Logga ut",myDevice:"Min enhet",noFilesFound:"Du har inga filer eller mappar här",noInternetConnection:"Ingen internetuppkoppling",openFolderNamed:"Öppna mappen %{name}",pause:"Pausa",pauseUpload:"Pausa uppladdning",paused:"Pausad",poweredBy:"Drivs av %{uppy}",processingXFiles:{0:"Processerar %{smart_count} fil",1:"Processerar %{smart_count} filer"},removeFile:"Ta bort fil",resetFilter:"Nollställ filter",resume:"Återuppta",resumeUpload:"Återuppta uppladdning",retry:"Försök igen",retryUpload:"Försök igen",saveChanges:"Spara ändringar",selectFileNamed:"Välj fil %{name}",selectX:{0:"Välj %{smart_count}",1:"Välj %{smart_count}"},smile:"Säg omelett!",startRecording:"Starta inspelning",stopRecording:"Avbryt inspelning",takePicture:"Ta bild",timedOut:"Uppladdningen har stått stilla i %{seconds} sekunder; avbryter.",unselectFileNamed:"Avmarkera filen %{name}",upload:"Ladda upp",uploadComplete:"Uppladdning slutförd",uploadFailed:"Uppladdning misslyckad",uploadPaused:"Uppladdning pausad",uploadXFiles:{0:"Ladda upp %{smart_count} fil",1:"Ladda upp %{smart_count} filer"},uploadXNewFiles:{0:"Ladda upp %{smart_count} fil",1:"Ladda upp %{smart_count} filer"},uploading:"Laddar upp",uploadingXFiles:{0:"Ladda upp %{smart_count} fil",1:"Ladda upp %{smart_count} filer"},xFilesSelected:{0:"%{smart_count} fil vald",1:"%{smart_count} filer valda"},xMoreFilesAdded:{0:"%{smart_count} fil tillagd",1:"%{smart_count} filer tillagda"},xTimeLeft:"%{time} återstår",youCanOnlyUploadFileTypes:"Du kan endast ladda upp: %{types}",youCanOnlyUploadX:{0:"Du kan endast ladda upp %{smart_count} fil",1:"Du kan endast ladda upp %{smart_count} filer"},youHaveToAtLeastSelectX:{0:"Du måste välja minst %{smart_count} fil",1:"Du måste välja minst %{smart_count} filer"}};typeof Uppy<"u"&&(globalThis.Uppy.locales.sv_SE=e);const l=e,r={Language:"Språk",Create:"Skapa",Close:"Stäng",Cancel:"Avbryt",Save:"Spara",Edit:"Redigera",Crop:"Beskära","New Folder":"Ny mapp","New File":"Ny fil",Rename:"Byt namn",Delete:"Radera",Upload:"Ladda upp",Download:"Ladda ner",Archive:"Arkivera",Unarchive:"Avarkivera",Open:"Öppna","Open containing folder":"Öppna innehållande mapp",Refresh:"Uppdatera",Preview:"Förhandsgranska","Dark Mode":"Mörkt läge","Toggle Full Screen":"Växla till helskärm","Change View":"Ändra vy",Storage:"Lagring","Go up a directory":"Gå upp en katalog","Search anything..":"Sök överallt..",Name:"Namn",Size:"Storlek",Date:"Datum",Filepath:"Filväg",About:"Om","Folder Name":"Mappnamn","File Name":"Filnamn","Move files":"Flytta filer","Are you sure you want to move these files to?":"Är du säker på att du vill flytta dessa filer?","Yes, Move!":"Ja, flytta!","Delete files":"Radera filer","Yes, Delete!":"Ja, radera!","Upload Files":"Ladda upp filer","No files selected!":"Inga filer valda!","Select Files":"Välj filer","Archive the files":"Arkivera filer","Unarchive the files":"Avarkivera filer","The archive will be unarchived at":"Arkivet kommer att avarkiveras i","Archive name. (.zip file will be created)":"Arkivnamn. (.zip-fil kommer att skapas)","Vuefinder is a file manager component for vue 3.":"Vuefinder är en filhanteringskomponent för Vue 3.","Create a new folder":"Skapa en ny mapp","Create a new file":"Skapa en ny fil","Are you sure you want to delete these files?":"Är du säker på att du vill radera dessa filer?","This action cannot be undone.":"Denna åtgärd kan inte ångras.","Search results for":"Sökresultat för","item(s) selected.":"objekt valda.","%s is renamed.":"%s har fått ett nytt namn.","This is a readonly storage.":"Detta är en skrivskyddad lagring.","%s is created.":"%s har skapats.","Files moved.":"Filerna har flyttats.","Files deleted.":"Filerna har raderats.","The file unarchived.":"Filen har avarkiverats.","The file(s) archived.":"Filen/filerna har arkiverats.","Updated.":"Uppdaterad.","No search result found.":"Inget sökresultat hittades.","Are you sure you want to move these files?":"Är du säker på att du vill flytta dessa filer?","File Size":"Filstorlek","Last Modified":"Senast ändrad","Drag&Drop: on":"Dra och släpp: på","Drag&Drop: off":"Dra och släpp: av","Select Folders":"Välj mappar","Clear all":"Rensa alla","Clear only successful":"Rensa endast lyckade","Drag and drop the files/folders to here or click here.":"Dra och släpp filerna/mapparna hit eller klicka här.","Release to drop these files.":"Släpp för att lägga till dessa filer.",Canceled:"Avbruten",Done:"Klar","Network Error, Unable establish connection to the server or interrupted.":"Nätverksfel, kan inte upprätta anslutning till servern eller avbruten.","Pending upload":"Väntar på uppladdning","Please select file to upload first.":"Välj fil att ladda upp först.","About %s":"Om %s",Settings:"Inställningar","Use Metric Units":"Använd metriska enheter","Saved.":"Sparad.","Clear Local Storage":"Rensa lokal lagring",uppy:l};exports.default=r; diff --git a/dist/tr-3c939bbd.cjs b/dist/tr-2fed3777.cjs similarity index 88% rename from dist/tr-3c939bbd.cjs rename to dist/tr-2fed3777.cjs index fcf12e7d..14914d2c 100644 --- a/dist/tr-3c939bbd.cjs +++ b/dist/tr-2fed3777.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(a){return a===1?0:1}};e.strings={addMore:"Daha ekle",addMoreFiles:"Daha fazla dosya ekle",addingMoreFiles:"Daha fazla dosya ekleniyor",allowAccessDescription:"Kameranızla fotoğraf çekmek veya video kaydetmek için lütfen erişim izni verin.",allowAccessTitle:"Lütfen kameranıza erişim izni verin",authenticateWith:"%{pluginName} ile bağlan",authenticateWithTitle:"Lütfen dosyaları seçmek için %{pluginName} ile bağlanın",back:"Geri",browse:"gözat",browseFiles:"gözat",cancel:"İptal",cancelUpload:"Yüklemeyi İptal Et",chooseFiles:"Dosyaları seç",closeModal:"Kapat",companionError:"Bağlantı başarısız",complete:"Yüklendi",connectedToInternet:"İnternete bağlanıldı",copyLink:"Linki kopyala",copyLinkToClipboardFallback:"Aşağıdaki linki kopyala",copyLinkToClipboardSuccess:"Link panoya kopyalandı",creatingAssembly:"Yüklemeye hazırlanıyor...",creatingAssemblyFailed:"Transloadit: Yükleme oluşturulamadı",dashboardTitle:"Dosya Yükle",dashboardWindowTitle:"Dosya Yükle (Kapatmak için Esc)",dataUploadedOfTotal:"%{complete} / %{total}",done:"Bitti",dropHereOr:"Sürükleyip bırak veya %{browse}",dropHint:"Buraya sürükleyip bırakın",dropPasteBoth:"Sürükleyip bırak, yapıştır veya %{browse}",dropPasteFiles:"Sürükleyip bırak, yapıştır veya %{browse}",dropPasteFolders:"Sürükleyip bırak, yapıştır veya %{browse}",dropPasteImportBoth:"Sürükleyip bırak, yapıştır, %{browse} veya içeri aktar",dropPasteImportFiles:"Sürükleyip bırak, yapıştır, %{browse} veya içeri aktar",dropPasteImportFolders:"Sürükleyip bırak, yapıştır, %{browse} veya içeri aktar",editFile:"Dosyayı düzenle",editing:"%{file} düzenleniyor",emptyFolderAdded:"Klasör boş",encoding:"Çözümleniyor...",enterCorrectUrl:"Hatalı URL: Lütfen bir dosyaya doğrudan bağlantı girdiğinizden emin olun.",enterUrlToImport:"Dosya URL’sini buraya yapıştırın",exceedsSize:"Bu dosya izin verilen maksimum boyutu aşıyor %{size}",failedToFetch:"Bu URL’den alınamadı, lütfen doğru olduğundan emin olun",failedToUpload:"%{file} dosyası yüklenemedi",fileSource:"Dosya kaynağı: %{name}",filesUploadedOfTotal:{0:"%{complete} / %{smart_count} dosya yüklendi",1:"%{complete} / %{smart_count} dosya yüklendi"},filter:"Filtre",finishEditingFile:"Düzenlemeyi bitir",folderAdded:{0:"%{folder} klasöründen %{smart_count} dosya eklendi",1:"%{folder} klasöründen %{smart_count} dosya eklendi"},import:"Ekle",importFrom:"%{name} Ekle",loading:"Yükleniyor...",logOut:"Çıkış",myDevice:"Dosyalarım",noFilesFound:"Dosya veya klasör bulunamadı",noInternetConnection:"İnternet bağlantınız yok",pause:"Durdur",pauseUpload:"Yükleme Durdu",paused:"Durdu",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"%{smart_count} dosya işleniyor",1:"%{smart_count} dosya işleniyor"},removeFile:"Dosyayı kaldır",resetFilter:"Filtreyi temizle",resume:"Devam Et",resumeUpload:"Yüklemeye devam et",retry:"Tekrar",retryUpload:"Tekrar yükle",saveChanges:"Değişiklikleri kaydet",selectX:{0:"%{smart_count} seç",1:"%{smart_count} seç"},smile:"Gülümse!",startRecording:"Video kaydına başla",stopRecording:"Video kaydını durdur",takePicture:"Fotoğraf çek",timedOut:"Yükleme işlemi %{seconds} saniyeden fazla sürdüğü için iptal edildi.",upload:"Yükle",uploadComplete:"Yükleme tamamlandı",uploadFailed:"Yükleme başarısız",uploadPaused:"Yükleme durduruldu",uploadXFiles:{0:"%{smart_count} dosyayı yükle",1:"%{smart_count} dosyayı yükle"},uploadXNewFiles:{0:"+%{smart_count} dosyayı yükle",1:"+%{smart_count} dosyayı yükle"},uploading:"Yükleniyor",uploadingXFiles:{0:"%{smart_count} dosya yükleniyor",1:"%{smart_count} dosya yükleniyor"},xFilesSelected:{0:"%{smart_count} dosya seçildi",1:"%{smart_count} dosya seçildi"},xMoreFilesAdded:{0:"%{smart_count} dosya daha eklendi",1:"%{smart_count} dosya daha eklendi"},xTimeLeft:"kalan süre %{time}",youCanOnlyUploadFileTypes:"Sadece %{types} yükleyebilirsiniz",youCanOnlyUploadX:{0:"Sadece %{smart_count} dosya yükleyebilirsiniz",1:"Sadece %{smart_count} dosya yükleyebilirsiniz"},youHaveToAtLeastSelectX:{0:"En az %{smart_count} dosya seçmelisin",1:"En az %{smart_count} dosya seçmelisin"},selectFileNamed:"Dosya Seç %{name}",unselectFileNamed:"Dosya seçimini kaldır %{name}",openFolderNamed:"Açık dosya %{name}"};typeof Uppy<"u"&&(globalThis.Uppy.locales.tr_TR=e);const i=e,l={Language:"Dil",Create:"Oluştur",Close:"Kapat",Cancel:"İptal",Save:"Kaydet",Edit:"Düzenle",Crop:"Kes","New Folder":"Yeni Klasör","New File":"Yeni Dosya",Rename:"Yeniden Adlandır",Delete:"Sil",Upload:"Karşıya Yükle",Download:"İndir",Archive:"Arşivle",Unarchive:"Arşivden çıkar",Open:"Aç","Open containing folder":"İçeren klasörü aç",Refresh:"Yenile",Preview:"Önizleme","Dark Mode":"Karanlık Mod","Toggle Full Screen":"Tam ekran","Change View":"Görünümü değiştir",Storage:"Depo","Go up a directory":"Yukarı git","Search anything..":"Herhangi bir şey ara..",Name:"Ad",Size:"Boyut",Date:"Tarih",Filepath:"Dosya yolu",About:"Hakkında","Folder Name":"Klasör Adı","File Name":"Dosya Adı","Move files":"Dosyaları taşı","Are you sure you want to move these files to?":"Bu dosyaları taşımak istediğinizden emin misiniz?","Yes, Move!":"Evet, Taşı!","Delete files":"Dosyaları Sil","Yes, Delete!":"Evet, Sil!","Upload files":"Dosyaları Yükle","No files selected!":"Dosya Seçilmedi!","Select Files":"Dosyaları Seç","Archive the files":"Dosyaları arşivleyin","Unarchive the files":"Dosyaları arşivden çıkarın","The archive will be unarchived at":"Arşiv buraya çıkarılacak: ","Archive name. (.zip file will be created)":"Archive adı. (.zip dosyası oluşturulacak)","Vuefinder is a file manager component for vue 3.":"Vuefinder, vue 3 için bir web dosya yönetim bileşenidir.","Create a new folder":"Yeni bir klasör oluşturun","Create a new file":"Yeni bir dosya oluşturun","Are you sure you want to delete these files?":"Bu dosyaları silmek istediğinize emin misiniz?","This action cannot be undone.":"Bu işlem geri alınamaz.","Search results for":"Arama sonuçları:","item(s) selected.":"dosya seçildi.","%s is renamed.":"%s yeniden adlandırılmıştır.","This is a readonly storage.":"Bu salt okunur bir depolama alanıdır.","%s is created.":"%s başarıyla oluşturulmuştur.","Files moved.":"Dosyalar taşındı.","Files deleted.":"Dosyalar silindi.","The file is unarchived.":"Dosya arşivden çıkarıldı.","The file(s) is archived.":"Dosyalar arşivlendi.","Updated.":"Güncellendi.","No search result found.":"Arama sonucu bulunamadı.","Are you sure you want to move these files?":"Bu dosyaları taşımak istediğinize emin misiniz?","File Size":"Dosya Boyutu","Last Modified":"Son Değişiklik","Drag&Drop: on":"Sürükle&Bırak: etkin","Drag&Drop: off":"Sürükle&Bırak: devre dışı",uppy:i};exports.default=l; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(a){return a===1?0:1}};e.strings={addMore:"Daha ekle",addMoreFiles:"Daha fazla dosya ekle",addingMoreFiles:"Daha fazla dosya ekleniyor",allowAccessDescription:"Kameranızla fotoğraf çekmek veya video kaydetmek için lütfen erişim izni verin.",allowAccessTitle:"Lütfen kameranıza erişim izni verin",authenticateWith:"%{pluginName} ile bağlan",authenticateWithTitle:"Lütfen dosyaları seçmek için %{pluginName} ile bağlanın",back:"Geri",browse:"gözat",browseFiles:"gözat",cancel:"İptal",cancelUpload:"Yüklemeyi İptal Et",chooseFiles:"Dosyaları seç",closeModal:"Kapat",companionError:"Bağlantı başarısız",complete:"Yüklendi",connectedToInternet:"İnternete bağlanıldı",copyLink:"Linki kopyala",copyLinkToClipboardFallback:"Aşağıdaki linki kopyala",copyLinkToClipboardSuccess:"Link panoya kopyalandı",creatingAssembly:"Yüklemeye hazırlanıyor...",creatingAssemblyFailed:"Transloadit: Yükleme oluşturulamadı",dashboardTitle:"Dosya Yükle",dashboardWindowTitle:"Dosya Yükle (Kapatmak için Esc)",dataUploadedOfTotal:"%{complete} / %{total}",done:"Bitti",dropHereOr:"Sürükleyip bırak veya %{browse}",dropHint:"Buraya sürükleyip bırakın",dropPasteBoth:"Sürükleyip bırak, yapıştır veya %{browse}",dropPasteFiles:"Sürükleyip bırak, yapıştır veya %{browse}",dropPasteFolders:"Sürükleyip bırak, yapıştır veya %{browse}",dropPasteImportBoth:"Sürükleyip bırak, yapıştır, %{browse} veya içeri aktar",dropPasteImportFiles:"Sürükleyip bırak, yapıştır, %{browse} veya içeri aktar",dropPasteImportFolders:"Sürükleyip bırak, yapıştır, %{browse} veya içeri aktar",editFile:"Dosyayı düzenle",editing:"%{file} düzenleniyor",emptyFolderAdded:"Klasör boş",encoding:"Çözümleniyor...",enterCorrectUrl:"Hatalı URL: Lütfen bir dosyaya doğrudan bağlantı girdiğinizden emin olun.",enterUrlToImport:"Dosya URL’sini buraya yapıştırın",exceedsSize:"Bu dosya izin verilen maksimum boyutu aşıyor %{size}",failedToFetch:"Bu URL’den alınamadı, lütfen doğru olduğundan emin olun",failedToUpload:"%{file} dosyası yüklenemedi",fileSource:"Dosya kaynağı: %{name}",filesUploadedOfTotal:{0:"%{complete} / %{smart_count} dosya yüklendi",1:"%{complete} / %{smart_count} dosya yüklendi"},filter:"Filtre",finishEditingFile:"Düzenlemeyi bitir",folderAdded:{0:"%{folder} klasöründen %{smart_count} dosya eklendi",1:"%{folder} klasöründen %{smart_count} dosya eklendi"},import:"Ekle",importFrom:"%{name} Ekle",loading:"Yükleniyor...",logOut:"Çıkış",myDevice:"Dosyalarım",noFilesFound:"Dosya veya klasör bulunamadı",noInternetConnection:"İnternet bağlantınız yok",pause:"Durdur",pauseUpload:"Yükleme Durdu",paused:"Durdu",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"%{smart_count} dosya işleniyor",1:"%{smart_count} dosya işleniyor"},removeFile:"Dosyayı kaldır",resetFilter:"Filtreyi temizle",resume:"Devam Et",resumeUpload:"Yüklemeye devam et",retry:"Tekrar",retryUpload:"Tekrar yükle",saveChanges:"Değişiklikleri kaydet",selectX:{0:"%{smart_count} seç",1:"%{smart_count} seç"},smile:"Gülümse!",startRecording:"Video kaydına başla",stopRecording:"Video kaydını durdur",takePicture:"Fotoğraf çek",timedOut:"Yükleme işlemi %{seconds} saniyeden fazla sürdüğü için iptal edildi.",upload:"Yükle",uploadComplete:"Yükleme tamamlandı",uploadFailed:"Yükleme başarısız",uploadPaused:"Yükleme durduruldu",uploadXFiles:{0:"%{smart_count} dosyayı yükle",1:"%{smart_count} dosyayı yükle"},uploadXNewFiles:{0:"+%{smart_count} dosyayı yükle",1:"+%{smart_count} dosyayı yükle"},uploading:"Yükleniyor",uploadingXFiles:{0:"%{smart_count} dosya yükleniyor",1:"%{smart_count} dosya yükleniyor"},xFilesSelected:{0:"%{smart_count} dosya seçildi",1:"%{smart_count} dosya seçildi"},xMoreFilesAdded:{0:"%{smart_count} dosya daha eklendi",1:"%{smart_count} dosya daha eklendi"},xTimeLeft:"kalan süre %{time}",youCanOnlyUploadFileTypes:"Sadece %{types} yükleyebilirsiniz",youCanOnlyUploadX:{0:"Sadece %{smart_count} dosya yükleyebilirsiniz",1:"Sadece %{smart_count} dosya yükleyebilirsiniz"},youHaveToAtLeastSelectX:{0:"En az %{smart_count} dosya seçmelisin",1:"En az %{smart_count} dosya seçmelisin"},selectFileNamed:"Dosya Seç %{name}",unselectFileNamed:"Dosya seçimini kaldır %{name}",openFolderNamed:"Açık dosya %{name}"};typeof Uppy<"u"&&(globalThis.Uppy.locales.tr_TR=e);const l=e,i={Language:"Dil",Create:"Oluştur",Close:"Kapat",Cancel:"İptal",Save:"Kaydet",Edit:"Düzenle",Crop:"Kes","New Folder":"Yeni Klasör","New File":"Yeni Dosya",Rename:"Yeniden Adlandır",Delete:"Sil",Upload:"Karşıya Yükle",Download:"İndir",Archive:"Arşivle",Unarchive:"Arşivden çıkar",Open:"Aç","Open containing folder":"İçeren klasörü aç",Refresh:"Yenile",Preview:"Önizleme","Dark Mode":"Karanlık Mod","Toggle Full Screen":"Tam ekran","Change View":"Görünümü değiştir",Storage:"Depo","Go up a directory":"Yukarı git","Search anything..":"Herhangi bir şey ara..",Name:"Ad",Size:"Boyut",Date:"Tarih",Filepath:"Dosya yolu",About:"Hakkında","Folder Name":"Klasör Adı","File Name":"Dosya Adı","Move files":"Dosyaları taşı","Are you sure you want to move these files to?":"Bu dosyaları taşımak istediğinizden emin misiniz?","Yes, Move!":"Evet, Taşı!","Delete files":"Dosyaları Sil","Yes, Delete!":"Evet, Sil!","Upload files":"Dosyaları Yükle","No files selected!":"Dosya Seçilmedi!","Select Files":"Dosyaları Seç","Archive the files":"Dosyaları arşivleyin","Unarchive the files":"Dosyaları arşivden çıkarın","The archive will be unarchived at":"Arşiv buraya çıkarılacak: ","Archive name. (.zip file will be created)":"Archive adı. (.zip dosyası oluşturulacak)","Vuefinder is a file manager component for vue 3.":"Vuefinder, vue 3 için bir web dosya yönetim bileşenidir.","Create a new folder":"Yeni bir klasör oluşturun","Create a new file":"Yeni bir dosya oluşturun","Are you sure you want to delete these files?":"Bu dosyaları silmek istediğinize emin misiniz?","This action cannot be undone.":"Bu işlem geri alınamaz.","Search results for":"Arama sonuçları:","item(s) selected.":"dosya seçildi.","%s is renamed.":"%s yeniden adlandırılmıştır.","This is a readonly storage.":"Bu salt okunur bir depolama alanıdır.","%s is created.":"%s başarıyla oluşturulmuştur.","Files moved.":"Dosyalar taşındı.","Files deleted.":"Dosyalar silindi.","The file is unarchived.":"Dosya arşivden çıkarıldı.","The file(s) is archived.":"Dosyalar arşivlendi.","Updated.":"Güncellendi.","No search result found.":"Arama sonucu bulunamadı.","Are you sure you want to move these files?":"Bu dosyaları taşımak istediğinize emin misiniz?","File Size":"Dosya Boyutu","Last Modified":"Son Değişiklik","Drag&Drop: on":"Sürükle&Bırak: etkin","Drag&Drop: off":"Sürükle&Bırak: devre dışı","Select Folders":"Klasörleri Seç","Clear all":"Hepsini Temizle","Clear only successful":"Başarılı Olanları Temizle","Drag and drop the files/folders to here or click here.":"Dosyaları/klasörleri buraya sürükleyin veya buraya tıklayın.","Release to drop these files.":"Dosyaları eklemek için serbest bırakın.",Canceled:"İptal edildi",Done:"Tamamlandı","Network Error, Unable establish connection to the server or interrupted.":"Ağ Hatası, Sunucuya bağlantı kurulamıyor veya kesiliyor.","Pending upload":"Bekliyor","Please select file to upload first.":"Lütfen önce yüklenecek dosyayı seçin.","About %s":"%s Hakkında",Settings:"Ayarlar","Use Metric Units":"Metrik Birimleri Kullan","Saved.":"Kaydedildi.","Clear Local Storage":"Yerel Depolamayı Temizle",uppy:l};exports.default=i; diff --git a/dist/tr-410a966d.js b/dist/tr-ce32e2ae.js similarity index 89% rename from dist/tr-410a966d.js rename to dist/tr-ce32e2ae.js index 9c541339..8a58b517 100644 --- a/dist/tr-410a966d.js +++ b/dist/tr-ce32e2ae.js @@ -130,7 +130,7 @@ e.strings = { openFolderNamed: "Açık dosya %{name}" }; typeof Uppy < "u" && (globalThis.Uppy.locales.tr_TR = e); -const i = e, l = { +const l = e, i = { Language: "Dil", Create: "Oluştur", Close: "Kapat", @@ -196,8 +196,23 @@ const i = e, l = { "Last Modified": "Son Değişiklik", "Drag&Drop: on": "Sürükle&Bırak: etkin", "Drag&Drop: off": "Sürükle&Bırak: devre dışı", - uppy: i + "Select Folders": "Klasörleri Seç", + "Clear all": "Hepsini Temizle", + "Clear only successful": "Başarılı Olanları Temizle", + "Drag and drop the files/folders to here or click here.": "Dosyaları/klasörleri buraya sürükleyin veya buraya tıklayın.", + "Release to drop these files.": "Dosyaları eklemek için serbest bırakın.", + Canceled: "İptal edildi", + Done: "Tamamlandı", + "Network Error, Unable establish connection to the server or interrupted.": "Ağ Hatası, Sunucuya bağlantı kurulamıyor veya kesiliyor.", + "Pending upload": "Bekliyor", + "Please select file to upload first.": "Lütfen önce yüklenecek dosyayı seçin.", + "About %s": "%s Hakkında", + Settings: "Ayarlar", + "Use Metric Units": "Metrik Birimleri Kullan", + "Saved.": "Kaydedildi.", + "Clear Local Storage": "Yerel Depolamayı Temizle", + uppy: l }; export { - l as default + i as default }; diff --git a/dist/vuefinder.cjs b/dist/vuefinder.cjs index 87cb6ba9..e27efea3 100644 --- a/dist/vuefinder.cjs +++ b/dist/vuefinder.cjs @@ -1 +1 @@ -"use strict";const e=require("vue"),oe=require("mitt"),re=require("dragselect"),ne=require("vanilla-lazyload");require("cropperjs/dist/cropper.css");const ae=require("cropperjs"),se=require("@uppy/core"),le=require("@uppy/xhr-upload");require("microtip/microtip.css");var Z;const I=(Z=document.querySelector('meta[name="csrf-token"]'))==null?void 0:Z.getAttribute("content"),P=(l,{method:t="get",params:r={},json:o=!0,signal:d=null})=>{const i={method:t};if(i.signal=d,t=="get")l+="?"+new URLSearchParams(r);else{i.headers={},I&&(i.headers["X-CSRF-Token"]=I);let a=new FormData;for(const[c,m]of Object.entries(r))a.append(c,m);i.body=a}return fetch(l,i).then(a=>a.ok?o?a.json():a.text():a.json().then(Promise.reject.bind(Promise)))};function Y(l){let t=localStorage.getItem(l+"_storage");const r=e.ref(JSON.parse(t));e.watch(r,o);function o(){r.value===null||r.value===""?localStorage.removeItem(l+"_storage"):localStorage.setItem(l+"_storage",JSON.stringify(r.value))}function d(c,m){r.value=Object.assign({...r.value},{[c]:m})}function i(){r.value=null}return{getStore:(c,m=null)=>r.value===null||r.value===""?m:r.value.hasOwnProperty(c)?r.value[c]:m,setStore:d,clearStore:i}}const Q=e.ref("");function S(){function l(t){Q.value=t}return{apiUrl:Q,setApiUrl:l}}const ie={class:"border-neutral-300 flex justify-between items-center py-1 text-sm"},ce={key:0,class:"flex text-center"},de=["aria-label"],ue=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})],-1),me=[ue],pe=["aria-label"],fe=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})],-1),ge=[fe],ve=["aria-label"],he=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"},null,-1),ke=[he],ye=["aria-label"],xe=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"},null,-1),we=[xe],be=["aria-label"],_e=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"})],-1),Ee=[_e],Ve=["aria-label"],Ne=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"},null,-1),$e=[Ne],Be=["aria-label"],Ce=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"},null,-1),je=[Ce],De={key:1,class:"flex text-center"},Se={class:"pl-2"},Me={class:"dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded"},ze={key:0,class:"animate-spin p-0.5 h-5 w-5 text-white ml-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Oe=e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Fe=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Te=[Oe,Fe],Le={class:"flex text-center items-center justify-end"},Ae=["aria-label"],He=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"},null,-1),qe=[He],Ue=["aria-label"],Ie={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Pe={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"},Re={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"},Ke=["aria-label"],Ge={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"},Ye={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"},Je={name:"VFToolbar"},We=Object.assign(Je,{props:{data:Object},setup(l){const t=e.inject("emitter"),r=e.inject("usePropDarkMode"),{getStore:o,setStore:d}=e.inject("storage"),{t:i}=e.inject("i18n"),a=e.ref(o("viewport","grid")),c=e.ref([]),m=e.ref(o("full-screen",!1)),s=e.ref("");t.on("vf-search-query",({newQuery:h})=>{s.value=h});const n=e.inject("loadingState"),f=()=>n.value,w=()=>{m.value=!m.value,t.emit("vf-fullscreen-toggle")};return t.on("vf-nodes-selected",h=>{c.value=h}),t.on("vf-view-toggle",h=>{d("viewport",h),a.value=h}),(h,y)=>(e.openBlock(),e.createElementBlock("div",ie,[s.value.length?(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",Se,[e.createTextVNode(e.toDisplayString(e.unref(i)("Search results for"))+" ",1),e.createElementVNode("span",Me,e.toDisplayString(s.value),1)]),f()?(e.openBlock(),e.createElementBlock("svg",ze,Te)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("New Folder"),"data-microtip-position":"bottom-right",role:"tooltip",onClick:y[0]||(y[0]=g=>e.unref(t).emit("vf-modal-show",{type:"new-folder",items:c.value}))},me,8,de),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("New File"),"data-microtip-position":"bottom",role:"tooltip",onClick:y[1]||(y[1]=g=>e.unref(t).emit("vf-modal-show",{type:"new-file",items:c.value}))},ge,8,pe),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("Rename"),"data-microtip-position":"bottom",role:"tooltip",onClick:y[2]||(y[2]=g=>c.value.length!=1||e.unref(t).emit("vf-modal-show",{type:"rename",items:c.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([c.value.length==1?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},ke,2))],8,ve),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("Delete"),"data-microtip-position":"bottom",role:"tooltip",onClick:y[3]||(y[3]=g=>!c.value.length||e.unref(t).emit("vf-modal-show",{type:"delete",items:c.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([c.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},we,2))],8,ye),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("Upload"),"data-microtip-position":"bottom",role:"tooltip",onClick:y[4]||(y[4]=g=>e.unref(t).emit("vf-modal-show",{type:"upload",items:c.value}))},Ee,8,be),c.value.length==1&&c.value[0].mime_type=="application/zip"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mx-1.5","aria-label":e.unref(i)("Unarchive"),"data-microtip-position":"bottom",role:"tooltip",onClick:y[5]||(y[5]=g=>!c.value.length||e.unref(t).emit("vf-modal-show",{type:"unarchive",items:c.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([c.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},$e,2))],8,Ve)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"mx-1.5","aria-label":e.unref(i)("Archive"),"data-microtip-position":"bottom",role:"tooltip",onClick:y[6]||(y[6]=g=>!c.value.length||e.unref(t).emit("vf-modal-show",{type:"archive",items:c.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([c.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},je,2))],8,Be))])),e.createElementVNode("div",Le,[e.withDirectives(e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("Dark Mode"),"data-microtip-position":"bottom",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onClick:y[7]||(y[7]=g=>e.unref(t).emit("vf-darkMode-toggle")),viewBox:"0 0 24 24","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"h-6 w-6 m-auto cursor-pointer stroke-sky-500 fill-sky-100 hover:stroke-sky-600 dark:stroke-gray-400 dark:fill-gray-400/20 dark:hover:stroke-gray-300"},qe))],8,Ae),[[e.vShow,!e.unref(r)]]),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("Toggle Full Screen"),"data-microtip-position":"bottom-left",role:"tooltip",onClick:w},[(e.openBlock(),e.createElementBlock("svg",Ie,[m.value?(e.openBlock(),e.createElementBlock("path",Pe)):(e.openBlock(),e.createElementBlock("path",Re))]))],8,Ue),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(i)("Change View"),"data-microtip-position":"bottom-left",role:"tooltip",onClick:y[8]||(y[8]=g=>s.value.length||e.unref(t).emit("vf-view-toggle",a.value=="list"?"grid":"list"))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([s.value.length?"stroke-gray-200 dark:stroke-gray-700":"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[a.value=="grid"?(e.openBlock(),e.createElementBlock("path",Ge)):e.createCommentVNode("",!0),a.value=="list"?(e.openBlock(),e.createElementBlock("path",Ye)):e.createCommentVNode("",!0)],2))],8,Ke)])]))}});function X(l,t,r,o,d){return(t=Math,r=t.log,o=1024,d=r(l)/r(o)|0,l/t.pow(o,d)).toFixed(0)+" "+(d?"KMGTPEZY"[--d]+"iB":"B")}function Xe(l){const t={k:1,m:2,g:3,t:4},o=/(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(l);return o[1]*Math.pow(1024,t[o[2].toLowerCase()])}const ee=(l,t=null)=>new Date(l*1e3).toLocaleString(t??navigator.language??"en-US"),Qe={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},Ze=e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1),et=[Ze],tt={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},ot=e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1),rt=[ot],nt={name:"VFSortIcon"},U=Object.assign(nt,{props:{direction:String},setup(l){return(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[l.direction=="down"?(e.openBlock(),e.createElementBlock("svg",Qe,et)):e.createCommentVNode("",!0),l.direction=="up"?(e.openBlock(),e.createElementBlock("svg",tt,rt)):e.createCommentVNode("",!0)]))}}),at=["onClick"],st={name:"VFToast.vue"},lt=Object.assign(st,{setup(l){const t=e.inject("emitter"),{getStore:r}=e.inject("storage"),o=e.ref(r("full-screen",!1)),d=m=>m=="error"?"text-red-400 border-red-400 dark:text-red-300 dark:border-red-300":"text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300",i=e.ref([]),a=m=>{i.value.splice(m,1)},c=m=>{let s=i.value.findIndex(n=>n.id===m);s!==-1&&a(s)};return t.on("vf-toast-clear",()=>{i.value=[]}),t.on("vf-toast-push",m=>{let s=new Date().getTime().toString(36).concat(performance.now().toString(),Math.random().toString()).replace(/\./g,"");m.id=s,i.value.push(m),setTimeout(()=>{c(s)},5e3)}),(m,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.value.value?"fixed":"absolute","bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"])},[e.createVNode(e.TransitionGroup,{name:"vf-toast-item","leave-active-class":"transition-all duration-1000","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(n,f)=>(e.openBlock(),e.createElementBlock("div",{onClick:w=>a(f),key:n,class:e.normalizeClass([d(n.type),"inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])},e.toDisplayString(n.label),11,at))),128))]),_:1})],2))}}),L=l=>Object.entries(l).map(t=>t.map(encodeURIComponent).join("=")).join("&"),{apiUrl:it}=S(),J=(l,t)=>it.value+"?"+L({q:"preview",adapter:l,path:t});function W(l,t=14){let r=`((?=([\\w\\W]{0,${t}}))([\\w\\W]{8,})([\\w\\W]{8,}))`;return l.replace(new RegExp(r),"$2..$4")}const ct={class:"relative flex-auto flex flex-col overflow-hidden"},dt={key:0,class:"grid grid-cols-12 border-b border-neutral-300 border-gray-200 dark:border-gray-700 text-xs select-none"},ut={class:"absolute"},mt=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"absolute h-6 w-6 md:h-12 md:w-12 m-auto stroke-neutral-500 fill-white dark:fill-gray-700 dark:stroke-gray-600 z-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})],-1),pt={class:"text-neutral-700 dark:text-neutral-300 p-1 absolute text-center top-4 right-[-2rem] md:top-5 md:right-[-2.4rem] z-20 text-xs"},ft=["onDblclick","onContextmenu","data-type","data-item","data-index"],gt={class:"grid grid-cols-12 items-center"},vt={class:"flex col-span-7 items-center"},ht={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},kt=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),yt=[kt],xt={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},wt=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),bt=[wt],_t={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},Et={class:"col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap"},Vt=["onDblclick","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],Nt={class:"grid grid-cols-12 items-center"},$t={class:"flex col-span-7 items-center"},Bt={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Ct=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),jt=[Ct],Dt={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},St=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Mt=[St],zt={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},Ot={class:"col-span-2 text-center"},Ft={class:"col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap"},Tt=["onDblclick","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],Lt={class:"relative"},At={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Ht=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),qt=[Ht],Ut=["data-src","alt"],It={key:2,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Pt=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Rt=[Pt],Kt={key:3,class:"absolute hidden md:block top-1/2 w-full text-center text-neutral-500"},Gt={class:"break-all"},Yt={name:"VFExplorer"},Jt=Object.assign(Yt,{props:{view:String,data:Object,search:Object},setup(l){const t=l,r=e.inject("emitter"),{setStore:o,getStore:d}=e.inject("storage"),i=e.inject("adapter"),a=v=>v==null?void 0:v.substring(0,3),c=e.ref(null),m=e.ref(null),s=e.ref(0),n=e.ref(null),{t:f}=e.inject("i18n"),w=Math.floor(Math.random()*2**32),h=e.ref(d("full-screen",!1));let y;r.on("vf-fullscreen-toggle",()=>{c.value.style.height=null,h.value=!h.value,o("full-screen",h.value)});const g=e.ref("");r.on("vf-search-query",({newQuery:v})=>{g.value=v,v?r.emit("vf-fetch",{params:{q:"search",adapter:t.data.adapter,path:t.data.dirname,filter:v},onSuccess:b=>{b.files.length||r.emit("vf-toast-push",{label:f("No search result found.")})}}):r.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:t.data.dirname}})});let V=null;const _=()=>{V&&clearTimeout(V)},x=e.ref(!0),k=v=>{v.touches.length>1&&(x.value?(n.value.stop(),r.emit("vf-toast-push",{label:f("Drag&Drop: off")})):(n.value.start(),r.emit("vf-toast-push",{label:f("Drag&Drop: on")}),r.emit("vf-explorer-update")),x.value=!x.value)},E=v=>{V=setTimeout(()=>{const b=new MouseEvent("contextmenu",{bubbles:!0,cancelable:!1,view:window,button:2,buttons:0,clientX:v.target.getBoundingClientRect().x,clientY:v.target.getBoundingClientRect().y});v.target.dispatchEvent(b)},500)},B=v=>{v.type=="dir"?(r.emit("vf-search-exit"),r.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:v.path}})):r.emit("vf-modal-show",{type:"preview",adapter:t.data.adapter,item:v})},N=e.reactive({active:!1,column:"",order:""}),D=(v=!0)=>{let b=[...t.data.files],p=N.column,C=N.order=="asc"?1:-1;if(!v)return b;const u=($,j)=>typeof $=="string"&&typeof j=="string"?$.toLowerCase().localeCompare(j.toLowerCase()):$j?1:0;return N.active&&(b=b.slice().sort(($,j)=>u($[p],j[p])*C)),b},F=v=>{N.active&&N.column==v?(N.active=N.order=="asc",N.column=v,N.order="desc"):(N.active=!0,N.column=v,N.order="asc")},O=()=>n.value.getSelection().map(v=>JSON.parse(v.dataset.item)),A=(v,b)=>{if(v.altKey||v.ctrlKey||v.metaKey)return v.preventDefault(),!1;v.dataTransfer.setDragImage(m.value,0,15),v.dataTransfer.effectAllowed="all",v.dataTransfer.dropEffect="copy",v.dataTransfer.setData("items",JSON.stringify(O()))},H=(v,b)=>{v.preventDefault();let p=JSON.parse(v.dataTransfer.getData("items"));if(p.find(C=>C.storage!=i.value)){alert("Moving items between different storages is not supported yet.");return}r.emit("vf-modal-show",{type:"move",items:{from:p,to:b}})},q=(v,b)=>{v.preventDefault(),!b||b.type!=="dir"||n.value.getSelection().find(p=>p==v.currentTarget)?(v.dataTransfer.dropEffect="none",v.dataTransfer.effectAllowed="none"):v.dataTransfer.dropEffect="copy"},R=()=>{n.value=new re({area:c.value,keyboardDrag:!1,selectedClass:"vf-explorer-selected",selectorClass:"vf-explorer-selector"}),r.on("vf-explorer-update",()=>e.nextTick(()=>{n.value.clearSelection(),n.value.setSettings({selectables:document.getElementsByClassName("vf-item-"+w)})})),n.value.subscribe("predragstart",({event:v,isDragging:b})=>{if(b)s.value=n.value.getSelection().length,n.value.break();else{const p=v.target.offsetWidth-v.offsetX,C=v.target.offsetHeight-v.offsetY;p<15&&C<15&&(n.value.clearSelection(),n.value.break())}}),n.value.subscribe("predragmove",({isDragging:v})=>{v&&n.value.break()}),n.value.subscribe("callback",({items:v,event:b,isDragging:p})=>{r.emit("vf-nodes-selected",O()),s.value=n.value.getSelection().length})};return e.onMounted(()=>{y=new ne(c.value),R()}),e.onUpdated(()=>{n.value.Area.reset(),n.value.SelectorArea.updatePos(),y.update()}),e.onMounted(()=>{e.watch(()=>t.view,()=>r.emit("vf-explorer-update"))}),e.onBeforeUnmount(()=>{y.destroy()}),(v,b)=>(e.openBlock(),e.createElementBlock("div",ct,[l.view=="list"||g.value.length?(e.openBlock(),e.createElementBlock("div",dt,[e.createElementVNode("div",{onClick:b[0]||(b[0]=p=>F("basename")),class:"col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"},[e.createTextVNode(e.toDisplayString(e.unref(f)("Name"))+" ",1),e.withDirectives(e.createVNode(U,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="basename"]])]),g.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:b[1]||(b[1]=p=>F("file_size")),class:"col-span-2 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l border-r dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(f)("Size"))+" ",1),e.withDirectives(e.createVNode(U,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="file_size"]])])),g.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:b[2]||(b[2]=p=>F("last_modified")),class:"col-span-3 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center"},[e.createTextVNode(e.toDisplayString(e.unref(f)("Date"))+" ",1),e.withDirectives(e.createVNode(U,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="last_modified"]])])),g.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,onClick:b[3]||(b[3]=p=>F("path")),class:"col-span-5 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(f)("Filepath"))+" ",1),e.withDirectives(e.createVNode(U,{direction:N.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,N.active&&N.column=="path"]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ut,[e.createElementVNode("div",{ref_key:"dragImage",ref:m,class:"absolute -z-50 -top-96"},[mt,e.createElementVNode("div",pt,e.toDisplayString(s.value),1)],512)]),e.createElementVNode("div",{onTouchstart:k,onContextmenu:b[10]||(b[10]=e.withModifiers(p=>e.unref(r).emit("vf-contextmenu-show",{event:p,area:c.value,items:O()}),["self","prevent"])),class:e.normalizeClass([h.value?"":"resize-y","h-full w-full text-xs vf-selector-area vf-scrollbar min-h-[150px] overflow-auto p-1 z-0"]),ref_key:"selectorArea",ref:c},[g.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(D(),(p,C)=>(e.openBlock(),e.createElementBlock("div",{onDblclick:u=>B(p),onTouchstart:b[4]||(b[4]=u=>E(u)),onTouchend:b[5]||(b[5]=u=>_()),onContextmenu:e.withModifiers(u=>e.unref(r).emit("vf-contextmenu-show",{event:u,area:c.value,items:O(),target:p}),["prevent"]),class:e.normalizeClass(["vf-item-"+e.unref(w),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":p.type,"data-item":JSON.stringify(p),"data-index":C},[e.createElementVNode("div",gt,[e.createElementVNode("div",vt,[p.type=="dir"?(e.openBlock(),e.createElementBlock("svg",ht,yt)):(e.openBlock(),e.createElementBlock("svg",xt,bt)),e.createElementVNode("span",_t,e.toDisplayString(p.basename),1)]),e.createElementVNode("div",Et,e.toDisplayString(p.path),1)])],42,ft))),256)):e.createCommentVNode("",!0),l.view=="list"&&!g.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(D(),(p,C)=>(e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:u=>B(p),onTouchstart:b[6]||(b[6]=u=>E(u)),onTouchend:b[7]||(b[7]=u=>_()),onContextmenu:e.withModifiers(u=>e.unref(r).emit("vf-contextmenu-show",{event:u,area:c.value,items:O(),target:p}),["prevent"]),onDragstart:u=>A(u),onDragover:u=>q(u,p),onDrop:u=>H(u,p),class:e.normalizeClass(["vf-item-"+e.unref(w),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":p.type,"data-item":JSON.stringify(p),"data-index":C},[e.createElementVNode("div",Nt,[e.createElementVNode("div",$t,[p.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Bt,jt)):(e.openBlock(),e.createElementBlock("svg",Dt,Mt)),e.createElementVNode("span",zt,e.toDisplayString(p.basename),1)]),e.createElementVNode("div",Ot,e.toDisplayString(p.file_size?e.unref(X)(p.file_size):""),1),e.createElementVNode("div",Ft,e.toDisplayString(e.unref(ee)(p.last_modified)),1)])],42,Vt))),256)):e.createCommentVNode("",!0),l.view=="grid"&&!g.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(D(!1),(p,C)=>(e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:u=>B(p),onTouchstart:b[8]||(b[8]=u=>E(u)),onTouchend:b[9]||(b[9]=u=>_()),onContextmenu:e.withModifiers(u=>e.unref(r).emit("vf-contextmenu-show",{event:u,area:c.value,items:O(),target:p}),["prevent"]),onDragstart:u=>A(u),onDragover:u=>q(u,p),onDrop:u=>H(u,p),class:e.normalizeClass(["vf-item-"+e.unref(w),"border border-transparent hover:bg-neutral-50 m-1 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 text-center justify-center select-none"]),"data-type":p.type,"data-item":JSON.stringify(p),"data-index":C},[e.createElementVNode("div",null,[e.createElementVNode("div",Lt,[p.type=="dir"?(e.openBlock(),e.createElementBlock("svg",At,qt)):(p.mime_type??"").startsWith("image")?(e.openBlock(),e.createElementBlock("img",{key:1,class:"lazy h-10 md:h-12 m-auto","data-src":e.unref(J)(e.unref(i).value,p.path),alt:p.basename},null,8,Ut)):(e.openBlock(),e.createElementBlock("svg",It,Rt)),!(p.mime_type??"").startsWith("image")&&p.type!="dir"?(e.openBlock(),e.createElementBlock("div",Kt,e.toDisplayString(a(p.extension)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("span",Gt,e.toDisplayString(e.unref(W)(p.basename)),1)])],42,Tt))),256)):e.createCommentVNode("",!0)],34),e.createVNode(lt)]))}}),Wt="1.3.2",Xt={class:"p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none"},Qt={class:"flex leading-5 items-center"},Zt=["aria-label"],eo=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"})],-1),to=[eo],oo=["value"],ro={class:"ml-3"},no={key:0},ao={class:"ml-1"},so={class:"flex leading-5 items-center justify-end"},lo={value:"",disabled:""},io=e.createStaticVNode('',11),co=["aria-label"],uo=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 stroke-slate-500 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),mo=[uo],po={name:"VFStatusbar"},fo=Object.assign(po,{props:{data:Object},setup(l){const t=e.inject("emitter"),{getStore:r,setStore:o}=e.inject("storage"),d=e.ref(0),i=e.inject("adapter"),{t:a,changeLocale:c}=e.inject("i18n"),m=e.ref(r("locale","")),s=()=>{t.emit("vf-search-exit"),t.emit("vf-fetch",{params:{q:"index",adapter:i.value}}),o("adapter",i.value)};t.on("vf-nodes-selected",f=>{d.value=f.length});const n=e.ref("");return t.on("vf-search-query",({newQuery:f})=>{n.value=f}),(f,w)=>(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",{class:"mx-2","aria-label":e.unref(a)("Storage"),"data-microtip-position":"top-right",role:"tooltip"},to,8,Zt),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":w[0]||(w[0]=h=>e.isRef(i)?i.value=h:null),onChange:s,class:"py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data.storages,h=>(e.openBlock(),e.createElementBlock("option",{value:h},e.toDisplayString(h),9,oo))),256))],544),[[e.vModelSelect,e.unref(i)]]),e.createElementVNode("div",ro,[n.value.length?(e.openBlock(),e.createElementBlock("span",no,e.toDisplayString(l.data.files.length)+" items found. ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",ao,e.toDisplayString(d.value>0?d.value+" "+e.unref(a)("item(s) selected."):""),1)])]),e.createElementVNode("div",so,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":w[1]||(w[1]=h=>m.value=h),onChange:w[2]||(w[2]=h=>e.unref(c)(h.target.value)),class:"w-[120px] delay-200 duration-300 hover:w-full transition-[width] py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3"},[e.createElementVNode("option",lo,e.toDisplayString(e.unref(a)("Language")),1),io],544),[[e.vModelSelect,m.value]]),e.createElementVNode("span",{class:"mr-1","aria-label":e.unref(a)("About"),"data-microtip-position":"top-left",role:"tooltip",onClick:w[3]||(w[3]=h=>e.unref(t).emit("vf-modal-show",{type:"message",title:"Vuefinder "+e.unref(Wt),message:e.unref(a)("Vuefinder is a file manager component for vue 3.")}))},mo,8,co)])]))}}),go=(l,t=0,r=!1)=>{let o;return(...d)=>{r&&!o&&l(...d),clearTimeout(o),o=setTimeout(()=>{l(...d)},t)}},vo=(l,t,r)=>{const o=e.ref(l);return e.customRef((i,a)=>({get(){return i(),o.value},set:go(c=>{o.value=c,a()},t,r)}))},ho={class:"flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs"},ko=["aria-label"],yo=e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z","clip-rule":"evenodd"},null,-1),xo=[yo],wo=["aria-label"],bo=e.createElementVNode("path",{d:"M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"},null,-1),_o=[bo],Eo=["aria-label"],Vo=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1),No=[Vo],$o=e.createElementVNode("path",{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},null,-1),Bo=[$o],Co={class:"flex leading-5"},jo=e.createElementVNode("span",{class:"text-neutral-300 dark:text-gray-600 mx-0.5"},"/",-1),Do=["title","onClick"],So={key:0,class:"animate-spin p-1 h-6 w-6 text-white ml-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Mo=e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),zo=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Oo=[Mo,zo],Fo={key:3,class:"relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full"},To=e.createElementVNode("div",null,[e.createElementVNode("svg",{class:"h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1),Lo=["placeholder"],Ao=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1),Ho=[Ao],qo={name:"VFBreadcrumb"},Uo=Object.assign(qo,{props:{data:Object},setup(l){const t=e.inject("emitter");e.inject("storage");const r=e.inject("adapter"),o=e.ref(null),d=e.ref([]),i=e.ref(!1),a=e.ref(null),c=l,{t:m}=e.inject("i18n"),s=e.inject("loadingState");t.on("vf-explorer-update",()=>{let x=[],k=[];o.value=c.data.dirname??r.value+"://",o.value.length==0&&(d.value=[]),o.value.replace(r.value+"://","").split("/").forEach(function(E){x.push(E),x.join("/")!=""&&k.push({basename:E,name:E,path:r.value+"://"+x.join("/"),type:"dir"})}),k.length>4&&(k=k.slice(-5),k[0].name=".."),d.value=k});const n=()=>{i.value=!1,w.value=""};t.on("vf-search-exit",()=>{n()});const f=()=>{i.value=!0,e.nextTick(()=>a.value.focus())},w=vo("",400),h=()=>s.value;e.watch(w,x=>{t.emit("vf-toast-clear"),t.emit("vf-search-query",{newQuery:x})});const y=()=>d.value.length&&!i.value,g=x=>{x.preventDefault();let k=JSON.parse(x.dataTransfer.getData("items"));if(k.find(E=>E.storage!=r.value)){alert("Moving items between different storages is not supported yet.");return}t.emit("vf-modal-show",{type:"move",items:{from:k,to:d.value[d.value.length-2]??{path:r.value+"://"}}})},V=x=>{x.preventDefault(),y()?x.dataTransfer.dropEffect="copy":(x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="none")},_=()=>{w.value==""&&n()};return(x,k)=>(e.openBlock(),e.createElementBlock("div",ho,[e.createElementVNode("span",{"aria-label":e.unref(m)("Go up a directory"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onDragover:k[0]||(k[0]=E=>V(E)),onDrop:k[1]||(k[1]=E=>g(E)),onClick:k[2]||(k[2]=E=>{var B;return!y()||e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:l.data.adapter,path:((B=d.value[d.value.length-2])==null?void 0:B.path)??e.unref(r)+"://"}})}),class:e.normalizeClass(["h-6 w-6 p-0.5 rounded",y()?"text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer":"text-gray-400 dark:text-neutral-500"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},xo,34))],8,ko),h()?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-label":e.unref(m)("Cancel"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onClick:k[4]||(k[4]=E=>e.unref(t).emit("vf-fetch-abort")),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer"},No))],8,Eo)):(e.openBlock(),e.createElementBlock("span",{key:0,"aria-label":e.unref(m)("Refresh"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onClick:k[3]||(k[3]=E=>{e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:l.data.adapter,path:l.data.dirname}})}),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"-40 -40 580 580",fill:"currentColor"},_o))],8,wo)),i.value?(e.openBlock(),e.createElementBlock("div",Fo,[To,e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:a,onKeydown:e.withKeys(n,["esc"]),onBlur:_,"onUpdate:modelValue":k[6]||(k[6]=E=>e.isRef(w)?w.value=E:null),placeholder:e.unref(m)("Search anything.."),class:"w-full pt-1 pb-0 px-2 border-0 text-sm ring-0 outline-0 text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",type:"text"},null,40,Lo),[[e.vModelText,e.unref(w)]]),(e.openBlock(),e.createElementBlock("svg",{class:"w-6 h-6 cursor-pointer",onClick:n,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Ho))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full",onClick:e.withModifiers(f,["self"])},[(e.openBlock(),e.createElementBlock("svg",{onClick:k[5]||(k[5]=E=>e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:l.data.adapter}})),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-gray-800 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},Bo)),e.createElementVNode("div",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(E,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[jo,e.createElementVNode("span",{class:"px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer",title:E.basename,onClick:N=>e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:l.data.adapter,path:E.path}})},e.toDisplayString(E.name),9,Do)]))),128))]),h()?(e.openBlock(),e.createElementBlock("svg",So,Oo)):e.createCommentVNode("",!0)]))]))}}),Io=["onClick"],Po=e.createElementVNode("span",{class:"px-1"},null,-1),Ro={name:"VFContextMenu"},Ko=Object.assign(Ro,{props:{current:Object},setup(l){const t=e.inject("emitter"),r=e.ref(null),{apiUrl:o}=S(),d=e.inject("root"),i=l,a=e.reactive({active:!1,items:[],positions:{left:0,top:0}}),c=e.ref([]);t.on("vf-context-selected",h=>{c.value=h});const{t:m}=e.inject("i18n"),s={newfolder:{title:()=>m("New Folder"),action:()=>{t.emit("vf-modal-show",{type:"new-folder"})}},delete:{title:()=>m("Delete"),action:()=>{t.emit("vf-modal-show",{type:"delete",items:c})}},refresh:{title:()=>m("Refresh"),action:()=>{t.emit("vf-fetch",{params:{q:"index",adapter:i.current.adapter,path:i.current.dirname}})}},preview:{title:()=>m("Preview"),action:()=>{t.emit("vf-modal-show",{type:"preview",adapter:i.current.adapter,item:c.value[0]})}},open:{title:()=>m("Open"),action:()=>{t.emit("vf-search-exit"),t.emit("vf-fetch",{params:{q:"index",adapter:i.current.adapter,path:c.value[0].path}})}},openDir:{title:()=>m("Open containing folder"),action:()=>{t.emit("vf-search-exit"),t.emit("vf-fetch",{params:{q:"index",adapter:i.current.adapter,path:c.value[0].dir}})}},download:{title:()=>m("Download"),action:()=>{const h=o.value+"?"+L({q:"download",adapter:i.current.adapter,path:c.value[0].path});t.emit("vf-download",h)}},archive:{title:()=>m("Archive"),action:()=>{t.emit("vf-modal-show",{type:"archive",items:c})}},unarchive:{title:()=>m("Unarchive"),action:()=>{t.emit("vf-modal-show",{type:"unarchive",items:c})}},rename:{title:()=>m("Rename"),action:()=>{t.emit("vf-modal-show",{type:"rename",items:c})}}},n=h=>{t.emit("vf-contextmenu-hide"),h.action()},f=e.ref("");t.on("vf-search-query",({newQuery:h})=>{f.value=h}),t.on("vf-contextmenu-show",({event:h,area:y,items:g,target:V=null})=>{if(a.items=[],f.value)if(V)a.items.push(s.openDir),t.emit("vf-context-selected",[V]);else return;else!V&&!f.value?(a.items.push(s.refresh),a.items.push(s.newfolder),t.emit("vf-context-selected",[])):g.length>1&&g.some(_=>_.path===V.path)?(a.items.push(s.refresh),a.items.push(s.archive),a.items.push(s.delete),t.emit("vf-context-selected",g)):(V.type=="dir"?a.items.push(s.open):(a.items.push(s.preview),a.items.push(s.download)),a.items.push(s.rename),V.mime_type=="application/zip"?a.items.push(s.unarchive):a.items.push(s.archive),a.items.push(s.delete),t.emit("vf-context-selected",[V]));w(h,y)}),t.on("vf-contextmenu-hide",()=>{a.active=!1});const w=(h,y)=>{a.active=!0,e.nextTick(()=>{const g=d.value.getBoundingClientRect(),V=y.getBoundingClientRect();let _=h.pageX-g.left,x=h.pageY-g.top,k=r.value.offsetHeight,E=r.value.offsetWidth;_=V.right-h.pageX+window.scrollXa.active?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",ref_key:"contextmenu",ref:r,style:e.normalizeStyle(a.positions)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,g=>(e.openBlock(),e.createElementBlock("li",{class:"px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",key:g.title,onClick:V=>n(g)},[Po,e.createElementVNode("span",null,e.toDisplayString(g.title()),1)],8,Io))),128))],4)):e.createCommentVNode("",!0)}}),Go=(l,t)=>{const r=l[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((o,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+t)))})};async function Yo(l){return(await Go(Object.assign({"../locales/de.js":()=>Promise.resolve().then(()=>require("./de-d9027168.cjs")),"../locales/en.js":()=>Promise.resolve().then(()=>require("./en-6bb58248.cjs")),"../locales/fa.js":()=>Promise.resolve().then(()=>require("./fa-91321523.cjs")),"../locales/he.js":()=>Promise.resolve().then(()=>require("./he-dba3fb45.cjs")),"../locales/hi.js":()=>Promise.resolve().then(()=>require("./hi-66a90598.cjs")),"../locales/ru.js":()=>Promise.resolve().then(()=>require("./ru-2753c715.cjs")),"../locales/sv.js":()=>Promise.resolve().then(()=>require("./sv-51dc5883.cjs")),"../locales/tr.js":()=>Promise.resolve().then(()=>require("./tr-3c939bbd.cjs")),"../locales/zhCN.js":()=>Promise.resolve().then(()=>require("./zhCN-5e98ef29.cjs")),"../locales/zhTW.js":()=>Promise.resolve().then(()=>require("./zhTW-ffaa338d.cjs"))}),`../locales/${l}.js`)).default}function Jo(l,t,r){const{getStore:o,setStore:d}=Y(l),i=e.ref({}),a=(n,f="en")=>{Yo(n).then(w=>{i.value=w,d("locale",n),d("translations",w),r.emit("vf-toast-push",{label:"The language is set to "+n})}).catch(w=>{f?(r.emit("vf-toast-push",{label:"The selected locale is not yet supported!",type:"error"}),a(f,null)):r.emit("vf-toast-push",{label:"Locale cannot be loaded!",type:"error"})})};o("locale")?i.value=o("translations"):a(t);const c=(n,...f)=>f.length?c(n=n.replace("%s",f.shift()),...f):n;function m(n,...f){return i.value.hasOwnProperty(n)?c(i.value[n],...f):c(n,...f)}function s(){return o("locale")}return{t:m,changeLocale:a,getLocale:s}}const Wo=e.createElementVNode("iframe",{id:"download_frame",style:{display:"none"}},null,-1),Xo={name:"VueFinder"},Qo=Object.assign(Xo,{props:{url:{type:[String]},id:{type:String,default:"vf"},dark:{type:Boolean,default:!1},usePropDarkMode:{type:Boolean,default:!1},locale:{type:String,default:"en"},maxHeight:{type:String,default:"600px"},maxFileSize:{type:String,default:"10mb"},postData:{type:Object,default:{}}},setup(l){const t=l,r=oe(),{setStore:o,getStore:d}=Y(t.id),i=e.ref(d("adapter")),a=e.ref(null);e.provide("root",a),e.provide("emitter",r),e.provide("storage",Y(t.id)),e.provide("postData",t.postData),e.provide("adapter",i),e.provide("maxFileSize",t.maxFileSize),e.provide("usePropDarkMode",t.usePropDarkMode);const c=Jo(t.id,t.locale,r);e.provide("i18n",c);const{apiUrl:m,setApiUrl:s}=S();s(t.url);const n=e.reactive({adapter:i.value,storages:[],dirname:".",files:[]}),f=e.ref(d("viewport","grid")),w=t.usePropDarkMode?e.computed(()=>t.dark):e.ref(d("darkMode",t.dark));r.on("vf-darkMode-toggle",()=>{w.value=!w.value,o("darkMode",w.value)});const h=e.ref(!1);e.provide("loadingState",h);const y=e.ref(d("full-screen",!1));r.on("vf-fullscreen-toggle",()=>{y.value=!y.value,o("full-screen",y.value)}),r.on("vf-view-toggle",x=>{f.value=x});const g=e.reactive({active:!1,type:"delete",data:{}});r.on("vf-modal-close",()=>{g.active=!1}),r.on("vf-modal-show",x=>{g.active=!0,g.type=x.type,g.data=x});const V=x=>{Object.assign(n,x),r.emit("vf-nodes-selected",{}),r.emit("vf-explorer-update")};let _;return r.on("vf-fetch-abort",()=>{_.abort(),h.value=!1}),r.on("vf-fetch",({params:x,onSuccess:k=null,onError:E=null,noCloseModal:B=!1})=>{["index","search"].includes(x.q)&&(_&&_.abort(),h.value=!0),_=new AbortController;const N=_.signal;P(m.value,{params:x,signal:N}).then(D=>{i.value=D.adapter,["index","search"].includes(x.q)&&(h.value=!1),B||r.emit("vf-modal-close"),V(D),k(D)}).catch(D=>{E&&E(D)}).finally(()=>{})}),r.on("vf-download",x=>{document.getElementById("download_frame").src=x,r.emit("vf-modal-close")}),e.onMounted(()=>{r.emit("vf-fetch",{params:{q:"index",adapter:i.value}})}),(x,k)=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder",ref_key:"root",ref:a},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(w)?"dark":"")},[e.createElementVNode("div",{class:e.normalizeClass([y.value?"fixed w-screen inset-0 z-20":"relative rounded-md","border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]),style:e.normalizeStyle(y.value?"":"max-height: "+l.maxHeight),onMousedown:k[0]||(k[0]=E=>e.unref(r).emit("vf-contextmenu-hide")),onTouchstart:k[1]||(k[1]=E=>e.unref(r).emit("vf-contextmenu-hide"))},[e.createVNode(We,{data:n},null,8,["data"]),e.createVNode(Uo,{data:n},null,8,["data"]),e.createVNode(Jt,{view:f.value,data:n},null,8,["view","data"]),e.createVNode(fo,{data:n},null,8,["data"])],38),g.active?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("v-f-modal-"+g.type),{key:0,selection:g.data,current:n},null,8,["selection","current"])):e.createCommentVNode("",!0),e.createVNode(Ko,{current:n},null,8,["current"]),Wo],2)],512))}}),Zo=e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity"},null,-1),er={class:"fixed z-10 inset-0 overflow-hidden"},tr={class:"relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full"},or={class:"bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},rr={class:"bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},M={__name:"ModalLayout",setup(l){const t=e.inject("emitter");return e.onMounted(()=>{const r=document.querySelector(".v-f-modal input");r&&r.focus()}),(r,o)=>(e.openBlock(),e.createElementBlock("div",{class:"v-f-modal relative z-30","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",onKeyup:o[1]||(o[1]=e.withKeys(d=>e.unref(t).emit("vf-modal-close"),["esc"])),tabindex:"0"},[Zo,e.createElementVNode("div",er,[e.createElementVNode("div",{class:"flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",onMousedown:o[0]||(o[0]=e.withModifiers(d=>e.unref(t).emit("vf-modal-close"),["self"]))},[e.createElementVNode("div",tr,[e.createElementVNode("div",or,[e.renderSlot(r.$slots,"default")]),e.createElementVNode("div",rr,[e.renderSlot(r.$slots,"buttons")])])],32)])],32))}},nr=["aria-label"],ar=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1),sr=[ar],lr={name:"Message"},z=Object.assign(lr,{props:{error:{type:Boolean,default:!1}},emits:["hidden"],setup(l,{emit:t}){var m;const{t:r}=e.inject("i18n"),o=e.ref(!1),d=e.ref(null),i=e.ref((m=d.value)==null?void 0:m.strMessage),a=t;e.watch(i,()=>o.value=!1);const c=()=>{a("hidden"),o.value=!0};return(s,n)=>(e.openBlock(),e.createElementBlock("div",null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"strMessage",ref:d,class:e.normalizeClass(["flex mt-2 p-1 px-2 rounded text-sm break-all",l.error?"bg-red-100 text-red-600 dark:bg-red-950":"bg-emerald-100 text-emerald-600 dark:bg-emerald-950"])},[e.renderSlot(s.$slots,"default"),e.createElementVNode("div",{class:"ml-auto cursor-pointer",onClick:c,"aria-label":e.unref(r)("Close"),"data-microtip-position":"top-left",role:"tooltip"},sr,8,nr)],2))]))}}),ir={class:"sm:flex sm:items-start"},cr=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-red-600 dark:stroke-red-200",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})])],-1),dr={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},ur={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},mr={class:"mt-2"},pr={class:"text-sm text-gray-500"},fr={class:"text-gray-500 text-sm mb-1 overflow-auto",style:{"max-height":"200px"}},gr={class:"flex text-sm text-gray-800 dark:text-gray-400"},vr={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},hr=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),kr=[hr],yr={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},xr=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),wr=[xr],br={class:"ml-1.5"},_r={class:"m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center"},Er={name:"VFModalDelete"},Vr=Object.assign(Er,{props:{selection:Object,current:Object},setup(l){const t=e.inject("emitter");e.inject("storage");const r=e.inject("adapter"),{t:o}=e.inject("i18n"),d=l,i=e.ref(d.selection.items),a=e.ref(""),c=()=>{i.value.length&&t.emit("vf-fetch",{params:{q:"delete",adapter:r.value,path:d.current.dirname,items:JSON.stringify(i.value.map(({path:m,type:s})=>({path:m,type:s})))},onSuccess:()=>{t.emit("vf-toast-push",{label:o("Files deleted.")})},onError:m=>{a.value=o(m.message)}})};return(m,s)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Yes, Delete!")),1),e.createElementVNode("button",{type:"button",onClick:s[1]||(s[1]=n=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Cancel")),1),e.createElementVNode("div",_r,e.toDisplayString(e.unref(o)("This action cannot be undone.")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",ir,[cr,e.createElementVNode("div",dr,[e.createElementVNode("h3",ur,e.toDisplayString(e.unref(o)("Delete files")),1),e.createElementVNode("div",mr,[e.createElementVNode("p",pr,e.toDisplayString(e.unref(o)("Are you sure you want to delete these files?")),1),e.createElementVNode("div",fr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,n=>(e.openBlock(),e.createElementBlock("p",gr,[n.type==="dir"?(e.openBlock(),e.createElementBlock("svg",vr,kr)):(e.openBlock(),e.createElementBlock("svg",yr,wr)),e.createElementVNode("span",br,e.toDisplayString(n.basename),1)]))),256))]),a.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:s[0]||(s[0]=n=>a.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Nr={class:"sm:flex sm:items-start"},$r=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1),Br={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Cr={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},jr={class:"mt-2"},Dr={class:"text-sm text-gray-500"},Sr={name:"VFModalMessage"},Mr=Object.assign(Sr,{props:{selection:Object},setup(l){const t=e.inject("emitter"),{t:r}=e.inject("i18n");return(o,d)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:d[0]||(d[0]=i=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(r)("Close")),1)]),default:e.withCtx(()=>{var i,a;return[e.createElementVNode("div",Nr,[$r,e.createElementVNode("div",Br,[e.createElementVNode("h3",Cr,e.toDisplayString(((i=l.selection)==null?void 0:i.title)??"Title"),1),e.createElementVNode("div",jr,[e.createElementVNode("p",Dr,e.toDisplayString(((a=l.selection)==null?void 0:a.message)??"Message"),1)])])])]}),_:1}))}}),zr={class:"sm:flex sm:items-start"},Or=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})])],-1),Fr={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Tr={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Lr={class:"mt-2"},Ar={class:"text-sm text-gray-500"},Hr=["placeholder"],qr={name:"VFModalNewFolder"},Ur=Object.assign(qr,{props:{selection:Object,current:Object},setup(l){const t=e.inject("emitter");e.inject("storage");const r=e.inject("adapter"),{t:o}=e.inject("i18n"),d=l,i=e.ref(""),a=e.ref(""),c=()=>{i.value!=""&&t.emit("vf-fetch",{params:{q:"newfolder",adapter:r.value,path:d.current.dirname,name:i.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("%s is created.",i.value)})},onError:m=>{a.value=o(m.message)}})};return(m,s)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:s[2]||(s[2]=n=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",zr,[Or,e.createElementVNode("div",Fr,[e.createElementVNode("h3",Tr,e.toDisplayString(e.unref(o)("New Folder")),1),e.createElementVNode("div",Lr,[e.createElementVNode("p",Ar,e.toDisplayString(e.unref(o)("Create a new folder")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>i.value=n),onKeyup:e.withKeys(c,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(o)("Folder Name"),type:"text"},null,40,Hr),[[e.vModelText,i.value]]),a.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:s[1]||(s[1]=n=>a.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Ir={class:"sm:flex sm:items-start"},Pr=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1),Rr={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Kr={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Gr={class:"mt-2"},Yr={class:"text-sm text-gray-500"},Jr=["placeholder"],Wr={name:"VFModalNewFile"},Xr=Object.assign(Wr,{props:{selection:Object,current:Object},setup(l){const t=e.inject("emitter");e.inject("storage");const r=e.inject("adapter"),{t:o}=e.inject("i18n"),d=l,i=e.ref(""),a=e.ref(""),c=()=>{i.value!=""&&t.emit("vf-fetch",{params:{q:"newfile",adapter:r.value,path:d.current.dirname,name:i.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("%s is created.",i.value)})},onError:m=>{a.value=o(m.message)}})};return(m,s)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:s[2]||(s[2]=n=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Ir,[Pr,e.createElementVNode("div",Rr,[e.createElementVNode("h3",Kr,e.toDisplayString(e.unref(o)("New File")),1),e.createElementVNode("div",Gr,[e.createElementVNode("p",Yr,e.toDisplayString(e.unref(o)("Create a new file")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>i.value=n),onKeyup:e.withKeys(c,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(o)("File Name"),type:"text"},null,40,Jr),[[e.vModelText,i.value]]),a.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:s[1]||(s[1]=n=>a.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Qr={class:"flex"},Zr=["aria-label"],en={class:"ml-auto mb-2"},tn={key:0,class:"p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"},on={key:1},rn={__name:"Text",props:{selection:Object},emits:["load"],setup(l,{emit:t}){const r=t,o=e.ref(""),d=e.ref(""),i=e.ref(null),a=e.ref(!1),{apiUrl:c}=S(),m=l,s=e.ref(""),n=e.ref(!1),{t:f}=e.inject("i18n");e.onMounted(()=>{P(c.value,{params:{q:"preview",adapter:m.selection.adapter,path:m.selection.item.path},json:!1}).then(g=>{o.value=g,r("load")})});const w=()=>{a.value=!a.value,d.value=o.value,a.value==!0&&e.nextTick(()=>{i.value.focus()})},h=e.inject("postData"),y=()=>{s.value="",n.value=!1,P(c.value,{method:"POST",params:Object.assign(h,{q:"save",adapter:m.selection.adapter,path:m.selection.item.path,content:d.value}),json:!1}).then(g=>{s.value=f("Updated."),o.value=g,r("load"),a.value=!a.value}).catch(g=>{s.value=f(g.message),n.value=!0})};return(g,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Qr,[e.createElementVNode("div",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":l.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(l.selection.item.basename),9,Zr),e.createElementVNode("div",en,[a.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:y,class:"ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(f)("Save")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"ml-1 px-2 py-1 text-blue-500",onClick:V[0]||(V[0]=_=>w())},e.toDisplayString(a.value?e.unref(f)("Cancel"):e.unref(f)("Edit")),1)])]),e.createElementVNode("div",null,[a.value?(e.openBlock(),e.createElementBlock("div",on,[e.withDirectives(e.createElementVNode("textarea",{ref_key:"editInput",ref:i,"onUpdate:modelValue":V[1]||(V[1]=_=>d.value=_),class:"w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] max-h-[60vh] text-xs",name:"text",id:"",cols:"30",rows:"10"},null,512),[[e.vModelText,d.value]])])):(e.openBlock(),e.createElementBlock("pre",tn,e.toDisplayString(o.value),1)),s.value.length?(e.openBlock(),e.createBlock(z,{key:2,onHidden:V[2]||(V[2]=_=>s.value=""),error:n.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)])],64))}},nn={class:"flex"},an=["aria-label"],sn={class:"ml-auto mb-2"},ln={class:"w-full flex justify-center"},cn=["src"],dn={__name:"Image",props:{selection:Object},emits:["load"],setup(l,{emit:t}){const r=t,o=l,{t:d}=e.inject("i18n"),{apiUrl:i}=S(),a=e.ref(null),c=e.ref(null),m=e.ref(!1),s=e.ref(""),n=e.ref(!1),f=()=>{m.value=!m.value,m.value?c.value=new ae(a.value,{crop(y){}}):c.value.destroy()},w=e.inject("postData"),h=()=>{c.value.getCroppedCanvas({width:795,height:341}).toBlob(y=>{s.value="",n.value=!1,P(i.value,{method:"POST",params:Object.assign(w,{q:"upload",adapter:o.selection.adapter,path:o.selection.item.path,file:y}),name:o.selection.item.basename,json:!1}).then(g=>{s.value=d("Updated."),a.value.src=J(o.selection.adapter,o.selection.item.path),f(),r("load")}).catch(g=>{s.value=d(g.message),n.value=!0})})};return e.onMounted(()=>{r("load")}),(y,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",nn,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":l.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(l.selection.item.basename),9,an),e.createElementVNode("div",sn,[m.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:h,class:"ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(d)("Crop")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"ml-1 px-2 py-1 text-blue-500",onClick:g[0]||(g[0]=V=>f())},e.toDisplayString(m.value?e.unref(d)("Cancel"):e.unref(d)("Edit")),1)])]),e.createElementVNode("div",ln,[e.createElementVNode("img",{ref_key:"image",ref:a,class:"max-w-[50vh] max-h-[50vh]",src:e.unref(J)(o.selection.adapter,o.selection.item.path),alt:""},null,8,cn)]),s.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:g[1]||(g[1]=V=>s.value=""),error:n.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)],64))}},un={class:"flex"},mn=["aria-label"],pn=e.createElementVNode("div",null,null,-1),fn={__name:"Default",props:{selection:Object},emits:["load"],setup(l,{emit:t}){const r=t;return e.onMounted(()=>{r("load")}),(o,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",un,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":l.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(l.selection.item.basename),9,mn)]),pn],64))}},gn=["aria-label"],vn={class:"w-full",preload:"",controls:""},hn=["src"],kn={__name:"Video",props:{selection:Object},emits:["load"],setup(l,{emit:t}){const{apiUrl:r}=S(),o=l,d=t,i=()=>r.value+"?"+L({q:"preview",adapter:o.selection.adapter,path:o.selection.item.path});return e.onMounted(()=>{d("load")}),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":l.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(l.selection.item.basename),9,gn),e.createElementVNode("div",null,[e.createElementVNode("video",vn,[e.createElementVNode("source",{src:i(),type:"video/mp4"},null,8,hn),e.createTextVNode(" Your browser does not support the video tag. ")])])],64))}},yn=["aria-label"],xn={class:"w-full",controls:""},wn=["src"],bn={__name:"Audio",props:{selection:Object},emits:["load"],setup(l,{emit:t}){const{apiUrl:r}=S(),o=l,d=t,i=()=>r.value+"?"+L({q:"preview",adapter:o.selection.adapter,path:o.selection.item.path});return e.onMounted(()=>{d("load")}),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":l.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(l.selection.item.basename),9,yn),e.createElementVNode("div",null,[e.createElementVNode("audio",xn,[e.createElementVNode("source",{src:i(),type:"audio/mpeg"},null,8,wn),e.createTextVNode(" Your browser does not support the audio element. ")])])],64))}},_n=["aria-label"],En=["data"],Vn=["src"],Nn=e.createElementVNode("p",null,[e.createTextVNode(" Your browser does not support PDFs. "),e.createElementVNode("a",{href:"https://example.com/test.pdf"},"Download the PDF"),e.createTextVNode(" . ")],-1),$n=[Nn],Bn={__name:"Pdf",props:{selection:Object},emits:["load"],setup(l,{emit:t}){const{apiUrl:r}=S(),o=l,d=t,i=()=>r.value+"?"+L({q:"preview",adapter:o.selection.adapter,path:o.selection.item.path});return e.onMounted(()=>{d("load")}),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":l.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(l.selection.item.basename),9,_n),e.createElementVNode("div",null,[e.createElementVNode("object",{class:"h-[60vh]",data:i(),type:"application/pdf",width:"100%",height:"100%"},[e.createElementVNode("iframe",{class:"border-0",src:i(),width:"100%",height:"100%"},$n,8,Vn)],8,En)])],64))}},Cn={class:"sm:flex sm:items-start"},jn={class:"mt-3 text-center sm:mt-0 sm:text-left w-full"},Dn={class:"text-gray-700 dark:text-gray-200 text-sm"},Sn={key:0,class:"flex leading-5"},Mn=e.createElementVNode("svg",{class:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),zn={class:"py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs"},On={class:"font-bold pl-2"},Fn={class:"font-bold pl-2"},Tn={name:"VFModalPreview"},Ln=Object.assign(Tn,{props:{selection:Object},setup(l){const{apiUrl:t}=S(),r=e.inject("emitter"),{t:o}=e.inject("i18n"),d=e.ref(!1),i=s=>d.value=s,a=l,c=s=>(a.selection.item.mime_type??"").startsWith(s),m=()=>{const s=t.value+"?"+L({q:"download",adapter:a.selection.adapter,path:a.selection.item.path});r.emit("vf-download",s)};return(s,n)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:n[6]||(n[6]=f=>e.unref(r).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-gray-400 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Close")),1),e.createElementVNode("button",{type:"button",onClick:n[7]||(n[7]=f=>m()),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-gray-400 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Download")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Cn,[e.createElementVNode("div",jn,[e.createElementVNode("div",null,[c("text")?(e.openBlock(),e.createBlock(rn,{key:0,selection:l.selection,onLoad:n[0]||(n[0]=f=>i(!0))},null,8,["selection"])):c("image")?(e.openBlock(),e.createBlock(dn,{key:1,selection:l.selection,onLoad:n[1]||(n[1]=f=>i(!0))},null,8,["selection"])):c("video")?(e.openBlock(),e.createBlock(kn,{key:2,selection:l.selection,onLoad:n[2]||(n[2]=f=>i(!0))},null,8,["selection"])):c("audio")?(e.openBlock(),e.createBlock(bn,{key:3,selection:l.selection,onLoad:n[3]||(n[3]=f=>i(!0))},null,8,["selection"])):c("application/pdf")?(e.openBlock(),e.createBlock(Bn,{key:4,selection:l.selection,onLoad:n[4]||(n[4]=f=>i(!0))},null,8,["selection"])):(e.openBlock(),e.createBlock(fn,{key:5,selection:l.selection,onLoad:n[5]||(n[5]=f=>i(!0))},null,8,["selection"]))]),e.createElementVNode("div",Dn,[d.value==!1?(e.openBlock(),e.createElementBlock("div",Sn,[Mn,e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("Loading")),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",zn,[e.createElementVNode("div",null,[e.createElementVNode("span",On,e.toDisplayString(e.unref(o)("File Size"))+": ",1),e.createTextVNode(e.toDisplayString(e.unref(X)(l.selection.item.file_size)),1)]),e.createElementVNode("div",null,[e.createElementVNode("span",Fn,e.toDisplayString(e.unref(o)("Last Modified"))+": ",1),e.createTextVNode(" "+e.toDisplayString(e.unref(ee)(l.selection.item.last_modified)),1)])])]),_:1}))}}),An={class:"sm:flex sm:items-start"},Hn=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})])],-1),qn={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Un={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},In={class:"mt-2"},Pn={class:"flex text-sm text-gray-800 dark:text-gray-400 py-2"},Rn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Kn=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),Gn=[Kn],Yn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Jn=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Wn=[Jn],Xn={class:"ml-1.5"},Qn={name:"VFModalRename"},Zn=Object.assign(Qn,{props:{selection:Object,current:Object},setup(l){const t=e.inject("emitter");e.inject("storage");const r=e.inject("adapter"),{t:o}=e.inject("i18n"),d=l,i=e.ref(d.selection.items[0]),a=e.ref(d.selection.items[0].basename),c=e.ref(""),m=()=>{a.value!=""&&t.emit("vf-fetch",{params:{q:"rename",adapter:r.value,path:d.current.dirname,item:i.value.path,name:a.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("%s is renamed.",a.value)})},onError:s=>{c.value=o(s.message)}})};return(s,n)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Rename")),1),e.createElementVNode("button",{type:"button",onClick:n[2]||(n[2]=f=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",An,[Hn,e.createElementVNode("div",qn,[e.createElementVNode("h3",Un,e.toDisplayString(e.unref(o)("Rename")),1),e.createElementVNode("div",In,[e.createElementVNode("p",Pn,[i.value.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Rn,Gn)):(e.openBlock(),e.createElementBlock("svg",Yn,Wn)),e.createElementVNode("span",Xn,e.toDisplayString(i.value.basename),1)]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=f=>a.value=f),onKeyup:e.withKeys(m,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:"Name",type:"text"},null,544),[[e.vModelText,a.value]]),c.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:n[1]||(n[1]=f=>c.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),ea={class:"sm:flex sm:items-start"},ta=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})])],-1),oa={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},ra={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},na={class:"mt-2"},aa={key:0,class:"pointer-events-none"},sa={key:1,class:"pointer-events-none"},la=["disabled"],ia=["disabled"],ca={class:"text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar"},da={class:"rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50"},ua=["textContent"],ma={class:"ml-1 w-full h-fit"},pa={class:"text-left hidden md:block"},fa={class:"text-left md:hidden"},ga={key:0,class:"ml-auto"},va=["title","disabled","onClick"],ha=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1),ka=[ha],ya={key:0,class:"py-2"},xa=["disabled"],wa={name:"VFModalUpload"},ba=Object.assign(wa,{props:{current:Object},setup(l){const{apiUrl:t}=S(),r=e.inject("emitter"),{t:o,getLocale:d}=e.inject("i18n"),i=e.inject("maxFileSize"),a=e.inject("postData"),c=l,m=o("uppy"),s={PENDING:0,CANCELED:1,UPLOADING:2,ERROR:3,DONE:10},n=e.ref({QUEUE_ENTRY_STATUS:s}),f=e.ref(null),w=e.ref(null),h=e.ref(null),y=e.ref(null),g=e.ref(null),V=e.ref(null),_=e.ref([]),x=e.ref(""),k=e.ref(!1),E=e.ref(!1);let B;function N(p){return _.value.findIndex(C=>C.id===p)}function D(p,C=null){C=C??(p.webkitRelativePath||p.name),B.addFile({name:C,type:p.type,data:p,source:"Local"})}function F(p){switch(p.status){case s.DONE:return"text-green-600";case s.ERROR:return"text-red-600";case s.CANCELED:return"text-red-600";case s.PENDING:default:return""}}const O=p=>{switch(p.status){case s.DONE:return"✓";case s.ERROR:case s.CANCELED:return"!";case s.PENDING:default:return"..."}};function A(){y.value.click()}function H(){if(!k.value){if(!_.value.filter(p=>p.status!==s.DONE).length){x.value=o("Please select file to upload first.");return}x.value="",B.retryAll(),B.upload()}}function q(){B.cancelAll({reason:"user"}),_.value.forEach(p=>{p.status!==s.DONE&&(p.status=s.CANCELED,p.statusName=o("Canceled"))}),k.value=!1}function R(p){k.value||(B.removeFile(p.id,"removed-by-user"),_.value.splice(N(p.id),1))}function v(p){if(!k.value){if(B.cancelAll({reason:"user"}),p){const C=[];_.value.forEach(u=>{u.status!==s.DONE&&C.push(u)}),_.value=[],C.forEach(u=>{D(u.originalFile,u.name)});return}_.value.splice(0)}}function b(){r.emit("vf-modal-close")}return e.onMounted(async()=>{B=new se({debug:process.env.NODE_ENV==="development",restrictions:{maxFileSize:Xe(i)},locale:m,onBeforeFileAdded(u,$){if($[u.id]!=null){const T=N(u.id);_.value[T].status===s.PENDING&&(x.value=B.i18n("noDuplicates",{fileName:u.name})),_.value=_.value.filter(K=>K.id!==u.id)}return _.value.push({id:u.id,name:u.name,size:X(u.size),status:s.PENDING,statusName:o("Pending upload"),percent:null,originalFile:u.data}),!0}}),B.use(le,{method:"post",endpoint:t.value+"?"+L(Object.assign(a,{q:"upload",adapter:c.current.adapter,path:c.current.dirname})),headers:{...I&&{"X-CSRF-Token":I}},limit:5,timeout:0,getResponseError(u,$){let j;try{j=JSON.parse(u).message}catch{j=o("Cannot parse server response.")}return new Error(j)}}),B.on("restriction-failed",(u,$)=>{x.value=$.message}),B.on("upload",()=>{k.value=!0,_.value.forEach(u=>{u.status!==s.DONE&&(u.percent=null,u.status=s.UPLOADING,u.statusName=o("Pending upload"))})}),B.on("upload-progress",(u,$)=>{const j=Math.floor($.bytesUploaded/$.bytesTotal*100);_.value[N(u.id)].percent=`${j}%`}),B.on("upload-success",u=>{const $=_.value[N(u.id)];$.status=s.DONE,$.statusName=o("Done")}),B.on("upload-error",(u,$)=>{const j=_.value[N(u.id)];j.percent=null,j.status=s.ERROR,$.isNetworkError?j.statusName=o("Network Error, Unable establish connection to the server or interrupted."):j.statusName=$?$.message:o("Unknown Error")}),B.on("error",u=>{x.value=u.message,k.value=!1,r.emit("vf-fetch",{params:{q:"index",adapter:c.current.adapter,path:c.current.dirname},noCloseModal:!0})}),B.on("complete",()=>{k.value=!1,r.emit("vf-fetch",{params:{q:"index",adapter:c.current.adapter,path:c.current.dirname},noCloseModal:!0})}),y.value.addEventListener("click",()=>{w.value.click()}),g.value.addEventListener("click",()=>{h.value.click()}),V.value.addEventListener("dragover",u=>{u.preventDefault(),E.value=!0}),V.value.addEventListener("dragleave",u=>{u.preventDefault(),E.value=!1});function p(u,$){$.isFile&&$.file(j=>u($,j)),$.isDirectory&&$.createReader().readEntries(j=>{j.forEach(T=>{p(u,T)})})}V.value.addEventListener("drop",u=>{u.preventDefault(),E.value=!1;const $=/^[/\\](.+)/;[...u.dataTransfer.items].forEach(j=>{j.kind==="file"&&p((T,K)=>{const te=$.exec(T.fullPath);D(K,te[1])},j.webkitGetAsEntry())})});const C=({target:u})=>{const $=u.files;for(const j of $)D(j)};w.value.addEventListener("change",C),h.value.addEventListener("change",C)}),e.onBeforeUnmount(()=>{B==null||B.close({reason:"unmount"})}),(p,C)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 dark:text-gray-50 sm:ml-3 sm:w-auto sm:text-sm",k.value?"bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500":"bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),disabled:k.value,onClick:e.withModifiers(H,["prevent"])},e.toDisplayString(e.unref(o)("Upload")),11,xa),k.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:e.withModifiers(q,["prevent"])},e.toDisplayString(e.unref(o)("Cancel")),1)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:e.withModifiers(b,["prevent"])},e.toDisplayString(e.unref(o)("Close")),1))]),default:e.withCtx(()=>[e.createElementVNode("div",ea,[ta,e.createElementVNode("div",oa,[e.createElementVNode("h3",ra,e.toDisplayString(e.unref(o)("Upload Files")),1),e.createElementVNode("div",na,[e.createElementVNode("div",{ref_key:"dropArea",ref:V,class:"flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]",onClick:A},[E.value?(e.openBlock(),e.createElementBlock("div",aa,e.toDisplayString(e.unref(o)("Release to drop these files.")),1)):(e.openBlock(),e.createElementBlock("div",sa,e.toDisplayString(e.unref(o)("Drag and drop the files/folders to here or click here.")),1))],512),e.createElementVNode("div",{ref_key:"container",ref:f,class:"text-gray-500 mb-1"},[e.createElementVNode("button",{ref_key:"pickFiles",ref:y,type:"button",class:"w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Select Files")),513),e.createElementVNode("button",{ref_key:"pickFolders",ref:g,type:"button",class:"w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Select Folders")),513),e.createElementVNode("button",{type:"button",class:"w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",disabled:k.value,onClick:C[0]||(C[0]=u=>v(!1))},e.toDisplayString(e.unref(o)("Clear all")),9,la),e.createElementVNode("button",{type:"button",class:"w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 disabled:cursor-not-allowed sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",disabled:k.value,onClick:C[1]||(C[1]=u=>v(!0))},e.toDisplayString(e.unref(o)("Clear only successful")),9,ia)],512),e.createElementVNode("div",ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,u=>(e.openBlock(),e.createElementBlock("div",{class:"flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",key:u.id},[e.createElementVNode("span",da,[e.createElementVNode("span",{class:e.normalizeClass(["text-base m-auto",F(u)]),textContent:e.toDisplayString(O(u))},null,10,ua)]),e.createElementVNode("div",ma,[e.createElementVNode("div",pa,e.toDisplayString(e.unref(W)(u.name,40))+" ("+e.toDisplayString(u.size)+")",1),e.createElementVNode("div",fa,e.toDisplayString(e.unref(W)(u.name,16))+" ("+e.toDisplayString(u.size)+")",1),e.createElementVNode("div",{class:e.normalizeClass(["flex break-all text-left",F(u)])},[e.createTextVNode(e.toDisplayString(u.statusName)+" ",1),u.status===n.value.QUEUE_ENTRY_STATUS.UPLOADING?(e.openBlock(),e.createElementBlock("b",ga,e.toDisplayString(u.percent),1)):e.createCommentVNode("",!0)],2)]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600",k.value?"disabled:bg-gray-100 text-white text-opacity-50":"bg-gray-100"]),title:e.unref(o)("Delete"),disabled:k.value,onClick:$=>R(u)},ka,10,va)]))),128)),_.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ya,e.toDisplayString(e.unref(o)("No files selected!")),1))])])])]),e.createElementVNode("input",{ref_key:"internalFileInput",ref:w,type:"file",multiple:"",class:"hidden"},null,512),e.createElementVNode("input",{ref_key:"internalFolderInput",ref:h,type:"file",multiple:"",webkitdirectory:"",class:"hidden"},null,512)]),_:1}))}}),_a={class:"sm:flex sm:items-start"},Ea=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])],-1),Va={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Na={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},$a={class:"mt-2"},Ba={class:"text-gray-500 text-sm mb-1 overflow-auto",style:{"max-height":"200px"}},Ca={class:"flex text-sm text-gray-800 dark:text-gray-400"},ja={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Da=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),Sa=[Da],Ma={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},za=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Oa=[za],Fa={class:"ml-1.5"},Ta=["placeholder"],La={name:"VFModalArchive"},Aa=Object.assign(La,{props:{selection:Object,current:Object},setup(l){const t=e.inject("emitter");e.inject("storage");const r=e.inject("adapter"),{t:o}=e.inject("i18n"),d=l,i=e.ref(""),a=e.ref(""),c=e.ref(d.selection.items),m=()=>{c.value.length&&t.emit("vf-fetch",{params:{q:"archive",adapter:r.value,path:d.current.dirname,items:JSON.stringify(c.value.map(({path:s,type:n})=>({path:s,type:n}))),name:i.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("The file(s) archived.")})},onError:s=>{a.value=o(s.message)}})};return(s,n)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Archive")),1),e.createElementVNode("button",{type:"button",onClick:n[2]||(n[2]=f=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",_a,[Ea,e.createElementVNode("div",Va,[e.createElementVNode("h3",Na,e.toDisplayString(e.unref(o)("Archive the files")),1),e.createElementVNode("div",$a,[e.createElementVNode("div",Ba,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,f=>(e.openBlock(),e.createElementBlock("p",Ca,[f.type=="dir"?(e.openBlock(),e.createElementBlock("svg",ja,Sa)):(e.openBlock(),e.createElementBlock("svg",Ma,Oa)),e.createElementVNode("span",Fa,e.toDisplayString(f.basename),1)]))),256))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=f=>i.value=f),onKeyup:e.withKeys(m,["enter"]),class:"my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(o)("Archive name. (.zip file will be created)"),type:"text"},null,40,Ta),[[e.vModelText,i.value]]),a.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:n[1]||(n[1]=f=>a.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Ha={class:"sm:flex sm:items-start"},qa=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])],-1),Ua={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Ia={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Pa={class:"mt-2"},Ra={class:"flex text-sm text-gray-800 dark:text-gray-400"},Ka={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Ga=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),Ya=[Ga],Ja={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Wa=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Xa=[Wa],Qa={class:"ml-1.5"},Za={class:"my-1 text-sm text-gray-500"},es={name:"VFModalUnarchive"},ts=Object.assign(es,{props:{selection:Object,current:Object},setup(l){const t=e.inject("emitter");e.inject("storage");const r=e.inject("adapter"),{t:o}=e.inject("i18n"),d=l;e.ref("");const i=e.ref(d.selection.items[0]),a=e.ref(""),c=e.ref([]),m=()=>{t.emit("vf-fetch",{params:{q:"unarchive",adapter:r.value,path:d.current.dirname,item:i.value.path},onSuccess:()=>{t.emit("vf-toast-push",{label:o("The file unarchived.")})},onError:s=>{a.value=o(s.message)}})};return(s,n)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Unarchive")),1),e.createElementVNode("button",{type:"button",onClick:n[1]||(n[1]=f=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Ha,[qa,e.createElementVNode("div",Ua,[e.createElementVNode("h3",Ia,e.toDisplayString(e.unref(o)("Unarchive")),1),e.createElementVNode("div",Pa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,f=>(e.openBlock(),e.createElementBlock("p",Ra,[f.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Ka,Ya)):(e.openBlock(),e.createElementBlock("svg",Ja,Xa)),e.createElementVNode("span",Qa,e.toDisplayString(f.basename),1)]))),256)),e.createElementVNode("p",Za,e.toDisplayString(e.unref(o)("The archive will be unarchived at"))+" ("+e.toDisplayString(l.current.dirname)+")",1),a.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:n[0]||(n[0]=f=>a.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),os={class:"sm:flex sm:items-start"},rs=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{class:"h-6 w-6 stroke-red-600 dark:stroke-red-200",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1),ns={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},as={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},ss={class:"mt-2"},ls={class:"flex text-sm text-gray-800 dark:text-gray-400"},is={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},cs=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),ds=[cs],us={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ms=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),ps=[ms],fs={class:"ml-1.5"},gs={class:"text-sm text-gray-500 pb-1 pt-3"},vs={class:"flex text-sm text-gray-800 dark:text-gray-400"},hs=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),ks={class:"ml-1.5 overflow-auto"},ys={name:"VFModalMove"},xs=Object.assign(ys,{props:{selection:Object,current:Object},setup(l){const t=e.inject("emitter"),{t:r}=e.inject("i18n");e.inject("storage");const o=e.inject("adapter"),d=l,i=e.ref(d.selection.items.from),a=e.ref(""),c=()=>{i.value.length&&t.emit("vf-fetch",{params:{q:"move",adapter:o.value,path:d.current.dirname,items:JSON.stringify(i.value.map(({path:m,type:s})=>({path:m,type:s}))),item:d.selection.items.to.path},onSuccess:()=>{t.emit("vf-toast-push",{label:r("Files moved.",d.selection.items.to.name)})},onError:m=>{a.value=r(m.message)}})};return(m,s)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(r)("Yes, Move!")),1),e.createElementVNode("button",{type:"button",onClick:s[1]||(s[1]=n=>e.unref(t).emit("vf-modal-close")),class:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(r)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",os,[rs,e.createElementVNode("div",ns,[e.createElementVNode("h3",as,e.toDisplayString(e.unref(r)("Move files")),1),e.createElementVNode("div",ss,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,n=>(e.openBlock(),e.createElementBlock("p",ls,[n.type=="dir"?(e.openBlock(),e.createElementBlock("svg",is,ds)):(e.openBlock(),e.createElementBlock("svg",us,ps)),e.createElementVNode("span",fs,e.toDisplayString(n.path),1)]))),256)),e.createElementVNode("p",gs,e.toDisplayString(e.unref(r)("Are you sure you want to move these files?")),1),e.createElementVNode("p",vs,[hs,e.createElementVNode("span",ks,e.toDisplayString(l.selection.items.to.path),1)]),a.value.length?(e.openBlock(),e.createBlock(z,{key:0,onHidden:s[0]||(s[0]=n=>a.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),ws=Object.freeze(Object.defineProperty({__proto__:null,ModalArchive:Aa,ModalDelete:Vr,ModalMessage:Mr,ModalMove:xs,ModalNewFile:Xr,ModalNewFolder:Ur,ModalPreview:Ln,ModalRename:Zn,ModalUnarchive:ts,ModalUpload:ba},Symbol.toStringTag,{value:"Module"})),G={VueFinder:Qo,...ws};const bs={install(l){for(const t in G)if(G.hasOwnProperty(t)){const r=G[t];l.component(r.name,r)}}};module.exports=bs; +"use strict";const e=require("vue"),re=require("mitt"),ae=require("dragselect"),le=require("vanilla-lazyload");require("cropperjs/dist/cropper.css");const se=require("cropperjs"),ie=require("@uppy/core"),ce=require("@uppy/xhr-upload");require("microtip/microtip.css");var te;const P=(te=document.querySelector('meta[name="csrf-token"]'))==null?void 0:te.getAttribute("content"),R=(a,{method:t="get",params:n={},json:o=!0,signal:l=null})=>{const c={method:t};if(c.signal=l,t=="get")a+="?"+new URLSearchParams(n);else{c.headers={},P&&(c.headers["X-CSRF-Token"]=P);let r=new FormData;for(const[u,d]of Object.entries(n))r.append(u,d);c.body=r}return fetch(a,c).then(r=>r.ok?o?r.json():r.text():r.json().then(Promise.reject.bind(Promise)))};function Y(a){let t=localStorage.getItem(a+"_storage");const n=e.ref(JSON.parse(t));e.watch(n,o);function o(){n.value===null||n.value===""?localStorage.removeItem(a+"_storage"):localStorage.setItem(a+"_storage",JSON.stringify(n.value))}function l(u,d){n.value=Object.assign({...n.value},{[u]:d})}function c(){n.value=null}return{getStore:(u,d=null)=>n.value===null||n.value===""?d:n.value.hasOwnProperty(u)?n.value[u]:d,setStore:l,clearStore:c}}const X=e.ref("");function z(){function a(t){X.value=t}return{apiUrl:X,setApiUrl:a}}const de={class:"border-neutral-300 flex justify-between items-center py-1 text-sm"},ue={key:0,class:"flex text-center"},me=["aria-label"],pe=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})],-1),ve=[pe],fe=["aria-label"],he=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})],-1),ge=[he],ke=["aria-label"],ye=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"},null,-1),xe=[ye],we=["aria-label"],_e=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"},null,-1),be=[_e],Ee=["aria-label"],Ve=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"})],-1),Ne=[Ve],$e=["aria-label"],Be=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"},null,-1),Ce=[Be],Se=["aria-label"],De=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"},null,-1),je=[De],Me={key:1,class:"flex text-center"},ze={class:"pl-2"},Oe={class:"dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded"},Te={key:0,class:"animate-spin p-0.5 h-5 w-5 text-white ml-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Fe=e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Le=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),Ae=[Fe,Le],Ue={class:"flex text-center items-center justify-end"},He=["aria-label"],qe={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Ie={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"},Pe={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"},Re=["aria-label"],Ke={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"},Ge={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"},Ye={name:"VFToolbar"},Je=Object.assign(Ye,{props:{data:Object},setup(a){const t=e.inject("emitter");e.inject("usePropDarkMode");const{getStore:n,setStore:o}=e.inject("storage"),{t:l}=e.inject("i18n"),c=e.ref(n("viewport","grid")),r=e.ref([]),u=e.ref(n("full-screen",!1)),d=e.ref("");t.on("vf-search-query",({newQuery:g})=>{d.value=g});const i=e.inject("loadingState"),s=()=>i.value,m=()=>{u.value=!u.value,t.emit("vf-fullscreen-toggle")};return t.on("vf-nodes-selected",g=>{r.value=g}),t.on("vf-view-toggle",g=>{o("viewport",g),c.value=g}),(g,h)=>(e.openBlock(),e.createElementBlock("div",de,[d.value.length?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",ze,[e.createTextVNode(e.toDisplayString(e.unref(l)("Search results for"))+" ",1),e.createElementVNode("span",Oe,e.toDisplayString(d.value),1)]),s()?(e.openBlock(),e.createElementBlock("svg",Te,Ae)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(l)("New Folder"),"data-microtip-position":"bottom-right",role:"tooltip",onClick:h[0]||(h[0]=$=>e.unref(t).emit("vf-modal-show",{type:"new-folder",items:r.value}))},ve,8,me),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(l)("New File"),"data-microtip-position":"bottom",role:"tooltip",onClick:h[1]||(h[1]=$=>e.unref(t).emit("vf-modal-show",{type:"new-file",items:r.value}))},ge,8,fe),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(l)("Rename"),"data-microtip-position":"bottom",role:"tooltip",onClick:h[2]||(h[2]=$=>r.value.length!=1||e.unref(t).emit("vf-modal-show",{type:"rename",items:r.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([r.value.length==1?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},xe,2))],8,ke),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(l)("Delete"),"data-microtip-position":"bottom",role:"tooltip",onClick:h[3]||(h[3]=$=>!r.value.length||e.unref(t).emit("vf-modal-show",{type:"delete",items:r.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([r.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},be,2))],8,we),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(l)("Upload"),"data-microtip-position":"bottom",role:"tooltip",onClick:h[4]||(h[4]=$=>e.unref(t).emit("vf-modal-show",{type:"upload",items:r.value}))},Ne,8,Ee),r.value.length==1&&r.value[0].mime_type=="application/zip"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mx-1.5","aria-label":e.unref(l)("Unarchive"),"data-microtip-position":"bottom",role:"tooltip",onClick:h[5]||(h[5]=$=>!r.value.length||e.unref(t).emit("vf-modal-show",{type:"unarchive",items:r.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([r.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},Ce,2))],8,$e)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"mx-1.5","aria-label":e.unref(l)("Archive"),"data-microtip-position":"bottom",role:"tooltip",onClick:h[6]||(h[6]=$=>!r.value.length||e.unref(t).emit("vf-modal-show",{type:"archive",items:r.value}))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([r.value.length?"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300":"stroke-gray-200 dark:stroke-gray-700","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},je,2))],8,Se))])),e.createElementVNode("div",Ue,[e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(l)("Toggle Full Screen"),"data-microtip-position":"bottom-left",role:"tooltip",onClick:m},[(e.openBlock(),e.createElementBlock("svg",qe,[u.value?(e.openBlock(),e.createElementBlock("path",Ie)):(e.openBlock(),e.createElementBlock("path",Pe))]))],8,He),e.createElementVNode("div",{class:"mx-1.5","aria-label":e.unref(l)("Change View"),"data-microtip-position":"bottom-left",role:"tooltip",onClick:h[7]||(h[7]=$=>d.value.length||e.unref(t).emit("vf-view-toggle",c.value=="list"?"grid":"list"))},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([d.value.length?"stroke-gray-200 dark:stroke-gray-700":"cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300","h-6 w-6 md:h-8 md:w-8 m-auto"]),fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[c.value=="grid"?(e.openBlock(),e.createElementBlock("path",Ke)):e.createCommentVNode("",!0),c.value=="list"?(e.openBlock(),e.createElementBlock("path",Ge)):e.createCommentVNode("",!0)],2))],8,Re)])]))}}),oe=(a,t=null)=>new Date(a*1e3).toLocaleString(t??navigator.language??"en-US"),We={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},Xe=e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1),Qe=[Xe],Ze={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},et=e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1),tt=[et],ot={name:"VFSortIcon"},I=Object.assign(ot,{props:{direction:String},setup(a){return(t,n)=>(e.openBlock(),e.createElementBlock("div",null,[a.direction=="down"?(e.openBlock(),e.createElementBlock("svg",We,Qe)):e.createCommentVNode("",!0),a.direction=="up"?(e.openBlock(),e.createElementBlock("svg",Ze,tt)):e.createCommentVNode("",!0)]))}}),nt=["onClick"],rt={name:"VFToast.vue"},at=Object.assign(rt,{setup(a){const t=e.inject("emitter"),{getStore:n}=e.inject("storage"),o=e.ref(n("full-screen",!1)),l=d=>d=="error"?"text-red-400 border-red-400 dark:text-red-300 dark:border-red-300":"text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300",c=e.ref([]),r=d=>{c.value.splice(d,1)},u=d=>{let i=c.value.findIndex(s=>s.id===d);i!==-1&&r(i)};return t.on("vf-toast-clear",()=>{c.value=[]}),t.on("vf-toast-push",d=>{let i=new Date().getTime().toString(36).concat(performance.now().toString(),Math.random().toString()).replace(/\./g,"");d.id=i,c.value.push(d),setTimeout(()=>{u(i)},5e3)}),(d,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.value.value?"fixed":"absolute","bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"])},[e.createVNode(e.TransitionGroup,{name:"vf-toast-item","leave-active-class":"transition-all duration-1000","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(s,m)=>(e.openBlock(),e.createElementBlock("div",{onClick:g=>r(m),key:s,class:e.normalizeClass([l(s.type),"inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])},e.toDisplayString(s.label),11,nt))),128))]),_:1})],2))}}),L=a=>Object.entries(a).map(t=>t.map(encodeURIComponent).join("=")).join("&"),{apiUrl:lt}=z(),J=(a,t)=>lt.value+"?"+L({q:"preview",adapter:a,path:t});function W(a,t=14){let n=`((?=([\\w\\W]{0,${t}}))([\\w\\W]{8,})([\\w\\W]{8,}))`;return a.replace(new RegExp(n),"$2..$4")}const st={class:"relative flex-auto flex flex-col overflow-hidden"},it={key:0,class:"grid grid-cols-12 border-b border-neutral-300 border-gray-200 dark:border-gray-700 text-xs select-none"},ct={class:"absolute"},dt=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"absolute h-6 w-6 md:h-12 md:w-12 m-auto stroke-neutral-500 fill-white dark:fill-gray-700 dark:stroke-gray-600 z-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})],-1),ut={class:"text-neutral-700 dark:text-neutral-300 p-1 absolute text-center top-4 right-[-2rem] md:top-5 md:right-[-2.4rem] z-20 text-xs"},mt=["onDblclick","onContextmenu","data-type","data-item","data-index"],pt={class:"grid grid-cols-12 items-center"},vt={class:"flex col-span-7 items-center"},ft={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ht=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),gt=[ht],kt={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},yt=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),xt=[yt],wt={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},_t={class:"col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap"},bt=["onDblclick","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],Et={class:"grid grid-cols-12 items-center"},Vt={class:"flex col-span-7 items-center"},Nt={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},$t=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),Bt=[$t],Ct={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},St=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Dt=[St],jt={class:"overflow-ellipsis overflow-hidden whitespace-nowrap"},Mt={class:"col-span-2 text-center"},zt={class:"col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap"},Ot=["onDblclick","onContextmenu","onDragstart","onDragover","onDrop","data-type","data-item","data-index"],Tt={class:"relative"},Ft={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Lt=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),At=[Lt],Ut=["data-src","alt"],Ht={key:2,xmlns:"http://www.w3.org/2000/svg",class:"h-10 w-10 md:h-12 md:w-12 m-auto text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},qt=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),It=[qt],Pt={key:3,class:"absolute hidden md:block top-1/2 w-full text-center text-neutral-500"},Rt={class:"break-all"},Kt={name:"VFExplorer"},Gt=Object.assign(Kt,{props:{view:String,data:Object,search:Object},setup(a){const t=a,n=e.inject("emitter"),{setStore:o,getStore:l}=e.inject("storage"),c=e.inject("adapter"),r=y=>y==null?void 0:y.substring(0,3),u=e.ref(null),d=e.ref(null),i=e.ref(0),s=e.ref(null),{t:m}=e.inject("i18n"),g=Math.floor(Math.random()*2**32),h=e.ref(l("full-screen",!1)),$=e.inject("filesize");let E;n.on("vf-fullscreen-toggle",()=>{u.value.style.height=null,h.value=!h.value,o("full-screen",h.value)});const b=e.ref("");n.on("vf-search-query",({newQuery:y})=>{b.value=y,y?n.emit("vf-fetch",{params:{q:"search",adapter:t.data.adapter,path:t.data.dirname,filter:y},onSuccess:f=>{f.files.length||n.emit("vf-toast-push",{label:m("No search result found.")})}}):n.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:t.data.dirname}})});let _=null;const N=()=>{_&&clearTimeout(_)},x=e.ref(!0),w=y=>{y.touches.length>1&&(x.value?(s.value.stop(),n.emit("vf-toast-push",{label:m("Drag&Drop: off")})):(s.value.start(),n.emit("vf-toast-push",{label:m("Drag&Drop: on")}),n.emit("vf-explorer-update")),x.value=!x.value)},V=y=>{_=setTimeout(()=>{const f=new MouseEvent("contextmenu",{bubbles:!0,cancelable:!1,view:window,button:2,buttons:0,clientX:y.target.getBoundingClientRect().x,clientY:y.target.getBoundingClientRect().y});y.target.dispatchEvent(f)},500)},S=y=>{y.type=="dir"?(n.emit("vf-search-exit"),n.emit("vf-fetch",{params:{q:"index",adapter:t.data.adapter,path:y.path}})):n.emit("vf-modal-show",{type:"preview",adapter:t.data.adapter,item:y})},B=e.reactive({active:!1,column:"",order:""}),T=(y=!0)=>{let f=[...t.data.files],p=B.column,v=B.order=="asc"?1:-1;if(!y)return f;const k=(C,D)=>typeof C=="string"&&typeof D=="string"?C.toLowerCase().localeCompare(D.toLowerCase()):CD?1:0;return B.active&&(f=f.slice().sort((C,D)=>k(C[p],D[p])*v)),f},j=y=>{B.active&&B.column==y?(B.active=B.order=="asc",B.column=y,B.order="desc"):(B.active=!0,B.column=y,B.order="asc")},F=()=>s.value.getSelection().map(y=>JSON.parse(y.dataset.item)),U=(y,f)=>{if(y.altKey||y.ctrlKey||y.metaKey)return y.preventDefault(),!1;y.dataTransfer.setDragImage(d.value,0,15),y.dataTransfer.effectAllowed="all",y.dataTransfer.dropEffect="copy",y.dataTransfer.setData("items",JSON.stringify(F()))},H=(y,f)=>{y.preventDefault();let p=JSON.parse(y.dataTransfer.getData("items"));if(p.find(v=>v.storage!=c.value)){alert("Moving items between different storages is not supported yet.");return}n.emit("vf-modal-show",{type:"move",items:{from:p,to:f}})},A=(y,f)=>{y.preventDefault(),!f||f.type!=="dir"||s.value.getSelection().find(p=>p==y.currentTarget)?(y.dataTransfer.dropEffect="none",y.dataTransfer.effectAllowed="none"):y.dataTransfer.dropEffect="copy"},q=()=>{s.value=new ae({area:u.value,keyboardDrag:!1,selectedClass:"vf-explorer-selected",selectorClass:"vf-explorer-selector"}),n.on("vf-explorer-update",()=>e.nextTick(()=>{s.value.clearSelection(),s.value.setSettings({selectables:document.getElementsByClassName("vf-item-"+g)})})),s.value.subscribe("predragstart",({event:y,isDragging:f})=>{if(f)i.value=s.value.getSelection().length,s.value.break();else{const p=y.target.offsetWidth-y.offsetX,v=y.target.offsetHeight-y.offsetY;p<15&&v<15&&(s.value.clearSelection(),s.value.break())}}),s.value.subscribe("predragmove",({isDragging:y})=>{y&&s.value.break()}),s.value.subscribe("callback",({items:y,event:f,isDragging:p})=>{n.emit("vf-nodes-selected",F()),i.value=s.value.getSelection().length})};return e.onMounted(()=>{E=new le(u.value),q()}),e.onUpdated(()=>{s.value.Area.reset(),s.value.SelectorArea.updatePos(),E.update()}),e.onMounted(()=>{e.watch(()=>t.view,()=>n.emit("vf-explorer-update"))}),e.onBeforeUnmount(()=>{E.destroy()}),(y,f)=>(e.openBlock(),e.createElementBlock("div",st,[a.view=="list"||b.value.length?(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",{onClick:f[0]||(f[0]=p=>j("basename")),class:"col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"},[e.createTextVNode(e.toDisplayString(e.unref(m)("Name"))+" ",1),e.withDirectives(e.createVNode(I,{direction:B.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,B.active&&B.column=="basename"]])]),b.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:f[1]||(f[1]=p=>j("file_size")),class:"col-span-2 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l border-r dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(m)("Size"))+" ",1),e.withDirectives(e.createVNode(I,{direction:B.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,B.active&&B.column=="file_size"]])])),b.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:f[2]||(f[2]=p=>j("last_modified")),class:"col-span-3 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center"},[e.createTextVNode(e.toDisplayString(e.unref(m)("Date"))+" ",1),e.withDirectives(e.createVNode(I,{direction:B.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,B.active&&B.column=="last_modified"]])])),b.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,onClick:f[3]||(f[3]=p=>j("path")),class:"col-span-5 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l dark:border-gray-700"},[e.createTextVNode(e.toDisplayString(e.unref(m)("Filepath"))+" ",1),e.withDirectives(e.createVNode(I,{direction:B.order=="asc"?"down":"up"},null,8,["direction"]),[[e.vShow,B.active&&B.column=="path"]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ct,[e.createElementVNode("div",{ref_key:"dragImage",ref:d,class:"absolute -z-50 -top-96"},[dt,e.createElementVNode("div",ut,e.toDisplayString(i.value),1)],512)]),e.createElementVNode("div",{onTouchstart:w,onContextmenu:f[10]||(f[10]=e.withModifiers(p=>e.unref(n).emit("vf-contextmenu-show",{event:p,area:u.value,items:F()}),["self","prevent"])),class:e.normalizeClass([h.value?"":"resize-y","h-full w-full text-xs vf-selector-area vf-scrollbar min-h-[150px] overflow-auto p-1 z-0"]),ref_key:"selectorArea",ref:u},[b.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(T(),(p,v)=>(e.openBlock(),e.createElementBlock("div",{onDblclick:k=>S(p),onTouchstart:f[4]||(f[4]=k=>V(k)),onTouchend:f[5]||(f[5]=k=>N()),onContextmenu:e.withModifiers(k=>e.unref(n).emit("vf-contextmenu-show",{event:k,area:u.value,items:F(),target:p}),["prevent"]),class:e.normalizeClass(["vf-item-"+e.unref(g),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":p.type,"data-item":JSON.stringify(p),"data-index":v},[e.createElementVNode("div",pt,[e.createElementVNode("div",vt,[p.type=="dir"?(e.openBlock(),e.createElementBlock("svg",ft,gt)):(e.openBlock(),e.createElementBlock("svg",kt,xt)),e.createElementVNode("span",wt,e.toDisplayString(p.basename),1)]),e.createElementVNode("div",_t,e.toDisplayString(p.path),1)])],42,mt))),256)):e.createCommentVNode("",!0),a.view=="list"&&!b.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(T(),(p,v)=>(e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:k=>S(p),onTouchstart:f[6]||(f[6]=k=>V(k)),onTouchend:f[7]||(f[7]=k=>N()),onContextmenu:e.withModifiers(k=>e.unref(n).emit("vf-contextmenu-show",{event:k,area:u.value,items:F(),target:p}),["prevent"]),onDragstart:k=>U(k),onDragover:k=>A(k,p),onDrop:k=>H(k,p),class:e.normalizeClass(["vf-item-"+e.unref(g),"grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),"data-type":p.type,"data-item":JSON.stringify(p),"data-index":v},[e.createElementVNode("div",Et,[e.createElementVNode("div",Vt,[p.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Nt,Bt)):(e.openBlock(),e.createElementBlock("svg",Ct,Dt)),e.createElementVNode("span",jt,e.toDisplayString(p.basename),1)]),e.createElementVNode("div",Mt,e.toDisplayString(p.file_size?e.unref($)(p.file_size):""),1),e.createElementVNode("div",zt,e.toDisplayString(e.unref(oe)(p.last_modified)),1)])],42,bt))),256)):e.createCommentVNode("",!0),a.view=="grid"&&!b.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(T(!1),(p,v)=>(e.openBlock(),e.createElementBlock("div",{draggable:"true",onDblclick:k=>S(p),onTouchstart:f[8]||(f[8]=k=>V(k)),onTouchend:f[9]||(f[9]=k=>N()),onContextmenu:e.withModifiers(k=>e.unref(n).emit("vf-contextmenu-show",{event:k,area:u.value,items:F(),target:p}),["prevent"]),onDragstart:k=>U(k),onDragover:k=>A(k,p),onDrop:k=>H(k,p),class:e.normalizeClass(["vf-item-"+e.unref(g),"border border-transparent hover:bg-neutral-50 m-1 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 text-center justify-center select-none"]),"data-type":p.type,"data-item":JSON.stringify(p),"data-index":v},[e.createElementVNode("div",null,[e.createElementVNode("div",Tt,[p.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Ft,At)):(p.mime_type??"").startsWith("image")?(e.openBlock(),e.createElementBlock("img",{key:1,class:"lazy h-10 md:h-12 m-auto","data-src":e.unref(J)(e.unref(c).value,p.path),alt:p.basename},null,8,Ut)):(e.openBlock(),e.createElementBlock("svg",Ht,It)),!(p.mime_type??"").startsWith("image")&&p.type!="dir"?(e.openBlock(),e.createElementBlock("div",Pt,e.toDisplayString(r(p.extension)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("span",Rt,e.toDisplayString(e.unref(W)(p.basename)),1)])],42,Ot))),256)):e.createCommentVNode("",!0)],34),e.createVNode(at)]))}}),Yt={class:"p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none"},Jt={class:"flex leading-5 items-center"},Wt=["aria-label"],Xt=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"})],-1),Qt=[Xt],Zt=["value"],eo={class:"ml-3"},to={key:0},oo={class:"ml-1"},no={class:"flex leading-5 items-center justify-end"},ro={value:"",disabled:""},ao=e.createStaticVNode('',11),lo=["aria-label"],so=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 stroke-slate-500 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),io=[so],co={name:"VFStatusbar"},uo=Object.assign(co,{props:{data:Object},setup(a){const t=e.inject("emitter"),{getStore:n,setStore:o}=e.inject("storage"),l=e.ref(0),c=e.inject("adapter"),{t:r,changeLocale:u,locale:d}=e.inject("i18n"),i=()=>{t.emit("vf-search-exit"),t.emit("vf-fetch",{params:{q:"index",adapter:c.value}}),o("adapter",c.value)};t.on("vf-nodes-selected",m=>{l.value=m.length});const s=e.ref("");return t.on("vf-search-query",({newQuery:m})=>{s.value=m}),(m,g)=>(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",Jt,[e.createElementVNode("div",{class:"mx-2","aria-label":e.unref(r)("Storage"),"data-microtip-position":"top-right",role:"tooltip"},Qt,8,Wt),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":g[0]||(g[0]=h=>e.isRef(c)?c.value=h:null),onChange:i,class:"py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.data.storages,h=>(e.openBlock(),e.createElementBlock("option",{value:h},e.toDisplayString(h),9,Zt))),256))],544),[[e.vModelSelect,e.unref(c)]]),e.createElementVNode("div",eo,[s.value.length?(e.openBlock(),e.createElementBlock("span",to,e.toDisplayString(a.data.files.length)+" items found. ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",oo,e.toDisplayString(l.value>0?l.value+" "+e.unref(r)("item(s) selected."):""),1)])]),e.createElementVNode("div",no,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":g[1]||(g[1]=h=>e.isRef(d)?d.value=h:null),onChange:g[2]||(g[2]=h=>e.unref(u)(h.target.value)),class:"w-[120px] delay-200 duration-300 hover:w-full transition-[width] py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3"},[e.createElementVNode("option",ro,e.toDisplayString(e.unref(r)("Language")),1),ao],544),[[e.vModelSelect,e.unref(d)]]),e.createElementVNode("span",{class:"mr-1","aria-label":e.unref(r)("About"),"data-microtip-position":"top-left",role:"tooltip",onClick:g[3]||(g[3]=h=>e.unref(t).emit("vf-modal-show",{type:"about"}))},io,8,lo)])]))}}),mo=(a,t=0,n=!1)=>{let o;return(...l)=>{n&&!o&&a(...l),clearTimeout(o),o=setTimeout(()=>{a(...l)},t)}},po=(a,t,n)=>{const o=e.ref(a);return e.customRef((c,r)=>({get(){return c(),o.value},set:mo(u=>{o.value=u,r()},t,n)}))},vo={class:"flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs"},fo=["aria-label"],ho=e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z","clip-rule":"evenodd"},null,-1),go=[ho],ko=["aria-label"],yo=e.createElementVNode("path",{d:"M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"},null,-1),xo=[yo],wo=["aria-label"],_o=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1),bo=[_o],Eo=e.createElementVNode("path",{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},null,-1),Vo=[Eo],No={class:"flex leading-5"},$o=e.createElementVNode("span",{class:"text-neutral-300 dark:text-gray-600 mx-0.5"},"/",-1),Bo=["title","onClick"],Co={key:0,class:"animate-spin p-1 h-6 w-6 text-white ml-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},So=e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),Do=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),jo=[So,Do],Mo={key:3,class:"relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full"},zo=e.createElementVNode("div",null,[e.createElementVNode("svg",{class:"h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])],-1),Oo=["placeholder"],To=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1),Fo=[To],Lo={name:"VFBreadcrumb"},Ao=Object.assign(Lo,{props:{data:Object},setup(a){const t=e.inject("emitter");e.inject("storage");const n=e.inject("adapter"),o=e.ref(null),l=e.ref([]),c=e.ref(!1),r=e.ref(null),u=a,{t:d}=e.inject("i18n"),i=e.inject("loadingState");t.on("vf-explorer-update",()=>{let N=[],x=[];o.value=u.data.dirname??n.value+"://",o.value.length==0&&(l.value=[]),o.value.replace(n.value+"://","").split("/").forEach(function(w){N.push(w),N.join("/")!=""&&x.push({basename:w,name:w,path:n.value+"://"+N.join("/"),type:"dir"})}),x.length>4&&(x=x.slice(-5),x[0].name=".."),l.value=x});const s=()=>{c.value=!1,g.value=""};t.on("vf-search-exit",()=>{s()});const m=()=>{c.value=!0,e.nextTick(()=>r.value.focus())},g=po("",400),h=()=>i.value;e.watch(g,N=>{t.emit("vf-toast-clear"),t.emit("vf-search-query",{newQuery:N})});const $=()=>l.value.length&&!c.value,E=N=>{N.preventDefault();let x=JSON.parse(N.dataTransfer.getData("items"));if(x.find(w=>w.storage!=n.value)){alert("Moving items between different storages is not supported yet.");return}t.emit("vf-modal-show",{type:"move",items:{from:x,to:l.value[l.value.length-2]??{path:n.value+"://"}}})},b=N=>{N.preventDefault(),$()?N.dataTransfer.dropEffect="copy":(N.dataTransfer.dropEffect="none",N.dataTransfer.effectAllowed="none")},_=()=>{g.value==""&&s()};return(N,x)=>(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("span",{"aria-label":e.unref(d)("Go up a directory"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onDragover:x[0]||(x[0]=w=>b(w)),onDrop:x[1]||(x[1]=w=>E(w)),onClick:x[2]||(x[2]=w=>{var V;return!$()||e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:a.data.adapter,path:((V=l.value[l.value.length-2])==null?void 0:V.path)??e.unref(n)+"://"}})}),class:e.normalizeClass(["h-6 w-6 p-0.5 rounded",$()?"text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer":"text-gray-400 dark:text-neutral-500"]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},go,34))],8,fo),h()?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-label":e.unref(d)("Cancel"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onClick:x[4]||(x[4]=w=>e.unref(t).emit("vf-fetch-abort")),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer"},bo))],8,wo)):(e.openBlock(),e.createElementBlock("span",{key:0,"aria-label":e.unref(d)("Refresh"),"data-microtip-position":"bottom-right",role:"tooltip"},[(e.openBlock(),e.createElementBlock("svg",{onClick:x[3]||(x[3]=w=>{e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:a.data.adapter,path:a.data.dirname}})}),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"-40 -40 580 580",fill:"currentColor"},xo))],8,ko)),c.value?(e.openBlock(),e.createElementBlock("div",Mo,[zo,e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:r,onKeydown:e.withKeys(s,["esc"]),onBlur:_,"onUpdate:modelValue":x[6]||(x[6]=w=>e.isRef(g)?g.value=w:null),placeholder:e.unref(d)("Search anything.."),class:"w-full pt-1 pb-0 px-2 border-0 text-sm ring-0 outline-0 text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",type:"text"},null,40,Oo),[[e.vModelText,e.unref(g)]]),(e.openBlock(),e.createElementBlock("svg",{class:"w-6 h-6 cursor-pointer",onClick:s,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Fo))])):(e.openBlock(),e.createElementBlock("div",{key:2,class:"group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full",onClick:e.withModifiers(m,["self"])},[(e.openBlock(),e.createElementBlock("svg",{onClick:x[5]||(x[5]=w=>e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:a.data.adapter}})),class:"h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-gray-800 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},Vo)),e.createElementVNode("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(w,V)=>(e.openBlock(),e.createElementBlock("div",{key:V},[$o,e.createElementVNode("span",{class:"px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer",title:w.basename,onClick:S=>e.unref(t).emit("vf-fetch",{params:{q:"index",adapter:a.data.adapter,path:w.path}})},e.toDisplayString(w.name),9,Bo)]))),128))]),h()?(e.openBlock(),e.createElementBlock("svg",Co,jo)):e.createCommentVNode("",!0)]))]))}}),Uo=["onClick"],Ho=e.createElementVNode("span",{class:"px-1"},null,-1),qo={name:"VFContextMenu"},Io=Object.assign(qo,{props:{current:Object},setup(a){const t=e.inject("emitter"),n=e.ref(null),{apiUrl:o}=z(),l=e.inject("root"),c=a,r=e.reactive({active:!1,items:[],positions:{left:0,top:0}}),u=e.ref([]);t.on("vf-context-selected",h=>{u.value=h});const{t:d}=e.inject("i18n"),i={newfolder:{title:()=>d("New Folder"),action:()=>{t.emit("vf-modal-show",{type:"new-folder"})}},delete:{title:()=>d("Delete"),action:()=>{t.emit("vf-modal-show",{type:"delete",items:u})}},refresh:{title:()=>d("Refresh"),action:()=>{t.emit("vf-fetch",{params:{q:"index",adapter:c.current.adapter,path:c.current.dirname}})}},preview:{title:()=>d("Preview"),action:()=>{t.emit("vf-modal-show",{type:"preview",adapter:c.current.adapter,item:u.value[0]})}},open:{title:()=>d("Open"),action:()=>{t.emit("vf-search-exit"),t.emit("vf-fetch",{params:{q:"index",adapter:c.current.adapter,path:u.value[0].path}})}},openDir:{title:()=>d("Open containing folder"),action:()=>{t.emit("vf-search-exit"),t.emit("vf-fetch",{params:{q:"index",adapter:c.current.adapter,path:u.value[0].dir}})}},download:{title:()=>d("Download"),action:()=>{const h=o.value+"?"+L({q:"download",adapter:c.current.adapter,path:u.value[0].path});t.emit("vf-download",h)}},archive:{title:()=>d("Archive"),action:()=>{t.emit("vf-modal-show",{type:"archive",items:u})}},unarchive:{title:()=>d("Unarchive"),action:()=>{t.emit("vf-modal-show",{type:"unarchive",items:u})}},rename:{title:()=>d("Rename"),action:()=>{t.emit("vf-modal-show",{type:"rename",items:u})}}},s=h=>{t.emit("vf-contextmenu-hide"),h.action()},m=e.ref("");t.on("vf-search-query",({newQuery:h})=>{m.value=h}),t.on("vf-contextmenu-show",({event:h,area:$,items:E,target:b=null})=>{if(r.items=[],m.value)if(b)r.items.push(i.openDir),t.emit("vf-context-selected",[b]);else return;else!b&&!m.value?(r.items.push(i.refresh),r.items.push(i.newfolder),t.emit("vf-context-selected",[])):E.length>1&&E.some(_=>_.path===b.path)?(r.items.push(i.refresh),r.items.push(i.archive),r.items.push(i.delete),t.emit("vf-context-selected",E)):(b.type=="dir"?r.items.push(i.open):(r.items.push(i.preview),r.items.push(i.download)),r.items.push(i.rename),b.mime_type=="application/zip"?r.items.push(i.unarchive):r.items.push(i.archive),r.items.push(i.delete),t.emit("vf-context-selected",[b]));g(h,$)}),t.on("vf-contextmenu-hide",()=>{r.active=!1});const g=(h,$)=>{r.active=!0,e.nextTick(()=>{const E=l.value.getBoundingClientRect(),b=$.getBoundingClientRect();let _=h.pageX-E.left,N=h.pageY-E.top,x=n.value.offsetHeight,w=n.value.offsetWidth;_=b.right-h.pageX+window.scrollXr.active?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",ref_key:"contextmenu",ref:n,style:e.normalizeStyle(r.positions)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,E=>(e.openBlock(),e.createElementBlock("li",{class:"px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",key:E.title,onClick:b=>s(E)},[Ho,e.createElementVNode("span",null,e.toDisplayString(E.title()),1)],8,Uo))),128))],4)):e.createCommentVNode("",!0)}}),Po=(a,t)=>{const n=a[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+t)))})};async function Ro(a){return(await Po(Object.assign({"../locales/de.js":()=>Promise.resolve().then(()=>require("./de-e4938207.cjs")),"../locales/en.js":()=>Promise.resolve().then(()=>require("./en-39d37375.cjs")),"../locales/fa.js":()=>Promise.resolve().then(()=>require("./fa-64c35e1a.cjs")),"../locales/he.js":()=>Promise.resolve().then(()=>require("./he-6b2ea6a2.cjs")),"../locales/hi.js":()=>Promise.resolve().then(()=>require("./hi-7d3118ac.cjs")),"../locales/ru.js":()=>Promise.resolve().then(()=>require("./ru-f208af8a.cjs")),"../locales/sv.js":()=>Promise.resolve().then(()=>require("./sv-acbe2c28.cjs")),"../locales/tr.js":()=>Promise.resolve().then(()=>require("./tr-2fed3777.cjs")),"../locales/zhCN.js":()=>Promise.resolve().then(()=>require("./zhCN-e25e65b3.cjs")),"../locales/zhTW.js":()=>Promise.resolve().then(()=>require("./zhTW-6a024d5e.cjs"))}),`../locales/${a}.js`)).default}function Ko(a,t,n){const{getStore:o,setStore:l}=Y(a),c=e.ref({}),r=e.ref(o("locale",t)),u=(s,m="en")=>{Ro(s).then(g=>{c.value=g,l("locale",s),r.value=s,l("translations",g),n.emit("vf-toast-push",{label:"The language is set to "+s})}).catch(g=>{m?(n.emit("vf-toast-push",{label:"The selected locale is not yet supported!",type:"error"}),u(m,null)):n.emit("vf-toast-push",{label:"Locale cannot be loaded!",type:"error"})})};o("locale")?c.value=o("translations"):u(t);const d=(s,...m)=>m.length?d(s=s.replace("%s",m.shift()),...m):s;function i(s,...m){return c.value.hasOwnProperty(s)?d(c.value[s],...m):d(s,...m)}return{t:i,changeLocale:u,locale:r}}function Q(a,t,n,o,l){return(t=Math,n=t.log,o=1024,l=n(a)/n(o)|0,a/t.pow(o,l)).toFixed(0)+" "+(l?"KMGTPEZY"[--l]+"iB":"B")}function Z(a,t,n,o,l){return(t=Math,n=t.log,o=1e3,l=n(a)/n(o)|0,a/t.pow(o,l)).toFixed(0)+" "+(l?"KMGTPEZY"[--l]+"B":"B")}function Go(a){const t={k:1,m:2,g:3,t:4},o=/(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(a);return o[1]*Math.pow(1024,t[o[2].toLowerCase()])}const Yo=e.createElementVNode("iframe",{id:"download_frame",style:{display:"none"}},null,-1),Jo={name:"VueFinder"},Wo=Object.assign(Jo,{props:{url:{type:[String]},id:{type:String,default:"vf"},dark:{type:Boolean,default:!1},usePropDarkMode:{type:Boolean,default:!1},locale:{type:String,default:"en"},maxHeight:{type:String,default:"600px"},maxFileSize:{type:String,default:"10mb"},postData:{type:Object,default:{}}},setup(a){const t=a,n=re(),{setStore:o,getStore:l}=Y(t.id),c=e.ref(l("adapter")),r=e.ref(null);e.provide("root",r),e.provide("emitter",n),e.provide("storage",Y(t.id)),e.provide("postData",t.postData),e.provide("adapter",c),e.provide("maxFileSize",t.maxFileSize),e.provide("usePropDarkMode",t.usePropDarkMode);const u=Ko(t.id,t.locale,n);e.provide("i18n",u);const{apiUrl:d,setApiUrl:i}=z();i(t.url);const s=e.reactive({adapter:c.value,storages:[],dirname:".",files:[]}),m=e.ref(l("viewport","grid")),g=t.usePropDarkMode?e.computed(()=>t.dark):e.ref(l("darkMode",t.dark));e.provide("darkMode",g),n.on("vf-darkMode-toggle",()=>{g.value=!g.value,o("darkMode",g.value)});const h=e.ref(l("metricUnits",!1));e.provide("metricUnits",h);const $=e.ref(h.value?Z:Q);e.watch(h,w=>{$.value=w?Z:Q}),e.provide("filesize",$),n.on("vf-metric-units-saved",w=>{h.value=w,o("metricUnits",w)});const E=e.ref(!1);e.provide("loadingState",E);const b=e.ref(l("full-screen",!1));n.on("vf-fullscreen-toggle",()=>{b.value=!b.value,o("full-screen",b.value)}),n.on("vf-view-toggle",w=>{m.value=w});const _=e.reactive({active:!1,type:"delete",data:{}});n.on("vf-modal-close",()=>{_.active=!1}),n.on("vf-modal-show",w=>{_.active=!0,_.type=w.type,_.data=w});const N=w=>{Object.assign(s,w),n.emit("vf-nodes-selected",{}),n.emit("vf-explorer-update")};let x;return n.on("vf-fetch-abort",()=>{x.abort(),E.value=!1}),n.on("vf-fetch",({params:w,onSuccess:V=null,onError:S=null,noCloseModal:B=!1})=>{["index","search"].includes(w.q)&&(x&&x.abort(),E.value=!0),x=new AbortController;const T=x.signal;R(d.value,{params:w,signal:T}).then(j=>{c.value=j.adapter,["index","search"].includes(w.q)&&(E.value=!1),B||n.emit("vf-modal-close"),N(j),V(j)}).catch(j=>{S&&S(j)}).finally(()=>{})}),n.on("vf-download",w=>{document.getElementById("download_frame").src=w,n.emit("vf-modal-close")}),e.onMounted(()=>{n.emit("vf-fetch",{params:{q:"index",adapter:c.value}})}),(w,V)=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder",ref_key:"root",ref:r},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)?"dark":"")},[e.createElementVNode("div",{class:e.normalizeClass([b.value?"fixed w-screen inset-0 z-20":"relative rounded-md","border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]),style:e.normalizeStyle(b.value?"":"max-height: "+a.maxHeight),onMousedown:V[0]||(V[0]=S=>e.unref(n).emit("vf-contextmenu-hide")),onTouchstart:V[1]||(V[1]=S=>e.unref(n).emit("vf-contextmenu-hide"))},[e.createVNode(Je,{data:s},null,8,["data"]),e.createVNode(Ao,{data:s},null,8,["data"]),e.createVNode(Gt,{view:m.value,data:s},null,8,["view","data"]),e.createVNode(uo,{data:s},null,8,["data"])],38),_.active?(e.openBlock(),e.createBlock(e.resolveDynamicComponent("v-f-modal-"+_.type),{key:0,selection:_.data,current:s},null,8,["selection","current"])):e.createCommentVNode("",!0),e.createVNode(Io,{current:s},null,8,["current"]),Yo],2)],512))}}),Xo=e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity"},null,-1),Qo={class:"fixed z-10 inset-0 overflow-hidden"},Zo={class:"relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full"},en={class:"bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},tn={class:"bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},M={__name:"ModalLayout",setup(a){const t=e.inject("emitter");return e.onMounted(()=>{const n=document.querySelector(".v-f-modal input");n&&n.focus()}),(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:"v-f-modal relative z-30","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",onKeyup:o[1]||(o[1]=e.withKeys(l=>e.unref(t).emit("vf-modal-close"),["esc"])),tabindex:"0"},[Xo,e.createElementVNode("div",Qo,[e.createElementVNode("div",{class:"flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",onMousedown:o[0]||(o[0]=e.withModifiers(l=>e.unref(t).emit("vf-modal-close"),["self"]))},[e.createElementVNode("div",Zo,[e.createElementVNode("div",en,[e.renderSlot(n.$slots,"default")]),e.createElementVNode("div",tn,[e.renderSlot(n.$slots,"buttons")])])],32)])],32))}},on=["aria-label"],nn=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1),rn=[nn],an={name:"Message"},O=Object.assign(an,{props:{error:{type:Boolean,default:!1}},emits:["hidden"],setup(a,{emit:t}){var d;const{t:n}=e.inject("i18n"),o=e.ref(!1),l=e.ref(null),c=e.ref((d=l.value)==null?void 0:d.strMessage),r=t;e.watch(c,()=>o.value=!1);const u=()=>{r("hidden"),o.value=!0};return(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"strMessage",ref:l,class:e.normalizeClass(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75",a.error?"bg-red-100 text-red-600 ":"bg-emerald-100 text-emerald-600"])},[e.renderSlot(i.$slots,"default"),e.createElementVNode("div",{class:"ml-auto cursor-pointer",onClick:u,"aria-label":e.unref(n)("Close"),"data-microtip-position":"top-left",role:"tooltip"},rn,8,on)],2))]))}}),ln={class:"sm:flex sm:items-start"},sn=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-red-600 dark:stroke-red-200",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})])],-1),cn={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},dn={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},un={class:"mt-2"},mn={class:"text-sm text-gray-500"},pn={class:"text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",style:{"max-height":"200px"}},vn={class:"flex text-sm text-gray-800 dark:text-gray-400"},fn={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},hn=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),gn=[hn],kn={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},yn=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),xn=[yn],wn={class:"ml-1.5"},_n={class:"m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center"},bn={name:"VFModalDelete"},En=Object.assign(bn,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter");e.inject("storage");const n=e.inject("adapter"),{t:o}=e.inject("i18n"),l=a,c=e.ref(l.selection.items),r=e.ref(""),u=()=>{c.value.length&&t.emit("vf-fetch",{params:{q:"delete",adapter:n.value,path:l.current.dirname,items:JSON.stringify(c.value.map(({path:d,type:i})=>({path:d,type:i})))},onSuccess:()=>{t.emit("vf-toast-push",{label:o("Files deleted.")})},onError:d=>{r.value=o(d.message)}})};return(d,i)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:u,class:"vf-btn vf-btn-danger"},e.toDisplayString(e.unref(o)("Yes, Delete!")),1),e.createElementVNode("button",{type:"button",onClick:i[1]||(i[1]=s=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1),e.createElementVNode("div",_n,e.toDisplayString(e.unref(o)("This action cannot be undone.")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",ln,[sn,e.createElementVNode("div",cn,[e.createElementVNode("h3",dn,e.toDisplayString(e.unref(o)("Delete files")),1),e.createElementVNode("div",un,[e.createElementVNode("p",mn,e.toDisplayString(e.unref(o)("Are you sure you want to delete these files?")),1),e.createElementVNode("div",pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("p",vn,[s.type==="dir"?(e.openBlock(),e.createElementBlock("svg",fn,gn)):(e.openBlock(),e.createElementBlock("svg",kn,xn)),e.createElementVNode("span",wn,e.toDisplayString(s.basename),1)]))),256))]),r.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:i[0]||(i[0]=s=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Vn={class:"sm:flex sm:items-start"},Nn=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1),$n={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Bn={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Cn={class:"mt-2"},Sn={class:"text-sm text-gray-500"},Dn={name:"VFModalMessage"},jn=Object.assign(Dn,{props:{selection:Object},setup(a){const t=e.inject("emitter"),{t:n}=e.inject("i18n");return(o,l)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:l[0]||(l[0]=c=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(n)("Close")),1)]),default:e.withCtx(()=>{var c,r;return[e.createElementVNode("div",Vn,[Nn,e.createElementVNode("div",$n,[e.createElementVNode("h3",Bn,e.toDisplayString(((c=a.selection)==null?void 0:c.title)??"Title"),1),e.createElementVNode("div",Cn,[e.createElementVNode("p",Sn,e.toDisplayString(((r=a.selection)==null?void 0:r.message)??"Message"),1)])])])]}),_:1}))}}),Mn={class:"sm:flex sm:items-start"},zn=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})])],-1),On={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Tn={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Fn={class:"mt-2"},Ln={class:"text-sm text-gray-500"},An=["placeholder"],Un={name:"VFModalNewFolder"},Hn=Object.assign(Un,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter");e.inject("storage");const n=e.inject("adapter"),{t:o}=e.inject("i18n"),l=a,c=e.ref(""),r=e.ref(""),u=()=>{c.value!=""&&t.emit("vf-fetch",{params:{q:"newfolder",adapter:n.value,path:l.current.dirname,name:c.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("%s is created.",c.value)})},onError:d=>{r.value=o(d.message)}})};return(d,i)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:u,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:i[2]||(i[2]=s=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Mn,[zn,e.createElementVNode("div",On,[e.createElementVNode("h3",Tn,e.toDisplayString(e.unref(o)("New Folder")),1),e.createElementVNode("div",Fn,[e.createElementVNode("p",Ln,e.toDisplayString(e.unref(o)("Create a new folder")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>c.value=s),onKeyup:e.withKeys(u,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(o)("Folder Name"),type:"text"},null,40,An),[[e.vModelText,c.value]]),r.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:i[1]||(i[1]=s=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),qn={class:"sm:flex sm:items-start"},In=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1),Pn={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Rn={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Kn={class:"mt-2"},Gn={class:"text-sm text-gray-500"},Yn=["placeholder"],Jn={name:"VFModalNewFile"},Wn=Object.assign(Jn,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter");e.inject("storage");const n=e.inject("adapter"),{t:o}=e.inject("i18n"),l=a,c=e.ref(""),r=e.ref(""),u=()=>{c.value!=""&&t.emit("vf-fetch",{params:{q:"newfile",adapter:n.value,path:l.current.dirname,name:c.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("%s is created.",c.value)})},onError:d=>{r.value=o(d.message)}})};return(d,i)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:u,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:i[2]||(i[2]=s=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",qn,[In,e.createElementVNode("div",Pn,[e.createElementVNode("h3",Rn,e.toDisplayString(e.unref(o)("New File")),1),e.createElementVNode("div",Kn,[e.createElementVNode("p",Gn,e.toDisplayString(e.unref(o)("Create a new file")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>c.value=s),onKeyup:e.withKeys(u,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(o)("File Name"),type:"text"},null,40,Yn),[[e.vModelText,c.value]]),r.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:i[1]||(i[1]=s=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Xn={class:"flex"},Qn=["aria-label"],Zn={class:"ml-auto mb-2"},er={key:0,class:"p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"},tr={key:1},or={__name:"Text",props:{selection:Object},emits:["load"],setup(a,{emit:t}){const n=t,o=e.ref(""),l=e.ref(""),c=e.ref(null),r=e.ref(!1),{apiUrl:u}=z(),d=a,i=e.ref(""),s=e.ref(!1),{t:m}=e.inject("i18n");e.onMounted(()=>{R(u.value,{params:{q:"preview",adapter:d.selection.adapter,path:d.selection.item.path},json:!1}).then(E=>{o.value=E,n("load")})});const g=()=>{r.value=!r.value,l.value=o.value,r.value==!0&&e.nextTick(()=>{c.value.focus()})},h=e.inject("postData"),$=()=>{i.value="",s.value=!1,R(u.value,{method:"POST",params:Object.assign(h,{q:"save",adapter:d.selection.adapter,path:d.selection.item.path,content:l.value}),json:!1}).then(E=>{i.value=m("Updated."),o.value=E,n("load"),r.value=!r.value}).catch(E=>{i.value=m(E.message),s.value=!0})};return(E,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Xn,[e.createElementVNode("div",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":a.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(a.selection.item.basename),9,Qn),e.createElementVNode("div",Zn,[r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:$,class:"ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(m)("Save")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"ml-1 px-2 py-1 text-blue-500",onClick:b[0]||(b[0]=_=>g())},e.toDisplayString(r.value?e.unref(m)("Cancel"):e.unref(m)("Edit")),1)])]),e.createElementVNode("div",null,[r.value?(e.openBlock(),e.createElementBlock("div",tr,[e.withDirectives(e.createElementVNode("textarea",{ref_key:"editInput",ref:c,"onUpdate:modelValue":b[1]||(b[1]=_=>l.value=_),class:"w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] max-h-[60vh] text-xs",name:"text",id:"",cols:"30",rows:"10"},null,512),[[e.vModelText,l.value]])])):(e.openBlock(),e.createElementBlock("pre",er,e.toDisplayString(o.value),1)),i.value.length?(e.openBlock(),e.createBlock(O,{key:2,onHidden:b[2]||(b[2]=_=>i.value=""),error:s.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)])],64))}},nr={class:"flex"},rr=["aria-label"],ar={class:"ml-auto mb-2"},lr={class:"w-full flex justify-center"},sr=["src"],ir={__name:"Image",props:{selection:Object},emits:["load"],setup(a,{emit:t}){const n=t,o=a,{t:l}=e.inject("i18n"),{apiUrl:c}=z(),r=e.ref(null),u=e.ref(null),d=e.ref(!1),i=e.ref(""),s=e.ref(!1),m=()=>{d.value=!d.value,d.value?u.value=new se(r.value,{crop($){}}):u.value.destroy()},g=e.inject("postData"),h=()=>{u.value.getCroppedCanvas({width:795,height:341}).toBlob($=>{i.value="",s.value=!1,R(c.value,{method:"POST",params:Object.assign(g,{q:"upload",adapter:o.selection.adapter,path:o.selection.item.path,file:$}),name:o.selection.item.basename,json:!1}).then(E=>{i.value=l("Updated."),r.value.src=J(o.selection.adapter,o.selection.item.path),m(),n("load")}).catch(E=>{i.value=l(E.message),s.value=!0})})};return e.onMounted(()=>{n("load")}),($,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",nr,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":a.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(a.selection.item.basename),9,rr),e.createElementVNode("div",ar,[d.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:h,class:"ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"},e.toDisplayString(e.unref(l)("Crop")),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"ml-1 px-2 py-1 text-blue-500",onClick:E[0]||(E[0]=b=>m())},e.toDisplayString(d.value?e.unref(l)("Cancel"):e.unref(l)("Edit")),1)])]),e.createElementVNode("div",lr,[e.createElementVNode("img",{ref_key:"image",ref:r,class:"max-w-[50vh] max-h-[50vh]",src:e.unref(J)(o.selection.adapter,o.selection.item.path),alt:""},null,8,sr)]),i.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:E[1]||(E[1]=b=>i.value=""),error:s.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)],64))}},cr={class:"flex"},dr=["aria-label"],ur=e.createElementVNode("div",null,null,-1),mr={__name:"Default",props:{selection:Object},emits:["load"],setup(a,{emit:t}){const n=t;return e.onMounted(()=>{n("load")}),(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",cr,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":a.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(a.selection.item.basename),9,dr)]),ur],64))}},pr=["aria-label"],vr={class:"w-full",preload:"",controls:""},fr=["src"],hr={__name:"Video",props:{selection:Object},emits:["load"],setup(a,{emit:t}){const{apiUrl:n}=z(),o=a,l=t,c=()=>n.value+"?"+L({q:"preview",adapter:o.selection.adapter,path:o.selection.item.path});return e.onMounted(()=>{l("load")}),(r,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":a.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(a.selection.item.basename),9,pr),e.createElementVNode("div",null,[e.createElementVNode("video",vr,[e.createElementVNode("source",{src:c(),type:"video/mp4"},null,8,fr),e.createTextVNode(" Your browser does not support the video tag. ")])])],64))}},gr=["aria-label"],kr={class:"w-full",controls:""},yr=["src"],xr={__name:"Audio",props:{selection:Object},emits:["load"],setup(a,{emit:t}){const{apiUrl:n}=z(),o=a,l=t,c=()=>n.value+"?"+L({q:"preview",adapter:o.selection.adapter,path:o.selection.item.path});return e.onMounted(()=>{l("load")}),(r,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":a.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(a.selection.item.basename),9,gr),e.createElementVNode("div",null,[e.createElementVNode("audio",kr,[e.createElementVNode("source",{src:c(),type:"audio/mpeg"},null,8,yr),e.createTextVNode(" Your browser does not support the audio element. ")])])],64))}},wr=["aria-label"],_r=["data"],br=["src"],Er=e.createElementVNode("p",null,[e.createTextVNode(" Your browser does not support PDFs. "),e.createElementVNode("a",{href:"https://example.com/test.pdf"},"Download the PDF"),e.createTextVNode(" . ")],-1),Vr=[Er],Nr={__name:"Pdf",props:{selection:Object},emits:["load"],setup(a,{emit:t}){const{apiUrl:n}=z(),o=a,l=t,c=()=>n.value+"?"+L({q:"preview",adapter:o.selection.adapter,path:o.selection.item.path});return e.onMounted(()=>{l("load")}),(r,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:"mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title","aria-label":a.selection.item.path,"data-microtip-position":"bottom-right",role:"tooltip"},e.toDisplayString(a.selection.item.basename),9,wr),e.createElementVNode("div",null,[e.createElementVNode("object",{class:"h-[60vh]",data:c(),type:"application/pdf",width:"100%",height:"100%"},[e.createElementVNode("iframe",{class:"border-0",src:c(),width:"100%",height:"100%"},Vr,8,br)],8,_r)])],64))}},$r={class:"sm:flex sm:items-start"},Br={class:"mt-3 text-center sm:mt-0 sm:text-left w-full"},Cr={class:"text-gray-700 dark:text-gray-200 text-sm"},Sr={key:0,class:"flex leading-5"},Dr=e.createElementVNode("svg",{class:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25 stroke-blue-900 dark:stroke-blue-100",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),jr={class:"py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs"},Mr={class:"font-bold pl-2"},zr={class:"font-bold pl-2"},Or={name:"VFModalPreview"},Tr=Object.assign(Or,{props:{selection:Object},setup(a){const{apiUrl:t}=z(),n=e.inject("emitter"),{t:o}=e.inject("i18n"),l=e.ref(!1),c=e.inject("filesize"),r=s=>l.value=s,u=a,d=s=>(u.selection.item.mime_type??"").startsWith(s),i=()=>{const s=t.value+"?"+L({q:"download",adapter:u.selection.adapter,path:u.selection.item.path});n.emit("vf-download",s)};return(s,m)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m[6]||(m[6]=g=>e.unref(n).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Close")),1),e.createElementVNode("button",{type:"button",onClick:m[7]||(m[7]=g=>i()),class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Download")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",$r,[e.createElementVNode("div",Br,[e.createElementVNode("div",null,[d("text")?(e.openBlock(),e.createBlock(or,{key:0,selection:a.selection,onLoad:m[0]||(m[0]=g=>r(!0))},null,8,["selection"])):d("image")?(e.openBlock(),e.createBlock(ir,{key:1,selection:a.selection,onLoad:m[1]||(m[1]=g=>r(!0))},null,8,["selection"])):d("video")?(e.openBlock(),e.createBlock(hr,{key:2,selection:a.selection,onLoad:m[2]||(m[2]=g=>r(!0))},null,8,["selection"])):d("audio")?(e.openBlock(),e.createBlock(xr,{key:3,selection:a.selection,onLoad:m[3]||(m[3]=g=>r(!0))},null,8,["selection"])):d("application/pdf")?(e.openBlock(),e.createBlock(Nr,{key:4,selection:a.selection,onLoad:m[4]||(m[4]=g=>r(!0))},null,8,["selection"])):(e.openBlock(),e.createBlock(mr,{key:5,selection:a.selection,onLoad:m[5]||(m[5]=g=>r(!0))},null,8,["selection"]))]),e.createElementVNode("div",Cr,[l.value==!1?(e.openBlock(),e.createElementBlock("div",Sr,[Dr,e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("Loading")),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",jr,[e.createElementVNode("div",null,[e.createElementVNode("span",Mr,e.toDisplayString(e.unref(o)("File Size"))+": ",1),e.createTextVNode(e.toDisplayString(e.unref(c)(a.selection.item.file_size)),1)]),e.createElementVNode("div",null,[e.createElementVNode("span",zr,e.toDisplayString(e.unref(o)("Last Modified"))+": ",1),e.createTextVNode(" "+e.toDisplayString(e.unref(oe)(a.selection.item.last_modified)),1)])])]),_:1}))}}),Fr={class:"sm:flex sm:items-start"},Lr=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})])],-1),Ar={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Ur={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Hr={class:"mt-2"},qr={class:"flex text-sm text-gray-800 dark:text-gray-400 py-2"},Ir={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Pr=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),Rr=[Pr],Kr={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Gr=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Yr=[Gr],Jr={class:"ml-1.5"},Wr={name:"VFModalRename"},Xr=Object.assign(Wr,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter");e.inject("storage");const n=e.inject("adapter"),{t:o}=e.inject("i18n"),l=a,c=e.ref(l.selection.items[0]),r=e.ref(l.selection.items[0].basename),u=e.ref(""),d=()=>{r.value!=""&&t.emit("vf-fetch",{params:{q:"rename",adapter:n.value,path:l.current.dirname,item:c.value.path,name:r.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("%s is renamed.",r.value)})},onError:i=>{u.value=o(i.message)}})};return(i,s)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:d,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Rename")),1),e.createElementVNode("button",{type:"button",onClick:s[2]||(s[2]=m=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",Fr,[Lr,e.createElementVNode("div",Ar,[e.createElementVNode("h3",Ur,e.toDisplayString(e.unref(o)("Rename")),1),e.createElementVNode("div",Hr,[e.createElementVNode("p",qr,[c.value.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Ir,Rr)):(e.openBlock(),e.createElementBlock("svg",Kr,Yr)),e.createElementVNode("span",Jr,e.toDisplayString(c.value.basename),1)]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=m=>r.value=m),onKeyup:e.withKeys(d,["enter"]),class:"px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:"Name",type:"text"},null,544),[[e.vModelText,r.value]]),u.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:s[1]||(s[1]=m=>u.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),Qr={class:"sm:flex sm:items-start"},Zr=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})])],-1),ea={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},ta={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},oa={class:"mt-2"},na={key:0,class:"pointer-events-none"},ra={key:1,class:"pointer-events-none"},aa=["disabled"],la=["disabled"],sa={class:"text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar"},ia={class:"rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50"},ca=["textContent"],da={class:"ml-1 w-full h-fit"},ua={class:"text-left hidden md:block"},ma={class:"text-left md:hidden"},pa={key:0,class:"ml-auto"},va=["title","disabled","onClick"],fa=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-5 h-5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1),ha=[fa],ga={key:0,class:"py-2"},ka=["disabled"],ya={name:"VFModalUpload"},xa=Object.assign(ya,{props:{current:Object},setup(a){const{apiUrl:t}=z(),n=e.inject("emitter"),{t:o}=e.inject("i18n"),l=e.inject("maxFileSize"),c=e.inject("postData"),r=e.inject("filesize"),u=a,d=o("uppy"),i={PENDING:0,CANCELED:1,UPLOADING:2,ERROR:3,DONE:10},s=e.ref({QUEUE_ENTRY_STATUS:i}),m=e.ref(null),g=e.ref(null),h=e.ref(null),$=e.ref(null),E=e.ref(null),b=e.ref(null),_=e.ref([]),N=e.ref(""),x=e.ref(!1),w=e.ref(!1);let V;function S(f){return _.value.findIndex(p=>p.id===f)}function B(f,p=null){p=p??(f.webkitRelativePath||f.name),V.addFile({name:p,type:f.type,data:f,source:"Local"})}function T(f){switch(f.status){case i.DONE:return"text-green-600";case i.ERROR:return"text-red-600";case i.CANCELED:return"text-red-600";case i.PENDING:default:return""}}const j=f=>{switch(f.status){case i.DONE:return"✓";case i.ERROR:case i.CANCELED:return"!";case i.PENDING:default:return"..."}};function F(){$.value.click()}function U(){if(!x.value){if(!_.value.filter(f=>f.status!==i.DONE).length){N.value=o("Please select file to upload first.");return}N.value="",V.retryAll(),V.upload()}}function H(){V.cancelAll({reason:"user"}),_.value.forEach(f=>{f.status!==i.DONE&&(f.status=i.CANCELED,f.statusName=o("Canceled"))}),x.value=!1}function A(f){x.value||(V.removeFile(f.id,"removed-by-user"),_.value.splice(S(f.id),1))}function q(f){if(!x.value){if(V.cancelAll({reason:"user"}),f){const p=[];_.value.forEach(v=>{v.status!==i.DONE&&p.push(v)}),_.value=[],p.forEach(v=>{B(v.originalFile,v.name)});return}_.value.splice(0)}}function y(){n.emit("vf-modal-close")}return e.onMounted(async()=>{V=new ie({debug:process.env.NODE_ENV==="development",restrictions:{maxFileSize:Go(l)},locale:d,onBeforeFileAdded(v,k){if(k[v.id]!=null){const D=S(v.id);_.value[D].status===i.PENDING&&(N.value=V.i18n("noDuplicates",{fileName:v.name})),_.value=_.value.filter(K=>K.id!==v.id)}return _.value.push({id:v.id,name:v.name,size:r.value(v.size),status:i.PENDING,statusName:o("Pending upload"),percent:null,originalFile:v.data}),!0}}),V.use(ce,{method:"post",endpoint:t.value+"?"+L(Object.assign(c,{q:"upload",adapter:u.current.adapter,path:u.current.dirname})),headers:{...P&&{"X-CSRF-Token":P}},limit:5,timeout:0,getResponseError(v,k){let C;try{C=JSON.parse(v).message}catch{C=o("Cannot parse server response.")}return new Error(C)}}),V.on("restriction-failed",(v,k)=>{const C=_.value[S(v.id)];A(C),N.value=k.message}),V.on("upload",()=>{x.value=!0,_.value.forEach(v=>{v.status!==i.DONE&&(v.percent=null,v.status=i.UPLOADING,v.statusName=o("Pending upload"))})}),V.on("upload-progress",(v,k)=>{const C=Math.floor(k.bytesUploaded/k.bytesTotal*100);_.value[S(v.id)].percent=`${C}%`}),V.on("upload-success",v=>{const k=_.value[S(v.id)];k.status=i.DONE,k.statusName=o("Done")}),V.on("upload-error",(v,k)=>{const C=_.value[S(v.id)];C.percent=null,C.status=i.ERROR,k.isNetworkError?C.statusName=o("Network Error, Unable establish connection to the server or interrupted."):C.statusName=k?k.message:o("Unknown Error")}),V.on("error",v=>{N.value=v.message,x.value=!1,n.emit("vf-fetch",{params:{q:"index",adapter:u.current.adapter,path:u.current.dirname},noCloseModal:!0})}),V.on("complete",()=>{x.value=!1,n.emit("vf-fetch",{params:{q:"index",adapter:u.current.adapter,path:u.current.dirname},noCloseModal:!0})}),$.value.addEventListener("click",()=>{g.value.click()}),E.value.addEventListener("click",()=>{h.value.click()}),b.value.addEventListener("dragover",v=>{v.preventDefault(),w.value=!0}),b.value.addEventListener("dragleave",v=>{v.preventDefault(),w.value=!1});function f(v,k){k.isFile&&k.file(C=>v(k,C)),k.isDirectory&&k.createReader().readEntries(C=>{C.forEach(D=>{f(v,D)})})}b.value.addEventListener("drop",v=>{v.preventDefault(),w.value=!1;const k=/^[/\\](.+)/;[...v.dataTransfer.items].forEach(C=>{C.kind==="file"&&f((D,K)=>{const ne=k.exec(D.fullPath);B(K,ne[1])},C.webkitGetAsEntry())})});const p=({target:v})=>{const k=v.files;for(const C of k)B(C)};g.value.addEventListener("change",p),h.value.addEventListener("change",p)}),e.onBeforeUnmount(()=>{V==null||V.close({reason:"unmount"})}),(f,p)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["vf-btn vf-btn-primary",x.value?"bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500":"bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),disabled:x.value,onClick:e.withModifiers(U,["prevent"])},e.toDisplayString(e.unref(o)("Upload")),11,ka),x.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"vf-btn vf-btn-secondary",onClick:e.withModifiers(H,["prevent"])},e.toDisplayString(e.unref(o)("Cancel")),1)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"vf-btn vf-btn-secondary",onClick:e.withModifiers(y,["prevent"])},e.toDisplayString(e.unref(o)("Close")),1))]),default:e.withCtx(()=>[e.createElementVNode("div",Qr,[Zr,e.createElementVNode("div",ea,[e.createElementVNode("h3",ta,e.toDisplayString(e.unref(o)("Upload Files")),1),e.createElementVNode("div",oa,[e.createElementVNode("div",{ref_key:"dropArea",ref:b,class:"flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]",onClick:F},[w.value?(e.openBlock(),e.createElementBlock("div",na,e.toDisplayString(e.unref(o)("Release to drop these files.")),1)):(e.openBlock(),e.createElementBlock("div",ra,e.toDisplayString(e.unref(o)("Drag and drop the files/folders to here or click here.")),1))],512),e.createElementVNode("div",{ref_key:"container",ref:m,class:"text-gray-500 mb-1"},[e.createElementVNode("button",{ref_key:"pickFiles",ref:$,type:"button",class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Select Files")),513),e.createElementVNode("button",{ref_key:"pickFolders",ref:E,type:"button",class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Select Folders")),513),e.createElementVNode("button",{type:"button",class:"vf-btn vf-btn-secondary",disabled:x.value,onClick:p[0]||(p[0]=v=>q(!1))},e.toDisplayString(e.unref(o)("Clear all")),9,aa),e.createElementVNode("button",{type:"button",class:"vf-btn vf-btn-secondary",disabled:x.value,onClick:p[1]||(p[1]=v=>q(!0))},e.toDisplayString(e.unref(o)("Clear only successful")),9,la)],512),e.createElementVNode("div",sa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,v=>(e.openBlock(),e.createElementBlock("div",{class:"flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",key:v.id},[e.createElementVNode("span",ia,[e.createElementVNode("span",{class:e.normalizeClass(["text-base m-auto",T(v)]),textContent:e.toDisplayString(j(v))},null,10,ca)]),e.createElementVNode("div",da,[e.createElementVNode("div",ua,e.toDisplayString(e.unref(W)(v.name,40))+" ("+e.toDisplayString(v.size)+")",1),e.createElementVNode("div",ma,e.toDisplayString(e.unref(W)(v.name,16))+" ("+e.toDisplayString(v.size)+")",1),e.createElementVNode("div",{class:e.normalizeClass(["flex break-all text-left",T(v)])},[e.createTextVNode(e.toDisplayString(v.statusName)+" ",1),v.status===s.value.QUEUE_ENTRY_STATUS.UPLOADING?(e.openBlock(),e.createElementBlock("b",pa,e.toDisplayString(v.percent),1)):e.createCommentVNode("",!0)],2)]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600",x.value?"disabled:bg-gray-100 text-white text-opacity-50":"bg-gray-100"]),title:e.unref(o)("Delete"),disabled:x.value,onClick:k=>A(v)},ha,10,va)]))),128)),_.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ga,e.toDisplayString(e.unref(o)("No files selected!")),1))]),N.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:p[2]||(p[2]=v=>N.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.value),1)]),_:1})):e.createCommentVNode("",!0)])])]),e.createElementVNode("input",{ref_key:"internalFileInput",ref:g,type:"file",multiple:"",class:"hidden"},null,512),e.createElementVNode("input",{ref_key:"internalFolderInput",ref:h,type:"file",multiple:"",webkitdirectory:"",class:"hidden"},null,512)]),_:1}))}}),wa={class:"sm:flex sm:items-start"},_a=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])],-1),ba={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Ea={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Va={class:"mt-2"},Na={class:"text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",style:{"max-height":"200px"}},$a={class:"flex text-sm text-gray-800 dark:text-gray-400"},Ba={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Ca=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),Sa=[Ca],Da={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ja=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Ma=[ja],za={class:"ml-1.5"},Oa=["placeholder"],Ta={name:"VFModalArchive"},Fa=Object.assign(Ta,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter");e.inject("storage");const n=e.inject("adapter"),{t:o}=e.inject("i18n"),l=a,c=e.ref(""),r=e.ref(""),u=e.ref(l.selection.items),d=()=>{u.value.length&&t.emit("vf-fetch",{params:{q:"archive",adapter:n.value,path:l.current.dirname,items:JSON.stringify(u.value.map(({path:i,type:s})=>({path:i,type:s}))),name:c.value},onSuccess:()=>{t.emit("vf-toast-push",{label:o("The file(s) archived.")})},onError:i=>{r.value=o(i.message)}})};return(i,s)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:d,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Archive")),1),e.createElementVNode("button",{type:"button",onClick:s[2]||(s[2]=m=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",wa,[_a,e.createElementVNode("div",ba,[e.createElementVNode("h3",Ea,e.toDisplayString(e.unref(o)("Archive the files")),1),e.createElementVNode("div",Va,[e.createElementVNode("div",Na,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,m=>(e.openBlock(),e.createElementBlock("p",$a,[m.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Ba,Sa)):(e.openBlock(),e.createElementBlock("svg",Da,Ma)),e.createElementVNode("span",za,e.toDisplayString(m.basename),1)]))),256))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=m=>c.value=m),onKeyup:e.withKeys(d,["enter"]),class:"my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",placeholder:e.unref(o)("Archive name. (.zip file will be created)"),type:"text"},null,40,Oa),[[e.vModelText,c.value]]),r.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:s[1]||(s[1]=m=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),La={class:"sm:flex sm:items-start"},Aa=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24",stroke:"none","stroke-width":"1.5"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"})])],-1),Ua={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},Ha={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},qa={class:"mt-2"},Ia={class:"flex text-sm text-gray-800 dark:text-gray-400"},Pa={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Ra=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),Ka=[Ra],Ga={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},Ya=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),Ja=[Ya],Wa={class:"ml-1.5"},Xa={class:"my-1 text-sm text-gray-500"},Qa={name:"VFModalUnarchive"},Za=Object.assign(Qa,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter");e.inject("storage");const n=e.inject("adapter"),{t:o}=e.inject("i18n"),l=a;e.ref("");const c=e.ref(l.selection.items[0]),r=e.ref(""),u=e.ref([]),d=()=>{t.emit("vf-fetch",{params:{q:"unarchive",adapter:n.value,path:l.current.dirname,item:c.value.path},onSuccess:()=>{t.emit("vf-toast-push",{label:o("The file unarchived.")})},onError:i=>{r.value=o(i.message)}})};return(i,s)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:d,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Unarchive")),1),e.createElementVNode("button",{type:"button",onClick:s[1]||(s[1]=m=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",La,[Aa,e.createElementVNode("div",Ua,[e.createElementVNode("h3",Ha,e.toDisplayString(e.unref(o)("Unarchive")),1),e.createElementVNode("div",qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,m=>(e.openBlock(),e.createElementBlock("p",Ia,[m.type=="dir"?(e.openBlock(),e.createElementBlock("svg",Pa,Ka)):(e.openBlock(),e.createElementBlock("svg",Ga,Ja)),e.createElementVNode("span",Wa,e.toDisplayString(m.basename),1)]))),256)),e.createElementVNode("p",Xa,e.toDisplayString(e.unref(o)("The archive will be unarchived at"))+" ("+e.toDisplayString(a.current.dirname)+")",1),r.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:s[0]||(s[0]=m=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),el={class:"sm:flex sm:items-start"},tl=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{class:"h-6 w-6 stroke-red-600 dark:stroke-red-200",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1),ol={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},nl={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},rl={class:"mt-2"},al={class:"flex text-sm text-gray-800 dark:text-gray-400"},ll={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},sl=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},null,-1),il=[sl],cl={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},dl=e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"},null,-1),ul=[dl],ml={class:"ml-1.5"},pl={class:"text-sm text-gray-500 pb-1 pt-3"},vl={class:"flex text-sm text-gray-800 dark:text-gray-400"},fl=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})],-1),hl={class:"ml-1.5 overflow-auto"},gl={name:"VFModalMove"},kl=Object.assign(gl,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter"),{t:n}=e.inject("i18n");e.inject("storage");const o=e.inject("adapter"),l=a,c=e.ref(l.selection.items.from),r=e.ref(""),u=()=>{c.value.length&&t.emit("vf-fetch",{params:{q:"move",adapter:o.value,path:l.current.dirname,items:JSON.stringify(c.value.map(({path:d,type:i})=>({path:d,type:i}))),item:l.selection.items.to.path},onSuccess:()=>{t.emit("vf-toast-push",{label:n("Files moved.",l.selection.items.to.name)})},onError:d=>{r.value=n(d.message)}})};return(d,i)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:u,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(n)("Yes, Move!")),1),e.createElementVNode("button",{type:"button",onClick:i[1]||(i[1]=s=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(n)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",el,[tl,e.createElementVNode("div",ol,[e.createElementVNode("h3",nl,e.toDisplayString(e.unref(n)("Move files")),1),e.createElementVNode("div",rl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("p",al,[s.type=="dir"?(e.openBlock(),e.createElementBlock("svg",ll,il)):(e.openBlock(),e.createElementBlock("svg",cl,ul)),e.createElementVNode("span",ml,e.toDisplayString(s.path),1)]))),256)),e.createElementVNode("p",pl,e.toDisplayString(e.unref(n)("Are you sure you want to move these files?")),1),e.createElementVNode("p",vl,[fl,e.createElementVNode("span",hl,e.toDisplayString(a.selection.items.to.path),1)]),r.value.length?(e.openBlock(),e.createBlock(O,{key:0,onHidden:i[0]||(i[0]=s=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}}),yl=(a,t)=>{const n=a.__vccOpts||a;for(const[o,l]of t)n[o]=l;return n},xl={props:{on:{type:String,required:!0}},setup(a,{emit:t,slots:n}){const o=e.inject("emitter"),l=e.ref(!1);let c=null;const r=()=>{clearTimeout(c),l.value=!0,c=setTimeout(()=>{l.value=!1},2e3)};return e.onMounted(()=>{o.on(a.on,r)}),e.onUnmounted(()=>{clearTimeout(c)}),{shown:l}}},wl={key:1};function _l(a,t,n,o,l,c){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out",[{"opacity-0":!o.shown}]])},[a.$slots.default?e.renderSlot(a.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock("span",wl,"Saved."))],2)}const ee=yl(xl,[["render",_l]]),bl="1.3.3",El={class:"sm:flex sm:items-start"},Vl=e.createElementVNode("div",{class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])],-1),Nl={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"},$l={class:"text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",id:"modal-title"},Bl={class:"mt-2"},Cl={class:"text-sm text-gray-500"},Sl={class:"text-sm font-semibold mt-5 text-gray-900 dark:text-gray-400 tracking-wider"},Dl={class:"mt-3 text-left"},jl={class:"space-y-2"},Ml={class:"flex relative gap-x-3"},zl={class:"h-6 items-center"},Ol={class:"flex-1 block text-sm"},Tl={for:"dark_mode",class:"flex w-full font-medium text-gray-900 dark:text-gray-400"},Fl={class:"flex relative gap-x-3"},Ll={class:"h-6 items-center"},Al={class:"flex-1 block text-sm"},Ul={for:"metric_unit",class:"flex w-full font-medium text-gray-900 dark:text-gray-400"},Hl={name:"VFModalAbout"},ql=Object.assign(Hl,{props:{selection:Object,current:Object},setup(a){const t=e.inject("emitter"),{getStore:n,clearStore:o}=e.inject("storage");e.inject("adapter");const{t:l}=e.inject("i18n");e.ref(""),e.ref("");const c=e.inject("darkMode"),r=async()=>{o(),location.reload()},u=()=>{t.emit("vf-darkMode-toggle"),t.emit("vf-darkMode-saved")},d=e.inject("metricUnits"),i=()=>{t.emit("vf-metric-units-saved",!d.value)};return(s,m)=>(e.openBlock(),e.createBlock(M,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:m[2]||(m[2]=g=>e.unref(t).emit("vf-modal-close")),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(l)("Close")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",El,[Vl,e.createElementVNode("div",Nl,[e.createElementVNode("h3",$l,e.toDisplayString(e.unref(l)("About %s","Vuefinder "+e.unref(bl))),1),e.createElementVNode("div",Bl,[e.createElementVNode("p",Cl,e.toDisplayString(e.unref(l)("Vuefinder is a file manager component for vue 3.")),1),e.createElementVNode("div",null,[e.createElementVNode("h3",Sl,e.toDisplayString(e.unref(l)("Settings")),1)]),e.createElementVNode("div",Dl,[e.createElementVNode("fieldset",null,[e.createElementVNode("div",jl,[e.createElementVNode("div",Ml,[e.createElementVNode("div",zl,[e.withDirectives(e.createElementVNode("input",{id:"dark_mode",name:"dark_mode","onUpdate:modelValue":m[0]||(m[0]=g=>e.isRef(c)?c.value=g:null),type:"checkbox",onClick:u,class:"h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"},null,512),[[e.vModelCheckbox,e.unref(c)]])]),e.createElementVNode("div",Ol,[e.createElementVNode("label",Tl,[e.createTextVNode(e.toDisplayString(e.unref(l)("Dark Mode"))+" ",1),e.createVNode(ee,{class:"ms-3",on:"vf-darkMode-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",Fl,[e.createElementVNode("div",Ll,[e.withDirectives(e.createElementVNode("input",{id:"metric_unit",name:"metric_unit",type:"checkbox","onUpdate:modelValue":m[1]||(m[1]=g=>e.isRef(d)?d.value=g:null),onClick:i,class:"h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"},null,512),[[e.vModelCheckbox,e.unref(d)]])]),e.createElementVNode("div",Al,[e.createElementVNode("label",Ul,[e.createTextVNode(e.toDisplayString(e.unref(l)("Use Metric Units"))+" ",1),e.createVNode(ee,{class:"ms-3",on:"vf-metric-units-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("Saved.")),1)]),_:1})])])]),e.createElementVNode("button",{onClick:r,type:"button",class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(l)("Clear Local Storage")),1)])])])])])])]),_:1}))}}),Il=Object.freeze(Object.defineProperty({__proto__:null,ModalAbout:ql,ModalArchive:Fa,ModalDelete:En,ModalMessage:jn,ModalMove:kl,ModalNewFile:Wn,ModalNewFolder:Hn,ModalPreview:Tr,ModalRename:Xr,ModalUnarchive:Za,ModalUpload:xa},Symbol.toStringTag,{value:"Module"})),G={VueFinder:Wo,...Il};const Pl={install(a){for(const t in G)if(G.hasOwnProperty(t)){const n=G[t];a.component(n.name,n)}}};module.exports=Pl; diff --git a/dist/vuefinder.js b/dist/vuefinder.js index b96993e6..cc0b7af6 100644 --- a/dist/vuefinder.js +++ b/dist/vuefinder.js @@ -1,52 +1,52 @@ -import { ref as k, watch as ve, inject as b, openBlock as a, createElementBlock as m, createElementVNode as e, unref as r, normalizeClass as U, createTextVNode as T, toDisplayString as v, createCommentVNode as L, withDirectives as R, vShow as ae, createVNode as G, TransitionGroup as ze, withCtx as N, Fragment as I, renderList as P, reactive as ce, onMounted as Y, onUpdated as Ee, onBeforeUnmount as Ce, withModifiers as X, nextTick as pe, isRef as Me, vModelSelect as _e, createStaticVNode as Fe, customRef as Le, withKeys as se, vModelText as re, normalizeStyle as Se, provide as W, computed as Ve, createBlock as H, resolveDynamicComponent as Ne, renderSlot as ke } from "vue"; -import Be from "mitt"; -import Ae from "dragselect"; -import He from "vanilla-lazyload"; +import { ref as g, watch as le, inject as k, openBlock as r, createElementBlock as v, createElementVNode as e, unref as a, normalizeClass as T, createTextVNode as U, toDisplayString as u, createCommentVNode as V, createVNode as P, TransitionGroup as Ve, withCtx as E, Fragment as H, renderList as J, reactive as ve, onMounted as K, onUpdated as Be, onBeforeUnmount as Oe, withDirectives as R, vShow as ue, withModifiers as Z, nextTick as ge, isRef as re, vModelSelect as ye, createStaticVNode as Ae, customRef as Le, withKeys as se, vModelText as ae, normalizeStyle as ze, provide as Y, computed as Ne, createBlock as N, resolveDynamicComponent as Ue, renderSlot as pe, onUnmounted as Te, vModelCheckbox as $e } from "vue"; +import He from "mitt"; +import Ie from "dragselect"; +import qe from "vanilla-lazyload"; import "cropperjs/dist/cropper.css"; -import Te from "cropperjs"; -import Ue from "@uppy/core"; -import Ie from "@uppy/xhr-upload"; +import Re from "cropperjs"; +import Pe from "@uppy/core"; +import Ge from "@uppy/xhr-upload"; import "microtip/microtip.css"; -var je; -const ue = (je = document.querySelector('meta[name="csrf-token"]')) == null ? void 0 : je.getAttribute("content"), me = (d, { method: t = "get", params: s = {}, json: o = !0, signal: p = null }) => { - const c = { method: t }; - if (c.signal = p, t == "get") - d += "?" + new URLSearchParams(s); +var De; +const he = (De = document.querySelector('meta[name="csrf-token"]')) == null ? void 0 : De.getAttribute("content"), fe = (l, { method: t = "get", params: s = {}, json: o = !0, signal: i = null }) => { + const m = { method: t }; + if (m.signal = i, t == "get") + l += "?" + new URLSearchParams(s); else { - c.headers = {}, ue && (c.headers["X-CSRF-Token"] = ue); - let l = new FormData(); - for (const [u, g] of Object.entries(s)) - l.append(u, g); - c.body = l; + m.headers = {}, he && (m.headers["X-CSRF-Token"] = he); + let n = new FormData(); + for (const [h, p] of Object.entries(s)) + n.append(h, p); + m.body = n; } - return fetch(d, c).then((l) => l.ok ? o ? l.json() : l.text() : l.json().then(Promise.reject.bind(Promise))); + return fetch(l, m).then((n) => n.ok ? o ? n.json() : n.text() : n.json().then(Promise.reject.bind(Promise))); }; -function xe(d) { - let t = localStorage.getItem(d + "_storage"); - const s = k(JSON.parse(t)); - ve(s, o); +function xe(l) { + let t = localStorage.getItem(l + "_storage"); + const s = g(JSON.parse(t)); + le(s, o); function o() { - s.value === null || s.value === "" ? localStorage.removeItem(d + "_storage") : localStorage.setItem(d + "_storage", JSON.stringify(s.value)); + s.value === null || s.value === "" ? localStorage.removeItem(l + "_storage") : localStorage.setItem(l + "_storage", JSON.stringify(s.value)); } - function p(u, g) { - s.value = Object.assign({ ...s.value }, { [u]: g }); + function i(h, p) { + s.value = Object.assign({ ...s.value }, { [h]: p }); } - function c() { + function m() { s.value = null; } - return { getStore: (u, g = null) => s.value === null || s.value === "" ? g : s.value.hasOwnProperty(u) ? s.value[u] : g, setStore: p, clearStore: c }; + return { getStore: (h, p = null) => s.value === null || s.value === "" ? p : s.value.hasOwnProperty(h) ? s.value[h] : p, setStore: i, clearStore: m }; } -const $e = k(""); -function J() { - function d(t) { - $e.value = t; +const Ce = g(""); +function X() { + function l(t) { + Ce.value = t; } - return { apiUrl: $e, setApiUrl: d }; + return { apiUrl: Ce, setApiUrl: l }; } -const qe = { class: "border-neutral-300 flex justify-between items-center py-1 text-sm" }, Re = { +const Ye = { class: "border-neutral-300 flex justify-between items-center py-1 text-sm" }, Je = { key: 0, class: "flex text-center" -}, Pe = ["aria-label"], Ge = /* @__PURE__ */ e("svg", { +}, Ke = ["aria-label"], We = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", fill: "none", @@ -59,9 +59,9 @@ const qe = { class: "border-neutral-300 flex justify-between items-center py-1 t "stroke-linejoin": "round", d: "M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z" }) -], -1), Ye = [ - Ge -], Je = ["aria-label"], Ke = /* @__PURE__ */ e("svg", { +], -1), Xe = [ + We +], Qe = ["aria-label"], Ze = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", fill: "none", @@ -74,21 +74,21 @@ const qe = { class: "border-neutral-300 flex justify-between items-center py-1 t "stroke-linejoin": "round", d: "M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" }) -], -1), We = [ - Ke -], Xe = ["aria-label"], Qe = /* @__PURE__ */ e("path", { +], -1), et = [ + Ze +], tt = ["aria-label"], ot = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" -}, null, -1), Ze = [ - Qe -], et = ["aria-label"], tt = /* @__PURE__ */ e("path", { +}, null, -1), st = [ + ot +], at = ["aria-label"], nt = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" -}, null, -1), ot = [ - tt -], st = ["aria-label"], rt = /* @__PURE__ */ e("svg", { +}, null, -1), rt = [ + nt +], lt = ["aria-label"], it = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", fill: "none", @@ -101,322 +101,293 @@ const qe = { class: "border-neutral-300 flex justify-between items-center py-1 t "stroke-linejoin": "round", d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5" }) -], -1), at = [ - rt -], nt = ["aria-label"], lt = /* @__PURE__ */ e("path", { +], -1), dt = [ + it +], ct = ["aria-label"], ut = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z" -}, null, -1), it = [ - lt -], dt = ["aria-label"], ct = /* @__PURE__ */ e("path", { +}, null, -1), mt = [ + ut +], vt = ["aria-label"], pt = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z" -}, null, -1), ut = [ - ct -], mt = { +}, null, -1), ht = [ + pt +], ft = { key: 1, class: "flex text-center" -}, vt = { class: "pl-2" }, pt = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, ft = { +}, gt = { class: "pl-2" }, kt = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, _t = { key: 0, class: "animate-spin p-0.5 h-5 w-5 text-white ml-auto", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24" -}, gt = /* @__PURE__ */ e("circle", { +}, xt = /* @__PURE__ */ e("circle", { class: "opacity-25 stroke-blue-900 dark:stroke-blue-100", cx: "12", cy: "12", r: "10", stroke: "currentColor", "stroke-width": "4" -}, null, -1), ht = /* @__PURE__ */ e("path", { +}, null, -1), bt = /* @__PURE__ */ e("path", { class: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" -}, null, -1), kt = [ - gt, - ht -], xt = { class: "flex text-center items-center justify-end" }, bt = ["aria-label"], wt = /* @__PURE__ */ e("path", { - "stroke-linecap": "round", - "stroke-linejoin": "round", - d: "M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z" -}, null, -1), yt = [ - wt -], _t = ["aria-label"], $t = { +}, null, -1), wt = [ + xt, + bt +], yt = { class: "flex text-center items-center justify-end" }, $t = ["aria-label"], Ct = { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", fill: "none", viewBox: "0 0 24 24", stroke: "none", "stroke-width": "1.5" -}, jt = { +}, Mt = { key: 0, "stroke-linecap": "round", "stroke-linejoin": "round", d: "M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25" -}, Ct = { +}, jt = { key: 1, "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" -}, Mt = ["aria-label"], St = { +}, St = ["aria-label"], Dt = { key: 0, "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z" -}, Dt = { +}, Ot = { key: 1, "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z" -}, Ot = { +}, zt = { name: "VFToolbar" -}, zt = /* @__PURE__ */ Object.assign(Ot, { +}, Et = /* @__PURE__ */ Object.assign(zt, { props: { data: Object }, - setup(d) { - const t = b("emitter"), s = b("usePropDarkMode"), { getStore: o, setStore: p } = b("storage"), { t: c } = b("i18n"), l = k(o("viewport", "grid")), u = k([]), g = k(o("full-screen", !1)), i = k(""); - t.on("vf-search-query", ({ newQuery: _ }) => { - i.value = _; + setup(l) { + const t = k("emitter"); + k("usePropDarkMode"); + const { getStore: s, setStore: o } = k("storage"), { t: i } = k("i18n"), m = g(s("viewport", "grid")), n = g([]), h = g(s("full-screen", !1)), p = g(""); + t.on("vf-search-query", ({ newQuery: y }) => { + p.value = y; }); - const n = b("loadingState"), x = () => n.value, M = () => { - g.value = !g.value, t.emit("vf-fullscreen-toggle"); + const c = k("loadingState"), d = () => c.value, f = () => { + h.value = !h.value, t.emit("vf-fullscreen-toggle"); }; - return t.on("vf-nodes-selected", (_) => { - u.value = _; - }), t.on("vf-view-toggle", (_) => { - p("viewport", _), l.value = _; - }), (_, j) => (a(), m("div", qe, [ - i.value.length ? (a(), m("div", mt, [ - e("div", vt, [ - T(v(r(c)("Search results for")) + " ", 1), - e("span", pt, v(i.value), 1) + return t.on("vf-nodes-selected", (y) => { + n.value = y; + }), t.on("vf-view-toggle", (y) => { + o("viewport", y), m.value = y; + }), (y, w) => (r(), v("div", Ye, [ + p.value.length ? (r(), v("div", ft, [ + e("div", gt, [ + U(u(a(i)("Search results for")) + " ", 1), + e("span", kt, u(p.value), 1) ]), - x() ? (a(), m("svg", ft, kt)) : L("", !0) - ])) : (a(), m("div", Re, [ + d() ? (r(), v("svg", _t, wt)) : V("", !0) + ])) : (r(), v("div", Je, [ e("div", { class: "mx-1.5", - "aria-label": r(c)("New Folder"), + "aria-label": a(i)("New Folder"), "data-microtip-position": "bottom-right", role: "tooltip", - onClick: j[0] || (j[0] = (w) => r(t).emit("vf-modal-show", { type: "new-folder", items: u.value })) - }, Ye, 8, Pe), + onClick: w[0] || (w[0] = (B) => a(t).emit("vf-modal-show", { type: "new-folder", items: n.value })) + }, Xe, 8, Ke), e("div", { class: "mx-1.5", - "aria-label": r(c)("New File"), + "aria-label": a(i)("New File"), "data-microtip-position": "bottom", role: "tooltip", - onClick: j[1] || (j[1] = (w) => r(t).emit("vf-modal-show", { type: "new-file", items: u.value })) - }, We, 8, Je), + onClick: w[1] || (w[1] = (B) => a(t).emit("vf-modal-show", { type: "new-file", items: n.value })) + }, et, 8, Qe), e("div", { class: "mx-1.5", - "aria-label": r(c)("Rename"), + "aria-label": a(i)("Rename"), "data-microtip-position": "bottom", role: "tooltip", - onClick: j[2] || (j[2] = (w) => u.value.length != 1 || r(t).emit("vf-modal-show", { type: "rename", items: u.value })) + onClick: w[2] || (w[2] = (B) => n.value.length != 1 || a(t).emit("vf-modal-show", { type: "rename", items: n.value })) }, [ - (a(), m("svg", { + (r(), v("svg", { xmlns: "http://www.w3.org/2000/svg", - class: U([u.value.length == 1 ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), + class: T([n.value.length == 1 ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), fill: "none", viewBox: "0 0 24 24", stroke: "none", "stroke-width": "1.5" - }, Ze, 2)) - ], 8, Xe), + }, st, 2)) + ], 8, tt), e("div", { class: "mx-1.5", - "aria-label": r(c)("Delete"), + "aria-label": a(i)("Delete"), "data-microtip-position": "bottom", role: "tooltip", - onClick: j[3] || (j[3] = (w) => !u.value.length || r(t).emit("vf-modal-show", { type: "delete", items: u.value })) + onClick: w[3] || (w[3] = (B) => !n.value.length || a(t).emit("vf-modal-show", { type: "delete", items: n.value })) }, [ - (a(), m("svg", { + (r(), v("svg", { xmlns: "http://www.w3.org/2000/svg", - class: U([u.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), + class: T([n.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), fill: "none", viewBox: "0 0 24 24", stroke: "none", "stroke-width": "1.5" - }, ot, 2)) - ], 8, et), + }, rt, 2)) + ], 8, at), e("div", { class: "mx-1.5", - "aria-label": r(c)("Upload"), + "aria-label": a(i)("Upload"), "data-microtip-position": "bottom", role: "tooltip", - onClick: j[4] || (j[4] = (w) => r(t).emit("vf-modal-show", { type: "upload", items: u.value })) - }, at, 8, st), - u.value.length == 1 && u.value[0].mime_type == "application/zip" ? (a(), m("div", { + onClick: w[4] || (w[4] = (B) => a(t).emit("vf-modal-show", { type: "upload", items: n.value })) + }, dt, 8, lt), + n.value.length == 1 && n.value[0].mime_type == "application/zip" ? (r(), v("div", { key: 0, class: "mx-1.5", - "aria-label": r(c)("Unarchive"), + "aria-label": a(i)("Unarchive"), "data-microtip-position": "bottom", role: "tooltip", - onClick: j[5] || (j[5] = (w) => !u.value.length || r(t).emit("vf-modal-show", { type: "unarchive", items: u.value })) + onClick: w[5] || (w[5] = (B) => !n.value.length || a(t).emit("vf-modal-show", { type: "unarchive", items: n.value })) }, [ - (a(), m("svg", { + (r(), v("svg", { xmlns: "http://www.w3.org/2000/svg", - class: U([u.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), + class: T([n.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), fill: "none", viewBox: "0 0 24 24", stroke: "none", "stroke-width": "1.5" - }, it, 2)) - ], 8, nt)) : (a(), m("div", { + }, mt, 2)) + ], 8, ct)) : (r(), v("div", { key: 1, class: "mx-1.5", - "aria-label": r(c)("Archive"), + "aria-label": a(i)("Archive"), "data-microtip-position": "bottom", role: "tooltip", - onClick: j[6] || (j[6] = (w) => !u.value.length || r(t).emit("vf-modal-show", { type: "archive", items: u.value })) + onClick: w[6] || (w[6] = (B) => !n.value.length || a(t).emit("vf-modal-show", { type: "archive", items: n.value })) }, [ - (a(), m("svg", { + (r(), v("svg", { xmlns: "http://www.w3.org/2000/svg", - class: U([u.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), + class: T([n.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]), fill: "none", viewBox: "0 0 24 24", stroke: "none", "stroke-width": "1.5" - }, ut, 2)) - ], 8, dt)) + }, ht, 2)) + ], 8, vt)) ])), - e("div", xt, [ - R(e("div", { - class: "mx-1.5", - "aria-label": r(c)("Dark Mode"), - "data-microtip-position": "bottom", - role: "tooltip" - }, [ - (a(), m("svg", { - onClick: j[7] || (j[7] = (w) => r(t).emit("vf-darkMode-toggle")), - viewBox: "0 0 24 24", - "stroke-width": "2", - "stroke-linecap": "round", - "stroke-linejoin": "round", - class: "h-6 w-6 m-auto cursor-pointer stroke-sky-500 fill-sky-100 hover:stroke-sky-600 dark:stroke-gray-400 dark:fill-gray-400/20 dark:hover:stroke-gray-300" - }, yt)) - ], 8, bt), [ - [ae, !r(s)] - ]), + e("div", yt, [ e("div", { class: "mx-1.5", - "aria-label": r(c)("Toggle Full Screen"), + "aria-label": a(i)("Toggle Full Screen"), "data-microtip-position": "bottom-left", role: "tooltip", - onClick: M + onClick: f }, [ - (a(), m("svg", $t, [ - g.value ? (a(), m("path", jt)) : (a(), m("path", Ct)) + (r(), v("svg", Ct, [ + h.value ? (r(), v("path", Mt)) : (r(), v("path", jt)) ])) - ], 8, _t), + ], 8, $t), e("div", { class: "mx-1.5", - "aria-label": r(c)("Change View"), + "aria-label": a(i)("Change View"), "data-microtip-position": "bottom-left", role: "tooltip", - onClick: j[8] || (j[8] = (w) => i.value.length || r(t).emit("vf-view-toggle", l.value == "list" ? "grid" : "list")) + onClick: w[7] || (w[7] = (B) => p.value.length || a(t).emit("vf-view-toggle", m.value == "list" ? "grid" : "list")) }, [ - (a(), m("svg", { + (r(), v("svg", { xmlns: "http://www.w3.org/2000/svg", - class: U([i.value.length ? "stroke-gray-200 dark:stroke-gray-700" : "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", "h-6 w-6 md:h-8 md:w-8 m-auto"]), + class: T([p.value.length ? "stroke-gray-200 dark:stroke-gray-700" : "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", "h-6 w-6 md:h-8 md:w-8 m-auto"]), fill: "none", viewBox: "0 0 24 24", stroke: "none", "stroke-width": "1.5" }, [ - l.value == "grid" ? (a(), m("path", St)) : L("", !0), - l.value == "list" ? (a(), m("path", Dt)) : L("", !0) + m.value == "grid" ? (r(), v("path", Dt)) : V("", !0), + m.value == "list" ? (r(), v("path", Ot)) : V("", !0) ], 2)) - ], 8, Mt) + ], 8, St) ]) ])); } -}); -function ye(d, t, s, o, p) { - return (t = Math, s = t.log, o = 1024, p = s(d) / s(o) | 0, d / t.pow(o, p)).toFixed(0) + " " + (p ? "KMGTPEZY"[--p] + "iB" : "B"); -} -function Et(d) { - const t = { k: 1, m: 2, g: 3, t: 4 }, o = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(d); - return o[1] * Math.pow(1024, t[o[2].toLowerCase()]); -} -const De = (d, t = null) => new Date(d * 1e3).toLocaleString(t ?? navigator.language ?? "en-US"), Ft = { +}), Ee = (l, t = null) => new Date(l * 1e3).toLocaleString(t ?? navigator.language ?? "en-US"), Ft = { key: 0, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5", viewBox: "0 0 20 20", fill: "currentColor" -}, Lt = /* @__PURE__ */ e("path", { +}, Vt = /* @__PURE__ */ e("path", { "fill-rule": "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", "clip-rule": "evenodd" -}, null, -1), Vt = [ - Lt -], Nt = { +}, null, -1), Bt = [ + Vt +], At = { key: 1, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5", viewBox: "0 0 20 20", fill: "currentColor" -}, Bt = /* @__PURE__ */ e("path", { +}, Lt = /* @__PURE__ */ e("path", { "fill-rule": "evenodd", d: "M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z", "clip-rule": "evenodd" -}, null, -1), At = [ - Bt -], Ht = { +}, null, -1), Nt = [ + Lt +], Ut = { name: "VFSortIcon" -}, de = /* @__PURE__ */ Object.assign(Ht, { +}, me = /* @__PURE__ */ Object.assign(Ut, { props: { direction: String }, - setup(d) { - return (t, s) => (a(), m("div", null, [ - d.direction == "down" ? (a(), m("svg", Ft, Vt)) : L("", !0), - d.direction == "up" ? (a(), m("svg", Nt, At)) : L("", !0) + setup(l) { + return (t, s) => (r(), v("div", null, [ + l.direction == "down" ? (r(), v("svg", Ft, Bt)) : V("", !0), + l.direction == "up" ? (r(), v("svg", At, Nt)) : V("", !0) ])); } -}), Tt = ["onClick"], Ut = { +}), Tt = ["onClick"], Ht = { name: "VFToast.vue" -}, It = /* @__PURE__ */ Object.assign(Ut, { - setup(d) { - const t = b("emitter"), { getStore: s } = b("storage"), o = k(s("full-screen", !1)), p = (g) => g == "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", c = k([]), l = (g) => { - c.value.splice(g, 1); - }, u = (g) => { - let i = c.value.findIndex((n) => n.id === g); - i !== -1 && l(i); +}, It = /* @__PURE__ */ Object.assign(Ht, { + setup(l) { + const t = k("emitter"), { getStore: s } = k("storage"), o = g(s("full-screen", !1)), i = (p) => p == "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", m = g([]), n = (p) => { + m.value.splice(p, 1); + }, h = (p) => { + let c = m.value.findIndex((d) => d.id === p); + c !== -1 && n(c); }; return t.on("vf-toast-clear", () => { - c.value = []; - }), t.on("vf-toast-push", (g) => { - let i = (/* @__PURE__ */ new Date()).getTime().toString(36).concat(performance.now().toString(), Math.random().toString()).replace(/\./g, ""); - g.id = i, c.value.push(g), setTimeout(() => { - u(i); + m.value = []; + }), t.on("vf-toast-push", (p) => { + let c = (/* @__PURE__ */ new Date()).getTime().toString(36).concat(performance.now().toString(), Math.random().toString()).replace(/\./g, ""); + p.id = c, m.value.push(p), setTimeout(() => { + h(c); }, 5e3); - }), (g, i) => (a(), m("div", { - class: U([o.value.value ? "fixed" : "absolute", "bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"]) + }), (p, c) => (r(), v("div", { + class: T([o.value.value ? "fixed" : "absolute", "bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"]) }, [ - G(ze, { + P(Ve, { name: "vf-toast-item", "leave-active-class": "transition-all duration-1000", "leave-to-class": "opacity-0" }, { - default: N(() => [ - (a(!0), m(I, null, P(c.value, (n, x) => (a(), m("div", { - onClick: (M) => l(x), - key: n, - class: U([p(n.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"]) - }, v(n.label), 11, Tt))), 128)) + default: E(() => [ + (r(!0), v(H, null, J(m.value, (d, f) => (r(), v("div", { + onClick: (y) => n(f), + key: d, + class: T([i(d.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"]) + }, u(d.label), 11, Tt))), 128)) ]), _: 1 }) ], 2)); } -}), oe = (d) => Object.entries(d).map((t) => t.map(encodeURIComponent).join("=")).join("&"), { apiUrl: qt } = J(), be = (d, t) => qt.value + "?" + oe({ q: "preview", adapter: d, path: t }); -function we(d, t = 14) { +}), oe = (l) => Object.entries(l).map((t) => t.map(encodeURIComponent).join("=")).join("&"), { apiUrl: qt } = X(), be = (l, t) => qt.value + "?" + oe({ q: "preview", adapter: l, path: t }); +function we(l, t = 14) { let s = `((?=([\\w\\W]{0,${t}}))([\\w\\W]{8,})([\\w\\W]{8,}))`; - return d.replace(new RegExp(s), "$2..$4"); + return l.replace(new RegExp(s), "$2..$4"); } const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { key: 0, @@ -462,7 +433,7 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" }, null, -1), so = [ oo -], ro = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, ao = { class: "col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap" }, no = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], lo = { class: "grid grid-cols-12 items-center" }, io = { class: "flex col-span-7 items-center" }, co = { +], ao = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, no = { class: "col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap" }, ro = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], lo = { class: "grid grid-cols-12 items-center" }, io = { class: "flex col-span-7 items-center" }, co = { key: 0, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500", @@ -488,9 +459,9 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" -}, null, -1), fo = [ +}, null, -1), ho = [ po -], go = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, ho = { class: "col-span-2 text-center" }, ko = { class: "col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap" }, xo = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], bo = { class: "relative" }, wo = { +], fo = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, go = { class: "col-span-2 text-center" }, ko = { class: "col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap" }, _o = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], xo = { class: "relative" }, bo = { key: 0, xmlns: "http://www.w3.org/2000/svg", class: "h-10 w-10 md:h-12 md:w-12 m-auto fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500", @@ -498,13 +469,13 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, yo = /* @__PURE__ */ e("path", { +}, wo = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" -}, null, -1), _o = [ - yo -], $o = ["data-src", "alt"], jo = { +}, null, -1), yo = [ + wo +], $o = ["data-src", "alt"], Co = { key: 2, xmlns: "http://www.w3.org/2000/svg", class: "h-10 w-10 md:h-12 md:w-12 m-auto text-neutral-500", @@ -512,12 +483,12 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, Co = /* @__PURE__ */ e("path", { +}, Mo = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" -}, null, -1), Mo = [ - Co +}, null, -1), jo = [ + Mo ], So = { key: 3, class: "absolute hidden md:block top-1/2 w-full text-center text-neutral-500" @@ -529,239 +500,239 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { data: Object, search: Object }, - setup(d) { - const t = d, s = b("emitter"), { setStore: o, getStore: p } = b("storage"), c = b("adapter"), l = (y) => y == null ? void 0 : y.substring(0, 3), u = k(null), g = k(null), i = k(0), n = k(null), { t: x } = b("i18n"), M = Math.floor(Math.random() * 2 ** 32), _ = k(p("full-screen", !1)); - let j; + setup(l) { + const t = l, s = k("emitter"), { setStore: o, getStore: i } = k("storage"), m = k("adapter"), n = (C) => C == null ? void 0 : C.substring(0, 3), h = g(null), p = g(null), c = g(0), d = g(null), { t: f } = k("i18n"), y = Math.floor(Math.random() * 2 ** 32), w = g(i("full-screen", !1)), B = k("filesize"); + let O; s.on("vf-fullscreen-toggle", () => { - u.value.style.height = null, _.value = !_.value, o("full-screen", _.value); + h.value.style.height = null, w.value = !w.value, o("full-screen", w.value); }); - const w = k(""); - s.on("vf-search-query", ({ newQuery: y }) => { - w.value = y, y ? s.emit("vf-fetch", { + const D = g(""); + s.on("vf-search-query", ({ newQuery: C }) => { + D.value = C, C ? s.emit("vf-fetch", { params: { q: "search", adapter: t.data.adapter, path: t.data.dirname, - filter: y + filter: C }, - onSuccess: (S) => { - S.files.length || s.emit("vf-toast-push", { label: x("No search result found.") }); + onSuccess: (b) => { + b.files.length || s.emit("vf-toast-push", { label: f("No search result found.") }); } }) : s.emit("vf-fetch", { params: { q: "index", adapter: t.data.adapter, path: t.data.dirname } }); }); - let z = null; - const D = () => { - z && clearTimeout(z); - }, C = k(!0), $ = (y) => { - y.touches.length > 1 && (C.value ? (n.value.stop(), s.emit("vf-toast-push", { label: x("Drag&Drop: off") })) : (n.value.start(), s.emit("vf-toast-push", { label: x("Drag&Drop: on") }), s.emit("vf-explorer-update")), C.value = !C.value); - }, O = (y) => { - z = setTimeout(() => { - const S = new MouseEvent("contextmenu", { + let S = null; + const F = () => { + S && clearTimeout(S); + }, M = g(!0), j = (C) => { + C.touches.length > 1 && (M.value ? (d.value.stop(), s.emit("vf-toast-push", { label: f("Drag&Drop: off") })) : (d.value.start(), s.emit("vf-toast-push", { label: f("Drag&Drop: on") }), s.emit("vf-explorer-update")), M.value = !M.value); + }, z = (C) => { + S = setTimeout(() => { + const b = new MouseEvent("contextmenu", { bubbles: !0, cancelable: !1, view: window, button: 2, buttons: 0, - clientX: y.target.getBoundingClientRect().x, - clientY: y.target.getBoundingClientRect().y + clientX: C.target.getBoundingClientRect().x, + clientY: C.target.getBoundingClientRect().y }); - y.target.dispatchEvent(S); + C.target.dispatchEvent(b); }, 500); - }, V = (y) => { - y.type == "dir" ? (s.emit("vf-search-exit"), s.emit("vf-fetch", { params: { q: "index", adapter: t.data.adapter, path: y.path } })) : s.emit("vf-modal-show", { type: "preview", adapter: t.data.adapter, item: y }); - }, E = ce({ active: !1, column: "", order: "" }), q = (y = !0) => { - let S = [...t.data.files], h = E.column, B = E.order == "asc" ? 1 : -1; - if (!y) - return S; - const f = (F, A) => typeof F == "string" && typeof A == "string" ? F.toLowerCase().localeCompare(A.toLowerCase()) : F < A ? -1 : F > A ? 1 : 0; - return E.active && (S = S.slice().sort((F, A) => f(F[h], A[h]) * B)), S; - }, ee = (y) => { - E.active && E.column == y ? (E.active = E.order == "asc", E.column = y, E.order = "desc") : (E.active = !0, E.column = y, E.order = "asc"); - }, Z = () => n.value.getSelection().map((y) => JSON.parse(y.dataset.item)), ne = (y, S) => { - if (y.altKey || y.ctrlKey || y.metaKey) - return y.preventDefault(), !1; - y.dataTransfer.setDragImage(g.value, 0, 15), y.dataTransfer.effectAllowed = "all", y.dataTransfer.dropEffect = "copy", y.dataTransfer.setData("items", JSON.stringify(Z())); - }, le = (y, S) => { - y.preventDefault(); - let h = JSON.parse(y.dataTransfer.getData("items")); - if (h.find((B) => B.storage != c.value)) { + }, I = (C) => { + C.type == "dir" ? (s.emit("vf-search-exit"), s.emit("vf-fetch", { params: { q: "index", adapter: t.data.adapter, path: C.path } })) : s.emit("vf-modal-show", { type: "preview", adapter: t.data.adapter, item: C }); + }, A = ve({ active: !1, column: "", order: "" }), ee = (C = !0) => { + let b = [...t.data.files], _ = A.column, x = A.order == "asc" ? 1 : -1; + if (!C) + return b; + const $ = (L, q) => typeof L == "string" && typeof q == "string" ? L.toLowerCase().localeCompare(q.toLowerCase()) : L < q ? -1 : L > q ? 1 : 0; + return A.active && (b = b.slice().sort((L, q) => $(L[_], q[_]) * x)), b; + }, G = (C) => { + A.active && A.column == C ? (A.active = A.order == "asc", A.column = C, A.order = "desc") : (A.active = !0, A.column = C, A.order = "asc"); + }, te = () => d.value.getSelection().map((C) => JSON.parse(C.dataset.item)), ie = (C, b) => { + if (C.altKey || C.ctrlKey || C.metaKey) + return C.preventDefault(), !1; + C.dataTransfer.setDragImage(p.value, 0, 15), C.dataTransfer.effectAllowed = "all", C.dataTransfer.dropEffect = "copy", C.dataTransfer.setData("items", JSON.stringify(te())); + }, de = (C, b) => { + C.preventDefault(); + let _ = JSON.parse(C.dataTransfer.getData("items")); + if (_.find((x) => x.storage != m.value)) { alert("Moving items between different storages is not supported yet."); return; } - s.emit("vf-modal-show", { type: "move", items: { from: h, to: S } }); - }, ie = (y, S) => { - y.preventDefault(), !S || S.type !== "dir" || n.value.getSelection().find((h) => h == y.currentTarget) ? (y.dataTransfer.dropEffect = "none", y.dataTransfer.effectAllowed = "none") : y.dataTransfer.dropEffect = "copy"; - }, fe = () => { - n.value = new Ae({ - area: u.value, + s.emit("vf-modal-show", { type: "move", items: { from: _, to: b } }); + }, ne = (C, b) => { + C.preventDefault(), !b || b.type !== "dir" || d.value.getSelection().find((_) => _ == C.currentTarget) ? (C.dataTransfer.dropEffect = "none", C.dataTransfer.effectAllowed = "none") : C.dataTransfer.dropEffect = "copy"; + }, ce = () => { + d.value = new Ie({ + area: h.value, keyboardDrag: !1, selectedClass: "vf-explorer-selected", selectorClass: "vf-explorer-selector" - }), s.on("vf-explorer-update", () => pe(() => { - n.value.clearSelection(), n.value.setSettings({ - selectables: document.getElementsByClassName("vf-item-" + M) + }), s.on("vf-explorer-update", () => ge(() => { + d.value.clearSelection(), d.value.setSettings({ + selectables: document.getElementsByClassName("vf-item-" + y) }); - })), n.value.subscribe("predragstart", ({ event: y, isDragging: S }) => { - if (S) - i.value = n.value.getSelection().length, n.value.break(); + })), d.value.subscribe("predragstart", ({ event: C, isDragging: b }) => { + if (b) + c.value = d.value.getSelection().length, d.value.break(); else { - const h = y.target.offsetWidth - y.offsetX, B = y.target.offsetHeight - y.offsetY; - h < 15 && B < 15 && (n.value.clearSelection(), n.value.break()); + const _ = C.target.offsetWidth - C.offsetX, x = C.target.offsetHeight - C.offsetY; + _ < 15 && x < 15 && (d.value.clearSelection(), d.value.break()); } - }), n.value.subscribe("predragmove", ({ isDragging: y }) => { - y && n.value.break(); - }), n.value.subscribe("callback", ({ items: y, event: S, isDragging: h }) => { - s.emit("vf-nodes-selected", Z()), i.value = n.value.getSelection().length; + }), d.value.subscribe("predragmove", ({ isDragging: C }) => { + C && d.value.break(); + }), d.value.subscribe("callback", ({ items: C, event: b, isDragging: _ }) => { + s.emit("vf-nodes-selected", te()), c.value = d.value.getSelection().length; }); }; - return Y(() => { - j = new He(u.value), fe(); - }), Ee(() => { - n.value.Area.reset(), n.value.SelectorArea.updatePos(), j.update(); - }), Y(() => { - ve(() => t.view, () => s.emit("vf-explorer-update")); - }), Ce(() => { - j.destroy(); - }), (y, S) => (a(), m("div", Rt, [ - d.view == "list" || w.value.length ? (a(), m("div", Pt, [ + return K(() => { + O = new qe(h.value), ce(); + }), Be(() => { + d.value.Area.reset(), d.value.SelectorArea.updatePos(), O.update(); + }), K(() => { + le(() => t.view, () => s.emit("vf-explorer-update")); + }), Oe(() => { + O.destroy(); + }), (C, b) => (r(), v("div", Rt, [ + l.view == "list" || D.value.length ? (r(), v("div", Pt, [ e("div", { - onClick: S[0] || (S[0] = (h) => ee("basename")), + onClick: b[0] || (b[0] = (_) => G("basename")), class: "col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1" }, [ - T(v(r(x)("Name")) + " ", 1), - R(G(de, { - direction: E.order == "asc" ? "down" : "up" + U(u(a(f)("Name")) + " ", 1), + R(P(me, { + direction: A.order == "asc" ? "down" : "up" }, null, 8, ["direction"]), [ - [ae, E.active && E.column == "basename"] + [ue, A.active && A.column == "basename"] ]) ]), - w.value.length ? L("", !0) : (a(), m("div", { + D.value.length ? V("", !0) : (r(), v("div", { key: 0, - onClick: S[1] || (S[1] = (h) => ee("file_size")), + onClick: b[1] || (b[1] = (_) => G("file_size")), class: "col-span-2 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l border-r dark:border-gray-700" }, [ - T(v(r(x)("Size")) + " ", 1), - R(G(de, { - direction: E.order == "asc" ? "down" : "up" + U(u(a(f)("Size")) + " ", 1), + R(P(me, { + direction: A.order == "asc" ? "down" : "up" }, null, 8, ["direction"]), [ - [ae, E.active && E.column == "file_size"] + [ue, A.active && A.column == "file_size"] ]) ])), - w.value.length ? L("", !0) : (a(), m("div", { + D.value.length ? V("", !0) : (r(), v("div", { key: 1, - onClick: S[2] || (S[2] = (h) => ee("last_modified")), + onClick: b[2] || (b[2] = (_) => G("last_modified")), class: "col-span-3 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center" }, [ - T(v(r(x)("Date")) + " ", 1), - R(G(de, { - direction: E.order == "asc" ? "down" : "up" + U(u(a(f)("Date")) + " ", 1), + R(P(me, { + direction: A.order == "asc" ? "down" : "up" }, null, 8, ["direction"]), [ - [ae, E.active && E.column == "last_modified"] + [ue, A.active && A.column == "last_modified"] ]) ])), - w.value.length ? (a(), m("div", { + D.value.length ? (r(), v("div", { key: 2, - onClick: S[3] || (S[3] = (h) => ee("path")), + onClick: b[3] || (b[3] = (_) => G("path")), class: "col-span-5 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l dark:border-gray-700" }, [ - T(v(r(x)("Filepath")) + " ", 1), - R(G(de, { - direction: E.order == "asc" ? "down" : "up" + U(u(a(f)("Filepath")) + " ", 1), + R(P(me, { + direction: A.order == "asc" ? "down" : "up" }, null, 8, ["direction"]), [ - [ae, E.active && E.column == "path"] + [ue, A.active && A.column == "path"] ]) - ])) : L("", !0) - ])) : L("", !0), + ])) : V("", !0) + ])) : V("", !0), e("div", Gt, [ e("div", { ref_key: "dragImage", - ref: g, + ref: p, class: "absolute -z-50 -top-96" }, [ Yt, - e("div", Jt, v(i.value), 1) + e("div", Jt, u(c.value), 1) ], 512) ]), e("div", { - onTouchstart: $, - onContextmenu: S[10] || (S[10] = X((h) => r(s).emit("vf-contextmenu-show", { event: h, area: u.value, items: Z() }), ["self", "prevent"])), - class: U([_.value ? "" : "resize-y", "h-full w-full text-xs vf-selector-area vf-scrollbar min-h-[150px] overflow-auto p-1 z-0"]), + onTouchstart: j, + onContextmenu: b[10] || (b[10] = Z((_) => a(s).emit("vf-contextmenu-show", { event: _, area: h.value, items: te() }), ["self", "prevent"])), + class: T([w.value ? "" : "resize-y", "h-full w-full text-xs vf-selector-area vf-scrollbar min-h-[150px] overflow-auto p-1 z-0"]), ref_key: "selectorArea", - ref: u + ref: h }, [ - w.value.length ? (a(!0), m(I, { key: 0 }, P(q(), (h, B) => (a(), m("div", { - onDblclick: (f) => V(h), - onTouchstart: S[4] || (S[4] = (f) => O(f)), - onTouchend: S[5] || (S[5] = (f) => D()), - onContextmenu: X((f) => r(s).emit("vf-contextmenu-show", { event: f, area: u.value, items: Z(), target: h }), ["prevent"]), - class: U(["vf-item-" + r(M), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]), - "data-type": h.type, - "data-item": JSON.stringify(h), - "data-index": B + D.value.length ? (r(!0), v(H, { key: 0 }, J(ee(), (_, x) => (r(), v("div", { + onDblclick: ($) => I(_), + onTouchstart: b[4] || (b[4] = ($) => z($)), + onTouchend: b[5] || (b[5] = ($) => F()), + onContextmenu: Z(($) => a(s).emit("vf-contextmenu-show", { event: $, area: h.value, items: te(), target: _ }), ["prevent"]), + class: T(["vf-item-" + a(y), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]), + "data-type": _.type, + "data-item": JSON.stringify(_), + "data-index": x }, [ e("div", Wt, [ e("div", Xt, [ - h.type == "dir" ? (a(), m("svg", Qt, eo)) : (a(), m("svg", to, so)), - e("span", ro, v(h.basename), 1) + _.type == "dir" ? (r(), v("svg", Qt, eo)) : (r(), v("svg", to, so)), + e("span", ao, u(_.basename), 1) ]), - e("div", ao, v(h.path), 1) + e("div", no, u(_.path), 1) ]) - ], 42, Kt))), 256)) : L("", !0), - d.view == "list" && !w.value.length ? (a(!0), m(I, { key: 1 }, P(q(), (h, B) => (a(), m("div", { + ], 42, Kt))), 256)) : V("", !0), + l.view == "list" && !D.value.length ? (r(!0), v(H, { key: 1 }, J(ee(), (_, x) => (r(), v("div", { draggable: "true", - onDblclick: (f) => V(h), - onTouchstart: S[6] || (S[6] = (f) => O(f)), - onTouchend: S[7] || (S[7] = (f) => D()), - onContextmenu: X((f) => r(s).emit("vf-contextmenu-show", { event: f, area: u.value, items: Z(), target: h }), ["prevent"]), - onDragstart: (f) => ne(f), - onDragover: (f) => ie(f, h), - onDrop: (f) => le(f, h), - class: U(["vf-item-" + r(M), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]), - "data-type": h.type, - "data-item": JSON.stringify(h), - "data-index": B + onDblclick: ($) => I(_), + onTouchstart: b[6] || (b[6] = ($) => z($)), + onTouchend: b[7] || (b[7] = ($) => F()), + onContextmenu: Z(($) => a(s).emit("vf-contextmenu-show", { event: $, area: h.value, items: te(), target: _ }), ["prevent"]), + onDragstart: ($) => ie($), + onDragover: ($) => ne($, _), + onDrop: ($) => de($, _), + class: T(["vf-item-" + a(y), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]), + "data-type": _.type, + "data-item": JSON.stringify(_), + "data-index": x }, [ e("div", lo, [ e("div", io, [ - h.type == "dir" ? (a(), m("svg", co, mo)) : (a(), m("svg", vo, fo)), - e("span", go, v(h.basename), 1) + _.type == "dir" ? (r(), v("svg", co, mo)) : (r(), v("svg", vo, ho)), + e("span", fo, u(_.basename), 1) ]), - e("div", ho, v(h.file_size ? r(ye)(h.file_size) : ""), 1), - e("div", ko, v(r(De)(h.last_modified)), 1) + e("div", go, u(_.file_size ? a(B)(_.file_size) : ""), 1), + e("div", ko, u(a(Ee)(_.last_modified)), 1) ]) - ], 42, no))), 256)) : L("", !0), - d.view == "grid" && !w.value.length ? (a(!0), m(I, { key: 2 }, P(q(!1), (h, B) => (a(), m("div", { + ], 42, ro))), 256)) : V("", !0), + l.view == "grid" && !D.value.length ? (r(!0), v(H, { key: 2 }, J(ee(!1), (_, x) => (r(), v("div", { draggable: "true", - onDblclick: (f) => V(h), - onTouchstart: S[8] || (S[8] = (f) => O(f)), - onTouchend: S[9] || (S[9] = (f) => D()), - onContextmenu: X((f) => r(s).emit("vf-contextmenu-show", { event: f, area: u.value, items: Z(), target: h }), ["prevent"]), - onDragstart: (f) => ne(f), - onDragover: (f) => ie(f, h), - onDrop: (f) => le(f, h), - class: U(["vf-item-" + r(M), "border border-transparent hover:bg-neutral-50 m-1 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 text-center justify-center select-none"]), - "data-type": h.type, - "data-item": JSON.stringify(h), - "data-index": B + onDblclick: ($) => I(_), + onTouchstart: b[8] || (b[8] = ($) => z($)), + onTouchend: b[9] || (b[9] = ($) => F()), + onContextmenu: Z(($) => a(s).emit("vf-contextmenu-show", { event: $, area: h.value, items: te(), target: _ }), ["prevent"]), + onDragstart: ($) => ie($), + onDragover: ($) => ne($, _), + onDrop: ($) => de($, _), + class: T(["vf-item-" + a(y), "border border-transparent hover:bg-neutral-50 m-1 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 text-center justify-center select-none"]), + "data-type": _.type, + "data-item": JSON.stringify(_), + "data-index": x }, [ e("div", null, [ - e("div", bo, [ - h.type == "dir" ? (a(), m("svg", wo, _o)) : (h.mime_type ?? "").startsWith("image") ? (a(), m("img", { + e("div", xo, [ + _.type == "dir" ? (r(), v("svg", bo, yo)) : (_.mime_type ?? "").startsWith("image") ? (r(), v("img", { key: 1, class: "lazy h-10 md:h-12 m-auto", - "data-src": r(be)(r(c).value, h.path), - alt: h.basename - }, null, 8, $o)) : (a(), m("svg", jo, Mo)), - !(h.mime_type ?? "").startsWith("image") && h.type != "dir" ? (a(), m("div", So, v(l(h.extension)), 1)) : L("", !0) + "data-src": a(be)(a(m).value, _.path), + alt: _.basename + }, null, 8, $o)) : (r(), v("svg", Co, jo)), + !(_.mime_type ?? "").startsWith("image") && _.type != "dir" ? (r(), v("div", So, u(n(_.extension)), 1)) : V("", !0) ]), - e("span", Do, v(r(we)(h.basename)), 1) + e("span", Do, u(a(we)(_.basename)), 1) ]) - ], 42, xo))), 256)) : L("", !0) + ], 42, _o))), 256)) : V("", !0) ], 34), - G(It) + P(It) ])); } -}), Eo = "1.3.2", Fo = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, Lo = { class: "flex leading-5 items-center" }, Vo = ["aria-label"], No = /* @__PURE__ */ e("svg", { +}), Eo = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, Fo = { class: "flex leading-5 items-center" }, Vo = ["aria-label"], Bo = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5", fill: "none", @@ -774,12 +745,12 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { "stroke-linejoin": "round", d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4" }) -], -1), Bo = [ - No -], Ao = ["value"], Ho = { class: "ml-3" }, To = { key: 0 }, Uo = { class: "ml-1" }, Io = { class: "flex leading-5 items-center justify-end" }, qo = { +], -1), Ao = [ + Bo +], Lo = ["value"], No = { class: "ml-3" }, Uo = { key: 0 }, To = { class: "ml-1" }, Ho = { class: "flex leading-5 items-center justify-end" }, Io = { value: "", disabled: "" -}, Ro = /* @__PURE__ */ Fe('', 11), Po = ["aria-label"], Go = /* @__PURE__ */ e("svg", { +}, qo = /* @__PURE__ */ Ae('', 11), Ro = ["aria-label"], Po = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 stroke-slate-500 cursor-pointer", fill: "none", @@ -792,128 +763,128 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { "stroke-linejoin": "round", d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) -], -1), Yo = [ - Go -], Jo = { +], -1), Go = [ + Po +], Yo = { name: "VFStatusbar" -}, Ko = /* @__PURE__ */ Object.assign(Jo, { +}, Jo = /* @__PURE__ */ Object.assign(Yo, { props: { data: Object }, - setup(d) { - const t = b("emitter"), { getStore: s, setStore: o } = b("storage"), p = k(0), c = b("adapter"), { t: l, changeLocale: u } = b("i18n"), g = k(s("locale", "")), i = () => { - t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: c.value } }), o("adapter", c.value); + setup(l) { + const t = k("emitter"), { getStore: s, setStore: o } = k("storage"), i = g(0), m = k("adapter"), { t: n, changeLocale: h, locale: p } = k("i18n"), c = () => { + t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: m.value } }), o("adapter", m.value); }; - t.on("vf-nodes-selected", (x) => { - p.value = x.length; + t.on("vf-nodes-selected", (f) => { + i.value = f.length; }); - const n = k(""); - return t.on("vf-search-query", ({ newQuery: x }) => { - n.value = x; - }), (x, M) => (a(), m("div", Fo, [ - e("div", Lo, [ + const d = g(""); + return t.on("vf-search-query", ({ newQuery: f }) => { + d.value = f; + }), (f, y) => (r(), v("div", Eo, [ + e("div", Fo, [ e("div", { class: "mx-2", - "aria-label": r(l)("Storage"), + "aria-label": a(n)("Storage"), "data-microtip-position": "top-right", role: "tooltip" - }, Bo, 8, Vo), + }, Ao, 8, Vo), R(e("select", { - "onUpdate:modelValue": M[0] || (M[0] = (_) => Me(c) ? c.value = _ : null), - onChange: i, + "onUpdate:modelValue": y[0] || (y[0] = (w) => re(m) ? m.value = w : null), + onChange: c, class: "py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8" }, [ - (a(!0), m(I, null, P(d.data.storages, (_) => (a(), m("option", { value: _ }, v(_), 9, Ao))), 256)) + (r(!0), v(H, null, J(l.data.storages, (w) => (r(), v("option", { value: w }, u(w), 9, Lo))), 256)) ], 544), [ - [_e, r(c)] + [ye, a(m)] ]), - e("div", Ho, [ - n.value.length ? (a(), m("span", To, v(d.data.files.length) + " items found. ", 1)) : L("", !0), - e("span", Uo, v(p.value > 0 ? p.value + " " + r(l)("item(s) selected.") : ""), 1) + e("div", No, [ + d.value.length ? (r(), v("span", Uo, u(l.data.files.length) + " items found. ", 1)) : V("", !0), + e("span", To, u(i.value > 0 ? i.value + " " + a(n)("item(s) selected.") : ""), 1) ]) ]), - e("div", Io, [ + e("div", Ho, [ R(e("select", { - "onUpdate:modelValue": M[1] || (M[1] = (_) => g.value = _), - onChange: M[2] || (M[2] = (_) => r(u)(_.target.value)), + "onUpdate:modelValue": y[1] || (y[1] = (w) => re(p) ? p.value = w : null), + onChange: y[2] || (y[2] = (w) => a(h)(w.target.value)), class: "w-[120px] delay-200 duration-300 hover:w-full transition-[width] py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3" }, [ - e("option", qo, v(r(l)("Language")), 1), - Ro + e("option", Io, u(a(n)("Language")), 1), + qo ], 544), [ - [_e, g.value] + [ye, a(p)] ]), e("span", { class: "mr-1", - "aria-label": r(l)("About"), + "aria-label": a(n)("About"), "data-microtip-position": "top-left", role: "tooltip", - onClick: M[3] || (M[3] = (_) => r(t).emit("vf-modal-show", { type: "message", title: "Vuefinder " + r(Eo), message: r(l)("Vuefinder is a file manager component for vue 3.") })) - }, Yo, 8, Po) + onClick: y[3] || (y[3] = (w) => a(t).emit("vf-modal-show", { type: "about" })) + }, Go, 8, Ro) ]) ])); } -}), Wo = (d, t = 0, s = !1) => { +}), Ko = (l, t = 0, s = !1) => { let o; - return (...p) => { - s && !o && d(...p), clearTimeout(o), o = setTimeout(() => { - d(...p); + return (...i) => { + s && !o && l(...i), clearTimeout(o), o = setTimeout(() => { + l(...i); }, t); }; -}, Xo = (d, t, s) => { - const o = k(d); - return Le((c, l) => ({ +}, Wo = (l, t, s) => { + const o = g(l); + return Le((m, n) => ({ get() { - return c(), o.value; + return m(), o.value; }, - set: Wo( - (u) => { - o.value = u, l(); + set: Ko( + (h) => { + o.value = h, n(); }, t, s ) })); -}, Qo = { class: "flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs" }, Zo = ["aria-label"], es = /* @__PURE__ */ e("path", { +}, Xo = { class: "flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs" }, Qo = ["aria-label"], Zo = /* @__PURE__ */ e("path", { "fill-rule": "evenodd", d: "M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z", "clip-rule": "evenodd" -}, null, -1), ts = [ - es -], os = ["aria-label"], ss = /* @__PURE__ */ e("path", { d: "M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z" }, null, -1), rs = [ - ss +}, null, -1), es = [ + Zo +], ts = ["aria-label"], os = /* @__PURE__ */ e("path", { d: "M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z" }, null, -1), ss = [ + os ], as = ["aria-label"], ns = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18L18 6M6 6l12 12" -}, null, -1), ls = [ +}, null, -1), rs = [ ns -], is = /* @__PURE__ */ e("path", { d: "M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z" }, null, -1), ds = [ - is -], cs = { class: "flex leading-5" }, us = /* @__PURE__ */ e("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), ms = ["title", "onClick"], vs = { +], ls = /* @__PURE__ */ e("path", { d: "M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z" }, null, -1), is = [ + ls +], ds = { class: "flex leading-5" }, cs = /* @__PURE__ */ e("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), us = ["title", "onClick"], ms = { key: 0, class: "animate-spin p-1 h-6 w-6 text-white ml-auto", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24" -}, ps = /* @__PURE__ */ e("circle", { +}, vs = /* @__PURE__ */ e("circle", { class: "opacity-25 stroke-blue-900 dark:stroke-blue-100", cx: "12", cy: "12", r: "10", stroke: "currentColor", "stroke-width": "4" -}, null, -1), fs = /* @__PURE__ */ e("path", { +}, null, -1), ps = /* @__PURE__ */ e("path", { class: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" -}, null, -1), gs = [ - ps, - fs -], hs = { +}, null, -1), hs = [ + vs, + ps +], fs = { key: 3, class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" -}, ks = /* @__PURE__ */ e("div", null, [ +}, gs = /* @__PURE__ */ e("div", null, [ /* @__PURE__ */ e("svg", { class: "h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20", xmlns: "http://www.w3.org/2000/svg", @@ -926,310 +897,317 @@ const Rt = { class: "relative flex-auto flex flex-col overflow-hidden" }, Pt = { d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" }) ]) -], -1), xs = ["placeholder"], bs = /* @__PURE__ */ e("path", { +], -1), ks = ["placeholder"], _s = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18L18 6M6 6l12 12" -}, null, -1), ws = [ - bs -], ys = { +}, null, -1), xs = [ + _s +], bs = { name: "VFBreadcrumb" -}, _s = /* @__PURE__ */ Object.assign(ys, { +}, ws = /* @__PURE__ */ Object.assign(bs, { props: { data: Object }, - setup(d) { - const t = b("emitter"); - b("storage"); - const s = b("adapter"), o = k(null), p = k([]), c = k(!1), l = k(null), u = d, { t: g } = b("i18n"), i = b("loadingState"); + setup(l) { + const t = k("emitter"); + k("storage"); + const s = k("adapter"), o = g(null), i = g([]), m = g(!1), n = g(null), h = l, { t: p } = k("i18n"), c = k("loadingState"); t.on("vf-explorer-update", () => { - let C = [], $ = []; - o.value = u.data.dirname ?? s.value + "://", o.value.length == 0 && (p.value = []), o.value.replace(s.value + "://", "").split("/").forEach(function(O) { - C.push(O), C.join("/") != "" && $.push({ - basename: O, - name: O, - path: s.value + "://" + C.join("/"), + let F = [], M = []; + o.value = h.data.dirname ?? s.value + "://", o.value.length == 0 && (i.value = []), o.value.replace(s.value + "://", "").split("/").forEach(function(j) { + F.push(j), F.join("/") != "" && M.push({ + basename: j, + name: j, + path: s.value + "://" + F.join("/"), type: "dir" }); - }), $.length > 4 && ($ = $.slice(-5), $[0].name = ".."), p.value = $; + }), M.length > 4 && (M = M.slice(-5), M[0].name = ".."), i.value = M; }); - const n = () => { - c.value = !1, M.value = ""; + const d = () => { + m.value = !1, y.value = ""; }; t.on("vf-search-exit", () => { - n(); + d(); }); - const x = () => { - c.value = !0, pe(() => l.value.focus()); - }, M = Xo("", 400), _ = () => i.value; - ve(M, (C) => { - t.emit("vf-toast-clear"), t.emit("vf-search-query", { newQuery: C }); + const f = () => { + m.value = !0, ge(() => n.value.focus()); + }, y = Wo("", 400), w = () => c.value; + le(y, (F) => { + t.emit("vf-toast-clear"), t.emit("vf-search-query", { newQuery: F }); }); - const j = () => p.value.length && !c.value, w = (C) => { - C.preventDefault(); - let $ = JSON.parse(C.dataTransfer.getData("items")); - if ($.find((O) => O.storage != s.value)) { + const B = () => i.value.length && !m.value, O = (F) => { + F.preventDefault(); + let M = JSON.parse(F.dataTransfer.getData("items")); + if (M.find((j) => j.storage != s.value)) { alert("Moving items between different storages is not supported yet."); return; } t.emit("vf-modal-show", { type: "move", - items: { from: $, to: p.value[p.value.length - 2] ?? { path: s.value + "://" } } + items: { from: M, to: i.value[i.value.length - 2] ?? { path: s.value + "://" } } }); - }, z = (C) => { - C.preventDefault(), j() ? C.dataTransfer.dropEffect = "copy" : (C.dataTransfer.dropEffect = "none", C.dataTransfer.effectAllowed = "none"); - }, D = () => { - M.value == "" && n(); + }, D = (F) => { + F.preventDefault(), B() ? F.dataTransfer.dropEffect = "copy" : (F.dataTransfer.dropEffect = "none", F.dataTransfer.effectAllowed = "none"); + }, S = () => { + y.value == "" && d(); }; - return (C, $) => (a(), m("div", Qo, [ + return (F, M) => (r(), v("div", Xo, [ e("span", { - "aria-label": r(g)("Go up a directory"), + "aria-label": a(p)("Go up a directory"), "data-microtip-position": "bottom-right", role: "tooltip" }, [ - (a(), m("svg", { - onDragover: $[0] || ($[0] = (O) => z(O)), - onDrop: $[1] || ($[1] = (O) => w(O)), - onClick: $[2] || ($[2] = (O) => { - var V; - return !j() || r(t).emit("vf-fetch", { params: { q: "index", adapter: d.data.adapter, path: ((V = p.value[p.value.length - 2]) == null ? void 0 : V.path) ?? r(s) + "://" } }); + (r(), v("svg", { + onDragover: M[0] || (M[0] = (j) => D(j)), + onDrop: M[1] || (M[1] = (j) => O(j)), + onClick: M[2] || (M[2] = (j) => { + var z; + return !B() || a(t).emit("vf-fetch", { params: { q: "index", adapter: l.data.adapter, path: ((z = i.value[i.value.length - 2]) == null ? void 0 : z.path) ?? a(s) + "://" } }); }), - class: U(["h-6 w-6 p-0.5 rounded", j() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500"]), + class: T(["h-6 w-6 p-0.5 rounded", B() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500"]), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor" - }, ts, 34)) - ], 8, Zo), - _() ? (a(), m("span", { + }, es, 34)) + ], 8, Qo), + w() ? (r(), v("span", { key: 1, - "aria-label": r(g)("Cancel"), + "aria-label": a(p)("Cancel"), "data-microtip-position": "bottom-right", role: "tooltip" }, [ - (a(), m("svg", { - onClick: $[4] || ($[4] = (O) => r(t).emit("vf-fetch-abort")), + (r(), v("svg", { + onClick: M[4] || (M[4] = (j) => a(t).emit("vf-fetch-abort")), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" - }, ls)) - ], 8, as)) : (a(), m("span", { + }, rs)) + ], 8, as)) : (r(), v("span", { key: 0, - "aria-label": r(g)("Refresh"), + "aria-label": a(p)("Refresh"), "data-microtip-position": "bottom-right", role: "tooltip" }, [ - (a(), m("svg", { - onClick: $[3] || ($[3] = (O) => { - r(t).emit("vf-fetch", { params: { q: "index", adapter: d.data.adapter, path: d.data.dirname } }); + (r(), v("svg", { + onClick: M[3] || (M[3] = (j) => { + a(t).emit("vf-fetch", { params: { q: "index", adapter: l.data.adapter, path: l.data.dirname } }); }), class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer", xmlns: "http://www.w3.org/2000/svg", viewBox: "-40 -40 580 580", fill: "currentColor" - }, rs)) - ], 8, os)), - c.value ? (a(), m("div", hs, [ - ks, + }, ss)) + ], 8, ts)), + m.value ? (r(), v("div", fs, [ + gs, R(e("input", { ref_key: "searchInput", - ref: l, - onKeydown: se(n, ["esc"]), - onBlur: D, - "onUpdate:modelValue": $[6] || ($[6] = (O) => Me(M) ? M.value = O : null), - placeholder: r(g)("Search anything.."), + ref: n, + onKeydown: se(d, ["esc"]), + onBlur: S, + "onUpdate:modelValue": M[6] || (M[6] = (j) => re(y) ? y.value = j : null), + placeholder: a(p)("Search anything.."), class: "w-full pt-1 pb-0 px-2 border-0 text-sm ring-0 outline-0 text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent", type: "text" - }, null, 40, xs), [ - [re, r(M)] + }, null, 40, ks), [ + [ae, a(y)] ]), - (a(), m("svg", { + (r(), v("svg", { class: "w-6 h-6 cursor-pointer", - onClick: n, + onClick: d, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" - }, ws)) - ])) : (a(), m("div", { + }, xs)) + ])) : (r(), v("div", { key: 2, class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full", - onClick: X(x, ["self"]) + onClick: Z(f, ["self"]) }, [ - (a(), m("svg", { - onClick: $[5] || ($[5] = (O) => r(t).emit("vf-fetch", { params: { q: "index", adapter: d.data.adapter } })), + (r(), v("svg", { + onClick: M[5] || (M[5] = (j) => a(t).emit("vf-fetch", { params: { q: "index", adapter: l.data.adapter } })), class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-gray-800 cursor-pointer", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor" - }, ds)), - e("div", cs, [ - (a(!0), m(I, null, P(p.value, (O, V) => (a(), m("div", { key: V }, [ - us, + }, is)), + e("div", ds, [ + (r(!0), v(H, null, J(i.value, (j, z) => (r(), v("div", { key: z }, [ + cs, e("span", { class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer", - title: O.basename, - onClick: (E) => r(t).emit("vf-fetch", { params: { q: "index", adapter: d.data.adapter, path: O.path } }) - }, v(O.name), 9, ms) + title: j.basename, + onClick: (I) => a(t).emit("vf-fetch", { params: { q: "index", adapter: l.data.adapter, path: j.path } }) + }, u(j.name), 9, us) ]))), 128)) ]), - _() ? (a(), m("svg", vs, gs)) : L("", !0) + w() ? (r(), v("svg", ms, hs)) : V("", !0) ])) ])); } -}), $s = ["onClick"], js = /* @__PURE__ */ e("span", { class: "px-1" }, null, -1), Cs = { +}), ys = ["onClick"], $s = /* @__PURE__ */ e("span", { class: "px-1" }, null, -1), Cs = { name: "VFContextMenu" }, Ms = /* @__PURE__ */ Object.assign(Cs, { props: { current: Object }, - setup(d) { - const t = b("emitter"), s = k(null), { apiUrl: o } = J(), p = b("root"), c = d, l = ce({ + setup(l) { + const t = k("emitter"), s = g(null), { apiUrl: o } = X(), i = k("root"), m = l, n = ve({ active: !1, items: [], positions: { left: 0, top: 0 } - }), u = k([]); - t.on("vf-context-selected", (_) => { - u.value = _; + }), h = g([]); + t.on("vf-context-selected", (w) => { + h.value = w; }); - const { t: g } = b("i18n"), i = { + const { t: p } = k("i18n"), c = { newfolder: { - title: () => g("New Folder"), + title: () => p("New Folder"), action: () => { t.emit("vf-modal-show", { type: "new-folder" }); } }, delete: { - title: () => g("Delete"), + title: () => p("Delete"), action: () => { - t.emit("vf-modal-show", { type: "delete", items: u }); + t.emit("vf-modal-show", { type: "delete", items: h }); } }, refresh: { - title: () => g("Refresh"), + title: () => p("Refresh"), action: () => { - t.emit("vf-fetch", { params: { q: "index", adapter: c.current.adapter, path: c.current.dirname } }); + t.emit("vf-fetch", { params: { q: "index", adapter: m.current.adapter, path: m.current.dirname } }); } }, preview: { - title: () => g("Preview"), + title: () => p("Preview"), action: () => { - t.emit("vf-modal-show", { type: "preview", adapter: c.current.adapter, item: u.value[0] }); + t.emit("vf-modal-show", { type: "preview", adapter: m.current.adapter, item: h.value[0] }); } }, open: { - title: () => g("Open"), + title: () => p("Open"), action: () => { - t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: c.current.adapter, path: u.value[0].path } }); + t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: m.current.adapter, path: h.value[0].path } }); } }, openDir: { - title: () => g("Open containing folder"), + title: () => p("Open containing folder"), action: () => { - t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: c.current.adapter, path: u.value[0].dir } }); + t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: m.current.adapter, path: h.value[0].dir } }); } }, download: { - title: () => g("Download"), + title: () => p("Download"), action: () => { - const _ = o.value + "?" + oe({ q: "download", adapter: c.current.adapter, path: u.value[0].path }); - t.emit("vf-download", _); + const w = o.value + "?" + oe({ q: "download", adapter: m.current.adapter, path: h.value[0].path }); + t.emit("vf-download", w); } }, archive: { - title: () => g("Archive"), + title: () => p("Archive"), action: () => { - t.emit("vf-modal-show", { type: "archive", items: u }); + t.emit("vf-modal-show", { type: "archive", items: h }); } }, unarchive: { - title: () => g("Unarchive"), + title: () => p("Unarchive"), action: () => { - t.emit("vf-modal-show", { type: "unarchive", items: u }); + t.emit("vf-modal-show", { type: "unarchive", items: h }); } }, rename: { - title: () => g("Rename"), + title: () => p("Rename"), action: () => { - t.emit("vf-modal-show", { type: "rename", items: u }); + t.emit("vf-modal-show", { type: "rename", items: h }); } } - }, n = (_) => { - t.emit("vf-contextmenu-hide"), _.action(); - }, x = k(""); - t.on("vf-search-query", ({ newQuery: _ }) => { - x.value = _; - }), t.on("vf-contextmenu-show", ({ event: _, area: j, items: w, target: z = null }) => { - if (l.items = [], x.value) - if (z) - l.items.push(i.openDir), t.emit("vf-context-selected", [z]); + }, d = (w) => { + t.emit("vf-contextmenu-hide"), w.action(); + }, f = g(""); + t.on("vf-search-query", ({ newQuery: w }) => { + f.value = w; + }), t.on("vf-contextmenu-show", ({ event: w, area: B, items: O, target: D = null }) => { + if (n.items = [], f.value) + if (D) + n.items.push(c.openDir), t.emit("vf-context-selected", [D]); else return; else - !z && !x.value ? (l.items.push(i.refresh), l.items.push(i.newfolder), t.emit("vf-context-selected", [])) : w.length > 1 && w.some((D) => D.path === z.path) ? (l.items.push(i.refresh), l.items.push(i.archive), l.items.push(i.delete), t.emit("vf-context-selected", w)) : (z.type == "dir" ? l.items.push(i.open) : (l.items.push(i.preview), l.items.push(i.download)), l.items.push(i.rename), z.mime_type == "application/zip" ? l.items.push(i.unarchive) : l.items.push(i.archive), l.items.push(i.delete), t.emit("vf-context-selected", [z])); - M(_, j); + !D && !f.value ? (n.items.push(c.refresh), n.items.push(c.newfolder), t.emit("vf-context-selected", [])) : O.length > 1 && O.some((S) => S.path === D.path) ? (n.items.push(c.refresh), n.items.push(c.archive), n.items.push(c.delete), t.emit("vf-context-selected", O)) : (D.type == "dir" ? n.items.push(c.open) : (n.items.push(c.preview), n.items.push(c.download)), n.items.push(c.rename), D.mime_type == "application/zip" ? n.items.push(c.unarchive) : n.items.push(c.archive), n.items.push(c.delete), t.emit("vf-context-selected", [D])); + y(w, B); }), t.on("vf-contextmenu-hide", () => { - l.active = !1; + n.active = !1; }); - const M = (_, j) => { - l.active = !0, pe(() => { - const w = p.value.getBoundingClientRect(), z = j.getBoundingClientRect(); - let D = _.pageX - w.left, C = _.pageY - w.top, $ = s.value.offsetHeight, O = s.value.offsetWidth; - D = z.right - _.pageX + window.scrollX < O ? D - O : D, C = z.bottom - _.pageY + window.scrollY < $ ? C - $ : C, l.positions = { - left: D + "px", - top: C + "px" + const y = (w, B) => { + n.active = !0, ge(() => { + const O = i.value.getBoundingClientRect(), D = B.getBoundingClientRect(); + let S = w.pageX - O.left, F = w.pageY - O.top, M = s.value.offsetHeight, j = s.value.offsetWidth; + S = D.right - w.pageX + window.scrollX < j ? S - j : S, F = D.bottom - w.pageY + window.scrollY < M ? F - M : F, n.positions = { + left: S + "px", + top: F + "px" }; }); }; - return (_, j) => l.active ? (a(), m("ul", { + return (w, B) => n.active ? (r(), v("ul", { key: 0, class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none", ref_key: "contextmenu", ref: s, - style: Se(l.positions) + style: ze(n.positions) }, [ - (a(!0), m(I, null, P(l.items, (w) => (a(), m("li", { + (r(!0), v(H, null, J(n.items, (O) => (r(), v("li", { class: "px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700", - key: w.title, - onClick: (z) => n(w) + key: O.title, + onClick: (D) => d(O) }, [ - js, - e("span", null, v(w.title()), 1) - ], 8, $s))), 128)) - ], 4)) : L("", !0); + $s, + e("span", null, u(O.title()), 1) + ], 8, ys))), 128)) + ], 4)) : V("", !0); } -}), Ss = (d, t) => { - const s = d[t]; - return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((o, p) => { - (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(p.bind(null, new Error("Unknown variable dynamic import: " + t))); +}), js = (l, t) => { + const s = l[t]; + return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((o, i) => { + (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(i.bind(null, new Error("Unknown variable dynamic import: " + t))); }); }; -async function Ds(d) { - return (await Ss(/* @__PURE__ */ Object.assign({ "../locales/de.js": () => import("./de-bb2cbcd2.js"), "../locales/en.js": () => import("./en-36ebc9b3.js"), "../locales/fa.js": () => import("./fa-38a6b855.js"), "../locales/he.js": () => import("./he-ed562a13.js"), "../locales/hi.js": () => import("./hi-6bb62179.js"), "../locales/ru.js": () => import("./ru-02b5dcbe.js"), "../locales/sv.js": () => import("./sv-0c0f15f4.js"), "../locales/tr.js": () => import("./tr-410a966d.js"), "../locales/zhCN.js": () => import("./zhCN-f37edc4d.js"), "../locales/zhTW.js": () => import("./zhTW-0fd6dd31.js") }), `../locales/${d}.js`)).default; +async function Ss(l) { + return (await js(/* @__PURE__ */ Object.assign({ "../locales/de.js": () => import("./de-3f6147f5.js"), "../locales/en.js": () => import("./en-ffed8966.js"), "../locales/fa.js": () => import("./fa-7534f880.js"), "../locales/he.js": () => import("./he-1978fb6e.js"), "../locales/hi.js": () => import("./hi-ffd5a2ba.js"), "../locales/ru.js": () => import("./ru-9f317caf.js"), "../locales/sv.js": () => import("./sv-07e3c393.js"), "../locales/tr.js": () => import("./tr-ce32e2ae.js"), "../locales/zhCN.js": () => import("./zhCN-9b524820.js"), "../locales/zhTW.js": () => import("./zhTW-a803434e.js") }), `../locales/${l}.js`)).default; } -function Os(d, t, s) { - const { getStore: o, setStore: p } = xe(d), c = k({}), l = (n, x = "en") => { - Ds(n).then((M) => { - c.value = M, p("locale", n), p("translations", M), s.emit("vf-toast-push", { label: "The language is set to " + n }); - }).catch((M) => { - x ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(x, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" }); +function Ds(l, t, s) { + const { getStore: o, setStore: i } = xe(l), m = g({}), n = g(o("locale", t)), h = (d, f = "en") => { + Ss(d).then((y) => { + m.value = y, i("locale", d), n.value = d, i("translations", y), s.emit("vf-toast-push", { label: "The language is set to " + d }); + }).catch((y) => { + f ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), h(f, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" }); }); }; - o("locale") ? c.value = o("translations") : l(t); - const u = (n, ...x) => x.length ? u(n = n.replace("%s", x.shift()), ...x) : n; - function g(n, ...x) { - return c.value.hasOwnProperty(n) ? u(c.value[n], ...x) : u(n, ...x); + o("locale") ? m.value = o("translations") : h(t); + const p = (d, ...f) => f.length ? p(d = d.replace("%s", f.shift()), ...f) : d; + function c(d, ...f) { + return m.value.hasOwnProperty(d) ? p(m.value[d], ...f) : p(d, ...f); } - function i() { - return o("locale"); - } - return { t: g, changeLocale: l, getLocale: i }; + return { t: c, changeLocale: h, locale: n }; +} +function Me(l, t, s, o, i) { + return (t = Math, s = t.log, o = 1024, i = s(l) / s(o) | 0, l / t.pow(o, i)).toFixed(0) + " " + (i ? "KMGTPEZY"[--i] + "iB" : "B"); +} +function je(l, t, s, o, i) { + return (t = Math, s = t.log, o = 1e3, i = s(l) / s(o) | 0, l / t.pow(o, i)).toFixed(0) + " " + (i ? "KMGTPEZY"[--i] + "B" : "B"); +} +function Os(l) { + const t = { k: 1, m: 2, g: 3, t: 4 }, o = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(l); + return o[1] * Math.pow(1024, t[o[2].toLowerCase()]); } const zs = /* @__PURE__ */ e("iframe", { id: "download_frame", @@ -1270,120 +1248,128 @@ const zs = /* @__PURE__ */ e("iframe", { default: {} } }, - setup(d) { - const t = d, s = Be(), { setStore: o, getStore: p } = xe(t.id), c = k(p("adapter")), l = k(null); - W("root", l), W("emitter", s), W("storage", xe(t.id)), W("postData", t.postData), W("adapter", c), W("maxFileSize", t.maxFileSize), W("usePropDarkMode", t.usePropDarkMode); - const u = Os(t.id, t.locale, s); - W("i18n", u); - const { apiUrl: g, setApiUrl: i } = J(); - i(t.url); - const n = ce({ adapter: c.value, storages: [], dirname: ".", files: [] }), x = k(p("viewport", "grid")), M = t.usePropDarkMode ? Ve(() => t.dark) : k(p("darkMode", t.dark)); - s.on("vf-darkMode-toggle", () => { - M.value = !M.value, o("darkMode", M.value); + setup(l) { + const t = l, s = He(), { setStore: o, getStore: i } = xe(t.id), m = g(i("adapter")), n = g(null); + Y("root", n), Y("emitter", s), Y("storage", xe(t.id)), Y("postData", t.postData), Y("adapter", m), Y("maxFileSize", t.maxFileSize), Y("usePropDarkMode", t.usePropDarkMode); + const h = Ds(t.id, t.locale, s); + Y("i18n", h); + const { apiUrl: p, setApiUrl: c } = X(); + c(t.url); + const d = ve({ adapter: m.value, storages: [], dirname: ".", files: [] }), f = g(i("viewport", "grid")), y = t.usePropDarkMode ? Ne(() => t.dark) : g(i("darkMode", t.dark)); + Y("darkMode", y), s.on("vf-darkMode-toggle", () => { + y.value = !y.value, o("darkMode", y.value); + }); + const w = g(i("metricUnits", !1)); + Y("metricUnits", w); + const B = g(w.value ? je : Me); + le(w, (j) => { + B.value = j ? je : Me; + }), Y("filesize", B), s.on("vf-metric-units-saved", (j) => { + w.value = j, o("metricUnits", j); }); - const _ = k(!1); - W("loadingState", _); - const j = k(p("full-screen", !1)); + const O = g(!1); + Y("loadingState", O); + const D = g(i("full-screen", !1)); s.on("vf-fullscreen-toggle", () => { - j.value = !j.value, o("full-screen", j.value); - }), s.on("vf-view-toggle", (C) => { - x.value = C; + D.value = !D.value, o("full-screen", D.value); + }), s.on("vf-view-toggle", (j) => { + f.value = j; }); - const w = ce({ + const S = ve({ active: !1, type: "delete", data: {} }); s.on("vf-modal-close", () => { - w.active = !1; - }), s.on("vf-modal-show", (C) => { - w.active = !0, w.type = C.type, w.data = C; + S.active = !1; + }), s.on("vf-modal-show", (j) => { + S.active = !0, S.type = j.type, S.data = j; }); - const z = (C) => { - Object.assign(n, C), s.emit("vf-nodes-selected", {}), s.emit("vf-explorer-update"); + const F = (j) => { + Object.assign(d, j), s.emit("vf-nodes-selected", {}), s.emit("vf-explorer-update"); }; - let D; + let M; return s.on("vf-fetch-abort", () => { - D.abort(), _.value = !1; - }), s.on("vf-fetch", ({ params: C, onSuccess: $ = null, onError: O = null, noCloseModal: V = !1 }) => { - ["index", "search"].includes(C.q) && (D && D.abort(), _.value = !0), D = new AbortController(); - const E = D.signal; - me(g.value, { params: C, signal: E }).then((q) => { - c.value = q.adapter, ["index", "search"].includes(C.q) && (_.value = !1), V || s.emit("vf-modal-close"), z(q), $(q); - }).catch((q) => { - O && O(q); + M.abort(), O.value = !1; + }), s.on("vf-fetch", ({ params: j, onSuccess: z = null, onError: I = null, noCloseModal: A = !1 }) => { + ["index", "search"].includes(j.q) && (M && M.abort(), O.value = !0), M = new AbortController(); + const ee = M.signal; + fe(p.value, { params: j, signal: ee }).then((G) => { + m.value = G.adapter, ["index", "search"].includes(j.q) && (O.value = !1), A || s.emit("vf-modal-close"), F(G), z(G); + }).catch((G) => { + I && I(G); }).finally(() => { }); - }), s.on("vf-download", (C) => { - document.getElementById("download_frame").src = C, s.emit("vf-modal-close"); - }), Y(() => { - s.emit("vf-fetch", { params: { q: "index", adapter: c.value } }); - }), (C, $) => (a(), m("div", { + }), s.on("vf-download", (j) => { + document.getElementById("download_frame").src = j, s.emit("vf-modal-close"); + }), K(() => { + s.emit("vf-fetch", { params: { q: "index", adapter: m.value } }); + }), (j, z) => (r(), v("div", { class: "vuefinder", ref_key: "root", - ref: l + ref: n }, [ e("div", { - class: U(r(M) ? "dark" : "") + class: T(a(y) ? "dark" : "") }, [ e("div", { - class: U([j.value ? "fixed w-screen inset-0 z-20" : "relative rounded-md", "border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]), - style: Se(j.value ? "" : "max-height: " + d.maxHeight), - onMousedown: $[0] || ($[0] = (O) => r(s).emit("vf-contextmenu-hide")), - onTouchstart: $[1] || ($[1] = (O) => r(s).emit("vf-contextmenu-hide")) + class: T([D.value ? "fixed w-screen inset-0 z-20" : "relative rounded-md", "border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]), + style: ze(D.value ? "" : "max-height: " + l.maxHeight), + onMousedown: z[0] || (z[0] = (I) => a(s).emit("vf-contextmenu-hide")), + onTouchstart: z[1] || (z[1] = (I) => a(s).emit("vf-contextmenu-hide")) }, [ - G(zt, { data: n }, null, 8, ["data"]), - G(_s, { data: n }, null, 8, ["data"]), - G(zo, { - view: x.value, - data: n + P(Et, { data: d }, null, 8, ["data"]), + P(ws, { data: d }, null, 8, ["data"]), + P(zo, { + view: f.value, + data: d }, null, 8, ["view", "data"]), - G(Ko, { data: n }, null, 8, ["data"]) + P(Jo, { data: d }, null, 8, ["data"]) ], 38), - w.active ? (a(), H(Ne("v-f-modal-" + w.type), { + S.active ? (r(), N(Ue("v-f-modal-" + S.type), { key: 0, - selection: w.data, - current: n - }, null, 8, ["selection", "current"])) : L("", !0), - G(Ms, { current: n }, null, 8, ["current"]), + selection: S.data, + current: d + }, null, 8, ["selection", "current"])) : V("", !0), + P(Ms, { current: d }, null, 8, ["current"]), zs ], 2) ], 512)); } -}), Ls = /* @__PURE__ */ e("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), Vs = { class: "fixed z-10 inset-0 overflow-hidden" }, Ns = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, Bs = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, As = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, K = { +}), Vs = /* @__PURE__ */ e("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), Bs = { class: "fixed z-10 inset-0 overflow-hidden" }, As = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, Ls = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Ns = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, W = { __name: "ModalLayout", - setup(d) { - const t = b("emitter"); - return Y(() => { + setup(l) { + const t = k("emitter"); + return K(() => { const s = document.querySelector(".v-f-modal input"); s && s.focus(); - }), (s, o) => (a(), m("div", { + }), (s, o) => (r(), v("div", { class: "v-f-modal relative z-30", "aria-labelledby": "modal-title", role: "dialog", "aria-modal": "true", - onKeyup: o[1] || (o[1] = se((p) => r(t).emit("vf-modal-close"), ["esc"])), + onKeyup: o[1] || (o[1] = se((i) => a(t).emit("vf-modal-close"), ["esc"])), tabindex: "0" }, [ - Ls, - e("div", Vs, [ + Vs, + e("div", Bs, [ e("div", { class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0", - onMousedown: o[0] || (o[0] = X((p) => r(t).emit("vf-modal-close"), ["self"])) + onMousedown: o[0] || (o[0] = Z((i) => a(t).emit("vf-modal-close"), ["self"])) }, [ - e("div", Ns, [ - e("div", Bs, [ - ke(s.$slots, "default") + e("div", As, [ + e("div", Ls, [ + pe(s.$slots, "default") ]), - e("div", As, [ - ke(s.$slots, "buttons") + e("div", Ns, [ + pe(s.$slots, "buttons") ]) ]) ], 32) ]) ], 32)); } -}, Hs = ["aria-label"], Ts = /* @__PURE__ */ e("svg", { +}, Us = ["aria-label"], Ts = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", @@ -1396,7 +1382,7 @@ const zs = /* @__PURE__ */ e("iframe", { "stroke-linejoin": "round", d: "M6 18L18 6M6 6l12 12" }) -], -1), Us = [ +], -1), Hs = [ Ts ], Is = { name: "Message" @@ -1408,28 +1394,28 @@ const zs = /* @__PURE__ */ e("iframe", { } }, emits: ["hidden"], - setup(d, { emit: t }) { - var g; - const { t: s } = b("i18n"), o = k(!1), p = k(null), c = k((g = p.value) == null ? void 0 : g.strMessage), l = t; - ve(c, () => o.value = !1); - const u = () => { - l("hidden"), o.value = !0; + setup(l, { emit: t }) { + var p; + const { t: s } = k("i18n"), o = g(!1), i = g(null), m = g((p = i.value) == null ? void 0 : p.strMessage), n = t; + le(m, () => o.value = !1); + const h = () => { + n("hidden"), o.value = !0; }; - return (i, n) => (a(), m("div", null, [ - o.value ? L("", !0) : (a(), m("div", { + return (c, d) => (r(), v("div", null, [ + o.value ? V("", !0) : (r(), v("div", { key: 0, ref_key: "strMessage", - ref: p, - class: U(["flex mt-2 p-1 px-2 rounded text-sm break-all", d.error ? "bg-red-100 text-red-600 dark:bg-red-950" : "bg-emerald-100 text-emerald-600 dark:bg-emerald-950"]) + ref: i, + class: T(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75", l.error ? "bg-red-100 text-red-600 " : "bg-emerald-100 text-emerald-600"]) }, [ - ke(i.$slots, "default"), + pe(c.$slots, "default"), e("div", { class: "ml-auto cursor-pointer", - onClick: u, - "aria-label": r(s)("Close"), + onClick: h, + "aria-label": a(s)("Close"), "data-microtip-position": "top-left", role: "tooltip" - }, Us, 8, Hs) + }, Hs, 8, Us) ], 2)) ])); } @@ -1452,7 +1438,7 @@ const zs = /* @__PURE__ */ e("iframe", { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" }, Ys = { class: "mt-2" }, Js = { class: "text-sm text-gray-500" }, Ks = { - class: "text-gray-500 text-sm mb-1 overflow-auto", + class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar", style: { "max-height": "200px" } }, Ws = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Xs = { key: 0, @@ -1468,7 +1454,7 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" }, null, -1), Zs = [ Qs -], er = { +], ea = { key: 1, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500", @@ -1476,75 +1462,75 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, tr = /* @__PURE__ */ e("path", { +}, ta = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" -}, null, -1), or = [ - tr -], sr = { class: "ml-1.5" }, rr = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, ar = { +}, null, -1), oa = [ + ta +], sa = { class: "ml-1.5" }, aa = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, na = { name: "VFModalDelete" -}, nr = /* @__PURE__ */ Object.assign(ar, { +}, ra = /* @__PURE__ */ Object.assign(na, { props: { selection: Object, current: Object }, - setup(d) { - const t = b("emitter"); - b("storage"); - const s = b("adapter"), { t: o } = b("i18n"), p = d, c = k(p.selection.items), l = k(""), u = () => { - c.value.length && t.emit("vf-fetch", { + setup(l) { + const t = k("emitter"); + k("storage"); + const s = k("adapter"), { t: o } = k("i18n"), i = l, m = g(i.selection.items), n = g(""), h = () => { + m.value.length && t.emit("vf-fetch", { params: { q: "delete", adapter: s.value, - path: p.current.dirname, - items: JSON.stringify(c.value.map(({ path: g, type: i }) => ({ path: g, type: i }))) + path: i.current.dirname, + items: JSON.stringify(m.value.map(({ path: p, type: c }) => ({ path: p, type: c }))) }, onSuccess: () => { t.emit("vf-toast-push", { label: o("Files deleted.") }); }, - onError: (g) => { - l.value = o(g.message); + onError: (p) => { + n.value = o(p.message); } }); }; - return (g, i) => (a(), H(K, null, { - buttons: N(() => [ + return (p, c) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: u, - class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Yes, Delete!")), 1), + onClick: h, + class: "vf-btn vf-btn-danger" + }, u(a(o)("Yes, Delete!")), 1), e("button", { type: "button", - onClick: i[1] || (i[1] = (n) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Cancel")), 1), - e("div", rr, v(r(o)("This action cannot be undone.")), 1) + onClick: c[1] || (c[1] = (d) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Cancel")), 1), + e("div", aa, u(a(o)("This action cannot be undone.")), 1) ]), - default: N(() => [ + default: E(() => [ e("div", qs, [ Rs, e("div", Ps, [ - e("h3", Gs, v(r(o)("Delete files")), 1), + e("h3", Gs, u(a(o)("Delete files")), 1), e("div", Ys, [ - e("p", Js, v(r(o)("Are you sure you want to delete these files?")), 1), + e("p", Js, u(a(o)("Are you sure you want to delete these files?")), 1), e("div", Ks, [ - (a(!0), m(I, null, P(c.value, (n) => (a(), m("p", Ws, [ - n.type === "dir" ? (a(), m("svg", Xs, Zs)) : (a(), m("svg", er, or)), - e("span", sr, v(n.basename), 1) + (r(!0), v(H, null, J(m.value, (d) => (r(), v("p", Ws, [ + d.type === "dir" ? (r(), v("svg", Xs, Zs)) : (r(), v("svg", ea, oa)), + e("span", sa, u(d.basename), 1) ]))), 256)) ]), - l.value.length ? (a(), H(Q, { + n.value.length ? (r(), N(Q, { key: 0, - onHidden: i[0] || (i[0] = (n) => l.value = ""), + onHidden: c[0] || (c[0] = (d) => n.value = ""), error: "" }, { - default: N(() => [ - T(v(l.value), 1) + default: E(() => [ + U(u(n.value), 1) ]), _: 1 - })) : L("", !0) + })) : V("", !0) ]) ]) ]) @@ -1552,7 +1538,7 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), lr = { class: "sm:flex sm:items-start" }, ir = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), la = { class: "sm:flex sm:items-start" }, ia = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", @@ -1567,34 +1553,34 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) ]) -], -1), dr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, cr = { +], -1), da = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ca = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, ur = { class: "mt-2" }, mr = { class: "text-sm text-gray-500" }, vr = { +}, ua = { class: "mt-2" }, ma = { class: "text-sm text-gray-500" }, va = { name: "VFModalMessage" -}, pr = /* @__PURE__ */ Object.assign(vr, { +}, pa = /* @__PURE__ */ Object.assign(va, { props: { selection: Object }, - setup(d) { - const t = b("emitter"), { t: s } = b("i18n"); - return (o, p) => (a(), H(K, null, { - buttons: N(() => [ + setup(l) { + const t = k("emitter"), { t: s } = k("i18n"); + return (o, i) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: p[0] || (p[0] = (c) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(s)("Close")), 1) + onClick: i[0] || (i[0] = (m) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(s)("Close")), 1) ]), - default: N(() => { - var c, l; + default: E(() => { + var m, n; return [ - e("div", lr, [ - ir, - e("div", dr, [ - e("h3", cr, v(((c = d.selection) == null ? void 0 : c.title) ?? "Title"), 1), - e("div", ur, [ - e("p", mr, v(((l = d.selection) == null ? void 0 : l.message) ?? "Message"), 1) + e("div", la, [ + ia, + e("div", da, [ + e("h3", ca, u(((m = l.selection) == null ? void 0 : m.title) ?? "Title"), 1), + e("div", ua, [ + e("p", ma, u(((n = l.selection) == null ? void 0 : n.message) ?? "Message"), 1) ]) ]) ]) @@ -1603,7 +1589,7 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), fr = { class: "sm:flex sm:items-start" }, gr = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), ha = { class: "sm:flex sm:items-start" }, fa = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", @@ -1618,74 +1604,74 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z" }) ]) -], -1), hr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, kr = { +], -1), ga = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ka = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, xr = { class: "mt-2" }, br = { class: "text-sm text-gray-500" }, wr = ["placeholder"], yr = { +}, _a = { class: "mt-2" }, xa = { class: "text-sm text-gray-500" }, ba = ["placeholder"], wa = { name: "VFModalNewFolder" -}, _r = /* @__PURE__ */ Object.assign(yr, { +}, ya = /* @__PURE__ */ Object.assign(wa, { props: { selection: Object, current: Object }, - setup(d) { - const t = b("emitter"); - b("storage"); - const s = b("adapter"), { t: o } = b("i18n"), p = d, c = k(""), l = k(""), u = () => { - c.value != "" && t.emit("vf-fetch", { + setup(l) { + const t = k("emitter"); + k("storage"); + const s = k("adapter"), { t: o } = k("i18n"), i = l, m = g(""), n = g(""), h = () => { + m.value != "" && t.emit("vf-fetch", { params: { q: "newfolder", adapter: s.value, - path: p.current.dirname, - name: c.value + path: i.current.dirname, + name: m.value }, onSuccess: () => { - t.emit("vf-toast-push", { label: o("%s is created.", c.value) }); + t.emit("vf-toast-push", { label: o("%s is created.", m.value) }); }, - onError: (g) => { - l.value = o(g.message); + onError: (p) => { + n.value = o(p.message); } }); }; - return (g, i) => (a(), H(K, null, { - buttons: N(() => [ + return (p, c) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: u, - class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Create")), 1), + onClick: h, + class: "vf-btn vf-btn-primary" + }, u(a(o)("Create")), 1), e("button", { type: "button", - onClick: i[2] || (i[2] = (n) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Cancel")), 1) + onClick: c[2] || (c[2] = (d) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Cancel")), 1) ]), - default: N(() => [ - e("div", fr, [ - gr, - e("div", hr, [ - e("h3", kr, v(r(o)("New Folder")), 1), - e("div", xr, [ - e("p", br, v(r(o)("Create a new folder")), 1), + default: E(() => [ + e("div", ha, [ + fa, + e("div", ga, [ + e("h3", ka, u(a(o)("New Folder")), 1), + e("div", _a, [ + e("p", xa, u(a(o)("Create a new folder")), 1), R(e("input", { - "onUpdate:modelValue": i[0] || (i[0] = (n) => c.value = n), - onKeyup: se(u, ["enter"]), + "onUpdate:modelValue": c[0] || (c[0] = (d) => m.value = d), + onKeyup: se(h, ["enter"]), class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full", - placeholder: r(o)("Folder Name"), + placeholder: a(o)("Folder Name"), type: "text" - }, null, 40, wr), [ - [re, c.value] + }, null, 40, ba), [ + [ae, m.value] ]), - l.value.length ? (a(), H(Q, { + n.value.length ? (r(), N(Q, { key: 0, - onHidden: i[1] || (i[1] = (n) => l.value = ""), + onHidden: c[1] || (c[1] = (d) => n.value = ""), error: "" }, { - default: N(() => [ - T(v(l.value), 1) + default: E(() => [ + U(u(n.value), 1) ]), _: 1 - })) : L("", !0) + })) : V("", !0) ]) ]) ]) @@ -1693,7 +1679,7 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), $r = { class: "sm:flex sm:items-start" }, jr = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), $a = { class: "sm:flex sm:items-start" }, Ca = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", @@ -1708,74 +1694,74 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" }) ]) -], -1), Cr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Mr = { +], -1), Ma = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ja = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, Sr = { class: "mt-2" }, Dr = { class: "text-sm text-gray-500" }, Or = ["placeholder"], zr = { +}, Sa = { class: "mt-2" }, Da = { class: "text-sm text-gray-500" }, Oa = ["placeholder"], za = { name: "VFModalNewFile" -}, Er = /* @__PURE__ */ Object.assign(zr, { +}, Ea = /* @__PURE__ */ Object.assign(za, { props: { selection: Object, current: Object }, - setup(d) { - const t = b("emitter"); - b("storage"); - const s = b("adapter"), { t: o } = b("i18n"), p = d, c = k(""), l = k(""), u = () => { - c.value != "" && t.emit("vf-fetch", { + setup(l) { + const t = k("emitter"); + k("storage"); + const s = k("adapter"), { t: o } = k("i18n"), i = l, m = g(""), n = g(""), h = () => { + m.value != "" && t.emit("vf-fetch", { params: { q: "newfile", adapter: s.value, - path: p.current.dirname, - name: c.value + path: i.current.dirname, + name: m.value }, onSuccess: () => { - t.emit("vf-toast-push", { label: o("%s is created.", c.value) }); + t.emit("vf-toast-push", { label: o("%s is created.", m.value) }); }, - onError: (g) => { - l.value = o(g.message); + onError: (p) => { + n.value = o(p.message); } }); }; - return (g, i) => (a(), H(K, null, { - buttons: N(() => [ + return (p, c) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: u, - class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Create")), 1), + onClick: h, + class: "vf-btn vf-btn-primary" + }, u(a(o)("Create")), 1), e("button", { type: "button", - onClick: i[2] || (i[2] = (n) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Cancel")), 1) + onClick: c[2] || (c[2] = (d) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Cancel")), 1) ]), - default: N(() => [ - e("div", $r, [ - jr, - e("div", Cr, [ - e("h3", Mr, v(r(o)("New File")), 1), - e("div", Sr, [ - e("p", Dr, v(r(o)("Create a new file")), 1), + default: E(() => [ + e("div", $a, [ + Ca, + e("div", Ma, [ + e("h3", ja, u(a(o)("New File")), 1), + e("div", Sa, [ + e("p", Da, u(a(o)("Create a new file")), 1), R(e("input", { - "onUpdate:modelValue": i[0] || (i[0] = (n) => c.value = n), - onKeyup: se(u, ["enter"]), + "onUpdate:modelValue": c[0] || (c[0] = (d) => m.value = d), + onKeyup: se(h, ["enter"]), class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full", - placeholder: r(o)("File Name"), + placeholder: a(o)("File Name"), type: "text" - }, null, 40, Or), [ - [re, c.value] + }, null, 40, Oa), [ + [ae, m.value] ]), - l.value.length ? (a(), H(Q, { + n.value.length ? (r(), N(Q, { key: 0, - onHidden: i[1] || (i[1] = (n) => l.value = ""), + onHidden: c[1] || (c[1] = (d) => n.value = ""), error: "" }, { - default: N(() => [ - T(v(l.value), 1) + default: E(() => [ + U(u(n.value), 1) ]), _: 1 - })) : L("", !0) + })) : V("", !0) ]) ]) ]) @@ -1783,308 +1769,308 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), Fr = { class: "flex" }, Lr = ["aria-label"], Vr = { class: "ml-auto mb-2" }, Nr = { +}), Fa = { class: "flex" }, Va = ["aria-label"], Ba = { class: "ml-auto mb-2" }, Aa = { key: 0, class: "p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto" -}, Br = { key: 1 }, Ar = { +}, La = { key: 1 }, Na = { __name: "Text", props: { selection: Object }, emits: ["load"], - setup(d, { emit: t }) { - const s = t, o = k(""), p = k(""), c = k(null), l = k(!1), { apiUrl: u } = J(), g = d, i = k(""), n = k(!1), { t: x } = b("i18n"); - Y(() => { - me(u.value, { - params: { q: "preview", adapter: g.selection.adapter, path: g.selection.item.path }, + setup(l, { emit: t }) { + const s = t, o = g(""), i = g(""), m = g(null), n = g(!1), { apiUrl: h } = X(), p = l, c = g(""), d = g(!1), { t: f } = k("i18n"); + K(() => { + fe(h.value, { + params: { q: "preview", adapter: p.selection.adapter, path: p.selection.item.path }, json: !1 - }).then((w) => { - o.value = w, s("load"); + }).then((O) => { + o.value = O, s("load"); }); }); - const M = () => { - l.value = !l.value, p.value = o.value, l.value == !0 && pe(() => { - c.value.focus(); + const y = () => { + n.value = !n.value, i.value = o.value, n.value == !0 && ge(() => { + m.value.focus(); }); - }, _ = b("postData"), j = () => { - i.value = "", n.value = !1, me(u.value, { + }, w = k("postData"), B = () => { + c.value = "", d.value = !1, fe(h.value, { method: "POST", - params: Object.assign(_, { + params: Object.assign(w, { q: "save", - adapter: g.selection.adapter, - path: g.selection.item.path, - content: p.value + adapter: p.selection.adapter, + path: p.selection.item.path, + content: i.value }), json: !1 - }).then((w) => { - i.value = x("Updated."), o.value = w, s("load"), l.value = !l.value; - }).catch((w) => { - i.value = x(w.message), n.value = !0; + }).then((O) => { + c.value = f("Updated."), o.value = O, s("load"), n.value = !n.value; + }).catch((O) => { + c.value = f(O.message), d.value = !0; }); }; - return (w, z) => (a(), m(I, null, [ - e("div", Fr, [ + return (O, D) => (r(), v(H, null, [ + e("div", Fa, [ e("div", { class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title", - "aria-label": d.selection.item.path, + "aria-label": l.selection.item.path, "data-microtip-position": "bottom-right", role: "tooltip" - }, v(d.selection.item.basename), 9, Lr), - e("div", Vr, [ - l.value ? (a(), m("button", { + }, u(l.selection.item.basename), 9, Va), + e("div", Ba, [ + n.value ? (r(), v("button", { key: 0, - onClick: j, + onClick: B, class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(x)("Save")), 1)) : L("", !0), + }, u(a(f)("Save")), 1)) : V("", !0), e("button", { class: "ml-1 px-2 py-1 text-blue-500", - onClick: z[0] || (z[0] = (D) => M()) - }, v(l.value ? r(x)("Cancel") : r(x)("Edit")), 1) + onClick: D[0] || (D[0] = (S) => y()) + }, u(n.value ? a(f)("Cancel") : a(f)("Edit")), 1) ]) ]), e("div", null, [ - l.value ? (a(), m("div", Br, [ + n.value ? (r(), v("div", La, [ R(e("textarea", { ref_key: "editInput", - ref: c, - "onUpdate:modelValue": z[1] || (z[1] = (D) => p.value = D), + ref: m, + "onUpdate:modelValue": D[1] || (D[1] = (S) => i.value = S), class: "w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] max-h-[60vh] text-xs", name: "text", id: "", cols: "30", rows: "10" }, null, 512), [ - [re, p.value] + [ae, i.value] ]) - ])) : (a(), m("pre", Nr, v(o.value), 1)), - i.value.length ? (a(), H(Q, { + ])) : (r(), v("pre", Aa, u(o.value), 1)), + c.value.length ? (r(), N(Q, { key: 2, - onHidden: z[2] || (z[2] = (D) => i.value = ""), - error: n.value + onHidden: D[2] || (D[2] = (S) => c.value = ""), + error: d.value }, { - default: N(() => [ - T(v(i.value), 1) + default: E(() => [ + U(u(c.value), 1) ]), _: 1 - }, 8, ["error"])) : L("", !0) + }, 8, ["error"])) : V("", !0) ]) ], 64)); } -}, Hr = { class: "flex" }, Tr = ["aria-label"], Ur = { class: "ml-auto mb-2" }, Ir = { class: "w-full flex justify-center" }, qr = ["src"], Rr = { +}, Ua = { class: "flex" }, Ta = ["aria-label"], Ha = { class: "ml-auto mb-2" }, Ia = { class: "w-full flex justify-center" }, qa = ["src"], Ra = { __name: "Image", props: { selection: Object }, emits: ["load"], - setup(d, { emit: t }) { - const s = t, o = d, { t: p } = b("i18n"), { apiUrl: c } = J(), l = k(null), u = k(null), g = k(!1), i = k(""), n = k(!1), x = () => { - g.value = !g.value, g.value ? u.value = new Te(l.value, { - crop(j) { + setup(l, { emit: t }) { + const s = t, o = l, { t: i } = k("i18n"), { apiUrl: m } = X(), n = g(null), h = g(null), p = g(!1), c = g(""), d = g(!1), f = () => { + p.value = !p.value, p.value ? h.value = new Re(n.value, { + crop(B) { } - }) : u.value.destroy(); - }, M = b("postData"), _ = () => { - u.value.getCroppedCanvas({ + }) : h.value.destroy(); + }, y = k("postData"), w = () => { + h.value.getCroppedCanvas({ width: 795, height: 341 }).toBlob( - (j) => { - i.value = "", n.value = !1, me(c.value, { + (B) => { + c.value = "", d.value = !1, fe(m.value, { method: "POST", - params: Object.assign(M, { + params: Object.assign(y, { q: "upload", adapter: o.selection.adapter, path: o.selection.item.path, - file: j + file: B }), name: o.selection.item.basename, json: !1 - }).then((w) => { - i.value = p("Updated."), l.value.src = be(o.selection.adapter, o.selection.item.path), x(), s("load"); - }).catch((w) => { - i.value = p(w.message), n.value = !0; + }).then((O) => { + c.value = i("Updated."), n.value.src = be(o.selection.adapter, o.selection.item.path), f(), s("load"); + }).catch((O) => { + c.value = i(O.message), d.value = !0; }); } ); }; - return Y(() => { + return K(() => { s("load"); - }), (j, w) => (a(), m(I, null, [ - e("div", Hr, [ + }), (B, O) => (r(), v(H, null, [ + e("div", Ua, [ e("h3", { class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title", - "aria-label": d.selection.item.path, + "aria-label": l.selection.item.path, "data-microtip-position": "bottom-right", role: "tooltip" - }, v(d.selection.item.basename), 9, Tr), - e("div", Ur, [ - g.value ? (a(), m("button", { + }, u(l.selection.item.basename), 9, Ta), + e("div", Ha, [ + p.value ? (r(), v("button", { key: 0, - onClick: _, + onClick: w, class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(p)("Crop")), 1)) : L("", !0), + }, u(a(i)("Crop")), 1)) : V("", !0), e("button", { class: "ml-1 px-2 py-1 text-blue-500", - onClick: w[0] || (w[0] = (z) => x()) - }, v(g.value ? r(p)("Cancel") : r(p)("Edit")), 1) + onClick: O[0] || (O[0] = (D) => f()) + }, u(p.value ? a(i)("Cancel") : a(i)("Edit")), 1) ]) ]), - e("div", Ir, [ + e("div", Ia, [ e("img", { ref_key: "image", - ref: l, + ref: n, class: "max-w-[50vh] max-h-[50vh]", - src: r(be)(o.selection.adapter, o.selection.item.path), + src: a(be)(o.selection.adapter, o.selection.item.path), alt: "" - }, null, 8, qr) + }, null, 8, qa) ]), - i.value.length ? (a(), H(Q, { + c.value.length ? (r(), N(Q, { key: 0, - onHidden: w[1] || (w[1] = (z) => i.value = ""), - error: n.value + onHidden: O[1] || (O[1] = (D) => c.value = ""), + error: d.value }, { - default: N(() => [ - T(v(i.value), 1) + default: E(() => [ + U(u(c.value), 1) ]), _: 1 - }, 8, ["error"])) : L("", !0) + }, 8, ["error"])) : V("", !0) ], 64)); } -}, Pr = { class: "flex" }, Gr = ["aria-label"], Yr = /* @__PURE__ */ e("div", null, null, -1), Jr = { +}, Pa = { class: "flex" }, Ga = ["aria-label"], Ya = /* @__PURE__ */ e("div", null, null, -1), Ja = { __name: "Default", props: { selection: Object }, emits: ["load"], - setup(d, { emit: t }) { + setup(l, { emit: t }) { const s = t; - return Y(() => { + return K(() => { s("load"); - }), (o, p) => (a(), m(I, null, [ - e("div", Pr, [ + }), (o, i) => (r(), v(H, null, [ + e("div", Pa, [ e("h3", { class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title", - "aria-label": d.selection.item.path, + "aria-label": l.selection.item.path, "data-microtip-position": "bottom-right", role: "tooltip" - }, v(d.selection.item.basename), 9, Gr) + }, u(l.selection.item.basename), 9, Ga) ]), - Yr + Ya ], 64)); } -}, Kr = ["aria-label"], Wr = { +}, Ka = ["aria-label"], Wa = { class: "w-full", preload: "", controls: "" -}, Xr = ["src"], Qr = { +}, Xa = ["src"], Qa = { __name: "Video", props: { selection: Object }, emits: ["load"], - setup(d, { emit: t }) { - const { apiUrl: s } = J(), o = d, p = t, c = () => s.value + "?" + oe({ q: "preview", adapter: o.selection.adapter, path: o.selection.item.path }); - return Y(() => { - p("load"); - }), (l, u) => (a(), m(I, null, [ + setup(l, { emit: t }) { + const { apiUrl: s } = X(), o = l, i = t, m = () => s.value + "?" + oe({ q: "preview", adapter: o.selection.adapter, path: o.selection.item.path }); + return K(() => { + i("load"); + }), (n, h) => (r(), v(H, null, [ e("h3", { class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title", - "aria-label": d.selection.item.path, + "aria-label": l.selection.item.path, "data-microtip-position": "bottom-right", role: "tooltip" - }, v(d.selection.item.basename), 9, Kr), + }, u(l.selection.item.basename), 9, Ka), e("div", null, [ - e("video", Wr, [ + e("video", Wa, [ e("source", { - src: c(), + src: m(), type: "video/mp4" - }, null, 8, Xr), - T(" Your browser does not support the video tag. ") + }, null, 8, Xa), + U(" Your browser does not support the video tag. ") ]) ]) ], 64)); } -}, Zr = ["aria-label"], ea = { +}, Za = ["aria-label"], en = { class: "w-full", controls: "" -}, ta = ["src"], oa = { +}, tn = ["src"], on = { __name: "Audio", props: { selection: Object }, emits: ["load"], - setup(d, { emit: t }) { - const { apiUrl: s } = J(), o = d, p = t, c = () => s.value + "?" + oe({ q: "preview", adapter: o.selection.adapter, path: o.selection.item.path }); - return Y(() => { - p("load"); - }), (l, u) => (a(), m(I, null, [ + setup(l, { emit: t }) { + const { apiUrl: s } = X(), o = l, i = t, m = () => s.value + "?" + oe({ q: "preview", adapter: o.selection.adapter, path: o.selection.item.path }); + return K(() => { + i("load"); + }), (n, h) => (r(), v(H, null, [ e("h3", { class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title", - "aria-label": d.selection.item.path, + "aria-label": l.selection.item.path, "data-microtip-position": "bottom-right", role: "tooltip" - }, v(d.selection.item.basename), 9, Zr), + }, u(l.selection.item.basename), 9, Za), e("div", null, [ - e("audio", ea, [ + e("audio", en, [ e("source", { - src: c(), + src: m(), type: "audio/mpeg" - }, null, 8, ta), - T(" Your browser does not support the audio element. ") + }, null, 8, tn), + U(" Your browser does not support the audio element. ") ]) ]) ], 64)); } -}, sa = ["aria-label"], ra = ["data"], aa = ["src"], na = /* @__PURE__ */ e("p", null, [ - /* @__PURE__ */ T(" Your browser does not support PDFs. "), +}, sn = ["aria-label"], an = ["data"], nn = ["src"], rn = /* @__PURE__ */ e("p", null, [ + /* @__PURE__ */ U(" Your browser does not support PDFs. "), /* @__PURE__ */ e("a", { href: "https://example.com/test.pdf" }, "Download the PDF"), - /* @__PURE__ */ T(" . ") -], -1), la = [ - na -], ia = { + /* @__PURE__ */ U(" . ") +], -1), ln = [ + rn +], dn = { __name: "Pdf", props: { selection: Object }, emits: ["load"], - setup(d, { emit: t }) { - const { apiUrl: s } = J(), o = d, p = t, c = () => s.value + "?" + oe({ q: "preview", adapter: o.selection.adapter, path: o.selection.item.path }); - return Y(() => { - p("load"); - }), (l, u) => (a(), m(I, null, [ + setup(l, { emit: t }) { + const { apiUrl: s } = X(), o = l, i = t, m = () => s.value + "?" + oe({ q: "preview", adapter: o.selection.adapter, path: o.selection.item.path }); + return K(() => { + i("load"); + }), (n, h) => (r(), v(H, null, [ e("h3", { class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title", - "aria-label": d.selection.item.path, + "aria-label": l.selection.item.path, "data-microtip-position": "bottom-right", role: "tooltip" - }, v(d.selection.item.basename), 9, sa), + }, u(l.selection.item.basename), 9, sn), e("div", null, [ e("object", { class: "h-[60vh]", - data: c(), + data: m(), type: "application/pdf", width: "100%", height: "100%" }, [ e("iframe", { class: "border-0", - src: c(), + src: m(), width: "100%", height: "100%" - }, la, 8, aa) - ], 8, ra) + }, ln, 8, nn) + ], 8, an) ]) ], 64)); } -}, da = { class: "sm:flex sm:items-start" }, ca = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, ua = { class: "text-gray-700 dark:text-gray-200 text-sm" }, ma = { +}, cn = { class: "sm:flex sm:items-start" }, un = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, mn = { class: "text-gray-700 dark:text-gray-200 text-sm" }, vn = { key: 0, class: "flex leading-5" -}, va = /* @__PURE__ */ e("svg", { +}, pn = /* @__PURE__ */ e("svg", { class: "animate-spin -ml-1 mr-3 h-5 w-5 text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", @@ -2103,83 +2089,83 @@ const zs = /* @__PURE__ */ e("iframe", { fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" }) -], -1), pa = { class: "py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, fa = { class: "font-bold pl-2" }, ga = { class: "font-bold pl-2" }, ha = { +], -1), hn = { class: "py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, fn = { class: "font-bold pl-2" }, gn = { class: "font-bold pl-2" }, kn = { name: "VFModalPreview" -}, ka = /* @__PURE__ */ Object.assign(ha, { +}, _n = /* @__PURE__ */ Object.assign(kn, { props: { selection: Object }, - setup(d) { - const { apiUrl: t } = J(), s = b("emitter"), { t: o } = b("i18n"), p = k(!1), c = (i) => p.value = i, l = d, u = (i) => (l.selection.item.mime_type ?? "").startsWith(i), g = () => { - const i = t.value + "?" + oe({ q: "download", adapter: l.selection.adapter, path: l.selection.item.path }); - s.emit("vf-download", i); + setup(l) { + const { apiUrl: t } = X(), s = k("emitter"), { t: o } = k("i18n"), i = g(!1), m = k("filesize"), n = (d) => i.value = d, h = l, p = (d) => (h.selection.item.mime_type ?? "").startsWith(d), c = () => { + const d = t.value + "?" + oe({ q: "download", adapter: h.selection.adapter, path: h.selection.item.path }); + s.emit("vf-download", d); }; - return (i, n) => (a(), H(K, null, { - buttons: N(() => [ + return (d, f) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: n[6] || (n[6] = (x) => r(s).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-gray-400 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Close")), 1), + onClick: f[6] || (f[6] = (y) => a(s).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Close")), 1), e("button", { type: "button", - onClick: n[7] || (n[7] = (x) => g()), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-gray-400 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Download")), 1) + onClick: f[7] || (f[7] = (y) => c()), + class: "vf-btn vf-btn-primary" + }, u(a(o)("Download")), 1) ]), - default: N(() => [ - e("div", da, [ - e("div", ca, [ + default: E(() => [ + e("div", cn, [ + e("div", un, [ e("div", null, [ - u("text") ? (a(), H(Ar, { + p("text") ? (r(), N(Na, { key: 0, - selection: d.selection, - onLoad: n[0] || (n[0] = (x) => c(!0)) - }, null, 8, ["selection"])) : u("image") ? (a(), H(Rr, { + selection: l.selection, + onLoad: f[0] || (f[0] = (y) => n(!0)) + }, null, 8, ["selection"])) : p("image") ? (r(), N(Ra, { key: 1, - selection: d.selection, - onLoad: n[1] || (n[1] = (x) => c(!0)) - }, null, 8, ["selection"])) : u("video") ? (a(), H(Qr, { + selection: l.selection, + onLoad: f[1] || (f[1] = (y) => n(!0)) + }, null, 8, ["selection"])) : p("video") ? (r(), N(Qa, { key: 2, - selection: d.selection, - onLoad: n[2] || (n[2] = (x) => c(!0)) - }, null, 8, ["selection"])) : u("audio") ? (a(), H(oa, { + selection: l.selection, + onLoad: f[2] || (f[2] = (y) => n(!0)) + }, null, 8, ["selection"])) : p("audio") ? (r(), N(on, { key: 3, - selection: d.selection, - onLoad: n[3] || (n[3] = (x) => c(!0)) - }, null, 8, ["selection"])) : u("application/pdf") ? (a(), H(ia, { + selection: l.selection, + onLoad: f[3] || (f[3] = (y) => n(!0)) + }, null, 8, ["selection"])) : p("application/pdf") ? (r(), N(dn, { key: 4, - selection: d.selection, - onLoad: n[4] || (n[4] = (x) => c(!0)) - }, null, 8, ["selection"])) : (a(), H(Jr, { + selection: l.selection, + onLoad: f[4] || (f[4] = (y) => n(!0)) + }, null, 8, ["selection"])) : (r(), N(Ja, { key: 5, - selection: d.selection, - onLoad: n[5] || (n[5] = (x) => c(!0)) + selection: l.selection, + onLoad: f[5] || (f[5] = (y) => n(!0)) }, null, 8, ["selection"])) ]), - e("div", ua, [ - p.value == !1 ? (a(), m("div", ma, [ - va, - e("span", null, v(r(o)("Loading")), 1) - ])) : L("", !0) + e("div", mn, [ + i.value == !1 ? (r(), v("div", vn, [ + pn, + e("span", null, u(a(o)("Loading")), 1) + ])) : V("", !0) ]) ]) ]), - e("div", pa, [ + e("div", hn, [ e("div", null, [ - e("span", fa, v(r(o)("File Size")) + ": ", 1), - T(v(r(ye)(d.selection.item.file_size)), 1) + e("span", fn, u(a(o)("File Size")) + ": ", 1), + U(u(a(m)(l.selection.item.file_size)), 1) ]), e("div", null, [ - e("span", ga, v(r(o)("Last Modified")) + ": ", 1), - T(" " + v(r(De)(d.selection.item.last_modified)), 1) + e("span", gn, u(a(o)("Last Modified")) + ": ", 1), + U(" " + u(a(Ee)(l.selection.item.last_modified)), 1) ]) ]) ]), _: 1 })); } -}), xa = { class: "sm:flex sm:items-start" }, ba = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), xn = { class: "sm:flex sm:items-start" }, bn = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", @@ -2194,10 +2180,10 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" }) ]) -], -1), wa = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ya = { +], -1), wn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, yn = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, _a = { class: "mt-2" }, $a = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, ja = { +}, $n = { class: "mt-2" }, Cn = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, Mn = { key: 0, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500", @@ -2205,13 +2191,13 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, Ca = /* @__PURE__ */ e("path", { +}, jn = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" -}, null, -1), Ma = [ - Ca -], Sa = { +}, null, -1), Sn = [ + jn +], Dn = { key: 1, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500", @@ -2219,81 +2205,81 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, Da = /* @__PURE__ */ e("path", { +}, On = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" -}, null, -1), Oa = [ - Da -], za = { class: "ml-1.5" }, Ea = { +}, null, -1), zn = [ + On +], En = { class: "ml-1.5" }, Fn = { name: "VFModalRename" -}, Fa = /* @__PURE__ */ Object.assign(Ea, { +}, Vn = /* @__PURE__ */ Object.assign(Fn, { props: { selection: Object, current: Object }, - setup(d) { - const t = b("emitter"); - b("storage"); - const s = b("adapter"), { t: o } = b("i18n"), p = d, c = k(p.selection.items[0]), l = k(p.selection.items[0].basename), u = k(""), g = () => { - l.value != "" && t.emit("vf-fetch", { + setup(l) { + const t = k("emitter"); + k("storage"); + const s = k("adapter"), { t: o } = k("i18n"), i = l, m = g(i.selection.items[0]), n = g(i.selection.items[0].basename), h = g(""), p = () => { + n.value != "" && t.emit("vf-fetch", { params: { q: "rename", adapter: s.value, - path: p.current.dirname, - item: c.value.path, - name: l.value + path: i.current.dirname, + item: m.value.path, + name: n.value }, onSuccess: () => { - t.emit("vf-toast-push", { label: o("%s is renamed.", l.value) }); + t.emit("vf-toast-push", { label: o("%s is renamed.", n.value) }); }, - onError: (i) => { - u.value = o(i.message); + onError: (c) => { + h.value = o(c.message); } }); }; - return (i, n) => (a(), H(K, null, { - buttons: N(() => [ + return (c, d) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: g, - class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Rename")), 1), + onClick: p, + class: "vf-btn vf-btn-primary" + }, u(a(o)("Rename")), 1), e("button", { type: "button", - onClick: n[2] || (n[2] = (x) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Cancel")), 1) + onClick: d[2] || (d[2] = (f) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Cancel")), 1) ]), - default: N(() => [ - e("div", xa, [ - ba, - e("div", wa, [ - e("h3", ya, v(r(o)("Rename")), 1), - e("div", _a, [ - e("p", $a, [ - c.value.type == "dir" ? (a(), m("svg", ja, Ma)) : (a(), m("svg", Sa, Oa)), - e("span", za, v(c.value.basename), 1) + default: E(() => [ + e("div", xn, [ + bn, + e("div", wn, [ + e("h3", yn, u(a(o)("Rename")), 1), + e("div", $n, [ + e("p", Cn, [ + m.value.type == "dir" ? (r(), v("svg", Mn, Sn)) : (r(), v("svg", Dn, zn)), + e("span", En, u(m.value.basename), 1) ]), R(e("input", { - "onUpdate:modelValue": n[0] || (n[0] = (x) => l.value = x), - onKeyup: se(g, ["enter"]), + "onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f), + onKeyup: se(p, ["enter"]), class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full", placeholder: "Name", type: "text" }, null, 544), [ - [re, l.value] + [ae, n.value] ]), - u.value.length ? (a(), H(Q, { + h.value.length ? (r(), N(Q, { key: 0, - onHidden: n[1] || (n[1] = (x) => u.value = ""), + onHidden: d[1] || (d[1] = (f) => h.value = ""), error: "" }, { - default: N(() => [ - T(v(u.value), 1) + default: E(() => [ + U(u(h.value), 1) ]), _: 1 - })) : L("", !0) + })) : V("", !0) ]) ]) ]) @@ -2301,7 +2287,7 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), La = { class: "sm:flex sm:items-start" }, Va = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), Bn = { class: "sm:flex sm:items-start" }, An = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", @@ -2316,19 +2302,19 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" }) ]) -], -1), Na = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ba = { +], -1), Ln = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Nn = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, Aa = { class: "mt-2" }, Ha = { +}, Un = { class: "mt-2" }, Tn = { key: 0, class: "pointer-events-none" -}, Ta = { +}, Hn = { key: 1, class: "pointer-events-none" -}, Ua = ["disabled"], Ia = ["disabled"], qa = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, Ra = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, Pa = ["textContent"], Ga = { class: "ml-1 w-full h-fit" }, Ya = { class: "text-left hidden md:block" }, Ja = { class: "text-left md:hidden" }, Ka = { +}, In = ["disabled"], qn = ["disabled"], Rn = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, Pn = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, Gn = ["textContent"], Yn = { class: "ml-1 w-full h-fit" }, Jn = { class: "text-left hidden md:block" }, Kn = { class: "text-left md:hidden" }, Wn = { key: 0, class: "ml-auto" -}, Wa = ["title", "disabled", "onClick"], Xa = /* @__PURE__ */ e("svg", { +}, Xn = ["title", "disabled", "onClick"], Qn = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", @@ -2341,307 +2327,318 @@ const zs = /* @__PURE__ */ e("iframe", { "stroke-linejoin": "round", d: "M6 18L18 6M6 6l12 12" }) -], -1), Qa = [ - Xa -], Za = { +], -1), Zn = [ + Qn +], er = { key: 0, class: "py-2" -}, en = ["disabled"], tn = { +}, tr = ["disabled"], or = { name: "VFModalUpload" -}, on = /* @__PURE__ */ Object.assign(tn, { +}, sr = /* @__PURE__ */ Object.assign(or, { props: { current: Object }, - setup(d) { - const { apiUrl: t } = J(), s = b("emitter"), { t: o, getLocale: p } = b("i18n"), c = b("maxFileSize"), l = b("postData"), u = d, g = o("uppy"), i = { + setup(l) { + const { apiUrl: t } = X(), s = k("emitter"), { t: o } = k("i18n"), i = k("maxFileSize"), m = k("postData"), n = k("filesize"), h = l, p = o("uppy"), c = { PENDING: 0, CANCELED: 1, UPLOADING: 2, ERROR: 3, DONE: 10 - }, n = k({ QUEUE_ENTRY_STATUS: i }), x = k(null), M = k(null), _ = k(null), j = k(null), w = k(null), z = k(null), D = k([]), C = k(""), $ = k(!1), O = k(!1); - let V; - function E(h) { - return D.value.findIndex((B) => B.id === h); + }, d = g({ QUEUE_ENTRY_STATUS: c }), f = g(null), y = g(null), w = g(null), B = g(null), O = g(null), D = g(null), S = g([]), F = g(""), M = g(!1), j = g(!1); + let z; + function I(b) { + return S.value.findIndex((_) => _.id === b); } - function q(h, B = null) { - B = B ?? (h.webkitRelativePath || h.name), V.addFile({ - name: B, - type: h.type, - data: h, + function A(b, _ = null) { + _ = _ ?? (b.webkitRelativePath || b.name), z.addFile({ + name: _, + type: b.type, + data: b, source: "Local" }); } - function ee(h) { - switch (h.status) { - case i.DONE: + function ee(b) { + switch (b.status) { + case c.DONE: return "text-green-600"; - case i.ERROR: + case c.ERROR: return "text-red-600"; - case i.CANCELED: + case c.CANCELED: return "text-red-600"; - case i.PENDING: + case c.PENDING: default: return ""; } } - const Z = (h) => { - switch (h.status) { - case i.DONE: + const G = (b) => { + switch (b.status) { + case c.DONE: return "✓"; - case i.ERROR: - case i.CANCELED: + case c.ERROR: + case c.CANCELED: return "!"; - case i.PENDING: + case c.PENDING: default: return "..."; } }; - function ne() { - j.value.click(); + function te() { + B.value.click(); } - function le() { - if (!$.value) { - if (!D.value.filter((h) => h.status !== i.DONE).length) { - C.value = o("Please select file to upload first."); + function ie() { + if (!M.value) { + if (!S.value.filter((b) => b.status !== c.DONE).length) { + F.value = o("Please select file to upload first."); return; } - C.value = "", V.retryAll(), V.upload(); + F.value = "", z.retryAll(), z.upload(); } } - function ie() { - V.cancelAll({ reason: "user" }), D.value.forEach((h) => { - h.status !== i.DONE && (h.status = i.CANCELED, h.statusName = o("Canceled")); - }), $.value = !1; + function de() { + z.cancelAll({ reason: "user" }), S.value.forEach((b) => { + b.status !== c.DONE && (b.status = c.CANCELED, b.statusName = o("Canceled")); + }), M.value = !1; } - function fe(h) { - $.value || (V.removeFile(h.id, "removed-by-user"), D.value.splice(E(h.id), 1)); + function ne(b) { + M.value || (z.removeFile(b.id, "removed-by-user"), S.value.splice(I(b.id), 1)); } - function y(h) { - if (!$.value) { - if (V.cancelAll({ reason: "user" }), h) { - const B = []; - D.value.forEach((f) => { - f.status !== i.DONE && B.push(f); - }), D.value = [], B.forEach((f) => { - q(f.originalFile, f.name); + function ce(b) { + if (!M.value) { + if (z.cancelAll({ reason: "user" }), b) { + const _ = []; + S.value.forEach((x) => { + x.status !== c.DONE && _.push(x); + }), S.value = [], _.forEach((x) => { + A(x.originalFile, x.name); }); return; } - D.value.splice(0); + S.value.splice(0); } } - function S() { + function C() { s.emit("vf-modal-close"); } - return Y(async () => { - V = new Ue({ + return K(async () => { + z = new Pe({ debug: process.env.NODE_ENV === "development", restrictions: { - maxFileSize: Et(c) + maxFileSize: Os(i) //maxNumberOfFiles //allowedFileTypes }, - locale: g, - onBeforeFileAdded(f, F) { - if (F[f.id] != null) { - const te = E(f.id); - D.value[te].status === i.PENDING && (C.value = V.i18n("noDuplicates", { fileName: f.name })), D.value = D.value.filter((ge) => ge.id !== f.id); + locale: p, + onBeforeFileAdded(x, $) { + if ($[x.id] != null) { + const q = I(x.id); + S.value[q].status === c.PENDING && (F.value = z.i18n("noDuplicates", { fileName: x.name })), S.value = S.value.filter((ke) => ke.id !== x.id); } - return D.value.push({ - id: f.id, - name: f.name, - size: ye(f.size), - status: i.PENDING, + return S.value.push({ + id: x.id, + name: x.name, + size: n.value(x.size), + status: c.PENDING, statusName: o("Pending upload"), percent: null, - originalFile: f.data + originalFile: x.data }), !0; } - }), V.use(Ie, { + }), z.use(Ge, { method: "post", - endpoint: t.value + "?" + oe(Object.assign(l, { q: "upload", adapter: u.current.adapter, path: u.current.dirname })), + endpoint: t.value + "?" + oe(Object.assign(m, { q: "upload", adapter: h.current.adapter, path: h.current.dirname })), headers: { - ...ue && { "X-CSRF-Token": ue } + ...he && { "X-CSRF-Token": he } }, limit: 5, timeout: 0, - getResponseError(f, F) { - let A; + getResponseError(x, $) { + let L; try { - A = JSON.parse(f).message; + L = JSON.parse(x).message; } catch { - A = o("Cannot parse server response."); + L = o("Cannot parse server response."); } - return new Error(A); + return new Error(L); } - }), V.on("restriction-failed", (f, F) => { - C.value = F.message; - }), V.on("upload", () => { - $.value = !0, D.value.forEach((f) => { - f.status !== i.DONE && (f.percent = null, f.status = i.UPLOADING, f.statusName = o("Pending upload")); + }), z.on("restriction-failed", (x, $) => { + const L = S.value[I(x.id)]; + ne(L), F.value = $.message; + }), z.on("upload", () => { + M.value = !0, S.value.forEach((x) => { + x.status !== c.DONE && (x.percent = null, x.status = c.UPLOADING, x.statusName = o("Pending upload")); }); - }), V.on("upload-progress", (f, F) => { - const A = Math.floor(F.bytesUploaded / F.bytesTotal * 100); - D.value[E(f.id)].percent = `${A}%`; - }), V.on("upload-success", (f) => { - const F = D.value[E(f.id)]; - F.status = i.DONE, F.statusName = o("Done"); - }), V.on("upload-error", (f, F) => { - const A = D.value[E(f.id)]; - A.percent = null, A.status = i.ERROR, F.isNetworkError ? A.statusName = o("Network Error, Unable establish connection to the server or interrupted.") : A.statusName = F ? F.message : o("Unknown Error"); - }), V.on("error", (f) => { - C.value = f.message, $.value = !1, s.emit("vf-fetch", { - params: { q: "index", adapter: u.current.adapter, path: u.current.dirname }, + }), z.on("upload-progress", (x, $) => { + const L = Math.floor($.bytesUploaded / $.bytesTotal * 100); + S.value[I(x.id)].percent = `${L}%`; + }), z.on("upload-success", (x) => { + const $ = S.value[I(x.id)]; + $.status = c.DONE, $.statusName = o("Done"); + }), z.on("upload-error", (x, $) => { + const L = S.value[I(x.id)]; + L.percent = null, L.status = c.ERROR, $.isNetworkError ? L.statusName = o("Network Error, Unable establish connection to the server or interrupted.") : L.statusName = $ ? $.message : o("Unknown Error"); + }), z.on("error", (x) => { + F.value = x.message, M.value = !1, s.emit("vf-fetch", { + params: { q: "index", adapter: h.current.adapter, path: h.current.dirname }, noCloseModal: !0 }); - }), V.on("complete", () => { - $.value = !1, s.emit("vf-fetch", { - params: { q: "index", adapter: u.current.adapter, path: u.current.dirname }, + }), z.on("complete", () => { + M.value = !1, s.emit("vf-fetch", { + params: { q: "index", adapter: h.current.adapter, path: h.current.dirname }, noCloseModal: !0 }); - }), j.value.addEventListener("click", () => { - M.value.click(); - }), w.value.addEventListener("click", () => { - _.value.click(); - }), z.value.addEventListener("dragover", (f) => { - f.preventDefault(), O.value = !0; - }), z.value.addEventListener("dragleave", (f) => { - f.preventDefault(), O.value = !1; + }), B.value.addEventListener("click", () => { + y.value.click(); + }), O.value.addEventListener("click", () => { + w.value.click(); + }), D.value.addEventListener("dragover", (x) => { + x.preventDefault(), j.value = !0; + }), D.value.addEventListener("dragleave", (x) => { + x.preventDefault(), j.value = !1; }); - function h(f, F) { - F.isFile && F.file((A) => f(F, A)), F.isDirectory && F.createReader().readEntries((A) => { - A.forEach((te) => { - h(f, te); + function b(x, $) { + $.isFile && $.file((L) => x($, L)), $.isDirectory && $.createReader().readEntries((L) => { + L.forEach((q) => { + b(x, q); }); }); } - z.value.addEventListener("drop", (f) => { - f.preventDefault(), O.value = !1; - const F = /^[/\\](.+)/; - [...f.dataTransfer.items].forEach((A) => { - A.kind === "file" && h((te, ge) => { - const Oe = F.exec(te.fullPath); - q(ge, Oe[1]); - }, A.webkitGetAsEntry()); + D.value.addEventListener("drop", (x) => { + x.preventDefault(), j.value = !1; + const $ = /^[/\\](.+)/; + [...x.dataTransfer.items].forEach((L) => { + L.kind === "file" && b((q, ke) => { + const Fe = $.exec(q.fullPath); + A(ke, Fe[1]); + }, L.webkitGetAsEntry()); }); }); - const B = ({ target: f }) => { - const F = f.files; - for (const A of F) - q(A); + const _ = ({ target: x }) => { + const $ = x.files; + for (const L of $) + A(L); }; - M.value.addEventListener("change", B), _.value.addEventListener("change", B); - }), Ce(() => { - V == null || V.close({ reason: "unmount" }); - }), (h, B) => (a(), H(K, null, { - buttons: N(() => [ + y.value.addEventListener("change", _), w.value.addEventListener("change", _); + }), Oe(() => { + z == null || z.close({ reason: "unmount" }); + }), (b, _) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - class: U(["w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 dark:text-gray-50 sm:ml-3 sm:w-auto sm:text-sm", $.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]), - disabled: $.value, - onClick: X(le, ["prevent"]) - }, v(r(o)("Upload")), 11, en), - $.value ? (a(), m("button", { + class: T(["vf-btn vf-btn-primary", M.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]), + disabled: M.value, + onClick: Z(ie, ["prevent"]) + }, u(a(o)("Upload")), 11, tr), + M.value ? (r(), v("button", { key: 0, type: "button", - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm", - onClick: X(ie, ["prevent"]) - }, v(r(o)("Cancel")), 1)) : (a(), m("button", { + class: "vf-btn vf-btn-secondary", + onClick: Z(de, ["prevent"]) + }, u(a(o)("Cancel")), 1)) : (r(), v("button", { key: 1, type: "button", - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm", - onClick: X(S, ["prevent"]) - }, v(r(o)("Close")), 1)) + class: "vf-btn vf-btn-secondary", + onClick: Z(C, ["prevent"]) + }, u(a(o)("Close")), 1)) ]), - default: N(() => [ - e("div", La, [ - Va, - e("div", Na, [ - e("h3", Ba, v(r(o)("Upload Files")), 1), - e("div", Aa, [ + default: E(() => [ + e("div", Bn, [ + An, + e("div", Ln, [ + e("h3", Nn, u(a(o)("Upload Files")), 1), + e("div", Un, [ e("div", { ref_key: "dropArea", - ref: z, + ref: D, class: "flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]", - onClick: ne + onClick: te }, [ - O.value ? (a(), m("div", Ha, v(r(o)("Release to drop these files.")), 1)) : (a(), m("div", Ta, v(r(o)("Drag and drop the files/folders to here or click here.")), 1)) + j.value ? (r(), v("div", Tn, u(a(o)("Release to drop these files.")), 1)) : (r(), v("div", Hn, u(a(o)("Drag and drop the files/folders to here or click here.")), 1)) ], 512), e("div", { ref_key: "container", - ref: x, + ref: f, class: "text-gray-500 mb-1" }, [ e("button", { ref_key: "pickFiles", - ref: j, + ref: B, type: "button", - class: "w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:w-auto sm:text-sm" - }, v(r(o)("Select Files")), 513), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Select Files")), 513), e("button", { ref_key: "pickFolders", - ref: w, + ref: O, type: "button", - class: "w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Select Folders")), 513), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Select Folders")), 513), e("button", { type: "button", - class: "w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm", - disabled: $.value, - onClick: B[0] || (B[0] = (f) => y(!1)) - }, v(r(o)("Clear all")), 9, Ua), + class: "vf-btn vf-btn-secondary", + disabled: M.value, + onClick: _[0] || (_[0] = (x) => ce(!1)) + }, u(a(o)("Clear all")), 9, In), e("button", { type: "button", - class: "w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 disabled:cursor-not-allowed sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm", - disabled: $.value, - onClick: B[1] || (B[1] = (f) => y(!0)) - }, v(r(o)("Clear only successful")), 9, Ia) + class: "vf-btn vf-btn-secondary", + disabled: M.value, + onClick: _[1] || (_[1] = (x) => ce(!0)) + }, u(a(o)("Clear only successful")), 9, qn) ], 512), - e("div", qa, [ - (a(!0), m(I, null, P(D.value, (f) => (a(), m("div", { + e("div", Rn, [ + (r(!0), v(H, null, J(S.value, (x) => (r(), v("div", { class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300", - key: f.id + key: x.id }, [ - e("span", Ra, [ + e("span", Pn, [ e("span", { - class: U(["text-base m-auto", ee(f)]), - textContent: v(Z(f)) - }, null, 10, Pa) + class: T(["text-base m-auto", ee(x)]), + textContent: u(G(x)) + }, null, 10, Gn) ]), - e("div", Ga, [ - e("div", Ya, v(r(we)(f.name, 40)) + " (" + v(f.size) + ")", 1), - e("div", Ja, v(r(we)(f.name, 16)) + " (" + v(f.size) + ")", 1), + e("div", Yn, [ + e("div", Jn, u(a(we)(x.name, 40)) + " (" + u(x.size) + ")", 1), + e("div", Kn, u(a(we)(x.name, 16)) + " (" + u(x.size) + ")", 1), e("div", { - class: U(["flex break-all text-left", ee(f)]) + class: T(["flex break-all text-left", ee(x)]) }, [ - T(v(f.statusName) + " ", 1), - f.status === n.value.QUEUE_ENTRY_STATUS.UPLOADING ? (a(), m("b", Ka, v(f.percent), 1)) : L("", !0) + U(u(x.statusName) + " ", 1), + x.status === d.value.QUEUE_ENTRY_STATUS.UPLOADING ? (r(), v("b", Wn, u(x.percent), 1)) : V("", !0) ], 2) ]), e("button", { type: "button", - class: U(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600", $.value ? "disabled:bg-gray-100 text-white text-opacity-50" : "bg-gray-100"]), - title: r(o)("Delete"), - disabled: $.value, - onClick: (F) => fe(f) - }, Qa, 10, Wa) + class: T(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600", M.value ? "disabled:bg-gray-100 text-white text-opacity-50" : "bg-gray-100"]), + title: a(o)("Delete"), + disabled: M.value, + onClick: ($) => ne(x) + }, Zn, 10, Xn) ]))), 128)), - D.value.length ? L("", !0) : (a(), m("div", Za, v(r(o)("No files selected!")), 1)) - ]) + S.value.length ? V("", !0) : (r(), v("div", er, u(a(o)("No files selected!")), 1)) + ]), + F.value.length ? (r(), N(Q, { + key: 0, + onHidden: _[2] || (_[2] = (x) => F.value = ""), + error: "" + }, { + default: E(() => [ + U(u(F.value), 1) + ]), + _: 1 + })) : V("", !0) ]) ]) ]), e("input", { ref_key: "internalFileInput", - ref: M, + ref: y, type: "file", multiple: "", class: "hidden" }, null, 512), e("input", { ref_key: "internalFolderInput", - ref: _, + ref: w, type: "file", multiple: "", webkitdirectory: "", @@ -2651,7 +2648,7 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), sn = { class: "sm:flex sm:items-start" }, rn = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), ar = { class: "sm:flex sm:items-start" }, nr = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", @@ -2666,13 +2663,13 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z" }) ]) -], -1), an = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, nn = { +], -1), rr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, lr = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, ln = { class: "mt-2" }, dn = { - class: "text-gray-500 text-sm mb-1 overflow-auto", +}, ir = { class: "mt-2" }, dr = { + class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar", style: { "max-height": "200px" } -}, cn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, un = { +}, cr = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, ur = { key: 0, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500", @@ -2680,13 +2677,13 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, mn = /* @__PURE__ */ e("path", { +}, mr = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" -}, null, -1), vn = [ - mn -], pn = { +}, null, -1), vr = [ + mr +], pr = { key: 1, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500", @@ -2694,83 +2691,83 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, fn = /* @__PURE__ */ e("path", { +}, hr = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" -}, null, -1), gn = [ - fn -], hn = { class: "ml-1.5" }, kn = ["placeholder"], xn = { +}, null, -1), fr = [ + hr +], gr = { class: "ml-1.5" }, kr = ["placeholder"], _r = { name: "VFModalArchive" -}, bn = /* @__PURE__ */ Object.assign(xn, { +}, xr = /* @__PURE__ */ Object.assign(_r, { props: { selection: Object, current: Object }, - setup(d) { - const t = b("emitter"); - b("storage"); - const s = b("adapter"), { t: o } = b("i18n"), p = d, c = k(""), l = k(""), u = k(p.selection.items), g = () => { - u.value.length && t.emit("vf-fetch", { + setup(l) { + const t = k("emitter"); + k("storage"); + const s = k("adapter"), { t: o } = k("i18n"), i = l, m = g(""), n = g(""), h = g(i.selection.items), p = () => { + h.value.length && t.emit("vf-fetch", { params: { q: "archive", adapter: s.value, - path: p.current.dirname, - items: JSON.stringify(u.value.map(({ path: i, type: n }) => ({ path: i, type: n }))), - name: c.value + path: i.current.dirname, + items: JSON.stringify(h.value.map(({ path: c, type: d }) => ({ path: c, type: d }))), + name: m.value }, onSuccess: () => { t.emit("vf-toast-push", { label: o("The file(s) archived.") }); }, - onError: (i) => { - l.value = o(i.message); + onError: (c) => { + n.value = o(c.message); } }); }; - return (i, n) => (a(), H(K, null, { - buttons: N(() => [ + return (c, d) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: g, - class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Archive")), 1), + onClick: p, + class: "vf-btn vf-btn-primary" + }, u(a(o)("Archive")), 1), e("button", { type: "button", - onClick: n[2] || (n[2] = (x) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Cancel")), 1) + onClick: d[2] || (d[2] = (f) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Cancel")), 1) ]), - default: N(() => [ - e("div", sn, [ - rn, - e("div", an, [ - e("h3", nn, v(r(o)("Archive the files")), 1), - e("div", ln, [ - e("div", dn, [ - (a(!0), m(I, null, P(u.value, (x) => (a(), m("p", cn, [ - x.type == "dir" ? (a(), m("svg", un, vn)) : (a(), m("svg", pn, gn)), - e("span", hn, v(x.basename), 1) + default: E(() => [ + e("div", ar, [ + nr, + e("div", rr, [ + e("h3", lr, u(a(o)("Archive the files")), 1), + e("div", ir, [ + e("div", dr, [ + (r(!0), v(H, null, J(h.value, (f) => (r(), v("p", cr, [ + f.type == "dir" ? (r(), v("svg", ur, vr)) : (r(), v("svg", pr, fr)), + e("span", gr, u(f.basename), 1) ]))), 256)) ]), R(e("input", { - "onUpdate:modelValue": n[0] || (n[0] = (x) => c.value = x), - onKeyup: se(g, ["enter"]), + "onUpdate:modelValue": d[0] || (d[0] = (f) => m.value = f), + onKeyup: se(p, ["enter"]), class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full", - placeholder: r(o)("Archive name. (.zip file will be created)"), + placeholder: a(o)("Archive name. (.zip file will be created)"), type: "text" - }, null, 40, kn), [ - [re, c.value] + }, null, 40, kr), [ + [ae, m.value] ]), - l.value.length ? (a(), H(Q, { + n.value.length ? (r(), N(Q, { key: 0, - onHidden: n[1] || (n[1] = (x) => l.value = ""), + onHidden: d[1] || (d[1] = (f) => n.value = ""), error: "" }, { - default: N(() => [ - T(v(l.value), 1) + default: E(() => [ + U(u(n.value), 1) ]), _: 1 - })) : L("", !0) + })) : V("", !0) ]) ]) ]) @@ -2778,7 +2775,7 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), wn = { class: "sm:flex sm:items-start" }, yn = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), br = { class: "sm:flex sm:items-start" }, wr = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", @@ -2793,10 +2790,10 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z" }) ]) -], -1), _n = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $n = { +], -1), yr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $r = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, jn = { class: "mt-2" }, Cn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Mn = { +}, Cr = { class: "mt-2" }, Mr = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, jr = { key: 0, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500", @@ -2804,13 +2801,13 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, Sn = /* @__PURE__ */ e("path", { +}, Sr = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" -}, null, -1), Dn = [ - Sn -], On = { +}, null, -1), Dr = [ + Sr +], Or = { key: 1, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500", @@ -2818,74 +2815,74 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, zn = /* @__PURE__ */ e("path", { +}, zr = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" -}, null, -1), En = [ - zn -], Fn = { class: "ml-1.5" }, Ln = { class: "my-1 text-sm text-gray-500" }, Vn = { +}, null, -1), Er = [ + zr +], Fr = { class: "ml-1.5" }, Vr = { class: "my-1 text-sm text-gray-500" }, Br = { name: "VFModalUnarchive" -}, Nn = /* @__PURE__ */ Object.assign(Vn, { +}, Ar = /* @__PURE__ */ Object.assign(Br, { props: { selection: Object, current: Object }, - setup(d) { - const t = b("emitter"); - b("storage"); - const s = b("adapter"), { t: o } = b("i18n"), p = d; - k(""); - const c = k(p.selection.items[0]), l = k(""), u = k([]), g = () => { + setup(l) { + const t = k("emitter"); + k("storage"); + const s = k("adapter"), { t: o } = k("i18n"), i = l; + g(""); + const m = g(i.selection.items[0]), n = g(""), h = g([]), p = () => { t.emit("vf-fetch", { params: { q: "unarchive", adapter: s.value, - path: p.current.dirname, - item: c.value.path + path: i.current.dirname, + item: m.value.path }, onSuccess: () => { t.emit("vf-toast-push", { label: o("The file unarchived.") }); }, - onError: (i) => { - l.value = o(i.message); + onError: (c) => { + n.value = o(c.message); } }); }; - return (i, n) => (a(), H(K, null, { - buttons: N(() => [ + return (c, d) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: g, - class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Unarchive")), 1), + onClick: p, + class: "vf-btn vf-btn-primary" + }, u(a(o)("Unarchive")), 1), e("button", { type: "button", - onClick: n[1] || (n[1] = (x) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(o)("Cancel")), 1) + onClick: d[1] || (d[1] = (f) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(o)("Cancel")), 1) ]), - default: N(() => [ - e("div", wn, [ - yn, - e("div", _n, [ - e("h3", $n, v(r(o)("Unarchive")), 1), - e("div", jn, [ - (a(!0), m(I, null, P(u.value, (x) => (a(), m("p", Cn, [ - x.type == "dir" ? (a(), m("svg", Mn, Dn)) : (a(), m("svg", On, En)), - e("span", Fn, v(x.basename), 1) + default: E(() => [ + e("div", br, [ + wr, + e("div", yr, [ + e("h3", $r, u(a(o)("Unarchive")), 1), + e("div", Cr, [ + (r(!0), v(H, null, J(h.value, (f) => (r(), v("p", Mr, [ + f.type == "dir" ? (r(), v("svg", jr, Dr)) : (r(), v("svg", Or, Er)), + e("span", Fr, u(f.basename), 1) ]))), 256)), - e("p", Ln, v(r(o)("The archive will be unarchived at")) + " (" + v(d.current.dirname) + ")", 1), - l.value.length ? (a(), H(Q, { + e("p", Vr, u(a(o)("The archive will be unarchived at")) + " (" + u(l.current.dirname) + ")", 1), + n.value.length ? (r(), N(Q, { key: 0, - onHidden: n[0] || (n[0] = (x) => l.value = ""), + onHidden: d[0] || (d[0] = (f) => n.value = ""), error: "" }, { - default: N(() => [ - T(v(l.value), 1) + default: E(() => [ + U(u(n.value), 1) ]), _: 1 - })) : L("", !0) + })) : V("", !0) ]) ]) ]) @@ -2893,7 +2890,7 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), Bn = { class: "sm:flex sm:items-start" }, An = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ +}), Lr = { class: "sm:flex sm:items-start" }, Nr = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ /* @__PURE__ */ e("svg", { class: "h-6 w-6 stroke-red-600 dark:stroke-red-200", xmlns: "http://www.w3.org/2000/svg", @@ -2909,10 +2906,10 @@ const zs = /* @__PURE__ */ e("iframe", { d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" }) ]) -], -1), Hn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Tn = { +], -1), Ur = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Tr = { class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", id: "modal-title" -}, Un = { class: "mt-2" }, In = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, qn = { +}, Hr = { class: "mt-2" }, Ir = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, qr = { key: 0, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500", @@ -2920,13 +2917,13 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, Rn = /* @__PURE__ */ e("path", { +}, Rr = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" -}, null, -1), Pn = [ - Rn -], Gn = { +}, null, -1), Pr = [ + Rr +], Gr = { key: 1, xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500", @@ -2934,13 +2931,13 @@ const zs = /* @__PURE__ */ e("iframe", { viewBox: "0 0 24 24", stroke: "currentColor", "stroke-width": "1" -}, Yn = /* @__PURE__ */ e("path", { +}, Yr = /* @__PURE__ */ e("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" -}, null, -1), Jn = [ - Yn -], Kn = { class: "ml-1.5" }, Wn = { class: "text-sm text-gray-500 pb-1 pt-3" }, Xn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Qn = /* @__PURE__ */ e("svg", { +}, null, -1), Jr = [ + Yr +], Kr = { class: "ml-1.5" }, Wr = { class: "text-sm text-gray-500 pb-1 pt-3" }, Xr = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Qr = /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500", fill: "none", @@ -2953,71 +2950,244 @@ const zs = /* @__PURE__ */ e("iframe", { "stroke-linejoin": "round", d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" }) -], -1), Zn = { class: "ml-1.5 overflow-auto" }, el = { +], -1), Zr = { class: "ml-1.5 overflow-auto" }, el = { name: "VFModalMove" }, tl = /* @__PURE__ */ Object.assign(el, { props: { selection: Object, current: Object }, - setup(d) { - const t = b("emitter"), { t: s } = b("i18n"); - b("storage"); - const o = b("adapter"), p = d, c = k(p.selection.items.from), l = k(""), u = () => { - c.value.length && t.emit("vf-fetch", { + setup(l) { + const t = k("emitter"), { t: s } = k("i18n"); + k("storage"); + const o = k("adapter"), i = l, m = g(i.selection.items.from), n = g(""), h = () => { + m.value.length && t.emit("vf-fetch", { params: { q: "move", adapter: o.value, - path: p.current.dirname, - items: JSON.stringify(c.value.map(({ path: g, type: i }) => ({ path: g, type: i }))), - item: p.selection.items.to.path + path: i.current.dirname, + items: JSON.stringify(m.value.map(({ path: p, type: c }) => ({ path: p, type: c }))), + item: i.selection.items.to.path }, onSuccess: () => { - t.emit("vf-toast-push", { label: s("Files moved.", p.selection.items.to.name) }); + t.emit("vf-toast-push", { label: s("Files moved.", i.selection.items.to.name) }); }, - onError: (g) => { - l.value = s(g.message); + onError: (p) => { + n.value = s(p.message); } }); }; - return (g, i) => (a(), H(K, null, { - buttons: N(() => [ + return (p, c) => (r(), N(W, null, { + buttons: E(() => [ e("button", { type: "button", - onClick: u, - class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(s)("Yes, Move!")), 1), + onClick: h, + class: "vf-btn vf-btn-primary" + }, u(a(s)("Yes, Move!")), 1), e("button", { type: "button", - onClick: i[1] || (i[1] = (n) => r(t).emit("vf-modal-close")), - class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" - }, v(r(s)("Cancel")), 1) + onClick: c[1] || (c[1] = (d) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(s)("Cancel")), 1) ]), - default: N(() => [ - e("div", Bn, [ - An, - e("div", Hn, [ - e("h3", Tn, v(r(s)("Move files")), 1), - e("div", Un, [ - (a(!0), m(I, null, P(c.value, (n) => (a(), m("p", In, [ - n.type == "dir" ? (a(), m("svg", qn, Pn)) : (a(), m("svg", Gn, Jn)), - e("span", Kn, v(n.path), 1) + default: E(() => [ + e("div", Lr, [ + Nr, + e("div", Ur, [ + e("h3", Tr, u(a(s)("Move files")), 1), + e("div", Hr, [ + (r(!0), v(H, null, J(m.value, (d) => (r(), v("p", Ir, [ + d.type == "dir" ? (r(), v("svg", qr, Pr)) : (r(), v("svg", Gr, Jr)), + e("span", Kr, u(d.path), 1) ]))), 256)), - e("p", Wn, v(r(s)("Are you sure you want to move these files?")), 1), - e("p", Xn, [ - Qn, - e("span", Zn, v(d.selection.items.to.path), 1) + e("p", Wr, u(a(s)("Are you sure you want to move these files?")), 1), + e("p", Xr, [ + Qr, + e("span", Zr, u(l.selection.items.to.path), 1) ]), - l.value.length ? (a(), H(Q, { + n.value.length ? (r(), N(Q, { key: 0, - onHidden: i[0] || (i[0] = (n) => l.value = ""), + onHidden: c[0] || (c[0] = (d) => n.value = ""), error: "" }, { - default: N(() => [ - T(v(l.value), 1) + default: E(() => [ + U(u(n.value), 1) ]), _: 1 - })) : L("", !0) + })) : V("", !0) + ]) + ]) + ]) + ]), + _: 1 + })); + } +}), ol = (l, t) => { + const s = l.__vccOpts || l; + for (const [o, i] of t) + s[o] = i; + return s; +}, sl = { + props: { + on: { type: String, required: !0 } + }, + setup(l, { emit: t, slots: s }) { + const o = k("emitter"), i = g(!1); + let m = null; + const n = () => { + clearTimeout(m), i.value = !0, m = setTimeout(() => { + i.value = !1; + }, 2e3); + }; + return K(() => { + o.on(l.on, n); + }), Te(() => { + clearTimeout(m); + }), { + shown: i + }; + } +}, al = { key: 1 }; +function nl(l, t, s, o, i, m) { + return r(), v("div", { + class: T(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !o.shown }]]) + }, [ + l.$slots.default ? pe(l.$slots, "default", { key: 0 }) : (r(), v("span", al, "Saved.")) + ], 2); +} +const Se = /* @__PURE__ */ ol(sl, [["render", nl]]), rl = "1.3.3", ll = { class: "sm:flex sm:items-start" }, il = /* @__PURE__ */ e("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [ + /* @__PURE__ */ e("svg", { + xmlns: "http://www.w3.org/2000/svg", + class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100", + fill: "none", + viewBox: "0 0 24 24", + "stroke-width": "1.5", + stroke: "currentColor" + }, [ + /* @__PURE__ */ e("path", { + "stroke-linecap": "round", + "stroke-linejoin": "round", + d: "M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" + }), + /* @__PURE__ */ e("path", { + "stroke-linecap": "round", + "stroke-linejoin": "round", + d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" + }) + ]) +], -1), dl = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, cl = { + class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400", + id: "modal-title" +}, ul = { class: "mt-2" }, ml = { class: "text-sm text-gray-500" }, vl = { class: "text-sm font-semibold mt-5 text-gray-900 dark:text-gray-400 tracking-wider" }, pl = { class: "mt-3 text-left" }, hl = { class: "space-y-2" }, fl = { class: "flex relative gap-x-3" }, gl = { class: "h-6 items-center" }, kl = { class: "flex-1 block text-sm" }, _l = { + for: "dark_mode", + class: "flex w-full font-medium text-gray-900 dark:text-gray-400" +}, xl = { class: "flex relative gap-x-3" }, bl = { class: "h-6 items-center" }, wl = { class: "flex-1 block text-sm" }, yl = { + for: "metric_unit", + class: "flex w-full font-medium text-gray-900 dark:text-gray-400" +}, $l = { + name: "VFModalAbout" +}, Cl = /* @__PURE__ */ Object.assign($l, { + props: { + selection: Object, + current: Object + }, + setup(l) { + const t = k("emitter"), { getStore: s, clearStore: o } = k("storage"); + k("adapter"); + const { t: i } = k("i18n"); + g(""), g(""); + const m = k("darkMode"), n = async () => { + o(), location.reload(); + }, h = () => { + t.emit("vf-darkMode-toggle"), t.emit("vf-darkMode-saved"); + }, p = k("metricUnits"), c = () => { + t.emit("vf-metric-units-saved", !p.value); + }; + return (d, f) => (r(), N(W, null, { + buttons: E(() => [ + e("button", { + type: "button", + onClick: f[2] || (f[2] = (y) => a(t).emit("vf-modal-close")), + class: "vf-btn vf-btn-secondary" + }, u(a(i)("Close")), 1) + ]), + default: E(() => [ + e("div", ll, [ + il, + e("div", dl, [ + e("h3", cl, u(a(i)("About %s", "Vuefinder " + a(rl))), 1), + e("div", ul, [ + e("p", ml, u(a(i)("Vuefinder is a file manager component for vue 3.")), 1), + e("div", null, [ + e("h3", vl, u(a(i)("Settings")), 1) + ]), + e("div", pl, [ + e("fieldset", null, [ + e("div", hl, [ + e("div", fl, [ + e("div", gl, [ + R(e("input", { + id: "dark_mode", + name: "dark_mode", + "onUpdate:modelValue": f[0] || (f[0] = (y) => re(m) ? m.value = y : null), + type: "checkbox", + onClick: h, + class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600" + }, null, 512), [ + [$e, a(m)] + ]) + ]), + e("div", kl, [ + e("label", _l, [ + U(u(a(i)("Dark Mode")) + " ", 1), + P(Se, { + class: "ms-3", + on: "vf-darkMode-saved" + }, { + default: E(() => [ + U(u(a(i)("Saved.")), 1) + ]), + _: 1 + }) + ]) + ]) + ]), + e("div", xl, [ + e("div", bl, [ + R(e("input", { + id: "metric_unit", + name: "metric_unit", + type: "checkbox", + "onUpdate:modelValue": f[1] || (f[1] = (y) => re(p) ? p.value = y : null), + onClick: c, + class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600" + }, null, 512), [ + [$e, a(p)] + ]) + ]), + e("div", wl, [ + e("label", yl, [ + U(u(a(i)("Use Metric Units")) + " ", 1), + P(Se, { + class: "ms-3", + on: "vf-metric-units-saved" + }, { + default: E(() => [ + U(u(a(i)("Saved.")), 1) + ]), + _: 1 + }) + ]) + ]) + ]), + e("button", { + onClick: n, + type: "button", + class: "vf-btn vf-btn-secondary" + }, u(a(i)("Clear Local Storage")), 1) + ]) + ]) + ]) ]) ]) ]) @@ -3025,31 +3195,32 @@ const zs = /* @__PURE__ */ e("iframe", { _: 1 })); } -}), ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}), Ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ModalArchive: bn, - ModalDelete: nr, - ModalMessage: pr, + ModalAbout: Cl, + ModalArchive: xr, + ModalDelete: ra, + ModalMessage: pa, ModalMove: tl, - ModalNewFile: Er, - ModalNewFolder: _r, - ModalPreview: ka, - ModalRename: Fa, - ModalUnarchive: Nn, - ModalUpload: on -}, Symbol.toStringTag, { value: "Module" })), he = { + ModalNewFile: Ea, + ModalNewFolder: ya, + ModalPreview: _n, + ModalRename: Vn, + ModalUnarchive: Ar, + ModalUpload: sr +}, Symbol.toStringTag, { value: "Module" })), _e = { VueFinder: Fs, - ...ol + ...Ml }; -const ml = { - install(d) { - for (const t in he) - if (he.hasOwnProperty(t)) { - const s = he[t]; - d.component(s.name, s); +const Al = { + install(l) { + for (const t in _e) + if (_e.hasOwnProperty(t)) { + const s = _e[t]; + l.component(s.name, s); } } }; export { - ml as default + Al as default }; diff --git a/dist/zhCN-f37edc4d.js b/dist/zhCN-9b524820.js similarity index 96% rename from dist/zhCN-f37edc4d.js rename to dist/zhCN-9b524820.js index 68d172c2..0e6215d8 100644 --- a/dist/zhCN-f37edc4d.js +++ b/dist/zhCN-9b524820.js @@ -114,7 +114,7 @@ e.strings = { youHaveToAtLeastSelectX: "您至少要选择 %{smart_count} 个文件" }; typeof Uppy < "u" && (globalThis.Uppy.locales.zh_CN = e); -const o = e, a = { +const o = e, t = { Language: "语言", Create: "创建", Close: "关闭", @@ -189,8 +189,14 @@ const o = e, a = { Done: "已完成", "Network Error, Unable establish connection to the server or interrupted.": "网络错误,无法连接到服务器或连接被意外中断。", "Pending upload": "待上传", + "Please select file to upload first.": "请先选择要上传的文件。", + "About %s": "关于 %s", + Settings: "设置", + "Use Metric Units": "使用公制单位", + "Saved.": "已保存。", + "Clear Local Storage": "清除本地存储", uppy: o }; export { - a as default + t as default }; diff --git a/dist/zhCN-5e98ef29.cjs b/dist/zhCN-e25e65b3.cjs similarity index 96% rename from dist/zhCN-5e98ef29.cjs rename to dist/zhCN-e25e65b3.cjs index a8f6527e..e8d4b354 100644 --- a/dist/zhCN-5e98ef29.cjs +++ b/dist/zhCN-e25e65b3.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(){return 0}};e.strings={addBulkFilesFailed:"内部错误导致添加 %{smart_count} 个文件失败",addMore:"添加更多文件",addMoreFiles:"添加更多文件",addingMoreFiles:"添加更多文件",allowAccessDescription:"为了通过您的相机进行拍照或录像,请给网站相机的访问权限",allowAccessTitle:"请允许对相机的访问权限",authenticateWith:"连接到 %{pluginName}",authenticateWithTitle:"请使用 %{pluginName} 进行认证以选择文件",back:"返回",browse:"浏览",browseFiles:"浏览",cancel:"取消",cancelUpload:"取消上传",chooseFiles:"选择文件",closeModal:"关闭窗口",companionError:"和 Companion 连接失败了",companionUnauthorizeHint:"请访问 %{url} 以认证您的 %{provider} 账户",complete:"上传完毕",connectedToInternet:"连接至网络",copyLink:"复制链接",copyLinkToClipboardFallback:"复制以下网址",copyLinkToClipboardSuccess:"链接已复制到剪贴板",creatingAssembly:"正在准备上传…",creatingAssemblyFailed:"Transloadit:无法创建程序集",dashboardTitle:"文件上传工具",dashboardWindowTitle:"文件上传工具窗口(点击离开以关闭)",dataUploadedOfTotal:"%{total} / %{complete}",done:"完成",dropHereOr:"拖拽文件到这里,或%{browse}",dropHint:"拖拽文件到这里",dropPasteBoth:"拖拽文件到这里,或者%{browse}文件",dropPasteFiles:"拖拽文件到这里,或者%{browse}文件",dropPasteFolders:"拖拽文件到这里,或者%{browse}文件",dropPasteImportBoth:"拖拽文件到这里,粘贴、%{browse}或者导入",dropPasteImportFiles:"拖拽文件到这里,粘贴、%{browse}或者导入",dropPasteImportFolders:"拖拽文件到这里,粘贴、%{browse}或者导入",editFile:"编辑文件",editing:"正在编辑 %{file}",emptyFolderAdded:"无法从空文件夹添加文件",encoding:"正在编码…",enterCorrectUrl:"错误链接: 请确认您输入的是文件的链接",enterUrlToImport:"输入链接或者导入文件",exceedsSize:"文件超过了最大尺寸限制 %{size}",failedToFetch:"Companion 无法抓取此链接,请确保它是正确的",failedToUpload:"上传 %{file} 失败",fileSource:"文件源:%{name}",filesUploadedOfTotal:"已上传 %{smart_count} 个文件中的 %{complete} 个",filter:"筛选器",finishEditingFile:"完成文件编辑",folderAdded:"从 %{folder} 添加了 %{smart_count} 个文件",generatingThumbnails:"正在生成缩略图…",import:"导入",importFrom:"从 %{name} 导入",inferiorSize:"文件大小必须超过 %{size}",loading:"正在载入…",logOut:"登出",micDisabled:"麦克风的权限访问被用户拒绝",myDevice:"我的设备",noCameraDescription:"为了拍摄照片或录制视频,请连接一个摄像设备",noCameraTitle:"摄像头不可用",noDuplicates:"无法添加重复文件 %{fileName},该文件已存在",noFilesFound:"这里空空如也",noInternetConnection:"无法连接到网络",noMoreFilesAllowed:"无法添加新文件:已正在上传文件",openFolderNamed:"打开文件夹 %{name}",pause:"暂停",pauseUpload:"暂停上传",paused:"已暂停",poweredBy:"强力驱动于 %{uppy}",processingXFiles:"正在处理 %{smart_count} 个文件",recording:"正在录制",recordingLength:"录制长度 %{recording_length}",recordingStoppedMaxSize:"录像已停止,文件大小即将超过限制",removeFile:"删除文件",resetFilter:"重置筛选器",resume:"恢复",resumeUpload:"恢复上传",retry:"重试",retryUpload:"重试",saveChanges:"保存变更",selectFileNamed:"选择文件 %{name}",selectX:"选择 %{smart_count}",smile:"笑一笑!",startCapturing:"开始屏幕录制",startRecording:"开始视频录制",stopCapturing:"停止屏幕录制",stopRecording:"停止视频录制",streamActive:"视频流已激活",streamPassive:"视频流未激活",submitRecordedFile:"提交已录制视频",takePicture:"拍照",timedOut:"上传已超时 %{seconds} 秒,中止上传",unselectFileNamed:"取消选择文件 %{name}",upload:"上传",uploadComplete:"上传完成",uploadFailed:"上传失败",uploadPaused:"上传暂停",uploadXFiles:"上传 %{smart_count} 个文件",uploadXNewFiles:"新上传了 %{smart_count} 个文件",uploading:"正在上传",uploadingXFiles:"正在上传 %{smart_count} 个文件",xFilesSelected:"%{smart_count} 个文件待上传",xMoreFilesAdded:"又有 %{smart_count} 个文件被添加",xTimeLeft:"剩余 %{time}",youCanOnlyUploadFileTypes:"您只能上传这些文件类型:%{types}",youCanOnlyUploadX:"您只能上传 %{smart_count} 个文件",youHaveToAtLeastSelectX:"您至少要选择 %{smart_count} 个文件"};typeof Uppy<"u"&&(globalThis.Uppy.locales.zh_CN=e);const o=e,t={Language:"语言",Create:"创建",Close:"关闭",Cancel:"取消",Save:"保存",Edit:"编辑",Crop:"裁切","New Folder":"新文件夹","New File":"新文件",Rename:"重命名",Delete:"删除",Upload:"上传",Download:"下载",Archive:"压缩",Unarchive:"解压缩",Open:"打开","Open containing folder":"打开对应的文件夹",Refresh:"刷新",Preview:"预览","Dark Mode":"暗黑模式","Toggle Full Screen":"切换到全屏","Change View":"切换视图",Storage:"存储","Go up a directory":"上一级目录","Search anything..":"搜索..",Name:"名称",Size:"大小",Date:"日期",Filepath:"文件路径",About:"关于","Folder Name":"文件夹名称","File Name":"文件名称","Move files":"移动文件","Are you sure you want to move these files to?":"您确定要移动这些文件吗?","Yes, Move!":"确定,复制!","Delete files":"删除文件","Yes, Delete!":"确定,删除!","Upload Files":"上传文件","No files selected!":"未选择文件!","Select Files":"选择文件","Archive the files":"压缩文件","Unarchive the files":"解压缩文件","The archive will be unarchived at":"此压缩文件将解压到","Archive name. (.zip file will be created)":"压缩包名称。(将创建 .zip 文件)","Vuefinder is a file manager component for vue 3.":"Vuefinder 是 Vue 3 的一个文件管理组件。","Create a new folder":"创建一个新文件夹","Create a new file":"创建一个新文件","Are you sure you want to delete these files?":"您确定要删除这些文件吗?","This action cannot be undone.":"此操作不能撤销。","Search results for":"搜索结果为","item(s) selected.":"个文件 已选择。","%s is renamed.":"%s 已重命名。","This is a readonly storage.":"这是只读存储。","%s is created.":"%s 已创建。","Files moved.":"文件已移动。","Files deleted.":"文件已删除。","The file unarchived.":"文件已解压。","The file(s) archived.":"文件已压缩。","Updated.":"已更新。","No search result found.":"未找到搜索结果。","Are you sure you want to move these files?":"您确定要移动这些文件吗?","File Size":"文件大小","Last Modified":"文件修改时间","Drag&Drop: on":"拖拽: 开","Drag&Drop: off":"拖拽: 关","Select Folders":"选择文件夹","Clear all":"清除全部","Clear only successful":"清除已成功上传的","Drag and drop the files/folders to here or click here.":"拖拽或点击此处上传文件/文件夹。","Release to drop these files.":"放开后添加这些文件。",Canceled:"已取消",Done:"已完成","Network Error, Unable establish connection to the server or interrupted.":"网络错误,无法连接到服务器或连接被意外中断。","Pending upload":"待上传",uppy:o};exports.default=t; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(){return 0}};e.strings={addBulkFilesFailed:"内部错误导致添加 %{smart_count} 个文件失败",addMore:"添加更多文件",addMoreFiles:"添加更多文件",addingMoreFiles:"添加更多文件",allowAccessDescription:"为了通过您的相机进行拍照或录像,请给网站相机的访问权限",allowAccessTitle:"请允许对相机的访问权限",authenticateWith:"连接到 %{pluginName}",authenticateWithTitle:"请使用 %{pluginName} 进行认证以选择文件",back:"返回",browse:"浏览",browseFiles:"浏览",cancel:"取消",cancelUpload:"取消上传",chooseFiles:"选择文件",closeModal:"关闭窗口",companionError:"和 Companion 连接失败了",companionUnauthorizeHint:"请访问 %{url} 以认证您的 %{provider} 账户",complete:"上传完毕",connectedToInternet:"连接至网络",copyLink:"复制链接",copyLinkToClipboardFallback:"复制以下网址",copyLinkToClipboardSuccess:"链接已复制到剪贴板",creatingAssembly:"正在准备上传…",creatingAssemblyFailed:"Transloadit:无法创建程序集",dashboardTitle:"文件上传工具",dashboardWindowTitle:"文件上传工具窗口(点击离开以关闭)",dataUploadedOfTotal:"%{total} / %{complete}",done:"完成",dropHereOr:"拖拽文件到这里,或%{browse}",dropHint:"拖拽文件到这里",dropPasteBoth:"拖拽文件到这里,或者%{browse}文件",dropPasteFiles:"拖拽文件到这里,或者%{browse}文件",dropPasteFolders:"拖拽文件到这里,或者%{browse}文件",dropPasteImportBoth:"拖拽文件到这里,粘贴、%{browse}或者导入",dropPasteImportFiles:"拖拽文件到这里,粘贴、%{browse}或者导入",dropPasteImportFolders:"拖拽文件到这里,粘贴、%{browse}或者导入",editFile:"编辑文件",editing:"正在编辑 %{file}",emptyFolderAdded:"无法从空文件夹添加文件",encoding:"正在编码…",enterCorrectUrl:"错误链接: 请确认您输入的是文件的链接",enterUrlToImport:"输入链接或者导入文件",exceedsSize:"文件超过了最大尺寸限制 %{size}",failedToFetch:"Companion 无法抓取此链接,请确保它是正确的",failedToUpload:"上传 %{file} 失败",fileSource:"文件源:%{name}",filesUploadedOfTotal:"已上传 %{smart_count} 个文件中的 %{complete} 个",filter:"筛选器",finishEditingFile:"完成文件编辑",folderAdded:"从 %{folder} 添加了 %{smart_count} 个文件",generatingThumbnails:"正在生成缩略图…",import:"导入",importFrom:"从 %{name} 导入",inferiorSize:"文件大小必须超过 %{size}",loading:"正在载入…",logOut:"登出",micDisabled:"麦克风的权限访问被用户拒绝",myDevice:"我的设备",noCameraDescription:"为了拍摄照片或录制视频,请连接一个摄像设备",noCameraTitle:"摄像头不可用",noDuplicates:"无法添加重复文件 %{fileName},该文件已存在",noFilesFound:"这里空空如也",noInternetConnection:"无法连接到网络",noMoreFilesAllowed:"无法添加新文件:已正在上传文件",openFolderNamed:"打开文件夹 %{name}",pause:"暂停",pauseUpload:"暂停上传",paused:"已暂停",poweredBy:"强力驱动于 %{uppy}",processingXFiles:"正在处理 %{smart_count} 个文件",recording:"正在录制",recordingLength:"录制长度 %{recording_length}",recordingStoppedMaxSize:"录像已停止,文件大小即将超过限制",removeFile:"删除文件",resetFilter:"重置筛选器",resume:"恢复",resumeUpload:"恢复上传",retry:"重试",retryUpload:"重试",saveChanges:"保存变更",selectFileNamed:"选择文件 %{name}",selectX:"选择 %{smart_count}",smile:"笑一笑!",startCapturing:"开始屏幕录制",startRecording:"开始视频录制",stopCapturing:"停止屏幕录制",stopRecording:"停止视频录制",streamActive:"视频流已激活",streamPassive:"视频流未激活",submitRecordedFile:"提交已录制视频",takePicture:"拍照",timedOut:"上传已超时 %{seconds} 秒,中止上传",unselectFileNamed:"取消选择文件 %{name}",upload:"上传",uploadComplete:"上传完成",uploadFailed:"上传失败",uploadPaused:"上传暂停",uploadXFiles:"上传 %{smart_count} 个文件",uploadXNewFiles:"新上传了 %{smart_count} 个文件",uploading:"正在上传",uploadingXFiles:"正在上传 %{smart_count} 个文件",xFilesSelected:"%{smart_count} 个文件待上传",xMoreFilesAdded:"又有 %{smart_count} 个文件被添加",xTimeLeft:"剩余 %{time}",youCanOnlyUploadFileTypes:"您只能上传这些文件类型:%{types}",youCanOnlyUploadX:"您只能上传 %{smart_count} 个文件",youHaveToAtLeastSelectX:"您至少要选择 %{smart_count} 个文件"};typeof Uppy<"u"&&(globalThis.Uppy.locales.zh_CN=e);const o=e,t={Language:"语言",Create:"创建",Close:"关闭",Cancel:"取消",Save:"保存",Edit:"编辑",Crop:"裁切","New Folder":"新文件夹","New File":"新文件",Rename:"重命名",Delete:"删除",Upload:"上传",Download:"下载",Archive:"压缩",Unarchive:"解压缩",Open:"打开","Open containing folder":"打开对应的文件夹",Refresh:"刷新",Preview:"预览","Dark Mode":"暗黑模式","Toggle Full Screen":"切换到全屏","Change View":"切换视图",Storage:"存储","Go up a directory":"上一级目录","Search anything..":"搜索..",Name:"名称",Size:"大小",Date:"日期",Filepath:"文件路径",About:"关于","Folder Name":"文件夹名称","File Name":"文件名称","Move files":"移动文件","Are you sure you want to move these files to?":"您确定要移动这些文件吗?","Yes, Move!":"确定,复制!","Delete files":"删除文件","Yes, Delete!":"确定,删除!","Upload Files":"上传文件","No files selected!":"未选择文件!","Select Files":"选择文件","Archive the files":"压缩文件","Unarchive the files":"解压缩文件","The archive will be unarchived at":"此压缩文件将解压到","Archive name. (.zip file will be created)":"压缩包名称。(将创建 .zip 文件)","Vuefinder is a file manager component for vue 3.":"Vuefinder 是 Vue 3 的一个文件管理组件。","Create a new folder":"创建一个新文件夹","Create a new file":"创建一个新文件","Are you sure you want to delete these files?":"您确定要删除这些文件吗?","This action cannot be undone.":"此操作不能撤销。","Search results for":"搜索结果为","item(s) selected.":"个文件 已选择。","%s is renamed.":"%s 已重命名。","This is a readonly storage.":"这是只读存储。","%s is created.":"%s 已创建。","Files moved.":"文件已移动。","Files deleted.":"文件已删除。","The file unarchived.":"文件已解压。","The file(s) archived.":"文件已压缩。","Updated.":"已更新。","No search result found.":"未找到搜索结果。","Are you sure you want to move these files?":"您确定要移动这些文件吗?","File Size":"文件大小","Last Modified":"文件修改时间","Drag&Drop: on":"拖拽: 开","Drag&Drop: off":"拖拽: 关","Select Folders":"选择文件夹","Clear all":"清除全部","Clear only successful":"清除已成功上传的","Drag and drop the files/folders to here or click here.":"拖拽或点击此处上传文件/文件夹。","Release to drop these files.":"放开后添加这些文件。",Canceled:"已取消",Done:"已完成","Network Error, Unable establish connection to the server or interrupted.":"网络错误,无法连接到服务器或连接被意外中断。","Pending upload":"待上传","Please select file to upload first.":"请先选择要上传的文件。","About %s":"关于 %s",Settings:"设置","Use Metric Units":"使用公制单位","Saved.":"已保存。","Clear Local Storage":"清除本地存储",uppy:o};exports.default=t; diff --git a/dist/zhTW-ffaa338d.cjs b/dist/zhTW-6a024d5e.cjs similarity index 97% rename from dist/zhTW-ffaa338d.cjs rename to dist/zhTW-6a024d5e.cjs index f31142a7..149230ff 100644 --- a/dist/zhTW-ffaa338d.cjs +++ b/dist/zhTW-6a024d5e.cjs @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(){return 0}};e.strings={addBulkFilesFailed:"因伺服器錯誤,無法新增 %{smart_count} 個檔案",addedNumFiles:"已新增 %{numFiles} 個檔案",addingMoreFiles:"正在新增更多檔案",additionalRestrictionsFailed:"尚未滿足 %{count} 個額外限制",addMore:"新增更多",addMoreFiles:"新增更多檔案",allFilesFromFolderNamed:"資料夾 %{name} 中的所有檔案",allowAccessDescription:"請允許本網站存取相機以拍照或錄影。",allowAccessTitle:"請允許對相機的存取權限",allowAudioAccessDescription:"請允許本網站存取麥克風以錄製音訊。",allowAudioAccessTitle:"請允許對麥克風的存取權限",aspectRatioLandscape:"裁切成橫向 (16:9)",aspectRatioPortrait:"裁切成直向 (9:16)",aspectRatioSquare:"裁切成方形",authAborted:"驗證已中止",authenticateWith:"連接到 %{pluginName}",authenticateWithTitle:"請使用 %{pluginName} 進行身份驗證以選擇檔案",back:"返回",browse:"瀏覽",browseFiles:"瀏覽檔案",browseFolders:"瀏覽資料夾",cancel:"取消",cancelUpload:"取消上傳",chooseFiles:"選擇檔案",closeModal:"關閉視窗",companionError:"與 Companion 的連接失敗",companionUnauthorizeHint:"若要取消 %{provider} 帳號認證,請前往 %{url}",complete:"完成",compressedX:"圖片壓縮後,省下了 %{size}",compressingImages:"正在壓縮圖片...",connectedToInternet:"連線至網路",copyLink:"複製連結",copyLinkToClipboardFallback:"複製以下網址",copyLinkToClipboardSuccess:"連結已複製到剪貼簿",creatingAssembly:"正在準備上傳...",creatingAssemblyFailed:"Transloadit:無法建立程序集",dashboardTitle:"Uppy 儀表板",dashboardWindowTitle:"Uppy 儀表板視窗(按下 Esc 以關閉)",dataUploadedOfTotal:"%{complete}/%{total}",discardRecordedFile:"捨棄錄影檔",done:"完成",dropHereOr:"拖曳至此處,或%{browse}",dropHint:"將檔案拖曳至此處",dropPasteBoth:"將檔案拖曳至此處、%{browseFiles},或%{browseFolders}",dropPasteFiles:"將檔案拖曳至此處,或%{browseFiles}",dropPasteFolders:"將檔案拖曳至此處,或%{browseFolders}",dropPasteImportBoth:"將檔案拖曳至此處、%{browseFiles},或匯入",dropPasteImportFiles:"將檔案拖曳至此處、%{browseFiles},或匯入",dropPasteImportFolders:"將檔案拖曳至此處、%{browseFolders},或匯入",editFile:"編輯檔案",editFileWithFilename:"編輯檔案 %{file}",editing:"編輯 %{file}",emptyFolderAdded:"未從空資料夾新增任何檔案",encoding:"編碼中...",enterCorrectUrl:"錯誤連結:請確認您輸入的是檔案連結",enterTextToSearch:"輸入文字以搜尋圖片",enterUrlToImport:"輸入連結以匯入檔案",error:"錯誤",exceedsSize:"此檔案大小超出允許的最大值 %{size}",failedToFetch:"Companion 無法抓取此連結,請確認它是正確的",failedToUpload:"%{file} 上傳失敗",filesUploadedOfTotal:"已上傳 %{complete} 個檔案中的 %{smart_count} 個檔案",filter:"篩選器",finishEditingFile:"完成檔案編輯",flipHorizontal:"水平翻轉",folderAdded:"從 %{folder} 新增了 %{smart_count} 個檔案",folderAlreadyAdded:'資料夾 "%{folder}" 已新增',generatingThumbnails:"正在產生縮圖...",import:"匯入",importFiles:"檔案匯入來源:",importFrom:"從 %{name} 匯入",inferiorSize:"此檔案小於允許的大小:%{size}",loading:"正在載入...",logOut:"登出",micDisabled:"使用者拒絕麥克風存取權限",missingRequiredMetaField:"遺漏中繼資料必要欄位",missingRequiredMetaFieldOnFile:"%{fileName} 遺漏中繼資料必要欄位",missingRequiredMetaFields:"遺漏中繼資料必要欄位:%{fields}。",myDevice:"我的裝置",noAudioDescription:"請連接麥克風或其他音訊輸入裝置以錄製音訊",noAudioTitle:"無法使用麥克風",noCameraDescription:"請連接相機以拍照或錄影",noCameraTitle:"無法使用相機",noDuplicates:"無法新增重複檔案,'%{fileName}' 已存在",noFilesFound:"這裡空空如也",noInternetConnection:"無網路連線",noMoreFilesAllowed:"無法新增更多檔案",noSearchResults:"抱歉,找不到符合此搜尋條件的結果",openFolderNamed:"開啟資料夾 %{name}",pause:"暫停",paused:"已暫停",pauseUpload:"暫停上傳",pluginNameAudio:"音訊",pluginNameBox:"Box",pluginNameCamera:"相機",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google 雲端硬碟",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"技術提供者 %{uppy}",processingXFiles:"正在處理 %{smart_count} 個檔案",recording:"正在錄製",recordingLength:"錄製時長 %{recording_length}",recordingStoppedMaxSize:"因檔案大小即將超出限制而停止錄製",recordVideoBtn:"錄影",recoveredAllFiles:"我們還原了所有檔案。您現在可以繼續上傳了。",recoveredXFiles:"我們無法完全復原 %{smart_count} 個檔案。請重新選擇檔案並繼續上傳。",removeFile:"移除檔案",reSelect:"重新選擇",resetFilter:"重設篩選器",resetSearch:"重設搜尋",resume:"繼續",resumeUpload:"繼續上傳",retry:"重試",retryUpload:"重試上傳",revert:"還原",rotate:"旋轉",save:"儲存",saveChanges:"儲存變更",search:"搜尋",searchImages:"搜尋圖片",selectX:"選擇 %{smart_count}",sessionRestored:"已復原工作階段",showErrorDetails:"顯示錯誤詳細資訊",signInWithGoogle:"透過 Google 登入",smile:"請微笑!",startAudioRecording:"開始錄音",startCapturing:"開始畫面擷取",startRecording:"開始錄影",stopAudioRecording:"停止錄音",stopCapturing:"停止畫面擷取",stopRecording:"停止錄影",streamActive:"主動串流",streamPassive:"被動串流",submitRecordedFile:"提交錄影檔",takePicture:"拍照",takePictureBtn:"拍照",timedOut:"上傳已停滯 %{seconds} 秒,正在中止上傳。",upload:"上傳",uploadComplete:"上傳完成",uploadFailed:"上傳失敗",uploading:"正在上傳",uploadingXFiles:"正在上傳 %{smart_count} 個檔案",uploadPaused:"暫停上傳",uploadStalled:"上傳已停滯 %{seconds} 秒。請考慮重試。",uploadXFiles:"上傳 %{smart_count} 個檔案",uploadXNewFiles:"上傳 +%{smart_count} 個檔案",xFilesSelected:"已選擇 %{smart_count} 個檔案",xMoreFilesAdded:"又新增 %{smart_count} 個檔案",xTimeLeft:"還剩下 %{time}",youCanOnlyUploadFileTypes:"您只能上傳這些檔案類型:%{types}",youCanOnlyUploadX:"您只能上傳 %{smart_count} 個檔案",youHaveToAtLeastSelectX:"您至少要選擇 %{smart_count} 個檔案",zoomIn:"放大",zoomOut:"縮小"};typeof Uppy<"u"&&(globalThis.Uppy.locales.zh_TW=e);const o=e,i={Language:"語言",Create:"建立",Close:"關閉",Cancel:"取消",Save:"储存",Edit:"編輯",Crop:"裁切","New Folder":"新資料夾","New File":"新檔案",Rename:"改名",Delete:"刪除",Upload:"上傳",Download:"下載",Archive:"壓縮",Unarchive:"解壓縮",Open:"打開","Open containing folder":"打開對應的資料夾",Refresh:"重新整理",Preview:"預覽","Dark Mode":"黑暗模式","Toggle Full Screen":"切換全螢幕","Change View":"變更視圖",Storage:"儲存","Go up a directory":"上一個目錄","Search anything..":"搜尋..",Name:"名稱",Size:"大小",Date:"日期",Filepath:"檔案路徑",About:"關於","Folder Name":"資料夾名稱","File Name":"檔案名称","Move files":"移動檔案","Are you sure you want to move these files to?":"您確定要移動這些檔案嗎?","Yes, Move!":"確定,複製!","Delete files":"刪除檔案","Yes, Delete!":"確定,刪除!","Upload Files":"上傳檔案","No files selected!":"未選取檔案!","Select Files":"選擇檔案","Archive the files":"壓縮檔案","Unarchive the files":"解壓縮檔案","The archive will be unarchived at":"此壓縮檔案將解壓到","Archive name. (.zip file will be created)":"壓縮檔案名稱。(將創建 .zip 檔案)","Vuefinder is a file manager component for vue 3.":"Vuefinder 是 Vue 3 的一個檔案管理員組件。","Create a new folder":"創建一個新資料夾","Create a new file":"創建一個新檔案","Are you sure you want to delete these files?":"您確定要刪除這些檔案嗎?","This action cannot be undone.":"此操作不能撤銷。","Search results for":"搜尋結果為","item(s) selected.":"個檔案 已選取。","%s is renamed.":"%s 已重新命名。","This is a readonly storage.":"這是只讀存儲器。","%s is created.":"%s 已創建。","Files moved.":"檔案已移動。","Files deleted.":"檔案已刪除。","The file unarchived.":"檔案已解壓。","The file(s) archived.":"檔案已壓縮。","Updated.":"已更新。","No search result found.":"未能搜尋到結果。","Are you sure you want to move these files?":"您確定要移動這些檔案嗎?","File Size":"檔案大小","Last Modified":"檔案修改時間","Drag&Drop: on":"拖拽:開啟","Drag&Drop: off":"拖拽:關閉","Select Folders":"選擇資料夾","Clear all":"全部清除","Clear only successful":"僅清除成功上傳的","Drag and drop the files/folders to here or click here.":"拖曳或點擊此處上傳檔案/資料夾。","Release to drop these files.":"放開後添加這些文件。",Canceled:"已取消",Done:"已完成","Network Error, Unable establish connection to the server or interrupted.":"網路錯誤,無法連線到伺服器或連線被意外中斷。","Pending upload":"待上傳",uppy:o};exports.default=i; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={strings:{},pluralize(){return 0}};e.strings={addBulkFilesFailed:"因伺服器錯誤,無法新增 %{smart_count} 個檔案",addedNumFiles:"已新增 %{numFiles} 個檔案",addingMoreFiles:"正在新增更多檔案",additionalRestrictionsFailed:"尚未滿足 %{count} 個額外限制",addMore:"新增更多",addMoreFiles:"新增更多檔案",allFilesFromFolderNamed:"資料夾 %{name} 中的所有檔案",allowAccessDescription:"請允許本網站存取相機以拍照或錄影。",allowAccessTitle:"請允許對相機的存取權限",allowAudioAccessDescription:"請允許本網站存取麥克風以錄製音訊。",allowAudioAccessTitle:"請允許對麥克風的存取權限",aspectRatioLandscape:"裁切成橫向 (16:9)",aspectRatioPortrait:"裁切成直向 (9:16)",aspectRatioSquare:"裁切成方形",authAborted:"驗證已中止",authenticateWith:"連接到 %{pluginName}",authenticateWithTitle:"請使用 %{pluginName} 進行身份驗證以選擇檔案",back:"返回",browse:"瀏覽",browseFiles:"瀏覽檔案",browseFolders:"瀏覽資料夾",cancel:"取消",cancelUpload:"取消上傳",chooseFiles:"選擇檔案",closeModal:"關閉視窗",companionError:"與 Companion 的連接失敗",companionUnauthorizeHint:"若要取消 %{provider} 帳號認證,請前往 %{url}",complete:"完成",compressedX:"圖片壓縮後,省下了 %{size}",compressingImages:"正在壓縮圖片...",connectedToInternet:"連線至網路",copyLink:"複製連結",copyLinkToClipboardFallback:"複製以下網址",copyLinkToClipboardSuccess:"連結已複製到剪貼簿",creatingAssembly:"正在準備上傳...",creatingAssemblyFailed:"Transloadit:無法建立程序集",dashboardTitle:"Uppy 儀表板",dashboardWindowTitle:"Uppy 儀表板視窗(按下 Esc 以關閉)",dataUploadedOfTotal:"%{complete}/%{total}",discardRecordedFile:"捨棄錄影檔",done:"完成",dropHereOr:"拖曳至此處,或%{browse}",dropHint:"將檔案拖曳至此處",dropPasteBoth:"將檔案拖曳至此處、%{browseFiles},或%{browseFolders}",dropPasteFiles:"將檔案拖曳至此處,或%{browseFiles}",dropPasteFolders:"將檔案拖曳至此處,或%{browseFolders}",dropPasteImportBoth:"將檔案拖曳至此處、%{browseFiles},或匯入",dropPasteImportFiles:"將檔案拖曳至此處、%{browseFiles},或匯入",dropPasteImportFolders:"將檔案拖曳至此處、%{browseFolders},或匯入",editFile:"編輯檔案",editFileWithFilename:"編輯檔案 %{file}",editing:"編輯 %{file}",emptyFolderAdded:"未從空資料夾新增任何檔案",encoding:"編碼中...",enterCorrectUrl:"錯誤連結:請確認您輸入的是檔案連結",enterTextToSearch:"輸入文字以搜尋圖片",enterUrlToImport:"輸入連結以匯入檔案",error:"錯誤",exceedsSize:"此檔案大小超出允許的最大值 %{size}",failedToFetch:"Companion 無法抓取此連結,請確認它是正確的",failedToUpload:"%{file} 上傳失敗",filesUploadedOfTotal:"已上傳 %{complete} 個檔案中的 %{smart_count} 個檔案",filter:"篩選器",finishEditingFile:"完成檔案編輯",flipHorizontal:"水平翻轉",folderAdded:"從 %{folder} 新增了 %{smart_count} 個檔案",folderAlreadyAdded:'資料夾 "%{folder}" 已新增',generatingThumbnails:"正在產生縮圖...",import:"匯入",importFiles:"檔案匯入來源:",importFrom:"從 %{name} 匯入",inferiorSize:"此檔案小於允許的大小:%{size}",loading:"正在載入...",logOut:"登出",micDisabled:"使用者拒絕麥克風存取權限",missingRequiredMetaField:"遺漏中繼資料必要欄位",missingRequiredMetaFieldOnFile:"%{fileName} 遺漏中繼資料必要欄位",missingRequiredMetaFields:"遺漏中繼資料必要欄位:%{fields}。",myDevice:"我的裝置",noAudioDescription:"請連接麥克風或其他音訊輸入裝置以錄製音訊",noAudioTitle:"無法使用麥克風",noCameraDescription:"請連接相機以拍照或錄影",noCameraTitle:"無法使用相機",noDuplicates:"無法新增重複檔案,'%{fileName}' 已存在",noFilesFound:"這裡空空如也",noInternetConnection:"無網路連線",noMoreFilesAllowed:"無法新增更多檔案",noSearchResults:"抱歉,找不到符合此搜尋條件的結果",openFolderNamed:"開啟資料夾 %{name}",pause:"暫停",paused:"已暫停",pauseUpload:"暫停上傳",pluginNameAudio:"音訊",pluginNameBox:"Box",pluginNameCamera:"相機",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google 雲端硬碟",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"技術提供者 %{uppy}",processingXFiles:"正在處理 %{smart_count} 個檔案",recording:"正在錄製",recordingLength:"錄製時長 %{recording_length}",recordingStoppedMaxSize:"因檔案大小即將超出限制而停止錄製",recordVideoBtn:"錄影",recoveredAllFiles:"我們還原了所有檔案。您現在可以繼續上傳了。",recoveredXFiles:"我們無法完全復原 %{smart_count} 個檔案。請重新選擇檔案並繼續上傳。",removeFile:"移除檔案",reSelect:"重新選擇",resetFilter:"重設篩選器",resetSearch:"重設搜尋",resume:"繼續",resumeUpload:"繼續上傳",retry:"重試",retryUpload:"重試上傳",revert:"還原",rotate:"旋轉",save:"儲存",saveChanges:"儲存變更",search:"搜尋",searchImages:"搜尋圖片",selectX:"選擇 %{smart_count}",sessionRestored:"已復原工作階段",showErrorDetails:"顯示錯誤詳細資訊",signInWithGoogle:"透過 Google 登入",smile:"請微笑!",startAudioRecording:"開始錄音",startCapturing:"開始畫面擷取",startRecording:"開始錄影",stopAudioRecording:"停止錄音",stopCapturing:"停止畫面擷取",stopRecording:"停止錄影",streamActive:"主動串流",streamPassive:"被動串流",submitRecordedFile:"提交錄影檔",takePicture:"拍照",takePictureBtn:"拍照",timedOut:"上傳已停滯 %{seconds} 秒,正在中止上傳。",upload:"上傳",uploadComplete:"上傳完成",uploadFailed:"上傳失敗",uploading:"正在上傳",uploadingXFiles:"正在上傳 %{smart_count} 個檔案",uploadPaused:"暫停上傳",uploadStalled:"上傳已停滯 %{seconds} 秒。請考慮重試。",uploadXFiles:"上傳 %{smart_count} 個檔案",uploadXNewFiles:"上傳 +%{smart_count} 個檔案",xFilesSelected:"已選擇 %{smart_count} 個檔案",xMoreFilesAdded:"又新增 %{smart_count} 個檔案",xTimeLeft:"還剩下 %{time}",youCanOnlyUploadFileTypes:"您只能上傳這些檔案類型:%{types}",youCanOnlyUploadX:"您只能上傳 %{smart_count} 個檔案",youHaveToAtLeastSelectX:"您至少要選擇 %{smart_count} 個檔案",zoomIn:"放大",zoomOut:"縮小"};typeof Uppy<"u"&&(globalThis.Uppy.locales.zh_TW=e);const o=e,i={Language:"語言",Create:"建立",Close:"關閉",Cancel:"取消",Save:"储存",Edit:"編輯",Crop:"裁切","New Folder":"新資料夾","New File":"新檔案",Rename:"改名",Delete:"刪除",Upload:"上傳",Download:"下載",Archive:"壓縮",Unarchive:"解壓縮",Open:"打開","Open containing folder":"打開對應的資料夾",Refresh:"重新整理",Preview:"預覽","Dark Mode":"黑暗模式","Toggle Full Screen":"切換全螢幕","Change View":"變更視圖",Storage:"儲存","Go up a directory":"上一個目錄","Search anything..":"搜尋..",Name:"名稱",Size:"大小",Date:"日期",Filepath:"檔案路徑",About:"關於","Folder Name":"資料夾名稱","File Name":"檔案名称","Move files":"移動檔案","Are you sure you want to move these files to?":"您確定要移動這些檔案嗎?","Yes, Move!":"確定,複製!","Delete files":"刪除檔案","Yes, Delete!":"確定,刪除!","Upload Files":"上傳檔案","No files selected!":"未選取檔案!","Select Files":"選擇檔案","Archive the files":"壓縮檔案","Unarchive the files":"解壓縮檔案","The archive will be unarchived at":"此壓縮檔案將解壓到","Archive name. (.zip file will be created)":"壓縮檔案名稱。(將創建 .zip 檔案)","Vuefinder is a file manager component for vue 3.":"Vuefinder 是 Vue 3 的一個檔案管理員組件。","Create a new folder":"創建一個新資料夾","Create a new file":"創建一個新檔案","Are you sure you want to delete these files?":"您確定要刪除這些檔案嗎?","This action cannot be undone.":"此操作不能撤銷。","Search results for":"搜尋結果為","item(s) selected.":"個檔案 已選取。","%s is renamed.":"%s 已重新命名。","This is a readonly storage.":"這是只讀存儲器。","%s is created.":"%s 已創建。","Files moved.":"檔案已移動。","Files deleted.":"檔案已刪除。","The file unarchived.":"檔案已解壓。","The file(s) archived.":"檔案已壓縮。","Updated.":"已更新。","No search result found.":"未能搜尋到結果。","Are you sure you want to move these files?":"您確定要移動這些檔案嗎?","File Size":"檔案大小","Last Modified":"檔案修改時間","Drag&Drop: on":"拖拽:開啟","Drag&Drop: off":"拖拽:關閉","Select Folders":"選擇資料夾","Clear all":"全部清除","Clear only successful":"僅清除成功上傳的","Drag and drop the files/folders to here or click here.":"拖曳或點擊此處上傳檔案/資料夾。","Release to drop these files.":"放開後添加這些文件。",Canceled:"已取消",Done:"已完成","Network Error, Unable establish connection to the server or interrupted.":"網路錯誤,無法連線到伺服器或連線被意外中斷。","Pending upload":"待上傳","Please select file to upload first.":"請先選擇要上傳的檔案。","About %s":"關於 %s",Settings:"設定","Use Metric Units":"使用公制單位","Saved.":"已儲存。","Clear Local Storage":"清除本地儲存",uppy:o};exports.default=i; diff --git a/dist/zhTW-0fd6dd31.js b/dist/zhTW-a803434e.js similarity index 97% rename from dist/zhTW-0fd6dd31.js rename to dist/zhTW-a803434e.js index 43023c25..a8cd5b48 100644 --- a/dist/zhTW-0fd6dd31.js +++ b/dist/zhTW-a803434e.js @@ -239,6 +239,12 @@ const o = e, i = { Done: "已完成", "Network Error, Unable establish connection to the server or interrupted.": "網路錯誤,無法連線到伺服器或連線被意外中斷。", "Pending upload": "待上傳", + "Please select file to upload first.": "請先選擇要上傳的檔案。", + "About %s": "關於 %s", + Settings: "設定", + "Use Metric Units": "使用公制單位", + "Saved.": "已儲存。", + "Clear Local Storage": "清除本地儲存", uppy: o }; export {