PageSourceSearch

https://www.arp-hansen.com/Content/AHHG/modern/GalleryFull.e0dc680bbd0001d8337a.js

js arp-hansen.com collected 2026-10-07 19:10:26 UTC 15,736 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="19d91f9a-4524-4701-88aa-a11cef5e290c",e._sentryDebugIdIdentifier="sentry-dbid-19d91f9a-4524-4701-88aa-a11cef5e290c")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"a2d5290bd6679f4257e70fe152336d0d3c09f7af"}}catch(e){}}(),(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[2236,2395],{1909:(e,t,l)=>{l.d(t,{CY:()=>a,TL:()=>s,XQ:()=>r,iI:()=>n});const a="audio, button, canvas, details, iframe, input, select, summary, textarea, video, [accesskey], [contenteditable], [href], [tabindex]",r=(e,t)=>{t&&"Tab"===t.key&&(t.ctrlKey||t.altKey||t.metaKey||(s(e)||n(e),t.shiftKey||document.activeElement!==o(e)||(t.preventDefault(),i(e).focus()),t.shiftKey&&document.activeElement===i(e)&&(t.preventDefault(),o(e).focus())))},n=e=>{const t=i(e);t&&t.focus()},s=e=>{let t=document.getElementById(e);if(t){var l=t.querySelectorAll(a);if(l){for(let e=0;e<l.length;e++){const t=l[e],a=getComputedStyle(t);if(!(t.disabled||t.readOnly||a.display.includes("none")||a.visibility.includes("hidden"))&&document.activeElement===t)return!0}return!1}}},i=e=>{let t=document.getElementById(e);if(t){var l=t.querySelectorAll(a);if(l)for(let e=0;e<l.length;e++){const t=l[e],a=getComputedStyle(t);if(!(t.disabled||t.readOnly||a.display.includes("none")||a.visibility.includes("hidden")))return t}}},o=e=>{let t=document.getElementById(e);if(t){var l=t.querySelectorAll(a);if(l)for(let e=l.length-1;e>0;e--){const t=l[e],a=getComputedStyle(t);if(!(t.disabled||t.readOnly||a.display.includes("none")||a.visibility.includes("hidden")))return t}}}},2900:(e,t,l)=>{l.d(t,{A:()=>a});const a=class{constructor(e,t=0,l={},a=!0){this.xStart=null,this.yStart=null,this.element="string"==typeof e?document.querySelector(e):e,this.element.addEventListener("touchstart",function(e){this.handleTouchStart(e)}.bind(this),!1),this.element.addEventListener("touchmove",function(e){this.handleTouchMove(e)}.bind(this),!1),this.element.addEventListener("touchend",function(e){this.handleTouchEnd(e)}.bind(this),!1),this.threshold=t,this.handlers={onUp:()=>{},onRight:()=>{},onDown:()=>{},onLeft:()=>{},...l},this.isSingle=a}handleTouchStart(e){this.xStart=e.touches[0].clientX,this.yStart=e.touches[0].clientY}handleTouchMove(e){if(!this.xStart||!this.yStart)return;const t=this.xStart-e.touches[0].clientX,l=this.yStart-e.touches[0].clientY,a=Math.abs(t),r=Math.abs(l);(a>this.threshold||r>this.threshold)&&(a>r?t>0?this.handlers.onRight(t):this.handlers.onLeft(t):l>0?this.handlers.onUp(l):this.handlers.onDown(l),this.isSingle?(this.xStart=null,this.yStart=null):(this.xStart=e.touches[0].clientX,this.yStart=e.touches[0].clientY))}handleTouchEnd(e){this.xStart=null,this.yStart=null}}},2250:(e,t,l)=>{l.r(t),l.d(t,{default:()=>b});var a=l(1425),r=l(2900),n=l(7063),s=l(1909);const i=["aria-label","aria-hidden"],o=["aria-label","aria-hidden"],u=["onClick"],c=["data-srcset"],v=["data-src"],d=["aria-label"],h=["aria-label"],f=["onClick"],y=["data-srcset"],w=["data-src"],p=["aria-label","aria-hidden"],g=["aria-label"],m={class:"Gallery-counter"},k={class:"u-hiddenVisually"},x=["aria-label"],b={__name:"GalleryFull",props:{isBookingGallery:{type:Boolean,default:!1}},emits:["update:currentItem","toggleFullscreen"],setup(e,{emit:t}){const l=(0,a.WQ)("isFullscreen"),b=(0,a.WQ)("currentItem"),L=(0,a.WQ)("toggleFullscreen"),S=t,E=(e,t)=>{const l=`Accessibility.${e}`,a=n.A.getLabel(l);return a===l?t:a},C=(0,a.EW)((()=>E("NextImage","Next gallery image"))),A=(0,a.EW)((()=>E("PreviousImage","Previous gallery image"))),B=(0,a.EW)((()=>E("CloseFullScreenGallery","Close full screen gallery"))),R=(0,a.EW)((()=>E("ShowingImage","Showing image"))),G=e,T=(0,a.KR)(!1),M=(0,a.KR)([]),_=(0,a.KR)(!1),K=(0,a.KR)(0),q=(0,a.KR)(""),D=(0,a.KR)(0),I=(0,a.KR)(""),W=(0,a.KR)(null),X=(0,a.KR)(null),$=(0,a.KR)(null),F=(0,a.KR)(null),z=(0,a.KR)(null),P=(0,a.KR)(null),Q=(0,a.KR)([]),H=(0,a.KR)([]),N=()=>{X.value&&(G.isBookingGallery?M.value=Array.from(X.value.children||[]).map((e=>{const t=e.querySelector("picture"),l=e.querySelector("img");return{preview:l?.dataset.preview?.split(" ")[0]||l?.dataset.src||l?.getAttribute("src"),fullPreview:l?.dataset.preview,sources:Array.from(t?.querySelectorAll("source")||[]).map((e=>({media:e.getAttribute("media"),srcset:e.dataset.srcset||e.getAttribute("srcset")}))),caption:e.querySelector("figcaption")?.innerHTML}})).filter((e=>void 0!==e.preview)):M.value=Array.from(X.value.children||[]).map((e=>{const t=e.querySelector("picture"),l=e.querySelector("img");return{preview:l?.dataset.src||l?.getAttribute("src"),sources:Array.from(t?.querySelectorAll("source")||[]).map((e=>({media:e.getAttribute("media"),srcset:e.dataset.srcset||e.getAttribute("srcset")}))),caption:e.querySelector("figcaption")?.innerHTML}})).filter((e=>void 0!==e.preview)),(0,a.dY)((()=>{F.value&&P.value&&(Q.value=Array.from(F.value.getElementsByTagName("img")),H.value=Array.from(P.value.getElementsByTagName("img")),l.value&&Y()),Z(b.value),le()})))},Y=()=>{F.value&&P.value&&[...F.value.getElementsByTagName("picture"),...P.value.getElementsByTagName("picture")].forEac
1h((e=>{e.querySelectorAll("source").forEach((e=>{e.dataset.srcset&&!e.srcset&&(e.srcset=e.dataset.srcset)}));const t=e.querySelector("img");t&&t.dataset.src&&!t.src&&(t.src=t.dataset.src)}))},O=()=>{const e=(b.value+M.value.length-1)%M.value.length;Z(e)},j=()=>{const e=(b.value+M.value.length+1)%M.value.length;Z(e)},U=e=>{K.value+=e,D.value+=e,ae(),le()},V=()=>{U(160)},J=()=>{U(-160)},Z=async e=>{if(_.value||!X.value)return;const t=Array.from(X.value?.children||[]);if(0===t.length)return void console.warn("No gallery items found");const a=t[e=Math.max(0,Math.min(e,t.length-1))];if(a){_.value=!0;try{t.forEach(((t,l)=>{t.classList.toggle("active",l===e)})),b.value=e,S("update:currentItem",e);const r=a.querySelector("picture");if(r&&(await te(r),l.value)){const l=(e+1)%t.length,a=t[l]?.querySelector("picture");a&&te(a,!1)}ee(e)}catch(e){console.error("Error showing gallery item:",e)}finally{_.value=!1}}else console.warn("Item not found at index:",e)},ee=e=>{$.value&&F.value&&(K.value=Math.ceil(($.value.offsetHeight-F.value.offsetHeight)/Math.max(1,M.value.length-1)*e)),z.value&&P.value&&(D.value=Math.ceil((z.value.offsetWidth-P.value.offsetWidth)/Math.max(1,M.value.length-1)*e)),$.value&&F.value&&z.value&&P.value&&(ae(),le())},te=async(e,t=!0)=>{const l=Array.from(e.querySelectorAll("source")),a=e.querySelector("img"),r=[...l.map((e=>!!e.dataset.srcset&&(e.srcset=e.dataset.srcset,!0)))];t&&a?.dataset.src?r.push(new Promise((e=>{a.onload=e,a.src=a.dataset.src}))):a?.dataset.src&&(a.src=a.dataset.src),t&&await Promise.all(r)},le=()=>{F.value&&$.value&&P.value&&z.value&&(q.value=[K.value<0?"overflow-before":"",F.value?.offsetHeight+K.value>$.value?.offsetHeight?"overflow-after":""].filter(Boolean).join(" "),I.value=[D.value<0?"overflow-before":"",P.value?.offsetWidth+D.value>z.value?.offsetWidth?"overflow-after":""].filter(Boolean).join(" "))},ae=()=>{F.value&&$.value&&P.value&&z.value&&(K.value=Math.min(0,Math.max(K.value,$.value.offsetHeight-F.value.offsetHeight)),D.value=Math.min(0,Math.max(D.value,z.value.offsetWidth-P.value.offsetWidth)))},re=e=>{l.value&&("ArrowLeft"===e.key?(e.preventDefault(),O()):"ArrowRight"===e.key&&(e.preventDefault(),j()))},ne=e=>{(0,s.XQ)("galleryFullscreen",e)};return(0,a.wB)(l,(async e=>{e&&(await(0,a.dY)(),N(),F.value&&P.value&&Y(),Array.from(X.value?.children||[]).forEach((e=>{const t=e.querySelector("img");t&&t.classList.remove("is-loaded")})),X.value?.children&&await Z(b.value))})),(0,a.sV)((()=>{(0,a.dY)((()=>{setTimeout((()=>{if(N(),X.value){const e=X.value.children;T.value=e.length>1,e[b.value]?.classList.add("active")}X.value&&Array.from(X.value.children||[]).forEach(((e,t)=>{e.classList.toggle("active",t===b.value)})),window.addEventListener("resize",le),window.addEventListener("keydown",re),window.addEventListener("keydown",ne),(0,s.iI)("galleryFullscreen"),X.value&&new MutationObserver((()=>{N()})).observe(X.value,{childList:!0,subtree:!0}),X.value&&new r.A(X.value,50,{onLeft:O,onRight:j}),P.value&&new r.A(P.value,10,{onLeft:e=>U(-e),onRight:e=>U(-e)},!1)}),100)}))})),(0,a.xo)((()=>{window.removeEventListener("resize",le),window.removeEventListener("keydown",re),window.removeEventListener("keydown",ne)})),(e,t)=>(0,a.bo)(((0,a.uX)(),(0,a.CE)("div",{class:"Gallery-fullscreen",ref_key:"fullscreen",ref:W,id:"galleryFullscreen"},[(0,a.Lk)("div",{class:"Gallery-wrapper",ref_key:"gallery",ref:X},[(0,a.RG)(e.$slots,"default"),T.value&&(0,a.R1)(l)?((0,a.uX)(),(0,a.CE)("button",{key:0,class:"Gallery-prev Button Button--iconAlt",onClick:t[0]||(t[0]=(0,a.D$)((e=>O()),["prevent"])),"aria-label":A.value,"aria-hidden":!T.value},t[7]||(t[7]=[(0,a.Lk)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/2000/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40","enable-background":"new 0 0 40 40","xml:space":"preserve"},[(0,a.Lk)("path",{d:"M25,33.9L23.5,35c-0.6-0.8-1.1-1.6-1.7-2.3c-2.9-4.1-5.8-8.2-8.7-12.3c-0.2-0.2-0.2-0.5,0-0.7c3.4-4.8,6.8-9.6,10.2-14.4\r\n                  c0.1-0.1,0.1-0.2,0.2-0.3L25,6c-0.6,0.9-1.2,1.7-1.8,2.5c-2.6,3.7-5.2,7.4-7.8,11.2c-0.2,0.3-0.1,0.4,0,0.7\r\n                  c3.1,4.4,6.3,8.9,9.4,13.3C24.9,33.8,24.9,33.8,25,33.9z"})],-1)]),8,i)):(0,a.Q3)("",!0),T.value&&(0,a.R1)(l)?((0,a.uX)(),(0,a.CE)("button",{key:1,class:"Gallery-next Button Button--iconAlt",onClick:t[1]||(t[1]=(0,a.D$)((e=>j()),["prevent"])),"aria-label":C.value,"aria-hidden":!T.value},t[8]||(t[8]=[(0,a.Lk)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/2000/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40","enable-background":"new 0 0 40 40","xml:space":"preserve"},[(0,a.Lk)("path",{d:"M15,6.1L16.5,5c0.6,0.8,1.1,1.6,1.7,2.3c2.9,4.1,5.8,8.2,8.7,12.3c0.2,0.2,0.2,0.5,0,0.7c-3.4,4.8-6.8,9.6-10.2,14.4\r\n                  c-0.1,0.1-0.1,0.2-0.2,0.3L15,34c0.6-0.9,1.2-1.7,1.8-2.5c2.6-3.7,5.2-7.4,7.8-11.2c0.2-0.3,0.1-0.4,0-0.7\r\n                  c-3.1-4.4-6.3-8.9-9.4-13.3C15.1,6.2,15.1,6.2,15,6.1z"})],-1)]),8,o)):(0,a.Q3)("",!0),(0,a.Lk)("div",{class:(0,a.C4)(["Gallery-loader Spinner",{"is-active":_.value}])},t[9]||(t[9]=[(0,a.Lk)("span",null,null,-1)]),2)],512),(0,a.Lk)("div",{class:(0,a.C4)(["Gallery-preview",q.value])},[(0,a.Lk)("div",{class:"Gallery-preview-wrapper",ref_key:"vWrapper",ref:$},[(0,a.Lk)("div",{class:"Gallery-preview-list",ref_key:"vList",ref:F,style:(0,a.Tr)({transform:`translate3d(0, ${K.value}px, 0)`})},[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(M.value,((e,t)=>
1((0,a.uX)(),(0,a.CE)("picture",{class:(0,a.C4)(["Gallery-preview-item",{active:t===(0,a.R1)(b)}]),key:t,onClick:(0,a.D$)((e=>Z(t)),["prevent"])},[e.fullPreview&&G.isBookingGallery?((0,a.uX)(),(0,a.CE)("source",{key:0,"data-srcset":e.fullPreview},null,8,c)):(0,a.Q3)("",!0),(0,a.Lk)("img",{"data-src":e.preview},null,8,v)],10,u)))),128))],4)],512),(0,a.Lk)("button",{class:"Gallery-up Button Button--iconAlt .no-focus",onClick:t[2]||(t[2]=(0,a.D$)((e=>V()),["prevent"])),"aria-label":A.value},t[10]||(t[10]=[(0,a.Lk)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/2000/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40","enable-background":"new 0 0 40 40","xml:space":"preserve"},[(0,a.Lk)("path",{d:"M6.1,25L5,23.5c0.8-0.6,1.6-1.1,2.3-1.7c4.1-2.9,8.2-5.8,12.3-8.7c0.2-0.2,0.5-0.2,0.7,0c4.8,3.4,9.6,6.8,14.4,10.2\r\n              c0.1,0.1,0.2,0.1,0.3,0.2L34,25c-0.9-0.6-1.7-1.2-2.5-1.8c-3.7-2.6-7.4-5.2-11.2-7.8c-0.3-0.2-0.4-0.1-0.7,0\r\n              c-4.4,3.1-8.9,6.3-13.3,9.4C6.2,24.9,6.2,24.9,6.1,25z"})],-1)]),8,d),(0,a.Lk)("button",{class:"Gallery-down Button Button--iconAlt .no-focus",onClick:t[3]||(t[3]=(0,a.D$)((e=>J()),["prevent"])),"aria-label":C.value},t[11]||(t[11]=[(0,a.Lk)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/2000/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40","enable-background":"new 0 0 40 40","xml:space":"preserve"},[(0,a.Lk)("g",{transform:"rotate(180 20 20)"},[(0,a.Lk)("path",{d:"M6.1,25L5,23.5c0.8-0.6,1.6-1.1,2.3-1.7c4.1-2.9,8.2-5.8,12.3-8.7c0.2-0.2,0.5-0.2,0.7,0c4.8,3.4,9.6,6.8,14.4,10.2\r\n                    c0.1,0.1,0.2,0.1,0.3,0.2L34,25c-0.9-0.6-1.7-1.2-2.5-1.8c-3.7-2.6-7.4-5.2-11.2-7.8c-0.3-0.2-0.4-0.1-0.7,0\r\n                    c-4.4,3.1-8.9,6.3-13.3,9.4C6.2,24.9,6.2,24.9,6.1,25z"})])],-1)]),8,h)],2),(0,a.Lk)("div",{class:(0,a.C4)(["Gallery-preview Gallery-preview--horizontal .no-focus",I.value])},[(0,a.Lk)("div",{class:"Gallery-preview-wrapper",ref_key:"hWrapper",ref:z},[(0,a.Lk)("div",{class:"Gallery-preview-list",ref_key:"hList",ref:P,style:(0,a.Tr)({transform:`translate3d(${D.value}px, 0, 0)`})},[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(M.value,((e,t)=>((0,a.uX)(),(0,a.CE)("picture",{class:(0,a.C4)(["Gallery-preview-item",{active:t===(0,a.R1)(b)}]),key:t,onClick:(0,a.D$)((e=>Z(t)),["prevent"])},[e.fullPreview&&G.isBookingGallery?((0,a.uX)(),(0,a.CE)("source",{key:0,"data-srcset":e.fullPreview},null,8,y)):(0,a.Q3)("",!0),(0,a.Lk)("img",{"data-src":e.preview},null,8,w)],10,f)))),128))],4)],512),(0,a.Lk)("button",{class:"Gallery-left Button Button--iconAlt .no-focus",onClick:t[4]||(t[4]=(0,a.D$)((e=>V()),["prevent"])),"aria-label":A.value,"aria-hidden":!T.value},t[12]||(t[12]=[(0,a.Lk)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/2000/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40","enable-background":"new 0 0 40 40","xml:space":"preserve"},[(0,a.Lk)("path",{d:"M25,33.9L23.5,35c-0.6-0.8-1.1-1.6-1.7-2.3c-2.9-4.1-5.8-8.2-8.7-12.3c-0.2-0.2-0.2-0.5,0-0.7c3.4-4.8,6.8-9.6,10.2-14.4\r\n                  c0.1-0.1,0.1-0.2,0.2-0.3L25,6c-0.6,0.9-1.2,1.7-1.8,2.5c-2.6,3.7-5.2,7.4-7.8,11.2c-0.2,0.3-0.1,0.4,0,0.7\r\n                  c3.1,4.4,6.3,8.9,9.4,13.3C24.9,33.8,24.9,33.8,25,33.9z"})],-1)]),8,p),(0,a.Lk)("button",{class:"Gallery-right Button Button--iconAlt .no-focus",onClick:t[5]||(t[5]=(0,a.D$)((e=>J()),["prevent"])),"aria-label":C.value},t[13]||(t[13]=[(0,a.Lk)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40","enable-background":"new 0 0 40 40","xml:space":"preserve"},[(0,a.Lk)("path",{d:"M15,6.1L16.5,5c0.6,0.8,1.1,1.6,1.7,2.3c2.9,4.1,5.8,8.2,8.7,12.3c0.2,0.2,0.2,0.5,0,0.7c-3.4,4.8-6.8,9.6-10.2,14.4\r\n                  c-0.1,0.1-0.1,0.2-0.2,0.3L15,34c0.6-0.9,1.2-1.7,1.8-2.5c2.6-3.7,5.2-7.4,7.8-11.2c0.2-0.3,0.1-0.4,0-0.7\r\n                  c-3.1-4.4-6.3-8.9-9.4-13.3C15.1,6.2,15.1,6.2,15,6.1z"})],-1)]),8,g)],2),(0,a.Lk)("div",m,[(0,a.Lk)("div",k,(0,a.v_)(R.value),1),(0,a.eW)(" "+(0,a.v_)((0,a.R1)(b)+1)+"/"+(0,a.v_)(M.value.length),1)]),(0,a.Lk)("button",{class:"Gallery-close Button Button--iconAlt .no-focus",onClick:t[6]||(t[6]=(0,a.D$)((e=>(0,a.R1)(L)()),["prevent"])),"aria-label":B.value},t[14]||(t[14]=[(0,a.Lk)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/2000/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40","enable-background":"new 0 0 40 40","xml:space":"preserve"},[(0,a.Lk)("polygon",{points:"30,13.4 26.6,10 20,16.7 13.4,10 10,13.4 
116.6,20 10,26.7 13.4,30 20,23.4 26.6,30 30,26.7 23.4,20 "})],-1)]),8,x)],512)),[[a.aG,(0,a.R1)(l)]])}}}}]);
2//# sourceMappingURL=GalleryFull.e0dc680bbd0001d8337a.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.