{"version":3,"sources":["webpack://cartLib/webpack/universalModuleDefinition","webpack://cartLib/webpack/bootstrap","webpack://cartLib/./node_modules/vuex/dist/vuex.esm.js","webpack://cartLib/./node_modules/vue-class-component/dist/vue-class-component.common.js","webpack://cartLib/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://cartLib/(webpack)/buildin/global.js","webpack://cartLib/./node_modules/current-script-polyfill/currentScript.js","webpack://cartLib/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://cartLib/./src/App.vue?0836","webpack://cartLib/./node_modules/tslib/tslib.es6.js","webpack://cartLib/./node_modules/vue-property-decorator/lib/vue-property-decorator.js","webpack://cartLib/./src/components/ShoppingBag.vue?6c9f","webpack://cartLib/./src/interfaces.js","webpack://cartLib/./src/utilities.js","webpack://cartLib/./src/store.js","webpack://cartLib/./src/components/items/OrderItem.vue?1ac1","webpack://cartLib/./src/components/pricing/PriceDisplay.vue?942b","webpack://cartLib/./src/components/pricing/Price.js","webpack://cartLib/./src/components/ui/animations/TextAnimation.vue?89c2","webpack://cartLib/./src/components/ui/animations/TextAnimation.vue?9c17","webpack://cartLib/./src/components/ui/animations/TextAnimation.vue?151b","webpack://cartLib/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://cartLib/./src/components/ui/animations/TextAnimation.vue","webpack://cartLib/./src/components/pricing/PriceDisplay.vue?9b33","webpack://cartLib/./src/components/pricing/PriceDisplay.vue?d824","webpack://cartLib/./src/components/pricing/PriceDisplay.vue","webpack://cartLib/./src/components/optionlist/OptionList.vue?d317","webpack://cartLib/./src/mixins/ComponentID.js","webpack://cartLib/./src/components/optionlist/OptionList.vue?79a6","webpack://cartLib/./src/components/optionlist/OptionList.vue?e1e0","webpack://cartLib/./src/components/optionlist/OptionList.vue","webpack://cartLib/./src/components/optionlist/ComboBox.vue?ef26","webpack://cartLib/./src/components/optionlist/ComboBox.vue?c76e","webpack://cartLib/./src/components/optionlist/ComboBox.vue?8c61","webpack://cartLib/./src/components/optionlist/ComboBox.vue","webpack://cartLib/./src/components/items/PersonalisationItem.vue?ed46","webpack://cartLib/./src/components/items/PersonalisationDetails.vue?5cf5","webpack://cartLib/./src/components/items/PersonalisationString.vue?8c10","webpack://cartLib/./src/components/items/PersonalisationString.vue?727c","webpack://cartLib/./src/components/items/PersonalisationString.vue?b90c","webpack://cartLib/./src/components/items/PersonalisationString.vue","webpack://cartLib/./src/components/items/PersonalisationDetails.vue?c61b","webpack://cartLib/./src/components/items/PersonalisationDetails.vue?1366","webpack://cartLib/./src/components/items/PersonalisationDetails.vue","webpack://cartLib/./src/components/ui/ToolTip.vue?98cc","webpack://cartLib/./src/components/ui/ToolTip.vue?74c1","webpack://cartLib/./src/components/ui/ToolTip.vue?098d","webpack://cartLib/./src/components/ui/ToolTip.vue","webpack://cartLib/./src/components/items/PersonalisationItem.vue?e1c8","webpack://cartLib/./src/components/items/PersonalisationItem.vue?d0bd","webpack://cartLib/./src/components/items/PersonalisationItem.vue","webpack://cartLib/./src/components/ui/animations/Animation.vue?a52a","webpack://cartLib/./src/components/ui/animations/Animation.vue?013a","webpack://cartLib/./src/components/ui/animations/Animation.vue?b8d9","webpack://cartLib/./src/components/ui/animations/Animation.vue","webpack://cartLib/./src/components/gtm/DataLayerProduct.js","webpack://cartLib/./src/components/gtm/EcommerceDataLayer.js","webpack://cartLib/./src/components/gtm/UpdateItemDataLayer.js","webpack://cartLib/./src/components/items/Overlay.vue?5b18","webpack://cartLib/./src/components/items/Overlay.vue?0935","webpack://cartLib/./src/components/items/Overlay.vue?43d3","webpack://cartLib/./src/components/items/Overlay.vue","webpack://cartLib/./src/components/items/OrderItem.vue?9395","webpack://cartLib/./src/components/items/OrderItem.vue?23a6","webpack://cartLib/./src/components/items/OrderItem.vue","webpack://cartLib/./src/components/items/OrderItemAlternativeView.vue?fada","webpack://cartLib/./src/components/items/OrderItemAlternativeView.vue?9041","webpack://cartLib/./src/components/items/OrderItemAlternativeView.vue?c132","webpack://cartLib/./src/components/items/OrderItemAlternativeView.vue","webpack://cartLib/./src/components/Promotions.vue?5e96","webpack://cartLib/./src/components/ui/Modal.js","webpack://cartLib/./src/components/ui/ModalContent.vue?df8e","webpack://cartLib/./src/components/ui/ModalContent.vue?4b8c","webpack://cartLib/./src/components/ui/ModalContent.vue?afce","webpack://cartLib/./src/components/ui/ModalContent.vue","webpack://cartLib/./src/components/ui/animations/GroupAnimation.vue?4dac","webpack://cartLib/./src/components/ui/animations/GroupAnimation.vue?9a08","webpack://cartLib/./src/components/ui/animations/GroupAnimation.vue?557e","webpack://cartLib/./src/components/ui/animations/GroupAnimation.vue","webpack://cartLib/./src/components/Promotions.vue?72d3","webpack://cartLib/./src/components/Promotions.vue?665c","webpack://cartLib/./src/components/Promotions.vue","webpack://cartLib/./src/components/RewardPoints.vue?0527","webpack://cartLib/./src/components/RewardPoints.vue?c0ce","webpack://cartLib/./src/components/RewardPoints.vue?43bf","webpack://cartLib/./src/components/RewardPoints.vue","webpack://cartLib/./src/components/OrderSummary.vue?fa16","webpack://cartLib/./src/components/ContentManagement.vue?7992","webpack://cartLib/./src/components/ContentManagement.vue?8a26","webpack://cartLib/./src/components/ContentManagement.vue?d75a","webpack://cartLib/./src/components/ContentManagement.vue","webpack://cartLib/./src/components/ui/carousel/Carousel.vue?a075","webpack://cartLib/./src/components/ui/carousel/Slide.vue?b93c","webpack://cartLib/./src/components/ui/carousel/Slide.vue?2a04","webpack://cartLib/./src/components/ui/carousel/Slide.vue?28ae","webpack://cartLib/./src/components/ui/carousel/Slide.vue","webpack://cartLib/./src/components/ui/carousel/Carousel.vue?bb32","webpack://cartLib/./src/components/ui/carousel/Carousel.vue?a163","webpack://cartLib/./src/components/ui/carousel/Carousel.vue","webpack://cartLib/./src/components/items/CheckoutOrderItem.vue?b7f5","webpack://cartLib/./src/components/items/CheckoutOrderItem.vue?58df","webpack://cartLib/./src/components/items/CheckoutOrderItem.vue?a0a5","webpack://cartLib/./src/components/items/CheckoutOrderItem.vue","webpack://cartLib/./src/components/OrderSummary.vue?6f84","webpack://cartLib/./src/components/OrderSummary.vue?37df","webpack://cartLib/./src/components/OrderSummary.vue","webpack://cartLib/./src/components/LoginSignUp.vue?db17","webpack://cartLib/./src/components/LoginSignUp.vue?2b9f","webpack://cartLib/./src/components/LoginSignUp.vue?2255","webpack://cartLib/./src/components/LoginSignUp.vue","webpack://cartLib/./src/components/DynamicDeliveryBanner.vue?eecf","webpack://cartLib/./src/components/DynamicDeliveryBanner.vue?8b08","webpack://cartLib/./src/components/DynamicDeliveryBanner.vue?e448","webpack://cartLib/./src/components/DynamicDeliveryBanner.vue","webpack://cartLib/./src/components/CuratedProducts.vue?c4fa","webpack://cartLib/./src/components/CuratedProducts.vue?45cd","webpack://cartLib/./src/components/CuratedProducts.vue?ed9a","webpack://cartLib/./src/components/CuratedProducts.vue","webpack://cartLib/./src/components/IncentiveOffer.vue?7452","webpack://cartLib/./src/components/IncentiveOffer.vue?6ca8","webpack://cartLib/./src/components/IncentiveOffer.vue?e50c","webpack://cartLib/./src/components/IncentiveOffer.vue","webpack://cartLib/./src/components/ShoppingBag.vue?3e06","webpack://cartLib/./src/components/ShoppingBag.vue?4fb8","webpack://cartLib/./src/components/ShoppingBag.vue","webpack://cartLib/./src/components/Checkout.vue?15a0","webpack://cartLib/./src/components/Delivery.vue?a9b4","webpack://cartLib/./src/components/address/AddressSummary.vue?7d0f","webpack://cartLib/./src/components/address/AddressSummary.vue?7dc6","webpack://cartLib/./src/components/address/AddressSummary.vue?f08b","webpack://cartLib/./src/components/address/AddressSummary.vue","webpack://cartLib/./src/components/address/AddressFields.vue?6a7e","webpack://cartLib/./src/components/address/Address.js","webpack://cartLib/./src/components/address/AddressSelector.js","webpack://cartLib/./src/components/address/KleberInput.vue?202a","webpack://cartLib/./src/components/ui/Autocomplete.vue?de99","webpack://cartLib/./src/components/ui/htmlcomponents/InputField.vue?1052","webpack://cartLib/./src/components/ui/htmlcomponents/InputField.vue?3af2","webpack://cartLib/./src/components/ui/htmlcomponents/InputField.vue?427c","webpack://cartLib/./src/components/ui/htmlcomponents/InputField.vue","webpack://cartLib/./src/components/ui/Autocomplete.vue?357c","webpack://cartLib/./src/components/ui/Autocomplete.vue?29df","webpack://cartLib/./src/components/ui/Autocomplete.vue","webpack://cartLib/./src/components/address/KleberAddress.js","webpack://cartLib/./src/components/address/Kleber.js","webpack://cartLib/./src/components/address/KleberInput.vue?857a","webpack://cartLib/./src/components/address/KleberInput.vue?9b10","webpack://cartLib/./src/components/address/KleberInput.vue","webpack://cartLib/./src/components/address/AddressField.vue?0460","webpack://cartLib/./src/components/address/AddressField.vue?7870","webpack://cartLib/./src/components/address/AddressField.vue?d36d","webpack://cartLib/./src/components/address/AddressField.vue","webpack://cartLib/./src/components/ChangeCountryModal.vue?34f4","webpack://cartLib/./src/components/ChangeCountryModal.vue?10c7","webpack://cartLib/./src/components/ChangeCountryModal.vue?5f39","webpack://cartLib/./src/components/ChangeCountryModal.vue","webpack://cartLib/./src/components/address/AddressFields.vue?0a8c","webpack://cartLib/./src/components/address/AddressFields.vue?c9a7","webpack://cartLib/./src/components/address/AddressFields.vue","webpack://cartLib/./src/components/address/AddressBook.vue?68c0","webpack://cartLib/./src/components/address/AddressBook.vue?6e56","webpack://cartLib/./src/components/address/AddressBook.vue?659e","webpack://cartLib/./src/components/address/AddressBook.vue","webpack://cartLib/./src/components/DeliveryOptions.vue?5535","webpack://cartLib/./src/components/DeliveryOption.vue?8ab2","webpack://cartLib/./src/components/ATLStatusMessage.vue?99c6","webpack://cartLib/./src/components/ATLStatusMessage.vue?a15f","webpack://cartLib/./src/components/ATLStatusMessage.vue?b375","webpack://cartLib/./src/components/ATLStatusMessage.vue","webpack://cartLib/./src/components/items/DeliveryItem.vue?b2a1","webpack://cartLib/./src/components/items/DeliveryItem.vue?da5d","webpack://cartLib/./src/components/items/DeliveryItem.vue?8d09","webpack://cartLib/./src/components/items/DeliveryItem.vue","webpack://cartLib/./src/components/DeliveryOption.vue?60a6","webpack://cartLib/./src/components/DeliveryOption.vue?2ec7","webpack://cartLib/./src/components/DeliveryOption.vue","webpack://cartLib/./src/components/DeliveryOptions.vue?0a31","webpack://cartLib/./src/components/DeliveryOptions.vue?7bc0","webpack://cartLib/./src/components/DeliveryOptions.vue","webpack://cartLib/./src/components/GiftFulfilment.vue?1075","webpack://cartLib/./src/components/ui/htmlcomponents/TextAreaField.vue?cee6","webpack://cartLib/./src/components/ui/htmlcomponents/TextAreaField.vue?379a","webpack://cartLib/./src/components/ui/htmlcomponents/TextAreaField.vue?793c","webpack://cartLib/./src/components/ui/htmlcomponents/TextAreaField.vue","webpack://cartLib/./src/components/GiftFulfilment.vue?d9f3","webpack://cartLib/./src/components/GiftFulfilment.vue?1bc7","webpack://cartLib/./src/components/GiftFulfilment.vue","webpack://cartLib/./src/components/Delivery.vue?2657","webpack://cartLib/./src/components/Delivery.vue?1282","webpack://cartLib/./src/components/Delivery.vue","webpack://cartLib/./src/components/payment/Payment.vue?ee61","webpack://cartLib/./src/components/payment/PaymentOption.vue?898d","webpack://cartLib/./src/components/payment/PaymentOption.vue?75fa","webpack://cartLib/./src/components/payment/PaymentOption.vue?24ab","webpack://cartLib/./src/components/payment/PaymentOption.vue","webpack://cartLib/./src/components/payment/types/PaymentType.vue?0ed0","webpack://cartLib/./src/components/payment/types/PaymentType.vue?486b","webpack://cartLib/./src/components/payment/types/PaymentType.vue?c1be","webpack://cartLib/./src/components/payment/types/PaymentType.vue","webpack://cartLib/./src/components/payment/types/ExternalProvider.vue?17f0","webpack://cartLib/./src/components/payment/types/ExternalProvider.vue?1e7c","webpack://cartLib/./src/components/payment/types/ExternalProvider.vue?53d3","webpack://cartLib/./src/components/payment/types/ExternalProvider.vue","webpack://cartLib/./src/components/payment/AppliedGiftCards.vue?6e23","webpack://cartLib/./src/components/payment/AppliedGiftCards.vue?38c8","webpack://cartLib/./src/components/payment/AppliedGiftCards.vue?dba8","webpack://cartLib/./src/components/payment/AppliedGiftCards.vue","webpack://cartLib/./src/components/payment/types/GiftCard.vue?0571","webpack://cartLib/./src/components/ui/htmlcomponents/GiftCardInputField.vue?8806","webpack://cartLib/./src/components/ui/htmlcomponents/GiftCardInputField.vue?1977","webpack://cartLib/./src/components/ui/htmlcomponents/GiftCardInputField.vue?9b7c","webpack://cartLib/./src/components/ui/htmlcomponents/GiftCardInputField.vue","webpack://cartLib/./src/components/payment/types/GiftCard.vue?b01d","webpack://cartLib/./src/components/payment/types/GiftCard.vue?2b0d","webpack://cartLib/./src/components/payment/types/GiftCard.vue","webpack://cartLib/./src/components/payment/types/AfterPay.vue?59a9","webpack://cartLib/./src/components/payment/types/AfterPay.vue?8a16","webpack://cartLib/./src/components/payment/types/AfterPay.vue?14ff","webpack://cartLib/./src/components/payment/types/AfterPay.vue","webpack://cartLib/./src/components/payment/types/CreditCard.vue?50a3","webpack://cartLib/./src/components/ui/htmlcomponents/CreditCardInputField.vue?e599","webpack://cartLib/./src/components/ui/htmlcomponents/CreditCardInputField.vue?1e24","webpack://cartLib/./src/components/ui/htmlcomponents/CreditCardInputField.vue?dd04","webpack://cartLib/./src/components/ui/htmlcomponents/CreditCardInputField.vue","webpack://cartLib/./src/components/recaptcha/Recaptcha.vue?c551","webpack://cartLib/./src/components/recaptcha/RecaptchaAsync.js","webpack://cartLib/./src/components/recaptcha/Recaptcha.vue?dbcc","webpack://cartLib/./src/components/recaptcha/Recaptcha.vue?d297","webpack://cartLib/./src/components/recaptcha/Recaptcha.vue","webpack://cartLib/./src/components/payment/StoredPayment.vue?d09c","webpack://cartLib/./src/components/payment/StoredPayment.vue?463c","webpack://cartLib/./src/components/payment/StoredPayment.vue?d897","webpack://cartLib/./src/components/payment/StoredPayment.vue","webpack://cartLib/./src/components/payment/types/CreditCard.vue?5245","webpack://cartLib/./src/components/payment/types/CreditCard.vue?ff93","webpack://cartLib/./src/components/payment/types/CreditCard.vue","webpack://cartLib/./src/components/payment/PaymentOrderSummary.vue?63d8","webpack://cartLib/./src/components/payment/PaymentOrderSummary.vue?8e85","webpack://cartLib/./src/components/payment/PaymentOrderSummary.vue?c382","webpack://cartLib/./src/components/payment/PaymentOrderSummary.vue","webpack://cartLib/./src/components/payment/types/Klarna.vue?aa94","webpack://cartLib/./src/components/payment/types/Klarna.vue?d9d3","webpack://cartLib/./src/components/payment/types/Klarna.vue?673c","webpack://cartLib/./src/components/payment/types/Klarna.vue","webpack://cartLib/./src/components/payment/Payment.vue?4c1d","webpack://cartLib/./src/components/payment/Payment.vue?1e81","webpack://cartLib/./src/components/payment/Payment.vue","webpack://cartLib/./src/components/clickcollect/ClickCollect.vue?a217","webpack://cartLib/./src/components/clickcollect/PickupDetails.vue?dfaf","webpack://cartLib/./src/components/clickcollect/CollectionDetails.js","webpack://cartLib/./src/components/clickcollect/PickupDetails.vue?899f","webpack://cartLib/./src/components/clickcollect/PickupDetails.vue?088c","webpack://cartLib/./src/components/clickcollect/PickupDetails.vue","webpack://cartLib/./src/components/clickcollect/StoreFinder.vue?c926","webpack://cartLib/./src/components/clickcollect/PickupStore.vue?ddc1","webpack://cartLib/./src/components/clickcollect/PickupStore.vue?b033","webpack://cartLib/./src/components/clickcollect/PickupStore.vue?18b7","webpack://cartLib/./src/components/clickcollect/PickupStore.vue","webpack://cartLib/./src/components/clickcollect/StoreFinder.vue?5258","webpack://cartLib/./src/components/clickcollect/StoreFinder.vue?f4df","webpack://cartLib/./src/components/clickcollect/StoreFinder.vue","webpack://cartLib/./src/components/clickcollect/ClickCollect.vue?c3d2","webpack://cartLib/./src/components/clickcollect/ClickCollect.vue?bd33","webpack://cartLib/./src/components/clickcollect/ClickCollect.vue","webpack://cartLib/./src/components/gtm/InitialDataLayer.js","webpack://cartLib/./src/components/ParcelLockerWidget.vue?dddc","webpack://cartLib/./src/components/ParcelLockerWidget.vue?d2e2","webpack://cartLib/./src/components/ParcelLockerWidget.vue?9960","webpack://cartLib/./src/components/ParcelLockerWidget.vue","webpack://cartLib/./src/components/Checkout.vue?ac33","webpack://cartLib/./src/components/Checkout.vue?cf61","webpack://cartLib/./src/components/Checkout.vue","webpack://cartLib/./src/components/OrderConfirmation.vue?a1cd","webpack://cartLib/./src/components/items/OrderConfirmationItem.vue?78b1","webpack://cartLib/./src/components/items/OrderConfirmationItem.vue?6aa1","webpack://cartLib/./src/components/items/OrderConfirmationItem.vue?e46b","webpack://cartLib/./src/components/items/OrderConfirmationItem.vue","webpack://cartLib/./src/components/items/OrderConfirmationItemAlternativeView.vue?7a9d","webpack://cartLib/./src/components/items/OrderConfirmationItemAlternativeView.vue?2d53","webpack://cartLib/./src/components/items/OrderConfirmationItemAlternativeView.vue?40e8","webpack://cartLib/./src/components/items/OrderConfirmationItemAlternativeView.vue","webpack://cartLib/./src/components/OrderConfirmation.vue?ac81","webpack://cartLib/./src/components/OrderConfirmation.vue?8ee8","webpack://cartLib/./src/components/OrderConfirmation.vue","webpack://cartLib/./src/components/ui/AriaAnnouncement.vue?7934","webpack://cartLib/./src/components/ui/AriaAnnouncement.vue?08de","webpack://cartLib/./src/components/ui/AriaAnnouncement.vue?a2fd","webpack://cartLib/./src/components/ui/AriaAnnouncement.vue","webpack://cartLib/./src/plugins/AriaAnnouncer.js","webpack://cartLib/./src/plugins/HoverSurpressor.js","webpack://cartLib/./src/plugins/FocusHandler.js","webpack://cartLib/./src/App.vue?ec60","webpack://cartLib/./src/App.vue?bfbe","webpack://cartLib/./src/App.vue","webpack://cartLib/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,yBAAyB;AACxC,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;;AAErB;;AAEA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA,2CAA2C,0BAA0B,EAAE;AACvE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0BAA0B,cAAc,qBAAqB;;AAE7D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,MAAM,KAAqC,EAAE,EAE1C;;AAEH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;;AAEA;AACA,MAAM,KAAqC,EAAE,EAE1C;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,KAAqC,EAAE,EAK1C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,oCAAoC,EAAE;AAClE;AACA;;AAEA;AACA,4BAA4B;AAC5B,uEAAuE,EAAE;AACzE;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B;;AAE1B;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,QAAQ;;AAER;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,KAAqC,EAAE,EAI1C;;AAEH,gCAAgC;AAChC,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qCAAqC,uBAAuB,EAAE;;AAE9D;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,SAAS,qBAAqB;;AAE1D;AACA;AACA;;AAEA;AACA,MAAM,KAAqC,EAAE,EAE1C;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB;AAClB;AACA;AACA,QAAQ,KAAqC,EAAE,EAE1C;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH,4CAA4C,oCAAoC,EAAE;;AAElF;AACA,IAAI,KACyB;AAC7B,IAAI,EAKD;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gBAAgB;AAChB;AACA;AACA,QAAQ,KAAqC,EAAE,EAE1C;AACL;AACA;;AAEA;AACA;AACA,8BAA8B,mBAAmB,EAAE;AACnD,+BAA+B,yCAAyC,EAAE;AAC1E,GAAG;AACH,QAAQ,KAAqC,EAAE,EAG1C;AACL;;AAEA;AACA,gDAAgD,yBAAyB,EAAE;AAC3E;;AAEA;AACA;AACA;AACA,gCAAgC,kBAAkB,EAAE;AACpD,iCAAiC,wCAAwC,EAAE;AAC3E,KAAK;AACL,UAAU,KAAqC,EAAE,EAG1C;AACP;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA,yCAAyC,aAAa;AACtD;AACA;;AAEA;AACA;;AAEA,MAAM,KAAqC,EAAE,EAE1C;AACH,6CAA6C,6CAA6C,EAAE;AAC5F;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA,iCAAiC,eAAe;;AAEhD,MAAM,KAAqC,EAAE,EAG1C;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iCAAiC,eAAe;;AAEhD,MAAM,KAAqC,EAAE,EAE1C;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,uBAAuB,EAAE;AACjD;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,8BAA8B,yBAAyB,EAAE;AACzD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY,KAA8D,EAAE,EAGnE;AACT;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAY,KAAgE,EAAE,EAGrE;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C,uBAAuB,2CAA2C;AAClE,KAAK;AACL;AACA,wBAAwB,0CAA0C;AAClE;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAwB,4BAA4B,EAAE;AACtD;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,QAAQ,KAAqC,EAAE,EAE1C;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC,4BAA4B;AAC5D,QAAQ,KAAqC,EAAE,EAE1C;AACL,GAAG,GAAG,yBAAyB;AAC/B;;AAEA;AACA;AACA,yCAAyC,mBAAmB,EAAE;AAC9D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM,KAAqC,EAAE,EAE1C;;AAEH,UAAU;AACV;;AAEA;AACA;AACA,QAAQ,KAAqC,EAAE,EAI1C;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,KAAsE,EAAE,EAG3E;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA,CAAC,EAAE;;AAEH;AACA;AACA,iCAAiC,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB;AAC1F,iBAAiB,iBAAiB,QAAQ,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB;AACzG,WAAW,aAAa;AACxB,YAAY;AACZ;AACA;AACA;AACA,8BAA8B,UAAU,qBAAqB,EAAE,EAAE;AACjE,2CAA2C,UAAU,0BAA0B,EAAE,EAAE;AACnF;;AAEA;AACA;AACA,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;AACA;AACA,MAAM,KAAgD,EAAE,EAErD;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe,kEAAS,EAAC;AAC0E;;;;;;;;;;ACj/BnG;AACA;AACA;AACA;AACA;AACa;;AAEb,8CAA8C,cAAc;;AAE5D,+BAA+B,iFAAiF;;AAEhH,0BAA0B,mBAAO,CAAC,MAAK;;AAEvC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,qCAAqC,EAAE;AAC5F;AACA;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,gBAAgB,EAAE;AACxD,2CAA2C,iBAAiB,EAAE;AAC9D;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,QAAQ,KAAqC,EAAE,EAK1C;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,cAAc;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0CAA0C,oBAAoB,EAAE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KACuC,EAAE,EAI5C;AACT;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;AC5QA,mD;;;;;;;ACAA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;ACnBA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;;;;ACnCD;;AAEA;AACA,MAAM,IAAuC;AAC7C,IAAI,mBAAO,CAAC,MAAyB;AACrC;;AAEA,MAAM,eAAC;AACP,OAAO,eAAC,sCAAsC,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;AACA;;AAEO;AACP,4CAA4C;AAC5C;;;;;;;;;;;ACnMA;AACa;AACS;AACmD;AAC7B;AAC5C;AACA;AACA;AACA;AACA;AACO;AACP,WAAW,qDAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACO;AACP,WAAW,qDAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,6BAA6B,cAAc;AAC3C,WAAW,qDAAe;AAC1B,+DAA+D;AAC/D,kCAAkC;AAClC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACO;AACP,6BAA6B,cAAc;AAC3C,WAAW,qDAAe;AAC1B,+DAA+D;AAC/D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,6BAA6B,cAAc;AAC3C;AACA,WAAW,qDAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,qDAAqD;AAC/E,KAAK;AACL;AACA;AACA;AACA,gCAAgC,sDAAsD;AACtF;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,uBAAuB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AC7HA,IAAI,+CAAM,gBAAgB,aAAa,0BAA0B,wBAAwB,sDAAsD,OAAO,gGAAgG,0BAA0B,OAAO,6FAA6F,gBAAgB,8BAA8B,0CAA0C,OAAO,8EAA8E,0BAA0B,OAAO,2EAA2E,cAAc,kBAAkB,YAAY,iDAAiD,0BAA0B,OAAO,kEAAkE,YAAY,OAAO,wBAAwB,uBAAuB,kDAAkD,yBAAyB,YAAY,6BAA6B,0BAA0B,OAAO,mDAAmD,4CAA4C,OAAO,+HAA+H,2GAA2G,sCAAsC,6DAA6D,kBAAkB,EAAE,0CAA0C,uBAAuB,4CAA4C,kBAAkB,EAAE,qCAAqC,OAAO,uBAAuB,cAAc,oCAAoC,uBAAuB,oBAAoB,OAAO,eAAe,aAAa,aAAa,kHAAkH,SAAS,eAAe,0CAA0C,OAAO,sBAAsB,kNAAkN,iCAAiC,0BAA0B,OAAO,gDAAgD,YAAY,4BAA4B,oDAAoD,OAAO,gDAAgD,wBAAwB,oDAAoD,YAAY,aAAa,4FAA4F,yCAAyC,4DAA4D,aAAa,0IAA0I,EAAE;AACn6F,IAAI,wDAAe;;;;;;;;;ACDZ;AACP;AACA;AACA;AACA,CAAC,sDAAsD;AAChD;AACP;AACA;AACA;AACA;AACA,CAAC,sCAAsC;AAChC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,wCAAwC;AAClC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,0CAA0C;AACpC;AACP;AACA;AACA;AACA;AACA,CAAC,oCAAoC;AAC9B;AACP;AACA;AACA;AACA;AACA;AACA,CAAC,oDAAoD;AAC9C;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,oCAAoC;AAC9B;AACP;AACA;AACA;AACA;AACA;AACA,CAAC,oCAAoC;AACrC,sC;;ACpEA;AACA;AACA;AACA;AAC8C;AACd;AACV;AACf;AACP;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B,iDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP,oCAAoC,sBAAsB,uBAAuB;AACjF;AACA;AACA;AACA;AACA;AACO,SAAS,eAAK;AACrB;AACA,6CAA6C;AAC7C,kDAAkD;AAClD;AACA,uEAAuE;AACvE,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,sDAAG;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,KAAK;AACzC;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,wGAAwG;AACxG;AACA;AACA,kEAAkE,0BAA0B,EAAE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,sDAAG;AACnB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,KAAK,UAAU,cAAc;AAC7C;AACA;AACA;AACA;AACA,KAAK;AACL;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA,2CAA2C;AAC3C;AACO;AACP,kBAAkB;AAClB,8BAA8B;AAC9B;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA,gCAAgC,oCAAoC;AACpE;AACO;AACP,WAAW,KAAK,+DAA+D,KAAK;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,qC;;AClQ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,2BAA2B,cAAc;AACzC;AACA,+BAA+B,cAAc;AAC7C;AACA,SAAS;AACT,QAAQ,OAAE;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT,QAAQ,OAAE;AACV,kDAAkD,8EAA8E,EAAE;AAClI;AACA,SAAS;AACT,QAAQ,OAAE;AACV;AACA,SAAS;AACT,QAAQ,OAAE;AACV;AACA,SAAS;AACT,QAAQ,OAAE;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,QAAQ,OAAE;AACV;AACA,SAAS;AACT,QAAQ,OAAE;AACV;AACA,SAAS;AACT,QAAQ,OAAE;AACV,gFAAgF,0BAA0B,EAAE;AAC5G;AACA;AACA;AACA,SAAS;AACT,QAAQ,OAAE;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA,iEAAiE,kBAAkB,EAAE;AACrF;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,gBAAgB,eAAe;AAC/B;AACA,qEAAqE,kBAAkB,EAAE;AACzF;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,eAAe;AAC3B;AACA,iEAAiE,kBAAkB,EAAE;AACrF;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,mCAAmC,UAAoB;AACvD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,yBAAyB,eAAe;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,eAAe;AAC1C;AACA,oDAAoD,eAAe;AACnE;AACA;AACA;AACA,gBAAgB,eAAe;AAC/B;AACA;AACA;AACA,yBAAyB;AACzB;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,eAAe;AAC/B;AACA,qEAAqE,kBAAkB,EAAE;AACzF;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,YAAY,eAAe;AAC3B;AACA,iEAAiE,kBAAkB,EAAE;AACrF;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT,iDAAiD;AACjD;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,UAAU,EAAE;AACZ,KAAK;AACL,CAAC;AACD,iC;;AChWA,IAAI,6CAAM,gBAAgB,aAAa,0BAA0B,wBAAwB,mBAAmB,0GAA0G,WAAW,mBAAmB,WAAW,mCAAmC,+CAA+C,oBAAoB,OAAO,sBAAsB,YAAY,OAAO,+BAA+B,8DAA8D,OAAO,yBAAyB,4BAA4B,8BAA8B,UAAU,2BAA2B,UAAU,OAAO,sBAAsB,6CAA6C,2BAA2B,aAAa,2BAA2B,eAAe,+EAA+E,0BAA0B,+BAA+B,2BAA2B,qD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;4CAA0B;IACjB;QAA/B,IAAI,CAAC,EAAC,OAAO,EAAE,aAAa,EAAC,CAAC;6CAA2B;IAChD;QAAT,IAAI,CAAC,EAAE,CAAC;2CAAyB;IACxB;QAAT,IAAI,CAAC,EAAE,CAAC;6CAA4B;IAPpB,SAAS;QAD7B,oCAAS,CAAC,EAAE,CAAC;OACO,SAAS,CAuK7B;IAAD,gBAAC;CAAA,CAvKsC,sDAAG,GAuKzC;AAvKoB,gHAAS;;;ACrBuU,CAAgB,kHAAG,EAAC,C;;ACAjS;AAC3B;AACL;;;AAGxD;AACgG;AAChG,IAAI,mBAAS,GAAG,kBAAU;AAC1B,EAAE,4CAAM;AACR,EAAE,6CAAM;AACR,EAAE,sDAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,4EAAS,Q;;AClBxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACc,yEAAgB,EAAC;AAChC,4C;;ACXoC;AACY;AACE;AAClD,IAAI,qCAAkB;AACtB;AACA;AACA;AACA,4BAA4B;AAC5B,6BAA6B,YAAY;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,oBAAgB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,KAAK;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,CAAC;AACc,gGAAkB,EAAC;AAClC,8C;;AC7DiC;AACe;AACM;AACtD,IAAI,uCAAmB;AACvB,IAAI,SAAiB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,YAAY;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;AACpE;AACA;AACA;AACA,uEAAuE;AACvE;AACA;AACA;AACA;AACA;AACA;AAC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AACtC;AACA;AACA;AACA,2CAA2C,OAAe;AAC1D;AACA;AACA;AACA;AACA;AACA,qDAAqD,QAAQ,SAAiB;AAC9E;AACA,mCAAmC,WAAmB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA,qCAAqC;AACrC,6BAA6B;AAC7B,yBAAyB,EAAE;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,eAAe,SAAiB;AAChC;AACA,mBAAmB,WAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,qBAAa,GAAG;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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hB;QACE,IAAM,YAAY,GAAW,SAAmB,CAAC,WAAW,CAAC,CAAC;QAE9D,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;YAC3B,YAAsB,CAAC,WAAW,CAAC,CAAC;YAEnC,IAAI,CAAC,KAAK,CAAC,iBAAkC,CAAC,IAAI,EAAE,CAAC;SACvD;IACH,CAAC;IA7BkB,GAAG;QATvB,oCAAS,CAAC;YACT,UAAU,EAAE;gBACV,WAAW;gBACX,QAAQ;gBACR,iBAAiB;gBACjB,YAAY;gBACZ,gBAAgB;aACjB;SACF,CAAC;OACmB,GAAG,CA8BvB;IAAD,UAAC;CAAA,CA9BgC,sDAAG,GA8BnC;AA9BoB,8FAAG;;;AClE0R,CAAgB,+FAAG,EAAC,C;;ACApP;AAC3B;AACL;;;AAGlD;AACuF;AACvF,IAAI,aAAS,GAAG,kBAAU;AAC1B,EAAE,+BAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,yDAAS,Q;;AClBA;AACA;AACT,sFAAG;AACI","file":"cartLib.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"cartLib\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"cartLib\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","/**\n * vuex v3.1.1\n * (c) 2019 Evan You\n * @license MIT\n */\nfunction applyMixin (Vue) {\n var version = Number(Vue.version.split('.')[0]);\n\n if (version >= 2) {\n Vue.mixin({ beforeCreate: vuexInit });\n } else {\n // override init and inject vuex init procedure\n // for 1.x backwards compatibility.\n var _init = Vue.prototype._init;\n Vue.prototype._init = function (options) {\n if ( options === void 0 ) options = {};\n\n options.init = options.init\n ? [vuexInit].concat(options.init)\n : vuexInit;\n _init.call(this, options);\n };\n }\n\n /**\n * Vuex init hook, injected into each instances init hooks list.\n */\n\n function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }\n}\n\nvar target = typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\nvar devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\nfunction devtoolPlugin (store) {\n if (!devtoolHook) { return }\n\n store._devtoolHook = devtoolHook;\n\n devtoolHook.emit('vuex:init', store);\n\n devtoolHook.on('vuex:travel-to-state', function (targetState) {\n store.replaceState(targetState);\n });\n\n store.subscribe(function (mutation, state) {\n devtoolHook.emit('vuex:mutation', mutation, state);\n });\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nfunction partial (fn, arg) {\n return function () {\n return fn(arg)\n }\n}\n\n// Base data struct for store's module, package with some attribute and method\nvar Module = function Module (rawModule, runtime) {\n this.runtime = runtime;\n // Store some children item\n this._children = Object.create(null);\n // Store the origin module object which passed by programmer\n this._rawModule = rawModule;\n var rawState = rawModule.state;\n\n // Store the origin module's state\n this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors = { namespaced: { configurable: true } };\n\nprototypeAccessors.namespaced.get = function () {\n return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n return this._children[key]\n};\n\nModule.prototype.update = function update (rawModule) {\n this._rawModule.namespaced = rawModule.namespaced;\n if (rawModule.actions) {\n this._rawModule.actions = rawModule.actions;\n }\n if (rawModule.mutations) {\n this._rawModule.mutations = rawModule.mutations;\n }\n if (rawModule.getters) {\n this._rawModule.getters = rawModule.getters;\n }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n if (this._rawModule.getters) {\n forEachValue(this._rawModule.getters, fn);\n }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n if (this._rawModule.actions) {\n forEachValue(this._rawModule.actions, fn);\n }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n if (this._rawModule.mutations) {\n forEachValue(this._rawModule.mutations, fn);\n }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n // register root module (Vuex.Store options)\n this.register([], rawRootModule, false);\n};\n\nModuleCollection.prototype.get = function get (path) {\n return path.reduce(function (module, key) {\n return module.getChild(key)\n }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n var module = this.root;\n return path.reduce(function (namespace, key) {\n module = module.getChild(key);\n return namespace + (module.namespaced ? key + '/' : '')\n }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n update([], this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n var this$1 = this;\n if ( runtime === void 0 ) runtime = true;\n\n if (process.env.NODE_ENV !== 'production') {\n assertRawModule(path, rawModule);\n }\n\n var newModule = new Module(rawModule, runtime);\n if (path.length === 0) {\n this.root = newModule;\n } else {\n var parent = this.get(path.slice(0, -1));\n parent.addChild(path[path.length - 1], newModule);\n }\n\n // register nested modules\n if (rawModule.modules) {\n forEachValue(rawModule.modules, function (rawChildModule, key) {\n this$1.register(path.concat(key), rawChildModule, runtime);\n });\n }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n if (!parent.getChild(key).runtime) { return }\n\n parent.removeChild(key);\n};\n\nfunction update (path, targetModule, newModule) {\n if (process.env.NODE_ENV !== 'production') {\n assertRawModule(path, newModule);\n }\n\n // update target module\n targetModule.update(newModule);\n\n // update nested modules\n if (newModule.modules) {\n for (var key in newModule.modules) {\n if (!targetModule.getChild(key)) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\n \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n 'manual reload is needed'\n );\n }\n return\n }\n update(\n path.concat(key),\n targetModule.getChild(key),\n newModule.modules[key]\n );\n }\n }\n}\n\nvar functionAssert = {\n assert: function (value) { return typeof value === 'function'; },\n expected: 'function'\n};\n\nvar objectAssert = {\n assert: function (value) { return typeof value === 'function' ||\n (typeof value === 'object' && typeof value.handler === 'function'); },\n expected: 'function or object with \"handler\" function'\n};\n\nvar assertTypes = {\n getters: functionAssert,\n mutations: functionAssert,\n actions: objectAssert\n};\n\nfunction assertRawModule (path, rawModule) {\n Object.keys(assertTypes).forEach(function (key) {\n if (!rawModule[key]) { return }\n\n var assertOptions = assertTypes[key];\n\n forEachValue(rawModule[key], function (value, type) {\n assert(\n assertOptions.assert(value),\n makeAssertionMessage(path, key, type, value, assertOptions.expected)\n );\n });\n });\n}\n\nfunction makeAssertionMessage (path, key, type, value, expected) {\n var buf = key + \" should be \" + expected + \" but \\\"\" + key + \".\" + type + \"\\\"\";\n if (path.length > 0) {\n buf += \" in module \\\"\" + (path.join('.')) + \"\\\"\";\n }\n buf += \" is \" + (JSON.stringify(value)) + \".\";\n return buf\n}\n\nvar Vue; // bind on install\n\nvar Store = function Store (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #731\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n if (process.env.NODE_ENV !== 'production') {\n assert(Vue, \"must call Vue.use(Vuex) before creating a store instance.\");\n assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n assert(this instanceof Store, \"store must be called with the new operator.\");\n }\n\n var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n var strict = options.strict; if ( strict === void 0 ) strict = false;\n\n // store internal state\n this._committing = false;\n this._actions = Object.create(null);\n this._actionSubscribers = [];\n this._mutations = Object.create(null);\n this._wrappedGetters = Object.create(null);\n this._modules = new ModuleCollection(options);\n this._modulesNamespaceMap = Object.create(null);\n this._subscribers = [];\n this._watcherVM = new Vue();\n\n // bind commit and dispatch to self\n var store = this;\n var ref = this;\n var dispatch = ref.dispatch;\n var commit = ref.commit;\n this.dispatch = function boundDispatch (type, payload) {\n return dispatch.call(store, type, payload)\n };\n this.commit = function boundCommit (type, payload, options) {\n return commit.call(store, type, payload, options)\n };\n\n // strict mode\n this.strict = strict;\n\n var state = this._modules.root.state;\n\n // init root module.\n // this also recursively registers all sub-modules\n // and collects all module getters inside this._wrappedGetters\n installModule(this, state, [], this._modules.root);\n\n // initialize the store vm, which is responsible for the reactivity\n // (also registers _wrappedGetters as computed properties)\n resetStoreVM(this, state);\n\n // apply plugins\n plugins.forEach(function (plugin) { return plugin(this$1); });\n\n var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;\n if (useDevtools) {\n devtoolPlugin(this);\n }\n};\n\nvar prototypeAccessors$1 = { state: { configurable: true } };\n\nprototypeAccessors$1.state.get = function () {\n return this._vm._data.$$state\n};\n\nprototypeAccessors$1.state.set = function (v) {\n if (process.env.NODE_ENV !== 'production') {\n assert(false, \"use store.replaceState() to explicit replace store state.\");\n }\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n var this$1 = this;\n\n // check object-style commit\n var ref = unifyObjectStyle(_type, _payload, _options);\n var type = ref.type;\n var payload = ref.payload;\n var options = ref.options;\n\n var mutation = { type: type, payload: payload };\n var entry = this._mutations[type];\n if (!entry) {\n if (process.env.NODE_ENV !== 'production') {\n console.error((\"[vuex] unknown mutation type: \" + type));\n }\n return\n }\n this._withCommit(function () {\n entry.forEach(function commitIterator (handler) {\n handler(payload);\n });\n });\n this._subscribers.forEach(function (sub) { return sub(mutation, this$1.state); });\n\n if (\n process.env.NODE_ENV !== 'production' &&\n options && options.silent\n ) {\n console.warn(\n \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n 'Use the filter functionality in the vue-devtools'\n );\n }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n var this$1 = this;\n\n // check object-style dispatch\n var ref = unifyObjectStyle(_type, _payload);\n var type = ref.type;\n var payload = ref.payload;\n\n var action = { type: type, payload: payload };\n var entry = this._actions[type];\n if (!entry) {\n if (process.env.NODE_ENV !== 'production') {\n console.error((\"[vuex] unknown action type: \" + type));\n }\n return\n }\n\n try {\n this._actionSubscribers\n .filter(function (sub) { return sub.before; })\n .forEach(function (sub) { return sub.before(action, this$1.state); });\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"[vuex] error in before action subscribers: \");\n console.error(e);\n }\n }\n\n var result = entry.length > 1\n ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n : entry[0](payload);\n\n return result.then(function (res) {\n try {\n this$1._actionSubscribers\n .filter(function (sub) { return sub.after; })\n .forEach(function (sub) { return sub.after(action, this$1.state); });\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"[vuex] error in after action subscribers: \");\n console.error(e);\n }\n }\n return res\n })\n};\n\nStore.prototype.subscribe = function subscribe (fn) {\n return genericSubscribe(fn, this._subscribers)\n};\n\nStore.prototype.subscribeAction = function subscribeAction (fn) {\n var subs = typeof fn === 'function' ? { before: fn } : fn;\n return genericSubscribe(subs, this._actionSubscribers)\n};\n\nStore.prototype.watch = function watch (getter, cb, options) {\n var this$1 = this;\n\n if (process.env.NODE_ENV !== 'production') {\n assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n }\n return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n var this$1 = this;\n\n this._withCommit(function () {\n this$1._vm._data.$$state = state;\n });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule, options) {\n if ( options === void 0 ) options = {};\n\n if (typeof path === 'string') { path = [path]; }\n\n if (process.env.NODE_ENV !== 'production') {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n assert(path.length > 0, 'cannot register the root module by using registerModule.');\n }\n\n this._modules.register(path, rawModule);\n installModule(this, this.state, path, this._modules.get(path), options.preserveState);\n // reset store to update getters...\n resetStoreVM(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n var this$1 = this;\n\n if (typeof path === 'string') { path = [path]; }\n\n if (process.env.NODE_ENV !== 'production') {\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n }\n\n this._modules.unregister(path);\n this._withCommit(function () {\n var parentState = getNestedState(this$1.state, path.slice(0, -1));\n Vue.delete(parentState, path[path.length - 1]);\n });\n resetStore(this);\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n this._modules.update(newOptions);\n resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n var committing = this._committing;\n this._committing = true;\n fn();\n this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors$1 );\n\nfunction genericSubscribe (fn, subs) {\n if (subs.indexOf(fn) < 0) {\n subs.push(fn);\n }\n return function () {\n var i = subs.indexOf(fn);\n if (i > -1) {\n subs.splice(i, 1);\n }\n }\n}\n\nfunction resetStore (store, hot) {\n store._actions = Object.create(null);\n store._mutations = Object.create(null);\n store._wrappedGetters = Object.create(null);\n store._modulesNamespaceMap = Object.create(null);\n var state = store.state;\n // init all modules\n installModule(store, state, [], store._modules.root, true);\n // reset vm\n resetStoreVM(store, state, hot);\n}\n\nfunction resetStoreVM (store, state, hot) {\n var oldVm = store._vm;\n\n // bind store public getters\n store.getters = {};\n var wrappedGetters = store._wrappedGetters;\n var computed = {};\n forEachValue(wrappedGetters, function (fn, key) {\n // use computed to leverage its lazy-caching mechanism\n // direct inline function use will lead to closure preserving oldVm.\n // using partial to return function with only arguments preserved in closure enviroment.\n computed[key] = partial(fn, store);\n Object.defineProperty(store.getters, key, {\n get: function () { return store._vm[key]; },\n enumerable: true // for local getters\n });\n });\n\n // use a Vue instance to store the state tree\n // suppress warnings just in case the user has added\n // some funky global mixins\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n store._vm = new Vue({\n data: {\n $$state: state\n },\n computed: computed\n });\n Vue.config.silent = silent;\n\n // enable strict mode for new vm\n if (store.strict) {\n enableStrictMode(store);\n }\n\n if (oldVm) {\n if (hot) {\n // dispatch changes in all subscribed watchers\n // to force getter re-evaluation for hot reloading.\n store._withCommit(function () {\n oldVm._data.$$state = null;\n });\n }\n Vue.nextTick(function () { return oldVm.$destroy(); });\n }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n var isRoot = !path.length;\n var namespace = store._modules.getNamespace(path);\n\n // register in namespace map\n if (module.namespaced) {\n store._modulesNamespaceMap[namespace] = module;\n }\n\n // set state\n if (!isRoot && !hot) {\n var parentState = getNestedState(rootState, path.slice(0, -1));\n var moduleName = path[path.length - 1];\n store._withCommit(function () {\n Vue.set(parentState, moduleName, module.state);\n });\n }\n\n var local = module.context = makeLocalContext(store, namespace, path);\n\n module.forEachMutation(function (mutation, key) {\n var namespacedType = namespace + key;\n registerMutation(store, namespacedType, mutation, local);\n });\n\n module.forEachAction(function (action, key) {\n var type = action.root ? key : namespace + key;\n var handler = action.handler || action;\n registerAction(store, type, handler, local);\n });\n\n module.forEachGetter(function (getter, key) {\n var namespacedType = namespace + key;\n registerGetter(store, namespacedType, getter, local);\n });\n\n module.forEachChild(function (child, key) {\n installModule(store, rootState, path.concat(key), child, hot);\n });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n var gettersProxy = {};\n\n var splitPos = namespace.length;\n Object.keys(store.getters).forEach(function (type) {\n // skip if the target getter is not match this namespace\n if (type.slice(0, splitPos) !== namespace) { return }\n\n // extract local getter type\n var localType = type.slice(splitPos);\n\n // Add a port to the getters proxy.\n // Define as getter property because\n // we do not want to evaluate the getters in this time.\n Object.defineProperty(gettersProxy, localType, {\n get: function () { return store.getters[type]; },\n enumerable: true\n });\n });\n\n return gettersProxy\n}\n\nfunction registerMutation (store, type, handler, local) {\n var entry = store._mutations[type] || (store._mutations[type] = []);\n entry.push(function wrappedMutationHandler (payload) {\n handler.call(store, local.state, payload);\n });\n}\n\nfunction registerAction (store, type, handler, local) {\n var entry = store._actions[type] || (store._actions[type] = []);\n entry.push(function wrappedActionHandler (payload, cb) {\n var res = handler.call(store, {\n dispatch: local.dispatch,\n commit: local.commit,\n getters: local.getters,\n state: local.state,\n rootGetters: store.getters,\n rootState: store.state\n }, payload, cb);\n if (!isPromise(res)) {\n res = Promise.resolve(res);\n }\n if (store._devtoolHook) {\n return res.catch(function (err) {\n store._devtoolHook.emit('vuex:error', err);\n throw err\n })\n } else {\n return res\n }\n });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n if (store._wrappedGetters[type]) {\n if (process.env.NODE_ENV !== 'production') {\n console.error((\"[vuex] duplicate getter key: \" + type));\n }\n return\n }\n store._wrappedGetters[type] = function wrappedGetter (store) {\n return rawGetter(\n local.state, // local state\n local.getters, // local getters\n store.state, // root state\n store.getters // root getters\n )\n };\n}\n\nfunction enableStrictMode (store) {\n store._vm.$watch(function () { return this._data.$$state }, function () {\n if (process.env.NODE_ENV !== 'production') {\n assert(store._committing, \"do not mutate vuex store state outside mutation handlers.\");\n }\n }, { deep: true, sync: true });\n}\n\nfunction getNestedState (state, path) {\n return path.length\n ? path.reduce(function (state, key) { return state[key]; }, state)\n : state\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n if (isObject(type) && type.type) {\n options = payload;\n payload = type;\n type = type.type;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n assert(typeof type === 'string', (\"expects string as the type, but found \" + (typeof type) + \".\"));\n }\n\n return { type: type, payload: payload, options: options }\n}\n\nfunction install (_Vue) {\n if (Vue && _Vue === Vue) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\n '[vuex] already installed. Vue.use(Vuex) should be called only once.'\n );\n }\n return\n }\n Vue = _Vue;\n applyMixin(Vue);\n}\n\n/**\n * Reduce the code which written in Vue.js for getting the state.\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.\n * @param {Object}\n */\nvar mapState = normalizeNamespace(function (namespace, states) {\n var res = {};\n normalizeMap(states).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedState () {\n var state = this.$store.state;\n var getters = this.$store.getters;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n if (!module) {\n return\n }\n state = module.context.state;\n getters = module.context.getters;\n }\n return typeof val === 'function'\n ? val.call(this, state, getters)\n : state[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for committing the mutation\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n var res = {};\n normalizeMap(mutations).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedMutation () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // Get the commit method from store\n var commit = this.$store.commit;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);\n if (!module) {\n return\n }\n commit = module.context.commit;\n }\n return typeof val === 'function'\n ? val.apply(this, [commit].concat(args))\n : commit.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for getting the getters\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} getters\n * @return {Object}\n */\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n var res = {};\n normalizeMap(getters).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n // The namespace has been mutated by normalizeNamespace\n val = namespace + val;\n res[key] = function mappedGetter () {\n if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n return\n }\n if (process.env.NODE_ENV !== 'production' && !(val in this.$store.getters)) {\n console.error((\"[vuex] unknown getter: \" + val));\n return\n }\n return this.$store.getters[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\n/**\n * Reduce the code which written in Vue.js for dispatch the action\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n var res = {};\n normalizeMap(actions).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedAction () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n // get dispatch function from store\n var dispatch = this.$store.dispatch;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapActions', namespace);\n if (!module) {\n return\n }\n dispatch = module.context.dispatch;\n }\n return typeof val === 'function'\n ? val.apply(this, [dispatch].concat(args))\n : dispatch.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\n/**\n * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object\n * @param {String} namespace\n * @return {Object}\n */\nvar createNamespacedHelpers = function (namespace) { return ({\n mapState: mapState.bind(null, namespace),\n mapGetters: mapGetters.bind(null, namespace),\n mapMutations: mapMutations.bind(null, namespace),\n mapActions: mapActions.bind(null, namespace)\n}); };\n\n/**\n * Normalize the map\n * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]\n * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]\n * @param {Array|Object} map\n * @return {Object}\n */\nfunction normalizeMap (map) {\n return Array.isArray(map)\n ? map.map(function (key) { return ({ key: key, val: key }); })\n : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\n/**\n * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.\n * @param {Function} fn\n * @return {Function}\n */\nfunction normalizeNamespace (fn) {\n return function (namespace, map) {\n if (typeof namespace !== 'string') {\n map = namespace;\n namespace = '';\n } else if (namespace.charAt(namespace.length - 1) !== '/') {\n namespace += '/';\n }\n return fn(namespace, map)\n }\n}\n\n/**\n * Search a special module from store by namespace. if module not exist, print error message.\n * @param {Object} store\n * @param {String} helper\n * @param {String} namespace\n * @return {Object}\n */\nfunction getModuleByNamespace (store, helper, namespace) {\n var module = store._modulesNamespaceMap[namespace];\n if (process.env.NODE_ENV !== 'production' && !module) {\n console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n }\n return module\n}\n\nvar index_esm = {\n Store: Store,\n install: install,\n version: '3.1.1',\n mapState: mapState,\n mapMutations: mapMutations,\n mapGetters: mapGetters,\n mapActions: mapActions,\n createNamespacedHelpers: createNamespacedHelpers\n};\n\nexport default index_esm;\nexport { Store, install, mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers };\n","/**\n * vue-class-component v6.3.2\n * (c) 2015-present Evan You\n * @license MIT\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar Vue = _interopDefault(require('vue'));\n\nvar reflectionIsSupported = typeof Reflect !== 'undefined' && Reflect.defineMetadata;\nfunction copyReflectionMetadata(to, from) {\n forwardMetadata(to, from);\n Object.getOwnPropertyNames(from.prototype).forEach(function (key) {\n forwardMetadata(to.prototype, from.prototype, key);\n });\n Object.getOwnPropertyNames(from).forEach(function (key) {\n forwardMetadata(to, from, key);\n });\n}\nfunction forwardMetadata(to, from, propertyKey) {\n var metaKeys = propertyKey\n ? Reflect.getOwnMetadataKeys(from, propertyKey)\n : Reflect.getOwnMetadataKeys(from);\n metaKeys.forEach(function (metaKey) {\n var metadata = propertyKey\n ? Reflect.getOwnMetadata(metaKey, from, propertyKey)\n : Reflect.getOwnMetadata(metaKey, from);\n if (propertyKey) {\n Reflect.defineMetadata(metaKey, metadata, to, propertyKey);\n }\n else {\n Reflect.defineMetadata(metaKey, metadata, to);\n }\n });\n}\n\nvar fakeArray = { __proto__: [] };\nvar hasProto = fakeArray instanceof Array;\nfunction createDecorator(factory) {\n return function (target, key, index) {\n var Ctor = typeof target === 'function'\n ? target\n : target.constructor;\n if (!Ctor.__decorators__) {\n Ctor.__decorators__ = [];\n }\n if (typeof index !== 'number') {\n index = undefined;\n }\n Ctor.__decorators__.push(function (options) { return factory(options, key, index); });\n };\n}\nfunction mixins() {\n var Ctors = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n Ctors[_i] = arguments[_i];\n }\n return Vue.extend({ mixins: Ctors });\n}\nfunction isPrimitive(value) {\n var type = typeof value;\n return value == null || (type !== 'object' && type !== 'function');\n}\nfunction warn(message) {\n if (typeof console !== 'undefined') {\n console.warn('[vue-class-component] ' + message);\n }\n}\n\nfunction collectDataFromConstructor(vm, Component) {\n // override _init to prevent to init as Vue instance\n var originalInit = Component.prototype._init;\n Component.prototype._init = function () {\n var _this = this;\n // proxy to actual vm\n var keys = Object.getOwnPropertyNames(vm);\n // 2.2.0 compat (props are no longer exposed as self properties)\n if (vm.$options.props) {\n for (var key in vm.$options.props) {\n if (!vm.hasOwnProperty(key)) {\n keys.push(key);\n }\n }\n }\n keys.forEach(function (key) {\n if (key.charAt(0) !== '_') {\n Object.defineProperty(_this, key, {\n get: function () { return vm[key]; },\n set: function (value) { vm[key] = value; },\n configurable: true\n });\n }\n });\n };\n // should be acquired class property values\n var data = new Component();\n // restore original _init to avoid memory leak (#209)\n Component.prototype._init = originalInit;\n // create plain data object\n var plainData = {};\n Object.keys(data).forEach(function (key) {\n if (data[key] !== undefined) {\n plainData[key] = data[key];\n }\n });\n if (process.env.NODE_ENV !== 'production') {\n if (!(Component.prototype instanceof Vue) && Object.keys(plainData).length > 0) {\n warn('Component class must inherit Vue or its descendant class ' +\n 'when class property is used.');\n }\n }\n return plainData;\n}\n\nvar $internalHooks = [\n 'data',\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeDestroy',\n 'destroyed',\n 'beforeUpdate',\n 'updated',\n 'activated',\n 'deactivated',\n 'render',\n 'errorCaptured' // 2.5\n];\nfunction componentFactory(Component, options) {\n if (options === void 0) { options = {}; }\n options.name = options.name || Component._componentTag || Component.name;\n // prototype props.\n var proto = Component.prototype;\n Object.getOwnPropertyNames(proto).forEach(function (key) {\n if (key === 'constructor') {\n return;\n }\n // hooks\n if ($internalHooks.indexOf(key) > -1) {\n options[key] = proto[key];\n return;\n }\n var descriptor = Object.getOwnPropertyDescriptor(proto, key);\n if (descriptor.value !== void 0) {\n // methods\n if (typeof descriptor.value === 'function') {\n (options.methods || (options.methods = {}))[key] = descriptor.value;\n }\n else {\n // typescript decorated data\n (options.mixins || (options.mixins = [])).push({\n data: function () {\n var _a;\n return _a = {}, _a[key] = descriptor.value, _a;\n }\n });\n }\n }\n else if (descriptor.get || descriptor.set) {\n // computed properties\n (options.computed || (options.computed = {}))[key] = {\n get: descriptor.get,\n set: descriptor.set\n };\n }\n });\n (options.mixins || (options.mixins = [])).push({\n data: function () {\n return collectDataFromConstructor(this, Component);\n }\n });\n // decorate options\n var decorators = Component.__decorators__;\n if (decorators) {\n decorators.forEach(function (fn) { return fn(options); });\n delete Component.__decorators__;\n }\n // find super\n var superProto = Object.getPrototypeOf(Component.prototype);\n var Super = superProto instanceof Vue\n ? superProto.constructor\n : Vue;\n var Extended = Super.extend(options);\n forwardStaticMembers(Extended, Component, Super);\n if (reflectionIsSupported) {\n copyReflectionMetadata(Extended, Component);\n }\n return Extended;\n}\nvar reservedPropertyNames = [\n // Unique id\n 'cid',\n // Super Vue constructor\n 'super',\n // Component options that will be used by the component\n 'options',\n 'superOptions',\n 'extendOptions',\n 'sealedOptions',\n // Private assets\n 'component',\n 'directive',\n 'filter'\n];\nfunction forwardStaticMembers(Extended, Original, Super) {\n // We have to use getOwnPropertyNames since Babel registers methods as non-enumerable\n Object.getOwnPropertyNames(Original).forEach(function (key) {\n // `prototype` should not be overwritten\n if (key === 'prototype') {\n return;\n }\n // Some browsers does not allow reconfigure built-in properties\n var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);\n if (extendedDescriptor && !extendedDescriptor.configurable) {\n return;\n }\n var descriptor = Object.getOwnPropertyDescriptor(Original, key);\n // If the user agent does not support `__proto__` or its family (IE <= 10),\n // the sub class properties may be inherited properties from the super class in TypeScript.\n // We need to exclude such properties to prevent to overwrite\n // the component options object which stored on the extended constructor (See #192).\n // If the value is a referenced value (object or function),\n // we can check equality of them and exclude it if they have the same reference.\n // If it is a primitive value, it will be forwarded for safety.\n if (!hasProto) {\n // Only `cid` is explicitly exluded from property forwarding\n // because we cannot detect whether it is a inherited property or not\n // on the no `__proto__` environment even though the property is reserved.\n if (key === 'cid') {\n return;\n }\n var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);\n if (!isPrimitive(descriptor.value) &&\n superDescriptor &&\n superDescriptor.value === descriptor.value) {\n return;\n }\n }\n // Warn if the users manually declare reserved properties\n if (process.env.NODE_ENV !== 'production' &&\n reservedPropertyNames.indexOf(key) >= 0) {\n warn(\"Static property name '\" + key + \"' declared on class '\" + Original.name + \"' \" +\n 'conflicts with reserved property name of Vue internal. ' +\n 'It may cause unexpected behavior of the component. Consider renaming the property.');\n }\n Object.defineProperty(Extended, key, descriptor);\n });\n}\n\nfunction Component(options) {\n if (typeof options === 'function') {\n return componentFactory(options);\n }\n return function (Component) {\n return componentFactory(Component, options);\n };\n}\nComponent.registerHooks = function registerHooks(keys) {\n $internalHooks.push.apply($internalHooks, keys);\n};\n\nexports.default = Component;\nexports.createDecorator = createDecorator;\nexports.mixins = mixins;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('AriaAnnouncement',{ref:\"ariaAnnouncer\"}),(_vm.Page === 'checkout')?_c('Checkout'):(_vm.Page === 'complete')?_c('OrderConfirmation'):_c('ShoppingBag'),(_vm.errorMessage)?_c('ModalContent',{ref:\"errorMessageModal\",attrs:{\"modal\":_vm.errorMessageModalInfo}},[(_vm.errorMessage.toLowerCase().indexOf('error') !== -1)?_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Something Went Wrong\")]):_vm._e(),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:(_vm.errorMessage),expression:\"errorMessage\"}],staticClass:\"alert alert-danger\"},[_vm._v(\"Something unexpected has occurred. Please try again.\")])]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"Continue Shopping\")])]):_vm._e(),_c('div',{staticClass:\"load-mask\",attrs:{\"id\":\"vue-load-mask\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/** vue-property-decorator verson 7.3.0 MIT LICENSE copyright 2018 kaorun343 */\n'use strict';\nimport Vue from 'vue';\nimport Component, { createDecorator, mixins } from 'vue-class-component';\nexport { Component, Vue, mixins as Mixins };\n/**\n * decorator of an inject\n * @param from key\n * @return PropertyDecorator\n */\nexport function Inject(options) {\n return createDecorator(function (componentOptions, key) {\n if (typeof componentOptions.inject === 'undefined') {\n componentOptions.inject = {};\n }\n if (!Array.isArray(componentOptions.inject)) {\n componentOptions.inject[key] = options || key;\n }\n });\n}\n/**\n * decorator of a provide\n * @param key key\n * @return PropertyDecorator | void\n */\nexport function Provide(key) {\n return createDecorator(function (componentOptions, k) {\n var provide = componentOptions.provide;\n if (typeof provide !== 'function' || !provide.managed) {\n var original_1 = componentOptions.provide;\n provide = componentOptions.provide = function () {\n var rv = Object.create((typeof original_1 === 'function' ? original_1.call(this) : original_1) || null);\n for (var i in provide.managed)\n rv[provide.managed[i]] = this[i];\n return rv;\n };\n provide.managed = {};\n }\n provide.managed[k] = key || k;\n });\n}\n/**\n * decorator of model\n * @param event event name\n * @param options options\n * @return PropertyDecorator\n */\nexport function Model(event, options) {\n if (options === void 0) { options = {}; }\n return createDecorator(function (componentOptions, k) {\n (componentOptions.props || (componentOptions.props = {}))[k] = options;\n componentOptions.model = { prop: k, event: event || k };\n });\n}\n/**\n * decorator of a prop\n * @param options the options for the prop\n * @return PropertyDecorator | void\n */\nexport function Prop(options) {\n if (options === void 0) { options = {}; }\n return createDecorator(function (componentOptions, k) {\n (componentOptions.props || (componentOptions.props = {}))[k] = options;\n });\n}\n/**\n * decorator of a watch function\n * @param path the path or the expression to observe\n * @param WatchOption\n * @return MethodDecorator\n */\nexport function Watch(path, options) {\n if (options === void 0) { options = {}; }\n var _a = options.deep, deep = _a === void 0 ? false : _a, _b = options.immediate, immediate = _b === void 0 ? false : _b;\n return createDecorator(function (componentOptions, handler) {\n if (typeof componentOptions.watch !== 'object') {\n componentOptions.watch = Object.create(null);\n }\n var watch = componentOptions.watch;\n if (typeof watch[path] === 'object' && !Array.isArray(watch[path])) {\n watch[path] = [watch[path]];\n }\n else if (typeof watch[path] === 'undefined') {\n watch[path] = [];\n }\n watch[path].push({ handler: handler, deep: deep, immediate: immediate });\n });\n}\n// Code copied from Vue/src/shared/util.js\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };\n/**\n * decorator of an event-emitter function\n * @param event The name of the event\n * @return MethodDecorator\n */\nexport function Emit(event) {\n return function (_target, key, descriptor) {\n key = hyphenate(key);\n var original = descriptor.value;\n descriptor.value = function emitter() {\n var _this = this;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var emit = function (returnValue) {\n if (returnValue !== undefined)\n args.unshift(returnValue);\n _this.$emit.apply(_this, [event || key].concat(args));\n };\n var returnValue = original.apply(this, args);\n if (isPromise(returnValue)) {\n returnValue.then(function (returnValue) {\n emit(returnValue);\n });\n }\n else {\n emit(returnValue);\n }\n };\n };\n}\nfunction isPromise(obj) {\n return obj instanceof Promise || (obj && typeof obj.then === 'function');\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('header',[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Header Promotion Banner - Logged In'],\"conditions\":_vm.loggedIn}}),_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Header Promotion Banner - Guest'],\"conditions\":!_vm.loggedIn}})],1),_c('div',{staticClass:\"container-fluid\"},[(_vm.emptyBag)?[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Empty Basket - Logged In'],\"conditions\":_vm.loggedIn}}),_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Empty Basket - Guest'],\"conditions\":!_vm.loggedIn}})]:[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 col-lg-8 order-list-wrapper\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Header'],\"showDefultContent\":true}},[_c('div',{attrs:{\"slot\":\"defaultContent\"},slot:\"defaultContent\"},[_c('h1',[_vm._v(\"Shopping Bag\")])])]),_c('div',{staticClass:\"order-list\"},[_c('div',{staticClass:\"item-container\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Item List Header']}}),_c('IncentiveOffer'),_c('GroupAnimation',{attrs:{\"name\":'cart',\"tag\":'table',\"speed\":'1s',\"AnimateHeight\":true,\"easing\":\"cubic-bezier(0.86, 0, 0.07, 1)\",\"role\":\"presentation\"}},[(_vm.brand === 'cr' || _vm.brand === 'tr' || _vm.brand === 'ou')?_vm._l((_vm.order.Items),function(item){return _c('OrderItemAlternativeView',{key:item.ID,staticClass:\"group-item alternative-view\",attrs:{\"itemid\":item.ID}})}):_vm._l((_vm.order.Items),function(item){return _c('OrderItem',{key:item.ID,staticClass:\"group-item\",attrs:{\"itemid\":item.ID}})})],2),(_vm.showSubTotal)?_c('table',{attrs:{\"role\":\"presentation\"}},[_c('tbody',{staticClass:\"item-sub-total\",attrs:{\"role\":\"presentation\"}},[_c('tr',[_c('td',{attrs:{\"colspan\":\"3\"}},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('shoppingbag-subtotal'),expression:\"'shoppingbag-subtotal'\"}],attrs:{\"role\":\"text\"}},[_vm._v(\"Subtotal\")]),_c('PriceDisplay',{attrs:{\"price\":_vm.subtotal}})],1)])])]):_vm._e()],1),_c('LoginSignUp'),_c('Promotions'),(_vm.brand !== 'ou')?_c('RewardPoints'):_vm._e(),(!_vm.WebsiteSettings.IsEshopUser && _vm.orderLoaded)?_c('DynamicDeliveryBanner'):_vm._e(),_c('div',{staticClass:\"cross-sell-wrapper\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Middle Banner']}}),_c('div',{staticClass:\"curated-group\"},[_c('CuratedProducts')],1),_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Footer Banner']}})],1)],1)],1),_c('div',{staticClass:\"col-12 col-lg-4 order-summary-wrapper\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.order.Items.length),expression:\"order.Items.length\"}],staticClass:\"order-summary sticky-top\"},[(_vm.brand !== 'ou')?_c('RewardPoints'):_vm._e(),_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('shoppingbag-ordersummary-heading'),expression:\"'shoppingbag-ordersummary-heading'\"}]},[_vm._v(\"ORDER SUMMARY\")]),_c('OrderSummary')],1)])])]],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export var PersonalisedInputType;\r\n(function (PersonalisedInputType) {\r\n PersonalisedInputType[PersonalisedInputType[\"Character\"] = 1] = \"Character\";\r\n PersonalisedInputType[PersonalisedInputType[\"Symbol\"] = 2] = \"Symbol\";\r\n})(PersonalisedInputType || (PersonalisedInputType = {}));\r\nexport var IncentiveType;\r\n(function (IncentiveType) {\r\n IncentiveType[IncentiveType[\"ItemBased\"] = 1] = \"ItemBased\";\r\n IncentiveType[IncentiveType[\"OrderBased\"] = 2] = \"OrderBased\";\r\n IncentiveType[IncentiveType[\"TenderBased\"] = 3] = \"TenderBased\";\r\n})(IncentiveType || (IncentiveType = {}));\r\nexport var DispatchAction;\r\n(function (DispatchAction) {\r\n DispatchAction[\"FetchOrder\"] = \"FetchOrder\";\r\n DispatchAction[\"FetchProducts\"] = \"FetchProducts\";\r\n DispatchAction[\"FetchFreightOptions\"] = \"FetchFreightOptions\";\r\n DispatchAction[\"ParseSnippets\"] = \"ParseSnippets\";\r\n DispatchAction[\"FetchCuratedProducts\"] = \"FetchCuratedProducts\";\r\n DispatchAction[\"UpdateCsrfToken\"] = \"UpdateCsrfToken\";\r\n DispatchAction[\"FetchIncentiveOffer\"] = \"FetchIncentiveOffer\";\r\n DispatchAction[\"SetPaymentMethod\"] = \"SetPaymentMethod\";\r\n DispatchAction[\"FetchStoredPayment\"] = \"FetchStoredPayment\";\r\n DispatchAction[\"ReplaceOrder\"] = \"ReplaceOrder\";\r\n})(DispatchAction || (DispatchAction = {}));\r\nexport var CrossSellAction;\r\n(function (CrossSellAction) {\r\n CrossSellAction[CrossSellAction[\"disable\"] = 0] = \"disable\";\r\n CrossSellAction[CrossSellAction[\"alsobought\"] = 1] = \"alsobought\";\r\n CrossSellAction[CrossSellAction[\"alsoviewed\"] = 2] = \"alsoviewed\";\r\n CrossSellAction[CrossSellAction[\"upsell\"] = 3] = \"upsell\";\r\n CrossSellAction[CrossSellAction[\"recentlyviewed\"] = 4] = \"recentlyviewed\";\r\n CrossSellAction[CrossSellAction[\"similar\"] = 5] = \"similar\";\r\n CrossSellAction[CrossSellAction[\"collections\"] = 6] = \"collections\";\r\n CrossSellAction[CrossSellAction[\"completethelook\"] = 1000] = \"completethelook\";\r\n})(CrossSellAction || (CrossSellAction = {}));\r\nexport var DiscountType;\r\n(function (DiscountType) {\r\n DiscountType[DiscountType[\"PercentDiscount\"] = 0] = \"PercentDiscount\";\r\n DiscountType[DiscountType[\"DollarDiscount\"] = 1] = \"DollarDiscount\";\r\n DiscountType[DiscountType[\"None\"] = 3] = \"None\";\r\n})(DiscountType || (DiscountType = {}));\r\nexport var DeliveryLocationType;\r\n(function (DeliveryLocationType) {\r\n DeliveryLocationType[DeliveryLocationType[\"None\"] = 0] = \"None\";\r\n DeliveryLocationType[DeliveryLocationType[\"ParcelLocker\"] = 1] = \"ParcelLocker\";\r\n DeliveryLocationType[DeliveryLocationType[\"POBox\"] = 2] = \"POBox\";\r\n DeliveryLocationType[DeliveryLocationType[\"ParcelLockerWidget\"] = 3] = \"ParcelLockerWidget\";\r\n})(DeliveryLocationType || (DeliveryLocationType = {}));\r\nexport var PaymentTypes;\r\n(function (PaymentTypes) {\r\n PaymentTypes[PaymentTypes[\"CreditCard\"] = 1] = \"CreditCard\";\r\n PaymentTypes[PaymentTypes[\"PaypalSale\"] = 37] = \"PaypalSale\";\r\n PaymentTypes[PaymentTypes[\"Paypal\"] = 38] = \"Paypal\";\r\n PaymentTypes[PaymentTypes[\"Reward\"] = 70] = \"Reward\";\r\n PaymentTypes[PaymentTypes[\"Giftcard\"] = 120] = \"Giftcard\";\r\n PaymentTypes[PaymentTypes[\"CreditCard_Giftcard\"] = 121] = \"CreditCard_Giftcard\";\r\n PaymentTypes[PaymentTypes[\"Afterpay\"] = 202] = \"Afterpay\";\r\n PaymentTypes[PaymentTypes[\"ApplePay\"] = 207] = \"ApplePay\";\r\n PaymentTypes[PaymentTypes[\"Alipay\"] = 208] = \"Alipay\";\r\n PaymentTypes[PaymentTypes[\"Klarna\"] = 211] = \"Klarna\";\r\n})(PaymentTypes || (PaymentTypes = {}));\r\nexport var PageLocation;\r\n(function (PageLocation) {\r\n PageLocation[PageLocation[\"cart\"] = 0] = \"cart\";\r\n PageLocation[PageLocation[\"delivery\"] = 1] = \"delivery\";\r\n PageLocation[PageLocation[\"payment\"] = 2] = \"payment\";\r\n PageLocation[PageLocation[\"CartSummary\"] = 3] = \"CartSummary\";\r\n})(PageLocation || (PageLocation = {}));\r\n//# sourceMappingURL=interfaces.js.map","/*\r\n This file is a utilities file for all the global functions.\r\n*/\r\n// Does DispatchAction look like an interface to your or am I just trippin?!\r\nimport { DispatchAction } from './interfaces';\r\nimport { store } from './store';\r\nimport Vue from 'vue';\r\nexport function sortByMultipleKey(keys) {\r\n return function (a, b) {\r\n // force to equal if keys run out\r\n if (keys.length === 0) {\r\n return 0;\r\n }\r\n var key = keys[0][0]; // take out the first sorting key\r\n var sortOrder = keys[0][1].toLowerCase(); // take out the sorting order\r\n var result = sortOrder === 'desc' ? 1 : -1;\r\n var checkExists = keys[0][2].length > 0;\r\n // Head keys are a special case\r\n if (checkExists) {\r\n // If both items have a head key, move to the next sort key.\r\n if (a[key].length > 0 && b[key].length > 0) {\r\n return sortByMultipleKey(keys.slice(1))(a, b);\r\n }\r\n if (a[key].length < b[key].length) {\r\n return result;\r\n }\r\n else if (a[key].length > b[key].length) {\r\n return result * -1;\r\n }\r\n else {\r\n // If both items have empty head key, move to the next sort key.\r\n return sortByMultipleKey(keys.slice(1))(a, b);\r\n }\r\n }\r\n else {\r\n if (a[key] < b[key]) {\r\n return result;\r\n }\r\n else if (a[key] > b[key]) {\r\n return result * -1;\r\n }\r\n }\r\n // If the keys are the same on both items, move to the next sort key.\r\n return sortByMultipleKey(keys.slice(1))(a, b);\r\n };\r\n}\r\nexport function renderHTML(htmlContent) {\r\n return htmlContent.replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&');\r\n}\r\n// Counter - used to generate a unique identifier for all fetch requests\r\nvar requestCounter = 0;\r\n// Array to hold references of any fetch requests that are currently awaiting response\r\nvar requestsInFlight = [];\r\nexport function fetch(input, init) {\r\n // Let's figure out some stuff we need to know to make decisions\r\n var csrfHeaderName = 'X_CART_CSRF_TOKEN'; // This is hard coded on the back-end (platform)\r\n var realInit = (init !== undefined ? init : {});\r\n var method = (realInit.method === undefined ? 'GET' : realInit.method.toUpperCase());\r\n var isUpdate = ['PUT', 'POST', 'DELETE', 'PATCH'].includes(method); // Are we changing stuff?\r\n var headers = new Headers(realInit.headers || {});\r\n // register our request in the tracking array\r\n var identifier = requestCounter++;\r\n requestsInFlight.push(identifier);\r\n // add a class to the body, this revaas the load mask and remains while we have outstanding data calls\r\n var bodyEl = document.body;\r\n bodyEl.classList.add('fetching-data');\r\n // we may need to focus back onto the body element\r\n bodyEl.setAttribute('tabindex', '-1');\r\n // reference the message in the load mask as we will be setting focus here\r\n var loadingMask = document.getElementById('vue-load-mask');\r\n if (requestsInFlight.length === 1) {\r\n // there are no other requests in flight, so establish a focus target for when loading ends\r\n var focusTarget = document.activeElement || bodyEl;\r\n if (focusTarget) {\r\n Vue.prototype.$nextFocus(focusTarget, true);\r\n }\r\n // stop tabbing while the load is happening\r\n if (loadingMask) {\r\n setTabLock(loadingMask);\r\n }\r\n }\r\n // Update with no CSRF? Let me rectify that presently sir!\r\n if (isUpdate && !headers.has(csrfHeaderName)) {\r\n headers.set(csrfHeaderName, store.getters.CsrfToken);\r\n realInit.headers = headers;\r\n }\r\n // Set cookie policy if caller did not explicitly specify one\r\n // The old default in fetch() spec was 'omit' which does not send any cookies, we NEED cookies however\r\n if (realInit.credentials === undefined) {\r\n realInit.credentials = 'same-origin'; // This is the default in the current version of the spec\r\n }\r\n // Actually call fetch now, just give the promise of a response almost straight back to the caller ;)\r\n return window.fetch(input, realInit).then(function (response) {\r\n // remove identifier from our list of pending requests\r\n requestsInFlight = requestsInFlight.filter(function (id) { return id !== identifier; });\r\n // this response may well trigger another request, so wait to see if that's the case before changing our status\r\n setTimeout(function () {\r\n // are we still waiting for anything else\r\n if (bodyEl !== null && requestsInFlight.length === 0) {\r\n // free up the document for tabbing\r\n setTabLock();\r\n // hide the load mask\r\n bodyEl.classList.remove('fetching-data');\r\n // clear the focus queue (this will set focus to the last specified element)\r\n Vue.prototype.$nextFocus(null);\r\n }\r\n }, 50);\r\n // whenever we have a CSRF/Validation error Redirect to Cart. (assumming 403 is a CSRF issue)\r\n if (response.status === 403) {\r\n // If it gift message validation, do not re-direct to cart page\r\n if (!input.includes('/client/v2/cart/order/gift/validate')) {\r\n setCookie('showError', 'validationError');\r\n window.location.href = '/cart';\r\n }\r\n return response;\r\n }\r\n if (isUpdate) {\r\n // If we got a new CSRF token in the response, store it\r\n if (response.headers.has(csrfHeaderName)) {\r\n store.dispatch(DispatchAction.UpdateCsrfToken, response.headers.get(csrfHeaderName));\r\n }\r\n }\r\n // Return the promise as promised!\r\n return response;\r\n });\r\n}\r\nexport function debounce(func, wait, immediate) {\r\n var _this = this;\r\n var timeout;\r\n return function (e) {\r\n // @ts-ignore: Surpress the implicit any error\r\n var context = _this;\r\n var later = function () {\r\n timeout = null;\r\n if (!immediate) {\r\n func.apply(context, [e]);\r\n }\r\n };\r\n var callNow = immediate && !timeout;\r\n if (timeout && timeout !== null) {\r\n clearTimeout(timeout);\r\n }\r\n timeout = setTimeout(later, wait);\r\n if (callNow) {\r\n func.apply(context, [e]);\r\n }\r\n };\r\n}\r\nexport function setCookie(name, val) {\r\n // Set it\r\n document.cookie = name + '=' + val + '; path=/';\r\n}\r\nexport function getCookie(name) {\r\n var value = '; ' + document.cookie;\r\n var parts = value.split('; ' + name + '=');\r\n if (parts && parts.length === 2) {\r\n var pop = parts.pop() || '';\r\n if (pop) {\r\n return pop.split(';').shift() || '';\r\n }\r\n }\r\n return '';\r\n}\r\nexport function deleteCookie(name) {\r\n var date = new Date();\r\n // Set it expire in -1 days\r\n date.setTime(date.getTime() + (-1 * 24 * 60 * 60 * 1000));\r\n // Set it\r\n document.cookie = name + '=; expires=' + date.toUTCString() + '; path=/';\r\n}\r\nexport function getErrorMessage(error) {\r\n return store.getters.getGlossaryEntryByKey(error.Code) || error.Message || store.getters.getGlossaryEntryByKey('ERR_UNKNOWN') || '';\r\n}\r\n// helper function, the basic equivalent of jQuery(el).siblings\r\nfunction getSiblings(el) {\r\n // array to hold our results\r\n var siblings = [];\r\n // do we have a parent (if not we can't have any siblings)\r\n var myParent = el.parentElement;\r\n if (myParent !== null) {\r\n // our siblings will be in the parent's childnodes\r\n var contenders = myParent.childNodes;\r\n // we are only intereted in actual HTML elements (not comments or text) that aren't our current element\r\n contenders.forEach(function (sibling) {\r\n if (sibling.nodeType === 1 && sibling !== el) {\r\n siblings.push(sibling);\r\n }\r\n });\r\n }\r\n return siblings;\r\n}\r\nexport function setTabLock(el) {\r\n var d = document;\r\n if (el) {\r\n var tabbableSelector = 'button, [href], select, label, input, textarea, [tabindex]:not([tabindex=\"-1\"])';\r\n var tabbables = d.querySelectorAll(tabbableSelector);\r\n // anything tabbable that is outside of the current modal needs to become untabbable\r\n tabbables.forEach(function (tabbable) {\r\n if (!el.contains(tabbable) && !tabbable.getAttribute('data-tab-restore')) {\r\n var tabEl = tabbable;\r\n // store the elements current tabindex setting so that we can restore it on close\r\n var currentTabIndex = tabEl.getAttribute('tabindex');\r\n if (currentTabIndex === null) {\r\n currentTabIndex = 'null';\r\n }\r\n // store the current tabindex value on the element\r\n tabEl.dataset.tabRestore = currentTabIndex;\r\n // make it untabbable\r\n tabEl.setAttribute('tabindex', '-1');\r\n }\r\n });\r\n // similarly we need to add an aria-hidden attribute to stop iPhone's screen reader focussing on anything else\r\n // we can achieve this by setting aria-hidden=\"true\" to all branches of the dom tree, other than our own\r\n // storing any aria-hidden value that is set, so that we can restore it when we close the modal\r\n var currentEl = el;\r\n while (currentEl !== null && currentEl.tagName !== 'BODY') {\r\n // aria-hide any siblings, cutting those branches from view of the screen reader\r\n var siblings = getSiblings(currentEl);\r\n siblings.forEach(function (sibling) {\r\n if (sibling.getAttribute('data-aria-restore') || sibling.getAttribute('aria-live')) {\r\n return;\r\n }\r\n var currentAriaHidden = sibling.getAttribute('aria-hidden');\r\n if (currentAriaHidden === null) {\r\n currentAriaHidden = 'null';\r\n }\r\n sibling.setAttribute('data-aria-restore', currentAriaHidden);\r\n sibling.setAttribute('aria-hidden', 'true');\r\n });\r\n // go up a level, rinse and repeat\r\n currentEl = currentEl.parentElement;\r\n }\r\n }\r\n else {\r\n // restore tabbing status\r\n d.querySelectorAll('[data-tab-restore]').forEach(function (tabbable) {\r\n var tabEl = tabbable;\r\n if (tabEl.dataset.tabRestore === 'null') {\r\n tabEl.removeAttribute('tabindex');\r\n }\r\n else if (tabEl.dataset.tabRestore) {\r\n tabEl.setAttribute('tabindex', tabEl.dataset.tabRestore);\r\n }\r\n delete tabEl.dataset.tabRestore;\r\n });\r\n // restore aria-hidden status\r\n d.querySelectorAll('[data-aria-restore]').forEach(function (elem) {\r\n var restoreEl = elem;\r\n if (restoreEl.dataset.ariaRestore === 'null') {\r\n restoreEl.removeAttribute('aria-hidden');\r\n }\r\n else if (restoreEl.dataset.ariaRestore) {\r\n restoreEl.setAttribute('aria-hidden', restoreEl.dataset.ariaRestore);\r\n }\r\n delete restoreEl.dataset.ariaRestore;\r\n });\r\n }\r\n}\r\n//# sourceMappingURL=utilities.js.map","var _a;\r\nimport Vue from 'vue';\r\nimport Vuex from 'vuex';\r\nimport { DispatchAction, CrossSellAction, } from './interfaces';\r\nimport * as utilities from './utilities';\r\nVue.use(Vuex);\r\n// List of all available Mutation. Please keep it in alphabetical order.\r\nexport var Mutation;\r\n(function (Mutation) {\r\n Mutation[\"REPLACE_CSRFTOKEN\"] = \"replacecsrftoken\";\r\n Mutation[\"REPLACE_CURATEDPRODUCTS\"] = \"replacecuratedproducts\";\r\n Mutation[\"REPLACE_FREIGHTOPTIONS\"] = \"replacefreightoptions\";\r\n Mutation[\"REPLACE_OFFER\"] = \"replaceoffer\";\r\n Mutation[\"REPLACE_ORDER\"] = \"replaceorder\";\r\n Mutation[\"REPLACE_PRODUCTS\"] = \"replaceproducts\";\r\n Mutation[\"REPLACE_SNIPPETS\"] = \"replacesnippets\";\r\n Mutation[\"REPLACE_STORED_PAYMENT\"] = \"replacestoredpayment\";\r\n Mutation[\"SET_PAYMENT_METHOD\"] = \"setpaymentmethod\";\r\n})(Mutation || (Mutation = {}));\r\n// TODO change the XSLT to include Delivery countries\r\nvar settings = window.eso.WebsiteSettings;\r\nexport var store = new Vuex.Store({\r\n state: {\r\n Order: window.eso.cart.order,\r\n Customer: window.eso.consumer.customer || {},\r\n Products: [],\r\n FreightOptions: [],\r\n WebsiteSettings: {\r\n eShopWorld: '1',\r\n IsAfterPayEnabled: settings.IsAfterPayEnabled,\r\n IsKlarnaEnabled: settings.IsKlarnaEnabled,\r\n CurrencyCode: settings.CurrencyCode,\r\n AfterPayLightbox: utilities.renderHTML(settings.AfterPayLightbox),\r\n AfterPayMinAmount: settings.AfterPayMinAmount,\r\n AfterPayMaxAmount: settings.AfterPayMaxAmount,\r\n KlarnaMinAmount: settings.KlarnaMinAmount,\r\n KlarnaMaxAmount: settings.KlarnaMaxAmount,\r\n ExchangeRate: settings.ExchangeRate,\r\n IsIXWebsite: settings.IsIXWebsite,\r\n BaseUrl: settings.BaseUrl,\r\n IsLoggedIn: settings.IsLoggedIn,\r\n ChangeColourForGWPOnly: settings.ChangeColourForGWPOnly,\r\n CrossSellInBasket: settings.CrossSellInBasket,\r\n CrossSellInConfirmation: settings.CrossSellInConfirmation,\r\n IsEshopUser: settings.IsEshopUser,\r\n ShopLink: settings.ShopLink,\r\n ParcelLockerWidgetAPIKEY: settings.ParcelLockerWidgetAPIKEY,\r\n ParcelLockerWidgetAPISECRET: settings.ParcelLockerWidgetAPISECRET,\r\n ParcelLockerWidgetAPIMERCHANT: settings.ParcelLockerWidgetAPIMERCHANT,\r\n ParcelLockerEnabled: settings.ParcelLockerEnabled,\r\n GoogleAPIKey: settings.GoogleAPIKey,\r\n CountryLabel: settings.CountryLabel,\r\n SameDayfpID: settings.SameDayfpID,\r\n WebsiteID: settings.WebsiteID,\r\n NoImageUpsell: settings.NoImageUpsell,\r\n CountryRoadSettings: settings.CountryRoadSettings,\r\n Country: settings.Country,\r\n ReturnAddress: settings.ReturnAddress,\r\n ShippingCountries: settings.ShippingCountries,\r\n RetryingPlaceOrder: settings.RetryingPlaceOrder,\r\n WebsitePrefix: settings.WebsitePrefix,\r\n Glossary: settings.Glossary || [],\r\n Brand: settings.Brand,\r\n ReCaptchaKey: settings.ReCaptchaKey || '',\r\n SupportUrl: settings.SupportUrl,\r\n SameDayInactiveMsg: settings.SameDayInactiveMsg,\r\n DeliveryMethodResetDuration: settings.DeliveryMethodResetDuration,\r\n StoredPaymentsRequireCVV: settings.StoredPaymentsRequireCVV || false,\r\n },\r\n Snippets: {},\r\n CuratedProducts: '',\r\n Page: window.eso.cart.page,\r\n CsrfToken: window.eso.cart.csrfToken,\r\n IncentiveOffer: null,\r\n PaymentMethods: window.eso.cart.PaymentMethods,\r\n },\r\n mutations: (_a = {},\r\n // Refresh the order object with the new object returned from the api.\r\n _a[Mutation.REPLACE_ORDER] = function (state, newOrder) {\r\n state.Order = (newOrder === undefined ? {} : newOrder);\r\n store.dispatch(DispatchAction.FetchProducts);\r\n if (state.Page === 'cart') {\r\n store.dispatch(DispatchAction.FetchIncentiveOffer);\r\n }\r\n },\r\n _a[Mutation.REPLACE_PRODUCTS] = function (state, newProducts) {\r\n // If we currently have no products, just assign, otherwise merge in the data\r\n if (state.Products.length === 0) {\r\n state.Products = newProducts;\r\n }\r\n else {\r\n newProducts.forEach(function (newProduct) {\r\n var hasProduct = false;\r\n state.Products.forEach(function (product) {\r\n if (product.ID === newProduct.ID) {\r\n hasProduct = true;\r\n }\r\n });\r\n if (!hasProduct) {\r\n state.Products.push(newProduct);\r\n }\r\n });\r\n }\r\n },\r\n _a[Mutation.REPLACE_FREIGHTOPTIONS] = function (state, newOptions) {\r\n newOptions.forEach(function (option) { return option.IsSameday = option.Description === 'StarTrack SameDay (STDSD)'; });\r\n state.FreightOptions = newOptions;\r\n },\r\n _a[Mutation.REPLACE_SNIPPETS] = function (state, newSnippets) {\r\n state.Snippets = newSnippets;\r\n },\r\n _a[Mutation.REPLACE_CURATEDPRODUCTS] = function (state, newCuratedProducts) {\r\n state.CuratedProducts = newCuratedProducts;\r\n },\r\n _a[Mutation.REPLACE_CSRFTOKEN] = function (state, newToken) {\r\n // Store in our state\r\n state.CsrfToken = newToken;\r\n // The next sections are for backward compatibility\r\n // Update the body tags data-rnd attribute\r\n var body = document.getElementsByTagName('body')[0];\r\n var dataRnd = document.createAttribute('data-rnd');\r\n dataRnd.value = newToken;\r\n body.attributes.setNamedItem(dataRnd);\r\n // Update any input[name=rnd] elements in the DOM\r\n Array.from(document.querySelectorAll('input[name=rnd]')).forEach(function (input) {\r\n input.value = newToken;\r\n });\r\n },\r\n _a[Mutation.REPLACE_OFFER] = function (state, newOffer) {\r\n state.IncentiveOffer = newOffer;\r\n },\r\n _a[Mutation.SET_PAYMENT_METHOD] = function (state, newPaymentMethod) {\r\n state.Order.PaymentMethod = newPaymentMethod;\r\n },\r\n _a[Mutation.REPLACE_STORED_PAYMENT] = function (state, storedPayments) {\r\n var creditCardOption = state.PaymentMethods.find(function (option) { return option.TsID === 1; });\r\n if (creditCardOption) {\r\n creditCardOption.StoredPayments = storedPayments;\r\n }\r\n },\r\n _a),\r\n actions: {\r\n // Fetch Order - Retrieves the order from the controller\r\n FetchOrder: function (context) {\r\n // Skip getting the order details for orders with status \"Invalid Card Number\"\r\n // (replacement orders) which don't have order ID in State\r\n if (context.getters.Order.Status === 4) {\r\n return;\r\n }\r\n // Now we ask our api for our details\r\n return utilities.fetch('/api/cart/order').then(function (response) {\r\n if (response.ok) {\r\n return response.json().then(function (json) { return json.Data; });\r\n }\r\n })\r\n .then(function (order) {\r\n context.commit(Mutation.REPLACE_ORDER, order);\r\n });\r\n },\r\n FetchProducts: function (context) {\r\n // Bail if order not loaded (what items?)\r\n if (typeof (context.getters.Order.Items) !== typeof ([])) {\r\n return;\r\n }\r\n // Compare order items with any currently loaded product data to find products we don't have\r\n var missingProducts = [];\r\n context.getters.Order.Items.forEach(function (item) {\r\n if (context.getters.Products.length === 0) {\r\n missingProducts.push(item.ProductID);\r\n }\r\n else {\r\n var hasProduct_1 = false;\r\n context.getters.Products.forEach(function (product) {\r\n if (product.ID === item.ProductID) {\r\n hasProduct_1 = true;\r\n }\r\n });\r\n if (!hasProduct_1) {\r\n missingProducts.push(item.ProductID);\r\n }\r\n }\r\n });\r\n // If there are any products we don't have, go get their data\r\n if (missingProducts.length > 0) {\r\n var url_1 = '/api/product';\r\n missingProducts.forEach(function (productID, i) {\r\n if (i === 0) {\r\n url_1 += '?';\r\n }\r\n else {\r\n url_1 += '&';\r\n }\r\n url_1 += 'productID=' + productID;\r\n });\r\n utilities.fetch(url_1).then(function (response) {\r\n if (response.ok) {\r\n return response.json().then(function (json) { return json.Data; });\r\n }\r\n })\r\n .then(function (products) {\r\n context.commit(Mutation.REPLACE_PRODUCTS, products);\r\n });\r\n }\r\n },\r\n FetchFreightOptions: function (context) {\r\n // Skip getting the freight options for orders with status \"Invalid Card Number\" (replacement orders)\r\n // (replacement orders) which don't have order ID in State\r\n if (context.getters.Order.Status === 4) {\r\n return;\r\n }\r\n // Fetch available freight options for this order from the API\r\n utilities.fetch('/api/cart/order/freightoptions').then(function (response) {\r\n if (response.ok) {\r\n return response.json().then(function (json) { return json.Data; });\r\n }\r\n })\r\n .then(function (options) {\r\n context.commit(Mutation.REPLACE_FREIGHTOPTIONS, options);\r\n });\r\n },\r\n ParseSnippets: function (context) {\r\n var snippets = {};\r\n for (var snippetName in window.eso.cart.snippets) {\r\n if (window.eso.cart.snippets.hasOwnProperty(snippetName)) {\r\n var snippet = window.eso.cart.snippets[snippetName];\r\n snippet.body = utilities.renderHTML(snippet.body);\r\n snippets[snippetName] = snippet;\r\n }\r\n }\r\n context.commit(Mutation.REPLACE_SNIPPETS, snippets);\r\n },\r\n // Based on the first item, fetch the curated product list.\r\n FetchCuratedProducts: function (context) {\r\n var crossSellInBasket = context.getters.WebsiteSettings.CrossSellInBasket;\r\n var crossSellInConfirmation = context.getters.WebsiteSettings.CrossSellInConfirmation;\r\n var page = context.getters.Page;\r\n var action = CrossSellAction.disable;\r\n // We only display the curated product list in basket and confirmation page.\r\n if (page === 'cart') {\r\n action = crossSellInBasket;\r\n }\r\n else if (page === 'complete') {\r\n action = crossSellInConfirmation;\r\n }\r\n if (action !== CrossSellAction.disable) {\r\n var topItemPdID = context.getters.Order.Items[0].ProductID;\r\n var url = '/default.aspx?action=' + CrossSellAction[action]\r\n + '&page=' + (page === 'complete' ? 'confirmation' : page)\r\n + '&pdid=' + topItemPdID;\r\n // The curated product list should be the same as product detail page.\r\n utilities.fetch(url + '&serveas=ajax&curatedProduct=true').then(function (response) {\r\n if (response.ok) {\r\n response.text().then(function (data) {\r\n context.commit(Mutation.REPLACE_CURATEDPRODUCTS, data);\r\n });\r\n }\r\n });\r\n }\r\n },\r\n UpdateCsrfToken: function (context, newToken) {\r\n context.commit(Mutation.REPLACE_CSRFTOKEN, newToken);\r\n },\r\n FetchIncentiveOffer: function (context) {\r\n if (typeof (context.getters.Order.Items) !== typeof ([])) {\r\n context.commit(Mutation.REPLACE_OFFER, null);\r\n return;\r\n }\r\n if (context.getters.Order.Subtotal > 0) {\r\n utilities.fetch('/client/incentive/offer').then(function (response) {\r\n if (response.ok) {\r\n return response.json().then(function (json) { return json.Data; });\r\n }\r\n else {\r\n return null;\r\n }\r\n })\r\n .then(function (offer) {\r\n context.commit(Mutation.REPLACE_OFFER, offer);\r\n });\r\n }\r\n else {\r\n context.commit(Mutation.REPLACE_OFFER, null);\r\n }\r\n },\r\n SetPaymentMethod: function (context, newPaymentMethod) {\r\n context.commit(Mutation.SET_PAYMENT_METHOD, newPaymentMethod);\r\n },\r\n // Fetch Stored Payments - Retrieves the all stored Payment from the controller\r\n FetchStoredPayment: function (context) {\r\n utilities.fetch('/api/customer/storedpayments').then(function (response) {\r\n if (response.ok) {\r\n return response.json().then(function (json) { return json.Data; });\r\n }\r\n })\r\n .then(function (storedPayments) {\r\n context.commit(Mutation.REPLACE_STORED_PAYMENT, storedPayments);\r\n });\r\n },\r\n ReplaceOrder: function (context, order) {\r\n context.commit(Mutation.REPLACE_ORDER, order);\r\n },\r\n },\r\n getters: {\r\n Order: function (state) {\r\n return state.Order;\r\n },\r\n Customer: function (state) {\r\n return state.Customer;\r\n },\r\n Products: function (state) {\r\n return state.Products || [];\r\n },\r\n FreightOptions: function (state) {\r\n return state.FreightOptions || [];\r\n },\r\n WebsiteSettings: function (state) {\r\n if (state.WebsiteSettings.WebsitePrefix === 'ou') {\r\n // Outlet do not offer C&C or Gift wrap - set these values here until we receive good data from the server\r\n state.WebsiteSettings.CountryRoadSettings.PickupInStore = '0';\r\n state.WebsiteSettings.CountryRoadSettings.GiftWrap = '0';\r\n }\r\n return state.WebsiteSettings;\r\n },\r\n Snippets: function (state) {\r\n return state.Snippets;\r\n },\r\n CuratedProducts: function (state) {\r\n return state.CuratedProducts;\r\n },\r\n Page: function (state) {\r\n return state.Page;\r\n },\r\n CsrfToken: function (state) {\r\n return state.CsrfToken;\r\n },\r\n IncentiveOffer: function (state) {\r\n return state.IncentiveOffer;\r\n },\r\n PaymentMethods: function (state) {\r\n return state.PaymentMethods || [];\r\n },\r\n getGlossaryEntryByKey: function (state) { return function (key) {\r\n var term = state.WebsiteSettings.Glossary.find(function (t) {\r\n return t.key === key;\r\n });\r\n if (term) {\r\n return term.value;\r\n }\r\n return;\r\n }; },\r\n },\r\n});\r\n//# sourceMappingURL=store.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tbody',{class:[(_vm.item.FreeItem ? 'free-item' : ''), (_vm.item.PersonalisationInfo ? 'personalised-item' : '')]},[_c('tr',{staticClass:\"item\"},[_c('td',{staticClass:\"product-image\",attrs:{\"rowspan\":_vm.rowsToSpan,\"aria-hidden\":\"true\"}},[_c('div',[_c('a',{attrs:{\"href\":_vm.item.Link}},[_c('img',{attrs:{\"alt\":\"\",\"src\":_vm.item.Image}}),(_vm.item.Overlay && _vm.item.Overlay.ID > 0)?_c('Overlay',{attrs:{\"info\":_vm.item.Overlay}}):_vm._e()],1)])]),_c('td',{staticClass:\"product-details\"},[_c('p',{staticClass:\"product-name\"},[_c('a',{attrs:{\"href\":_vm.item.Link}},[_vm._v(_vm._s(_vm.item.Title))])]),_c('p',{staticClass:\"product-code\"},[_c('span',{staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Style code:\")]),_vm._v(_vm._s(_vm.item.Style))])]),_c('td'),_c('td',{staticClass:\"remove-item\"},[(_vm.canDelete)?_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"aria-label\":\"Remove item from cart\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onItemRemove($event)}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}})]):_vm._e()])]),_c('tr',{staticClass:\"product-options\"},[_c('td',{staticClass:\"option-selections\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();}}},[(_vm.isProductLoaded && _vm.productColours.length > 0)?_c('div',{staticClass:\"option colour\"},[(!_vm.colourSelector.Disabled)?_c('label',{attrs:{\"for\":_vm.ComponentID + '-colour'}},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderitem-colour-selector-label'),expression:\"'orderitem-colour-selector-label'\"}],staticClass:\"label-text\",attrs:{\"role\":\"text\"}})]):_vm._e(),(!_vm.colourSelector.Disabled)?_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedColour),expression:\"selectedColour\"}],ref:\"colourSelector\",attrs:{\"id\":_vm.ComponentID + '-colour'},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedColour=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.productColours),function(option){return _c('option',{key:option.Value,attrs:{\"disabled\":option.Disabled},domProps:{\"value\":option.Value}},[_vm._v(_vm._s(option.Label))])}),0):_c('span',{staticClass:\"selector\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Colour: \")]),_vm._v(_vm._s(_vm.selectedColourOption))])]):_vm._e(),(_vm.isProductLoaded && _vm.productSizes.length > 0)?_c('div',{staticClass:\"option size\"},[(!_vm.sizeSelector.Disabled)?_c('label',{attrs:{\"for\":_vm.ComponentID + '-size'}},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderitem-size-selector-label'),expression:\"'orderitem-size-selector-label'\"}],staticClass:\"label-text\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size: \")])]):_vm._e(),(!_vm.sizeSelector.Disabled)?_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedSize),expression:\"selectedSize\"}],ref:\"sizeSelector\",attrs:{\"id\":_vm.ComponentID + '-size'},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedSize=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.productSizes),function(option){return _c('option',{key:option.Value,attrs:{\"disabled\":option.Disabled},domProps:{\"value\":option.Value}},[_vm._v(_vm._s(option.Label))])}),0):_c('span',{staticClass:\"selector\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size: \")]),_vm._v(_vm._s(_vm.selectedSizeOption))])]):_vm._e(),_c('ComboBox',{ref:\"quantitySelector\",class:'quantity',attrs:{\"data\":_vm.quantitySelector},on:{\"change\":_vm.onQuantityChange}})],1),(_vm.canDelete && _vm.brand === 'wi')?_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"aria-label\":\"Remove item from cart\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onItemRemove($event)}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Remove\")]):_vm._e()]),_c('td',{class:_vm.item.FreeItem ? 'free-item-incentive' : ''},[(_vm.item.FreeItem)?_c('div',{staticClass:\"free-item-incentive-wrapper\"},[_c('span',{staticClass:\"message\"},[_vm._v(\" \"+_vm._s(_vm.freeItemText))]),_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}})]):_vm._e()]),(!_vm.isDeleted)?_c('td',{staticClass:\"pricing\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.sellingPrice}}),(_vm.originalPrice)?_c('PriceDisplay',{attrs:{\"price\":_vm.originalPrice}}):_vm._e()],1):_vm._e()]),(_vm.item.PersonalisationInfo)?_c('PersonalisationItem',{attrs:{\"info\":_vm.item.PersonalisationInfo,\"columnSpan\":2},on:{\"onItemRemove\":_vm.onItemRemove}}):_vm._e(),(_vm.item.PersonalisationInfo)?_c('tr',[_c('td',{staticClass:\"remove-item\"},[(_vm.canDelete)?_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"aria-label\":\"Remove item from cart\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onItemRemove($event)}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Remove\")]):_vm._e()])]):_c('tr',[_c('td'),_c('td'),_c('td')]),(_vm.hasErrorMessage || _vm.isDeleted)?_c('tr',[_c('td',{attrs:{\"colspan\":\"3\"}},[_c('div',{staticClass:\"alert alert-danger\",attrs:{\"role\":\"alert\",\"id\":_vm.ComponentID + '-error'}},[_c('span',{staticClass:\"icon-tooltip\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"orderitem-error-message-content\"},[(_vm.errorMessage)?[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]:(_vm.isDeleted)?[_vm._v(\" \"+_vm._s(_vm.store.getters.getGlossaryEntryByKey('item-unavailable'))+\" \")]:_vm._e()],2)])])]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"price\",class:_vm.ClassName},[_c('span',{staticClass:\"price-display\"},[(_vm.price.Type === 'save')?_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"Save \")]):(_vm.price.Type === 'was')?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Price was \")]):(_vm.price.Type === 'now')?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Price now \")]):_vm._e(),(_vm.ShowCurrency)?_c('span',{staticClass:\"currency-code\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.Currency))]):_vm._e(),_c('span',{staticClass:\"currency-symbol\",attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.CurrencySymbol)}}),_c('TextAnimation',{staticClass:\"value\",attrs:{\"Value\":_vm.Value}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var PriceTypes;\r\n(function (PriceTypes) {\r\n PriceTypes[\"STANDARD\"] = \"standard\";\r\n PriceTypes[\"WAS\"] = \"was\";\r\n PriceTypes[\"NOW\"] = \"now\";\r\n PriceTypes[\"SAVE\"] = \"save\";\r\n PriceTypes[\"DISCOUNT\"] = \"discount\";\r\n PriceTypes[\"SUBTOTAL\"] = \"subtotal\";\r\n PriceTypes[\"TOTAL\"] = \"total\";\r\n PriceTypes[\"CREDIT\"] = \"credit\";\r\n})(PriceTypes || (PriceTypes = {}));\r\nvar Price = /** @class */ (function () {\r\n function Price(amount, type) {\r\n this.Type = PriceTypes.STANDARD;\r\n this.Amount = 0;\r\n this.Amount = amount;\r\n this.Type = type || PriceTypes.STANDARD;\r\n }\r\n Price.Types = PriceTypes;\r\n return Price;\r\n}());\r\nexport default Price;\r\n//# sourceMappingURL=Price.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"fade\",\"appear\":\"\"}},[_c('span',{ref:\"element\",attrs:{\"role\":\"text\"},domProps:{\"textContent\":_vm._s(_vm.localVal)}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\n@Component({})\nexport default class TextAnimation extends Vue {\n @Prop() private Value!: string | number;\n\n private localVal: string | number = '';\n\n public mounted() {\n const el = this.$refs.element as HTMLElement;\n el.addEventListener(this.eventPrefix('AnimationEnd'), this.onAnimationEnd);\n this.localVal = this.Value;\n }\n\n // vue re-renders the dom element every time the value rendered value (this.localVal) updates\n // clean up our listeners before the element is destroyed\n public beforeUpdate() {\n const el = this.$refs.element as HTMLElement;\n el.removeEventListener(this.eventPrefix('AnimationEnd'), this.onAnimationEnd);\n }\n // initialise our listeners when the element gets re-rendered\n public updated() {\n const el = this.$refs.element as HTMLElement;\n el.addEventListener(this.eventPrefix('AnimationEnd'), this.onAnimationEnd);\n }\n\n @Watch('Value')\n private updateValue(newVal: any, oldVal: any) {\n const el = this.$refs.element as HTMLElement;\n if (el.classList.contains('fade-in')) {\n el.classList.remove('fade-in');\n }\n const letsKeepTypescriptHappy = getComputedStyle(el).height;\n Vue.nextTick(() => {\n el.classList.add('fade-out');\n });\n }\n\n // get browser specific event name (nowadays really just an IE11 thing)\n private eventPrefix(eventName: string): string {\n const prefixes = ['webkit', 'moz', 'MS', 'o'];\n const prefix: string | undefined = prefixes.find((p) => {\n return (p + eventName) in (this.$el as HTMLElement).style;\n });\n if (prefix) {\n return prefix + eventName;\n } else {\n return eventName.toLowerCase();\n }\n }\n\n // if the element has just faded out we need to change the displayed value then fade it back in\n // otherwise it has just finished fading in, so remove any animation classes\n private onAnimationEnd() {\n const el = this.$refs.element as HTMLElement;\n if (el.classList.contains('fade-out')) {\n el.classList.remove('fade-out');\n this.localVal = '';\n const letsKeepTypescriptHappy = getComputedStyle(el).height;\n Vue.nextTick(() => {\n (this.$refs.element as HTMLElement).classList.add('fade-in');\n this.localVal = this.Value;\n });\n } else {\n el.classList.remove('fade-in');\n }\n }\n\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextAnimation.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextAnimation.vue?vue&type=script&lang=ts&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./TextAnimation.vue?vue&type=template&id=9f30da88&\"\nimport script from \"./TextAnimation.vue?vue&type=script&lang=ts&\"\nexport * from \"./TextAnimation.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport { store } from '../../store';\r\nimport Price from './Price';\r\nimport { IOrder } from '../../interfaces';\r\nimport TextAnimation from '@/components/ui/animations/TextAnimation.vue';\r\n\r\n@Component({\r\n components: {\r\n TextAnimation,\r\n },\r\n})\r\nexport default class PriceDisplay extends Vue {\r\n @Prop() private price!: Price;\r\n get Currency(): string {\r\n return store.getters.Order.Currency;\r\n }\r\n get ClassName(): string {\r\n switch (this.price.Type) {\r\n case Price.Types.WAS:\r\n return 'was';\r\n case Price.Types.NOW:\r\n return 'now';\r\n case Price.Types.DISCOUNT:\r\n return 'discount';\r\n case Price.Types.CREDIT:\r\n return 'credit';\r\n default:\r\n return 'standard';\r\n }\r\n }\r\n get CurrencySymbol(): string {\r\n if (this.price.Type === Price.Types.DISCOUNT || this.price.Type === Price.Types.CREDIT) {\r\n return '<span role=\"text\" class=\"accessibility\">Minus</span> -$';\r\n } else if (this.Value === 'Free') {\r\n return '';\r\n }\r\n return ' $';\r\n }\r\n get Value(): string {\r\n const amount = this.price.Amount;\r\n let newAmount = '';\r\n if (amount === 0 && this.price.Type !== Price.Types.TOTAL && this.price.Type !== Price.Types.SAVE) {\r\n return 'Free';\r\n } else if (this.price.Amount >= 1000) {\r\n newAmount = amount.toFixed(2).replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1,');\r\n return newAmount;\r\n } else {\r\n return amount.toFixed(2);\r\n }\r\n }\r\n get ShowCurrency(): boolean {\r\n return this.price.Type === Price.Types.TOTAL;\r\n }\r\n\r\n @Watch('Value')\r\n private priceChanged(newVal: string, oldVal: string) {\r\n if (oldVal !== newVal) {\r\n const eventData = {\r\n bubbles: true,\r\n detail: {\r\n currency: this.Currency,\r\n amount: newVal,\r\n },\r\n };\r\n const w = window as any;\r\n const evt = new w.CustomEvent('price-changed', eventData);\r\n (this.$el as HTMLElement).dispatchEvent(evt);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PriceDisplay.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PriceDisplay.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PriceDisplay.vue?vue&type=template&id=6b692372&\"\nimport script from \"./PriceDisplay.vue?vue&type=script&lang=ts&\"\nexport * from \"./PriceDisplay.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"thisOptionContainer\",staticClass:\"option\"},[(!_vm.waitingOnResponse)?[(!_vm.data.Disabled)?_c('a',{ref:\"thisOptionList\",staticClass:\"selector\",attrs:{\"href\":'#' + _vm.ComponentID,\"aria-label\":_vm.data.Name + ' '+ _vm.buttonLabel +' click to change'},on:{\"click\":function($event){$event.preventDefault();_vm.isOpen = !_vm.isOpen}}},[_vm._v(_vm._s(_vm.buttonLabel))]):_c('span',{staticClass:\"selector\"},[_vm._v(_vm._s(_vm.buttonLabel))])]:[_c('span',{staticClass:\"loading\"})],(!_vm.data.Disabled)?_c('div',{ref:\"thisOptionListContainer\",class:{optionlist: true, open: _vm.isOpen },attrs:{\"tabindex\":_vm.isOpen ? '0' : '-1'}},[_c('fieldset',{attrs:{\"id\":_vm.ComponentID}},[_c('legend',{staticClass:\"accessibility\"},[_vm._v(_vm._s(_vm.data.Name))]),_c('ul',_vm._l((_vm.data.Options),function(option,idx){return _c('li',{key:option.Value,class:{disabled : option.Disabled}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedValue),expression:\"selectedValue\"}],attrs:{\"type\":\"radio\",\"name\":_vm.ComponentID,\"id\":_vm.ComponentID + '-' + idx,\"disabled\":option.Disabled},domProps:{\"value\":option.Value,\"checked\":_vm._q(_vm.selectedValue,option.Value)},on:{\"change\":function($event){_vm.selectedValue=option.Value}}}),_c('label',{attrs:{\"for\":_vm.ComponentID + '-' + idx}},[_vm._v(_vm._s(option.Label))])])}),0)])]):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import * as tslib_1 from \"tslib\";\r\nimport { Component, Vue } from 'vue-property-decorator';\r\nvar ComponentID = /** @class */ (function (_super) {\r\n tslib_1.__extends(ComponentID, _super);\r\n function ComponentID() {\r\n var _this = _super.call(this) || this;\r\n // Initialise our global counter if it doesn't exist\r\n if (window.eso.vueComponentID === undefined) {\r\n window.eso.vueComponentID = 0;\r\n }\r\n // Set an ID for this component\r\n _this.ComponentID = 'vue-component-' + (window.eso.vueComponentID++);\r\n return _this;\r\n }\r\n ComponentID = tslib_1.__decorate([\r\n Component\r\n ], ComponentID);\r\n return ComponentID;\r\n}(Vue));\r\nexport default ComponentID;\r\n//# sourceMappingURL=ComponentID.js.map","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Emit, Watch } from 'vue-property-decorator';\nimport { IOptionList, IOptionListItem } from './OptionList';\nimport ComponentID from '../../mixins/ComponentID';\n\n@Component({\n mixins : [ComponentID],\n})\nexport default class OptionList extends Vue {\n // Option list definition, expected to be bound by caller\n @Prop() protected data!: IOptionList;\n\n // Controls whether the option list is open or closed\n protected reallyIsOpen: boolean = false;\n\n // to see if we are waiting on anything\n protected waitingOnResponse = false;\n\n get isOpen(): boolean {\n return this.reallyIsOpen;\n }\n set isOpen(newValue: boolean) {\n // Add/remove document click event handler on open/close\n if (!this.reallyIsOpen && newValue) { // On open\n this.computeOptionListPos();\n document.addEventListener('click', this.onDocumentClick);\n } else if (this.reallyIsOpen && !newValue) { // On close\n document.removeEventListener('click', this.onDocumentClick);\n }\n // Set the new value\n this.reallyIsOpen = newValue;\n }\n\n // Label for displaying the option list button\n get buttonLabel(): string {\n // Return the selected values label or the default label if no value is selected currently\n let label = this.data.Label;\n this.data.Options.forEach((option: IOptionListItem) => {\n if (option.Value === this.selectedValue) {\n if (this.data.LabelPrefix !== undefined && this.data.LabelPrefix.length > 0) {\n label = this.data.LabelPrefix + ' ' + option.Label;\n } else {\n label = option.Label;\n }\n }\n });\n\n return label;\n }\n\n // The currently selected options value or null if no option is currently selected\n get selectedValue(): number | string | null {\n return this.data.Value;\n }\n\n set selectedValue(newValue: number | string | null) {\n // Save new value and fire a change event\n this.waitingOnResponse = true;\n this.data.Value = newValue;\n this.$emit('change', newValue);\n }\n\n @Watch('data')\n protected dataUpdate() {\n this.waitingOnResponse = false;\n }\n\n // Document click event handler, used to close list when clicked off\n protected onDocumentClick(event: any) {\n // Do not hide the option list if the clicked element is disabled\n const label = event.target as HTMLElement;\n const input = label.previousElementSibling;\n if (input !== null && input.getAttribute('name') === this.ComponentID && input.getAttribute('disabled')) {\n return;\n }\n\n // If the click was somewhere else, close our option list\n if (this.$refs.thisOptionList !== event.target) {\n this.isOpen = false;\n }\n }\n\n // Centres the dropdown below the label/link text\n protected computeOptionListPos() {\n if (this.$refs.thisOptionListContainer as HTMLElement) {\n // get the two dependent elements\n const container = (this.$refs.thisOptionContainer as HTMLElement);\n const optionlist = (this.$refs.thisOptionListContainer as HTMLElement);\n // get container padding\n const containerPadding = window.getComputedStyle(container).getPropertyValue('padding').split(' ');\n // subtract padding from width to get inner width\n const containerHorizontalPadding = parseInt(containerPadding[1], 10) + parseInt(containerPadding[3], 10);\n const containerInnerWidth = container.clientWidth - containerHorizontalPadding;\n // get width of dropdown\n const optionListWidth = window.getComputedStyle(optionlist).getPropertyValue('width');\n // set negative margin of half dropdown\n optionlist.style.marginLeft = '-' + (parseInt(optionListWidth, 10) / 2) + 'px';\n // set left property to container left padding + half inner width of container\n optionlist.style.left = parseInt(containerPadding[3], 10) + containerInnerWidth / 2 + 'px';\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OptionList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OptionList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OptionList.vue?vue&type=template&id=669c89ce&\"\nimport script from \"./OptionList.vue?vue&type=script&lang=ts&\"\nexport * from \"./OptionList.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"thisOptionContainer\",staticClass:\"option\",class:[_vm.waitingOnResponse === true ? 'loading' : '', _vm.isInputMode === true ? 'inputmode' : 'selectmode']},[(!_vm.data.Disabled)?_c('label',{attrs:{\"for\":_vm.ComponentID + '-combo-field'}},[_vm._v(_vm._s(_vm.data.LabelPrefix)+\" \"),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.data.Label))])]):_vm._e(),(!_vm.isInputMode && !_vm.data.Disabled)?_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectFieldValue),expression:\"selectFieldValue\"}],ref:\"thisSelectField\",attrs:{\"id\":_vm.ComponentID + '-combo-field',\"name\":_vm.data.Name},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectFieldValue=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.onSelectChange]}},_vm._l((_vm.data.Options),function(option,idx){return _c('option',{key:option.Value,attrs:{\"disabled\":option.Disabled},domProps:{\"value\":option.Value}},[_vm._v(_vm._s(option.Label))])}),0):(_vm.isInputMode && !_vm.data.Disabled)?((_vm.data.InputType)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.inputFieldValue),expression:\"inputFieldValue\"}],ref:\"thisComboInput\",attrs:{\"maxlength\":_vm.data.InputMaxLength,\"min\":_vm.data.InputMin,\"max\":_vm.data.InputMax,\"pattern\":_vm.data.Pattern,\"id\":_vm.ComponentID + '-combo-field',\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.inputFieldValue)?_vm._i(_vm.inputFieldValue,null)>-1:(_vm.inputFieldValue)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.onComboInputChange($event)},\"blur\":_vm.onComboInputChange,\"change\":[function($event){var $$a=_vm.inputFieldValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.inputFieldValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.inputFieldValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.inputFieldValue=$$c}},_vm.onComboInputChange],\"input\":_vm.onComboInput}}):((_vm.data.InputType)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.inputFieldValue),expression:\"inputFieldValue\"}],ref:\"thisComboInput\",attrs:{\"maxlength\":_vm.data.InputMaxLength,\"min\":_vm.data.InputMin,\"max\":_vm.data.InputMax,\"pattern\":_vm.data.Pattern,\"id\":_vm.ComponentID + '-combo-field',\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.inputFieldValue,null)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.onComboInputChange($event)},\"blur\":_vm.onComboInputChange,\"change\":[function($event){_vm.inputFieldValue=null},_vm.onComboInputChange],\"input\":_vm.onComboInput}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.inputFieldValue),expression:\"inputFieldValue\"}],ref:\"thisComboInput\",attrs:{\"maxlength\":_vm.data.InputMaxLength,\"min\":_vm.data.InputMin,\"max\":_vm.data.InputMax,\"pattern\":_vm.data.Pattern,\"id\":_vm.ComponentID + '-combo-field',\"type\":_vm.data.InputType},domProps:{\"value\":(_vm.inputFieldValue)},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.onComboInputChange($event)},\"blur\":_vm.onComboInputChange,\"change\":_vm.onComboInputChange,\"input\":[function($event){if($event.target.composing){ return; }_vm.inputFieldValue=$event.target.value},_vm.onComboInput]}}):_c('span',{staticClass:\"selector\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.data.Label)+\":\")]),_vm._v(_vm._s(_vm.data.Value))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport { IComboBox, IComboBoxItem } from './ComboBox';\nimport ComponentID from '../../mixins/ComponentID';\n\n@Component({\n mixins : [ComponentID],\n})\nexport default class ComboBox extends Vue {\n // Option list definition, expected to be bound by caller\n @Prop() protected data!: IComboBox;\n\n // to see if we are waiting on anything\n private waitingOnResponse = false;\n\n // Whether we are 'input mode' or not, that is whether the free entry input is open or not\n private isInputMode: boolean = false;\n\n private lastValue: string = this.data.Value === null ? '' : this.data.Value.toString();\n private inputFieldValue: string = this.lastValue;\n private selectFieldValue: string = this.lastValue;\n\n private serverValue: number | string | null = this.data.Value;\n\n // Return the item that opens the combobox input\n get opensInput(): IComboBoxItem | undefined {\n return this.data.Options.find((o) => o.OpensInput === true);\n }\n\n // The currently selected options value or null if no option is currently selected\n get selectedValue(): number | string | null {\n return this.serverValue;\n }\n\n set selectedValue(newValue: number | string | null) {\n const newString: string = newValue === null ? '' : newValue.toString();\n const dataString: string = this.serverValue === null ? '' : this.serverValue.toString();\n if (newString === dataString || newString === '0') {\n this.inputFieldValue = this.selectFieldValue = dataString;\n this.refreshInputMode();\n return;\n }\n // Save new value and fire a change event\n this.waitingOnResponse = true;\n this.serverValue = newValue;\n this.$emit('change', newValue);\n }\n\n // expose the currently accessible field for focussing etc\n get activeField(): HTMLInputElement | HTMLSelectElement {\n if (this.isInputMode === true) {\n return this.$refs.thisComboInput as HTMLInputElement;\n } else {\n return this.$refs.thisSelectField as HTMLSelectElement;\n }\n }\n\n public mounted() {\n // set the display mode as if we have just loaded in a change\n this.refreshInputMode();\n }\n\n @Watch('data')\n protected dataUpdate() {\n this.waitingOnResponse = false;\n }\n\n\n // Only allow digits and up to 2 of them, not really the right place for this but it gives us a win now\n protected onComboInput() {\n // Strip non digit characters\n if (this.inputFieldValue.match(/\\D/)) {\n this.inputFieldValue = this.inputFieldValue.replace(/\\D/g, '');\n }\n\n // Restrict to 2 characters in length\n if (this.inputFieldValue.length > 2) {\n this.inputFieldValue = this.inputFieldValue.substr(0, 2);\n }\n }\n\n protected onSelectChange() {\n this.refreshInputMode();\n if (this.isInputMode) {\n this.inputFieldValue = this.selectFieldValue;\n }\n }\n\n protected onComboInputChange() {\n // we may need to change into input mode from select, depending on the value selected\n if (this.inputFieldValue) {\n this.selectedValue = this.inputFieldValue;\n } else {\n let resetValue: string = this.selectedValue === null ? '' : this.selectedValue.toString();\n if (resetValue === '' && this.opensInput) {\n resetValue = this.opensInput.Value.toString();\n }\n this.inputFieldValue = resetValue;\n }\n }\n\n private updated() {\n this.serverValue = this.data.Value;\n }\n\n private refreshInputMode() {\n // we have just finished an update\n const oldMode: boolean = this.isInputMode;\n let newMode: boolean = oldMode;\n if (!this.isInputMode && this.opensInput) {\n newMode = this.selectFieldValue.toString() === this.opensInput.Value.toString();\n } else if (this.isInputMode && this.opensInput) {\n newMode = this.inputFieldValue.toString() === this.opensInput.Value.toString();\n } else {\n newMode = false;\n }\n // if we're changing mode we may need to pass focus etc to the new field\n if (oldMode !== newMode) {\n const activeElement: HTMLElement = (document as HTMLDocument).activeElement as HTMLElement;\n const hasFocus = activeElement === this.activeField as HTMLElement;\n const ariaDescriber: string | null = this.activeField.getAttribute('aria-describedby');\n this.isInputMode = newMode;\n if (hasFocus) {\n // Set focus to the correct input:\n Vue.nextTick(() => {\n let target: HTMLElement | undefined;\n if (this.isInputMode === true && (this.$refs.thisComboInput as HTMLElement)) {\n target = this.$refs.thisComboInput as HTMLElement;\n } else if (this.isInputMode === false && (this.$refs.thisSelectField as HTMLElement)) {\n target = this.$refs.thisSelectField as HTMLElement;\n }\n if (target !== undefined) {\n if (ariaDescriber !== null) {\n target.setAttribute('aria-describedby', ariaDescriber);\n } else {\n target.removeAttribute('aria-describedby');\n }\n this.$nextFocus(target);\n }\n });\n }\n }\n }\n\n @Watch('selectedValue')\n private selectedValueChange(newVal: string | number | null, oldVal: any) {\n const valToUse: string = newVal === null ? '' : newVal.toString();\n this.lastValue = !oldVal ? '' : oldVal.toString();\n this.selectFieldValue = valToUse;\n this.inputFieldValue = valToUse;\n }\n\n @Watch('selectFieldValue')\n private onSelectBoxChange(newVal: string) {\n this.refreshInputMode();\n if (this.isInputMode === false) {\n this.selectedValue = newVal;\n } else {\n this.inputFieldValue = newVal;\n }\n }\n\n @Watch('waitingOnResponse')\n private responseLoaded(isWaiting: boolean) {\n if (isWaiting === false) {\n this.refreshInputMode();\n }\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ComboBox.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ComboBox.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ComboBox.vue?vue&type=template&id=60607ae0&\"\nimport script from \"./ComboBox.vue?vue&type=script&lang=ts&\"\nexport * from \"./ComboBox.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',{staticClass:\"personalised-details\"},[_c('td',{staticClass:\"details\"},[_c('div',{staticClass:\"personalised-title\"},[_c('span',[_vm._v(\"Personalisation\")]),_c('ToolTip',{attrs:{\"tooltipOptions\":{showIcon: false, placement: [{breakpoint: 0, placement: 'top-right', wrapper: _vm.parent}, {breakpoint: 768, placement: 'top'}], className: 'personalisation-tooltip', ariaLabel:'More personalisation information'}}},[_c('span',{staticClass:\"icon-tooltip personalisation-icon-tooltip\",attrs:{\"slot\":\"icon\"},slot:\"icon\"}),_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('personaliseddetails-tooltip-content'),expression:\"'personaliseddetails-tooltip-content'\"}],attrs:{\"slot\":\"content\"},slot:\"content\"},[_vm._v(\"To edit your personalised item, remove item from cart and begin personalisation again.\")])])],1),_c('PersonalisationDetails',{attrs:{\"info\":_vm.info}}),_c('button',{staticClass:\"mobile-remove-item-personalisation\",attrs:{\"type\":\"button\",\"aria-label\":\"Remove personalisation from item cart\"},on:{\"click\":function($event){$event.preventDefault();return _vm.$emit('onItemRemove', true)}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Remove personalisation \")])],1),_c('td',{staticClass:\"pricing\",attrs:{\"colspan\":_vm.columnSpan}},[_c('PriceDisplay',{attrs:{\"price\":_vm.PersonalisedPrice}}),_c('button',{staticClass:\"remove-item-personalisation\",attrs:{\"type\":\"button\",\"aria-label\":\"Remove personalisation from item cart\"},on:{\"click\":function($event){$event.preventDefault();return _vm.$emit('onItemRemove', true)}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Remove personalisation \")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"personalised-options\"},[_c('span',{staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.info.TypeDescription))]),_c('div',{staticClass:\"personalised-string\"},[_c('PersonalisationString',{attrs:{\"info\":_vm.info,\"showColour\":false}})],1)]),_c('div',{staticClass:\"personalised-selections\"},[_c('div',{staticClass:\"personalised-styles\"},[(_vm.info.TextColour)?_c('div',{staticClass:\"selection\"},[_c('span',{staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Text colour:\")]),_c('img',{style:({ 'background-color': _vm.TextColour}),attrs:{\"src\":_vm.TextImage,\"alt\":\"\"}}),_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.info.TextColour.DisplayName))])]):_vm._e(),(_vm.info.SymbolColour)?_c('div',{staticClass:\"selection\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('personalisation-details-selection-label-symbol'),expression:\"'personalisation-details-selection-label-symbol'\"}],staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Emoji colour:\")]),_c('img',{style:({ 'background-color': _vm.SymbolColour}),attrs:{\"src\":_vm.SymbolImage,\"alt\":\"\"}}),_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.info.SymbolColour.DisplayName))])]):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"selection\",attrs:{\"role\":\"text\"}},_vm._l((_vm.personalisedData),function(text){return _c('span',{key:text.SortOrder,class:_vm.dataClassName(text.DataTextType),style:({ 'font-family': _vm.fontFamily(text.DataTextType), 'color': _vm.fontColour(text.DataTextType)}),attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(text.InputData)}})}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport { IDataBreakDown, IPersonalisationInfo, PersonalisedInputType } from '../../interfaces';\nimport * as utilities from '../../utilities';\n\n@Component({})\nexport default class PersonalisationString extends Vue {\n @Prop() protected info!: IPersonalisationInfo;\n @Prop() protected showColour!: boolean;\n\n // Get the item personalisation details\n get personalisedData(): IDataBreakDown[] {\n const sourceData = (this.info.DataBreakDown || []).slice();\n const f: ArraySortFunction = utilities.sortByMultipleKey([\n ['SortOrder', 'asc', '']]);\n return sourceData.sort(f);\n }\n\n private dataClassName(type: PersonalisedInputType): string {\n if (type === PersonalisedInputType.Character) {\n return 'text';\n } else {\n return 'symbol';\n }\n }\n\n private fontFamily(type: PersonalisedInputType): string {\n if (type === PersonalisedInputType.Character) {\n return this.info.TextFont.FontFamily;\n } else {\n return this.info.SymbolFont.FontFamily;\n }\n }\n\n private fontColour(type: PersonalisedInputType): string {\n if (!this.showColour) {\n return '';\n } else if (type === PersonalisedInputType.Character) {\n return this.info.TextColour.HexCode;\n } else {\n return this.info.SymbolColour.HexCode;\n }\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalisationString.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalisationString.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PersonalisationString.vue?vue&type=template&id=dfb36382&\"\nimport script from \"./PersonalisationString.vue?vue&type=script&lang=ts&\"\nexport * from \"./PersonalisationString.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { IPersonalisationInfo } from '../../interfaces';\nimport PersonalisationString from './PersonalisationString.vue';\n\n@Component({\n components: { PersonalisationString },\n})\nexport default class PersonalisationDetails extends Vue {\n @Prop() protected info!: IPersonalisationInfo;\n\n get TextImage(): string {\n if (this.info.TextColour.ColourImage.length > 0) {\n return this.info.TextColour.ColourImage;\n } else {\n return '/images/spacer.gif';\n }\n }\n\n get TextColour(): string {\n if (this.info.TextColour.ColourImage.length > 0) {\n return '';\n } else {\n return this.info.TextColour.HexCode;\n }\n }\n\n get SymbolImage(): string {\n if (this.info.SymbolColour.ColourImage.length > 0) {\n return this.info.SymbolColour.ColourImage;\n } else {\n return '/images/spacer.gif';\n }\n }\n\n get SymbolColour(): string {\n if (this.info.SymbolColour.ColourImage.length > 0) {\n return '';\n } else {\n return this.info.SymbolColour.HexCode;\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalisationDetails.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalisationDetails.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PersonalisationDetails.vue?vue&type=template&id=093a99a5&\"\nimport script from \"./PersonalisationDetails.vue?vue&type=script&lang=ts&\"\nexport * from \"./PersonalisationDetails.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{ref:\"tooltipWrapper\",staticClass:\"vue-tooltip\"},[(_vm.options.ariaLabel.length == 0)?_c('span',{ref:\"icon\",staticClass:\"vue-tooltip-icon\",class:_vm.options.showIcon ? 'vue-tooltip-icon-default' : '',attrs:{\"tabindex\":\"0\"},on:{\"mouseenter\":function($event){_vm.ShowToolTip = true},\"mouseleave\":function($event){_vm.ShowToolTip = false},\"touchstart\":function($event){_vm.ShowToolTip = true},\"focus\":_vm.focussed,\"blur\":_vm.blurred}},[_vm._t(\"icon\")],2):_c('button',{ref:\"icon\",staticClass:\"vue-tooltip-icon\",class:_vm.options.showIcon ? 'vue-tooltip-icon-default' : '',attrs:{\"aria-label\":_vm.options.ariaLabel},on:{\"focus\":_vm.focussed,\"blur\":_vm.blurred,\"click\":_vm.buttonClick,\"touchstart\":_vm.mousedOver,\"mouseenter\":_vm.mousedOver,\"mouseleave\":_vm.mousedOut}},[_vm._t(\"icon\")],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.ShowToolTip),expression:\"ShowToolTip\"}],ref:\"content\",staticClass:\"vue-tooltip-content\",class:[_vm.options.placement, _vm.options.textAlign, _vm.options.className],attrs:{\"tabindex\":\"-1\"},on:{\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }return _vm.closeByKeyboard($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.closeByKeyboard($event)}],\"mouseenter\":_vm.mousedOver}},[_vm._t(\"content\"),_c('span',{ref:\"arrow\",staticClass:\"arrow\",attrs:{\"aria-hidden\":\"true\"}})],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Watch, Prop } from 'vue-property-decorator';\n\ninterface IPosition {\n top: number;\n left: number;\n}\n\n@Component({})\nexport default class ToolTip extends Vue {\n private static activeToolTip: ToolTip | null = null;\n @Prop({\n default: () => {\n return {\n placement: 'top',\n textAlign: 'vue-tooltip-text-center',\n showIcon: true,\n className: '',\n ariaLabel: '',\n };\n },\n }) public tooltipOptions!: any;\n @Prop({default: 20}) private tailLength!: number;\n @Prop({default: null}) private wrapper!: HTMLElement | null;\n\n private isTouch: boolean = typeof window !== 'undefined' && 'ontouchstart' in window;\n\n // Controls the visibility of the tooltip\n private ShowToolTip: boolean = false;\n\n // flag to indicate whether the tooltip has focus\n // different browsers set document.activeElement at different points in the event sequence\n private contentFocussed: boolean = false;\n\n // reference to the tooltip content element and the base tooltip element\n // need to keep track of these as we move it around the DOM\n private contentEl: HTMLElement | undefined;\n private parentEl: HTMLElement | undefined;\n private wrapperEl: HTMLElement | null = null;\n\n public closeTooltip() {\n if (this.ShowToolTip === true) {\n // Only set the ShowToolTip if in fact it is the active tooltip\n this.ShowToolTip = false;\n }\n }\n\n // mousing over the trigger always results in opening the tooltip\n private mousedOver() {\n this.ShowToolTip = true;\n }\n\n // mousing off the should close the tooltip\n private mousedOut() {\n this.ShowToolTip = false;\n }\n\n // show the tooltip when the button receives focus\n private focussed() {\n this.ShowToolTip = true;\n }\n\n // button blur event handler - close the tooltip, if it's not focussed\n private blurred() {\n if (!this.contentFocussed) {\n this.ShowToolTip = false;\n }\n }\n\n // when the button gets clicked we need to set focus on the contents (for screen readers)\n // we have to delay the focus as the contents will be getting moved to the end of the DOM\n private buttonClick() {\n this.contentFocussed = true;\n this.ShowToolTip = true;\n Vue.nextTick(() => {\n if (this.contentEl) {\n this.contentEl.focus();\n }\n });\n }\n\n // closing the tooltip by the keyboard, we need to focus on the button\n private closeByKeyboard(evt: KeyboardEvent) {\n this.contentFocussed = false;\n this.ShowToolTip = false;\n const icon: HTMLElement = this.$refs.icon as HTMLElement;\n if (icon instanceof HTMLButtonElement) {\n icon.focus();\n }\n }\n\n // clicks outside of the tooltip (or its button) should close it\n private closeByExternalClick(evt: MouseEvent | TouchEvent) {\n const target = evt.target as HTMLElement;\n const wrapper = this.$refs.tooltipWrapper as HTMLElement;\n const icon = this.$refs.icon as HTMLElement;\n let stayOpen: boolean = (target === icon || wrapper.contains(target));\n if (!stayOpen && this.contentEl) {\n stayOpen = (this.contentEl === target || this.contentEl.contains(target));\n }\n if (!stayOpen) {\n this.contentFocussed = false;\n this.ShowToolTip = false;\n }\n }\n\n get options() {\n let showIcon = true;\n if (this.tooltipOptions.showIcon !== undefined) {\n showIcon = this.tooltipOptions.showIcon;\n }\n return {\n placement: 'top',\n textAlign: this.tooltipOptions.textAlign || 'vue-tooltip-text-center',\n showIcon,\n className: this.tooltipOptions.className || '',\n ariaLabel: this.tooltipOptions.ariaLabel || '',\n };\n }\n\n\n\n @Watch('ShowToolTip')\n private toolTipActive(isOpen: boolean, wasOpen: boolean) {\n if (wasOpen === isOpen) {\n return;\n }\n this.$emit('tooltip-status', isOpen);\n if (isOpen) {\n document.body.classList.add('tooltip-active');\n // close any other open tooltips\n if (ToolTip.activeToolTip && ToolTip.activeToolTip !== this) {\n ToolTip.activeToolTip.closeTooltip();\n }\n ToolTip.activeToolTip = this;\n // opening the tooltip, so bind to some window events\n window.addEventListener('resize', this.setContentPosition);\n window.addEventListener(this.isTouch ? 'touchstart' : 'mousedown', this.closeByExternalClick);\n // we also want to tack the tooltip to the end of the DOM to make positioning it a load easier\n if (this.contentEl) {\n const parent = this.contentEl.parentElement;\n if (parent && parent.tagName !== 'BODY') {\n parent.removeChild(this.contentEl);\n document.body.appendChild(this.contentEl);\n }\n this.contentEl.style.position = 'absolute';\n this.contentEl.style.zIndex = '1030';\n this.contentEl.style.display = 'block';\n // now it's safely at the top level of the DOM we can position it\n this.setContentPosition();\n }\n } else {\n // closing the tooltip, so remove any non Vue events, reset settings and focus\n window.removeEventListener('resize', this.setContentPosition);\n window.removeEventListener(this.isTouch ? 'touchstart' : 'mousedown', this.closeByExternalClick);\n document.body.classList.remove('tooltip-active');\n this.contentFocussed = false;\n if (this.contentEl && this.parentEl) {\n this.contentEl.style.display = 'none';\n this.parentEl.appendChild(this.contentEl);\n }\n ToolTip.activeToolTip = null;\n }\n }\n\n private updated() {\n this.setContentPosition();\n }\n\n private mounted() {\n this.contentEl = this.$refs.content as HTMLElement;\n this.parentEl = this.$el as HTMLElement;\n }\n\n private getPosition(element: HTMLElement): IPosition {\n const $ = (window as any).jQuery;\n return $(element).offset() as IPosition;\n }\n\n private setContentPosition() {\n if (this.contentEl) {\n const icon = this.$refs.icon as HTMLElement;\n const arrow = this.$refs.arrow as HTMLElement;\n if (Array.isArray(this.tooltipOptions.placement)) {\n this.tooltipOptions.placement.forEach((pos: any) => {\n if (pos.breakpoint < window.innerWidth) {\n this.options.placement = pos.placement;\n if (pos.wrapper && pos.wrapper instanceof HTMLElement) {\n this.wrapperEl = pos.wrapper;\n } else {\n this.wrapperEl = null;\n }\n }\n });\n } else {\n this.options.placement = this.tooltipOptions.placement;\n }\n\n if (this.ShowToolTip) {\n const iconStyle: CSSStyleDeclaration = getComputedStyle(icon);\n const iconWidth = iconStyle.width ? parseInt(iconStyle.width, 10) : 0;\n const iconHeight = iconStyle.height ? parseInt(iconStyle.height, 10) : 0;\n const iconPosition: IPosition = this.getPosition(icon);\n let wrapperPosition: IPosition = { top: 0, left: 0 };\n if (this.wrapperEl) {\n wrapperPosition = this.getPosition(this.wrapperEl);\n }\n let topPos = 0;\n let leftPos = 0;\n\n this.contentEl.style.top = '';\n this.contentEl.style.left = '';\n this.contentEl.style.width = '';\n arrow.style.left = '';\n\n switch (this.options.placement) {\n case 'top':\n leftPos = iconPosition.left - this.contentEl.clientWidth / 2 + iconWidth / 2;\n break;\n case 'top-left':\n leftPos = iconPosition.left;\n break;\n case 'top-right':\n leftPos = iconPosition.left - this.contentEl.clientWidth + icon.clientWidth;\n break;\n default:\n leftPos = iconPosition.left - this.contentEl.clientWidth / 2 + iconWidth / 2;\n break;\n }\n if (this.wrapperEl) {\n // we may need to move the tooltip to make sure it is on screen\n if (leftPos + this.contentEl.clientWidth > wrapperPosition.left + this.wrapperEl.clientWidth) {\n // we have some right overhang, so push it to the left until the right edge is on-screen\n leftPos = wrapperPosition.left + this.wrapperEl.clientWidth - (this.contentEl.clientWidth + 4);\n }\n if (leftPos < wrapperPosition.left) {\n // we have left overhang so set its left edge\n leftPos = wrapperPosition.left + 4;\n }\n if (this.contentEl.clientWidth > this.wrapperEl.clientWidth) {\n // the contents are too wide, so constrain them\n this.contentEl.style.width = (this.wrapperEl.clientWidth - 8) + 'px';\n leftPos = wrapperPosition.left + 4;\n }\n }\n // set the horizontal position\n this.contentEl.style.left = Math.floor(leftPos) + 'px';\n\n // vertical positioning is the height of the content plus the pointer above the icon\n topPos = iconPosition.top - this.contentEl.clientHeight - this.tailLength;\n this.contentEl.style.top = Math.floor(topPos < 0 ? 0 : topPos) + 'px';\n // Arrow should always be positioned central to the icon\n // first set it to the left of the icon\n let arrowLeft = iconPosition.left - leftPos;\n // now center it\n arrowLeft += (iconWidth - arrow.offsetWidth) / 2;\n arrow.style.left = Math.floor(arrowLeft) + 'px';\n }\n }\n }\n\n @Watch('wrapper')\n private setWrapperEl(el: HTMLElement) {\n if (el && el instanceof HTMLElement) {\n this.wrapperEl = el as HTMLElement;\n } else {\n this.wrapperEl = null;\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ToolTip.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ToolTip.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ToolTip.vue?vue&type=template&id=1fdca2e8&\"\nimport script from \"./ToolTip.vue?vue&type=script&lang=ts&\"\nexport * from \"./ToolTip.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { IPersonalisationInfo } from '../../interfaces';\nimport PriceDisplay from '../pricing/PriceDisplay.vue';\nimport Price from '../pricing/Price';\nimport PersonalisationDetails from './PersonalisationDetails.vue';\nimport ToolTip from '@/components/ui/ToolTip.vue';\n\n@Component({\n components: { PriceDisplay, PersonalisationDetails, ToolTip },\n})\nexport default class PersonalisationItem extends Vue {\n @Prop() protected info!: IPersonalisationInfo;\n @Prop() protected itemid!: number;\n @Prop({default: false}) protected columnSpan!: number | boolean;\n private parent: HTMLElement | null = null;\n\n // Get the original price of personalised item\n get PersonalisedPrice(): Price | null {\n if (this.info.Price !== null) {\n return new Price(this.info.Price, Price.Types.STANDARD);\n } else {\n return null;\n }\n }\n\n public mounted() {\n this.parent = this.$el.parentElement as HTMLElement;\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalisationItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalisationItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PersonalisationItem.vue?vue&type=template&id=09a62fd4&\"\nimport script from \"./PersonalisationItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./PersonalisationItem.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":_vm.AnimateHeight ? 'expand' : _vm.name,\"css\":true,\"mode\":_vm.mode,\"duration\":_vm.duration,\"appear\":_vm.appear},on:{\"before-enter\":_vm.beforeEnter,\"enter\":_vm.enter,\"after-enter\":_vm.afterEnter,\"leave\":_vm.leave,\"after-leave\":_vm.afterLeave}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n@Component({})\r\nexport default class Animation extends Vue {\r\n @Prop({}) protected name!: string;\r\n @Prop({}) protected AnimateHeight!: boolean;\r\n @Prop({}) protected AnimateParentHeight!: HTMLElement;\r\n @Prop({default: '.3s'}) protected speed!: string;\r\n @Prop({default: 'ease-in-out'}) protected easing!: string;\r\n @Prop({}) protected mode!: string;\r\n @Prop({}) protected appear!: boolean;\r\n\r\n get Parent() {\r\n return this.AnimateParentHeight;\r\n }\r\n\r\n get duration() {\r\n return parseFloat(this.speed) * 1000;\r\n }\r\n\r\n protected beforeEnter(el: HTMLElement) {\r\n if (this.AnimateParentHeight) {\r\n this.Parent.style.height = getComputedStyle(this.Parent).height || '0px';\r\n }\r\n }\r\n\r\n protected enter(el: HTMLElement, done: () => void) {\r\n this.$emit('enter');\r\n el.setAttribute('aria-hidden', 'false');\r\n if (this.AnimateHeight) {\r\n this.expandElement(el);\r\n }\r\n\r\n if (this.AnimateParentHeight) {\r\n this.applyParentTransition();\r\n this.expandParent(el);\r\n }\r\n\r\n Vue.nextTick(() => {\r\n window.setTimeout(() => {\r\n done();\r\n }, this.duration);\r\n });\r\n }\r\n\r\n protected afterEnter(el: HTMLElement) {\r\n this.$emit('afterEnter');\r\n if (this.AnimateHeight) {\r\n this.resetElement(el);\r\n }\r\n\r\n if (this.AnimateParentHeight) {\r\n this.resetParent();\r\n }\r\n }\r\n\r\n protected leave(el: HTMLElement, done: () => void) {\r\n el.setAttribute('aria-hidden', 'true');\r\n if (this.AnimateHeight) {\r\n this.contractElement(el);\r\n }\r\n\r\n if (this.AnimateParentHeight) {\r\n this.contractParent(el);\r\n }\r\n\r\n Vue.nextTick(() => {\r\n window.setTimeout(() => {\r\n done();\r\n }, this.duration);\r\n });\r\n }\r\n\r\n protected afterLeave(el: HTMLElement) {\r\n if (this.AnimateHeight) {\r\n this.resetElement(el);\r\n }\r\n if (this.AnimateParentHeight) {\r\n this.resetParent();\r\n }\r\n }\r\n\r\n protected expandElement(el: HTMLElement) {\r\n const width = getComputedStyle(el).width;\r\n el.style.width = width;\r\n el.style.position = 'absolute';\r\n el.style.visibility = 'hidden';\r\n el.style.height = 'auto';\r\n\r\n const height = getComputedStyle(el).height;\r\n\r\n el.style.width = '';\r\n el.style.position = '';\r\n el.style.visibility = '';\r\n el.style.height = '0';\r\n const repaint = getComputedStyle(el).height;\r\n\r\n setTimeout(() => {\r\n el.style.height = height;\r\n });\r\n }\r\n\r\n protected contractElement(el: HTMLElement) {\r\n const height = getComputedStyle(el).height;\r\n el.style.height = height;\r\n const repaint = getComputedStyle(el).height;\r\n\r\n setTimeout(() => {\r\n el.style.height = '0';\r\n });\r\n }\r\n\r\n protected resetElement(el: HTMLElement) {\r\n el.style.height = 'auto';\r\n }\r\n\r\n protected applyParentTransition() {\r\n this.Parent.style.overflow = 'hidden';\r\n this.Parent.style.transition += `${getComputedStyle(this.Parent).transition}, `;\r\n this.Parent.style.transition += `height ${this.speed} ${this.easing}`;\r\n }\r\n\r\n protected removeParentTransition() {\r\n this.Parent.style.overflow = '';\r\n this.Parent.style.transition = '';\r\n }\r\n\r\n protected expandParent(el: HTMLElement) {\r\n const width = getComputedStyle(el).width;\r\n el.style.width = width;\r\n el.style.position = 'absolute';\r\n el.style.visibility = 'hidden';\r\n el.style.height = 'auto';\r\n\r\n const height = getComputedStyle(el).height || '0px';\r\n\r\n el.style.width = '';\r\n el.style.position = '';\r\n el.style.visibility = '';\r\n el.style.height = '';\r\n const repaint = getComputedStyle(el).height;\r\n const parentHeight = getComputedStyle(this.Parent).height || '0px';\r\n const newHeight = parseInt(parentHeight, 10) + parseInt(height, 10);\r\n setTimeout(() => {\r\n this.Parent.style.height = `${newHeight}px`;\r\n });\r\n }\r\n\r\n protected contractParent(el: HTMLElement) {\r\n const height = getComputedStyle(el).height || '0px';\r\n\r\n el.style.width = '';\r\n el.style.position = '';\r\n el.style.visibility = '';\r\n el.style.height = '';\r\n const repaint = getComputedStyle(el).height;\r\n this.applyParentTransition();\r\n const parentHeight = getComputedStyle(this.Parent).height || '0px';\r\n const newHeight = parseInt(parentHeight, 10) - parseInt(height, 10);\r\n this.Parent.style.height = parentHeight;\r\n\r\n setTimeout(() => {\r\n this.Parent.style.height = `${newHeight}px`;\r\n });\r\n }\r\n\r\n protected resetParent() {\r\n this.removeParentTransition();\r\n this.Parent.style.height = 'auto';\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Animation.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Animation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Animation.vue?vue&type=template&id=f6481050&\"\nimport script from \"./Animation.vue?vue&type=script&lang=ts&\"\nexport * from \"./Animation.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var DataLayerProduct = /** @class */ (function () {\r\n function DataLayerProduct(item) {\r\n this.id = item.ProductFK;\r\n this.name = item.Title;\r\n this.quantity = item.Quantity;\r\n this.price = (item.UnitPrice - (item.UnitDiscount || 0)).toFixed(2);\r\n this.category = item.Category;\r\n }\r\n return DataLayerProduct;\r\n}());\r\nexport default DataLayerProduct;\r\n//# sourceMappingURL=DataLayerProduct.js.map","import { store } from '../../store';\r\nimport { PageLocation } from '../../interfaces';\r\nimport DataLayerProduct from './DataLayerProduct';\r\nvar EcommerceDataLayer = /** @class */ (function () {\r\n function EcommerceDataLayer(location, orderItems) {\r\n // Based on the ecommerce dataLyer created on page load (TRACKING.xslt)\r\n this.data = window.jQuery\r\n .extend(true, {}, window.ecommerce_datalayer);\r\n this.data.location = PageLocation[location];\r\n this.data.ecommerce.checkout.actionField.step = location;\r\n this.data.ecommerce.checkout.products = this.getProducts(orderItems);\r\n }\r\n // Rebuild the product list for dataLayer\r\n EcommerceDataLayer.prototype.getProducts = function (orderItems) {\r\n var products = [];\r\n orderItems.forEach(function (item) {\r\n var product = new DataLayerProduct(item);\r\n var personalisation = item.PersonalisationInfo !== null;\r\n var personalisationCost = personalisation && item.PersonalisationInfo.Price > 0\r\n ? item.PersonalisationInfo.Price : 0;\r\n var personalisationDiscount = personalisation && item.PersonalisationInfo.Discount > 0\r\n ? item.PersonalisationInfo.Discount : 0;\r\n var unitPrice = item.UnitPrice - personalisationCost;\r\n var unitDiscount = (item.UnitDiscount || 0) - personalisationDiscount;\r\n var originalPrice = item.UnitPreviousPrice || unitPrice;\r\n var discountPrice = unitPrice - unitDiscount;\r\n var personalisationType = personalisation && item.PersonalisationInfo.TypeDescription.length > 0\r\n ? item.PersonalisationInfo.TypeDescription : 'n/a';\r\n var personalisationStyle = personalisation && item.PersonalisationInfo.TextFont != null\r\n ? item.PersonalisationInfo.TextFont.DisplayName : 'n/a';\r\n var personalisationColour = personalisation && item.PersonalisationInfo.TextColour != null\r\n ? item.PersonalisationInfo.TextColour.DisplayName : 'n/a';\r\n var symbolColour = personalisation && item.PersonalisationInfo.SymbolColour != null\r\n ? item.PersonalisationInfo.SymbolColour.DisplayName : 'n/a';\r\n // Special elements for ecommerce dataLayer product list\r\n product.brand = store.getters.WebsiteSettings.Brand;\r\n product.price = (item.UnitPrice - (item.UnitDiscount || 0)).toFixed(2);\r\n product.productId = item.ProductItemFK;\r\n product.size = item.Size;\r\n product.colour = item.Colour;\r\n product.stockStatus = 'n/a';\r\n product.variant = 'n/a';\r\n product.personalisation = personalisation.toString();\r\n product.personalisationCost = personalisationCost.toFixed(2);\r\n product.originalPrice = originalPrice.toFixed(2);\r\n product.discountPrice = discountPrice.toFixed(2);\r\n product.priceStatus = item.UnitPreviousPrice ? 'Markdown' : 'Full Price';\r\n product.sameDay = item.SameDayAvailable ? 'True' : 'False';\r\n product.wishlist = 'n/a';\r\n product.personalisationType = personalisationType;\r\n product.personalisationStyle = personalisationStyle;\r\n product.personalisationColour = personalisationColour;\r\n product.symbolColour = symbolColour;\r\n product.relatedColours = 'n/a';\r\n products.push(product);\r\n });\r\n return products;\r\n };\r\n return EcommerceDataLayer;\r\n}());\r\nexport default EcommerceDataLayer;\r\n//# sourceMappingURL=EcommerceDataLayer.js.map","import * as tslib_1 from \"tslib\";\r\nimport { PageLocation } from '../../interfaces';\r\nimport EcommerceDataLayer from './EcommerceDataLayer';\r\nvar UpdateItemDataLayer = /** @class */ (function (_super) {\r\n tslib_1.__extends(UpdateItemDataLayer, _super);\r\n function UpdateItemDataLayer(location, action, item, quantity) {\r\n var _this = \r\n // Build the dataLayer based on the ecommerce dataLayer structure\r\n _super.call(this, location, item) || this;\r\n var personalisation = item[0].PersonalisationInfo != null;\r\n var personalisationItemTotal = personalisation && item[0].PersonalisationInfo.Price > 0 ?\r\n (item[0].PersonalisationInfo.Price -\r\n (item[0].PersonalisationInfo.Discount || 0)).toFixed(2) : 'n/a';\r\n _this.data.location = location === PageLocation.CartSummary ? 'Cart Summary' : _this.data.location;\r\n delete _this.data.group;\r\n // Amend the product list based on the product list in ecommerce dataLayer\r\n var product = _this.data.ecommerce.checkout.products[0];\r\n delete product.stockStatus;\r\n delete product.wishlist;\r\n product.personalisationItemTotal = personalisationItemTotal;\r\n product.quantity = quantity;\r\n // Change the actionField from checkout to add/remove\r\n if (action === 'add') {\r\n _this.data.ecommerce.add = window.jQuery.extend(true, {}, _this.data.ecommerce.checkout);\r\n delete _this.data.ecommerce.add.actionField;\r\n }\r\n else {\r\n _this.data.ecommerce.remove = window.jQuery.extend(true, {}, _this.data.ecommerce.checkout);\r\n delete _this.data.ecommerce.remove.actionField;\r\n }\r\n delete _this.data.ecommerce.checkout;\r\n delete _this.data.event;\r\n return _this;\r\n }\r\n return UpdateItemDataLayer;\r\n}(EcommerceDataLayer));\r\nexport default UpdateItemDataLayer;\r\n//# sourceMappingURL=UpdateItemDataLayer.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"overlay\",class:_vm.info.Classes,style:(_vm.info.CssStyles),attrs:{\"data-classes\":_vm.info.Classes,\"data-pdID\":_vm.info.ProductID,\"data-cssstyles\":_vm.info.CssStyles,\"data-ID\":_vm.info.ID,\"data-name\":_vm.info.Name,\"data-displayOrder\":_vm.info.DisplayOrder,\"data-custom\":_vm.info.Custom,\"data-displayarea\":_vm.info.DisplayArea}},[_c('img',{attrs:{\"src\":_vm.info.ImagePath}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { IOverlay} from '@/interfaces';\r\n\r\n@Component({})\r\n\r\nexport default class Overlay extends Vue {\r\n @Prop() protected info!: IOverlay;\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Overlay.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Overlay.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Overlay.vue?vue&type=template&id=6bc4df96&\"\nimport script from \"./Overlay.vue?vue&type=script&lang=ts&\"\nexport * from \"./Overlay.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { store } from '../../store';\nimport { IOrderItem, IProduct, IProductItem, IOrderIncentive,\n DispatchAction, IPersonalisationInfo, PageLocation, IAPIResponse } from '../../interfaces';\nimport PriceDisplay from '../pricing/PriceDisplay.vue';\nimport Price from '../pricing/Price';\nimport { IOptionList, IOptionListItem } from '../optionlist/OptionList';\nimport OptionList from '../optionlist/OptionList.vue';\nimport { IComboBox, IComboBoxItem } from '../optionlist/ComboBox';\nimport ComboBox from '../optionlist/ComboBox.vue';\nimport * as utilities from '../../utilities';\nimport PersonalisationItem from './PersonalisationItem.vue';\nimport Animation from '@/components/ui/animations/Animation.vue';\nimport UpdateItemDataLayer from '@/components/gtm/UpdateItemDataLayer';\nimport ComponentID from '../../mixins/ComponentID';\nimport Overlay from './Overlay.vue';\n\n@Component({\n components: { PriceDisplay, OptionList, ComboBox, PersonalisationItem, Animation, Overlay },\n mixins : [ComponentID],\n})\nexport default class OrderItem extends Vue {\n @Prop() protected itemid!: number;\n\n // TODO: these are temporary until we decide how we are going to reference these\n protected readonly genericError: string = 'An unexpected error has occurred please try again later';\n protected readonly networkError: string = 'A network error has occurred please try again later';\n\n protected realErrorMessage: string = this.item.Note;\n\n private brand: string = store.getters.WebsiteSettings.WebsitePrefix;\n private w = (window as any);\n\n private selectedSize: number = this.item.SizeID;\n private selectedColour: number = this.item.ColourID;\n private selectedQuantity: number = this.item.Quantity;\n\n // Since we have a single error message that can represent different issues\n // we need to associate/disassociate label various selectors to the error message\n // depending on which action caused the condition\n private activeSelector: HTMLElement | ComboBox | null = null;\n\n @Watch('item.Note')\n public itemNoteChanged() {\n this.realErrorMessage = this.item.Note;\n if (this.hasErrorMessage) {\n this.focusError();\n } else {\n this.activeSelector = null;\n }\n }\n\n // Push add/remove dataLayer when there is any change on item quantity\n @Watch('item.Quantity')\n public itemQuantityChanged(newValue: number, oldValue: number) {\n let quantity: number = 0;\n let action: string = '';\n if (newValue > oldValue) {\n quantity = newValue - oldValue;\n action = 'add';\n } else if (oldValue > newValue) {\n quantity = oldValue - newValue;\n action = 'remove';\n } else {\n return;\n }\n const evert: string = 'custom.ecommerce.cart.' + action;\n\n const product: IOrderItem[] = [];\n product.push(this.item);\n this.w.pushDataToGTM(evert, new UpdateItemDataLayer(PageLocation.CartSummary, action, product, quantity).data);\n }\n\n // Set up event listeners\n public mounted() {\n // Set up event listener to listen for clear error message on order items event\n this.$root.$on('shoppingbag.clearOrderItemListErrorMessages', () => {\n this.realErrorMessage = '';\n });\n }\n\n // Build an option list that represents the colour selector\n get colourSelector(): IOptionList {\n const list: IOptionList = {\n Label: 'Select a colour',\n Disabled: !this.canChangeColour,\n Options: this.productColours,\n Value: this.item.ColourID,\n Name: 'Colour',\n };\n return list;\n }\n\n // Returns the selected colour label\n get selectedColourOption(): string {\n let label = '';\n const colour = this.colourSelector.Options.find((o) => o.Value === this.selectedColour);\n if (colour) {\n label = colour.Label.toString();\n }\n return label;\n }\n\n // Build an option list that represents the size selector\n get sizeSelector(): IOptionList {\n const list: IOptionList = {\n Label: 'Select a size',\n Disabled: !this.canChangeSize,\n Options: this.productSizes,\n Value: this.item.SizeID,\n Name: 'Size',\n };\n return list;\n }\n\n // Returns the selected size label\n get selectedSizeOption(): string {\n let label = '';\n const size = this.sizeSelector.Options.find((o) => o.Value === this.selectedSize);\n if (size) {\n label = size.Label.toString();\n }\n return label;\n }\n\n // Build an combo box that represents the quantity selector\n get quantitySelector(): IComboBox {\n // Build quantity options (1-9 and 10+ which is a special snowflake)\n const options: IComboBoxItem[] = [];\n for (let i = 1; i <= 10; i++) {\n options.push({\n Label: (i < 10 ? i.toString() : '10+'),\n Value: (i === 10 && this.item.Quantity > 10 ? this.item.Quantity : i),\n // Quantity options are never disabled, we just kick back with error (except personalised item)\n Disabled: false,\n OpensInput: (i === 10 ? true : false), // Only 10+ option will open the input\n });\n }\n\n // Build the actual option list input\n const list: IComboBox = {\n Label: 'Select a quantity',\n LabelPrefix: store.getters.getGlossaryEntryByKey('orderitem-quantity-selector-label') || 'Qty:',\n Disabled: !this.canChangeQuantity,\n Options: options,\n Value: this.item.Quantity,\n InputType: 'text',\n Pattern: '\\\\d*',\n Name: 'Quantity',\n };\n\n return list;\n }\n\n // Clone the actual order item this instance is representing\n get item(): IOrderItem {\n const orderItem: IOrderItem | undefined =\n store.getters.Order.Items.find((item: IOrderItem) => item.ID === this.itemid);\n if (orderItem) {\n return JSON.parse(JSON.stringify(orderItem)) as IOrderItem;\n } else {\n // this will never happen, but let's keep typescript happy\n return {} as IOrderItem;\n }\n }\n\n // Get the current price of the item (taking into account product discounts)\n get sellingPrice(): Price {\n let priceValue: number = this.item.LineSubtotal;\n if (this.item.PersonalisationInfo && this.item.PersonalisationInfo.Price) {\n priceValue = priceValue - this.item.PersonalisationInfo.Price;\n }\n if (this.item.UnitPreviousPrice !== null) {\n return new Price(priceValue, Price.Types.NOW);\n } else {\n return new Price(priceValue, Price.Types.STANDARD);\n }\n }\n\n // Get the previous price of the item, if one exists\n get originalPrice(): Price | null {\n if (this.item.UnitPreviousPrice !== null && this.item.LinePreviousSubtotal !== null) {\n let priceValue: number = this.item.LinePreviousSubtotal;\n if (this.item.PersonalisationInfo && this.item.PersonalisationInfo.Price) {\n priceValue = priceValue - this.item.PersonalisationInfo.Price;\n }\n return new Price(priceValue, Price.Types.WAS);\n } else {\n return null;\n }\n }\n\n // Do we have product (not order item) data loaded yet?\n get isProductLoaded(): boolean {\n if (store.getters.Products.length === 0) {\n return false;\n }\n\n let hasProduct: boolean = false;\n store.getters.Products.forEach((product: IProduct) => {\n if (product.ID === this.item.ProductID) {\n hasProduct = true;\n }\n });\n\n return hasProduct;\n }\n\n // Whether the order item is considered deleted or not\n get isDeleted(): boolean {\n if (this.item.IsDeleted) {\n return true;\n }\n return false;\n }\n\n // Can we delete this order item or not?\n get canDelete(): boolean {\n // Not if we are already deleted or are a gift with purchase item\n if (this.isDeleted || this.item.IsGiftWithPurchase || this.item.IsGiftItem) {\n return false;\n }\n return true;\n }\n\n // Gets a list of all colours for the product and whether they are available (in any size) or not\n get productColours(): IOptionListItem[] {\n const list: IOptionListItem[] = [];\n\n // Early out if no product data loaded yet\n if (!this.isProductLoaded) {\n return list;\n }\n\n // Search for this product in our product data\n const product = store.getters.Products.find((candidate: IProduct) => candidate.ID === this.item.ProductID);\n\n // If we found the product, let's figure out the colours and whether they are available or not\n if (product !== undefined) {\n product.Items.forEach((item: IProductItem) => {\n // Search our list for this colour to see if we already have it\n const colour = list.find((entry: IOptionListItem) => entry.Value === item.ColourID);\n\n // If we don't already have this colour then add it, otherwise check and update availability\n if (colour === undefined) {\n if (item.ColourID !== 0) {\n list.push({\n Label: item.ColourName,\n Value: item.ColourID,\n Disabled: !item.Available,\n });\n }\n } else if (item.Available && colour.Disabled) {\n // The product item we're looking at matches a colour we already have in our list marked as disabled\n // So we will enable it because we have encountered a product item in this colour that IS available\n colour.Disabled = false;\n }\n });\n }\n\n return list;\n }\n\n // Gets a list of all sizes for the product and whether they are available (in any colour) or not\n get productSizes(): IOptionListItem[] {\n const list: IOptionListItem[] = [];\n\n // Early out if no product data loaded yet\n if (!this.isProductLoaded) {\n return list;\n }\n\n // Search for this product in our product data\n const product = store.getters.Products.find((candidate: IProduct) => candidate.ID === this.item.ProductID);\n\n // If we found the product, let's figure out the sizes and whether they are available or not\n if (product !== undefined) {\n // If we have a colour selected, filter our list of product items down to only that colour\n let items: IProductItem[] = [];\n if (this.item.ColourID !== null) {\n items = product.Items.filter((candidate: IProductItem) => candidate.ColourID === this.item.ColourID);\n } else {\n items = product.Items;\n }\n items.forEach((item: IProductItem) => {\n // Search our list for this size to see if we already have it\n const size = list.find((entry: IOptionListItem) => entry.Value === item.SizeID);\n\n // If we don't already have this size then add it, otherwise check and update availability\n if (size === undefined) {\n if (item.SizeID !== 0) {\n list.push({\n Label: item.SizeName,\n Value: item.SizeID,\n Disabled: !item.Available,\n });\n }\n } else if (item.Available && size.Disabled) {\n // The product item we're looking at matches a size we already have in our list marked as disabled\n // So we will enable it because we have encountered a product item in this size that IS available\n size.Disabled = false;\n }\n });\n }\n\n return list;\n }\n\n // Controls whether we are allowed to change the colour of this order item\n get canChangeColour(): boolean {\n if (\n // Musts: product data loaded, item not deleted\n this.isProductLoaded && !this.isDeleted && !this.item.PersonalisationInfo\n && (\n // Either: change allowed for any item and product has multiple colours\n (!store.getters.WebsiteSettings.ChangeColourForGWPOnly && this.productColours.length > 1)\n // Or: item must be Gift With Purchase (GWP) with no colour selected\n || (this.item.IsGiftWithPurchase && this.item.ColourID === null)\n )\n ) {\n return true;\n }\n return false;\n }\n\n // Controls whether we are allowed to change the size of this order item\n get canChangeSize(): boolean {\n // Must have product data loaded and item not deleted, then either multiple sizes available or no size selected\n if (\n this.isProductLoaded && !this.isDeleted && !this.item.PersonalisationInfo\n && (this.productSizes.length > 1 || this.item.SizeID === null)\n ) {\n return true;\n }\n return false;\n }\n\n // Controls whether we are allowed to change the quantity of this order item\n get canChangeQuantity(): boolean {\n // If the item is a gift with purchase, deleted then nope\n if (this.item.IsGiftWithPurchase || this.isDeleted || this.item.PersonalisationInfo) {\n return false;\n }\n return true;\n }\n\n // The item can comprise a varying number of table rows\n // The image cell needs to span them all\n get rowsToSpan(): number {\n let rows = 3;\n if (this.hasErrorMessage) {\n rows++;\n }\n if (this.item.PersonalisationInfo) {\n rows++;\n }\n return rows;\n }\n\n get errorMessage(): string {\n if (this.realErrorMessage === 'CART LIMIT QUANTITY REDUCED') {\n return 'The quantity requested is more than the bag limit.'\n + ' The available amount is indicated in the \\'Qty\\' field.';\n } else if (this.realErrorMessage === 'VOLUME RESTRICTED') {\n return store.getters.getGlossaryEntryByKey('orderitem-volume-restricted-message')\n || 'Quantity requested is not available.'\n + ' The maximum amount available is indicated in '\n + 'the \\'Qty\\' field.';\n } else if (this.realErrorMessage === 'MAX LIMIT EXCEEDED') {\n return 'Sorry, by adding this item you have exceeded the '\n + 'maximum quantity allowed per order and it will '\n + 'be removed from your shopping bag.';\n } else if (this.realErrorMessage === 'This item is no longer available') {\n return store.getters.getGlossaryEntryByKey('item-will-be-remove')\n || 'This item is no longer in stock and will be removed from your cart.';\n }\n return this.realErrorMessage;\n }\n\n get freeItemText(): string {\n const incentives: IOrderIncentive[] = store.getters.Order.Incentives\n .filter((i: IOrderIncentive) => i.IncentiveID === this.item.FreeItemIncentiveId);\n if (incentives) {\n return incentives[0].DisplayName;\n } else {\n return '';\n }\n }\n\n // Do we currently have an error message or not?\n get hasErrorMessage(): boolean {\n if (typeof(this.realErrorMessage) === typeof('') && this.realErrorMessage.length > 0) {\n return true;\n }\n return false;\n }\n\n // Fire an event triggering all order items in the list to clear their error message\n protected clearErrorMessage() {\n this.$root.$emit('shoppingbag.clearOrderItemListErrorMessages');\n }\n\n // Set the error message for this order item to the specified message, overwriting the current one (if there is one)\n protected setErrorMessage(message: string) {\n this.realErrorMessage = message;\n }\n\n // Handle user requesting to delete an item/personalise item\n protected onItemRemove(isPersonaliseItem: boolean = false) {\n this.clearErrorMessage();\n let sendMessage: string = 'Removing ' + this.item.Title;\n let sentMessage: string = 'Item removed';\n if (this.item.Quantity > 1) {\n sendMessage = 'Removing ' + this.item.Quantity.toString() + ' of ' + this.item.Title;\n sentMessage = this.item.Quantity.toString() + ' items removed';\n }\n this.$ariaAnnounce(sendMessage);\n // Call the API\n let url = '/client/v2/cart/order/item?itemID=';\n if (isPersonaliseItem === true) {\n url = '/client/v2/cart/order/personalisationItem?itemID=';\n }\n utilities.fetch(url + this.item.ID, {method: 'DELETE'})\n .then((response) => {\n if (!response.ok) {\n response.json().then((data) => {\n this.setErrorMessage(data.Message);\n }).catch((error) => {\n this.setErrorMessage(this.genericError);\n });\n } else {\n this.$ariaAnnounce(sentMessage);\n }\n // Push dataLayer when remove the item from basket\n const quantity: number = this.item.Quantity;\n const action: string = 'remove';\n const evert: string = 'custom.ecommerce.cart.' + action;\n\n const product: IOrderItem[] = [];\n product.push(this.item);\n this.w.pushDataToGTM(evert, new UpdateItemDataLayer(PageLocation.CartSummary, action, product, quantity).data);\n\n store.dispatch(DispatchAction.FetchOrder);\n store.dispatch(DispatchAction.FetchFreightOptions);\n setTimeout(() => {\n const w = window as any;\n const evt = new w.CustomEvent('item-removed');\n w.dispatchEvent(evt);\n }, 1000);\n }).catch((error) => {\n this.setErrorMessage(this.networkError);\n });\n }\n\n // Handle user requesting to change colour of the item\n @Watch('selectedColour')\n protected onColourChange(newColourID: number) {\n // We need both size and colour for this to work\n if (this.item.SizeID === null) {\n return;\n }\n\n this.updateSizeColour(newColourID, this.item.SizeID);\n }\n\n // Handle user requesting to change the size of the item\n @Watch('selectedSize')\n protected onSizeChange(newSizeID: number) {\n // We need both size and colour for this to work\n if (this.item.ColourID === null) {\n return;\n }\n\n this.updateSizeColour(this.item.ColourID, newSizeID);\n }\n\n protected updateSizeColour(colourID: number, sizeID: number) {\n let url = '/client/v2/cart/order/item';\n url += '?itemID=' + this.item.ID;\n url += '&colourID=' + colourID;\n url += '&sizeID=' + sizeID;\n\n this.clearErrorMessage();\n\n let sendMessage: string = 'Updating size';\n let sentMessage: string = 'Size selection updated to ' + this.selectedSizeOption;\n if (colourID !== this.item.ColourID) {\n sendMessage = 'Updating colour';\n sentMessage = 'Colour selection updated to ' + this.selectedColourOption;\n this.activeSelector = this.$refs.colourSelector as HTMLElement;\n } else {\n this.activeSelector = this.$refs.sizeSelector as HTMLElement;\n }\n this.$ariaAnnounce(sendMessage);\n // Call the API to update the item\n utilities.fetch(url, {method: 'PUT'})\n .then((response) => {\n if (!response.ok) {\n response.json().then((data) => {\n const apiResponse = data as IAPIResponse;\n if (apiResponse.Errors.length > 0) {\n this.setErrorMessage(utilities.getErrorMessage(apiResponse.Errors[0]));\n } else {\n this.setErrorMessage(this.genericError);\n }\n this.focusError();\n });\n }\n store.dispatch(DispatchAction.FetchOrder).then(() => {\n Vue.nextTick(() => {\n if (colourID === this.item.ColourID && sizeID === this.item.SizeID) {\n this.$ariaAnnounce(sentMessage);\n }\n });\n });\n store.dispatch(DispatchAction.FetchFreightOptions);\n });\n }\n\n // Handle the user requesting to change the quantity of the item\n @Watch('selectedQuantity')\n protected onQuantityChange(newQuantity: number, oldQuantity: number) {\n if (!(newQuantity > 0)) {\n const orderItem: IOrderItem | undefined =\n store.getters.Order.Items.find((item: IOrderItem) => item.ID === this.itemid);\n if (orderItem) {\n newQuantity = orderItem.Quantity;\n }\n }\n // Build URL with our parameters\n let url = '/client/v2/cart/order/item';\n url += '?itemID=' + this.item.ID;\n url += '&quantity=' + newQuantity;\n\n this.clearErrorMessage();\n this.$ariaAnnounce('Updating quantity');\n this.activeSelector = this.$refs.quantitySelector as ComboBox;\n // Call the API to update the quantity\n utilities.fetch(url, {method: 'PUT'})\n .then((response) => {\n if (!response.ok) {\n response.json().then((data) => {\n const apiResponse = data as IAPIResponse;\n if (apiResponse.Errors.length > 0) {\n this.setErrorMessage(utilities.getErrorMessage(apiResponse.Errors[0]));\n } else {\n this.setErrorMessage(this.genericError);\n }\n }).catch((error) => {\n this.setErrorMessage(this.genericError);\n });\n }\n store.dispatch(DispatchAction.FetchOrder).then(() => {\n Vue.nextTick(() => {\n if (this.item.Quantity.toString() === newQuantity.toString()) {\n this.$ariaAnnounce('Quantity updated to ' + newQuantity.toString());\n } else {\n this.$ariaAnnounce('There has been an issue with the requested quantity');\n }\n this.focusError();\n });\n });\n store.dispatch(DispatchAction.FetchFreightOptions);\n }).catch((error) => {\n this.setErrorMessage(this.networkError);\n });\n }\n\n // we only have one error message, which may be associated with one of a number of actions\n // when an error occurs we need to associate the error with its relevant field and focus on the field\n private focusError() {\n // clear any other fields that may be bound to the error message\n const errorFieldSelector: string = `input[aria-describedby=\"${this.ComponentID}-error\"], select[aria-describedby=\"${this.ComponentID}-error\"]`;\n const errorFields: NodeList | null = this.$el.querySelectorAll(errorFieldSelector);\n errorFields.forEach((el) => {\n (el as HTMLElement).removeAttribute('aria-describedby');\n });\n\n Vue.nextTick(() => {\n if (this.errorMessage.length > 0) {\n let el: HTMLElement | undefined;\n if (this.activeSelector instanceof HTMLElement) {\n el = this.activeSelector;\n } else if (this.activeSelector instanceof ComboBox) {\n el = this.activeSelector.activeField;\n }\n if (el !== undefined) {\n el.setAttribute('aria-describedby', this.ComponentID + '-error');\n this.$nextFocus(el);\n }\n }\n });\n }\n\n // remove the association between field and error message when the field is no longer active\n @Watch('activeSelector')\n private activeSelectorChange(newSelector: HTMLElement | ComboBox | null, oldSelector: HTMLElement | ComboBox | null) {\n if (oldSelector !== null) {\n let el: HTMLElement | undefined;\n if (oldSelector instanceof HTMLElement) {\n el = oldSelector;\n } else if (oldSelector instanceof ComboBox) {\n el = oldSelector.activeField;\n }\n if (el instanceof HTMLElement) {\n el.removeAttribute('aria-describedby');\n }\n }\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OrderItem.vue?vue&type=template&id=0a74a1ca&\"\nimport script from \"./OrderItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./OrderItem.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tbody',{class:[(_vm.item.FreeItem ? 'free-item' : ''), (_vm.item.PersonalisationInfo ? 'personalised-item' : '')],attrs:{\"role\":\"presentation\"}},[_c('tr',{staticClass:\"item\"},[_c('td',{staticClass:\"product-image\",attrs:{\"rowspan\":_vm.rowsToSpan,\"aria-hidden\":\"true\"}},[_c('div',[_c('a',{attrs:{\"href\":_vm.item.Link}},[_c('img',{attrs:{\"alt\":\"\",\"src\":_vm.item.Image}}),(_vm.item.Overlay && _vm.item.Overlay.ID > 0)?_c('Overlay',{attrs:{\"info\":_vm.item.Overlay}}):_vm._e()],1)])]),_c('td',{staticClass:\"product-details\"},[_c('p',{staticClass:\"product-name\"},[_c('a',{attrs:{\"href\":_vm.item.Link}},[_vm._v(_vm._s(_vm.item.Title))])]),_c('p',{staticClass:\"product-code\"},[_c('span',{staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Style code:\")]),_vm._v(_vm._s(_vm.item.Style))])]),_c('td',{staticClass:\"product-options product-options-colour\"},[_c('div',{staticClass:\"option-selections\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();}}},[(_vm.isProductLoaded && _vm.productColours.length > 0)?_c('div',{staticClass:\"option colour\"},[(!_vm.colourSelector.Disabled)?_c('label',{attrs:{\"for\":_vm.ComponentID + '-colour'}},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderitem-colour-selector-label'),expression:\"'orderitem-colour-selector-label'\"}],staticClass:\"label-text\",attrs:{\"role\":\"text\"}})]):_vm._e(),(!_vm.colourSelector.Disabled)?_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedColour),expression:\"selectedColour\"}],ref:\"colourSelector\",attrs:{\"id\":_vm.ComponentID + '-colour'},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedColour=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.productColours),function(option){return _c('option',{key:option.Value,attrs:{\"disabled\":option.Disabled},domProps:{\"value\":option.Value}},[_vm._v(_vm._s(option.Label))])}),0):_c('span',{staticClass:\"selector\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Colour: \")]),_vm._v(_vm._s(_vm.selectedColourOption))])]):_vm._e()])])]),_c('td',{staticClass:\"product-options product-options-size\"},[_c('div',{staticClass:\"option-selections\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();}}},[(_vm.isProductLoaded && _vm.productSizes.length > 0)?_c('div',{staticClass:\"option size\"},[(!_vm.sizeSelector.Disabled)?_c('label',{attrs:{\"for\":_vm.ComponentID + '-size'}},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderitem-size-selector-label'),expression:\"'orderitem-size-selector-label'\"}],staticClass:\"label-text\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size: \")])]):_vm._e(),(!_vm.sizeSelector.Disabled)?_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedSize),expression:\"selectedSize\"}],ref:\"sizeSelector\",attrs:{\"id\":_vm.ComponentID + '-size'},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedSize=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},_vm._l((_vm.productSizes),function(option){return _c('option',{key:option.Value,attrs:{\"disabled\":option.Disabled},domProps:{\"value\":option.Value}},[_vm._v(_vm._s(option.Label))])}),0):_c('span',{staticClass:\"selector\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size: \")]),_vm._v(_vm._s(_vm.selectedSizeOption))])]):_vm._e()])])]),_c('td',{staticClass:\"product-options product-options-quantity\"},[_c('div',{staticClass:\"option-selections\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();}}},[(!_vm.item.IsGiftItem)?_c('ComboBox',{ref:\"quantitySelector\",class:'quantity',attrs:{\"data\":_vm.quantitySelector},on:{\"change\":_vm.onQuantityChange}}):_vm._e()],1)])]),(!_vm.isDeleted)?_c('td',{staticClass:\"pricing\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.sellingPrice}}),(_vm.originalPrice)?_c('PriceDisplay',{attrs:{\"price\":_vm.originalPrice}}):_vm._e()],1):_c('td'),(_vm.item.FreeItem)?_c('td',{staticClass:\"free-item-incentive\"},[_c('div',{staticClass:\"free-item-incentive-wrapper\"},[_c('span',{staticClass:\"message\"},[_vm._v(_vm._s(_vm.freeItemText))]),_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}})])]):_vm._e()]),(_vm.item.PersonalisationInfo)?_c('tr',{staticClass:\"blank-row\"}):_vm._e(),(_vm.item.PersonalisationInfo)?_c('PersonalisationItem',{attrs:{\"info\":_vm.item.PersonalisationInfo,\"columnSpan\":4},on:{\"onItemRemove\":_vm.onItemRemove}}):_c('tr',[_c('td',{attrs:{\"colspan\":\"5\"}})]),(_vm.hasErrorMessage || _vm.isDeleted)?_c('tr',[_c('td',{attrs:{\"colspan\":\"5\"}},[_c('div',{staticClass:\"alert alert-danger\",attrs:{\"role\":\"alert\",\"id\":_vm.ComponentID + '-error'}},[_c('span',{staticClass:\"icon-tooltip\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"orderitem-error-message-content\"},[(_vm.errorMessage)?[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]:(_vm.isDeleted)?[_vm._v(\" \"+_vm._s(_vm.store.getters.getGlossaryEntryByKey('item-unavailable'))+\" \")]:_vm._e()],2)])])]):_vm._e(),_c('tr',[_c('td',{staticClass:\"remove-item\",attrs:{\"colspan\":_vm.item.FreeItem ? 1 : 5}},[(_vm.canDelete)?_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"aria-label\":\"Remove item from cart\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onItemRemove($event)}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Remove \")]):_vm._e()]),(_vm.item.FreeItem)?_c('td',{staticClass:\"free-item-incentive\",attrs:{\"colspan\":\"4\"}},[_c('div',{staticClass:\"free-item-incentive-wrapper\"},[_c('span',{staticClass:\"message\"},[_vm._v(_vm._s(_vm.freeItemText))]),_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}})])]):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport OrderItem from './OrderItem.vue';\nimport Overlay from './Overlay.vue';\n\n@Component({\n components: {\n Overlay,\n },\n})\nexport default class OrderItemAlternativeView extends OrderItem {\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderItemAlternativeView.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderItemAlternativeView.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OrderItemAlternativeView.vue?vue&type=template&id=ed3833d8&\"\nimport script from \"./OrderItemAlternativeView.vue?vue&type=script&lang=ts&\"\nexport * from \"./OrderItemAlternativeView.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"promotions-container\"},[_c('div',{staticClass:\"panel-group\",attrs:{\"id\":\"promotion-accordion\"}},[_c('div',{staticClass:\"panel panel-default\"},[_c('div',{staticClass:\"panel-heading\",class:_vm.countAppliedOffers > 0 ? 'offers-applied' : 'no-offers-applied'},[_c('button',{staticClass:\"btn-accessibility-helper\",attrs:{\"aria-expanded\":_vm.collapsed ? 'false' : 'true',\"aria-controls\":\"collapsePromotions\"},on:{\"click\":_vm.togglePanel}},[_c('h2',{staticClass:\"panel-title\",class:_vm.collapsed ? 'collapsed' : ''},[(_vm.collapsed)?_c('i',{staticClass:\"icon-plus\",attrs:{\"aria-hidden\":\"true\"}}):_c('i',{staticClass:\"icon-minus\",attrs:{\"aria-hidden\":\"true\"}}),_vm._m(0),_c('span',{staticClass:\"status-message\",attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.promoCodeStatusMessage)}}),(_vm.totalOfferAmount > 0)?_c('span',{staticClass:\"pricing\",attrs:{\"role\":\"text\"}},[_c('PriceDisplay',{attrs:{\"price\":_vm.discountValue(_vm.totalOfferAmount)}})],1):_vm._e()])])]),_c('Animation',{attrs:{\"name\":'expand',\"AnimateHeight\":true}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.collapsed),expression:\"!collapsed\"}],ref:\"tabpanel\",staticClass:\"panel-collapse\",attrs:{\"id\":\"collapsePromotions\",\"aria-labelledby\":\"promotionsHeading\",\"tabindex\":\"-1\"}},[_c('GroupAnimation',{staticClass:\"offers\",attrs:{\"name\":\"offers\",\"tag\":\"ul\",\"AnimateHeight\":true,\"speed\":2}},[_vm._l((_vm.offers),function(incentive){return _c('li',{key:(incentive.IncentiveCode != '' || incentive.UniqueCoupon != '') ? 'promocode': incentive.IncentiveID,attrs:{\"data-inid\":incentive.IncentiveID}},[_c('div',{staticClass:\"incentive\",class:_vm.className(incentive)},[((incentive.IncentiveCode != '' || incentive.UniqueCoupon != ''))?[_c('span',{ref:\"promoCodeMessage\",refInFor:true,staticClass:\"discount-display addpromo-values\",class:{populated: _vm.promoToApply.length > 0},attrs:{\"role\":\"text\",\"tabindex\":\"-1\"}},[(incentive.Selected)?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Applied offer\")]):_vm._e(),_c('span',{staticClass:\"message\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(incentive.DisplayName))]),_c('span',{staticClass:\"pricing\",attrs:{\"role\":\"text\"}},[_c('PriceDisplay',{attrs:{\"price\":_vm.promoValue(incentive.DiscountedAmount)}})],1),_c('i',{staticClass:\"icon-tick\",attrs:{\"aria-hidden\":\"true\"}})]),_c('span',{staticClass:\"discount-action\"},[_c('button',{ref:\"promoCodeRemoveButton\",refInFor:true,staticClass:\"btn btn-remove\",attrs:{\"type\":\"button\",\"aria-label\":\"Remove Promo Code\"},on:{\"click\":function($event){return _vm.promoCodeUpdate('DELETE', 'remove')}}},[_vm._v(\"Remove\")])])]:(incentive.HeadKey === '' && !incentive.LoyaltyTier && incentive.Selected)?[_c('span',{staticClass:\"discount-display\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Applied offer\")]),_c('span',{staticClass:\"message\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(incentive.DisplayName))]),_c('span',{staticClass:\"pricing\",attrs:{\"role\":\"text\"}},[_c('PriceDisplay',{attrs:{\"price\":_vm.promoValue(incentive.DiscountedAmount)}})],1),_c('i',{staticClass:\"icon-tick\",attrs:{\"aria-hidden\":\"true\"}})])]:[_c('span',{staticClass:\"discount-display\",attrs:{\"tabindex\":\"-1\"}},[(incentive.Selected)?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Applied offer\")]):_vm._e(),_c('span',{staticClass:\"message\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(incentive.DisplayName))]),(incentive.Selected)?_c('span',{staticClass:\"pricing\",attrs:{\"role\":\"text\"}},[_c('PriceDisplay',{attrs:{\"price\":_vm.promoValue(incentive.DiscountedAmount)}})],1):_vm._e(),(incentive.Selected)?_c('i',{staticClass:\"icon-tick\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e()]),_c('span',{staticClass:\"discount-action\"},[(incentive.Selected)?_c('button',{ref:\"incentiveButton\",refInFor:true,staticClass:\"btn btn-remove\",attrs:{\"type\":\"button\",\"aria-label\":'Remove '+incentive.DisplayName+' offer',\"data-incentive-id\":incentive.IncentiveID},on:{\"click\":function($event){return _vm.promoUpdate(incentive.IncentiveID, incentive.IncentiveType, 'DELETE')}}},[_vm._v(\"Remove\")]):_c('button',{ref:\"incentiveButton\",refInFor:true,staticClass:\"btn btn-apply\",attrs:{\"type\":\"button\",\"aria-label\":'Apply '+incentive.DisplayName+' offer',\"data-incentive-id\":incentive.IncentiveID,\"disabled\":incentive.IncentiveType == 2 && incentive.OfferType == 2 && _vm.orderBasedIncentiveApplied},on:{\"click\":function($event){return _vm.ApplyPromo(incentive.IncentiveID, incentive.IncentiveType, 'POST')}}},[_vm._v(\"Apply\")])])]],2)])}),(!_vm.promoExists)?_c('li',{key:'promocode',staticClass:\"addpromo optional\",class:{populated: _vm.promoToApply.length > 0}},[_c('div',{staticClass:\"addpromo-wrapper\"},[_c('span',{staticClass:\"addpromo-display form-floating\",class:{populated: _vm.promoToApply.length > 0}},[_c('input',{ref:\"promoCodeField\",attrs:{\"type\":\"text\",\"id\":\"promo\",\"maxlength\":\"50\",\"aria-describedby\":_vm.promoCodeErrorID},on:{\"input\":_vm.promoCodeInput,\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.promoCodeUpdate('PUT', 'add')}}}),_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('promotions-addpromo-label'),expression:\"'promotions-addpromo-label'\"}],attrs:{\"for\":\"promo\"}},[_vm._v(\"Enter Promo Code\")])]),_c('span',{staticClass:\"addpromo-actions\"},[_c('button',{staticClass:\"btn btn-primary btn-addpromo\",attrs:{\"type\":\"button\",\"disabled\":_vm.promoToApply.length === 0,\"aria-label\":\"Apply Promo Code\"},on:{\"click\":function($event){return _vm.promoCodeUpdate('PUT', 'add')}}},[_vm._v(\"Apply\")])])]),(_vm.promoCodeErrorMessage)?_c('span',{staticClass:\"inline-error\",attrs:{\"id\":\"promoCodeError\"},domProps:{\"innerHTML\":_vm._s(_vm.promoCodeErrorMessage)}}):_vm._e()]):_vm._e()],2)],1)]),_c('ModalContent',{ref:\"promoModal\",attrs:{\"modal\":_vm.confirmModal(false, true, 'apply-promotion-warning')},on:{\"confirm\":function($event){return _vm.promoUpdate(_vm.applyIncentiveID, _vm.applyIncentiveType, 'POST')}}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Are You Sure?\")]),_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('promotions-modal-warning-message'),expression:\"'promotions-modal-warning-message'\"}],attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('div',[_c('p',[_vm._v(\"You have selected a new offer that will remove a previously applied offer. Some offers cannot work in conjunction with other offers.\")]),_c('p',[_vm._v(\"You can always switch back to the previous offer before checking out.\")])])]),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('promotions-modal-apply-button'),expression:\"'promotions-modal-apply-button'\"}],attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"Continue\")]),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('promotions-modal-cancel-button'),expression:\"'promotions-modal-cancel-button'\"}],attrs:{\"slot\":\"cancel-text\"},slot:\"cancel-text\"},[_vm._v(\"Cancel\")])])],1)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"title\",attrs:{\"role\":\"text\",\"id\":\"promotionsHeading\"}},[_c('i',{staticClass:\"icon-tag\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Offers / Promo Code\")])}]\n\nexport { render, staticRenderFns }","var ModalType;\r\n(function (ModalType) {\r\n ModalType[\"CONFIRM\"] = \"confirm\";\r\n ModalType[\"ALERT\"] = \"alert\";\r\n ModalType[\"POPUP\"] = \"popup\";\r\n})(ModalType || (ModalType = {}));\r\nvar Modal = /** @class */ (function () {\r\n // Constructor\r\n function Modal(showclose, showheader, type, className) {\r\n this.Type = ModalType.ALERT;\r\n this.showClose = false;\r\n this.showHeader = true;\r\n this.cancelText = 'Cancel';\r\n this.confirmText = 'Accept';\r\n this.className = '';\r\n this.Type = type || ModalType.POPUP;\r\n // Default showing close 'x' in the popup as there is no other button showing.\r\n this.showClose = this.Type === ModalType.POPUP ? true : showclose || false;\r\n this.showHeader = showheader !== undefined ? showheader : true;\r\n this.className = className || '';\r\n }\r\n // Initialize the default values\r\n Modal.Types = ModalType;\r\n return Modal;\r\n}());\r\nexport default Modal;\r\n//# sourceMappingURL=Modal.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isOpen)?_c('transition',{attrs:{\"name\":\"vue-modal\"},on:{\"enter\":_vm.enter,\"before-leave\":_vm.closing,\"leave\":_vm.closed}},[_c('div',{ref:\"modalElement\",staticClass:\"modal-mask vue-modal\",class:_vm.modal.className,attrs:{\"tabindex\":\"-1\",\"role\":\"dialog\",\"aria-modal\":\"true\"},on:{\"click\":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.Close($event)},\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"escape\",undefined,$event.key,undefined)){ return null; }return _vm.Close($event)}}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[(_vm.ShowHeader)?_c('div',{staticClass:\"modal-header\"},[_vm._t(\"header\"),(_vm.ShowCloseLink)?_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"aria-label\":\"Close\"},on:{\"click\":_vm.Close}}):_vm._e()],2):_vm._e(),_c('div',{staticClass:\"modal-body\"},[_vm._t(\"body\")],2),_c('div',{staticClass:\"modal-footer\",class:_vm.footerContentClass},[(_vm.ShowConfirmButton)?_c('button',{staticClass:\"accept btn-primary\",on:{\"click\":function($event){return _vm.confirm()}}},[_vm._t(\"confirm-text\",[_vm._v(\"Continue\")])],2):_vm._e(),(_vm.ShowCancelButton)?_c('button',{staticClass:\"cancel btn-secondary\",on:{\"click\":function($event){return _vm.cancel()}}},[_vm._t(\"cancel-text\",[_vm._v(\"Cancel\")])],2):_vm._e()])])])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport Modal from './Modal';\nimport { setTabLock } from '@/utilities';\n\n@Component({})\nexport default class ModalContent extends Vue {\n @Prop() protected modal!: Modal;\n protected open: boolean = false;\n protected modalParent: HTMLElement | null = null;\n protected activeElement: HTMLElement | null = null;\n\n public Close() {\n // if accept/reject is mandatory these should be the only methods that can close the modal\n if ( this.ShowCloseLink ) {\n this.isOpen = false;\n }\n }\n\n public Open() {\n this.isOpen = true;\n }\n\n public closeOnEscape(ev: KeyboardEvent) {\n if (ev.defaultPrevented) {\n return;\n }\n const key = ev.key || ev.keyCode;\n if (key === 'Escape' || key === 'Esc' || key === 27) {\n this.Close();\n }\n }\n\n private get isOpen(): boolean {\n return this.open;\n }\n\n private set isOpen(val: boolean) {\n this.open = val;\n }\n\n\n // for accessibility we need to stop the user tabbing out of the modal\n // but still allow them to tab out of the window\n @Watch('isOpen')\n private setTabListeners(newVal: boolean, oldVal: boolean) {\n Vue.nextTick().then(() => {\n if (newVal !== oldVal) {\n const modalLayer: HTMLElement = this.$refs.modalElement as HTMLElement;\n Vue.nextTick(() => {\n if (newVal) {\n setTabLock(modalLayer);\n } else {\n setTabLock();\n }\n });\n }\n });\n }\n\n @Watch('isOpen')\n private toggleMe(newVal: boolean, oldVal: boolean) {\n if (newVal !== oldVal) {\n if (newVal) {\n this.openModal();\n } else {\n this.closeModal();\n }\n }\n }\n\n private confirm() {\n this.$emit('confirm');\n this.isOpen = false;\n }\n\n private cancel() {\n this.$emit('cancel');\n this.isOpen = false;\n }\n\n private storeActiveElement() {\n this.previousActiveElement = document.activeElement as HTMLElement;\n }\n\n private openModal() {\n this.storeActiveElement();\n document.addEventListener('keyup', this.closeOnEscape);\n this.$emit('open');\n }\n\n private closeModal() {\n if (this.modalParent ) {\n const modalEl = this.$refs.modalElement as HTMLElement;\n this.modalParent.appendChild(modalEl);\n }\n document.removeEventListener('keyup', this.closeOnEscape);\n Vue.nextTick(() => {\n if ( this.previousActiveElement ) {\n this.previousActiveElement.focus();\n }\n });\n this.$emit('close');\n }\n\n private closing() {\n document.body.classList.remove('modal-open');\n // iThings will pass a hover event through to the underlying layers when we remove our modal :(\n this.$surpressHover();\n this.$emit('beforeClose');\n }\n\n private closed() {\n this.$emit('closed');\n }\n\n private enter() {\n document.body.classList.add('modal-open');\n const modalEl = this.$refs.modalElement as HTMLElement;\n const isIOS: boolean = document.body.classList.contains('ios');\n if (modalEl) {\n if (this.modalParent === null) {\n this.modalParent = modalEl.parentElement;\n }\n if (this.modalParent && this.modalParent .tagName !== 'BODY') {\n this.modalParent.removeChild(modalEl);\n document.body.appendChild(modalEl);\n }\n if (isIOS && this.previousActiveElement) {\n // Voiceover on iThings plays havoc with the focussing, so we need to force it\n const refocus = () => { modalEl.focus(); };\n this.previousActiveElement.addEventListener('focus', refocus);\n setTimeout (() => {\n if (this.previousActiveElement) {\n this.previousActiveElement.focus();\n this.previousActiveElement.removeEventListener('focus', refocus);\n }\n }, 1000);\n } else {\n modalEl.focus();\n }\n }\n this.$emit('entered');\n }\n\n get previousActiveElement() {\n return this.activeElement;\n }\n\n set previousActiveElement( el ) {\n this.activeElement = el;\n }\n\n get ShowCloseLink(): boolean {\n return this.modal.showClose;\n }\n\n get ShowHeader(): boolean {\n return this.modal.showHeader;\n }\n\n get ShowCancelButton(): boolean {\n return this.modal.Type === Modal.Types.CONFIRM;\n }\n\n get ShowConfirmButton(): boolean {\n return this.modal.Type !== Modal.Types.POPUP;\n }\n\n get footerContentClass(): string {\n let classname: string = 'footer-empty';\n if (this.ShowCancelButton && this.ShowCancelButton) {\n classname = '';\n } else if ( this.ShowCancelButton || this.ShowConfirmButton ) {\n classname = '';\n }\n return classname;\n }\n\n get customClass(): string {\n if (this.modal.Type === 'popup') {\n return 'vue-modal-fluid';\n }\n return '';\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalContent.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalContent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ModalContent.vue?vue&type=template&id=50b249fe&\"\nimport script from \"./ModalContent.vue?vue&type=script&lang=ts&\"\nexport * from \"./ModalContent.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition-group',{attrs:{\"name\":_vm.name,\"tag\":_vm.tag,\"css\":true,\"duration\":_vm.duration,\"transitionEnterTimeout\":\"{0}\",\"transitionLeaveTimeout\":\"{0}\"},on:{\"before-enter\":_vm.beforeEnter,\"enter\":_vm.enter,\"after-enter\":_vm.afterEnter,\"before-leave\":_vm.beforeLeave,\"leave\":_vm.leave,\"after-leave\":_vm.afterLeave}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport Animation from './Animation.vue';\r\n\r\n// when adding or removing an element we may need to identify this in sibling elements\r\n// (for more involved animations)\r\nenum Status {\r\n ADDED = 'added',\r\n REMOVED = 'removed',\r\n AFFECTED = 'siblings-changing',\r\n}\r\n\r\n@Component({})\r\nexport default class GroupAnimation extends Animation {\r\n @Prop({default: 'span'}) private tag!: string;\r\n\r\n protected beforeEnter(el: HTMLElement) {\r\n if (this.AnimateParentHeight) {\r\n this.Parent.style.height = getComputedStyle(this.Parent).height || '0px';\r\n }\r\n }\r\n\r\n protected enter(el: HTMLElement, done: () => void) {\r\n // when an element is added we need to set its status (and that of its siblings)\r\n this.setStatus(el, Status.ADDED);\r\n if (this.AnimateHeight) {\r\n this.expandElement(el);\r\n }\r\n if (this.AnimateParentHeight) {\r\n this.applyParentTransition();\r\n this.expandParent(el);\r\n }\r\n Vue.nextTick(() => {\r\n window.setTimeout(() => {\r\n done();\r\n }, this.duration);\r\n });\r\n }\r\n\r\n protected afterEnter(el: HTMLElement) {\r\n if (this.AnimateHeight) {\r\n this.resetElement(el);\r\n }\r\n if (this.AnimateParentHeight) {\r\n this.resetParent();\r\n }\r\n // remove any extra attributes\r\n this.doCleanup();\r\n }\r\n\r\n // an element is getting removed\r\n protected beforeLeave(el: HTMLElement) {\r\n // set the status =of the departing element and its siblings\r\n this.setStatus(el, Status.REMOVED);\r\n }\r\n\r\n protected leave(el: HTMLElement, done: () => void) {\r\n if (this.AnimateHeight) {\r\n this.contractElement(el);\r\n }\r\n if (this.AnimateParentHeight) {\r\n this.contractParent(el);\r\n }\r\n Vue.nextTick(() => {\r\n window.setTimeout(() => {\r\n done();\r\n }, this.duration);\r\n });\r\n }\r\n\r\n protected afterLeave(el: HTMLElement) {\r\n if (this.AnimateHeight) {\r\n this.resetElement(el);\r\n }\r\n if (this.AnimateParentHeight) {\r\n this.resetParent();\r\n }\r\n // remove any extra attributes\r\n this.doCleanup();\r\n }\r\n\r\n // when adding or removing an element we need to decorate its siblings so that their animations can be controlled\r\n private setStatus(el: HTMLElement, status: Status) {\r\n // siblings will be child nodes of the element's parent\r\n const parentEl: HTMLElement | null = el.parentElement;\r\n if (parentEl) {\r\n parentEl.childNodes.forEach((child: Node) => {\r\n // we are not interested in text nodes, comments etc, so only type ones\r\n if (child.nodeType === 1) {\r\n const childEl: HTMLElement = child as HTMLElement;\r\n if (child === el) {\r\n // this is the element that is getting added or removed, so decorate it accordingly\r\n // we cannot use classes as the Vue transition-group removes them anyway\r\n childEl.setAttribute('data-animation-status', status);\r\n } else {\r\n // this is a sibling element, if it is not already marked as being added or removed\r\n // we need to mark it up so that it can be targetted by css\r\n const state: string | null = childEl.getAttribute('data-animation-status');\r\n if (state !== Status.ADDED && state !== Status.REMOVED) {\r\n childEl.setAttribute('data-animation-status', Status.AFFECTED);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n }\r\n\r\n // remove any data attributes that were only concerned with the addition/removal of elements\r\n private doCleanup() {\r\n const elementsToClean: HTMLElement[] = Array.from(this.$el.querySelectorAll('[data-animation-status]'));\r\n elementsToClean.forEach((el) => {\r\n delete el.dataset.animationStatus;\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupAnimation.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupAnimation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupAnimation.vue?vue&type=template&id=11550587&\"\nimport script from \"./GroupAnimation.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupAnimation.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { IOrder, IOrderIncentive, DispatchAction, IncentiveType, IAPIResponse, IError } from '../interfaces';\r\nimport * as utilities from '../utilities';\r\nimport Price from './pricing/Price';\r\nimport PriceDisplay from './pricing/PriceDisplay.vue';\r\nimport Modal from './ui/Modal';\r\nimport ModalContent from './ui/ModalContent.vue';\r\nimport Animation from '@/components/ui/animations/Animation.vue';\r\nimport GroupAnimation from '@/components/ui/animations/GroupAnimation.vue';\r\n\r\n\r\n@Component({\r\n components: {\r\n PriceDisplay,\r\n ModalContent,\r\n Animation,\r\n GroupAnimation,\r\n },\r\n})\r\nexport default class Promotions extends Vue {\r\n\r\n private showModal: boolean = false;\r\n private promoToApply: string = '';\r\n private promoCodeError: string = '';\r\n private applyIncentiveID: number = 0;\r\n private applyIncentiveType: IncentiveType = IncentiveType.ItemBased;\r\n\r\n private collapsed: boolean = false;\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n get orderBasedIncentiveApplied(): boolean {\r\n // test for any order-based, optional offers that have already been selected\r\n return this.offers.filter((offer) => {\r\n // type 2 = order-based, no headkey indicates an auto-applied offer\r\n return offer.IncentiveType === 2\r\n && offer.OfferType.toString() === '2'\r\n && offer.Selected === true\r\n && (offer.HeadKey.length > 0 || offer.LoyaltyTier);\r\n }).length > 0;\r\n }\r\n get promoCodeErrorMessage(): string {\r\n return this.promoCodeError;\r\n }\r\n set promoCodeErrorMessage(val: string) {\r\n this.promoCodeError = val;\r\n }\r\n\r\n get promoCodeErrorID(): string {\r\n if (this.promoCodeError.length > 0) {\r\n return 'promoCodeError';\r\n }\r\n return '';\r\n }\r\n\r\n // dynamic string dependent on the number of offers applied\r\n get promoCodeStatusMessage(): string {\r\n let message: string = '';\r\n switch (this.countAppliedOffers) {\r\n case 0:\r\n message = store.getters.getGlossaryEntryByKey('promotions-no-offers-applied') || 'No Offers applied';\r\n break;\r\n case 1:\r\n message = store.getters.getGlossaryEntryByKey('promotions-one-offer-applied') || '1 Offer applied';\r\n break;\r\n default:\r\n message = store.getters.getGlossaryEntryByKey('promotions-xx-offers-applied') || 'XX Offers applied';\r\n message = message.replace(/XX/i, this.countAppliedOffers.toString());\r\n break;\r\n }\r\n return message;\r\n }\r\n\r\n // -----------------------------------------------------------------\r\n // Applying Promotion\r\n // -----------------------------------------------------------------\r\n\r\n protected promoUpdate(incentiveID: number, incentiveType: number, action: string) {\r\n if (incentiveID > 0) {\r\n let ariaSendMessage: string = 'Applying offer.';\r\n let ariaSuccessMessage: string = 'Offer applied.';\r\n if (action === 'DELETE') {\r\n ariaSendMessage = 'Removing offer.';\r\n ariaSuccessMessage = 'Offer removed.';\r\n }\r\n const incentive: IOrderIncentive | undefined = this.offers.find((offer: IOrderIncentive) => {\r\n return offer.IncentiveID === incentiveID;\r\n });\r\n if (incentive) {\r\n ariaSendMessage += incentive.DisplayName;\r\n }\r\n this.$ariaAnnounce(ariaSendMessage);\r\n utilities.fetch('/client/v2/cart/order/promotion/' + incentiveType + '/' + incentiveID,\r\n {\r\n method: action,\r\n })\r\n .then((response) => {\r\n if (!response.ok) {\r\n // Show error on page\r\n } else {\r\n this.$ariaAnnounce(ariaSuccessMessage);\r\n }\r\n // return focus to the relevant button\r\n store.dispatch(DispatchAction.FetchFreightOptions);\r\n store.dispatch(DispatchAction.FetchOrder).then(() => {\r\n Vue.nextTick(() => {\r\n const offerButtons: HTMLElement[] = this.$refs.incentiveButton as HTMLElement[];\r\n let focusElement: HTMLElement | null | undefined;\r\n // if we've just applied an offer focus on its message\r\n // we can find it with a good old fashioned css selector\r\n const selector: string = `li[data-inid=\"${incentiveID}\"] .applied .discount-display`;\r\n focusElement = document.querySelector(selector) as HTMLElement;\r\n // if we've removed an offer, focus back on its apply button\r\n if (!focusElement) {\r\n focusElement = offerButtons.find((btn: HTMLElement) => {\r\n return btn.dataset.incentiveId === incentiveID.toString();\r\n });\r\n }\r\n // for whatever reason the offer no longer exists, so focus back on the heading\r\n if (!focusElement) {\r\n focusElement = this.$refs.tabpanel as HTMLElement;\r\n }\r\n if (focusElement) {\r\n this.$nextFocus(focusElement);\r\n }\r\n });\r\n });\r\n });\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------------\r\n // Promo Code\r\n // -----------------------------------------------------------------\r\n protected promoCodeUpdate(action: string, methodAction: string) {\r\n let promocode: string = '';\r\n let ariaSuccessMessage: string = 'promo code applied';\r\n const reqData: RequestInit = {\r\n method: action,\r\n };\r\n\r\n if (methodAction === 'add') {\r\n promocode = (document.getElementById('promo') as (HTMLInputElement)).value;\r\n\r\n reqData.body = JSON.stringify(promocode);\r\n reqData.headers = new Headers();\r\n reqData.headers.append('Content-Type', 'application/json');\r\n\r\n this.$ariaAnnounce('applying promo code');\r\n } else {\r\n this.$ariaAnnounce('removing promo code');\r\n ariaSuccessMessage = 'promo code removed';\r\n this.promoToApply = '';\r\n }\r\n\r\n this.promoCodeErrorMessage = '';\r\n utilities.fetch('/client/v2/cart/order/promo', reqData)\r\n .then((response) => {\r\n if (!response.ok) {\r\n return response.json().then((json) => (json as IAPIResponse).Errors);\r\n }\r\n this.$ariaAnnounce(ariaSuccessMessage);\r\n return [];\r\n }).then((errors: IError[]) => {\r\n if (errors.length > 0) {\r\n this.promoCodeErrorMessage = utilities.getErrorMessage(errors[0]);\r\n const elements = document.getElementsByClassName('optional');\r\n Array.prototype.forEach.call(elements, (ele: HTMLElement) => {\r\n ele.classList.add('error-highlight');\r\n });\r\n this.$ariaAnnounce('unable to apply promo code');\r\n this.$nextFocus(this.$refs.promoCodeField as HTMLElement);\r\n } else {\r\n // iThings will pass a hover event through to the new add/remove button when we replace it with its counterpart\r\n this.$surpressHover();\r\n store.dispatch(DispatchAction.FetchFreightOptions);\r\n store.dispatch(DispatchAction.FetchOrder).then(() => {\r\n // the button or field may have been removed from the DOM, re-focus on the relevant element\r\n Vue.nextTick(() => {\r\n // if we have an error the input field will be showing\r\n let focusElement: HTMLElement | undefined = this.$refs.promoCodeField as HTMLElement;\r\n\r\n // if the offers tab is open the remove button will be available\r\n if (!focusElement) {\r\n try {\r\n focusElement = (this.$refs.promoCodeMessage as Element[])[0] as HTMLElement;\r\n } catch (e) {\r\n // have to stick a comment in here to keep Typescript happy\r\n }\r\n }\r\n\r\n // otherwise go back up to the tab\r\n if (!focusElement) {\r\n focusElement = this.$refs.tabpanel as HTMLElement;\r\n }\r\n\r\n if (focusElement) {\r\n this.$nextFocus(focusElement);\r\n }\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n\r\n // event handler for the promocode field 'input' event\r\n // cannot use v-model binding due to it not firing when the event.isComposing flag is set\r\n protected promoCodeInput(e: any) {\r\n this.promoToApply = e.target.value;\r\n }\r\n\r\n // Do sorting on the display of promotions\r\n get promo(): IOrderIncentive[] {\r\n const incentives: IOrderIncentive[] = this.order.Incentives;\r\n if (incentives) {\r\n return incentives.filter((eachObj: IOrderIncentive) => {\r\n return eachObj.Selected === true && (eachObj.IncentiveCode.length > 0 || eachObj.UniqueCoupon.length > 0);\r\n });\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n get promoExists(): boolean {\r\n const incentives: IOrderIncentive[] = this.order.Incentives;\r\n if (this.order.Incentives.filter((inc) => (inc.IncentiveCode.length > 0 || inc.UniqueCoupon.length > 0)\r\n && inc.Selected === true).length > 0) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n // -----------------------------------------------------------------\r\n // Display of Promotions\r\n // -----------------------------------------------------------------\r\n\r\n protected togglePanel() {\r\n this.collapsed = !this.collapsed;\r\n }\r\n\r\n // Do sorting on the display of promotions\r\n get offers(): IOrderIncentive[] {\r\n const incentive: IOrderIncentive[] = this.order.Incentives;\r\n const f: ArraySortFunction = utilities.sortByMultipleKey([\r\n ['Selected', 'desc', ''],\r\n ['IncentiveType', 'asc', ''],\r\n ['HeadKey', 'asc', 'true'],\r\n ['LoyaltyTier', 'asc', 'true'],\r\n ['IncentiveCode', 'asc', 'true'],\r\n ['UniqueCoupon', 'asc', 'true'],\r\n ['DisplayName', 'asc', '']]);\r\n if (incentive) {\r\n return incentive.sort(f);\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n get appliedOffersList(): IOrderIncentive[] {\r\n const incentives: IOrderIncentive[] = this.order.Incentives;\r\n if (incentives) {\r\n return incentives.filter((eachObj: IOrderIncentive) => {\r\n return eachObj.Selected === true;\r\n });\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n get countAppliedOffers(): number {\r\n if (this.appliedOffersList && this.appliedOffersList.length > 0) {\r\n return this.appliedOffersList.length;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n get totalOfferAmount(): number {\r\n if (this.countAppliedOffers > 0) {\r\n return this.appliedOffersList.reduce((sum: number, ins: IOrderIncentive) => {\r\n return sum + ins.DiscountedAmount;\r\n }, 0);\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n private promoValue(amount: number): Price {\r\n return new Price(amount, Price.Types.SAVE);\r\n }\r\n\r\n private discountValue(amount: number): Price {\r\n return new Price(amount, Price.Types.DISCOUNT);\r\n }\r\n\r\n private className(incentive: IOrderIncentive): string {\r\n if (incentive.HeadKey === '' || !incentive.LoyaltyTier) {\r\n return 'applied';\r\n } else {\r\n let r = '';\r\n if (incentive.Selected) {\r\n r = 'applied ';\r\n }\r\n switch (incentive.IncentiveType) {\r\n case 1:\r\n r += 'item-based';\r\n break;\r\n case 2:\r\n r += 'order-based';\r\n break;\r\n case 3:\r\n r += 'tender-based';\r\n break;\r\n }\r\n return r;\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------------\r\n // Popup Modal Control\r\n // -----------------------------------------------------------------\r\n\r\n get promoModal() {\r\n return this.$refs.promoModal as ModalContent;\r\n }\r\n // Construct the popup\r\n private confirmModal(showClose: boolean, showHeader: boolean, className?: string): Modal {\r\n return new Modal (showClose, showHeader, Modal.Types.CONFIRM, className);\r\n }\r\n\r\n private ApplyPromo(incentiveID: number, incentiveType: number, action: string) {\r\n // If there is any incentive applied to the order\r\n // Show the popup to remind customer the applied incentive will be removed.\r\n if (this.countAppliedOffers > 0) {\r\n // Set to show the popup\r\n this.promoModal.Open();\r\n this.applyIncentiveID = incentiveID;\r\n this.applyIncentiveType = incentiveType;\r\n } else {\r\n // No popup to show as there is no applied incentive to be removed.\r\n this.promoUpdate(incentiveID, incentiveType, action);\r\n }\r\n }\r\n\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Promotions.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Promotions.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Promotions.vue?vue&type=template&id=a0bceeee&\"\nimport script from \"./Promotions.vue?vue&type=script&lang=ts&\"\nexport * from \"./Promotions.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.order && _vm.order.Items && _vm.order.Items.length && _vm.order.CustomerID > 1)?_c('div',{staticClass:\"rewards-container\",class:_vm.statusClass},[_c('div',{staticClass:\"rewards-wrapper\"},[_c('div',{staticClass:\"rewards-heading\"},[_vm._v(\"My Rewards\")]),_c('div',{staticClass:\"rewards-content\"},[(_vm.canUseRewards)?_c('div',{staticClass:\"rewards-indicators\"},[(_vm.order.RewardPointsAvailable > 0 && _vm.order.RewardPointsRequested === 0)?_c('div',{staticClass:\"rewards-indicator\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.standardPrice(_vm.order.RewardPointsAvailable)}}),_c('span',{staticClass:\"rewards-description\",attrs:{\"role\":\"text\"}},[_vm._v(\"Available\")])],1):_vm._e(),(_vm.order.RewardPointsRequested > 0)?_c('div',{staticClass:\"rewards-indicator\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.standardPrice(_vm.order.RewardPointsRequested)}}),_c('span',{staticClass:\"rewards-description\",attrs:{\"role\":\"text\"}},[_vm._v(\"Applied\")])],1):_vm._e(),(_vm.order.RewardPointsRequested > 0)?_c('div',{staticClass:\"rewards-indicator\"},[(_vm.order.RewardPointsAvailable > 0)?_c('PriceDisplay',{attrs:{\"price\":_vm.standardPrice(_vm.order.RewardPointsAvailable)}}):_c('span',{staticClass:\"price standard\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"price-display\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"currency-symbol\",attrs:{\"role\":\"text\"}},[_vm._v(\" $\")]),_c('span',{staticClass:\"value\",attrs:{\"role\":\"text\"}},[_vm._v(\"0.00\")])])]),_c('span',{staticClass:\"rewards-description\",attrs:{\"role\":\"text\"}},[_vm._v(\"Remaining\")])],1):_vm._e()]):_vm._e(),(!_vm.canUseRewards && _vm.order.RewardPointsAvailable === 0)?_c('div',{staticClass:\"rewards-indicators\"},[_vm._m(0)]):_vm._e(),_c('div',{staticClass:\"rewards-message\",domProps:{\"innerHTML\":_vm._s(_vm.statusMessage)}}),(_vm.canUseRewards)?_c('div',{class:[ _vm.order.RewardPointsRequested > 0 ? 'rewards-applied' : 'rewards' ]},[_c('fieldset',[(_vm.order.RewardPointsRequested > 0)?_c('legend',{staticClass:\"accessibility\"},[_vm._v(\"Revert Applied Points\")]):_c('legend',{staticClass:\"accessibility\"},[_vm._v(\"Redeem Loyalty Points\")]),_c('div',{staticClass:\"holder\"},[_c('p',{staticClass:\"price-standard amount\"},[(_vm.order.RewardPointsRequested == 0)?_c('span',{staticClass:\"price-display\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"currency-symbol\",attrs:{\"role\":\"text\"}},[_vm._v(\"$\")]),_c('span',{staticClass:\"value\",attrs:{\"role\":\"text\"}},[_c('input',{staticClass:\"not-empty\",attrs:{\"type\":\"number\",\"step\":\"0.01\",\"id\":_vm.ComponentID},domProps:{\"value\":_vm.appliedRewards.toFixed(2)},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.rewards(true)}}})])]):_c('span',{staticClass:\"price-display\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"value\",attrs:{\"role\":\"text\"}},[_c('input',{staticClass:\"not-empty\",attrs:{\"type\":\"text\",\"readonly\":\"readonly\",\"id\":_vm.ComponentID},domProps:{\"value\":'$' + _vm.appliedRewards.toFixed(2)},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.rewards(true)}}})])])]),_c('div',{staticClass:\"rewards-action\"},[(_vm.order.RewardPointsRequested > 0)?_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\"},domProps:{\"textContent\":_vm._s(_vm.buttonText)},on:{\"click\":function($event){return _vm.rewards(false)}}},[_vm._v(\"Revert\")]):_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},domProps:{\"textContent\":_vm._s(_vm.buttonText)},on:{\"click\":function($event){return _vm.rewards(true)}}},[_vm._v(\"Apply\")])])])])]):_vm._e()])])]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"rewards-indicator\"},[_c('span',{staticClass:\"price standard\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"price-display\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"currency-symbol\",attrs:{\"role\":\"text\"}},[_vm._v(\" $\")]),_c('span',{staticClass:\"value\",attrs:{\"role\":\"text\"}},[_vm._v(\"0.00\")])])]),_c('span',{staticClass:\"rewards-description\",attrs:{\"role\":\"text\"}},[_vm._v(\"Available\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n // Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { store } from '../store';\nimport {IOrder, IOrderItem, DispatchAction, IWebsiteSettings, IncentiveType, IOrderIncentive, ICustomer} from '../interfaces';\nimport Price from './pricing/Price';\nimport PriceDisplay from './pricing/PriceDisplay.vue';\nimport * as utilities from '../utilities';\nimport ComponentID from '@/mixins/ComponentID';\n\n\n@Component({\n components: {\n PriceDisplay,\n },\n mixins : [ComponentID],\n})\n\nexport default class RewardPoints extends Vue {\n\n get order(): IOrder {\n return store.getters.Order;\n }\n\n get WebsiteSettings(): IWebsiteSettings {\n return store.getters.WebsiteSettings;\n }\n\n get Customer(): ICustomer {\n return store.getters.Customer;\n }\n\n // Status message regarding reward points available and requested.\n get statusMessage(): string {\n const requestedRewards: number = this.order.RewardPointsRequested;\n const availablerewards: number = this.order.RewardPointsAvailable;\n let key: string = '';\n\n let customerCreateDate: Date;\n if (this.Customer.DateCreated === null) {\n customerCreateDate = new Date();\n } else {\n customerCreateDate = new Date(this.Customer.DateCreated);\n }\n const customerAcctActiveDate: Date = new Date();\n // Customer Account will be activated after 48 hours.\n customerAcctActiveDate.setTime(customerCreateDate.getTime() + (48 * 60 * 60 * 1000));\n\n if (this.WebsiteSettings.IsEshopUser) {\n key = 'rewardpoints-status-eshop';\n } else if (new Date() < customerAcctActiveDate) {\n // Display different message\n // If the customer account is created less than 48 hours.\n key = 'rewardpoints-status-waitingactivate';\n } else if (availablerewards === 0 && requestedRewards === 0) {\n key = 'rewardpoints-status-zero-reward';\n } else if (this.maxRedeemable === 0) {\n key = 'rewardpoints-status-ineligible';\n } else if (requestedRewards > 0) {\n key = 'rewardpoints-status-applied';\n } else if (availablerewards < 0) {\n key = 'rewardpoints-status-service-unavailable';\n } else if (availablerewards > 0) {\n key = 'rewardpoints-status-available';\n } else {\n key = 'rewardpoints-status-none-available';\n }\n return store.getters.getGlossaryEntryByKey(key) || '';\n }\n\n get statusClass(): string {\n const requestedRewards: number = this.order.RewardPointsRequested;\n const availablerewards: number = this.order.RewardPointsAvailable;\n if (availablerewards <= 0 && requestedRewards === 0) {\n return 'has-no-rewards';\n } else {\n return 'has-rewards';\n }\n }\n\n private standardPrice(amount: number): Price {\n return new Price(amount, Price.Types.STANDARD);\n }\n\n private discountedPrice(amount: number): Price {\n return new Price(amount, Price.Types.DISCOUNT);\n }\n\n // Calculates the display of reward points based on the order total. If the Order total is less than\n // available reward points and no rewards have been applied, the available rewards points will be\n // displayed in the input box. If any rewards are applied to the order, the applied rewards will be displayed.\n // If the available rewards is less than the order total and no rewards are applied, the available rewards\n // will be displayed.\n // Note: Reward Points cannot be applied to the freight charge\n get appliedRewards(): number {\n const requestedRewards: number = this.order.RewardPointsRequested;\n const availablerewards: number = this.order.RewardPointsAvailable;\n if (this.order !== undefined) {\n if (requestedRewards > 0) {\n return requestedRewards;\n } else {\n // Find the discountable total, ie. sum discounted line total for each\n // order item line that is not deleted or excluded from reward points\n const orderTotal: number = this.maxRedeemable;\n // Limit to available reward point balance\n if (availablerewards > orderTotal) {\n return orderTotal;\n } else {\n return availablerewards;\n }\n }\n }\n return 0;\n }\n\n get maxRedeemable(): number {\n // Find the discountable total, ie. sum discounted line total for each\n // order item line that is not deleted or excluded from reward points\n let orderTotal: number = 0;\n const validItems: IOrderItem[] | undefined = this.order.Items.filter(\n (x: IOrderItem) => x.ExcludedFromRewards === false && !x.IsDeleted);\n if (validItems !== undefined) {\n // Calculate the discounted item total\n validItems.forEach((x: IOrderItem) => {\n orderTotal += x.LineDiscountedSubtotal;\n });\n // Calculate the order based incentives\n if (this.order.Incentives != null) {\n orderTotal -= this.order.Incentives\n // tslint:disable-next-line:max-line-length\n .filter((i: IOrderIncentive) => i.IncentiveType === IncentiveType.OrderBased && i.Selected === true)\n .reduce((sum, current) => sum + current.DiscountedAmount, 0);\n }\n // To make sure we are not showing negative amount in any situation\n if (orderTotal < 0) {\n orderTotal = 0;\n }\n }\n return orderTotal;\n }\n\n // flag to indicate whether to display the interactive elements\n get canUseRewards(): boolean {\n let canUse: boolean = true;\n if (this.WebsiteSettings.IsEshopUser\n || this.maxRedeemable === 0\n || (this.order.RewardPointsRequested === 0 && this.order.RewardPointsAvailable <= 0)\n ) {\n canUse = false;\n }\n return canUse;\n }\n\n get buttonText(): string {\n if (this.order.RewardPointsRequested > 0) {\n return store.getters.getGlossaryEntryByKey('rewardpoints-remove-button') || 'Revert';\n } else {\n return store.getters.getGlossaryEntryByKey('rewardpoints-apply-button') || 'Apply';\n }\n }\n // Apply/Reset Reward Points - Applies/Resets the reward points to the order\n // and returns the order.\n private rewards(applyReward: boolean) {\n let rewardpoints: number = 0;\n let ariaSendMessage: string = 'Removing rewards points from order';\n let ariaSuccessMessage: string = 'Reward points removed';\n if (applyReward) {\n rewardpoints = parseFloat((document.getElementById(this.ComponentID) as (HTMLInputElement)).value);\n ariaSendMessage = `Applying $${rewardpoints} of rewards points to order`;\n ariaSuccessMessage = 'Reward points applied';\n }\n this.$surpressHover();\n this.$ariaAnnounce(ariaSendMessage);\n // Remove the reward points applied to the order, and return the refereshed order.\n utilities.fetch('/client/v2/cart/order/rewards?requestedRewardPoints=' + rewardpoints,\n {\n method: 'POST',\n })\n .then((response) => {\n if (!response.ok) {\n // TO-DO Error Handling\n } else {\n this.$ariaAnnounce(ariaSuccessMessage);\n }\n store.dispatch(DispatchAction.FetchOrder);\n store.dispatch(DispatchAction.FetchFreightOptions);\n });\n }\n\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RewardPoints.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RewardPoints.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RewardPoints.vue?vue&type=template&id=672a13fc&\"\nimport script from \"./RewardPoints.vue?vue&type=script&lang=ts&\"\nexport * from \"./RewardPoints.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"order-summary-container\"},[(_vm.currentpage ==='checkout')?_c('div',{staticClass:\"item-summary\"},[_c('div',{staticClass:\"item-count\"},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Your order contains \")]),_vm._v(\" \"+_vm._s(_vm.itemCount)),(_vm.itemCount === 1)?_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\" Item\")]):_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\" Items\")])]),(!_vm.retryingPlaceOrder)?_c('a',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('ordersummary-edit-button'),expression:\"'ordersummary-edit-button'\"}],staticClass:\"back-to-cart\",attrs:{\"href\":_vm.editBag,\"aria-label\":\"Edit order items\"}},[_vm._v(\"Edit Bag\")]):_vm._e(),_c('Carousel',{class:_vm.tooltipOpen ? 'tooltip-open': '',attrs:{\"navigationEnabled\":true,\"centerMode\":true,\"perPage\":3,\"scrollPerPage\":false},on:{\"pageChange\":function($event){_vm.carouselMoving=true}}},_vm._l((_vm.filteredOrderItems),function(item,index){return _c('Slide',{key:item.ID,attrs:{\"index\":index}},[(item.IsGiftItem === false)?[_c('CheckoutOrderItem',{attrs:{\"item\":item,\"carouselMoving\":_vm.carouselMoving},on:{\"tooltip-status\":_vm.tooltipHover}})]:_vm._e()],2)}),1)],1):_vm._e(),_c('div',{staticClass:\"table-responsive\"},[_c('table',{attrs:{\"role\":\"presentation\"}},[_c('tbody',{staticClass:\"sub-total-items\",attrs:{\"role\":\"presentation\"}},[(_vm.order.Subtotal > 0 && _vm.currentpage !== 'complete')?_c('tr',{staticClass:\"sub-total\"},[_vm._m(0),_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.subTotal}})],1)]):_vm._e(),(_vm.ifOrderHasGiftWrapItem && _vm.currentpage !== 'complete')?_c('tr',[_vm._m(1),( _vm.giftWrappingPrice > 0 )?_c('td',{staticClass:\"pricing amount\"},[_vm._v(\" $\"+_vm._s(_vm.giftWrappingPrice)+\" \")]):_c('td',{staticClass:\"pricing amount\"},[_vm._v(\" Free \")])]):_vm._e(),_vm._l((_vm.appliedIncentives),function(incentive){return _c('tr',{key:incentive.IncentiveID,staticClass:\"price-discount\"},[(incentive.DiscountedAmount > 0)?_c('td',{staticClass:\"message\"},[_vm._v(_vm._s(incentive.DisplayName))]):_vm._e(),(incentive.DiscountedAmount > 0)?_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.discountedPrice(incentive.DiscountedAmount)}})],1):_vm._e()])}),_vm._l((_vm.appliedPromotions),function(incentive){return _c('tr',{key:incentive.IncentiveID,staticClass:\"price-discount\"},[(incentive.DiscountedAmount > 0)?_c('td',{staticClass:\"message\"},[_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(incentive.DisplayName))])]):_vm._e(),(incentive.DiscountedAmount > 0)?_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.discountedPrice(incentive.DiscountedAmount)}})],1):_vm._e()])}),(_vm.order.RewardPointsRequested > 0)?_c('tr',{staticClass:\"price-discount\"},[_c('td',{staticClass:\"message\"},[_vm._v(\"My Rewards\")]),_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.discountedPrice(_vm.order.RewardPointsRequested)}})],1)]):_vm._e(),(_vm.order.RewardPointsRedeemed > 0)?_c('tr',{staticClass:\"price-discount\"},[_c('td',{staticClass:\"message\"},[_vm._v(\"My Rewards\")]),_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.discountedPrice(_vm.order.RewardPointsRedeemed)}})],1)]):_vm._e(),_vm._l((_vm.order.GiftCards),function(giftcard){return _c('tr',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.currentpage === 'checkout' || _vm.currentpage === 'complete'),expression:\"currentpage === 'checkout' || currentpage === 'complete'\"}],key:giftcard.ID,staticClass:\"price-discount\"},[_c('td',{staticClass:\"message\"},[_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"Gift Card \"),(giftcard.PartiallyApplied)?_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\" Partially Applied \")]):_vm._e(),_vm._v(_vm._s(giftcard.CardNumberDisplay.substring(giftcard.CardNumberDisplay.length - 5, giftcard.CardNumberDisplay.length)))])]),(giftcard.ValueRequested > 0)?_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.discountedPrice(giftcard.ValueRequested)}})],1):_vm._e()])}),( (_vm.currentpage === 'checkout' || _vm.currentpage === 'complete') && (_vm.order.ShippingMethod > 0 || _vm.order.PickupStore && _vm.order.PickupStore.Active) )?_c('tr',{staticClass:\"delivery-message\"},[(_vm.order.PickupStore && _vm.order.PickupStore.Active)?_c('td',{staticClass:\"message\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('ordersummary-clickandcollect-label'),expression:\"'ordersummary-clickandcollect-label'\"}],staticClass:\"label-puis\",attrs:{\"role\":\"text\"}},[_vm._v(\"Pick up in Store: \")]),_c('span',{staticClass:\"aside-puis-storename\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Name))])]):_c('td',[(_vm.order.ShippingMethod > 0)?_c('span',{attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.deliveryText)}}):_vm._e()]),(_vm.order.ShippingMethod > 0 || (_vm.order.PickupStore && _vm.order.PickupStore.Active))?_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.freightPrice}})],1):_vm._e()]):_vm._e()],2),_c('tbody',{attrs:{\"role\":\"presentation\"}},[_c('tr',{staticClass:\"order-total\"},[_c('td',[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.totalDisplayText)}})]),_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.total}})],1)]),(_vm.currentpage === 'complete')?_c('tr',{staticClass:\"payment-method\"},[_vm._m(2),_c('td',[_c('ul',{staticClass:\"payments\",attrs:{\"role\":_vm.order.GiftCards.length == 0 ? 'presentation' : false}},[_vm._l((_vm.order.GiftCards),function(giftCard){return _c('li',{key:giftCard.ID,staticClass:\"gift-card\"},[_c('span',{staticClass:\"name\",attrs:{\"role\":\"text\"}},[_vm._v(\"Gift Card\")]),_vm._m(3,true),_c('span',{staticClass:\"message\",attrs:{\"role\":\"text\"}},[_vm._v(\"Gift card ending in *\"+_vm._s(giftCard.CardNumberDisplay.replace(/X/g, '')))])])}),_c('li',{class:_vm.paymentMethodNameClass},[_c('span',{staticClass:\"name\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.paymentMethodName))]),(_vm.paymentMethodImage)?_c('span',{staticClass:\"logo\"},[_c('img',{attrs:{\"src\":_vm.paymentMethodImage,\"alt\":\"\"}})]):_vm._e(),(_vm.hasCreditCard)?[_c('span',{staticClass:\"message\",attrs:{\"role\":\"text\"}},[_vm._v(\"Card ending in *\"+_vm._s(_vm.order.CreditCardUsed.Number))])]:_vm._e()],2)],2)])]):_vm._e(),(_vm.currentpage !== 'complete' && _vm.showAfterpay)?_c('tr',{staticClass:\"order-total afterpay\"},[_c('td',{attrs:{\"colspan\":\"2\"}},[_c('div',{staticClass:\"afterpay-widget\",attrs:{\"data-total-to-pay\":_vm.total.Amount.toFixed(2)}},[_c('p',[_c('span',{staticClass:\"installment-copy\",attrs:{\"role\":\"text\"}},[_vm._v(\"or 4 payments of \")]),_vm._v(_vm._s(_vm.WebsiteSettings.CurrencyCode)+\" $\"),_c('span',{staticClass:\"installment\",attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.afterPayUpdate())}}),_vm._v(\" with \"),_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.showAfterpayModal($event)}}},[_c('img',{attrs:{\"src\":\"/Shared_Assets/payment/afterpay/afterpay-logo.svg\",\"alt\":\"Afterpay details\"}})])])]),_c('ModalContent',{ref:\"afterpayModal\",attrs:{\"modal\":_vm.afterpayModalConfig}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Afterpay\")]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.WebsiteSettings.AfterPayLightbox)}})])])],1)]):_vm._e()])]),(_vm.currentpage !== 'complete')?_c('div',{staticClass:\"checkout-action\"},[(_vm.currentpage === 'cart')?_c('form',{staticClass:\"existing-handler\",attrs:{\"id\":\"frmCheckout\",\"method\":\"post\",\"action\":_vm.getAction}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"rnd\"}}),_c('div',{staticClass:\"d-grid\"},[_c('button',{staticClass:\"btn btn-primary btn-block\",attrs:{\"type\":\"submit\"}},[_c('i',{staticClass:\"icon-lock\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('ordersummary-button-checkout'),expression:\"'ordersummary-button-checkout'\"}]},[_vm._v(\"Secure Checkout\")]),_c('i',{staticClass:\"icon-caret-right\",attrs:{\"aria-hidden\":\"true\"}})])])]):(_vm.currentpage === 'checkout')?_c('form',{staticClass:\"existing-handler place-order\",attrs:{\"id\":\"frmComplete\",\"method\":\"post\",\"action\":_vm.getAction},on:{\"submit\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.placeOrder($event)}}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"rnd\"}}),_c('div',{staticClass:\"d-grid\"},[_c('button',{staticClass:\"btn btn-primary btn-block\",attrs:{\"type\":\"submit\",\"disabled\":!(_vm.CanContinue && _vm.giftingValid)}},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('ordersummary-button-place-order'),expression:\"'ordersummary-button-place-order'\"}]},[_vm._v(\"Place Order\")])])]),_c('div',{staticClass:\"summary-cart-warning\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Cart Place Order Warning'],\"conditions\":_vm.currentpage ==='checkout'}})],1)]):_vm._e()]):_vm._e(),(_vm.currentpage !=='checkout' && _vm.currentpage !== 'complete')?[(!_vm.WebsiteSettings.IsEshopUser)?_c('ContentManagement',{class:'paymentimage',attrs:{\"snippet\":_vm.Snippets['Basket Payment Logo']}}):_vm._e(),_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Order Summary Login Banner - Guest'],\"conditions\":!_vm.LoggedIn && _vm.currentpage ==='cart'}}),_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket Order Summary Banner']}}),(_vm.WebsiteSettings.IsEshopUser)?_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Basket eShopWorld Instruction - Customer']}}):_vm._e()]:_vm._e()],2)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',{staticClass:\"message\"},[_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"Subtotal\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',{staticClass:\"message\"},[_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"Gift Wrapping\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('td',[_c('p',{staticClass:\"payment-method-title\"},[_vm._v(\"Payment method\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"logo\"},[_c('img',{attrs:{\"src\":\"/Shared_Assets/basket/payment/GiftCard.svg\",\"alt\":\"\"}})])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.snippet && _vm.snippet.body && _vm.conditionValidate)?_c('div',{staticClass:\"content\",domProps:{\"innerHTML\":_vm._s(_vm.snippet.body)}}):((!_vm.snippet || !_vm.snippet.body) && _vm.showDefault && _vm.conditionValidate)?_c('div',{staticClass:\"content\"},[_vm._t(\"defaultContent\")],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n\n@Component({})\nexport default class ContentManagement extends Vue {\n @Prop() private snippet!: object[];\n\n @Prop() private conditions!: boolean;\n\n @Prop() private showDefultContent!: boolean;\n\n get conditionValidate(): boolean {\n if (this.conditions === null || this.conditions === undefined) {\n return true;\n } else {\n return this.conditions;\n }\n }\n\n get showDefault(): boolean {\n if (this.showDefultContent === null || this.showDefultContent === undefined) {\n return false;\n } else {\n return this.showDefultContent;\n }\n }\n public mounted() {\n // ensure that the elements have been rendered\n Vue.nextTick().then(() => {\n this.bindContentInteractions();\n });\n }\n\n public destroyed() {\n this.removeContentInteractions();\n }\n\n private bindContentInteractions() {\n const $ = (window as any).jQuery;\n const template = '<div class=\"cms-tooltip\" style=\"display:none\"><div class=\"cms-tooltip-content\"></div><button class=\"cms-tooltip-close\">close</button><div class=\"arrow\" aria-hidden=\"true\"></div></div>';\n const el: HTMLElement = this.$el as HTMLElement;\n $('.cart-tooltip-link', el).each(function() {\n // @ts-ignore: Suppress implicit any error\n const lnk = $(this) as any;\n const contents = $(lnk.attr('href'), el);\n const tooltip = $(template);\n const closeButton = tooltip.find('button.cms-tooltip-close');\n tooltip.find('.cms-tooltip-content').append(contents);\n lnk.after(tooltip);\n function openTooltip() {\n tooltip.show();\n positionTooltip();\n $(window)\n .on('touchstart.cms-tooltip', (evt: Event) => {\n // do we need to include clicking outside the tooltip as well as the touchstart?\n const tooltipEl = tooltip[0] as HTMLElement;\n if (!tooltipEl.contains(evt.target as Node)) {\n closeTooltip();\n }\n }).on('keyup.cms-tooltip', (evt: KeyboardEvent) => {\n if (evt.key === 'Escape') {\n closeTooltip();\n }\n })\n .on('resize.cms-tooltip', () => {\n positionTooltip();\n });\n }\n function closeTooltip() {\n tooltip.hide();\n $(window).off('.cms-tooltip');\n }\n function positionTooltip() {\n $('#gift-wrap-tooltip').css('top', ($('.cart-tooltip-content').outerHeight() * -1) - 10 + 'px');\n $('.arrow').css('left', $('.cart-tooltip-link').position().left + 20 + 'px');\n $('.cms-tooltip-close').css('top', $('#gift-wrap-tooltip').position().top + 5 + 'px');\n // tslint:disable-next-line:max-line-length\n $('.arrow').css('top', $('#gift-wrap-tooltip').position().top + $('#gift-wrap-tooltip').outerHeight() - 1 + 'px');\n }\n lnk.on('click.cms-tooltip', (evt: Event) => {\n evt.preventDefault();\n openTooltip();\n });\n closeButton.on('click.cms-tooltip', (evt: Event) => {\n evt.preventDefault();\n closeTooltip();\n });\n });\n }\n private removeContentInteractions() {\n const $ = (window as any).jQuery;\n $('*', this.$el).off('.cms-tooltip');\n $(window).off('.cms-tooltip');\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentManagement.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentManagement.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContentManagement.vue?vue&type=template&id=1481abbc&\"\nimport script from \"./ContentManagement.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContentManagement.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue-carousel\",class:{ 'vue-carousel-reverse': _vm.paginationPosition === 'top' }},[_c('div',{ref:\"VueCarouselWrapper\",staticClass:\"vue-carousel-wrapper\"},[_c('div',{ref:\"VueCarouselInner\",class:[\n 'vue-carousel-inner',\n { 'vue-carousel-inner--center': _vm.isCenterModeEnabled }\n ],style:({\n 'transform': (\"translate(\" + _vm.currentOffset + \"px, 0)\"),\n 'transition': _vm.dragging ? 'none' : _vm.transitionStyle,\n 'ms-flex-preferred-size': (_vm.slideWidth + \"px\"),\n 'webkit-flex-basis': (_vm.slideWidth + \"px\"),\n 'flex-basis': (_vm.slideWidth + \"px\"),\n 'visibility': _vm.slideWidth ? 'visible' : 'hidden',\n 'height': (\"\" + _vm.currentHeight),\n 'padding-left': (_vm.padding + \"px\"),\n 'padding-right': (_vm.padding + \"px\")\n })},[_vm._t(\"default\")],2)]),(_vm.navigationEnabled)?_c('div',[(_vm.isNavigationRequired)?_c('div',{staticClass:\"vue-carousel-navigation\"},[_c('button',{staticClass:\"vue-carousel-navigation-button vue-carousel-navigation-prev\",class:{ 'vue-carousel-navigation--disabled': !_vm.canAdvanceBackward },attrs:{\"type\":\"button\",\"aria-label\":\"Previous\",\"tabindex\":_vm.canAdvanceBackward ? 0 : -1},domProps:{\"innerHTML\":_vm._s(_vm.navigationPrevLabel)},on:{\"click\":function($event){$event.preventDefault();return _vm.advancePage('backward')}}}),_c('button',{staticClass:\"vue-carousel-navigation-button vue-carousel-navigation-next\",class:{ 'vue-carousel-navigation--disabled': !_vm.canAdvanceForward },attrs:{\"type\":\"button\",\"aria-label\":\"Next\",\"tabindex\":_vm.canAdvanceForward ? 0 : -1},domProps:{\"innerHTML\":_vm._s(_vm.navigationNextLabel)},on:{\"click\":function($event){$event.preventDefault();return _vm.advancePage()}}})]):_vm._e()]):_vm._e(),(_vm.paginationEnabled)?_c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.carousel.pageCount > 1),expression:\"carousel.pageCount > 1\"}],staticClass:\"vue-carousel-pagination\"},[_c('div',{staticClass:\"vue-carousel-dot-container\",attrs:{\"role\":\"tablist\"}},_vm._l((_vm.paginationCount),function(page,index){return _c('button',{key:(page + \"_\" + index),staticClass:\"vue-carousel-dot\",class:{ 'vue-carousel-dot--active': _vm.isCurrentDot(index) },attrs:{\"aria-hidden\":\"false\",\"role\":\"tab\",\"title\":_vm.getDotTitle(index),\"aria-label\":_vm.getDotTitle(index),\"aria-selected\":_vm.isCurrentDot(index) ? 'true' : 'false'},on:{\"click\":function($event){return _vm.goToPage(index)}}})}),0)]),_c('pagination',{on:{\"paginationclick\":function($event){return _vm.goToPage($event, 'pagination')}}})],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue-carousel-slide\",class:[{\n 'vue-carousel-slide-active': _vm.isActive,\n 'vue-carousel-slide-center': _vm.isCenter,\n 'vue-carousel-slide-adjustableHeight': _vm.isAdjustableHeight,\n },\n _vm.visiblePositionClass\n ],on:{\"dragstart\":function($event){$event.preventDefault();},\"touchend\":_vm.onSlideClick,\"mouseup\":_vm.onSlideClick}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n/*\r\n * Slide Component of cCarousel implementation take from https://ssense.github.io/vue-carousel/\r\n * Converted to Typescript components\r\n*/\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport ComponentID from '../../../mixins/ComponentID';\r\nimport Carousel from './Carousel.vue';\r\n\r\n@Component({\r\n mixins: [ComponentID],\r\n})\r\nexport default class Slide extends Vue {\r\n\r\n @Prop({default: ''})\r\n public title!: string;\r\n\r\n @Prop({})\r\n public index!: number;\r\n\r\n public width: number | null = null;\r\n\r\n get carousel(): Carousel {\r\n return this.$parent as Carousel;\r\n }\r\n\r\n get activeSlides(): string[] {\r\n const { currentPage, perPage, $children } = this.carousel;\r\n const activeSlides = [];\r\n const children = $children\r\n .filter((child) => {\r\n return (child.$el && child.$el.className.indexOf('vue-carousel-slide') >= 0);\r\n })\r\n .map((child) => child.ComponentID);\r\n let i = 0;\r\n while (i < perPage) {\r\n const child = children[currentPage * perPage + i];\r\n activeSlides.push(child);\r\n i++;\r\n }\r\n return activeSlides;\r\n }\r\n\r\n /**\r\n * `isActive` describes whether a slide is visible\r\n * @return {Boolean}\r\n */\r\n get isActive() {\r\n return this.activeSlides.indexOf(this.ComponentID) >= 0;\r\n }\r\n\r\n /**\r\n * `isCenter` describes whether a slide is in the center of all visible slides\r\n * if perPage is an even number, we quit\r\n * @return {Boolean}\r\n */\r\n get isCenter() {\r\n const { perPage } = this.carousel;\r\n if (perPage % 2 === 0 || !this.isActive) {\r\n return false;\r\n }\r\n return this.activeSlides.indexOf(this.ComponentID) === Math.floor(perPage / 2);\r\n }\r\n\r\n get visiblePosition() {\r\n return this.index - this.carousel.currentPage;\r\n }\r\n\r\n get visiblePositionClass() {\r\n if (this.carousel.slideCount >= this.carousel.perPage) {\r\n return `vue-carousel-visible-position-${this.visiblePosition}`;\r\n } else {\r\n return `slide-${this.index + 1}-of-${this.carousel.slideCount}`;\r\n }\r\n }\r\n\r\n /**\r\n * `isAdjustableHeight` describes if the carousel adjusts its height to the active slide(s)\r\n * @return {Boolean}\r\n */\r\n get isAdjustableHeight() {\r\n const { adjustableHeight } = this.carousel;\r\n return adjustableHeight;\r\n }\r\n\r\n private onSlideClick(e: Event) {\r\n const eventPosX =\r\n this.carousel.isTouch && e instanceof TouchEvent && e.changedTouches && e.changedTouches.length > 0\r\n ? e.changedTouches[0].clientX\r\n : (e as MouseEvent).clientX;\r\n const deltaX = this.carousel.dragStartX - eventPosX;\r\n if (this.carousel.minSwipeDistance === 0 || Math.abs(deltaX) < this.carousel.minSwipeDistance) {\r\n if (e.currentTarget && (e.currentTarget as any).dataset) {\r\n this.$emit('slideclick', Object.assign({}, (e.currentTarget as any).dataset));\r\n }\r\n }\r\n }\r\n}\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Slide.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Slide.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Slide.vue?vue&type=template&id=6dcfb8f7&\"\nimport script from \"./Slide.vue?vue&type=script&lang=ts&\"\nexport * from \"./Slide.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n/*\r\n * Carousel implementation take from https://ssense.github.io/vue-carousel/\r\n * Converted to Typescript components\r\n * Pagination, Navigation and Autoplay incorporated into main Carousel component from seperate components/mixin\r\n*/\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport * as utilities from '../../../utilities';\r\nimport Slide from './Slide.vue';\r\nenum transitionStartNames {\r\n 'onwebkittransitionstart' = 'webkitTransitionStart',\r\n 'onmoztransitionstart'= 'transitionstart',\r\n 'onotransitionstart'= 'oTransitionStart otransitionstart',\r\n 'ontransitionstart'= 'transitionstart',\r\n}\r\n\r\nenum transitionEndNames {\r\n 'onwebkittransitionend' = 'webkitTransitionEnd',\r\n 'onmoztransitionend' = 'transitionend',\r\n 'onotransitionend' = 'oTransitionEnd otransitionend',\r\n 'ontransitionend' = 'transitionend',\r\n}\r\n\r\nconst getTransitionStart = (): string | undefined => {\r\n for (const name in transitionStartNames) {\r\n if (name in window) {\r\n return (transitionStartNames as any)[name];\r\n }\r\n }\r\n};\r\n\r\nconst getTransitionEnd = (): string | undefined => {\r\n for (const name in transitionEndNames) {\r\n if (name in window) {\r\n return (transitionEndNames as any)[name];\r\n }\r\n }\r\n};\r\n\r\n@Component({\r\n components: { Slide },\r\n})\r\nexport default class Carousel extends Vue {\r\n\r\n public currentPage: number = 0;\r\n public dragOffset: number = 0;\r\n public dragStartY: number = 0;\r\n public dragStartX: number = 0;\r\n public isTouch: boolean = typeof window !== 'undefined' && 'ontouchstart' in window;\r\n\r\n /**\r\n * Minimum distance for the swipe to trigger\r\n * a slide advance\r\n */\r\n @Prop({default: 8})\r\n public minSwipeDistance!: number;\r\n /**\r\n * Adjust the height of the carousel for the current slide\r\n */\r\n @Prop({default: false})\r\n public adjustableHeight!: boolean;\r\n /**\r\n * Maximum number of slides displayed on each page\r\n */\r\n @Prop({default: 2})\r\n public perPage!: number;\r\n public slideCount: number = 0;\r\n private browserWidth: number = 0;\r\n private carouselWidth: number = 0;\r\n private dragging: boolean = false;\r\n private dragMomentum: number = 0;\r\n private offset: number = 0;\r\n private refreshRate: number = 16;\r\n private transitionstart: string | undefined = 'transitionstart';\r\n private transitionend: string | undefined = 'transitionend';\r\n private currentHeight: string | number = 'auto';\r\n private autoplayInterval: number | null = null;\r\n private mutationObserver: any = null;\r\n private dragStartTime: number = 0;\r\n /**\r\n * Slide transition easing for adjustableHeight\r\n * Any valid CSS transition easing accepted\r\n */\r\n @Prop({default: ''})\r\n private adjustableHeightEasing!: string;\r\n /**\r\n * Center images when the size is less than the container width\r\n */\r\n @Prop({default: false})\r\n private centerMode!: boolean;\r\n /**\r\n * Slide transition easing\r\n * Any valid CSS transition easing accepted\r\n */\r\n @Prop({default: 'ease'})\r\n private easing!: string ;\r\n /**\r\n * Flag to make the carousel loop around when it reaches the end\r\n */\r\n @Prop({default: false})\r\n private loop!: boolean;\r\n /**\r\n * Flag to toggle mouse dragging\r\n */\r\n @Prop({default: true})\r\n private mouseDrag!: boolean;\r\n /**\r\n * Flag to toggle touch dragging\r\n */\r\n @Prop({default: true})\r\n private touchDrag!: boolean;\r\n /**\r\n * Listen for an external navigation request using this prop.\r\n */\r\n @Prop({default: 0})\r\n private navigateTo!: number;\r\n /**\r\n * Amount of padding to apply around the label in pixels\r\n */\r\n @Prop({default: 8})\r\n private navigationClickTargetSize!: number;\r\n /**\r\n * Flag to render the navigation component\r\n * (next/prev buttons)\r\n */\r\n @Prop({default: false})\r\n private navigationEnabled!: boolean;\r\n /**\r\n * Text content of the navigation next button\r\n */\r\n @Prop({default: '<span class=\"icon-caret-right\" aria-hidden=\"true\"></span>Next'})\r\n private navigationNextLabel!: string;\r\n /**\r\n * Text content of the navigation prev button\r\n */\r\n @Prop({default: '<span class=\"icon-caret-left\" aria-hidden=\"true\"></span>Back'})\r\n private navigationPrevLabel!: string;\r\n /**\r\n * The fill color of the active pagination dot\r\n * Any valid CSS color is accepted\r\n */\r\n @Prop({default: '#000000'})\r\n private paginationActiveColor!: string;\r\n /**\r\n * The fill color of pagination dots\r\n * Any valid CSS color is accepted\r\n */\r\n @Prop({default: '#efefef'})\r\n private paginationColor!: string;\r\n /**\r\n * Flag to render pagination component\r\n */\r\n @Prop({default: false})\r\n private paginationEnabled!: boolean;\r\n /**\r\n * The padding inside each pagination dot\r\n * Pixel values are accepted\r\n */\r\n @Prop({default: 10})\r\n private paginationPadding!: number;\r\n /**\r\n * Configure the position for the pagination component.\r\n * The possible values are: 'bottom', 'top', 'bottom-overlay' and 'top-overlay'\r\n */\r\n @Prop({default: 'bottom'})\r\n private paginationPosition!: string;\r\n /**\r\n * The size of each pagination dot\r\n * Pixel values are accepted\r\n */\r\n @Prop({default: 10})\r\n private paginationSize!: number;\r\n\r\n /**\r\n * Configure the number of visible slides with a particular browser width.\r\n * This will be an array of arrays, ex. [[320, 2], [1199, 4]]\r\n * Formatted as [x, y] where x=browser width, and y=number of slides displayed.\r\n * ex. [1199, 4] means if (window <= 1199) then show 4 slides per page\r\n */\r\n @Prop({type: Array, default: () => [] })\r\n private perPageCustom!: number[][];\r\n /**\r\n * Resistance coefficient to dragging on the edge of the carousel\r\n * This dictates the effect of the pull as you move towards the boundaries\r\n */\r\n @Prop({default: 20})\r\n private resistanceCoef!: number;\r\n /**\r\n * Scroll per page, not per item\r\n */\r\n @Prop({default: true})\r\n private scrollPerPage!: boolean;\r\n /**\r\n * Space padding option adds left and right padding style (in pixels) onto vue-carousel-inner.\r\n */\r\n @Prop({default: 0})\r\n private spacePadding!: number;\r\n /**\r\n * Specify by how much should the space padding value be multiplied of, to re-arange the final slide padding.\r\n */\r\n @Prop({default: 0})\r\n private spacePaddingMaxOffsetFactor!: number;\r\n /**\r\n * Slide transition speed\r\n * Number of milliseconds accepted\r\n */\r\n @Prop({default: 500})\r\n private speed!: number;\r\n /**\r\n * Name (tag) of slide component\r\n * Overwrite when extending slide component\r\n */\r\n @Prop({default: 'Slide'})\r\n private tagName!: string;\r\n\r\n /**\r\n * Support for v-model functionality\r\n */\r\n @Prop({default: 0})\r\n private value!: number;\r\n\r\n /**\r\n * Flag to enable autoplay\r\n */\r\n @Prop({default: false})\r\n private autoplay!: boolean;\r\n\r\n /**\r\n * Time elapsed before advancing slide\r\n */\r\n @Prop({default: 2000})\r\n private autoplayTimeout!: number;\r\n\r\n /**\r\n * Flag to pause autoplay on hover\r\n */\r\n @Prop({default: true})\r\n private autoplayHoverPause!: boolean;\r\n\r\n /**\r\n * Autoplay direction. User can insert backward to make autoplay move from right to left\r\n */\r\n @Prop({default: 'forward'})\r\n private autoplayDirection!: string;\r\n\r\n @Watch('value')\r\n public onValueChanged(newVal: number) {\r\n if (newVal !== this.currentPage) {\r\n this.goToPage(newVal);\r\n this.renderMe();\r\n }\r\n }\r\n\r\n @Watch ('navigateTo', {immediate: true})\r\n // TODO find out what immediate: true does in a normal vue watcher, and how to do it typescriptily\r\n public onNavigateToChange(val: any) {\r\n // checking if val is an array, for arrays typeof returns object\r\n if (typeof val === 'object') {\r\n if (val[1] === false) {\r\n // following code is to disable animation\r\n this.dragging = true;\r\n // clear dragging after refresh rate\r\n setTimeout(() => {\r\n this.dragging = false;\r\n }, this.refreshRate);\r\n }\r\n this.$nextTick(() => {\r\n this.goToPage(val[0]);\r\n });\r\n } else {\r\n this.$nextTick(() => {\r\n this.goToPage(val);\r\n });\r\n }\r\n }\r\n\r\n @Watch ('currentPage')\r\n public onCurrentPageChanged(val: any, oldVal: any) {\r\n if (val !== oldVal) {\r\n this.$emit('pageChange', val);\r\n this.$emit('input', val);\r\n }\r\n }\r\n\r\n @Watch ('autoplay')\r\n public onAutoplay(val: any) {\r\n if (val === false) {\r\n this.pauseAutoplay();\r\n } else {\r\n this.restartAutoplay();\r\n }\r\n }\r\n\r\n /**\r\n * Given a viewport width, find the number of slides to display\r\n * @param {Number} width Current viewport width in pixels\r\n * @return {Number} Number of slides to display\r\n */\r\n get breakpointSlidesPerPage(): number {\r\n if (!this.perPageCustom) {\r\n return this.perPage;\r\n }\r\n const breakpointArray = this.perPageCustom;\r\n const width = this.browserWidth;\r\n const breakpoints = breakpointArray.sort((a, b) => (a[0] > b[0] ? -1 : 1));\r\n // Reduce the breakpoints to entries where the width is in range\r\n // The breakpoint arrays are formatted as [widthToMatch, numberOfSlides]\r\n const matches = breakpoints.filter((breakpoint) => width >= breakpoint[0]);\r\n // If there is a match, the result should return only\r\n // the slide count from the first matching breakpoint\r\n const match = matches[0] && matches[0][1];\r\n return match || this.perPage;\r\n }\r\n\r\n /**\r\n * @return {Boolean} Can the slider move forward?\r\n */\r\n get canAdvanceForward(): boolean {\r\n return this.loop || this.offset < this.maxOffset;\r\n }\r\n\r\n /**\r\n * @return {Boolean} Can the slider move backward?\r\n */\r\n get canAdvanceBackward(): boolean {\r\n return this.loop || this.currentPage > 0;\r\n }\r\n\r\n /**\r\n * Number of slides to display per page in the current context.\r\n * This is constant unless responsive perPage option is set.\r\n * @return {Number} The number of slides per page to display\r\n */\r\n get currentPerPage(): number {\r\n return !this.perPageCustom || this.$isServer ? this.perPage : this.breakpointSlidesPerPage;\r\n }\r\n\r\n /**\r\n * The horizontal distance the inner wrapper is offset while navigating.\r\n * @return {Number} Pixel value of offset to apply\r\n */\r\n get currentOffset(): number {\r\n if (this.isCenterModeEnabled) {\r\n return 0;\r\n } else {\r\n return (this.offset + this.dragOffset) * -1;\r\n }\r\n }\r\n\r\n get isHidden(): boolean {\r\n return this.carouselWidth <= 0;\r\n }\r\n\r\n /**\r\n * Maximum offset the carousel can slide\r\n * Considering the spacePadding\r\n * @return {Number}\r\n */\r\n get maxOffset(): number {\r\n const padding: number = this.spacePadding * this.spacePaddingMaxOffsetFactor;\r\n return Math.max(this.slideWidth * (this.slideCount - this.currentPerPage) - padding, 0);\r\n }\r\n\r\n /**\r\n * Calculate the number of pages of slides\r\n * @return {Number} Number of pages\r\n */\r\n get pageCount(): number {\r\n if (this.scrollPerPage) {\r\n return Math.ceil(this.slideCount / this.currentPerPage);\r\n }\r\n return this.slideCount - this.currentPerPage + 1;\r\n }\r\n\r\n /**\r\n * Calculate the width of each slide\r\n * @return {Number} Slide width\r\n */\r\n get slideWidth(): number {\r\n // when the carousel is hidden we get a carouselWidth of 0, which causes a world of pain\r\n // to avoid this we can just fall back to the browser width\r\n const containerWidth = this.carouselWidth || this.browserWidth;\r\n const width = containerWidth - this.spacePadding * 2;\r\n const perPage = this.currentPerPage;\r\n return width / perPage;\r\n }\r\n\r\n /**\r\n * @return {Boolean} Is navigation required?\r\n */\r\n get isNavigationRequired(): boolean {\r\n return this.slideCount <= this.currentPerPage ? false : true;\r\n }\r\n\r\n /**\r\n * @return {Boolean} Center images when have less than min currentPerPage value\r\n */\r\n get isCenterModeEnabled(): boolean {\r\n return this.centerMode && !this.isNavigationRequired ? true : false;\r\n }\r\n\r\n get transitionStyle(): string {\r\n const speed = `${this.speed / 1000}s`;\r\n const transtion = `${speed} ${this.easing} transform`;\r\n if (this.adjustableHeight) {\r\n return `${transtion}, height ${speed} ${this.adjustableHeightEasing || this.easing}`;\r\n }\r\n return transtion;\r\n }\r\n\r\n get padding(): number | boolean {\r\n const padding = this.spacePadding;\r\n return padding > 0 ? padding : false;\r\n }\r\n\r\n // use `provide` to avoid `Slide` being nested with other components\r\n public provide() {\r\n return { carousel: this };\r\n }\r\n\r\n public beforeUpdate(): void {\r\n this.computeCarouselWidth();\r\n }\r\n\r\n\r\n public mounted() {\r\n const debounceFunction: (e: Event) => void = utilities.debounce(this.onResize, this.refreshRate);\r\n window.addEventListener('resize', debounceFunction);\r\n // setup the start event only if touch device or mousedrag activated\r\n if ((this.isTouch && this.touchDrag) || this.mouseDrag) {\r\n const wrapperEl: HTMLElement = this.$refs.VueCarouselWrapper as HTMLElement;\r\n wrapperEl.addEventListener(this.isTouch ? 'touchstart' : 'mousedown', this.onStart);\r\n }\r\n this.attachMutationObserver();\r\n this.computeCarouselWidth();\r\n this.computeCarouselHeight();\r\n this.transitionstart = getTransitionStart();\r\n const innerEl: HTMLElement = this.$refs.VueCarouselInner as HTMLElement;\r\n if (this.transitionstart) {\r\n innerEl.addEventListener(this.transitionstart, this.handleTransitionStart);\r\n }\r\n this.transitionend = getTransitionEnd();\r\n if (this.transitionend) {\r\n innerEl.addEventListener(this.transitionend, this.handleTransitionEnd);\r\n }\r\n this.$emit('mounted');\r\n // when autoplay direction is backward start from the last slide\r\n if (this.autoplayDirection === 'backward') {\r\n this.goToLastSlide();\r\n }\r\n if (this.autoplay && this.autoplayHoverPause) {\r\n this.$el.addEventListener('mouseenter', this.pauseAutoplay);\r\n this.$el.addEventListener('mouseleave', this.startAutoplay);\r\n }\r\n }\r\n\r\n public beforeDestroy() {\r\n this.detachMutationObserver();\r\n window.removeEventListener('resize', this.getBrowserWidth);\r\n const innerEl: HTMLElement = this.$refs.VueCarouselInner as HTMLElement;\r\n const wrapperEl: HTMLElement = this.$refs.VueCarouselWrapper as HTMLElement;\r\n if (this.transitionstart) {\r\n innerEl.removeEventListener(this.transitionstart, this.handleTransitionStart);\r\n }\r\n if (this.transitionend) {\r\n innerEl.removeEventListener(this.transitionend, this.handleTransitionEnd);\r\n }\r\n wrapperEl.removeEventListener(this.isTouch ? 'touchstart' : 'mousedown', this.onStart);\r\n if (this.autoplay && this.autoplayHoverPause) {\r\n this.$el.removeEventListener('mouseenter', this.pauseAutoplay);\r\n this.$el.removeEventListener('mouseleave', this.startAutoplay);\r\n }\r\n }\r\n\r\n public renderMe() {\r\n // add extra slides depending on the momemtum speed\r\n const bottomBounds: number = Math.min(Math.round(this.dragMomentum), this.currentPerPage - 1);\r\n this.offset += Math.max(-this.currentPerPage + 1, bottomBounds) * this.slideWidth;\r\n // & snap the new offset on a slide or page if scrollPerPage\r\n const width = this.scrollPerPage ? this.slideWidth * this.currentPerPage : this.slideWidth;\r\n const fullPageWidth = this.slideWidth * this.currentPerPage;\r\n const fullPageCount = Math.floor(this.slideCount / this.currentPerPage);\r\n // lock offset to either the nearest page, or to the last slide\r\n const lastFullPageOffset = fullPageWidth * (fullPageCount - 1);\r\n const remainderOffset = lastFullPageOffset + this.slideWidth * (this.slideCount % this.currentPerPage);\r\n if (this.offset > (lastFullPageOffset + remainderOffset) / 2) {\r\n this.offset = remainderOffset;\r\n } else {\r\n this.offset = width * Math.round(this.offset / width);\r\n }\r\n // clamp the offset between 0 -> maxOffset\r\n this.offset = Math.max(0, Math.min(this.offset, this.maxOffset));\r\n // update the current page\r\n if (this.scrollPerPage) {\r\n this.currentPage = Math.round(this.offset / this.slideWidth / this.currentPerPage);\r\n } else {\r\n this.currentPage = Math.round(this.offset / this.slideWidth);\r\n }\r\n }\r\n\r\n /**\r\n * @return {Number} The index of the next page\r\n */\r\n private getNextPage(): number {\r\n if (this.currentPage < this.pageCount - 1) {\r\n return this.currentPage + 1;\r\n }\r\n return this.loop ? 0 : this.currentPage;\r\n }\r\n\r\n /**\r\n * @return {Number} The index of the previous page\r\n */\r\n private getPreviousPage(): number {\r\n if (this.currentPage > 0) {\r\n return this.currentPage - 1;\r\n }\r\n return this.loop ? this.pageCount - 1 : this.currentPage;\r\n }\r\n\r\n /**\r\n * Increase/decrease the current page value\r\n * @param {String} direction (Optional) The direction to advance\r\n */\r\n private advancePage(direction?: string): void {\r\n if (direction && direction === 'backward' && this.canAdvanceBackward) {\r\n this.goToPage(this.getPreviousPage(), 'navigation');\r\n } else if (\r\n (!direction || (direction && direction !== 'backward')) &&\r\n this.canAdvanceForward\r\n ) {\r\n this.goToPage(this.getNextPage(), 'navigation');\r\n }\r\n }\r\n\r\n private goToLastSlide() {\r\n // following code is to disable animation\r\n this.dragging = true;\r\n // clear dragging after refresh rate\r\n setTimeout(() => {\r\n this.dragging = false;\r\n }, this.refreshRate);\r\n this.$nextTick(() => {\r\n this.goToPage(this.pageCount);\r\n });\r\n }\r\n\r\n /**\r\n * A mutation observer is used to detect changes to the containing node\r\n * in order to keep the magnet container in sync with the height its reference node.\r\n */\r\n private attachMutationObserver() {\r\n let MutationObserver: any;\r\n const VendorMutationObservers = ['MutationObserver', 'WebKitMutationObserver', 'MozMutationObserver'];\r\n const w: any = window as any;\r\n VendorMutationObservers.forEach((constructorName: string) => {\r\n if (w[constructorName]) {\r\n MutationObserver = w[constructorName];\r\n }\r\n });\r\n if (MutationObserver) {\r\n let config = {\r\n attributes: true,\r\n data: true,\r\n childList: false,\r\n subtree: false,\r\n characterData: false,\r\n };\r\n if (this.adjustableHeight) {\r\n config = {\r\n ...config,\r\n childList: true,\r\n subtree: true,\r\n characterData: true,\r\n };\r\n }\r\n this.mutationObserver = new MutationObserver(() => {\r\n this.$nextTick(() => {\r\n this.computeCarouselWidth();\r\n this.computeCarouselHeight();\r\n });\r\n });\r\n const mutObs = this.mutationObserver;\r\n if (this.$parent.$el) {\r\n const carouselInnerElements = Array.from(this.$el.getElementsByClassName('vue-carousel-inner'));\r\n carouselInnerElements.forEach((el: Element) => {\r\n mutObs.observe(el, config);\r\n });\r\n }\r\n }\r\n }\r\n\r\n private handleNavigation(direction: any) {\r\n this.advancePage(direction);\r\n }\r\n\r\n /**\r\n * Stop listening to mutation changes\r\n */\r\n private detachMutationObserver() {\r\n if (this.mutationObserver) {\r\n this.mutationObserver.disconnect();\r\n }\r\n }\r\n\r\n /**\r\n * Get the current browser viewport width\r\n * @return {Number} Browser's width in pixels\r\n */\r\n private getBrowserWidth() {\r\n this.browserWidth = window.innerWidth;\r\n return this.browserWidth;\r\n }\r\n\r\n /**\r\n * Get the width of the carousel DOM element\r\n * @return {Number} Width of the carousel in pixels\r\n */\r\n private getCarouselWidth(): number {\r\n const carouselInnerElements = Array.from(this.$el.getElementsByClassName('vue-carousel-inner'));\r\n let cWidth: number = 0;\r\n carouselInnerElements.forEach((el: Element) => {\r\n if (el.clientWidth > 0) {\r\n cWidth += el.clientWidth || 0;\r\n }\r\n });\r\n this.carouselWidth = cWidth;\r\n return this.carouselWidth;\r\n }\r\n\r\n /**\r\n * Get the maximum height of the carousel active slides\r\n * @return {String} The carousel height\r\n */\r\n private getCarouselHeight(): number | string {\r\n if (!this.adjustableHeight) {\r\n return 'auto';\r\n }\r\n const slideOffset = this.currentPerPage * (this.currentPage + 1) - 1;\r\n const maxSlideHeight = [...Array(this.currentPerPage)]\r\n .map((_, idx) => this.getSlide(slideOffset + idx))\r\n .reduce((clientHeight, slide) => Math.max(clientHeight, (slide && slide.$el.clientHeight) || 0), 0);\r\n this.currentHeight = maxSlideHeight === 0 ? 'auto' : `${maxSlideHeight}px`;\r\n return this.currentHeight;\r\n }\r\n\r\n /**\r\n * Filter slot contents to slide instances and return length\r\n * @return {Number} The number of slides\r\n */\r\n private getSlideCount(): void {\r\n this.slideCount =\r\n (this.$slots &&\r\n this.$slots.default &&\r\n this.$slots.default.filter((slot) => {\r\n return slot.tag && slot.tag.match(`^vue-component-\\\\d+-${this.tagName}$`) !== null;\r\n })\r\n .length) || 0;\r\n }\r\n\r\n /**\r\n * Gets the slide at the specified index\r\n * @return {Object} The slide at the specified index\r\n */\r\n private getSlide(index: number): any {\r\n const slides = this.$children.filter(\r\n (child: any) => {\r\n return child.$vnode.tag.match(`^vue-component-\\\\d+-${this.tagName}$`) !== null;\r\n });\r\n return slides[index];\r\n }\r\n\r\n /**\r\n * Set the current page to a specific value\r\n * This function will only apply the change if the value is within the carousel bounds\r\n * @param {Number} page The value of the new page number\r\n */\r\n private goToPage(page: number, source?: string) {\r\n if (page >= 0 && page <= this.pageCount) {\r\n if (this.scrollPerPage) {\r\n this.offset = Math.min(this.slideWidth * this.currentPerPage * page, this.maxOffset);\r\n } else {\r\n this.offset = Math.min(this.slideWidth * page, this.maxOffset);\r\n }\r\n // restart autoplay if specified\r\n if (this.autoplay && !this.autoplayHoverPause) {\r\n this.restartAutoplay();\r\n }\r\n // update the current page\r\n this.currentPage = page;\r\n }\r\n }\r\n\r\n /**\r\n * Trigger actions when mouse is pressed\r\n * @param {Object} e The event object\r\n */\r\n private onStart(e: MouseEvent | TouchEvent) {\r\n // alert('start');\r\n document.addEventListener(this.isTouch ? 'touchend' : 'mouseup', this.onEnd, true);\r\n document.addEventListener(this.isTouch ? 'touchmove' : 'mousemove', this.onDrag, true);\r\n this.dragStartTime = e.timeStamp;\r\n this.dragging = true;\r\n if (this.isTouch && e instanceof TouchEvent) {\r\n this.dragStartX = e.touches[0].clientX;\r\n this.dragStartY = e.touches[0].clientY;\r\n } else {\r\n this.dragStartX = (e as MouseEvent).clientX;\r\n this.dragStartY = (e as MouseEvent).clientY;\r\n }\r\n }\r\n\r\n /**\r\n * Trigger actions when mouse is released\r\n * @param {Object} e The event object\r\n */\r\n private onEnd(e: MouseEvent | TouchEvent) {\r\n // restart autoplay if specified\r\n if (this.autoplay && !this.autoplayHoverPause) {\r\n this.restartAutoplay();\r\n }\r\n // compute the momemtum speed\r\n const eventPosX = this.isTouch && e instanceof TouchEvent ? e.changedTouches[0].clientX : (e as MouseEvent).clientX;\r\n const deltaX = this.dragStartX - eventPosX;\r\n this.dragMomentum = deltaX / (e.timeStamp - this.dragStartTime);\r\n // take care of the minSwipteDistance prop, if not 0 and delta is bigger than delta\r\n if (\r\n this.minSwipeDistance !== 0 &&\r\n Math.abs(deltaX) >= this.minSwipeDistance\r\n ) {\r\n const width = this.scrollPerPage\r\n ? this.slideWidth * this.currentPerPage\r\n : this.slideWidth;\r\n this.dragOffset = this.dragOffset + Math.sign(deltaX) * (width / 2);\r\n }\r\n this.offset += this.dragOffset;\r\n this.dragOffset = 0;\r\n this.dragging = false;\r\n this.renderMe();\r\n // clear events listeners\r\n document.removeEventListener(this.isTouch ? 'touchend' : 'mouseup', this.onEnd, true);\r\n document.removeEventListener(this.isTouch ? 'touchmove' : 'mousemove', this.onDrag, true);\r\n }\r\n\r\n /**\r\n * Trigger actions when mouse is pressed and then moved (mouse drag)\r\n * @param {Object} e The event object\r\n */\r\n private onDrag(e: MouseEvent | TouchEvent) {\r\n const eventPosX = this.isTouch && e instanceof TouchEvent ? e.touches[0].clientX : (e as MouseEvent).clientX;\r\n const eventPosY = this.isTouch && e instanceof TouchEvent ? e.touches[0].clientY : (e as MouseEvent).clientY;\r\n const newOffsetX = this.dragStartX - eventPosX;\r\n const newOffsetY = this.dragStartY - eventPosY;\r\n // if it is a touch device, check if we are below the min swipe threshold\r\n // (if user scroll the page on the component)\r\n if (this.isTouch && Math.abs(newOffsetX) < Math.abs(newOffsetY)) {\r\n return;\r\n }\r\n e.stopImmediatePropagation();\r\n this.dragOffset = newOffsetX;\r\n const nextOffset = this.offset + this.dragOffset;\r\n if (nextOffset < 0) {\r\n this.dragOffset = -Math.sqrt(-this.resistanceCoef * this.dragOffset);\r\n } else if (nextOffset > this.maxOffset) {\r\n this.dragOffset = Math.sqrt(this.resistanceCoef * this.dragOffset);\r\n }\r\n }\r\n\r\n private onResize(e: Event) {\r\n this.computeCarouselWidth();\r\n this.computeCarouselHeight();\r\n this.dragging = true; // force a dragging to disable animation\r\n this.renderMe();\r\n // clear dragging after refresh rate\r\n setTimeout(() => {\r\n this.dragging = false;\r\n }, this.refreshRate);\r\n }\r\n\r\n /**\r\n * Re-compute the width of the carousel and its slides\r\n */\r\n private computeCarouselWidth() {\r\n this.getSlideCount();\r\n this.getBrowserWidth();\r\n this.getCarouselWidth();\r\n this.setCurrentPageInBounds();\r\n }\r\n /**\r\n * Re-compute the height of the carousel and its slides\r\n */\r\n private computeCarouselHeight() {\r\n this.getCarouselHeight();\r\n }\r\n /**\r\n * When the current page exceeds the carousel bounds, reset it to the maximum allowed\r\n */\r\n private setCurrentPageInBounds() {\r\n if (!this.canAdvanceForward && this.scrollPerPage) {\r\n const setPage = this.pageCount - 1;\r\n this.currentPage = setPage >= 0 ? setPage : 0;\r\n this.offset = Math.max(0, Math.min(this.offset, this.maxOffset));\r\n }\r\n }\r\n private handleTransitionStart() {\r\n this.$emit('transitionStart');\r\n }\r\n private handleTransitionEnd() {\r\n this.$emit('transitionEnd');\r\n }\r\n\r\n /**\r\n * Autoplay functions incorporated from mixin\r\n */\r\n private pauseAutoplay() {\r\n if (this.autoplayInterval) {\r\n clearInterval(this.autoplayInterval);\r\n this.autoplayInterval = null;\r\n }\r\n }\r\n private startAutoplay() {\r\n if (this.autoplay) {\r\n this.autoplayInterval = setInterval(this.autoplayAdvancePage, this.autoplayTimeout);\r\n }\r\n }\r\n private restartAutoplay() {\r\n this.pauseAutoplay();\r\n this.startAutoplay();\r\n }\r\n private autoplayAdvancePage() {\r\n this.advancePage(this.autoplayDirection);\r\n }\r\n\r\n /**\r\n * Methods from Pagination\r\n */\r\n /**\r\n * Check on current dot\r\n * @param {number} index - dot index\r\n * @return {boolean}\r\n */\r\n private isCurrentDot(index: number) {\r\n return index === this.currentPage;\r\n }\r\n /**\r\n * Generate dot title\r\n * @param {number} index - dot index\r\n * @return {string}\r\n */\r\n private getDotTitle(index: number) {\r\n return (this.$children[index].$el as HTMLElement).title\r\n ? (this.$children[index].$el as HTMLElement).title\r\n : `Item ${index}`;\r\n }\r\n\r\n}\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Carousel.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Carousel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Carousel.vue?vue&type=template&id=6f456481&\"\nimport script from \"./Carousel.vue?vue&type=script&lang=ts&\"\nexport * from \"./Carousel.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ToolTip',{ref:\"tooltipElement\",attrs:{\"carouselMoving\":_vm.carouselMoving,\"tooltipOptions\":{showIcon: false, className: 'vue-item-tooltip', placement: _vm.tooltipPlacement}},on:{\"tooltip-status\":_vm.toolTipStatusChange}},[_c('div',{staticClass:\"carousel-item-wrapper item-tooltip-trigger\",attrs:{\"slot\":\"icon\"},slot:\"icon\"},[_c('div',{staticClass:\"item-image\"},[_c('img',{attrs:{\"alt\":_vm.item.Title,\"src\":_vm.item.Image}}),(_vm.item.Overlay && _vm.item.Overlay.ID > 0)?_c('Overlay',{attrs:{\"info\":_vm.item.Overlay}}):_vm._e()],1),(_vm.item.Quantity > 1)?_c('div',{staticClass:\"item-quantity\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkoutorderitem-option-label-qty'),expression:\"'checkoutorderitem-option-label-qty'\"}],staticClass:\"option-label\"}),_vm._v(_vm._s(_vm.item.Quantity))]):_vm._e(),(_vm.item.ColourID > 0)?_c('div',{staticClass:\"item-colour\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkoutorderitem-option-label-colour'),expression:\"'checkoutorderitem-option-label-colour'\"}],staticClass:\"option-label\"}),_vm._v(_vm._s(_vm.item.Colour))]):_vm._e(),(_vm.item.SizeID > 0)?_c('div',{staticClass:\"item-size\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkoutorderitem-option-label-size'),expression:\"'checkoutorderitem-option-label-size'\"}],staticClass:\"option-label\"}),_vm._v(_vm._s(_vm.item.Size))]):_vm._e(),_c('div',{staticClass:\"pricing\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.sellingPrice}}),(_vm.originalPrice)?_c('PriceDisplay',{attrs:{\"price\":_vm.originalPrice}}):_vm._e()],1),(_vm.item.PersonalisationInfo)?_c('div',{staticClass:\"personalised-details\"},[_c('PersonalisationString',{attrs:{\"info\":_vm.item.PersonalisationInfo,\"showColour\":true}})],1):_vm._e()]),_c('div',{staticClass:\"item-tooltip\",attrs:{\"slot\":\"content\"},slot:\"content\"},[_c('span',{staticClass:\"item-title\"},[_vm._v(_vm._s(_vm.item.Title))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { store } from '../../store';\nimport { IOrderItem, IProduct, IProductItem } from '../../interfaces';\nimport PriceDisplay from '../pricing/PriceDisplay.vue';\nimport Price from '../pricing/Price';\nimport PersonalisationString from './PersonalisationString.vue';\nimport ToolTip from '../ui/ToolTip.vue';\nimport Slide from '../ui/carousel/Slide.vue';\nimport Carousel from '../ui/carousel/Carousel.vue';\nimport Overlay from './Overlay.vue';\n\n@Component({\n components: {\n PriceDisplay,\n PersonalisationString,\n ToolTip,\n Overlay,\n },\n})\nexport default class CheckoutOrderItem extends Vue {\n @Prop() protected item!: IOrderItem;\n @Prop({default: false}) private carouselMoving!: boolean;\n\n // Get the current price of the item (taking into account product discounts)\n get sellingPrice(): Price {\n if (this.item.UnitPreviousPrice !== null) {\n return new Price(this.item.LineSubtotal, Price.Types.NOW);\n } else {\n return new Price(this.item.LineSubtotal, Price.Types.STANDARD);\n }\n }\n\n // Get the previous price of the item, if one exists\n get originalPrice(): Price | null {\n if (this.item.UnitPreviousPrice !== null && this.item.LinePreviousSubtotal !== null) {\n return new Price(this.item.LinePreviousSubtotal, Price.Types.WAS);\n } else {\n return null;\n }\n }\n\n get tooltipPlacement() {\n const parent = this.$parent;\n let slide: boolean | Slide = false;\n let carousel: boolean | Carousel = false;\n if (parent && parent.$options.name === 'Slide') {\n slide = parent as Slide;\n carousel = parent.$parent as Carousel;\n }\n\n if (slide && carousel) {\n if (carousel.slideCount > carousel.perPage - 1) {\n switch (slide.index - carousel.currentPage) {\n case 0:\n return 'top-left';\n break;\n case carousel.perPage - 1:\n return 'top-right';\n break;\n default:\n return 'top';\n break;\n }\n }\n }\n return 'top';\n }\n\n private toolTipStatusChange(status: boolean) {\n this.$emit('tooltip-status', status);\n }\n\n @Watch('carouselMoving')\n private setCarouselStatus(val: boolean) {\n if (val) {\n const toolTipEl = this.$refs.tooltipElement as ToolTip;\n toolTipEl.closeTooltip();\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutOrderItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CheckoutOrderItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CheckoutOrderItem.vue?vue&type=template&id=5a3738b6&\"\nimport script from \"./CheckoutOrderItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./CheckoutOrderItem.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { IOrder, IOrderIncentive, IWebsiteSettings, IOrderItem,\r\n IKeyValuePair, PaymentTypes } from '../interfaces';\r\nimport Price from './pricing/Price';\r\nimport PriceDisplay from './pricing/PriceDisplay.vue';\r\nimport ContentManagement from './ContentManagement.vue';\r\nimport Carousel from './ui/carousel/Carousel.vue';\r\nimport Slide from './ui/carousel/Slide.vue';\r\nimport CheckoutOrderItem from './items/CheckoutOrderItem.vue';\r\nimport Modal from './ui/Modal';\r\nimport ModalContent from './ui/ModalContent.vue';\r\nimport * as utilities from '../utilities';\r\n\r\n@Component({\r\n components: {\r\n PriceDisplay,\r\n ContentManagement,\r\n Carousel,\r\n Slide,\r\n CheckoutOrderItem,\r\n ModalContent,\r\n },\r\n})\r\n\r\nexport default class OrderSummary extends Vue {\r\n @Prop({default: false}) private CanContinue!: boolean;\r\n @Prop({default: true}) private giftingValid!: boolean;\r\n\r\n private retryingPlaceOrder: boolean = store.getters.WebsiteSettings.RetryingPlaceOrder;\r\n\r\n private afterpayModalConfig: Modal = new Modal(true, true, 'popup', 'afterpay-modal');\r\n\r\n private tooltipOpen: boolean = false;\r\n\r\n private carouselMoving: boolean = false;\r\n\r\n private placeOrder() {\r\n this.$emit('place-order');\r\n }\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n // This is the filteredOrderItems to display in Order summary\r\n // It filters 'Gift Wrapping' item\r\n get filteredOrderItems(): IOrderItem[] {\r\n return this.order.Items.filter((item: IOrderItem) => item.IsGiftItem === false);\r\n }\r\n\r\n get currentpage(): string {\r\n return store.getters.Page;\r\n }\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n // Returns the Order Items count, defaults to 0.\r\n get itemCount(): number {\r\n if (this.order && this.order.Items) {\r\n let count: number = 0;\r\n this.order.Items.forEach((item: IOrderItem) => {\r\n if ( !item.IsGiftItem ) { // Filter out gift wrapping item\r\n count += item.Quantity;\r\n }\r\n });\r\n return count;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n get ifOrderHasGiftWrapItem() {\r\n if (this.order && this.order.Items) {\r\n // tslint:disable-next-line:max-line-length\r\n return ((this.order.Items.filter((item: IOrderItem) => item.IsGiftItem === true).length) > 0) ? true : false;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n get giftWrappingPrice() {\r\n if (this.ifOrderHasGiftWrapItem) {\r\n return this.order.Items.filter((item: IOrderItem) => item.IsGiftItem === true)[0].LineSubtotal;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n // Display the Total text based on the EshopUSer and Shipping Method selected.\r\n get totalDisplayText(): string {\r\n // as this text may be site specific we need to check the glossary for overrides\r\n let glossaryKey: string = 'ordersummary-total-before-delivery';\r\n let defaultValue: string = 'Total <span role=\"text\" class=\"total-delivery\">before delivery</span>';\r\n\r\n if (this.WebsiteSettings.IsEshopUser) {\r\n defaultValue = 'Estimated Total';\r\n glossaryKey = 'ordersummary-total-eshop';\r\n // tslint:disable-next-line:max-line-length\r\n } else if (this.currentpage === 'checkout' && (this.order.ShippingMethod > 0 || this.order.PickupStore)) {\r\n defaultValue = 'Total';\r\n glossaryKey = 'ordersummary-total-with-delivery';\r\n } else if (this.currentpage === 'complete') {\r\n defaultValue = 'Total';\r\n glossaryKey = 'ordersummary-total-cart-complete';\r\n }\r\n return store.getters.getGlossaryEntryByKey(glossaryKey) || defaultValue;\r\n }\r\n\r\n // Returns the Delivery text to be displayed, when a freight option is selected.\r\n // Todo - Santosh - Write Delivery Method Logic.\r\n get deliveryText(): string {\r\n let attr: string;\r\n // @ts-ignore: Surpress the implicit any error\r\n const DeliveryDate: any = this.order.Attributes['Delivery Date'];\r\n if (DeliveryDate !== undefined) {\r\n attr = DeliveryDate;\r\n } else {\r\n attr = '';\r\n }\r\n let deliverytext: string = '';\r\n if (this.order.ShippingMethod === this.WebsiteSettings.SameDayfpID && attr.length > 0) {\r\n if (attr === 'NBD') {\r\n deliverytext += 'Delivered by 5pm' + '\\n' + ' on ' + attr;\r\n } else {\r\n deliverytext += 'Same Day Delivery: ' + '\\n' + 'by 5pm on ' + attr;\r\n }\r\n } else if (this.order.ShippingMethod === this.WebsiteSettings.SameDayfpID && this.countryXX === 'au') {\r\n deliverytext += 'Same Day Delivery: ' + '\\n' + 'by 5pm on ' + attr;\r\n } else {\r\n deliverytext = 'Standard Delivery: ';\r\n if (this.standardDeliveryText !== '') {\r\n deliverytext += '\\n' + this.standardDeliveryText;\r\n }\r\n }\r\n return deliverytext;\r\n }\r\n\r\n // Returns the Number of days for Standard Delivery Text.\r\n get standardDeliveryText(): string {\r\n if (this.Snippets.hasOwnProperty('Order Summary - Standard Delivery Timeframe')) {\r\n const snippet: any = this.Snippets['Order Summary - Standard Delivery Timeframe' as any];\r\n return utilities.renderHTML(snippet.body);\r\n } else {\r\n return '';\r\n }\r\n }\r\n\r\n get countryXX(): string {\r\n return this.WebsiteSettings.Country;\r\n }\r\n\r\n get freightCost(): number {\r\n if (this.order.ShippingMethod > 0 && this.order.FreightPrice > 0) {\r\n return this.order.FreightPrice;\r\n }\r\n return 0;\r\n }\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get editBag(): string {\r\n return this.WebsiteSettings.BaseUrl + 'cart';\r\n }\r\n\r\n get getAction(): string {\r\n if (this.WebsiteSettings.IsEshopUser) {\r\n return this.WebsiteSettings.BaseUrl + 'CR_eShopWorld.ashx?action=preorder&Z=c';\r\n } else {\r\n // TODO: Change this to the basket checkout link, once checkout is ready\r\n return this.WebsiteSettings.BaseUrl + 'checkout';\r\n }\r\n }\r\n\r\n get appliedPromotions(): IOrderIncentive[] {\r\n const incentives: IOrderIncentive[] = this.order.Incentives;\r\n if (incentives) {\r\n const f: ArraySortFunction = utilities.sortByMultipleKey([\r\n ['IncentiveCode', 'asc', 'true'],\r\n ['UniqueCoupon', 'asc', 'true'],\r\n ['IncentiveType', 'asc', ''],\r\n ['DisplayName', 'asc', '']]);\r\n return incentives.filter((eachObj: IOrderIncentive) => {\r\n return eachObj.Selected === true && (eachObj.HeadKey !== '' || eachObj.LoyaltyTier === true);\r\n }).sort(f);\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n get appliedIncentives(): IOrderIncentive[] {\r\n const incentives: IOrderIncentive[] = this.order.Incentives;\r\n if (incentives) {\r\n const f: ArraySortFunction = utilities.sortByMultipleKey([\r\n ['IncentiveCode', 'asc', 'true'],\r\n ['UniqueCoupon', 'asc', 'true'],\r\n ['IncentiveType', 'asc', ''],\r\n ['DisplayName', 'asc', '']]);\r\n return incentives.filter((eachObj: IOrderIncentive) => {\r\n return eachObj.Selected === true && (eachObj.HeadKey === '' && eachObj.LoyaltyTier === false);\r\n }).sort(f);\r\n } else {\r\n return [];\r\n }\r\n }\r\n\r\n get LoggedIn(): boolean {\r\n if (this.order.CustomerID > 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n get subTotal(): Price {\r\n if ( this.ifOrderHasGiftWrapItem && this.giftWrappingPrice > 0 ) {\r\n return new Price(this.order.Subtotal - this.giftWrappingPrice, Price.Types.SUBTOTAL);\r\n } else {\r\n return new Price(this.order.Subtotal, Price.Types.SUBTOTAL);\r\n }\r\n }\r\n\r\n get freightPrice(): Price {\r\n return new Price(this.freightCost, Price.Types.STANDARD);\r\n }\r\n\r\n get total(): Price {\r\n let orderTotal: number = 0;\r\n if (this.currentpage === 'cart') {\r\n orderTotal = this.order.Total - this.order.FreightPrice;\r\n return new Price(orderTotal, Price.Types.TOTAL);\r\n } else {\r\n let giftCardTotal = 0;\r\n if (this.order.GiftCards && this.order.GiftCards.length > 0) {\r\n giftCardTotal = this.order.GiftCards.reduce((cardtotal, card) => cardtotal + card.ValueRequested, 0);\r\n }\r\n orderTotal = this.order.Total - giftCardTotal;\r\n return new Price(orderTotal, Price.Types.TOTAL);\r\n }\r\n }\r\n\r\n get paymentMethodName() {\r\n if (this.order.PaymentMethod === PaymentTypes.CreditCard\r\n || this.order.PaymentMethod === PaymentTypes.CreditCard_Giftcard) {\r\n return 'Credit/Debit Card';\r\n } else if (this.order.PaymentMethod === PaymentTypes.PaypalSale\r\n || this.order.PaymentMethod === PaymentTypes.Paypal) {\r\n return 'PayPal';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Afterpay) {\r\n return 'Afterpay';\r\n } else if (this.order.PaymentMethod === PaymentTypes.ApplePay) {\r\n return 'Apple Pay';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Alipay) {\r\n return 'AliPay';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Giftcard) {\r\n return 'Gift Card';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Reward) {\r\n return 'Reward Points';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Klarna) {\r\n return 'Klarna';\r\n }\r\n }\r\n\r\n get paymentMethodNameClass() {\r\n let addClass: string = '';\r\n if (this.order.PaymentMethod === PaymentTypes.Giftcard) {\r\n addClass = 'gift-card-method';\r\n }\r\n if (this.order.PaymentMethod === PaymentTypes.Reward) {\r\n addClass = 'reward-method';\r\n }\r\n return addClass;\r\n }\r\n\r\n get paymentMethodImage() {\r\n if (this.order.PaymentMethod === PaymentTypes.CreditCard\r\n || this.order.PaymentMethod === PaymentTypes.CreditCard_Giftcard) {\r\n if (this.order.CreditCardUsed === null) {\r\n return '/assets/pay-creditcard.png';\r\n } else {\r\n return '/Shared_Assets/basket/payment/' + this.order.CreditCardUsed.Type.replace(/ /g, '') + '.svg';\r\n }\r\n } else if (this.order.PaymentMethod === PaymentTypes.PaypalSale\r\n || this.order.PaymentMethod === PaymentTypes.Paypal) {\r\n return '/Shared_Assets/basket/payment/paypal.svg';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Afterpay) {\r\n return '/Shared_Assets/basket/payment/afterpay-blackonmint.svg';\r\n } else if (this.order.PaymentMethod === PaymentTypes.ApplePay) {\r\n return '/Shared_Assets/basket/payment/applepay.svg';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Alipay) {\r\n return '/Shared_Assets/basket/payment/alipay.svg';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Giftcard) {\r\n return '/Shared_Assets/basket/payment/giftcard.svg';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Reward) {\r\n return '/Shared_Assets/basket/payment/reward.svg';\r\n } else if (this.order.PaymentMethod === PaymentTypes.Klarna) {\r\n return '/Shared_Assets/basket/payment/klarna.svg';\r\n }\r\n }\r\n\r\n get hasCreditCard() {\r\n if (this.order.PaymentMethod === PaymentTypes.CreditCard\r\n || this.order.PaymentMethod === PaymentTypes.CreditCard_Giftcard) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n private get showAfterpay(): boolean {\r\n if (!this.WebsiteSettings.IsAfterPayEnabled) {\r\n return false;\r\n }\r\n if (this.order.GiftCards && this.order.GiftCards.length > 0) {\r\n return false;\r\n }\r\n if (this.total.Amount === 0) {\r\n return false;\r\n }\r\n return this.total.Amount >= this.WebsiteSettings.AfterPayMinAmount\r\n && this.total.Amount <= this.WebsiteSettings.AfterPayMaxAmount;\r\n }\r\n // Update afterpay installment amount under TOTAL TO PAY section on cart pages.\r\n private afterPayUpdate(): string {\r\n let totalPrice = 0;\r\n if (this.currentpage === 'checkout') {\r\n totalPrice = this.order.Total;\r\n } else {\r\n totalPrice = this.order.Total - this.order.FreightPrice;\r\n }\r\n return this.AfterpayCalculate(totalPrice);\r\n }\r\n\r\n private AfterpayCalculate(price: number) {\r\n return (Math.ceil((price / 4) * 100) / 100).toFixed(2);\r\n }\r\n\r\n private showAfterpayModal() {\r\n (this.$refs.afterpayModal as ModalContent).Open();\r\n }\r\n\r\n private discountedPrice(amount: number): Price {\r\n return new Price(amount, Price.Types.DISCOUNT);\r\n }\r\n\r\n private tooltipHover(isOpen: boolean) {\r\n this.tooltipOpen = isOpen;\r\n }\r\n\r\n @Watch('carouselMoving')\r\n private setCarouselStatus(val: boolean) {\r\n if (val) {\r\n Vue.nextTick(() => {\r\n this.carouselMoving = false;\r\n });\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderSummary.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderSummary.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OrderSummary.vue?vue&type=template&id=6f8326ba&\"\nimport script from \"./OrderSummary.vue?vue&type=script&lang=ts&\"\nexport * from \"./OrderSummary.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.WebsiteSettings.IsLoggedIn)?_c('div',{staticClass:\"row login-signup-wrapper content-image\"},[_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('basket-login-signup-copy'),expression:\"'basket-login-signup-copy'\"}],staticClass:\"col-8 col-lg-6 col-xl-8 message-holder\"},[_vm._m(0)]),_c('div',{staticClass:\"col-4 col-lg-6 col-xl-4 button-holder\"},[_c('form',{attrs:{\"id\":\"frmSignup\",\"action\":_vm.WebsiteSettings && _vm.WebsiteSettings.BaseUrl + 'default.aspx'}},[_c('input',{staticClass:\"hidden\",attrs:{\"type\":\"hidden\",\"name\":\"action\",\"value\":\"displayaccount\"}}),_c('input',{staticClass:\"hidden\",attrs:{\"type\":\"hidden\",\"name\":\"Z\",\"value\":\"c\"}}),_c('input',{staticClass:\"hidden\",attrs:{\"type\":\"hidden\",\"name\":\"referrer\",\"value\":\"external\"}}),_c('input',{staticClass:\"hidden\",attrs:{\"type\":\"hidden\",\"name\":\"productcode\",\"id\":\"productcode\",\"value\":\"\"}}),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"rnd\"}}),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"pg\",\"value\":\"subscriber\"}}),(_vm.brand === 'wi' || _vm.brand === 'ou')?_c('div',{staticClass:\"form-actions\"},[_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('loginsignup-signin-button'),expression:\"'loginsignup-signin-button'\"}],staticClass:\"btn btn-primary sign-in\",attrs:{\"type\":\"button\",\"onclick\":\"showLoginForm(this);\"}},[_vm._v(\"Sign In\")]),_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('loginsignup-join-button'),expression:\"'loginsignup-join-button'\"}],staticClass:\"btn btn-secondary join-now\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.RedirectToMemberLogin}},[_vm._v(\"Join Now\")])]):_c('div',{staticClass:\"form-actions\"},[_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('loginsignup-join-button'),expression:\"'loginsignup-join-button'\"}],staticClass:\"btn btn-secondary join-now\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.RedirectToMemberLogin}},[_vm._v(\"Join Now\")]),_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('loginsignup-signin-button'),expression:\"'loginsignup-signin-button'\"}],staticClass:\"btn btn-primary sign-in\",attrs:{\"type\":\"button\",\"onclick\":\"showLoginForm(this);\"}},[_vm._v(\"Sign In\")])])])])]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v(\"Login or Join to enjoy exclusive member \"),_c('span',{staticClass:\"member-exclusive\",attrs:{\"role\":\"text\"}},[_vm._v(\"Rewards & Benefits\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from 'vue-property-decorator';\r\n // Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { IWebsiteSettings } from '../interfaces';\r\nimport * as utilities from '../utilities';\r\n\r\n@Component\r\nexport default class LoginSignUp extends Vue {\r\n private brand: string = this.WebsiteSettings.WebsitePrefix;\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n public RedirectToMemberLogin() {\r\n (document.getElementById('productcode') as (HTMLInputElement)).value = (window as any).location;\r\n (document.getElementById('frmSignup') as (HTMLFormElement)).submit();\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginSignUp.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginSignUp.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LoginSignUp.vue?vue&type=template&id=722386a1&\"\nimport script from \"./LoginSignUp.vue?vue&type=script&lang=ts&\"\nexport * from \"./LoginSignUp.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isStandardFree && _vm.IsClickCollect)?_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Dynamic Delivery Banner - Standard Delivery and Click and Collect']}}):(_vm.isStandardFree && !_vm.IsClickCollect)?_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Dynamic Delivery Banner - Standard Delivery']}}):(!_vm.isStandardFree && _vm.IsClickCollect)?_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Dynamic Delivery Banner - Click and Collect']}}):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n // Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { DispatchAction, IOrder, IWebsiteSettings, IFreightProvider, IOrderItem } from '../interfaces';\r\nimport ContentManagement from './ContentManagement.vue';\r\n@Component({\r\n components: {\r\n ContentManagement,\r\n },\r\n})\r\nexport default class DynamicDeliveryBanner extends Vue {\r\n public mounted() {\r\n store.dispatch(DispatchAction.FetchFreightOptions);\r\n }\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n get freightOptions(): IFreightProvider[] {\r\n return store.getters.FreightOptions;\r\n }\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get isStandardFree(): boolean {\r\n let returnFlag: boolean = false;\r\n if (this.freightOptions !== undefined) {\r\n const freightproviders: IFreightProvider[] = this.freightOptions || [];\r\n if (freightproviders !== undefined && freightproviders.length > 0) {\r\n let standardfreight: IFreightProvider | undefined;\r\n standardfreight = freightproviders.find((freight: IFreightProvider) =>\r\n freight.Description.toLowerCase().toString().indexOf('sameday') === -1);\r\n if (standardfreight && standardfreight.Price === standardfreight.Discount) {\r\n returnFlag = true;\r\n } else {\r\n returnFlag = false;\r\n }\r\n }\r\n }\r\n return returnFlag;\r\n }\r\n\r\n get IsClickCollect(): boolean {\r\n let IsPickUpAvailable = '0';\r\n if (this.WebsiteSettings.CountryRoadSettings.hasOwnProperty('PickupInStore')) {\r\n // @ts-ignore: Surpress the implicit any error\r\n IsPickUpAvailable = this.WebsiteSettings.CountryRoadSettings.PickupInStore;\r\n }\r\n if (this.WebsiteSettings.IsIXWebsite || IsPickUpAvailable === '0') {\r\n return false;\r\n } else {\r\n const perItem = this.order.Items.filter((item: IOrderItem) => item.PersonalisationInfo != null);\r\n if (perItem && perItem.length > 0) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DynamicDeliveryBanner.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DynamicDeliveryBanner.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DynamicDeliveryBanner.vue?vue&type=template&id=7ad55fba&\"\nimport script from \"./DynamicDeliveryBanner.vue?vue&type=script&lang=ts&\"\nexport * from \"./DynamicDeliveryBanner.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{domProps:{\"innerHTML\":_vm._s(_vm.CuratedProductList)}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport { store } from '../store';\nimport { IOrder, IOrderItem, DispatchAction } from '../interfaces';\n\n@Component({})\nexport default class CuratedProducts extends Vue {\n\n get CuratedProductList(): string {\n return store.getters.CuratedProducts;\n }\n\n public mounted() {\n store.dispatch(DispatchAction.FetchCuratedProducts);\n }\n\n @Watch('CuratedProductList')\n private onPropertyChanged(value: string, oldVal: string) {\n const $ = (window as any).jQuery;\n const el = $(this.$el);\n if (value && value.length) {\n setTimeout(() => {\n el.find('*[data-slidestoshow]').attr('data-slidestoshow', 4);\n el.setupCrosssell();\n }, 0);\n }\n }\n\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CuratedProducts.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CuratedProducts.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CuratedProducts.vue?vue&type=template&id=74dabd08&\"\nimport script from \"./CuratedProducts.vue?vue&type=script&lang=ts&\"\nexport * from \"./CuratedProducts.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.offer)?_c('div',{staticClass:\"incentive-offer\"},[_c('div',{staticClass:\"incentive-heading\"},[_vm._v(\"Special Offer\")]),(_vm.canDisplayMessage)?_c('div',{staticClass:\"offer-details\"},[(_vm.offer && _vm.offer.FreeProducts.length)?_c('div',{staticClass:\"offer-items\"},_vm._l((_vm.offer.FreeProducts),function(product,index){return _c('a',{key:index,attrs:{\"href\":product.Link}},[_c('img',{staticClass:\"product\",attrs:{\"alt\":product.Title,\"src\":_vm.imageSource(product)}})])}),0):_vm._e(),_c('p',{staticClass:\"offer-message\"},[(_vm.offer.IncentiveMessage === '')?_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.SpendingString)}}):_vm._e(),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.offerMessage)}})])]):_vm._e()]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n // Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { IIncentiveOffer, IProduct, IWebsiteSettings, DiscountType } from '../interfaces';\r\nimport Price from './pricing/Price';\r\nimport PriceDisplay from './pricing/PriceDisplay.vue';\r\n\r\n@Component({\r\n components: {\r\n PriceDisplay,\r\n },\r\n})\r\nexport default class IncentiveOffer extends Vue {\r\n\r\n get offer(): IIncentiveOffer | null {\r\n return store.getters.IncentiveOffer;\r\n }\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n get canDisplayMessage(): boolean {\r\n if (this.offer && (\r\n // Free item incentive offer\r\n (this.offer.FreeProducts && this.offer.FreeProducts.length) ||\r\n // Percent off and dollor off incentive offer\r\n this.offer.DiscountValue > 0 ||\r\n this.offer.DiscountPercent > 0 ||\r\n // Percent off and dollor off freight offer\r\n this.offer.FreightDiscountValue > 0 ||\r\n this.offer.FreightDiscountPercent > 0\r\n )\r\n ) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n get SpendingString(): string {\r\n if (this.offer === null) {\r\n return '';\r\n }\r\n if (this.offer.ToSpendQuantity > 1 && this.offer.ToSpend) {\r\n return 'Add another ' +\r\n this.offer.ToSpendQuantity +\r\n ' ' + store.getters.getGlossaryEntryByKey('incentive-add-another-worth');\r\n } else if (this.offer.ToSpendQuantity === 1 && this.offer.ToSpend > 0) {\r\n return store.getters.getGlossaryEntryByKey('incentive-add-another-worth-at-least')\r\n || 'Add another item to your cart worth at least <span role=\"text\" id=\"offerPrice\"></span>';\r\n } else if (this.offer.ToSpendQuantity > 1) {\r\n return 'Add another ' + this.offer.ToSpendQuantity +\r\n ' ' + store.getters.getGlossaryEntryByKey('incentive-add-another-quantity');\r\n } else if (this.offer.ToSpendQuantity === 1) {\r\n return store.getters.getGlossaryEntryByKey('incentive-add-another') || 'Add another item to your cart';\r\n } else if (this.offer.ToSpend > 0) {\r\n return 'Spend another <span role=\"text\" id=\"offerPrice\"></span>';\r\n } else {\r\n return '';\r\n }\r\n }\r\n\r\n get offerMessage(): string {\r\n let message = '';\r\n if (this.offer === null) {\r\n return '';\r\n }\r\n if (this.offer.IncentiveMessage !== '') {\r\n return this.offer.IncentiveMessage;\r\n } else if (this.offer.DiscountValue > 0 || this.offer.DiscountPercent > 0) {\r\n if (this.offer.DiscountType === 0) {\r\n message = this.offer.DiscountPercent + '% off your order';\r\n } else {\r\n message = '<span role=\"text\" id=\"discountPrice\"></span> off your order';\r\n }\r\n\r\n return ' to receive ' + message;\r\n } else if (this.offer.FreightDiscountValue > 0 || this.offer.FreightDiscountPercent > 0) {\r\n if (this.offer.FreightDiscountType === 0) {\r\n if (this.offer.FreightDiscountPercent === 100) {\r\n message = '<span role=\"text\" id=\"freightDiscountPrice\"></span> standard delivery';\r\n } else {\r\n message = this.offer.FreightDiscountPercent + '% off on the standard delivery';\r\n }\r\n } else {\r\n message = '<span role=\"text\" id=\"freightDiscountPrice\"></span> off on the standard delivery';\r\n }\r\n\r\n return ' to receive ' + message;\r\n } else if (this.offer && this.offer.FreeProducts.length) {\r\n if (this.offer && this.offer.FreeProducts.length > 1) {\r\n message = 'these items';\r\n } else {\r\n message = 'this item';\r\n }\r\n return 'to automatically receive ' + message;\r\n } else {\r\n return '';\r\n }\r\n }\r\n\r\n public updated() {\r\n Vue.nextTick(() => {\r\n if (this.offer !== null) {\r\n const spendPriceHolder = document.getElementById('offerPrice');\r\n if (spendPriceHolder) {\r\n spendPriceHolder.innerHTML = '';\r\n const toSpendObj = this.displayPrice(this.offer.ToSpend);\r\n const toSpendComponent: PriceDisplay = new PriceDisplay(toSpendObj);\r\n toSpendComponent.$mount();\r\n spendPriceHolder.appendChild(toSpendComponent.$el);\r\n }\r\n const discountPriceHolder = document.getElementById('discountPrice');\r\n if (discountPriceHolder) {\r\n discountPriceHolder.innerHTML = '';\r\n const discountObj = this.displayPrice(this.offer.DiscountValue);\r\n const discountComponent: PriceDisplay = new PriceDisplay(discountObj);\r\n discountComponent.$mount();\r\n discountPriceHolder.appendChild(discountComponent.$el);\r\n }\r\n const freightDiscountPriceHolder = document.getElementById('freightDiscountPrice');\r\n if (freightDiscountPriceHolder) {\r\n let freightDiscountObj;\r\n freightDiscountPriceHolder.innerHTML = '';\r\n if (this.offer.FreightDiscountPercent === 100) {\r\n freightDiscountObj = this.displayPrice(0);\r\n } else {\r\n freightDiscountObj = this.displayPrice(this.offer.FreightDiscountValue);\r\n }\r\n const freightDiscountComponent: PriceDisplay = new PriceDisplay(freightDiscountObj);\r\n freightDiscountComponent.$mount();\r\n freightDiscountPriceHolder.appendChild(freightDiscountComponent.$el);\r\n }\r\n }\r\n });\r\n }\r\n\r\n private displayPrice(priceValue: number): any {\r\n const priceObj = {\r\n propsData: {\r\n price: new Price(priceValue, Price.Types.SUBTOTAL),\r\n },\r\n };\r\n return priceObj;\r\n }\r\n\r\n private imageSource(product: IProduct): string {\r\n if (product.ImageSmall !== '' && product.ImageSmall.indexOf('THUMB') > -1) {\r\n return 'ProductImages_Display/' + product.ImageSmall;\r\n } else if (product.ImageSmall !== '') {\r\n return 'ProductImages_Display/THUMB/' + product.ImageSmall;\r\n } else {\r\n return this.WebsiteSettings.NoImageUpsell;\r\n }\r\n }\r\n}\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IncentiveOffer.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./IncentiveOffer.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./IncentiveOffer.vue?vue&type=template&id=243fa5aa&\"\nimport script from \"./IncentiveOffer.vue?vue&type=script&lang=ts&\"\nexport * from \"./IncentiveOffer.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { IOrder, IOrderItem, DispatchAction, IWebsiteSettings } from '../interfaces';\r\nimport OrderItem from './items/OrderItem.vue';\r\nimport OrderItemAlternativeView from './items/OrderItemAlternativeView.vue';\r\nimport PriceDisplay from './pricing/PriceDisplay.vue';\r\nimport Price from './pricing/Price';\r\nimport Promotions from './Promotions.vue';\r\nimport RewardPoints from './RewardPoints.vue';\r\nimport OrderSummary from './OrderSummary.vue';\r\nimport LoginSignUp from './LoginSignUp.vue';\r\nimport DynamicDeliveryBanner from './DynamicDeliveryBanner.vue';\r\nimport ContentManagement from './ContentManagement.vue';\r\nimport CuratedProducts from './CuratedProducts.vue';\r\nimport IncentiveOffer from './IncentiveOffer.vue';\r\nimport GroupAnimation from '@/components/ui/animations/GroupAnimation.vue';\r\n@Component({\r\n components: {\r\n OrderItem,\r\n OrderItemAlternativeView,\r\n PriceDisplay,\r\n Promotions,\r\n RewardPoints,\r\n OrderSummary,\r\n LoginSignUp,\r\n DynamicDeliveryBanner,\r\n ContentManagement,\r\n CuratedProducts,\r\n IncentiveOffer,\r\n GroupAnimation,\r\n },\r\n})\r\nexport default class ShoppingBag extends Vue {\r\n\r\n private brand: string = store.getters.WebsiteSettings.WebsitePrefix;\r\n\r\n public mounted() {\r\n if (!this.emptyBag) {\r\n store.dispatch(DispatchAction.FetchProducts);\r\n store.dispatch(DispatchAction.FetchIncentiveOffer);\r\n }\r\n Vue.nextTick(() => {\r\n const w = window as any;\r\n if (typeof w.showHideableBanners === 'function') {\r\n w.showHideableBanners();\r\n }\r\n if (!this.emptyBag) {\r\n this.$ariaAnnounce('Loading, please wait.');\r\n }\r\n });\r\n }\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n get orderLoaded(): boolean {\r\n if (typeof(store.getters.Order) !== typeof({})\r\n || typeof(store.getters.Order.ID) !== typeof(0)\r\n || store.getters.Order.ID <= 0) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n get emptyBag(): boolean {\r\n if (!this.orderLoaded || typeof(this.order.Items) !== typeof([]) || this.order.Items.length === 0) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n get subtotal(): Price {\r\n return new Price(store.getters.Order.Subtotal, Price.Types.SUBTOTAL);\r\n }\r\n\r\n get showSubTotal(): boolean {\r\n return store.getters.Order.Items.filter((oi) => !oi.IsDeleted).length > 0;\r\n }\r\n\r\n get loggedIn(): boolean {\r\n if (store.getters.WebsiteSettings.IsLoggedIn) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShoppingBag.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShoppingBag.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ShoppingBag.vue?vue&type=template&id=57d76970&\"\nimport script from \"./ShoppingBag.vue?vue&type=script&lang=ts&\"\nexport * from \"./ShoppingBag.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.retryingPlaceOrder)?_c('section',{staticClass:\"invalidcard-wrapper col\"},[_vm._m(0)]):_vm._e(),_c('ModalContent',{ref:\"errorMessageModal\",attrs:{\"modal\":_vm.errorMessageModalInfo},on:{\"confirm\":function($event){return _vm.ReloadOrder()}}},[_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('div',{staticClass:\"alert alert-danger\",domProps:{\"innerHTML\":_vm._s(_vm.errorMessage)}})]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"Continue Shopping\")])]),_c('div',{staticClass:\"container-fluid checkout-wrapper\"},[_c('div',{staticClass:\"row\"},[_c('section',{staticClass:\"delivery-wrapper col-12\",class:[_vm.showPayment ? 'active' : '', _vm.showDelivery || _vm.showCandC ? 'selected' : 'unselected']},[_c('div',{staticClass:\"delivery\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkout-delivery-h2'),expression:\"'checkout-delivery-h2'\"}]},[_vm._v(\"Delivery\")]),(!_vm.retryingPlaceOrder && _vm.pickupInStoreEnabled)?_c('div',{staticClass:\"fulfilment-options\",class:_vm.disableCC ? 'c-and-c-unavailable' : ''},[_c('fieldset',[_c('legend',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkout-delivery-fulfilment-options-legend'),expression:\"'checkout-delivery-fulfilment-options-legend'\"}],class:_vm.brand === 'tr' ? '' : 'accessibility'},[_vm._v(\"Delivery Options\")]),_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('li',{class:[_vm.showDelivery ? 'active' : '', 'delivered'],attrs:{\"role\":\"presentation\"}},[_c('button',{ref:\"deliveryButton\",attrs:{\"aria-pressed\":_vm.fulfilmentType == 1 ? 'true' : 'false'},on:{\"click\":function($event){return _vm.changeFulfilment(1)}}},[_c('i',{staticClass:\"icon-delivery\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkout-button-delivery'),expression:\"'checkout-button-delivery'\"}],ref:\"deliveryButton\",attrs:{\"role\":\"text\"}},[_vm._v(\"Delivery\")]),(_vm.showDelivery)?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"selected\")]):_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"not selected\")])])]),_c('li',{staticClass:\"c-and-c\",class:{ 'unavailable': _vm.disableCC, 'active': _vm.showCandC },attrs:{\"role\":\"presentation\"}},[_c('button',{ref:\"clickAndCollectButton\",attrs:{\"aria-pressed\":_vm.fulfilmentType == 2 ? 'true' : 'false'},on:{\"click\":function($event){return _vm.changeFulfilment(2)}}},[_c('i',{staticClass:\"icon-click-and-collect\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkout-button-clickandcollect'),expression:\"'checkout-button-clickandcollect'\"}],attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"free\",attrs:{\"role\":\"text\"}},[_vm._v(\"Free\")]),_vm._v(\"Click & Collect\")]),(_vm.showCandC)?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"selected\")]):_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"not selected\")])])])]),(_vm.disableCC)?_c('p',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkout-fulfilment-candc-unavailable-alert'),expression:\"'checkout-fulfilment-candc-unavailable-alert'\"}],staticClass:\"alert alert-warning\"},[_vm._v(\"Click & Collect is currently unavailable\")]):_vm._e()])]):_vm._e()]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.useParcelLockerWidget),expression:\"!useParcelLockerWidget\"}],staticClass:\"selected-fulfilment-option\"},[_c('Animation',{attrs:{\"name\":'fade',\"mode\":'out-in'}},[(_vm.showDelivery)?_c('Delivery',{attrs:{\"parcelLockerAddress\":_vm.getParcelLockerAddress},on:{\"changeFulfilment\":_vm.changeFulfilment,\"status-change\":_vm.updateDeliveryStatus,\"parcelLockerWidgetInit\":_vm.initParcelLocker,\"emailReference\":_vm.parcelLockerEmailRef,\"parcelLockerSelectedComplete\":_vm.hideParcelLocker,\"giftingStatusChanged\":_vm.updateGiftWrappingStatus}}):(_vm.showCandC)?_c('ClickCollect',{on:{\"saved-status\":_vm.updateCandCStatus}}):_vm._e()],1)],1),_c('Animation',{attrs:{\"name\":'fade',\"mode\":'out-in'}},[(_vm.setupParcelLockerWidget)?_c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.useParcelLockerWidget),expression:\"useParcelLockerWidget\"}],staticClass:\"parcellocker\"},[_c('ParcelLockerWidget',{ref:\"parcelLockerWidget\",attrs:{\"EmailElement\":_vm.getParcelLockerEmailRef},on:{\"parcelLockerWidgetRendered\":_vm.parcelLockerRendered,\"parcelLockerSelected\":_vm.parcelLockerSelect}},[_c('a',{staticClass:\"use-street-address\",attrs:{\"slot\":\"backToAddressFields\",\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.backToAddressFields($event)}},slot:\"backToAddressFields\"},[_vm._v(\"Cancel\")])])],1)]):_vm._e()])],1),_c('section',{staticClass:\"order-summary-wrapper col-12 align-items-start\"},[_c('div',{ref:\"stickyElem\",staticClass:\"order-summary sticky-top\",class:[_vm.showPayment ? 'active': '']},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkout-ordersummary-h2'),expression:\"'checkout-ordersummary-h2'\"}]},[_vm._v(\"Order Summary\")]),_c('OrderSummary',{attrs:{\"CanContinue\":_vm.showPayment && _vm.CanContinue,\"giftingValid\":this.giftingValid},on:{\"place-order\":_vm.placeOrder}})],1)]),(_vm.showPayment)?_c('section',{class:_vm.paymentClasses},[_c('div',{staticClass:\"payment-summary\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('checkout-payment-h2'),expression:\"'checkout-payment-h2'\"}]},[_vm._v(\"Payment\")]),_c('Payment',{ref:\"paymentComponent\",on:{\"status-change\":_vm.onPaymentStatusChange,\"place-order\":_vm.placeOrder}})],1)]):_vm._e()]),_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Cart Footer (checkout)']}})],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h2',[_vm._v(\"Invalid Card\")]),_c('div',{staticClass:\"message\"},[_c('p',[_vm._v(\"Unfortunately, there was a problem with your payment. Please re-enter your payment details below.\")]),_c('p',[_vm._v(\"Note: If you browse away from this page without entering your payment details, you will need to click on the link in your Invalid Card email to reach this page again.\")])])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"delivered \"},[_c('Animation',{attrs:{\"name\":'fade',\"mode\":'out-in'}},[(_vm.loggedIn && !_vm.addressSelected && !_vm.editFields)?_c('div',{key:\"addressbook\",staticClass:\"editable-section editable-section-open\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.useParcelLockerWidget),expression:\"!useParcelLockerWidget\"}],staticClass:\"addressbook\",class:_vm.useParcelLocker ? 'parcel-locker-active' : ''},[_c('AddressBook',{ref:\"addressbook\",attrs:{\"fromEdit\":_vm.hasEdited},on:{\"selected\":_vm.saveAddress,\"edit\":_vm.setForEdit,\"auto-select\":_vm.addressBookAutoSelect}}),_c('div',{staticClass:\"addressbook-button-divider\"},[_c('span',[_vm._v(\"or\")])]),_c('div',{staticClass:\"delivery-buttons\"},[_c('div',{staticClass:\"new-address add-new\"},[_c('button',{staticClass:\"btn btn-secondary\",on:{\"click\":function($event){$event.preventDefault();return _vm.useNewAddress()}}},[_vm._v(\"New Delivery Address\")])]),(_vm.useParcelLocker)?_c('div',{staticClass:\"parcel-locker\"},[_c('div',{staticClass:\"parcel-locker-selector\"},[_c('button',{staticClass:\"btn btn-link btn-parcel-locker\",on:{\"click\":_vm.parcelLockerWidgetInit}},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('delivery-parcel-locker-button'),expression:\"'delivery-parcel-locker-button'\"}],staticClass:\"parcel-locker-link\"},[_vm._v(\"Deliver to a Collection Point\")])]),_c('ToolTip',{attrs:{\"tooltipOptions\":{showIcon: false, placement: [{breakpoint: 0, placement: 'top', wrapper: _vm.el}, {breakpoint: 992, placement: 'top'}], ariaLabel: 'More information about delivery to a Collection Point', className: 'parcel-locker-tooltip-holder'}}},[_c('i',{staticClass:\"icon-tooltip\",attrs:{\"slot\":\"icon\"},slot:\"icon\"}),_c('div',{staticClass:\"parcel-locker-tooltip\",attrs:{\"slot\":\"content\"},slot:\"content\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Parcel Locker Tooltip']}})],1)])],1)]):_vm._e()])],1)]):(_vm.editFields)?_c('div',[_c('AddressFields',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.useParcelLockerWidget),expression:\"!useParcelLockerWidget\"}],key:\"addressfields\",ref:\"AddressFields\",attrs:{\"initialAddress\":_vm.Address,\"initialEmail\":_vm.Email,\"selectText\":_vm.addressButtonText,\"isNew\":_vm.newAddress,\"emailRequired\":!_vm.loggedIn,\"hideCancelButton\":_vm.addressCount < 1,\"isParcelLockerAddress\":_vm.isParcelLockerAddress},on:{\"selected\":_vm.saveAddress,\"cancel\":_vm.cancelAddressEdit,\"rendered\":_vm.onFieldsRendered,\"countryReset\":_vm.onCountryReset}},[(_vm.useParcelLocker)?_c('li',{staticClass:\"parcel-locker-actions\",attrs:{\"slot\":\"changeToStreetAddress\"},slot:\"changeToStreetAddress\"},[(!_vm.loggedIn || _vm.isParcelLockerAddress)?[(_vm.isParcelLockerAddress)?_c('div',{staticClass:\"parcel-locker-fields-deactivated\"},[_vm._v(\"Collection Point details cannot be edited\")]):_vm._e(),_c('div',{staticClass:\"parcel-locker-selector\"},[_c('button',{staticClass:\"btn btn-link btn-parcel-locker\",on:{\"click\":_vm.parcelLockerWidgetInit}},[_c('span',{staticClass:\"parcel-locker-link\"},[_vm._v(_vm._s(_vm.parcelLockerMessage))])]),_c('ToolTip',{attrs:{\"tooltipOptions\":{showIcon: false, placement: [{breakpoint: 0, placement: 'top', wrapper: _vm.el}, {breakpoint: 992, placement: 'top'}], ariaLabel: 'More information about delivery to a Collection Point', className: 'parcel-locker-tooltip-holder'}}},[_c('i',{staticClass:\"icon-tooltip\",attrs:{\"slot\":\"icon\"},slot:\"icon\"}),_c('div',{staticClass:\"parcel-locker-tooltip\",attrs:{\"slot\":\"content\"},slot:\"content\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Parcel Locker Tooltip']}})],1)])],1),(_vm.isParcelLockerAddress)?_c('a',{staticClass:\"use-street-address\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.useStreetAddress($event)}}},[_vm._v(\"Change to a street address\")]):_vm._e()]:_vm._e()],2):_vm._e()])],1):_c('div',{key:\"summary\",staticClass:\"delivery-details\"},[_c('h3',[_vm._v(\"Deliver To\")]),_c('div',{staticClass:\"selected editable-section editable-section-closed\"},[_c('AddressSummary',{ref:\"selectedDeliveryAddress\",attrs:{\"Address\":_vm.Address,\"Email\":!_vm.loggedIn ? _vm.Email : ''},on:{\"rendered\":_vm.onSummaryRendered}},[_c('span',{attrs:{\"slot\":\"buttons\"},slot:\"buttons\"},[(!_vm.retryingPlaceOrder)?_c('button',{ref:\"editButton\",staticClass:\"btn btn-edit\",attrs:{\"aria-label\":\"Edit delivery address\"},on:{\"click\":function($event){return _vm.setForEdit(_vm.Address);}}},[_c('i',{staticClass:\"icon-edit\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Edit\")]):_vm._e(),(!_vm.retryingPlaceOrder && _vm.loggedIn)?_c('button',{ref:\"changeButton\",staticClass:\"btn btn-delete\",attrs:{\"aria-label\":\"Change delivery address\"},on:{\"click\":function($event){$event.preventDefault();return _vm.changeDeliveryAddress()}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Change\")]):_vm._e()])])],1),(_vm.showDeliveryOptions)?_c('DeliveryOptions',{on:{\"status-change\":_vm.setDeliveryOptionStatus}}):_vm._e(),(_vm.displayGiftWrapping)?_c('GiftFulfilment',{on:{\"giftingStatusChanged\":_vm.setGiftingStatus}}):_vm._e()],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"static-address\"},[(_vm.brand === 'wi')?_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('li',{staticClass:\"customer-details\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"name\",attrs:{\"role\":\"text\"}},[_vm._v(\" \"+_vm._s(_vm.Address.FirstName)+\" \"+_vm._s(_vm.Address.LastName)+\" \")]),(_vm.Address.ContactPhone.length > 0)?_c('span',{staticClass:\"phone\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Telephone \")]),_vm._v(\" \"+_vm._s(_vm.Address.ContactPhone)+\" \")]):_vm._e(),(_vm.Email)?_c('span',{staticClass:\"email\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Email \")]),_vm._v(_vm._s(_vm.Email)+\" \")]):_vm._e()]),_c('li',{staticClass:\"address\",attrs:{\"role\":\"presentation\"}},[_c('address',[_vm._l((_vm.deliveryFields),function(field){return _c('span',{key:field.className,class:field.className,attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(field.value))])})],2)])]):_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('li',{staticClass:\"name\",attrs:{\"role\":\"presentation\"}},[_c('i',{staticClass:\"icon-person\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\" \"+_vm._s(_vm.Address.FirstName)+\" \"+_vm._s(_vm.Address.LastName)+\" \")]),_c('li',{staticClass:\"address\",attrs:{\"role\":\"presentation\"}},[_c('i',{staticClass:\"icon-location\",attrs:{\"aria-hidden\":\"true\"}}),_c('address',[_vm._l((_vm.deliveryFields),function(field){return _c('span',{key:field.className,class:field.className,attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(field.value))])})],2)]),(_vm.Address.ContactPhone.length > 0)?_c('li',{staticClass:\"phone\",attrs:{\"role\":\"presentation\"}},[_c('i',{staticClass:\"icon-phone\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Telephone \")]),_vm._v(\" \"+_vm._s(_vm.Address.ContactPhone)+\" \")]):_vm._e(),(_vm.Email)?_c('li',{staticClass:\"email\",attrs:{\"role\":\"presentation\"}},[_c('i',{staticClass:\"icon-email\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Email \")]),_vm._v(_vm._s(_vm.Email)+\" \")]):_vm._e()]),_vm._t(\"buttons\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue} from 'vue-property-decorator';\nimport { store } from '@/store';\nimport CustomerAddress from '@/components/address/Address';\n@Component\nexport default class AddressSummary extends Vue {\n @Prop({}) private Email!: string;\n @Prop() private Address!: CustomerAddress;\n private brand: string = store.getters.WebsiteSettings.WebsitePrefix;\n private addressDisplay: string[] = [\n 'Company',\n 'Street',\n 'ExtraInformation',\n 'Suburb',\n 'City',\n 'State',\n 'Postcode',\n 'Country' ];\n get deliveryFields(): any[] {\n const fields: any[] = [];\n this.addressDisplay.forEach((fieldName) => {\n // @ts-ignore: Surpress the implicit any error\n let val: string = this.Address[fieldName];\n if (fieldName === 'Country') {\n const country = store.getters.WebsiteSettings.ShippingCountries.find((c) => c.ID === val);\n if (country) {\n val = country.label;\n }\n }\n if (fieldName === 'Suburb') {\n const split = val.toLowerCase().split(' ');\n val = '';\n split.forEach((s) => {\n val += s.charAt(0).toUpperCase() + s.slice(1) + ' ';\n });\n val = val.trim();\n }\n if (val.length) {\n fields.push({\n className: fieldName.toLowerCase(),\n value: val,\n });\n }\n });\n return fields;\n }\n\n private mounted() {\n Vue.nextTick(() => {\n this.$emit('rendered');\n });\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressSummary.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressSummary.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AddressSummary.vue?vue&type=template&id=abb16d68&\"\nimport script from \"./AddressSummary.vue?vue&type=script&lang=ts&\"\nexport * from \"./AddressSummary.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"editable-section editable-section-open\"},[_c('fieldset',{staticClass:\"dynamic-address\"},[(_vm.isNew)?_c('legend',[_vm._v(\"Enter a New Address\")]):_vm._e(),_c('div',{staticClass:\"address-entry\"},[_c('div',{staticClass:\"required-fields-message\"},[_vm._v(\"All fields are required unless otherwise stated\")]),_c('ul',{staticClass:\"form\",attrs:{\"role\":\"presentation\"}},[_vm._l((_vm.visibleFields),function(field){return _c('AddressField',{key:field,ref:\"addressFields\",refInFor:true,class:[field.toLowerCase(), field === 'ContactPhone' ? 'break-after' : ''],attrs:{\"value\":field === 'Email' ? _vm.Email : _vm.Address[field],\"Address\":_vm.Address,\"hasOptions\":_vm.hasOptions(field),\"required\":_vm.isRequired(field),\"id\":_vm.ComponentID + field.toLowerCase(),\"name\":field.toLowerCase(),\"kleberField\":_vm.swapForKleber(field),\"type\":_vm.type(field),\"check\":field === 'Email' ? _vm.emailRegex : null,\"ValidatableModel\":field === 'Email' ? _vm.order : _vm.Address,\"ValidatableProperty\":field,\"maxlength\":_vm.addressMaxLength(field)},on:{\"input\":function($event){return _vm.updateAddress(field, $event)},\"change\":function($event){return _vm.fieldChanged(field, $event)},\"selected\":_vm.kleberSelect,\"kleberStatusError\":_vm.kleberStatusError,\"kleberManualEntry\":function($event){_vm.kleberValidate = true}}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":_vm.ComponentID + field.toLowerCase()},slot:\"label\"},[_vm._v(_vm._s(_vm.label(field))),(!_vm.isRequired(field))?_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"(optional)\")]):_vm._e()])])}),_vm._t(\"changeToStreetAddress\"),_c('li',{staticClass:\"form-actions\"},[_c('button',{ref:\"saveButton\",staticClass:\"btn btn-primary\",on:{\"click\":function($event){$event.preventDefault();return _vm.submit($event)}}},[_vm._v(_vm._s(_vm.selectText))]),(!_vm.hideCancelButton)?_c('button',{staticClass:\"cancel btn btn-link\",on:{\"click\":function($event){$event.preventDefault();return _vm.cancel($event)}}},[_vm._v(\"Cancel\")]):_vm._e()])],2)])]),_c('ModalContent',{ref:\"verifyAddressModal\",attrs:{\"modal\":_vm.validateModal},on:{\"confirm\":_vm.useVerifiedAddress,\"close\":_vm.useNonVerifiedAddress}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Corrected Address\")]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('span',{staticClass:\"message\",attrs:{\"role\":\"text\"}},[_vm._v(\" We've corrected your address to one suggested by Australia Post: \")]),_c('div',{staticClass:\"verified-address\"},[_c('ul',{staticClass:\"list-unstyled\",attrs:{\"role\":\"presentation\"}},[_c('li',{staticClass:\"font-weight-bold\",attrs:{\"role\":\"presentation\"}},[_vm._v(_vm._s(_vm.validatedAddress.Street))]),_c('li',{attrs:{\"role\":\"presentation\"}},[_vm._v(_vm._s(_vm.validatedAddress.Suburb))]),_c('li',{attrs:{\"role\":\"presentation\"}},[_vm._v(_vm._s(_vm.validatedAddress.State)+\" \"+_vm._s(_vm.validatedAddress.Postcode))])])]),_c('span',{staticClass:\"message\",attrs:{\"role\":\"text\"}},[_vm._v(\" Is this ok? \")])]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"Continue\")]),_c('span',{attrs:{\"slot\":\"cancel-text\"},slot:\"cancel-text\"},[_vm._v(\"Cancel\")])]),_c('ChangeCountryModal',{ref:\"countryChangeModal\",attrs:{\"modal\":_vm.countryChangeModal,\"selectedCountry\":_vm.selectedCountry},on:{\"cancel\":_vm.countryRestore}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var CustomerAddress = /** @class */ (function () {\r\n // Constructor\r\n function CustomerAddress(a) {\r\n // Initialize the default values\r\n this.ID = 0;\r\n this.ID = a.ID || 0;\r\n this.Title = a.Title || '';\r\n this.Type = a.Type || 'None';\r\n this.FirstName = a.FirstName || '';\r\n this.LastName = a.LastName || '';\r\n this.ContactPhone = a.ContactPhone || '';\r\n this.Company = a.Company || '';\r\n this.Street = a.Street || '';\r\n this.Suburb = a.Suburb || '';\r\n this.City = a.City || '';\r\n this.State = a.State || '';\r\n this.Postcode = a.Postcode || '';\r\n this.ExtraInformation = a.ExtraInformation || '';\r\n this.Country = a.Country || '';\r\n this.LocationType = a.LocationType || 0;\r\n this.Errors = a.Errors || [];\r\n }\r\n return CustomerAddress;\r\n}());\r\nexport default CustomerAddress;\r\n//# sourceMappingURL=Address.js.map","import * as tslib_1 from \"tslib\";\r\nimport { Component, Vue } from 'vue-property-decorator';\r\nimport CustomerAddress from './Address';\r\nvar AddressSelector = /** @class */ (function (_super) {\r\n tslib_1.__extends(AddressSelector, _super);\r\n function AddressSelector() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.Address = new CustomerAddress({});\r\n _this.newAddress = false;\r\n return _this;\r\n }\r\n AddressSelector.prototype.mergeAddress = function (oldAddress, newAddress) {\r\n var address = oldAddress;\r\n this.deliveryFields.forEach(function (f, i) {\r\n address[f] = newAddress[f];\r\n });\r\n return address;\r\n };\r\n AddressSelector.prototype.toJSON = function () {\r\n return JSON.stringify(this.Address);\r\n };\r\n Object.defineProperty(AddressSelector.prototype, \"getAddress\", {\r\n get: function () {\r\n return this.Address;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AddressSelector.prototype.AddressSelected = function () {\r\n this.$emit('selected', this.Address);\r\n };\r\n Object.defineProperty(AddressSelector.prototype, \"deliveryFields\", {\r\n get: function () {\r\n return 'Company, Street, ExtraInformation, Suburb, City, State, Postcode'.split(', ');\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AddressSelector = tslib_1.__decorate([\r\n Component({})\r\n ], AddressSelector);\r\n return AddressSelector;\r\n}(Vue));\r\nexport default AddressSelector;\r\n//# sourceMappingURL=AddressSelector.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showAutocomplete)?_c('Autocomplete',{ref:\"auto\",attrs:{\"isAsync\":true,\"items\":_vm.resultsList,\"prompt\":'Select an option to auto-populate your address details',\"name\":_vm.name,\"labelAfter\":_vm.labelAfter,\"id\":_vm.id,\"maxlength\":_vm.maxlength,\"ValidatableProperty\":_vm.ValidatableProperty,\"ValidatableModel\":_vm.ValidatableModel},on:{\"input\":_vm.inputChange,\"search\":_vm.search,\"selected\":_vm.onSelect},model:{value:(_vm.Address.Street),callback:function ($$v) {_vm.$set(_vm.Address, \"Street\", $$v)},expression:\"Address.Street\"}},[_vm._t(\"label\",null,{\"slot\":\"label\"})],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"autocomplete form-floating\",on:{\"touchstart\":_vm.trackTap}},[_c('input',{ref:\"input\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : '','autocomplete-input', _vm.isLoading ? 'autocomplete-loading' : ''],attrs:{\"name\":'autocomplete',\"role\":\"combobox\",\"autocomplete\":\"nope\",\"aria-autocomplete\":\"list\",\"aria-owns\":_vm.id + '-results',\"aria-expanded\":_vm.isOpen ? 'true' : 'false',\"aria-describedby\":_vm.ariaDescription,\"aria-activedescendant\":_vm.arrowCounter > -1 ? 'autocomplete-suggestion-' + _vm.arrowCounter : false,\"type\":\"text\",\"id\":_vm.id,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength},domProps:{\"value\":_vm.value},on:{\"input\":function($event){return _vm.onChange($event.target.value)},\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }$event.preventDefault();return _vm.onArrowDown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }$event.preventDefault();return _vm.onArrowUp($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.onEnter($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }$event.preventDefault();return _vm.onExit($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.onExit($event)}],\"focus\":_vm.scrollIntoView,\"blur\":function($event){_vm.hasFocus=false}}}),_vm._t(\"label\"),_c('ul',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isOpen),expression:\"isOpen\"}],ref:\"results\",staticClass:\"autocomplete-results\",attrs:{\"id\":_vm.id + '-results',\"role\":\"listbox\",\"aria-label\":_vm.prompt}},[(_vm.prompt.length > 0)?_c('li',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(_vm._s(_vm.prompt))]):_vm._e(),_vm._l((_vm.results),function(result,i){return _c('li',{key:i,ref:\"resultItem\",refInFor:true,staticClass:\"autocomplete-result\",class:{ 'is-active': i === _vm.arrowCounter },attrs:{\"value\":result.value,\"role\":\"option\",\"tabindex\":\"-1\",\"id\":'autocomplete-suggestion-'+i},on:{\"click\":function($event){return _vm.setResult(result)},\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }$event.preventDefault();return _vm.onArrowDown($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }$event.preventDefault();return _vm.onArrowUp($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.onEnter($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }$event.preventDefault();return _vm.onExit($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.resultTab($event)}]}},[_vm._v(\" \"+_vm._s(result.label)+\" \")])})],2),_c('span',{staticStyle:{\"display\":\"none\"},attrs:{\"id\":\"autocomplete-notice\"}},[_vm._v(\"Suggestions will appear below as you type\")])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:_vm.inError ? 'error-highlight' : '',attrs:{\"role\":\"presentation\"}},[(_vm.iconClass)?_c('i',{class:_vm.iconClass}):_vm._e(),_c('input',{ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"type\":_vm.type,\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"inputmode\":_vm.inputmode,\"aria-describedby\":_vm.ariaDescriber.length > 0 ? _vm.ariaDescriber : false},domProps:{\"value\":_vm.value},on:{\"input\":function($event){return _vm.updateValue($event.target.value)},\"change\":function($event){return _vm.onChange($event.target.value)},\"blur\":_vm.blur}}),_vm._t(\"label\"),(_vm.inError)?_c('span',{staticClass:\"error-label\",attrs:{\"id\":'error-' + _vm.id},domProps:{\"innerHTML\":_vm._s(_vm.errormessage)}}):_vm._e(),_vm._t(\"extra\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\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, Prop, Vue, Watch } from 'vue-property-decorator';\n import { IValidatable, IPropertyError } from '@/interfaces';\n\n @Component({\n components: {\n },\n })\n\n export default class InputField extends Vue {\n public LiveValidation: boolean = false;\n @Prop() public name!: string;\n @Prop() public required!: boolean;\n @Prop({default: ''}) public ValidatableProperty!: string;\n @Prop() protected value!: string;\n @Prop() protected type!: string;\n @Prop() protected check!: RegExp;\n @Prop() protected id!: string;\n @Prop() protected maxlength!: number;\n @Prop() protected pattern!: string;\n @Prop() protected inputmode!: string;\n @Prop({default: ''}) protected ariaDescribedBy!: string;\n @Prop({default: null}) private ValidatableModel!: IValidatable;\n\n private errormessage: string = '';\n private InError: boolean = false;\n private isDisabled: boolean = false;\n\n public setError(message: string) {\n this.errormessage = message;\n this.inError = true;\n }\n\n public clearError() {\n this.inError = false;\n }\n\n get inError() {\n // First see if we have an error coming from a validatable model property (if specified)\n if (this.ValidatableModel !== null && this.ValidatableModel.Errors.length > 0) {\n const err: IPropertyError | undefined = this.ValidatableModel.Errors.find(\n (x) => x.Name === this.ValidatableProperty);\n if (err !== undefined && err.Codes.length > 0) {\n this.errormessage = err.Codes[0]; // TODO: well I haven't seen anything use multiple messages yet ;)\n return true;\n }\n }\n\n if (!this.InError && this.LiveValidation) {\n return !this.isValid;\n }\n return this.InError;\n }\n\n set inError(val: boolean) {\n this.InError = val;\n }\n\n get isValid() {\n // If required and blank, not valid\n if (this.required && this.value.length === 0) {\n return false;\n }\n\n // Otherwise do regex test\n const test: RegExp = this.check ? this.check : this.pattern ? new RegExp(this.pattern) : /\\S/;\n return test.test(this.value);\n }\n\n protected get populated(): boolean {\n let isPopulated: boolean = false;\n if (this.value && this.value.length > 0) {\n isPopulated = true;\n }\n return isPopulated;\n }\n protected get iconClass(): string {\n let className: string = '';\n switch (this.name) {\n case 'firstname':\n case 'nominatedperson':\n case 'gift-from':\n className = 'icon-person';\n break;\n case 'phone':\n case 'contactphone':\n className = 'icon-phone';\n break;\n case 'street':\n className = 'icon-location';\n break;\n case 'country':\n className = 'icon-world';\n break;\n case 'email':\n case 'gift-message':\n className = 'icon-email';\n break;\n }\n return className;\n }\n private get ariaDescriber(): string {\n if (this.inError) {\n return 'error-' + this.id;\n }\n return this.ariaDescribedBy;\n }\n\n public enableLiveValidation() {\n this.LiveValidation = true;\n }\n\n public disableLiveValidation() {\n this.LiveValidation = false;\n }\n\n public disable() {\n this.isDisabled = true;\n }\n\n public enable() {\n this.isDisabled = false;\n }\n\n public focusField() {\n this.$nextFocus(this.$refs.field as HTMLElement);\n }\n\n protected onChange(value: string) {\n this.$emit('change', value);\n }\n\n protected updateValue(value: string) {\n this.$emit('input', value);\n }\n\n protected blur() {\n this.$emit('blur');\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InputField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InputField.vue?vue&type=template&id=88eebf8c&\"\nimport script from \"./InputField.vue?vue&type=script&lang=ts&\"\nexport * from \"./InputField.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n// extends html Inputfield with autocomplete dropdown.\r\n// emits normal @input event\r\n// emits 'search' event when min character length is reached, for fethcing results\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport InputField from './htmlcomponents/InputField.vue';\r\n\r\n@Component({})\r\nexport default class Autocomplete extends InputField {\r\n @Prop( {default: ['']} ) protected items!: any[];\r\n @Prop( {default: 4} ) protected minLength!: number;\r\n @Prop( {default: false} ) private isAsync!: boolean;\r\n @Prop( {default: false} ) private labelAfter!: boolean;\r\n @Prop({default: ''}) private prompt!: string;\r\n\r\n // some iThings aren't putting the field into the middle of the viewport\r\n // so we need to track when the focus gets initiated\r\n private hasFocus: boolean | null = null;\r\n\r\n private ariaDescription = 'error-' + this.id + ' autocomplete-notice';\r\n\r\n private get listItems() {\r\n return this.items;\r\n }\r\n\r\n private set listItems(val) {\r\n this.items = val;\r\n }\r\n\r\n private get listOffset(): number {\r\n if (this.prompt.length > 0) {\r\n return 1;\r\n }\r\n return 0;\r\n }\r\n private isOpen = false;\r\n private results: string[] = [];\r\n private isLoading: boolean = false;\r\n private arrowCounter: number = -1;\r\n private selected: any;\r\n\r\n private get open() {\r\n return this.isOpen;\r\n }\r\n\r\n\r\n private set open(val: boolean) {\r\n if (!this.isOpen && val) { // On open\r\n document.addEventListener('click', this.onDocumentClick);\r\n } else if (this.isOpen && !val) { // On close\r\n document.removeEventListener('click', this.onDocumentClick);\r\n }\r\n if (val === true) {\r\n Vue.nextTick(() => {\r\n const results = this.$refs.results as HTMLElement;\r\n const input = this.$refs.input as HTMLElement;\r\n const parent = results.parentElement;\r\n if (parent && parent.tagName !== 'BODY') {\r\n parent.removeChild(results);\r\n document.body.appendChild(results);\r\n results.style.position = 'absolute';\r\n results.style.zIndex = '1030';\r\n }\r\n results.style.top = this.getPosition(input).top + input.clientHeight + 2 + 'px';\r\n results.style.left = this.getPosition(input).left + 'px';\r\n });\r\n }\r\n this.isOpen = val;\r\n }\r\n\r\n protected onChange(value: string) {\r\n this.$emit('input', value);\r\n // if search character length is > minLength emit search event and show results\r\n\r\n if (value && value.length > this.minLength) {\r\n this.$emit('search', value);\r\n if (this.isAsync) {\r\n this.isLoading = true;\r\n } else { // if input is not empty\r\n this.open = true;\r\n if (this.arrowCounter > this.results.length + this.listOffset) {\r\n this.arrowCounter = this.results.length - 1 + this.listOffset;\r\n }\r\n }\r\n } else { // else close options\r\n this.open = false;\r\n this.isLoading = false;\r\n }\r\n }\r\n\r\n private updated() {\r\n const results = this.$refs.results as HTMLElement;\r\n const input = this.$refs.input as HTMLElement;\r\n const parent = results.parentElement;\r\n if (parent) {\r\n results.style.top = this.getPosition(input).top + input.clientHeight + 2 + 'px';\r\n results.style.left = this.getPosition(input).left + 'px';\r\n results.style.width = input.clientWidth + 'px';\r\n } else {\r\n document.removeChild(results);\r\n }\r\n }\r\n\r\n private beforeDestroy() {\r\n const results = this.$refs.results as HTMLElement;\r\n const parent = results.parentElement;\r\n if (parent && parent.tagName === 'BODY') {\r\n parent.removeChild(results);\r\n }\r\n document.removeEventListener('click', this.onDocumentClick);\r\n }\r\n\r\n private isEmpty(val: string) {\r\n return !val;\r\n }\r\n\r\n private getPosition(element: HTMLElement) {\r\n const $ = (window as any).jQuery;\r\n return $(element).offset();\r\n }\r\n\r\n private setResult(result: any) {\r\n this.selected = result;\r\n this.$emit('selected', this.selected);\r\n this.open = false;\r\n }\r\n\r\n private onArrowDown() {\r\n if (this.open) {\r\n if (this.arrowCounter < this.results.length - 1) {\r\n this.arrowCounter = this.arrowCounter + 1;\r\n } else {\r\n this.arrowCounter = 0;\r\n }\r\n }\r\n }\r\n\r\n private onArrowUp() {\r\n if (this.open) {\r\n if (this.arrowCounter > 0) {\r\n this.arrowCounter = this.arrowCounter - 1;\r\n } else {\r\n this.arrowCounter = this.results.length - 1;\r\n }\r\n }\r\n }\r\n\r\n private onEnter() {\r\n if (this.open) {\r\n this.setResult(this.results[this.arrowCounter]);\r\n this.open = false;\r\n this.arrowCounter = - 1;\r\n }\r\n }\r\n\r\n private onExit() {\r\n this.arrowCounter = - 1;\r\n this.open = false;\r\n }\r\n\r\n // tabbing out of the list, return focus to the input\r\n // since this is bound to keydown the browser will handle the next element focus\r\n private resultTab() {\r\n (this.$refs.input as HTMLInputElement).focus();\r\n this.onExit();\r\n }\r\n\r\n // when the field receives focus on a touchscreen we need to know its state before the event\r\n private trackTap() {\r\n const field: HTMLInputElement | undefined = this.$refs.input as HTMLInputElement;\r\n if (field) {\r\n const activeElement: HTMLInputElement | null = document.activeElement as HTMLInputElement;\r\n this.hasFocus = field === activeElement;\r\n }\r\n }\r\n\r\n // for touch devices we are forcing the scroll into view stuff that shopuld happen naturally\r\n // because there are some iThings that it doesn't work on\r\n private scrollIntoView() {\r\n const field: HTMLInputElement | undefined = this.$refs.input as HTMLInputElement;\r\n if (field) {\r\n if (this.hasFocus === false) {\r\n field.scrollIntoView();\r\n }\r\n this.hasFocus = true;\r\n }\r\n }\r\n\r\n private forceFocus() {\r\n this.arrowCounter = 0;\r\n }\r\n\r\n @Watch('listItems')\r\n private changeItems(newVal: string[], oldVal: string[]) {\r\n if (this.isAsync) {\r\n this.isLoading = false;\r\n }\r\n this.results = newVal;\r\n this.open = newVal.length > 0;\r\n if (this.open) {\r\n this.$ariaAnnounce(`${newVal.length} suggestions found, use arrow keys, or explore by touch, to navigate`);\r\n } else {\r\n this.$ariaAnnounce('no suggestions found');\r\n }\r\n }\r\n\r\n @Watch('arrowCounter')\r\n private setFocus(newVal: number) {\r\n const targetLi: HTMLElement | undefined = (this.$refs.resultItem as Element[])[newVal] as HTMLElement;\r\n if (targetLi) {\r\n targetLi.focus();\r\n }\r\n }\r\n\r\n @Watch('isLoading')\r\n private announceLoading(val: boolean) {\r\n if (val) {\r\n this.$ariaAnnounce('finding suggestions');\r\n }\r\n }\r\n\r\n private onDocumentClick(event: any) {\r\n if (this.$refs.thisOptionList !== event.target) {\r\n this.open = false;\r\n this.arrowCounter = - 1;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Autocomplete.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Autocomplete.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Autocomplete.vue?vue&type=template&id=42c7b8aa&\"\nimport script from \"./Autocomplete.vue?vue&type=script&lang=ts&\"\nexport * from \"./Autocomplete.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import * as tslib_1 from \"tslib\";\r\nimport Address from './Address';\r\nvar KleberAddress = /** @class */ (function (_super) {\r\n tslib_1.__extends(KleberAddress, _super);\r\n function KleberAddress(a) {\r\n var _this = _super.call(this, a) || this;\r\n _this.MatchType = a.MatchType || '';\r\n _this.RecordId = a.RecordId || '';\r\n return _this;\r\n }\r\n return KleberAddress;\r\n}(Address));\r\nexport default KleberAddress;\r\n//# sourceMappingURL=KleberAddress.js.map","import * as tslib_1 from \"tslib\";\r\nimport { Component, Watch, Mixins } from 'vue-property-decorator';\r\nimport AddressSelector from './AddressSelector';\r\nimport CustomerAddress from './Address';\r\nimport KleberAddress from './KleberAddress';\r\nvar Kleber = /** @class */ (function (_super) {\r\n tslib_1.__extends(Kleber, _super);\r\n function Kleber() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.Status = 200;\r\n _this.KleberUrl = '/cr_address_autocomplete.ashx';\r\n // aborting fetch requests needs an abort controller (no IE11 support)\r\n _this.abortController = null;\r\n return _this;\r\n }\r\n Kleber.prototype.verifyAddress = function (changedAddress) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var addressString, request, res1;\r\n var _this = this;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n // put together the address verification url\r\n this.Address = new CustomerAddress(changedAddress);\r\n addressString = [\"AddressLine1=\" + changedAddress.Street + \"&\",\r\n \"AddressLine2=\" + changedAddress.ExtraInformation + \"&\",\r\n \"Postcode=\" + changedAddress.Postcode + \"&\",\r\n \"Locality=\" + changedAddress.Suburb + \"&\",\r\n \"State=\" + changedAddress.State].join('');\r\n request = function (method) { return tslib_1.__awaiter(_this, void 0, void 0, function () {\r\n var _this = this;\r\n return tslib_1.__generator(this, function (_a) {\r\n return [2 /*return*/, this.kleberRequestPromise(addressString, method).then(function (result) {\r\n var select = result[0];\r\n if (select.MatchType === '0') {\r\n // Address has matched, and been merged to validation instances address, return true\r\n _this.mergeAddress(_this.Address, select);\r\n return _this.Address;\r\n }\r\n else {\r\n return changedAddress;\r\n }\r\n }, function (reject) {\r\n // If the service call failed, just use the entered address as-is\r\n return _this.Address;\r\n })];\r\n });\r\n }); };\r\n return [4 /*yield*/, request(this.VerifyMethod)];\r\n case 1:\r\n res1 = _a.sent();\r\n if (res1 === changedAddress) {\r\n // if the Verify request returns the same address, try the a repair request\r\n return [2 /*return*/, request(this.RepairMethod).then(function (repres) {\r\n // return whatever the Repair Address sends\r\n return repres;\r\n })];\r\n }\r\n else {\r\n // return the corrected address\r\n return [2 /*return*/, res1];\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Kleber.prototype.statusChange = function (newVal, oldVal) {\r\n if (newVal !== 200) {\r\n this.$emit('kleberStatusError');\r\n }\r\n };\r\n Object.defineProperty(Kleber.prototype, \"URL\", {\r\n get: function () {\r\n return this.KleberUrl;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Kleber.prototype, \"searchSelector\", {\r\n get: function () {\r\n return 'AddressLine=';\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Kleber.prototype, \"retrieveSelector\", {\r\n get: function () {\r\n return 'RecordId=';\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Kleber.prototype, \"SearchMethod\", {\r\n get: function () {\r\n var method = 'DataTools.Capture.Address.Predictive.AuPaf.SearchAddress';\r\n if (this.Address.Country === 'NZL') {\r\n method = 'DataTools.Capture.Address.Predictive.NzPaf.SearchAddress';\r\n }\r\n return method;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Kleber.prototype, \"RetrieveMethod\", {\r\n get: function () {\r\n var method = 'DataTools.Capture.Address.Predictive.AuPaf.RetrieveAddress';\r\n if (this.Address.Country === 'NZL') {\r\n method = 'DataTools.Capture.Address.Predictive.NzPaf.RetrieveAddress';\r\n }\r\n return method;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Kleber.prototype, \"VerifyMethod\", {\r\n get: function () {\r\n var method = 'DataTools.Verify.Address.AuPaf.VerifyAddress';\r\n if (this.Address.Country === 'NZL') {\r\n method = 'DataTools.Verify.Address.NzPaf.VerifyAddress';\r\n }\r\n return method;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Kleber.prototype, \"RepairMethod\", {\r\n get: function () {\r\n return 'DataTools.Repair.Address.AuPaf.RepairAddress';\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Kleber.prototype.kleberRequestPromise = function (input, dataMethod) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var safeInput, url, fetchSettings, abortSignal, res, _a, res1, addresses;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n safeInput = encodeURI(input);\r\n url = this.URL + \"?Method=\" + dataMethod + \"&\" + safeInput;\r\n // we may well have a request in flight, if so shoot it down\r\n this.cancelRequest();\r\n fetchSettings = {};\r\n // If supported by the browser there is an AbortController that we can associate with the fetch promise\r\n // this will give us a way to abort the request\r\n if (typeof (AbortController) === 'function') {\r\n this.abortController = new AbortController();\r\n abortSignal = this.abortController.signal;\r\n fetchSettings = { signal: abortSignal };\r\n }\r\n return [4 /*yield*/, fetch(url, fetchSettings)];\r\n case 1:\r\n res = _b.sent();\r\n _a = this;\r\n return [4 /*yield*/, res.status];\r\n case 2:\r\n _a.Status = _b.sent();\r\n // Check status code before awaiting response body\r\n if (this.Status !== 200) {\r\n return [2 /*return*/, Promise.reject()];\r\n }\r\n else {\r\n this.abortController = null;\r\n }\r\n return [4 /*yield*/, res.json()];\r\n case 3:\r\n res1 = _b.sent();\r\n addresses = [];\r\n res1.DtResponse.Result.forEach(function (a) {\r\n var address = new KleberAddress({});\r\n address.Street = a.AddressLine || a.AddressLine1;\r\n address.ExtraInformation = a.AddressLine2 || '';\r\n address.State = a.State || '';\r\n address.Postcode = a.Postcode;\r\n address.Suburb = a.Locality || a.Suburb;\r\n address.City = a.TownCityMailtown || '';\r\n if (a.RecordId) {\r\n address.RecordId = a.RecordId;\r\n }\r\n if (a.MatchType) {\r\n address.MatchType = a.MatchType;\r\n }\r\n if (a.Suburb === '') {\r\n address.Suburb = address.City;\r\n }\r\n addresses.push(address);\r\n });\r\n return [2 /*return*/, addresses];\r\n }\r\n });\r\n });\r\n };\r\n Kleber.prototype.kleberRequest = function (input, dataMethod, cb) {\r\n var safeInput = encodeURI(input);\r\n var url = this.URL + \"?Method=\" + dataMethod + \"&\" + safeInput;\r\n if (input !== '') {\r\n fetch(url).then(function (res) {\r\n return res.json();\r\n }).then(function (resJson) {\r\n cb(resJson);\r\n });\r\n }\r\n else {\r\n console.error(\"Kleber request input empty\");\r\n }\r\n };\r\n // kill the request that is currently in flight\r\n Kleber.prototype.cancelRequest = function () {\r\n if (this.abortController !== null) {\r\n this.abortController.abort();\r\n this.abortController = null;\r\n }\r\n };\r\n tslib_1.__decorate([\r\n Watch('Status', {})\r\n ], Kleber.prototype, \"statusChange\", null);\r\n Kleber = tslib_1.__decorate([\r\n Component({})\r\n ], Kleber);\r\n return Kleber;\r\n}(Mixins(AddressSelector)));\r\nexport default Kleber;\r\n//# sourceMappingURL=Kleber.js.map","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n // emits 'select' event with kleber address object\n // or empty Address\n // @select=\"handler\", hander(address:any) { ... }\n\n import { Component, Prop, Vue, Watch, Mixins } from 'vue-property-decorator';\n import { IValidatable } from '@/interfaces';\n import Autocomplete from '../ui/Autocomplete.vue';\n import Kleber from '@/components/address/Kleber';\n import AddressSelector from './AddressSelector';\n import CustomerAddress from './Address';\n import KleberAddress from './KleberAddress';\n\n @Component({components: { Autocomplete }})\n\n export default class KleberInput extends Mixins(Kleber) {\n @Prop() protected maxlength!: number;\n @Prop({default: 'kleber'}) private name!: string;\n @Prop({default: false}) private labelAfter!: boolean;\n @Prop() private id!: string;\n @Prop() private initialAddress!: CustomerAddress;\n @Prop() private liveValidation!: boolean;\n @Prop({default: false}) private disabled!: boolean;\n @Prop({default: ''}) private ValidatableProperty!: string;\n @Prop({default: null}) private ValidatableModel!: IValidatable;\n\n\n private typedAddress: string = '';\n private results: KleberAddress[] = [];\n private resultsList: any[] = [];\n private showAutocomplete = true;\n private selectedAddress = '';\n // variables used to ensure we are displaying the relevant resultset\n // in case we get internet weirdness and our results come back in some strange order\n // this is because IE11 doesn't support fetch/AbortController\n private inputVal: string = '';\n private lastSearch: string = '';\n private showingResultsFor: string = '';\n\n private created() {\n if (this.initialAddress) {\n this.Address = this.initialAddress;\n }\n }\n\n get kleberInput() {\n return this.$refs.auto as Autocomplete;\n }\n\n @Watch('liveValidation')\n private isLiveValidation(newVal: boolean, oldVal: boolean) {\n if (newVal) {\n (this.$refs.auto as Autocomplete).enableLiveValidation();\n } else {\n (this.$refs.auto as Autocomplete).disableLiveValidation();\n }\n }\n\n @Watch('initialAddress', {deep: true})\n private resetAddress() {\n this.Address = new CustomerAddress(this.initialAddress);\n }\n\n @Watch('disabled')\n private setDisabled(newVal: boolean, oldVal: boolean) {\n if (newVal) {\n this.kleberInput.disable();\n } else {\n this.kleberInput.enable();\n }\n }\n\n private createResultsList() {\n const newResultsList: any = [];\n this.results.forEach((result, i) => {\n const str = [result.Street, result.Suburb, result.State, result.City, result.Postcode].join(', ');\n const tidyStr = str.replace(/( ,)+/g, '');\n const val = result.RecordId;\n const obj = { label: tidyStr, value: val };\n newResultsList.push(obj);\n });\n const noResult = { label: 'I can\\'t see my address here', value: ''};\n newResultsList.push(noResult);\n this.resultsList = newResultsList;\n }\n\n private inputChange(val: string) {\n this.$emit('input', this.Address.Street);\n // ensure that we always have an up to date representation of the field value\n this.inputVal = val;\n if (val.length < 5) {\n this.cancelRequest();\n this.resultsList = [];\n }\n }\n\n private search(val: string) {\n const request = this.searchSelector + val;\n // fast typers can send multiple requests so we need to know what the last one sent was\n this.lastSearch = val;\n this.kleberRequestPromise(request, this.SearchMethod).then((res) => {\n if (this.lastSearch === val) {\n // this response is the one we are interested in\n this.results = res;\n this.createResultsList();\n // record the searchstring for the current resultset\n this.showingResultsFor = this.lastSearch;\n } else {\n // we do not want to display this resultset, but we may want to clear the display\n if (this.showingResultsFor !== this.inputVal) {\n this.resultsList = [];\n }\n }\n }, (error) => {\n // Abort errors will occur when typing is faster than the network responses, so we can ignore them\n if (error.name !== 'AbortError') {\n this.$emit('kleberStatusError');\n }\n });\n }\n\n private onSelect(selected: any) {\n if (selected.value === '') {\n // this.Address = new CustomerAddress({});\n this.AddressSelected();\n this.$emit('kleberManualEntry');\n } else {\n this.selectedAddress = selected.value;\n if (this.resultsList.find((obj) => obj.value === selected.value)) {\n const request = this.retrieveSelector + this.selectedAddress;\n this.kleberRequestPromise(request, this.RetrieveMethod).then((res) => {\n const address = res[0];\n this.mergeAddress(this.Address, address as CustomerAddress);\n this.AddressSelected();\n });\n }\n }\n }\n}\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KleberInput.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./KleberInput.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./KleberInput.vue?vue&type=template&id=94d9ee50&\"\nimport script from \"./KleberInput.vue?vue&type=script&lang=ts&\"\nexport * from \"./KleberInput.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:[_vm.inError ? 'error-highlight' : '', _vm.hasOptions ? 'select' : 'input', _vm.kleberField ? '' : 'form-floating'],attrs:{\"role\":\"presentation\"}},[(_vm.iconClass)?_c('i',{class:_vm.iconClass}):_vm._e(),(_vm.hasOptions)?_c('select',{ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"type\":_vm.type,\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"aria-describedby\":_vm.ariaDescriber},domProps:{\"value\":_vm.value},on:{\"change\":function($event){return _vm.updateValue($event.target.value)}}},_vm._l((_vm.hasOptions),function(option){return _c('option',{key:option.ID,domProps:{\"value\":option.ID}},[_vm._v(\" \"+_vm._s(option.label)+\" \")])}),0):(_vm.kleberField)?_c('KleberInput',{ref:\"field\",attrs:{\"initialAddress\":_vm.Address,\"id\":_vm.id,\"liveValidation\":_vm.LiveValidation,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"ValidatableProperty\":_vm.ValidatableProperty,\"ValidatableModel\":_vm.ValidatableModel},on:{\"selected\":_vm.kleberSelect,\"input\":_vm.updateValue,\"kleberStatusError\":_vm.kleberStatusError,\"kleberManualEntry\":_vm.kleberManualEntry}},[_vm._t(\"label\",null,{\"slot\":\"label\"})],2):_c('input',{ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"type\":_vm.type,\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"aria-describedby\":_vm.ariaDescriber},domProps:{\"value\":_vm.value},on:{\"input\":function($event){return _vm.updateValue($event.target.value)},\"change\":_vm.onChange}}),(!_vm.kleberField)?_vm._t(\"label\"):_vm._e(),(_vm.inError)?_c('span',{staticClass:\"error-label\",attrs:{\"id\":'error-' + _vm.id},domProps:{\"innerHTML\":_vm._s(_vm.errormessage)}}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// This component extends the input component, adding select support and adding a kleber input.\n// for use in AddressFields component\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport InputField from '@/components/ui/htmlcomponents/InputField.vue';\nimport Autocomplete from '@/components/ui/Autocomplete.vue';\nimport KleberInput from './KleberInput.vue';\nimport CustomerAddress from './Address';\n\ninterface IAddressSelectOption {\n ID: string | number;\n label: string;\n}\n\n@Component({\n components: {KleberInput},\n})\nexport default class AddressField extends InputField {\n @Prop({default: null}) protected hasOptions!: IAddressSelectOption[] | null;\n @Prop() protected kleberField!: boolean;\n @Prop() protected Address!: CustomerAddress;\n\n protected get populated(): boolean {\n if (this.hasOptions) {\n return true;\n } else {\n let isPopulated: boolean = false;\n if (this.value && this.value.length > 0) {\n isPopulated = true;\n }\n return isPopulated;\n }\n }\n\n // need to override the focusField function as we have to drill down into the autocomplete component\n // to find an input field to focus on\n public focusField() {\n const field = this.$refs.field;\n if (field instanceof KleberInput) {\n const autocomplete: Autocomplete = (field as KleberInput).$refs.auto as Autocomplete;\n if (autocomplete !== undefined) {\n this.$nextFocus(autocomplete.$refs.input as HTMLInputElement);\n }\n } else {\n this.$nextFocus(field as HTMLElement);\n }\n }\n\n private kleberSelect(address: CustomerAddress) {\n this.$emit('selected', address);\n }\n\n private kleberStatusError() {\n this.$emit('kleberStatusError');\n }\n\n private kleberManualEntry() {\n this.$emit('kleberManualEntry');\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AddressField.vue?vue&type=template&id=f235415e&\"\nimport script from \"./AddressField.vue?vue&type=script&lang=ts&\"\nexport * from \"./AddressField.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isOpen)?_c('transition',{attrs:{\"name\":\"vue-modal\"},on:{\"enter\":_vm.enter,\"before-leave\":_vm.closing,\"leave\":_vm.closed}},[_c('div',{ref:\"modalElement\",staticClass:\"modal-mask vue-modal\",attrs:{\"tabindex\":\"-1\",\"role\":\"dialog\"},on:{\"click\":function($event){if($event.target !== $event.currentTarget){ return null; }return _vm.cancel()}}},[_c('div',{staticClass:\"modal-dialog modal-dialog-centered\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h3',[_vm._v(\"Change \"),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.CountryLabel)}})]),(_vm.ShowCloseLink)?_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\",\"aria-label\":\"Close\"},on:{\"click\":function($event){return _vm.cancel()}}}):_vm._e()]),_c('div',{staticClass:\"modal-body\"},[_c('p',[_vm._v(\" Your selected delivery address does not match your current website \"),_c('span',{staticClass:\"countryLabel\",domProps:{\"innerHTML\":_vm._s(_vm.CountryLabel)}}),_vm._v(\". If you continue, your shopping bag will be updated based on local product availability after you've signed in again. Do you want to change the \"),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.CountryLabel)}}),_vm._v(\"? \")])]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"accept btn-primary\",on:{\"click\":function($event){return _vm.countryRedirect()}}},[_vm._v(\"Accept\")]),_c('button',{staticClass:\"cancel btn-secondary\",on:{\"click\":function($event){return _vm.cancel()}}},[_vm._v(\"Cancel\")])])])])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { store } from '@/store';\r\nimport Modal from './ui/Modal';\r\nimport ModalContent from './ui/ModalContent.vue';\r\nimport { IShippingCountry } from '../interfaces';\r\n\r\n@Component({\r\n components: {\r\n ModalContent,\r\n },\r\n})\r\n\r\nexport default class ChangeCountryModal extends ModalContent {\r\n @Prop() private selectedCountry!: string;\r\n\r\n get countries(): IShippingCountry[] {\r\n return store.getters.WebsiteSettings.ShippingCountries;\r\n }\r\n\r\n get CountryLabel(): string {\r\n return store.getters.WebsiteSettings.CountryLabel;\r\n }\r\n\r\n private countryRedirect() {\r\n const newCountry = this.countries.find((c) => c.ID === this.selectedCountry);\r\n if (newCountry && newCountry.redirectURL.length > 0) {\r\n const redirectURL: string = newCountry.redirectURL;\r\n const dpyID: number = newCountry.dpyID;\r\n const url: string = this.buildRedirectURL(dpyID, redirectURL);\r\n if (url !== '') {\r\n window.location.assign(url);\r\n }\r\n }\r\n }\r\n\r\n private buildRedirectURL(dpyID: number, redirectURl: string): string {\r\n let url = redirectURl;\r\n if (dpyID !== 0) {\r\n url = redirectURl + '/default.aspx?Z=i&d=' + dpyID;\r\n }\r\n\r\n return url;\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChangeCountryModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChangeCountryModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChangeCountryModal.vue?vue&type=template&id=2fd604f8&\"\nimport script from \"./ChangeCountryModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChangeCountryModal.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Mixins, Watch } from 'vue-property-decorator';\r\nimport { store } from '@/store';\r\nimport AddressSelector from './AddressSelector';\r\nimport AddressSummary from './AddressSummary.vue';\r\nimport CustomerAddress from '@/components/address/Address';\r\nimport ComponentID from '../../mixins/ComponentID';\r\nimport KleberInput from './KleberInput.vue';\r\nimport Kleber from './Kleber';\r\nimport Modal from '@/components/ui/Modal';\r\nimport ModalContent from '@/components/ui/ModalContent.vue';\r\nimport AddressField from '@/components/address/AddressField.vue';\r\nimport * as utilities from '@/utilities';\r\nimport { IShippingCountry, IOrder, IPropertyError, IKeyValuePair\r\n , IAPIResponse, DeliveryLocationType } from '../../interfaces';\r\nimport ChangeCountryModal from '../ChangeCountryModal.vue';\r\nimport Delivery from '../Delivery.vue';\r\n\r\n@Component({\r\n components: {KleberInput, AddressSummary, ModalContent, AddressField, ChangeCountryModal, Delivery},\r\n mixins : [ComponentID],\r\n })\r\n\r\nexport default class AddressFields extends Mixins(AddressSelector) {\r\n @Prop({default: {}}) protected initialAddress: any;\r\n @Prop({default: 'Use this address'}) protected selectText!: string;\r\n @Prop({}) protected initialEmail!: string;\r\n @Prop({default: false}) protected emailRequired!: boolean;\r\n @Prop({default: false}) protected isParcelLockerAddress!: boolean;\r\n @Prop({default: false}) protected hideCancelButton!: boolean;\r\n @Prop({default: false}) private isNew!: boolean;\r\n\r\n private deliverableCountry: boolean = true;\r\n\r\n get useKleber() {\r\n let useKleber = false;\r\n const websiteKleberSettings = (store.getters.WebsiteSettings.CountryRoadSettings as any).Kleber || 0;\r\n if (websiteKleberSettings === '1') {\r\n if (this.Address.Country === 'AUS' || this.Address.Country === 'NZL') {\r\n if (this.kleberStatusOkay) {\r\n useKleber = true;\r\n }\r\n }\r\n }\r\n return useKleber;\r\n }\r\n\r\n private get baseFields() {\r\n if (this.Address.Country === 'AUS') {\r\n return [\r\n 'FirstName',\r\n 'LastName',\r\n 'ContactPhone',\r\n 'Company',\r\n 'Country',\r\n 'Street',\r\n 'ExtraInformation',\r\n 'Suburb',\r\n 'State',\r\n 'Postcode',\r\n ];\r\n } else {\r\n return [\r\n 'FirstName',\r\n 'LastName',\r\n 'ContactPhone',\r\n 'Company',\r\n 'Country',\r\n 'Street',\r\n 'ExtraInformation',\r\n 'Suburb',\r\n 'City', // City is not shown for AUS.\r\n 'State',\r\n 'Postcode',\r\n ];\r\n }\r\n }\r\n\r\n get initialFields() {\r\n if (this.emailRequired) {\r\n const fields = [...this.baseFields];\r\n fields.splice(2, 0, 'Email');\r\n return fields;\r\n } else {\r\n return this.baseFields;\r\n }\r\n }\r\n\r\n private Email: string = '';\r\n // tslint:disable-next-line\r\n private emailRegex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n\r\n private showFullAddress = true;\r\n private kleberValidate = false;\r\n private kleber = new Kleber();\r\n get kleberFields() {\r\n return this.deliveryFields.filter((val) => {\r\n return val !== 'Street' && val !== 'Company';\r\n });\r\n }\r\n private kleberInput = this.$refs.kleberInput as KleberInput;\r\n private kleberAddress: CustomerAddress = new CustomerAddress({});\r\n private validatedAddress: CustomerAddress = new CustomerAddress({});\r\n private isKleberAddress = false;\r\n private kleberStatusOkay = true;\r\n\r\n // tslint:disable-next-line\r\n private australiaRequired = 'FirstName, LastName, ContactPhone, Street, Suburb, State, Postcode, Country'.split(', ');\r\n // tslint:disable-next-line\r\n private nzRequired = 'FirstName, LastName, ContactPhone, Street, Suburb, City, Country'.split(', ');\r\n // tslint:disable-next-line\r\n private worldRequired = 'FirstName, LastName, ContactPhone, Street, Suburb, Country'.split(', ');\r\n\r\n private displayProperties: any = {\r\n FirstName: {label: 'First Name'},\r\n LastName: {label: 'Last Name'},\r\n ContactPhone: {label: 'Phone Number', type: 'tel'},\r\n Company: {label: 'Company'},\r\n Country: {label: store.getters.WebsiteSettings.CountryLabel},\r\n Street: {label: 'Address'},\r\n ExtraInformation : {label: 'Address 2'},\r\n Kleber : {label: 'Address'},\r\n };\r\n\r\n // We need to store the previously set country in case we need to set it back\r\n // (customer may elect not to redirect)\r\n private lastCountry: string = this.Address && this.Address.Country || '';\r\n private selectedCountry: string = this.lastCountry;\r\n\r\n get countries(): IShippingCountry[] {\r\n return store.getters.WebsiteSettings.ShippingCountries;\r\n }\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n public disableDeliveryFields() {\r\n const fields = this.$refs.addressFields as AddressField[];\r\n fields.forEach((f) => {\r\n if (this.deliveryFields.includes(f.$vnode.key as string)) {\r\n f.disable();\r\n }\r\n });\r\n }\r\n\r\n public enableDeliveryFields() {\r\n const fields = this.$refs.addressFields as AddressField[];\r\n fields.forEach((f) => {\r\n if (this.deliveryFields.includes(f.$vnode.key as string)) {\r\n f.enable();\r\n }\r\n });\r\n }\r\n\r\n // when the address fields get rendered we need to focus on them\r\n // depending on the last actions we can focus on the first field (user is editing an address)\r\n // or when the user has selected a ParcelLocker the first required field that does not have any info set\r\n public setFocus(firstField?: boolean) {\r\n if (firstField === true) {\r\n this.focusFirst();\r\n } else {\r\n this.formReturnFocus();\r\n }\r\n }\r\n\r\n protected AddressSelected() {\r\n this.$emit('selected', this.Address, this.Email);\r\n }\r\n\r\n @Watch('Address.Country')\r\n private onCountryChange(newValue: string, oldValue: string) {\r\n const fields = this.$refs.addressFields as AddressField[];\r\n fields.forEach((f) => {\r\n f.disableLiveValidation();\r\n });\r\n }\r\n\r\n @Watch('isParcelLockerAddress')\r\n private parcelLockerFieldLock(newVal: boolean) {\r\n const fields = this.$refs.addressFields as AddressField[];\r\n const country = fields.filter((f) => {\r\n return f.$vnode.key === 'Country';\r\n });\r\n Vue.nextTick(() => {\r\n if (newVal) {\r\n this.disableDeliveryFields();\r\n country[0].disable();\r\n } else {\r\n this.enableDeliveryFields();\r\n country[0].enable();\r\n this.setFocus();\r\n }\r\n });\r\n }\r\n\r\n get visibleFields(): string[] {\r\n if (this.showFullAddress) {\r\n return this.initialFields;\r\n } else {\r\n const vfields = this.initialFields.filter((f) => {\r\n return !this.kleberFields.includes(f);\r\n });\r\n return vfields;\r\n }\r\n }\r\n\r\n get required() {\r\n let required: string[] = [];\r\n if (this.Address.Country === 'AUS') {\r\n required = required.concat(this.australiaRequired);\r\n } else if (this.Address.Country === 'NZL') {\r\n required = required.concat(this.nzRequired);\r\n } else {\r\n this.showFullAddress = true;\r\n required = required.concat(this.worldRequired);\r\n }\r\n if (this.emailRequired) {\r\n required.splice(2, 0, 'Email');\r\n }\r\n return required;\r\n }\r\n\r\n get verifyAddressModal(): ModalContent {\r\n return this.$refs.verifyAddressModal as ModalContent;\r\n }\r\n\r\n // Email field (guest view) is saved against the order, not the shipping address\r\n // we need to ensure it is included with other errors\r\n get combinedErrors(): IPropertyError[] {\r\n return this.Address.Errors.concat(this.order.Errors);\r\n }\r\n\r\n // if the customer has elected to edit the address, we have no idea which field so focus the first one\r\n private focusFirst() {\r\n // but only if we are in the right country (as that will generate a modal)\r\n Vue.nextTick(() => {\r\n const fields: AddressField[] = this.$refs.addressFields as AddressField[];\r\n if (fields.length > 0) {\r\n if (this.deliverableCountry) {\r\n fields[0].focusField();\r\n }\r\n }\r\n });\r\n }\r\n\r\n\r\n // the form may be in some incomplete state, so focus on the first required field that isn't populated\r\n private formReturnFocus() {\r\n Vue.nextTick(() => {\r\n // casting as key-value allows us to access properties by string\r\n const address: IKeyValuePair = this.Address as IKeyValuePair;\r\n\r\n // the name property of the addressfield corresponds to the property on the address object\r\n let targetFieldName: string = '';\r\n\r\n // check required fields to see if they have a value set, we want to focus on the first field that doesn't\r\n this.required.some((fieldName: string) => {\r\n let val: any = address[fieldName];\r\n if (fieldName === 'Email') {\r\n val = this.Email;\r\n }\r\n if (!val || val.length === 0) {\r\n // we have an unset field, so log its name and break out of the 'some' loop\r\n targetFieldName = fieldName;\r\n return true;\r\n }\r\n return false;\r\n });\r\n\r\n if (targetFieldName.length > 0) {\r\n // now we have a field name, find the actual field\r\n const fields: AddressField[] = this.$refs.addressFields as AddressField[];\r\n const targetField: AddressField | undefined = fields.find((field) => {\r\n // AddressField names have had their case changed\r\n return field.name.toLowerCase() === targetFieldName.toLowerCase();\r\n });\r\n // and focus on it\r\n if (targetField) {\r\n targetField.focusField();\r\n }\r\n } else {\r\n // looks like all the required fields are there, so lets focus on the save button\r\n const btn: HTMLElement | undefined = this.$refs.saveButton as HTMLElement;\r\n if (btn !== undefined && this.deliverableCountry) {\r\n this.$nextFocus(btn);\r\n }\r\n }\r\n });\r\n }\r\n\r\n private isRequired(val: string) {\r\n return this.required.indexOf(val) > -1 ? true : false;\r\n }\r\n\r\n private created() {\r\n if (this.initialAddress) {\r\n this.Address = new CustomerAddress(this.initialAddress);\r\n }\r\n if (this.initialEmail) {\r\n this.Email = this.initialEmail;\r\n }\r\n if (this.Address.Country === 'AUS' || this.Address.Country === 'NZL') {\r\n this.isKleberAddress = true;\r\n this.kleberAddress = new CustomerAddress(this.initialAddress);\r\n }\r\n if (this.useKleber && this.isNew) {\r\n this.kleberSetup();\r\n this.kleber.$on('kleberStatusError', () => {\r\n this.kleberStatusError();\r\n });\r\n }\r\n }\r\n\r\n private mounted() {\r\n this.parcelLockerFieldLock(this.isParcelLockerAddress);\r\n Vue.nextTick(() => {\r\n this.$emit('rendered');\r\n });\r\n }\r\n\r\n @Watch('initialAddress', {deep: true})\r\n private resetAddress() {\r\n this.Address = new CustomerAddress(this.initialAddress);\r\n this.showFullAddress = true;\r\n }\r\n\r\n private kleberSetup() {\r\n this.showFullAddress = false;\r\n }\r\n\r\n private kleberStatusError() {\r\n this.kleberStatusOkay = false;\r\n this.expandKleberFields();\r\n }\r\n\r\n private swapForKleber(f: string) {\r\n return this.useKleber && f === 'Street';\r\n }\r\n\r\n private expandKleberFields() {\r\n this.showFullAddress = true;\r\n }\r\n\r\n private kleberSelect(select: CustomerAddress) {\r\n this.kleberAddress = new CustomerAddress(select);\r\n this.isKleberAddress = true;\r\n this.Address = this.mergeAddress(this.Address, this.kleberAddress);\r\n this.expandKleberFields();\r\n this.$ariaAnnounce('Address selected');\r\n this.$nextFocus(this.$refs.saveButton as HTMLElement);\r\n }\r\n\r\n private isKleberField(f: string) {\r\n return this.useKleber && this.kleberFields.indexOf(f) > -1;\r\n }\r\n\r\n private addressChanged() {\r\n this.kleberValidate = true;\r\n }\r\n\r\n private addressMaxLength(field: string) {\r\n switch (field) {\r\n case 'Email':\r\n return 100;\r\n case 'ContactPhone':\r\n return 15;\r\n case 'Company':\r\n return 35;\r\n default:\r\n return 50;\r\n }\r\n }\r\n\r\n private updateAddress(field: string, value: string) {\r\n if (field === 'Email') {\r\n this.Email = value;\r\n } else {\r\n this.Address[field] = value;\r\n }\r\n }\r\n\r\n private label(f: string) {\r\n return this.displayProperties[f] && this.displayProperties[f].label ? this.displayProperties[f].label : f;\r\n }\r\n\r\n private type(f: string) {\r\n return this.displayProperties[f] && this.displayProperties[f].type ? this.displayProperties[f].type : 'text';\r\n }\r\n\r\n private cancel() {\r\n this.$emit('cancel');\r\n }\r\n\r\n private isEmpty(val: string) {\r\n return !val;\r\n }\r\n\r\n get validateModal() {\r\n return new Modal (true, true, Modal.Types.CONFIRM, 'kleber-verify-address');\r\n }\r\n\r\n private submit() {\r\n const saveButton: HTMLButtonElement = (this.$refs.saveButton as HTMLButtonElement);\r\n saveButton.disabled = true;\r\n\r\n if (!this.showFullAddress) {\r\n this.showFullAddress = true;\r\n }\r\n\r\n if (this.isKleberAddress) {\r\n this.deliveryFields.forEach((f) => {\r\n if (this.Address[f] !== this.kleberAddress[f]) {\r\n this.kleberValidate = true;\r\n }\r\n });\r\n }\r\n const locationType: DeliveryLocationType =\r\n // tslint:disable-next-line:max-line-length\r\n (this.$parent.$parent as Delivery).checkIfPOBoxOrParcelLocker(this.Address.Company, this.Address.Street, this.Address.ExtraInformation);\r\n\r\n if (this.kleberValidate && !this.isParcelLockerAddress && locationType !== DeliveryLocationType.ParcelLocker) {\r\n this.kleber.verifyAddress(this.Address).then((a) => {\r\n this.validatedAddress = a as CustomerAddress;\r\n let matched = true;\r\n this.deliveryFields.forEach((f) => {\r\n if (this.Address[f] !== this.validatedAddress[f] && f !== 'Company') {\r\n matched = false;\r\n }\r\n });\r\n if (this.validatedAddress !== this.Address && !matched) {\r\n this.verifyAddressModal.Open();\r\n } else {\r\n this.AddressSelected();\r\n this.kleberValidate = false;\r\n }\r\n });\r\n } else {\r\n this.AddressSelected();\r\n }\r\n }\r\n\r\n private useVerifiedAddress() {\r\n this.Address = this.mergeAddress(this.Address, this.validatedAddress);\r\n this.kleberAddress = new CustomerAddress(this.validatedAddress);\r\n this.kleberValidate = false;\r\n this.submit();\r\n }\r\n\r\n private useNonVerifiedAddress() {\r\n if (this.kleberValidate) {\r\n this.kleberValidate = false;\r\n this.isKleberAddress = false;\r\n this.submit();\r\n }\r\n }\r\n\r\n private hasOptions(val: string) {\r\n if (val === 'Country') {\r\n return this.countries;\r\n } else if (val === 'State') {\r\n const country = this.countries.find((c) => c.ID === this.Address.Country);\r\n if (country && country.states && country.states.length > 1) {\r\n const states: any[] = [];\r\n if (!this.Address.State) {\r\n states.push({ID: '', label: 'Please Select'});\r\n }\r\n country.states.forEach((state) => {\r\n const stateObj = {\r\n ID: state,\r\n label: state,\r\n };\r\n states.push(stateObj);\r\n });\r\n return states;\r\n }\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n @Watch('Address.Country')\r\n private countryChanged(newVal: string, oldVal: string) {\r\n if (newVal !== oldVal) {\r\n this.$emit('countryChanged');\r\n this.lastCountry = oldVal;\r\n this.selectedCountry = this.lastCountry;\r\n const country: IShippingCountry | undefined = this.countries.find((c) => {\r\n return c.ID === newVal;\r\n });\r\n if (country && country.redirectURL.length > 0) {\r\n this.selectedCountry = country.ID;\r\n const modal = this.$refs.countryChangeModal as ModalContent;\r\n this.deliverableCountry = false;\r\n const countryfield: HTMLElement | null = document.querySelector('select[name=\"country\"]');\r\n if (countryfield) {\r\n this.$nextFocus(countryfield);\r\n }\r\n modal.Open();\r\n } else {\r\n this.deliverableCountry = true;\r\n }\r\n }\r\n }\r\n\r\n private countryRestore() {\r\n let restoreTo: string = this.lastCountry;\r\n if (restoreTo.length === 0) {\r\n // Somehow we don't have a previous value, so find the first available one\r\n // this should never happen, but if some config has changed while the order is live, maybe...\r\n const shippableCountries = this.countries.filter((c) => c.deliverable);\r\n if (shippableCountries.length > 0) {\r\n restoreTo = shippableCountries[0].ID;\r\n }\r\n }\r\n if (this.Address.Country !== restoreTo) {\r\n this.Address.Country = restoreTo;\r\n this.$emit('countryReset', restoreTo);\r\n }\r\n }\r\n\r\n get countryChangeModal() {\r\n return new Modal (true, true, Modal.Types.CONFIRM);\r\n }\r\n\r\n private fieldChanged(field: string, value: string) {\r\n if (field === 'Email') {\r\n // Wait to validate email so our focus doesn't get lost and go back to the email field\r\n Vue.nextTick(() => {\r\n this.checkEmail();\r\n });\r\n }\r\n }\r\n\r\n private checkEmail() {\r\n const email = this.Email;\r\n if (email.trim() !== '') {\r\n utilities.fetch('/client/v2/cart/order/validateemail/',\r\n {\r\n method: 'PUT',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(email),\r\n })\r\n .then((response: any) => {\r\n // Find the email input and set or clear the error\r\n (this.$refs.addressFields as object[]).forEach((el: any) => {\r\n if (el.name === 'email') {\r\n if (response.ok) {\r\n el.clearError();\r\n } else {\r\n response.json().then((data: IAPIResponse) => {\r\n let errorMsg: string = 'Please enter a valid email address';\r\n let overrideMsg: string = '';\r\n if (data.Errors) {\r\n overrideMsg = utilities.getErrorMessage(data.Errors[0]);\r\n if (overrideMsg !== '') {\r\n errorMsg = overrideMsg;\r\n }\r\n }\r\n el.setError(errorMsg);\r\n // announce error to user then focus on field\r\n this.$ariaAnnounce(errorMsg);\r\n el.focusField();\r\n });\r\n }\r\n }\r\n });\r\n });\r\n }\r\n }\r\n\r\n @Watch('combinedErrors')\r\n private focusFirstErrorField(newErrors: IPropertyError[]) {\r\n if (newErrors.length > 0) {\r\n // we need to wait for the changes to propogate down into the addressfields\r\n Vue.nextTick(() => {\r\n // these components will be in the order that they appear in the page\r\n const fieldComponents: Vue[] | undefined = this.$refs.addressFields as Vue[];\r\n // find the first one with an error in the list and focus on its input field\r\n fieldComponents.some((component: Vue) => {\r\n // the validatable property of the InputField corresponds to the Name property of the error object\r\n const field = (component as AddressField);\r\n const hasError = field.inError;\r\n // InputField exposes a handy focusField method\r\n if (hasError) {\r\n field.focusField();\r\n return true;\r\n }\r\n // returning true will satisfy the 'some' condition and break us out of the loop\r\n return hasError;\r\n });\r\n });\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressFields.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressFields.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AddressFields.vue?vue&type=template&id=38de8609&\"\nimport script from \"./AddressFields.vue?vue&type=script&lang=ts&\"\nexport * from \"./AddressFields.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{ref:\"addressbook\"},[_c('Animation',{attrs:{\"AnimateHeight\":true,\"appear\":true}},[(!_vm.isLoaded)?_c('div',[_c('div',{staticClass:\"addressbook-loading loading\"})]):_vm._e()]),_c('Animation',{attrs:{\"AnimateHeight\":true}},[(_vm.isLoaded)?_c('fieldset',[_c('legend',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('addressbook-legend'),expression:\"'addressbook-legend'\"}]},[_vm._v(\"Select a Delivery Address\")]),_c('ul',_vm._l((_vm.addresses),function(address,index){return _c('li',{key:index,staticClass:\"entry\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedAddressID),expression:\"selectedAddressID\"}],ref:\"inputField\",refInFor:true,attrs:{\"type\":\"radio\",\"name\":\"address\",\"id\":'address-'+ index},domProps:{\"value\":address.ID,\"checked\":_vm._q(_vm.selectedAddressID,address.ID)},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }_vm.selectedAddressID = address.ID},\"change\":function($event){_vm.selectedAddressID=address.ID}}}),_c('label',{attrs:{\"for\":'address-' + index}},[_c('i',{class:_vm.selectedAddressID == address.ID ? 'icon-radio-btn-selected' : 'icon-radio-btn',attrs:{\"aria-hidden\":\"true\"}}),_c('AddressSummary',{attrs:{\"Address\":address}})],1),_c('button',{staticClass:\"btn btn-edit\",class:address.Type !== 'None' ? 'non-removable' : '',attrs:{\"aria-label\":\"Edit this address\"},on:{\"click\":function($event){return _vm.setToEdit(address)}}},[_c('i',{staticClass:\"icon-edit\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Edit\")]),(address.Type === 'None')?_c('button',{staticClass:\"btn btn-delete\",attrs:{\"aria-label\":\"Delete this address\"},on:{\"click\":function($event){return _vm.deleteAddress(address)}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Delete\")]):_vm._e()])}),0)]):_vm._e()]),_c('ChangeCountryModal',{ref:\"countryChangeModal\",attrs:{\"modal\":_vm.countryChangeModalConfig,\"selectedCountry\":_vm.selectedCountry},on:{\"cancel\":_vm.countryRestore}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Mixins, Watch } from 'vue-property-decorator';\r\nimport { store } from '../../store';\r\nimport * as utilities from '../../utilities';\r\nimport AddressSummary from './AddressSummary.vue';\r\nimport AddressSelector from './AddressSelector';\r\nimport CustomerAddress from '@/components/address/Address';\r\nimport Animation from '@/components/ui/animations/Animation.vue';\r\nimport ChangeCountryModal from '../ChangeCountryModal.vue';\r\nimport { IShippingCountry } from '../../interfaces';\r\nimport ModalContent from '@/components/ui/ModalContent.vue';\r\nimport Modal from '@/components/ui/Modal';\r\n\r\n@Component({components: { AddressSummary, Animation, ChangeCountryModal, ModalContent }})\r\nexport default class AddressBook extends Mixins(AddressSelector) {\r\n\r\n @Prop({default: false})\r\n private fromEdit!: boolean;\r\n\r\n private addresses: CustomerAddress[] = [];\r\n private addressBook: string = '';\r\n private selectedAddressID: number = -1;\r\n private isEditing: boolean[] = [];\r\n private isLoaded = false;\r\n private selectedCountry: string = '';\r\n\r\n private countryChangeModalConfig: Modal = new Modal(true, true, 'confirm');\r\n\r\n private get currentCountry(): string {\r\n const country = store.getters.WebsiteSettings.Country;\r\n if (country === 'au') {\r\n return 'AUS';\r\n } else if (country === 'nz') {\r\n return 'NZL';\r\n } else {\r\n return 'ROW';\r\n }\r\n }\r\n public mounted() {\r\n this.setup();\r\n }\r\n\r\n public get addressCount(): number {\r\n if (this.addresses.length === 1) {\r\n const singleAddress: CustomerAddress = this.addresses[0];\r\n return (singleAddress.Street.length > 0 && singleAddress.Postcode.length > 0) ? 1 : 0;\r\n } else {\r\n return this.addresses.length;\r\n }\r\n }\r\n\r\n private setup() {\r\n utilities.fetch('/client/v2/customer/addressbook').then((res) => {\r\n if (res.ok) {\r\n res.json().then((data) => {\r\n this.addressBook = data;\r\n this.isLoaded = true;\r\n this.createAddresses(this.addressBook);\r\n\r\n // if there is only one address we should pre-select it, as long as:\r\n // a) there is no address against the order already\r\n // b) the address country is valid for delivery from the current site (or doesn't have one)\r\n\r\n if (this.addresses.length === 1) {\r\n // we only have one address in the addressbook, so check the order for an addressbook address\r\n const orderAddress: CustomerAddress | null | undefined = store.getters.Order.ShippingAddress;\r\n if (!orderAddress || orderAddress.ID === 0) {\r\n // no address set (or it's a pickup one), so are we in the right country??\r\n const singleAddress: CustomerAddress = this.addresses[0];\r\n let country = singleAddress.Country;\r\n if (country.length === 0) {\r\n // we've got some of CRG's famous bad customer data\r\n // - no country details against the customer,\r\n // so let's just force the default for the current satellite.\r\n const defaultCountry = this.currentCountry === 'ROW' ? 'USA' : this.currentCountry;\r\n this.addresses[0].Country = defaultCountry;\r\n country = defaultCountry;\r\n }\r\n // we only have three site 'countries' AUS, NZL and ROW\r\n country = country === 'AUS' || country === 'NZL' ? country : 'ROW';\r\n if (country === this.currentCountry) {\r\n // country matches :) let's use this address\r\n this.$emit('auto-select');\r\n this.selectedAddressID = singleAddress.ID;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n\r\n private setToEdit(address: CustomerAddress) {\r\n this.$emit('edit', address);\r\n }\r\n\r\n private deleteAddress(addr: CustomerAddress) {\r\n this.$ariaAnnounce('deleting saved address');\r\n utilities.fetch(`/client/v2/customer/addressbook?addressID=${addr.ID}`, {\r\n method: 'delete',\r\n }).then((res) => {\r\n if (res.ok) {\r\n this.setup();\r\n this.$ariaAnnounce('address deleted');\r\n }\r\n });\r\n }\r\n\r\n get countries(): IShippingCountry[] {\r\n return store.getters.WebsiteSettings.ShippingCountries;\r\n }\r\n\r\n @Watch('selectedAddressID')\r\n private onAddressSelection(val: number, oldval: number) {\r\n const selectedAddress = this.addresses.find((address) => address.ID === val);\r\n if (selectedAddress) {\r\n // Show the change country popup if the selected country is not the same as the curret satellite.\r\n let selectedCountry = selectedAddress.Country;\r\n selectedCountry = selectedCountry !== 'AUS' && selectedCountry !== 'NZL' ? 'ROW' : selectedCountry;\r\n\r\n if (selectedCountry !== this.currentCountry) {\r\n const country: IShippingCountry | undefined = this.countries.find((c) => {\r\n return c.ID === selectedAddress.Country;\r\n });\r\n if (country && country.redirectURL.length > 0) {\r\n this.selectedCountry = selectedAddress.Country;\r\n const modal = this.$refs.countryChangeModal as ModalContent;\r\n modal.Open();\r\n return;\r\n }\r\n }\r\n this.Address = selectedAddress;\r\n this.AddressSelected();\r\n }\r\n }\r\n\r\n private countryRestore() {\r\n this.selectedAddressID = 0;\r\n }\r\n\r\n private createAddresses(data: any) {\r\n this.addresses = [];\r\n data.forEach((a: any, i: number) => {\r\n if (a.Type !== 'Shipping') {\r\n const address = new CustomerAddress(a);\r\n this.addresses.push(address);\r\n this.isEditing[i] = false;\r\n }\r\n });\r\n }\r\n\r\n @Watch('isLoaded')\r\n private addressesLoaded(newVal: boolean, oldVal: boolean) {\r\n if (this.fromEdit) {\r\n Vue.nextTick(() => {\r\n if (newVal === true) {\r\n const inputs: Element[] = this.$refs.inputField as Element[];\r\n if (inputs.length > 0) {\r\n this.$nextFocus(inputs[0] as HTMLInputElement);\r\n }\r\n }\r\n });\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressBook.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddressBook.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AddressBook.vue?vue&type=template&id=0f90b8dc&\"\nimport script from \"./AddressBook.vue?vue&type=script&lang=ts&\"\nexport * from \"./AddressBook.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"delivery-method\",class:[_vm.editing ? 'editing' : '', _vm.isSelected ? 'selected' : '', _vm.noSelectionMade ? 'no-selection-made' : '', _vm.oneSelectionAvailable ? 'single-selection-available' : '']},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - No Available Freight'],\"conditions\":_vm.FreightProviders.length === 0}}),(_vm.FreightProviders.length > 0)?_c('fieldset',[(_vm.FreightProviders.length === 1)?_c('legend',{key:\"Title\"},[_vm._v(\"Delivery Method\")]):_c('legend',{key:\"Select\"},[_vm._v(\"Select A Delivery Method\")]),_c('div',{class:_vm.statusClass},[_vm._l((_vm.FreightProviders),function(provider){return _c('DeliveryOption',{key:provider.ID,attrs:{\"Provider\":provider,\"startOpen\":(_vm.FreightProviders.length === 1 || (!provider.IsSameday && !_vm.isSelected)) && provider.ID !== _vm.order.ShippingMethod,\"preSelected\":_vm.FreightProviders.length === 1 && provider.ID !== _vm.order.ShippingMethod && !_vm.showATL,\"showATL\":_vm.showATL,\"showATLOption\":_vm.showATLOption,\"isSelected\":_vm.selectedID === provider.ID},on:{\"saved\":function($event){_vm.editing = false; _vm.showAllOptions = false},\"activated\":_vm.setActive}})}),(_vm.allowEdit && !_vm.oneSelectionAvailable)?_c('button',{ref:\"editButton\",staticClass:\"btn btn-delete\",attrs:{\"aria-describedby\":\"selected-delivery-method\"},on:{\"click\":function($event){_vm.editing=true; _vm.showAllOptions = true;}}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Change delivery option\")]):_vm._e(),(_vm.allowEdit && _vm.oneSelectionAvailable)?_c('button',{staticClass:\"btn btn-edit\",on:{\"click\":function($event){_vm.editing=true;}}},[_c('i',{ref:\"editButton\",staticClass:\"icon-edit\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Edit delivery option\")]):_vm._e()],2)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.Provider.IsSameday || _vm.sameDayInfo)?_c('div',{ref:\"wrapper\",staticClass:\"delivery-method-content\",class:_vm.stateClasses},[_c('button',{ref:\"selectorButton\",staticClass:\"btn-radio-selector\",class:_vm.isSelected ? 'selected' : 'unselected',attrs:{\"disabled\":!_vm.Available,\"tabindex\":_vm.isSelected && (!_vm.isActive) ? '-1' : '0',\"id\":_vm.isSelected ? 'selected-delivery-method' : _vm.ComponentID},on:{\"click\":function($event){$event.preventDefault();return _vm.activateMe(true)}}},[_c('span',{staticClass:\"delivery-method-price\",attrs:{\"role\":\"text\"}},[_c('PriceDisplay',{staticClass:\"d-md-none\",attrs:{\"price\":_vm.price}}),(!_vm.Provider.IsSameday)?_c('i',{staticClass:\"icon-delivery\",attrs:{\"aria-hidden\":\"true\"}}):_c('i',{staticClass:\"icon-delivery-fast\",attrs:{\"aria-hidden\":\"true\"}})],1),_c('span',{staticClass:\"delivery-method-name\",attrs:{\"role\":\"text\"}},[_c('span',{attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.displayName)}}),(_vm.Available)?_c('span',{staticClass:\"d-none d-md-inline\",attrs:{\"role\":\"text\"}},[_vm._v(\" - \"),_c('PriceDisplay',{attrs:{\"price\":_vm.price}})],1):_vm._e()]),(_vm.Provider.IsSameday)?_c('span',{staticClass:\"delivery-method-description\",attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.sameDayInfoTimeframe)}}):_c('span',{staticClass:\"delivery-method-description\",attrs:{\"role\":\"text\"}},[_c('ContentManagement',{attrs:{\"slot\":\"body\",\"snippet\":_vm.snippets['Checkout - Standard Delivery']},slot:\"body\"})],1),(_vm.warningMessage)?_c('span',{staticClass:\"warning-message\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.warningMessage))]):_vm._e(),(_vm.isSelected)?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"selected\")]):_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"not selected\")])]),(_vm.showATL)?_c('div',{staticClass:\"delivery-method-option\"},[_c('Animation',{attrs:{\"name\":'slide-up',\"AnimateParentHeight\":_vm.$refs.wrapper}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],class:_vm.Provider.IsSameday? 'sameday-delivery' : 'standard-delivery'},[(_vm.sameDayInfo && _vm.mixedAvailability)?_c('ul',{staticClass:\"delivery-item-list\",attrs:{\"aria-label\":\"Item availability list\"}},_vm._l((_vm.SameDayItems),function(item){return _c('DeliveryItem',{key:item.ID,attrs:{\"DeliveryItem\":item}})}),1):_vm._e(),(_vm.showATLOption)?_c('div',{staticClass:\"authority-to-leave\"},[_c('h4',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('authority-to-leave-h4'),expression:\"'authority-to-leave-h4'\"}]},[_vm._v(\"If you're not Home?\")]),_c('span',{staticClass:\"terms-and-conditions\"},[_c('a',{attrs:{\"href\":\"#\",\"aria-label\":\"Authority to leave terms and conditions\"},on:{\"click\":function($event){$event.preventDefault();return _vm.showTerms()}}},[_vm._v(\"Terms & Conditions\")])]),_c('p',[(_vm.Provider.IsSameday)?_c('em',[_vm._v(\"*\")]):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.atlSelected),expression:\"atlSelected\"}],ref:\"atlCheckbox\",attrs:{\"type\":\"checkbox\",\"id\":_vm.ComponentID + '-atl',\"required\":_vm.Provider.IsSameday,\"value\":\"yes\"},domProps:{\"checked\":Array.isArray(_vm.atlSelected)?_vm._i(_vm.atlSelected,\"yes\")>-1:(_vm.atlSelected)},on:{\"change\":function($event){var $$a=_vm.atlSelected,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=\"yes\",$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.atlSelected=$$a.concat([$$v]))}else{$$i>-1&&(_vm.atlSelected=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.atlSelected=$$c}}}}),_c('label',{attrs:{\"for\":_vm.ComponentID + '-atl'}},[(_vm.atlSelected)?_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e(),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.atlLabel)}})])])]):_vm._e(),(_vm.sameDayInfo && _vm.mixedAvailability)?_c('p',{staticClass:\"availability-save-warning warning-message\"},[_vm._v(\" If you save, the unavailable items will be removed from your order. \")]):_vm._e(),_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('delivery-save-btn'),expression:\"'delivery-save-btn'\"}],staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.validateAndSave()}}},[_vm._v(\"Save Delivery Method\")])])]),(_vm.isSelected && !_vm.isActive && _vm.showATLOption)?_c('ATLStatusMessage',[_c('span',{staticClass:\"terms-and-conditions\",attrs:{\"slot\":\"termslink\"},slot:\"termslink\"},[_c('a',{attrs:{\"href\":\"#\",\"aria-label\":\"Authority to leave terms and conditions\"},on:{\"click\":function($event){$event.preventDefault();return _vm.showTerms()}}},[_vm._v(\"Terms & Conditions\")])])]):_vm._e()],1):_vm._e(),(_vm.showAtlModal)?_c('ModalContent',{ref:\"atlModal\",attrs:{\"modal\":_vm.atlModalInfo},on:{\"closed\":function($event){_vm.showAtlModal = false}}},[_c('p',{staticClass:\"alert alert-danger\",attrs:{\"slot\":\"body\"},slot:\"body\"},[_vm._v(\"Please confirm you have read the Terms & Conditions and give permission to leave the parcel at your provided address.\")]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"OK\")])]):_vm._e(),(_vm.showRemoveModal)?_c('ModalContent',{ref:\"removeModal\",attrs:{\"modal\":_vm.removeModalInfo},on:{\"closed\":function($event){_vm.showRemoveModal = false},\"confirm\":function($event){return _vm.save()}}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Remove \"+_vm._s(_vm.itemString(_vm.unavailableItems.length))+\"?\")]),_c('div',{staticClass:\"items-for-removal\",attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('div',{staticClass:\"message\",domProps:{\"innerHTML\":_vm._s(_vm.removeItemsMessage)}}),_c('ul',{staticClass:\"delivery-item-list\"},_vm._l((_vm.unavailableItems),function(item){return _c('DeliveryItem',{key:item.ID,attrs:{\"DeliveryItem\":item}})}),1),_c('div',{staticClass:\"message\",domProps:{\"innerHTML\":_vm._s(_vm.removeItemsContinueMessage)}})]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"Remove \"+_vm._s(_vm.itemString(_vm.unavailableItems.length))+\" & Continue\")]),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('deliveryoption-removeitems-modal-cancel'),expression:\"'deliveryoption-removeitems-modal-cancel'\"}],attrs:{\"slot\":\"cancel-text\"},slot:\"cancel-text\"},[_vm._v(\"No, keep all items and cancel\")])]):_vm._e(),_c('ModalContent',{ref:\"termsModal\",attrs:{\"modal\":_vm.termsModalInfo}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Authority To Leave\")]),_c('ContentManagement',{attrs:{\"slot\":\"body\",\"snippet\":_vm.snippets['Authority to Leave - Terms']},slot:\"body\"})],1)],1):_c('div',{staticClass:\"delivery-method-loading\"},[_c('p',[_vm._v(\"Loading more delivery options...\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"atl-message\",class:_vm.hasAgreed ? 'atl-selected' : 'atl-unselected'},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.statusMessage)}}),_vm._t(\"termslink\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n\r\nimport { store } from '../store';\r\nimport { IOrder, IKeyValuePair } from '../interfaces';\r\n\r\n@Component({})\r\nexport default class ATLStatusMessage extends Vue {\r\n private get orderAttributes(): IKeyValuePair {\r\n return store.getters.Order.Attributes;\r\n }\r\n private get hasAgreed(): boolean {\r\n return this.orderAttributes['Authority To Leave'] === 'Y';\r\n }\r\n private get statusMessage(): string {\r\n if (this.hasAgreed) {\r\n return store.getters.getGlossaryEntryByKey('atlstatusmessage-selected') || '';\r\n } else {\r\n return store.getters.getGlossaryEntryByKey('atlstatusmessage-unselected') || '';\r\n }\r\n }\r\n}\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ATLStatusMessage.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ATLStatusMessage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ATLStatusMessage.vue?vue&type=template&id=436b58f0&\"\nimport script from \"./ATLStatusMessage.vue?vue&type=script&lang=ts&\"\nexport * from \"./ATLStatusMessage.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:['delivery-item', _vm.DeliveryItem.Available ? 'available' : 'unavailable']},[_c('img',{staticClass:\"delivery-item-product-image\",attrs:{\"src\":_vm.OrderItem.Image,\"alt\":\"\"}}),_c('div',{staticClass:\"details\"},[_c('i',{class:_vm.DeliveryItem.Available ? 'icon-available' : 'icon-unavailable',attrs:{\"aria-hidden\":\"true\"}}),(_vm.OrderItem.Title)?_c('span',{staticClass:\"product-name\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.OrderItem.Title))]):_vm._e(),(_vm.Colour)?_c('span',{staticClass:\"product-colour\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Colour:\")]),_vm._v(_vm._s(_vm.Colour))]):_vm._e(),(_vm.Size)?_c('span',{staticClass:\"product-size\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size:\")]),_vm._v(_vm._s(_vm.Size))]):_vm._e(),(_vm.OrderItem.PersonalisationInfo)?_c('div',{staticClass:\"personalised-details\"},[_c('PersonalisationDetails',{attrs:{\"info\":_vm.OrderItem.PersonalisationInfo}})],1):_vm._e(),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"},domProps:{\"textContent\":_vm._s(_vm.DeliveryItem.Available ? 'available' : 'unavailable')}}),(_vm.OrderItem.PersonalisationInfo)?_c('span',{staticClass:\"personalised-delivery-warning\",attrs:{\"role\":\"text\"}},[_vm._v(\"Personalised items are not available for Same Day Delivery\")]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { IOrderItem, ISameDayDeliveryItem, IPersonalisationInfo } from '@/interfaces';\r\nimport { store } from '@/store';\r\nimport PersonalisationDetails from './PersonalisationDetails.vue';\r\n\r\n\r\n@Component({\r\n components: { PersonalisationDetails},\r\n})\r\nexport default class DeliveryItem extends Vue {\r\n @Prop() private DeliveryItem!: ISameDayDeliveryItem;\r\n\r\n private get OrderItem(): IOrderItem | undefined {\r\n return store.getters.Order.Items.find((item) => item.ID === this.DeliveryItem.ID);\r\n }\r\n\r\n private get Colour(): string {\r\n let colour: string = '';\r\n if (this.OrderItem) {\r\n if (this.OrderItem.Colour && this.OrderItem.Colour.toLowerCase() !== 'none') {\r\n colour = this.OrderItem.Colour;\r\n }\r\n }\r\n return colour;\r\n }\r\n\r\n private get Size(): string {\r\n let size: string = '';\r\n if (this.OrderItem) {\r\n if (this.OrderItem.Size && this.OrderItem.Size.toLowerCase() !== 'none') {\r\n size = this.OrderItem.Size;\r\n }\r\n }\r\n return size;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeliveryItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeliveryItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DeliveryItem.vue?vue&type=template&id=a7987e90&\"\nimport script from \"./DeliveryItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./DeliveryItem.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Mixins, Watch} from 'vue-property-decorator';\r\nimport {\r\n DispatchAction,\r\n IOrderItem,\r\n ISameDayDeliveryInfo,\r\n ISameDayDeliveryItem,\r\n IFreightProvider,\r\n IOrder,\r\n IAddressBook,\r\n IKeyValuePair,\r\n IWebsiteSettings,\r\n DeliveryLocationType,\r\n} from '../interfaces';\r\nimport { store } from '../store';\r\nimport * as utilities from '@/utilities';\r\n\r\nimport ATLStatusMessage from '@/components/ATLStatusMessage.vue';\r\nimport ComponentID from '@/mixins/ComponentID';\r\nimport ContentManagement from '@/components/ContentManagement.vue';\r\nimport DeliveryItem from '@/components/items/DeliveryItem.vue';\r\nimport Modal from '@/components/ui/Modal';\r\nimport ModalContent from '@/components/ui/ModalContent.vue';\r\nimport PriceDisplay from '@/components/pricing/PriceDisplay.vue';\r\nimport Price from '@/components/pricing/Price';\r\nimport Animation from '@/components/ui/animations/Animation.vue';\r\n\r\n@Component({\r\n components: {\r\n ATLStatusMessage,\r\n ComponentID,\r\n ContentManagement,\r\n DeliveryItem,\r\n ModalContent,\r\n PriceDisplay,\r\n Animation,\r\n },\r\n})\r\nexport default class DeliveryOption extends Mixins(ComponentID) {\r\n @Prop() private Provider!: IFreightProvider;\r\n @Prop({default: false}) private startOpen!: boolean;\r\n @Prop({default: false}) private preSelected!: boolean;\r\n @Prop({default: false}) private showATL!: boolean;\r\n @Prop({default: true}) private showATLOption!: boolean;\r\n @Prop({default: false}) private isSelected!: boolean;\r\n\r\n private sameDayInfo: ISameDayDeliveryInfo | null = null;\r\n\r\n // isActive controls the showing/hiding of the description, atl details and select button\r\n private isActive: boolean = this.startOpen;\r\n\r\n\r\n private termsModalInfo: Modal = new Modal(true, true, 'popup');\r\n\r\n // controls/reacts to the checking of the ATL checkbox\r\n private atlSelected: boolean = false;\r\n\r\n // controls the display of the required ATL message\r\n private showAtlModal: boolean = false;\r\n private atlModalInfo: Modal = new Modal(true, false, 'alert');\r\n\r\n // controls the display of the items to be removed modal\r\n private showRemoveModal: boolean = false;\r\n private removeModalInfo: Modal = new Modal(true, true, 'confirm', 'remove-items');\r\n\r\n private get unavailableItems(): ISameDayDeliveryItem[] {\r\n if (this.sameDayInfo) {\r\n return this.sameDayInfo.Items.filter((item) => item.QuantityRequested > item.QuantityAvailable);\r\n }\r\n return [];\r\n }\r\n\r\n private get atlLabel(): string {\r\n if (this.Provider.IsSameday) {\r\n // tslint:disable-next-line:max-line-length\r\n return 'As part of the Same Day Delivery service, you confirm that you have read the Terms & Conditions and give permission for our driver to leave the delivery.';\r\n }\r\n return 'Tick this box if you agree that our driver can leave the delivery if you are out';\r\n }\r\n\r\n private get isPOBoxOrParcelLocker(): boolean {\r\n if (this.order.ShippingAddress.LocationType !== DeliveryLocationType.None) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n private get orderPostcode(): string {\r\n return this.order.ShippingAddress.Postcode;\r\n }\r\n\r\n private get displayName(): string {\r\n if (this.Provider.IsSameday) {\r\n return this.sameDayInfo ? this.sameDayInfo.Title : 'Same Day Delivery';\r\n }\r\n return 'Standard Delivery';\r\n }\r\n\r\n private get removeItemsMessage(): string {\r\n return store.getters.getGlossaryEntryByKey('deliveryoption-removeitems-modal-items-message') || '';\r\n }\r\n\r\n private get removeItemsContinueMessage(): string {\r\n return store.getters.getGlossaryEntryByKey('deliveryoption-removeitems-modal-continue-message') || '';\r\n }\r\n\r\n get snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n get orderAttrs(): IKeyValuePair {\r\n return this.order.Attributes;\r\n }\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n private get SameDayItems(): ISameDayDeliveryItem[] {\r\n let sortedData: ISameDayDeliveryItem[] = [];\r\n if (this.sameDayInfo && this.sameDayInfo.Items.length > 0) {\r\n const data = this.sameDayInfo.Items;\r\n const f: ArraySortFunction = utilities.sortByMultipleKey([\r\n ['Available', 'desc', '']]);\r\n sortedData = data.sort(f);\r\n }\r\n return sortedData;\r\n }\r\n\r\n private get sameDayInfoTimeframe(): string {\r\n let timeframe = '';\r\n if (this.Provider.IsSameday) {\r\n if (this.sameDayInfo && this.sameDayInfo.Timeframe) {\r\n timeframe = this.sameDayInfo.Timeframe;\r\n }\r\n }\r\n return timeframe;\r\n }\r\n\r\n private get warningMessage(): string {\r\n if (this.Provider.IsSameday) {\r\n if (this.isPOBoxOrParcelLocker) {\r\n return 'Unavailable for P.O. Box or Collection Point address';\r\n } else if (this.sameDayInfo) {\r\n const itemCount = this.sameDayInfo.Items.reduce((sum, current) => sum + current.QuantityRequested, 0);\r\n const availableCount = this.sameDayInfo.Items.reduce((sum, current) => sum + current.QuantityAvailable, 0);\r\n if (availableCount > 0 && itemCount > availableCount) {\r\n return `${itemCount - availableCount} of ${itemCount} items are not available for Same Day Delivery.` +\r\n ' Place a separate order, or select the Standard Delivery option.';\r\n }\r\n }\r\n }\r\n return '';\r\n }\r\n\r\n private get stateClasses(): string {\r\n const classes: string[] = [];\r\n if (this.Provider.IsSameday) {\r\n classes.push('sameday');\r\n } else {\r\n classes.push('standard');\r\n }\r\n if (this.Provider.ID === this.order.ShippingMethod) {\r\n classes.push('selected');\r\n }\r\n if (this.isActive) {\r\n classes.push('active');\r\n }\r\n if (!this.Available) {\r\n classes.push('unavailable');\r\n }\r\n if (!this.showATLOption) {\r\n classes.push('hide-atl-option');\r\n }\r\n return classes.join(' ');\r\n }\r\n\r\n private get price(): Price {\r\n return new Price(this.Provider.Price - this.Provider.Discount, Price.Types.STANDARD);\r\n }\r\n\r\n private get mixedAvailability(): boolean {\r\n if (this.Provider.IsSameday && this.sameDayInfo) {\r\n const itemCount = this.sameDayInfo.Items.reduce((sum, current) => sum + current.QuantityRequested, 0);\r\n const availableCount = this.sameDayInfo.Items.reduce((sum, current) => sum + current.QuantityAvailable, 0);\r\n return itemCount > 0 && itemCount !== availableCount;\r\n }\r\n return false;\r\n }\r\n\r\n private get Available(): boolean {\r\n if (this.Provider.IsSameday) {\r\n if (this.isPOBoxOrParcelLocker) {\r\n return false;\r\n }\r\n if (!this.sameDayInfo) {\r\n return false;\r\n }\r\n const availableCount = this.sameDayInfo.Items.reduce((sum, current) => sum + current.QuantityAvailable, 0);\r\n return availableCount > 0;\r\n }\r\n return true;\r\n }\r\n\r\n public get ID(): number {\r\n return this.Provider.ID;\r\n }\r\n\r\n // show the details for this option, need to trigger an event so that the parent can close any other options\r\n public activateMe(checkFirst?: boolean) {\r\n if (checkFirst && (this.isActive || this.isSelected)) {\r\n return;\r\n }\r\n this.isActive = true;\r\n this.$emit('activated', this.Provider.ID);\r\n if (!this.showATL) {\r\n this.validateAndSave();\r\n }\r\n }\r\n\r\n // we have to expose this function as we need to be able to close options from outside\r\n // to ensure that only one is actvated at a time\r\n public deactivateMe() {\r\n this.isActive = false;\r\n }\r\n\r\n public focusMe() {\r\n if (this.Available) {\r\n const btn: HTMLElement | undefined = this.$refs.selectorButton as HTMLElement;\r\n if (btn !== undefined) {\r\n this.$nextFocus(btn);\r\n }\r\n }\r\n }\r\n\r\n public mounted() {\r\n if (this.Provider.IsSameday) {\r\n this.updateSameDayInfo();\r\n }\r\n\r\n if (this.preSelected) {\r\n this.validateAndSave();\r\n }\r\n // some nasty logic to determine whether the ATL is initially selected\r\n this.atlSelected =\r\n (this.orderAttrs['Authority To Leave'] === 'Y' && this.Provider.ID === this.order.ShippingMethod) &&\r\n (this.Provider.IsSameday !== true && this.orderAttrs['Delivery Method'] === undefined)\r\n || (this.Provider.IsSameday === true && ['SDD', 'NBD'].indexOf(this.orderAttrs['Delivery Method']) > -1);\r\n }\r\n\r\n // Whenever the postcode changes we need to update the freight options\r\n @Watch('orderPostcode')\r\n private postcodeChange(newVal: string, oldVal: string) {\r\n if (this.Provider.IsSameday && newVal !== oldVal) {\r\n this.updateSameDayInfo();\r\n }\r\n }\r\n\r\n // Control the opening and react to the closing of the Authority To Leave Modal\r\n @Watch('showAtlModal')\r\n private toggleAtlModal(newVal: boolean, oldVal: boolean) {\r\n if (newVal && newVal !== oldVal) {\r\n Vue.nextTick().then(() => (this.$refs.atlModal as ModalContent).Open());\r\n } else if (!newVal && oldVal) {\r\n this.$nextFocus((this.$refs.atlCheckbox as HTMLInputElement));\r\n }\r\n }\r\n\r\n // Control the opening of the Remove Items modal\r\n @Watch('showRemoveModal')\r\n private toggleRemoveModal(newVal: boolean, oldVal: boolean) {\r\n if (newVal && newVal !== oldVal) {\r\n Vue.nextTick().then(() => (this.$refs.removeModal as ModalContent).Open());\r\n }\r\n }\r\n\r\n @Watch('isActive')\r\n private atlShown(newVal: boolean, oldVal: boolean) {\r\n if (newVal && !oldVal) {\r\n Vue.nextTick().then(() => {\r\n const atlCheckbox: HTMLElement | undefined = this.$refs.atlCheckbox as HTMLElement;\r\n if (atlCheckbox) {\r\n this.$nextFocus(atlCheckbox);\r\n }\r\n });\r\n }\r\n }\r\n\r\n // update the sameday info for this order, needs to happen on initiation,\r\n // and whenever a change to the delivery postcode happens\r\n private updateSameDayInfo() {\r\n if (this.Provider.IsSameday) {\r\n let SDDActive: boolean = true;\r\n\r\n if (this.WebsiteSettings.CountryRoadSettings.hasOwnProperty('SameDayDelivery')) {\r\n if ((this.WebsiteSettings.CountryRoadSettings as any).SameDayDelivery === '0') {\r\n const info: ISameDayDeliveryInfo = {\r\n Enabled: false,\r\n Error: false,\r\n Available: false,\r\n NextBusinessDay: false,\r\n Items: [],\r\n Title: this.WebsiteSettings.SameDayInactiveMsg,\r\n Timeframe: '',\r\n DeliveryDate: '',\r\n StoreNumber: null,\r\n };\r\n this.sameDayInfo = info;\r\n\r\n SDDActive = false;\r\n }\r\n }\r\n\r\n if (SDDActive) {\r\n this.loadSameDayInfo().then((info: ISameDayDeliveryInfo) => this.sameDayInfo = info);\r\n }\r\n }\r\n }\r\n\r\n private loadSameDayInfo(): Promise<ISameDayDeliveryInfo> {\r\n const postcode: string = this.order.ShippingAddress.Postcode;\r\n\r\n return utilities.fetch('/default.aspx?Z=samedaycart&serveas=ajax&action=check&postcode=' + postcode)\r\n .then((response) => {\r\n // ISameDayDeliveryInfo object with which to resolve the promise\r\n const info: ISameDayDeliveryInfo = {\r\n Enabled: false,\r\n Error: false,\r\n Available: false,\r\n NextBusinessDay: false,\r\n Items: [],\r\n Title: '',\r\n Timeframe: '',\r\n DeliveryDate: '',\r\n StoreNumber: null,\r\n };\r\n\r\n if (response.ok) {\r\n response.text().then((data) => {\r\n // Put our returned HTML into something we can use jQuery on to make life easier\r\n const $ = (window as any).jQuery;\r\n const source = $(data);\r\n\r\n // Figure out if same day is actually enabled\r\n if (source.find('div.same-day.available').length > 0) {\r\n info.Enabled = true;\r\n }\r\n\r\n // Figure out next business day or same day delivery\r\n const deliveryType: HTMLInputElement = source.find('input[name=OrderAttribute_34]')[0];\r\n if (deliveryType !== undefined && deliveryType.value.toUpperCase() === 'NBD') {\r\n info.NextBusinessDay = true;\r\n }\r\n\r\n // Figure out delivery date\r\n const deliveryTime: HTMLInputElement = source.find('input[name=OrderAttribute_33]')[0];\r\n if (deliveryType !== undefined) {\r\n info.DeliveryDate = deliveryTime.value;\r\n }\r\n\r\n // Figure out delivery store number\r\n const storeID: HTMLInputElement = source.find('input[name=storeID]')[0];\r\n if (storeID !== undefined && storeID.value.length > 0) {\r\n info.StoreNumber = Number(storeID.value);\r\n }\r\n\r\n // Retrieve dynamic text elements from response\r\n info.Title = source.find('.title').html();\r\n info.Timeframe = source.find('.est-delivery').html();\r\n\r\n // If the returned HTML does not contain the \"item-removal\" div then we can assume\r\n // all items have the same availability status\r\n if (source.find('div.item-removal').length === 0) {\r\n\r\n // availability of the option can be determined by the 'clickability' of its associated input field\r\n info.Available = source.find('input[type=\"radio\"][disabled]').length === 0;\r\n\r\n // Fill out items object\r\n this.order.Items.forEach((item: IOrderItem) => {\r\n info.Items.push({\r\n ID: item.ID,\r\n ProductItemID: item.ProductItemID,\r\n QuantityRequested: item.Quantity,\r\n QuantityAvailable: info.Available ? item.Quantity : 0,\r\n Available: info.Available,\r\n });\r\n });\r\n\r\n return;\r\n }\r\n\r\n // Get the relevant input values from the returned HTML\r\n const itemIDs: string[] = source.find('input[name=itemIDs]')[0].value.split(',');\r\n const productCodes: string[] = source.find('input[name=itemProductCodes]')[0].value.split(',');\r\n const quantitiesRequested: string[] = source.find('input[name=itemQty]')[0].value.split(',');\r\n const quantitiesAvailable: string[] = source.find('input[name=itemQtyAvailable]')[0].value.split(',');\r\n\r\n // Loop over the products finding out what's available and what's not\r\n itemIDs.forEach((strValue: string, index: number) => {\r\n // Parse values for this order item out of the CSV inputs\r\n const itemID: number = parseInt(strValue, 10);\r\n const productCode: number = parseInt(productCodes[index], 10);\r\n const quantityRequested: number = parseInt(quantitiesRequested[index], 10);\r\n const quantityAvailable: number = parseInt(quantitiesAvailable[index], 10);\r\n\r\n // Find matching order item (hopefully)\r\n // This line has been made extremely ugly to prevent several TypeScript warnings\r\n const item: IOrderItem | undefined = this.order.Items.find\r\n ((candidate: IOrderItem) => candidate.ProductItemID === productCode\r\n && candidate.Quantity === quantityRequested && candidate.ID === itemID);\r\n if (item !== undefined) {\r\n // Push item line onto same day info object\r\n info.Items.push({\r\n ID: item.ID,\r\n ProductItemID: productCode,\r\n QuantityRequested: quantityRequested,\r\n QuantityAvailable: quantityAvailable,\r\n Available: (quantityRequested === quantityAvailable ? true : false),\r\n });\r\n }\r\n });\r\n });\r\n } else {\r\n // Flag that we failed to load the same day info and move on with life\r\n info.Error = true;\r\n }\r\n return info;\r\n });\r\n }\r\n\r\n private showTerms() {\r\n (this.$refs.termsModal as ModalContent).Open();\r\n }\r\n\r\n // return 'item' or 'items', depending on the number given\r\n private itemString(count: number): string {\r\n if (count === 1) {\r\n return 'item';\r\n } else {\r\n return 'items';\r\n }\r\n }\r\n\r\n\r\n private validateAndSave() {\r\n // have they accepted the Authority To Leave (required for same day)\r\n if (this.Provider.IsSameday && !this.atlSelected) {\r\n this.showAtlModal = true;\r\n return;\r\n }\r\n // Confirm that unavailable items can be removed\r\n if (this.mixedAvailability) {\r\n this.showRemoveModal = true;\r\n return;\r\n }\r\n // All right, let's send it to the server\r\n this.save();\r\n }\r\n private save() {\r\n // object to be posted to the server\r\n const payload: any = {\r\n FreightProviderID: this.Provider.ID,\r\n Pickup: false,\r\n AuthorityToLeave: !!this.atlSelected,\r\n };\r\n if (this.Provider.IsSameday && this.sameDayInfo) {\r\n payload.DeliveryMethod = this.sameDayInfo.NextBusinessDay ? 'NBD' : 'SDD';\r\n payload.Items = [];\r\n payload.DeliveryDate = this.sameDayInfo.DeliveryDate;\r\n payload.StoreID = this.sameDayInfo.StoreNumber;\r\n this.sameDayInfo.Items.forEach((item) => {\r\n payload.Items.push({\r\n ProductItemID: item.ProductItemID,\r\n QuantityAvailable: item.QuantityAvailable,\r\n QuantityRequested: item.QuantityRequested,\r\n });\r\n });\r\n }\r\n this.$ariaAnnounce('Saving delivery option');\r\n utilities.fetch('/client/v2/cart/order/freightoptions', {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(payload),\r\n }).then((response: any) => {\r\n if (!response.ok) {\r\n console.log(response);\r\n } else {\r\n this.$ariaAnnounce('Delivery option saved');\r\n store.dispatch(DispatchAction.FetchOrder);\r\n this.updateSameDayInfo();\r\n this.deactivateMe();\r\n this.$emit('saved');\r\n }\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeliveryOption.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeliveryOption.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DeliveryOption.vue?vue&type=template&id=c441c126&\"\nimport script from \"./DeliveryOption.vue?vue&type=script&lang=ts&\"\nexport * from \"./DeliveryOption.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { DeliveryLocationType, DispatchAction, IFreightProvider } from '../interfaces';\r\nimport { store } from '../store';\r\nimport * as utilities from '../utilities';\r\nimport DeliveryOption from './DeliveryOption.vue';\r\nimport Animation from '@/components/ui/animations/Animation.vue';\r\nimport ContentManagement from './ContentManagement.vue';\r\n\r\n@Component({ components: { DeliveryOption, Animation, ContentManagement } })\r\nexport default class DeliveryOptions extends Vue {\r\n public realSelectedID: number = this.order.ShippingMethod || 0;\r\n\r\n private editing: boolean = false;\r\n private hasInteracted: boolean = false;\r\n\r\n private retryingPlaceOrder: boolean = store.getters.WebsiteSettings.RetryingPlaceOrder;\r\n\r\n private showAllOptions: boolean = false;\r\n\r\n public mounted() {\r\n store.dispatch(DispatchAction.FetchFreightOptions);\r\n this.statusChange();\r\n }\r\n\r\n get order() {\r\n return store.getters.Order;\r\n }\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get freightOptions(): IFreightProvider[] {\r\n let provider: IFreightProvider[] = store.getters.FreightOptions;\r\n let canDoSameday: boolean = false;\r\n\r\n if (store.getters.WebsiteSettings.Country === 'au') {\r\n canDoSameday = true;\r\n }\r\n if (!canDoSameday) {\r\n provider = provider.filter((option: IFreightProvider) => !option.IsSameday);\r\n }\r\n return provider;\r\n }\r\n\r\n get FreightProviders(): IFreightProvider[] {\r\n const attributes = store.getters.Order.Attributes;\r\n\r\n // do we have a selected option?\r\n if (this.isSelected && !this.showAllOptions) {\r\n return this.freightOptions.filter((option: IFreightProvider) =>\r\n option.ID === this.selectedID);\r\n }\r\n\r\n return this.freightOptions;\r\n }\r\n\r\n get complete(): boolean {\r\n return this.order.ShippingMethod !== 0\r\n && this.selectedID === this.order.ShippingMethod\r\n && !this.editing;\r\n }\r\n\r\n get isSelected(): boolean {\r\n if (this.selectedID === 0) {\r\n return false;\r\n }\r\n return store.getters.FreightOptions.filter((option: IFreightProvider) =>\r\n option.ID === this.order.ShippingMethod).length > 0;\r\n }\r\n\r\n get selectedID() {\r\n return this.realSelectedID;\r\n }\r\n\r\n set selectedID(newID: number) {\r\n this.realSelectedID = newID;\r\n }\r\n\r\n get allowEdit(): boolean {\r\n return this.isSelected\r\n && !this.editing\r\n && !this.retryingPlaceOrder\r\n && this.showATL;\r\n }\r\n\r\n private get showATL(): boolean {\r\n if (store.getters.WebsiteSettings.Country === 'au') {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n // show ATL option only if user has not selected a Parcel Locker collection point\r\n private get showATLOption(): boolean {\r\n const deliveryLocationType = store.getters.Order.ShippingAddress.LocationType;\r\n\r\n if (DeliveryLocationType.ParcelLocker === deliveryLocationType\r\n || DeliveryLocationType.ParcelLockerWidget === deliveryLocationType\r\n || DeliveryLocationType.POBox === deliveryLocationType) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n\r\n private setActive(newID: number) {\r\n this.selectedID = newID;\r\n }\r\n\r\n get noSelectionMade(): boolean {\r\n return this.selectedID === 0;\r\n }\r\n\r\n get oneSelectionAvailable(): boolean {\r\n return this.freightOptions.length === 1;\r\n }\r\n\r\n get statusClass(): string {\r\n const classNames: string[] = [];\r\n classNames.push('delivery-method-wrapper');\r\n classNames.push('editable-section');\r\n if (this.complete) {\r\n classNames.push('editable-section-closed');\r\n } else {\r\n classNames.push('editable-section-open');\r\n }\r\n return classNames.join(' ');\r\n }\r\n\r\n // in order to only have one open at a time, we need to close the unselected ones\r\n @Watch('selectedID')\r\n private selectionChanged( newVal: number | undefined, oldVal: number | undefined ) {\r\n if (oldVal !== undefined) {\r\n // close any currently open options\r\n if (oldVal === 0 && !this.hasInteracted) {\r\n // the currently open option hasn't actually been selected, it just started open\r\n // it will be the 'not same day' one\r\n this.freightOptions.some((option) => {\r\n if (!option.IsSameday) {\r\n oldVal = option.ID;\r\n return true;\r\n }\r\n });\r\n }\r\n const openOption = this.$children.find((child) => {\r\n const option = child as DeliveryOption;\r\n return option.ID === oldVal;\r\n }) as DeliveryOption;\r\n if (openOption) {\r\n openOption.deactivateMe();\r\n }\r\n }\r\n this.hasInteracted = true;\r\n }\r\n\r\n @Watch('order.ShippingMethod')\r\n private updateShipping(newVal: number) {\r\n this.realSelectedID = newVal;\r\n if (this.hasInteracted) {\r\n this.focusEditButton();\r\n }\r\n }\r\n\r\n @Watch('editing')\r\n private editSelected( newVal: boolean, oldVal: boolean ) {\r\n if (newVal) {\r\n this.hasInteracted = true;\r\n const selectedOption = this.$children.find((child) => {\r\n const option = child as DeliveryOption;\r\n return option.ID === this.selectedID;\r\n }) as DeliveryOption;\r\n if (selectedOption) {\r\n Vue.nextTick().then(() => {\r\n selectedOption.activateMe();\r\n selectedOption.focusMe();\r\n });\r\n }\r\n } else if (this.hasInteracted) {\r\n this.focusEditButton();\r\n }\r\n }\r\n\r\n // inform the delivery component of the current status\r\n @Watch('complete')\r\n private statusChange() {\r\n this.$emit('status-change', this.complete);\r\n }\r\n\r\n private focusEditButton() {\r\n Vue.nextTick(() => {\r\n const editButton: HTMLElement | undefined = this.$refs.editButton as HTMLElement;\r\n if (editButton !== undefined) {\r\n this.$nextFocus(editButton);\r\n }\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeliveryOptions.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeliveryOptions.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DeliveryOptions.vue?vue&type=template&id=effa0e78&\"\nimport script from \"./DeliveryOptions.vue?vue&type=script&lang=ts&\"\nexport * from \"./DeliveryOptions.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.Show)?_c('div',{staticClass:\"gift-fulfilment\"},[_c('fieldset',{ref:\"wrapper\"},[_c('legend',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('gift-fulfilment-legend'),expression:\"'gift-fulfilment-legend'\"}]},[_vm._v(\"Sending a gift?\")]),(this.unAvailableItems.length > 0)?_c('div',{staticClass:\"label-wrap unavailable\",class:_vm.GWChecked ? 'selected' : ''},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.GWChecked),expression:\"GWChecked\"}],ref:\"checkBox\",attrs:{\"type\":\"checkbox\",\"name\":\"GiftWrap\",\"id\":\"giftReceiptchk\"},domProps:{\"checked\":Array.isArray(_vm.GWChecked)?_vm._i(_vm.GWChecked,null)>-1:(_vm.GWChecked)},on:{\"change\":function($event){var $$a=_vm.GWChecked,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.GWChecked=$$a.concat([$$v]))}else{$$i>-1&&(_vm.GWChecked=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.GWChecked=$$c}}}}),_c('label',{class:'gift-select' + (_vm.GWChecked ? ' checked' : ''),attrs:{\"for\":\"giftReceiptchk\",\"id\":\"gift\"}},[(_vm.GWChecked)?_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e(),_c('span',[_vm._v(\"If you'd like to order gift wrapping, you'll need to remove the below items from your shopping bag.\")])]),_c('ul',_vm._l((_vm.unAvailableItems),function(item){return _c('li',{key:item.ID},[_c('div',{staticClass:\"details\"},[_c('p',{staticClass:\"title\"},[_c('i',{staticClass:\"icon-unavailable\",attrs:{\"aria-hidden\":\"true\"}}),(item.Title)?_c('span',{attrs:{\"role\":\"text\"}},[_c('strong',[_vm._v(_vm._s(item.Title))])]):_vm._e()]),_c('p',{staticClass:\"info\"},[(item.Colour)?_c('span',{attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Colour:\")]),_vm._v(_vm._s(item.Colour)+\" - \")]):_vm._e(),(item.Size)?_c('span',{attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size:\")]),_vm._v(_vm._s(item.Size))]):_vm._e()]),_c('p',{staticClass:\"warn-msg\"},[_vm._v(\"This item is unavailable for gift wrap\")])])])}),0),_c('p',{staticClass:\"alert alert-warning\"},[_vm._v(\" If you save, the unavailable items will be removed from your order. \")]),_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\"}],staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"disabled\":!_vm.GWChecked},on:{\"click\":function($event){return _vm.RemoveAndSave()}}},[_vm._v(\"Save order\")])]):_c('div',[_c('div',{staticClass:\"label-wrap\",class:_vm.GWChecked ? 'avail selected' : ''},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.GWChecked),expression:\"GWChecked\"}],ref:\"checkBox\",attrs:{\"type\":\"checkbox\",\"name\":\"GiftWrap\",\"id\":\"giftReceiptchk\"},domProps:{\"checked\":Array.isArray(_vm.GWChecked)?_vm._i(_vm.GWChecked,null)>-1:(_vm.GWChecked)},on:{\"change\":function($event){var $$a=_vm.GWChecked,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.GWChecked=$$a.concat([$$v]))}else{$$i>-1&&(_vm.GWChecked=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.GWChecked=$$c}}}}),_c('label',{class:'gift-select' + (_vm.GWChecked ? ' checked' : ''),attrs:{\"for\":\"giftReceiptchk\",\"id\":\"gift\"}},[(_vm.GWChecked)?_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e(),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('lblGiftOption'),expression:\"'lblGiftOption'\"}],staticClass:\"cms\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - Gifting Content'],\"conditions\":_vm.loggedIn}})],1),(_vm.giftingPrice!=0)?_c('p',[_vm._v(\"(Please note: This service incurs a \"),_c('strong',[_c('span',[_vm._v(\"$\"+_vm._s(_vm.giftingPrice))])]),_vm._v(\" fee)\")]):_c('p',[_vm._v(\"(Please note: This service is free)\")])])]),_c('div',{class:[_vm.GWChecked ? 'editable-section' + _vm.Editing ? ' editable-section-open' : ' editable-section-closed' : '']},[_c('div',{staticClass:\"gift-message-wrapper\"},[_c('Animation',{attrs:{\"AnimateHeight\":true}},[(_vm.GWChecked && _vm.Editing)?_c('div',{staticClass:\"gift-message-entry\",class:[_vm.GiftMessage ? 'populated' : '']},[_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('TextAreaField',{ref:\"giftMessageTextArea\",class:'gift-message form-floating',attrs:{\"id\":'gift-message',\"rows\":4,\"name\":'gift-message',\"type\":'text',\"maxlength\":140,\"ariaDescribedBy\":'gift-message-detail'},on:{\"keyup\":_vm.validateGiftMessage,\"blur\":_vm.validateGiftMessage,\"input\":_vm.validateGiftMessage},model:{value:(_vm.GiftMessage),callback:function ($$v) {_vm.GiftMessage=$$v},expression:\"GiftMessage\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"gift-message\"},slot:\"label\"},[_vm._v(\"Message\")])]),_c('span',{staticClass:\"max-char\",attrs:{\"slot\":\"extra\",\"id\":\"gift-message-detail\"},slot:\"extra\"},[_vm._v(_vm._s(_vm.remainingCharMsg)+\" remaining\")])],1),_c('div',{staticClass:\"form-actions\",attrs:{\"role\":\"presentation\"}},[_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"\"},on:{\"click\":_vm.CancelGifting}},[_vm._v(\"Cancel gifting\")]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"save\",\"disabled\":!(_vm.GiftMessage) || _vm.isSaveBtnDisabled},on:{\"click\":_vm.SaveGiftWrap}},[_vm._v(\"Save & accept gifting\"),(_vm.giftingPrice!=0)?_c('span',[_vm._v(\" (+$\"+_vm._s(_vm.giftingPrice)+\")\")]):_vm._e()])])]):_vm._e()])],1),_c('div',{staticClass:\"gift-message-wrapper\"},[_c('Animation',{attrs:{\"AnimateHeight\":true}},[(_vm.GWChecked && !_vm.Editing)?_c('div',{staticClass:\"gift-message-summary\"},[(_vm.GiftMessage != null)?_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('li',{staticClass:\"gift-message\",attrs:{\"role\":\"presentation\"}},[_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"Message:\")]),_c('p',{attrs:{\"role\":\"text\"}},[_c('pre',[_vm._v(_vm._s(_vm.GiftMessage))])])])]):_c('ul',[_c('li',{staticClass:\"message\"},[_vm._v(\"No message.\")])]),_c('button',{ref:\"editButton\",staticClass:\"btn btn-edit\",attrs:{\"aria-label\":\"Edit gift message\"},on:{\"click\":_vm.setForEdit}},[_c('i',{staticClass:\"icon-edit\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Edit\")]),(_vm.GiftMessage != null)?_c('button',{staticClass:\"btn btn-delete\",attrs:{\"aria-label\":\"Clear gift message\"},on:{\"click\":_vm.DeleteGiftWrap}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Delete\")]):_vm._e()]):_vm._e()])],1)])])]),(_vm.showRemoveModal)?_c('ModalContent',{ref:\"removeItemsModal\",attrs:{\"modal\":_vm.removeModalInfo},on:{\"confirm\":function($event){return _vm.save()}}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Remove \"+_vm._s(_vm.itemString(_vm.unAvailableItems.length))+\"?\")]),_c('div',{staticClass:\"items-for-removal\",attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('div',{staticClass:\"message\"},[_vm._v(\"The following item(s) is not available for Gift Wrap and will be removed from your Shopping Bag:\")]),_c('ul',{staticClass:\"item-list\"},_vm._l((_vm.unAvailableItems),function(item){return _c('li',{key:item.ID},[_c('div',{staticClass:\"details\"},[_c('p',{staticClass:\"title\"},[_c('i',{staticClass:\"icon-unavailable\",attrs:{\"aria-hidden\":\"true\"}}),(item.Title)?_c('span',{attrs:{\"role\":\"text\"}},[_c('strong',[_vm._v(_vm._s(item.Title))])]):_vm._e()]),_c('p',{staticClass:\"info\"},[(item.Colour)?_c('span',{attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Colour:\")]),_vm._v(_vm._s(item.Colour)+\" - \")]):_vm._e(),(item.Size)?_c('span',{attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size:\")]),_vm._v(_vm._s(item.Size))]):_vm._e()])])])}),0),_c('div',{staticClass:\"message\"},[_vm._v(\"Are you sure you want to continue?\")])]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"Remove \"+_vm._s(_vm.itemString(_vm.unAvailableItems.length))+\" & Continue\")]),_c('span',{attrs:{\"slot\":\"cancel-text\"},on:{\"click\":_vm.uncheckGW},slot:\"cancel-text\"},[_vm._v(\"No, keep all items and cancel\")])]):_vm._e()],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:_vm.inError ? 'error-highlight' : '',attrs:{\"role\":\"presentation\"}},[(_vm.iconClass)?_c('i',{class:_vm.iconClass}):_vm._e(),_c('textarea',{ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"id\":_vm.id,\"rows\":_vm.rows,\"columns\":_vm.columns,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"aria-describedby\":_vm.ariaDescriber.length > 0 ? _vm.ariaDescriber : false},domProps:{\"value\":_vm.value},on:{\"input\":function($event){return _vm.updateValue($event.target.value)},\"change\":function($event){return _vm.onChange($event.target.value)}}}),_vm._t(\"label\"),(_vm.inError)?_c('span',{staticClass:\"error-label\",attrs:{\"id\":'error-' + _vm.id},domProps:{\"innerHTML\":_vm._s(_vm.errormessage)}}):_vm._e(),_vm._t(\"extra\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport { IValidatable, IPropertyError } from '@/interfaces';\n\n@Component({\n components: {\n },\n})\n\nexport default class TextAreaField extends Vue {\n @Prop() public name!: string;\n @Prop() public required!: boolean;\n @Prop({default: ''}) public ValidatableProperty!: string;\n @Prop() protected value!: string;\n @Prop() protected rows!: number;\n @Prop() protected columns!: number;\n @Prop() protected check!: RegExp;\n @Prop() protected id!: string;\n @Prop() protected maxlength!: number;\n @Prop() protected pattern!: string;\n @Prop({default: ''}) protected ariaDescribedBy!: string;\n @Prop({default: null}) private ValidatableModel!: IValidatable;\n\n private errormessage: string = '';\n private InError: boolean = false;\n private LiveValidation: boolean = false;\n private isDisabled: boolean = false;\n\n public setError(message: string) {\n this.errormessage = message;\n this.inError = true;\n }\n\n public clearError() {\n this.inError = false;\n }\n\n get inError() {\n // First see if we have an error coming from a validatable model property (if specified)\n if (this.ValidatableModel !== null && this.ValidatableModel.Errors.length > 0) {\n const err: IPropertyError | undefined = this.ValidatableModel.Errors.find(\n (x) => x.Name === this.ValidatableProperty);\n if (err !== undefined && err.Codes.length > 0) {\n this.errormessage = err.Codes[0]; // TODO: well I haven't seen anything use multiple messages yet ;)\n return true;\n }\n }\n\n if (!this.InError && this.LiveValidation) {\n return !this.isValid;\n }\n return this.InError;\n }\n\n set inError(val: boolean) {\n this.InError = val;\n }\n\n get isValid() {\n // If required and blank, not valid\n if (this.required && this.value.length === 0) {\n return false;\n }\n\n // Otherwise do regex test\n const test: RegExp = this.check || /\\S/;\n return test.test(this.value);\n }\n\n protected get populated(): boolean {\n let isPopulated: boolean = false;\n if (this.value && this.value.length > 0) {\n isPopulated = true;\n }\n return isPopulated;\n }\n protected get iconClass(): string {\n let className: string = '';\n switch (this.name) {\n case 'firstname':\n case 'nominatedperson':\n case 'gift-from':\n className = 'icon-person';\n break;\n case 'phone':\n case 'contactphone':\n className = 'icon-phone';\n break;\n case 'street':\n className = 'icon-location';\n break;\n case 'country':\n className = 'icon-world';\n break;\n case 'email':\n case 'gift-message':\n className = 'icon-email';\n break;\n }\n return className;\n }\n private get ariaDescriber(): string {\n if (this.inError) {\n return 'error-' + this.id;\n }\n return this.ariaDescribedBy;\n }\n\n public enableLiveValidation() {\n this.LiveValidation = true;\n }\n\n public disableLiveValidation() {\n this.LiveValidation = false;\n }\n\n public disable() {\n this.isDisabled = true;\n }\n\n public enable() {\n this.isDisabled = false;\n }\n\n public focusField() {\n this.$nextFocus(this.$refs.field as HTMLElement);\n }\n\n protected onChange(value: string) {\n this.$emit('change', value);\n }\n\n protected updateValue(value: string) {\n this.$emit('input', value);\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextAreaField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextAreaField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TextAreaField.vue?vue&type=template&id=072206b2&\"\nimport script from \"./TextAreaField.vue?vue&type=script&lang=ts&\"\nexport * from \"./TextAreaField.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport * as utilities from '../utilities';\nimport { store } from '../store';\nimport { DispatchAction, IOrder, IOrderItem, IKeyValuePair, IGiftFulfilment, IAPIResponse } from '../interfaces';\nimport InputField from '@/components/ui/htmlcomponents/InputField.vue';\nimport TextAreaField from '@/components/ui/htmlcomponents/TextAreaField.vue';\nimport Animation from '@/components/ui/animations/Animation.vue';\nimport ContentManagement from './ContentManagement.vue';\nimport ModalContent from '@/components/ui/ModalContent.vue';\nimport Modal from '@/components/ui/Modal';\n\n@Component({\n components: {\n InputField,\n TextAreaField,\n Animation,\n ContentManagement,\n ModalContent,\n },\n})\nexport default class GiftFulfilment extends Vue {\n // There is an API to determine whether the customer qualifies for gift wrapping\n // Presumably at a later date it will be extended to return pricing info for the service\n // depending on the customers loyalty status\n // MVP has this service available and free for Platinum VIPs\n public giftingItems: any[] = [];\n public unAvailableItems: any[] = [];\n\n // flag to control the clickability of the place order button\n public giftingValid: boolean = false;\n\n private WrappingAvailable: boolean = false;\n private IsEditing: boolean = this.Editing;\n private GiftWrap: boolean = this.order.GiftDetails.Wrapping || this.GWChecked;\n private GiftMessage: string = '';\n private GiftFrom: string = '';\n private LastGiftMessage: string = '';\n private LastGiftFrom: string = '';\n private hasInteracted: boolean = false;\n private maxCharCount: number = 140;\n private remainingCharCount: number = 140;\n private remainingCharMsg: string = '140 characters';\n private unavailableMessage: string = '';\n private errorCode: string = '';\n private giftingPrice: number = 0.00;\n private isSaveBtnDisabled: boolean = false;\n\n // controls the display of the items to be removed modal\n private showRemoveModal: boolean = false;\n private removeModalInfo: Modal = new Modal(true, true, 'confirm', 'gift-remove-items');\n\n // Create a response object used to resolve the promise later in verifyGiftMessage()\n private response: IAPIResponse = {\n Data: {verified: false},\n Errors: [],\n };\n\n public mounted() {\n this.refreshGiftDetails();\n this.setAvailabilityStatus();\n }\n\n private refreshGiftDetails() {\n this.GiftMessage = this.order.GiftDetails.Message || '';\n this.GiftFrom = (this.order.Attributes as IKeyValuePair)['Gift From'] || '';\n\n this.Editing = this.GiftWrap && (!this.GiftMessage.length && !this.GiftFrom.length);\n }\n\n\n\n // check to see whether the wrapping service is enabled and the order/customer qualifies\n private async setAvailabilityStatus() {\n this.WrappingAvailable = false;\n this.unavailableMessage = '';\n\n const settings = store.getters.WebsiteSettings;\n // Gift wrapping can be turned off or on on a per brand and country basis\n const identifier: string = 'Gift Wrapping ' + (settings.Country + ' ' + settings.WebsitePrefix).toUpperCase();\n // make sure that the order is generally wrappable\n if (\n // gift wrapping may not be configured\n (settings.CountryRoadSettings as any)[identifier] !== '1'\n // not available/editable on retry orders\n || settings.RetryingPlaceOrder\n // a shipping method must be selected\n || !(this.order.ShippingMethod > 0)\n ) {\n return;\n }\n // now check to see if the customer has the option available to them\n this.updateGiftingStatus();\n }\n\n private get order(): IOrder {\n return store.getters.Order;\n }\n get Snippets(): object[] {\n return store.getters.Snippets;\n }\n\n @Watch('order')\n private orderchanged(newVal: IOrder, oldVal: IOrder) {\n this.refreshGiftDetails();\n if (newVal.ShippingMethod !== oldVal.ShippingMethod) {\n this.setAvailabilityStatus();\n }\n }\n\n @Watch('GWChecked')\n private giftWrapChanged(newVal: boolean, oldVal: boolean) {\n if (!newVal && oldVal) {\n this.CancelGifting();\n }\n // Call when GWChecked is changed\n this.canPlaceOrder(newVal);\n }\n\n // Call when GWChecked is changed and on page load\n private canPlaceOrder(status: boolean) {\n // Disable 'Place order' if we have in-eligible items in cart and GWChecked is checked\n if ( status ) {\n if ( this.unAvailableItems.length > 0 ) {\n this.giftingValid = false;\n } else {\n this.giftingValid = true;\n }\n } else {\n this.giftingValid = true;\n }\n this.$emit('giftingStatusChanged', this.giftingValid);\n }\n\n @Watch('WrappingAvailable')\n private wrappableChanged(newVal: boolean, oldVal: boolean) {\n if (!newVal && oldVal) {\n this.saveLastGiftMessage();\n this.DeleteGiftFulfilment();\n }\n }\n\n // Validates if CR GiftWrap functionality is ON.\n get Show(): boolean {\n this.canPlaceOrder(this.GWChecked);\n if (this.WrappingAvailable) {\n return true;\n } else if ( this.unavailableMessage ) {\n return true;\n }\n return false;\n }\n\n private get HasGiftRegistryItems(): boolean {\n return this.order.Items.filter((item: IOrderItem) => item.IsGiftRegistryItem === true).length > 0;\n }\n\n private get GWChecked(): boolean {\n if (this.HasGiftRegistryItems || this.GiftWrap) {\n return true;\n }\n return false;\n }\n\n private set GWChecked(val: boolean) {\n this.GiftWrap = val;\n if (!this.GiftWrap && (this.GiftMessage.length > 0 || this.GiftFrom != null)) {\n this.saveLastGiftMessage();\n this.DeleteGiftFulfilment();\n }\n if (this.GiftWrap) {\n this.loadLastGiftMessage();\n }\n this.Editing = (this.GiftWrap && this.GiftMessage.length === 0);\n }\n\n private get Editing(): boolean {\n if (this.GWChecked && this.IsEditing) {\n return true;\n }\n return false;\n }\n\n private set Editing(val: boolean) {\n this.IsEditing = val;\n }\n\n private setForEdit() {\n this.Editing = true;\n if (this.hasInteracted) {\n this.focusByRef('fromField');\n }\n this.hasInteracted = true;\n this.countdown();\n }\n\n private saveLastGiftMessage() {\n this.LastGiftMessage = this.GiftMessage;\n this.LastGiftFrom = this.GiftFrom;\n }\n\n private loadLastGiftMessage() {\n this.GiftMessage = this.LastGiftMessage;\n this.GiftFrom = this.LastGiftFrom;\n }\n\n private SaveGiftWrap() {\n const giftDetails: IGiftFulfilment = {\n Wrapping: this.GiftWrap,\n Message: this.GiftWrap ? this.GiftMessage : '',\n From: this.GiftWrap ? this.GiftFrom : '',\n Items: this.giftingItems,\n };\n this.$ariaAnnounce('Saving gift Message');\n utilities.fetch('/client/v2/cart/order/gift',\n {\n method: 'POST',\n headers: {'Content-Type': 'application/json'},\n body: JSON.stringify(giftDetails),\n })\n .then((response: any) => {\n if (response.ok) {\n store.dispatch(DispatchAction.FetchOrder).then(() => {\n if (this.Editing) {\n // we have just cleared the message fields\n this.focusByRef('checkBox');\n } else {\n // we have just set the message fields\n this.focusByRef('editButton');\n }\n });\n this.$ariaAnnounce('Gift options saved');\n } else {\n console.log(response);\n }\n });\n }\n\n private DeleteGiftWrap() {\n this.DeleteGiftFulfilment();\n this.LastGiftMessage = '';\n this.LastGiftFrom = '';\n this.Editing = true;\n }\n private CancelGifting() {\n this.GWChecked = false;\n this.GiftWrap = false;\n this.DeleteGiftFulfilment();\n this.giftingItems = []; // Do not alter shopping cart\n this.SaveGiftWrap();\n }\n\n private DeleteGiftFulfilment() {\n this.GiftFrom = '';\n this.GiftMessage = '';\n this.countdown();\n }\n private countdown() {\n this.remainingCharCount = this.maxCharCount - this.GiftMessage.length;\n if ( this.remainingCharCount === 1 ) {\n this.remainingCharMsg = '1 character';\n } else {\n this.remainingCharMsg = this.remainingCharCount + ' characters';\n }\n }\n\n private focusByRef(ref: string) {\n Vue.nextTick(() => {\n const el: HTMLElement | undefined = this.$refs[ref] as HTMLElement;\n if (el !== undefined) {\n this.$nextFocus(el);\n }\n });\n }\n\n private RemoveAndSave() {\n // Confirm that unavailable items can be removed\n this.showRemoveModal = true;\n Vue.nextTick().then(() => {\n (this.$refs.removeItemsModal as ModalContent).Open();\n });\n }\n\n private save() {\n this.SaveGiftWrap();\n this.GiftWrap = true;\n this.updateGiftingStatus();\n }\n // return 'item' or 'items', depending on the number given\n private itemString(count: number): string {\n if (count === 1) {\n return 'item';\n } else {\n return 'items';\n }\n }\n\n private async updateGiftingStatus() {\n const response = await utilities.fetch('/client/v2/cart/order/giftproductavailability');\n response.json().then((data: IAPIResponse) => {\n this.unAvailableItems = [];\n if (data.Data == null) {\n this.WrappingAvailable = false;\n this.giftingItems = [];\n return;\n }\n this.giftingPrice = data.Data.giftingPrice;\n this.giftingItems = data.Data.items;\n\n if ( data.Data.isAvailable === true ) {\n if ( data.Errors[0].Code != null ) {\n this.unavailableMessage = store.getters.getGlossaryEntryByKey(data.Errors[0].Code) || '';\n } else {\n this.giftingItems.forEach ( (element) => {\n this.order.Items.forEach ((item: IOrderItem) => {\n if ( item.ProductItemFK === element.Sku ) {\n element.ProductItemID = item.ProductItemID;\n }\n // tslint:disable-next-line:max-line-length\n if ( item.ProductItemFK === element.Sku && ( element.QuantityAvailable < element.QuantityRequested ) ) {\n this.unAvailableItems.push ({\n ID: item.ProductFK,\n Title: item.Title,\n Colour: item.Colour,\n Size: item.Size,\n });\n }\n });\n });\n this.WrappingAvailable = this.unAvailableItems.length < this.order.Items.length;\n }\n } else {\n this.WrappingAvailable = false;\n }\n });\n return response;\n }\n\n private uncheckGW(): void {\n this.GWChecked = false;\n this.showRemoveModal = false;\n }\n\n private async validateGiftMessage(): Promise<IAPIResponse> {\n this.countdown();\n return new Promise((resolve, reject) => {\n const url = '/client/v2/cart/order/gift/validate';\n const fetchParameters: IKeyValuePair = {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n },\n };\n\n const giftMessage = this.GiftMessage;\n const giftMessageTextArea: TextAreaField = (this.$refs.giftMessageTextArea as TextAreaField);\n const rxText = new RegExp('^[A-Za-z0-9 /\\s/!&,$\"#.\\-@\\uE920\\uE92E\\uE92F\\uE930\\uE931\\uE922\\uE91E\\uE932\\uE915\\uE916\\uE917\\uE918\\uE919\\uE91A\\uE91B\\uE92D\\uE92C\\uE91D\\uE91F\\uE900\\u00a0\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u200b\\u2028\\u2029\\u3000\\t\\n\\v\\f\\r]*$');\n if ( giftMessage.trim() !== '') {\n utilities.fetch ( url + '?message=' + giftMessage, fetchParameters )\n .then((response1: any) => {\n if (!response1.ok) {\n if (response1.status === 403) {\n // tslint:disable-next-line:max-line-length\n giftMessageTextArea.setError('Sorry, the combination of characters is not available for gift message.');\n resolve(this.response);\n this.isSaveBtnDisabled = true;\n } else if (response1.status === 500) {\n // tslint:disable-next-line:max-line-length\n giftMessageTextArea.setError('The order has expired, please refresh your page..');\n resolve(this.response);\n this.isSaveBtnDisabled = true;\n } else {\n // Do nothing\n }\n } else if (!giftMessage.match(rxText)) {\n // For not allowing Emojis restricting few characters\n giftMessageTextArea.setError('Please only enter allowed characters');\n this.isSaveBtnDisabled = true;\n } else {\n giftMessageTextArea.clearError();\n this.isSaveBtnDisabled = false;\n }\n })\n .catch((err: any) => {\n giftMessageTextArea.setError('Sorry!!!, the combination of characters is not available for gift message.');\n resolve(this.response);\n this.isSaveBtnDisabled = true;\n });\n }\n });\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GiftFulfilment.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GiftFulfilment.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GiftFulfilment.vue?vue&type=template&id=0c9cf3e0&\"\nimport script from \"./GiftFulfilment.vue?vue&type=script&lang=ts&\"\nexport * from \"./GiftFulfilment.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { IKeyValuePair, IOrder, DispatchAction, IAPIResponse\r\n , DeliveryLocationType, IPropertyError, IShippingCountry } from '../interfaces';\r\nimport Modal from './ui/Modal';\r\nimport ModalContent from './ui/ModalContent.vue';\r\nimport AddressSummary from './address/AddressSummary.vue';\r\nimport AddressFields from './address/AddressFields.vue';\r\nimport AddressField from '@/components/address/AddressField.vue';\r\nimport AddressBook from './address/AddressBook.vue';\r\nimport CustomerAddress from '@/components/address/Address';\r\nimport DeliveryOptions from '@/components/DeliveryOptions.vue';\r\nimport GiftFulfilment from '@/components/GiftFulfilment.vue';\r\nimport Animation from '@/components/ui/animations/Animation.vue';\r\nimport ToolTip from '@/components/ui/ToolTip.vue';\r\nimport ContentManagement from './ContentManagement.vue';\r\nimport * as utilities from '../utilities';\r\n\r\n\r\n@Component({\r\n components: {\r\n AddressBook,\r\n AddressFields,\r\n AddressField,\r\n AddressSummary,\r\n DeliveryOptions,\r\n GiftFulfilment,\r\n ModalContent,\r\n Animation,\r\n ToolTip,\r\n ContentManagement,\r\n },\r\n})\r\n\r\nexport default class Delivery extends Vue {\r\n @Prop() private parcelLockerAddress!: CustomerAddress;\r\n private delivery: boolean = true;\r\n private newAddress: boolean = false;\r\n private Address: CustomerAddress = new CustomerAddress(this.emptyAddressConfig);\r\n private Email: string = this.order.Email;\r\n private emailInput: any = null;\r\n private loggedIn: boolean = store.getters.WebsiteSettings.IsLoggedIn;\r\n private retryingPlaceOrder: boolean = store.getters.WebsiteSettings.RetryingPlaceOrder;\r\n private editFields: boolean = false;\r\n private isParcelLockerWidget: boolean = false;\r\n private showParcelLockerWidget: boolean = false;\r\n private initParcelLockerWidget: boolean = false;\r\n private hasEdited: boolean = false;\r\n private showDeliveryOptions: boolean = true;\r\n private deliveryOptionComplete: boolean = false;\r\n private el: HTMLElement | null = null;\r\n private clearFieldsOnCountryReset: boolean = true;\r\n private preSelectedAddress: boolean = false;\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n get addressButtonText(): string {\r\n return 'Save this address';\r\n }\r\n\r\n get emailRef(): any {\r\n return this.emailInput;\r\n }\r\n\r\n get displayGiftWrapping(): boolean {\r\n return !(this.order.ShippingMethodDesc === 'StarTrack SameDay (STDSD)');\r\n }\r\n\r\n get addressSelected(): boolean {\r\n const validAddress: boolean = (this.Address\r\n && this.Address.Street.length > 0\r\n && this.Address.FirstName.length > 0\r\n && this.Address.LastName.length > 0\r\n && this.Address.ContactPhone.length > 0);\r\n return validAddress;\r\n }\r\n\r\n get parcelLockerMessage() {\r\n return this.isParcelLockerAddress ? 'Select a different Collection Point' : 'Deliver to a Collection Point';\r\n }\r\n\r\n get isParcelLockerAddress() {\r\n return this.isParcelLockerWidget;\r\n }\r\n\r\n get useParcelLockerWidget() {\r\n return this.showParcelLockerWidget;\r\n }\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get emptyAddressConfig(): IKeyValuePair {\r\n const config: IKeyValuePair = {};\r\n const country: string = store.getters.WebsiteSettings.Country;\r\n if (country === 'au') {\r\n config.Country = 'AUS';\r\n } else if (country === 'nz') {\r\n config.Country = 'NZL';\r\n } else {\r\n config.Country = 'USA';\r\n }\r\n return config;\r\n }\r\n\r\n get useParcelLocker(): boolean {\r\n const country: string = store.getters.WebsiteSettings.Country;\r\n return country === 'au';\r\n }\r\n\r\n get selectedParcelLockerAddress(): CustomerAddress {\r\n return this.parcelLockerAddress;\r\n }\r\n\r\n get complete(): boolean {\r\n return this.deliveryOptionComplete && this.addressSelected && !this.editFields;\r\n }\r\n\r\n private get addressCount(): number {\r\n if (!this.loggedIn) {\r\n return 0;\r\n } else {\r\n const addressbook = this.$refs.addressbook as AddressBook;\r\n if (addressbook && addressbook.addressCount > 0) {\r\n return addressbook.addressCount;\r\n } else if (this.addressSelected) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n }\r\n\r\n public created() {\r\n if (this.order.ShippingAddress && !this.order.PickupStore) {\r\n this.Address = new CustomerAddress(this.order.ShippingAddress);\r\n if (this.loggedIn) {\r\n if (this.Address.ID > 0 ) {\r\n // We need to find the correct address type when customer fresh the page.\r\n this.setupSelectedAddressType();\r\n } else if (this.Address.ID === 0) {\r\n // If there is selected order address for logged in customer, but we can't find the addressID.\r\n // We assume the address has ben removed from address book.\r\n // And we will treat it as a none address.\r\n this.Address.Type = 'None';\r\n }\r\n }\r\n }\r\n\r\n this.preSelectedAddress = this.addressSelected;\r\n\r\n this.editFields = !this.loggedIn && !this.addressSelected && !this.retryingPlaceOrder;\r\n\r\n if (!this.loggedIn && this.Address.Street.length <= 0) {\r\n this.newAddress = true;\r\n }\r\n }\r\n\r\n public mounted() {\r\n if (this.Address.LocationType === DeliveryLocationType.ParcelLockerWidget) {\r\n this.isParcelLockerWidget = true;\r\n }\r\n this.el = this.$el as HTMLElement;\r\n this.statusChange();\r\n }\r\n\r\n public checkIfPOBoxOrParcelLocker(Company: string, Address1: string, Address2: string): DeliveryLocationType {\r\n // Some of the patterns are\r\n // P.O.BOX, P.BOX, POBOX, PO, POSTALBOX, POSTBOX, POSTOFFICEBOX, POSTOFFFICE, POSTALLOCKER\r\n const POPatterns: RegExp[] = [\r\n /P.BOX/, /P\\.*O\\.*(BOX)/, /P\\.*O\\.*\\d/, /POST(AL)?BOX/, /POSTOFFICE(BOX)?/,\r\n ];\r\n let result: DeliveryLocationType = DeliveryLocationType.None;\r\n\r\n const ParcelPatterns: RegExp[] = [\r\n /POST(AL)?LOCKER/, /PARCEL(.*)LOCKER/, /PARCEL(.*)COLLECT/,\r\n /LOCKER(NO)?(BAG)?(-)*\\d/, /LOCKERPARCEL/, /LOCKERCOLLECT/, /LOCKER(-)*\\d/, /PARCELPOD/, /PARCELPOINT/,\r\n /COLLECT AT(.*)/,\r\n ];\r\n\r\n if (this.contains(Company, POPatterns) ||\r\n this.contains(Address1, POPatterns) ||\r\n this.contains(Address2, POPatterns)) {\r\n result = DeliveryLocationType.POBox;\r\n } else if (this.contains(Company, ParcelPatterns) ||\r\n this.contains(Address1, ParcelPatterns) ||\r\n this.contains(Address2, ParcelPatterns)) {\r\n result = DeliveryLocationType.ParcelLocker;\r\n }\r\n return result;\r\n }\r\n\r\n // -----------------------------------------------------------------\r\n // Collection Point Widget\r\n // -----------------------------------------------------------------\r\n\r\n // Let the Checkout Component know the Collection Point has initialized\r\n private parcelLockerWidgetInit() {\r\n this.$emit('parcelLockerWidgetInit');\r\n }\r\n\r\n private useNewAddress() {\r\n this.Address = new CustomerAddress(this.emptyAddressConfig);\r\n this.newAddress = true;\r\n this.editFields = true;\r\n this.isParcelLockerWidget = false;\r\n }\r\n\r\n private changeDeliveryAddress() {\r\n this.Address = new CustomerAddress(this.emptyAddressConfig);\r\n if (this.loggedIn) {\r\n this.editFields = false;\r\n this.hasEdited = true;\r\n } else {\r\n this.editFields = true;\r\n }\r\n }\r\n\r\n private cancelAddressEdit() {\r\n if (!this.order.PickupStore) {\r\n this.Address = new CustomerAddress(this.order.ShippingAddress);\r\n if (this.loggedIn) {\r\n if (this.Address.ID > 0 ) {\r\n // We need to find the correct address type when customer fresh the page.\r\n this.setupSelectedAddressType();\r\n } else if (this.Address.ID === 0) {\r\n // If there is selected order address for logged in customer, but we can't find the addressID.\r\n // We assume the address has ben removed from address book.\r\n // And we will treat it as a none address.\r\n this.Address.Type = 'None';\r\n }\r\n }\r\n\r\n if (this.addressSelected) {\r\n this.showDeliveryOptions = true;\r\n }\r\n } else {\r\n this.Address = new CustomerAddress(this.emptyAddressConfig);\r\n this.$emit('changeFulfilment', 2);\r\n }\r\n this.newAddress = false;\r\n this.editFields = false;\r\n this.Email = this.order.Email;\r\n const indexToRemove: number = this.order.Errors.indexOf(\r\n (this.order.Errors.find((e) => e.Name === 'Email') as IPropertyError));\r\n this.order.Errors.splice(indexToRemove, 1);\r\n\r\n }\r\n\r\n private async saveAddress(addr: CustomerAddress, email: string) {\r\n\r\n if (addr.LocationType === DeliveryLocationType.ParcelLockerWidget) {\r\n // Do nothing\r\n } else {\r\n addr.LocationType = this.checkIfPOBoxOrParcelLocker(addr.Company, addr.Street, addr.ExtraInformation);\r\n }\r\n\r\n this.Address = addr;\r\n\r\n if (!this.loggedIn) {\r\n // (Guest) Set the guest email address\r\n this.Email = email;\r\n\r\n // Save address against order\r\n this.submitAddress();\r\n } else {\r\n // (Logged in)\r\n // Create/update address book, save ID returned so if a new address was created the front end has its ID\r\n const addressID = await this.updateAddressBook(addr);\r\n\r\n if (addressID > 0) {\r\n this.Address.ID = addressID;\r\n // Save address against order\r\n this.submitAddress();\r\n } else {\r\n // If validation fail in updating address\r\n // Open the form and show the errors.\r\n this.editFields = true;\r\n\r\n const addressFields = this.$refs.AddressFields as AddressFields;\r\n if (addressFields !== undefined) {\r\n const saveButton: HTMLButtonElement = (addressFields.$refs.saveButton as HTMLButtonElement);\r\n saveButton.disabled = false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private setEditing(): void {\r\n this.editFields = true;\r\n }\r\n\r\n private useStreetAddress() {\r\n const addressFields = this.$refs.AddressFields as AddressFields;\r\n const address = addressFields.mergeAddress(addressFields.Address, new CustomerAddress(this.emptyAddressConfig));\r\n address.LocationType = 0;\r\n this.setForEdit(address);\r\n this.isParcelLockerWidget = false;\r\n }\r\n\r\n private setForEdit(address: CustomerAddress) {\r\n this.Address = address;\r\n\r\n this.isParcelLockerWidget = this.Address.LocationType === 3 ? true : false;\r\n\r\n // when editing an addressbook entry the change country modal may appear as soon as the\r\n // address is set for edit (the address country is not deliverable from the current satellite)\r\n // in this case we want to clear the delivery fields of the address when the user elects to\r\n // stay on this satellite (the address country gets re-set to the current country)\r\n if (address.ID > 0) {\r\n // this is an addressbook address, so check to see if it is deliverable from this satellite\r\n const shippingCountries: IShippingCountry[] = store.getters.WebsiteSettings.ShippingCountries;\r\n const selectedCountry: IShippingCountry | undefined = shippingCountries.find((c) => {\r\n return c.ID === address.Country;\r\n });\r\n // undeliverable countries will have a redirectURL property\r\n this.clearFieldsOnCountryReset = !!(selectedCountry && selectedCountry.redirectURL);\r\n } else {\r\n this.clearFieldsOnCountryReset = false;\r\n }\r\n\r\n this.setEditing();\r\n }\r\n\r\n private submitAddress() {\r\n this.showDeliveryOptions = false;\r\n this.newAddress = false;\r\n const order = JSON.parse(JSON.stringify(this.order)); // wut\r\n order.ShippingAddress = this.Address;\r\n if (!this.loggedIn) {\r\n order.Email = this.Email;\r\n }\r\n this.$ariaAnnounce('Saving delivery address');\r\n utilities.fetch('/client/v2/cart/order/delivery/',\r\n {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(order),\r\n })\r\n .then((response: any) => {\r\n if (!response.ok) {\r\n if (response.status === 400) {\r\n response.json().then((json: any) => (json as IAPIResponse).Data).then((responseOrder: IOrder) => {\r\n // All the logic for the address book should really get moved out of here.\r\n this.Address = responseOrder.ShippingAddress;\r\n if (responseOrder.Errors && responseOrder.Errors.length > 0) {\r\n this.order.Errors = responseOrder.Errors;\r\n }\r\n this.Email = responseOrder.Email;\r\n });\r\n }\r\n const addressFields = this.$refs.AddressFields as AddressFields;\r\n if (addressFields !== undefined) {\r\n const saveButton: HTMLButtonElement = (addressFields.$refs.saveButton as HTMLButtonElement);\r\n saveButton.disabled = false;\r\n }\r\n } else {\r\n this.$ariaAnnounce('Delivery address saved');\r\n store.dispatch(DispatchAction.FetchOrder).then(() => {\r\n this.showDeliveryOptions = true;\r\n this.editFields = false;\r\n });\r\n\r\n this.Address.Errors = [];\r\n }\r\n });\r\n }\r\n\r\n // set focus to the editAddress button\r\n private focusOnEditButton() {\r\n const editButton = this.$refs.editButton as HTMLElement;\r\n if (editButton !== undefined) {\r\n this.$nextFocus(editButton);\r\n }\r\n }\r\n\r\n private addressBookAutoSelect() {\r\n this.preSelectedAddress = true;\r\n }\r\n\r\n // track whether we have ever opened the edit form\r\n @Watch('editFields')\r\n private onEditFieldDisplayed(opening: boolean) {\r\n this.hasEdited = true;\r\n }\r\n\r\n @Watch('hasEdited')\r\n private onEditStatusChange(newVal: boolean) {\r\n this.preSelectedAddress = false;\r\n }\r\n\r\n // inform the checkout component of the current status\r\n @Watch('complete')\r\n private statusChange() {\r\n this.$emit('status-change', this.complete);\r\n }\r\n\r\n // inform the checkout component of the customer email reference\r\n @Watch('emailInput')\r\n private onEmailReference() {\r\n this.$emit('emailReference', this.emailRef);\r\n }\r\n\r\n // Save the selected Collection Point Address and...\r\n // Inform the checkout component the Collection Point selection is complete\r\n @Watch('parcelLockerAddress', {deep: true})\r\n private onParcelLockerAddressSelected() {\r\n const addressFields = this.$refs.AddressFields as AddressFields;\r\n let newAddress = this.selectedParcelLockerAddress;\r\n // For guest customers we don't want to wipe the firstname.\r\n // lastname and phone number fields, we check if the compononent\r\n // has instantatiated and then merge.\r\n if (addressFields) {\r\n newAddress = addressFields.mergeAddress(addressFields.Address, this.selectedParcelLockerAddress);\r\n newAddress.LocationType = DeliveryLocationType.ParcelLockerWidget;\r\n newAddress.Company = '';\r\n }\r\n this.setForEdit(newAddress);\r\n this.isParcelLockerWidget = true;\r\n this.$emit('parcelLockerSelectedComplete');\r\n }\r\n\r\n private setDeliveryOptionStatus(completed: boolean) {\r\n this.deliveryOptionComplete = completed;\r\n }\r\n\r\n private setGiftingStatus(status: boolean) {\r\n this.$emit('giftingStatusChanged', status);\r\n }\r\n\r\n // when the address summary gets rendered set focus to its edit button\r\n private onSummaryRendered() {\r\n // need to avoid doing this on initial page render, so check to see if they have\r\n // ever opened the address edit form\r\n if (!this.preSelectedAddress || this.hasEdited) {\r\n this.focusOnEditButton();\r\n }\r\n }\r\n\r\n // Only once the Address Fields have rendered can we look up the reference to the email input\r\n private onFieldsRendered() {\r\n const addressFields: AddressFields | undefined = this.$refs.AddressFields as AddressFields;\r\n const fields = addressFields.$refs.addressFields as AddressField[];\r\n fields.forEach((el: any) => {\r\n if (el.name === 'email') {\r\n this.emailInput = el;\r\n }\r\n });\r\n if (addressFields !== undefined) {\r\n addressFields.setFocus(this.hasEdited);\r\n }\r\n }\r\n\r\n // the user has elected to stay on the current site after being shown the change-country modal\r\n // the country will have been set to the current website, and we need to determine whether\r\n // to empty the other address fields or not (only if it is the change triggered by the setForEdit)\r\n private onCountryReset(newCountry: string) {\r\n if (this.Address.ID > 0 && this.clearFieldsOnCountryReset === true) {\r\n this.Address.Street = '';\r\n this.Address.Suburb = '';\r\n this.Address.City = '';\r\n this.Address.State = '';\r\n this.Address.Postcode = '';\r\n this.Address.ExtraInformation = '';\r\n this.Address.LocationType = DeliveryLocationType.None;\r\n this.Address.Country = newCountry;\r\n // we should only clear the fields once\r\n this.clearFieldsOnCountryReset = false;\r\n }\r\n }\r\n\r\n private async updateAddressBook(addr: CustomerAddress): Promise<number> {\r\n const addrObj = JSON.stringify(addr);\r\n let addressID: number = addr.ID;\r\n if (addressID === 0) {\r\n this.$ariaAnnounce('Saving new address');\r\n } else {\r\n this.$ariaAnnounce('Updating saved address');\r\n }\r\n\r\n const response = await utilities.fetch(`/client/v2/customer/addressbook?`, {\r\n method: 'post',\r\n body: addrObj,\r\n headers : {\r\n 'Content-Type': 'application/json',\r\n },\r\n },\r\n );\r\n\r\n if (response.ok) {\r\n const data = await response.text();\r\n addressID = parseInt(data, 10);\r\n this.$ariaAnnounce('Addressbook updated');\r\n } else {\r\n // Update the Address model, which will show errors\r\n response.json().then((responseAddress: CustomerAddress) => {\r\n if (responseAddress) {\r\n this.Address = responseAddress;\r\n }\r\n });\r\n\r\n // Ensure saveAddress() doesn't try calling submitAddress\r\n addressID = -1;\r\n }\r\n\r\n return addressID;\r\n }\r\n\r\n // Check the string for patterns.\r\n private contains(data: string, patterns: RegExp[]): boolean {\r\n if (data && data.length > 0) {\r\n // Remove the spaces and capitalize the words for better comparison.\r\n const formattedData = data.replace(/\\s+/g, '').toUpperCase();\r\n\r\n for (let i = patterns.length - 1; i >= 0; --i) {\r\n if (formattedData.match(patterns[i])) { return true; }\r\n }\r\n }\r\n\r\n return false;\r\n }\r\n\r\n private setupSelectedAddressType() {\r\n utilities.fetch('/client/v2/customer/addressbook').then((res) => {\r\n if (res.ok) {\r\n const shipAddr: CustomerAddress = this.order.ShippingAddress;\r\n let addressType: string = '';\r\n res.json().then((data) => {\r\n data.forEach((addr: CustomerAddress) => {\r\n if (addr.ID === this.Address.ID) {\r\n addressType = addr.Type;\r\n }\r\n });\r\n if (addressType === '') {\r\n this.Address.Type = 'None';\r\n } else {\r\n this.Address.Type = addressType;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n}\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delivery.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Delivery.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Delivery.vue?vue&type=template&id=a1d99a52&\"\nimport script from \"./Delivery.vue?vue&type=script&lang=ts&\"\nexport * from \"./Delivery.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"payment-wrapper\"},[(_vm.errorMessage !== null)?_c('div',{ref:\"alertMessage\",staticClass:\"alert alert-danger\",attrs:{\"role\":\"alert\"}},[_c('span',{staticClass:\"icon-tooltip\",attrs:{\"aria-hidden\":\"true\"}}),_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.errorMessage)}})]):_vm._e(),(_vm.order.GiftCards.length > 0)?_c('div',{staticClass:\"gift-card-applied\"},[_c('ul',_vm._l((_vm.order.GiftCards),function(card,index){return _c('AppliedGiftCards',{key:index,attrs:{\"card\":card,\"data-ID\":card.ID}})}),1),(_vm.OutstandingTotal > 0)?_c('p',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('payment-giftcard-applied-message'),expression:\"'payment-giftcard-applied-message'\"}],staticClass:\"warning-message\"},[_vm._v(\"Gift cards can only be used in conjunction with a credit/debit card or multiple gift cards\")]):_vm._e()]):_vm._e(),(_vm.PaymentOptions && _vm.OutstandingTotal > 0)?_c('fieldset',{staticClass:\"payment-options\"},[_c('legend',{staticClass:\"accessibility\"},[_vm._v(\"Please Select a Payment Method\")]),_c('div',{staticClass:\"accordion\",attrs:{\"id\":\"paymentOptions\"}},_vm._l((_vm.PaymentOptions),function(option){return _c('PaymentOption',{key:option.TsID,ref:\"PaymentOption\",refInFor:true,attrs:{\"Option\":option},on:{\"selected-payment\":_vm.selectPayment,\"error\":_vm.OnPaymentOptionError},model:{value:(_vm.activeOption),callback:function ($$v) {_vm.activeOption=$$v},expression:\"activeOption\"}},[(option.TsID === 1)?[_c('span',{staticClass:\"payment-card-logos\",attrs:{\"slot\":\"label-icon\"},slot:\"label-icon\"},[_c('img',{staticClass:\"credit-card\",attrs:{\"alt\":\"\",\"src\":\"/Shared_Assets/basket/payment/Visa.svg\"}}),_c('img',{staticClass:\"credit-card\",attrs:{\"alt\":\"\",\"src\":\"/Shared_Assets/basket/payment/MasterCard.svg\"}}),_c('img',{staticClass:\"credit-card\",attrs:{\"alt\":\"\",\"src\":\"/Shared_Assets/basket/payment/AmericanExpress.svg\"}}),_c('img',{staticClass:\"credit-card\",attrs:{\"alt\":\"\",\"src\":\"/Shared_Assets/basket/payment/Diners.svg\"}})]),_c('CreditCard',{ref:\"PaymentType\",refInFor:true,attrs:{\"slot\":\"details\",\"payment\":option},on:{\"status-change\":_vm.onPaymentStatusChange},slot:\"details\",model:{value:(_vm.activeOption),callback:function ($$v) {_vm.activeOption=$$v},expression:\"activeOption\"}})]:(option.TsID === 120)?[_c('span',{attrs:{\"slot\":\"label-icon\"},slot:\"label-icon\"}),_c('GiftCard',{ref:\"PaymentType\",refInFor:true,attrs:{\"slot\":\"details\",\"payment\":option,\"outstanding\":_vm.OutstandingTotal},on:{\"status-change\":_vm.onPaymentStatusChange,\"giftCardApplied\":_vm.giftCardApplied},slot:\"details\",model:{value:(_vm.activeOption),callback:function ($$v) {_vm.activeOption=$$v},expression:\"activeOption\"}})]:(option.TsID === 202)?[_c('span',{attrs:{\"slot\":\"label-icon\"},slot:\"label-icon\"},[_c('img',{staticClass:\"payment-icon\",attrs:{\"src\":'/Shared_Assets/basket/payment/' + option.Description + '.svg',\"alt\":option.DisplayName,\"border\":\"0\"}})]),_c('AfterPay',{ref:\"PaymentType\",refInFor:true,attrs:{\"slot\":\"details\",\"payment\":option},on:{\"status-change\":_vm.onPaymentStatusChange},slot:\"details\",model:{value:(_vm.activeOption),callback:function ($$v) {_vm.activeOption=$$v},expression:\"activeOption\"}})]:(option.TsID === 211)?[_c('span',{attrs:{\"slot\":\"label-icon\"},slot:\"label-icon\"},[_c('img',{staticClass:\"payment-icon\",attrs:{\"src\":'/Shared_Assets/basket/payment/' + option.Description + '.svg',\"alt\":option.DisplayName,\"border\":\"0\"}})]),_c('Klarna',{ref:\"PaymentType\",refInFor:true,attrs:{\"slot\":\"details\",\"payment\":option},on:{\"status-change\":_vm.onPaymentStatusChange,\"disable\":_vm.onDisablePaymentOption},slot:\"details\",model:{value:(_vm.activeOption),callback:function ($$v) {_vm.activeOption=$$v},expression:\"activeOption\"}})]:[_c('span',{attrs:{\"slot\":\"label-icon\"},slot:\"label-icon\"},[_c('img',{staticClass:\"payment-icon\",attrs:{\"src\":'/Shared_Assets/basket/payment/' + option.Description + '.svg',\"alt\":option.DisplayName,\"border\":\"0\"}})]),_c('ExternalProvider',{ref:\"PaymentType\",refInFor:true,attrs:{\"slot\":\"details\",\"payment\":option},on:{\"status-change\":_vm.onPaymentStatusChange},slot:\"details\",model:{value:(_vm.activeOption),callback:function ($$v) {_vm.activeOption=$$v},expression:\"activeOption\"}})]],2)}),1)]):_vm._e(),_c('div',{staticClass:\"order-summary\"},[_c('OrderSummaryTotals')],1),_c('form',{staticClass:\"existing-handler place-order\",class:_vm.CanContinue ? 'sticky-bottom' : '',attrs:{\"method\":\"post\"},on:{\"submit\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.placeOrder($event)}}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"rnd\"}}),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\",\"disabled\":!_vm.CanContinue}},[_vm._v(\"PLACE ORDER\")]),_c('div',{staticClass:\"payment-cart-warning\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Cart Place Order Warning'],\"conditions\":_vm.currentpage ==='checkout'}})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.IsAvailable)?_c('div',{ref:\"wrapper\",staticClass:\"card\"},[_c('div',{staticClass:\"card-header\",attrs:{\"id\":_vm.Option.Description + 'PaymentHeading'}},[_c('button',{staticClass:\"btn-radio-selector\",class:_vm.isSelected ? 'selected' : '',attrs:{\"disabled\":_vm.disabled},on:{\"click\":function($event){$event.preventDefault();return _vm.selectMe($event)}}},[(_vm.isSelected)?_c('i',{staticClass:\"icon-radio-btn-selected\",attrs:{\"aria-hidden\":\"true\"}}):_c('i',{staticClass:\"icon-radio-btn\",attrs:{\"aria-hidden\":\"true\"}}),_vm._t(\"label-icon\",[_c('img',{staticClass:\"payment-icon\",attrs:{\"src\":'/Shared_Assets/basket/payment/' + _vm.Option.Description + '.svg',\"alt\":_vm.Option.DisplayName,\"border\":\"0\"}})]),_c('span',{staticClass:\"payment-name\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.Displayname))]),(_vm.isSelected)?_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\" selected\")]):_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\" not selected\")])],2)]),_c('div',{staticClass:\"card-body\",attrs:{\"aria-hidden\":_vm.Option.TsID !== _vm.value}},[_c('Animation',{attrs:{\"AnimateHeight\":true}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isSelected),expression:\"isSelected\"}]},[_vm._t(\"details\",[_c('PaymentType')])],2)])],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport { store } from '@/store';\nimport {\n DispatchAction,\n IGiftCard,\n IOrder,\n IOrderPayments,\n IPayment,\n IWebsiteSettings,\n PaymentTypes,\n } from '@/interfaces';\n\nimport Animation from '@/components/ui/animations/Animation.vue';\n\n@Component({ components: { Animation }})\nexport default class PaymentOption extends Vue {\n\n // The Payment Option settings object\n @Prop() private Option!: IPayment;\n\n // this will reflect the currently selected payment TtsID, courtesy of the v-model binding\n @Prop() private value!: number;\n\n // Setting this to true will disable the payment option\n private isDisabled: boolean = false;\n\n public get disabled(): boolean {\n return this.isDisabled;\n }\n public set disabled(value: boolean) {\n this.isDisabled = value;\n }\n\n public get id(): number {\n return this.Option.TsID;\n }\n\n private get WebsiteSettings(): IWebsiteSettings {\n return store.getters.WebsiteSettings;\n }\n\n private get order(): IOrder {\n return store.getters.Order;\n }\n\n public get IsAvailable(): boolean {\n let available: boolean = true;\n // tslint:disable-next-line:max-line-length\n if (this.Option.AvailableCountries.filter((country: string) => country === this.WebsiteSettings.Country || country === 'all').length === 0) {\n available = false;\n }\n // tslint:disable-next-line:max-line-length\n if (this.Option.TsID !== PaymentTypes.Giftcard && !this.Option.EligibleWithGC && this.order.GiftCards.length > 0) {\n available = false;\n }\n if (this.Option.TsID === PaymentTypes.Afterpay && !this.order.EligibleForAfterpay) {\n available = false;\n }\n if (this.Option.TsID === PaymentTypes.Klarna && !this.showKlarna) {\n available = false;\n }\n if (this.Option.TsID !== PaymentTypes.CreditCard && this.WebsiteSettings.RetryingPlaceOrder) {\n available = false;\n }\n return available;\n }\n\n private get showKlarna(): boolean {\n if (!this.WebsiteSettings.IsKlarnaEnabled) {\n return false;\n }\n if (this.order.GiftCards && this.order.GiftCards.length > 0) {\n return false;\n }\n if (this.order.Total === 0) {\n return false;\n }\n return this.order.Total >= this.WebsiteSettings.KlarnaMinAmount\n && this.order.Total <= this.WebsiteSettings.KlarnaMaxAmount;\n }\n\n private get Displayname(): string {\n // tslint:disable-next-line:max-line-length\n return this.Option.TsID === PaymentTypes.CreditCard || this.Option.TsID === PaymentTypes.Giftcard ? this.Option.DisplayName : '';\n }\n\n private get isSelected(): boolean {\n return this.Option.TsID === this.value;\n }\n\n private selectMe() {\n if (this.IsAvailable) {\n this.$emit('selected-payment', this.Option.TsID);\n }\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentOption.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentOption.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PaymentOption.vue?vue&type=template&id=06cd5d9c&\"\nimport script from \"./PaymentOption.vue?vue&type=script&lang=ts&\"\nexport * from \"./PaymentOption.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(_vm._s(_vm.payment.Description))])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\nimport { store } from '@/store';\nimport { IOrder, IPayment, PaymentTypes, IOrderPayments, IGiftCard, IWebsiteSettings } from '@/interfaces';\nimport { IAPIResponse } from '@/Interfaces';\n\n@Component({})\nexport default class PaymentType extends Vue {\n // Payment type details\n @Prop() public payment!: IPayment;\n\n // v-model binding uses the value property - this will reflect the currently selected Payment option\n @Prop() public value!: number;\n\n // Payment object to be sent to the server\n public OrderPayment: IOrderPayments = {\n TransactionType: this.payment.TsID + this.extraPaymentMethod,\n StoredPayment: null,\n AuthorizationToken: null,\n Card: null,\n Save: false,\n };\n\n // Payment types can override this function to add in some async preprocessing between the\n // Place Order button click and submitting the order\n public verify(): Promise<IAPIResponse> {\n return new Promise((resolve, reject) => {\n const response: IAPIResponse = {\n Data: {verified: true},\n Errors: [],\n };\n resolve(response);\n });\n }\n\n // Flag to use to enable/disable the place order button - method to be overridden in CreditCard / GiftCard\n public get CanContinue(): boolean {\n return true;\n }\n\n // the value property gets set externally (via the v-model binding) and corresponds to the selected option\n public get Active(): boolean {\n return this.value === this.payment.TsID;\n }\n\n public get ID(): PaymentTypes {\n return this.payment.TsID;\n }\n\n // our usual order property\n protected get order(): IOrder {\n return store.getters.Order;\n }\n\n protected get WebsiteSettings(): IWebsiteSettings {\n return store.getters.WebsiteSettings;\n }\n\n // support for mixed payment ypes, eg gift card + credit card\n protected get extraPaymentMethod() {\n let extraPaymentMethod: number = 0;\n if (this.payment.EligibleWithGC && this.order.GiftCards.length > 0) {\n extraPaymentMethod += PaymentTypes.Giftcard;\n } else if (this.payment.TsID === PaymentTypes.Giftcard) {\n let gcSum: number = 0;\n this.order.GiftCards.forEach((card: IGiftCard) => {\n gcSum += card.ValueRequested;\n });\n if (this.order.Total - gcSum > 0) {\n extraPaymentMethod += PaymentTypes.CreditCard;\n }\n }\n return extraPaymentMethod;\n }\n\n // external providers have a bit of a blurb about being taken elsewhere\n protected get redirectBlurb(): string {\n let redirectingTo: string = this.payment.DisplayName;\n switch (this.payment.Description) {\n case 'applepay':\n case 'alipay':\n redirectingTo = 'Windcave';\n break;\n default:\n break;\n }\n const blurb: string =\n `<p>After selecting \"<strong class=\"button-prompt\">Place Order</strong>\" you will be redirected to the ${redirectingTo} website to complete your purchase.</p>` +\n `<p>When the ${redirectingTo} transaction is complete you will be returned to this site.</p>`;\n // Check if any External providers have a blurb override first:\n return store.getters.getGlossaryEntryByKey('paymenttype-description-' + this.payment.Description) || blurb;\n }\n\n @Watch('CanContinue')\n private statusChanged(val: boolean) {\n this.$emit('status-change', val, this.ID);\n }\n\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentType.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentType.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PaymentType.vue?vue&type=template&id=84402516&\"\nimport script from \"./PaymentType.vue?vue&type=script&lang=ts&\"\nexport * from \"./PaymentType.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['payment-option','external', _vm.payment.Description]},[_c('div',{staticClass:\"payment-heading\"},[_vm._v(_vm._s(_vm.payment.DisplayName))]),_c('div',{staticClass:\"payment-details\"},[_c('img',{staticClass:\"payment-logo\",attrs:{\"alt\":\"\",\"src\":'/Shared_Assets/basket/payment/' + _vm.payment.Description + '-logo.svg'}}),_c('div',{staticClass:\"payment-copy\"},[(_vm.payment.Description === 'applepay')?_c('p',[_c('strong',{staticClass:\"nb\"},[_vm._v(\"Please note:\")]),_vm._v(\" Apple Pay is only available with Safari browsers in Apple devices (iOS and macOS).\")]):_vm._e(),_c('div',{staticClass:\"redirect-blurb\",domProps:{\"innerHTML\":_vm._s(_vm.redirectBlurb)}})])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport PaymentType from './PaymentType.vue';\n\n@Component({})\nexport default class ExternalPayment extends PaymentType {\n\n // For the Alipay and ApplePay external providers, the wires say we display 'Payment Express' sometimes\n private get TransactorDisplayName(): string {\n if (this.payment.Description === 'alipay' || this.payment.Description === 'applepay') {\n return 'Windcave';\n } else {\n return this.payment.DisplayName;\n }\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExternalProvider.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ExternalProvider.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ExternalProvider.vue?vue&type=template&id=3f701f47&\"\nimport script from \"./ExternalProvider.vue?vue&type=script&lang=ts&\"\nexport * from \"./ExternalProvider.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.Applied)?_c('li',[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('titleAppliedGiftCard'),expression:\"'titleAppliedGiftCard'\"}],staticClass:\"title\",attrs:{\"role\":\"text\"}},[_vm._v(\"Gift Card\")]),_c('span',{staticClass:\"giftcard-display\",attrs:{\"role\":\"text\"}},[_c('span',{staticClass:\"giftcard-number\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.cardPrefix)+\" \"+_vm._s(_vm.card.CardNumberDisplay.replace(/[Xx]/g,'*')))]),_c('span',{staticClass:\"pricing\",attrs:{\"role\":\"text\"}},[_c('PriceDisplay',{attrs:{\"price\":_vm.giftcardAmount(_vm.card.ValueRequested)}})],1)]),_c('button',{staticClass:\"btn btn-delete\",attrs:{\"aria-label\":\"Remove Gift Card\"},on:{\"click\":_vm.RemoveGiftCard}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Remove\")])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../../store';\r\nimport { DispatchAction, IGiftCard, IAPIResponse } from '../../interfaces';\r\nimport Price from './../pricing/Price';\r\nimport PriceDisplay from './../pricing/PriceDisplay.vue';\r\nimport * as utilities from './../../utilities';\r\n\r\n@Component({\r\n components: {\r\n PriceDisplay,\r\n },\r\n})\r\n\r\nexport default class AppliedGiftCards extends Vue {\r\n @Prop() private card!: IGiftCard;\r\n\r\n // -----------------------------------------------------------------\r\n // Remove Gift Card\r\n // -----------------------------------------------------------------\r\n protected RemoveGiftCard() {\r\n // Clear the payments error message\r\n this.$emit('giftcard-error', '');\r\n\r\n // Call the remove gift card API\r\n utilities.fetch('/client/v2/cart/order/giftcard?id=' + this.card.ID, { method: 'DELETE' })\r\n .then((response) => {\r\n if (!response.ok) {\r\n response.json().then((json: any) => {\r\n const errors = (json as IAPIResponse).Errors;\r\n // Display the first error that was returned\r\n if (errors && errors.length > 0) {\r\n this.$emit('giftcard-error', utilities.getErrorMessage(errors[0]));\r\n }\r\n });\r\n } else {\r\n // Refresh order state\r\n store.dispatch(DispatchAction.FetchOrder);\r\n }\r\n });\r\n }\r\n\r\n private giftcardAmount(amount: number): Price {\r\n return new Price(amount, Price.Types.CREDIT);\r\n }\r\n\r\n get Applied(): boolean {\r\n return this.card.ID > 0;\r\n }\r\n private get cardPrefix(): string {\r\n let prefix = 'GC';\r\n switch (store.getters.WebsiteSettings.WebsitePrefix) {\r\n case 'wi':\r\n prefix = 'WC';\r\n break;\r\n case 'mi':\r\n prefix = 'MC';\r\n break;\r\n }\r\n return prefix;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppliedGiftCards.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppliedGiftCards.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AppliedGiftCards.vue?vue&type=template&id=4416128b&\"\nimport script from \"./AppliedGiftCards.vue?vue&type=script&lang=ts&\"\nexport * from \"./AppliedGiftCards.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"payment-option giftcard\"},[(_vm.errorMessage !== null)?_c('div',{staticClass:\"alert alert-danger\",attrs:{\"role\":\"alert\"}},[_c('span',{staticClass:\"icon-tooltip\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.errorMessage)}})]):_vm._e(),_c('fieldset',[_c('legend',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('giftcard-paymentoption-legend'),expression:\"'giftcard-paymentoption-legend'\"}]},[_vm._v(\"Please enter your gift card number and pin\")]),_c('ul',{staticClass:\"form\",attrs:{\"role\":\"presentation\"}},[_vm._m(0),_vm._m(1),_c('GiftCardInputField',{class:'card-number',attrs:{\"id\":'giftcardnumber',\"type\":'text',\"name\":'card_number',\"required\":'required',\"maxlength\":'20',\"prefix\":_vm.CardNumberPrefix},on:{\"onEnter\":_vm.onEnter},model:{value:(_vm.CardNumber),callback:function ($$v) {_vm.CardNumber=$$v},expression:\"CardNumber\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"giftcardnumber\"},slot:\"label\"},[_vm._v(\"Card Number\")])]),_c('li',{staticClass:\"card-pin form-floating\",attrs:{\"role\":\"presentation\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.CardPin),expression:\"CardPin\"}],class:[_vm.CardPin.length > 0 ? 'not-empty' : ''],attrs:{\"type\":\"text\",\"pattern\":\"\\\\d*\",\"name\":\"giftcardpin\",\"maxlength\":\"4\",\"id\":\"giftcardpin\"},domProps:{\"value\":(_vm.CardPin)},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.onEnter($event)},\"input\":[function($event){if($event.target.composing){ return; }_vm.CardPin=$event.target.value},_vm.onPinInput]}}),_c('label',{attrs:{\"for\":\"giftcardpin\"}},[_vm._v(\"PIN\")])]),_c('li',{staticClass:\"card-info nofield\",attrs:{\"role\":\"presentation\"}},[_c('a',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('giftcard-card-info'),expression:\"'giftcard-card-info'\"}],attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.showHint($event)}}},[_vm._v(\"What is this?\")])])],1),_c('span',{staticClass:\"button-holder\"},[_c('button',{ref:\"applyButton\",staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\",\"aria-label\":\"Apply gift card\",\"aria-describedby\":\"giftcard-conditions\",\"disabled\":_vm.applyButtonEnabled},on:{\"click\":function($event){return _vm.ApplyGiftCard()}}},[_vm._v(\"Apply\")]),_c('p',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('giftcard-note'),expression:\"'giftcard-note'\"}],staticClass:\"warning-message\",attrs:{\"id\":\"giftcard-conditions\"}},[_vm._v(\"Note: Gift cards can only be used in conjunction with a credit/debit card or multiple gift cards\")])])]),_c('ModalContent',{ref:\"hint\",attrs:{\"modal\":_vm.modalInfo}},[_c('h3',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('giftcard-payment-popup-title'),expression:\"'giftcard-payment-popup-title'\"}],attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Gift Card Barcode\")]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('div',{staticClass:\"gift-card-explanation-image\"},[_c('img',{attrs:{\"src\":\"/shared_assets/basket/giftcard_barcode_explanation.gif\",\"alt\":\"Image of gift card, showing placement of gift card number and PIN\"}})])]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"OK\")])]),_c('ModalContent',{ref:\"modalInvalidCountry\",attrs:{\"modal\":_vm.modalInvalidCountryInfo}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Pay using a Gift Card\")]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('p',[_vm._v(\"The gift card you have entered is in \"+_vm._s(_vm.otherCurrency)+\" and you are currently shopping on our \"+_vm._s(_vm.currentWebsiteFull)+\" website.\")]),_c('p',[_vm._v(\"Please go back and change your \"),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.CountryLabel)}}),_vm._v(\" selector to \"+_vm._s(_vm.otherWebsiteFull)+\" and start your purchase again to ensure accurate stock availability and pricing in \"+_vm._s(_vm.otherCurrency))]),_c('p',[_vm._v(\"Alternatively close this window and complete this purchase with a credit card.\")])]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"OK\")])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:\"logo nofield\",attrs:{\"role\":\"presentation\"}},[_c('img',{attrs:{\"src\":\"/shared_assets/basket/giftcard-logo.svg\",\"alt\":\"\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:\"nofield\",attrs:{\"role\":\"presentation\"}},[_c('img',{attrs:{\"src\":\"/shared_assets/basket/giftcard-code.svg\",\"alt\":\"\"}})])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:\"Number\",class:[_vm.inError ? 'error-highlight' : '', 'form-floating'],attrs:{\"role\":\"presentation\"}},[((_vm.type)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.displayValue),expression:\"displayValue\"}],ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"aria-describedby\":_vm.ariaDescriber,\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.displayValue)?_vm._i(_vm.displayValue,null)>-1:(_vm.displayValue)},on:{\"change\":[function($event){var $$a=_vm.displayValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.displayValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.displayValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.displayValue=$$c}},function($event){return _vm.onChange($event.target.value)}],\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.onEnter($event)}}}):((_vm.type)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.displayValue),expression:\"displayValue\"}],ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"aria-describedby\":_vm.ariaDescriber,\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.displayValue,null)},on:{\"change\":[function($event){_vm.displayValue=null},function($event){return _vm.onChange($event.target.value)}],\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.onEnter($event)}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.displayValue),expression:\"displayValue\"}],ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"aria-describedby\":_vm.ariaDescriber,\"type\":_vm.type},domProps:{\"value\":(_vm.displayValue)},on:{\"change\":function($event){return _vm.onChange($event.target.value)},\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.onEnter($event)},\"input\":function($event){if($event.target.composing){ return; }_vm.displayValue=$event.target.value}}}),_vm._t(\"label\"),(_vm.inError)?_c('span',{staticClass:\"error-label\",attrs:{\"id\":'error-' + _vm.id},domProps:{\"innerHTML\":_vm._s(_vm.errormessage)}}):_vm._e(),_vm._t(\"extra\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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, Prop, Vue, Watch } from 'vue-property-decorator';\n import { IValidatable, IPropertyError } from '@/interfaces';\n import { store } from '@/store';\n import InputField from './InputField.vue';\n\n @Component({})\n\n export default class GiftCardInputField extends InputField {\n @Prop({default: ''}) private prefix!: string;\n\n private get displayValue(): string {\n return this.value;\n }\n\n private set displayValue(val: string) {\n const newValue = this.prefix + val.replace(/\\D/g, '');\n if (newValue !== val) {\n (this.$refs.field as HTMLInputElement).value = newValue;\n }\n if (newValue !== this.value) {\n this.$emit('input', newValue);\n }\n }\n\n private onEnter() {\n this.$emit('onEnter');\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GiftCardInputField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GiftCardInputField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GiftCardInputField.vue?vue&type=template&id=78a8c890&\"\nimport script from \"./GiftCardInputField.vue?vue&type=script&lang=ts&\"\nexport * from \"./GiftCardInputField.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport { DispatchAction, IAPIResponse } from '@/interfaces';\nimport * as utilities from '@/utilities';\nimport { store } from '@/store';\nimport PaymentType from './PaymentType.vue';\nimport ModalContent from '@/components/ui/ModalContent.vue';\nimport Modal from '@/components/ui/Modal';\nimport GiftCardInputField from '@/components/ui/htmlcomponents/GiftCardInputField.vue';\n\n@Component({ components: { ModalContent, GiftCardInputField }})\nexport default class GiftCards extends PaymentType {\n\n // The amount remaining on the order that can be paid by gift card\n @Prop() private outstanding!: number;\n\n private CardNumber: string = this.CardNumberPrefix;\n private CardPin: string = '';\n\n // config for hint popup and incorrect country for gift card popups\n private modalInfo: Modal = new Modal(true, true, 'popup', 'giftcard-hint');\n private modalInvalidCountryInfo: Modal = new Modal(true, true, 'popup');\n\n // Gift card error message\n private errorMessage: string | null = null;\n\n public mounted() {\n // Check for gift card error (for example when card removed due to cart change)\n const gcError = this.order.Errors.find((x) => x.Name === 'GiftCards');\n if (gcError !== undefined) {\n this.errorMessage = gcError.Codes[0];\n }\n }\n\n get CountryLabel(): string {\n return store.getters.WebsiteSettings.CountryLabel;\n }\n\n private get CardNumberPrefix(): string {\n let prefix = 'GC';\n switch (store.getters.WebsiteSettings.WebsitePrefix) {\n case 'wi':\n prefix = 'WC';\n break;\n case 'mi':\n prefix = 'MC';\n break;\n }\n return prefix;\n }\n\n private get sanitisedCardNumber() {\n return this.CardNumberPrefix + this.CardNumber.replace(/\\D/g, '');\n }\n\n private get applyButtonEnabled() {\n if (this.sanitisedCardNumber.length > 0 && this.sanitisedCardNumber !== this.CardNumberPrefix) {\n if (this.CardPin.length > 0) {\n return false;\n }\n }\n\n return true;\n }\n\n private get currentWebsiteFull(): string {\n if (this.WebsiteSettings.Country.toUpperCase() === 'AU') {\n return 'Australian';\n }\n return 'NZ';\n }\n\n private get otherWebsiteFull(): string {\n if (this.WebsiteSettings.Country.toUpperCase() === 'AU') {\n return 'New Zealand';\n }\n return 'Australia';\n }\n\n private get otherCurrency(): string {\n if (this.WebsiteSettings.Country.toUpperCase() === 'AU') {\n return 'NZD';\n }\n return 'AUD';\n }\n\n // -----------------------------------------------------------------\n // Apply Gift Card\n // -----------------------------------------------------------------\n private ApplyGiftCard() {\n // Just bail if the apply button is currently disabled to prevent user spamming form via holding down enter\n const applyButton: HTMLButtonElement = (this.$refs.applyButton as HTMLButtonElement);\n if (applyButton.disabled === true) {\n return;\n }\n applyButton.disabled = true;\n\n const url: string = '/client/v2/cart/order/giftcard?cardNumber='\n + this.sanitisedCardNumber\n + '&cardPin=' + this.CardPin;\n\n // Clear the payments error message\n this.errorMessage = null;\n\n utilities.fetch(url, { method: 'POST' })\n .then((response) => {\n if (!response.ok) {\n response.json().then((json: any) => {\n const errors = (json as IAPIResponse).Errors;\n if (errors && errors.length > 0) {\n // In the special case of an AU gift card being used on NZ (or vice versa)\n // we display a modal dialog instead of the usual error message\n if (errors[0].Code === 'ERR_GIFT_CARD_PREFIX_INVALID') {\n (this.$refs.modalInvalidCountry as ModalContent).Open();\n } else {\n this.errorMessage = utilities.getErrorMessage(errors[0]);\n }\n }\n applyButton.disabled = false;\n });\n } else {\n // Success! Update the order state\n this.CardNumber = this.CardNumberPrefix;\n this.CardPin = '';\n store.dispatch(DispatchAction.FetchOrder).then(() => {\n this.$emit('giftCardApplied');\n });\n }\n });\n }\n\n // Override the CanContinue flag\n public get CanContinue(): boolean {\n return this.outstanding === 0;\n }\n\n // respond to the hint link click\n private showHint() {\n (this.$refs.hint as ModalContent).Open();\n }\n\n private onPinInput() {\n // Strip non digit characters\n if (this.CardPin.match(/\\D/)) {\n this.CardPin = this.CardPin.replace(/\\D/g, '');\n }\n }\n\n // On enter button pressed on a GC input\n private onEnter() {\n this.ApplyGiftCard();\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GiftCard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GiftCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GiftCard.vue?vue&type=template&id=5862b596&\"\nimport script from \"./GiftCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./GiftCard.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"payment-option external afterpay\"},[_c('div',{staticClass:\"payment-heading\"},[_vm._v(_vm._s(_vm.payment.DisplayName))]),_c('div',{staticClass:\"payment-details\"},[_c('img',{staticClass:\"payment-logo\",attrs:{\"src\":\"/Shared_Assets/basket/payment/afterpay.svg\",\"alt\":\"\",\"border\":\"0\"}}),_c('p',[_vm._v(\"Pay fortnightly payments and receive your order now!\")]),_c('ul',{staticClass:\"afterpay-diagram\"},[_c('li',[_c('span',{staticClass:\"installment-amount\",attrs:{\"role\":\"text\"}},[_vm._v(\"$\"+_vm._s(_vm.afterPayUpdate))]),_c('span',{staticClass:\"installment-icon\",attrs:{\"role\":\"text\"}}),_c('span',{staticClass:\"installment-date\",attrs:{\"role\":\"text\"}},[_vm._v(\"First payment\")])]),_c('li',[_c('span',{staticClass:\"installment-amount\",attrs:{\"role\":\"text\"}},[_vm._v(\"$\"+_vm._s(_vm.afterPayUpdate))]),_c('span',{staticClass:\"installment-icon\",attrs:{\"role\":\"text\"}}),_c('span',{staticClass:\"installment-date\",attrs:{\"role\":\"text\"}},[_vm._v(\"2 weeks later\")])]),_c('li',[_c('span',{staticClass:\"installment-amount\",attrs:{\"role\":\"text\"}},[_vm._v(\"$\"+_vm._s(_vm.afterPayUpdate))]),_c('span',{staticClass:\"installment-icon\",attrs:{\"role\":\"text\"}}),_c('span',{staticClass:\"installment-date\",attrs:{\"role\":\"text\"}},[_vm._v(\"4 weeks later\")])]),_c('li',[_c('span',{staticClass:\"installment-amount afterpay-payment-price-final\",attrs:{\"role\":\"text\"}},[_vm._v(\"$\"+_vm._s(_vm.afterPayUpdate))]),_c('span',{staticClass:\"installment-icon\",attrs:{\"role\":\"text\"}}),_c('span',{staticClass:\"installment-date\",attrs:{\"role\":\"text\"}},[_vm._v(\"6 weeks later\")])])]),_c('div',{staticClass:\"redirect-blurb\",domProps:{\"innerHTML\":_vm._s(_vm.redirectBlurb)}}),_c('div',{staticClass:\"afterpay-returns\"},[_c('p',[_vm._v(\"Purchases made using Afterpay can be returned to PO BOX 4140, Hoppers Crossing, VIC, 3029, Australia for a refund or exchange.\")]),_c('p',[_vm._v(\"Orders made via Afterpay can be refunded in store or can be returned via post for a refund. Afterpay orders can only be exchanged at a \"+_vm._s(_vm.WebsiteSettings.Brand)+\" store for size, colour and same value exchanges.\")])]),_vm._m(0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"terms-and-conditions\"},[_c('a',{attrs:{\"href\":\"https://www.afterpay.com.au/terms/\",\"target\":\"_blank\"}},[_vm._v(\"View Terms & Conditions\")])])}]\n\nexport { render, staticRenderFns }","\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, Prop, Vue } from 'vue-property-decorator';\n import PaymentType from './PaymentType.vue';\n\n @Component({})\n export default class AfterPay extends PaymentType {\n\n /// Update afterpay installment amount.\n get afterPayUpdate(): string {\n return this.AfterpayCalculate(this.order.Total);\n }\n\n private AfterpayCalculate(price: number) {\n return (Math.ceil((price / 4) * 100) / 100).toFixed(2);\n }\n\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AfterPay.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AfterPay.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AfterPay.vue?vue&type=template&id=c860be80&\"\nimport script from \"./AfterPay.vue?vue&type=script&lang=ts&\"\nexport * from \"./AfterPay.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"payment-option creditcard\"},[_c('animation',{attrs:{\"AnimateHeight\":true},on:{\"afterEnter\":function($event){_vm.focusOnCardNumber = false}}},[(this.StoredCreditCards.length > 0 && !_vm.EditingCC)?_c('fieldset',{staticClass:\"stored-payments\"},[_c('legend',{staticClass:\"accessibility\"},[_vm._v(\"Use a Saved Card\")]),_c('ul',[_vm._l((this.StoredCreditCards),function(card,index){return _c('StoredPayment',{key:card.GUID,attrs:{\"StoredPayment\":card,\"AutoSelect\":_vm.autoSelect(index),\"ValidateableModel\":_vm.storedPaymentCard},on:{\"selected-storedpayment\":_vm.SetStoredPayment},model:{value:(_vm.selectedStoredPayment),callback:function ($$v) {_vm.selectedStoredPayment=$$v},expression:\"selectedStoredPayment\"}})}),_c('li',[_c('button',{ref:\"toggleTrigger\",staticClass:\"btn btn-secondary\",attrs:{\"type\":\"save\"},on:{\"click\":function($event){_vm.EditingCC = true}}},[_c('i',{staticClass:\"icon-plus\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"card-type\"},[_c('img',{attrs:{\"src\":\"/Shared_Assets/basket/payment/newcard.svg\",\"alt\":\"\"}})]),_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"Use a new card\")])])])],2)]):_vm._e()]),_c('animation',{attrs:{\"AnimateHeight\":true},on:{\"afterEnter\":function($event){_vm.focusOnCardNumber = true}}},[(_vm.EditingCC)?_c('fieldset',{staticClass:\"card-details\"},[_c('legend',{staticClass:\"accessibility\"},[_vm._v(\"Card Details\")]),(this.StoredCreditCards.length > 0)?_c('div',{staticClass:\"back-to-stored-payments\"},[_c('button',{staticClass:\"btn btn-link\",on:{\"click\":function($event){_vm.EditingCC = false}}},[_vm._v(\" Back to stored cards\")])]):_vm._e(),_c('ul',{staticClass:\"form\",attrs:{\"role\":\"presentation\"}},[_c('CreditCardInputField',{ref:\"ccNum\",staticClass:\"card-number\",class:[_vm.newCC.Number && _vm.newCC.Number.length > 0 ? 'not-empty' : ''],attrs:{\"id\":'card_number',\"type\":'text',\"pattern\":'[\\\\d ]*',\"name\":'card_number',\"required\":'required',\"maxlength\":'24',\"ValidatableModel\":_vm.newCC,\"ValidatableProperty\":'Number'},model:{value:(_vm.newCC.Number),callback:function ($$v) {_vm.$set(_vm.newCC, \"Number\", $$v)},expression:\"newCC.Number\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"card_number\"},slot:\"label\"},[_vm._v(\"Card Number\")])]),_c('InputField',{ref:\"ccName\",staticClass:\"card-holder form-floating\",class:[_vm.newCC.Name && _vm.newCC.Name.length > 0 ? 'not-empty' : ''],attrs:{\"id\":'card_name',\"type\":'text',\"name\":'card_name',\"required\":'required',\"maxlength\":'50',\"ValidatableModel\":_vm.newCC,\"ValidatableProperty\":'Name'},model:{value:(_vm.newCC.Name),callback:function ($$v) {_vm.$set(_vm.newCC, \"Name\", $$v)},expression:\"newCC.Name\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"card_name\"},slot:\"label\"},[_vm._v(\"Name\")])]),_c('li',{ref:\"ccExpiry\",staticClass:\"card-expiry\",class:[_vm.expiryError.length > 0 ? 'error-highlight' : ''],attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"month-selector form-floating\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.newCC.Month),expression:\"newCC.Month\"}],class:[_vm.newCC.Month && _vm.newCC.Month > 0 ? 'not-empty' : ''],attrs:{\"name\":\"exp_month\",\"id\":\"exp_month\"},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.newCC, \"Month\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"0\",\"disabled\":\"\",\"hidden\":\"\"}},[_vm._v(\"MM\")]),_vm._l((12),function(index){return _c('option',{key:index,domProps:{\"value\":index,\"textContent\":_vm._s(index < 10 ? '0' + index : index)}})})],2),_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('creditcard-paymentoption-cardexpiry-month-label'),expression:\"'creditcard-paymentoption-cardexpiry-month-label'\"}],attrs:{\"for\":\"exp_month\",\"aria-label\":\"Expiry month\"}},[_vm._v(\"Expiry Month\")])]),_c('span',{staticClass:\"year-selector form-floating\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.newCC.Year),expression:\"newCC.Year\"}],ref:\"yearSelect\",class:[_vm.newCC.Year && _vm.newCC.Year > 0 ? 'not-empty' : ''],attrs:{\"name\":\"exp_year\",\"id\":\"exp_year\",\"aria-describedby\":_vm.expiryError.length > 0 ? 'date-error' : false},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.newCC, \"Year\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"0\",\"disabled\":\"\",\"hidden\":\"\"}},[_vm._v(\"YYYY\")]),_vm._l((11),function(n,i){return _c('option',{key:i,domProps:{\"value\":_vm.CurrentYear + i}},[_vm._v(_vm._s(_vm.CurrentYear + i))])})],2),_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('creditcard-paymentoption-cardexpiry-year-label'),expression:\"'creditcard-paymentoption-cardexpiry-year-label'\"}],attrs:{\"for\":\"exp_year\",\"aria-label\":\"Expiry year\"}},[_vm._v(\"Expiry Year\")])]),(_vm.expiryError.length > 0)?_c('span',{staticClass:\"error-label\",attrs:{\"id\":\"date-error\"},domProps:{\"innerHTML\":_vm._s(_vm.expiryError)}}):_vm._e()]),_c('InputField',{ref:\"ccCode\",staticClass:\"card-pin form-floating\",class:[_vm.newCC.Csc && _vm.newCC.Csc.length > 0 ? 'not-empty' : ''],attrs:{\"id\":'card_code',\"type\":'text',\"pattern\":'\\\\d*',\"name\":'card_code',\"required\":'required',\"maxlength\":'4',\"ValidatableModel\":_vm.newCC,\"ValidatableProperty\":'Csc'},on:{\"input\":_vm.onCodeInput},model:{value:(_vm.newCC.Csc),callback:function ($$v) {_vm.$set(_vm.newCC, \"Csc\", $$v)},expression:\"newCC.Csc\"}},[_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('creditcard-paymentoption-cardpin-label'),expression:\"'creditcard-paymentoption-cardpin-label'\"}],attrs:{\"slot\":\"label\",\"for\":\"card_code\"},slot:\"label\"},[_vm._v(\"CVV\")]),_c('div',{attrs:{\"slot\":\"extra\"},slot:\"extra\"},[_c('ToolTip',{staticClass:\"ccv-tooltip\",attrs:{\"tooltipOptions\":{placement: [{breakpoint: 0, placement: 'top-right'}, {breakpoint: 992, placement: 'top'}], ariaLabel: 'More information on card security numbers', textAlign: 'vue-tooltip-text-left'}}},[_c('span',{staticClass:\"CVV-tooltip-icon\",attrs:{\"slot\":\"icon\"},slot:\"icon\"}),_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('creditcard-paymentoption-cardpin-tooltip'),expression:\"'creditcard-paymentoption-cardpin-tooltip'\"}],attrs:{\"slot\":\"content\"},slot:\"content\"})])],1)]),(_vm.showRecaptcha)?_c('li',{staticClass:\"recaptcha\"},[_c('recaptcha',{ref:\"recaptcha\",attrs:{\"sitekey\":_vm.recaptchaKey},on:{\"verified\":_vm.recaptchaVerify,\"expired\":_vm.recaptchaExpired}})],1):_vm._e(),(_vm.WebsiteSettings.IsLoggedIn && !_vm.WebsiteSettings.RetryingPlaceOrder)?_c('li',{staticClass:\"store-method nofield\",attrs:{\"role\":\"presentation\"}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.newCC.Save),expression:\"newCC.Save\"}],attrs:{\"type\":\"checkbox\",\"name\":\"storepayment\",\"id\":\"storepayment\"},domProps:{\"checked\":Array.isArray(_vm.newCC.Save)?_vm._i(_vm.newCC.Save,null)>-1:(_vm.newCC.Save)},on:{\"change\":function($event){var $$a=_vm.newCC.Save,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.newCC, \"Save\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.newCC, \"Save\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.newCC, \"Save\", $$c)}}}}),_c('label',{attrs:{\"for\":\"storepayment\"}},[(_vm.newCC.Save)?_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e(),_vm._v(\"Store this payment method for next time\")])]):_vm._e()],1)]):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:\"Number\",class:[_vm.inError ? 'error-highlight' : '', _vm.providerClass, 'form-floating'],attrs:{\"role\":\"presentation\"}},[((_vm.type)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.displayValue),expression:\"displayValue\"}],ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"aria-describedby\":_vm.ariaDescriber,\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.displayValue)?_vm._i(_vm.displayValue,null)>-1:(_vm.displayValue)},on:{\"change\":[function($event){var $$a=_vm.displayValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.displayValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.displayValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.displayValue=$$c}},function($event){return _vm.onChange($event.target.value)}]}}):((_vm.type)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.displayValue),expression:\"displayValue\"}],ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"aria-describedby\":_vm.ariaDescriber,\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.displayValue,null)},on:{\"change\":[function($event){_vm.displayValue=null},function($event){return _vm.onChange($event.target.value)}]}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.displayValue),expression:\"displayValue\"}],ref:\"field\",class:[!_vm.populated ? 'empty' : 'not-empty', _vm.inError ? 'error' : ''],attrs:{\"id\":_vm.id,\"name\":_vm.name,\"required\":_vm.required,\"disabled\":_vm.isDisabled,\"maxlength\":_vm.maxlength,\"pattern\":_vm.pattern,\"aria-describedby\":_vm.ariaDescriber,\"type\":_vm.type},domProps:{\"value\":(_vm.displayValue)},on:{\"change\":function($event){return _vm.onChange($event.target.value)},\"input\":function($event){if($event.target.composing){ return; }_vm.displayValue=$event.target.value}}}),_vm._t(\"label\"),(_vm.inError)?_c('span',{staticClass:\"error-label\",attrs:{\"id\":'error-' + _vm.id},domProps:{\"innerHTML\":_vm._s(_vm.getErrorMessage(_vm.errormessage))}}):_vm._e(),_vm._t(\"extra\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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, Prop, Vue, Watch } from 'vue-property-decorator';\n import { IValidatable, IPropertyError, IKeyValuePair } from '@/interfaces';\n import InputField from './InputField.vue';\n import { store } from '../../../store';\n\n @Component({})\n\n export default class CreditCardInputField extends InputField {\n\n private get providerClass(): string {\n let className: string = '';\n const val = this.value;\n const cardTypes: any = {\n mastercard: /^5[1-5][0-9]{14}$|^2(?:2(?:2[1-9]|[3-9][0-9])|[3-6][0-9][0-9]|7(?:[01][0-9]|20))[0-9]{12}$/,\n visa: /^4[0-9]{12}(?:[0-9]{3})?$/,\n amex: /^3[47][0-9]{13}$/,\n diners: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,\n };\n Object.keys(cardTypes).forEach((key) => {\n const cardtype = cardTypes[key];\n if (cardtype.test(val)) {\n className = key;\n }\n });\n return className;\n }\n\n\n private get displayValue(): string {\n return this.addSpaces(this.value);\n }\n\n private set displayValue(val: string) {\n const newValue = val.replace(/\\D/g, '');\n if (newValue !== val) {\n (this.$refs.field as HTMLInputElement).value = this.addSpaces(newValue);\n }\n if (newValue !== this.value) {\n this.$emit('input', newValue);\n }\n }\n\n protected onChange(value: string) {\n this.$emit('change', value);\n }\n\n private addSpaces(val: string): string {\n const characters: string[] = val.split('');\n const output: string[] = [];\n characters.forEach((char: string, index: number) => {\n output.push(char);\n const nextIdx = index + 1;\n if (nextIdx < characters.length && nextIdx % 4 === 0) {\n output.push(' ');\n }\n });\n return output.join('');\n }\n\n private getErrorMessage(keyName: string): string {\n return store.getters.getGlossaryEntryByKey(keyName) || keyName;\n }\n\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreditCardInputField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreditCardInputField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreditCardInputField.vue?vue&type=template&id=0453be61&\"\nimport script from \"./CreditCardInputField.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreditCardInputField.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue-recaptcha\"})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n Wrapper for Google reCAPTCHA v.2 api (https://developers.google.com/recaptcha/docs/display)\r\n Exposes native methods as async promises\r\n Ensures that the api is only loaded in once\r\n*/\r\n// flag to ensure we only load the api in once\r\nvar captchaInitialised = false;\r\n// placeholders for the resolve and reject functions\r\nvar captchaInitPromiseResolve;\r\nvar captchaInitPromiseReject;\r\n// global promise used by all instances\r\nvar captchaInitPromise = new Promise(function (resolve, reject) {\r\n captchaInitPromiseResolve = resolve;\r\n captchaInitPromiseReject = reject;\r\n});\r\nvar RecaptchaAsync = /** @class */ (function () {\r\n function RecaptchaAsync() {\r\n }\r\n // public functions, as per Google reCAPTCHA object, exposed as promises\r\n RecaptchaAsync.prototype.render = function (el, options) {\r\n return this.init().then(function (grObj) {\r\n var id = grObj.render(el, options);\r\n return id;\r\n });\r\n };\r\n RecaptchaAsync.prototype.reset = function (widgetID) {\r\n return this.init().then(function (grObj) {\r\n grObj.reset(widgetID);\r\n return;\r\n });\r\n };\r\n RecaptchaAsync.prototype.getResponse = function (widgetID) {\r\n return this.init().then(function (grObj) {\r\n return grObj.getResponse(widgetID);\r\n });\r\n };\r\n // set up the promise if not already there, otherwise reference it\r\n RecaptchaAsync.prototype.init = function () {\r\n if (captchaInitialised) {\r\n // we have previously declared an instance of this class, so return the global promise\r\n return captchaInitPromise;\r\n }\r\n // set our flag to avoid re-initialising\r\n captchaInitialised = true;\r\n // in the querystring to Google we declare a callback function that needs to be exposed on the window object\r\n // set it to resolve our promise\r\n var win = window;\r\n win.vueRecaptchaApiLoaded = function () { return captchaInitPromiseResolve(win.grecaptcha); };\r\n if (win.grecaptcha) {\r\n // looks like the script tag was included elsewhere, so we should warn someone\r\n console.warn('Basket and Checkout app is reloading the Google reCAPTCHA api');\r\n }\r\n if (document.getElementById('recaptcha-api') === null) {\r\n // add in our script tag\r\n var script = document.createElement('script');\r\n script.async = true;\r\n script.defer = true;\r\n script.id = 'recaptcha-api';\r\n script.src = 'https://www.google.com/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit';\r\n script.onerror = captchaInitPromiseReject;\r\n var head = document.querySelector('head');\r\n if (head !== null) {\r\n head.appendChild(script);\r\n }\r\n }\r\n // return the newly set-up promise\r\n return captchaInitPromise;\r\n };\r\n return RecaptchaAsync;\r\n}());\r\nexport default RecaptchaAsync;\r\n//# sourceMappingURL=RecaptchaAsync.js.map","\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport { IKeyValuePair } from '@/interfaces';\nimport RecaptchaAsync from './RecaptchaAsync';\n\n\n@Component({})\nexport default class Recaptcha extends Vue {\n // properties match the render params of the Google reCAPTCHA object\n // https://developers.google.com/recaptcha/docs/display\n @Prop({default: ''}) private sitekey!: string;\n @Prop() private theme?: string;\n @Prop() private size?: string;\n @Prop() private tabindex?: number;\n\n private widgetID: string | undefined;\n private recaptcha: RecaptchaAsync | undefined;\n\n public reset(): Promise<any> | undefined {\n if (this.recaptcha !== undefined) {\n return this.recaptcha.reset(this.widgetID);\n }\n }\n\n public getResponse(): Promise<any> | undefined {\n if (this.recaptcha !== undefined) {\n return this.recaptcha.getResponse(this.widgetID);\n }\n }\n\n // object in the correct format to supply to the render function of the Google reCAPTCHA object\n private get renderParams(): IKeyValuePair {\n const params: IKeyValuePair = {\n sitekey: this.sitekey,\n };\n params.callback = (token: string) => { this.emitVerified(token); };\n params['expired-callback'] = () => { this.emitExpired(); };\n // optional parameters\n if (this.theme !== undefined) {\n params.theme = this.theme;\n }\n if (this.size !== undefined) {\n params.size = this.size;\n }\n if (this.tabindex !== undefined) {\n params.tabindex = this.tabindex;\n }\n return params;\n }\n\n private emitExpired() {\n this.$emit('expired');\n }\n\n private emitVerified(token: string) {\n this.$emit('verified', token);\n }\n\n\n private mounted() {\n this.recaptcha = this.recaptcha || new RecaptchaAsync();\n this.recaptcha.render(this.$el as HTMLElement, this.renderParams).then((id: string) => {\n this.widgetID = id;\n this.$emit('rendered');\n });\n }\n\n}\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Recaptcha.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Recaptcha.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Recaptcha.vue?vue&type=template&id=0a3432ce&\"\nimport script from \"./Recaptcha.vue?vue&type=script&lang=ts&\"\nexport * from \"./Recaptcha.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:[_vm.isSelected ? 'selected' : '']},[_c('input',{attrs:{\"type\":\"radio\",\"name\":\"storepayments\",\"id\":_vm.StoredPayment.GUID},domProps:{\"value\":_vm.StoredPayment.GUID,\"checked\":_vm.isSelected},on:{\"click\":_vm.selectMe}}),_c('label',{attrs:{\"for\":_vm.StoredPayment.GUID,\"aria-label\":'Stored '+ _vm.StoredPayment.CardType + ' card, cardholder name ' + _vm.StoredPayment.Name +' ends with ' + _vm.StoredPayment.Number.substring(_vm.StoredPayment.Number.length - 4)}},[(_vm.isSelected)?_c('i',{staticClass:\"icon-radio-btn-selected\",attrs:{\"aria-hidden\":\"true\"}}):_c('i',{staticClass:\"icon-radio-btn\",attrs:{\"aria-hidden\":\"true\"}}),(_vm.StoredPayment.CardType)?_c('span',{staticClass:\"card-type\",attrs:{\"role\":\"text\"}},[_c('img',{attrs:{\"src\":'/Shared_Assets/basket/payment/' + _vm.StoredPayment.CardType.replace(/ /g,'') + '.svg',\"alt\":_vm.StoredPayment.CardType}})]):_vm._e(),_c('div',{staticClass:\"card-details\"},[(_vm.StoredPayment.Name)?_c('span',{staticClass:\"card-name\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.StoredPayment.Name))]):_vm._e(),(_vm.StoredPayment.Number)?_c('span',{staticClass:\"card-number\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.DisplayFriendlyNumber))]):_vm._e(),(_vm.StoredPayment.BillingAgreementID)?_c('span',{staticClass:\"billing-id\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.StoredPayment.BillingAgreementID))]):_vm._e()])]),_c('button',{staticClass:\"btn btn-delete\",attrs:{\"aria-label\":\"Delete stored payment\"},on:{\"click\":_vm.DeleteStoredPayment}},[_c('i',{staticClass:\"icon-delete\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Delete\")]),_c('animation',{attrs:{\"AnimateHeight\":true},on:{\"afterEnter\":_vm.focusOnCVV}},[(_vm.isSelected && _vm.requireCVV)?_c('ul',{staticClass:\"cvv-challenge\"},[_c('InputField',{ref:\"ccCode\",staticClass:\"card-pin form-floating\",class:[_vm.ValidateableModel && _vm.ValidateableModel.Csc && _vm.ValidateableModel.Csc.length > 0 ? 'not-empty' : ''],attrs:{\"id\":'card_code',\"inputmode\":'numeric',\"type\":'text',\"pattern\":_vm.cvvValidation,\"name\":'card_code',\"required\":'required',\"maxlength\":'4',\"ValidateableModel\":_vm.ValidateableModel,\"ValidatableProperty\":'Csc'},on:{\"input\":_vm.onCodeInput,\"blur\":_vm.fieldBlurred},model:{value:(_vm.cvv),callback:function ($$v) {_vm.cvv=$$v},expression:\"cvv\"}},[_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('storedpayment-cardpin-label'),expression:\"'storedpayment-cardpin-label'\"}],attrs:{\"slot\":\"label\",\"for\":\"card_code\"},slot:\"label\"},[_vm._v(\"Please confirm CVV\")]),_c('div',{attrs:{\"slot\":\"extra\"},slot:\"extra\"},[_c('ToolTip',{staticClass:\"ccv-tooltip\",attrs:{\"tooltipOptions\":{placement: [{breakpoint: 0, placement: 'top-right'}, {breakpoint: 992, placement: 'top'}], ariaLabel: 'More information on card security numbers', textAlign: 'vue-tooltip-text-left'}}},[_c('span',{staticClass:\"CVV-tooltip-icon\",attrs:{\"slot\":\"icon\"},slot:\"icon\"}),_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('storedpayment-cardpin-tooltip'),expression:\"'storedpayment-cardpin-tooltip'\"}],attrs:{\"slot\":\"content\"},slot:\"content\"})])],1)])],1):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { store } from '@/store';\nimport { DispatchAction, ICreditCard, IPropertyError, IStoredCreditCard, IWebsiteSettings } from '@/interfaces';\nimport * as utilities from '@/utilities';\nimport Animation from '@/components/ui/animations/Animation.vue';\nimport InputField from '@/components/ui/htmlcomponents/InputField.vue';\nimport ToolTip from '@/components/ui/ToolTip.vue';\n\n@Component({components: {Animation, InputField, ToolTip}})\n\nexport default class StoredPayment extends Vue {\n @Prop() private StoredPayment!: IStoredCreditCard;\n\n // v-model binding will set this to match the currently selected guid\n @Prop() private value!: string;\n\n @Prop() private AutoSelect!: boolean;\n\n @Prop() private ValidateableModel!: ICreditCard | null;\n\n private deleting: boolean = false;\n private cvv: string = '';\n private requireCVV: boolean = store.getters.WebsiteSettings.StoredPaymentsRequireCVV;\n private cvvErrorMessage: string = store.getters.getGlossaryEntryByKey('storedpayment-cardpin-error') || 'Please enter a valid CVV';\n private cvvValidation = '\\\\d{3,}';\n private cvvRX = new RegExp(this.cvvValidation);\n\n public mounted() {\n // If we are the default selected stored payment, fire an event saying we are selected\n if (this.StoredPayment.DefaultPaymentMethod === true\n && !store.getters.WebsiteSettings.StoredPaymentsRequireCVV) {\n this.selectMe();\n }\n if (this.ValidateableModel && this.ValidateableModel.Errors.find((err) => err.Name === 'Csc')) {\n const inputField = this.$refs.ccCode as InputField | undefined;\n if (inputField) {\n inputField.setError(this.cvvErrorMessage);\n }\n }\n }\n\n // if this payment has been deleted we need to ensure it is not selected\n public beforeDestroy() {\n if (this.deleting && this.isSelected) {\n this.$emit('selected-storedpayment', null);\n }\n }\n\n public focusOnCVV() {\n const inputField = this.$refs.ccCode as InputField | undefined;\n if (inputField) {\n inputField.focusField();\n }\n }\n // Call Platform StoredPayment Handler to delete the payment option.\n protected DeleteStoredPayment() {\n this.deleting = true;\n this.$ariaAnnounce('Deleting stored payment');\n const url = '/Global/StoredPayments.ashx?rnd=' + encodeURIComponent(store.getters.CsrfToken)\n + '&action=delete&guid=' + encodeURIComponent(this.StoredPayment.GUID);\n\n utilities.fetch(url, {method: 'POST'}).then((response) => {\n if (response.ok) {\n // tslint:disable-next-line:max-line-length\n // TO-DO Proper Error Handling. It retrieves: <storedpayment><error>An unexpected error has occurred, please try again later.</error></storedpayment>.\n store.dispatch(DispatchAction.FetchStoredPayment);\n this.$ariaAnnounce('Stored payment deleted');\n } else {\n // TO-DO Proper Error Handling\n console.log('An error occurred deleting this payment option, please try again later.');\n }\n });\n }\n\n get DisplayFriendlyNumber() {\n let friendlyNumber: string = '';\n const originalString: string = this.StoredPayment.Number || '';\n for (let i = 0; i < originalString.length; i++) {\n if (i > 0 && i % 4 === 0) {\n friendlyNumber += ' ';\n }\n friendlyNumber += originalString[i];\n }\n return friendlyNumber.replace(/x/g, '*').toUpperCase();\n }\n\n private get isSelected(): boolean {\n let selected: boolean = false;\n if (this.value === '') {\n selected = this.AutoSelect;\n } else {\n selected = this.value === this.StoredPayment.GUID;\n }\n if (selected) {\n this.selectMe();\n }\n return selected;\n }\n\n private selectMe() {\n this.cvv = '';\n this.$emit('selected-storedpayment', this.StoredPayment);\n }\n\n private onCodeInput() {\n if (/\\D/.test(this.cvv)) {\n this.cvv = this.cvv.replace(/\\D/g, '');\n }\n }\n\n private fieldBlurred() {\n const inputField = this.$refs.ccCode as InputField | undefined;\n if (inputField) {\n inputField.enableLiveValidation();\n }\n }\n\n @Watch('cvv')\n private cvvUpdate(newVal: string, oldVal: string) {\n const inputField = this.$refs.ccCode as InputField | undefined;\n if (this.ValidateableModel) {\n this.ValidateableModel.Csc = newVal;\n if (inputField && inputField.LiveValidation && !this.cvvRX.test(newVal)) {\n this.ValidateableModel.Errors = [{ Name: 'Csc', Codes: [this.cvvErrorMessage] }];\n } else {\n this.ValidateableModel.Errors = [];\n if (inputField) {\n inputField.clearError();\n inputField.disableLiveValidation();\n }\n }\n }\n }\n\n @Watch('ValidateableModel.Errors')\n private errorsChanged(newVal: IPropertyError[]) {\n if (newVal.length && newVal.find((err) => err.Name === 'Csc')) {\n const inputField = this.$refs.ccCode as InputField | undefined;\n if (inputField) {\n inputField.setError(this.cvvErrorMessage);\n }\n }\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StoredPayment.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StoredPayment.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./StoredPayment.vue?vue&type=template&id=31d77a4a&\"\nimport script from \"./StoredPayment.vue?vue&type=script&lang=ts&\"\nexport * from \"./StoredPayment.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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, Prop, Vue, Watch} from 'vue-property-decorator';\n import { store } from '@/store';\n import {\n IStoredPayment,\n IKeyValuePair,\n ICreditCard,\n IPropertyError,\n PaymentTypes,\n } from '@/interfaces';\n\n import Animation from '@/components/ui/animations/Animation.vue';\n import CreditCardInputField from '@/components/ui/htmlcomponents/CreditCardInputField.vue';\n import InputField from '../../ui/htmlcomponents/InputField.vue';\n import PaymentType from './PaymentType.vue';\n import Recaptcha from '@/components/recaptcha/Recaptcha.vue';\n import StoredPayment from '../StoredPayment.vue';\n import ToolTip from '@/components/ui/ToolTip.vue';\n\n @Component({ components: { StoredPayment, InputField, CreditCardInputField, Animation, ToolTip, Recaptcha }})\n export default class CreditCard extends PaymentType {\n\n public newCC: ICreditCard = {\n Name: '',\n Number: '',\n Csc: '',\n Month: 0,\n Year: 0,\n Save: false,\n Errors: [],\n };\n\n public storedPaymentCard: ICreditCard = {\n Name: null,\n Number: null,\n Csc: '',\n Month: null,\n Year: null,\n Save: false,\n Errors: [],\n };\n\n private editingCC: boolean = this.StoredCreditCards.length === 0;\n private hasInteracted: boolean = false;\n private recaptchaKey: string = store.getters.WebsiteSettings.ReCaptchaKey;\n private recaptchaToken: string = '';\n private focusOnCardNumber: boolean = false;\n\n get StoredCreditCards(): IStoredPayment[] {\n return this.payment.StoredPayments.filter((option: IStoredPayment) => option.Type === PaymentTypes.CreditCard);\n }\n\n\n get CurrentYear(): number {\n return new Date().getFullYear();\n }\n\n get expiryError(): string {\n let errorCode: string = '';\n this.newCC.Errors.some((x: IPropertyError) => {\n if (x.Name === 'Month' || x.Name === 'Year') {\n errorCode = x.Codes[0];\n return true;\n }\n return false;\n });\n return errorCode;\n }\n\n // Override the CanContinue flag to reflect the submittable state of the payment\n public get CanContinue(): boolean {\n if (this.OrderPayment.StoredPayment !== null) {\n if (store.getters.WebsiteSettings.StoredPaymentsRequireCVV) {\n const card = this.OrderPayment.Card;\n if (card && card.Csc) {\n return /\\d{3,}/.test(card.Csc);\n }\n return false;\n }\n return true;\n } else if (this.OrderPayment.Card !== null) {\n return this.cardErrors(this.OrderPayment.Card).length === 0;\n }\n return false;\n }\n\n public mounted() {\n // ensure initial state is registered for validation\n this.toggleForm(this.editingCC);\n this.scrollFocusIntoView(this.focusOnCardNumber);\n }\n\n private get selectedStoredPayment(): string {\n if ( this.OrderPayment.StoredPayment !== null) {\n return this.OrderPayment.StoredPayment;\n }\n return '';\n }\n\n private get EditingCC(): boolean {\n if (this.editingCC || this.StoredCreditCards.length === 0) {\n return true;\n }\n return false;\n }\n\n private set EditingCC(val: boolean) {\n this.editingCC = val;\n }\n\n @Watch('focusOnCardNumber')\n public scrollFocusIntoView(newVal: boolean) {\n if (newVal === true) {\n const inputField = this.$refs.ccNum as InputField | undefined;\n if (inputField !== undefined) {\n // Scroll the focused input into view:\n const distanceFromTop = Math.floor((inputField.$refs.field as HTMLElement).getBoundingClientRect().top);\n const inputOffsetTop = Math.floor((inputField.$refs.field as HTMLElement).offsetTop);\n window.scrollBy({\n top: (distanceFromTop - inputOffsetTop),\n behavior: 'smooth',\n });\n }\n }\n }\n\n @Watch('EditingCC')\n public toggleForm(newVal: boolean) {\n if (newVal === true) {\n this.OrderPayment.Card = this.newCC;\n this.OrderPayment.StoredPayment = null;\n if (this.hasInteracted) {\n Vue.nextTick(() => {\n // Set focus to CC number field\n const inputField = this.$refs.ccNum as InputField | undefined;\n if (inputField !== undefined) {\n this.$nextFocus(inputField.$refs.field as HTMLElement);\n }\n });\n }\n } else {\n if (this.hasInteracted) {\n Vue.nextTick(() => {\n // Set focus back to the button that triggers the toggle\n const trigger = this.$refs.toggleTrigger as HTMLElement | undefined;\n if (trigger !== undefined) {\n this.$nextFocus(trigger);\n }\n });\n }\n }\n this.hasInteracted = true;\n }\n\n // Basic validation TODO display the errors if they have tried to submit?\n private cardErrors(card: ICreditCard): IKeyValuePair[] {\n const errors: IKeyValuePair[] = [];\n if (!(card.Name && card.Name.length > 0)) {\n errors.push({ Name: 'Please enter a cardholder name' });\n }\n if (Number(card.Month && card.Month) === 0 || Number(card.Year) === 0) {\n errors.push({ Date: 'Please enter a date' });\n }\n if (card.Number && card.Number.length === 0) {\n errors.push({ Number: 'Please enter your card number' });\n }\n if (card.Csc && card.Csc.length === 0) {\n errors.push({ Csc: 'Please enter your CVV' });\n }\n if (this.showRecaptcha && this.recaptchaToken === '') {\n errors.push({ recaptcha: 'Please confirm that you are not a robot' });\n }\n return errors;\n }\n\n private autoSelect(index: number): boolean {\n if (store.getters.WebsiteSettings.StoredPaymentsRequireCVV) {\n return false;\n }\n return this.StoredCreditCards.length - 1 === index;\n }\n\n // react to events emitted by StoredPayment components (set/unset)\n private SetStoredPayment(selectedStoredPayment: IStoredPayment | null) {\n if (selectedStoredPayment === null) {\n this.OrderPayment.StoredPayment = null;\n } else {\n if (this.OrderPayment.StoredPayment !== selectedStoredPayment.GUID) {\n this.OrderPayment.StoredPayment = selectedStoredPayment.GUID;\n if (store.getters.WebsiteSettings.StoredPaymentsRequireCVV) {\n this.OrderPayment.Card = this.storedPaymentCard;\n this.storedPaymentCard.Csc = '';\n this.storedPaymentCard.Errors = [];\n } else {\n this.OrderPayment.Card = null;\n }\n }\n }\n this.EditingCC = false;\n }\n\n private onCodeInput() {\n // Strip non digit characters\n if (this.newCC.Csc && this.newCC.Csc.match(/\\D/)) {\n this.newCC.Csc = this.newCC.Csc.replace(/\\D/g, '');\n }\n }\n\n // when errors are detected we want to focus on the first field in error\n @Watch('newCC.Errors')\n private onErrors(newVal: IPropertyError[]) {\n if (!newVal.length) {\n return;\n }\n Vue.nextTick(() => {\n // cast the $refs property as key-value so that typescript lets us use string references\n const refNodes: IKeyValuePair = this.$refs as IKeyValuePair;\n // these are references to the components that hold our fields (in the order that they appear on the page)\n const refs: string[] = ['ccNum', 'ccName', 'ccExpiry', 'ccCode'];\n\n // iterate through our fields until we find the first one with an error\n refs.some((ref: string) => {\n // set a flag and reference the component/element that we are interested in\n let hasError: boolean = false;\n const refNode: any = refNodes[ref];\n if (refNode instanceof InputField) {\n // InputField components expose their errror state and a focusField method\n const el: InputField = refNode as InputField;\n hasError = el.inError;\n if (hasError) {\n el.focusField();\n }\n } else if (refNode instanceof HTMLElement) {\n // date has two fields, which both share a message, so we'll treat it a bit different\n const el: HTMLElement = refNode as HTMLElement;\n if (el.classList.contains('card-expiry')) {\n // luckily for us we've already got a way to check for date errors\n hasError = this.expiryError.length > 0;\n }\n if (hasError) {\n this.$nextFocus(this.$refs.yearSelect as HTMLElement);\n }\n }\n // the 'some' loop will stop as soon as we return true\n return hasError;\n });\n });\n }\n\n\n // Google Recaptcha functionality\n private get showRecaptcha(): boolean {\n return this.recaptchaKey.length > 0 && this.order.CustomerID === 1;\n }\n\n private recaptchaExpired() {\n this.recaptchaToken = '';\n }\n\n private recaptchaVerify(token: string) {\n this.recaptchaToken = token;\n }\n\n @Watch('recaptchaToken')\n private setRecaptchaToken(val: string) {\n if (val.length > 0) {\n this.OrderPayment.ReCaptchaToken = val;\n } else {\n delete this.OrderPayment.ReCaptchaToken;\n }\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreditCard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreditCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreditCard.vue?vue&type=template&id=7a174327&\"\nimport script from \"./CreditCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreditCard.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('table',{attrs:{\"role\":\"presentation\"}},[_c('tbody',{staticClass:\"sub-total-items\",attrs:{\"role\":\"presentation\"}},[(_vm.order.GiftCards.length > 0)?_c('tr',{staticClass:\"order-total-before-giftcard\"},[_c('td',{staticClass:\"message\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('paymentordersummary-total-before-giftcard'),expression:\"'paymentordersummary-total-before-giftcard'\"}],attrs:{\"role\":\"text\"}},[_vm._v(\"Total before gift card \")])]),_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.totalBeforeGiftcard}})],1)]):_vm._e(),_vm._l((_vm.order.GiftCards),function(giftcard){return _c('tr',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.currentpage === 'checkout' || _vm.currentpage === 'complete'),expression:\"currentpage === 'checkout' || currentpage === 'complete'\"}],key:giftcard.ID,staticClass:\"price-discount\"},[_c('td',{staticClass:\"message\"},[_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\"Gift Card \"),(giftcard.PartiallyApplied)?_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(\" Partially Applied \")]):_vm._e(),_vm._v(_vm._s(giftcard.CardNumberDisplay.substring(giftcard.CardNumberDisplay.length - 5, giftcard.CardNumberDisplay.length)))])]),(giftcard.ValueRequested > 0)?_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.discountedPrice(giftcard.ValueRequested)}})],1):_vm._e()])}),_c('tr',{staticClass:\"order-total\"},[_c('td',[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.totalDisplayText)}})]),_c('td',{staticClass:\"pricing amount\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.total}})],1)])],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport OrderSummary from '@/components/OrderSummary.vue';\nimport Price from '../pricing/Price';\nimport PriceDisplay from '../pricing/PriceDisplay.vue';\n\n@Component({\n components: {\n PriceDisplay,\n },\n})\nexport default class PaymentOrderSummary extends OrderSummary {\n get totalBeforeGiftcard(): Price {\n return new Price(this.order.Total, Price.Types.SUBTOTAL);\n }\n}\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentOrderSummary.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentOrderSummary.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PaymentOrderSummary.vue?vue&type=template&id=102845dc&\"\nimport script from \"./PaymentOrderSummary.vue?vue&type=script&lang=ts&\"\nexport * from \"./PaymentOrderSummary.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['payment-option','klarna', _vm.payment.Description]},[_c('div',{staticClass:\"payment-heading\"},[_vm._v(_vm._s(_vm.payment.DisplayName))]),_c('div',{staticClass:\"payment-details\"},[_c('p',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.displayWidget),expression:\"!displayWidget\"}],attrs:{\"id\":\"klarna-loading\"}},[_c('span',[_vm._v(\"Klarna is loading, please wait...\")])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.displayWidget),expression:\"displayWidget\"}],attrs:{\"id\":\"klarna-payments-container\"}})]),(_vm.showErrorModal)?_c('ModalContent',{ref:\"errorModal\",attrs:{\"modal\":_vm.errorModalInfo},on:{\"closed\":function($event){_vm.showErrorModal = false}}},[_c('h3',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('klarna-error-modal-header'),expression:\"'klarna-error-modal-header'\"}],attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Klarna error\")]),_c('p',{staticClass:\"alert alert-danger\",attrs:{\"slot\":\"body\"},slot:\"body\"},[_vm._v(_vm._s(_vm.getModalErrorMessage()))]),_c('span',{attrs:{\"slot\":\"confirm-text\"},slot:\"confirm-text\"},[_vm._v(\"OK\")])]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport PaymentType from './PaymentType.vue';\nimport { IAuthorizationToken, IAPIResponse, IError, IKeyValuePair, PaymentTypes } from '@/interfaces';\nimport { store } from '@/store';\nimport * as utilities from '@/utilities';\nimport Modal from '@/components/ui/Modal';\nimport ModalContent from '@/components/ui/ModalContent.vue';\n\n// declare the Klarna object that will later be created by Klarna's API\ndeclare var Klarna: any;\n\n@Component({\n components: {\n ModalContent,\n },\n})\n\nexport default class KlarnaPayment extends PaymentType {\n\n get CanContinue() {\n return this.canWeContinue;\n }\n set CanContinue(value: boolean) {\n this.canWeContinue = value;\n }\n\n // Variables prefixed with 'klarna' contain data returned by the Klarna API\n private klarnaAuth: string = '';\n private klarnaSessionID: string = '';\n private displayWidget: boolean = false;\n private errorState: number = 1; // 1 = non-specific error, 2 = fatal error\n private canWeContinue: boolean = false;\n private sessionInitializing: boolean = false;\n\n // Create a response object used to resolve the promise later in verify()\n private response: IAPIResponse = {\n Data: {verified: false},\n Errors: [],\n };\n\n // controls the display of the error message modal popup\n private showErrorModal: boolean = false;\n private errorModalInfo: Modal = new Modal(true, false, 'alert');\n\n\n\n // Override the verify() function to handle Klarna's async processing\n public async verify(): Promise<IAPIResponse> {\n return new Promise((resolve, reject) => {\n\n const url = '/api/payments/klarna/orderdetails';\n const fetchParameters: IKeyValuePair = {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n },\n };\n\n utilities.fetch(url, fetchParameters)\n .then((response1: any) => {\n\n // Handle any 400 or 500 errors\n const status = response1.status || 0;\n\n if (status === 400) {\n this.setError('ERR_KLARNA_ORDER_EXPIRED', 'The order has expired, please refresh your page.');\n this.$emit('disable', this.ID);\n resolve(this.response);\n }\n\n if (status === 500) {\n this.setError('ERR_PAYMENT_TRANSACTION_FAIL', 'Sorry, but there seems to be a problem with your payment. Please try again or use a different payment method.');\n this.$emit('disable', this.ID);\n resolve(this.response);\n }\n\n response1.json().then((data: any) => {\n // If we get order data back then we are good to go to authorize the order with Klarna\n if (data !== null) {\n\n Klarna.Payments.authorize({\n payment_method_category: 'pay_later',\n },\n data,\n (response2: any) => {\n\n // The Authorization request was approved, store the Klarna authorization token and session id\n // and send the user to the Order Confirmation screen\n if (response2.approved) {\n this.klarnaAuth = response2.authorization_token;\n\n const KlarnaAuthorization: IAuthorizationToken = {\n Token: this.klarnaAuth,\n SessionID: this.klarnaSessionID,\n Errors: [],\n };\n this.OrderPayment.AuthorizationToken = KlarnaAuthorization;\n this.response.Errors.length = 0; // clear any previous errors\n this.response.Data = {verified: true};\n resolve(this.response);\n\n } else {\n // If the API has set show_form to false then Klarna has declined the order,\n // the user needs to select another payment method\n if (!response2.show_form) {\n // Disable Klarna payment option\n this.$emit('disable', this.ID);\n this.errorState = 2;\n this.showErrorModal = true;\n\n // Error handling\n this.setError('ERR_KLARNA_FAILURE', 'Unfortunately your Klarna transaction has not been approved. Please try again with a different payment method.');\n resolve(this.response);\n }\n\n // If the user gets to here, there are fixable errors displayed within the widget. We don't need\n // to show our own error message as the Klarna widget displays any relevant errors in their popup\n this.response.Errors.length = 0; // clear any previous errors\n this.response.Data = {verified: false};\n resolve(this.response);\n }\n\n });\n\n } else {\n // No data returned from our orderdetails API call\n this.setError('ERR_PAYMENT_TRANSACTION_FAIL', 'Sorry, but there seems to be a problem with your payment. Please try again or use a different payment method.');\n this.$emit('disable', this.ID);\n resolve(this.response);\n }\n\n });\n\n })\n .catch((err: any) => {\n this.setError('ERR_PAYMENT_TRANSACTION_FAIL', 'Sorry, but there seems to be a problem with your payment. Please try again or use a different payment method.');\n this.$emit('disable', this.ID);\n resolve(this.response);\n });\n\n });\n }\n\n\n\n // Fetch the relevant error message for use in a modal popup.\n // Only current valid values for errorStatus are 1 (generic/non-specific error) or 2 (fatal error, payment declined)\n private getModalErrorMessage(): string {\n if (this.errorState === 2) {\n return 'An error has occurred with the Klarna payment option. Please select a different payment method.';\n }\n return 'Sorry, but there seems to be a problem with your payment. Please try again, refresh your page or use a different payment method.';\n }\n\n\n\n // Set a single error in the response object to use in verify()\n private setError(code: string, message: string, clearErrors: boolean = true) {\n this.response.Data = {verified: false};\n\n if (clearErrors) {\n this.response.Errors.length = 0;\n }\n\n const error: IError = {\n Code: code,\n Message: message,\n };\n\n this.response.Errors.push(error);\n }\n\n\n\n // Initialize the Klarna Widget by firing off a request to the Klarna Payments API endpoint.\n // This manages Klarna Payment sessions, and will return us a token and session ID to use.\n // This function is automatically called when the Klarna API script is loaded\n private InitializeWidget() {\n this.CanContinue = false;\n\n const url = '/api/payments/klarna/session';\n const fetchParameters: IKeyValuePair = {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n };\n\n // Let's initiate the session with Klarna\n utilities.fetch(url, fetchParameters)\n .then((response: any) => {\n\n const status = response.status || 0;\n\n // Handle a 400/403 error. Most likely the order has expired\n if (status === 400 || status === 403) {\n this.$emit('disable', this.ID);\n throw new Error('This order has expired, please refresh your page.');\n }\n\n // Handle a 500 error\n if (status === 500) {\n this.$emit('disable', this.ID);\n throw new Error('Sorry, but there seems to be a problem with your payment. Please try again or use a different payment method.');\n }\n\n response.json().then((data: any) => {\n\n if (data.client_token.length > 0) {\n let initSuccess = 0;\n // Only buy now pay later is currently available\n if (data.payment_method_categories.length > 0\n && data.payment_method_categories.find((c: any) => c.identifier === 'pay_later') !== undefined) {\n const klarnaToken = data.client_token;\n this.klarnaSessionID = data.session_id;\n\n try {\n // Once we have a Klarna client token, initialize the Klarna widget.\n Klarna.Payments.init({\n client_token: klarnaToken,\n });\n initSuccess = 1;\n } catch (e) {\n initSuccess = 0;\n }\n }\n\n if (initSuccess === 1) {\n // If init was successful, load the Klarna widget onto the page\n this.LoadWidget();\n this.sessionInitializing = false;\n\n } else {\n // Disable Klarna payment option. This error is most likely due to a currency/locale mismatch\n this.$emit('disable', this.ID);\n this.errorState = 2;\n this.showErrorModal = true;\n }\n }\n });\n\n })\n .catch((error: any) => {\n this.$emit('disable', this.ID);\n this.errorState = 1;\n this.showErrorModal = true;\n });\n }\n\n\n\n // Load the Klarna Widget into the page. InitializeWidget() must be called first.\n private LoadWidget() {\n try {\n // We only support 'pay later' so pre-select this automatically\n Klarna.Payments.load({\n container: '#klarna-payments-container',\n payment_method_category: 'pay_later',\n },\n (response: any) => {\n\n if (response !== undefined && response !== null && response.show_form === true) {\n this.displayWidget = true;\n this.CanContinue = true;\n } else {\n // Fatal error, Klarna Payments not offered to the user. Disable the Klarna payment option\n this.$emit('disable', this.ID);\n this.errorState = 2;\n this.showErrorModal = true;\n }\n });\n } catch (e) {\n this.$emit('disable', this.ID);\n this.errorState = 1;\n this.showErrorModal = true;\n }\n }\n\n\n\n @Watch('Active')\n private mountScript(isActive: boolean) {\n const klarnaAPIScriptID = 'klarna-api';\n const klarnaAPIScript = this.payment.ExternalLibrary;\n const tag = document.createElement('script');\n\n // return if Klarna is not the current active payment option\n if (isActive !== true) {\n return;\n }\n\n // Prevent the Klarna API Script from loading a second time and creating a second session ID.\n // This may occur if the user selects Klarna, deselects Klarna and selects it again.\n if (this.klarnaSessionID !== '' || this.sessionInitializing === true) {\n return;\n }\n\n this.sessionInitializing = true;\n tag.id = klarnaAPIScriptID;\n if (klarnaAPIScript) {\n tag.src = klarnaAPIScript;\n }\n tag.onload = this.InitializeWidget;\n document.head.appendChild(tag);\n }\n\n\n\n // Control the opening of the Error modal\n @Watch('showErrorModal')\n private toggleErrorModal(newVal: boolean, oldVal: boolean) {\n if (newVal && newVal !== oldVal) {\n Vue.nextTick().then(() => (this.$refs.errorModal as ModalContent).Open());\n }\n }\n\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Klarna.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--12-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Klarna.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Klarna.vue?vue&type=template&id=332746f4&\"\nimport script from \"./Klarna.vue?vue&type=script&lang=ts&\"\nexport * from \"./Klarna.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { store } from '../../store';\nimport { IOrder, IPayment, PaymentTypes, IStoredCreditCard, IOrderPayments,\n DispatchAction, IGiftCard } from '../../interfaces';\nimport Modal from '.././ui/Modal';\nimport ModalContent from '.././ui/ModalContent.vue';\nimport PaymentOption from './PaymentOption.vue';\nimport PaymentType from './types/PaymentType.vue';\nimport ExternalProvider from './types/ExternalProvider.vue';\nimport AppliedGiftCards from './AppliedGiftCards.vue';\nimport GiftCard from './types/GiftCard.vue';\nimport AfterPay from './types/AfterPay.vue';\nimport CreditCard from './types/CreditCard.vue';\nimport OrderSummaryTotals from './PaymentOrderSummary.vue';\nimport ContentManagement from '@/components/ContentManagement.vue';\nimport Klarna from './types/Klarna.vue';\n\n@Component({\n components: {\n PaymentOption,\n AppliedGiftCards,\n GiftCard,\n AfterPay,\n PaymentType,\n ExternalProvider,\n CreditCard,\n OrderSummaryTotals,\n ContentManagement,\n Klarna,\n },\n})\n\nexport default class Payment extends Vue {\n public errorMessage: string | null = null;\n\n // Selected payment TsID - used as the v-model to control display and react to selection of payment\n public activeOption: number = 0;\n\n // clickability of the Place Order button to be controlled by this value\n public CanContinue: boolean = false;\n\n public get Snippets(): object[] {\n return store.getters.Snippets;\n }\n\n public get currentpage(): string {\n return store.getters.Page;\n }\n\n // PaymentType component holds the actual payment details\n public activePayment: PaymentType | undefined = undefined;\n\n // Flag to let the observer object know we have completed the interaction\n private readyToScroll: boolean = false;\n\n\n // Remaining balance after any gift cards have been applied\n public get OutstandingTotal(): number {\n let giftCardTotal = 0;\n if (this.order.GiftCards && this.order.GiftCards.length > 0) {\n // tslint:disable-next-line:max-line-length\n giftCardTotal = parseFloat(this.order.GiftCards.reduce((cardtotal, card) => cardtotal + card.ValueRequested, 0).toFixed(2));\n }\n return parseFloat((this.order.Total - giftCardTotal).toFixed(2));\n }\n\n // Return the payment details, as required for a call to /api/cart/complete\n public GetSelectedPaymentDetails(): IOrderPayments {\n if (this.activePayment) {\n return this.activePayment.OrderPayment;\n }\n // If we don't have an active payment selected, we're probably zero-valued.\n // The server will correct the transaction type if we're not really zero-valued.\n return {\n TransactionType: this.order.GiftCards != null && this.order.GiftCards.length > 0 ? 120 : 70,\n StoredPayment: null,\n Card: null,\n AuthorizationToken: null,\n Save: false,\n };\n }\n\n public mounted() {\n // Check for gift card error (for example when card removed due to cart change)\n const gcError = this.order.Errors.find((x) => x.Name === 'GiftCards');\n if (gcError !== undefined) {\n // Activate the gift card payment component\n this.activeOption = PaymentTypes.Giftcard;\n } else if (this.OutstandingTotal === 0 && this.order.GiftCards && this.order.GiftCards.length > 0) {\n // If the total after gift cards is zero, make sure the transaction type is set to giftcard only\n this.activeOption = PaymentTypes.Giftcard;\n } else if (this.OutstandingTotal === 0 && this.order.RewardPointsRequested > 0) {\n // If the Order total is zero and is Covered by Rewards, set the transaction type to Rewards\n this.activeOption = PaymentTypes.Reward;\n } else if (this.order.PaymentMethod > 0 && this.order.PaymentMethod !== PaymentTypes.CreditCard_Giftcard) {\n this.activeOption = this.order.PaymentMethod;\n } else {\n // Default to credit card\n this.activeOption = PaymentTypes.CreditCard;\n }\n if (this.OutstandingTotal === 0) {\n this.CanContinue = true;\n }\n this.scrollMessageIntoView(this.errorMessage);\n }\n\n // settings objects for configured payments\n private get PaymentOptions(): object[] {\n return store.getters.PaymentMethods;\n }\n\n // our old favourite order reference\n private get order(): IOrder {\n return store.getters.Order;\n }\n\n @Watch('order.GiftCards')\n private giftCardsChanged(newVal: IGiftCard[], oldVal: IGiftCard[]) {\n // If we now have enough giftcards to pay for the entire order, enable \"Place Order\" button\n const gcError = this.order.Errors.find((x) => x.Name === 'GiftCards');\n if (this.OutstandingTotal === 0) {\n this.CanContinue = true;\n } else if (this.activeOption === PaymentTypes.Giftcard) {\n this.CanContinue = false;\n } else if (gcError !== undefined) {\n // Activate the gift card payment component\n this.activeOption = PaymentTypes.Giftcard;\n }\n }\n\n // the activeOption variable is the master controller for selected payment type\n @Watch('activeOption')\n private paymentSelectionChange(newVal: PaymentTypes, oldVal: PaymentTypes) {\n if (this.activePayment) {\n store.dispatch(DispatchAction.SetPaymentMethod, this.activePayment.OrderPayment.TransactionType);\n }\n if (this.$refs.PaymentType) {\n this.activePayment =\n (this.$refs.PaymentType as PaymentType[]).find((type) => type.ID === this.activeOption);\n if (this.activePayment) {\n this.CanContinue = this.activePayment.CanContinue;\n } else {\n this.CanContinue = false;\n }\n }\n }\n\n @Watch('errorMessage')\n private scrollMessageIntoView(newVal: string | null) {\n if (newVal != null && newVal.length) {\n Vue.nextTick(() => {\n const alertMessage = this.$refs.alertMessage as HTMLElement | undefined;\n if (alertMessage !== undefined) {\n this.readyToScroll = true;\n const intersectionOptions = {\n root: null,\n rootMargin: '0px',\n threshold: 0,\n };\n try {\n // tslint:disable-next-line:max-line-length\n const intersectObserver = new IntersectionObserver(this.handleMessageAnimation, intersectionOptions);\n intersectObserver.observe(alertMessage);\n } catch (error) {\n console.warn('Intersection Observer not supported in this browser');\n }\n }\n });\n }\n }\n\n private handleMessageAnimation(entries: any) {\n if (this.readyToScroll) {\n entries.forEach((entry: any) => {\n if (entry.intersectionRatio < 1) {\n // Scroll the message into view only when it's NOT in view already:\n const distanceFromTop = Math.floor(entry.boundingClientRect.top);\n const elemOffsetTop = Math.floor(entry.boundingClientRect.height);\n window.scrollBy({\n top: (distanceFromTop - elemOffsetTop),\n behavior: 'smooth',\n });\n }\n });\n this.readyToScroll = false;\n }\n }\n\n private giftCardApplied() {\n if (this.OutstandingTotal > 0) {\n this.activeOption = 1;\n }\n }\n\n private onPaymentStatusChange(val: boolean, type: number) {\n if (type === this.activeOption) {\n this.CanContinue = val;\n }\n }\n\n // Need to update the checkout component as it holds the place order functionality\n @Watch('CanContinue')\n private statusChanged(val: boolean) {\n this.$emit('status-change', val);\n }\n\n // triggered by clicking of a payment option\n private selectPayment(newType: PaymentTypes) {\n this.activeOption = newType;\n }\n\n private OnPaymentOptionError(error: string) {\n if (error.length > 0) {\n this.errorMessage = error;\n } else {\n this.errorMessage = null;\n }\n }\n\n private placeOrder() {\n this.$emit('place-order');\n }\n\n private onDisablePaymentOption(id: number) {\n\n const payments = this.$refs.PaymentOption as PaymentOption[];\n payments.forEach((f) => {\n if (f.id === id) {\n f.disabled = true;\n\n // Pre-select the Credit Card payment option\n if (this.activeOption === id) {\n this.activeOption = 1;\n }\n }\n });\n\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Payment.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Payment.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Payment.vue?vue&type=template&id=645d252c&\"\nimport script from \"./Payment.vue?vue&type=script&lang=ts&\"\nexport * from \"./Payment.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"c-and-c\"},[(_vm.order.PickupStore && _vm.order.PickupStore.Active && !_vm.editingStore)?_c('PickupDetails',{attrs:{\"storeChanged\":_vm.hasInteracted},on:{\"changestore\":function($event){return _vm.changeStore()},\"edit-status\":_vm.updateEditingStatus}}):_c('StoreFinder',{attrs:{\"fromEdit\":_vm.hasInteracted}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"pickup-summary\",class:_vm.editPickupDetails === true ? 'editing-pickup-details' : ''},[_c('div',{staticClass:\"sub-section store-details\"},[_c('h3',{staticClass:\"sub-section-heading\"},[_vm._v(\"Collect from\")]),_c('div',{staticClass:\"sub-section-body\"},[_c('div',{staticClass:\"store-name\"},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Store Name, \")]),_vm._v(_vm._s(_vm.order.PickupStore.Name))]),_c('address',[_c('i',{staticClass:\"icon-location\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"street\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.Street))]),(_vm.order.PickupStore.Address.ExtraInformation.length > 0)?_c('span',{staticClass:\"extra-information\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.ExtraInformation))]):_vm._e(),(_vm.order.PickupStore.Address.Suburb.length > 0)?_c('span',{staticClass:\"suburb\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.Suburb))]):_vm._e(),(_vm.order.PickupStore.Address.City.length > 0)?_c('span',{staticClass:\"city\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.City))]):_vm._e(),_c('span',{staticClass:\"state\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.State)+\" \"+_vm._s(_vm.order.PickupStore.Address.Postcode))])]),_c('div',{staticClass:\"store-phone\"},[_c('i',{staticClass:\"icon-phone\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"accessibility\"},[_vm._v(\"Telephone\")]),_vm._v(_vm._s(_vm.order.PickupStore.Address.ContactPhone))]),_c('button',{ref:\"editStoreButton\",staticClass:\"btn btn-edit\",on:{\"click\":_vm.editStore}},[_c('i',{staticClass:\"icon-edit\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Choose a different store\")])])]),(_vm.editPickupDetails)?_c('div',{staticClass:\"sub-section pickupform\"},[_c('fieldset',[_c('legend',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-contact-title'),expression:\"'pickupdetails-contact-title'\"}],staticClass:\"sub-section-heading\"},[_vm._v(\"Pickup Contact Details\")]),_c('div',{staticClass:\"sub-section-body\"},[_c('span',{staticClass:\"message\"},[_vm._v(\"Please ensure the contact details below are correct in case we need to contact you about your Click & Collect order.\")]),_c('div',{staticClass:\"required-fields-message\"},[_vm._v(\"All fields are required unless otherwise stated\")]),_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('InputField',{ref:\"firstNameField\",class:'name firstname form-floating',attrs:{\"id\":_vm.ComponentID + 'firstname',\"name\":'firstname',\"type\":'text',\"required\":true,\"ValidatableModel\":_vm.order.ShippingAddress,\"ValidatableProperty\":'FirstName',\"maxlength\":50},model:{value:(_vm.order.ShippingAddress.FirstName),callback:function ($$v) {_vm.$set(_vm.order.ShippingAddress, \"FirstName\", $$v)},expression:\"order.ShippingAddress.FirstName\"}},[_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-label-firstname'),expression:\"'pickupdetails-label-firstname'\"}],attrs:{\"slot\":\"label\",\"for\":_vm.ComponentID + 'firstname'},slot:\"label\"},[_vm._v(\" First Name \")])]),_c('InputField',{class:'surname form-floating',attrs:{\"id\":_vm.ComponentID + 'lastname',\"name\":'lastname',\"type\":'text',\"required\":true,\"ValidatableModel\":_vm.order.ShippingAddress,\"ValidatableProperty\":'LastName',\"maxlength\":50},model:{value:(_vm.order.ShippingAddress.LastName),callback:function ($$v) {_vm.$set(_vm.order.ShippingAddress, \"LastName\", $$v)},expression:\"order.ShippingAddress.LastName\"}},[_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-label-lastname'),expression:\"'pickupdetails-label-lastname'\"}],attrs:{\"slot\":\"label\",\"for\":_vm.ComponentID + 'lastname'},slot:\"label\"},[_vm._v(\"Last Name \")])]),(!_vm.WebsiteSettings.IsLoggedIn)?_c('InputField',{ref:\"emailInput\",class:'email form-floating',attrs:{\"type\":'email',\"id\":_vm.ComponentID + 'email',\"required\":true,\"name\":'email',\"ValidatableModel\":_vm.order,\"ValidatableProperty\":'Email',\"maxlength\":100},on:{\"change\":_vm.checkEmail},model:{value:(_vm.order.Email),callback:function ($$v) {_vm.$set(_vm.order, \"Email\", $$v)},expression:\"order.Email\"}},[_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-label-email'),expression:\"'pickupdetails-label-email'\"}],attrs:{\"slot\":\"label\",\"for\":_vm.ComponentID + 'email'},slot:\"label\"},[_vm._v(\"Email\")])]):_vm._e(),_c('InputField',{staticClass:\"tel\",class:'telephone form-floating',attrs:{\"id\":_vm.ComponentID + 'phone',\"name\":'phone',\"required\":true,\"type\":'tel',\"ValidatableModel\":_vm.order.ShippingAddress,\"ValidatableProperty\":'ContactPhone',\"maxlength\":15},model:{value:(_vm.order.ShippingAddress.ContactPhone),callback:function ($$v) {_vm.$set(_vm.order.ShippingAddress, \"ContactPhone\", $$v)},expression:\"order.ShippingAddress.ContactPhone\"}},[_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-label-telephone'),expression:\"'pickupdetails-label-telephone'\"}],attrs:{\"slot\":\"label\",\"for\":_vm.ComponentID + 'phone'},slot:\"label\"},[_vm._v(\"Mobile Number \")])]),_c('li',{staticClass:\"order-message\"},[_vm._v(\"If you don't have a mobile, please enter a landline number\")]),_c('li',{staticClass:\"nominate\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.nominatePerson),expression:\"nominatePerson\"}],attrs:{\"type\":\"checkbox\",\"id\":_vm.ComponentID + 'nominate'},domProps:{\"checked\":Array.isArray(_vm.nominatePerson)?_vm._i(_vm.nominatePerson,null)>-1:(_vm.nominatePerson)},on:{\"change\":function($event){var $$a=_vm.nominatePerson,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.nominatePerson=$$a.concat([$$v]))}else{$$i>-1&&(_vm.nominatePerson=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.nominatePerson=$$c}}}}),_c('label',{attrs:{\"for\":_vm.ComponentID + 'nominate'}},[(_vm.nominatePerson)?_c('i',{staticClass:\"icon-checkmark\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e(),_vm._v(\"I'd like someone else to pick up my order\")]),(_vm.nominatePerson)?_c('fieldset',{staticClass:\"nominee\"},[_c('legend',[_vm._v(\"Nominate a collector\")]),_c('p',{staticClass:\"note\"},[_vm._v(\"Please ensure that the nominated person's details are as they appear on their ID\")]),_c('a',{staticClass:\"terms\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.showTerms()}}},[_vm._v(\"Terms & Conditions\")]),_c('ul',[_c('InputField',{class:'name firstname form-floating',attrs:{\"id\":_vm.ComponentID + 'collectionfirstname',\"name\":'nominatedperson',\"required\":true,\"type\":'text',\"ValidatableModel\":_vm.order.CollectionDetails,\"ValidatableProperty\":'FirstName',\"maxlength\":50},model:{value:(_vm.order.CollectionDetails.FirstName),callback:function ($$v) {_vm.$set(_vm.order.CollectionDetails, \"FirstName\", $$v)},expression:\"order.CollectionDetails.FirstName\"}},[_c('label',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-label-collector'),expression:\"'pickupdetails-label-collector'\"}],attrs:{\"slot\":\"label\",\"for\":_vm.ComponentID + 'collectionfirstname'},slot:\"label\"},[_vm._v(\"Collector's Full Name \")])])],1),_c('ModalContent',{ref:\"termsModal\",attrs:{\"modal\":_vm.termsModalInfo}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Authority to Collect\")]),_c('ContentManagement',{attrs:{\"slot\":\"body\",\"snippet\":_vm.snippets['Authority to Collect - Terms']},slot:\"body\"})],1)],1):_vm._e()])],1),_c('div',{staticClass:\"form-actions\"},[_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-save-button'),expression:\"'pickupdetails-save-button'\"}],staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\",\"id\":\"pickup-btn\"},on:{\"click\":function($event){return _vm.SavePickUpDetails()}}},[_vm._v(\"Save pickup details\")])])])])]):_c('div',{staticClass:\"sub-section pickup-details\"},[_c('h3',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupdetails-contact-title'),expression:\"'pickupdetails-contact-title'\"}],staticClass:\"sub-section-heading\"},[_vm._v(\"Pickup Contact Details\")]),_c('div',{staticClass:\"sub-section-body\"},[_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('li',{staticClass:\"name\",attrs:{\"role\":\"presentation\"}},[_c('i',{staticClass:\"icon-person\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Name:\")]),_c('span',{staticClass:\"pickup-name\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.ShippingAddress.FirstName)+\" \"+_vm._s(_vm.order.ShippingAddress.LastName))])]),(!_vm.WebsiteSettings.IsLoggedIn)?_c('li',{staticClass:\"email\",attrs:{\"role\":\"presentation\"}},[_c('i',{staticClass:\"icon-email\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Email\")]),_c('span',{staticClass:\"pickup-name\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.Email))])]):_vm._e(),_c('li',{staticClass:\"phone\",attrs:{\"role\":\"presentation\"}},[_c('i',{staticClass:\"icon-phone\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Telephone:\")]),_c('span',{staticClass:\"pickup-phone\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.ShippingAddress.ContactPhone))])]),(_vm.order.CollectionDetails.FirstName.length > 0)?_c('li',{staticClass:\"nominatedperson name\",attrs:{\"role\":\"presentation\"}},[_c('span',{staticClass:\"nominated-heading\",attrs:{\"role\":\"text\"}},[_vm._v(\"Nominated Collector\")]),_c('span',{staticClass:\"nominated-person\",attrs:{\"role\":\"text\"}},[_c('i',{staticClass:\"icon-person\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(_vm._s(_vm.order.CollectionDetails.FirstName))])]):_vm._e()]),_c('button',{ref:\"editPickupButton\",staticClass:\"btn btn-edit\",on:{\"click\":_vm.editPickup}},[_c('i',{staticClass:\"icon-edit\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Edit Pickup Details\")])])]),(!_vm.editPickupDetails && _vm.showSnippet)?_c('div',{staticClass:\"sub-section delivery-notification\"},[_c('ContentManagement',{attrs:{\"snippet\":_vm.snippets['Checkout - Click Collect'],\"conditions\":!_vm.isClickCollectLater}}),_c('ContentManagement',{attrs:{\"snippet\":_vm.snippets['Checkout - Click Collect Later'],\"conditions\":_vm.isClickCollectLater}})],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var CollectionDetails = /** @class */ (function () {\r\n // Constructor\r\n function CollectionDetails(a) {\r\n this.Errors = [];\r\n this.FirstName = a.FirstName || '';\r\n this.LastName = a.LastName || '';\r\n this.Phone = a.ContactPhone || '';\r\n }\r\n return CollectionDetails;\r\n}());\r\nexport default CollectionDetails;\r\n//# sourceMappingURL=CollectionDetails.js.map","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch, Mixins } from 'vue-property-decorator';\r\nimport { store } from '../../store';\r\nimport { IOrder, IGiftCard, DispatchAction, IWebsiteSettings,\r\n IKeyValuePair, IPropertyError, IAPIResponse } from '../../interfaces';\r\nimport * as utilities from '../../utilities';\r\nimport CollectionDetails from './CollectionDetails';\r\nimport InputField from '../ui/htmlcomponents/InputField.vue';\r\nimport ComponentID from '../../mixins/ComponentID';\r\nimport ModalContent from '@/components/ui/ModalContent.vue';\r\nimport Modal from '@/components/ui/Modal';\r\nimport ContentManagement from '@/components/ContentManagement.vue';\r\n\r\n@Component({\r\n components: {\r\n ContentManagement,\r\n InputField,\r\n ModalContent,\r\n },\r\n})\r\nexport default class PickupDetails extends Mixins(ComponentID) {\r\n @Prop({default: false}) private storeChanged!: boolean;\r\n private editPickupDetails: boolean = true;\r\n private pickupInteracted: boolean = false;\r\n private CollectionDetails = new CollectionDetails({});\r\n private nominatePerson: boolean = this.order.CollectionDetails.FirstName.length > 0;\r\n private termsModalInfo: Modal = new Modal(true, true, 'popup');\r\n\r\n private get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n private get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n private get snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n private get isClickCollectLater() {\r\n if ((this.order.Attributes as IKeyValuePair)['Delivery Method'] === 'CCL') {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n private get showSnippet(): boolean {\r\n if (!this.isClickCollectLater && this.snippets['Checkout - Click Collect' as any]) {\r\n return true;\r\n } else if (this.isClickCollectLater && this.snippets['Checkout - Click Collect Later' as any]) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public mounted() {\r\n if (this.storeChanged) {\r\n this.editPickup();\r\n } else if (this.order.PickupStore\r\n && this.order.PickupStore.Active\r\n && this.order.ShippingAddress.FirstName.length > 0\r\n && this.order.ShippingAddress.LastName.length > 0\r\n && this.order.ShippingAddress.ContactPhone.length > 0\r\n && this.order.BillingAddress.FirstName.length > 0\r\n && this.order.BillingAddress.LastName.length > 0\r\n && this.order.BillingAddress.ContactPhone.length > 0) {\r\n this.editPickupDetails = false;\r\n }\r\n this.pickupDetailDisplayStatus(this.editPickupDetails, true);\r\n }\r\n\r\n @Watch('order')\r\n private orderChanged(newOrder: IOrder) {\r\n\r\n let hasError: boolean = false;\r\n // Are we in edit or view mode?\r\n if (newOrder.ShippingAddress.Errors.length === 0\r\n && newOrder.Errors.filter((err: IPropertyError) => {\r\n // when an order is edited gift cards are removed, the message appears as an error on the order\r\n return err.Name !== 'GiftCards';\r\n }).length === 0\r\n && newOrder.CollectionDetails.Errors.length === 0\r\n ) {\r\n this.editPickupDetails = false;\r\n } else {\r\n this.editPickupDetails = true;\r\n hasError = true;\r\n }\r\n\r\n // Show the nominated person form?\r\n if (newOrder.CollectionDetails.Errors.length === 0) {\r\n hasError = true;\r\n this.nominatePerson = newOrder.CollectionDetails.FirstName.length > 0;\r\n }\r\n\r\n // focus on the first field with an error associated\r\n if (hasError) {\r\n Vue.nextTick(() => {\r\n this.focusFirstError();\r\n });\r\n }\r\n }\r\n\r\n\r\n\r\n private focusFirstError() {\r\n this.$children.some((child: Vue) => {\r\n // return value, will break out of the loop the first time we return true\r\n let hasError: boolean = false;\r\n // all of our inputs are InputField components\r\n if (child instanceof InputField) {\r\n const inputField = child as InputField;\r\n // check our error collection to see if one is bound to this field\r\n hasError = inputField.inError;\r\n if (hasError) {\r\n inputField.focusField();\r\n }\r\n }\r\n return hasError;\r\n });\r\n }\r\n\r\n private editPickup() {\r\n // record interaction\r\n this.pickupInteracted = true;\r\n this.editPickupDetails = true;\r\n this.focusElement('editStoreButton');\r\n }\r\n\r\n // when the fields close after an edit we need to focus on the edit button\r\n @Watch('editPickupDetails')\r\n private pickupDetailDisplayStatus(newVal: boolean, oldVal: boolean) {\r\n if (newVal === false && this.pickupInteracted) {\r\n this.focusElement('editPickupButton');\r\n }\r\n this.$emit('edit-status', newVal);\r\n }\r\n\r\n // focus on an html element by its vue ref\r\n private focusElement(ref: string) {\r\n Vue.nextTick(() => {\r\n const refs: IKeyValuePair = this.$refs as IKeyValuePair;\r\n const el: any = refs[ref];\r\n if (el !== undefined) {\r\n if (el instanceof HTMLElement) {\r\n this.$nextFocus(el as HTMLElement);\r\n } else if (refs[ref] instanceof InputField) {\r\n (el as InputField).focusField();\r\n }\r\n }\r\n });\r\n }\r\n\r\n private editStore() {\r\n this.$emit('changestore');\r\n }\r\n\r\n private checkEmail() {\r\n const email = this.order.Email;\r\n if (email.trim() !== '') {\r\n utilities.fetch('/client/v2/cart/order/validateemail/',\r\n {\r\n method: 'PUT',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(email),\r\n })\r\n .then((response: any) => {\r\n const emailInput: InputField = (this.$refs.emailInput as InputField);\r\n if (!response.ok) {\r\n // tslint:disable-next-line:max-line-length\r\n emailInput.setError('<p>We detected that you currently have an account. <a class=\"no_ajax\" onclick=\"showLoginForm(this)\" title=\"Login Now\">Login Now</a><br></p>');\r\n } else {\r\n emailInput.clearError();\r\n }\r\n });\r\n }\r\n }\r\n\r\n private showTerms() {\r\n (this.$refs.termsModal as ModalContent).Open();\r\n }\r\n\r\n private SavePickUpDetails() {\r\n const order = JSON.parse(JSON.stringify(this.order));\r\n // tslint:disable-next-line:max-line-length\r\n this.CollectionDetails = new CollectionDetails({ FirstName: this.nominatePerson ? this.order.CollectionDetails.FirstName : '' });\r\n\r\n if (this.nominatePerson) {\r\n order.CollectionDetails = this.CollectionDetails;\r\n } else {\r\n order.CollectionDetails = null;\r\n }\r\n\r\n utilities.fetch('/client/v2/cart/order/pickup/',\r\n {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n body: JSON.stringify(order),\r\n })\r\n .then((response: any) => {\r\n if (!response.ok) {\r\n response.json().then((json: any) => (json as IAPIResponse).Data).then((responseOrder: IOrder) => {\r\n if (responseOrder !== undefined && responseOrder !== null && responseOrder.ID === order.ID) {\r\n if (responseOrder.CollectionDetails === null) {\r\n responseOrder.CollectionDetails = this.CollectionDetails;\r\n }\r\n store.dispatch(DispatchAction.ReplaceOrder, responseOrder);\r\n }\r\n });\r\n } else {\r\n store.dispatch(DispatchAction.FetchOrder);\r\n }\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickupDetails.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickupDetails.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PickupDetails.vue?vue&type=template&id=43a66037&\"\nimport script from \"./PickupDetails.vue?vue&type=script&lang=ts&\"\nexport * from \"./PickupDetails.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.availableStores && _vm.availableStores.Loaded && _vm.availableStores.Stores && _vm.availableStores.Stores.length > 0)?_c('div',{staticClass:\" store-list\"},[_c('h3',{ref:\"resultsHeading\",attrs:{\"tabindex\":\"-1\"}},[_c('span',{staticClass:\"prefix\",attrs:{\"role\":\"text\"}},[_vm._v(\"Showing results for\")]),_c('span',{staticClass:\"searchterm\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.postCode))])]),_c('span',{staticClass:\"search\",attrs:{\"role\":\"text\"}},[_c('a',{attrs:{\"href\":\"#\",\"aria-label\":\"Change search\"},on:{\"click\":function($event){$event.preventDefault();return _vm.clearSearch($event)}}},[_c('i',{staticClass:\"icon-edit\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"Change search\")])]),_c('ul',{attrs:{\"id\":\"store-accordion\"}},[_vm._l((_vm.availableStores.Stores),function(candidateStore){return _c('PickupStore',{key:candidateStore.StoreID,attrs:{\"userLocation\":_vm.location,\"store\":_vm.stores.find(function (store) { return store.ID === candidateStore.StoreID; }),\"availability\":candidateStore,\"mixedAvailabilityMessage\":_vm.mixedAvailabilityMessage,\"fullAvailabilityMessage\":_vm.fullAvailabilityMessage},on:{\"open-store\":_vm.openStore},model:{value:(_vm.OpenStoreID),callback:function ($$v) {_vm.OpenStoreID=$$v},expression:\"OpenStoreID\"}})}),_c('li',[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - Click Collect State/Region']}})],1)],2)]):_c('div',{staticClass:\"sub-section storefinder\"},[_c('fieldset',[_c('legend',{staticClass:\"sub-section-heading\",attrs:{\"aria-label\":\"Find a store to collect your order\"}},[_vm._v(\"Enter your postcode\")]),_c('div',{staticClass:\"sub-section-body postcode-holder\"},[_c('ul',{attrs:{\"role\":\"presentation\"}},[_c('InputField',{ref:\"postcodeField\",class:'postcode form-floating',attrs:{\"id\":'postcode-20',\"ValidatableModel\":_vm.storeFinderError,\"ValidatableProperty\":'Postcode',\"name\":'postcode',\"type\":'text',\"maxlength\":4,\"value\":'',\"required\":true},on:{\"input\":_vm.onPostCodeInput},nativeOn:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.getAvailableStores($event)}},model:{value:(_vm.postCode),callback:function ($$v) {_vm.postCode=$$v},expression:\"postCode\"}},[_c('label',{attrs:{\"slot\":\"label\",\"for\":\"postcode-20\"},slot:\"label\"},[_vm._v(\"Enter Postcode\"),_c('em',{attrs:{\"aria-hiddden\":\"true\"}})])]),_c('li',{staticClass:\"form-actions\",attrs:{\"role\":\"presentation\"}},[_c('button',{staticClass:\"btn btn-primary show-store\",attrs:{\"type\":\"button\",\"disabled\":_vm.requestInFlight},on:{\"click\":_vm.getAvailableStores}},[_vm._v(\"FIND A STORE\")])])],1)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:\"sub-section\"},[(_vm.availability.FirstWithAvailableItems)?[_c('div',{staticClass:\"message\"},[_c('span',{attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.fullAvailabilityMessage)}})])]:_vm._e(),(_vm.availability.FirstWithUnavailableItems)?[_c('div',{staticClass:\"message\"},[_c('span',{attrs:{\"role\":\"text\"},domProps:{\"innerHTML\":_vm._s(_vm.mixedAvailabilityMessage)}})])]:_vm._e(),_c('button',{staticClass:\"btn-accessibility-helper\",class:_vm.expanded ? '' : 'collapsed',attrs:{\"aria-expanded\":_vm.expanded ? 'true' : 'false',\"aria-controls\":'store-' + _vm.store.ID + '-body'},on:{\"click\":_vm.openMe}},[_c('h4',{staticClass:\"sub-section-heading\"},[(!_vm.expanded)?_c('i',{staticClass:\"icon-plus\",attrs:{\"aria-hidden\":\"true\"}}):_c('i',{staticClass:\"icon-minus\",attrs:{\"aria-hidden\":\"true\"}}),_c('span',{staticClass:\"store-name\",attrs:{\"role\":\"text\",\"id\":'store-'+ _vm.store.ID +'-name'}},[_vm._v(_vm._s(_vm.store.Name))]),(_vm.distanceFromCustomer !== null)?[_c('span',{staticClass:\"store-distance\",attrs:{\"role\":\"text\"}},[_c('i',{staticClass:\"icon-location\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(_vm._s(_vm.distanceFromCustomer.toFixed(1))+\" km away\")])]:_vm._e(),(_vm.availability.AllAvailable && !_vm.availability.ClickCollectLater)?_c('span',{staticClass:\"stock-status stock-available\",attrs:{\"role\":\"text\"}},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - Click Collect Timeframe']}})],1):(_vm.availability.AllAvailable && _vm.availability.ClickCollectLater)?_c('span',{staticClass:\"stock-status stock-waiting\",attrs:{\"role\":\"text\"}},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - Click Collect Later Timeframe']}})],1):_c('span',{staticClass:\"stock-status stock-notavailable\",attrs:{\"role\":\"text\"}},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - Click Collect Unavailable Item']}})],1)],2)]),_c('div',{staticClass:\"sub-section-body\",attrs:{\"id\":'store-'+ _vm.store.ID + '-body',\"aria-labelledby\":'store-'+ _vm.store.ID +'-name',\"aria-hidden\":!_vm.expanded}},[_c('Animation',{attrs:{\"AnimateHeight\":true}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.expanded),expression:\"expanded\"}]},[_c('ul',{staticClass:\"items\"},_vm._l((_vm.availability.Items),function(item){return _c('li',{key:item.ID},[_c('div',{staticClass:\"product-availability\",class:[ (item.Available ? (item.LocationType === 'S' ? 'available' : 'waiting') : 'notavailable') ]},[_c('i',{class:item.Available ? 'icon-available' : 'icon-unavailable',attrs:{\"aria-hidden\":\"true\"}}),_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(_vm.orderItem(item.ID).Title))]),_c('div',{staticClass:\"product-options\"},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Colour\")]),_vm._v(_vm._s(_vm.orderItem(item.ID).Colour)+\" - \"),_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size\")]),_vm._v(_vm._s(_vm.orderItem(item.ID).Size))]),_c('div',{staticClass:\"message\"},[_vm._v(_vm._s(item.LocationTypeDisplayText))])])])}),0),_c('div',{staticClass:\"store-details\"},[_c('span',{staticClass:\"store-name\",attrs:{\"role\":\"text\"}},[_vm._v(\" \"+_vm._s(_vm.store.Name)+\" \"),_c('span',{staticClass:\"store-phone\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.store.Address.ContactPhone))])]),_c('address',[(_vm.store.Address.Street)?_c('span',{staticClass:\"street\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.store.Address.Street))]):_vm._e(),(_vm.store.Address.ExtraInformation)?_c('span',{staticClass:\"extra-information\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.store.Address.ExtraInformation))]):_vm._e(),(_vm.store.Address.Suburb)?_c('span',{staticClass:\"suburb\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.store.Address.Suburb))]):_vm._e(),(_vm.store.Address.City)?_c('span',{staticClass:\"city\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.store.Address.City))]):_vm._e(),(_vm.store.Address.State)?_c('span',{staticClass:\"state\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.store.Address.State))]):_vm._e()]),(!_vm.availability.AllAvailable && !_vm.availability.ClickCollectLater)?_c('span',{staticClass:\"stock-status stock-available\",attrs:{\"role\":\"text\"}},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - Click Collect Timeframe']}})],1):(!_vm.availability.AllAvailable && _vm.availability.ClickCollectLater)?_c('span',{staticClass:\"stock-status stock-waiting\",attrs:{\"role\":\"text\"}},[_c('ContentManagement',{attrs:{\"snippet\":_vm.Snippets['Checkout - Click Collect Later Timeframe']}})],1):_vm._e(),_c('div',{staticClass:\"select-store\"},[_c('button',{staticClass:\"btn btn-primary\",on:{\"click\":_vm.validateAndSave,\"kepress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.validateAndSave($event)}}},[_vm._v(\"Select This Store\")])])]),_c('div',{staticClass:\"select-store\"},[_c('button',{staticClass:\"btn btn-primary\",on:{\"click\":_vm.validateAndSave,\"kepress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.validateAndSave($event)}}},[_vm._v(\"Select This Store\")])])])])],1),(_vm.showRemoveModal)?_c('ModalContent',{ref:\"removeModal\",attrs:{\"modal\":_vm.removeModalInfo},on:{\"closed\":function($event){_vm.showRemoveModal = false},\"confirm\":_vm.savePickupStore}},[_c('h3',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\"Remove \"+_vm._s(_vm.itemString(_vm.unavailableItems.length))+\"?\")]),_c('div',{staticClass:\"items-for-removal\",attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('div',{staticClass:\"message\",domProps:{\"innerHTML\":_vm._s(_vm.removeItemsMessage)}}),_c('ul',{staticClass:\"delivery-item-list\"},_vm._l((_vm.unavailableItems),function(item){return _c('DeliveryItem',{key:item.ID,attrs:{\"DeliveryItem\":item}})}),1),_c('div',{staticClass:\"message\",domProps:{\"innerHTML\":_vm._s(_vm.removeItemsContinueMessage)}})]),_c('span',{attrs:{\"slot\":\"confirm-text\",\"role\":\"text\"},slot:\"confirm-text\"},[_vm._v(\"Remove \"),_c('span',{attrs:{\"role\":\"text\"},domProps:{\"textContent\":_vm._s(_vm.itemString(_vm.unavailableItems.length))}}),_vm._v(\" & Continue\")]),_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('pickupstore-removeitems-modal-cancel'),expression:\"'pickupstore-removeitems-modal-cancel'\"}],attrs:{\"slot\":\"cancel-text\",\"role\":\"text\"},slot:\"cancel-text\"},[_vm._v(\"No, keep all items and cancel\")])]):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator';\r\nimport { store } from '../../store';\r\nimport { DispatchAction, IOrderItem, IPickupStore,\r\n IClickCollectInfoStore, IClickCollectInfoItem, IKeyValuePair, IPoint } from '../../interfaces';\r\nimport * as utilities from '../../utilities';\r\nimport Modal from '../ui/Modal';\r\nimport ModalContent from '../ui/ModalContent.vue';\r\nimport DeliveryItem from '../items/DeliveryItem.vue';\r\nimport Animation from '@/components/ui/animations/Animation.vue';\r\nimport AriaAnnouncement from '@/components/ui/AriaAnnouncement.vue';\r\nimport ContentManagement from '@/components/ContentManagement.vue';\r\n\r\n@Component({\r\n components: {\r\n ModalContent,\r\n DeliveryItem,\r\n Animation,\r\n ContentManagement,\r\n },\r\n})\r\nexport default class PickupStore extends Vue {\r\n @Prop() protected store!: IPickupStore;\r\n @Prop() protected availability!: IClickCollectInfoStore;\r\n @Prop() private userLocation!: IPoint | null;\r\n @Prop({default: false}) private startOpen!: boolean;\r\n @Prop({default: ''}) private fullAvailabilityMessage!: string;\r\n @Prop({default: ''}) private mixedAvailabilityMessage!: string;\r\n\r\n // using the v-model binding sets the 'value' property - this should reflect the currently open store\r\n @Prop() private value!: number;\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n // controls the display of the items to be removed modal\r\n private showRemoveModal: boolean = false;\r\n private removeModalInfo: Modal = new Modal(true, true, 'confirm', 'remove-items');\r\n\r\n private get expanded(): boolean {\r\n return this.store.ID === this.value;\r\n }\r\n\r\n private openMe() {\r\n if (this.expanded) {\r\n this.$emit('open-store', 0);\r\n } else {\r\n this.$emit('open-store', this.store.ID);\r\n }\r\n }\r\n\r\n // Control the opening of the Remove Items modal\r\n @Watch('showRemoveModal')\r\n private toggleRemoveModal(newVal: boolean, oldVal: boolean) {\r\n if (newVal && newVal !== oldVal) {\r\n Vue.nextTick().then(() => (this.$refs.removeModal as ModalContent).Open());\r\n }\r\n }\r\n\r\n private get unavailableItems(): IClickCollectInfoItem[] {\r\n if (this.availability) {\r\n return this.availability.Items.filter((item) => !item.Available);\r\n }\r\n return [];\r\n }\r\n\r\n private orderItem(ID: number): IOrderItem | undefined {\r\n return store.getters.Order.Items.find((item: IOrderItem) => item.ID === ID);\r\n }\r\n\r\n // return 'item' or 'items', depending on the number given (copied from DeliveryOption.vue)\r\n private itemString(count: number): string {\r\n if (count === 1) {\r\n return 'item';\r\n } else {\r\n return 'items';\r\n }\r\n }\r\n\r\n // Checks whether we need to pop the confirmation modal (and does so) otherwise just saves\r\n private validateAndSave(): void {\r\n if (!this.availability.AllAvailable) {\r\n this.showRemoveModal = true;\r\n return;\r\n }\r\n this.savePickupStore();\r\n }\r\n\r\n private get distanceFromCustomer(): number | null {\r\n if (this.userLocation === null) {\r\n return null;\r\n }\r\n return this.distance(this.userLocation, {\r\n Latitude: parseFloat(this.store.Latitude),\r\n Longitude: parseFloat(this.store.Longitude),\r\n });\r\n }\r\n\r\n private get removeItemsMessage(): string {\r\n return store.getters.getGlossaryEntryByKey('pickupinstore-removeitems-modal-items-message') || '';\r\n }\r\n\r\n private get removeItemsContinueMessage(): string {\r\n return store.getters.getGlossaryEntryByKey('pickupinstore-removeitems-modal-continue-message') || '';\r\n }\r\n\r\n private toRadians(degress: number): number {\r\n return degress * (Math.PI / 180);\r\n }\r\n\r\n // This code comes from Assets/map.js, but has been formatted and tidied up\r\n private distance(point1: IPoint, point2: IPoint): number {\r\n const earthRadius: number = 6371;\r\n const radLat1: number = this.toRadians(point1.Latitude);\r\n const radLat2: number = this.toRadians(point2.Latitude);\r\n const diffLat: number = radLat2 - radLat1;\r\n const diffLon: number = this.toRadians(point2.Longitude - point1.Longitude);\r\n const arcAngle: number =\r\n Math.sin(diffLat / 2) * Math.sin(diffLat / 2) +\r\n Math.cos(radLat1) * Math.cos(radLat2) *\r\n Math.sin(diffLon / 2) * Math.sin(diffLon / 2);\r\n const ratio: number = 2 * Math.atan2(Math.sqrt(arcAngle), Math.sqrt(1 - arcAngle));\r\n\r\n return earthRadius * ratio; // Distance in km\r\n }\r\n\r\n private savePickupStore(): void {\r\n // Build object to post with the freight options and item config etc. (like current cart)\r\n const items: any[] = [];\r\n this.availability.Items.forEach((item: IClickCollectInfoItem) => {\r\n items.push({\r\n ProductItemID: item.ProductItemID,\r\n QuantityRequested: item.QuantityRequested,\r\n QuantityAvailable: item.QuantityAvailable,\r\n ClickCollectLocationType: item.LocationType,\r\n });\r\n });\r\n const freightOptions = {\r\n Pickup: true,\r\n StoreID: this.store.ID,\r\n DeliveryMethod: (this.availability.ClickCollectLater ? 'CCL' : 'CC'),\r\n Items: items,\r\n };\r\n\r\n const app: any = this.$root.$children[0] as any;\r\n let ariaSendMessage: string = 'saving store details';\r\n let ariaSuccessMessage: string = 'store details saved';\r\n if (this.unavailableItems.length > 0) {\r\n ariaSendMessage += ' and removing unvailable items';\r\n ariaSuccessMessage += ' and items removed';\r\n }\r\n this.$ariaAnnounce(ariaSendMessage);\r\n\r\n // Send of request to save the selected store and options against the order\r\n utilities.fetch('/client/v2/cart/order/freightoptions', {\r\n method: 'POST',\r\n body: JSON.stringify(freightOptions),\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n }).then((response) => {\r\n if (response.ok) {\r\n store.dispatch(DispatchAction.FetchOrder);\r\n this.$ariaAnnounce(ariaSuccessMessage);\r\n } else {\r\n // TODO: handle failure\r\n }\r\n });\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickupStore.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickupStore.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PickupStore.vue?vue&type=template&id=2273d1ba&\"\nimport script from \"./PickupStore.vue?vue&type=script&lang=ts&\"\nexport * from \"./PickupStore.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator';\r\nimport { store } from '../../store';\r\nimport { DispatchAction, IPickupStore, IClickCollectInfo, IPropertyError,\r\n IClickCollectInfoStore, IOrderItem, IPoint, IValidatable, IAPIResponse } from '../../interfaces';\r\nimport InputField from '../ui/htmlcomponents/InputField.vue';\r\nimport PickupStore from './PickupStore.vue';\r\nimport Modal from '../ui/Modal';\r\nimport ModalContent from '../ui/ModalContent.vue';\r\nimport * as utilities from '../../utilities';\r\nimport ContentManagement from '../ContentManagement.vue';\r\n\r\n@Component({\r\n components: {\r\n PickupStore,\r\n ModalContent,\r\n InputField,\r\n ContentManagement,\r\n },\r\n})\r\nexport default class StoreFinder extends Vue {\r\n @Prop({default: false})\r\n private fromEdit!: boolean;\r\n private postCode: string | null = null;\r\n private stores: IPickupStore[] = [];\r\n private availableStores: IClickCollectInfo = {\r\n Enabled: false,\r\n Error: false,\r\n Loaded: false,\r\n Stores: [],\r\n };\r\n private location: IPoint | null = null;\r\n private searchErrorModalInfo: Modal = new Modal(true, false, 'alert');\r\n private postcodeError: IPropertyError = { Name: 'Postcode', Codes: [] };\r\n private storeFinderError: IValidatable = {\r\n Errors: [],\r\n };\r\n\r\n private OpenStoreID = 0;\r\n\r\n // Counter for total number of stores with all items available (used for messaging)\r\n private fullAvailabilityStoreCount: number = 0;\r\n\r\n // Counter for total number of stores without all items available (used for messaging)\r\n private mixedAvailabilityStoreCount: number = 0;\r\n\r\n // flag to indicate whether we are waiting for a server response\r\n private requestInFlight: boolean = false;\r\n\r\n private get fullAvailabilityMessage(): string {\r\n if (this.fullAvailabilityStoreCount === 0) {\r\n return '';\r\n }\r\n let key: string = 'storefinder-available-stores-heading-single';\r\n if (this.fullAvailabilityStoreCount > 1) {\r\n key = 'storefinder-available-stores-heading-multiple';\r\n }\r\n const localOverride: string | undefined = store.getters.getGlossaryEntryByKey(key);\r\n return localOverride || 'The following stores have all of your items available for collection';\r\n }\r\n\r\n private get mixedAvailabilityMessage(): string {\r\n if (this.mixedAvailabilityStoreCount === 0) {\r\n return '';\r\n }\r\n let key: string = 'storefinder-unavailable-stores-heading-single';\r\n if (this.mixedAvailabilityStoreCount > 1) {\r\n key = 'storefinder-unavailable-stores-heading-multiple';\r\n }\r\n const localOverride: string | undefined = store.getters.getGlossaryEntryByKey(key);\r\n return localOverride || 'The following stores have <strong>some</strong> of your items available for collection';\r\n }\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n public mounted() {\r\n this.storeFinderError.Errors.push(this.postcodeError);\r\n\r\n // Seeing as we're in the store finder, go off and grab the store data we will need to display the available stores\r\n if (this.stores.length === 0) {\r\n utilities.fetch('/api/store?websiteID=' + store.getters.Order.WebsiteID).then((response) => {\r\n if (response.ok) {\r\n response.json().then((json) => {\r\n this.stores = (json as IAPIResponse).Data;\r\n });\r\n }\r\n });\r\n // we haven't got any stores, so focus on the search field, but only if we're coming from the edit button\r\n if (this.fromEdit) {\r\n this.focusOnInput();\r\n }\r\n }\r\n\r\n }\r\n\r\n private focusOnInput() {\r\n Vue.nextTick(() => {\r\n const postcodeField: InputField | undefined = this.$refs.postcodeField as InputField;\r\n if (postcodeField !== undefined) {\r\n this.$nextFocus(postcodeField.$refs.field as HTMLInputElement);\r\n }\r\n });\r\n }\r\n\r\n private openStore(val: number) {\r\n this.OpenStoreID = val;\r\n }\r\n private getAvailableStores() {\r\n if (!this.requestInFlight) {\r\n this.requestInFlight = true;\r\n const promises = [];\r\n\r\n // Clear the error message\r\n this.postcodeError.Codes = [];\r\n\r\n // Get the lat/lon for the entered postcode\r\n promises.push(utilities.fetch('/client/store/postcodelocation?postcode=' + this.postCode));\r\n\r\n // Reset the available stores then get new available stores for the postcode\r\n this.availableStores = {\r\n Enabled: false,\r\n Error: false,\r\n Loaded: false,\r\n Stores: [],\r\n };\r\n promises.push(utilities.fetch('/default.aspx?Z=pickup&serveas=ajax&action=findstores&postcode=' + this.postCode));\r\n\r\n // Await the response from both calls...\r\n Promise.all(promises).then((responses) => {\r\n // Process the postcode location response\r\n if (responses[0].ok) {\r\n responses[0].json().then((json) => {\r\n this.location = (json as IAPIResponse).Data;\r\n });\r\n } else {\r\n this.location = null;\r\n }\r\n\r\n // Process the store availability response\r\n if (responses[1].ok) {\r\n responses[1].text().then((data) => {\r\n // Put our returned HTML into something we can use jQuery on to make life easier\r\n const $ = (window as any).jQuery;\r\n const source = $(data);\r\n\r\n // Is click and collect actually turned on?\r\n if (store.getters.WebsiteSettings.CountryRoadSettings.hasOwnProperty('PickupInStore')) {\r\n this.availableStores.Enabled =\r\n // @ts-ignore: Surpress errors DO NOT ATTEMPT TO MOVE THIS COMMENT, IT NEEDS TO BE EXACTLY HERE\r\n parseInt(store.getters.WebsiteSettings.CountryRoadSettings.PickupInStore, 10) === 1 ? true : false;\r\n }\r\n if (!this.availableStores.Enabled) {\r\n // Click and collect is turned off, bail early\r\n this.postcodeError.Codes = ['Click and collect is currently unavailable'];\r\n return;\r\n }\r\n\r\n // Figure out if our post code is actually valid\r\n if (data.indexOf('Please enter a valid postcode') !== -1\r\n || data.indexOf('Unknown Post Code') !== -1\r\n || data.indexOf('Unknown Suburb') !== -1\r\n ) {\r\n this.postcodeError.Codes = [\r\n 'The postcode ' +\r\n (this.postCode && this.postCode.length > 0 ? '\"' + this.postCode + '\" ' : '') +\r\n 'entered is not correct.',\r\n ];\r\n this.focusOnInput();\r\n return;\r\n }\r\n\r\n // Figure out whether any stores found for our postcode\r\n // tslint:disable-next-line:max-line-length\r\n const noStoresError = store.getters.getGlossaryEntryByKey('store-unavailable') + ' \"' + this.postCode + '\"';\r\n if (source.find('div.message.nostores').length > 0) {\r\n this.postcodeError.Codes = [noStoresError];\r\n this.focusOnInput();\r\n return;\r\n }\r\n\r\n // Parse the values out for all available stores in the result\r\n let storeSource = source.find('table.results tr:not(.headings) td.select');\r\n if (storeSource === undefined || storeSource.length === 0) {\r\n // Mobile uses a different format\r\n storeSource = source.find('ul.results li.stores div.store-items');\r\n if (storeSource && storeSource.length === 0) {\r\n // Check we actually have stores on mobile\r\n this.postcodeError.Codes = [noStoresError];\r\n this.focusOnInput();\r\n return;\r\n }\r\n }\r\n\r\n // reset counters before we parse the stores\r\n this.fullAvailabilityStoreCount = 0;\r\n this.mixedAvailabilityStoreCount = 0;\r\n\r\n storeSource.each((index: number, cell: any) => {\r\n // Delivery store details\r\n const itemIDs: string[] = $(cell).find('input[name=itemID]')[0].value.split(',');\r\n const productCodes: string[] = $(cell).find('input[name=itemProductCodes]')[0].value.split(',');\r\n const quantitiesRequested: string[] = $(cell).find('input[name=itemQty]')[0].value.split(',');\r\n const quantitiesAvailable: string[] = $(cell).find('input[name=itemQtyAvailable]')[0].value.split(',');\r\n const locationTypes: string[] = $(cell).find('input[name=itemccLocType]')[0].value.split(',');\r\n\r\n // Initialise object for this store\r\n const storeInfo: IClickCollectInfoStore = {\r\n AllAvailable: true,\r\n ClickCollectLater: // Put on new line to make TypeScript line length warning go away\r\n ($(cell).find('input[name=deliveryMethod]')[0].value.toUpperCase() === 'CCL' ? true : false),\r\n StoreID: parseInt($(cell).find('input[name=storeID]')[0].value, 10),\r\n Items: [],\r\n FirstWithUnavailableItems: false,\r\n FirstWithAvailableItems: false,\r\n DistanceFromPostcode: null,\r\n };\r\n\r\n // Parse out the values for each item and check them against our order\r\n\r\n itemIDs.forEach((strValue: string, idx: number) => {\r\n // Parse values for this order item out of the CSV inputs\r\n const itemID: number = parseInt(strValue, 10);\r\n const productCode: number = parseInt(productCodes[idx], 10);\r\n const quantityRequested: number = parseInt(quantitiesRequested[idx], 10);\r\n const quantityAvailable: number = parseInt(quantitiesAvailable[idx], 10);\r\n const locationType: string = locationTypes[idx];\r\n\r\n // Find matching order item (hopefully)\r\n // This line has been made extremely ugly to prevent several TypeScript warnings\r\n const item: IOrderItem | undefined = store.getters.Order.Items.find\r\n ((candidate: IOrderItem) => candidate.ProductItemID === productCode\r\n && candidate.ID === itemID && candidate.Quantity === quantityRequested);\r\n if (item !== undefined) {\r\n // Push item line onto delivery info object\r\n storeInfo.Items.push({\r\n ID: item.ID,\r\n ProductItemID: productCode,\r\n QuantityRequested: quantityRequested,\r\n QuantityAvailable: quantityAvailable,\r\n LocationType: locationType,\r\n // Get a vomit bucket ready...\r\n LocationTypeDisplayText: (\r\n quantityRequested !== quantityAvailable ?\r\n 'This item is unavailable' :\r\n locationType === 'S' ?\r\n 'In store now' :\r\n 'This item will be shipped from our warehouse to the store'\r\n ),\r\n Available: (quantityRequested === quantityAvailable ? true : false),\r\n });\r\n\r\n // If item is not fully available, flag the store as having not all items available\r\n if (quantityRequested !== quantityAvailable) {\r\n storeInfo.AllAvailable = false;\r\n\r\n // Flag this store if it is the first with unavailable item(s)\r\n if (this.mixedAvailabilityStoreCount === 0) {\r\n storeInfo.FirstWithUnavailableItems = true;\r\n }\r\n }\r\n }\r\n\r\n });\r\n\r\n if (storeInfo.AllAvailable) {\r\n // Flag this store if it is the first with unavailable item(s)\r\n if (this.fullAvailabilityStoreCount === 0) {\r\n storeInfo.FirstWithAvailableItems = true;\r\n }\r\n this.fullAvailabilityStoreCount ++;\r\n } else {\r\n this.mixedAvailabilityStoreCount ++;\r\n }\r\n // Push our store onto the list\r\n this.availableStores.Stores.push(storeInfo);\r\n });\r\n }).then(() => {\r\n // Mark the store info as loaded\r\n this.availableStores.Loaded = true;\r\n this.requestInFlight = false;\r\n });\r\n } else {\r\n // Flag that we failed to load the click collect availability info and move on with life\r\n this.availableStores.Error = true;\r\n this.requestInFlight = false;\r\n }\r\n });\r\n }\r\n }\r\n @Watch('availableStores.Loaded')\r\n private onStoreLoad(newVal: boolean) {\r\n if (newVal === true) {\r\n Vue.nextTick(() => {\r\n const heading: HTMLElement | undefined = this.$refs.resultsHeading as HTMLElement;\r\n if (heading !== undefined) {\r\n this.$nextFocus(heading);\r\n }\r\n });\r\n }\r\n }\r\n\r\n private clearSearch() {\r\n this.postcodeError.Codes = [];\r\n this.postCode = null;\r\n this.availableStores = {\r\n Enabled: false,\r\n Error: false,\r\n Loaded: false,\r\n Stores: [],\r\n };\r\n }\r\n\r\n private onPostCodeInput() {\r\n // Strip non digit characters\r\n if (this.postCode !== null && this.postCode.match(/\\D/)) {\r\n this.postCode = this.postCode.replace(/\\D/g, '');\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StoreFinder.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StoreFinder.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./StoreFinder.vue?vue&type=template&id=7670a1da&\"\nimport script from \"./StoreFinder.vue?vue&type=script&lang=ts&\"\nexport * from \"./StoreFinder.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\nimport { store } from '../../store';\nimport { IOrder, IGiftCard, DispatchAction } from '../../interfaces';\nimport * as utilities from '../../utilities';\nimport PickupDetails from './PickupDetails.vue';\nimport StoreFinder from './StoreFinder.vue';\n\n@Component({\n components: {\n PickupDetails,\n StoreFinder,\n },\n})\n\nexport default class ClickCollect extends Vue {\n\n private hasDetails: boolean = (this.order.PickupStore && this.order.PickupStore.Active);\n\n private editingStore = !(this.order.PickupStore && this.order.PickupStore.Active);\n private hasInteracted: boolean = false;\n private get order(): IOrder {\n return store.getters.Order;\n }\n\n private changeStore() {\n this.editingStore = true;\n }\n\n private updateEditingStatus(val: boolean) {\n this.hasDetails = !val;\n }\n\n private mounted() {\n this.$emit('saved-status', this.hasDetails);\n }\n\n @Watch('order')\n private orderUpdated(newOrder: IOrder) {\n this.editingStore = !(newOrder.PickupStore && newOrder.PickupStore.Active);\n }\n\n @Watch('editingStore')\n private storeLocatorToggled(val: boolean) {\n this.hasInteracted = true;\n if (val) {\n this.hasDetails = false;\n }\n }\n\n @Watch('hasDetails')\n private statusChanged(val: boolean) {\n this.$emit('saved-status', val);\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ClickCollect.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ClickCollect.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ClickCollect.vue?vue&type=template&id=761c70a6&\"\nimport script from \"./ClickCollect.vue?vue&type=script&lang=ts&\"\nexport * from \"./ClickCollect.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { store } from '../../store';\r\nimport { PageLocation } from '../../interfaces';\r\nimport DataLayerProduct from './DataLayerProduct';\r\nvar InitialDataLayer = /** @class */ (function () {\r\n function InitialDataLayer(location) {\r\n // Based on the initial dataLyer created on page load (TRACKING.xslt)\r\n this.data = window.jQuery.extend(true, {}, window.dataLayer[0]);\r\n var order = store.getters.Order;\r\n this.data.pagetype = 'Cart: ' + PageLocation[location];\r\n this.data.requestedrewardamt = order.RewardPointsRequested;\r\n this.data['cart.price.cartTotal'] = (order.Total - (order.FreightPrice || 0)).toFixed(2);\r\n this.data['cart.price.basePrice'] = order.Subtotal;\r\n this.data['cart.price.shipping'] = order.FreightPrice;\r\n this.data['cart.price.shippingMethod'] = order.ShippingMethodDesc;\r\n this.data['cart.products'] = this.getProducts();\r\n }\r\n // Rebuild the product list for dataLayer\r\n InitialDataLayer.prototype.getProducts = function () {\r\n var products = [];\r\n store.getters.Order.Items.forEach(function (item) {\r\n var product = new DataLayerProduct(item);\r\n // Special elements for initial dataLayer product list\r\n product.id = item.ProductID;\r\n product.sku = item.Style + '-' + item.ID;\r\n product.category = item.CategoryNav;\r\n product.productsku = item.Style;\r\n product.productcolor = item.ColourCode;\r\n product.productsize = item.Size;\r\n products.push(product);\r\n });\r\n return products;\r\n };\r\n return InitialDataLayer;\r\n}());\r\nexport default InitialDataLayer;\r\n//# sourceMappingURL=InitialDataLayer.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('fieldset',[_c('legend',[_vm._v(\"Deliver to a Collection Point\")]),_c('div',{staticClass:\"parcel-locker-wrapper\"},[_c('div',{staticClass:\"parcel-locker-widget\",attrs:{\"id\":\"parcel-locker-widget\"}}),_vm._t(\"backToAddressFields\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Mixins} from 'vue-property-decorator';\r\nimport { store } from '../store';\r\nimport { IWebsiteSettings, IOrder } from '../interfaces';\r\nimport AddressSelector from './address/AddressSelector';\r\nimport CustomerAddress from '@/components/address/Address';\r\n\r\n@Component({components: { AddressSelector }})\r\nexport default class ParcelLockerWidget extends Mixins(AddressSelector) {\r\n @Prop() private EmailElement!: any;\r\n private Email: string = this.order.Email;\r\n private parcelLockerWidget: any = null;\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n get Widget(): any {\r\n return this.parcelLockerWidget;\r\n }\r\n\r\n set Widget(val: any) {\r\n this.parcelLockerWidget = val;\r\n }\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n // The LocationFinder requires the customer email OR the email input ID if we do not have the email value yet\r\n // Guest Customer wil have no email set on the order Object -\r\n // so we can pass the email element down from the parent to get the ID of the element\r\n get emailElementID(): string {\r\n if (this.EmailElement === null || this.EmailElement === undefined) {\r\n return '';\r\n } else {\r\n return this.EmailElement.$refs.field.id;\r\n }\r\n }\r\n\r\n public mounted() {\r\n Vue.nextTick(() => {\r\n this.$emit('parcelLockerWidgetRendered');\r\n });\r\n }\r\n\r\n // Basic initialisation of the LocationFinder Widget\r\n public initialiseWidget() {\r\n if ((window as any).LocationFinder) {\r\n if (!this.Widget) {\r\n const parcelLockerConfig = {\r\n root: 'parcel-locker-widget',\r\n apiKey: this.WebsiteSettings.ParcelLockerWidgetAPIKEY,\r\n apiSecret: this.WebsiteSettings.ParcelLockerWidgetAPISECRET,\r\n googleApiKey: this.WebsiteSettings.GoogleAPIKey,\r\n emailAddress: this.Email,\r\n emailInputId: this.emailElementID,\r\n merchantId: this.WebsiteSettings.ParcelLockerWidgetAPIMERCHANT,\r\n callback: this.scopeLocationChanged,\r\n singletonInit: true,\r\n variant: 'StarTrack',\r\n };\r\n this.Widget = (window as any).LocationFinder.init(parcelLockerConfig);\r\n }\r\n }\r\n }\r\n\r\n // Collection Point widget fires off an event when a Location is selected,\r\n // We just need to convert the data to match our address interface\r\n // and fire off our own event using the AddressSelector functionality\r\n private locationChanged(selected: any) {\r\n // Reset the Address before setting it with the new address,\r\n // so we can ensure the data actually changes and triggers Vue to re-render the bindings\r\n // This is due to being able to select the exact same Collection Point address,\r\n // causing Vue to not re-render as the data object hasn't actaully changed\r\n this.Address = new CustomerAddress({});\r\n this.Address.LocationType = 3;\r\n this.Address.Country = 'AUS';\r\n this.Address.Street = selected.line1 || '';\r\n this.Address.ExtraInformation = selected.line2 || '';\r\n this.Address.Suburb = selected.suburb || '';\r\n this.Address.State = selected.state || '';\r\n this.Address.Postcode = selected.postcode || '';\r\n this.AddressSelected();\r\n // Emit an event to let the Checkout Component to let it know we have an address\r\n Vue.nextTick(() => {\r\n this.$emit('parcelLockerSelected', this.Address);\r\n });\r\n }\r\n\r\n // The LocationFinder callback scope is unknown.\r\n // Pass the data to our own function so we know the scope and don't cause any issues.\r\n private scopeLocationChanged = (selected: any) => {\r\n this.locationChanged(selected);\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ParcelLockerWidget.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ParcelLockerWidget.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ParcelLockerWidget.vue?vue&type=template&id=1586e1ca&\"\nimport script from \"./ParcelLockerWidget.vue?vue&type=script&lang=ts&\"\nexport * from \"./ParcelLockerWidget.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport { IOrder, IOrderItem, DispatchAction, IPayment, IKeyValuePair, IStoredCreditCard,\r\n IOrderPayments, IPropertyError, PageLocation, IAPIResponse, IPickupStore, IWebsiteSettings } from '../interfaces';\r\nimport ContentManagement from './ContentManagement.vue';\r\nimport Delivery from './Delivery.vue';\r\nimport OrderSummary from './OrderSummary.vue';\r\nimport Payment from './payment/Payment.vue';\r\nimport ClickCollect from './clickcollect/ClickCollect.vue';\r\nimport * as utilities from '../utilities';\r\nimport Animation from '@/components/ui/animations/Animation.vue';\r\nimport CreditCard from '@/components/payment/types/CreditCard.vue';\r\nimport PaymentType from './payment/types/PaymentType.vue';\r\nimport EcommerceDataLayer from '@/components/gtm/EcommerceDataLayer';\r\nimport InitialDataLayer from './gtm/InitialDataLayer';\r\nimport Modal from './ui/Modal';\r\nimport ModalContent from './ui/ModalContent.vue';\r\nimport ParcelLockerWidget from './ParcelLockerWidget.vue';\r\n\r\nenum FulfilmentOption {\r\n UNSET = 0,\r\n DELIVERY = 1,\r\n COLLECTION = 2,\r\n RESET = 3,\r\n}\r\n\r\n@Component({\r\n components: {\r\n ContentManagement,\r\n Delivery,\r\n OrderSummary,\r\n Payment,\r\n PaymentType,\r\n ClickCollect,\r\n Animation,\r\n CreditCard,\r\n ModalContent,\r\n ParcelLockerWidget,\r\n },\r\n})\r\n\r\nexport default class Checkout extends Vue {\r\n\r\n // flag to control the clickability of the place order button\r\n public CanContinue: boolean = false;\r\n\r\n // Flag to check if gift wrapping is in valid state to continue to place order\r\n // Default to true: if there is no gift wrapping available\r\n public giftingValid: boolean = true;\r\n\r\n private brand: string = this.WebsiteSettings.WebsitePrefix;\r\n\r\n private SelectedFulfilmentType: number = 0;\r\n\r\n private retryingPlaceOrder: boolean = this.WebsiteSettings.RetryingPlaceOrder;\r\n\r\n private inFlight: boolean = false;\r\n\r\n private clickAndCollectHasDetails: boolean = (this.order.PickupStore && this.order.PickupStore.Active);\r\n private deliveryHasDetails: boolean = !this.clickAndCollectHasDetails && this.order.ShippingMethod > 0;\r\n\r\n private giftWrappingStatus: boolean = false;\r\n private isParcelLockerWidget: boolean = false;\r\n private showParcelLockerWidget: boolean = false;\r\n private initParcelLockerWidget: boolean = false;\r\n private emailInput: any = null;\r\n private parcelLockerAddress: any = null;\r\n\r\n // click and collect orders need to specify a person who is picking up\r\n // and this needs to be saved to the server before payments are shown\r\n private hasPickUpDetails: boolean = false;\r\n\r\n private stickyTop: boolean = true;\r\n private refreshRate: number = 16;\r\n\r\n private errorMessage: string = '';\r\n private errorMessageModalInfo: Modal = new Modal(true, true, 'alert', 'global-error');\r\n\r\n private get paymentClasses(): string {\r\n // start with the classes we always want\r\n const classes: string[] = ['payment', 'col-12'];\r\n\r\n // do we have enough delivery info etc to proceed with payments\r\n if (this.showPayment) {\r\n classes.push('active');\r\n }\r\n\r\n // is the order fully covered by points?\r\n if (this.checkOrderIsFullyCoveredByRewards) {\r\n classes.push('covered-by-rewards');\r\n }\r\n\r\n // class attribute needs to be a space separated string\r\n return classes.join(' ');\r\n }\r\n\r\n // Check the Order is fully covered by Rewards\r\n public get checkOrderIsFullyCoveredByRewards(): boolean {\r\n // Reference the Payment component to find our Active Payment Option\r\n const paymentComponent: Payment = (this.$refs.paymentComponent as Payment);\r\n if (this.CanContinue\r\n && this.order.Total === 0\r\n && this.order.RewardPointsRequested > 0\r\n && paymentComponent\r\n && paymentComponent.activeOption === 70) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n // Check the Order is fully covered by GiftCards\r\n public get checkOrderIsFullyCoveredByGiftCard(): boolean {\r\n // Reference the Payment component to find our Active Payment Option\r\n const paymentComponent: Payment = (this.$refs.paymentComponent as Payment);\r\n if (this.CanContinue\r\n && this.order.GiftCards\r\n && this.order.GiftCards.length > 0\r\n && paymentComponent\r\n && paymentComponent.activeOption === 120\r\n && paymentComponent.OutstandingTotal === 0) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public mounted() {\r\n\r\n if (!this.pickupInStoreEnabled) {\r\n // Ensure Delivery is the selected Fulfilment type\r\n this.fulfilmentType = FulfilmentOption.DELIVERY;\r\n }\r\n\r\n // we may heve returned from a login, if so select the delivery/cc option\r\n const lastSelectedFulfilmentType: string = utilities.getCookie('SelectedFulfilmentType');\r\n if (lastSelectedFulfilmentType.length > 0) {\r\n utilities.deleteCookie('SelectedFulfilmentType');\r\n if (this.fulfilmentType === FulfilmentOption.UNSET) {\r\n this.fulfilmentType = parseInt(lastSelectedFulfilmentType, 10);\r\n }\r\n }\r\n\r\n this.sentPaymentGTM(this.showPayment, false);\r\n }\r\n\r\n // Payment providers can add a layer of confirmation (eg Klarna)\r\n // where the process flow is: button clicked -> klarna processing -> submit order\r\n private externalPaymentConfirmation(): Promise<IAPIResponse> {\r\n // Reference the payment component to find our selected PaymentType\r\n const paymentComponent: Payment = (this.$refs.paymentComponent as Payment);\r\n const selectedPayment: PaymentType | undefined = paymentComponent.activePayment;\r\n if (selectedPayment) {\r\n return selectedPayment.verify();\r\n } else if (this.checkOrderIsFullyCoveredByRewards || this.checkOrderIsFullyCoveredByGiftCard) {\r\n // Order may be covered in full by Rewards or Giftcards since we do not have an Active Payment Option\r\n return new Promise((resolve, reject) => {\r\n resolve( {Data: {verified: true}, Errors: [] } );\r\n });\r\n } else {\r\n // this should never happen\r\n return new Promise((resolve, reject) => {\r\n resolve( {Data: {verified: false}, Errors: [] } );\r\n });\r\n }\r\n }\r\n\r\n private async placeOrder() {\r\n // Submit the order to iSAMS!\r\n if (this.inFlight) {\r\n return;\r\n }\r\n\r\n if (['SDD', 'NBD', 'CC', 'CCL'].indexOf(this.orderAttrs['Delivery Method']) > -1) {\r\n let reset: boolean = false;\r\n\r\n // Get the current date with initial time\r\n const currentDate: Date = new Date();\r\n currentDate.setHours(0);\r\n currentDate.setMinutes(0);\r\n currentDate.setSeconds(0);\r\n currentDate.setMilliseconds(0);\r\n const deliDate: Date = new Date((this.orderAttrs as IKeyValuePair)['Delivery Date']);\r\n // Verify if the SDD delivery Date is a past date\r\n if (['SDD', 'NBD'].indexOf(this.orderAttrs['Delivery Method']) > -1 && currentDate > deliDate) {\r\n reset = true;\r\n } else {\r\n // Verify if the delivery method is selected over the setting duration\r\n let deliSelectDateTime;\r\n deliSelectDateTime = new Date((this.orderAttrs as IKeyValuePair)['Delivery Method Select DateTime(UTC)'] + ' UTC');\r\n const addMin = deliSelectDateTime.getMinutes() + parseInt(this.WebsiteSettings.DeliveryMethodResetDuration, 10);\r\n deliSelectDateTime.setMinutes(addMin);\r\n if (new Date() > deliSelectDateTime) {\r\n reset = true;\r\n }\r\n }\r\n\r\n if (reset) {\r\n await this.ResetDelivery();\r\n return;\r\n }\r\n }\r\n\r\n this.inFlight = true;\r\n\r\n // So first, query the payment component to find our payment options\r\n const paymentComponent: Payment = (this.$refs.paymentComponent as Payment);\r\n\r\n // Klarna does some preprocessing before we send the order\r\n let paymentVerified = false;\r\n await this.externalPaymentConfirmation().then((response) => {\r\n paymentVerified = response.Data.verified === true;\r\n\r\n // Error handling\r\n if (response.Errors && response.Errors.length > 0) {\r\n paymentComponent.errorMessage = utilities.getErrorMessage(response.Errors[0]);\r\n }\r\n });\r\n\r\n if (!paymentVerified) {\r\n this.inFlight = false;\r\n return;\r\n }\r\n\r\n const fetchParameters: IKeyValuePair = {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n };\r\n\r\n // get the payment details (clone the object to decouple from the source)\r\n const selectedPayments: IOrderPayments | undefined =\r\n JSON.parse(JSON.stringify(paymentComponent.GetSelectedPaymentDetails()));\r\n if (!selectedPayments) {\r\n // this should never happen\r\n paymentComponent.errorMessage = 'Please select a valid payment method';\r\n } else {\r\n if (selectedPayments.Card !== null) {\r\n // The API now only looks at IOrderPayments.Save to determine whether to save a payment method.\r\n // We need to copy our Card version (ignored by server)\r\n selectedPayments.Save = selectedPayments.Card.Save;\r\n }\r\n if (selectedPayments.ReCaptchaToken) {\r\n // the server is expecting the reCAPTCHA token to be sent as a custom header, not a property\r\n // so we need to strip it from the object we're sending\r\n fetchParameters.headers.X_CART_RECAPTCHA_TOKEN = selectedPayments.ReCaptchaToken;\r\n delete selectedPayments.ReCaptchaToken;\r\n }\r\n }\r\n\r\n paymentComponent.errorMessage = null;\r\n\r\n fetchParameters.body = JSON.stringify(selectedPayments);\r\n\r\n let url = '/api/cart/order/complete';\r\n if (this.retryingPlaceOrder) {\r\n // We have a custom Retry endpoint, which doesn't require ReCaptcha for logged in customers\r\n url = '/client/v2/cart/order/complete';\r\n url += '?orderId=' + this.order.ID + '&customerID=' + this.order.CustomerID;\r\n url += '&guid=' + this.order.GUID;\r\n }\r\n\r\n // Next, do an ajax request to /api/cart/order/complete with the right object in the body\r\n utilities.fetch(url, fetchParameters).then((response: any) => {\r\n if (response.ok) {\r\n // On success, redirect to the URL specified by cart complete\r\n response.json().then((data: IAPIResponse) => {\r\n // TODO: probably validate this...\r\n window.location.assign(data.Data);\r\n });\r\n } else {\r\n this.inFlight = false;\r\n response.json().then((data: IAPIResponse) => {\r\n if (data.Data && data.Data !== undefined) {\r\n if (data.Data.hasOwnProperty('Message')) {\r\n paymentComponent.errorMessage = data.Data.Message;\r\n } else if (data.Data.hasOwnProperty('Card') && data.Data.Card !== null) {\r\n // StoredPayments may also have Creditcard details now\r\n const isStoredPayment: boolean = store.getters.WebsiteSettings.StoredPaymentsRequireCVV\r\n && data.Data.hasOwnProperty('StoredPayment') && data.Data.StoredPayment !== null;\r\n\r\n const cc: CreditCard = (paymentComponent.$refs.PaymentType as PaymentType[]).find(\r\n (pt: PaymentType) => pt.ID === 1,\r\n ) as CreditCard;\r\n\r\n this.$ariaAnnounce('Unable to process card');\r\n\r\n if (isStoredPayment) {\r\n Vue.set(cc, 'storedPaymentCard', data.Data.Card);\r\n cc.toggleForm(false);\r\n } else {\r\n Vue.set(cc, 'newCC', data.Data.Card);\r\n cc.toggleForm(true);\r\n }\r\n }\r\n // Update our summary\r\n store.dispatch(DispatchAction.FetchOrder);\r\n } else if (data.Errors && data.Errors.length > 0) {\r\n paymentComponent.errorMessage = '';\r\n data.Errors.forEach((val, i) => {\r\n paymentComponent.errorMessage += '<p>' + utilities.getErrorMessage(val) + '</p>';\r\n });\r\n this.$ariaAnnounce('Unable to process order');\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n private async ResetDelivery() {\r\n\r\n const response = await utilities.fetch('/client/v2/cart/order/resetdelivery', {\r\n method: 'post',\r\n headers : {\r\n 'Content-Type': 'application/json',\r\n },\r\n },\r\n );\r\n\r\n if (!response.ok) {\r\n response.json().then((data: IAPIResponse) => {\r\n if (data.Errors && data.Errors.length > 0) {\r\n this.errorMessage = utilities.getErrorMessage(data.Errors[0]);\r\n this.errorMessageModal.Open();\r\n }\r\n });\r\n }\r\n }\r\n\r\n get order(): IOrder {\r\n return store.getters.Order;\r\n }\r\n\r\n get Snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get orderLoaded(): boolean {\r\n if (store.getters.Order === undefined || store.getters.Order.ID === undefined) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n get personalisedOrder(): boolean {\r\n const perItem = this.order.Items.filter((item: IOrderItem) => item.PersonalisationInfo != null);\r\n return perItem && perItem.length > 0;\r\n }\r\n\r\n get disableCC(): boolean {\r\n if (this.personalisedOrder || this.WebsiteSettings.IsIXWebsite || !this.pickupInStoreEnabled) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n get WebsiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n get orderAttrs(): IKeyValuePair {\r\n return this.order.Attributes;\r\n }\r\n\r\n get errorMessageModal(): ModalContent {\r\n return this.$refs.errorMessageModal as ModalContent;\r\n }\r\n\r\n get parcelLockerMessage() {\r\n return this.isParcelLockerAddress ? 'Select a different Collection Point' : 'Deliver to a Collection Point';\r\n }\r\n\r\n get isParcelLockerAddress() {\r\n return this.isParcelLockerWidget;\r\n }\r\n\r\n get useParcelLockerWidget() {\r\n return this.showParcelLockerWidget;\r\n }\r\n\r\n get setupParcelLockerWidget() {\r\n return this.initParcelLockerWidget;\r\n }\r\n\r\n get getParcelLockerEmailRef() {\r\n return this.emailInput;\r\n }\r\n\r\n get getParcelLockerAddress() {\r\n return this.parcelLockerAddress;\r\n }\r\n\r\n // -----------------------------------------------------------------\r\n // Collection Point Widget\r\n // -----------------------------------------------------------------\r\n\r\n private hideParcelLocker() {\r\n this.showParcelLockerWidget = false;\r\n }\r\n\r\n private showParcelLocker() {\r\n this.showParcelLockerWidget = true;\r\n }\r\n\r\n private initParcelLocker() {\r\n // We only want to setup the Collection Point when the customer actaully clicks the Collection Point button\r\n if (!this.initParcelLockerWidget) {\r\n // First time the Collection Point button is clicked we set the initParcelLockerWidget flag\r\n this.initParcelLockerWidget = true;\r\n }\r\n // Then we can simply show/hide the Collection Point Widget\r\n this.showParcelLocker();\r\n }\r\n\r\n // Need to pass the Email Input reference down to the Collection Point\r\n private parcelLockerEmailRef(emailReference: any) {\r\n this.emailInput = emailReference;\r\n }\r\n\r\n // Listener for when the Collection Point has actaully rendered on the page\r\n private parcelLockerRendered(hasRendered: boolean) {\r\n const widget = this.$refs.parcelLockerWidget as ParcelLockerWidget;\r\n widget.initialiseWidget();\r\n }\r\n\r\n // Handler for the Cancel Collection Point address button\r\n private backToAddressFields() {\r\n this.hideParcelLocker();\r\n }\r\n\r\n // Listener for when the customer selects their desired Location\r\n private parcelLockerSelect(address: any) {\r\n this.parcelLockerAddress = address;\r\n }\r\n\r\n private get pickupInStoreEnabled(): boolean {\r\n // @ts-ignore: Surpress the implicit any error\r\n if (this.WebsiteSettings.CountryRoadSettings.PickupInStore === '0') {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n private get showDelivery(): boolean {\r\n if (this.personalisedOrder || this.disableCC) {\r\n return true;\r\n }\r\n return Number(this.fulfilmentType) === Number(FulfilmentOption.DELIVERY);\r\n }\r\n\r\n private get showCandC(): boolean {\r\n if (this.personalisedOrder || this.disableCC) {\r\n return false;\r\n }\r\n return Number(this.fulfilmentType) === Number(FulfilmentOption.COLLECTION);\r\n }\r\n\r\n public get showPayment(): boolean {\r\n\r\n // depending on whether C & C or Delivery is selected we need to have other details before we can assume\r\n // a completable order - and therefore reveal th payment method\r\n let hasDetails: boolean = false;\r\n\r\n if (this.fulfilmentType === FulfilmentOption.DELIVERY && this.order.ShippingMethod > 0) {\r\n // we have a shippingmethod set and the delivery opton selected, have we filled in an address?\r\n hasDetails = this.deliveryHasDetails;\r\n } else if (this.fulfilmentType === FulfilmentOption.COLLECTION && this.order.PickupStore !== null) {\r\n // we have a store selected and the C & C option selected, do we have the other details?\r\n if (this.clickAndCollectHasDetails) {\r\n hasDetails = this.hasPickUpDetails;\r\n }\r\n }\r\n if (hasDetails) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n @Watch('showPayment')\r\n private sentPaymentGTM(newVal: boolean, oldVal: boolean) {\r\n // Firing the payment event\r\n if (newVal && newVal !== oldVal) {\r\n // Push the payment dataLayer\r\n const w = (window as any);\r\n const action: string = 'custom.ecommerce.checkout.step';\r\n // Initial dataLayer\r\n w.pushDataToGTM('', new InitialDataLayer(PageLocation.payment).data);\r\n // Ecommerce dataLayer\r\n w.pushDataToGTM(action, new EcommerceDataLayer(PageLocation.payment, this.order.Items).data);\r\n // Firing the delivery event when payment gets hidden because it means we are updating the delivery details again.\r\n } else if (!newVal && oldVal === true) {\r\n // Push the payment dataLayer\r\n const w = (window as any);\r\n const action: string = 'custom.ecommerce.checkout.step';\r\n // Initial dataLayer\r\n w.pushDataToGTM('', new InitialDataLayer(PageLocation.delivery).data);\r\n // Ecommerce dataLayer\r\n w.pushDataToGTM(action, new EcommerceDataLayer(PageLocation.delivery, this.order.Items).data);\r\n }\r\n }\r\n\r\n private get fulfilmentType(): FulfilmentOption {\r\n if (Number(this.SelectedFulfilmentType) !== Number(FulfilmentOption.UNSET)) {\r\n return this.SelectedFulfilmentType;\r\n }\r\n if (this.order.ShippingAddress && this.order.ShippingAddress.Street.length > 0) {\r\n if (this.order.PickupStore) {\r\n return FulfilmentOption.COLLECTION;\r\n } else {\r\n return FulfilmentOption.DELIVERY;\r\n }\r\n } else {\r\n return FulfilmentOption.UNSET;\r\n }\r\n }\r\n\r\n private set fulfilmentType(val: FulfilmentOption) {\r\n // don't set anything if its an unselectable option\r\n if (val === FulfilmentOption.COLLECTION && this.disableCC) {\r\n return;\r\n }\r\n // don't continue if the same fulfilment has been clicked again\r\n if ( this.fulfilmentType === val ) {\r\n return;\r\n }\r\n\r\n this.SelectedFulfilmentType = val;\r\n\r\n // Reset errors on the delivery/pickup details when changing the fulfilment type selection\r\n const order = JSON.parse(JSON.stringify(store.getters.Order));\r\n order.Errors = order.Errors.filter((x: IPropertyError) => x.Name !== 'Email');\r\n order.ShippingAddress.Errors = [];\r\n store.dispatch(DispatchAction.ReplaceOrder, order);\r\n }\r\n\r\n private onPaymentStatusChange(val: boolean) {\r\n this.CanContinue = val;\r\n }\r\n\r\n private changeFulfilment(val: number) {\r\n // Check the Collection Point is shown and if so hide it first.\r\n if (this.showParcelLockerWidget === true) {\r\n this.hideParcelLocker();\r\n }\r\n this.fulfilmentType = val;\r\n }\r\n\r\n private updateCandCStatus(status: boolean) {\r\n this.clickAndCollectHasDetails = status;\r\n this.hasPickUpDetails = status;\r\n }\r\n\r\n private updateGiftWrappingStatus(status: boolean) {\r\n this.giftWrappingStatus = status;\r\n if ( status === false ) {\r\n this.giftingValid = false;\r\n } else {\r\n this.giftingValid = true;\r\n }\r\n }\r\n\r\n private updateDeliveryStatus(status: boolean) {\r\n this.deliveryHasDetails = status;\r\n }\r\n\r\n private ReloadOrder() {\r\n this.errorMessageModal.Close();\r\n\r\n // Set the fulfilment type into a new status and update it back\r\n // In order to force the delivery componenet to be rebuilt\r\n const originFulfilmentType = this.fulfilmentType;\r\n this.fulfilmentType = FulfilmentOption.RESET;\r\n store.dispatch(DispatchAction.FetchOrder).then( () => {\r\n this.fulfilmentType = originFulfilmentType;\r\n });\r\n }\r\n\r\n\r\n @Watch('order.ShippingMethod')\r\n private onDeliveryStatusChange(val: number) {\r\n if (val === 0 && this.order.PickupStore === null) {\r\n this.CanContinue = false;\r\n }\r\n }\r\n\r\n @Watch('order.PickupStore')\r\n private onPickupStatusChange(val: IPickupStore) {\r\n if (val === null && this.order.ShippingMethod === 0) {\r\n this.CanContinue = false;\r\n }\r\n }\r\n\r\n // Announce selections to screenreader\r\n @Watch('SelectedFulfilmentType')\r\n private fulfilmentChanged(newVal: number, oldVal: number) {\r\n if (newVal !== oldVal) {\r\n // find the button that corresponds to the new option\r\n let selectedButton: HTMLElement | undefined;\r\n if (newVal === 1) {\r\n selectedButton = this.$refs.deliveryButton as HTMLElement;\r\n } else if (newVal === 2) {\r\n selectedButton = this.$refs.clickAndCollectButton as HTMLElement;\r\n }\r\n }\r\n // store the selected option in a cookie in case of page refresh (eg via login)\r\n utilities.setCookie('SelectedFulfilmentType', newVal.toString());\r\n }\r\n}\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Checkout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Checkout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Checkout.vue?vue&type=template&id=37842a62&\"\nimport script from \"./Checkout.vue?vue&type=script&lang=ts&\"\nexport * from \"./Checkout.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid checkout-wrapper\"},[_c('section',{staticClass:\"order-confirmation col-12\"},[_c('div',{staticClass:\"confirmation_content\"},[_c('h1',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-h1'),expression:\"'orderconfirmation-h1'\"}]},[_vm._v(\"Thank you for your order\")]),_c('div',{staticClass:\"confirmation-message\"},[_c('p',[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-salutation'),expression:\"'orderconfirmation-salutation'\"}],attrs:{\"role\":\"text\"}},[_vm._v(\"Hi\")]),_vm._v(\" \"+_vm._s(_vm.order.BillingAddress.FirstName)+\",\")]),_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-thanks'),expression:\"'orderconfirmation-thanks'\"}],staticClass:\"confirmation-message-thanks\"},[_vm._m(0)]),_c('p',[_vm._v(\"Your order \"),_c('strong',[_vm._v(\"#\"+_vm._s(_vm.order.ID))]),_vm._v(\" has been submitted for processing and an email will be sent to \"),_c('strong',[_vm._v(_vm._s(_vm.order.Email))]),_vm._v(\".\")]),_c('div',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-contact'),expression:\"'orderconfirmation-contact'\"}],staticClass:\"confirmation-message-contact\"},[_vm._m(1)])]),_c('div',{staticClass:\"order-number\"},[_c('p',[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-ordernumber-label'),expression:\"'orderconfirmation-ordernumber-label'\"}],staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Order Number\")]),_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.ID))])])]),_c('div',{staticClass:\"order-date\"},[_c('p',[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-orderdate-label'),expression:\"'orderconfirmation-orderdate-label'\"}],staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Order Date\")]),_c('span',{attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.orderDatePlacedFriendly))])])]),_c('div',{staticClass:\"review_summary\"},[(_vm.order.ShippingMethod > 0 && _vm.order.PickupStore === null)?_c('div',{staticClass:\"review review_addresses delivery\"},[_c('div',{staticClass:\"confirm-address\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-delivery-address-h2'),expression:\"'orderconfirmation-delivery-address-h2'\"}]},[_vm._v(\"Delivery Address\")]),_c('AddressSummary',{attrs:{\"Address\":_vm.shippingAddress}})],1),_c('div',{staticClass:\"delivery-confirm-method-wrapper\"},[(_vm.snippets[_vm.deliverySnippetName])?_c('div',{staticClass:\"confirm-method\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-delivery-timeframe-h2'),expression:\"'orderconfirmation-delivery-timeframe-h2'\"}]},[_vm._v(\"When\")]),_c('ContentManagement',{attrs:{\"snippet\":_vm.snippets[_vm.deliverySnippetName]}})],1):_vm._e(),(_vm.websiteSettings.Country === 'au' && _vm.showATLOption)?_c('div',{staticClass:\"confirm-atl\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-delivery-atl-h2'),expression:\"'orderconfirmation-delivery-atl-h2'\"}]},[_vm._v(\"If you're not home\")]),_c('ATLStatusMessage')],1):_vm._e()])]):_c('div',{staticClass:\"review review_addresses pickup\"},[_c('div',{staticClass:\"confirm-pickup\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-cc-address-h2'),expression:\"'orderconfirmation-cc-address-h2'\"}]},[_vm._v(\"Collect From\")]),_c('div',{staticClass:\"summary-list\"},[_c('div',{staticClass:\"summary-list-item name\"},[_vm._v(_vm._s(_vm.order.PickupStore.Name))]),_c('div',{staticClass:\"summary-list-item address\"},[_c('address',[_c('span',{staticClass:\"street\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.Street))]),(_vm.order.PickupStore.Address.ExtraInformation.length > 0)?_c('span',{staticClass:\"extra-information\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.ExtraInformation))]):_vm._e(),_c('span',{staticClass:\"suburb\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.Suburb))]),_c('span',{staticClass:\"state\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.State))]),_c('span',{staticClass:\"postcode\",attrs:{\"role\":\"text\"}},[_vm._v(_vm._s(_vm.order.PickupStore.Address.Postcode))])])]),_c('div',{staticClass:\"summary-list-item contactphone\"},[_c('span',{staticClass:\"accessibility\",attrs:{\"role\":\"text\"}},[_vm._v(\"Telephone\")]),_vm._v(_vm._s(_vm.order.PickupStore.Address.ContactPhone))])])]),_c('div',{staticClass:\"pickup-contact-wrapper\"},[_c('div',{staticClass:\"confirm-contact\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-cc-contact-h2'),expression:\"'orderconfirmation-cc-contact-h2'\"}]},[_vm._v(\"Pickup Contact Details\")]),_c('div',{staticClass:\"summary-list\"},[_c('div',{staticClass:\"summary-list-item name\"},[_c('i',{staticClass:\"icon-person\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(_vm._s(_vm.order.ShippingAddress.FirstName)+\" \"+_vm._s(_vm.order.ShippingAddress.LastName))]),_c('div',{staticClass:\"summary-list-item contactphone\"},[_c('i',{staticClass:\"icon-phone\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(_vm._s(_vm.order.ShippingAddress.ContactPhone))])])]),(_vm.order.CollectionDetails && _vm.order.CollectionDetails.FirstName.length > 0)?_c('div',{staticClass:\"confirm-collector\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-cc-collector-h2'),expression:\"'orderconfirmation-cc-collector-h2'\"}]},[_vm._v(\"Nominated Collector\")]),_c('div',{staticClass:\"summary-list\"},[_c('div',{staticClass:\"summary-list-item name\"},[_c('i',{staticClass:\"icon-person\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(_vm._s(_vm.order.CollectionDetails.FirstName))])])]):_vm._e()]),(_vm.snippets[_vm.clickCollectSnippetName])?_c('div',{staticClass:\"pickup-notice\"},[_c('h2',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-cc-timeframe-h2'),expression:\"'orderconfirmation-cc-timeframe-h2'\"}]},[_vm._v(\"When\")]),_c('ContentManagement',{attrs:{\"snippet\":_vm.snippets[_vm.clickCollectSnippetName]}})],1):_vm._e()]),_c('div',{staticClass:\"review items\"},[_c('h2',[_vm._v(\"Item Description \"),_c('span',[_vm._v(\"$ \"+_vm._s(_vm.order.Currency))])]),_c('div',{staticClass:\"item-wrapper\"},[(_vm.brand === 'cr' || _vm.brand === 'ou' )?[_c('table',{attrs:{\"role\":\"presentation\"}},_vm._l((_vm.order.Items),function(item){return _c('OrderConfirmationItemAlternativeView',{key:item.ID,attrs:{\"item\":item}})}),1)]:_vm._l((_vm.order.Items),function(item){return _c('OrderConfirmationItem',{key:item.ID,attrs:{\"item\":item}})})],2),_c('OrderSummary'),_c('button',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmation-ordersummary-button-home'),expression:\"'orderconfirmation-ordersummary-button-home'\"}],staticClass:\"btn btn-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.returnToHome}},[_vm._v(\"Return to Home\")])],1)]),_c('ContentManagement',{attrs:{\"snippet\":_vm.snippets['Confirmation - Marketing']}}),_c('CuratedProducts')],1)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v(\"Thanks for your order.\"),_c('br'),_vm._v(\" We hope you enjoyed shopping with us.\")])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v(\"Contact us Monday to Friday 9am-5pm AEST\"),_c('br'),_vm._v(\" Australia 1800 801 911 / New Zealand 0800 105 655.\")])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"delivery-item\"},[_c('img',{attrs:{\"src\":_vm.item.Image,\"alt\":_vm.item.Title}}),_c('div',{staticClass:\"summary-list\"},[_c('div',{staticClass:\"summary-list-item pricing\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.sellingPrice}}),(_vm.originalPrice)?_c('PriceDisplay',{attrs:{\"price\":_vm.originalPrice}}):_vm._e()],1),_c('div',{staticClass:\"summary-list-item product-name\"},[_vm._v(_vm._s(_vm.item.Title))]),(_vm.Colour)?_c('div',{staticClass:\"summary-list-item product-colour\"},[_vm._v(_vm._s(_vm.Colour))]):_vm._e(),(_vm.Size)?_c('div',{staticClass:\"summary-list-item product-size\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmationitem-product-size'),expression:\"'orderconfirmationitem-product-size'\"}],staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Size :\")]),_vm._v(\" \"+_vm._s(_vm.Size))]):_vm._e(),_c('div',{staticClass:\"summary-list-item product-qty\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmationitem-product-qty'),expression:\"'orderconfirmationitem-product-qty'\"}],staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Quantity:\")]),_vm._v(\" \"+_vm._s(_vm.item.Quantity))])]),(_vm.item.PersonalisationInfo)?_c('table',{attrs:{\"role\":\"presentation\"}},[_c('PersonalisationItem',{attrs:{\"info\":_vm.item.PersonalisationInfo,\"itemid\":_vm.item.ID}})],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { IOrderItem } from '@/interfaces';\r\nimport { store } from '@/store';\r\nimport PriceDisplay from '../pricing/PriceDisplay.vue';\r\nimport Price from '../pricing/Price';\r\nimport PersonalisationItem from './PersonalisationItem.vue';\r\n\r\n@Component({\r\n components: {\r\n PriceDisplay,\r\n PersonalisationItem,\r\n },\r\n})\r\nexport default class OrderConfirmationItem extends Vue {\r\n @Prop() private item!: IOrderItem;\r\n\r\n // Get the current price of the item (taking into account product discounts)\r\n get sellingPrice(): Price {\r\n if (this.item.UnitPreviousPrice !== null) {\r\n return new Price(this.item.LineSubtotal, Price.Types.NOW);\r\n } else {\r\n return new Price(this.item.LineSubtotal, Price.Types.STANDARD);\r\n }\r\n }\r\n\r\n // Get the previous price of the item, if one exists\r\n get originalPrice(): Price | null {\r\n if (this.item.UnitPreviousPrice !== null && this.item.LinePreviousSubtotal !== null) {\r\n return new Price(this.item.LinePreviousSubtotal, Price.Types.WAS);\r\n } else {\r\n return null;\r\n }\r\n }\r\n // Get empty string when colour is none\r\n private get Colour(): string {\r\n let colour: string = '';\r\n if (this.item) {\r\n if (this.item.Colour && this.item.Colour.toLowerCase() !== 'none') {\r\n colour = this.item.Colour;\r\n }\r\n }\r\n return colour;\r\n }\r\n // Get empty string when size is none\r\n private get Size(): string {\r\n let size: string = '';\r\n if (this.item) {\r\n if (this.item.Size && this.item.Size.toLowerCase() !== 'none') {\r\n size = this.item.Size;\r\n }\r\n }\r\n return size;\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderConfirmationItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderConfirmationItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OrderConfirmationItem.vue?vue&type=template&id=539c4306&\"\nimport script from \"./OrderConfirmationItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./OrderConfirmationItem.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tbody',{staticClass:\"alternative-view\",attrs:{\"role\":\"presentation\"}},[_c('tr',{staticClass:\"delivery-item\"},[_c('td',{staticClass:\"product-image\",attrs:{\"rowspan\":\"2\"}},[_c('img',{attrs:{\"src\":_vm.item.Image,\"alt\":_vm.item.Title}})]),_c('td',{staticClass:\"summary-list-item product-details\"},[_c('div',{staticClass:\"product-name\"},[_vm._v(_vm._s(_vm.item.Title))]),_c('div',{staticClass:\"product-code\"},[_c('span',{staticClass:\"label\",attrs:{\"role\":\"text\"}},[_vm._v(\"Style code:\")]),_vm._v(_vm._s(_vm.item.Style))])]),_c('td',{staticClass:\"summary-list-item product-colour\"},[(_vm.Colour)?[_vm._v(_vm._s(_vm.Colour))]:_vm._e()],2),_c('td',{staticClass:\"summary-list-item product-size\"},[(_vm.Size)?[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmationitem-product-size'),expression:\"'orderconfirmationitem-product-size'\"}],staticClass:\"label\"},[_vm._v(\"Size\")]),_vm._v(\" \"+_vm._s(_vm.Size))]:_vm._e()],2),_c('td',{staticClass:\"summary-list-item product-qty\"},[_c('span',{directives:[{name:\"brand-content\",rawName:\"v-brand-content\",value:('orderconfirmationitem-product-qty'),expression:\"'orderconfirmationitem-product-qty'\"}],staticClass:\"label\"},[_vm._v(\"Quantity\")]),_vm._v(\" \"+_vm._s(_vm.item.Quantity)+\" \")]),_c('td',{staticClass:\"summary-list-item pricing\"},[_c('PriceDisplay',{attrs:{\"price\":_vm.sellingPrice}}),(_vm.originalPrice)?_c('PriceDisplay',{attrs:{\"price\":_vm.originalPrice}}):_vm._e()],1)]),(_vm.item.PersonalisationInfo)?_c('PersonalisationItem',{attrs:{\"info\":_vm.item.PersonalisationInfo,\"itemid\":_vm.item.ID,\"columnSpan\":4}}):_c('tr',[_c('td',{attrs:{\"colspan\":\"5\"}})])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\r\nimport OrderConfirmationItem from './OrderConfirmationItem.vue';\r\n\r\n@Component({})\r\nexport default class OrderConfirmationItemAlternativeItem extends OrderConfirmationItem {\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderConfirmationItemAlternativeView.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderConfirmationItemAlternativeView.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OrderConfirmationItemAlternativeView.vue?vue&type=template&id=06ac0548&\"\nimport script from \"./OrderConfirmationItemAlternativeView.vue?vue&type=script&lang=ts&\"\nexport * from \"./OrderConfirmationItemAlternativeView.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n// Note all components need to import the store. We can't use the handy this.$store from a library.\r\nimport { store } from '../store';\r\nimport * as utilities from '../utilities';\r\n\r\nimport ATLStatusMessage from '@/components/ATLStatusMessage.vue';\r\nimport OrderConfirmationItem from './items/OrderConfirmationItem.vue';\r\nimport OrderConfirmationItemAlternativeView from './items/OrderConfirmationItemAlternativeView.vue';\r\nimport { DispatchAction, IOrderIncentive, IKeyValuePair, IWebsiteSettings, DeliveryLocationType } from '../interfaces';\r\nimport Price from './pricing/Price';\r\nimport OrderSummary from './OrderSummary.vue';\r\nimport CuratedProducts from './CuratedProducts.vue';\r\nimport ContentManagement from './ContentManagement.vue';\r\nimport AddressSummary from '@/components/address/AddressSummary.vue';\r\nimport CustomerAddress from '@/components/address/Address';\r\n\r\n@Component({\r\n components: {\r\n ATLStatusMessage,\r\n OrderConfirmationItem,\r\n OrderConfirmationItemAlternativeView,\r\n OrderSummary,\r\n CuratedProducts,\r\n ContentManagement,\r\n AddressSummary,\r\n },\r\n})\r\nexport default class OrderConfirmation extends Vue {\r\n\r\n private brand: string = store.getters.WebsiteSettings.WebsitePrefix;\r\n\r\n get order() {\r\n return store.getters.Order;\r\n }\r\n\r\n get snippets(): object[] {\r\n return store.getters.Snippets;\r\n }\r\n\r\n get websiteSettings(): IWebsiteSettings {\r\n return store.getters.WebsiteSettings;\r\n }\r\n\r\n get orderDatePlacedFriendly() {\r\n if (this.order.DatePlaced === null) {\r\n return '';\r\n }\r\n\r\n const months: string[] = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\r\n const date: Date = new Date(this.order.DatePlaced);\r\n return date.getDate() + ' ' + months[date.getMonth()] + ' ' + date.getFullYear();\r\n }\r\n\r\n get deliverySnippetName() {\r\n if (this.order.ShippingMethod === null || this.order.ShippingMethod === 0) {\r\n return '';\r\n }\r\n\r\n // Decide which delivery info snippet to display\r\n switch ((this.order.Attributes as IKeyValuePair)['Delivery Method']) {\r\n case 'NBD':\r\n return 'Confirmation - Next Day Delivery';\r\n\r\n case 'SDD':\r\n return 'Confirmation - Same Day Delivery';\r\n\r\n default:\r\n return 'Confirmation - Standard Delivery';\r\n }\r\n }\r\n\r\n get clickCollectSnippetName() {\r\n // Bail if no pickup store is set\r\n if (this.order.PickupStore === null) {\r\n return '';\r\n }\r\n\r\n // Figure out which snippet to display\r\n if ((this.order.Attributes as IKeyValuePair)['Delivery Method'] === 'CCL') {\r\n return 'Confirmation - Click Collect Later';\r\n } else {\r\n return 'Confirmation - Click Collect';\r\n }\r\n }\r\n\r\n private get shippingAddress(): CustomerAddress | undefined {\r\n if (this.order.ShippingMethod > 0 && this.order.PickupStore === null) {\r\n return new CustomerAddress(this.order.ShippingAddress);\r\n }\r\n return;\r\n }\r\n\r\n private returnToHome() {\r\n window.location.assign('/');\r\n }\r\n\r\n private mounted() {\r\n utilities.deleteCookie('SelectedFulfilmentType');\r\n }\r\n\r\n // show ATL option only if user has not selected a Parcel Locker collection point\r\n private get showATLOption(): boolean {\r\n const deliveryLocationType = store.getters.Order.ShippingAddress.LocationType;\r\n\r\n if (DeliveryLocationType.ParcelLocker === deliveryLocationType\r\n || DeliveryLocationType.ParcelLockerWidget === deliveryLocationType\r\n || DeliveryLocationType.POBox === deliveryLocationType) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderConfirmation.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderConfirmation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./OrderConfirmation.vue?vue&type=template&id=4a75842a&\"\nimport script from \"./OrderConfirmation.vue?vue&type=script&lang=ts&\"\nexport * from \"./OrderConfirmation.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"accessibility\",attrs:{\"aria-live\":\"polite\"},domProps:{\"innerHTML\":_vm._s(_vm.ariaMessage)}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\nimport { Component, Prop, Vue, Watch} from 'vue-property-decorator';\n\n@Component({})\nexport default class AriaAnnouncement extends Vue {\n @Prop({default: ''}) private message!: string;\n\n private ariaMessage: string = '';\n private timeout: number | null = null;\n\n // When the content af an HTML element with the aria-live attribute changes it gets read out\n public ariaAnnounce(msg: string) {\n // Render in the new message\n if (msg.length > 0) {\n this.ariaMessage = msg;\n // clear the message holder once the message has been live for a few seconds\n if (this.timeout !== null) {\n clearTimeout(this.timeout);\n }\n this.timeout = setTimeout(() => {\n this.timeout = null;\n this.ariaMessage = '';\n }, 3000);\n }\n }\n\n @Watch('message')\n private messageChanged(newVal: string) {\n this.ariaAnnounce(newVal);\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AriaAnnouncement.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AriaAnnouncement.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AriaAnnouncement.vue?vue&type=template&id=0f698877&\"\nimport script from \"./AriaAnnouncement.vue?vue&type=script&lang=ts&\"\nexport * from \"./AriaAnnouncement.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import AriaAnnouncement from '@/components/ui/AriaAnnouncement.vue';\r\nexport default function AriaAnnouncer(Vue, options) {\r\n Vue.prototype.$ariaAnnounce = function (msg) {\r\n var baseApp = this.$root.$children[0];\r\n // do we have an announcement component?\r\n var component = baseApp.$children.find(function (child) {\r\n return child instanceof AriaAnnouncement;\r\n });\r\n if (component === undefined) {\r\n component = new AriaAnnouncement();\r\n component.$mount();\r\n baseApp.$el.appendChild(component.$el);\r\n }\r\n // @ts-ignore: F**k you typescript, I've cast it as an AriaAnnouncement\r\n component.ariaAnnounce(msg);\r\n };\r\n}\r\n//# sourceMappingURL=AriaAnnouncer.js.map","/*\r\n* HoverSurpressor Plugin\r\n* iThings have a nasty behaviour that passes 'hover' state down when you remove/replace elements in the dom\r\n* e.g. You click a button to close a modal, the modal gets removed, everything is groovy (you think)\r\n* WRONG!! If you're on an iThing and there happens to be another button where the close button was on the screen\r\n* this button will get put into the hover state.\r\n* All this plugin does is add a 'surpress-hover' class to the body element, which gets removed as soon as there\r\n* is any further interaction by the user.\r\n* Hover styling in the css needs to be preceded with body:not(.surpress-hover)\r\n*/\r\nfunction clearIPhoneHoverHack() {\r\n var w = window;\r\n w.removeEventListener('touchend', clearIPhoneHoverHack);\r\n document.body.classList.remove('surpress-hover');\r\n}\r\nexport default function HoverSurpressor(Vue, options) {\r\n Vue.prototype.$surpressHover = function () {\r\n var w = window;\r\n if (('ontouchstart' in w) || w.TouchEvent && document.body.classList.contains('ios')) {\r\n if (!document.body.classList.contains('surpress-hover')) {\r\n w.addEventListener('touchend', clearIPhoneHoverHack);\r\n document.body.classList.add('surpress-hover');\r\n }\r\n }\r\n };\r\n}\r\n//# sourceMappingURL=HoverSurpressor.js.map","var nextFocusTarget = null;\r\nexport default function FocusHandler(Vue, options) {\r\n // whenever utilities.fetch sends an api request it will call this function with the\r\n // loading flag set and the current active element, this allows focus to return when loading has complete\r\n // other calls to $nextFocus can reset the target to different elements according to responses received\r\n // once all api requests have ended utilities.fetch will call this function again with a null value,\r\n // this is the trigger to focus on the next element\r\n Vue.prototype.$nextFocus = function (el, loading) {\r\n if (el instanceof HTMLElement) {\r\n if (nextFocusTarget === null && !loading) {\r\n // there is nothing in the queue, so we can focus straight away\r\n el.focus();\r\n }\r\n else {\r\n // we have a target already, implying that there is some fetching action going on\r\n // so replace it with our new one (but not if it's the body element, unless this is the first load)\r\n if ((loading && !nextFocusTarget) || el !== document.body) {\r\n nextFocusTarget = el;\r\n }\r\n }\r\n }\r\n else {\r\n // we've been passed a null value, implying that loading is complete\r\n // so focus on the last target entered\r\n if (nextFocusTarget instanceof HTMLElement\r\n && nextFocusTarget !== document.body\r\n && nextFocusTarget !== document.activeElement) {\r\n nextFocusTarget.focus();\r\n }\r\n nextFocusTarget = null;\r\n }\r\n };\r\n}\r\n//# sourceMappingURL=FocusHandler.js.map","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport ShoppingBag from './components/ShoppingBag.vue';\nimport Checkout from './components/Checkout.vue';\nimport OrderConfirmation from './components/OrderConfirmation.vue';\nimport Modal from '@/components/ui/Modal';\nimport ModalContent from '@/components/ui/ModalContent.vue';\n// Note all components need to import the store. We can't use the handy this.$store from a library.\nimport { store } from './store';\nimport { DispatchAction, IGlossaryTerm } from './interfaces';\nimport * as utilities from './utilities';\n\n// component renders a hidden div in the page that will give announcements to screen readers\nimport AriaAnnouncement from '@/components/ui/AriaAnnouncement.vue';\n\n// plugin adds a $ariaAnnnounce(message: string) to the Vue prototype, making it available in all components\nimport AriaAnnouncer from '@/plugins/AriaAnnouncer';\nVue.use(AriaAnnouncer);\n\n// plugin adds a $surpressHover() function to the Vue prototype,\n// this is used to counter an iThing behaviour when removing elements after a click\nimport HoverSurpressor from '@/plugins/HoverSurpressor';\nVue.use(HoverSurpressor);\n\n// plugin adds a $nextFocus(el: HTMLElement) function to the vue prototype that will store an element for\n// future focus (eg when all fetch calls have executed)\nimport FocusHandler from '@/plugins/FocusHandler';\nVue.use(FocusHandler);\n\nVue.directive('brand-content', {\n inserted: (el: Element, bindings: any) => {\n const replacement: IGlossaryTerm | undefined = store.getters.WebsiteSettings.Glossary.find(\n (term: IGlossaryTerm) => term.key === bindings.value);\n if (replacement) {\n el.innerHTML = replacement.value;\n }\n },\n});\n\n@Component({\n components: {\n ShoppingBag,\n Checkout,\n OrderConfirmation,\n ModalContent,\n AriaAnnouncement,\n },\n})\nexport default class App extends Vue {\n public store: any;\n\n // controls the display of the any required error messages eg if CSRF issue.\n private errorMessageModalInfo: Modal = new Modal(true, true, 'alert', 'global-error');\n\n public mounted() {\n store.dispatch(DispatchAction.ParseSnippets);\n\n this.showError();\n }\n\n get Page(): string {\n return store.getters.Page;\n }\n\n get errorMessage(): string {\n const errorMessage = utilities.getCookie('showError');\n return errorMessage ? errorMessage : '';\n }\n\n public showError(): void {\n const errorMessage: string = utilities.getCookie('showError');\n\n if (errorMessage.length > 0) {\n utilities.deleteCookie('showError');\n\n (this.$refs.errorMessageModal as ModalContent).Open();\n }\n }\n}\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/ts-loader/index.js??ref--12-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/ts-loader/index.js??ref--12-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=60b6fa46&\"\nimport script from \"./App.vue?vue&type=script&lang=ts&\"\nexport * from \"./App.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}