PageSourceSearch

https://www.grabrooms.com/wp-content/plugins/smart-slider-3/Public…/Assets/dist/ss-simple.min.js?ver=2a442a15

js grabrooms.com collected 2026-09-24 12:19:10 UTC 13,955 bytes, 1 lines download raw bytes

1!function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s,h=t.document,n=(h.documentElement,t.setTimeout),a=t.clearTimeout,o=i._N2,r=(t.requestAnimationFrame,h.createElement.bind(h),Object.assign),c=function(t,i){return t.dispatchEvent(i)},u=function(t,i){return c(t,new Event(i,{bubbles:!1,cancelable:!1}))},l=function(t,i,s){t.addEventListener(i,s,{once:!0})};navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1||i.requestIdleCallback,i.cancelIdleCallback;s=function(){h.body},"complete"===h.readyState||"interactive"===h.readyState?s():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==h.addEventListener?Document.prototype.addEventListener.call(h,"DOMContentLoaded",s):h.addEventListener("DOMContentLoaded",s),o.d("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],(function(){function t(t,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,(i=r({delay:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i)).delay/=1e3,i.duration<300&&(i.type="no"),o.SmartSliderMainAnimationAbstract.prototype.constructor.call(this,t,i),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVertical;break;case"vertical-reversed":t.backgrounds.hasFixed?this.animation=this._mainAnimationFade:this.animation=this._mainAnimationVerticalReversed;break;case"horizontal-reversed":this.animation=this._mainAnimationHorizontalReversed;break;default:this.animation=this._mainAnimationHorizontal}}return t.prototype=Object.create(o.SmartSliderMainAnimationAbstract.prototype),t.prototype.constructor=t,t.prototype.changeTo=function(t,i,s,h){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(t,i),o.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},t.prototype.setActiveSlide=function(t){for(var i=0;i<this.slider.slides.length;i++)this.slider.slides[i]!==t&&this.hideSlide(this.slider.slides[i])},t.prototype.hideSlide=function(t){o.MW.R(t.SMWs,{x:-1e5*n2const.rtl.modifier})},t.prototype.showSlide=function(t){o.MW.R(t.SMWs,{x:0,y:0})},t.prototype.cleanSlideIndex=function(t){this.hideSlide(this.slider.slides[t])},t.prototype.revertTo=function(t,i){o.MW.R(this.slider.slides[i].SMWs,{zIndex:""}),this.hideSlide(this.slider.slides[i]),o.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},t.prototype._initAnimation=function(t,i,s){this.animation(t,i,s)},t.prototype.onBackwardChangeToComplete=function(t,i,s){this.reverseSlideIndex=null,this.onChangeToComplete(t,i,s)},t.prototype.onChangeToComplete=function(t,i,s){null!==this.reverseSlideIndex&&(u(this.slider.slides[this.reverseSlideIndex].element,"mainAnimationStartInCancel"),this.reverseSlideIndex=null),this.hideSlide(t),o.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.onReverseChangeToComplete=function(t,i,s){this.hideSlide(t),o.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},t.prototype._mainAnimationNo=function(t,i){this.showSlide(i),t.unsetActive(),i.setActive();var s=this.timeline.totalDuration(),h=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0===s&&(h+=.1);var n=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&n.push(t.SMWs[1]),this.timeline.set(n,{opacity:0},h);var a=[i.SMWs[0]];!this._currentBackgroundAnimation&&i.SMWs[1]&&a.push(i.SMWs[1]),this.timeline.set(a,{opacity:1},s),l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];o.MW.R(t.SMWs,{opacity:1}),o.MW.R(i.SMWs,{opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationFade=function(t,i){o.MW.R(t.SMWs,{zIndex:23}),this.showSlide(i),t.unsetActive(),i.setActive();var s=this.adjustMainAnimation();
1if(0!==this.parameters.shiftedBackgroundAnimation){var h=!1,n=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?h=!0:n=!0:h=!0,this._currentBackgroundAnimation&&h){var a=s.outDuration-s.extraDelay;a>0&&this.timeline.shiftChildren(a),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else n&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}var r=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&r.push(t.SMWs[1]),this.timeline.fromTo(r,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=o.MW.k(i.element);this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),!this._currentBackgroundAnimation&&i.background&&(o.MW.k(i.background.element).opacity=1),l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex];o.MW.R(t.SMWs,{zIndex:"",opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationCrossFade=function(t,i){o.MW.R(t.SMWs,{zIndex:23}),this.showSlide(i),t.unsetActive(),i.setActive();var s=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var h=!1,n=!1;if("auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?h=!0:n=!0:h=!0,this._currentBackgroundAnimation&&h){var a=s.outDuration-s.extraDelay;a>0&&this.timeline.shiftChildren(a),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else n&&(s.extraDelay>0&&this.timeline.shiftChildren(s.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}var r=[t.SMWs[0]];!this._currentBackgroundAnimation&&t.SMWs[1]&&r.push(t.SMWs[1]),this.timeline.fromTo(r,s.outDuration,{opacity:1},{opacity:0,ease:this.getEase()},s.outDelay);var c=[i.SMWs[0]];!this._currentBackgroundAnimation&&i.SMWs[1]&&c.push(i.SMWs[1]),this.timeline.fromTo(c,s.inDuration,{opacity:0},{opacity:1,ease:this.getEase()},s.inDelay),l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];o.MW.R(t.SMWs,{zIndex:"",opacity:1}),o.MW.R(i.SMWs,{opacity:1})}.bind(this)),this.slider.updateInsideSlides([t,i])},t.prototype._mainAnimationHorizontal=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",s)},t.prototype._mainAnimationVertical=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",s)},t.prototype._mainAnimationHorizontalReversed=function(t,i,s){this.__mainAnimationDirection(t,i,"horizontal",!s)},t.prototype._mainAnimationVerticalReversed=function(t,i,s){this.showSlide(i),this.__mainAnimationDirection(t,i,"vertical",!s)},t.prototype.__mainAnimationDirection=function(t,i,s,h){var n=t.SMWs,a=i.SMWs,r=[t,i],c="",u=0;"horizontal"===s?(c="x",u=Math.floor(this.slider.responsive.resizeContext.slideOuterWidth),n2const.rtl.isRtl&&(h=!h)):"vertical"===s&&(c="y",u=Math.floor(this.slider.responsive.resizeContext.slideOuterHeight)),h&&(u*=-1);var f={},v={snap:"x,y",ease:this.getEase()},m={snap:"x,y",ease:this.getEase()};f[c]=u,m[c]=-u,o.MW.R(n,{zIndex:23});var p={zIndex:23};p[c]=u,o.MW.R(a,p),t.unsetActive(),i.setActive();var d,y=this.adjustMainAnimation();if(v[c]=0,this.timeline.fromTo(a,y.inDuration,f,v,y.inDelay),0!=this.parameters.shiftedBackgroundAnimation){var S=!1,x=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?S=!0:x=!0:S=!0,this._currentBackgroundAnimation&&S){var b=y.outDuration-y.extraDelay;b>0&&this.timeline.shiftChildren(b),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else x&&(y.extraDelay>0&&this.timeline.shiftChildren(y.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(this.timeline.to(n,y.outDuration,m,y.outDelay),this.isTouch&&this.isReverseAllowed)if(h?this.slider.blockCarousel&&this.slider.isChangeCarousel("next")||(d=t.getNext()):this.slider.blockCarousel&&this.slider.isChangeCarousel("previous")||(d=t.getPrevious()),d&&d!==i){this.reverseSlideIndex=d.index,this.enableReverseMode(),r.push(d),"vertical"===s&&this.showSlide(d);var D=d.SMWs,z={};z[c]=u,o.MW.R(D,z);var A={},I={snap:"x,y",ease:this.getEase()},w={},C={snap:"x,y",ease:this.getEase()};I[c]=0,A[c]=-u,C[c]=u,w[c]=0,d.G("mainAnimationStartIn",{mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:d.index,isSystem:!1}),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete.bind(this),[t,d,!1]),this.reverseTimeline.fromTo(D,y.inDuration,A,I,y.inDelay),this.reverseTimeline.fromTo(n,y.inDuration,w,C,y.inDelay)}else this.reverseSlideIndex=null;l(this.sliderElement,"mainAnimationComplete",function(e){var t=this.slider.slides[e.detail.previousSlideIndex],i=this.slider.slides[e.detail.currentSlideIndex];o.MW.R(t.SMWs,{zIndex:""}),o.MW.R(i.SMWs,{zIndex:""})}.bind(this)),this.slider.updateInsideSlides(r)},t.prototype.getExtraDelay=function(){return 0},t.prototype.adjustMainAnimation=function(){var t=this.parameters.duration,i=this.parameters.delay,s=this.timeline.totalDuration(),h=this.getExtraDelay();if(s>0){var n=t+i;if(!(n>(s-=.05)))return{inDuration:t,outDuration:t,inDelay:s-t,outDelay:h,extraDelay:h};
1t=t*s/n,(i=i*s/n)<h&&(t-=h-i,i=h)}else i+=h;return{inDuration:t,outDuration:t,inDelay:i,outDelay:i,extraDelay:h}},t.prototype.hasBackgroundAnimation=function(){return!1},t})),o.d("SmartSliderResponsiveSimple",["SmartSliderResponsive"],(function(){function t(){this.round=1,o.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.H=this.sliderElement.classList.contains("n2-ss-full-page--constrain-ratio"),this.mainAnimation=this.slider.mainAnimation}return t.prototype=Object.create(o.SmartSliderResponsive.prototype),t.prototype.constructor=t,t.prototype.init=function(){o.SmartSliderResponsive.prototype.init.call(this),this._cacheEl={slider:this.sliderElement.querySelector(".n2-ss-slider-wrapper-inside")||this.sliderElement,"n2-ss-slider-2":this.sliderElement.querySelector(".n2-ss-slider-2"),"n2-ss-slider-3":this.sliderElement.querySelector(".n2-ss-slider-3")},this._cacheEl["n2-ss-slider-3"].addEventListener("scroll",(function(e){e.currentTarget.scrollTop=0,e.currentTarget.scrollLeft=0}),{capture:!0})},t.prototype.calculateResponsiveValues=function(){var t=this.slider.visibleRealSlides[0].element,i=t.getBoundingClientRect();this.resizeContext.slideSelfWidth=i.width,this.resizeContext.slideSelfHeight=i.height;var s=t.querySelector(".n2-ss-layers-container").getBoundingClientRect();this.resizeContext.slideWidth=s.width,this.resizeContext.slideHeight=s.height;var h=this._cacheEl.slider.getBoundingClientRect();this.resizeContext.sliderWidth=h.width,this.resizeContext.sliderHeight=h.height;var n=this._cacheEl["n2-ss-slider-3"].getBoundingClientRect();if(this.resizeContext.slideOuterWidth=n.width,this.resizeContext.slideOuterHeight=n.height,o.SmartSliderResponsive.prototype.calculateResponsiveValues.call(this),this.H){var a=(this.resizeContext.sliderWidth-this.resizeContext.slideWidth)/-2+"px",r=(this.resizeContext.sliderHeight-this.resizeContext.slideHeight)/-2+"px";o.MW.k(this._cacheEl.slider)["--ss-clip-path"]="inset("+r+" "+a+" "+r+" "+a+")"}},t.prototype.onStarterSlide=function(t){this.slider.slides.forEach((function(t){t.SMWs=[o.MW.k(t.element,{x:"-10000px"})],t.background&&t.SMWs.push(o.MW.k(t.background.element,{x:"-10000px"}))})),o.SmartSliderResponsive.prototype.onStarterSlide.apply(this,arguments),this.mainAnimation.setActiveSlide(this.slider.currentSlide)},t})),o.d("SmartSliderSimple",["SmartSliderAbstract"],(function(){function t(t,i){this.type="simple",o.SmartSliderAbstract.prototype.constructor.call(this,t,r({bgAnimations:0,carousel:1},i))}return t.prototype=Object.create(o.SmartSliderAbstract.prototype),t.prototype.constructor=t,t.prototype.initResponsiveMode=function(){this.responsive=new o.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),o.SmartSliderAbstract.prototype.initResponsiveMode.call(this)},t.prototype.initMainAnimation=function(){!this.disabled.backgroundAnimations&&this.parameters.bgAnimations?this.mainAnimation=new o.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new o.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},t.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[t];delete this.parameters.postBackgroundAnimations.slides}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var i=0;i<this.slides.length;i++)this.slides[i].backgroundAnimation=this.parameters.bgAnimations.slides[i];delete this.parameters.bgAnimations.slides}},t.prototype.forceSetActiveSlide=function(t){t.setActive(),this.mainAnimation.showSlide(t)},t.prototype.forceUnsetActiveSlide=function(t){t.unsetActive(),this.mainAnimation.hideSlide(t)},t.prototype.getAnimationAxis=function(){switch(this.mainAnimation.parameters.type){case"vertical":case"vertical-reversed":return"vertical"}return"horizontal"},t})),o.d("ss-simple",["SmartSliderSimple","SmartSliderResponsiveSimple","SmartSliderMainAnimationSimple"])}(window);

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.