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AEfyC,OAAOC,iBAAiBL,EAAUW,EACtC,C,gEC/EIE,EAAiB,WAEnB,SAASC,KAOT,SAAmBC,EAAOC,EAAQC,GAChC,IAAIC,EAAI,IAAIjF,KACZiF,EAAEC,QAAQD,EAAEE,UAAsB,GAATH,EAAc,GAAK,GAAK,KACjD,IAAII,EAAU,WAAaH,EAAEI,cAC7B1B,SAAS2B,OAASR,EAAQ,IAAMC,EAAS,IAAMK,EAAU,SAC3D,EAVEG,CAAU,qBAAsB,OADnBC,EAAWC,KAAK,6BAE7BD,EAAWE,SAAS,mBACpBC,EAAExB,QAAQyB,IAAI,eAChB,CA6CA,IAAIJ,EAAYK,EAEhB,MAAO,CACL/B,KAxBF,WAEE0B,EAAaG,EAAE,cACfE,EAAYL,EAAWM,KAAK,6BAEW,IApBzC,SAAmBhB,GAGjB,IAFA,IAAIiB,EAAOjB,EAAQ,IACfkB,EAAKrC,SAAS2B,OAAOW,MAAM,KACtBC,EAAI,EAAGA,EAAIF,EAAGnC,OAAQqC,IAAK,CAElC,IADA,IAAIC,EAAIH,EAAGE,GACW,KAAfC,EAAEC,OAAO,IACdD,EAAIA,EAAEE,UAAU,GAElB,GAAuB,GAAnBF,EAAEG,QAAQP,GACZ,OAAOI,EAAEE,UAAUN,EAAKlC,OAAQsC,EAAEtC,OAEtC,CACA,MAAO,EACT,CAOM0C,CAAU,wBACZf,EAAWgB,YAAY,mBAEvBb,EAAExB,QAAQsC,GAAG,gBAAgB,WAC3B5B,GACF,IACAgB,EAAUY,GAAG,QAAS5B,GACtBgB,EAAUY,GAAG,WAAW,SAASC,GAChB,MAAXA,EAAEC,OACJ9B,GAEJ,IAEJ,EASF,CA1DqB,GCIrB,MAAM+B,UAA2BtD,EAAAA,QAC/BC,YAAYC,GAEVqD,MAAMrD,EAER,CACAM,OACEc,EAAcd,MAChB,EAEF,IAAI8C,EAAmB,U","sources":["webpack://netzkern.am/./node_modules/lodash.debounce/index.js","webpack://netzkern.am/./src/Foundation/Common/code/Frontend/General/global-js/SelfInitComponent.js","webpack://netzkern.am/./src/Foundation/Common/code/Frontend/components/molecules/cookieBox/cookieConsent.js","webpack://netzkern.am/./src/Foundation/Common/code/Frontend/components/molecules/cookieBox/cookieBox.cmp.js"],"sourcesContent":["/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","import _debounce from \"lodash.debounce/index\";\r\n\r\n\r\nconst readyStates = {\r\n loading: 0,\r\n interactive: 1,\r\n complete: 2\r\n}\r\n\r\n/**\r\n *\r\n * SelfInitComponent - for every class / component deriving from it and overriding init, init will be executed on DOMReady\r\n * @module SelfInitComponent\r\n */\r\n\r\n/** The class SelfInitComponent*/\r\nexport default class SelfInitComponent {\r\n\r\n /**\r\n * constructor: Creates an instance of SelfInitComponent.\r\n * @param {string} selector selector to find corresponding element in DOM\r\n * @param {Object} [implementedEvents=null] the options object\r\n * @param {boolean} [implementedEvents.leading=true] specify invoking on the leading edge of the timeout (setting false: trailing edge of timeout)\r\n * @param {boolean} [implementedEvents.executeImmediate=false] execute function immediately, then listen for event\r\n * @param {number} [implementedEvents.debounceTime=50] number of milliseconds to delay\r\n * @memberof SelfInitComponent\r\n */\r\n constructor(selector, implementedEvents = null) {\r\n\r\n const callEvents = () => {\r\n if (document.querySelectorAll(selector) != null && document.querySelectorAll(selector).length > 0) {\r\n this.init();\r\n }\r\n if (implementedEvents) {\r\n for (const eventKey in implementedEvents) {\r\n if (this.__proto__[eventKey]) {\r\n if (implementedEvents[eventKey]) {\r\n if (typeof implementedEvents[eventKey] == \"object\") {\r\n if (!implementedEvents[eventKey][\"debounce\"]) {\r\n window.addEventListener(eventKey, this.__proto__[eventKey]);\r\n } else {\r\n debounce(eventKey, this.__proto__[eventKey], implementedEvents[eventKey].debounceTime, implementedEvents[eventKey].trailing);\r\n }\r\n if (implementedEvents[eventKey][\"executeImmediate\"]) {\r\n this.__proto__[eventKey]();\r\n }\r\n } else {\r\n debounce(eventKey, this.__proto__[eventKey]);\r\n }\r\n } else {\r\n window.addEventListener(eventKey, this.__proto__[eventKey]);\r\n }\r\n // eslint-disable-next-line no-undef\r\n } else if ((`${BUILDMODE}`) == \"development\") {\r\n //render an error-message in the browser-console in development mode, if there is an event in the given parameter object with no corresponding method\r\n // eslint-disable-next-line no-console\r\n console.warn(`trying to assign an non-existing function to the event '${eventKey}'`);\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n if (readyStates[document.readyState] < readyStates.interactive) {\r\n window.addEventListener(\"load\", callEvents);\r\n } else {\r\n callEvents();\r\n }\r\n }\r\n // default init method to be overriden by child components\r\n init() { }\r\n}\r\n\r\nfunction debounce(eventKey, givenFunction, debounceTime = 50, leading = true) {\r\n const debounced_func = _debounce(givenFunction, debounceTime, {\r\n leading: leading,\r\n trailing: !leading\r\n });\r\n window.addEventListener(eventKey, debounced_func);\r\n}","var CookieConsent = (function() {\r\n\r\n function handleCookieBox() {\r\n expiredays = $cookieBox.attr(\"data-cookie-expires-days\");\r\n setCookie(\"am_cookieboxclosed\", \"true\", expiredays);\r\n $cookieBox.addClass(\"cookiebox--hide\");\r\n $(window).off(\"beforeunload\");\r\n }\r\n\r\n function setCookie(cname, cvalue, exdays) {\r\n var d = new Date();\r\n d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));\r\n var expires = \"expires=\" + d.toUTCString();\r\n document.cookie = cname + \"=\" + cvalue + \";\" + expires + \";path=/\";\r\n }\r\n\r\n function getCookie(cname) {\r\n var name = cname + \"=\";\r\n var ca = document.cookie.split(\";\");\r\n for (var i = 0; i < ca.length; i++) {\r\n var c = ca[i];\r\n while (c.charAt(0) == \" \") {\r\n c = c.substring(1);\r\n }\r\n if (c.indexOf(name) == 0) {\r\n return c.substring(name.length, c.length);\r\n }\r\n }\r\n return \"\";\r\n }\r\n\r\n function init() {\r\n\r\n $cookieBox = $(\".cookiebox\");\r\n $closeBtn = $cookieBox.find(\".cookiebox__button--close\");\r\n\r\n if (getCookie(\"am_cookieboxclosed\") == \"\") {\r\n $cookieBox.removeClass(\"cookiebox--hide\");\r\n\r\n $(window).on(\"beforeunload\", function() {\r\n handleCookieBox();\r\n });\r\n $closeBtn.on(\"click\", handleCookieBox);\r\n $closeBtn.on(\"keydown\", function(e) {\r\n if (e.which == \"13\") {\r\n handleCookieBox();\r\n }\r\n });\r\n }\r\n }\r\n\r\n\r\n var $cookieBox, $closeBtn, expiredays;\r\n\r\n return {\r\n init: init\r\n };\r\n\r\n})();\r\n\r\nexport { CookieConsent };","import SelfInitComponent from \"General/global-js/SelfInitComponent\";\r\nimport { CookieConsent } from \"./cookieConsent\";\r\nimport \"./cookiebox.scss\";\r\n\r\nclass CookieBoxComponent extends SelfInitComponent {\r\n constructor(selector) {\r\n\r\n super(selector);\r\n\r\n }\r\n init() {\r\n CookieConsent.init();\r\n }\r\n}\r\nnew CookieBoxComponent(\".footer\");\r\n\r\n"],"names":["reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","g","Object","freeSelf","self","root","Function","objectToString","prototype","toString","nativeMax","Math","max","nativeMin","min","now","Date","isObject","value","type","toNumber","isObjectLike","call","isSymbol","other","valueOf","replace","isBinary","test","slice","module","exports","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","remainingWait","debounced","isInvoking","arguments","this","cancel","clearTimeout","flush","readyStates","loading","interactive","complete","SelfInitComponent","constructor","selector","implementedEvents","callEvents","document","querySelectorAll","length","init","eventKey","__proto__","debounce","debounceTime","window","addEventListener","BUILDMODE","console","warn","readyState","givenFunction","debounced_func","_debounce","CookieConsent","handleCookieBox","cname","cvalue","exdays","d","setTime","getTime","expires","toUTCString","cookie","setCookie","$cookieBox","attr","addClass","$","off","$closeBtn","find","name","ca","split","i","c","charAt","substring","indexOf","getCookie","removeClass","on","e","which","CookieBoxComponent","super"],"sourceRoot":""}