1(self.webpackChunk=self.webpackChunk||[]).push([["src_js_modules_thumb-btn-positioner_js"],{423:t=>{var e={thumbBtn:null,offset:0,offsetSingle:0,offsetLoop:0,thumbBtnPosition:"topRight",buttonsCount:0,guideImgSelector:"img.wp-post-image",repeater:null,init:function(){this.thumbBtn=jQuery("."+this.getThumbOption("thumb_css_class","alg-wc-wl-thumb-btn")),this.thumbBtnPosition=this.getThumbOption("position","topLeft"),this.offset=parseInt(this.getThumbOption("offset_loop",17)),this.offsetSingle=parseInt(this.getThumbOption("offset_single",17)),this.offsetLoop=parseInt(this.getThumbOption("offset_loop",17)),this.thumbBtn.css("left","auto").css("top","auto").css("right","auto").css("bottom","auto"),this.guideImgSelector=this.getThumbOption("guide_img_selector","img.wp-post-image"),this.positionBtnsLooping(),window.onresize=function(){clearInterval(e.repeater),e.positionBtnsLooping()}},positionBtnsLooping:function(){this.repeater=setInterval((function(){e.positionBtns()}),200)},positionBtns:function(){e.thumbBtn.each((function(){var t=e.offset,s=e.offsetSingle,o=e.offsetLoop,i=e.guideImgSelector,n=!1;jQuery(this).hasClass("alg-wc-wl-thumb-btn-loop")?(t=o,n=!1):jQuery(this).hasClass("alg-wc-wl-thumb-btn-single")&&(t=s,n=!0);var u=jQuery(this).parent().find(i).eq(0);if(u.offset()&&u.parent().offset()){var h=u.height()-jQuery(this).height()-t,r=t,p=t+u.offset().left-u.parent().offset().left,a=t+u.offset().left-u.parent().offset().left;if(e.thumbBtnPosition.match(/bottom/i)&&jQuery(this).css("top",h),e.thumbBtnPosition.match(/top/i)&&jQuery(this).css("top",r),e.thumbBtnPosition.match(/right/i)&&jQuery(this).css("right",a),e.thumbBtnPosition.match(/left/i)&&jQuery(this).css("left",p),n&&!jQuery(this).hasClass("positioned-on-parent")){var f=null;switch(parseInt(e.getThumbOption("img_wrapper_guess_levels_single",2))){case 1:f=jQuery(this).parent();break;case 2:f=jQuery(this).parent().parent();break;case 3:f=jQuery(this).parent().parent().parent()}f&&f.append(jQuery(this)),jQuery(this).addClass("positioned-on-parent")}jQuery(this).show(),e.buttonsCount++,e.stopRepeater()}}))},stopRepeater:function(){e.buttonsCount==e.thumbBtn.length&&(clearInterval(e.repeater),e.buttonsCount=0)},getThumbOption:function(t,e){var s=null;return void 0!==e&&(s=e),"undefined"!=typeof alg_wc_wl_thumb&&alg_wc_wl_thumb.hasOwnProperty(t)&&!jQuery.isEmptyObject(alg_wc_wl_thumb[t])&&(s=alg_wc_wl_thumb[t]),s}},s={init:function(){jQuery((function(){e.init(),jQuery("body").trigger({type:"alg_wc_wl_thumb_btn_position",obj:e})}))}};t.exports=s}}]);
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.