function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(function(){var t,e;t=window.jQuery,e=t(window),t.fn.stick_in_parent=function(i){var o,r,n,s,a,c,l,p,u,d,h,f,y;for(null==i&&(i={}),y=i.sticky_class,c=i.inner_scrolling,f=i.recalc_every,h=i.parent,u=i.offset_top,p=i.spacer,n=i.bottoming,null==u&&(u=0),null==h&&(h=void 0),null==c&&(c=!0),null==y&&(y="is_stuck"),o=t(document),null==n&&(n=!0),d=function(t){var e,i;return window.getComputedStyle?(t[0],e=window.getComputedStyle(t[0]),i=parseFloat(e.getPropertyValue("width"))+parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),"border-box"!==e.getPropertyValue("box-sizing")&&(i+=parseFloat(e.getPropertyValue("border-left-width"))+parseFloat(e.getPropertyValue("border-right-width"))+parseFloat(e.getPropertyValue("padding-left"))+parseFloat(e.getPropertyValue("padding-right"))),i):t.outerWidth(!0)},s=function(i,r,s,a,l,g,m,k){var w,_,b,v,x,C,V,j,P,F,S,A;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),x=o.height(),V=i.parent(),null!=h&&(V=V.closest(h)),!V.length)throw"failed to find stick parent";if(b=!1,w=!1,S=null!=p?p&&i.closest(p):t("<div />"),S&&S.css("position",i.css("position")),j=function(){var t,e,n;if(!k)return x=o.height(),t=parseInt(V.css("border-top-width"),10),e=parseInt(V.css("padding-top"),10),r=parseInt(V.css("padding-bottom"),10),s=V.offset().top+t+e,a=V.height(),b&&(b=!1,w=!1,null==p&&(i.insertAfter(S),S.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(y),n=!0),l=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-u,g=i.outerHeight(!0),m=i.css("float"),S&&S.css({width:d(i),height:g,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:m}),n?A():void 0},j(),g!==a)return v=void 0,C=u,F=f,A=function(){var t,d,h,_,P,A;if(!k)return h=!1,null!=F&&(F-=1)<=0&&(F=f,j(),h=!0),h||o.height()===x||(j(),h=!0),_=e.scrollTop(),null!=v&&(d=_-v),v=_,b?(n&&(P=_+g+C>a+s,w&&!P&&(w=!1,i.css({position:"fixed",bottom:"",top:C}).trigger("sticky_kit:unbottom"))),_<l&&(b=!1,C=u,null==p&&("left"!==m&&"right"!==m||i.insertAfter(S),S.detach()),t={position:"",width:"",top:""},i.css(t).removeClass(y).trigger("sticky_kit:unstick")),c&&(A=e.height(),g+u>A&&(w||(C-=d,C=Math.max(A-g,C),C=Math.min(u,C),b&&i.css({top:C+"px"}))))):_>l&&(b=!0,t={position:"fixed",top:C},t.width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(t).addClass(y),null==p&&(i.after(S),"left"!==m&&"right"!==m||S.append(i)),i.trigger("sticky_kit:stick")),b&&n&&(null==P&&(P=_+g+C>a+s),!w&&P)?(w=!0,"static"===V.css("position")&&V.css({position:"relative"}),i.css({position:"absolute",bottom:r,top:"auto"}).trigger("sticky_kit:bottom")):void 0},P=function(){return j(),A()},_=function(){if(k=!0,e.off("touchmove",A),e.off("scroll",A),e.off("resize",P),t(document.body).off("sticky_kit:recalc",P),i.off("sticky_kit:detach",_),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),V.position("position",""),b)return null==p&&("left"!==m&&"right"!==m||i.insertAfter(S),S.remove()),i.removeClass(y)},e.on("touchmove",A),e.on("scroll",A),e.on("resize",P),t(document.body).on("sticky_kit:recalc",P),i.on("sticky_kit:detach",_),setTimeout(A,0)}},a=0,l=this.length;a<l;a++)r=this[a],s(t(r));return this}}).call(this);var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();!function(t){!function(){function e(){_classCallCheck(this,e),this.top=0,this.setupValue(),this.initSticky()}_createClass(e,[{key:"setupValue",value:function(){this.top=0;var e=t("#wpadminbar");e.length>0&&(this.top+=e.height())}},{key:"initSticky",value:function(){var e=this,i=t(window).width();i<992?jQuery(".opalrealestate-MyAccount-navigation .inner,#primary [opal-ajax-map-properties] .inner,.single-style-5-wrap > div > .inner, body.opal-sidebar-sticky #secondary > .inner, body.woocommerce-checkout form.woocommerce-checkout .inner").trigger("sticky_kit:detach"):this._makeStickyKit(),t(window).resize(function(){i=t(window).width(),i<992?jQuery(".opalrealestate-MyAccount-navigation .inner,#primary [opal-ajax-map-properties] .inner,.single-style-5-wrap > div > .inner, body.opal-sidebar-sticky #secondary > .inner, body.woocommerce-checkout form.woocommerce-checkout .inner").trigger("sticky_kit:detach"):e._makeStickyKit()})}},{key:"_makeStickyKit",value:function(){t(".single-style-5-wrap .inner form.cart,.single-style-5-wrap .inner .product_title").css("width",t(".single-style-5-wrap .woocommerce-cart").width()),t("body.opal-sidebar-sticky #secondary > .inner").stick_in_parent({parent:"#content > .wrap",offset_top:this.top}),t("body.woocommerce-checkout form.woocommerce-checkout .inner").stick_in_parent({parent:"body.woocommerce-checkout form.woocommerce-checkout",offset_top:this.top}),t(".single-style-5-wrap > div > .inner").stick_in_parent({parent:".single-style-5-wrap",offset_top:this.top}),t("#primary [opal-ajax-map-properties] .inner").stick_in_parent({parent:"#primary [opal-ajax-map-search]",offset_top:this.top}),t(".opalrealestate-MyAccount-navigation .inner").stick_in_parent({parent:".opalrealestate-Dashboard-page",offset_top:this.top})}}])}();t(document).ready(function(){})}(jQuery);