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sources":["./src/app/pages/settings-troubleshooting/settings-troubleshooting-routing.module.ts","./src/app/pages/settings-troubleshooting/settings-troubleshooting.module.ts","./src/app/pages/settings-troubleshooting/settings-troubleshooting.page.ts","./src/app/pages/settings-troubleshooting/settings-troubleshooting.page.html"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { SettingsTroubleshootingPage } from './settings-troubleshooting.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: SettingsTroubleshootingPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SettingsTroubleshootingPageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SharedModule } from '../../modules/shared/shared.module';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { SettingsTroubleshootingPageRoutingModule } from './settings-troubleshooting-routing.module';\n\nimport { SettingsTroubleshootingPage } from './settings-troubleshooting.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n\tReactiveFormsModule,\n IonicModule,\n SettingsTroubleshootingPageRoutingModule,\n SharedModule\n ],\n declarations: [SettingsTroubleshootingPage]\n})\nexport class SettingsTroubleshootingPageModule {}\n","import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\n\nimport { SettingsService } from 'src/app/services/settings.service';\nimport { UpdateService } from 'src/app/services/update.service';\n\n@Component({\n selector: 'app-settings-troubleshooting',\n templateUrl: './settings-troubleshooting.page.html',\n styleUrls: ['./settings-troubleshooting.page.scss'],\n})\nexport class SettingsTroubleshootingPage implements OnInit {\n notifyForm: FormGroup = new FormGroup({});\n formMessage: string = \"\";\n\n constructor(\n private formBuilder: FormBuilder,\n public settings: SettingsService,\n private update: UpdateService\n ) { \n this.notifyForm = this.formBuilder.group({\n message: ['', []],\n }); \n }\n\n ngOnInit() {\n }\n\n ionViewWillEnter() {\n this.settings.log(0,'ionViewWillEnter SettingsTroubleshootingPage');\n this.update.pageIsReady('SettingsTroubleshootingPage').then((ready) => {\n // track GA page views\n this.settings.trackPageView('Troubleshooting Settings Page'); \n this.settings.notificationsNewCount = this.settings.getNewNotificationsCount();\n }); \n }\n\n notifyDeveloper() {\n // send email\n this.settings.log(1,'notifyDeveloper');\n this.formMessage = 'Sending ...';\n let msg = this.settings.HtmlEncode(this.notifyForm.controls['message'].value);\n let log = this.settings.HtmlEncode(this.settings.getLastErrorsAndCleanLog());\n let info = this.settings.getUserAndDeviceInfoJson();\n\n let commandParameters = 'info=' + encodeURIComponent(info) +\n '&log=' + encodeURIComponent(log.replace(/"/g,\"'\")) +\n '&msg=' + encodeURIComponent(msg);\n this.settings.executeCommand('notifydeveloper', commandParameters)\n .subscribe((result: any) => { \n this.settings.log(1,'notifyDeveloper http post result=' + JSON.stringify(result));\n //this.content.scrollToTop();\n if (result.Success) {\n this.formMessage = 'Your message has been sent to developers.';\n this.settings.trackMatomoEvent(\"Interaction\", \"Run\", \"Notify Developers\", \"1\");\n } else {\n // display error message\n this.formMessage = result.Message;\n this.settings.log(2,'notifyDeveloper error message=' + result.Message);\n this.settings.trackMatomoEvent(\"Interaction\", \"Run\", \"Notify Developers\", \"0\");\n }\n }, error => {\n //this.content.scrollToTop();\n this.settings.log(2,'notifyDeveloper server error ' + JSON.stringify(error));\n this.formMessage = \"Error notifying developer\";\n this.settings.trackMatomoEvent(\"Interaction\", \"Run\", \"Notify Developers\", \"0\");\n }); \n } \n\n}","export default \"\\n \\n
\\n
\\n \\n \\n \\n \\n \\n
\\n \\n \\n \\n \\n
\\n
\\n
\\n\\n\\n
\\n

App Troubleshooting

\\n
\\n {{formMessage}}\\n
\\n \\n
\\n\\n \\n Developer Notification\\n \\n \\n \\n Message\\n \\n \\n \\n\\n \\n \\n \\n Send Notification\\n \\n \\n \\n\\n
\\n

\\n About Developer Notifications\\n

\\n

\\n If you experience problems when using the {{settings.appsettings.appName}} app you are welcome to send a message to the App developers \\n with a description of the issue.\\n

\\n

\\n Feature suggestions and other feedback are also appreciated!\\n

\\n

\\n Note that sending a developer notification will send information that otherwise does not leave your device, including:\\n

\\n \\n

\\n Personal information stored on your device but not created by the {{settings.appsettings.appName}} - including your personal details,\\n location, software installed, and any other data on your device - is never collected or sent by this function.\\n

\\n

\\n The information you send is used only to help troubleshoot the problems you have and improve the app in the future. \\n It is not shared with any parties other than your orgaisation and the app developers (whose details you can look up in the app store).\\n

\\n
\\n\\n
\\n\\n
\\n\";"],"names":[],"sourceRoot":"webpack:///"}