{"version":3,"file":"account.min.js","sources":["Pages/Account/update-contact-details.ts","Pages/Account/wish-list.ts"],"sourcesContent":["export class UpdateContactDetails {\r\n public static Init(): void {\r\n new UpdateContactDetails();\r\n }\r\n\r\n constructor() {\r\n this.MapLoqateFields(\"BillingAddress\");\r\n this.MapLoqateFields(\"DeliveryAddress\");\r\n\r\n document.getElementById(\"copy-to-delivery-address\").addEventListener(\"click\", (e) => this.copyBillingToDeliveryAddress(e));\r\n }\r\n\r\n private copyBillingToDeliveryAddress(e: Event): void {\r\n e.preventDefault();\r\n\r\n this.copyFieldValue(\"BillingAddress_Company\", \"DeliveryAddress_Company\");\r\n this.copyFieldValue(\"BillingAddress_AddressLine1\", \"DeliveryAddress_AddressLine1\");\r\n this.copyFieldValue(\"BillingAddress_AddressLine2\", \"DeliveryAddress_AddressLine2\");\r\n this.copyFieldValue(\"BillingAddress_District\", \"DeliveryAddress_District\");\r\n this.copyFieldValue(\"BillingAddress_Town\", \"DeliveryAddress_Town\");\r\n this.copyFieldValue(\"BillingAddress_County\", \"DeliveryAddress_County\");\r\n this.copyFieldValue(\"BillingAddress_PostalCode\", \"DeliveryAddress_PostalCode\");\r\n this.copyFieldValue(\"BillingAddress_CountryCode3\", \"DeliveryAddress_CountryCode3\");\r\n }\r\n\r\n private copyFieldValue(sourceInputId: string, destinationInputId: string) {\r\n let sourceElement = <HTMLInputElement>document.getElementById(sourceInputId);\r\n let destinationElement = <HTMLInputElement>document.getElementById(destinationInputId);\r\n\r\n if (!sourceElement || !destinationElement) {\r\n return;\r\n }\r\n\r\n destinationElement.value = sourceElement.value;\r\n }\r\n\r\n private MapLoqateFields(fieldPrefix: string): void {\r\n let options = {\r\n key: \"TM62-NA98-RK41-AU82\",\r\n bar: { visible: true },\r\n GeoLocationEnabled: 'false',\r\n GeoLocationRadius: 50,\r\n GeoLocationMaxItems: 10,\r\n setCountryByIP: true,\r\n suppressAutocomplete: false\r\n };\r\n let fields = [\r\n { element: fieldPrefix + \"-lookup\", field: \"Line1\", mode: pca.fieldMode.SEARCH }\r\n ];\r\n\r\n let control = new pca.Address(fields, options);\r\n control.listen(\"populate\", (address, variations) => this.loquatePopulated(address, variations, fieldPrefix));\r\n }\r\n\r\n private loquatePopulated(address, variations, fieldPrefix: string): void {\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"-lookup\")).value = \"\";\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"_Company\")).value = address.Company;\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"_AddressLine1\")).value = address.Line1;\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"_AddressLine2\")).value = address.Line2;\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"_District\")).value = address.Line3;\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"_Town\")).value = address.City;\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"_County\")).value = address.Province;\r\n (<HTMLInputElement>document.getElementById(fieldPrefix + \"_PostalCode\")).value = address.PostalCode;\r\n (<HTMLSelectElement>document.getElementById(fieldPrefix + \"_CountryCode3\")).value = address.CountryIso3;\r\n\r\n this.setFieldLabelsByCountryCode(address.CountryIso3, fieldPrefix);\r\n\r\n let addressLookupContainer = document.getElementById(fieldPrefix + \"-lookup-container\");\r\n addressLookupContainer.classList.add(\"hidden\");\r\n }\r\n\r\n private setFieldLabelsByCountryCode(countryIso3: string, fieldPrefix: string): void {\r\n let countyElement = <HTMLInputElement>document.querySelector(`label[for=${fieldPrefix}_County]`);\r\n\r\n if (countryIso3 === \"USA\" || countryIso3 === \"CAN\") {\r\n countyElement.innerText = \"State:\";\r\n }\r\n else {\r\n countyElement.innerText = \"County:\";\r\n }\r\n }\r\n}\r\n\r\nif (document.body.dataset.pageInit == \"address\") {\r\n UpdateContactDetails.Init();\r\n}\r\n","interface IModelValidationError {\r\n key: string;\r\n message: string;\r\n}\r\n\r\nexport class WishList {\r\n private parentDialog = <HTMLDivElement>document.getElementById(\"wishlist-email-dialog\");\r\n private emailSentIndicatorClass = 'email-sent';\r\n private localeUrlPrefix = document.body.dataset.localeUrlPrefix;\r\n private sendWishlistLink = <HTMLButtonElement>document.getElementById(\"send-wishlist\");\r\n private sendEmailButton = document.getElementById(\"send-email\");\r\n\r\n private friendName = document.getElementById(\"friend-name\") as HTMLInputElement;\r\n private friendEmail = document.getElementById(\"friend-email\") as HTMLInputElement;\r\n private friendConfirm = document.getElementById(\"friend-confirm\") as HTMLInputElement;\r\n private message = document.getElementById(\"message\") as HTMLInputElement;\r\n\r\n private allFields = [this.friendName, this.friendEmail, this.friendConfirm, this.message];\r\n private tips = document.querySelector(\".validateTips\");\r\n\r\n public static Init(): void {\r\n new WishList();\r\n }\r\n\r\n constructor() {\r\n if (this.sendEmailButton) {\r\n this.sendEmailButton.addEventListener(\"click\", (e) => this.onSendEmailClicked(e));\r\n }\r\n\r\n if (this.sendWishlistLink) { // Not shown when no items in wishlist.\r\n this.sendWishlistLink.addEventListener(\"click\", (e) => this.postTellAFriend(e));\r\n }\r\n }\r\n\r\n private onSendEmailClicked(e: MouseEvent): any {\r\n e.preventDefault();\r\n\r\n window.Modal.OpenModal(this.parentDialog, () => {\r\n this.removeErrorClasses();\r\n });\r\n }\r\n\r\n private postTellAFriend(e: MouseEvent): void {\r\n e.preventDefault();\r\n\r\n this.removeErrorClasses();\r\n\r\n this.sendEmailButton.classList.remove(this.emailSentIndicatorClass);\r\n\r\n let postData =\r\n {\r\n \"FriendConfirm\": this.friendConfirm.value,\r\n \"FriendEmail\": this.friendEmail.value,\r\n \"FriendName\": this.friendName.value,\r\n \"Message\": this.message.value,\r\n };\r\n\r\n fetch(this.localeUrlPrefix + \"/account/share-wishlist\",\r\n {\r\n body: JSON.stringify(postData),\r\n headers: { \"Content-Type\": \"application/json\" },\r\n method: \"POST\",\r\n })\r\n .then(response => {\r\n if (!response || !response.ok) {\r\n throw new Error(\"Add to wish list failed.\");\r\n }\r\n return response.json();\r\n })\r\n .then((data: IModelValidationError[]) => {\r\n this.tellAFriendSuccess(data);\r\n })\r\n .catch((error: Error) => {\r\n this.transportError(error);\r\n });\r\n }\r\n\r\n private removeErrorClasses(): void {\r\n this.allFields.forEach(field => field.classList.remove(\"ui-state-error\"));\r\n }\r\n\r\n private tellAFriendSuccess(data: IModelValidationError[]): void {\r\n if (this.checkForShareError(data) === false) {\r\n window.Modal.CloseModal();\r\n this.sendEmailButton.classList.add(this.emailSentIndicatorClass);\r\n }\r\n }\r\n\r\n private transportError(error: Error): void {\r\n window.IssueLogger.log(error.message, \"addToWishList\", error);\r\n\r\n let errors: IModelValidationError[] = [];\r\n\r\n errors.push({ key: \"\", message: \"Unable to send your wishlist, sorry.\" });\r\n\r\n this.checkForShareError(errors);\r\n }\r\n\r\n private checkForShareError(errors: IModelValidationError[]): boolean {\r\n //let errors = <IModelValidationError[]>JSON.parse(json);\r\n\r\n if (!errors || errors.length === 0) {\r\n return false;\r\n }\r\n\r\n let errorHtml: string[] = [];\r\n\r\n errorHtml.push(\"<ul>\");\r\n\r\n for (const element of errors) {\r\n errorHtml.push(\"<li>\");\r\n errorHtml.push(element.message);\r\n errorHtml.push(\"</li>\");\r\n }\r\n\r\n errorHtml.push(\"</ul>\");\r\n\r\n this.tips.innerHTML = \"Please correct the following errors;<br /><br />\" + errorHtml.join(\"\");\r\n\r\n return true;\r\n }\r\n}\r\n\r\nif (document.body.dataset.pageInit == \"wishlist\") {\r\n WishList.Init();\r\n}\r\n"],"names":["UpdateContactDetails","Init","constructor","this","MapLoqateFields","document","getElementById","addEventListener","e","copyBillingToDeliveryAddress","preventDefault","copyFieldValue","sourceInputId","destinationInputId","sourceElement","destinationElement","value","fieldPrefix","options","key","bar","visible","GeoLocationEnabled","GeoLocationRadius","GeoLocationMaxItems","setCountryByIP","suppressAutocomplete","fields","element","field","mode","pca","fieldMode","SEARCH","Address","listen","address","variations","loquatePopulated","Company","Line1","Line2","Line3","City","Province","PostalCode","CountryIso3","setFieldLabelsByCountryCode","classList","add","countryIso3","countyElement","querySelector","innerText","body","dataset","pageInit","WishList","parentDialog","emailSentIndicatorClass","localeUrlPrefix","sendWishlistLink","sendEmailButton","friendName","friendEmail","friendConfirm","message","allFields","tips","onSendEmailClicked","postTellAFriend","window","Modal","OpenModal","removeErrorClasses","remove","postData","FriendConfirm","FriendEmail","FriendName","Message","fetch","JSON","stringify","headers","method","then","response","ok","Error","json","data","tellAFriendSuccess","catch","error","transportError","forEach","checkForShareError","CloseModal","IssueLogger","log","errors","push","length","errorHtml","innerHTML","join"],"mappings":";;;;;;;;;;;;;;;;;;;;;gPAAaA,CACF,CAAA,MAAA,CAAA,IAAOC,CACV,CAAA,CAAA,GAAA,CAAID,EAGR,WAAAE,CAAAA,CAAAA,CACIC,KAAKC,eAAgB,CAAA,CAAA,cAAA,CAAA,CAAA,CACrBD,IAAKC,CAAAA,eAAAA,CAAgB,CAErBC,eAAAA,CAAAA,CAAAA,CAAAA,QAAAA,CAASC,cAAe,CAAA,CAAA,IAAA,CAAA,EAAA,CAAA,QAAA,CAAA,OAAA,CAAA,CAAA,CAA4BC,gBAAiB,CAAA,CAAA,KAAA,CAAA,CAAA,CAAUC,CAAML,CAAAA,CAAAA,IAAAA,CAAKM,4BAA6BD,CAAAA,CAAAA,CAAAA,CAAAA,EAGnH,4BAAAC,CAA6BD,CACjCA,CAAAA,CAAAA,CAAAA,CAAEE,cAEFP,CAAAA,CAAAA,CAAAA,IAAAA,CAAKQ,cAAe,CAAA,CAAA,sBAAA,CAAA,CAA0B,CAC9CR,uBAAAA,CAAAA,CAAAA,CAAAA,IAAAA,CAAKQ,cAAe,CAAA,CAAA,2BAAA,CAAA,CAA+B,CACnDR,4BAAAA,CAAAA,CAAAA,CAAAA,IAAAA,CAAKQ,cAAe,CAAA,CAAA,2BAAA,CAAA,CAA+B,CACnDR,4BAAAA,CAAAA,CAAAA,CAAAA,IAAAA,CAAKQ,eAAe,CAA2B,uBAAA,CAAA,CAAA,CAAA,wBAAA,CAAA,CAAA,CAC/CR,IAAKQ,CAAAA,cA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