PageSourceSearch

https://www.info.diva-portal.org/sitevision/system-resource/696ac4…carousel-autoheight-0ea1fcbbd5bc99294047.js

js diva-portal.org collected 2026-09-24 07:24:03 UTC 1,358 bytes, 2 lines download raw bytes

1"use strict";(this.webpackChunkenvision=this.webpackChunkenvision||[]).push([[172],{4966(n,t,e){e.d(t,{default:()=>o});const i={active:!0,breakpoints:{},heightEvent:"select"};function o(n={}){let t,e,s=!1,c=!1,r=[],a=[],l=!0;function u(){return!s&&(!c&&t.active)}function f(){const n=function(){const{slidesBySnap:n}=e.internalEngine().scrollSnapList;return l?n[e.selectedSnap()]:e.slidesInView()}();return n?n.map(n=>r[n]).reduce((n,t)=>Math.max(n,t),0):null}function h(){null!==f()&&(e.rootNode().style.height=`${f()}px`)}function d(n,t){const i=t.detail;for(const n of i){if(!u())return;const t=n.target;if(t===e.containerNode())continue;const i=e.slideNodes().indexOf(t);if(i<0)continue;const o=r[i],s=t.offsetHeight;if(Math.abs(s-o)>=.5)return e.reInit(),!1}}return{name:"autoHeight",options:n,init:function(f,p){e=f;const{mergeOptions:g,optionsAtMedia:v}=p,E=g(i,o.globalOptions),b=g(E,n);c=!1,t=v(b),s=e.internalEngine().isSsr;const{options:{axis:k},slideRects:m}=e.internalEngine();u()&&"y"!==k&&(l="select"===t.heightEvent,a=l?["select","slidefocus"]:["slidesinview"],r=m.map(n=>n.height),e.on("resize",d),a.forEach(n=>e.on(n,h)),h())},destroy:function(){if(!u())return;e.off("resize",d),a.forEach(n=>e.off(n,h)),e.rootNode().style.height="",c=!0}}}o.globalOptions=void 0}}]);
2//# sourceMappingURL=env-carousel-autoheight-0ea1fcbbd5bc99294047.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.