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EAAe;YACf,0EAAa;;AAOT,iBAAiB;IAL7B,wDAAS,CAAC;QACT,QAAQ,EAAE,oBAAoB;QAC9B,qJAAyC;;KAE1C,CAAC;GACW,iBAAiB,CAiE7B;AAjE6B;;;;;;;;;;;;;;;ACX9B,iEAAe,8SAA8S,iBAAiB,iBAAiB,6BAA6B,mIAAmI,weAAwe,+BAA+B,2hBAA2hB,eAAe,qGAAqG,qFAAqF,qSAAqS,seAAse,2LAA2L,gBAAgB,mHAAmH","sources":["./src/app/pages/content-update/content-update-routing.module.ts","./src/app/pages/content-update/content-update.module.ts","./src/app/pages/content-update/content-update.page.ts","./src/app/pages/content-update/content-update.page.html"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { ContentUpdatePage } from './content-update.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: ContentUpdatePage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class ContentUpdatePageRoutingModule {}\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 { ContentUpdatePageRoutingModule } from './content-update-routing.module';\n\nimport { ContentUpdatePage } from './content-update.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n IonicModule,\n ContentUpdatePageRoutingModule,\n SharedModule\n ],\n declarations: [ContentUpdatePage]\n})\nexport class ContentUpdatePageModule {}\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-content-update',\n templateUrl: './content-update.page.html',\n styleUrls: ['./content-update.page.scss'],\n})\nexport class ContentUpdatePage implements OnInit {\n public updateForm: FormGroup = new FormGroup({});\n public updateMessage: string = '';\n\n constructor(\n private formBuilder: FormBuilder,\n public settings: SettingsService,\n private update: UpdateService\n ) { \n this.updateForm = this.formBuilder.group({\n clearRosters: [''],\n overwriteContent: [''],\n }); \n this.updateForm.controls['clearRosters'].setValue(false);\n this.updateForm.controls['overwriteContent'].setValue(false);\n }\n\n ngOnInit() {\n this.settings.log(1,'ngOnInit ContentUpdatePage');\n this.settings.trackPageView('Content Update Page'); \n }\n \n ionViewWillEnter() {\n this.settings.log(0,'ionViewWillEnter ContentUpdatePage');\n this.update.pageIsReady('ContentUpdatePage').then((ready) => {\n // track GA page views\n this.settings.trackPageView('Manual Content Update'); \n this.settings.notificationsNewCount = this.settings.getNewNotificationsCount();\n });\n }\n\n updateApp() {\n if (this.settings.isConnected) {\n this.updateMessage = 'Updates running ... This may take a while';\n\n this.settings.checkServerForNotifications();\n\n if (this.updateForm.controls['clearRosters'].value) {\n this.settings.currentRosterData = [];\n this.settings.log(1,'Clearing roster data');\n this.settings.setSecureKey('rosterdata', '[]'); \n this.settings.trackMatomoEvent(\"Interaction\", \"Run\", \"App Update Content - Clear Rosters\", 1);\n } \n\n let updateAllContent: boolean = false;\n if (this.updateForm.controls['overwriteContent'].value) {\n this.settings.currentAppData = {\"pages\":{}};\n this.settings.log(1,'Clearing content');\n updateAllContent = true;\n this.settings.setSecureKey('appdata', '{\"pages\":{}}'); \n } \n\n this.settings.updateAllModules = true;\n this.update.appUpdate(this.settings.sourceHost, updateAllContent).then((result)=>{\n this.updateMessage = 'App updates successfully finished!';\n this.settings.trackMatomoEvent(\"Interaction\", \"Run\", \"App Update Content - Update All Content: \" + updateAllContent, 1);\n }).catch((error)=>{\n this.settings.trackMatomoEvent(\"Interaction\", \"Run\", \"App Update Content - Update All Content: \" + updateAllContent, 0);\n this.settings.log(2,'updateApp: Manual content update error: ' + error.message);\n this.updateMessage = error;\n })\n } else {\n this.updateMessage = 'Internet connection is required for App content update.';\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

Refresh App Content

\\n

\\n The {{settings.appsettings.appName}} app updates dynamic content, like news,\\n automatically when your device is connected to the Internet via a WiFi network or other data connection.\\n

\\n

\\n If you lose your Internet connection or the app cannot find content at the right time,\\n in rare circumstances content in the app might not update properly. This\\n function allows you to update your app's content manually. An Internet connection is required for it to work.\\n

\\n
{{updateMessage}}
\\n\\n
\\t\\t\\n \\n \\n

Delete all dynamic content before updating (including news, contacts, etc.). Try this option only if there are problems with the regular content update. This option might take a long time to load.

\\n \\n
\\n \\n

Delete all rosters. Note that rosters are stored only on your device for security reasons, and therefore your existing roster data will be lost forever.

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