PageSourceSearch

https://hotelzify.com/static/js/3596.5a8a18aa.chunk.js

js hotelzify.com collected 2026-10-01 15:35:30 UTC 9,906 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[3596],{2379:(t,e,i)=>{var n,s,a=i(9379),o=i(579),r=i(5043),h=i(5047);function c(t,e){return t+Math.random()*(e-t)}!function(t){t[t.Circle=0]="Circle",t[t.Square=1]="Square",t[t.Strip=2]="Strip"}(n||(n={})),function(t){t[t.Positive=1]="Positive",t[t.Negative=-1]="Negative"}(s||(s={}));const u=1e3/60;class l{constructor(t,e,i,n){this.getOptions=e;const{colors:a,initialVelocityX:o,initialVelocityY:r}=this.getOptions();var h,u;this.context=t,this.x=i,this.y=n,this.w=c(5,20),this.h=c(5,20),this.radius=c(5,10),this.vx="number"===typeof o?c(-o,o):c(o.min,o.max),this.vy="number"===typeof r?c(-r,0):c(r.min,r.max),this.shape=(h=0,u=2,Math.floor(h+Math.random()*(u-h+1))),this.angle=c(0,360)*Math.PI/180,this.angularSpin=c(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=c(0,1),this.rotationDirection=c(0,1)?s.Positive:s.Negative}update(t){const{gravity:e,wind:i,friction:a,opacity:o,drawShape:r}=this.getOptions(),h=t/u;this.x+=this.vx*h,this.y+=this.vy*h,this.vy+=e*h,this.vx+=i*h,this.vx*=a**h,this.vy*=a**h,this.rotateY>=1&&this.rotationDirection===s.Positive?this.rotationDirection=s.Negative:this.rotateY<=-1&&this.rotationDirection===s.Negative&&(this.rotationDirection=s.Positive);const c=.1*this.rotationDirection*h;if(this.rotateY+=c,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=o,this.context.lineCap="round",this.context.lineWidth=2,r&&"function"===typeof r)r.call(this,this.context);else switch(this.shape){case n.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case n.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case n.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}class f{constructor(t,e){this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenProgress=0,this.tweenFrom=0,this.particles=[],this.particlesGenerated=0,this.removeParticleAt=t=>{this.particles.splice(t,1)},this.getParticle=()=>{const t=c(this.x,this.w+this.x),e=c(this.y,this.h+this.y);return new l(this.context,this.getOptions,t,e)},this.animate=t=>{const{canvas:e,context:i,particlesGenerated:n,lastNumberOfPieces:s}=this,{run:a,recycle:o,numberOfPieces:r,debug:h,tweenFunction:c,tweenDuration:u}=this.getOptions();if(!a)return!1;const l=this.particles.length,f=o?l:n;if(f<r){s!==r&&(this.tweenProgress=0,this.tweenFrom=f,this.lastNumberOfPieces=r),this.tweenProgress=Math.min(u,Math.max(0,this.tweenProgress+t));const e=c(this.tweenProgress,this.tweenFrom,r,u),i=Math.round(e-f);for(let t=0;t<i;t++)this.particles.push(this.getParticle());this.particlesGenerated+=i}h&&(i.font="12px sans-serif",i.fillStyle="#333",i.textAlign="right",i.fillText("Particles: ".concat(l),e.width-10,e.height-20));for(let p=this.particles.length-1;p>=0;p--){const i=this.particles[p];i.update(t),(i.y>e.height||i.y<-100||i.x>e.width+100||i.x<-100)&&(o&&f<=r?this.particles[p]=this.getParticle():this.removeParticleAt(p))}return l>0||f<r},this.canvas=t;const i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=e}}const p={width:"undefined"!==typeof window?window.innerWidth:300,height:"undefined"!==typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:h.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0};class d{constructor(t,e){var i=this;this.lastFrameTime=0,this.setOptionsWithDefaults=t=>{const e={confettiSource:{x:0,y:0,w:this.canvas.width,h:0}};this._options=(0,a.A)((0,a.A)((0,a.A)({},e),p),t),Object.assign(this,t.confettiSource)},this.update=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{options:{run:e,onConfettiComplete:n,frameRate:s},canvas:a,context:o}=i,r=Math.min(t-i.lastFrameTime,50);s&&r<1e3/s?i.rafId=requestAnimationFrame(i.update):(i.lastFrameTime=t-(s?r%s:0),e&&(o.fillStyle="white",o.clearRect(0,0,a.width,a.height)),i.generator.animate(r)?i.rafId=requestAnimationFrame(i.update):(n&&"function"===typeof n&&i.generator.particlesGenerated>0&&n.call(i,i),i._options.run=!1))},this.reset=()=>{this.generator&&this.generator.particlesGenerated>0&&(this.generator.particlesGenerated=0,this.generator.particles=[],this.generator.lastNumberOfPieces=0)},this.stop=()=>{this.options={run:!1},this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0)},this.canvas=t;const n=this.canvas.getContext("2d");if(!n)throw new Error("Could not get canvas context");this.context=n,this.generator=new f(this.canvas,()=>this.options),this.options=e,this.update()}get options(){return this._options}set options(t){var e,i;const n=null===(e=this._options)||void 0===e?void 0:e.run,s=null===(i=this._options)||void 0===i?void 0:i.recycle;this.setOptionsWithDefaults(t),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"===typeof t.recycle&&t.recycle&&!1===s&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"===typeof t.run&&t.run&&!1===n&&this.update()}}const v=r.createRef();class g extends r.Component{constructor(t){super(t),this.canvas=r.createRef(),this.canvas=t.canvasRef||v}componentDidMount(){if(this.canvas.current){const t=w(this.props)[0];this.confetti=new d(this.canvas.current,t)}}componentDidUpdate(){const t=w(this.props)[0];
1this.confetti&&(this.confetti.options=t)}componentWillUnmount(){this.confetti&&this.confetti.stop(),this.confetti=void 0}render(){const[t,e]=w(this.props),i=(0,a.A)({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},e.style);return(0,o.jsx)("canvas",(0,a.A)((0,a.A)({width:t.width,height:t.height,ref:this.canvas},e),{},{style:i}))}}function w(t){const e={},i={},n=[...Object.keys(p),"confettiSource","drawShape","onConfettiComplete","frameRate"],s=["canvasRef"];for(const a in t){const o=t[a];n.includes(a)?e[a]=o:s.includes(a)?s[a]=o:i[a]=o}return[e,i,{}]}g.defaultProps=(0,a.A)({},p),g.displayName="ReactConfetti";r.forwardRef((t,e)=>(0,o.jsx)(g,(0,a.A)({canvasRef:e},t)))},5047:t=>{var e={linear:function(t,e,i,n){return(i-e)*t/n+e},easeInQuad:function(t,e,i,n){return(i-e)*(t/=n)*t+e},easeOutQuad:function(t,e,i,n){return-(i-e)*(t/=n)*(t-2)+e},easeInOutQuad:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t+e:-s/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,n){return(i-e)*(t/=n)*t*t+e},easeOutCubic:function(t,e,i,n){return(i-e)*((t=t/n-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t*t+e:s/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,n){return(i-e)*(t/=n)*t*t*t+e},easeOutQuart:function(t,e,i,n){return-(i-e)*((t=t/n-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t*t*t+e:-s/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,n){return(i-e)*(t/=n)*t*t*t*t+e},easeOutQuint:function(t,e,i,n){return(i-e)*((t=t/n-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?s/2*t*t*t*t*t+e:s/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,n){var s=i-e;return-s*Math.cos(t/n*(Math.PI/2))+s+e},easeOutSine:function(t,e,i,n){return(i-e)*Math.sin(t/n*(Math.PI/2))+e},easeInOutSine:function(t,e,i,n){return-(i-e)/2*(Math.cos(Math.PI*t/n)-1)+e},easeInExpo:function(t,e,i,n){return 0==t?e:(i-e)*Math.pow(2,10*(t/n-1))+e},easeOutExpo:function(t,e,i,n){var s=i-e;return t==n?e+s:s*(1-Math.pow(2,-10*t/n))+e},easeInOutExpo:function(t,e,i,n){var s=i-e;return 0===t?e:t===n?e+s:(t/=n/2)<1?s/2*Math.pow(2,10*(t-1))+e:s/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,i,n){return-(i-e)*(Math.sqrt(1-(t/=n)*t)-1)+e},easeOutCirc:function(t,e,i,n){return(i-e)*Math.sqrt(1-(t=t/n-1)*t)+e},easeInOutCirc:function(t,e,i,n){var s=i-e;return(t/=n/2)<1?-s/2*(Math.sqrt(1-t*t)-1)+e:s/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,i,n){var s,a,o,r=i-e;return o=1.70158,0===t?e:1===(t/=n)?e+r:((a=0)||(a=.3*n),(s=r)<Math.abs(r)?(s=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/s),-s*Math.pow(2,10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)+e)},easeOutElastic:function(t,e,i,n){var s,a,o,r=i-e;return o=1.70158,0===t?e:1===(t/=n)?e+r:((a=0)||(a=.3*n),(s=r)<Math.abs(r)?(s=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/s),s*Math.pow(2,-10*t)*Math.sin((t*n-o)*(2*Math.PI)/a)+r+e)},easeInOutElastic:function(t,e,i,n){var s,a,o,r=i-e;return o=1.70158,0===t?e:2===(t/=n/2)?e+r:((a=0)||(a=n*(.3*1.5)),(s=r)<Math.abs(r)?(s=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/s),t<1?s*Math.pow(2,10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)*-.5+e:s*Math.pow(2,-10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)*.5+r+e)},easeInBack:function(t,e,i,n,s){return void 0===s&&(s=1.70158),(i-e)*(t/=n)*t*((s+1)*t-s)+e},easeOutBack:function(t,e,i,n,s){return void 0===s&&(s=1.70158),(i-e)*((t=t/n-1)*t*((s+1)*t+s)+1)+e},easeInOutBack:function(t,e,i,n,s){var a=i-e;return void 0===s&&(s=1.70158),(t/=n/2)<1?a/2*(t*t*((1+(s*=1.525))*t-s))+e:a/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+e},easeInBounce:function(t,i,n,s){var a=n-i;return a-e.easeOutBounce(s-t,0,a,s)+i},easeOutBounce:function(t,e,i,n){var s=i-e;return(t/=n)<1/2.75?s*(7.5625*t*t)+e:t<2/2.75?s*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?s*(7.5625*(t-=2.25/2.75)*t+.9375)+e:s*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,i,n,s){var a=n-i;return t<s/2?.5*e.easeInBounce(2*t,0,a,s)+i:.5*e.easeOutBounce(2*t-s,0,a,s)+.5*a+i}};t.exports=e}}]);
2//# sourceMappingURL=3596.5a8a18aa.chunk.js.map

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.