PageSourceSearch

https://sollentunacentrum.se/dist/client/assets/map-modal.component-DBYIBUhx.js

js sollentunacentrum.se collected 2026-09-26 14:24:37 UTC 4,672 bytes, 1 lines download raw bytes

1function A(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e<n.length;e++)t[e]=n[e];return t}else return Array.from(n)}var S=!1;if(typeof window<"u"){var E={get passive(){S=!0}};window.addEventListener("testPassive",null,E),window.removeEventListener("testPassive",null,E)}var w=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),c=[],h=!1,T=-1,v=void 0,s=void 0,y=void 0,M=function(e){return c.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},g=function(e){var t=e||window.event;return M(t.target)||t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)},q=function(e){if(y===void 0){var t=!1,o=window.innerWidth-document.documentElement.clientWidth;if(t&&o>0){var i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);y=document.body.style.paddingRight,document.body.style.paddingRight=i+o+"px"}}v===void 0&&(v=document.body.style.overflow,document.body.style.overflow="hidden")},B=function(){y!==void 0&&(document.body.style.paddingRight=y,y=void 0),v!==void 0&&(document.body.style.overflow=v,v=void 0)},k=function(){return window.requestAnimationFrame(function(){if(s===void 0){s={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,t=e.scrollY,o=e.scrollX,i=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-o,setTimeout(function(){return window.requestAnimationFrame(function(){var u=i-window.innerHeight;u&&t>=i&&(document.body.style.top=-(t+u))})},300)}})},x=function(){if(s!==void 0){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=s.position,document.body.style.top=s.top,document.body.style.left=s.left,window.scrollTo(t,e),s=void 0}},C=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},H=function(e,t){var o=e.targetTouches[0].clientY-T;return M(e.target)?!1:t&&t.scrollTop===0&&o>0||C(t)&&o<0?g(e):(e.stopPropagation(),!0)},_=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!c.some(function(i){return i.targetElement===e})){var o={targetElement:e,options:{}};c=[].concat(A(c),[o]),w?k():q(),w&&(e.ontouchstart=function(i){i.targetTouches.length===1&&(T=i.targetTouches[0].clientY)},e.ontouchmove=function(i){i.targetTouches.length===1&&H(i,e)},h||(document.addEventListener("touchmove",g,S?{passive:!1}:void 0),h=!0))}},I=function(){w&&(c.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),h&&(document.removeEventListener("touchmove",g,S?{passive:!1}:void 0),h=!1),T=-1),w?x():B(),c=[]};const d=document.querySelector("#map-modal");if(d){const n="modal-open",e=Array.from(document.querySelectorAll(".map-modal-trigger-js")),t=d.querySelector(".modal-window__background"),o=d.querySelector(".modal-window__container"),i=d.querySelector(".modal-window__content"),u=d.querySelector(".btn--close"),f=document.head.querySelector("meta[name=theme-color]"),P=f?.content||"#fff";let p=null;const b=()=>{if(window.innerWidth<1024){o.style.width="auto",o.style.height="auto",o.style.top=null,o.style.left=null,o.style.transform=null;return}const r=Math.min(window.innerWidth/window.innerHeight,16/9),m=Math.min(window.innerWidth,document.querySelector("main").clientWidth),l=Math.min(window.innerHeight,Math.floor(m/r));o.style.width=`${m}px`,o.style.height=`${l}px`,o.style.top=`${Math.ceil(window.innerHeight/2)}px`,o.style.left=`${Math.ceil(window.innerWidth/2)}px`},a=(r=null)=>{const m=!!d.hidden;if(d.hidden=m?null:!0,m){const l=document.createElement("iframe");l.src=i.dataset.url,l.allow="accelerometer; gyroscope; magnetometer",b(),window.addEventListener("resize",b),_(d),i.appendChild(l),document.body.classList.add(n),f&&(f.content="#333534"),r&&(p=r.target)}else{const l=i.querySelector("iframe");window.removeEventListener("resize",b),I(),i.removeChild(l),document.body.classList.remove(n),f&&(f.content=P),p&&setTimeout(()=>{p.scrollIntoView({block:"center"})})}};document.addEventListener("keydown",r=>{r.key==="Escape"&&!d.hidden&&a()}),t.addEventListener("click",()=>a(null)),u&&u.addEventListener("click",()=>a(null)),e.forEach(r=>{r.parentElement.addEventListener("click",a)});const L=d.dataset.fragmentTrigger;L&&window.location.hash===`#${L}`&&a(null),window.addEventListener("message",r=>{r.origin.includes(".mvgcloud.com")&&r.data.event==="mvg_map_close_emitted"&&a(null)})}

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.