{"version":3,"sources":["webpack:///./src/components/familyPortal/manageScholars/scholarContainer/scholarDocuments/ScholarDocuments.vue?ea64","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?b6ae"],"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","width","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,CACvyBH,EAASI,eAAiB,UAAY,IACrCJ,EAASK,aAAe,iBACxBL,EAASM,sBAAwBN,EAASI,iBAAmB,wBAC7D,CAAEJ,EAAqB,aAAEX,EAAG,MAAM,CAACI,YAAY,WAAW,CAACJ,EAAG,MAAM,CAACI,YAAY,eAAeC,MAAM,CAAC,UAAU,0BAA0B,CAACT,EAAIW,GAAG,IAAIX,EAAIY,GAAGZ,EAAIsB,cAAc,0BAA0B,OAAOlB,EAAG,MAAM,CAACI,YAAY,eAAe,CAACJ,EAAG,MAAM,CAACI,YAAY,aAAae,MAAM,CAAGC,MAAOT,EAASU,WAAa,WAAarB,EAAG,MAAM,CAACA,EAAG,MAAM,CAACA,EAAG,KAAK,CAACI,YAAY,0BAA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AAqBvF,cA7C5C,sCAuDI,OAAOwC,EAAA,KAAiBlB,kBAvD5B,gDA2DI,OAAOkB,EAAA,KAAiBnF,8BA3D5B,GAA8C,eAAO,SAAhC,EAAgB,QALpC,eAAU,CACTmI,WAAY,CACVC,kBAAA,iBAGiB,WCkKN,ICnLoc,I,wBCQ/cC,EAAY,eACd,EACA5I,EACAoD,GACA,EACA,KACA,WACA,MAIa,aAAAwF,E,6CCnBf,yBAAyf,EAAG,G","file":"js/chunk-116f73ca.997db24f.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:[\n document.largeFileError ? 'grey-bg' : '',\n !document.isFileAdded && 'dotted-border',\n (document.unsupportedFileError || document.largeFileError) && 'dotted-border-error'\n ]},[(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 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 (\n applicationStore.isProgramDetailsByScholarLoading ||\n applicationStore.isLoadingGetAddedScholarData\n )\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(\n APP_CONST.SEGMENT_EVENTS.SCHOLAR_DOCUMENTS.viewedScholarDocuments\n )\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 = [\n 'image/gif',\n 'application/pdf',\n 'image/jpg',\n 'image/jpeg',\n 'image/png',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'text/plain',\n 'application/msword'\n ]\n if (this.selectedFile.size > 5000000) {\n this.scholarDocument[index].unsupportedFileError = false\n this.scholarDocument[index].largeFileError = true\n applicationStore.mutateScholarDocument(this.scholarDocument)\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 } 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 const intval = setInterval(() => {\n if (this.scholarDocument[index].percentage < 98) {\n this.scholarDocument[index].percentage += 0.6\n applicationStore.mutateScholarDocument(this.scholarDocument)\n } else {\n clearInterval(intval)\n }\n }, 10)\n if (this.selectNewFile) {\n this.deleteFile(this.scholarDocument[index], index)\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(\n inputElement: any,\n index: number,\n documentDetails: any,\n selectNewFile: boolean\n ) {\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 } else {\n const url =\n process.env.VUE_APP_BASE_DOWNLOAD_FILE_URL +\n API_CONST.DOCUMENT_DOWNLOAD +\n this.selectedScholarId +\n '/' +\n this.documentId +\n '/' +\n 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 } 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\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=a81ab250&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=a81ab250&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 \"a81ab250\",\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=a81ab250&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=a81ab250&lang=less&scoped=true&\""],"sourceRoot":""}