PageSourceSearch

https://www.skiarlberg.at/dist/build/assets/js/content-rZvRxKWk.js

js skiarlberg.at collected 2026-10-02 10:34:53 UTC 8,494 bytes, 1 lines download raw bytes

1import{o as v,l as x,p as R,m as H,c as C,_ as U,k as W}from"../common-DhJfSRvS.js";import{a as Z,i as D}from"../wysiwyg-scroll-media-8QzM7YCD.js";import{B as L}from"../slider-CqDcLJkt.js";import{a as V,i as Y}from"../region-teaser-slider-CFTa9_VZ.js";import{i as K}from"../index-BsVgjbZc.js";import{g as X}from"../index-BoSnRhCE.js";import"../index-Cu-nyP3G.js";function J(){v(".wysiwyg table",function(r){let e=document.createElement("div");x("table-responsive-lg",e),x("table-wrapper",e);let a=r.parentElement;a&&(a.insertBefore(e,r),e.appendChild(r))})}function Q(){window.matchMedia("(max-width: 767px)").matches&&v(".js-wysiwyg-snowflake-live-info-slider",function(r){new L(r,{all:{loop:!1,slidesToScroll:1,enableAutoplay:!1,slidesToShow:1.3,draggable:!0,slideGap:"12px"}})})}function ee(){v(".js-img-gallery-slider",function(r){new L(r,{all:{loop:!1,slidesToScroll:1,enableAutoplay:!1,slidesToShow:1.75,draggable:!0,slideGap:"24px"},"(max-width: 767px)":{slidesToShow:1.2,slideGap:"12px"}})})}let $=0,P=!1;const B=1.5;function te(){v(".js-portal-live-info",function(r){const e=Array.from(document.querySelectorAll(".portal-live-info__item")),a=e.length;a!==0&&(k(0,e),z(r),window.addEventListener("scroll",()=>ne(r,a,e)),window.addEventListener("resize",()=>z(r)),re(r,e))})}const k=(r,e)=>{$!==r&&($=r,e.forEach((a,s)=>{s===r?(a.classList.add("active"),a.style.opacity="1",a.style.pointerEvents="auto"):(a.classList.remove("active"),a.style.opacity="0",a.style.pointerEvents="none")}))},z=r=>{const e=Array.from(document.querySelectorAll(".portal-live-info__item"));if(e.length===0)return;const a=e.length,s=a/B;r.style.transition.includes("height")||(r.style.transition=r.style.transition?r.style.transition+", height 0.3s ease":"height 0.3s ease"),requestAnimationFrame(()=>{r.style.setProperty("--live-info-items-original",a.toString()),r.style.setProperty("--live-info-items",s.toString())})},ne=(r,e,a)=>{P||(P=!0,requestAnimationFrame(()=>{const s=r.getBoundingClientRect(),c=s.top,d=s.height,l=window.innerHeight,u=Math.max(0,Math.min(1,-c/(d-l)*B)),g=Math.floor(u*e),m=Math.max(0,Math.min(e-1,g));m!==$&&k(m,a),P=!1}))},re=(r,e)=>{r.querySelectorAll(".portal-live-info__btn").forEach(s=>{s.addEventListener("focus",()=>{const c=s.closest(".portal-live-info__item");if(c){const d=parseInt(c.dataset.index||"0",10),l=s;k(d,e);const u=window.scrollY,g=c.getBoundingClientRect(),m=g.top+u,b=window.innerHeight,M=m-b/2+g.height/2;window.scrollTo({top:M,behavior:"auto"}),setTimeout(()=>{document.activeElement!==l&&l.focus()},0)}})})};var T,F;function oe(){if(F)return T;F=1;var r=function(o){return e(o)&&!a(o)};function e(t){return!!t&&typeof t=="object"}function a(t){var o=Object.prototype.toString.call(t);return o==="[object RegExp]"||o==="[object Date]"||d(t)}var s=typeof Symbol=="function"&&Symbol.for,c=s?Symbol.for("react.element"):60103;function d(t){return t.$$typeof===c}function l(t){return Array.isArray(t)?[]:{}}function u(t,o){return o.clone!==!1&&o.isMergeableObject(t)?w(l(t),t,o):t}function g(t,o,i){return t.concat(o).map(function(f){return u(f,i)})}function m(t,o){if(!o.customMerge)return w;var i=o.customMerge(t);return typeof i=="function"?i:w}function b(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(o){return Object.propertyIsEnumerable.call(t,o)}):[]}function M(t){return Object.keys(t).concat(b(t))}function A(t,o){try{return o in t}catch{return!1}}function O(t,o){return A(t,o)&&!(Object.hasOwnProperty.call(t,o)&&Object.propertyIsEnumerable.call(t,o))}function I(t,o,i){var f={};return i.isMergeableObject(t)&&M(t).forEach(function(n){f[n]=u(t[n],i)}),M(o).forEach(function(n){O(t,n)||(A(t,n)&&i.isMergeableObject(o[n])?f[n]=m(n,i)(t[n],o[n],i):f[n]=u(o[n],i))}),f}function w(t,o,i){i=i||{},i.arrayMerge=i.arrayMerge||g,i.isMergeableObject=i.isMergeableObject||r,i.cloneUnlessOtherwiseSpecified=u;var f=Array.isArray(o),n=Array.isArray(t),p=f===n;return p?f?i.arrayMerge(t,o,i):I(t,o,i):u(o,i)}w.all=function(o,i){if(!Array.isArray(o))throw new Error("first argument should be an array");return o.reduce(function(f,n){return w(f,n,i)},{})};var E=w;return T=E,T}oe();const ie="googleMap/initialized",N={marker:".js-google-map__marker"},ae=new WeakMap,le=(()=>{let r=!1,e=null;return()=>r?Promise.resolve():(e||(e=new Promise((a,s)=>{const c=X("googleMapAPIKey");if(!c){s(new Error("Google Maps API key is not set."));return}const d="google-maps-api";if(document.getElementById(d)){a();return}const l=document.createElement("script");
1l.id=d,l.type="text/javascript",l.async=!0,l.defer=!0,l.src=`https://maps.googleapis.com/maps/api/js?key=${c}&v=weekly&callback=initGoogleMaps`,l.onerror=()=>{console.error("Failed to load Google Maps API. Please check your API key or network connection."),s(new Error("Failed to load Google Maps API."))},window.initGoogleMaps=()=>{r=!0,a()},document.head.appendChild(l)})),e)})(),se=async(r,e)=>{const{Map:a,InfoWindow:s}=await google.maps.importLibrary("maps");let c,d=[],l=null;c=new a(r,e.mapOptions);let u=new s({});u.addListener("closeclick",()=>{l&&w(l)});const g=()=>c,m=()=>{b().forEach(n=>{n&&(n.map=null)}),d=[]},b=()=>d.map(n=>n.element),M=()=>l,A=(n,p)=>{if(n.length===1){const h=n[0].position;h&&(p.setCenter(h),e.mapOptions&&typeof e.mapOptions.zoom=="number"&&p.setZoom(e.mapOptions.zoom))}else if(n.length>1){const h=new google.maps.LatLngBounds;n.forEach(y=>h.extend(y.position)),p.fitBounds(h)}},O=(n,p)=>{u.setContent(p),u.open({anchor:n,map:c,shouldFocus:e.infoWindowOptions?.shouldFocus??!0})},I=()=>{u.close()},w=n=>{if(n.element?.content===null||n.element?.content===void 0){console.error("Marker content is null, cannot deactivate marker",n);return}I(),H("active",n.element.content);let p=C(N.marker,n.element.content);p&&(p.src=p.getAttribute("data-default-src")||""),l=null},E=n=>{if(d.forEach(h=>{w(h)}),n.element?.content===null||n.element?.content===void 0){console.error("Marker content is null, cannot activate marker",n);return}x("active",n.element.content);let p=C(N.marker,n.element.content);p&&(p.src=p.getAttribute("data-active-src")||""),l=n},t=()=>{A(b(),g())},o=async n=>{const{AdvancedMarkerElement:p,PinElement:h}=await google.maps.importLibrary("marker");n.map((y=>{let j=new google.maps.LatLng(y.lat,y.lng),S={};y.poiStyle&&console.error("Poi styles ar not set");const _=()=>{},G=new h({glyph:_()});let q={element:new p({map:c,position:j,content:S?G.element:null,gmpClickable:!0}),id:y.id,lat:y.lat,lng:y.lng,detail:y.detail??null,detailUrl:y.detailUrl??null};d.push(q)})),e.clusterOptions?.enabled&&U(()=>import("../index.esm-DuBn2-1K.js"),[]).then(function(y){const j=document.createElement("img");j.src=e.clusterOptions.icon||"",new y.MarkerClusterer({markers:b(),map:c,renderer:{render({count:S,position:_}){return new google.maps.Marker({position:_,icon:{url:`${e.clusterOptions.icon}`,scaledSize:new google.maps.Size(e.clusterOptions.width??20,e.clusterOptions.height??20)},label:{text:String(S),color:`${e.clusterOptions.label?.color??"#fff"}`,fontSize:`${e.clusterOptions.label?.fontSize??"12px"}`},zIndex:Number(google.maps.Marker.MAX_ZINDEX)+S})}}})})},i=async n=>{m(),await o(n),t()};e.pois&&await i(e.pois);let f={getMapInstance:g,setMarker:i,addMarker:o,centerMap:t,getMarkerElements:b,getActiveMarker:M,removeAllMarker:m,activateMarker:E,deactivateMarker:w,scrollToMarkers:A,showInfoWindowByMarker:O,closeCurrentInfoWindow:I};return ae.set(r,f),R(ie,r),f};async function ce(r,e){await le(),await se(r,e)}const ue={base:".js-wysiwyg-map-img-area",map:".js-google-map"};function pe(r=ue){v(r.base,function(e){const a=e.getAttribute("data-wysiwyg-map-img-area-map-id"),s=e.getAttribute("data-wysiwyg-map-img-area-lat"),c=e.getAttribute("data-wysiwyg-map-img-area-lng"),d=e.getAttribute("data-wysiwyg-map-img-area-zoom"),l=d?parseInt(d,10):null,u=C(r.map,e);if(!a||!s||!c||!u){console.error("Missing required attributes for wysiwyg map area");return}const g=parseFloat(s),m=parseFloat(c);if(isNaN(g)||isNaN(m)){console.error("Invalid coordinates for wysiwyg map area");return}ce(u,{mapOptions:{center:{lat:g,lng:m},mapId:String(window._config?.googleMapId||""),zoom:l||15},pois:[{id:"wysiwyg-map-img-area-marker",lat:g,lng:m}],clusterOptions:{enabled:!1}})})}function de(){v(".js-snippet-slider",function(r){new L(r,{all:{loop:!1,slidesToScroll:1,enableAutoplay:!1,draggable:!0}})})}let fe={debug:!1};window.app=fe||{};J();W({plugins:["video"]});Z();D();Q();V();ee();K();Y();te();pe();de();export{de as a,pe as b,te as i};

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.