File Manager

Path: /home/liffinac1/domains/fxinvestcapital.us/public_html/db_files/a_data/

Viewing File: 35.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{A6WY:function(t,i,o){"use strict";o.r(i),o.d(i,"LazyJqueryUI",(function(){return r})),o.d(i,"lazyJqueryUI",(function(){return n}));var e;o("P5fv");function s(t){return t in $.fn?Promise.resolve():(e||(e=new Promise((function(t){Promise.all([o.e(406),o.e("lazy-jquery-ui")]).then(function(i){o("BvgM"),t()}.bind(null,o)).catch(void 0)}))),e)}var r=function(){function t(t){this._$elem=t}return t.prototype.draggable=function(){var t=arguments,i=this._$elem;return s("draggable").then((function(){return i.draggable.apply(i,t)}))},t.prototype.resizable=function(){var t=arguments,i=this._$elem;return s("resizable").then((function(){return i.resizable.apply(i,t)}))},t.prototype.sortable=function(){var t=arguments,i=this._$elem;return s("sortable").then((function(){return i.sortable.apply(i,t)}))},t.prototype.datepicker=function(){var t=arguments,i=this._$elem;return s("datepicker").then((function(){return i.datepicker.apply(i,t)}))},t}();function n(t){return new r(t)}},nzny:function(t,i,o){},pLUm:function(t,i,o){t.exports={wrapper:"wrapper-2eb-SI2I",touch:"touch-2eb-SI2I"}},sFgq:function(t,i,o){"use strict";(function(t){var e=o("A6WY").lazyJqueryUI;o("nzny");var s=o("pLUm");function r(i,o,e){var r=this;if(this._options=$.extend({},this._defaultOptions,e||{}),this._$wrapper=i,this._$wrapper.addClass(s.wrapper),this._$content=o,this._scroll_speed=40,this._shadow_offset=10,this._header_height=this._options.headerHeight,this._scroll_margin_top=this._options.scrollMarginTop,this.scrolled=new t,this.scrolltoend=new t,this.scrolltostart=new t,this.visibilityCallbacks=[],this._touch=Modernizr.touch,this._touch)return this._$content.css("position","relative"),void this._$wrapper.addClass(s.touch).scroll(this._onScroll.bind(this));this._$wrapper.css("overflow","hidden"),this._$wrapper.on("mouseenter.sidebar-scroll",(function(){r._bottomFixed||r._dragging||(r._options.alwaysVisible||r._$scrollBar.addClass("active"),r._onScroll())})).on("mouseleave.sidebar-scroll",(function(){r._bottomFixed||r._dragging||(r._options.alwaysVisible||r._$scrollBar.removeClass("active"),r._onScroll())})).on("mousewheel.sidebar-scroll",(function(t){if(!t.isDefaultPrevented()){var i=t.deltaY*(t.deltaFactor/100);return r.scroll(i)}})),!1!==this._options.showTopShadow&&(this._$shadowTop=$('<div class="sb-inner-shadow top i-invisible">').appendTo(this._$wrapper)),!1!==this._options.showBottomShadow&&(this._$shadowBottom=$('<div class="sb-inner-shadow">').appendTo(this._$wrapper)),this._$shadowTop&&this._header_height&&this._$shadowTop.css("top",this._header_height-this._shadow_offset);var n=this._options.additionalClass?" "+this._options.additionalClass:"",h=this._options.alwaysVisible?" active-always":"";this._$scrollBarWrapper=$('<div class="sb-scrollbar-wrap">').appendTo(this._$wrapper),this._$scrollBar=$('<div class="sb-scrollbar sb-scrollbar-body'+n+h+'"></div>').appendTo(this._$scrollBarWrapper),this._onScroll()}r.prototype.isTouch=function(){return this._touch},r.prototype.getScrollBar=function(){
return this._$scrollBar},r.prototype._defaultOptions={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1},r.prototype.initDraggable=function(){if(this._dragInitialized)return this;var t=this;return e(this._$scrollBar).draggable({axis:"y",containment:this._$scrollBarWrapper,start:function(){t._dragging=!0},stop:function(){t._dragging=!1},drag:function(i,o){t.updateScroll()}}),this._dragInitialized=!0,this},r.prototype.updateScroll=function(){if(this._touch)return this;var t=Math.ceil(this._$scrollBar.position().top-this._scroll_margin_top-this._header_height),i=this.getContainerHeightWithoutHeader(),o=this._$content.outerHeight(),e=o-i-1;return i<=0||(this._scroll_target_top=e<=0?this._header_height:Math.min(-t*o/i+this._header_height,this._header_height),t+this._$scrollBar.height()+2>=i?this.scrollToEnd():(this._$content.css("top",this._scroll_target_top+"px"),this._onScroll())),this},r.prototype.getContainerHeightWithoutHeader=function(){return this._$wrapper[0].getBoundingClientRect().height-this._header_height},r.prototype.getContainerHeight=function(){return this._$wrapper[0].getBoundingClientRect().height},r.prototype.getContentHeight=function(){return this._$content[0].getBoundingClientRect().height},r.prototype.updateScrollBar=function(){if(this._touch)return this;var t=this._$content.position().top,i=this.getContentHeight(),o=this.getContainerHeight(),e=this.getContainerHeightWithoutHeader(),s=1+this._header_height,r=e-2,n=(Math.abs(t)-this._header_height)*r/i,h=o*o/i;return this.isContentShort()?(this._$scrollBar.addClass("js-hidden"),this._$wrapper.removeClass("sb-scroll-active")):(this._$scrollBar.removeClass("js-hidden").height(h).css("top",s+n),this._$wrapper.addClass("sb-scroll-active"),this.initDraggable()),this},r.prototype.scroll=function(t,i){var o=this._$content.position().top,e=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1,s=i||this._scroll_speed;return e<=0||(this._scroll_target_top=Math.max(-e+this._header_height,Math.min(this._header_height,o+t*s)),this.setContentTop(this._scroll_target_top),this._onScroll())},r.prototype.animateTo=function(t){if(this._touch)return this;var i=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1;if(i<=0)return!0;this._scroll_target_top=Math.max(-i+this._header_height,Math.min(this._header_height,-t)),this._$content.animate({top:this._scroll_target_top},500,function(){this._onScroll()}.bind(this))},r.prototype.resize=function(){if(!this._bottomFixed){var t=this._$content.outerHeight(),i=this._$wrapper.outerHeight();!this._options.vAlignBottom&&t<i?this.atStart()||this.scrollToStart():this.atEnd()?this.scrollToEnd():"number"==typeof this._stickyBottom&&this.setContentTop(Math.min(0,this._stickyBottom+this._$wrapper.outerHeight()-this._$content.outerHeight()))}},r.prototype.resizeHeader=function(t){var i=t-this._header_height;this._header_height=t,this._scroll_target_top+=i,this._$shadowTop&&this._$shadowTop.css("top",this._header_height-this._shadow_offset),
this.resize()},r.prototype.scrollTo=function(t,i){i=$.extend({position:"visible",areaHeight:t instanceof $?t.height():0},i),t instanceof $&&(t=i.offsetTop||t.position().top);var o=this._$content.position().top,e=this._$content.outerHeight(),s=this.getContainerHeightWithoutHeader();if(e-s-1<=0)return!0;var r=-1*(o-this._header_height),n=r+s,h=0;if("visible"===i.position){if(t>r&&t+i.areaHeight<n)return!1;h=t+i.areaHeight>n?n-t-i.areaHeight:r-t}else"top"===i.position&&(h=r-t);return this.scroll(h,1),this._onScroll(),!1},r.prototype.scrollToEnd=function(){var t=this._$content.position().top,i=this._$content.outerHeight(),o=this._$wrapper.outerHeight(),e=i>o?t+(o-(i+t))+1:1;return this.setContentTop(e),this._onScroll(),this},r.prototype.scrollToStart=function(){return this.setContentTop(this._header_height),this._onScroll(),this},r.prototype.currentPosition=function(){return Math.round(this._$content.position().top)},r.prototype.atStart=function(){return Math.round(this._$content.position().top)>=this._header_height},r.prototype.atEnd=function(t){"number"==typeof t&&isFinite(t)||(t=0);var i=Math.round(this._$content.position().top),o=this._$content.outerHeight(),e=this._$wrapper.outerHeight();return o-Math.abs(i)-1<=e+t},r.prototype._onScroll=function(t){this._touch||this._$content.css("bottom","auto"),this.scrolled.fire(),this._dragging&&!0!==t||this.updateScrollBar();var i=this.atStart(),o=this.atEnd();return this._$shadowTop&&this._$shadowTop.toggleClass("i-invisible",!!i),this._$shadowBottom&&this._$shadowBottom.toggleClass("i-invisible",!!o),this._onContentVisible(),!this._atStart&&i?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!i&&delete this._atStart,!this._atEnd&&o?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!o&&delete this._atEnd,this._options.vAlignBottom&&(this._stickyBottom=this._$content.outerHeight()-Math.abs(this._$content.position().top)-this._$wrapper.outerHeight()),!(!this._atStart&&!this._atEnd||("function"==typeof this._options.bubbleScrollEvent?!this._options.bubbleScrollEvent():!this._options.bubbleScrollEvent))},r.prototype.checkContentVisibility=function(){this._onContentVisible()},r.prototype.subscribeToContentVisible=function(t,i,o){this.visibilityCallbacks.push({id:t,$el:i,callback:o})},r.prototype.triggerVisibilityCallbacks=function(t){this._onContentVisible(t)},r.prototype._contentIsVisible=function(t){return t.$el.position().top>-1*this.currentPosition()},r.prototype._onContentVisible=function(t){if(this.visibilityCallbacks.length){var i=t||this._contentIsVisible.bind(this),o=[],e=this.visibilityCallbacks.filter((function(t,e){if(!$.contains(this._$content,t.$el[0]))return!1;var s=i(t);return s&&o.push(e),!s}),this);o.forEach((function(i){this.visibilityCallbacks[i].callback(!!t)}),this),delete this.visibilityCallbacks,this.visibilityCallbacks=e}},r.prototype.save=function(){return this._saved={top:this._$content.position().top,height:this._$content.outerHeight()},this},r.prototype.restore=function(){if(this._saved){
if(this._saved.top===this._$content.position().top&&this._saved.height===this._$content.outerHeight())return delete this._saved,this;this._options.vAlignBottom&&(this._saved.top-=this._$content.outerHeight()-this._saved.height,this._saved.top>this._header_height&&(this._saved.top=this._header_height)),this.setContentTop(this._saved.top),delete this._saved,this._onScroll(!0)}return this},r.prototype.fixBottom=function(){if(this._bottomFixed)return this;if(this._touch){var t=this._$content.outerHeight(),i=this._$wrapper.scrollTop();this._tempIntervalID=setInterval(function(){this._$wrapper.scrollTop(i+(this._$content.outerHeight()-t))}.bind(this),0)}else this._$content.css({top:"auto",bottom:this._$wrapper.outerHeight()-this._$content.position().top-this._$content.outerHeight()});return this._bottomFixed=!0,this},r.prototype.releaseBottom=function(){return this._bottomFixed?(this._touch?clearInterval(this._tempIntervalID):this._$content.css({top:this._$content.position().top,bottom:"auto"}),delete this._bottomFixed,this._onScroll(),this):this},r.prototype.setContentTop=function(t){return this._touch?this._options.vAlignBottom&&this._$content.outerHeight()<this._$wrapper.outerHeight()?(this._$wrapper.css("overflow-y","visible"),this._$content.css({position:"absolute",bottom:0})):(this._$content.css({position:"relative",bottom:"auto"}),this._$wrapper.css("overflow-y","auto"),this._$wrapper.scrollTop(-t)):this._$content.css("top",t),this},r.prototype.isContentShort=function(){return this.getContentHeight()<=this.getContainerHeightWithoutHeader()},r.prototype.destroy=function(){this._$scrollBarWrapper&&this._$scrollBarWrapper.remove(),this._$shadowBottom&&this._$shadowBottom.remove(),this._$shadowTop&&this._$shadowTop.remove(),this._$wrapper.attr("style","").off("mouseenter.sidebar-scroll").off("mouseleave.sidebar-scroll").off("mousewheel.sidebar-scroll"),this._$content.attr("style","")},i.SidebarCustomScroll=r}).call(this,o("aIyQ"))}}]);