PageSourceSearch

https://www.zollverein.de/app/themes/zollverein/public/assets/Slideshow-7YesQunj.js

js zollverein.de collected 2026-10-02 04:17:42 UTC 3,853 bytes, 4 lines download raw bytes

1import{g as a,n as r,d as l,i as o}from"./main-Dz6k7oHo.js";import{a as c}from"./index-D-NRgDi4.js";import{a as n}from"./index-Bqo1pFwb.js";/* empty css               *//* empty css                  */var d=c();const h=a(d),u={name:"Slideshow",props:{refId:{type:String,default:"slideshow-"+Math.random().toString(36).substr(2,10)},baseUrl:{type:String,default:"/"}},data(){return{events:null,callbackBucket:[]}},mounted(){n({method:"get",url:globalConfigs.events.api_base+"events/highlights",headers:{Accept:"application/json","X-ZV-TOKEN":globalConfigs.events.key}}).then(({data:i})=>{const t=JSON.parse(JSON.stringify(i.data));t.map(e=>{e.id=`clone_${e.id}`}),t.push(...i.data),this.events=t,this.$nextTick(()=>{this.initSlideshow(),this.callbackBucket.length>0&&this.callbackBucket.map(e=>e())})}).catch(()=>{console.warn("Error while requesting highlight events.")})},beforeDestory(){this.$flickity&&this.$flickity.destroy(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{initSlideshow(){this.$flickity=new h(this.$refs.wrapper,{cellSelector:".slide",cellAlign:"left",groupCells:!1,wrapAround:!0,pageDots:!1,accessibility:!1,prevNextButtons:!1}),this.$flickity.on("scroll",this.setVisibleSlides),this.$flickity.on("settle",this.setVisibleSlides),this.$flickity.on("staticClick",(i,t,e)=>{e&&(e.classList.contains("is-visible")||this.$flickity.next())}),this.resizeObserver=new o(i=>{if(i[0]){const t=this.$el.getBoundingClientRect();let e=document.documentElement.clientWidth-(t.width+t.x),s=document.documentElement.clientWidth-t.x;this.$el.style.width=`${s}px`,this.$el.style.marginRight=`-${e}px`,this.$flickity.resize(),this.setVisibleSlides()}}),this.resizeObserver.observe(document.documentElement)},addCallback(i){this.callbackBucket.push(i)},next(){this.$flickity.next()},previous(){this.$flickity.previous()},getId(){return this.refId},getName(){return"Slideshow"},setVisibleSlides(){const i=this.$flickity.viewport.getBoundingClientRect(),t=this.$flickity.x*-1+i.width;this.$flickity.slides.map(e=>{e.x+e.outerWidth<t?e.cells[0].element.classList.add("is-visible"):e.cells[0].element.classList.remove("is-visible")})},getEventUrl(i){return this.baseUrl+i},formatDate(i,t){return l.format(i,t)}}};var p=function(){var t=this,e=t._self._c;return e("div",{staticClass:"slideshow slideshow-container pl-0"},[t.events?e("div",{ref:"wrapper",staticClass:"slideshow-wrapper"},t._l(t.events,function(s){return e("div",{key:s.id,staticClass:"slide"},[e("a",{staticClass:"slide-card bg-black text-light",attrs:{href:t.getEventUrl(s.attributes.slug)}},[s.attributes.image?e("div",{staticClass:"slide-card__bg"},[e("img",{staticClass:"lazy lazyload",attrs:{"data-src":`${s.attributes.image.url}?auto=compress&crop=faces&fit=crop&w=240&h=416`,"data-srcset":`
2              ${s.attributes.image.url}?auto=compress&crop=faces&fit=crop&w=240&h=416&dpt=2 480w, ${s.attributes.image.url}?auto=compress&crop=faces&fit=crop&w=240&h=416&dpt=1 240w,
3              ${s.attributes.image.url}?auto=compress&crop=faces&fit=crop&w=160&h=272&dpt=2 320w, ${s.attributes.image.url}?auto=compress&crop=faces&fit=crop&w=160&h=272&dpt=1 160w
4            `,"data-sizes":"(max-width: 767px) 160px, 240px",alt:""}})]):t._e(),e("div",{staticClass:"slide-card__right"},[e("h3",[t._v(t._s(s.attributes.title))])]),s.attributes.highlight_text?e("div",{staticClass:"slide-card__bottom"},[t._v(" "+t._s(s.attributes.highlight_text)+" ")]):s.attributes.end_date?e("div",{staticClass:"slide-card__bottom"},[t._v(" "+t._s(t.formatDate(s.attributes.start_date,"DD.MM."))+" –"),e("br"),e("span",[t._v(t._s(t.formatDate(s.attributes.end_date,"DD.MM.YYYY")))])]):e("div",{staticClass:"slide-card__bottom"},[t._v(" "+t._s(t.formatDate(s.attributes.start_date,"DD.MM.YYYY"))+" ")])])])}),0):t._e()])},f=[],b=r(u,p,f,!1,null,null);const k=b.exports;export{k as default};

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.