PageSourceSearch

https://efsa-prep.netlify.app/default-src_app_pages_pdf-remediatio…-remediation_service_ts.acf0a2caf0142f68.js

js efsa-prep.netlify.app collected 2026-10-03 10:41:35 UTC 24,445 bytes, 524 lines download raw bytes

1"use strict";
2(self["webpackChunkprep"] = self["webpackChunkprep"] || []).push([["default-src_app_pages_pdf-remediation_service_pdf-remediation_service_ts"],{
3
4/***/ 71737:
5/*!**************************************************************************!*\
6  !*** ./src/app/pages/pdf-remediation/service/pdf-remediation.service.ts ***!
7  \**************************************************************************/
8/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
10__webpack_require__.r(__webpack_exports__);
11/* harmony export */ __webpack_require__.d(__webpack_exports__, {
12/* harmony export */   "PdfRemediationService": () => (/* binding */ PdfRemediationService)
13/* harmony export */ });
14/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tslib */ 34929);
15/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 28784);
16/* harmony import */ var _environments_environment_prod__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../environments/environment.prod */ 89019);
17/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 88623);
18/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 36312);
19/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 12378);
20/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 54350);
21/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 86942);
22/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 3184);
23
24
25
26
27
28
29
30class PdfRemediationService {
31    constructor(http) {
32        this.http = http;
33        this.httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
34            'Content-Type': 'application/json; charset=utf-8',
35        });
36        this.baseUrl = _environments_environment_prod__WEBPACK_IMPORTED_MODULE_0__.environment.backend;
37        this.ctgBaseUrl = _environments_environment_prod__WEBPACK_IMPORTED_MODULE_0__.environment.ctg_backend;
38        this.sharePageInfo = [];
39    }
40    createOnline$() {
41        return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.merge)((0,rxjs__WEBPACK_IMPORTED_MODULE_3__.fromEvent)(window, 'offline').pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(() => false)), (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.fromEvent)(window, 'online').pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(() => true)), new rxjs__WEBPACK_IMPORTED_MODULE_5__.Observable((sub) => {
42            sub.next(navigator.onLine);
43            sub.complete();
44        }));
45    }
46    pushShareData(fg) {
47        this.sharePageInfo.push(fg);
48    }
49    getShareData() {
50        return this.sharePageInfo;
51    }
52    // clearShareData() {
53    //   this.sharePageInfo = [];
54    //   return this.sharePageInfo;
55    // }
56    saveUserActivites(fd) {
57        return this.http.post(this.baseUrl + 'pdf-content/pdf/bbox-log/', fd, this.getAuthHeaders());
58    }
59    getComplexPageBoundingbox(fd) {
60        return this.http.post(this.baseUrl + 'detects/model-op/', fd, this.getAuthHeaders());
61    }
62    getSplitTag(fd) {
63        return this.http.post(this.baseUrl + 'pdf-content/pdf/split-tag/', fd, this.getAuthHeaders());
64    }
65    getTociSplitTag(fd) {
66        return this.http.post(this.baseUrl + 'detects/toc/', fd, this.getAuthHeaders());
67    }
68    createTemplate(fd) {
69        return this.http.post(this.baseUrl + 'pdf-content/pdf/add-template/', fd, this.getAuthHeaders());
70    }
71    generateMathAltText(fg) {
72        return this.http.post(this.baseUrl + 'pdf-content/pdf/ocr-page/', fg, this.getAuthHeaders());
73    }
74    generateAltMultiple(fg) {
75        return (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__awaiter)(this, void 0, void 0, function* () {
76            return yield this.http
77                .post(this.baseUrl + 'pdf-content/pdf/ocr-page/', fg, this.getAuthHeaders())
78                .toPromise();
79        });
80    }
81    getTableSplit(fd) {
82        return this.http.post(this.baseUrl + 'pdf-content/pdf/table-detect/', fd, this.getAuthHeaders());
83    }
84    getTableVisionSplit(fd) {
85        return this.http.post(this.baseUrl + 'pdf-content/pdf/table-detect-v2/', fd, this.getAuthHeaders());
86    }
87    regenTableVision(fd) {
88        return this.http.post(this.baseUrl + 'pdf-content/pdf/table-regenerate/', fd, this.getAuthHeaders());
89    }
90    regenListSplit(fd) {
91        return this.http.post(this.baseUrl + 'pdf-content/pdf/list-restructure/', fd, this.getAuthHeaders());
92    }
93    exportTags(fd, baseURL) {
94        if (baseURL) {
95            return this.http.post(this.ctgBaseUrl + 'v1/tags/export-pdf/', fd, this.getAuthHeaders());
96        }
97        else {
98            return this.http.post(this.ctgBaseUrl + 'v1/tags/export-pdf/', fd, this.getAuthHeaders());
99        }
100    }
101    getContentPage(fd) {
102        return this.http.post(this.baseUrl + 'contents/content/page/', fd, this.getAuthHeaders());
103    }
104    fixWhitePatch(fg) {
105        return this.http.post(this.baseUrl + 'ocr-content/ocr-basic/', fg, this.getAuthHeaders());
106    }
107    postSinglePageOCR(fd) {
108        return this.http.post(this.baseUrl + 'ocr-content/page-ocr/', fd, this.getAuthHeaders());
109    }
110    postInitSinglePageOCR(fd) {
111        return this.http.post(this.baseUrl + 'ocr-content/page-ocr/', fd, this.getAuthHeaders());
112    }
113    postFatchSinglePageOCR(fd) {
114        return this.http.post(this.baseUrl + 'ocr-content/fetch-page-ocr-status/', fd, this.getAuthHeaders());
115    }
116    downloadtTags(fd) {
117        const token = localStorage.getItem('token');
118        const httpOptions = {
119            responseType: 'blob',
120            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
121                Authorization: 'Token ' + token,
122            }),
123        };
124        return this.http.post(this.baseUrl + 'v1/tags/download-pdf/', fd, httpOptions);
125    }
126    downloadtTags1(fd, expFlowType) {
127        const token = localStorage.getItem('token');
128        const httpOptions = {
129            responseType: 'blob',
130            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
131                Authorization: 'Token ' + token,
132            }),
133        };
134        if (expFlowType === 'HTML') {
135            return this.http.post(this.baseUrl + 'exports/html-dl/', fd, httpOptions);
136        }
137        else if (expFlowType === 'DOCX') {
138            return this.http.post(this.baseUrl + 'exports/docx-dl/', fd, httpOptions);
139        }
140        else {
141            const jsonHttpOptions = {
142                headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
143                    Authorization: 'Token ' + token,
144                }),
145            };
146            return this.http.post(this.ctgBaseUrl + 'contents/pdf-download/', fd, jsonHttpOptions);
147        }
148    }
149    tagAsSinglePagePDFValidate(fd, baseURL) {
150        if (baseURL) {
151            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/page-tag/', fd, this.getAuthHeaders());
152        }
153        else {
154            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/page-tag/', fd, this.getAuthHeaders());
155        }
156    }
157    tagAsSinglePagePDF(fd) {
158        const token = localStorage.getItem('token');
159        const httpOptions = {
160            responseType: 'blob',
161            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
162                Authorization: 'Token ' + token,
163            }),
164        };
165        return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/page-tag/', fd, httpOptions);
166    }
167    downloadStatus(fg, baseURL) {
168        if (baseURL) {
169            return this.http.post(baseURL + 'contents/download-status/', fg, this.getAuthHeaders());
170        }
171        else {
172            return this.http.post(this.baseUrl + 'contents/download-status/', fg, this.getAuthHeaders());
173        }
174    }
175    updatePageTagsInfo(id, fg) {
176        return this.http.put(this.baseUrl + 'pdf-content/pdf/page/' + id + '/', fg, this.getAuthHeaders());
177    }
178    downloadIMGASZIP(fg) {
179        return this.http.post(this.baseUrl + 'pdf-services/image-logs/', fg, this.getAuthHeaders());
180    }
181    updateNestedFormula(fg) {
182        return this.http.post(this.baseUrl + 'pdf-content/pdf/nested-formula/', fg, this.getAuthHeaders());
183    }
184    updateMetaTagsInfo(id, fd) {
185        return this.http.patch(this.baseUrl + 'v1/tags/job/' + id + '/', fd, this.getAuthHeaders());
186    }
187    geteMetaTagsInfo(fd) {
188        return this.http.post(this.baseUrl + 'pdf-content/pdf/metainfo/', fd, this.getAuthHeaders());
189    }
190    getPageBackground(fd) {
191        return this.http.post(this.baseUrl + 'pdf-content/pdf/img/', fd, this.getAuthHeaders());
192    }
193    initGenBbox(fd) {
194        return this.http.post(this.baseUrl + 'detects/pdf/init-gen-bbox/', fd, this.getAuthHeaders());
195    }
196    fetchStatusAndBbox(fd) {
197        return this.http.post(this.baseUrl + 'detects/pdf/fetch-status-and-bbox/', fd, this.getAuthHeaders());
198    }
199    stopBboxFatch(fd) {
200        return this.http.post(this.baseUrl + 'detects/pdf/end-process/', fd, this.getAuthHeaders());
201    }
202    getPageBoundingbox(fd) {
203        return this.http.post(this.baseUrl + 'pdf-content/pdf/image/', fd, this.getAuthHeaders());
204    }
205    checkDispatchOCRCContentStatus(fd, baseURL) {
206        if (baseURL) {
207            return this.http.post(baseURL + 'contents/content/ocr-status/', fd, this.getAuthHeaders());
208        }
209        else {
210            return this.http.post(this.baseUrl + 'contents/content/ocr-status/', fd, this.getAuthHeaders());
211        }
212    }
213    getForkBackgroundPageBBox(fd) {
214        console.log('FORM DEEPAK====> ', fd);
215        let response1 = this.http.post(this.baseUrl + 'pdf-content/pdf/img/', fd, this.getAuthHeaders());
216        let response2 = this.http.post(this.baseUrl + 'pdf-content/pdf/image/', fd, this.getAuthHeaders());
217        // Observable.forkJoin (RxJS 5) changes to just forkJoin() in RxJS 6
218        return (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.forkJoin)([response1, response2]);
219    }
220    deleteFile(job_id) {
221        return this.http.post(this.baseUrl + 'pdf-content/file-remove/', job_id, this.getAuthHeaders());
222    }
223    exportOriginalTags(job_id) {
224        return this.http.post(this.baseUrl + 'pdf-content/export-originalfile/', job_id, this.getAuthHeaders());
225    }
226    exportAsTagged(job_id) {
227        return this.http.post(this.baseUrl + 'pdf-content/export-taggedfile/', job_id, this.getAuthHeaders());
228    }
229    // Extract HTML to XLSX
230    ExportHTMLToXlsx(fg) {
231        return this.http.post(this.baseUrl + 'pdf-services/image-logs/', fg, this.getAuthHeaders());
232    }
233    // Extract Images to XLSX
234    ExtractImageToXlsx(fg) {
235        return this.http.post(this.baseUrl + 'pdf-services/image-logs/', fg, this.getAuthHeaders());
236    }
237    // IMPORT ALT TEXT XLSX
238    ImportAltTextXlsx(fg) {
239        return this.http.post(this.baseUrl + 'pdf-services/alt-text-updation/', fg, this.getAuthHeaders());
240    }
241    ImportAltTextXlsxNew(fg) {
242        return this.http.post(this.baseUrl + 'accounts/uploadxlsx/', fg, this.getAuthHeaders());
243    }
244    uploadBulkUserXlsx(fg) {
245        return this.http.post(this.baseUrl + 'users/upload_bulk_user_excel/', fg, this.getAuthHeaders());
246    }
247    ImportRemediatedFile(fg) {
248        return this.http.post(this.baseUrl + 'remediation/sales/upload-remediated/', fg, this.getAuthHeaders());
249    }
250    ImportInvoiceFile(fg) {
251        return this.http.post(this.baseUrl + 'remediation/sales/upload-invoice-file/', fg, this.getAuthHeaders());
252    }
253    getCheckerReport(job_id, baseURL) {
254        if (baseURL) {
255            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/check-accessibility/', job_id, this.getAuthHeaders());
256        }
257        else {
258            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/check-accessibility/', job_id, this.getAuthHeaders());
259        }
260    }
261    getHTMLPreviewOutput(fg, baseURL) {
262        if (baseURL) {
263            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/page-tag/', fg, this.getAuthHeaders());
264        }
265        else {
266            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/page-tag/', fg, this.getAuthHeaders());
267        }
268    }
269    getCheckDispatchPageStatus(fg, baseURL) {
270        if (baseURL) {
271            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/dispatch-status/', fg, this.getAuthHeaders());
272        }
273        else {
274            return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/dispatch-status/', fg, this.getAuthHeaders());
275        }
276    }
277    getExtraDownload(fd) {
278        const token = localStorage.getItem('token');
279        const httpOptions = {
280            responseType: 'blob',
281            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
282                Authorization: 'Token ' + token,
283            }),
284        };
285        return this.http.post(this.ctgBaseUrl + 'contents/pdf-download/', fd, httpOptions);
286    }
287    getCheckDispatchDocStatus(fg) {
288        return this.http.post(this.ctgBaseUrl + 'pdf-content/pdf/dispatch-status/', fg, this.getAuthHeaders());
289    }
290    perviewImage(fd) {
291        return this.http.post(this.baseUrl + 'pdf-content/pdf/prev-file/', fd, this.getAuthHeaders());
292    }
293    // tagAsSinglePagePDF(fd): Observable<any> {
294    //   return this.http.post(this.baseUrl + 'pdf-content/pdf/page-tag/', fd, this.getAuthHeaders());
295    // }
296    getSensitivityLevel(fd) {
297        return this.http.post(this.baseUrl + 'pdf-content/pdf/json-range/', fd, this.getAuthHeaders());
298    }
299    getPageOCRText(fd) {
300        return this.http.post(this.baseUrl + 'pdf-content/pdf/ocr-scan/', fd, this.getAuthHeaders());
301    }
302    //  OLD CODES
303    // exportAsHtmlDoc(fd): Observable<any> {
304    //   return this.http.post(this.baseUrl + 'pdf-content/pdf/html-content/', fd, this.getAuthHeaders());
305    // }
306    // exportAsEpub(fd): Observable<any> {
307    //   return this.http.post(this.baseUrl + 'epub/download/', fd, this.getAuthHeaders());
308    // }
309    // OLD CODES ENDS
310    exportAsHtmlDoc(fd) {
311        const token = localStorage.getItem('token');
312        const httpOptions = {
313            responseType: 'blob',
314            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
315                Authorization: 'Token ' + token,
316            }),
317        };
318        return this.http.post(this.baseUrl + 'pdf-services/file-convert/', fd, httpOptions);
319    }
320    exportAsEpub(fd) {
321        const token = localStorage.getItem('token');
322        const httpOptions = {
323            responseType: 'blob',
324            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
325                Authorization: 'Token ' + token,
326            }),
327        };
328        return this.http.post(this.baseUrl + 'pdf-services/file-convert/', fd, httpOptions);
329    }
330    putOcrUpdate(fd) {
331        return this.http.put(this.baseUrl + 'ocr-content/ocr/', fd, this.getAuthHeaders());
332    }
333    // Propogate Delete
334    propogateDeleteChanges(fd) {
335        return this.http.post(this.baseUrl + 'contents/propagate/', fd, this.getAuthHeaders());
336    }
337    // Zoom Setting
338    postRotatePages(fg) {
339        return this.http.post(this.baseUrl + 'v1/tags/rotate-pdf/', fg, this.getAuthHeaders());
340    }
341    // Extract Images to XLSX
342    postPageToRetrainModel(fg) {
343        return this.http.post(this.baseUrl + 'detects/label/', fg, this.getAuthHeaders());
344    }
345    // Extract Images to XLSX
346    downloadCheckerReport1(fg) {
347        return this.http.post(this.baseUrl + 'detects/check-report/', fg, this.getAuthHeaders());
348    }
349    downloadCheckerReport(fg, baseURL) {
350        const token = localStorage.getItem('token');
351        const httpOptions = {
352            responseType: 'blob',
353            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
354                Authorization: 'Token ' + token,
355            }),
356        };
357        if (baseURL) {
358            return this.http.post(baseURL + 'detects/check-report/', fg, httpOptions);
359        }
360        else {
361            return this.http.post(this.baseUrl + 'detects/check-report/', fg, httpOptions);
362        }
363    }
364    // Download Checker Report - Celery Task Start
365    initiateDownloadCheckerReport(fg) {
366        return this.http.post(this.baseUrl + 'detects/init-downloadchecker/', fg, this.getAuthHeaders());
367    }
368    fatchStatusDownloadCheckerReport(job_id) {
369        return this.http.get(this.baseUrl + 'detects/fetch-jobstatus/?job_id=' + job_id, this.getAuthHeaders());
370    }
371    celeryDownloadCheckerReport(fg, baseURL) {
372        const token = localStorage.getItem('token');
373        const httpOptions = {
374            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
375                Authorization: 'Token ' + token,
376            }),
377        };
378        if (baseURL) {
379            return this.http.post(baseURL + 'detects/checker-report-download/', fg, httpOptions);
380        }
381        else {
382            return this.http.post(this.baseUrl + 'detects/checker-report-download/', fg, httpOptions);
383        }
384    }
385    // Orchestrates initiate -> poll -> download for the checker report, shared by every
386    // caller (dashboard list view, PDF editor, LTI PDF editor) instead of each duplicating it.
387    runCheckerReportDownload(config) {
388        const { sendData, baseUrl, downloadFile, fallbackFilename, showMessage, onDone, messages } = config;
389        const downloadReport = () => {
390            this.celeryDownloadCheckerReport(sendData, baseUrl).subscribe((res) => {
391                if (!(res === null || res === void 0 ? void 0 : res.download_url)) {
392                    onDone();
393                    showMessage(messages.noDownloadUrl, 10000);
394                    return;
395                }
396                downloadFile(res.download_url, res.original_filename || fallbackFilename).subscribe((success) => {
397                    onDone();
398                    showMessage(success ? messages.fileDownloadedSuccessfully : messages.unableDownloadedFile, 10000);
399                });
400            }, (error) => {
401                var _a;
402                onDone();
403                showMessage(((_a = error.error) === null || _a === void 0 ? void 0 : _a.msg) || messages.errorDownloadingReport, 5000);
404            });
405        };
406        const pollStatus = (job_id, refreshInterval) => {
407            this.fatchStatusDownloadCheckerReport(job_id).subscribe((res) => {
408                if (res.status === 'completed') {
409                    downloadReport();
410                }
411                else if (res.status === 'failed') {
412                    onDone();
413                    showMessage(res.message || messages.errorDownloadingReport, 5000);
414                }
415                else {
416                    // still processing
417                    setTimeout(() => pollStatus(job_id, refreshInterval), refreshInterval * 1000);
418                }
419            }, (error) => {
420                onDone();
421                showMessage(messages.errorDownloadingCheckerReport, 5000);
422            });
423        };
424        this.initiateDownloadCheckerReport(sendData).subscribe((res) => {
425            const job_id = res.job_id;
426            const refreshInterval = res.refresh_rate_in_seconds || 3;
427            pollStatus(job_id, refreshInterval);
428        }, (error) => {
429            onDone();
430            if (error.status === 417) {
431                showMessage(error.error.msg || messages.pleaseRunDocumentChecker, 10000);
432            }
433            else {
434                showMessage(messages.errorDownloadingReport, 5000);
435            }
436        });
437    }
438    // Download Checker Report - Celery Task End
439    // downloadTaggedFileDash(fg): Observable<any> {
440    //   const token = localStorage.getItem('token');
441    //   const httpOptions = {
442    //     responseType: 'blob' as 'json',
443    //     headers: new HttpHeaders({
444    //       Authorization: 'Token ' + token,
445    //     }),
446    //   };
447    //   return this.http.post(
448    //     this.baseUrl + 'contents/pdf-download/',
449    //     fg,
450    //     httpOptions
451    //   );
452    // }
453    downloadTaggedFileDash(fg) {
454        const token = localStorage.getItem('token');
455        const httpOptions = {
456            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
457                Authorization: 'Token ' + token,
458            }),
459        };
460        return this.http.post(this.ctgBaseUrl + 'contents/pdf-download/', fg, httpOptions);
461    }
462    downloadCheckerReport2(fg) {
463        const token = localStorage.getItem('token');
464        const httpOptions = {
465            responseType: 'blob',
466            headers: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
467                Authorization: 'Token ' + token,
468            }),
469        };
470        return this.http.post(this.baseUrl + 'detects/check-report-v2/', fg, httpOptions);
471    }
472    getOCRContent(fd) {
473        return this.http.post(this.baseUrl + 'contents/content/fetch-ocr/', fd, this.getAuthHeaders());
474    }
475    updateOCRContent(fd) {
476        return this.http.post(this.baseUrl + 'contents/content/update-ocr/', fd, this.getAuthHeaders());
477    }
478    postCheckerErrorFix(fd) {
479        return this.http.post(this.baseUrl + 'pdf-content/pdf/fix-fonts/', fd, this.getAuthHeaders());
480    }
481    postCheckerFontFix(fd) {
482        return this.http.post(this.baseUrl + 'pdf-content/pdf/dispatch-fix-pdf-fonts/', fd, this.getAuthHeaders());
483    }
484    getCeleryCheckerFontFix(job_id) {
485        return this.http.get(this.baseUrl + 'pdf-content/pdf/fix-pdf-fonts/status/?job_id=' + job_id, this.getAuthHeaders());
486    }
487    postCharacterEncodingAnalysis(fd) {
488        return this.http.post(this.baseUrl + 'pdf-content/pdf/dispatch-chr-encoding-analysis/', fd, this.getAuthHeaders());
489    }
490    getCeleryCharacterEncodingAnalysis(job_id) {
491        return this.http.get(this.baseUrl + 'pdf-content/pdf/chr-encoding-status/?job_id=' + job_id, this.getAuthHeaders());
492    }
493    saveCharacterEncodingEdits(fd) {
494        return this.http.post(this.baseUrl + 'pdf-content/pdf/save-chr-encoding-analysis/', fd, this.getAuthHeaders());
495    }
496    postCharacterEncodingFix(fd) {
497        return this.http.post(this.baseUrl + 'pdf-content/pdf/dispatch-encoding-fix/', fd, this.getAuthHeaders());
498    }
499    getCeleryCharacterEncodingFix(job_id) {
500        return this.http.get(this.baseUrl + 'pdf-content/pdf/encoding-fix/status/?job_id=' + job_id, this.getAuthHeaders());
501    }
502    postCharacterEncodingUndoFix(fd) {
503        return this.http.post(this.baseUrl + 'pdf-content/pdf/revert-encoding-fix/', fd, this.getAuthHeaders());
504    }
505    postCheckerErrorUndoFix(fd) {
506        return this.http.post(this.baseUrl + 'pdf-content/pdf/revert-fonts/', fd, this.getAuthHeaders());
507    }
508    getCeleryCheckerErrorUndoFix(job_id) {
509        return this.http.get(this.baseUrl + 'pdf-content/pdf/revert-fonts/status/?job_id=' + job_id, this.getAuthHeaders());
510    }
511    getAuthHeaders() {
512        const token = localStorage.getItem('token');
513        const httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({ Authorization: 'Token ' + token });
514        return { headers: httpHeaders };
515    }
516}
517PdfRemediationService.ɵfac = function PdfRemediationService_Factory(t) { return new (t || PdfRemediationService)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient)); };
518PdfRemediationService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineInjectable"]({ token: PdfRemediationService, factory: PdfRemediationService.ɵfac, providedIn: 'root' });
519
520
521/***/ })
522
523}]);
524//# sourceMappingURL=default-src_app_pages_pdf-remediation_service_pdf-remediation_service_ts.acf0a2caf0142f68.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.