Files
doneit-web/.angular/cache/14.2.12/babel-webpack/ae6d6992e64820d25d1176af300f8424.json
T

1 line
29 KiB
JSON
Raw Normal View History

2023-06-30 09:54:21 +01:00
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./deploma-options.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./deploma-options.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { ModalController, NavParams, PopoverController } from '@ionic/angular';\nimport { AddNotePage } from 'src/app/modals/add-note/add-note.page';\nimport { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';\nimport { ProcessesService } from 'src/app/services/processes.service';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { RouteService } from 'src/app/services/route.service';\nimport { PermissionService } from 'src/app/services/permission.service';\nimport { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page';\nimport { CreateProcessPage } from 'src/app/modals/create-process/create-process.page';\nimport { DespachoService } from 'src/app/Rules/despacho.service';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nimport { TaskService } from 'src/app/services/task.service';\nlet DeplomaOptionsPage = class DeplomaOptionsPage {\n constructor(popoverController, modalController, processes, navParams, toastService, RouteService, p, despachoService, httpErroHandle, TaskService) {\n this.popoverController = popoverController;\n this.modalController = modalController;\n this.processes = processes;\n this.navParams = navParams;\n this.toastService = toastService;\n this.RouteService = RouteService;\n this.p = p;\n this.despachoService = despachoService;\n this.httpErroHandle = httpErroHandle;\n this.TaskService = TaskService;\n this.serialNumber = this.navParams.get('serialNumber');\n this.task = this.navParams.get('task');\n this.fulltask = this.navParams.get('fulltask');\n }\n ngOnInit() {}\n openAddNoteModal(actionName) {\n var _this = this;\n return _asyncToGenerator(function* () {\n _this.popoverController.dismiss();\n let classs;\n if (window.innerWidth <= 800) {\n classs = 'modal modal-desktop';\n } else {\n classs = 'modal modal-desktop';\n }\n const modal = yield _this.modalController.create({\n component: AddNotePage,\n componentProps: {\n actionName: actionName\n },\n cssClass: classs,\n backdropDismiss: true\n });\n yield modal.present();\n modal.onDidDismiss().then( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (res) {\n if (res.data) {\n const DocumentToSave = res.data.documents.map(e => {\n return {\n ApplicationId: e.ApplicationType,\n SourceId: e.Id\n };\n });\n let docs = {\n ProcessInstanceID: \"\",\n Attachments: DocumentToSave\n };\n if (actionName == 'Solicitar assinatura') {\n yield _this.askSignature(res.data.note, docs);\n _this.goBack();\n } else if (actionName == 'Solicitar alteração') {\n yield _this.askToChange(res.data.note, docs);\n _this.goBack();\n } else if (actionName == 'Assinar Diploma') {\n yield _this.sign(res.data.note, docs);\n _this.goBack();\n } else if (actionName == 'Concluir diploma') {\n yield _this.finish(res.data.note, docs);\n _this.goBack();\n } else if (actionName == 'Arquivo') {\n yield _this.arquivar(res.data.note, docs);\n _this.goBack();\n }\n }\n });\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n })(