1function slideToggle(element,duration){return 0===element.clientHeight?_s(element,duration,!0):_s(element,duration)}function slideUp(element,duration){return _s(element,duration)}function slideDown(element,duration){return _s(element,duration,!0)}function _s(el,duration,isDown){return new Promise((resolve,reject)=>{void 0===duration&&(duration=400),void 0===isDown&&(isDown=!1),el.style.overflow="hidden",isDown&&(el.style.display="block");var elStyles=window.getComputedStyle(el),elHeight=parseFloat(elStyles.getPropertyValue("height")),elPaddingTop=parseFloat(elStyles.getPropertyValue("padding-top")),elPaddingBottom=parseFloat(elStyles.getPropertyValue("padding-bottom")),elMarginTop=parseFloat(elStyles.getPropertyValue("margin-top")),elMarginBottom=parseFloat(elStyles.getPropertyValue("margin-bottom")),stepHeight=elHeight/duration,stepPaddingTop=elPaddingTop/duration,stepPaddingBottom=elPaddingBottom/duration,stepMarginTop=elMarginTop/duration,stepMarginBottom=elMarginBottom/duration,start=null;window.requestAnimationFrame(function step(timestamp){null===start&&(start=timestamp);var timestamp=Math.min(timestamp-start,duration),stepHeightElapsed=stepHeight*timestamp,stepPaddingTopElapsed=stepPaddingTop*timestamp,stepPaddingBottomElapsed=stepPaddingBottom*timestamp,stepMarginTopElapsed=stepMarginTop*timestamp,stepMarginBottomElapsed=stepMarginBottom*timestamp;if(isDown?(el.style.height=stepHeightElapsed+"px",el.style.paddingTop=stepPaddingTopElapsed+"px",el.style.paddingBottom=stepPaddingBottomElapsed+"px",el.style.marginTop=stepMarginTopElapsed+"px",el.style.marginBottom=stepMarginBottomElapsed+"px"):(el.style.height=elHeight-stepHeightElapsed+"px",el.style.paddingTop=elPaddingTop-stepPaddingTopElapsed+"px",el.style.paddingBottom=elPaddingBottom-stepPaddingBottomElapsed+"px",el.style.marginTop=elMarginTop-stepMarginTopElapsed+"px",el.style.marginBottom=elMarginBottom-stepMarginBottomElapsed+"px"),timestamp<duration)return window.requestAnimationFrame(step);el.style.height="",el.style.paddingTop="",el.style.paddingBottom="",el.style.marginTop="",el.style.marginBottom="",el.style.overflow="",isDown||(el.style.display="none"),resolve()})})}export{slideToggle,slideUp,slideDown}; 2//# sourceMappingURL=/resources/compiled/js/med24/modules/slide-actions.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.