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AGP,EAAS9V,KACd,IAlDI6lB,EA7D8B,WAAc,IAAIzW,EAAOpP,KAAMyQ,EAAOxI,UAAW,OAAO,IAAI7G,SAAQ,SAAUC,EAASgS,GAAU,IAAID,EAAMnD,EAAGP,MAAMN,EAAMqB,GAAO,SAAS6C,EAAMpT,GAAS,GAAmBkT,EAAK/R,EAASgS,EAAQC,EAAOC,EAAQ,OAAQrT,EAAQ,CAAE,SAASqT,EAAOzR,GAAO,GAAmBsR,EAAK/R,EAASgS,EAAQC,EAAOC,EAAQ,QAASzR,EAAM,CAAEwR,OAAMjR,EAAY,GAAI,EAiH3X,WACE,OAAOwjB,EAAenW,MAAM1P,KAAMiI,UACpC,KA7GyChI,EAiHzC,CAAC,CACHP,IAAK,oBACLQ,MAAO,SAA2BumB,EAAmBC,GACnDzjB,OAAO0jB,eAAeC,OAAOH,EAAmBC,GAChDxiB,MAAMuC,KAAKtE,SAAS0kB,uBAAuBJ,EAAoB,YAAYrN,SAAQ,SAAU0N,GAC3F,IAAIC,EAAW,IAAIL,EACnBI,EAAGE,oBAAoB5N,SAAQ,SAAU6N,GAC1B,UAATA,GAIJF,EAASG,aAAaD,EAAMH,EAAGjJ,aAAaoJ,GAC9C,IACAH,EAAGhH,YAAYiH,EACjB,GACF,IAhI8D7lB,GAAY,GAAkBrB,EAAYY,UAAWS,GAAiBjB,GAAa,GAAkBJ,EAAaI,GAmI3K2lB,CACT,CA5GwC,CA4GxB,GAAiBuB,eC2VjCjK,GAAkBkK,kBAAkB,uBAAwBlK,G","sources":["webpack://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/Helpers/PledgeUtils.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/Shared/URLSearchParameters.js","webpack://portalcomponents/./ClientApp/Components/Services/OAuthService.js","webpack://portalcomponents/./ClientApp/Components/Services/Ajax.js","webpack://portalcomponents/./ClientApp/Components/Services/MissionTripApiService.js","webpack://portalcomponents/./ClientApp/Components/Shared/I18n.js","webpack://portalcomponents/./ClientApp/Components/Services/UserService.js","webpack://portalcomponents/./ClientApp/Components/Shared/ComponentBase.js","webpack://portalcomponents/./ClientApp/Components/mpp-my-mission-trips.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 \"
\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t
\\n\\t\\t\\t\\t

\").concat(description === null ? noDescriptionText : description, \"

\\n\\t\\t\\t
\\n\\t\\t
\");\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, \"
\");\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 \"\").concat(!!badgeText ? badgeText : \"\", \"\");\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 \"\");\n }\n }, {\n key: \"BuildCloudAppDetailsButton\",\n value: function BuildCloudAppDetailsButton(id, targetUrl, btnText) {\n if (!!targetUrl) {\n var finalTargetUrl = \"\".concat(targetUrl).concat(id);\n return \"\").concat(btnText, \"\");\n } else {\n return \"\";\n }\n }\n }, {\n key: \"BuildDetailsButton\",\n value: function BuildDetailsButton(id, targetUrl, btnText) {\n return !!targetUrl ? \"\").concat(btnText, \"\") : \"\";\n }\n }, {\n key: \"BuildButtons\",\n value: function BuildButtons(buttons) {\n return \"
\\n\\t\\t\\t\".concat(buttons.map(function (button) {\n return \"\");\n }).join(\"\"), \"\\n\\t\\t
\");\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 \"
\\n\\t\\t\\t

\".concat(title, \"

\\n\\t\\t\\t\").concat(subtitles.map(function (subtitle) {\n return \"

\").concat(subtitle.text, \"

\");\n }).join(\"\"), \"\\n\\t\\t\\t
\").concat(description === null ? \"\" : new TextFormatter(description).addLineBreaks(), \"
\\n\\t\\t
\");\n }\n }, {\n key: \"BuildTextRow\",\n value: function BuildTextRow() {\n var subtitles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return \"
\\n\\t\\t\\t\".concat(subtitles.map(function (subtitle) {\n return \"
\").concat(subtitle.text, \"
\");\n }).join(\"\"), \"\\n\\t\\t
\");\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 \"
\\n\\t\\t\\t

\".concat(header, \"

\\n\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t

\").concat(description, \"

\\n\\t\\t
\");\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 \"
\\n\\t\\t\\t
\".concat(header, \"
\\n\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\").concat(progressHeader, \"\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t
\");\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 \"
\\n\\t\\t\\t
\\n\\t\\t\\t\\t\").concat(header, \"\\n\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t\").concat(body, \"\\n\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t\").concat(footer, \"\\n\\t\\t\\t
\\n\\t\\t
\");\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 = \"
\\n\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\".concat(headerImage, \"\\n\\t\\t\\t\\t\\t\").concat(headerBadge, \"\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\").concat(campaignName, \"
\\n\\t\\t\\t\\t\\t\\t
\").concat(tripDatesText, \"
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\").concat(body, \"\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\").concat(footer, \"\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t
\");\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 \"
\\n\\t\\t\\t\".concat(details, \"\\n\\t\\t
\");\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 \"\");\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 \"\");\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 \"\");\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 \"
\\n\\t\\t\\t\\n\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t

\").concat(title, \"

\\n\\t\\t\\t\\t\\t\").concat(CollapseBuilder.BuildCollapse(publicationId, description, noDescriptionText, showDescriptionText, hideDescriptionText), \"\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\").concat(this.BuildCheckbox(publicationId, subscribed), \"\\n\\t\\t\\t
\\n\\t\\t
\");\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\n/*jshint esversion: 6 */\nexport var PledgeUtils = /*#__PURE__*/function () {\n function PledgeUtils() {\n _classCallCheck(this, PledgeUtils);\n }\n\n _createClass(PledgeUtils, null, [{\n key: \"mapPledgeStatusToAppLabel\",\n value: function mapPledgeStatusToAppLabel(pledgeStatus, i18n) {\n if (!!pledgeStatus) {\n var pledgeStatusLabel = {\n \"Active\": i18n.activePledgeStatusLabel,\n \"Completed\": i18n.completedPledgeStatusLabel,\n \"Discontinued\": i18n.discontinuedPledgeStatusLabel,\n \"Pending\": i18n.pendingPledgeStatusLabel\n };\n return pledgeStatusLabel[pledgeStatus];\n }\n\n return \"\";\n }\n }]);\n\n return PledgeUtils;\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 _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 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 MissionTripApiService = /*#__PURE__*/function () {\n function MissionTripApiService() {\n _classCallCheck(this, MissionTripApiService);\n\n var config = new Configuration();\n this._appRoot = config.GetAppRoot();\n }\n\n _createClass(MissionTripApiService, [{\n key: \"GetMissionTrip\",\n value: function GetMissionTrip(pledgeCampaignId) {\n var url = \"\".concat(this._appRoot, \"/Api/MissionTripApi/GetMissionTrip?id=\").concat(pledgeCampaignId);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetFrequencyData\",\n value: function GetFrequencyData() {\n var url = \"\".concat(this._appRoot, \"/Api/MissionTripApi/GetFrequencyData\");\n return Ajax.Get(url);\n }\n }, {\n key: \"SavePledge\",\n value: function SavePledge(formData) {\n var url = \"\".concat(this._appRoot, \"/Api/MissionTripApi/SavePledge\");\n return Ajax.Post(url, formData);\n }\n }, {\n key: \"HasPledged\",\n value: function HasPledged(campaignId, contactId) {\n var url = \"\".concat(this._appRoot, \"/Api/MissionTripApi/HasPledged?campaignId=\").concat(campaignId, \"&contactId=\").concat(contactId);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetMyMissionTrips\",\n value: function GetMyMissionTrips(missionTripCampaignType) {\n var url = \"\".concat(this._appRoot, \"/Api/MissionTripApi/MyMissionTrips?missionTripCampaignType=\").concat(missionTripCampaignType);\n return Ajax.Get(url);\n }\n }, {\n key: \"GetMyMissionTripDonors\",\n value: function GetMyMissionTripDonors(missionTripCampaignType) {\n var url = \"\".concat(this._appRoot, \"/Api/MissionTripApi/MyMissionTripDonors?missionTripCampaignType=\").concat(missionTripCampaignType);\n return Ajax.Get(url);\n }\n }]);\n\n return MissionTripApiService;\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 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 _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 _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 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 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\n/*jshint esversion: 8 */\nimport { CardBuilder } from \"./Helpers/CardBuilder\";\nimport { DateTimeFormatter } from \"./Helpers/DateTimeFormatter\";\nimport { PledgeUtils } from \"./Helpers/PledgeUtils\";\nimport { MissionTripApiService } from \"./Services/MissionTripApiService\";\nimport { OAuthService } from \"./Services/OAuthService\";\nimport { UserService } from \"./Services/UserService\";\nimport { ComponentBase } from \"./Shared/ComponentBase\";\nimport { I18N } from \"./Shared/I18n\";\nimport { Configuration } from \"./Shared/Configuration\";\nimport { TextFormatter } from \"./Helpers/TextFormatter\";\n\nvar MppMyMissionTrips = /*#__PURE__*/function (_ComponentBase) {\n _inherits(MppMyMissionTrips, _ComponentBase);\n\n var _super = _createSuper(MppMyMissionTrips);\n\n function MppMyMissionTrips() {\n _classCallCheck(this, MppMyMissionTrips);\n\n return _super.call(this);\n }\n\n _createClass(MppMyMissionTrips, [{\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(name, oldValue, newValue) {\n if (!!this._$resultsContainer) {\n this.loadAttributes();\n this.GetMyMissionTrips();\n }\n }\n }, {\n key: \"loadAttributes\",\n value: function loadAttributes() {\n this.missionTripCampaignType = this.getAttribute(\"missiontripcampaigntypeid\") || 2; // Default to mission trip if id doesn't exist\n }\n }, {\n key: \"connectedCallback\",\n value: function () {\n var _connectedCallback = _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 _context.next = 2;\n return new I18N(\"mpp-my-mission-trips\")[\"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 2:\n i18n = _context.sent;\n this._i18n = i18n; // Load initial values of tag attributes:\n\n this.loadAttributes(); // Root Html\n\n this._root.innerHTML = `
${this._i18n.pleaseLoginMessage}
` ;\n this._$myMissionTripsWrapper = this._root.querySelector(\"#myMissionTripsWrapper\");\n this._$resultsContainer = this._root.querySelector(\"#resultsContainer\");\n this._$loadingContainer = this._root.querySelector(\"#loadingContainer\");\n this._$emptyContainer = this._root.querySelector(\"#emptyContainer\");\n this._$loginButtonContainer = this._root.querySelector(\"#loginButtonContainer\");\n this._$loginButton = this._root.querySelector(\"#loginButton\");\n this._missionTripsService = new MissionTripApiService(); // Try logging in user\n\n _context.next = 15;\n return this.TryLoginUser();\n\n case 15:\n this._$loginButton.addEventListener(\"click\", function () {\n OAuthService.SignIn();\n });\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function connectedCallback() {\n return _connectedCallback.apply(this, arguments);\n }\n\n return connectedCallback;\n }()\n }, {\n key: \"TryLoginUser\",\n value: function () {\n var _TryLoginUser = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var _this2 = this;\n\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 UserService.GetCurrentUser().then( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(userInfo) {\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2._$loginButtonContainer.style.display = \"none\";\n _this2._$myMissionTripsWrapper.style.display = \"\";\n _context2.next = 4;\n return _this2.GetMyMissionTrips();\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }(), function () {\n _this2._$myMissionTripsWrapper.style.display = \"none\";\n _this2._$loginButtonContainer.style.display = \"\";\n _this2._$loadingContainer.style.display = \"none\";\n });\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n function TryLoginUser() {\n return _TryLoginUser.apply(this, arguments);\n }\n\n return TryLoginUser;\n }()\n }, {\n key: \"GetMyMissionTrips\",\n value: function () {\n var _GetMyMissionTrips = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {\n var _this3 = this;\n\n var showdonors, donors;\n return regeneratorRuntime.wrap(function _callee5$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n this._$resultsContainer.innerHTML = \"\";\n this._$loadingContainer.style.display = \"\";\n this._currentUrl = new URL(window.location.href);\n showdonors = this.getAttribute(\"showdonors\");\n this._displayContacts = showdonors === \"\\\"1\\\"\" || showdonors === \"1\" ? true : false;\n _context6.next = 7;\n return this._missionTripsService.GetMyMissionTripDonors(this.missionTripCampaignType);\n\n case 7:\n donors = _context6.sent;\n\n this._missionTripsService.GetMyMissionTrips(this.missionTripCampaignType).then( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(data) {\n var elementMine, elementFamily, containerMyTrips, containerFamilyTrips, _loop, i, dtFormatter;\n\n return regeneratorRuntime.wrap(function _callee4$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n data = data.filter(function (x) {\n return x.pledgeStatusId !== 3 && x.pledgeStatusId !== 4;\n });\n _this3._$resultsContainer.innerHTML = \"\";\n elementMine = document.createElement(\"div\");\n elementMine.innerHTML = data.length > 0 ? \"
\\n\\t\\t\\t\\t\\t\\t

\".concat(_this3._i18n.pageTitle, \"

\\n\\t\\t\\t\\t\\t
\") : \"\";\n\n _this3._$resultsContainer.appendChild(elementMine);\n\n _this3.myTripsContainerCount = 0;\n elementFamily = document.createElement(\"div\");\n elementFamily.innerHTML = data.length > 0 ? \"
\\n\\t\\t\\t\\t\\t\\t

\".concat(_this3._i18n.familyMissionTitle, \"

\\n\\t\\t\\t\\t\\t
\") : \"\";\n\n _this3._$resultsContainer.appendChild(elementFamily);\n\n _this3.familyContainerCount = 0;\n _this3._$myTripsContainer = _this3._root.querySelector(\"#myTripsContainer\");\n _this3._$familyTripsContainer = _this3._root.querySelector(\"#familyContainer\");\n\n if (!(data.length <= 0)) {\n _context5.next = 18;\n break;\n }\n\n // No pledges associated to user\n _this3._$emptyContainer.style.display = \"\";\n _this3._$emptyContainer.innerHTML += \"
\\n\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\".concat(_this3._i18n.noMissionTripsFoundMessage ? _this3._i18n.noMissionTripsFoundMessage : \"No pledges found\", \"\\n\\t\\t\\t\\t\\t\\t
\");\n _this3._$loadingContainer.style.display = \"none\";\n _context5.next = 33;\n break;\n\n case 18:\n // Loop through each group and build page with cards\n _this3._$emptyContainer.style.display = \"none\";\n data = data.sort(function (a, b) {\n return a.isMyMission - b.isMyMission;\n });\n containerMyTrips = \"\";\n containerFamilyTrips = \"\";\n _loop = /*#__PURE__*/regeneratorRuntime.mark(function _loop(i) {\n var _data$i, campaignGoal, campaignName, contactEmailAddress, contactFirstName, contactLastName, contactNickname, contactFriendlyName, endDate, eventStartDate, eventEndDate, _data$i$firstInstallm, firstInstallmentDate, _data$i$imageUrl, imageUrl, installmentsPlanned, pledge, pledgeCampaignId, pledgeDescription, pledgeId, pledgeRemainingString, pledgeStatus, pledgeTotalToDate, pledgeTotalToDateString, progress, showOnMyPledges, startDate, totalPledge, totalPledgeString, tripLeader, isMyMission, pledgeOwner, myPledgeDescription, progressBarPercentage, progressBarText, badgeText, subtitlesArr, eventStart, eventEnd, tripDatesText, pledgeDonors, footerDetails, cardRow;\n\n return regeneratorRuntime.wrap(function _loop$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _data$i = _objectSpread({}, data[i]), campaignGoal = _data$i.campaignGoal, campaignName = _data$i.campaignName, contactEmailAddress = _data$i.contactEmailAddress, contactFirstName = _data$i.contactFirstName, contactLastName = _data$i.contactLastName, contactNickname = _data$i.contactNickname, contactFriendlyName = _data$i.contactFriendlyName, endDate = _data$i.endDate, eventStartDate = _data$i.eventStartDate, eventEndDate = _data$i.eventEndDate, _data$i$firstInstallm = _data$i.firstInstallmentDate, firstInstallmentDate = _data$i$firstInstallm === void 0 ? dtFormatter.ToShortDateFormatted(firstInstallmentDate, true) : _data$i$firstInstallm, _data$i$imageUrl = _data$i.imageUrl, imageUrl = _data$i$imageUrl === void 0 ? imageUrl ? imageUrl : null : _data$i$imageUrl, installmentsPlanned = _data$i.installmentsPlanned, pledge = _data$i.pledge, pledgeCampaignId = _data$i.pledgeCampaignId, pledgeDescription = _data$i.pledgeDescription, pledgeId = _data$i.pledgeId, pledgeRemainingString = _data$i.pledgeRemainingString, pledgeStatus = _data$i.pledgeStatus, pledgeTotalToDate = _data$i.pledgeTotalToDate, pledgeTotalToDateString = _data$i.pledgeTotalToDateString, progress = _data$i.progress, showOnMyPledges = _data$i.showOnMyPledges, startDate = _data$i.startDate, totalPledge = _data$i.totalPledge, totalPledgeString = _data$i.totalPledgeString, tripLeader = _data$i.tripLeader, isMyMission = _data$i.isMyMission;\n dtFormatter = new DateTimeFormatter();\n pledgeOwner = contactFirstName + \" \" + contactLastName;\n\n if (pledgeOwner == \"null null\") {\n pledgeOwner = \"\";\n }\n\n myPledgeDescription = pledgeDescription == null ? \"\" : pledgeDescription;\n progressBarPercentage = 0;\n\n if (pledgeTotalToDate > 0) {\n progressBarPercentage = pledgeTotalToDate >= totalPledge ? \"100\" : Math.trunc(pledgeTotalToDate / totalPledge * 100);\n }\n\n progressBarText = pledgeTotalToDateString + \" of \" + totalPledgeString + \" (\" + progressBarPercentage + \"%)\";\n badgeText = _this3.GetBadgeText(tripLeader, pledgeStatus);\n subtitlesArr = CardBuilder.BuildGroupSubtitlesArr(pledgeOwner);\n eventStart = dtFormatter.ToShortDateFormatted(eventStartDate, true);\n eventEnd = new Date(eventEndDate).getYear() < 0 ? \"\" : \" - \" + dtFormatter.ToShortDateFormatted(eventEndDate, true);\n tripDatesText = new Date(eventStartDate).getYear() < 0 ? \"Trip Date: \" : \"Trip Date: \" + eventStart + eventEnd;\n pledgeDonors = donors.filter(function (x) {\n return x.pledgeId === data[i].pledgeId;\n });\n _context4.t0 = \"
\\n\\t\\t\\t\\t\\t\\t\\t\".concat(myPledgeDescription === \"\" ? \"\" : new TextFormatter(myPledgeDescription).addLineBreaks(), \"\\n\\t\\t\\t\\t\\t\\t
\") + _this3.BuildGoalSummary(pledgeTotalToDateString, totalPledgeString, pledgeRemainingString);\n _context4.next = 17;\n return _this3.BuildDonorGrid(pledgeDonors);\n\n case 17:\n _context4.t1 = _context4.sent;\n footerDetails = _context4.t0 + _context4.t1;\n // Build Card\n cardRow = CardBuilder.BuildCardRow( // Header\n CardBuilder.BuildBadge(true, badgeText, \"mpp-card-row\"), _this3.BuildImageRow(imageUrl, \"heart\"), campaignName, tripDatesText, // Body\n CardBuilder.BuildTextRow(subtitlesArr, \"mpp-card-row\") + CardBuilder.BuildProgressRow(\"My Support Progress\", \"I've Raised: \".concat(progressBarPercentage, \"%\"), progressBarPercentage), // Footer\n CardBuilder.BuildCardRowFooter(i, imageUrl, footerDetails));\n\n if (isMyMission == true) {\n _this3._$myTripsContainer.appendChild(cardRow);\n\n _this3.myTripsContainerCount++;\n } else {\n _this3._$familyTripsContainer.appendChild(cardRow);\n\n _this3.familyContainerCount++;\n }\n\n case 21:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _loop);\n });\n i = 0;\n\n case 24:\n if (!(i < data.length)) {\n _context5.next = 29;\n break;\n }\n\n return _context5.delegateYield(_loop(i), \"t0\", 26);\n\n case 26:\n i++;\n _context5.next = 24;\n break;\n\n case 29:\n if (_this3.myTripsContainerCount == 0) {\n _this3._$resultsContainer.removeChild(elementMine);\n }\n\n if (_this3.familyContainerCount == 0) {\n _this3._$resultsContainer.removeChild(elementFamily);\n }\n\n if (_this3._$resultsContainer.innerHTML === \"\") {\n _this3._$resultsContainer.innerHTML = _this3._i18n.noMissionTripsFoundMessage;\n }\n\n _this3._$loadingContainer.style.display = \"none\";\n\n case 33:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee4);\n }));\n\n return function (_x2) {\n return _ref2.apply(this, arguments);\n };\n }())[\"catch\"](function (error) {\n console.error(error);\n _this3._$loadingContainer.style.display = \"none\";\n });\n\n case 9:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee5, this);\n }));\n\n function GetMyMissionTrips() {\n return _GetMyMissionTrips.apply(this, arguments);\n }\n\n return GetMyMissionTrips;\n }()\n }, {\n key: \"BuildGoalSummary\",\n value: function BuildGoalSummary(pledgeTotalToDateString, totalPledgeString, PledgeRemainingString) {\n return \"
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tMy Support Goal\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\".concat(totalPledgeString, \"\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tAmount I've Raised\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\").concat(pledgeTotalToDateString, \"\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tAmount Remaining\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\").concat(PledgeRemainingString, \"\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\");\n }\n }, {\n key: \"BuildDonorGrid\",\n value: function () {\n var _BuildDonorGrid = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(pledgeDonors) {\n var donorGrid, i, imageUrlThumbnail;\n return regeneratorRuntime.wrap(function _callee6$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n if (!(this._displayContacts === false)) {\n _context7.next = 2;\n break;\n }\n\n return _context7.abrupt(\"return\", \"\");\n\n case 2:\n donorGrid = \"\";\n\n if (pledgeDonors.length === 0) {\n donorGrid = \"
\\n\\t\\t\\t\\t\\tOnce people start donating, their contact information displays here so you can thank them for their support!\\n\\t\\t\\t\\t
\";\n } else {\n donorGrid = \"
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tName\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tAddress\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tPhone\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\tEmail\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\";\n\n for (i = 0; i < pledgeDonors.length; i++) {\n imageUrlThumbnail = pledgeDonors[i].imageUrl == \"\" ? \"\" : pledgeDonors[i].imageUrl + \"?$thumbnail=true\";\n donorGrid += this.BuildDonor(i, imageUrlThumbnail, pledgeDonors[i].pledgeDonorDisplayName, pledgeDonors[i].addressLine1, pledgeDonors[i].addressLine2, pledgeDonors[i].city, pledgeDonors[i].stateRegion, pledgeDonors[i].postalCode, pledgeDonors[i].phone, pledgeDonors[i].email);\n }\n\n donorGrid += \"
\";\n }\n\n return _context7.abrupt(\"return\", \"
\\n\\t\\t\\t\\tMy Donors\\n\\t\\t\\t
\\n\\t\\t\\t
\" + donorGrid + \"
\");\n\n case 5:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee6, this);\n }));\n\n function BuildDonorGrid(_x3) {\n return _BuildDonorGrid.apply(this, arguments);\n }\n\n return BuildDonorGrid;\n }()\n }, {\n key: \"BuildDonor\",\n value: function BuildDonor(index, imageUrl, donorName, donorAddress1, donorAddress2, donorCity, donorStateRegion, donorPostalCode, donorPhone, donorEmail) {\n var CityStateZip = donorCity == null || donorCity == \"\" ? \"\" : donorCity + \", \" + donorStateRegion + \" \" + donorPostalCode;\n var donorAddress3 = donorAddress2 == null || donorAddress2 == \"\" ? \"\" : CityStateZip;\n donorAddress2 = donorAddress2 == null || donorAddress2 == \"\" ? CityStateZip : donorAddress2;\n var addressHeader = donorAddress1 == null || donorAddress1 == \"\" ? \"\" : \"
\\n\\t\\t\\t\\tAddress\\n\\t\\t\\t
\";\n var donorAddress = \"\".concat(addressHeader, \"\\n\\t\\t\\t
\\n\\t\\t\\t\\t
\").concat(donorAddress1, \"
\\n\\t\\t\\t\\t
\").concat(donorAddress2, \"
\\n\\t\\t\\t\\t
\").concat(donorAddress3, \"
\\n\\t\\t\\t
\");\n var phoneHeader = donorPhone == null || donorPhone == \"\" ? \"\" : \"
\\n\\t\\t\\t\\tPhone\\n\\t\\t\\t
\";\n var donorPhoneNumberOnly = donorPhone.replace(/\\D/g, \"\");\n var phoneValue = donorPhone == \"--\" ? donorPhone : \"\").concat(donorPhone, \"\");\n donorPhone = \"\".concat(phoneHeader, \"\\n\\t\\t\\t
\\n\\t\\t\\t\\t\").concat(phoneValue, \"\\n\\t\\t\\t
\");\n var emailHeader = donorEmail == null || donorEmail == \"\" ? \"\" : \"
\\n\\t\\t\\t\\tEmail\\n\\t\\t\\t
\";\n var emailValue = donorEmail == \"--\" ? donorEmail : \"\").concat(donorEmail, \"\");\n donorEmail = \"\".concat(emailHeader, \"\\n\\t\\t\\t
\\n\\t\\t\\t\\t\").concat(emailValue, \"\\n\\t\\t\\t
\");\n var altRow = index % 2 == 1 ? \"mpp-alt-row\" : \"\";\n var divider = index == 0 ? \"\" : \"mpp-card-row-donor-row--divider\";\n var tempImage = this.BuildImageRow(imageUrl, \"household-member\", \"mpp-thumbnail\");\n return \"
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\") + tempImage + \"\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\".concat(donorName, \"
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\").concat(donorAddress, \"\\n\\t\\t\\t\\t\\t\").concat(donorPhone, \"\\n\\t\\t\\t\\t\\t\").concat(donorEmail, \"\\n\\t\\t\\t\\t
\");\n }\n }, {\n key: \"BuildImageRow\",\n value: function BuildImageRow(imageUrl, type) {\n var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"mpp-card-row--image\";\n var src = imageUrl;\n var returnDiv = \"\";\n\n if (imageUrl === null || imageUrl === undefined || imageUrl === \"\") {\n if (type === \"household-member\") {\n src = \"\".concat(this._appRoot, \"/Content/icons/icon-\").concat(type, \".svg\");\n returnDiv = \"
\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t
\");\n } else {\n returnDiv = \"
\\n\\t\\t\\t\\t\\t
\";\n }\n } else {\n returnDiv = \"\");\n }\n\n return returnDiv;\n }\n }, {\n key: \"GetBadgeText\",\n value: function GetBadgeText(tripLeader, pledgeStatus) {\n var badgeText = \"\";\n var pledgeStatusLabel = !!pledgeStatus ? PledgeUtils.mapPledgeStatusToAppLabel(pledgeStatus, this._i18n) : \"\";\n\n if (!!tripLeader) {\n badgeText = this._i18n.leaderLabel;\n\n if (!!pledgeStatusLabel) {\n badgeText += \" / \" + pledgeStatusLabel;\n }\n } else if (!!pledgeStatusLabel) {\n badgeText = pledgeStatusLabel;\n }\n\n return badgeText;\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"missiontripcampaigntypeid\"];\n }\n }]);\n\n return MppMyMissionTrips;\n}(ComponentBase);\n\nMppMyMissionTrips.registerComponent(\"mpp-my-mission-trips\", MppMyMissionTrips);"],"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","PledgeUtils","pledgeStatus","i18n","activePledgeStatusLabel","completedPledgeStatusLabel","discontinuedPledgeStatusLabel","pendingPledgeStatusLabel","_inherits","subClass","superClass","create","_setPrototypeOf","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","self","Super","_getPrototypeOf","NewTarget","Reflect","construct","apply","ReferenceError","_assertThisInitialized","_wrapNativeSuper","Class","_cache","Map","fn","Function","has","get","set","Wrapper","_construct","Parent","args","bind","sham","Proxy","Boolean","valueOf","e","p","setPrototypeOf","__proto__","getPrototypeOf","ArgumentException","_Error","_super","argName","ArgumentTypeException","_Error2","_super2","_getKey","LocalStorageManager","item","setItem","fullKey","getItem","startsWith","removeItem","storageKeys","keys","searchFor","keyValue","SessionStorageManager","privateMethods","getUrlParameter","results","RegExp","exec","decodeURIComponent","URLSearchParameters","_params","URLSearchParams","_urlSearchParams","substr","asyncGeneratorStep","gen","reject","_next","_throw","arg","info","_asyncToGenerator","_tokenKeyName","_idTokenKeyName","_expiresAfterName","_csrfToken","mppw_refreshTokenPromise","OAuthService","_RefreshTokensAsync","_SaveAuthTokensAsync","_SaveCSRFTokenAsync","tokenValue","token","idTokenValue","idToken","expiresAfterValue","expiresAfter","JSON","parse","_unused","stringify","GetAuthConfiguration","oauthConfig","signInUrl","responseType","scope","clientId","redirectUrl","nonce","encodeURIComponent","Token","signOutUrl","IdToken","postLogoutRedirectUrl","encodeURI","regeneratorRuntime","mark","_callee","wrap","_context","prev","GetCSRFToken","sent","CSRFToken","stop","_callee2","tokenParamName","userSearchParameters","tokens","_context2","search","history","replaceState","GetAuthToken","_SaveTokens","_callee3","_context3","abrupt","ExpiresAfter","credentials","_ClearTokens","accessToken","setSeconds","getSeconds","expiresIn","_addAuth","options","withCredentials","headers","Authorization","_addCSRF","expiresAfterUtc","expiresAfterUTC","_getCurrentUTCDateTime","SaveCSRFTokenAsync","now","UTC","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","_htmlSanitizer","_eventSanitizer","_htmlSanitize","textObj","cleanKeys","depth","getOwnPropertyNames","forEach","Ajax","_RefreshTokensIfNeededAsync","_Post","RefreshTokensIfNeededAsync","status","SignIn","additionalHeaders","retry","_args","method","t0","SecondaryStatusCode","Post","_x","_x2","_x3","currentTime","RefreshTokensAsync","MissionTripApiService","config","_appRoot","pledgeCampaignId","Get","formData","campaignId","contactId","missionTripCampaignType","I18N","componentName","_componentName","GetCurrentLocale","mode","UserService","_SaveUserAttributes","_GetAllActiveAttributes","_GetCurrentUserAttributes","_GetCurrentUser","userNotAuthenticatedMsg","userNotFoundMsg","currentUser","notAuthenticatedMessage","userNotFound","userInfo","currentUserAttributes","userAttributesInfo","allActiveAttributes","allAttributesInfo","_callee4","_context4","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","_objectSpread","source","_defineProperty","getOwnPropertyDescriptors","defineProperties","MppMyMissionTrips","_ComponentBase","_BuildDonorGrid","_GetMyMissionTrips","_TryLoginUser","_connectedCallback","oldValue","newValue","_$resultsContainer","loadAttributes","GetMyMissionTrips","getAttribute","_this","_root","_i18n","pleaseLoginMessage","_$myMissionTripsWrapper","_$loadingContainer","_$emptyContainer","_$loginButtonContainer","_$loginButton","_missionTripsService","TryLoginUser","_this2","GetCurrentUser","display","_callee5","showdonors","donors","_this3","_context6","_currentUrl","URL","href","_displayContacts","GetMyMissionTripDonors","elementMine","elementFamily","_loop","dtFormatter","_context5","x","pledgeStatusId","pageTitle","appendChild","myTripsContainerCount","familyMissionTitle","familyContainerCount","_$myTripsContainer","_$familyTripsContainer","noMissionTripsFoundMessage","sort","isMyMission","_data$i","contactFirstName","contactLastName","eventStartDate","eventEndDate","_data$i$firstInstallm","firstInstallmentDate","_data$i$imageUrl","pledgeDescription","pledgeRemainingString","pledgeTotalToDate","pledgeTotalToDateString","totalPledge","totalPledgeString","tripLeader","pledgeOwner","myPledgeDescription","progressBarPercentage","eventStart","eventEnd","pledgeDonors","footerDetails","cardRow","campaignGoal","contactEmailAddress","contactNickname","contactFriendlyName","installmentsPlanned","pledge","pledgeId","progress","showOnMyPledges","trunc","GetBadgeText","BuildGroupSubtitlesArr","getYear","BuildGoalSummary","BuildDonorGrid","t1","BuildCardRow","BuildBadge","BuildImageRow","BuildTextRow","BuildProgressRow","BuildCardRowFooter","delegateYield","removeChild","PledgeRemainingString","_callee6","donorGrid","imageUrlThumbnail","_context7","BuildDonor","pledgeDonorDisplayName","addressLine1","addressLine2","city","stateRegion","postalCode","phone","email","donorName","donorAddress1","donorAddress2","donorCity","donorStateRegion","donorPostalCode","donorPhone","donorEmail","CityStateZip","donorAddress3","donorAddress","phoneHeader","donorPhoneNumberOnly","phoneValue","emailHeader","emailValue","altRow","divider","tempImage","returnDiv","pledgeStatusLabel","mapPledgeStatusToAppLabel","leaderLabel","_HTMLElement","ComponentBase","_setStyleFiles","_baseRoot","attachShadow","_Init","setStyleFiles","customCss","customCssUrl","GetCustomStyles","customCssFiles","cssFile","rel","media","customElementName","componentType","customElements","define","getElementsByClassName","el","myWidget","getAttributeNames","attr","setAttribute","HTMLElement","registerComponent"],"sourceRoot":""}