Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/dist/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/dist/public/js/HorizontalTimeline.min.js
!function o(n,s,a){function r(e,t){if(!s[e]){if(!n[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(l)return l(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}i=s[e]={exports:{}},n[e][0].call(i.exports,function(t){return r(n[e][1][t]||t)},i,i.exports,o,n,s,a)}return s[e].exports}for(var l="function"==typeof require&&require,t=0;t<a.length;t++)r(a[t]);return r}({1:[function(t,e,i){"use strict";jQuery(function(_){function n(t,e){this.$el=t,this.height=t.height(),this.isTop=!!e,this.contentHeight=this.$el.find(".dipi_htl_item_card-wrap").outerHeight(!0);t=this.$el.find(".et_pb_image_wrap.ribbon-ico-wrap"),e=parseInt(getComputedStyle(t[0]).marginTop),t=parseInt(getComputedStyle(t[0]).marginBottom);this.handleHeight=(this.height-(t-e)-this.contentHeight)/2,this.cardHeight=this.contentHeight+this.handleHeight}function i(t,e,i){var o=this;this.init=function(){"mixed"===o.layout?o.pivotPos=o.getTopMaxHeight():o.pivotPos=0},this.getItems=function(){return o.items},this.getTopItems=function(){return o.items.filter(function(t){return t.isTop})},this.getBottomItems=function(){return o.items.filter(function(t){return!t.isTop})},this.getTopMaxHeight=function(){return o.getTopItems().reduce(function(t,e){return t<e.cardHeight?e.cardHeight:t},0)},this.getBottomMaxHeight=function(){return o.getBottomItems().reduce(function(t,e){return t<e.cardHeight?e.cardHeight:t},0)},this.getMaxHandleHeight=function(){return o.items.reduce(function(t,e){return t<e.handleHeight?e.handleHeight:t},0)},this.getTopMaxHandleHeight=function(){return o.getTopItems().reduce(function(t,e){return t<e.handleHeight?e.handleHeight:t},0)},this.layoutItems=function(){"mixed"===o.layout?o.mixedLayout():o.singleLayout()},this.mixedLayout=function(){o.swiper.$el.find(".dipi-htl-items").css("align-items","flex-start"),o.swiper.$el.find(".dipi-htl-items").css("height",o.getTopMaxHeight()+o.getBottomMaxHeight()+"px");var t=o.swiper.$el.find(".dipi-htl-line"),e=o.swiper.$el.find(".dipi-htl-line__active");t.css("top",o.pivotPos+"px"),e.css("top",o.pivotPos+"px"),o.items.forEach(function(t,e){var i;t.isTop?(i=o.getTopMaxHeight()-t.cardHeight,t.$el.css("top",i)):(i=o.pivotPos-t.handleHeight,t.$el.css("top",i))}),o.swiper.navigation.$prevEl&&(o.swiper.navigation.$prevEl.css("top",o.pivotPos+o.swiper.navigation.$prevEl[0].offsetHeight/2+"px"),o.swiper.navigation.$nextEl.css("top",o.pivotPos+o.swiper.navigation.$nextEl[0].offsetHeight/2+"px"))},this.singleLayout=function(){o.swiper.$el.find(".dipi-htl-items").css("height","auto"),o.items.forEach(function(t,e){t.$el[0].style.removeProperty("top")});var t=o.swiper.$el.find(".dipi-htl-line"),e=o.swiper.$el.find(".dipi-htl-line__active"),i=o.getMaxHandleHeight();t.css("top",i+"px"),e.css("top",i+"px"),o.swiper.navigation.$prevEl&&(o.swiper.navigation.$prevEl.css("top",i+"px"),o.swiper.navigation.$nextEl.css("top",i+"px"))},this.swiper=t,this.items=[],"mixed"===(this.layout=i)?this.swiper.$el.find(".dipi_horizontal_timeline_item").each(function(t,e){var i="top";"top"===(i=o.swiper.$el.parent().hasClass("startpos-bottom")?"bottom":i)?o.items.push(new n(_(e),t%2==0)):o.items.push(new n(_(e),t%2!=0))}):this.swiper.$el.find(".dipi_horizontal_timeline_item").each(function(t,e){o.items.push(new n(_(e),"top"===i))}),this.init()}function r(t){var e=t.layout;return window.matchMedia("(max-width:980px)").matches&&(e=t.layout_t),e=window.matchMedia("(max-width:768px)").matches?t.layout_m:e}function x(t){return[t.layout,t.layout_t,t.layout_m].includes("mixed")}function l(t,e){t&&[e.layout,e.layout_t,e.layout_m].includes("mixed")&&new i(t,0,r(e)).layoutItems()}function p(t,e){if(t&&t.slides&&t.slides.length){var i=t.$el[0],o=t.$el.find(".dipi-htl-items")[0],n=t.navigation.prevEl,s=t.navigation.nextEl,a=o.style.transform,r=a?parseInt(a.replace("translate3d(","")):0,a=t.$el.find(".ribbon-ico-wrap"),l=t.$el.find(".ribbon-ico"),p=t.slides[0],d=t.slides[t.slides.length-1],h=p.currentStyle||window.getComputedStyle(p),c=d.currentStyle||window.getComputedStyle(d),h=parseFloat(h.marginLeft)+parseFloat(h.marginRight),c=parseFloat(c.marginLeft)+parseFloat(c.marginRight),u=p.offsetWidth+h,m=d.offsetWidth+c,h=(_(a).height(),a.offset()),d=t.$el.offset(),c=(h.top,d.top,i.offsetHeight,e.layout),f=(window.matchMedia("(max-width:980px)").matches&&(c=e.layout_t),window.matchMedia("(max-width:768px)").matches&&(c=e.layout_m),i.querySelector(".dipi-htl-line")),g=i.querySelector(".dipi-htl-line__active");switch(e.card_arrow_align){case"start":f.style.left="0px",f.style.right="0px";break;case"end":f.style.left=u+"px",f.style.right="on"===e.loop?"0px":m+"px";break;default:f.style.left=u/2+"px",f.style.right="on"===e.loop?"0px":m/2+"px"}"top"!==c||x(e)?"bottom"!==c||x(e)||(f.style.removeProperty("top"),n&&(n.style.removeProperty("top"),n.style.removeProperty("bottom"),n.style.bottom="px"),s&&(s.style.removeProperty("top"),s.style.removeProperty("bottom"))):(f.style.removeProperty("top"),n&&(n.style.removeProperty("top"),n.style.removeProperty("bottom")),s&&(s.style.removeProperty("top"),s.style.removeProperty("bottom")));var a=e.act_horizontal_pos.match(/(-?[\d.]+)([a-z%]*)/),h=parseInt(a[1]),y="px"===a[2]?h:i.offsetWidth*h/100;if(g){switch(e.card_arrow_align){case"start":g.style.left="0px",g.style.right=o.offsetWidth+r-y+"px";break;case"end":g.style.left=p.offsetWidth+"px",g.style.right=o.offsetWidth+r-y+"px";break;default:g.style.left=p.offsetWidth/2+"px",g.style.right=o.offsetWidth+r-y+"px"}"mixed"!==c&&"top"===c&&t.$el.find(".dipi-htl-items").css("align-items","flex-end")}for(var w=0;w<t.slides.length;w++){var v=0;switch(e.card_arrow_align){case"start":v=0;break;case"end":v=t.slides[w].offsetWidth-l[w].offsetWidth;break;default:v=t.slides[w].offsetWidth/2-l[w].offsetWidth/2}t.slides[w].offsetLeft+v<y-r?l[w].classList.add("active"):l[w].classList.remove("active")}}}_(".dipi_horizontal_timeline").each(function(t,e){var i=_(this),o=e.querySelector(".dipi-carousel-main").dataset,e="."+i.attr("class").split(" ").join(".")+" .dipi_htl_container",n=o.navigation,n=(window.matchMedia("(max-width:980px)").matches&&(n=o.navigation_t),"on"===(n=window.matchMedia("(max-width:768px)").matches?o.navigation_m:n)&&{nextEl:".dipi_horizontal_timeline .dipi-sbn"+o.ordernumber,prevEl:".dipi_horizontal_timeline .dipi-sbp"+o.ordernumber}),s="on"===o.dynamicbullets,s="on"===o.pagination&&{el:".dipi_horizontal_timeline .dipi-sp"+o.ordernumber,clickable:!0,dynamicBullets:s,dynamicMainBullets:1},a=(Number(parseInt(o.rotate)),o.shadow,new Swiper(e,{slidesPerView:Number(o.columnsphone),spaceBetween:Number(o.spacebetween_phone),speed:Number(o.speed),loop:"on"===o.loop,autoplay:"on"===o.autoplay&&{delay:o.autoplayspeed},navigation:n,pagination:s,centeredSlides:"on"===o.centered,slideClass:"dipi_horizontal_timeline_item",wrapperClass:"dipi-htl-items",setWrapperSize:!0,observer:!0,observeParents:!0,observeSlideChildren:!0,breakpoints:{768:{slidesPerView:Number(o.columnstablet),spaceBetween:0<Number(o.spacebetween_tablet)?Number(o.spacebetween_tablet):Number(0)},981:{slidesPerView:Number(o.columnsdesktop),spaceBetween:0<Number(o.spacebetween)?Number(o.spacebetween):Number(0)}},on:{init:function(){l(this,o),p(this,o)}}}));"on"===o.pauseonhover&&"on"===o.autoplay&&(i.find(".dipi_htl_container").on("mouseenter",function(t){a.autoplay.stop()}),i.find(".dipi_htl_container").on("mouseleave",function(t){a.autoplay.start()})),"on"!==o.pauseonhover&&"on"===o.autoplay&&i.find(".dipi_htl_container").on("mouseleave",function(t){a.autoplay.start()}),i.find(".dipi_htl_item_image_popup").magnificPopup({type:"image",removalDelay:500,fixedContentPos:!1,gallery:{enabled:!0,navigateByImgClick:!0,tCounter:"%curr% / %total%"},mainClass:"mfp-fade",zoom:{enabled:!0,duration:500,opener:function(t){return t.find("img")}},autoFocusLast:!1,image:{verticalFit:!0,titleSrc:function(t){var e="";return t.el.attr("data-title")&&(e+=t.el.attr("data-title")),t.el.attr("data-caption")&&(e+="<small class='dipi_masonry_gallery_caption'>"+t.el.attr("data-caption")+"</small>"),e}},disableOn:function(){return window.matchMedia("(max-width: 767px)").matches?i.find(".dipi-carousel-main").hasClass("show_lightbox_phone"):window.matchMedia("(max-width: 980px)").matches?i.find(".dipi-carousel-main").hasClass("show_lightbox_tablet"):i.find(".dipi-carousel-main").hasClass("show_lightbox")},callbacks:{open:function(){var t=window.innerWidth-_(window).width();jQuery("body").addClass("noscroll"),jQuery("body").css("margin-right",t+"px")},close:function(){jQuery("body").removeClass("noscroll"),jQuery("body").css("margin-right",0)}}}),a.on("sliderMove",function(){p(this,o)}),a.on("slideChange",function(){p(this,o)}),a.on("resize",function(){p(this,o)}),window.addEventListener("dipi-at-tab-changed",function(t){p(a,o),l(a,o)}),a.on("transitionStart",function(){p(this,o);var t=this.$el[0].querySelector(".dipi-htl-line__active");t&&(t.style.transitionDuration=Number(o.speed)+"ms")}),a.on("transitionEnd",function(){var t=this.$el[0].querySelector(".dipi-htl-line__active");t&&(t.style.transitionDuration="0ms")}),"top"===r(o)&&a.$el.find(".dipi-htl-items").css("align-items","flex-end"),_(window).on("resize",function(){l(a,o)})})})},{}]},{},[1]);

Hry