PageSourceSearch

https://meisterplan.com/wp-content/themes/mcfly/assets/js/mega_nav.min.js?ver=c3a110f9

js meisterplan.com collected 2026-10-02 05:49:04 UTC 12,572 bytes, 2 lines download raw bytes

1!function(){function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var t="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},n={},r={},o=t.parcelRequirec789;null==o&&((o=function(e){if(e in n)return n[e].exports;if(e in r){var t=r[e];delete r[e];var o={id:e,exports:{}};return n[e]=o,t.call(o.exports,o,o.exports),o.exports}var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){r[e]=t},t.parcelRequirec789=o);var i=o.register;i("6VBea",function(t,n){e(t.exports,"b64_decode",function(){return o("hDdJN").b64_decode}),e(t.exports,"getAllCookies",function(){return o("fnNvV").getAllCookies}),e(t.exports,"elementReady",function(){return o("7YAJ4").elementReady}),e(t.exports,"addWindowResizeEvent",function(){return o("2pyvk").addWindowResizeEvent}),e(t.exports,"addWindowScrollEvent",function(){return o("2pyvk").addWindowScrollEvent}),e(t.exports,"getReCAPTCHAResponse",function(){return o("9uiPq").getReCAPTCHAResponse}),e(t.exports,"slideDown",function(){return o("cPDzI").slideDown}),e(t.exports,"slideUp",function(){return o("cPDzI").slideUp}),e(t.exports,"scrollToElement",function(){return o("9vUSI").scrollToElement}),e(t.exports,"getThemeData",function(){return o("4XCT3").getThemeData}),e(t.exports,"waitForElement",function(){return o("5BaYK").waitForElement}),o("hDdJN"),o("fnNvV"),o("7YAJ4"),o("2pyvk"),o("9uiPq"),o("cPDzI"),o("9vUSI"),o("4XCT3"),o("5BaYK")}),i("hDdJN",function(t,n){e(t.exports,"b64_decode",function(){return r});var r=function(e){return decodeURIComponent(escape(window.atob(e)))}}),i("fnNvV",function(t,n){e(t.exports,"getAllCookies",function(){return r});var r=function(){var e=document.cookie.split("; "),t=[];return e.forEach(function(e){var n=e.split("=");t[n[0]]=n[1]}),t}}),i("7YAJ4",function(t,n){e(t.exports,"elementReady",function(){return r});var r=function(e){return new Promise(function(t){var n=document.querySelectorAll(e);n.length?t(n):new MutationObserver(function(){Array.from(document.querySelectorAll(e)).forEac
1h(function(e){t(e)})}).observe(document.documentElement,{childList:!0,subtree:!0})})}}),i("2pyvk",function(t,n){e(t.exports,"addWindowResizeEvent",function(){return r}),e(t.exports,"addWindowScrollEvent",function(){return o});var r=function(e){var t;window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(e,250)})},o=function(e){var t;window.addEventListener("scroll",function(){clearTimeout(t),t=setTimeout(e,250)})}}),i("9uiPq",function(t,n){e(t.exports,"getReCAPTCHAResponse",function(){return s});var r=o("iDWWK"),i=o("3yIqF"),a=o("4XCT3"),s=function(e){return(0,r._)(function(){var t,n;return(0,i._)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,a.getThemeData)()];case 1:if(!(n=o.sent()).recaptcha_site_key)throw Error("Missing Google reCAPTCHA Site Key in theme configuration");if(!(null==(t=n.ajax_actions)?void 0:t.recaptcha_verify))throw Error("Missing AJAX route to verify reCAPTCHA token");if(!n.ajax_route)throw Error("Missing global AJAX route");return[2,new Promise(function(t,o){void 0===window.grecaptcha?(console.warn("Google reCAPTCHA is not loaded"),t({success:!0,score:1})):window.grecaptcha.ready(function(){window.grecaptcha.execute(n.recaptcha_site_key,{action:e}).then(function(e){return(0,r._)(function(){var r,a,s,c;return(0,i._)(this,function(i){switch(i.label){case 0:(r=new FormData).append("action",n.ajax_actions.recaptcha_verify),new URL(window.location).searchParams.has("e2e-test")&&(e="e2e-test-valid-user"),r.append("recaptcha_token",e),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch(n.ajax_route,{method:"POST",body:r})];case 2:return[4,(a=i.sent()).json()];case 3:if((s=i.sent()).success)t(s);else if(s["error-codes"])throw c=[],s["error-codes"].forEach(function(e){switch(e){case"missing-input-secret":c.push("The secret parameter is missing.");break;case"invalid-input-secret":c.push("The secret parameter is invalid or malformed.");break;case"missing-input-response":c.push("The response parameter is missing.");break;case"invalid-input-response":c.push("The response parameter is invalid or malformed.");break;case"bad-request":c.push("The request is invalid or malformed.");break;case"timeout-or-duplicate":c.push("The response is no longer valid: either is too old or has been used previously.");break;default:c.push("Unknown reCAPTCHA error code")}}),Error("There was an error when trying to verify the user's response by reCAPTCHA:\n".concat(c.join("\n")));else if(s.data)throw Error("The request to verify the reCAPTCHA user token failed: ".concat(a.data));else throw Error("Unknown error occurred when trying to verify the reCAPTCHA user token");return[3,5];case 4:return o(i.sent()),[3,5];case 5:return[2]}})})()})})})];case 2:return console.error(o.sent()),[3,3];case 3:return[2]}})})()}}),i("iDWWK",function(t,n){function r(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,c,"next",e)}function c(e){r(a,o,i,s,c,"throw",e)}s(void 0)})}}e(t.exports,"_",function(){return o})}),i("3yIqF",function(t,n){e(t.exports,"_",function(){return r});function r(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(a,"next",{value:c(0)}),s(a,"throw",{value:c(1)}),s(a,"return",{value:c(2)}),"function"==typeof Symbol&&s(a,Symbol.iterator,{value:function(){return this}}),a;function c(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}}),i("4XCT3",function(t,n){e(t.exports,"getThemeData",function(){return r});var r=function(){if(window.themeDataRestUrl){var e="themeData";return new Promise(function(t,n){sessionStorage.getItem("themeData")?t(JSON.parse(sessionStorage.getItem(e))):fetch(window.themeDataRestUrl).then(function(e){return e.json()}).then(function(n){try{sessionStorage.setItem(e,JSON.stringify(n))}catch(e){console.warn(e)}t(n)}).catch(function(e){return n(e)})})}throw Error("Missing themeDataRestUrl in global context")}}),i("cPDzI",function(t,n){e(t.exports,"slideUp",function(){return r}),e(t.exports,"slideDown",function(){return o}
1);var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r){e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",["height","paddingTop","paddingBottom","marginTop","marginBottom"].forEach(function(t){e.style[t]=0}),window.setTimeout(function(){n||(e.style.display="none"),["height","padding-top","padding-bottom","margin-top","margin-bottom","overflow","transition-duration","transition-property"].forEach(function(t){return e.style.removeProperty(t)}),r()},t)})},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(r){if(!n){e.style.removeProperty("display");var o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o}var i=e.offsetHeight;e.style.overflow="hidden",["height","paddingTop","paddingBottom","marginTop","marginBottom"].forEach(function(t){e.style[t]=0}),e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=i+"px",["padding-top","padding-bottom","margin-top","margin-bottom"].forEach(function(t){return e.style.removeProperty(t)}),window.setTimeout(function(){["height","overflow","transition-duration","transition-property"].forEach(function(t){return e.style.removeProperty(t)}),r()},t)})}}),i("9vUSI",function(t,n){e(t.exports,"scrollToElement",function(){return r});var r=function(e){var t=document.querySelector(e);t&&window.scrollTo(0,window.scrollY+t.getBoundingClientRect().top)}}),i("5BaYK",function(t,n){e(t.exports,"waitForElement",function(){return r});var r=function(e){return new Promise(function(t){if(document.querySelector(e))return t(document.querySelector(e));var n=new MutationObserver(function(){document.querySelector(e)&&(n.disconnect(),t(document.querySelector(e)))});n.observe(document.body,{childList:!0,subtree:!0})})}}),o("6VBea");var a=o("2pyvk"),s=function(){return document.querySelector("header.nav")},c=function(){return document.querySelector("header.nav .container")},u=function(){return document.querySelector("header.nav li.lvl--1.lvl--open:has(> nav)")},l=function(){return document.querySelector("header.nav li.lvl--search")},d="lvl--open",f="nav--bg",h=function(){var e=c().getBoundingClientRect().width;document.querySelectorAll("header.nav nav.left li.lvl--1:has(nav.sub--menu)").forEach(function(t){var n=t.querySelector("nav.sub--menu"),r=n.hasAttribute("hidden");r&&n.removeAttribute("hidden");var o=n.getBoundingClientRect().width;if(r&&n.setAttribute("hidden",""),o<e){var i=t.offsetLeft+t.getBoundingClientRect().width/2,a=i-o/2,s=i+o/2,u=c().offsetLeft,l=c().offsetLeft+e;a>=u&&s<=l?n.style.setProperty("--subnav-offset-left","".concat(i,"px")):a<u?n.style.setProperty("--subnav-offset-left","".concat(u+o/2,"px")):s>l&&n.style.setProperty("--subnav-offset-left","".concat(l-o/2,"px"))}})},p=function(){if(s()){var e=s().getBoundingClientRect(),t=e.top+e.height;s().style.setProperty("--subnav-offset-top","".concat(t,"px"))}};new ResizeObserver(function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)o.value.contentRect.width>=1200&&(h(),p())}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}).observe(document.body),(0,a.addWindowScrollEvent)(p);var v=function(){s().setAttribute("data-color-scheme","highlight")},m=function(){s().hasAttribute("data-color-scheme")&&s().removeAttribute("data-color-scheme")},y=function(){window.scrollY>0||u()||window.innerWidth<1200?(s().classList.add(f),m()):(s().classList.remove(f),s().classList.contains("nav--on-highlight")&&v())},g=function(e){var t=u();if(t){var n="function"==typeof e.composedPath?e.composedPath():[],r=n.includes(t)||t.contains(e.target),o=n.some(function(e){return e instanceof Element&&e.closest(".lvl--color-mode")});r||o||(w(),window.removeEventListener("click",g))}},w=function(){T(u())},b=function(e){return e.classList.contains(d)},x=function(e,t){var n=e.querySelector(":scope > button");n&&n.setAttribute("aria-expanded",t?"true":"false");var r=e.querySelector(":scope > nav.sub");r&&(t?r.removeAttribute("hidden"):r.setAttribute("hidden",""))},E=function(e){var t,n;w(),e.classList.add(d),x(e,!0),e===l()&&(null==(t=l().querySelector("input"))||t.focu
1s()),null==(n=s())||n.dispatchEvent(new CustomEvent("subMenuChange")),window.addEventListener("click",g)},A=function(e){var t;null==(t=document.querySelector("header.nav li.lvl--1.lvl--open:has(> ul)"))||t.classList.remove(d),e.classList.add(d)},T=function(e){var t;e&&(e.classList.remove(d),x(e,!1),null==(t=s())||t.dispatchEvent(new CustomEvent("subMenuChange")))};document.querySelectorAll("header.nav button:has(+ nav)").forEach(function(e){e.addEventListener("click",function(){var t=e.closest("li");b(t)?T(t):E(t)})}),document.querySelectorAll("header.nav button:has(+ ul)").forEach(function(e){e.addEventListener("click",function(){var t=e.closest("li");b(t)?T(t):A(t)})}),s()&&(["scroll","DOMContentLoaded","resize"].forEach(function(e){window.addEventListener(e,y)}),s().addEventListener("subMenuChange",y))}();
2//# sourceMappingURL=mega_nav.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.