PageSourceSearch

https://ovenspb.ru/g/s3/mosaic/js/do/do.animate.js

js ovenspb.ru collected 2026-09-29 13:44:11 UTC 6,035 bytes, 1 lines download raw bytes

1(self.webpackChunkdo=self.webpackChunkdo||[]).push([[1664],{2653:n=>{n.exports=function n(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(e){!t.hasOwnProperty(e)||null===t[e]||"object"!=typeof t[e]&&"function"!=typeof t[e]||Object.isFrozen(t[e])||n(t[e])})),t}},2434:(n,t,e)=>{n.exports=function(){return new Promise((function(n){e.e(4692).then(function(t){n(e(4692))}.bind(null,e)).catch(e.oe)}))}},3899:(n,t,e)=>{"use strict";e.r(t),e.d(t,{default:()=>a});var i=e(8610),o=function(n,t,e,i){return new(e||(e=Promise))((function(o,r){function a(n){try{c(i.next(n))}catch(n){r(n)}}function s(n){try{c(i.throw(n))}catch(n){r(n)}}function c(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,s)}c((i=i.apply(n,t||[])).next())}))},r=function(n,t){var e,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(c){return function(s){if(e)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(e=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(n,a)}catch(n){s=[6,n],i=0}finally{e=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};function a(n){return o(this,void 0,void 0,(function(){var t,o,a,s,c,l;return r(this,(function(r){switch(r.label){case 0:return[4,e(2434)()];case 1:return t=r.sent(),[4,e(9860)];case 2:return o=r.sent(),[4,e(8476).A];case 3:return a=r.sent(),(s=t(n)).attr("data-do-animation")?(o.default(t),c=JSON.parse(s.attr("data-do-animation")),l=function(n){s.mosaicAnimation("init",n)},a.add((function(n){if(s.mosaicAnimation("destroy"),void 0!==c&&c.length>0){var t=c.filter((function(t){return!("medias"in t)||(!!t.medias.includes(n)||i.Ay.indexOf(n)<i.Yb&&t.medias.includes(i.QF))}));t.length&&l(t)}})),[2]):[2]}}))}))}},8610:(n,t,e)=>{"use strict";e.d(t,{$U:()=>i,Ay:()=>c,QF:()=>r,Yb:()=>s});var i,o=e(2653),r="screen",a=e.n(o)()(["(min-width: 1920px)","(min-width: 1440px)","(min-width: 1280px)",r,"(max-width: 991px)","(max-width: 767px)","(max-width: 479px)"]),s=a.indexOf(r);!function(n){n.BIG_SCREEN3=0,n.BIG_SCREEN2=1,n.BIG_SCREEN1=2,n.SCREEN=3,n.TABLET_LANDSCAPE=4,n.TABLET_PORTRAIT=5,n.MOBILE=6}(i||(i={}));const c=a},8476:(n,t,e)=>{"use strict";e.d(t,{A:()=>l});var i=e(8610),o=e(4511).s,r=new Set,a=s();function s(){for(var n,t=i.Ay.slice().reverse(),e=i.QF,o=!0,r=0;r<t.length;r+=1){if((n=t[r])===i.QF&&(o=!1),window.matchMedia(n).matches&&(e=n,o))break}return e}var c=o((function(){var n=s();n!==a&&(a=n,r.forEach((function(t){t(n)})))}),200);window.addEventListener("resize",c);const l={add:function(n){r.add(n),n(a)},remove:function(n){r.delete(n)},getMedia:s}},9860:(n,t,e)=>{"use strict";function i(n){function t(n){if(!this.isAnimating){const t=1e3*(n.duration+n.delay)||0,i=`ms-animator-${n.name} ms-animator-d${n.duration} ms-animator-s${n.delay} ${n.infinite?"ms-animator-i":""} ms-animator`;if(this.isAnimating=!0,this.removeClass("ms-animator-visible"),this.addClass(i),!n.infinite){const n=this.get(0);document.dispatchEvent(new CustomEvent("animationStart",{detail:{element:n}})),setTimeout((()=>{e.call(this),this.addClass("ms-animator-visible"),document.dispatchEvent(new CustomEvent("animationEnd",{detail:{element:n}}))}),t)}}}function e(){this.removeClassWild("ms-*"),this.isAnimating=!1}function i(i){const o=this;!function(t){const e=t.offset().top,i=t.height(),o=n(document).scrollTop(),r=n(window).height();return i+e>o+10&&e<o+r-10}(o)?i.loop&&!i.infinite&&e.call(o):(t.call(o,i),i.loop||this.scrollHandler&&n(document).off("scroll.ms-animator",this.scrollHandler))}let o={init:function(n){const t=this;t.isAnimating=!1,n.reduce(((n,t)=>n.find((n=>
1n.event===t.event))||"none"===t.event?n:[...n,t]),[]).forEach((({event:n,animation:e})=>{"click"===n||"mouseenter"===n||"mouseleave"===n?t.mosaicAnimation("animate",{event:n,animation:e}):t.mosaicAnimation("intoView",e)}))},destroy:function(){e.call(this),this.scrollHandler&&n(document).off("scroll.ms-animator",this.scrollHandler),this.off("click.ms-animator mouseleave.ms-animator mouseenter.ms-animator"),this.observer instanceof IntersectionObserver&&this.observer.disconnect()},animate:function({event:n,animation:e}){const i=this;i.on(`${n}.ms-animator`,(function(n){n.stopPropagation(),t.call(i,e)}))},intoView:function(o){if("IntersectionObserver"in window){const n=this,i={rootMargin:"-10px",threshold:[0]};this.observer=new IntersectionObserver(((i,r)=>{i.forEach((i=>{i.isIntersecting?(t.call(n,o),o.loop||r.disconnect()):o.loop&&!o.infinite&&e.call(n)}))}),i),this.observer.observe(n.get(0))}else this.scrollHandler=i.bind(this,o),n(document).on("scroll.ms-animator",this.scrollHandler),this.scrollHandler()}};n.fn.mosaicAnimation=function(t){return o[t]?o[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Метод с именем "+t+" не существует для jQuery.mosaicAnimation"):o.init.apply(this,arguments)},n.fn.removeClassWild=function(n){return this.removeClass((function(t,e){var i=n.replace(/\*/g,"\\S+");return(e.match(new RegExp("\\b"+i,"g"))||[]).join(" ")}))}}e.r(t),e.d(t,{default:()=>i})},4511:(n,t,e)=>{"use strict";function i(n,t,e){let i;return function(){let o=this,r=arguments,a=e&&!i;clearTimeout(i),i=setTimeout((function(){i=null,e||n.apply(o,r)}),t),a&&n.apply(o,r)}}e.d(t,{s:()=>i})}}]);

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.