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

1 line
45 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 \"./edit-event.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./edit-event.page.scss?ngResource\";\nimport { Component, Input, Output, EventEmitter, ViewChild } from '@angular/core';\nimport { ModalController } from '@ionic/angular';\nimport { EventsService } from 'src/app/services/events.service';\nimport { AlertController } from '@ionic/angular';\nimport { removeDuplicate } from 'src/plugin/removeDuplicate.js';\nimport { SearchPage } from 'src/app/pages/search/search.page';\nimport { AttachmentsService } from 'src/app/services/attachments.service';\nimport { UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';\nimport { ParticipantsPipe } from 'src/app/pipes/participants.pipe';\nimport { ThemeService } from 'src/app/services/theme.service';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { HttpErrorHandle } from 'src/app/services/http-error-handle.service';\nlet EditEventPage = class EditEventPage {\n constructor(modalController, eventsService, alertController, attachmentsService, ThemeService, httpErrorHandle) {\n this.modalController = modalController;\n this.eventsService = eventsService;\n this.alertController = alertController;\n this.attachmentsService = attachmentsService;\n this.ThemeService = ThemeService;\n this.httpErrorHandle = httpErrorHandle;\n this.segment = \"true\";\n // minDate: string;\n this.loadedEventAttachments = [];\n this.recurringTypes = [];\n this.disabled = false;\n this.showSpinners = true;\n this.showSeconds = false;\n this.touchUi = false;\n this.enableMeridian = false;\n this.minDate = new Date().toISOString().slice(0, 10);\n this.endMinDate = new Date(new Date().getTime() + 15 * 60000).toISOString().slice(0, 10);\n this.stepHour = 1;\n this.stepMinute = 15;\n this.stepSecond = 15;\n this.validateFrom = false;\n this.clearContact = new EventEmitter();\n this.openAttendeesComponent = new EventEmitter();\n this.closeComponent = new EventEmitter();\n this.setIntervenient = new EventEmitter();\n this.setIntervenientCC = new EventEmitter();\n this.clearPostEvent = new EventEmitter();\n this.showLoader = false;\n this.options = [{\n value: true,\n label: 'True'\n }, {\n value: false,\n label: 'False'\n }];\n this.listColors = ['primary', 'accent', 'warn'];\n this.stepHours = [1, 2, 3, 4, 5];\n this.stepMinutes = [1, 5, 10, 15, 20, 25];\n this.stepSeconds = [1, 5, 10, 15, 20, 25];\n this.participantsPipe = new ParticipantsPipe();\n this.sesseionStora = SessionStore;\n }\n ngOnInit() {\n if (!this.restoreTemporaryData()) {\n // clear\n if (this.postEvent) {\n if (this.postEvent.Body) {\n if (typeof this.postEvent.Body.Text == 'string') {\n this.postEvent.Body.Text = this.postEvent.Body.Text.replace(/<[^>]+>/g, '');\n }\n }\n }\n if (this.postEvent.Attendees != null) {\n const result = this.participantsPipe.transform(this.postEvent.Attendees);\n this.taskParticipants = result.taskParticipants;\n this.taskParticipantsCc = result.taskParticipantsCc;\n this.taskParticipants = removeDuplicate(this.taskParticipants);\n this.taskParticipantsCc = removeDuplicate(this.taskParticipantsCc);\n this.setIntervenient.emit(this.taskParticipants);\n this.setIntervenientCC.emit(this.taskParticipantsCc);\n }\n }\n this.initCalendarName = this.postEvent.CalendarName;\n this.getRecurrenceTypes();\n setTimeout(() => {\n this.postEvent.EventRecurrence.Type = this.postEvent.EventRecurrence.Type.toString();\n }, 500);\n }\n ngOnChanges(changes) {\n this.loadedEventAttachments = this.postEvent.Attachments;\n }\n close() {\n this.closeComponent.