diff --git a/dist/style.css b/dist/style.css index 51d6401e..a19c3dca 100644 --- a/dist/style.css +++ b/dist/style.css @@ -6,4 +6,4 @@ * https://github.com/KingSora * * Released under the MIT license. - */.os-size-observer,.os-size-observer-listener{scroll-behavior:auto!important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}[data-overlayscrollbars-initialize],[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;scroll-behavior:auto!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw: 0;--os-vah: 0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars],[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{overflow:hidden!important}[data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport~=measuring]{overflow:hidden!important;scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=overflowXVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-x:visible!important}[data-overlayscrollbars-viewport~=overflowXHidden]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=overflowXScroll]{overflow-x:scroll!important}[data-overlayscrollbars-viewport~=overflowYVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-y:visible!important}[data-overlayscrollbars-viewport~=overflowYHidden]{overflow-y:hidden!important}[data-overlayscrollbars-viewport~=overflowYScroll]{overflow-y:scroll!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{display:none!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}@property --os-scroll-percent{syntax: ""; inherits: true; initial-value: 0;}@property --os-viewport-percent{syntax: ""; inherits: true; initial-value: 0;}.os-scrollbar{--os-viewport-percent: 0;--os-scroll-percent: 0;--os-scroll-direction: 0;--os-scroll-percent-directional: calc( var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction) );contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translate(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type: size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{left:auto;transform:translate(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-vertical .os-scrollbar-handle{top:auto;transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{right:auto;left:0}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.vuefinder *,.vuefinder :before,.vuefinder :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.vuefinder :before,.vuefinder :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,.vuefinder h2,.vuefinder h3,.vuefinder h4,.vuefinder h5,.vuefinder h6{font-size:inherit;font-weight:inherit}.vuefinder a{color:inherit;text-decoration:inherit}.vuefinder b,.vuefinder strong{font-weight:bolder}.vuefinder code,.vuefinder kbd,.vuefinder samp,.vuefinder 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,.vuefinder 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,.vuefinder input,.vuefinder optgroup,.vuefinder select,.vuefinder 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,.vuefinder select{text-transform:none}.vuefinder button,.vuefinder [type=button],.vuefinder [type=reset],.vuefinder [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,.vuefinder ::-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,.vuefinder dl,.vuefinder dd,.vuefinder h1,.vuefinder h2,.vuefinder h3,.vuefinder h4,.vuefinder h5,.vuefinder h6,.vuefinder hr,.vuefinder figure,.vuefinder p,.vuefinder pre{margin:0}.vuefinder fieldset{margin:0;padding:0}.vuefinder legend{padding:0}.vuefinder ol,.vuefinder ul,.vuefinder menu{list-style:none;margin:0;padding:0}.vuefinder dialog{padding:0}.vuefinder textarea{resize:vertical}.vuefinder input::-moz-placeholder,.vuefinder textarea::-moz-placeholder{opacity:1;color:#9ca3af}.vuefinder input::placeholder,.vuefinder textarea::placeholder{opacity:1;color:#9ca3af}.vuefinder button,.vuefinder [role=button]{cursor:pointer}.vuefinder :disabled{cursor:default}.vuefinder img,.vuefinder svg,.vuefinder video,.vuefinder canvas,.vuefinder audio,.vuefinder iframe,.vuefinder embed,.vuefinder object{display:block;vertical-align:middle}.vuefinder img,.vuefinder 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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.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 .vuefinder.dark{color-scheme:dark}.vuefinder .fade-enter-active,.vuefinder .fade-leave-active{transition:opacity .2s ease}.vuefinder .fade-enter-from,.vuefinder .fade-leave-to{opacity:0}.vuefinder .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 .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 .vf-btn{margin-left:.25rem;margin-right:.25rem;width:auto;font-size:.875rem;line-height:1.25rem}}.vuefinder .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 .vf-btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder .vf-btn-primary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.vuefinder .vf-btn-primary:is(.dark *){--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 .vf-btn-primary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder .vf-btn-primary.disabled:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.vuefinder .vf-btn-primary.disabled:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .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 .vf-btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder .vf-btn-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.vuefinder .vf-btn-secondary:is(.dark *){--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 .vf-btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder .vf-btn-secondary.disabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder .vf-btn-secondary.disabled:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .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 .vf-btn-danger:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.vuefinder .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 .vf-btn-danger:is(.dark *){--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 .vf-btn-danger:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.vuefinder .disabled{cursor:not-allowed;opacity:.5}.vuefinder .vf-scrollbar::-webkit-scrollbar{width:12px}.vuefinder .vf-scrollbar::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar:is(.dark *)::-webkit-scrollbar-track-piece{background-color:#0f172a80}.vuefinder .vf-scrollbar::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar::-webkit-scrollbar-corner{background-color:transparent}.vuefinder .vf-explorer-scrollbar::-webkit-scrollbar{width:12px}.vuefinder .vf-explorer-scrollbar::-webkit-scrollbar-track-piece,:is(.vuefinder .vf-explorer-scrollbar)::-webkit-scrollbar-thumb,:is(.vuefinder .vf-explorer-scrollbar)::-webkit-scrollbar-thumb:hover,:is(.vuefinder .vf-explorer-scrollbar)::-webkit-scrollbar-corner{background-color:transparent}.vuefinder .vuefinder__default-preview{display:flex;flex-direction:column}.vuefinder .vuefinder__default-preview__header{margin-bottom:.5rem;display:flex}.vuefinder .vuefinder__default-preview__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__default-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview{display:flex;flex-direction:column}.vuefinder .vuefinder__image-preview__header{margin-bottom:.5rem;display:flex;align-items:center}.vuefinder .vuefinder__image-preview__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview__actions{margin-left:auto;display:flex;align-items:center}.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button){margin-left:.25rem;border-radius:.25rem;border-width:1px;border-color:transparent;background-color:#1d4ed8bf;padding:.25rem .5rem;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--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(.vuefinder .vuefinder__image-preview__crop-button:hover){--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button:hover:is(.dark *)){background-color:#37415180}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button){margin-left:.75rem;width:auto;font-size:.875rem;line-height:1.25rem}}.vuefinder :is(.vuefinder .vuefinder__image-preview__edit-button){margin-left:.25rem;padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview__image-container{display:flex;width:100%;justify-content:center}.vuefinder :is(.vuefinder .vuefinder__image-preview__image){max-height:50vh;max-width:50vh}.vuefinder .vuefinder__audio-preview__title{margin-bottom:.5rem;font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__audio-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__audio-preview__audio){width:100%}.vuefinder .vuefinder__pdf-preview__title{margin-bottom:.5rem;font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__pdf-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__pdf-preview__object){height:60vh}.vuefinder :is(.vuefinder .vuefinder__pdf-preview__iframe){border-width:0px}.vuefinder .vuefinder__text-preview{display:flex;flex-direction:column}.vuefinder .vuefinder__text-preview__header{margin-bottom:.5rem;display:flex;align-items:center}.vuefinder .vuefinder__text-preview__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__text-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__text-preview__actions{margin-left:auto;display:flex;align-items:center}.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button){margin-left:.25rem;border-radius:.25rem;border-width:1px;border-color:transparent;background-color:#1d4ed8bf;padding:.25rem .5rem;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--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(.vuefinder .vuefinder__text-preview__save-button:hover){--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button:hover:is(.dark *)){background-color:#37415180}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button){margin-left:.75rem;width:auto;font-size:.875rem;line-height:1.25rem}}.vuefinder :is(.vuefinder .vuefinder__text-preview__edit-button){margin-left:.25rem;padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder .vuefinder__text-preview__content{max-height:60vh;min-height:200px;overflow:auto;white-space:pre-wrap;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));padding:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}.vuefinder .vuefinder__text-preview__content:is(.dark *){border-color:#37415180;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea){max-height:60vh;min-height:200px;width:100%;border-radius:.25rem;padding:.5rem}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea *:is(.dark *))::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea *:is(.dark *))::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:is(.dark *))::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:is(.dark *))::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__video-preview__title{margin-bottom:.5rem;font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__video-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__video-preview__video){aspect-ratio:16 / 9;width:100%}.vuefinder .vuefinder__action-message{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity));transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s;transition-timing-function:cubic-bezier(0,0,.2,1)}.vuefinder .vuefinder__action-message:is(.dark *){--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.vuefinder .vuefinder__action-message--hidden{opacity:0}.vuefinder .vuefinder__breadcrumb__container{display:flex;flex-grow:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center}.vuefinder :is(.vuefinder__breadcrumb__container>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__breadcrumb__container{border-top-width:1px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity));padding:.375rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__breadcrumb__container:is(.dark *){border-color:#37415180;--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__toggle-tree{height:1.5rem;width:1.5rem;cursor:pointer;border-radius:.25rem;padding:.125rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__toggle-tree--active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__toggle-tree--active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active{cursor:pointer;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active:hover{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--inactive{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--inactive:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__search-container{margin-left:.5rem;display:flex;width:100%;align-items:center;overflow:hidden;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.25rem}.vuefinder .vuefinder__breadcrumb__search-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__list{display:flex;line-height:1.5rem}.vuefinder .vuefinder__breadcrumb__hidden-list{display:flex}.vuefinder .vuefinder__breadcrumb__separator{margin-left:.125rem;margin-right:.125rem;--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__separator:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle{cursor:pointer;border-radius:.25rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle:is(.dark *){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle-icon{pointer-events:none;padding-left:.25rem;padding-right:.25rem}.vuefinder .vuefinder__breadcrumb__visible-list{display:flex;width:100%;overflow:hidden;line-height:1.5rem}.vuefinder .vuefinder__breadcrumb__item{cursor:pointer;white-space:nowrap;border-radius:.25rem;padding:.25rem .375rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__item:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__item:is(.dark *){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__item:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__search-mode{position:relative;margin-left:.5rem;display:flex;width:100%;align-items:center;justify-content:space-between;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.25rem}.vuefinder .vuefinder__breadcrumb__search-mode:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__search-input{width:100%;border-width:0px;background-color:transparent;padding-left:.25rem;padding-right:.25rem;padding-bottom:0;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity));outline-width:0px;--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 .vuefinder__breadcrumb__search-input:focus{border-color:transparent;--tw-ring-color: transparent}.vuefinder .vuefinder__breadcrumb__search-input:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__search-input:focus:is(.dark *){border-color:transparent;--tw-ring-color: transparent}.vuefinder .vuefinder__breadcrumb__hidden-dropdown{position:absolute;top:65px;left:90px;z-index:30;margin-left:-.375rem;margin-right:-.375rem;margin-top:.25rem;max-width:20rem;overflow-y:auto;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity));--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 .vuefinder__breadcrumb__hidden-dropdown:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}@media (min-width: 768px){.vuefinder .vuefinder__breadcrumb__hidden-dropdown{top:75px}}.vuefinder .vuefinder__breadcrumb__hidden-item{cursor:pointer;align-items:center;white-space:nowrap;padding:.125rem .5rem}.vuefinder .vuefinder__breadcrumb__hidden-item:hover{background-color:#9ca3af33}.vuefinder .vuefinder__breadcrumb__hidden-item-content{pointer-events:none;display:flex}.vuefinder :is(.vuefinder .vuefinder__breadcrumb__hidden-item-icon){height:1.25rem;width:1.25rem}.vuefinder :is(.vuefinder .vuefinder__breadcrumb__hidden-item-text){display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis}.vuefinder .vuefinder__context-menu{position:absolute;z-index:30;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:.125rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity));--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 .vuefinder__context-menu:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__context-menu__item{cursor:pointer}.vuefinder .vuefinder__context-menu__item:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity))}.vuefinder .vuefinder__context-menu__item:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__context-menu__link{display:block;padding:.5rem .75rem .5rem .5rem}.vuefinder .vuefinder__context-menu__action{padding:.375rem .75rem .375rem .5rem}.vuefinder .vuefinder__explorer__container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}.vuefinder .vuefinder__explorer__header{display:grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;grid-template-columns:repeat(12,minmax(0,1fr))}.vuefinder :is(.vuefinder__explorer__header>:not([hidden])~:not([hidden])){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.vuefinder .vuefinder__explorer__header{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__explorer__header:is(.dark *){--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))}.vuefinder .vuefinder__explorer__sort-button{cursor:pointer}.vuefinder .vuefinder__explorer__sort-button--name{grid-column:span 7 / span 7}.vuefinder .vuefinder__explorer__sort-button--size{grid-column:span 2 / span 2;justify-content:center}.vuefinder .vuefinder__explorer__sort-button--date{grid-column:span 3 / span 3;justify-content:center}.vuefinder .vuefinder__explorer__sort-button--path{grid-column:span 5 / span 5;justify-content:center}.vuefinder .vuefinder__explorer__drag-item,.vuefinder .vuefinder__explorer__scrollbar-container{position:relative}.vuefinder .vuefinder__explorer__scrollbar{pointer-events:none;width:1.25rem;background-color:transparent}.vuefinder .vuefinder__explorer__selector-area{z-index:0;height:100%;width:100%;overflow-y:auto;padding:.25rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__explorer__item-list-content{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:center}.vuefinder .vuefinder__explorer__item-list-name{grid-column:span 7 / span 7;display:flex;align-items:center}.vuefinder .vuefinder__explorer__item-name,:is(.vuefinder .vuefinder__explorer__item-path){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vuefinder .vuefinder__explorer__item-size{grid-column:span 2 / span 2;text-align:center}.vuefinder .vuefinder__explorer__item-date{grid-column:span 3 / span 3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:.25rem;padding-right:.25rem}@media (min-width: 768px){.vuefinder .vuefinder__explorer__item-date{padding-left:.75rem;padding-right:.75rem}}.vuefinder .vuefinder__explorer__item-grid-content{position:relative}.vuefinder :is(.vuefinder .vuefinder__explorer__item-thumbnail){margin:auto;height:2.5rem}@media (min-width: 768px){.vuefinder :is(.vuefinder .vuefinder__explorer__item-thumbnail){height:3rem}}.vuefinder :is(.vuefinder .vuefinder__explorer__item-extension){position:absolute;top:50%;display:none;width:100%;text-align:center;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}@media (min-width: 768px){.vuefinder :is(.vuefinder .vuefinder__explorer__item-extension){display:block}}.vuefinder .vuefinder__explorer__item-title{word-break:break-all}.vuefinder .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}.vuefinder .vf-explorer-selected:is(.dark *){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}.vuefinder .vf-item-list{margin-top:.125rem;margin-bottom:.125rem;display:grid;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;grid-template-columns:repeat(1,minmax(0,1fr));border-width:1px;border-color:transparent}.vuefinder .vf-item-list:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder .vf-item-list:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vf-item-grid{margin:.25rem;display:inline-flex;height:5rem;width:5.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;justify-content:center;border-width:1px;border-color:transparent;text-align:center}.vuefinder .vf-item-grid:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder .vf-item-grid:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}@media (min-width: 768px){.vuefinder .vf-item-grid{width:6rem}}.vuefinder .vf-explorer-scrollbar-container{top:33px;height:calc(100% - 33px);pointer-events:none;position:absolute;right:0;z-index:10}.vuefinder .vf-explorer-scrollbar-container.grid-view:not(.search-active){top:0;height:100%}@media (max-width: 640px){.vuefinder .vf-explorer-scrollbar-container{top:33px;height:calc(100% - 33px)}.vuefinder .vf-explorer-scrollbar-container.grid-view:not(.search-active){top:0;height:100%}}.vuefinder .vuefinder__drag-item__container{position:absolute;top:-24rem;z-index:-50}.vuefinder .vuefinder__drag-item__count{position:absolute;top:1rem;right:-2rem;z-index:20;padding:.25rem;text-align:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.vuefinder .vuefinder__drag-item__count:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}@media (min-width: 768px){.vuefinder .vuefinder__drag-item__count{top:1.25rem;right:-2.4rem}}.vuefinder .vuefinder__folder-indicator{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__folder-indicator--icon{cursor:pointer}.vuefinder .vuefinder__folder-indicator--minus{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__folder-indicator--plus{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__folder-loader-indicator{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__folder-loader-indicator--loading{padding:.25rem}.vuefinder .vuefinder__folder-loader-indicator--icon{cursor:pointer}.vuefinder .vuefinder__folder-loader-indicator--minus{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__folder-loader-indicator--plus{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__item{position:relative}.vuefinder .vuefinder__item--pinned{position:absolute;top:0;right:0;--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity))}.vuefinder .vuefinder__item-icon--small{height:1.25rem;width:1.25rem}.vuefinder .vuefinder__item-icon--large{margin:auto;height:2.5rem;width:2.5rem}@media (min-width: 768px){.vuefinder .vuefinder__item-icon--large{height:3rem;width:3rem}}.vuefinder .vuefinder__message{margin-top:.5rem;display:flex;word-break:break-all;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__message:is(.dark *){opacity:.75}.vuefinder .vuefinder__message--error{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder .vuefinder__message--success{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.vuefinder .vuefinder__message__close{margin-left:auto;cursor:pointer}.vuefinder .vuefinder__message__icon{height:1.25rem;width:1.25rem}.vuefinder .vuefinder__status-bar__wrapper{display:flex;flex-grow:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;justify-content:space-between;border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));padding:.25rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__status-bar__wrapper:is(.dark *){border-color:#37415180}.vuefinder .vuefinder__status-bar__storage{display:flex;align-items:center;line-height:1.25rem}.vuefinder .vuefinder__status-bar__storage-container{display:flex;align-items:center;border-radius:.25rem;border-width:1px;line-height:1.25rem}.vuefinder .vuefinder__status-bar__storage-container:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__status-bar__storage-icon{pointer-events:none;z-index:1}.vuefinder .vuefinder__status-bar__storage-select{cursor:pointer;border-radius:.25rem;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-top:.125rem;padding-bottom:.125rem;font-size:.75rem;line-height:1rem;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.vuefinder .vuefinder__status-bar__storage-select:focus{outline-width:0px}.vuefinder .vuefinder__status-bar__storage-select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.vuefinder .vuefinder__status-bar__info{margin-left:.75rem}.vuefinder .vuefinder__status-bar__selected-count{margin-left:.25rem}.vuefinder .vuefinder__status-bar__actions{display:flex;align-items:center;justify-content:flex-end;line-height:1.25rem}.vuefinder :is(.vuefinder .vuefinder__status-bar__about){margin-right:.25rem}.vuefinder .vuefinder__treeview__overlay{z-index:1;height:100%;width:100%;background-color:#d1d5db1a}.vuefinder .vuefinder__treeview__overlay:is(.dark *){background-color:#3741511a}.vuefinder .vuefinder__treeview__backdrop{position:absolute;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}@media (min-width: 768px){.vuefinder .vuefinder__treeview__backdrop{display:none}}.vuefinder :is(.vuefinder .vuefinder__treeview__container){position:absolute;z-index:1;height:100%;flex-shrink:0;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:width;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.vuefinder :is(.vuefinder .vuefinder__treeview__container:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(36 47 65 / var(--tw-bg-opacity))}@media (min-width: 768px){.vuefinder :is(.vuefinder .vuefinder__treeview__container){position:relative;height:auto}}.vuefinder .vuefinder__treeview__scroll{height:100%;border-right-width:1px;padding-bottom:1rem}.vuefinder .vuefinder__treeview__scroll:is(.dark *){border-color:#4b556380}.vuefinder .vuefinder__treeview__header{position:sticky;left:0}.vuefinder .vuefinder__treeview__header:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder .vuefinder__treeview__pinned-toggle{display:flex;cursor:pointer;align-items:center;justify-content:space-between;border-bottom-width:1px;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));padding:.375rem .5rem .375rem .25rem;font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-toggle:is(.dark *){--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(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-label{display:flex;align-items:center}.vuefinder :is(.vuefinder__treeview__pinned-label>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__treeview__pin-icon{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-list{margin-top:.25rem;margin-bottom:.25rem;display:block}.vuefinder .vuefinder__treeview__pinned-item{display:flex;justify-content:space-between;padding:.125rem .5rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__treeview__pinned-folder{display:flex;cursor:pointer;border-radius:.25rem}.vuefinder .vuefinder__treeview__pinned-folder:hover{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-folder:hover:is(.dark *){color:#bae6fd80}.vuefinder .vuefinder__treeview__folder-icon,.vuefinder .vuefinder__treeview__open-folder-icon{height:1.25rem;width:1.25rem}.vuefinder .vuefinder__treeview__folder-name{text-wrap:nowrap}.vuefinder .vuefinder__treeview__folder-name--active{text-decoration-line:underline;text-decoration-color:#93c5fd}.vuefinder .vuefinder__treeview__folder-name--active:is(.dark *){text-decoration-color:#9ca3af}.vuefinder .vuefinder__treeview__remove-favorite{cursor:pointer}.vuefinder .vuefinder__treeview__remove-icon{padding:.125rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__remove-icon:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__remove-icon:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__remove-icon:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__no-pinned{padding:.25rem;text-align:center;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__treeview__storage{position:sticky;left:0}.vuefinder .vuefinder__treeview__resize-handle{position:absolute;top:0;right:-.125rem;height:100%;width:.25rem;cursor:ew-resize;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.vuefinder .vuefinder__treeview__resize-handle:hover{background-color:#4755691a}.vuefinder .vuefinder__treeview__resize-handle:hover:is(.dark *){background-color:#cbd5e11a}.vuefinder .vuefinder__treesubfolderlist__container{display:block}.vuefinder .vuefinder__treesubfolderlist__item{display:flex;flex-direction:column}.vuefinder :is(.vuefinder__treesubfolderlist__item>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__treesubfolderlist__item{padding-top:.125rem;padding-bottom:.125rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__treesubfolderlist__item-content{display:flex;border-radius:.25rem}.vuefinder .vuefinder__treesubfolderlist__item-content:hover{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity))}.vuefinder .vuefinder__treesubfolderlist__item-content:hover:is(.dark *){color:#bae6fd80}.vuefinder .vuefinder__treesubfolderlist__item-toggle{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__treesubfolderlist__item-link{display:flex;cursor:pointer}.vuefinder .vuefinder__treesubfolderlist__item-icon{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__treesubfolderlist__item-text{text-wrap:nowrap;padding-right:1rem}.vuefinder .vuefinder__treesubfolderlist__item-text--active{text-decoration-line:underline;text-decoration-color:#93c5fd}.vuefinder .vuefinder__treesubfolderlist__item-text--active:is(.dark *){text-decoration-color:#9ca3af}.vuefinder .vuefinder__treesubfolderlist__subfolder{padding-left:1rem}.vuefinder .vuefinder__treestorageitem__header{display:flex;cursor:pointer;justify-content:space-between;border-bottom-width:1px;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));padding:.375rem .25rem;font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__header:is(.dark *){--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(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__info{display:flex;flex:1 1 0%;align-items:center}.vuefinder :is(.vuefinder__treestorageitem__info>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__treestorageitem__info--active{font-weight:700;color:#374151cc}.vuefinder .vuefinder__treestorageitem__info--active:is(.dark *){color:#d1d5dbcc}.vuefinder .vuefinder__treestorageitem__icon{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__treestorageitem__icon--active{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__icon--active:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__loader{pointer-events:none;padding-right:.25rem}.vuefinder .vuefinder__treestorageitem__subfolder{margin-top:.25rem;margin-bottom:.25rem;overflow-x:auto}.vuefinder .vuefinder__toast{bottom:0;left:50%;z-index:10;display:flex;max-width:-moz-fit-content;max-width:fit-content;--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));flex-direction:column}.vuefinder .vuefinder__toast--fixed{position:fixed}.vuefinder .vuefinder__toast--absolute{position:absolute}.vuefinder .vuefinder__toast__message{margin-left:auto;margin-right:auto;margin-top:.125rem;margin-bottom:.125rem;display:inline-block;min-width:-moz-max-content;min-width:max-content;cursor:pointer;border-radius:.25rem;border-width:1px;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));padding:.125rem .5rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__toast__message:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__toast__message{font-size:.875rem;line-height:1.25rem}}.vuefinder .vuefinder__toast-item--enter-active{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:1s}.vuefinder .vuefinder__toast-item--leave-active{opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:1s}.vuefinder .vuefinder__toast-item--leave-to{opacity:0}.vuefinder .vuefinder__toolbar{display:flex;flex-grow:0;align-items:center;justify-content:space-between;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));padding-top:.25rem;padding-bottom:.25rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__toolbar__actions,.vuefinder .vuefinder__toolbar__search-results{display:flex;text-align:center}.vuefinder .vuefinder__toolbar__search-text{padding-left:.5rem}.vuefinder .vuefinder__toolbar__search-query{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__toolbar__search-query:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__toolbar__controls{display:flex;align-items:center;justify-content:flex-end;text-align:center}.vuefinder .vuefinder__toolbar__control{margin-left:.375rem;margin-right:.375rem}.vuefinder .vf-sort-button{display:flex;align-items:center;--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));padding:.25rem;line-height:1.5rem}.vuefinder .vf-sort-button:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .vf-sort-button:is(.dark *){--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))}.vuefinder .vf-sort-button:hover:is(.dark *){background-color:#3741511a}.vuefinder .vf-toolbar-icon{cursor:pointer;stroke:#6b7280}.vuefinder .vf-toolbar-icon:hover{stroke:#0e7490}.vuefinder .vf-toolbar-icon:is(.dark *){stroke:#9ca3af}.vuefinder .vf-toolbar-icon:hover:is(.dark *){stroke:#d1d5db}.vuefinder .vf-toolbar-icon-disabled{cursor:not-allowed;stroke:#e5e7eb}.vuefinder .vf-toolbar-icon-disabled:is(.dark *){stroke:#374151}.vuefinder .vuefinder__main__fixed{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;width:100vw}.vuefinder .vuefinder__main__relative{position:relative;resize:vertical;border-radius:.25rem}.vuefinder :is(.vuefinder .vuefinder__main__container){display:flex;min-height:11rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-direction:column;overflow:hidden;border-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / 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(.vuefinder .vuefinder__main__container:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.vuefinder .vuefinder__main__content{position:relative;display:flex;height:100%;overflow:hidden}.vuefinder .vuefinder__modal-layout{position:relative;z-index:30}.vuefinder .vuefinder__modal-layout__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgb(107 114 128 / var(--tw-bg-opacity));--tw-bg-opacity: .75;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder .vuefinder__modal-layout__overlay:is(.dark *){background-color:rgb(75 85 99 / var(--tw-bg-opacity));--tw-bg-opacity: .75}.vuefinder .vuefinder__modal-layout__container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;overflow:hidden}.vuefinder .vuefinder__modal-layout__wrapper{display:flex;min-height:100%;align-items:flex-end;justify-content:center;padding:1rem;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__wrapper{align-items:center;padding:0}}.vuefinder .vuefinder__modal-layout__body{position:relative;width:100%;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));overflow:hidden;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));text-align:left;--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);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder .vuefinder__modal-layout__body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__body{margin-top:2rem;margin-bottom:2rem;max-width:56rem}}@media (min-width: 768px){.vuefinder .vuefinder__modal-layout__body{max-width:42rem}}@media (min-width: 1024px){.vuefinder .vuefinder__modal-layout__body{max-width:48rem}}@media (min-width: 1280px){.vuefinder .vuefinder__modal-layout__body{max-width:48rem}}.vuefinder .vuefinder__modal-layout__content{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.25rem 1rem 1rem}.vuefinder .vuefinder__modal-layout__content:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__content{padding:1.5rem 1.5rem 1rem}}.vuefinder .vuefinder__modal-layout__footer{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));padding:.75rem 1rem}.vuefinder .vuefinder__modal-layout__footer:is(.dark *){border-top-width:1px;--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))}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__footer{display:flex;flex-direction:row-reverse;padding-left:1.5rem;padding-right:1.5rem}}.vuefinder .vuefinder__about-modal__content{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (min-width: 640px){.vuefinder .vuefinder__about-modal__content{align-items:flex-start}}.vuefinder .vuefinder__about-modal__main{margin-top:.75rem;width:100%}@media (min-width: 640px){.vuefinder .vuefinder__about-modal__main{margin-top:0;text-align:left}}.vuefinder .vuefinder__about-modal__tabs{display:flex;overflow:auto}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab){padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--active){border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--active:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--inactive){border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--inactive:hover){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--inactive:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__tab-content{margin-top:1rem}.vuefinder .vuefinder__about-modal__description{margin:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__link{margin-top:.5rem;display:block;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__link:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__settings{margin-top:.75rem;text-align:left}.vuefinder .vuefinder__about-modal__setting{position:relative;display:block;align-items:center;-moz-column-gap:.75rem;column-gap:.75rem}.vuefinder .vuefinder__about-modal__setting-input{display:flex;height:1.5rem;align-items:center}.vuefinder .vuefinder__about-modal__setting-label{display:block;display:flex;flex:1 1 0%;font-size:.875rem;line-height:1.25rem}.vuefinder :is(.vuefinder .vuefinder__about-modal__label){display:flex;width:100%;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__label:is(.dark *)){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__checkbox){height:1rem;width:1rem;border-radius:.25rem;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__checkbox:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__checkbox:is(.dark *)){accent-color:#94a3b8}.vuefinder :is(.vuefinder .vuefinder__about-modal__select){width:100%;flex-shrink:0;border-radius:.25rem;border-width:1px;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__select:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__about-modal__select){width:50%}}.vuefinder :is(.vuefinder__about-modal__shortcuts>: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))}@media (min-width: 640px){.vuefinder .vuefinder__about-modal__shortcuts{width:50%}}.vuefinder .vuefinder__about-modal__shortcut{display:flex;justify-content:space-between;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__shortcut:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__archive-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__archive-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__archive-modal__form{margin-top:.5rem}.vuefinder .vuefinder__archive-modal__files{margin-bottom:.25rem;overflow:auto;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity));max-height:200px}.vuefinder .vuefinder__archive-modal__file{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__archive-modal__file:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__archive-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__archive-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__archive-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__archive-modal__file-name{margin-left:.375rem}.vuefinder :is(.vuefinder .vuefinder__archive-modal__input){margin-top:.25rem;margin-bottom:.25rem;width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__archive-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__archive-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__delete-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__delete-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__delete-modal__form{margin-top:.5rem}.vuefinder .vuefinder__delete-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__files{margin-bottom:.25rem;overflow:auto;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity));max-height:200px}.vuefinder .vuefinder__delete-modal__file{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__file:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__delete-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__delete-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__delete-modal__file-name{margin-left:.375rem}.vuefinder .vuefinder__delete-modal__warning{margin:auto;text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__warning:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity))}.vuefinder .vuefinder__modal-header{margin-top:.25rem;margin-bottom:.25rem;display:flex;align-items:center}.vuefinder :is(.vuefinder__modal-header>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__modal-header__icon-container{display:flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.vuefinder .vuefinder__modal-header__icon-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__modal-header__icon-container{margin-left:0;margin-right:0;height:2.5rem;width:2.5rem}}.vuefinder :is(.vuefinder .vuefinder__modal-header__icon){height:1.5rem;width:1.5rem;stroke:#2563eb;padding:.125rem}.vuefinder :is(.vuefinder .vuefinder__modal-header__icon:is(.dark *)){stroke:#dbeafe}.vuefinder .vuefinder__modal-header__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__modal-header__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__message-modal__content{display:flex;align-items:flex-start}}.vuefinder .vuefinder__message-modal__icon-container{margin-left:auto;margin-right:auto;display:flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.vuefinder .vuefinder__message-modal__icon-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__message-modal__icon-container{margin-left:0;margin-right:0;height:2.5rem;width:2.5rem}}.vuefinder :is(.vuefinder .vuefinder__message-modal__icon){height:1.5rem;width:1.5rem;stroke:#2563eb}.vuefinder :is(.vuefinder .vuefinder__message-modal__icon:is(.dark *)){stroke:#dbeafe}.vuefinder .vuefinder__message-modal__text{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__message-modal__text{margin-top:0;text-align:left}}.vuefinder .vuefinder__message-modal__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__message-modal__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__message-modal__message{margin-top:.5rem}.vuefinder .vuefinder__message-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__move-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__move-modal__description{padding-bottom:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__files{max-height:200px;overflow-y:auto;text-align:left}.vuefinder .vuefinder__move-modal__file{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__file:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__move-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__move-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__move-modal__file-name{margin-left:.375rem}.vuefinder .vuefinder__move-modal__target-title{margin-top:.75rem;font-size:.75rem;line-height:1rem;font-weight:700;letter-spacing:.05em;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-title:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-directory{display:flex;border-radius:.25rem;border-width:1px;padding:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-directory:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-path{margin-left:.375rem;overflow:auto}.vuefinder .vuefinder__move-modal__selected-items{margin:.25rem;margin-right:auto;align-self:center;font-size:.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__selected-items:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__new-file-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__new-file-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__new-file-modal__form{margin-top:.5rem}.vuefinder .vuefinder__new-file-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-file-modal__input){width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__new-file-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-file-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__new-folder-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__new-folder-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__new-folder-modal__form{margin-top:.5rem}.vuefinder .vuefinder__new-folder-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-folder-modal__input){width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__new-folder-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-folder-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__preview-modal__content{margin-top:.75rem;width:100%}@media (min-width: 640px){.vuefinder .vuefinder__preview-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__preview-modal__loading{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__loading:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__loading-indicator{display:flex;line-height:1.25rem}.vuefinder :is(.vuefinder .vuefinder__preview-modal__spinner){margin-left:-.25rem;margin-right:.75rem;height:1.25rem;width:1.25rem}.vuefinder :is(.vuefinder .vuefinder__preview-modal__spinner){animation:spin 1s linear infinite;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__spinner-circle{stroke:#1e3a8a;opacity:.25}.vuefinder .vuefinder__preview-modal__spinner-circle:is(.dark *){stroke:#dbeafe}.vuefinder .vuefinder__preview-modal__spinner-path{opacity:.75}.vuefinder .vuefinder__preview-modal__details{display:flex;word-break:break-all;border-radius:.25rem;padding-top:.5rem;padding-bottom:.5rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__details:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__note{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__note:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__rename-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__rename-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__rename-modal__item{margin-top:.5rem}.vuefinder .vuefinder__rename-modal__item-info{display:flex;padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__rename-modal__item-info:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__rename-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__rename-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__rename-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__rename-modal__item-name{margin-left:.375rem}.vuefinder :is(.vuefinder .vuefinder__rename-modal__input){width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__rename-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__rename-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__unarchive-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__unarchive-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__unarchive-modal__items{margin-top:.5rem}.vuefinder .vuefinder__unarchive-modal__item{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__unarchive-modal__item:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__unarchive-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__unarchive-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__unarchive-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder :is(.vuefinder .vuefinder__unarchive-modal__icon--file){height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder .vuefinder__unarchive-modal__item-name{margin-left:.375rem}.vuefinder .vuefinder__unarchive-modal__info{margin-top:.25rem;margin-bottom:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__upload-modal__content{margin-top:0;text-align:left}}.vuefinder :is(.vuefinder .vuefinder__upload-modal__drop-area){margin-bottom:1rem;margin-top:.5rem;display:flex;height:120px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;border-radius:.25rem;border-width:2px;border-style:dashed;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__drop-area:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder .vuefinder__upload-modal__buttons{margin-bottom:.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__file-list{margin-bottom:.25rem;max-height:200px;overflow-y:auto;padding-right:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__file-entry{display:flex}.vuefinder .vuefinder__upload-modal__file-entry:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder .vuefinder__upload-modal__file-entry:hover:is(.dark *){--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 .vuefinder__upload-modal__file-icon{display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;cursor:default;border-radius:.25rem;border-width:1px;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__upload-modal__file-icon:is(.dark *){--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(249 250 251 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__file-icon-text{margin:auto;font-size:1rem;line-height:1.5rem}.vuefinder .vuefinder__upload-modal__file-info{margin-left:.25rem;height:-moz-fit-content;height:fit-content;width:100%}.vuefinder .vuefinder__upload-modal__file-name{text-align:left}.vuefinder .vuefinder__upload-modal__file-status{display:flex;word-break:break-all;text-align:left}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove){margin-left:auto;height:1.25rem;width:1.25rem;border-radius:.25rem;border-width:1px;font-size:1rem;line-height:1.5rem;font-weight:500;line-height:1}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:hover){--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:focus){outline:2px solid transparent;outline-offset:2px}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:hover:is(.dark *)){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove){font-size:.75rem;line-height:1rem}}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove.disabled){color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: .5}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove.disabled:disabled){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove-icon){height:1.25rem;width:1.25rem}.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}kbd{border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:600;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}kbd:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder .pointer-events-none{pointer-events:none}.vuefinder .visible{visibility:visible}.vuefinder .absolute{position:absolute}.vuefinder .relative{position:relative}.vuefinder .z-10{z-index:10}.vuefinder .m-auto{margin:auto}.vuefinder .mx-1\.5{margin-left:.375rem;margin-right:.375rem}.vuefinder .ml-auto{margin-left:auto}.vuefinder .ms-3{margin-inline-start:.75rem}.vuefinder .block{display:block}.vuefinder .flex{display:flex}.vuefinder .grid{display:grid}.vuefinder .\!hidden{display:none!important}.vuefinder .hidden{display:none}.vuefinder .h-5{height:1.25rem}.vuefinder .h-6{height:1.5rem}.vuefinder .w-5{width:1.25rem}.vuefinder .w-6{width:1.5rem}.vuefinder .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 .animate-spin{animation:spin 1s linear infinite}.vuefinder .cursor-pointer{cursor:pointer}.vuefinder .text-nowrap{text-wrap:nowrap}.vuefinder .break-all{word-break:break-all}.vuefinder .rounded{border-radius:.25rem}.vuefinder .border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity))}.vuefinder .border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.vuefinder .bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.vuefinder .bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.vuefinder .fill-gray-100{fill:#f3f4f6}.vuefinder .fill-sky-500{fill:#0ea5e9}.vuefinder .fill-white{fill:#fff}.vuefinder .stroke-blue-600{stroke:#2563eb}.vuefinder .stroke-blue-900{stroke:#1e3a8a}.vuefinder .stroke-gray-100\/50{stroke:#f3f4f680}.vuefinder .stroke-gray-400{stroke:#9ca3af}.vuefinder .stroke-neutral-500{stroke:#737373}.vuefinder .stroke-sky-500{stroke:#0ea5e9}.vuefinder .stroke-slate-500{stroke:#64748b}.vuefinder .p-0\.5{padding:.125rem}.vuefinder .p-1{padding:.25rem}.vuefinder .px-2{padding-left:.5rem;padding-right:.5rem}.vuefinder .py-0{padding-top:0;padding-bottom:0}.vuefinder .py-1{padding-top:.25rem;padding-bottom:.25rem}.vuefinder .py-2{padding-top:.5rem;padding-bottom:.5rem}.vuefinder .pl-2{padding-left:.5rem}.vuefinder .text-xs{font-size:.75rem;line-height:1rem}.vuefinder .font-bold{font-weight:700}.vuefinder .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.vuefinder .text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity))}.vuefinder .text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder .text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.vuefinder .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder .text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder .opacity-25{opacity:.25}.vuefinder .opacity-75{opacity:.75}.vuefinder .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 .transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder .transition-none{transition-property:none}.vuefinder .vf-theme-dark,.vuefinder .vf-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.vuefinder .vf-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.vuefinder .hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .hover\:bg-neutral-300:hover{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.vuefinder .dark\:border-red-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.vuefinder .dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .dark\:bg-slate-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vuefinder .dark\:fill-gray-400\/20:is(.dark *){fill:#9ca3af33}.vuefinder .dark\:fill-gray-700:is(.dark *){fill:#374151}.vuefinder .dark\:fill-neutral-300:is(.dark *){fill:#d4d4d4}.vuefinder .dark\:fill-slate-500:is(.dark *){fill:#64748b}.vuefinder .dark\:stroke-blue-100:is(.dark *){stroke:#dbeafe}.vuefinder .dark\:stroke-gray-400:is(.dark *){stroke:#9ca3af}.vuefinder .dark\:stroke-gray-600:is(.dark *){stroke:#4b5563}.vuefinder .dark\:stroke-slate-500:is(.dark *){stroke:#64748b}.vuefinder .dark\:stroke-slate-700\/50:is(.dark *){stroke:#33415580}.vuefinder .dark\:text-lime-300:is(.dark *){--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity))}.vuefinder .dark\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.vuefinder .dark\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder .dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.vuefinder .dark\:vf-theme-light:is(.dark *){box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px;--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.vuefinder .dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@media (min-width: 768px){.vuefinder .md\:block{display:block}.vuefinder .md\:hidden{display:none}.vuefinder .md\:h-12{height:3rem}.vuefinder .md\:h-8{height:2rem}.vuefinder .md\:w-12{width:3rem}.vuefinder .md\:w-8{width:2rem}} + */.os-size-observer,.os-size-observer-listener{scroll-behavior:auto!important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}[data-overlayscrollbars-initialize],[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;scroll-behavior:auto!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw: 0;--os-vah: 0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars],[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{overflow:hidden!important}[data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport~=measuring]{overflow:hidden!important;scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=overflowXVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-x:visible!important}[data-overlayscrollbars-viewport~=overflowXHidden]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=overflowXScroll]{overflow-x:scroll!important}[data-overlayscrollbars-viewport~=overflowYVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-y:visible!important}[data-overlayscrollbars-viewport~=overflowYHidden]{overflow-y:hidden!important}[data-overlayscrollbars-viewport~=overflowYScroll]{overflow-y:scroll!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{display:none!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}@property --os-scroll-percent{syntax: ""; inherits: true; initial-value: 0;}@property --os-viewport-percent{syntax: ""; inherits: true; initial-value: 0;}.os-scrollbar{--os-viewport-percent: 0;--os-scroll-percent: 0;--os-scroll-direction: 0;--os-scroll-percent-directional: calc( var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction) );contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translate(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type: size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{left:auto;transform:translate(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-vertical .os-scrollbar-handle{top:auto;transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{right:auto;left:0}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.vuefinder *,.vuefinder :before,.vuefinder :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.vuefinder :before,.vuefinder :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,.vuefinder h2,.vuefinder h3,.vuefinder h4,.vuefinder h5,.vuefinder h6{font-size:inherit;font-weight:inherit}.vuefinder a{color:inherit;text-decoration:inherit}.vuefinder b,.vuefinder strong{font-weight:bolder}.vuefinder code,.vuefinder kbd,.vuefinder samp,.vuefinder 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,.vuefinder 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,.vuefinder input,.vuefinder optgroup,.vuefinder select,.vuefinder 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,.vuefinder select{text-transform:none}.vuefinder button,.vuefinder [type=button],.vuefinder [type=reset],.vuefinder [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,.vuefinder ::-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,.vuefinder dl,.vuefinder dd,.vuefinder h1,.vuefinder h2,.vuefinder h3,.vuefinder h4,.vuefinder h5,.vuefinder h6,.vuefinder hr,.vuefinder figure,.vuefinder p,.vuefinder pre{margin:0}.vuefinder fieldset{margin:0;padding:0}.vuefinder legend{padding:0}.vuefinder ol,.vuefinder ul,.vuefinder menu{list-style:none;margin:0;padding:0}.vuefinder dialog{padding:0}.vuefinder textarea{resize:vertical}.vuefinder input::-moz-placeholder,.vuefinder textarea::-moz-placeholder{opacity:1;color:#9ca3af}.vuefinder input::placeholder,.vuefinder textarea::placeholder{opacity:1;color:#9ca3af}.vuefinder button,.vuefinder [role=button]{cursor:pointer}.vuefinder :disabled{cursor:default}.vuefinder img,.vuefinder svg,.vuefinder video,.vuefinder canvas,.vuefinder audio,.vuefinder iframe,.vuefinder embed,.vuefinder object{display:block;vertical-align:middle}.vuefinder img,.vuefinder video{max-width:100%;height:auto}.vuefinder [hidden]{display:none}.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 .vuefinder.dark{color-scheme:dark}.vuefinder .fade-enter-active,.vuefinder .fade-leave-active{transition:opacity .2s ease}.vuefinder .fade-enter-from,.vuefinder .fade-leave-to{opacity:0}.vuefinder .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 .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 .vf-btn{margin-left:.25rem;margin-right:.25rem;width:auto;font-size:.875rem;line-height:1.25rem}}.vuefinder .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 .vf-btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder .vf-btn-primary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.vuefinder .vf-btn-primary:is(.dark *){--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 .vf-btn-primary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder .vf-btn-primary.disabled:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.vuefinder .vf-btn-primary.disabled:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .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 .vf-btn-secondary:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder .vf-btn-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}.vuefinder .vf-btn-secondary:is(.dark *){--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 .vf-btn-secondary:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder .vf-btn-secondary.disabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.vuefinder .vf-btn-secondary.disabled:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .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 .vf-btn-danger:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.vuefinder .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 .vf-btn-danger:is(.dark *){--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 .vf-btn-danger:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.vuefinder .disabled{cursor:not-allowed;opacity:.5}.vuefinder .vf-scrollbar::-webkit-scrollbar{width:12px}.vuefinder .vf-scrollbar::-webkit-scrollbar-track-piece{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar:is(.dark *)::-webkit-scrollbar-track-piece{background-color:#0f172a80}.vuefinder .vf-scrollbar::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar:is(.dark *)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar:is(.dark *)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vuefinder .vf-scrollbar::-webkit-scrollbar-corner{background-color:transparent}.vuefinder .vf-explorer-scrollbar::-webkit-scrollbar{width:12px}.vuefinder .vf-explorer-scrollbar::-webkit-scrollbar-track-piece,:is(.vuefinder .vf-explorer-scrollbar)::-webkit-scrollbar-thumb,:is(.vuefinder .vf-explorer-scrollbar)::-webkit-scrollbar-thumb:hover,:is(.vuefinder .vf-explorer-scrollbar)::-webkit-scrollbar-corner{background-color:transparent}.vuefinder .vuefinder__default-preview{display:flex;flex-direction:column}.vuefinder .vuefinder__default-preview__header{margin-bottom:.5rem;display:flex}.vuefinder .vuefinder__default-preview__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__default-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview{display:flex;flex-direction:column}.vuefinder .vuefinder__image-preview__header{margin-bottom:.5rem;display:flex;align-items:center}.vuefinder .vuefinder__image-preview__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview__actions{margin-left:auto;display:flex;align-items:center}.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button){margin-left:.25rem;border-radius:.25rem;border-width:1px;border-color:transparent;background-color:#1d4ed8bf;padding:.25rem .5rem;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--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(.vuefinder .vuefinder__image-preview__crop-button:hover){--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button:hover:is(.dark *)){background-color:#37415180}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__image-preview__crop-button){margin-left:.75rem;width:auto;font-size:.875rem;line-height:1.25rem}}.vuefinder :is(.vuefinder .vuefinder__image-preview__edit-button){margin-left:.25rem;padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder .vuefinder__image-preview__image-container{display:flex;width:100%;justify-content:center}.vuefinder :is(.vuefinder .vuefinder__image-preview__image){max-height:50vh;max-width:50vh}.vuefinder .vuefinder__audio-preview__title{margin-bottom:.5rem;font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__audio-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__audio-preview__audio){width:100%}.vuefinder .vuefinder__pdf-preview__title{margin-bottom:.5rem;font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__pdf-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__pdf-preview__object){height:60vh}.vuefinder :is(.vuefinder .vuefinder__pdf-preview__iframe){border-width:0px}.vuefinder .vuefinder__text-preview{display:flex;flex-direction:column}.vuefinder .vuefinder__text-preview__header{margin-bottom:.5rem;display:flex;align-items:center}.vuefinder .vuefinder__text-preview__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__text-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__text-preview__actions{margin-left:auto;display:flex;align-items:center}.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button){margin-left:.25rem;border-radius:.25rem;border-width:1px;border-color:transparent;background-color:#1d4ed8bf;padding:.25rem .5rem;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));--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(.vuefinder .vuefinder__text-preview__save-button:hover){--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button:hover:is(.dark *)){background-color:#37415180}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__text-preview__save-button){margin-left:.75rem;width:auto;font-size:.875rem;line-height:1.25rem}}.vuefinder :is(.vuefinder .vuefinder__text-preview__edit-button){margin-left:.25rem;padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder .vuefinder__text-preview__content{max-height:60vh;min-height:200px;overflow:auto;white-space:pre-wrap;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));padding:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}.vuefinder .vuefinder__text-preview__content:is(.dark *){border-color:#37415180;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea){max-height:60vh;min-height:200px;width:100%;border-radius:.25rem;padding:.5rem}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea *:is(.dark *))::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea *:is(.dark *))::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:is(.dark *))::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:is(.dark *))::selection{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__text-preview__textarea:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__video-preview__title{margin-bottom:.5rem;font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__video-preview__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__video-preview__video){aspect-ratio:16 / 9;width:100%}.vuefinder .vuefinder__action-message{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity));transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s;transition-timing-function:cubic-bezier(0,0,.2,1)}.vuefinder .vuefinder__action-message:is(.dark *){--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.vuefinder .vuefinder__action-message--hidden{opacity:0}.vuefinder .vuefinder__breadcrumb__container{display:flex;flex-grow:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center}.vuefinder :is(.vuefinder__breadcrumb__container>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__breadcrumb__container{border-top-width:1px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity));padding:.375rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__breadcrumb__container:is(.dark *){border-color:#37415180;--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__toggle-tree{height:1.5rem;width:1.5rem;cursor:pointer;border-radius:.25rem;padding:.125rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__toggle-tree--active{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__toggle-tree--active:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active{cursor:pointer;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active:hover{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--active:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--inactive{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__go-up--inactive:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__search-container{margin-left:.5rem;display:flex;width:100%;align-items:center;overflow:hidden;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.25rem}.vuefinder .vuefinder__breadcrumb__search-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__list{display:flex;line-height:1.5rem}.vuefinder .vuefinder__breadcrumb__hidden-list{display:flex}.vuefinder .vuefinder__breadcrumb__separator{margin-left:.125rem;margin-right:.125rem;--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__separator:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle{cursor:pointer;border-radius:.25rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle:is(.dark *){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__hidden-toggle-icon{pointer-events:none;padding-left:.25rem;padding-right:.25rem}.vuefinder .vuefinder__breadcrumb__visible-list{display:flex;width:100%;overflow:hidden;line-height:1.5rem}.vuefinder .vuefinder__breadcrumb__item{cursor:pointer;white-space:nowrap;border-radius:.25rem;padding:.25rem .375rem;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__item:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__item:is(.dark *){--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__item:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__search-mode{position:relative;margin-left:.5rem;display:flex;width:100%;align-items:center;justify-content:space-between;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:.25rem}.vuefinder .vuefinder__breadcrumb__search-mode:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__breadcrumb__search-input{width:100%;border-width:0px;background-color:transparent;padding-left:.25rem;padding-right:.25rem;padding-bottom:0;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity));outline-width:0px;--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 .vuefinder__breadcrumb__search-input:focus{border-color:transparent;--tw-ring-color: transparent}.vuefinder .vuefinder__breadcrumb__search-input:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder .vuefinder__breadcrumb__search-input:focus:is(.dark *){border-color:transparent;--tw-ring-color: transparent}.vuefinder .vuefinder__breadcrumb__hidden-dropdown{position:absolute;top:65px;left:90px;z-index:30;margin-left:-.375rem;margin-right:-.375rem;margin-top:.25rem;max-width:20rem;overflow-y:auto;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity));--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 .vuefinder__breadcrumb__hidden-dropdown:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}@media (min-width: 768px){.vuefinder .vuefinder__breadcrumb__hidden-dropdown{top:75px}}.vuefinder .vuefinder__breadcrumb__hidden-item{cursor:pointer;align-items:center;white-space:nowrap;padding:.125rem .5rem}.vuefinder .vuefinder__breadcrumb__hidden-item:hover{background-color:#9ca3af33}.vuefinder .vuefinder__breadcrumb__hidden-item-content{pointer-events:none;display:flex}.vuefinder :is(.vuefinder .vuefinder__breadcrumb__hidden-item-icon){height:1.25rem;width:1.25rem}.vuefinder :is(.vuefinder .vuefinder__breadcrumb__hidden-item-text){display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis}.vuefinder .vuefinder__context-menu{position:absolute;z-index:30;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:.125rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity));--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 .vuefinder__context-menu:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__context-menu__item{cursor:pointer}.vuefinder .vuefinder__context-menu__item:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity))}.vuefinder .vuefinder__context-menu__item:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__context-menu__link{display:block;padding:.5rem .75rem .5rem .5rem}.vuefinder .vuefinder__context-menu__action{padding:.375rem .75rem .375rem .5rem}.vuefinder .vuefinder__explorer__container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}.vuefinder .vuefinder__explorer__header{display:grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;grid-template-columns:repeat(12,minmax(0,1fr))}.vuefinder :is(.vuefinder__explorer__header>:not([hidden])~:not([hidden])){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.vuefinder .vuefinder__explorer__header{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));padding-left:.25rem;padding-right:.25rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__explorer__header:is(.dark *){--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))}.vuefinder .vuefinder__explorer__sort-button{cursor:pointer}.vuefinder .vuefinder__explorer__sort-button--name{grid-column:span 7 / span 7}.vuefinder .vuefinder__explorer__sort-button--size{grid-column:span 2 / span 2;justify-content:center}.vuefinder .vuefinder__explorer__sort-button--date{grid-column:span 3 / span 3;justify-content:center}.vuefinder .vuefinder__explorer__sort-button--path{grid-column:span 5 / span 5;justify-content:center}.vuefinder .vuefinder__explorer__drag-item,.vuefinder .vuefinder__explorer__scrollbar-container{position:relative}.vuefinder .vuefinder__explorer__scrollbar{pointer-events:none;width:1.25rem;background-color:transparent}.vuefinder .vuefinder__explorer__selector-area{z-index:0;height:100%;width:100%;overflow-y:auto;padding:.25rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__explorer__item-list-content{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:center}.vuefinder .vuefinder__explorer__item-list-name{grid-column:span 7 / span 7;display:flex;align-items:center}.vuefinder .vuefinder__explorer__item-name,:is(.vuefinder .vuefinder__explorer__item-path){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vuefinder .vuefinder__explorer__item-size{grid-column:span 2 / span 2;text-align:center}.vuefinder .vuefinder__explorer__item-date{grid-column:span 3 / span 3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:.25rem;padding-right:.25rem}@media (min-width: 768px){.vuefinder .vuefinder__explorer__item-date{padding-left:.75rem;padding-right:.75rem}}.vuefinder .vuefinder__explorer__item-grid-content{position:relative}.vuefinder :is(.vuefinder .vuefinder__explorer__item-thumbnail){margin:auto;height:2.5rem}@media (min-width: 768px){.vuefinder :is(.vuefinder .vuefinder__explorer__item-thumbnail){height:3rem}}.vuefinder :is(.vuefinder .vuefinder__explorer__item-extension){position:absolute;top:50%;display:none;width:100%;text-align:center;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}@media (min-width: 768px){.vuefinder :is(.vuefinder .vuefinder__explorer__item-extension){display:block}}.vuefinder .vuefinder__explorer__item-title{word-break:break-all}.vuefinder .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}.vuefinder .vf-explorer-selected:is(.dark *){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}.vuefinder .vf-item-list{margin-top:.125rem;margin-bottom:.125rem;display:grid;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;grid-template-columns:repeat(1,minmax(0,1fr));border-width:1px;border-color:transparent}.vuefinder .vf-item-list:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder .vf-item-list:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vf-item-grid{margin:.25rem;display:inline-flex;height:5rem;width:5.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;justify-content:center;border-width:1px;border-color:transparent;text-align:center}.vuefinder .vf-item-grid:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.vuefinder .vf-item-grid:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}@media (min-width: 768px){.vuefinder .vf-item-grid{width:6rem}}.vuefinder .vf-explorer-scrollbar-container{top:33px;height:calc(100% - 33px);pointer-events:none;position:absolute;right:0;z-index:10}.vuefinder .vf-explorer-scrollbar-container.grid-view:not(.search-active){top:0;height:100%}@media (max-width: 640px){.vuefinder .vf-explorer-scrollbar-container{top:33px;height:calc(100% - 33px)}.vuefinder .vf-explorer-scrollbar-container.grid-view:not(.search-active){top:0;height:100%}}.vuefinder .vuefinder__drag-item__container{position:absolute;top:-24rem;z-index:-50}.vuefinder .vuefinder__drag-item__count{position:absolute;top:1rem;right:-2rem;z-index:20;padding:.25rem;text-align:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.vuefinder .vuefinder__drag-item__count:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}@media (min-width: 768px){.vuefinder .vuefinder__drag-item__count{top:1.25rem;right:-2.4rem}}.vuefinder .vuefinder__folder-indicator{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__folder-indicator--icon{cursor:pointer}.vuefinder .vuefinder__folder-indicator--minus{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__folder-indicator--plus{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__folder-loader-indicator{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__folder-loader-indicator--loading{padding:.25rem}.vuefinder .vuefinder__folder-loader-indicator--icon{cursor:pointer}.vuefinder .vuefinder__folder-loader-indicator--minus{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__folder-loader-indicator--plus{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__item{position:relative}.vuefinder .vuefinder__item--pinned{position:absolute;top:0;right:0;--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity))}.vuefinder .vuefinder__item-icon--small{height:1.25rem;width:1.25rem}.vuefinder .vuefinder__item-icon--large{margin:auto;height:2.5rem;width:2.5rem}@media (min-width: 768px){.vuefinder .vuefinder__item-icon--large{height:3rem;width:3rem}}.vuefinder .dark .vuefinder__linear-loader{--vuefinder__linear-loader-primary: #cbd5e1;--vuefinder__linear-loader-bg: #334155}.vuefinder .vuefinder__linear-loader{--vuefinder__linear-loader-primary: #0284c7;--vuefinder__linear-loader-bg: #7dd3fc;position:absolute;top:0;left:0;right:0;height:4px;--vuefinder__linear-loader-gradient: no-repeat linear-gradient(var(--vuefinder__linear-loader-primary) 0 0);background:var(--vuefinder__linear-loader-gradient),var(--vuefinder__linear-loader-gradient),var(--vuefinder__linear-loader-bg);background-size:60% 100%;animation:vuefinder__linear-loader_keyframes 3s infinite}@keyframes vuefinder__linear-loader_keyframes{0%{background-position:-150% 0,-150% 0}66%{background-position:250% 0,-150% 0}to{background-position:250% 0,250% 0}}.vuefinder .vuefinder__message{margin-top:.5rem;display:flex;word-break:break-all;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__message:is(.dark *){opacity:.75}.vuefinder .vuefinder__message--error{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder .vuefinder__message--success{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.vuefinder .vuefinder__message__close{margin-left:auto;cursor:pointer}.vuefinder .vuefinder__message__icon{height:1.25rem;width:1.25rem}.vuefinder .vuefinder__status-bar__wrapper{display:flex;flex-grow:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;justify-content:space-between;border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));padding:.25rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__status-bar__wrapper:is(.dark *){border-color:#37415180}.vuefinder .vuefinder__status-bar__storage{display:flex;align-items:center;line-height:1.25rem}.vuefinder .vuefinder__status-bar__storage-container{display:flex;align-items:center;border-radius:.25rem;border-width:1px;line-height:1.25rem}.vuefinder .vuefinder__status-bar__storage-container:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__status-bar__storage-icon{pointer-events:none;z-index:1}.vuefinder .vuefinder__status-bar__storage-select{cursor:pointer;border-radius:.25rem;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-top:.125rem;padding-bottom:.125rem;font-size:.75rem;line-height:1rem;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.vuefinder .vuefinder__status-bar__storage-select:focus{outline-width:0px}.vuefinder .vuefinder__status-bar__storage-select:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}.vuefinder .vuefinder__status-bar__info{margin-left:.75rem}.vuefinder .vuefinder__status-bar__selected-count{margin-left:.25rem}.vuefinder .vuefinder__status-bar__actions{display:flex;align-items:center;justify-content:flex-end;line-height:1.25rem}.vuefinder :is(.vuefinder .vuefinder__status-bar__about){margin-right:.25rem}.vuefinder .vuefinder__treeview__overlay{z-index:1;height:100%;width:100%;background-color:#d1d5db1a}.vuefinder .vuefinder__treeview__overlay:is(.dark *){background-color:#3741511a}.vuefinder .vuefinder__treeview__backdrop{position:absolute;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}@media (min-width: 768px){.vuefinder .vuefinder__treeview__backdrop{display:none}}.vuefinder :is(.vuefinder .vuefinder__treeview__container){position:absolute;z-index:1;height:100%;flex-shrink:0;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:width;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.vuefinder :is(.vuefinder .vuefinder__treeview__container:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(36 47 65 / var(--tw-bg-opacity))}@media (min-width: 768px){.vuefinder :is(.vuefinder .vuefinder__treeview__container){position:relative;height:auto}}.vuefinder .vuefinder__treeview__scroll{height:100%;border-right-width:1px;padding-bottom:1rem}.vuefinder .vuefinder__treeview__scroll:is(.dark *){border-color:#4b556380}.vuefinder .vuefinder__treeview__header{position:sticky;left:0}.vuefinder .vuefinder__treeview__header:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder .vuefinder__treeview__pinned-toggle{display:flex;cursor:pointer;align-items:center;justify-content:space-between;border-bottom-width:1px;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));padding:.375rem .5rem .375rem .25rem;font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-toggle:is(.dark *){--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(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-label{display:flex;align-items:center}.vuefinder :is(.vuefinder__treeview__pinned-label>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__treeview__pin-icon{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-list{margin-top:.25rem;margin-bottom:.25rem;display:block}.vuefinder .vuefinder__treeview__pinned-item{display:flex;justify-content:space-between;padding:.125rem .5rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__treeview__pinned-folder{display:flex;cursor:pointer;border-radius:.25rem}.vuefinder .vuefinder__treeview__pinned-folder:hover{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__pinned-folder:hover:is(.dark *){color:#bae6fd80}.vuefinder .vuefinder__treeview__folder-icon,.vuefinder .vuefinder__treeview__open-folder-icon{height:1.25rem;width:1.25rem}.vuefinder .vuefinder__treeview__folder-name{text-wrap:nowrap}.vuefinder .vuefinder__treeview__folder-name--active{text-decoration-line:underline;text-decoration-color:#93c5fd}.vuefinder .vuefinder__treeview__folder-name--active:is(.dark *){text-decoration-color:#9ca3af}.vuefinder .vuefinder__treeview__remove-favorite{cursor:pointer}.vuefinder .vuefinder__treeview__remove-icon{padding:.125rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__remove-icon:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__remove-icon:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__remove-icon:is(.dark *):hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treeview__no-pinned{padding:.25rem;text-align:center;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__treeview__storage{position:sticky;left:0}.vuefinder .vuefinder__treeview__resize-handle{position:absolute;top:0;right:-.125rem;height:100%;width:.25rem;cursor:ew-resize;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.vuefinder .vuefinder__treeview__resize-handle:hover{background-color:#4755691a}.vuefinder .vuefinder__treeview__resize-handle:hover:is(.dark *){background-color:#cbd5e11a}.vuefinder .vuefinder__treesubfolderlist__container{display:block}.vuefinder .vuefinder__treesubfolderlist__item{display:flex;flex-direction:column}.vuefinder :is(.vuefinder__treesubfolderlist__item>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__treesubfolderlist__item{padding-top:.125rem;padding-bottom:.125rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__treesubfolderlist__item-content{display:flex;border-radius:.25rem}.vuefinder .vuefinder__treesubfolderlist__item-content:hover{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity))}.vuefinder .vuefinder__treesubfolderlist__item-content:hover:is(.dark *){color:#bae6fd80}.vuefinder .vuefinder__treesubfolderlist__item-toggle{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__treesubfolderlist__item-link{display:flex;cursor:pointer}.vuefinder .vuefinder__treesubfolderlist__item-icon{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__treesubfolderlist__item-text{text-wrap:nowrap;padding-right:1rem}.vuefinder .vuefinder__treesubfolderlist__item-text--active{text-decoration-line:underline;text-decoration-color:#93c5fd}.vuefinder .vuefinder__treesubfolderlist__item-text--active:is(.dark *){text-decoration-color:#9ca3af}.vuefinder .vuefinder__treesubfolderlist__subfolder{padding-left:1rem}.vuefinder .vuefinder__treestorageitem__header{display:flex;cursor:pointer;justify-content:space-between;border-bottom-width:1px;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));padding:.375rem .25rem;font-size:.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__header:is(.dark *){--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(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__info{display:flex;flex:1 1 0%;align-items:center}.vuefinder :is(.vuefinder__treestorageitem__info>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__treestorageitem__info--active{font-weight:700;color:#374151cc}.vuefinder .vuefinder__treestorageitem__info--active:is(.dark *){color:#d1d5dbcc}.vuefinder .vuefinder__treestorageitem__icon{height:1.25rem;width:1.25rem;flex-shrink:0}.vuefinder .vuefinder__treestorageitem__icon--active{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__icon--active:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}.vuefinder .vuefinder__treestorageitem__loader{padding-left:.25rem;padding-right:.25rem}.vuefinder .vuefinder__treestorageitem__subfolder{margin-top:.25rem;margin-bottom:.25rem;overflow-x:auto}.vuefinder .vuefinder__toast{bottom:0;left:50%;z-index:10;display:flex;max-width:-moz-fit-content;max-width:fit-content;--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));flex-direction:column}.vuefinder .vuefinder__toast--fixed{position:fixed}.vuefinder .vuefinder__toast--absolute{position:absolute}.vuefinder .vuefinder__toast__message{margin-left:auto;margin-right:auto;margin-top:.125rem;margin-bottom:.125rem;display:inline-block;min-width:-moz-max-content;min-width:max-content;cursor:pointer;border-radius:.25rem;border-width:1px;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));padding:.125rem .5rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__toast__message:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__toast__message{font-size:.875rem;line-height:1.25rem}}.vuefinder .vuefinder__toast-item--enter-active{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:1s}.vuefinder .vuefinder__toast-item--leave-active{opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:1s}.vuefinder .vuefinder__toast-item--leave-to{opacity:0}.vuefinder .vuefinder__toolbar{display:flex;flex-grow:0;align-items:center;justify-content:space-between;--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity));padding-top:.25rem;padding-bottom:.25rem;font-size:.875rem;line-height:1.25rem}.vuefinder .vuefinder__toolbar__actions,.vuefinder .vuefinder__toolbar__search-results{display:flex;text-align:center}.vuefinder .vuefinder__toolbar__search-text{padding-left:.5rem}.vuefinder .vuefinder__toolbar__search-query{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__toolbar__search-query:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .vuefinder__toolbar__controls{display:flex;align-items:center;justify-content:flex-end;text-align:center}.vuefinder .vuefinder__toolbar__control{margin-left:.375rem;margin-right:.375rem}.vuefinder .vf-sort-button{display:flex;align-items:center;--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity));padding:.25rem;line-height:1.5rem}.vuefinder .vf-sort-button:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .vf-sort-button:is(.dark *){--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))}.vuefinder .vf-sort-button:hover:is(.dark *){background-color:#3741511a}.vuefinder .vf-toolbar-icon{cursor:pointer;stroke:#6b7280}.vuefinder .vf-toolbar-icon:hover{stroke:#0e7490}.vuefinder .vf-toolbar-icon:is(.dark *){stroke:#9ca3af}.vuefinder .vf-toolbar-icon:hover:is(.dark *){stroke:#d1d5db}.vuefinder .vf-toolbar-icon-disabled{cursor:not-allowed;stroke:#e5e7eb}.vuefinder .vf-toolbar-icon-disabled:is(.dark *){stroke:#374151}.vuefinder .vuefinder__main__fixed{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;width:100vw}.vuefinder .vuefinder__main__relative{position:relative;resize:vertical;border-radius:.25rem}.vuefinder :is(.vuefinder .vuefinder__main__container){display:flex;min-height:11rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-direction:column;overflow:hidden;border-width:1px;--tw-border-opacity: 1;border-color:rgb(212 212 212 / 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(.vuefinder .vuefinder__main__container:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.vuefinder .vuefinder__main__content{position:relative;display:flex;height:100%;overflow:hidden}.vuefinder .vuefinder__modal-layout{position:relative;z-index:30}.vuefinder .vuefinder__modal-layout__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgb(107 114 128 / var(--tw-bg-opacity));--tw-bg-opacity: .75;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder .vuefinder__modal-layout__overlay:is(.dark *){background-color:rgb(75 85 99 / var(--tw-bg-opacity));--tw-bg-opacity: .75}.vuefinder .vuefinder__modal-layout__container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;overflow:hidden}.vuefinder .vuefinder__modal-layout__wrapper{display:flex;min-height:100%;align-items:flex-end;justify-content:center;padding:1rem;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__wrapper{align-items:center;padding:0}}.vuefinder .vuefinder__modal-layout__body{position:relative;width:100%;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));overflow:hidden;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));text-align:left;--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);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder .vuefinder__modal-layout__body:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__body{margin-top:2rem;margin-bottom:2rem;max-width:56rem}}@media (min-width: 768px){.vuefinder .vuefinder__modal-layout__body{max-width:42rem}}@media (min-width: 1024px){.vuefinder .vuefinder__modal-layout__body{max-width:48rem}}@media (min-width: 1280px){.vuefinder .vuefinder__modal-layout__body{max-width:48rem}}.vuefinder .vuefinder__modal-layout__content{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:1.25rem 1rem 1rem}.vuefinder .vuefinder__modal-layout__content:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__content{padding:1.5rem 1.5rem 1rem}}.vuefinder .vuefinder__modal-layout__footer{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));padding:.75rem 1rem}.vuefinder .vuefinder__modal-layout__footer:is(.dark *){border-top-width:1px;--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))}@media (min-width: 640px){.vuefinder .vuefinder__modal-layout__footer{display:flex;flex-direction:row-reverse;padding-left:1.5rem;padding-right:1.5rem}}.vuefinder .vuefinder__about-modal__content{-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (min-width: 640px){.vuefinder .vuefinder__about-modal__content{align-items:flex-start}}.vuefinder .vuefinder__about-modal__main{margin-top:.75rem;width:100%}@media (min-width: 640px){.vuefinder .vuefinder__about-modal__main{margin-top:0;text-align:left}}.vuefinder .vuefinder__about-modal__tabs{display:flex;overflow:auto}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab){padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--active){border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--active:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--inactive){border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--inactive:hover){--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__tab--inactive:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__tab-content{margin-top:1rem}.vuefinder .vuefinder__about-modal__description{margin:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__link{margin-top:.5rem;display:block;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__link:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__settings{margin-top:.75rem;text-align:left}.vuefinder .vuefinder__about-modal__setting{position:relative;display:block;align-items:center;-moz-column-gap:.75rem;column-gap:.75rem}.vuefinder .vuefinder__about-modal__setting-input{display:flex;height:1.5rem;align-items:center}.vuefinder .vuefinder__about-modal__setting-label{display:block;display:flex;flex:1 1 0%;font-size:.875rem;line-height:1.25rem}.vuefinder :is(.vuefinder .vuefinder__about-modal__label){display:flex;width:100%;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__label:is(.dark *)){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__checkbox){height:1rem;width:1rem;border-radius:.25rem;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__checkbox:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__checkbox:is(.dark *)){accent-color:#94a3b8}.vuefinder :is(.vuefinder .vuefinder__about-modal__select){width:100%;flex-shrink:0;border-radius:.25rem;border-width:1px;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__about-modal__select:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity))}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__about-modal__select){width:50%}}.vuefinder :is(.vuefinder__about-modal__shortcuts>: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))}@media (min-width: 640px){.vuefinder .vuefinder__about-modal__shortcuts{width:50%}}.vuefinder .vuefinder__about-modal__shortcut{display:flex;justify-content:space-between;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__about-modal__shortcut:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__archive-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__archive-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__archive-modal__form{margin-top:.5rem}.vuefinder .vuefinder__archive-modal__files{margin-bottom:.25rem;overflow:auto;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity));max-height:200px}.vuefinder .vuefinder__archive-modal__file{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__archive-modal__file:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__archive-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__archive-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__archive-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__archive-modal__file-name{margin-left:.375rem}.vuefinder :is(.vuefinder .vuefinder__archive-modal__input){margin-top:.25rem;margin-bottom:.25rem;width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__archive-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__archive-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__delete-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__delete-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__delete-modal__form{margin-top:.5rem}.vuefinder .vuefinder__delete-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__files{margin-bottom:.25rem;overflow:auto;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity));max-height:200px}.vuefinder .vuefinder__delete-modal__file{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__file:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__delete-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__delete-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__delete-modal__file-name{margin-left:.375rem}.vuefinder .vuefinder__delete-modal__warning{margin:auto;text-align:center;font-size:.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.vuefinder .vuefinder__delete-modal__warning:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity))}.vuefinder .vuefinder__modal-header{margin-top:.25rem;margin-bottom:.25rem;display:flex;align-items:center}.vuefinder :is(.vuefinder__modal-header>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.vuefinder .vuefinder__modal-header__icon-container{display:flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.vuefinder .vuefinder__modal-header__icon-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__modal-header__icon-container{margin-left:0;margin-right:0;height:2.5rem;width:2.5rem}}.vuefinder :is(.vuefinder .vuefinder__modal-header__icon){height:1.5rem;width:1.5rem;stroke:#2563eb;padding:.125rem}.vuefinder :is(.vuefinder .vuefinder__modal-header__icon:is(.dark *)){stroke:#dbeafe}.vuefinder .vuefinder__modal-header__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__modal-header__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__message-modal__content{display:flex;align-items:flex-start}}.vuefinder .vuefinder__message-modal__icon-container{margin-left:auto;margin-right:auto;display:flex;height:3rem;width:3rem;flex-shrink:0;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.vuefinder .vuefinder__message-modal__icon-container:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}@media (min-width: 640px){.vuefinder .vuefinder__message-modal__icon-container{margin-left:0;margin-right:0;height:2.5rem;width:2.5rem}}.vuefinder :is(.vuefinder .vuefinder__message-modal__icon){height:1.5rem;width:1.5rem;stroke:#2563eb}.vuefinder :is(.vuefinder .vuefinder__message-modal__icon:is(.dark *)){stroke:#dbeafe}.vuefinder .vuefinder__message-modal__text{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__message-modal__text{margin-top:0;text-align:left}}.vuefinder .vuefinder__message-modal__title{font-size:1.125rem;font-weight:500;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.vuefinder .vuefinder__message-modal__title:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__message-modal__message{margin-top:.5rem}.vuefinder .vuefinder__message-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__move-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__move-modal__description{padding-bottom:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__files{max-height:200px;overflow-y:auto;text-align:left}.vuefinder .vuefinder__move-modal__file{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__file:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__move-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__move-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__move-modal__file-name{margin-left:.375rem}.vuefinder .vuefinder__move-modal__target-title{margin-top:.75rem;font-size:.75rem;line-height:1rem;font-weight:700;letter-spacing:.05em;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-title:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-directory{display:flex;border-radius:.25rem;border-width:1px;padding:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-directory:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__target-path{margin-left:.375rem;overflow:auto}.vuefinder .vuefinder__move-modal__selected-items{margin:.25rem;margin-right:auto;align-self:center;font-size:.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__move-modal__selected-items:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__new-file-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__new-file-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__new-file-modal__form{margin-top:.5rem}.vuefinder .vuefinder__new-file-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-file-modal__input){width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__new-file-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-file-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__new-folder-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__new-folder-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__new-folder-modal__form{margin-top:.5rem}.vuefinder .vuefinder__new-folder-modal__description{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-folder-modal__input){width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__new-folder-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__new-folder-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__preview-modal__content{margin-top:.75rem;width:100%}@media (min-width: 640px){.vuefinder .vuefinder__preview-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__preview-modal__loading{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__loading:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__loading-indicator{display:flex;line-height:1.25rem}.vuefinder :is(.vuefinder .vuefinder__preview-modal__spinner){margin-left:-.25rem;margin-right:.75rem;height:1.25rem;width:1.25rem}.vuefinder :is(.vuefinder .vuefinder__preview-modal__spinner){animation:spin 1s linear infinite;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__spinner-circle{stroke:#1e3a8a;opacity:.25}.vuefinder .vuefinder__preview-modal__spinner-circle:is(.dark *){stroke:#dbeafe}.vuefinder .vuefinder__preview-modal__spinner-path{opacity:.75}.vuefinder .vuefinder__preview-modal__details{display:flex;word-break:break-all;border-radius:.25rem;padding-top:.5rem;padding-bottom:.5rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__details:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__note{font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.vuefinder .vuefinder__preview-modal__note:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__rename-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__rename-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__rename-modal__item{margin-top:.5rem}.vuefinder .vuefinder__rename-modal__item-info{display:flex;padding-top:.5rem;padding-bottom:.5rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__rename-modal__item-info:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__rename-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__rename-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__rename-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder .vuefinder__rename-modal__item-name{margin-left:.375rem}.vuefinder :is(.vuefinder .vuefinder__rename-modal__input){width:100%;border-radius:.25rem;border-width:1px;padding:.25rem .5rem}.vuefinder :is(.vuefinder .vuefinder__rename-modal__input:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));background-color:#37415140;--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__rename-modal__input:focus:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.vuefinder .vuefinder__unarchive-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__unarchive-modal__content{margin-top:0;text-align:left}}.vuefinder .vuefinder__unarchive-modal__items{margin-top:.5rem}.vuefinder .vuefinder__unarchive-modal__item{display:flex;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.vuefinder .vuefinder__unarchive-modal__item:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder .vuefinder__unarchive-modal__icon{height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__unarchive-modal__icon--dir){fill:#0ea5e9;stroke:#0ea5e9}.vuefinder :is(.vuefinder .vuefinder__unarchive-modal__icon--dir:is(.dark *)){fill:#64748b;stroke:#64748b}.vuefinder :is(.vuefinder .vuefinder__unarchive-modal__icon--file){height:1.25rem;width:1.25rem;--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder .vuefinder__unarchive-modal__item-name{margin-left:.375rem}.vuefinder .vuefinder__unarchive-modal__info{margin-top:.25rem;margin-bottom:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__content{margin-top:.75rem;width:100%;text-align:center}@media (min-width: 640px){.vuefinder .vuefinder__upload-modal__content{margin-top:0;text-align:left}}.vuefinder :is(.vuefinder .vuefinder__upload-modal__drop-area){margin-bottom:1rem;margin-top:.5rem;display:flex;height:120px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;border-radius:.25rem;border-width:2px;border-style:dashed;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__drop-area:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.vuefinder .vuefinder__upload-modal__buttons{margin-bottom:.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__file-list{margin-bottom:.25rem;max-height:200px;overflow-y:auto;padding-right:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__file-entry{display:flex}.vuefinder .vuefinder__upload-modal__file-entry:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder .vuefinder__upload-modal__file-entry:hover:is(.dark *){--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 .vuefinder__upload-modal__file-icon{display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;cursor:default;border-radius:.25rem;border-width:1px;--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity));font-size:.75rem;line-height:1rem}.vuefinder .vuefinder__upload-modal__file-icon:is(.dark *){--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(249 250 251 / var(--tw-text-opacity))}.vuefinder .vuefinder__upload-modal__file-icon-text{margin:auto;font-size:1rem;line-height:1.5rem}.vuefinder .vuefinder__upload-modal__file-info{margin-left:.25rem;height:-moz-fit-content;height:fit-content;width:100%}.vuefinder .vuefinder__upload-modal__file-name{text-align:left}.vuefinder .vuefinder__upload-modal__file-status{display:flex;word-break:break-all;text-align:left}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove){margin-left:auto;height:1.25rem;width:1.25rem;border-radius:.25rem;border-width:1px;font-size:1rem;line-height:1.5rem;font-weight:500;line-height:1}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:hover){--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:focus){outline:2px solid transparent;outline-offset:2px}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:is(.dark *)){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove:hover:is(.dark *)){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}@media (min-width: 640px){.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove){font-size:.75rem;line-height:1rem}}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove.disabled){color:rgb(255 255 255 / var(--tw-text-opacity));--tw-text-opacity: .5}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove.disabled:disabled){--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.vuefinder :is(.vuefinder .vuefinder__upload-modal__file-remove-icon){height:1.25rem;width:1.25rem}.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}kbd{border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:600;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}kbd:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.vuefinder .pointer-events-none{pointer-events:none}.vuefinder .visible{visibility:visible}.vuefinder .absolute{position:absolute}.vuefinder .relative{position:relative}.vuefinder .z-10{z-index:10}.vuefinder .m-auto{margin:auto}.vuefinder .mx-1\.5{margin-left:.375rem;margin-right:.375rem}.vuefinder .ml-auto{margin-left:auto}.vuefinder .ms-3{margin-inline-start:.75rem}.vuefinder .block{display:block}.vuefinder .flex{display:flex}.vuefinder .grid{display:grid}.vuefinder .\!hidden{display:none!important}.vuefinder .hidden{display:none}.vuefinder .h-5{height:1.25rem}.vuefinder .h-6{height:1.5rem}.vuefinder .w-5{width:1.25rem}.vuefinder .w-6{width:1.5rem}.vuefinder .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 .animate-spin{animation:spin 1s linear infinite}.vuefinder .cursor-pointer{cursor:pointer}.vuefinder .text-nowrap{text-wrap:nowrap}.vuefinder .break-all{word-break:break-all}.vuefinder .rounded{border-radius:.25rem}.vuefinder .border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity))}.vuefinder .border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity))}.vuefinder .bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.vuefinder .bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.vuefinder .fill-gray-100{fill:#f3f4f6}.vuefinder .fill-sky-500{fill:#0ea5e9}.vuefinder .fill-white{fill:#fff}.vuefinder .stroke-blue-600{stroke:#2563eb}.vuefinder .stroke-blue-900{stroke:#1e3a8a}.vuefinder .stroke-gray-100\/50{stroke:#f3f4f680}.vuefinder .stroke-gray-400{stroke:#9ca3af}.vuefinder .stroke-neutral-500{stroke:#737373}.vuefinder .stroke-sky-500{stroke:#0ea5e9}.vuefinder .stroke-slate-500{stroke:#64748b}.vuefinder .p-0\.5{padding:.125rem}.vuefinder .p-1{padding:.25rem}.vuefinder .px-2{padding-left:.5rem;padding-right:.5rem}.vuefinder .py-0{padding-top:0;padding-bottom:0}.vuefinder .py-1{padding-top:.25rem;padding-bottom:.25rem}.vuefinder .py-2{padding-top:.5rem;padding-bottom:.5rem}.vuefinder .pl-2{padding-left:.5rem}.vuefinder .text-xs{font-size:.75rem;line-height:1rem}.vuefinder .font-bold{font-weight:700}.vuefinder .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.vuefinder .text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity))}.vuefinder .text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.vuefinder .text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.vuefinder .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.vuefinder .text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.vuefinder .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.vuefinder .opacity-25{opacity:.25}.vuefinder .opacity-75{opacity:.75}.vuefinder .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 .transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vuefinder .transition-none{transition-property:none}.vuefinder .vf-theme-dark,.vuefinder .vf-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.vuefinder .vf-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.vuefinder .hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.vuefinder .hover\:bg-neutral-300:hover{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.vuefinder .dark\:border-red-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.vuefinder .dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .dark\:bg-slate-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.vuefinder .dark\:fill-gray-400\/20:is(.dark *){fill:#9ca3af33}.vuefinder .dark\:fill-gray-700:is(.dark *){fill:#374151}.vuefinder .dark\:fill-neutral-300:is(.dark *){fill:#d4d4d4}.vuefinder .dark\:fill-slate-500:is(.dark *){fill:#64748b}.vuefinder .dark\:stroke-blue-100:is(.dark *){stroke:#dbeafe}.vuefinder .dark\:stroke-gray-400:is(.dark *){stroke:#9ca3af}.vuefinder .dark\:stroke-gray-600:is(.dark *){stroke:#4b5563}.vuefinder .dark\:stroke-slate-500:is(.dark *){stroke:#64748b}.vuefinder .dark\:stroke-slate-700\/50:is(.dark *){stroke:#33415580}.vuefinder .dark\:text-lime-300:is(.dark *){--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity))}.vuefinder .dark\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.vuefinder .dark\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.vuefinder .dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.vuefinder .dark\:vf-theme-light:is(.dark *){box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px;--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.vuefinder .dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.vuefinder .dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}@media (min-width: 768px){.vuefinder .md\:block{display:block}.vuefinder .md\:hidden{display:none}.vuefinder .md\:h-12{height:3rem}.vuefinder .md\:h-8{height:2rem}.vuefinder .md\:w-12{width:3rem}.vuefinder .md\:w-8{width:2rem}} diff --git a/dist/vuefinder.cjs b/dist/vuefinder.cjs index 989d4202..f2bba4bf 100644 --- a/dist/vuefinder.cjs +++ b/dist/vuefinder.cjs @@ -1,4 +1,4 @@ -"use strict";var br=Object.defineProperty;var yr=(n,t,o)=>t in n?br(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;var Fn=(n,t,o)=>yr(n,typeof t!="symbol"?t+"":t,o);const e=require("vue"),Er=require("mitt"),Vr=require("dragselect"),Sr=require("@uppy/core"),Nr=require("@uppy/xhr-upload"),xr=require("vanilla-lazyload");require("cropperjs/dist/cropper.css");const Br=require("cropperjs");var ro;const Kt=(ro=document.querySelector('meta[name="csrf-token"]'))==null?void 0:ro.getAttribute("content");class Cr{constructor(t){Fn(this,"config");this.config=t}get config(){return this.config}transformRequestParams(t){const o=this.config,s={};Kt!=null&&Kt!==""&&(s[o.xsrfHeaderName]=Kt);const r=Object.assign({},o.headers,s,t.headers),c=Object.assign({},o.params,t.params),a=t.body,i=o.baseUrl+t.url,l=t.method;let d;l!=="get"&&(a instanceof FormData?(d=a,o.body!=null&&Object.entries(this.config.body).forEach(([u,v])=>{d.append(u,v)})):(d={...a},o.body!=null&&Object.assign(d,this.config.body)));const m={url:i,method:l,headers:r,params:c,body:d};if(o.transformRequest!=null){const u=o.transformRequest({url:i,method:l,headers:r,params:c,body:d});u.url!=null&&(m.url=u.url),u.method!=null&&(m.method=u.method),u.params!=null&&(m.params=u.params??{}),u.headers!=null&&(m.headers=u.headers??{}),u.body!=null&&(m.body=u.body)}return m}getDownloadUrl(t,o){if(o.url!=null)return o.url;const s=this.transformRequestParams({url:"",method:"get",params:{q:"download",adapter:t,path:o.path}});return s.url+"?"+new URLSearchParams(s.params).toString()}getPreviewUrl(t,o){if(o.url!=null)return o.url;const s=this.transformRequestParams({url:"",method:"get",params:{q:"preview",adapter:t,path:o.path}});return s.url+"?"+new URLSearchParams(s.params).toString()}async send(t){const o=this.transformRequestParams(t),s=t.responseType||"json",r={method:t.method,headers:o.headers,signal:t.abortSignal},c=o.url+"?"+new URLSearchParams(o.params);if(o.method!=="get"&&o.body!=null){let i;o.body instanceof FormData?i=t.body:(i=JSON.stringify(o.body),r.headers["Content-Type"]="application/json"),r.body=i}const a=await fetch(c,r);if(a.ok)return await a[s]();throw await a.json()}}function $r(n){const t={baseUrl:"",headers:{},params:{},body:{},xsrfHeaderName:"X-CSRF-Token"};return typeof n=="string"?Object.assign(t,{baseUrl:n}):Object.assign(t,n),new Cr(t)}function Dr(n){let t=localStorage.getItem(n+"_storage");const o=e.reactive(JSON.parse(t??"{}"));e.watch(o,s);function s(){Object.keys(o).length?localStorage.setItem(n+"_storage",JSON.stringify(o)):localStorage.removeItem(n+"_storage")}function r(l,d){o[l]=d}function c(l){delete o[l]}function a(){Object.keys(o).map(l=>c(l))}return{getStore:(l,d=null)=>o.hasOwnProperty(l)?o[l]:d,setStore:r,removeStore:c,clearStore:a}}async function Tr(n,t){const o=t[n];return typeof o=="function"?(await o()).default:o}function Mr(n,t,o,s){const{getStore:r,setStore:c}=n,a=e.ref({}),i=e.ref(r("locale",t)),l=(u,v=t)=>{Tr(u,s).then(f=>{a.value=f,c("locale",u),i.value=u,c("translations",f),Object.values(s).length>1&&(o.emit("vf-toast-push",{label:"The language is set to "+u}),o.emit("vf-language-saved"))}).catch(f=>{v?(o.emit("vf-toast-push",{label:"The selected locale is not yet supported!",type:"error"}),l(v,null)):o.emit("vf-toast-push",{label:"Locale cannot be loaded!",type:"error"})})};e.watch(i,u=>{l(u)}),!r("locale")&&!s.length?l(t):a.value=r("translations");const d=(u,...v)=>v.length?d(u=u.replace("%s",v.shift()),...v):u;function m(u,...v){return a.value&&a.value.hasOwnProperty(u)?d(a.value[u],...v):d(u,...v)}return e.reactive({t:m,locale:i})}const Z={EDIT:"edit",NEW_FILE:"newfile",NEW_FOLDER:"newfolder",PREVIEW:"preview",ARCHIVE:"archive",UNARCHIVE:"unarchive",SEARCH:"search",RENAME:"rename",UPLOAD:"upload",DELETE:"delete",FULL_SCREEN:"fullscreen",DOWNLOAD:"download",LANGUAGE:"language"},Ar=Object.values(Z),Lr="2.5.16";function so(n,t,o,s,r){return(t=Math,o=t.log,s=1024,r=o(n)/o(s)|0,n/t.pow(s,r)).toFixed(0)+" "+(r?"KMGTPEZY"[--r]+"iB":"B")}function lo(n,t,o,s,r){return(t=Math,o=t.log,s=1e3,r=o(n)/o(s)|0,n/t.pow(s,r)).toFixed(0)+" "+(r?"KMGTPEZY"[--r]+"B":"B")}function Or(n){const t={k:1,m:2,g:3,t:4},s=/(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(n);return s[1]*Math.pow(1024,t[s[2].toLowerCase()])}const Fe={SYSTEM:"system",LIGHT:"light",DARK:"dark"};function Fr(n,t){const o=e.ref(Fe.SYSTEM),s=e.ref(Fe.LIGHT);o.value=n.getStore("theme",t??Fe.SYSTEM);const r=window.matchMedia("(prefers-color-scheme: dark)"),c=a=>{o.value===Fe.DARK||o.value===Fe.SYSTEM&&a.matches?s.value=Fe.DARK:s.value=Fe.LIGHT};return c(r),r.addEventListener("change",c),{value:o,actualValue:s,set(a){o.value=a,a!==Fe.SYSTEM?n.setStore("theme",a):n.removeStore("theme"),c(r)}}}function Hr(){const n=e.shallowRef(null),t=e.ref(!1),o=e.ref();return{visible:t,type:n,data:o,open:(c,a=null)=>{document.querySelector("body").style.overflow="hidden",t.value=!0,n.value=c,o.value=a},close:()=>{document.querySelector("body").style.overflow="",t.value=!1,n.value=null}}}/*! +"use strict";var br=Object.defineProperty;var yr=(n,t,o)=>t in n?br(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;var Fn=(n,t,o)=>yr(n,typeof t!="symbol"?t+"":t,o);const e=require("vue"),Er=require("mitt"),Vr=require("dragselect"),Sr=require("@uppy/core"),Nr=require("@uppy/xhr-upload"),xr=require("vanilla-lazyload");require("cropperjs/dist/cropper.css");const Br=require("cropperjs");var ro;const Kt=(ro=document.querySelector('meta[name="csrf-token"]'))==null?void 0:ro.getAttribute("content");class Cr{constructor(t){Fn(this,"config");this.config=t}get config(){return this.config}transformRequestParams(t){const o=this.config,s={};Kt!=null&&Kt!==""&&(s[o.xsrfHeaderName]=Kt);const r=Object.assign({},o.headers,s,t.headers),c=Object.assign({},o.params,t.params),a=t.body,i=o.baseUrl+t.url,l=t.method;let d;l!=="get"&&(a instanceof FormData?(d=a,o.body!=null&&Object.entries(this.config.body).forEach(([u,v])=>{d.append(u,v)})):(d={...a},o.body!=null&&Object.assign(d,this.config.body)));const f={url:i,method:l,headers:r,params:c,body:d};if(o.transformRequest!=null){const u=o.transformRequest({url:i,method:l,headers:r,params:c,body:d});u.url!=null&&(f.url=u.url),u.method!=null&&(f.method=u.method),u.params!=null&&(f.params=u.params??{}),u.headers!=null&&(f.headers=u.headers??{}),u.body!=null&&(f.body=u.body)}return f}getDownloadUrl(t,o){if(o.url!=null)return o.url;const s=this.transformRequestParams({url:"",method:"get",params:{q:"download",adapter:t,path:o.path}});return s.url+"?"+new URLSearchParams(s.params).toString()}getPreviewUrl(t,o){if(o.url!=null)return o.url;const s=this.transformRequestParams({url:"",method:"get",params:{q:"preview",adapter:t,path:o.path}});return s.url+"?"+new URLSearchParams(s.params).toString()}async send(t){const o=this.transformRequestParams(t),s=t.responseType||"json",r={method:t.method,headers:o.headers,signal:t.abortSignal},c=o.url+"?"+new URLSearchParams(o.params);if(o.method!=="get"&&o.body!=null){let i;o.body instanceof FormData?i=t.body:(i=JSON.stringify(o.body),r.headers["Content-Type"]="application/json"),r.body=i}const a=await fetch(c,r);if(a.ok)return await a[s]();throw await a.json()}}function $r(n){const t={baseUrl:"",headers:{},params:{},body:{},xsrfHeaderName:"X-CSRF-Token"};return typeof n=="string"?Object.assign(t,{baseUrl:n}):Object.assign(t,n),new Cr(t)}function Dr(n){let t=localStorage.getItem(n+"_storage");const o=e.reactive(JSON.parse(t??"{}"));e.watch(o,s);function s(){Object.keys(o).length?localStorage.setItem(n+"_storage",JSON.stringify(o)):localStorage.removeItem(n+"_storage")}function r(l,d){o[l]=d}function c(l){delete o[l]}function a(){Object.keys(o).map(l=>c(l))}return{getStore:(l,d=null)=>o.hasOwnProperty(l)?o[l]:d,setStore:r,removeStore:c,clearStore:a}}async function Tr(n,t){const o=t[n];return typeof o=="function"?(await o()).default:o}function Mr(n,t,o,s){const{getStore:r,setStore:c}=n,a=e.ref({}),i=e.ref(r("locale",t)),l=(u,v=t)=>{Tr(u,s).then(m=>{a.value=m,c("locale",u),i.value=u,c("translations",m),Object.values(s).length>1&&(o.emit("vf-toast-push",{label:"The language is set to "+u}),o.emit("vf-language-saved"))}).catch(m=>{v?(o.emit("vf-toast-push",{label:"The selected locale is not yet supported!",type:"error"}),l(v,null)):o.emit("vf-toast-push",{label:"Locale cannot be loaded!",type:"error"})})};e.watch(i,u=>{l(u)}),!r("locale")&&!s.length?l(t):a.value=r("translations");const d=(u,...v)=>v.length?d(u=u.replace("%s",v.shift()),...v):u;function f(u,...v){return a.value&&a.value.hasOwnProperty(u)?d(a.value[u],...v):d(u,...v)}return e.reactive({t:f,locale:i})}const Z={EDIT:"edit",NEW_FILE:"newfile",NEW_FOLDER:"newfolder",PREVIEW:"preview",ARCHIVE:"archive",UNARCHIVE:"unarchive",SEARCH:"search",RENAME:"rename",UPLOAD:"upload",DELETE:"delete",FULL_SCREEN:"fullscreen",DOWNLOAD:"download",LANGUAGE:"language"},Ar=Object.values(Z),Lr="2.6.0";function so(n,t,o,s,r){return(t=Math,o=t.log,s=1024,r=o(n)/o(s)|0,n/t.pow(s,r)).toFixed(0)+" "+(r?"KMGTPEZY"[--r]+"iB":"B")}function lo(n,t,o,s,r){return(t=Math,o=t.log,s=1e3,r=o(n)/o(s)|0,n/t.pow(s,r)).toFixed(0)+" "+(r?"KMGTPEZY"[--r]+"B":"B")}function Or(n){const t={k:1,m:2,g:3,t:4},s=/(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(n);return s[1]*Math.pow(1024,t[s[2].toLowerCase()])}const Fe={SYSTEM:"system",LIGHT:"light",DARK:"dark"};function Fr(n,t){const o=e.ref(Fe.SYSTEM),s=e.ref(Fe.LIGHT);o.value=n.getStore("theme",t??Fe.SYSTEM);const r=window.matchMedia("(prefers-color-scheme: dark)"),c=a=>{o.value===Fe.DARK||o.value===Fe.SYSTEM&&a.matches?s.value=Fe.DARK:s.value=Fe.LIGHT};return c(r),r.addEventListener("change",c),{value:o,actualValue:s,set(a){o.value=a,a!==Fe.SYSTEM?n.setStore("theme",a):n.removeStore("theme"),c(r)}}}function Hr(){const n=e.shallowRef(null),t=e.ref(!1),o=e.ref();return{visible:t,type:n,data:o,open:(c,a=null)=>{document.querySelector("body").style.overflow="hidden",t.value=!0,n.value=c,o.value=a},close:()=>{document.querySelector("body").style.overflow="",t.value=!1,n.value=null}}}/*! * OverlayScrollbars * Version: 2.10.0 * @@ -6,4 +6,4 @@ * https://github.com/KingSora * * Released under the MIT license. - */const pe=(n,t)=>{const{o,i:s,u:r}=n;let c=o,a;const i=(m,u)=>{const v=c,f=m,p=u||(s?!s(v,f):v!==f);return(p||r)&&(c=f,a=v),[c,p,a]};return[t?m=>i(t(c,a),m):i,m=>[c,!!m,a]]},Rr=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,ve=Rr?window:{},ao=Math.max,zr=Math.min,Qt=Math.round,St=Math.abs,Hn=Math.sign,co=ve.cancelAnimationFrame,hn=ve.requestAnimationFrame,Nt=ve.setTimeout,en=ve.clearTimeout,Mt=n=>typeof ve[n]<"u"?ve[n]:void 0,Ir=Mt("MutationObserver"),Rn=Mt("IntersectionObserver"),xt=Mt("ResizeObserver"),bt=Mt("ScrollTimeline"),gn=n=>n===void 0,At=n=>n===null,Se=n=>typeof n=="number",ct=n=>typeof n=="string",kn=n=>typeof n=="boolean",we=n=>typeof n=="function",Ne=n=>Array.isArray(n),Bt=n=>typeof n=="object"&&!Ne(n)&&!At(n),wn=n=>{const t=!!n&&n.length,o=Se(t)&&t>-1&&t%1==0;return Ne(n)||!we(n)&&o?t>0&&Bt(n)?t-1 in n:!0:!1},Ct=n=>!!n&&n.constructor===Object,$t=n=>n instanceof HTMLElement,Lt=n=>n instanceof Element;function Y(n,t){if(wn(n))for(let o=0;ot(n[o],o,n));return n}const io=(n,t)=>n.indexOf(t)>=0,st=(n,t)=>n.concat(t),ne=(n,t,o)=>(!ct(t)&&wn(t)?Array.prototype.push.apply(n,t):n.push(t),n),ze=n=>Array.from(n||[]),bn=n=>Ne(n)?n:!ct(n)&&wn(n)?ze(n):[n],tn=n=>!!n&&!n.length,nn=n=>ze(new Set(n)),ge=(n,t,o)=>{Y(n,r=>r?r.apply(void 0,t||[]):!0),!o&&(n.length=0)},uo="paddingTop",mo="paddingRight",fo="paddingLeft",vo="paddingBottom",po="marginLeft",_o="marginRight",ho="marginBottom",go="overflowX",ko="overflowY",Ot="width",Ft="height",He="visible",Ue="hidden",Je="scroll",Ur=n=>{const t=String(n||"");return t?t[0].toUpperCase()+t.slice(1):""},Ht=(n,t,o,s)=>{if(n&&t){let r=!0;return Y(o,c=>{const a=n[c],i=t[c];a!==i&&(r=!1)}),r}return!1},wo=(n,t)=>Ht(n,t,["w","h"]),yt=(n,t)=>Ht(n,t,["x","y"]),qr=(n,t)=>Ht(n,t,["t","r","b","l"]),qe=()=>{},U=(n,...t)=>n.bind(0,...t),Ke=n=>{let t;const o=n?Nt:hn,s=n?en:co;return[r=>{s(t),t=o(()=>r(),we(n)?n():n)},()=>s(t)]},on=(n,t)=>{const{_:o,v:s,p:r,S:c}=t||{};let a,i,l,d,m=qe;const u=function(_){m(),en(a),d=a=i=void 0,m=qe,n.apply(this,_)},v=w=>c&&i?c(i,w):w,f=()=>{m!==qe&&u(v(l)||l)},p=function(){const _=ze(arguments),N=we(o)?o():o;if(Se(N)&&N>=0){const V=we(s)?s():s,b=Se(V)&&V>=0,x=N>0?Nt:hn,C=N>0?en:co,B=v(_)||_,g=u.bind(0,B);let h;m(),r&&!d?(g(),d=!0,h=x(()=>d=void 0,N)):(h=x(g,N),b&&!a&&(a=Nt(f,V))),m=()=>C(h),i=l=B}else u(_)};return p.m=f,p},bo=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),be=n=>n?Object.keys(n):[],W=(n,t,o,s,r,c,a)=>{const i=[t,o,s,r,c,a];return(typeof n!="object"||At(n))&&!we(n)&&(n={}),Y(i,l=>{Y(l,(d,m)=>{const u=l[m];if(n===u)return!0;const v=Ne(u);if(u&&Ct(u)){const f=n[m];let p=f;v&&!Ne(f)?p=[]:!v&&!Ct(f)&&(p={}),n[m]=W(p,u)}else n[m]=v?u.slice():u})}),n},yo=(n,t)=>Y(W({},n),(o,s,r)=>{o===void 0?delete r[s]:o&&Ct(o)&&(r[s]=yo(o))}),yn=n=>!be(n).length,Eo=(n,t,o)=>ao(n,zr(t,o)),je=n=>nn((Ne(n)?n:(n||"").split(" ")).filter(t=>t)),En=(n,t)=>n&&n.getAttribute(t),zn=(n,t)=>n&&n.hasAttribute(t),Te=(n,t,o)=>{Y(je(t),s=>{n&&n.setAttribute(s,String(o||""))})},Ee=(n,t)=>{Y(je(t),o=>n&&n.removeAttribute(o))},Rt=(n,t)=>{const o=je(En(n,t)),s=U(Te,n,t),r=(c,a)=>{const i=new Set(o);return Y(je(c),l=>{i[a](l)}),ze(i).join(" ")};return{O:c=>s(r(c,"delete")),$:c=>s(r(c,"add")),C:c=>{const a=je(c);return a.reduce((i,l)=>i&&o.includes(l),a.length>0)}}},Vo=(n,t,o)=>(Rt(n,t).O(o),U(Vn,n,t,o)),Vn=(n,t,o)=>(Rt(n,t).$(o),U(Vo,n,t,o)),Dt=(n,t,o,s)=>(s?Vn:Vo)(n,t,o),Sn=(n,t,o)=>Rt(n,t).C(o),So=n=>Rt(n,"class"),No=(n,t)=>{So(n).O(t)},Nn=(n,t)=>(So(n).$(t),U(No,n,t)),xo=(n,t)=>{const o=t?Lt(t)&&t:document;return o?ze(o.querySelectorAll(n)):[]},jr=(n,t)=>{const o=t?Lt(t)&&t:document;return o&&o.querySelector(n)},rn=(n,t)=>Lt(n)&&n.matches(t),Bo=n=>rn(n,"body"),sn=n=>n?ze(n.childNodes):[],lt=n=>n&&n.parentElement,We=(n,t)=>Lt(n)&&n.closest(t),ln=n=>document.activeElement,Pr=(n,t,o)=>{const s=We(n,t),r=n&&jr(o,s),c=We(r,t)===s;return s&&r?s===n||r===n||c&&We(We(n,o),t)!==s:!1},Ze=n=>{Y(bn(n),t=>{const o=lt(t);t&&o&&o.removeChild(t)})},_e=(n,t)=>U(Ze,n&&t&&Y(bn(t),o=>{o&&n.appendChild(o)})),Ye=n=>{const t=document.createElement("div");return Te(t,"class",n),t},Co=n=>{const t=Ye();return t.innerHTML=n.trim(),Y(sn(t),o=>Ze(o))},In=(n,t)=>n.getPropertyValue(t)||n[t]||"",$o=n=>{const t=n||0;return isFinite(t)?t:0},gt=n=>$o(parseFloat(n||"")),an=n=>Math.round(n*1e4)/1e4,Do=n=>`${an($o(n))}px`;function at(n,t){n&&t&&Y(t,(o,s)=>{try{const r=n.style,c=At(o)||kn(o)?"":Se(o)?Do(o):o;s.indexOf("--")===0?r.setProperty(s,c):r[s]=c}catch{}})}function Ae(n,t,o){const s=ct(t);let r=s?"":{};if(n){const c=ve.getComputedStyle(n,o)||n.style;r=s?In(c,t):ze(t).reduce((a,i)=>(a[i]=In(c,i),a),r)}return r}const Un=(n,t,o)=>{const s=t?`${t}-`:"",r=o?`-${o}`:"",c=`${s}top${r}`,a=`${s}right${r}`,i=`${s}bottom${r}`,l=`${s}left${r}`,d=Ae(n,[c,a,i,l]);return{t:gt(d[c]),r:gt(d[a]),b:gt(d[i]),l:gt(d[l])}},Gr=(n,t)=>`translate${Bt(n)?`(${n.x},${n.y})`:`Y(${n})`}`,Kr=n=>!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length),Wr={w:0,h:0},zt=(n,t)=>t?{w:t[`${n}Width`],h:t[`${n}Height`]}:Wr,Yr=n=>zt("inner",n||ve),Xe=U(zt,"offset"),To=U(zt,"client"),Tt=U(zt,"scroll"),xn=n=>{const t=parseFloat(Ae(n,Ot))||0,o=parseFloat(Ae(n,Ft))||0;return{w:t-Qt(t),h:o-Qt(o)}},Wt=n=>n.getBoundingClientRect(),Xr=n=>!!n&&Kr(n),cn=n=>!!(n&&(n[Ft]||n[Ot])),Mo=(n,t)=>{const o=cn(n);return!cn(t)&&o},qn=(n,t,o,s)=>{Y(je(t),r=>{n&&n.removeEventListener(r,o,s)})},Q=(n,t,o,s)=>{var r;const c=(r=s&&s.H)!=null?r:!0,a=s&&s.I||!1,i=s&&s.A||!1,l={passive:c,capture:a};return U(ge,je(t).map(d=>{const m=i?u=>{qn(n,d,m,a),o&&o(u)}:o;return n&&n.addEventListener(d,m,l),U(qn,n,d,m,a)}))},Ao=n=>n.stopPropagation(),dn=n=>n.preventDefault(),Lo=n=>Ao(n)||dn(n),Ve=(n,t)=>{const{x:o,y:s}=Se(t)?{x:t,y:t}:t||{};Se(o)&&(n.scrollLeft=o),Se(s)&&(n.scrollTop=s)},he=n=>({x:n.scrollLeft,y:n.scrollTop}),Oo=()=>({D:{x:0,y:0},M:{x:0,y:0}}),Jr=(n,t)=>{const{D:o,M:s}=n,{w:r,h:c}=t,a=(u,v,f)=>{let p=Hn(u)*f,w=Hn(v)*f;if(p===w){const _=St(u),N=St(v);w=_>N?0:w,p=_{const o=(s,r)=>s===0&&s<=r;return{x:o(n.x,t.x),y:o(n.y,t.y)}},Pn=({D:n,M:t},o)=>{const s=(r,c,a)=>Eo(0,1,(r-a)/(r-c)||0);return{x:s(n.x,t.x,o.x),y:s(n.y,t.y,o.y)}},un=n=>{n&&n.focus&&n.focus({preventScroll:!0})},Gn=(n,t)=>{Y(bn(t),n)},mn=n=>{const t=new Map,o=(c,a)=>{if(c){const i=t.get(c);Gn(l=>{i&&i[l?"delete":"clear"](l)},a)}else t.forEach(i=>{i.clear()}),t.clear()},s=(c,a)=>{if(ct(c)){const d=t.get(c)||new Set;return t.set(c,d),Gn(m=>{we(m)&&d.add(m)},a),U(o,c,a)}kn(a)&&a&&o();const i=be(c),l=[];return Y(i,d=>{const m=c[d];m&&ne(l,s(d,m))}),U(ge,l)},r=(c,a)=>{Y(ze(t.get(c)),i=>{a&&!tn(a)?i.apply(0,a):i()})};return s(n||{}),[s,o,r]},Kn=n=>JSON.stringify(n,(t,o)=>{if(we(o))throw 0;return o}),Wn=(n,t)=>n?`${t}`.split(".").reduce((o,s)=>o&&bo(o,s)?o[s]:void 0,n):void 0,Zr={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Fo=(n,t)=>{const o={},s=st(be(t),be(n));return Y(s,r=>{const c=n[r],a=t[r];if(Bt(c)&&Bt(a))W(o[r]={},Fo(c,a)),yn(o[r])&&delete o[r];else if(bo(t,r)&&a!==c){let i=!0;if(Ne(c)||Ne(a))try{Kn(c)===Kn(a)&&(i=!1)}catch{}i&&(o[r]=a)}}),o},Yn=(n,t,o)=>s=>[Wn(n,s),o||Wn(t,s)!==void 0],et="data-overlayscrollbars",Et="os-environment",kt=`${Et}-scrollbar-hidden`,Yt=`${et}-initialize`,Vt="noClipping",Xn=`${et}-body`,Re=et,Qr="host",Me=`${et}-viewport`,es=go,ts=ko,ns="arrange",Ho="measuring",os="scrolling",Ro="scrollbarHidden",rs="noContent",fn=`${et}-padding`,Jn=`${et}-content`,Bn="os-size-observer",ss=`${Bn}-appear`,ls=`${Bn}-listener`,as="os-trinsic-observer",cs="os-theme-none",ke="os-scrollbar",is=`${ke}-rtl`,ds=`${ke}-horizontal`,us=`${ke}-vertical`,zo=`${ke}-track`,Cn=`${ke}-handle`,ms=`${ke}-visible`,fs=`${ke}-cornerless`,Zn=`${ke}-interaction`,Qn=`${ke}-unusable`,vn=`${ke}-auto-hide`,eo=`${vn}-hidden`,to=`${ke}-wheel`,vs=`${zo}-interactive`,ps=`${Cn}-interactive`;let Io;const _s=()=>Io,hs=n=>{Io=n};let Xt;const gs=()=>{const n=(b,x,C)=>{_e(document.body,b),_e(document.body,b);const F=To(b),B=Xe(b),g=xn(x);return C&&Ze(b),{x:B.h-F.h+g.h,y:B.w-F.w+g.w}},t=b=>{let x=!1;const C=Nn(b,kt);try{x=Ae(b,"scrollbar-width")==="none"||Ae(b,"display","::-webkit-scrollbar")==="none"}catch{}return C(),x},o=`.${Et}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Et} div{width:200%;height:200%;margin:10px 0}.${kt}{scrollbar-width:none!important}.${kt}::-webkit-scrollbar,.${kt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=Co(`
`)[0],c=r.firstChild,a=r.lastChild,i=_s();i&&(a.nonce=i);const[l,,d]=mn(),[m,u]=pe({o:n(r,c),i:yt},U(n,r,c,!0)),[v]=u(),f=t(r),p={x:v.x===0,y:v.y===0},w={elements:{host:null,padding:!f,viewport:b=>f&&Bo(b)&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},_=W({},Zr),N=U(W,{},_),T=U(W,{},w),V={T:v,k:p,R:f,V:!!bt,L:U(l,"r"),U:T,P:b=>W(w,b)&&T(),N,q:b=>W(_,b)&&N(),B:W({},w),F:W({},_)};if(Ee(r,"style"),Ze(r),Q(ve,"resize",()=>{d("r",[])}),we(ve.matchMedia)&&!f&&(!p.x||!p.y)){const b=x=>{const C=ve.matchMedia(`(resolution: ${ve.devicePixelRatio}dppx)`);Q(C,"change",()=>{x(),b(x)},{A:!0})};b(()=>{const[x,C]=m();W(V.T,x),d("r",[C])})}return V},Be=()=>(Xt||(Xt=gs()),Xt),Uo=(n,t)=>we(t)?t.apply(0,n):t,ks=(n,t,o,s)=>{const r=gn(s)?o:s;return Uo(n,r)||t.apply(0,n)},qo=(n,t,o,s)=>{const r=gn(s)?o:s,c=Uo(n,r);return!!c&&($t(c)?c:t.apply(0,n))},ws=(n,t)=>{const{nativeScrollbarsOverlaid:o,body:s}=t||{},{k:r,R:c,U:a}=Be(),{nativeScrollbarsOverlaid:i,body:l}=a().cancel,d=o??i,m=gn(s)?l:s,u=(r.x||r.y)&&d,v=n&&(At(m)?!c:m);return!!u||!!v},$n=new WeakMap,bs=(n,t)=>{$n.set(n,t)},ys=n=>{$n.delete(n)},jo=n=>$n.get(n),Es=(n,t,o)=>{let s=!1;const r=o?new WeakMap:!1,c=()=>{s=!0},a=i=>{if(r&&o){const l=o.map(d=>{const[m,u]=d||[];return[u&&m?(i||xo)(m,n):[],u]});Y(l,d=>Y(d[0],m=>{const u=d[1],v=r.get(m)||[];if(n.contains(m)&&u){const p=Q(m,u,w=>{s?(p(),r.delete(m)):t(w)});r.set(m,ne(v,p))}else ge(v),r.delete(m)}))}};return a(),[c,a]},no=(n,t,o,s)=>{let r=!1;const{j:c,X:a,Y:i,W:l,J:d,G:m}=s||{},u=on(()=>r&&o(!0),{_:33,v:99}),[v,f]=Es(n,u,i),p=c||[],w=a||[],_=st(p,w),N=(V,b)=>{if(!tn(b)){const x=d||qe,C=m||qe,F=[],B=[];let g=!1,h=!1;if(Y(b,y=>{const{attributeName:E,target:M,type:k,oldValue:L,addedNodes:O,removedNodes:j}=y,K=k==="attributes",G=k==="childList",oe=n===M,$=K&&E,D=$&&En(M,E||""),A=ct(D)?D:null,H=$&&L!==A,S=io(w,E)&&H;if(t&&(G||!oe)){const z=K&&H,R=z&&l&&rn(M,l),P=(R?!x(M,E,L,A):!K||z)&&!C(y,!!R,n,s);Y(O,X=>ne(F,X)),Y(j,X=>ne(F,X)),h=h||P}!t&&oe&&H&&!x(M,E,L,A)&&(ne(B,E),g=g||S)}),f(y=>nn(F).reduce((E,M)=>(ne(E,xo(y,M)),rn(M,y)?ne(E,M):E),[])),t)return!V&&h&&o(!1),[!1];if(!tn(B)||g){const y=[nn(B),g];return!V&&o.apply(0,y),y}}},T=new Ir(U(N,!1));return[()=>(T.observe(n,{attributes:!0,attributeOldValue:!0,attributeFilter:_,subtree:t,childList:t,characterData:t}),r=!0,()=>{r&&(v(),T.disconnect(),r=!1)}),()=>{if(r)return u.m(),N(!0,T.takeRecords())}]},Po={},Go={},Vs=n=>{Y(n,t=>Y(t,(o,s)=>{Po[s]=t[s]}))},Ko=(n,t,o)=>be(n).map(s=>{const{static:r,instance:c}=n[s],[a,i,l]=o||[],d=o?c:r;if(d){const m=o?d(a,i,t):d(t);return(l||Go)[s]=m}}),it=n=>Go[n],Ss="__osOptionsValidationPlugin",Ns="__osSizeObserverPlugin",xs=(n,t)=>{const{k:o}=t,[s,r]=n("showNativeOverlaidScrollbars");return[s&&o.x&&o.y,r]},Qe=n=>n.indexOf(He)===0,Bs=(n,t)=>{const o=(r,c,a,i)=>{const l=r===He?Ue:r.replace(`${He}-`,""),d=Qe(r),m=Qe(a);return!c&&!i?Ue:d&&m?He:d?c&&i?l:c?He:Ue:c?l:m&&i?He:Ue},s={x:o(t.x,n.x,t.y,n.y),y:o(t.y,n.y,t.x,n.x)};return{K:s,Z:{x:s.x===Je,y:s.y===Je}}},Wo="__osScrollbarsHidingPlugin",Cs="__osClickScrollPlugin",Yo=(n,t,o)=>{const{dt:s}=o||{},r=it(Ns),[c]=pe({o:!1,u:!0});return()=>{const a=[],l=Co(`
`)[0],d=l.firstChild,m=u=>{const v=u instanceof ResizeObserverEntry;let f=!1,p=!1;if(v){const[w,,_]=c(u.contentRect),N=cn(w);p=Mo(w,_),f=!p&&!N}else p=u===!0;f||t({ft:!0,dt:p})};if(xt){const u=new xt(v=>m(v.pop()));u.observe(d),ne(a,()=>{u.disconnect()})}else if(r){const[u,v]=r(d,m,s);ne(a,st([Nn(l,ss),Q(l,"animationstart",u)],v))}else return qe;return U(ge,ne(a,_e(n,l)))}},$s=(n,t)=>{let o;const s=l=>l.h===0||l.isIntersecting||l.intersectionRatio>0,r=Ye(as),[c]=pe({o:!1}),a=(l,d)=>{if(l){const m=c(s(l)),[,u]=m;return u&&!d&&t(m)&&[m]}},i=(l,d)=>a(d.pop(),l);return[()=>{const l=[];if(Rn)o=new Rn(U(i,!1),{root:n}),o.observe(r),ne(l,()=>{o.disconnect()});else{const d=()=>{const m=Xe(r);a(m)};ne(l,Yo(r,d)()),d()}return U(ge,ne(l,_e(n,r)))},()=>o&&i(!0,o.takeRecords())]},Ds=(n,t,o,s)=>{let r,c,a,i,l,d;const m=`[${Re}]`,u=`[${Me}]`,v=["id","class","style","open","wrap","cols","rows"],{vt:f,ht:p,ot:w,gt:_,bt:N,nt:T,wt:V,yt:b,St:x,Ot:C}=n,F=S=>Ae(S,"direction")==="rtl",B={$t:!1,ct:F(f)},g=Be(),h=it(Wo),[y]=pe({i:wo,o:{w:0,h:0}},()=>{const S=h&&h.tt(n,t,B,g,o).ut,R=!(V&&T)&&Sn(p,Re,Vt),I=!T&&b(ns),P=I&&he(_),X=P&&C(),se=x(Ho,R),ee=I&&S&&S()[0],ie=Tt(w),q=xn(w);return ee&&ee(),Ve(_,P),X&&X(),R&&se(),{w:ie.w+q.w,h:ie.h+q.h}}),E=on(s,{_:()=>r,v:()=>c,S(S,z){const[R]=S,[I]=z;return[st(be(R),be(I)).reduce((P,X)=>(P[X]=R[X]||I[X],P),{})]}}),M=S=>{const z=F(f);W(S,{Ct:d!==z}),W(B,{ct:z}),d=z},k=(S,z)=>{const[R,I]=S,P={xt:I};return W(B,{$t:R}),!z&&s(P),P},L=({ft:S,dt:z})=>{const I=!(S&&!z)&&g.R?E:s,P={ft:S||z,dt:z};M(P),I(P)},O=(S,z)=>{const[,R]=y(),I={Ht:R};return M(I),R&&!z&&(S?s:E)(I),I},j=(S,z,R)=>{const I={Et:z};return M(I),z&&!R&&E(I),I},[K,G]=N?$s(p,k):[],oe=!T&&Yo(p,L,{dt:!0}),[$,D]=no(p,!1,j,{X:v,j:v}),A=T&&xt&&new xt(S=>{const z=S[S.length-1].contentRect;L({ft:!0,dt:Mo(z,l)}),l=z}),H=on(()=>{const[,S]=y();s({Ht:S})},{_:222,p:!0});return[()=>{A&&A.observe(p);const S=oe&&oe(),z=K&&K(),R=$(),I=g.L(P=>{P?E({zt:P}):H()});return()=>{A&&A.disconnect(),S&&S(),z&&z(),i&&i(),R(),I()}},({It:S,At:z,Dt:R})=>{const I={},[P]=S("update.ignoreMutation"),[X,se]=S("update.attributes"),[ee,ie]=S("update.elementEvents"),[q,de]=S("update.debounce"),me=ie||se,ae=z||R,ue=re=>we(P)&&P(re);if(me){a&&a(),i&&i();const[re,le]=no(N||w,!0,O,{j:st(v,X||[]),Y:ee,W:m,G:(J,te)=>{const{target:ce,attributeName:fe}=J;return(!te&&fe&&!T?Pr(ce,m,u):!1)||!!We(ce,`.${ke}`)||!!ue(J)}});i=re(),a=le}if(de)if(E.m(),Ne(q)){const re=q[0],le=q[1];r=Se(re)&&re,c=Se(le)&&le}else Se(q)?(r=q,c=!1):(r=!1,c=!1);if(ae){const re=D(),le=G&&G(),J=a&&a();re&&W(I,j(re[0],re[1],ae)),le&&W(I,k(le[0],ae)),J&&W(I,O(J[0],ae))}return M(I),I},B]},Ts=(n,t,o,s)=>{const r="--os-viewport-percent",c="--os-scroll-percent",a="--os-scroll-direction",{U:i}=Be(),{scrollbars:l}=i(),{slot:d}=l,{vt:m,ht:u,ot:v,Mt:f,gt:p,wt:w,nt:_}=t,{scrollbars:N}=f?{}:n,{slot:T}=N||{},V=[],b=[],x=[],C=qo([m,u,v],()=>_&&w?m:u,d,T),F=$=>{if(bt){const D=new bt({source:p,axis:$});return{kt:H=>{const S=H.Tt.animate({clear:["left"],[c]:[0,1]},{timeline:D});return()=>S.cancel()}}}},B={x:F("x"),y:F("y")},g=()=>{const{Rt:$,Vt:D}=o,A=(H,S)=>Eo(0,1,H/(H+S)||0);return{x:A(D.x,$.x),y:A(D.y,$.y)}},h=($,D,A)=>{const H=A?Nn:No;Y($,S=>{H(S.Tt,D)})},y=($,D)=>{Y($,A=>{const[H,S]=D(A);at(H,S)})},E=($,D,A)=>{const H=kn(A),S=H?A:!0,z=H?!A:!0;S&&h(b,$,D),z&&h(x,$,D)},M=()=>{const $=g(),D=A=>H=>[H.Tt,{[r]:an(A)+""}];y(b,D($.x)),y(x,D($.y))},k=()=>{if(!bt){const{Lt:$}=o,D=Pn($,he(p)),A=H=>S=>[S.Tt,{[c]:an(H)+""}];y(b,A(D.x)),y(x,A(D.y))}},L=()=>{const{Lt:$}=o,D=jn($),A=H=>S=>[S.Tt,{[a]:H?"0":"1"}];y(b,A(D.x)),y(x,A(D.y))},O=()=>{if(_&&!w){const{Rt:$,Lt:D}=o,A=jn(D),H=Pn(D,he(p)),S=z=>{const{Tt:R}=z,I=lt(R)===v&&R,P=(X,se,ee)=>{const ie=se*X;return Do(ee?ie:-ie)};return[I,I&&{transform:Gr({x:P(H.x,$.x,A.x),y:P(H.y,$.y,A.y)})}]};y(b,S),y(x,S)}},j=$=>{const D=$?"x":"y",H=Ye(`${ke} ${$?ds:us}`),S=Ye(zo),z=Ye(Cn),R={Tt:H,Ut:S,Pt:z},I=B[D];return ne($?b:x,R),ne(V,[_e(H,S),_e(S,z),U(Ze,H),I&&I.kt(R),s(R,E,$)]),R},K=U(j,!0),G=U(j,!1),oe=()=>(_e(C,b[0].Tt),_e(C,x[0].Tt),U(ge,V));return K(),G(),[{Nt:M,qt:k,Bt:L,Ft:O,jt:E,Xt:{Yt:b,Wt:K,Jt:U(y,b)},Gt:{Yt:x,Wt:G,Jt:U(y,x)}},oe]},Ms=(n,t,o,s)=>(r,c,a)=>{const{ht:i,ot:l,nt:d,gt:m,Kt:u,Ot:v}=t,{Tt:f,Ut:p,Pt:w}=r,[_,N]=Ke(333),[T,V]=Ke(444),b=F=>{we(m.scrollBy)&&m.scrollBy({behavior:"smooth",left:F.x,top:F.y})},x=()=>{const F="pointerup pointercancel lostpointercapture",B=`client${a?"X":"Y"}`,g=a?Ot:Ft,h=a?"left":"top",y=a?"w":"h",E=a?"x":"y",M=(L,O)=>j=>{const{Rt:K}=o,G=Xe(p)[y]-Xe(w)[y],$=O*j/G*K[E];Ve(m,{[E]:L+$})},k=[];return Q(p,"pointerdown",L=>{const O=We(L.target,`.${Cn}`)===w,j=O?w:p,K=n.scrollbars,G=K[O?"dragScroll":"clickScroll"],{button:oe,isPrimary:$,pointerType:D}=L,{pointers:A}=K;if(oe===0&&$&&G&&(A||[]).includes(D)){ge(k),V();const S=!O&&(L.shiftKey||G==="instant"),z=U(Wt,w),R=U(Wt,p),I=(te,ce)=>(te||z())[h]-(ce||R())[h],P=Qt(Wt(m)[g])/Xe(m)[y]||1,X=M(he(m)[E],1/P),se=L[B],ee=z(),ie=R(),q=ee[g],de=I(ee,ie)+q/2,me=se-ie[h],ae=O?0:me-de,ue=te=>{ge(J),j.releasePointerCapture(te.pointerId)},re=O||S,le=v(),J=[Q(u,F,ue),Q(u,"selectstart",te=>dn(te),{H:!1}),Q(p,F,ue),re&&Q(p,"pointermove",te=>X(ae+(te[B]-se))),re&&(()=>{const te=he(m);le();const ce=he(m),fe={x:ce.x-te.x,y:ce.y-te.y};(St(fe.x)>3||St(fe.y)>3)&&(v(),Ve(m,te),b(fe),T(le))})];if(j.setPointerCapture(L.pointerId),S)X(ae);else if(!O){const te=it(Cs);if(te){const ce=te(X,ae,q,fe=>{fe?le():ne(J,le)});ne(J,ce),ne(k,U(ce,!0))}}}})};let C=!0;return U(ge,[Q(w,"pointermove pointerleave",s),Q(f,"pointerenter",()=>{c(Zn,!0)}),Q(f,"pointerleave pointercancel",()=>{c(Zn,!1)}),!d&&Q(f,"mousedown",()=>{const F=ln();(zn(F,Me)||zn(F,Re)||F===document.body)&&Nt(U(un,l),25)}),Q(f,"wheel",F=>{const{deltaX:B,deltaY:g,deltaMode:h}=F;C&&h===0&<(f)===i&&b({x:B,y:g}),C=!1,c(to,!0),_(()=>{C=!0,c(to)}),dn(F)},{H:!1,I:!0}),Q(f,"pointerdown",U(Q,u,"click",Lo,{A:!0,I:!0,H:!1}),{I:!0}),x(),N,V])},As=(n,t,o,s,r,c)=>{let a,i,l,d,m,u=qe,v=0;const f=$=>$.pointerType==="mouse",[p,w]=Ke(),[_,N]=Ke(100),[T,V]=Ke(100),[b,x]=Ke(()=>v),[C,F]=Ts(n,r,s,Ms(t,r,s,$=>f($)&&j())),{ht:B,Qt:g,wt:h}=r,{jt:y,Nt:E,qt:M,Bt:k,Ft:L}=C,O=($,D)=>{if(x(),$)y(eo);else{const A=U(y,eo,!0);v>0&&!D?b(A):A()}},j=()=>{(l?!a:!d)&&(O(!0),_(()=>{O(!1)}))},K=$=>{y(vn,$,!0),y(vn,$,!1)},G=$=>{f($)&&(a=l,l&&O(!0))},oe=[x,N,V,w,()=>u(),Q(B,"pointerover",G,{A:!0}),Q(B,"pointerenter",G),Q(B,"pointerleave",$=>{f($)&&(a=!1,l&&O(!1))}),Q(B,"pointermove",$=>{f($)&&i&&j()}),Q(g,"scroll",$=>{p(()=>{M(),j()}),c($),L()})];return[()=>U(ge,ne(oe,F())),({It:$,Dt:D,Zt:A,tn:H})=>{const{nn:S,sn:z,en:R,cn:I}=H||{},{Ct:P,dt:X}=A||{},{ct:se}=o,{k:ee}=Be(),{K:ie,rn:q}=s,[de,me]=$("showNativeOverlaidScrollbars"),[ae,ue]=$("scrollbars.theme"),[re,le]=$("scrollbars.visibility"),[J,te]=$("scrollbars.autoHide"),[ce,fe]=$("scrollbars.autoHideSuspend"),[tt]=$("scrollbars.autoHideDelay"),[dt,ut]=$("scrollbars.dragScroll"),[mt,Ie]=$("scrollbars.clickScroll"),[Pe,Ut]=$("overflow"),qt=X&&!D,jt=q.x||q.y,Pt=S||z||I||P||D,ye=R||le||Ut,Gt=de&&ee.x&&ee.y,nt=(ot,Oe,ft)=>{const rt=ot.includes(Je)&&(re===He||re==="auto"&&Oe===Je);return y(ms,rt,ft),rt};if(v=tt,qt&&(ce&&jt?(K(!1),u(),T(()=>{u=Q(g,"scroll",U(K,!0),{A:!0})})):K(!0)),me&&y(cs,Gt),ue&&(y(m),y(ae,!0),m=ae),fe&&!ce&&K(!0),te&&(i=J==="move",l=J==="leave",d=J==="never",O(d,!0)),ut&&y(ps,dt),Ie&&y(vs,!!mt),ye){const ot=nt(Pe.x,ie.x,!0),Oe=nt(Pe.y,ie.y,!1);y(fs,!(ot&&Oe))}Pt&&(M(),E(),L(),I&&k(),y(Qn,!q.x,!0),y(Qn,!q.y,!1),y(is,se&&!h))},{},C]},Ls=n=>{const t=Be(),{U:o,R:s}=t,{elements:r}=o(),{padding:c,viewport:a,content:i}=r,l=$t(n),d=l?{}:n,{elements:m}=d,{padding:u,viewport:v,content:f}=m||{},p=l?n:d.target,w=Bo(p),_=p.ownerDocument,N=_.documentElement,T=()=>_.defaultView||ve,V=U(ks,[p]),b=U(qo,[p]),x=U(Ye,""),C=U(V,x,a),F=U(b,x,i),B=q=>{const de=Xe(q),me=Tt(q),ae=Ae(q,go),ue=Ae(q,ko);return me.w-de.w>0&&!Qe(ae)||me.h-de.h>0&&!Qe(ue)},g=C(v),h=g===p,y=h&&w,E=!h&&F(f),M=!h&&g===E,k=y?N:g,L=y?k:p,O=!h&&b(x,c,u),j=!M&&E,K=[j,k,O,L].map(q=>$t(q)&&!lt(q)&&q),G=q=>q&&io(K,q),oe=!G(k)&&B(k)?k:p,$=y?N:k,A={vt:p,ht:L,ot:k,ln:O,bt:j,gt:$,Qt:y?_:k,an:w?N:oe,Kt:_,wt:w,Mt:l,nt:h,un:T,yt:q=>Sn(k,Me,q),St:(q,de)=>Dt(k,Me,q,de),Ot:()=>Dt($,Me,os,!0)},{vt:H,ht:S,ln:z,ot:R,bt:I}=A,P=[()=>{Ee(S,[Re,Yt]),Ee(H,Yt),w&&Ee(N,[Yt,Re])}];let X=sn([I,R,z,S,H].find(q=>q&&!G(q)));const se=y?H:I||R,ee=U(ge,P);return[A,()=>{const q=T(),de=ln(),me=J=>{_e(lt(J),sn(J)),Ze(J)},ae=J=>Q(J,"focusin focusout focus blur",Lo,{I:!0,H:!1}),ue="tabindex",re=En(R,ue),le=ae(de);return Te(S,Re,h?"":Qr),Te(z,fn,""),Te(R,Me,""),Te(I,Jn,""),h||(Te(R,ue,re||"-1"),w&&Te(N,Xn,"")),_e(se,X),_e(S,z),_e(z||S,!h&&R),_e(R,I),ne(P,[le,()=>{const J=ln(),te=G(R),ce=te&&J===R?H:J,fe=ae(ce);Ee(z,fn),Ee(I,Jn),Ee(R,Me),w&&Ee(N,Xn),re?Te(R,ue,re):Ee(R,ue),G(I)&&me(I),te&&me(R),G(z)&&me(z),un(ce),fe()}]),s&&!h&&(Vn(R,Me,Ro),ne(P,U(Ee,R,Me))),un(!h&&w&&de===H&&q.top===q?R:de),le(),X=0,ee},ee]},Os=({bt:n})=>({Zt:t,_n:o,Dt:s})=>{const{xt:r}=t||{},{$t:c}=o;n&&(r||s)&&at(n,{[Ft]:c&&"100%"})},Fs=({ht:n,ln:t,ot:o,nt:s},r)=>{const[c,a]=pe({i:qr,o:Un()},U(Un,n,"padding",""));return({It:i,Zt:l,_n:d,Dt:m})=>{let[u,v]=a(m);const{R:f}=Be(),{ft:p,Ht:w,Ct:_}=l||{},{ct:N}=d,[T,V]=i("paddingAbsolute");(p||v||(m||w))&&([u,v]=c(m));const x=!s&&(V||_||v);if(x){const C=!T||!t&&!f,F=u.r+u.l,B=u.t+u.b,g={[_o]:C&&!N?-F:0,[ho]:C?-B:0,[po]:C&&N?-F:0,top:C?-u.t:0,right:C?N?-u.r:"auto":0,left:C?N?"auto":-u.l:0,[Ot]:C&&`calc(100% + ${F}px)`},h={[uo]:C?u.t:0,[mo]:C?u.r:0,[vo]:C?u.b:0,[fo]:C?u.l:0};at(t||o,g),at(o,h),W(r,{ln:u,dn:!C,rt:t?h:W({},g,h)})}return{fn:x}}},Hs=(n,t)=>{const o=Be(),{ht:s,ln:r,ot:c,nt:a,Qt:i,gt:l,wt:d,St:m,un:u}=n,{R:v}=o,f=d&&a,p=U(ao,0),w={display:()=>!1,direction:D=>D!=="ltr",flexDirection:D=>D.endsWith("-reverse"),writingMode:D=>D!=="horizontal-tb"},_=be(w),N={i:wo,o:{w:0,h:0}},T={i:yt,o:{}},V=D=>{m(Ho,!f&&D)},b=D=>{if(!_.some(se=>{const ee=D[se];return ee&&w[se](ee)}))return{D:{x:0,y:0},M:{x:1,y:1}};V(!0);const H=he(l),S=m(rs,!0),z=Q(i,Je,se=>{const ee=he(l);se.isTrusted&&ee.x===H.x&&ee.y===H.y&&Ao(se)},{I:!0,A:!0});Ve(l,{x:0,y:0}),S();const R=he(l),I=Tt(l);Ve(l,{x:I.w,y:I.h});const P=he(l);Ve(l,{x:P.x-R.x<1&&-I.w,y:P.y-R.y<1&&-I.h});const X=he(l);return Ve(l,H),hn(()=>z()),{D:R,M:X}},x=(D,A)=>{const H=ve.devicePixelRatio%1!==0?1:0,S={w:p(D.w-A.w),h:p(D.h-A.h)};return{w:S.w>H?S.w:0,h:S.h>H?S.h:0}},[C,F]=pe(N,U(xn,c)),[B,g]=pe(N,U(Tt,c)),[h,y]=pe(N),[E]=pe(T),[M,k]=pe(N),[L]=pe(T),[O]=pe({i:(D,A)=>Ht(D,A,_),o:{}},()=>Xr(c)?Ae(c,_):{}),[j,K]=pe({i:(D,A)=>yt(D.D,A.D)&&yt(D.M,A.M),o:Oo()}),G=it(Wo),oe=(D,A)=>`${A?es:ts}${Ur(D)}`,$=D=>{const A=S=>[He,Ue,Je].map(z=>oe(z,S)),H=A(!0).concat(A()).join(" ");m(H),m(be(D).map(S=>oe(D[S],S==="x")).join(" "),!0)};return({It:D,Zt:A,_n:H,Dt:S},{fn:z})=>{const{ft:R,Ht:I,Ct:P,dt:X,zt:se}=A||{},ee=G&&G.tt(n,t,H,o,D),{it:ie,ut:q,_t:de}=ee||{},[me,ae]=xs(D,o),[ue,re]=D("overflow"),le=Qe(ue.x),J=Qe(ue.y),te=!0;let ce=F(S),fe=g(S),tt=y(S),dt=k(S);ae&&v&&m(Ro,!me);{Sn(s,Re,Vt)&&V(!0);const[Ln]=q?q():[],[vt]=ce=C(S),[pt]=fe=B(S),_t=To(c),ht=f&&Yr(u()),wr={w:p(pt.w+vt.w),h:p(pt.h+vt.h)},On={w:p((ht?ht.w:_t.w+p(_t.w-pt.w))+vt.w),h:p((ht?ht.h:_t.h+p(_t.h-pt.h))+vt.h)};Ln&&Ln(),dt=M(On),tt=h(x(wr,On),S)}const[ut,mt]=dt,[Ie,Pe]=tt,[Ut,qt]=fe,[jt,Pt]=ce,[ye,Gt]=E({x:Ie.w>0,y:Ie.h>0}),nt=le&&J&&(ye.x||ye.y)||le&&ye.x&&!ye.y||J&&ye.y&&!ye.x,ot=z||P||se||Pt||qt||mt||Pe||re||ae||te,Oe=Bs(ye,ue),[ft,rt]=L(Oe.K),[_r,hr]=O(S),An=P||X||hr||Gt||S,[gr,kr]=An?j(b(_r),S):K();return ot&&(rt&&$(Oe.K),de&&ie&&at(c,de(Oe,H,ie(Oe,Ut,jt)))),V(!1),Dt(s,Re,Vt,nt),Dt(r,fn,Vt,nt),W(t,{K:ft,Vt:{x:ut.w,y:ut.h},Rt:{x:Ie.w,y:Ie.h},rn:ye,Lt:Jr(gr,Ie)}),{en:rt,nn:mt,sn:Pe,cn:kr||Pe,vn:An}}},Rs=n=>{const[t,o,s]=Ls(n),r={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[_o]:0,[ho]:0,[po]:0,[uo]:0,[mo]:0,[vo]:0,[fo]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:Ue,y:Ue},rn:{x:!1,y:!1},Lt:Oo()},{vt:c,gt:a,nt:i,Ot:l}=t,{R:d,k:m}=Be(),u=!d&&(m.x||m.y),v=[Os(t),Fs(t,r),Hs(t,r)];return[o,f=>{const p={},_=u&&he(a),N=_&&l();return Y(v,T=>{W(p,T(f,p)||{})}),Ve(a,_),N&&N(),!i&&Ve(c,0),p},r,t,s]},zs=(n,t,o,s,r)=>{let c=!1;const a=Yn(t,{}),[i,l,d,m,u]=Rs(n),[v,f,p]=Ds(m,d,a,b=>{V({},b)}),[w,_,,N]=As(n,t,p,d,m,r),T=b=>be(b).some(x=>!!b[x]),V=(b,x)=>{if(o())return!1;const{pn:C,Dt:F,At:B,hn:g}=b,h=C||{},y=!!F||!c,E={It:Yn(t,h,y),pn:h,Dt:y};if(g)return _(E),!1;const M=x||f(W({},E,{At:B})),k=l(W({},E,{_n:p,Zt:M}));_(W({},E,{Zt:M,tn:k}));const L=T(M),O=T(k),j=L||O||!yn(h)||y;return c=!0,j&&s(b,{Zt:M,tn:k}),j};return[()=>{const{an:b,gt:x,Ot:C}=m,F=he(b),B=[v(),i(),w()],g=C();return Ve(x,F),g(),U(ge,B)},V,()=>({gn:p,bn:d}),{wn:m,yn:N},u]},xe=(n,t,o)=>{const{N:s}=Be(),r=$t(n),c=r?n:n.target,a=jo(c);if(t&&!a){let i=!1;const l=[],d={},m=h=>{const y=yo(h),E=it(Ss);return E?E(y,!0):y},u=W({},s(),m(t)),[v,f,p]=mn(),[w,_,N]=mn(o),T=(h,y)=>{N(h,y),p(h,y)},[V,b,x,C,F]=zs(n,u,()=>i,({pn:h,Dt:y},{Zt:E,tn:M})=>{const{ft:k,Ct:L,xt:O,Ht:j,Et:K,dt:G}=E,{nn:oe,sn:$,en:D,cn:A}=M;T("updated",[g,{updateHints:{sizeChanged:!!k,directionChanged:!!L,heightIntrinsicChanged:!!O,overflowEdgeChanged:!!oe,overflowAmountChanged:!!$,overflowStyleChanged:!!D,scrollCoordinatesChanged:!!A,contentMutation:!!j,hostMutation:!!K,appear:!!G},changedOptions:h||{},force:!!y}])},h=>T("scroll",[g,h])),B=h=>{ys(c),ge(l),i=!0,T("destroyed",[g,h]),f(),_()},g={options(h,y){if(h){const E=y?s():{},M=Fo(u,W(E,m(h)));yn(M)||(W(u,M),b({pn:M}))}return W({},u)},on:w,off:(h,y)=>{h&&y&&_(h,y)},state(){const{gn:h,bn:y}=x(),{ct:E}=h,{Vt:M,Rt:k,K:L,rn:O,ln:j,dn:K,Lt:G}=y;return W({},{overflowEdge:M,overflowAmount:k,overflowStyle:L,hasOverflow:O,scrollCoordinates:{start:G.D,end:G.M},padding:j,paddingAbsolute:K,directionRTL:E,destroyed:i})},elements(){const{vt:h,ht:y,ln:E,ot:M,bt:k,gt:L,Qt:O}=C.wn,{Xt:j,Gt:K}=C.yn,G=$=>{const{Pt:D,Ut:A,Tt:H}=$;return{scrollbar:H,track:A,handle:D}},oe=$=>{const{Yt:D,Wt:A}=$,H=G(D[0]);return W({},H,{clone:()=>{const S=G(A());return b({hn:!0}),S}})};return W({},{target:h,host:y,padding:E||M,viewport:M,content:k||M,scrollOffsetElement:L,scrollEventElement:O,scrollbarHorizontal:oe(j),scrollbarVertical:oe(K)})},update:h=>b({Dt:h,At:!0}),destroy:U(B,!1),plugin:h=>d[be(h)[0]]};return ne(l,[F]),bs(c,g),Ko(Po,xe,[g,v,d]),ws(C.wn.wt,!r&&n.cancel)?(B(!0),g):(ne(l,V()),T("initialized",[g]),g.update(),g)}return a};xe.plugin=n=>{const t=Ne(n),o=t?n:[n],s=o.map(r=>Ko(r,xe)[0]);return Vs(o),t?s:s[0]};xe.valid=n=>{const t=n&&n.elements,o=we(t)&&t();return Ct(o)&&!!jo(o.target)};xe.env=()=>{const{T:n,k:t,R:o,V:s,B:r,F:c,U:a,P:i,N:l,q:d}=Be();return W({},{scrollbarsSize:n,scrollbarsOverlaid:t,scrollbarsHiding:o,scrollTimeline:s,staticDefaultInitialization:r,staticDefaultOptions:c,getDefaultInitialization:a,setDefaultInitialization:i,getDefaultOptions:l,setDefaultOptions:d})};xe.nonce=hs;function Is(){let n;const t=e.ref(null),o=Math.floor(Math.random()*2**32),s=e.ref(!1),r=e.ref([]),c=()=>r.value,a=()=>n.getSelection(),i=()=>r.value.length,l=()=>n.clearSelection(!0),d=e.ref(),m=e.ref(null),u=e.ref(null),v=e.ref(null),f=e.ref(null);function p(){n=new Vr({area:t.value,keyboardDrag:!1,selectedClass:"vf-explorer-selected",selectorClass:"vf-explorer-selector"}),n.subscribe("DS:start:pre",({items:x,event:C,isDragging:F})=>{if(F)n.Interaction._reset(C);else{s.value=!1;const B=t.value.offsetWidth-C.offsetX,g=t.value.offsetHeight-C.offsetY;B<15&&g<15&&n.Interaction._reset(C),C.target.classList.contains("os-scrollbar-handle")&&n.Interaction._reset(C)}}),document.addEventListener("dragleave",x=>{!x.buttons&&s.value&&(s.value=!1)})}const w=()=>e.nextTick(()=>{n.addSelection(n.getSelectables()),_()}),_=()=>{r.value=n.getSelection().map(x=>JSON.parse(x.dataset.item)),d.value(r.value)},N=()=>e.nextTick(()=>{const x=c().map(C=>C.path);l(),n.setSettings({selectables:document.getElementsByClassName("vf-item-"+o)}),n.addSelection(n.getSelectables().filter(C=>x.includes(JSON.parse(C.dataset.item).path))),_(),V()}),T=x=>{d.value=x,n.subscribe("DS:end",({items:C,event:F,isDragging:B})=>{r.value=C.map(g=>JSON.parse(g.dataset.item)),x(C.map(g=>JSON.parse(g.dataset.item)))})},V=()=>{m.value&&(t.value.getBoundingClientRect().height{if(!m.value)return;const{scrollOffsetElement:C}=m.value.elements();C.scrollTo({top:t.value.scrollTop,left:0})};return e.onMounted(()=>{xe(v.value,{scrollbars:{theme:"vf-theme-dark dark:vf-theme-light"},plugins:{OverlayScrollbars:xe}},{initialized:x=>{m.value=x},scroll:(x,C)=>{const{scrollOffsetElement:F}=x.elements();t.value.scrollTo({top:F.scrollTop,left:0})}}),p(),V(),f.value=new ResizeObserver(V),f.value.observe(t.value),t.value.addEventListener("scroll",b),n.subscribe("DS:scroll",({isDragging:x})=>x||b())}),e.onUnmounted(()=>{n&&n.stop(),f.value&&f.value.disconnect()}),e.onUpdated(()=>{n&&n.Area.reset()}),{area:t,explorerId:o,isDraggingRef:s,scrollBar:u,scrollBarContainer:v,getSelected:c,getSelection:a,selectAll:w,clearSelection:l,refreshSelection:N,getCount:i,onSelect:T}}function Us(n,t){const o=e.ref(n),s=e.ref(t),r=e.ref([]),c=e.ref([]),a=e.ref([]),i=e.ref(!1),l=e.ref(5);let d=!1,m=!1;const u=e.reactive({adapter:o,storages:[],dirname:s,files:[]});function v(){let T=[],V=[],b=s.value??o.value+"://";b.length===0&&(r.value=[]),b.replace(o.value+"://","").split("/").forEach(function(F){T.push(F),T.join("/")!==""&&V.push({basename:F,name:F,path:o.value+"://"+T.join("/"),type:"dir"})}),c.value=V;const[x,C]=p(V,l.value);a.value=C,r.value=x}function f(T){l.value=T,v()}function p(T,V){return T.length>V?[T.slice(-V),T.slice(0,-V)]:[T,[]]}function w(T=null){i.value=T??!i.value}function _(){return r.value&&r.value.length&&!m}const N=e.computed(()=>{var T;return((T=r.value[r.value.length-2])==null?void 0:T.path)??o.value+"://"});return e.onMounted(()=>{}),e.watch(s,v),e.onMounted(v),{adapter:o,path:s,loading:d,searchMode:m,data:u,breadcrumbs:r,breadcrumbItems:c,limitBreadcrumbItems:f,hiddenBreadcrumbs:a,showHiddenBreadcrumbs:i,toggleHiddenBreadcrumbs:w,isGoUpAvailable:_,parentFolderPath:N}}const qs=(n,t)=>{const o=Dr(n.id),s=Er(),r=o.getStore("metricUnits",!1),c=Fr(o,n.theme),a=t.i18n,i=n.locale??t.locale,l=o.getStore("adapter"),d=v=>Array.isArray(v)?v:Ar,m=o.getStore("persist-path",n.persist),u=m?o.getStore("path",n.path):n.path;return e.reactive({version:Lr,root:null,debug:n.debug,emitter:s,storage:o,i18n:Mr(o,i,s,a),modal:Hr(),dragSelect:e.computed(()=>Is()),requester:$r(n.request),features:d(n.features),view:o.getStore("viewport","grid"),fullScreen:o.getStore("full-screen",n.fullScreen),showTreeView:o.getStore("show-tree-view",n.showTreeView),pinnedFolders:o.getStore("pinned-folders",n.pinnedFolders),treeViewData:[],selectButton:n.selectButton,maxFileSize:n.maxFileSize,theme:c,metricUnits:r,filesize:r?lo:so,compactListView:o.getStore("compact-list-view",!0),persist:m,showThumbnails:o.getStore("show-thumbnails",n.showThumbnails),fs:Us(l,u)})},js={class:"vuefinder__modal-layout__container"},Ps={class:"vuefinder__modal-layout__content"},Gs={class:"vuefinder__modal-layout__footer"},Ce={__name:"ModalLayout",setup(n){const t=e.ref(null),o=e.inject("ServiceContainer");return e.onMounted(()=>{const s=document.querySelector(".v-f-modal input");s&&s.focus(),e.nextTick(()=>{if(document.querySelector(".v-f-modal input")&&window.innerWidth<768){const r=t.value.getBoundingClientRect().bottom+16;window.scrollTo({top:r,left:0,behavior:"smooth"})}})}),(s,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder__modal-layout","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",onKeyup:r[1]||(r[1]=e.withKeys(c=>e.unref(o).modal.close(),["esc"])),tabindex:"0"},[r[2]||(r[2]=e.createElementVNode("div",{class:"vuefinder__modal-layout__overlay"},null,-1)),e.createElementVNode("div",js,[e.createElementVNode("div",{class:"vuefinder__modal-layout__wrapper",onMousedown:r[0]||(r[0]=e.withModifiers(c=>e.unref(o).modal.close(),["self"]))},[e.createElementVNode("div",{ref_key:"modalBody",ref:t,class:"vuefinder__modal-layout__body"},[e.createElementVNode("div",Ps,[e.renderSlot(s.$slots,"default")]),e.createElementVNode("div",Gs,[e.renderSlot(s.$slots,"buttons")])],512)],32)])],32))}},Ks=(n,t)=>{const o=n.__vccOpts||n;for(const[s,r]of t)o[s]=r;return o},Ws={props:{on:{type:String,required:!0}},setup(n,{emit:t,slots:o}){const s=e.inject("ServiceContainer"),r=e.ref(!1),{t:c}=s.i18n;let a=null;const i=()=>{clearTimeout(a),r.value=!0,a=setTimeout(()=>{r.value=!1},2e3)};return e.onMounted(()=>{s.emitter.on(n.on,i)}),e.onUnmounted(()=>{clearTimeout(a)}),{shown:r,t:c}}},Ys={key:1};function Xs(n,t,o,s,r,c){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vuefinder__action-message",{"vuefinder__action-message--hidden":!s.shown}])},[n.$slots.default?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock("span",Ys,e.toDisplayString(s.t("Saved.")),1))],2)}const Ge=Ks(Ws,[["render",Xs]]),Js={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",viewBox:"0 0 24 24"};function Zs(n,t){return e.openBlock(),e.createElementBlock("svg",Js,t[0]||(t[0]=[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.87q.11.06.22.127c.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.992a8 8 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.124a7 7 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-.87a7 7 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-.991a7 7 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-.124q.108-.066.22-.128c.332-.183.582-.495.644-.869z"},null,-1),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0"},null,-1)]))}const Qs={render:Zs},el={class:"vuefinder__modal-header"},tl={class:"vuefinder__modal-header__icon-container"},nl={class:"vuefinder__modal-header__title",id:"modal-title"},Le={__name:"ModalHeader",props:{title:{type:String,required:!0},icon:{type:Object,required:!0}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",tl,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"vuefinder__modal-header__icon"}))]),e.createElementVNode("h3",nl,e.toDisplayString(n.title),1)]))}},ol={class:"vuefinder__about-modal__content"},rl={class:"vuefinder__about-modal__main"},sl={class:"vuefinder__about-modal__tabs","aria-label":"Tabs"},ll=["onClick","aria-current"],al={key:0,class:"vuefinder__about-modal__tab-content"},cl={class:"vuefinder__about-modal__description"},il={href:"https://vuefinder.ozdemir.be",class:"vuefinder__about-modal__link",target:"_blank"},dl={href:"https://github.com/n1crack/vuefinder",class:"vuefinder__about-modal__link",target:"_blank"},ul={key:1,class:"vuefinder__about-modal__tab-content"},ml={class:"vuefinder__about-modal__description"},fl={class:"vuefinder__about-modal__settings"},vl={class:"vuefinder__about-modal__setting flex"},pl={class:"vuefinder__about-modal__setting-input"},_l={class:"vuefinder__about-modal__setting-label"},hl={for:"metric_unit",class:"vuefinder__about-modal__label"},gl={class:"vuefinder__about-modal__setting flex"},kl={class:"vuefinder__about-modal__setting-input"},wl={class:"vuefinder__about-modal__setting-label"},bl={for:"large_icons",class:"vuefinder__about-modal__label"},yl={class:"vuefinder__about-modal__setting flex"},El={class:"vuefinder__about-modal__setting-input"},Vl={class:"vuefinder__about-modal__setting-label"},Sl={for:"persist_path",class:"vuefinder__about-modal__label"},Nl={class:"vuefinder__about-modal__setting flex"},xl={class:"vuefinder__about-modal__setting-input"},Bl={class:"vuefinder__about-modal__setting-label"},Cl={for:"show_thumbnails",class:"vuefinder__about-modal__label"},$l={class:"vuefinder__about-modal__setting"},Dl={class:"vuefinder__about-modal__setting-input"},Tl={for:"theme",class:"vuefinder__about-modal__label"},Ml={class:"vuefinder__about-modal__setting-label"},Al=["label"],Ll=["value"],Ol={key:0,class:"vuefinder__about-modal__setting"},Fl={class:"vuefinder__about-modal__setting-input"},Hl={for:"language",class:"vuefinder__about-modal__label"},Rl={class:"vuefinder__about-modal__setting-label"},zl=["label"],Il=["value"],Ul={key:2,class:"vuefinder__about-modal__tab-content"},ql={class:"vuefinder__about-modal__shortcuts"},jl={class:"vuefinder__about-modal__shortcut"},Pl={class:"vuefinder__about-modal__shortcut"},Gl={class:"vuefinder__about-modal__shortcut"},Kl={class:"vuefinder__about-modal__shortcut"},Wl={class:"vuefinder__about-modal__shortcut"},Yl={class:"vuefinder__about-modal__shortcut"},Xl={class:"vuefinder__about-modal__shortcut"},Jl={class:"vuefinder__about-modal__shortcut"},Zl={class:"vuefinder__about-modal__shortcut"},Ql={key:3,class:"vuefinder__about-modal__tab-content"},ea={class:"vuefinder__about-modal__description"},Xo={__name:"ModalAbout",setup(n){const t=e.inject("ServiceContainer"),{setStore:o,clearStore:s}=t.storage,{t:r}=t.i18n,c={ABOUT:"about",SETTINGS:"settings",SHORTCUTS:"shortcuts",RESET:"reset"},a=e.computed(()=>[{name:r("About"),key:c.ABOUT},{name:r("Settings"),key:c.SETTINGS},{name:r("Shortcuts"),key:c.SHORTCUTS},{name:r("Reset"),key:c.RESET}]),i=e.ref("about"),l=async()=>{s(),location.reload()},d=T=>{t.theme.set(T),t.emitter.emit("vf-theme-saved")},m=()=>{t.metricUnits=!t.metricUnits,t.filesize=t.metricUnits?lo:so,o("metricUnits",t.metricUnits),t.emitter.emit("vf-metric-units-saved")},u=()=>{t.compactListView=!t.compactListView,o("compactListView",t.compactListView),t.emitter.emit("vf-compact-view-saved")},v=()=>{t.showThumbnails=!t.showThumbnails,o("show-thumbnails",t.showThumbnails),t.emitter.emit("vf-show-thumbnails-saved")},f=()=>{t.persist=!t.persist,o("persist-path",t.persist),t.emitter.emit("vf-persist-path-saved")},{i18n:p}=e.inject("VueFinderOptions"),_=Object.fromEntries(Object.entries({ar:"Arabic (العربيّة)",en:"English",fr:"French (Français)",de:"German (Deutsch)",fa:"Persian (فارسی)",he:"Hebrew (עִברִית)",hi:"Hindi (हिंदी)",ru:"Russian (Pусский)",sv:"Swedish (Svenska)",tr:"Turkish (Türkçe)",zhCN:"Simplified Chinese (简体中文)",zhTW:"Traditional Chinese (繁體中文)"}).filter(([T])=>Object.keys(p).includes(T))),N=e.computed(()=>({system:r("System"),light:r("Light"),dark:r("Dark")}));return(T,V)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:V[7]||(V[7]=b=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(r)("Close")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",ol,[e.createVNode(Le,{icon:e.unref(Qs),title:"Vuefinder "+e.unref(t).version},null,8,["icon","title"]),e.createElementVNode("div",rl,[e.createElementVNode("div",null,[e.createElementVNode("div",null,[e.createElementVNode("nav",sl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,b=>(e.openBlock(),e.createElementBlock("button",{key:b.name,onClick:x=>i.value=b.key,class:e.normalizeClass([b.key===i.value?"vuefinder__about-modal__tab--active":"vuefinder__about-modal__tab--inactive","vuefinder__about-modal__tab"]),"aria-current":b.current?"page":void 0},e.toDisplayString(b.name),11,ll))),128))])])]),i.value===c.ABOUT?(e.openBlock(),e.createElementBlock("div",al,[e.createElementVNode("div",cl,e.toDisplayString(e.unref(r)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")),1),e.createElementVNode("a",il,e.toDisplayString(e.unref(r)("Project home")),1),e.createElementVNode("a",dl,e.toDisplayString(e.unref(r)("Follow on GitHub")),1)])):e.createCommentVNode("",!0),i.value===c.SETTINGS?(e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",ml,e.toDisplayString(e.unref(r)("Customize your experience with the following settings")),1),e.createElementVNode("div",fl,[e.createElementVNode("fieldset",null,[e.createElementVNode("div",vl,[e.createElementVNode("div",pl,[e.withDirectives(e.createElementVNode("input",{id:"metric_unit",name:"metric_unit",type:"checkbox","onUpdate:modelValue":V[0]||(V[0]=b=>e.unref(t).metricUnits=b),onClick:m,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).metricUnits]])]),e.createElementVNode("div",_l,[e.createElementVNode("label",hl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Use Metric Units"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-metric-units-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",gl,[e.createElementVNode("div",kl,[e.withDirectives(e.createElementVNode("input",{id:"large_icons",name:"large_icons",type:"checkbox","onUpdate:modelValue":V[1]||(V[1]=b=>e.unref(t).compactListView=b),onClick:u,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).compactListView]])]),e.createElementVNode("div",wl,[e.createElementVNode("label",bl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Compact list view"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-compact-view-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",yl,[e.createElementVNode("div",El,[e.withDirectives(e.createElementVNode("input",{id:"persist_path",name:"persist_path",type:"checkbox","onUpdate:modelValue":V[2]||(V[2]=b=>e.unref(t).persist=b),onClick:f,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).persist]])]),e.createElementVNode("div",Vl,[e.createElementVNode("label",Sl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Persist path on reload"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-persist-path-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",Nl,[e.createElementVNode("div",xl,[e.withDirectives(e.createElementVNode("input",{id:"show_thumbnails",name:"show_thumbnails",type:"checkbox","onUpdate:modelValue":V[3]||(V[3]=b=>e.unref(t).showThumbnails=b),onClick:v,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).showThumbnails]])]),e.createElementVNode("div",Bl,[e.createElementVNode("label",Cl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Show thumbnails"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-show-thumbnails-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",$l,[e.createElementVNode("div",Dl,[e.createElementVNode("label",Tl,e.toDisplayString(e.unref(r)("Theme")),1)]),e.createElementVNode("div",Ml,[e.withDirectives(e.createElementVNode("select",{id:"theme","onUpdate:modelValue":V[4]||(V[4]=b=>e.unref(t).theme.value=b),onChange:V[5]||(V[5]=b=>d(b.target.value)),class:"vuefinder__about-modal__select"},[e.createElementVNode("optgroup",{label:e.unref(r)("Theme")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(b,x)=>(e.openBlock(),e.createElementBlock("option",{value:x},e.toDisplayString(b),9,Ll))),256))],8,Al)],544),[[e.vModelSelect,e.unref(t).theme.value]]),e.createVNode(Ge,{class:"ms-3",on:"vf-theme-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])]),e.unref(t).features.includes(e.unref(Z).LANGUAGE)&&Object.keys(e.unref(_)).length>1?(e.openBlock(),e.createElementBlock("div",Ol,[e.createElementVNode("div",Fl,[e.createElementVNode("label",Hl,e.toDisplayString(e.unref(r)("Language")),1)]),e.createElementVNode("div",Rl,[e.withDirectives(e.createElementVNode("select",{id:"language","onUpdate:modelValue":V[6]||(V[6]=b=>e.unref(t).i18n.locale=b),class:"vuefinder__about-modal__select"},[e.createElementVNode("optgroup",{label:e.unref(r)("Language")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(b,x)=>(e.openBlock(),e.createElementBlock("option",{value:x},e.toDisplayString(b),9,Il))),256))],8,zl)],512),[[e.vModelSelect,e.unref(t).i18n.locale]]),e.createVNode(Ge,{class:"ms-3",on:"vf-language-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0),i.value===c.SHORTCUTS?(e.openBlock(),e.createElementBlock("div",Ul,[e.createElementVNode("div",ql,[e.createElementVNode("div",jl,[e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("Rename")),1),V[8]||(V[8]=e.createElementVNode("kbd",null,"F2",-1))]),e.createElementVNode("div",Pl,[e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("Refresh")),1),V[9]||(V[9]=e.createElementVNode("kbd",null,"F5",-1))]),e.createElementVNode("div",Gl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Delete"))+" ",1),V[10]||(V[10]=e.createElementVNode("kbd",null,"Del",-1))]),e.createElementVNode("div",Kl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Escape"))+" ",1),V[11]||(V[11]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Esc")],-1))]),e.createElementVNode("div",Wl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Select All"))+" ",1),V[12]||(V[12]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"A")],-1))]),e.createElementVNode("div",Yl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Search"))+" ",1),V[13]||(V[13]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"F")],-1))]),e.createElementVNode("div",Xl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Toggle Sidebar"))+" ",1),V[14]||(V[14]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"E")],-1))]),e.createElementVNode("div",Jl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Open Settings"))+" ",1),V[15]||(V[15]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,",")],-1))]),e.createElementVNode("div",Zl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Toggle Full Screen"))+" ",1),V[16]||(V[16]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"Enter")],-1))])])])):e.createCommentVNode("",!0),i.value===c.RESET?(e.openBlock(),e.createElementBlock("div",Ql,[e.createElementVNode("div",ea,e.toDisplayString(e.unref(r)("Reset all settings to default")),1),e.createElementVNode("button",{onClick:l,type:"button",class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(r)("Reset Settings")),1)])):e.createCommentVNode("",!0)])])]),_:1}))}},ta=["title"],$e={__name:"Message",props:{error:{type:Boolean,default:!1}},emits:["hidden"],setup(n,{emit:t}){var d;const o=t,s=e.inject("ServiceContainer"),{t:r}=s.i18n,c=e.ref(!1),a=e.ref(null),i=e.ref((d=a.value)==null?void 0:d.strMessage);e.watch(i,()=>c.value=!1);const l=()=>{o("hidden"),c.value=!0};return(m,u)=>(e.openBlock(),e.createElementBlock("div",null,[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"strMessage",ref:a,class:e.normalizeClass(["vuefinder__message",n.error?"vuefinder__message--error":"vuefinder__message--success"])},[e.renderSlot(m.$slots,"default"),e.createElementVNode("div",{class:"vuefinder__message__close",onClick:l,title:e.unref(r)("Close")},u[0]||(u[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"vuefinder__message__icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,ta)],2))]))}},na={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function oa(n,t){return e.openBlock(),e.createElementBlock("svg",na,t[0]||(t[0]=[e.createElementVNode("path",{d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.089 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0"},null,-1)]))}const Jo={render:oa},ra={class:"vuefinder__delete-modal__content"},sa={class:"vuefinder__delete-modal__form"},la={class:"vuefinder__delete-modal__description"},aa={class:"vuefinder__delete-modal__files vf-scrollbar"},ca={class:"vuefinder__delete-modal__file"},ia={key:0,class:"vuefinder__delete-modal__icon vuefinder__delete-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},da={key:1,class:"vuefinder__delete-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ua={class:"vuefinder__delete-modal__file-name"},ma={class:"vuefinder__delete-modal__warning"},Dn={__name:"ModalDelete",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items),r=e.ref(""),c=()=>{s.value.length&&t.emitter.emit("vf-fetch",{params:{q:"delete",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{items:s.value.map(({path:a,type:i})=>({path:a,type:i}))},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("Files deleted.")})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-danger"},e.toDisplayString(e.unref(o)("Yes, Delete!")),1),e.createElementVNode("button",{type:"button",onClick:i[1]||(i[1]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1),e.createElementVNode("div",ma,e.toDisplayString(e.unref(o)("This action cannot be undone.")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Jo),title:e.unref(o)("Delete files")},null,8,["icon","title"]),e.createElementVNode("div",ra,[e.createElementVNode("div",sa,[e.createElementVNode("p",la,e.toDisplayString(e.unref(o)("Are you sure you want to delete these files?")),1),e.createElementVNode("div",aa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>(e.openBlock(),e.createElementBlock("p",ca,[l.type==="dir"?(e.openBlock(),e.createElementBlock("svg",ia,i[2]||(i[2]=[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)]))):(e.openBlock(),e.createElementBlock("svg",da,i[3]||(i[3]=[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)]))),e.createElementVNode("span",ua,e.toDisplayString(l.basename),1)]))),256))]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[0]||(i[0]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},fa={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function va(n,t){return e.openBlock(),e.createElementBlock("svg",fa,t[0]||(t[0]=[e.createElementVNode("path",{d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"},null,-1)]))}const Zo={render:va},pa={class:"vuefinder__rename-modal__content"},_a={class:"vuefinder__rename-modal__item"},ha={class:"vuefinder__rename-modal__item-info"},ga={key:0,class:"vuefinder__rename-modal__icon vuefinder__rename-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ka={key:1,class:"vuefinder__rename-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},wa={class:"vuefinder__rename-modal__item-name"},Tn={__name:"ModalRename",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items[0]),r=e.ref(t.modal.data.items[0].basename),c=e.ref(""),a=()=>{r.value!=""&&t.emitter.emit("vf-fetch",{params:{q:"rename",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{item:s.value.path,name:r.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("%s is renamed.",r.value)})},onError:i=>{c.value=o(i.message)}})};return(i,l)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:a,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Rename")),1),e.createElementVNode("button",{type:"button",onClick:l[2]||(l[2]=d=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Zo),title:e.unref(o)("Rename")},null,8,["icon","title"]),e.createElementVNode("div",pa,[e.createElementVNode("div",_a,[e.createElementVNode("p",ha,[s.value.type==="dir"?(e.openBlock(),e.createElementBlock("svg",ga,l[3]||(l[3]=[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)]))):(e.openBlock(),e.createElementBlock("svg",ka,l[4]||(l[4]=[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)]))),e.createElementVNode("span",wa,e.toDisplayString(s.value.basename),1)]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),onKeyup:e.withKeys(a,["enter"]),class:"vuefinder__rename-modal__input",placeholder:"Name",type:"text"},null,544),[[e.vModelText,r.value]]),c.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:l[1]||(l[1]=d=>c.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},De={ESCAPE:"Escape",F2:"F2",F5:"F5",DELETE:"Delete",ENTER:"Enter",BACKSLASH:"Backslash",KEY_A:"KeyA",KEY_E:"KeyE",KEY_F:"KeyF"};function ba(n){const t=o=>{o.code===De.ESCAPE&&(n.modal.close(),n.root.focus()),!n.modal.visible&&(n.fs.searchMode||(o.code===De.F2&&n.features.includes(Z.RENAME)&&(n.dragSelect.getCount()!==1||n.modal.open(Tn,{items:n.dragSelect.getSelected()})),o.code===De.F5&&n.emitter.emit("vf-fetch",{params:{q:"index",adapter:n.fs.adapter,path:n.fs.data.dirname}}),o.code===De.DELETE&&(!n.dragSelect.getCount()||n.modal.open(Dn,{items:n.dragSelect.getSelected()})),o.metaKey&&o.code===De.BACKSLASH&&n.modal.open(Xo),o.metaKey&&o.code===De.KEY_F&&n.features.includes(Z.SEARCH)&&(n.fs.searchMode=!0,o.preventDefault()),o.metaKey&&o.code===De.KEY_E&&(n.showTreeView=!n.showTreeView,n.storage.setStore("show-tree-view",n.showTreeView)),o.metaKey&&o.code===De.ENTER&&(n.fullScreen=!n.fullScreen,n.root.focus()),o.metaKey&&o.code===De.KEY_A&&(n.dragSelect.selectAll(),o.preventDefault())))};e.onMounted(()=>{n.root.addEventListener("keydown",t)})}const ya={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Ea(n,t){return e.openBlock(),e.createElementBlock("svg",ya,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44z"},null,-1)]))}const Qo={render:Ea},Va={class:"vuefinder__new-folder-modal__content"},Sa={class:"vuefinder__new-folder-modal__form"},Na={class:"vuefinder__new-folder-modal__description"},xa=["placeholder"],er={__name:"ModalNewFolder",setup(n){const t=e.inject("ServiceContainer");t.storage;const{t:o}=t.i18n,s=e.ref(""),r=e.ref(""),c=()=>{s.value!==""&&t.emitter.emit("vf-fetch",{params:{q:"newfolder",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{name:s.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("%s is created.",s.value)})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:i[2]||(i[2]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Qo),title:e.unref(o)("New Folder")},null,8,["icon","title"]),e.createElementVNode("div",Va,[e.createElementVNode("div",Sa,[e.createElementVNode("p",Na,e.toDisplayString(e.unref(o)("Create a new folder")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),onKeyup:e.withKeys(c,["enter"]),class:"vuefinder__new-folder-modal__input",placeholder:e.unref(o)("Folder Name"),type:"text"},null,40,xa),[[e.vModelText,s.value]]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[1]||(i[1]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},Ba={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Ca(n,t){return e.openBlock(),e.createElementBlock("svg",Ba,t[0]||(t[0]=[e.createElementVNode("path",{d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-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 0 0-9-9"},null,-1)]))}const tr={render:Ca},$a={class:"vuefinder__new-file-modal__content"},Da={class:"vuefinder__new-file-modal__form"},Ta={class:"vuefinder__new-file-modal__description"},Ma=["placeholder"],Aa={__name:"ModalNewFile",setup(n){const t=e.inject("ServiceContainer");t.storage;const{t:o}=t.i18n,s=e.ref(""),r=e.ref(""),c=()=>{s.value!==""&&t.emitter.emit("vf-fetch",{params:{q:"newfile",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{name:s.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("%s is created.",s.value)})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:i[2]||(i[2]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(tr),title:e.unref(o)("New File")},null,8,["icon","title"]),e.createElementVNode("div",$a,[e.createElementVNode("div",Da,[e.createElementVNode("p",Ta,e.toDisplayString(e.unref(o)("Create a new file")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),onKeyup:e.withKeys(c,["enter"]),class:"vuefinder__new-file-modal__input",placeholder:e.unref(o)("File Name"),type:"text"},null,40,Ma),[[e.vModelText,s.value]]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[1]||(i[1]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}};function pn(n,t=14){let o=`((?=([\\w\\W]{0,${t}}))([\\w\\W]{${t+1},})([\\w\\W]{8,}))`;return n.replace(new RegExp(o),"$2..$4")}const La={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Oa(n,t){return e.openBlock(),e.createElementBlock("svg",La,t[0]||(t[0]=[e.createElementVNode("path",{d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"},null,-1)]))}const nr={render:Oa},Fa={class:"vuefinder__upload-modal__content"},Ha={key:0,class:"pointer-events-none"},Ra={key:1,class:"pointer-events-none"},za=["disabled"],Ia=["disabled"],Ua={class:"vuefinder__upload-modal__file-list vf-scrollbar"},qa=["textContent"],ja={class:"vuefinder__upload-modal__file-info"},Pa={class:"vuefinder__upload-modal__file-name hidden md:block"},Ga={class:"vuefinder__upload-modal__file-name md:hidden"},Ka={key:0,class:"ml-auto"},Wa=["title","disabled","onClick"],Ya={key:0,class:"py-2"},Xa=["disabled"],Ja={__name:"ModalUpload",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=o("uppy"),r={PENDING:0,CANCELED:1,UPLOADING:2,ERROR:3,DONE:10},c=e.ref({QUEUE_ENTRY_STATUS:r}),a=e.ref(null),i=e.ref(null),l=e.ref(null),d=e.ref(null),m=e.ref(null),u=e.ref(null),v=e.ref([]),f=e.ref(""),p=e.ref(!1),w=e.ref(!1);let _;function N(E){return v.value.findIndex(M=>M.id===E)}function T(E,M=null){M=M??(E.webkitRelativePath||E.name),_.addFile({name:M,type:E.type,data:E,source:"Local"})}function V(E){switch(E.status){case r.DONE:return"text-green-600";case r.ERROR:return"text-red-600";case r.CANCELED:return"text-red-600";case r.PENDING:default:return""}}const b=E=>{switch(E.status){case r.DONE:return"✓";case r.ERROR:case r.CANCELED:return"!";case r.PENDING:default:return"..."}};function x(){d.value.click()}function C(){if(!p.value){if(!v.value.filter(E=>E.status!==r.DONE).length){f.value=o("Please select file to upload first.");return}f.value="",_.retryAll(),_.upload()}}function F(){_.cancelAll({reason:"user"}),v.value.forEach(E=>{E.status!==r.DONE&&(E.status=r.CANCELED,E.statusName=o("Canceled"))}),p.value=!1}function B(E){p.value||(_.removeFile(E.id,"removed-by-user"),v.value.splice(N(E.id),1))}function g(E){if(!p.value){if(_.cancelAll({reason:"user"}),E){const M=[];v.value.forEach(k=>{k.status!==r.DONE&&M.push(k)}),v.value=[],M.forEach(k=>{T(k.originalFile,k.name)});return}v.value.splice(0)}}function h(){t.modal.close()}function y(){return t.requester.transformRequestParams({url:"",method:"post",params:{q:"upload",adapter:t.fs.adapter,path:t.fs.data.dirname}})}return e.onMounted(async()=>{_=new Sr({debug:t.debug,restrictions:{maxFileSize:Or(t.maxFileSize)},locale:s,onBeforeFileAdded(k,L){if(L[k.id]!=null){const j=N(k.id);v.value[j].status===r.PENDING&&(f.value=_.i18n("noDuplicates",{fileName:k.name})),v.value=v.value.filter(K=>K.id!==k.id)}return v.value.push({id:k.id,name:k.name,size:t.filesize(k.size),status:r.PENDING,statusName:o("Pending upload"),percent:null,originalFile:k.data}),!0}}),_.use(Nr,{endpoint:"WILL_BE_REPLACED_BEFORE_UPLOAD",limit:5,timeout:0,getResponseError(k,L){let O;try{O=JSON.parse(k).message}catch{O=o("Cannot parse server response.")}return new Error(O)}}),_.on("restriction-failed",(k,L)=>{const O=v.value[N(k.id)];B(O),f.value=L.message}),_.on("upload",()=>{const k=y();_.setMeta({...k.body});const L=_.getPlugin("XHRUpload");L.opts.method=k.method,L.opts.endpoint=k.url+"?"+new URLSearchParams(k.params),L.opts.headers=k.headers,delete k.headers["Content-Type"],p.value=!0,v.value.forEach(O=>{O.status!==r.DONE&&(O.percent=null,O.status=r.UPLOADING,O.statusName=o("Pending upload"))})}),_.on("upload-progress",(k,L)=>{const O=Math.floor(L.bytesUploaded/L.bytesTotal*100);v.value[N(k.id)].percent=`${O}%`}),_.on("upload-success",k=>{const L=v.value[N(k.id)];L.status=r.DONE,L.statusName=o("Done")}),_.on("upload-error",(k,L)=>{const O=v.value[N(k.id)];O.percent=null,O.status=r.ERROR,L.isNetworkError?O.statusName=o("Network Error, Unable establish connection to the server or interrupted."):O.statusName=L?L.message:o("Unknown Error")}),_.on("error",k=>{f.value=k.message,p.value=!1,t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname},noCloseModal:!0})}),_.on("complete",()=>{p.value=!1,t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname},noCloseModal:!0})}),d.value.addEventListener("click",()=>{i.value.click()}),m.value.addEventListener("click",()=>{l.value.click()}),u.value.addEventListener("dragover",k=>{k.preventDefault(),w.value=!0}),u.value.addEventListener("dragleave",k=>{k.preventDefault(),w.value=!1});function E(k,L){L.isFile&&L.file(O=>k(L,O)),L.isDirectory&&L.createReader().readEntries(O=>{O.forEach(j=>{E(k,j)})})}u.value.addEventListener("drop",k=>{k.preventDefault(),w.value=!1;const L=/^[/\\](.+)/;[...k.dataTransfer.items].forEach(O=>{O.kind==="file"&&E((j,K)=>{const G=L.exec(j.fullPath);T(K,G[1])},O.webkitGetAsEntry())})});const M=({target:k})=>{const L=k.files;for(const O of L)T(O);k.value=""};i.value.addEventListener("change",M),l.value.addEventListener("change",M)}),e.onBeforeUnmount(()=>{_==null||_.close({reason:"unmount"})}),(E,M)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"vf-btn vf-btn-primary",disabled:p.value,onClick:e.withModifiers(C,["prevent"])},e.toDisplayString(e.unref(o)("Upload")),9,Xa),p.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"vf-btn vf-btn-secondary",onClick:e.withModifiers(F,["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(h,["prevent"])},e.toDisplayString(e.unref(o)("Close")),1))]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(nr),title:e.unref(o)("Upload Files")},null,8,["icon","title"]),e.createElementVNode("div",Fa,[e.createElementVNode("div",{class:"vuefinder__upload-modal__drop-area",ref_key:"dropArea",ref:u,onClick:x},[w.value?(e.openBlock(),e.createElementBlock("div",Ha,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:a,class:"vuefinder__upload-modal__buttons"},[e.createElementVNode("button",{ref_key:"pickFiles",ref:d,type:"button",class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Select Files")),513),e.createElementVNode("button",{ref_key:"pickFolders",ref:m,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:p.value,onClick:M[0]||(M[0]=k=>g(!1))},e.toDisplayString(e.unref(o)("Clear all")),9,za),e.createElementVNode("button",{type:"button",class:"vf-btn vf-btn-secondary",disabled:p.value,onClick:M[1]||(M[1]=k=>g(!0))},e.toDisplayString(e.unref(o)("Clear only successful")),9,Ia)],512),e.createElementVNode("div",Ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,k=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder__upload-modal__file-entry",key:k.id},[e.createElementVNode("span",{class:e.normalizeClass(["vuefinder__upload-modal__file-icon",V(k)])},[e.createElementVNode("span",{class:"vuefinder__upload-modal__file-icon-text",textContent:e.toDisplayString(b(k))},null,8,qa)],2),e.createElementVNode("div",ja,[e.createElementVNode("div",Pa,e.toDisplayString(e.unref(pn)(k.name,40))+" ("+e.toDisplayString(k.size)+")",1),e.createElementVNode("div",Ga,e.toDisplayString(e.unref(pn)(k.name,16))+" ("+e.toDisplayString(k.size)+")",1),e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__upload-modal__file-status",V(k)])},[e.createTextVNode(e.toDisplayString(k.statusName)+" ",1),k.status===c.value.QUEUE_ENTRY_STATUS.UPLOADING?(e.openBlock(),e.createElementBlock("b",Ka,e.toDisplayString(k.percent),1)):e.createCommentVNode("",!0)],2)]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["vuefinder__upload-modal__file-remove",p.value?"disabled":""]),title:e.unref(o)("Delete"),disabled:p.value,onClick:L=>B(k)},M[3]||(M[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"vuefinder__upload-modal__file-remove-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),10,Wa)]))),128)),v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ya,e.toDisplayString(e.unref(o)("No files selected!")),1))]),f.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:M[2]||(M[2]=k=>f.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("input",{ref_key:"internalFileInput",ref:i,type:"file",multiple:"",class:"hidden"},null,512),e.createElementVNode("input",{ref_key:"internalFolderInput",ref:l,type:"file",multiple:"",webkitdirectory:"",class:"hidden"},null,512)]),_:1}))}},Za={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function Qa(n,t){return e.openBlock(),e.createElementBlock("svg",Za,t[0]||(t[0]=[e.createElementVNode("path",{d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.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.125"},null,-1)]))}const or={render:Qa},ec={class:"vuefinder__unarchive-modal__content"},tc={class:"vuefinder__unarchive-modal__items"},nc={class:"vuefinder__unarchive-modal__item"},oc={key:0,class:"vuefinder__unarchive-modal__icon vuefinder__unarchive-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},rc={key:1,class:"vuefinder__unarchive-modal__icon vuefinder__unarchive-modal__icon--file",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},sc={class:"vuefinder__unarchive-modal__item-name"},lc={class:"vuefinder__unarchive-modal__info"},rr={__name:"ModalUnarchive",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items[0]),r=e.ref(""),c=e.ref([]),a=()=>{t.emitter.emit("vf-fetch",{params:{q:"unarchive",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{item:s.value.path},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("The file unarchived.")})},onError:i=>{r.value=o(i.message)}})};return(i,l)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:a,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Unarchive")),1),e.createElementVNode("button",{type:"button",onClick:l[1]||(l[1]=d=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(or),title:e.unref(o)("Unarchive")},null,8,["icon","title"]),e.createElementVNode("div",ec,[e.createElementVNode("div",tc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,d=>(e.openBlock(),e.createElementBlock("p",nc,[d.type==="dir"?(e.openBlock(),e.createElementBlock("svg",oc,l[2]||(l[2]=[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)]))):(e.openBlock(),e.createElementBlock("svg",rc,l[3]||(l[3]=[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)]))),e.createElementVNode("span",sc,e.toDisplayString(d.basename),1)]))),256)),e.createElementVNode("p",lc,e.toDisplayString(e.unref(o)("The archive will be unarchived at"))+" ("+e.toDisplayString(e.unref(t).fs.data.dirname)+")",1),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:l[0]||(l[0]=d=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},ac={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function cc(n,t){return e.openBlock(),e.createElementBlock("svg",ac,t[0]||(t[0]=[e.createElementVNode("path",{d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-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.125"},null,-1)]))}const sr={render:cc},ic={class:"vuefinder__archive-modal__content"},dc={class:"vuefinder__archive-modal__form"},uc={class:"vuefinder__archive-modal__files vf-scrollbar"},mc={class:"vuefinder__archive-modal__file"},fc={key:0,class:"vuefinder__archive-modal__icon vuefinder__archive-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},vc={key:1,class:"vuefinder__archive-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},pc={class:"vuefinder__archive-modal__file-name"},_c=["placeholder"],lr={__name:"ModalArchive",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(""),r=e.ref(""),c=e.ref(t.modal.data.items),a=()=>{c.value.length&&t.emitter.emit("vf-fetch",{params:{q:"archive",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{items:c.value.map(({path:i,type:l})=>({path:i,type:l})),name:s.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("The file(s) archived.")})},onError:i=>{r.value=o(i.message)}})};return(i,l)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:a,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Archive")),1),e.createElementVNode("button",{type:"button",onClick:l[2]||(l[2]=d=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(sr),title:e.unref(o)("Archive the files")},null,8,["icon","title"]),e.createElementVNode("div",ic,[e.createElementVNode("div",dc,[e.createElementVNode("div",uc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,d=>(e.openBlock(),e.createElementBlock("p",mc,[d.type==="dir"?(e.openBlock(),e.createElementBlock("svg",fc,l[3]||(l[3]=[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)]))):(e.openBlock(),e.createElementBlock("svg",vc,l[4]||(l[4]=[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)]))),e.createElementVNode("span",pc,e.toDisplayString(d.basename),1)]))),256))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=d=>s.value=d),onKeyup:e.withKeys(a,["enter"]),class:"vuefinder__archive-modal__input",placeholder:e.unref(o)("Archive name. (.zip file will be created)"),type:"text"},null,40,_c),[[e.vModelText,s.value]]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:l[1]||(l[1]=d=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},hc={xmlns:"http://www.w3.org/2000/svg",fill:"none",class:"animate-spin p-0.5 h-5 w-5 text-white ml-auto",viewBox:"0 0 24 24"};function gc(n,t){return e.openBlock(),e.createElementBlock("svg",hc,t[0]||(t[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4",class:"opacity-25 stroke-blue-900 dark:stroke-blue-100"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M4 12a8 8 0 0 1 8-8V0C5.373 0 0 5.373 0 12zm2 5.291A7.96 7.96 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938z",class:"opacity-75"},null,-1)]))}const Mn={render:gc},kc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function wc(n,t){return e.openBlock(),e.createElementBlock("svg",kc,t[0]||(t[0]=[e.createElementVNode("path",{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"},null,-1)]))}const bc={render:wc},yc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Ec(n,t){return e.openBlock(),e.createElementBlock("svg",yc,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9 9V4.5M9 9H4.5M9 9 3.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.5 5.25 5.25"},null,-1)]))}const Vc={render:Ec},Sc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function Nc(n,t){return e.openBlock(),e.createElementBlock("svg",Sc,t[0]||(t[0]=[e.createElementVNode("path",{d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18zM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18z"},null,-1)]))}const xc={render:Nc},Bc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function Cc(n,t){return e.openBlock(),e.createElementBlock("svg",Bc,t[0]||(t[0]=[e.createElementVNode("path",{d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75"},null,-1)]))}const $c={render:Cc},Dc={class:"vuefinder__toolbar"},Tc={key:0,class:"vuefinder__toolbar__actions"},Mc=["title"],Ac=["title"],Lc=["title"],Oc=["title"],Fc=["title"],Hc=["title"],Rc=["title"],zc={key:1,class:"vuefinder__toolbar__search-results"},Ic={class:"pl-2"},Uc={class:"dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded"},qc={class:"vuefinder__toolbar__controls"},jc=["title"],Pc=["title"],Gc={__name:"Toolbar",setup(n){const t=e.inject("ServiceContainer"),{setStore:o}=t.storage,{t:s}=t.i18n,r=t.dragSelect,c=e.ref("");t.emitter.on("vf-search-query",({newQuery:l})=>{c.value=l});const a=()=>{t.fullScreen=!t.fullScreen};e.watch(()=>t.fullScreen,()=>{t.fullScreen?document.querySelector("body").style.overflow="hidden":document.querySelector("body").style.overflow="",o("full-screen",t.fullScreen),t.emitter.emit("vf-fullscreen-toggle")});const i=()=>{t.view=t.view==="list"?"grid":"list",r.refreshSelection(),o("viewport",t.view)};return(l,d)=>(e.openBlock(),e.createElementBlock("div",Dc,[c.value.length?(e.openBlock(),e.createElementBlock("div",zc,[e.createElementVNode("div",Ic,[e.createTextVNode(e.toDisplayString(e.unref(s)("Search results for"))+" ",1),e.createElementVNode("span",Uc,e.toDisplayString(c.value),1)]),e.unref(t).fs.loading?(e.openBlock(),e.createBlock(e.unref(Mn),{key:0})):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Tc,[e.unref(t).features.includes(e.unref(Z).NEW_FOLDER)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mx-1.5",title:e.unref(s)("New Folder"),onClick:d[0]||(d[0]=m=>e.unref(t).modal.open(er,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(Qo))],8,Mc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).NEW_FILE)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mx-1.5",title:e.unref(s)("New File"),onClick:d[1]||(d[1]=m=>e.unref(t).modal.open(Aa,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(tr))],8,Ac)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).RENAME)?(e.openBlock(),e.createElementBlock("div",{key:2,class:"mx-1.5",title:e.unref(s)("Rename"),onClick:d[2]||(d[2]=m=>e.unref(r).getCount()!==1||e.unref(t).modal.open(Tn,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(Zo),{class:e.normalizeClass(e.unref(r).getCount()===1?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Lc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).DELETE)?(e.openBlock(),e.createElementBlock("div",{key:3,class:"mx-1.5",title:e.unref(s)("Delete"),onClick:d[3]||(d[3]=m=>!e.unref(r).getCount()||e.unref(t).modal.open(Dn,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(Jo),{class:e.normalizeClass(e.unref(r).getCount()?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Oc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).UPLOAD)?(e.openBlock(),e.createElementBlock("div",{key:4,class:"mx-1.5",title:e.unref(s)("Upload"),onClick:d[4]||(d[4]=m=>e.unref(t).modal.open(Ja,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(nr))],8,Fc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).UNARCHIVE)&&e.unref(r).getCount()===1&&e.unref(r).getSelected()[0].mime_type==="application/zip"?(e.openBlock(),e.createElementBlock("div",{key:5,class:"mx-1.5",title:e.unref(s)("Unarchive"),onClick:d[5]||(d[5]=m=>!e.unref(r).getCount()||e.unref(t).modal.open(rr,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(or),{class:e.normalizeClass(e.unref(r).getCount()?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Hc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).ARCHIVE)?(e.openBlock(),e.createElementBlock("div",{key:6,class:"mx-1.5",title:e.unref(s)("Archive"),onClick:d[6]||(d[6]=m=>!e.unref(r).getCount()||e.unref(t).modal.open(lr,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(sr),{class:e.normalizeClass(e.unref(r).getCount()?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Rc)):e.createCommentVNode("",!0)])),e.createElementVNode("div",qc,[e.unref(t).features.includes(e.unref(Z).FULL_SCREEN)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:a,class:"mx-1.5",title:e.unref(s)("Toggle Full Screen")},[e.unref(t).fullScreen?(e.openBlock(),e.createBlock(e.unref(Vc),{key:0})):(e.openBlock(),e.createBlock(e.unref(bc),{key:1}))],8,jc)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mx-1.5",title:e.unref(s)("Change View"),onClick:d[7]||(d[7]=m=>c.value.length||i())},[e.unref(t).view==="grid"?(e.openBlock(),e.createBlock(e.unref(xc),{key:0,class:e.normalizeClass(["vf-toolbar-icon",c.value.length?"vf-toolbar-icon-disabled":""])},null,8,["class"])):e.createCommentVNode("",!0),e.unref(t).view==="list"?(e.openBlock(),e.createBlock(e.unref($c),{key:1,class:e.normalizeClass(["vf-toolbar-icon",c.value.length?"vf-toolbar-icon-disabled":""])},null,8,["class"])):e.createCommentVNode("",!0)],8,Pc)])]))}},Kc=(n,t=0,o=!1)=>{let s;return(...r)=>{o&&!s&&n(...r),clearTimeout(s),s=setTimeout(()=>{n(...r)},t)}},oo=(n,t,o)=>{const s=e.ref(n);return e.customRef((r,c)=>({get(){return r(),s.value},set:Kc(a=>{s.value=a,c()},t,o)}))},Wc={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",viewBox:"0 0 24 24"};function Yc(n,t){return e.openBlock(),e.createElementBlock("svg",Wc,t[0]||(t[0]=[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 3"},null,-1)]))}const Xc={render:Yc},Jc={class:"vuefinder__move-modal__content"},Zc={class:"vuefinder__move-modal__description"},Qc={class:"vuefinder__move-modal__files vf-scrollbar"},ei={class:"vuefinder__move-modal__file"},ti={key:0,class:"vuefinder__move-modal__icon vuefinder__move-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ni={key:1,class:"vuefinder__move-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},oi={class:"vuefinder__move-modal__file-name"},ri={class:"vuefinder__move-modal__target-title"},si={class:"vuefinder__move-modal__target-directory"},li={class:"vuefinder__move-modal__target-path"},ai={class:"vuefinder__move-modal__selected-items"},_n={__name:"ModalMove",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items.from),r=e.ref(""),c=()=>{s.value.length&&t.emitter.emit("vf-fetch",{params:{q:"move",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{items:s.value.map(({path:a,type:i})=>({path:a,type:i})),item:t.modal.data.items.to.path},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("Files moved.",t.modal.data.items.to.name)})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Yes, Move!")),1),e.createElementVNode("button",{type:"button",onClick:i[1]||(i[1]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1),e.createElementVNode("div",ai,e.toDisplayString(e.unref(o)("%s item(s) selected.",s.value.length)),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Xc),title:e.unref(o)("Move files")},null,8,["icon","title"]),e.createElementVNode("div",Jc,[e.createElementVNode("p",Zc,e.toDisplayString(e.unref(o)("Are you sure you want to move these files?")),1),e.createElementVNode("div",Qc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>(e.openBlock(),e.createElementBlock("div",ei,[e.createElementVNode("div",null,[l.type==="dir"?(e.openBlock(),e.createElementBlock("svg",ti,i[2]||(i[2]=[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)]))):(e.openBlock(),e.createElementBlock("svg",ni,i[3]||(i[3]=[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)])))]),e.createElementVNode("div",oi,e.toDisplayString(l.path),1)]))),256))]),e.createElementVNode("h4",ri,e.toDisplayString(e.unref(o)("Target Directory")),1),e.createElementVNode("p",si,[i[4]||(i[4]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"vuefinder__move-modal__icon vuefinder__move-modal__icon--dir",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)),e.createElementVNode("span",li,e.toDisplayString(e.unref(t).modal.data.items.to.path),1)]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[0]||(i[0]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])]),_:1}))}},ci={xmlns:"http://www.w3.org/2000/svg",fill:"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",viewBox:"-40 -40 580 580"};function ii(n,t){return e.openBlock(),e.createElementBlock("svg",ci,t[0]||(t[0]=[e.createElementVNode("path",{d:"M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-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.2S334.3 224 344 224z"},null,-1)]))}const di={render:ii},ui={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-6 w-6 p-0.5 rounded",viewBox:"0 0 20 20"};function mi(n,t){return e.openBlock(),e.createElementBlock("svg",ui,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 9.707a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L11 7.414V15a1 1 0 1 1-2 0V7.414L6.707 9.707a1 1 0 0 1-1.414 0",class:"pointer-events-none","clip-rule":"evenodd"},null,-1)]))}const fi={render:mi},vi={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",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",viewBox:"0 0 24 24"};function pi(n,t){return e.openBlock(),e.createElementBlock("svg",vi,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"},null,-1)]))}const _i={render:pi},hi={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",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",viewBox:"0 0 20 20"};function gi(n,t){return e.openBlock(),e.createElementBlock("svg",hi,t[0]||(t[0]=[e.createElementVNode("path",{d:"M10.707 2.293a1 1 0 0 0-1.414 0l-7 7a1 1 0 0 0 1.414 1.414L4 10.414V17a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6.586l.293.293a1 1 0 0 0 1.414-1.414z",class:"pointer-events-none"},null,-1)]))}const ki={render:gi},wi={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",viewBox:"0 0 20 20"};function bi(n,t){return e.openBlock(),e.createElementBlock("svg",wi,t[0]||(t[0]=[e.createElementVNode("path",{d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607"},null,-1)]))}const yi={render:bi},Ei={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"w-6 h-6 cursor-pointer",viewBox:"0 0 24 24"};function Vi(n,t){return e.openBlock(),e.createElementBlock("svg",Ei,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"},null,-1)]))}const Si={render:Vi},Ni={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",class:"text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",viewBox:"0 0 24 24"};function xi(n,t){return e.openBlock(),e.createElementBlock("svg",Ni,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2"},null,-1)]))}const It={render:xi},Bi={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"h-6 w-6 p-1 rounded text-slate-700 dark:text-neutral-300 cursor-pointer",viewBox:"0 0 24 24"};function Ci(n,t){return e.openBlock(),e.createElementBlock("svg",Bi,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M9 6h11M12 12h8M15 18h5M5 6v.01M8 12v.01M11 18v.01"},null,-1)]))}const $i={render:Ci},Di={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 rounded text-slate-700 hover:bg-neutral-100 dark:fill-neutral-300 dark:hover:bg-gray-800 cursor-pointer",viewBox:"0 0 448 512"};function Ti(n,t){return e.openBlock(),e.createElementBlock("svg",Di,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8 256a56 56 0 1 1 112 0 56 56 0 1 1-112 0m160 0a56 56 0 1 1 112 0 56 56 0 1 1-112 0m216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112"},null,-1)]))}const Mi={render:Ti},Ai={class:"vuefinder__breadcrumb__container"},Li=["title"],Oi=["title"],Fi=["title"],Hi=["title"],Ri={class:"vuefinder__breadcrumb__list"},zi={key:0,class:"vuefinder__breadcrumb__hidden-list"},Ii={class:"relative"},Ui=["onDragover","onDragleave","onDrop","title","onClick"],qi={class:"vuefinder__breadcrumb__search-mode"},ji=["placeholder"],Pi={class:"vuefinder__breadcrumb__hidden-dropdown"},Gi=["onDrop","onClick"],Ki={class:"vuefinder__breadcrumb__hidden-item-content"},Wi={class:"vuefinder__breadcrumb__hidden-item-text"},Yi={__name:"Breadcrumb",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=t.dragSelect,{setStore:r}=t.storage,c=e.ref(null),a=oo(0,100);e.watch(a,B=>{const g=c.value.children;let h=0,y=0,E=5,M=1;t.fs.limitBreadcrumbItems(E),e.nextTick(()=>{for(let k=g.length-1;k>=0&&!(h+g[k].offsetWidth>a.value-40);k--)h+=parseInt(g[k].offsetWidth,10),y++;yE&&(y=E),t.fs.limitBreadcrumbItems(y)})});const i=()=>{a.value=c.value.offsetWidth};let l=e.ref(null);e.onMounted(()=>{l.value=new ResizeObserver(i),l.value.observe(c.value)}),e.onUnmounted(()=>{l.value.disconnect()});const d=(B,g=null)=>{B.preventDefault(),s.isDraggingRef.value=!1,v(B),g??(g=t.fs.hiddenBreadcrumbs.length-1);let h=JSON.parse(B.dataTransfer.getData("items"));if(h.find(y=>y.storage!==t.fs.adapter)){alert("Moving items between different storages is not supported yet.");return}t.modal.open(_n,{items:{from:h,to:t.fs.hiddenBreadcrumbs[g]??{path:t.fs.adapter+"://"}}})},m=(B,g=null)=>{B.preventDefault(),s.isDraggingRef.value=!1,v(B),g??(g=t.fs.breadcrumbs.length-2);let h=JSON.parse(B.dataTransfer.getData("items"));if(h.find(y=>y.storage!==t.fs.adapter)){alert("Moving items between different storages is not supported yet.");return}t.modal.open(_n,{items:{from:h,to:t.fs.breadcrumbs[g]??{path:t.fs.adapter+"://"}}})},u=B=>{B.preventDefault(),t.fs.isGoUpAvailable()?(B.dataTransfer.dropEffect="copy",B.currentTarget.classList.add("bg-blue-200","dark:bg-slate-600")):(B.dataTransfer.dropEffect="none",B.dataTransfer.effectAllowed="none")},v=B=>{B.preventDefault(),B.currentTarget.classList.remove("bg-blue-200","dark:bg-slate-600"),t.fs.isGoUpAvailable()&&B.currentTarget.classList.remove("bg-blue-200","dark:bg-slate-600")},f=()=>{C(),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname}})},p=()=>{C(),!t.fs.isGoUpAvailable()||t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.parentFolderPath}})},w=B=>{t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:B.path}}),t.fs.toggleHiddenBreadcrumbs(!1)},_=()=>{t.fs.showHiddenBreadcrumbs&&t.fs.toggleHiddenBreadcrumbs(!1)},N={mounted(B,g,h,y){B.clickOutsideEvent=function(E){B===E.target||B.contains(E.target)||g.value()},document.body.addEventListener("click",B.clickOutsideEvent)},beforeUnmount(B,g,h,y){document.body.removeEventListener("click",B.clickOutsideEvent)}},T=()=>{t.showTreeView=!t.showTreeView};e.watch(()=>t.showTreeView,(B,g)=>{B!==g&&r("show-tree-view",B)});const V=e.ref(null),b=()=>{t.features.includes(Z.SEARCH)&&(t.fs.searchMode=!0,e.nextTick(()=>V.value.focus()))},x=oo("",400);e.watch(x,B=>{t.emitter.emit("vf-toast-clear"),t.emitter.emit("vf-search-query",{newQuery:B})}),e.watch(()=>t.fs.searchMode,B=>{B&&e.nextTick(()=>V.value.focus())});const C=()=>{t.fs.searchMode=!1,x.value=""};t.emitter.on("vf-search-exit",()=>{C()});const F=()=>{x.value===""&&C()};return(B,g)=>(e.openBlock(),e.createElementBlock("div",Ai,[e.createElementVNode("span",{title:e.unref(o)("Toggle Tree View")},[e.createVNode(e.unref($i),{onClick:T,class:e.normalizeClass(["vuefinder__breadcrumb__toggle-tree",e.unref(t).showTreeView?"vuefinder__breadcrumb__toggle-tree--active":""])},null,8,["class"])],8,Li),e.createElementVNode("span",{title:e.unref(o)("Go up a directory")},[e.createVNode(e.unref(fi),{onDragover:g[0]||(g[0]=h=>u(h)),onDragleave:g[1]||(g[1]=h=>v(h)),onDrop:g[2]||(g[2]=h=>m(h)),onClick:p,class:e.normalizeClass(e.unref(t).fs.isGoUpAvailable()?"vuefinder__breadcrumb__go-up--active":"vuefinder__breadcrumb__go-up--inactive")},null,8,["class"])],8,Oi),e.unref(t).fs.loading?(e.openBlock(),e.createElementBlock("span",{key:1,title:e.unref(o)("Cancel")},[e.createVNode(e.unref(_i),{onClick:g[3]||(g[3]=h=>e.unref(t).emitter.emit("vf-fetch-abort"))})],8,Hi)):(e.openBlock(),e.createElementBlock("span",{key:0,title:e.unref(o)("Refresh")},[e.createVNode(e.unref(di),{onClick:f})],8,Fi)),e.withDirectives(e.createElementVNode("div",{onClick:e.withModifiers(b,["self"]),class:"group vuefinder__breadcrumb__search-container"},[e.createElementVNode("div",null,[e.createVNode(e.unref(ki),{onDragover:g[4]||(g[4]=h=>u(h)),onDragleave:g[5]||(g[5]=h=>v(h)),onDrop:g[6]||(g[6]=h=>m(h,-1)),onClick:g[7]||(g[7]=h=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:e.unref(t).fs.adapter}}))})]),e.createElementVNode("div",Ri,[e.unref(t).fs.hiddenBreadcrumbs.length?e.withDirectives((e.openBlock(),e.createElementBlock("div",zi,[g[13]||(g[13]=e.createElementVNode("div",{class:"vuefinder__breadcrumb__separator"},"/",-1)),e.createElementVNode("div",Ii,[e.createElementVNode("span",{onDragenter:g[8]||(g[8]=h=>e.unref(t).fs.toggleHiddenBreadcrumbs(!0)),onClick:g[9]||(g[9]=h=>e.unref(t).fs.toggleHiddenBreadcrumbs()),class:"vuefinder__breadcrumb__hidden-toggle"},[e.createVNode(e.unref(Mi),{class:"vuefinder__breadcrumb__hidden-toggle-icon"})],32)])])),[[N,_]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"breadcrumbContainer",ref:c,class:"vuefinder__breadcrumb__visible-list",onClick:e.withModifiers(b,["self"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.breadcrumbs,(h,y)=>(e.openBlock(),e.createElementBlock("div",{key:y},[g[14]||(g[14]=e.createElementVNode("span",{class:"vuefinder__breadcrumb__separator"},"/",-1)),e.createElementVNode("span",{onDragover:E=>y===e.unref(t).fs.breadcrumbs.length-1||u(E),onDragleave:E=>y===e.unref(t).fs.breadcrumbs.length-1||v(E),onDrop:E=>y===e.unref(t).fs.breadcrumbs.length-1||m(E,y),class:"vuefinder__breadcrumb__item",title:h.basename,onClick:E=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:e.unref(t).fs.adapter,path:h.path}})},e.toDisplayString(h.name),41,Ui)]))),128))],512),e.unref(t).fs.loading?(e.openBlock(),e.createBlock(e.unref(Mn),{key:0})):e.createCommentVNode("",!0)],512),[[e.vShow,!e.unref(t).fs.searchMode]]),e.withDirectives(e.createElementVNode("div",qi,[e.createElementVNode("div",null,[e.createVNode(e.unref(yi))]),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:V,onKeydown:e.withKeys(C,["esc"]),onBlur:F,"onUpdate:modelValue":g[10]||(g[10]=h=>e.isRef(x)?x.value=h:null),placeholder:e.unref(o)("Search anything.."),class:"vuefinder__breadcrumb__search-input",type:"text"},null,40,ji),[[e.vModelText,e.unref(x)]]),e.createVNode(e.unref(Si),{onClick:C})],512),[[e.vShow,e.unref(t).fs.searchMode]]),e.withDirectives(e.createElementVNode("div",Pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.hiddenBreadcrumbs,(h,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,onDragover:g[11]||(g[11]=E=>u(E)),onDragleave:g[12]||(g[12]=E=>v(E)),onDrop:E=>d(E,y),onClick:E=>w(h),class:"vuefinder__breadcrumb__hidden-item"},[e.createElementVNode("div",Ki,[e.createElementVNode("span",null,[e.createVNode(e.unref(It),{class:"vuefinder__breadcrumb__hidden-item-icon"})]),g[15]||(g[15]=e.createTextVNode()),e.createElementVNode("span",Wi,e.toDisplayString(h.name),1)])],40,Gi))),128))],512),[[e.vShow,e.unref(t).fs.showHiddenBreadcrumbs]])]))}},ar=(n,t=null)=>new Date(n*1e3).toLocaleString(t??navigator.language??"en-US"),Xi=["onClick"],Ji={__name:"Toast",setup(n){const t=e.inject("ServiceContainer"),{getStore:o}=t.storage,s=e.ref(o("full-screen",!1)),r=e.ref([]),c=l=>l==="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",a=l=>{r.value.splice(l,1)},i=l=>{let d=r.value.findIndex(m=>m.id===l);d!==-1&&a(d)};return t.emitter.on("vf-toast-clear",()=>{r.value=[]}),t.emitter.on("vf-toast-push",l=>{let d=new Date().getTime().toString(36).concat(performance.now().toString(),Math.random().toString()).replace(/\./g,"");l.id=d,r.value.push(l),setTimeout(()=>{i(d)},5e3)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vuefinder__toast",s.value.value?"vuefinder__toast--fixed":"vuefinder__toast--absolute"])},[e.createVNode(e.TransitionGroup,{name:"vuefinder__toast-item","enter-active-class":"vuefinder__toast-item--enter-active","leave-active-class":"vuefinder__toast-item--leave-active","leave-to-class":"vuefinder__toast-item--leave-to"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(m,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,onClick:v=>a(u),class:e.normalizeClass(["vuefinder__toast__message",c(m.type)])},e.toDisplayString(m.label),11,Xi))),128))]),_:1})],2))}},Zi={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-5 w-5",viewBox:"0 0 20 20"};function Qi(n,t){return e.openBlock(),e.createElementBlock("svg",Zi,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414","clip-rule":"evenodd"},null,-1)]))}const ed={render:Qi},td={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-5 w-5",viewBox:"0 0 20 20"};function nd(n,t){return e.openBlock(),e.createElementBlock("svg",td,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 0 1-1.414 0L10 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414","clip-rule":"evenodd"},null,-1)]))}const od={render:nd},wt={__name:"SortIcon",props:{direction:String},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",null,[n.direction==="asc"?(e.openBlock(),e.createBlock(e.unref(ed),{key:0})):e.createCommentVNode("",!0),n.direction==="desc"?(e.openBlock(),e.createBlock(e.unref(od),{key:1})):e.createCommentVNode("",!0)]))}},rd={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",class:"text-neutral-500",viewBox:"0 0 24 24"};function sd(n,t){return e.openBlock(),e.createElementBlock("svg",rd,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"},null,-1)]))}const ld={render:sd},ad={class:"vuefinder__item-icon"},Jt={__name:"ItemIcon",props:{type:{type:String,required:!0},small:{type:Boolean,default:!1}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("span",ad,[n.type==="dir"?(e.openBlock(),e.createBlock(e.unref(It),{key:0,class:e.normalizeClass(n.small?"vuefinder__item-icon--small":"vuefinder__item-icon--large")},null,8,["class"])):(e.openBlock(),e.createBlock(e.unref(ld),{key:1,class:e.normalizeClass(n.small?"vuefinder__item-icon--small":"vuefinder__item-icon--large")},null,8,["class"]))]))}},cd={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",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",viewBox:"0 0 24 24"};function id(n,t){return e.openBlock(),e.createElementBlock("svg",cd,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"},null,-1)]))}const dd={render:id},ud={class:"vuefinder__drag-item__container"},md={class:"vuefinder__drag-item__count"},fd={__name:"DragItem",props:{count:{type:Number,default:0}},setup(n){const t=n;return(o,s)=>(e.openBlock(),e.createElementBlock("div",ud,[e.createVNode(e.unref(dd)),e.createElementVNode("div",md,e.toDisplayString(t.count),1)]))}},vd={class:"vuefinder__text-preview"},pd={class:"vuefinder__text-preview__header"},_d=["title"],hd={class:"vuefinder__text-preview__actions"},gd={key:0,class:"vuefinder__text-preview__content"},kd={key:1},wd={__name:"Text",emits:["success"],setup(n,{emit:t}){const o=t,s=e.ref(""),r=e.ref(""),c=e.ref(null),a=e.ref(!1),i=e.ref(""),l=e.ref(!1),d=e.inject("ServiceContainer"),{t:m}=d.i18n;e.onMounted(()=>{d.requester.send({url:"",method:"get",params:{q:"preview",adapter:d.modal.data.adapter,path:d.modal.data.item.path},responseType:"text"}).then(f=>{s.value=f,o("success")})});const u=()=>{a.value=!a.value,r.value=s.value},v=()=>{i.value="",l.value=!1,d.requester.send({url:"",method:"post",params:{q:"save",adapter:d.modal.data.adapter,path:d.modal.data.item.path},body:{content:r.value},responseType:"text"}).then(f=>{i.value=m("Updated."),s.value=f,o("success"),a.value=!a.value}).catch(f=>{i.value=m(f.message),l.value=!0})};return(f,p)=>(e.openBlock(),e.createElementBlock("div",vd,[e.createElementVNode("div",pd,[e.createElementVNode("div",{class:"vuefinder__text-preview__title",id:"modal-title",title:e.unref(d).modal.data.item.path},e.toDisplayString(e.unref(d).modal.data.item.basename),9,_d),e.createElementVNode("div",hd,[a.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:v,class:"vuefinder__text-preview__save-button"},e.toDisplayString(e.unref(m)("Save")),1)):e.createCommentVNode("",!0),e.unref(d).features.includes(e.unref(Z).EDIT)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"vuefinder__text-preview__edit-button",onClick:p[0]||(p[0]=w=>u())},e.toDisplayString(a.value?e.unref(m)("Cancel"):e.unref(m)("Edit")),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",null,[a.value?(e.openBlock(),e.createElementBlock("div",kd,[e.withDirectives(e.createElementVNode("textarea",{ref_key:"editInput",ref:c,"onUpdate:modelValue":p[1]||(p[1]=w=>r.value=w),class:"vuefinder__text-preview__textarea",name:"text",cols:"30",rows:"10"},null,512),[[e.vModelText,r.value]])])):(e.openBlock(),e.createElementBlock("pre",gd,e.toDisplayString(s.value),1)),i.value.length?(e.openBlock(),e.createBlock($e,{key:2,onHidden:p[2]||(p[2]=w=>i.value=""),error:l.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)])]))}},bd={class:"vuefinder__image-preview"},yd={class:"vuefinder__image-preview__header"},Ed=["title"],Vd={class:"vuefinder__image-preview__actions"},Sd={class:"vuefinder__image-preview__image-container"},Nd=["src"],xd={__name:"Image",emits:["success"],setup(n,{emit:t}){const o=t,s=e.inject("ServiceContainer"),{t:r}=s.i18n,c=e.ref(null),a=e.ref(null),i=e.ref(!1),l=e.ref(""),d=e.ref(!1),m=()=>{i.value=!i.value,i.value?a.value=new Br(c.value,{crop(v){}}):a.value.destroy()},u=()=>{a.value.getCroppedCanvas({width:795,height:341}).toBlob(v=>{l.value="",d.value=!1;const f=new FormData;f.set("file",v),s.requester.send({url:"",method:"post",params:{q:"upload",adapter:s.modal.data.adapter,path:s.modal.data.item.path},body:f}).then(p=>{l.value=r("Updated."),c.value.src=s.requester.getPreviewUrl(s.modal.data.adapter,s.modal.data.item),m(),o("success")}).catch(p=>{l.value=r(p.message),d.value=!0})})};return e.onMounted(()=>{o("success")}),(v,f)=>(e.openBlock(),e.createElementBlock("div",bd,[e.createElementVNode("div",yd,[e.createElementVNode("h3",{class:"vuefinder__image-preview__title",id:"modal-title",title:e.unref(s).modal.data.item.path},e.toDisplayString(e.unref(s).modal.data.item.basename),9,Ed),e.createElementVNode("div",Vd,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u,class:"vuefinder__image-preview__crop-button"},e.toDisplayString(e.unref(r)("Crop")),1)):e.createCommentVNode("",!0),e.unref(s).features.includes(e.unref(Z).EDIT)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"vuefinder__image-preview__edit-button",onClick:f[0]||(f[0]=p=>m())},e.toDisplayString(i.value?e.unref(r)("Cancel"):e.unref(r)("Edit")),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Sd,[e.createElementVNode("img",{ref_key:"image",ref:c,class:"vuefinder__image-preview__image",src:e.unref(s).requester.getPreviewUrl(e.unref(s).modal.data.adapter,e.unref(s).modal.data.item),alt:""},null,8,Nd)]),l.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:f[1]||(f[1]=p=>l.value=""),error:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)]))}},Bd={class:"vuefinder__default-preview"},Cd={class:"vuefinder__default-preview__header"},$d=["title"],Dd={__name:"Default",emits:["success"],setup(n,{emit:t}){const o=e.inject("ServiceContainer"),s=t;return e.onMounted(()=>{s("success")}),(r,c)=>(e.openBlock(),e.createElementBlock("div",Bd,[e.createElementVNode("div",Cd,[e.createElementVNode("h3",{class:"vuefinder__default-preview__title",id:"modal-title",title:e.unref(o).modal.data.item.path},e.toDisplayString(e.unref(o).modal.data.item.basename),9,$d)]),c[0]||(c[0]=e.createElementVNode("div",null,null,-1))]))}},Td={class:"vuefinder__video-preview"},Md=["title"],Ad={class:"vuefinder__video-preview__video",preload:"",controls:""},Ld=["src"],Od={__name:"Video",emits:["success"],setup(n,{emit:t}){const o=e.inject("ServiceContainer"),s=t,r=()=>o.requester.getPreviewUrl(o.modal.data.adapter,o.modal.data.item);return e.onMounted(()=>{s("success")}),(c,a)=>(e.openBlock(),e.createElementBlock("div",Td,[e.createElementVNode("h3",{class:"vuefinder__video-preview__title",id:"modal-title",title:e.unref(o).modal.data.item.path},e.toDisplayString(e.unref(o).modal.data.item.basename),9,Md),e.createElementVNode("div",null,[e.createElementVNode("video",Ad,[e.createElementVNode("source",{src:r(),type:"video/mp4"},null,8,Ld),a[0]||(a[0]=e.createTextVNode(" Your browser does not support the video tag. "))])])]))}},Fd={class:"vuefinder__audio-preview"},Hd=["title"],Rd={class:"vuefinder__audio-preview__audio",controls:""},zd=["src"],Id={__name:"Audio",emits:["success"],setup(n,{emit:t}){const o=t,s=e.inject("ServiceContainer"),r=()=>s.requester.getPreviewUrl(s.modal.data.adapter,s.modal.data.item);return e.onMounted(()=>{o("success")}),(c,a)=>(e.openBlock(),e.createElementBlock("div",Fd,[e.createElementVNode("h3",{class:"vuefinder__audio-preview__title",id:"modal-title",title:e.unref(s).modal.data.item.path},e.toDisplayString(e.unref(s).modal.data.item.basename),9,Hd),e.createElementVNode("div",null,[e.createElementVNode("audio",Rd,[e.createElementVNode("source",{src:r(),type:"audio/mpeg"},null,8,zd),a[0]||(a[0]=e.createTextVNode(" Your browser does not support the audio element. "))])])]))}},Ud={class:"vuefinder__pdf-preview"},qd=["title"],jd=["data"],Pd=["src"],Gd={__name:"Pdf",emits:["success"],setup(n,{emit:t}){const o=e.inject("ServiceContainer"),s=t,r=()=>o.requester.getPreviewUrl(o.modal.data.adapter,o.modal.data.item);return e.onMounted(()=>{s("success")}),(c,a)=>(e.openBlock(),e.createElementBlock("div",Ud,[e.createElementVNode("h3",{class:"vuefinder__pdf-preview__title",id:"modal-title",title:e.unref(o).modal.data.item.path},e.toDisplayString(e.unref(o).modal.data.item.basename),9,qd),e.createElementVNode("div",null,[e.createElementVNode("object",{class:"vuefinder__pdf-preview__object",data:r(),type:"application/pdf",width:"100%",height:"100%"},[e.createElementVNode("iframe",{class:"vuefinder__pdf-preview__iframe",src:r(),width:"100%",height:"100%"},a[0]||(a[0]=[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)]),8,Pd)],8,jd)])]))}},Kd={class:"vuefinder__preview-modal__content"},Wd={key:0},Yd={class:"vuefinder__preview-modal__loading"},Xd={key:0,class:"vuefinder__preview-modal__loading-indicator"},Jd={class:"vuefinder__preview-modal__details"},Zd={class:"font-bold"},Qd={class:"font-bold pl-2"},eu={key:0,class:"vuefinder__preview-modal__note"},tu=["download","href"],cr={__name:"ModalPreview",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(!1),r=a=>(t.modal.data.item.mime_type??"").startsWith(a),c=t.features.includes(Z.PREVIEW);return c||(s.value=!0),(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:i[6]||(i[6]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Close")),1),e.unref(t).features.includes(e.unref(Z).DOWNLOAD)?(e.openBlock(),e.createElementBlock("a",{key:0,target:"_blank",class:"vf-btn vf-btn-primary",download:e.unref(t).requester.getDownloadUrl(e.unref(t).modal.data.adapter,e.unref(t).modal.data.item),href:e.unref(t).requester.getDownloadUrl(e.unref(t).modal.data.adapter,e.unref(t).modal.data.item)},e.toDisplayString(e.unref(o)("Download")),9,tu)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",Kd,[e.unref(c)?(e.openBlock(),e.createElementBlock("div",Wd,[r("text")?(e.openBlock(),e.createBlock(wd,{key:0,onSuccess:i[0]||(i[0]=l=>s.value=!0)})):r("image")?(e.openBlock(),e.createBlock(xd,{key:1,onSuccess:i[1]||(i[1]=l=>s.value=!0)})):r("video")?(e.openBlock(),e.createBlock(Od,{key:2,onSuccess:i[2]||(i[2]=l=>s.value=!0)})):r("audio")?(e.openBlock(),e.createBlock(Id,{key:3,onSuccess:i[3]||(i[3]=l=>s.value=!0)})):r("application/pdf")?(e.openBlock(),e.createBlock(Gd,{key:4,onSuccess:i[4]||(i[4]=l=>s.value=!0)})):(e.openBlock(),e.createBlock(Dd,{key:5,onSuccess:i[5]||(i[5]=l=>s.value=!0)}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Yd,[s.value===!1?(e.openBlock(),e.createElementBlock("div",Xd,[i[7]||(i[7]=e.createElementVNode("svg",{class:"vuefinder__preview-modal__spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"vuefinder__preview-modal__spinner-circle",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"vuefinder__preview-modal__spinner-path",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)),e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("Loading")),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Jd,[e.createElementVNode("div",null,[e.createElementVNode("span",Zd,e.toDisplayString(e.unref(o)("File Size"))+": ",1),e.createTextVNode(e.toDisplayString(e.unref(t).filesize(e.unref(t).modal.data.item.file_size)),1)]),e.createElementVNode("div",null,[e.createElementVNode("span",Qd,e.toDisplayString(e.unref(o)("Last Modified"))+": ",1),e.createTextVNode(" "+e.toDisplayString(e.unref(ar)(e.unref(t).modal.data.item.last_modified)),1)])]),e.unref(t).features.includes(e.unref(Z).DOWNLOAD)?(e.openBlock(),e.createElementBlock("div",eu,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)),1)])):e.createCommentVNode("",!0)]),_:1}))}},nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"h-5 w-5",viewBox:"0 0 24 24"};function ou(n,t){return e.openBlock(),e.createElementBlock("svg",nu,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5"},null,-1)]))}const ir={render:ou},ru=["data-type","data-item","data-index"],Zt={__name:"Item",props:{item:{type:Object},index:{type:Number},dragImage:{type:Object}},setup(n){const t=e.inject("ServiceContainer"),o=t.dragSelect,s=n,r=f=>{f.type==="dir"?(t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:f.path}})):t.modal.open(cr,{adapter:t.fs.adapter,item:f})},c={mounted(f,p,w,_){w.props.draggable&&(f.addEventListener("dragstart",N=>a(N,p.value)),f.addEventListener("dragover",N=>l(N,p.value)),f.addEventListener("drop",N=>i(N,p.value)))},beforeUnmount(f,p,w,_){w.props.draggable&&(f.removeEventListener("dragstart",a),f.removeEventListener("dragover",l),f.removeEventListener("drop",i))}},a=(f,p)=>{if(f.altKey||f.ctrlKey||f.metaKey)return f.preventDefault(),!1;o.isDraggingRef.value=!0,f.dataTransfer.setDragImage(s.dragImage.$el,0,15),f.dataTransfer.effectAllowed="all",f.dataTransfer.dropEffect="copy",f.dataTransfer.setData("items",JSON.stringify(o.getSelected()))},i=(f,p)=>{f.preventDefault(),o.isDraggingRef.value=!1;let w=JSON.parse(f.dataTransfer.getData("items"));if(w.find(_=>_.storage!==t.fs.adapter)){alert("Moving items between different storages is not supported yet.");return}t.modal.open(_n,{items:{from:w,to:p}})},l=(f,p)=>{f.preventDefault(),!p||p.type!=="dir"||o.getSelection().find(w=>w===f.currentTarget)?(f.dataTransfer.dropEffect="none",f.dataTransfer.effectAllowed="none"):f.dataTransfer.dropEffect="copy"};let d=null,m=!1;const u=()=>{d&&clearTimeout(d)},v=f=>{if(!m)m=!0,setTimeout(()=>m=!1,300);else return m=!1,r(s.item),clearTimeout(d),!1;d=setTimeout(()=>{const p=new MouseEvent("contextmenu",{bubbles:!0,cancelable:!1,view:window,button:2,buttons:0,clientX:f.target.getBoundingClientRect().x,clientY:f.target.getBoundingClientRect().y});f.target.dispatchEvent(p)},500)};return(f,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({opacity:e.unref(o).isDraggingRef.value&&e.unref(o).getSelection().find(w=>f.$el===w)?"0.5 !important":""}),class:e.normalizeClass(["vuefinder__item","vf-item-"+e.unref(o).explorerId]),"data-type":n.item.type,key:n.item.path,"data-item":JSON.stringify(n.item),"data-index":n.index,onDblclick:p[0]||(p[0]=w=>r(n.item)),onTouchstart:p[1]||(p[1]=w=>v(w)),onTouchend:p[2]||(p[2]=w=>u()),onContextmenu:p[3]||(p[3]=e.withModifiers(w=>e.unref(t).emitter.emit("vf-contextmenu-show",{event:w,items:e.unref(o).getSelected(),target:n.item}),["prevent"]))},[e.renderSlot(f.$slots,"default"),e.unref(t).pinnedFolders.find(w=>w.path===n.item.path)?(e.openBlock(),e.createBlock(e.unref(ir),{key:0,class:"vuefinder__item--pinned"})):e.createCommentVNode("",!0)],46,ru)),[[c,n.item]])}},su={class:"vuefinder__explorer__container"},lu={key:0,class:"vuefinder__explorer__header"},au={class:"vuefinder__explorer__drag-item"},cu={class:"vuefinder__explorer__item-list-content"},iu={class:"vuefinder__explorer__item-list-name"},du={class:"vuefinder__explorer__item-name"},uu={class:"vuefinder__explorer__item-path"},mu={class:"vuefinder__explorer__item-list-content"},fu={class:"vuefinder__explorer__item-list-name"},vu={class:"vuefinder__explorer__item-name"},pu={class:"vuefinder__explorer__item-size"},_u={class:"vuefinder__explorer__item-date"},hu={class:"vuefinder__explorer__item-grid-content"},gu=["data-src","alt"],ku={key:2,class:"vuefinder__explorer__item-extension"},wu={class:"vuefinder__explorer__item-title break-all"},bu={__name:"Explorer",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=u=>u==null?void 0:u.substring(0,3),r=e.ref(null),c=e.ref(""),a=t.dragSelect;let i;t.emitter.on("vf-fullscreen-toggle",()=>{a.area.value.style.height=null}),t.emitter.on("vf-search-query",({newQuery:u})=>{c.value=u,u?t.emitter.emit("vf-fetch",{params:{q:"search",adapter:t.fs.adapter,path:t.fs.data.dirname,filter:u},onSuccess:v=>{v.files.length||t.emitter.emit("vf-toast-push",{label:o("No search result found.")})}}):t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname}})});const l=e.reactive({active:!1,column:"",order:""}),d=(u=!0)=>{let v=[...t.fs.data.files],f=l.column,p=l.order==="asc"?1:-1;if(!u)return v;const w=(_,N)=>typeof _=="string"&&typeof N=="string"?_.toLowerCase().localeCompare(N.toLowerCase()):_N?1:0;return l.active&&(v=v.slice().sort((_,N)=>w(_[f],N[f])*p)),v},m=u=>{l.active&&l.column===u?(l.active=l.order==="asc",l.column=u,l.order="desc"):(l.active=!0,l.column=u,l.order="asc")};return e.onMounted(()=>{i=new xr(a.area.value)}),e.onUpdated(()=>{i.update()}),e.onBeforeUnmount(()=>{i.destroy()}),(u,v)=>(e.openBlock(),e.createElementBlock("div",su,[e.unref(t).view==="list"||c.value.length?(e.openBlock(),e.createElementBlock("div",lu,[e.createElementVNode("div",{onClick:v[0]||(v[0]=f=>m("basename")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--name vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Name"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="basename"]])]),c.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:v[1]||(v[1]=f=>m("file_size")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--size vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Size"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="file_size"]])])),c.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:v[2]||(v[2]=f=>m("last_modified")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--date vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Date"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="last_modified"]])])),c.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,onClick:v[3]||(v[3]=f=>m("path")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--path vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Filepath"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="path"]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",au,[e.createVNode(fd,{ref_key:"dragImage",ref:r,count:e.unref(a).getCount()},null,8,["count"])]),e.createElementVNode("div",{ref:e.unref(a).scrollBarContainer,class:e.normalizeClass(["vf-explorer-scrollbar-container vuefinder__explorer__scrollbar-container",[{"grid-view":e.unref(t).view==="grid"},{"search-active":c.value.length}]])},[e.createElementVNode("div",{ref:e.unref(a).scrollBar,class:"vuefinder__explorer__scrollbar"},null,512)],2),e.createElementVNode("div",{ref:e.unref(a).area,class:"vuefinder__explorer__selector-area vf-explorer-scrollbar vf-selector-area",onContextmenu:v[4]||(v[4]=e.withModifiers(f=>e.unref(t).emitter.emit("vf-contextmenu-show",{event:f,items:e.unref(a).getSelected()}),["self","prevent"]))},[c.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(d(),(f,p)=>(e.openBlock(),e.createBlock(Zt,{item:f,index:p,dragImage:r.value,class:"vf-item vf-item-list"},{default:e.withCtx(()=>[e.createElementVNode("div",cu,[e.createElementVNode("div",iu,[e.createVNode(Jt,{type:f.type,small:e.unref(t).compactListView},null,8,["type","small"]),e.createElementVNode("span",du,e.toDisplayString(f.basename),1)]),e.createElementVNode("div",uu,e.toDisplayString(f.path),1)])]),_:2},1032,["item","index","dragImage"]))),256)):e.createCommentVNode("",!0),e.unref(t).view==="list"&&!c.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(d(),(f,p)=>(e.openBlock(),e.createBlock(Zt,{item:f,index:p,dragImage:r.value,class:"vf-item vf-item-list",draggable:"true",key:f.path},{default:e.withCtx(()=>[e.createElementVNode("div",mu,[e.createElementVNode("div",fu,[e.createVNode(Jt,{type:f.type,small:e.unref(t).compactListView},null,8,["type","small"]),e.createElementVNode("span",vu,e.toDisplayString(f.basename),1)]),e.createElementVNode("div",pu,e.toDisplayString(f.file_size?e.unref(t).filesize(f.file_size):""),1),e.createElementVNode("div",_u,e.toDisplayString(e.unref(ar)(f.last_modified)),1)])]),_:2},1032,["item","index","dragImage"]))),128)):e.createCommentVNode("",!0),e.unref(t).view==="grid"&&!c.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(d(!1),(f,p)=>(e.openBlock(),e.createBlock(Zt,{item:f,index:p,dragImage:r.value,class:"vf-item vf-item-grid",draggable:"true"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",hu,[(f.mime_type??"").startsWith("image")&&e.unref(t).showThumbnails?(e.openBlock(),e.createElementBlock("img",{src:"data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",class:"vuefinder__explorer__item-thumbnail lazy","data-src":e.unref(t).requester.getPreviewUrl(e.unref(t).fs.adapter,f),alt:f.basename,key:f.path},null,8,gu)):(e.openBlock(),e.createBlock(Jt,{key:1,type:f.type},null,8,["type"])),!((f.mime_type??"").startsWith("image")&&e.unref(t).showThumbnails)&&f.type!=="dir"?(e.openBlock(),e.createElementBlock("div",ku,e.toDisplayString(s(f.extension)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("span",wu,e.toDisplayString(e.unref(pn)(f.basename)),1)])]),_:2},1032,["item","index","dragImage"]))),256)):e.createCommentVNode("",!0)],544),e.createVNode(Ji)]))}},yu=["href","download"],Eu=["onClick"],Vu={__name:"ContextMenu",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(null),r=e.ref([]),c=e.ref(""),a=e.reactive({active:!1,items:[],positions:{left:0,top:0}}),i=e.computed(()=>a.items.filter(u=>u.key==null||t.features.includes(u.key)));t.emitter.on("vf-context-selected",u=>{r.value=u});const l={newfolder:{key:Z.NEW_FOLDER,title:()=>o("New Folder"),action:()=>t.modal.open(er)},selectAll:{title:()=>o("Select All"),action:()=>t.dragSelect.selectAll()},pinFolder:{title:()=>o("Pin Folder"),action:()=>{t.pinnedFolders=t.pinnedFolders.concat(r.value),t.storage.setStore("pinned-folders",t.pinnedFolders)}},unpinFolder:{title:()=>o("Unpin Folder"),action:()=>{t.pinnedFolders=t.pinnedFolders.filter(u=>!r.value.find(v=>v.path===u.path)),t.storage.setStore("pinned-folders",t.pinnedFolders)}},delete:{key:Z.DELETE,title:()=>o("Delete"),action:()=>{t.modal.open(Dn,{items:r})}},refresh:{title:()=>o("Refresh"),action:()=>{t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname}})}},preview:{key:Z.PREVIEW,title:()=>o("Preview"),action:()=>t.modal.open(cr,{adapter:t.fs.adapter,item:r.value[0]})},open:{title:()=>o("Open"),action:()=>{t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:r.value[0].path}})}},openDir:{title:()=>o("Open containing folder"),action:()=>{t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:r.value[0].dir}})}},download:{key:Z.DOWNLOAD,link:e.computed(()=>t.requester.getDownloadUrl(t.fs.adapter,r.value[0])),title:()=>o("Download"),action:()=>{}},archive:{key:Z.ARCHIVE,title:()=>o("Archive"),action:()=>t.modal.open(lr,{items:r})},unarchive:{key:Z.UNARCHIVE,title:()=>o("Unarchive"),action:()=>t.modal.open(rr,{items:r})},rename:{key:Z.RENAME,title:()=>o("Rename"),action:()=>t.modal.open(Tn,{items:r})}},d=u=>{t.emitter.emit("vf-contextmenu-hide"),u.action()};t.emitter.on("vf-search-query",({newQuery:u})=>{c.value=u}),t.emitter.on("vf-contextmenu-show",({event:u,items:v,target:f=null})=>{if(a.items=[],c.value)if(f)a.items.push(l.openDir),t.emitter.emit("vf-context-selected",[f]);else return;else!f&&!c.value?(a.items.push(l.refresh),a.items.push(l.selectAll),a.items.push(l.newfolder),t.emitter.emit("vf-context-selected",[])):v.length>1&&v.some(p=>p.path===f.path)?(a.items.push(l.refresh),a.items.push(l.archive),a.items.push(l.delete),t.emitter.emit("vf-context-selected",v)):(f.type==="dir"?(a.items.push(l.open),t.pinnedFolders.findIndex(p=>p.path===f.path)!==-1?a.items.push(l.unpinFolder):a.items.push(l.pinFolder)):(a.items.push(l.preview),a.items.push(l.download)),a.items.push(l.rename),f.mime_type==="application/zip"?a.items.push(l.unarchive):a.items.push(l.archive),a.items.push(l.delete),t.emitter.emit("vf-context-selected",[f]));m(u)}),t.emitter.on("vf-contextmenu-hide",()=>{a.active=!1});const m=u=>{const v=t.dragSelect.area.value,f=t.root.getBoundingClientRect(),p=v.getBoundingClientRect();let w=u.clientX-f.left,_=u.clientY-f.top;a.active=!0,e.nextTick(()=>{var b;const N=(b=s.value)==null?void 0:b.getBoundingClientRect();let T=(N==null?void 0:N.height)??0,V=(N==null?void 0:N.width)??0;w=p.right-u.pageX+window.scrollXe.withDirectives((e.openBlock(),e.createElementBlock("ul",{ref_key:"contextmenu",ref:s,style:e.normalizeStyle(a.positions),class:"vuefinder__context-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,f=>(e.openBlock(),e.createElementBlock("li",{class:"vuefinder__context-menu__item",key:f.title},[f.link?(e.openBlock(),e.createElementBlock("a",{key:0,class:"vuefinder__context-menu__link",target:"_blank",href:f.link,download:f.link,onClick:v[0]||(v[0]=p=>e.unref(t).emitter.emit("vf-contextmenu-hide"))},[e.createElementVNode("span",null,e.toDisplayString(f.title()),1)],8,yu)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"vuefinder__context-menu__action",onClick:p=>d(f)},[e.createElementVNode("span",null,e.toDisplayString(f.title()),1)],8,Eu))]))),128))],4)),[[e.vShow,a.active]])}},Su={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",class:"h-5 w-5",viewBox:"0 0 24 24"};function Nu(n,t){return e.openBlock(),e.createElementBlock("svg",Su,t[0]||(t[0]=[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"},null,-1)]))}const dr={render:Nu},xu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2",class:"h-5 w-5 stroke-slate-500 cursor-pointer",viewBox:"0 0 24 24"};function Bu(n,t){return e.openBlock(),e.createElementBlock("svg",xu,t[0]||(t[0]=[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 1 1-18 0 9 9 0 0 1 18 0"},null,-1)]))}const Cu={render:Bu},$u={class:"vuefinder__status-bar__wrapper"},Du={class:"vuefinder__status-bar__storage"},Tu=["title"],Mu={class:"vuefinder__status-bar__storage-icon"},Au=["value"],Lu={class:"vuefinder__status-bar__info"},Ou={key:0},Fu={class:"vuefinder__status-bar__selected-count"},Hu={class:"vuefinder__status-bar__actions"},Ru=["disabled"],zu=["title"],Iu={__name:"Statusbar",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,{setStore:s}=t.storage,r=t.dragSelect,c=()=>{t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter}}),s("adapter",t.fs.adapter)},a=e.ref("");t.emitter.on("vf-search-query",({newQuery:l})=>{a.value=l});const i=e.computed(()=>{const l=t.selectButton.multiple?r.getSelected().length>0:r.getSelected().length===1;return t.selectButton.active&&l});return(l,d)=>(e.openBlock(),e.createElementBlock("div",$u,[e.createElementVNode("div",Du,[e.createElementVNode("div",{class:"vuefinder__status-bar__storage-container",title:e.unref(o)("Storage")},[e.createElementVNode("div",Mu,[e.createVNode(e.unref(dr))]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":d[0]||(d[0]=m=>e.unref(t).fs.adapter=m),onChange:c,class:"vuefinder__status-bar__storage-select",tabindex:"-1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.data.storages,m=>(e.openBlock(),e.createElementBlock("option",{value:m},e.toDisplayString(m),9,Au))),256))],544),[[e.vModelSelect,e.unref(t).fs.adapter]])],8,Tu),e.createElementVNode("div",Lu,[a.value.length?(e.openBlock(),e.createElementBlock("span",Ou,e.toDisplayString(e.unref(t).fs.data.files.length)+" items found. ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",Fu,e.toDisplayString(e.unref(t).dragSelect.getCount()>0?e.unref(o)("%s item(s) selected.",e.unref(t).dragSelect.getCount()):""),1)])]),e.createElementVNode("div",Hu,[e.unref(t).selectButton.active?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["vf-btn py-0 vf-btn-primary",{disabled:!i.value}]),disabled:!i.value,onClick:d[1]||(d[1]=m=>e.unref(t).selectButton.click(e.unref(r).getSelected(),m))},e.toDisplayString(e.unref(o)("Select")),11,Ru)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:"vuefinder__status-bar__about",title:e.unref(o)("About"),onClick:d[2]||(d[2]=m=>e.unref(t).modal.open(Xo))},[e.createVNode(e.unref(Cu))],8,zu)])]))}},Uu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"text-neutral-500 fill-sky-500 stroke-gray-100/50 dark:stroke-slate-700/50 dark:fill-slate-500",viewBox:"0 0 24 24"};function qu(n,t){return e.openBlock(),e.createElementBlock("svg",Uu,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 9.776q.168-.026.344-.026h15.812q.176 0 .344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"},null,-1)]))}const ur={render:qu},ju={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-5 w-5",viewBox:"0 0 24 24"};function Pu(n,t){return e.openBlock(),e.createElementBlock("svg",ju,t[0]||(t[0]=[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4"},null,-1)]))}const Gu={render:Pu},Ku={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"};function Wu(n,t){return e.openBlock(),e.createElementBlock("svg",Ku,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M15 12H9M12 9v6"},null,-1)]))}const mr={render:Wu},Yu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"};function Xu(n,t){return e.openBlock(),e.createElementBlock("svg",Yu,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M9 12h6"},null,-1)]))}const fr={render:Xu};function vr(n,t){const o=n.findIndex(s=>s.path===t.path);o>-1?n[o]=t:n.push(t)}const Ju={class:"vuefinder__folder-loader-indicator"},Zu={key:1,class:"vuefinder__folder-loader-indicator--icon"},pr={__name:"FolderLoaderIndicator",props:e.mergeModels({adapter:{type:String,required:!0},path:{type:String,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const t=n,o=e.inject("ServiceContainer");o.i18n;const s=e.useModel(n,"modelValue"),r=e.ref(!1);e.watch(()=>s.value,()=>{var i;return((i=c())==null?void 0:i.folders.length)||a()});function c(){return o.treeViewData.find(i=>i.path===t.path)}const a=()=>{r.value=!0,o.requester.send({url:"",method:"get",params:{q:"subfolders",adapter:t.adapter,path:t.path}}).then(i=>{vr(o.treeViewData,{path:t.path,...i})}).catch(i=>{}).finally(()=>{r.value=!1})};return(i,l)=>{var d;return e.openBlock(),e.createElementBlock("div",Ju,[r.value?(e.openBlock(),e.createBlock(e.unref(Mn),{key:0,class:"vuefinder__folder-loader-indicator--loading"})):(e.openBlock(),e.createElementBlock("div",Zu,[s.value&&((d=c())!=null&&d.folders.length)?(e.openBlock(),e.createBlock(e.unref(fr),{key:0,class:"vuefinder__folder-loader-indicator--minus"})):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(mr),{key:1,class:"vuefinder__folder-loader-indicator--plus"}))]))])}}},Qu={class:"vuefinder__treesubfolderlist__item-content"},em=["onClick"],tm=["title","onClick"],nm={class:"vuefinder__treesubfolderlist__item-icon"},om={class:"vuefinder__treesubfolderlist__subfolder"},rm={__name:"TreeSubfolderList",props:{adapter:{type:String,required:!0},path:{type:String,required:!0}},setup(n){const t=e.inject("ServiceContainer"),o=e.ref([]),s=n,r=e.ref(null);e.onMounted(()=>{s.path===s.adapter+"://"&&xe(r.value,{scrollbars:{theme:"vf-theme-dark dark:vf-theme-light"}})});const c=e.computed(()=>{var a;return((a=t.treeViewData.find(i=>i.path===s.path))==null?void 0:a.folders)||[]});return(a,i)=>{const l=e.resolveComponent("TreeSubfolderList",!0);return e.openBlock(),e.createElementBlock("ul",{ref_key:"parentSubfolderList",ref:r,class:"vuefinder__treesubfolderlist__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:d.path,class:"vuefinder__treesubfolderlist__item"},[e.createElementVNode("div",Qu,[e.createElementVNode("div",{class:"vuefinder__treesubfolderlist__item-toggle",onClick:u=>o.value[d.path]=!o.value[d.path]},[e.createVNode(pr,{adapter:n.adapter,path:d.path,modelValue:o.value[d.path],"onUpdate:modelValue":u=>o.value[d.path]=u},null,8,["adapter","path","modelValue","onUpdate:modelValue"])],8,em),e.createElementVNode("div",{class:"vuefinder__treesubfolderlist__item-link",title:d.path,onClick:u=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:s.adapter,path:d.path}})},[e.createElementVNode("div",nm,[e.unref(t).fs.path===d.path?(e.openBlock(),e.createBlock(e.unref(ur),{key:0})):(e.openBlock(),e.createBlock(e.unref(It),{key:1}))]),e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__treesubfolderlist__item-text",{"vuefinder__treesubfolderlist__item-text--active":e.unref(t).fs.path===d.path}])},e.toDisplayString(d.basename),3)],8,tm)]),e.createElementVNode("div",om,[e.withDirectives(e.createVNode(l,{adapter:s.adapter,path:d.path},null,8,["adapter","path"]),[[e.vShow,o.value[d.path]]])])]))),128))],512)}}},sm={class:"vuefinder__treestorageitem__loader"},lm={__name:"TreeStorageItem",props:{storage:{type:String,required:!0}},setup(n){const t=e.inject("ServiceContainer"),o=e.ref(!1);return(s,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:r[1]||(r[1]=c=>o.value=!o.value),class:"vuefinder__treestorageitem__header"},[e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__treestorageitem__info",n.storage===e.unref(t).fs.adapter?"vuefinder__treestorageitem__info--active":""])},[e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__treestorageitem__icon",n.storage===e.unref(t).fs.adapter?"vuefinder__treestorageitem__icon--active":""])},[e.createVNode(e.unref(dr))],2),e.createElementVNode("div",null,e.toDisplayString(n.storage),1)],2),e.createElementVNode("div",sm,[e.createVNode(pr,{adapter:n.storage,path:n.storage+"://",modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=c=>o.value=c)},null,8,["adapter","path","modelValue"])])]),e.withDirectives(e.createVNode(rm,{adapter:n.storage,path:n.storage+"://",class:"vuefinder__treestorageitem__subfolder"},null,8,["adapter","path"]),[[e.vShow,o.value]])],64))}},am={class:"vuefinder__folder-indicator"},cm={class:"vuefinder__folder-indicator--icon"},im={__name:"FolderIndicator",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const t=e.useModel(n,"modelValue");return(o,s)=>(e.openBlock(),e.createElementBlock("div",am,[e.createElementVNode("div",cm,[t.value?(e.openBlock(),e.createBlock(e.unref(fr),{key:0,class:"vuefinder__folder-indicator--minus"})):e.createCommentVNode("",!0),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(mr),{key:1,class:"vuefinder__folder-indicator--plus"}))])]))}},dm={class:"vuefinder__treeview__header"},um={class:"vuefinder__treeview__pinned-label"},mm={class:"vuefinder__treeview__pin-text text-nowrap"},fm={key:0,class:"vuefinder__treeview__pinned-list"},vm={class:"vuefinder__treeview__pinned-item"},pm=["onClick"],_m=["title"],hm=["onClick"],gm={key:0},km={class:"vuefinder__treeview__no-pinned"},wm={class:"vuefinder__treeview__storage"},bm={__name:"TreeView",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,{getStore:s,setStore:r}=t.storage,c=e.ref(190),a=e.ref(s("pinned-folders-opened",!0));e.watch(a,m=>r("pinned-folders-opened",m));const i=m=>{t.pinnedFolders=t.pinnedFolders.filter(u=>u.path!==m.path),t.storage.setStore("pinned-folders",t.pinnedFolders)},l=m=>{const u=m.clientX,v=m.target.parentElement,f=v.getBoundingClientRect().width;v.classList.remove("transition-[width]"),v.classList.add("transition-none");const p=_=>{c.value=f+_.clientX-u,c.value<50&&(c.value=0,t.showTreeView=!1),c.value>50&&(t.showTreeView=!0)},w=()=>{const _=v.getBoundingClientRect();c.value=_.width,v.classList.add("transition-[width]"),v.classList.remove("transition-none"),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",w)};window.addEventListener("mousemove",p),window.addEventListener("mouseup",w)},d=e.ref(null);return e.onMounted(()=>{xe(d.value,{overflow:{x:"hidden"},scrollbars:{theme:"vf-theme-dark dark:vf-theme-light"}})}),e.watch(t.fs.data,(m,u)=>{const v=m.files.filter(f=>f.type==="dir");vr(t.treeViewData,{path:t.fs.path,folders:v.map(f=>({adapter:f.storage,path:f.path,basename:f.basename}))})}),(m,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:u[0]||(u[0]=v=>e.unref(t).showTreeView=!e.unref(t).showTreeView),class:e.normalizeClass(["vuefinder__treeview__overlay",e.unref(t).showTreeView?"vuefinder__treeview__backdrop":"hidden"])},null,2),e.createElementVNode("div",{style:e.normalizeStyle(e.unref(t).showTreeView?"min-width:100px;max-width:75%; width: "+c.value+"px":"width: 0"),class:"vuefinder__treeview__container"},[e.createElementVNode("div",{ref_key:"treeViewScrollElement",ref:d,class:"vuefinder__treeview__scroll"},[e.createElementVNode("div",dm,[e.createElementVNode("div",{onClick:u[2]||(u[2]=v=>a.value=!a.value),class:"vuefinder__treeview__pinned-toggle"},[e.createElementVNode("div",um,[e.createVNode(e.unref(ir),{class:"vuefinder__treeview__pin-icon"}),e.createElementVNode("div",mm,e.toDisplayString(e.unref(o)("Pinned Folders")),1)]),e.createVNode(im,{modelValue:a.value,"onUpdate:modelValue":u[1]||(u[1]=v=>a.value=v)},null,8,["modelValue"])]),a.value?(e.openBlock(),e.createElementBlock("ul",fm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).pinnedFolders,v=>(e.openBlock(),e.createElementBlock("li",vm,[e.createElementVNode("div",{class:"vuefinder__treeview__pinned-folder",onClick:f=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:v.storage,path:v.path}})},[e.unref(t).fs.path!==v.path?(e.openBlock(),e.createBlock(e.unref(It),{key:0,class:"vuefinder__treeview__folder-icon"})):e.createCommentVNode("",!0),e.unref(t).fs.path===v.path?(e.openBlock(),e.createBlock(e.unref(ur),{key:1,class:"vuefinder__treeview__open-folder-icon"})):e.createCommentVNode("",!0),e.createElementVNode("div",{title:v.path,class:e.normalizeClass(["vuefinder__treeview__folder-name text-nowrap",{"vuefinder__treeview__folder-name--active":e.unref(t).fs.path===v.path}])},e.toDisplayString(v.basename),11,_m)],8,pm),e.createElementVNode("div",{class:"vuefinder__treeview__remove-favorite",onClick:f=>i(v)},[e.createVNode(e.unref(Gu),{class:"vuefinder__treeview__remove-icon"})],8,hm)]))),256)),e.unref(t).pinnedFolders.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",gm,[e.createElementVNode("div",km,e.toDisplayString(e.unref(o)("No folders pinned")),1)]))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.data.storages,v=>(e.openBlock(),e.createElementBlock("div",wm,[e.createVNode(lm,{storage:v},null,8,["storage"])]))),256))],512),e.createElementVNode("div",{onMousedown:l,class:e.normalizeClass([(e.unref(t).showTreeView,""),"vuefinder__treeview__resize-handle"])},null,34)],4)],64))}},ym={class:"vuefinder__main__content"},Em={__name:"VueFinder",props:{id:{type:String,default:"vf"},request:{type:[String,Object],required:!0},persist:{type:Boolean,default:!1},path:{type:String,default:""},features:{type:[Array,Boolean],default:!0},debug:{type:Boolean,default:!1},theme:{type:String,default:"system"},locale:{type:String,default:null},maxHeight:{type:String,default:"600px"},maxFileSize:{type:String,default:"10mb"},fullScreen:{type:Boolean,default:!1},showTreeView:{type:Boolean,default:!1},pinnedFolders:{type:Array,default:[]},showThumbnails:{type:Boolean,default:!0},selectButton:{type:Object,default(n){return{active:!1,multiple:!1,click:t=>{},...n}}}},emits:["select"],setup(n,{emit:t}){const o=t,r=qs(n,e.inject("VueFinderOptions"));e.provide("ServiceContainer",r);const{setStore:c}=r.storage,a=e.ref(null);r.root=a;const i=r.dragSelect;ba(r);const l=m=>{Object.assign(r.fs.data,m),i.clearSelection(),i.refreshSelection()};let d;return r.emitter.on("vf-fetch-abort",()=>{d.abort(),r.fs.loading=!1}),r.emitter.on("vf-fetch",({params:m,body:u=null,onSuccess:v=null,onError:f=null,noCloseModal:p=!1})=>{["index","search"].includes(m.q)&&(d&&d.abort(),r.fs.loading=!0),d=new AbortController;const w=d.signal;r.requester.send({url:"",method:m.m||"get",params:m,body:u,abortSignal:w}).then(_=>{r.fs.adapter=_.adapter,r.persist&&(r.fs.path=_.dirname,c("path",r.fs.path)),["index","search"].includes(m.q)&&(r.fs.loading=!1),p||r.modal.close(),l(_),v&&v(_)}).catch(_=>{console.error(_),f&&f(_)})}),e.onMounted(()=>{let m={};r.fs.path.includes("://")&&(m={adapter:r.fs.path.split("://")[0],path:r.fs.path}),r.emitter.emit("vf-fetch",{params:{q:"index",adapter:r.fs.adapter,...m}}),i.onSelect(u=>{o("select",u)})}),(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder",ref_key:"root",ref:a,tabindex:"0"},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).theme.actualValue)},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r).fullScreen?"vuefinder__main__fixed":"vuefinder__main__relative","vuefinder__main__container"]),style:e.normalizeStyle(e.unref(r).fullScreen?"":"max-height: "+n.maxHeight),onMousedown:u[0]||(u[0]=v=>e.unref(r).emitter.emit("vf-contextmenu-hide")),onTouchstart:u[1]||(u[1]=v=>e.unref(r).emitter.emit("vf-contextmenu-hide"))},[e.createVNode(Gc),e.createVNode(Yi),e.createElementVNode("div",ym,[e.createVNode(bm),e.createVNode(bu)]),e.createVNode(Iu)],38),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.unref(r).modal.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r).modal.type),{key:0})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(Vu)],2)],512))}},Vm={install(n,t={}){t.i18n=t.i18n??{};let[o]=Object.keys(t.i18n);t.locale=t.locale??o??"en",n.provide("VueFinderOptions",t),n.component("VueFinder",Em)}};module.exports=Vm; + */const pe=(n,t)=>{const{o,i:s,u:r}=n;let c=o,a;const i=(f,u)=>{const v=c,m=f,p=u||(s?!s(v,m):v!==m);return(p||r)&&(c=m,a=v),[c,p,a]};return[t?f=>i(t(c,a),f):i,f=>[c,!!f,a]]},Rr=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,ve=Rr?window:{},ao=Math.max,Ir=Math.min,Qt=Math.round,St=Math.abs,Hn=Math.sign,co=ve.cancelAnimationFrame,hn=ve.requestAnimationFrame,Nt=ve.setTimeout,en=ve.clearTimeout,Mt=n=>typeof ve[n]<"u"?ve[n]:void 0,zr=Mt("MutationObserver"),Rn=Mt("IntersectionObserver"),xt=Mt("ResizeObserver"),bt=Mt("ScrollTimeline"),gn=n=>n===void 0,At=n=>n===null,Se=n=>typeof n=="number",ct=n=>typeof n=="string",kn=n=>typeof n=="boolean",we=n=>typeof n=="function",Ne=n=>Array.isArray(n),Bt=n=>typeof n=="object"&&!Ne(n)&&!At(n),wn=n=>{const t=!!n&&n.length,o=Se(t)&&t>-1&&t%1==0;return Ne(n)||!we(n)&&o?t>0&&Bt(n)?t-1 in n:!0:!1},Ct=n=>!!n&&n.constructor===Object,$t=n=>n instanceof HTMLElement,Lt=n=>n instanceof Element;function Y(n,t){if(wn(n))for(let o=0;ot(n[o],o,n));return n}const io=(n,t)=>n.indexOf(t)>=0,st=(n,t)=>n.concat(t),ne=(n,t,o)=>(!ct(t)&&wn(t)?Array.prototype.push.apply(n,t):n.push(t),n),Ie=n=>Array.from(n||[]),bn=n=>Ne(n)?n:!ct(n)&&wn(n)?Ie(n):[n],tn=n=>!!n&&!n.length,nn=n=>Ie(new Set(n)),ge=(n,t,o)=>{Y(n,r=>r?r.apply(void 0,t||[]):!0),!o&&(n.length=0)},uo="paddingTop",mo="paddingRight",fo="paddingLeft",vo="paddingBottom",po="marginLeft",_o="marginRight",ho="marginBottom",go="overflowX",ko="overflowY",Ot="width",Ft="height",He="visible",Ue="hidden",Je="scroll",Ur=n=>{const t=String(n||"");return t?t[0].toUpperCase()+t.slice(1):""},Ht=(n,t,o,s)=>{if(n&&t){let r=!0;return Y(o,c=>{const a=n[c],i=t[c];a!==i&&(r=!1)}),r}return!1},wo=(n,t)=>Ht(n,t,["w","h"]),yt=(n,t)=>Ht(n,t,["x","y"]),qr=(n,t)=>Ht(n,t,["t","r","b","l"]),qe=()=>{},U=(n,...t)=>n.bind(0,...t),Ke=n=>{let t;const o=n?Nt:hn,s=n?en:co;return[r=>{s(t),t=o(()=>r(),we(n)?n():n)},()=>s(t)]},on=(n,t)=>{const{_:o,v:s,p:r,S:c}=t||{};let a,i,l,d,f=qe;const u=function(w){f(),en(a),d=a=i=void 0,f=qe,n.apply(this,w)},v=k=>c&&i?c(i,k):k,m=()=>{f!==qe&&u(v(l)||l)},p=function(){const w=Ie(arguments),E=we(o)?o():o;if(Se(E)&&E>=0){const S=we(s)?s():s,b=Se(S)&&S>=0,x=E>0?Nt:hn,C=E>0?en:co,B=v(w)||w,h=u.bind(0,B);let _;f(),r&&!d?(h(),d=!0,_=x(()=>d=void 0,E)):(_=x(h,E),b&&!a&&(a=Nt(m,S))),f=()=>C(_),i=l=B}else u(w)};return p.m=m,p},bo=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),be=n=>n?Object.keys(n):[],W=(n,t,o,s,r,c,a)=>{const i=[t,o,s,r,c,a];return(typeof n!="object"||At(n))&&!we(n)&&(n={}),Y(i,l=>{Y(l,(d,f)=>{const u=l[f];if(n===u)return!0;const v=Ne(u);if(u&&Ct(u)){const m=n[f];let p=m;v&&!Ne(m)?p=[]:!v&&!Ct(m)&&(p={}),n[f]=W(p,u)}else n[f]=v?u.slice():u})}),n},yo=(n,t)=>Y(W({},n),(o,s,r)=>{o===void 0?delete r[s]:o&&Ct(o)&&(r[s]=yo(o))}),yn=n=>!be(n).length,Eo=(n,t,o)=>ao(n,Ir(t,o)),je=n=>nn((Ne(n)?n:(n||"").split(" ")).filter(t=>t)),En=(n,t)=>n&&n.getAttribute(t),In=(n,t)=>n&&n.hasAttribute(t),Te=(n,t,o)=>{Y(je(t),s=>{n&&n.setAttribute(s,String(o||""))})},Ee=(n,t)=>{Y(je(t),o=>n&&n.removeAttribute(o))},Rt=(n,t)=>{const o=je(En(n,t)),s=U(Te,n,t),r=(c,a)=>{const i=new Set(o);return Y(je(c),l=>{i[a](l)}),Ie(i).join(" ")};return{O:c=>s(r(c,"delete")),$:c=>s(r(c,"add")),C:c=>{const a=je(c);return a.reduce((i,l)=>i&&o.includes(l),a.length>0)}}},Vo=(n,t,o)=>(Rt(n,t).O(o),U(Vn,n,t,o)),Vn=(n,t,o)=>(Rt(n,t).$(o),U(Vo,n,t,o)),Dt=(n,t,o,s)=>(s?Vn:Vo)(n,t,o),Sn=(n,t,o)=>Rt(n,t).C(o),So=n=>Rt(n,"class"),No=(n,t)=>{So(n).O(t)},Nn=(n,t)=>(So(n).$(t),U(No,n,t)),xo=(n,t)=>{const o=t?Lt(t)&&t:document;return o?Ie(o.querySelectorAll(n)):[]},jr=(n,t)=>{const o=t?Lt(t)&&t:document;return o&&o.querySelector(n)},rn=(n,t)=>Lt(n)&&n.matches(t),Bo=n=>rn(n,"body"),sn=n=>n?Ie(n.childNodes):[],lt=n=>n&&n.parentElement,We=(n,t)=>Lt(n)&&n.closest(t),ln=n=>document.activeElement,Pr=(n,t,o)=>{const s=We(n,t),r=n&&jr(o,s),c=We(r,t)===s;return s&&r?s===n||r===n||c&&We(We(n,o),t)!==s:!1},Ze=n=>{Y(bn(n),t=>{const o=lt(t);t&&o&&o.removeChild(t)})},_e=(n,t)=>U(Ze,n&&t&&Y(bn(t),o=>{o&&n.appendChild(o)})),Ye=n=>{const t=document.createElement("div");return Te(t,"class",n),t},Co=n=>{const t=Ye();return t.innerHTML=n.trim(),Y(sn(t),o=>Ze(o))},zn=(n,t)=>n.getPropertyValue(t)||n[t]||"",$o=n=>{const t=n||0;return isFinite(t)?t:0},gt=n=>$o(parseFloat(n||"")),an=n=>Math.round(n*1e4)/1e4,Do=n=>`${an($o(n))}px`;function at(n,t){n&&t&&Y(t,(o,s)=>{try{const r=n.style,c=At(o)||kn(o)?"":Se(o)?Do(o):o;s.indexOf("--")===0?r.setProperty(s,c):r[s]=c}catch{}})}function Ae(n,t,o){const s=ct(t);let r=s?"":{};if(n){const c=ve.getComputedStyle(n,o)||n.style;r=s?zn(c,t):Ie(t).reduce((a,i)=>(a[i]=zn(c,i),a),r)}return r}const Un=(n,t,o)=>{const s=t?`${t}-`:"",r=o?`-${o}`:"",c=`${s}top${r}`,a=`${s}right${r}`,i=`${s}bottom${r}`,l=`${s}left${r}`,d=Ae(n,[c,a,i,l]);return{t:gt(d[c]),r:gt(d[a]),b:gt(d[i]),l:gt(d[l])}},Gr=(n,t)=>`translate${Bt(n)?`(${n.x},${n.y})`:`Y(${n})`}`,Kr=n=>!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length),Wr={w:0,h:0},It=(n,t)=>t?{w:t[`${n}Width`],h:t[`${n}Height`]}:Wr,Yr=n=>It("inner",n||ve),Xe=U(It,"offset"),To=U(It,"client"),Tt=U(It,"scroll"),xn=n=>{const t=parseFloat(Ae(n,Ot))||0,o=parseFloat(Ae(n,Ft))||0;return{w:t-Qt(t),h:o-Qt(o)}},Wt=n=>n.getBoundingClientRect(),Xr=n=>!!n&&Kr(n),cn=n=>!!(n&&(n[Ft]||n[Ot])),Mo=(n,t)=>{const o=cn(n);return!cn(t)&&o},qn=(n,t,o,s)=>{Y(je(t),r=>{n&&n.removeEventListener(r,o,s)})},Q=(n,t,o,s)=>{var r;const c=(r=s&&s.H)!=null?r:!0,a=s&&s.I||!1,i=s&&s.A||!1,l={passive:c,capture:a};return U(ge,je(t).map(d=>{const f=i?u=>{qn(n,d,f,a),o&&o(u)}:o;return n&&n.addEventListener(d,f,l),U(qn,n,d,f,a)}))},Ao=n=>n.stopPropagation(),dn=n=>n.preventDefault(),Lo=n=>Ao(n)||dn(n),Ve=(n,t)=>{const{x:o,y:s}=Se(t)?{x:t,y:t}:t||{};Se(o)&&(n.scrollLeft=o),Se(s)&&(n.scrollTop=s)},he=n=>({x:n.scrollLeft,y:n.scrollTop}),Oo=()=>({D:{x:0,y:0},M:{x:0,y:0}}),Jr=(n,t)=>{const{D:o,M:s}=n,{w:r,h:c}=t,a=(u,v,m)=>{let p=Hn(u)*m,k=Hn(v)*m;if(p===k){const w=St(u),E=St(v);k=w>E?0:k,p=w{const o=(s,r)=>s===0&&s<=r;return{x:o(n.x,t.x),y:o(n.y,t.y)}},Pn=({D:n,M:t},o)=>{const s=(r,c,a)=>Eo(0,1,(r-a)/(r-c)||0);return{x:s(n.x,t.x,o.x),y:s(n.y,t.y,o.y)}},un=n=>{n&&n.focus&&n.focus({preventScroll:!0})},Gn=(n,t)=>{Y(bn(t),n)},mn=n=>{const t=new Map,o=(c,a)=>{if(c){const i=t.get(c);Gn(l=>{i&&i[l?"delete":"clear"](l)},a)}else t.forEach(i=>{i.clear()}),t.clear()},s=(c,a)=>{if(ct(c)){const d=t.get(c)||new Set;return t.set(c,d),Gn(f=>{we(f)&&d.add(f)},a),U(o,c,a)}kn(a)&&a&&o();const i=be(c),l=[];return Y(i,d=>{const f=c[d];f&&ne(l,s(d,f))}),U(ge,l)},r=(c,a)=>{Y(Ie(t.get(c)),i=>{a&&!tn(a)?i.apply(0,a):i()})};return s(n||{}),[s,o,r]},Kn=n=>JSON.stringify(n,(t,o)=>{if(we(o))throw 0;return o}),Wn=(n,t)=>n?`${t}`.split(".").reduce((o,s)=>o&&bo(o,s)?o[s]:void 0,n):void 0,Zr={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Fo=(n,t)=>{const o={},s=st(be(t),be(n));return Y(s,r=>{const c=n[r],a=t[r];if(Bt(c)&&Bt(a))W(o[r]={},Fo(c,a)),yn(o[r])&&delete o[r];else if(bo(t,r)&&a!==c){let i=!0;if(Ne(c)||Ne(a))try{Kn(c)===Kn(a)&&(i=!1)}catch{}i&&(o[r]=a)}}),o},Yn=(n,t,o)=>s=>[Wn(n,s),o||Wn(t,s)!==void 0],et="data-overlayscrollbars",Et="os-environment",kt=`${Et}-scrollbar-hidden`,Yt=`${et}-initialize`,Vt="noClipping",Xn=`${et}-body`,Re=et,Qr="host",Me=`${et}-viewport`,es=go,ts=ko,ns="arrange",Ho="measuring",os="scrolling",Ro="scrollbarHidden",rs="noContent",fn=`${et}-padding`,Jn=`${et}-content`,Bn="os-size-observer",ss=`${Bn}-appear`,ls=`${Bn}-listener`,as="os-trinsic-observer",cs="os-theme-none",ke="os-scrollbar",is=`${ke}-rtl`,ds=`${ke}-horizontal`,us=`${ke}-vertical`,Io=`${ke}-track`,Cn=`${ke}-handle`,ms=`${ke}-visible`,fs=`${ke}-cornerless`,Zn=`${ke}-interaction`,Qn=`${ke}-unusable`,vn=`${ke}-auto-hide`,eo=`${vn}-hidden`,to=`${ke}-wheel`,vs=`${Io}-interactive`,ps=`${Cn}-interactive`;let zo;const _s=()=>zo,hs=n=>{zo=n};let Xt;const gs=()=>{const n=(b,x,C)=>{_e(document.body,b),_e(document.body,b);const F=To(b),B=Xe(b),h=xn(x);return C&&Ze(b),{x:B.h-F.h+h.h,y:B.w-F.w+h.w}},t=b=>{let x=!1;const C=Nn(b,kt);try{x=Ae(b,"scrollbar-width")==="none"||Ae(b,"display","::-webkit-scrollbar")==="none"}catch{}return C(),x},o=`.${Et}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Et} div{width:200%;height:200%;margin:10px 0}.${kt}{scrollbar-width:none!important}.${kt}::-webkit-scrollbar,.${kt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=Co(`
`)[0],c=r.firstChild,a=r.lastChild,i=_s();i&&(a.nonce=i);const[l,,d]=mn(),[f,u]=pe({o:n(r,c),i:yt},U(n,r,c,!0)),[v]=u(),m=t(r),p={x:v.x===0,y:v.y===0},k={elements:{host:null,padding:!m,viewport:b=>m&&Bo(b)&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},w=W({},Zr),E=U(W,{},w),T=U(W,{},k),S={T:v,k:p,R:m,V:!!bt,L:U(l,"r"),U:T,P:b=>W(k,b)&&T(),N:E,q:b=>W(w,b)&&E(),B:W({},k),F:W({},w)};if(Ee(r,"style"),Ze(r),Q(ve,"resize",()=>{d("r",[])}),we(ve.matchMedia)&&!m&&(!p.x||!p.y)){const b=x=>{const C=ve.matchMedia(`(resolution: ${ve.devicePixelRatio}dppx)`);Q(C,"change",()=>{x(),b(x)},{A:!0})};b(()=>{const[x,C]=f();W(S.T,x),d("r",[C])})}return S},Be=()=>(Xt||(Xt=gs()),Xt),Uo=(n,t)=>we(t)?t.apply(0,n):t,ks=(n,t,o,s)=>{const r=gn(s)?o:s;return Uo(n,r)||t.apply(0,n)},qo=(n,t,o,s)=>{const r=gn(s)?o:s,c=Uo(n,r);return!!c&&($t(c)?c:t.apply(0,n))},ws=(n,t)=>{const{nativeScrollbarsOverlaid:o,body:s}=t||{},{k:r,R:c,U:a}=Be(),{nativeScrollbarsOverlaid:i,body:l}=a().cancel,d=o??i,f=gn(s)?l:s,u=(r.x||r.y)&&d,v=n&&(At(f)?!c:f);return!!u||!!v},$n=new WeakMap,bs=(n,t)=>{$n.set(n,t)},ys=n=>{$n.delete(n)},jo=n=>$n.get(n),Es=(n,t,o)=>{let s=!1;const r=o?new WeakMap:!1,c=()=>{s=!0},a=i=>{if(r&&o){const l=o.map(d=>{const[f,u]=d||[];return[u&&f?(i||xo)(f,n):[],u]});Y(l,d=>Y(d[0],f=>{const u=d[1],v=r.get(f)||[];if(n.contains(f)&&u){const p=Q(f,u,k=>{s?(p(),r.delete(f)):t(k)});r.set(f,ne(v,p))}else ge(v),r.delete(f)}))}};return a(),[c,a]},no=(n,t,o,s)=>{let r=!1;const{j:c,X:a,Y:i,W:l,J:d,G:f}=s||{},u=on(()=>r&&o(!0),{_:33,v:99}),[v,m]=Es(n,u,i),p=c||[],k=a||[],w=st(p,k),E=(S,b)=>{if(!tn(b)){const x=d||qe,C=f||qe,F=[],B=[];let h=!1,_=!1;if(Y(b,y=>{const{attributeName:V,target:M,type:g,oldValue:L,addedNodes:O,removedNodes:j}=y,K=g==="attributes",G=g==="childList",oe=n===M,$=K&&V,D=$&&En(M,V||""),A=ct(D)?D:null,H=$&&L!==A,N=io(k,V)&&H;if(t&&(G||!oe)){const I=K&&H,R=I&&l&&rn(M,l),P=(R?!x(M,V,L,A):!K||I)&&!C(y,!!R,n,s);Y(O,X=>ne(F,X)),Y(j,X=>ne(F,X)),_=_||P}!t&&oe&&H&&!x(M,V,L,A)&&(ne(B,V),h=h||N)}),m(y=>nn(F).reduce((V,M)=>(ne(V,xo(y,M)),rn(M,y)?ne(V,M):V),[])),t)return!S&&_&&o(!1),[!1];if(!tn(B)||h){const y=[nn(B),h];return!S&&o.apply(0,y),y}}},T=new zr(U(E,!1));return[()=>(T.observe(n,{attributes:!0,attributeOldValue:!0,attributeFilter:w,subtree:t,childList:t,characterData:t}),r=!0,()=>{r&&(v(),T.disconnect(),r=!1)}),()=>{if(r)return u.m(),E(!0,T.takeRecords())}]},Po={},Go={},Vs=n=>{Y(n,t=>Y(t,(o,s)=>{Po[s]=t[s]}))},Ko=(n,t,o)=>be(n).map(s=>{const{static:r,instance:c}=n[s],[a,i,l]=o||[],d=o?c:r;if(d){const f=o?d(a,i,t):d(t);return(l||Go)[s]=f}}),it=n=>Go[n],Ss="__osOptionsValidationPlugin",Ns="__osSizeObserverPlugin",xs=(n,t)=>{const{k:o}=t,[s,r]=n("showNativeOverlaidScrollbars");return[s&&o.x&&o.y,r]},Qe=n=>n.indexOf(He)===0,Bs=(n,t)=>{const o=(r,c,a,i)=>{const l=r===He?Ue:r.replace(`${He}-`,""),d=Qe(r),f=Qe(a);return!c&&!i?Ue:d&&f?He:d?c&&i?l:c?He:Ue:c?l:f&&i?He:Ue},s={x:o(t.x,n.x,t.y,n.y),y:o(t.y,n.y,t.x,n.x)};return{K:s,Z:{x:s.x===Je,y:s.y===Je}}},Wo="__osScrollbarsHidingPlugin",Cs="__osClickScrollPlugin",Yo=(n,t,o)=>{const{dt:s}=o||{},r=it(Ns),[c]=pe({o:!1,u:!0});return()=>{const a=[],l=Co(`
`)[0],d=l.firstChild,f=u=>{const v=u instanceof ResizeObserverEntry;let m=!1,p=!1;if(v){const[k,,w]=c(u.contentRect),E=cn(k);p=Mo(k,w),m=!p&&!E}else p=u===!0;m||t({ft:!0,dt:p})};if(xt){const u=new xt(v=>f(v.pop()));u.observe(d),ne(a,()=>{u.disconnect()})}else if(r){const[u,v]=r(d,f,s);ne(a,st([Nn(l,ss),Q(l,"animationstart",u)],v))}else return qe;return U(ge,ne(a,_e(n,l)))}},$s=(n,t)=>{let o;const s=l=>l.h===0||l.isIntersecting||l.intersectionRatio>0,r=Ye(as),[c]=pe({o:!1}),a=(l,d)=>{if(l){const f=c(s(l)),[,u]=f;return u&&!d&&t(f)&&[f]}},i=(l,d)=>a(d.pop(),l);return[()=>{const l=[];if(Rn)o=new Rn(U(i,!1),{root:n}),o.observe(r),ne(l,()=>{o.disconnect()});else{const d=()=>{const f=Xe(r);a(f)};ne(l,Yo(r,d)()),d()}return U(ge,ne(l,_e(n,r)))},()=>o&&i(!0,o.takeRecords())]},Ds=(n,t,o,s)=>{let r,c,a,i,l,d;const f=`[${Re}]`,u=`[${Me}]`,v=["id","class","style","open","wrap","cols","rows"],{vt:m,ht:p,ot:k,gt:w,bt:E,nt:T,wt:S,yt:b,St:x,Ot:C}=n,F=N=>Ae(N,"direction")==="rtl",B={$t:!1,ct:F(m)},h=Be(),_=it(Wo),[y]=pe({i:wo,o:{w:0,h:0}},()=>{const N=_&&_.tt(n,t,B,h,o).ut,R=!(S&&T)&&Sn(p,Re,Vt),z=!T&&b(ns),P=z&&he(w),X=P&&C(),se=x(Ho,R),ee=z&&N&&N()[0],ie=Tt(k),q=xn(k);return ee&&ee(),Ve(w,P),X&&X(),R&&se(),{w:ie.w+q.w,h:ie.h+q.h}}),V=on(s,{_:()=>r,v:()=>c,S(N,I){const[R]=N,[z]=I;return[st(be(R),be(z)).reduce((P,X)=>(P[X]=R[X]||z[X],P),{})]}}),M=N=>{const I=F(m);W(N,{Ct:d!==I}),W(B,{ct:I}),d=I},g=(N,I)=>{const[R,z]=N,P={xt:z};return W(B,{$t:R}),!I&&s(P),P},L=({ft:N,dt:I})=>{const z=!(N&&!I)&&h.R?V:s,P={ft:N||I,dt:I};M(P),z(P)},O=(N,I)=>{const[,R]=y(),z={Ht:R};return M(z),R&&!I&&(N?s:V)(z),z},j=(N,I,R)=>{const z={Et:I};return M(z),I&&!R&&V(z),z},[K,G]=E?$s(p,g):[],oe=!T&&Yo(p,L,{dt:!0}),[$,D]=no(p,!1,j,{X:v,j:v}),A=T&&xt&&new xt(N=>{const I=N[N.length-1].contentRect;L({ft:!0,dt:Mo(I,l)}),l=I}),H=on(()=>{const[,N]=y();s({Ht:N})},{_:222,p:!0});return[()=>{A&&A.observe(p);const N=oe&&oe(),I=K&&K(),R=$(),z=h.L(P=>{P?V({zt:P}):H()});return()=>{A&&A.disconnect(),N&&N(),I&&I(),i&&i(),R(),z()}},({It:N,At:I,Dt:R})=>{const z={},[P]=N("update.ignoreMutation"),[X,se]=N("update.attributes"),[ee,ie]=N("update.elementEvents"),[q,de]=N("update.debounce"),me=ie||se,ae=I||R,ue=re=>we(P)&&P(re);if(me){a&&a(),i&&i();const[re,le]=no(E||k,!0,O,{j:st(v,X||[]),Y:ee,W:f,G:(J,te)=>{const{target:ce,attributeName:fe}=J;return(!te&&fe&&!T?Pr(ce,f,u):!1)||!!We(ce,`.${ke}`)||!!ue(J)}});i=re(),a=le}if(de)if(V.m(),Ne(q)){const re=q[0],le=q[1];r=Se(re)&&re,c=Se(le)&&le}else Se(q)?(r=q,c=!1):(r=!1,c=!1);if(ae){const re=D(),le=G&&G(),J=a&&a();re&&W(z,j(re[0],re[1],ae)),le&&W(z,g(le[0],ae)),J&&W(z,O(J[0],ae))}return M(z),z},B]},Ts=(n,t,o,s)=>{const r="--os-viewport-percent",c="--os-scroll-percent",a="--os-scroll-direction",{U:i}=Be(),{scrollbars:l}=i(),{slot:d}=l,{vt:f,ht:u,ot:v,Mt:m,gt:p,wt:k,nt:w}=t,{scrollbars:E}=m?{}:n,{slot:T}=E||{},S=[],b=[],x=[],C=qo([f,u,v],()=>w&&k?f:u,d,T),F=$=>{if(bt){const D=new bt({source:p,axis:$});return{kt:H=>{const N=H.Tt.animate({clear:["left"],[c]:[0,1]},{timeline:D});return()=>N.cancel()}}}},B={x:F("x"),y:F("y")},h=()=>{const{Rt:$,Vt:D}=o,A=(H,N)=>Eo(0,1,H/(H+N)||0);return{x:A(D.x,$.x),y:A(D.y,$.y)}},_=($,D,A)=>{const H=A?Nn:No;Y($,N=>{H(N.Tt,D)})},y=($,D)=>{Y($,A=>{const[H,N]=D(A);at(H,N)})},V=($,D,A)=>{const H=kn(A),N=H?A:!0,I=H?!A:!0;N&&_(b,$,D),I&&_(x,$,D)},M=()=>{const $=h(),D=A=>H=>[H.Tt,{[r]:an(A)+""}];y(b,D($.x)),y(x,D($.y))},g=()=>{if(!bt){const{Lt:$}=o,D=Pn($,he(p)),A=H=>N=>[N.Tt,{[c]:an(H)+""}];y(b,A(D.x)),y(x,A(D.y))}},L=()=>{const{Lt:$}=o,D=jn($),A=H=>N=>[N.Tt,{[a]:H?"0":"1"}];y(b,A(D.x)),y(x,A(D.y))},O=()=>{if(w&&!k){const{Rt:$,Lt:D}=o,A=jn(D),H=Pn(D,he(p)),N=I=>{const{Tt:R}=I,z=lt(R)===v&&R,P=(X,se,ee)=>{const ie=se*X;return Do(ee?ie:-ie)};return[z,z&&{transform:Gr({x:P(H.x,$.x,A.x),y:P(H.y,$.y,A.y)})}]};y(b,N),y(x,N)}},j=$=>{const D=$?"x":"y",H=Ye(`${ke} ${$?ds:us}`),N=Ye(Io),I=Ye(Cn),R={Tt:H,Ut:N,Pt:I},z=B[D];return ne($?b:x,R),ne(S,[_e(H,N),_e(N,I),U(Ze,H),z&&z.kt(R),s(R,V,$)]),R},K=U(j,!0),G=U(j,!1),oe=()=>(_e(C,b[0].Tt),_e(C,x[0].Tt),U(ge,S));return K(),G(),[{Nt:M,qt:g,Bt:L,Ft:O,jt:V,Xt:{Yt:b,Wt:K,Jt:U(y,b)},Gt:{Yt:x,Wt:G,Jt:U(y,x)}},oe]},Ms=(n,t,o,s)=>(r,c,a)=>{const{ht:i,ot:l,nt:d,gt:f,Kt:u,Ot:v}=t,{Tt:m,Ut:p,Pt:k}=r,[w,E]=Ke(333),[T,S]=Ke(444),b=F=>{we(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:F.x,top:F.y})},x=()=>{const F="pointerup pointercancel lostpointercapture",B=`client${a?"X":"Y"}`,h=a?Ot:Ft,_=a?"left":"top",y=a?"w":"h",V=a?"x":"y",M=(L,O)=>j=>{const{Rt:K}=o,G=Xe(p)[y]-Xe(k)[y],$=O*j/G*K[V];Ve(f,{[V]:L+$})},g=[];return Q(p,"pointerdown",L=>{const O=We(L.target,`.${Cn}`)===k,j=O?k:p,K=n.scrollbars,G=K[O?"dragScroll":"clickScroll"],{button:oe,isPrimary:$,pointerType:D}=L,{pointers:A}=K;if(oe===0&&$&&G&&(A||[]).includes(D)){ge(g),S();const N=!O&&(L.shiftKey||G==="instant"),I=U(Wt,k),R=U(Wt,p),z=(te,ce)=>(te||I())[_]-(ce||R())[_],P=Qt(Wt(f)[h])/Xe(f)[y]||1,X=M(he(f)[V],1/P),se=L[B],ee=I(),ie=R(),q=ee[h],de=z(ee,ie)+q/2,me=se-ie[_],ae=O?0:me-de,ue=te=>{ge(J),j.releasePointerCapture(te.pointerId)},re=O||N,le=v(),J=[Q(u,F,ue),Q(u,"selectstart",te=>dn(te),{H:!1}),Q(p,F,ue),re&&Q(p,"pointermove",te=>X(ae+(te[B]-se))),re&&(()=>{const te=he(f);le();const ce=he(f),fe={x:ce.x-te.x,y:ce.y-te.y};(St(fe.x)>3||St(fe.y)>3)&&(v(),Ve(f,te),b(fe),T(le))})];if(j.setPointerCapture(L.pointerId),N)X(ae);else if(!O){const te=it(Cs);if(te){const ce=te(X,ae,q,fe=>{fe?le():ne(J,le)});ne(J,ce),ne(g,U(ce,!0))}}}})};let C=!0;return U(ge,[Q(k,"pointermove pointerleave",s),Q(m,"pointerenter",()=>{c(Zn,!0)}),Q(m,"pointerleave pointercancel",()=>{c(Zn,!1)}),!d&&Q(m,"mousedown",()=>{const F=ln();(In(F,Me)||In(F,Re)||F===document.body)&&Nt(U(un,l),25)}),Q(m,"wheel",F=>{const{deltaX:B,deltaY:h,deltaMode:_}=F;C&&_===0&<(m)===i&&b({x:B,y:h}),C=!1,c(to,!0),w(()=>{C=!0,c(to)}),dn(F)},{H:!1,I:!0}),Q(m,"pointerdown",U(Q,u,"click",Lo,{A:!0,I:!0,H:!1}),{I:!0}),x(),E,S])},As=(n,t,o,s,r,c)=>{let a,i,l,d,f,u=qe,v=0;const m=$=>$.pointerType==="mouse",[p,k]=Ke(),[w,E]=Ke(100),[T,S]=Ke(100),[b,x]=Ke(()=>v),[C,F]=Ts(n,r,s,Ms(t,r,s,$=>m($)&&j())),{ht:B,Qt:h,wt:_}=r,{jt:y,Nt:V,qt:M,Bt:g,Ft:L}=C,O=($,D)=>{if(x(),$)y(eo);else{const A=U(y,eo,!0);v>0&&!D?b(A):A()}},j=()=>{(l?!a:!d)&&(O(!0),w(()=>{O(!1)}))},K=$=>{y(vn,$,!0),y(vn,$,!1)},G=$=>{m($)&&(a=l,l&&O(!0))},oe=[x,E,S,k,()=>u(),Q(B,"pointerover",G,{A:!0}),Q(B,"pointerenter",G),Q(B,"pointerleave",$=>{m($)&&(a=!1,l&&O(!1))}),Q(B,"pointermove",$=>{m($)&&i&&j()}),Q(h,"scroll",$=>{p(()=>{M(),j()}),c($),L()})];return[()=>U(ge,ne(oe,F())),({It:$,Dt:D,Zt:A,tn:H})=>{const{nn:N,sn:I,en:R,cn:z}=H||{},{Ct:P,dt:X}=A||{},{ct:se}=o,{k:ee}=Be(),{K:ie,rn:q}=s,[de,me]=$("showNativeOverlaidScrollbars"),[ae,ue]=$("scrollbars.theme"),[re,le]=$("scrollbars.visibility"),[J,te]=$("scrollbars.autoHide"),[ce,fe]=$("scrollbars.autoHideSuspend"),[tt]=$("scrollbars.autoHideDelay"),[dt,ut]=$("scrollbars.dragScroll"),[mt,ze]=$("scrollbars.clickScroll"),[Pe,Ut]=$("overflow"),qt=X&&!D,jt=q.x||q.y,Pt=N||I||z||P||D,ye=R||le||Ut,Gt=de&&ee.x&&ee.y,nt=(ot,Oe,ft)=>{const rt=ot.includes(Je)&&(re===He||re==="auto"&&Oe===Je);return y(ms,rt,ft),rt};if(v=tt,qt&&(ce&&jt?(K(!1),u(),T(()=>{u=Q(h,"scroll",U(K,!0),{A:!0})})):K(!0)),me&&y(cs,Gt),ue&&(y(f),y(ae,!0),f=ae),fe&&!ce&&K(!0),te&&(i=J==="move",l=J==="leave",d=J==="never",O(d,!0)),ut&&y(ps,dt),ze&&y(vs,!!mt),ye){const ot=nt(Pe.x,ie.x,!0),Oe=nt(Pe.y,ie.y,!1);y(fs,!(ot&&Oe))}Pt&&(M(),V(),L(),z&&g(),y(Qn,!q.x,!0),y(Qn,!q.y,!1),y(is,se&&!_))},{},C]},Ls=n=>{const t=Be(),{U:o,R:s}=t,{elements:r}=o(),{padding:c,viewport:a,content:i}=r,l=$t(n),d=l?{}:n,{elements:f}=d,{padding:u,viewport:v,content:m}=f||{},p=l?n:d.target,k=Bo(p),w=p.ownerDocument,E=w.documentElement,T=()=>w.defaultView||ve,S=U(ks,[p]),b=U(qo,[p]),x=U(Ye,""),C=U(S,x,a),F=U(b,x,i),B=q=>{const de=Xe(q),me=Tt(q),ae=Ae(q,go),ue=Ae(q,ko);return me.w-de.w>0&&!Qe(ae)||me.h-de.h>0&&!Qe(ue)},h=C(v),_=h===p,y=_&&k,V=!_&&F(m),M=!_&&h===V,g=y?E:h,L=y?g:p,O=!_&&b(x,c,u),j=!M&&V,K=[j,g,O,L].map(q=>$t(q)&&!lt(q)&&q),G=q=>q&&io(K,q),oe=!G(g)&&B(g)?g:p,$=y?E:g,A={vt:p,ht:L,ot:g,ln:O,bt:j,gt:$,Qt:y?w:g,an:k?E:oe,Kt:w,wt:k,Mt:l,nt:_,un:T,yt:q=>Sn(g,Me,q),St:(q,de)=>Dt(g,Me,q,de),Ot:()=>Dt($,Me,os,!0)},{vt:H,ht:N,ln:I,ot:R,bt:z}=A,P=[()=>{Ee(N,[Re,Yt]),Ee(H,Yt),k&&Ee(E,[Yt,Re])}];let X=sn([z,R,I,N,H].find(q=>q&&!G(q)));const se=y?H:z||R,ee=U(ge,P);return[A,()=>{const q=T(),de=ln(),me=J=>{_e(lt(J),sn(J)),Ze(J)},ae=J=>Q(J,"focusin focusout focus blur",Lo,{I:!0,H:!1}),ue="tabindex",re=En(R,ue),le=ae(de);return Te(N,Re,_?"":Qr),Te(I,fn,""),Te(R,Me,""),Te(z,Jn,""),_||(Te(R,ue,re||"-1"),k&&Te(E,Xn,"")),_e(se,X),_e(N,I),_e(I||N,!_&&R),_e(R,z),ne(P,[le,()=>{const J=ln(),te=G(R),ce=te&&J===R?H:J,fe=ae(ce);Ee(I,fn),Ee(z,Jn),Ee(R,Me),k&&Ee(E,Xn),re?Te(R,ue,re):Ee(R,ue),G(z)&&me(z),te&&me(R),G(I)&&me(I),un(ce),fe()}]),s&&!_&&(Vn(R,Me,Ro),ne(P,U(Ee,R,Me))),un(!_&&k&&de===H&&q.top===q?R:de),le(),X=0,ee},ee]},Os=({bt:n})=>({Zt:t,_n:o,Dt:s})=>{const{xt:r}=t||{},{$t:c}=o;n&&(r||s)&&at(n,{[Ft]:c&&"100%"})},Fs=({ht:n,ln:t,ot:o,nt:s},r)=>{const[c,a]=pe({i:qr,o:Un()},U(Un,n,"padding",""));return({It:i,Zt:l,_n:d,Dt:f})=>{let[u,v]=a(f);const{R:m}=Be(),{ft:p,Ht:k,Ct:w}=l||{},{ct:E}=d,[T,S]=i("paddingAbsolute");(p||v||(f||k))&&([u,v]=c(f));const x=!s&&(S||w||v);if(x){const C=!T||!t&&!m,F=u.r+u.l,B=u.t+u.b,h={[_o]:C&&!E?-F:0,[ho]:C?-B:0,[po]:C&&E?-F:0,top:C?-u.t:0,right:C?E?-u.r:"auto":0,left:C?E?"auto":-u.l:0,[Ot]:C&&`calc(100% + ${F}px)`},_={[uo]:C?u.t:0,[mo]:C?u.r:0,[vo]:C?u.b:0,[fo]:C?u.l:0};at(t||o,h),at(o,_),W(r,{ln:u,dn:!C,rt:t?_:W({},h,_)})}return{fn:x}}},Hs=(n,t)=>{const o=Be(),{ht:s,ln:r,ot:c,nt:a,Qt:i,gt:l,wt:d,St:f,un:u}=n,{R:v}=o,m=d&&a,p=U(ao,0),k={display:()=>!1,direction:D=>D!=="ltr",flexDirection:D=>D.endsWith("-reverse"),writingMode:D=>D!=="horizontal-tb"},w=be(k),E={i:wo,o:{w:0,h:0}},T={i:yt,o:{}},S=D=>{f(Ho,!m&&D)},b=D=>{if(!w.some(se=>{const ee=D[se];return ee&&k[se](ee)}))return{D:{x:0,y:0},M:{x:1,y:1}};S(!0);const H=he(l),N=f(rs,!0),I=Q(i,Je,se=>{const ee=he(l);se.isTrusted&&ee.x===H.x&&ee.y===H.y&&Ao(se)},{I:!0,A:!0});Ve(l,{x:0,y:0}),N();const R=he(l),z=Tt(l);Ve(l,{x:z.w,y:z.h});const P=he(l);Ve(l,{x:P.x-R.x<1&&-z.w,y:P.y-R.y<1&&-z.h});const X=he(l);return Ve(l,H),hn(()=>I()),{D:R,M:X}},x=(D,A)=>{const H=ve.devicePixelRatio%1!==0?1:0,N={w:p(D.w-A.w),h:p(D.h-A.h)};return{w:N.w>H?N.w:0,h:N.h>H?N.h:0}},[C,F]=pe(E,U(xn,c)),[B,h]=pe(E,U(Tt,c)),[_,y]=pe(E),[V]=pe(T),[M,g]=pe(E),[L]=pe(T),[O]=pe({i:(D,A)=>Ht(D,A,w),o:{}},()=>Xr(c)?Ae(c,w):{}),[j,K]=pe({i:(D,A)=>yt(D.D,A.D)&&yt(D.M,A.M),o:Oo()}),G=it(Wo),oe=(D,A)=>`${A?es:ts}${Ur(D)}`,$=D=>{const A=N=>[He,Ue,Je].map(I=>oe(I,N)),H=A(!0).concat(A()).join(" ");f(H),f(be(D).map(N=>oe(D[N],N==="x")).join(" "),!0)};return({It:D,Zt:A,_n:H,Dt:N},{fn:I})=>{const{ft:R,Ht:z,Ct:P,dt:X,zt:se}=A||{},ee=G&&G.tt(n,t,H,o,D),{it:ie,ut:q,_t:de}=ee||{},[me,ae]=xs(D,o),[ue,re]=D("overflow"),le=Qe(ue.x),J=Qe(ue.y),te=!0;let ce=F(N),fe=h(N),tt=y(N),dt=g(N);ae&&v&&f(Ro,!me);{Sn(s,Re,Vt)&&S(!0);const[Ln]=q?q():[],[vt]=ce=C(N),[pt]=fe=B(N),_t=To(c),ht=m&&Yr(u()),wr={w:p(pt.w+vt.w),h:p(pt.h+vt.h)},On={w:p((ht?ht.w:_t.w+p(_t.w-pt.w))+vt.w),h:p((ht?ht.h:_t.h+p(_t.h-pt.h))+vt.h)};Ln&&Ln(),dt=M(On),tt=_(x(wr,On),N)}const[ut,mt]=dt,[ze,Pe]=tt,[Ut,qt]=fe,[jt,Pt]=ce,[ye,Gt]=V({x:ze.w>0,y:ze.h>0}),nt=le&&J&&(ye.x||ye.y)||le&&ye.x&&!ye.y||J&&ye.y&&!ye.x,ot=I||P||se||Pt||qt||mt||Pe||re||ae||te,Oe=Bs(ye,ue),[ft,rt]=L(Oe.K),[_r,hr]=O(N),An=P||X||hr||Gt||N,[gr,kr]=An?j(b(_r),N):K();return ot&&(rt&&$(Oe.K),de&&ie&&at(c,de(Oe,H,ie(Oe,Ut,jt)))),S(!1),Dt(s,Re,Vt,nt),Dt(r,fn,Vt,nt),W(t,{K:ft,Vt:{x:ut.w,y:ut.h},Rt:{x:ze.w,y:ze.h},rn:ye,Lt:Jr(gr,ze)}),{en:rt,nn:mt,sn:Pe,cn:kr||Pe,vn:An}}},Rs=n=>{const[t,o,s]=Ls(n),r={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[_o]:0,[ho]:0,[po]:0,[uo]:0,[mo]:0,[vo]:0,[fo]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:Ue,y:Ue},rn:{x:!1,y:!1},Lt:Oo()},{vt:c,gt:a,nt:i,Ot:l}=t,{R:d,k:f}=Be(),u=!d&&(f.x||f.y),v=[Os(t),Fs(t,r),Hs(t,r)];return[o,m=>{const p={},w=u&&he(a),E=w&&l();return Y(v,T=>{W(p,T(m,p)||{})}),Ve(a,w),E&&E(),!i&&Ve(c,0),p},r,t,s]},Is=(n,t,o,s,r)=>{let c=!1;const a=Yn(t,{}),[i,l,d,f,u]=Rs(n),[v,m,p]=Ds(f,d,a,b=>{S({},b)}),[k,w,,E]=As(n,t,p,d,f,r),T=b=>be(b).some(x=>!!b[x]),S=(b,x)=>{if(o())return!1;const{pn:C,Dt:F,At:B,hn:h}=b,_=C||{},y=!!F||!c,V={It:Yn(t,_,y),pn:_,Dt:y};if(h)return w(V),!1;const M=x||m(W({},V,{At:B})),g=l(W({},V,{_n:p,Zt:M}));w(W({},V,{Zt:M,tn:g}));const L=T(M),O=T(g),j=L||O||!yn(_)||y;return c=!0,j&&s(b,{Zt:M,tn:g}),j};return[()=>{const{an:b,gt:x,Ot:C}=f,F=he(b),B=[v(),i(),k()],h=C();return Ve(x,F),h(),U(ge,B)},S,()=>({gn:p,bn:d}),{wn:f,yn:E},u]},xe=(n,t,o)=>{const{N:s}=Be(),r=$t(n),c=r?n:n.target,a=jo(c);if(t&&!a){let i=!1;const l=[],d={},f=_=>{const y=yo(_),V=it(Ss);return V?V(y,!0):y},u=W({},s(),f(t)),[v,m,p]=mn(),[k,w,E]=mn(o),T=(_,y)=>{E(_,y),p(_,y)},[S,b,x,C,F]=Is(n,u,()=>i,({pn:_,Dt:y},{Zt:V,tn:M})=>{const{ft:g,Ct:L,xt:O,Ht:j,Et:K,dt:G}=V,{nn:oe,sn:$,en:D,cn:A}=M;T("updated",[h,{updateHints:{sizeChanged:!!g,directionChanged:!!L,heightIntrinsicChanged:!!O,overflowEdgeChanged:!!oe,overflowAmountChanged:!!$,overflowStyleChanged:!!D,scrollCoordinatesChanged:!!A,contentMutation:!!j,hostMutation:!!K,appear:!!G},changedOptions:_||{},force:!!y}])},_=>T("scroll",[h,_])),B=_=>{ys(c),ge(l),i=!0,T("destroyed",[h,_]),m(),w()},h={options(_,y){if(_){const V=y?s():{},M=Fo(u,W(V,f(_)));yn(M)||(W(u,M),b({pn:M}))}return W({},u)},on:k,off:(_,y)=>{_&&y&&w(_,y)},state(){const{gn:_,bn:y}=x(),{ct:V}=_,{Vt:M,Rt:g,K:L,rn:O,ln:j,dn:K,Lt:G}=y;return W({},{overflowEdge:M,overflowAmount:g,overflowStyle:L,hasOverflow:O,scrollCoordinates:{start:G.D,end:G.M},padding:j,paddingAbsolute:K,directionRTL:V,destroyed:i})},elements(){const{vt:_,ht:y,ln:V,ot:M,bt:g,gt:L,Qt:O}=C.wn,{Xt:j,Gt:K}=C.yn,G=$=>{const{Pt:D,Ut:A,Tt:H}=$;return{scrollbar:H,track:A,handle:D}},oe=$=>{const{Yt:D,Wt:A}=$,H=G(D[0]);return W({},H,{clone:()=>{const N=G(A());return b({hn:!0}),N}})};return W({},{target:_,host:y,padding:V||M,viewport:M,content:g||M,scrollOffsetElement:L,scrollEventElement:O,scrollbarHorizontal:oe(j),scrollbarVertical:oe(K)})},update:_=>b({Dt:_,At:!0}),destroy:U(B,!1),plugin:_=>d[be(_)[0]]};return ne(l,[F]),bs(c,h),Ko(Po,xe,[h,v,d]),ws(C.wn.wt,!r&&n.cancel)?(B(!0),h):(ne(l,S()),T("initialized",[h]),h.update(),h)}return a};xe.plugin=n=>{const t=Ne(n),o=t?n:[n],s=o.map(r=>Ko(r,xe)[0]);return Vs(o),t?s:s[0]};xe.valid=n=>{const t=n&&n.elements,o=we(t)&&t();return Ct(o)&&!!jo(o.target)};xe.env=()=>{const{T:n,k:t,R:o,V:s,B:r,F:c,U:a,P:i,N:l,q:d}=Be();return W({},{scrollbarsSize:n,scrollbarsOverlaid:t,scrollbarsHiding:o,scrollTimeline:s,staticDefaultInitialization:r,staticDefaultOptions:c,getDefaultInitialization:a,setDefaultInitialization:i,getDefaultOptions:l,setDefaultOptions:d})};xe.nonce=hs;function zs(){let n;const t=e.ref(null),o=Math.floor(Math.random()*2**32),s=e.ref(!1),r=e.ref([]),c=()=>r.value,a=()=>n.getSelection(),i=()=>r.value.length,l=()=>n.clearSelection(!0),d=e.ref(),f=e.ref(null),u=e.ref(null),v=e.ref(null),m=e.ref(null);function p(){n=new Vr({area:t.value,keyboardDrag:!1,selectedClass:"vf-explorer-selected",selectorClass:"vf-explorer-selector"}),n.subscribe("DS:start:pre",({items:x,event:C,isDragging:F})=>{if(F)n.Interaction._reset(C);else{s.value=!1;const B=t.value.offsetWidth-C.offsetX,h=t.value.offsetHeight-C.offsetY;B<15&&h<15&&n.Interaction._reset(C),C.target.classList.contains("os-scrollbar-handle")&&n.Interaction._reset(C)}}),document.addEventListener("dragleave",x=>{!x.buttons&&s.value&&(s.value=!1)})}const k=()=>e.nextTick(()=>{n.addSelection(n.getSelectables()),w()}),w=()=>{r.value=n.getSelection().map(x=>JSON.parse(x.dataset.item)),d.value(r.value)},E=()=>e.nextTick(()=>{const x=c().map(C=>C.path);l(),n.setSettings({selectables:document.getElementsByClassName("vf-item-"+o)}),n.addSelection(n.getSelectables().filter(C=>x.includes(JSON.parse(C.dataset.item).path))),w(),S()}),T=x=>{d.value=x,n.subscribe("DS:end",({items:C,event:F,isDragging:B})=>{r.value=C.map(h=>JSON.parse(h.dataset.item)),x(C.map(h=>JSON.parse(h.dataset.item)))})},S=()=>{f.value&&(t.value.getBoundingClientRect().height{if(!f.value)return;const{scrollOffsetElement:C}=f.value.elements();C.scrollTo({top:t.value.scrollTop,left:0})};return e.onMounted(()=>{xe(v.value,{scrollbars:{theme:"vf-theme-dark dark:vf-theme-light"},plugins:{OverlayScrollbars:xe}},{initialized:x=>{f.value=x},scroll:(x,C)=>{const{scrollOffsetElement:F}=x.elements();t.value.scrollTo({top:F.scrollTop,left:0})}}),p(),S(),m.value=new ResizeObserver(S),m.value.observe(t.value),t.value.addEventListener("scroll",b),n.subscribe("DS:scroll",({isDragging:x})=>x||b())}),e.onUnmounted(()=>{n&&n.stop(),m.value&&m.value.disconnect()}),e.onUpdated(()=>{n&&n.Area.reset()}),{area:t,explorerId:o,isDraggingRef:s,scrollBar:u,scrollBarContainer:v,getSelected:c,getSelection:a,selectAll:k,clearSelection:l,refreshSelection:E,getCount:i,onSelect:T}}function Us(n,t){const o=e.ref(n),s=e.ref(t),r=e.ref([]),c=e.ref([]),a=e.ref([]),i=e.ref(!1),l=e.ref(5);let d=!1,f=!1;const u=e.reactive({adapter:o,storages:[],dirname:s,files:[]});function v(){let T=[],S=[],b=s.value??o.value+"://";b.length===0&&(r.value=[]),b.replace(o.value+"://","").split("/").forEach(function(F){T.push(F),T.join("/")!==""&&S.push({basename:F,name:F,path:o.value+"://"+T.join("/"),type:"dir"})}),c.value=S;const[x,C]=p(S,l.value);a.value=C,r.value=x}function m(T){l.value=T,v()}function p(T,S){return T.length>S?[T.slice(-S),T.slice(0,-S)]:[T,[]]}function k(T=null){i.value=T??!i.value}function w(){return r.value&&r.value.length&&!f}const E=e.computed(()=>{var T;return((T=r.value[r.value.length-2])==null?void 0:T.path)??o.value+"://"});return e.onMounted(()=>{}),e.watch(s,v),e.onMounted(v),{adapter:o,path:s,loading:d,searchMode:f,data:u,breadcrumbs:r,breadcrumbItems:c,limitBreadcrumbItems:m,hiddenBreadcrumbs:a,showHiddenBreadcrumbs:i,toggleHiddenBreadcrumbs:k,isGoUpAvailable:w,parentFolderPath:E}}const qs=(n,t)=>{const o=Dr(n.id),s=Er(),r=o.getStore("metricUnits",!1),c=Fr(o,n.theme),a=t.i18n,i=n.locale??t.locale,l=v=>Array.isArray(v)?v:Ar,d=o.getStore("persist-path",n.persist),f=d?o.getStore("path",n.path):n.path,u=d?o.getStore("adapter"):null;return e.reactive({version:Lr,root:null,debug:n.debug,emitter:s,storage:o,i18n:Mr(o,i,s,a),modal:Hr(),dragSelect:e.computed(()=>zs()),requester:$r(n.request),features:l(n.features),view:o.getStore("viewport","grid"),fullScreen:o.getStore("full-screen",n.fullScreen),showTreeView:o.getStore("show-tree-view",n.showTreeView),pinnedFolders:o.getStore("pinned-folders",n.pinnedFolders),treeViewData:[],selectButton:n.selectButton,maxFileSize:n.maxFileSize,theme:c,metricUnits:r,filesize:r?lo:so,compactListView:o.getStore("compact-list-view",!0),persist:d,showThumbnails:o.getStore("show-thumbnails",n.showThumbnails),loadingIndicator:n.loadingIndicator,fs:Us(u,f)})},js={class:"vuefinder__modal-layout__container"},Ps={class:"vuefinder__modal-layout__content"},Gs={class:"vuefinder__modal-layout__footer"},Ce={__name:"ModalLayout",setup(n){const t=e.ref(null),o=e.inject("ServiceContainer");return e.onMounted(()=>{const s=document.querySelector(".v-f-modal input");s&&s.focus(),e.nextTick(()=>{if(document.querySelector(".v-f-modal input")&&window.innerWidth<768){const r=t.value.getBoundingClientRect().bottom+16;window.scrollTo({top:r,left:0,behavior:"smooth"})}})}),(s,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder__modal-layout","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",onKeyup:r[1]||(r[1]=e.withKeys(c=>e.unref(o).modal.close(),["esc"])),tabindex:"0"},[r[2]||(r[2]=e.createElementVNode("div",{class:"vuefinder__modal-layout__overlay"},null,-1)),e.createElementVNode("div",js,[e.createElementVNode("div",{class:"vuefinder__modal-layout__wrapper",onMousedown:r[0]||(r[0]=e.withModifiers(c=>e.unref(o).modal.close(),["self"]))},[e.createElementVNode("div",{ref_key:"modalBody",ref:t,class:"vuefinder__modal-layout__body"},[e.createElementVNode("div",Ps,[e.renderSlot(s.$slots,"default")]),e.createElementVNode("div",Gs,[e.renderSlot(s.$slots,"buttons")])],512)],32)])],32))}},Ks=(n,t)=>{const o=n.__vccOpts||n;for(const[s,r]of t)o[s]=r;return o},Ws={props:{on:{type:String,required:!0}},setup(n,{emit:t,slots:o}){const s=e.inject("ServiceContainer"),r=e.ref(!1),{t:c}=s.i18n;let a=null;const i=()=>{clearTimeout(a),r.value=!0,a=setTimeout(()=>{r.value=!1},2e3)};return e.onMounted(()=>{s.emitter.on(n.on,i)}),e.onUnmounted(()=>{clearTimeout(a)}),{shown:r,t:c}}},Ys={key:1};function Xs(n,t,o,s,r,c){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vuefinder__action-message",{"vuefinder__action-message--hidden":!s.shown}])},[n.$slots.default?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock("span",Ys,e.toDisplayString(s.t("Saved.")),1))],2)}const Ge=Ks(Ws,[["render",Xs]]),Js={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",viewBox:"0 0 24 24"};function Zs(n,t){return e.openBlock(),e.createElementBlock("svg",Js,t[0]||(t[0]=[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.87q.11.06.22.127c.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.992a8 8 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.124a7 7 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-.87a7 7 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-.991a7 7 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-.124q.108-.066.22-.128c.332-.183.582-.495.644-.869z"},null,-1),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0"},null,-1)]))}const Qs={render:Zs},el={class:"vuefinder__modal-header"},tl={class:"vuefinder__modal-header__icon-container"},nl={class:"vuefinder__modal-header__title",id:"modal-title"},Le={__name:"ModalHeader",props:{title:{type:String,required:!0},icon:{type:Object,required:!0}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",el,[e.createElementVNode("div",tl,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"vuefinder__modal-header__icon"}))]),e.createElementVNode("h3",nl,e.toDisplayString(n.title),1)]))}},ol={class:"vuefinder__about-modal__content"},rl={class:"vuefinder__about-modal__main"},sl={class:"vuefinder__about-modal__tabs","aria-label":"Tabs"},ll=["onClick","aria-current"],al={key:0,class:"vuefinder__about-modal__tab-content"},cl={class:"vuefinder__about-modal__description"},il={href:"https://vuefinder.ozdemir.be",class:"vuefinder__about-modal__link",target:"_blank"},dl={href:"https://github.com/n1crack/vuefinder",class:"vuefinder__about-modal__link",target:"_blank"},ul={key:1,class:"vuefinder__about-modal__tab-content"},ml={class:"vuefinder__about-modal__description"},fl={class:"vuefinder__about-modal__settings"},vl={class:"vuefinder__about-modal__setting flex"},pl={class:"vuefinder__about-modal__setting-input"},_l={class:"vuefinder__about-modal__setting-label"},hl={for:"metric_unit",class:"vuefinder__about-modal__label"},gl={class:"vuefinder__about-modal__setting flex"},kl={class:"vuefinder__about-modal__setting-input"},wl={class:"vuefinder__about-modal__setting-label"},bl={for:"large_icons",class:"vuefinder__about-modal__label"},yl={class:"vuefinder__about-modal__setting flex"},El={class:"vuefinder__about-modal__setting-input"},Vl={class:"vuefinder__about-modal__setting-label"},Sl={for:"persist_path",class:"vuefinder__about-modal__label"},Nl={class:"vuefinder__about-modal__setting flex"},xl={class:"vuefinder__about-modal__setting-input"},Bl={class:"vuefinder__about-modal__setting-label"},Cl={for:"show_thumbnails",class:"vuefinder__about-modal__label"},$l={class:"vuefinder__about-modal__setting"},Dl={class:"vuefinder__about-modal__setting-input"},Tl={for:"theme",class:"vuefinder__about-modal__label"},Ml={class:"vuefinder__about-modal__setting-label"},Al=["label"],Ll=["value"],Ol={key:0,class:"vuefinder__about-modal__setting"},Fl={class:"vuefinder__about-modal__setting-input"},Hl={for:"language",class:"vuefinder__about-modal__label"},Rl={class:"vuefinder__about-modal__setting-label"},Il=["label"],zl=["value"],Ul={key:2,class:"vuefinder__about-modal__tab-content"},ql={class:"vuefinder__about-modal__shortcuts"},jl={class:"vuefinder__about-modal__shortcut"},Pl={class:"vuefinder__about-modal__shortcut"},Gl={class:"vuefinder__about-modal__shortcut"},Kl={class:"vuefinder__about-modal__shortcut"},Wl={class:"vuefinder__about-modal__shortcut"},Yl={class:"vuefinder__about-modal__shortcut"},Xl={class:"vuefinder__about-modal__shortcut"},Jl={class:"vuefinder__about-modal__shortcut"},Zl={class:"vuefinder__about-modal__shortcut"},Ql={key:3,class:"vuefinder__about-modal__tab-content"},ea={class:"vuefinder__about-modal__description"},Xo={__name:"ModalAbout",setup(n){const t=e.inject("ServiceContainer"),{setStore:o,clearStore:s}=t.storage,{t:r}=t.i18n,c={ABOUT:"about",SETTINGS:"settings",SHORTCUTS:"shortcuts",RESET:"reset"},a=e.computed(()=>[{name:r("About"),key:c.ABOUT},{name:r("Settings"),key:c.SETTINGS},{name:r("Shortcuts"),key:c.SHORTCUTS},{name:r("Reset"),key:c.RESET}]),i=e.ref("about"),l=async()=>{s(),location.reload()},d=T=>{t.theme.set(T),t.emitter.emit("vf-theme-saved")},f=()=>{t.metricUnits=!t.metricUnits,t.filesize=t.metricUnits?lo:so,o("metricUnits",t.metricUnits),t.emitter.emit("vf-metric-units-saved")},u=()=>{t.compactListView=!t.compactListView,o("compactListView",t.compactListView),t.emitter.emit("vf-compact-view-saved")},v=()=>{t.showThumbnails=!t.showThumbnails,o("show-thumbnails",t.showThumbnails),t.emitter.emit("vf-show-thumbnails-saved")},m=()=>{t.persist=!t.persist,o("persist-path",t.persist),t.emitter.emit("vf-persist-path-saved")},{i18n:p}=e.inject("VueFinderOptions"),w=Object.fromEntries(Object.entries({ar:"Arabic (العربيّة)",en:"English",fr:"French (Français)",de:"German (Deutsch)",fa:"Persian (فارسی)",he:"Hebrew (עִברִית)",hi:"Hindi (हिंदी)",ru:"Russian (Pусский)",sv:"Swedish (Svenska)",tr:"Turkish (Türkçe)",zhCN:"Simplified Chinese (简体中文)",zhTW:"Traditional Chinese (繁體中文)"}).filter(([T])=>Object.keys(p).includes(T))),E=e.computed(()=>({system:r("System"),light:r("Light"),dark:r("Dark")}));return(T,S)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:S[7]||(S[7]=b=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(r)("Close")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",ol,[e.createVNode(Le,{icon:e.unref(Qs),title:"Vuefinder "+e.unref(t).version},null,8,["icon","title"]),e.createElementVNode("div",rl,[e.createElementVNode("div",null,[e.createElementVNode("div",null,[e.createElementVNode("nav",sl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,b=>(e.openBlock(),e.createElementBlock("button",{key:b.name,onClick:x=>i.value=b.key,class:e.normalizeClass([b.key===i.value?"vuefinder__about-modal__tab--active":"vuefinder__about-modal__tab--inactive","vuefinder__about-modal__tab"]),"aria-current":b.current?"page":void 0},e.toDisplayString(b.name),11,ll))),128))])])]),i.value===c.ABOUT?(e.openBlock(),e.createElementBlock("div",al,[e.createElementVNode("div",cl,e.toDisplayString(e.unref(r)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")),1),e.createElementVNode("a",il,e.toDisplayString(e.unref(r)("Project home")),1),e.createElementVNode("a",dl,e.toDisplayString(e.unref(r)("Follow on GitHub")),1)])):e.createCommentVNode("",!0),i.value===c.SETTINGS?(e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",ml,e.toDisplayString(e.unref(r)("Customize your experience with the following settings")),1),e.createElementVNode("div",fl,[e.createElementVNode("fieldset",null,[e.createElementVNode("div",vl,[e.createElementVNode("div",pl,[e.withDirectives(e.createElementVNode("input",{id:"metric_unit",name:"metric_unit",type:"checkbox","onUpdate:modelValue":S[0]||(S[0]=b=>e.unref(t).metricUnits=b),onClick:f,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).metricUnits]])]),e.createElementVNode("div",_l,[e.createElementVNode("label",hl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Use Metric Units"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-metric-units-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",gl,[e.createElementVNode("div",kl,[e.withDirectives(e.createElementVNode("input",{id:"large_icons",name:"large_icons",type:"checkbox","onUpdate:modelValue":S[1]||(S[1]=b=>e.unref(t).compactListView=b),onClick:u,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).compactListView]])]),e.createElementVNode("div",wl,[e.createElementVNode("label",bl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Compact list view"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-compact-view-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",yl,[e.createElementVNode("div",El,[e.withDirectives(e.createElementVNode("input",{id:"persist_path",name:"persist_path",type:"checkbox","onUpdate:modelValue":S[2]||(S[2]=b=>e.unref(t).persist=b),onClick:m,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).persist]])]),e.createElementVNode("div",Vl,[e.createElementVNode("label",Sl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Persist path on reload"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-persist-path-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",Nl,[e.createElementVNode("div",xl,[e.withDirectives(e.createElementVNode("input",{id:"show_thumbnails",name:"show_thumbnails",type:"checkbox","onUpdate:modelValue":S[3]||(S[3]=b=>e.unref(t).showThumbnails=b),onClick:v,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).showThumbnails]])]),e.createElementVNode("div",Bl,[e.createElementVNode("label",Cl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Show thumbnails"))+" ",1),e.createVNode(Ge,{class:"ms-3",on:"vf-show-thumbnails-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",$l,[e.createElementVNode("div",Dl,[e.createElementVNode("label",Tl,e.toDisplayString(e.unref(r)("Theme")),1)]),e.createElementVNode("div",Ml,[e.withDirectives(e.createElementVNode("select",{id:"theme","onUpdate:modelValue":S[4]||(S[4]=b=>e.unref(t).theme.value=b),onChange:S[5]||(S[5]=b=>d(b.target.value)),class:"vuefinder__about-modal__select"},[e.createElementVNode("optgroup",{label:e.unref(r)("Theme")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(b,x)=>(e.openBlock(),e.createElementBlock("option",{value:x},e.toDisplayString(b),9,Ll))),256))],8,Al)],544),[[e.vModelSelect,e.unref(t).theme.value]]),e.createVNode(Ge,{class:"ms-3",on:"vf-theme-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])]),e.unref(t).features.includes(e.unref(Z).LANGUAGE)&&Object.keys(e.unref(w)).length>1?(e.openBlock(),e.createElementBlock("div",Ol,[e.createElementVNode("div",Fl,[e.createElementVNode("label",Hl,e.toDisplayString(e.unref(r)("Language")),1)]),e.createElementVNode("div",Rl,[e.withDirectives(e.createElementVNode("select",{id:"language","onUpdate:modelValue":S[6]||(S[6]=b=>e.unref(t).i18n.locale=b),class:"vuefinder__about-modal__select"},[e.createElementVNode("optgroup",{label:e.unref(r)("Language")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),(b,x)=>(e.openBlock(),e.createElementBlock("option",{value:x},e.toDisplayString(b),9,zl))),256))],8,Il)],512),[[e.vModelSelect,e.unref(t).i18n.locale]]),e.createVNode(Ge,{class:"ms-3",on:"vf-language-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0),i.value===c.SHORTCUTS?(e.openBlock(),e.createElementBlock("div",Ul,[e.createElementVNode("div",ql,[e.createElementVNode("div",jl,[e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("Rename")),1),S[8]||(S[8]=e.createElementVNode("kbd",null,"F2",-1))]),e.createElementVNode("div",Pl,[e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("Refresh")),1),S[9]||(S[9]=e.createElementVNode("kbd",null,"F5",-1))]),e.createElementVNode("div",Gl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Delete"))+" ",1),S[10]||(S[10]=e.createElementVNode("kbd",null,"Del",-1))]),e.createElementVNode("div",Kl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Escape"))+" ",1),S[11]||(S[11]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Esc")],-1))]),e.createElementVNode("div",Wl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Select All"))+" ",1),S[12]||(S[12]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"A")],-1))]),e.createElementVNode("div",Yl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Search"))+" ",1),S[13]||(S[13]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"F")],-1))]),e.createElementVNode("div",Xl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Toggle Sidebar"))+" ",1),S[14]||(S[14]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"E")],-1))]),e.createElementVNode("div",Jl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Open Settings"))+" ",1),S[15]||(S[15]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,",")],-1))]),e.createElementVNode("div",Zl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Toggle Full Screen"))+" ",1),S[16]||(S[16]=e.createElementVNode("div",null,[e.createElementVNode("kbd",null,"Ctrl"),e.createTextVNode(" + "),e.createElementVNode("kbd",null,"Enter")],-1))])])])):e.createCommentVNode("",!0),i.value===c.RESET?(e.openBlock(),e.createElementBlock("div",Ql,[e.createElementVNode("div",ea,e.toDisplayString(e.unref(r)("Reset all settings to default")),1),e.createElementVNode("button",{onClick:l,type:"button",class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(r)("Reset Settings")),1)])):e.createCommentVNode("",!0)])])]),_:1}))}},ta=["title"],$e={__name:"Message",props:{error:{type:Boolean,default:!1}},emits:["hidden"],setup(n,{emit:t}){var d;const o=t,s=e.inject("ServiceContainer"),{t:r}=s.i18n,c=e.ref(!1),a=e.ref(null),i=e.ref((d=a.value)==null?void 0:d.strMessage);e.watch(i,()=>c.value=!1);const l=()=>{o("hidden"),c.value=!0};return(f,u)=>(e.openBlock(),e.createElementBlock("div",null,[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"strMessage",ref:a,class:e.normalizeClass(["vuefinder__message",n.error?"vuefinder__message--error":"vuefinder__message--success"])},[e.renderSlot(f.$slots,"default"),e.createElementVNode("div",{class:"vuefinder__message__close",onClick:l,title:e.unref(r)("Close")},u[0]||(u[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"vuefinder__message__icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,ta)],2))]))}},na={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function oa(n,t){return e.openBlock(),e.createElementBlock("svg",na,t[0]||(t[0]=[e.createElementVNode("path",{d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.089 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0"},null,-1)]))}const Jo={render:oa},ra={class:"vuefinder__delete-modal__content"},sa={class:"vuefinder__delete-modal__form"},la={class:"vuefinder__delete-modal__description"},aa={class:"vuefinder__delete-modal__files vf-scrollbar"},ca={class:"vuefinder__delete-modal__file"},ia={key:0,class:"vuefinder__delete-modal__icon vuefinder__delete-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},da={key:1,class:"vuefinder__delete-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ua={class:"vuefinder__delete-modal__file-name"},ma={class:"vuefinder__delete-modal__warning"},Dn={__name:"ModalDelete",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items),r=e.ref(""),c=()=>{s.value.length&&t.emitter.emit("vf-fetch",{params:{q:"delete",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{items:s.value.map(({path:a,type:i})=>({path:a,type:i}))},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("Files deleted.")})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-danger"},e.toDisplayString(e.unref(o)("Yes, Delete!")),1),e.createElementVNode("button",{type:"button",onClick:i[1]||(i[1]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1),e.createElementVNode("div",ma,e.toDisplayString(e.unref(o)("This action cannot be undone.")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Jo),title:e.unref(o)("Delete files")},null,8,["icon","title"]),e.createElementVNode("div",ra,[e.createElementVNode("div",sa,[e.createElementVNode("p",la,e.toDisplayString(e.unref(o)("Are you sure you want to delete these files?")),1),e.createElementVNode("div",aa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>(e.openBlock(),e.createElementBlock("p",ca,[l.type==="dir"?(e.openBlock(),e.createElementBlock("svg",ia,i[2]||(i[2]=[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)]))):(e.openBlock(),e.createElementBlock("svg",da,i[3]||(i[3]=[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)]))),e.createElementVNode("span",ua,e.toDisplayString(l.basename),1)]))),256))]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[0]||(i[0]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},fa={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function va(n,t){return e.openBlock(),e.createElementBlock("svg",fa,t[0]||(t[0]=[e.createElementVNode("path",{d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"},null,-1)]))}const Zo={render:va},pa={class:"vuefinder__rename-modal__content"},_a={class:"vuefinder__rename-modal__item"},ha={class:"vuefinder__rename-modal__item-info"},ga={key:0,class:"vuefinder__rename-modal__icon vuefinder__rename-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ka={key:1,class:"vuefinder__rename-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},wa={class:"vuefinder__rename-modal__item-name"},Tn={__name:"ModalRename",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items[0]),r=e.ref(t.modal.data.items[0].basename),c=e.ref(""),a=()=>{r.value!=""&&t.emitter.emit("vf-fetch",{params:{q:"rename",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{item:s.value.path,name:r.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("%s is renamed.",r.value)})},onError:i=>{c.value=o(i.message)}})};return(i,l)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:a,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Rename")),1),e.createElementVNode("button",{type:"button",onClick:l[2]||(l[2]=d=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Zo),title:e.unref(o)("Rename")},null,8,["icon","title"]),e.createElementVNode("div",pa,[e.createElementVNode("div",_a,[e.createElementVNode("p",ha,[s.value.type==="dir"?(e.openBlock(),e.createElementBlock("svg",ga,l[3]||(l[3]=[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)]))):(e.openBlock(),e.createElementBlock("svg",ka,l[4]||(l[4]=[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)]))),e.createElementVNode("span",wa,e.toDisplayString(s.value.basename),1)]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),onKeyup:e.withKeys(a,["enter"]),class:"vuefinder__rename-modal__input",placeholder:"Name",type:"text"},null,544),[[e.vModelText,r.value]]),c.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:l[1]||(l[1]=d=>c.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},De={ESCAPE:"Escape",F2:"F2",F5:"F5",DELETE:"Delete",ENTER:"Enter",BACKSLASH:"Backslash",KEY_A:"KeyA",KEY_E:"KeyE",KEY_F:"KeyF"};function ba(n){const t=o=>{o.code===De.ESCAPE&&(n.modal.close(),n.root.focus()),!n.modal.visible&&(n.fs.searchMode||(o.code===De.F2&&n.features.includes(Z.RENAME)&&(n.dragSelect.getCount()!==1||n.modal.open(Tn,{items:n.dragSelect.getSelected()})),o.code===De.F5&&n.emitter.emit("vf-fetch",{params:{q:"index",adapter:n.fs.adapter,path:n.fs.data.dirname}}),o.code===De.DELETE&&(!n.dragSelect.getCount()||n.modal.open(Dn,{items:n.dragSelect.getSelected()})),o.metaKey&&o.code===De.BACKSLASH&&n.modal.open(Xo),o.metaKey&&o.code===De.KEY_F&&n.features.includes(Z.SEARCH)&&(n.fs.searchMode=!0,o.preventDefault()),o.metaKey&&o.code===De.KEY_E&&(n.showTreeView=!n.showTreeView,n.storage.setStore("show-tree-view",n.showTreeView)),o.metaKey&&o.code===De.ENTER&&(n.fullScreen=!n.fullScreen,n.root.focus()),o.metaKey&&o.code===De.KEY_A&&(n.dragSelect.selectAll(),o.preventDefault())))};e.onMounted(()=>{n.root.addEventListener("keydown",t)})}const ya={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Ea(n,t){return e.openBlock(),e.createElementBlock("svg",ya,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44z"},null,-1)]))}const Qo={render:Ea},Va={class:"vuefinder__new-folder-modal__content"},Sa={class:"vuefinder__new-folder-modal__form"},Na={class:"vuefinder__new-folder-modal__description"},xa=["placeholder"],er={__name:"ModalNewFolder",setup(n){const t=e.inject("ServiceContainer");t.storage;const{t:o}=t.i18n,s=e.ref(""),r=e.ref(""),c=()=>{s.value!==""&&t.emitter.emit("vf-fetch",{params:{q:"newfolder",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{name:s.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("%s is created.",s.value)})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:i[2]||(i[2]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Qo),title:e.unref(o)("New Folder")},null,8,["icon","title"]),e.createElementVNode("div",Va,[e.createElementVNode("div",Sa,[e.createElementVNode("p",Na,e.toDisplayString(e.unref(o)("Create a new folder")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),onKeyup:e.withKeys(c,["enter"]),class:"vuefinder__new-folder-modal__input",placeholder:e.unref(o)("Folder Name"),type:"text"},null,40,xa),[[e.vModelText,s.value]]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[1]||(i[1]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},Ba={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Ca(n,t){return e.openBlock(),e.createElementBlock("svg",Ba,t[0]||(t[0]=[e.createElementVNode("path",{d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-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 0 0-9-9"},null,-1)]))}const tr={render:Ca},$a={class:"vuefinder__new-file-modal__content"},Da={class:"vuefinder__new-file-modal__form"},Ta={class:"vuefinder__new-file-modal__description"},Ma=["placeholder"],Aa={__name:"ModalNewFile",setup(n){const t=e.inject("ServiceContainer");t.storage;const{t:o}=t.i18n,s=e.ref(""),r=e.ref(""),c=()=>{s.value!==""&&t.emitter.emit("vf-fetch",{params:{q:"newfile",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{name:s.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("%s is created.",s.value)})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Create")),1),e.createElementVNode("button",{type:"button",onClick:i[2]||(i[2]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(tr),title:e.unref(o)("New File")},null,8,["icon","title"]),e.createElementVNode("div",$a,[e.createElementVNode("div",Da,[e.createElementVNode("p",Ta,e.toDisplayString(e.unref(o)("Create a new file")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),onKeyup:e.withKeys(c,["enter"]),class:"vuefinder__new-file-modal__input",placeholder:e.unref(o)("File Name"),type:"text"},null,40,Ma),[[e.vModelText,s.value]]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[1]||(i[1]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}};function pn(n,t=14){let o=`((?=([\\w\\W]{0,${t}}))([\\w\\W]{${t+1},})([\\w\\W]{8,}))`;return n.replace(new RegExp(o),"$2..$4")}const La={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Oa(n,t){return e.openBlock(),e.createElementBlock("svg",La,t[0]||(t[0]=[e.createElementVNode("path",{d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"},null,-1)]))}const nr={render:Oa},Fa={class:"vuefinder__upload-modal__content"},Ha={key:0,class:"pointer-events-none"},Ra={key:1,class:"pointer-events-none"},Ia=["disabled"],za=["disabled"],Ua={class:"vuefinder__upload-modal__file-list vf-scrollbar"},qa=["textContent"],ja={class:"vuefinder__upload-modal__file-info"},Pa={class:"vuefinder__upload-modal__file-name hidden md:block"},Ga={class:"vuefinder__upload-modal__file-name md:hidden"},Ka={key:0,class:"ml-auto"},Wa=["title","disabled","onClick"],Ya={key:0,class:"py-2"},Xa=["disabled"],Ja={__name:"ModalUpload",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=o("uppy"),r={PENDING:0,CANCELED:1,UPLOADING:2,ERROR:3,DONE:10},c=e.ref({QUEUE_ENTRY_STATUS:r}),a=e.ref(null),i=e.ref(null),l=e.ref(null),d=e.ref(null),f=e.ref(null),u=e.ref(null),v=e.ref([]),m=e.ref(""),p=e.ref(!1),k=e.ref(!1);let w;function E(V){return v.value.findIndex(M=>M.id===V)}function T(V,M=null){M=M??(V.webkitRelativePath||V.name),w.addFile({name:M,type:V.type,data:V,source:"Local"})}function S(V){switch(V.status){case r.DONE:return"text-green-600";case r.ERROR:return"text-red-600";case r.CANCELED:return"text-red-600";case r.PENDING:default:return""}}const b=V=>{switch(V.status){case r.DONE:return"✓";case r.ERROR:case r.CANCELED:return"!";case r.PENDING:default:return"..."}};function x(){d.value.click()}function C(){if(!p.value){if(!v.value.filter(V=>V.status!==r.DONE).length){m.value=o("Please select file to upload first.");return}m.value="",w.retryAll(),w.upload()}}function F(){w.cancelAll({reason:"user"}),v.value.forEach(V=>{V.status!==r.DONE&&(V.status=r.CANCELED,V.statusName=o("Canceled"))}),p.value=!1}function B(V){p.value||(w.removeFile(V.id,"removed-by-user"),v.value.splice(E(V.id),1))}function h(V){if(!p.value){if(w.cancelAll({reason:"user"}),V){const M=[];v.value.forEach(g=>{g.status!==r.DONE&&M.push(g)}),v.value=[],M.forEach(g=>{T(g.originalFile,g.name)});return}v.value.splice(0)}}function _(){t.modal.close()}function y(){return t.requester.transformRequestParams({url:"",method:"post",params:{q:"upload",adapter:t.fs.adapter,path:t.fs.data.dirname}})}return e.onMounted(async()=>{w=new Sr({debug:t.debug,restrictions:{maxFileSize:Or(t.maxFileSize)},locale:s,onBeforeFileAdded(g,L){if(L[g.id]!=null){const j=E(g.id);v.value[j].status===r.PENDING&&(m.value=w.i18n("noDuplicates",{fileName:g.name})),v.value=v.value.filter(K=>K.id!==g.id)}return v.value.push({id:g.id,name:g.name,size:t.filesize(g.size),status:r.PENDING,statusName:o("Pending upload"),percent:null,originalFile:g.data}),!0}}),w.use(Nr,{endpoint:"WILL_BE_REPLACED_BEFORE_UPLOAD",limit:5,timeout:0,getResponseError(g,L){let O;try{O=JSON.parse(g).message}catch{O=o("Cannot parse server response.")}return new Error(O)}}),w.on("restriction-failed",(g,L)=>{const O=v.value[E(g.id)];B(O),m.value=L.message}),w.on("upload",()=>{const g=y();w.setMeta({...g.body});const L=w.getPlugin("XHRUpload");L.opts.method=g.method,L.opts.endpoint=g.url+"?"+new URLSearchParams(g.params),L.opts.headers=g.headers,delete g.headers["Content-Type"],p.value=!0,v.value.forEach(O=>{O.status!==r.DONE&&(O.percent=null,O.status=r.UPLOADING,O.statusName=o("Pending upload"))})}),w.on("upload-progress",(g,L)=>{const O=Math.floor(L.bytesUploaded/L.bytesTotal*100);v.value[E(g.id)].percent=`${O}%`}),w.on("upload-success",g=>{const L=v.value[E(g.id)];L.status=r.DONE,L.statusName=o("Done")}),w.on("upload-error",(g,L)=>{const O=v.value[E(g.id)];O.percent=null,O.status=r.ERROR,L.isNetworkError?O.statusName=o("Network Error, Unable establish connection to the server or interrupted."):O.statusName=L?L.message:o("Unknown Error")}),w.on("error",g=>{m.value=g.message,p.value=!1,t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname},noCloseModal:!0})}),w.on("complete",()=>{p.value=!1,t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname},noCloseModal:!0})}),d.value.addEventListener("click",()=>{i.value.click()}),f.value.addEventListener("click",()=>{l.value.click()}),u.value.addEventListener("dragover",g=>{g.preventDefault(),k.value=!0}),u.value.addEventListener("dragleave",g=>{g.preventDefault(),k.value=!1});function V(g,L){L.isFile&&L.file(O=>g(L,O)),L.isDirectory&&L.createReader().readEntries(O=>{O.forEach(j=>{V(g,j)})})}u.value.addEventListener("drop",g=>{g.preventDefault(),k.value=!1;const L=/^[/\\](.+)/;[...g.dataTransfer.items].forEach(O=>{O.kind==="file"&&V((j,K)=>{const G=L.exec(j.fullPath);T(K,G[1])},O.webkitGetAsEntry())})});const M=({target:g})=>{const L=g.files;for(const O of L)T(O);g.value=""};i.value.addEventListener("change",M),l.value.addEventListener("change",M)}),e.onBeforeUnmount(()=>{w==null||w.close({reason:"unmount"})}),(V,M)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"vf-btn vf-btn-primary",disabled:p.value,onClick:e.withModifiers(C,["prevent"])},e.toDisplayString(e.unref(o)("Upload")),9,Xa),p.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"vf-btn vf-btn-secondary",onClick:e.withModifiers(F,["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(_,["prevent"])},e.toDisplayString(e.unref(o)("Close")),1))]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(nr),title:e.unref(o)("Upload Files")},null,8,["icon","title"]),e.createElementVNode("div",Fa,[e.createElementVNode("div",{class:"vuefinder__upload-modal__drop-area",ref_key:"dropArea",ref:u,onClick:x},[k.value?(e.openBlock(),e.createElementBlock("div",Ha,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:a,class:"vuefinder__upload-modal__buttons"},[e.createElementVNode("button",{ref_key:"pickFiles",ref:d,type:"button",class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Select Files")),513),e.createElementVNode("button",{ref_key:"pickFolders",ref:f,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:p.value,onClick:M[0]||(M[0]=g=>h(!1))},e.toDisplayString(e.unref(o)("Clear all")),9,Ia),e.createElementVNode("button",{type:"button",class:"vf-btn vf-btn-secondary",disabled:p.value,onClick:M[1]||(M[1]=g=>h(!0))},e.toDisplayString(e.unref(o)("Clear only successful")),9,za)],512),e.createElementVNode("div",Ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,g=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder__upload-modal__file-entry",key:g.id},[e.createElementVNode("span",{class:e.normalizeClass(["vuefinder__upload-modal__file-icon",S(g)])},[e.createElementVNode("span",{class:"vuefinder__upload-modal__file-icon-text",textContent:e.toDisplayString(b(g))},null,8,qa)],2),e.createElementVNode("div",ja,[e.createElementVNode("div",Pa,e.toDisplayString(e.unref(pn)(g.name,40))+" ("+e.toDisplayString(g.size)+")",1),e.createElementVNode("div",Ga,e.toDisplayString(e.unref(pn)(g.name,16))+" ("+e.toDisplayString(g.size)+")",1),e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__upload-modal__file-status",S(g)])},[e.createTextVNode(e.toDisplayString(g.statusName)+" ",1),g.status===c.value.QUEUE_ENTRY_STATUS.UPLOADING?(e.openBlock(),e.createElementBlock("b",Ka,e.toDisplayString(g.percent),1)):e.createCommentVNode("",!0)],2)]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["vuefinder__upload-modal__file-remove",p.value?"disabled":""]),title:e.unref(o)("Delete"),disabled:p.value,onClick:L=>B(g)},M[3]||(M[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"vuefinder__upload-modal__file-remove-icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)]),10,Wa)]))),128)),v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ya,e.toDisplayString(e.unref(o)("No files selected!")),1))]),m.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:M[2]||(M[2]=g=>m.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value),1)]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("input",{ref_key:"internalFileInput",ref:i,type:"file",multiple:"",class:"hidden"},null,512),e.createElementVNode("input",{ref_key:"internalFolderInput",ref:l,type:"file",multiple:"",webkitdirectory:"",class:"hidden"},null,512)]),_:1}))}},Za={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function Qa(n,t){return e.openBlock(),e.createElementBlock("svg",Za,t[0]||(t[0]=[e.createElementVNode("path",{d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.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.125"},null,-1)]))}const or={render:Qa},ec={class:"vuefinder__unarchive-modal__content"},tc={class:"vuefinder__unarchive-modal__items"},nc={class:"vuefinder__unarchive-modal__item"},oc={key:0,class:"vuefinder__unarchive-modal__icon vuefinder__unarchive-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},rc={key:1,class:"vuefinder__unarchive-modal__icon vuefinder__unarchive-modal__icon--file",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},sc={class:"vuefinder__unarchive-modal__item-name"},lc={class:"vuefinder__unarchive-modal__info"},rr={__name:"ModalUnarchive",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items[0]),r=e.ref(""),c=e.ref([]),a=()=>{t.emitter.emit("vf-fetch",{params:{q:"unarchive",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{item:s.value.path},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("The file unarchived.")})},onError:i=>{r.value=o(i.message)}})};return(i,l)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:a,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Unarchive")),1),e.createElementVNode("button",{type:"button",onClick:l[1]||(l[1]=d=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(or),title:e.unref(o)("Unarchive")},null,8,["icon","title"]),e.createElementVNode("div",ec,[e.createElementVNode("div",tc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,d=>(e.openBlock(),e.createElementBlock("p",nc,[d.type==="dir"?(e.openBlock(),e.createElementBlock("svg",oc,l[2]||(l[2]=[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)]))):(e.openBlock(),e.createElementBlock("svg",rc,l[3]||(l[3]=[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)]))),e.createElementVNode("span",sc,e.toDisplayString(d.basename),1)]))),256)),e.createElementVNode("p",lc,e.toDisplayString(e.unref(o)("The archive will be unarchived at"))+" ("+e.toDisplayString(e.unref(t).fs.data.dirname)+")",1),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:l[0]||(l[0]=d=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},ac={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function cc(n,t){return e.openBlock(),e.createElementBlock("svg",ac,t[0]||(t[0]=[e.createElementVNode("path",{d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-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.125"},null,-1)]))}const sr={render:cc},ic={class:"vuefinder__archive-modal__content"},dc={class:"vuefinder__archive-modal__form"},uc={class:"vuefinder__archive-modal__files vf-scrollbar"},mc={class:"vuefinder__archive-modal__file"},fc={key:0,class:"vuefinder__archive-modal__icon vuefinder__archive-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},vc={key:1,class:"vuefinder__archive-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},pc={class:"vuefinder__archive-modal__file-name"},_c=["placeholder"],lr={__name:"ModalArchive",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(""),r=e.ref(""),c=e.ref(t.modal.data.items),a=()=>{c.value.length&&t.emitter.emit("vf-fetch",{params:{q:"archive",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{items:c.value.map(({path:i,type:l})=>({path:i,type:l})),name:s.value},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("The file(s) archived.")})},onError:i=>{r.value=o(i.message)}})};return(i,l)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:a,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Archive")),1),e.createElementVNode("button",{type:"button",onClick:l[2]||(l[2]=d=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(sr),title:e.unref(o)("Archive the files")},null,8,["icon","title"]),e.createElementVNode("div",ic,[e.createElementVNode("div",dc,[e.createElementVNode("div",uc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,d=>(e.openBlock(),e.createElementBlock("p",mc,[d.type==="dir"?(e.openBlock(),e.createElementBlock("svg",fc,l[3]||(l[3]=[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)]))):(e.openBlock(),e.createElementBlock("svg",vc,l[4]||(l[4]=[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)]))),e.createElementVNode("span",pc,e.toDisplayString(d.basename),1)]))),256))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=d=>s.value=d),onKeyup:e.withKeys(a,["enter"]),class:"vuefinder__archive-modal__input",placeholder:e.unref(o)("Archive name. (.zip file will be created)"),type:"text"},null,40,_c),[[e.vModelText,s.value]]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:l[1]||(l[1]=d=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])])]),_:1}))}},hc={xmlns:"http://www.w3.org/2000/svg",fill:"none",class:"animate-spin p-0.5 h-5 w-5 text-white ml-auto",viewBox:"0 0 24 24"};function gc(n,t){return e.openBlock(),e.createElementBlock("svg",hc,t[0]||(t[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4",class:"opacity-25 stroke-blue-900 dark:stroke-blue-100"},null,-1),e.createElementVNode("path",{fill:"currentColor",d:"M4 12a8 8 0 0 1 8-8V0C5.373 0 0 5.373 0 12zm2 5.291A7.96 7.96 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938z",class:"opacity-75"},null,-1)]))}const Mn={render:gc},kc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function wc(n,t){return e.openBlock(),e.createElementBlock("svg",kc,t[0]||(t[0]=[e.createElementVNode("path",{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"},null,-1)]))}const bc={render:wc},yc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto vf-toolbar-icon",viewBox:"0 0 24 24"};function Ec(n,t){return e.openBlock(),e.createElementBlock("svg",yc,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9 9V4.5M9 9H4.5M9 9 3.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.5 5.25 5.25"},null,-1)]))}const Vc={render:Ec},Sc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function Nc(n,t){return e.openBlock(),e.createElementBlock("svg",Sc,t[0]||(t[0]=[e.createElementVNode("path",{d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18zM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18z"},null,-1)]))}const xc={render:Nc},Bc={xmlns:"http://www.w3.org/2000/svg",fill:"none","stroke-width":"1.5",class:"h-6 w-6 md:h-8 md:w-8 m-auto",viewBox:"0 0 24 24"};function Cc(n,t){return e.openBlock(),e.createElementBlock("svg",Bc,t[0]||(t[0]=[e.createElementVNode("path",{d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75"},null,-1)]))}const $c={render:Cc},Dc={class:"vuefinder__toolbar"},Tc={key:0,class:"vuefinder__toolbar__actions"},Mc=["title"],Ac=["title"],Lc=["title"],Oc=["title"],Fc=["title"],Hc=["title"],Rc=["title"],Ic={key:1,class:"vuefinder__toolbar__search-results"},zc={class:"pl-2"},Uc={class:"dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded"},qc={class:"vuefinder__toolbar__controls"},jc=["title"],Pc=["title"],Gc={__name:"Toolbar",setup(n){const t=e.inject("ServiceContainer"),{setStore:o}=t.storage,{t:s}=t.i18n,r=t.dragSelect,c=e.ref("");t.emitter.on("vf-search-query",({newQuery:l})=>{c.value=l});const a=()=>{t.fullScreen=!t.fullScreen};e.watch(()=>t.fullScreen,()=>{t.fullScreen?document.querySelector("body").style.overflow="hidden":document.querySelector("body").style.overflow="",o("full-screen",t.fullScreen),t.emitter.emit("vf-fullscreen-toggle")});const i=()=>{t.view=t.view==="list"?"grid":"list",r.refreshSelection(),o("viewport",t.view)};return(l,d)=>(e.openBlock(),e.createElementBlock("div",Dc,[c.value.length?(e.openBlock(),e.createElementBlock("div",Ic,[e.createElementVNode("div",zc,[e.createTextVNode(e.toDisplayString(e.unref(s)("Search results for"))+" ",1),e.createElementVNode("span",Uc,e.toDisplayString(c.value),1)]),e.unref(t).loadingIndicator==="circular"&&e.unref(t).fs.loading?(e.openBlock(),e.createBlock(e.unref(Mn),{key:0})):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Tc,[e.unref(t).features.includes(e.unref(Z).NEW_FOLDER)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mx-1.5",title:e.unref(s)("New Folder"),onClick:d[0]||(d[0]=f=>e.unref(t).modal.open(er,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(Qo))],8,Mc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).NEW_FILE)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"mx-1.5",title:e.unref(s)("New File"),onClick:d[1]||(d[1]=f=>e.unref(t).modal.open(Aa,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(tr))],8,Ac)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).RENAME)?(e.openBlock(),e.createElementBlock("div",{key:2,class:"mx-1.5",title:e.unref(s)("Rename"),onClick:d[2]||(d[2]=f=>e.unref(r).getCount()!==1||e.unref(t).modal.open(Tn,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(Zo),{class:e.normalizeClass(e.unref(r).getCount()===1?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Lc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).DELETE)?(e.openBlock(),e.createElementBlock("div",{key:3,class:"mx-1.5",title:e.unref(s)("Delete"),onClick:d[3]||(d[3]=f=>!e.unref(r).getCount()||e.unref(t).modal.open(Dn,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(Jo),{class:e.normalizeClass(e.unref(r).getCount()?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Oc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).UPLOAD)?(e.openBlock(),e.createElementBlock("div",{key:4,class:"mx-1.5",title:e.unref(s)("Upload"),onClick:d[4]||(d[4]=f=>e.unref(t).modal.open(Ja,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(nr))],8,Fc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).UNARCHIVE)&&e.unref(r).getCount()===1&&e.unref(r).getSelected()[0].mime_type==="application/zip"?(e.openBlock(),e.createElementBlock("div",{key:5,class:"mx-1.5",title:e.unref(s)("Unarchive"),onClick:d[5]||(d[5]=f=>!e.unref(r).getCount()||e.unref(t).modal.open(rr,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(or),{class:e.normalizeClass(e.unref(r).getCount()?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Hc)):e.createCommentVNode("",!0),e.unref(t).features.includes(e.unref(Z).ARCHIVE)?(e.openBlock(),e.createElementBlock("div",{key:6,class:"mx-1.5",title:e.unref(s)("Archive"),onClick:d[6]||(d[6]=f=>!e.unref(r).getCount()||e.unref(t).modal.open(lr,{items:e.unref(r).getSelected()}))},[e.createVNode(e.unref(sr),{class:e.normalizeClass(e.unref(r).getCount()?"vf-toolbar-icon":"vf-toolbar-icon-disabled")},null,8,["class"])],8,Rc)):e.createCommentVNode("",!0)])),e.createElementVNode("div",qc,[e.unref(t).features.includes(e.unref(Z).FULL_SCREEN)?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:a,class:"mx-1.5",title:e.unref(s)("Toggle Full Screen")},[e.unref(t).fullScreen?(e.openBlock(),e.createBlock(e.unref(Vc),{key:0})):(e.openBlock(),e.createBlock(e.unref(bc),{key:1}))],8,jc)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mx-1.5",title:e.unref(s)("Change View"),onClick:d[7]||(d[7]=f=>c.value.length||i())},[e.unref(t).view==="grid"?(e.openBlock(),e.createBlock(e.unref(xc),{key:0,class:e.normalizeClass(["vf-toolbar-icon",c.value.length?"vf-toolbar-icon-disabled":""])},null,8,["class"])):e.createCommentVNode("",!0),e.unref(t).view==="list"?(e.openBlock(),e.createBlock(e.unref($c),{key:1,class:e.normalizeClass(["vf-toolbar-icon",c.value.length?"vf-toolbar-icon-disabled":""])},null,8,["class"])):e.createCommentVNode("",!0)],8,Pc)])]))}},Kc=(n,t=0,o=!1)=>{let s;return(...r)=>{o&&!s&&n(...r),clearTimeout(s),s=setTimeout(()=>{n(...r)},t)}},oo=(n,t,o)=>{const s=e.ref(n);return e.customRef((r,c)=>({get(){return r(),s.value},set:Kc(a=>{s.value=a,c()},t,o)}))},Wc={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",viewBox:"0 0 24 24"};function Yc(n,t){return e.openBlock(),e.createElementBlock("svg",Wc,t[0]||(t[0]=[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 3"},null,-1)]))}const Xc={render:Yc},Jc={class:"vuefinder__move-modal__content"},Zc={class:"vuefinder__move-modal__description"},Qc={class:"vuefinder__move-modal__files vf-scrollbar"},ei={class:"vuefinder__move-modal__file"},ti={key:0,class:"vuefinder__move-modal__icon vuefinder__move-modal__icon--dir",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},ni={key:1,class:"vuefinder__move-modal__icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1"},oi={class:"vuefinder__move-modal__file-name"},ri={class:"vuefinder__move-modal__target-title"},si={class:"vuefinder__move-modal__target-directory"},li={class:"vuefinder__move-modal__target-path"},ai={class:"vuefinder__move-modal__selected-items"},_n={__name:"ModalMove",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(t.modal.data.items.from),r=e.ref(""),c=()=>{s.value.length&&t.emitter.emit("vf-fetch",{params:{q:"move",m:"post",adapter:t.fs.adapter,path:t.fs.data.dirname},body:{items:s.value.map(({path:a,type:i})=>({path:a,type:i})),item:t.modal.data.items.to.path},onSuccess:()=>{t.emitter.emit("vf-toast-push",{label:o("Files moved.",t.modal.data.items.to.name)})},onError:a=>{r.value=o(a.message)}})};return(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:c,class:"vf-btn vf-btn-primary"},e.toDisplayString(e.unref(o)("Yes, Move!")),1),e.createElementVNode("button",{type:"button",onClick:i[1]||(i[1]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Cancel")),1),e.createElementVNode("div",ai,e.toDisplayString(e.unref(o)("%s item(s) selected.",s.value.length)),1)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(Le,{icon:e.unref(Xc),title:e.unref(o)("Move files")},null,8,["icon","title"]),e.createElementVNode("div",Jc,[e.createElementVNode("p",Zc,e.toDisplayString(e.unref(o)("Are you sure you want to move these files?")),1),e.createElementVNode("div",Qc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,l=>(e.openBlock(),e.createElementBlock("div",ei,[e.createElementVNode("div",null,[l.type==="dir"?(e.openBlock(),e.createElementBlock("svg",ti,i[2]||(i[2]=[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)]))):(e.openBlock(),e.createElementBlock("svg",ni,i[3]||(i[3]=[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)])))]),e.createElementVNode("div",oi,e.toDisplayString(l.path),1)]))),256))]),e.createElementVNode("h4",ri,e.toDisplayString(e.unref(o)("Target Directory")),1),e.createElementVNode("p",si,[i[4]||(i[4]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"vuefinder__move-modal__icon vuefinder__move-modal__icon--dir",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)),e.createElementVNode("span",li,e.toDisplayString(e.unref(t).modal.data.items.to.path),1)]),r.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:i[0]||(i[0]=l=>r.value=""),error:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)])])]),_:1}))}},ci={xmlns:"http://www.w3.org/2000/svg",fill:"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",viewBox:"-40 -40 580 580"};function ii(n,t){return e.openBlock(),e.createElementBlock("svg",ci,t[0]||(t[0]=[e.createElementVNode("path",{d:"M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-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.2S334.3 224 344 224z"},null,-1)]))}const di={render:ii},ui={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-6 w-6 p-0.5 rounded",viewBox:"0 0 20 20"};function mi(n,t){return e.openBlock(),e.createElementBlock("svg",ui,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 9.707a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L11 7.414V15a1 1 0 1 1-2 0V7.414L6.707 9.707a1 1 0 0 1-1.414 0",class:"pointer-events-none","clip-rule":"evenodd"},null,-1)]))}const fi={render:mi},vi={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",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",viewBox:"0 0 24 24"};function pi(n,t){return e.openBlock(),e.createElementBlock("svg",vi,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"},null,-1)]))}const _i={render:pi},hi={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",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",viewBox:"0 0 20 20"};function gi(n,t){return e.openBlock(),e.createElementBlock("svg",hi,t[0]||(t[0]=[e.createElementVNode("path",{d:"M10.707 2.293a1 1 0 0 0-1.414 0l-7 7a1 1 0 0 0 1.414 1.414L4 10.414V17a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6.586l.293.293a1 1 0 0 0 1.414-1.414z",class:"pointer-events-none"},null,-1)]))}const ki={render:gi},wi={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",viewBox:"0 0 20 20"};function bi(n,t){return e.openBlock(),e.createElementBlock("svg",wi,t[0]||(t[0]=[e.createElementVNode("path",{d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607"},null,-1)]))}const yi={render:bi},Ei={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"w-6 h-6 cursor-pointer",viewBox:"0 0 24 24"};function Vi(n,t){return e.openBlock(),e.createElementBlock("svg",Ei,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"},null,-1)]))}const Si={render:Vi},Ni={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",class:"text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",viewBox:"0 0 24 24"};function xi(n,t){return e.openBlock(),e.createElementBlock("svg",Ni,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2"},null,-1)]))}const zt={render:xi},Bi={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"h-6 w-6 p-1 rounded text-slate-700 dark:text-neutral-300 cursor-pointer",viewBox:"0 0 24 24"};function Ci(n,t){return e.openBlock(),e.createElementBlock("svg",Bi,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M9 6h11M12 12h8M15 18h5M5 6v.01M8 12v.01M11 18v.01"},null,-1)]))}const $i={render:Ci},Di={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6 rounded text-slate-700 hover:bg-neutral-100 dark:fill-neutral-300 dark:hover:bg-gray-800 cursor-pointer",viewBox:"0 0 448 512"};function Ti(n,t){return e.openBlock(),e.createElementBlock("svg",Di,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8 256a56 56 0 1 1 112 0 56 56 0 1 1-112 0m160 0a56 56 0 1 1 112 0 56 56 0 1 1-112 0m216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112"},null,-1)]))}const Mi={render:Ti},Ai={class:"vuefinder__breadcrumb__container"},Li=["title"],Oi=["title"],Fi=["title"],Hi=["title"],Ri={class:"vuefinder__breadcrumb__list"},Ii={key:0,class:"vuefinder__breadcrumb__hidden-list"},zi={class:"relative"},Ui=["onDragover","onDragleave","onDrop","title","onClick"],qi={class:"vuefinder__breadcrumb__search-mode"},ji=["placeholder"],Pi={class:"vuefinder__breadcrumb__hidden-dropdown"},Gi=["onDrop","onClick"],Ki={class:"vuefinder__breadcrumb__hidden-item-content"},Wi={class:"vuefinder__breadcrumb__hidden-item-text"},Yi={__name:"Breadcrumb",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=t.dragSelect,{setStore:r}=t.storage,c=e.ref(null),a=oo(0,100);e.watch(a,B=>{const h=c.value.children;let _=0,y=0,V=5,M=1;t.fs.limitBreadcrumbItems(V),e.nextTick(()=>{for(let g=h.length-1;g>=0&&!(_+h[g].offsetWidth>a.value-40);g--)_+=parseInt(h[g].offsetWidth,10),y++;yV&&(y=V),t.fs.limitBreadcrumbItems(y)})});const i=()=>{a.value=c.value.offsetWidth};let l=e.ref(null);e.onMounted(()=>{l.value=new ResizeObserver(i),l.value.observe(c.value)}),e.onUnmounted(()=>{l.value.disconnect()});const d=(B,h=null)=>{B.preventDefault(),s.isDraggingRef.value=!1,v(B),h??(h=t.fs.hiddenBreadcrumbs.length-1);let _=JSON.parse(B.dataTransfer.getData("items"));if(_.find(y=>y.storage!==t.fs.adapter)){alert("Moving items between different storages is not supported yet.");return}t.modal.open(_n,{items:{from:_,to:t.fs.hiddenBreadcrumbs[h]??{path:t.fs.adapter+"://"}}})},f=(B,h=null)=>{B.preventDefault(),s.isDraggingRef.value=!1,v(B),h??(h=t.fs.breadcrumbs.length-2);let _=JSON.parse(B.dataTransfer.getData("items"));if(_.find(y=>y.storage!==t.fs.adapter)){alert("Moving items between different storages is not supported yet.");return}t.modal.open(_n,{items:{from:_,to:t.fs.breadcrumbs[h]??{path:t.fs.adapter+"://"}}})},u=B=>{B.preventDefault(),t.fs.isGoUpAvailable()?(B.dataTransfer.dropEffect="copy",B.currentTarget.classList.add("bg-blue-200","dark:bg-slate-600")):(B.dataTransfer.dropEffect="none",B.dataTransfer.effectAllowed="none")},v=B=>{B.preventDefault(),B.currentTarget.classList.remove("bg-blue-200","dark:bg-slate-600"),t.fs.isGoUpAvailable()&&B.currentTarget.classList.remove("bg-blue-200","dark:bg-slate-600")},m=()=>{C(),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname}})},p=()=>{C(),!t.fs.isGoUpAvailable()||t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.parentFolderPath}})},k=B=>{t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:B.path}}),t.fs.toggleHiddenBreadcrumbs(!1)},w=()=>{t.fs.showHiddenBreadcrumbs&&t.fs.toggleHiddenBreadcrumbs(!1)},E={mounted(B,h,_,y){B.clickOutsideEvent=function(V){B===V.target||B.contains(V.target)||h.value()},document.body.addEventListener("click",B.clickOutsideEvent)},beforeUnmount(B,h,_,y){document.body.removeEventListener("click",B.clickOutsideEvent)}},T=()=>{t.showTreeView=!t.showTreeView};e.watch(()=>t.showTreeView,(B,h)=>{B!==h&&r("show-tree-view",B)});const S=e.ref(null),b=()=>{t.features.includes(Z.SEARCH)&&(t.fs.searchMode=!0,e.nextTick(()=>S.value.focus()))},x=oo("",400);e.watch(x,B=>{t.emitter.emit("vf-toast-clear"),t.emitter.emit("vf-search-query",{newQuery:B})}),e.watch(()=>t.fs.searchMode,B=>{B&&e.nextTick(()=>S.value.focus())});const C=()=>{t.fs.searchMode=!1,x.value=""};t.emitter.on("vf-search-exit",()=>{C()});const F=()=>{x.value===""&&C()};return(B,h)=>(e.openBlock(),e.createElementBlock("div",Ai,[e.createElementVNode("span",{title:e.unref(o)("Toggle Tree View")},[e.createVNode(e.unref($i),{onClick:T,class:e.normalizeClass(["vuefinder__breadcrumb__toggle-tree",e.unref(t).showTreeView?"vuefinder__breadcrumb__toggle-tree--active":""])},null,8,["class"])],8,Li),e.createElementVNode("span",{title:e.unref(o)("Go up a directory")},[e.createVNode(e.unref(fi),{onDragover:h[0]||(h[0]=_=>u(_)),onDragleave:h[1]||(h[1]=_=>v(_)),onDrop:h[2]||(h[2]=_=>f(_)),onClick:p,class:e.normalizeClass(e.unref(t).fs.isGoUpAvailable()?"vuefinder__breadcrumb__go-up--active":"vuefinder__breadcrumb__go-up--inactive")},null,8,["class"])],8,Oi),e.unref(t).fs.loading?(e.openBlock(),e.createElementBlock("span",{key:1,title:e.unref(o)("Cancel")},[e.createVNode(e.unref(_i),{onClick:h[3]||(h[3]=_=>e.unref(t).emitter.emit("vf-fetch-abort"))})],8,Hi)):(e.openBlock(),e.createElementBlock("span",{key:0,title:e.unref(o)("Refresh")},[e.createVNode(e.unref(di),{onClick:m})],8,Fi)),e.withDirectives(e.createElementVNode("div",{onClick:e.withModifiers(b,["self"]),class:"group vuefinder__breadcrumb__search-container"},[e.createElementVNode("div",null,[e.createVNode(e.unref(ki),{onDragover:h[4]||(h[4]=_=>u(_)),onDragleave:h[5]||(h[5]=_=>v(_)),onDrop:h[6]||(h[6]=_=>f(_,-1)),onClick:h[7]||(h[7]=_=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:e.unref(t).fs.adapter}}))})]),e.createElementVNode("div",Ri,[e.unref(t).fs.hiddenBreadcrumbs.length?e.withDirectives((e.openBlock(),e.createElementBlock("div",Ii,[h[13]||(h[13]=e.createElementVNode("div",{class:"vuefinder__breadcrumb__separator"},"/",-1)),e.createElementVNode("div",zi,[e.createElementVNode("span",{onDragenter:h[8]||(h[8]=_=>e.unref(t).fs.toggleHiddenBreadcrumbs(!0)),onClick:h[9]||(h[9]=_=>e.unref(t).fs.toggleHiddenBreadcrumbs()),class:"vuefinder__breadcrumb__hidden-toggle"},[e.createVNode(e.unref(Mi),{class:"vuefinder__breadcrumb__hidden-toggle-icon"})],32)])])),[[E,w]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"breadcrumbContainer",ref:c,class:"vuefinder__breadcrumb__visible-list",onClick:e.withModifiers(b,["self"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.breadcrumbs,(_,y)=>(e.openBlock(),e.createElementBlock("div",{key:y},[h[14]||(h[14]=e.createElementVNode("span",{class:"vuefinder__breadcrumb__separator"},"/",-1)),e.createElementVNode("span",{onDragover:V=>y===e.unref(t).fs.breadcrumbs.length-1||u(V),onDragleave:V=>y===e.unref(t).fs.breadcrumbs.length-1||v(V),onDrop:V=>y===e.unref(t).fs.breadcrumbs.length-1||f(V,y),class:"vuefinder__breadcrumb__item",title:_.basename,onClick:V=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:e.unref(t).fs.adapter,path:_.path}})},e.toDisplayString(_.name),41,Ui)]))),128))],512),e.unref(t).loadingIndicator==="circular"&&e.unref(t).fs.loading?(e.openBlock(),e.createBlock(e.unref(Mn),{key:0})):e.createCommentVNode("",!0)],512),[[e.vShow,!e.unref(t).fs.searchMode]]),e.withDirectives(e.createElementVNode("div",qi,[e.createElementVNode("div",null,[e.createVNode(e.unref(yi))]),e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:S,onKeydown:e.withKeys(C,["esc"]),onBlur:F,"onUpdate:modelValue":h[10]||(h[10]=_=>e.isRef(x)?x.value=_:null),placeholder:e.unref(o)("Search anything.."),class:"vuefinder__breadcrumb__search-input",type:"text"},null,40,ji),[[e.vModelText,e.unref(x)]]),e.createVNode(e.unref(Si),{onClick:C})],512),[[e.vShow,e.unref(t).fs.searchMode]]),e.withDirectives(e.createElementVNode("div",Pi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.hiddenBreadcrumbs,(_,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,onDragover:h[11]||(h[11]=V=>u(V)),onDragleave:h[12]||(h[12]=V=>v(V)),onDrop:V=>d(V,y),onClick:V=>k(_),class:"vuefinder__breadcrumb__hidden-item"},[e.createElementVNode("div",Ki,[e.createElementVNode("span",null,[e.createVNode(e.unref(zt),{class:"vuefinder__breadcrumb__hidden-item-icon"})]),h[15]||(h[15]=e.createTextVNode()),e.createElementVNode("span",Wi,e.toDisplayString(_.name),1)])],40,Gi))),128))],512),[[e.vShow,e.unref(t).fs.showHiddenBreadcrumbs]])]))}},ar=(n,t=null)=>new Date(n*1e3).toLocaleString(t??navigator.language??"en-US"),Xi=["onClick"],Ji={__name:"Toast",setup(n){const t=e.inject("ServiceContainer"),{getStore:o}=t.storage,s=e.ref(o("full-screen",!1)),r=e.ref([]),c=l=>l==="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",a=l=>{r.value.splice(l,1)},i=l=>{let d=r.value.findIndex(f=>f.id===l);d!==-1&&a(d)};return t.emitter.on("vf-toast-clear",()=>{r.value=[]}),t.emitter.on("vf-toast-push",l=>{let d=new Date().getTime().toString(36).concat(performance.now().toString(),Math.random().toString()).replace(/\./g,"");l.id=d,r.value.push(l),setTimeout(()=>{i(d)},5e3)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vuefinder__toast",s.value.value?"vuefinder__toast--fixed":"vuefinder__toast--absolute"])},[e.createVNode(e.TransitionGroup,{name:"vuefinder__toast-item","enter-active-class":"vuefinder__toast-item--enter-active","leave-active-class":"vuefinder__toast-item--leave-active","leave-to-class":"vuefinder__toast-item--leave-to"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,onClick:v=>a(u),class:e.normalizeClass(["vuefinder__toast__message",c(f.type)])},e.toDisplayString(f.label),11,Xi))),128))]),_:1})],2))}},Zi={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-5 w-5",viewBox:"0 0 20 20"};function Qi(n,t){return e.openBlock(),e.createElementBlock("svg",Zi,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414","clip-rule":"evenodd"},null,-1)]))}const ed={render:Qi},td={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-5 w-5",viewBox:"0 0 20 20"};function nd(n,t){return e.openBlock(),e.createElementBlock("svg",td,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 0 1-1.414 0L10 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414","clip-rule":"evenodd"},null,-1)]))}const od={render:nd},wt={__name:"SortIcon",props:{direction:String},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",null,[n.direction==="asc"?(e.openBlock(),e.createBlock(e.unref(ed),{key:0})):e.createCommentVNode("",!0),n.direction==="desc"?(e.openBlock(),e.createBlock(e.unref(od),{key:1})):e.createCommentVNode("",!0)]))}},rd={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",class:"text-neutral-500",viewBox:"0 0 24 24"};function sd(n,t){return e.openBlock(),e.createElementBlock("svg",rd,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"},null,-1)]))}const ld={render:sd},ad={class:"vuefinder__item-icon"},Jt={__name:"ItemIcon",props:{type:{type:String,required:!0},small:{type:Boolean,default:!1}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("span",ad,[n.type==="dir"?(e.openBlock(),e.createBlock(e.unref(zt),{key:0,class:e.normalizeClass(n.small?"vuefinder__item-icon--small":"vuefinder__item-icon--large")},null,8,["class"])):(e.openBlock(),e.createBlock(e.unref(ld),{key:1,class:e.normalizeClass(n.small?"vuefinder__item-icon--small":"vuefinder__item-icon--large")},null,8,["class"]))]))}},cd={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",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",viewBox:"0 0 24 24"};function id(n,t){return e.openBlock(),e.createElementBlock("svg",cd,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"},null,-1)]))}const dd={render:id},ud={class:"vuefinder__drag-item__container"},md={class:"vuefinder__drag-item__count"},fd={__name:"DragItem",props:{count:{type:Number,default:0}},setup(n){const t=n;return(o,s)=>(e.openBlock(),e.createElementBlock("div",ud,[e.createVNode(e.unref(dd)),e.createElementVNode("div",md,e.toDisplayString(t.count),1)]))}},vd={class:"vuefinder__text-preview"},pd={class:"vuefinder__text-preview__header"},_d=["title"],hd={class:"vuefinder__text-preview__actions"},gd={key:0,class:"vuefinder__text-preview__content"},kd={key:1},wd={__name:"Text",emits:["success"],setup(n,{emit:t}){const o=t,s=e.ref(""),r=e.ref(""),c=e.ref(null),a=e.ref(!1),i=e.ref(""),l=e.ref(!1),d=e.inject("ServiceContainer"),{t:f}=d.i18n;e.onMounted(()=>{d.requester.send({url:"",method:"get",params:{q:"preview",adapter:d.modal.data.adapter,path:d.modal.data.item.path},responseType:"text"}).then(m=>{s.value=m,o("success")})});const u=()=>{a.value=!a.value,r.value=s.value},v=()=>{i.value="",l.value=!1,d.requester.send({url:"",method:"post",params:{q:"save",adapter:d.modal.data.adapter,path:d.modal.data.item.path},body:{content:r.value},responseType:"text"}).then(m=>{i.value=f("Updated."),s.value=m,o("success"),a.value=!a.value}).catch(m=>{i.value=f(m.message),l.value=!0})};return(m,p)=>(e.openBlock(),e.createElementBlock("div",vd,[e.createElementVNode("div",pd,[e.createElementVNode("div",{class:"vuefinder__text-preview__title",id:"modal-title",title:e.unref(d).modal.data.item.path},e.toDisplayString(e.unref(d).modal.data.item.basename),9,_d),e.createElementVNode("div",hd,[a.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:v,class:"vuefinder__text-preview__save-button"},e.toDisplayString(e.unref(f)("Save")),1)):e.createCommentVNode("",!0),e.unref(d).features.includes(e.unref(Z).EDIT)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"vuefinder__text-preview__edit-button",onClick:p[0]||(p[0]=k=>u())},e.toDisplayString(a.value?e.unref(f)("Cancel"):e.unref(f)("Edit")),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",null,[a.value?(e.openBlock(),e.createElementBlock("div",kd,[e.withDirectives(e.createElementVNode("textarea",{ref_key:"editInput",ref:c,"onUpdate:modelValue":p[1]||(p[1]=k=>r.value=k),class:"vuefinder__text-preview__textarea",name:"text",cols:"30",rows:"10"},null,512),[[e.vModelText,r.value]])])):(e.openBlock(),e.createElementBlock("pre",gd,e.toDisplayString(s.value),1)),i.value.length?(e.openBlock(),e.createBlock($e,{key:2,onHidden:p[2]||(p[2]=k=>i.value=""),error:l.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)])]))}},bd={class:"vuefinder__image-preview"},yd={class:"vuefinder__image-preview__header"},Ed=["title"],Vd={class:"vuefinder__image-preview__actions"},Sd={class:"vuefinder__image-preview__image-container"},Nd=["src"],xd={__name:"Image",emits:["success"],setup(n,{emit:t}){const o=t,s=e.inject("ServiceContainer"),{t:r}=s.i18n,c=e.ref(null),a=e.ref(null),i=e.ref(!1),l=e.ref(""),d=e.ref(!1),f=()=>{i.value=!i.value,i.value?a.value=new Br(c.value,{crop(v){}}):a.value.destroy()},u=()=>{a.value.getCroppedCanvas({width:795,height:341}).toBlob(v=>{l.value="",d.value=!1;const m=new FormData;m.set("file",v),s.requester.send({url:"",method:"post",params:{q:"upload",adapter:s.modal.data.adapter,path:s.modal.data.item.path},body:m}).then(p=>{l.value=r("Updated."),c.value.src=s.requester.getPreviewUrl(s.modal.data.adapter,s.modal.data.item),f(),o("success")}).catch(p=>{l.value=r(p.message),d.value=!0})})};return e.onMounted(()=>{o("success")}),(v,m)=>(e.openBlock(),e.createElementBlock("div",bd,[e.createElementVNode("div",yd,[e.createElementVNode("h3",{class:"vuefinder__image-preview__title",id:"modal-title",title:e.unref(s).modal.data.item.path},e.toDisplayString(e.unref(s).modal.data.item.basename),9,Ed),e.createElementVNode("div",Vd,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u,class:"vuefinder__image-preview__crop-button"},e.toDisplayString(e.unref(r)("Crop")),1)):e.createCommentVNode("",!0),e.unref(s).features.includes(e.unref(Z).EDIT)?(e.openBlock(),e.createElementBlock("button",{key:1,class:"vuefinder__image-preview__edit-button",onClick:m[0]||(m[0]=p=>f())},e.toDisplayString(i.value?e.unref(r)("Cancel"):e.unref(r)("Edit")),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Sd,[e.createElementVNode("img",{ref_key:"image",ref:c,class:"vuefinder__image-preview__image",src:e.unref(s).requester.getPreviewUrl(e.unref(s).modal.data.adapter,e.unref(s).modal.data.item),alt:""},null,8,Nd)]),l.value.length?(e.openBlock(),e.createBlock($e,{key:0,onHidden:m[1]||(m[1]=p=>l.value=""),error:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1},8,["error"])):e.createCommentVNode("",!0)]))}},Bd={class:"vuefinder__default-preview"},Cd={class:"vuefinder__default-preview__header"},$d=["title"],Dd={__name:"Default",emits:["success"],setup(n,{emit:t}){const o=e.inject("ServiceContainer"),s=t;return e.onMounted(()=>{s("success")}),(r,c)=>(e.openBlock(),e.createElementBlock("div",Bd,[e.createElementVNode("div",Cd,[e.createElementVNode("h3",{class:"vuefinder__default-preview__title",id:"modal-title",title:e.unref(o).modal.data.item.path},e.toDisplayString(e.unref(o).modal.data.item.basename),9,$d)]),c[0]||(c[0]=e.createElementVNode("div",null,null,-1))]))}},Td={class:"vuefinder__video-preview"},Md=["title"],Ad={class:"vuefinder__video-preview__video",preload:"",controls:""},Ld=["src"],Od={__name:"Video",emits:["success"],setup(n,{emit:t}){const o=e.inject("ServiceContainer"),s=t,r=()=>o.requester.getPreviewUrl(o.modal.data.adapter,o.modal.data.item);return e.onMounted(()=>{s("success")}),(c,a)=>(e.openBlock(),e.createElementBlock("div",Td,[e.createElementVNode("h3",{class:"vuefinder__video-preview__title",id:"modal-title",title:e.unref(o).modal.data.item.path},e.toDisplayString(e.unref(o).modal.data.item.basename),9,Md),e.createElementVNode("div",null,[e.createElementVNode("video",Ad,[e.createElementVNode("source",{src:r(),type:"video/mp4"},null,8,Ld),a[0]||(a[0]=e.createTextVNode(" Your browser does not support the video tag. "))])])]))}},Fd={class:"vuefinder__audio-preview"},Hd=["title"],Rd={class:"vuefinder__audio-preview__audio",controls:""},Id=["src"],zd={__name:"Audio",emits:["success"],setup(n,{emit:t}){const o=t,s=e.inject("ServiceContainer"),r=()=>s.requester.getPreviewUrl(s.modal.data.adapter,s.modal.data.item);return e.onMounted(()=>{o("success")}),(c,a)=>(e.openBlock(),e.createElementBlock("div",Fd,[e.createElementVNode("h3",{class:"vuefinder__audio-preview__title",id:"modal-title",title:e.unref(s).modal.data.item.path},e.toDisplayString(e.unref(s).modal.data.item.basename),9,Hd),e.createElementVNode("div",null,[e.createElementVNode("audio",Rd,[e.createElementVNode("source",{src:r(),type:"audio/mpeg"},null,8,Id),a[0]||(a[0]=e.createTextVNode(" Your browser does not support the audio element. "))])])]))}},Ud={class:"vuefinder__pdf-preview"},qd=["title"],jd=["data"],Pd=["src"],Gd={__name:"Pdf",emits:["success"],setup(n,{emit:t}){const o=e.inject("ServiceContainer"),s=t,r=()=>o.requester.getPreviewUrl(o.modal.data.adapter,o.modal.data.item);return e.onMounted(()=>{s("success")}),(c,a)=>(e.openBlock(),e.createElementBlock("div",Ud,[e.createElementVNode("h3",{class:"vuefinder__pdf-preview__title",id:"modal-title",title:e.unref(o).modal.data.item.path},e.toDisplayString(e.unref(o).modal.data.item.basename),9,qd),e.createElementVNode("div",null,[e.createElementVNode("object",{class:"vuefinder__pdf-preview__object",data:r(),type:"application/pdf",width:"100%",height:"100%"},[e.createElementVNode("iframe",{class:"vuefinder__pdf-preview__iframe",src:r(),width:"100%",height:"100%"},a[0]||(a[0]=[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)]),8,Pd)],8,jd)])]))}},Kd={class:"vuefinder__preview-modal__content"},Wd={key:0},Yd={class:"vuefinder__preview-modal__loading"},Xd={key:0,class:"vuefinder__preview-modal__loading-indicator"},Jd={class:"vuefinder__preview-modal__details"},Zd={class:"font-bold"},Qd={class:"font-bold pl-2"},eu={key:0,class:"vuefinder__preview-modal__note"},tu=["download","href"],cr={__name:"ModalPreview",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(!1),r=a=>(t.modal.data.item.mime_type??"").startsWith(a),c=t.features.includes(Z.PREVIEW);return c||(s.value=!0),(a,i)=>(e.openBlock(),e.createBlock(Ce,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:i[6]||(i[6]=l=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(o)("Close")),1),e.unref(t).features.includes(e.unref(Z).DOWNLOAD)?(e.openBlock(),e.createElementBlock("a",{key:0,target:"_blank",class:"vf-btn vf-btn-primary",download:e.unref(t).requester.getDownloadUrl(e.unref(t).modal.data.adapter,e.unref(t).modal.data.item),href:e.unref(t).requester.getDownloadUrl(e.unref(t).modal.data.adapter,e.unref(t).modal.data.item)},e.toDisplayString(e.unref(o)("Download")),9,tu)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",Kd,[e.unref(c)?(e.openBlock(),e.createElementBlock("div",Wd,[r("text")?(e.openBlock(),e.createBlock(wd,{key:0,onSuccess:i[0]||(i[0]=l=>s.value=!0)})):r("image")?(e.openBlock(),e.createBlock(xd,{key:1,onSuccess:i[1]||(i[1]=l=>s.value=!0)})):r("video")?(e.openBlock(),e.createBlock(Od,{key:2,onSuccess:i[2]||(i[2]=l=>s.value=!0)})):r("audio")?(e.openBlock(),e.createBlock(zd,{key:3,onSuccess:i[3]||(i[3]=l=>s.value=!0)})):r("application/pdf")?(e.openBlock(),e.createBlock(Gd,{key:4,onSuccess:i[4]||(i[4]=l=>s.value=!0)})):(e.openBlock(),e.createBlock(Dd,{key:5,onSuccess:i[5]||(i[5]=l=>s.value=!0)}))])):e.createCommentVNode("",!0),e.createElementVNode("div",Yd,[s.value===!1?(e.openBlock(),e.createElementBlock("div",Xd,[i[7]||(i[7]=e.createElementVNode("svg",{class:"vuefinder__preview-modal__spinner",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"vuefinder__preview-modal__spinner-circle",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e.createElementVNode("path",{class:"vuefinder__preview-modal__spinner-path",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)),e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("Loading")),1)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Jd,[e.createElementVNode("div",null,[e.createElementVNode("span",Zd,e.toDisplayString(e.unref(o)("File Size"))+": ",1),e.createTextVNode(e.toDisplayString(e.unref(t).filesize(e.unref(t).modal.data.item.file_size)),1)]),e.createElementVNode("div",null,[e.createElementVNode("span",Qd,e.toDisplayString(e.unref(o)("Last Modified"))+": ",1),e.createTextVNode(" "+e.toDisplayString(e.unref(ar)(e.unref(t).modal.data.item.last_modified)),1)])]),e.unref(t).features.includes(e.unref(Z).DOWNLOAD)?(e.openBlock(),e.createElementBlock("div",eu,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)),1)])):e.createCommentVNode("",!0)]),_:1}))}},nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"h-5 w-5",viewBox:"0 0 24 24"};function ou(n,t){return e.openBlock(),e.createElementBlock("svg",nu,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5"},null,-1)]))}const ir={render:ou},ru=["data-type","data-item","data-index"],Zt={__name:"Item",props:{item:{type:Object},index:{type:Number},dragImage:{type:Object}},setup(n){const t=e.inject("ServiceContainer"),o=t.dragSelect,s=n,r=m=>{m.type==="dir"?(t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:m.path}})):t.modal.open(cr,{adapter:t.fs.adapter,item:m})},c={mounted(m,p,k,w){k.props.draggable&&(m.addEventListener("dragstart",E=>a(E,p.value)),m.addEventListener("dragover",E=>l(E,p.value)),m.addEventListener("drop",E=>i(E,p.value)))},beforeUnmount(m,p,k,w){k.props.draggable&&(m.removeEventListener("dragstart",a),m.removeEventListener("dragover",l),m.removeEventListener("drop",i))}},a=(m,p)=>{if(m.altKey||m.ctrlKey||m.metaKey)return m.preventDefault(),!1;o.isDraggingRef.value=!0,m.dataTransfer.setDragImage(s.dragImage.$el,0,15),m.dataTransfer.effectAllowed="all",m.dataTransfer.dropEffect="copy",m.dataTransfer.setData("items",JSON.stringify(o.getSelected()))},i=(m,p)=>{m.preventDefault(),o.isDraggingRef.value=!1;let k=JSON.parse(m.dataTransfer.getData("items"));if(k.find(w=>w.storage!==t.fs.adapter)){alert("Moving items between different storages is not supported yet.");return}t.modal.open(_n,{items:{from:k,to:p}})},l=(m,p)=>{m.preventDefault(),!p||p.type!=="dir"||o.getSelection().find(k=>k===m.currentTarget)?(m.dataTransfer.dropEffect="none",m.dataTransfer.effectAllowed="none"):m.dataTransfer.dropEffect="copy"};let d=null,f=!1;const u=()=>{d&&clearTimeout(d)},v=m=>{if(!f)f=!0,setTimeout(()=>f=!1,300);else return f=!1,r(s.item),clearTimeout(d),!1;d=setTimeout(()=>{const p=new MouseEvent("contextmenu",{bubbles:!0,cancelable:!1,view:window,button:2,buttons:0,clientX:m.target.getBoundingClientRect().x,clientY:m.target.getBoundingClientRect().y});m.target.dispatchEvent(p)},500)};return(m,p)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({opacity:e.unref(o).isDraggingRef.value&&e.unref(o).getSelection().find(k=>m.$el===k)?"0.5 !important":""}),class:e.normalizeClass(["vuefinder__item","vf-item-"+e.unref(o).explorerId]),"data-type":n.item.type,key:n.item.path,"data-item":JSON.stringify(n.item),"data-index":n.index,onDblclick:p[0]||(p[0]=k=>r(n.item)),onTouchstart:p[1]||(p[1]=k=>v(k)),onTouchend:p[2]||(p[2]=k=>u()),onContextmenu:p[3]||(p[3]=e.withModifiers(k=>e.unref(t).emitter.emit("vf-contextmenu-show",{event:k,items:e.unref(o).getSelected(),target:n.item}),["prevent"]))},[e.renderSlot(m.$slots,"default"),e.unref(t).pinnedFolders.find(k=>k.path===n.item.path)?(e.openBlock(),e.createBlock(e.unref(ir),{key:0,class:"vuefinder__item--pinned"})):e.createCommentVNode("",!0)],46,ru)),[[c,n.item]])}},su={class:"vuefinder__explorer__container"},lu={key:0,class:"vuefinder__explorer__header"},au={class:"vuefinder__explorer__drag-item"},cu={key:0,class:"vuefinder__linear-loader absolute"},iu={class:"vuefinder__explorer__item-list-content"},du={class:"vuefinder__explorer__item-list-name"},uu={class:"vuefinder__explorer__item-name"},mu={class:"vuefinder__explorer__item-path"},fu={class:"vuefinder__explorer__item-list-content"},vu={class:"vuefinder__explorer__item-list-name"},pu={class:"vuefinder__explorer__item-name"},_u={class:"vuefinder__explorer__item-size"},hu={class:"vuefinder__explorer__item-date"},gu={class:"vuefinder__explorer__item-grid-content"},ku=["data-src","alt"],wu={key:2,class:"vuefinder__explorer__item-extension"},bu={class:"vuefinder__explorer__item-title break-all"},yu={__name:"Explorer",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=u=>u==null?void 0:u.substring(0,3),r=e.ref(null),c=e.ref(""),a=t.dragSelect;let i;t.emitter.on("vf-fullscreen-toggle",()=>{a.area.value.style.height=null}),t.emitter.on("vf-search-query",({newQuery:u})=>{c.value=u,u?t.emitter.emit("vf-fetch",{params:{q:"search",adapter:t.fs.adapter,path:t.fs.data.dirname,filter:u},onSuccess:v=>{v.files.length||t.emitter.emit("vf-toast-push",{label:o("No search result found.")})}}):t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname}})});const l=e.reactive({active:!1,column:"",order:""}),d=(u=!0)=>{let v=[...t.fs.data.files],m=l.column,p=l.order==="asc"?1:-1;if(!u)return v;const k=(w,E)=>typeof w=="string"&&typeof E=="string"?w.toLowerCase().localeCompare(E.toLowerCase()):wE?1:0;return l.active&&(v=v.slice().sort((w,E)=>k(w[m],E[m])*p)),v},f=u=>{l.active&&l.column===u?(l.active=l.order==="asc",l.column=u,l.order="desc"):(l.active=!0,l.column=u,l.order="asc")};return e.onMounted(()=>{i=new xr(a.area.value)}),e.onUpdated(()=>{i.update()}),e.onBeforeUnmount(()=>{i.destroy()}),(u,v)=>(e.openBlock(),e.createElementBlock("div",su,[e.unref(t).view==="list"||c.value.length?(e.openBlock(),e.createElementBlock("div",lu,[e.createElementVNode("div",{onClick:v[0]||(v[0]=m=>f("basename")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--name vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Name"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="basename"]])]),c.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:v[1]||(v[1]=m=>f("file_size")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--size vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Size"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="file_size"]])])),c.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:v[2]||(v[2]=m=>f("last_modified")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--date vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Date"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="last_modified"]])])),c.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,onClick:v[3]||(v[3]=m=>f("path")),class:"vuefinder__explorer__sort-button vuefinder__explorer__sort-button--path vf-sort-button"},[e.createTextVNode(e.toDisplayString(e.unref(o)("Filepath"))+" ",1),e.withDirectives(e.createVNode(wt,{direction:l.order},null,8,["direction"]),[[e.vShow,l.active&&l.column==="path"]])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",au,[e.createVNode(fd,{ref_key:"dragImage",ref:r,count:e.unref(a).getCount()},null,8,["count"])]),e.createElementVNode("div",{ref:e.unref(a).scrollBarContainer,class:e.normalizeClass(["vf-explorer-scrollbar-container vuefinder__explorer__scrollbar-container",[{"grid-view":e.unref(t).view==="grid"},{"search-active":c.value.length}]])},[e.createElementVNode("div",{ref:e.unref(a).scrollBar,class:"vuefinder__explorer__scrollbar"},null,512)],2),e.createElementVNode("div",{ref:e.unref(a).area,class:"vuefinder__explorer__selector-area vf-explorer-scrollbar vf-selector-area",onContextmenu:v[4]||(v[4]=e.withModifiers(m=>e.unref(t).emitter.emit("vf-contextmenu-show",{event:m,items:e.unref(a).getSelected()}),["self","prevent"]))},[e.unref(t).loadingIndicator==="linear"&&e.unref(t).fs.loading?(e.openBlock(),e.createElementBlock("div",cu)):e.createCommentVNode("",!0),c.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(d(),(m,p)=>(e.openBlock(),e.createBlock(Zt,{item:m,index:p,dragImage:r.value,class:"vf-item vf-item-list"},{default:e.withCtx(()=>[e.createElementVNode("div",iu,[e.createElementVNode("div",du,[e.createVNode(Jt,{type:m.type,small:e.unref(t).compactListView},null,8,["type","small"]),e.createElementVNode("span",uu,e.toDisplayString(m.basename),1)]),e.createElementVNode("div",mu,e.toDisplayString(m.path),1)])]),_:2},1032,["item","index","dragImage"]))),256)):e.createCommentVNode("",!0),e.unref(t).view==="list"&&!c.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(d(),(m,p)=>(e.openBlock(),e.createBlock(Zt,{item:m,index:p,dragImage:r.value,class:"vf-item vf-item-list",draggable:"true",key:m.path},{default:e.withCtx(()=>[e.createElementVNode("div",fu,[e.createElementVNode("div",vu,[e.createVNode(Jt,{type:m.type,small:e.unref(t).compactListView},null,8,["type","small"]),e.createElementVNode("span",pu,e.toDisplayString(m.basename),1)]),e.createElementVNode("div",_u,e.toDisplayString(m.file_size?e.unref(t).filesize(m.file_size):""),1),e.createElementVNode("div",hu,e.toDisplayString(e.unref(ar)(m.last_modified)),1)])]),_:2},1032,["item","index","dragImage"]))),128)):e.createCommentVNode("",!0),e.unref(t).view==="grid"&&!c.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(d(!1),(m,p)=>(e.openBlock(),e.createBlock(Zt,{item:m,index:p,dragImage:r.value,class:"vf-item vf-item-grid",draggable:"true"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",gu,[(m.mime_type??"").startsWith("image")&&e.unref(t).showThumbnails?(e.openBlock(),e.createElementBlock("img",{src:"data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",class:"vuefinder__explorer__item-thumbnail lazy","data-src":e.unref(t).requester.getPreviewUrl(e.unref(t).fs.adapter,m),alt:m.basename,key:m.path},null,8,ku)):(e.openBlock(),e.createBlock(Jt,{key:1,type:m.type},null,8,["type"])),!((m.mime_type??"").startsWith("image")&&e.unref(t).showThumbnails)&&m.type!=="dir"?(e.openBlock(),e.createElementBlock("div",wu,e.toDisplayString(s(m.extension)),1)):e.createCommentVNode("",!0)]),e.createElementVNode("span",bu,e.toDisplayString(e.unref(pn)(m.basename)),1)])]),_:2},1032,["item","index","dragImage"]))),256)):e.createCommentVNode("",!0)],544),e.createVNode(Ji)]))}},Eu=["href","download"],Vu=["onClick"],Su={__name:"ContextMenu",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,s=e.ref(null),r=e.ref([]),c=e.ref(""),a=e.reactive({active:!1,items:[],positions:{left:0,top:0}}),i=e.computed(()=>a.items.filter(u=>u.key==null||t.features.includes(u.key)));t.emitter.on("vf-context-selected",u=>{r.value=u});const l={newfolder:{key:Z.NEW_FOLDER,title:()=>o("New Folder"),action:()=>t.modal.open(er)},selectAll:{title:()=>o("Select All"),action:()=>t.dragSelect.selectAll()},pinFolder:{title:()=>o("Pin Folder"),action:()=>{t.pinnedFolders=t.pinnedFolders.concat(r.value),t.storage.setStore("pinned-folders",t.pinnedFolders)}},unpinFolder:{title:()=>o("Unpin Folder"),action:()=>{t.pinnedFolders=t.pinnedFolders.filter(u=>!r.value.find(v=>v.path===u.path)),t.storage.setStore("pinned-folders",t.pinnedFolders)}},delete:{key:Z.DELETE,title:()=>o("Delete"),action:()=>{t.modal.open(Dn,{items:r})}},refresh:{title:()=>o("Refresh"),action:()=>{t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:t.fs.data.dirname}})}},preview:{key:Z.PREVIEW,title:()=>o("Preview"),action:()=>t.modal.open(cr,{adapter:t.fs.adapter,item:r.value[0]})},open:{title:()=>o("Open"),action:()=>{t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:r.value[0].path}})}},openDir:{title:()=>o("Open containing folder"),action:()=>{t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter,path:r.value[0].dir}})}},download:{key:Z.DOWNLOAD,link:e.computed(()=>t.requester.getDownloadUrl(t.fs.adapter,r.value[0])),title:()=>o("Download"),action:()=>{}},archive:{key:Z.ARCHIVE,title:()=>o("Archive"),action:()=>t.modal.open(lr,{items:r})},unarchive:{key:Z.UNARCHIVE,title:()=>o("Unarchive"),action:()=>t.modal.open(rr,{items:r})},rename:{key:Z.RENAME,title:()=>o("Rename"),action:()=>t.modal.open(Tn,{items:r})}},d=u=>{t.emitter.emit("vf-contextmenu-hide"),u.action()};t.emitter.on("vf-search-query",({newQuery:u})=>{c.value=u}),t.emitter.on("vf-contextmenu-show",({event:u,items:v,target:m=null})=>{if(a.items=[],c.value)if(m)a.items.push(l.openDir),t.emitter.emit("vf-context-selected",[m]);else return;else!m&&!c.value?(a.items.push(l.refresh),a.items.push(l.selectAll),a.items.push(l.newfolder),t.emitter.emit("vf-context-selected",[])):v.length>1&&v.some(p=>p.path===m.path)?(a.items.push(l.refresh),a.items.push(l.archive),a.items.push(l.delete),t.emitter.emit("vf-context-selected",v)):(m.type==="dir"?(a.items.push(l.open),t.pinnedFolders.findIndex(p=>p.path===m.path)!==-1?a.items.push(l.unpinFolder):a.items.push(l.pinFolder)):(a.items.push(l.preview),a.items.push(l.download)),a.items.push(l.rename),m.mime_type==="application/zip"?a.items.push(l.unarchive):a.items.push(l.archive),a.items.push(l.delete),t.emitter.emit("vf-context-selected",[m]));f(u)}),t.emitter.on("vf-contextmenu-hide",()=>{a.active=!1});const f=u=>{const v=t.dragSelect.area.value,m=t.root.getBoundingClientRect(),p=v.getBoundingClientRect();let k=u.clientX-m.left,w=u.clientY-m.top;a.active=!0,e.nextTick(()=>{var b;const E=(b=s.value)==null?void 0:b.getBoundingClientRect();let T=(E==null?void 0:E.height)??0,S=(E==null?void 0:E.width)??0;k=p.right-u.pageX+window.scrollXe.withDirectives((e.openBlock(),e.createElementBlock("ul",{ref_key:"contextmenu",ref:s,style:e.normalizeStyle(a.positions),class:"vuefinder__context-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,m=>(e.openBlock(),e.createElementBlock("li",{class:"vuefinder__context-menu__item",key:m.title},[m.link?(e.openBlock(),e.createElementBlock("a",{key:0,class:"vuefinder__context-menu__link",target:"_blank",href:m.link,download:m.link,onClick:v[0]||(v[0]=p=>e.unref(t).emitter.emit("vf-contextmenu-hide"))},[e.createElementVNode("span",null,e.toDisplayString(m.title()),1)],8,Eu)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"vuefinder__context-menu__action",onClick:p=>d(m)},[e.createElementVNode("span",null,e.toDisplayString(m.title()),1)],8,Vu))]))),128))],4)),[[e.vShow,a.active]])}},Nu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",class:"h-5 w-5",viewBox:"0 0 24 24"};function xu(n,t){return e.openBlock(),e.createElementBlock("svg",Nu,t[0]||(t[0]=[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"},null,-1)]))}const dr={render:xu},Bu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2",class:"h-5 w-5 stroke-slate-500 cursor-pointer",viewBox:"0 0 24 24"};function Cu(n,t){return e.openBlock(),e.createElementBlock("svg",Bu,t[0]||(t[0]=[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 1 1-18 0 9 9 0 0 1 18 0"},null,-1)]))}const $u={render:Cu},Du={class:"vuefinder__status-bar__wrapper"},Tu={class:"vuefinder__status-bar__storage"},Mu=["title"],Au={class:"vuefinder__status-bar__storage-icon"},Lu=["value"],Ou={class:"vuefinder__status-bar__info"},Fu={key:0},Hu={class:"vuefinder__status-bar__selected-count"},Ru={class:"vuefinder__status-bar__actions"},Iu=["disabled"],zu=["title"],Uu={__name:"Statusbar",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,{setStore:s}=t.storage,r=t.dragSelect,c=()=>{t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:t.fs.adapter}}),s("adapter",t.fs.adapter)},a=e.ref("");t.emitter.on("vf-search-query",({newQuery:l})=>{a.value=l});const i=e.computed(()=>{const l=t.selectButton.multiple?r.getSelected().length>0:r.getSelected().length===1;return t.selectButton.active&&l});return(l,d)=>(e.openBlock(),e.createElementBlock("div",Du,[e.createElementVNode("div",Tu,[e.createElementVNode("div",{class:"vuefinder__status-bar__storage-container",title:e.unref(o)("Storage")},[e.createElementVNode("div",Au,[e.createVNode(e.unref(dr))]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":d[0]||(d[0]=f=>e.unref(t).fs.adapter=f),onChange:c,class:"vuefinder__status-bar__storage-select",tabindex:"-1"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.data.storages,f=>(e.openBlock(),e.createElementBlock("option",{value:f},e.toDisplayString(f),9,Lu))),256))],544),[[e.vModelSelect,e.unref(t).fs.adapter]])],8,Mu),e.createElementVNode("div",Ou,[a.value.length?(e.openBlock(),e.createElementBlock("span",Fu,e.toDisplayString(e.unref(t).fs.data.files.length)+" items found. ",1)):e.createCommentVNode("",!0),e.createElementVNode("span",Hu,e.toDisplayString(e.unref(t).dragSelect.getCount()>0?e.unref(o)("%s item(s) selected.",e.unref(t).dragSelect.getCount()):""),1)])]),e.createElementVNode("div",Ru,[e.unref(t).selectButton.active?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(["vf-btn py-0 vf-btn-primary",{disabled:!i.value}]),disabled:!i.value,onClick:d[1]||(d[1]=f=>e.unref(t).selectButton.click(e.unref(r).getSelected(),f))},e.toDisplayString(e.unref(o)("Select")),11,Iu)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:"vuefinder__status-bar__about",title:e.unref(o)("About"),onClick:d[2]||(d[2]=f=>e.unref(t).modal.open(Xo))},[e.createVNode(e.unref($u))],8,zu)])]))}},qu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"text-neutral-500 fill-sky-500 stroke-gray-100/50 dark:stroke-slate-700/50 dark:fill-slate-500",viewBox:"0 0 24 24"};function ju(n,t){return e.openBlock(),e.createElementBlock("svg",qu,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 9.776q.168-.026.344-.026h15.812q.176 0 .344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"},null,-1)]))}const ur={render:ju},Pu={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"h-5 w-5",viewBox:"0 0 24 24"};function Gu(n,t){return e.openBlock(),e.createElementBlock("svg",Pu,t[0]||(t[0]=[e.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4"},null,-1)]))}const Ku={render:Gu},Wu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"};function Yu(n,t){return e.openBlock(),e.createElementBlock("svg",Wu,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M15 12H9M12 9v6"},null,-1)]))}const mr={render:Yu},Xu={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"};function Ju(n,t){return e.openBlock(),e.createElementBlock("svg",Xu,t[0]||(t[0]=[e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z"},null,-1),e.createElementVNode("path",{d:"M9 12h6"},null,-1)]))}const fr={render:Ju};function vr(n,t){const o=n.findIndex(s=>s.path===t.path);o>-1?n[o]=t:n.push(t)}const Zu={class:"vuefinder__folder-loader-indicator"},Qu={key:1,class:"vuefinder__folder-loader-indicator--icon"},pr={__name:"FolderLoaderIndicator",props:e.mergeModels({adapter:{type:String,required:!0},path:{type:String,required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const t=n,o=e.inject("ServiceContainer");o.i18n;const s=e.useModel(n,"modelValue"),r=e.ref(!1);e.watch(()=>s.value,()=>{var i;return((i=c())==null?void 0:i.folders.length)||a()});function c(){return o.treeViewData.find(i=>i.path===t.path)}const a=()=>{r.value=!0,o.requester.send({url:"",method:"get",params:{q:"subfolders",adapter:t.adapter,path:t.path}}).then(i=>{vr(o.treeViewData,{path:t.path,...i})}).catch(i=>{}).finally(()=>{r.value=!1})};return(i,l)=>{var d;return e.openBlock(),e.createElementBlock("div",Zu,[r.value?(e.openBlock(),e.createBlock(e.unref(Mn),{key:0,class:"vuefinder__folder-loader-indicator--loading"})):(e.openBlock(),e.createElementBlock("div",Qu,[s.value&&((d=c())!=null&&d.folders.length)?(e.openBlock(),e.createBlock(e.unref(fr),{key:0,class:"vuefinder__folder-loader-indicator--minus"})):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(mr),{key:1,class:"vuefinder__folder-loader-indicator--plus"}))]))])}}},em={class:"vuefinder__treesubfolderlist__item-content"},tm=["onClick"],nm=["title","onClick"],om={class:"vuefinder__treesubfolderlist__item-icon"},rm={class:"vuefinder__treesubfolderlist__subfolder"},sm={__name:"TreeSubfolderList",props:{adapter:{type:String,required:!0},path:{type:String,required:!0}},setup(n){const t=e.inject("ServiceContainer"),o=e.ref([]),s=n,r=e.ref(null);e.onMounted(()=>{s.path===s.adapter+"://"&&xe(r.value,{scrollbars:{theme:"vf-theme-dark dark:vf-theme-light"}})});const c=e.computed(()=>{var a;return((a=t.treeViewData.find(i=>i.path===s.path))==null?void 0:a.folders)||[]});return(a,i)=>{const l=e.resolveComponent("TreeSubfolderList",!0);return e.openBlock(),e.createElementBlock("ul",{ref_key:"parentSubfolderList",ref:r,class:"vuefinder__treesubfolderlist__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:d.path,class:"vuefinder__treesubfolderlist__item"},[e.createElementVNode("div",em,[e.createElementVNode("div",{class:"vuefinder__treesubfolderlist__item-toggle",onClick:u=>o.value[d.path]=!o.value[d.path]},[e.createVNode(pr,{adapter:n.adapter,path:d.path,modelValue:o.value[d.path],"onUpdate:modelValue":u=>o.value[d.path]=u},null,8,["adapter","path","modelValue","onUpdate:modelValue"])],8,tm),e.createElementVNode("div",{class:"vuefinder__treesubfolderlist__item-link",title:d.path,onClick:u=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:s.adapter,path:d.path}})},[e.createElementVNode("div",om,[e.unref(t).fs.path===d.path?(e.openBlock(),e.createBlock(e.unref(ur),{key:0})):(e.openBlock(),e.createBlock(e.unref(zt),{key:1}))]),e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__treesubfolderlist__item-text",{"vuefinder__treesubfolderlist__item-text--active":e.unref(t).fs.path===d.path}])},e.toDisplayString(d.basename),3)],8,nm)]),e.createElementVNode("div",rm,[e.withDirectives(e.createVNode(l,{adapter:s.adapter,path:d.path},null,8,["adapter","path"]),[[e.vShow,o.value[d.path]]])])]))),128))],512)}}},lm={__name:"TreeStorageItem",props:{storage:{type:String,required:!0}},setup(n){const t=e.inject("ServiceContainer"),{setStore:o}=t.storage,s=e.ref(!1);function r(c){c===t.fs.adapter?s.value=!s.value:(t.emitter.emit("vf-search-exit"),t.emitter.emit("vf-fetch",{params:{q:"index",adapter:c}}),o("adapter",c))}return(c,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:a[2]||(a[2]=i=>r(n.storage)),class:"vuefinder__treestorageitem__header"},[e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__treestorageitem__info",n.storage===e.unref(t).fs.adapter?"vuefinder__treestorageitem__info--active":""])},[e.createElementVNode("div",{class:e.normalizeClass(["vuefinder__treestorageitem__icon",n.storage===e.unref(t).fs.adapter?"vuefinder__treestorageitem__icon--active":""])},[e.createVNode(e.unref(dr))],2),e.createElementVNode("div",null,e.toDisplayString(n.storage),1)],2),e.createElementVNode("div",{class:"vuefinder__treestorageitem__loader",onClick:a[1]||(a[1]=e.withModifiers(i=>s.value=!s.value,["stop"]))},[e.createVNode(pr,{adapter:n.storage,path:n.storage+"://",modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=i=>s.value=i)},null,8,["adapter","path","modelValue"])])]),e.withDirectives(e.createVNode(sm,{adapter:n.storage,path:n.storage+"://",class:"vuefinder__treestorageitem__subfolder"},null,8,["adapter","path"]),[[e.vShow,s.value]])],64))}},am={class:"vuefinder__folder-indicator"},cm={class:"vuefinder__folder-indicator--icon"},im={__name:"FolderIndicator",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const t=e.useModel(n,"modelValue");return(o,s)=>(e.openBlock(),e.createElementBlock("div",am,[e.createElementVNode("div",cm,[t.value?(e.openBlock(),e.createBlock(e.unref(fr),{key:0,class:"vuefinder__folder-indicator--minus"})):e.createCommentVNode("",!0),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(mr),{key:1,class:"vuefinder__folder-indicator--plus"}))])]))}},dm={class:"vuefinder__treeview__header"},um={class:"vuefinder__treeview__pinned-label"},mm={class:"vuefinder__treeview__pin-text text-nowrap"},fm={key:0,class:"vuefinder__treeview__pinned-list"},vm={class:"vuefinder__treeview__pinned-item"},pm=["onClick"],_m=["title"],hm=["onClick"],gm={key:0},km={class:"vuefinder__treeview__no-pinned"},wm={class:"vuefinder__treeview__storage"},bm={__name:"TreeView",setup(n){const t=e.inject("ServiceContainer"),{t:o}=t.i18n,{getStore:s,setStore:r}=t.storage,c=e.ref(190),a=e.ref(s("pinned-folders-opened",!0));e.watch(a,f=>r("pinned-folders-opened",f));const i=f=>{t.pinnedFolders=t.pinnedFolders.filter(u=>u.path!==f.path),t.storage.setStore("pinned-folders",t.pinnedFolders)},l=f=>{const u=f.clientX,v=f.target.parentElement,m=v.getBoundingClientRect().width;v.classList.remove("transition-[width]"),v.classList.add("transition-none");const p=w=>{c.value=m+w.clientX-u,c.value<50&&(c.value=0,t.showTreeView=!1),c.value>50&&(t.showTreeView=!0)},k=()=>{const w=v.getBoundingClientRect();c.value=w.width,v.classList.add("transition-[width]"),v.classList.remove("transition-none"),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",k)};window.addEventListener("mousemove",p),window.addEventListener("mouseup",k)},d=e.ref(null);return e.onMounted(()=>{xe(d.value,{overflow:{x:"hidden"},scrollbars:{theme:"vf-theme-dark dark:vf-theme-light"}})}),e.watch(t.fs.data,(f,u)=>{const v=f.files.filter(m=>m.type==="dir");vr(t.treeViewData,{path:t.fs.path,folders:v.map(m=>({adapter:m.storage,path:m.path,basename:m.basename}))})}),(f,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:u[0]||(u[0]=v=>e.unref(t).showTreeView=!e.unref(t).showTreeView),class:e.normalizeClass(["vuefinder__treeview__overlay",e.unref(t).showTreeView?"vuefinder__treeview__backdrop":"hidden"])},null,2),e.createElementVNode("div",{style:e.normalizeStyle(e.unref(t).showTreeView?"min-width:100px;max-width:75%; width: "+c.value+"px":"width: 0"),class:"vuefinder__treeview__container"},[e.createElementVNode("div",{ref_key:"treeViewScrollElement",ref:d,class:"vuefinder__treeview__scroll"},[e.createElementVNode("div",dm,[e.createElementVNode("div",{onClick:u[2]||(u[2]=v=>a.value=!a.value),class:"vuefinder__treeview__pinned-toggle"},[e.createElementVNode("div",um,[e.createVNode(e.unref(ir),{class:"vuefinder__treeview__pin-icon"}),e.createElementVNode("div",mm,e.toDisplayString(e.unref(o)("Pinned Folders")),1)]),e.createVNode(im,{modelValue:a.value,"onUpdate:modelValue":u[1]||(u[1]=v=>a.value=v)},null,8,["modelValue"])]),a.value?(e.openBlock(),e.createElementBlock("ul",fm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).pinnedFolders,v=>(e.openBlock(),e.createElementBlock("li",vm,[e.createElementVNode("div",{class:"vuefinder__treeview__pinned-folder",onClick:m=>e.unref(t).emitter.emit("vf-fetch",{params:{q:"index",adapter:v.storage,path:v.path}})},[e.unref(t).fs.path!==v.path?(e.openBlock(),e.createBlock(e.unref(zt),{key:0,class:"vuefinder__treeview__folder-icon"})):e.createCommentVNode("",!0),e.unref(t).fs.path===v.path?(e.openBlock(),e.createBlock(e.unref(ur),{key:1,class:"vuefinder__treeview__open-folder-icon"})):e.createCommentVNode("",!0),e.createElementVNode("div",{title:v.path,class:e.normalizeClass(["vuefinder__treeview__folder-name text-nowrap",{"vuefinder__treeview__folder-name--active":e.unref(t).fs.path===v.path}])},e.toDisplayString(v.basename),11,_m)],8,pm),e.createElementVNode("div",{class:"vuefinder__treeview__remove-favorite",onClick:m=>i(v)},[e.createVNode(e.unref(Ku),{class:"vuefinder__treeview__remove-icon"})],8,hm)]))),256)),e.unref(t).pinnedFolders.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",gm,[e.createElementVNode("div",km,e.toDisplayString(e.unref(o)("No folders pinned")),1)]))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).fs.data.storages,v=>(e.openBlock(),e.createElementBlock("div",wm,[e.createVNode(lm,{storage:v},null,8,["storage"])]))),256))],512),e.createElementVNode("div",{onMousedown:l,class:e.normalizeClass([(e.unref(t).showTreeView,""),"vuefinder__treeview__resize-handle"])},null,34)],4)],64))}},ym={class:"vuefinder__main__content"},Em={__name:"VueFinder",props:{id:{type:String,default:"vf"},request:{type:[String,Object],required:!0},persist:{type:Boolean,default:!1},path:{type:String,default:""},features:{type:[Array,Boolean],default:!0},debug:{type:Boolean,default:!1},theme:{type:String,default:"system"},locale:{type:String,default:null},maxHeight:{type:String,default:"600px"},maxFileSize:{type:String,default:"10mb"},fullScreen:{type:Boolean,default:!1},showTreeView:{type:Boolean,default:!1},pinnedFolders:{type:Array,default:[]},showThumbnails:{type:Boolean,default:!0},selectButton:{type:Object,default(n){return{active:!1,multiple:!1,click:t=>{},...n}}},onError:{type:Function,default:null},loadingIndicator:{type:String,default:"circular"}},emits:["select","update:path"],setup(n,{emit:t}){const o=t,s=n,r=qs(s,e.inject("VueFinderOptions"));e.provide("ServiceContainer",r);const{setStore:c}=r.storage,a=e.ref(null);r.root=a;const i=r.dragSelect;ba(r);const l=u=>{Object.assign(r.fs.data,u),i.clearSelection(),i.refreshSelection()};let d;r.emitter.on("vf-fetch-abort",()=>{d.abort(),r.fs.loading=!1}),r.emitter.on("vf-fetch",({params:u,body:v=null,onSuccess:m=null,onError:p=null,noCloseModal:k=!1})=>{["index","search"].includes(u.q)&&(d&&d.abort(),r.fs.loading=!0),d=new AbortController;const w=d.signal;r.requester.send({url:"",method:u.m||"get",params:u,body:v,abortSignal:w}).then(E=>{r.fs.adapter=E.adapter,r.persist&&(r.fs.path=E.dirname,c("path",r.fs.path)),k||r.modal.close(),l(E),m&&m(E)}).catch(E=>{console.error(E),p&&p(E)}).finally(()=>{["index","search"].includes(u.q)&&(r.fs.loading=!1)})});function f(u){let v={};u&&u.includes("://")&&(v={adapter:u.split("://")[0],path:u}),r.emitter.emit("vf-fetch",{params:{q:"index",adapter:r.fs.adapter,...v},onError:s.onError??(m=>{m.message&&r.emitter.emit("vf-toast-push",{label:m.message,type:"error"})})})}return e.onMounted(()=>{f(r.fs.path),e.watch(()=>s.path,u=>{f(u)}),i.onSelect(u=>{o("select",u)}),e.watch(()=>r.fs.data.dirname,u=>{o("update:path",u)})}),(u,v)=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder",ref_key:"root",ref:a,tabindex:"0"},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).theme.actualValue)},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r).fullScreen?"vuefinder__main__fixed":"vuefinder__main__relative","vuefinder__main__container"]),style:e.normalizeStyle(e.unref(r).fullScreen?"":"max-height: "+n.maxHeight),onMousedown:v[0]||(v[0]=m=>e.unref(r).emitter.emit("vf-contextmenu-hide")),onTouchstart:v[1]||(v[1]=m=>e.unref(r).emitter.emit("vf-contextmenu-hide"))},[e.createVNode(Gc),e.createVNode(Yi),e.createElementVNode("div",ym,[e.createVNode(bm),e.createVNode(yu)]),e.createVNode(Uu)],38),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.unref(r).modal.visible?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r).modal.type),{key:0})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(Su)],2)],512))}},Vm={install(n,t={}){t.i18n=t.i18n??{};let[o]=Object.keys(t.i18n);t.locale=t.locale??o??"en",n.provide("VueFinderOptions",t),n.component("VueFinder",Em)}};module.exports=Vm; diff --git a/dist/vuefinder.js b/dist/vuefinder.js index af8405aa..b6f64bb9 100644 --- a/dist/vuefinder.js +++ b/dist/vuefinder.js @@ -1,7 +1,7 @@ var er = Object.defineProperty; var tr = (t, e, n) => e in t ? er(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n; var vs = (t, e, n) => tr(t, typeof e != "symbol" ? e + "" : e, n); -import { reactive as yt, watch as He, ref as T, shallowRef as nr, onMounted as Se, onUnmounted as jn, onUpdated as Ls, nextTick as ct, computed as rt, inject as re, openBlock as v, createElementBlock as g, withKeys as kt, unref as o, createElementVNode as r, withModifiers as st, renderSlot as Mt, normalizeClass as le, toDisplayString as b, createBlock as W, resolveDynamicComponent as Fs, withCtx as Q, createVNode as z, Fragment as ge, renderList as xe, createCommentVNode as q, withDirectives as ue, vModelCheckbox as zt, createTextVNode as J, vModelSelect as En, vModelText as xt, onBeforeUnmount as Hs, customRef as sr, vShow as Ue, isRef as or, TransitionGroup as rr, normalizeStyle as rn, mergeModels as lr, useModel as Rs, resolveComponent as ar, provide as ir, Transition as cr } from "vue"; +import { reactive as yt, watch as Me, ref as D, shallowRef as nr, onMounted as Se, onUnmounted as jn, onUpdated as Ls, nextTick as ct, computed as rt, inject as re, openBlock as _, createElementBlock as g, withKeys as kt, unref as o, createElementVNode as l, withModifiers as Ze, renderSlot as Tt, normalizeClass as le, toDisplayString as b, createBlock as W, resolveDynamicComponent as Fs, withCtx as Q, createVNode as z, Fragment as ge, renderList as xe, createCommentVNode as q, withDirectives as ue, vModelCheckbox as zt, createTextVNode as J, vModelSelect as En, vModelText as xt, onBeforeUnmount as Hs, customRef as sr, vShow as Ue, isRef as or, TransitionGroup as rr, normalizeStyle as rn, mergeModels as lr, useModel as Rs, resolveComponent as ar, provide as ir, Transition as cr } from "vue"; import dr from "mitt"; import ur from "dragselect"; import vr from "@uppy/core"; @@ -33,14 +33,14 @@ class pr { * @return {RequestTransformResultInternal} */ transformRequestParams(e) { - const n = this.config, l = {}; - yn != null && yn !== "" && (l[n.xsrfHeaderName] = yn); - const s = Object.assign({}, n.headers, l, e.headers), c = Object.assign({}, n.params, e.params), i = e.body, d = n.baseUrl + e.url, a = e.method; + const n = this.config, r = {}; + yn != null && yn !== "" && (r[n.xsrfHeaderName] = yn); + const s = Object.assign({}, n.headers, r, e.headers), c = Object.assign({}, n.params, e.params), i = e.body, d = n.baseUrl + e.url, a = e.method; let u; - a !== "get" && (i instanceof FormData ? (u = i, n.body != null && Object.entries(this.config.body).forEach(([_, p]) => { - u.append(_, p); + a !== "get" && (i instanceof FormData ? (u = i, n.body != null && Object.entries(this.config.body).forEach(([v, p]) => { + u.append(v, p); })) : (u = { ...i }, n.body != null && Object.assign(u, this.config.body))); - const f = { + const m = { url: d, method: a, headers: s, @@ -48,16 +48,16 @@ class pr { body: u }; if (n.transformRequest != null) { - const _ = n.transformRequest({ + const v = n.transformRequest({ url: d, method: a, headers: s, params: c, body: u }); - _.url != null && (f.url = _.url), _.method != null && (f.method = _.method), _.params != null && (f.params = _.params ?? {}), _.headers != null && (f.headers = _.headers ?? {}), _.body != null && (f.body = _.body); + v.url != null && (m.url = v.url), v.method != null && (m.method = v.method), v.params != null && (m.params = v.params ?? {}), v.headers != null && (m.headers = v.headers ?? {}), v.body != null && (m.body = v.body); } - return f; + return m; } /** * Get download url @@ -70,12 +70,12 @@ class pr { getDownloadUrl(e, n) { if (n.url != null) return n.url; - const l = this.transformRequestParams({ + const r = this.transformRequestParams({ url: "", method: "get", params: { q: "download", adapter: e, path: n.path } }); - return l.url + "?" + new URLSearchParams(l.params).toString(); + return r.url + "?" + new URLSearchParams(r.params).toString(); } /** * Get preview url @@ -88,12 +88,12 @@ class pr { getPreviewUrl(e, n) { if (n.url != null) return n.url; - const l = this.transformRequestParams({ + const r = this.transformRequestParams({ url: "", method: "get", params: { q: "preview", adapter: e, path: n.path } }); - return l.url + "?" + new URLSearchParams(l.params).toString(); + return r.url + "?" + new URLSearchParams(r.params).toString(); } /** * Send request @@ -109,7 +109,7 @@ class pr { * @throws {Record|null} resp json error */ async send(e) { - const n = this.transformRequestParams(e), l = e.responseType || "json", s = { + const n = this.transformRequestParams(e), r = e.responseType || "json", s = { method: e.method, headers: n.headers, signal: e.abortSignal @@ -120,7 +120,7 @@ class pr { } const i = await fetch(c, s); if (i.ok) - return await i[l](); + return await i[r](); throw await i.json(); } } @@ -137,8 +137,8 @@ function hr(t) { function gr(t) { let e = localStorage.getItem(t + "_storage"); const n = yt(JSON.parse(e ?? "{}")); - He(n, l); - function l() { + Me(n, r); + function r() { Object.keys(n).length ? localStorage.setItem(t + "_storage", JSON.stringify(n)) : localStorage.removeItem(t + "_storage"); } function s(a, u) { @@ -156,22 +156,22 @@ async function br(t, e) { const n = e[t]; return typeof n == "function" ? (await n()).default : n; } -function wr(t, e, n, l) { - const { getStore: s, setStore: c } = t, i = T({}), d = T(s("locale", e)), a = (_, p = e) => { - br(_, l).then((m) => { - i.value = m, c("locale", _), d.value = _, c("translations", m), Object.values(l).length > 1 && (n.emit("vf-toast-push", { label: "The language is set to " + _ }), n.emit("vf-language-saved")); - }).catch((m) => { +function wr(t, e, n, r) { + const { getStore: s, setStore: c } = t, i = D({}), d = D(s("locale", e)), a = (v, p = e) => { + br(v, r).then((f) => { + i.value = f, c("locale", v), d.value = v, c("translations", f), Object.values(r).length > 1 && (n.emit("vf-toast-push", { label: "The language is set to " + v }), n.emit("vf-language-saved")); + }).catch((f) => { p ? (n.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), a(p, null)) : n.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" }); }); }; - He(d, (_) => { - a(_); - }), !s("locale") && !l.length ? a(e) : i.value = s("translations"); - const u = (_, ...p) => p.length ? u(_ = _.replace("%s", p.shift()), ...p) : _; - function f(_, ...p) { - return i.value && i.value.hasOwnProperty(_) ? u(i.value[_], ...p) : u(_, ...p); + Me(d, (v) => { + a(v); + }), !s("locale") && !r.length ? a(e) : i.value = s("translations"); + const u = (v, ...p) => p.length ? u(v = v.replace("%s", p.shift()), ...p) : v; + function m(v, ...p) { + return i.value && i.value.hasOwnProperty(v) ? u(i.value[v], ...p) : u(v, ...p); } - return yt({ t: f, locale: d }); + return yt({ t: m, locale: d }); } const de = { EDIT: "edit", @@ -187,27 +187,27 @@ const de = { FULL_SCREEN: "fullscreen", DOWNLOAD: "download", LANGUAGE: "language" -}, yr = Object.values(de), kr = "2.5.16"; -function Bs(t, e, n, l, s) { - return (e = Math, n = e.log, l = 1024, s = n(t) / n(l) | 0, t / e.pow(l, s)).toFixed(0) + " " + (s ? "KMGTPEZY"[--s] + "iB" : "B"); +}, yr = Object.values(de), kr = "2.6.0"; +function Bs(t, e, n, r, s) { + return (e = Math, n = e.log, r = 1024, s = n(t) / n(r) | 0, t / e.pow(r, s)).toFixed(0) + " " + (s ? "KMGTPEZY"[--s] + "iB" : "B"); } -function Is(t, e, n, l, s) { - return (e = Math, n = e.log, l = 1e3, s = n(t) / n(l) | 0, t / e.pow(l, s)).toFixed(0) + " " + (s ? "KMGTPEZY"[--s] + "B" : "B"); +function Is(t, e, n, r, s) { + return (e = Math, n = e.log, r = 1e3, s = n(t) / n(r) | 0, t / e.pow(r, s)).toFixed(0) + " " + (s ? "KMGTPEZY"[--s] + "B" : "B"); } function xr(t) { - const e = { k: 1, m: 2, g: 3, t: 4 }, l = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(t); - return l[1] * Math.pow(1024, e[l[2].toLowerCase()]); + const e = { k: 1, m: 2, g: 3, t: 4 }, r = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(t); + return r[1] * Math.pow(1024, e[r[2].toLowerCase()]); } -const tt = { +const nt = { SYSTEM: "system", LIGHT: "light", DARK: "dark" }; function Sr(t, e) { - const n = T(tt.SYSTEM), l = T(tt.LIGHT); - n.value = t.getStore("theme", e ?? tt.SYSTEM); + const n = D(nt.SYSTEM), r = D(nt.LIGHT); + n.value = t.getStore("theme", e ?? nt.SYSTEM); const s = window.matchMedia("(prefers-color-scheme: dark)"), c = (i) => { - n.value === tt.DARK || n.value === tt.SYSTEM && i.matches ? l.value = tt.DARK : l.value = tt.LIGHT; + n.value === nt.DARK || n.value === nt.SYSTEM && i.matches ? r.value = nt.DARK : r.value = nt.LIGHT; }; return c(s), s.addEventListener("change", c), { /** @@ -217,17 +217,17 @@ function Sr(t, e) { /** * @type {import('vue').Ref} */ - actualValue: l, + actualValue: r, /** * @param {Theme} value */ set(i) { - n.value = i, i !== tt.SYSTEM ? t.setStore("theme", i) : t.removeStore("theme"), c(s); + n.value = i, i !== nt.SYSTEM ? t.setStore("theme", i) : t.removeStore("theme"), c(s); } }; } function $r() { - const t = nr(null), e = T(!1), n = T(); + const t = nr(null), e = D(!1), n = D(); return { visible: e, type: t, data: n, open: (c, i = null) => { document.querySelector("body").style.overflow = "hidden", e.value = !0, t.value = c, n.value = i; }, close: () => { @@ -243,15 +243,15 @@ function $r() { * * Released under the MIT license. */ -const De = (t, e) => { - const { o: n, i: l, u: s } = t; +const Ve = (t, e) => { + const { o: n, i: r, u: s } = t; let c = n, i; - const d = (f, _) => { - const p = c, m = f, h = _ || (l ? !l(p, m) : p !== m); - return (h || s) && (c = m, i = p), [c, h, i]; + const d = (m, v) => { + const p = c, f = m, h = v || (r ? !r(p, f) : p !== f); + return (h || s) && (c = f, i = p), [c, h, i]; }; - return [e ? (f) => d(e(c, i), f) : d, (f) => [c, !!f, i]]; -}, Cr = typeof window < "u" && typeof HTMLElement < "u" && !!window.document, Te = Cr ? window : {}, Ns = Math.max, Er = Math.min, An = Math.round, Jt = Math.abs, _s = Math.sign, Us = Te.cancelAnimationFrame, Gn = Te.requestAnimationFrame, Zt = Te.setTimeout, Mn = Te.clearTimeout, ln = (t) => typeof Te[t] < "u" ? Te[t] : void 0, Ar = ln("MutationObserver"), fs = ln("IntersectionObserver"), Qt = ln("ResizeObserver"), Kt = ln("ScrollTimeline"), Kn = (t) => t === void 0, an = (t) => t === null, ze = (t) => typeof t == "number", Ot = (t) => typeof t == "string", Wn = (t) => typeof t == "boolean", Re = (t) => typeof t == "function", Pe = (t) => Array.isArray(t), en = (t) => typeof t == "object" && !Pe(t) && !an(t), Yn = (t) => { + return [e ? (m) => d(e(c, i), m) : d, (m) => [c, !!m, i]]; +}, Cr = typeof window < "u" && typeof HTMLElement < "u" && !!window.document, De = Cr ? window : {}, Ns = Math.max, Er = Math.min, An = Math.round, Jt = Math.abs, _s = Math.sign, Us = De.cancelAnimationFrame, Gn = De.requestAnimationFrame, Zt = De.setTimeout, Tn = De.clearTimeout, ln = (t) => typeof De[t] < "u" ? De[t] : void 0, Ar = ln("MutationObserver"), fs = ln("IntersectionObserver"), Qt = ln("ResizeObserver"), Kt = ln("ScrollTimeline"), Kn = (t) => t === void 0, an = (t) => t === null, ze = (t) => typeof t == "number", Ot = (t) => typeof t == "string", Wn = (t) => typeof t == "boolean", Re = (t) => typeof t == "function", Pe = (t) => Array.isArray(t), en = (t) => typeof t == "object" && !Pe(t) && !an(t), Yn = (t) => { const e = !!t && t.length, n = ze(e) && e > -1 && e % 1 == 0; return Pe(t) || !Re(t) && n ? e > 0 && en(t) ? e - 1 in t : !0 : !1; }, tn = (t) => !!t && t.constructor === Object, nn = (t) => t instanceof HTMLElement, cn = (t) => t instanceof Element; @@ -262,12 +262,12 @@ function ae(t, e) { else t && ae(Object.keys(t), (n) => e(t[n], n, t)); return t; } -const qs = (t, e) => t.indexOf(e) >= 0, Tt = (t, e) => t.concat(e), me = (t, e, n) => (!Ot(e) && Yn(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), lt = (t) => Array.from(t || []), Xn = (t) => Pe(t) ? t : !Ot(t) && Yn(t) ? lt(t) : [t], Tn = (t) => !!t && !t.length, Dn = (t) => lt(new Set(t)), Le = (t, e, n) => { +const qs = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), me = (t, e, n) => (!Ot(e) && Yn(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), lt = (t) => Array.from(t || []), Xn = (t) => Pe(t) ? t : !Ot(t) && Yn(t) ? lt(t) : [t], Mn = (t) => !!t && !t.length, Dn = (t) => lt(new Set(t)), Fe = (t, e, n) => { ae(t, (s) => s ? s.apply(void 0, e || []) : !0), !n && (t.length = 0); -}, zs = "paddingTop", Ps = "paddingRight", js = "paddingLeft", Gs = "paddingBottom", Ks = "marginLeft", Ws = "marginRight", Ys = "marginBottom", Xs = "overflowX", Js = "overflowY", dn = "width", un = "height", nt = "visible", it = "hidden", gt = "scroll", Mr = (t) => { +}, zs = "paddingTop", Ps = "paddingRight", js = "paddingLeft", Gs = "paddingBottom", Ks = "marginLeft", Ws = "marginRight", Ys = "marginBottom", Xs = "overflowX", Js = "overflowY", dn = "width", un = "height", st = "visible", it = "hidden", gt = "scroll", Tr = (t) => { const e = String(t || ""); return e ? e[0].toUpperCase() + e.slice(1) : ""; -}, vn = (t, e, n, l) => { +}, vn = (t, e, n, r) => { if (t && e) { let s = !0; return ae(n, (c) => { @@ -276,70 +276,70 @@ const qs = (t, e) => t.indexOf(e) >= 0, Tt = (t, e) => t.concat(e), me = (t, e, }), s; } return !1; -}, Zs = (t, e) => vn(t, e, ["w", "h"]), Wt = (t, e) => vn(t, e, ["x", "y"]), Tr = (t, e) => vn(t, e, ["t", "r", "b", "l"]), dt = () => { +}, Zs = (t, e) => vn(t, e, ["w", "h"]), Wt = (t, e) => vn(t, e, ["x", "y"]), Mr = (t, e) => vn(t, e, ["t", "r", "b", "l"]), dt = () => { }, X = (t, ...e) => t.bind(0, ...e), ft = (t) => { let e; - const n = t ? Zt : Gn, l = t ? Mn : Us; + const n = t ? Zt : Gn, r = t ? Tn : Us; return [(s) => { - l(e), e = n(() => s(), Re(t) ? t() : t); - }, () => l(e)]; + r(e), e = n(() => s(), Re(t) ? t() : t); + }, () => r(e)]; }, Vn = (t, e) => { - const { _: n, v: l, p: s, S: c } = e || {}; - let i, d, a, u, f = dt; - const _ = function(w) { - f(), Mn(i), u = i = d = void 0, f = dt, t.apply(this, w); - }, p = (S) => c && d ? c(d, S) : S, m = () => { - f !== dt && _(p(a) || a); + const { _: n, v: r, p: s, S: c } = e || {}; + let i, d, a, u, m = dt; + const v = function(S) { + m(), Tn(i), u = i = d = void 0, m = dt, t.apply(this, S); + }, p = (x) => c && d ? c(d, x) : x, f = () => { + m !== dt && v(p(a) || a); }, h = function() { - const w = lt(arguments), D = Re(n) ? n() : n; - if (ze(D) && D >= 0) { - const A = Re(l) ? l() : l, $ = ze(A) && A >= 0, V = D > 0 ? Zt : Gn, L = D > 0 ? Mn : Us, O = p(w) || w, k = _.bind(0, O); - let y; - f(), s && !u ? (k(), u = !0, y = V(() => u = void 0, D)) : (y = V(k, D), $ && !i && (i = Zt(m, A))), f = () => L(y), d = a = O; + const S = lt(arguments), E = Re(n) ? n() : n; + if (ze(E) && E >= 0) { + const T = Re(r) ? r() : r, $ = ze(T) && T >= 0, V = E > 0 ? Zt : Gn, L = E > 0 ? Tn : Us, O = p(S) || S, y = v.bind(0, O); + let w; + m(), s && !u ? (y(), u = !0, w = V(() => u = void 0, E)) : (w = V(y, E), $ && !i && (i = Zt(f, T))), m = () => L(w), d = a = O; } else - _(w); + v(S); }; - return h.m = m, h; -}, Qs = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Be = (t) => t ? Object.keys(t) : [], oe = (t, e, n, l, s, c, i) => { - const d = [e, n, l, s, c, i]; + return h.m = f, h; +}, Qs = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Be = (t) => t ? Object.keys(t) : [], oe = (t, e, n, r, s, c, i) => { + const d = [e, n, r, s, c, i]; return (typeof t != "object" || an(t)) && !Re(t) && (t = {}), ae(d, (a) => { - ae(a, (u, f) => { - const _ = a[f]; - if (t === _) + ae(a, (u, m) => { + const v = a[m]; + if (t === v) return !0; - const p = Pe(_); - if (_ && tn(_)) { - const m = t[f]; - let h = m; - p && !Pe(m) ? h = [] : !p && !tn(m) && (h = {}), t[f] = oe(h, _); + const p = Pe(v); + if (v && tn(v)) { + const f = t[m]; + let h = f; + p && !Pe(f) ? h = [] : !p && !tn(f) && (h = {}), t[m] = oe(h, v); } else - t[f] = p ? _.slice() : _; + t[m] = p ? v.slice() : v; }); }), t; -}, eo = (t, e) => ae(oe({}, t), (n, l, s) => { - n === void 0 ? delete s[l] : n && tn(n) && (s[l] = eo(n)); +}, eo = (t, e) => ae(oe({}, t), (n, r, s) => { + n === void 0 ? delete s[r] : n && tn(n) && (s[r] = eo(n)); }), Jn = (t) => !Be(t).length, to = (t, e, n) => Ns(t, Er(e, n)), ut = (t) => Dn((Pe(t) ? t : (t || "").split(" ")).filter((e) => e)), Zn = (t, e) => t && t.getAttribute(e), ms = (t, e) => t && t.hasAttribute(e), Xe = (t, e, n) => { - ae(ut(e), (l) => { - t && t.setAttribute(l, String(n || "")); + ae(ut(e), (r) => { + t && t.setAttribute(r, String(n || "")); }); }, Ne = (t, e) => { ae(ut(e), (n) => t && t.removeAttribute(n)); }, _n = (t, e) => { - const n = ut(Zn(t, e)), l = X(Xe, t, e), s = (c, i) => { + const n = ut(Zn(t, e)), r = X(Xe, t, e), s = (c, i) => { const d = new Set(n); return ae(ut(c), (a) => { d[i](a); }), lt(d).join(" "); }; return { - O: (c) => l(s(c, "delete")), - $: (c) => l(s(c, "add")), + O: (c) => r(s(c, "delete")), + $: (c) => r(s(c, "add")), C: (c) => { const i = ut(c); return i.reduce((d, a) => d && n.includes(a), i.length > 0); } }; -}, no = (t, e, n) => (_n(t, e).O(n), X(Qn, t, e, n)), Qn = (t, e, n) => (_n(t, e).$(n), X(no, t, e, n)), sn = (t, e, n, l) => (l ? Qn : no)(t, e, n), es = (t, e, n) => _n(t, e).C(n), so = (t) => _n(t, "class"), oo = (t, e) => { +}, no = (t, e, n) => (_n(t, e).O(n), X(Qn, t, e, n)), Qn = (t, e, n) => (_n(t, e).$(n), X(no, t, e, n)), sn = (t, e, n, r) => (r ? Qn : no)(t, e, n), es = (t, e, n) => _n(t, e).C(n), so = (t) => _n(t, "class"), oo = (t, e) => { so(t).O(e); }, ts = (t, e) => (so(t).$(e), X(oo, t, e)), ro = (t, e) => { const n = e ? cn(e) && e : document; @@ -348,14 +348,14 @@ const qs = (t, e) => t.indexOf(e) >= 0, Tt = (t, e) => t.concat(e), me = (t, e, const n = e ? cn(e) && e : document; return n && n.querySelector(t); }, On = (t, e) => cn(t) && t.matches(e), lo = (t) => On(t, "body"), Ln = (t) => t ? lt(t.childNodes) : [], Dt = (t) => t && t.parentElement, mt = (t, e) => cn(t) && t.closest(e), Fn = (t) => document.activeElement, Vr = (t, e, n) => { - const l = mt(t, e), s = t && Dr(n, l), c = mt(s, e) === l; - return l && s ? l === t || s === t || c && mt(mt(t, n), e) !== l : !1; + const r = mt(t, e), s = t && Dr(n, r), c = mt(s, e) === r; + return r && s ? r === t || s === t || c && mt(mt(t, n), e) !== r : !1; }, bt = (t) => { ae(Xn(t), (e) => { const n = Dt(e); e && n && n.removeChild(e); }); -}, Ve = (t, e) => X(bt, t && e && ae(Xn(e), (n) => { +}, Oe = (t, e) => X(bt, t && e && ae(Xn(e), (n) => { n && t.appendChild(n); })), pt = (t) => { const e = document.createElement("div"); @@ -368,25 +368,25 @@ const qs = (t, e) => t.indexOf(e) >= 0, Tt = (t, e) => t.concat(e), me = (t, e, return isFinite(e) ? e : 0; }, Pt = (t) => io(parseFloat(t || "")), Hn = (t) => Math.round(t * 1e4) / 1e4, co = (t) => `${Hn(io(t))}px`; function Vt(t, e) { - t && e && ae(e, (n, l) => { + t && e && ae(e, (n, r) => { try { const s = t.style, c = an(n) || Wn(n) ? "" : ze(n) ? co(n) : n; - l.indexOf("--") === 0 ? s.setProperty(l, c) : s[l] = c; + r.indexOf("--") === 0 ? s.setProperty(r, c) : s[r] = c; } catch { } }); } -function Ze(t, e, n) { - const l = Ot(e); - let s = l ? "" : {}; +function Qe(t, e, n) { + const r = Ot(e); + let s = r ? "" : {}; if (t) { - const c = Te.getComputedStyle(t, n) || t.style; - s = l ? ps(c, e) : lt(e).reduce((i, d) => (i[d] = ps(c, d), i), s); + const c = De.getComputedStyle(t, n) || t.style; + s = r ? ps(c, e) : lt(e).reduce((i, d) => (i[d] = ps(c, d), i), s); } return s; } const hs = (t, e, n) => { - const l = e ? `${e}-` : "", s = n ? `-${n}` : "", c = `${l}top${s}`, i = `${l}right${s}`, d = `${l}bottom${s}`, a = `${l}left${s}`, u = Ze(t, [c, i, d, a]); + const r = e ? `${e}-` : "", s = n ? `-${n}` : "", c = `${r}top${s}`, i = `${r}right${s}`, d = `${r}bottom${s}`, a = `${r}left${s}`, u = Qe(t, [c, i, d, a]); return { t: Pt(u[c]), r: Pt(u[i]), @@ -399,8 +399,8 @@ const hs = (t, e, n) => { }, fn = (t, e) => e ? { w: e[`${t}Width`], h: e[`${t}Height`] -} : Fr, Hr = (t) => fn("inner", t || Te), ht = X(fn, "offset"), uo = X(fn, "client"), on = X(fn, "scroll"), ns = (t) => { - const e = parseFloat(Ze(t, dn)) || 0, n = parseFloat(Ze(t, un)) || 0; +} : Fr, Hr = (t) => fn("inner", t || De), ht = X(fn, "offset"), uo = X(fn, "client"), on = X(fn, "scroll"), ns = (t) => { + const e = parseFloat(Qe(t, dn)) || 0, n = parseFloat(Qe(t, un)) || 0; return { w: e - An(e), h: n - An(n) @@ -408,29 +408,29 @@ const hs = (t, e, n) => { }, kn = (t) => t.getBoundingClientRect(), Rr = (t) => !!t && Lr(t), Rn = (t) => !!(t && (t[un] || t[dn])), vo = (t, e) => { const n = Rn(t); return !Rn(e) && n; -}, gs = (t, e, n, l) => { +}, gs = (t, e, n, r) => { ae(ut(e), (s) => { - t && t.removeEventListener(s, n, l); + t && t.removeEventListener(s, n, r); }); -}, ve = (t, e, n, l) => { +}, ve = (t, e, n, r) => { var s; - const c = (s = l && l.H) != null ? s : !0, i = l && l.I || !1, d = l && l.A || !1, a = { + const c = (s = r && r.H) != null ? s : !0, i = r && r.I || !1, d = r && r.A || !1, a = { passive: c, capture: i }; - return X(Le, ut(e).map((u) => { - const f = d ? (_) => { - gs(t, u, f, i), n && n(_); + return X(Fe, ut(e).map((u) => { + const m = d ? (v) => { + gs(t, u, m, i), n && n(v); } : n; - return t && t.addEventListener(u, f, a), X(gs, t, u, f, i); + return t && t.addEventListener(u, m, a), X(gs, t, u, m, i); })); }, _o = (t) => t.stopPropagation(), Bn = (t) => t.preventDefault(), fo = (t) => _o(t) || Bn(t), qe = (t, e) => { - const { x: n, y: l } = ze(e) ? { + const { x: n, y: r } = ze(e) ? { x: e, y: e } : e || {}; - ze(n) && (t.scrollLeft = n), ze(l) && (t.scrollTop = l); -}, Oe = (t) => ({ + ze(n) && (t.scrollLeft = n), ze(r) && (t.scrollTop = r); +}, Le = (t) => ({ x: t.scrollLeft, y: t.scrollTop }), mo = () => ({ @@ -443,14 +443,14 @@ const hs = (t, e, n) => { y: 0 } }), Br = (t, e) => { - const { D: n, M: l } = t, { w: s, h: c } = e, i = (_, p, m) => { - let h = _s(_) * m, S = _s(p) * m; - if (h === S) { - const w = Jt(_), D = Jt(p); - S = w > D ? 0 : S, h = w < D ? 0 : h; + const { D: n, M: r } = t, { w: s, h: c } = e, i = (v, p, f) => { + let h = _s(v) * f, x = _s(p) * f; + if (h === x) { + const S = Jt(v), E = Jt(p); + x = S > E ? 0 : x, h = S < E ? 0 : h; } - return h = h === S ? 0 : h, [h + 0, S + 0]; - }, [d, a] = i(n.x, l.x, s), [u, f] = i(n.y, l.y, c); + return h = h === x ? 0 : h, [h + 0, x + 0]; + }, [d, a] = i(n.x, r.x, s), [u, m] = i(n.y, r.y, c); return { D: { x: d, @@ -458,20 +458,20 @@ const hs = (t, e, n) => { }, M: { x: a, - y: f + y: m } }; }, bs = ({ D: t, M: e }) => { - const n = (l, s) => l === 0 && l <= s; + const n = (r, s) => r === 0 && r <= s; return { x: n(t.x, e.x), y: n(t.y, e.y) }; }, ws = ({ D: t, M: e }, n) => { - const l = (s, c, i) => to(0, 1, (s - i) / (s - c) || 0); + const r = (s, c, i) => to(0, 1, (s - i) / (s - c) || 0); return { - x: l(t.x, e.x, n.x), - y: l(t.y, e.y, n.y) + x: r(t.x, e.x, n.x), + y: r(t.y, e.y, n.y) }; }, In = (t) => { t && t.focus && t.focus({ @@ -490,30 +490,30 @@ const hs = (t, e, n) => { e.forEach((d) => { d.clear(); }), e.clear(); - }, l = (c, i) => { + }, r = (c, i) => { if (Ot(c)) { const u = e.get(c) || /* @__PURE__ */ new Set(); - return e.set(c, u), ys((f) => { - Re(f) && u.add(f); + return e.set(c, u), ys((m) => { + Re(m) && u.add(m); }, i), X(n, c, i); } Wn(i) && i && n(); const d = Be(c), a = []; return ae(d, (u) => { - const f = c[u]; - f && me(a, l(u, f)); - }), X(Le, a); + const m = c[u]; + m && me(a, r(u, m)); + }), X(Fe, a); }, s = (c, i) => { ae(lt(e.get(c)), (d) => { - i && !Tn(i) ? d.apply(0, i) : d(); + i && !Mn(i) ? d.apply(0, i) : d(); }); }; - return l(t || {}), [l, n, s]; + return r(t || {}), [r, n, s]; }, ks = (t) => JSON.stringify(t, (e, n) => { if (Re(n)) throw 0; return n; -}), xs = (t, e) => t ? `${e}`.split(".").reduce((n, l) => n && Qs(n, l) ? n[l] : void 0, t) : void 0, Ir = { +}), xs = (t, e) => t ? `${e}`.split(".").reduce((n, r) => n && Qs(n, r) ? n[r] : void 0, t) : void 0, Ir = { paddingAbsolute: !1, showNativeOverlaidScrollbars: !1, update: { @@ -537,8 +537,8 @@ const hs = (t, e, n) => { pointers: ["mouse", "touch", "pen"] } }, po = (t, e) => { - const n = {}, l = Tt(Be(e), Be(t)); - return ae(l, (s) => { + const n = {}, r = Mt(Be(e), Be(t)); + return ae(r, (s) => { const c = t[s], i = e[s]; if (en(c) && en(i)) oe(n[s] = {}, po(c, i)), Jn(n[s]) && delete n[s]; @@ -552,7 +552,7 @@ const hs = (t, e, n) => { d && (n[s] = i); } }), n; -}, Ss = (t, e, n) => (l) => [xs(t, l), n || xs(e, l) !== void 0], St = "data-overlayscrollbars", Yt = "os-environment", jt = `${Yt}-scrollbar-hidden`, xn = `${St}-initialize`, Xt = "noClipping", $s = `${St}-body`, ot = St, Nr = "host", Je = `${St}-viewport`, Ur = Xs, qr = Js, zr = "arrange", ho = "measuring", Pr = "scrolling", go = "scrollbarHidden", jr = "noContent", Un = `${St}-padding`, Cs = `${St}-content`, ss = "os-size-observer", Gr = `${ss}-appear`, Kr = `${ss}-listener`, Wr = "os-trinsic-observer", Yr = "os-theme-none", Fe = "os-scrollbar", Xr = `${Fe}-rtl`, Jr = `${Fe}-horizontal`, Zr = `${Fe}-vertical`, bo = `${Fe}-track`, os = `${Fe}-handle`, Qr = `${Fe}-visible`, el = `${Fe}-cornerless`, Es = `${Fe}-interaction`, As = `${Fe}-unusable`, qn = `${Fe}-auto-hide`, Ms = `${qn}-hidden`, Ts = `${Fe}-wheel`, tl = `${bo}-interactive`, nl = `${os}-interactive`; +}, Ss = (t, e, n) => (r) => [xs(t, r), n || xs(e, r) !== void 0], St = "data-overlayscrollbars", Yt = "os-environment", jt = `${Yt}-scrollbar-hidden`, xn = `${St}-initialize`, Xt = "noClipping", $s = `${St}-body`, ot = St, Nr = "host", Je = `${St}-viewport`, Ur = Xs, qr = Js, zr = "arrange", ho = "measuring", Pr = "scrolling", go = "scrollbarHidden", jr = "noContent", Un = `${St}-padding`, Cs = `${St}-content`, ss = "os-size-observer", Gr = `${ss}-appear`, Kr = `${ss}-listener`, Wr = "os-trinsic-observer", Yr = "os-theme-none", He = "os-scrollbar", Xr = `${He}-rtl`, Jr = `${He}-horizontal`, Zr = `${He}-vertical`, bo = `${He}-track`, os = `${He}-handle`, Qr = `${He}-visible`, el = `${He}-cornerless`, Es = `${He}-interaction`, As = `${He}-unusable`, qn = `${He}-auto-hide`, Ts = `${qn}-hidden`, Ms = `${He}-wheel`, tl = `${bo}-interactive`, nl = `${os}-interactive`; let wo; const sl = () => wo, ol = (t) => { wo = t; @@ -560,33 +560,33 @@ const sl = () => wo, ol = (t) => { let Sn; const rl = () => { const t = ($, V, L) => { - Ve(document.body, $), Ve(document.body, $); - const P = uo($), O = ht($), k = ns(V); + Oe(document.body, $), Oe(document.body, $); + const P = uo($), O = ht($), y = ns(V); return L && bt($), { - x: O.h - P.h + k.h, - y: O.w - P.w + k.w + x: O.h - P.h + y.h, + y: O.w - P.w + y.w }; }, e = ($) => { let V = !1; const L = ts($, jt); try { - V = Ze($, "scrollbar-width") === "none" || Ze($, "display", "::-webkit-scrollbar") === "none"; + V = Qe($, "scrollbar-width") === "none" || Qe($, "display", "::-webkit-scrollbar") === "none"; } catch { } return L(), V; }, n = `.${Yt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Yt} div{width:200%;height:200%;margin:10px 0}.${jt}{scrollbar-width:none!important}.${jt}::-webkit-scrollbar,.${jt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, s = ao(`
`)[0], c = s.firstChild, i = s.lastChild, d = sl(); d && (i.nonce = d); - const [a, , u] = Nn(), [f, _] = De({ + const [a, , u] = Nn(), [m, v] = Ve({ o: t(s, c), i: Wt - }, X(t, s, c, !0)), [p] = _(), m = e(s), h = { + }, X(t, s, c, !0)), [p] = v(), f = e(s), h = { x: p.x === 0, y: p.y === 0 - }, S = { + }, x = { elements: { host: null, - padding: !m, - viewport: ($) => m && lo($) && $, + padding: !f, + viewport: ($) => f && lo($) && $, content: !1 }, scrollbars: { @@ -596,24 +596,24 @@ const rl = () => { nativeScrollbarsOverlaid: !1, body: null } - }, w = oe({}, Ir), D = X(oe, {}, w), R = X(oe, {}, S), A = { + }, S = oe({}, Ir), E = X(oe, {}, S), R = X(oe, {}, x), T = { T: p, k: h, - R: m, + R: f, V: !!Kt, L: X(a, "r"), U: R, - P: ($) => oe(S, $) && R(), - N: D, - q: ($) => oe(w, $) && D(), - B: oe({}, S), - F: oe({}, w) + P: ($) => oe(x, $) && R(), + N: E, + q: ($) => oe(S, $) && E(), + B: oe({}, x), + F: oe({}, S) }; - if (Ne(s, "style"), bt(s), ve(Te, "resize", () => { + if (Ne(s, "style"), bt(s), ve(De, "resize", () => { u("r", []); - }), Re(Te.matchMedia) && !m && (!h.x || !h.y)) { + }), Re(De.matchMedia) && !f && (!h.x || !h.y)) { const $ = (V) => { - const L = Te.matchMedia(`(resolution: ${Te.devicePixelRatio}dppx)`); + const L = De.matchMedia(`(resolution: ${De.devicePixelRatio}dppx)`); ve(L, "change", () => { V(), $(V); }, { @@ -621,75 +621,75 @@ const rl = () => { }); }; $(() => { - const [V, L] = f(); - oe(A.T, V), u("r", [L]); + const [V, L] = m(); + oe(T.T, V), u("r", [L]); }); } - return A; -}, Ge = () => (Sn || (Sn = rl()), Sn), yo = (t, e) => Re(e) ? e.apply(0, t) : e, ll = (t, e, n, l) => { - const s = Kn(l) ? n : l; + return T; +}, Ge = () => (Sn || (Sn = rl()), Sn), yo = (t, e) => Re(e) ? e.apply(0, t) : e, ll = (t, e, n, r) => { + const s = Kn(r) ? n : r; return yo(t, s) || e.apply(0, t); -}, ko = (t, e, n, l) => { - const s = Kn(l) ? n : l, c = yo(t, s); +}, ko = (t, e, n, r) => { + const s = Kn(r) ? n : r, c = yo(t, s); return !!c && (nn(c) ? c : e.apply(0, t)); }, al = (t, e) => { - const { nativeScrollbarsOverlaid: n, body: l } = e || {}, { k: s, R: c, U: i } = Ge(), { nativeScrollbarsOverlaid: d, body: a } = i().cancel, u = n ?? d, f = Kn(l) ? a : l, _ = (s.x || s.y) && u, p = t && (an(f) ? !c : f); - return !!_ || !!p; + const { nativeScrollbarsOverlaid: n, body: r } = e || {}, { k: s, R: c, U: i } = Ge(), { nativeScrollbarsOverlaid: d, body: a } = i().cancel, u = n ?? d, m = Kn(r) ? a : r, v = (s.x || s.y) && u, p = t && (an(m) ? !c : m); + return !!v || !!p; }, rs = /* @__PURE__ */ new WeakMap(), il = (t, e) => { rs.set(t, e); }, cl = (t) => { rs.delete(t); }, xo = (t) => rs.get(t), dl = (t, e, n) => { - let l = !1; + let r = !1; const s = n ? /* @__PURE__ */ new WeakMap() : !1, c = () => { - l = !0; + r = !0; }, i = (d) => { if (s && n) { const a = n.map((u) => { - const [f, _] = u || []; - return [_ && f ? (d || ro)(f, t) : [], _]; + const [m, v] = u || []; + return [v && m ? (d || ro)(m, t) : [], v]; }); - ae(a, (u) => ae(u[0], (f) => { - const _ = u[1], p = s.get(f) || []; - if (t.contains(f) && _) { - const h = ve(f, _, (S) => { - l ? (h(), s.delete(f)) : e(S); + ae(a, (u) => ae(u[0], (m) => { + const v = u[1], p = s.get(m) || []; + if (t.contains(m) && v) { + const h = ve(m, v, (x) => { + r ? (h(), s.delete(m)) : e(x); }); - s.set(f, me(p, h)); + s.set(m, me(p, h)); } else - Le(p), s.delete(f); + Fe(p), s.delete(m); })); } }; return i(), [c, i]; -}, Ds = (t, e, n, l) => { +}, Ds = (t, e, n, r) => { let s = !1; - const { j: c, X: i, Y: d, W: a, J: u, G: f } = l || {}, _ = Vn(() => s && n(!0), { + const { j: c, X: i, Y: d, W: a, J: u, G: m } = r || {}, v = Vn(() => s && n(!0), { _: 33, v: 99 - }), [p, m] = dl(t, _, d), h = c || [], S = i || [], w = Tt(h, S), D = (A, $) => { - if (!Tn($)) { - const V = u || dt, L = f || dt, P = [], O = []; - let k = !1, y = !1; + }), [p, f] = dl(t, v, d), h = c || [], x = i || [], S = Mt(h, x), E = (T, $) => { + if (!Mn($)) { + const V = u || dt, L = m || dt, P = [], O = []; + let y = !1, w = !1; if (ae($, (C) => { - const { attributeName: E, target: B, type: x, oldValue: N, addedNodes: U, removedNodes: ee } = C, se = x === "attributes", ne = x === "childList", pe = t === B, F = se && E, H = F && Zn(B, E || ""), I = Ot(H) ? H : null, j = F && N !== I, M = qs(S, E) && j; + const { attributeName: A, target: B, type: k, oldValue: N, addedNodes: U, removedNodes: ee } = C, se = k === "attributes", ne = k === "childList", pe = t === B, F = se && A, H = F && Zn(B, A || ""), I = Ot(H) ? H : null, j = F && N !== I, M = qs(x, A) && j; if (e && (ne || !pe)) { - const K = se && j, G = K && a && On(B, a), te = (G ? !V(B, E, N, I) : !se || K) && !L(C, !!G, t, l); - ae(U, (ie) => me(P, ie)), ae(ee, (ie) => me(P, ie)), y = y || te; + const K = se && j, G = K && a && On(B, a), te = (G ? !V(B, A, N, I) : !se || K) && !L(C, !!G, t, r); + ae(U, (ie) => me(P, ie)), ae(ee, (ie) => me(P, ie)), w = w || te; } - !e && pe && j && !V(B, E, N, I) && (me(O, E), k = k || M); - }), m((C) => Dn(P).reduce((E, B) => (me(E, ro(C, B)), On(B, C) ? me(E, B) : E), [])), e) - return !A && y && n(!1), [!1]; - if (!Tn(O) || k) { - const C = [Dn(O), k]; - return !A && n.apply(0, C), C; + !e && pe && j && !V(B, A, N, I) && (me(O, A), y = y || M); + }), f((C) => Dn(P).reduce((A, B) => (me(A, ro(C, B)), On(B, C) ? me(A, B) : A), [])), e) + return !T && w && n(!1), [!1]; + if (!Mn(O) || y) { + const C = [Dn(O), y]; + return !T && n.apply(0, C), C; } } - }, R = new Ar(X(D, !1)); + }, R = new Ar(X(E, !1)); return [() => (R.observe(t, { attributes: !0, attributeOldValue: !0, - attributeFilter: w, + attributeFilter: S, subtree: e, childList: e, characterData: e @@ -697,75 +697,75 @@ const rl = () => { s && (p(), R.disconnect(), s = !1); }), () => { if (s) - return _.m(), D(!0, R.takeRecords()); + return v.m(), E(!0, R.takeRecords()); }]; }, So = {}, $o = {}, ul = (t) => { - ae(t, (e) => ae(e, (n, l) => { - So[l] = e[l]; + ae(t, (e) => ae(e, (n, r) => { + So[r] = e[r]; })); -}, Co = (t, e, n) => Be(t).map((l) => { - const { static: s, instance: c } = t[l], [i, d, a] = n || [], u = n ? c : s; +}, Co = (t, e, n) => Be(t).map((r) => { + const { static: s, instance: c } = t[r], [i, d, a] = n || [], u = n ? c : s; if (u) { - const f = n ? u(i, d, e) : u(e); - return (a || $o)[l] = f; + const m = n ? u(i, d, e) : u(e); + return (a || $o)[r] = m; } }), Lt = (t) => $o[t], vl = "__osOptionsValidationPlugin", _l = "__osSizeObserverPlugin", fl = (t, e) => { - const { k: n } = e, [l, s] = t("showNativeOverlaidScrollbars"); - return [l && n.x && n.y, s]; -}, wt = (t) => t.indexOf(nt) === 0, ml = (t, e) => { + const { k: n } = e, [r, s] = t("showNativeOverlaidScrollbars"); + return [r && n.x && n.y, s]; +}, wt = (t) => t.indexOf(st) === 0, ml = (t, e) => { const n = (s, c, i, d) => { - const a = s === nt ? it : s.replace(`${nt}-`, ""), u = wt(s), f = wt(i); - return !c && !d ? it : u && f ? nt : u ? c && d ? a : c ? nt : it : c ? a : f && d ? nt : it; - }, l = { + const a = s === st ? it : s.replace(`${st}-`, ""), u = wt(s), m = wt(i); + return !c && !d ? it : u && m ? st : u ? c && d ? a : c ? st : it : c ? a : m && d ? st : it; + }, r = { x: n(e.x, t.x, e.y, t.y), y: n(e.y, t.y, e.x, t.x) }; return { - K: l, + K: r, Z: { - x: l.x === gt, - y: l.y === gt + x: r.x === gt, + y: r.y === gt } }; }, Eo = "__osScrollbarsHidingPlugin", pl = "__osClickScrollPlugin", Ao = (t, e, n) => { - const { dt: l } = n || {}, s = Lt(_l), [c] = De({ + const { dt: r } = n || {}, s = Lt(_l), [c] = Ve({ o: !1, u: !0 }); return () => { - const i = [], a = ao(`
`)[0], u = a.firstChild, f = (_) => { - const p = _ instanceof ResizeObserverEntry; - let m = !1, h = !1; + const i = [], a = ao(`
`)[0], u = a.firstChild, m = (v) => { + const p = v instanceof ResizeObserverEntry; + let f = !1, h = !1; if (p) { - const [S, , w] = c(_.contentRect), D = Rn(S); - h = vo(S, w), m = !h && !D; + const [x, , S] = c(v.contentRect), E = Rn(x); + h = vo(x, S), f = !h && !E; } else - h = _ === !0; - m || e({ + h = v === !0; + f || e({ ft: !0, dt: h }); }; if (Qt) { - const _ = new Qt((p) => f(p.pop())); - _.observe(u), me(i, () => { - _.disconnect(); + const v = new Qt((p) => m(p.pop())); + v.observe(u), me(i, () => { + v.disconnect(); }); } else if (s) { - const [_, p] = s(u, f, l); - me(i, Tt([ts(a, Gr), ve(a, "animationstart", _)], p)); + const [v, p] = s(u, m, r); + me(i, Mt([ts(a, Gr), ve(a, "animationstart", v)], p)); } else return dt; - return X(Le, me(i, Ve(t, a))); + return X(Fe, me(i, Oe(t, a))); }; }, hl = (t, e) => { let n; - const l = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = pt(Wr), [c] = De({ + const r = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = pt(Wr), [c] = Ve({ o: !1 }), i = (a, u) => { if (a) { - const f = c(l(a)), [, _] = f; - return _ && !u && e(f) && [f]; + const m = c(r(a)), [, v] = m; + return v && !u && e(m) && [m]; } }, d = (a, u) => i(u.pop(), a); return [() => { @@ -778,53 +778,53 @@ const rl = () => { }); else { const u = () => { - const f = ht(s); - i(f); + const m = ht(s); + i(m); }; me(a, Ao(s, u)()), u(); } - return X(Le, me(a, Ve(t, s))); + return X(Fe, me(a, Oe(t, s))); }, () => n && d(!0, n.takeRecords())]; -}, gl = (t, e, n, l) => { +}, gl = (t, e, n, r) => { let s, c, i, d, a, u; - const f = `[${ot}]`, _ = `[${Je}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { vt: m, ht: h, ot: S, gt: w, bt: D, nt: R, wt: A, yt: $, St: V, Ot: L } = t, P = (M) => Ze(M, "direction") === "rtl", O = { + const m = `[${ot}]`, v = `[${Je}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { vt: f, ht: h, ot: x, gt: S, bt: E, nt: R, wt: T, yt: $, St: V, Ot: L } = t, P = (M) => Qe(M, "direction") === "rtl", O = { $t: !1, - ct: P(m) - }, k = Ge(), y = Lt(Eo), [C] = De({ + ct: P(f) + }, y = Ge(), w = Lt(Eo), [C] = Ve({ i: Zs, o: { w: 0, h: 0 } }, () => { - const M = y && y.tt(t, e, O, k, n).ut, G = !(A && R) && es(h, ot, Xt), Y = !R && $(zr), te = Y && Oe(w), ie = te && L(), be = V(ho, G), _e = Y && M && M()[0], $e = on(S), Z = ns(S); - return _e && _e(), qe(w, te), ie && ie(), G && be(), { + const M = w && w.tt(t, e, O, y, n).ut, G = !(T && R) && es(h, ot, Xt), Y = !R && $(zr), te = Y && Le(S), ie = te && L(), be = V(ho, G), _e = Y && M && M()[0], $e = on(x), Z = ns(x); + return _e && _e(), qe(S, te), ie && ie(), G && be(), { w: $e.w + Z.w, h: $e.h + Z.h }; - }), E = Vn(l, { + }), A = Vn(r, { _: () => s, v: () => c, S(M, K) { const [G] = M, [Y] = K; - return [Tt(Be(G), Be(Y)).reduce((te, ie) => (te[ie] = G[ie] || Y[ie], te), {})]; + return [Mt(Be(G), Be(Y)).reduce((te, ie) => (te[ie] = G[ie] || Y[ie], te), {})]; } }), B = (M) => { - const K = P(m); + const K = P(f); oe(M, { Ct: u !== K }), oe(O, { ct: K }), u = K; - }, x = (M, K) => { + }, k = (M, K) => { const [G, Y] = M, te = { xt: Y }; return oe(O, { $t: G - }), !K && l(te), te; + }), !K && r(te), te; }, N = ({ ft: M, dt: K }) => { - const Y = !(M && !K) && k.R ? E : l, te = { + const Y = !(M && !K) && y.R ? A : r, te = { ft: M || K, dt: K }; @@ -833,13 +833,13 @@ const rl = () => { const [, G] = C(), Y = { Ht: G }; - return B(Y), G && !K && (M ? l : E)(Y), Y; + return B(Y), G && !K && (M ? r : A)(Y), Y; }, ee = (M, K, G) => { const Y = { Et: K }; - return B(Y), K && !G && E(Y), Y; - }, [se, ne] = D ? hl(h, x) : [], pe = !R && Ao(h, N, { + return B(Y), K && !G && A(Y), Y; + }, [se, ne] = E ? hl(h, k) : [], pe = !R && Ao(h, N, { dt: !0 }), [F, H] = Ds(h, !1, ee, { X: p, @@ -852,7 +852,7 @@ const rl = () => { }), a = K; }), j = Vn(() => { const [, M] = C(); - l({ + r({ Ht: M }); }, { @@ -861,8 +861,8 @@ const rl = () => { }); return [() => { I && I.observe(h); - const M = pe && pe(), K = se && se(), G = F(), Y = k.L((te) => { - te ? E({ + const M = pe && pe(), K = se && se(), G = F(), Y = y.L((te) => { + te ? A({ zt: te }) : j(); }); @@ -873,30 +873,30 @@ const rl = () => { const Y = {}, [te] = M("update.ignoreMutation"), [ie, be] = M("update.attributes"), [_e, $e] = M("update.elementEvents"), [Z, Ce] = M("update.debounce"), Ae = $e || be, ye = K || G, Ee = (he) => Re(te) && te(he); if (Ae) { i && i(), d && d(); - const [he, we] = Ds(D || S, !0, U, { - j: Tt(p, ie || []), + const [he, we] = Ds(E || x, !0, U, { + j: Mt(p, ie || []), Y: _e, - W: f, + W: m, G: (ce, fe) => { - const { target: ke, attributeName: Me } = ce; - return (!fe && Me && !R ? Vr(ke, f, _) : !1) || !!mt(ke, `.${Fe}`) || !!Ee(ce); + const { target: ke, attributeName: Te } = ce; + return (!fe && Te && !R ? Vr(ke, m, v) : !1) || !!mt(ke, `.${He}`) || !!Ee(ce); } }); d = he(), i = we; } if (Ce) - if (E.m(), Pe(Z)) { + if (A.m(), Pe(Z)) { const he = Z[0], we = Z[1]; s = ze(he) && he, c = ze(we) && we; } else ze(Z) ? (s = Z, c = !1) : (s = !1, c = !1); if (ye) { const he = H(), we = ne && ne(), ce = i && i(); - he && oe(Y, ee(he[0], he[1], ye)), we && oe(Y, x(we[0], ye)), ce && oe(Y, U(ce[0], ye)); + he && oe(Y, ee(he[0], he[1], ye)), we && oe(Y, k(we[0], ye)), ce && oe(Y, U(ce[0], ye)); } return B(Y), Y; }, O]; -}, bl = (t, e, n, l) => { - const s = "--os-viewport-percent", c = "--os-scroll-percent", i = "--os-scroll-direction", { U: d } = Ge(), { scrollbars: a } = d(), { slot: u } = a, { vt: f, ht: _, ot: p, Mt: m, gt: h, wt: S, nt: w } = e, { scrollbars: D } = m ? {} : t, { slot: R } = D || {}, A = [], $ = [], V = [], L = ko([f, _, p], () => w && S ? f : _, u, R), P = (F) => { +}, bl = (t, e, n, r) => { + const s = "--os-viewport-percent", c = "--os-scroll-percent", i = "--os-scroll-direction", { U: d } = Ge(), { scrollbars: a } = d(), { slot: u } = a, { vt: m, ht: v, ot: p, Mt: f, gt: h, wt: x, nt: S } = e, { scrollbars: E } = f ? {} : t, { slot: R } = E || {}, T = [], $ = [], V = [], L = ko([m, v, p], () => S && x ? m : v, u, R), P = (F) => { if (Kt) { const H = new Kt({ source: h, @@ -917,13 +917,13 @@ const rl = () => { }, O = { x: P("x"), y: P("y") - }, k = () => { + }, y = () => { const { Rt: F, Vt: H } = n, I = (j, M) => to(0, 1, j / (j + M) || 0); return { x: I(H.x, F.x), y: I(H.y, F.y) }; - }, y = (F, H, I) => { + }, w = (F, H, I) => { const j = I ? ts : oo; ae(F, (M) => { j(M.Tt, H); @@ -933,17 +933,17 @@ const rl = () => { const [j, M] = H(I); Vt(j, M); }); - }, E = (F, H, I) => { + }, A = (F, H, I) => { const j = Wn(I), M = j ? I : !0, K = j ? !I : !0; - M && y($, F, H), K && y(V, F, H); + M && w($, F, H), K && w(V, F, H); }, B = () => { - const F = k(), H = (I) => (j) => [j.Tt, { + const F = y(), H = (I) => (j) => [j.Tt, { [s]: Hn(I) + "" }]; C($, H(F.x)), C(V, H(F.y)); - }, x = () => { + }, k = () => { if (!Kt) { - const { Lt: F } = n, H = ws(F, Oe(h)), I = (j) => (M) => [M.Tt, { + const { Lt: F } = n, H = ws(F, Le(h)), I = (j) => (M) => [M.Tt, { [c]: Hn(j) + "" }]; C($, I(H.x)), C(V, I(H.y)); @@ -954,8 +954,8 @@ const rl = () => { }]; C($, I(H.x)), C(V, I(H.y)); }, U = () => { - if (w && !S) { - const { Rt: F, Lt: H } = n, I = bs(H), j = ws(H, Oe(h)), M = (K) => { + if (S && !x) { + const { Rt: F, Lt: H } = n, I = bs(H), j = ws(H, Le(h)), M = (K) => { const { Tt: G } = K, Y = Dt(G) === p && G, te = (ie, be, _e) => { const $e = be * ie; return co(_e ? $e : -$e); @@ -970,19 +970,19 @@ const rl = () => { C($, M), C(V, M); } }, ee = (F) => { - const H = F ? "x" : "y", j = pt(`${Fe} ${F ? Jr : Zr}`), M = pt(bo), K = pt(os), G = { + const H = F ? "x" : "y", j = pt(`${He} ${F ? Jr : Zr}`), M = pt(bo), K = pt(os), G = { Tt: j, Ut: M, Pt: K }, Y = O[H]; - return me(F ? $ : V, G), me(A, [Ve(j, M), Ve(M, K), X(bt, j), Y && Y.kt(G), l(G, E, F)]), G; - }, se = X(ee, !0), ne = X(ee, !1), pe = () => (Ve(L, $[0].Tt), Ve(L, V[0].Tt), X(Le, A)); + return me(F ? $ : V, G), me(T, [Oe(j, M), Oe(M, K), X(bt, j), Y && Y.kt(G), r(G, A, F)]), G; + }, se = X(ee, !0), ne = X(ee, !1), pe = () => (Oe(L, $[0].Tt), Oe(L, V[0].Tt), X(Fe, T)); return se(), ne(), [{ Nt: B, - qt: x, + qt: k, Bt: N, Ft: U, - jt: E, + jt: A, Xt: { Yt: $, Wt: se, @@ -994,192 +994,192 @@ const rl = () => { Jt: X(C, V) } }, pe]; -}, wl = (t, e, n, l) => (s, c, i) => { - const { ht: d, ot: a, nt: u, gt: f, Kt: _, Ot: p } = e, { Tt: m, Ut: h, Pt: S } = s, [w, D] = ft(333), [R, A] = ft(444), $ = (P) => { - Re(f.scrollBy) && f.scrollBy({ +}, wl = (t, e, n, r) => (s, c, i) => { + const { ht: d, ot: a, nt: u, gt: m, Kt: v, Ot: p } = e, { Tt: f, Ut: h, Pt: x } = s, [S, E] = ft(333), [R, T] = ft(444), $ = (P) => { + Re(m.scrollBy) && m.scrollBy({ behavior: "smooth", left: P.x, top: P.y }); }, V = () => { - const P = "pointerup pointercancel lostpointercapture", O = `client${i ? "X" : "Y"}`, k = i ? dn : un, y = i ? "left" : "top", C = i ? "w" : "h", E = i ? "x" : "y", B = (N, U) => (ee) => { - const { Rt: se } = n, ne = ht(h)[C] - ht(S)[C], F = U * ee / ne * se[E]; - qe(f, { - [E]: N + F + const P = "pointerup pointercancel lostpointercapture", O = `client${i ? "X" : "Y"}`, y = i ? dn : un, w = i ? "left" : "top", C = i ? "w" : "h", A = i ? "x" : "y", B = (N, U) => (ee) => { + const { Rt: se } = n, ne = ht(h)[C] - ht(x)[C], F = U * ee / ne * se[A]; + qe(m, { + [A]: N + F }); - }, x = []; + }, k = []; return ve(h, "pointerdown", (N) => { - const U = mt(N.target, `.${os}`) === S, ee = U ? S : h, se = t.scrollbars, ne = se[U ? "dragScroll" : "clickScroll"], { button: pe, isPrimary: F, pointerType: H } = N, { pointers: I } = se; + const U = mt(N.target, `.${os}`) === x, ee = U ? x : h, se = t.scrollbars, ne = se[U ? "dragScroll" : "clickScroll"], { button: pe, isPrimary: F, pointerType: H } = N, { pointers: I } = se; if (pe === 0 && F && ne && (I || []).includes(H)) { - Le(x), A(); - const M = !U && (N.shiftKey || ne === "instant"), K = X(kn, S), G = X(kn, h), Y = (fe, ke) => (fe || K())[y] - (ke || G())[y], te = An(kn(f)[k]) / ht(f)[C] || 1, ie = B(Oe(f)[E], 1 / te), be = N[O], _e = K(), $e = G(), Z = _e[k], Ce = Y(_e, $e) + Z / 2, Ae = be - $e[y], ye = U ? 0 : Ae - Ce, Ee = (fe) => { - Le(ce), ee.releasePointerCapture(fe.pointerId); - }, he = U || M, we = p(), ce = [ve(_, P, Ee), ve(_, "selectstart", (fe) => Bn(fe), { + Fe(k), T(); + const M = !U && (N.shiftKey || ne === "instant"), K = X(kn, x), G = X(kn, h), Y = (fe, ke) => (fe || K())[w] - (ke || G())[w], te = An(kn(m)[y]) / ht(m)[C] || 1, ie = B(Le(m)[A], 1 / te), be = N[O], _e = K(), $e = G(), Z = _e[y], Ce = Y(_e, $e) + Z / 2, Ae = be - $e[w], ye = U ? 0 : Ae - Ce, Ee = (fe) => { + Fe(ce), ee.releasePointerCapture(fe.pointerId); + }, he = U || M, we = p(), ce = [ve(v, P, Ee), ve(v, "selectstart", (fe) => Bn(fe), { H: !1 }), ve(h, P, Ee), he && ve(h, "pointermove", (fe) => ie(ye + (fe[O] - be))), he && (() => { - const fe = Oe(f); + const fe = Le(m); we(); - const ke = Oe(f), Me = { + const ke = Le(m), Te = { x: ke.x - fe.x, y: ke.y - fe.y }; - (Jt(Me.x) > 3 || Jt(Me.y) > 3) && (p(), qe(f, fe), $(Me), R(we)); + (Jt(Te.x) > 3 || Jt(Te.y) > 3) && (p(), qe(m, fe), $(Te), R(we)); })]; if (ee.setPointerCapture(N.pointerId), M) ie(ye); else if (!U) { const fe = Lt(pl); if (fe) { - const ke = fe(ie, ye, Z, (Me) => { - Me ? we() : me(ce, we); + const ke = fe(ie, ye, Z, (Te) => { + Te ? we() : me(ce, we); }); - me(ce, ke), me(x, X(ke, !0)); + me(ce, ke), me(k, X(ke, !0)); } } } }); }; let L = !0; - return X(Le, [ve(S, "pointermove pointerleave", l), ve(m, "pointerenter", () => { + return X(Fe, [ve(x, "pointermove pointerleave", r), ve(f, "pointerenter", () => { c(Es, !0); - }), ve(m, "pointerleave pointercancel", () => { + }), ve(f, "pointerleave pointercancel", () => { c(Es, !1); - }), !u && ve(m, "mousedown", () => { + }), !u && ve(f, "mousedown", () => { const P = Fn(); (ms(P, Je) || ms(P, ot) || P === document.body) && Zt(X(In, a), 25); - }), ve(m, "wheel", (P) => { - const { deltaX: O, deltaY: k, deltaMode: y } = P; - L && y === 0 && Dt(m) === d && $({ + }), ve(f, "wheel", (P) => { + const { deltaX: O, deltaY: y, deltaMode: w } = P; + L && w === 0 && Dt(f) === d && $({ x: O, - y: k - }), L = !1, c(Ts, !0), w(() => { - L = !0, c(Ts); + y + }), L = !1, c(Ms, !0), S(() => { + L = !0, c(Ms); }), Bn(P); }, { H: !1, I: !0 - }), ve(m, "pointerdown", X(ve, _, "click", fo, { + }), ve(f, "pointerdown", X(ve, v, "click", fo, { A: !0, I: !0, H: !1 }), { I: !0 - }), V(), D, A]); -}, yl = (t, e, n, l, s, c) => { - let i, d, a, u, f, _ = dt, p = 0; - const m = (F) => F.pointerType === "mouse", [h, S] = ft(), [w, D] = ft(100), [R, A] = ft(100), [$, V] = ft(() => p), [L, P] = bl(t, s, l, wl(e, s, l, (F) => m(F) && ee())), { ht: O, Qt: k, wt: y } = s, { jt: C, Nt: E, qt: B, Bt: x, Ft: N } = L, U = (F, H) => { + }), V(), E, T]); +}, yl = (t, e, n, r, s, c) => { + let i, d, a, u, m, v = dt, p = 0; + const f = (F) => F.pointerType === "mouse", [h, x] = ft(), [S, E] = ft(100), [R, T] = ft(100), [$, V] = ft(() => p), [L, P] = bl(t, s, r, wl(e, s, r, (F) => f(F) && ee())), { ht: O, Qt: y, wt: w } = s, { jt: C, Nt: A, qt: B, Bt: k, Ft: N } = L, U = (F, H) => { if (V(), F) - C(Ms); + C(Ts); else { - const I = X(C, Ms, !0); + const I = X(C, Ts, !0); p > 0 && !H ? $(I) : I(); } }, ee = () => { - (a ? !i : !u) && (U(!0), w(() => { + (a ? !i : !u) && (U(!0), S(() => { U(!1); })); }, se = (F) => { C(qn, F, !0), C(qn, F, !1); }, ne = (F) => { - m(F) && (i = a, a && U(!0)); - }, pe = [V, D, A, S, () => _(), ve(O, "pointerover", ne, { + f(F) && (i = a, a && U(!0)); + }, pe = [V, E, T, x, () => v(), ve(O, "pointerover", ne, { A: !0 }), ve(O, "pointerenter", ne), ve(O, "pointerleave", (F) => { - m(F) && (i = !1, a && U(!1)); + f(F) && (i = !1, a && U(!1)); }), ve(O, "pointermove", (F) => { - m(F) && d && ee(); - }), ve(k, "scroll", (F) => { + f(F) && d && ee(); + }), ve(y, "scroll", (F) => { h(() => { B(), ee(); }), c(F), N(); })]; - return [() => X(Le, me(pe, P())), ({ It: F, Dt: H, Zt: I, tn: j }) => { - const { nn: M, sn: K, en: G, cn: Y } = j || {}, { Ct: te, dt: ie } = I || {}, { ct: be } = n, { k: _e } = Ge(), { K: $e, rn: Z } = l, [Ce, Ae] = F("showNativeOverlaidScrollbars"), [ye, Ee] = F("scrollbars.theme"), [he, we] = F("scrollbars.visibility"), [ce, fe] = F("scrollbars.autoHide"), [ke, Me] = F("scrollbars.autoHideSuspend"), [$t] = F("scrollbars.autoHideDelay"), [Ft, Ht] = F("scrollbars.dragScroll"), [Rt, at] = F("scrollbars.clickScroll"), [vt, pn] = F("overflow"), hn = ie && !H, gn = Z.x || Z.y, bn = M || K || Y || te || H, Ie = G || we || pn, wn = Ce && _e.x && _e.y, Ct = (Et, et, Bt) => { - const At = Et.includes(gt) && (he === nt || he === "auto" && et === gt); + return [() => X(Fe, me(pe, P())), ({ It: F, Dt: H, Zt: I, tn: j }) => { + const { nn: M, sn: K, en: G, cn: Y } = j || {}, { Ct: te, dt: ie } = I || {}, { ct: be } = n, { k: _e } = Ge(), { K: $e, rn: Z } = r, [Ce, Ae] = F("showNativeOverlaidScrollbars"), [ye, Ee] = F("scrollbars.theme"), [he, we] = F("scrollbars.visibility"), [ce, fe] = F("scrollbars.autoHide"), [ke, Te] = F("scrollbars.autoHideSuspend"), [$t] = F("scrollbars.autoHideDelay"), [Ft, Ht] = F("scrollbars.dragScroll"), [Rt, at] = F("scrollbars.clickScroll"), [vt, pn] = F("overflow"), hn = ie && !H, gn = Z.x || Z.y, bn = M || K || Y || te || H, Ie = G || we || pn, wn = Ce && _e.x && _e.y, Ct = (Et, tt, Bt) => { + const At = Et.includes(gt) && (he === st || he === "auto" && tt === gt); return C(Qr, At, Bt), At; }; - if (p = $t, hn && (ke && gn ? (se(!1), _(), R(() => { - _ = ve(k, "scroll", X(se, !0), { + if (p = $t, hn && (ke && gn ? (se(!1), v(), R(() => { + v = ve(y, "scroll", X(se, !0), { A: !0 }); - })) : se(!0)), Ae && C(Yr, wn), Ee && (C(f), C(ye, !0), f = ye), Me && !ke && se(!0), fe && (d = ce === "move", a = ce === "leave", u = ce === "never", U(u, !0)), Ht && C(nl, Ft), at && C(tl, !!Rt), Ie) { - const Et = Ct(vt.x, $e.x, !0), et = Ct(vt.y, $e.y, !1); - C(el, !(Et && et)); + })) : se(!0)), Ae && C(Yr, wn), Ee && (C(m), C(ye, !0), m = ye), Te && !ke && se(!0), fe && (d = ce === "move", a = ce === "leave", u = ce === "never", U(u, !0)), Ht && C(nl, Ft), at && C(tl, !!Rt), Ie) { + const Et = Ct(vt.x, $e.x, !0), tt = Ct(vt.y, $e.y, !1); + C(el, !(Et && tt)); } - bn && (B(), E(), N(), Y && x(), C(As, !Z.x, !0), C(As, !Z.y, !1), C(Xr, be && !y)); + bn && (B(), A(), N(), Y && k(), C(As, !Z.x, !0), C(As, !Z.y, !1), C(Xr, be && !w)); }, {}, L]; }, kl = (t) => { - const e = Ge(), { U: n, R: l } = e, { elements: s } = n(), { padding: c, viewport: i, content: d } = s, a = nn(t), u = a ? {} : t, { elements: f } = u, { padding: _, viewport: p, content: m } = f || {}, h = a ? t : u.target, S = lo(h), w = h.ownerDocument, D = w.documentElement, R = () => w.defaultView || Te, A = X(ll, [h]), $ = X(ko, [h]), V = X(pt, ""), L = X(A, V, i), P = X($, V, d), O = (Z) => { - const Ce = ht(Z), Ae = on(Z), ye = Ze(Z, Xs), Ee = Ze(Z, Js); + const e = Ge(), { U: n, R: r } = e, { elements: s } = n(), { padding: c, viewport: i, content: d } = s, a = nn(t), u = a ? {} : t, { elements: m } = u, { padding: v, viewport: p, content: f } = m || {}, h = a ? t : u.target, x = lo(h), S = h.ownerDocument, E = S.documentElement, R = () => S.defaultView || De, T = X(ll, [h]), $ = X(ko, [h]), V = X(pt, ""), L = X(T, V, i), P = X($, V, d), O = (Z) => { + const Ce = ht(Z), Ae = on(Z), ye = Qe(Z, Xs), Ee = Qe(Z, Js); return Ae.w - Ce.w > 0 && !wt(ye) || Ae.h - Ce.h > 0 && !wt(Ee); - }, k = L(p), y = k === h, C = y && S, E = !y && P(m), B = !y && k === E, x = C ? D : k, N = C ? x : h, U = !y && $(V, c, _), ee = !B && E, se = [ee, x, U, N].map((Z) => nn(Z) && !Dt(Z) && Z), ne = (Z) => Z && qs(se, Z), pe = !ne(x) && O(x) ? x : h, F = C ? D : x, I = { + }, y = L(p), w = y === h, C = w && x, A = !w && P(f), B = !w && y === A, k = C ? E : y, N = C ? k : h, U = !w && $(V, c, v), ee = !B && A, se = [ee, k, U, N].map((Z) => nn(Z) && !Dt(Z) && Z), ne = (Z) => Z && qs(se, Z), pe = !ne(k) && O(k) ? k : h, F = C ? E : k, I = { vt: h, ht: N, - ot: x, + ot: k, ln: U, bt: ee, gt: F, - Qt: C ? w : x, - an: S ? D : pe, - Kt: w, - wt: S, + Qt: C ? S : k, + an: x ? E : pe, + Kt: S, + wt: x, Mt: a, - nt: y, + nt: w, un: R, - yt: (Z) => es(x, Je, Z), - St: (Z, Ce) => sn(x, Je, Z, Ce), + yt: (Z) => es(k, Je, Z), + St: (Z, Ce) => sn(k, Je, Z, Ce), Ot: () => sn(F, Je, Pr, !0) }, { vt: j, ht: M, ln: K, ot: G, bt: Y } = I, te = [() => { - Ne(M, [ot, xn]), Ne(j, xn), S && Ne(D, [xn, ot]); + Ne(M, [ot, xn]), Ne(j, xn), x && Ne(E, [xn, ot]); }]; let ie = Ln([Y, G, K, M, j].find((Z) => Z && !ne(Z))); - const be = C ? j : Y || G, _e = X(Le, te); + const be = C ? j : Y || G, _e = X(Fe, te); return [I, () => { const Z = R(), Ce = Fn(), Ae = (ce) => { - Ve(Dt(ce), Ln(ce)), bt(ce); + Oe(Dt(ce), Ln(ce)), bt(ce); }, ye = (ce) => ve(ce, "focusin focusout focus blur", fo, { I: !0, H: !1 }), Ee = "tabindex", he = Zn(G, Ee), we = ye(Ce); - return Xe(M, ot, y ? "" : Nr), Xe(K, Un, ""), Xe(G, Je, ""), Xe(Y, Cs, ""), y || (Xe(G, Ee, he || "-1"), S && Xe(D, $s, "")), Ve(be, ie), Ve(M, K), Ve(K || M, !y && G), Ve(G, Y), me(te, [we, () => { - const ce = Fn(), fe = ne(G), ke = fe && ce === G ? j : ce, Me = ye(ke); - Ne(K, Un), Ne(Y, Cs), Ne(G, Je), S && Ne(D, $s), he ? Xe(G, Ee, he) : Ne(G, Ee), ne(Y) && Ae(Y), fe && Ae(G), ne(K) && Ae(K), In(ke), Me(); - }]), l && !y && (Qn(G, Je, go), me(te, X(Ne, G, Je))), In(!y && S && Ce === j && Z.top === Z ? G : Ce), we(), ie = 0, _e; + return Xe(M, ot, w ? "" : Nr), Xe(K, Un, ""), Xe(G, Je, ""), Xe(Y, Cs, ""), w || (Xe(G, Ee, he || "-1"), x && Xe(E, $s, "")), Oe(be, ie), Oe(M, K), Oe(K || M, !w && G), Oe(G, Y), me(te, [we, () => { + const ce = Fn(), fe = ne(G), ke = fe && ce === G ? j : ce, Te = ye(ke); + Ne(K, Un), Ne(Y, Cs), Ne(G, Je), x && Ne(E, $s), he ? Xe(G, Ee, he) : Ne(G, Ee), ne(Y) && Ae(Y), fe && Ae(G), ne(K) && Ae(K), In(ke), Te(); + }]), r && !w && (Qn(G, Je, go), me(te, X(Ne, G, Je))), In(!w && x && Ce === j && Z.top === Z ? G : Ce), we(), ie = 0, _e; }, _e]; -}, xl = ({ bt: t }) => ({ Zt: e, _n: n, Dt: l }) => { +}, xl = ({ bt: t }) => ({ Zt: e, _n: n, Dt: r }) => { const { xt: s } = e || {}, { $t: c } = n; - t && (s || l) && Vt(t, { + t && (s || r) && Vt(t, { [un]: c && "100%" }); -}, Sl = ({ ht: t, ln: e, ot: n, nt: l }, s) => { - const [c, i] = De({ - i: Tr, +}, Sl = ({ ht: t, ln: e, ot: n, nt: r }, s) => { + const [c, i] = Ve({ + i: Mr, o: hs() }, X(hs, t, "padding", "")); - return ({ It: d, Zt: a, _n: u, Dt: f }) => { - let [_, p] = i(f); - const { R: m } = Ge(), { ft: h, Ht: S, Ct: w } = a || {}, { ct: D } = u, [R, A] = d("paddingAbsolute"); - (h || p || (f || S)) && ([_, p] = c(f)); - const V = !l && (A || w || p); + return ({ It: d, Zt: a, _n: u, Dt: m }) => { + let [v, p] = i(m); + const { R: f } = Ge(), { ft: h, Ht: x, Ct: S } = a || {}, { ct: E } = u, [R, T] = d("paddingAbsolute"); + (h || p || (m || x)) && ([v, p] = c(m)); + const V = !r && (T || S || p); if (V) { - const L = !R || !e && !m, P = _.r + _.l, O = _.t + _.b, k = { - [Ws]: L && !D ? -P : 0, + const L = !R || !e && !f, P = v.r + v.l, O = v.t + v.b, y = { + [Ws]: L && !E ? -P : 0, [Ys]: L ? -O : 0, - [Ks]: L && D ? -P : 0, - top: L ? -_.t : 0, - right: L ? D ? -_.r : "auto" : 0, - left: L ? D ? "auto" : -_.l : 0, + [Ks]: L && E ? -P : 0, + top: L ? -v.t : 0, + right: L ? E ? -v.r : "auto" : 0, + left: L ? E ? "auto" : -v.l : 0, [dn]: L && `calc(100% + ${P}px)` - }, y = { - [zs]: L ? _.t : 0, - [Ps]: L ? _.r : 0, - [Gs]: L ? _.b : 0, - [js]: L ? _.l : 0 + }, w = { + [zs]: L ? v.t : 0, + [Ps]: L ? v.r : 0, + [Gs]: L ? v.b : 0, + [js]: L ? v.l : 0 }; - Vt(e || n, k), Vt(n, y), oe(s, { - ln: _, + Vt(e || n, y), Vt(n, w), oe(s, { + ln: v, dn: !L, - rt: e ? y : oe({}, k, y) + rt: e ? w : oe({}, y, w) }); } return { @@ -1187,12 +1187,12 @@ const rl = () => { }; }; }, $l = (t, e) => { - const n = Ge(), { ht: l, ln: s, ot: c, nt: i, Qt: d, gt: a, wt: u, St: f, un: _ } = t, { R: p } = n, m = u && i, h = X(Ns, 0), S = { + const n = Ge(), { ht: r, ln: s, ot: c, nt: i, Qt: d, gt: a, wt: u, St: m, un: v } = t, { R: p } = n, f = u && i, h = X(Ns, 0), x = { display: () => !1, direction: (H) => H !== "ltr", flexDirection: (H) => H.endsWith("-reverse"), writingMode: (H) => H !== "horizontal-tb" - }, w = Be(S), D = { + }, S = Be(x), E = { i: Zs, o: { w: 0, @@ -1201,12 +1201,12 @@ const rl = () => { }, R = { i: Wt, o: {} - }, A = (H) => { - f(ho, !m && H); + }, T = (H) => { + m(ho, !f && H); }, $ = (H) => { - if (!w.some((be) => { + if (!S.some((be) => { const _e = H[be]; - return _e && S[be](_e); + return _e && x[be](_e); })) return { D: { @@ -1218,9 +1218,9 @@ const rl = () => { y: 1 } }; - A(!0); - const j = Oe(a), M = f(jr, !0), K = ve(d, gt, (be) => { - const _e = Oe(a); + T(!0); + const j = Le(a), M = m(jr, !0), K = ve(d, gt, (be) => { + const _e = Le(a); be.isTrusted && _e.x === j.x && _e.y === j.y && _o(be); }, { I: !0, @@ -1230,23 +1230,23 @@ const rl = () => { x: 0, y: 0 }), M(); - const G = Oe(a), Y = on(a); + const G = Le(a), Y = on(a); qe(a, { x: Y.w, y: Y.h }); - const te = Oe(a); + const te = Le(a); qe(a, { x: te.x - G.x < 1 && -Y.w, y: te.y - G.y < 1 && -Y.h }); - const ie = Oe(a); + const ie = Le(a); return qe(a, j), Gn(() => K()), { D: G, M: ie }; }, V = (H, I) => { - const j = Te.devicePixelRatio % 1 !== 0 ? 1 : 0, M = { + const j = De.devicePixelRatio % 1 !== 0 ? 1 : 0, M = { w: h(H.w - I.w), h: h(H.h - I.h) }; @@ -1254,36 +1254,36 @@ const rl = () => { w: M.w > j ? M.w : 0, h: M.h > j ? M.h : 0 }; - }, [L, P] = De(D, X(ns, c)), [O, k] = De(D, X(on, c)), [y, C] = De(D), [E] = De(R), [B, x] = De(D), [N] = De(R), [U] = De({ - i: (H, I) => vn(H, I, w), + }, [L, P] = Ve(E, X(ns, c)), [O, y] = Ve(E, X(on, c)), [w, C] = Ve(E), [A] = Ve(R), [B, k] = Ve(E), [N] = Ve(R), [U] = Ve({ + i: (H, I) => vn(H, I, S), o: {} - }, () => Rr(c) ? Ze(c, w) : {}), [ee, se] = De({ + }, () => Rr(c) ? Qe(c, S) : {}), [ee, se] = Ve({ i: (H, I) => Wt(H.D, I.D) && Wt(H.M, I.M), o: mo() - }), ne = Lt(Eo), pe = (H, I) => `${I ? Ur : qr}${Mr(H)}`, F = (H) => { - const I = (M) => [nt, it, gt].map((K) => pe(K, M)), j = I(!0).concat(I()).join(" "); - f(j), f(Be(H).map((M) => pe(H[M], M === "x")).join(" "), !0); + }), ne = Lt(Eo), pe = (H, I) => `${I ? Ur : qr}${Tr(H)}`, F = (H) => { + const I = (M) => [st, it, gt].map((K) => pe(K, M)), j = I(!0).concat(I()).join(" "); + m(j), m(Be(H).map((M) => pe(H[M], M === "x")).join(" "), !0); }; return ({ It: H, Zt: I, _n: j, Dt: M }, { fn: K }) => { const { ft: G, Ht: Y, Ct: te, dt: ie, zt: be } = I || {}, _e = ne && ne.tt(t, e, j, n, H), { it: $e, ut: Z, _t: Ce } = _e || {}, [Ae, ye] = fl(H, n), [Ee, he] = H("overflow"), we = wt(Ee.x), ce = wt(Ee.y), fe = !0; - let ke = P(M), Me = k(M), $t = C(M), Ft = x(M); - ye && p && f(go, !Ae); + let ke = P(M), Te = y(M), $t = C(M), Ft = k(M); + ye && p && m(go, !Ae); { - es(l, ot, Xt) && A(!0); - const [ds] = Z ? Z() : [], [It] = ke = L(M), [Nt] = Me = O(M), Ut = uo(c), qt = m && Hr(_()), Qo = { + es(r, ot, Xt) && T(!0); + const [ds] = Z ? Z() : [], [It] = ke = L(M), [Nt] = Te = O(M), Ut = uo(c), qt = f && Hr(v()), Qo = { w: h(Nt.w + It.w), h: h(Nt.h + It.h) }, us = { w: h((qt ? qt.w : Ut.w + h(Ut.w - Nt.w)) + It.w), h: h((qt ? qt.h : Ut.h + h(Ut.h - Nt.h)) + It.h) }; - ds && ds(), Ft = B(us), $t = y(V(Qo, us), M); + ds && ds(), Ft = B(us), $t = w(V(Qo, us), M); } - const [Ht, Rt] = Ft, [at, vt] = $t, [pn, hn] = Me, [gn, bn] = ke, [Ie, wn] = E({ + const [Ht, Rt] = Ft, [at, vt] = $t, [pn, hn] = Te, [gn, bn] = ke, [Ie, wn] = A({ x: at.w > 0, y: at.h > 0 - }), Ct = we && ce && (Ie.x || Ie.y) || we && Ie.x && !Ie.y || ce && Ie.y && !Ie.x, Et = K || te || be || bn || hn || Rt || vt || he || ye || fe, et = ml(Ie, Ee), [Bt, At] = N(et.K), [Yo, Xo] = U(M), cs = te || ie || Xo || wn || M, [Jo, Zo] = cs ? ee($(Yo), M) : se(); - return Et && (At && F(et.K), Ce && $e && Vt(c, Ce(et, j, $e(et, pn, gn)))), A(!1), sn(l, ot, Xt, Ct), sn(s, Un, Xt, Ct), oe(e, { + }), Ct = we && ce && (Ie.x || Ie.y) || we && Ie.x && !Ie.y || ce && Ie.y && !Ie.x, Et = K || te || be || bn || hn || Rt || vt || he || ye || fe, tt = ml(Ie, Ee), [Bt, At] = N(tt.K), [Yo, Xo] = U(M), cs = te || ie || Xo || wn || M, [Jo, Zo] = cs ? ee($(Yo), M) : se(); + return Et && (At && F(tt.K), Ce && $e && Vt(c, Ce(tt, j, $e(tt, pn, gn)))), T(!1), sn(r, ot, Xt, Ct), sn(s, Un, Xt, Ct), oe(e, { K: Bt, Vt: { x: Ht.w, @@ -1304,7 +1304,7 @@ const rl = () => { }; }; }, Cl = (t) => { - const [e, n, l] = kl(t), s = { + const [e, n, r] = kl(t), s = { ln: { t: 0, r: 0, @@ -1338,67 +1338,67 @@ const rl = () => { y: !1 }, Lt: mo() - }, { vt: c, gt: i, nt: d, Ot: a } = e, { R: u, k: f } = Ge(), _ = !u && (f.x || f.y), p = [xl(e), Sl(e, s), $l(e, s)]; - return [n, (m) => { - const h = {}, w = _ && Oe(i), D = w && a(); + }, { vt: c, gt: i, nt: d, Ot: a } = e, { R: u, k: m } = Ge(), v = !u && (m.x || m.y), p = [xl(e), Sl(e, s), $l(e, s)]; + return [n, (f) => { + const h = {}, S = v && Le(i), E = S && a(); return ae(p, (R) => { - oe(h, R(m, h) || {}); - }), qe(i, w), D && D(), !d && qe(c, 0), h; - }, s, e, l]; -}, El = (t, e, n, l, s) => { + oe(h, R(f, h) || {}); + }), qe(i, S), E && E(), !d && qe(c, 0), h; + }, s, e, r]; +}, El = (t, e, n, r, s) => { let c = !1; - const i = Ss(e, {}), [d, a, u, f, _] = Cl(t), [p, m, h] = gl(f, u, i, ($) => { - A({}, $); - }), [S, w, , D] = yl(t, e, h, u, f, s), R = ($) => Be($).some((V) => !!$[V]), A = ($, V) => { + const i = Ss(e, {}), [d, a, u, m, v] = Cl(t), [p, f, h] = gl(m, u, i, ($) => { + T({}, $); + }), [x, S, , E] = yl(t, e, h, u, m, s), R = ($) => Be($).some((V) => !!$[V]), T = ($, V) => { if (n()) return !1; - const { pn: L, Dt: P, At: O, hn: k } = $, y = L || {}, C = !!P || !c, E = { - It: Ss(e, y, C), - pn: y, + const { pn: L, Dt: P, At: O, hn: y } = $, w = L || {}, C = !!P || !c, A = { + It: Ss(e, w, C), + pn: w, Dt: C }; - if (k) - return w(E), !1; - const B = V || m(oe({}, E, { + if (y) + return S(A), !1; + const B = V || f(oe({}, A, { At: O - })), x = a(oe({}, E, { + })), k = a(oe({}, A, { _n: h, Zt: B })); - w(oe({}, E, { + S(oe({}, A, { Zt: B, - tn: x + tn: k })); - const N = R(B), U = R(x), ee = N || U || !Jn(y) || C; - return c = !0, ee && l($, { + const N = R(B), U = R(k), ee = N || U || !Jn(w) || C; + return c = !0, ee && r($, { Zt: B, - tn: x + tn: k }), ee; }; return [() => { - const { an: $, gt: V, Ot: L } = f, P = Oe($), O = [p(), d(), S()], k = L(); - return qe(V, P), k(), X(Le, O); - }, A, () => ({ + const { an: $, gt: V, Ot: L } = m, P = Le($), O = [p(), d(), x()], y = L(); + return qe(V, P), y(), X(Fe, O); + }, T, () => ({ gn: h, bn: u }), { - wn: f, - yn: D - }, _]; + wn: m, + yn: E + }, v]; }, je = (t, e, n) => { - const { N: l } = Ge(), s = nn(t), c = s ? t : t.target, i = xo(c); + const { N: r } = Ge(), s = nn(t), c = s ? t : t.target, i = xo(c); if (e && !i) { let d = !1; - const a = [], u = {}, f = (y) => { - const C = eo(y), E = Lt(vl); - return E ? E(C, !0) : C; - }, _ = oe({}, l(), f(e)), [p, m, h] = Nn(), [S, w, D] = Nn(n), R = (y, C) => { - D(y, C), h(y, C); - }, [A, $, V, L, P] = El(t, _, () => d, ({ pn: y, Dt: C }, { Zt: E, tn: B }) => { - const { ft: x, Ct: N, xt: U, Ht: ee, Et: se, dt: ne } = E, { nn: pe, sn: F, en: H, cn: I } = B; - R("updated", [k, { + const a = [], u = {}, m = (w) => { + const C = eo(w), A = Lt(vl); + return A ? A(C, !0) : C; + }, v = oe({}, r(), m(e)), [p, f, h] = Nn(), [x, S, E] = Nn(n), R = (w, C) => { + E(w, C), h(w, C); + }, [T, $, V, L, P] = El(t, v, () => d, ({ pn: w, Dt: C }, { Zt: A, tn: B }) => { + const { ft: k, Ct: N, xt: U, Ht: ee, Et: se, dt: ne } = A, { nn: pe, sn: F, en: H, cn: I } = B; + R("updated", [y, { updateHints: { - sizeChanged: !!x, + sizeChanged: !!k, directionChanged: !!N, heightIntrinsicChanged: !!U, overflowEdgeChanged: !!pe, @@ -1409,30 +1409,30 @@ const rl = () => { hostMutation: !!se, appear: !!ne }, - changedOptions: y || {}, + changedOptions: w || {}, force: !!C }]); - }, (y) => R("scroll", [k, y])), O = (y) => { - cl(c), Le(a), d = !0, R("destroyed", [k, y]), m(), w(); - }, k = { - options(y, C) { - if (y) { - const E = C ? l() : {}, B = po(_, oe(E, f(y))); - Jn(B) || (oe(_, B), $({ + }, (w) => R("scroll", [y, w])), O = (w) => { + cl(c), Fe(a), d = !0, R("destroyed", [y, w]), f(), S(); + }, y = { + options(w, C) { + if (w) { + const A = C ? r() : {}, B = po(v, oe(A, m(w))); + Jn(B) || (oe(v, B), $({ pn: B })); } - return oe({}, _); + return oe({}, v); }, - on: S, - off: (y, C) => { - y && C && w(y, C); + on: x, + off: (w, C) => { + w && C && S(w, C); }, state() { - const { gn: y, bn: C } = V(), { ct: E } = y, { Vt: B, Rt: x, K: N, rn: U, ln: ee, dn: se, Lt: ne } = C; + const { gn: w, bn: C } = V(), { ct: A } = w, { Vt: B, Rt: k, K: N, rn: U, ln: ee, dn: se, Lt: ne } = C; return oe({}, { overflowEdge: B, - overflowAmount: x, + overflowAmount: k, overflowStyle: N, hasOverflow: U, scrollCoordinates: { @@ -1441,12 +1441,12 @@ const rl = () => { }, padding: ee, paddingAbsolute: se, - directionRTL: E, + directionRTL: A, destroyed: d }); }, elements() { - const { vt: y, ht: C, ln: E, ot: B, bt: x, gt: N, Qt: U } = L.wn, { Xt: ee, Gt: se } = L.yn, ne = (F) => { + const { vt: w, ht: C, ln: A, ot: B, bt: k, gt: N, Qt: U } = L.wn, { Xt: ee, Gt: se } = L.yn, ne = (F) => { const { Pt: H, Ut: I, Tt: j } = F; return { scrollbar: j, @@ -1465,43 +1465,43 @@ const rl = () => { }); }; return oe({}, { - target: y, + target: w, host: C, - padding: E || B, + padding: A || B, viewport: B, - content: x || B, + content: k || B, scrollOffsetElement: N, scrollEventElement: U, scrollbarHorizontal: pe(ee), scrollbarVertical: pe(se) }); }, - update: (y) => $({ - Dt: y, + update: (w) => $({ + Dt: w, At: !0 }), destroy: X(O, !1), - plugin: (y) => u[Be(y)[0]] + plugin: (w) => u[Be(w)[0]] }; - return me(a, [P]), il(c, k), Co(So, je, [k, p, u]), al(L.wn.wt, !s && t.cancel) ? (O(!0), k) : (me(a, A()), R("initialized", [k]), k.update(), k); + return me(a, [P]), il(c, y), Co(So, je, [y, p, u]), al(L.wn.wt, !s && t.cancel) ? (O(!0), y) : (me(a, T()), R("initialized", [y]), y.update(), y); } return i; }; je.plugin = (t) => { - const e = Pe(t), n = e ? t : [t], l = n.map((s) => Co(s, je)[0]); - return ul(n), e ? l : l[0]; + const e = Pe(t), n = e ? t : [t], r = n.map((s) => Co(s, je)[0]); + return ul(n), e ? r : r[0]; }; je.valid = (t) => { const e = t && t.elements, n = Re(e) && e(); return tn(n) && !!xo(n.target); }; je.env = () => { - const { T: t, k: e, R: n, V: l, B: s, F: c, U: i, P: d, N: a, q: u } = Ge(); + const { T: t, k: e, R: n, V: r, B: s, F: c, U: i, P: d, N: a, q: u } = Ge(); return oe({}, { scrollbarsSize: t, scrollbarsOverlaid: e, scrollbarsHiding: n, - scrollTimeline: l, + scrollTimeline: r, staticDefaultInitialization: s, staticDefaultOptions: c, getDefaultInitialization: i, @@ -1513,7 +1513,7 @@ je.env = () => { je.nonce = ol; function Al() { let t; - const e = T(null), n = Math.floor(Math.random() * 2 ** 32), l = T(!1), s = T([]), c = () => s.value, i = () => t.getSelection(), d = () => s.value.length, a = () => t.clearSelection(!0), u = T(), f = T(null), _ = T(null), p = T(null), m = T(null); + const e = D(null), n = Math.floor(Math.random() * 2 ** 32), r = D(!1), s = D([]), c = () => s.value, i = () => t.getSelection(), d = () => s.value.length, a = () => t.clearSelection(!0), u = D(), m = D(null), v = D(null), p = D(null), f = D(null); function h() { t = new ur({ area: e.value, @@ -1524,37 +1524,37 @@ function Al() { if (P) t.Interaction._reset(L); else { - l.value = !1; - const O = e.value.offsetWidth - L.offsetX, k = e.value.offsetHeight - L.offsetY; - O < 15 && k < 15 && t.Interaction._reset(L), L.target.classList.contains("os-scrollbar-handle") && t.Interaction._reset(L); + r.value = !1; + const O = e.value.offsetWidth - L.offsetX, y = e.value.offsetHeight - L.offsetY; + O < 15 && y < 15 && t.Interaction._reset(L), L.target.classList.contains("os-scrollbar-handle") && t.Interaction._reset(L); } }), document.addEventListener("dragleave", (V) => { - !V.buttons && l.value && (l.value = !1); + !V.buttons && r.value && (r.value = !1); }); } - const S = () => ct(() => { + const x = () => ct(() => { t.addSelection( t.getSelectables() - ), w(); - }), w = () => { + ), S(); + }), S = () => { s.value = t.getSelection().map((V) => JSON.parse(V.dataset.item)), u.value(s.value); - }, D = () => ct(() => { + }, E = () => ct(() => { const V = c().map((L) => L.path); a(), t.setSettings({ selectables: document.getElementsByClassName("vf-item-" + n) }), t.addSelection( t.getSelectables().filter((L) => V.includes(JSON.parse(L.dataset.item).path)) - ), w(), A(); + ), S(), T(); }), R = (V) => { u.value = V, t.subscribe("DS:end", ({ items: L, event: P, isDragging: O }) => { - s.value = L.map((k) => JSON.parse(k.dataset.item)), V(L.map((k) => JSON.parse(k.dataset.item))); + s.value = L.map((y) => JSON.parse(y.dataset.item)), V(L.map((y) => JSON.parse(y.dataset.item))); }); - }, A = () => { - f.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (_.value.style.height = e.value.scrollHeight + "px", _.value.style.display = "block") : (_.value.style.height = "100%", _.value.style.display = "none")); + }, T = () => { + m.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (v.value.style.height = e.value.scrollHeight + "px", v.value.style.display = "block") : (v.value.style.height = "100%", v.value.style.display = "none")); }, $ = (V) => { - if (!f.value) + if (!m.value) return; - const { scrollOffsetElement: L } = f.value.elements(); + const { scrollOffsetElement: L } = m.value.elements(); L.scrollTo( { top: e.value.scrollTop, @@ -1575,7 +1575,7 @@ function Al() { } }, { initialized: (V) => { - f.value = V; + m.value = V; }, scroll: (V, L) => { const { scrollOffsetElement: P } = V.elements(); @@ -1584,83 +1584,83 @@ function Al() { left: 0 }); } - }), h(), A(), m.value = new ResizeObserver(A), m.value.observe(e.value), e.value.addEventListener("scroll", $), t.subscribe("DS:scroll", ({ isDragging: V }) => V || $()); + }), h(), T(), f.value = new ResizeObserver(T), f.value.observe(e.value), e.value.addEventListener("scroll", $), t.subscribe("DS:scroll", ({ isDragging: V }) => V || $()); }), jn(() => { - t && t.stop(), m.value && m.value.disconnect(); + t && t.stop(), f.value && f.value.disconnect(); }), Ls(() => { t && t.Area.reset(); }), { area: e, explorerId: n, - isDraggingRef: l, - scrollBar: _, + isDraggingRef: r, + scrollBar: v, scrollBarContainer: p, getSelected: c, getSelection: i, - selectAll: S, + selectAll: x, clearSelection: a, - refreshSelection: D, + refreshSelection: E, getCount: d, onSelect: R }; } -function Ml(t, e) { - const n = T(t), l = T(e), s = T([]), c = T([]), i = T([]), d = T(!1), a = T(5); - let u = !1, f = !1; - const _ = yt({ +function Tl(t, e) { + const n = D(t), r = D(e), s = D([]), c = D([]), i = D([]), d = D(!1), a = D(5); + let u = !1, m = !1; + const v = yt({ adapter: n, storages: [], - dirname: l, + dirname: r, files: [] }); function p() { - let R = [], A = [], $ = l.value ?? n.value + "://"; + let R = [], T = [], $ = r.value ?? n.value + "://"; $.length === 0 && (s.value = []), $.replace(n.value + "://", "").split("/").forEach(function(P) { - R.push(P), R.join("/") !== "" && A.push({ + R.push(P), R.join("/") !== "" && T.push({ basename: P, name: P, path: n.value + "://" + R.join("/"), type: "dir" }); - }), c.value = A; - const [V, L] = h(A, a.value); + }), c.value = T; + const [V, L] = h(T, a.value); i.value = L, s.value = V; } - function m(R) { + function f(R) { a.value = R, p(); } - function h(R, A) { - return R.length > A ? [R.slice(-A), R.slice(0, -A)] : [R, []]; + function h(R, T) { + return R.length > T ? [R.slice(-T), R.slice(0, -T)] : [R, []]; } - function S(R = null) { + function x(R = null) { d.value = R ?? !d.value; } - function w() { - return s.value && s.value.length && !f; + function S() { + return s.value && s.value.length && !m; } - const D = rt(() => { + const E = rt(() => { var R; return ((R = s.value[s.value.length - 2]) == null ? void 0 : R.path) ?? n.value + "://"; }); return Se(() => { - }), He(l, p), Se(p), { + }), Me(r, p), Se(p), { adapter: n, - path: l, + path: r, loading: u, - searchMode: f, - data: _, + searchMode: m, + data: v, breadcrumbs: s, breadcrumbItems: c, - limitBreadcrumbItems: m, + limitBreadcrumbItems: f, hiddenBreadcrumbs: i, showHiddenBreadcrumbs: d, - toggleHiddenBreadcrumbs: S, - isGoUpAvailable: w, - parentFolderPath: D + toggleHiddenBreadcrumbs: x, + isGoUpAvailable: S, + parentFolderPath: E }; } -const Tl = (t, e) => { - const n = gr(t.id), l = dr(), s = n.getStore("metricUnits", !1), c = Sr(n, t.theme), i = e.i18n, d = t.locale ?? e.locale, a = n.getStore("adapter"), u = (p) => Array.isArray(p) ? p : yr, f = n.getStore("persist-path", t.persist), _ = f ? n.getStore("path", t.path) : t.path; +const Ml = (t, e) => { + const n = gr(t.id), r = dr(), s = n.getStore("metricUnits", !1), c = Sr(n, t.theme), i = e.i18n, d = t.locale ?? e.locale, a = (p) => Array.isArray(p) ? p : yr, u = n.getStore("persist-path", t.persist), m = u ? n.getStore("path", t.path) : t.path, v = u ? n.getStore("adapter") : null; return yt({ /** * Core properties @@ -1672,11 +1672,11 @@ const Tl = (t, e) => { // app id debug: t.debug, // Event Bus - emitter: l, + emitter: r, // storage storage: n, // localization object - i18n: wr(n, d, l, i), + i18n: wr(n, d, r, i), // modal state modal: $r(), // dragSelect object, it is responsible for selecting items @@ -1684,7 +1684,7 @@ const Tl = (t, e) => { // http object requester: hr(t.request), // active features - features: u(t.features), + features: a(t.features), // view state view: n.getStore("viewport", "grid"), // fullscreen state @@ -1711,19 +1711,21 @@ const Tl = (t, e) => { // show large icons in list view compactListView: n.getStore("compact-list-view", !0), // persist state - persist: f, + persist: u, // show thumbnails showThumbnails: n.getStore("show-thumbnails", t.showThumbnails), + // type of progress indicator + loadingIndicator: t.loadingIndicator, // file system - fs: Ml(a, _) + fs: Tl(v, m) }); }, Dl = { class: "vuefinder__modal-layout__container" }, Vl = { class: "vuefinder__modal-layout__content" }, Ol = { class: "vuefinder__modal-layout__footer" }, Ke = { __name: "ModalLayout", setup(t) { - const e = T(null), n = re("ServiceContainer"); + const e = D(null), n = re("ServiceContainer"); return Se(() => { - const l = document.querySelector(".v-f-modal input"); - l && l.focus(), ct(() => { + const r = document.querySelector(".v-f-modal input"); + r && r.focus(), ct(() => { if (document.querySelector(".v-f-modal input") && window.innerWidth < 768) { const s = e.value.getBoundingClientRect().bottom + 16; window.scrollTo({ @@ -1733,7 +1735,7 @@ const Tl = (t, e) => { }); } }); - }), (l, s) => (v(), g("div", { + }), (r, s) => (_(), g("div", { class: "vuefinder__modal-layout", "aria-labelledby": "modal-title", role: "dialog", @@ -1741,22 +1743,22 @@ const Tl = (t, e) => { onKeyup: s[1] || (s[1] = kt((c) => o(n).modal.close(), ["esc"])), tabindex: "0" }, [ - s[2] || (s[2] = r("div", { class: "vuefinder__modal-layout__overlay" }, null, -1)), - r("div", Dl, [ - r("div", { + s[2] || (s[2] = l("div", { class: "vuefinder__modal-layout__overlay" }, null, -1)), + l("div", Dl, [ + l("div", { class: "vuefinder__modal-layout__wrapper", - onMousedown: s[0] || (s[0] = st((c) => o(n).modal.close(), ["self"])) + onMousedown: s[0] || (s[0] = Ze((c) => o(n).modal.close(), ["self"])) }, [ - r("div", { + l("div", { ref_key: "modalBody", ref: e, class: "vuefinder__modal-layout__body" }, [ - r("div", Vl, [ - Mt(l.$slots, "default") + l("div", Vl, [ + Tt(r.$slots, "default") ]), - r("div", Ol, [ - Mt(l.$slots, "buttons") + l("div", Ol, [ + Tt(r.$slots, "buttons") ]) ], 512) ], 32) @@ -1765,15 +1767,15 @@ const Tl = (t, e) => { } }, Ll = (t, e) => { const n = t.__vccOpts || t; - for (const [l, s] of e) - n[l] = s; + for (const [r, s] of e) + n[r] = s; return n; }, Fl = { props: { on: { type: String, required: !0 } }, setup(t, { emit: e, slots: n }) { - const l = re("ServiceContainer"), s = T(!1), { t: c } = l.i18n; + const r = re("ServiceContainer"), s = D(!1), { t: c } = r.i18n; let i = null; const d = () => { clearTimeout(i), s.value = !0, i = setTimeout(() => { @@ -1781,7 +1783,7 @@ const Tl = (t, e) => { }, 2e3); }; return Se(() => { - l.emitter.on(t.on, d); + r.emitter.on(t.on, d); }), jn(() => { clearTimeout(i); }), { @@ -1790,11 +1792,11 @@ const Tl = (t, e) => { }; } }, Hl = { key: 1 }; -function Rl(t, e, n, l, s, c) { - return v(), g("div", { - class: le(["vuefinder__action-message", { "vuefinder__action-message--hidden": !l.shown }]) +function Rl(t, e, n, r, s, c) { + return _(), g("div", { + class: le(["vuefinder__action-message", { "vuefinder__action-message--hidden": !r.shown }]) }, [ - t.$slots.default ? Mt(t.$slots, "default", { key: 0 }) : (v(), g("span", Hl, b(l.t("Saved.")), 1)) + t.$slots.default ? Tt(t.$slots, "default", { key: 0 }) : (_(), g("span", Hl, b(r.t("Saved.")), 1)) ], 2); } const _t = /* @__PURE__ */ Ll(Fl, [["render", Rl]]), Bl = { @@ -1806,13 +1808,13 @@ const _t = /* @__PURE__ */ Ll(Fl, [["render", Rl]]), Bl = { viewBox: "0 0 24 24" }; function Il(t, e) { - return v(), g("svg", Bl, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", Bl, e[0] || (e[0] = [ + l("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.87q.11.06.22.127c.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.992a8 8 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.124a7 7 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-.87a7 7 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-.991a7 7 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-.124q.108-.066.22-.128c.332-.183.582-.495.644-.869z" }, null, -1), - r("path", { + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0" @@ -1822,7 +1824,7 @@ function Il(t, e) { const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { class: "vuefinder__modal-header__icon-container" }, zl = { class: "vuefinder__modal-header__title", id: "modal-title" -}, Qe = { +}, et = { __name: "ModalHeader", props: { title: { @@ -1835,11 +1837,11 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla } }, setup(t) { - return (e, n) => (v(), g("div", Ul, [ - r("div", ql, [ - (v(), W(Fs(t.icon), { class: "vuefinder__modal-header__icon" })) + return (e, n) => (_(), g("div", Ul, [ + l("div", ql, [ + (_(), W(Fs(t.icon), { class: "vuefinder__modal-header__icon" })) ]), - r("h3", zl, b(t.title), 1) + l("h3", zl, b(t.title), 1) ])); } }, Pl = { class: "vuefinder__about-modal__content" }, jl = { class: "vuefinder__about-modal__main" }, Gl = { @@ -1880,16 +1882,16 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla }, Sa = { class: "vuefinder__about-modal__setting-input" }, $a = { for: "language", class: "vuefinder__about-modal__label" -}, Ca = { class: "vuefinder__about-modal__setting-label" }, Ea = ["label"], Aa = ["value"], Ma = { +}, Ca = { class: "vuefinder__about-modal__setting-label" }, Ea = ["label"], Aa = ["value"], Ta = { key: 2, class: "vuefinder__about-modal__tab-content" -}, Ta = { class: "vuefinder__about-modal__shortcuts" }, Da = { class: "vuefinder__about-modal__shortcut" }, Va = { class: "vuefinder__about-modal__shortcut" }, Oa = { class: "vuefinder__about-modal__shortcut" }, La = { class: "vuefinder__about-modal__shortcut" }, Fa = { class: "vuefinder__about-modal__shortcut" }, Ha = { class: "vuefinder__about-modal__shortcut" }, Ra = { class: "vuefinder__about-modal__shortcut" }, Ba = { class: "vuefinder__about-modal__shortcut" }, Ia = { class: "vuefinder__about-modal__shortcut" }, Na = { +}, Ma = { class: "vuefinder__about-modal__shortcuts" }, Da = { class: "vuefinder__about-modal__shortcut" }, Va = { class: "vuefinder__about-modal__shortcut" }, Oa = { class: "vuefinder__about-modal__shortcut" }, La = { class: "vuefinder__about-modal__shortcut" }, Fa = { class: "vuefinder__about-modal__shortcut" }, Ha = { class: "vuefinder__about-modal__shortcut" }, Ra = { class: "vuefinder__about-modal__shortcut" }, Ba = { class: "vuefinder__about-modal__shortcut" }, Ia = { class: "vuefinder__about-modal__shortcut" }, Na = { key: 3, class: "vuefinder__about-modal__tab-content" -}, Ua = { class: "vuefinder__about-modal__description" }, Mo = { +}, Ua = { class: "vuefinder__about-modal__description" }, To = { __name: "ModalAbout", setup(t) { - const e = re("ServiceContainer"), { setStore: n, clearStore: l } = e.storage, { t: s } = e.i18n, c = { + const e = re("ServiceContainer"), { setStore: n, clearStore: r } = e.storage, { t: s } = e.i18n, c = { ABOUT: "about", SETTINGS: "settings", SHORTCUTS: "shortcuts", @@ -1899,19 +1901,19 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla { name: s("Settings"), key: c.SETTINGS }, { name: s("Shortcuts"), key: c.SHORTCUTS }, { name: s("Reset"), key: c.RESET } - ]), d = T("about"), a = async () => { - l(), location.reload(); + ]), d = D("about"), a = async () => { + r(), location.reload(); }, u = (R) => { e.theme.set(R), e.emitter.emit("vf-theme-saved"); - }, f = () => { + }, m = () => { e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? Is : Bs, n("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved"); - }, _ = () => { + }, v = () => { e.compactListView = !e.compactListView, n("compactListView", e.compactListView), e.emitter.emit("vf-compact-view-saved"); }, p = () => { e.showThumbnails = !e.showThumbnails, n("show-thumbnails", e.showThumbnails), e.emitter.emit("vf-show-thumbnails-saved"); - }, m = () => { + }, f = () => { e.persist = !e.persist, n("persist-path", e.persist), e.emitter.emit("vf-persist-path-saved"); - }, { i18n: h } = re("VueFinderOptions"), w = Object.fromEntries( + }, { i18n: h } = re("VueFinderOptions"), S = Object.fromEntries( Object.entries({ ar: "Arabic (العربيّة)", en: "English", @@ -1926,30 +1928,30 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla zhCN: "Simplified Chinese (简体中文)", zhTW: "Traditional Chinese (繁體中文)" }).filter(([R]) => Object.keys(h).includes(R)) - ), D = rt(() => ({ + ), E = rt(() => ({ system: s("System"), light: s("Light"), dark: s("Dark") })); - return (R, A) => (v(), W(Ke, null, { + return (R, T) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", - onClick: A[7] || (A[7] = ($) => o(e).modal.close()), + onClick: T[7] || (T[7] = ($) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(s)("Close")), 1) ]), default: Q(() => [ - r("div", Pl, [ - z(Qe, { + l("div", Pl, [ + z(et, { icon: o(Nl), title: "Vuefinder " + o(e).version }, null, 8, ["icon", "title"]), - r("div", jl, [ - r("div", null, [ - r("div", null, [ - r("nav", Gl, [ - (v(!0), g(ge, null, xe(i.value, ($) => (v(), g("button", { + l("div", jl, [ + l("div", null, [ + l("div", null, [ + l("nav", Gl, [ + (_(!0), g(ge, null, xe(i.value, ($) => (_(), g("button", { key: $.name, onClick: (V) => d.value = $.key, class: le([$.key === d.value ? "vuefinder__about-modal__tab--active" : "vuefinder__about-modal__tab--inactive", "vuefinder__about-modal__tab"]), @@ -1958,30 +1960,30 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla ]) ]) ]), - d.value === c.ABOUT ? (v(), g("div", Wl, [ - r("div", Yl, b(o(s)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")), 1), - r("a", Xl, b(o(s)("Project home")), 1), - r("a", Jl, b(o(s)("Follow on GitHub")), 1) + d.value === c.ABOUT ? (_(), g("div", Wl, [ + l("div", Yl, b(o(s)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")), 1), + l("a", Xl, b(o(s)("Project home")), 1), + l("a", Jl, b(o(s)("Follow on GitHub")), 1) ])) : q("", !0), - d.value === c.SETTINGS ? (v(), g("div", Zl, [ - r("div", Ql, b(o(s)("Customize your experience with the following settings")), 1), - r("div", ea, [ - r("fieldset", null, [ - r("div", ta, [ - r("div", na, [ - ue(r("input", { + d.value === c.SETTINGS ? (_(), g("div", Zl, [ + l("div", Ql, b(o(s)("Customize your experience with the following settings")), 1), + l("div", ea, [ + l("fieldset", null, [ + l("div", ta, [ + l("div", na, [ + ue(l("input", { id: "metric_unit", name: "metric_unit", type: "checkbox", - "onUpdate:modelValue": A[0] || (A[0] = ($) => o(e).metricUnits = $), - onClick: f, + "onUpdate:modelValue": T[0] || (T[0] = ($) => o(e).metricUnits = $), + onClick: m, class: "vuefinder__about-modal__checkbox" }, null, 512), [ [zt, o(e).metricUnits] ]) ]), - r("div", sa, [ - r("label", oa, [ + l("div", sa, [ + l("label", oa, [ J(b(o(s)("Use Metric Units")) + " ", 1), z(_t, { class: "ms-3", @@ -1995,21 +1997,21 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla ]) ]) ]), - r("div", ra, [ - r("div", la, [ - ue(r("input", { + l("div", ra, [ + l("div", la, [ + ue(l("input", { id: "large_icons", name: "large_icons", type: "checkbox", - "onUpdate:modelValue": A[1] || (A[1] = ($) => o(e).compactListView = $), - onClick: _, + "onUpdate:modelValue": T[1] || (T[1] = ($) => o(e).compactListView = $), + onClick: v, class: "vuefinder__about-modal__checkbox" }, null, 512), [ [zt, o(e).compactListView] ]) ]), - r("div", aa, [ - r("label", ia, [ + l("div", aa, [ + l("label", ia, [ J(b(o(s)("Compact list view")) + " ", 1), z(_t, { class: "ms-3", @@ -2023,21 +2025,21 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla ]) ]) ]), - r("div", ca, [ - r("div", da, [ - ue(r("input", { + l("div", ca, [ + l("div", da, [ + ue(l("input", { id: "persist_path", name: "persist_path", type: "checkbox", - "onUpdate:modelValue": A[2] || (A[2] = ($) => o(e).persist = $), - onClick: m, + "onUpdate:modelValue": T[2] || (T[2] = ($) => o(e).persist = $), + onClick: f, class: "vuefinder__about-modal__checkbox" }, null, 512), [ [zt, o(e).persist] ]) ]), - r("div", ua, [ - r("label", va, [ + l("div", ua, [ + l("label", va, [ J(b(o(s)("Persist path on reload")) + " ", 1), z(_t, { class: "ms-3", @@ -2051,21 +2053,21 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla ]) ]) ]), - r("div", _a, [ - r("div", fa, [ - ue(r("input", { + l("div", _a, [ + l("div", fa, [ + ue(l("input", { id: "show_thumbnails", name: "show_thumbnails", type: "checkbox", - "onUpdate:modelValue": A[3] || (A[3] = ($) => o(e).showThumbnails = $), + "onUpdate:modelValue": T[3] || (T[3] = ($) => o(e).showThumbnails = $), onClick: p, class: "vuefinder__about-modal__checkbox" }, null, 512), [ [zt, o(e).showThumbnails] ]) ]), - r("div", ma, [ - r("label", pa, [ + l("div", ma, [ + l("label", pa, [ J(b(o(s)("Show thumbnails")) + " ", 1), z(_t, { class: "ms-3", @@ -2079,21 +2081,21 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla ]) ]) ]), - r("div", ha, [ - r("div", ga, [ - r("label", ba, b(o(s)("Theme")), 1) + l("div", ha, [ + l("div", ga, [ + l("label", ba, b(o(s)("Theme")), 1) ]), - r("div", wa, [ - ue(r("select", { + l("div", wa, [ + ue(l("select", { id: "theme", - "onUpdate:modelValue": A[4] || (A[4] = ($) => o(e).theme.value = $), - onChange: A[5] || (A[5] = ($) => u($.target.value)), + "onUpdate:modelValue": T[4] || (T[4] = ($) => o(e).theme.value = $), + onChange: T[5] || (T[5] = ($) => u($.target.value)), class: "vuefinder__about-modal__select" }, [ - r("optgroup", { + l("optgroup", { label: o(s)("Theme") }, [ - (v(!0), g(ge, null, xe(D.value, ($, V) => (v(), g("option", { value: V }, b($), 9, ka))), 256)) + (_(!0), g(ge, null, xe(E.value, ($, V) => (_(), g("option", { value: V }, b($), 9, ka))), 256)) ], 8, ya) ], 544), [ [En, o(e).theme.value] @@ -2109,20 +2111,20 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla }) ]) ]), - o(e).features.includes(o(de).LANGUAGE) && Object.keys(o(w)).length > 1 ? (v(), g("div", xa, [ - r("div", Sa, [ - r("label", $a, b(o(s)("Language")), 1) + o(e).features.includes(o(de).LANGUAGE) && Object.keys(o(S)).length > 1 ? (_(), g("div", xa, [ + l("div", Sa, [ + l("label", $a, b(o(s)("Language")), 1) ]), - r("div", Ca, [ - ue(r("select", { + l("div", Ca, [ + ue(l("select", { id: "language", - "onUpdate:modelValue": A[6] || (A[6] = ($) => o(e).i18n.locale = $), + "onUpdate:modelValue": T[6] || (T[6] = ($) => o(e).i18n.locale = $), class: "vuefinder__about-modal__select" }, [ - r("optgroup", { + l("optgroup", { label: o(s)("Language") }, [ - (v(!0), g(ge, null, xe(o(w), ($, V) => (v(), g("option", { value: V }, b($), 9, Aa))), 256)) + (_(!0), g(ge, null, xe(o(S), ($, V) => (_(), g("option", { value: V }, b($), 9, Aa))), 256)) ], 8, Ea) ], 512), [ [En, o(e).i18n.locale] @@ -2141,71 +2143,71 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla ]) ]) ])) : q("", !0), - d.value === c.SHORTCUTS ? (v(), g("div", Ma, [ - r("div", Ta, [ - r("div", Da, [ - r("div", null, b(o(s)("Rename")), 1), - A[8] || (A[8] = r("kbd", null, "F2", -1)) + d.value === c.SHORTCUTS ? (_(), g("div", Ta, [ + l("div", Ma, [ + l("div", Da, [ + l("div", null, b(o(s)("Rename")), 1), + T[8] || (T[8] = l("kbd", null, "F2", -1)) ]), - r("div", Va, [ - r("div", null, b(o(s)("Refresh")), 1), - A[9] || (A[9] = r("kbd", null, "F5", -1)) + l("div", Va, [ + l("div", null, b(o(s)("Refresh")), 1), + T[9] || (T[9] = l("kbd", null, "F5", -1)) ]), - r("div", Oa, [ + l("div", Oa, [ J(b(o(s)("Delete")) + " ", 1), - A[10] || (A[10] = r("kbd", null, "Del", -1)) + T[10] || (T[10] = l("kbd", null, "Del", -1)) ]), - r("div", La, [ + l("div", La, [ J(b(o(s)("Escape")) + " ", 1), - A[11] || (A[11] = r("div", null, [ - r("kbd", null, "Esc") + T[11] || (T[11] = l("div", null, [ + l("kbd", null, "Esc") ], -1)) ]), - r("div", Fa, [ + l("div", Fa, [ J(b(o(s)("Select All")) + " ", 1), - A[12] || (A[12] = r("div", null, [ - r("kbd", null, "Ctrl"), + T[12] || (T[12] = l("div", null, [ + l("kbd", null, "Ctrl"), J(" + "), - r("kbd", null, "A") + l("kbd", null, "A") ], -1)) ]), - r("div", Ha, [ + l("div", Ha, [ J(b(o(s)("Search")) + " ", 1), - A[13] || (A[13] = r("div", null, [ - r("kbd", null, "Ctrl"), + T[13] || (T[13] = l("div", null, [ + l("kbd", null, "Ctrl"), J(" + "), - r("kbd", null, "F") + l("kbd", null, "F") ], -1)) ]), - r("div", Ra, [ + l("div", Ra, [ J(b(o(s)("Toggle Sidebar")) + " ", 1), - A[14] || (A[14] = r("div", null, [ - r("kbd", null, "Ctrl"), + T[14] || (T[14] = l("div", null, [ + l("kbd", null, "Ctrl"), J(" + "), - r("kbd", null, "E") + l("kbd", null, "E") ], -1)) ]), - r("div", Ba, [ + l("div", Ba, [ J(b(o(s)("Open Settings")) + " ", 1), - A[15] || (A[15] = r("div", null, [ - r("kbd", null, "Ctrl"), + T[15] || (T[15] = l("div", null, [ + l("kbd", null, "Ctrl"), J(" + "), - r("kbd", null, ",") + l("kbd", null, ",") ], -1)) ]), - r("div", Ia, [ + l("div", Ia, [ J(b(o(s)("Toggle Full Screen")) + " ", 1), - A[16] || (A[16] = r("div", null, [ - r("kbd", null, "Ctrl"), + T[16] || (T[16] = l("div", null, [ + l("kbd", null, "Ctrl"), J(" + "), - r("kbd", null, "Enter") + l("kbd", null, "Enter") ], -1)) ]) ]) ])) : q("", !0), - d.value === c.RESET ? (v(), g("div", Na, [ - r("div", Ua, b(o(s)("Reset all settings to default")), 1), - r("button", { + d.value === c.RESET ? (_(), g("div", Na, [ + l("div", Ua, b(o(s)("Reset all settings to default")), 1), + l("button", { onClick: a, type: "button", class: "vf-btn vf-btn-secondary" @@ -2228,25 +2230,25 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla emits: ["hidden"], setup(t, { emit: e }) { var u; - const n = e, l = re("ServiceContainer"), { t: s } = l.i18n, c = T(!1), i = T(null), d = T((u = i.value) == null ? void 0 : u.strMessage); - He(d, () => c.value = !1); + const n = e, r = re("ServiceContainer"), { t: s } = r.i18n, c = D(!1), i = D(null), d = D((u = i.value) == null ? void 0 : u.strMessage); + Me(d, () => c.value = !1); const a = () => { n("hidden"), c.value = !0; }; - return (f, _) => (v(), g("div", null, [ - c.value ? q("", !0) : (v(), g("div", { + return (m, v) => (_(), g("div", null, [ + c.value ? q("", !0) : (_(), g("div", { key: 0, ref_key: "strMessage", ref: i, class: le(["vuefinder__message", t.error ? "vuefinder__message--error" : "vuefinder__message--success"]) }, [ - Mt(f.$slots, "default"), - r("div", { + Tt(m.$slots, "default"), + l("div", { class: "vuefinder__message__close", onClick: a, title: o(s)("Close") - }, _[0] || (_[0] = [ - r("svg", { + }, v[0] || (v[0] = [ + l("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", @@ -2254,7 +2256,7 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla stroke: "currentColor", class: "vuefinder__message__icon" }, [ - r("path", { + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18L18 6M6 6l12 12" @@ -2272,11 +2274,11 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla viewBox: "0 0 24 24" }; function Pa(t, e) { - return v(), g("svg", za, e[0] || (e[0] = [ - r("path", { d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.089 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0" }, null, -1) + return _(), g("svg", za, e[0] || (e[0] = [ + l("path", { d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.089 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0" }, null, -1) ])); } -const To = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, Ga = { class: "vuefinder__delete-modal__form" }, Ka = { class: "vuefinder__delete-modal__description" }, Wa = { class: "vuefinder__delete-modal__files vf-scrollbar" }, Ya = { class: "vuefinder__delete-modal__file" }, Xa = { +const Mo = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, Ga = { class: "vuefinder__delete-modal__form" }, Ka = { class: "vuefinder__delete-modal__description" }, Wa = { class: "vuefinder__delete-modal__files vf-scrollbar" }, Ya = { class: "vuefinder__delete-modal__file" }, Xa = { key: 0, class: "vuefinder__delete-modal__icon vuefinder__delete-modal__icon--dir", xmlns: "http://www.w3.org/2000/svg", @@ -2295,8 +2297,8 @@ const To = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, G }, Za = { class: "vuefinder__delete-modal__file-name" }, Qa = { class: "vuefinder__delete-modal__warning" }, ls = { __name: "ModalDelete", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = T(e.modal.data.items), s = T(""), c = () => { - l.value.length && e.emitter.emit("vf-fetch", { + const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items), s = D(""), c = () => { + r.value.length && e.emitter.emit("vf-fetch", { params: { q: "delete", m: "post", @@ -2304,7 +2306,7 @@ const To = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, G path: e.fs.data.dirname }, body: { - items: l.value.map(({ path: i, type: d }) => ({ path: i, type: d })) + items: r.value.map(({ path: i, type: d }) => ({ path: i, type: d })) }, onSuccess: () => { e.emitter.emit("vf-toast-push", { label: n("Files deleted.") }); @@ -2314,48 +2316,48 @@ const To = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, G } }); }; - return (i, d) => (v(), W(Ke, null, { + return (i, d) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: c, class: "vf-btn vf-btn-danger" }, b(o(n)("Yes, Delete!")), 1), - r("button", { + l("button", { type: "button", onClick: d[1] || (d[1] = (a) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Cancel")), 1), - r("div", Qa, b(o(n)("This action cannot be undone.")), 1) + l("div", Qa, b(o(n)("This action cannot be undone.")), 1) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { - icon: o(To), + l("div", null, [ + z(et, { + icon: o(Mo), title: o(n)("Delete files") }, null, 8, ["icon", "title"]), - r("div", ja, [ - r("div", Ga, [ - r("p", Ka, b(o(n)("Are you sure you want to delete these files?")), 1), - r("div", Wa, [ - (v(!0), g(ge, null, xe(l.value, (a) => (v(), g("p", Ya, [ - a.type === "dir" ? (v(), g("svg", Xa, d[2] || (d[2] = [ - r("path", { + l("div", ja, [ + l("div", Ga, [ + l("p", Ka, b(o(n)("Are you sure you want to delete these files?")), 1), + l("div", Wa, [ + (_(!0), g(ge, null, xe(r.value, (a) => (_(), g("p", Ya, [ + a.type === "dir" ? (_(), g("svg", Xa, d[2] || (d[2] = [ + l("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) - ]))) : (v(), g("svg", Ja, d[3] || (d[3] = [ - r("path", { + ]))) : (_(), g("svg", Ja, d[3] || (d[3] = [ + l("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) ]))), - r("span", Za, b(a.basename), 1) + l("span", Za, b(a.basename), 1) ]))), 256)) ]), - s.value.length ? (v(), W(We, { + s.value.length ? (_(), W(We, { key: 0, onHidden: d[0] || (d[0] = (a) => s.value = ""), error: "" @@ -2380,8 +2382,8 @@ const To = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, G viewBox: "0 0 24 24" }; function ti(t, e) { - return v(), g("svg", ei, e[0] || (e[0] = [ - r("path", { d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }, null, -1) + return _(), g("svg", ei, e[0] || (e[0] = [ + l("path", { d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }, null, -1) ])); } const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, si = { class: "vuefinder__rename-modal__item" }, oi = { class: "vuefinder__rename-modal__item-info" }, ri = { @@ -2403,7 +2405,7 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s }, ai = { class: "vuefinder__rename-modal__item-name" }, as = { __name: "ModalRename", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = T(e.modal.data.items[0]), s = T(e.modal.data.items[0].basename), c = T(""), i = () => { + const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items[0]), s = D(e.modal.data.items[0].basename), c = D(""), i = () => { s.value != "" && e.emitter.emit("vf-fetch", { params: { q: "rename", @@ -2412,7 +2414,7 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s path: e.fs.data.dirname }, body: { - item: l.value.path, + item: r.value.path, name: s.value }, onSuccess: () => { @@ -2423,44 +2425,44 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s } }); }; - return (d, a) => (v(), W(Ke, null, { + return (d, a) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: i, class: "vf-btn vf-btn-primary" }, b(o(n)("Rename")), 1), - r("button", { + l("button", { type: "button", onClick: a[2] || (a[2] = (u) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Cancel")), 1) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { + l("div", null, [ + z(et, { icon: o(Do), title: o(n)("Rename") }, null, 8, ["icon", "title"]), - r("div", ni, [ - r("div", si, [ - r("p", oi, [ - l.value.type === "dir" ? (v(), g("svg", ri, a[3] || (a[3] = [ - r("path", { + l("div", ni, [ + l("div", si, [ + l("p", oi, [ + r.value.type === "dir" ? (_(), g("svg", ri, a[3] || (a[3] = [ + l("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) - ]))) : (v(), g("svg", li, a[4] || (a[4] = [ - r("path", { + ]))) : (_(), g("svg", li, a[4] || (a[4] = [ + l("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) ]))), - r("span", ai, b(l.value.basename), 1) + l("span", ai, b(r.value.basename), 1) ]), - ue(r("input", { + ue(l("input", { "onUpdate:modelValue": a[0] || (a[0] = (u) => s.value = u), onKeyup: kt(i, ["enter"]), class: "vuefinder__rename-modal__input", @@ -2469,7 +2471,7 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s }, null, 544), [ [xt, s.value] ]), - c.value.length ? (v(), W(We, { + c.value.length ? (_(), W(We, { key: 0, onHidden: a[1] || (a[1] = (u) => c.value = ""), error: "" @@ -2499,7 +2501,7 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s }; function ii(t) { const e = (n) => { - n.code === Ye.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (n.code === Ye.F2 && t.features.includes(de.RENAME) && (t.dragSelect.getCount() !== 1 || t.modal.open(as, { items: t.dragSelect.getSelected() })), n.code === Ye.F5 && t.emitter.emit("vf-fetch", { params: { q: "index", adapter: t.fs.adapter, path: t.fs.data.dirname } }), n.code === Ye.DELETE && (!t.dragSelect.getCount() || t.modal.open(ls, { items: t.dragSelect.getSelected() })), n.metaKey && n.code === Ye.BACKSLASH && t.modal.open(Mo), n.metaKey && n.code === Ye.KEY_F && t.features.includes(de.SEARCH) && (t.fs.searchMode = !0, n.preventDefault()), n.metaKey && n.code === Ye.KEY_E && (t.showTreeView = !t.showTreeView, t.storage.setStore("show-tree-view", t.showTreeView)), n.metaKey && n.code === Ye.ENTER && (t.fullScreen = !t.fullScreen, t.root.focus()), n.metaKey && n.code === Ye.KEY_A && (t.dragSelect.selectAll(), n.preventDefault()))); + n.code === Ye.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (n.code === Ye.F2 && t.features.includes(de.RENAME) && (t.dragSelect.getCount() !== 1 || t.modal.open(as, { items: t.dragSelect.getSelected() })), n.code === Ye.F5 && t.emitter.emit("vf-fetch", { params: { q: "index", adapter: t.fs.adapter, path: t.fs.data.dirname } }), n.code === Ye.DELETE && (!t.dragSelect.getCount() || t.modal.open(ls, { items: t.dragSelect.getSelected() })), n.metaKey && n.code === Ye.BACKSLASH && t.modal.open(To), n.metaKey && n.code === Ye.KEY_F && t.features.includes(de.SEARCH) && (t.fs.searchMode = !0, n.preventDefault()), n.metaKey && n.code === Ye.KEY_E && (t.showTreeView = !t.showTreeView, t.storage.setStore("show-tree-view", t.showTreeView)), n.metaKey && n.code === Ye.ENTER && (t.fullScreen = !t.fullScreen, t.root.focus()), n.metaKey && n.code === Ye.KEY_A && (t.dragSelect.selectAll(), n.preventDefault()))); }; Se(() => { t.root.addEventListener("keydown", e); @@ -2513,8 +2515,8 @@ const ci = { viewBox: "0 0 24 24" }; function di(t, e) { - return v(), g("svg", ci, e[0] || (e[0] = [ - r("path", { d: "M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44z" }, null, -1) + return _(), g("svg", ci, e[0] || (e[0] = [ + l("path", { d: "M12 10.5v6m3-3H9m4.06-7.19-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44z" }, null, -1) ])); } const Vo = { render: di }, ui = { class: "vuefinder__new-folder-modal__content" }, vi = { class: "vuefinder__new-folder-modal__form" }, _i = { class: "vuefinder__new-folder-modal__description" }, fi = ["placeholder"], Oo = { @@ -2522,8 +2524,8 @@ const Vo = { render: di }, ui = { class: "vuefinder__new-folder-modal__content" setup(t) { const e = re("ServiceContainer"); e.storage; - const { t: n } = e.i18n, l = T(""), s = T(""), c = () => { - l.value !== "" && e.emitter.emit("vf-fetch", { + const { t: n } = e.i18n, r = D(""), s = D(""), c = () => { + r.value !== "" && e.emitter.emit("vf-fetch", { params: { q: "newfolder", m: "post", @@ -2531,48 +2533,48 @@ const Vo = { render: di }, ui = { class: "vuefinder__new-folder-modal__content" path: e.fs.data.dirname }, body: { - name: l.value + name: r.value }, onSuccess: () => { - e.emitter.emit("vf-toast-push", { label: n("%s is created.", l.value) }); + e.emitter.emit("vf-toast-push", { label: n("%s is created.", r.value) }); }, onError: (i) => { s.value = n(i.message); } }); }; - return (i, d) => (v(), W(Ke, null, { + return (i, d) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: c, class: "vf-btn vf-btn-primary" }, b(o(n)("Create")), 1), - r("button", { + l("button", { type: "button", onClick: d[2] || (d[2] = (a) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Cancel")), 1) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { + l("div", null, [ + z(et, { icon: o(Vo), title: o(n)("New Folder") }, null, 8, ["icon", "title"]), - r("div", ui, [ - r("div", vi, [ - r("p", _i, b(o(n)("Create a new folder")), 1), - ue(r("input", { - "onUpdate:modelValue": d[0] || (d[0] = (a) => l.value = a), + l("div", ui, [ + l("div", vi, [ + l("p", _i, b(o(n)("Create a new folder")), 1), + ue(l("input", { + "onUpdate:modelValue": d[0] || (d[0] = (a) => r.value = a), onKeyup: kt(c, ["enter"]), class: "vuefinder__new-folder-modal__input", placeholder: o(n)("Folder Name"), type: "text" }, null, 40, fi), [ - [xt, l.value] + [xt, r.value] ]), - s.value.length ? (v(), W(We, { + s.value.length ? (_(), W(We, { key: 0, onHidden: d[1] || (d[1] = (a) => s.value = ""), error: "" @@ -2597,8 +2599,8 @@ const Vo = { render: di }, ui = { class: "vuefinder__new-folder-modal__content" viewBox: "0 0 24 24" }; function pi(t, e) { - return v(), g("svg", mi, e[0] || (e[0] = [ - r("path", { d: "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-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 0 0-9-9" }, null, -1) + return _(), g("svg", mi, e[0] || (e[0] = [ + l("path", { d: "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-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 0 0-9-9" }, null, -1) ])); } const Lo = { render: pi }, hi = { class: "vuefinder__new-file-modal__content" }, gi = { class: "vuefinder__new-file-modal__form" }, bi = { class: "vuefinder__new-file-modal__description" }, wi = ["placeholder"], yi = { @@ -2606,8 +2608,8 @@ const Lo = { render: pi }, hi = { class: "vuefinder__new-file-modal__content" }, setup(t) { const e = re("ServiceContainer"); e.storage; - const { t: n } = e.i18n, l = T(""), s = T(""), c = () => { - l.value !== "" && e.emitter.emit("vf-fetch", { + const { t: n } = e.i18n, r = D(""), s = D(""), c = () => { + r.value !== "" && e.emitter.emit("vf-fetch", { params: { q: "newfile", m: "post", @@ -2615,48 +2617,48 @@ const Lo = { render: pi }, hi = { class: "vuefinder__new-file-modal__content" }, path: e.fs.data.dirname }, body: { - name: l.value + name: r.value }, onSuccess: () => { - e.emitter.emit("vf-toast-push", { label: n("%s is created.", l.value) }); + e.emitter.emit("vf-toast-push", { label: n("%s is created.", r.value) }); }, onError: (i) => { s.value = n(i.message); } }); }; - return (i, d) => (v(), W(Ke, null, { + return (i, d) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: c, class: "vf-btn vf-btn-primary" }, b(o(n)("Create")), 1), - r("button", { + l("button", { type: "button", onClick: d[2] || (d[2] = (a) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Cancel")), 1) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { + l("div", null, [ + z(et, { icon: o(Lo), title: o(n)("New File") }, null, 8, ["icon", "title"]), - r("div", hi, [ - r("div", gi, [ - r("p", bi, b(o(n)("Create a new file")), 1), - ue(r("input", { - "onUpdate:modelValue": d[0] || (d[0] = (a) => l.value = a), + l("div", hi, [ + l("div", gi, [ + l("p", bi, b(o(n)("Create a new file")), 1), + ue(l("input", { + "onUpdate:modelValue": d[0] || (d[0] = (a) => r.value = a), onKeyup: kt(c, ["enter"]), class: "vuefinder__new-file-modal__input", placeholder: o(n)("File Name"), type: "text" }, null, 40, wi), [ - [xt, l.value] + [xt, r.value] ]), - s.value.length ? (v(), W(We, { + s.value.length ? (_(), W(We, { key: 0, onHidden: d[1] || (d[1] = (a) => s.value = ""), error: "" @@ -2686,8 +2688,8 @@ const ki = { viewBox: "0 0 24 24" }; function xi(t, e) { - return v(), g("svg", ki, e[0] || (e[0] = [ - r("path", { d: "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5" }, null, -1) + return _(), g("svg", ki, e[0] || (e[0] = [ + l("path", { d: "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5" }, null, -1) ])); } const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $i = { @@ -2696,7 +2698,7 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ }, Ci = { key: 1, class: "pointer-events-none" -}, Ei = ["disabled"], Ai = ["disabled"], Mi = { class: "vuefinder__upload-modal__file-list vf-scrollbar" }, Ti = ["textContent"], Di = { class: "vuefinder__upload-modal__file-info" }, Vi = { class: "vuefinder__upload-modal__file-name hidden md:block" }, Oi = { class: "vuefinder__upload-modal__file-name md:hidden" }, Li = { +}, Ei = ["disabled"], Ai = ["disabled"], Ti = { class: "vuefinder__upload-modal__file-list vf-scrollbar" }, Mi = ["textContent"], Di = { class: "vuefinder__upload-modal__file-info" }, Vi = { class: "vuefinder__upload-modal__file-name hidden md:block" }, Oi = { class: "vuefinder__upload-modal__file-name md:hidden" }, Li = { key: 0, class: "ml-auto" }, Fi = ["title", "disabled", "onClick"], Hi = { @@ -2705,27 +2707,27 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ }, Ri = ["disabled"], Bi = { __name: "ModalUpload", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = n("uppy"), s = { + const e = re("ServiceContainer"), { t: n } = e.i18n, r = n("uppy"), s = { PENDING: 0, CANCELED: 1, UPLOADING: 2, ERROR: 3, DONE: 10 - }, c = T({ QUEUE_ENTRY_STATUS: s }), i = T(null), d = T(null), a = T(null), u = T(null), f = T(null), _ = T(null), p = T([]), m = T(""), h = T(!1), S = T(!1); - let w; - function D(E) { - return p.value.findIndex((B) => B.id === E); + }, c = D({ QUEUE_ENTRY_STATUS: s }), i = D(null), d = D(null), a = D(null), u = D(null), m = D(null), v = D(null), p = D([]), f = D(""), h = D(!1), x = D(!1); + let S; + function E(A) { + return p.value.findIndex((B) => B.id === A); } - function R(E, B = null) { - B = B ?? (E.webkitRelativePath || E.name), w.addFile({ + function R(A, B = null) { + B = B ?? (A.webkitRelativePath || A.name), S.addFile({ name: B, - type: E.type, - data: E, + type: A.type, + data: A, source: "Local" }); } - function A(E) { - switch (E.status) { + function T(A) { + switch (A.status) { case s.DONE: return "text-green-600"; case s.ERROR: @@ -2737,8 +2739,8 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ return ""; } } - const $ = (E) => { - switch (E.status) { + const $ = (A) => { + switch (A.status) { case s.DONE: return "✓"; case s.ERROR: @@ -2754,36 +2756,36 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ } function L() { if (!h.value) { - if (!p.value.filter((E) => E.status !== s.DONE).length) { - m.value = n("Please select file to upload first."); + if (!p.value.filter((A) => A.status !== s.DONE).length) { + f.value = n("Please select file to upload first."); return; } - m.value = "", w.retryAll(), w.upload(); + f.value = "", S.retryAll(), S.upload(); } } function P() { - w.cancelAll({ reason: "user" }), p.value.forEach((E) => { - E.status !== s.DONE && (E.status = s.CANCELED, E.statusName = n("Canceled")); + S.cancelAll({ reason: "user" }), p.value.forEach((A) => { + A.status !== s.DONE && (A.status = s.CANCELED, A.statusName = n("Canceled")); }), h.value = !1; } - function O(E) { - h.value || (w.removeFile(E.id, "removed-by-user"), p.value.splice(D(E.id), 1)); + function O(A) { + h.value || (S.removeFile(A.id, "removed-by-user"), p.value.splice(E(A.id), 1)); } - function k(E) { + function y(A) { if (!h.value) { - if (w.cancelAll({ reason: "user" }), E) { + if (S.cancelAll({ reason: "user" }), A) { const B = []; - p.value.forEach((x) => { - x.status !== s.DONE && B.push(x); - }), p.value = [], B.forEach((x) => { - R(x.originalFile, x.name); + p.value.forEach((k) => { + k.status !== s.DONE && B.push(k); + }), p.value = [], B.forEach((k) => { + R(k.originalFile, k.name); }); return; } p.value.splice(0); } } - function y() { + function w() { e.modal.close(); } function C() { @@ -2794,202 +2796,202 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ }); } return Se(async () => { - w = new vr({ + S = new vr({ debug: e.debug, restrictions: { maxFileSize: xr(e.maxFileSize) //maxNumberOfFiles //allowedFileTypes }, - locale: l, - onBeforeFileAdded(x, N) { - if (N[x.id] != null) { - const ee = D(x.id); - p.value[ee].status === s.PENDING && (m.value = w.i18n("noDuplicates", { fileName: x.name })), p.value = p.value.filter((se) => se.id !== x.id); + locale: r, + onBeforeFileAdded(k, N) { + if (N[k.id] != null) { + const ee = E(k.id); + p.value[ee].status === s.PENDING && (f.value = S.i18n("noDuplicates", { fileName: k.name })), p.value = p.value.filter((se) => se.id !== k.id); } return p.value.push({ - id: x.id, - name: x.name, - size: e.filesize(x.size), + id: k.id, + name: k.name, + size: e.filesize(k.size), status: s.PENDING, statusName: n("Pending upload"), percent: null, - originalFile: x.data + originalFile: k.data }), !0; } - }), w.use(_r, { + }), S.use(_r, { endpoint: "WILL_BE_REPLACED_BEFORE_UPLOAD", limit: 5, timeout: 0, - getResponseError(x, N) { + getResponseError(k, N) { let U; try { - U = JSON.parse(x).message; + U = JSON.parse(k).message; } catch { U = n("Cannot parse server response."); } return new Error(U); } - }), w.on("restriction-failed", (x, N) => { - const U = p.value[D(x.id)]; - O(U), m.value = N.message; - }), w.on("upload", () => { - const x = C(); - w.setMeta({ ...x.body }); - const N = w.getPlugin("XHRUpload"); - N.opts.method = x.method, N.opts.endpoint = x.url + "?" + new URLSearchParams(x.params), N.opts.headers = x.headers, delete x.headers["Content-Type"], h.value = !0, p.value.forEach((U) => { + }), S.on("restriction-failed", (k, N) => { + const U = p.value[E(k.id)]; + O(U), f.value = N.message; + }), S.on("upload", () => { + const k = C(); + S.setMeta({ ...k.body }); + const N = S.getPlugin("XHRUpload"); + N.opts.method = k.method, N.opts.endpoint = k.url + "?" + new URLSearchParams(k.params), N.opts.headers = k.headers, delete k.headers["Content-Type"], h.value = !0, p.value.forEach((U) => { U.status !== s.DONE && (U.percent = null, U.status = s.UPLOADING, U.statusName = n("Pending upload")); }); - }), w.on("upload-progress", (x, N) => { + }), S.on("upload-progress", (k, N) => { const U = Math.floor(N.bytesUploaded / N.bytesTotal * 100); - p.value[D(x.id)].percent = `${U}%`; - }), w.on("upload-success", (x) => { - const N = p.value[D(x.id)]; + p.value[E(k.id)].percent = `${U}%`; + }), S.on("upload-success", (k) => { + const N = p.value[E(k.id)]; N.status = s.DONE, N.statusName = n("Done"); - }), w.on("upload-error", (x, N) => { - const U = p.value[D(x.id)]; + }), S.on("upload-error", (k, N) => { + const U = p.value[E(k.id)]; U.percent = null, U.status = s.ERROR, N.isNetworkError ? U.statusName = n("Network Error, Unable establish connection to the server or interrupted.") : U.statusName = N ? N.message : n("Unknown Error"); - }), w.on("error", (x) => { - m.value = x.message, h.value = !1, e.emitter.emit("vf-fetch", { + }), S.on("error", (k) => { + f.value = k.message, h.value = !1, e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname }, noCloseModal: !0 }); - }), w.on("complete", () => { + }), S.on("complete", () => { h.value = !1, e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname }, noCloseModal: !0 }); }), u.value.addEventListener("click", () => { d.value.click(); - }), f.value.addEventListener("click", () => { + }), m.value.addEventListener("click", () => { a.value.click(); - }), _.value.addEventListener("dragover", (x) => { - x.preventDefault(), S.value = !0; - }), _.value.addEventListener("dragleave", (x) => { - x.preventDefault(), S.value = !1; + }), v.value.addEventListener("dragover", (k) => { + k.preventDefault(), x.value = !0; + }), v.value.addEventListener("dragleave", (k) => { + k.preventDefault(), x.value = !1; }); - function E(x, N) { - N.isFile && N.file((U) => x(N, U)), N.isDirectory && N.createReader().readEntries((U) => { + function A(k, N) { + N.isFile && N.file((U) => k(N, U)), N.isDirectory && N.createReader().readEntries((U) => { U.forEach((ee) => { - E(x, ee); + A(k, ee); }); }); } - _.value.addEventListener("drop", (x) => { - x.preventDefault(), S.value = !1; + v.value.addEventListener("drop", (k) => { + k.preventDefault(), x.value = !1; const N = /^[/\\](.+)/; - [...x.dataTransfer.items].forEach((U) => { - U.kind === "file" && E((ee, se) => { + [...k.dataTransfer.items].forEach((U) => { + U.kind === "file" && A((ee, se) => { const ne = N.exec(ee.fullPath); R(se, ne[1]); }, U.webkitGetAsEntry()); }); }); - const B = ({ target: x }) => { - const N = x.files; + const B = ({ target: k }) => { + const N = k.files; for (const U of N) R(U); - x.value = ""; + k.value = ""; }; d.value.addEventListener("change", B), a.value.addEventListener("change", B); }), Hs(() => { - w == null || w.close({ reason: "unmount" }); - }), (E, B) => (v(), W(Ke, null, { + S == null || S.close({ reason: "unmount" }); + }), (A, B) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", class: "vf-btn vf-btn-primary", disabled: h.value, - onClick: st(L, ["prevent"]) + onClick: Ze(L, ["prevent"]) }, b(o(n)("Upload")), 9, Ri), - h.value ? (v(), g("button", { + h.value ? (_(), g("button", { key: 0, type: "button", class: "vf-btn vf-btn-secondary", - onClick: st(P, ["prevent"]) - }, b(o(n)("Cancel")), 1)) : (v(), g("button", { + onClick: Ze(P, ["prevent"]) + }, b(o(n)("Cancel")), 1)) : (_(), g("button", { key: 1, type: "button", class: "vf-btn vf-btn-secondary", - onClick: st(y, ["prevent"]) + onClick: Ze(w, ["prevent"]) }, b(o(n)("Close")), 1)) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { + l("div", null, [ + z(et, { icon: o(Fo), title: o(n)("Upload Files") }, null, 8, ["icon", "title"]), - r("div", Si, [ - r("div", { + l("div", Si, [ + l("div", { class: "vuefinder__upload-modal__drop-area", ref_key: "dropArea", - ref: _, + ref: v, onClick: V }, [ - S.value ? (v(), g("div", $i, b(o(n)("Release to drop these files.")), 1)) : (v(), g("div", Ci, b(o(n)("Drag and drop the files/folders to here or click here.")), 1)) + x.value ? (_(), g("div", $i, b(o(n)("Release to drop these files.")), 1)) : (_(), g("div", Ci, b(o(n)("Drag and drop the files/folders to here or click here.")), 1)) ], 512), - r("div", { + l("div", { ref_key: "container", ref: i, class: "vuefinder__upload-modal__buttons" }, [ - r("button", { + l("button", { ref_key: "pickFiles", ref: u, type: "button", class: "vf-btn vf-btn-secondary" }, b(o(n)("Select Files")), 513), - r("button", { + l("button", { ref_key: "pickFolders", - ref: f, + ref: m, type: "button", class: "vf-btn vf-btn-secondary" }, b(o(n)("Select Folders")), 513), - r("button", { + l("button", { type: "button", class: "vf-btn vf-btn-secondary", disabled: h.value, - onClick: B[0] || (B[0] = (x) => k(!1)) + onClick: B[0] || (B[0] = (k) => y(!1)) }, b(o(n)("Clear all")), 9, Ei), - r("button", { + l("button", { type: "button", class: "vf-btn vf-btn-secondary", disabled: h.value, - onClick: B[1] || (B[1] = (x) => k(!0)) + onClick: B[1] || (B[1] = (k) => y(!0)) }, b(o(n)("Clear only successful")), 9, Ai) ], 512), - r("div", Mi, [ - (v(!0), g(ge, null, xe(p.value, (x) => (v(), g("div", { + l("div", Ti, [ + (_(!0), g(ge, null, xe(p.value, (k) => (_(), g("div", { class: "vuefinder__upload-modal__file-entry", - key: x.id + key: k.id }, [ - r("span", { - class: le(["vuefinder__upload-modal__file-icon", A(x)]) + l("span", { + class: le(["vuefinder__upload-modal__file-icon", T(k)]) }, [ - r("span", { + l("span", { class: "vuefinder__upload-modal__file-icon-text", - textContent: b($(x)) - }, null, 8, Ti) + textContent: b($(k)) + }, null, 8, Mi) ], 2), - r("div", Di, [ - r("div", Vi, b(o(zn)(x.name, 40)) + " (" + b(x.size) + ")", 1), - r("div", Oi, b(o(zn)(x.name, 16)) + " (" + b(x.size) + ")", 1), - r("div", { - class: le(["vuefinder__upload-modal__file-status", A(x)]) + l("div", Di, [ + l("div", Vi, b(o(zn)(k.name, 40)) + " (" + b(k.size) + ")", 1), + l("div", Oi, b(o(zn)(k.name, 16)) + " (" + b(k.size) + ")", 1), + l("div", { + class: le(["vuefinder__upload-modal__file-status", T(k)]) }, [ - J(b(x.statusName) + " ", 1), - x.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b", Li, b(x.percent), 1)) : q("", !0) + J(b(k.statusName) + " ", 1), + k.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (_(), g("b", Li, b(k.percent), 1)) : q("", !0) ], 2) ]), - r("button", { + l("button", { type: "button", class: le(["vuefinder__upload-modal__file-remove", h.value ? "disabled" : ""]), title: o(n)("Delete"), disabled: h.value, - onClick: (N) => O(x) + onClick: (N) => O(k) }, B[3] || (B[3] = [ - r("svg", { + l("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", @@ -2997,7 +2999,7 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ stroke: "currentColor", class: "vuefinder__upload-modal__file-remove-icon" }, [ - r("path", { + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18L18 6M6 6l12 12" @@ -3005,28 +3007,28 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ ], -1) ]), 10, Fi) ]))), 128)), - p.value.length ? q("", !0) : (v(), g("div", Hi, b(o(n)("No files selected!")), 1)) + p.value.length ? q("", !0) : (_(), g("div", Hi, b(o(n)("No files selected!")), 1)) ]), - m.value.length ? (v(), W(We, { + f.value.length ? (_(), W(We, { key: 0, - onHidden: B[2] || (B[2] = (x) => m.value = ""), + onHidden: B[2] || (B[2] = (k) => f.value = ""), error: "" }, { default: Q(() => [ - J(b(m.value), 1) + J(b(f.value), 1) ]), _: 1 })) : q("", !0) ]) ]), - r("input", { + l("input", { ref_key: "internalFileInput", ref: d, type: "file", multiple: "", class: "hidden" }, null, 512), - r("input", { + l("input", { ref_key: "internalFolderInput", ref: a, type: "file", @@ -3046,8 +3048,8 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $ viewBox: "0 0 24 24" }; function Ni(t, e) { - return v(), g("svg", Ii, e[0] || (e[0] = [ - r("path", { d: "m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.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.125" }, null, -1) + return _(), g("svg", Ii, e[0] || (e[0] = [ + l("path", { d: "m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.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.125" }, null, -1) ])); } const Ho = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" }, qi = { class: "vuefinder__unarchive-modal__items" }, zi = { class: "vuefinder__unarchive-modal__item" }, Pi = { @@ -3069,7 +3071,7 @@ const Ho = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" } }, Gi = { class: "vuefinder__unarchive-modal__item-name" }, Ki = { class: "vuefinder__unarchive-modal__info" }, Ro = { __name: "ModalUnarchive", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = T(e.modal.data.items[0]), s = T(""), c = T([]), i = () => { + const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items[0]), s = D(""), c = D([]), i = () => { e.emitter.emit("vf-fetch", { params: { q: "unarchive", @@ -3078,7 +3080,7 @@ const Ho = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" } path: e.fs.data.dirname }, body: { - item: l.value.path + item: r.value.path }, onSuccess: () => { e.emitter.emit("vf-toast-push", { label: n("The file unarchived.") }); @@ -3088,45 +3090,45 @@ const Ho = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" } } }); }; - return (d, a) => (v(), W(Ke, null, { + return (d, a) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: i, class: "vf-btn vf-btn-primary" }, b(o(n)("Unarchive")), 1), - r("button", { + l("button", { type: "button", onClick: a[1] || (a[1] = (u) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Cancel")), 1) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { + l("div", null, [ + z(et, { icon: o(Ho), title: o(n)("Unarchive") }, null, 8, ["icon", "title"]), - r("div", Ui, [ - r("div", qi, [ - (v(!0), g(ge, null, xe(c.value, (u) => (v(), g("p", zi, [ - u.type === "dir" ? (v(), g("svg", Pi, a[2] || (a[2] = [ - r("path", { + l("div", Ui, [ + l("div", qi, [ + (_(!0), g(ge, null, xe(c.value, (u) => (_(), g("p", zi, [ + u.type === "dir" ? (_(), g("svg", Pi, a[2] || (a[2] = [ + l("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) - ]))) : (v(), g("svg", ji, a[3] || (a[3] = [ - r("path", { + ]))) : (_(), g("svg", ji, a[3] || (a[3] = [ + l("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) ]))), - r("span", Gi, b(u.basename), 1) + l("span", Gi, b(u.basename), 1) ]))), 256)), - r("p", Ki, b(o(n)("The archive will be unarchived at")) + " (" + b(o(e).fs.data.dirname) + ")", 1), - s.value.length ? (v(), W(We, { + l("p", Ki, b(o(n)("The archive will be unarchived at")) + " (" + b(o(e).fs.data.dirname) + ")", 1), + s.value.length ? (_(), W(We, { key: 0, onHidden: a[0] || (a[0] = (u) => s.value = ""), error: "" @@ -3151,8 +3153,8 @@ const Ho = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" } viewBox: "0 0 24 24" }; function Yi(t, e) { - return v(), g("svg", Wi, e[0] || (e[0] = [ - r("path", { d: "m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-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.125" }, null, -1) + return _(), g("svg", Wi, e[0] || (e[0] = [ + l("path", { d: "m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-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.125" }, null, -1) ])); } const Bo = { render: Yi }, Xi = { class: "vuefinder__archive-modal__content" }, Ji = { class: "vuefinder__archive-modal__form" }, Zi = { class: "vuefinder__archive-modal__files vf-scrollbar" }, Qi = { class: "vuefinder__archive-modal__file" }, ec = { @@ -3174,7 +3176,7 @@ const Bo = { render: Yi }, Xi = { class: "vuefinder__archive-modal__content" }, }, nc = { class: "vuefinder__archive-modal__file-name" }, sc = ["placeholder"], Io = { __name: "ModalArchive", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = T(""), s = T(""), c = T(e.modal.data.items), i = () => { + const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(""), s = D(""), c = D(e.modal.data.items), i = () => { c.value.length && e.emitter.emit("vf-fetch", { params: { q: "archive", @@ -3184,7 +3186,7 @@ const Bo = { render: Yi }, Xi = { class: "vuefinder__archive-modal__content" }, }, body: { items: c.value.map(({ path: d, type: a }) => ({ path: d, type: a })), - name: l.value + name: r.value }, onSuccess: () => { e.emitter.emit("vf-toast-push", { label: n("The file(s) archived.") }); @@ -3194,55 +3196,55 @@ const Bo = { render: Yi }, Xi = { class: "vuefinder__archive-modal__content" }, } }); }; - return (d, a) => (v(), W(Ke, null, { + return (d, a) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: i, class: "vf-btn vf-btn-primary" }, b(o(n)("Archive")), 1), - r("button", { + l("button", { type: "button", onClick: a[2] || (a[2] = (u) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Cancel")), 1) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { + l("div", null, [ + z(et, { icon: o(Bo), title: o(n)("Archive the files") }, null, 8, ["icon", "title"]), - r("div", Xi, [ - r("div", Ji, [ - r("div", Zi, [ - (v(!0), g(ge, null, xe(c.value, (u) => (v(), g("p", Qi, [ - u.type === "dir" ? (v(), g("svg", ec, a[3] || (a[3] = [ - r("path", { + l("div", Xi, [ + l("div", Ji, [ + l("div", Zi, [ + (_(!0), g(ge, null, xe(c.value, (u) => (_(), g("p", Qi, [ + u.type === "dir" ? (_(), g("svg", ec, a[3] || (a[3] = [ + l("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) - ]))) : (v(), g("svg", tc, a[4] || (a[4] = [ - r("path", { + ]))) : (_(), g("svg", tc, a[4] || (a[4] = [ + l("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) ]))), - r("span", nc, b(u.basename), 1) + l("span", nc, b(u.basename), 1) ]))), 256)) ]), - ue(r("input", { - "onUpdate:modelValue": a[0] || (a[0] = (u) => l.value = u), + ue(l("input", { + "onUpdate:modelValue": a[0] || (a[0] = (u) => r.value = u), onKeyup: kt(i, ["enter"]), class: "vuefinder__archive-modal__input", placeholder: o(n)("Archive name. (.zip file will be created)"), type: "text" }, null, 40, sc), [ - [xt, l.value] + [xt, r.value] ]), - s.value.length ? (v(), W(We, { + s.value.length ? (_(), W(We, { key: 0, onHidden: a[1] || (a[1] = (u) => s.value = ""), error: "" @@ -3266,8 +3268,8 @@ const Bo = { render: Yi }, Xi = { class: "vuefinder__archive-modal__content" }, viewBox: "0 0 24 24" }; function rc(t, e) { - return v(), g("svg", oc, e[0] || (e[0] = [ - r("circle", { + return _(), g("svg", oc, e[0] || (e[0] = [ + l("circle", { cx: "12", cy: "12", r: "10", @@ -3275,7 +3277,7 @@ function rc(t, e) { "stroke-width": "4", class: "opacity-25 stroke-blue-900 dark:stroke-blue-100" }, null, -1), - r("path", { + l("path", { fill: "currentColor", d: "M4 12a8 8 0 0 1 8-8V0C5.373 0 0 5.373 0 12zm2 5.291A7.96 7.96 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938z", class: "opacity-75" @@ -3290,8 +3292,8 @@ const is = { render: rc }, lc = { viewBox: "0 0 24 24" }; function ac(t, e) { - return v(), g("svg", lc, e[0] || (e[0] = [ - r("path", { 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" }, null, -1) + return _(), g("svg", lc, e[0] || (e[0] = [ + l("path", { 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" }, null, -1) ])); } const ic = { render: ac }, cc = { @@ -3302,8 +3304,8 @@ const ic = { render: ac }, cc = { viewBox: "0 0 24 24" }; function dc(t, e) { - return v(), g("svg", cc, e[0] || (e[0] = [ - r("path", { d: "M9 9V4.5M9 9H4.5M9 9 3.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.5 5.25 5.25" }, null, -1) + return _(), g("svg", cc, e[0] || (e[0] = [ + l("path", { d: "M9 9V4.5M9 9H4.5M9 9 3.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.5 5.25 5.25" }, null, -1) ])); } const uc = { render: dc }, vc = { @@ -3314,8 +3316,8 @@ const uc = { render: dc }, vc = { viewBox: "0 0 24 24" }; function _c(t, e) { - return v(), g("svg", vc, e[0] || (e[0] = [ - r("path", { d: "M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18zM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18z" }, null, -1) + return _(), g("svg", vc, e[0] || (e[0] = [ + l("path", { d: "M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18zM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18z" }, null, -1) ])); } const fc = { render: _c }, mc = { @@ -3326,8 +3328,8 @@ const fc = { render: _c }, mc = { viewBox: "0 0 24 24" }; function pc(t, e) { - return v(), g("svg", mc, e[0] || (e[0] = [ - r("path", { d: "M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75" }, null, -1) + return _(), g("svg", mc, e[0] || (e[0] = [ + l("path", { d: "M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75" }, null, -1) ])); } const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = { @@ -3336,114 +3338,114 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = { }, wc = ["title"], yc = ["title"], kc = ["title"], xc = ["title"], Sc = ["title"], $c = ["title"], Cc = ["title"], Ec = { key: 1, class: "vuefinder__toolbar__search-results" -}, Ac = { class: "pl-2" }, Mc = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, Tc = { class: "vuefinder__toolbar__controls" }, Dc = ["title"], Vc = ["title"], Oc = { +}, Ac = { class: "pl-2" }, Tc = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, Mc = { class: "vuefinder__toolbar__controls" }, Dc = ["title"], Vc = ["title"], Oc = { __name: "Toolbar", setup(t) { - const e = re("ServiceContainer"), { setStore: n } = e.storage, { t: l } = e.i18n, s = e.dragSelect, c = T(""); + const e = re("ServiceContainer"), { setStore: n } = e.storage, { t: r } = e.i18n, s = e.dragSelect, c = D(""); e.emitter.on("vf-search-query", ({ newQuery: a }) => { c.value = a; }); const i = () => { e.fullScreen = !e.fullScreen; }; - He(() => e.fullScreen, () => { + Me(() => e.fullScreen, () => { e.fullScreen ? document.querySelector("body").style.overflow = "hidden" : document.querySelector("body").style.overflow = "", n("full-screen", e.fullScreen), e.emitter.emit("vf-fullscreen-toggle"); }); const d = () => { e.view = e.view === "list" ? "grid" : "list", s.refreshSelection(), n("viewport", e.view); }; - return (a, u) => (v(), g("div", gc, [ - c.value.length ? (v(), g("div", Ec, [ - r("div", Ac, [ - J(b(o(l)("Search results for")) + " ", 1), - r("span", Mc, b(c.value), 1) + return (a, u) => (_(), g("div", gc, [ + c.value.length ? (_(), g("div", Ec, [ + l("div", Ac, [ + J(b(o(r)("Search results for")) + " ", 1), + l("span", Tc, b(c.value), 1) ]), - o(e).fs.loading ? (v(), W(o(is), { key: 0 })) : q("", !0) - ])) : (v(), g("div", bc, [ - o(e).features.includes(o(de).NEW_FOLDER) ? (v(), g("div", { + o(e).loadingIndicator === "circular" && o(e).fs.loading ? (_(), W(o(is), { key: 0 })) : q("", !0) + ])) : (_(), g("div", bc, [ + o(e).features.includes(o(de).NEW_FOLDER) ? (_(), g("div", { key: 0, class: "mx-1.5", - title: o(l)("New Folder"), - onClick: u[0] || (u[0] = (f) => o(e).modal.open(Oo, { items: o(s).getSelected() })) + title: o(r)("New Folder"), + onClick: u[0] || (u[0] = (m) => o(e).modal.open(Oo, { items: o(s).getSelected() })) }, [ z(o(Vo)) ], 8, wc)) : q("", !0), - o(e).features.includes(o(de).NEW_FILE) ? (v(), g("div", { + o(e).features.includes(o(de).NEW_FILE) ? (_(), g("div", { key: 1, class: "mx-1.5", - title: o(l)("New File"), - onClick: u[1] || (u[1] = (f) => o(e).modal.open(yi, { items: o(s).getSelected() })) + title: o(r)("New File"), + onClick: u[1] || (u[1] = (m) => o(e).modal.open(yi, { items: o(s).getSelected() })) }, [ z(o(Lo)) ], 8, yc)) : q("", !0), - o(e).features.includes(o(de).RENAME) ? (v(), g("div", { + o(e).features.includes(o(de).RENAME) ? (_(), g("div", { key: 2, class: "mx-1.5", - title: o(l)("Rename"), - onClick: u[2] || (u[2] = (f) => o(s).getCount() !== 1 || o(e).modal.open(as, { items: o(s).getSelected() })) + title: o(r)("Rename"), + onClick: u[2] || (u[2] = (m) => o(s).getCount() !== 1 || o(e).modal.open(as, { items: o(s).getSelected() })) }, [ z(o(Do), { class: le(o(s).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled") }, null, 8, ["class"]) ], 8, kc)) : q("", !0), - o(e).features.includes(o(de).DELETE) ? (v(), g("div", { + o(e).features.includes(o(de).DELETE) ? (_(), g("div", { key: 3, class: "mx-1.5", - title: o(l)("Delete"), - onClick: u[3] || (u[3] = (f) => !o(s).getCount() || o(e).modal.open(ls, { items: o(s).getSelected() })) + title: o(r)("Delete"), + onClick: u[3] || (u[3] = (m) => !o(s).getCount() || o(e).modal.open(ls, { items: o(s).getSelected() })) }, [ - z(o(To), { + z(o(Mo), { class: le(o(s).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled") }, null, 8, ["class"]) ], 8, xc)) : q("", !0), - o(e).features.includes(o(de).UPLOAD) ? (v(), g("div", { + o(e).features.includes(o(de).UPLOAD) ? (_(), g("div", { key: 4, class: "mx-1.5", - title: o(l)("Upload"), - onClick: u[4] || (u[4] = (f) => o(e).modal.open(Bi, { items: o(s).getSelected() })) + title: o(r)("Upload"), + onClick: u[4] || (u[4] = (m) => o(e).modal.open(Bi, { items: o(s).getSelected() })) }, [ z(o(Fo)) ], 8, Sc)) : q("", !0), - o(e).features.includes(o(de).UNARCHIVE) && o(s).getCount() === 1 && o(s).getSelected()[0].mime_type === "application/zip" ? (v(), g("div", { + o(e).features.includes(o(de).UNARCHIVE) && o(s).getCount() === 1 && o(s).getSelected()[0].mime_type === "application/zip" ? (_(), g("div", { key: 5, class: "mx-1.5", - title: o(l)("Unarchive"), - onClick: u[5] || (u[5] = (f) => !o(s).getCount() || o(e).modal.open(Ro, { items: o(s).getSelected() })) + title: o(r)("Unarchive"), + onClick: u[5] || (u[5] = (m) => !o(s).getCount() || o(e).modal.open(Ro, { items: o(s).getSelected() })) }, [ z(o(Ho), { class: le(o(s).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled") }, null, 8, ["class"]) ], 8, $c)) : q("", !0), - o(e).features.includes(o(de).ARCHIVE) ? (v(), g("div", { + o(e).features.includes(o(de).ARCHIVE) ? (_(), g("div", { key: 6, class: "mx-1.5", - title: o(l)("Archive"), - onClick: u[6] || (u[6] = (f) => !o(s).getCount() || o(e).modal.open(Io, { items: o(s).getSelected() })) + title: o(r)("Archive"), + onClick: u[6] || (u[6] = (m) => !o(s).getCount() || o(e).modal.open(Io, { items: o(s).getSelected() })) }, [ z(o(Bo), { class: le(o(s).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled") }, null, 8, ["class"]) ], 8, Cc)) : q("", !0) ])), - r("div", Tc, [ - o(e).features.includes(o(de).FULL_SCREEN) ? (v(), g("div", { + l("div", Mc, [ + o(e).features.includes(o(de).FULL_SCREEN) ? (_(), g("div", { key: 0, onClick: i, class: "mx-1.5", - title: o(l)("Toggle Full Screen") + title: o(r)("Toggle Full Screen") }, [ - o(e).fullScreen ? (v(), W(o(uc), { key: 0 })) : (v(), W(o(ic), { key: 1 })) + o(e).fullScreen ? (_(), W(o(uc), { key: 0 })) : (_(), W(o(ic), { key: 1 })) ], 8, Dc)) : q("", !0), - r("div", { + l("div", { class: "mx-1.5", - title: o(l)("Change View"), - onClick: u[7] || (u[7] = (f) => c.value.length || d()) + title: o(r)("Change View"), + onClick: u[7] || (u[7] = (m) => c.value.length || d()) }, [ - o(e).view === "grid" ? (v(), W(o(fc), { + o(e).view === "grid" ? (_(), W(o(fc), { key: 0, class: le(["vf-toolbar-icon", c.value.length ? "vf-toolbar-icon-disabled" : ""]) }, null, 8, ["class"])) : q("", !0), - o(e).view === "list" ? (v(), W(o(hc), { + o(e).view === "list" ? (_(), W(o(hc), { key: 1, class: le(["vf-toolbar-icon", c.value.length ? "vf-toolbar-icon-disabled" : ""]) }, null, 8, ["class"])) : q("", !0) @@ -3452,21 +3454,21 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = { ])); } }, Lc = (t, e = 0, n = !1) => { - let l; + let r; return (...s) => { - n && !l && t(...s), clearTimeout(l), l = setTimeout(() => { + n && !r && t(...s), clearTimeout(r), r = setTimeout(() => { t(...s); }, e); }; }, Vs = (t, e, n) => { - const l = T(t); + const r = D(t); return sr((s, c) => ({ get() { - return s(), l.value; + return s(), r.value; }, set: Lc( (i) => { - l.value = i, c(); + r.value = i, c(); }, e, n @@ -3482,8 +3484,8 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = { viewBox: "0 0 24 24" }; function Hc(t, e) { - return v(), g("svg", Fc, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", Fc, e[0] || (e[0] = [ + l("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 3" @@ -3509,8 +3511,8 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic }, Pc = { class: "vuefinder__move-modal__file-name" }, jc = { class: "vuefinder__move-modal__target-title" }, Gc = { class: "vuefinder__move-modal__target-directory" }, Kc = { class: "vuefinder__move-modal__target-path" }, Wc = { class: "vuefinder__move-modal__selected-items" }, Pn = { __name: "ModalMove", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = T(e.modal.data.items.from), s = T(""), c = () => { - l.value.length && e.emitter.emit("vf-fetch", { + const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items.from), s = D(""), c = () => { + r.value.length && e.emitter.emit("vf-fetch", { params: { q: "move", m: "post", @@ -3518,7 +3520,7 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic path: e.fs.data.dirname }, body: { - items: l.value.map(({ path: i, type: d }) => ({ path: i, type: d })), + items: r.value.map(({ path: i, type: d }) => ({ path: i, type: d })), item: e.modal.data.items.to.path }, onSuccess: () => { @@ -3529,51 +3531,51 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic } }); }; - return (i, d) => (v(), W(Ke, null, { + return (i, d) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: c, class: "vf-btn vf-btn-primary" }, b(o(n)("Yes, Move!")), 1), - r("button", { + l("button", { type: "button", onClick: d[1] || (d[1] = (a) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Cancel")), 1), - r("div", Wc, b(o(n)("%s item(s) selected.", l.value.length)), 1) + l("div", Wc, b(o(n)("%s item(s) selected.", r.value.length)), 1) ]), default: Q(() => [ - r("div", null, [ - z(Qe, { + l("div", null, [ + z(et, { icon: o(Rc), title: o(n)("Move files") }, null, 8, ["icon", "title"]), - r("div", Bc, [ - r("p", Ic, b(o(n)("Are you sure you want to move these files?")), 1), - r("div", Nc, [ - (v(!0), g(ge, null, xe(l.value, (a) => (v(), g("div", Uc, [ - r("div", null, [ - a.type === "dir" ? (v(), g("svg", qc, d[2] || (d[2] = [ - r("path", { + l("div", Bc, [ + l("p", Ic, b(o(n)("Are you sure you want to move these files?")), 1), + l("div", Nc, [ + (_(!0), g(ge, null, xe(r.value, (a) => (_(), g("div", Uc, [ + l("div", null, [ + a.type === "dir" ? (_(), g("svg", qc, d[2] || (d[2] = [ + l("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) - ]))) : (v(), g("svg", zc, d[3] || (d[3] = [ - r("path", { + ]))) : (_(), g("svg", zc, d[3] || (d[3] = [ + l("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) ]))) ]), - r("div", Pc, b(a.path), 1) + l("div", Pc, b(a.path), 1) ]))), 256)) ]), - r("h4", jc, b(o(n)("Target Directory")), 1), - r("p", Gc, [ - d[4] || (d[4] = r("svg", { + l("h4", jc, b(o(n)("Target Directory")), 1), + l("p", Gc, [ + d[4] || (d[4] = l("svg", { xmlns: "http://www.w3.org/2000/svg", class: "vuefinder__move-modal__icon vuefinder__move-modal__icon--dir", fill: "none", @@ -3581,15 +3583,15 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic stroke: "currentColor", "stroke-width": "1" }, [ - r("path", { + l("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)), - r("span", Kc, b(o(e).modal.data.items.to.path), 1) + l("span", Kc, b(o(e).modal.data.items.to.path), 1) ]), - s.value.length ? (v(), W(We, { + s.value.length ? (_(), W(We, { key: 0, onHidden: d[0] || (d[0] = (a) => s.value = ""), error: "" @@ -3612,8 +3614,8 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic viewBox: "-40 -40 580 580" }; function Xc(t, e) { - return v(), g("svg", Yc, e[0] || (e[0] = [ - r("path", { d: "M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-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.2S334.3 224 344 224z" }, null, -1) + return _(), g("svg", Yc, e[0] || (e[0] = [ + l("path", { d: "M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-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.2S334.3 224 344 224z" }, null, -1) ])); } const Jc = { render: Xc }, Zc = { @@ -3623,8 +3625,8 @@ const Jc = { render: Xc }, Zc = { viewBox: "0 0 20 20" }; function Qc(t, e) { - return v(), g("svg", Zc, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", Zc, e[0] || (e[0] = [ + l("path", { "fill-rule": "evenodd", d: "M5.293 9.707a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L11 7.414V15a1 1 0 1 1-2 0V7.414L6.707 9.707a1 1 0 0 1-1.414 0", class: "pointer-events-none", @@ -3641,8 +3643,8 @@ const ed = { render: Qc }, td = { viewBox: "0 0 24 24" }; function nd(t, e) { - return v(), g("svg", td, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", td, e[0] || (e[0] = [ + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" @@ -3656,8 +3658,8 @@ const sd = { render: nd }, od = { viewBox: "0 0 20 20" }; function rd(t, e) { - return v(), g("svg", od, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", od, e[0] || (e[0] = [ + l("path", { d: "M10.707 2.293a1 1 0 0 0-1.414 0l-7 7a1 1 0 0 0 1.414 1.414L4 10.414V17a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-6.586l.293.293a1 1 0 0 0 1.414-1.414z", class: "pointer-events-none" }, null, -1) @@ -3670,8 +3672,8 @@ const ld = { render: rd }, ad = { viewBox: "0 0 20 20" }; function id(t, e) { - return v(), g("svg", ad, e[0] || (e[0] = [ - r("path", { d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607" }, null, -1) + return _(), g("svg", ad, e[0] || (e[0] = [ + l("path", { d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607" }, null, -1) ])); } const cd = { render: id }, dd = { @@ -3683,8 +3685,8 @@ const cd = { render: id }, dd = { viewBox: "0 0 24 24" }; function ud(t, e) { - return v(), g("svg", dd, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", dd, e[0] || (e[0] = [ + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" @@ -3699,8 +3701,8 @@ const vd = { render: ud }, _d = { viewBox: "0 0 24 24" }; function fd(t, e) { - return v(), g("svg", _d, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", _d, e[0] || (e[0] = [ + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3 7v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-6l-2-2H5a2 2 0 0 0-2 2" @@ -3718,12 +3720,12 @@ const mn = { render: fd }, md = { viewBox: "0 0 24 24" }; function pd(t, e) { - return v(), g("svg", md, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", md, e[0] || (e[0] = [ + l("path", { stroke: "none", d: "M0 0h24v24H0z" }, null, -1), - r("path", { d: "M9 6h11M12 12h8M15 18h5M5 6v.01M8 12v.01M11 18v.01" }, null, -1) + l("path", { d: "M9 6h11M12 12h8M15 18h5M5 6v.01M8 12v.01M11 18v.01" }, null, -1) ])); } const hd = { render: pd }, gd = { @@ -3732,66 +3734,66 @@ const hd = { render: pd }, gd = { viewBox: "0 0 448 512" }; function bd(t, e) { - return v(), g("svg", gd, e[0] || (e[0] = [ - r("path", { d: "M8 256a56 56 0 1 1 112 0 56 56 0 1 1-112 0m160 0a56 56 0 1 1 112 0 56 56 0 1 1-112 0m216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112" }, null, -1) + return _(), g("svg", gd, e[0] || (e[0] = [ + l("path", { d: "M8 256a56 56 0 1 1 112 0 56 56 0 1 1-112 0m160 0a56 56 0 1 1 112 0 56 56 0 1 1-112 0m216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112" }, null, -1) ])); } const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, kd = ["title"], xd = ["title"], Sd = ["title"], $d = ["title"], Cd = { class: "vuefinder__breadcrumb__list" }, Ed = { key: 0, class: "vuefinder__breadcrumb__hidden-list" -}, Ad = { class: "relative" }, Md = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], Td = { class: "vuefinder__breadcrumb__search-mode" }, Dd = ["placeholder"], Vd = { class: "vuefinder__breadcrumb__hidden-dropdown" }, Od = ["onDrop", "onClick"], Ld = { class: "vuefinder__breadcrumb__hidden-item-content" }, Fd = { class: "vuefinder__breadcrumb__hidden-item-text" }, Hd = { +}, Ad = { class: "relative" }, Td = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], Md = { class: "vuefinder__breadcrumb__search-mode" }, Dd = ["placeholder"], Vd = { class: "vuefinder__breadcrumb__hidden-dropdown" }, Od = ["onDrop", "onClick"], Ld = { class: "vuefinder__breadcrumb__hidden-item-content" }, Fd = { class: "vuefinder__breadcrumb__hidden-item-text" }, Hd = { __name: "Breadcrumb", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = e.dragSelect, { setStore: s } = e.storage, c = T(null), i = Vs(0, 100); - He(i, (O) => { - const k = c.value.children; - let y = 0, C = 0, E = 5, B = 1; - e.fs.limitBreadcrumbItems(E), ct(() => { - for (let x = k.length - 1; x >= 0 && !(y + k[x].offsetWidth > i.value - 40); x--) - y += parseInt(k[x].offsetWidth, 10), C++; - C < B && (C = B), C > E && (C = E), e.fs.limitBreadcrumbItems(C); + const e = re("ServiceContainer"), { t: n } = e.i18n, r = e.dragSelect, { setStore: s } = e.storage, c = D(null), i = Vs(0, 100); + Me(i, (O) => { + const y = c.value.children; + let w = 0, C = 0, A = 5, B = 1; + e.fs.limitBreadcrumbItems(A), ct(() => { + for (let k = y.length - 1; k >= 0 && !(w + y[k].offsetWidth > i.value - 40); k--) + w += parseInt(y[k].offsetWidth, 10), C++; + C < B && (C = B), C > A && (C = A), e.fs.limitBreadcrumbItems(C); }); }); const d = () => { i.value = c.value.offsetWidth; }; - let a = T(null); + let a = D(null); Se(() => { a.value = new ResizeObserver(d), a.value.observe(c.value); }), jn(() => { a.value.disconnect(); }); - const u = (O, k = null) => { - O.preventDefault(), l.isDraggingRef.value = !1, p(O), k ?? (k = e.fs.hiddenBreadcrumbs.length - 1); - let y = JSON.parse(O.dataTransfer.getData("items")); - if (y.find((C) => C.storage !== e.fs.adapter)) { + const u = (O, y = null) => { + O.preventDefault(), r.isDraggingRef.value = !1, p(O), y ?? (y = e.fs.hiddenBreadcrumbs.length - 1); + let w = JSON.parse(O.dataTransfer.getData("items")); + if (w.find((C) => C.storage !== e.fs.adapter)) { alert("Moving items between different storages is not supported yet."); return; } e.modal.open(Pn, { items: { - from: y, - to: e.fs.hiddenBreadcrumbs[k] ?? { path: e.fs.adapter + "://" } + from: w, + to: e.fs.hiddenBreadcrumbs[y] ?? { path: e.fs.adapter + "://" } } }); - }, f = (O, k = null) => { - O.preventDefault(), l.isDraggingRef.value = !1, p(O), k ?? (k = e.fs.breadcrumbs.length - 2); - let y = JSON.parse(O.dataTransfer.getData("items")); - if (y.find((C) => C.storage !== e.fs.adapter)) { + }, m = (O, y = null) => { + O.preventDefault(), r.isDraggingRef.value = !1, p(O), y ?? (y = e.fs.breadcrumbs.length - 2); + let w = JSON.parse(O.dataTransfer.getData("items")); + if (w.find((C) => C.storage !== e.fs.adapter)) { alert("Moving items between different storages is not supported yet."); return; } e.modal.open(Pn, { items: { - from: y, - to: e.fs.breadcrumbs[k] ?? { path: e.fs.adapter + "://" } + from: w, + to: e.fs.breadcrumbs[y] ?? { path: e.fs.adapter + "://" } } }); - }, _ = (O) => { + }, v = (O) => { O.preventDefault(), e.fs.isGoUpAvailable() ? (O.dataTransfer.dropEffect = "copy", O.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-600")) : (O.dataTransfer.dropEffect = "none", O.dataTransfer.effectAllowed = "none"); }, p = (O) => { O.preventDefault(), O.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600"), e.fs.isGoUpAvailable() && O.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600"); - }, m = () => { + }, f = () => { L(), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } }); }, h = () => { L(), !e.fs.isGoUpAvailable() || e.emitter.emit("vf-fetch", { @@ -3801,32 +3803,32 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k path: e.fs.parentFolderPath } }); - }, S = (O) => { + }, x = (O) => { e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: O.path } }), e.fs.toggleHiddenBreadcrumbs(!1); - }, w = () => { + }, S = () => { e.fs.showHiddenBreadcrumbs && e.fs.toggleHiddenBreadcrumbs(!1); - }, D = { - mounted(O, k, y, C) { - O.clickOutsideEvent = function(E) { - O === E.target || O.contains(E.target) || k.value(); + }, E = { + mounted(O, y, w, C) { + O.clickOutsideEvent = function(A) { + O === A.target || O.contains(A.target) || y.value(); }, document.body.addEventListener("click", O.clickOutsideEvent); }, - beforeUnmount(O, k, y, C) { + beforeUnmount(O, y, w, C) { document.body.removeEventListener("click", O.clickOutsideEvent); } }, R = () => { e.showTreeView = !e.showTreeView; }; - He(() => e.showTreeView, (O, k) => { - O !== k && s("show-tree-view", O); + Me(() => e.showTreeView, (O, y) => { + O !== y && s("show-tree-view", O); }); - const A = T(null), $ = () => { - e.features.includes(de.SEARCH) && (e.fs.searchMode = !0, ct(() => A.value.focus())); + const T = D(null), $ = () => { + e.features.includes(de.SEARCH) && (e.fs.searchMode = !0, ct(() => T.value.focus())); }, V = Vs("", 400); - He(V, (O) => { + Me(V, (O) => { e.emitter.emit("vf-toast-clear"), e.emitter.emit("vf-search-query", { newQuery: O }); - }), He(() => e.fs.searchMode, (O) => { - O && ct(() => A.value.focus()); + }), Me(() => e.fs.searchMode, (O) => { + O && ct(() => T.value.focus()); }); const L = () => { e.fs.searchMode = !1, V.value = ""; @@ -3837,8 +3839,8 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k const P = () => { V.value === "" && L(); }; - return (O, k) => (v(), g("div", yd, [ - r("span", { + return (O, y) => (_(), g("div", yd, [ + l("span", { title: o(n)("Toggle Tree View") }, [ z(o(hd), { @@ -3846,90 +3848,90 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k class: le(["vuefinder__breadcrumb__toggle-tree", o(e).showTreeView ? "vuefinder__breadcrumb__toggle-tree--active" : ""]) }, null, 8, ["class"]) ], 8, kd), - r("span", { + l("span", { title: o(n)("Go up a directory") }, [ z(o(ed), { - onDragover: k[0] || (k[0] = (y) => _(y)), - onDragleave: k[1] || (k[1] = (y) => p(y)), - onDrop: k[2] || (k[2] = (y) => f(y)), + onDragover: y[0] || (y[0] = (w) => v(w)), + onDragleave: y[1] || (y[1] = (w) => p(w)), + onDrop: y[2] || (y[2] = (w) => m(w)), onClick: h, class: le(o(e).fs.isGoUpAvailable() ? "vuefinder__breadcrumb__go-up--active" : "vuefinder__breadcrumb__go-up--inactive") }, null, 8, ["class"]) ], 8, xd), - o(e).fs.loading ? (v(), g("span", { + o(e).fs.loading ? (_(), g("span", { key: 1, title: o(n)("Cancel") }, [ z(o(sd), { - onClick: k[3] || (k[3] = (y) => o(e).emitter.emit("vf-fetch-abort")) + onClick: y[3] || (y[3] = (w) => o(e).emitter.emit("vf-fetch-abort")) }) - ], 8, $d)) : (v(), g("span", { + ], 8, $d)) : (_(), g("span", { key: 0, title: o(n)("Refresh") }, [ - z(o(Jc), { onClick: m }) + z(o(Jc), { onClick: f }) ], 8, Sd)), - ue(r("div", { - onClick: st($, ["self"]), + ue(l("div", { + onClick: Ze($, ["self"]), class: "group vuefinder__breadcrumb__search-container" }, [ - r("div", null, [ + l("div", null, [ z(o(ld), { - onDragover: k[4] || (k[4] = (y) => _(y)), - onDragleave: k[5] || (k[5] = (y) => p(y)), - onDrop: k[6] || (k[6] = (y) => f(y, -1)), - onClick: k[7] || (k[7] = (y) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: o(e).fs.adapter } })) + onDragover: y[4] || (y[4] = (w) => v(w)), + onDragleave: y[5] || (y[5] = (w) => p(w)), + onDrop: y[6] || (y[6] = (w) => m(w, -1)), + onClick: y[7] || (y[7] = (w) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: o(e).fs.adapter } })) }) ]), - r("div", Cd, [ - o(e).fs.hiddenBreadcrumbs.length ? ue((v(), g("div", Ed, [ - k[13] || (k[13] = r("div", { class: "vuefinder__breadcrumb__separator" }, "/", -1)), - r("div", Ad, [ - r("span", { - onDragenter: k[8] || (k[8] = (y) => o(e).fs.toggleHiddenBreadcrumbs(!0)), - onClick: k[9] || (k[9] = (y) => o(e).fs.toggleHiddenBreadcrumbs()), + l("div", Cd, [ + o(e).fs.hiddenBreadcrumbs.length ? ue((_(), g("div", Ed, [ + y[13] || (y[13] = l("div", { class: "vuefinder__breadcrumb__separator" }, "/", -1)), + l("div", Ad, [ + l("span", { + onDragenter: y[8] || (y[8] = (w) => o(e).fs.toggleHiddenBreadcrumbs(!0)), + onClick: y[9] || (y[9] = (w) => o(e).fs.toggleHiddenBreadcrumbs()), class: "vuefinder__breadcrumb__hidden-toggle" }, [ z(o(wd), { class: "vuefinder__breadcrumb__hidden-toggle-icon" }) ], 32) ]) ])), [ - [D, w] + [E, S] ]) : q("", !0) ]), - r("div", { + l("div", { ref_key: "breadcrumbContainer", ref: c, class: "vuefinder__breadcrumb__visible-list", - onClick: st($, ["self"]) + onClick: Ze($, ["self"]) }, [ - (v(!0), g(ge, null, xe(o(e).fs.breadcrumbs, (y, C) => (v(), g("div", { key: C }, [ - k[14] || (k[14] = r("span", { class: "vuefinder__breadcrumb__separator" }, "/", -1)), - r("span", { - onDragover: (E) => C === o(e).fs.breadcrumbs.length - 1 || _(E), - onDragleave: (E) => C === o(e).fs.breadcrumbs.length - 1 || p(E), - onDrop: (E) => C === o(e).fs.breadcrumbs.length - 1 || f(E, C), + (_(!0), g(ge, null, xe(o(e).fs.breadcrumbs, (w, C) => (_(), g("div", { key: C }, [ + y[14] || (y[14] = l("span", { class: "vuefinder__breadcrumb__separator" }, "/", -1)), + l("span", { + onDragover: (A) => C === o(e).fs.breadcrumbs.length - 1 || v(A), + onDragleave: (A) => C === o(e).fs.breadcrumbs.length - 1 || p(A), + onDrop: (A) => C === o(e).fs.breadcrumbs.length - 1 || m(A, C), class: "vuefinder__breadcrumb__item", - title: y.basename, - onClick: (E) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: o(e).fs.adapter, path: y.path } }) - }, b(y.name), 41, Md) + title: w.basename, + onClick: (A) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: o(e).fs.adapter, path: w.path } }) + }, b(w.name), 41, Td) ]))), 128)) ], 512), - o(e).fs.loading ? (v(), W(o(is), { key: 0 })) : q("", !0) + o(e).loadingIndicator === "circular" && o(e).fs.loading ? (_(), W(o(is), { key: 0 })) : q("", !0) ], 512), [ [Ue, !o(e).fs.searchMode] ]), - ue(r("div", Td, [ - r("div", null, [ + ue(l("div", Md, [ + l("div", null, [ z(o(cd)) ]), - ue(r("input", { + ue(l("input", { ref_key: "searchInput", - ref: A, + ref: T, onKeydown: kt(L, ["esc"]), onBlur: P, - "onUpdate:modelValue": k[10] || (k[10] = (y) => or(V) ? V.value = y : null), + "onUpdate:modelValue": y[10] || (y[10] = (w) => or(V) ? V.value = w : null), placeholder: o(n)("Search anything.."), class: "vuefinder__breadcrumb__search-input", type: "text" @@ -3940,21 +3942,21 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k ], 512), [ [Ue, o(e).fs.searchMode] ]), - ue(r("div", Vd, [ - (v(!0), g(ge, null, xe(o(e).fs.hiddenBreadcrumbs, (y, C) => (v(), g("div", { + ue(l("div", Vd, [ + (_(!0), g(ge, null, xe(o(e).fs.hiddenBreadcrumbs, (w, C) => (_(), g("div", { key: C, - onDragover: k[11] || (k[11] = (E) => _(E)), - onDragleave: k[12] || (k[12] = (E) => p(E)), - onDrop: (E) => u(E, C), - onClick: (E) => S(y), + onDragover: y[11] || (y[11] = (A) => v(A)), + onDragleave: y[12] || (y[12] = (A) => p(A)), + onDrop: (A) => u(A, C), + onClick: (A) => x(w), class: "vuefinder__breadcrumb__hidden-item" }, [ - r("div", Ld, [ - r("span", null, [ + l("div", Ld, [ + l("span", null, [ z(o(mn), { class: "vuefinder__breadcrumb__hidden-item-icon" }) ]), - k[15] || (k[15] = J()), - r("span", Fd, b(y.name), 1) + y[15] || (y[15] = J()), + l("span", Fd, b(w.name), 1) ]) ], 40, Od))), 128)) ], 512), [ @@ -3965,10 +3967,10 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k }, No = (t, e = null) => new Date(t * 1e3).toLocaleString(e ?? navigator.language ?? "en-US"), Rd = ["onClick"], Bd = { __name: "Toast", setup(t) { - const e = re("ServiceContainer"), { getStore: n } = e.storage, l = T(n("full-screen", !1)), s = T([]), c = (a) => a === "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 = (a) => { + const e = re("ServiceContainer"), { getStore: n } = e.storage, r = D(n("full-screen", !1)), s = D([]), c = (a) => a === "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 = (a) => { s.value.splice(a, 1); }, d = (a) => { - let u = s.value.findIndex((f) => f.id === a); + let u = s.value.findIndex((m) => m.id === a); u !== -1 && i(u); }; return e.emitter.on("vf-toast-clear", () => { @@ -3978,8 +3980,8 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k a.id = u, s.value.push(a), setTimeout(() => { d(u); }, 5e3); - }), (a, u) => (v(), g("div", { - class: le(["vuefinder__toast", l.value.value ? "vuefinder__toast--fixed" : "vuefinder__toast--absolute"]) + }), (a, u) => (_(), g("div", { + class: le(["vuefinder__toast", r.value.value ? "vuefinder__toast--fixed" : "vuefinder__toast--absolute"]) }, [ z(rr, { name: "vuefinder__toast-item", @@ -3988,11 +3990,11 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k "leave-to-class": "vuefinder__toast-item--leave-to" }, { default: Q(() => [ - (v(!0), g(ge, null, xe(s.value, (f, _) => (v(), g("div", { - key: _, - onClick: (p) => i(_), - class: le(["vuefinder__toast__message", c(f.type)]) - }, b(f.label), 11, Rd))), 128)) + (_(!0), g(ge, null, xe(s.value, (m, v) => (_(), g("div", { + key: v, + onClick: (p) => i(v), + class: le(["vuefinder__toast__message", c(m.type)]) + }, b(m.label), 11, Rd))), 128)) ]), _: 1 }) @@ -4005,8 +4007,8 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k viewBox: "0 0 20 20" }; function Nd(t, e) { - return v(), g("svg", Id, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", Id, e[0] || (e[0] = [ + l("path", { "fill-rule": "evenodd", d: "M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414", "clip-rule": "evenodd" @@ -4020,8 +4022,8 @@ const Ud = { render: Nd }, qd = { viewBox: "0 0 20 20" }; function zd(t, e) { - return v(), g("svg", qd, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", qd, e[0] || (e[0] = [ + l("path", { "fill-rule": "evenodd", d: "M14.707 12.707a1 1 0 0 1-1.414 0L10 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414", "clip-rule": "evenodd" @@ -4032,9 +4034,9 @@ const Pd = { render: zd }, Gt = { __name: "SortIcon", props: { direction: String }, setup(t) { - return (e, n) => (v(), g("div", null, [ - t.direction === "asc" ? (v(), W(o(Ud), { key: 0 })) : q("", !0), - t.direction === "desc" ? (v(), W(o(Pd), { key: 1 })) : q("", !0) + return (e, n) => (_(), g("div", null, [ + t.direction === "asc" ? (_(), W(o(Ud), { key: 0 })) : q("", !0), + t.direction === "desc" ? (_(), W(o(Pd), { key: 1 })) : q("", !0) ])); } }, jd = { @@ -4045,8 +4047,8 @@ const Pd = { render: zd }, Gt = { viewBox: "0 0 24 24" }; function Gd(t, e) { - return v(), g("svg", jd, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", jd, e[0] || (e[0] = [ + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2" @@ -4066,11 +4068,11 @@ const Kd = { render: Gd }, Wd = { class: "vuefinder__item-icon" }, $n = { } }, setup(t) { - return (e, n) => (v(), g("span", Wd, [ - t.type === "dir" ? (v(), W(o(mn), { + return (e, n) => (_(), g("span", Wd, [ + t.type === "dir" ? (_(), W(o(mn), { key: 0, class: le(t.small ? "vuefinder__item-icon--small" : "vuefinder__item-icon--large") - }, null, 8, ["class"])) : (v(), W(o(Kd), { + }, null, 8, ["class"])) : (_(), W(o(Kd), { key: 1, class: le(t.small ? "vuefinder__item-icon--small" : "vuefinder__item-icon--large") }, null, 8, ["class"])) @@ -4084,8 +4086,8 @@ const Kd = { render: Gd }, Wd = { class: "vuefinder__item-icon" }, $n = { viewBox: "0 0 24 24" }; function Xd(t, e) { - return v(), g("svg", Yd, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", Yd, e[0] || (e[0] = [ + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7 21h10a2 2 0 0 0 2-2V9.414a1 1 0 0 0-.293-.707l-5.414-5.414A1 1 0 0 0 12.586 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2" @@ -4102,9 +4104,9 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd }, setup(t) { const e = t; - return (n, l) => (v(), g("div", Zd, [ + return (n, r) => (_(), g("div", Zd, [ z(o(Jd)), - r("div", Qd, b(e.count), 1) + l("div", Qd, b(e.count), 1) ])); } }, tu = { class: "vuefinder__text-preview" }, nu = { class: "vuefinder__text-preview__header" }, su = ["title"], ou = { class: "vuefinder__text-preview__actions" }, ru = { @@ -4114,19 +4116,19 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd __name: "Text", emits: ["success"], setup(t, { emit: e }) { - const n = e, l = T(""), s = T(""), c = T(null), i = T(!1), d = T(""), a = T(!1), u = re("ServiceContainer"), { t: f } = u.i18n; + const n = e, r = D(""), s = D(""), c = D(null), i = D(!1), d = D(""), a = D(!1), u = re("ServiceContainer"), { t: m } = u.i18n; Se(() => { u.requester.send({ url: "", method: "get", params: { q: "preview", adapter: u.modal.data.adapter, path: u.modal.data.item.path }, responseType: "text" - }).then((m) => { - l.value = m, n("success"); + }).then((f) => { + r.value = f, n("success"); }); }); - const _ = () => { - i.value = !i.value, s.value = l.value; + const v = () => { + i.value = !i.value, s.value = r.value; }, p = () => { d.value = "", a.value = !1, u.requester.send({ url: "", @@ -4140,38 +4142,38 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd content: s.value }, responseType: "text" - }).then((m) => { - d.value = f("Updated."), l.value = m, n("success"), i.value = !i.value; - }).catch((m) => { - d.value = f(m.message), a.value = !0; + }).then((f) => { + d.value = m("Updated."), r.value = f, n("success"), i.value = !i.value; + }).catch((f) => { + d.value = m(f.message), a.value = !0; }); }; - return (m, h) => (v(), g("div", tu, [ - r("div", nu, [ - r("div", { + return (f, h) => (_(), g("div", tu, [ + l("div", nu, [ + l("div", { class: "vuefinder__text-preview__title", id: "modal-title", title: o(u).modal.data.item.path }, b(o(u).modal.data.item.basename), 9, su), - r("div", ou, [ - i.value ? (v(), g("button", { + l("div", ou, [ + i.value ? (_(), g("button", { key: 0, onClick: p, class: "vuefinder__text-preview__save-button" - }, b(o(f)("Save")), 1)) : q("", !0), - o(u).features.includes(o(de).EDIT) ? (v(), g("button", { + }, b(o(m)("Save")), 1)) : q("", !0), + o(u).features.includes(o(de).EDIT) ? (_(), g("button", { key: 1, class: "vuefinder__text-preview__edit-button", - onClick: h[0] || (h[0] = (S) => _()) - }, b(i.value ? o(f)("Cancel") : o(f)("Edit")), 1)) : q("", !0) + onClick: h[0] || (h[0] = (x) => v()) + }, b(i.value ? o(m)("Cancel") : o(m)("Edit")), 1)) : q("", !0) ]) ]), - r("div", null, [ - i.value ? (v(), g("div", lu, [ - ue(r("textarea", { + l("div", null, [ + i.value ? (_(), g("div", lu, [ + ue(l("textarea", { ref_key: "editInput", ref: c, - "onUpdate:modelValue": h[1] || (h[1] = (S) => s.value = S), + "onUpdate:modelValue": h[1] || (h[1] = (x) => s.value = x), class: "vuefinder__text-preview__textarea", name: "text", cols: "30", @@ -4179,10 +4181,10 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd }, null, 512), [ [xt, s.value] ]) - ])) : (v(), g("pre", ru, b(l.value), 1)), - d.value.length ? (v(), W(We, { + ])) : (_(), g("pre", ru, b(r.value), 1)), + d.value.length ? (_(), W(We, { key: 2, - onHidden: h[2] || (h[2] = (S) => d.value = ""), + onHidden: h[2] || (h[2] = (x) => d.value = ""), error: a.value }, { default: Q(() => [ @@ -4197,30 +4199,30 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd __name: "Image", emits: ["success"], setup(t, { emit: e }) { - const n = e, l = re("ServiceContainer"), { t: s } = l.i18n, c = T(null), i = T(null), d = T(!1), a = T(""), u = T(!1), f = () => { + const n = e, r = re("ServiceContainer"), { t: s } = r.i18n, c = D(null), i = D(null), d = D(!1), a = D(""), u = D(!1), m = () => { d.value = !d.value, d.value ? i.value = new mr(c.value, { crop(p) { } }) : i.value.destroy(); - }, _ = () => { + }, v = () => { i.value.getCroppedCanvas({ width: 795, height: 341 }).toBlob( (p) => { a.value = "", u.value = !1; - const m = new FormData(); - m.set("file", p), l.requester.send({ + const f = new FormData(); + f.set("file", p), r.requester.send({ url: "", method: "post", params: { q: "upload", - adapter: l.modal.data.adapter, - path: l.modal.data.item.path + adapter: r.modal.data.adapter, + path: r.modal.data.item.path }, - body: m + body: f }).then((h) => { - a.value = s("Updated."), c.value.src = l.requester.getPreviewUrl(l.modal.data.adapter, l.modal.data.item), f(), n("success"); + a.value = s("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), m(), n("success"); }).catch((h) => { a.value = s(h.message), u.value = !0; }); @@ -4229,38 +4231,38 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd }; return Se(() => { n("success"); - }), (p, m) => (v(), g("div", iu, [ - r("div", cu, [ - r("h3", { + }), (p, f) => (_(), g("div", iu, [ + l("div", cu, [ + l("h3", { class: "vuefinder__image-preview__title", id: "modal-title", - title: o(l).modal.data.item.path - }, b(o(l).modal.data.item.basename), 9, du), - r("div", uu, [ - d.value ? (v(), g("button", { + title: o(r).modal.data.item.path + }, b(o(r).modal.data.item.basename), 9, du), + l("div", uu, [ + d.value ? (_(), g("button", { key: 0, - onClick: _, + onClick: v, class: "vuefinder__image-preview__crop-button" }, b(o(s)("Crop")), 1)) : q("", !0), - o(l).features.includes(o(de).EDIT) ? (v(), g("button", { + o(r).features.includes(o(de).EDIT) ? (_(), g("button", { key: 1, class: "vuefinder__image-preview__edit-button", - onClick: m[0] || (m[0] = (h) => f()) + onClick: f[0] || (f[0] = (h) => m()) }, b(d.value ? o(s)("Cancel") : o(s)("Edit")), 1)) : q("", !0) ]) ]), - r("div", vu, [ - r("img", { + l("div", vu, [ + l("img", { ref_key: "image", ref: c, class: "vuefinder__image-preview__image", - src: o(l).requester.getPreviewUrl(o(l).modal.data.adapter, o(l).modal.data.item), + src: o(r).requester.getPreviewUrl(o(r).modal.data.adapter, o(r).modal.data.item), alt: "" }, null, 8, _u) ]), - a.value.length ? (v(), W(We, { + a.value.length ? (_(), W(We, { key: 0, - onHidden: m[1] || (m[1] = (h) => a.value = ""), + onHidden: f[1] || (f[1] = (h) => a.value = ""), error: u.value }, { default: Q(() => [ @@ -4274,18 +4276,18 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd __name: "Default", emits: ["success"], setup(t, { emit: e }) { - const n = re("ServiceContainer"), l = e; + const n = re("ServiceContainer"), r = e; return Se(() => { - l("success"); - }), (s, c) => (v(), g("div", mu, [ - r("div", pu, [ - r("h3", { + r("success"); + }), (s, c) => (_(), g("div", mu, [ + l("div", pu, [ + l("h3", { class: "vuefinder__default-preview__title", id: "modal-title", title: o(n).modal.data.item.path }, b(o(n).modal.data.item.basename), 9, hu) ]), - c[0] || (c[0] = r("div", null, null, -1)) + c[0] || (c[0] = l("div", null, null, -1)) ])); } }, bu = { class: "vuefinder__video-preview" }, wu = ["title"], yu = { @@ -4296,18 +4298,18 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd __name: "Video", emits: ["success"], setup(t, { emit: e }) { - const n = re("ServiceContainer"), l = e, s = () => n.requester.getPreviewUrl(n.modal.data.adapter, n.modal.data.item); + const n = re("ServiceContainer"), r = e, s = () => n.requester.getPreviewUrl(n.modal.data.adapter, n.modal.data.item); return Se(() => { - l("success"); - }), (c, i) => (v(), g("div", bu, [ - r("h3", { + r("success"); + }), (c, i) => (_(), g("div", bu, [ + l("h3", { class: "vuefinder__video-preview__title", id: "modal-title", title: o(n).modal.data.item.path }, b(o(n).modal.data.item.basename), 9, wu), - r("div", null, [ - r("video", yu, [ - r("source", { + l("div", null, [ + l("video", yu, [ + l("source", { src: s(), type: "video/mp4" }, null, 8, ku), @@ -4323,18 +4325,18 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd __name: "Audio", emits: ["success"], setup(t, { emit: e }) { - const n = e, l = re("ServiceContainer"), s = () => l.requester.getPreviewUrl(l.modal.data.adapter, l.modal.data.item); + const n = e, r = re("ServiceContainer"), s = () => r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item); return Se(() => { n("success"); - }), (c, i) => (v(), g("div", Su, [ - r("h3", { + }), (c, i) => (_(), g("div", Su, [ + l("h3", { class: "vuefinder__audio-preview__title", id: "modal-title", - title: o(l).modal.data.item.path - }, b(o(l).modal.data.item.basename), 9, $u), - r("div", null, [ - r("audio", Cu, [ - r("source", { + title: o(r).modal.data.item.path + }, b(o(r).modal.data.item.basename), 9, $u), + l("div", null, [ + l("audio", Cu, [ + l("source", { src: s(), type: "audio/mpeg" }, null, 8, Eu), @@ -4343,36 +4345,36 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd ]) ])); } -}, Mu = { class: "vuefinder__pdf-preview" }, Tu = ["title"], Du = ["data"], Vu = ["src"], Ou = { +}, Tu = { class: "vuefinder__pdf-preview" }, Mu = ["title"], Du = ["data"], Vu = ["src"], Ou = { __name: "Pdf", emits: ["success"], setup(t, { emit: e }) { - const n = re("ServiceContainer"), l = e, s = () => n.requester.getPreviewUrl(n.modal.data.adapter, n.modal.data.item); + const n = re("ServiceContainer"), r = e, s = () => n.requester.getPreviewUrl(n.modal.data.adapter, n.modal.data.item); return Se(() => { - l("success"); - }), (c, i) => (v(), g("div", Mu, [ - r("h3", { + r("success"); + }), (c, i) => (_(), g("div", Tu, [ + l("h3", { class: "vuefinder__pdf-preview__title", id: "modal-title", title: o(n).modal.data.item.path - }, b(o(n).modal.data.item.basename), 9, Tu), - r("div", null, [ - r("object", { + }, b(o(n).modal.data.item.basename), 9, Mu), + l("div", null, [ + l("object", { class: "vuefinder__pdf-preview__object", data: s(), type: "application/pdf", width: "100%", height: "100%" }, [ - r("iframe", { + l("iframe", { class: "vuefinder__pdf-preview__iframe", src: s(), width: "100%", height: "100%" }, i[0] || (i[0] = [ - r("p", null, [ + l("p", null, [ J(" Your browser does not support PDFs. "), - r("a", { href: "https://example.com/test.pdf" }, "Download the PDF"), + l("a", { href: "https://example.com/test.pdf" }, "Download the PDF"), J(". ") ], -1) ]), 8, Vu) @@ -4389,15 +4391,15 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd }, qu = ["download", "href"], Uo = { __name: "ModalPreview", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = T(!1), s = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(de.PREVIEW); - return c || (l.value = !0), (i, d) => (v(), W(Ke, null, { + const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(!1), s = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(de.PREVIEW); + return c || (r.value = !0), (i, d) => (_(), W(Ke, null, { buttons: Q(() => [ - r("button", { + l("button", { type: "button", onClick: d[6] || (d[6] = (a) => o(e).modal.close()), class: "vf-btn vf-btn-secondary" }, b(o(n)("Close")), 1), - o(e).features.includes(o(de).DOWNLOAD) ? (v(), g("a", { + o(e).features.includes(o(de).DOWNLOAD) ? (_(), g("a", { key: 0, target: "_blank", class: "vf-btn vf-btn-primary", @@ -4406,38 +4408,38 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd }, b(o(n)("Download")), 9, qu)) : q("", !0) ]), default: Q(() => [ - r("div", null, [ - r("div", Lu, [ - o(c) ? (v(), g("div", Fu, [ - s("text") ? (v(), W(au, { + l("div", null, [ + l("div", Lu, [ + o(c) ? (_(), g("div", Fu, [ + s("text") ? (_(), W(au, { key: 0, - onSuccess: d[0] || (d[0] = (a) => l.value = !0) - })) : s("image") ? (v(), W(fu, { + onSuccess: d[0] || (d[0] = (a) => r.value = !0) + })) : s("image") ? (_(), W(fu, { key: 1, - onSuccess: d[1] || (d[1] = (a) => l.value = !0) - })) : s("video") ? (v(), W(xu, { + onSuccess: d[1] || (d[1] = (a) => r.value = !0) + })) : s("video") ? (_(), W(xu, { key: 2, - onSuccess: d[2] || (d[2] = (a) => l.value = !0) - })) : s("audio") ? (v(), W(Au, { + onSuccess: d[2] || (d[2] = (a) => r.value = !0) + })) : s("audio") ? (_(), W(Au, { key: 3, - onSuccess: d[3] || (d[3] = (a) => l.value = !0) - })) : s("application/pdf") ? (v(), W(Ou, { + onSuccess: d[3] || (d[3] = (a) => r.value = !0) + })) : s("application/pdf") ? (_(), W(Ou, { key: 4, - onSuccess: d[4] || (d[4] = (a) => l.value = !0) - })) : (v(), W(gu, { + onSuccess: d[4] || (d[4] = (a) => r.value = !0) + })) : (_(), W(gu, { key: 5, - onSuccess: d[5] || (d[5] = (a) => l.value = !0) + onSuccess: d[5] || (d[5] = (a) => r.value = !0) })) ])) : q("", !0), - r("div", Hu, [ - l.value === !1 ? (v(), g("div", Ru, [ - d[7] || (d[7] = r("svg", { + l("div", Hu, [ + r.value === !1 ? (_(), g("div", Ru, [ + d[7] || (d[7] = l("svg", { class: "vuefinder__preview-modal__spinner", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24" }, [ - r("circle", { + l("circle", { class: "vuefinder__preview-modal__spinner-circle", cx: "12", cy: "12", @@ -4445,29 +4447,29 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd stroke: "currentColor", "stroke-width": "4" }), - r("path", { + l("path", { class: "vuefinder__preview-modal__spinner-path", 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)), - r("span", null, b(o(n)("Loading")), 1) + l("span", null, b(o(n)("Loading")), 1) ])) : q("", !0) ]) ]) ]), - r("div", Bu, [ - r("div", null, [ - r("span", Iu, b(o(n)("File Size")) + ": ", 1), + l("div", Bu, [ + l("div", null, [ + l("span", Iu, b(o(n)("File Size")) + ": ", 1), J(b(o(e).filesize(o(e).modal.data.item.file_size)), 1) ]), - r("div", null, [ - r("span", Nu, b(o(n)("Last Modified")) + ": ", 1), + l("div", null, [ + l("span", Nu, b(o(n)("Last Modified")) + ": ", 1), J(" " + b(o(No)(o(e).modal.data.item.last_modified)), 1) ]) ]), - o(e).features.includes(o(de).DOWNLOAD) ? (v(), g("div", Uu, [ - r("span", null, b(o(n)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1) + o(e).features.includes(o(de).DOWNLOAD) ? (_(), g("div", Uu, [ + l("span", null, b(o(n)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1) ])) : q("", !0) ]), _: 1 @@ -4484,12 +4486,12 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd viewBox: "0 0 24 24" }; function Pu(t, e) { - return v(), g("svg", zu, e[0] || (e[0] = [ - r("path", { + return _(), g("svg", zu, e[0] || (e[0] = [ + l("path", { stroke: "none", d: "M0 0h24v24H0z" }, null, -1), - r("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1) + l("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1) ])); } const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { @@ -4500,38 +4502,38 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { dragImage: { type: Object } }, setup(t) { - const e = re("ServiceContainer"), n = e.dragSelect, l = t, s = (m) => { - m.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: m.path } })) : e.modal.open(Uo, { adapter: e.fs.adapter, item: m }); + const e = re("ServiceContainer"), n = e.dragSelect, r = t, s = (f) => { + f.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: f.path } })) : e.modal.open(Uo, { adapter: e.fs.adapter, item: f }); }, c = { - mounted(m, h, S, w) { - S.props.draggable && (m.addEventListener("dragstart", (D) => i(D, h.value)), m.addEventListener("dragover", (D) => a(D, h.value)), m.addEventListener("drop", (D) => d(D, h.value))); + mounted(f, h, x, S) { + x.props.draggable && (f.addEventListener("dragstart", (E) => i(E, h.value)), f.addEventListener("dragover", (E) => a(E, h.value)), f.addEventListener("drop", (E) => d(E, h.value))); }, - beforeUnmount(m, h, S, w) { - S.props.draggable && (m.removeEventListener("dragstart", i), m.removeEventListener("dragover", a), m.removeEventListener("drop", d)); + beforeUnmount(f, h, x, S) { + x.props.draggable && (f.removeEventListener("dragstart", i), f.removeEventListener("dragover", a), f.removeEventListener("drop", d)); } - }, i = (m, h) => { - if (m.altKey || m.ctrlKey || m.metaKey) - return m.preventDefault(), !1; - n.isDraggingRef.value = !0, m.dataTransfer.setDragImage(l.dragImage.$el, 0, 15), m.dataTransfer.effectAllowed = "all", m.dataTransfer.dropEffect = "copy", m.dataTransfer.setData("items", JSON.stringify(n.getSelected())); - }, d = (m, h) => { - m.preventDefault(), n.isDraggingRef.value = !1; - let S = JSON.parse(m.dataTransfer.getData("items")); - if (S.find((w) => w.storage !== e.fs.adapter)) { + }, i = (f, h) => { + if (f.altKey || f.ctrlKey || f.metaKey) + return f.preventDefault(), !1; + n.isDraggingRef.value = !0, f.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), f.dataTransfer.effectAllowed = "all", f.dataTransfer.dropEffect = "copy", f.dataTransfer.setData("items", JSON.stringify(n.getSelected())); + }, d = (f, h) => { + f.preventDefault(), n.isDraggingRef.value = !1; + let x = JSON.parse(f.dataTransfer.getData("items")); + if (x.find((S) => S.storage !== e.fs.adapter)) { alert("Moving items between different storages is not supported yet."); return; } - e.modal.open(Pn, { items: { from: S, to: h } }); - }, a = (m, h) => { - m.preventDefault(), !h || h.type !== "dir" || n.getSelection().find((S) => S === m.currentTarget) ? (m.dataTransfer.dropEffect = "none", m.dataTransfer.effectAllowed = "none") : m.dataTransfer.dropEffect = "copy"; + e.modal.open(Pn, { items: { from: x, to: h } }); + }, a = (f, h) => { + f.preventDefault(), !h || h.type !== "dir" || n.getSelection().find((x) => x === f.currentTarget) ? (f.dataTransfer.dropEffect = "none", f.dataTransfer.effectAllowed = "none") : f.dataTransfer.dropEffect = "copy"; }; - let u = null, f = !1; - const _ = () => { + let u = null, m = !1; + const v = () => { u && clearTimeout(u); - }, p = (m) => { - if (!f) - f = !0, setTimeout(() => f = !1, 300); + }, p = (f) => { + if (!m) + m = !0, setTimeout(() => m = !1, 300); else - return f = !1, s(l.item), clearTimeout(u), !1; + return m = !1, s(r.item), clearTimeout(u), !1; u = setTimeout(() => { const h = new MouseEvent("contextmenu", { bubbles: !0, @@ -4539,26 +4541,26 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { view: window, button: 2, buttons: 0, - clientX: m.target.getBoundingClientRect().x, - clientY: m.target.getBoundingClientRect().y + clientX: f.target.getBoundingClientRect().x, + clientY: f.target.getBoundingClientRect().y }); - m.target.dispatchEvent(h); + f.target.dispatchEvent(h); }, 500); }; - return (m, h) => ue((v(), g("div", { - style: rn({ opacity: o(n).isDraggingRef.value && o(n).getSelection().find((S) => m.$el === S) ? "0.5 !important" : "" }), + return (f, h) => ue((_(), g("div", { + style: rn({ opacity: o(n).isDraggingRef.value && o(n).getSelection().find((x) => f.$el === x) ? "0.5 !important" : "" }), class: le(["vuefinder__item", "vf-item-" + o(n).explorerId]), "data-type": t.item.type, key: t.item.path, "data-item": JSON.stringify(t.item), "data-index": t.index, - onDblclick: h[0] || (h[0] = (S) => s(t.item)), - onTouchstart: h[1] || (h[1] = (S) => p(S)), - onTouchend: h[2] || (h[2] = (S) => _()), - onContextmenu: h[3] || (h[3] = st((S) => o(e).emitter.emit("vf-contextmenu-show", { event: S, items: o(n).getSelected(), target: t.item }), ["prevent"])) + onDblclick: h[0] || (h[0] = (x) => s(t.item)), + onTouchstart: h[1] || (h[1] = (x) => p(x)), + onTouchend: h[2] || (h[2] = (x) => v()), + onContextmenu: h[3] || (h[3] = Ze((x) => o(e).emitter.emit("vf-contextmenu-show", { event: x, items: o(n).getSelected(), target: t.item }), ["prevent"])) }, [ - Mt(m.$slots, "default"), - o(e).pinnedFolders.find((S) => S.path === t.item.path) ? (v(), W(o(qo), { + Tt(f.$slots, "default"), + o(e).pinnedFolders.find((x) => x.path === t.item.path) ? (_(), W(o(qo), { key: 0, class: "vuefinder__item--pinned" })) : q("", !0) @@ -4569,37 +4571,40 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { }, Gu = { class: "vuefinder__explorer__container" }, Ku = { key: 0, class: "vuefinder__explorer__header" -}, Wu = { class: "vuefinder__explorer__drag-item" }, Yu = { class: "vuefinder__explorer__item-list-content" }, Xu = { class: "vuefinder__explorer__item-list-name" }, Ju = { class: "vuefinder__explorer__item-name" }, Zu = { class: "vuefinder__explorer__item-path" }, Qu = { class: "vuefinder__explorer__item-list-content" }, ev = { class: "vuefinder__explorer__item-list-name" }, tv = { class: "vuefinder__explorer__item-name" }, nv = { class: "vuefinder__explorer__item-size" }, sv = { class: "vuefinder__explorer__item-date" }, ov = { class: "vuefinder__explorer__item-grid-content" }, rv = ["data-src", "alt"], lv = { +}, Wu = { class: "vuefinder__explorer__drag-item" }, Yu = { + key: 0, + class: "vuefinder__linear-loader absolute" +}, Xu = { class: "vuefinder__explorer__item-list-content" }, Ju = { class: "vuefinder__explorer__item-list-name" }, Zu = { class: "vuefinder__explorer__item-name" }, Qu = { class: "vuefinder__explorer__item-path" }, ev = { class: "vuefinder__explorer__item-list-content" }, tv = { class: "vuefinder__explorer__item-list-name" }, nv = { class: "vuefinder__explorer__item-name" }, sv = { class: "vuefinder__explorer__item-size" }, ov = { class: "vuefinder__explorer__item-date" }, rv = { class: "vuefinder__explorer__item-grid-content" }, lv = ["data-src", "alt"], av = { key: 2, class: "vuefinder__explorer__item-extension" -}, av = { class: "vuefinder__explorer__item-title break-all" }, iv = { +}, iv = { class: "vuefinder__explorer__item-title break-all" }, cv = { __name: "Explorer", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = (_) => _ == null ? void 0 : _.substring(0, 3), s = T(null), c = T(""), i = e.dragSelect; + const e = re("ServiceContainer"), { t: n } = e.i18n, r = (v) => v == null ? void 0 : v.substring(0, 3), s = D(null), c = D(""), i = e.dragSelect; let d; e.emitter.on("vf-fullscreen-toggle", () => { i.area.value.style.height = null; - }), e.emitter.on("vf-search-query", ({ newQuery: _ }) => { - c.value = _, _ ? e.emitter.emit("vf-fetch", { + }), e.emitter.on("vf-search-query", ({ newQuery: v }) => { + c.value = v, v ? e.emitter.emit("vf-fetch", { params: { q: "search", adapter: e.fs.adapter, path: e.fs.data.dirname, - filter: _ + filter: v }, onSuccess: (p) => { p.files.length || e.emitter.emit("vf-toast-push", { label: n("No search result found.") }); } }) : e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } }); }); - const a = yt({ active: !1, column: "", order: "" }), u = (_ = !0) => { - let p = [...e.fs.data.files], m = a.column, h = a.order === "asc" ? 1 : -1; - if (!_) + const a = yt({ active: !1, column: "", order: "" }), u = (v = !0) => { + let p = [...e.fs.data.files], f = a.column, h = a.order === "asc" ? 1 : -1; + if (!v) return p; - const S = (w, D) => typeof w == "string" && typeof D == "string" ? w.toLowerCase().localeCompare(D.toLowerCase()) : w < D ? -1 : w > D ? 1 : 0; - return a.active && (p = p.slice().sort((w, D) => S(w[m], D[m]) * h)), p; - }, f = (_) => { - a.active && a.column === _ ? (a.active = a.order === "asc", a.column = _, a.order = "desc") : (a.active = !0, a.column = _, a.order = "asc"); + const x = (S, E) => typeof S == "string" && typeof E == "string" ? S.toLowerCase().localeCompare(E.toLowerCase()) : S < E ? -1 : S > E ? 1 : 0; + return a.active && (p = p.slice().sort((S, E) => x(S[f], E[f]) * h)), p; + }, m = (v) => { + a.active && a.column === v ? (a.active = a.order === "asc", a.column = v, a.order = "desc") : (a.active = !0, a.column = v, a.order = "asc"); }; return Se(() => { d = new fr(i.area.value); @@ -4607,10 +4612,10 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { d.update(); }), Hs(() => { d.destroy(); - }), (_, p) => (v(), g("div", Gu, [ - o(e).view === "list" || c.value.length ? (v(), g("div", Ku, [ - r("div", { - onClick: p[0] || (p[0] = (m) => f("basename")), + }), (v, p) => (_(), g("div", Gu, [ + o(e).view === "list" || c.value.length ? (_(), g("div", Ku, [ + l("div", { + onClick: p[0] || (p[0] = (f) => m("basename")), class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--name vf-sort-button" }, [ J(b(o(n)("Name")) + " ", 1), @@ -4620,9 +4625,9 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { [Ue, a.active && a.column === "basename"] ]) ]), - c.value.length ? q("", !0) : (v(), g("div", { + c.value.length ? q("", !0) : (_(), g("div", { key: 0, - onClick: p[1] || (p[1] = (m) => f("file_size")), + onClick: p[1] || (p[1] = (f) => m("file_size")), class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--size vf-sort-button" }, [ J(b(o(n)("Size")) + " ", 1), @@ -4632,9 +4637,9 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { [Ue, a.active && a.column === "file_size"] ]) ])), - c.value.length ? q("", !0) : (v(), g("div", { + c.value.length ? q("", !0) : (_(), g("div", { key: 1, - onClick: p[2] || (p[2] = (m) => f("last_modified")), + onClick: p[2] || (p[2] = (f) => m("last_modified")), class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--date vf-sort-button" }, [ J(b(o(n)("Date")) + " ", 1), @@ -4644,9 +4649,9 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { [Ue, a.active && a.column === "last_modified"] ]) ])), - c.value.length ? (v(), g("div", { + c.value.length ? (_(), g("div", { key: 2, - onClick: p[3] || (p[3] = (m) => f("path")), + onClick: p[3] || (p[3] = (f) => m("path")), class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--path vf-sort-button" }, [ J(b(o(n)("Filepath")) + " ", 1), @@ -4657,93 +4662,94 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { ]) ])) : q("", !0) ])) : q("", !0), - r("div", Wu, [ + l("div", Wu, [ z(eu, { ref_key: "dragImage", ref: s, count: o(i).getCount() }, null, 8, ["count"]) ]), - r("div", { + l("div", { ref: o(i).scrollBarContainer, class: le(["vf-explorer-scrollbar-container vuefinder__explorer__scrollbar-container", [{ "grid-view": o(e).view === "grid" }, { "search-active": c.value.length }]]) }, [ - r("div", { + l("div", { ref: o(i).scrollBar, class: "vuefinder__explorer__scrollbar" }, null, 512) ], 2), - r("div", { + l("div", { ref: o(i).area, class: "vuefinder__explorer__selector-area vf-explorer-scrollbar vf-selector-area", - onContextmenu: p[4] || (p[4] = st((m) => o(e).emitter.emit("vf-contextmenu-show", { event: m, items: o(i).getSelected() }), ["self", "prevent"])) + onContextmenu: p[4] || (p[4] = Ze((f) => o(e).emitter.emit("vf-contextmenu-show", { event: f, items: o(i).getSelected() }), ["self", "prevent"])) }, [ - c.value.length ? (v(!0), g(ge, { key: 0 }, xe(u(), (m, h) => (v(), W(Cn, { - item: m, + o(e).loadingIndicator === "linear" && o(e).fs.loading ? (_(), g("div", Yu)) : q("", !0), + c.value.length ? (_(!0), g(ge, { key: 1 }, xe(u(), (f, h) => (_(), W(Cn, { + item: f, index: h, dragImage: s.value, class: "vf-item vf-item-list" }, { default: Q(() => [ - r("div", Yu, [ - r("div", Xu, [ + l("div", Xu, [ + l("div", Ju, [ z($n, { - type: m.type, + type: f.type, small: o(e).compactListView }, null, 8, ["type", "small"]), - r("span", Ju, b(m.basename), 1) + l("span", Zu, b(f.basename), 1) ]), - r("div", Zu, b(m.path), 1) + l("div", Qu, b(f.path), 1) ]) ]), _: 2 }, 1032, ["item", "index", "dragImage"]))), 256)) : q("", !0), - o(e).view === "list" && !c.value.length ? (v(!0), g(ge, { key: 1 }, xe(u(), (m, h) => (v(), W(Cn, { - item: m, + o(e).view === "list" && !c.value.length ? (_(!0), g(ge, { key: 2 }, xe(u(), (f, h) => (_(), W(Cn, { + item: f, index: h, dragImage: s.value, class: "vf-item vf-item-list", draggable: "true", - key: m.path + key: f.path }, { default: Q(() => [ - r("div", Qu, [ - r("div", ev, [ + l("div", ev, [ + l("div", tv, [ z($n, { - type: m.type, + type: f.type, small: o(e).compactListView }, null, 8, ["type", "small"]), - r("span", tv, b(m.basename), 1) + l("span", nv, b(f.basename), 1) ]), - r("div", nv, b(m.file_size ? o(e).filesize(m.file_size) : ""), 1), - r("div", sv, b(o(No)(m.last_modified)), 1) + l("div", sv, b(f.file_size ? o(e).filesize(f.file_size) : ""), 1), + l("div", ov, b(o(No)(f.last_modified)), 1) ]) ]), _: 2 }, 1032, ["item", "index", "dragImage"]))), 128)) : q("", !0), - o(e).view === "grid" && !c.value.length ? (v(!0), g(ge, { key: 2 }, xe(u(!1), (m, h) => (v(), W(Cn, { - item: m, + o(e).view === "grid" && !c.value.length ? (_(!0), g(ge, { key: 3 }, xe(u(!1), (f, h) => (_(), W(Cn, { + item: f, index: h, dragImage: s.value, class: "vf-item vf-item-grid", draggable: "true" }, { default: Q(() => [ - r("div", null, [ - r("div", ov, [ - (m.mime_type ?? "").startsWith("image") && o(e).showThumbnails ? (v(), g("img", { + l("div", null, [ + l("div", rv, [ + (f.mime_type ?? "").startsWith("image") && o(e).showThumbnails ? (_(), g("img", { src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", class: "vuefinder__explorer__item-thumbnail lazy", - "data-src": o(e).requester.getPreviewUrl(o(e).fs.adapter, m), - alt: m.basename, - key: m.path - }, null, 8, rv)) : (v(), W($n, { + "data-src": o(e).requester.getPreviewUrl(o(e).fs.adapter, f), + alt: f.basename, + key: f.path + }, null, 8, lv)) : (_(), W($n, { key: 1, - type: m.type + type: f.type }, null, 8, ["type"])), - !((m.mime_type ?? "").startsWith("image") && o(e).showThumbnails) && m.type !== "dir" ? (v(), g("div", lv, b(l(m.extension)), 1)) : q("", !0) + !((f.mime_type ?? "").startsWith("image") && o(e).showThumbnails) && f.type !== "dir" ? (_(), g("div", av, b(r(f.extension)), 1)) : q("", !0) ]), - r("span", av, b(o(zn)(m.basename)), 1) + l("span", iv, b(o(zn)(f.basename)), 1) ]) ]), _: 2 @@ -4752,19 +4758,19 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { z(Bd) ])); } -}, cv = ["href", "download"], dv = ["onClick"], uv = { +}, dv = ["href", "download"], uv = ["onClick"], vv = { __name: "ContextMenu", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, l = T(null), s = T([]), c = T(""), i = yt({ + const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(null), s = D([]), c = D(""), i = yt({ active: !1, items: [], positions: { left: 0, top: 0 } - }), d = rt(() => i.items.filter((_) => _.key == null || e.features.includes(_.key))); - e.emitter.on("vf-context-selected", (_) => { - s.value = _; + }), d = rt(() => i.items.filter((v) => v.key == null || e.features.includes(v.key))); + e.emitter.on("vf-context-selected", (v) => { + s.value = v; }); const a = { newfolder: { @@ -4785,7 +4791,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { unpinFolder: { title: () => n("Unpin Folder"), action: () => { - e.pinnedFolders = e.pinnedFolders.filter((_) => !s.value.find((p) => p.path === _.path)), e.storage.setStore("pinned-folders", e.pinnedFolders); + e.pinnedFolders = e.pinnedFolders.filter((v) => !s.value.find((p) => p.path === v.path)), e.storage.setStore("pinned-folders", e.pinnedFolders); } }, delete: { @@ -4852,83 +4858,83 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = { title: () => n("Rename"), action: () => e.modal.open(as, { items: s }) } - }, u = (_) => { - e.emitter.emit("vf-contextmenu-hide"), _.action(); + }, u = (v) => { + e.emitter.emit("vf-contextmenu-hide"), v.action(); }; - e.emitter.on("vf-search-query", ({ newQuery: _ }) => { - c.value = _; - }), e.emitter.on("vf-contextmenu-show", ({ event: _, items: p, target: m = null }) => { + e.emitter.on("vf-search-query", ({ newQuery: v }) => { + c.value = v; + }), e.emitter.on("vf-contextmenu-show", ({ event: v, items: p, target: f = null }) => { if (i.items = [], c.value) - if (m) - i.items.push(a.openDir), e.emitter.emit("vf-context-selected", [m]); + if (f) + i.items.push(a.openDir), e.emitter.emit("vf-context-selected", [f]); else return; - else !m && !c.value ? (i.items.push(a.refresh), i.items.push(a.selectAll), i.items.push(a.newfolder), e.emitter.emit("vf-context-selected", [])) : p.length > 1 && p.some((h) => h.path === m.path) ? (i.items.push(a.refresh), i.items.push(a.archive), i.items.push(a.delete), e.emitter.emit("vf-context-selected", p)) : (m.type === "dir" ? (i.items.push(a.open), e.pinnedFolders.findIndex((h) => h.path === m.path) !== -1 ? i.items.push(a.unpinFolder) : i.items.push(a.pinFolder)) : (i.items.push(a.preview), i.items.push(a.download)), i.items.push(a.rename), m.mime_type === "application/zip" ? i.items.push(a.unarchive) : i.items.push(a.archive), i.items.push(a.delete), e.emitter.emit("vf-context-selected", [m])); - f(_); + else !f && !c.value ? (i.items.push(a.refresh), i.items.push(a.selectAll), i.items.push(a.newfolder), e.emitter.emit("vf-context-selected", [])) : p.length > 1 && p.some((h) => h.path === f.path) ? (i.items.push(a.refresh), i.items.push(a.archive), i.items.push(a.delete), e.emitter.emit("vf-context-selected", p)) : (f.type === "dir" ? (i.items.push(a.open), e.pinnedFolders.findIndex((h) => h.path === f.path) !== -1 ? i.items.push(a.unpinFolder) : i.items.push(a.pinFolder)) : (i.items.push(a.preview), i.items.push(a.download)), i.items.push(a.rename), f.mime_type === "application/zip" ? i.items.push(a.unarchive) : i.items.push(a.archive), i.items.push(a.delete), e.emitter.emit("vf-context-selected", [f])); + m(v); }), e.emitter.on("vf-contextmenu-hide", () => { i.active = !1; }); - const f = (_) => { - const p = e.dragSelect.area.value, m = e.root.getBoundingClientRect(), h = p.getBoundingClientRect(); - let S = _.clientX - m.left, w = _.clientY - m.top; + const m = (v) => { + const p = e.dragSelect.area.value, f = e.root.getBoundingClientRect(), h = p.getBoundingClientRect(); + let x = v.clientX - f.left, S = v.clientY - f.top; i.active = !0, ct(() => { var $; - const D = ($ = l.value) == null ? void 0 : $.getBoundingClientRect(); - let R = (D == null ? void 0 : D.height) ?? 0, A = (D == null ? void 0 : D.width) ?? 0; - S = h.right - _.pageX + window.scrollX < A ? S - A : S, w = h.bottom - _.pageY + window.scrollY < R ? w - R : w, i.positions = { - left: S + "px", - top: w + "px" + const E = ($ = r.value) == null ? void 0 : $.getBoundingClientRect(); + let R = (E == null ? void 0 : E.height) ?? 0, T = (E == null ? void 0 : E.width) ?? 0; + x = h.right - v.pageX + window.scrollX < T ? x - T : x, S = h.bottom - v.pageY + window.scrollY < R ? S - R : S, i.positions = { + left: x + "px", + top: S + "px" }; }); }; - return (_, p) => ue((v(), g("ul", { + return (v, p) => ue((_(), g("ul", { ref_key: "contextmenu", - ref: l, + ref: r, style: rn(i.positions), class: "vuefinder__context-menu" }, [ - (v(!0), g(ge, null, xe(d.value, (m) => (v(), g("li", { + (_(!0), g(ge, null, xe(d.value, (f) => (_(), g("li", { class: "vuefinder__context-menu__item", - key: m.title + key: f.title }, [ - m.link ? (v(), g("a", { + f.link ? (_(), g("a", { key: 0, class: "vuefinder__context-menu__link", target: "_blank", - href: m.link, - download: m.link, + href: f.link, + download: f.link, onClick: p[0] || (p[0] = (h) => o(e).emitter.emit("vf-contextmenu-hide")) }, [ - r("span", null, b(m.title()), 1) - ], 8, cv)) : (v(), g("div", { + l("span", null, b(f.title()), 1) + ], 8, dv)) : (_(), g("div", { key: 1, class: "vuefinder__context-menu__action", - onClick: (h) => u(m) + onClick: (h) => u(f) }, [ - r("span", null, b(m.title()), 1) - ], 8, dv)) + l("span", null, b(f.title()), 1) + ], 8, uv)) ]))), 128)) ], 4)), [ [Ue, i.active] ]); } -}, vv = { +}, _v = { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", class: "h-5 w-5", viewBox: "0 0 24 24" }; -function _v(t, e) { - return v(), g("svg", vv, e[0] || (e[0] = [ - r("path", { +function fv(t, e) { + return _(), g("svg", _v, e[0] || (e[0] = [ + l("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" }, null, -1) ])); } -const zo = { render: _v }, fv = { +const zo = { render: fv }, mv = { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", @@ -4936,21 +4942,21 @@ const zo = { render: _v }, fv = { class: "h-5 w-5 stroke-slate-500 cursor-pointer", viewBox: "0 0 24 24" }; -function mv(t, e) { - return v(), g("svg", fv, e[0] || (e[0] = [ - r("path", { +function pv(t, e) { + return _(), g("svg", mv, e[0] || (e[0] = [ + l("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 1 1-18 0 9 9 0 0 1 18 0" }, null, -1) ])); } -const pv = { render: mv }, hv = { class: "vuefinder__status-bar__wrapper" }, gv = { class: "vuefinder__status-bar__storage" }, bv = ["title"], wv = { class: "vuefinder__status-bar__storage-icon" }, yv = ["value"], kv = { class: "vuefinder__status-bar__info" }, xv = { key: 0 }, Sv = { class: "vuefinder__status-bar__selected-count" }, $v = { class: "vuefinder__status-bar__actions" }, Cv = ["disabled"], Ev = ["title"], Av = { +const hv = { render: pv }, gv = { class: "vuefinder__status-bar__wrapper" }, bv = { class: "vuefinder__status-bar__storage" }, wv = ["title"], yv = { class: "vuefinder__status-bar__storage-icon" }, kv = ["value"], xv = { class: "vuefinder__status-bar__info" }, Sv = { key: 0 }, $v = { class: "vuefinder__status-bar__selected-count" }, Cv = { class: "vuefinder__status-bar__actions" }, Ev = ["disabled"], Av = ["title"], Tv = { __name: "Statusbar", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, { setStore: l } = e.storage, s = e.dragSelect, c = () => { - e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter } }), l("adapter", e.fs.adapter); - }, i = T(""); + const e = re("ServiceContainer"), { t: n } = e.i18n, { setStore: r } = e.storage, s = e.dragSelect, c = () => { + e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter } }), r("adapter", e.fs.adapter); + }, i = D(""); e.emitter.on("vf-search-query", ({ newQuery: a }) => { i.value = a; }); @@ -4958,45 +4964,45 @@ const pv = { render: mv }, hv = { class: "vuefinder__status-bar__wrapper" }, gv const a = e.selectButton.multiple ? s.getSelected().length > 0 : s.getSelected().length === 1; return e.selectButton.active && a; }); - return (a, u) => (v(), g("div", hv, [ - r("div", gv, [ - r("div", { + return (a, u) => (_(), g("div", gv, [ + l("div", bv, [ + l("div", { class: "vuefinder__status-bar__storage-container", title: o(n)("Storage") }, [ - r("div", wv, [ + l("div", yv, [ z(o(zo)) ]), - ue(r("select", { - "onUpdate:modelValue": u[0] || (u[0] = (f) => o(e).fs.adapter = f), + ue(l("select", { + "onUpdate:modelValue": u[0] || (u[0] = (m) => o(e).fs.adapter = m), onChange: c, class: "vuefinder__status-bar__storage-select", tabindex: "-1" }, [ - (v(!0), g(ge, null, xe(o(e).fs.data.storages, (f) => (v(), g("option", { value: f }, b(f), 9, yv))), 256)) + (_(!0), g(ge, null, xe(o(e).fs.data.storages, (m) => (_(), g("option", { value: m }, b(m), 9, kv))), 256)) ], 544), [ [En, o(e).fs.adapter] ]) - ], 8, bv), - r("div", kv, [ - i.value.length ? (v(), g("span", xv, b(o(e).fs.data.files.length) + " items found. ", 1)) : q("", !0), - r("span", Sv, b(o(e).dragSelect.getCount() > 0 ? o(n)("%s item(s) selected.", o(e).dragSelect.getCount()) : ""), 1) + ], 8, wv), + l("div", xv, [ + i.value.length ? (_(), g("span", Sv, b(o(e).fs.data.files.length) + " items found. ", 1)) : q("", !0), + l("span", $v, b(o(e).dragSelect.getCount() > 0 ? o(n)("%s item(s) selected.", o(e).dragSelect.getCount()) : ""), 1) ]) ]), - r("div", $v, [ - o(e).selectButton.active ? (v(), g("button", { + l("div", Cv, [ + o(e).selectButton.active ? (_(), g("button", { key: 0, class: le(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]), disabled: !d.value, - onClick: u[1] || (u[1] = (f) => o(e).selectButton.click(o(s).getSelected(), f)) - }, b(o(n)("Select")), 11, Cv)) : q("", !0), - r("span", { + onClick: u[1] || (u[1] = (m) => o(e).selectButton.click(o(s).getSelected(), m)) + }, b(o(n)("Select")), 11, Ev)) : q("", !0), + l("span", { class: "vuefinder__status-bar__about", title: o(n)("About"), - onClick: u[2] || (u[2] = (f) => o(e).modal.open(Mo)) + onClick: u[2] || (u[2] = (m) => o(e).modal.open(To)) }, [ - z(o(pv)) - ], 8, Ev) + z(o(hv)) + ], 8, Av) ]) ])); } @@ -5008,31 +5014,31 @@ const pv = { render: mv }, hv = { class: "vuefinder__status-bar__wrapper" }, gv class: "text-neutral-500 fill-sky-500 stroke-gray-100/50 dark:stroke-slate-700/50 dark:fill-slate-500", viewBox: "0 0 24 24" }; -function Tv(t, e) { - return v(), g("svg", Mv, e[0] || (e[0] = [ - r("path", { +function Dv(t, e) { + return _(), g("svg", Mv, e[0] || (e[0] = [ + l("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M3.75 9.776q.168-.026.344-.026h15.812q.176 0 .344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776" }, null, -1) ])); } -const Po = { render: Tv }, Dv = { +const Po = { render: Dv }, Vv = { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", class: "h-5 w-5", viewBox: "0 0 24 24" }; -function Vv(t, e) { - return v(), g("svg", Dv, e[0] || (e[0] = [ - r("path", { +function Ov(t, e) { + return _(), g("svg", Vv, e[0] || (e[0] = [ + l("path", { fill: "none", d: "M0 0h24v24H0z" }, null, -1), - r("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4" }, null, -1) + l("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4" }, null, -1) ])); } -const Ov = { render: Vv }, Lv = { +const Lv = { render: Ov }, Fv = { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", @@ -5041,16 +5047,16 @@ const Ov = { render: Vv }, Lv = { "stroke-width": "2", viewBox: "0 0 24 24" }; -function Fv(t, e) { - return v(), g("svg", Lv, e[0] || (e[0] = [ - r("path", { +function Hv(t, e) { + return _(), g("svg", Fv, e[0] || (e[0] = [ + l("path", { stroke: "none", d: "M0 0h24v24H0z" }, null, -1), - r("path", { d: "M15 12H9M12 9v6" }, null, -1) + l("path", { d: "M15 12H9M12 9v6" }, null, -1) ])); } -const jo = { render: Fv }, Hv = { +const jo = { render: Hv }, Rv = { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", @@ -5059,21 +5065,21 @@ const jo = { render: Fv }, Hv = { "stroke-width": "2", viewBox: "0 0 24 24" }; -function Rv(t, e) { - return v(), g("svg", Hv, e[0] || (e[0] = [ - r("path", { +function Bv(t, e) { + return _(), g("svg", Rv, e[0] || (e[0] = [ + l("path", { stroke: "none", d: "M0 0h24v24H0z" }, null, -1), - r("path", { d: "M9 12h6" }, null, -1) + l("path", { d: "M9 12h6" }, null, -1) ])); } -const Go = { render: Rv }; +const Go = { render: Bv }; function Ko(t, e) { - const n = t.findIndex((l) => l.path === e.path); + const n = t.findIndex((r) => r.path === e.path); n > -1 ? t[n] = e : t.push(e); } -const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { +const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = { key: 1, class: "vuefinder__folder-loader-indicator--icon" }, Wo = { @@ -5095,9 +5101,9 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { setup(t) { const e = t, n = re("ServiceContainer"); n.i18n; - const l = Rs(t, "modelValue"), s = T(!1); - He( - () => l.value, + const r = Rs(t, "modelValue"), s = D(!1); + Me( + () => r.value, () => { var d; return ((d = c()) == null ? void 0 : d.folders.length) || i(); @@ -5124,16 +5130,16 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { }; return (d, a) => { var u; - return v(), g("div", Bv, [ - s.value ? (v(), W(o(is), { + return _(), g("div", Iv, [ + s.value ? (_(), W(o(is), { key: 0, class: "vuefinder__folder-loader-indicator--loading" - })) : (v(), g("div", Iv, [ - l.value && ((u = c()) != null && u.folders.length) ? (v(), W(o(Go), { + })) : (_(), g("div", Nv, [ + r.value && ((u = c()) != null && u.folders.length) ? (_(), W(o(Go), { key: 0, class: "vuefinder__folder-loader-indicator--minus" })) : q("", !0), - l.value ? q("", !0) : (v(), W(o(jo), { + r.value ? q("", !0) : (_(), W(o(jo), { key: 1, class: "vuefinder__folder-loader-indicator--plus" })) @@ -5141,7 +5147,7 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { ]); }; } -}, Nv = { class: "vuefinder__treesubfolderlist__item-content" }, Uv = ["onClick"], qv = ["title", "onClick"], zv = { class: "vuefinder__treesubfolderlist__item-icon" }, Pv = { class: "vuefinder__treesubfolderlist__subfolder" }, jv = { +}, Uv = { class: "vuefinder__treesubfolderlist__item-content" }, qv = ["onClick"], zv = ["title", "onClick"], Pv = { class: "vuefinder__treesubfolderlist__item-icon" }, jv = { class: "vuefinder__treesubfolderlist__subfolder" }, Gv = { __name: "TreeSubfolderList", props: { adapter: { @@ -5154,9 +5160,9 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { } }, setup(t) { - const e = re("ServiceContainer"), n = T([]), l = t, s = T(null); + const e = re("ServiceContainer"), n = D([]), r = t, s = D(null); Se(() => { - l.path === l.adapter + "://" && je(s.value, { + r.path === r.adapter + "://" && je(s.value, { scrollbars: { theme: "vf-theme-dark dark:vf-theme-light" } @@ -5164,49 +5170,49 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { }); const c = rt(() => { var i; - return ((i = e.treeViewData.find((d) => d.path === l.path)) == null ? void 0 : i.folders) || []; + return ((i = e.treeViewData.find((d) => d.path === r.path)) == null ? void 0 : i.folders) || []; }); return (i, d) => { const a = ar("TreeSubfolderList", !0); - return v(), g("ul", { + return _(), g("ul", { ref_key: "parentSubfolderList", ref: s, class: "vuefinder__treesubfolderlist__container" }, [ - (v(!0), g(ge, null, xe(c.value, (u, f) => (v(), g("li", { + (_(!0), g(ge, null, xe(c.value, (u, m) => (_(), g("li", { key: u.path, class: "vuefinder__treesubfolderlist__item" }, [ - r("div", Nv, [ - r("div", { + l("div", Uv, [ + l("div", { class: "vuefinder__treesubfolderlist__item-toggle", - onClick: (_) => n.value[u.path] = !n.value[u.path] + onClick: (v) => n.value[u.path] = !n.value[u.path] }, [ z(Wo, { adapter: t.adapter, path: u.path, modelValue: n.value[u.path], - "onUpdate:modelValue": (_) => n.value[u.path] = _ + "onUpdate:modelValue": (v) => n.value[u.path] = v }, null, 8, ["adapter", "path", "modelValue", "onUpdate:modelValue"]) - ], 8, Uv), - r("div", { + ], 8, qv), + l("div", { class: "vuefinder__treesubfolderlist__item-link", title: u.path, - onClick: (_) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: l.adapter, path: u.path } }) + onClick: (v) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: u.path } }) }, [ - r("div", zv, [ - o(e).fs.path === u.path ? (v(), W(o(Po), { key: 0 })) : (v(), W(o(mn), { key: 1 })) + l("div", Pv, [ + o(e).fs.path === u.path ? (_(), W(o(Po), { key: 0 })) : (_(), W(o(mn), { key: 1 })) ]), - r("div", { + l("div", { class: le(["vuefinder__treesubfolderlist__item-text", { "vuefinder__treesubfolderlist__item-text--active": o(e).fs.path === u.path }]) }, b(u.basename), 3) - ], 8, qv) + ], 8, zv) ]), - r("div", Pv, [ + l("div", jv, [ ue(z(a, { - adapter: l.adapter, + adapter: r.adapter, path: u.path }, null, 8, ["adapter", "path"]), [ [Ue, n.value[u.path]] @@ -5216,7 +5222,7 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { ], 512); }; } -}, Gv = { class: "vuefinder__treestorageitem__loader" }, Kv = { +}, Kv = { __name: "TreeStorageItem", props: { storage: { @@ -5225,37 +5231,43 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { } }, setup(t) { - const e = re("ServiceContainer"), n = T(!1); - return (l, s) => (v(), g(ge, null, [ - r("div", { - onClick: s[1] || (s[1] = (c) => n.value = !n.value), + const e = re("ServiceContainer"), { setStore: n } = e.storage, r = D(!1); + function s(c) { + c === e.fs.adapter ? r.value = !r.value : (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: c } }), n("adapter", c)); + } + return (c, i) => (_(), g(ge, null, [ + l("div", { + onClick: i[2] || (i[2] = (d) => s(t.storage)), class: "vuefinder__treestorageitem__header" }, [ - r("div", { + l("div", { class: le(["vuefinder__treestorageitem__info", t.storage === o(e).fs.adapter ? "vuefinder__treestorageitem__info--active" : ""]) }, [ - r("div", { + l("div", { class: le(["vuefinder__treestorageitem__icon", t.storage === o(e).fs.adapter ? "vuefinder__treestorageitem__icon--active" : ""]) }, [ z(o(zo)) ], 2), - r("div", null, b(t.storage), 1) + l("div", null, b(t.storage), 1) ], 2), - r("div", Gv, [ + l("div", { + class: "vuefinder__treestorageitem__loader", + onClick: i[1] || (i[1] = Ze((d) => r.value = !r.value, ["stop"])) + }, [ z(Wo, { adapter: t.storage, path: t.storage + "://", - modelValue: n.value, - "onUpdate:modelValue": s[0] || (s[0] = (c) => n.value = c) + modelValue: r.value, + "onUpdate:modelValue": i[0] || (i[0] = (d) => r.value = d) }, null, 8, ["adapter", "path", "modelValue"]) ]) ]), - ue(z(jv, { + ue(z(Gv, { adapter: t.storage, path: t.storage + "://", class: "vuefinder__treestorageitem__subfolder" }, null, 8, ["adapter", "path"]), [ - [Ue, n.value] + [Ue, r.value] ]) ], 64)); } @@ -5268,13 +5280,13 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { emits: ["update:modelValue"], setup(t) { const e = Rs(t, "modelValue"); - return (n, l) => (v(), g("div", Wv, [ - r("div", Yv, [ - e.value ? (v(), W(o(Go), { + return (n, r) => (_(), g("div", Wv, [ + l("div", Yv, [ + e.value ? (_(), W(o(Go), { key: 0, class: "vuefinder__folder-indicator--minus" })) : q("", !0), - e.value ? q("", !0) : (v(), W(o(jo), { + e.value ? q("", !0) : (_(), W(o(jo), { key: 1, class: "vuefinder__folder-indicator--plus" })) @@ -5287,21 +5299,21 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { }, t_ = { class: "vuefinder__treeview__pinned-item" }, n_ = ["onClick"], s_ = ["title"], o_ = ["onClick"], r_ = { key: 0 }, l_ = { class: "vuefinder__treeview__no-pinned" }, a_ = { class: "vuefinder__treeview__storage" }, i_ = { __name: "TreeView", setup(t) { - const e = re("ServiceContainer"), { t: n } = e.i18n, { getStore: l, setStore: s } = e.storage, c = T(190), i = T(l("pinned-folders-opened", !0)); - He(i, (f) => s("pinned-folders-opened", f)); - const d = (f) => { - e.pinnedFolders = e.pinnedFolders.filter((_) => _.path !== f.path), e.storage.setStore("pinned-folders", e.pinnedFolders); - }, a = (f) => { - const _ = f.clientX, p = f.target.parentElement, m = p.getBoundingClientRect().width; + const e = re("ServiceContainer"), { t: n } = e.i18n, { getStore: r, setStore: s } = e.storage, c = D(190), i = D(r("pinned-folders-opened", !0)); + Me(i, (m) => s("pinned-folders-opened", m)); + const d = (m) => { + e.pinnedFolders = e.pinnedFolders.filter((v) => v.path !== m.path), e.storage.setStore("pinned-folders", e.pinnedFolders); + }, a = (m) => { + const v = m.clientX, p = m.target.parentElement, f = p.getBoundingClientRect().width; p.classList.remove("transition-[width]"), p.classList.add("transition-none"); - const h = (w) => { - c.value = m + w.clientX - _, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0); - }, S = () => { - const w = p.getBoundingClientRect(); - c.value = w.width, p.classList.add("transition-[width]"), p.classList.remove("transition-none"), window.removeEventListener("mousemove", h), window.removeEventListener("mouseup", S); + const h = (S) => { + c.value = f + S.clientX - v, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0); + }, x = () => { + const S = p.getBoundingClientRect(); + c.value = S.width, p.classList.add("transition-[width]"), p.classList.remove("transition-none"), window.removeEventListener("mousemove", h), window.removeEventListener("mouseup", x); }; - window.addEventListener("mousemove", h), window.addEventListener("mouseup", S); - }, u = T(null); + window.addEventListener("mousemove", h), window.addEventListener("mouseup", x); + }, u = D(null); return Se(() => { je(u.value, { overflow: { @@ -5311,79 +5323,79 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { theme: "vf-theme-dark dark:vf-theme-light" } }); - }), He(e.fs.data, (f, _) => { - const p = f.files.filter((m) => m.type === "dir"); - Ko(e.treeViewData, { path: e.fs.path, folders: p.map((m) => ({ - adapter: m.storage, - path: m.path, - basename: m.basename + }), Me(e.fs.data, (m, v) => { + const p = m.files.filter((f) => f.type === "dir"); + Ko(e.treeViewData, { path: e.fs.path, folders: p.map((f) => ({ + adapter: f.storage, + path: f.path, + basename: f.basename })) }); - }), (f, _) => (v(), g(ge, null, [ - r("div", { - onClick: _[0] || (_[0] = (p) => o(e).showTreeView = !o(e).showTreeView), + }), (m, v) => (_(), g(ge, null, [ + l("div", { + onClick: v[0] || (v[0] = (p) => o(e).showTreeView = !o(e).showTreeView), class: le(["vuefinder__treeview__overlay", o(e).showTreeView ? "vuefinder__treeview__backdrop" : "hidden"]) }, null, 2), - r("div", { + l("div", { style: rn(o(e).showTreeView ? "min-width:100px;max-width:75%; width: " + c.value + "px" : "width: 0"), class: "vuefinder__treeview__container" }, [ - r("div", { + l("div", { ref_key: "treeViewScrollElement", ref: u, class: "vuefinder__treeview__scroll" }, [ - r("div", Jv, [ - r("div", { - onClick: _[2] || (_[2] = (p) => i.value = !i.value), + l("div", Jv, [ + l("div", { + onClick: v[2] || (v[2] = (p) => i.value = !i.value), class: "vuefinder__treeview__pinned-toggle" }, [ - r("div", Zv, [ + l("div", Zv, [ z(o(qo), { class: "vuefinder__treeview__pin-icon" }), - r("div", Qv, b(o(n)("Pinned Folders")), 1) + l("div", Qv, b(o(n)("Pinned Folders")), 1) ]), z(Xv, { modelValue: i.value, - "onUpdate:modelValue": _[1] || (_[1] = (p) => i.value = p) + "onUpdate:modelValue": v[1] || (v[1] = (p) => i.value = p) }, null, 8, ["modelValue"]) ]), - i.value ? (v(), g("ul", e_, [ - (v(!0), g(ge, null, xe(o(e).pinnedFolders, (p) => (v(), g("li", t_, [ - r("div", { + i.value ? (_(), g("ul", e_, [ + (_(!0), g(ge, null, xe(o(e).pinnedFolders, (p) => (_(), g("li", t_, [ + l("div", { class: "vuefinder__treeview__pinned-folder", - onClick: (m) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: p.storage, path: p.path } }) + onClick: (f) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: p.storage, path: p.path } }) }, [ - o(e).fs.path !== p.path ? (v(), W(o(mn), { + o(e).fs.path !== p.path ? (_(), W(o(mn), { key: 0, class: "vuefinder__treeview__folder-icon" })) : q("", !0), - o(e).fs.path === p.path ? (v(), W(o(Po), { + o(e).fs.path === p.path ? (_(), W(o(Po), { key: 1, class: "vuefinder__treeview__open-folder-icon" })) : q("", !0), - r("div", { + l("div", { title: p.path, class: le(["vuefinder__treeview__folder-name text-nowrap", { "vuefinder__treeview__folder-name--active": o(e).fs.path === p.path }]) }, b(p.basename), 11, s_) ], 8, n_), - r("div", { + l("div", { class: "vuefinder__treeview__remove-favorite", - onClick: (m) => d(p) + onClick: (f) => d(p) }, [ - z(o(Ov), { class: "vuefinder__treeview__remove-icon" }) + z(o(Lv), { class: "vuefinder__treeview__remove-icon" }) ], 8, o_) ]))), 256)), - o(e).pinnedFolders.length ? q("", !0) : (v(), g("li", r_, [ - r("div", l_, b(o(n)("No folders pinned")), 1) + o(e).pinnedFolders.length ? q("", !0) : (_(), g("li", r_, [ + l("div", l_, b(o(n)("No folders pinned")), 1) ])) ])) : q("", !0) ]), - (v(!0), g(ge, null, xe(o(e).fs.data.storages, (p) => (v(), g("div", a_, [ + (_(!0), g(ge, null, xe(o(e).fs.data.storages, (p) => (_(), g("div", a_, [ z(Kv, { storage: p }, null, 8, ["storage"]) ]))), 256)) ], 512), - r("div", { + l("div", { onMousedown: a, class: le([(o(e).showTreeView, ""), "vuefinder__treeview__resize-handle"]) }, null, 34) @@ -5460,74 +5472,97 @@ const Bv = { class: "vuefinder__folder-loader-indicator" }, Iv = { ...t }; } + }, + onError: { + type: Function, + default: null + }, + loadingIndicator: { + type: String, + default: "circular" } }, - emits: ["select"], + emits: ["select", "update:path"], setup(t, { emit: e }) { - const n = e, s = Tl(t, re("VueFinderOptions")); + const n = e, r = t, s = Ml(r, re("VueFinderOptions")); ir("ServiceContainer", s); - const { setStore: c } = s.storage, i = T(null); + const { setStore: c } = s.storage, i = D(null); s.root = i; const d = s.dragSelect; ii(s); - const a = (f) => { - Object.assign(s.fs.data, f), d.clearSelection(), d.refreshSelection(); + const a = (v) => { + Object.assign(s.fs.data, v), d.clearSelection(), d.refreshSelection(); }; let u; - return s.emitter.on("vf-fetch-abort", () => { + s.emitter.on("vf-fetch-abort", () => { u.abort(), s.fs.loading = !1; - }), s.emitter.on("vf-fetch", ({ params: f, body: _ = null, onSuccess: p = null, onError: m = null, noCloseModal: h = !1 }) => { - ["index", "search"].includes(f.q) && (u && u.abort(), s.fs.loading = !0), u = new AbortController(); + }), s.emitter.on("vf-fetch", ({ params: v, body: p = null, onSuccess: f = null, onError: h = null, noCloseModal: x = !1 }) => { + ["index", "search"].includes(v.q) && (u && u.abort(), s.fs.loading = !0), u = new AbortController(); const S = u.signal; s.requester.send({ url: "", - method: f.m || "get", - params: f, - body: _, + method: v.m || "get", + params: v, + body: p, abortSignal: S - }).then((w) => { - s.fs.adapter = w.adapter, s.persist && (s.fs.path = w.dirname, c("path", s.fs.path)), ["index", "search"].includes(f.q) && (s.fs.loading = !1), h || s.modal.close(), a(w), p && p(w); - }).catch((w) => { - console.error(w), m && m(w); + }).then((E) => { + s.fs.adapter = E.adapter, s.persist && (s.fs.path = E.dirname, c("path", s.fs.path)), x || s.modal.close(), a(E), f && f(E); + }).catch((E) => { + console.error(E), h && h(E); + }).finally(() => { + ["index", "search"].includes(v.q) && (s.fs.loading = !1); + }); + }); + function m(v) { + let p = {}; + v && v.includes("://") && (p = { + adapter: v.split("://")[0], + path: v + }), s.emitter.emit("vf-fetch", { + params: { q: "index", adapter: s.fs.adapter, ...p }, + onError: r.onError ?? ((f) => { + f.message && s.emitter.emit("vf-toast-push", { label: f.message, type: "error" }); + }) }); - }), Se(() => { - let f = {}; - s.fs.path.includes("://") && (f = { - adapter: s.fs.path.split("://")[0], - path: s.fs.path - }), s.emitter.emit("vf-fetch", { params: { q: "index", adapter: s.fs.adapter, ...f } }), d.onSelect((_) => { - n("select", _); + } + return Se(() => { + m(s.fs.path), Me(() => r.path, (v) => { + m(v); + }), d.onSelect((v) => { + n("select", v); + }), Me(() => s.fs.data.dirname, (v) => { + n("update:path", v); }); - }), (f, _) => (v(), g("div", { + }), (v, p) => (_(), g("div", { class: "vuefinder", ref_key: "root", ref: i, tabindex: "0" }, [ - r("div", { + l("div", { class: le(o(s).theme.actualValue) }, [ - r("div", { + l("div", { class: le([o(s).fullScreen ? "vuefinder__main__fixed" : "vuefinder__main__relative", "vuefinder__main__container"]), style: rn(o(s).fullScreen ? "" : "max-height: " + t.maxHeight), - onMousedown: _[0] || (_[0] = (p) => o(s).emitter.emit("vf-contextmenu-hide")), - onTouchstart: _[1] || (_[1] = (p) => o(s).emitter.emit("vf-contextmenu-hide")) + onMousedown: p[0] || (p[0] = (f) => o(s).emitter.emit("vf-contextmenu-hide")), + onTouchstart: p[1] || (p[1] = (f) => o(s).emitter.emit("vf-contextmenu-hide")) }, [ z(Oc), z(Hd), - r("div", c_, [ + l("div", c_, [ z(i_), - z(iv) + z(cv) ]), - z(Av) + z(Tv) ], 38), z(cr, { name: "fade" }, { default: Q(() => [ - o(s).modal.visible ? (v(), W(Fs(o(s).modal.type), { key: 0 })) : q("", !0) + o(s).modal.visible ? (_(), W(Fs(o(s).modal.type), { key: 0 })) : q("", !0) ]), _: 1 }), - z(uv) + z(vv) ], 2) ], 512)); } diff --git a/package.json b/package.json index 7c612c42..2c57832a 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuefinder", - "version": "2.5.16", + "version": "2.6.0", "description": "Vuefinder is a file manager component for vuejs.", "type": "module", "files": [