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,IAAI,CAAC;QACd,CAAC;;;OAAA;IACH,+BAAC;AAAD,CA1HA,AA0HC,CA1HqD,uCAAqB,GA0H1E","file":"webparts/angularFileUpload/AngularFileUploadWebPart.js","sourcesContent":["import { Version } from '@microsoft/sp-core-library';\r\nimport {\r\n BaseClientSideWebPart,\r\n IPropertyPaneConfiguration,\r\n PropertyPaneTextField,\r\n IWebPartContext\r\n} from '@microsoft/sp-webpart-base';\r\n\r\nimport { escape } from '@microsoft/sp-lodash-subset';\r\nimport { SPComponentLoader } from '@microsoft/sp-loader';\r\nimport styles from './AngularFileUpload.module.scss';\r\nimport * as strings from 'angularFileUploadStrings';\r\nimport { IAngularFileUploadWebPartProps } from './IAngularFileUploadWebPartProps';\r\n\r\nimport * as angular from 'angular';\r\nimport 'ng-office-ui-fabric';\r\nimport { BaseService } from './app/services/baseSvc';\r\nimport { FileUploadService } from './app/services/fileUploadSvc';\r\nimport { FileUploadCtrl } from './app/controllers/fileUploadCtrl';\r\nimport { CustomFileChange } from './app/directives/customFileChange';\r\nimport { IsoToDateString } from './app/filters/isoToDateString';\r\n\r\nexport default class AngularFileUploadWebPart extends BaseClientSideWebPart<IAngularFileUploadWebPartProps> {\r\n public context: IWebPartContext;\r\n private $injector: ng.auto.IInjectorService;\r\n public constructor(context: IWebPartContext) {\r\n super();\r\n SPComponentLoader.loadCss('https://appsforoffice.microsoft.com/fabric/2.6.1/fabric.min.css');\r\n SPComponentLoader.loadCss('https://appsforoffice.microsoft.com/fabric/2.6.1/fabric.components.min.css');\r\n }\r\n\r\n public render(): void {\r\n\r\n if (this.renderedOnce === false) {\r\n this.domElement.innerHTML = `\r\n <div class=\"${styles.angularFileUpload}\">\r\n <div class=\"${styles.container}\" data-ng-controller=\"fileUploadCtrl as vm\">\r\n <div class=\"ms-Grid ms-fontColor-white ${styles.row} ${styles.headerBackground}\">\r\n
|