PageSourceSearch

https://www.allgaeuer-berghof.de/typo3temp/assets/compressed/aura-chat-position-min.js?1790785761

js allgaeuer-berghof.de collected 2026-10-08 04:11:09 UTC 4,431 bytes, 20 lines download raw bytes

1(function(){"use strict";var DESKTOP_QUERY="(min-width: 992px)";var VENDOR_FULLSCREEN_QUERY="(max-width: 500px)";var EDGE_OFFSET="19px";var TOP_OFFSET="20px";var BOTTOM_OFFSET="30px";var MOBILE_BUTTON_SIZE="38px";var DESKTOP_BUTTON_SIZE="60px";var MOBILE_ICON_SIZE="28px";var DESKTOP_ICON_SIZE="38px";var ROOT_Z_INDEX="12";var ICON_CACHE_BUST_VERSION="20260921-1";var VENDOR_FULLSCREEN_CLASSES=["aura-chat-panel","aura-voice-panel"];var POSITION_PROPS=["top","right","bottom","left"];function isSquareToggleButton(el){if(el.tagName!=="BUTTON"||el.getAttribute("aria-label")!=="Chat öffnen"){return!1}
2var cs=window.getComputedStyle(el);return parseFloat(cs.width)===parseFloat(cs.height)}
3var desktopMql=window.matchMedia(DESKTOP_QUERY);var vendorFullscreenMql=window.matchMedia(VENDOR_FULLSCREEN_QUERY);var trackedElements=[];function isVendorFullscreenNow(el){if(!vendorFullscreenMql.matches){return!1}
4for(var i=0;i<VENDOR_FULLSCREEN_CLASSES.length;i++){if(el.classList.contains(VENDOR_FULLSCREEN_CLASSES[i])){return!0}}
5return!1}
6function applyPosition(el){el.style.setProperty("pointer-events","auto","important");if(isVendorFullscreenNow(el)){POSITION_PROPS.forEach(function(prop){el.style.removeProperty(prop)});el.style.removeProperty("transition");el.style.removeProperty("transform");el.style.removeProperty("-webkit-transform");el.style.removeProperty("backface-visibility");el.style.removeProperty("-webkit-backface-visibility");el.style.removeProperty("will-change");return}
7var isDesktop=desktopMql.matches;if(isDesktop){el.style.removeProperty("transition")}else{el.style.setProperty("transition","none","important")}
8el.style.setProperty("transform","translateZ(0)","important");el.style.setProperty("-webkit-transform","translateZ(0)","important");el.style.setProperty("backface-visibility","hidden","important");el.style.setProperty("-webkit-backface-visibility","hidden","important");el.style.setProperty("will-change","transform","important");el.style.setProperty("right",EDGE_OFFSET,"important");el.style.setProperty("left","auto","important");el.style.setProperty("top",isDesktop?"auto":TOP_OFFSET,"important");el.style.setProperty("bottom",isDesktop?BOTTOM_OFFSET:"auto","important");if(isSquareToggleButton(el)){var size=isDesktop?DESKTOP_BUTTON_SIZE:MOBILE_BUTTON_SIZE;el.style.setProperty("width",size,"important");el.style.setProperty("height",size,"important");var icon=el.querySelector("svg");if(icon){var iconSize=isDesktop?DESKTOP_ICON_SIZE:MOBILE_ICON_SIZE;icon.style.setProperty("width",iconSize,"important");icon.style.setProperty("height",iconSize,"important")}
9var img=el.querySelector("img");if(img){el.style.setProperty("background","transparent","important");el.style.setProperty("box-shadow","none","important");el.style.setProperty("border-radius","0","important");img.style.setProperty("width","100%","important");img.style.setProperty("height","100%","important");if(img.src.indexOf("wxcb=")===-1){var sep=img.src.indexOf("?")===-1?"?":"&";img.src=img.src+sep+"wxcb="+ICON_CACHE_BUST_VERSION}}}}
10function watchElement(el){if(trackedElements.indexOf(el)!==-1){return}
11trackedElements.push(el);applyPosition(el);new MutationObserver(function(){applyPosition(el)}).observe(el,{attributes:!0,attributeFilter:["style"]})}
12function isPositionedOverlay(node,parent){return(node.nodeType===1&&node.parentElement===parent&&window.getComputedStyle(node).position==="fixed")}
13function scan(rootDiv){Array.prototype.forEach.call(rootDiv.children,function(el){if(isPositionedOverlay(el,rootDiv)){watchElement(el)}})}
14function watchShadowRoot(shadowRoot){var rootDiv=shadowRoot.getElementById("aura-chat-root");if(!rootDiv){return}
15rootDiv.style.setProperty("z-index",ROOT_Z_INDEX,"important");scan(rootDiv);new MutationObserver(function(mutations){mutations.forEach(function(mutation){mutation.addedNodes.forEach(function(node){if(isPositionedOverlay(node,rootDiv)){watchElement(node)}})})}).observe(rootDiv,{childList:!0})}
16function init(){var host=document.getElementById("aura-chat-widget");if(!host||!host.shadowRoot){return!1}
17watchShadowRoot(host.shadowRoot);return!0}
18if(!init()){var bodyObserver=new MutationObserver(function(){if(init()){bodyObserver.disconnect()}});bodyObserver.observe(document.body,{childList:!0})}
19function reapplyAll(){trackedElements.forEach(applyPosition)}
20desktopMql.addEventListener("change",reapplyAll);vendorFullscreenMql.addEventListener("change",reapplyAll)})()

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.