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

1 line
12 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 \"./preview-camera.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./preview-camera.page.scss?ngResource\";\nimport { Component, ViewChild } from '@angular/core';\nimport { IonSlides, ModalController, NavParams } from '@ionic/angular';\nimport { PublicationsService } from 'src/app/services/publications.service';\nimport { GroupIconsPage } from '../group-icons/group-icons.page';\nimport { Share } from '@capacitor/share';\nimport { Router } from '@angular/router';\nimport { Directory, Filesystem } from '@capacitor/filesystem';\nimport { ThemeService } from 'src/app/services/theme.service';\nlet PreviewCameraPage = class PreviewCameraPage {\n constructor(modalController, navParams, router, publicService, ThemeService) {\n this.modalController = modalController;\n this.navParams = navParams;\n this.router = router;\n this.publicService = publicService;\n this.ThemeService = ThemeService;\n // myimage: null\n // croppedImageBase64: any\n // @Input('img') img: any\n // @Input() username: string;\n // @Input() date: string;\n this.slideOpts = {\n zoom: true\n };\n }\n ngOnInit() {\n this.image = this.navParams.get('image');\n this.name = this.navParams.get('username');\n this._updatedAt = this.navParams.get('_updatedAt');\n }\n ionViewDidEnter() {\n this.slides.update();\n }\n zoom(zoomIn) {\n var _this = this;\n return _asyncToGenerator(function* () {\n const slider = yield _this.slides.getSwiper(); //is swipper =!\n const zoom = slider.zoom;\n zoomIn ? zoom.in() : zoom.out();\n })();\n }\n close() {\n this.modalController.dismiss();\n }\n // imageCropped(ev: ImageCroppedEvent){\n // this.croppedImageBase64 = ev.base64\n // }\n // async grupo(){\n // const modal = await this.modalController.create({\n // component: GroupIconsPage,\n // cssClass: 'transparent-modal',\n // });\n // modal.present();\n // }\n getIconGallery() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n const modal = yield _this2.modalController.create({\n component: GroupIconsPage,\n animated: true,\n cssClass: 'transparent-modal'\n });\n modal.present();\n })();\n }\n openChat() {}\n clear() {\n this.getIconGallery();\n }\n openChatVideo() {}\n deleteImage() {\n document.addEventListener('DOMContentLoaded', () => {\n document.querySelector('img').addEventListener('click', removeImage);\n });\n function removeImage(ev) {\n let img = ev.currentTarget;\n let src = ev.target.closest('.img');\n src?.parentElement.removeChild(src);\n }\n }\n getIconShare() {\n return _asyncToGenerator(function* () {\n yield Share.share({\n title: 'See cool stuff',\n text: 'Really awesome thing you need to see right meow',\n url: \"https://www.google.com/search?q=joao+louren%C3%A7o&rlz=1C1SQJL_pt-PTAO977AO977&sxsrf=AOaemvIEvXz_WiqNNapjaoE42Q8b71jtiA:1638355797910&source=lnms&tbm=isch&sa=X&sqi=2&ved=2ahUKEwjo9uX6tsL0AhXTlWoFHX1XAtcQ_AUoAXoECAMQAw&biw=1920&bih=937&dpr=1#imgrc=lH5UYZyhPKBhHM\",\n dialogTitle: 'Share with buddies'\n });\n })();\n }\n redirPage() {\n this.router.navigateByUrl('/chat');\n }\n deleteFile(entry) {\n var _this3 = this;\n return _asyncToGenerator(function* () {\n if (entry.isFile) {\n yield Filesystem.deleteFile({\n directory: Directory.Documents,\n path: _this3.image.src + '/' + entry.name\n });\n } else {\n yield Filesystem.rmdir({\n directory: Directory.Documents,\n path: _this3.image.src + '/' + entry.name,\n recursive: true //remove all file as well\n });\n }\n })();\n }\n};\n\nPreviewCameraPage.ctorParameters = () => [{\n ty