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CpO,UAAW,sBACXK,IAAK+N,EAAK7N,UACI,gBAAoB,MAAO,KAAmB,gBAAoB,OAAQ,KAAmB,gBAAoB,SAAU,KAAM,YAAa6N,EAAK5N,OAAqB,gBAAoB,OAAQ,KAAmB,gBAAoB,SAAU,KAAM,cAAgB,IAAW8Q,oBAAoBlD,EAAKsF,OAAsB,IAAbtF,EAAKsF,OAA2B,gBAAoB,OAAQ,KAAmB,gBAAoB,SAAU,KAAM,mBAAoBtF,EAAK7N,WAAyB,gBAAoB,MAAO,KAAmB,gBAAoB,OAAQ,CACrjBP,UAAW,YACG,gBAAoB,IAAK,CACvCU,KAAM,qDAAqDiK,OAAOyD,EAAKI,eACvErD,OAAQ,UACP,+BACL,KAAKzD,EAAqBE,OAAOnH,OAAS,GAAkB,gBAAoB,MAAO,CACrFT,UAAW,iBACG,gBAAoB,IAAK,KAAM,iIAAkI0H,EAAqBE,OAAO1H,KAAI,SAAUkO,GACzN,OAAoB,gBAAoB,MAAO,CAC7CpO,UAAW,sBACXK,IAAK+N,EAAK7N,UACI,gBAAoB,MAAO,KAAmB,gBAAoB,OAAQ,KAAmB,gBAAoB,IAAK,KAAM,YAAa6N,EAAK5N,OAAqB,gBAAoB,OAAQ,KAAmB,gBAAoB,SAAU,KAAM,cAAgB,IAAW8Q,oBAAoBlD,EAAKsF,OAAsB,IAAbtF,EAAKsF,OAA2B,gBAAoB,OAAQ,KAAmB,gBAAoB,IAAK,KAAM,mBAAoBtF,EAAK7N,WAC5c,KACF,EACA,MACAoS,EAAeC,UAAY,CACzBlL,qBAAsB,UAAgB,CACpCC,UAAW,UACXC,OAAQ,YACPiL,WACHlE,KAAM,WAAiBkE,W","sources":["webpack://oticon_us/./react/feature/wdh-mybusiness/src/js/views/warranties/WarrantyRegistrationReview.js","webpack://oticon_us/./react/feature/wdh-mybusiness/src/js/wdh-warranties-registration-spot.js","webpack://oticon_us/./react/feature/wdh-mybusiness/src/js/wdh-error-boundary.js","webpack://oticon_us/./react/feature/wdh-mybusiness/src/js/views/warranties/WarrantySubmit.js"],"sourcesContent":["import React from 'react';\nimport propTypes from 'prop-types';\nvar WarrantyRegistrationReview = function WarrantyRegistrationReview(props) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"review-details\"\n }, props.reviews.map(function (review, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: index,\n className: \"item-wrapper\"\n }, !props.isSingleDevice && /*#__PURE__*/React.createElement(\"div\", {\n className: \"item-header\"\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"span\", {\n className: \"s-no\"\n }, /*#__PURE__*/React.createElement(\"b\", null, \"Serial No. \"), review.serialNo), /*#__PURE__*/React.createElement(\"span\", {\n className: \"modelNumber\"\n }, /*#__PURE__*/React.createElement(\"b\", null, \"Device: \"), review.model)), /*#__PURE__*/React.createElement(\"span\", {\n className: \"totalDevice\"\n }, \"Device \", index + 1, \" of \", props.reviews.length, \" \", /*#__PURE__*/React.createElement(\"a\", {\n href: \"#\",\n onClick: function onClick(e) {\n return props.landingViewValue(e, index);\n }\n }, \" Edit \"))), props.isSingleDevice && /*#__PURE__*/React.createElement(\"div\", {\n className: \"item-header is-single\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"totalDevice\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"#\",\n onClick: function onClick(e) {\n return props.landingViewValue(e, index);\n }\n }, \" Edit \"))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"item-content\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"item-content-left\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Serial No.\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"right serial-number\"\n }, review.serialNo), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Device:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"device right\"\n }, review.model ? review.model : 'None'), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Purchase date:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"purchase-date right\"\n }, review.PurchaseDate), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Start date:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"start-date right\"\n }, review.registrationWarrantiesInfo.startDate), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Expiration date:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"start-date right\"\n }, review.ExpiresDate), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Patient name:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"patient-name right\"\n }, review.registrationWarrantiesInfo.endUserName), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Age:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"patient-name right\"\n }, review.registrationWarrantiesInfo.Age), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Hearing loss:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"warranty right\"\n }, review.registrationWarrantiesInfo.Hearingloss ? review.registrationWarrantiesInfo.Hearingloss : String.fromCharCode(160, 160)), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Existing warranty:\"), /*#__PURE__*/React.createElement(\"span\", {\n className: \"existing-warranty right\"\n }, review.Warranty))));\n }));\n};\nexport default WarrantyRegistrationReview;","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n// eslint-disable-next-line max-classes-per-file\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport Loader from 'react-loader-advanced';\nimport DatePicker from 'react-datepicker';\nimport axios from 'axios';\nimport { Textbox } from 'react-inputs-validation';\nimport SelectList from '../../../../../../../wdh-feature/wdh-feature-b2b-us/src/js/components/select-list';\nimport WarrantyRegistrationReview from './views/warranties/WarrantyRegistrationReview';\nimport WarrantySubmit from './views/warranties/WarrantySubmit';\nimport { WDHComponent } from '../../../../../../../wdh-foundation/wdh';\nimport ErrorBoundary from './wdh-error-boundary';\nimport CheckUtils from '../../../../../../../wdh-feature/wdh-feature-b2b-us/src/js/utilities/check-utils';\nimport { loaderBackgroundStyle, loaderOpacity, spinner } from './views/Spinner';\nimport AnalyticsUtils from '../../../../../../../wdh-feature/wdh-feature-b2b-us/src/js/utilities/analytics-utils';\n\n/**\n * @memberOf module:wdh-warranties-expiring-spot\n */\nvar WDHWarrantiesRegistrationSpot = /*#__PURE__*/function (_WDHComponent) {\n /**\n * @param {String} className - The unique css selector that triggers the component\n * @constructor\n * @augments WDHComponent\n * @inheritDoc\n */\n function WDHWarrantiesRegistrationSpot() {\n var _this;\n var className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'warranty-registration-spot';\n _classCallCheck(this, WDHWarrantiesRegistrationSpot);\n _this = _callSuper(this, WDHWarrantiesRegistrationSpot, [className]);\n _this.defaultDictionary = {\n B2B: {\n warrantyRegistrationTitle: 'Warranty registration',\n warrantyRegistrationIntroText: 'To register your devices, fill in the fields below for each devices and click Continue.',\n warrantyRegistrationReviewTitle: 'Confirm your warranty registration details',\n warrantyRegistrationReviewIntroText: '',\n warrantyRegistrationSubmitTitle: 'Thank you for submitting your registration information',\n warrantyRegistrationSubmitIntroText: '',\n warrantyHomeRedirectURL: '/mybusiness/warranties',\n warrantyEmptyPriceDefault: 'N/A',\n warrantyRegistrationRedirectURL1: '/mybusiness/shop',\n warrantyRegistrationRedirectURL2: '/mybusiness/my-account/account-overview',\n warrantyRegistrationRedirectBtn1: 'Place an order',\n warrantyRegistrationRedirectBtn2: 'Manage your account',\n warrantyRegistrationSubmitSubText: 'A confirmation has been emailed to you.',\n warrantyRegistrationSelectDesiredWarrantyText: 'Select additional warranties:*',\n warrantySharedConfirmButtonText: 'Confirm',\n requiredFieldsMessage: 'Required fields are denoted by an asterisk (*)',\n warrantyRequiredField: '* Required field'\n }\n };\n return _this;\n }\n _inherits(WDHWarrantiesRegistrationSpot, _WDHComponent);\n return _createClass(WDHWarrantiesRegistrationSpot, [{\n key: \"init\",\n value: function init(component) {\n var _this2 = this;\n window.DGS.Dictionary.getInstance().getTexts(this.defaultDictionary, function () {\n ReactDOM.render(/*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(WarrantiesRegistrationSpot, {\n dictionary: _this2.defaultDictionary.B2B\n })), component.querySelector('.warranty-registration-spot .component-content'));\n });\n }\n }]);\n}(WDHComponent);\nexport default WDHWarrantiesRegistrationSpot;\nvar WarrantiesRegistrationSpot = /*#__PURE__*/function (_React$Component) {\n function WarrantiesRegistrationSpot(props) {\n var _this3;\n _classCallCheck(this, WarrantiesRegistrationSpot);\n _this3 = _callSuper(this, WarrantiesRegistrationSpot, [props]);\n\n // set initial state for expiring week value\n _this3.state = {\n items: [],\n show: true,\n disableSubmitButton: false,\n viewValue: 'landing',\n checkBoxes1: [],\n showContent: 0,\n setActiveState: true,\n showPoBox: [],\n validate: [],\n newStartDate: [],\n newEndUserName: [],\n newAge: [],\n newSelectValue: [],\n newRadioBtn: [],\n poTextField: [],\n hasNameError: true,\n registeredWarranties: {\n succeeded: [],\n failed: []\n }\n };\n _this3.hearingLossValues = [{\n value: '0',\n text: 'Mild',\n forceable: false\n }, {\n value: '1',\n text: 'Moderate',\n forceable: false\n }, {\n value: '2',\n text: 'Severe',\n forceable: false\n }, {\n value: '3',\n text: 'Profound',\n forceable: false\n }];\n _this3.handleInputText = _this3.handleInputText.bind(_this3);\n _this3.toggleContent = _this3.toggleContent.bind(_this3);\n _this3.nextDeviceContent = _this3.nextDeviceContent.bind(_this3);\n _this3.checkWarrantyStatus = _this3.checkWarrantyStatus.bind(_this3);\n _this3.landingViewValue = _this3.landingViewValue.bind(_this3);\n _this3.reviewViewValue = _this3.reviewViewValue.bind(_this3);\n _this3.submitViewValue = _this3.submitViewValue.bind(_this3);\n _this3.checkRegisterWarranty = _this3.checkRegisterWarranty.bind(_this3);\n _this3.handleDateChange = _this3.handleDateChange.bind(_this3);\n _this3.handleNameChange = _this3.handleNameChange.bind(_this3);\n _this3.handleSelectChange = _this3.handleSelectChange.bind(_this3);\n _this3.handleRadioBtn = _this3.handleRadioBtn.bind(_this3);\n return _this3;\n }\n _inherits(WarrantiesRegistrationSpot, _React$Component);\n return _createClass(WarrantiesRegistrationSpot, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.overrideParentComponent();\n this.getWarranties();\n }\n }, {\n key: \"getUrlVars\",\n value: function getUrlVars() {\n var vars = {};\n window.location.href.replace(/[?]+([^=&]+)=([^&]*)/gi, function (m, key, value) {\n vars[key] = value;\n });\n return vars;\n }\n }, {\n key: \"getWarranties\",\n value: function getWarranties() {\n var _this4 = this;\n var urlParam = this.getUrlVars().ins;\n var params = urlParam.split('|');\n var dataItems = [];\n var dateArray = [];\n var endUserNameArray = [];\n var warrantyPromises = [];\n var validate = [];\n this.setState({\n show: true\n });\n params.forEach(function (d) {\n var serialNo = d.split('|');\n warrantyPromises.push(_this4.getWarrantyDetails(serialNo));\n });\n Promise.all(warrantyPromises).then(function (warranties) {\n warranties.forEach(function (warranty) {\n var serialTest = JSON.parse(warranty);\n serialTest.data.items[0].selectedwarranties = [];\n serialTest.data.items[0].registrationWarrantiesInfo = {};\n dataItems.push(serialTest.data.items[0]);\n validate.push(false);\n dateArray.push(serialTest.data.items[0].PurchaseDate);\n endUserNameArray.push(serialTest.data.items[0].endUserName);\n _this4.setState({\n items: dataItems,\n show: false,\n newStartDate: dateArray,\n newEndUserName: endUserNameArray,\n validate: validate\n });\n for (var n = 0; n < dateArray.length; n++) {\n _this4.setState(_defineProperty({\n registerData: _this4.state.items[n].registrationWarrantiesInfo.startDate = _this4.state.items[n].PurchaseDate\n }, \"registerData\", _this4.state.items[n].registrationWarrantiesInfo.endUserName = _this4.state.items[n].endUserName));\n }\n });\n });\n }\n }, {\n key: \"getWarrantyDetails\",\n value: function getWarrantyDetails(serialNo) {\n var endpoint = \"/webservices/warranties.svc/registrationdatalist?serialNo=\".concat(serialNo, \"&serialNo2=\");\n return new Promise(function (resolve, reject) {\n axios.get(endpoint).then(function (response) {\n if (response.status === 200) {\n resolve(response.data);\n }\n });\n });\n }\n }, {\n key: \"handleInputText\",\n value: function handleInputText(event, index) {\n var _this$state = this.state,\n items = _this$state.items,\n poTextField = _this$state.poTextField;\n items[index].selectedwarranties.po = event.target.value;\n poTextField[index] = event.target.value;\n this.setState({\n poTextField: poTextField,\n items: items\n });\n }\n }, {\n key: \"overrideParentComponent\",\n value: function overrideParentComponent() {\n $('.rich-text.warranty-registration-spot').removeClass('rich-text');\n }\n }, {\n key: \"landingViewValue\",\n value: function landingViewValue(e, index) {\n this.setState({\n viewValue: 'landing',\n showContent: index\n });\n }\n }, {\n key: \"reviewViewValue\",\n value: function reviewViewValue(e) {\n var _this5 = this;\n var _this$state2 = this.state,\n validate = _this$state2.validate,\n showContent = _this$state2.showContent;\n var index = this.state.items.length - 1;\n validate[showContent] = true;\n this.setState({\n validate: validate\n }, function () {\n if (_this5.state.items[index].registrationWarrantiesInfo.endUserName !== '' && _this5.state.items[index].registrationWarrantiesInfo.Age !== '' && _this5.state.items[index].registrationWarrantiesInfo.hasOwnProperty('Age')) {\n _this5.setState({\n viewValue: 'review'\n });\n }\n /* Total revenue price for Tracking code */\n var revenuePrice = 0.000;\n for (var i = 0; i < _this5.state.items.length; i++) {\n if (_this5.state.items[i].selectedwarranties.price) {\n _this5.setState({\n registerData: _this5.state.items[i].revenue = _this5.state.items[i].selectedwarranties.price\n });\n } else {\n _this5.setState({\n registerData: _this5.state.items[i].revenue = '0.000'\n });\n }\n revenuePrice += parseFloat(_this5.state.items[i].revenue);\n _this5.setState({\n registerData: _this5.state.items[_this5.state.items.length - 1].totalRevenuePrice = \"\".concat(revenuePrice.toString(), \".00\")\n });\n }\n });\n }\n\n /* --- Tracking code for warranty extension on submit ---*/\n }, {\n key: \"generateTrackingData\",\n value: function generateTrackingData() {\n var products = [];\n // Map items\n var bos = this.state.items.map(function (items) {\n return {\n name: \"Warranty registration -\".concat(items.model),\n id: items.serialNo,\n price: items.selectedwarranties.price,\n brand: items.model,\n category: items.model,\n varient: items.model,\n quantity: 1,\n coupon: ''\n };\n });\n bos.forEach(function (product) {\n products.push(product);\n });\n var trackingData = {\n event: 'eec.purchase',\n ecommerce: {\n purchase: {\n actionField: {\n id: Math.random().toString(36).substr(2, 9),\n revenue: this.state.items[this.state.items.length - 1].totalRevenuePrice\n },\n products: products\n }\n }\n };\n return trackingData;\n }\n\n /* --- Tracking code for warranty extension on submit ---*/\n }, {\n key: \"generateGA4TrackingData\",\n value: function generateGA4TrackingData() {\n var items = this.state.items;\n return {\n currency: 'USD',\n order_type: AnalyticsUtils.eventCategories.WARRANTY_REQUESTED,\n transaction_id: Math.random().toString(36).substr(2, 9),\n value: this.state.items[this.state.items.length - 1].totalRevenuePrice,\n items: items.map(function (items) {\n var _items$selectedwarran;\n return {\n currency: 'USD',\n item_brand: items.model,\n item_id: items.serialNo,\n item_name: items.model,\n price: (_items$selectedwarran = items.selectedwarranties.price) !== null && _items$selectedwarran !== void 0 ? _items$selectedwarran : '0.00',\n quantity: 1\n };\n })\n };\n }\n }, {\n key: \"submitViewValue\",\n value: function submitViewValue(e) {\n var _this6 = this;\n e.preventDefault();\n var allPromises = [];\n window.dataLayer.push(this.generateTrackingData()); // google tracking function for GA3 events TODO: this will likely be phased out in the future.\n AnalyticsUtils.triggerPurchaseEvent(AnalyticsUtils.eventCategories.WARRANTY_PURCHASE, this.generateGA4TrackingData()); // GA4 implementation\n this.setState({\n show: true,\n viewValue: 'submit'\n });\n for (var n = 0; n < this.state.items.length; n++) {\n allPromises.push(this.checkRegisterWarranty(this.state.items[n]));\n }\n Promise.all(allPromises).then(function (promises) {\n var registeredWarranties = _this6.state.registeredWarranties;\n promises.forEach(function (promise) {\n var warrantyStatusData = JSON.parse(promise.Data);\n if (warrantyStatusData.DocCreated === 'false') {\n // registration failed\n registeredWarranties.failed.push(promise.item);\n } else {\n // registration succeeded\n registeredWarranties.succeeded.push(promise.item);\n }\n });\n _this6.setState({\n show: false,\n registeredWarranties: registeredWarranties\n });\n });\n }\n }, {\n key: \"checkRegisterWarranty\",\n value: function checkRegisterWarranty(item) {\n var _this7 = this;\n var hearingLossValue = item.registrationWarrantiesInfo.Hearingloss === undefined ? '' : item.registrationWarrantiesInfo.Hearingloss;\n var warrantyResultURL = \"/webservices/warranties.svc/registerwarranty?startDate=\".concat(item.registrationWarrantiesInfo.startDate, \"&patientName=\").concat(item.registrationWarrantiesInfo.endUserName, \"&age=\").concat(item.registrationWarrantiesInfo.Age, \"&hearingLoss=\").concat(hearingLossValue, \"&serviceCardNo=\").concat(item.serviceCardNo, \"&serialNo=\").concat(item.serialNo);\n var warrantyCheckResultURL = \"/webservices/warranties.svc/registrationstatus?serviceCardNo=\".concat(item.serviceCardNo, \"&request=\");\n return new Promise(function (resolve, reject) {\n axios.get(warrantyResultURL).then(function (response) {\n if (response.status === 201 || response.status === 202) {\n _this7.checkWarrantyStatus(warrantyCheckResultURL, response.data.Data, 0, item).then(function (warrantyStatus) {\n warrantyStatus.type = 'register';\n warrantyStatus.item = item;\n resolve(warrantyStatus);\n });\n }\n });\n });\n }\n }, {\n key: \"checkRegisterExtension\",\n value: function checkRegisterExtension(item) {\n var baseWarrantyOrderURL = '/webservices/warranties.svc/orderwarranty';\n var instruments = [];\n var order = {\n serialNo: item.serialNo,\n servicecardNo: item.serviceCardNo,\n warrantyCode: item.selectedwarranties.code,\n warrantyItemId: item.selectedwarranties.itemNo,\n warrantyDescription: item.selectedwarranties.description,\n price: item.selectedwarranties.price,\n po: item.selectedwarranties.po\n };\n instruments.push(order);\n var data = JSON.stringify(instruments);\n return new Promise(function (resolve, reject) {\n axios.post(baseWarrantyOrderURL, data, {\n headers: {\n 'Content-Type': 'application/json; charset=utf-8'\n }\n }).then(function (response) {\n response.type = 'extension';\n response.item = item;\n resolve(response);\n }).catch(function (error) {\n reject(error);\n });\n });\n }\n }, {\n key: \"checkWarrantyStatus\",\n value: function checkWarrantyStatus(baseUrl, id, iterationCnt, d) {\n var _this8 = this;\n var resultUrl = baseUrl + id;\n if (iterationCnt >= 30) {\n // create valid fake response so operation fails on timeout\n var timedOutResponse = {\n Data: '{\"DocCreated\":\"false\",\"ResultTxt\":\"Operation timed out\"}',\n StatusCode: 200\n };\n return Promise.resolve(timedOutResponse);\n }\n return new Promise(function (resolve, reject) {\n axios.get(resultUrl).then(function (response) {\n if (response.status === 204) {\n setTimeout(function () {\n resolve(_this8.checkWarrantyStatus(baseUrl, id, iterationCnt + 1, d));\n }, 500);\n } else if (response.status === 200) {\n resolve(response.data);\n }\n });\n });\n }\n }, {\n key: \"toggleContent\",\n value: function toggleContent(e, index1) {\n if (index1 != 0) {\n var index = index1 - 1;\n if (this.state.items[index].registrationWarrantiesInfo.endUserName !== '' && this.state.items[index].registrationWarrantiesInfo.Age !== '' && this.state.items[index].registrationWarrantiesInfo.hasOwnProperty('Age')) {\n this.setState({\n showContent: index1,\n setActiveState: false\n });\n }\n } else {\n this.setState({\n showContent: index1,\n setActiveState: false\n });\n }\n }\n }, {\n key: \"nextDeviceContent\",\n value: function nextDeviceContent(e, index) {\n var _this9 = this;\n var validate = this.state.validate;\n validate[index] = true;\n this.setState({\n validate: validate\n }, function () {\n if (_this9.state.items[index].registrationWarrantiesInfo.endUserName !== '' && _this9.state.items[index].registrationWarrantiesInfo.Age !== '' && _this9.state.items[index].registrationWarrantiesInfo.hasOwnProperty('Age')) {\n validate[index] = false;\n _this9.setState({\n showContent: index + 1,\n setActiveState: false,\n validate: validate\n });\n }\n });\n }\n }, {\n key: \"handleDateChange\",\n value: function handleDateChange(e, index) {\n var tmpArrDate = this.state.newStartDate;\n // tmpArrDate[index] = e.toLocaleDateString();\n tmpArrDate[index] = e.toLocaleString('en-US', {\n day: 'numeric',\n month: 'numeric',\n year: 'numeric'\n }).replace(/[^ -~]/g, '');\n this.setState({\n newStartDate: tmpArrDate,\n registerData: this.state.items[index].registrationWarrantiesInfo.startDate = e.toLocaleString('en-US', {\n day: 'numeric',\n month: 'numeric',\n year: 'numeric'\n }).replace(/[^ -~]/g, '')\n });\n }\n }, {\n key: \"handleNameChange\",\n value: function handleNameChange(e, index) {\n var registerData = {};\n var tmpArrName = this.state.newEndUserName;\n tmpArrName[index] = e;\n this.setState({\n newEndUserName: tmpArrName,\n registerData: this.state.items[index].registrationWarrantiesInfo.endUserName = e\n });\n }\n }, {\n key: \"handleAgeChange\",\n value: function handleAgeChange(e, index) {\n if (/^[0-9\\b]+$/.test(e) || e === '') {\n var registerData = {};\n var tmpArrAge = this.state.newAge;\n tmpArrAge[index] = e;\n this.setState({\n newAge: tmpArrAge,\n registerData: this.state.items[index].registrationWarrantiesInfo.Age = e\n });\n }\n }\n }, {\n key: \"handleSelectChange\",\n value: function handleSelectChange(e, index) {\n var registerData = {};\n var tmpArrSelect = this.state.newSelectValue;\n tmpArrSelect[index] = this.hearingLossValues[e.target.value];\n this.setState({\n newSelectValue: tmpArrSelect,\n registerData: this.state.items[index].registrationWarrantiesInfo.Hearingloss = this.hearingLossValues[e.target.value].text\n });\n }\n }, {\n key: \"handleRadioBtn\",\n value: function handleRadioBtn(e, index, selectedwarranty) {\n var registerData = {};\n var handlePO = this.state.showPoBox;\n handlePO[index] = true;\n var tmpArrRadio = this.state.newRadioBtn;\n tmpArrRadio[index] = e.target.value;\n this.setState({\n showPoBox: handlePO,\n newRadioBtn: tmpArrRadio\n });\n if (e.target.checked === true) {\n this.setState({\n registerData: this.state.items[index].selectedwarranties = selectedwarranty\n });\n }\n }\n }, {\n key: \"toggleValidating\",\n value: function toggleValidating(validate) {\n this.setState({\n validate: validate\n });\n }\n }, {\n key: \"handleClearForm\",\n value: function handleClearForm(e, index) {\n if (index !== -1) {\n var _this$state3 = this.state,\n validate = _this$state3.validate,\n items = _this$state3.items,\n newEndUserName = _this$state3.newEndUserName,\n newAge = _this$state3.newAge,\n newSelectValue = _this$state3.newSelectValue,\n newStartDate = _this$state3.newStartDate;\n if (index < items.length - 1) {\n validate.splice(index, 1);\n items.splice(index, 1);\n var tmpArrName = newEndUserName;\n tmpArrName[index] = items[index].registrationWarrantiesInfo.endUserName;\n var tmpArrAge = newAge;\n tmpArrAge[index] = items[index].registrationWarrantiesInfo.Age;\n var tmpArrSelect = newSelectValue;\n tmpArrSelect[index] = items[index].registrationWarrantiesInfo.Hearingloss;\n var tmpArrDate = newStartDate;\n tmpArrDate[index] = items[index].registrationWarrantiesInfo.startDate;\n this.setState({\n items: items,\n newEndUserName: tmpArrName,\n newAge: tmpArrAge,\n newSelectValue: tmpArrSelect,\n newStartDate: tmpArrDate,\n validate: validate\n });\n } else {\n items.splice(index, 1);\n validate.splice(index, 1);\n this.setState({\n items: items,\n showContent: 0,\n setActiveState: true,\n validate: validate\n });\n }\n }\n\n // RESET FUNCTIONALITY (FOR FUTURE USE)\n // e.preventDefault();\n // if(this.state.items[index].selectedwarranties.po != undefined){\n // this.state.items[index].selectedwarranties.po = '';\n // }\n // $('.poText').each(function(){\n // $(this).find('input').val(\"\");\n // })\n // let tmpArrAge = this.state.newAge,\n // tmpArrSelect = this.state.newSelectValue,\n // tmpArrRadio = this.state.newRadioBtn;\n // tmpArrAge[index] = [];\n // tmpArrSelect[index] = 'Hearing Loss';\n // tmpArrRadio[index] = [];\n // this.setState({\n // newAge: tmpArrAge,\n // newRadioBtn:tmpArrRadio,\n // newSelectValue: tmpArrSelect,\n // registerData1: this.state.items[index].registrationWarrantiesInfo.Age = '',\n // registerData2: this.state.items[index].registrationWarrantiesInfo.Hearingloss = '',\n // registerData3: this.state.items[index].selectedwarranties = [],\n // });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this10 = this;\n var spinner = /*#__PURE__*/React.createElement(\"div\", {\n className: \"cssload-double-torus\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"cssload-double-torus-arrow\"\n }));\n if (this.state.viewValue === 'landing') {\n var showContent = this.state.showContent;\n var isSingleDevice = this.state.items.length === 1;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"warranties-extension-container\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"warranties-extension-lists\"\n }, /*#__PURE__*/React.createElement(\"h3\", null, this.props.dictionary.warrantyRegistrationTitle), /*#__PURE__*/React.createElement(\"p\", null, this.props.dictionary.warrantyRegistrationIntroText), /*#__PURE__*/React.createElement(\"p\", {\n className: \"required-fields-msg\"\n }, this.props.dictionary.requiredFieldsMessage), /*#__PURE__*/React.createElement(\"div\", {\n className: \"lists-item\"\n }, /*#__PURE__*/React.createElement(Loader, {\n show: this.state.show,\n message: spinner,\n disableDefaultStyles: true\n }, this.state.items.map(function (i, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: \"item\".concat(index),\n className: \"item-wrapper\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: _this10.state.setActiveState === true && index === 0 ? 'item-header active' : \"\".concat(_this10.state.showContent === index ? 'item-header active' : 'item-header')\n }, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"span\", {\n className: \"s-no\"\n }, /*#__PURE__*/React.createElement(\"b\", null, \"Serial No. \"), i.serialNo), /*#__PURE__*/React.createElement(\"span\", {\n className: \"modelNumber\"\n }, /*#__PURE__*/React.createElement(\"b\", null, \"Device: \"), i.model), isSingleDevice && /*#__PURE__*/React.createElement(\"span\", {\n className: \"purchaseDate\"\n }, /*#__PURE__*/React.createElement(\"b\", null, \"Purchase Date: \"), i.PurchaseDate)), !isSingleDevice && /*#__PURE__*/React.createElement(\"span\", {\n className: \"totalDevice\"\n }, \"Device \".concat(index + 1, \" of \").concat(_this10.state.items.length), /*#__PURE__*/React.createElement(\"a\", {\n href: \"#\",\n className: \"toggleContent_\".concat(index),\n onClick: function onClick(e) {\n return _this10.toggleContent(e, index);\n }\n }, \" \"))), /*#__PURE__*/React.createElement(\"div\", {\n className: _this10.state.setActiveState === true && index === 0 ? 'item-content active' : \"\".concat(_this10.state.showContent === index ? 'item-content active' : 'item-content')\n }, !isSingleDevice && /*#__PURE__*/React.createElement(\"div\", {\n className: \"formInfoHeader\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Serial No. \", i.serialNo), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Device: \", i.model), /*#__PURE__*/React.createElement(\"span\", {\n className: \"left\"\n }, \"Purchase Date: \", i.PurchaseDate)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"react-form\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"pPurchaseDate has-value\"\n }, /*#__PURE__*/React.createElement(DatePicker, {\n value: _this10.state.newStartDate[index],\n onChange: function onChange(e) {\n _this10.handleDateChange(e, index);\n },\n calendarClassName: \"custom-date-picker\"\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"placeholder\"\n }, \"Start date\")), /*#__PURE__*/React.createElement(\"span\", {\n className: \"pendUserName patientNameBox_\".concat(index, \" \").concat(!CheckUtils.isNullOrEmptyString(_this10.state.newEndUserName[index]) ? 'has-value' : '')\n }, /*#__PURE__*/React.createElement(Textbox, {\n tabIndex: \"1\",\n attributesInput: {\n id: \"Name_\".concat(index),\n name: 'Name',\n type: 'text',\n placeholder: ''\n },\n value: _this10.state.newEndUserName[index],\n disabled: false,\n validate: _this10.state.validate[index],\n validationCallback: function validationCallback(res) {\n var validate = _this10.state.validate;\n validate[index] = false;\n _this10.setState({\n hasNameError: res,\n validate: validate\n });\n },\n classNameInput: \"from-input endUserName\",\n onChange: function onChange(e) {\n _this10.handleNameChange(e, index);\n },\n onBlur: function onBlur() {},\n validationOption: {\n name: 'Name',\n check: true,\n required: true,\n msgOnError: \"\".concat(_this10.props.dictionary.warrantyRequiredField)\n }\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"placeholder\"\n }, \"Patient name*\")), /*#__PURE__*/React.createElement(\"span\", {\n className: \"pAge ageBox_\".concat(index, \" \").concat(!CheckUtils.isNullOrEmptyString(_this10.state.newAge[index]) ? 'has-value' : '')\n }, /*#__PURE__*/React.createElement(Textbox, {\n tabIndex: \"1\",\n attributesInput: {\n id: \"Age_\".concat(index),\n name: \"Age\",\n type: \"text\",\n placeholder: \"\"\n },\n value: _this10.state.newAge[index],\n disabled: false,\n validate: _this10.state.validate[index],\n validationCallback: function validationCallback(res) {\n var validate = _this10.state.validate;\n validate[index] = false;\n _this10.setState({\n hasNameError: res,\n validate: validate\n });\n },\n onBlur: function onBlur() {},\n classNameInput: \"from-input\",\n onChange: function onChange(e) {\n _this10.handleAgeChange(e, index);\n },\n validationOption: {\n name: 'Age',\n check: true,\n required: true,\n type: 'number',\n msgOnError: \"\".concat(_this10.props.dictionary.warrantyRequiredField)\n }\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"placeholder\"\n }, \"Age*\")), /*#__PURE__*/React.createElement(\"span\", {\n className: \"pHearingloss \".concat(!CheckUtils.isNullOrEmptyString(_this10.state.newSelectValue[index]) ? 'has-value' : '')\n }, /*#__PURE__*/React.createElement(SelectList, {\n selectedValue: _this10.state.newSelectValue[index] ? _this10.state.newSelectValue[index].value : '',\n items: _this10.hearingLossValues,\n onValueChange: function onValueChange(e) {\n return _this10.handleSelectChange(e, index);\n }\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"placeholder\"\n }, \"Hearing loss\")))), !isSingleDevice && /*#__PURE__*/React.createElement(\"div\", {\n className: _this10.state.setActiveState === true && index === 0 ? 'item-action active' : \"\".concat(showContent === index ? 'item-action active' : 'item-action')\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"#\",\n className: \"btn item-cancel\",\n onClick: function onClick(e) {\n _this10.handleClearForm(e, index);\n }\n }, \"Remove device\"), /*#__PURE__*/React.createElement(\"a\", {\n href: \"#\",\n className: \"btn next-device\",\n onClick: function onClick(e) {\n _this10.nextDeviceContent(e, index);\n }\n }, \"Next device\")));\n }))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"step2\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n className: \"button dark-bg\",\n href: this.props.dictionary.warrantyHomeRedirectURL\n }, \"Cancel\"), /*#__PURE__*/React.createElement(\"a\", {\n className: \"button dark-bg\",\n href: \"#\",\n onClick: function onClick(e) {\n _this10.reviewViewValue(e);\n }\n }, \"Continue\"))));\n }\n if (this.state.viewValue === 'review') {\n var _isSingleDevice = this.state.items.length === 1;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"item-review\"\n }, /*#__PURE__*/React.createElement(\"h3\", null, this.props.dictionary.warrantyRegistrationReviewTitle), /*#__PURE__*/React.createElement(\"p\", null, this.props.dictionary.warrantyRegistrationReviewIntroText), /*#__PURE__*/React.createElement(Loader, {\n show: this.state.show,\n message: spinner,\n disableDefaultStyles: true\n }, /*#__PURE__*/React.createElement(WarrantyRegistrationReview, {\n reviews: this.state.items,\n landingViewValue: this.landingViewValue,\n handleCheckbox: this.state.checkBoxes1,\n isSingleDevice: _isSingleDevice\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"step3\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n id: \"add-to-cart-button\",\n className: \"button dark-bg\",\n onClick: function onClick(e) {\n _this10.setState({\n disableSubmitButton: true\n });\n _this10.submitViewValue(e);\n },\n disabled: this.state.disableSubmitButton,\n type: \"button\"\n }, /*#__PURE__*/React.createElement(Loader, {\n show: this.state.disableSubmitButton,\n message: spinner,\n contentBlur: loaderOpacity,\n backgroundStyle: loaderBackgroundStyle\n }, this.props.dictionary.warrantySharedConfirmButtonText))));\n }\n if (this.state.viewValue === 'submit') {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"item-submit\"\n }, /*#__PURE__*/React.createElement(\"h3\", null, this.props.dictionary.warrantyRegistrationSubmitTitle), /*#__PURE__*/React.createElement(\"p\", null, this.props.dictionary.warrantyRegistrationSubmitIntroText), /*#__PURE__*/React.createElement(Loader, {\n show: this.state.show,\n message: spinner\n }, /*#__PURE__*/React.createElement(WarrantySubmit, {\n registeredWarranties: this.state.registeredWarranties,\n type: \"REGISTRATION\"\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"msg\"\n }, this.props.dictionary.warrantyRegistrationSubmitSubText), /*#__PURE__*/React.createElement(\"div\", {\n className: \"submit-btn\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: this.props.dictionary.warrantyRegistrationRedirectURL1,\n className: \"button dark-bg place-order\"\n }, this.props.dictionary.warrantyRegistrationRedirectBtn1), /*#__PURE__*/React.createElement(\"a\", {\n href: this.props.dictionary.warrantyRegistrationRedirectURL2,\n className: \"button dark-bg manage-account\"\n }, this.props.dictionary.warrantyRegistrationRedirectBtn2)));\n }\n return null;\n }\n }]);\n}(React.Component);\nWarrantiesRegistrationSpot.propTypes = {\n dictionary: PropTypes.objectOf(PropTypes.string).isRequired\n};\nnew WDHWarrantiesRegistrationSpot().run();","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * React component to wrap others and catch any errors that are not dalt with by the component.\n */\nvar ErrorBoundary = /*#__PURE__*/function (_React$Component) {\n function ErrorBoundary(props) {\n var _this;\n _classCallCheck(this, ErrorBoundary);\n _this = _callSuper(this, ErrorBoundary, [props]);\n _this.state = {\n hasError: false,\n translations: {}\n };\n var translations = {\n B2B: {\n sharedGeneralErrorHeader: 'Unexpected error',\n sharedGeneralErrorMessage: 'An unexpected error occurred. Please contact Oticon or try again later',\n sharedGeneralErrorButtonLabel: 'Go to MyOticon Home'\n }\n };\n window.DGS.Dictionary.getInstance().getTexts(translations, function () {\n return _this.setState({\n translations: translations.B2B\n });\n });\n return _this;\n }\n _inherits(ErrorBoundary, _React$Component);\n return _createClass(ErrorBoundary, [{\n key: \"componentDidCatch\",\n value: function componentDidCatch(error, errorInfo) {\n console.error('An unexpected error occurred', error, errorInfo);\n }\n }, {\n key: \"render\",\n value: function render() {\n if (this.state.hasError) {\n var translations = this.state.translations;\n\n // render our general error message for the user rather than a blank screen\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"wdh-feature-b2b-general-error\"\n }, /*#__PURE__*/React.createElement(\"h2\", null, this.props.header === null ? translations.sharedGeneralErrorHeader : this.props.header), /*#__PURE__*/React.createElement(\"p\", null, this.props.message === null ? translations.sharedGeneralErrorMessage : this.props.message), /*#__PURE__*/React.createElement(\"button\", {\n className: \"wdh-feature-b2b-button\",\n type: \"button\",\n onClick: function onClick() {\n return window.location.href = '/myoticon';\n }\n }, translations.sharedGeneralErrorButtonLabel), /*#__PURE__*/React.createElement(\"br\", null));\n }\n return this.props.children;\n }\n }], [{\n key: \"getDerivedStateFromError\",\n value: function getDerivedStateFromError() {\n return {\n hasError: true\n };\n }\n }]);\n}(React.Component);\nexport default ErrorBoundary;\nErrorBoundary.propTypes = {\n children: PropTypes.node,\n header: PropTypes.string,\n message: PropTypes.string\n};\nErrorBoundary.defaultProps = {\n children: null,\n header: null,\n message: null\n};","import React from 'react';\nimport propTypes from 'prop-types';\nimport CheckUtils from '../../../../../../../../../wdh-feature/wdh-feature-b2b-us/src/js/utilities/check-utils';\nvar WarrantySubmit = function WarrantySubmit(props) {\n var registeredWarranties = props.registeredWarranties;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"submit-details\"\n }, registeredWarranties.succeeded.length > 0 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"submit-succeeded\"\n }, /*#__PURE__*/React.createElement(\"p\", null, \"Warranty registration for the below device(s) was successful. Please be aware it takes 24 hours to reflect your warranty extension(s) on MyOticon.\"), registeredWarranties.succeeded.map(function (item) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"submit-item-wrapper\",\n key: item.serialNo\n }, /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"strong\", null, \"Device: \"), item.model), /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"strong\", null, \"Style(s): \"), !CheckUtils.isNullOrEmptyString(item.style) ? item.style : '-'), /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"strong\", null, \"Serial Number: \"), item.serialNo)), /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(\"span\", {\n className: \"printPDF\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: \"/webservices/Warranties.svc/requestpdfcertificate/\".concat(item.serviceCardNo),\n target: \"_blank\"\n }, \"> Download/Print warranty\"))));\n })), registeredWarranties.failed.length > 0 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"submit-failed\"\n }, /*#__PURE__*/React.createElement(\"p\", null, \"Warranty for the below device(s) was not able to be completed. Please call Oticon at 1.800.526.3921 to complete registration.\"), registeredWarranties.failed.map(function (item) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"submit-item-wrapper\",\n key: item.serialNo\n }, /*#__PURE__*/React.createElement(\"div\", null, /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"b\", null, \"Device: \"), item.model), /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"strong\", null, \"Style(s): \"), !CheckUtils.isNullOrEmptyString(item.style) ? item.style : '-'), /*#__PURE__*/React.createElement(\"span\", null, /*#__PURE__*/React.createElement(\"b\", null, \"Serial Number: \"), item.serialNo)));\n })));\n};\nexport default WarrantySubmit;\nWarrantySubmit.propTypes = {\n registeredWarranties: propTypes.shape({\n succeeded: propTypes.array,\n failed: propTypes.array\n }).isRequired,\n type: propTypes.string.isRequired\n};"],"names":["props","className","reviews","map","review","index","key","isSingleDevice","serialNo","model","length","href","onClick","e","landingViewValue","PurchaseDate","registrationWarrantiesInfo","startDate","ExpiresDate","endUserName","Age","Hearingloss","String","fromCharCode","Warranty","_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","a","n","TypeError","_defineProperties","r","t","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","_createClass","i","toPrimitive","call","Number","_toPrimitive","_callSuper","_getPrototypeOf","ReferenceError","_assertThisInitialized","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","apply","Boolean","valueOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","create","value","_setPrototypeOf","WDHWarrantiesRegistrationSpot","_WDHComponent","_this","arguments","undefined","this","defaultDictionary","B2B","warrantyRegistrationTitle","warrantyRegistrationIntroText","warrantyRegistrationReviewTitle","warrantyRegistrationReviewIntroText","warrantyRegistrationSubmitTitle","warrantyRegistrationSubmitIntroText","warrantyHomeRedirectURL","warrantyEmptyPriceDefault","warrantyRegistrationRedirectURL1","warrantyRegistrationRedirectURL2","warrantyRegistrationRedirectBtn1","warrantyRegistrationRedirectBtn2","warrantyRegistrationSubmitSubText","warrantyRegistrationSelectDesiredWarrantyText","warrantySharedConfirmButtonText","requiredFieldsMessage","warrantyRequiredField","component","_this2","window","DGS","Dictionary","getInstance","getTexts","WarrantiesRegistrationSpot","dictionary","querySelector","_React$Component","_this3","state","items","show","disableSubmitButton","viewValue","checkBoxes1","showContent","setActiveState","showPoBox","validate","newStartDate","newEndUserName","newAge","newSelectValue","newRadioBtn","poTextField","hasNameError","registeredWarranties","succeeded","failed","hearingLossValues","text","forceable","handleInputText","toggleContent","nextDeviceContent","checkWarrantyStatus","reviewViewValue","submitViewValue","checkRegisterWarranty","handleDateChange","handleNameChange","handleSelectChange","handleRadioBtn","overrideParentComponent","getWarranties","vars","location","replace","m","_this4","params","getUrlVars","ins","split","dataItems","dateArray","endUserNameArray","warrantyPromises","setState","forEach","d","push","getWarrantyDetails","Promise","all","then","warranties","warranty","serialTest","JSON","parse","data","selectedwarranties","registerData","endpoint","concat","resolve","reject","response","status","event","_this$state","po","target","$","removeClass","_this5","_this$state2","hasOwnProperty","revenuePrice","price","revenue","parseFloat","totalRevenuePrice","toString","products","name","id","brand","category","varient","quantity","coupon","product","ecommerce","purchase","actionField","Math","random","substr","currency","order_type","A","eventCategories","WARRANTY_REQUESTED","transaction_id","_items$selectedwarran","item_brand","item_id","item_name","_this6","preventDefault","allPromises","dataLayer","generateTrackingData","triggerPurchaseEvent","WARRANTY_PURCHASE","generateGA4TrackingData","promises","promise","Data","DocCreated","item","_this7","hearingLossValue","warrantyResultURL","serviceCardNo","warrantyCheckResultURL","warrantyStatus","type","instruments","order","servicecardNo","warrantyCode","code","warrantyItemId","itemNo","warrantyDescription","description","stringify","headers","catch","error","baseUrl","iterationCnt","_this8","resultUrl","StatusCode","setTimeout","index1","_this9","tmpArrDate","toLocaleString","day","month","year","tmpArrName","test","tmpArrAge","tmpArrSelect","selectedwarranty","handlePO","tmpArrRadio","checked","_this$state3","splice","_this10","spinner","message","disableDefaultStyles","onChange","calendarClassName","isNullOrEmptyString","tabIndex","attributesInput","placeholder","disabled","validationCallback","res","classNameInput","onBlur","validationOption","check","required","msgOnError","handleAgeChange","selectedValue","onValueChange","handleClearForm","_isSingleDevice","handleCheckbox","contentBlur","backgroundStyle","WarrantySubmit","propTypes","isRequired","run","ErrorBoundary","hasError","translations","sharedGeneralErrorHeader","sharedGeneralErrorMessage","sharedGeneralErrorButtonLabel","errorInfo","console","header","children","defaultProps","style"],"sourceRoot":""}