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AMG,cAMzf,IAAK,EAASV,GACZ,MAAMW,UAAU,+BAGlB,OAAOX,CACT,ECJA,QApBA,SAAYY,EAASC,EAAKN,GAExB,IAAIO,GADJF,EAAUA,GAAW,CAAC,GACHG,SAAWH,EAAQjB,KAAOA,KAK7C,GAHAmB,EAAK,GAAe,GAAVA,EAAK,GAAY,GAC3BA,EAAK,GAAe,GAAVA,EAAK,GAAY,IAEvBD,EAAK,CACPN,EAASA,GAAU,EAEnB,IAAK,IAAIL,EAAI,EAAGA,EAAI,KAAMA,EACxBW,EAAIN,EAASL,GAAKY,EAAKZ,GAGzB,OAAOW,CACT,CAEA,OAAO,EAAUC,EACnB,C","sources":["webpack://@newday/servicing-main/./src/app/pages/complaints/complaints.component.ts","webpack://@newday/servicing-main/./src/app/pages/complaints/complaints.component.html","webpack://@newday/servicing-main/./src/app/pages/fraud-prevention/fraud-prevention.page.ts","webpack://@newday/servicing-main/./src/app/pages/fraud-prevention/fraud-prevention.page.html","webpack://@newday/servicing-main/./src/app/modules/pages/help/help.routing.ts","webpack://@newday/servicing-main/./src/app/components/form/complaint-form/complaint-form.component.ts","webpack://@newday/servicing-main/./src/app/components/form/complaint-form/complaint-form.component.html","webpack://@newday/servicing-main/./src/app/modules/pages/help/help.module.ts","webpack://@newday/servicing-main/../../node_modules/uuid/dist/esm-browser/rng.js","webpack://@newday/servicing-main/../../node_modules/uuid/dist/esm-browser/regex.js","webpack://@newday/servicing-main/../../node_modules/uuid/dist/esm-browser/validate.js","webpack://@newday/servicing-main/../../node_modules/uuid/dist/esm-browser/stringify.js","webpack://@newday/servicing-main/../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import { Component } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { AuthenticationService } from '../../services/authentication.service';\nimport { ContentService } from '../../services/content.service';\nimport { FeaturesService } from '../../services/features.service';\nimport { AccordionData } from '../../models/common';\nimport { Feature } from '../../enums/features';\nimport { BrandInfoService } from '../../services/brand-info.service';\nimport { BrandService } from '../../services/brand.service';\nimport { ComplaintsContact } from '../../models/complaints';\n\n@Component({\n selector: 'complaints',\n templateUrl: './complaints.component.html',\n})\nexport class ComplaintsComponent {\n public contentHTML: string = '';\n public contact: ComplaintsContact = null;\n public phoneNumber: string = '';\n public panels: string[] = null;\n public accordionData: AccordionData[] = null;\n public loadingContent: boolean = true;\n public complaintFormEnabled: boolean = false;\n public contentIntro: string = '';\n public introFormInstructions: string = '';\n private ngUnsubscribe: Subject = new Subject();\n\n constructor(\n private authenticationService: AuthenticationService,\n private contentService: ContentService,\n private featuresService: FeaturesService,\n private brandService: BrandService,\n private brandInfoService: BrandInfoService\n ) {}\n\n ngOnInit() {\n this.checkComplaintForm();\n this.loadContent();\n this.loadBrandInfo();\n }\n\n ngOnDestroy() {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n }\n\n private checkComplaintForm(): void {\n this.authenticationService.isLoggedIn$\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe((loggedIn) => {\n if (loggedIn) {\n this.featuresService\n .hasFeature(Feature.ComplaintFormEnabled)\n .then((response) => (this.complaintFormEnabled = response));\n }\n });\n }\n\n private loadBrandInfo(): void {\n this.brandInfoService\n .loadInfo(this.brandService.getBrand())\n .then((brandInfo) => {\n if (brandInfo.phoneNumbers.complaints.number) {\n this.phoneNumber = brandInfo.phoneNumbers.complaints.number;\n }\n });\n }\n\n private loadContent(): void {\n this.contentService\n .getContent()\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe(\n (result: any) => {\n if (result && result.complaints) {\n if (result.complaints.intro)\n this.contentIntro = result.complaints.intro;\n\n if (result.complaints.introFormInstructions)\n this.introFormInstructions =\n result.complaints.introFormInstructions;\n\n if (result.complaints.contact)\n this.contact = result.complaints.contact;\n\n if (result.complaints.accordions)\n this.accordionData = result.complaints.accordions;\n\n this.loadingContent = false;\n }\n },\n (err) => {\n this.loadingContent = false;\n }\n );\n }\n}\n","export default \"
\\n\\n

Need to make a complaint?

\\n\\n\\n\\n
\\n
\\n
\\n\\n
\\n\\n
\\n\\n
\\n \\n\\n \\n \\n\\n
\\n \\n
\\n
\\n \\n\\n\";","import { Component } from '@angular/core';\nimport { ContentService } from '../../services/content.service';\nimport { ConfigService } from '../../services/configuration.service';\nimport { BrandService } from '../../services/brand.service';\nimport { AssetConfigVariableService } from '../../services/asset-config-variable.service';\n\n@Component({\n selector: 'fraud-prevention',\n templateUrl: './fraud-prevention.page.html',\n})\nexport class FraudPreventionPage {\n public scamsExamples;\n public verticalBannerDesktop;\n public verticalBannerMobile;\n public description: string;\n public isMobileView: boolean;\n public brand: string = this.brandService.getBrand();\n public imageRootPath: string = '';\n constructor(\n private contentService: ContentService,\n private brandService: BrandService,\n private assetConfigVariableService: AssetConfigVariableService,\n configService: ConfigService\n ) {\n this.isMobileView = configService.Get('mobileView');\n this.loadContent();\n }\n\n async ngOnInit() {\n this.imageRootPath =\n await this.assetConfigVariableService.getImageRootPath();\n }\n\n private loadContent(): void {\n this.contentService.getData().then((result) => {\n if (!result || !result.fraudPrevention) {\n return;\n }\n\n this.scamsExamples = result.fraudPrevention.accordions;\n this.description = result.fraudPrevention.description;\n this.verticalBannerDesktop = result.fraudPrevention.verticalBannerDesktop;\n this.verticalBannerMobile = result.fraudPrevention.verticalBannerMobile;\n });\n }\n}\n","export default \"
\\n\\n
\\n

Fraud Prevention

\\n\\n
\\n \\n
\\n \\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n
\\n
\\n
\\n \\n \\n\\n\";","import { ModuleWithProviders } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\n// pages\nimport { ComplaintsComponent } from '../../../pages/complaints/complaints.component';\nimport { FraudPreventionPage } from '../../../pages/fraud-prevention/fraud-prevention.page';\nimport { HelpModule } from './help.module';\nimport { CurrencyExchangeRatesComponent } from '../../../components/currency-exchange-rates/currency-exchange-rates.component';\n\nconst routes: Routes = [\n {\n path: 'faqs',\n loadChildren: () => import('../faqs/faqs.module').then((m) => m.FAQModule),\n },\n {\n path: 'help-and-support',\n redirectTo: `/${window.location.pathname.split('/')[1]}/help/faqs`,\n },\n {\n path: 'complaints',\n component: ComplaintsComponent,\n data: { title: 'Complaints' },\n },\n {\n path: 'fraud-prevention',\n component: FraudPreventionPage,\n data: { title: 'Fraud Prevention' },\n },\n {\n path: 'currency-exchange',\n component: CurrencyExchangeRatesComponent,\n data: { title: 'Currency Exchange' },\n },\n {\n path: 'contact-us',\n redirectTo: `/${\n window.location.pathname.split('/')[1]\n }/help/faqs/contact-us/contact-us`,\n pathMatch: 'full',\n },\n];\n\nexport const routing: ModuleWithProviders =\n RouterModule.forChild(routes);\n","import { Component, ElementRef, HostBinding, ViewChild } from '@angular/core';\nimport { FormGroup, FormControl, Validators } from '@angular/forms';\n\nimport { AnalyticsService } from '../../../services/analytics.service';\nimport { CustomerHelpService } from '../../../services/customer-help.service';\nimport { ComplaintMessage } from '../../../models/customer-help';\nimport { TextareaCounterComponent } from '../../textarea-counter/textarea-counter.component';\nimport { WindowRef } from '../../../services/windowRef';\n\n@Component({\n selector: '[data-component=complaint-form]',\n templateUrl: './complaint-form.component.html',\n})\nexport class ComplaintFormComponent {\n @HostBinding('class.complaint-form') isComplaintForm = true;\n @ViewChild('textarea') textarea: TextareaCounterComponent;\n public complaintForm: FormGroup;\n public formDirty: boolean = false;\n public isSubmitting: boolean = false;\n public submitted: boolean = false;\n public submitError: boolean = false;\n public errorMessage: string;\n\n constructor(\n private analyticsService: AnalyticsService,\n public customerHelpService: CustomerHelpService,\n public elementRef: ElementRef,\n public windowRef: WindowRef\n ) {}\n\n ngOnInit() {\n this.complaintForm = new FormGroup({\n preferredTimeToCall8to12: new FormControl('', []),\n preferredTimeToCall12to16: new FormControl('', []),\n preferredTimeToCall16to19: new FormControl('', []),\n message: new FormControl('', [Validators.required]),\n });\n }\n\n submitComplaint() {\n this.formDirty = true;\n if (!this.complaintForm.valid || !this.preferredTimeToCallSelected())\n return;\n\n this.isSubmitting = true;\n this.submitted = false;\n this.submitError = false;\n\n const preferredTimeToCall = this.getPreferredTimeToCall();\n const message = this.complaintForm.controls['message'].value;\n const data = new ComplaintMessage(preferredTimeToCall, message);\n\n this.analyticsService.pushToDataLayer({\n preferredCallTime: preferredTimeToCall,\n event: 'gaEvent',\n });\n\n this.customerHelpService\n .postComplaintForm(data)\n .then(() => {\n this.submitError = false;\n this.scrollToTop();\n })\n .catch((err) => {\n this.errorMessage =\n err.status === 403 && err.error.data\n ? err.error.data\n : 'System currently unavailable, please try again.';\n this.submitError = true;\n })\n .then(() => {\n this.isSubmitting = false;\n this.submitted = true;\n });\n }\n\n hasError(field: string): boolean {\n const dirty =\n field == 'message'\n ? this.textarea != null && this.textarea.isDirty\n : this.complaintForm.controls[field].dirty;\n return (\n this.complaintForm != null &&\n this.complaintForm.controls[field].invalid &&\n (dirty || this.complaintForm.controls[field].touched || this.formDirty)\n );\n }\n\n preferredTimeToCallSelected(): boolean {\n if (this.complaintForm == null || !this.formDirty) return true;\n\n return this.getPreferredTimeToCall().length != 0;\n }\n\n private scrollToTop(): void {\n const yPos = this.elementRef.nativeElement.offsetTop - 20;\n this.windowRef.scrollTo(0, yPos);\n }\n\n private getPreferredTimeToCall(): string {\n if (this.complaintForm == null) return '';\n\n let prefferedTime = this.complaintForm.controls['preferredTimeToCall8to12']\n .value\n ? '08:00 - 12:00,'\n : '';\n prefferedTime += this.complaintForm.controls['preferredTimeToCall12to16']\n .value\n ? '12:00 - 16:00,'\n : '';\n prefferedTime += this.complaintForm.controls['preferredTimeToCall16to19']\n .value\n ? '16:00 - 19:00,'\n : '';\n\n return prefferedTime.length == 0\n ? ''\n : prefferedTime.substring(0, prefferedTime.length - 1);\n }\n}\n","export default \"\\n
\\n Preferred time for us to call you (Monday - Saturday)\\n\\n
\\n
\\n \\n \\n
\\n
\\n\\n
\\n
\\n \\n \\n
\\n
\\n\\n
\\n
\\n \\n \\n
\\n
\\n\\n
\\n Preferred time is a required field\\n
\\n
\\n\\n
\\n
\\n

\\n If you need to send supporting documentation or evidence alongside this\\n complaint, please send your complaint by post to the address below.\\n

\\n
\\n
\\n\\n
\\n
\\n
\\n Message is a required field\\n
\\n \\n\\n
\\n

\\n {{ errorMessage }}\\n

\\n
\\n\\n \\n Submit\\n \\n\\n\\n
\\n

\\n Thank you for registering your complaint. Our dedicated complaints team will\\n be in touch and will work hard to put things right. We will aim to contact\\n you as soon as possible but if it does take a little longer we will send you\\n an acknowledgement with your unique complaint reference number and we will\\n keep you updated throughout the complaints process.\\n

\\n
\\n\";","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { TextMaskModule } from 'angular2-text-mask';\nimport { routing } from './help.routing';\n\n// pages\nimport { ComplaintsComponent } from '../../../pages/complaints/complaints.component';\nimport { FraudPreventionPage } from '../../../pages/fraud-prevention/fraud-prevention.page';\n\n// components\nimport { ComplaintFormComponent } from '../../../components/form/complaint-form/complaint-form.component';\nimport { CollectionsModule } from '../../../components/collections/collections.module';\n// component modules\nimport { CommonComponentsModule } from '../../../modules/components/common/common.module';\nimport { CommonLoggedOutComponentsModule } from '../../../modules/components/common-logged-out/common-logged-out.module';\nimport { LoadingModule } from '../../../modules/components/loading/loading.module';\nimport { ValidationMessagesModule } from '../../../modules/components/validation-messages/validation-messages.module';\n\n// services\nimport { CustomerHelpService } from '../../../services/customer-help.service';\n\n@NgModule({\n declarations: [\n ComplaintsComponent,\n ComplaintFormComponent,\n FraudPreventionPage,\n ],\n imports: [\n routing,\n CommonModule,\n CommonComponentsModule,\n CommonLoggedOutComponentsModule,\n FormsModule,\n LoadingModule,\n ReactiveFormsModule,\n TextMaskModule,\n ValidationMessagesModule,\n CollectionsModule,\n ],\n providers: [CustomerHelpService],\n})\nexport class HelpModule {}\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;"],"names":["authenticationService","contentService","featuresService","brandService","brandInfoService","contentHTML","contact","phoneNumber","panels","accordionData","loadingContent","complaintFormEnabled","contentIntro","introFormInstructions","ngUnsubscribe","Subject","ngOnInit","this","checkComplaintForm","loadContent","loadBrandInfo","ngOnDestroy","next","complete","isLoggedIn$","pipe","takeUntil","subscribe","loggedIn","hasFeature","then","response","loadInfo","getBrand","brandInfo","phoneNumbers","complaints","number","getContent","result","intro","accordions","err","ComplaintsComponent","Component","selector","template","assetConfigVariableService","configService","brand","imageRootPath","isMobileView","Get","getImageRootPath","getData","fraudPrevention","scamsExamples","description","verticalBannerDesktop","verticalBannerMobile","FraudPreventionPage","routes","path","loadChildren","m","FAQModule","redirectTo","window","location","pathname","split","component","data","title","pathMatch","routing","RouterModule","analyticsService","customerHelpService","elementRef","windowRef","isComplaintForm","formDirty","isSubmitting","submitted","submitError","complaintForm","FormGroup","preferredTimeToCall8to12","FormControl","preferredTimeToCall12to16","preferredTimeToCall16to19","message","Validators","submitComplaint","valid","preferredTimeToCallSelected","preferredTimeToCall","getPreferredTimeToCall","controls","value","pushToDataLayer","preferredCallTime","event","postComplaintForm","scrollToTop","catch","errorMessage","status","error","hasError","field","dirty","textarea","isDirty","invalid","touched","length","yPos","nativeElement","offsetTop","scrollTo","prefferedTime","substring","ElementRef","HostBinding","ViewChild","ComplaintFormComponent","HelpModule","NgModule","declarations","imports","CommonModule","C","FormsModule","ReactiveFormsModule","CollectionsModule","providers","getRandomValues","rnds8","Uint8Array","rng","crypto","bind","msCrypto","Error","uuid","byteToHex","i","push","toString","substr","arr","offset","arguments","undefined","toLowerCase","TypeError","options","buf","rnds","random"],"sourceRoot":""}