{"version":3,"sources":["webpack:///./src/components/Folder.vue?397e","webpack:///./src/views/MediaIndex.vue?2370","webpack:///./src/components/ProgressBar.vue?6d36","webpack:///./src/components/ProgressBar.vue","webpack:///./src/components/ProgressBar.vue?b5d7","webpack:///./src/components/ProgressBar.vue?ff11","webpack:///./src/views/MediaIndex.vue","webpack:///./src/views/MediaIndex.vue?8d45","webpack:///./src/views/MediaIndex.vue?5b4c","webpack:///./src/views/MediaFolder.vue?80c5","webpack:///./src/components/Folder.vue?6532","webpack:///./src/components/Folder.vue","webpack:///./src/components/Folder.vue?5e42","webpack:///./src/components/Folder.vue?7abf","webpack:///./src/views/MediaFolder.vue","webpack:///./src/views/MediaFolder.vue?78a5","webpack:///./src/views/MediaFolder.vue?d519","webpack:///./src/components/MediaForm.vue?55eb","webpack:///./src/views/MediaIndex.vue?217e","webpack:///./src/components/MediaForm.vue?b45b","webpack:///./src/components/MediaForm.vue","webpack:///./src/components/MediaForm.vue?cd25","webpack:///./src/components/MediaForm.vue?323b"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","paginating","toolbar","scopedSlots","_u","key","fn","staticClass","filter","on","onFilterChanged","staticStyle","loading","model","value","callback","$$v","search","expression","$vuetify","breakpoint","parseInt","storageLimit","storageUsed","xsOnly","progressText","_e","class","smAndUp","tools","proxy","searched","media","length","ref","folders","folderTile","mediaListPlaceholder","mediaTile","staticRenderFns","style","color","width","height","barSize","innerHeight","_v","_s","text","Vue","extend","props","type","String","default","denominator","Number","required","numerator","computed","component","mixins","mediaMixin","components","ProgressBar","data","filtered","filterResults","img","content","searchResults","searchtext","title","left","icon","back","tooltip","permission","mounted","$store","getters","mediaViewMedia","dispatch","mapGetters","defaultParams","scrollPositionLeft","mediaParams","get","mediaViewMediaParams","set","val","commit","used","$options","filters","fileSize","limit","debounce","mediaSearch","$colors","mdPurple","dark","small","goToMediaUpload","methods","folderIcon","listIcon","IListIconType","leftIcon","leftHeader","line1","folder","toProperCase","goToFolder","$router","push","payload","results","params","isSame","otherKey","page","paginateCurrentList","current","mediaViewMediaCurrentPage","lastPage","mediaViewMediaLastPage","nextPage","shouldPaginate","watch","position","bottom","VCol","VRow","VTextField","getter","selector","folderMedia","mutation","folderName","applyFilter","medias","applySort","images","m","includes","pdfs","x","sort","sorter","asc","y","window","getDate","updated_at","desc","large","size","_","cloneDeep","isEqual","isDefault","Folder","validFileTypes","toString","onFilesChanged","onDropHandler","LoadingMask","person","Object","event","target","filesChange","files","onDrop","reset","$refs","mediaUploadForm","VContainer"],"mappings":"+GAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,OAASN,EAAIO,WAAW,QAAUP,EAAIQ,SAASC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,WAAWC,GAAG,WAAW,MAAO,CAACR,EAAG,QAAQ,CAACS,YAAY,iBAAiBP,MAAM,CAAC,aAAa,KAAK,CAACF,EAAG,QAAQ,CAACS,YAAY,QAAQ,CAACT,EAAG,uBAAuB,CAACE,MAAM,CAAC,OAASN,EAAIc,OAAO,QAAU,GAAG,SAAW,QAAQ,MAAQ,SAASC,GAAG,CAAC,cAAgBf,EAAIgB,oBAAoB,GAAGZ,EAAG,QAAQ,CAACS,YAAY,QAAQ,CAACT,EAAG,eAAe,CAACS,YAAY,UAAUI,YAAY,CAAC,YAAY,QAAQ,YAAY,SAASX,MAAM,CAAC,UAAY,GAAG,eAAe,GAAG,MAAQ,GAAG,SAAW,GAAG,YAAc,kBAAkB,QAAUN,EAAIkB,SAASC,MAAM,CAACC,MAAOpB,EAAU,OAAEqB,SAAS,SAAUC,GAAMtB,EAAIuB,OAAOD,GAAKE,WAAW,aAAa,GAAIxB,EAAIyB,SAASC,WAAkB,QAAEtB,EAAG,QAAQ,CAACS,YAAY,QAAQ,CAACT,EAAG,eAAe,CAACE,MAAM,CAAC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":"js/media-index.4efe48b6.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Folder.vue?vue&type=style&index=0&id=2800ecde&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('page-template',{attrs:{\"loader\":_vm.paginating,\"toolbar\":_vm.toolbar},scopedSlots:_vm._u([{key:\"left-top\",fn:function(){return [_c('v-row',{staticClass:\"pt-3 pr-1 pb-1\",attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"pa-0\"},[_c('i-list-filter-select',{attrs:{\"filter\":_vm.filter,\"compact\":\"\",\"minWidth\":\"150px\",\"width\":\"150px\"},on:{\"filterChanged\":_vm.onFilterChanged}})],1),_c('v-col',{staticClass:\"pa-0\"},[_c('v-text-field',{staticClass:\"compact\",staticStyle:{\"min-width\":\"150px\",\"max-width\":\"400px\"},attrs:{\"clearable\":\"\",\"hide-details\":\"\",\"dense\":\"\",\"outlined\":\"\",\"placeholder\":\"Search media...\",\"loading\":_vm.loading},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),(_vm.$vuetify.breakpoint.smAndUp)?_c('v-col',{staticClass:\"pa-0\"},[_c('progress-bar',{attrs:{\"denominator\":parseInt(_vm.storageLimit),\"numerator\":parseInt(_vm.storageUsed),\"width\":_vm.$vuetify.breakpoint.xsOnly ? '100px' : '250px',\"text\":_vm.progressText}})],1):_vm._e(),_c('v-col',{staticClass:\"pa-0\",class:_vm.$vuetify.breakpoint.smAndUp ? 'mr-2' : '',attrs:{\"align\":\"end\"}},[_c('tri-panel-tools',{attrs:{\"buttons\":_vm.tools,\"justify\":\"end\"}})],1)],1)]},proxy:true}])},[(!_vm.searched && _vm.media.length)?_c('i-list',{ref:\"foldersList\",attrs:{\"id\":\"mediaViewFolders\",\"color\":\"primary\",\"items\":_vm.folders,\"tile\":_vm.folderTile()}}):_vm._e(),_c('i-list',{ref:\"mediaList\",attrs:{\"id\":\"mediaViewMedia\",\"color\":\"primary\",\"items\":_vm.media,\"placeholder\":_vm.mediaListPlaceholder,\"tile\":_vm.mediaTile()}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"display\":\"flex\",\"flex-direction\":\"column\",\"justify-content\":\"center\",\"align-items\":\"center\"}},[_c('div',{staticStyle:{\"display\":\"flex\"},style:((\"border: 1px solid \" + _vm.color + \"; width:\" + _vm.width + \"; height:\" + _vm.height))},[_c('div',{style:((\"width: \" + _vm.barSize + \"%; background-color:\" + _vm.color + \"; height:\" + _vm.innerHeight))})]),(_vm.text)?_c('div',{staticStyle:{\"font-size\":\"12px\"},style:((\"color: \" + _vm.color))},[_vm._v(_vm._s(_vm.text)+\" \")]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue'\nexport default Vue.extend({\n props: {\n color: {\n type: String,\n default: '#6142B0'\n },\n denominator: {\n type: Number,\n required: true\n },\n height: {\n type: [Number, String],\n default: '18px'\n },\n innerHeight: {\n type: [Number, String],\n default: '16px'\n },\n numerator: {\n type: Number,\n required: true\n },\n text: {\n type: String,\n default: null\n },\n width: {\n type: [Number, String],\n default: '250px'\n }\n },\n computed: {\n barSize(): number {\n return (this.numerator / this.denominator) * 100\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProgressBar.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProgressBar.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProgressBar.vue?vue&type=template&id=4163d672&\"\nimport script from \"./ProgressBar.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProgressBar.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue'\nimport { debounce } from 'debounce'\nimport { mapGetters } from 'vuex'\nimport mediaMixin from '@/mixins/media-mixin'\nimport Button from '@/types/components/Button.interface'\nimport IListIcon, { IListIconType } from '@/types/components/IListIcon.interface'\nimport IListTile from '@/types/components/IListTile.interface'\nimport { MediaFilterParams } from '@/types/FilterParams.interface'\nimport Media from '@/types/Media.interface'\nimport ProgressBar from '@/components/ProgressBar.vue'\nimport ScrollPosition from '@/types/components/ScrollPosition.interface'\nexport default Vue.extend({\n mixins: [mediaMixin],\n components: { ProgressBar },\n data() {\n return {\n // Determines if we are showing the filter list or not\n filtered: false,\n // Our temporary groups list\n filterResults: null,\n // A loader for searching\n loading: false,\n // Our placeholder for our media list\n mediaListPlaceholder: {\n img: 'noDocuments',\n content: 'No Files to Display'\n },\n // Determines if we are showing the search results list or not\n searched: false,\n // Our temporary groups list\n searchResults: null,\n // Our container for our search text\n searchtext: '',\n // Our toolbar displayed at the top\n toolbar: {\n title: 'Media',\n left: [\n {\n title: 'Back',\n icon: 'mdi-chevron-left',\n back: '/home',\n tooltip: 'Back',\n permission: 0\n }\n ]\n }\n }\n },\n mounted() {\n // Grab our store media\n const media = this.$store.getters.mediaViewMedia\n\n // If we don't have media, then paginate\n if (!media || !media.length) this.$store.dispatch('mediaViewMediaPaginate')\n },\n computed: {\n ...mapGetters({\n defaultParams: 'mediaViewMediaDefaultParams',\n folders: 'mediaViewFolders',\n paginating: 'mediaViewMediaPaginating',\n scrollPositionLeft: 'scrollPositionLeft'\n }),\n media(): Media[] {\n // If we have filtered, then display our filtered list\n if (this.filtered) return this.filterResults\n // If we are searching then display our temporary list\n else if (this.searched) return this.searchResults\n // Else, just display the mediaViewMedia\n return this.$store.getters.mediaViewMedia\n },\n mediaParams: {\n get(): MediaFilterParams {\n return this.$store.getters.mediaViewMediaParams\n },\n set(val: MediaFilterParams): void {\n this.$store.commit('mediaViewMediaParamsSet', val)\n }\n },\n progressText(): string {\n // Get our storage used\n const used = this.$options.filters.fileSize(this.storageUsed)\n\n // Get our storage limit\n const limit = this.$options.filters.fileSize(this.storageLimit)\n\n return `Media storage: ${used} / ${limit}`\n },\n search: {\n get(): string {\n return this.searchtext\n },\n set: debounce(function (val: string): void {\n // Set the searchtext state\n this.searchtext = val\n this.mediaSearch()\n }, 750)\n },\n tools(): Button[] {\n return [\n {\n text: 'New File',\n icon: 'mdi-plus',\n color: this.$colors.mdPurple,\n dark: true,\n small: true,\n callback: () => this.goToMediaUpload()\n }\n ]\n }\n },\n methods: {\n folderIcon(): IListIcon {\n // Our icon is always a folder\n const icon = 'mdi-folder'\n\n // Create our list icon\n const listIcon: IListIcon = {\n type: IListIconType.icon,\n content: icon,\n color: 'primary'\n }\n\n // Return our list icon\n return listIcon\n },\n folderTile(): IListTile {\n return {\n leftIcon: (): IListIcon => this.folderIcon(),\n leftHeader: 'Folder',\n line1: (folder: string): string => folder.toProperCase(),\n callback: (folder: string): void => this.goToFolder(folder)\n }\n },\n goToFolder(folder: string): void {\n // Go to the media folder\n this.$router.push(`/media/folder/${folder}`)\n },\n async mediaSearch(): Promise {\n // If search text is null then reset\n if (!this.searchtext) {\n // Set to false so we display regular list\n this.searched = false\n // Set to null to get rid of our previous list of media\n return (this.searchResults = null)\n }\n\n // Else, hit up the API to search\n const text = this.searchtext\n\n // Create our payload\n const payload = {\n searchtext: text,\n filter: this.mediaParams.filter\n }\n\n // Start a loader\n this.loading = true\n\n // Get our search results\n const results = await this.$store.dispatch('mediaSearch', payload)\n\n // Stop our loader\n this.loading = false\n\n // Set our search results\n this.searchResults = results || []\n\n // Regardless of result, we searched so display the list\n this.searched = true\n },\n onFilterChanged(filter: MediaFilterParams): void {\n // Grab the key and value from our filter\n const key = filter.key\n const val = filter.value\n\n // Get our current media params\n const params = this.mediaParams\n\n // Check if we currently have this filter applied\n const isSame = params[key] === val\n\n // If it is the same, do nothing\n if (isSame) return\n\n // Our \"otherKey\" is \"filter\" if we are sorting, \"sort\" if we are filtering\n const otherKey = key === 'filter' ? 'sort' : 'filter'\n\n // If our other key exists, set it to null\n if (params[otherKey]) params[otherKey] = null\n\n // Else, apply this filter to our params\n params[key] = val\n\n // Set page to 1 since we changed filters\n params.page = 1\n\n // Set our params (we have a computed setter to update Vuex Store)\n this.mediaParams = params\n\n // We changed our filter so lets paginate again\n this.$store.dispatch('mediaViewMediaPaginate')\n },\n paginateCurrentList(): void {\n // Grab our current page\n const current = this.$store.getters.mediaViewMediaCurrentPage\n\n // Grab the last page\n const lastPage = this.$store.getters.mediaViewMediaLastPage\n\n // Determine the next page\n const nextPage = current + 1\n\n // Determine is the page exists, or we're already at the end of pagination\n const shouldPaginate = nextPage <= lastPage\n\n // If we should NOT paginate, do nothing\n if (!shouldPaginate) return\n\n // Paginate the next page\n this.$store.dispatch('mediaViewMediaPaginate', nextPage)\n }\n },\n watch: {\n scrollPositionLeft(position: ScrollPosition): void {\n // If we are NOT paginating AND scroll is at bottom, paginate next page\n if (!this.paginating && position.bottom) this.paginateCurrentList()\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaIndex.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaIndex.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MediaIndex.vue?vue&type=template&id=86d74d2e&scoped=true&\"\nimport script from \"./MediaIndex.vue?vue&type=script&lang=ts&\"\nexport * from \"./MediaIndex.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MediaIndex.vue?vue&type=style&index=0&id=86d74d2e&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"86d74d2e\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VCol,VRow,VTextField})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('folder',{attrs:{\"folder\":_vm.folder}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('page-template',{attrs:{\"toolbar\":_vm.toolbar},scopedSlots:_vm._u([{key:\"left-top\",fn:function(){return [_c('v-row',{class:_vm.$vuetify.breakpoint.xsOnly ? 'pa-1' : 'pa-3',attrs:{\"no-gutters\":\"\",\"align\":\"center\",\"justify\":\"start\"}},[_c('i-list-filter-select',{attrs:{\"filter\":_vm.filter,\"compact\":\"\",\"width\":\"165px\"},on:{\"filterChanged\":_vm.onFilterChanged}}),_c('v-col',{staticClass:\"pa-0\"},[_c('v-text-field',{staticClass:\"compact\",staticStyle:{\"min-width\":\"150px\",\"max-width\":\"400px\"},attrs:{\"clearable\":\"\",\"hide-details\":\"\",\"dense\":\"\",\"outlined\":\"\",\"placeholder\":\"Search media...\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1)],1)]},proxy:true}])},[_c('i-list',{ref:\"mediaList\",attrs:{\"id\":\"mediaViewFolderMedia\",\"color\":\"primary\",\"items\":_vm.media,\"placeholder\":_vm.mediaListPlaceholder,\"tile\":_vm.mediaTile()}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue, { PropType } from 'vue'\nimport { debounce } from 'debounce'\nimport mediaMixin from '@/mixins/media-mixin'\nimport { MediaFilterParams } from '@/types/FilterParams.interface'\nimport Media, { MediaFolder } from '@/types/Media.interface'\nexport default Vue.extend({\n mixins: [mediaMixin],\n props: {\n folder: {\n type: String as PropType,\n required: true\n }\n },\n data() {\n return {\n // Determines if we are showing the filter list or not\n filtered: false,\n // Our temporary groups list\n filterResults: null,\n // Our placeholder for our media list\n mediaListPlaceholder: {\n img: 'noDocuments',\n content: 'No Files to Display'\n },\n // Determines if we are showing the search results list or not\n searched: false,\n // Our temporary groups list\n searchResults: null,\n // Our container for our search text\n searchtext: '',\n toolbar: {\n title: `${this.folder.toProperCase()} (Folder)`,\n left: [\n {\n title: 'Back',\n icon: 'mdi-chevron-left',\n back: '/media',\n tooltip: 'Back',\n permission: 0\n }\n ]\n }\n }\n },\n computed: {\n defaultParams(): string {\n // Our getter is the selector + DefaultParams\n const getter = this.selector + 'DefaultParams'\n\n // Return our getter from the store\n return this.$store.getters[getter]\n },\n folderMedia(): Media[] {\n // Return based on selector\n return this.$store.getters[this.selector]\n },\n media(): Media[] {\n // If we have filtered, then display our filtered list\n if (this.filtered) return this.filterResults\n // If we are searching then display our temporary list\n else if (this.searched) return this.searchResults\n // Return our media based on the selector\n return this.folderMedia\n },\n mediaParams: {\n get(): MediaFilterParams {\n // Our getter is our selector + Params\n const getter = this.selector + 'Params'\n\n // Return params based on selector\n return this.$store.getters[getter]\n },\n set(val: MediaFilterParams): void {\n // Our mutation is our selector + ParamsSet\n const mutation = this.selector + 'ParamsSet'\n\n // Commit the mutation\n this.$store.commit(mutation, val)\n }\n },\n search: {\n get(): string {\n return this.searchtext\n },\n set: debounce(function (val: string): void {\n // Set the searchtext state\n this.searchtext = val\n this.mediaSearch()\n }, 750)\n },\n selector(): string {\n // Convert folder name to proper case\n const folderName = this.folder.toProperCase()\n\n // Create our selector\n const selector = `mediaViewMedia${folderName}`\n\n // Return our selector\n return selector\n }\n },\n methods: {\n // Applies our filter to our current list of media\n applyFilter(params: MediaFilterParams): Media[] {\n // Grab our current list of media\n const medias = this.folderMedia\n\n // Grab the value from our params\n const val = params.value\n\n // Grab the key from our params\n const key = params.key\n\n // If we are using a sort key, then just sort and return\n if (key === 'sort') return this.applySort(val)\n\n // Else, get our filter from the params\n const filter = {\n images: (m: Media) => m.type.includes('image'),\n pdfs: (m: Media) => m.type.includes('pdf')\n }\n\n // Apply our filter\n const filtered = medias.filter((x: Media) => filter[val](x))\n\n // Return our filtered list\n return filtered\n },\n // Applies a sorting to our array of media without mutating\n applySort(sort: string): Media[] {\n // Create our sorting map\n const sorter = {\n asc: (x: Media, y: Media) =>\n +window.getDate(x.updated_at) - +window.getDate(y.updated_at),\n desc: (x: Media, y: Media) =>\n +window.getDate(y.updated_at) - +window.getDate(x.updated_at),\n large: (x: Media, y: Media) => y.size - x.size,\n small: (x: Media, y: Media) => x.size - y.size\n }\n\n // Clone our media\n const medias = window._.cloneDeep(this.folderMedia)\n\n // Sort this media and return\n return medias.sort((x: Media, y: Media) => sorter[sort](x, y))\n },\n // Search inline on our media to see if any have query in name\n mediaSearch(): void {\n // If search text is null then reset\n if (!this.searchtext) {\n // Set to false so we display regular list\n this.searched = false\n // Set to null to get rid of our previous list of media\n return (this.searchResults = null)\n }\n\n // Else, hit up the API to search\n const text = this.searchtext\n\n // Grab our media\n const media = this.folderMedia\n\n // Get our search results\n const results = media.search(text, ['name'])\n\n // Set our search results\n this.searchResults = results || []\n\n // Regardless of result, we searched so display the list\n this.searched = true\n },\n // Occurs when the filter is applied\n onFilterChanged(params: MediaFilterParams): void {\n // Check if the applied filter is the same as current filter\n const isSame = window._.isEqual(this.mediaParams, params)\n\n // If the filter is the same then do nothing\n if (isSame) return\n\n // Else, update our store params\n this.mediaParams = params\n\n // Check if the applied filter is the default\n const isDefault = window._.isEqual(this.defaultParams, params)\n\n // If it is default, then clear our filtered and list\n if (isDefault) {\n this.filtered = false\n this.filterResults = null\n return\n }\n\n // We don't paginate media so we just need to filter our actual list\n const filtered = this.applyFilter(params)\n\n // Set our temporary list\n this.filterResults = filtered\n\n // Set filtered to true to display our new list\n this.filtered = true\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Folder.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Folder.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Folder.vue?vue&type=template&id=2800ecde&scoped=true&\"\nimport script from \"./Folder.vue?vue&type=script&lang=ts&\"\nexport * from \"./Folder.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Folder.vue?vue&type=style&index=0&id=2800ecde&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2800ecde\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VCol,VRow,VTextField})\n","\n\n\n\nimport Vue from 'vue'\nimport Folder from '@/components/Folder.vue'\nexport default Vue.extend({\n components: { Folder },\n props: ['folder']\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaFolder.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaFolder.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MediaFolder.vue?vue&type=template&id=d41515e0&\"\nimport script from \"./MediaFolder.vue?vue&type=script&lang=ts&\"\nexport * from \"./MediaFolder.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaForm.vue?vue&type=style&index=0&lang=scss&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaIndex.vue?vue&type=style&index=0&id=86d74d2e&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\",\"pa-0\":\"\"}},[_c('form',{ref:\"mediaUploadForm\",staticStyle:{\"padding\":\"30px !important\"},attrs:{\"novalidate\":\"\",\"enctype\":\"multipart/form-data\"}},[(_vm.loading)?_c('loading-mask',{staticStyle:{\"height\":\"200px\"}}):_c('v-col',{staticClass:\"dropbox\"},[_c('input',{staticClass:\"input-file\",attrs:{\"multiple\":\"\",\"name\":\"upload-file\",\"type\":\"file\",\"disabled\":_vm.loading,\"accept\":_vm.validFileTypes.toString()},on:{\"change\":_vm.onFilesChanged,\"onDrop\":_vm.onDropHandler}}),_c('p',[_vm._v(\" Drag your file(s) here\"),_c('br'),_vm._v(\" or click to browse \")])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue, { PropType } from 'vue'\nimport mediaMixin from '@/mixins/media-mixin'\nimport { MediaFolder } from '@/types/Media.interface'\nimport Person from '@/types/Person.interface'\nimport LoadingMask from '@/components/LoadingMask.vue'\nexport default Vue.extend({\n mixins: [mediaMixin],\n components: { LoadingMask },\n props: {\n folder: {\n type: String as PropType,\n default: null\n },\n person: {\n type: Object as PropType,\n default: null\n }\n },\n data: () => ({\n loading: false\n }),\n methods: {\n async onFilesChanged(event: Event) {\n // Start the loader\n this.loading = true\n\n // Cast the target to an HTMLInputElement\n const target = event.target as HTMLInputElement\n\n // Upload the files\n await this.filesChange(target.files)\n\n // Stop the loader\n this.loading = false\n },\n async onDropHandler(event: DragEvent): Promise {\n // Start the loader\n this.loading = true\n\n // Upload the files\n await this.onDrop(event)\n\n // Stop the loader\n this.loading = false\n },\n reset(): void {\n this.$refs.mediaUploadForm.reset()\n }\n }\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MediaForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MediaForm.vue?vue&type=template&id=574203ba&\"\nimport script from \"./MediaForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./MediaForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MediaForm.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VContainer})\n"],"sourceRoot":""}