mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
47 KiB
JSON
1 line
47 KiB
JSON
|
|
{"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 \"./view-event.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./view-event.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { AlertController, ModalController, PopoverController, Platform } from '@ionic/angular';\nimport { EventsService } from 'src/app/services/events.service';\nimport { Event } from '../../../models/event.model';\nimport { EditEventPage } from '../edit-event/edit-event.page';\nimport { ActivatedRoute } from '@angular/router';\nimport { ToastService } from 'src/app/services/toast.service';\nimport { EliminateEventPage } from 'src/app/modals/eliminate-event/eliminate-event.page';\nimport { DocumentSetUpMeetingPage } from 'src/app/modals/document-set-up-meeting/document-set-up-meeting.page';\nimport { ExpedientTaskModalPage } from '../../gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';\nimport { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';\nimport { BackgroundService } from 'src/app/services/background.service';\nimport { StorageService } from 'src/app/services/storage.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { RouteService } from 'src/app/services/route.service';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nimport { AttachmentsService } from 'src/app/services/attachments.service';\nlet ViewEventPage = class ViewEventPage {\n constructor(modalController, /* private navParams: NavParams, */\n eventsService, alertController, popoverController, activatedRoute, toastService, platform, backgroundservice, storage, ThemeService, RouteService, httpErrorHandle, attachmentsService) {\n this.modalController = modalController;\n this.eventsService = eventsService;\n this.alertController = alertController;\n this.popoverController = popoverController;\n this.activatedRoute = activatedRoute;\n this.toastService = toastService;\n this.platform = platform;\n this.backgroundservice = backgroundservice;\n this.storage = storage;\n this.ThemeService = ThemeService;\n this.RouteService = RouteService;\n this.httpErrorHandle = httpErrorHandle;\n this.attachmentsService = attachmentsService;\n this.months = [\"Janeiro\", \"Fevereiro\", \"Março\", \"Abril\", \"Maio\", \"Junho\", \"Julho\", \"Agosto\", \"Setembro\", \"Outubro\", \"Novembro\", \"Dezembro\"];\n this.days = [\"Domingo\", \"Segunda-feira\", \"Terça-feira\", \"Quarta-feira\", \"Quinta-feira\", \"Sexta-feira\", \"Sábado\"];\n this.dicIndex = 0;\n this.isModal = false;\n this.header = true;\n this.LoadedDocument = null;\n this.sesseionStora = SessionStore;\n this.isEventEdited = false;\n this.loadedEvent = new Event();\n this.eventBody = {\n BodyType: \"1\",\n Text: \"\"\n };\n this.loadedEvent.Body = this.eventBody;\n this.activatedRoute.paramMap.subscribe(params => {\n this.eventId = params['params'].eventId;\n const urlParams = new URLSearchParams(window.location.search);\n this.CalendarId = urlParams.get('CalendarId');\n this.eventId = this.eventId.replace(' ', '');\n if (params[\"params\"].caller) {\n this.caller = params[\"params\"].caller;\n }\n if (params[\"params\"].isModal) {\n this.isModal = params[\"params\"].isModal;\n }\n if (params[\"params\"].header) {\n this.header = params[\"params\"].header;\n }\n });\n }\n ngOnInit() {\n this.loadEvent();\n this.backgroundservice.registerBackService('Online', () => {\n this.storage.get('eventEdit').then(req => {\n JSON.parse(req).forEach(element => {\n this.eventsService.editEvent(element, 2, 3).subscribe(res => {\n this.storage.remove('e
|