1import{$ as t,P as o}from"./vendor-34b46c5c.js";import{c as i}from"../index-2c20db78.js";import{r as l}from"./ResizeHandler-443f1dd8.js";import"./noframework.waypoints-612484a0.js";var n=".entry-wrapper",d=".content-container",e=".expand-btn",p=350;function f(a){this.$target=t(a),this.$entry=this.$target.find("li"),this.$endFix=this.$target.find(".end-fix"),this.$icons=this.$target.find(".icon-step"),this.$iconSize=t(this.$icons[this.$icons.length-1]).height(),this.init=function(){o.subscribe(i.VIEWPORT_CHANGE,this.onChange.bind(this)),o.subscribe(i.VIEWPORT_RESIZE,this.onChange.bind(this)),this.$entry.each(function(){var s=this;new Waypoint({element:s,handler:function(){t(s).addClass("in-viewport")},offset:"80%"})})},this.initExpandButtons=function(){this.$target.find(e).on("click",function(){var s=t(this).parent("li");t(this).closest("li").find(n).css("maxHeight",t(this).closest("li").find(n)[0].scrollHeight+"px"),t(this).closest("li").find(n).toggleClass(i.class.open),t(s).toggleClass(i.class.open),t(this).toggleClass(i.class.hidden)})},this.initEntryWrapper=function(){var s=this.$target.find(n);s.each(function(){var r=t(this).find(d),h=t(r).height(),c=t(this).parent("li");t(c).removeClass(i.class.open),t(this).removeClass(i.class.open),h+30<p||r.length===0?t(this).closest("li").find(e).addClass(i.class.hidden):t(this).closest("li").find(e).removeClass(i.class.hidden)})},this.destroyEntryWrapper=function(){this.$target.find(n).each(function(){t(this).removeClass(i.class.open),t(this).closest("li").find(e).addClass(i.class.hidden)})},this.onChange=function(){l.getDeviceState()===i.DEVICE_SMALL?this.destroyEntryWrapper():this.initEntryWrapper()},this.init(),this.initExpandButtons(),this.onChange()}function m(a){return new f(a)}export{m as Factory};
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.