1(self["webpackChunkprep"] = self["webpackChunkprep"] || []).push([["default-src_app_dialog_export-rename-file_export-rename-file_component_ts-src_app_pages_file--1125b8"],{ 2 3/***/ 69354: 4/*!***************************************************************************!*\ 5 !*** ./src/app/dialog/export-rename-file/export-rename-file.component.ts ***! 6 \***************************************************************************/ 7/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 8 9"use strict"; 10__webpack_require__.r(__webpack_exports__); 11/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12/* harmony export */ "ExportRenameFileComponent": () => (/* binding */ ExportRenameFileComponent) 13/* harmony export */ }); 14/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 90587); 15/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/dialog */ 95758); 16/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 3184); 17/* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/snack-bar */ 32528); 18/* harmony import */ var _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/flex-layout/flex */ 55434); 19/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/button */ 87317); 20/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/tooltip */ 40089); 21/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/icon */ 65590); 22/* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/form-field */ 49076); 23/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/input */ 43365); 24/* harmony import */ var _prep_shared_directives_no_mat_input_aria_required_directive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../@prep/shared/directives/no-mat-input-aria-required.directive */ 95504); 25/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 36362); 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40function ExportRenameFileComponent_mat_error_17_Template(rf, ctx) { if (rf & 1) { 41 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error"); 42 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Filename is required. "); 43 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 44} } 45function ExportRenameFileComponent_mat_error_18_Template(rf, ctx) { if (rf & 1) { 46 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error"); 47 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Filename must end with .pdf. "); 48 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 49} } 50class ExportRenameFileComponent { 51 constructor(data, dialogRef, fb, snackbar) { 52 this.data = data; 53 this.dialogRef = dialogRef; 54 this.fb = fb; 55 this.snackbar = snackbar; 56 console.log('File Name', this.data); 57 function pdfFileValidator(control) { 58 const value = control.value; 59 if (value && !value.toLowerCase().endsWith('.pdf')) { 60 return { invalidFileExtension: true }; // Validation error if the file does not end with .pdf 61 } 62 return null; // No error 63 } 64 this.ExportRenameFormGroup = this.fb.group({ 65 filename: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormControl('', [ 66 _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required, 67 pdfFileValidator, // Custom validator to check .pdf extension 68 ]), 69 }); 70 } 71 ngOnInit() { 72 this.ExportRenameFormGroup.controls['filename'].setValue(this.data.name); 73 } 74 onClose(val) { 75 if (this.ExportRenameFormGroup.valid === true) { 76 let result = { 77 flow: val, 78 filename: this.ExportRenameFormGroup.controls['filename'].value, 79 }; 80 console.log('val', result); 81 this.dialogRef.close(result); 82 } 83 } 84} 85ExportRenameFileComponent.ɵfac = function ExportRenameFileComponent_Factory(t) { return new (t || ExportRenameFileComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__.MAT_DIALOG_DATA), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__.MatDialogRef), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__.MatSnackBar)); }; 86ExportRenameFileComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ExportRenameFileComponent, selectors: [["app-export-rename-file"]], decls: 24, vars: 4, consts: [[2, "width", "100%", "cursor", "pointer"], ["fxLayoutAlign", "center start"], ["mat-dialog-title", "", "fxLayoutALign", "center start", 2, "font-size", "22px", "position", "absolute"], ["fxLayoutAlign", "end start"], ["mat-icon-button", "", "matTooltip", "Close Dialog", "matTooltipPosition", "below", "tabindex", "0", "aria-label", "Close Dialog", 2, "position", "relative", "margin-left", "auto", 3, "click"], ["mat-dialog-content", "", 2, "text-align", "center", "padding-top", "40px", 3, "formGroup"], ["fxLayout", "row", 2, "padding-top", "10px", "padding-bottom", "10px"], ["appearance", "outline", "fxFlex", ""], ["matInput", "", "type", "text", "formControlName", "filename", "required", ""], [4, "ngIf"], ["mat-dialog-actions", "", "fxLayoutAlign", "center end", 2, "text-align", "center", "padding-top", "10px", "padding-bottom", "10px"], ["mat-raised-button", "", "color", "primary", 3, "click"], ["mat-raised-button", "", 3, "click"]], template: function ExportRenameFileComponent_Template(rf, ctx) { if (rf & 1) { 87 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0); 88 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 1); 89 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h2", 2); 90 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Confirm "); 91 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 92 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 93 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "span", 3); 94 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 4); 95 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExportRenameFileComponent_Template_button_click_5_listener() { return ctx.onClose("Cancel"); }); 96 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "mat-icon"); 97 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "clear"); 98 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 99 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 100 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 101 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 102 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 5); 103 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "small"); 104 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10); 105 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 106 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "br"); 107 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 6); 108 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "mat-form-field", 7); 109 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "mat-label"); 110 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "File Name"); 111 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 112 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "input", 8); 113 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, ExportRenameFileComponent_mat_error_17_Template, 2, 0, "mat-error", 9); 114 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, ExportRenameFileComponent_mat_error_18_Template, 2, 0, "mat-error", 9); 115 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 116 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 117 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 118 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 10); 119 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "button", 11); 120 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExportRenameFileComponent_Template_button_click_20_listener() { return ctx.onClose("yes"); }); 121 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "Save & Send to Canvas "); 122 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 123 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "button", 12); 124 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExportRenameFileComponent_Template_button_click_22_listener() { return ctx.onClose("no"); }); 125 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "Cancel "); 126 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 127 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 128 } if (rf & 2) { 129 let tmp_2_0; 130 let tmp_3_0; 131 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8); 132 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.ExportRenameFormGroup); 133 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); 134 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.confirmMessage); 135 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7); 136 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (tmp_2_0 = ctx.ExportRenameFormGroup.get("filename")) == null ? null : tmp_2_0.hasError("required")); 137 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); 138 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (tmp_3_0 = ctx.ExportRenameFormGroup.get("filename")) == null ? null : tmp_3_0.hasError("invalidFileExtension")); 139 } }, directives: [_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_5__.DefaultLayoutAlignDirective, _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__.MatDialogTitle, _angular_material_button__WEBPACK_IMPORTED_MODULE_6__.MatButton, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_7__.MatTooltip, _angular_material_icon__WEBPACK_IMPORTED_MODULE_8__.MatIcon, _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__.MatDialogContent, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormGroupDirective, _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_5__.DefaultLayoutDirective, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__.MatFormField, _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_5__.DefaultFlexDirective, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__.MatLabel, _angular_material_input__WEBPACK_IMPORTED_MODULE_10__.MatInput, _prep_shared_directives_no_mat_input_aria_required_directive__WEBPACK_IMPORTED_MODULE_0__.NoMatInputAriaRequiredDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormControlName, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.RequiredValidator, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__.MatError, _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__.MatDialogActions], styles: ["[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-outline {\n
139color: black !important;\n}\n\n[_nghost-%COMP%] .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick {\n color: black !important;\n}\n\n[_nghost-%COMP%] .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick {\n color: red !important;\n opacity: 0.8 !important;\n}\n\n[_nghost-%COMP%] .mat-input-element {\n caret-color: black !important;\n}\n\n[_nghost-%COMP%] .mat-form-field-invalid .mat-input-element, .mat-warn[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%] {\n caret-color: red !important;\n}\n\n[_nghost-%COMP%] .mat-form-field-label {\n color: rgba(0, 0, 0, 0.6) !important;\n}\n\n[_nghost-%COMP%] .mat-form-field.mat-focused .mat-form-field-label {\n color: black !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV4cG9ydC1yZW5hbWUtZmlsZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHVCQUFBO0FBQ0o7O0FBRUE7RUFDSSx1QkFBQTtBQUNKOztBQUVBO0VBQ0kscUJBQUE7RUFDQSx1QkFBQTtBQUNKOztBQUVBO0VBQ0ksNkJBQUE7QUFDSjs7QUFFQTs7RUFFSSwyQkFBQTtBQUNKOztBQUVBO0VBQ0ksb0NBQUE7QUFDSjs7QUFFQTtFQUNJLHVCQUFBO0FBQ0oiLCJmaWxlIjoiZXhwb3J0LXJlbmFtZS1maWxlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiOmhvc3QgOjpuZy1kZWVwIC5tYXQtZm9ybS1maWVsZC1hcHBlYXJhbmNlLW91dGxpbmUgLm1hdC1mb3JtLWZpZWxkLW91dGxpbmUge1xyXG4gICAgY29sb3I6IGJsYWNrICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbjpob3N0IDo6bmctZGVlcCAubWF0LWZvcm0tZmllbGQtYXBwZWFyYW5jZS1vdXRsaW5lLm1hdC1mb2N1c2VkIC5tYXQtZm9ybS1maWVsZC1vdXRsaW5lLXRoaWNrIHtcclxuICAgIGNvbG9yOiBibGFjayAhaW1wb3J0YW50O1xyXG59XHJcblxyXG46aG9zdCA6Om5nLWRlZXAgLm1hdC1mb3JtLWZpZWxkLWFwcGVhcmFuY2Utb3V0bGluZS5tYXQtZm9ybS1maWVsZC1pbnZhbGlkLm1hdC1mb3JtLWZpZWxkLWludmFsaWQgLm1hdC1mb3JtLWZpZWxkLW91dGxpbmUtdGhpY2sge1xyXG4gICAgY29sb3I6IHJlZCAhaW1wb3J0YW50O1xyXG4gICAgb3BhY2l0eTogMC44ICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbjpob3N0IDo6bmctZGVlcCAubWF0LWlucHV0LWVsZW1lbnQge1xyXG4gICAgY2FyZXQtY29sb3I6IGJsYWNrICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbjpob3N0IDo6bmctZGVlcCAubWF0LWZvcm0tZmllbGQtaW52YWxpZCAubWF0LWlucHV0LWVsZW1lbnQsXHJcbi5tYXQtd2FybiAubWF0LWlucHV0LWVsZW1lbnQge1xyXG4gICAgY2FyZXQtY29sb3I6IHJlZCAhaW1wb3J0YW50O1xyXG59XHJcblxyXG46aG9zdCA6Om5nLWRlZXAgLm1hdC1mb3JtLWZpZWxkLWxhYmVsIHtcclxuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNikgIWltcG9ydGFudDtcclxufVxyXG5cclxuOmhvc3QgOjpuZy1kZWVwIC5tYXQtZm9ybS1maWVsZC5tYXQtZm9jdXNlZCAubWF0LWZvcm0tZmllbGQtbGFiZWwge1xyXG4gICAgY29sb3I6IGJsYWNrICFpbXBvcnRhbnQ7XHJcbn0iXX0= */"] }); 140 141 142/***/ }), 143 144/***/ 84288: 145/*!******************************************************************!*\ 146 !*** ./src/app/pages/file-export/service/file-export.service.ts ***! 147 \******************************************************************/ 148/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 149 150"use strict"; 151__webpack_require__.r(__webpack_exports__); 152/* harmony export */ __webpack_require__.d(__webpack_exports__, { 153/* harmony export */ "FileExportService": () => (/* binding */ FileExportService) 154/* harmony export */ }); 155/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 28784); 156/* harmony import */ var _environments_environment_prod__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../environments/environment.prod */ 89019); 157/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 3184); 158 159 160 161 162class FileExportService { 163 constructor(http) { 164 this.http = http; 165 this.httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({ 166 'Content-Type': 'application/json; charset=utf-8', 167 }); 168 this.baseUrl = _environments_environment_prod__WEBPACK_IMPORTED_MODULE_0__.environment.backend; 169 } 170 GetExportedFiles() { 171 return this.http.get(this.baseUrl + 'pdf-content/exports/', this.getAuthHeaders()); 172 } 173 GetOrgUsers() { 174 return this.http.get(this.baseUrl + 'accounts/organization/users/', this.getAuthHeaders()); 175 } 176 pageChangeExportList(offset, limit, flowType) { 177 if (flowType === 'HTML') { 178 return this.http.get(this.baseUrl +
179 'exports/html/?offset=' + 180 offset + 181 '&limit=' + 182 limit, this.getAuthHeaders()); 183 } 184 else if (flowType === 'DOCX') { 185 return this.http.get(this.baseUrl + 186 'exports/docx/?offset=' + 187 offset + 188 '&limit=' + 189 limit, this.getAuthHeaders()); 190 } 191 else if (flowType === 'EPUB') { 192 return this.http.get(this.baseUrl + 193 'exports/epub/?offset=' + 194 offset + 195 '&limit=' + 196 limit, this.getAuthHeaders()); 197 } 198 else { 199 return this.http.get(this.baseUrl + 200 'pdf-content/exports/?offset=' + 201 offset + 202 '&limit=' + 203 limit, this.getAuthHeaders()); 204 } 205 } 206 postAssignFile(fd) { 207 return this.http.post(this.baseUrl + 'accounts/fileshare/status/', fd, this.getAuthHeaders()); 208 } 209 postRunOCROnFile(fd) { 210 return this.http.post(this.baseUrl + 'ocr-content/run-ocr/', fd, this.getAuthHeaders()); 211 } 212 postExportCivicPlusFile(fd) { 213 return this.http.post(this.baseUrl + 'civic-plus/api/upload/', fd, this.getAuthHeaders()); 214 } 215 getAuthHeaders() { 216 const token = localStorage.getItem('token'); 217 const httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({ Authorization: 'Token ' + token }); 218 return { headers: httpHeaders }; 219 } 220} 221FileExportService.ɵfac = function FileExportService_Factory(t) { return new (t || FileExportService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient)); }; 222FileExportService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: FileExportService, factory: FileExportService.ɵfac, providedIn: 'root' }); 223 224 225/***/ }), 226 227/***/ 65226: 228/*!*******************************************************!*\ 229 !*** ./node_modules/file-saver/dist/FileSaver.min.js ***! 230 \*******************************************************/ 231/***/ (function(module, exports) { 232 233var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(a,b){if(true)!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (b), 234 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 235 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 236 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error("could not download file")},d.send()}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");
vendor: 1,943 bytes, lines 236-243
236b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g, true&&(module.exports=g)}); 237 238 239 240/***/ }) 241 242}]); 243//# sourceMappingURL=default-src_app_dialog_export-rename-file_export-rename-file_component_ts-src_app_pages_file--1125b8.7a4a43cc94798356.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.