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0EA,SAASmL,EAAgBxB,EAASgB,GAE9B,IADA,IAAIc,EAAa,GACR3B,EAAK,EAAG4B,EAAY/B,EAASG,EAAK4B,EAAU1L,OAAQ8J,IAAM,CAC/D,IAAIrB,EAASiD,EAAU5B,GACnB6B,EAAKC,EAAcnD,EAAO0B,EAAG1B,EAAO2B,EAAGO,GAC3Cc,EAAWlB,KAAK9B,EAAO+B,OAASmB,EAAG,GAAKlD,EAAO4B,OAAS,IAAMsB,EAAG,GAAKlD,EAAO6B,OAAS7B,EAAOgC,IACjG,CACA,OAAOgB,EAAWI,KAAK,KAC3B,CACA,SAASD,EAAczB,EAAGC,EAAGO,GACzB,IAAImB,EAAUnB,EAAUlB,KAAKsC,GAAK,IAC9BC,EAAMvC,KAAKuC,IAAIF,GACfG,EAAMxC,KAAKwC,IAAIH,GACnB,MAAO,CACHrC,KAAKC,MAA4B,KAArBS,EAAI8B,EAAM7B,EAAI4B,IAAe,IACzCvC,KAAKC,MAA6B,MAArBS,EAAI6B,EAAM5B,EAAI6B,IAAe,IAElD,C","sources":["webpack://sitecore-web-schreuderssport/./node_modules/toastr/toastr.js","webpack://sitecore-web-schreuderssport/./node_modules/spin.js/spin.js"],"sourcesContent":["/*\n * Toastr\n * Copyright 2012-2015\n * Authors: John Papa, Hans FjÀllemark, and Tim Ferrell.\n * All Rights Reserved.\n * Use, reproduction, distribution, and modification of this code is subject to the terms and\n * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php\n *\n * ARIA Support: Greta Krafsig\n *\n * Project: https://github.com/CodeSeven/toastr\n */\n/* global define */\n(function (define) {\n define(['jquery'], function ($) {\n return (function () {\n var $container;\n var listener;\n var toastId = 0;\n var toastType = {\n error: 'error',\n info: 'info',\n success: 'success',\n warning: 'warning'\n };\n\n var toastr = {\n clear: clear,\n remove: remove,\n error: error,\n getContainer: getContainer,\n info: info,\n options: {},\n subscribe: subscribe,\n success: success,\n version: '2.1.4',\n warning: warning\n };\n\n var previousToast;\n\n return toastr;\n\n ////////////////\n\n function error(message, title, optionsOverride) {\n return notify({\n type: toastType.error,\n iconClass: getOptions().iconClasses.error,\n message: message,\n optionsOverride: optionsOverride,\n title: title\n });\n }\n\n function getContainer(options, create) {\n if (!options) { options = getOptions(); }\n $container = $('#' + options.containerId);\n if ($container.length) {\n return $container;\n }\n if (create) {\n $container = createContainer(options);\n }\n return $container;\n }\n\n function info(message, title, optionsOverride) {\n return notify({\n type: toastType.info,\n iconClass: getOptions().iconClasses.info,\n message: message,\n optionsOverride: optionsOverride,\n title: title\n });\n }\n\n function subscribe(callback) {\n listener = callback;\n }\n\n function success(message, title, optionsOverride) {\n return notify({\n type: toastType.success,\n iconClass: getOptions().iconClasses.success,\n message: message,\n optionsOverride: optionsOverride,\n title: title\n });\n }\n\n function warning(message, title, optionsOverride) {\n return notify({\n type: toastType.warning,\n iconClass: getOptions().iconClasses.warning,\n message: message,\n optionsOverride: optionsOverride,\n title: title\n });\n }\n\n function clear($toastElement, clearOptions) {\n var options = getOptions();\n if (!$container) { getContainer(options); }\n if (!clearToast($toastElement, options, clearOptions)) {\n clearContainer(options);\n }\n }\n\n function remove($toastElement) {\n var options = getOptions();\n if (!$container) { getContainer(options); }\n if ($toastElement && $(':focus', $toastElement).length === 0) {\n removeToast($toastElement);\n return;\n }\n if ($container.children().length) {\n $container.remove();\n }\n }\n\n // internal functions\n\n function clearContainer (options) {\n var toastsToClear = $container.children();\n for (var i = toastsToClear.length - 1; i >= 0; i--) {\n clearToast($(toastsToClear[i]), options);\n }\n }\n\n function clearToast ($toastElement, options, clearOptions) {\n var force = clearOptions && clearOptions.force ? clearOptions.force : false;\n if ($toastElement && (force || $(':focus', $toastElement).length === 0)) {\n $toastElement[options.hideMethod]({\n duration: options.hideDuration,\n easing: options.hideEasing,\n complete: function () { removeToast($toastElement); }\n });\n return true;\n }\n return false;\n }\n\n function createContainer(options) {\n $container = $('
')\n .attr('id', options.containerId)\n .addClass(options.positionClass);\n\n $container.appendTo($(options.target));\n return $container;\n }\n\n function getDefaults() {\n return {\n tapToDismiss: true,\n toastClass: 'toast',\n containerId: 'toast-container',\n debug: false,\n\n showMethod: 'fadeIn', //fadeIn, slideDown, and show are built into jQuery\n showDuration: 300,\n showEasing: 'swing', //swing and linear are built into jQuery\n onShown: undefined,\n hideMethod: 'fadeOut',\n hideDuration: 1000,\n hideEasing: 'swing',\n onHidden: undefined,\n closeMethod: false,\n closeDuration: false,\n closeEasing: false,\n closeOnHover: true,\n\n extendedTimeOut: 1000,\n iconClasses: {\n error: 'toast-error',\n info: 'toast-info',\n success: 'toast-success',\n warning: 'toast-warning'\n },\n iconClass: 'toast-info',\n positionClass: 'toast-top-right',\n timeOut: 5000, // Set timeOut and extendedTimeOut to 0 to make it sticky\n titleClass: 'toast-title',\n messageClass: 'toast-message',\n escapeHtml: false,\n target: 'body',\n closeHtml: '',\n closeClass: 'toast-close-button',\n newestOnTop: true,\n preventDuplicates: false,\n progressBar: false,\n progressClass: 'toast-progress',\n rtl: false\n };\n }\n\n function publish(args) {\n if (!listener) { return; }\n listener(args);\n }\n\n function notify(map) {\n var options = getOptions();\n var iconClass = map.iconClass || options.iconClass;\n\n if (typeof (map.optionsOverride) !== 'undefined') {\n options = $.extend(options, map.optionsOverride);\n iconClass = map.optionsOverride.iconClass || iconClass;\n }\n\n if (shouldExit(options, map)) { return; }\n\n toastId++;\n\n $container = getContainer(options, true);\n\n var intervalId = null;\n var $toastElement = $('
');\n var $titleElement = $('
');\n var $messageElement = $('
');\n var $progressElement = $('
');\n var $closeElement = $(options.closeHtml);\n var progressBar = {\n intervalId: null,\n hideEta: null,\n maxHideTime: null\n };\n var response = {\n toastId: toastId,\n state: 'visible',\n startTime: new Date(),\n options: options,\n map: map\n };\n\n personalizeToast();\n\n displayToast();\n\n handleEvents();\n\n publish(response);\n\n if (options.debug && console) {\n console.log(response);\n }\n\n return $toastElement;\n\n function escapeHtml(source) {\n if (source == null) {\n source = '';\n }\n\n return source\n .replace(/&/g, '&')\n .replace(/\"/g, '"')\n .replace(/'/g, ''')\n .replace(//g, '>');\n }\n\n function personalizeToast() {\n setIcon();\n setTitle();\n setMessage();\n setCloseButton();\n setProgressBar();\n setRTL();\n setSequence();\n setAria();\n }\n\n function setAria() {\n var ariaValue = '';\n switch (map.iconClass) {\n case 'toast-success':\n case 'toast-info':\n ariaValue = 'polite';\n break;\n default:\n ariaValue = 'assertive';\n }\n $toastElement.attr('aria-live', ariaValue);\n }\n\n function handleEvents() {\n if (options.closeOnHover) {\n $toastElement.hover(stickAround, delayedHideToast);\n }\n\n if (!options.onclick && options.tapToDismiss) {\n $toastElement.click(hideToast);\n }\n\n if (options.closeButton && $closeElement) {\n $closeElement.click(function (event) {\n if (event.stopPropagation) {\n event.stopPropagation();\n } else if (event.cancelBubble !== undefined && event.cancelBubble !== true) {\n event.cancelBubble = true;\n }\n\n if (options.onCloseClick) {\n options.onCloseClick(event);\n }\n\n hideToast(true);\n });\n }\n\n if (options.onclick) {\n $toastElement.click(function (event) {\n options.onclick(event);\n hideToast();\n });\n }\n }\n\n function displayToast() {\n $toastElement.hide();\n\n $toastElement[options.showMethod](\n {duration: options.showDuration, easing: options.showEasing, complete: options.onShown}\n );\n\n if (options.timeOut > 0) {\n intervalId = setTimeout(hideToast, options.timeOut);\n progressBar.maxHideTime = parseFloat(options.timeOut);\n progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime;\n if (options.progressBar) {\n progressBar.intervalId = setInterval(updateProgress, 10);\n }\n }\n }\n\n function setIcon() {\n if (map.iconClass) {\n $toastElement.addClass(options.toastClass).addClass(iconClass);\n }\n }\n\n function setSequence() {\n if (options.newestOnTop) {\n $container.prepend($toastElement);\n } else {\n $container.append($toastElement);\n }\n }\n\n function setTitle() {\n if (map.title) {\n var suffix = map.title;\n if (options.escapeHtml) {\n suffix = escapeHtml(map.title);\n }\n $titleElement.append(suffix).addClass(options.titleClass);\n $toastElement.append($titleElement);\n }\n }\n\n function setMessage() {\n if (map.message) {\n var suffix = map.message;\n if (options.escapeHtml) {\n suffix = escapeHtml(map.message);\n }\n $messageElement.append(suffix).addClass(options.messageClass);\n $toastElement.append($messageElement);\n }\n }\n\n function setCloseButton() {\n if (options.closeButton) {\n $closeElement.addClass(options.closeClass).attr('role', 'button');\n $toastElement.prepend($closeElement);\n }\n }\n\n function setProgressBar() {\n if (options.progressBar) {\n $progressElement.addClass(options.progressClass);\n $toastElement.prepend($progressElement);\n }\n }\n\n function setRTL() {\n if (options.rtl) {\n $toastElement.addClass('rtl');\n }\n }\n\n function shouldExit(options, map) {\n if (options.preventDuplicates) {\n if (map.message === previousToast) {\n return true;\n } else {\n previousToast = map.message;\n }\n }\n return false;\n }\n\n function hideToast(override) {\n var method = override && options.closeMethod !== false ? options.closeMethod : options.hideMethod;\n var duration = override && options.closeDuration !== false ?\n options.closeDuration : options.hideDuration;\n var easing = override && options.closeEasing !== false ? options.closeEasing : options.hideEasing;\n if ($(':focus', $toastElement).length && !override) {\n return;\n }\n clearTimeout(progressBar.intervalId);\n return $toastElement[method]({\n duration: duration,\n easing: easing,\n complete: function () {\n removeToast($toastElement);\n clearTimeout(intervalId);\n if (options.onHidden && response.state !== 'hidden') {\n options.onHidden();\n }\n response.state = 'hidden';\n response.endTime = new Date();\n publish(response);\n }\n });\n }\n\n function delayedHideToast() {\n if (options.timeOut > 0 || options.extendedTimeOut > 0) {\n intervalId = setTimeout(hideToast, options.extendedTimeOut);\n progressBar.maxHideTime = parseFloat(options.extendedTimeOut);\n progressBar.hideEta = new Date().getTime() + progressBar.maxHideTime;\n }\n }\n\n function stickAround() {\n clearTimeout(intervalId);\n progressBar.hideEta = 0;\n $toastElement.stop(true, true)[options.showMethod](\n {duration: options.showDuration, easing: options.showEasing}\n );\n }\n\n function updateProgress() {\n var percentage = ((progressBar.hideEta - (new Date().getTime())) / progressBar.maxHideTime) * 100;\n $progressElement.width(percentage + '%');\n }\n }\n\n function getOptions() {\n return $.extend({}, getDefaults(), toastr.options);\n }\n\n function removeToast($toastElement) {\n if (!$container) { $container = getContainer(); }\n if ($toastElement.is(':visible')) {\n return;\n }\n $toastElement.remove();\n $toastElement = null;\n if ($container.children().length === 0) {\n $container.remove();\n previousToast = undefined;\n }\n }\n\n })();\n });\n}(typeof define === 'function' && define.amd ? define : function (deps, factory) {\n if (typeof module !== 'undefined' && module.exports) { //Node\n module.exports = factory(require('jquery'));\n } else {\n window.toastr = factory(window.jQuery);\n }\n}));\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar defaults = {\n lines: 12,\n length: 7,\n width: 5,\n radius: 10,\n scale: 1.0,\n corners: 1,\n color: '#000',\n fadeColor: 'transparent',\n animation: 'spinner-line-fade-default',\n rotate: 0,\n direction: 1,\n speed: 1,\n zIndex: 2e9,\n className: 'spinner',\n top: '50%',\n left: '50%',\n shadow: '0 0 1px transparent', // prevent aliased lines\n position: 'absolute',\n};\nvar Spinner = /** @class */ (function () {\n function Spinner(opts) {\n if (opts === void 0) { opts = {}; }\n this.opts = __assign(__assign({}, defaults), opts);\n }\n /**\n * Adds the spinner to the given target element. If this instance is already\n * spinning, it is automatically removed from its previous target by calling\n * stop() internally.\n */\n Spinner.prototype.spin = function (target) {\n this.stop();\n this.el = document.createElement('div');\n this.el.className = this.opts.className;\n this.el.setAttribute('role', 'progressbar');\n this.el.style.position = this.opts.position;\n this.el.style.width = \"0\";\n this.el.style.zIndex = this.opts.zIndex.toString();\n this.el.style.left = this.opts.left;\n this.el.style.top = this.opts.top;\n this.el.style.transform = \"scale(\".concat(this.opts.scale, \")\");\n if (target) {\n target.insertBefore(this.el, target.firstChild || null);\n }\n drawLines(this.el, this.opts);\n return this;\n };\n /**\n * Stops and removes the Spinner.\n * Stopped spinners may be reused by calling spin() again.\n */\n Spinner.prototype.stop = function () {\n if (this.el) {\n if (this.el.parentNode) {\n this.el.parentNode.removeChild(this.el);\n }\n this.el = undefined;\n }\n return this;\n };\n return Spinner;\n}());\nexport { Spinner };\n/**\n * Returns the line color from the given string or array.\n */\nfunction getColor(color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length];\n}\n/**\n * Internal method that draws the individual lines.\n */\nfunction drawLines(el, opts) {\n var borderRadius = (Math.round(opts.corners * opts.width * 500) / 1000) + 'px';\n var shadow = 'none';\n if (opts.shadow === true) {\n shadow = '0 2px 4px #000'; // default shadow\n }\n else if (typeof opts.shadow === 'string') {\n shadow = opts.shadow;\n }\n var shadows = parseBoxShadow(shadow);\n for (var i = 0; i < opts.lines; i++) {\n var degrees = ~~(360 / opts.lines * i + opts.rotate);\n var backgroundLine = document.createElement('div');\n backgroundLine.style.position = 'absolute';\n backgroundLine.style.top = \"\".concat(-opts.width / 2, \"px\");\n backgroundLine.style.width = (opts.length + opts.width) + 'px';\n backgroundLine.style.height = opts.width + 'px';\n backgroundLine.style.background = getColor(opts.fadeColor, i);\n backgroundLine.style.borderRadius = borderRadius;\n backgroundLine.style.transformOrigin = 'left';\n backgroundLine.style.transform = \"rotate(\".concat(degrees, \"deg) translateX(\").concat(opts.radius, \"px)\");\n var delay = i * opts.direction / opts.lines / opts.speed;\n delay -= 1 / opts.speed; // so initial animation state will include trail\n var line = document.createElement('div');\n line.style.width = '100%';\n line.style.height = '100%';\n line.style.background = getColor(opts.color, i);\n line.style.borderRadius = borderRadius;\n line.style.boxShadow = normalizeShadow(shadows, degrees);\n line.style.animation = \"\".concat(1 / opts.speed, \"s linear \").concat(delay, \"s infinite \").concat(opts.animation);\n backgroundLine.appendChild(line);\n el.appendChild(backgroundLine);\n }\n}\nfunction parseBoxShadow(boxShadow) {\n var regex = /^\\s*([a-zA-Z]+\\s+)?(-?\\d+(\\.\\d+)?)([a-zA-Z]*)\\s+(-?\\d+(\\.\\d+)?)([a-zA-Z]*)(.*)$/;\n var shadows = [];\n for (var _i = 0, _a = boxShadow.split(','); _i < _a.length; _i++) {\n var shadow = _a[_i];\n var matches = shadow.match(regex);\n if (matches === null) {\n continue; // invalid syntax\n }\n var x = +matches[2];\n var y = +matches[5];\n var xUnits = matches[4];\n var yUnits = matches[7];\n if (x === 0 && !xUnits) {\n xUnits = yUnits;\n }\n if (y === 0 && !yUnits) {\n yUnits = xUnits;\n }\n if (xUnits !== yUnits) {\n continue; // units must match to use as coordinates\n }\n shadows.push({\n prefix: matches[1] || '', // could have value of 'inset' or undefined\n x: x,\n y: y,\n xUnits: xUnits,\n yUnits: yUnits,\n end: matches[8],\n });\n }\n return shadows;\n}\n/**\n * Modify box-shadow x/y offsets to counteract rotation\n */\nfunction normalizeShadow(shadows, degrees) {\n var normalized = [];\n for (var _i = 0, shadows_1 = shadows; _i < shadows_1.length; _i++) {\n var shadow = shadows_1[_i];\n var xy = convertOffset(shadow.x, shadow.y, degrees);\n normalized.push(shadow.prefix + xy[0] + shadow.xUnits + ' ' + xy[1] + shadow.yUnits + shadow.end);\n }\n return normalized.join(', ');\n}\nfunction convertOffset(x, y, degrees) {\n var radians = degrees * Math.PI / 180;\n var sin = Math.sin(radians);\n var cos = Math.cos(radians);\n return [\n Math.round((x * cos + y * sin) * 1000) / 1000,\n Math.round((-x * sin + y * cos) * 1000) / 1000,\n ];\n}\n"],"names":["$","$container","listener","previousToast","toastId","toastType","toastr","clear","$toastElement","clearOptions","options","getOptions","getContainer","clearToast","toastsToClear","children","i","length","clearContainer","remove","removeToast","error","message","title","optionsOverride","notify","type","iconClass","iconClasses","info","subscribe","callback","success","version","warning","create","containerId","attr","addClass","positionClass","appendTo","target","createContainer","force","hideMethod","duration","hideDuration","easing","hideEasing","complete","publish","args","map","extend","preventDuplicates","shouldExit","intervalId","$titleElement","$messageElement","$progressElement","$closeElement","closeHtml","progressBar","hideEta","maxHideTime","response","state","startTime","Date","toastClass","suffix","escapeHtml","append","titleClass","setTitle","messageClass","setMessage","closeButton","closeClass","prepend","progressClass","rtl","newestOnTop","ariaValue","setAria","hide","showMethod","showDuration","showEasing","onShown","timeOut","setTimeout","hideToast","parseFloat","getTime","setInterval","updateProgress","closeOnHover","hover","stickAround","delayedHideToast","onclick","tapToDismiss","click","event","stopPropagation","undefined","cancelBubble","onCloseClick","debug","console","source","replace","override","method","closeMethod","closeDuration","closeEasing","clearTimeout","onHidden","endTime","extendedTimeOut","stop","percentage","width","is","__assign","Object","assign","t","s","n","arguments","p","prototype","hasOwnProperty","call","apply","this","defaults","lines","radius","scale","corners","color","fadeColor","animation","rotate","direction","speed","zIndex","className","top","left","shadow","position","Spinner","opts","spin","el","document","createElement","setAttribute","style","toString","transform","concat","insertBefore","firstChild","borderRadius","Math","round","shadows","boxShadow","regex","_i","_a","split","matches","match","x","y","xUnits","yUnits","push","prefix","end","parseBoxShadow","degrees","backgroundLine","height","background","getColor","transformOrigin","delay","line","normalizeShadow","appendChild","drawLines","parentNode","removeChild","idx","normalized","shadows_1","xy","convertOffset","join","radians","PI","sin","cos"],"sourceRoot":""}