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ack://portalcomponents/./ClientApp/Components/Helpers/CollapseBuilder.js","webpack://portalcomponents/./ClientApp/Components/Shared/Configuration.js","webpack://portalcomponents/./ClientApp/Components/Helpers/DateTimeFormatter.js","webpack://portalcomponents/./ClientApp/Components/Shared/UrlUtils.js","webpack://portalcomponents/./ClientApp/Components/Helpers/TextFormatter.js","webpack://portalcomponents/./ClientApp/Components/Helpers/CardBuilder.js","webpack://portalcomponents/./ClientApp/Components/Shared/URLSearchParameters.js","webpack://portalcomponents/./ClientApp/Components/Helpers/CommonBuilder.js","webpack://portalcomponents/./ClientApp/Components/Shared/ComponentBase.js","webpack://portalcomponents/./ClientApp/Components/Helpers/FormFieldBuilder.js","webpack://portalcomponents/./ClientApp/Components/Helpers/FileUploader.js","webpack://portalcomponents/./ClientApp/Components/Shared/Exceptions.js","webpack://portalcomponents/./ClientApp/Components/Shared/LocalStorageManager.js","webpack://portalcomponents/./ClientApp/Components/Shared/SessionStorageManager.js","webpack://portalcomponents/./ClientApp/Components/Services/OAuthService.js","webpack://portalcomponents/./ClientApp/Components/Services/Ajax.js","webpack://portalcomponents/./ClientApp/Components/Services/CustomFormApiService.js","webpack://portalcomponents/./ClientApp/Components/Shared/I18n.js","webpack://portalcomponents/./ClientApp/Components/Helpers/CustomFormBuilder.js","webpack://portalcomponents/./ClientApp/Components/Helpers/DropdownBuilder.js","webpack://portalcomponents/./ClientApp/Components/Helpers/FormManager.js","webpack://portalcomponents/./ClientApp/Components/Services/CommunicationService.js","webpack://portalcomponents/./ClientApp/Components/Helpers/ModalBuilder.js","webpack://portalcomponents/./ClientApp/Components/Services/EventsApiService.js","webpack://portalcomponents/./ClientApp/Components/Services/HouseholdApiService.js","webpack://portalcomponents/./ClientApp/Components/Helpers/ICSCalendarBuilder.js","webpack://portalcomponents/./ClientApp/Components/Maps/GMapsApi.js","webpack://portalcomponents/./ClientApp/Components/Maps/stylers.js","webpack://portalcomponents/./ClientApp/Components/Helpers/MapBuilder.js","webpack://portalcomponents/./ClientApp/Components/Maps/marker.tmpl.js","webpack://portalcomponents/./ClientApp/Components/Shared/ReturnContextProvider.js","webpack://portalcomponents/./ClientApp/Components/Helpers/InnerPageBuilder.js","webpack://portalcomponents/./ClientApp/Components/Helpers/NumberUtils.js","webpack://portalcomponents/./ClientApp/Components/Helpers/ProductFormBuilder.js","webpack://portalcomponents/./ClientApp/Components/Services/ProductsApiService.js","webpack://portalcomponents/./ClientApp/Components/Services/UserService.js","webpack://portalcomponents/./ClientApp/Components/Services/CheckoutApiService.js","webpack://portalcomponents/./ClientApp/Components/mpp-event-details.js"],"sourcesContent":["function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nexport var CollapseBuilder = /*#__PURE__*/function () {\n function CollapseBuilder() {\n _classCallCheck(this, CollapseBuilder);\n }\n\n _createClass(CollapseBuilder, null, [{\n key: \"BuildCollapse\",\n value: //static _toggleCollapse(event) {\n //\tconst $collapseLabel = event.currentTarget;\n //\t$collapseLabel.innerText = $collapseLabel.previousElementSibling.checked ? 'Show Description' : 'Hide Description';\n //}\n function BuildCollapse(id, description, noDescriptionText, showDescriptionText, hideDescriptionText) {\n return \"<div class=\\\"collapse--wrapper\\\">\\n\\t\\t\\t<input id=\\\"collapse-\".concat(id, \"\\\" class=\\\"collapse--toggle\\\" type=\\\"checkbox\\\">\\n\\t\\t\\t<label for=\\\"collapse-\").concat(id, \"\\\" class=\\\"collapse--label hide\\\">\").concat(hideDescriptionText, \"</label>\\n\\t\\t\\t<label for=\\\"collapse-\").concat(id, \"\\\" class=\\\"collapse--label show\\\">\").concat(showDescriptionText, \"</label>\\n\\t\\t\\t<div class=\\\"collapse--content\\\">\\n\\t\\t\\t\\t<p class=\\\"mpp-subscriptions--description\\\">\").concat(description === null ? noDescriptionText : description, \"</p>\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }]);\n\n return CollapseBuilder;\n}();","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 8 */\nvar authConfigurationCache = null;\nexport var Configuration = /*#__PURE__*/function () {\n function Configuration() {\n _classCallCheck(this, Configuration);\n\n this.SCRIPT_NAME = \"/dist/MPWidgets.\";\n }\n\n _createClass(Configuration, [{\n key: \"GetAuthConfiguration\",\n value: function GetAuthConfiguration(useCacheIfAvailable) {\n if (useCacheIfAvailable === true && authConfigurationCache != null) {\n return Promise.resolve(authConfigurationCache);\n }\n\n var appRoot = this.GetAppRoot();\n\n if (appRoot === \"\") {\n return;\n }\n\n var url = \"\".concat(appRoot, \"/Api/Auth\");\n return fetch(url).then(function (authInfo) {\n return authInfo.json().then(function (authConfiguration) {\n authConfigurationCache = authConfiguration;\n return authConfiguration;\n });\n }, function (err) {\n console.error(\"Unable to retrieve auth info!\");\n console.error(err);\n throw new Error(err);\n });\n }\n }, {\n key: \"GetAuthToken\",\n value: function GetAuthToken(cacheKey) {\n var appRoot = this.GetAppRoot();\n var url = \"\".concat(appRoot, \"/Home/Tokens?cacheKey=\").concat(cacheKey);\n return fetch(url).then(function (authInfo) {\n return authInfo.json();\n }, function (err) {\n console.error(\"Unable to retrieve auth token!\");\n console.error(err);\n throw new Error(err);\n });\n }\n }, {\n key: \"GetCSRFToken\",\n value: function GetCSRFToken() {\n var appRoot = this.GetAppRoot();\n var url = \"\".concat(appRoot, \"/Home/CSRFToken\");\n return fetch(url).then(function (authInfo) {\n return authInfo.json();\n }, function (err) {\n console.error(\"Unable to retrieve CSRF token!\");\n console.error(err);\n throw new Error(err);\n });\n }\n }, {\n key: \"GetAppRoot\",\n value: function GetAppRoot() {\n //if (sessionStorage.appRoot) {\n //\treturn sessionStorage.appRoot;\n //} else {\n //Find base URL of main components script and put it into session storage:\n if (document.getElementById(\"MPWidgets\") !== null && document.getElementById(\"MPWidgets\") !== undefined) {\n var currentScriptSrc = document.getElementById(\"MPWidgets\").src;\n\n if (currentScriptSrc) {\n var appRoot = currentScriptSrc.substring(0, currentScriptSrc.indexOf(this.SCRIPT_NAME));\n sessionStorage.appRoot = appRoot;\n return appRoot;\n } else {\n // eslint-disable-next-line no-console\n console.log(\"Error: Could not find script in header of page with id='MPWidgets'\");\n }\n } // }\n\n }\n }, {\n key: \"GetConfigurationSetting\",\n value: function GetConfigurationSetting(keyName) {\n return fetch(\"\".concat(this.GetAppRoot(), \"/Api/ConfigurationApi/GetConfigurationSettingValue?keyName=\").concat(keyName)).then(function (response) {\n return response.text();\n });\n }\n }, {\n key: \"GetCustomStyles\",\n value: function GetCustomStyles() {\n return fetch(\"\".concat(this.GetAppRoot(), \"/Api/ConfigurationApi/GetCustomStyles\")).then(function (response) {\n return response.json();\n });\n }\n }, {\n key: \"GetLocalCountryCode\",\n value: function GetLocalCountryCode(countryList) {\n var result = \"US\";\n\n if (!!window.navigator && !!countryList && !!countryList.length) {\n var locale = window.navigator.language || result;\n var localeParts = locale.split(\"-\");\n var countryCode = localeParts[localeParts.length - 1];\n var matches = countryList.filter(function (country) {\n return country.abbreviation == countryCode;\n });\n\n if (!!matches && matches.length > 0) {\n result = countryCode;\n }\n }\n\n return result;\n }\n }, {\n key: \"GetSiteInfo\",\n value: function GetSiteInfo() {\n var appRoot = this.GetAppRoot();\n var url = \"\".concat(appRoot, \"/api/ConfigurationApi/GetSiteInfo\");\n return fetch(url).then(function (response) {\n if (!response.ok) {\n throw new Error('Failed to fetch site info');\n }\n\n return response.json();\n }).then(function (data) {\n if (_typeof(data) !== 'object' || data === null) {\n throw new Error('Invalid site info data');\n }\n\n return data;\n })[\"catch\"](function () {\n return {};\n });\n }\n }]);\n\n return Configuration;\n}();\nexport var ConfigurationService = new Configuration();","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 6 */\nimport { StringUtils } from \"./StringUtils\";\nexport var DateTimeFormatter = /*#__PURE__*/function () {\n function DateTimeFormatter() {\n _classCallCheck(this, DateTimeFormatter);\n\n this._locale = localStorage.userLocale || \"en\";\n this._dayMonthOptions = {\n month: 'short',\n day: 'numeric'\n };\n this._shortOptions = {\n weekday: 'short',\n year: 'numeric',\n month: 'short',\n day: 'numeric'\n };\n this._timeOptions = {\n hour: 'numeric',\n minute: '2-digit'\n };\n this._weekDays = ['Sundays', 'Mondays', 'Tuesdays', 'Wednesdays', 'Thursdays', 'Fridays', 'Saturdays'];\n }\n /**\r\n * This function is needed to normalize date/time string value without timezone offset specified\r\n * which causes issues in Safari browsers\r\n * @param {*} dateValue - date time string\r\n */\n\n\n _createClass(DateTimeFormatter, [{\n key: \"NormalizeDateTime\",\n value: function NormalizeDateTime(dateValue) {\n if (!dateValue) return null;\n var parts = dateValue.split(/[^0-9]/).map(Number);\n\n var _parts = _slicedToArray(parts, 6),\n year = _parts[0],\n month = _parts[1],\n day = _parts[2],\n hour = _parts[3],\n minute = _parts[4],\n second = _parts[5];\n\n return parts.length >= 3 ? new Date(year, month - 1, day, hour || 0, minute || 0, second || 0) : null;\n }\n }, {\n key: \"ToShortDate\",\n value: function ToShortDate(dateValue) {\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return \"\";\n }\n\n var d = new Date(dateValue);\n return d.toLocaleDateString(this._locale, this._shortOptions);\n }\n }, {\n key: \"ToShortDateTime\",\n value: function ToShortDateTime(dateValue) {\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return \"\";\n }\n\n var d = new Date(dateValue);\n return d.toLocaleDateString(this._locale, this._shortOptions) + ' ' + d.toLocaleTimeString(this._locale, this._timeOptions);\n }\n }, {\n key: \"ToShortTime\",\n value: function ToShortTime(dateValue) {\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return \"\";\n }\n\n var d = new Date(dateValue);\n return d.toLocaleTimeString(this._locale, this._timeOptions);\n }\n }, {\n key: \"ToShortDateRange\",\n value: function ToShortDateRange(startDate, endDate) {\n if (!(startDate = this.NormalizeDateTime(startDate)) || !(endDate = this.NormalizeDateTime(endDate))) {\n return \"\";\n }\n\n startDate = new Date(startDate);\n endDate = new Date(endDate);\n var start = startDate.toLocaleDateString(this._locale, this._shortOptions);\n var end = endDate.toLocaleDateString(this._locale, this._shortOptions);\n return start + ' - ' + end;\n }\n }, {\n key: \"ToShortDayMonthOnlyRange\",\n value: function ToShortDayMonthOnlyRange(startDate, endDate) {\n if (!(startDate = this.NormalizeDateTime(startDate)) || !(endDate = this.NormalizeDateTime(endDate))) {\n return \"\";\n }\n\n startDate = new Date(startDate);\n endDate = new Date(endDate);\n var start = startDate.toLocaleDateString(this._locale, this._dayMonthOptions);\n var end = endDate.toLocaleDateString(this._locale, this._dayMonthOptions);\n return start + ' - ' + end;\n }\n }, {\n key: \"ToShortDateTimeRange\",\n value: function ToShortDateTimeRange(startDate, endDate) {\n if (!(startDate = this.NormalizeDateTime(startDate)) || !(endDate = this.NormalizeDateTime(endDate))) {\n return \"\";\n }\n\n startDate = new Date(startDate);\n endDate = new Date(endDate);\n var start = startDate.toLocaleDateString(this._locale, this._shortOptions);\n var end = endDate.toLocaleDateString(this._locale, this._shortOptions);\n\n if (start === end) {\n return start + ' ' + startDate.toLocaleTimeString(this._locale, this._timeOptions) + ' - ' + endDate.toLocaleTimeString(this._locale, this._timeOptions);\n } else {\n return start + ' ' + startDate.toLocaleTimeString(this._locale, this._timeOptions) + ' - ' + end + ' ' + endDate.toLocaleTimeString(this._locale, this._timeOptions);\n }\n }\n }, {\n key: \"IsInThePast\",\n value: function IsInThePast(dateValue) {\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return false;\n }\n\n return new Date(dateValue) < new Date();\n }\n }, {\n key: \"IsBeforeThisDate\",\n value: function IsBeforeThisDate(dateValue, dateValueToCompare) {\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return false;\n }\n\n if (!(dateValueToCompare = this.NormalizeDateTime(dateValueToCompare))) {\n return false;\n }\n\n return new Date(dateValue) < new Date(dateValueToCompare);\n }\n }, {\n key: \"IsAfterThisDate\",\n value: function IsAfterThisDate(dateValue, dateValueToCompare) {\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return false;\n }\n\n if (!(dateValueToCompare = this.NormalizeDateTime(dateValueToCompare))) {\n return false;\n }\n\n return new Date(dateValue) > new Date(dateValueToCompare);\n }\n }, {\n key: \"GetDayOfWeekFromString\",\n value: function GetDayOfWeekFromString(dayOfWeek) {\n return this._weekDays.indexOf(dayOfWeek);\n }\n }, {\n key: \"GetDayOfWeekAfterThisDate\",\n value: function GetDayOfWeekAfterThisDate(dateValue, dayOfWeek) {\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return false;\n }\n\n var finalDate = new Date(dateValue);\n var currentDayOfWeek = finalDate.getDay();\n var targetDayOfWeek = this.GetDayOfWeekFromString(dayOfWeek);\n\n while (currentDayOfWeek !== targetDayOfWeek) {\n finalDate.setDate(finalDate.getDate() + 1);\n currentDayOfWeek = finalDate.getDay();\n }\n\n return finalDate;\n }\n }, {\n key: \"ToShortDateFormatted\",\n value: function ToShortDateFormatted(dateValue) {\n var standardFormat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (!(dateValue = this.NormalizeDateTime(dateValue))) {\n return false;\n }\n\n var d = dateValue ? new Date(dateValue) : new Date();\n var dd = d.getDate();\n var mm = d.getMonth() + 1;\n var yyyy = d.getFullYear();\n\n if (dd < 10) {\n dd = '0' + dd;\n }\n\n if (mm < 10) {\n mm = '0' + mm;\n }\n\n if (standardFormat === true) {\n return mm + '/' + dd + '/' + yyyy;\n } else {\n return yyyy + '-' + mm + '-' + dd;\n }\n }\n }, {\n key: \"MonthDiff\",\n value: function MonthDiff(a, b) {\n if (a.getDate() < b.getDate()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -this.MonthDiff(b, a);\n } // difference in months\n\n\n var wholeMonthDiff = (b.getFullYear() - a.getFullYear()) * 12 + (b.getMonth() - a.getMonth()); // b is in (anchor - 1 month, anchor + 1 month)\n\n var clonedA = new Date(a);\n var anchor = clonedA.setMonth(clonedA.getMonth() + wholeMonthDiff);\n var anchor2;\n var adjust;\n\n if (b - anchor < 0) {\n var cloned2A = new Date(a);\n anchor2 = cloned2A.setMonth(cloned2A.getMonth() + wholeMonthDiff - 1); // linear across the month\n\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n var _cloned2A = new Date(a);\n\n anchor2 = _cloned2A.setMonth(_cloned2A.getMonth() + wholeMonthDiff + 1); // linear across the month\n\n adjust = (b - anchor) / (anchor2 - anchor);\n } //check for negative zero, return zero if negative zero\n\n\n return Math.floor(wholeMonthDiff + adjust) || 0;\n }\n }, {\n key: \"YearDiff\",\n value: function YearDiff(a, b) {\n return Math.floor(this.MonthDiff(a, b) / 12);\n }\n }]);\n\n return DateTimeFormatter;\n}();","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nexport var UrlUtils = /*#__PURE__*/function () {\n function UrlUtils() {\n _classCallCheck(this, UrlUtils);\n }\n\n _createClass(UrlUtils, null, [{\n key: \"AddQueryStringParams\",\n value: function AddQueryStringParams(url, params) {\n var result = url || \"\";\n\n if (params != null) {\n // let's lose the hash\n if (result.indexOf(\"#\") !== -1) {\n result = result.split(\"#\")[0];\n }\n\n var questionMarkIdx = result.indexOf(\"?\");\n\n if (questionMarkIdx === -1) {\n result += \"?\";\n } else if (questionMarkIdx < result.length - 1) {\n result += \"&\";\n }\n\n result += Object.entries(params).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n return \"\".concat(key, \"=\").concat(value !== null && value !== void 0 ? value : \"\");\n }).join(\"&\");\n }\n\n return result;\n }\n }]);\n\n return UrlUtils;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 6 */\nexport var TextFormatter = /*#__PURE__*/function () {\n function TextFormatter(value) {\n _classCallCheck(this, TextFormatter);\n\n this._value = !!value ? String(value) : \"\";\n }\n /**\r\n * This function is needed to honor line breaks\r\n * @param {*} textValue - string\r\n */\n\n\n _createClass(TextFormatter, [{\n key: \"addLineBreaks\",\n value: function addLineBreaks() {\n return this._value.replace(/(?:\\r\\n|\\r|\\n)/g, \"<br />\");\n }\n }]);\n\n return TextFormatter;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 6 */\nimport { CollapseBuilder } from \"./CollapseBuilder\";\nimport { Configuration } from \"../Shared/Configuration\";\nimport { DateTimeFormatter } from \"./DateTimeFormatter\";\nimport { UrlUtils } from \"../Shared/UrlUtils\";\nimport { TextFormatter } from \"./TextFormatter\";\nexport var CardBuilder = /*#__PURE__*/function () {\n function CardBuilder() {\n _classCallCheck(this, CardBuilder);\n }\n\n _createClass(CardBuilder, null, [{\n key: \"BuildBadge\",\n value: function BuildBadge(isBadge, badgeText) {\n var cardClass = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"mpp-card\";\n\n if (isBadge) {\n return \"<span class=\\\"\".concat(cardClass, \"--badge \").concat(badgeText, \"\\\">\").concat(!!badgeText ? badgeText : \"\", \"</span>\");\n } else {\n return \"\";\n }\n }\n }, {\n key: \"BuildImage\",\n value: function BuildImage(imageUrl, type) {\n var src = imageUrl;\n var style = \"\";\n\n if (imageUrl === null || imageUrl === undefined) {\n src = \"\".concat(new Configuration().GetAppRoot(), \"/Content/icons/icon-\").concat(type, \".svg\");\n style = \"margin:40px;height:80px;width:80px;\";\n }\n\n return \"<img class=\\\"mpp-card--image\\\" src=\\\"\".concat(src, \"\\\" style=\\\"\").concat(style, \"\\\" />\");\n }\n }, {\n key: \"BuildCloudAppDetailsButton\",\n value: function BuildCloudAppDetailsButton(id, targetUrl, btnText) {\n if (!!targetUrl) {\n var finalTargetUrl = \"\".concat(targetUrl).concat(id);\n return \"<a href=\\\"\".concat(finalTargetUrl, \"\\\" target=\\\"_blank\\\" id=\\\"\").concat(id, \"\\\" class=\\\"mppw-btn primary buildDetailsButton\\\">\").concat(btnText, \"</a>\");\n } else {\n return \"\";\n }\n }\n }, {\n key: \"BuildDetailsButton\",\n value: function BuildDetailsButton(id, targetUrl, btnText) {\n return !!targetUrl ? \"<a href=\\\"\".concat(targetUrl, \"\\\" id=\\\"\").concat(id, \"\\\" class=\\\"mppw-btn primary buildDetailsButton\\\">\").concat(btnText, \"</a>\") : \"\";\n }\n }, {\n key: \"BuildButtons\",\n value: function BuildButtons(buttons) {\n return \"<div class=\\\"buttons--container\\\">\\n\\t\\t\\t\".concat(buttons.map(function (button) {\n return \"<button class=\\\"mppw-btn \".concat(button[\"type\"], \"\\\">\").concat(button[\"text\"], \"</button>\");\n }).join(\"\"), \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildText\",\n value: function BuildText(title) {\n var subtitles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var description = arguments.length > 2 ? arguments[2] : undefined;\n return \"<div class=\\\"text--container\\\">\\n\\t\\t\\t<h3 class=\\\"mpp-card--title\\\">\".concat(title, \"</h3>\\n\\t\\t\\t\").concat(subtitles.map(function (subtitle) {\n return \"<h4 class=\\\"mpp-card--subtitle \".concat(subtitle.className, \"\\\">\").concat(subtitle.text, \"</h4>\");\n }).join(\"\"), \"\\n\\t\\t\\t<div class=\\\"mpp-card--description\\\">\").concat(description === null ? \"\" : new TextFormatter(description).addLineBreaks(), \"</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildTextRow\",\n value: function BuildTextRow() {\n var subtitles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return \"<div class=\\\"text--container\\\">\\n\\t\\t\\t\".concat(subtitles.map(function (subtitle) {\n return \"<div class=\\\"mpp-card-row--subtitle \".concat(subtitle.className, \"\\\">\").concat(subtitle.text, \"</div>\");\n }).join(\"\"), \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildProgress\",\n value: function BuildProgress() {\n var header = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"$750 of $1,000 Goal (75%)\";\n var percentage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"75\";\n var description = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"12 installments beginning 05/15/2019\";\n return \"<div class=\\\"progress--container\\\">\\n\\t\\t\\t<h3 class=\\\"progress--subtitle\\\">\".concat(header, \"</h3>\\n\\t\\t\\t<svg class=\\\"mpp-card--progress\\\" width=\\\"100%\\\" height=\\\"15\\\">\\n\\t\\t\\t\\t<defs>\\n\\t\\t\\t\\t\\t<linearGradient id=\\\"gradient\\\">\\n\\t\\t\\t\\t\\t\\t<stop offset=\\\"0%\\\" stop-color=\\\"#1b88b0\\\" />\\n\\t\\t\\t\\t\\t\\t<stop offset=\\\"100%\\\" stop-color=\\\"#1fb5ac\\\" />\\n\\t\\t\\t\\t\\t</linearGradient>\\n\\t\\t\\t\\t</defs>\\n\\t\\t\\t\\t<g>\\n\\t\\t\\t\\t\\t<rect fill=\\\"#efefef\\\" width=\\\"100%\\\" height=\\\"15\\\"></rect>\\n\\t\\t\\t\\t\\t<rect fill=\\\"url(#gradient)\\\" width=\\\"\").concat(percentage, \"%\\\" height=\\\"15\\\"></rect>\\n\\t\\t\\t\\t</g>\\n\\t\\t\\t</svg>\\n\\t\\t\\t<p class=\\\"mpp-card--description\\\">\").concat(description, \"</p>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildProgressRow\",\n value: function BuildProgressRow(header, progressHeader) {\n var percentage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"75\";\n var description = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"12 installments beginning 05/15/2019\";\n return \"<div class=\\\"progress--container\\\">\\n\\t\\t\\t<div class=\\\"progress-row--subtitle\\\">\".concat(header, \"</div>\\n\\t\\t\\t<div class=\\\"progress-row--main\\\">\\n\\t\\t\\t\\t<div class=\\\"progress-row--detail\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"progress-row--detail-label\\\">\\n\\t\\t\\t\\t\\t\\t\").concat(progressHeader, \"\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"progress-row--detail-bar\\\">\\n\\t\\t\\t\\t\\t\\t<svg class=\\\"mpp-card-row--progress\\\" width=\\\"100%\\\" height=\\\"15\\\">\\n\\t\\t\\t\\t\\t\\t\\t<defs>\\n\\t\\t\\t\\t\\t\\t\\t\\t<linearGradient id=\\\"gradient\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<stop offset=\\\"0%\\\" stop-color=\\\"#79B70E\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<stop offset=\\\"100%\\\" stop-color=\\\"#79B70E\\\" />\\n\\t\\t\\t\\t\\t\\t\\t\\t</linearGradient>\\n\\t\\t\\t\\t\\t\\t\\t</defs>\\n\\t\\t\\t\\t\\t\\t\\t<g>\\n\\t\\t\\t\\t\\t\\t\\t\\t<rect fill=\\\"#dddddd\\\" width=\\\"100%\\\" height=\\\"15\\\"></rect>\\n\\t\\t\\t\\t\\t\\t\\t\\t<rect fill=\\\"url(#gradient)\\\" width=\\\"\").concat(percentage, \"%\\\" height=\\\"15\\\"></rect>\\n\\t\\t\\t\\t\\t\\t\\t</g>\\n\\t\\t\\t\\t\\t\\t</svg>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCard\",\n value: function BuildCard(header, body, footer, targetUrl) {\n var isTransparent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n return \"<div class=\\\"mpp-card\\\" onclick=\\\"\".concat(targetUrl ? 'window.location.href=\\'' + targetUrl + '\\'' : \"\", \"\\\">\\n\\t\\t\\t<div class=\\\"mpp-card--header \").concat(isTransparent ? \"mpp-card--transparent\" : \"\", \"\\\">\\n\\t\\t\\t\\t\").concat(header, \"\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"mpp-card--body\\\">\\n\\t\\t\\t\\t\").concat(body, \"\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"mpp-card--footer\\\">\\n\\t\\t\\t\\t\").concat(footer, \"\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCardRow\",\n value: function BuildCardRow(headerBadge, headerImage, campaignName, tripDatesText, body, footer) {\n var CardRowToggle = function CardRowToggle() {\n var itemDown = element.querySelector(\".mpp-card-row--svg-down\");\n var itemUp = element.querySelector(\".mpp-card-row--svg-up\");\n var details = element.querySelector(\".mpp-card-row-transition\");\n var main = element.querySelector(\".mpp-card-row--main\");\n var isHidden = itemDown.classList.contains(\"hidden\");\n\n if (isHidden) {\n itemDown.classList.remove(\"hidden\");\n itemUp.classList.add(\"hidden\");\n details.classList.remove(\"mpp-card-row-transition-expanded\");\n main.classList.remove(\"mpp-card-row-expanded--main\");\n } else {\n itemDown.classList.add(\"hidden\");\n itemUp.classList.remove(\"hidden\");\n details.classList.add(\"mpp-card-row-transition-expanded\");\n main.classList.add(\"mpp-card-row-expanded--main\");\n }\n };\n\n var element = document.createElement(\"div\");\n element.innerHTML = \"<div class=\\\"mpp-card-row\\\">\\n\\t\\t\\t<div class=\\\"mpp-card-row--main\\\">\\n\\t\\t\\t\\t<div class=\\\"mpp-card-row--header\\\">\\n\\t\\t\\t\\t\\t\".concat(headerImage, \"\\n\\t\\t\\t\\t\\t\").concat(headerBadge, \"\\n\\t\\t\\t\\t\\t<div class=\\\"mpp-card-row--details\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-card-row--title\\\">\").concat(campaignName, \"</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-card-row--dates\\\">\").concat(tripDatesText, \"</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<div class=\\\"mpp-card-row--body\\\">\\n\\t\\t\\t\\t\\t\").concat(body, \"\\n\\t\\t\\t\\t\\t<div class=\\\"mpp-card-row--collapsed\\\">\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-card-row--svg-down\\\">\\n\\t\\t\\t\\t\\t\\t\\t<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 448 512\\\">\\n\\t\\t\\t\\t\\t\\t\\t<!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->\\n\\t\\t\\t\\t\\t\\t\\t<path d=\\\"M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0L224 284.5l154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z\\\"/></svg>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-card-row--svg-up hidden\\\">\\n\\t\\t\\t\\t\\t\\t\\t<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 448 512\\\">\\n\\t\\t\\t\\t\\t\\t\\t<!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->\\n\\t\\t\\t\\t\\t\\t\\t<path d=\\\"M241 130.5l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9l-22.7 22.7c-9.4 9.4-24.5 9.4-33.9 0L224 227.5 69.3 381.5c-9.4 9.3-24.5 9.3-33.9 0l-22.7-22.7c-9.4-9.4-9.4-24.6 0-33.9L207 130.5c9.4-9.4 24.6-9.4 33.9 0z\\\"/></svg>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"mpp-card-row--footer\\\">\\n\\t\\t\\t\\t<div class=\\\"mpp-card-row-transition\\\">\\n\\t\\t\\t\\t\\t<div class=\\\"mpp-card-row-transition-div\\\">\\n\\t\\t\\t\\t\\t\\t\").concat(footer, \"\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n element.querySelector(\".mpp-card-row--collapsed\").addEventListener(\"click\", function () {\n return CardRowToggle();\n });\n return element;\n }\n }, {\n key: \"BuildCardRowFooter\",\n value: function BuildCardRowFooter(i, imageUrl, details) {\n return \"<div class=\\\"mpp-card-row-details\\\">\\n\\t\\t\\t\".concat(details, \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildUrl\",\n value: function BuildUrl(targetUrl, id) {\n return !!targetUrl ? UrlUtils.AddQueryStringParams(targetUrl, {\n id: id\n }) : null;\n }\n }, {\n key: \"BuildCheckbox\",\n value: function BuildCheckbox(uniqueId, isChecked) {\n var cardClass = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"mpp-card\";\n return \"<label class=\\\"\".concat(cardClass, \"-multiselect--checkbox\\\">\\n\\t\\t\\t<input type=\\\"checkbox\\\" id=\\\"\").concat(uniqueId, \"\\\" name=\\\"publications\\\" value=\\\"\").concat(uniqueId, \"\\\" \").concat(isChecked ? \"checked\" : \"\", \" />\\n\\t\\t\\t<span></span>\\n\\t\\t</label>\");\n }\n }, {\n key: \"BuildSubscriptionCheckbox\",\n value: function BuildSubscriptionCheckbox(uniqueId, isChecked) {\n var cardClass = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"mpp-card\";\n return \"<label class=\\\"\".concat(cardClass, \"-multiselect--checkbox\\\">\\n\\t\\t\\t<input type=\\\"checkbox\\\" id=\\\"\").concat(uniqueId, \"\\\" name=\\\"bulkemailoptout\\\" value=\\\"\").concat(isChecked, \"\\\" \").concat(isChecked ? \"checked\" : \"\", \" />\\n\\t\\t\\t<span style=\\\"float: left;\\\"></span>\\n\\t\\t</label>\");\n }\n }, {\n key: \"BuildPills\",\n value: function BuildPills() {\n var labels = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var cardClass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"mpp-card\";\n labels = labels.filter(function (i) {\n return i;\n });\n return \"<ul class=\\\"\".concat(cardClass, \"--labels\\\">\\n\\t\\t\\t\").concat(labels.map(function (label) {\n return \"<li class=\\\"mpp-card--label\\\">\".concat(label, \"</li>\");\n }).join(\"\"), \"\\n\\t\\t</ul>\");\n }\n }, {\n key: \"BuildMyInvoicesSubtitlesArr\",\n value: function BuildMyInvoicesSubtitlesArr() {\n var invoiceDate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var invoiceTotal = arguments.length > 1 ? arguments[1] : undefined;\n var invoiceStatus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var subtitlesArr = [];\n\n if (!!invoiceDate) {\n subtitlesArr.push({\n className: \"invoice-date\",\n text: \"\".concat(new DateTimeFormatter().ToShortDateFormatted(invoiceDate, true))\n });\n }\n\n if (!!invoiceTotal) {\n var total = \"$\".concat(Number(invoiceTotal).toFixed(2).toLocaleString());\n subtitlesArr.push({\n className: \"invoice-total\",\n text: total\n });\n }\n\n if (!!invoiceStatus) {\n subtitlesArr.push({\n className: \"invoice-status\",\n text: \"\".concat(invoiceStatus)\n });\n }\n\n return subtitlesArr;\n }\n }, {\n key: \"BuildGroupSubtitlesArr\",\n value: function BuildGroupSubtitlesArr() {\n var location = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var meetingDay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n var meetingTime = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var startDate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"\";\n var alreadyMeetingText = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : \"Already Meeting\";\n var capacityTitle = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : \"\";\n var capacityLabel = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : \"\";\n var dateTimeFormatter = new DateTimeFormatter();\n var subtitlesArr = [];\n if (!!location) subtitlesArr.push({\n className: \"group-location\",\n text: location\n });\n\n if (!!meetingDay) {\n if (meetingDay.length) subtitlesArr.push({\n className: \"group-meeting-day\",\n text: \"\".concat(meetingDay, \" \").concat(meetingTime !== null ? \"@ \".concat(dateTimeFormatter.ToShortTime(meetingTime)) : \"\")\n });\n }\n\n if (!!capacityLabel) {\n subtitlesArr.push({\n className: \"group-capacity\",\n text: capacityTitle + \": \" + capacityLabel\n });\n }\n\n if (!!startDate) {\n if (startDate.length) subtitlesArr.push({\n className: \"group-start-date\",\n text: \"\".concat(dateTimeFormatter.IsInThePast(startDate) ? alreadyMeetingText : \"Starts: \".concat(dateTimeFormatter.ToShortDate(startDate)))\n });\n }\n\n return subtitlesArr;\n }\n }, {\n key: \"BuildOpportunitySubtitlesArr\",\n value: function BuildOpportunitySubtitlesArr() {\n var location = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var meetingDay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n var startDate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var subtitlesArr = []; // need logic to prioritize 'Location', 'Location Name or Congregation Name', 'Congregation Name from Program'\n // location is coming in as Congregation Name from Program\n\n subtitlesArr.push({\n className: \"opportunity-location\",\n text: location\n });\n subtitlesArr.push({\n className: \"opportunity-start-date\",\n text: startDate === null ? meetingDay : \"\".concat(new DateTimeFormatter().ToShortDateTime(startDate))\n });\n return subtitlesArr;\n }\n }, {\n key: \"BuildEventSubtitlesArr\",\n value: function BuildEventSubtitlesArr() {\n var location = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var startDate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n var endDate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var dateTimeFormatter = new DateTimeFormatter();\n var subtitlesArr = [];\n subtitlesArr.push({\n className: \"event-date-range\",\n text: dateTimeFormatter.ToShortDateTimeRange(startDate, endDate)\n });\n\n if (location) {\n subtitlesArr.push({\n className: \"event-location\",\n text: location\n });\n }\n\n return subtitlesArr;\n }\n }, {\n key: \"BuildMultiSelectCard\",\n value: function BuildMultiSelectCard(index, imageUrl, title, publicationId, description, subscribed, noDescriptionText, showDescriptionText, hideDescriptionText) {\n return \"<div class=\\\"mpp-card-multiselect card-\".concat(index, \"\\\">\\n\\t\\t\\t<img class=\\\"mpp-card-multiselect--image \").concat(imageUrl === null ? \"mpp-card-multiselect--image-placeholder\" : \"\", \"\\\" src=\\\"\").concat(imageUrl === null ? \"\".concat(new Configuration().GetAppRoot(), \"/Content/icons/icon-email.svg\") : imageUrl, \"\\\" />\\n\\t\\t\\t<div class=\\\"mpp-card-multiselect--body\\\">\\n\\t\\t\\t\\t<div class=\\\"mpp-card-multiselect--text-wrapper\\\">\\n\\t\\t\\t\\t\\t<h3 class=\\\"mpp-card-multiselect--title\\\">\").concat(title, \"</h3>\\n\\t\\t\\t\\t\\t\").concat(CollapseBuilder.BuildCollapse(publicationId, description, noDescriptionText, showDescriptionText, hideDescriptionText), \"\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\").concat(this.BuildCheckbox(publicationId, subscribed), \"\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }]);\n\n return CardBuilder;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar privateMethods = {\n getUrlParameter: function getUrlParameter(params, name) {\n name = name.replace(/[\\[]/, '\\\\[').replace(/[\\]]/, '\\\\]');\n var regex = new RegExp('[\\\\?&]' + name + '=([^&#]*)');\n var results = regex.exec(params);\n return results === null ? '' : decodeURIComponent(results[1].replace(/\\+/g, ' '));\n }\n};\nexport var URLSearchParameters = /*#__PURE__*/function () {\n /**\r\n * @return {URLSearchParameters}\r\n */\n function URLSearchParameters(params) {\n _classCallCheck(this, URLSearchParameters);\n\n this._params = params;\n if (URLSearchParams) this._urlSearchParams = new URLSearchParams(this._params);\n return this;\n }\n\n _createClass(URLSearchParameters, [{\n key: \"get\",\n value: function get(name) {\n if (this._params === \"\") return \"\";\n return URLSearchParams ? this._urlSearchParams.get(name) : privateMethods.getUrlParameter.call(this._params, name);\n }\n }, {\n key: \"has\",\n value: function has(name) {\n if (this._params === \"\") return false;\n\n if (URLSearchParams) {\n return this._urlSearchParams.has(name);\n } else {\n var param = privateMethods.getUrlParameter.call(this._params, name);\n return param !== undefined;\n }\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return this._params ? this._params.substr(1) : \"\";\n }\n }, {\n key: \"isValid\",\n value: function isValid() {\n return this._params !== \"\";\n }\n }]);\n\n return URLSearchParameters;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { URLSearchParameters } from \"../Shared/URLSearchParameters\";\nexport var CommonBuilder = /*#__PURE__*/function () {\n function CommonBuilder() {\n _classCallCheck(this, CommonBuilder);\n }\n\n _createClass(CommonBuilder, null, [{\n key: \"GetId\",\n value: function GetId() {\n var urlParams = new URLSearchParameters(window.location.search);\n var id = urlParams.get(\"id\") || this.ParseFromPath(urlParams.toString());\n return +id;\n }\n }, {\n key: \"GetInvoiceId\",\n value: function GetInvoiceId() {\n var urlParams = new URLSearchParameters(window.location.search);\n var id = urlParams.get(\"invoiceid\");\n return id;\n }\n }, {\n key: \"ParseFromPath\",\n value: function ParseFromPath(queryString) {\n //let locationWithoutQueryString = location.href.replace(`?${queryString}`, '');\n console.log('location.href', location.href);\n var locationWithoutQueryString = location.href.split(\"?\")[0];\n var urlArray = locationWithoutQueryString.split('/'); //let id = location.href.endsWith(\"/\") ? urlArray[urlArray.length - 2] : urlArray[urlArray.length - 1];\n\n var id = urlArray[urlArray.length - 1] != \"\" ? urlArray[urlArray.length - 1] : urlArray[urlArray.length - 2];\n return +id;\n }\n }, {\n key: \"isMobile\",\n value: function isMobile() {\n var match = window.matchMedia || window.msMatchMedia;\n\n if (match) {\n var mq = match(\"(pointer:coarse)\");\n return mq.matches;\n }\n\n return false;\n }\n }]);\n\n return CommonBuilder;\n}();","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n/*jshint esversion: 6 */\nimport { Configuration } from \"./Configuration\";\nexport var ComponentBase = /*#__PURE__*/function (_HTMLElement) {\n _inherits(ComponentBase, _HTMLElement);\n\n var _super = _createSuper(ComponentBase);\n\n function ComponentBase() {\n var _this;\n\n _classCallCheck(this, ComponentBase);\n\n _this = _super.call(this);\n _this._baseRoot = _this.attachShadow({\n mode: \"open\"\n });\n _this._root = document.createElement(\"div\");\n\n _this._baseRoot.appendChild(_this._root);\n\n _this._Init();\n\n return _this;\n }\n\n _createClass(ComponentBase, [{\n key: \"_Init\",\n value: function _Init() {\n this.setStyleFiles();\n }\n }, {\n key: \"setStyleFiles\",\n value: function () {\n var _setStyleFiles = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this2 = this;\n\n var config, customCss;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.customCssUrl = this.getAttribute(\"customCss\");\n config = new Configuration();\n this._appRoot = config.GetAppRoot();\n\n if (this._appRoot) {\n _context.next = 5;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 5:\n _context.next = 7;\n return config.GetCustomStyles().then(function (customCssFiles) {\n customCssFiles.forEach(function (cssFile) {\n var customCss = document.createElement('link');\n customCss.rel = \"stylesheet\";\n customCss.type = \"text/css\";\n customCss.media = \"screen\";\n customCss.href = cssFile;\n\n _this2._baseRoot.appendChild(customCss);\n });\n });\n\n case 7:\n if (!!this.customCssUrl) {\n customCss = document.createElement('link');\n customCss.rel = \"stylesheet\";\n customCss.type = \"text/css\";\n customCss.media = \"screen\";\n customCss.href = this.customCssUrl;\n\n this._baseRoot.appendChild(customCss);\n }\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function setStyleFiles() {\n return _setStyleFiles.apply(this, arguments);\n }\n\n return setStyleFiles;\n }()\n }], [{\n key: \"registerComponent\",\n value: function registerComponent(customElementName, componentType) {\n window.customElements.define(customElementName, componentType);\n Array.from(document.getElementsByClassName(customElementName + \"-widget\")).forEach(function (el) {\n var myWidget = new componentType();\n el.getAttributeNames().forEach(function (attr) {\n if (attr === \"class\") {\n return;\n }\n\n myWidget.setAttribute(attr, el.getAttribute(attr));\n });\n el.appendChild(myWidget);\n });\n }\n }]);\n\n return ComponentBase;\n}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { ConfigurationService } from '../Shared/Configuration';\nexport var FormFieldBuilder = /*#__PURE__*/function () {\n function FormFieldBuilder() {\n _classCallCheck(this, FormFieldBuilder);\n\n this._config = ConfigurationService;\n this._appRoot = this._config.GetAppRoot();\n }\n\n _createClass(FormFieldBuilder, [{\n key: \"BuildHiddenInput\",\n value: function BuildHiddenInput() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n if (value === null || value === undefined) {\n value = '';\n }\n\n return \"<input type=\\\"hidden\\\" id=\\\"\".concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" value=\\\"\").concat(value, \"\\\" />\");\n }\n }, {\n key: \"BuildTextInput\",\n value: function BuildTextInput() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var requiredMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var value = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n var isHidden = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n var dependsOnId = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var dependsOnValue = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n var maxLength = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 250;\n var withCounter = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : false;\n var altLabel = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : '';\n\n if (value === null || value === undefined) {\n value = '';\n }\n\n if (!!altLabel) {\n return \"<div \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \" class=\\\"mppw-form-field mpp-mt-10 \").concat(value.length ? \"mppw-form-field__static-container\" : \"\", \"\\\">\\n\\t\\t\\t<label for=\\\"\").concat(name, \"\\\" id=\\\"\").concat(name + \"ForLabel\", \"\\\">\").concat(this._RenderAltLabel(altLabel, isRequired), \":</label>\\n\\t\\t\\t<input type=\\\"text\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" \").concat(value ? 'value=' + value : '', \" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required data-required-message=\\\"\".concat(requiredMessage, \"\\\"\") : '', \" maxlength=\\\"\").concat(maxLength, \"\\\" minlength=\\\"0\\\" \").concat(withCounter === true ? \"data-input-text-counter=true\" : \"\", \" />\\n\\t\\t\\t\").concat(withCounter === true ? \"<div class=\\\"mppw-textarea-counter\\\"></div>\" : '', \"\\n\\t\\t</div>\");\n } else {\n return \"<div \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \" class=\\\"mppw-form-field mpp-mt-10 \").concat(value.length ? \"mppw-form-field__static-container\" : \"\", \"\\\">\\n\\t\\t\\t<input type=\\\"text\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" \").concat(value ? 'value=' + value : '', \" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required data-required-message=\\\"\".concat(requiredMessage, \"\\\"\") : '', \" maxlength=\\\"\").concat(maxLength, \"\\\" minlength=\\\"0\\\" \").concat(withCounter === true ? \"data-input-text-counter=true\" : \"\", \" />\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"\").concat(name, \"\\\" id=\\\"\").concat(name + \"ForLabel\", \"\\\" >\").concat(label).concat(isRequired ? \"*\" : \"\", \":</label>\\n\\t\\t\\t\").concat(withCounter === true ? \"<div class=\\\"mppw-textarea-counter\\\"></div>\" : '', \"\\n\\t\\t</div>\");\n }\n }\n }, {\n key: \"BuildFileUploader\",\n value: function BuildFileUploader() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Browse';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var requiredMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var fileUploadHtml = \"\\n\\t\\t\\t<div class=\\\"mppw-form-field mppw-form-field--file mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t\\t<div class=\\\"mppw-upload-droparea\\\" id=\\\"mppw-upload-droparea-\").concat(name, \"\\\">\\n\\t\\t\\t <div class=\\\"mppw-upload-form\\\">\\n\\t\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" style=\\\"text-align: left; font-size: 12px; top: 4px; left: 10px;\\\" for=\\\"\").concat(name, \"\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \":</label>\\n\\t\\t\\t\\t<img class=\\\"mppw-upload-image\\\" src=\\\"\").concat(this._appRoot, \"/Content/icons/cloud-upload.png\\\" />\\n\\t\\t\\t\\t<br>\\n\\t\\t\\t\\t<h3 class=\\\"mppw-upload-text\\\">Drop files here</h3>\\n\\t\\t\\t\\t<h5 class=\\\"mppw-upload-text\\\">or</h5>\\n\\t\\t\\t\\t<input type=\\\"file\\\" class=\\\"mppw-upload-file\\\" name=\\\"\").concat(name, \"\\\" id=\\\"mppw-upload-file-\").concat(name, \"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required data-required-message=\\\"\".concat(requiredMessage, \"\\\"\") : '', \" multiple>\\n\\t\\t\\t\\t <label class=\\\"submit--btn mppw-upload-text\\\" for=\\\"mppw-upload-file-\").concat(name, \"\\\">\\n\\t\\t\\t\\t\\t<h3 class=\\\"mppw-upload-text\\\">Click to select files</h3>\\n\\t\\t\\t\\t</label>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"mppw-upload-gallery\\\" id=\\\"mppw-upload-gallery-\").concat(name, \"\\\" />\\n\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t\");\n return fileUploadHtml;\n }\n }, {\n key: \"BuildDateInput\",\n value: function BuildDateInput() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var invalidMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var min = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '1900-01-01';\n var max = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var value = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var isHidden = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;\n var dependsOnId = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';\n var dependsOnValue = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : '';\n return \"<div class=\\\"mppw-form-field mpp-mt-10 \".concat(value.length ? \"mppw-form-field__static-container\" : \"\", \"\\\" \").concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<input type=\\\"date\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" value=\\\"\").concat(value, \"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" data-invalid-message=\\\"\").concat(invalidMessage, \"\\\" min=\\\"\").concat(min, \"\\\" max=\\\"\").concat(max, \"\\\" />\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"\").concat(name, \"\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \":</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildPhoneInput\",\n value: function BuildPhoneInput() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var requiredMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var value = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n var requireIfBlank = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 'email';\n return \"<div class=\\\"mppw-form-field mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<input type=\\\"tel\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" \").concat(value ? 'value=' + value : '', \" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required data-require-if-blank=\\\"\".concat(requireIfBlank, \"\\\" data-invalid-message=\\\"Must be in format xxx-xxx-xxxx or begin with a +\\\" data-required-message=\\\"\").concat(requiredMessage, \"\\\"\") : '', \" maxlength=\\\"50\\\" />\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"\").concat(name, \"\\\" id=\\\"\").concat(name + \"ForLabel\", \"\\\" >\").concat(label).concat(isRequired ? \"*\" : \"\", \":</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildEmailInput\",\n value: function BuildEmailInput() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var requiredMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var value = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n var isHidden = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n var dependsOnId = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var dependsOnValue = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n var requireIfBlank = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 'mobilePhone';\n return \"<div class=\\\"mppw-form-field mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<input type=\\\"email\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" \").concat(value ? 'value=' + value : '', \" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required data-require-if-blank=\\\"\".concat(requireIfBlank, \"\\\" data-invalid-message=\\\"Email address is invalid\\\" data-required-message=\\\"\").concat(requiredMessage, \"\\\"\") : '', \" />\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"\").concat(name, \"\\\" id=\\\"\").concat(name + \"ForLabel\", \"\\\" >\").concat(label).concat(isRequired ? \"*\" : \"\", \":</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildSelect\",\n value: function BuildSelect() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<select id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" value=\\\"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" >\\n\\t\\t\\t\\t\").concat(options.map(function (option, i) {\n return \"<option value=\\\"\".concat(i + 1, \"\\\">\").concat(option, \"</option>\");\n }).join(''), \"\\n\\t\\t\\t</select>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">Select \").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCountrySelect\",\n value: function BuildCountrySelect() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<select id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" value=\\\"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" >\\n\\t\\t\\t\\t\").concat(options.map(function (option, i) {\n return \"<option value=\\\"\".concat(option.id, \"\\\">\").concat(option.value, \"</option>\");\n }).join(''), \"\\n\\t\\t\\t</select>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">Select \").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCheckbox\",\n value: function BuildCheckbox() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var isHidden = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var dependsOnId = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n var dependsOnValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<div id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" value=\\\"\\\">\\n\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t<label>I accept the <u>\").concat(label, \"</u></label>\\n\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" name=\\\"\").concat(name, \"Check\\\" id=\\\"\").concat(name, \"Check\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" value=\\\"true\\\" />\\n\\t\\t\\t\\t\\t<span class=\\\"mppw-checkbox\\\"></span>\\n\\t\\t\\t\\t</label>\\n\\t\\t\\t</div>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCheckboxHousehold\",\n value: function BuildCheckboxHousehold() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isHidden = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var dependsOnId = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n var dependsOnValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-household--checkbox-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<div id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mpp-household--checkbox\\\" value=\\\"\\\">\\n\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t<label>\").concat(label, \"</label>\\n\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" name=\\\"\").concat(name, \"Check\\\" id=\\\"\").concat(name, \"Check\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" value=\\\"true\\\" />\\n\\t\\t\\t\\t\\t<span class=\\\"mppw-checkbox\\\"></span>\\n\\t\\t\\t\\t</label>\\n\\t\\t\\t</div>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildRadio\",\n value: function BuildRadio() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<div id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" value=\\\"\\\">\\n\\t\\t\\t\\t\").concat(options.map(function (option) {\n return \"<label>\\n\\t\\t\\t\\t\\t\\t<label>\".concat(option, \"</label>\\n\\t\\t\\t\\t\\t\\t<input type=\\\"radio\\\" id=\\\"\").concat(name, \"HRadio\\\" name=\\\"\").concat(name, \"HRadio\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? 'required' : '', \" value=\\\"\").concat(option, \"\\\" />\\n\\t\\t\\t\\t\\t\\t<span class=\\\"mppw-radio\\\"></span>\\n\\t\\t\\t\\t\\t</label>\");\n }).join(''), \"\\n\\t\\t\\t</div>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildVerticalRadio\",\n value: function BuildVerticalRadio() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<div id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" value=\\\"\\\">\\n\\t\\t\\t\\t\").concat(options.map(function (option) {\n return \"<label class=\\\"mppw-form-field__vertical-radio\\\">\\n\\t\\t\\t\\t\\t\\t<label>\".concat(option, \"</label>\\n\\t\\t\\t\\t\\t\\t<input type=\\\"radio\\\" id=\\\"\").concat(name, \"VRadio\\\" name=\\\"\").concat(name, \"VRadio\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? 'required' : '', \" value=\\\"\").concat(option, \"\\\" />\\n\\t\\t\\t\\t\\t\\t<span class=\\\"mppw-radio__vertical\\\"></span>\\n\\t\\t\\t\\t\\t</label>\");\n }).join(''), \"\\n\\t\\t\\t</div>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">\").concat(label).concat(isRequired ? '*' : '', \"</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildTextarea\",\n value: function BuildTextarea() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var withCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n var maxLength = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 500;\n var isHidden = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n var dependsOnId = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var dependsOnValue = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n var altLabel = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';\n\n if (!!altLabel) {\n return \"<div class=\\\"mppw-form-field mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<label for=\\\"messageText\\\">\").concat(this._RenderAltLabel(altLabel, isRequired), \":</label>\\n\\t\\t\\t<textarea id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field__control__textarea\\\" value=\\\"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" maxlength=\\\"\").concat(maxLength, \"\\\" minlength=\\\"0\\\"></textarea>\\n\\t\\t\\t\").concat(withCounter ? \"<div class=\\\"mppw-textarea-counter\\\"></div>\" : '', \"\\n\\t\\t</div>\");\n } else {\n return \"<div class=\\\"mppw-form-field mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<textarea id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field__control__textarea\\\" value=\\\"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" maxlength=\\\"\").concat(maxLength, \"\\\" minlength=\\\"0\\\"></textarea>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"messageText\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \":</label>\\n\\t\\t\\t\").concat(withCounter ? \"<div class=\\\"mppw-textarea-counter\\\"></div>\" : '', \"\\n\\t\\t</div>\");\n }\n }\n }, {\n key: \"BuildRow\",\n value: function BuildRow() {\n for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n params[_key] = arguments[_key];\n }\n\n params = params.filter(Boolean);\n return \"<div class=\\\"mpp-household--form-row\\\">\\n\\t\\t\\t\".concat(params.map(function (param) {\n return \"\".concat(param);\n }).join(''), \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildToggle\",\n value: function BuildToggle(id, label) {\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var checked = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n return \"<div class=\\\"mppw-form-field mpp-toggle mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(id, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<input class=\\\"toggle--input\\\" id=\\\"\").concat(id, \"\\\" type=\\\"checkbox\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(checked ? 'checked' : '', \">\\n\\t\\t\\t<label class=\\\"toggle--label\\\" for=\\\"\").concat(id, \"\\\"></label>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t\\t<span class=\\\"mpp-toggle--label\\\">\").concat(label, \"</span>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildParagraph\",\n value: function BuildParagraph() {\n var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var isHidden = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var dependsOnId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n var dependsOnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var id = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n return \"<div class=\\\"mppw-form-field mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(id, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t\\t<p id=\\\"\").concat(id, \"\\\">\").concat(text, \"</p>\\n\\t\\t\\t\\t</div>\");\n } /// Custom Form Inputs\n\n }, {\n key: \"BuildCustomFileUploader\",\n value: function BuildCustomFileUploader() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Browse';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var requiredMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var altLabel = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n var fileAltUploadHtml = \"\\n\\t\\t\\t<div class=\\\"mppw-form-field-alt mppw-form-field--file mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t\\t<label class=\\\"mppw-form-field__alt-label mppw-form-field_upload-label\\\" for=\\\"\").concat(name, \"\\\">\").concat(this._RenderAltLabel(altLabel || label, isRequired), \":</label>\\n\\t\\t\\t\\t<div class=\\\"mppw-upload-droparea\\\" id=\\\"mppw-upload-droparea-\").concat(name, \"\\\" style=\\\"margin-bottom: 1rem;\\\">\\n\\t\\t\\t\\t<label class=\\\"submit--btn mppw-upload-text mppw-clickable-area-alt\\\" for=\\\"mppw-upload-file-\").concat(name, \"\\\"></label>\\n\\t\\t\\t <div class=\\\"mppw-upload-form\\\">\\n\\t\\t\\t\\t<img class=\\\"mppw-upload-image\\\" src=\\\"\").concat(this._appRoot, \"/Content/icons/cloud-upload.png\\\" />\\n\\t\\t\\t\\t<h3 class=\\\"mppw-upload-text\\\">Drop a file here</h3>\\n\\t\\t\\t\\t<h5 class=\\\"mppw-upload-text\\\">or</h5>\\n\\t\\t\\t\\t<input type=\\\"file\\\" class=\\\"mppw-upload-file\\\" name=\\\"\").concat(name, \"\\\" id=\\\"mppw-upload-file-\").concat(name, \"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required data-required-message=\\\"\".concat(requiredMessage, \"\\\"\") : '', \" multiple>\\n\\t\\t\\t\\t<h3 class=\\\"mppw-upload-text\\\">Click to select a file</h3>\\n\\t\\t\\t\\t<div class=\\\"mppw-upload-text-only-accept\\\">\\n\\t\\t\\t\\t\\tOnly accept .pdf, .png, .gif, .jpg, .jpeg, .jfif, .pjpeg, .pjp, .avif\\n\\t\\t\\t\\t\\t<br />\\n\\t\\t\\t\\t\\tAnd a max size of 20MB for a file.\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<label class=\\\"mppw-invalid-file-type-label\\\" id=\\\"mppw-invalid-file-type-label-\").concat(name, \"\\\" ></label/>\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"mppw-upload-gallery\\\" id=\\\"mppw-upload-gallery-\").concat(name, \"\\\" />\\n\\t\\t\\t</div>\\n\\t\\t\\t</div>\\n\\t\\t\\t\");\n return fileAltUploadHtml;\n }\n }, {\n key: \"BuildCustomDateInput\",\n value: function BuildCustomDateInput() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var invalidMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var min = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '1900-01-01';\n var max = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var value = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : ' ';\n var isHidden = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;\n var dependsOnId = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';\n var dependsOnValue = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : '';\n var altLabel = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : '';\n return \"<div class=\\\"mppw-form-field-alt mpp-mt-10 custom-date-input mpp-customform-col-12 \".concat(value.length ? \"mppw-form-field__static-container\" : \"\", \"\\\" \").concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<label class=\\\"mppw-form-field__alt-label mppw-blue\\\" for=\\\"\").concat(name, \"\\\">\").concat(this._RenderAltLabel(altLabel || label, isRequired), \"</label>\\n\\t\\t\\t<input type=\\\"date\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field_alt-control\\\" \").concat(value ? 'value=' + value : '', \" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" data-invalid-message=\\\"\").concat(invalidMessage, \"\\\" min=\\\"\").concat(min, \"\\\" max=\\\"\").concat(max, \"\\\" />\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomTextarea\",\n value: function BuildCustomTextarea() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var withCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n var maxLength = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 500;\n var isHidden = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n var dependsOnId = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var dependsOnValue = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n var altLabel = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : '';\n return \"<div class=\\\"mppw-form-field-alt mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<label for=\\\"messageText\\\" class=\\\"mppw-form-field__alt-label mppw-blue\\\">\").concat(this._RenderAltLabel(altLabel || label, isRequired), \"</label>\\n\\t\\t\\t<textarea id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field_alt-control mppw-form-field__control__textarea\\\" value=\\\" \\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" maxlength=\\\"\").concat(maxLength, \"\\\" minlength=\\\"0\\\"></textarea>\\n\\t\\t\\t\").concat(withCounter ? \"<div class=\\\"mppw-textarea-counter\\\"></div>\" : '', \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomParagraph\",\n value: function BuildCustomParagraph() {\n var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var isHidden = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var dependsOnId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n var dependsOnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var id = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n return \"<div class=\\\"mppw-form-field mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(id, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t\\t<p id=\\\"\").concat(id, \"\\\" class=\\\"mppw-form-field_instruction_font\\\">\").concat(text, \"</p>\\n\\t\\t\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomTextInput\",\n value: function BuildCustomTextInput() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var requiredMessage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var value = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n var isHidden = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n var dependsOnId = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var dependsOnValue = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n var maxLength = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 250;\n var withCounter = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : false;\n var altLabel = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : '';\n\n if (value === null || value === undefined) {\n value = '';\n }\n\n return \"<div \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \" class=\\\"mppw-form-field-alt mpp-mt-10 \").concat(value.length ? \"mppw-form-field__static-container\" : \"\", \"\\\">\\n\\t\\t\\t<label for=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__alt-label mppw-blue\\\">\").concat(this._RenderAltLabel(altLabel || label, isRequired), \"</label>\\n\\t\\t\\t<input type=\\\"text\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field_alt-control\\\" value=\\\"\").concat(value, \"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required data-required-message=\\\"\".concat(requiredMessage, \"\\\"\") : '', \" maxlength=\\\"\").concat(maxLength, \"\\\" minlength=\\\"0\\\" \").concat(withCounter === true ? \"data-input-text-counter=true\" : \"\", \" />\\n\\t\\t\\t\").concat(withCounter === true ? \"<div class=\\\"mppw-textarea-counter\\\"></div>\" : '', \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomSelect\",\n value: function BuildCustomSelect() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var altLabel = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n return \"<div class=\\\"mppw-form-field-alt mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<label class=\\\"mppw-form-field__alt-label mppw-blue\\\">\").concat(this._RenderAltLabel(altLabel || label, isRequired), \"</label>\\n\\t\\t\\t<select id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field_alt-control\\\" value=\\\" \\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" >\\n\\t\\t\\t\\t<option value=\\\"\\\">-- Select --</option>\\n\\t\\t\\t\\t\").concat(options.map(function (option) {\n option = option.replaceAll('\"', '"');\n return \"<option value=\\\"\".concat(option, \"\\\">\").concat(option, \"</option>\");\n }).join(''), \"\\n\\t\\t\\t</select>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomFormSelect\",\n value: function BuildCustomFormSelect() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<select id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control\\\" value=\\\" \\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" >\\n\\t\\t\\t\\t\").concat(options.map(function (option) {\n return \"<option value=\\\"\".concat(option.id, \"\\\">\").concat(option.value, \"</option>\");\n }).join(''), \"\\n\\t\\t\\t</select>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomHorizontalRadio\",\n value: function BuildCustomHorizontalRadio() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var altLabel = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n return \"<div class=\\\"mppw-form-field-alt mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<label class=\\\"mppw-form-field__alt-label mppw-blue\\\">\").concat(this._RenderAltLabel(altLabel || label, isRequired), \"</label>\\n\\t\\t\\t<div id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field_alt-control\\\" value=\\\" \\\">\\n\\t\\t\\t\\t\").concat(options.map(function (option) {\n option = option.replaceAll('\"', '"');\n return \"<label>\\n\\t\\t\\t\\t\\t\\t<span>\".concat(option, \"</span>\\n\\t\\t\\t\\t\\t\\t<input type=\\\"radio\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? 'required' : '', \" value=\\\"\").concat(option, \"\\\" />\\n\\t\\t\\t\\t\\t\\t<span class=\\\"mppw-radio\\\"></span>\\n\\t\\t\\t\\t\\t</label>\");\n }).join(''), \"\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomVerticalRadio\",\n value: function BuildCustomVerticalRadio() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];\n var isHidden = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var dependsOnId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n var dependsOnValue = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';\n var altLabel = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';\n return \"<div class=\\\"mppw-form-field-alt mppw-form-field__static-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<label class=\\\"mppw-form-field__alt-label mppw-blue\\\">\").concat(this._RenderAltLabel(altLabel || label, isRequired), \"</label>\\n\\t\\t\\t<div id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mppw-form-field_alt-control\\\" value=\\\" \\\">\\n\\t\\t\\t\\t\").concat(options.map(function (option) {\n option = option.replaceAll('\"', '"');\n return \"<label class=\\\"mppw-form-field__vertical-radio\\\">\\n\\t\\t\\t\\t\\t\\t<span>\".concat(option, \"</span>\\n\\t\\t\\t\\t\\t\\t<input type=\\\"radio\\\" id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? 'required' : '', \" value=\\\"\").concat(option, \"\\\" />\\n\\t\\t\\t\\t\\t\\t<span class=\\\"mppw-radio__vertical\\\"></span>\\n\\t\\t\\t\\t\\t</label>\");\n }).join(''), \"\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildCustomCheckbox\",\n value: function BuildCustomCheckbox() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var isRequired = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isHidden = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var dependsOnId = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';\n var dependsOnValue = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';\n return \"<div class=\\\"mppw-form-field mppw-form-field__static-container mpp-household--checkbox-container mpp-mt-10\\\" \".concat(dependsOnId ? 'data-depends-on=' + dependsOnId : '', \" data-id=\\\"\").concat(name, \"\\\" data-depends-on-value=\\\"\").concat(dependsOnValue, \"\\\" \").concat(isHidden ? 'style=\"display: none;\"' : '', \">\\n\\t\\t\\t<div id=\\\"\").concat(name, \"\\\" name=\\\"\").concat(name, \"\\\" class=\\\"mppw-form-field__control mpp-household--checkbox\\\" value=\\\"\\\">\\n\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t<label class=\\\"mppw-form-field_instruction_font\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" name=\\\"\").concat(name, \"\\\" id=\\\"\").concat(name, \"\\\" \").concat(isHidden ? 'disabled=\"disabled\"' : '', \" \").concat(isRequired ? \"required\" : '', \" value=\\\"Yes\\\" />\\n\\t\\t\\t\\t\\t<span class=\\\"mppw-checkbox\\\"></span>\\n\\t\\t\\t\\t</label>\\n\\t\\t\\t</div>\\n\\t\\t\\t<label class=\\\"mppw-form-field__label mppw-blue\\\">\").concat(label).concat(isRequired ? \"*\" : \"\", \"</label>\\n\\t\\t</div>\");\n } /// Custom Form Inputs\n\n }, {\n key: \"_RenderRequiredAsterisk\",\n value: function _RenderRequiredAsterisk(isRequired) {\n if (isRequired === true) {\n return \"<span class='mppw-form-field__alt-label-required'>*</span>\";\n } else {\n return \"\";\n }\n }\n }, {\n key: \"_RenderAltLabel\",\n value: function _RenderAltLabel(labelContent, isRequired) {\n if (!!labelContent) {\n var requiredTag = this._RenderRequiredAsterisk(isRequired);\n\n return \"\\n\\t\\t\\t\\t<div class='mppw-form-field__alt-label-container'>\\n\\t\\t\\t\\t\\t<div class='mppw-form-field__alt-label-content'>\".concat(labelContent, \"</div>\\n\\t\\t\\t\\t\\t\").concat(requiredTag, \"\\n\\t\\t\\t\\t</div>\");\n }\n\n return \"\";\n }\n }]);\n\n return FormFieldBuilder;\n}();","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"../Shared/Configuration\";\nexport var FileUploader = /*#__PURE__*/function () {\n function FileUploader() {\n _classCallCheck(this, FileUploader);\n\n this._invalidFileTypeMessage = \"Invalid file type\";\n this._invalidFileSizeMessage = \"Over a max size of\";\n this._selectDifferentFileMessage = \"Please select a different file.\";\n }\n\n _createClass(FileUploader, [{\n key: \"InitializeFileUploader\",\n value: function InitializeFileUploader(name, formContainer, fileUploadComponentHtml, root, invalidFileTypeMessage, invalidFileSizeMessage, selectDifferentFileMessage) {\n this._invalidFileTypeMessage = invalidFileTypeMessage;\n this._invalidFileSizeMessage = invalidFileSizeMessage;\n this._selectDifferentFileMessage = selectDifferentFileMessage;\n var $formRow = document.createElement(\"div\");\n var $formControl = document.createElement(\"div\");\n $formControl.innerHTML = fileUploadComponentHtml;\n $formRow.appendChild($formControl);\n formContainer.appendChild($formRow);\n this._dropArea = root.querySelector(\"#mppw-upload-droparea-\".concat(name));\n this._fileInputId = root.querySelector(\"#mppw-upload-file-\".concat(name));\n this._filePreviewGallery = root.querySelector(\"#mppw-upload-gallery-\".concat(name));\n this._invalidFileTypeLabel = root.querySelector(\"#mppw-invalid-file-type-label-\".concat(name));\n this._invalidFileTypeLabel.style.display = \"none\";\n this.BindEventListener(root);\n }\n }, {\n key: \"BindEventListener\",\n value: function BindEventListener(root) {\n var _this = this;\n\n // Prevent default drag behavior\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(function (eventName) {\n _this._dropArea.addEventListener(eventName, _this.preventDefaults, false);\n\n document.body.addEventListener(eventName, _this.preventDefaults, false);\n }); // Highlight drop area when item is dragged over it\n\n ['dragenter', 'dragover'].forEach(function (eventName) {\n _this._dropArea.addEventListener(eventName, function (event) {\n _this._dropArea.classList.add('highlight');\n });\n });\n ['dragleave', 'drop'].forEach(function (eventName) {\n _this._dropArea.addEventListener(eventName, function (event) {\n _this._dropArea.classList.remove('active');\n });\n }); // Handle dropped files\n\n this._dropArea.addEventListener('drop', function (event) {\n var dt = event.dataTransfer;\n var files = dt.files;\n _this._fileInputId.files = files;\n\n _this.handleFiles(files, root);\n }); // Handle onchange\n\n\n this._fileInputId.addEventListener('change', function (event) {\n _this.handleFiles(_this._fileInputId.files, root);\n });\n }\n }, {\n key: \"preventDefaults\",\n value: function preventDefaults(e) {\n e.preventDefault();\n e.stopPropagation();\n }\n }, {\n key: \"validateUploadFileExtension\",\n value: function validateUploadFileExtension(fileName) {\n return /\\.(pdf|png|gif|jpg|jpeg|jfif|pjpeg|pjp|avif)$/i.test(fileName);\n }\n }, {\n key: \"handleFiles\",\n value: function handleFiles(files, root) {\n var _this2 = this;\n\n files = _toConsumableArray(files);\n var fileSize = 0,\n maxFileSize = 20480;\n\n if (files !== null && files !== undefined && files.length > 1) {\n files = files.slice(0, 1);\n }\n\n this.clearPreviewFiles();\n files.forEach(function (file) {\n if (file.name) {\n if (file.size > 0) {\n fileSize = Math.round(file.size / 1024);\n }\n\n if (!_this2.validateUploadFileExtension(file.name)) {\n _this2._invalidFileTypeLabel.style.display = \"block\";\n _this2._invalidFileTypeLabel.innerHTML = _this2._invalidFileTypeMessage + \", \" + file.name + \". \" + _this2._selectDifferentFileMessage;\n } else if (fileSize > maxFileSize) {\n _this2._invalidFileTypeLabel.style.display = \"block\";\n _this2._invalidFileTypeLabel.innerHTML = _this2._invalidFileSizeMessage + \" 20MB, \" + file.name + \". \" + _this2._selectDifferentFileMessage;\n } else {\n _this2.previewFile(file, root);\n }\n }\n });\n }\n }, {\n key: \"clearPreviewFiles\",\n value: function clearPreviewFiles() {\n this._invalidFileTypeLabel.style.display = \"none\";\n\n if (this._filePreviewGallery != null) {\n this._filePreviewGallery.innerHTML = '';\n }\n }\n }, {\n key: \"previewFile\",\n value: function previewFile(file, root) {\n var self = this;\n var reader = new FileReader();\n reader.readAsDataURL(file);\n\n reader.onloadend = function () {\n // Determine placeholder image to show\n var img = document.createElement('img');\n\n if (file.type.startsWith('image/') === true) {\n // Display uploaded image\n img.src = reader.result;\n } else {\n // Display name and placeholder image\n img.src = new Configuration().GetAppRoot() + '/Content/icons/icon-file-earmark.svg';\n } // Build file preview\n\n\n var fileElement = document.createElement('div');\n fileElement.classList.add('mppw-gallery-file');\n var fileName = document.createElement('span');\n fileName.innerHTML += file.name;\n var fileCloseIcon = document.createElement('img');\n fileCloseIcon.setAttribute('title', 'Click to remove this file.');\n fileCloseIcon.classList.add('mppw-gallery-file-close-icon');\n fileCloseIcon.src = new Configuration().GetAppRoot() + \"/Content/icons/minus-circle.png\";\n fileCloseIcon.addEventListener('click', function handleClick() {\n if (self._filePreviewGallery != null) {\n self._filePreviewGallery.innerHTML = '';\n }\n\n if (self._fileInputId != null) {\n self._fileInputId.value = null;\n }\n });\n fileElement.appendChild(img);\n fileElement.appendChild(fileName);\n fileElement.appendChild(fileCloseIcon);\n\n self._filePreviewGallery.appendChild(fileElement);\n };\n }\n }], [{\n key: \"UploadFile\",\n value: function UploadFile(url, name, file, elem, callback) {\n var xhr = new XMLHttpRequest();\n var fd = new FormData();\n xhr.open(\"POST\", url, true);\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === 4 && xhr.status === 200) {\n var data = JSON.parse(xhr.response);\n if (callback) callback(elem, data);\n }\n };\n\n fd.append(name, file); // Initiate a multipart/form-data upload\n\n xhr.send(fd);\n }\n }]);\n\n return FileUploader;\n}();","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n/*jshint esversion: 8 */\nexport var ArgumentException = /*#__PURE__*/function (_Error) {\n _inherits(ArgumentException, _Error);\n\n var _super = _createSuper(ArgumentException);\n\n function ArgumentException(argName) {\n _classCallCheck(this, ArgumentException);\n\n return _super.call(this, \"Argument \".concat(argName, \" is invalid, null or undefined\"));\n }\n\n return ArgumentException;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nexport var ArgumentTypeException = /*#__PURE__*/function (_Error2) {\n _inherits(ArgumentTypeException, _Error2);\n\n var _super2 = _createSuper(ArgumentTypeException);\n\n function ArgumentTypeException(argName) {\n _classCallCheck(this, ArgumentTypeException);\n\n return _super2.call(this, \"Type of argument \".concat(argName, \" is invalid\"));\n }\n\n return ArgumentTypeException;\n}( /*#__PURE__*/_wrapNativeSuper(Error));","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 8 */\nimport { ArgumentException } from \"./Exceptions\";\nimport { ArgumentTypeException } from \"./Exceptions\";\n\nvar _getKey = function _getKey(key) {\n return \"mpp-widgets_\".concat(key);\n};\n/**\r\n * Static storage wrapper class. Provides get, set and clear abilities\r\n */\n\n\nexport var LocalStorageManager = /*#__PURE__*/function () {\n function LocalStorageManager() {\n _classCallCheck(this, LocalStorageManager);\n }\n\n _createClass(LocalStorageManager, null, [{\n key: \"setItem\",\n value:\n /**\r\n * Sets item in storage under provided key name\r\n * @param {string} key Key under which item is stored\r\n * @param {object} item Item to be stored\r\n * @throws {ArgumentException}\r\n * @throws {ArgumentTypeException}\r\n */\n function setItem(key, item) {\n if (!key) {\n throw new ArgumentException(\"key\");\n }\n\n if (typeof key !== \"string\") {\n throw new ArgumentTypeException(\"key\");\n }\n\n if (!!window.localStorage && !!window.localStorage.setItem) {\n var fullKey = _getKey(key);\n\n window.localStorage.setItem(fullKey, item);\n }\n }\n /**\r\n * Gets item from storage, if not available returns null\r\n * @param {string} key Key under which item is stored\r\n * @returns {object} Item object if available, otherwise returns null\r\n * @throws {ArgumentException}\r\n * @throws {ArgumentTypeException}\r\n */\n\n }, {\n key: \"getItem\",\n value: function getItem(key) {\n if (!key) {\n throw new ArgumentException(\"key\");\n }\n\n if (typeof key !== \"string\") {\n throw new ArgumentTypeException(\"key\");\n }\n\n var item = null;\n\n if (!!window.localStorage && !!window.localStorage.getItem) {\n var fullKey = _getKey(key);\n\n item = window.localStorage.getItem(fullKey) || null;\n }\n\n return item;\n }\n /**\r\n * Clears all \"context\" items in localStorage\r\n */\n\n }, {\n key: \"clear\",\n value: function clear(startsWith) {\n if (!!window.localStorage && !!window.localStorage.removeItem) {\n var storageKeys = Object.keys(window.localStorage);\n\n if (!!storageKeys.length) {\n var searchFor = _getKey(startsWith);\n\n for (var key in storageKeys) {\n if (!!key) {\n var keyValue = storageKeys[key];\n\n if (!!keyValue && !!keyValue.startsWith && !!keyValue.startsWith(searchFor)) {\n window.localStorage.removeItem(keyValue);\n }\n }\n }\n }\n }\n }\n }]);\n\n return LocalStorageManager;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 8 */\nimport { ArgumentException } from \"./Exceptions\";\nimport { ArgumentTypeException } from \"./Exceptions\";\n\nvar _getKey = function _getKey(key) {\n return \"mpp-widgets_\".concat(key);\n};\n/**\r\n * Static storage wrapper class. Provides get, set and clear abilities\r\n */\n\n\nexport var SessionStorageManager = /*#__PURE__*/function () {\n function SessionStorageManager() {\n _classCallCheck(this, SessionStorageManager);\n }\n\n _createClass(SessionStorageManager, null, [{\n key: \"setItem\",\n value:\n /**\r\n * Sets item in storage under provided key name\r\n * @param {string} key Key under which item is stored\r\n * @param {object} item Item to be stored\r\n * @throws {ArgumentException}\r\n * @throws {ArgumentTypeException}\r\n */\n function setItem(key, item) {\n if (!key) {\n throw new ArgumentException(\"key\");\n }\n\n if (typeof key !== \"string\") {\n throw new ArgumentTypeException(\"key\");\n }\n\n if (!!window.sessionStorage && !!window.sessionStorage.setItem) {\n var fullKey = _getKey(key);\n\n window.sessionStorage.setItem(fullKey, item);\n }\n }\n /**\r\n * Gets item from storage, if not available returns null\r\n * @param {string} key Key under which item is stored\r\n * @returns {object} Item object if available, otherwise returns null\r\n * @throws {ArgumentException}\r\n * @throws {ArgumentTypeException}\r\n */\n\n }, {\n key: \"getItem\",\n value: function getItem(key) {\n if (!key) {\n throw new ArgumentException(\"key\");\n }\n\n if (typeof key !== \"string\") {\n throw new ArgumentTypeException(\"key\");\n }\n\n var item = null;\n\n if (!!window.sessionStorage && !!window.sessionStorage.getItem) {\n var fullKey = _getKey(key);\n\n item = window.sessionStorage.getItem(fullKey) || null;\n }\n\n return item;\n }\n /**\r\n * Clears all \"context\" items in sessionStorage\r\n */\n\n }, {\n key: \"clear\",\n value: function clear(startsWith) {\n if (!!window.sessionStorage && !!window.sessionStorage.removeItem) {\n var storageKeys = Object.keys(window.sessionStorage);\n\n if (!!storageKeys.length) {\n var searchFor = _getKey(startsWith);\n\n for (var key in storageKeys) {\n if (!!key) {\n var keyValue = storageKeys[key];\n\n if (!!keyValue && !!keyValue.startsWith && !!keyValue.startsWith(searchFor)) {\n window.sessionStorage.removeItem(keyValue);\n }\n }\n }\n }\n }\n }\n }]);\n\n return SessionStorageManager;\n}();","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/* jshint esversion: 8 */\nimport { ConfigurationService } from '../Shared/Configuration';\nimport { LocalStorageManager } from '../Shared/LocalStorageManager';\nimport { SessionStorageManager } from '../Shared/SessionStorageManager';\nimport { URLSearchParameters } from '../Shared/URLSearchParameters';\nvar _tokenKeyName = \"AuthToken\";\nvar _idTokenKeyName = \"IdToken\";\nvar _expiresAfterName = \"ExpiresAfter\";\nvar _csrfToken = \"CSRFToken\";\nwindow.mppw_refreshTokenPromise = null;\nexport var OAuthService = /*#__PURE__*/function () {\n function OAuthService() {\n _classCallCheck(this, OAuthService);\n }\n\n _createClass(OAuthService, null, [{\n key: \"Token\",\n get: function get() {\n var tokenValue = LocalStorageManager.getItem(_tokenKeyName);\n var token = tokenValue === \"null\" ? null : tokenValue;\n return token;\n },\n set: function set(token) {\n LocalStorageManager.setItem(_tokenKeyName, token);\n }\n }, {\n key: \"IdToken\",\n get: function get() {\n var idTokenValue = LocalStorageManager.getItem(_idTokenKeyName);\n var idToken = idTokenValue === \"null\" ? null : idTokenValue;\n return idToken;\n },\n set: function set(idToken) {\n LocalStorageManager.setItem(_idTokenKeyName, idToken);\n }\n }, {\n key: \"ExpiresAfter\",\n get: function get() {\n var expiresAfterValue = LocalStorageManager.getItem(_expiresAfterName);\n var expiresAfter = expiresAfterValue === \"null\" ? null : new Date(expiresAfterValue);\n return expiresAfter;\n },\n set: function set(expiresAfter) {\n LocalStorageManager.setItem(_expiresAfterName, expiresAfter);\n }\n }, {\n key: \"CSRFToken\",\n get: function get() {\n try {\n var token = JSON.parse(SessionStorageManager.getItem(_csrfToken));\n return token;\n } catch (_unused) {\n return null;\n }\n },\n set: function set(token) {\n SessionStorageManager.setItem(_csrfToken, JSON.stringify(token));\n }\n }, {\n key: \"SignIn\",\n value: function SignIn() {\n ConfigurationService.GetAuthConfiguration().then(function (oauthConfig) {\n if (!!oauthConfig) {\n var url = \"\".concat(oauthConfig.signInUrl, \"?\") + \"response_type=\".concat(oauthConfig.responseType) + \"&scope=\".concat(oauthConfig.scope) + \"&client_id=\".concat(oauthConfig.clientId) + \"&redirect_uri=\".concat(oauthConfig.redirectUrl) + \"&nonce=\".concat(oauthConfig.nonce) + \"&state=\".concat(encodeURIComponent(window.location));\n OAuthService.Token = null;\n window.location.replace(url);\n }\n });\n }\n }, {\n key: \"SignOut\",\n value: function SignOut() {\n ConfigurationService.GetAuthConfiguration(true).then(function (oauthConfig) {\n if (!!oauthConfig) {\n var url = \"\".concat(oauthConfig.signOutUrl, \"?\") + \"id_token_hint=\".concat(OAuthService.IdToken) + \"&post_logout_redirect_uri=\".concat(oauthConfig.postLogoutRedirectUrl) + \"&state=\".concat(encodeURI(window.location));\n OAuthService.Token = null;\n OAuthService.IdToken = null;\n window.location.replace(url);\n }\n });\n }\n }, {\n key: \"SaveCSRFTokenAsync\",\n value: function () {\n var _SaveCSRFTokenAsync = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var result;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ConfigurationService.GetCSRFToken();\n\n case 2:\n result = _context.sent;\n OAuthService.CSRFToken = result;\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function SaveCSRFTokenAsync() {\n return _SaveCSRFTokenAsync.apply(this, arguments);\n }\n\n return SaveCSRFTokenAsync;\n }()\n }, {\n key: \"SaveAuthTokensAsync\",\n value: function () {\n var _SaveAuthTokensAsync = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var tokenParamName, userSearchParameters, token, url, tokens;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n tokenParamName = \"cacheKey\";\n userSearchParameters = new URLSearchParameters(window.location.search);\n token = userSearchParameters.get(tokenParamName);\n\n if (!token) {\n _context2.next = 9;\n break;\n }\n\n if (!!window.history && !!window.history.replaceState && !!token) {\n url = String(window.location);\n url = url.replace(\"?\" + tokenParamName + \"=\", \"\").replace(\"&\" + tokenParamName + \"=\", \"\").replace(token, \"\");\n window.history.replaceState({}, document.title, url);\n }\n\n _context2.next = 7;\n return ConfigurationService.GetAuthToken(token);\n\n case 7:\n tokens = _context2.sent;\n\n OAuthService._SaveTokens(tokens);\n\n case 9:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n function SaveAuthTokensAsync() {\n return _SaveAuthTokensAsync.apply(this, arguments);\n }\n\n return SaveAuthTokensAsync;\n }()\n }, {\n key: \"RefreshTokensAsync\",\n value: function () {\n var _RefreshTokensAsync = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (!(window.mppw_refreshTokenPromise != null)) {\n _context3.next = 2;\n break;\n }\n\n return _context3.abrupt(\"return\", window.mppw_refreshTokenPromise);\n\n case 2:\n // Put RE-AUTH promise into a global var so that other requests may reuse existing promise until it is resolved\n window.mppw_refreshTokenPromise = new Promise(function (resolve) {\n if (!OAuthService.Token || !OAuthService.IdToken || !OAuthService.ExpiresAfter) {\n resolve();\n return;\n }\n\n ConfigurationService.GetAuthConfiguration(true).then(function (oauthConfig) {\n if (!!oauthConfig) {\n var url = \"\".concat(oauthConfig.signInUrl, \"?\") + \"response_type=\".concat(oauthConfig.responseType) + \"&scope=\".concat(oauthConfig.scope) + \"&client_id=\".concat(oauthConfig.clientId) + \"&redirect_uri=\".concat(oauthConfig.redirectUrl) + \"&nonce=\".concat(oauthConfig.nonce) + \"&state=REAUTH\";\n fetch(url, {\n credentials: \"include\"\n }).then(function (response) {\n return response.json().then(function (tokens) {\n OAuthService._SaveTokens(tokens);\n\n resolve();\n })[\"catch\"](function () {\n OAuthService._ClearTokens();\n\n resolve();\n });\n })[\"catch\"](function () {\n OAuthService._ClearTokens();\n\n resolve();\n });\n }\n });\n })[\"finally\"](function () {\n // Remove resolved promise from the global var\n window.mppw_refreshTokenPromise = null;\n });\n return _context3.abrupt(\"return\", window.mppw_refreshTokenPromise);\n\n case 4:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n function RefreshTokensAsync() {\n return _RefreshTokensAsync.apply(this, arguments);\n }\n\n return RefreshTokensAsync;\n }()\n }, {\n key: \"_SaveTokens\",\n value: function _SaveTokens(tokens) {\n OAuthService.Token = tokens.accessToken;\n OAuthService.IdToken = tokens.idToken;\n var expiresAfter = new Date();\n expiresAfter.setSeconds(expiresAfter.getSeconds() + tokens.expiresIn - 60);\n OAuthService.ExpiresAfter = expiresAfter;\n }\n }, {\n key: \"_ClearTokens\",\n value: function _ClearTokens() {\n OAuthService.Token = null;\n OAuthService.IdToken = null;\n OAuthService.ExpiresAfter = null;\n }\n }]);\n\n return OAuthService;\n}();","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { OAuthService } from './OAuthService'; // adapted from: https://stackoverflow.com/questions/51297206/fetch-api-global-error-handler\n\nvar _addAuth = function _addAuth(options) {\n options = options || {};\n\n if (!!OAuthService.Token) {\n options.credentials = \"include\";\n options.withCredentials = true;\n options.headers = options.headers || {};\n options.headers.Authorization = \"Bearer \".concat(OAuthService.Token);\n }\n\n return options;\n};\n\nvar _addCSRF = function _addCSRF(options) {\n return new Promise(function (resolve) {\n options = options || {};\n options.headers = options.headers || {};\n\n if (!!OAuthService.CSRFToken && !!OAuthService.CSRFToken.token && !!OAuthService.CSRFToken.expiresAfterUtc) {\n var expiresAfterUTC = new Date(OAuthService.CSRFToken.expiresAfterUtc);\n\n var nowUTC = _getCurrentUTCDateTime();\n\n if (nowUTC >= expiresAfterUTC) {\n OAuthService.SaveCSRFTokenAsync().then(function () {\n options.headers[\"x-csrf-token\"] = OAuthService.CSRFToken.token;\n resolve(options);\n });\n } else {\n options.headers[\"x-csrf-token\"] = OAuthService.CSRFToken.token;\n resolve(options);\n }\n } else {\n resolve(options);\n }\n });\n};\n\nvar _getCurrentUTCDateTime = function _getCurrentUTCDateTime() {\n var now = new Date();\n var utcDateTime = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds(), now.getUTCMilliseconds());\n return utcDateTime;\n};\n\nvar _htmlSanitizer = /<\\/?(embed|form|frame|frameset|html|iframe|input|keygen|link|meta|noembed|noframes|noscript|object|plaintext|pre|script|select|style|svg|video|wbr|xmp)[^>]*>/ig;\nvar _eventSanitizer = /(<[^>]+\\s)on[^=]+/ig;\n\nvar _htmlSanitize = function _htmlSanitize(textObj) {\n var sanitize = function sanitize(str) {\n return str.replace(_htmlSanitizer, \"\").replace(_eventSanitizer, \"$1 sanitizedEvent\");\n };\n\n var cleanKeys = function cleanKeys(obj, depth) {\n if (!obj) {\n return obj;\n }\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n if (typeof obj[key] === \"string\") {\n obj[key] = sanitize(obj[key]);\n }\n\n if (_typeof(obj[key]) === \"object\" && depth < 40) {\n obj[key] = cleanKeys(obj[key], depth + 1);\n }\n });\n return obj;\n };\n\n return cleanKeys(textObj, 0);\n};\n\nexport var Ajax = /*#__PURE__*/function () {\n function Ajax() {\n _classCallCheck(this, Ajax);\n }\n\n _createClass(Ajax, null, [{\n key: \"Get\",\n value: function Get(url) {\n return Ajax.RefreshTokensIfNeededAsync().then(function () {\n return new Promise(function (resolve, reject) {\n var options = _addAuth();\n\n fetch(url, options).then(function (response) {\n if (response.ok) {\n response.json().then(function (json) {\n resolve(_htmlSanitize(json));\n })[\"catch\"](function (err) {\n reject(err);\n });\n } else {\n if (response.status === 401) {\n OAuthService.SignIn();\n } else {\n reject(response);\n }\n }\n });\n });\n });\n }\n }, {\n key: \"Post\",\n value: function () {\n var _Post = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, data, additionalHeaders) {\n var retry,\n options,\n response,\n json,\n err,\n _args = arguments;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n retry = _args.length > 3 && _args[3] !== undefined ? _args[3] : true;\n _context.next = 3;\n return Ajax.RefreshTokensIfNeededAsync();\n\n case 3:\n options = _addAuth({\n method: \"POST\",\n body: data\n });\n\n if (additionalHeaders) {\n Object.keys(additionalHeaders).forEach(function (header) {\n options.headers[header] = additionalHeaders[header];\n });\n }\n\n _context.next = 7;\n return _addCSRF(options);\n\n case 7:\n options = _context.sent;\n _context.prev = 8;\n _context.next = 11;\n return fetch(url, options);\n\n case 11:\n response = _context.sent;\n\n if (!response.ok) {\n _context.next = 21;\n break;\n }\n\n _context.next = 15;\n return response.json();\n\n case 15:\n json = _context.sent;\n _context.next = 18;\n return _htmlSanitize(json);\n\n case 18:\n return _context.abrupt(\"return\", _context.sent);\n\n case 21:\n _context.next = 23;\n return response.json();\n\n case 23:\n err = _context.sent;\n throw err;\n\n case 25:\n _context.next = 36;\n break;\n\n case 27:\n _context.prev = 27;\n _context.t0 = _context[\"catch\"](8);\n\n if (!(retry && _context.t0.SecondaryStatusCode && _context.t0.SecondaryStatusCode === \"CSRF\")) {\n _context.next = 35;\n break;\n }\n\n _context.next = 32;\n return OAuthService.SaveCSRFTokenAsync();\n\n case 32:\n return _context.abrupt(\"return\", this.Post(url, data, additionalHeaders, false));\n\n case 35:\n throw _context.t0;\n\n case 36:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[8, 27]]);\n }));\n\n function Post(_x, _x2, _x3) {\n return _Post.apply(this, arguments);\n }\n\n return Post;\n }()\n }, {\n key: \"RefreshTokensIfNeededAsync\",\n value: function () {\n var _RefreshTokensIfNeededAsync = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var currentTime, expiresAfter;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n currentTime = new Date();\n expiresAfter = OAuthService.ExpiresAfter;\n\n if (!(currentTime > expiresAfter)) {\n _context2.next = 5;\n break;\n }\n\n _context2.next = 5;\n return OAuthService.RefreshTokensAsync();\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n function RefreshTokensIfNeededAsync() {\n return _RefreshTokensIfNeededAsync.apply(this, arguments);\n }\n\n return RefreshTokensIfNeededAsync;\n }()\n }]);\n\n return Ajax;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"../Shared/Configuration\";\nimport { Ajax } from \"./Ajax\";\nexport var CustomFormApiService = /*#__PURE__*/function () {\n function CustomFormApiService() {\n _classCallCheck(this, CustomFormApiService);\n\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n }\n\n _createClass(CustomFormApiService, [{\n key: \"GetForm\",\n value: function GetForm(FormGuid) {\n var url = \"\".concat(this._appRoot, \"/Api/CustomFormApi/GetForm?FormGuid=\").concat(FormGuid);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetFormFields\",\n value: function GetFormFields(FormGuid) {\n var url = \"\".concat(this._appRoot, \"/Api/CustomFormApi/GetFormFields?FormGuid=\").concat(FormGuid);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetContactById\",\n value: function GetContactById(contactId) {\n var url = \"\".concat(this._appRoot, \"/Api/CustomFormApi/GetContactById?contactId=\").concat(contactId);\n return Ajax.Get(url);\n }\n }, {\n key: \"PostFormData\",\n value: function PostFormData(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/CustomFormApi/PostFormData\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"GetConfigurations\",\n value: function GetConfigurations() {\n var url = \"\".concat(this._appRoot, \"/Api/CustomFormApi/GetConfigurations\");\n return Ajax.Get(url);\n }\n }]);\n\n return CustomFormApiService;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"./Configuration\";\nexport var I18N = /*#__PURE__*/function () {\n function I18N(componentName) {\n _classCallCheck(this, I18N);\n\n this._componentName = componentName;\n this._locale = I18N.GetCurrentLocale();\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n return fetch(\"\".concat(this._appRoot, \"/Api/ConfigurationApi/GetLabels?componentName=\").concat(this._componentName, \"&locale=\").concat(this._locale), {\n credentials: \"include\",\n mode: \"cors\",\n withCredentials: true\n }).then(function (response) {\n return response.json();\n });\n /*\r\n \t.catch((a, b) => {\r\n \t\t//TODO: Write this error into HTML:\r\n \t\tconsole.log(\"a\", a);\r\n \t\t//console.log(\"b\", b);\r\n \t\tvar h = this; //.getRootNode().host;\r\n \t\tconsole.log(\"h\", h);\r\n \t\tthis.parentNode.innerHTML = `Error: ${a}`;\r\n });\r\n */\n }\n\n _createClass(I18N, null, [{\n key: \"GetCurrentLocale\",\n value: function GetCurrentLocale() {\n return localStorage.userLocale || \"en\";\n }\n }]);\n\n return I18N;\n}();","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { FormFieldBuilder } from \"./FormFieldBuilder\";\nimport { FileUploader } from \"./FileUploader\";\nimport { CustomFormApiService } from \"../Services/CustomFormApiService\";\nimport { OAuthService } from \"../Services/OAuthService\";\nimport { I18N } from \"../Shared/I18n\";\nvar _customFormInputPrefix = \"\"; // Gets set in RenderCustomForm function\n\nexport var CustomFormBuilder = /*#__PURE__*/function () {\n function CustomFormBuilder() {\n _classCallCheck(this, CustomFormBuilder);\n }\n\n _createClass(CustomFormBuilder, null, [{\n key: \"getTranslations\",\n value: function () {\n var _getTranslations = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this = this;\n\n var i18n;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (this._i18n) {\n _context.next = 5;\n break;\n }\n\n _context.next = 3;\n return new I18N(\"mpp-custom-form\")[\"catch\"](function (error) {\n if (error.toString().startsWith(\"TypeError\")) {\n _this._root.innerHTML = \"Unable to connect. Please check Permitted URLs.\";\n } else {\n _this._root.innerHTML = \"\".concat(error);\n }\n });\n\n case 3:\n i18n = _context.sent;\n this._i18n = i18n;\n\n case 5:\n return _context.abrupt(\"return\", this._i18n);\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getTranslations() {\n return _getTranslations.apply(this, arguments);\n }\n\n return getTranslations;\n }()\n /**\r\n * @summary Will render a custom form.\r\n * @param {string} customFormGuid The custom forms Guid identifier\r\n * @param {Element} customFormFieldsElement The html element that will house the custom form elements\r\n * @param {Element} customFormRootElement The root html form element which contains the customFormFieldsElement\r\n */\n\n }, {\n key: \"RenderCustomForm\",\n value: function () {\n var _RenderCustomForm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(customFormGuid, customFormFieldsElement, customFormRootElement, skipFormInstructions, isUserAuthenticated) {\n var customFormService, _yield$Promise$all, _yield$Promise$all2, customFormData, customFormConfig, customForm;\n\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return this.getTranslations();\n\n case 2:\n customFormFieldsElement.innerHTML = \"\";\n\n if (!customFormGuid) {\n _context2.next = 15;\n break;\n }\n\n customFormService = new CustomFormApiService();\n _context2.next = 7;\n return Promise.all([customFormService.GetFormFields(customFormGuid), customFormService.GetConfigurations(), customFormService.GetForm(customFormGuid)]);\n\n case 7:\n _yield$Promise$all = _context2.sent;\n _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);\n customFormData = _yield$Promise$all2[0];\n customFormConfig = _yield$Promise$all2[1];\n customForm = _yield$Promise$all2[2];\n _customFormInputPrefix = customFormConfig.customFormInputPrefix;\n skipFormInstructions !== true && this.DrawFormInstructions(customFormFieldsElement, customFormData);\n\n if (customForm.formData.Force_Login && !isUserAuthenticated) {\n this.DrawLoginRequest(customFormFieldsElement);\n } else {\n CustomFormBuilder.DrawForm(customFormFieldsElement, customFormData, customFormRootElement);\n }\n\n case 15:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function RenderCustomForm(_x, _x2, _x3, _x4, _x5) {\n return _RenderCustomForm.apply(this, arguments);\n }\n\n return RenderCustomForm;\n }()\n }, {\n key: \"DrawLoginRequest\",\n value: function () {\n var _DrawLoginRequest = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(customFormFieldsElement) {\n var errorMessageContainer, errorIcon, errorMessage, loginButtonContainer, loginButton;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return this.getTranslations();\n\n case 2:\n errorMessageContainer = document.createElement(\"div\");\n errorMessageContainer.classList.add(\"mppw-alert\");\n errorMessageContainer.classList.add(\"mppw-alert__warning\");\n errorIcon = document.createElement(\"div\");\n errorIcon.classList.add(\"mppw-alert__icon\");\n errorMessageContainer.appendChild(errorIcon);\n errorMessage = document.createElement(\"span\");\n errorMessage.classList.add(\"mppw-alert__text\");\n errorMessage.innerText = this._i18n.customFormPleaseLoginMessage;\n errorMessageContainer.appendChild(errorMessage);\n loginButtonContainer = document.createElement(\"div\");\n loginButtonContainer.style.display = \"flex\";\n loginButtonContainer.style.justifyContent = \"center\";\n loginButtonContainer.style.marginBottom = \"20px\";\n loginButton = document.createElement(\"input\");\n loginButton.setAttribute(\"type\", \"button\");\n loginButton.className = \"mppw-btn primary\";\n loginButton.value = \"Login\";\n loginButton.addEventListener(\"click\", function () {\n OAuthService.SignIn();\n });\n customFormFieldsElement.appendChild(errorMessageContainer);\n loginButtonContainer.appendChild(loginButton);\n customFormFieldsElement.appendChild(loginButtonContainer);\n\n case 24:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function DrawLoginRequest(_x6) {\n return _DrawLoginRequest.apply(this, arguments);\n }\n\n return DrawLoginRequest;\n }()\n }, {\n key: \"DrawFormInstructions\",\n value: function DrawFormInstructions(formContainer, data) {\n // Display custom forms instructions label\n if (!!data && !!data.instructions) {\n var formInstructions = document.createElement(\"h3\");\n formInstructions.innerHTML = data.instructions;\n formContainer.appendChild(formInstructions);\n }\n }\n }, {\n key: \"DrawForm\",\n value: function DrawForm(formContainer, data, root) {\n var _this2 = this;\n\n var formFieldBuilder = new FormFieldBuilder(); // Add hidden inputs\n\n if (!!data && data.formFields.length > 0) {\n // Add custom form id, this will be needed later when saving the form\n var formIdInputContainer = document.createElement(\"div\");\n var formIdElement = formFieldBuilder.BuildHiddenInput(_customFormInputPrefix + \"formid\", data.formFields[0].Form_ID);\n formIdInputContainer.innerHTML = formIdElement;\n formContainer.appendChild(formIdInputContainer);\n }\n\n for (var r = 0; r < data.formFields.length; r++) {\n var $formRow = document.createElement(\"div\");\n var $formControl = document.createElement(\"div\");\n\n if (!data.formFields[r][\"Is_Hidden\"]) {\n // Create each field type\n $formControl.innerHTML = this.BuildFormControl(data.formFields[r], formContainer, root);\n $formRow.appendChild($formControl);\n formContainer.appendChild($formRow); // Setup depends on fields\n\n data.uniqueParentFields.forEach(function (fieldId) {\n if (data.formFields[r].Form_Field_ID === fieldId) {\n // Bind event listener to these field id's\n _this2.BindParentFormFieldListener(data.formFields[r], root, data.customFieldsTree);\n }\n });\n }\n }\n }\n }, {\n key: \"BindParentFormFieldListener\",\n value: function BindParentFormFieldListener(formField, root, customFieldsTree) {\n var self = this; // The types of fields\n\n var FieldTypes = {\n \"VerticalRadioButtons\": 4,\n \"HorizontalRadioButtons\": 7\n }; // Only allow radio buttons\n\n if (formField.Field_Type_ID === FieldTypes.HorizontalRadioButtons || formField.Field_Type_ID === FieldTypes.VerticalRadioButtons) {\n root.querySelector('#formFields').addEventListener('change', function (event) {\n if (event.target.id == formField.Form_Field_ID.toString()) {\n var dependsOnSelectedId = event.target.id;\n var dependsOnSelectedValue = event.target.value; // Show all elements with dependsOnSelectedId and dependsOnSelectedValue\n\n self.ShowHideDependsOnElements(dependsOnSelectedId, dependsOnSelectedValue, root, customFieldsTree);\n }\n });\n } else {\n return;\n }\n } // When initially loading the form disable all depends on field inputs\n\n }, {\n key: \"DisableAllDependsOnInputs\",\n value: function DisableAllDependsOnInputs(root) {\n // Get all dependent fields\n var dependsOnFields = root.querySelectorAll('[data-depends-on-value]');\n\n for (var i = 0; i < dependsOnFields.length; i++) {\n var dependsOnFieldValue = dependsOnFields[i].getAttribute(\"data-depends-on-value\"); // Only hide if element has a depends on value\n\n if (!!dependsOnFieldValue) {\n // Get all inputs for the given div\n var inputElements = dependsOnFields[i].getElementsByTagName(\"input\");\n var selectElements = dependsOnFields[i].getElementsByTagName(\"select\");\n var textareaElements = dependsOnFields[i].getElementsByTagName(\"textarea\"); // Hide fields\n\n dependsOnFields[i].style.display = 'none'; // Add disabled to prevent form validation issues on hidden inputs\n\n var _iterator = _createForOfIteratorHelper(inputElements),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var el = _step.value;\n el.setAttribute(\"disabled\", \"disabled\");\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var _iterator2 = _createForOfIteratorHelper(selectElements),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _el = _step2.value;\n\n _el.setAttribute(\"disabled\", \"disabled\");\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n var _iterator3 = _createForOfIteratorHelper(textareaElements),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var _el2 = _step3.value;\n\n _el2.setAttribute(\"disabled\", \"disabled\");\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n }\n }\n }, {\n key: \"FindNodeById\",\n value: function FindNodeById(node, id) {\n if (node.nodeId == id) {\n return node;\n } else {\n var _iterator4 = _createForOfIteratorHelper(node.children),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var child = _step4.value;\n var result = this.FindNodeById(child, id);\n\n if (result != null) {\n return result;\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n\n return null;\n }\n }, {\n key: \"HideElement\",\n value: function HideElement(node, root) {\n var formRoot = root; // Select all elements based on parentId\n\n var hideField = formRoot.querySelector(\"[data-id='\".concat(node.nodeId, \"']\"));\n\n if (hideField !== null && hideField !== undefined) {\n // Get all inputs for the given element\n var inputElements = hideField.getElementsByTagName(\"input\");\n var selectElements = hideField.getElementsByTagName(\"select\");\n var textareaElements = hideField.getElementsByTagName(\"textarea\"); // Hide fields\n\n hideField.style.display = 'none'; // If the form is validated, need to remove any validation errors when switching between depends on fields\n // Otherwise this causes some weird UI display issues\n\n if (hideField.classList.contains('mppw-form-field--is-invalid')) {\n hideField.classList.remove('mppw-form-field--is-invalid');\n\n if (hideField.nextSibling) {\n if (hideField.nextSibling.classList.contains('mppw-form-field__message_container')) {\n hideField.nextSibling.remove();\n }\n }\n } // Add disabled to prevent form validation issues on hidden inputs\n\n\n var _iterator5 = _createForOfIteratorHelper(inputElements),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var el = _step5.value;\n\n if (el.type === 'radio') {\n // Clear any previous radio checked options\n el.checked = 0;\n }\n\n el.setAttribute(\"disabled\", true);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n var _iterator6 = _createForOfIteratorHelper(selectElements),\n _step6;\n\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var _el3 = _step6.value;\n\n _el3.setAttribute(\"disabled\", true);\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n\n var _iterator7 = _createForOfIteratorHelper(textareaElements),\n _step7;\n\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n var _el4 = _step7.value;\n\n _el4.setAttribute(\"disabled\", true);\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n }\n } // Flattens a tree\n\n }, {\n key: \"FlattenTree\",\n value: function FlattenTree(root) {\n var stack = [],\n array = [],\n hashMap = {},\n nodeRoot = root;\n stack.push(nodeRoot);\n\n while (stack.length !== 0) {\n var node = stack.pop();\n\n if (node) {\n if (node.children.length <= 0) {\n if (!hashMap[node.nodeId]) {\n hashMap[node.nodeId] = true;\n array.push(node);\n }\n } else {\n if (!hashMap[node.nodeId]) {\n hashMap[node.nodeId] = true;\n\n var tempNode = _objectSpread({}, node);\n\n tempNode.children = [];\n array.push(tempNode);\n }\n\n for (var i = node.children.length - 1; i >= 0; i--) {\n stack.push(node.children[i]);\n }\n }\n }\n }\n\n return array;\n }\n }, {\n key: \"HideAllElements\",\n value: function HideAllElements(elementsArray, root) {\n var formRoot = root;\n\n var _iterator8 = _createForOfIteratorHelper(elementsArray),\n _step8;\n\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var el = _step8.value;\n this.HideElement(el, formRoot);\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n } // Shows or hides inputs based on depends on value\n\n }, {\n key: \"ShowHideDependsOnElements\",\n value: function ShowHideDependsOnElements(dependsOnId, dependsOnValue, root, customFieldsTree) {\n var formRoot = root; // Try to find node at top-level array location based on dependsonid\n\n var node = customFieldsTree.find(function (n) {\n return n.nodeId === dependsOnId;\n }); // If the node was not found at the top-level location\n // all levels of children need to be searched\n\n if (node === undefined || node === null) {\n for (var i = 0; i < customFieldsTree.length; i++) {\n node = this.FindNodeById(customFieldsTree[i], dependsOnId);\n\n if (node !== undefined && node !== null) {\n break;\n }\n }\n } // Set the nodesToHide initially to the node found above\n\n\n var nodesToHide = node; // If this node has children then set it to those children\n\n if (node) {\n if (node.children.length > 0) {\n nodesToHide = node.children.filter(function (n) {\n return n.value != dependsOnValue;\n });\n }\n\n var _iterator9 = _createForOfIteratorHelper(nodesToHide),\n _step9;\n\n try {\n for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {\n var _node = _step9.value;\n // Create a flattened array of all elements at this nodes level\n var flattenedArray = this.FlattenTree(_node); // Take the flattened array and hide all elements within it\n\n this.HideAllElements(flattenedArray, formRoot);\n }\n } catch (err) {\n _iterator9.e(err);\n } finally {\n _iterator9.f();\n }\n } // Get all dependent fields to show\n\n\n var showFields = formRoot.querySelectorAll(\"[data-depends-on='\".concat(dependsOnId, \"']\"));\n\n for (var i = 0; i < showFields.length; i++) {\n var dataAttrValue = showFields[i].getAttribute(\"data-depends-on-value\"); // Get all inputs for the given div\n\n var inputElements = showFields[i].getElementsByTagName(\"input\");\n var textareaElements = showFields[i].getElementsByTagName(\"textarea\");\n var selectElements = showFields[i].getElementsByTagName(\"select\");\n\n if (dataAttrValue === dependsOnValue) {\n // Show fields\n showFields[i].style.display = 'block'; // Remove the disabled attribute on elements\n\n var _iterator10 = _createForOfIteratorHelper(inputElements),\n _step10;\n\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var el = _step10.value;\n el.removeAttribute(\"disabled\");\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n\n var _iterator11 = _createForOfIteratorHelper(selectElements),\n _step11;\n\n try {\n for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n var _el5 = _step11.value;\n\n _el5.removeAttribute(\"disabled\");\n }\n } catch (err) {\n _iterator11.e(err);\n } finally {\n _iterator11.f();\n }\n\n var _iterator12 = _createForOfIteratorHelper(textareaElements),\n _step12;\n\n try {\n for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n var _el6 = _step12.value;\n\n _el6.removeAttribute(\"disabled\");\n }\n } catch (err) {\n _iterator12.e(err);\n } finally {\n _iterator12.f();\n }\n }\n }\n }\n }, {\n key: \"BuildFormControl\",\n value: function BuildFormControl(fieldData, formContainer, root) {\n var formFieldBuilder = new FormFieldBuilder(); // The types of fields\n\n var FieldTypes = {\n \"TextBox\": 1,\n \"Textarea\": 2,\n \"Date\": 3,\n \"VerticalRadioButtons\": 4,\n \"DropdownList\": 5,\n \"Instructions\": 6,\n \"HorizontalRadioButtons\": 7,\n \"Checkbox\": 8,\n \"FileUpload\": 9\n }; // Assign passed in fieldData\n\n var Form_Field_ID = fieldData.Form_Field_ID,\n Field_Label = fieldData.Field_Label,\n Alternate_Label = fieldData.Alternate_Label,\n Field_Type_ID = fieldData.Field_Type_ID,\n Required = fieldData.Required,\n Field_Order = fieldData.Field_Order,\n Field_Values = fieldData.Field_Values,\n Depends_On = fieldData.Depends_On,\n Depends_On_Value = fieldData.Depends_On_Value;\n var Label = !!Alternate_Label ? Alternate_Label : Field_Label;\n var controlHtml = \"\";\n\n switch (fieldData[\"Field_Type_ID\"]) {\n case FieldTypes.TextBox:\n if (!!Depends_On && !!Depends_On_Value) {\n // Set field to be initially hidden/disabled.\n // Once the user sets a value for the parent depends on field will they be shown\n controlHtml = formFieldBuilder.BuildCustomTextInput(Form_Field_ID, Field_Label, Required, '', '', true, Depends_On, Depends_On_Value, 250, true, Alternate_Label);\n } else {\n controlHtml = formFieldBuilder.BuildCustomTextInput(Form_Field_ID, Field_Label, Required, '', '', false, '', '', 250, true, Alternate_Label);\n }\n\n break;\n\n case FieldTypes.Textarea:\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomTextarea(Form_Field_ID, Field_Label, Required, true, 30000, true, Depends_On, Depends_On_Value, Alternate_Label);\n } else {\n controlHtml = formFieldBuilder.BuildCustomTextarea(Form_Field_ID, Field_Label, Required, true, 30000, null, '', '', Alternate_Label);\n }\n\n break;\n\n case FieldTypes.Date:\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomDateInput(Form_Field_ID, Field_Label, Required, '', '', '', '', true, Depends_On, Depends_On_Value, Alternate_Label);\n } else {\n controlHtml = formFieldBuilder.BuildCustomDateInput(Form_Field_ID, Field_Label, Required, '', '', '', '', null, '', '', Alternate_Label);\n }\n\n break;\n\n case FieldTypes.VerticalRadioButtons:\n var vRadioOptions = Field_Values.split(/\\r?\\n/);\n\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomVerticalRadio(Form_Field_ID, Field_Label, Required, vRadioOptions, true, Depends_On, Depends_On_Value, Alternate_Label);\n } else {\n controlHtml = formFieldBuilder.BuildCustomVerticalRadio(Form_Field_ID, Field_Label, Required, vRadioOptions, null, '', '', Alternate_Label);\n }\n\n break;\n\n case FieldTypes.DropdownList:\n var selectOptions = Field_Values.split(/\\r?\\n/);\n\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomSelect(Form_Field_ID, Field_Label, Required, selectOptions, true, Depends_On, Depends_On_Value, Alternate_Label);\n } else {\n controlHtml = formFieldBuilder.BuildCustomSelect(Form_Field_ID, Field_Label, Required, selectOptions, null, '', '', Alternate_Label);\n }\n\n break;\n\n case FieldTypes.Instructions:\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomParagraph(Label, true, Depends_On, Depends_On_Value, Form_Field_ID);\n } else {\n controlHtml = formFieldBuilder.BuildCustomParagraph(Label);\n }\n\n break;\n\n case FieldTypes.HorizontalRadioButtons:\n var hRadioOptions = Field_Values.split(/\\r?\\n/);\n\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomHorizontalRadio(Form_Field_ID, Field_Label, Required, hRadioOptions, true, Depends_On, Depends_On_Value, Alternate_Label);\n } else {\n controlHtml = formFieldBuilder.BuildCustomHorizontalRadio(Form_Field_ID, Field_Label, Required, hRadioOptions, null, '', '', Alternate_Label);\n }\n\n break;\n\n case FieldTypes.Checkbox:\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomCheckbox(Form_Field_ID, Label, Required, true, Depends_On, Depends_On_Value);\n } else {\n controlHtml = formFieldBuilder.BuildCustomCheckbox(Form_Field_ID, Label, Required);\n }\n\n break;\n\n case FieldTypes.FileUpload:\n var fileUploadHtml = '';\n\n if (!!Depends_On && !!Depends_On_Value) {\n fileUploadHtml = formFieldBuilder.BuildCustomFileUploader(Form_Field_ID, Field_Label, Required, '', true, Depends_On, Depends_On_Value, Alternate_Label);\n } else {\n fileUploadHtml = formFieldBuilder.BuildCustomFileUploader(Form_Field_ID, Field_Label, Required, '', null, '', '', Alternate_Label);\n }\n\n var fileUploader = new FileUploader();\n fileUploader.InitializeFileUploader(Form_Field_ID, formContainer, fileUploadHtml, root, this._i18n.invalidFileTypeMessage, this._i18n.invalidFileSizeMessage, this._i18n.selectDifferentFileMessage);\n break;\n\n default:\n if (!!Depends_On && !!Depends_On_Value) {\n controlHtml = formFieldBuilder.BuildCustomTextInput(Form_Field_ID, Field_Label, Required, '', '', true, Depends_On, Depends_On_Value, 250, true, Alternate_Label);\n } else {\n controlHtml = formFieldBuilder.BuildCustomTextInput(Form_Field_ID, Field_Label, Required, '', '', false, '', '', 250, true, Alternate_Label);\n }\n\n break;\n }\n\n return controlHtml;\n } // Draw the contact form based on the custom form template html file\n\n }, {\n key: \"DrawContactForm\",\n value: function DrawContactForm(i18n, formContainer) {\n var contactFormHtml = `<div id=\"contactDetailsDiv\"><div class=\"mppw-row\"><div class=\"mppw-col\"><h3>${i18n.contactLabel}</h3></div></div><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"firstName\" name=\"FirstName\" class=\"mppw-form-field__control\" required=\"\" data-required-message=\"First Name is required\"> <label class=\"mppw-form-field__label\" for=\"firstName\">${i18n.firstNameLabel}*:</label></div></div><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"lastName\" name=\"LastName\" class=\"mppw-form-field__control\" required=\"\" data-required-message=\"Last Name is required\"> <label class=\"mppw-form-field__label\" for=\"lastName\">${i18n.lastNameLabel}*:</label></div></div></div><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"email\" id=\"emailAddress\" name=\"EmailAddress\" class=\"mppw-form-field__control\" required=\"\" data-require-if-blank=\"MobilePhoneNumber\" data-required-message=\"${i18n.phoneOrEmailRequiredLabel}\"> <label class=\"mppw-form-field__label\" for=\"emailAddress\">${i18n.emailAddressLabel}*:</label></div></div><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"tel\" id=\"mobilePhone\" name=\"MobilePhoneNumber\" class=\"mppw-form-field__control\" required=\"\" data-require-if-blank=\"EmailAddress\" data-required-message=\"${i18n.phoneOrEmailRequiredLabel}\"> <label class=\"mppw-form-field__label\" for=\"mobilePhone\">${i18n.mobilePhoneLabel}*:</label></div></div></div></div>` ;\n var $formRow = document.createElement(\"div\");\n var $formControl = document.createElement(\"div\");\n $formControl.innerHTML = contactFormHtml;\n $formRow.appendChild($formControl);\n formContainer.appendChild($formRow);\n } // Draw the address form based on the custom form template html file\n\n }, {\n key: \"DrawAddressForm\",\n value: function DrawAddressForm(i18n, formContainer, countryDropdownData) {\n this._formFieldBuilder = new FormFieldBuilder();\n var addressFormHtml = `<div class=\"mppw-row\"><div class=\"mppw-col\"><h3>${i18n.addressLabel}</h3></div></div><div class=\"mppw-row\"><div class=\"mppw-col\">${this._formFieldBuilder.BuildCustomFormSelect(\"Country\", i18n.countryLabel, true, countryDropdownData)}</div></div><div class=\"mppw-form-field\"><input type=\"text\" id=\"addressLine1\" name=\"AddressLine1\" class=\"mppw-form-field__control\" required=\"\" data-required-message=\"Address Line 1 is required\"> <label class=\"mppw-form-field__label\" for=\"addressLine1\">${i18n.addressLineLabel} 1*:</label></div><div class=\"mppw-form-field\"><input type=\"text\" id=\"addressLine2\" name=\"AddressLine2\" class=\"mppw-form-field__control\"> <label class=\"mppw-form-field__label\" for=\"addressLine2\">${i18n.addressLineLabel} 2:</label></div><div class=\"mppw-row\"><div class=\"mpp-customform-col-4\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"city\" name=\"City\" class=\"mppw-form-field__control\" required=\"\" data-required-message=\"City is required\"> <label class=\"mppw-form-field__label\" for=\"addressLine1\">${i18n.cityLabel}*:</label></div></div><div class=\"mpp-customform-col-4\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"stateRegion\" name=\"StateRegion\" class=\"mppw-form-field__control\" required=\"\" data-required-message=\"State is required\"> <label class=\"mppw-form-field__label\" for=\"addressLine1\">${i18n.stateRegionLabel}*:</label></div></div><div class=\"mpp-customform-col-4\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"postalCode\" name=\"PostalCode\" class=\"mppw-form-field__control\" required=\"\" data-required-message=\"Postal Code is required\"> <label class=\"mppw-form-field__label\" for=\"addressLine1\">${i18n.postalCodeLabel}*:</label></div></div></div>` ;\n var $formRow = document.createElement(\"div\");\n var $formControl = document.createElement(\"div\");\n $formControl.innerHTML = addressFormHtml;\n $formRow.appendChild($formControl);\n formContainer.appendChild($formRow);\n }\n }, {\n key: \"BuildHtml\",\n value: function BuildHtml(elementType, options, text, click) {\n var el = document.createElement(elementType);\n\n if (!!options) {\n options.forEach(function (opt) {\n if (opt[0] === \"class\") {\n el.classList.add(opt[1]);\n return;\n }\n\n el.setAttribute(opt[0], opt[1]);\n });\n }\n\n if (!!text) {\n el.appendChild(document.createTextNode(text));\n }\n\n if (!!click) {\n el.addEventListener(\"click\", click);\n }\n\n return el;\n }\n }]);\n\n return CustomFormBuilder;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { I18N } from \"../Shared/I18n\";\nexport var DropdownBuilder = /*#__PURE__*/function () {\n function DropdownBuilder() {\n _classCallCheck(this, DropdownBuilder);\n\n this._locale = null;\n } // Removes all <option> elements from select and populates with data formatted as id, value\n\n\n _createClass(DropdownBuilder, null, [{\n key: \"LoadDropdown\",\n value: function LoadDropdown(selectElement, data, placeholder) {\n // Remove all dropdown options:\n for (var j = selectElement.options.length - 1; j >= 0; j--) {\n selectElement.remove(j);\n } // Create empty first item:\n\n\n var firstOpt = document.createElement(\"option\");\n firstOpt.innerText = placeholder ? placeholder : \"- All Records -\";\n firstOpt.value = \"\";\n selectElement.appendChild(firstOpt); // Create option elements based on data:\n\n for (var i = 0; i < data.length; i++) {\n var opt = document.createElement(\"option\");\n opt.value = data[i].id;\n opt.innerText = data[i].value || data[i].name;\n\n if (data[i].disabled) {\n opt.setAttribute(\"disabled\", \"\");\n opt.style = \"background-color: #d9d8d8\";\n }\n\n selectElement.appendChild(opt);\n }\n } // Removes all <option> elements from select and populates with data formatted\n\n }, {\n key: \"BuildDropdownWithOptGroup\",\n value: function BuildDropdownWithOptGroup(selectElement, data, placeholder) {\n // Remove all dropdown optgroups and options:\n selectElement.innerHTML = \"\";\n\n var groupBy = function groupBy(keys) {\n return function (array) {\n return array.reduce(function (objectsByKeyValue, obj) {\n var value = keys.map(function (key) {\n return obj[key];\n });\n objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);\n return objectsByKeyValue;\n }, {});\n };\n };\n\n var groupByGroupName = groupBy(['groupName']);\n var attributeByGroupName = Object.keys(groupByGroupName(data));\n var firstOpt = document.createElement(\"option\");\n firstOpt.innerText = placeholder ? placeholder : \"- Select -\";\n firstOpt.value = \"\";\n selectElement.appendChild(firstOpt);\n attributeByGroupName.forEach(function (groupName) {\n var optgroup = document.createElement(\"optgroup\");\n optgroup.label = groupName;\n var attrs = data.filter(function (attr) {\n return attr.groupName === groupName;\n });\n\n for (var i = 0; i < attrs.length; i++) {\n var opt = document.createElement(\"option\");\n opt.value = attrs[i].id;\n opt.innerText = attrs[i].name;\n optgroup.appendChild(opt);\n }\n\n selectElement.appendChild(optgroup);\n });\n } // Removes all <option> elements from select and populates with data formatted as id, value\n\n }, {\n key: \"BuildCountryDropdown\",\n value: function BuildCountryDropdown(selectElement, data, placeholder) {\n // Remove all dropdown options:\n for (var j = selectElement.options.length - 1; j >= 0; j--) {\n selectElement.remove(j);\n } // Create empty first item:\n\n\n var firstOpt = document.createElement(\"option\");\n firstOpt.innerText = placeholder ? placeholder : \"- All Records -\";\n firstOpt.value = \"\";\n selectElement.appendChild(firstOpt); // Create option elements based on data:\n\n for (var i = 0; i < data.length; i++) {\n if (data[i].abbreviation) {\n var opt = document.createElement(\"option\");\n opt.value = data[i].abbreviation;\n opt.innerText = data[i].value || data[i].name;\n\n if (data[i].abbreviation === 'US') {\n // move USA to top of optionsList\n selectElement.insertBefore(opt, selectElement[1]);\n } else {\n selectElement.appendChild(opt);\n }\n }\n }\n }\n }, {\n key: \"_GetMonthBaseOnLocale\",\n value: function _GetMonthBaseOnLocale(idx) {\n var objDate = new Date();\n objDate.setDate(1);\n objDate.setMonth(idx - 1);\n var month = objDate.toLocaleString(this._locale, {\n month: \"long\"\n });\n return month;\n }\n }, {\n key: \"BuildMonthsList\",\n value: function BuildMonthsList(selectElement, placeholder) {\n // Remove all dropdown options:\n for (var j = selectElement.options.length - 1; j >= 0; j--) {\n selectElement.remove(j);\n } // Create empty first item:\n\n\n var firstOpt = document.createElement(\"option\");\n firstOpt.innerText = placeholder ? placeholder : \"- All Records -\";\n firstOpt.value = \"\";\n selectElement.appendChild(firstOpt);\n this._locale = I18N.GetCurrentLocale();\n var monthNames = [];\n\n for (var m = 1; m <= 12; m++) {\n monthNames.push(this._GetMonthBaseOnLocale(m));\n }\n\n for (var i = 0; i < monthNames.length; i++) {\n var opt = document.createElement(\"option\");\n opt.value = i + 1;\n opt.innerText = monthNames[i];\n selectElement.appendChild(opt);\n }\n } // istanbul ignore next\n\n }, {\n key: \"GetCurrentMonth\",\n value: function GetCurrentMonth() {\n var date = new Date();\n return date.getMonth() + 1;\n }\n }, {\n key: \"ReduceMonthDropDown\",\n value: function ReduceMonthDropDown(selectElement, numberOfMonthsOut) {\n var month = this.GetCurrentMonth();\n var keptMonths = [];\n var monthValue = 0;\n\n for (var rr = 0; rr < numberOfMonthsOut; rr++) {\n monthValue = month + rr;\n\n if (monthValue > 12) {\n monthValue = monthValue - 12;\n }\n\n keptMonths.push(monthValue);\n }\n\n Array.from(selectElement.querySelectorAll(\"option\")).forEach(function (opt) {\n var value = opt.value;\n var monthNumber = Number(\"+\".concat(value));\n\n if (!!value && !keptMonths.includes(monthNumber)) {\n opt.disabled = true;\n opt.style.color = \"#C0C0C0\";\n }\n });\n }\n }]);\n\n return DropdownBuilder;\n}();","function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nexport var FormManager = /*#__PURE__*/function () {\n // Constructor:\n function FormManager(form) {\n _classCallCheck(this, FormManager);\n\n this._form = form;\n this._isDirty = false;\n this._handleUnloadPageFunction = null;\n\n this._wireupValidation();\n\n this._form.setAttribute(\"novalidate\", true);\n }\n\n _createClass(FormManager, [{\n key: \"Dispose\",\n value: function Dispose() {\n if (this._handleUnloadPageFunction != null) {\n window.removeEventListener(\"beforeunload\", this._handleUnloadPageFunction);\n }\n } // Method for checking validity of entire form:\n\n }, {\n key: \"IsValid\",\n value: function IsValid() {\n var isValid = true;\n\n var _iterator = _createForOfIteratorHelper(this._form.elements),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var field = _step.value;\n\n if (field.type != \"submit\" && field.type != \"reset\" && field.type != \"hidden\" && field.type != \"button\" && !field.disabled) {\n if (!this.ValidateField(field)) {\n isValid = false;\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return isValid;\n }\n }, {\n key: \"SetIsDirty\",\n value: function SetIsDirty(value) {\n this._isDirty = value;\n } // Method for checking validity of particular form field\n\n }, {\n key: \"ValidateField\",\n value: function ValidateField(field) {\n var isValid = true;\n\n if (!!field.dataset.ignoreValidation) {\n return true;\n }\n\n var requiredMessage = field.dataset.requiredMessage || \"Required\";\n var invalidMessage = field.dataset.invalidMessage || \"Invalid format\";\n field.setAttribute('value', field.value); // Format validation:\n\n if (field.type == \"date\" && !!field.getAttribute(\"min\") && new Date(field.getAttribute(\"min\")) > new Date(field.value)) {\n this._setInvalid(field, invalidMessage);\n\n isValid = false;\n } else if (field.type == \"date\" && !!field.getAttribute(\"max\") && new Date(field.value) > new Date(field.getAttribute(\"max\"))) {\n this._setInvalid(field, invalidMessage);\n\n isValid = false;\n } else if (field.type != \"date\" && !!field.getAttribute(\"min\") && field.getAttribute(\"min\") > field.value.length) {\n this._setInvalid(field, invalidMessage);\n\n isValid = false;\n } else if (field.type != \"date\" && !!field.getAttribute(\"max\") && field.value.length > field.getAttribute(\"max\")) {\n this._setInvalid(field, invalidMessage);\n\n isValid = false;\n } else if (!!field.getAttribute(\"maxlength\") && field.value.length > field.getAttribute(\"maxlength\")) {\n this._setInvalid(field, invalidMessage);\n\n isValid = false;\n } else if (field.type === \"tel\" && field.value.length > 0 && field.value[0] !== '+' && !FormManager.PHONE_REGEX.test(field.value)) {\n this._setInvalid(field, invalidMessage);\n\n isValid = false;\n } else if (field.type === \"email\" && field.value.length > 0 && !FormManager.EMAIL_REGEX.test(field.value)) {\n this._setInvalid(field, invalidMessage);\n\n isValid = false;\n } else {\n this._setValid(field);\n } // Story: Make email required if phone is empty (and vice-versa)\n // Alternate field dependency (must have required attribute and require-if-blank=\"<alternate field name>\")\n // i.e. This field is required if the provided field is not populated\n\n\n var dependencyPassed = true;\n\n if (!!field.dataset.requireIfBlank) {\n var $dependentField = this._form.querySelector(\"[name=\\\"\".concat(field.dataset.requireIfBlank, \"\\\"]\"));\n\n if (!!$dependentField) {\n dependencyPassed = !this._checkRequired($dependentField);\n }\n } // Parent field dependency (must have required attribute and require-if=\"<parent field name>\")\n // i.e. This field is required if the provided field is populated\n\n\n if (!!field.dataset.requireIf) {\n var $parentField = this._form.querySelector(\"[name=\\\"\".concat(field.dataset.requireIf, \"\\\"]\"));\n\n if (!!$parentField) {\n dependencyPassed = this._checkRequired($parentField);\n }\n } // Required validation:\n\n\n if (field.getAttribute(\"required\") != null && isValid == true && dependencyPassed == true) {\n isValid = this._checkRequired(field);\n\n if (!isValid) {\n this._setInvalid(field, requiredMessage);\n } else {\n this._setValid(field);\n }\n }\n\n return isValid;\n } // Method for resetting form after a successful submission\n\n }, {\n key: \"Reset\",\n value: function Reset() {\n var form = this._form;\n form.reset(); // TODO: remove when we figure out why reset() doesn't work for group-details contactForm\n\n this.ResetFormValues();\n this.SetIsDirty(false);\n }\n }, {\n key: \"ResetValidationMessages\",\n value: function ResetValidationMessages() {\n var form = this._form;\n\n for (var i = 0; i < form.length; i++) {\n var formElement = form.elements[i];\n\n switch (formElement.type) {\n case 'submit':\n case 'hidden':\n case 'reset':\n case 'button':\n // Do not reset value when type is one of above\n break;\n\n default:\n formElement.parentElement.classList.remove(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n formElement.parentElement.classList.remove(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n\n this._clearMessages(formElement);\n\n }\n }\n } // Resets form element values to empty string\n\n }, {\n key: \"ResetFormValues\",\n value: function ResetFormValues() {\n var form = this._form;\n\n for (var i = 0; i < form.length; i++) {\n var formElement = form.elements[i];\n\n switch (formElement.type) {\n case 'submit':\n case 'hidden':\n case 'reset':\n case 'button':\n // Do not reset value when type is one of above\n break;\n\n default:\n formElement.setAttribute('value', '');\n formElement.parentElement.classList.remove(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n formElement.parentElement.classList.remove(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n\n this._clearMessages(formElement);\n\n if (formElement.type === 'textarea') {//formElement.parentElement.lastElementChild.innerHTML = '';\n }\n\n }\n }\n } //Private methods:\n\n }, {\n key: \"_checkRequired\",\n value: function _checkRequired(field) {\n var isValid = true;\n\n switch (field.type) {\n case \"checkbox\":\n if (!!field.dataset.checkboxGroup) {\n // At least one checkbox in group satisfies requirement:\n isValid = this._form.querySelectorAll(\"input[data-checkbox-group='\".concat(field.dataset.checkboxGroup, \"']:checked\")).length > 0;\n } else {\n isValid = field.checked;\n }\n\n break;\n\n case \"radio\":\n isValid = this._form.querySelectorAll(\"input[name='\".concat(field.name, \"']:checked\")).length > 0;\n break;\n\n case \"select-one\":\n case \"select-multiple\":\n isValid = !!field.value;\n break;\n\n default:\n isValid = field.value.length > 0;\n }\n\n return isValid;\n }\n }, {\n key: \"_wireupValidation\",\n value: function _wireupValidation() {\n var _this = this;\n\n //Notify user when user is navigating away from dirty form:\n this._handleUnloadPageFunction = function (event) {\n if (!!_this._isDirty) {\n event.returnValue = true; // Browsers no longer display this custom message\n\n return \"Are you sure you want to navigate away from this page? Changes made will not be saved.\";\n }\n };\n\n window.addEventListener(\"beforeunload\", this._handleUnloadPageFunction); //Immediately validate each field on change:\n\n var allElements = this._form.elements;\n Array.from(allElements).forEach(function (element) {\n element.addEventListener(\"change\", function () {\n _this.ValidateField(element);\n\n _this.SetIsDirty(true); //Validate dependent fields:\n\n\n if (!!element.dataset.requireIfBlank) {\n var dependentField = _this._form.querySelector(\"[name=\\\"\".concat(element.dataset.requireIfBlank, \"\\\"]\"));\n\n if (!!dependentField) {\n _this.ValidateField(dependentField);\n }\n }\n\n if (!!element.dataset.requireIf) {\n var parentField = _this._form.querySelector(\"[name=\\\"\".concat(element.dataset.requireIf, \"\\\"]\"));\n\n if (!!parentField) {\n _this.ValidateField(parentField);\n }\n }\n });\n }); // Counter for text areas:\n\n var textAreas = this._form.querySelectorAll(\"textarea\");\n\n Array.from(textAreas).forEach(function (element) {\n element.addEventListener(\"keyup\", function () {\n var characterCount = element.value.length;\n var maxCount = element.getAttribute('maxlength') || 500;\n var counterDiv = element.nextElementSibling.nextElementSibling; // standardize placement of structure for nextElementSibling\n\n if (!!counterDiv && counterDiv.classList.contains(FormManager.TEXTAREA_COUNTER_CLASSNAME)) {\n if (characterCount > 0) {\n counterDiv.innerText = \"\".concat(characterCount, \" / \").concat(maxCount);\n } else {\n counterDiv.innerText = '';\n }\n }\n });\n }); // Counter for input text boxes\n // Right now only used in mpp-custom-forms\n\n var textInputs = this._form.querySelectorAll('[data-input-text-counter]');\n\n Array.from(textInputs).forEach(function (element) {\n element.addEventListener(\"keyup\", function () {\n var characterCount = element.value.length;\n var maxCount = element.getAttribute('maxlength') || 500;\n var counterDiv = element.nextElementSibling.nextElementSibling; // standardize placement of structure for nextElementSibling\n\n if (!!counterDiv && counterDiv.classList.contains(FormManager.TEXTAREA_COUNTER_CLASSNAME)) {\n if (characterCount > 0) {\n counterDiv.innerText = \"\".concat(characterCount, \" / \").concat(maxCount);\n } else {\n counterDiv.innerText = '';\n }\n }\n });\n }); // Mask for phone numbers:\n\n var phoneFields = this._form.querySelectorAll(\"input[type='tel']\");\n\n Array.from(phoneFields).forEach(function (element) {\n element.addEventListener(\"input\", function (e) {\n if (!e.target.value.startsWith(\"+\")) {\n var x = e.target.value.replace(/\\D/g, '');\n\n if (x.length > 10) {\n x = x.match(/(\\d{0,1})(\\d{0,3})(\\d{0,3})(\\d{0,4})/);\n e.target.value = !x[2] ? x[1] : x[1] + '-' + x[2] + (x[3] ? '-' + x[3] : '') + (x[4] ? '-' + x[4] : '');\n } else {\n x = x.match(/(\\d{0,3})(\\d{0,3})(\\d{0,4})/);\n e.target.value = !x[2] ? x[1] : x[1] + '-' + x[2] + (x[3] ? '-' + x[3] : '');\n }\n } else {\n var y = e.target.value.replace(/[^0-9\\+\\-]/g, '');\n e.target.value = y;\n }\n });\n });\n }\n }, {\n key: \"_setInvalid\",\n value: function _setInvalid(field, message) {\n var formField = field.closest(\".\".concat(FormManager.FIELD_CONTAINER_CLASSNAME));\n var formFieldAlt = field.closest(\".\".concat(FormManager.FIELD_CONTAINER_CLASSNAME_ALT));\n var existingMessageDiv = formField === null ? formFieldAlt.nextSibling : formField.nextSibling;\n\n if (!!existingMessageDiv && !!existingMessageDiv.classList && existingMessageDiv.classList.contains(FormManager.MESSAGE_CONTAINER_CLASSNAME)) {\n existingMessageDiv.parentNode.removeChild(existingMessageDiv);\n }\n\n if (!!formField) {\n formField.classList.remove(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n formField.classList.add(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n } else {\n formFieldAlt.classList.remove(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n formFieldAlt.classList.add(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n }\n\n if (message !== \"\") {\n var messageDiv = document.createElement(\"div\");\n messageDiv.setAttribute(\"class\", FormManager.MESSAGE_CONTAINER_CLASSNAME);\n messageDiv.innerHTML = \"<label class=\\\"mppw-form-field__message--is-invalid\\\">\".concat(message, \"</label>\");\n\n if (!!formField) {\n formField.parentNode.insertBefore(messageDiv, formField.nextSibling);\n } else {\n formFieldAlt.parentNode.insertBefore(messageDiv, formFieldAlt.nextSibling);\n }\n }\n }\n }, {\n key: \"_setValid\",\n value: function _setValid(field) {\n var formField = field.closest(\".\".concat(FormManager.FIELD_CONTAINER_CLASSNAME));\n var formFieldAlt = field.closest(\".\".concat(FormManager.FIELD_CONTAINER_CLASSNAME_ALT));\n var existingMessageDiv = formField === null ? formFieldAlt.nextSibling : formField.nextSibling;\n\n if (!!existingMessageDiv && !!existingMessageDiv.classList && existingMessageDiv.classList.contains(FormManager.MESSAGE_CONTAINER_CLASSNAME)) {\n existingMessageDiv.parentNode.removeChild(existingMessageDiv);\n }\n\n if (!!formField) {\n formField.classList.remove(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n formField.classList.add(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n } else {\n formFieldAlt.classList.remove(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n formFieldAlt.classList.add(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n }\n }\n }, {\n key: \"_clearMessages\",\n value: function _clearMessages(field) {\n var formField = field.closest(\".\".concat(FormManager.FIELD_CONTAINER_CLASSNAME));\n var formFieldAlt = field.closest(\".\".concat(FormManager.FIELD_CONTAINER_CLASSNAME_ALT));\n var existingMessageDiv = formField === null ? formFieldAlt.nextSibling : formField.nextSibling;\n\n if (!!existingMessageDiv && !!existingMessageDiv.classList && existingMessageDiv.classList.contains(FormManager.MESSAGE_CONTAINER_CLASSNAME)) {\n existingMessageDiv.parentNode.removeChild(existingMessageDiv);\n }\n\n if (!!formField) {\n formField.classList.remove(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n formField.classList.remove(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n } else {\n formFieldAlt.classList.remove(FormManager.FIELD_CONTAINER_INVALID_CLASSNAME);\n formFieldAlt.classList.remove(FormManager.FIELD_CONTAINER_VALID_CLASSNAME);\n }\n }\n }], [{\n key: \"TEXTAREA_COUNTER_CLASSNAME\",\n get: //Constants:\n function get() {\n return \"mppw-textarea-counter\";\n }\n }, {\n key: \"MESSAGE_CONTAINER_CLASSNAME\",\n get: function get() {\n return \"mppw-form-field__message_container\";\n }\n }, {\n key: \"FIELD_CONTAINER_CLASSNAME\",\n get: function get() {\n return \"mppw-form-field\";\n }\n }, {\n key: \"FIELD_CONTAINER_CLASSNAME_ALT\",\n get: function get() {\n return \"mppw-form-field-alt\";\n }\n }, {\n key: \"FIELD_CONTAINER_VALID_CLASSNAME\",\n get: function get() {\n return \"mppw-form-field--is-valid\";\n }\n }, {\n key: \"FIELD_CONTAINER_INVALID_CLASSNAME\",\n get: function get() {\n return \"mppw-form-field--is-invalid\";\n }\n }, {\n key: \"EMAIL_REGEX\",\n get: function get() {\n return /^(([^<>()[\\]\\\\.,;:\\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,}))$/;\n }\n }, {\n key: \"PHONE_REGEX\",\n get: function get() {\n return /^((\\d{3}-\\d{3}-\\d{4}( x\\d+)?)|(\\d{11}( x\\d+)?)|(\\+\\d.*))$/;\n }\n }]);\n\n return FormManager;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"../Shared/Configuration\";\nimport { Ajax } from \"./Ajax\";\nexport var CommunicationService = /*#__PURE__*/function () {\n function CommunicationService() {\n _classCallCheck(this, CommunicationService);\n\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n }\n\n _createClass(CommunicationService, [{\n key: \"SendEmail\",\n value: function SendEmail(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/CommunicationApi/SendSimpleEmail\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"GetEmailTemplate\",\n value: function GetEmailTemplate(emailTemplateId) {\n var url = \"\".concat(this._appRoot, \"/Api/CommunicationApi/GetEmailTemplate?emailTemplateId=\").concat(emailTemplateId);\n return Ajax.Get(url);\n }\n }]);\n\n return CommunicationService;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { FormManager } from \"./FormManager\";\nimport { CommunicationService } from \"../Services/CommunicationService\";\nexport var ModalBuilder = /*#__PURE__*/function () {\n function ModalBuilder() {\n _classCallCheck(this, ModalBuilder);\n }\n\n _createClass(ModalBuilder, null, [{\n key: \"BuildSendEmailModal\",\n value: function BuildSendEmailModal(senderName, senderEmail) {\n var modal = \"\\n\\t\\t<div class=\\\"mpp-modal-wrapper\\\">\\n\\t\\t\\t<div class=\\\"mpp-modal-window\\\">\\n\\t\\t\\t\\t<span class=\\\"mpp-modal-close-button\\\">✖</span>\\n\\t\\t\\t\\t<div class=\\\"mpp-modal-header\\\">\\n\\t\\t\\t\\t\\t<span class=\\\"mpp-modal-title\\\">Send Email to <span class=\\\"mpp-modal-recepient-name\\\"></span></span>\\n\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t<form id=\\\"sendEmailForm\\\" class=\\\"mppw-form mppw-form-validate\\\">\\n\\t\\t\\t\\t\\t<input type=\\\"hidden\\\" id=\\\"title\\\" name=\\\"title\\\" value=\\\"-1\\\" />\\n\\t\\t\\t\\t\\t<input type=\\\"hidden\\\" id=\\\"EmailToContactId\\\" name=\\\"EmailToContactId\\\" value=\\\"-1\\\" />\\n\\t\\t\\t\\t\\t<input type=\\\"hidden\\\" id=\\\"EmailFromContactId\\\" name=\\\"EmailFromContactId\\\" value=\\\"-1\\\" />\\n\\t\\t\\t\\t\\t<input type=\\\"hidden\\\" id=\\\"RecepientName\\\" name=\\\"RecepientName\\\" value=\\\"-1\\\" />\\n\\t\\t\\t\\t\\t<input type=\\\"hidden\\\" id=\\\"RecepientEmailAddress\\\" name=\\\"RecepientEmailAddress\\\" value=\\\"-1\\\" />\\n\\t\\t\\t\\t\\t<div class=\\\"mpp-modal-body\\\">\";\n\n if (senderName && senderEmail) {\n modal += \"\\n\\t\\t\\t<div class=\\\"mpp-modal-row mpp-modal-row-padding-left\\\">\\n\\t\\t\\t\\t<b>From: </b> \".concat(senderName, \"\\n\\t\\t\\t</div>\\n\\t\\t\\t<div class=\\\"mpp-modal-row mpp-modal-row-padding-left\\\">\\n\\t\\t\\t\\t<b>Email Address: </b> \").concat(senderEmail, \"\\n\\t\\t\\t</div>\\n\\t\\t\\t\");\n } else {\n modal += \"<div class=\\\"mpp-modal-row mppw-form-field\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input name=\\\"SenderFirstName\\\" id=\\\"senderFirstName\\\" class=\\\"mpp-modal-input mppw-form-field__control\\\" required/>\\n\\t\\t\\t\\t\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"SenderFirstName\\\">First Name*</label>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-modal-row mppw-form-field\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input name=\\\"SenderLastName\\\" id=\\\"senderLastName\\\" class=\\\"mpp-modal-input mppw-form-field__control\\\" required/>\\n\\t\\t\\t\\t\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"SenderLastName\\\">Last Name*</label>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-modal-row mppw-form-field\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input type=\\\"email\\\" name=\\\"SenderEmailAddress\\\" id=\\\"senderEmailAddress\\\" class=\\\"mpp-modal-input mppw-form-field__control\\\" required/>\\n\\t\\t\\t\\t\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"SenderEmailAddress\\\">Email Address*</label>\\n\\t\\t\\t\\t\\t\\t</div>\";\n }\n\n modal += \"\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-modal-row mppw-form-field\\\">\\n\\t\\t\\t\\t\\t\\t\\t<input name=\\\"EmailSubject\\\" id=\\\"emailSubject\\\" class=\\\"mpp-modal-input mppw-form-field__control\\\" required/>\\n\\t\\t\\t\\t\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"EmailSubject\\\">Subject*</label>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t\\t<div class=\\\"mpp-modal-row mppw-form-field\\\">\\n\\t\\t\\t\\t\\t\\t\\t<textarea name=\\\"EmailBody\\\" id=\\\"emailBody\\\" class=\\\"mpp-modal-input mppw-form-field__control\\\" rows=\\\"10\\\" required></textarea>\\n\\t\\t\\t\\t\\t\\t\\t<label class=\\\"mppw-form-field__label\\\" for=\\\"emailBody\\\">Your Message*</label>\\n\\t\\t\\t\\t\\t\\t\\t<div class=\\\"mppw-textarea-counter\\\" style=\\\"display: none\\\"></div>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t<div class=\\\"mpp-modal-footer\\\">\\n\\t\\t\\t\\t\\t\\t<input type=\\\"submit\\\" class=\\\"mppw-btn primary mpp-modal-send-button\\\" value=\\\"SEND\\\" />\\n\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t</form>\\n\\t\\t\\t</div>\\n\\t\\t</div>\";\n return modal;\n }\n }, {\n key: \"BindEmailModalEvents\",\n value: function BindEmailModalEvents(_root, _eventData, _resultMessageContainer, _resultMessageText, _userProfile) {\n var _this = this;\n\n var _$sendEmailForm = _root.querySelector(\"#sendEmailForm\");\n\n var sendEmailForm = new FormManager(_$sendEmailForm); // Bind contact card click handler to open email form modal\n\n var clickHandler = function clickHandler(id) {\n var contact = _eventData.contacts.find(function (x) {\n return x.contactId == id;\n });\n\n if (contact && contact.emailAddress) {\n var _$modal = _root.querySelector(\".mpp-modal-wrapper\");\n\n if (_$modal) {\n var titleName = contact.displayName.split(\", \").reverse().join(\" \");\n\n var recepientName = _$modal.querySelector(\".mpp-modal-recepient-name\");\n\n if (recepientName) {\n recepientName.innerHTML = titleName;\n }\n\n var contactId = _$modal.querySelector(\"#EmailToContactId\");\n\n if (contactId) {\n contactId.value = contact.contactId;\n }\n\n var contactFromId = _$modal.querySelector(\"#EmailFromContactId\");\n\n if (contactFromId && _userProfile) {\n contactFromId.value = _userProfile.contactId;\n }\n\n var contactName = _$modal.querySelector(\"#RecepientName\");\n\n if (contactName) {\n contactName.value = titleName;\n }\n\n var contactEmail = _$modal.querySelector(\"#RecepientEmailAddress\");\n\n if (contactEmail) {\n contactEmail.value = contact.emailAddress;\n }\n\n var messageTitle = _$modal.querySelector(\"#title\");\n\n if (messageTitle) {\n messageTitle.value = _eventData.title;\n }\n\n _$modal.classList.add(\"mpp-modal-visible\");\n }\n }\n };\n\n var _$contacts = _root.querySelectorAll(\".mpp-innerpage--contact\");\n\n _$contacts.forEach(function (el) {\n el.addEventListener(\"click\", clickHandler.bind(_this, el.getAttribute(\"data-id\")));\n }); // Bind modal close event. If user clicks outside of form - the modal will be closed\n\n\n var wrapper = _root.querySelector(\".mpp-modal-wrapper\");\n\n if (wrapper) {\n wrapper.addEventListener(\"click\", function (ev) {\n var clickedPath = ev.composedPath().map(function (e) {\n return e.className;\n });\n if (clickedPath[0] !== \"mpp-modal-wrapper mpp-modal-visible\") return;\n sendEmailForm.Reset();\n wrapper.classList.remove(\"mpp-modal-visible\");\n });\n }\n\n var closeBtn = _root.querySelector(\".mpp-modal-close-button\");\n\n if (closeBtn) {\n closeBtn.addEventListener(\"click\", function (ev) {\n sendEmailForm.Reset();\n wrapper.classList.remove(\"mpp-modal-visible\");\n });\n } // Bind email form submit event\n\n\n _$sendEmailForm.addEventListener(\"submit\", function (event) {\n event.preventDefault();\n var communicationService = new CommunicationService();\n\n if (sendEmailForm.IsValid()) {\n var formData = new FormData(_$sendEmailForm);\n\n if (!formData.get(\"EmailToContactId\")) {\n formData.set(\"EmailToContactId\", 0);\n }\n\n communicationService.SendEmail(formData).then(function (emailResponse) {\n var wrapper = _root.querySelector(\".mpp-modal-wrapper\");\n\n sendEmailForm.Reset();\n wrapper.classList.remove(\"mpp-modal-visible\");\n\n _resultMessageContainer.classList.remove(\"mppw-alert__success\");\n\n _resultMessageContainer.classList.remove(\"mppw-alert__info\");\n\n _resultMessageContainer.classList.remove(\"mppw-alert__warning\");\n\n _resultMessageContainer.classList.remove(\"mppw-alert__danger\");\n\n _resultMessageContainer.classList.add(\"mppw-alert__success\");\n\n _resultMessageText.innerHTML = \"Your message was successfully sent\";\n _resultMessageContainer.style.display = \"\";\n })[\"catch\"](function (error) {\n console.error(error);\n var errorMessage = \"Failed to send the email message\";\n\n _resultMessageContainer.classList.remove(\"mppw-alert__success\");\n\n _resultMessageContainer.classList.remove(\"mppw-alert__info\");\n\n _resultMessageContainer.classList.remove(\"mppw-alert__warning\");\n\n _resultMessageContainer.classList.remove(\"mppw-alert__danger\");\n\n _resultMessageContainer.classList.add(\"mppw-alert__danger\");\n\n _resultMessageText.innerHTML = errorMessage;\n _resultMessageContainer.style.display = \"\";\n });\n } else {\n console.warn(\"Form is invalid!!!\");\n }\n });\n }\n }]);\n\n return ModalBuilder;\n}();","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"../Shared/Configuration\";\nimport { Ajax } from \"./Ajax\";\nexport var EventsApiService = /*#__PURE__*/function () {\n function EventsApiService() {\n _classCallCheck(this, EventsApiService);\n\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n }\n\n _createClass(EventsApiService, [{\n key: \"GetMyEvents\",\n value: function GetMyEvents(eventDate) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetMyEvents?eventDate=\").concat(eventDate);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetQRCode\",\n value: function GetQRCode(eventDate) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetQRCode?eventDate=\").concat(eventDate);\n return Ajax.Get(url);\n }\n }, {\n key: \"SavePreCheck\",\n value: function SavePreCheck(eventDate, formData) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/SavePreCheck?eventDate=\").concat(eventDate);\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"GetEvents\",\n value: function GetEvents(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetEvents\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"GetEventRegistrationTotal\",\n value: function GetEventRegistrationTotal(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetEventRegistrationTotal\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"GetEventDetail\",\n value: function GetEventDetail(id) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetEvent/\").concat(id);\n return Ajax.Get(url).then(function (response) {\n return response;\n })[\"catch\"]( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(error) {\n var _errorJson$message;\n\n var errorJson;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return error.json();\n\n case 2:\n errorJson = _context.sent;\n throw new Error((_errorJson$message = errorJson.message) !== null && _errorJson$message !== void 0 ? _errorJson$message : \"Failed to load event data.\");\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n }\n }, {\n key: \"GetEventParticipantsByInvoice\",\n value: function GetEventParticipantsByInvoice(id) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetEventParticipantsByInvoice/\").concat(id);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetEventUserContact\",\n value: function GetEventUserContact(id) {\n var url = \"\".concat(this._appRoot, \"/Api/ContactsApi/GetCurrentBasicContact\");\n return Ajax.Get(url);\n }\n }, {\n key: \"GetConfigurations\",\n value: function GetConfigurations() {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetConfigurations\");\n return Ajax.Get(url);\n }\n }, {\n key: \"SaveRegistration\",\n value: function SaveRegistration(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/SaveRegistration\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"PayInvoice\",\n value: function PayInvoice(invoiceId, amount) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/PayInvoice\");\n return Ajax.Post(url, {\n invoiceId: invoiceId,\n amount: amount\n });\n }\n }, {\n key: \"HasRegistered\",\n value: function HasRegistered(eventId, contactId) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/HasRegistered?eventId=\").concat(eventId).concat(!!contactId ? \"&contactId=\".concat(contactId) : \"\");\n return Ajax.Get(url);\n }\n }, {\n key: \"CheckAvailability\",\n value: function CheckAvailability(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/CheckAvailability\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"GetBaseInvoiceDetail\",\n value: function GetBaseInvoiceDetail(eventParticipantId) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/GetInvoiceDetailByParticipantId/\").concat(eventParticipantId);\n return Ajax.Get(url);\n }\n }, {\n key: \"CheckPendingEventAvailability\",\n value: function CheckPendingEventAvailability(eventId) {\n var url = \"\".concat(this._appRoot, \"/Api/EventsApi/CheckPendingEventAvailability?eventId=\").concat(eventId);\n return Ajax.Get(url);\n }\n }]);\n\n return EventsApiService;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"../Shared/Configuration\";\nimport { Ajax } from \"./Ajax\";\nexport var HouseholdApiService = /*#__PURE__*/function () {\n function HouseholdApiService() {\n _classCallCheck(this, HouseholdApiService);\n\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n }\n\n _createClass(HouseholdApiService, [{\n key: \"GetHousehold\",\n value: function GetHousehold() {\n var url = \"\".concat(this._appRoot, \"/Api/HouseholdApi/GetHousehold\");\n return Ajax.Post(url);\n }\n }, {\n key: \"GetHouseholdMembers\",\n value: function GetHouseholdMembers() {\n var url = \"\".concat(this._appRoot, \"/Api/HouseholdApi/GetHouseholdMembers\");\n return Ajax.Post(url);\n }\n }, {\n key: \"UpdateHousehold\",\n value: function UpdateHousehold(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/HouseholdApi/UpdateHousehold\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"UpdateHouseholdMember\",\n value: function UpdateHouseholdMember(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/HouseholdApi/UpdateHouseholdMember\");\n return Ajax.Post(url, formData);\n }\n }]);\n\n return HouseholdApiService;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nexport var ICSCalendarBuilder = /*#__PURE__*/function () {\n function ICSCalendarBuilder() {\n _classCallCheck(this, ICSCalendarBuilder);\n }\n\n _createClass(ICSCalendarBuilder, null, [{\n key: \"BuildICSHrefString\",\n value: function BuildICSHrefString(eventTitle, eventDescription, eventLocation, eventStartDate, eventEndDate) {\n var isAllDayEvent = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n var icsLink = this.GetICSHrefValue(eventTitle, eventDescription, eventLocation, eventStartDate, eventEndDate, isAllDayEvent);\n return \"<a class=\\\"mppw-ics-link\\\" href=\\\"\".concat(icsLink, \"\\\">Add to Calendar ></a>\");\n }\n }, {\n key: \"GetICSHrefValue\",\n value: function GetICSHrefValue(eventTitle, eventDescription, eventLocation, eventStartDate, eventEndDate) {\n var isAllDayEvent = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n // iOS requires a specific format or does not work\n var startDateFormatted = !!eventStartDate ? eventStartDate.replaceAll('-', '').replaceAll(':', '') + \"Z\" : \"\";\n var endDateFormatted = !!eventEndDate ? eventEndDate.replaceAll('-', '').replaceAll(':', '') + \"Z\" : \"\";\n var newLineEncodingChar = \"%0A\"; // Create ics data link\n\n var icsSummary = \"SUMMARY:\".concat(encodeURIComponent(eventTitle)).concat(newLineEncodingChar);\n var icsDescription = \"DESCRIPTION:\".concat(encodeURIComponent(eventDescription)).concat(newLineEncodingChar);\n var icsLocation = \"LOCATION:\".concat(encodeURIComponent(eventLocation)).concat(newLineEncodingChar);\n var icsEndDate = \"\";\n var icsStartDate = \"\";\n\n if (isAllDayEvent === true) {\n icsStartDate = \"DTSTART;VALUE=DATE:\".concat(startDateFormatted.split(\"T\")[0]).concat(newLineEncodingChar);\n } else {\n icsStartDate = \"DTSTART:\".concat(startDateFormatted).concat(newLineEncodingChar);\n icsEndDate = \"DTEND:\".concat(endDateFormatted).concat(newLineEncodingChar);\n }\n\n var icsContent = \"\".concat(icsStartDate).concat(icsEndDate).concat(icsSummary).concat(icsDescription).concat(icsLocation);\n var icsLink = \"data:text/calendar;charset=utf8,BEGIN:VCALENDAR\".concat(newLineEncodingChar, \"VERSION:2.0\").concat(newLineEncodingChar, \"BEGIN:VEVENT\").concat(newLineEncodingChar).concat(icsContent, \"END:VEVENT\").concat(newLineEncodingChar, \"END:VCALENDAR\").concat(newLineEncodingChar);\n return icsLink;\n }\n }]);\n\n return ICSCalendarBuilder;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/**\r\n * GoogleMapsApi\r\n * Class to load google maps api with api key\r\n * and global Callback to init map after resolution of promise.\r\n *\r\n * @exports {GoogleMapsApi}\r\n * @example MapApi = new GoogleMapsApi();\r\n *\t\t MapApi.load().then(() => {});\r\n */\nvar GoogleMapsApi = /*#__PURE__*/function () {\n /**\r\n * Constructor\r\n * @property {string} apiKey\r\n * @property {string} callbackName\r\n */\n function GoogleMapsApi(gApiKey) {\n _classCallCheck(this, GoogleMapsApi);\n\n // api key for google maps\n this.apiKey = gApiKey; // Set global callback\n\n if (!window._GoogleMapsApi) {\n this.callbackName = '_GoogleMapsApi.mapLoaded';\n window._GoogleMapsApi = this;\n window._GoogleMapsApi.mapLoaded = this.mapLoaded.bind(this);\n }\n }\n /**\r\n * Load\r\n * Create script element with google maps\r\n * api url, containing api key and callback for\r\n * map init.\r\n * @return {promise}\r\n * @this {_GoogleMapsApi}\r\n */\n\n\n _createClass(GoogleMapsApi, [{\n key: \"load\",\n value: function load() {\n var _this = this;\n\n if (!this.promise) {\n this.promise = new Promise(function (resolve) {\n _this.resolve = resolve;\n\n if (typeof window.google === 'undefined') {\n var script = document.createElement('script');\n script.src = \"//maps.googleapis.com/maps/api/js?key=\".concat(_this.apiKey, \"&callback=\").concat(_this.callbackName);\n script.async = true;\n document.body.append(script);\n } else {\n _this.resolve();\n }\n });\n }\n\n return this.promise;\n }\n /**\r\n * mapLoaded\r\n * Global callback for loaded/resolved map instance.\r\n * @this {_GoogleMapsApi}\r\n *\r\n */\n\n }, {\n key: \"mapLoaded\",\n value: function mapLoaded() {\n if (this.resolve) {\n this.resolve();\n }\n }\n }]);\n\n return GoogleMapsApi;\n}();\n\nexport default GoogleMapsApi;","export var stylers = {\n /**\r\n * Map Styler JSON\r\n */\n styles: [{\n \"featureType\": \"administrative\",\n \"elementType\": \"labels.text.fill\",\n \"stylers\": [{\n \"color\": \"#444444\"\n }]\n }, {\n \"featureType\": \"landscape\",\n \"elementType\": \"all\",\n \"stylers\": [{\n \"color\": \"#f2f2f2\"\n }]\n }, {\n \"featureType\": \"landscape.natural.landcover\",\n \"elementType\": \"labels.icon\",\n \"stylers\": [{\n \"visibility\": \"simplified\"\n }]\n }, {\n \"featureType\": \"poi\",\n \"elementType\": \"all\",\n \"stylers\": [{\n \"visibility\": \"off\"\n }]\n }, {\n \"featureType\": \"road\",\n \"elementType\": \"all\",\n \"stylers\": [{\n \"saturation\": -100\n }, {\n \"lightness\": 45\n }]\n }, {\n \"featureType\": \"road.highway\",\n \"elementType\": \"all\",\n \"stylers\": [{\n \"visibility\": \"simplified\"\n }]\n }, {\n \"featureType\": \"road.highway\",\n \"elementType\": \"geometry.fill\",\n \"stylers\": [{\n \"color\": \"#ffffff\"\n }]\n }, {\n \"featureType\": \"road.arterial\",\n \"elementType\": \"labels.icon\",\n \"stylers\": [{\n \"visibility\": \"off\"\n }]\n }, {\n \"featureType\": \"transit\",\n \"elementType\": \"all\",\n \"stylers\": [{\n \"visibility\": \"off\"\n }]\n }, {\n \"featureType\": \"water\",\n \"elementType\": \"all\",\n \"stylers\": [{\n \"color\": \"#dde6e8\"\n }, {\n \"visibility\": \"on\"\n }]\n }],\n\n /**\r\n * Map Icon/Pin SVG\r\n * SVG is base64 encoded.\r\n */\n icons: {\n red: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzVweCIgaGVpZ2h0PSI0M3B4IiB2aWV3Qm94PSIwIDAgMzUgNDMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUxLjMgKDU3NTQ0KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5QaW4gLSBPUiBDb3B5IDM8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBkPSJNNjgyLDM3MSBMNjgyLDM4MCBMNjczLDM3MSBMNjU5LDM3MSBMNjU5LDM0OCBMNjgyLDM0OCBMNjgyLDM3MSBaIiBpZD0icGF0aC0xIj48L3BhdGg+CiAgICAgICAgPGZpbHRlciB4PSItNDMuNSUiIHk9Ii0yNS4wJSIgd2lkdGg9IjE4Ny4wJSIgaGVpZ2h0PSIxNjIuNSUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgaWQ9ImZpbHRlci0yIj4KICAgICAgICAgICAgPGZlT2Zmc2V0IGR4PSIwIiBkeT0iMiIgaW49IlNvdXJjZUFsc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ICAgICAgICAgICAgICAgICAgICAgICAgPHVzZSBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIxIiBmaWx0ZXI9InVybCgjZmlsdGVyLTIpIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx1c2UgZmlsbD0iI0UwNDQwMyIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=='\n }\n};","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport GoogleMapsApi from \"../Maps/GMapsApi\";\nimport { stylers } from \"../Maps/stylers\";\nimport markerTmpl from \"../Maps/marker.tmpl\";\nimport { Configuration } from \"../Shared/Configuration\";\nvar _googleMapsLink = \" https://maps.google.com/?q=\";\nexport var MapBuilder = /*#__PURE__*/function () {\n function MapBuilder() {\n _classCallCheck(this, MapBuilder);\n }\n\n _createClass(MapBuilder, null, [{\n key: \"DrawMap\",\n value: function DrawMap(element, addressData) {\n var _this = this;\n\n var config = new Configuration();\n config.GetConfigurationSetting(\"GoogleMapsAPIKey\").then(function (gApiKey) {\n var gmapApi = new GoogleMapsApi(gApiKey); // Call map renderer\n\n gmapApi.load().then(function () {\n _this._renderMap(element, addressData);\n });\n });\n }\n }, {\n key: \"GetGoogleMapsLink\",\n value: function GetGoogleMapsLink(data) {\n var mapsLink = \"\";\n\n if (!!data && data.addressId > 0 && !!data.addressLine1) {\n var encodedParameters = encodeURI(\"\".concat(data.addressLine1, \"+\").concat(data.city, \"+\").concat(data.state, \"+\").concat(data.postalCode));\n\n var _mapsLink = \"\".concat(_googleMapsLink).concat(encodedParameters);\n\n return _mapsLink;\n }\n\n return mapsLink;\n }\n /**\r\n * Render Map\r\n * @param {map obj} mapEl - Google Map\r\n * @param {obj} data - map data\r\n */\n\n }, {\n key: \"_renderMap\",\n value: function _renderMap(mapEl, data) {\n var options = {\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n styles: stylers.styles,\n zoom: data.zoom,\n center: {\n lat: data.lat,\n lng: data.lng\n }\n };\n var map = new google.maps.Map(mapEl, options);\n\n this._renderMarker(map, data);\n }\n /**\r\n * Render Marker\r\n * Renders custom map marker and infowindow\r\n * @param {map element} mapEl\r\n * @param {object} data\r\n */\n\n }, {\n key: \"_renderMarker\",\n value: function _renderMarker(map, data) {\n var icon = {\n url: stylers.icons.red,\n scaledSize: new google.maps.Size(80, 80)\n };\n var tmpl = markerTmpl(data);\n var marker = new google.maps.Marker({\n position: new google.maps.LatLng(data.lat, data.lng),\n map: map,\n //icon: icon,\n title: data.title,\n content: tmpl,\n animation: google.maps.Animation.DROP\n });\n var infowindow = new google.maps.InfoWindow();\n\n this._handleMarkerClick(map, marker, infowindow);\n }\n /**\r\n * Handle Marker Click\r\n *\r\n * @param {map obj} mapEl\r\n * @param {marker} marker\r\n * @param {infowindow} infoWindow\r\n */\n\n }, {\n key: \"_handleMarkerClick\",\n value: function _handleMarkerClick(map, marker, infowindow) {\n google.maps.event.addListener(marker, 'click', function () {\n infowindow.setContent(marker.content);\n infowindow.open(map, marker);\n });\n google.maps.event.addListener(map, 'click', function (event) {\n if (infowindow) {\n infowindow.close(map, infowindow);\n }\n });\n } //TODO: remove old code:\n\n }, {\n key: \"xCreateMap\",\n value: function xCreateMap(address, mapElement) {\n var geocoder = new google.maps.Geocoder();\n var latlng = new google.maps.LatLng(-34.397, 150.644);\n var myOptions = {\n zoom: 8,\n center: latlng,\n mapTypeControl: true,\n mapTypeControlOptions: {\n style: google.maps.MapTypeControlStyle.DROPDOWN_MENU\n },\n navigationControl: true,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n };\n var map = new google.maps.Map(mapElement, myOptions);\n\n if (geocoder) {\n geocoder.geocode({\n 'address': address\n }, function (results, status) {\n //let locationResult = results[0];\n if (status === google.maps.GeocoderStatus.OK) {\n if (status !== google.maps.GeocoderStatus.ZERO_RESULTS) {\n map.setCenter(results[0].geometry.location);\n var infowindow = new google.maps.InfoWindow({\n content: '<b>' + address + '</b>',\n size: new google.maps.Size(150, 50)\n });\n var marker = new google.maps.Marker({\n position: results[0].geometry.location,\n map: map,\n title: address\n });\n google.maps.event.addListener(marker, 'click', function () {\n infowindow.open(map, marker);\n }); //successful\n } else {//unsuccessful\n }\n } else {//unsuccessful\n }\n });\n }\n }\n }]);\n\n return MapBuilder;\n}();","/**\r\n * Marker Template\r\n * @param {obj} data - property data/json\r\n */\nfunction markerTmpl(data) {\n var url = encodeURIComponent(data.address);\n return \"<article class=\\\"marker-box\\\">\\n\\t<div class=\\\"marker-box__wrap\\\">\\n\\t <div class=\\\"marker-box__grid\\\">\\n\\t\\t<div class=\\\"marker-box__main\\\">\\n\\t\\t <span class=\\\"marker-box__title\\\">\".concat(data.title, \"</span>\\n\\t\\t <address class=\\\"marker-box__address\\\">\\n\\t\\t\\t<span class=\\\"marker-box__address\\\">\").concat(data.address, \"</span>\\n\\t\\t </address>\\n\\t\\t <a class=\\\"marker-box__btn btn-line\\\" href=\\\"https://www.google.com/maps/place/\").concat(url, \"/\\\" target=\\\"_blank\\\">Get Directions</a>\\n\\t\\t</div>\\n\\t </div>\\n\\t</div>\\n </article>\");\n}\n\nexport default markerTmpl;","function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 8 */\nimport { SessionStorageManager } from \"./SessionStorageManager\";\nimport { ArgumentException } from \"./Exceptions\";\nimport { ArgumentTypeException } from \"./Exceptions\";\nvar _keyPrefix = \"mpp-return-context_\";\n/**\r\n * For internal use. Generates a full sessionStorage key - prefix + provided key\r\n * @param {string} key Storage key\r\n * @returns {string} Generated full storage key\r\n*/\n\nvar _getKey = function _getKey(key) {\n return \"\".concat(_keyPrefix, \"_\").concat(key);\n};\n/**\r\n * Return context provider. Gets/sets context for a category of widgets\r\n */\n\n\nexport var ReturnContext = /*#__PURE__*/function () {\n function ReturnContext() {\n _classCallCheck(this, ReturnContext);\n }\n\n _createClass(ReturnContext, null, [{\n key: \"Set\",\n value:\n /**\r\n * Saves provided formData and current URL in session storage\r\n * @param {string} category Widget category\r\n * @param {FormData} formData FormData that needs to be stored\r\n * @throws {ArgumentException}\r\n * @throws {ArgumentTypeException}\r\n */\n function Set(category, formData) {\n if (!category) {\n throw new ArgumentException(\"category\");\n }\n\n if (typeof category !== \"string\") {\n throw new ArgumentTypeException(\"category\");\n }\n\n if (!formData) {\n throw new ArgumentException(\"formData\");\n }\n\n if (_typeof(formData) !== \"object\" || !(formData instanceof FormData)) {\n throw new ArgumentTypeException(\"formData\");\n }\n\n SessionStorageManager.clear(_keyPrefix);\n var formDataObject = {};\n\n var _iterator = _createForOfIteratorHelper(formData.entries()),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var pair = _step.value;\n formDataObject[pair[0]] = !!formDataObject[pair[0]] ? formDataObject[pair[0]] + \",\" + pair[1] : pair[1];\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var item = JSON.stringify({\n Url: window.location.href,\n FormData: formDataObject\n });\n SessionStorageManager.setItem(_getKey(category), item);\n }\n /**\r\n * Retrieves context for provided category from session storage\r\n * @param {string} category Widget category\r\n * @returns {object} If available returns object { url, formData }, if not - returns null\r\n * @throws {ArgumentException}\r\n * @throws {ArgumentTypeException}\r\n */\n\n }, {\n key: \"Get\",\n value: function Get(category) {\n if (!category) {\n throw new ArgumentException(\"category\");\n }\n\n if (typeof category !== \"string\") {\n throw new ArgumentTypeException(\"category\");\n }\n\n var item = SessionStorageManager.getItem(_getKey(category));\n return JSON.parse(item);\n }\n /**\r\n * Gets widget categories\r\n * @returns {object} JSON object {category, categoryName}\r\n */\n\n }, {\n key: \"Categories\",\n get: function get() {\n return {\n Groups: \"Groups\",\n Events: \"Events\",\n Opportunities: \"Opportunities\",\n OnlineDirectory: \"OnlineDirectory\",\n None: \"None\"\n };\n }\n /**\r\n * Apllies object values to the specified form element\r\n * @param {object} formData JSON object key/value pairs\r\n * @param {Form} form Form element\r\n * @returns {boolean} Indicates if hidden container should be open\r\n * @throws {ArgumentException}\r\n */\n\n }, {\n key: \"ApplyFilter\",\n value: function ApplyFilter(formData, form, hiddenContainer) {\n var inHiddenContainer = false;\n\n if (!formData) {\n throw new ArgumentException(\"formData\");\n }\n\n if (!form) {\n throw new ArgumentException(\"form\");\n }\n\n var formElements = [];\n\n for (var i = 0; i < form.elements.length; i++) {\n formElements.push(form.elements[i]);\n }\n\n var _loop = function _loop(key) {\n value = formData[key];\n var formElementMatches = formElements.filter(function (item) {\n return item.name == key;\n });\n\n for (var _i = 0; _i < formElementMatches.length; _i++) {\n var formElement = formElementMatches[_i];\n\n if (!!formElement) {\n var changed = false;\n\n if (formElement.type === \"checkbox\") {\n var checked = value.split(\",\").includes(formElement.value);\n\n if (formElement.checked != checked) {\n formElement.checked = checked;\n changed = true;\n }\n } else {\n if (formElement.value != value) {\n formElement.value = value;\n changed = true;\n }\n }\n\n if (!inHiddenContainer && changed) {\n if (!!hiddenContainer && hiddenContainer.contains(formElement)) {\n hiddenContainer.style.display = \"\";\n inHiddenContainer = true;\n }\n }\n }\n }\n };\n\n for (var key in formData) {\n var value;\n\n _loop(key);\n }\n\n return inHiddenContainer;\n }\n }]);\n\n return ReturnContext;\n}();","function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 8 */\nimport { Configuration } from \"../Shared/Configuration\";\nimport { DateTimeFormatter } from \"./DateTimeFormatter\";\nimport { TextFormatter } from \"./TextFormatter\";\nimport { MapBuilder } from \"./MapBuilder\";\nimport { ReturnContext } from \"../Shared/ReturnContextProvider\";\nexport var InnerPageBuilder = /*#__PURE__*/function () {\n function InnerPageBuilder() {\n _classCallCheck(this, InnerPageBuilder);\n }\n\n _createClass(InnerPageBuilder, null, [{\n key: \"BuildGoBack\",\n value: function BuildGoBack() {\n var navLabel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Search';\n var returnUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var category = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ReturnContext.Categories.None;\n var actualReturnUrl = null;\n var returnContext = ReturnContext.Get(category);\n\n if (!!returnContext) {\n actualReturnUrl = returnContext.Url;\n }\n\n if (!actualReturnUrl) {\n actualReturnUrl = returnUrl;\n }\n\n return \"<h3 class=\\\"mpp-innerpage--back\\\"><a href=\\\"\".concat(actualReturnUrl, \"\\\"><i class=\\\"mppw-arrow back\\\"></i> \").concat(navLabel, \"</a></h3>\");\n }\n }, {\n key: \"BuildFinderDetailImage\",\n value: function BuildFinderDetailImage(imageSrc, type) {\n if (imageSrc === null || imageSrc === undefined) {\n return \"<div class=\\\"mpp-innerpage--fixed-imgcontainer mpp-innerpage--fixed-imgplaceholder\\\" style=\\\"background-image: url('\".concat(new Configuration().GetAppRoot(), \"/Content/icons/icon-\").concat(type, \".svg')\\\"></div>\");\n } else {\n return \"<div class=\\\"mpp-innerpage--fixed-imgcontainer mpp-innerpage--fixed-img\\\" style=\\\"background-image: url('\".concat(imageSrc, \"')\\\"></div>\");\n }\n }\n }, {\n key: \"BuildImage\",\n value: function BuildImage(imageSrc, type) {\n if (imageSrc === null || imageSrc === undefined) {\n return \"<img class=\\\"mpp-innerpage--placeholder\\\" src=\\\"\".concat(new Configuration().GetAppRoot(), \"/Content/icons/icon-\").concat(type, \".svg\\\" />\");\n } else {\n return \"<img class=\\\"mpp-innerpage--image\\\" src=\\\"\".concat(imageSrc, \"\\\" width=\\\"100%\\\"/>\");\n }\n }\n }, {\n key: \"BuildTitle\",\n value: function BuildTitle(headerName) {\n return \"<h1 class=\\\"mpp-innerpage--subtitle\\\">\".concat(headerName, \"</h1>\");\n }\n }, {\n key: \"BuildSubtitle\",\n value: function BuildSubtitle() {\n var headerType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n var headerName = arguments.length > 1 ? arguments[1] : undefined;\n return \"<h\".concat(headerType, \" class=\\\"mpp-innerpage--subtitle\\\">\").concat(headerName, \"</h\").concat(headerType, \">\");\n }\n }, {\n key: \"BuildCustomButton\",\n value: function BuildCustomButton(targetUrl, btnText) {\n if (!!targetUrl) {\n return \"<a href=\\\"\".concat(targetUrl, \"\\\" class=\\\"mppw-btn mpp-innerpage--button primary mb-medium\\\">\").concat(btnText, \"</a>\");\n } else {\n return \"\";\n }\n }\n }, {\n key: \"BuildDateTime\",\n value: function BuildDateTime() {\n var dateTimes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var isAddToCalendar = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n return \"<div class=\\\"mpp-innerpage--datetime\\\">\\n\\t\\t\\t<div class=\\\"mpp-innerpage--datetime-wrapper\\\">\\n\\t\\t\\t\\t\".concat(dateTimes.map(function (dateTime) {\n return \"<h2 class=\\\"mpp-innerpage--datetime \".concat(dateTime.className, \"\\\">\").concat(dateTime.text, \"</h2>\");\n }).join(''), \"\\n\\t\\t\\t</div>\\n\\t\\t\\t\").concat(isAddToCalendar ? \"\".concat(this.BuildButton({\n type: 'primary',\n text: 'Add to Calendar'\n })) : '', \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildGroupDateTime\",\n value: function BuildGroupDateTime(meetingFrequency, meetingDay, meetingTime) {\n return \"<div class=\\\"mpp-innerpage--datetime\\\">\\n\\t\\t\\t<div class=\\\"mpp-innerpage--datetime-wrapper\\\">\\n\\t\\t\\t\\t<h2 class=\\\"mpp-innerpage--datetime\\\">\".concat(!!meetingFrequency ? \"\".concat(meetingFrequency, \" on\") : '', \" \").concat(!!meetingDay ? meetingDay : '', \" \").concat(!!meetingTime && !!meetingDay ? \"@ \".concat(new DateTimeFormatter().ToShortTime(meetingTime)) : '', \"</h2>\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildEventDateTime\",\n value: function BuildEventDateTime(meetingDay, meetingTime, location) {\n var isAddToCalendar = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n return \"<div class=\\\"mpp-innerpage--datetime\\\">\\n\\t\\t\\t<div class=\\\"mpp-innerpage--datetime-wrapper\\\">\\n\\t\\t\\t\\t<h2 class=\\\"mpp-innerpage--datetime\\\">\".concat(meetingDay, \" @ \").concat(new DateTimeFormatter().ToShortTime(meetingTime), \"</h2>\\n\\t\\t\\t\\t\").concat(location === null ? '' : \"<h2 class=\\\"mpp-innerpage--datetime\\\">\".concat(location, \"</h2>\"), \"\\n\\t\\t\\t</div>\\n\\t\\t\\t\").concat(isAddToCalendar ? \"\".concat(this.BuildButton({\n type: 'primary',\n text: 'Add to Calendar'\n })) : '', \"\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildOpportunityDateTime\",\n value: function BuildOpportunityDateTime(startDate, meetingDay) {\n return \"<div class=\\\"mpp-innerpage--datetime\\\">\\n\\t\\t\\t<div class=\\\"mpp-innerpage--datetime-wrapper\\\">\\n\\t\\t\\t\\t<h2 class=\\\"mpp-innerpage--datetime\\\">\".concat(startDate === null ? meetingDay : new DateTimeFormatter().ToShortDateTime(startDate), \"</h2>\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildDescription\",\n value: function BuildDescription() {\n var description = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n if (description === null || description === undefined) {\n return;\n }\n\n return \"<p class=\\\"mpp-innerpage--description\\\">\\n\\t\\t\\t\".concat(new TextFormatter(description).addLineBreaks(), \"\\n\\t\\t</p>\");\n }\n }, {\n key: \"BuildSpecialText\",\n value: function BuildSpecialText() {\n var special = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var regular = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var counterText = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n\n if (regular === null || regular === undefined || regular === 'undefined') {\n return;\n }\n\n if (special === '' || special === null) {\n return \"<div class=\\\"mpp-innerpage--special\\\"><div class=\\\"mpp-innerpage--special-content\\\">\".concat(new TextFormatter(regular).addLineBreaks(), \" \").concat(new TextFormatter(counterText).addLineBreaks(), \"</div></div>\");\n } else {\n return \"<div class=\\\"mpp-innerpage--special\\\"><div class=\\\"mpp-innerpage--special-title\\\">\".concat(special, \"</div><div class=\\\"mpp-innerpage--special-content\\\">\").concat(new TextFormatter(regular).addLineBreaks(), \" \").concat(new TextFormatter(counterText).addLineBreaks(), \"</div></div>\");\n }\n }\n }, {\n key: \"BuildCapacityText\",\n value: function BuildCapacityText() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n if (label === null || label === undefined || label === 'undefined') {\n return;\n }\n\n if (title === '' || title === null) {\n return \"<div class=\\\"mpp-innerpage--capacity\\\"><div class=\\\"mpp-innerpage--capacity-content\\\">\".concat(label, \"</div></div>\");\n } else {\n return \"<div class=\\\"mpp-innerpage--capacity\\\"><div class=\\\"mpp-innerpage--capacity-title\\\">\".concat(title, \"</div><div class=\\\"mpp-innerpage--capacity-content\\\">\").concat(label, \"</div></div>\");\n }\n }\n }, {\n key: \"BuildAddress\",\n value: function BuildAddress() {\n var address = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"Primary Address\";\n return \"<div class=\\\"mpp-innerpage--address-container\\\">\\n\\t\\t\\t<strong class=\\\"mpp-innerpage--address-label\\\">\".concat(label, \":</strong>\\n\\t\\t\\t<ul class=\\\"mpp-innerpage--address\\\">\\n\\t\\t\\t\\t\").concat(address.filter(function (el) {\n return el !== null;\n }).map(function (line) {\n return \"<li class=\\\"mpp-innerpage--address-line\\\">\".concat(line, \"</li>\");\n }).join(''), \"\\n\\t\\t\\t</ul>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildButton\",\n value: function BuildButton(_ref) {\n var type = _ref.type,\n text = _ref.text;\n return \"<button class=\\\"mpp-innerpage--button \".concat(type, \"\\\">\").concat(text, \"</button>\");\n } // Shows or hides the element(s) passed in\n // Example: this.DisplayElements(true, this._$formContainer, this._$pageLoadingContainer);\n\n }, {\n key: \"DisplayElements\",\n value: function DisplayElements() {\n var display = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n for (var _len = arguments.length, elements = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n elements[_key - 1] = arguments[_key];\n }\n\n for (var _i = 0, _elements = elements; _i < _elements.length; _i++) {\n var element = _elements[_i];\n\n if (element) {\n // Get all inputs for the given div\n var inputElements = element.getElementsByTagName(\"input\");\n\n if (display === true) {\n // Display div\n element.style.display = \"block\"; // Remove the disabled attribute that was set below\n\n var _iterator = _createForOfIteratorHelper(inputElements),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var el = _step.value;\n el.removeAttribute(\"disabled\");\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else {\n // Hide div\n element.style.display = \"none\"; // Add disabled to prevent form validation issues on hidden inputs\n\n var _iterator2 = _createForOfIteratorHelper(inputElements),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _el = _step2.value;\n\n _el.setAttribute(\"disabled\", true);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n }\n }\n }, {\n key: \"BuildLabels\",\n value: function BuildLabels(labels, i18n) {\n labels = labels || [];\n labels = labels.filter(function (i) {\n return i;\n });\n return \"<ul class=\\\"mpp-innerpage--labels\\\">\\n\\t\\t\\t\".concat(labels.map(function (label) {\n return \"<li class=\\\"mpp-innerpage--label\\\">\".concat(InnerPageBuilder.ApplyI18n(i18n, label), \"</li>\");\n }).join(''), \"\\n\\t\\t</ul>\");\n }\n /**\r\n * Method looks for i18n translation if label text starts with i18n_\r\n * @param {Array} i18n Array of label translations\r\n * @param {String} label Current label\r\n */\n\n }, {\n key: \"ApplyI18n\",\n value: function ApplyI18n(i18n, label) {\n var result = label;\n\n if (!!label && !!label.indexOf && label.indexOf(\"i18n_\") == 0) {\n label = label.substring(5);\n result = i18n[label];\n }\n\n return result;\n }\n }, {\n key: \"old_BuildMap\",\n value: function old_BuildMap() {\n var labels = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['8381 Katella Ave', 'Stanton, CA 90680'];\n var address = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3315.3649250590233!2d-117.9861483308044!3d33.80289458458454!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x80dd291d79475c01%3A0x6526723d8f95e53c!2s8381+Katella+Ave%2C+Stanton%2C+CA+90680!5e0!3m2!1sen!2sus!4v1537121370163\";\n // latitude and longitude as params\n return \"<div class=\\\"mpp-innerpage--map\\\">\\n\\t\\t\\t<iframe src=\\\"\".concat(address, \"\\\" frameborder=\\\"0\\\" style=\\\"border:0\\\" allowfullscreen=\\\"\\\"></iframe>\\n\\t\\t\\t<div class=\\\"mpp-innerpage--map-info\\\">\\n\\t\\t\\t\\t\").concat(labels.map(function (label) {\n return \"<p>\".concat(label, \"</p>\");\n }).join(''), \"\\n\\t\\t\\t\\t<strong><a href=\\\"#\\\">Get Directions</a></strong>\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildMap\",\n value: function BuildMap(address) {\n var text = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"Get Directions\";\n // latitude and longitude as params\n // if latitude and longitude doesn't exist\n // directions show place\n return \"<div class=\\\"mpp-innerpage--map\\\">\\n\\t\\t\\t<div id=\\\"map\\\" style=\\\"width: 300px; height: 300px; border: solid 2px blue;\\\"></div>\\n\\t\\t\\t<div class=\\\"mpp-innerpage--map-info\\\">\\n\\t\\t\\t\\t<strong><a href=\\\"https://www.google.com/maps/place/\".concat(address, \"/\\\" target=\\\"_blank\\\">\").concat(text, \"</a></strong>\\n\\t\\t\\t</div>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildGoogleMap\",\n value: function BuildGoogleMap($mapEl, latitude, longitude, address, title) {\n var addressData = {\n lat: latitude,\n lng: longitude,\n address: address,\n title: title,\n zoom: 10\n };\n MapBuilder.DrawMap($mapEl, addressData);\n }\n }, {\n key: \"BuildMapAddress\",\n value: function BuildMapAddress(address) {\n var showAddressLabel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var text = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"Get Directions\";\n\n if (address === null || address === undefined) {\n return '';\n } else {\n if (showAddressLabel === true) {\n return \"<p>\".concat(address, \"</p>\\n\\t\\t\\t\\t<strong><a href=\\\"\").concat(this.MapsSelector(address), \"\\\" target=\\\"_blank\\\">\").concat(text, \" ></a></strong>\");\n } else {\n return \"<strong><a href=\\\"\".concat(this.MapsSelector(address), \"\\\" target=\\\"_blank\\\">\").concat(text, \" ></a></strong>\");\n }\n }\n }\n }, {\n key: \"MapsSelector\",\n value: function MapsSelector(address) {\n if (\n /* if we're on iOS, open in Apple Maps */\n navigator.platform.indexOf(\"iPhone\") != -1 || navigator.platform.indexOf(\"iPod\") != -1 || navigator.platform.indexOf(\"iPad\") != -1) {\n var iOSMapAddress = \"maps://maps.google.com/maps?daddr=\".concat(address, \"&ll=\");\n return iOSMapAddress;\n } else {\n /* else use Google */\n var mapAddress = \"https://maps.google.com/maps?daddr=\".concat(address, \"&ll=\");\n return mapAddress;\n }\n }\n }, {\n key: \"BuildProgress\",\n value: function BuildProgress() {\n var header = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '$750 of $1,000 Goal (75%)';\n var percentage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '75';\n var description = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '12 installments beginning 05/15/2019';\n return \"<div class=\\\"progress--container\\\">\\n\\t\\t\\t<h3>Progress:</h3>\\n\\t\\t\\t<h3 class=\\\"progress--subtitle\\\">\".concat(header, \"</h3>\\n\\t\\t\\t<svg class=\\\"mpp-card--progress\\\" width=\\\"100%\\\" height=\\\"15\\\">\\n\\t\\t\\t\\t<defs>\\n\\t\\t\\t\\t\\t<linearGradient id=\\\"gradient\\\">\\n\\t\\t\\t\\t\\t\\t<stop offset=\\\"0%\\\" stop-color=\\\"#1b88b0\\\" />\\n\\t\\t\\t\\t\\t\\t<stop offset=\\\"100%\\\" stop-color=\\\"#1fb5ac\\\" />\\n\\t\\t\\t\\t\\t</linearGradient>\\n\\t\\t\\t\\t</defs>\\n\\t\\t\\t\\t<g>\\n\\t\\t\\t\\t\\t<rect fill=\\\"#efefef\\\" width=\\\"100%\\\" height=\\\"15\\\"></rect>\\n\\t\\t\\t\\t\\t<rect fill=\\\"url(#gradient)\\\" width=\\\"\").concat(percentage, \"%\\\" height=\\\"15\\\"></rect>\\n\\t\\t\\t\\t</g>\\n\\t\\t\\t</svg>\\n\\t\\t\\t<p class=\\\"mpp-card--description\\\">\").concat(description, \"</p>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildContacts\",\n value: function BuildContacts() {\n var contacts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var headerName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"Contact(s)\";\n var allowEmail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n if (contacts === undefined || contacts === null) {\n return;\n }\n\n return \"<div class=\\\"mpp-innerpage--contacts-wrapper mpp-innerpage--special\\\">\\n\\t\\t\\t<div class=\\\"mpp-innerpage--special-title\\\">\".concat(headerName, \":</div>\\n\\t\\t\\t<ul class=\\\"mpp-innerpage--contacts mpp-innerpage--special-content\\\">\\n\\t\\t\\t\\t\").concat(contacts && contacts.map(function (contact) {\n var hasEmailAddress = contact.emailAddress && contact.emailAddress !== '';\n var displayName = contact.displayName,\n imageUrl = contact.imageUrl,\n contactId = contact.contactId;\n displayName = displayName.replace(' ', '<br>');\n return \"<li class=\\\"mpp-innerpage--contact \".concat(allowEmail && hasEmailAddress ? 'mpp-innerpage--contact-has-email' : '', \"\\\" data-id=\\\"\").concat(contactId, \"\\\">\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"mpp-innerpage--contact-badge\\\" \").concat(imageUrl ? \"style=\\\"background: center / cover url('\".concat(imageUrl, \"?$thumbnail=true') no-repeat transparent\\\">\") : \">\".concat(displayName.charAt(0)), \"</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"mpp-innerpage--name \").concat(allowEmail && hasEmailAddress ? 'mpp-innerpage--name-has-email' : '', \"\\\">\").concat(displayName, \"</span>\\n\\t\\t\\t\\t\\t\\t</li>\");\n }).join(''), \"\\n\\t\\t\\t</ul>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildPageMetadata\",\n value: function BuildPageMetadata(title) {\n var dateTimes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var description = arguments.length > 2 ? arguments[2] : undefined;\n var meetingInstructions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n return \"\\n\\t\\t<div class=\\\"mppw-row\\\">\\n\\t\\t\\t<div class=\\\"mppw-col\\\">\\n\\t\\t\\t\\t<label><strong>Title</strong></label>\\n\\t\\t\\t\\t<p>\".concat(title, \"</p>\\n\\t\\t\\t</div>\\n\\t\\t\\t <div class=\\\"mppw-col\\\">\\n\\t\\t\\t\\t<label><strong>Meeting Instructions</strong></label>\\n\\t\\t\\t\\t<p>\").concat(meetingInstructions, \"</p>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"mppw-row\\\">\\n\\t\\t\\t<div class=\\\"mppw-col\\\">\\n\\t\\t\\t\\t<label><strong>Date</strong></label>\\n\\t\\t\\t\\t<p>\").concat(dateTimes.map(function (dateTime) {\n return \"\".concat(dateTime);\n }).join(''), \"</p>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t\\t<div class=\\\"mppw-row\\\">\\n\\t\\t\\t\\t<label><strong>Description</strong></label>\\n\\t\\t\\t\\t<p>\").concat(description, \"</p>\\n\\t\\t</div>\");\n }\n }, {\n key: \"BuildInnerPageDetails\",\n value: function BuildInnerPageDetails() {\n for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n params[_key2] = arguments[_key2];\n }\n\n params = params.filter(Boolean);\n return \"<section class=\\\"mpp-innerpage\\\">\\n\\t\\t\\t\".concat(params.map(function (param) {\n return \"\".concat(param);\n }).join(''), \"\\n\\t\\t</section>\");\n } // Adds tab click event handling\n\n }, {\n key: \"BindTabEventListeners\",\n value: function BindTabEventListeners(tabElements, root) {\n var _this = this;\n\n // Add click event listener to each element\n for (var i = 0; i < tabElements.length; i++) {\n tabElements[i].addEventListener(\"click\", function (e) {\n e.preventDefault(); // Add active class to the currently selected tab\n\n var clickedTab = e.currentTarget;\n\n _this.SetActiveTab(tabElements, clickedTab.id, root);\n });\n }\n } // Set specific tab element id as active\n\n }, {\n key: \"SetActiveTab\",\n value: function SetActiveTab(tabElements, activeTabId, root) {\n // Remove active class from tabs\n for (var y = 0; y < tabElements.length; y++) {\n tabElements[y].classList.remove(\"active\");\n } // Add active class to the currently selected tab\n\n\n var activeTabElement = root.querySelector(\"#\".concat(activeTabId));\n activeTabElement.classList.add(\"active\"); // Remove active class from all content areas\n\n var tabContentAreas = root.querySelectorAll(\".mpp-form--tab-content\");\n\n for (var j = 0; j < tabContentAreas.length; j++) {\n tabContentAreas[j].classList.remove(\"active\");\n } // Add active class to the currently selected content area\n\n\n var activeContentArea = root.querySelector(\".\".concat(activeTabId));\n activeContentArea.classList.add(\"active\");\n } // Hide all tabs in tabsToHideArray which is an array of html element id's\n\n }, {\n key: \"HideTabs\",\n value: function HideTabs(tabElements, tabsToHideArray, root) {\n var _this2 = this;\n\n // Remove hidden class from tabs\n for (var y = 0; y < tabElements.length; y++) {\n tabElements[y].classList.remove(\"hide-tab\");\n } // Remove hidden class from all content areas\n\n\n var tabContentAreas = root.querySelectorAll(\".mpp-form--tab-content\");\n\n for (var j = 0; j < tabContentAreas.length; j++) {\n tabContentAreas[j].classList.remove(\"hide-tab\");\n } // Hide specific tabs\n\n\n if (!!tabsToHideArray) {\n tabsToHideArray.forEach(function (element) {\n _this2.SetTabVisibile(element, false, root);\n });\n }\n } // Set specific html element tab id visibility\n\n }, {\n key: \"SetTabVisibile\",\n value: function SetTabVisibile(visibleTabId, visible, root) {\n var toggleTabElement = root.querySelector(\"#\".concat(visibleTabId));\n var toggleTabContentArea = root.querySelector(\".\".concat(visibleTabId));\n visible === true ? toggleTabElement.classList.remove(\"hide-tab\") : toggleTabElement.classList.add(\"hide-tab\");\n visible === true ? toggleTabContentArea.classList.remove(\"hide-tab\") : toggleTabContentArea.classList.add(\"hide-tab\");\n }\n }]);\n\n return InnerPageBuilder;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*jshint esversion: 6 */\nexport var NumberUtils = /*#__PURE__*/function () {\n function NumberUtils() {\n _classCallCheck(this, NumberUtils);\n }\n\n _createClass(NumberUtils, null, [{\n key: \"toCurrencyString\",\n value: function toCurrencyString(amount) {\n amount = Number(amount);\n amount = isNaN(amount) === false && !!amount ? +amount : 0;\n return amount.toLocaleString('en', {\n style: 'currency',\n currency: 'USD'\n });\n }\n }]);\n\n return NumberUtils;\n}();","function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { NumberUtils } from \"./NumberUtils\";\nexport var ProductFormBuilder = /*#__PURE__*/function () {\n function ProductFormBuilder() {\n _classCallCheck(this, ProductFormBuilder);\n }\n\n _createClass(ProductFormBuilder, null, [{\n key: \"DrawForm\",\n value: function DrawForm(container, data, labels) {\n container.classList.add(\"product-form\");\n\n var _iterator = _createForOfIteratorHelper(data.optionGroups),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var group = _step.value;\n var optionGroupContainer = document.createElement(\"DIV\");\n optionGroupContainer.classList.add(\"mppw-form-field-alt\");\n optionGroupContainer.classList.add(\"mpp-mt-10\");\n var optionGroupLabel = document.createElement(\"h3\");\n optionGroupLabel.innerHTML = group.required === true ? group.optionGroupName + \" *\" : group.optionGroupName;\n optionGroupContainer.appendChild(optionGroupLabel);\n var optionGroupDescription = document.createElement(\"p\");\n optionGroupDescription.innerHTML = group.description;\n optionGroupContainer.appendChild(optionGroupDescription);\n var fieldControlContainer = document.createElement(\"DIV\");\n fieldControlContainer.classList.add(\"product-form__control\");\n var tableHtml = this.BuildTable();\n var tableHeader = this.BuildHeaderRow(labels);\n tableHtml.appendChild(tableHeader);\n\n if (!!group.mutuallyExclusive && group.required === false) {\n var tableNotSelectedRow = this.BuildNotSelectedRow(group.optionGroupId);\n tableHtml.appendChild(tableNotSelectedRow);\n }\n\n var _iterator2 = _createForOfIteratorHelper(group.optionPrices),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var price = _step2.value;\n\n if (price.isHidden == false) {\n // Determined by days out to hide in product data manager\n var tableRow = this.BuildOptionRow(group, price);\n tableHtml.appendChild(tableRow);\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n fieldControlContainer.appendChild(tableHtml);\n optionGroupContainer.appendChild(fieldControlContainer);\n container.appendChild(optionGroupContainer);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n container.innerHTML += \"<input type=\\\"hidden\\\" id=\\\"product-invoice-detail_\".concat(data.productId, \"\\\" name=\\\"product-invoice-detail_\").concat(data.productId, \"\\\" />\");\n }\n }, {\n key: \"BuildTable\",\n value: function BuildTable() {\n var table = document.createElement(\"table\");\n table.classList.add(\"mppw-product-options\"); //table.setAttribute(\"border\", \"1\");\n\n table.setAttribute(\"cellspacing\", \"0\");\n table.style.width = \"100%\";\n return table;\n }\n }, {\n key: \"BuildHeaderRow\",\n value: function BuildHeaderRow(labels) {\n var headerRow = document.createElement(\"tr\");\n var headerCell;\n headerCell = document.createElement(\"th\");\n headerCell.classList.add(\"option-name\");\n headerCell.innerHTML = labels.productOptionDescriptionLabel; //labels.optionDescription\n\n headerRow.appendChild(headerCell);\n headerCell = document.createElement(\"th\");\n headerCell.classList.add(\"option-qty\");\n headerCell.innerHTML = labels.productQtyLabel; //labels.optionQty\n\n headerRow.appendChild(headerCell);\n headerCell = document.createElement(\"th\");\n headerCell.classList.add(\"option-price\");\n headerCell.innerHTML = labels.productPriceLabel; //labels.optionPrice\n\n headerRow.appendChild(headerCell);\n return headerRow;\n }\n }, {\n key: \"BuildNotSelectedRow\",\n value: function BuildNotSelectedRow(optionGroupId) {\n var optionRow = document.createElement(\"tr\");\n optionRow.innerHTML = \"\\n\\t\\t\\t<td class=\\\"option-name\\\">\\n\\t\\t\\t\\t<label>\\n\\t\\t\\t\\t\\t<input type=\\\"radio\\\" class=\\\"product-radio\\\" id=\\\"product-radio_\".concat(optionGroupId, \"\\\" name=\\\"product-radio_\").concat(optionGroupId, \"\\\" value=\\\"\\\" checked=\\\"checked\\\" />\\n\\t\\t\\t\\t\\tNot Selected\\n\\t\\t\\t\\t\\t<span class=\\\"mppw-radio\\\"></span>\\n\\t\\t\\t\\t</label>\\n\\t\\t\\t</td>\\n\\t\\t\\t<td class=\\\"option-qty\\\">\\n\\t\\t\\t\\t \\n\\t\\t\\t</td>\\n\\t\\t\\t<td class=\\\"option-price\\\">\\n\\t\\t\\t\\t \\n\\t\\t\\t</td>\");\n return optionRow;\n }\n }, {\n key: \"BuildOptionRow\",\n value: function BuildOptionRow(groupData, rowData) {\n var optionRow = document.createElement(\"tr\");\n var optionCell;\n optionCell = document.createElement(\"td\");\n optionCell.classList.add(\"option-name\");\n var disabledElement = \"\",\n mppwRadioClass = \"mppw-radio\",\n mppwCheckboxClass = \"mppw-checkbox\",\n cursorStatus = \"pointer-cursor\";\n\n if (rowData.qtyOnHand !== undefined && rowData.qtyOnHand !== null && rowData.qtyOnHand <= 0) {\n optionRow.classList.add(\"mppw-event-gray-out\");\n disabledElement = \"disabled\";\n mppwRadioClass = \"mppw-radio-gray-out\";\n mppwCheckboxClass = \"mppw-checkbox-gray-out\";\n cursorStatus = \"default-cursor\";\n }\n\n if (!!groupData.mutuallyExclusive) {\n optionCell.innerHTML = \"\\n\\t\\t\\t\\t<label class=\\\"product-selection-container \".concat(cursorStatus, \"\\\" >\\n\\t\\t\\t\\t\\t<input type=\\\"radio\\\" \").concat(!!groupData.required ? \"required\" : \"\", \" class=\\\"product-radio\\\" id=\\\"product-radio_\").concat(rowData.optionPriceId, \"\\\" name=\\\"product-radio_\").concat(groupData.optionGroupId, \"\\\" value=\\\"\").concat(rowData.optionPriceId, \"\\\" \").concat(disabledElement, \" />\\n\\t\\t\\t\\t\\t\").concat(rowData.optionTitle, \"\\n\\t\\t\\t\\t\\t<span class=\\\"\").concat(mppwRadioClass, \"\\\"></span>\\n\\t\\t\\t\\t</label>\");\n } else {\n optionCell.innerHTML = \"\\n\\t\\t\\t\\t<label class=\\\"product-selection-container \".concat(cursorStatus, \"\\\" >\\n\\t\\t\\t\\t\\t<input type=\\\"checkbox\\\" \").concat(!!groupData.required ? \"required\" : \"\", \" class=\\\"product-checkbox\\\" data-checkbox-group=\\\"product-checkbox-group_\").concat(groupData.optionGroupId, \"\\\" id=\\\"product-checkbox_\").concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" name=\\\"product-checkbox_\").concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" \").concat(disabledElement, \" />\\n\\t\\t\\t\\t\\t\").concat(rowData.optionTitle, \"\\n\\t\\t\\t\\t\\t<span class=\\\"\").concat(mppwCheckboxClass, \"\\\"></span>\\n\\t\\t\\t\\t</label>\");\n }\n\n if (!!groupData.noteLabel) {\n optionCell.innerHTML += \"<div><input type=\\\"text\\\" data-ignore-validation=\\\"true\\\" id=\\\"product-note_\".concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" placeholder=\\\"\").concat(groupData.noteLabel, \"\\\" name=\\\"product-note_\").concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" /></div>\");\n }\n\n optionCell.innerHTML += \"<input type=\\\"hidden\\\" id=\\\"product-option-invoice-detail_\".concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" name=\\\"product-option-invoice-detail_\").concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" />\");\n optionRow.appendChild(optionCell);\n optionCell = document.createElement(\"td\");\n optionCell.classList.add(\"option-qty\");\n var qtyRemaining = rowData.qtyOnHand || rowData.qtyAllowed;\n\n if (qtyRemaining > 1) {\n var maxQty = Math.min(rowData.qtyAllowed, qtyRemaining); // rowData.qtyAllowed > rowData.qtyOnHand ? rowData.qtyOnHand : rowData.qtyAllowed;\n\n if (maxQty > 1) {\n var qtySelect = document.createElement(\"select\");\n qtySelect.setAttribute(\"data-ignore-validation\", \"true\");\n qtySelect.setAttribute(\"name\", \"product-qty_\".concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId));\n qtySelect.setAttribute(\"id\", \"product-qty_\".concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId));\n qtySelect.setAttribute(\"class\", 'product-select');\n\n if (disabledElement !== \"\") {\n qtySelect.setAttribute(\"disabled\", true);\n }\n\n var minQty = rowData.minQty || 1;\n\n for (var q = minQty; q < maxQty + 1; q++) {\n var qtyOption = document.createElement(\"option\");\n qtyOption.innerHTML = q;\n qtySelect.appendChild(qtyOption);\n }\n\n optionCell.appendChild(qtySelect);\n } else {\n optionCell.innerHTML = \"1<input type=\\\"hidden\\\" id=\\\"product-qty_\".concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" name=\\\"product-qty_\").concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" value=\\\"1\\\" />\");\n }\n } else {\n optionCell.innerHTML = \"1<input type=\\\"hidden\\\" id=\\\"product-qty_\".concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" name=\\\"product-qty_\").concat(groupData.optionGroupId, \"_\").concat(rowData.optionPriceId, \"\\\" value=\\\"1\\\" />\");\n }\n\n optionRow.appendChild(optionCell);\n optionCell = document.createElement(\"td\");\n optionCell.classList.add(\"option-price\");\n optionCell.innerHTML = NumberUtils.toCurrencyString(rowData.optionPrice);\n optionRow.appendChild(optionCell);\n return optionRow;\n }\n }, {\n key: \"BuildPromoCodeRow\",\n value: function BuildPromoCodeRow(table, promoCode, amount, mutuallyExclusiveGroupId, context) {\n if (!table.querySelector(\"input[name=\\\"promo_\".concat(promoCode, \"\\\"]\"))) {\n var hiddenField = document.createElement(\"INPUT\");\n hiddenField.setAttribute(\"type\", \"hidden\");\n hiddenField.setAttribute(\"name\", \"promo_\".concat(promoCode));\n hiddenField.setAttribute(\"data-amount\", amount);\n\n if (!!mutuallyExclusiveGroupId) {\n hiddenField.setAttribute(\"data-exclusivegroupid\", mutuallyExclusiveGroupId);\n }\n\n hiddenField.value = promoCode;\n var row = document.createElement(\"TR\"); //Promo code column:\n\n var promoCodeCell = document.createElement(\"TD\");\n var promoCodeText = document.createElement(\"SPAN\");\n promoCodeText.setAttribute(\"class\", \"promo-code-text\");\n promoCodeText.innerHTML = promoCode;\n promoCodeCell.appendChild(hiddenField);\n promoCodeCell.appendChild(promoCodeText); //Discount amount column:\n\n var discountAmountCell = document.createElement(\"TD\");\n var discountAmount = NumberUtils.toCurrencyString(amount);\n discountAmountCell.setAttribute(\"class\", \"promo-code-discount-text\");\n discountAmountCell.innerHTML = discountAmount; //Remove button column:\n\n var removeCell = document.createElement(\"TD\");\n removeCell.setAttribute(\"class\", \"mppw-centered\");\n var removeLink = document.createElement(\"A\");\n removeLink.setAttribute(\"href\", \"\");\n removeLink.innerHTML = context._i18n.removePromoCodeButtonLabel;\n removeLink.addEventListener(\"click\", function (event) {\n event.preventDefault();\n table.removeChild(row);\n context.UpdateTotal();\n\n if (table.rows.length > 1) {\n table.style.display = \"\";\n } else {\n table.style.display = \"none\";\n }\n });\n removeCell.appendChild(removeLink);\n row.appendChild(promoCodeCell);\n row.appendChild(discountAmountCell);\n row.appendChild(removeCell);\n table.appendChild(row);\n }\n }\n }, {\n key: \"CalculateTotal\",\n value: function CalculateTotal(productForm, productData, eventParticipants, selectedEventParticipantId) {\n var total = productData === null || productData === void 0 ? void 0 : productData.basePrice; // Calculate total based on product options selected in the form\n\n var _iterator3 = _createForOfIteratorHelper(productForm),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var elem = _step3.value;\n\n if (elem.name.startsWith(\"product-checkbox\") && elem.checked) {\n (function () {\n var values = elem.name.split(\"_\");\n var optionGroupId = +values[1];\n var optionPriceId = +values[2];\n var qtyField = productForm[\"product-qty_\".concat(optionGroupId, \"_\").concat(optionPriceId)];\n var qty = qtyField.tagName === 'SELECT' ? +qtyField.options[qtyField.selectedIndex].value : +qtyField.value;\n var group = productData.optionGroups.find(function (g) {\n return g.optionGroupId == optionGroupId;\n });\n var price = group.optionPrices.find(function (p) {\n return p.optionPriceId == optionPriceId;\n });\n total += qty * price.optionPrice;\n })();\n }\n\n if (elem.name.startsWith(\"product-radio\") && elem.checked) {\n if (!!elem.value) {\n (function () {\n var values = elem.name.split(\"_\");\n var optionGroupId = +values[1];\n var optionPriceId = +elem.value;\n var qtyField = productForm[\"product-qty_\".concat(optionGroupId, \"_\").concat(optionPriceId)];\n var qty = +qtyField.value;\n var group = productData.optionGroups.find(function (g) {\n return g.optionGroupId == optionGroupId;\n });\n var price = group.optionPrices.find(function (p) {\n return p.optionPriceId == optionPriceId;\n });\n total += qty * price.optionPrice;\n })();\n }\n }\n\n if (elem.name.startsWith(\"promo_\")) {\n var value = elem.dataset.amount;\n total += +value;\n }\n } // Include the line totals from event participants\n\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n if (eventParticipants) {\n var participantsTotal = parseFloat(this.CalculateParticipantsTotal(eventParticipants, selectedEventParticipantId)); // Ensure the total does not drop below zero before adding participantsTotal\n\n total = Math.max(0, total);\n total += participantsTotal;\n } // Ensure the total does not drop below zero\n\n\n total = Math.max(0, total);\n return total.toFixed(2);\n }\n }, {\n key: \"CalculateParticipantsTotal\",\n value: function CalculateParticipantsTotal(eventParticipants, selectedEventParticipantId) {\n var total = 0; // Sum up the line totals from all event participants, ensuring they are non-negative\n\n if (eventParticipants) {\n var _iterator4 = _createForOfIteratorHelper(eventParticipants),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var participant = _step4.value;\n\n // Skip the selected participant when calculating the total\n if (selectedEventParticipantId === null || participant.eventParticipantId !== selectedEventParticipantId) {\n var participantTotal = Math.max(0, participant.lineTotal);\n total += participantTotal;\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n } // Ensure the total does not drop below zero and format to two decimal places\n\n\n total = Math.max(0, total);\n return total.toFixed(2); // Return the computed total formatted as a string\n }\n }]);\n\n return ProductFormBuilder;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"../Shared/Configuration\";\nimport { Ajax } from \"./Ajax\";\nexport var ProductsApiService = /*#__PURE__*/function () {\n function ProductsApiService() {\n _classCallCheck(this, ProductsApiService);\n\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n }\n\n _createClass(ProductsApiService, [{\n key: \"GetProduct\",\n value: function GetProduct(id, eventId) {\n var eventParticipantId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var url = \"\".concat(this._appRoot, \"/Api/ProductsApi/GetProduct/?id=\").concat(id, \"&eventId=\").concat(eventId);\n\n if (eventParticipantId !== null) {\n url += \"&eventParticipantId=\".concat(eventParticipantId);\n }\n\n return Ajax.Get(url);\n }\n }, {\n key: \"ValidPromoCode\",\n value: function ValidPromoCode(productId, promoCode, needToValidate) {\n var url = \"\".concat(this._appRoot, \"/Api/ProductsApi/ValidPromoCode/?id=\").concat(productId, \"&promoCode=\").concat(promoCode, \"&editExistingPromoCode=\").concat(!needToValidate);\n return Ajax.Get(url);\n }\n }]);\n\n return ProductsApiService;\n}();","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/* jshint esversion: 8 */\nimport { ConfigurationService } from \"../Shared/Configuration\";\nimport { Ajax } from \"./Ajax\";\nimport { I18N } from \"../Shared/I18n\";\nimport { OAuthService } from \"./OAuthService\";\nexport var UserService = /*#__PURE__*/function () {\n function UserService() {\n _classCallCheck(this, UserService);\n }\n\n _createClass(UserService, null, [{\n key: \"GetCurrentUser\",\n value: function () {\n var _GetCurrentUser = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var i18n, userNotAuthenticatedMsg, userNotFoundMsg, appRoot, url, currentUser;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return new I18N(\"mpp-user-service\");\n\n case 2:\n i18n = _context.sent;\n userNotAuthenticatedMsg = i18n.notAuthenticatedMessage;\n userNotFoundMsg = i18n.userNotFound; // Get configuration\n\n appRoot = ConfigurationService.GetAppRoot();\n url = \"\".concat(appRoot, \"/Api/Auth/User\"); // Get current user\n\n currentUser = new Promise(function (resolve, reject) {\n Ajax.Get(url).then(function (userInfo) {\n if (!!userInfo) {\n resolve(userInfo);\n } else {\n console.info(userNotAuthenticatedMsg);\n reject(userNotFoundMsg);\n }\n }, function () {\n console.info(userNotAuthenticatedMsg);\n reject(userNotFoundMsg);\n });\n }); // Return currentUser\n\n _context.next = 10;\n return currentUser;\n\n case 10:\n return _context.abrupt(\"return\", _context.sent);\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function GetCurrentUser() {\n return _GetCurrentUser.apply(this, arguments);\n }\n\n return GetCurrentUser;\n }()\n }, {\n key: \"GetCurrentUserAttributes\",\n value: function () {\n var _GetCurrentUserAttributes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var appRoot, url, currentUserAttributes;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n // Get configuration\n appRoot = ConfigurationService.GetAppRoot();\n url = \"\".concat(appRoot, \"/Api/Attributes/ContactAttributes\"); // Get current user attributes\n\n currentUserAttributes = new Promise(function (resolve, reject) {\n Ajax.Get(url).then(function (userAttributesInfo) {\n if (!!userAttributesInfo) {\n resolve(userAttributesInfo);\n } else {\n reject(0);\n }\n }, function () {\n reject(0);\n });\n }); // Return currentUser\n\n _context2.next = 5;\n return currentUserAttributes;\n\n case 5:\n return _context2.abrupt(\"return\", _context2.sent);\n\n case 6:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n function GetCurrentUserAttributes() {\n return _GetCurrentUserAttributes.apply(this, arguments);\n }\n\n return GetCurrentUserAttributes;\n }()\n }, {\n key: \"GetAllActiveAttributes\",\n value: function () {\n var _GetAllActiveAttributes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var appRoot, url, allActiveAttributes;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n // Get configuration\n appRoot = ConfigurationService.GetAppRoot();\n url = \"\".concat(appRoot, \"/Api/Attributes/Available\");\n allActiveAttributes = new Promise(function (resolve, reject) {\n Ajax.Get(url).then(function (allAttributesInfo) {\n if (!!allAttributesInfo) {\n resolve(allAttributesInfo);\n } else {\n reject(0);\n }\n }, function () {\n reject(0);\n });\n }); // Return all attributes\n\n _context3.next = 5;\n return allActiveAttributes;\n\n case 5:\n return _context3.abrupt(\"return\", _context3.sent);\n\n case 6:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n function GetAllActiveAttributes() {\n return _GetAllActiveAttributes.apply(this, arguments);\n }\n\n return GetAllActiveAttributes;\n }()\n }, {\n key: \"SaveUserAttributes\",\n value: function () {\n var _SaveUserAttributes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(data) {\n var appRoot, url, allActiveAttributes;\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n // Get configuration\n appRoot = ConfigurationService.GetAppRoot();\n url = \"\".concat(appRoot, \"/Api/Attributes\");\n allActiveAttributes = new Promise(function (resolve, reject) {\n Ajax.Post(url, data, {\n 'Content-Type': \"application/json\"\n }).then(function () {\n resolve(1);\n }, function (err) {\n reject(err);\n });\n }); // Return all attributes\n\n _context4.next = 5;\n return allActiveAttributes;\n\n case 5:\n return _context4.abrupt(\"return\", _context4.sent);\n\n case 6:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }));\n\n function SaveUserAttributes(_x) {\n return _SaveUserAttributes.apply(this, arguments);\n }\n\n return SaveUserAttributes;\n }()\n }]);\n\n return UserService;\n}();","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { Configuration } from \"../Shared/Configuration\";\nimport { Ajax } from \"./Ajax\";\nexport var CheckoutApiService = /*#__PURE__*/function () {\n function CheckoutApiService() {\n _classCallCheck(this, CheckoutApiService);\n\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n }\n\n _createClass(CheckoutApiService, [{\n key: \"GetInvoice\",\n value: function GetInvoice(invoiceguid) {\n var url = \"\".concat(this._appRoot, \"/Api/CheckoutApi/GetInvoice/\").concat(invoiceguid);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetMyInvoices\",\n value: function GetMyInvoices() {\n var url = \"\".concat(this._appRoot, \"/Api/CheckoutApi/MyInvoices\");\n return Ajax.Get(url);\n }\n }, {\n key: \"BuildPaymentRequestToken\",\n value: function BuildPaymentRequestToken(invoiceGuid, audienceUrl, returnUrl, amountToPay, paymentOption) {\n var url = \"\".concat(this._appRoot, \"/Api/CheckoutApi/BuildPaymentRequestToken?invoiceId=\").concat(invoiceGuid, \"&audienceUrl=\").concat(audienceUrl, \"&returnUrl=\").concat(returnUrl, \"&amountToPay=\").concat(amountToPay, \"&paymentOption=\").concat(paymentOption);\n return Ajax.Get(url);\n }\n }, {\n key: \"ProcessPaymentResponse\",\n value: function ProcessPaymentResponse(tokenPayload) {\n var url = \"\".concat(this._appRoot, \"/Api/CheckoutApi/ProcessPaymentResponse\");\n return Ajax.Post(url, tokenPayload);\n }\n }, {\n key: \"DeleteEventRegistration\",\n value: function DeleteEventRegistration(invoiceDetailId) {\n var url = \"\".concat(this._appRoot, \"/Api/CheckoutApi/DeleteEventRegistration?invoiceDetailId=\").concat(invoiceDetailId);\n return Ajax.Get(url);\n }\n }]);\n\n return CheckoutApiService;\n}();","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport { CardBuilder } from \"./Helpers/CardBuilder\";\nimport { CommonBuilder } from \"./Helpers/CommonBuilder\"; //Shared:\n\nimport { ComponentBase } from \"./Shared/ComponentBase\";\nimport { CustomFormBuilder } from \"./Helpers/CustomFormBuilder\"; //Helpers:\n\nimport { DateTimeFormatter } from \"./Helpers/DateTimeFormatter\";\nimport { DropdownBuilder } from \"./Helpers/DropdownBuilder\";\nimport { ModalBuilder } from \"./Helpers/ModalBuilder\"; //Services:\n\nimport { EventsApiService } from \"./Services/EventsApiService\";\nimport { FormManager } from \"./Helpers/FormManager\";\nimport { HouseholdApiService } from \"./Services/HouseholdApiService\";\nimport { I18N } from \"./Shared/I18n\";\nimport { ICSCalendarBuilder } from \"./Helpers/ICSCalendarBuilder\";\nimport { InnerPageBuilder } from \"./Helpers/InnerPageBuilder\";\nimport { NumberUtils } from \"./Helpers/NumberUtils\";\nimport { OAuthService } from \"./Services/OAuthService\";\nimport { ProductFormBuilder } from \"./Helpers/ProductFormBuilder\";\nimport { ProductsApiService } from \"./Services/ProductsApiService\";\nimport { ReturnContext } from \"./Shared/ReturnContextProvider\";\nimport { UrlUtils } from \"./Shared/UrlUtils\";\nimport { UserService } from \"./Services/UserService\";\nimport { CheckoutApiService } from \"./Services/CheckoutApiService\";\n\nvar MppEventDetails = /*#__PURE__*/function (_ComponentBase) {\n _inherits(MppEventDetails, _ComponentBase);\n\n var _super = _createSuper(MppEventDetails);\n\n function MppEventDetails() {\n _classCallCheck(this, MppEventDetails);\n\n return _super.call(this);\n }\n\n _createClass(MppEventDetails, [{\n key: \"connectedCallback\",\n value: function () {\n var _connectedCallback = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this = this;\n\n var _this$_userInfo;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.LoadLabels();\n\n case 2:\n this._i18n = _context.sent;\n this.LoadAttributes(); //View HTML:\n\n this._root.innerHTML = `<link href=\"${this._appRoot}/Content/mppw-widgetstyles.css\" rel=\"stylesheet\" type=\"text/css\"/><div class=\"mppw-component-container\"><div id=\"componentMessageContainer\" class=\"mppw-alert\" style=\"display: none;\"><div class=\"mppw-alert__icon\"></div><span id=\"componentMessageText\" class=\"mppw-alert__text\"></span></div><div id=\"emptyContainer\"></div><div id=\"detailsContainer\"></div><div id=\"mapContainer\" class=\"mpp-innerpage--map-container\" style=\"display: none;\"><div id=\"map\" class=\"mpp-innerpage--map\"></div><div id=\"mapAddress\" class=\"mpp-innerpage--map-info\"></div></div><div id=\"loginButtonContainer\" class=\"mppw-centered\" style=\"display: none;\"><div class=\"mppw-alert mppw-alert__warning\"><div class=\"mppw-alert__icon\"></div><span class=\"mppw-alert__text\">${this._i18n.pleaseLoginMessage}</span></div><input type=\"button\" class=\"mppw-btn primary\" id=\"loginButton\" value=\"Login\"/></div><div id=\"registrationFormContainer\"><div id=\"spinner\"><i class=\"mppw-spinner\"></i></div><div id=\"eventDetailsContainer\" style=\"display: none;\"></div><div id=\"successMessageContainer\" class=\"mppw-alert\" style=\"display: none;\"><div class=\"mppw-alert__icon\"></div><span id=\"successMessageText\" class=\"mppw-alert__text\"></span></div><form id=\"registrationForm\" name=\"registrationForm\" class=\"mppw-form mppw-form-validate\" style=\"display: none;\"><div class=\"titleContainer\"><h1>${this._i18n.eventRegistrationHeaderLabel}</h1><h4 id=\"updateInformationWarningMessage\" style=\"display: none;\">${this._i18n.updateInformationWarningMessage}</h4></div><h3 class=\"mppw-product-description\"></h3><div id=\"eventParticipantsContainer\" class=\"mppw-event-participants-container\"></div><input type=\"hidden\" id=\"EventId\" name=\"EventId\"/> <input type=\"hidden\" id=\"InvoiceId\" name=\"InvoiceId\"/> <input type=\"hidden\" id=\"HouseholdId\" name=\"HouseholdId\"/> <input type=\"hidden\" id=\"IsMinorRegistration\" name=\"IsMinorRegistration\"/> <input type=\"hidden\" id=\"CurrentUserContactId\" name=\"CurrentUserContactId\"/> <input type=\"hidden\" id=\"EventParticipantId\" name=\"EventParticipantId\"/> <input type=\"hidden\" id=\"FormResponseId\" name=\"FormResponseId\"/> <input type=\"hidden\" id=\"ProductId\" name=\"ProductId\"/><div id=\"userHasRegisteredContainer\" style=\"display: none;\"><div class=\"mppw-alert mppw-alert__warning\"><div class=\"mppw-alert__icon\"></div><span class=\"mppw-alert__text\">${this._i18n.userHasRegisteredMessage}</span></div></div><div id=\"priceContainer\" style=\"display: none\"><h3 id=\"singlePriceContainer\"><span id=\"registrationPriceLabel\">${this._i18n.registrationPriceLabel} </span><span id=\"singlePriceValue\"></span> <span id=\"depositPriceContainer\" class=\"mpp-deposit-price-container\" style=\"display: none;\">| <span id=\"depositPriceValue\"></span> <span id=\"depositPriceText\"></span></span></h3></div><div id=\"registerAsContainer\" class=\"mppw-form-field mppw-form-field__static-container\" style=\"display: none\"><select name=\"ContactId\" id=\"registerAs\" class=\"mppw-form-field__control\" value=\"\"></select> <label class=\"mppw-form-field__label\" for=\"registerAs\">${this._i18n.registerAsLabel}*:</label></div><div id=\"contactInfoForm\" style=\"display: none\"><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"firstName\" name=\"FirstName\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.firstNameRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"firstName\">${this._i18n.firstNameLabel}*:</label></div></div><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"lastName\" name=\"LastName\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.lastNameRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"lastName\">${this._i18n.lastNameLabel}*:</label></div></div></div><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"email\" id=\"emailAddress\" name=\"EmailAddress\" class=\"mppw-form-field__control\" maxlength=\"255\" required data-require-if-blank=\"MobilePhoneNumber\" data-required-message=\"${this._i18n.phoneOrEmailRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"emailAddress\">${this._i18n.emailAddressLabel}*:</label></div></div><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"tel\" id=\"mobilePhone\" name=\"MobilePhoneNumber\" class=\"mppw-form-field__control\" maxlength=\"25\" required data-require-if-blank=\"EmailAddress\" data-required-message=\"${this._i18n.phoneOrEmailRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"mobilePhone\">${this._i18n.phoneNumberLabel}*:</label></div></div></div></div><div id=\"attendeeInfoForm\" style=\"display: none\"><h3>Attendee Information</h3><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"attendeeFirstName\" name=\"attendeeFirstName\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.attendeeFirstNameRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"attendeeFirstName\">${this._i18n.attendeeFirstNameLabel}*:</label></div></div><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"attendeeLastName\" name=\"attendeeLastName\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.attendeeLastNameRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"attendeeLastName\">${this._i18n.attendeeLastNameLabel}*:</label></div></div></div><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"date\" id=\"attendeeDateOfBirth\" name=\"attendeeDateOfBirth\" class=\"mppw-form-field__control mppw-form-field_alt-control-ios\" required data-invalid-message=\"\" min=\"1900-01-01\" max=\"\"> <label class=\"mppw-form-field__label\" for=\"attendeeDateOfBirth\">${this._i18n.attendeeDateOfBirth}*:</label></div></div></div></div><div id=\"parentInfoForm\" style=\"display: none\"><h3>Parent/Guardian Information</h3><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"parentFirstName\" name=\"parentFirstName\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.parentFirstNameRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"parentFirstName\">${this._i18n.parentFirstNameLabel}*:</label></div></div><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"parentLastName\" name=\"parentLastName\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.parentLastNameRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"parentLastName\">${this._i18n.parentLastNameLabel}*:</label></div></div></div><div class=\"mppw-row\"><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"email\" id=\"parentEmailAddress\" name=\"parentEmailAddress\" class=\"mppw-form-field__control\" maxlength=\"255\" required data-require-if-blank=\"parentMobilePhoneNumber\" data-required-message=\"${this._i18n.parentPhoneOrEmailRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"parentEmailAddress\">${this._i18n.parentEmailAddressLabel}*:</label></div></div><div class=\"mppw-col\"><div class=\"mppw-form-field\"><input type=\"tel\" id=\"parentMobilePhone\" name=\"parentMobilePhoneNumber\" class=\"mppw-form-field__control\" maxlength=\"25\" required data-require-if-blank=\"parentEmailAddress\" data-required-message=\"${this._i18n.parentPhoneOrEmailRequiredMessage}\"> <label class=\"mppw-form-field__label\" for=\"parentMobilePhone\">${this._i18n.parentPhoneNumberLabel}*:</label></div></div></div></div><div id=\"addressFormWrapper\" class=\"eventDetailsAddress\" style=\"display: none\"><h3>Address</h3><div class=\"mppw-row\"><div class=\"mpp-customform-col-12\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"addressLine1\" name=\"AddressLine1\" class=\"mppw-form-field__control\" maxlength=\"75\" required data-required-message=\"${this._i18n.registrationAddress1Required}\"> <label id=\"addressLine1Label\" class=\"mppw-form-field__label\" for=\"addressLine1\">${this._i18n.registrationAddressLabel}</label></div></div></div><div class=\"mppw-row\"><div class=\"mpp-customform-col-12\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"addressLine2\" name=\"AddressLine2\" class=\"mppw-form-field__control\" maxlength=\"75\"> <label class=\"mppw-form-field__label\" for=\"addressLine2\">${this._i18n.registrationAddressLabel2}</label></div></div></div><div class=\"mppw-row\"><div class=\"mpp-customform-col-4\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"city\" name=\"City\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.registrationCityRequired}\"> <label id=\"cityLabel\" class=\"mppw-form-field__label\" for=\"addressLine1\">${this._i18n.registrationCityLabel}</label></div></div><div class=\"mpp-customform-col-4\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"stateRegion\" name=\"StateRegion\" class=\"mppw-form-field__control\" maxlength=\"50\" required data-required-message=\"${this._i18n.registrationStateRequired}\"> <label id=\"stateLabel\" class=\"mppw-form-field__label\" for=\"addressLine1\">${this._i18n.registrationStateLabel}</label></div></div><div class=\"mpp-customform-col-4\"><div class=\"mppw-form-field\"><input type=\"text\" id=\"postalCode\" name=\"PostalCode\" class=\"mppw-form-field__control\" maxlength=\"15\" required data-required-message=\"${this._i18n.registrationZipCodeRequired}\"> <label id=\"zipCodeLabel\" class=\"mppw-form-field__label\" for=\"addressLine1\">${this._i18n.registrationZipCodeLabel}</label></div></div></div></div><div id=\"productOptionsWrapper\" style=\"display: none\"><h3 id=\"productOptionsTitle\"></h3><div id=\"productOptionsContainer\"></div></div><div id=\"formFields\" style=\"display: none\"></div><div id=\"promoCodeContainer\" style=\"display: none\"><h3>${this._i18n.promoCodeLabel}</h3><div class=\"mppw-form-field\"><input type=\"text\" id=\"promoCodeText\"/> <button id=\"addPromoCodeButton\" class=\"mppw-btn mppw-btn-sm primary\">${this._i18n.applyPromoCodeLabel}</button><div id=\"invalidPromoCode\" style=\"display: none; color: red;\">${this._i18n.invalidPromoCodeMessage}</div></div><table id=\"promoCodeTable\" class=\"promo-code-table\" style=\"display: none;\"><thead><tr><th class=\"promo-code-label\">${this._i18n.promoCodeTableHeaderLabel}</th><th class=\"promo-code-discount-label\">${this._i18n.promoDiscountTableHeaderLabel}</th><th class=\"promo-code-action-label\"></th></tr></thead></table></div><div id=\"updateMyInfoContainer\" class=\"mppw-form-field\" style=\"display: none;\"><label class=\"mpp-card-multiselect--checkbox-small\"><input type=\"checkbox\" id=\"inquire_updateMyInfo\" name=\"updateMyInfo\"/> <span style=\"float: left;\"></span></label> <label class=\"mpp-updatemyinfo--checkboxlabel\" for=\"inquire_updateMyInfo\">${this._i18n.updateMyInfoLabel}</label></div><div id=\"registrationTotalContainer\" style=\"display: none\"><h3>${this._i18n.registrationTotalLabel} <span id=\"registrationTotalValue\"></span></h3></div><div id=\"resultMessageContainer\" class=\"mppw-alert\" style=\"display: none;\"><div class=\"mppw-alert__icon\"></div><span id=\"resultMessageText\" class=\"mppw-alert__text\"></span></div><input type=\"button\" class=\"mppw-btn primary mpp-mt-10 submit--btn\" style=\"display: none\" id=\"addAnotherButton\" value=\"${this._i18n.addPersonButtonLabel}\"/> <input type=\"button\" class=\"mppw-btn primary mpp-mt-10 submit--btn\" style=\"display: none\" id=\"showAnotherPersonFormButton\" value=\"${this._i18n.addPersonButtonLabel}\"/> <input type=\"button\" class=\"mppw-btn primary mpp-mt-10 submit--btn\" style=\"display: none\" id=\"registerAndCheckoutButton\" value=\"${this._i18n.registerAndCheckoutButtonLabel}\"/> <input type=\"button\" class=\"mppw-btn primary mpp-mt-10 submit--btn\" style=\"display: none\" id=\"saveAndAddAnotherButton\" value=\"${this._i18n.saveAndAddAnotherButtonLabel}\"/> <input type=\"button\" class=\"mppw-btn primary mpp-mt-10 submit--btn\" style=\"display: none\" id=\"saveAndCheckoutButton\" value=\"${this._i18n.saveAndCheckoutButtonLabel}\"/> <input type=\"button\" class=\"mppw-btn primary mpp-mt-10 submit--btn\" style=\"display: none\" id=\"checkoutButton\" value=\"${this._i18n.registerAndCheckoutButtonLabel}\"/><div id=\"errorMessageContainer\" style=\"display: none;\"></div></form><div id=\"registrationNotActiveMessageContainer\" class=\"mppw-alert\" style=\"display: none;\"><div class=\"mppw-alert__icon\"></div><span id=\"registrationNotActiveMessageText\" class=\"mppw-alert__text\"></span></div></div></div>` ;\n this.BindHtmlElements();\n this._eventService = new EventsApiService();\n this._householdService = new HouseholdApiService();\n this._productsService = new ProductsApiService(); //Get Event\n\n this.ShowSpinner();\n _context.prev = 10;\n _context.next = 13;\n return this.LoadEventData();\n\n case 13:\n this._eventData = _context.sent;\n\n if (!this._eventData) {\n _context.next = 45;\n break;\n }\n\n this._$productId.value = this._eventData.registrationProductId;\n _context.next = 18;\n return this.UserIsAuthenticated();\n\n case 18:\n this._userIsAuthenticated = _context.sent;\n this._eventStartDate = null;\n this._daysOutToHide = null;\n this._isMinorRegistration = this._eventData.minorRegistration;\n this._$isMinorRegistration.value = this._isMinorRegistration;\n\n if (!this.IsEventViewable()) {\n _context.next = 43;\n break;\n }\n\n if (!((_this$_userInfo = this._userInfo) !== null && _this$_userInfo !== void 0 && _this$_userInfo.contactId)) {\n _context.next = 27;\n break;\n }\n\n _context.next = 27;\n return this._eventService.GetEventUserContact(this._userInfo.contactId).then(function (userContact) {\n _this._userContactInfo = userContact;\n\n _this.LoadHouseholdInfo();\n\n _this._$currentUserContactId.value = userContact.contactId;\n });\n\n case 27:\n _context.next = 29;\n return this.RenderForms();\n\n case 29:\n this.DrawEventDetails();\n\n if (!this.invoiceId) {\n _context.next = 38;\n break;\n }\n\n this._$invoiceId.value = this.invoiceId;\n _context.next = 34;\n return this.UpdateEventParticipants();\n\n case 34:\n this._$showAnotherPersonFormButton.style.display = \"\";\n this._$checkoutButton.style.display = \"\";\n _context.next = 40;\n break;\n\n case 38:\n this.ShowRegisterAsForm();\n\n if (!this._userIsAuthenticated) {\n this.ShowEventRegistrationDataForms();\n this.ShowUserInfoForms();\n this._$addAnotherButton.style.display = \"\";\n }\n\n case 40:\n //Wire stuff up:\n this.BindEventListeners();\n this._form = new FormManager(this._$registrationForm);\n\n if (this._eventData.allowEmail) {\n this.BuildModal();\n }\n\n case 43:\n _context.next = 46;\n break;\n\n case 45:\n this.SetMessage(\"danger\", \"This event is not available.\", false);\n\n case 46:\n _context.next = 52;\n break;\n\n case 48:\n _context.prev = 48;\n _context.t0 = _context[\"catch\"](10);\n console.error(_context.t0);\n this.SetMessage(\"danger\", _context.t0.message, false);\n\n case 52:\n _context.prev = 52;\n this.HideSpinner();\n return _context.finish(52);\n\n case 55:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[10, 48, 52, 55]]);\n }));\n\n function connectedCallback() {\n return _connectedCallback.apply(this, arguments);\n }\n\n return connectedCallback;\n }()\n }, {\n key: \"UpdateEventParticipants\",\n value: function () {\n var _UpdateEventParticipants = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var selectedParticipantId,\n clearInvoiceId,\n existingInvoiceResult,\n searchParams,\n _args2 = arguments;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n selectedParticipantId = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : undefined;\n clearInvoiceId = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : true;\n _context2.next = 4;\n return this._eventService.GetEventParticipantsByInvoice(this._$invoiceId.value);\n\n case 4:\n existingInvoiceResult = _context2.sent;\n\n if (!((existingInvoiceResult.isSomePaymentExists || !existingInvoiceResult.participants) && clearInvoiceId)) {\n _context2.next = 10;\n break;\n }\n\n searchParams = new URLSearchParams(window.location.search);\n searchParams[\"delete\"](\"invoiceid\");\n window.location.search = searchParams.toString();\n return _context2.abrupt(\"return\");\n\n case 10:\n // Proceed with updating event participants\n this._eventParticipants = existingInvoiceResult.participants;\n this.DrawExistingParticipants(selectedParticipantId);\n\n case 12:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function UpdateEventParticipants() {\n return _UpdateEventParticipants.apply(this, arguments);\n }\n\n return UpdateEventParticipants;\n }()\n }, {\n key: \"IsEventViewable\",\n value: function IsEventViewable() {\n // Determine if event is viewable based on visibility level\n switch (this._eventData.visibilityLevelId) {\n case 1:\n // Private event - not viewable\n this.SetMessage(\"warning\", this._i18n.privateEventMessage, false);\n return false;\n\n case 2:\n // Staff only event - viewable only if user is staff\n if (this._eventData.isUserStaff) {\n return true;\n } else {\n this.SetMessage(\"warning\", this._i18n.staffOnlyMessage, false);\n return false;\n }\n\n default:\n // Public event - viewable by all\n return true;\n }\n }\n }, {\n key: \"DrawEventDetails\",\n value: function DrawEventDetails() {\n this._$detailsContainer.innerHTML = \"\";\n var dateTimeFormatter = new DateTimeFormatter();\n var isMobile = CommonBuilder.isMobile();\n var _this$_eventData = this._eventData,\n imageUrl = _this$_eventData.imageUrl,\n title = _this$_eventData.title,\n attributes = _this$_eventData.attributes,\n description = _this$_eventData.description,\n opportunityCount = _this$_eventData.opportunityCount,\n location = _this$_eventData.location,\n address = _this$_eventData.address,\n latitude = _this$_eventData.latitude,\n longitude = _this$_eventData.longitude,\n startDate = _this$_eventData.startDate,\n endDate = _this$_eventData.endDate,\n startDateUTC = _this$_eventData.startDateUTC,\n endDateUTC = _this$_eventData.endDateUTC,\n contacts = _this$_eventData.contacts,\n meetingInstructions = _this$_eventData.meetingInstructions,\n externalRegistrationUrl = _this$_eventData.externalRegistrationUrl,\n allowEmail = _this$_eventData.allowEmail,\n rooms = _this$_eventData.rooms,\n showBuildingRoomInfo = _this$_eventData.showBuildingRoomInfo;\n var subtitlesArr = CardBuilder.BuildEventSubtitlesArr(null, startDate, endDate);\n this._eventStartDate = startDate;\n this._$detailsContainer.innerHTML += InnerPageBuilder.BuildInnerPageDetails(InnerPageBuilder.BuildGoBack(this._i18n.backToEventSearchLabel, this.returnUrl, ReturnContext.Categories.Events), InnerPageBuilder.BuildFinderDetailImage(imageUrl, \"event\"), InnerPageBuilder.BuildTitle(title), InnerPageBuilder.BuildLabels(_toConsumableArray(attributes)), InnerPageBuilder.BuildDateTime(subtitlesArr, false), InnerPageBuilder.BuildDescription(description), InnerPageBuilder.BuildContacts(contacts, this._i18n.eventContactLabel, allowEmail), InnerPageBuilder.BuildSpecialText(this._i18n.meetingInstructionsLabel, meetingInstructions));\n\n if (location != null) {\n this._$detailsContainer.innerHTML += InnerPageBuilder.BuildSpecialText(this._i18n.locationLabel, location);\n }\n\n if (rooms !== null && showBuildingRoomInfo) {\n var filterDuplicatedRooms = Array.from(new Set(rooms.map(JSON.stringify))).map(JSON.parse);\n var eventRooms = filterDuplicatedRooms.filter(function (_ref) {\n var roomInfo = _ref.roomInfo;\n return !!roomInfo;\n }).map(function (_ref2) {\n var roomInfo = _ref2.roomInfo;\n return roomInfo;\n }).join(\"<br/>\");\n\n if (eventRooms !== \"\") {\n this._$detailsContainer.innerHTML += InnerPageBuilder.BuildSpecialText(this._i18n.roomLabel, eventRooms);\n }\n }\n\n if (isMobile === true) {\n // Show button to bring up Maps application\n if (!!latitude && !!longitude) {\n this._$detailsContainer.innerHTML += InnerPageBuilder.BuildMapAddress(latitude + \",\" + longitude, false, this._i18n.getDirectionsLabel);\n } // Show button 'Add to Calendar' to download ics file\n\n\n this._$detailsContainer.innerHTML += ICSCalendarBuilder.BuildICSHrefString(title, description, location + \" - \" + address, startDateUTC, endDateUTC);\n } else {\n // Else show map\n if (!!latitude && !!longitude && !!address) {\n // Remove extra text from address string\n var addressOnly = address.replace(\"Address1:\", \"\").replace(\"Address2:\", \"\").replace(\"City, State Zip:\", \"\").replace(\"Country:\", \"\");\n this._$map.innerHTML = InnerPageBuilder.BuildGoogleMap(this._$map, latitude, longitude, addressOnly, title);\n this._$mapAddress.innerHTML = InnerPageBuilder.BuildMapAddress(addressOnly, true, this._i18n.getDirectionsLabel);\n this._$map.style.display = \"\";\n this._$mapAddress.style.display = \"\";\n this._$mapContainer.style.display = \"block\";\n }\n }\n\n if (!!externalRegistrationUrl) {\n // Insert after the map container element\n var extRegistrationContainer = document.createElement(\"div\"); // Moved the button next to the ExternalRegistrationUrl button\n\n if (opportunityCount > 0) {\n var buttonUrl = UrlUtils.AddQueryStringParams(this.opportunityFinderWidgetUrl, {\n eventid: this._$eventId.value\n });\n extRegistrationContainer.innerHTML = InnerPageBuilder.BuildCustomButton(externalRegistrationUrl, this._i18n.externalRegisterButtonLabel) + \" \" + InnerPageBuilder.BuildCustomButton(buttonUrl, this._i18n.volunteerLabel);\n } else {\n extRegistrationContainer.innerHTML = InnerPageBuilder.BuildCustomButton(externalRegistrationUrl, this._i18n.externalRegisterButtonLabel);\n }\n\n this._$mapContainer.after(extRegistrationContainer);\n } else {\n // Moved the button below the mapContainer instead of above the location\n if (opportunityCount > 0) {\n var buttonURLContainer = document.createElement(\"div\");\n\n var _buttonUrl = UrlUtils.AddQueryStringParams(this.opportunityFinderWidgetUrl, {\n eventid: this._$eventId.value\n });\n\n buttonURLContainer.innerHTML = InnerPageBuilder.BuildCustomButton(_buttonUrl, this._i18n.volunteerLabel);\n\n this._$mapContainer.after(buttonURLContainer);\n }\n }\n }\n }, {\n key: \"UserIsAuthenticated\",\n value: function () {\n var _UserIsAuthenticated = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.prev = 0;\n _context3.next = 3;\n return UserService.GetCurrentUser();\n\n case 3:\n this._userInfo = _context3.sent;\n return _context3.abrupt(\"return\", true);\n\n case 7:\n _context3.prev = 7;\n _context3.t0 = _context3[\"catch\"](0);\n this.HideUpdateMyInfoContainer();\n return _context3.abrupt(\"return\", false);\n\n case 11:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[0, 7]]);\n }));\n\n function UserIsAuthenticated() {\n return _UserIsAuthenticated.apply(this, arguments);\n }\n\n return UserIsAuthenticated;\n }()\n }, {\n key: \"ResetProductForm\",\n value: function () {\n var _ResetProductForm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {\n var _this$_eventData2, eventId, registrationProductId, forceLogin, registrationActive, isRegistrationFull, externalRegistrationUrl;\n\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _this$_eventData2 = this._eventData, eventId = _this$_eventData2.eventId, registrationProductId = _this$_eventData2.registrationProductId, forceLogin = _this$_eventData2.forceLogin, registrationActive = _this$_eventData2.registrationActive, isRegistrationFull = _this$_eventData2.isRegistrationFull, externalRegistrationUrl = _this$_eventData2.externalRegistrationUrl;\n\n if (!(!!registrationActive && !!registrationProductId && registrationProductId > 0)) {\n _context4.next = 10;\n break;\n }\n\n //Show the form:\n this._$registrationForm.style.display = \"\"; //Render the product form:\n\n this._$productOptionsContainer.innerHTML = \"\";\n _context4.next = 6;\n return this.DrawProductForm(registrationProductId, eventId, this.GetSelectedEventParticipantId());\n\n case 6:\n _context4.next = 8;\n return this.DrawCustomForm();\n\n case 8:\n _context4.next = 12;\n break;\n\n case 10:\n //Don't show the form at all:\n this._$registrationForm.style.display = \"none\";\n\n if (!!registrationProductId && registrationProductId > 0) {\n this.SetRegistrationNotActiveMessage();\n } else {\n this._$registrationNotActiveContainer.style.display = \"none\";\n }\n\n case 12:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this);\n }));\n\n function ResetProductForm() {\n return _ResetProductForm.apply(this, arguments);\n }\n\n return ResetProductForm;\n }()\n }, {\n key: \"RenderForms\",\n value: function () {\n var _RenderForms = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {\n var _this$_eventData3, eventId, registrationProductId, forceLogin, registrationActive, isRegistrationFull, externalRegistrationUrl;\n\n return regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n //Clear Form:\n this._$productOptionsContainer.innerHTML = \"\";\n _this$_eventData3 = this._eventData, eventId = _this$_eventData3.eventId, registrationProductId = _this$_eventData3.registrationProductId, forceLogin = _this$_eventData3.forceLogin, registrationActive = _this$_eventData3.registrationActive, isRegistrationFull = _this$_eventData3.isRegistrationFull, externalRegistrationUrl = _this$_eventData3.externalRegistrationUrl;\n\n if (!externalRegistrationUrl) {\n _context5.next = 4;\n break;\n }\n\n return _context5.abrupt(\"return\");\n\n case 4:\n if (!isRegistrationFull) {\n _context5.next = 7;\n break;\n }\n\n this.SetMessage(\"warning\", this._i18n.registrationFullMessage, false);\n return _context5.abrupt(\"return\");\n\n case 7:\n if (!(!!forceLogin && this._userIsAuthenticated === false)) {\n _context5.next = 10;\n break;\n }\n\n this._$loginButtonContainer.style.display = \"\";\n return _context5.abrupt(\"return\");\n\n case 10:\n if (!(!!registrationActive && !!registrationProductId && registrationProductId > 0)) {\n _context5.next = 20;\n break;\n }\n\n //Show the form:\n this._$registrationForm.style.display = \"\";\n\n if (this._userInfo) {\n // Check if user has already registered\n this.HasUserRegistered(this._userInfo.contactId);\n } //Render the product form:\n\n\n _context5.next = 15;\n return this.DrawProductForm(registrationProductId, eventId, this.GetSelectedEventParticipantId());\n\n case 15:\n _context5.next = 17;\n return this.DrawCustomForm();\n\n case 17:\n this.UpdateTotal();\n _context5.next = 22;\n break;\n\n case 20:\n //Don't show the form at all:\n this._$registrationForm.style.display = \"none\";\n\n if (!!registrationProductId && registrationProductId > 0) {\n this.SetRegistrationNotActiveMessage();\n } else {\n this._$registrationNotActiveContainer.style.display = \"none\";\n }\n\n case 22:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this);\n }));\n\n function RenderForms() {\n return _RenderForms.apply(this, arguments);\n }\n\n return RenderForms;\n }()\n }, {\n key: \"DrawProductForm\",\n value: function () {\n var _DrawProductForm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(registrationProductId, eventId) {\n var eventParticipantId,\n _args6 = arguments;\n return regeneratorRuntime.wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n eventParticipantId = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : null;\n _context6.next = 3;\n return this._productsService.GetProduct(registrationProductId, eventId, eventParticipantId);\n\n case 3:\n this._productData = _context6.sent;\n\n if (this._productData != null) {\n this.DrawPrice(this._productData.basePrice, this._productData.depositPrice);\n\n if (!!this._productData.description) {\n this._$productDescription.innerHTML = this._productData.description;\n } // Set the title of the product options container\n\n\n this._$productOptionsTitle.innerText = this._i18n.addOnsLabel; // Clear only the productOptionsContainer, not the title\n\n this._$productOptionsContainer.innerHTML = \"\";\n ProductFormBuilder.DrawForm(this._$productOptionsContainer, this._productData, this._i18n); // Bind product options event listeners\n\n this.BindProductEventListeners();\n }\n\n case 5:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6, this);\n }));\n\n function DrawProductForm(_x, _x2) {\n return _DrawProductForm.apply(this, arguments);\n }\n\n return DrawProductForm;\n }()\n }, {\n key: \"DrawPrice\",\n value: function DrawPrice(basePrice, depositPrice) {\n var hasDeposit = depositPrice !== null && depositPrice > 0;\n this._$depositPriceContainer.style.display = hasDeposit ? \"\" : \"none\";\n this._$singlePriceContainer.style.display = \"\";\n\n if (hasDeposit) {\n this._$singlePriceValue.innerText = \"$\".concat(basePrice.toFixed(2));\n this._$depositPriceText.innerText = this._i18n.depositDueAtRegistrationLabel;\n this._$depositPriceValue.innerText = \"$\".concat(depositPrice.toFixed(2));\n } else {\n this._$singlePriceValue.innerText = basePrice === 0 ? this._i18n.freePriceLabel : \"$\".concat(basePrice.toFixed(2));\n }\n }\n }, {\n key: \"DrawCustomForm\",\n value: function () {\n var _DrawCustomForm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {\n var customFormGuid;\n return regeneratorRuntime.wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n customFormGuid = this._eventData.customFormGuid; // Display custom form fields\n\n _context7.next = 3;\n return CustomFormBuilder.RenderCustomForm(customFormGuid, this._$formFields, this._$registrationForm, false, this._userIsAuthenticated);\n\n case 3:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7, this);\n }));\n\n function DrawCustomForm() {\n return _DrawCustomForm.apply(this, arguments);\n }\n\n return DrawCustomForm;\n }()\n }, {\n key: \"BuildModal\",\n value: function BuildModal() {\n var _this$_userInfo$user$, _this$_userInfo2, _this$_userInfo2$user, _this$_userInfo$user$2, _this$_userInfo3, _this$_userInfo3$user;\n\n this._$detailsContainer.innerHTML += ModalBuilder.BuildSendEmailModal((_this$_userInfo$user$ = (_this$_userInfo2 = this._userInfo) === null || _this$_userInfo2 === void 0 ? void 0 : (_this$_userInfo2$user = _this$_userInfo2.user) === null || _this$_userInfo2$user === void 0 ? void 0 : _this$_userInfo2$user.displayName) !== null && _this$_userInfo$user$ !== void 0 ? _this$_userInfo$user$ : \"\", (_this$_userInfo$user$2 = (_this$_userInfo3 = this._userInfo) === null || _this$_userInfo3 === void 0 ? void 0 : (_this$_userInfo3$user = _this$_userInfo3.user) === null || _this$_userInfo3$user === void 0 ? void 0 : _this$_userInfo3$user.email) !== null && _this$_userInfo$user$2 !== void 0 ? _this$_userInfo$user$2 : \"\");\n ModalBuilder.BindEmailModalEvents(this._root, this._eventData, this._$resultMessageContainer, this._$resultMessageText, this._userInfo);\n }\n }, {\n key: \"LoadHouseholdInfo\",\n value: function LoadHouseholdInfo() {\n var _this2 = this;\n\n if (!this._userInfo) return;\n this._$householdId.value = this._userInfo.householdId;\n return this._householdService.GetHousehold().then(function (household) {\n _this2._members = household.familyMembers;\n _this2._household = household;\n\n if (!!_this2._members && _this2._members.length > 0) {\n var allMembers = _this2._members.map(function (member) {\n return {\n id: member.contactId,\n value: _this2.GetDisplayName(member),\n disabled: _this2.IsMemberDisabled(member)\n };\n });\n\n allMembers.unshift({\n id: \"Blank Form\",\n value: _this2._i18n.registerAsBlankForm\n }); //Load family member dropdown\n\n DropdownBuilder.LoadDropdown(_this2._$registerAs, allMembers, _this2._i18n.registerAsDefaultLabel);\n } else {\n // Family member data is null so just use contactInfo to populate dropdown\n // Use logged in users contact info to populate dropdowns\n var contactDropdown = [{\n id: _this2._userInfo.contactId,\n value: \"\".concat(_this2._userInfo.user.lastName, \", \").concat(_this2._userInfo.user.firstName, \" \").concat(_this2._userInfo.user.nickName != _this2._userInfo.user.firstName && _this2._userInfo.user.nickName != \"\" ? \"(\".concat(_this2._userInfo.user.nickName, \")\") : \"\")\n }];\n contactDropdown.unshift({\n id: \"Blank Form\",\n value: _this2._i18n.registerAsBlankForm\n }); //Load family member dropdown\n\n DropdownBuilder.LoadDropdown(_this2._$registerAs, contactDropdown, _this2._i18n.registerAsDefaultLabel);\n }\n });\n }\n }, {\n key: \"ResetForm\",\n value: function () {\n var _ResetForm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {\n return regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n this._$promoCodeTable.innerHTML = \"\";\n this.ResetProductForm(); //Wire stuff up:\n\n this._form.Dispose();\n\n this._form = new FormManager(this._$registrationForm); // Reset address and contact form\n\n this.ResetAddressForm();\n this.ResetContactInfoForm();\n\n case 6:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8, this);\n }));\n\n function ResetForm() {\n return _ResetForm.apply(this, arguments);\n }\n\n return ResetForm;\n }()\n }, {\n key: \"ResetFormManually\",\n value: function ResetFormManually() {\n //Manually reset form elements:\n var form = this._form;\n this._$promoCodeTable.innerHTML = \"\";\n\n this._$registrationForm.reset();\n\n this.ResetContactInfoForm();\n this.ResetAddressForm(); // Manually reset form element values\n\n form.ResetFormValues();\n form.SetIsDirty(false); // Re-draw custom form, otherwise depends-on fields will no longer work\n\n this.DrawCustomForm();\n }\n }, {\n key: \"SubmitForm\",\n value: function () {\n var _SubmitForm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(options) {\n var _this$_eventParticipa, checkoutWidgetUrl, eventApiService, formData, isAvailable, response, isRegistrationStillAvailable, _checkoutWidgetUrl;\n\n return regeneratorRuntime.wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n if (!options) {\n _context9.next = 87;\n break;\n }\n\n _context9.prev = 1;\n this.DisableSubmitButtons();\n\n if (!(!this._form._isDirty && ((_this$_eventParticipa = this._eventParticipants) === null || _this$_eventParticipa === void 0 ? void 0 : _this$_eventParticipa.length) > 0 && options.action == \"registerAndCheckout\" && this._$invoiceId.value)) {\n _context9.next = 8;\n break;\n }\n\n this._form.SetIsDirty(false); //Redirect to checkout widget\n\n\n checkoutWidgetUrl = UrlUtils.AddQueryStringParams(this.checkouturl, {\n id: this._$invoiceId.value\n });\n window.location.href = checkoutWidgetUrl;\n return _context9.abrupt(\"return\", true);\n\n case 8:\n if (!this._form.IsValid()) {\n _context9.next = 77;\n break;\n }\n\n this._$firstNameText.disabled = false;\n this._$lastNameText.disabled = false;\n this._$attendeeFirstNameText.disabled = false;\n this._$attendeeLastNameText.disabled = false;\n this._$parentFirstNameText.disabled = false;\n this._$parentLastNameText.disabled = false; //Post form data\n\n eventApiService = new EventsApiService();\n formData = new FormData(this._$registrationForm);\n formData.set(\"updateMyInfo\", this._$updateMyInfo.checked);\n\n if (formData.get(\"ContactId\") === \"Blank Form\") {\n formData[\"delete\"](\"ContactId\");\n }\n\n _context9.next = 21;\n return this.LoadEventData();\n\n case 21:\n this._eventData = _context9.sent;\n\n if (this.ValidateDateOfBirth()) {\n _context9.next = 24;\n break;\n }\n\n return _context9.abrupt(\"return\", false);\n\n case 24:\n _context9.next = 26;\n return this.CheckEventAndProductAvailability(formData);\n\n case 26:\n isAvailable = _context9.sent;\n\n if (isAvailable) {\n _context9.next = 29;\n break;\n }\n\n return _context9.abrupt(\"return\", false);\n\n case 29:\n if (this._eventData.isRegistrationFull) {\n _context9.next = 74;\n break;\n }\n\n _context9.next = 32;\n return eventApiService.SaveRegistration(formData);\n\n case 32:\n response = _context9.sent;\n\n if (!response.success) {\n _context9.next = 69;\n break;\n }\n\n if (!(options.action == \"registerAndAddAnother\" || options.action == \"saveAndAddAnother\")) {\n _context9.next = 67;\n break;\n }\n\n _context9.next = 37;\n return this.ResetForm();\n\n case 37:\n this.HideUserInfoForms();\n this.HideEventRegistrationDataForms();\n this.ShowRegisterAsForm();\n this._$invoiceId.value = response.guid;\n\n if (!this._$invoiceId.value) {\n _context9.next = 47;\n break;\n }\n\n _context9.next = 44;\n return this.UpdateEventParticipants(undefined, false);\n\n case 44:\n this.UpdateParticipantTotal();\n _context9.next = 48;\n break;\n\n case 47:\n this.UpdateTotal();\n\n case 48:\n //Adds state to history to be able to go back to the event with specific invoice id when user hits Go Back browser button\n window.history.pushState(null, \"Edit Event Details\", \"?id=\".concat(this._eventData.id, \"&invoiceid=\").concat(this._$invoiceId.value));\n this.SetMessage(\"success\", this._i18n.saveAndAddPersonSuccessMessage, false); // Scroll to top of registration form\n\n this._$registrationForm.scrollIntoView({\n behavior: \"smooth\"\n });\n\n this._$registerAndCheckoutButton.style.display = \"none\";\n this._$addAnotherButton.style.display = \"none\";\n this._$registerAndAddAnotherButton.style.display = \"none\";\n this._$saveAndCheckoutButton.style.display = \"none\";\n this._$saveAndAddAnotherButton.style.display = \"none\";\n this._$checkoutButton.style.display = \"\";\n this._$eventParticipantId.value = null;\n this._$formResponseId.value = null;\n this._$registerAsContainer.style.display = \"none\";\n _context9.next = 62;\n return this._eventService.CheckPendingEventAvailability(this._eventData.id);\n\n case 62:\n isRegistrationStillAvailable = _context9.sent;\n\n if (isRegistrationStillAvailable) {\n this._$showAnotherPersonFormButton.style.display = \"\";\n\n if (this._userIsAuthenticated) {\n this._$registerAsContainer.style.display = \"\";\n this._$registerAs.value = \"\";\n }\n } else {\n this.SetMessage(\"success\", this._i18n.saveSuccessMessage, false);\n }\n\n this.EnableSubmitButtons();\n _context9.next = 68;\n break;\n\n case 67:\n if (options.action === \"registerAndCheckout\" || options.action === \"saveAndCheckout\") {\n // Since navigating away from page, need to manually set isDirty to false\n this._form.SetIsDirty(false); //Redirect to checkout widget\n\n\n _checkoutWidgetUrl = UrlUtils.AddQueryStringParams(this.checkouturl, {\n id: response.guid\n });\n window.history.pushState(null, \"Edit Event Details\", \"?id=\".concat(this._eventData.id, \"&invoiceid=\").concat(response.guid));\n window.location.href = _checkoutWidgetUrl;\n } else if (options.action === \"save\") {\n this.UpdateTotal();\n this._$invoiceId.value = response.guid;\n this.SetMessage(\"success\", this._i18n.saveSuccessMessage, false);\n\n this._form.SetIsDirty(false); // Scroll to top of registration form\n\n\n this._$registrationForm.scrollIntoView({\n behavior: \"smooth\"\n });\n\n this.EnableSubmitButtons();\n this._$registerAs.value = \"\";\n }\n\n case 68:\n return _context9.abrupt(\"return\", true);\n\n case 69:\n this.SetMessage(\"danger\", this._i18n.registrationSaveErrorMessage);\n this.EnableSubmitButtons();\n return _context9.abrupt(\"return\", false);\n\n case 74:\n this.SetMessage(\"warning\", this._i18n.registrationFullMessage, false);\n this.EnableSubmitButtons();\n return _context9.abrupt(\"return\", false);\n\n case 77:\n this.SetMessage(\"warning\", this._i18n.validationFailedMessage, false);\n this.EnableSubmitButtons();\n return _context9.abrupt(\"return\", false);\n\n case 82:\n _context9.prev = 82;\n _context9.t0 = _context9[\"catch\"](1);\n this.SetMessage(\"danger\", this._i18n.registrationSaveErrorMessage, false);\n this.EnableSubmitButtons();\n return _context9.abrupt(\"return\", false);\n\n case 87:\n return _context9.abrupt(\"return\", true);\n\n case 88:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9, this, [[1, 82]]);\n }));\n\n function SubmitForm(_x3) {\n return _SubmitForm.apply(this, arguments);\n }\n\n return SubmitForm;\n }()\n }, {\n key: \"BindEventListeners\",\n value: function BindEventListeners() {\n var _this3 = this;\n\n var _self = this;\n\n this.shadowRoot.addEventListener(\"click\", /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(e) {\n var target, _participant$firstNam, _participant$lastName, _participant$email, _participant$phone, _participant$addressL, _participant$addressL2, _participant$city, _participant$state, _participant$zip, _participant$formResp, selectedEventParticipantId, options, result, currentRowButton, contentRow, participant, _participant$firstNam2, _participant$lastName2, _participant$email2, _participant$phone2, formOptions, targetRemove, _selectedEventParticipantId;\n\n return regeneratorRuntime.wrap(function _callee10$(_context10) {\n while (1) {\n switch (_context10.prev = _context10.next) {\n case 0:\n target = e.target.closest(\".mppw-event-participant-button\");\n\n if (!target) {\n _context10.next = 59;\n break;\n }\n\n _self._$checkoutButton.style.display = \"none\";\n\n _self.ShowUserInfoForms();\n\n _self.ShowEventRegistrationDataForms();\n\n selectedEventParticipantId = +target.getAttribute(\"eventParticipantId\");\n options = {\n action: \"save\",\n fromEdit: true\n };\n\n if (!_self._form._isDirty) {\n _context10.next = 18;\n break;\n }\n\n _self.ShowSpinner();\n\n _context10.next = 11;\n return _self.SubmitForm(options);\n\n case 11:\n result = _context10.sent;\n\n if (result) {\n _context10.next = 15;\n break;\n }\n\n _self.HideSpinner();\n\n return _context10.abrupt(\"return\");\n\n case 15:\n _context10.next = 17;\n return _self.UpdateEventParticipants(selectedEventParticipantId);\n\n case 17:\n _self.HideSpinner();\n\n case 18:\n target.style.display = \"none\";\n\n if (_self.currentEventParticipantId) {\n _self.currentEditRow = _self.shadowRoot.querySelector(\"[data-event-participant-id=\\\"\".concat(_self.currentEventParticipantId, \"\\\"]\"));\n currentRowButton = _self.currentEditRow.querySelector(\".mppw-event-participant-button\");\n currentRowButton.style.display = \"\";\n _self.currentEditRow.style.fontWeight = \"normal\";\n }\n\n _self._$registerAndCheckoutButton.style.display = \"none\";\n _self._$registerAndAddAnotherButton.style.display = \"none\";\n _self._$saveAndCheckoutButton.style.display = \"\";\n _self._$saveAndAddAnotherButton.style.display = \"\";\n _self._$showAnotherPersonFormButton.style.display = \"none\";\n contentRow = target.closest(\".mppw-event-participant-content-row\");\n\n if (contentRow) {\n _context10.next = 28;\n break;\n }\n\n return _context10.abrupt(\"return\");\n\n case 28:\n contentRow.style.fontWeight = \"bold\"; //_self.currentEditRow = contentRow;\n\n _self.currentEventParticipantId = selectedEventParticipantId; // Reset address and contact form\n\n _self.ResetAddressForm();\n\n _self.ResetContactInfoForm(); // Clear promocodes if any\n\n\n _self._$promoCodeTable.innerHTML = \"\";\n _self._$promoCodeTable.style.display = \"none\";\n _self._$registerAsContainer.style.display = \"none\";\n _self._$updateMyInfoContainer.style.display = \"none\";\n _self._$userHasRegisteredContainer.style.display = \"none\";\n participant = _self._eventParticipants.find(function (x) {\n return x.eventParticipantId === selectedEventParticipantId;\n });\n\n if (_self._userInfo != null) {\n _self._$registerAs.value = participant.contactId;\n }\n\n _self._$firstNameText.value = (_participant$firstNam = participant.firstName) !== null && _participant$firstNam !== void 0 ? _participant$firstNam : \"\";\n _self._$lastNameText.value = (_participant$lastName = participant.lastName) !== null && _participant$lastName !== void 0 ? _participant$lastName : \"\";\n _self._$firstNameText.disabled = true;\n _self._$lastNameText.disabled = true;\n _self._$emailText.value = (_participant$email = participant.email) !== null && _participant$email !== void 0 ? _participant$email : \"\";\n _self._$phoneText.value = (_participant$phone = participant.phone) !== null && _participant$phone !== void 0 ? _participant$phone : \"\";\n _self._$addressLine1.value = (_participant$addressL = participant.addressLine1) !== null && _participant$addressL !== void 0 ? _participant$addressL : \"\";\n _self._$addressLine2.value = (_participant$addressL2 = participant.addressLine2) !== null && _participant$addressL2 !== void 0 ? _participant$addressL2 : \"\";\n _self._$city.value = (_participant$city = participant.city) !== null && _participant$city !== void 0 ? _participant$city : \"\";\n _self._$stateRegion.value = (_participant$state = participant.state) !== null && _participant$state !== void 0 ? _participant$state : \"\";\n _self._$postalCode.value = (_participant$zip = participant.zip) !== null && _participant$zip !== void 0 ? _participant$zip : \"\";\n\n if (participant.isMinorRegistration) {\n _self._$attendeeFirstNameText.value = participant.minorFirstName;\n _self._$attendeeLastNameText.value = participant.minorLastName;\n _self._$attendeeDateOfBirth.value = participant.minorDateOfBirth.slice(0, 10) || \"\";\n _self._$attendeeFirstNameText.disabled = true;\n _self._$attendeeLastNameText.disabled = true;\n _self._$parentFirstNameText.disabled = true;\n _self._$parentLastNameText.disabled = true;\n _self._$parentFirstNameText.value = (_participant$firstNam2 = participant.firstName) !== null && _participant$firstNam2 !== void 0 ? _participant$firstNam2 : \"\";\n _self._$parentLastNameText.value = (_participant$lastName2 = participant.lastName) !== null && _participant$lastName2 !== void 0 ? _participant$lastName2 : \"\";\n _self._$parentEmailText.value = (_participant$email2 = participant.email) !== null && _participant$email2 !== void 0 ? _participant$email2 : \"\";\n _self._$parentPhoneText.value = (_participant$phone2 = participant.phone) !== null && _participant$phone2 !== void 0 ? _participant$phone2 : \"\";\n }\n\n _self._$eventParticipantId.value = selectedEventParticipantId;\n\n if (((_participant$formResp = participant.formResponses) === null || _participant$formResp === void 0 ? void 0 : _participant$formResp.length) > 0) {\n _self._$formResponseId.value = participant.formResponses[0].Form_Response_ID;\n }\n\n _self._productData.optionGroups.forEach(function (group) {\n var groupId = group.optionGroupId;\n var isRadio = group.mutuallyExclusive;\n var isRequired = group.required;\n\n if (isRadio && isRequired) {\n var radioGroupElements = _self.shadowRoot.querySelectorAll(\"input[name=\\\"product-radio_\".concat(groupId, \"\\\"]\"));\n\n for (var i = 0; i < radioGroupElements.length; i++) {\n radioGroupElements[i].checked = false;\n }\n }\n\n group.optionPrices.forEach(function (option) {\n if (option.isHidden) {\n return;\n }\n\n var optionPriceElement = _self.shadowRoot.querySelector(\"#product-checkbox_\".concat(groupId, \"_\").concat(option.optionPriceId));\n\n if (!optionPriceElement) {\n optionPriceElement = _self.shadowRoot.querySelector(\"#product-radio_\".concat(option.optionPriceId));\n }\n\n if (!optionPriceElement) {\n return;\n }\n\n var optionPriceInvoiceDetailElement = _self.shadowRoot.querySelector(\"#product-option-invoice-detail_\".concat(groupId, \"_\").concat(option.optionPriceId));\n\n if (!optionPriceInvoiceDetailElement) {\n return;\n }\n\n var selectedOption = participant.selectedProductOptions.find(function (x) {\n return x.productOptionId === option.optionPriceId;\n });\n\n if (selectedOption) {\n if (selectedOption.invoiceDetailId) {\n optionPriceInvoiceDetailElement.value = selectedOption.invoiceDetailId;\n }\n\n var elementType = optionPriceElement.getAttribute(\"type\");\n\n if (elementType === \"checkbox\") {\n _self.EnableOptionRowElement(optionPriceElement);\n\n optionPriceElement.checked = true;\n } else if (elementType === \"radio\") {\n _self.EnableOptionRowElement(optionPriceElement);\n\n optionPriceElement.click();\n }\n } else {\n if (optionPriceElement.type === \"checkbox\") {\n optionPriceElement.checked = false;\n }\n }\n }); // Promocodes\n\n participant.selectedProductOptions.filter(function (x) {\n return x.isPromoCode;\n }).forEach(function (option) {\n _self._$promoCodeText.value = option.promoCode;\n\n _self.AddPromocode(option.promoCode, false);\n\n _self._$promoCodeTable.style.display = \"\";\n }); // Event Details\n\n participant.selectedProductOptions.filter(function (x) {\n return !x.productOptionId;\n }).forEach(function (option) {\n var productInvoiceDetailElement = _self.shadowRoot.querySelector(\"#product-invoice-detail_\".concat(option.productId));\n\n if (productInvoiceDetailElement && option.invoiceDetailId) {\n productInvoiceDetailElement.value = option.invoiceDetailId;\n }\n });\n }); // Clear checkboxes\n\n\n formOptions = _self.shadowRoot.querySelectorAll(\"input[name^='mp_customform_']\");\n formOptions.forEach(function (option) {\n if (option.type === \"checkbox\" && option.checked) {\n option.click();\n option.checked = false;\n }\n });\n participant.formResponses.forEach(function (response) {\n var formResponseElement = _self.shadowRoot.querySelector(\"#mp_customform_\".concat(response.Form_Field_ID));\n\n var formOptions = _self.shadowRoot.querySelectorAll(\"input[name='mp_customform_\".concat(response.Form_Field_ID, \"']\"));\n\n formOptions.forEach(function (formOption) {\n if (formOption.value === response.Response && !formOption.checked) {\n formOption.click();\n }\n });\n formResponseElement.value = response.Response;\n });\n\n _self.UpdateTotal();\n\n _self._form.SetIsDirty(false);\n\n case 59:\n targetRemove = e.target.closest(\".mppw-event-participant-remove-button\");\n\n if (!targetRemove) {\n _context10.next = 65;\n break;\n }\n\n _selectedEventParticipantId = +targetRemove.getAttribute(\"eventParticipantId\");\n\n if (_selectedEventParticipantId) {\n _context10.next = 64;\n break;\n }\n\n return _context10.abrupt(\"return\");\n\n case 64:\n _self.RemoveEventParticipant(_selectedEventParticipantId);\n\n case 65:\n case \"end\":\n return _context10.stop();\n }\n }\n }, _callee10);\n }));\n\n return function (_x4) {\n return _ref3.apply(this, arguments);\n };\n }());\n\n this._root.addEventListener(\"change\", function (e) {\n var checkbox = e.target.closest(\".product-checkbox\");\n\n if (checkbox) {\n // Extract the group ID and option ID from the checkbox's name attribute\n var _checkbox$name$split = checkbox.name.split(\"_\"),\n _checkbox$name$split2 = _slicedToArray(_checkbox$name$split, 3),\n _ = _checkbox$name$split2[0],\n optionGroupId = _checkbox$name$split2[1],\n optionPriceId = _checkbox$name$split2[2]; // Validate existence within the current product options\n\n\n var group = _self._productData.optionGroups.find(function (g) {\n return g.optionGroupId.toString() === optionGroupId;\n });\n\n var option = group && group.optionPrices.find(function (op) {\n return op.optionPriceId.toString() === optionPriceId;\n });\n\n if (group && option) {\n // Find and update the corresponding select element\n var selectElement = _self._root.querySelector(\"#product-qty_\".concat(optionGroupId, \"_\").concat(optionPriceId));\n\n if (selectElement) {\n selectElement.disabled = !checkbox.checked;\n\n _self.UpdateTotal();\n }\n }\n }\n });\n\n this._$loginButton.addEventListener(\"click\", function () {\n OAuthService.SignIn();\n });\n\n this._$showAnotherPersonFormButton.addEventListener(\"click\", function (event) {\n event.preventDefault();\n\n _this3.ShowEventRegistrationDataForms();\n\n _this3.ShowUserInfoForms();\n\n if (_this3._userInfo) {\n _this3._$registerAsContainer.style.display = \"\";\n }\n\n _this3._$showAnotherPersonFormButton.style.display = \"none\";\n _this3._$addAnotherButton.style.display = \"\";\n });\n\n this._$checkoutButton.addEventListener(\"click\", function (event) {\n event.preventDefault(); //Redirect to checkout widget\n\n var checkoutWidgetUrl = UrlUtils.AddQueryStringParams(_this3.checkouturl, {\n id: _this3._$invoiceId.value\n });\n window.location.href = checkoutWidgetUrl;\n });\n\n this._$registerAndAddAnotherButton.addEventListener(\"click\", function (event) {\n event.preventDefault();\n var options = {\n action: \"registerAndAddAnother\"\n };\n\n _this3.SubmitForm(options);\n });\n\n this._$registerAndCheckoutButton.addEventListener(\"click\", function (event) {\n event.preventDefault();\n var options = {\n action: \"registerAndCheckout\"\n };\n\n _this3.SubmitForm(options);\n });\n\n this._$saveAndAddAnotherButton.addEventListener(\"click\", function (event) {\n event.preventDefault();\n var options = {\n action: \"saveAndAddAnother\"\n };\n\n _this3.SubmitForm(options);\n });\n\n this._$saveAndCheckoutButton.addEventListener(\"click\", function (event) {\n event.preventDefault();\n var options = {\n action: \"saveAndCheckout\"\n };\n\n _this3.SubmitForm(options);\n });\n\n this._$addPromoCodeButton.addEventListener(\"click\", function (event) {\n event.preventDefault();\n\n if (!!_this3._$promoCodeText.value) {\n _this3._$invalidPromoCode.style.display = \"none\";\n\n _this3.AddPromocode(_this3._$promoCodeText.value, true);\n }\n });\n\n this._$registerAs.addEventListener(\"change\", function (e) {\n //Only show blank form if drop down value is null\n if (!!_this3._$registerAs.value) {\n _this3._form.SetIsDirty(false);\n\n _this3._$checkoutButton.style.display = \"none\";\n _this3._$showAnotherPersonFormButton.style.display = \"none\";\n\n _this3.ShowUserInfoForms();\n\n _this3.ShowEventRegistrationDataForms();\n\n if (_this3._$registerAs.value === \"Blank Form\") {\n _this3.HideUpdateMyInfoContainer();\n\n _this3._$addAnotherButton.style.display = \"\";\n\n _this3.ResetForm();\n } else {\n _this3.FillContactInfoForm(_this3._$registerAs.value);\n\n _this3.FillAddressForm(); // Check if user has already registered\n\n\n _this3.HasUserRegistered(e.target.value);\n\n _this3._$addAnotherButton.style.display = \"\";\n }\n } else {\n _this3.HideUserInfoForms();\n\n _this3.HideEventRegistrationDataForms();\n\n _this3._$registerAndCheckoutButton.style.display = \"none\";\n _this3._$showAnotherPersonFormButton.style.display = \"none\";\n _this3._$addAnotherButton.style.display = \"none\";\n }\n });\n }\n }, {\n key: \"AddPromocode\",\n value: function AddPromocode(promoCodeText) {\n var _this4 = this;\n\n var needToValidate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var productService = new ProductsApiService();\n this._$invalidPromoCode.style.display = \"none\";\n var promoCode = promoCodeText;\n var productId = this._eventData.registrationProductId; // For already applied promocodes only to avoid conflicts with Qty On Hand\n\n productService.ValidPromoCode(productId, promoCode, needToValidate).then(function (result) {\n var alreadyHasExclusiveGroupPromo = !!_this4._$promoCodeTable.querySelector(\"input[data-exclusivegroupid=\\\"\".concat(result.mutuallyExclusiveOptionGroupId, \"\\\"]\"));\n var promoCodeWithinDaysOutToHide = false;\n _this4._daysOutToHide = 0;\n\n if (result.daysOutToHide !== null && result.daysOutToHide > 0 && _this4._eventStartDate !== null && _this4._eventStartDate !== \"\") {\n _this4._daysOutToHide = result.daysOutToHide;\n var currentDate = new Date(),\n evtStartDate = new Date(_this4._eventStartDate);\n var diffTime = Math.abs(currentDate - evtStartDate),\n diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));\n\n if (diffDays < result.daysOutToHide) {\n promoCodeWithinDaysOutToHide = true;\n }\n }\n\n if (!!result.isValidPromoCode && result.promoCodePrice != 0 && !alreadyHasExclusiveGroupPromo && !promoCodeWithinDaysOutToHide) {\n ProductFormBuilder.BuildPromoCodeRow(_this4._$promoCodeTable, promoCode, result.promoCodePrice, result.mutuallyExclusiveOptionGroupId, _this4);\n _this4._$promoCodeText.value = \"\";\n\n _this4.HideMessage();\n\n _this4.UpdateTotal();\n\n if (_this4._$promoCodeTable.rows.length >= 1) {\n // Show promo codes table\n _this4._$promoCodeTable.style.display = \"\";\n }\n } else {\n _this4._$invalidPromoCode.style.display = \"\";\n }\n });\n }\n }, {\n key: \"BindProductEventListeners\",\n value: function BindProductEventListeners() {\n var _this5 = this;\n\n this._$productRadios = this._root.querySelectorAll(\".product-radio\");\n this._$productCheckboxes = this._root.querySelectorAll(\".product-checkbox\");\n this._$productSelects = this._root.querySelectorAll(\".product-select\");\n\n this._$productRadios.forEach(function (el) {\n if (!el.getAttribute(\"data-listener\")) {\n el.addEventListener(\"click\", function (event) {\n _this5.UpdateTotal();\n });\n el.setAttribute(\"data-listener\", true);\n }\n });\n\n this._$productCheckboxes.forEach(function (el) {\n return el.addEventListener(\"click\", function (event) {\n _this5.UpdateTotal();\n });\n });\n\n this._$productSelects.forEach(function (el) {\n return el.addEventListener(\"change\", function (event) {\n _this5.UpdateTotal();\n });\n });\n }\n }, {\n key: \"HasUserRegistered\",\n value: function HasUserRegistered(contactId) {\n var _this6 = this;\n\n var eventApiService = new EventsApiService();\n\n if (!!contactId) {\n eventApiService.HasRegistered(this._eventData.eventId, contactId).then(function (registeredResponse) {\n if (registeredResponse) {\n _this6._$userHasRegisteredContainer.style.display = \"\";\n } else {\n _this6._$userHasRegisteredContainer.style.display = \"none\";\n }\n })[\"catch\"](function (error) {\n _this6._$userHasRegisteredContainer.style.display = \"none\";\n });\n } else {\n this._$userHasRegisteredContainer.style.display = \"none\";\n }\n }\n }, {\n key: \"UpdateTotal\",\n value: function UpdateTotal() {\n var selectedEventParticipantId = this.GetSelectedEventParticipantId();\n this._registrationTotal = ProductFormBuilder.CalculateTotal(this._$registrationForm, this._productData, this._eventParticipants, selectedEventParticipantId);\n\n this._HandleRegistrationTotal();\n }\n }, {\n key: \"UpdateParticipantTotal\",\n value: function UpdateParticipantTotal() {\n var participantsTotal = ProductFormBuilder.CalculateParticipantsTotal(this._eventParticipants);\n this._registrationTotal = parseFloat(participantsTotal);\n\n this._HandleRegistrationTotal();\n }\n }, {\n key: \"_HandleRegistrationTotal\",\n value: function _HandleRegistrationTotal() {\n if (this._registrationTotal < 0) {\n if (this._$promoCodeTable.rows.length <= 0) {\n this.DisableSubmitButtons();\n this.SetMessage(\"danger\", this._i18n.registrationTotalInvalidMessage, false);\n } else {\n this._registrationTotal = 0;\n\n this._UpdateRegistrationTotalDisplay();\n }\n } else {\n this._UpdateRegistrationTotalDisplay();\n }\n }\n }, {\n key: \"_UpdateRegistrationTotalDisplay\",\n value: function _UpdateRegistrationTotalDisplay() {\n var _this$_eventData4;\n\n if ((_this$_eventData4 = this._eventData) !== null && _this$_eventData4 !== void 0 && _this$_eventData4.isFreeEvent) {\n this._$addressLine1.removeAttribute(\"required\");\n\n this._$city.removeAttribute(\"required\");\n\n this._$stateRegion.removeAttribute(\"required\");\n\n this._$postalCode.removeAttribute(\"required\");\n\n this._$registrationTotalContainer.style.display = \"none\";\n } else {\n this._$registrationTotalContainer.style.display = \"block\";\n this._$registrationTotalValue.innerHTML = NumberUtils.toCurrencyString(this._registrationTotal);\n this.EnableSubmitButtons();\n this.HideMessage();\n }\n }\n }, {\n key: \"BindHtmlElements\",\n value: function BindHtmlElements() {\n this._$spinner = this._root.querySelector(\"#spinner\");\n this._$componentMessageContainer = this._root.querySelector(\"#componentMessageContainer\");\n this._$componentMessageText = this._root.querySelector(\"#componentMessageText\");\n this._$loginButtonContainer = this._root.querySelector(\"#loginButtonContainer\");\n this._$loginButton = this._root.querySelector(\"#loginButton\");\n this._$eventId = this._root.querySelector(\"#EventId\");\n this._$householdId = this._root.querySelector(\"#HouseholdId\");\n this._$eventParticipantId = this._root.querySelector(\"#EventParticipantId\");\n this._$formResponseId = this._root.querySelector(\"#FormResponseId\");\n this._$productId = this._root.querySelector(\"#ProductId\");\n this._$isMinorRegistration = this._root.querySelector(\"#IsMinorRegistration\");\n this._$currentUserContactId = this._root.querySelector(\"#CurrentUserContactId\");\n this._$priceContainer = this._root.querySelector(\"#priceContainer\");\n this._$registrationPriceLabel = this._root.querySelector(\"#registrationPriceLabel\");\n this._$singlePriceContainer = this._root.querySelector(\"#singlePriceContainer\");\n this._$singlePriceValue = this._root.querySelector(\"#singlePriceValue\");\n this._$depositPriceContainer = this._root.querySelector(\"#depositPriceContainer\");\n this._$depositPriceText = this._root.querySelector(\"#depositPriceText\");\n this._$depositPriceValue = this._root.querySelector(\"#depositPriceValue\");\n this._$invoiceId = this._root.querySelector(\"#InvoiceId\");\n this._$detailsContainer = this._root.querySelector(\"#detailsContainer\");\n this._$map = this._root.querySelector(\"#map\");\n this._$mapAddress = this._root.querySelector(\"#mapAddress\");\n this._$mapContainer = this._root.querySelector(\"#mapContainer\");\n this._$registrationForm = this._root.querySelector(\"#registrationForm\");\n this._$registrationTotalValue = this._root.querySelector(\"#registrationTotalValue\");\n this._$productOptionsWrapper = this._root.querySelector(\"#productOptionsWrapper\");\n this._$productOptionsTitle = this._root.querySelector(\"#productOptionsTitle\");\n this._$productOptionsContainer = this._root.querySelector(\"#productOptionsContainer\");\n this._$resultMessageContainer = this._root.querySelector(\"#resultMessageContainer\");\n this._$registrationNotActiveContainer = this._root.querySelector(\"#registrationNotActiveMessageContainer\");\n this._$registrationNotActiveMessageText = this._root.querySelector(\"#registrationNotActiveMessageText\");\n this._$resultMessageText = this._root.querySelector(\"#resultMessageText\");\n this._$promoCodeText = this._root.querySelector(\"#promoCodeText\");\n this._$addPromoCodeButton = this._root.querySelector(\"#addPromoCodeButton\");\n this._$promoCodeContainer = this._root.querySelector(\"#promoCodeContainer\");\n this._$promoCodeTable = this._root.querySelector(\"#promoCodeTable\");\n this._$invalidPromoCode = this._root.querySelector(\"#invalidPromoCode\");\n this._$registerAndAddAnotherButton = this._root.querySelector(\"#addAnotherButton\");\n this._$registerAndCheckoutButton = this._root.querySelector(\"#registerAndCheckoutButton\");\n this._$saveAndAddAnotherButton = this._root.querySelector(\"#saveAndAddAnotherButton\");\n this._$saveAndCheckoutButton = this._root.querySelector(\"#saveAndCheckoutButton\");\n this._$showAnotherPersonFormButton = this._root.querySelector(\"#showAnotherPersonFormButton\");\n this._$addAnotherButton = this._root.querySelector(\"#addAnotherButton\");\n this._$checkoutButton = this._root.querySelector(\"#checkoutButton\");\n this._$contactInfoForm = this._root.querySelector(\"#contactInfoForm\");\n this._$attendeeInfoForm = this._root.querySelector(\"#attendeeInfoForm\");\n this._$parentInfoForm = this._root.querySelector(\"#parentInfoForm\");\n this._$registerAsContainer = this._root.querySelector(\"#registerAsContainer\");\n this._$registerAs = this._root.querySelector(\"#registerAs\");\n this._$firstNameText = this._root.querySelector(\"#firstName\");\n this._$lastNameText = this._root.querySelector(\"#lastName\");\n this._$emailText = this._root.querySelector(\"#emailAddress\");\n this._$phoneText = this._root.querySelector(\"#mobilePhone\");\n this._$attendeeFirstNameText = this._root.querySelector(\"#attendeeFirstName\");\n this._$attendeeLastNameText = this._root.querySelector(\"#attendeeLastName\");\n this._$attendeeDateOfBirth = this._root.querySelector(\"#attendeeDateOfBirth\");\n this._$parentFirstNameText = this._root.querySelector(\"#parentFirstName\");\n this._$parentLastNameText = this._root.querySelector(\"#parentLastName\");\n this._$parentEmailText = this._root.querySelector(\"#parentEmailAddress\");\n this._$parentPhoneText = this._root.querySelector(\"#parentMobilePhone\");\n this._$addressFormWrapper = this._root.querySelector(\"#addressFormWrapper\");\n this._$addressLine1 = this._root.querySelector(\"#addressLine1\");\n this._$addressLine1Label = this._root.querySelector(\"#addressLine1Label\");\n this._$addressLine2 = this._root.querySelector(\"#addressLine2\");\n this._$city = this._root.querySelector(\"#city\");\n this._$cityLabel = this._root.querySelector(\"#cityLabel\");\n this._$stateRegion = this._root.querySelector(\"#stateRegion\");\n this._$stateRegionLabel = this._root.querySelector(\"#stateLabel\");\n this._$postalCode = this._root.querySelector(\"#postalCode\");\n this._$postalCodeLabel = this._root.querySelector(\"#zipCodeLabel\");\n this._$eventParticipantsContainer = this._root.querySelector(\"#eventParticipantsContainer\");\n this._$userHasRegisteredContainer = this._root.querySelector(\"#userHasRegisteredContainer\");\n this._$productDescription = this._root.querySelector(\".mppw-product-description\");\n this._$updateMyInfoContainer = this._root.querySelector(\"#updateMyInfoContainer\");\n this._$updateMyInfo = this._root.querySelector(\"#inquire_updateMyInfo\"); //Note: This name is required since there is a dependency inside CustomFormBuilder.js\n\n this._$formFields = this._root.querySelector(\"#formFields\");\n this._$updateInformationWarningMessage = this._root.querySelector(\"#updateInformationWarningMessage\");\n this._$registrationTotalContainer = this._root.querySelector(\"#registrationTotalContainer\");\n }\n }, {\n key: \"LoadAttributes\",\n value: function LoadAttributes() {\n this.checkouturl = this.getAttribute(\"checkouturl\");\n this.returnUrl = this.getAttribute(\"returnurl\");\n this.opportunityFinderWidgetUrl = this.getAttribute(\"opportunityfinderwidgettargeturl\");\n }\n }, {\n key: \"LoadEventData\",\n value: function () {\n var _LoadEventData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {\n var _eventId;\n\n return regeneratorRuntime.wrap(function _callee11$(_context11) {\n while (1) {\n switch (_context11.prev = _context11.next) {\n case 0:\n _eventId = CommonBuilder.GetId();\n this.invoiceId = CommonBuilder.GetInvoiceId();\n this._$eventId.value = _eventId;\n return _context11.abrupt(\"return\", this._eventService.GetEventDetail(_eventId));\n\n case 4:\n case \"end\":\n return _context11.stop();\n }\n }\n }, _callee11, this);\n }));\n\n function LoadEventData() {\n return _LoadEventData.apply(this, arguments);\n }\n\n return LoadEventData;\n }()\n }, {\n key: \"LoadLabels\",\n value: function () {\n var _LoadLabels = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {\n var _this7 = this;\n\n return regeneratorRuntime.wrap(function _callee12$(_context12) {\n while (1) {\n switch (_context12.prev = _context12.next) {\n case 0:\n return _context12.abrupt(\"return\", new I18N(\"mpp-event-details\")[\"catch\"](function (error) {\n if (error.toString().startsWith(\"TypeError\")) {\n _this7._root.innerHTML = \"Unable to connect. Please check Permitted URLs.\";\n } else {\n _this7._root.innerHTML = \"\".concat(error);\n }\n }));\n\n case 1:\n case \"end\":\n return _context12.stop();\n }\n }\n }, _callee12);\n }));\n\n function LoadLabels() {\n return _LoadLabels.apply(this, arguments);\n }\n\n return LoadLabels;\n }()\n }, {\n key: \"SetMessage\",\n value: function SetMessage(status, message) {\n var _this8 = this;\n\n var autoHideMessage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (this._$registrationForm.style.display === \"none\") {\n this.SetComponentMessage(status, message, autoHideMessage);\n return;\n }\n\n this._$resultMessageContainer.classList.remove(\"mppw-alert__success\");\n\n this._$resultMessageContainer.classList.remove(\"mppw-alert__info\");\n\n this._$resultMessageContainer.classList.remove(\"mppw-alert__warning\");\n\n this._$resultMessageContainer.classList.remove(\"mppw-alert__danger\");\n\n this._$resultMessageContainer.classList.add(\"mppw-alert__\".concat(status));\n\n this._$resultMessageText.innerHTML = message;\n this._$resultMessageContainer.style.display = \"\";\n\n if (autoHideMessage) {\n setTimeout(function () {\n _this8.HideMessage();\n }, 3000);\n }\n }\n }, {\n key: \"SetComponentMessage\",\n value: function SetComponentMessage(status, message) {\n var _this9 = this;\n\n var autoHideMessage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n this._$componentMessageContainer.classList.remove(\"mppw-alert__success\");\n\n this._$componentMessageContainer.classList.remove(\"mppw-alert__info\");\n\n this._$componentMessageContainer.classList.remove(\"mppw-alert__warning\");\n\n this._$componentMessageContainer.classList.remove(\"mppw-alert__danger\");\n\n this._$componentMessageContainer.classList.add(\"mppw-alert__\".concat(status));\n\n this._$componentMessageText.innerHTML = message;\n this._$componentMessageContainer.style.display = \"\";\n\n if (autoHideMessage) {\n setTimeout(function () {\n _this9.HideComponentMessage();\n }, 3000);\n }\n }\n }, {\n key: \"HideComponentMessage\",\n value: function HideComponentMessage() {\n this._$componentMessageText.innerHTML = \"\";\n this._$componentMessageContainer.style.display = \"none\";\n }\n }, {\n key: \"SetRegistrationNotActiveMessage\",\n value: function SetRegistrationNotActiveMessage() {\n this._$registrationNotActiveContainer.classList.add(\"mppw-alert__warning\");\n\n this._$registrationNotActiveMessageText.innerHTML = this._i18n.registrationNotActiveMessage;\n this._$registrationNotActiveContainer.style.display = \"\";\n }\n }, {\n key: \"HideMessage\",\n value: function HideMessage() {\n this._$resultMessageText.innerHTML = \"\";\n this._$resultMessageContainer.style.display = \"none\";\n }\n }, {\n key: \"ShowSpinner\",\n value: function ShowSpinner() {\n this._$spinner.style.display = \"\";\n }\n }, {\n key: \"HideSpinner\",\n value: function HideSpinner() {\n this._$spinner.style.display = \"none\";\n }\n }, {\n key: \"FillContactInfoForm\",\n value: function FillContactInfoForm(contactId) {\n var _this10 = this;\n\n if (contactId) {\n var member = this._members.find(function (x) {\n return x.contactId == _this10._$registerAs.value;\n });\n\n if (member) {\n if (this._isMinorRegistration) {\n var _member$firstName, _member$lastName, _this$_userContactInf, _this$_userContactInf2, _this$_userContactInf3, _this$_userContactInf4, _this$_userContactInf5, _this$_userContactInf6, _this$_userContactInf7, _this$_userContactInf8;\n\n this._$attendeeFirstNameText.value = (_member$firstName = member.firstName) !== null && _member$firstName !== void 0 ? _member$firstName : \"\";\n this._$attendeeLastNameText.value = (_member$lastName = member.lastName) !== null && _member$lastName !== void 0 ? _member$lastName : \"\";\n this._$attendeeDateOfBirth.value = member.dateOfBirth && member.dateOfBirth.slice(0, 10) || \"\";\n this._$attendeeFirstNameText.disabled = true;\n this._$attendeeLastNameText.disabled = true;\n this._$parentFirstNameText.value = (_this$_userContactInf = (_this$_userContactInf2 = this._userContactInfo) === null || _this$_userContactInf2 === void 0 ? void 0 : _this$_userContactInf2.firstName) !== null && _this$_userContactInf !== void 0 ? _this$_userContactInf : \"\";\n this._$parentLastNameText.value = (_this$_userContactInf3 = (_this$_userContactInf4 = this._userContactInfo) === null || _this$_userContactInf4 === void 0 ? void 0 : _this$_userContactInf4.lastName) !== null && _this$_userContactInf3 !== void 0 ? _this$_userContactInf3 : \"\";\n this._$parentEmailText.value = (_this$_userContactInf5 = (_this$_userContactInf6 = this._userContactInfo) === null || _this$_userContactInf6 === void 0 ? void 0 : _this$_userContactInf6.emailAddress) !== null && _this$_userContactInf5 !== void 0 ? _this$_userContactInf5 : \"\";\n this._$parentPhoneText.value = (_this$_userContactInf7 = (_this$_userContactInf8 = this._userContactInfo) === null || _this$_userContactInf8 === void 0 ? void 0 : _this$_userContactInf8.mobilePhoneNumber) !== null && _this$_userContactInf7 !== void 0 ? _this$_userContactInf7 : \"\";\n this._$parentFirstNameText.disabled = true;\n this._$parentLastNameText.disabled = true;\n } else {\n var _member$firstName2, _member$lastName2, _member$emailAddress, _member$mobilePhoneNu;\n\n this._$firstNameText.value = (_member$firstName2 = member.firstName) !== null && _member$firstName2 !== void 0 ? _member$firstName2 : \"\";\n this._$lastNameText.value = (_member$lastName2 = member.lastName) !== null && _member$lastName2 !== void 0 ? _member$lastName2 : \"\";\n this._$emailText.value = (_member$emailAddress = member.emailAddress) !== null && _member$emailAddress !== void 0 ? _member$emailAddress : \"\";\n this._$phoneText.value = (_member$mobilePhoneNu = member.mobilePhoneNumber) !== null && _member$mobilePhoneNu !== void 0 ? _member$mobilePhoneNu : \"\";\n this._$firstNameText.disabled = true;\n this._$lastNameText.disabled = true;\n }\n\n this._$updateMyInfo.checked = false;\n } else {\n this.ResetContactInfoForm();\n }\n } else {\n this.ResetContactInfoForm();\n }\n\n this.UpdateNameFieldsState();\n }\n }, {\n key: \"FillAddressForm\",\n value: function FillAddressForm() {\n if (this._household) {\n var _this$_household$addr, _this$_household, _this$_household$addr2, _this$_household$addr3, _this$_household2, _this$_household2$add, _this$_household$addr4, _this$_household3, _this$_household3$add, _this$_household$addr5, _this$_household4, _this$_household4$add, _this$_household$addr6, _this$_household5, _this$_household5$add;\n\n this._$addressLine1.value = (_this$_household$addr = (_this$_household = this._household) === null || _this$_household === void 0 ? void 0 : (_this$_household$addr2 = _this$_household.address) === null || _this$_household$addr2 === void 0 ? void 0 : _this$_household$addr2.addressLine1) !== null && _this$_household$addr !== void 0 ? _this$_household$addr : \"\";\n this._$addressLine2.value = (_this$_household$addr3 = (_this$_household2 = this._household) === null || _this$_household2 === void 0 ? void 0 : (_this$_household2$add = _this$_household2.address) === null || _this$_household2$add === void 0 ? void 0 : _this$_household2$add.addressLine2) !== null && _this$_household$addr3 !== void 0 ? _this$_household$addr3 : \"\";\n this._$city.value = (_this$_household$addr4 = (_this$_household3 = this._household) === null || _this$_household3 === void 0 ? void 0 : (_this$_household3$add = _this$_household3.address) === null || _this$_household3$add === void 0 ? void 0 : _this$_household3$add.city) !== null && _this$_household$addr4 !== void 0 ? _this$_household$addr4 : \"\";\n this._$stateRegion.value = (_this$_household$addr5 = (_this$_household4 = this._household) === null || _this$_household4 === void 0 ? void 0 : (_this$_household4$add = _this$_household4.address) === null || _this$_household4$add === void 0 ? void 0 : _this$_household4$add.stateRegion) !== null && _this$_household$addr5 !== void 0 ? _this$_household$addr5 : \"\";\n this._$postalCode.value = (_this$_household$addr6 = (_this$_household5 = this._household) === null || _this$_household5 === void 0 ? void 0 : (_this$_household5$add = _this$_household5.address) === null || _this$_household5$add === void 0 ? void 0 : _this$_household5$add.postalCode) !== null && _this$_household$addr6 !== void 0 ? _this$_household$addr6 : \"\";\n } else {\n this.ResetAddressForm();\n }\n }\n }, {\n key: \"ResetContactInfoForm\",\n value: function ResetContactInfoForm() {\n this._$firstNameText.value = \"\";\n this._$lastNameText.value = \"\";\n this._$emailText.value = \"\";\n this._$phoneText.value = \"\";\n this._$attendeeFirstNameText.value = \"\";\n this._$attendeeLastNameText.value = \"\";\n this._$attendeeDateOfBirth.value = \"\";\n this._$parentFirstNameText.value = \"\";\n this._$parentLastNameText.value = \"\";\n this._$parentEmailText.value = \"\";\n this._$parentPhoneText.value = \"\";\n this._$updateMyInfo.checked = false; // Enable all name fields when resetting\n\n this._$firstNameText.disabled = false;\n this._$lastNameText.disabled = false;\n this._$attendeeFirstNameText.disabled = false;\n this._$attendeeLastNameText.disabled = false;\n this._$parentFirstNameText.disabled = false;\n this._$parentLastNameText.disabled = false;\n }\n }, {\n key: \"ResetAddressForm\",\n value: function ResetAddressForm() {\n this._$addressLine1.value = \"\";\n this._$addressLine2.value = \"\";\n this._$city.value = \"\";\n this._$stateRegion.value = \"\";\n this._$postalCode.value = \"\";\n }\n }, {\n key: \"DisableSubmitButtons\",\n value: function DisableSubmitButtons() {\n this._$registerAndCheckoutButton.disabled = true;\n this._$registerAndAddAnotherButton.disabled = true;\n this._$saveAndCheckoutButton.disabled = true;\n this._$saveAndAddAnotherButton.disabled = true;\n var editButtons = this.shadowRoot.querySelectorAll(\".mppw-event-participant-button\");\n editButtons.forEach(function (button) {\n button.style.pointerEvents = \"none\";\n button.style.color = \"#bbbbbb\";\n button.style.cursor = \"default\";\n });\n }\n }, {\n key: \"HideUserInfoForms\",\n value: function HideUserInfoForms() {\n if (this._isMinorRegistration) {\n this._$attendeeInfoForm.style.display = \"none\";\n this._$parentInfoForm.style.display = \"none\";\n } else {\n this._$contactInfoForm.style.display = \"none\";\n }\n\n this._$addressFormWrapper.style.display = \"none\";\n this.HideUpdateMyInfoContainer();\n }\n }, {\n key: \"ShowUserInfoForms\",\n value: function ShowUserInfoForms() {\n if (this._isMinorRegistration) {\n this._$attendeeInfoForm.style.display = \"\";\n this._$parentInfoForm.style.display = \"\";\n\n this._$firstNameText.removeAttribute(\"required\");\n\n this._$lastNameText.removeAttribute(\"required\");\n\n this._$emailText.removeAttribute(\"required\");\n\n this._$phoneText.removeAttribute(\"required\");\n } else {\n this._$contactInfoForm.style.display = \"\";\n\n this._$attendeeFirstNameText.removeAttribute(\"required\");\n\n this._$attendeeLastNameText.removeAttribute(\"required\");\n\n this._$attendeeDateOfBirth.removeAttribute(\"required\");\n\n this._$parentFirstNameText.removeAttribute(\"required\");\n\n this._$parentLastNameText.removeAttribute(\"required\");\n\n this._$parentEmailText.removeAttribute(\"required\");\n\n this._$parentPhoneText.removeAttribute(\"required\");\n }\n\n this._$addressFormWrapper.style.display = \"\";\n this.ShowUpdateMyInfoContainer();\n }\n }, {\n key: \"ShowRegisterAsForm\",\n value: function ShowRegisterAsForm() {\n if (this._userIsAuthenticated) {\n this._$registerAsContainer.style.display = \"\";\n }\n }\n }, {\n key: \"HideEventRegistrationDataForms\",\n value: function HideEventRegistrationDataForms() {\n this._$promoCodeContainer.style.display = \"none\";\n this._$registrationTotalContainer.style.display = \"none\";\n this._$productOptionsWrapper.style.display = \"none\";\n this._$formFields.style.display = \"none\";\n this._$priceContainer.style.display = \"none\";\n }\n }, {\n key: \"ShowEventRegistrationDataForms\",\n value: function ShowEventRegistrationDataForms() {\n var _this$_productData;\n\n if (!!((_this$_productData = this._productData) !== null && _this$_productData !== void 0 && _this$_productData.hasPromoCode)) {\n this._$promoCodeContainer.style.display = \"\";\n } // Check if there are any visible option prices\n\n\n var hasVisibleOptions = this._productData && this._productData.optionGroups.some(function (group) {\n return group.optionPrices.some(function (price) {\n return price.isHidden === false;\n });\n });\n\n if (hasVisibleOptions) {\n // Show the productOptionsWrapper if there are visible options\n this._$productOptionsWrapper.style.display = \"\";\n } else {\n // Hide the productOptionsWrapper if there are no visible options\n this._$productOptionsWrapper.style.display = \"none\";\n }\n\n this._$formFields.style.display = \"\";\n this._$priceContainer.style.display = \"\";\n this._$registerAndCheckoutButton.style.display = \"\";\n this._$checkoutButton.style.display = \"none\";\n this.UpdateTotal();\n }\n }, {\n key: \"EnableSubmitButtons\",\n value: function EnableSubmitButtons() {\n this._$registerAndCheckoutButton.disabled = false;\n this._$registerAndAddAnotherButton.disabled = false;\n this._$saveAndCheckoutButton.disabled = false;\n this._$saveAndAddAnotherButton.disabled = false;\n var editButtons = this.shadowRoot.querySelectorAll(\".mppw-event-participant-button\");\n editButtons.forEach(function (button) {\n button.style.pointerEvents = \"\";\n button.style.color = \"\";\n button.style.cursor = \"\";\n });\n }\n }, {\n key: \"DrawExistingParticipants\",\n value: function DrawExistingParticipants() {\n var _this11 = this;\n\n var selectedEventParticipant = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;\n if (!this._eventParticipants || this._eventParticipants.length <= 0) return;\n this._$eventParticipantsContainer.innerHTML = \"\";\n var index = 1;\n\n this._eventParticipants.forEach(function (participant) {\n var _this11$_eventData;\n\n var participantContainer = document.createElement(\"div\");\n participantContainer.className = \"mppw-event-participant-container\";\n var titleRow = document.createElement(\"div\");\n titleRow.className = \"mppw-event-participant-title-row\";\n var participantIcon = document.createElement(\"div\");\n participantIcon.className = \"mppw-participant-icon mppw-icon-user-circle\";\n titleRow.appendChild(participantIcon);\n var participantNumber = document.createElement(\"div\");\n participantNumber.className = \"mppw-participant-number\";\n participantNumber.innerText = \"Participant \" + index;\n titleRow.appendChild(participantNumber);\n var contentRow = document.createElement(\"div\");\n contentRow.className = \"mppw-event-participant-content-row\";\n contentRow.setAttribute(\"data-event-participant-id\", participant.eventParticipantId);\n\n if (selectedEventParticipant && participant.eventParticipantId == selectedEventParticipant) {\n contentRow.style.fontWeight = \"bold\";\n }\n\n var participantName = document.createElement(\"div\");\n participantName.className = \"mppw-event-participant-name\";\n participantName.innerText = \"\".concat(participant.firstName, \" \").concat(participant.lastName);\n contentRow.appendChild(participantName);\n var participantContacts = document.createElement(\"div\");\n participantContacts.className = \"mppw-event-participant-contacts\";\n participantContacts.innerHTML = \"<div>\".concat(participant.email, \"</div><div>\").concat(participant.phone, \"</div>\");\n contentRow.appendChild(participantContacts);\n var participantAddress = document.createElement(\"div\");\n participantAddress.className = \"mppw-event-participant-address\";\n participantAddress.innerHTML = \"<div>\".concat(participant.addressLine1).concat(participant.addressLine2 ? \"<br>\".concat(participant.addressLine2) : \"\", \"</div>\\n <div>\").concat(participant.city, \", \").concat(participant.state, \" \").concat(participant.zip, \"</div>\");\n contentRow.appendChild(participantAddress);\n var participantPrice = document.createElement(\"div\");\n participantPrice.className = \"mppw-event-participant-price\";\n participantPrice.innerText = (_this11$_eventData = _this11._eventData) !== null && _this11$_eventData !== void 0 && _this11$_eventData.isFreeEvent ? \"\" : \"\".concat(NumberUtils.toCurrencyString(participant.lineTotal));\n contentRow.appendChild(participantPrice);\n\n if (participant.lineTotal <= 0) {\n var registeredDiv = document.createElement(\"div\");\n registeredDiv.className = \"mppw-registered-label\";\n var boldText = document.createElement(\"div\");\n boldText.style.fontWeight = \"bold\";\n boldText.innerText = _this11._i18n.registeredLabel;\n registeredDiv.appendChild(boldText);\n contentRow.appendChild(registeredDiv);\n } else {\n var buttonsContainer = document.createElement(\"div\");\n buttonsContainer.className = \"mppw-event-participant-buttons\";\n var editButton = document.createElement(\"div\");\n editButton.className = \"mppw-btn primary mppw-event-participant-button\";\n editButton.setAttribute(\"eventParticipantId\", participant.eventParticipantId);\n editButton.innerText = \"Edit\";\n buttonsContainer.appendChild(editButton);\n var removeButton = document.createElement(\"div\");\n removeButton.className = \"mppw-btn secondary mppw-event-participant-remove-button\";\n removeButton.setAttribute(\"eventParticipantId\", participant.eventParticipantId);\n removeButton.innerText = \"X\";\n buttonsContainer.appendChild(removeButton);\n contentRow.appendChild(buttonsContainer);\n\n if (selectedEventParticipant && selectedEventParticipant == participant.eventParticipantId) {\n buttonsContainer.style.display = \"none\";\n }\n }\n\n participantContainer.appendChild(titleRow);\n participantContainer.appendChild(contentRow);\n\n if (participant.isMinorRegistration) {\n var _contentRow = document.createElement(\"div\");\n\n _contentRow.className = \"mppw-event-participant-content-row\";\n _contentRow.style.fontSize = \"13px\";\n _contentRow.style.justifyContent = \"flex-start\";\n\n if (selectedEventParticipant && participant.eventParticipantId == selectedEventParticipant) {\n _contentRow.style.fontWeight = \"bold\";\n }\n\n var _participantName = document.createElement(\"div\");\n\n _participantName.className = \"mppw-event-participant-name\";\n _participantName.innerText = \"Minor Registration\";\n _participantName.style.fontStyle = \"italic\";\n _participantName.style.width = \"unset\";\n\n _contentRow.appendChild(_participantName);\n\n var _participantContacts = document.createElement(\"div\");\n\n _participantContacts.className = \"mppw-event-participant-contacts\";\n _participantContacts.innerHTML = \"<div>\".concat(participant.minorFirstName, \" \").concat(participant.minorLastName, \"</div><div>\").concat(participant.minorDateOfBirth.slice(0, 10), \"</div>\");\n _participantContacts.style.fontWeight = \"bold\";\n\n _contentRow.appendChild(_participantContacts);\n\n participantContainer.appendChild(_contentRow);\n }\n\n _this11._$eventParticipantsContainer.appendChild(participantContainer);\n\n index += 1;\n });\n\n this.UpdateParticipantTotal();\n }\n }, {\n key: \"CheckEventAndProductAvailability\",\n value: function () {\n var _CheckEventAndProductAvailability = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(formData) {\n var _this12 = this;\n\n var eventApiService, availabilityResponse, eventAvailabilityStatus, soldOutProducts, status, soldOutProductNames;\n return regeneratorRuntime.wrap(function _callee13$(_context13) {\n while (1) {\n switch (_context13.prev = _context13.next) {\n case 0:\n eventApiService = new EventsApiService();\n _context13.next = 3;\n return eventApiService.CheckAvailability(formData);\n\n case 3:\n availabilityResponse = _context13.sent;\n eventAvailabilityStatus = {\n available: 200,\n soldOut: 409\n };\n\n if (availabilityResponse.isSuccessful) {\n _context13.next = 11;\n break;\n }\n\n soldOutProducts = availabilityResponse.soldOutProducts, status = availabilityResponse.status;\n\n if (soldOutProducts && soldOutProducts.length > 0) {\n soldOutProductNames = soldOutProducts.map(function (product) {\n return product.optionPrice.optionTitle;\n });\n this.SetMessage(\"warning\", \"Some products are sold out: \".concat(soldOutProductNames.join(\", \")), false); // Disable row elements for sold-out products\n\n soldOutProducts.forEach(function (product) {\n var element = _this12.FindOptionRowElement(product.optionPrice.optionPriceId);\n\n if (element) {\n _this12.DisableOptionRowElement(element);\n }\n });\n }\n\n if (status === eventAvailabilityStatus.soldOut) {\n this.SetMessage(\"warning\", \"The event is fully booked.\", false);\n }\n\n this.EnableSubmitButtons();\n return _context13.abrupt(\"return\", false);\n\n case 11:\n return _context13.abrupt(\"return\", true);\n\n case 12:\n case \"end\":\n return _context13.stop();\n }\n }\n }, _callee13, this);\n }));\n\n function CheckEventAndProductAvailability(_x5) {\n return _CheckEventAndProductAvailability.apply(this, arguments);\n }\n\n return CheckEventAndProductAvailability;\n }()\n }, {\n key: \"GetSelectedEventParticipantId\",\n value: function GetSelectedEventParticipantId() {\n var _this13 = this;\n\n if (this._eventParticipants && this._eventParticipants.length > 0) {\n var selectedParticipant = this._eventParticipants.find(function (participant) {\n return participant.eventParticipantId === _this13.currentEventParticipantId;\n });\n\n return selectedParticipant ? selectedParticipant.eventParticipantId : null;\n }\n\n return null;\n }\n }, {\n key: \"EnableOptionRowElement\",\n value: function EnableOptionRowElement(element) {\n if (!element.disabled) {\n return;\n }\n\n element.disabled = false;\n var row = element.closest(\"tr\");\n row.classList.remove(\"mppw-event-gray-out\");\n var label = element.parentElement;\n label.classList.remove(\"default-cursor\");\n label.classList.add(\"pointer-cursor\");\n var span = element.nextElementSibling;\n var elementType = element.type;\n\n if (elementType === \"checkbox\") {\n span.classList.remove(\"mppw-checkbox-gray-out\");\n span.classList.add(\"mppw-checkbox\");\n } else if (elementType === \"radio\") {\n span.classList.remove(\"mppw-radio-gray-out\");\n span.classList.add(\"mppw-radio\");\n }\n }\n }, {\n key: \"DisableOptionRowElement\",\n value: function DisableOptionRowElement(element) {\n if (element.disabled) {\n return;\n }\n\n element.disabled = true;\n var row = element.closest(\"tr\");\n row.classList.add(\"mppw-event-gray-out\");\n var label = element.parentElement;\n label.classList.remove(\"pointer-cursor\");\n label.classList.add(\"default-cursor\");\n var span = element.nextElementSibling;\n var elementType = element.type;\n\n if (elementType === \"checkbox\") {\n span.classList.remove(\"mppw-checkbox\");\n span.classList.add(\"mppw-checkbox-gray-out\");\n } else if (elementType === \"radio\") {\n span.classList.remove(\"mppw-radio\");\n span.classList.add(\"mppw-radio-gray-out\");\n }\n }\n }, {\n key: \"FindOptionRowElement\",\n value: function FindOptionRowElement(optionPriceId) {\n var element = this.shadowRoot.querySelector(\"#product-checkbox_\".concat(optionPriceId));\n\n if (!element) {\n element = this.shadowRoot.querySelector(\"#product-radio_\".concat(optionPriceId));\n }\n\n return element;\n }\n }, {\n key: \"RemoveEventParticipant\",\n value: function () {\n var _RemoveEventParticipant = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(eventParticipantId) {\n var participant, invoiceDetailId, apiInvoiceDetailId;\n return regeneratorRuntime.wrap(function _callee14$(_context14) {\n while (1) {\n switch (_context14.prev = _context14.next) {\n case 0:\n participant = this._eventParticipants.find(function (x) {\n return x.eventParticipantId === eventParticipantId;\n });\n\n if (participant) {\n _context14.next = 3;\n break;\n }\n\n return _context14.abrupt(\"return\");\n\n case 3:\n invoiceDetailId = this.GetInvoiceDetailIdFromParticipant(participant);\n\n if (!invoiceDetailId) {\n _context14.next = 9;\n break;\n }\n\n _context14.next = 7;\n return this.DeleteEventRegistration(invoiceDetailId, eventParticipantId);\n\n case 7:\n _context14.next = 24;\n break;\n\n case 9:\n _context14.prev = 9;\n _context14.next = 12;\n return this.GetInvoiceDetailId(eventParticipantId);\n\n case 12:\n apiInvoiceDetailId = _context14.sent;\n\n if (!apiInvoiceDetailId) {\n _context14.next = 18;\n break;\n }\n\n _context14.next = 16;\n return this.DeleteEventRegistration(apiInvoiceDetailId, eventParticipantId);\n\n case 16:\n _context14.next = 19;\n break;\n\n case 18:\n this.SetMessage(\"warning\", \"Unable to find the invoice.\");\n\n case 19:\n _context14.next = 24;\n break;\n\n case 21:\n _context14.prev = 21;\n _context14.t0 = _context14[\"catch\"](9);\n this.SetMessage(\"warning\", \"An error occurred while retrieving the invoice. Please try again.\");\n\n case 24:\n case \"end\":\n return _context14.stop();\n }\n }\n }, _callee14, this, [[9, 21]]);\n }));\n\n function RemoveEventParticipant(_x6) {\n return _RemoveEventParticipant.apply(this, arguments);\n }\n\n return RemoveEventParticipant;\n }()\n }, {\n key: \"GetInvoiceDetailIdFromParticipant\",\n value: function GetInvoiceDetailIdFromParticipant(participant) {\n if (participant.selectedProductOptions && participant.selectedProductOptions.length > 0) {\n return participant.selectedProductOptions[0].invoiceDetailId;\n }\n\n return null;\n }\n }, {\n key: \"GetInvoiceDetailId\",\n value: function () {\n var _GetInvoiceDetailId = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(eventParticipantId) {\n var invoiceDetailId;\n return regeneratorRuntime.wrap(function _callee15$(_context15) {\n while (1) {\n switch (_context15.prev = _context15.next) {\n case 0:\n _context15.next = 2;\n return this._eventService.GetBaseInvoiceDetail(eventParticipantId);\n\n case 2:\n invoiceDetailId = _context15.sent;\n return _context15.abrupt(\"return\", invoiceDetailId > 0 ? invoiceDetailId : null);\n\n case 4:\n case \"end\":\n return _context15.stop();\n }\n }\n }, _callee15, this);\n }));\n\n function GetInvoiceDetailId(_x7) {\n return _GetInvoiceDetailId.apply(this, arguments);\n }\n\n return GetInvoiceDetailId;\n }()\n }, {\n key: \"DeleteEventRegistration\",\n value: function () {\n var _DeleteEventRegistration = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(invoiceDetailId, eventParticipantId) {\n var checkoutApiService, result;\n return regeneratorRuntime.wrap(function _callee16$(_context16) {\n while (1) {\n switch (_context16.prev = _context16.next) {\n case 0:\n checkoutApiService = new CheckoutApiService();\n _context16.prev = 1;\n _context16.next = 4;\n return checkoutApiService.DeleteEventRegistration(invoiceDetailId);\n\n case 4:\n result = _context16.sent;\n\n if (result.success === true) {\n this._eventParticipants = this._eventParticipants.filter(function (participant) {\n return participant.eventParticipantId !== eventParticipantId;\n });\n\n if (this._eventParticipants && this._eventParticipants.length > 0) {\n this.DrawExistingParticipants();\n } else {\n window.location.reload(true);\n }\n }\n\n _context16.next = 11;\n break;\n\n case 8:\n _context16.prev = 8;\n _context16.t0 = _context16[\"catch\"](1);\n this.SetMessage(\"warning\", \"An error occurred while deleting the registration. Please try again.\");\n\n case 11:\n case \"end\":\n return _context16.stop();\n }\n }\n }, _callee16, this, [[1, 8]]);\n }));\n\n function DeleteEventRegistration(_x8, _x9) {\n return _DeleteEventRegistration.apply(this, arguments);\n }\n\n return DeleteEventRegistration;\n }()\n /**\r\n * Formats the display name of a household member.\r\n * @param {Object} member - The household member object.\r\n * @return {string} - The formatted display name.\r\n */\n\n }, {\n key: \"GetDisplayName\",\n value: function GetDisplayName(member) {\n return \"\".concat(member.lastName, \", \").concat(member.firstName, \" \").concat(member.nickName != member.firstName && member.nickName != \"\" ? \"(\".concat(member.nickName, \")\") : \"\");\n }\n /**\r\n * Determines if a household member should be disabled in the dropdown.\r\n * @param {Object} member - The household member object.\r\n * @return {boolean} - True if the member should be disabled, false otherwise.\r\n */\n\n }, {\n key: \"IsMemberDisabled\",\n value: function IsMemberDisabled(member) {\n if (this._isMinorRegistration) {\n // Disable if not Minor Child (2) or Adult Child (4)\n var isChild = member.householdPositionId === 2 || member.householdPositionId === 4;\n return !isChild;\n }\n\n return false;\n }\n }, {\n key: \"ValidateDateOfBirth\",\n value: function ValidateDateOfBirth() {\n var dateOfBirth = this._$attendeeDateOfBirth.value;\n\n if (!dateOfBirth) {\n return true; // No validation needed if the field is empty or doesn't exist\n }\n\n if (new Date(dateOfBirth) > new Date()) {\n this.SetMessage(\"danger\", this._i18n.dateOfBirthFutureError, false);\n this.EnableSubmitButtons();\n return false;\n }\n\n return true;\n }\n }, {\n key: \"UpdateNameFieldsState\",\n value: function UpdateNameFieldsState() {\n var isBlankForm = this._$registerAs.value === \"Blank Form\";\n var fieldsToUpdate = [this._$firstNameText, this._$lastNameText, this._$attendeeFirstNameText, this._$attendeeLastNameText, this._$parentFirstNameText, this._$parentLastNameText];\n fieldsToUpdate.forEach(function (field) {\n if (field) {\n field.disabled = !isBlankForm && field.value.trim() !== \"\";\n }\n });\n }\n }, {\n key: \"ShowUpdateMyInfoContainer\",\n value: function ShowUpdateMyInfoContainer() {\n if (this._userIsAuthenticated && this._$registerAs.value !== \"Blank Form\") {\n this._$updateMyInfoContainer.style.display = \"\";\n } else {\n this.HideUpdateMyInfoContainer();\n }\n }\n }, {\n key: \"HideUpdateMyInfoContainer\",\n value: function HideUpdateMyInfoContainer() {\n this._$updateMyInfoContainer.style.display = \"none\";\n this._$updateMyInfo.checked = false;\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"checkouturl\", \"returnurl\", \"opportunityfinderwidgettargeturl\"];\n }\n }]);\n\n return MppEventDetails;\n}(ComponentBase);\n\nMppEventDetails.registerComponent(\"mpp-event-details\", MppEventDetails);"],"names":["_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","CollapseBuilder","instance","Constructor","TypeError","_classCallCheck","this","staticProps","value","id","description","noDescriptionText","showDescriptionText","hideDescriptionText","concat","prototype","_typeof","obj","Symbol","iterator","constructor","authConfigurationCache","Configuration","SCRIPT_NAME","protoProps","useCacheIfAvailable","Promise","resolve","appRoot","GetAppRoot","url","fetch","then","authInfo","json","authConfiguration","err","console","error","Error","cacheKey","document","getElementById","undefined","currentScriptSrc","src","substring","indexOf","sessionStorage","log","keyName","response","text","countryList","result","window","navigator","localeParts","language","split","countryCode","matches","filter","country","abbreviation","ok","data","ConfigurationService","_arrayLikeToArray","arr","len","arr2","Array","DateTimeFormatter","_locale","localStorage","userLocale","_dayMonthOptions","month","day","_shortOptions","weekday","year","_timeOptions","hour","minute","_weekDays","dateValue","parts","map","Number","_parts","isArray","_arrayWithHoles","_arr","_n","_d","_e","_s","_i","next","done","push","_iterableToArrayLimit","o","minLen","n","toString","call","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","second","Date","NormalizeDateTime","toLocaleDateString","d","toLocaleTimeString","startDate","endDate","start","end","dateValueToCompare","dayOfWeek","finalDate","currentDayOfWeek","getDay","targetDayOfWeek","GetDayOfWeekFromString","setDate","getDate","standardFormat","arguments","dd","mm","getMonth","yyyy","getFullYear","a","b","MonthDiff","adjust","wholeMonthDiff","clonedA","anchor","setMonth","cloned2A","_cloned2A","Math","floor","UrlUtils","params","questionMarkIdx","entries","_ref","_ref2","join","TextFormatter","_value","String","replace","CardBuilder","isBadge","badgeText","imageUrl","type","style","targetUrl","btnText","finalTargetUrl","buttons","button","title","subtitles","subtitle","className","addLineBreaks","percentage","header","progressHeader","body","footer","isTransparent","headerBadge","headerImage","campaignName","tripDatesText","element","createElement","innerHTML","querySelector","addEventListener","itemDown","itemUp","details","main","classList","contains","remove","add","AddQueryStringParams","uniqueId","isChecked","labels","cardClass","label","invoiceDate","invoiceTotal","invoiceStatus","subtitlesArr","ToShortDateFormatted","total","toFixed","toLocaleString","location","meetingDay","meetingTime","alreadyMeetingText","capacityTitle","capacityLabel","dateTimeFormatter","ToShortTime","IsInThePast","ToShortDate","ToShortDateTime","ToShortDateTimeRange","index","publicationId","subscribed","BuildCollapse","BuildCheckbox","privateMethods","getUrlParameter","results","RegExp","exec","decodeURIComponent","URLSearchParameters","_params","URLSearchParams","_urlSearchParams","get","has","substr","CommonBuilder","urlParams","search","ParseFromPath","queryString","href","urlArray","match","matchMedia","msMatchMedia","asyncGeneratorStep","gen","reject","_next","_throw","arg","info","_wrapNativeSuper","Class","_cache","Map","fn","Function","set","Wrapper","_construct","_getPrototypeOf","create","_setPrototypeOf","Parent","args","_isNativeReflectConstruct","Reflect","construct","apply","bind","sham","Proxy","Boolean","valueOf","e","p","setPrototypeOf","__proto__","getPrototypeOf","ComponentBase","_HTMLElement","subClass","superClass","_inherits","_setStyleFiles","Derived","hasNativeReflectConstruct","_super","self","Super","NewTarget","ReferenceError","_assertThisInitialized","_this","_baseRoot","attachShadow","mode","_root","appendChild","_Init","setStyleFiles","regeneratorRuntime","mark","_callee","config","customCss","_this2","wrap","_context","prev","customCssUrl","getAttribute","_appRoot","abrupt","GetCustomStyles","customCssFiles","forEach","cssFile","rel","media","stop","customElementName","componentType","customElements","define","getElementsByClassName","el","myWidget","getAttributeNames","attr","setAttribute","HTMLElement","FormFieldBuilder","_config","isRequired","requiredMessage","isHidden","dependsOnId","dependsOnValue","maxLength","withCounter","altLabel","_RenderAltLabel","invalidMessage","min","max","requireIfBlank","options","option","_len","_key","param","checked","replaceAll","labelContent","requiredTag","_RenderRequiredAsterisk","FileUploader","_invalidFileTypeMessage","_invalidFileSizeMessage","_selectDifferentFileMessage","file","elem","callback","xhr","XMLHttpRequest","fd","FormData","open","onreadystatechange","readyState","status","JSON","parse","append","send","formContainer","fileUploadComponentHtml","root","invalidFileTypeMessage","invalidFileSizeMessage","selectDifferentFileMessage","$formRow","$formControl","_dropArea","_fileInputId","_filePreviewGallery","_invalidFileTypeLabel","display","BindEventListener","eventName","preventDefaults","event","files","dataTransfer","handleFiles","preventDefault","stopPropagation","fileName","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","fileSize","clearPreviewFiles","size","round","validateUploadFileExtension","previewFile","reader","FileReader","readAsDataURL","onloadend","img","startsWith","fileElement","fileCloseIcon","ArgumentException","_Error","argName","ArgumentTypeException","_Error2","_super2","_getKey","LocalStorageManager","item","setItem","fullKey","getItem","removeItem","storageKeys","keys","searchFor","keyValue","SessionStorageManager","_tokenKeyName","_idTokenKeyName","_expiresAfterName","_csrfToken","mppw_refreshTokenPromise","OAuthService","_RefreshTokensAsync","_SaveAuthTokensAsync","_SaveCSRFTokenAsync","tokenValue","token","idTokenValue","idToken","expiresAfterValue","expiresAfter","_unused","stringify","GetAuthConfiguration","oauthConfig","signInUrl","responseType","scope","clientId","redirectUrl","nonce","encodeURIComponent","Token","signOutUrl","IdToken","postLogoutRedirectUrl","encodeURI","GetCSRFToken","sent","CSRFToken","_callee2","tokenParamName","userSearchParameters","tokens","_context2","history","replaceState","GetAuthToken","_SaveTokens","_callee3","_context3","ExpiresAfter","credentials","_ClearTokens","accessToken","setSeconds","getSeconds","expiresIn","_addAuth","withCredentials","headers","Authorization","_addCSRF","expiresAfterUtc","expiresAfterUTC","_getCurrentUTCDateTime","SaveCSRFTokenAsync","now","UTC","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","_htmlSanitizer","_eventSanitizer","_htmlSanitize","textObj","cleanKeys","depth","getOwnPropertyNames","Ajax","_RefreshTokensIfNeededAsync","_Post","RefreshTokensIfNeededAsync","SignIn","additionalHeaders","retry","_args","method","t0","SecondaryStatusCode","Post","_x","_x2","_x3","currentTime","RefreshTokensAsync","CustomFormApiService","FormGuid","Get","contactId","formData","I18N","componentName","_componentName","GetCurrentLocale","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","_objectSpread","source","_defineProperty","getOwnPropertyDescriptors","defineProperties","_createForOfIteratorHelper","allowArrayLike","it","F","s","_e2","f","normalCompletion","didErr","step","_e3","_customFormInputPrefix","CustomFormBuilder","_DrawLoginRequest","_RenderCustomForm","_getTranslations","i18n","_i18n","customFormGuid","customFormFieldsElement","customFormRootElement","skipFormInstructions","isUserAuthenticated","customFormService","_yield$Promise$all","_yield$Promise$all2","customFormData","customFormConfig","customForm","getTranslations","all","GetFormFields","GetConfigurations","GetForm","customFormInputPrefix","DrawFormInstructions","Force_Login","DrawLoginRequest","DrawForm","_x4","_x5","errorMessageContainer","errorIcon","errorMessage","loginButtonContainer","loginButton","innerText","customFormPleaseLoginMessage","justifyContent","marginBottom","_x6","instructions","formInstructions","formFieldBuilder","formFields","formIdInputContainer","formIdElement","BuildHiddenInput","Form_ID","r","BuildFormControl","uniqueParentFields","fieldId","Form_Field_ID","BindParentFormFieldListener","customFieldsTree","formField","Field_Type_ID","dependsOnSelectedId","dependsOnSelectedValue","ShowHideDependsOnElements","dependsOnFields","querySelectorAll","inputElements","getElementsByTagName","selectElements","textareaElements","_step","_iterator","_step2","_iterator2","_step3","_iterator3","node","nodeId","_step4","_iterator4","children","child","FindNodeById","hideField","nextSibling","_step5","_iterator5","_step6","_iterator6","_step7","_iterator7","stack","array","hashMap","nodeRoot","pop","tempNode","elementsArray","_step8","formRoot","_iterator8","HideElement","find","nodesToHide","_step9","_iterator9","_node","flattenedArray","FlattenTree","HideAllElements","showFields","dataAttrValue","_step10","_iterator10","removeAttribute","_step11","_iterator11","_step12","_iterator12","fieldData","Field_Label","Alternate_Label","Required","Field_Values","Field_Order","Depends_On","Depends_On_Value","Label","controlHtml","BuildCustomTextInput","BuildCustomTextarea","BuildCustomDateInput","vRadioOptions","BuildCustomVerticalRadio","selectOptions","BuildCustomSelect","BuildCustomParagraph","hRadioOptions","BuildCustomHorizontalRadio","BuildCustomCheckbox","fileUploadHtml","BuildCustomFileUploader","InitializeFileUploader","contactFormHtml","contactLabel","firstNameLabel","lastNameLabel","phoneOrEmailRequiredLabel","emailAddressLabel","mobilePhoneLabel","countryDropdownData","_formFieldBuilder","addressFormHtml","addressLabel","BuildCustomFormSelect","countryLabel","addressLineLabel","cityLabel","stateRegionLabel","postalCodeLabel","elementType","click","opt","createTextNode","DropdownBuilder","selectElement","placeholder","j","firstOpt","disabled","groupByGroupName","reduce","objectsByKeyValue","attributeByGroupName","groupName","optgroup","attrs","insertBefore","idx","objDate","monthNames","m","_GetMonthBaseOnLocale","numberOfMonthsOut","GetCurrentMonth","keptMonths","monthValue","rr","monthNumber","includes","color","FormManager","form","_form","_isDirty","_handleUnloadPageFunction","_wireupValidation","removeEventListener","isValid","elements","field","ValidateField","dataset","ignoreValidation","PHONE_REGEX","EMAIL_REGEX","_setInvalid","_setValid","dependencyPassed","$dependentField","_checkRequired","requireIf","$parentField","reset","ResetFormValues","SetIsDirty","formElement","parentElement","FIELD_CONTAINER_VALID_CLASSNAME","FIELD_CONTAINER_INVALID_CLASSNAME","_clearMessages","checkboxGroup","returnValue","allElements","dependentField","parentField","textAreas","characterCount","maxCount","counterDiv","nextElementSibling","TEXTAREA_COUNTER_CLASSNAME","textInputs","phoneFields","y","x","message","closest","FIELD_CONTAINER_CLASSNAME","formFieldAlt","FIELD_CONTAINER_CLASSNAME_ALT","existingMessageDiv","MESSAGE_CONTAINER_CLASSNAME","parentNode","removeChild","messageDiv","CommunicationService","emailTemplateId","ModalBuilder","senderName","senderEmail","modal","_eventData","_resultMessageContainer","_resultMessageText","_userProfile","_$sendEmailForm","sendEmailForm","clickHandler","contact","contacts","emailAddress","_$modal","titleName","displayName","reverse","recepientName","contactFromId","contactName","contactEmail","messageTitle","wrapper","ev","composedPath","Reset","closeBtn","communicationService","IsValid","SendEmail","emailResponse","warn","EventsApiService","eventDate","_errorJson$message","errorJson","invoiceId","amount","eventId","eventParticipantId","HouseholdApiService","ICSCalendarBuilder","eventTitle","eventDescription","eventLocation","eventStartDate","eventEndDate","isAllDayEvent","icsLink","GetICSHrefValue","startDateFormatted","endDateFormatted","newLineEncodingChar","icsSummary","icsDescription","icsLocation","icsEndDate","icsStartDate","icsContent","GoogleMapsApi","gApiKey","apiKey","_GoogleMapsApi","callbackName","mapLoaded","promise","google","script","async","stylers","styles","icons","red","MapBuilder","addressData","GetConfigurationSetting","load","_renderMap","addressId","addressLine1","encodedParameters","city","state","postalCode","mapEl","mapTypeId","maps","MapTypeId","ROADMAP","zoom","center","lat","lng","_renderMarker","Size","tmpl","address","marker","Marker","position","LatLng","content","animation","Animation","DROP","infowindow","InfoWindow","_handleMarkerClick","addListener","setContent","close","mapElement","geocoder","Geocoder","myOptions","mapTypeControl","mapTypeControlOptions","MapTypeControlStyle","DROPDOWN_MENU","navigationControl","geocode","GeocoderStatus","OK","ZERO_RESULTS","setCenter","geometry","_keyPrefix","ReturnContext","category","clear","formDataObject","pair","Url","Groups","Events","Opportunities","OnlineDirectory","None","hiddenContainer","inHiddenContainer","formElements","_loop","formElementMatches","changed","InnerPageBuilder","navLabel","returnUrl","Categories","actualReturnUrl","returnContext","imageSrc","headerName","headerType","isAddToCalendar","dateTime","BuildButton","meetingFrequency","special","regular","counterText","line","_elements","ApplyI18n","$mapEl","latitude","longitude","DrawMap","MapsSelector","platform","allowEmail","hasEmailAddress","charAt","dateTimes","meetingInstructions","_len2","_key2","tabElements","clickedTab","currentTarget","SetActiveTab","activeTabId","tabContentAreas","tabsToHideArray","SetTabVisibile","visibleTabId","visible","toggleTabElement","toggleTabContentArea","NumberUtils","isNaN","currency","ProductFormBuilder","container","optionGroups","group","optionGroupContainer","optionGroupLabel","required","optionGroupName","optionGroupDescription","fieldControlContainer","tableHtml","BuildTable","tableHeader","BuildHeaderRow","mutuallyExclusive","tableNotSelectedRow","BuildNotSelectedRow","optionGroupId","optionPrices","price","tableRow","BuildOptionRow","productId","table","width","headerCell","headerRow","productOptionDescriptionLabel","productQtyLabel","productPriceLabel","optionRow","groupData","rowData","optionCell","disabledElement","mppwRadioClass","mppwCheckboxClass","cursorStatus","qtyOnHand","optionPriceId","optionTitle","noteLabel","qtyRemaining","qtyAllowed","maxQty","qtySelect","q","minQty","qtyOption","toCurrencyString","optionPrice","promoCode","mutuallyExclusiveGroupId","context","hiddenField","row","promoCodeCell","promoCodeText","discountAmountCell","discountAmount","removeCell","removeLink","removePromoCodeButtonLabel","UpdateTotal","rows","productForm","productData","eventParticipants","selectedEventParticipantId","basePrice","values","qtyField","qty","tagName","selectedIndex","g","participantsTotal","parseFloat","CalculateParticipantsTotal","participant","lineTotal","ProductsApiService","needToValidate","UserService","_SaveUserAttributes","_GetAllActiveAttributes","_GetCurrentUserAttributes","_GetCurrentUser","userNotAuthenticatedMsg","userNotFoundMsg","currentUser","notAuthenticatedMessage","userNotFound","userInfo","currentUserAttributes","userAttributesInfo","allActiveAttributes","allAttributesInfo","_callee4","_context4","CheckoutApiService","invoiceguid","invoiceGuid","audienceUrl","amountToPay","paymentOption","tokenPayload","invoiceDetailId","MppEventDetails","_ComponentBase","_DeleteEventRegistration","_GetInvoiceDetailId","_RemoveEventParticipant","_CheckEventAndProductAvailability","_LoadLabels","_LoadEventData","_SubmitForm","_ResetForm","_DrawCustomForm","_DrawProductForm","_RenderForms","_ResetProductForm","_UserIsAuthenticated","_UpdateEventParticipants","_connectedCallback","_this$_userInfo","LoadLabels","LoadAttributes","pleaseLoginMessage","eventRegistrationHeaderLabel","updateInformationWarningMessage","userHasRegisteredMessage","registrationPriceLabel","registerAsLabel","firstNameRequiredMessage","lastNameRequiredMessage","phoneOrEmailRequiredMessage","phoneNumberLabel","attendeeFirstNameRequiredMessage","attendeeFirstNameLabel","attendeeLastNameRequiredMessage","attendeeLastNameLabel","attendeeDateOfBirth","parentFirstNameRequiredMessage","parentFirstNameLabel","parentLastNameRequiredMessage","parentLastNameLabel","parentPhoneOrEmailRequiredMessage","parentEmailAddressLabel","parentPhoneNumberLabel","registrationAddress1Required","registrationAddressLabel","registrationAddressLabel2","registrationCityRequired","registrationCityLabel","registrationStateRequired","registrationStateLabel","registrationZipCodeRequired","registrationZipCodeLabel","promoCodeLabel","applyPromoCodeLabel","invalidPromoCodeMessage","promoCodeTableHeaderLabel","promoDiscountTableHeaderLabel","updateMyInfoLabel","registrationTotalLabel","addPersonButtonLabel","registerAndCheckoutButtonLabel","saveAndAddAnotherButtonLabel","saveAndCheckoutButtonLabel","BindHtmlElements","_eventService","_householdService","_productsService","ShowSpinner","LoadEventData","_$productId","registrationProductId","UserIsAuthenticated","_userIsAuthenticated","_eventStartDate","_daysOutToHide","_isMinorRegistration","minorRegistration","_$isMinorRegistration","IsEventViewable","_userInfo","GetEventUserContact","userContact","_userContactInfo","LoadHouseholdInfo","_$currentUserContactId","RenderForms","DrawEventDetails","_$invoiceId","UpdateEventParticipants","_$showAnotherPersonFormButton","_$checkoutButton","ShowRegisterAsForm","ShowEventRegistrationDataForms","ShowUserInfoForms","_$addAnotherButton","BindEventListeners","_$registrationForm","BuildModal","SetMessage","HideSpinner","finish","selectedParticipantId","clearInvoiceId","existingInvoiceResult","searchParams","_args2","GetEventParticipantsByInvoice","isSomePaymentExists","participants","_eventParticipants","DrawExistingParticipants","visibilityLevelId","privateEventMessage","isUserStaff","staffOnlyMessage","_$detailsContainer","isMobile","_this$_eventData","attributes","opportunityCount","startDateUTC","endDateUTC","externalRegistrationUrl","rooms","showBuildingRoomInfo","BuildEventSubtitlesArr","BuildInnerPageDetails","BuildGoBack","backToEventSearchLabel","BuildFinderDetailImage","BuildTitle","BuildLabels","BuildDateTime","BuildDescription","BuildContacts","eventContactLabel","BuildSpecialText","meetingInstructionsLabel","locationLabel","eventRooms","Set","roomInfo","roomLabel","BuildMapAddress","getDirectionsLabel","BuildICSHrefString","addressOnly","_$map","BuildGoogleMap","_$mapAddress","_$mapContainer","extRegistrationContainer","buttonUrl","opportunityFinderWidgetUrl","eventid","_$eventId","BuildCustomButton","externalRegisterButtonLabel","volunteerLabel","after","buttonURLContainer","_buttonUrl","GetCurrentUser","HideUpdateMyInfoContainer","_this$_eventData2","registrationActive","forceLogin","isRegistrationFull","_$productOptionsContainer","DrawProductForm","GetSelectedEventParticipantId","DrawCustomForm","SetRegistrationNotActiveMessage","_$registrationNotActiveContainer","_callee5","_this$_eventData3","_context5","registrationFullMessage","_$loginButtonContainer","HasUserRegistered","_callee6","_args6","_context6","GetProduct","_productData","DrawPrice","depositPrice","_$productDescription","_$productOptionsTitle","addOnsLabel","BindProductEventListeners","hasDeposit","_$depositPriceContainer","_$singlePriceContainer","_$singlePriceValue","_$depositPriceText","depositDueAtRegistrationLabel","_$depositPriceValue","freePriceLabel","_callee7","_context7","RenderCustomForm","_$formFields","_this$_userInfo$user$","_this$_userInfo2","_this$_userInfo2$user","_this$_userInfo$user$2","_this$_userInfo3","_this$_userInfo3$user","BuildSendEmailModal","user","email","BindEmailModalEvents","_$resultMessageContainer","_$resultMessageText","_$householdId","householdId","GetHousehold","household","_members","familyMembers","_household","allMembers","member","GetDisplayName","IsMemberDisabled","unshift","registerAsBlankForm","LoadDropdown","_$registerAs","registerAsDefaultLabel","contactDropdown","lastName","firstName","nickName","_callee8","_context8","_$promoCodeTable","ResetProductForm","Dispose","ResetAddressForm","ResetContactInfoForm","_callee9","_this$_eventParticipa","checkoutWidgetUrl","eventApiService","_checkoutWidgetUrl","_context9","DisableSubmitButtons","action","checkouturl","_$firstNameText","_$lastNameText","_$attendeeFirstNameText","_$attendeeLastNameText","_$parentFirstNameText","_$parentLastNameText","_$updateMyInfo","ValidateDateOfBirth","CheckEventAndProductAvailability","SaveRegistration","success","ResetForm","HideUserInfoForms","HideEventRegistrationDataForms","guid","UpdateParticipantTotal","pushState","saveAndAddPersonSuccessMessage","scrollIntoView","behavior","_$registerAndCheckoutButton","_$registerAndAddAnotherButton","_$saveAndCheckoutButton","_$saveAndAddAnotherButton","_$eventParticipantId","_$formResponseId","_$registerAsContainer","CheckPendingEventAvailability","saveSuccessMessage","EnableSubmitButtons","registrationSaveErrorMessage","validationFailedMessage","_this3","_self","shadowRoot","_ref3","_callee10","_participant$firstNam","_participant$lastName","_participant$email","_participant$phone","_participant$addressL","_participant$addressL2","_participant$city","_participant$state","_participant$zip","_participant$formResp","contentRow","_participant$firstNam2","_participant$lastName2","_participant$email2","_participant$phone2","targetRemove","_selectedEventParticipantId","_context10","fromEdit","SubmitForm","currentEventParticipantId","currentEditRow","fontWeight","_$updateMyInfoContainer","_$userHasRegisteredContainer","_$emailText","_$phoneText","phone","_$addressLine1","_$addressLine2","addressLine2","_$city","_$stateRegion","_$postalCode","zip","isMinorRegistration","minorFirstName","minorLastName","_$attendeeDateOfBirth","minorDateOfBirth","_$parentEmailText","_$parentPhoneText","formResponses","Form_Response_ID","groupId","isRadio","radioGroupElements","optionPriceElement","optionPriceInvoiceDetailElement","selectedOption","selectedProductOptions","productOptionId","EnableOptionRowElement","isPromoCode","_$promoCodeText","AddPromocode","productInvoiceDetailElement","formResponseElement","formOption","Response","RemoveEventParticipant","checkbox","_checkbox$name$split2","op","_$loginButton","_$addPromoCodeButton","_$invalidPromoCode","FillContactInfoForm","FillAddressForm","_this4","productService","ValidPromoCode","alreadyHasExclusiveGroupPromo","mutuallyExclusiveOptionGroupId","promoCodeWithinDaysOutToHide","daysOutToHide","currentDate","evtStartDate","diffTime","abs","ceil","isValidPromoCode","promoCodePrice","BuildPromoCodeRow","HideMessage","_this5","_$productRadios","_$productCheckboxes","_$productSelects","_this6","HasRegistered","registeredResponse","_registrationTotal","CalculateTotal","_HandleRegistrationTotal","registrationTotalInvalidMessage","_UpdateRegistrationTotalDisplay","_this$_eventData4","isFreeEvent","_$registrationTotalContainer","_$registrationTotalValue","_$spinner","_$componentMessageContainer","_$componentMessageText","_$priceContainer","_$registrationPriceLabel","_$productOptionsWrapper","_$registrationNotActiveMessageText","_$promoCodeContainer","_$contactInfoForm","_$attendeeInfoForm","_$parentInfoForm","_$addressFormWrapper","_$addressLine1Label","_$cityLabel","_$stateRegionLabel","_$postalCodeLabel","_$eventParticipantsContainer","_$updateInformationWarningMessage","_callee11","_eventId","_context11","GetId","GetInvoiceId","GetEventDetail","_callee12","_this7","_context12","_this8","autoHideMessage","setTimeout","SetComponentMessage","_this9","HideComponentMessage","registrationNotActiveMessage","_this10","_member$firstName","_member$lastName","_this$_userContactInf","_this$_userContactInf2","_this$_userContactInf3","_this$_userContactInf4","_this$_userContactInf5","_this$_userContactInf6","_this$_userContactInf7","_this$_userContactInf8","_member$firstName2","_member$lastName2","_member$emailAddress","_member$mobilePhoneNu","dateOfBirth","mobilePhoneNumber","UpdateNameFieldsState","_this$_household$addr","_this$_household","_this$_household$addr2","_this$_household$addr3","_this$_household2","_this$_household2$add","_this$_household$addr4","_this$_household3","_this$_household3$add","_this$_household$addr5","_this$_household4","_this$_household4$add","_this$_household$addr6","_this$_household5","_this$_household5$add","stateRegion","pointerEvents","cursor","ShowUpdateMyInfoContainer","_this$_productData","hasPromoCode","hasVisibleOptions","some","_this11","selectedEventParticipant","_this11$_eventData","participantContainer","titleRow","participantIcon","participantNumber","participantName","participantContacts","participantAddress","participantPrice","registeredDiv","boldText","registeredLabel","buttonsContainer","editButton","removeButton","_contentRow","fontSize","_participantName","fontStyle","_participantContacts","_callee13","availabilityResponse","eventAvailabilityStatus","soldOutProducts","soldOutProductNames","_this12","_context13","CheckAvailability","available","soldOut","isSuccessful","product","FindOptionRowElement","DisableOptionRowElement","_this13","selectedParticipant","span","_callee14","apiInvoiceDetailId","_context14","GetInvoiceDetailIdFromParticipant","DeleteEventRegistration","GetInvoiceDetailId","_callee15","_context15","GetBaseInvoiceDetail","_x7","_callee16","checkoutApiService","_context16","reload","_x8","_x9","householdPositionId","dateOfBirthFutureError","isBlankForm","trim","registerComponent"],"sourceRoot":""}