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C,EAAInE,KAAK+C,OACJmB,EAAIC,EAAGD,IACZ,GAAyB,IAArBlE,KAAKkE,GAAGE,UAAkBL,EAAgBjG,MAAM,IAAMkC,KAAKkE,GAAGG,UAAY,KAAKzG,QAAQqG,EAAQ,MACjG,OAAO,EAGX,OAAO,CACT,GAEJ,E,2ECdF,MAAMK,UAA4B9B,EAAAA,QAChCC,YAAYC,GAEV6B,MAAM7B,EACR,CAEAX,OACE,IAAIxB,EAAYkB,EAAE,+BACdb,EAAkBa,EAAE,qCAIxBrB,EAAAA,eAAAA,KAAoBG,EAAWK,EAHL,+MAI5B,EAGF,IAAI0D,EAAoB,kC","sources":["webpack://netzkern.am/./node_modules/lodash.debounce/index.js","webpack://netzkern.am/./src/Foundation/Common/code/Frontend/General/global-js/DropdownHelper.js","webpack://netzkern.am/./src/Foundation/Common/code/Frontend/General/global-js/SelfInitComponent.js","webpack://netzkern.am/./src/Foundation/Common/code/Frontend/General/global-js/helpers.js","webpack://netzkern.am/./src/Foundation/Common/code/Frontend/components/molecules/metanavlogin/metanavlogin.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 {Helperfn} from \"General/global-js/helpers\";\r\n\r\nvar DropdownHelper = function() {\r\n\r\n function bindEvents() {\r\n\r\n //close when blurring last tabbable element\r\n getTabbableChilds($dropdown).last().on(\"blur\", hideDropdown);\r\n\r\n //shift tab\r\n $dropdowntoggle.on(\"keydown\", function(e) {\r\n if (e.shiftKey && e.keyCode === 9) {\r\n hideDropdown();\r\n }\r\n });\r\n\r\n //Space\r\n $dropdowntoggle.on(\"keydown\", function(e) {\r\n if (e.keyCode === 32) {\r\n e.preventDefault();\r\n toggleDropdown();\r\n }\r\n });\r\n\r\n //close when click outside\r\n $dropdowntoggle.on(\"click\", function() {\r\n $body.on(\"mouseup\", function(e) {\r\n handleOutsideClick(e);\r\n });\r\n });\r\n }\r\n\r\n function getTabbableChilds(node) {\r\n return node.find(\"button, [href], [tabindex]:not([tabindex=\\\"-1\\\"])\");\r\n }\r\n\r\n function handleOutsideClick(e) {\r\n _opened = $dropdown.hasClass(\"show\");\r\n $target = $(e.target);\r\n\r\n if (_opened === true && e.target.id != $dropdown.attr(\"id\") && !$target.hasClasses(classList)) {\r\n hideDropdown();\r\n $body.off(\"mouseup\", handleOutsideClick);\r\n }\r\n }\r\n\r\n function hideDropdown() {\r\n $dropdown.removeClass(\"show\");\r\n $dropdowntoggle.attr(\"aria-expanded\", \"false\");\r\n }\r\n\r\n function toggleDropdown() {\r\n if ($dropdown.hasClass(\"show\")) {\r\n $dropdown.removeClass(\"show\");\r\n $dropdowntoggle.attr(\"aria-expanded\", \"false\");\r\n } else {\r\n $dropdown.addClass(\"show\");\r\n $dropdowntoggle.attr(\"aria-expanded\", \"true\");\r\n }\r\n }\r\n\r\n function init(dropdown, dropdowntoggle, outsideClickTargets) {\r\n $body = $(\"body\");\r\n $dropdown = dropdown;\r\n $dropdowntoggle = dropdowntoggle;\r\n classList = outsideClickTargets;\r\n\r\n Helperfn.init();\r\n bindEvents();\r\n }\r\n\r\n var $body, $dropdown, $dropdowntoggle, $target, classList, _opened;\r\n\r\n return {\r\n init: init\r\n };\r\n\r\n}();\r\n\r\nexport {DropdownHelper};\r\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 Helperfn = function() {\r\n\r\n function init() {\r\n //Helper Function to verify multiple Classes\r\n $.fn.extend({\r\n hasClasses: function(selector) {\r\n var classNamesRegex = new RegExp(\"( \" + selector.replace(/ +/g, \"\").replace(/,/g, \" | \") + \" )\"),\r\n rclass = /[\\n\\t\\r]/g,\r\n i = 0,\r\n l = this.length;\r\n for (; i < l; i++) {\r\n if (this[i].nodeType === 1 && classNamesRegex.test((\" \" + this[i].className + \" \").replace(rclass, \" \"))) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n });\r\n }\r\n\r\n return {\r\n init: init\r\n };\r\n\r\n}();\r\n\r\nexport { Helperfn };","import SelfInitComponent from \"General/global-js/SelfInitComponent\";\r\nimport \"./metanavlogin.scss\";\r\nimport {DropdownHelper} from \"General/global-js/DropdownHelper\";\r\n\r\nclass MetaNavigationLogin extends SelfInitComponent {\r\n constructor(selector) {\r\n\r\n super(selector);\r\n }\r\n\r\n init() {\r\n var $dropdown = $(\"#metanavloginLayer-collapse\");\r\n var $dropdowntoggle = $(\".metanavloginLayer-link__collapse\");\r\n var outsideClickTargets = \"metanavloginLayer-link, metanavloginLayer-link__icon,metanavloginLayer-close-link__icon, metanavloginLayer-link__text,\" +\r\n \"metanavloginLayer-link__collapse, metanavloginLayer-collapse, metanavloginLayer__label\";\r\n\r\n DropdownHelper.init($dropdown, $dropdowntoggle, outsideClickTargets);\r\n }\r\n}\r\n\r\nnew MetaNavigationLogin(\"#headerMetaNavigationLoginLayer\");\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","DropdownHelper","bindEvents","node","$dropdown","find","last","on","hideDropdown","$dropdowntoggle","e","shiftKey","keyCode","preventDefault","hasClass","removeClass","attr","addClass","$body","handleOutsideClick","_opened","$target","$","target","id","hasClasses","classList","off","init","dropdown","dropdowntoggle","outsideClickTargets","Helperfn","readyStates","loading","interactive","complete","SelfInitComponent","constructor","selector","implementedEvents","callEvents","document","querySelectorAll","length","eventKey","__proto__","debounce","debounceTime","window","addEventListener","BUILDMODE","console","warn","readyState","givenFunction","debounced_func","_debounce","fn","extend","classNamesRegex","RegExp","rclass","i","l","nodeType","className","MetaNavigationLogin","super"],"sourceRoot":""}