{"version":3,"sources":["webpack:///./src/components/familyPortal/manageScholars/scholarContainer/scholarDocuments/ScholarDocuments.vue?0c37","webpack:///./src/components/familyPortal/manageScholars/scholarContainer/scholarDocuments/ScholarDocuments.ts","webpack:///./src/components/familyPortal/manageScholars/scholarContainer/scholarDocuments/ScholarDocuments.vue?9f11","webpack:///./src/components/familyPortal/manageScholars/scholarContainer/scholarDocuments/ScholarDocuments.vue?3afa","webpack:///./src/components/familyPortal/manageScholars/scholarContainer/scholarDocuments/ScholarDocuments.vue","webpack:///./src/components/familyPortal/manageScholars/scholarContainer/scholarDocuments/ScholarDocuments.less?863f"],"names":["render","_vm","this","_h","$createElement","_c","_self","isScholarDocumentsLoading","scholarNameLoading","staticClass","attrs","designColor","_v","_s","requiredCount","_l","document","index","key","class","largeFileError","isFileAdded","unsupportedFileError","getScreenText","style","percentage","name","fileName","split","_e","currentUpload","progressIndex","ref","refInFor","on","$event","clearPreviousInput","fileHandler","description","formatDate","submissionOn","currentFileName","downloadFile","isEllipsisActive","hideTooltip","isTooltip","tootltipColumnName","deleteFile","borderColor","accentColor","color","staticRenderFns","objScreenText","ScreenText","showProgress","selectedFile","disableAddFileLink","fileUploaded","documentId","isDelete","applicationGuids","selectedScholarId","currentDocument","selectNewFile","hoverText","hovering","hoverIndex","previousIndex","tooltipIndex","styleObj","tooltipText","selectedScholar","guid","segmentTrackEvent","SEGMENT_EVENTS","SCHOLAR_DOCUMENTS","viewedScholarDocuments","date","formatShortDateFullYear","text","target","offsetWidth","scrollWidth","event","files","dataTransfer","scholarDocument","supportedFileTypes","size","applicationStore","mutateScholarDocument","includes","type","intval","setInterval","clearInterval","appendDocumentToScholar","uploadDocument","formData","FormData","append","payload","scholarId","formatFullYearDate","toDate","toDateString","docId","status","isdelete","then","response","RESPONSE_200","reloadFunction","inputElement","documentDetails","value","url","window","open","DOCUMENT_DOWNLOAD","scholarDocumentId","mutateDocumentArray","getScholarData","columnName","toString","boundBox","getBoundingClientRect","coordX","left","coordY","top","isProgramDetailsByScholarLoading","isLoadingGetAddedScholarData","scholarDocuments","requiredCountNumber","commonEntry","accountDesignDetails","components","BouncingPreloader","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAIM,2BAA6BN,EAAIO,mBAAoBH,EAAG,oBAAoB,CAACI,YAAY,8BAA8BC,MAAM,CAAC,aAAe,EAAE,aAAeT,EAAIU,YAAY,cAAgB,SAASN,EAAG,MAAM,CAACI,YAAY,oBAAoB,CAACJ,EAAG,MAAM,CAACI,YAAY,mBAAmB,CAACJ,EAAG,KAAK,CAACI,YAAY,sBAAsB,CAACR,EAAIW,GAAG,IAAIX,EAAIY,GAAG,mCAAmCZ,EAAIY,GAAGZ,EAAIa,eAAeb,EAAIY,GAAG,KAAK,OAAOR,EAAG,OAAO,CAACI,YAAY,eAAe,CAACR,EAAIW,GAAGX,EAAIY,GAAG,gFAAgFR,EAAG,MAAM,CAACI,YAAY,uBAAuBR,EAAIc,GAAId,EAAmB,iBAAE,SAASe,EAASC,GAAO,OAAOZ,EAAG,MAAM,CAACa,IAAID,EAAMR,YAAY,WAAWU,MAAM,CAACH,EAASI,eAAiB,UAAY,IAAKJ,EAASK,aAAe,iBAAkBL,EAASM,sBAAwBN,EAASI,iBAAmB,wBAAwB,CAAEJ,EAAqB,aAAEX,EAAG,MAAM,CAACI,YAAY,WAAW,CAACJ,EAAG,MAAM,CAACI,YAAY,eAAeC,MAAM,CAAC,UAAU,0BAA0B,CAACT,EAAIW,GAAGX,EAAIY,GAAGZ,EAAIsB,cAAc,6BAA6BlB,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,MAAM,CAACI,YAAY,aAAae,MAAM,CAAG,MAASR,EAASS,WAAa,WAAapB,EAAG,MAAM,CAACA,EAAG,MAAM,CAACA,EAAG,KAAK,CAACI,YAAY,0BAA0B,CAACR,EAAIW,GAA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BAAqBvF,cA3C5C,sCAqDI,OAAOwC,EAAA,KAAiBlB,kBArD5B,gDAyDI,OAAOkB,EAAA,KAAiBlF,8BAzD5B,GAA8C,eAAO,SAAhC,EAAgB,QALpC,eAAU,CACTkI,WAAY,CACVC,kBAAA,iBAGiB,WCoLN,ICrMoc,I,wBCQ/cC,EAAY,eACd,EACA3I,EACAmD,GACA,EACA,KACA,WACA,MAIa,aAAAwF,E,oECnBf,yBAAyf,EAAG","file":"js/chunk-73d4cfce.41fecfaa.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isScholarDocumentsLoading || _vm.scholarNameLoading)?_c('BouncingPreloader',{staticClass:\"preloader-scholar-documents\",attrs:{\"spinnerRatio\":3,\"spinnerColor\":_vm.designColor,\"flexDirection\":'row'}}):_c('div',{staticClass:\"document-content\"},[_c('div',{staticClass:\"documents-label\"},[_c('h4',{staticClass:\"documents-required\"},[_vm._v(\" \"+_vm._s(\"Additional Required Documents (\")+_vm._s(_vm.requiredCount)+_vm._s(\")\")+\" \")]),_c('span',{staticClass:\"instruction\"},[_vm._v(_vm._s(\"Your .PDF, .JPG, .PNG, .DOC, .GIF, or .TXT file must be 5MB or smaller.\"))])]),_c('div',{staticClass:\"documents-container\"},_vm._l((_vm.scholarDocument),function(document,index){return _c('div',{key:index,staticClass:\"document\",class:[document.largeFileError ? 'grey-bg' : '', !document.isFileAdded && 'dotted-border', (document.unsupportedFileError || document.largeFileError) && 'dotted-border-error']},[(document.showProgress)?_c('div',{staticClass:\"loading\"},[_c('div',{staticClass:\"loading-text\",attrs:{\"bx-attr\":\"file-uploaded-loading\"}},[_vm._v(_vm._s(_vm.getScreenText(\"FILE_UPLOADED_LOADING\")))]),_c('div',{staticClass:\"loading-bar\"},[_c('div',{staticClass:\"percentage\",style:({ 'width': document.percentage + '%' })})])]):_c('div',[_c('div',[_c('h4',{staticClass:\"document-title address\"},[_vm._v(\" \"+_vm._s(document.document ? document.document.name : document.fileName.split(\".\")[0])),(document.isRequired)?_c('span',{staticClass:\"asterisk\"},[_vm._v(_vm._s(\"*\"))]):_vm._e(),(_vm.currentUpload && _vm.progressIndex == index)?_c('img',{staticClass:\"success-icon\",attrs:{\"src\":require(\"@/assets/images/family-portal/greentick.svg\"),\"alt\":\"success\"}}):_vm._e(),((document.unsupportedFileError || document.largeFileError))?_c('img',{staticClass:\"success-icon\",attrs:{\"src\":require(\"@/assets/images/family-portal/erroricon.svg\"),\"alt\":\"success\"}}):_vm._e()]),(document.largeFileError || document.unsupportedFileError)?_c('span',{staticClass:\"instruction\"},[_c('strong',{staticClass:\"error-document\"},[_vm._v(_vm._s(_vm.getScreenText(\"DOCUMENT_ERROR_MESSAGE_1\")))]),_c('span',{staticClass:\"error-document\"},[_vm._v(_vm._s(_vm.getScreenText(\"DOCUMENT_ERROR_MESSAGE_2\")))])]):(_vm.currentUpload && _vm.progressIndex == index)?_c('span',{staticClass:\"instruction displayBlock\"},[_c('span',{staticClass:\"green-text\"},[_vm._v(\"Success! \")]),_vm._v(\" \"+_vm._s(\"Your file was uploaded.\")+\" \"),_c('br'),_vm._v(_vm._s(\"Need to try again?\")+\" \"),_c('label',{staticClass:\"successNewFile\"},[_c('input',{ref:\"file\",refInFor:true,attrs:{\"type\":\"file\",\"id\":\"actual-btn\",\"name\":\"file\",\"hidden\":\"\"},on:{\"click\":function($event){return _vm.clearPreviousInput($event, index, document, true)},\"change\":function($event){return _vm.fileHandler($event, document, index)}}}),_vm._v(\" \"+_vm._s(\"Select a new file\")+\" \")])]):_c('span',{staticClass:\"instruction\"},[_vm._v(_vm._s(document.document ? document.document.description : \"\"))])]),(document.isFileAdded)?_c('p',{staticClass:\"uploaded-on\"},[_vm._v(\" \"+_vm._s(\"Uploaded on \")+_vm._s(_vm.formatDate(document.submissionOn)))]):_vm._e(),((document.largeFileError || document.unsupportedFileError))?_c('div',[_c('label',{staticClass:\"errorNewFile\"},[_c('input',{ref:\"file\",refInFor:true,attrs:{\"type\":\"file\",\"id\":\"actual-btn\",\"name\":\"file\",\"hidden\":\"\"},on:{\"click\":function($event){return _vm.clearPreviousInput($event, index, document, false)},\"change\":function($event){return _vm.fileHandler($event, document, index)}}}),_vm._v(\" \"+_vm._s(\"Select a new file\")+\" \"),_c('img',{attrs:{\"src\":require(\"@/assets/images/family-portal/upload-icon-grey.svg\"),\"alt\":\"upload\"}})])]):((document.isFileAdded) || (_vm.currentUpload && _vm.progressIndex == index))?_c('div',{staticClass:\"uploaded-file\"},[(document.currentFileName && _vm.progressIndex == index)?_c('label',{staticClass:\"ellipsis\",on:{\"click\":function($event){return _vm.downloadFile(document, index)},\"mouseover\":function($event){return _vm.isEllipsisActive(index, 'fileName', $event)},\"mouseout\":function($event){return _vm.hideTooltip()}}},[_vm._v(_vm._s(document.currentFileName))]):_c('label',{staticClass:\"ellipsis\",on:{\"click\":function($event){return _vm.downloadFile(document, index)},\"mouseover\":function($event){return _vm.isEllipsisActive(index, 'fileName', $event)},\"mouseout\":function($event){return _vm.hideTooltip()}}},[_vm._v(_vm._s(document.fileName))]),(_vm.isTooltip && _vm.tootltipColumnName === (index + \"fileName\"))?_c('div',{staticClass:\"tooltip-new\",style:(_vm.styleObj),attrs:{\"bx-attr\":\"tooltip-description\"}},[_vm._v(_vm._s(document.fileName || document.currentFileName))]):_vm._e(),_c('span',{staticClass:\"delete-icon\",on:{\"click\":function($event){return _vm.deleteFile(document, index)}}},[_c('img',{attrs:{\"src\":require(\"@/assets/images/family-portal/trash.svg\"),\"alt\":\"trash\"}})])]):_c('div',[_c('label',{staticClass:\"uploadFile\",style:({ borderColor: _vm.accentColor, color: _vm.accentColor })},[_c('input',{ref:\"file\",refInFor:true,attrs:{\"type\":\"file\",\"id\":\"actual-btn\",\"name\":\"file\",\"hidden\":\"\"},on:{\"click\":function($event){return _vm.clearPreviousInput($event, index, document, false)},\"change\":function($event){return _vm.fileHandler($event, document, index)}}}),_vm._v(\" \"+_vm._s(\"UPLOAD NOW\")+\" \"),_c('svg',{attrs:{\"width\":\"20\",\"height\":\"20\",\"viewBox\":\"0 0 20 20\",\"fill\":\"none\",\"xmlns\":\"http://www.w3.org/2000/svg\"}},[_c('path',{attrs:{\"d\":\"M18.8123 11.2593L18.8123 19L1.53953 19L1.53953 11.2593\",\"stroke\":_vm.accentColor,\"stroke-width\":\"1.25\",\"stroke-linecap\":\"round\"}}),_c('path',{attrs:{\"d\":\"M9.55127 14.6816C9.55127 15.0268 9.83109 15.3066 10.1763 15.3066C10.5214 15.3066 10.8013 15.0268 10.8013 14.6816L9.55127 14.6816ZM10.6182 0.421517C10.3741 0.17744 9.97841 0.17744 9.73433 0.421517L5.75685 4.39899C5.51277 4.64307 5.51277 5.0388 5.75685 5.28288C6.00093 5.52695 6.39666 5.52695 6.64074 5.28288L10.1763 1.74734L13.7118 5.28288C13.9559 5.52695 14.3516 5.52695 14.5957 5.28288C14.8398 5.0388 14.8398 4.64307 14.5957 4.39899L10.6182 0.421517ZM10.8013 14.6816L10.8013 0.863459L9.55127 0.863459L9.55127 14.6816L10.8013 14.6816Z\",\"fill\":_vm.accentColor,\"stroke\":_vm.accentColor,\"stroke-width\":\"0.2\"}})])])])])])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import API_CONST from '@/constants/ApiConst';\nimport APP_CONST from '@/constants/AppConst';\nimport { ScreenText } from '@/lang/ScreenText';\nimport AccountSettings from '@/mixins/accountSettings.mixin';\nimport { addDocument } from '@/services/create-user/userService';\nimport applicationStore from '@/store/modules/applications/applicationStore';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport { Component, Mixins } from 'vue-property-decorator';\nimport moment from 'moment';\nimport BouncingPreloader from '@/commoncomponents/bouncingpreloadercomponent/BouncingPreloaderComponent.vue';\nimport commonEntry from '@/store/modules/commonEntry';\n\n@Component({\n components: {\n BouncingPreloader\n }\n})\nexport default class ScholarDocuments extends Mixins(AccountSettings) {\n\n private objScreenText: ScreenText = new ScreenText();\n public showProgress: boolean = false;\n public progressIndex = 0;\n public percentage: any = 0;\n public selectedFile: any = '';\n public unsupportedFileError: boolean = false;\n public largeFileError: boolean = false;\n public disableAddFileLink: boolean = false;\n public fileUploaded: boolean = false;\n public documentId: string = '';\n public isDelete: boolean = false;\n public applicationGuids: any = [];\n public selectedScholarId: string = '';\n public currentDocument: any = {};\n public currentUpload: boolean = false;\n public selectNewFile: boolean = false;\n public hoverText: string = '';\n public hovering: boolean = false;\n public hoverIndex: number = -1;\n public previousIndex: number = -1;\n public isTooltip: boolean = false;\n public tooltipIndex: number = -1;\n public tootltipColumnName: string = '';\n public styleObj: any = {};\n public tooltipText: string = '';\n\n get scholarNameLoading(): boolean {\n return applicationStore.isProgramDetailsByScholarLoading || applicationStore.isLoadingGetAddedScholarData;\n }\n\n /* istanbul ignore next */\n get scholarDocument() {\n return applicationStore.scholarDocuments;\n }\n\n /* istanbul ignore next */\n get requiredCount() {\n return applicationStore.requiredCountNumber;\n }\n\n get designColor(): string {\n return commonEntry.accountDesignDetails.accentColor;\n }\n\n /* istanbul ignore next */\n public getScreenText(key: string): string {\n return this.objScreenText.getScreenText(key);\n }\n\n /* istanbul ignore next */\n get selectedScholar() {\n return applicationStore.selectedScholar;\n }\n\n get isScholarDocumentsLoading() {\n return applicationStore.isScholarDocumentsLoading;\n }\n\n mounted() {\n this.currentUpload = false;\n this.selectedScholarId = this.selectedScholar.guid;\n APP_UTILITIES.segmentTrackEvent(APP_CONST.SEGMENT_EVENTS.SCHOLAR_DOCUMENTS.viewedScholarDocuments);\n }\n\n formatDate(date: string) {\n return date && APP_UTILITIES.formatShortDateFullYear(date);\n }\n\n callHover(index: number, text: string, $event: any) {\n if ($event.target.offsetWidth < $event.target.scrollWidth) {\n this.hoverText = text;\n this.hovering = true;\n this.hoverIndex = index;\n }\n }\n\n callHoverOut() {\n this.hoverText = '';\n this.hovering = false;\n this.hoverIndex = -1;\n }\n\n fileHandler(event: any, document: any, index: number) {\n this.selectedFile = event.target.files[0] || event.dataTransfer.files[0];\n this.scholarDocument[index].currentFileName = this.selectedFile.name;\n const supportedFileTypes = ['image/gif', 'application/pdf', 'image/jpg', 'image/jpeg', 'image/png', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'text/plain', 'application/msword'];\n if (this.selectedFile.size > 5000000) {\n this.scholarDocument[index].unsupportedFileError = false;\n this.scholarDocument[index].largeFileError = true;\n applicationStore.mutateScholarDocument(this.scholarDocument);\n }\n else if (!(supportedFileTypes.includes(this.selectedFile.type))) {\n this.scholarDocument[index].largeFileError = false;\n this.scholarDocument[index].unsupportedFileError = true;\n applicationStore.mutateScholarDocument(this.scholarDocument);\n }\n else {\n this.scholarDocument[index].largeFileError = false;\n this.scholarDocument[index].unsupportedFileError = false;\n this.scholarDocument[index].disableAddFileLink = true;\n this.scholarDocument[index].showProgress = true;\n this.scholarDocument[index].percentage = 0;\n var intval = setInterval(() => {\n if (this.scholarDocument[index].percentage < 98) {\n this.scholarDocument[index].percentage += .6;\n applicationStore.mutateScholarDocument(this.scholarDocument);\n }\n else {\n clearInterval(intval);\n }\n }, 10);\n if (this.selectNewFile) {\n this.deleteFile(this.scholarDocument[index], index);\n }\n else {\n this.appendDocumentToScholar(this.selectedFile, index);\n }\n\n APP_UTILITIES.segmentTrackEvent(APP_CONST.SEGMENT_EVENTS.SCHOLAR_DOCUMENTS.uploadDocument);\n }\n applicationStore.mutateScholarDocument(this.scholarDocument);\n }\n\n async appendDocumentToScholar(selectedFile: any, index: number) {\n const formData = new FormData();\n formData.append('file', selectedFile);\n const payload: any = {\n scholarId: this.selectedScholarId,\n submissionOn: APP_UTILITIES.formatFullYearDate(moment().toDate().toDateString()),\n docId: this.documentId,\n status: 1,\n isdelete: 'false'\n };\n await addDocument(payload, formData).then((response: any) => {\n if (response.status === APP_CONST.RESPONSE_200) {\n this.progressIndex = index;\n this.currentUpload = true;\n this.scholarDocument[index].percentage = 100;\n this.scholarDocument[index].showProgress = false;\n this.scholarDocument[index].isFileAdded = true;\n this.scholarDocument[index].fileName = this.scholarDocument[index].currentFileName;\n this.fileUploaded = true;\n this.selectedFile = '';\n applicationStore.mutateScholarDocument(this.scholarDocument);\n this.reloadFunction();\n }\n });\n }\n\n clearPreviousInput(inputElement: any, index: number, documentDetails: any, selectNewFile: boolean) {\n this.selectNewFile = selectNewFile;\n this.currentUpload = false;\n this.previousIndex = index;\n this.scholarDocument[this.previousIndex].largeFileError = false;\n this.scholarDocument[this.previousIndex].unsupportedFileError = false;\n this.documentId = documentDetails.documentId;\n this.currentDocument = documentDetails;\n inputElement.target.value = '';\n }\n\n downloadFile(document: any, index: number) {\n if (document.url) {\n window.open(document.url, '_blank');\n }\n else {\n const url = process.env.VUE_APP_BASE_DOWNLOAD_FILE_URL + API_CONST.DOCUMENT_DOWNLOAD + this.selectedScholarId + '/' + this.documentId + '/' + this.scholarDocument[index].currentFileName;\n window.open(url, '_blank');\n this.currentUpload = false;\n }\n }\n\n async deleteFile(document: any, index: number) {\n const payload: any = {\n scholarId: this.selectedScholarId,\n docId: document.documentId,\n scholarDocumentId: document.scholarDocumentId,\n status: 1,\n isdelete: 'true'\n };\n applicationStore.mutateScholarDocument(this.scholarDocument);\n await addDocument(payload).then((response: any) => {\n if (response.status === APP_CONST.RESPONSE_200) {\n this.currentUpload = false;\n this.progressIndex = -1;\n this.scholarDocument[index].percentage = 100;\n this.scholarDocument[index].showProgress = false;\n this.fileUploaded = true;\n if (!this.selectNewFile) {\n this.reloadFunction();\n }\n else {\n this.appendDocumentToScholar(this.selectedFile, index);\n }\n }\n });\n }\n\n reloadFunction() {\n this.selectNewFile = false;\n applicationStore.mutateDocumentArray([]);\n applicationStore.getScholarData(this.selectedScholarId);\n }\n\n isEllipsisActive(index: number, columnName: string, event: any) {\n const target = event.target;\n if (target.offsetWidth < target.scrollWidth) {\n this.isTooltip = true;\n this.tooltipIndex = index;\n this.tootltipColumnName = `${index.toString()}${columnName}`;\n const boundBox = event && event.target && event.target.getBoundingClientRect();\n const coordX = boundBox.left;\n const coordY = boundBox.top;\n this.styleObj = {\n top: (coordY + 30).toString() + 'px',\n left: (coordX).toString() + 'px'\n };\n }\n }\n\n hideTooltip() {\n this.tooltipIndex = -1;\n this.tooltipText = '';\n this.tootltipColumnName = '';\n this.isTooltip = false;\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\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\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\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\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\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\n\n\n\n\n\n\nimport ScholarDocuments from './ScholarDocuments';\nexport default ScholarDocuments;\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!./ScholarDocuments.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!./ScholarDocuments.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ScholarDocuments.vue?vue&type=template&id=7e09fc39&scoped=true&\"\nimport script from \"./ScholarDocuments.vue?vue&type=script&lang=ts&\"\nexport * from \"./ScholarDocuments.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ScholarDocuments.less?vue&type=style&index=0&id=7e09fc39&lang=less&scoped=true&\"\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 \"7e09fc39\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./ScholarDocuments.less?vue&type=style&index=0&id=7e09fc39&lang=less&scoped=true&\"; export default mod; export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./ScholarDocuments.less?vue&type=style&index=0&id=7e09fc39&lang=less&scoped=true&\""],"sourceRoot":""}