1import{$ as n,P as r}from"./vendor-34b46c5c.js";import{c as e}from"../index-2c20db78.js";var l=".component-page-footer",g=86,a=75;function s(o){this.$target=n(o),this.$checkbox=this.$target.find("input[type='checkbox']"),this.$shareBtn=this.$target.find(".social-share-list a"),this.$footer=n(l);var t=this;r.subscribe(e.WINDOW_CLICK,t.closeContent.bind(this)),r.subscribe(e.VIEWPORT_SCROLL,t.onScroll.bind(this))}s.prototype.init=function(){var o=this;this.$target.on("click",function(t){t.stopPropagation()}),this.$checkbox.on("change",function(t){o.$checkbox.each(function(c,i){t.currentTarget!==i&&n(i).prop("checked")===!0&&n(i).prop("checked",!1)})}),this.$shareBtn.on("click",function(){o.closeContent()})};s.prototype.onScroll=function(){var o=document.documentElement,t=window.pageYOffset,c=window.innerHeight||o.clientHeight,i=this.$footer[0].getBoundingClientRect().top,h=this.$footer[0].getBoundingClientRect().y,p=Math.round((h-a)/c*100);if(p<g){var f=i-this.$target.height()-a;this.$target.css("bottom","auto"),this.$target.css("top",f+"px")}else this.$target.css("top","auto"),this.$target.css("bottom","calc(10% + 55px)");t>c?this.show():this.hide()};s.prototype.show=function(){this.$target.removeClass(e.class.vishidden),this.$target.addClass(e.class.show)};s.prototype.hide=function(){this.$target.addClass(e.class.vishidden),this.$target.removeClass(e.class.show)};s.prototype.closeContent=function(){this.$checkbox.prop("checked",!1)};function $(o){const t=new s(o);return t.init(),t}export{$ 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.