diff --git a/README.md b/README.md index 95f8390..df170c7 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,11 @@ sist2 (Simple incremental search tool) ## Getting Started -1. Have an Elasticsearch (>= 6.X.X) instance running +1. Have an Elasticsearch (>= 6.8.X, ideally >=7.14.0) instance running 1. Download [from official website](https://www.elastic.co/downloads/elasticsearch) 1. *(or)* Run using docker: ```bash - docker run -d --name es1 --net sist2_net -p 9200:9200 \ - -e "discovery.type=single-node" elasticsearch:7.14.0 + docker run -d --name es1 -p 9201:9200 -e "discovery.type=single-node" elasticsearch:7.14.0 ``` 1. *(or)* Run using docker-compose: ```yaml @@ -52,7 +51,7 @@ sist2 (Simple incremental search tool) 1. Download the [latest sist2 release](https://github.com/simon987/sist2/releases) * 1. *(or)* Download a [development snapshot](https://files.simon987.net/.gate/sist2/simon987_sist2/) *(Not recommended!)* - 1. *(or)* `docker pull simon987/sist2:2.11.2-x64-linux` + 1. *(or)* `docker pull simon987/sist2:2.11.4-x64-linux` 1. See [Usage guide](docs/USAGE.md) diff --git a/docs/USAGE.md b/docs/USAGE.md index ae354e9..dd977c0 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -14,6 +14,7 @@ * [examples](#web-examples) * [rewrite_url](#rewrite_url) * [link to specific indices](#link-to-specific-indices) +* [elasticsearch](#elasticsearch) * [exec-script](#exec-script) * [tagging](#tagging) * [sidecar files](#sidecar-files) @@ -266,9 +267,20 @@ sist2 web index1 index2 index3 index4 When the `rewrite_url` field is not empty, the web module ignores the `root` field and will return a HTTP redirect to `/` instead of serving the file from disk. -Both the `root` and `rewrite_url` fields are safe to manually modify from the +Both the `root` and `rewrite_url` fields are safe to manually modify from the `descriptor.json` file. +# Elasticsearch + +Elasticsearch versions >=6.8.0, <8.0.0 are supported by sist2. + +Using a version >=7.14.0 is recommended to enable the following features: + +- Bug fix for large documents (See #198) + +When using a legacy version of ES, a notice will be displayed next to the sist2 version in the web UI. +If you don't care about the features above, you can ignore it or disable it in the configuration page. + ## exec-script The `exec-script` command is used to execute a user script for an index that has already been imported to Elasticsearch with the `index` command. Note that the documents will not be reset to their default state before each execution as the `index` command does: if you make undesired changes to the documents by accident, you will need to run `index` again to revert to the original state. diff --git a/scripts/index_static.py b/scripts/index_static.py index b170b54..002aa53 100644 --- a/scripts/index_static.py +++ b/scripts/index_static.py @@ -3,6 +3,7 @@ import json files = [ "schema/mappings.json", "schema/settings.json", + "schema/settings_legacy.json", "schema/pipeline.json", ] diff --git a/sist2-vue/dist/css/index.css b/sist2-vue/dist/css/index.css index 4a8f685..fcd648d 100644 --- a/sist2-vue/dist/css/index.css +++ b/sist2-vue/dist/css/index.css @@ -1 +1 @@ -.navbar[data-v-3fa66c31]{box-shadow:0 .125rem .25rem rgb(0 0 0/8%)!important;border-radius:0}.theme-black .navbar[data-v-3fa66c31]{background:rgba(84,107,122,.18823529411764706);border-bottom:none}.navbar-brand[data-v-3fa66c31]{color:#222!important;font-size:1.75rem;padding:0;font-family:Hack}.navbar-brand[data-v-3fa66c31]:hover{color:#000!important}.version[data-v-3fa66c31]{color:#222!important;margin-left:-18px;margin-top:-14px;font-size:11px;font-family:monospace}.theme-black .version[data-v-3fa66c31]{color:#f5f5f5!important}.theme-black .navbar-brand[data-v-3fa66c31]{font-size:1.75rem;padding:0;color:#f5f5f5!important}.theme-black .btn[data-v-3fa66c31]:hover,.theme-black a[data-v-3fa66c31]:hover{color:#fff}.theme-black .navbar span[data-v-3fa66c31]{color:#eee}@media (max-width:650px){.tagline[data-v-3fa66c31],.version[data-v-3fa66c31]{display:none}}.theme-light .btn-link[data-v-3fa66c31]{color:#222}body,html{height:100%}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;padding-bottom:1em;min-height:100%}.theme-black{background-color:#000}.theme-black .card,.theme-black .modal-content{background:#212121;color:#e0e0e0;border-radius:1px;border:none}.theme-black .table{color:#e0e0e0}.theme-black .table td,.theme-black .table th{border:none}.theme-black .table thead th{border-bottom:1px solid #646464}.theme-black .custom-select{overflow:auto;background-color:#37474f;border:1px solid #616161;color:#bdbdbd}.theme-black .custom-select:focus{border-color:#757575;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.theme-black .inspire-tree .selected>.title-wrap:hover+.wholerow,.theme-black .inspire-tree .selected>.wholerow{background:none!important}.theme-black .inspire-tree .icon-collapse:before,.theme-black .inspire-tree .icon-expand:before{background-color:#000!important}.theme-black .inspire-tree .title{color:#eee}.theme-black .inspire-tree{font-weight:400;font-size:14px;font-family:Helvetica,Nueue,Verdana,sans-serif;max-height:350px;overflow:auto}.inspire-tree [type=checkbox]{left:22px!important;top:7px!important}.theme-black .form-control{background-color:#37474f;border:1px solid #616161;color:#dbdbdb!important}.theme-black .form-control:focus{background-color:#546e7a;color:#fff}.theme-black .default-input,.theme-black .input-group-text{background:#37474f!important;border:1px solid #616161!important;color:#dbdbdb!important}.theme-black ::-moz-placeholder{color:#bdbdbd!important;opacity:1}.theme-black :-ms-input-placeholder{color:#bdbdbd!important;opacity:1}.theme-black ::placeholder{color:#bdbdbd!important;opacity:1}.theme-black .nav-tabs .nav-link{color:#e0e0e0}.theme-black .nav-tabs .nav-item.show .nav-link,.theme-black .nav-tabs .nav-link.active{background-color:#212121;border-color:#616161 #616161 #212121;color:#e0e0e0}.theme-black .nav-tabs .nav-link:focus{border-color:#616161 #616161 #212121;color:#e0e0e0}.theme-black .nav-tabs .nav-link:focus,.theme-black .nav-tabs .nav-link:hover{border-color:#e0e0e0 #e0e0e0 #212121;color:#e0e0e0}.theme-black .nav-tabs{border-bottom:#616161}.theme-black .btn:hover,.theme-black a:hover{color:#fff}.theme-black .b-dropdown a:hover{color:inherit}.theme-black .btn{color:#eee}.theme-black .modal-header .close{color:#e0e0e0;text-shadow:none}.theme-black .modal-header{border-bottom:1px solid #646464}#nav{padding:30px}#nav a{font-weight:700;color:#2c3e50}#nav a.router-link-exact-active{color:#42b983}.mobile{display:none}.container{padding-top:1em}@media (max-width:650px){.mobile{display:initial}.not-mobile{display:none}.grid-single-column .fit{max-height:none!important}.container{padding-left:0;padding-right:0;padding-top:0}.lightbox-caption{display:none}}.info-icon{width:1rem;margin-right:.2rem;cursor:pointer;line-height:1rem;height:1rem;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MjYuNjY3IDQyNi42NjciIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xOTIgMTkyaDQyLjY2N3YxMjhIMTkyeiIvPjxwYXRoIGQ9Ik0yMTMuMzMzIDBDOTUuNDY3IDAgMCA5NS40NjcgMCAyMTMuMzMzczk1LjQ2NyAyMTMuMzMzIDIxMy4zMzMgMjEzLjMzM1M0MjYuNjY3IDMzMS4yIDQyNi42NjcgMjEzLjMzMyAzMzEuMiAwIDIxMy4zMzMgMHptMCAzODRjLTk0LjA4IDAtMTcwLjY2Ny03Ni41ODctMTcwLjY2Ny0xNzAuNjY3UzExOS4yNTMgNDIuNjY3IDIxMy4zMzMgNDIuNjY3IDM4NCAxMTkuMjUzIDM4NCAyMTMuMzMzIDMwNy40MTMgMzg0IDIxMy4zMzMgMzg0eiIvPjxwYXRoIGQ9Ik0xOTIgMTA2LjY2N2g0Mi42Njd2NDIuNjY3SDE5MnoiLz48L3N2Zz4=);filter:brightness(45%);display:block}.tabs{margin-top:10px}.modal-title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}@media screen and (min-width:1500px){.container{max-width:1440px}}.noUi-connects{border-radius:1px!important}mark{background:#fff217}.theme-black mark,mark{border-radius:0;padding:1px 0;color:inherit}.theme-black mark{background:rgba(251,191,41,.25)}.theme-black .content-div mark{background:rgba(251,191,41,.4);color:#fff}.content-div{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;padding:1em;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px;margin:3px;white-space:normal;color:#000;overflow:hidden}.theme-black .content-div{background-color:#37474f;border:1px solid #616161;color:#e0e0e0}.graph{display:inline-block;width:40%}.stats-card{text-align:center;padding:1em}svg[data-v-464a0d97]{vertical-align:middle}svg[data-v-464a0d97],svg[data-v-d6d86c56]{display:inline-block;width:20px;height:20px}svg[data-v-d6d86c56]{margin-top:-4px}.shrink{flex-grow:inherit}.badge-pill[data-v-4dea1070]{padding:.3em .4em .1em;border-radius:6rem}.timestamp-text[data-v-0f2d1c85]{line-height:24px;font-size:80%}.version-badge[data-v-0f2d1c85]{color:#222!important;background:none}.list-group-item[data-v-0f2d1c85]{padding:.2em .4em}#index-picker-desktop[data-v-0f2d1c85]{overflow-y:auto;max-height:132px}.badge-video[data-v-acf38e8c]{color:#fff;background-color:#f27761}.badge-image[data-v-acf38e8c]{color:#fff;background-color:#aa99c9}.badge-audio[data-v-acf38e8c]{color:#fff;background-color:#00adef}.badge-user[data-v-acf38e8c]{color:#212529;background-color:#e0e0e0}.add-tag-button[data-v-acf38e8c]:hover,.badge-user[data-v-acf38e8c]:hover{box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.badge-text[data-v-acf38e8c]{color:#fff;background-color:#faab3c}.badge[data-v-acf38e8c]{margin-right:3px}.badge-delete[data-v-acf38e8c]{margin-right:-2px;margin-left:2px;margin-top:-1px;font-family:monospace;font-size:90%;background:rgba(0,0,0,.2);padding:.1em .4em;color:#fff;cursor:pointer}.badge-size[data-v-acf38e8c]{width:50px;display:inline-block}.add-tag-button[data-v-acf38e8c]{cursor:pointer;color:#212529;background-color:#e0e0e0;width:50px}.badge[data-v-acf38e8c]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.badge-suggestion[data-v-acf38e8c]{font-size:90%;font-weight:400}.vc-twitter-body{padding:0!important}.vc-twitter{box-shadow:none!important;background:none!important}.tooltip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.toast{border:none}.file-title-anchor[data-v-786adab2]{max-width:calc(100% - 1.2rem)}.file-title[data-v-786adab2]{width:100%;line-height:1rem;height:1.1rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:16px;font-family:Source Sans Pro,sans-serif;font-weight:700}.theme-black .file-title[data-v-786adab2]{color:#ddd}.theme-black .file-title[data-v-786adab2]:hover{color:#fff}.theme-light .file-title[data-v-786adab2]{color:#000}.doc-card .file-title[data-v-786adab2]{font-size:12px}.img-wrapper{position:relative}.img-wrapper:hover svg{fill:#000}.pointer{cursor:pointer}.fit{display:block;min-width:64px;max-width:100%;margin:0 auto 0;width:auto;height:auto}.card-img-top[data-v-a78557ce]{border-top-left-radius:0;border-top-right-radius:0}.padding-03[data-v-a78557ce]{padding:.3rem}.card[data-v-a78557ce]{margin-top:1em;margin-left:0;margin-right:0;box-shadow:0 .125rem .25rem rgba(0,0,0,.08)!important;border-radius:0;border:none}.card-body[data-v-a78557ce]{padding:.3rem}.card-img-overlay[data-v-a78557ce]{pointer-events:none;padding:.75rem;bottom:unset;top:0;left:unset;right:unset}.badge-resolution[data-v-a78557ce]{color:#212529;background-color:#ffc107}.play[data-v-a78557ce]{position:absolute;width:25px;height:25px;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.play svg[data-v-a78557ce]{fill:rgba(0,0,0,.7)}.doc-card[data-v-a78557ce]{padding-left:3px;padding-right:3px}.small-badge[data-v-a78557ce]{padding:1px 3px;font-size:70%}.audio-fit[data-v-a78557ce]{height:39px;vertical-align:bottom;display:inline;width:100%}.sub-document .card[data-v-a78557ce]{background:rgba(171,71,188,.12156862745098039)!important}.theme-black .sub-document .card[data-v-a78557ce]{background:#37474f!important}.sub-document .fit[data-v-a78557ce]{padding:4px 4px 0 4px}.fslightbox-toolbar-button:nth-child(2){order:1}.fslightbox-toolbar-button:first-child{order:2}.fslightbox-toolbar-button:nth-child(3){order:3}.fslightbox-toolbar-button:nth-child(4){order:4}.fslightbox-toolbar-button:nth-child(5){order:5}@media (max-width:650px){.fslightbox-toolbar-button:nth-child(6){display:none}}.fslightbox-toolbar-button:nth-child(6){order:6}.fslightbox-toolbar-button:nth-child(7){order:7}#mimeTree[data-v-1ea26eb2]{max-height:350px;overflow:auto}.dropdown-active a{font-weight:700}#results{margin-top:1em;box-shadow:0 .125rem .25rem rgba(0,0,0,.08)!important;border-radius:0;border:none}#results .card-body{padding:.7em 1.25em}.hidden{display:none}#mimeTree[data-v-b24a99e6]{max-height:350px;overflow:auto}.form-control-fix-flex[data-v-b24a99e6]{flex:1 1 auto;width:1%;min-width:0;margin-bottom:0}.suggestion-line[data-v-b24a99e6]{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1}.suggestions{max-height:250px;overflow-y:auto}.theme-black .suggestions{color:#000}#sizeSlider{margin-top:34px;height:12px}.slider-color0{background:#2196f3;box-shadow:none}.theme-black .slider-color0{background:#00bcd4}.noUi-horizontal .noUi-handle{width:2px;height:18px;right:-1px;top:-3px;border:none;background-color:#1976d2;box-shadow:none;cursor:ew-resize;border-radius:0}.theme-black .noUi-horizontal .noUi-handle{background-color:#2168ac}.noUi-handle:before{left:3px}.noUi-handle:after,.noUi-handle:before{top:-6px;width:10px;height:28px;background-color:transparent}.noUi-handle:after{left:-10px}.noUi-draggable{cursor:move}.noUi-tooltip{color:#fff;font-size:13px;line-height:1.333;text-shadow:none;padding:0 2px;background:#2196f3;border-radius:4px;border:none}.theme-black .noUi-tooltip{background:#00bcd4}.theme-black .noUi-connects{background-color:#37474f}.noUi-horizontal .noUi-origin>.noUi-tooltip{bottom:7px}.noUi-target{background-color:#e1e4e9;border:none;box-shadow:none}#dateSlider{margin-top:34px;height:12px}#mimeTree[data-v-61ce9763]{max-height:350px;overflow:auto}.inspire-tree .focused>.wholerow{border:none}.file-icon[data-v-0cec34c8]{position:absolute;max-height:100%;max-width:100%;top:0;bottom:0;left:0;right:0}.theme-black .file-icon[data-v-0cec34c8]{color:hsla(0,0%,100%,.3137254901960784)}.theme-light .file-icon[data-v-0cec34c8]{color:rgba(0,0,0,.6274509803921569)}.sub-document[data-v-2507ef74]{background:rgba(171,71,188,.12156862745098039)!important}.theme-black .sub-document[data-v-2507ef74]{background:#37474f!important}.list-group[data-v-2507ef74]{margin-top:1em}.list-group-item[data-v-2507ef74]{padding:.25rem .5rem;box-shadow:0 .125rem .25rem rgb(0 0 0/8%)!important;border-radius:0;border:none}.path-row[data-v-2507ef74]{display:flex;align-items:flex-start}.path-line[data-v-2507ef74]{color:grey;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-right:.3em}.theme-black .path-line[data-v-2507ef74]{color:#bbb}.play[data-v-2507ef74]{position:absolute;width:18px;height:18px;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.play svg[data-v-2507ef74]{fill:rgba(0,0,0,.7)}.list-group-item .img-wrapper[data-v-2507ef74]{width:88px;height:88px}.fit-sm[data-v-2507ef74]{max-height:100%;max-width:100%;width:auto;height:auto;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.doc-line[data-v-2507ef74]{max-width:calc(100% - 88px - 1.5rem);flex:1;vertical-align:middle;margin-top:auto;margin-bottom:auto}.file-icon-wrapper[data-v-2507ef74]{width:calc(88px + .5rem);height:88px;position:relative}.theme-black .list-group-item{background:#212121;color:#e0e0e0;border-bottom:none;border-left:none;border-right:none;border-radius:0;padding:.25rem .5rem}.theme-black .list-group-item:first-child{border-top:none}#search-panel{box-shadow:0 .125rem .25rem rgba(0,0,0,.08)!important;border-radius:0;border:none}.toast-body-error,.toast-header-error{background:#a94442;color:#f2dede!important}.toast-header-error{color:#fff!important;border-bottom:none;margin-bottom:-1em}.toast-header-error .close{text-shadow:none}.toast-body-warning,.toast-header-warning{background:#ff8f00;color:#fff3e0!important} \ No newline at end of file +.navbar[data-v-a2e450d8]{box-shadow:0 .125rem .25rem rgb(0 0 0/8%)!important;border-radius:0}.theme-black .navbar[data-v-a2e450d8]{background:rgba(84,107,122,.18823529411764706);border-bottom:none}.navbar-brand[data-v-a2e450d8]{color:#222!important;font-size:1.75rem;padding:0;font-family:Hack}.navbar-brand[data-v-a2e450d8]:hover{color:#000!important}.version[data-v-a2e450d8]{color:#222!important;margin-left:-18px;margin-top:-14px;font-size:11px;font-family:monospace}.theme-black .version[data-v-a2e450d8]{color:#f5f5f5!important}.theme-black .navbar-brand[data-v-a2e450d8]{font-size:1.75rem;padding:0;color:#f5f5f5!important}.theme-black .btn[data-v-a2e450d8]:hover,.theme-black a[data-v-a2e450d8]:hover{color:#fff}.theme-black .navbar span[data-v-a2e450d8]{color:#eee}@media (max-width:650px){.tagline[data-v-a2e450d8],.version[data-v-a2e450d8]{display:none}}.theme-light .btn-link[data-v-a2e450d8]{color:#222}body,html{height:100%}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;padding-bottom:1em;min-height:100%}.theme-black{background-color:#000}.theme-black .card,.theme-black .modal-content{background:#212121;color:#e0e0e0;border-radius:1px;border:none}.theme-black .table{color:#e0e0e0}.theme-black .table td,.theme-black .table th{border:none}.theme-black .table thead th{border-bottom:1px solid #646464}.theme-black .custom-select{overflow:auto;background-color:#37474f;border:1px solid #616161;color:#bdbdbd}.theme-black .custom-select:focus{border-color:#757575;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.theme-black .inspire-tree .selected>.title-wrap:hover+.wholerow,.theme-black .inspire-tree .selected>.wholerow{background:none!important}.theme-black .inspire-tree .icon-collapse:before,.theme-black .inspire-tree .icon-expand:before{background-color:#000!important}.theme-black .inspire-tree .title{color:#eee}.theme-black .inspire-tree{font-weight:400;font-size:14px;font-family:Helvetica,Nueue,Verdana,sans-serif;max-height:350px;overflow:auto}.inspire-tree [type=checkbox]{left:22px!important;top:7px!important}.theme-black .form-control{background-color:#37474f;border:1px solid #616161;color:#dbdbdb!important}.theme-black .form-control:focus{background-color:#546e7a;color:#fff}.theme-black .default-input,.theme-black .input-group-text{background:#37474f!important;border:1px solid #616161!important;color:#dbdbdb!important}.theme-black ::-moz-placeholder{color:#bdbdbd!important;opacity:1}.theme-black :-ms-input-placeholder{color:#bdbdbd!important;opacity:1}.theme-black ::placeholder{color:#bdbdbd!important;opacity:1}.theme-black .nav-tabs .nav-link{color:#e0e0e0}.theme-black .nav-tabs .nav-item.show .nav-link,.theme-black .nav-tabs .nav-link.active{background-color:#212121;border-color:#616161 #616161 #212121;color:#e0e0e0}.theme-black .nav-tabs .nav-link:focus{border-color:#616161 #616161 #212121;color:#e0e0e0}.theme-black .nav-tabs .nav-link:focus,.theme-black .nav-tabs .nav-link:hover{border-color:#e0e0e0 #e0e0e0 #212121;color:#e0e0e0}.theme-black .nav-tabs{border-bottom:#616161}.theme-black .btn:hover,.theme-black a:hover{color:#fff}.theme-black .b-dropdown a:hover{color:inherit}.theme-black .btn{color:#eee}.theme-black .modal-header .close{color:#e0e0e0;text-shadow:none}.theme-black .modal-header{border-bottom:1px solid #646464}#nav{padding:30px}#nav a{font-weight:700;color:#2c3e50}#nav a.router-link-exact-active{color:#42b983}.mobile{display:none}.container{padding-top:1em}@media (max-width:650px){.mobile{display:initial}.not-mobile{display:none}.grid-single-column .fit{max-height:none!important}.container{padding-left:0;padding-right:0;padding-top:0}.lightbox-caption{display:none}}.info-icon{width:1rem;margin-right:.2rem;cursor:pointer;line-height:1rem;height:1rem;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MjYuNjY3IDQyNi42NjciIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xOTIgMTkyaDQyLjY2N3YxMjhIMTkyeiIvPjxwYXRoIGQ9Ik0yMTMuMzMzIDBDOTUuNDY3IDAgMCA5NS40NjcgMCAyMTMuMzMzczk1LjQ2NyAyMTMuMzMzIDIxMy4zMzMgMjEzLjMzM1M0MjYuNjY3IDMzMS4yIDQyNi42NjcgMjEzLjMzMyAzMzEuMiAwIDIxMy4zMzMgMHptMCAzODRjLTk0LjA4IDAtMTcwLjY2Ny03Ni41ODctMTcwLjY2Ny0xNzAuNjY3UzExOS4yNTMgNDIuNjY3IDIxMy4zMzMgNDIuNjY3IDM4NCAxMTkuMjUzIDM4NCAyMTMuMzMzIDMwNy40MTMgMzg0IDIxMy4zMzMgMzg0eiIvPjxwYXRoIGQ9Ik0xOTIgMTA2LjY2N2g0Mi42Njd2NDIuNjY3SDE5MnoiLz48L3N2Zz4=);filter:brightness(45%);display:block}.tabs{margin-top:10px}.modal-title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}@media screen and (min-width:1500px){.container{max-width:1440px}}.noUi-connects{border-radius:1px!important}mark{background:#fff217}.theme-black mark,mark{border-radius:0;padding:1px 0;color:inherit}.theme-black mark{background:rgba(251,191,41,.25)}.theme-black .content-div mark{background:rgba(251,191,41,.4);color:#fff}.content-div{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;padding:1em;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px;margin:3px;white-space:normal;color:#000;overflow:hidden}.theme-black .content-div{background-color:#37474f;border:1px solid #616161;color:#e0e0e0}.graph{display:inline-block;width:40%}.stats-card{text-align:center;padding:1em}svg[data-v-464a0d97]{vertical-align:middle}svg[data-v-464a0d97],svg[data-v-d6d86c56]{display:inline-block;width:20px;height:20px}svg[data-v-d6d86c56]{margin-top:-4px}.shrink{flex-grow:inherit}.badge-pill[data-v-4dea1070]{padding:.3em .4em .1em;border-radius:6rem}.timestamp-text[data-v-0f2d1c85]{line-height:24px;font-size:80%}.version-badge[data-v-0f2d1c85]{color:#222!important;background:none}.list-group-item[data-v-0f2d1c85]{padding:.2em .4em}#index-picker-desktop[data-v-0f2d1c85]{overflow-y:auto;max-height:132px}.badge-video[data-v-acf38e8c]{color:#fff;background-color:#f27761}.badge-image[data-v-acf38e8c]{color:#fff;background-color:#aa99c9}.badge-audio[data-v-acf38e8c]{color:#fff;background-color:#00adef}.badge-user[data-v-acf38e8c]{color:#212529;background-color:#e0e0e0}.add-tag-button[data-v-acf38e8c]:hover,.badge-user[data-v-acf38e8c]:hover{box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.badge-text[data-v-acf38e8c]{color:#fff;background-color:#faab3c}.badge[data-v-acf38e8c]{margin-right:3px}.badge-delete[data-v-acf38e8c]{margin-right:-2px;margin-left:2px;margin-top:-1px;font-family:monospace;font-size:90%;background:rgba(0,0,0,.2);padding:.1em .4em;color:#fff;cursor:pointer}.badge-size[data-v-acf38e8c]{width:50px;display:inline-block}.add-tag-button[data-v-acf38e8c]{cursor:pointer;color:#212529;background-color:#e0e0e0;width:50px}.badge[data-v-acf38e8c]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.badge-suggestion[data-v-acf38e8c]{font-size:90%;font-weight:400}.vc-twitter-body{padding:0!important}.vc-twitter{box-shadow:none!important;background:none!important}.tooltip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.toast{border:none}.file-title-anchor[data-v-786adab2]{max-width:calc(100% - 1.2rem)}.file-title[data-v-786adab2]{width:100%;line-height:1rem;height:1.1rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:16px;font-family:Source Sans Pro,sans-serif;font-weight:700}.theme-black .file-title[data-v-786adab2]{color:#ddd}.theme-black .file-title[data-v-786adab2]:hover{color:#fff}.theme-light .file-title[data-v-786adab2]{color:#000}.doc-card .file-title[data-v-786adab2]{font-size:12px}.img-wrapper{position:relative}.img-wrapper:hover svg{fill:#000}.pointer{cursor:pointer}.fit{display:block;min-width:64px;max-width:100%;margin:0 auto 0;width:auto;height:auto}.card-img-top[data-v-a78557ce]{border-top-left-radius:0;border-top-right-radius:0}.padding-03[data-v-a78557ce]{padding:.3rem}.card[data-v-a78557ce]{margin-top:1em;margin-left:0;margin-right:0;box-shadow:0 .125rem .25rem rgba(0,0,0,.08)!important;border-radius:0;border:none}.card-body[data-v-a78557ce]{padding:.3rem}.card-img-overlay[data-v-a78557ce]{pointer-events:none;padding:.75rem;bottom:unset;top:0;left:unset;right:unset}.badge-resolution[data-v-a78557ce]{color:#212529;background-color:#ffc107}.play[data-v-a78557ce]{position:absolute;width:25px;height:25px;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.play svg[data-v-a78557ce]{fill:rgba(0,0,0,.7)}.doc-card[data-v-a78557ce]{padding-left:3px;padding-right:3px}.small-badge[data-v-a78557ce]{padding:1px 3px;font-size:70%}.audio-fit[data-v-a78557ce]{height:39px;vertical-align:bottom;display:inline;width:100%}.sub-document .card[data-v-a78557ce]{background:rgba(171,71,188,.12156862745098039)!important}.theme-black .sub-document .card[data-v-a78557ce]{background:#37474f!important}.sub-document .fit[data-v-a78557ce]{padding:4px 4px 0 4px}.fslightbox-toolbar-button:nth-child(2){order:1}.fslightbox-toolbar-button:first-child{order:2}.fslightbox-toolbar-button:nth-child(3){order:3}.fslightbox-toolbar-button:nth-child(4){order:4}.fslightbox-toolbar-button:nth-child(5){order:5}@media (max-width:650px){.fslightbox-toolbar-button:nth-child(6){display:none}}.fslightbox-toolbar-button:nth-child(6){order:6}.fslightbox-toolbar-button:nth-child(7){order:7}#mimeTree[data-v-1ea26eb2]{max-height:350px;overflow:auto}.dropdown-active a{font-weight:700}#results{margin-top:1em;box-shadow:0 .125rem .25rem rgba(0,0,0,.08)!important;border-radius:0;border:none}#results .card-body{padding:.7em 1.25em}.hidden{display:none}#mimeTree[data-v-b24a99e6]{max-height:350px;overflow:auto}.form-control-fix-flex[data-v-b24a99e6]{flex:1 1 auto;width:1%;min-width:0;margin-bottom:0}.suggestion-line[data-v-b24a99e6]{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1}.suggestions{max-height:250px;overflow-y:auto}.theme-black .suggestions{color:#000}#sizeSlider{margin-top:34px;height:12px}.slider-color0{background:#2196f3;box-shadow:none}.theme-black .slider-color0{background:#00bcd4}.noUi-horizontal .noUi-handle{width:2px;height:18px;right:-1px;top:-3px;border:none;background-color:#1976d2;box-shadow:none;cursor:ew-resize;border-radius:0}.theme-black .noUi-horizontal .noUi-handle{background-color:#2168ac}.noUi-handle:before{left:3px}.noUi-handle:after,.noUi-handle:before{top:-6px;width:10px;height:28px;background-color:transparent}.noUi-handle:after{left:-10px}.noUi-draggable{cursor:move}.noUi-tooltip{color:#fff;font-size:13px;line-height:1.333;text-shadow:none;padding:0 2px;background:#2196f3;border-radius:4px;border:none}.theme-black .noUi-tooltip{background:#00bcd4}.theme-black .noUi-connects{background-color:#37474f}.noUi-horizontal .noUi-origin>.noUi-tooltip{bottom:7px}.noUi-target{background-color:#e1e4e9;border:none;box-shadow:none}#dateSlider{margin-top:34px;height:12px}#mimeTree[data-v-61ce9763]{max-height:350px;overflow:auto}.inspire-tree .focused>.wholerow{border:none}.file-icon[data-v-0cec34c8]{position:absolute;max-height:100%;max-width:100%;top:0;bottom:0;left:0;right:0}.theme-black .file-icon[data-v-0cec34c8]{color:hsla(0,0%,100%,.3137254901960784)}.theme-light .file-icon[data-v-0cec34c8]{color:rgba(0,0,0,.6274509803921569)}.sub-document[data-v-2507ef74]{background:rgba(171,71,188,.12156862745098039)!important}.theme-black .sub-document[data-v-2507ef74]{background:#37474f!important}.list-group[data-v-2507ef74]{margin-top:1em}.list-group-item[data-v-2507ef74]{padding:.25rem .5rem;box-shadow:0 .125rem .25rem rgb(0 0 0/8%)!important;border-radius:0;border:none}.path-row[data-v-2507ef74]{display:flex;align-items:flex-start}.path-line[data-v-2507ef74]{color:grey;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-right:.3em}.theme-black .path-line[data-v-2507ef74]{color:#bbb}.play[data-v-2507ef74]{position:absolute;width:18px;height:18px;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.play svg[data-v-2507ef74]{fill:rgba(0,0,0,.7)}.list-group-item .img-wrapper[data-v-2507ef74]{width:88px;height:88px}.fit-sm[data-v-2507ef74]{max-height:100%;max-width:100%;width:auto;height:auto;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.doc-line[data-v-2507ef74]{max-width:calc(100% - 88px - 1.5rem);flex:1;vertical-align:middle;margin-top:auto;margin-bottom:auto}.file-icon-wrapper[data-v-2507ef74]{width:calc(88px + .5rem);height:88px;position:relative}.theme-black .list-group-item{background:#212121;color:#e0e0e0;border-bottom:none;border-left:none;border-right:none;border-radius:0;padding:.25rem .5rem}.theme-black .list-group-item:first-child{border-top:none}#search-panel{box-shadow:0 .125rem .25rem rgba(0,0,0,.08)!important;border-radius:0;border:none}.toast-body-error,.toast-header-error{background:#a94442;color:#f2dede!important}.toast-header-error{color:#fff!important;border-bottom:none;margin-bottom:-1em}.toast-header-error .close{text-shadow:none}.toast-body-warning,.toast-header-warning{background:#ff8f00;color:#fff3e0!important} \ No newline at end of file diff --git a/sist2-vue/dist/js/index.js b/sist2-vue/dist/js/index.js index 8b51d6f..441e214 100644 --- a/sist2-vue/dist/js/index.js +++ b/sist2-vue/dist/js/index.js @@ -1 +1 @@ -(function(t){function e(e){for(var r,a,s=e[0],c=e[1],u=e[2],d=0,p=[];de)&&(f++,p[f]=[],m[f]=[],h[f]=[]),c[g]&&(p[f].push(g),m[f].push(t[g]),h[f].push(d[g]));if(p.forEach((function(t,e){for(var r=t.length,i=0;i100-b?c[1].style.right="".concat((d[1]-(100-b))/b*35,"px"):c[1].style.right="0"}}))}function P(t,e,n){var r={};t.forEach((function(t){var n=r;t.taxonomy.forEach((function(t){n[t]=t in n?n[t]:{},n=n[t]})),0===Object.keys(n).length?n["$size$"]=t.size:e&&(n["."]={$size$:t.size})}));var i=function t(e,n){return Object.keys(e).filter((function(t){return"$size$"!==t})).map((function(r){var i={name:r,depth:n,value:0,children:t(e[r],n+1)};return"$size$"in e[r]&&(i.value=e[r]["$size$"]),i}))};return{name:n,children:i(r,1),value:0,depth:0}}n("fb6a"),n("b680"),n("6062"),n("a630"),n("5319");function j(t){return Object.prototype.hasOwnProperty.call(t._source,"extension")&&""!==t["_source"]["extension"]?"."+t["_source"]["extension"]:""}function q(t){for(var e="",n=0;n=E&&e>16&255,r=e>>8&255,i=e>>0&255;return.2126*n+.7152*r+.0722*i}function F(t){for(var e=new Set,n=t.selected(),r=0;r50?"#000":"#fff";return{style:"user",fg:i,bg:r,text:e.join("."),rawText:t,userTag:!0}}},{key:"esQuery",value:function(t){var e=this;return Z.a.post("".concat(this.baseUrl,"es"),t).then((function(t){var n,r=t.data;return null!==(n=r.hits)&&void 0!==n&&n.hits&&r.hits.hits.forEach((function(t){t["_source"]["name"]=q(t["_source"]["name"]),t["_source"]["path"]=q(t["_source"]["path"]),t["_path_md5"]=X["a"].MD5(t["_source"]["path"]+(t["_source"]["path"]?"/":"")+t["_source"]["name"]+j(t)).toString(),e.setHitProps(t),e.setHitTags(t)})),r}))}},{key:"getMimeTypes",value:function(){return this.esQuery({aggs:{mimeTypes:{terms:{field:"mime",size:1e4}}},size:0}).then((function(t){var e=[];return t["aggregations"]["mimeTypes"]["buckets"].sort((function(t,e){return t.key>e.key})).forEach((function(t){var n=t["key"].split("/"),r=n[0],i=n[1],o=!1,a={id:t["key"],text:"".concat(i," (").concat(t["doc_count"],")")};e.forEach((function(t){t.text===r&&(t.children.push(a),o=!0)})),o||e.push({text:r,children:[a]})})),e}))}},{key:"_createEsTag",value:function(t,e){var n=t.split(".");return/.*\.#[0-9a-f]{6}/.test(t)?{id:n.slice(0,-1).join("."),color:n.pop(),isLeaf:!0,count:e}:{id:t,count:e,isLeaf:!1,color:void 0}}},{key:"getDocInfo",value:function(t){return Z.a.get("".concat(this.baseUrl,"d/").concat(t))}},{key:"getTags",value:function(){var t=this;return this.esQuery({aggs:{tags:{terms:{field:"tag",size:1e4}}},size:0}).then((function(e){var n=new Set,r=e["aggregations"]["tags"]["buckets"].sort((function(t,e){return t["key"].localeCompare(e["key"])})).map((function(e){return t._createEsTag(e["key"],e["doc_count"])}));return r.filter((function(t){return!n.has(t.id)&&(n.add(t.id),!0)}))}))}},{key:"saveTag",value:function(t,e){return Z.a.post("".concat(this.baseUrl,"tag/")+e["_source"]["index"],{delete:!1,name:t,doc_id:e["_id"],path_md5:e._path_md5})}},{key:"deleteTag",value:function(t,e){return Z.a.post("".concat(this.baseUrl,"tag/")+e["_source"]["index"],{delete:!0,name:t,doc_id:e["_id"],path_md5:e._path_md5})}},{key:"getTreemapCsvUrl",value:function(t){return"".concat(this.baseUrl,"s/").concat(t,"/1")}},{key:"getMimeCsvUrl",value:function(t){return"".concat(this.baseUrl,"s/").concat(t,"/2")}},{key:"getSizeCsv",value:function(t){return"".concat(this.baseUrl,"s/").concat(t,"/3")}},{key:"getDateCsv",value:function(t){return"".concat(this.baseUrl,"s/").concat(t,"/4")}}]),t}(),nt=new et(""),rt=n("70b0"),it=n.n(rt),ot={squarify:I["L"],binary:I["H"],sliceDice:I["K"],slice:I["J"],dice:I["I"]},at={PuBuGn:I["n"],PuRd:I["o"],PuBu:I["m"],YlOrBr:I["t"],YlOrRd:I["u"],YlGn:I["r"],YlGnBu:I["s"],Plasma:I["l"],Magma:I["k"],Inferno:I["j"],Viridis:I["q"],Turbo:I["p"]},st={small:[800,600],medium:[1300,750],large:[1900,900],"x-large":[2800,1700],"xx-large":[3600,2e3]},ct={};function ut(t){var e=ct[t]||0;return ct[t]=e+1,t+e}function lt(t,e){var n=new Map,r=new Map;return t.eachAfter((function(t){t.children&&0!==t.children.length?(n.set(t,1+I["v"](t.children,(function(r){return r.x1===t.x1-e?n.get(r):NaN}))),r.set(t,1+I["v"](t.children,(function(n){return n.y1===t.y1-e?r.get(n):NaN})))):(n.set(t,0),r.set(t,0))})).eachBefore((function(t){t.x1-=2*e*n.get(t),t.y1-=2*e*r.get(t)}))}function dt(t,e,n,r,i,o){var a=lt(I["G"]().size([n,r]).tile(ot[i]).paddingOuter(3).paddingTop(16).paddingInner(1).round(!0)(I["h"](t).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value}))),3),s=Math.max.apply(Math,Object(L["a"])(a.descendants().map((function(t){return t.depth})))),c=I["C"]([s,-1],at[o]);e.append("filter").attr("id","shadow").append("feDropShadow").attr("flood-opacity",.3).attr("dx",0).attr("stdDeviation",3);var u=e.selectAll("g").data(I["w"]().key((function(t){return t.depth})).sortKeys(I["a"]).entries(a.descendants())).join("g").attr("filter","url(#shadow)").selectAll("g").data((function(t){return t.values})).join("g").attr("transform",(function(t){return"translate(".concat(t.x0,",").concat(t.y0,")")}));u.append("title").text((function(t){return"".concat(t.ancestors().reverse().splice(1).map((function(t){return t.data.name})).join("/"),"\n").concat(B(t.value))})),u.append("rect").attr("id",(function(t){return t.nodeUid=ut("node")})).attr("fill",(function(t){return c(t.depth)})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})),u.append("clipPath").attr("id",(function(t){return t.clipUid=ut("clip")})).append("use").attr("href",(function(t){return"#".concat(t.nodeUid)})),u.append("text").attr("fill",(function(t){return I["i"](c(t.depth)).l>.5?"#333":"#eee"})).attr("clip-path",(function(t){return"url(#".concat(t.clipUid,")")})).selectAll("tspan").data((function(t){return[t.data.name,B(t.value)]})).join("tspan").text((function(t){return t})),u.filter((function(t){return t.children})).selectAll("tspan").attr("dx",3).attr("y",13),u.filter((function(t){return!t.children})).selectAll("tspan").attr("x",3).attr("y",(function(t,e){return"".concat(0===e?1.1:2.3,"em")}))}function pt(t,e,n,r,i,o,a){var s=I["B"](I["D"]),c=I["G"]().tile(ot[o]).size([n,r]).padding(1).round(!0)(I["h"](t).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value}))),u=e.selectAll("g").data(c.leaves()).join("g").attr("transform",(function(t){return"translate(".concat(t.x0,",").concat(t.y0,")")}));u.append("title").text((function(t){return"".concat(t.ancestors().reverse().map((function(t){return t.data.name})).join("/"),"\n").concat(B(t.value))})),u.append("rect").attr("id",(function(t){return t.leafUid=ut("leaf")})).attr("fill",(function(t){while(t.depth>i)t=t.parent;return s(t.data.name)})).attr("fill-opacity",a).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})),u.append("clipPath").attr("id",(function(t){return t.clipUid=ut("clip")})).append("use").attr("href",(function(t){return"#".concat(t.leafUid)})),u.append("text").attr("clip-path",(function(t){return"url(#".concat(t.clipUid,")")})).selectAll("tspan").data((function(t){return"."===t.data.name&&(t=t.parent),[t.data.name,B(t.value)]})).join("tspan").attr("x",2).attr("y",(function(t,e){return"".concat(0===e?1.1:2.3,"em")})).text((function(t){return t}))}function ht(t,e,n){it.a.toBlob(document.getElementById("treemap"),{width:e,height:n}).then((function(e){var n=document.createElement("a"),r=URL.createObjectURL(e);n.href=r,n.download="".concat(t,"_treemap.png"),document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(r)}),0)}))}var mt={name:"D3Treemap",props:["indexId"],watch:{indexId:function(){this.update(this.indexId)}},mounted:function(){this.update(this.indexId)},methods:{update:function(t){var e=this,n=st[this.$store.state.optTreemapSize][0],r=st[this.$store.state.optTreemapSize][1],i=this.$store.state.optTreemapTiling,o=this.$store.state.optTreemapColorGroupingDepth,a=this.$store.state.optTreemapColor,s=this.$store.state.optTreemapType,c=I["E"]("#treemap");c.selectAll("*").remove(),c.attr("viewBox",[0,0,n,r]).attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").attr("version","1.1").style("overflow","visible").style("font","10px sans-serif"),I["e"](nt.getTreemapCsvUrl(t)).then((function(t){if(t.forEach((function(t){t.taxonomy=t.path.split("/"),t.size=Number(t.size)})),"cascaded"===s){var u=P(t,!1);dt(u,c,n,r,i,a)}else{var l=P(t.sort((function(t,e){return e.taxonomy.length-t.taxonomy.length})),!0),d="black"===e.$store.state.optTheme?.9:.6;pt(l,c,n,r,o,i,d)}}))},downloadTreemap:function(){var t=st[this.$store.state.optTreemapSize][0],e=st[this.$store.state.optTreemapSize][1];ht(this.indexId,t,e)}}},ft=mt,gt=Object(m["a"])(ft,k,M,!1,null,null,null),vt=gt.exports,bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-progress",{attrs:{value:"1",max:"1",animated:""}})},xt=[],yt={},_t=Object(m["a"])(yt,bt,xt,!1,null,null,null),Tt=_t.exports,St=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"agg-mime-count"}})])},wt=[],zt=I["g"]("~s"),$t=20,Ct=I["B"](I["D"]);function Ot(t,e,n,r){var i={top:50,right:0,bottom:10,left:Math.max(6*I["v"](t.sort((function(t,e){return e.count-t.count})).slice(0,15),(function(t){return t.mime.length})),6*I["v"](t.sort((function(t,e){return e.size-t.size})).slice(0,15),(function(t){return t.mime.length})))};t.forEach((function(t){t.name=t.mime,t.value=Number(t.count)})),t=t.sort((function(t,e){return e.value-t.value})).slice(0,15);var o=550,a=Math.ceil((t.length+.1)*$t)+i.top+i.bottom;e.selectAll("*").remove(),e.attr("viewBox",[0,0,o,a]);var s=I["z"]().domain(I["y"](t.length)).rangeRound([i.top,a-i.bottom]),c=I["A"]().domain([0,I["v"](t,(function(t){return t.value}))]).range([i.left,o-i.right]);e.append("g").attr("fill-opacity",n).selectAll("rect").data(t).join("rect").attr("fill",(function(t){return Ct(t.name)})).attr("x",c(0)).attr("y",(function(t,e){return s(e)})).attr("width",(function(t){return c(t.value)-c(0)})).attr("height",s.bandwidth()).append("title").text((function(t){return I["g"](",")(t.value)})),e.append("g").attr("transform","translate(0,".concat(i.top,")")).call(I["d"](c).ticks(o/80,t.format).tickFormat(zt)).call((function(t){return t.select(".domain").remove()})),e.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).tickFormat((function(e){return t[e].name})).tickSizeOuter(0)),e.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(r)}var kt={name:"D3MimeBarSize",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(t){var e=this,n=I["E"]("#agg-mime-count"),r="black"===this.$store.state.optTheme?.9:.6;I["e"](nt.getMimeCsvUrl(t)).then((function(t){Ot(t.slice(),n,r,e.$t("d3.mimeCount"))}))}}},Mt=kt,Lt=Object(m["a"])(Mt,St,wt,!1,null,null,null),It=Lt.exports,Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"agg-mime-size"}})])},Pt=[],jt=I["g"]("~s"),qt=20,Et=I["B"](I["D"]);function Ht(t,e,n,r){var i={top:50,right:0,bottom:10,left:Math.max(6*I["v"](t.sort((function(t,e){return e.count-t.count})).slice(0,15),(function(t){return t.mime.length})),6*I["v"](t.sort((function(t,e){return e.size-t.size})).slice(0,15),(function(t){return t.mime.length})))};t.forEach((function(t){t.name=t.mime,t.value=Number(t.size)})),t=t.sort((function(t,e){return e.value-t.value})).slice(0,15);var o=550,a=Math.ceil((t.length+.1)*qt)+i.top+i.bottom;e.selectAll("*").remove(),e.attr("viewBox",[0,0,o,a]);var s=I["z"]().domain(I["y"](t.length)).rangeRound([i.top,a-i.bottom]),c=I["A"]().domain([0,I["v"](t,(function(t){return t.value}))]).range([i.left,o-i.right]);e.append("g").attr("fill-opacity",n).selectAll("rect").data(t).join("rect").attr("fill",(function(t){return Et(t.name)})).attr("x",c(0)).attr("y",(function(t,e){return s(e)})).attr("width",(function(t){return c(t.value)-c(0)})).attr("height",s.bandwidth()).append("title").text((function(t){return jt(t.value)})),e.append("g").attr("transform","translate(0,".concat(i.top,")")).call(I["d"](c).ticks(o/80,t.format).tickFormat(jt)).call((function(t){return t.select(".domain").remove()})),e.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).tickFormat((function(e){return t[e].name})).tickSizeOuter(0)),e.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(r)}var Bt={name:"D3MimeBarSize",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(t){var e=this,n=I["E"]("#agg-mime-size"),r="black"===this.$store.state.optTheme?.9:.6;I["e"](nt.getMimeCsvUrl(t)).then((function(t){Ht(t.slice(),n,r,e.$t("d3.mimeSize"))}))}}},At=Bt,Rt=Object(m["a"])(At,Dt,Pt,!1,null,null,null),Ut=Rt.exports,Ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"date-histogram"}})])},Qt=[],Nt=I["g"]("~s");function Gt(t,e,n){var r=t.map((function(t){return{length:Number(t.count),x0:Number(t.bucket),x1:Number(t.bucket)+2629800}}));r.sort((function(t,e){return t.length-e.length}));var i={top:50,right:20,bottom:70,left:40},o=I["x"](r,.9,(function(t){return t.length}));r=r.filter((function(t){return t.length>o}));var a=550,s=450;e.selectAll("*").remove(),e.attr("viewBox",[0,0,a,s]);var c=I["A"]().domain([0,I["v"](r,(function(t){return t.length}))]).nice().range([s-i.bottom,i.top]),u=I["A"]().domain(I["f"](r,(function(t){return t.x0}))).nice().range([i.left,a-i.right]);e.append("g").attr("fill","steelblue").selectAll("rect").data(r).join("rect").attr("x",(function(t){return u(t.x0)+1})).attr("width",(function(t){return Math.max(1,u(t.x1)-u(t.x0)-1)})).attr("y",(function(t){return c(t.length)})).attr("height",(function(t){return c(0)-c(t.length)})).call((function(t){return t.append("title").text((function(t){return t.length}))})),e.append("g").attr("transform","translate(0,".concat(s-i.bottom,")")).call(I["b"](u).ticks(a/30).tickSizeOuter(0).tickFormat((function(t){return I["F"]("%Y-%m-%d")(I["M"]("%s")(t))}))).call((function(t){return t.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)")})).call((function(t){return t.append("text").attr("x",a-i.right).attr("y",-4).attr("fill","currentColor").attr("font-weight","bold").attr("text-anchor","end").text("mtime")})),e.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](c).ticks(s/40).tickFormat((function(t){return Nt(t)}))).call((function(t){return t.select(".domain").remove()})).call((function(t){return t.select(".tick:last-of-type text").clone().attr("x",4).attr("text-anchor","start").attr("font-weight","bold").text("File count")})),e.append("text").attr("x",a/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(n)}var Vt={name:"D3DateHistogram",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(t){var e=this,n=I["E"]("#date-histogram");I["e"](nt.getDateCsv(t)).then((function(t){Gt(t.slice(),n,e.$t("d3.dateHistogram"))}))}}},Wt=Vt,Kt=Object(m["a"])(Wt,Ft,Qt,!1,null,null,null),Yt=Kt.exports,Jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"size-histogram"}})])},Zt=[],Xt=I["g"]("~s");function te(t,e,n){var r=t.map((function(t){return{length:Number(t.count),x0:Number(t.bucket),x1:Number(t.bucket)+5242880}}));r=r.sort((function(t,e){return e.length-t.length})).slice(0,25);var i={top:50,right:20,bottom:70,left:40},o=550,a=450;e.selectAll("*").remove(),e.attr("viewBox",[0,0,o,a]);var s=I["A"]().domain([0,I["v"](r,(function(t){return t.length}))]).range([a-i.bottom,i.top]),c=I["A"]().domain(I["f"](r,(function(t){return t.x0}))).nice().range([i.left,o-i.right]);e.append("g").attr("fill","steelblue").selectAll("rect").data(r).join("rect").attr("x",(function(t){return c(t.x0)+1})).attr("width",(function(t){return Math.max(1,c(t.x1)-c(t.x0)-1)})).attr("y",(function(t){return s(t.length)})).attr("height",(function(t){return s(0)-s(t.length)})).call((function(t){return t.append("title").text((function(t){return t.length}))})),e.append("g").attr("transform","translate(0,".concat(a-i.bottom,")")).call(I["b"](c).ticks(o/30).tickSizeOuter(0).tickFormat(Xt)).call((function(t){return t.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)")})).call((function(t){return t.append("text").attr("x",o-i.right).attr("y",-4).attr("fill","currentColor").attr("font-weight","bold").attr("text-anchor","end").text("size (bytes)")})),e.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).ticks(a/40).tickFormat((function(t){return Xt(t)}))).call((function(t){return t.select(".domain").remove()})).call((function(t){return t.select(".tick:last-of-type text").clone().attr("x",4).attr("text-anchor","start").attr("font-weight","bold").text("File count")})),e.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(n)}var ee={name:"D3SizeHistogram",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(t){var e=this,n=I["E"]("#size-histogram");I["e"](nt.getSizeCsv(t)).then((function(t){te(t.slice(),n,e.$t("d3.sizeHistogram"))}))}}},ne=ee,re=Object(m["a"])(ne,Jt,Zt,!1,null,null,null),ie=re.exports,oe={components:{D3SizeHistogram:ie,D3DateHistogram:Yt,D3MimeBarSize:Ut,D3MimeBarCount:It,D3Treemap:vt,Preloader:Tt},data:function(){return{loading:!0,selectedIndex:null,indices:[]}},computed:{indexOptions:function(){return this.indices.map((function(t){return{text:t.name,value:t.id}}))}},mounted:function(){var t=this;nt.getSist2Info().then((function(e){t.indices=e.indices,t.loading=!1}))}},ae=oe,se=(n("f093"),Object(m["a"])(ae,C,O,!1,null,null,null)),ce=se.exports,ue=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.configLoading?t._e():n("div",{staticClass:"container",staticStyle:{"margin-left":"auto","margin-right":"auto"}},[n("b-card",[n("b-card-title",[n("GearIcon"),t._v(" "+t._s(t.$t("config"))+" ")],1),n("p",[t._v(t._s(t.$t("configDescription")))]),n("b-card-body",[n("h4",[t._v(t._s(t.$t("displayOptions")))]),n("b-card",[n("b-form-checkbox",{attrs:{checked:t.optLightboxLoadOnlyCurrent},on:{input:t.setOptLightboxLoadOnlyCurrent}},[t._v(" "+t._s(t.$t("opt.lightboxLoadOnlyCurrent"))+" ")]),n("label",[t._v(t._s(t.$t("opt.lang")))]),n("b-form-select",{attrs:{options:t.langOptions,value:t.optLang},on:{input:t.setOptLang}}),n("label",[t._v(t._s(t.$t("opt.theme")))]),n("b-form-select",{attrs:{options:t.themeOptions,value:t.optTheme},on:{input:t.setOptTheme}}),n("label",[t._v(t._s(t.$t("opt.displayMode")))]),n("b-form-select",{attrs:{options:t.displayModeOptions,value:t.optDisplay},on:{input:t.setOptDisplay}}),n("label",[t._v(t._s(t.$t("opt.columns")))]),n("b-form-select",{attrs:{options:t.columnsOptions,value:t.optColumns},on:{input:t.setOptColumns}})],1),n("br"),n("h4",[t._v(t._s(t.$t("searchOptions")))]),n("b-card",[n("b-form-checkbox",{attrs:{checked:t.optHideDuplicates},on:{input:t.setOptHideDuplicates}},[t._v(t._s(t.$t("opt.hideDuplicates"))+" ")]),n("b-form-checkbox",{attrs:{checked:t.optHighlight},on:{input:t.setOptHighlight}},[t._v(t._s(t.$t("opt.highlight")))]),n("b-form-checkbox",{attrs:{checked:t.optTagOrOperator},on:{input:t.setOptTagOrOperator}},[t._v(t._s(t.$t("opt.tagOrOperator"))+" ")]),n("b-form-checkbox",{attrs:{checked:t.optFuzzy},on:{input:t.setOptFuzzy}},[t._v(t._s(t.$t("opt.fuzzy")))]),n("b-form-checkbox",{attrs:{checked:t.optSearchInPath},on:{input:t.setOptSearchInPath}},[t._v(t._s(t.$t("opt.searchInPath"))+" ")]),n("b-form-checkbox",{attrs:{checked:t.optSuggestPath},on:{input:t.setOptSuggestPath}},[t._v(t._s(t.$t("opt.suggestPath"))+" ")]),n("br"),n("label",[t._v(t._s(t.$t("opt.fragmentSize")))]),n("b-form-input",{attrs:{value:t.optFragmentSize,step:"10",type:"number",min:"0"},on:{input:t.setOptFragmentSize}}),n("label",[t._v(t._s(t.$t("opt.resultSize")))]),n("b-form-input",{attrs:{value:t.optResultSize,type:"number",min:"10"},on:{input:t.setOptResultSize}}),n("label",[t._v(t._s(t.$t("opt.queryMode")))]),n("b-form-select",{attrs:{options:t.queryModeOptions,value:t.optQueryMode},on:{input:t.setOptQueryMode}}),n("label",[t._v(t._s(t.$t("opt.slideDuration")))]),n("b-form-input",{attrs:{value:t.optLightboxSlideDuration,type:"number",min:"1"},on:{input:t.setOptLightboxSlideDuration}})],1),n("h4",{staticClass:"mt-3"},[t._v(t._s(t.$t("treemapOptions")))]),n("b-card",[n("label",[t._v(t._s(t.$t("opt.treemapType")))]),n("b-form-select",{attrs:{value:t.optTreemapType,options:t.treemapTypeOptions},on:{input:t.setOptTreemapType}}),n("label",[t._v(t._s(t.$t("opt.treemapTiling")))]),n("b-form-select",{attrs:{value:t.optTreemapTiling,options:t.treemapTilingOptions},on:{input:t.setOptTreemapTiling}}),n("label",[t._v(t._s(t.$t("opt.treemapColorGroupingDepth")))]),n("b-form-input",{attrs:{value:t.optTreemapColorGroupingDepth,type:"number",min:"1"},on:{input:t.setOptTreemapColorGroupingDepth}}),n("label",[t._v(t._s(t.$t("opt.treemapSize")))]),n("b-form-select",{attrs:{value:t.optTreemapSize,options:t.treemapSizeOptions},on:{input:t.setOptTreemapSize}}),"custom"===t.$store.getters.optTreemapSize?[n("b-form-input",{attrs:{type:"number",min:"0",step:"10"}}),n("b-form-input",{attrs:{type:"number",min:"0",step:"10"}})]:t._e(),n("label",[t._v(t._s(t.$t("opt.treemapColor")))]),n("b-form-select",{attrs:{value:t.optTreemapColor,options:t.treemapColorOptions},on:{input:t.setOptTreemapColor}})],2),n("b-button",{staticClass:"mt-4",attrs:{variant:"danger"},on:{click:function(e){return t.onResetClick()}}},[t._v(t._s(t.$t("configReset")))])],1)],1),t.loading?n("b-card",{staticClass:"mt-4"},[n("Preloader")],1):n("DebugInfo")],1)},le=[],de=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-card",{staticClass:"mb-4 mt-4"},[n("b-card-title",[n("DebugIcon",{staticClass:"mr-1"}),t._v(t._s(t.$t("debug")))],1),n("p",{domProps:{innerHTML:t._s(t.$t("debugDescription"))}}),n("b-card-body",[n("b-table",{staticClass:"mb-0",attrs:{items:t.tableItems,small:"",borderless:"",responsive:"md","thead-class":"hidden"}}),n("hr"),t._l(t.$store.state.sist2Info.indices,(function(t){return n("IndexDebugInfo",{key:t.id,staticClass:"mt-2",attrs:{index:t}})}))],2)],1)},pe=[],he=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h4",[t._v("["+t._s(t.index.name)+"]")]),n("b-table",{staticClass:"mb-0",attrs:{items:t.tableItems,small:"",borderless:"",responsive:"md","thead-class":"hidden"}})],1)},me=[],fe={name:"IndexDebugInfo",props:["index"],computed:{tableItems:function(){return[{key:this.$t("name"),value:this.index.name},{key:this.$t("id"),value:this.index.id},{key:this.$t("indexVersion"),value:this.index.version},{key:this.$t("rewriteUrl"),value:this.index.rewriteUrl},{key:this.$t("timestamp"),value:R(this.index.timestamp)}]}}},ge=fe,ve=Object(m["a"])(ge,he,me,!1,null,"9d879710",null),be=ve.exports,xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 309.998 309.998",fill:"currentColor"}},[n("path",{attrs:{d:"M294.998,155.03H250v-48.82l39.714-39.715c5.858-5.857,5.858-15.356,0-21.213c-5.857-5.857-15.355-5.857-21.213,0 l-23.7,23.701c-12.885-37.2-48.274-63.984-89.802-63.984c-41.528,0-76.913,26.787-89.797,63.989L41.497,45.282 c-5.856-5.859-15.354-5.857-21.213,0s-5.858,15.355,0,21.213L60,106.212v48.818H15c-8.284,0-15,6.716-15,15c0,8.284,6.716,15,15,15 h45.134c0.855,16.314,5.849,31.551,13.944,44.68l-49.685,49.683c-5.858,5.857-5.858,15.354,0,21.213 c2.929,2.93,6.768,4.394,10.607,4.394c3.838,0,7.678-1.465,10.606-4.394l48.095-48.093c16.558,14.018,37.957,22.486,61.301,22.486 c0.019,0,0.037-0.001,0.057-0.001c0.011,0,0.022,0.002,0.033,0.002c0.019,0,0.037-0.003,0.056-0.003 c23.285-0.035,44.629-8.494,61.15-22.483l48.094,48.092c2.929,2.929,6.768,4.394,10.606,4.394c3.839,0,7.678-1.465,10.607-4.394 c5.858-5.858,5.858-15.355,0-21.213l-49.683-49.681c8.096-13.131,13.089-28.366,13.944-44.682h45.132c8.284,0,15-6.716,15-15 C309.998,161.746,303.282,155.03,294.998,155.03z M154.999,34.999c30.681,0,56.465,21.365,63.254,50H91.747 C98.535,56.364,124.318,34.999,154.999,34.999z M90,179.999v-9.272c0.011-0.232,0.035-0.462,0.035-0.696 c0-0.234-0.024-0.464-0.035-0.695v-54.336h50.092v128.254C111.415,236.494,90,210.708,90,179.999z M170.092,243.212V114.999H220 v54.297c-0.012,0.244-0.037,0.486-0.037,0.734c0,0.248,0.025,0.49,0.037,0.734v9.234C220,210.645,198.676,236.388,170.092,243.212z"}})])},ye=[],_e={name:"DebugIcon"},Te=_e,Se=(n("f960"),Object(m["a"])(Te,xe,ye,!1,null,"464a0d97",null)),we=Se.exports,ze={name:"DebugInfo.vue",components:{DebugIcon:we,IndexDebugInfo:be},computed:{tableItems:function(){return[{key:"version",value:this.$store.state.sist2Info.version},{key:"platform",value:this.$store.state.sist2Info.platform},{key:"debugBinary",value:this.$store.state.sist2Info.debug},{key:"sist2CommitHash",value:this.$store.state.sist2Info.sist2Hash},{key:"libscanCommitHash",value:this.$store.state.sist2Info.libscanHash},{key:"esIndex",value:this.$store.state.sist2Info.esIndex},{key:"tagline",value:this.$store.state.sist2Info.tagline},{key:"dev",value:this.$store.state.sist2Info.dev}]}}},$e=ze,Ce=Object(m["a"])($e,de,pe,!1,null,null,null),Oe=Ce.exports,ke=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",fill:"currentColor"}},[n("g",{attrs:{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)"}},[n("path",{attrs:{d:"M4568.5,5011c-73.2-7.7-154-25-177.1-36.6c-84.7-46.2-102-119.4-159.8-689.2s-65.5-610.3-159.8-670c-23.1-15.4-125.1-55.8-225.3-90.5c-100.1-32.7-290.7-111.7-423.6-175.2c-319.6-152.1-315.8-152.1-619.9,94.3c-718.1,583.3-650.7,535.2-747,535.2c-77,0-104-11.6-184.8-77c-157.9-127.1-410.1-375.4-567.9-558.3c-155.9-177.1-190.6-250.3-159.8-344.6c9.6-27,165.6-227.2,344.6-446.7c181-219.5,342.7-425.5,360-458.2c52-88.6,42.3-150.2-50.1-335c-73.2-148.3-144.4-325.4-252.2-623.8c-17.3-50-57.8-113.6-88.6-138.6c-63.5-53.9-59.7-53.9-695-117.4c-527.5-52-577.6-65.5-627.6-179c-46.2-105.9-46.2-1057,0-1162.9c50-113.6,98.2-127.1,646.9-181c271.5-25,523.7-52,560.2-57.8c111.7-17.3,179.1-107.8,259.9-344.6c38.5-115.5,119.4-310,177.1-431.3c57.8-119.4,104-240.7,104-269.5c0-78.9-42.4-140.5-394.7-568c-179-219.5-335-419.7-344.6-446.6c-30.8-94.3,3.9-167.5,159.8-344.6c157.9-181,410.1-429.3,564.1-554.5c96.3-78.9,188.7-105.9,265.7-75.1c26.9,11.6,234.9,173.3,462.1,360c227.2,188.7,433.2,348.5,458.2,358.1c82.8,30.8,136.7,17.3,354.3-86.6c119.4-57.8,308-136.7,419.7-175.2c111.7-38.5,221.4-82.8,244.5-98.2c94.3-59.7,102-100.1,159.8-670c61.6-606.5,73.2-648.8,188.7-700.8c105.9-46.2,1057-46.2,1162.9,0c115.5,52,127.1,94.3,188.7,700.8c57.8,569.9,65.4,610.3,159.8,670c23.1,15.4,132.9,59.7,244.5,98.2s300.3,117.4,417.8,175.2c219.5,104,273.4,117.5,356.2,86.6c25-9.6,231-169.4,458.2-358.1c227.2-186.8,435.1-348.5,462.1-360c77-28.9,169.4-3.9,265.7,75.1c152.1,121.3,442.8,410.1,583.4,577.6c140.6,163.6,173.3,242.6,136.7,333.1c-11.6,27-173.3,234.9-360,462.1c-188.7,227.2-348.5,433.2-358.1,458.2c-30.8,82.8-17.3,136.7,86.6,356.2c57.8,117.4,138.6,311.9,177.1,427.4c80.9,236.8,148.3,327.3,259.9,344.6c36.6,5.8,288.8,32.7,562.2,59.7c308,28.9,517.9,59.7,550.6,77c30.8,15.4,71.2,59.7,90.5,100.1c32.8,65.4,36.6,123.2,34.7,573.7c0,562.2-11.5,627.6-115.5,687.3c-46.2,27-188.7,48.1-612.2,90.5c-573.7,59.7-614.2,67.4-673.8,161.7c-15.4,23.1-59.7,132.9-98.2,244.5s-117.4,300.3-175.2,417.8c-57.8,119.4-104,240.7-104,271.5c0,80.9,40.4,138.6,394.7,569.9c181,219.5,335,419.7,344.6,446.7c30.8,94.3-3.9,167.5-159.8,344.6c-157.9,181-410.1,429.3-564.1,554.5c-96.3,78.9-188.7,104-265.7,75.1c-27-11.6-234.9-173.3-462.1-360c-227.2-188.7-433.2-348.5-458.2-358.1c-80.9-30.8-130.9-19.2-371.6,96.3c-130.9,61.6-325.4,142.5-431.3,177.1c-217.5,71.2-308,140.5-325.4,250.3c-5.8,36.6-32.7,288.8-57.8,560.3c-53.9,550.6-67.4,596.8-181,645C5502.3,5018.7,4807.3,5036,4568.5,5011z M5463.8,1897.8c502.5-127.1,954.9-494.8,1184-960.7c446.7-914.5,78.9-2011.9-824-2460.5c-1053.1-521.8-2308.4,52-2604.9,1189.8c-71.2,277.2-71.2,629.6,0,904.9c192.5,737.4,814.4,1284.2,1569.1,1376.6C4974.8,1971,5255.9,1949.8,5463.8,1897.8z"}})])])},Me=[],Le={name:"GearIcon"},Ie=Le,De=(n("b23c"),Object(m["a"])(Ie,ke,Me,!1,null,"d6d86c56",null)),Pe=De.exports,je={components:{GearIcon:Pe,DebugInfo:Oe,Preloader:Tt},data:function(){return{loading:!0,configLoading:!1,langOptions:[{value:"en",text:this.$t("lang.en")},{value:"fr",text:this.$t("lang.fr")}],queryModeOptions:[{value:"simple",text:this.$t("queryMode.simple")},{value:"advanced",text:this.$t("queryMode.advanced")}],displayModeOptions:[{value:"grid",text:this.$t("displayMode.grid")},{value:"list",text:this.$t("displayMode.list")}],columnsOptions:[{value:"auto",text:this.$t("columns.auto")},{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"},{value:4,text:"4"},{value:5,text:"5"},{value:6,text:"6"},{value:7,text:"7"},{value:8,text:"8"},{value:9,text:"9"},{value:10,text:"10"},{value:11,text:"11"},{value:12,text:"12"}],treemapTypeOptions:[{value:"cascaded",text:this.$t("treemapType.cascaded")},{value:"flat",text:this.$t("treemapType.flat")}],treemapTilingOptions:[{value:"binary",text:this.$t("treemapTiling.binary")},{value:"squarify",text:this.$t("treemapTiling.squarify")},{value:"slice",text:this.$t("treemapTiling.slice")},{value:"dice",text:this.$t("treemapTiling.dice")},{value:"sliceDice",text:this.$t("treemapTiling.sliceDice")}],treemapSizeOptions:[{value:"small",text:this.$t("treemapSize.small")},{value:"medium",text:this.$t("treemapSize.medium")},{value:"large",text:this.$t("treemapSize.large")},{value:"x-large",text:this.$t("treemapSize.xLarge")},{value:"xx-large",text:this.$t("treemapSize.xxLarge")}],treemapColorOptions:[{value:"PuBuGn",text:"Purple-Blue-Green"},{value:"PuRd",text:"Purple-Red"},{value:"PuBu",text:"Purple-Blue"},{value:"YlOrBr",text:"Yellow-Orange-Brown"},{value:"YlOrRd",text:"Yellow-Orange-Red"},{value:"YlGn",text:"Yellow-Green"},{value:"YlGnBu",text:"Yellow-Green-Blue"},{value:"Plasma",text:"Plasma"},{value:"Magma",text:"Magma"},{value:"Inferno",text:"Inferno"},{value:"Viridis",text:"Viridis"},{value:"Turbo",text:"Turbo"}],themeOptions:[{value:"light",text:this.$t("theme.light")},{value:"black",text:this.$t("theme.black")}]}},computed:Object(s["a"])(Object(s["a"])({},Object(_["c"])(["optTheme","optDisplay","optColumns","optHighlight","optFuzzy","optSearchInPath","optSuggestPath","optFragmentSize","optQueryMode","optTreemapType","optTreemapTiling","optTreemapColorGroupingDepth","optTreemapColor","optTreemapSize","optLightboxLoadOnlyCurrent","optLightboxSlideDuration","optResultSize","optTagOrOperator","optLang","optHideDuplicates"])),{},{clientWidth:function(){return window.innerWidth}}),mounted:function(){var t=this;nt.getSist2Info().then((function(e){t.$store.commit("setSist2Info",e),t.loading=!1})),this.$store.subscribe((function(e){e.type.startsWith("setOpt")&&t.$store.dispatch("updateConfiguration")}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])(["setOptTheme","setOptDisplay","setOptColumns","setOptHighlight","setOptFuzzy","setOptSearchInPath","setOptSuggestPath","setOptFragmentSize","setOptQueryMode","setOptTreemapType","setOptTreemapTiling","setOptTreemapColorGroupingDepth","setOptTreemapColor","setOptTreemapSize","setOptLightboxLoadOnlyCurrent","setOptLightboxSlideDuration","setOptContainerWidth","setOptResultSize","setOptTagOrOperator","setOptLang","setOptHideDuplicates"])),{},{onResetClick:function(){localStorage.removeItem("sist2_configuration"),window.location.reload()}})},qe=je,Ee=(n("f2e9"),Object(m["a"])(qe,ue,le,!1,null,null,null)),He=Ee.exports,Be=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("Lightbox"),n("HelpDialog",{attrs:{show:t.showHelp},on:{close:function(e){t.showHelp=!1}}}),t.uiLoading?n("b-card",[n("Preloader")],1):t._e(),n("b-card",{directives:[{name:"show",rawName:"v-show",value:!t.uiLoading,expression:"!uiLoading"}],attrs:{id:"search-panel"}},[n("SearchBar",{on:{"show-help":function(e){t.showHelp=!0}}}),n("b-row",[n("b-col",{staticStyle:{height:"70px"},attrs:{sm:"6"}},[n("SizeSlider")],1),n("b-col",[n("PathTree",{on:{search:function(e){return t.search(!0)}}})],1)],1),n("b-row",[n("b-col",{attrs:{sm:"6"}},[n("b-row",[n("b-col",{staticStyle:{height:"70px"}},[n("DateSlider")],1)],1),n("b-row",[n("b-col",[n("IndexPicker")],1)],1)],1),n("b-col",[n("b-tabs",[n("b-tab",{attrs:{title:t.$t("mimeTypes")}},[n("MimePicker")],1),n("b-tab",{attrs:{title:t.$t("tags")}},[n("TagPicker")],1)],1)],1)],1)],1),t.searchBusy&&0===t.docs.length?n("Preloader",{staticClass:"mt-3"}):t.docs.length>0?n("div",[n("ResultsCard"),"grid"===t.optDisplay?n("DocCardWall",{attrs:{docs:t.docs,append:t.appendFunc}}):n("DocList",{attrs:{docs:t.docs,append:t.appendFunc}})],1):t._e()],1)},Ae=[],Re=n("b85c"),Ue=n("1da1"),Fe=(n("96cf"),n("841c"),n("caad"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("b-input-group",{scopedSlots:t._u([{key:"prepend",fn:function(){return[n("b-input-group-text",[n("b-form-checkbox",{attrs:{checked:t.fuzzy,title:"Toggle fuzzy searching"},on:{change:function(e){return t.setFuzzy(e)}}},[t._v(" "+t._s(t.$t("searchBar.fuzzy"))+" ")])],1)]},proxy:!0},{key:"append",fn:function(){return[n("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(e){return t.$emit("show-help")}}},[t._v(t._s(t.$t("help.help")))])]},proxy:!0}])},[n("b-form-input",{attrs:{value:t.searchText,placeholder:t.advanced()?t.$t("searchBar.advanced"):t.$t("searchBar.simple")},on:{input:function(e){return t.setSearchText(e)}}})],1)],1)}),Qe=[],Ne={computed:Object(s["a"])({},Object(_["c"])({optQueryMode:"optQueryMode",searchText:"searchText",fuzzy:"fuzzy"})),methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])({setSearchText:"setSearchText",setFuzzy:"setFuzzy"})),{},{advanced:function(){return"advanced"===this.optQueryMode}})},Ge=Ne,Ve=Object(m["a"])(Ge,Fe,Qe,!1,null,null,null),We=Ve.exports,Ke=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isMobile?n("div",[n("b-form-select",{attrs:{value:t.selectedIndicesIds,options:t.indices,multiple:"","select-size":6,"text-field":"name","value-field":"id"},on:{change:function(e){return t.onSelect(e)}}})],1):n("div",[n("b-list-group",{attrs:{id:"index-picker-desktop"}},t._l(t.indices,(function(e){return n("b-list-group-item",{staticClass:"d-flex justify-content-between align-items-center list-group-item-action pointer",on:{click:function(n){return t.toggleIndex(e)}}},[n("div",{staticClass:"d-flex"},[n("b-checkbox",{attrs:{checked:t.isSelected(e)},on:{change:function(n){return t.toggleIndex(e)}}}),t._v(" "+t._s(e.name)+" "),n("span",{staticClass:"text-muted timestamp-text ml-2"},[t._v(t._s(t.formatIdxDate(e.timestamp)))])],1),n("b-badge",{staticClass:"version-badge"},[t._v("v"+t._s(e.version))])],1)})),1)],1)},Ye=[],Je=(n("2532"),n("7db0"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-badge",{attrs:{variant:"secondary",pill:t.pill}},[t._v(t._s(t.text))])}),Ze=[],Xe=r["default"].extend({props:{text:String,pill:Boolean}}),tn=Xe,en=(n("8021"),Object(m["a"])(tn,Je,Ze,!1,null,"4dea1070",null)),nn=en.exports,rn=n("b166"),on=r["default"].extend({components:{SmallBadge:nn},data:function(){return{loading:!0}},computed:Object(s["a"])(Object(s["a"])({},Object(_["c"])(["indices","selectedIndices"])),{},{selectedIndicesIds:function(){return this.selectedIndices.map((function(t){return t.id}))},isMobile:function(){return window.innerWidth<=650}}),methods:Object(s["a"])(Object(s["a"])({},Object(_["b"])({setSelectedIndices:"setSelectedIndices"})),{},{onSelect:function(t){this.setSelectedIndices(this.indices.filter((function(e){return t.includes(e.id)})))},formatIdxDate:function(t){return Object(rn["a"])(new Date(1e3*t),"yyyy-MM-dd")},toggleIndex:function(t){this.isSelected(t)?this.setSelectedIndices(this.selectedIndices.filter((function(e){return e.id!=t.id}))):this.setSelectedIndices([t].concat(Object(L["a"])(this.selectedIndices)))},isSelected:function(t){return null!=this.selectedIndices.find((function(e){return e.id==t.id}))}})}),an=on,sn=(n("8c1b"),Object(m["a"])(an,Ke,Ye,!1,null,"0f2d1c85",null)),cn=sn.exports;n("498a");r["default"].use(_["a"]);var un=new _["a"].Store({state:{seed:0,indices:[],tags:[],sist2Info:null,sizeMin:void 0,sizeMax:void 0,dateBoundsMin:null,dateBoundsMax:null,dateMin:void 0,dateMax:void 0,searchText:"",pathText:"",sortMode:"score",fuzzy:!1,size:60,optLang:"en",optHideDuplicates:!0,optTheme:"light",optDisplay:"grid",optHighlight:!0,optTagOrOperator:!1,optFuzzy:!0,optFragmentSize:200,optQueryMode:"simple",optSearchInPath:!1,optColumns:"auto",optSuggestPath:!0,optTreemapType:"cascaded",optTreemapTiling:"squarify",optTreemapColorGroupingDepth:3,optTreemapSize:"medium",optTreemapColor:"PuBuGn",optLightboxLoadOnlyCurrent:!1,optLightboxSlideDuration:15,_onLoadSelectedIndices:[],_onLoadSelectedMimeTypes:[],_onLoadSelectedTags:[],selectedIndices:[],selectedMimeTypes:[],selectedTags:[],lastQueryResults:null,keySequence:0,querySequence:0,uiTagHover:null,uiLightboxIsOpen:!1,uiShowLightbox:!1,uiLightboxSources:[],uiLightboxThumbs:[],uiLightboxCaptions:[],uiLightboxTypes:[],uiLightboxKey:0,uiLightboxSlide:0,uiReachedScrollEnd:!1,uiMimeMap:[]},mutations:{setUiReachedScrollEnd:function(t,e){return t.uiReachedScrollEnd=e},setTags:function(t,e){return t.tags=e},setPathText:function(t,e){return t.pathText=e},setSizeMin:function(t,e){return t.sizeMin=e},setSizeMax:function(t,e){return t.sizeMax=e},setSist2Info:function(t,e){return t.sist2Info=e},setSeed:function(t,e){return t.seed=e},setOptHideDuplicates:function(t,e){return t.optHideDuplicates=e},setOptLang:function(t,e){return t.optLang=e},setSortMode:function(t,e){return t.sortMode=e},setIndices:function(t,e){t.indices=e,t._onLoadSelectedIndices.length>0?t.selectedIndices=e.filter((function(e){return t._onLoadSelectedIndices.some((function(t){return e.id.startsWith(t)}))})):t.selectedIndices=e},setDateMin:function(t,e){return t.dateMin=e},setDateMax:function(t,e){return t.dateMax=e},setDateBoundsMin:function(t,e){return t.dateBoundsMin=e},setDateBoundsMax:function(t,e){return t.dateBoundsMax=e},setSearchText:function(t,e){return t.searchText=e},setFuzzy:function(t,e){return t.fuzzy=e},setLastQueryResult:function(t,e){return t.lastQueryResults=e},_setOnLoadSelectedIndices:function(t,e){return t._onLoadSelectedIndices=e},_setOnLoadSelectedMimeTypes:function(t,e){return t._onLoadSelectedMimeTypes=e},_setOnLoadSelectedTags:function(t,e){return t._onLoadSelectedTags=e},setSelectedIndices:function(t,e){return t.selectedIndices=e},setSelectedMimeTypes:function(t,e){return t.selectedMimeTypes=e},setSelectedTags:function(t,e){return t.selectedTags=e},setUiTagHover:function(t,e){return t.uiTagHover=e},setUiLightboxIsOpen:function(t,e){return t.uiLightboxIsOpen=e},_setUiShowLightbox:function(t,e){return t.uiShowLightbox=e},setUiLightboxKey:function(t,e){return t.uiLightboxKey=e},_setKeySequence:function(t,e){return t.keySequence=e},_setQuerySequence:function(t,e){return t.querySequence=e},addLightboxSource:function(t,e){var n=e.source,r=e.thumbnail,i=e.caption,o=e.type;t.uiLightboxSources.push(n),t.uiLightboxThumbs.push(r),t.uiLightboxCaptions.push(i),t.uiLightboxTypes.push(o)},setUiLightboxSlide:function(t,e){return t.uiLightboxSlide=e},setUiLightboxSources:function(t,e){return t.uiLightboxSources=e},setUiLightboxThumbs:function(t,e){return t.uiLightboxThumbs=e},setUiLightboxTypes:function(t,e){return t.uiLightboxTypes=e},setUiLightboxCaptions:function(t,e){return t.uiLightboxCaptions=e},setOptTheme:function(t,e){return t.optTheme=e},setOptDisplay:function(t,e){return t.optDisplay=e},setOptColumns:function(t,e){return t.optColumns=e},setOptHighlight:function(t,e){return t.optHighlight=e},setOptFuzzy:function(t,e){return t.fuzzy=e},setOptSearchInPath:function(t,e){return t.optSearchInPath=e},setOptSuggestPath:function(t,e){return t.optSuggestPath=e},setOptFragmentSize:function(t,e){return t.optFragmentSize=e},setOptQueryMode:function(t,e){return t.optQueryMode=e},setOptResultSize:function(t,e){return t.size=e},setOptTagOrOperator:function(t,e){return t.optTagOrOperator=e},setOptTreemapType:function(t,e){return t.optTreemapType=e},setOptTreemapTiling:function(t,e){return t.optTreemapTiling=e},setOptTreemapColorGroupingDepth:function(t,e){return t.optTreemapColorGroupingDepth=e},setOptTreemapSize:function(t,e){return t.optTreemapSize=e},setOptTreemapColor:function(t,e){return t.optTreemapColor=e},setOptLightboxLoadOnlyCurrent:function(t,e){return t.optLightboxLoadOnlyCurrent=e},setUiMimeMap:function(t,e){return t.uiMimeMap=e},busUpdateWallItems:function(){},busUpdateTags:function(){}},actions:{loadFromArgs:function(t,e){var n=t.commit;e.query.q&&n("setSearchText",e.query.q),void 0!==e.query.fuzzy&&n("setFuzzy",!0),e.query.i&&n("_setOnLoadSelectedIndices",Array.isArray(e.query.i)?e.query.i:[e.query.i]),e.query.dMin&&n("setDateMin",Number(e.query.dMin)),e.query.dMax&&n("setDateMax",Number(e.query.dMax)),e.query.sMin&&n("setSizeMin",Number(e.query.sMin)),e.query.sMax&&n("setSizeMax",Number(e.query.sMax)),e.query.path&&n("setPathText",e.query.path),e.query.m&&n("_setOnLoadSelectedMimeTypes",N(e.query.m)),e.query.t&&n("_setOnLoadSelectedTags",e.query.t.split(",")),e.query.sort&&(n("setSortMode",e.query.sort),n("setSeed",Number(e.query.seed)))},updateArgs:function(t,e){return Object(Ue["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.state,n.next=3,e.push({query:{q:r.searchText.trim()?r.searchText.trim().replace(/\s+/g," "):void 0,fuzzy:r.fuzzy?null:void 0,i:r.selectedIndices?r.selectedIndices.map((function(t){return t.idPrefix})):void 0,dMin:r.dateMin,dMax:r.dateMax,sMin:r.sizeMin,sMax:r.sizeMax,path:r.pathText?r.pathText:void 0,m:Q(r.selectedMimeTypes),t:0==r.selectedTags.length?void 0:r.selectedTags.join(","),sort:"score"===r.sortMode?void 0:r.sortMode,seed:"random"===r.sortMode?r.seed.toString():void 0}}).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},updateConfiguration:function(t){var e=t.state,n={};Object.keys(e).forEach((function(t){t.startsWith("opt")&&(n[t]=e[t])})),localStorage.setItem("sist2_configuration",JSON.stringify(n))},loadConfiguration:function(t){var e=t.state,n=localStorage.getItem("sist2_configuration");if(n){var r=JSON.parse(n);Object.keys(e).forEach((function(t){t.startsWith("opt")&&(e[t]=r[t])}))}},setSelectedIndices:function(t,e){var n=t.commit;return n("setSelectedIndices",e)},getKeySequence:function(t){var e=t.commit,n=t.state,r=n.keySequence;return e("_setKeySequence",r+1),r},incrementQuerySequence:function(t){var e=t.commit,n=t.state,r=n.querySequence;return e("_setQuerySequence",r+1),r},remountLightbox:function(t){var e=t.commit,n=t.state;e("setUiLightboxKey",n.uiLightboxKey+1)},showLightbox:function(t){var e=t.commit,n=t.state;e("_setUiShowLightbox",!n.uiShowLightbox)},clearResults:function(t){var e=t.commit;e("setLastQueryResult",null),e("_setKeySequence",0),e("_setUiShowLightbox",!1),e("setUiLightboxSources",[]),e("setUiLightboxThumbs",[]),e("setUiLightboxTypes",[]),e("setUiLightboxCaptions",[]),e("setUiLightboxKey",0)}},modules:{},getters:{seed:function(t){return t.seed},getPathText:function(t){return t.pathText},indices:function(t){return t.indices},sist2Info:function(t){return t.sist2Info},indexMap:function(t){var e={};return t.indices.forEach((function(t){return e[t.id]=t})),e},selectedIndices:function(t){return t.selectedIndices},_onLoadSelectedIndices:function(t){return t._onLoadSelectedIndices},selectedMimeTypes:function(t){return t.selectedMimeTypes},selectedTags:function(t){return t.selectedTags},dateMin:function(t){return t.dateMin},dateMax:function(t){return t.dateMax},sizeMin:function(t){return t.sizeMin},sizeMax:function(t){return t.sizeMax},searchText:function(t){return t.searchText},pathText:function(t){return t.pathText},fuzzy:function(t){return t.fuzzy},size:function(t){return t.size},sortMode:function(t){return t.sortMode},lastQueryResult:function(t){return t.lastQueryResults},lastDoc:function(t){return null==t.lastQueryResults?null:t.lastQueryResults.hits.hits.slice(-1)[0]},uiTagHover:function(t){return t.uiTagHover},uiShowLightbox:function(t){return t.uiShowLightbox},uiLightboxSources:function(t){return t.uiLightboxSources},uiLightboxThumbs:function(t){return t.uiLightboxThumbs},uiLightboxCaptions:function(t){return t.uiLightboxCaptions},uiLightboxTypes:function(t){return t.uiLightboxTypes},uiLightboxKey:function(t){return t.uiLightboxKey},uiLightboxSlide:function(t){return t.uiLightboxSlide},optHideDuplicates:function(t){return t.optHideDuplicates},optLang:function(t){return t.optLang},optTheme:function(t){return t.optTheme},optDisplay:function(t){return t.optDisplay},optColumns:function(t){return t.optColumns},optHighlight:function(t){return t.optHighlight},optTagOrOperator:function(t){return t.optTagOrOperator},optFuzzy:function(t){return t.optFuzzy},optSearchInPath:function(t){return t.optSearchInPath},optSuggestPath:function(t){return t.optSuggestPath},optFragmentSize:function(t){return t.optFragmentSize},optQueryMode:function(t){return t.optQueryMode},optTreemapType:function(t){return t.optTreemapType},optTreemapTiling:function(t){return t.optTreemapTiling},optTreemapSize:function(t){return t.optTreemapSize},optTreemapColorGroupingDepth:function(t){return t.optTreemapColorGroupingDepth},optTreemapColor:function(t){return t.optTreemapColor},optLightboxLoadOnlyCurrent:function(t){return t.optLightboxLoadOnlyCurrent},optLightboxSlideDuration:function(t){return t.optLightboxSlideDuration},optResultSize:function(t){return t.size}}}),ln={score:{mode:[{_score:{order:"desc"}},{_tie:{order:"asc"}}],key:function(t){return t._score}},random:{mode:[{_score:{order:"desc"}},{_tie:{order:"asc"}}],key:function(t){return t._score}},dateAsc:{mode:[{mtime:{order:"asc"}},{_tie:{order:"asc"}}],key:function(t){return t._source.mtime}},dateDesc:{mode:[{mtime:{order:"desc"}},{_tie:{order:"asc"}}],key:function(t){return t._source.mtime}},sizeAsc:{mode:[{size:{order:"asc"}},{_tie:{order:"asc"}}],key:function(t){return t._source.size}},sizeDesc:{mode:[{size:{order:"desc"}},{_tie:{order:"asc"}}],key:function(t){return t._source.size}}},dn=function(){function t(){Object(W["a"])(this,t)}return Object(K["a"])(t,[{key:"searchQuery",value:function(){var t=un.getters,e=t.searchText,n=t.pathText,r=""===e,i=t.sizeMin,o=t.sizeMax,a=t.dateMin,s=t.dateMax,c=t.fuzzy,u=t.size,l=t.lastDoc,d=t.selectedIndices.map((function(t){return t.id})),p=t.selectedMimeTypes,h=t.selectedTags,m=[{terms:{index:d}}];i&&o?m.push({range:{size:{gte:i,lte:o}}}):i?m.push({range:{size:{gte:i}}}):o&&m.push({range:{size:{lte:o}}}),a&&s?m.push({range:{mtime:{gte:a,lte:s}}}):a?m.push({range:{mtime:{gte:a}}}):s&&m.push({range:{mtime:{lte:s}}});var f=["name^8","content^3","album^8","artist^8","title^8","genre^2","album_artist^8","font_name^6"];t.optSearchInPath&&f.push("path.text^5"),c&&(f.push("content.nGram"),t.optSearchInPath&&f.push("path.nGram"),f.push("name.nGram^3"));var g,v=n.replace(/\/$/,"").toLowerCase();""!==v&&m.push({term:{path:v}}),p.length>0&&m.push({terms:{mime:p}}),h.length>0&&(t.optTagOrOperator?m.push({terms:{tag:h}}):h.forEach((function(t){return m.push({term:{tag:t}})}))),g="simple"===t.optQueryMode?{simple_query_string:{query:e,fields:f,default_operator:"and"}}:{query_string:{query:e,default_field:"name",default_operator:"and"}};var b={_source:{excludes:["content","_tie"]},query:{bool:{filter:m}},sort:ln[t.sortMode].mode,aggs:{total_size:{sum:{field:"size"}},total_count:{value_count:{field:"size"}}},size:u};return r||(b.query.bool.must=g),l&&(b.search_after=[ln[t.sortMode].key(l),l["_id"]]),t.optHighlight&&(b.highlight={pre_tags:[""],post_tags:[""],fragment_size:t.optFragmentSize,number_of_fragments:1,order:"score",fields:{content:{},name:{},"name.nGram":{},"content.nGram":{},font_name:{}},max_analyzed_offset:9999999},t.optSearchInPath&&(b.highlight.fields["path.text"]={},b.highlight.fields["path.nGram"]={})),"random"===t.sortMode&&(b.query={function_score:{query:{bool:{must:m}},functions:[{random_score:{seed:t.seed,field:"_seq_no"},weight:1e3}],boost_mode:"sum"}},r||b.query.function_score.query.bool.must.push(g)),b}}]),t}(),pn=new dn,hn=n("b047"),mn=n.n(hn),fn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("GridLayout",{ref:"grid-layout",attrs:{options:t.gridOptions},on:{append:t.append,"layout-complete":function(e){return t.$emit("layout-complete")}}},t._l(t.docs,(function(e){return n("DocCard",{key:e._id,attrs:{doc:e,width:t.width}})})),1)},gn=[],vn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"doc-card",class:{"sub-document":t.doc._props.isSubDocument},style:"width: "+t.width+"px"},[n("b-card",{attrs:{"no-body":"","img-top":""}},[n("DocInfoModal",{attrs:{show:t.showInfo,doc:t.doc},on:{close:function(e){t.showInfo=!1}}}),n("ContentDiv",{attrs:{doc:t.doc}}),t.doc._props.hasThumbnail?n("div",{staticClass:"img-wrapper",on:{mouseenter:function(e){return t.onTnEnter()},mouseleave:function(e){return t.onTnLeave()}}},[t.doc._props.isAudio?n("div",{staticClass:"card-img-overlay",class:{"small-badge":t.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[t._v(t._s(t.humanTime(t.doc._source.duration)))])]):t._e(),t.doc._props.isImage&&!t.hover?n("div",{staticClass:"card-img-overlay",class:{"small-badge":t.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[t._v(t._s(t.doc._source.width+"x"+t.doc._source.height))])]):t._e(),(t.doc._props.isVideo||t.doc._props.isGif)&&t.doc._source.duration>0&&!t.hover?n("div",{staticClass:"card-img-overlay",class:{"small-badge":t.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[t._v(t._s(t.humanTime(t.doc._source.duration)))])]):t._e(),t.doc._props.isPlayableVideo?n("div",{staticClass:"play"},[n("svg",{attrs:{viewBox:"0 0 494.942 494.942",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m35.353 0 424.236 247.471-424.236 247.471z"}})])]):t._e(),t.doc._props.isPlayableImage||t.doc._props.isPlayableVideo?n("img",{staticClass:"pointer fit card-img-top",attrs:{src:t.doc._props.isGif&&t.hover?"f/"+t.doc._id:"t/"+t.doc._source.index+"/"+t.doc._id,alt:""},on:{click:function(e){return t.onThumbnailClick()}}}):n("img",{staticClass:"fit card-img-top",attrs:{src:"t/"+t.doc._source.index+"/"+t.doc._id,alt:""}})]):t._e(),t.doc._props.isAudio?n("audio",{ref:"audio",staticClass:"audio-fit fit",attrs:{preload:"none",controls:"",type:t.doc._source.mime,src:"f/"+t.doc._id},on:{play:function(e){return t.onAudioPlay()}}}):t._e(),n("b-card-body",{staticClass:"padding-03"},[n("div",{staticStyle:{display:"flex"}},[n("span",{staticClass:"info-icon",on:{click:function(e){return t.onInfoClick()}}}),n("DocFileTitle",{attrs:{doc:t.doc}})],1),n("div",{staticClass:"card-text"},[n("TagContainer",{attrs:{hit:t.doc}})],1)])],1)],1)},bn=[],xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{mouseenter:function(e){t.showAddButton=!0},mouseleave:function(e){t.showAddButton=!1}}},[n("b-modal",{attrs:{title:t.$t("saveTagModalTitle"),"hide-footer":"","no-fade":"",centered:"",size:"lg",static:"",lazy:""},model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}},[n("b-row",[n("b-col",{staticStyle:{"flex-grow":"2"},attrs:{sm:""}},[n("VueSimpleSuggest",{ref:"suggest",staticClass:"form-control-fix-flex",staticStyle:{"margin-top":"17px"},attrs:{value:t.tagText,list:t.suggestTag,"max-suggestions":0,placeholder:t.$t("saveTagPlaceholder")},on:{select:function(e){return t.setTagText(e)},input:function(e){return t.setTagText(e)}},scopedSlots:t._u([{key:"suggestion-item",fn:function(e){var r=e.suggestion,i=e.query;return n("div",{},[n("div",{staticClass:"suggestion-line"},[n("span",{staticClass:"badge badge-suggestion",style:{background:t.getBg(r),color:t.getFg(r)}},[n("strong",[t._v(t._s(i))]),t._v(t._s(t.getSuggestionWithoutQueryPrefix(r,i))+" ")])])])}}])})],1),n("b-col",{staticClass:"mt-4"},[n("TwitterColorPicker",{staticClass:"mr-auto ml-auto",attrs:{triangle:"hide",width:252},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}})],1)],1),n("b-button",{staticClass:"mt-2",staticStyle:{float:"right"},attrs:{variant:"primary"},on:{click:function(e){return t.saveTag()}}},[t._v(t._s(t.$t("confirm"))+" ")])],1),t._l(t.hit._tags,(function(e){return[e.userTag?n("div",{key:e.rawText,staticStyle:{display:"inline-block"}},[n("span",{staticClass:"badge pointer",class:t.badgeClass(e),style:t.badgeStyle(e),attrs:{id:t.hit._id+e.rawText,title:e.text,tabindex:"-1"},on:{contextmenu:function(n){return t.onTagRightClick(e,n)}}},[t._v(t._s(e.text.split(".").pop()))]),n("b-popover",{attrs:{target:t.hit._id+e.rawText,triggers:"focus blur",placement:"top"}},[n("b-button",{attrs:{variant:"danger"},on:{click:function(n){return t.onTagDeleteClick(e,n)}}},[t._v("Delete")])],1)],1):n("span",{key:e.text,staticClass:"badge",class:t.badgeClass(e),style:t.badgeStyle(e)},[t._v(t._s(e.text.split(".").pop()))])]})),t.showAddButton?n("small",{staticClass:"badge add-tag-button",on:{click:function(e){return t.tagAdd()}}},[t._v("Add")]):n("small",{staticClass:"text-muted badge-size"},[t._v(t._s(t.humanFileSize(t.hit._source.size)))])],2)},yn=[],_n=n("c345"),Tn=n("5111"),Sn=r["default"].extend({components:{TwitterColorPicker:_n["Twitter"],VueSimpleSuggest:Tn["a"]},props:["hit"],data:function(){return{showAddButton:!1,showModal:!1,tagText:null,color:{hex:"#e0e0e0"}}},computed:{tagHover:function(){return this.$store.getters["uiTagHover"]}},methods:{humanFileSize:B,getSuggestionWithoutQueryPrefix:function(t,e){return t.id.slice(e.length,-8)},getBg:function(t){return t.id.slice(-7)},getFg:function(t){return U(t.id.slice(-7))>50?"#000":"#fff"},setTagText:function(t){this.$refs.suggest.clearSuggestions(),"string"!==typeof t?(this.color={hex:"#"+t.id.split("#")[1]},this.tagText=t):this.tagText={id:t,title:t}},badgeClass:function(t){return"badge-".concat(t.style)},badgeStyle:function(t){return{background:t.bg,color:t.fg}},onTagHover:function(t){t.userTag&&this.$store.commit("setUiTagHover",t)},onTagLeave:function(){this.$store.commit("setUiTagHover",null)},onTagDeleteClick:function(t,e){var n=this;this.hit._tags=this.hit._tags.filter((function(e){return e!==t})),nt.deleteTag(t.rawText,this.hit).then((function(){n.$store.commit("busUpdateWallItems"),n.$store.commit("busUpdateTags")}))},tagAdd:function(){this.showModal=!0},saveTag:function(){var t=this;if(this.tagText.id.includes("#"))this.$bvToast.toast(this.$t("toast.invalidTag"),{title:this.$t("toast.invalidTagTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"});else{var e=this.tagText.id+this.color.hex.replace("#",".#"),n=this.hit._tags.filter((function(t){return t.userTag}));null==n.find((function(t){return t.rawText===e}))?(this.hit._tags.push(nt.createUserTag(e)),nt.saveTag(e,this.hit).then((function(){t.tagText=null,t.showModal=!1,t.$store.commit("busUpdateWallItems"),t.$store.commit("busUpdateTags")}))):this.$bvToast.toast(this.$t("toast.dupeTag"),{title:this.$t("toast.dupeTagTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"})}},suggestTag:function(t){var e=this;return Object(Ue["a"])(regeneratorRuntime.mark((function n(){var r,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t=t.toLowerCase(),n.next=3,e.getTagChoices(t);case 3:for(r=n.sent,i=[],o=0;o').concat(t,", ").concat(e,"")}function Hn(t,e){var n=t.split(","),r=Number(n[0].trim().split(":")[0])/Number(n[0].trim().split(":")[1]),i=Number(n[1].trim().split(":")[0])/Number(n[1].trim().split(":")[1]),o=Number(n[2].trim().split(":")[0])/Number(n[2].trim().split(":")[1]);return(r+i/60+o/3600)*("S"===e||"W"===e?-1:1)}var Bn={name:"InfoTable",props:["doc"],computed:{tableItems:function(){var t=this.doc._source,e=[{key:"index",value:"[".concat(this.$store.getters.indexMap[t.index].name,"]")},{key:"mtime",value:R(t.mtime)},{key:"mime",value:t.mime},{key:"size",value:B(t.size)},{key:"path",value:t.path}];"width"in this.doc._source&&e.push({key:"image size",value:"".concat(t.width,"x").concat(t.height)});var n=["title","duration","audioc","videoc","bitrate","artist","album","album_artist","genre","font_name","author","modified_by","pages","tag","exif_make","exif_software","exif_exposure_time","exif_fnumber","exif_focal_length","exif_user_comment","exif_iso_speed_ratings","exif_model","exif_datetime","checksum"];return n.forEach((function(n){n in t&&e.push({key:n,value:t[n]})})),"exif_gps_longitude_dec"in t?e.push({key:"Exif GPS",html:En(t["exif_gps_latitude_dec"],t["exif_gps_longitude_dec"])}):"exif_gps_longitude_dms"in t&&e.push({key:"Exif GPS",html:En(Hn(t["exif_gps_latitude_dms"],t["exif_gps_latitude_ref"]),Hn(t["exif_gps_longitude_dms"],t["exif_gps_longitude_ref"]))}),e}}},An=Bn,Rn=Object(m["a"])(An,jn,qn,!1,null,"11002a20",null),Un=Rn.exports,Fn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.loading?n("Preloader"):t.content?n("div",{staticClass:"content-div"},[t._v(t._s(t.content))]):t._e()},Qn=[],Nn={name:"LazyContentDiv",components:{Preloader:Tt},props:["docId"],data:function(){return{content:"",loading:!0}},mounted:function(){var t=this;nt.getDocInfo(this.docId).then((function(e){t.content=e.data.content,t.loading=!1}))}},Gn=Nn,Vn=Object(m["a"])(Gn,Fn,Qn,!1,null,"3644e939",null),Wn=Vn.exports,Kn={name:"DocInfoModal",components:{LazyContentDiv:Wn,InfoTable:Un},props:["doc","show"],methods:{ext:j}},Yn=Kn,Jn=Object(m["a"])(Yn,Dn,Pn,!1,null,"26f8eb5c",null),Zn=Jn.exports,Xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.content()?n("div",{staticClass:"content-div",domProps:{innerHTML:t._s(t.content())}}):t._e()},tr=[],er={name:"ContentDiv",props:["doc"],methods:{content:function(){return this.doc.highlight?this.doc.highlight["content.nGram"]?this.doc.highlight["content.nGram"][0]:this.doc.highlight.content?this.doc.highlight.content[0]:void 0:null}}},nr=er,rr=Object(m["a"])(nr,Xn,tr,!1,null,"a093e946",null),ir=rr.exports,or={components:{ContentDiv:ir,DocInfoModal:Zn,DocFileTitle:In,TagContainer:$n},props:["doc","width"],data:function(){return{ext:j,showInfo:!1,hover:!1}},computed:{placeHolderStyle:function(){var t=this.doc._source.thumbnail.split(","),e=Number(t[0]),n=Number(t[1]),r=400;return{height:"".concat(Math.min(n/e*this.width,r),"px")}},smallBadge:function(){return this.width<150}},methods:{humanFileSize:B,humanTime:A,onInfoClick:function(){this.showInfo=!0},onThumbnailClick:function(){var t=this;return Object(Ue["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$store.commit("setUiLightboxSlide",t.doc._seq),e.next=3,t.$store.dispatch("showLightbox");case 3:case"end":return e.stop()}}),e)})))()},onAudioPlay:function(){var t=this;document.getElementsByTagName("audio").forEach((function(e){e!==t.$refs["audio"]&&e.pause()}))},onTnEnter:function(){this.hover=!0},onTnLeave:function(){this.hover=!1}}},ar=or,sr=(n("b9df"),n("706c"),Object(m["a"])(ar,vn,bn,!1,null,"a78557ce",null)),cr=sr.exports,ur=n("527a");r["default"].use(ur["a"]);var lr=r["default"].extend({components:{DocCard:cr},props:["docs","append"],data:function(){return{width:0,gridOptions:{align:"center",margin:0,transitionDuration:0,isOverflowScroll:!1,isConstantSize:!1,useFit:!1,useRecycle:!1}}},computed:{colCount:function(){var t=this.$store.getters["optColumns"];return"auto"===t?Math.round(this.$refs["grid-layout"].$el.scrollWidth/300):t}},mounted:function(){var t=this;this.width=this.$refs["grid-layout"].$el.scrollWidth/this.colCount,1===this.colCount&&this.$refs["grid-layout"].$el.classList.add("grid-single-column"),this.$store.subscribe((function(e){"busUpdateWallItems"===e.type&&t.$refs["grid-layout"]&&t.$refs["grid-layout"].updateItems()}))}}),dr=lr,pr=Object(m["a"])(dr,fn,gn,!1,null,null,null),hr=pr.exports,mr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("FsLightbox",{key:t.lightboxKey,attrs:{toggler:t.showLightbox,sources:t.lightboxSources,thumbs:t.lightboxThumbs,captions:t.lightboxCaptions,types:t.lightboxTypes,"source-index":t.lightboxSlide,"custom-toolbar-buttons":t.customButtons,"slideshow-time":1e4,"zoom-increment":.5,"load-only-current-source":t.$store.getters.optLightboxLoadOnlyCurrent,"on-close":t.onClose,"on-open":t.onShow,"on-slide-change":t.onSlideChange}}),n("a",{staticStyle:{display:"none"},attrs:{id:"lightbox-download"}})],1)},fr=[],gr=n("e099"),vr=n.n(gr),br={name:"Lightbox",components:{FsLightbox:vr.a},data:function(){return{customButtons:[{viewBox:"0 0 384.928 384.928",d:"M321.339,245.334c-4.74-4.692-12.439-4.704-17.179,0l-99.551,98.564V12.03 c0-6.641-5.438-12.03-12.151-12.03s-12.151,5.39-12.151,12.03v331.868l-99.551-98.552c-4.74-4.704-12.439-4.704-17.179,0 s-4.74,12.319,0,17.011l120.291,119.088c4.692,4.644,12.499,4.644,17.191,0l120.291-119.088 C326.091,257.653,326.091,250.038,321.339,245.334C316.599,240.642,326.091,250.038,321.339,245.334z",width:"17px",height:"17px",title:"Download",onClick:this.onDownloadClick}]}},computed:{showLightbox:function(){return this.$store.getters["uiShowLightbox"]},lightboxSources:function(){return this.$store.getters["uiLightboxSources"]},lightboxThumbs:function(){return this.$store.getters["uiLightboxThumbs"]},lightboxKey:function(){return this.$store.getters["uiLightboxKey"]},lightboxSlide:function(){return this.$store.getters["uiLightboxSlide"]},lightboxCaptions:function(){return this.$store.getters["uiLightboxCaptions"]},lightboxTypes:function(){return this.$store.getters["uiLightboxTypes"]}},methods:{onDownloadClick:function(){var t=this.lightboxSources[this.lightboxSlide],e=document.getElementById("lightbox-download");e.setAttribute("href",t),e.setAttribute("download",""),e.click()},onShow:function(){this.$store.commit("setUiLightboxIsOpen",!0)},onClose:function(){this.$store.commit("setUiLightboxIsOpen",!1)},onSlideChange:function(){document.getElementsByTagName("video").forEach((function(t){t.pause()}))}}},xr=br,yr=(n("5ee9"),Object(m["a"])(xr,mr,fr,!1,null,null,null)),_r=yr.exports,Tr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"lightbox-caption"},[n("p",[n("b",[t._v(t._s("["+t.$store.getters.indices.find((function(e){return e.id===t.hit._source.index})).name+"]"))]),t._v(t._s("/"+t.hit._source.path+"/"+t.hit._source.name+t.ext(t.hit))+" ")]),n("p",{staticStyle:{"margin-top":"-1em"}},[t.hit._source.width?n("span",[t._v(t._s(t.hit._source.width+"x"+t.hit._source.height))]):t._e(),t._v(" "+t._s(" ("+t.humanFileSize(t.hit._source.size)+")")+" ")])])},Sr=[],wr={name:"LightboxCaption",props:["hit"],methods:{humanFileSize:B,ext:j}},zr=wr,$r=Object(m["a"])(zr,Tr,Sr,!1,null,null,null),Cr=$r.exports,Or=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"mimeTree"}})},kr=[],Mr=n("cea5"),Lr=n.n(Mr),Ir=n("52e7"),Dr=n.n(Ir),Pr=(n("aac9"),{name:"MimePicker",data:function(){return{mimeTree:null}},mounted:function(){var t=this;this.$store.subscribe((function(e){if("setUiMimeMap"===e.type){var n=e.payload.slice();t.mimeTree=new Lr.a({selection:{mode:"checkbox"},data:n}),new Dr.a(t.mimeTree,{target:"#mimeTree"}),t.mimeTree.on("node.state.changed",t.handleTreeClick),t.mimeTree.deselect(),t.$store.state._onLoadSelectedMimeTypes.length>0&&t.$store.state._onLoadSelectedMimeTypes.forEach((function(e){t.mimeTree.node(e).select()}))}}))},methods:{handleTreeClick:function(t,e){"indeterminate"!==e&&"collapsed"!==e&&"rendered"!==e&&"focused"!==e&&this.$store.commit("setSelectedMimeTypes",F(this.mimeTree))}}}),jr=Pr,qr=(n("f798"),Object(m["a"])(jr,Or,kr,!1,null,"1ea26eb2",null)),Er=qr.exports,Hr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.lastResultsLoaded?n("b-card",{attrs:{id:"results"}},[n("span",[t._v(t._s(t.hitCount)+" "+t._s(1===t.hitCount?t.$t("hit"):t.$t("hits")))]),n("div",{staticStyle:{float:"right"}},[n("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.collapse-1",modifiers:{"collapse-1":!0}}],staticClass:"not-mobile",attrs:{variant:"primary"}},[t._v(t._s(t.$t("details")))]),n("SortSelect",{staticClass:"ml-2"}),n("DisplayModeToggle",{staticClass:"ml-2"})],1),n("b-collapse",{staticClass:"pt-2",staticStyle:{clear:"both"},attrs:{id:"collapse-1"}},[n("b-card",[n("b-table",{staticClass:"mb-0",attrs:{items:t.tableItems,small:"",borderless:"","thead-class":"hidden"}})],1)],1)],1):t._e()},Br=[],Ar=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-button-group",[n("b-button",{attrs:{variant:"primary",title:t.$t("displayMode.list"),pressed:"list"===t.optDisplay},on:{click:function(e){return t.setOptDisplay("list")}}},[n("svg",{attrs:{width:"20px",height:"20px",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[n("path",{attrs:{fill:"currentColor",d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"}})])]),n("b-button",{attrs:{variant:"primary",title:t.$t("displayMode.grid"),pressed:"grid"===t.optDisplay},on:{click:function(e){return t.setOptDisplay("grid")}}},[n("svg",{attrs:{width:"20px",height:"20px",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[n("path",{attrs:{fill:"currentColor",d:"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"}})])])],1)},Rr=[],Ur={name:"DisplayModeToggle",computed:Object(s["a"])({},Object(_["c"])(["optDisplay"])),methods:Object(s["a"])({},Object(_["d"])(["setOptDisplay"]))},Fr=Ur,Qr=Object(m["a"])(Fr,Ar,Rr,!1,null,"747547a4",null),Nr=Qr.exports,Gr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-dropdown",{attrs:{variant:"primary"},scopedSlots:t._u([{key:"button-content",fn:function(){return[n("svg",{attrs:{"aria-hidden":"true",width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},[n("path",{attrs:{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"}})])]},proxy:!0}])},[n("b-dropdown-item",{class:{"dropdown-active":"score"===t.sort},on:{click:function(e){return t.onSelect("score")}}},[t._v(t._s(t.$t("sort.relevance"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"dateAsc"===t.sort},on:{click:function(e){return t.onSelect("dateAsc")}}},[t._v(t._s(t.$t("sort.dateAsc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"dateDesc"===t.sort},on:{click:function(e){return t.onSelect("dateDesc")}}},[t._v(" "+t._s(t.$t("sort.dateDesc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"sizeAsc"===t.sort},on:{click:function(e){return t.onSelect("sizeAsc")}}},[t._v(t._s(t.$t("sort.sizeAsc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"sizeDesc"===t.sort},on:{click:function(e){return t.onSelect("sizeDesc")}}},[t._v(" "+t._s(t.$t("sort.sizeDesc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"random"===t.sort},on:{click:function(e){return t.onSelect("random")}}},[t._v(" "+t._s(t.$t("sort.random"))+" ")])],1)},Vr=[],Wr={name:"SortSelect",computed:{sort:function(){return this.$store.state.sortMode}},methods:{onSelect:function(t){"random"===t&&this.$store.commit("setSeed",Math.round(1e5*Math.random())),this.$store.commit("setSortMode",t)}}},Kr=Wr,Yr=(n("a8cc"),Object(m["a"])(Kr,Gr,Vr,!1,null,null,null)),Jr=Yr.exports,Zr=r["default"].extend({name:"ResultsCard",components:{SortSelect:Jr,DisplayModeToggle:Nr},computed:{lastResultsLoaded:function(){return null!=this.$store.state.lastQueryResults},hitCount:function(){return this.$store.state.lastQueryResults.aggregations.total_count.value},tableItems:function(){var t=[];return t.push({key:this.$t("queryTime"),value:this.took()}),t.push({key:this.$t("totalSize"),value:this.totalSize()}),t}},methods:{took:function(){return this.$store.state.lastQueryResults.took+"ms"},totalSize:function(){return B(this.$store.state.lastQueryResults.aggregations.total_size.value)}}}),Xr=Zr,ti=(n("a079"),Object(m["a"])(Xr,Hr,Br,!1,null,null,null)),ei=ti.exports,ni=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"input-group",staticStyle:{"margin-bottom":"0.5em","margin-top":"1em"}},[n("div",{staticClass:"input-group-prepend"},[n("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(e){return t.$refs["path-modal"].show()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",width:"20px"}},[n("path",{attrs:{fill:"currentColor",d:"M288 224h224a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32H400L368 0h-80a32 32 0 0 0-32 32v64H64V8a8 8 0 0 0-8-8H40a8 8 0 0 0-8 8v392a16 16 0 0 0 16 16h208v64a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H400l-32-32h-80a32 32 0 0 0-32 32v64H64V128h192v64a32 32 0 0 0 32 32zm0 96h66.74l32 32H512v128H288zm0-288h66.74l32 32H512v128H288z"}})])])],1),n("VueSimpleSuggest",{staticClass:"form-control-fix-flex",attrs:{value:t.getPathText,list:t.suggestPath,"max-suggestions":0,placeholder:t.$t("pathBar.placeholder")},on:{input:t.setPathText},scopedSlots:t._u([{key:"suggestion-item",fn:function(e){var r=e.suggestion,i=e.query;return n("div",{},[n("div",{staticClass:"suggestion-line",attrs:{title:r}},[n("strong",[t._v(t._s(i))]),t._v(t._s(t.getSuggestionWithoutQueryPrefix(r,i))+" ")])])}}])})],1),n("b-modal",{ref:"path-modal",attrs:{title:t.$t("pathBar.modalTitle"),size:"lg","hide-footer":!0,static:""}},[n("div",{attrs:{id:"pathTree"}})])],1)},ri=[],ii=(n("c4c9"),{name:"PathTree",components:{VueSimpleSuggest:Tn["a"]},data:function(){return{mimeTree:null,pathItems:[],tmpPath:""}},computed:Object(s["a"])({},Object(_["c"])(["getPathText"])),mounted:function(){var t=this;this.$store.subscribe((function(e){if("setIndices"===e.type){var n=new Lr.a({data:function(e,n,r){return t.getNextDepth(e)},sort:"text"});t.$store.state.indices.forEach((function(t){n.addNode({id:"/"+t.id,values:["/"+t.id],text:"/[".concat(t.name,"]"),index:t.id,depth:0,children:!0})})),new Dr.a(n,{target:"#pathTree"}),n.on("node.click",t.handleTreeClick),n.expand()}}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])(["setPathText"])),{},{getSuggestionWithoutQueryPrefix:function(t,e){return t.slice(e.length)},getPathChoices:function(){var t=this;return Object(Ue["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var n={suggest:{path:{prefix:t.getPathText,completion:{field:"suggest-path",skip_duplicates:!0,size:1e4}}}};nt.esQuery(n).then((function(t){return e(t["suggest"]["path"][0]["options"].map((function(t){return t["_source"]["path"]})))}))})));case 1:case"end":return e.stop()}}),e)})))()},suggestPath:function(t){var e=this;return Object(Ue["a"])(regeneratorRuntime.mark((function n(){var r,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.$store.state.optSuggestPath){n.next=2;break}return n.abrupt("return",[]);case 2:return t=t.toLowerCase(),n.next=5,e.getPathChoices();case 5:for(r=n.sent,i=[],o=0;o0&&(e.query.bool.must={prefix:{path:t.id}}),nt.esQuery(e).then((function(e){var n=e["aggregations"]["paths"]["buckets"];if(!n)return!1;var r=[];return n.filter((function(e){return e.key.length>t.id.length||t.id.startsWith("/")})).sort((function(t,e){return t.key>e.key})).map((function(e){if(r.some((function(t){return e.key.startsWith(t)})))return null;var n=t.id.startsWith("/")?e.key:e.key.slice(t.id.length+1);return r.push(e.key),{id:e.key,text:"".concat(n,"/ (").concat(e.doc_count,")"),depth:t.depth+1,index:t.index,values:[e.key],children:!0}})).filter((function(t){return null!==t}))}))},handleTreeClick:function(t,e,n){0!==e.depth&&(this.setPathText(e.id),this.$refs["path-modal"].hide(),this.$emit("search")),n()}})}),oi=ii,ai=(n("ddab"),n("c919"),Object(m["a"])(oi,ni,ri,!1,null,"b24a99e6",null)),si=ai.exports,ci=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"sizeSlider"}})},ui=[],li=n("f528"),di=n.n(li),pi=(n("df2f"),{name:"SizeSlider",mounted:function(){var t=this,e=document.getElementById("sizeSlider"),n=di.a.create(e,{start:[this.$store.state.sizeMin?this.$store.state.sizeMin:0,this.$store.state.sizeMax?this.$store.state.sizeMax:5e10],tooltips:[!0,!0],behaviour:"drag-tap",connect:!0,range:{min:0,"10%":1e6,"20%":1e7,"50%":5e9,max:5e10},format:{to:function(t){return t>=5e10?"50G+":B(Math.round(t))},from:function(t){return t}}});D(e,10," - "),e.querySelectorAll(".noUi-connect")[0].classList.add("slider-color0"),n.on("set",(function(e,n,r){0===n?t.$store.commit("setSizeMin",0===r[0]?void 0:Math.round(r[0])):t.$store.commit("setSizeMax",r[1]>=5e10?void 0:Math.round(r[1]))}))}}),hi=pi,mi=(n("95ee"),Object(m["a"])(hi,ci,ui,!1,null,null,null)),fi=mi.exports,gi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"dateSlider"}})},vi=[],bi={name:"DateSlider",mounted:function(){var t=this;this.$store.subscribe((function(e){if("setDateBoundsMax"===e.type){var n=document.getElementById("dateSlider");if(n.children.length>0)return;var r=t.$store.state.dateBoundsMax,i=t.$store.state.dateBoundsMin,o=di.a.create(n,{start:[t.$store.state.dateMin?t.$store.state.dateMin:i,t.$store.state.dateMax?t.$store.state.dateMax:r],tooltips:[!0,!0],behaviour:"drag-tap",connect:!0,range:{min:i,max:r},format:{to:function(t){return R(t)},from:function(t){return t}}});D(n,10," - ",!0),n.querySelectorAll(".noUi-connect")[0].classList.add("slider-color0"),o.on("set",(function(e,n,o){0===n?t.$store.commit("setDateMin",o[0]===i?void 0:Math.round(o[0])):t.$store.commit("setDateMax",o[1]>=r?void 0:Math.round(o[1]))}))}}))}},xi=bi,yi=(n("5a9f"),Object(m["a"])(xi,gi,vi,!1,null,null,null)),_i=yi.exports,Ti=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"tagTree"}})},Si=[];function wi(t){return t._tree.defaultState.forEach((function(e,n){t.state(n,e)})),t}function zi(t,e,n,r,i){return r.state(t)!==e&&(r._tree.batch(),r._tree.config.nodes.resetStateOnRestore&&"restored"===n&&wi(r),r.state(t,e),r._tree.emit("node."+n,r,!1),i&&r.hasChildren()&&r.children.recurseDown((function(r){zi(t,e,n,r)})),r.markDirty(),r._tree.end()),r}function $i(t,e,n,r){var i=e.split("."),o={id:n,count:r,text:1!==i.length?i[0]:"".concat(i[0]," (").concat(r,")"),name:i[0],children:[],blur:function(){},select:function(){return this.state("selected",!0),this.check()},deselect:function(){return this.state("selected",!1),this.uncheck()},uncheck:function(){return zi("checked",!1,"unchecked",this,!1),this.state("indeterminate",!1),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.end(),this},check:function(){return zi("checked",!0,"checked",this,!1),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.end(),this}},a=!1;t.forEach((function(t){t.name===o.name&&(a=!0,1!==i.length?$i(t.children,i.slice(1).join("."),n,r):(console.error("FIXME: Duplicate tag?"),console.trace(t)))})),a||(1!==i.length?($i(o.children,i.slice(1).join("."),n,r),t.push(o)):t.push(o))}var Ci={name:"TagPicker",data:function(){return{tagTree:null,loadedFromArgs:!1}},mounted:function(){var t=this;this.$store.subscribe((function(e){"setUiMimeMap"===e.type?(t.initializeTree(),t.updateTree()):"busUpdateTags"===e.type&&window.setTimeout(t.updateTree,2e3)}))},methods:{initializeTree:function(){var t=[];this.tagTree=new Lr.a({selection:{mode:"checkbox",autoDeselect:!1},checkbox:{autoCheckChildren:!1},data:t}),new Dr.a(this.tagTree,{target:"#tagTree"}),this.tagTree.on("node.state.changed",this.handleTreeClick)},updateTree:function(){var t=this,e=[];nt.getTags().then((function(n){n.forEach((function(t){return $i(e,t.id,t.id,t.count)})),t.tagTree.removeAll(),t.tagTree.addNodes(e),t.$store.state._onLoadSelectedTags.length>0&&!t.loadedFromArgs&&t.$store.state._onLoadSelectedTags.forEach((function(e){t.tagTree.node(e).select(),t.loadedFromArgs=!0}))}))},handleTreeClick:function(t,e){"indeterminate"!==e&&"collapsed"!==e&&"rendered"!==e&&"focused"!==e&&this.$store.commit("setSelectedTags",F(this.tagTree))}}},Oi=Ci,ki=(n("706cd"),n("e478"),Object(m["a"])(Oi,Ti,Si,!1,null,"61ce9763",null)),Mi=ki.exports,Li=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-list-group",{staticClass:"mt-3"},t._l(t.docs,(function(t){return n("DocListItem",{key:t._id,attrs:{doc:t}})})),1)},Ii=[],Di=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-list-group-item",{staticClass:"flex-column align-items-start mb-2",class:{"sub-document":t.doc._props.isSubDocument}},[n("DocInfoModal",{attrs:{show:t.showInfo,doc:t.doc},on:{close:function(e){t.showInfo=!1}}}),n("div",{staticClass:"media ml-2"},[t.doc._props.hasThumbnail?n("div",{staticClass:"align-self-start mr-2 wrapper-sm"},[n("div",{staticClass:"img-wrapper"},[t.doc._props.isPlayableVideo?n("div",{staticClass:"play"},[n("svg",{attrs:{viewBox:"0 0 494.942 494.942",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m35.353 0 424.236 247.471-424.236 247.471z"}})])]):t._e(),t.doc._props.isPlayableImage||t.doc._props.isPlayableVideo?n("img",{staticClass:"pointer fit-sm",attrs:{src:t.doc._props.isGif&&t.hover?"f/"+t.doc._id:"t/"+t.doc._source.index+"/"+t.doc._id,alt:""},on:{click:function(e){return t.onThumbnailClick()}}}):n("img",{staticClass:"fit-sm",attrs:{src:"t/"+t.doc._source.index+"/"+t.doc._id,alt:""}})])]):n("div",{staticClass:"file-icon-wrapper"},[n("FileIcon")],1),n("div",{staticClass:"doc-line ml-3"},[n("div",{staticStyle:{display:"flex"}},[n("span",{staticClass:"info-icon",on:{click:function(e){t.showInfo=!0}}}),n("DocFileTitle",{attrs:{doc:t.doc}})],1),n("ContentDiv",{attrs:{doc:t.doc}}),n("div",{staticClass:"path-row"},[n("div",{staticClass:"path-line",domProps:{innerHTML:t._s(t.path())}}),n("TagContainer",{attrs:{hit:t.doc}})],1),t.doc._source.pages||t.doc._source.author?n("div",{staticClass:"path-row text-muted"},[t.doc._source.pages?n("span",[t._v(t._s(t.doc._source.pages)+" "+t._s(t.doc._source.pages>1?t.$t("pages"):t.$t("page")))]):t._e(),t.doc._source.author&&t.doc._source.pages?n("span",{staticClass:"mx-1"},[t._v("-")]):t._e(),t.doc._source.author?n("span",[t._v(t._s(t.doc._source.author))]):t._e()]):t._e()],1)])],1)},Pi=[],ji=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{staticClass:"file-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}},[n("path",{attrs:{fill:"currentColor",d:"M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z"}})])},qi=[],Ei={name:"FileIcon"},Hi=Ei,Bi=(n("5de8"),Object(m["a"])(Hi,ji,qi,!1,null,"0cec34c8",null)),Ai=Bi.exports,Ri={name:"DocListItem",components:{FileIcon:Ai,ContentDiv:ir,DocInfoModal:Zn,DocFileTitle:In,TagContainer:$n},props:["doc"],data:function(){return{hover:!1,showInfo:!1}},methods:{onThumbnailClick:function(){var t=this;return Object(Ue["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$store.commit("setUiLightboxSlide",t.doc._seq),e.next=3,t.$store.dispatch("showLightbox");case 3:case"end":return e.stop()}}),e)})))()},path:function(){return this.doc.highlight?this.doc.highlight["path.text"]?this.doc.highlight["path.text"]+"/":this.doc.highlight["path.nGram"]?this.doc.highlight["path.nGram"]+"/":this.doc._source.path+"/":this.doc._source.path+"/"}}},Ui=Ri,Fi=(n("c0c5"),Object(m["a"])(Ui,Di,Pi,!1,null,"2507ef74",null)),Qi=Fi.exports,Ni=r["default"].extend({name:"DocList",components:{DocListItem:Qi},props:["docs","append"],mounted:function(){var t=this;window.addEventListener("scroll",(function(){var e=400,n=document.getElementById("app");window.innerHeight+window.scrollY>=n.offsetHeight-e&&t.append()}))}}),Gi=Ni,Vi=(n("7191"),Object(m["a"])(Gi,Li,Ii,!1,null,null,null)),Wi=Vi.exports,Ki=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{visible:t.show,size:"lg","hide-footer":!0,static:"",title:t.$t("help.help")},on:{close:function(e){return t.$emit("close")},hide:function(e){return t.$emit("close")}}},[n("h2",[t._v(t._s(t.$t("help.simpleSearch")))]),n("table",{staticClass:"table"},[n("tbody",[n("tr",[n("td",[n("code",[t._v("+")])]),n("td",[t._v(t._s(t.$t("help.and")))])]),n("tr",[n("td",[n("code",[t._v("|")])]),n("td",[t._v(t._s(t.$t("help.or")))])]),n("tr",[n("td",[n("code",[t._v("-")])]),n("td",[t._v(t._s(t.$t("help.not")))])]),n("tr",[n("td",[n("code",[t._v('""')])]),n("td",[t._v(t._s(t.$t("help.quotes")))])]),n("tr",[n("td",[n("code",[t._v(t._s(t.$t("help.term"))+"*")])]),n("td",[t._v(t._s(t.$t("help.prefix")))])]),n("tr",[n("td",[n("code",[t._v("(")]),t._v(" "+t._s(t.$t("and"))+" "),n("code",[t._v(")")])]),n("td",[t._v(t._s(t.$t("help.parens")))])]),n("tr",[n("td",[n("code",[t._v(t._s(t.$t("help.term"))+"~N")])]),n("td",[t._v(t._s(t.$t("help.tildeTerm")))])]),n("tr",[n("td",[n("code",[t._v('"..."~N')])]),n("td",[t._v(t._s(t.$t("help.tildePhrase")))])])])]),n("p",{domProps:{innerHTML:t._s(t.$t("help.example1"))}}),n("p",{domProps:{innerHTML:t._s(t.$t("help.defaultOperator"))}}),n("p",{domProps:{innerHTML:t._s(t.$t("help.fuzzy"))}}),n("br"),n("p",{domProps:{innerHTML:t._s(t.$t("help.moreInfoSimple"))}}),n("p"),n("h2",[t._v(t._s(t.$t("help.advancedSearch")))]),n("p",{domProps:{innerHTML:t._s(t.$t("help.moreInfoAdvanced"))}})])},Yi=[],Ji={name:"HelpDialog",props:["show"]},Zi=Ji,Xi=Object(m["a"])(Zi,Ki,Yi,!1,null,"0872e493",null),to=Xi.exports,eo=r["default"].extend({components:{HelpDialog:to,DocList:Wi,TagPicker:Mi,DateSlider:_i,SizeSlider:fi,PathTree:si,ResultsCard:ei,MimePicker:Er,Lightbox:_r,DocCardWall:hr,IndexPicker:cn,SearchBar:We,Preloader:Tt},data:function(){return{loading:!1,uiLoading:!0,search:void 0,docs:[],docIds:new Set,docChecksums:new Set,searchBusy:!1,Sist2Query:pn,showHelp:!1}},computed:Object(s["a"])({},Object(_["c"])(["indices","optDisplay"])),mounted:function(){var t=this;this.search=mn()(function(){var e=Object(Ue["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=3;break}return e.next=3,t.clearResults();case 3:return e.next=5,t.searchNow(pn.searchQuery());case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),350,{leading:!1}),nt.getMimeTypes().then((function(e){t.$store.commit("setUiMimeMap",e)})),this.$store.dispatch("loadFromArgs",this.$route).then((function(){t.$store.subscribe((function(){return t.$store.dispatch("updateArgs",t.$router)})),t.$store.subscribe((function(e){if(["setSizeMin","setSizeMax","setDateMin","setDateMax","setSearchText","setPathText","setSortMode","setOptHighlight","setOptFragmentSize","setFuzzy","setSize","setSelectedIndices","setSelectedMimeTypes","setSelectedTags","setOptQueryMode","setOptSearchInPath"].includes(e.type)){if(t.searchBusy)return;t.search(!0)}}))})),this.getDateRange().then((function(e){t.setDateBoundsMin(e.min),t.setDateBoundsMax(e.max),nt.getSist2Info().then((function(e){t.setSist2Info(e),t.setIndices(e.indices),t.uiLoading=!1,t.search(!0)})).catch((function(){t.showErrorToast()}))}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])({setSist2Info:"setSist2Info",setIndices:"setIndices",setDateBoundsMin:"setDateBoundsMin",setDateBoundsMax:"setDateBoundsMax",setTags:"setTags"})),{},{showErrorToast:function(){this.$bvToast.toast(this.$t("toast.esConnErr"),{title:this.$t("toast.esConnErrTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"})},showSyntaxErrorToast:function(){this.$bvToast.toast(this.$t("toast.esQueryErr"),{title:this.$t("toast.esQueryErrTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-warning",bodyClass:"toast-body-warning"})},searchNow:function(t){var e=this;return Object(Ue["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.searchBusy=!0,n.next=3,e.$store.dispatch("incrementQuerySequence");case 3:nt.esQuery(t).then(function(){var t=Object(Ue["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.handleSearch(n);case 2:e.searchBusy=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){500===t.response.status&&"advanced"===e.$store.state.optQueryMode?e.showSyntaxErrorToast():e.showErrorToast()}));case 4:case"end":return n.stop()}}),n)})))()},clearResults:function(){var t=this;return Object(Ue["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.docs=[],t.docIds.clear(),t.docChecksums.clear(),e.next=5,t.$store.dispatch("clearResults");case 5:t.$store.commit("setUiReachedScrollEnd",!1);case 6:case"end":return e.stop()}}),e)})))()},handleSearch:function(t){var e=this;return Object(Ue["a"])(regeneratorRuntime.mark((function n(){var r,i,o,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:0==t.hits.hits.length&&e.$store.commit("setUiReachedScrollEnd",!0),t.hits.hits=t.hits.hits.filter((function(t){return!e.docIds.has(t._id)})),e.$store.state.optHideDuplicates&&(t.hits.hits=t.hits.hits.filter((function(t){if(!("checksum"in t._source))return!0;var n=!e.docChecksums.has(t._source.checksum);return e.docChecksums.add(t._source.checksum),n}))),i=Object(Re["a"])(t.hits.hits),n.prev=4,i.s();case 6:if((o=i.n()).done){n.next=15;break}if(a=o.value,!a._props.isPlayableImage&&!a._props.isPlayableVideo){n.next=13;break}return n.next=11,e.$store.dispatch("getKeySequence");case 11:a._seq=n.sent,e.$store.commit("addLightboxSource",{source:"f/".concat(a._id),thumbnail:a._props.hasThumbnail?"t/".concat(a._source.index,"/").concat(a._id):null,caption:{component:Cr,props:{hit:a}},type:a._props.isVideo?"video":"image"});case 13:n.next=6;break;case 15:n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](4),i.e(n.t0);case 20:return n.prev=20,i.f(),n.finish(20);case 23:return n.next=25,e.$store.dispatch("remountLightbox");case 25:e.$store.commit("setLastQueryResult",t),(r=e.docs).push.apply(r,Object(L["a"])(t.hits.hits));case 27:case"end":return n.stop()}}),n,null,[[4,17,20,23]])})))()},getDateRange:function(){return nt.esQuery({aggs:{dateMin:{min:{field:"mtime"}},dateMax:{max:{field:"mtime"}}},size:0}).then((function(t){return{min:t.aggregations.dateMin.value,max:t.aggregations.dateMax.value}}))},appendFunc:function(){this.$store.state.uiReachedScrollEnd||!this.search||this.searchBusy||this.searchNow(pn.searchQuery())}}),beforeRouteUpdate:function(t,e,n){this.$store.state.uiLightboxIsOpen?(this.$store.commit("_setUiShowLightbox",!1),n(!1)):n()}}),no=eo,ro=(n("c2e3"),Object(m["a"])(no,Be,Ae,!1,null,null,null)),io=ro.exports;r["default"].use($["a"]);var oo=[{path:"/",name:"SearchPage",component:io},{path:"/stats",name:"Stats",component:ce},{path:"/config",name:"Configuration",component:He}],ao=new $["a"]({mode:"hash",base:"",routes:oo,scrollBehavior:function(t,e,n){}}),so=ao,co=n("a925"),uo={en:{searchBar:{simple:"Search",advanced:"Advanced search",fuzzy:"Fuzzy"},download:"Download",and:"and",page:"page",pages:"pages",mimeTypes:"Media types",tags:"Tags",help:{simpleSearch:"Simple search",advancedSearch:"Advanced search",help:"Help",term:"",and:"AND operator",or:"OR operator",not:"negates a single term",quotes:"will match the enclosed sequence of terms in that specific order",prefix:"will match any term with a given prefix when used at the end of a word",parens:"used to group expressions",tildeTerm:"match a term with a given edit distance",tildePhrase:"match a phrase with a given number of allowed intervening unmatched words",example1:'For example: "fried eggs" +(eggplant | potato) -frittata will match the phrase fried eggs and either eggplant or potato, but will ignore results containing frittata.',defaultOperator:"When neither + or | is specified, the default operator is + (and).",fuzzy:"When the Fuzzy option is checked, partial matches based on 3-grams are also returned.",moreInfoSimple:'For more information, see Elasticsearch documentation',moreInfoAdvanced:'For documentation about the advanced search mode, see Elasticsearch documentation'},config:"Configuration",configDescription:"Configuration is saved in real time for this browser.",configReset:"Reset configuration",searchOptions:"Search options",treemapOptions:"Treemap options",displayOptions:"Display options",opt:{lang:"Language",highlight:"Enable highlighting",fuzzy:"Set fuzzy search by default",searchInPath:"Enable matching query against document path",suggestPath:"Enable auto-complete in path filter bar",fragmentSize:"Highlight context size in characters",queryMode:"Search mode",displayMode:"Display",columns:"Column count",treemapType:"Treemap type",treemapTiling:"Treemap tiling",treemapColorGroupingDepth:"Treemap color grouping depth (flat)",treemapColor:"Treemap color (cascaded)",treemapSize:"Treemap size",theme:"Theme",lightboxLoadOnlyCurrent:"Do not preload full-size images for adjacent slides in image viewer.",slideDuration:"Slide duration",resultSize:"Number of results per page",tagOrOperator:"Use OR operator when specifying multiple tags.",hideDuplicates:"Hide duplicate results based on checksum"},queryMode:{simple:"Simple",advanced:"Advanced"},lang:{en:"English",fr:"Français"},displayMode:{grid:"Grid",list:"List"},columns:{auto:"Auto"},treemapType:{cascaded:"Cascaded",flat:"Flat (compact)"},treemapSize:{small:"Small",medium:"Medium",large:"Large",xLarge:"xLarge",xxLarge:"xxLarge",custom:"Custom"},treemapTiling:{binary:"Binary",squarify:"Squarify",slice:"Slice",dice:"Dice",sliceDice:"Slice & Dice"},theme:{light:"Light",black:"Black"},hit:"hit",hits:"hits",details:"Details",stats:"Stats",queryTime:"Query time",totalSize:"Total size",pathBar:{placeholder:"Filter path",modalTitle:"Select path"},debug:"Debug information",debugDescription:"Information useful for debugging. If you encounter bugs or have suggestions for new features, please submit a new issue here.",tagline:"Tagline",toast:{esConnErrTitle:"Elasticsearch connection error",esConnErr:"sist2 web module encountered an error while connecting to Elasticsearch. See server logs for more information.",esQueryErrTitle:"Query error",esQueryErr:"Could not parse or execute query, please check the Advanced search documentation. See server logs for more information.",dupeTagTitle:"Duplicate tag",dupeTag:"This tag already exists for this document."},saveTagModalTitle:"Add tag",saveTagPlaceholder:"Tag name",confirm:"Confirm",indexPickerPlaceholder:"Select indices",sort:{relevance:"Relevance",dateAsc:"Date (Older first)",dateDesc:"Date (Newer first)",sizeAsc:"Size (Smaller first)",sizeDesc:"Size (Larger first)",random:"Random"},d3:{mimeCount:"File count distribution by media type",mimeSize:"Size distribution by media type",dateHistogram:"File modification time distribution",sizeHistogram:"File size distribution"}},fr:{searchBar:{simple:"Recherche",advanced:"Recherche avancée",fuzzy:"Approximatif"},download:"Télécharger",and:"et",page:"page",pages:"pages",mimeTypes:"Types de médias",tags:"Tags",help:{simpleSearch:"Recherche simple",advancedSearch:"Recherche avancée",help:"Aide",term:"",and:"opérator ET",or:"opérator OU",not:"exclut un terme",quotes:"recherche la séquence de termes dans cet ordre spécifique.",prefix:"lorsqu'utilisé à la fin d'un mot, recherche tous les termes avec le préfixe donné.",parens:"utilisé pour regrouper des expressions",tildeTerm:"recherche un terme avec une distance d'édition donnée",tildePhrase:"recherche une phrase avec un nombre donné de mots intermédiaires tolérés",example1:'Par exemple: "fried eggs" +(eggplant | potato) -frittata va rechercher la phrase fried eggs et soit eggplant ou potato, mais vas exlure les résultats qui contiennent frittata.',defaultOperator:"Lorsqu'aucun des opérateurs + ou | sont spécifiés, l'opérateur par défaut est + (ET).",fuzzy:"Lorsque l'option Approximatif est activée, les résultats partiels basés sur les trigrammes sont également inclus.",moreInfoSimple:'Pour plus d\'information, voir documentation Elasticsearch',moreInfoAdvanced:'Pour plus d\'information sur la recherche avancée, voir documentation Elasticsearch'},config:"Configuration",configDescription:"La configuration est enregistrée en temps réel pour ce navigateur.",configReset:"Réinitialiser la configuration",searchOptions:"Options de recherche",treemapOptions:"Options du Treemap",displayOptions:"Options d'affichage",opt:{lang:"Langue",highlight:"Activer le surlignage",fuzzy:"Activer la recherche approximative par défaut",searchInPath:"Activer la recherche dans le chemin des documents",suggestPath:"Activer l'autocomplétion dans la barre de filtre de chemin",fragmentSize:"Longueur du contexte de surlignage, en nombre de caractères",queryMode:"Mode de recherche",displayMode:"Affichage",columns:"Nombre de colonnes",treemapType:"Type de Treemap",treemapTiling:"Treemap tiling",treemapColorGroupingDepth:"Groupage de couleur du Treemap (plat)",treemapColor:"Couleur du Treemap (en cascade)",treemapSize:"Taille du Treemap",theme:"Thème",lightboxLoadOnlyCurrent:"Désactiver le chargement des diapositives adjacentes pour le visualiseur d'images",slideDuration:"Durée des diapositives",resultSize:"Nombre de résultats par page",tagOrOperator:"Utiliser l'opérateur OU lors de la spécification de plusieurs tags",hideDuplicates:"Masquer les résultats en double"},queryMode:{simple:"Simple",advanced:"Avancé"},lang:{en:"English",fr:"Français"},displayMode:{grid:"Grille",list:"Liste"},columns:{auto:"Auto"},treemapType:{cascaded:"En cascade",flat:"Plat (compact)"},treemapSize:{small:"Petit",medium:"Moyen",large:"Grand",xLarge:"xGrand",xxLarge:"xxGrand",custom:"Personnalisé"},treemapTiling:{binary:"Binary",squarify:"Squarify",slice:"Slice",dice:"Dice",sliceDice:"Slice & Dice"},theme:{light:"Clair",black:"Noir"},hit:"résultat",hits:"résultats",details:"Détails",stats:"Stats",queryTime:"Durée de la requête",totalSize:"Taille totale",pathBar:{placeholder:"Filtrer le chemin",modalTitle:"Sélectionner le chemin"},debug:"Information de débogage",debugDescription:"Informations utiles pour le débogage\nSi vous rencontrez des bogues ou si vous avez des suggestions pour de nouvelles fonctionnalités, veuillez soumettre un nouvel Issue ici.",tagline:"Tagline",toast:{esConnErrTitle:"Erreur de connexion Elasticsearch",esConnErr:"Le module web a rencontré une erreur lors de la connexion à Elasticsearch. Consultez les journaux du serveur pour plus d'informations..",esQueryErrTitle:"Erreur de requête",esQueryErr:"Impossible d'analyser ou d'exécuter la requête, veuillez consulter la documentation sur la recherche avancée. Voir les journaux du serveur pour plus d'informations.",dupeTagTitle:"Tag en double",dupeTag:"Ce tag existe déjà pour ce document."},saveTagModalTitle:"Ajouter un tag",saveTagPlaceholder:"Nom du tag",confirm:"Confirmer",indexPickerPlaceholder:"Sélectionner un index",sort:{relevance:"Pertinence",dateAsc:"Date (Plus ancient)",dateDesc:"Date (Plus récent)",sizeAsc:"Taille (Plus petit)",sizeDesc:"Taille (Plus grand)",random:"Aléatoire"},d3:{mimeCount:"Distribution du nombre de fichiers par type de média",mimeSize:"Distribution des tailles de fichiers par type de média",dateHistogram:"Distribution des dates de modification",sizeHistogram:"Distribution des tailles de fichier"}}};r["default"].config.productionTip=!1,r["default"].use(co["a"]),r["default"].use($["a"]);var lo=new co["a"]({locale:"en",messages:uo});new r["default"]({router:so,store:un,i18n:lo,render:function(t){return t(z)}}).$mount("#app")},"5a9f":function(t,e,n){"use strict";n("668a")},"5de8":function(t,e,n){"use strict";n("8057")},"5ee9":function(t,e,n){"use strict";n("1f35")},6417:function(t,e,n){},"658f":function(t,e,n){},"668a":function(t,e,n){},"706c":function(t,e,n){"use strict";n("fe20")},"706cd":function(t,e,n){"use strict";n("76ff")},7191:function(t,e,n){"use strict";n("658f")},7352:function(t,e,n){},"76ff":function(t,e,n){},8021:function(t,e,n){"use strict";n("bddf")},8057:function(t,e,n){},"85ec":function(t,e,n){},"873e":function(t,e,n){},"8c1b":function(t,e,n){"use strict";n("fbc5")},"95ee":function(t,e,n){"use strict";n("d7f8")},a041:function(t,e,n){"use strict";n("873e")},a079:function(t,e,n){"use strict";n("bafa")},a5dc:function(t,e,n){},a8cc:function(t,e,n){"use strict";n("1d7e")},ac16:function(t,e,n){"use strict";n("0d24")},b23c:function(t,e,n){"use strict";n("e4ed")},b9df:function(t,e,n){"use strict";n("c69b")},bafa:function(t,e,n){},bddf:function(t,e,n){},c0c5:function(t,e,n){"use strict";n("c19a")},c19a:function(t,e,n){},c2e3:function(t,e,n){"use strict";n("c877")},c4ff:function(t,e,n){"use strict";n("d593")},c69b:function(t,e,n){},c877:function(t,e,n){},c919:function(t,e,n){"use strict";n("7352")},d593:function(t,e,n){},d7f8:function(t,e,n){},ddab:function(t,e,n){"use strict";n("6417")},de5d:function(t,e,n){},e478:function(t,e,n){"use strict";n("3d86")},e4ed:function(t,e,n){},f093:function(t,e,n){"use strict";n("a5dc")},f2e9:function(t,e,n){"use strict";n("2b2c")},f363:function(t,e,n){},f798:function(t,e,n){"use strict";n("f363")},f960:function(t,e,n){"use strict";n("de5d")},fbc5:function(t,e,n){},fcd2:function(t,e,n){},fe20:function(t,e,n){}}); \ No newline at end of file +(function(e){function t(t){for(var r,a,s=t[0],c=t[1],u=t[2],d=0,p=[];dt)&&(f++,p[f]=[],m[f]=[],h[f]=[]),c[g]&&(p[f].push(g),m[f].push(e[g]),h[f].push(d[g]));if(p.forEach((function(e,t){for(var r=e.length,i=0;i100-b?c[1].style.right="".concat((d[1]-(100-b))/b*35,"px"):c[1].style.right="0"}}))}function P(e,t,n){var r={};e.forEach((function(e){var n=r;e.taxonomy.forEach((function(e){n[e]=e in n?n[e]:{},n=n[e]})),0===Object.keys(n).length?n["$size$"]=e.size:t&&(n["."]={$size$:e.size})}));var i=function e(t,n){return Object.keys(t).filter((function(e){return"$size$"!==e})).map((function(r){var i={name:r,depth:n,value:0,children:e(t[r],n+1)};return"$size$"in t[r]&&(i.value=t[r]["$size$"]),i}))};return{name:n,children:i(r,1),value:0,depth:0}}n("fb6a"),n("b680"),n("6062"),n("a630"),n("5319");function E(e){return Object.prototype.hasOwnProperty.call(e._source,"extension")&&""!==e["_source"]["extension"]?"."+e["_source"]["extension"]:""}function j(e){for(var t="",n=0;n=q&&t>16&255,r=t>>8&255,i=t>>0&255;return.2126*n+.7152*r+.0722*i}function F(e){for(var t=new Set,n=e.selected(),r=0;r50?"#000":"#fff";return{style:"user",fg:i,bg:r,text:t.join("."),rawText:e,userTag:!0}}},{key:"esQuery",value:function(e){var t=this;return Z.a.post("".concat(this.baseUrl,"es"),e).then((function(e){var n,r=e.data;return null!==(n=r.hits)&&void 0!==n&&n.hits&&r.hits.hits.forEach((function(e){e["_source"]["name"]=j(e["_source"]["name"]),e["_source"]["path"]=j(e["_source"]["path"]),e["_path_md5"]=X["a"].MD5(e["_source"]["path"]+(e["_source"]["path"]?"/":"")+e["_source"]["name"]+E(e)).toString(),t.setHitProps(e),t.setHitTags(e)})),r}))}},{key:"getMimeTypes",value:function(){return this.esQuery({aggs:{mimeTypes:{terms:{field:"mime",size:1e4}}},size:0}).then((function(e){var t=[];return e["aggregations"]["mimeTypes"]["buckets"].sort((function(e,t){return e.key>t.key})).forEach((function(e){var n=e["key"].split("/"),r=n[0],i=n[1],o=!1,a={id:e["key"],text:"".concat(i," (").concat(e["doc_count"],")")};t.forEach((function(e){e.text===r&&(e.children.push(a),o=!0)})),o||t.push({text:r,children:[a]})})),t}))}},{key:"_createEsTag",value:function(e,t){var n=e.split(".");return/.*\.#[0-9a-f]{6}/.test(e)?{id:n.slice(0,-1).join("."),color:n.pop(),isLeaf:!0,count:t}:{id:e,count:t,isLeaf:!1,color:void 0}}},{key:"getDocInfo",value:function(e){return Z.a.get("".concat(this.baseUrl,"d/").concat(e))}},{key:"getTags",value:function(){var e=this;return this.esQuery({aggs:{tags:{terms:{field:"tag",size:1e4}}},size:0}).then((function(t){var n=new Set,r=t["aggregations"]["tags"]["buckets"].sort((function(e,t){return e["key"].localeCompare(t["key"])})).map((function(t){return e._createEsTag(t["key"],t["doc_count"])}));return r.filter((function(e){return!n.has(e.id)&&(n.add(e.id),!0)}))}))}},{key:"saveTag",value:function(e,t){return Z.a.post("".concat(this.baseUrl,"tag/")+t["_source"]["index"],{delete:!1,name:e,doc_id:t["_id"],path_md5:t._path_md5})}},{key:"deleteTag",value:function(e,t){return Z.a.post("".concat(this.baseUrl,"tag/")+t["_source"]["index"],{delete:!0,name:e,doc_id:t["_id"],path_md5:t._path_md5})}},{key:"getTreemapCsvUrl",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/1")}},{key:"getMimeCsvUrl",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/2")}},{key:"getSizeCsv",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/3")}},{key:"getDateCsv",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/4")}}]),e}(),ne=new te(""),re=n("70b0"),ie=n.n(re),oe={squarify:I["L"],binary:I["H"],sliceDice:I["K"],slice:I["J"],dice:I["I"]},ae={PuBuGn:I["n"],PuRd:I["o"],PuBu:I["m"],YlOrBr:I["t"],YlOrRd:I["u"],YlGn:I["r"],YlGnBu:I["s"],Plasma:I["l"],Magma:I["k"],Inferno:I["j"],Viridis:I["q"],Turbo:I["p"]},se={small:[800,600],medium:[1300,750],large:[1900,900],"x-large":[2800,1700],"xx-large":[3600,2e3]},ce={};function ue(e){var t=ce[e]||0;return ce[e]=t+1,e+t}function le(e,t){var n=new Map,r=new Map;return e.eachAfter((function(e){e.children&&0!==e.children.length?(n.set(e,1+I["v"](e.children,(function(r){return r.x1===e.x1-t?n.get(r):NaN}))),r.set(e,1+I["v"](e.children,(function(n){return n.y1===e.y1-t?r.get(n):NaN})))):(n.set(e,0),r.set(e,0))})).eachBefore((function(e){e.x1-=2*t*n.get(e),e.y1-=2*t*r.get(e)}))}function de(e,t,n,r,i,o){var a=le(I["G"]().size([n,r]).tile(oe[i]).paddingOuter(3).paddingTop(16).paddingInner(1).round(!0)(I["h"](e).sum((function(e){return e.value})).sort((function(e,t){return t.value-e.value}))),3),s=Math.max.apply(Math,Object(L["a"])(a.descendants().map((function(e){return e.depth})))),c=I["C"]([s,-1],ae[o]);t.append("filter").attr("id","shadow").append("feDropShadow").attr("flood-opacity",.3).attr("dx",0).attr("stdDeviation",3);var u=t.selectAll("g").data(I["w"]().key((function(e){return e.depth})).sortKeys(I["a"]).entries(a.descendants())).join("g").attr("filter","url(#shadow)").selectAll("g").data((function(e){return e.values})).join("g").attr("transform",(function(e){return"translate(".concat(e.x0,",").concat(e.y0,")")}));u.append("title").text((function(e){return"".concat(e.ancestors().reverse().splice(1).map((function(e){return e.data.name})).join("/"),"\n").concat(B(e.value))})),u.append("rect").attr("id",(function(e){return e.nodeUid=ue("node")})).attr("fill",(function(e){return c(e.depth)})).attr("width",(function(e){return e.x1-e.x0})).attr("height",(function(e){return e.y1-e.y0})),u.append("clipPath").attr("id",(function(e){return e.clipUid=ue("clip")})).append("use").attr("href",(function(e){return"#".concat(e.nodeUid)})),u.append("text").attr("fill",(function(e){return I["i"](c(e.depth)).l>.5?"#333":"#eee"})).attr("clip-path",(function(e){return"url(#".concat(e.clipUid,")")})).selectAll("tspan").data((function(e){return[e.data.name,B(e.value)]})).join("tspan").text((function(e){return e})),u.filter((function(e){return e.children})).selectAll("tspan").attr("dx",3).attr("y",13),u.filter((function(e){return!e.children})).selectAll("tspan").attr("x",3).attr("y",(function(e,t){return"".concat(0===t?1.1:2.3,"em")}))}function pe(e,t,n,r,i,o,a){var s=I["B"](I["D"]),c=I["G"]().tile(oe[o]).size([n,r]).padding(1).round(!0)(I["h"](e).sum((function(e){return e.value})).sort((function(e,t){return t.value-e.value}))),u=t.selectAll("g").data(c.leaves()).join("g").attr("transform",(function(e){return"translate(".concat(e.x0,",").concat(e.y0,")")}));u.append("title").text((function(e){return"".concat(e.ancestors().reverse().map((function(e){return e.data.name})).join("/"),"\n").concat(B(e.value))})),u.append("rect").attr("id",(function(e){return e.leafUid=ue("leaf")})).attr("fill",(function(e){while(e.depth>i)e=e.parent;return s(e.data.name)})).attr("fill-opacity",a).attr("width",(function(e){return e.x1-e.x0})).attr("height",(function(e){return e.y1-e.y0})),u.append("clipPath").attr("id",(function(e){return e.clipUid=ue("clip")})).append("use").attr("href",(function(e){return"#".concat(e.leafUid)})),u.append("text").attr("clip-path",(function(e){return"url(#".concat(e.clipUid,")")})).selectAll("tspan").data((function(e){return"."===e.data.name&&(e=e.parent),[e.data.name,B(e.value)]})).join("tspan").attr("x",2).attr("y",(function(e,t){return"".concat(0===t?1.1:2.3,"em")})).text((function(e){return e}))}function he(e,t,n){ie.a.toBlob(document.getElementById("treemap"),{width:t,height:n}).then((function(t){var n=document.createElement("a"),r=URL.createObjectURL(t);n.href=r,n.download="".concat(e,"_treemap.png"),document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(r)}),0)}))}var me={name:"D3Treemap",props:["indexId"],watch:{indexId:function(){this.update(this.indexId)}},mounted:function(){this.update(this.indexId)},methods:{update:function(e){var t=this,n=se[this.$store.state.optTreemapSize][0],r=se[this.$store.state.optTreemapSize][1],i=this.$store.state.optTreemapTiling,o=this.$store.state.optTreemapColorGroupingDepth,a=this.$store.state.optTreemapColor,s=this.$store.state.optTreemapType,c=I["E"]("#treemap");c.selectAll("*").remove(),c.attr("viewBox",[0,0,n,r]).attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").attr("version","1.1").style("overflow","visible").style("font","10px sans-serif"),I["e"](ne.getTreemapCsvUrl(e)).then((function(e){if(e.forEach((function(e){e.taxonomy=e.path.split("/"),e.size=Number(e.size)})),"cascaded"===s){var u=P(e,!1);de(u,c,n,r,i,a)}else{var l=P(e.sort((function(e,t){return t.taxonomy.length-e.taxonomy.length})),!0),d="black"===t.$store.state.optTheme?.9:.6;pe(l,c,n,r,o,i,d)}}))},downloadTreemap:function(){var e=se[this.$store.state.optTreemapSize][0],t=se[this.$store.state.optTreemapSize][1];he(this.indexId,e,t)}}},fe=me,ge=Object(m["a"])(fe,k,M,!1,null,null,null),ve=ge.exports,be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-progress",{attrs:{value:"1",max:"1",animated:""}})},xe=[],ye={},_e=Object(m["a"])(ye,be,xe,!1,null,null,null),Te=_e.exports,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"agg-mime-count"}})])},we=[],ze=I["g"]("~s"),$e=20,Oe=I["B"](I["D"]);function Ce(e,t,n,r){var i={top:50,right:0,bottom:10,left:Math.max(6*I["v"](e.sort((function(e,t){return t.count-e.count})).slice(0,15),(function(e){return e.mime.length})),6*I["v"](e.sort((function(e,t){return t.size-e.size})).slice(0,15),(function(e){return e.mime.length})))};e.forEach((function(e){e.name=e.mime,e.value=Number(e.count)})),e=e.sort((function(e,t){return t.value-e.value})).slice(0,15);var o=550,a=Math.ceil((e.length+.1)*$e)+i.top+i.bottom;t.selectAll("*").remove(),t.attr("viewBox",[0,0,o,a]);var s=I["z"]().domain(I["y"](e.length)).rangeRound([i.top,a-i.bottom]),c=I["A"]().domain([0,I["v"](e,(function(e){return e.value}))]).range([i.left,o-i.right]);t.append("g").attr("fill-opacity",n).selectAll("rect").data(e).join("rect").attr("fill",(function(e){return Oe(e.name)})).attr("x",c(0)).attr("y",(function(e,t){return s(t)})).attr("width",(function(e){return c(e.value)-c(0)})).attr("height",s.bandwidth()).append("title").text((function(e){return I["g"](",")(e.value)})),t.append("g").attr("transform","translate(0,".concat(i.top,")")).call(I["d"](c).ticks(o/80,e.format).tickFormat(ze)).call((function(e){return e.select(".domain").remove()})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).tickFormat((function(t){return e[t].name})).tickSizeOuter(0)),t.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(r)}var ke={name:"D3MimeBarSize",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#agg-mime-count"),r="black"===this.$store.state.optTheme?.9:.6;I["e"](ne.getMimeCsvUrl(e)).then((function(e){Ce(e.slice(),n,r,t.$t("d3.mimeCount"))}))}}},Me=ke,Le=Object(m["a"])(Me,Se,we,!1,null,null,null),Ie=Le.exports,De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"agg-mime-size"}})])},Pe=[],Ee=I["g"]("~s"),je=20,qe=I["B"](I["D"]);function He(e,t,n,r){var i={top:50,right:0,bottom:10,left:Math.max(6*I["v"](e.sort((function(e,t){return t.count-e.count})).slice(0,15),(function(e){return e.mime.length})),6*I["v"](e.sort((function(e,t){return t.size-e.size})).slice(0,15),(function(e){return e.mime.length})))};e.forEach((function(e){e.name=e.mime,e.value=Number(e.size)})),e=e.sort((function(e,t){return t.value-e.value})).slice(0,15);var o=550,a=Math.ceil((e.length+.1)*je)+i.top+i.bottom;t.selectAll("*").remove(),t.attr("viewBox",[0,0,o,a]);var s=I["z"]().domain(I["y"](e.length)).rangeRound([i.top,a-i.bottom]),c=I["A"]().domain([0,I["v"](e,(function(e){return e.value}))]).range([i.left,o-i.right]);t.append("g").attr("fill-opacity",n).selectAll("rect").data(e).join("rect").attr("fill",(function(e){return qe(e.name)})).attr("x",c(0)).attr("y",(function(e,t){return s(t)})).attr("width",(function(e){return c(e.value)-c(0)})).attr("height",s.bandwidth()).append("title").text((function(e){return Ee(e.value)})),t.append("g").attr("transform","translate(0,".concat(i.top,")")).call(I["d"](c).ticks(o/80,e.format).tickFormat(Ee)).call((function(e){return e.select(".domain").remove()})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).tickFormat((function(t){return e[t].name})).tickSizeOuter(0)),t.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(r)}var Be={name:"D3MimeBarSize",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#agg-mime-size"),r="black"===this.$store.state.optTheme?.9:.6;I["e"](ne.getMimeCsvUrl(e)).then((function(e){He(e.slice(),n,r,t.$t("d3.mimeSize"))}))}}},Ae=Be,Re=Object(m["a"])(Ae,De,Pe,!1,null,null,null),Ue=Re.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"date-histogram"}})])},Qe=[],Ne=I["g"]("~s");function Ge(e,t,n){var r=e.map((function(e){return{length:Number(e.count),x0:Number(e.bucket),x1:Number(e.bucket)+2629800}}));r.sort((function(e,t){return e.length-t.length}));var i={top:50,right:20,bottom:70,left:40},o=I["x"](r,.9,(function(e){return e.length}));r=r.filter((function(e){return e.length>o}));var a=550,s=450;t.selectAll("*").remove(),t.attr("viewBox",[0,0,a,s]);var c=I["A"]().domain([0,I["v"](r,(function(e){return e.length}))]).nice().range([s-i.bottom,i.top]),u=I["A"]().domain(I["f"](r,(function(e){return e.x0}))).nice().range([i.left,a-i.right]);t.append("g").attr("fill","steelblue").selectAll("rect").data(r).join("rect").attr("x",(function(e){return u(e.x0)+1})).attr("width",(function(e){return Math.max(1,u(e.x1)-u(e.x0)-1)})).attr("y",(function(e){return c(e.length)})).attr("height",(function(e){return c(0)-c(e.length)})).call((function(e){return e.append("title").text((function(e){return e.length}))})),t.append("g").attr("transform","translate(0,".concat(s-i.bottom,")")).call(I["b"](u).ticks(a/30).tickSizeOuter(0).tickFormat((function(e){return I["F"]("%Y-%m-%d")(I["M"]("%s")(e))}))).call((function(e){return e.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)")})).call((function(e){return e.append("text").attr("x",a-i.right).attr("y",-4).attr("fill","currentColor").attr("font-weight","bold").attr("text-anchor","end").text("mtime")})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](c).ticks(s/40).tickFormat((function(e){return Ne(e)}))).call((function(e){return e.select(".domain").remove()})).call((function(e){return e.select(".tick:last-of-type text").clone().attr("x",4).attr("text-anchor","start").attr("font-weight","bold").text("File count")})),t.append("text").attr("x",a/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(n)}var Ve={name:"D3DateHistogram",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#date-histogram");I["e"](ne.getDateCsv(e)).then((function(e){Ge(e.slice(),n,t.$t("d3.dateHistogram"))}))}}},We=Ve,Ke=Object(m["a"])(We,Fe,Qe,!1,null,null,null),Ye=Ke.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"size-histogram"}})])},Ze=[],Xe=I["g"]("~s");function et(e,t,n){var r=e.map((function(e){return{length:Number(e.count),x0:Number(e.bucket),x1:Number(e.bucket)+5242880}}));r=r.sort((function(e,t){return t.length-e.length})).slice(0,25);var i={top:50,right:20,bottom:70,left:40},o=550,a=450;t.selectAll("*").remove(),t.attr("viewBox",[0,0,o,a]);var s=I["A"]().domain([0,I["v"](r,(function(e){return e.length}))]).range([a-i.bottom,i.top]),c=I["A"]().domain(I["f"](r,(function(e){return e.x0}))).nice().range([i.left,o-i.right]);t.append("g").attr("fill","steelblue").selectAll("rect").data(r).join("rect").attr("x",(function(e){return c(e.x0)+1})).attr("width",(function(e){return Math.max(1,c(e.x1)-c(e.x0)-1)})).attr("y",(function(e){return s(e.length)})).attr("height",(function(e){return s(0)-s(e.length)})).call((function(e){return e.append("title").text((function(e){return e.length}))})),t.append("g").attr("transform","translate(0,".concat(a-i.bottom,")")).call(I["b"](c).ticks(o/30).tickSizeOuter(0).tickFormat(Xe)).call((function(e){return e.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)")})).call((function(e){return e.append("text").attr("x",o-i.right).attr("y",-4).attr("fill","currentColor").attr("font-weight","bold").attr("text-anchor","end").text("size (bytes)")})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).ticks(a/40).tickFormat((function(e){return Xe(e)}))).call((function(e){return e.select(".domain").remove()})).call((function(e){return e.select(".tick:last-of-type text").clone().attr("x",4).attr("text-anchor","start").attr("font-weight","bold").text("File count")})),t.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(n)}var tt={name:"D3SizeHistogram",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#size-histogram");I["e"](ne.getSizeCsv(e)).then((function(e){et(e.slice(),n,t.$t("d3.sizeHistogram"))}))}}},nt=tt,rt=Object(m["a"])(nt,Je,Ze,!1,null,null,null),it=rt.exports,ot={components:{D3SizeHistogram:it,D3DateHistogram:Ye,D3MimeBarSize:Ue,D3MimeBarCount:Ie,D3Treemap:ve,Preloader:Te},data:function(){return{loading:!0,selectedIndex:null,indices:[]}},computed:{indexOptions:function(){return this.indices.map((function(e){return{text:e.name,value:e.id}}))}},mounted:function(){var e=this;ne.getSist2Info().then((function(t){e.indices=t.indices,e.loading=!1}))}},at=ot,st=(n("f093"),Object(m["a"])(at,O,C,!1,null,null,null)),ct=st.exports,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.configLoading?e._e():n("div",{staticClass:"container",staticStyle:{"margin-left":"auto","margin-right":"auto"}},[n("b-card",[n("b-card-title",[n("GearIcon"),e._v(" "+e._s(e.$t("config"))+" ")],1),n("p",[e._v(e._s(e.$t("configDescription")))]),n("b-card-body",[n("h4",[e._v(e._s(e.$t("displayOptions")))]),n("b-card",[n("b-form-checkbox",{attrs:{checked:e.optLightboxLoadOnlyCurrent},on:{input:e.setOptLightboxLoadOnlyCurrent}},[e._v(" "+e._s(e.$t("opt.lightboxLoadOnlyCurrent"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optHideLegacy},on:{input:e.setOptHideLegacy}},[e._v(" "+e._s(e.$t("opt.hideLegacy"))+" ")]),n("label",[e._v(e._s(e.$t("opt.lang")))]),n("b-form-select",{attrs:{options:e.langOptions,value:e.optLang},on:{input:e.setOptLang}}),n("label",[e._v(e._s(e.$t("opt.theme")))]),n("b-form-select",{attrs:{options:e.themeOptions,value:e.optTheme},on:{input:e.setOptTheme}}),n("label",[e._v(e._s(e.$t("opt.displayMode")))]),n("b-form-select",{attrs:{options:e.displayModeOptions,value:e.optDisplay},on:{input:e.setOptDisplay}}),n("label",[e._v(e._s(e.$t("opt.columns")))]),n("b-form-select",{attrs:{options:e.columnsOptions,value:e.optColumns},on:{input:e.setOptColumns}})],1),n("br"),n("h4",[e._v(e._s(e.$t("searchOptions")))]),n("b-card",[n("b-form-checkbox",{attrs:{checked:e.optHideDuplicates},on:{input:e.setOptHideDuplicates}},[e._v(e._s(e.$t("opt.hideDuplicates"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optHighlight},on:{input:e.setOptHighlight}},[e._v(e._s(e.$t("opt.highlight")))]),n("b-form-checkbox",{attrs:{checked:e.optTagOrOperator},on:{input:e.setOptTagOrOperator}},[e._v(e._s(e.$t("opt.tagOrOperator"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optFuzzy},on:{input:e.setOptFuzzy}},[e._v(e._s(e.$t("opt.fuzzy")))]),n("b-form-checkbox",{attrs:{checked:e.optSearchInPath},on:{input:e.setOptSearchInPath}},[e._v(e._s(e.$t("opt.searchInPath"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optSuggestPath},on:{input:e.setOptSuggestPath}},[e._v(e._s(e.$t("opt.suggestPath"))+" ")]),n("br"),n("label",[e._v(e._s(e.$t("opt.fragmentSize")))]),n("b-form-input",{attrs:{value:e.optFragmentSize,step:"10",type:"number",min:"0"},on:{input:e.setOptFragmentSize}}),n("label",[e._v(e._s(e.$t("opt.resultSize")))]),n("b-form-input",{attrs:{value:e.optResultSize,type:"number",min:"10"},on:{input:e.setOptResultSize}}),n("label",[e._v(e._s(e.$t("opt.queryMode")))]),n("b-form-select",{attrs:{options:e.queryModeOptions,value:e.optQueryMode},on:{input:e.setOptQueryMode}}),n("label",[e._v(e._s(e.$t("opt.slideDuration")))]),n("b-form-input",{attrs:{value:e.optLightboxSlideDuration,type:"number",min:"1"},on:{input:e.setOptLightboxSlideDuration}})],1),n("h4",{staticClass:"mt-3"},[e._v(e._s(e.$t("treemapOptions")))]),n("b-card",[n("label",[e._v(e._s(e.$t("opt.treemapType")))]),n("b-form-select",{attrs:{value:e.optTreemapType,options:e.treemapTypeOptions},on:{input:e.setOptTreemapType}}),n("label",[e._v(e._s(e.$t("opt.treemapTiling")))]),n("b-form-select",{attrs:{value:e.optTreemapTiling,options:e.treemapTilingOptions},on:{input:e.setOptTreemapTiling}}),n("label",[e._v(e._s(e.$t("opt.treemapColorGroupingDepth")))]),n("b-form-input",{attrs:{value:e.optTreemapColorGroupingDepth,type:"number",min:"1"},on:{input:e.setOptTreemapColorGroupingDepth}}),n("label",[e._v(e._s(e.$t("opt.treemapSize")))]),n("b-form-select",{attrs:{value:e.optTreemapSize,options:e.treemapSizeOptions},on:{input:e.setOptTreemapSize}}),"custom"===e.$store.getters.optTreemapSize?[n("b-form-input",{attrs:{type:"number",min:"0",step:"10"}}),n("b-form-input",{attrs:{type:"number",min:"0",step:"10"}})]:e._e(),n("label",[e._v(e._s(e.$t("opt.treemapColor")))]),n("b-form-select",{attrs:{value:e.optTreemapColor,options:e.treemapColorOptions},on:{input:e.setOptTreemapColor}})],2),n("b-button",{staticClass:"mt-4",attrs:{variant:"danger"},on:{click:function(t){return e.onResetClick()}}},[e._v(e._s(e.$t("configReset")))])],1)],1),e.loading?n("b-card",{staticClass:"mt-4"},[n("Preloader")],1):n("DebugInfo")],1)},lt=[],dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-card",{staticClass:"mb-4 mt-4"},[n("b-card-title",[n("DebugIcon",{staticClass:"mr-1"}),e._v(e._s(e.$t("debug")))],1),n("p",{domProps:{innerHTML:e._s(e.$t("debugDescription"))}}),n("b-card-body",[n("b-table",{staticClass:"mb-0",attrs:{items:e.tableItems,small:"",borderless:"",responsive:"md","thead-class":"hidden"}}),n("hr"),e._l(e.$store.state.sist2Info.indices,(function(e){return n("IndexDebugInfo",{key:e.id,staticClass:"mt-2",attrs:{index:e}})}))],2)],1)},pt=[],ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h4",[e._v("["+e._s(e.index.name)+"]")]),n("b-table",{staticClass:"mb-0",attrs:{items:e.tableItems,small:"",borderless:"",responsive:"md","thead-class":"hidden"}})],1)},mt=[],ft={name:"IndexDebugInfo",props:["index"],computed:{tableItems:function(){return[{key:this.$t("name"),value:this.index.name},{key:this.$t("id"),value:this.index.id},{key:this.$t("indexVersion"),value:this.index.version},{key:this.$t("rewriteUrl"),value:this.index.rewriteUrl},{key:this.$t("timestamp"),value:R(this.index.timestamp)}]}}},gt=ft,vt=Object(m["a"])(gt,ht,mt,!1,null,"9d879710",null),bt=vt.exports,xt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 309.998 309.998",fill:"currentColor"}},[n("path",{attrs:{d:"M294.998,155.03H250v-48.82l39.714-39.715c5.858-5.857,5.858-15.356,0-21.213c-5.857-5.857-15.355-5.857-21.213,0 l-23.7,23.701c-12.885-37.2-48.274-63.984-89.802-63.984c-41.528,0-76.913,26.787-89.797,63.989L41.497,45.282 c-5.856-5.859-15.354-5.857-21.213,0s-5.858,15.355,0,21.213L60,106.212v48.818H15c-8.284,0-15,6.716-15,15c0,8.284,6.716,15,15,15 h45.134c0.855,16.314,5.849,31.551,13.944,44.68l-49.685,49.683c-5.858,5.857-5.858,15.354,0,21.213 c2.929,2.93,6.768,4.394,10.607,4.394c3.838,0,7.678-1.465,10.606-4.394l48.095-48.093c16.558,14.018,37.957,22.486,61.301,22.486 c0.019,0,0.037-0.001,0.057-0.001c0.011,0,0.022,0.002,0.033,0.002c0.019,0,0.037-0.003,0.056-0.003 c23.285-0.035,44.629-8.494,61.15-22.483l48.094,48.092c2.929,2.929,6.768,4.394,10.606,4.394c3.839,0,7.678-1.465,10.607-4.394 c5.858-5.858,5.858-15.355,0-21.213l-49.683-49.681c8.096-13.131,13.089-28.366,13.944-44.682h45.132c8.284,0,15-6.716,15-15 C309.998,161.746,303.282,155.03,294.998,155.03z M154.999,34.999c30.681,0,56.465,21.365,63.254,50H91.747 C98.535,56.364,124.318,34.999,154.999,34.999z M90,179.999v-9.272c0.011-0.232,0.035-0.462,0.035-0.696 c0-0.234-0.024-0.464-0.035-0.695v-54.336h50.092v128.254C111.415,236.494,90,210.708,90,179.999z M170.092,243.212V114.999H220 v54.297c-0.012,0.244-0.037,0.486-0.037,0.734c0,0.248,0.025,0.49,0.037,0.734v9.234C220,210.645,198.676,236.388,170.092,243.212z"}})])},yt=[],_t={name:"DebugIcon"},Tt=_t,St=(n("f960"),Object(m["a"])(Tt,xt,yt,!1,null,"464a0d97",null)),wt=St.exports,zt={name:"DebugInfo.vue",components:{DebugIcon:wt,IndexDebugInfo:bt},computed:{tableItems:function(){return[{key:"version",value:this.$store.state.sist2Info.version},{key:"platform",value:this.$store.state.sist2Info.platform},{key:"debugBinary",value:this.$store.state.sist2Info.debug},{key:"sist2CommitHash",value:this.$store.state.sist2Info.sist2Hash},{key:"libscanCommitHash",value:this.$store.state.sist2Info.libscanHash},{key:"esIndex",value:this.$store.state.sist2Info.esIndex},{key:"tagline",value:this.$store.state.sist2Info.tagline},{key:"dev",value:this.$store.state.sist2Info.dev},{key:"esVersion",value:this.$store.state.sist2Info.esVersion},{key:"esVersionSupported",value:this.$store.state.sist2Info.esVersionSupported},{key:"esVersionLegacy",value:this.$store.state.sist2Info.esVersionLegacy}]}}},$t=zt,Ot=Object(m["a"])($t,dt,pt,!1,null,null,null),Ct=Ot.exports,kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",fill:"currentColor"}},[n("g",{attrs:{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)"}},[n("path",{attrs:{d:"M4568.5,5011c-73.2-7.7-154-25-177.1-36.6c-84.7-46.2-102-119.4-159.8-689.2s-65.5-610.3-159.8-670c-23.1-15.4-125.1-55.8-225.3-90.5c-100.1-32.7-290.7-111.7-423.6-175.2c-319.6-152.1-315.8-152.1-619.9,94.3c-718.1,583.3-650.7,535.2-747,535.2c-77,0-104-11.6-184.8-77c-157.9-127.1-410.1-375.4-567.9-558.3c-155.9-177.1-190.6-250.3-159.8-344.6c9.6-27,165.6-227.2,344.6-446.7c181-219.5,342.7-425.5,360-458.2c52-88.6,42.3-150.2-50.1-335c-73.2-148.3-144.4-325.4-252.2-623.8c-17.3-50-57.8-113.6-88.6-138.6c-63.5-53.9-59.7-53.9-695-117.4c-527.5-52-577.6-65.5-627.6-179c-46.2-105.9-46.2-1057,0-1162.9c50-113.6,98.2-127.1,646.9-181c271.5-25,523.7-52,560.2-57.8c111.7-17.3,179.1-107.8,259.9-344.6c38.5-115.5,119.4-310,177.1-431.3c57.8-119.4,104-240.7,104-269.5c0-78.9-42.4-140.5-394.7-568c-179-219.5-335-419.7-344.6-446.6c-30.8-94.3,3.9-167.5,159.8-344.6c157.9-181,410.1-429.3,564.1-554.5c96.3-78.9,188.7-105.9,265.7-75.1c26.9,11.6,234.9,173.3,462.1,360c227.2,188.7,433.2,348.5,458.2,358.1c82.8,30.8,136.7,17.3,354.3-86.6c119.4-57.8,308-136.7,419.7-175.2c111.7-38.5,221.4-82.8,244.5-98.2c94.3-59.7,102-100.1,159.8-670c61.6-606.5,73.2-648.8,188.7-700.8c105.9-46.2,1057-46.2,1162.9,0c115.5,52,127.1,94.3,188.7,700.8c57.8,569.9,65.4,610.3,159.8,670c23.1,15.4,132.9,59.7,244.5,98.2s300.3,117.4,417.8,175.2c219.5,104,273.4,117.5,356.2,86.6c25-9.6,231-169.4,458.2-358.1c227.2-186.8,435.1-348.5,462.1-360c77-28.9,169.4-3.9,265.7,75.1c152.1,121.3,442.8,410.1,583.4,577.6c140.6,163.6,173.3,242.6,136.7,333.1c-11.6,27-173.3,234.9-360,462.1c-188.7,227.2-348.5,433.2-358.1,458.2c-30.8,82.8-17.3,136.7,86.6,356.2c57.8,117.4,138.6,311.9,177.1,427.4c80.9,236.8,148.3,327.3,259.9,344.6c36.6,5.8,288.8,32.7,562.2,59.7c308,28.9,517.9,59.7,550.6,77c30.8,15.4,71.2,59.7,90.5,100.1c32.8,65.4,36.6,123.2,34.7,573.7c0,562.2-11.5,627.6-115.5,687.3c-46.2,27-188.7,48.1-612.2,90.5c-573.7,59.7-614.2,67.4-673.8,161.7c-15.4,23.1-59.7,132.9-98.2,244.5s-117.4,300.3-175.2,417.8c-57.8,119.4-104,240.7-104,271.5c0,80.9,40.4,138.6,394.7,569.9c181,219.5,335,419.7,344.6,446.7c30.8,94.3-3.9,167.5-159.8,344.6c-157.9,181-410.1,429.3-564.1,554.5c-96.3,78.9-188.7,104-265.7,75.1c-27-11.6-234.9-173.3-462.1-360c-227.2-188.7-433.2-348.5-458.2-358.1c-80.9-30.8-130.9-19.2-371.6,96.3c-130.9,61.6-325.4,142.5-431.3,177.1c-217.5,71.2-308,140.5-325.4,250.3c-5.8,36.6-32.7,288.8-57.8,560.3c-53.9,550.6-67.4,596.8-181,645C5502.3,5018.7,4807.3,5036,4568.5,5011z M5463.8,1897.8c502.5-127.1,954.9-494.8,1184-960.7c446.7-914.5,78.9-2011.9-824-2460.5c-1053.1-521.8-2308.4,52-2604.9,1189.8c-71.2,277.2-71.2,629.6,0,904.9c192.5,737.4,814.4,1284.2,1569.1,1376.6C4974.8,1971,5255.9,1949.8,5463.8,1897.8z"}})])])},Mt=[],Lt={name:"GearIcon"},It=Lt,Dt=(n("b23c"),Object(m["a"])(It,kt,Mt,!1,null,"d6d86c56",null)),Pt=Dt.exports,Et={components:{GearIcon:Pt,DebugInfo:Ct,Preloader:Te},data:function(){return{loading:!0,configLoading:!1,langOptions:[{value:"en",text:this.$t("lang.en")},{value:"fr",text:this.$t("lang.fr")}],queryModeOptions:[{value:"simple",text:this.$t("queryMode.simple")},{value:"advanced",text:this.$t("queryMode.advanced")}],displayModeOptions:[{value:"grid",text:this.$t("displayMode.grid")},{value:"list",text:this.$t("displayMode.list")}],columnsOptions:[{value:"auto",text:this.$t("columns.auto")},{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"},{value:4,text:"4"},{value:5,text:"5"},{value:6,text:"6"},{value:7,text:"7"},{value:8,text:"8"},{value:9,text:"9"},{value:10,text:"10"},{value:11,text:"11"},{value:12,text:"12"}],treemapTypeOptions:[{value:"cascaded",text:this.$t("treemapType.cascaded")},{value:"flat",text:this.$t("treemapType.flat")}],treemapTilingOptions:[{value:"binary",text:this.$t("treemapTiling.binary")},{value:"squarify",text:this.$t("treemapTiling.squarify")},{value:"slice",text:this.$t("treemapTiling.slice")},{value:"dice",text:this.$t("treemapTiling.dice")},{value:"sliceDice",text:this.$t("treemapTiling.sliceDice")}],treemapSizeOptions:[{value:"small",text:this.$t("treemapSize.small")},{value:"medium",text:this.$t("treemapSize.medium")},{value:"large",text:this.$t("treemapSize.large")},{value:"x-large",text:this.$t("treemapSize.xLarge")},{value:"xx-large",text:this.$t("treemapSize.xxLarge")}],treemapColorOptions:[{value:"PuBuGn",text:"Purple-Blue-Green"},{value:"PuRd",text:"Purple-Red"},{value:"PuBu",text:"Purple-Blue"},{value:"YlOrBr",text:"Yellow-Orange-Brown"},{value:"YlOrRd",text:"Yellow-Orange-Red"},{value:"YlGn",text:"Yellow-Green"},{value:"YlGnBu",text:"Yellow-Green-Blue"},{value:"Plasma",text:"Plasma"},{value:"Magma",text:"Magma"},{value:"Inferno",text:"Inferno"},{value:"Viridis",text:"Viridis"},{value:"Turbo",text:"Turbo"}],themeOptions:[{value:"light",text:this.$t("theme.light")},{value:"black",text:this.$t("theme.black")}]}},computed:Object(s["a"])(Object(s["a"])({},Object(_["c"])(["optTheme","optDisplay","optColumns","optHighlight","optFuzzy","optSearchInPath","optSuggestPath","optFragmentSize","optQueryMode","optTreemapType","optTreemapTiling","optTreemapColorGroupingDepth","optTreemapColor","optTreemapSize","optLightboxLoadOnlyCurrent","optLightboxSlideDuration","optResultSize","optTagOrOperator","optLang","optHideDuplicates","optHideLegacy"])),{},{clientWidth:function(){return window.innerWidth}}),mounted:function(){var e=this;ne.getSist2Info().then((function(t){e.$store.commit("setSist2Info",t),e.loading=!1})),this.$store.subscribe((function(t){t.type.startsWith("setOpt")&&e.$store.dispatch("updateConfiguration")}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])(["setOptTheme","setOptDisplay","setOptColumns","setOptHighlight","setOptFuzzy","setOptSearchInPath","setOptSuggestPath","setOptFragmentSize","setOptQueryMode","setOptTreemapType","setOptTreemapTiling","setOptTreemapColorGroupingDepth","setOptTreemapColor","setOptTreemapSize","setOptLightboxLoadOnlyCurrent","setOptLightboxSlideDuration","setOptContainerWidth","setOptResultSize","setOptTagOrOperator","setOptLang","setOptHideDuplicates","setOptHideLegacy"])),{},{onResetClick:function(){localStorage.removeItem("sist2_configuration"),window.location.reload()}})},jt=Et,qt=(n("f2e9"),Object(m["a"])(jt,ut,lt,!1,null,null,null)),Ht=qt.exports,Bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("Lightbox"),n("HelpDialog",{attrs:{show:e.showHelp},on:{close:function(t){e.showHelp=!1}}}),e.uiLoading?n("b-card",[n("Preloader")],1):e._e(),n("b-card",{directives:[{name:"show",rawName:"v-show",value:!e.uiLoading,expression:"!uiLoading"}],attrs:{id:"search-panel"}},[n("SearchBar",{on:{"show-help":function(t){e.showHelp=!0}}}),n("b-row",[n("b-col",{staticStyle:{height:"70px"},attrs:{sm:"6"}},[n("SizeSlider")],1),n("b-col",[n("PathTree",{on:{search:function(t){return e.search(!0)}}})],1)],1),n("b-row",[n("b-col",{attrs:{sm:"6"}},[n("b-row",[n("b-col",{staticStyle:{height:"70px"}},[n("DateSlider")],1)],1),n("b-row",[n("b-col",[n("IndexPicker")],1)],1)],1),n("b-col",[n("b-tabs",[n("b-tab",{attrs:{title:e.$t("mimeTypes")}},[n("MimePicker")],1),n("b-tab",{attrs:{title:e.$t("tags")}},[n("TagPicker")],1)],1)],1)],1)],1),e.searchBusy&&0===e.docs.length?n("Preloader",{staticClass:"mt-3"}):e.docs.length>0?n("div",[n("ResultsCard"),"grid"===e.optDisplay?n("DocCardWall",{attrs:{docs:e.docs,append:e.appendFunc}}):n("DocList",{attrs:{docs:e.docs,append:e.appendFunc}})],1):e._e()],1)},At=[],Rt=n("b85c"),Ut=n("1da1"),Ft=(n("96cf"),n("841c"),n("caad"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("b-input-group",{scopedSlots:e._u([{key:"prepend",fn:function(){return[n("b-input-group-text",[n("b-form-checkbox",{attrs:{checked:e.fuzzy,title:"Toggle fuzzy searching"},on:{change:function(t){return e.setFuzzy(t)}}},[e._v(" "+e._s(e.$t("searchBar.fuzzy"))+" ")])],1)]},proxy:!0},{key:"append",fn:function(){return[n("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(t){return e.$emit("show-help")}}},[e._v(e._s(e.$t("help.help")))])]},proxy:!0}])},[n("b-form-input",{attrs:{value:e.searchText,placeholder:e.advanced()?e.$t("searchBar.advanced"):e.$t("searchBar.simple")},on:{input:function(t){return e.setSearchText(t)}}})],1)],1)}),Qt=[],Nt={computed:Object(s["a"])({},Object(_["c"])({optQueryMode:"optQueryMode",searchText:"searchText",fuzzy:"fuzzy"})),methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])({setSearchText:"setSearchText",setFuzzy:"setFuzzy"})),{},{advanced:function(){return"advanced"===this.optQueryMode}})},Gt=Nt,Vt=Object(m["a"])(Gt,Ft,Qt,!1,null,null,null),Wt=Vt.exports,Kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isMobile?n("div",[n("b-form-select",{attrs:{value:e.selectedIndicesIds,options:e.indices,multiple:"","select-size":6,"text-field":"name","value-field":"id"},on:{change:function(t){return e.onSelect(t)}}})],1):n("div",[n("b-list-group",{attrs:{id:"index-picker-desktop"}},e._l(e.indices,(function(t){return n("b-list-group-item",{staticClass:"d-flex justify-content-between align-items-center list-group-item-action pointer",on:{click:function(n){return e.toggleIndex(t)}}},[n("div",{staticClass:"d-flex"},[n("b-checkbox",{attrs:{checked:e.isSelected(t)},on:{change:function(n){return e.toggleIndex(t)}}}),e._v(" "+e._s(t.name)+" "),n("span",{staticClass:"text-muted timestamp-text ml-2"},[e._v(e._s(e.formatIdxDate(t.timestamp)))])],1),n("b-badge",{staticClass:"version-badge"},[e._v("v"+e._s(t.version))])],1)})),1)],1)},Yt=[],Jt=(n("2532"),n("7db0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-badge",{attrs:{variant:"secondary",pill:e.pill}},[e._v(e._s(e.text))])}),Zt=[],Xt=r["default"].extend({props:{text:String,pill:Boolean}}),en=Xt,tn=(n("8021"),Object(m["a"])(en,Jt,Zt,!1,null,"4dea1070",null)),nn=tn.exports,rn=n("b166"),on=r["default"].extend({components:{SmallBadge:nn},data:function(){return{loading:!0}},computed:Object(s["a"])(Object(s["a"])({},Object(_["c"])(["indices","selectedIndices"])),{},{selectedIndicesIds:function(){return this.selectedIndices.map((function(e){return e.id}))},isMobile:function(){return window.innerWidth<=650}}),methods:Object(s["a"])(Object(s["a"])({},Object(_["b"])({setSelectedIndices:"setSelectedIndices"})),{},{onSelect:function(e){this.setSelectedIndices(this.indices.filter((function(t){return e.includes(t.id)})))},formatIdxDate:function(e){return Object(rn["a"])(new Date(1e3*e),"yyyy-MM-dd")},toggleIndex:function(e){this.isSelected(e)?this.setSelectedIndices(this.selectedIndices.filter((function(t){return t.id!=e.id}))):this.setSelectedIndices([e].concat(Object(L["a"])(this.selectedIndices)))},isSelected:function(e){return null!=this.selectedIndices.find((function(t){return t.id==e.id}))}})}),an=on,sn=(n("8c1b"),Object(m["a"])(an,Kt,Yt,!1,null,"0f2d1c85",null)),cn=sn.exports;n("498a");r["default"].use(_["a"]);var un=new _["a"].Store({state:{seed:0,indices:[],tags:[],sist2Info:null,sizeMin:void 0,sizeMax:void 0,dateBoundsMin:null,dateBoundsMax:null,dateMin:void 0,dateMax:void 0,searchText:"",pathText:"",sortMode:"score",fuzzy:!1,size:60,optLang:"en",optHideDuplicates:!0,optTheme:"light",optDisplay:"grid",optHighlight:!0,optTagOrOperator:!1,optFuzzy:!0,optFragmentSize:200,optQueryMode:"simple",optSearchInPath:!1,optColumns:"auto",optSuggestPath:!0,optTreemapType:"cascaded",optTreemapTiling:"squarify",optTreemapColorGroupingDepth:3,optTreemapSize:"medium",optTreemapColor:"PuBuGn",optLightboxLoadOnlyCurrent:!1,optLightboxSlideDuration:15,optHideLegacy:!1,_onLoadSelectedIndices:[],_onLoadSelectedMimeTypes:[],_onLoadSelectedTags:[],selectedIndices:[],selectedMimeTypes:[],selectedTags:[],lastQueryResults:null,keySequence:0,querySequence:0,uiTagHover:null,uiLightboxIsOpen:!1,uiShowLightbox:!1,uiLightboxSources:[],uiLightboxThumbs:[],uiLightboxCaptions:[],uiLightboxTypes:[],uiLightboxKey:0,uiLightboxSlide:0,uiReachedScrollEnd:!1,uiMimeMap:[]},mutations:{setUiReachedScrollEnd:function(e,t){return e.uiReachedScrollEnd=t},setTags:function(e,t){return e.tags=t},setPathText:function(e,t){return e.pathText=t},setSizeMin:function(e,t){return e.sizeMin=t},setSizeMax:function(e,t){return e.sizeMax=t},setSist2Info:function(e,t){return e.sist2Info=t},setSeed:function(e,t){return e.seed=t},setOptHideDuplicates:function(e,t){return e.optHideDuplicates=t},setOptLang:function(e,t){return e.optLang=t},setSortMode:function(e,t){return e.sortMode=t},setIndices:function(e,t){e.indices=t,e._onLoadSelectedIndices.length>0?e.selectedIndices=t.filter((function(t){return e._onLoadSelectedIndices.some((function(e){return t.id.startsWith(e)}))})):e.selectedIndices=t},setDateMin:function(e,t){return e.dateMin=t},setDateMax:function(e,t){return e.dateMax=t},setDateBoundsMin:function(e,t){return e.dateBoundsMin=t},setDateBoundsMax:function(e,t){return e.dateBoundsMax=t},setSearchText:function(e,t){return e.searchText=t},setFuzzy:function(e,t){return e.fuzzy=t},setLastQueryResult:function(e,t){return e.lastQueryResults=t},_setOnLoadSelectedIndices:function(e,t){return e._onLoadSelectedIndices=t},_setOnLoadSelectedMimeTypes:function(e,t){return e._onLoadSelectedMimeTypes=t},_setOnLoadSelectedTags:function(e,t){return e._onLoadSelectedTags=t},setSelectedIndices:function(e,t){return e.selectedIndices=t},setSelectedMimeTypes:function(e,t){return e.selectedMimeTypes=t},setSelectedTags:function(e,t){return e.selectedTags=t},setUiTagHover:function(e,t){return e.uiTagHover=t},setUiLightboxIsOpen:function(e,t){return e.uiLightboxIsOpen=t},_setUiShowLightbox:function(e,t){return e.uiShowLightbox=t},setUiLightboxKey:function(e,t){return e.uiLightboxKey=t},_setKeySequence:function(e,t){return e.keySequence=t},_setQuerySequence:function(e,t){return e.querySequence=t},addLightboxSource:function(e,t){var n=t.source,r=t.thumbnail,i=t.caption,o=t.type;e.uiLightboxSources.push(n),e.uiLightboxThumbs.push(r),e.uiLightboxCaptions.push(i),e.uiLightboxTypes.push(o)},setUiLightboxSlide:function(e,t){return e.uiLightboxSlide=t},setUiLightboxSources:function(e,t){return e.uiLightboxSources=t},setUiLightboxThumbs:function(e,t){return e.uiLightboxThumbs=t},setUiLightboxTypes:function(e,t){return e.uiLightboxTypes=t},setUiLightboxCaptions:function(e,t){return e.uiLightboxCaptions=t},setOptTheme:function(e,t){return e.optTheme=t},setOptDisplay:function(e,t){return e.optDisplay=t},setOptColumns:function(e,t){return e.optColumns=t},setOptHighlight:function(e,t){return e.optHighlight=t},setOptFuzzy:function(e,t){return e.fuzzy=t},setOptSearchInPath:function(e,t){return e.optSearchInPath=t},setOptSuggestPath:function(e,t){return e.optSuggestPath=t},setOptFragmentSize:function(e,t){return e.optFragmentSize=t},setOptQueryMode:function(e,t){return e.optQueryMode=t},setOptResultSize:function(e,t){return e.size=t},setOptTagOrOperator:function(e,t){return e.optTagOrOperator=t},setOptTreemapType:function(e,t){return e.optTreemapType=t},setOptTreemapTiling:function(e,t){return e.optTreemapTiling=t},setOptTreemapColorGroupingDepth:function(e,t){return e.optTreemapColorGroupingDepth=t},setOptTreemapSize:function(e,t){return e.optTreemapSize=t},setOptTreemapColor:function(e,t){return e.optTreemapColor=t},setOptHideLegacy:function(e,t){return e.optHideLegacy=t},setOptLightboxLoadOnlyCurrent:function(e,t){return e.optLightboxLoadOnlyCurrent=t},setUiMimeMap:function(e,t){return e.uiMimeMap=t},busUpdateWallItems:function(){},busUpdateTags:function(){}},actions:{loadFromArgs:function(e,t){var n=e.commit;t.query.q&&n("setSearchText",t.query.q),void 0!==t.query.fuzzy&&n("setFuzzy",!0),t.query.i&&n("_setOnLoadSelectedIndices",Array.isArray(t.query.i)?t.query.i:[t.query.i]),t.query.dMin&&n("setDateMin",Number(t.query.dMin)),t.query.dMax&&n("setDateMax",Number(t.query.dMax)),t.query.sMin&&n("setSizeMin",Number(t.query.sMin)),t.query.sMax&&n("setSizeMax",Number(t.query.sMax)),t.query.path&&n("setPathText",t.query.path),t.query.m&&n("_setOnLoadSelectedMimeTypes",N(t.query.m)),t.query.t&&n("_setOnLoadSelectedTags",t.query.t.split(",")),t.query.sort&&(n("setSortMode",t.query.sort),n("setSeed",Number(t.query.seed)))},updateArgs:function(e,t){return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.state,n.next=3,t.push({query:{q:r.searchText.trim()?r.searchText.trim().replace(/\s+/g," "):void 0,fuzzy:r.fuzzy?null:void 0,i:r.selectedIndices?r.selectedIndices.map((function(e){return e.idPrefix})):void 0,dMin:r.dateMin,dMax:r.dateMax,sMin:r.sizeMin,sMax:r.sizeMax,path:r.pathText?r.pathText:void 0,m:Q(r.selectedMimeTypes),t:0==r.selectedTags.length?void 0:r.selectedTags.join(","),sort:"score"===r.sortMode?void 0:r.sortMode,seed:"random"===r.sortMode?r.seed.toString():void 0}}).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},updateConfiguration:function(e){var t=e.state,n={};Object.keys(t).forEach((function(e){e.startsWith("opt")&&(n[e]=t[e])})),localStorage.setItem("sist2_configuration",JSON.stringify(n))},loadConfiguration:function(e){var t=e.state,n=localStorage.getItem("sist2_configuration");if(n){var r=JSON.parse(n);Object.keys(t).forEach((function(e){e.startsWith("opt")&&(t[e]=r[e])}))}},setSelectedIndices:function(e,t){var n=e.commit;return n("setSelectedIndices",t)},getKeySequence:function(e){var t=e.commit,n=e.state,r=n.keySequence;return t("_setKeySequence",r+1),r},incrementQuerySequence:function(e){var t=e.commit,n=e.state,r=n.querySequence;return t("_setQuerySequence",r+1),r},remountLightbox:function(e){var t=e.commit,n=e.state;t("setUiLightboxKey",n.uiLightboxKey+1)},showLightbox:function(e){var t=e.commit,n=e.state;t("_setUiShowLightbox",!n.uiShowLightbox)},clearResults:function(e){var t=e.commit;t("setLastQueryResult",null),t("_setKeySequence",0),t("_setUiShowLightbox",!1),t("setUiLightboxSources",[]),t("setUiLightboxThumbs",[]),t("setUiLightboxTypes",[]),t("setUiLightboxCaptions",[]),t("setUiLightboxKey",0)}},modules:{},getters:{seed:function(e){return e.seed},getPathText:function(e){return e.pathText},indices:function(e){return e.indices},sist2Info:function(e){return e.sist2Info},indexMap:function(e){var t={};return e.indices.forEach((function(e){return t[e.id]=e})),t},selectedIndices:function(e){return e.selectedIndices},_onLoadSelectedIndices:function(e){return e._onLoadSelectedIndices},selectedMimeTypes:function(e){return e.selectedMimeTypes},selectedTags:function(e){return e.selectedTags},dateMin:function(e){return e.dateMin},dateMax:function(e){return e.dateMax},sizeMin:function(e){return e.sizeMin},sizeMax:function(e){return e.sizeMax},searchText:function(e){return e.searchText},pathText:function(e){return e.pathText},fuzzy:function(e){return e.fuzzy},size:function(e){return e.size},sortMode:function(e){return e.sortMode},lastQueryResult:function(e){return e.lastQueryResults},lastDoc:function(e){return null==e.lastQueryResults?null:e.lastQueryResults.hits.hits.slice(-1)[0]},uiTagHover:function(e){return e.uiTagHover},uiShowLightbox:function(e){return e.uiShowLightbox},uiLightboxSources:function(e){return e.uiLightboxSources},uiLightboxThumbs:function(e){return e.uiLightboxThumbs},uiLightboxCaptions:function(e){return e.uiLightboxCaptions},uiLightboxTypes:function(e){return e.uiLightboxTypes},uiLightboxKey:function(e){return e.uiLightboxKey},uiLightboxSlide:function(e){return e.uiLightboxSlide},optHideDuplicates:function(e){return e.optHideDuplicates},optLang:function(e){return e.optLang},optTheme:function(e){return e.optTheme},optDisplay:function(e){return e.optDisplay},optColumns:function(e){return e.optColumns},optHighlight:function(e){return e.optHighlight},optTagOrOperator:function(e){return e.optTagOrOperator},optFuzzy:function(e){return e.optFuzzy},optSearchInPath:function(e){return e.optSearchInPath},optSuggestPath:function(e){return e.optSuggestPath},optFragmentSize:function(e){return e.optFragmentSize},optQueryMode:function(e){return e.optQueryMode},optTreemapType:function(e){return e.optTreemapType},optTreemapTiling:function(e){return e.optTreemapTiling},optTreemapSize:function(e){return e.optTreemapSize},optTreemapColorGroupingDepth:function(e){return e.optTreemapColorGroupingDepth},optTreemapColor:function(e){return e.optTreemapColor},optLightboxLoadOnlyCurrent:function(e){return e.optLightboxLoadOnlyCurrent},optLightboxSlideDuration:function(e){return e.optLightboxSlideDuration},optResultSize:function(e){return e.size},optHideLegacy:function(e){return e.optHideLegacy}}}),ln={score:{mode:[{_score:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._score}},random:{mode:[{_score:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._score}},dateAsc:{mode:[{mtime:{order:"asc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.mtime}},dateDesc:{mode:[{mtime:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.mtime}},sizeAsc:{mode:[{size:{order:"asc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.size}},sizeDesc:{mode:[{size:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.size}}},dn=function(){function e(){Object(W["a"])(this,e)}return Object(K["a"])(e,[{key:"searchQuery",value:function(){var e=un.getters,t=e.searchText,n=e.pathText,r=""===t,i=e.sizeMin,o=e.sizeMax,a=e.dateMin,s=e.dateMax,c=e.fuzzy,u=e.size,l=e.lastDoc,d=e.selectedIndices.map((function(e){return e.id})),p=e.selectedMimeTypes,h=e.selectedTags,m=un.state.sist2Info.esVersionLegacy,f=[{terms:{index:d}}];i&&o?f.push({range:{size:{gte:i,lte:o}}}):i?f.push({range:{size:{gte:i}}}):o&&f.push({range:{size:{lte:o}}}),a&&s?f.push({range:{mtime:{gte:a,lte:s}}}):a?f.push({range:{mtime:{gte:a}}}):s&&f.push({range:{mtime:{lte:s}}});var g=["name^8","content^3","album^8","artist^8","title^8","genre^2","album_artist^8","font_name^6"];e.optSearchInPath&&g.push("path.text^5"),c&&(g.push("content.nGram"),e.optSearchInPath&&g.push("path.nGram"),g.push("name.nGram^3"));var v,b=n.replace(/\/$/,"").toLowerCase();""!==b&&f.push({term:{path:b}}),p.length>0&&f.push({terms:{mime:p}}),h.length>0&&(e.optTagOrOperator?f.push({terms:{tag:h}}):h.forEach((function(e){return f.push({term:{tag:e}})}))),v="simple"===e.optQueryMode?{simple_query_string:{query:t,fields:g,default_operator:"and"}}:{query_string:{query:t,default_field:"name",default_operator:"and"}};var x={_source:{excludes:["content","_tie"]},query:{bool:{filter:f}},sort:ln[e.sortMode].mode,aggs:{total_size:{sum:{field:"size"}},total_count:{value_count:{field:"size"}}},size:u};return r||(x.query.bool.must=v),l&&(x.search_after=[ln[e.sortMode].key(l),l["_id"]]),e.optHighlight&&(x.highlight={pre_tags:[""],post_tags:[""],fragment_size:e.optFragmentSize,number_of_fragments:1,order:"score",fields:{content:{},name:{},"name.nGram":{},"content.nGram":{},font_name:{}}},m||(x.highlight.max_analyzed_offset=9999999),e.optSearchInPath&&(x.highlight.fields["path.text"]={},x.highlight.fields["path.nGram"]={})),"random"===e.sortMode&&(x.query={function_score:{query:{bool:{must:f}},functions:[{random_score:{seed:e.seed,field:"_seq_no"},weight:1e3}],boost_mode:"sum"}},r||x.query.function_score.query.bool.must.push(v)),x}}]),e}(),pn=new dn,hn=n("b047"),mn=n.n(hn),fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("GridLayout",{ref:"grid-layout",attrs:{options:e.gridOptions},on:{append:e.append,"layout-complete":function(t){return e.$emit("layout-complete")}}},e._l(e.docs,(function(t){return n("DocCard",{key:t._id,attrs:{doc:t,width:e.width}})})),1)},gn=[],vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"doc-card",class:{"sub-document":e.doc._props.isSubDocument},style:"width: "+e.width+"px"},[n("b-card",{attrs:{"no-body":"","img-top":""}},[n("DocInfoModal",{attrs:{show:e.showInfo,doc:e.doc},on:{close:function(t){e.showInfo=!1}}}),n("ContentDiv",{attrs:{doc:e.doc}}),e.doc._props.hasThumbnail?n("div",{staticClass:"img-wrapper",on:{mouseenter:function(t){return e.onTnEnter()},mouseleave:function(t){return e.onTnLeave()}}},[e.doc._props.isAudio?n("div",{staticClass:"card-img-overlay",class:{"small-badge":e.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[e._v(e._s(e.humanTime(e.doc._source.duration)))])]):e._e(),e.doc._props.isImage&&!e.hover?n("div",{staticClass:"card-img-overlay",class:{"small-badge":e.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[e._v(e._s(e.doc._source.width+"x"+e.doc._source.height))])]):e._e(),(e.doc._props.isVideo||e.doc._props.isGif)&&e.doc._source.duration>0&&!e.hover?n("div",{staticClass:"card-img-overlay",class:{"small-badge":e.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[e._v(e._s(e.humanTime(e.doc._source.duration)))])]):e._e(),e.doc._props.isPlayableVideo?n("div",{staticClass:"play"},[n("svg",{attrs:{viewBox:"0 0 494.942 494.942",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m35.353 0 424.236 247.471-424.236 247.471z"}})])]):e._e(),e.doc._props.isPlayableImage||e.doc._props.isPlayableVideo?n("img",{staticClass:"pointer fit card-img-top",attrs:{src:e.doc._props.isGif&&e.hover?"f/"+e.doc._id:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""},on:{click:function(t){return e.onThumbnailClick()}}}):n("img",{staticClass:"fit card-img-top",attrs:{src:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""}})]):e._e(),e.doc._props.isAudio?n("audio",{ref:"audio",staticClass:"audio-fit fit",attrs:{preload:"none",controls:"",type:e.doc._source.mime,src:"f/"+e.doc._id},on:{play:function(t){return e.onAudioPlay()}}}):e._e(),n("b-card-body",{staticClass:"padding-03"},[n("div",{staticStyle:{display:"flex"}},[n("span",{staticClass:"info-icon",on:{click:function(t){return e.onInfoClick()}}}),n("DocFileTitle",{attrs:{doc:e.doc}})],1),n("div",{staticClass:"card-text"},[n("TagContainer",{attrs:{hit:e.doc}})],1)])],1)],1)},bn=[],xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{on:{mouseenter:function(t){e.showAddButton=!0},mouseleave:function(t){e.showAddButton=!1}}},[n("b-modal",{attrs:{title:e.$t("saveTagModalTitle"),"hide-footer":"","no-fade":"",centered:"",size:"lg",static:"",lazy:""},model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}},[n("b-row",[n("b-col",{staticStyle:{"flex-grow":"2"},attrs:{sm:""}},[n("VueSimpleSuggest",{ref:"suggest",staticClass:"form-control-fix-flex",staticStyle:{"margin-top":"17px"},attrs:{value:e.tagText,list:e.suggestTag,"max-suggestions":0,placeholder:e.$t("saveTagPlaceholder")},on:{select:function(t){return e.setTagText(t)},input:function(t){return e.setTagText(t)}},scopedSlots:e._u([{key:"suggestion-item",fn:function(t){var r=t.suggestion,i=t.query;return n("div",{},[n("div",{staticClass:"suggestion-line"},[n("span",{staticClass:"badge badge-suggestion",style:{background:e.getBg(r),color:e.getFg(r)}},[n("strong",[e._v(e._s(i))]),e._v(e._s(e.getSuggestionWithoutQueryPrefix(r,i))+" ")])])])}}])})],1),n("b-col",{staticClass:"mt-4"},[n("TwitterColorPicker",{staticClass:"mr-auto ml-auto",attrs:{triangle:"hide",width:252},model:{value:e.color,callback:function(t){e.color=t},expression:"color"}})],1)],1),n("b-button",{staticClass:"mt-2",staticStyle:{float:"right"},attrs:{variant:"primary"},on:{click:function(t){return e.saveTag()}}},[e._v(e._s(e.$t("confirm"))+" ")])],1),e._l(e.hit._tags,(function(t){return[t.userTag?n("div",{key:t.rawText,staticStyle:{display:"inline-block"}},[n("span",{staticClass:"badge pointer",class:e.badgeClass(t),style:e.badgeStyle(t),attrs:{id:e.hit._id+t.rawText,title:t.text,tabindex:"-1"},on:{contextmenu:function(n){return e.onTagRightClick(t,n)}}},[e._v(e._s(t.text.split(".").pop()))]),n("b-popover",{attrs:{target:e.hit._id+t.rawText,triggers:"focus blur",placement:"top"}},[n("b-button",{attrs:{variant:"danger"},on:{click:function(n){return e.onTagDeleteClick(t,n)}}},[e._v("Delete")])],1)],1):n("span",{key:t.text,staticClass:"badge",class:e.badgeClass(t),style:e.badgeStyle(t)},[e._v(e._s(t.text.split(".").pop()))])]})),e.showAddButton?n("small",{staticClass:"badge add-tag-button",on:{click:function(t){return e.tagAdd()}}},[e._v("Add")]):n("small",{staticClass:"text-muted badge-size"},[e._v(e._s(e.humanFileSize(e.hit._source.size)))])],2)},yn=[],_n=n("c345"),Tn=n("5111"),Sn=r["default"].extend({components:{TwitterColorPicker:_n["Twitter"],VueSimpleSuggest:Tn["a"]},props:["hit"],data:function(){return{showAddButton:!1,showModal:!1,tagText:null,color:{hex:"#e0e0e0"}}},computed:{tagHover:function(){return this.$store.getters["uiTagHover"]}},methods:{humanFileSize:B,getSuggestionWithoutQueryPrefix:function(e,t){return e.id.slice(t.length,-8)},getBg:function(e){return e.id.slice(-7)},getFg:function(e){return U(e.id.slice(-7))>50?"#000":"#fff"},setTagText:function(e){this.$refs.suggest.clearSuggestions(),"string"!==typeof e?(this.color={hex:"#"+e.id.split("#")[1]},this.tagText=e):this.tagText={id:e,title:e}},badgeClass:function(e){return"badge-".concat(e.style)},badgeStyle:function(e){return{background:e.bg,color:e.fg}},onTagHover:function(e){e.userTag&&this.$store.commit("setUiTagHover",e)},onTagLeave:function(){this.$store.commit("setUiTagHover",null)},onTagDeleteClick:function(e,t){var n=this;this.hit._tags=this.hit._tags.filter((function(t){return t!==e})),ne.deleteTag(e.rawText,this.hit).then((function(){n.$store.commit("busUpdateWallItems"),n.$store.commit("busUpdateTags")}))},tagAdd:function(){this.showModal=!0},saveTag:function(){var e=this;if(this.tagText.id.includes("#"))this.$bvToast.toast(this.$t("toast.invalidTag"),{title:this.$t("toast.invalidTagTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"});else{var t=this.tagText.id+this.color.hex.replace("#",".#"),n=this.hit._tags.filter((function(e){return e.userTag}));null==n.find((function(e){return e.rawText===t}))?(this.hit._tags.push(ne.createUserTag(t)),ne.saveTag(t,this.hit).then((function(){e.tagText=null,e.showModal=!1,e.$store.commit("busUpdateWallItems"),e.$store.commit("busUpdateTags")}))):this.$bvToast.toast(this.$t("toast.dupeTag"),{title:this.$t("toast.dupeTagTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"})}},suggestTag:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=e.toLowerCase(),n.next=3,t.getTagChoices(e);case 3:for(r=n.sent,i=[],o=0;o').concat(e,", ").concat(t,"")}function Hn(e,t){var n=e.split(","),r=Number(n[0].trim().split(":")[0])/Number(n[0].trim().split(":")[1]),i=Number(n[1].trim().split(":")[0])/Number(n[1].trim().split(":")[1]),o=Number(n[2].trim().split(":")[0])/Number(n[2].trim().split(":")[1]);return(r+i/60+o/3600)*("S"===t||"W"===t?-1:1)}var Bn={name:"InfoTable",props:["doc"],computed:{tableItems:function(){var e=this.doc._source,t=[{key:"index",value:"[".concat(this.$store.getters.indexMap[e.index].name,"]")},{key:"mtime",value:R(e.mtime)},{key:"mime",value:e.mime},{key:"size",value:B(e.size)},{key:"path",value:e.path}];"width"in this.doc._source&&t.push({key:"image size",value:"".concat(e.width,"x").concat(e.height)});var n=["title","duration","audioc","videoc","bitrate","artist","album","album_artist","genre","font_name","author","modified_by","pages","tag","exif_make","exif_software","exif_exposure_time","exif_fnumber","exif_focal_length","exif_user_comment","exif_iso_speed_ratings","exif_model","exif_datetime","checksum"];return n.forEach((function(n){n in e&&t.push({key:n,value:e[n]})})),"exif_gps_longitude_dec"in e?t.push({key:"Exif GPS",html:qn(e["exif_gps_latitude_dec"],e["exif_gps_longitude_dec"])}):"exif_gps_longitude_dms"in e&&t.push({key:"Exif GPS",html:qn(Hn(e["exif_gps_latitude_dms"],e["exif_gps_latitude_ref"]),Hn(e["exif_gps_longitude_dms"],e["exif_gps_longitude_ref"]))}),t}}},An=Bn,Rn=Object(m["a"])(An,En,jn,!1,null,"11002a20",null),Un=Rn.exports,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.loading?n("Preloader"):e.content?n("div",{staticClass:"content-div"},[e._v(e._s(e.content))]):e._e()},Qn=[],Nn={name:"LazyContentDiv",components:{Preloader:Te},props:["docId"],data:function(){return{content:"",loading:!0}},mounted:function(){var e=this;ne.getDocInfo(this.docId).then((function(t){e.content=t.data.content,e.loading=!1}))}},Gn=Nn,Vn=Object(m["a"])(Gn,Fn,Qn,!1,null,"3644e939",null),Wn=Vn.exports,Kn={name:"DocInfoModal",components:{LazyContentDiv:Wn,InfoTable:Un},props:["doc","show"],methods:{ext:E}},Yn=Kn,Jn=Object(m["a"])(Yn,Dn,Pn,!1,null,"26f8eb5c",null),Zn=Jn.exports,Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.content()?n("div",{staticClass:"content-div",domProps:{innerHTML:e._s(e.content())}}):e._e()},er=[],tr={name:"ContentDiv",props:["doc"],methods:{content:function(){return this.doc.highlight?this.doc.highlight["content.nGram"]?this.doc.highlight["content.nGram"][0]:this.doc.highlight.content?this.doc.highlight.content[0]:void 0:null}}},nr=tr,rr=Object(m["a"])(nr,Xn,er,!1,null,"a093e946",null),ir=rr.exports,or={components:{ContentDiv:ir,DocInfoModal:Zn,DocFileTitle:In,TagContainer:$n},props:["doc","width"],data:function(){return{ext:E,showInfo:!1,hover:!1}},computed:{placeHolderStyle:function(){var e=this.doc._source.thumbnail.split(","),t=Number(e[0]),n=Number(e[1]),r=400;return{height:"".concat(Math.min(n/t*this.width,r),"px")}},smallBadge:function(){return this.width<150}},methods:{humanFileSize:B,humanTime:A,onInfoClick:function(){this.showInfo=!0},onThumbnailClick:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("setUiLightboxSlide",e.doc._seq),t.next=3,e.$store.dispatch("showLightbox");case 3:case"end":return t.stop()}}),t)})))()},onAudioPlay:function(){var e=this;document.getElementsByTagName("audio").forEach((function(t){t!==e.$refs["audio"]&&t.pause()}))},onTnEnter:function(){this.hover=!0},onTnLeave:function(){this.hover=!1}}},ar=or,sr=(n("b9df"),n("706c"),Object(m["a"])(ar,vn,bn,!1,null,"a78557ce",null)),cr=sr.exports,ur=n("527a");r["default"].use(ur["a"]);var lr=r["default"].extend({components:{DocCard:cr},props:["docs","append"],data:function(){return{width:0,gridOptions:{align:"center",margin:0,transitionDuration:0,isOverflowScroll:!1,isConstantSize:!1,useFit:!1,useRecycle:!1}}},computed:{colCount:function(){var e=this.$store.getters["optColumns"];return"auto"===e?Math.round(this.$refs["grid-layout"].$el.scrollWidth/300):e}},mounted:function(){var e=this;this.width=this.$refs["grid-layout"].$el.scrollWidth/this.colCount,1===this.colCount&&this.$refs["grid-layout"].$el.classList.add("grid-single-column"),this.$store.subscribe((function(t){"busUpdateWallItems"===t.type&&e.$refs["grid-layout"]&&e.$refs["grid-layout"].updateItems()}))}}),dr=lr,pr=Object(m["a"])(dr,fn,gn,!1,null,null,null),hr=pr.exports,mr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("FsLightbox",{key:e.lightboxKey,attrs:{toggler:e.showLightbox,sources:e.lightboxSources,thumbs:e.lightboxThumbs,captions:e.lightboxCaptions,types:e.lightboxTypes,"source-index":e.lightboxSlide,"custom-toolbar-buttons":e.customButtons,"slideshow-time":1e4,"zoom-increment":.5,"load-only-current-source":e.$store.getters.optLightboxLoadOnlyCurrent,"on-close":e.onClose,"on-open":e.onShow,"on-slide-change":e.onSlideChange}}),n("a",{staticStyle:{display:"none"},attrs:{id:"lightbox-download"}})],1)},fr=[],gr=n("e099"),vr=n.n(gr),br={name:"Lightbox",components:{FsLightbox:vr.a},data:function(){return{customButtons:[{viewBox:"0 0 384.928 384.928",d:"M321.339,245.334c-4.74-4.692-12.439-4.704-17.179,0l-99.551,98.564V12.03 c0-6.641-5.438-12.03-12.151-12.03s-12.151,5.39-12.151,12.03v331.868l-99.551-98.552c-4.74-4.704-12.439-4.704-17.179,0 s-4.74,12.319,0,17.011l120.291,119.088c4.692,4.644,12.499,4.644,17.191,0l120.291-119.088 C326.091,257.653,326.091,250.038,321.339,245.334C316.599,240.642,326.091,250.038,321.339,245.334z",width:"17px",height:"17px",title:"Download",onClick:this.onDownloadClick}]}},computed:{showLightbox:function(){return this.$store.getters["uiShowLightbox"]},lightboxSources:function(){return this.$store.getters["uiLightboxSources"]},lightboxThumbs:function(){return this.$store.getters["uiLightboxThumbs"]},lightboxKey:function(){return this.$store.getters["uiLightboxKey"]},lightboxSlide:function(){return this.$store.getters["uiLightboxSlide"]},lightboxCaptions:function(){return this.$store.getters["uiLightboxCaptions"]},lightboxTypes:function(){return this.$store.getters["uiLightboxTypes"]}},methods:{onDownloadClick:function(){var e=this.lightboxSources[this.lightboxSlide],t=document.getElementById("lightbox-download");t.setAttribute("href",e),t.setAttribute("download",""),t.click()},onShow:function(){this.$store.commit("setUiLightboxIsOpen",!0)},onClose:function(){this.$store.commit("setUiLightboxIsOpen",!1)},onSlideChange:function(){document.getElementsByTagName("video").forEach((function(e){e.pause()}))}}},xr=br,yr=(n("5ee9"),Object(m["a"])(xr,mr,fr,!1,null,null,null)),_r=yr.exports,Tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lightbox-caption"},[n("p",[n("b",[e._v(e._s("["+e.$store.getters.indices.find((function(t){return t.id===e.hit._source.index})).name+"]"))]),e._v(e._s("/"+e.hit._source.path+"/"+e.hit._source.name+e.ext(e.hit))+" ")]),n("p",{staticStyle:{"margin-top":"-1em"}},[e.hit._source.width?n("span",[e._v(e._s(e.hit._source.width+"x"+e.hit._source.height))]):e._e(),e._v(" "+e._s(" ("+e.humanFileSize(e.hit._source.size)+")")+" ")])])},Sr=[],wr={name:"LightboxCaption",props:["hit"],methods:{humanFileSize:B,ext:E}},zr=wr,$r=Object(m["a"])(zr,Tr,Sr,!1,null,null,null),Or=$r.exports,Cr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"mimeTree"}})},kr=[],Mr=n("cea5"),Lr=n.n(Mr),Ir=n("52e7"),Dr=n.n(Ir),Pr=(n("aac9"),{name:"MimePicker",data:function(){return{mimeTree:null}},mounted:function(){var e=this;this.$store.subscribe((function(t){if("setUiMimeMap"===t.type){var n=t.payload.slice();e.mimeTree=new Lr.a({selection:{mode:"checkbox"},data:n}),new Dr.a(e.mimeTree,{target:"#mimeTree"}),e.mimeTree.on("node.state.changed",e.handleTreeClick),e.mimeTree.deselect(),e.$store.state._onLoadSelectedMimeTypes.length>0&&e.$store.state._onLoadSelectedMimeTypes.forEach((function(t){e.mimeTree.node(t).select()}))}}))},methods:{handleTreeClick:function(e,t){"indeterminate"!==t&&"collapsed"!==t&&"rendered"!==t&&"focused"!==t&&this.$store.commit("setSelectedMimeTypes",F(this.mimeTree))}}}),Er=Pr,jr=(n("f798"),Object(m["a"])(Er,Cr,kr,!1,null,"1ea26eb2",null)),qr=jr.exports,Hr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.lastResultsLoaded?n("b-card",{attrs:{id:"results"}},[n("span",[e._v(e._s(e.hitCount)+" "+e._s(1===e.hitCount?e.$t("hit"):e.$t("hits")))]),n("div",{staticStyle:{float:"right"}},[n("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.collapse-1",modifiers:{"collapse-1":!0}}],staticClass:"not-mobile",attrs:{variant:"primary"}},[e._v(e._s(e.$t("details")))]),n("SortSelect",{staticClass:"ml-2"}),n("DisplayModeToggle",{staticClass:"ml-2"})],1),n("b-collapse",{staticClass:"pt-2",staticStyle:{clear:"both"},attrs:{id:"collapse-1"}},[n("b-card",[n("b-table",{staticClass:"mb-0",attrs:{items:e.tableItems,small:"",borderless:"","thead-class":"hidden"}})],1)],1)],1):e._e()},Br=[],Ar=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-button-group",[n("b-button",{attrs:{variant:"primary",title:e.$t("displayMode.list"),pressed:"list"===e.optDisplay},on:{click:function(t){return e.setOptDisplay("list")}}},[n("svg",{attrs:{width:"20px",height:"20px",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[n("path",{attrs:{fill:"currentColor",d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"}})])]),n("b-button",{attrs:{variant:"primary",title:e.$t("displayMode.grid"),pressed:"grid"===e.optDisplay},on:{click:function(t){return e.setOptDisplay("grid")}}},[n("svg",{attrs:{width:"20px",height:"20px",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[n("path",{attrs:{fill:"currentColor",d:"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"}})])])],1)},Rr=[],Ur={name:"DisplayModeToggle",computed:Object(s["a"])({},Object(_["c"])(["optDisplay"])),methods:Object(s["a"])({},Object(_["d"])(["setOptDisplay"]))},Fr=Ur,Qr=Object(m["a"])(Fr,Ar,Rr,!1,null,"747547a4",null),Nr=Qr.exports,Gr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-dropdown",{attrs:{variant:"primary"},scopedSlots:e._u([{key:"button-content",fn:function(){return[n("svg",{attrs:{"aria-hidden":"true",width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},[n("path",{attrs:{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"}})])]},proxy:!0}])},[n("b-dropdown-item",{class:{"dropdown-active":"score"===e.sort},on:{click:function(t){return e.onSelect("score")}}},[e._v(e._s(e.$t("sort.relevance"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"dateAsc"===e.sort},on:{click:function(t){return e.onSelect("dateAsc")}}},[e._v(e._s(e.$t("sort.dateAsc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"dateDesc"===e.sort},on:{click:function(t){return e.onSelect("dateDesc")}}},[e._v(" "+e._s(e.$t("sort.dateDesc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"sizeAsc"===e.sort},on:{click:function(t){return e.onSelect("sizeAsc")}}},[e._v(e._s(e.$t("sort.sizeAsc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"sizeDesc"===e.sort},on:{click:function(t){return e.onSelect("sizeDesc")}}},[e._v(" "+e._s(e.$t("sort.sizeDesc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"random"===e.sort},on:{click:function(t){return e.onSelect("random")}}},[e._v(" "+e._s(e.$t("sort.random"))+" ")])],1)},Vr=[],Wr={name:"SortSelect",computed:{sort:function(){return this.$store.state.sortMode}},methods:{onSelect:function(e){"random"===e&&this.$store.commit("setSeed",Math.round(1e5*Math.random())),this.$store.commit("setSortMode",e)}}},Kr=Wr,Yr=(n("a8cc"),Object(m["a"])(Kr,Gr,Vr,!1,null,null,null)),Jr=Yr.exports,Zr=r["default"].extend({name:"ResultsCard",components:{SortSelect:Jr,DisplayModeToggle:Nr},computed:{lastResultsLoaded:function(){return null!=this.$store.state.lastQueryResults},hitCount:function(){return this.$store.state.lastQueryResults.aggregations.total_count.value},tableItems:function(){var e=[];return e.push({key:this.$t("queryTime"),value:this.took()}),e.push({key:this.$t("totalSize"),value:this.totalSize()}),e}},methods:{took:function(){return this.$store.state.lastQueryResults.took+"ms"},totalSize:function(){return B(this.$store.state.lastQueryResults.aggregations.total_size.value)}}}),Xr=Zr,ei=(n("a079"),Object(m["a"])(Xr,Hr,Br,!1,null,null,null)),ti=ei.exports,ni=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"input-group",staticStyle:{"margin-bottom":"0.5em","margin-top":"1em"}},[n("div",{staticClass:"input-group-prepend"},[n("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(t){return e.$refs["path-modal"].show()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",width:"20px"}},[n("path",{attrs:{fill:"currentColor",d:"M288 224h224a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32H400L368 0h-80a32 32 0 0 0-32 32v64H64V8a8 8 0 0 0-8-8H40a8 8 0 0 0-8 8v392a16 16 0 0 0 16 16h208v64a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H400l-32-32h-80a32 32 0 0 0-32 32v64H64V128h192v64a32 32 0 0 0 32 32zm0 96h66.74l32 32H512v128H288zm0-288h66.74l32 32H512v128H288z"}})])])],1),n("VueSimpleSuggest",{staticClass:"form-control-fix-flex",attrs:{value:e.getPathText,list:e.suggestPath,"max-suggestions":0,placeholder:e.$t("pathBar.placeholder")},on:{input:e.setPathText},scopedSlots:e._u([{key:"suggestion-item",fn:function(t){var r=t.suggestion,i=t.query;return n("div",{},[n("div",{staticClass:"suggestion-line",attrs:{title:r}},[n("strong",[e._v(e._s(i))]),e._v(e._s(e.getSuggestionWithoutQueryPrefix(r,i))+" ")])])}}])})],1),n("b-modal",{ref:"path-modal",attrs:{title:e.$t("pathBar.modalTitle"),size:"lg","hide-footer":!0,static:""}},[n("div",{attrs:{id:"pathTree"}})])],1)},ri=[],ii=(n("c4c9"),{name:"PathTree",components:{VueSimpleSuggest:Tn["a"]},data:function(){return{mimeTree:null,pathItems:[],tmpPath:""}},computed:Object(s["a"])({},Object(_["c"])(["getPathText"])),mounted:function(){var e=this;this.$store.subscribe((function(t){if("setIndices"===t.type){var n=new Lr.a({data:function(t,n,r){return e.getNextDepth(t)},sort:"text"});e.$store.state.indices.forEach((function(e){n.addNode({id:"/"+e.id,values:["/"+e.id],text:"/[".concat(e.name,"]"),index:e.id,depth:0,children:!0})})),new Dr.a(n,{target:"#pathTree"}),n.on("node.click",e.handleTreeClick),n.expand()}}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])(["setPathText"])),{},{getSuggestionWithoutQueryPrefix:function(e,t){return e.slice(t.length)},getPathChoices:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var n={suggest:{path:{prefix:e.getPathText,completion:{field:"suggest-path",skip_duplicates:!0,size:1e4}}}};ne.esQuery(n).then((function(e){return t(e["suggest"]["path"][0]["options"].map((function(e){return e["_source"]["path"]})))}))})));case 1:case"end":return t.stop()}}),t)})))()},suggestPath:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.$store.state.optSuggestPath){n.next=2;break}return n.abrupt("return",[]);case 2:return e=e.toLowerCase(),n.next=5,t.getPathChoices();case 5:for(r=n.sent,i=[],o=0;o0&&(t.query.bool.must={prefix:{path:e.id}}),ne.esQuery(t).then((function(t){var n=t["aggregations"]["paths"]["buckets"];if(!n)return!1;var r=[];return n.filter((function(t){return t.key.length>e.id.length||e.id.startsWith("/")})).sort((function(e,t){return e.key>t.key})).map((function(t){if(r.some((function(e){return t.key.startsWith(e)})))return null;var n=e.id.startsWith("/")?t.key:t.key.slice(e.id.length+1);return r.push(t.key),{id:t.key,text:"".concat(n,"/ (").concat(t.doc_count,")"),depth:e.depth+1,index:e.index,values:[t.key],children:!0}})).filter((function(e){return null!==e}))}))},handleTreeClick:function(e,t,n){0!==t.depth&&(this.setPathText(t.id),this.$refs["path-modal"].hide(),this.$emit("search")),n()}})}),oi=ii,ai=(n("ddab"),n("c919"),Object(m["a"])(oi,ni,ri,!1,null,"b24a99e6",null)),si=ai.exports,ci=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"sizeSlider"}})},ui=[],li=n("f528"),di=n.n(li),pi=(n("df2f"),{name:"SizeSlider",mounted:function(){var e=this,t=document.getElementById("sizeSlider"),n=di.a.create(t,{start:[this.$store.state.sizeMin?this.$store.state.sizeMin:0,this.$store.state.sizeMax?this.$store.state.sizeMax:5e10],tooltips:[!0,!0],behaviour:"drag-tap",connect:!0,range:{min:0,"10%":1e6,"20%":1e7,"50%":5e9,max:5e10},format:{to:function(e){return e>=5e10?"50G+":B(Math.round(e))},from:function(e){return e}}});D(t,10," - "),t.querySelectorAll(".noUi-connect")[0].classList.add("slider-color0"),n.on("set",(function(t,n,r){0===n?e.$store.commit("setSizeMin",0===r[0]?void 0:Math.round(r[0])):e.$store.commit("setSizeMax",r[1]>=5e10?void 0:Math.round(r[1]))}))}}),hi=pi,mi=(n("95ee"),Object(m["a"])(hi,ci,ui,!1,null,null,null)),fi=mi.exports,gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"dateSlider"}})},vi=[],bi={name:"DateSlider",mounted:function(){var e=this;this.$store.subscribe((function(t){if("setDateBoundsMax"===t.type){var n=document.getElementById("dateSlider");if(n.children.length>0)return;var r=e.$store.state.dateBoundsMax,i=e.$store.state.dateBoundsMin,o=di.a.create(n,{start:[e.$store.state.dateMin?e.$store.state.dateMin:i,e.$store.state.dateMax?e.$store.state.dateMax:r],tooltips:[!0,!0],behaviour:"drag-tap",connect:!0,range:{min:i,max:r},format:{to:function(e){return R(e)},from:function(e){return e}}});D(n,10," - ",!0),n.querySelectorAll(".noUi-connect")[0].classList.add("slider-color0"),o.on("set",(function(t,n,o){0===n?e.$store.commit("setDateMin",o[0]===i?void 0:Math.round(o[0])):e.$store.commit("setDateMax",o[1]>=r?void 0:Math.round(o[1]))}))}}))}},xi=bi,yi=(n("5a9f"),Object(m["a"])(xi,gi,vi,!1,null,null,null)),_i=yi.exports,Ti=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"tagTree"}})},Si=[];function wi(e){return e._tree.defaultState.forEach((function(t,n){e.state(n,t)})),e}function zi(e,t,n,r,i){return r.state(e)!==t&&(r._tree.batch(),r._tree.config.nodes.resetStateOnRestore&&"restored"===n&&wi(r),r.state(e,t),r._tree.emit("node."+n,r,!1),i&&r.hasChildren()&&r.children.recurseDown((function(r){zi(e,t,n,r)})),r.markDirty(),r._tree.end()),r}function $i(e,t,n,r){var i=t.split("."),o={id:n,count:r,text:1!==i.length?i[0]:"".concat(i[0]," (").concat(r,")"),name:i[0],children:[],blur:function(){},select:function(){return this.state("selected",!0),this.check()},deselect:function(){return this.state("selected",!1),this.uncheck()},uncheck:function(){return zi("checked",!1,"unchecked",this,!1),this.state("indeterminate",!1),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.end(),this},check:function(){return zi("checked",!0,"checked",this,!1),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.end(),this}},a=!1;e.forEach((function(e){e.name===o.name&&(a=!0,1!==i.length?$i(e.children,i.slice(1).join("."),n,r):(console.error("FIXME: Duplicate tag?"),console.trace(e)))})),a||(1!==i.length?($i(o.children,i.slice(1).join("."),n,r),e.push(o)):e.push(o))}var Oi={name:"TagPicker",data:function(){return{tagTree:null,loadedFromArgs:!1}},mounted:function(){var e=this;this.$store.subscribe((function(t){"setUiMimeMap"===t.type?(e.initializeTree(),e.updateTree()):"busUpdateTags"===t.type&&window.setTimeout(e.updateTree,2e3)}))},methods:{initializeTree:function(){var e=[];this.tagTree=new Lr.a({selection:{mode:"checkbox",autoDeselect:!1},checkbox:{autoCheckChildren:!1},data:e}),new Dr.a(this.tagTree,{target:"#tagTree"}),this.tagTree.on("node.state.changed",this.handleTreeClick)},updateTree:function(){var e=this,t=[];ne.getTags().then((function(n){n.forEach((function(e){return $i(t,e.id,e.id,e.count)})),e.tagTree.removeAll(),e.tagTree.addNodes(t),e.$store.state._onLoadSelectedTags.length>0&&!e.loadedFromArgs&&e.$store.state._onLoadSelectedTags.forEach((function(t){e.tagTree.node(t).select(),e.loadedFromArgs=!0}))}))},handleTreeClick:function(e,t){"indeterminate"!==t&&"collapsed"!==t&&"rendered"!==t&&"focused"!==t&&this.$store.commit("setSelectedTags",F(this.tagTree))}}},Ci=Oi,ki=(n("706cd"),n("e478"),Object(m["a"])(Ci,Ti,Si,!1,null,"61ce9763",null)),Mi=ki.exports,Li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-list-group",{staticClass:"mt-3"},e._l(e.docs,(function(e){return n("DocListItem",{key:e._id,attrs:{doc:e}})})),1)},Ii=[],Di=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-list-group-item",{staticClass:"flex-column align-items-start mb-2",class:{"sub-document":e.doc._props.isSubDocument}},[n("DocInfoModal",{attrs:{show:e.showInfo,doc:e.doc},on:{close:function(t){e.showInfo=!1}}}),n("div",{staticClass:"media ml-2"},[e.doc._props.hasThumbnail?n("div",{staticClass:"align-self-start mr-2 wrapper-sm"},[n("div",{staticClass:"img-wrapper"},[e.doc._props.isPlayableVideo?n("div",{staticClass:"play"},[n("svg",{attrs:{viewBox:"0 0 494.942 494.942",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m35.353 0 424.236 247.471-424.236 247.471z"}})])]):e._e(),e.doc._props.isPlayableImage||e.doc._props.isPlayableVideo?n("img",{staticClass:"pointer fit-sm",attrs:{src:e.doc._props.isGif&&e.hover?"f/"+e.doc._id:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""},on:{click:function(t){return e.onThumbnailClick()}}}):n("img",{staticClass:"fit-sm",attrs:{src:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""}})])]):n("div",{staticClass:"file-icon-wrapper"},[n("FileIcon")],1),n("div",{staticClass:"doc-line ml-3"},[n("div",{staticStyle:{display:"flex"}},[n("span",{staticClass:"info-icon",on:{click:function(t){e.showInfo=!0}}}),n("DocFileTitle",{attrs:{doc:e.doc}})],1),n("ContentDiv",{attrs:{doc:e.doc}}),n("div",{staticClass:"path-row"},[n("div",{staticClass:"path-line",domProps:{innerHTML:e._s(e.path())}}),n("TagContainer",{attrs:{hit:e.doc}})],1),e.doc._source.pages||e.doc._source.author?n("div",{staticClass:"path-row text-muted"},[e.doc._source.pages?n("span",[e._v(e._s(e.doc._source.pages)+" "+e._s(e.doc._source.pages>1?e.$t("pages"):e.$t("page")))]):e._e(),e.doc._source.author&&e.doc._source.pages?n("span",{staticClass:"mx-1"},[e._v("-")]):e._e(),e.doc._source.author?n("span",[e._v(e._s(e.doc._source.author))]):e._e()]):e._e()],1)])],1)},Pi=[],Ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{staticClass:"file-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}},[n("path",{attrs:{fill:"currentColor",d:"M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z"}})])},ji=[],qi={name:"FileIcon"},Hi=qi,Bi=(n("5de8"),Object(m["a"])(Hi,Ei,ji,!1,null,"0cec34c8",null)),Ai=Bi.exports,Ri={name:"DocListItem",components:{FileIcon:Ai,ContentDiv:ir,DocInfoModal:Zn,DocFileTitle:In,TagContainer:$n},props:["doc"],data:function(){return{hover:!1,showInfo:!1}},methods:{onThumbnailClick:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("setUiLightboxSlide",e.doc._seq),t.next=3,e.$store.dispatch("showLightbox");case 3:case"end":return t.stop()}}),t)})))()},path:function(){return this.doc.highlight?this.doc.highlight["path.text"]?this.doc.highlight["path.text"]+"/":this.doc.highlight["path.nGram"]?this.doc.highlight["path.nGram"]+"/":this.doc._source.path+"/":this.doc._source.path+"/"}}},Ui=Ri,Fi=(n("c0c5"),Object(m["a"])(Ui,Di,Pi,!1,null,"2507ef74",null)),Qi=Fi.exports,Ni=r["default"].extend({name:"DocList",components:{DocListItem:Qi},props:["docs","append"],mounted:function(){var e=this;window.addEventListener("scroll",(function(){var t=400,n=document.getElementById("app");window.innerHeight+window.scrollY>=n.offsetHeight-t&&e.append()}))}}),Gi=Ni,Vi=(n("7191"),Object(m["a"])(Gi,Li,Ii,!1,null,null,null)),Wi=Vi.exports,Ki=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-modal",{attrs:{visible:e.show,size:"lg","hide-footer":!0,static:"",title:e.$t("help.help")},on:{close:function(t){return e.$emit("close")},hide:function(t){return e.$emit("close")}}},[n("h2",[e._v(e._s(e.$t("help.simpleSearch")))]),n("table",{staticClass:"table"},[n("tbody",[n("tr",[n("td",[n("code",[e._v("+")])]),n("td",[e._v(e._s(e.$t("help.and")))])]),n("tr",[n("td",[n("code",[e._v("|")])]),n("td",[e._v(e._s(e.$t("help.or")))])]),n("tr",[n("td",[n("code",[e._v("-")])]),n("td",[e._v(e._s(e.$t("help.not")))])]),n("tr",[n("td",[n("code",[e._v('""')])]),n("td",[e._v(e._s(e.$t("help.quotes")))])]),n("tr",[n("td",[n("code",[e._v(e._s(e.$t("help.term"))+"*")])]),n("td",[e._v(e._s(e.$t("help.prefix")))])]),n("tr",[n("td",[n("code",[e._v("(")]),e._v(" "+e._s(e.$t("and"))+" "),n("code",[e._v(")")])]),n("td",[e._v(e._s(e.$t("help.parens")))])]),n("tr",[n("td",[n("code",[e._v(e._s(e.$t("help.term"))+"~N")])]),n("td",[e._v(e._s(e.$t("help.tildeTerm")))])]),n("tr",[n("td",[n("code",[e._v('"..."~N')])]),n("td",[e._v(e._s(e.$t("help.tildePhrase")))])])])]),n("p",{domProps:{innerHTML:e._s(e.$t("help.example1"))}}),n("p",{domProps:{innerHTML:e._s(e.$t("help.defaultOperator"))}}),n("p",{domProps:{innerHTML:e._s(e.$t("help.fuzzy"))}}),n("br"),n("p",{domProps:{innerHTML:e._s(e.$t("help.moreInfoSimple"))}}),n("p"),n("h2",[e._v(e._s(e.$t("help.advancedSearch")))]),n("p",{domProps:{innerHTML:e._s(e.$t("help.moreInfoAdvanced"))}})])},Yi=[],Ji={name:"HelpDialog",props:["show"]},Zi=Ji,Xi=Object(m["a"])(Zi,Ki,Yi,!1,null,"0872e493",null),eo=Xi.exports,to=r["default"].extend({components:{HelpDialog:eo,DocList:Wi,TagPicker:Mi,DateSlider:_i,SizeSlider:fi,PathTree:si,ResultsCard:ti,MimePicker:qr,Lightbox:_r,DocCardWall:hr,IndexPicker:cn,SearchBar:Wt,Preloader:Te},data:function(){return{loading:!1,uiLoading:!0,search:void 0,docs:[],docIds:new Set,docChecksums:new Set,searchBusy:!1,Sist2Query:pn,showHelp:!1}},computed:Object(s["a"])({},Object(_["c"])(["indices","optDisplay"])),mounted:function(){var e=this;this.search=mn()(function(){var t=Object(Ut["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=3;break}return t.next=3,e.clearResults();case 3:return t.next=5,e.searchNow(pn.searchQuery());case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),350,{leading:!1}),ne.getMimeTypes().then((function(t){e.$store.commit("setUiMimeMap",t)})),this.$store.dispatch("loadFromArgs",this.$route).then((function(){e.$store.subscribe((function(){return e.$store.dispatch("updateArgs",e.$router)})),e.$store.subscribe((function(t){if(["setSizeMin","setSizeMax","setDateMin","setDateMax","setSearchText","setPathText","setSortMode","setOptHighlight","setOptFragmentSize","setFuzzy","setSize","setSelectedIndices","setSelectedMimeTypes","setSelectedTags","setOptQueryMode","setOptSearchInPath"].includes(t.type)){if(e.searchBusy)return;e.search(!0)}}))})),this.getDateRange().then((function(t){e.setDateBoundsMin(t.min),e.setDateBoundsMax(t.max),ne.getSist2Info().then((function(t){e.setSist2Info(t),e.setIndices(t.indices),e.uiLoading=!1,e.search(!0)})).catch((function(){e.showErrorToast()}))}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])({setSist2Info:"setSist2Info",setIndices:"setIndices",setDateBoundsMin:"setDateBoundsMin",setDateBoundsMax:"setDateBoundsMax",setTags:"setTags"})),{},{showErrorToast:function(){this.$bvToast.toast(this.$t("toast.esConnErr"),{title:this.$t("toast.esConnErrTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"})},showSyntaxErrorToast:function(){this.$bvToast.toast(this.$t("toast.esQueryErr"),{title:this.$t("toast.esQueryErrTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-warning",bodyClass:"toast-body-warning"})},searchNow:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.searchBusy=!0,n.next=3,t.$store.dispatch("incrementQuerySequence");case 3:ne.esQuery(e).then(function(){var e=Object(Ut["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.handleSearch(n);case 2:t.searchBusy=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){500===e.response.status&&"advanced"===t.$store.state.optQueryMode?t.showSyntaxErrorToast():t.showErrorToast()}));case 4:case"end":return n.stop()}}),n)})))()},clearResults:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.docs=[],e.docIds.clear(),e.docChecksums.clear(),t.next=5,e.$store.dispatch("clearResults");case 5:e.$store.commit("setUiReachedScrollEnd",!1);case 6:case"end":return t.stop()}}),t)})))()},handleSearch:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r,i,o,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:0==e.hits.hits.length&&t.$store.commit("setUiReachedScrollEnd",!0),e.hits.hits=e.hits.hits.filter((function(e){return!t.docIds.has(e._id)})),t.$store.state.optHideDuplicates&&(e.hits.hits=e.hits.hits.filter((function(e){if(!("checksum"in e._source))return!0;var n=!t.docChecksums.has(e._source.checksum);return t.docChecksums.add(e._source.checksum),n}))),i=Object(Rt["a"])(e.hits.hits),n.prev=4,i.s();case 6:if((o=i.n()).done){n.next=15;break}if(a=o.value,!a._props.isPlayableImage&&!a._props.isPlayableVideo){n.next=13;break}return n.next=11,t.$store.dispatch("getKeySequence");case 11:a._seq=n.sent,t.$store.commit("addLightboxSource",{source:"f/".concat(a._id),thumbnail:a._props.hasThumbnail?"t/".concat(a._source.index,"/").concat(a._id):null,caption:{component:Or,props:{hit:a}},type:a._props.isVideo?"video":"image"});case 13:n.next=6;break;case 15:n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](4),i.e(n.t0);case 20:return n.prev=20,i.f(),n.finish(20);case 23:return n.next=25,t.$store.dispatch("remountLightbox");case 25:t.$store.commit("setLastQueryResult",e),(r=t.docs).push.apply(r,Object(L["a"])(e.hits.hits));case 27:case"end":return n.stop()}}),n,null,[[4,17,20,23]])})))()},getDateRange:function(){return ne.esQuery({aggs:{dateMin:{min:{field:"mtime"}},dateMax:{max:{field:"mtime"}}},size:0}).then((function(e){return{min:e.aggregations.dateMin.value,max:e.aggregations.dateMax.value}}))},appendFunc:function(){this.$store.state.uiReachedScrollEnd||!this.search||this.searchBusy||this.searchNow(pn.searchQuery())}}),beforeRouteUpdate:function(e,t,n){this.$store.state.uiLightboxIsOpen?(this.$store.commit("_setUiShowLightbox",!1),n(!1)):n()}}),no=to,ro=(n("c2e3"),Object(m["a"])(no,Bt,At,!1,null,null,null)),io=ro.exports;r["default"].use($["a"]);var oo=[{path:"/",name:"SearchPage",component:io},{path:"/stats",name:"Stats",component:ct},{path:"/config",name:"Configuration",component:Ht}],ao=new $["a"]({mode:"hash",base:"",routes:oo,scrollBehavior:function(e,t,n){}}),so=ao,co=n("a925"),uo={en:{searchBar:{simple:"Search",advanced:"Advanced search",fuzzy:"Fuzzy"},download:"Download",and:"and",page:"page",pages:"pages",mimeTypes:"Media types",tags:"Tags",help:{simpleSearch:"Simple search",advancedSearch:"Advanced search",help:"Help",term:"",and:"AND operator",or:"OR operator",not:"negates a single term",quotes:"will match the enclosed sequence of terms in that specific order",prefix:"will match any term with a given prefix when used at the end of a word",parens:"used to group expressions",tildeTerm:"match a term with a given edit distance",tildePhrase:"match a phrase with a given number of allowed intervening unmatched words",example1:'For example: "fried eggs" +(eggplant | potato) -frittata will match the phrase fried eggs and either eggplant or potato, but will ignore results containing frittata.',defaultOperator:"When neither + or | is specified, the default operator is + (and).",fuzzy:"When the Fuzzy option is checked, partial matches based on 3-grams are also returned.",moreInfoSimple:'For more information, see Elasticsearch documentation',moreInfoAdvanced:'For documentation about the advanced search mode, see Elasticsearch documentation'},config:"Configuration",configDescription:"Configuration is saved in real time for this browser.",configReset:"Reset configuration",searchOptions:"Search options",treemapOptions:"Treemap options",displayOptions:"Display options",opt:{lang:"Language",highlight:"Enable highlighting",fuzzy:"Set fuzzy search by default",searchInPath:"Enable matching query against document path",suggestPath:"Enable auto-complete in path filter bar",fragmentSize:"Highlight context size in characters",queryMode:"Search mode",displayMode:"Display",columns:"Column count",treemapType:"Treemap type",treemapTiling:"Treemap tiling",treemapColorGroupingDepth:"Treemap color grouping depth (flat)",treemapColor:"Treemap color (cascaded)",treemapSize:"Treemap size",theme:"Theme",lightboxLoadOnlyCurrent:"Do not preload full-size images for adjacent slides in image viewer.",slideDuration:"Slide duration",resultSize:"Number of results per page",tagOrOperator:"Use OR operator when specifying multiple tags.",hideDuplicates:"Hide duplicate results based on checksum",hideLegacy:"Hide the 'legacyES' Elasticsearch notice"},queryMode:{simple:"Simple",advanced:"Advanced"},lang:{en:"English",fr:"Français"},displayMode:{grid:"Grid",list:"List"},columns:{auto:"Auto"},treemapType:{cascaded:"Cascaded",flat:"Flat (compact)"},treemapSize:{small:"Small",medium:"Medium",large:"Large",xLarge:"xLarge",xxLarge:"xxLarge",custom:"Custom"},treemapTiling:{binary:"Binary",squarify:"Squarify",slice:"Slice",dice:"Dice",sliceDice:"Slice & Dice"},theme:{light:"Light",black:"Black"},hit:"hit",hits:"hits",details:"Details",stats:"Stats",queryTime:"Query time",totalSize:"Total size",pathBar:{placeholder:"Filter path",modalTitle:"Select path"},debug:"Debug information",debugDescription:"Information useful for debugging. If you encounter bugs or have suggestions for new features, please submit a new issue here.",tagline:"Tagline",toast:{esConnErrTitle:"Elasticsearch connection error",esConnErr:"sist2 web module encountered an error while connecting to Elasticsearch. See server logs for more information.",esQueryErrTitle:"Query error",esQueryErr:"Could not parse or execute query, please check the Advanced search documentation. See server logs for more information.",dupeTagTitle:"Duplicate tag",dupeTag:"This tag already exists for this document."},saveTagModalTitle:"Add tag",saveTagPlaceholder:"Tag name",confirm:"Confirm",indexPickerPlaceholder:"Select indices",sort:{relevance:"Relevance",dateAsc:"Date (Older first)",dateDesc:"Date (Newer first)",sizeAsc:"Size (Smaller first)",sizeDesc:"Size (Larger first)",random:"Random"},d3:{mimeCount:"File count distribution by media type",mimeSize:"Size distribution by media type",dateHistogram:"File modification time distribution",sizeHistogram:"File size distribution"}},fr:{searchBar:{simple:"Recherche",advanced:"Recherche avancée",fuzzy:"Approximatif"},download:"Télécharger",and:"et",page:"page",pages:"pages",mimeTypes:"Types de médias",tags:"Tags",help:{simpleSearch:"Recherche simple",advancedSearch:"Recherche avancée",help:"Aide",term:"",and:"opérator ET",or:"opérator OU",not:"exclut un terme",quotes:"recherche la séquence de termes dans cet ordre spécifique.",prefix:"lorsqu'utilisé à la fin d'un mot, recherche tous les termes avec le préfixe donné.",parens:"utilisé pour regrouper des expressions",tildeTerm:"recherche un terme avec une distance d'édition donnée",tildePhrase:"recherche une phrase avec un nombre donné de mots intermédiaires tolérés",example1:'Par exemple: "fried eggs" +(eggplant | potato) -frittata va rechercher la phrase fried eggs et soit eggplant ou potato, mais vas exlure les résultats qui contiennent frittata.',defaultOperator:"Lorsqu'aucun des opérateurs + ou | sont spécifiés, l'opérateur par défaut est + (ET).",fuzzy:"Lorsque l'option Approximatif est activée, les résultats partiels basés sur les trigrammes sont également inclus.",moreInfoSimple:'Pour plus d\'information, voir documentation Elasticsearch',moreInfoAdvanced:'Pour plus d\'information sur la recherche avancée, voir documentation Elasticsearch'},config:"Configuration",configDescription:"La configuration est enregistrée en temps réel pour ce navigateur.",configReset:"Réinitialiser la configuration",searchOptions:"Options de recherche",treemapOptions:"Options du Treemap",displayOptions:"Options d'affichage",opt:{lang:"Langue",highlight:"Activer le surlignage",fuzzy:"Activer la recherche approximative par défaut",searchInPath:"Activer la recherche dans le chemin des documents",suggestPath:"Activer l'autocomplétion dans la barre de filtre de chemin",fragmentSize:"Longueur du contexte de surlignage, en nombre de caractères",queryMode:"Mode de recherche",displayMode:"Affichage",columns:"Nombre de colonnes",treemapType:"Type de Treemap",treemapTiling:"Treemap tiling",treemapColorGroupingDepth:"Groupage de couleur du Treemap (plat)",treemapColor:"Couleur du Treemap (en cascade)",treemapSize:"Taille du Treemap",theme:"Thème",lightboxLoadOnlyCurrent:"Désactiver le chargement des diapositives adjacentes pour le visualiseur d'images",slideDuration:"Durée des diapositives",resultSize:"Nombre de résultats par page",tagOrOperator:"Utiliser l'opérateur OU lors de la spécification de plusieurs tags",hideDuplicates:"Masquer les résultats en double",hideLegacy:"Masquer la notice 'legacyES' Elasticsearch"},queryMode:{simple:"Simple",advanced:"Avancé"},lang:{en:"English",fr:"Français"},displayMode:{grid:"Grille",list:"Liste"},columns:{auto:"Auto"},treemapType:{cascaded:"En cascade",flat:"Plat (compact)"},treemapSize:{small:"Petit",medium:"Moyen",large:"Grand",xLarge:"xGrand",xxLarge:"xxGrand",custom:"Personnalisé"},treemapTiling:{binary:"Binary",squarify:"Squarify",slice:"Slice",dice:"Dice",sliceDice:"Slice & Dice"},theme:{light:"Clair",black:"Noir"},hit:"résultat",hits:"résultats",details:"Détails",stats:"Stats",queryTime:"Durée de la requête",totalSize:"Taille totale",pathBar:{placeholder:"Filtrer le chemin",modalTitle:"Sélectionner le chemin"},debug:"Information de débogage",debugDescription:"Informations utiles pour le débogage\nSi vous rencontrez des bogues ou si vous avez des suggestions pour de nouvelles fonctionnalités, veuillez soumettre un nouvel Issue ici.",tagline:"Tagline",toast:{esConnErrTitle:"Erreur de connexion Elasticsearch",esConnErr:"Le module web a rencontré une erreur lors de la connexion à Elasticsearch. Consultez les journaux du serveur pour plus d'informations..",esQueryErrTitle:"Erreur de requête",esQueryErr:"Impossible d'analyser ou d'exécuter la requête, veuillez consulter la documentation sur la recherche avancée. Voir les journaux du serveur pour plus d'informations.",dupeTagTitle:"Tag en double",dupeTag:"Ce tag existe déjà pour ce document."},saveTagModalTitle:"Ajouter un tag",saveTagPlaceholder:"Nom du tag",confirm:"Confirmer",indexPickerPlaceholder:"Sélectionner un index",sort:{relevance:"Pertinence",dateAsc:"Date (Plus ancient)",dateDesc:"Date (Plus récent)",sizeAsc:"Taille (Plus petit)",sizeDesc:"Taille (Plus grand)",random:"Aléatoire"},d3:{mimeCount:"Distribution du nombre de fichiers par type de média",mimeSize:"Distribution des tailles de fichiers par type de média",dateHistogram:"Distribution des dates de modification",sizeHistogram:"Distribution des tailles de fichier"}}};r["default"].config.productionTip=!1,r["default"].use(co["a"]),r["default"].use($["a"]);var lo=new co["a"]({locale:"en",messages:uo});new r["default"]({router:so,store:un,i18n:lo,render:function(e){return e(z)}}).$mount("#app")},"5a9f":function(e,t,n){"use strict";n("668a")},"5de8":function(e,t,n){"use strict";n("8057")},"5ee9":function(e,t,n){"use strict";n("1f35")},6417:function(e,t,n){},"658f":function(e,t,n){},"668a":function(e,t,n){},"706c":function(e,t,n){"use strict";n("fe20")},"706cd":function(e,t,n){"use strict";n("76ff")},7191:function(e,t,n){"use strict";n("658f")},7352:function(e,t,n){},"76ff":function(e,t,n){},8021:function(e,t,n){"use strict";n("bddf")},8057:function(e,t,n){},"85ec":function(e,t,n){},"8c1b":function(e,t,n){"use strict";n("fbc5")},"95ee":function(e,t,n){"use strict";n("d7f8")},a079:function(e,t,n){"use strict";n("bafa")},a5dc:function(e,t,n){},a8cc:function(e,t,n){"use strict";n("1d7e")},ac16:function(e,t,n){"use strict";n("0d24")},b23c:function(e,t,n){"use strict";n("e4ed")},b9df:function(e,t,n){"use strict";n("c69b")},bafa:function(e,t,n){},bddf:function(e,t,n){},c0c5:function(e,t,n){"use strict";n("c19a")},c19a:function(e,t,n){},c2e3:function(e,t,n){"use strict";n("c877")},c337:function(e,t,n){"use strict";n("4364")},c4ff:function(e,t,n){"use strict";n("d593")},c69b:function(e,t,n){},c877:function(e,t,n){},c919:function(e,t,n){"use strict";n("7352")},d593:function(e,t,n){},d7f8:function(e,t,n){},ddab:function(e,t,n){"use strict";n("6417")},de5d:function(e,t,n){},e478:function(e,t,n){"use strict";n("3d86")},e4ed:function(e,t,n){},f093:function(e,t,n){"use strict";n("a5dc")},f2e9:function(e,t,n){"use strict";n("2b2c")},f363:function(e,t,n){},f798:function(e,t,n){"use strict";n("f363")},f960:function(e,t,n){"use strict";n("de5d")},fbc5:function(e,t,n){},fcd2:function(e,t,n){},fe20:function(e,t,n){}}); \ No newline at end of file diff --git a/sist2-vue/src/Sist2Query.ts b/sist2-vue/src/Sist2Query.ts index 040e209..bbd6284 100644 --- a/sist2-vue/src/Sist2Query.ts +++ b/sist2-vue/src/Sist2Query.ts @@ -73,6 +73,8 @@ class Sist2Query { const selectedMimeTypes = getters.selectedMimeTypes; const selectedTags = getters.selectedTags; + const legacyES = store.state.sist2Info.esVersionLegacy; + const filters = [ {terms: {index: selectedIndexIds}} ] as any[]; @@ -187,9 +189,13 @@ class Sist2Query { "name.nGram": {}, "content.nGram": {}, font_name: {}, - }, - max_analyzed_offset: 9_999_999 + } }; + + if (!legacyES) { + q.highlight.max_analyzed_offset = 9_999_999; + } + if (getters.optSearchInPath) { q.highlight.fields["path.text"] = {}; q.highlight.fields["path.nGram"] = {}; diff --git a/sist2-vue/src/components/DebugInfo.vue b/sist2-vue/src/components/DebugInfo.vue index c85b574..9a5fa95 100644 --- a/sist2-vue/src/components/DebugInfo.vue +++ b/sist2-vue/src/components/DebugInfo.vue @@ -5,7 +5,6 @@ -
@@ -32,6 +31,9 @@ export default { {key: "esIndex", value: this.$store.state.sist2Info.esIndex}, {key: "tagline", value: this.$store.state.sist2Info.tagline}, {key: "dev", value: this.$store.state.sist2Info.dev}, + {key: "esVersion", value: this.$store.state.sist2Info.esVersion}, + {key: "esVersionSupported", value: this.$store.state.sist2Info.esVersionSupported}, + {key: "esVersionLegacy", value: this.$store.state.sist2Info.esVersionLegacy}, ] } } diff --git a/sist2-vue/src/components/NavBar.vue b/sist2-vue/src/components/NavBar.vue index 64f2243..74ed891 100644 --- a/sist2-vue/src/components/NavBar.vue +++ b/sist2-vue/src/components/NavBar.vue @@ -8,7 +8,8 @@ - v{{ sist2Version() }}-dbg + v{{ sist2Version() }}-dbg-legacyES @@ -20,6 +21,7 @@