PageSourceSearch

https://www.bayerns-frauen.de/imperia/md/content/stmas/master_2020/system/js/master_2020-components.js

js bayerns-frauen.de collected 2026-09-25 05:09:19 UTC 8,982 bytes, 4 lines download raw bytes

1/***********************
2 Komponente: image
3**********************/
4!function(){"use strict";let t;var e={},i={};function s(t){var r=i[t];if(void 0!==r)return r.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,s),n.exports}s.rv=function(){return"1.1.1"},s.ruid="[email protected]";var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let n=new Uint8Array(16),o=[];for(let t=0;t<256;++t)o.push((t+256).toString(16).slice(1));var a=function(e,i,s){if(r.randomUUID&&!i&&!e)return r.randomUUID();let a=(e=e||{}).random||(e.rng||function(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(n)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,i){s=s||0;for(let t=0;t<16;++t)i[s+t]=a[t];return i}return function(t,e=0){return o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]}(a)},l=t=>{let e=[];for(;t&&t!==document;t=t.parentNode)e.push(t);return e},c=37,h=38,u=39,d=40,p=27,f=32,m=13,y=9,b=36,g=35,v=33,A=34,C=90,L=188,I=190,w=function(t){void 0!==t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&(t.cancelBubble=!0),void 0!==t.preventDefault&&t.preventDefault()},z=37,E=38,S=39,O=40,k=27,H=32,U=13,j=9,q=36,M=35,N=33,B=34,D=90,$=188,P=190,V=function(t,e=0,i=0){let{top:s,bottom:r}=t.getBoundingClientRect(),n=window.innerHeight-i;return s>=e&&r<=n},_=function(t,e={behavior:"smooth",block:"start",inline:"nearest"}){!V(t)&&t.scrollIntoView(e)},T=class{constructor(t,e={},i){this.caption=null,this.descriptors=[],this.focusHelper=null,this.inner=null,this.isInteractive=!1,this.mainAction=null,this.middleClick=!1,this.similarActions=[],this.title=null,this.onClick=t=>{if(this.inner){let e="1"===function(t,e=document.documentElement){return window.getComputedStyle(e).getPropertyValue(t).trim()}(this.options.cardHeroActiveVar,this.inner),i=l(t.target).filter(t=>t.classList.contains(this.options.mediaClass)).length>0;if(e&&i)return}if(l(t.target).filter(t=>t.classList.contains(this.options.captionClass)||"A"===t.tagName||"BUTTON"===t.tagName||"button"===t.getAttribute("role")).length>0)return;t.isTrusted&&w(t);let e=t.ctrlKey;e?this.mainAction?.dispatchEvent(new MouseEvent("click",{ctrlKey:e,bubbles:!1})):this.mainAction?.click()},this.onMousedown=t=>{if(!!this.isInteractive)this.middleClick=1===t.button,this.middleClick&&w(t)},this.onMouseup=t=>{if(!!this.isInteractive&&!!this.middleClick)w(t),this.middleClick=!1,this.mainAction?.dispatchEvent(new MouseEvent("click",{ctrlKey:!0,bubbles:!1}))},this.onMainActionFocus=()=>{this.focusHelper&&"keyboard"===document.documentElement.getAttribute("data-wi")&&_(this.focusHelper,{behavior:"auto",block:"nearest",inline:"nearest"})},this.el=t,this.eventBus=i,this.abortController=new AbortController;this.options={captionClass:"caption",cardHeroActiveVar:"--_card-hero-active",descriptorClass:"card--descriptor",focusHelperClass:"card--focus-helper",headerClass:"card--header",innerClass:"card--inner",interactiveClass:"card__interactive",mainActionClass:"card--main-action",mediaClass:"card--media",...e},this.initialize()}initialize(){let t=this.el.querySelector(`.${this.options.headerClass}`),e=t?.querySelector("h1, h2, h3, h4, h5, h6");if(e){let t=e.querySelector("a[href]");this.title=t||e}if(this.determineMainAction(),this.isInteractive=this.el.classList.contains(this.options.interactiveClass),this.isInteractive&&!this.mainAction&&(this.isInteractive=!1,this.el.classList.remove(this.options.interactiveClass),console.warn("[Card] is declared interactive but has no main action. The interactive class has been removed.",this.el)),this.isInteractive&&this.mainAction?.tagName==="A"){let t=Array.from(this.el.querySelectorAll('a[href], button, [role="button"]'));this.similarActions=t.filter(t=>{if("A"===t.tagName&&t!==this.mainAction)return t.getAttribute("href")===this.mainAction.getAttribute("href")})}this.descriptors=Array.from(this.el.querySelectorAll(`.${this.options.descriptorClass}`)),this.inner=this.el.querySelector(`.${this.options.innerClass}`),this.caption=this.el.querySelector(`.${this.options.captionClass}`),this.isInteractive&&(this.focusHelper=document.createElement("div"),this.focusHelper.classList.add(this.options.focusHelperClass),this.focusHelper.setAttribute("aria-hidden","true"),this.inner?.prepe
4nd(this.focusHelper)),this.setupAria(),this.attachEvents()}determineMainAction(){let t=Array.from(this.el.querySelectorAll(`.${this.options.mainActionClass}`));if(t.length>1){console.warn(`[Card] has ${t.length} main actions. Allowed is only 1 main action.`,this.el,t);return}if(t.length>0){this.mainAction=t[0];return}this.title?.tagName==="A"&&(this.mainAction=this.title)}setupAria(){let t=[];if(this.descriptors.forEach(e=>{let i=e.getAttribute("id");!i&&(i=a(),e.setAttribute("id",i)),t.push(i)}),this.title){let e=[this.title.getAttribute("aria-describedby"),...t].filter(t=>null!==t);e.length>0&&this.title.setAttribute("aria-describedby",e.join(" "))}this.similarActions.forEach(t=>{t.setAttribute("tabindex","-1")})}attachEvents(){if(!!this.isInteractive)this.el.addEventListener("click",this.onClick,{signal:this.abortController.signal}),this.el.addEventListener("mousedown",this.onMousedown,{signal:this.abortController.signal}),this.el.addEventListener("mouseup",this.onMouseup,{signal:this.abortController.signal}),this.mainAction?.addEventListener("focus",this.onMainActionFocus,{signal:this.abortController.signal})}destroy(){this.abortController.abort(),this.focusHelper?.remove()}},x=class{constructor(t,e={},i){this.img=null,this.intersectionObserver=null,this.lazyLoaded=!1,this.sources=[],this.supportsNativeLazyLoading=!1,this.lazyLoad=()=>{if(this.lazyLoaded||!this.img)return;this.lazyLoaded=!0,this.intersectionObserver?.disconnect(),this.img.onload=()=>{this.el.classList.remove(this.options.lazyLoadClass),this.el.classList.add(this.options.lazyLoadedClass)},this.sources.forEach(t=>{let e=t.getAttribute("data-type"),i=t.getAttribute("data-srcset");e&&(t.removeAttribute("data-type"),t.setAttribute("type",e)),i&&(t.removeAttribute("data-srcset"),t.setAttribute("srcset",i))});let t=this.img.getAttribute("data-src");t&&(this.img.removeAttribute("data-src"),this.img.setAttribute("src",t))},this.el=t,this.eventBus=i;this.options={imgClass:"image--img",lazyLoadClass:"image__lazy-load",lazyLoadedClass:"image__lazy-loaded",...e},this.supportsNativeLazyLoading="loading"in HTMLImageElement.prototype,this.initialize()}initialize(){this.img=this.el.querySelector(`.${this.options.imgClass}`),this.sources=Array.from(this.el.querySelectorAll("picture > source")),this.el.querySelector("noscript")?.remove(),!this.supportsNativeLazyLoading&&this.removeLoadingAttributes(),this.setupLazyLoading()}removeLoadingAttributes(){this.img?.removeAttribute("loading")}setupLazyLoading(){if(!!this.el.classList.contains(this.options.lazyLoadClass)){if("undefined"==typeof IntersectionObserver){this.lazyLoad();return}this.eventBus?.on("before-print",this.lazyLoad),this.intersectionObserver=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&this.lazyLoad()})}),this.intersectionObserver.observe(this.el)}}destroy(){this.eventBus?.off("before-print",this.lazyLoad),this.intersectionObserver?.disconnect()}};function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}!function(t,e){t.map(function(t){var e;if("function"!=typeof t.onlyIf||!!t.onlyIf())((function(t){if(Array.isArray(t))return R(t)})(e=Array.from(document.querySelectorAll(t.selector)))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return R(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if("Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return R(t,e)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e){if("function"!=typeof t.onlyIfEl||!!t.onlyIfEl(e))new t.cls(e,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},s=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}
4))),s.forEach(function(e){var s,r,n;s=t,r=e,n=i[e],r in s?Object.defineProperty(s,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[r]=n})}return t}({selector:t.selector},t.options||{}),void 0)})})}([{selector:".js-card",cls:T},{selector:".js-image",cls:x}])}();

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.