PageSourceSearch

https://westsidenannies.com/wp-content/plugins/supreme-modules-pro…/modules/ImageCarousel/frontend.min.js

js westsidenannies.com collected 2026-10-04 10:36:53 UTC 17,020 bytes, 1 lines download raw bytes

1!function(){"use strict";var e=".dsm_image_carousel_container",t=".dsm_image_carousel",i=["bounce","flash","pulse","rubberBand","shake","swing","tada","wobble","jello","heartBeat","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flipInX","flipInY","lightSpeedIn","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","slideInUp","slideInDown","slideInLeft","slideInRight","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","jackInTheBox","rollIn"].concat(["bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","flipOutX","flipOutY","lightSpeedOut","rollOut","slideOutDown","slideOutLeft","slideOutRight","slideOutUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp"]),n=new WeakMap;function o(e){return n.has(e)||n.set(e,{}),n.get(e)}function a(e,t){var i=null==e?"":String(e).trim();return""===i?t+"ms":/ms$/i.test(i)||/^-?\d+(\.\d+)?s$/i.test(i)?i:/^-?\d+(\.\d+)?$/.test(i)?i+"ms":t+"ms"}function r(e){var t=null==e?"":String(e).trim();if(""===t)return 0;if(/ms$/i.test(t))return parseFloat(t)||0;if(/^-?\d+(\.\d+)?s$/i.test(t)&&!/ms$/i.test(t))return 1e3*(parseFloat(t)||0);var i=parseFloat(t);return isNaN(i)?0:i}function s(e){if(e){e.classList.remove("animated");for(var t=0;t<i.length;t++)e.classList.remove(i[t]);e.style.animationDuration="",e.style.animationDelay=""}}function l(e,t,i){var n=a(u(e,t),"1000"),o=a(u(e,i),"0");return Math.ceil(r(o)+r(n)+50)}function d(e){if("slideshow"!==u(e,"type"))return 0;var t=0,i=!0===u(e,"slideshow-show-slide-title"),n=!0===u(e,"slideshow-show-slide-description"),o=u(e,"slideshow-title-animation-out");!i||null!=o&&""!==o||(o="fadeOutDown"),i&&o&&"none"!==o&&(t=Math.max(t,l(e,"slideshow-title-animation-out-duration","slideshow-title-animation-out-delay")));var a=u(e,"slideshow-description-animation-out");!n||null!=a&&""!==a||(a="fadeOutDown"),n&&a&&"none"!==a&&(t=Math.max(t,l(e,"slideshow-description-animation-out-duration","slideshow-description-animation-out-delay")));var r=u(e,"slideshow-wrapper-animation-out");return r&&"none"!==r&&(i||n)&&(t=Math.max(t,l(e,"slideshow-wrapper-animation-out-duration","slideshow-wrapper-animation-out-delay"))),t}function u(e,t){var i=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});if(e.dataset&&void 0!==e.dataset[i])return function(e){if("true"===e)return!0;if("false"===e)return!1;if(""===e||null==e)return e;var t=Number(e);return isNaN(t)||""===String(e).trim()?e:t}(e.dataset[i])}function c(e,t){var i=e.parentElement;return i?Array.prototype.filter.call(i.children,function(i){return i!==e&&i.matches(t)}):[]}function p(){return window.matchMedia("(min-width: 981px)").matches?"desktop":window.matchMedia("(min-width: 768px)").matches?"tablet":"phone"}function m(e,t){if(t){var i=p(),n=e.querySelector(".swiper-wrapper"),a=c(e,".dsm_image_gallery_thumbs")[0],r=a?a.querySelector(".swiper-wrapper"):null,s=o(e);!s.dsmIcDesktopMainHtml&&n&&(s.dsmIcDesktopMainHtml=n.innerHTML,r&&(s.dsmIcDesktopThumbsHtml=r.innerHTML));var l=s.dsmIcDesktopMainHtml,d=s.dsmIcDesktopThumbsHtml||"",m=u(e,"type");"tablet"===i&&t.tablet&&t.tablet.main?(l=t.tablet.main,"slideshow"===m&&t.tablet.thumbs&&(d=t.tablet.thumbs)):"phone"===i&&(t.phone&&t.phone.main?(l=t.phone.main,"slideshow"===m&&t.phone.thumbs&&(d=t.phone.thumbs)):t.tablet&&t.tablet.main&&(l=t.tablet.main,"slideshow"===m&&t.tablet.thumbs&&(d=t.tablet.thumbs))),n&&(n.innerHTML=l),r&&d&&(r.innerHTML=d)}}function w(e){return e?1===e.nodeType?e:e[0]&&1===e[0].nodeType?e[0]:null:null}function h(e){Array.prototype.forEach.call(e,function(e){var t,i=e.getAttribute("data-type"),n=u(e,"lightbox-title"),o=u(e,"lightbox-caption");t=!0===u(e,"lightbox-gallery")?{enabled:!0,navigateByImgClick:!1,preload:[0,1],tCounter:""}:{enabled:!1};var a,r,s={titleSrc:function(e){var t=w(e.el);if(!t)return"";var a="slideshow"!==i?t.querySelector("img"):t.querySelector(".dsm_image_carousel_slideshow_bg"),r="",s="";if(!0===o&&a){var l=a.getAttribute("data-dsm-image-description")||"";s=""!==l?"<small>"+l.replace(/[^]/g,function(e){return"&#"+e.charCodeAt(0)+";"})+"</small>":""}if(!0===n&&a){var d=a.getAttribute("title");r=void 0===d||""===d?"":d.replace(/[^]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}return r+s}};!0===u(e,"show-lightbox")&&(a=e,r={type:"image",delegate:"a.dsm_image_carousel_lightbox",removalDelay:500,gallery:t,image:s,mainClass:"mfp-fade",zoom:{enabled:!0,duration:500,opener:function(e){var t=w(e);if(!t)return null;var n="slideshow"!==i?t.querySelector("img"):t.querySelector(".dsm_image_carousel_slideshow_bg");return n&&void 0!==window.jQuery?window.jQuery(n):n}},callbacks:{open:function(){this.currItem&&this.currItem.el&&this.currItem.el[0]&&this.currItem.el[0].offsetParent&&this.currItem.el[0].offsetParent.getAttribute("data-swiper-slide-index")}},preload:[0,1],allowHTMLInTemplate:!0},void 0!==window.jQuery&&window.jQuery.fn&&window.jQuery.fn.magnificPopup&&window.jQuery(a).magnificPopup(r),!0===u(e,"lightbox-gallery")&&e.addEventListener("click",function(t){var i=t.target.closest(".dsm_image_carousel_item.swiper-slide-duplicate a.dsm_image_carousel_lightbox");if(i){t.preventDefault();var n=i.getAttribute("href");if(n&&void 0!==window.jQuery&&window.jQuery.fn.magnificPopup){var o=e.querySelectorAll(".dsm_image_carousel_item:not(.swiper-slide-duplicate) a.dsm_image_carousel_lightbox");Array.prototype.forEach.call(o,function(t,i){t.getAttribute("href")===n&&window.jQuery(e).magnificPopup("open",i)})}}}))})}function f(e,i){i=i||{};var n=o(e);n.dsmIcTitleOutTimerId&&(window.clearTimeout(n.dsmIcTitleOutTimerId),n.dsmIcTitleOutTimerId=null),n.dsmIcTitleOutBusy=!1;var r=n.dsmIcPayload;r||(r=function(e){var t=function(e,t){for(var i=e.nextElementSibling;i;){if(i.matches&&i.matches(t))return i;i=i.nextElementSibling}return null}(e,".dsm-ic-responsive-gallery");if(!t)return null;try{return JSON.parse(t.textContent||"")}catch(e){return null}}(e),r&&(n.dsmIcPayload=r)),i.skipApply||r&&m(e,r),n.dsmIcCurrentBp=p();var w,h="true"===e.getAttribute("data-lazyload"),f=e.querySelector(".swiper-wrapper"),g=f?f.children.length:0,y=c(e,".dsm_image_gallery_thumbs")[0],b=c(e,".swiper-button-prev")[0],v=c(e,".swiper-button-next")[0],I=!0===u(e,"infinite-scrolling")?0:parseInt(String(u(e,"autoplay-speed")||"0"),10);y&&(w=new window.Swiper(y,{init:!0,loop:!0,freeMode:!1,watchSlidesVisibility:!0,watchSlidesProgress:!0,resizeObserver:!0,observer:!0,observeParents:!0,observeSlideChildren:!0,lazyPreloadPrevNext:h?2:0,breakpoints:{981:{slidesPerView:parseInt(String(u(e,"slideshow-to-show")||"0"),10),spaceBetween:parseInt(String(u(e,"space-between")||"0"),10)},768:{slidesPerView:parseInt(String(u(e,"slideshow-to-show-tablet")||"0"),10),spaceBetween:parseInt(String(u(e,"space-between-tablet")||"0"),10)},480:{slidesPerView:u(e,"slideshow-to-show-phone")?parseInt(String(u(e,"slideshow-to-show-phone")),10):parseInt(String(u(e,"slideshow-to-show-tablet")),10),spaceBetween:parseInt(String(u(e,"space-between-phone")||"0"),10)},320:{slidesPerView:u(e,"slideshow-to-show-phone")?parseInt(String(u(e,"slideshow-to-show-phone")),10):parseInt(String(u(e,"slideshow-to-show-tablet")),10),spaceBetween:parseInt(String(u(e,"space-between-phone")||"0"),10)}}}));var _=u(e,"type"),S=u(e,"effect"),O=u(e,"slideshow-effect"),T="slideshow"===_?d(e):0,D="carousel"===_&&c(e,".swiper-pagination")[0]||null,L={observer:!0,observeParents:!0,observeSlideChildren:!0,crossFade:!0,direction:u(e,"slider-orientation"),effect:"carousel"===_?S:O,coverflowEffect:{slideShadows:u(e,"slider-effect-shadows"),rotate:u(e,"slider-effect-coverflow-rotate"),depth:u(e,"slider-effect-coverflow-depth")},flipEffect:{rotate:30,slideShadows:u(e,"slider-effect-shadows")},cubeEffect:{slideShadows:u(e,"slider-effect-shadows"),shadow:u(e,"slider-effect-shadows"),shadowOffset:20,shadowScale:.94},centeredSlides:u(e,"centered-slides"),speed:parseInt(String(u(e,"speed")||"0"),10),loop:u(e,"loop"),mousewheel:u(e,"mousewheel"),pagination:!!D&&{el:D,type:"bullets",clickable:!0},navigation:{nextEl:v||void 0,prevEl:b||void 0},autoplay:{enabled:!1,delay:!0===u(e,"infinite-scrolling")?0:I+T,disableOnInteraction:!1},grabCursor:!1!==u(e,"touch-move")&&u(e,"grab"),lazyPreloadPrevNext:h?2:0,allowTouchMove:u(e,"touch-move"),a11y:{enabled:!1,slideRole:"group"},breakpoints:{981:{slidesPerView:"cube"===S||"flip"===S||"slideshow"===_?1:parseInt(String(u(e,"slide-to-show")||"0"),10),slidesPerGroup:parseInt(String(u(e,"slide-to-scroll")||"0"),10),spaceBetween:parseInt(String(u(e,"space-between")||"0"),10),grid:{rows:parseInt(String(u(e,"slide-row")||"0"),10),fill:"row"}},768:{slidesPerView:"cube"===S||"flip"===S||"slideshow"===_?1:2,slidesPerGroup:parseInt(String(u(e,"slide-to-scroll-tablet")||"0"),10),spaceBetween:""===u(e,"space-between-tablet")||void 0===u(e,"space-between-tablet")?Number(u(e,"space-between")):Number(u(e,"space-between-tablet")),grid:{rows:parseInt(String(u(e,"slide-row-tablet")||"0"),10),fill:"row"}},480:{slidesPerView:"cube"===S||"flip"===S||"slideshow"===_?1:parseInt(String(u(e,"slide-to-show-phone")||"0"),10),slidesPerGroup:parseInt(String(u(e,"slide-to-scroll-phone")||"0"),10),spaceBetween:""===u(e,"space-between-phone")||void 0===u(e,"space-between-phone")?Number(u(e,"space-between")):Number(u(e,"space-between-phone")),grid:{rows:parseInt(String(u(e,"slide-row-phone")||"0"),10),fill:"row"}},320:{slidesPerView:"cube"===S||"flip"===S||"slideshow"===_?1:parseInt(String(u(e,"slide-to-show-phone")||"0"),10),slidesPerGroup:parseInt(String(u(e,"slide-to-scroll-phone")||"0"),10),spaceBetween:""===u(e,"space-between-phone")||void 0===u(e,"space-between-phone")?Number(u(e,"space-between")):Number(u(e,"space-between-phone")),grid:{rows:parseInt(String(u(e,"slide-row-phone")||"0"),10),fill:"row"}}}};w&&(L.thumbs={swiper:w});var E=new window.Swiper(e,L);if("slideshow"===_&&d(e)>0){var x=E.slideTo.bind(E);E.slideTo=function(t,i,o,r,d){var c=this;if(d)return x(t,i,o,r,d);var p=i;if(void 0===p&&(p=c.params.speed),r&&0===Number(p)&&!1===o)return x(t,i,o,r,d);if(!n.dsmIcTitleOutBusy){var m=c.slides[t];
1if((m?parseInt(m.getAttribute("data-swiper-slide-index")||String(t),10):t)===c.realIndex)return x(t,i,o,r,d);var w=c.slides[c.activeIndex],h=w?w.querySelector(".dsm_image_carousel_slideshow_content"):null,f=w?w.querySelector(".dsm_image_carousel_slide_title"):null,g=w?w.querySelector(".dsm_image_carousel_slide_description"):null,y=function(e,t){if(!e)return 0;var i=!0===u(t,"slideshow-show-slide-title"),n=!0===u(t,"slideshow-show-slide-description"),o=e.querySelector(".dsm_image_carousel_slideshow_content"),a=e.querySelector(".dsm_image_carousel_slide_title"),r=e.querySelector(".dsm_image_carousel_slide_description"),s=0,d=u(t,"slideshow-title-animation-out");!i||null!=d&&""!==d||(d="fadeOutDown"),i&&a&&d&&"none"!==d&&(s=Math.max(s,l(t,"slideshow-title-animation-out-duration","slideshow-title-animation-out-delay")));var c=u(t,"slideshow-description-animation-out");!n||null!=c&&""!==c||(c="fadeOutDown"),n&&r&&c&&"none"!==c&&(s=Math.max(s,l(t,"slideshow-description-animation-out-duration","slideshow-description-animation-out-delay")));var p=u(t,"slideshow-wrapper-animation-out");return o&&p&&"none"!==p&&(i||n)&&(s=Math.max(s,l(t,"slideshow-wrapper-animation-out-duration","slideshow-wrapper-animation-out-delay"))),s}(w,e);if(y<=0)return x(t,i,o,r,d);var b=!0===u(e,"slideshow-show-slide-title"),v=!0===u(e,"slideshow-show-slide-description"),I=u(e,"slideshow-title-animation-out");!b||null!=I&&""!==I||(I="fadeOutDown");var _=u(e,"slideshow-description-animation-out");!v||null!=_&&""!==_||(_="fadeOutDown");var S=u(e,"slideshow-wrapper-animation-out");n.dsmIcTitleOutBusy=!0;var O=h&&S&&"none"!==S&&(b||v),T=b&&f&&I&&"none"!==I,D=v&&g&&_&&"none"!==_;if(O&&s(h),T&&s(f),D&&s(g),O){var L=a(u(e,"slideshow-wrapper-animation-out-duration"),"1000"),E=a(u(e,"slideshow-wrapper-animation-out-delay"),"0");h.offsetWidth,h.style.animationDuration=String(L),h.style.animationDelay=String(E),h.classList.add("animated",S)}if(T){var A=a(u(e,"slideshow-title-animation-out-duration"),"1000"),B=a(u(e,"slideshow-title-animation-out-delay"),"0");f.offsetWidth,f.style.animationDuration=String(A),f.style.animationDelay=String(B),f.classList.add("animated",I)}if(D){var P=a(u(e,"slideshow-description-animation-out-duration"),"1000"),q=a(u(e,"slideshow-description-animation-out-delay"),"0");g.offsetWidth,g.style.animationDuration=String(P),g.style.animationDelay=String(q),g.classList.add("animated",_)}n.dsmIcTitleOutTimerId&&window.clearTimeout(n.dsmIcTitleOutTimerId),n.dsmIcTitleOutTimerId=window.setTimeout(function(){n.dsmIcTitleOutTimerId=null,n.dsmIcTitleOutBusy=!1,x(t,i,o,r,d)},y)}}}function A(e,i){if("slideshow"===u(e,"type")){var n=!0===u(e,"slideshow-show-slide-title"),o=!0===u(e,"slideshow-show-slide-description"),r=e.closest(t);if(r||(r=e.parentElement),r){var l=r.querySelectorAll(".dsm_image_carousel_slideshow_content"),d=r.querySelectorAll(".dsm_image_carousel_slide_title"),c=r.querySelectorAll(".dsm_image_carousel_slide_description");Array.prototype.forEach.call(l,function(e){s(e)}),Array.prototype.forEach.call(d,function(e){s(e)}),Array.prototype.forEach.call(c,function(e){s(e)});var p=i.slides[i.activeIndex];if(p){var m=p.querySelector(".dsm_image_carousel_slideshow_content"),w=p.querySelector(".dsm_image_carousel_slide_title"),h=p.querySelector(".dsm_image_carousel_slide_description"),f=u(e,"slideshow-wrapper-animation-in");if(m&&f&&"none"!==f&&(n||o)){var g=a(u(e,"slideshow-wrapper-animation-in-duration"),"1000"),y=a(u(e,"slideshow-wrapper-animation-in-delay"),"0");m.offsetWidth,m.style.animationDuration=String(g),m.style.animationDelay=String(y),m.classList.add("animated",f)}if(n&&w){var b=u(e,"slideshow-title-animation");if(null!=b&&""!==b||(b="fadeInUp"),"none"!==b){var v=u(e,"slideshow-title-animation-duration"),I=u(e,"slideshow-title-animation-delay"),_=a(v,"1000"),S=a(I,"0");w.offsetWidth,w.style.animationDuration=String(_),w.style.animationDelay=String(S),w.classList.add("animated",b)}}if(o&&h){var O=u(e,"slideshow-description-animation");if(null!=O&&""!==O||(O="fadeInUp"),"none"!==O){var T=a(u(e,"slideshow-description-animation-duration"),"1000"),D=a(u(e,"slideshow-description-animation-delay"),"0");h.offsetWidth,h.style.animationDuration=String(T),h.style.animationDelay=String(D),h.classList.add("animated",O)}}}}}}if(E.on("slideChangeTransitionEnd",function(){A(e,E)}),A(e,E),g<6&&!0===u(e,"infinite-scrolling")&&f){var B;for(B=0;B<6-g;B++){var P=f.children[B%g];if(P){var q=P.cloneNode(!0);q.classList.add("swiper-slide-clone"),f.appendChild(q)}}E.update()}if(n.dsmIcMainSwiper=E,n.dsmIcThumbSwiper=w||null,h){var M=e.closest(".dsm_image_carousel");M||(M=e.parentElement),M&&function(e){if(e&&"undefined"!=typeof IntersectionObserver){var t=e.querySelectorAll("[data-dsm-lazy-bg]:not([data-dsm-bg-loaded])");if(t.length){var i=new IntersectionObserver(function(e){e.forEach(function(e){if(e.isIntersecting){var t=e.target,n=t.getAttribute("data-dsm-lazy-bg");
1n&&(t.style.backgroundImage='url("'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'")',t.setAttribute("data-dsm-bg-loaded","1")),i.unobserve(t)}})},{rootMargin:"200px 0px",threshold:.01});Array.prototype.forEach.call(t,function(e){i.observe(e)})}}}(M)}if(!0===u(e,"pause-on-hover")&&(n._pauseEnter&&(e.removeEventListener("mouseenter",n._pauseEnter),e.removeEventListener("mouseleave",n._pauseLeave)),n._pauseEnter=function(){E.autoplay.stop()},n._pauseLeave=function(){E.autoplay.start()},e.addEventListener("mouseenter",n._pauseEnter),e.addEventListener("mouseleave",n._pauseLeave)),e.closest(".et_pb_tabs")){var k=document.querySelectorAll(".et_pb_tabs a");Array.prototype.forEach.call(k,function(e){e.addEventListener("click",function(){E.slideTo(E.realIndex,0)})})}!0===u(e,"autoplay")&&(void 0===window.Waypoint?E.autoplay.start():new window.Waypoint({element:e,handler:function(){E.autoplay.start(),this.destroy()},offset:u(e,"autoplay-viewport")}))}function g(){if(document.querySelector(t)){var i,n,a,r=document.querySelectorAll(e);if(r.length)h(r),Array.prototype.forEach.call(r,function(e){f(e)}),window.addEventListener("resize",(i=function(){var t=document.querySelectorAll(e);Array.prototype.forEach.call(t,function(e){var t=o(e),i=t.dsmIcPayload;if(i){var n=p();if(n!==t.dsmIcCurrentBp){var a=t.dsmIcThumbSwiper,r=t.dsmIcMainSwiper;t.dsmIcTitleOutTimerId&&(window.clearTimeout(t.dsmIcTitleOutTimerId),t.dsmIcTitleOutTimerId=null),t.dsmIcTitleOutBusy=!1,a&&"function"==typeof a.destroy&&a.destroy(!0,!0),r&&"function"==typeof r.destroy&&r.destroy(!0,!0),m(e,i),t.dsmIcCurrentBp=n,f(e,{skipApply:!0})}}})},n=150,function(){clearTimeout(a),a=setTimeout(i,n)}))}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",g):g()}();

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.