Files
doneit-web/.angular/cache/14.2.12/babel-webpack/5ad1d737635c6996294af87b019c3c1f.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 \"./edit-profile.page.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./edit-profile.page.scss?ngResource\";\nimport { Component } from '@angular/core';\nimport { AnimationController, ModalController, Platform } from '@ionic/angular';\nimport { FingerprintPage } from 'src/app/shared/fingerprint/fingerprint.page';\nimport { PinPage } from 'src/app/shared/pin/pin.page';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { environment } from 'src/environments/environment';\nimport { BackgroundService } from 'src/app/services/background.service';\nimport { ThemeService } from 'src/app/services/theme.service';\nlet EditProfilePage = class EditProfilePage {\n constructor(modalController, animationController, platform, BackgroundService, ThemeService) {\n this.modalController = modalController;\n this.animationController = animationController;\n this.platform = platform;\n this.BackgroundService = BackgroundService;\n this.ThemeService = ThemeService;\n this.SessionStore = SessionStore;\n this.production = environment.production;\n this.environment = environment;\n }\n ngOnInit() {}\n close() {\n this.modalController.dismiss();\n }\n addPin() {\n var _this = this;\n return _asyncToGenerator(function* () {\n const enterAnimation = baseEl => {\n const backdropAnimation = _this.animationController.create().addElement(baseEl.querySelector('ion-backdrop')).fromTo('opacity', '0.01', 'var(--backdrop-opacity)');\n const wrapperAnimation = _this.animationController.create().addElement(baseEl.querySelector('.modal-wrapper')).keyframes([{\n offset: 0,\n opacity: '1',\n right: '-100%'\n }, {\n offset: 1,\n opacity: '1',\n right: '0px'\n }]);\n return _this.animationController.create().addElement(baseEl).easing('ease-out').duration(500).addAnimation([backdropAnimation, wrapperAnimation]);\n };\n const leaveAnimation = baseEl => {\n return enterAnimation(baseEl).direction('reverse');\n };\n const modal = yield _this.modalController.create({\n enterAnimation,\n leaveAnimation,\n component: PinPage,\n cssClass: 'model profile-modal',\n componentProps: {}\n });\n modal.present();\n })();\n }\n addFingerprint() {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n const enterAnimation = baseEl => {\n const backdropAnimation = _this2.animationController.create().addElement(baseEl.querySelector('ion-backdrop')).fromTo('opacity', '0.01', 'var(--backdrop-opacity)');\n const wrapperAnimation = _this2.animationController.create().addElement(baseEl.querySelector('.modal-wrapper')).keyframes([{\n offset: 0,\n opacity: '1',\n right: '-100%'\n }, {\n offset: 1,\n opacity: '1',\n right: '0px'\n }]);\n return _this2.animationController.create().addElement(baseEl).easing('ease-out').duration(500).addAnimation([backdropAnimation, wrapperAnimation]);\n };\n const leaveAnimation = baseEl => {\n return enterAnimation(baseEl).direction('reverse');\n };\n const modal = yield _this2.modalController.create({\n enterAnimation,\n leaveAnimation,\n component: FingerprintPage,\n cssClass: 'model profile-modal',\n componentProps: {}\n });\n modal.present();\n })();\n }\n LoginPreferenceMethod(type) {\n if (this.SessionStore.user.LoginPreference != type) {\n if (type) {\n this.SessionStore.setLoginPreference(type);\n }\n } else {\n this.SessionStore.setLoginPreference('None');\n }\n }\n changeTheme(name) {\n this.ThemeService.setTheme(name);\n this.BackgroundService.paint(