PageSourceSearch

https://media.bohle.com/theme/6b639da8192cb3ac9751f3070e4b84e2/js/…tensions-scroll-navigation.plugin.5ef4e9.js

js bohle.com collected 2026-10-10 01:04:06 UTC 13,318 bytes, 8 lines download raw bytes

1"use strict";var __typeError=msg=>{throw TypeError(msg)};var __privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value);(self.webpackChunk=self.webpackChunk||[]).push([[87240],{156:t=>{var e=function(t2){var e2;return!!t2&&typeof t2=="object"&&(e2=Object.prototype.toString.call(t2))!=="[object RegExp]"&&e2!=="[object Date]"&&t2.$$typeof!==i},i=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function r(t2,e2){return e2.clone!==!1&&e2.isMergeableObject(t2)?a(Array.isArray(t2)?[]:{},t2,e2):t2}function n(t2,e2,i2){return t2.concat(e2).map(function(t3){return r(t3,i2)})}function o(t2){return Object.keys(t2).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t2).filter(function(e2){return Object.propertyIsEnumerable.call(t2,e2)}):[])}function s(t2,e2){try{return e2 in t2}catch(t3){return!1}}function a(t2,i2,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=r;var c,u,h=Array.isArray(i2);return h!==Array.isArray(t2)?r(i2,l):h?l.arrayMerge(t2,i2,l):(u={},(c=l).isMergeableObject(t2)&&o(t2).forEach(function(e2){u[e2]=r(t2[e2],c)}),o(i2).forEach(function(e2){(!s(t2,e2)||Object.hasOwnProperty.call(t2,e2)&&Object.propertyIsEnumerable.call(t2,e2))&&(s(t2,e2)&&c.isMergeableObject(i2[e2])?u[e2]=(function(t3,e3){if(!e3.customMerge)return a;var i3=e3.customMerge(t3);return typeof i3=="function"?i3:a})(e2,c)(t2[e2],i2[e2],c):u[e2]=r(i2[e2],c))}),u)}a.all=function(t2,e2){if(!Array.isArray(t2))throw Error("first argument should be an array");return t2.reduce(function(t3,i2){return a(t3,i2,e2)},{})},t.exports=a},795:(t,e,i)=>{i.d(e,{A:()=>n});var r=i(707);class n{static isNode(t2){return typeof t2=="object"&&t2!==null&&(t2===document||t2===window||t2 instanceof Node)}static hasAttribute(t2,e2){if(!n.isNode(t2))throw Error("The element must be a valid HTML Node!");return typeof t2.hasAttribute=="function"&&t2.hasAttribute(e2)}static getAttribute(t2,e2){let i2=!(arguments.length>2)||arguments[2]===void 0||arguments[2];if(i2&&n.hasAttribute(t2,e2)===!1)throw Error(`The required property "${e2}" does not exist!`);if(typeof t2.getAttribute!="function"){if(i2)throw Error("This node doesn't support the getAttribute function!");return}return t2.getAttribute(e2)}static getDataAttribute(t2,e2){let i2=!(arguments.length>2)||arguments[2]===void 0||arguments[2],o=e2.replace(/^data(|-)/,""),s=r.A.toLowerCamelCase(o,"-");if(!n.isNode(t2)){if(i2)throw Error("The passed node is not a valid HTML Node!");return}if(t2.dataset===void 0){if(i2)throw Error("This node doesn't support the dataset attribute!");return}let a=t2.dataset[s];if(a===void 0){if(i2)throw Error(`The required data attribute "${e2}" does not exist on ${t2}!`);return a}return r.A.parsePrimitive(a)}static querySelector(t2,e2){let i2=!(arguments.length>2)||arguments[2]===void 0||arguments[2];if(i2&&!n.isNode(t2))throw Error("The parent node is not a valid HTML Node!");let r2=t2.querySelector(e2)||!1;if(i2&&r2===!1)throw Error(`The required element "${e2}" does not exist in parent node!`);return r2}static querySelectorAll(t2,e2){let i2=!(arguments.length>2)||arguments[2]===void 0||arguments[2];if(i2&&!n.isNode(t2))throw Error("The parent node is not a valid HTML Node!");let r2=t2.querySelectorAll(e2);if(r2.length===0&&(r2=!1),i2&&r2===!1)throw Error(`At least one item of "${e2}" must exist in parent node!`);return r2}static getFocusableElements(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.body).querySelectorAll(`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `)}static getFirstFocusableElement(){let t2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.body;return this.getFocusableElements(t2)[0]}static getLastFocusableElement(){let t2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e2=this.getFocusableElements(t2);return e2[e2.length-1]}}},308:(t,e,i)=>{i.d(e,{A:()=>r});
8class r{constructor(t2=document){this._el=t2,t2.$emitter=this,this._listeners=[]}publish(t2){let e2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i2=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r2=new CustomEvent(t2,{detail:e2,cancelable:i2});return this.el.dispatchEvent(r2),r2}subscribe(t2,e2){let i2=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r2=this,n=t2.split("."),o=i2.scope?e2.bind(i2.scope):e2;if(i2.once&&i2.once===!0){let e3=o;o=function(i3){r2.unsubscribe(t2),e3(i3)}}return this.el.addEventListener(n[0],o),this.listeners.push({splitEventName:n,opts:i2,cb:o}),!0}unsubscribe(t2){let e2=t2.split(".");return this.listeners=this.listeners.reduce((t3,i2)=>([...i2.splitEventName].sort().toString()===e2.sort().toString()?this.el.removeEventListener(i2.splitEventName[0],i2.cb):t3.push(i2),t3),[]),!0}reset(){return this.listeners.forEach(t2=>{this.el.removeEventListener(t2.splitEventName[0],t2.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t2){this._el=t2}get listeners(){return this._listeners}set listeners(t2){this._listeners=t2}}},707:(t,e,i)=>{i.d(e,{A:()=>r});class r{static ucFirst(t2){return t2.charAt(0).toUpperCase()+t2.slice(1)}static lcFirst(t2){return t2.charAt(0).toLowerCase()+t2.slice(1)}static toDashCase(t2){return t2.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t2,e2){let i2=r.toUpperCamelCase(t2,e2);return r.lcFirst(i2)}static toUpperCamelCase(t2,e2){return e2?t2.split(e2).map(t3=>r.ucFirst(t3.toLowerCase())).join(""):r.ucFirst(t2.toLowerCase())}static parsePrimitive(t2){try{return/^\d+(.|,)\d+$/.test(t2)&&(t2=t2.replace(",",".")),JSON.parse(t2)}catch(e2){return t2.toString()}}}},220:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(156),n=i.n(r),o=i(707),s=i(308);class a{constructor(t2,e2={},i2=!1){if(!(t2 instanceof Node)){console.warn(`There is no valid element given while trying to create a plugin instance for "${i2}".`);return}this.el=t2,this.$emitter=new s.A(this.el),this._pluginName=this._getPluginName(i2),this.options=this._mergeOptions(e2),this._initialized=!1,this._registerInstance(),this._init()}init(){console.warn(`The "init" method for the plugin "${this._pluginName}" is not defined. The plugin will not be initialized.`)}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t2){let e2=[this.constructor.options,this.options,t2];return e2.push(this._getConfigFromDataAttribute()),e2.push(this._getOptionsFromDataAttribute()),n().all(e2.filter(t3=>t3 instanceof Object&&!(t3 instanceof Array)).map(t3=>t3||{}))}_getConfigFromDataAttribute(){let t2={};if(typeof this.el.getAttribute!="function")return t2;let e2=o.A.toDashCase(this._pluginName),i2=this.el.getAttribute(`data-${e2}-config`);return i2?window.PluginConfigManager.get(this._pluginName,i2):t2}_getOptionsFromDataAttribute(){let t2={};if(typeof this.el.getAttribute!="function")return t2;let e2=o.A.toDashCase(this._pluginName),i2=this.el.getAttribute(`data-${e2}-options`);if(i2)try{return JSON.parse(i2)}catch(t3){console.error(`The data attribute "data-${e2}-options" could not be parsed to json: ${t3.message}`)}return t2}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t2){return t2||(t2=this.constructor.name),t2}}},240:(t,e,i)=>{var _t,_e,_t2;i.r(e),i.d(e,{default:()=>s});var r=i(220),n=i(795);const _o=class _o{constructor(t2,e2=1,i2=!1){let r2=_o.easing;i2===!0&&(r2=r2.bouncy),this.easingFunction=r2[t2],this.degree=t2!=="linear"?e2:1}scrollIntoView(t2,e2){if(!e2||e2<=0)return new Promise(t3=>{t3()});let i2=document.documentElement,r2=typeof i2.scrollTop=="object"?i2.scrollTop.offsetTop:i2.scrollTop,n2=typeof t2=="object"?t2.offsetTop:t2;return this.scrollTo(i2,r2,n2,0,1/e2,20,this.easingFunction,this.degree),new Promise(t3=>{_o.currentIteration+=1,window.setTimeout(t3,e2,_o.currentIteration)})}scrollTo(t2,e2,i2,r2,n2,s2,a,l){if(r2<0||r2>1||n2<=0||(window.clearTimeout(_o.currentTimeout),!a)){t2.scrollTop=i2;return}t2.scrollTop=e2-(e2-i2)*a(r2,l),r2+=n2*s2,_o.currentTimeout=window.setTimeout(()=>{this.scrollTo(t2,e2,i2,r2,n2,s2,a,l)},s2)}static easeInPower(t2,e2){return t2**e2}static easeOutPower(t2,e2){return t2-=1,1-t2**e2*(-1)**e2}static easeInOutPower(t2,e2){return(t2*=2)<1?t2**e2/2:(t2-=2,(2-t2**e2*(-1)**e2)/2)}static easeInBouncy(t2){return 2.70158*t2**3-1.70158*t2**2}static easeOutBouncy(t2){return 1+2.70158*(t2-1)**3+1.70158*(t2-1)**2}static easeInOutBouncy(t2){return t2<.5?(2*t2)**2*(7.189819*t2-2.5949095)/2:((2*t2-2)**2*(3.5949095*(2*t2-2)+2.5949095)+2)/2}};_t=new WeakMap,_e=new WeakMap,__privateAdd(_o,_t,_o.currentIteration=0),__privateAdd(_o,_e,_o.easing={none:null,linear:_o.easeInPower,in:_o.easeInPower,out:_o.easeOutPower,inOut:_o.easeInOutPower,bouncy:{linear:_o.easeInPower,in:_o.easeInBouncy,out:_o.easeOutBouncy,inOut:_o.easeInOutBouncy}});let o=_o;const _s=class _s extends r.A{init(){var _a,_b;this.sidebar=this.el;let t2=n.A.querySelectorAll(document,this.options.anchoredSectionsSelector);this.anchoredSections=t2,this.navigationList=n.A.querySelector(this.sidebar,this.options.navigationListSelector),this.nativeScrollingDisabled=!((_a=this.options.pageSettings)!=null&&_a.nativeScrolling),this.smoothScrollingEnabled=((_b=this.options.pageSettings)==null?void 0:_b.active)||!1,this.disableNativeScrolling(),this.enableSmoothScrolling(this.navigationList),this.registerObserver(t2)}disableNativeScrolling(){this.smoothScrollingEnabled||document.documentElement.style.setProperty("scroll-behavior",this.nativeScrollingDisabled?"revert":"smooth")}enableSmoothScrolling(t2){this.smoothScrollingEnabled?this.scrollHelper=new o(this.options.pageSettings.easing,this.options.pageSettings.easingDegree,this.options.pageSettings.bouncy):this.scrollHelper=new o("none"),n.A.querySelectorAll(t2,this.options.entrySelector).forEach(t3=>{t3.addEventListener("click",this.onClickScrollSmoothly.bind(this))})}registerObserver(t2){let e2=new IntersectionObserver(this.onIntersection.bind(this),this.options.observerOptions),i2=Array.from(t2);return!!i2&&!(i2.length<=0)&&(i2.forEach(t3=>{e2.observe(t3)}),!0)}onClickScrollSmoothly(t2){t2.preventDefault();let e2=t2.target,i2=this.options.entrySelector.substring(1);if(![e2,e2.parentNode].some(t3=>t3.classList.contains(i2)))return!1;let r2=e2.hash!==void 0?e2.hash:e2.parentNode.hash;return this.performSmoothScrolling(r2),!0}performSmoothScrolling(t2){let e2=n.A.querySelector(document,t2),i2=1;this.smoothScrollingEnabled&&(i2=this.options.pageSettings.duration),this.scrollHelper.scrollIntoView(e2,i2).then(e3=>{e3===o.currentIteration&&(window.location.hash=t2)}
8)}onIntersection(t2){let e2=t2.find(t3=>t3.isIntersecting);if(!e2||!e2.target)return!1;let i2=e2.target;return this.setActiveNavigationItem(i2)}setActiveNavigationItem(t2){let e2=Array.from(n.A.querySelectorAll(this.navigationList,this.options.entrySelector));if(!e2||e2.length<=0)return!1;e2.forEach(t3=>{t3.classList.remove(this.options.activeEntryClass)});let i2=n.A.querySelector(t2,this.options.navigationAnchorSelector).id;return n.A.querySelector(this.navigationList,`[href="#${i2}"]${this.options.entrySelector}`).classList.add(this.options.activeEntryClass),this.setUpDownNavigation(t2),!0}setUpDownNavigation(t2){if(this.anchoredSections.length<=0)return!1;let e2=n.A.querySelector(t2,this.options.navigationAnchorSelector),i2=Array.from(this.anchoredSections).findIndex(t3=>n.A.querySelector(t3,this.options.navigationAnchorSelector).id===e2.id);if(i2<0)return!1;let r2=n.A.querySelector(this.sidebar,this.options.mobileUpButtonSelector),o2=n.A.querySelector(this.sidebar,this.options.mobileDownButtonSelector),s2=`#${this.getPreviousSectionId(i2)}`,a=`#${this.getNextSectionId(i2)}`;return r2.addEventListener("click",this.performSmoothScrolling.bind(this,s2)),o2.addEventListener("click",this.performSmoothScrolling.bind(this,a)),!0}getPreviousSectionId(t2){let e2=Math.max(0,t2-1);return this.getSectionIdByIndex(e2)}getNextSectionId(t2){let e2=Math.min(this.anchoredSections.length-1,t2+1);return this.getSectionIdByIndex(e2)}getSectionIdByIndex(t2){return n.A.querySelector(this.anchoredSections[t2],this.options.navigationAnchorSelector).id}};_t2=new WeakMap,__privateAdd(_s,_t2,_s.options={navigationListSelector:".scroll-navigation-sidebar-list",anchoredSectionsSelector:".swag-cms-extensions-scroll-navigation-wrapper",navigationAnchorSelector:".scroll-navigation-anchor",entrySelector:".scroll-navigation-sidebar-entry",activeEntryClass:"scroll-navigation-sidebar-entry--active",mobileListButtonSelector:"#scroll-navigation-mobile-button-list",mobileUpButtonSelector:"#scroll-navigation-mobile-button-up",mobileDownButtonSelector:"#scroll-navigation-mobile-button-down",observerOptions:{rootMargin:"-10% 0% -60% 0%"},pageSettings:{}});let s=_s}}]);

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.