PageSourceSearch

https://www.eudonet.com/wp-content/themes/lord-x-eudonet/assets/js/spline-animation-1_0_2.js

js eudonet.com collected 2026-09-24 09:43:37 UTC 6,952 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkeudonet=self.webpackChunkeudonet||[]).push([[505],{299:(t,e,n)=>{n.d(e,{A:()=>s});var i=function(t,e,n){var i,r=arguments.length>4?arguments[4]:void 0;i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,new Promise(function(o){var a,s=function(c){a||(a=c);var l=c-a,u=Math.min(1,l/i);(function(i){var o=t-(t-e)*i;n.style.maxHeight=o+"px",i>=1&&"function"==typeof r&&r(n)})(u),u<1?window.requestAnimationFrame(s):o()};window.requestAnimationFrame(s)})};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var s=function(){return t=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{active:!1};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=n,this.block=e,this.content=e.querySelector(".js-content"),this._active=!1,this.active=this.options.active,this.playing=!1,this._onEnd=null==n?void 0:n.onEnd,this.destroy=this.init()},(e=[{key:"init",value:function(){var t=this.onresize.bind(this);return window.addEventListener("resize",t,{passive:!0}),function(){window.removeEventListener("resize",t)}}},{key:"active",get:function(){return this._active},set:function(t){if(!this.playing){var e=this.content.firstElementChild.offsetHeight;this.block.classList.remove("done"),t!==this._active&&(t?(this.playing=!0,i(0,e,this.content,500,this.onEnd.bind(this)),this.block.classList.add("active")):(this.playing=!0,i(e,0,this.content,500,this.onEnd.bind(this)),this.block.classList.remove("active")),"function"==typeof this.options.onChange&&this.options.onChange.call(this)),this._active=t}}},{key:"onEnd",value:function(t){this.playing=!1,this._active&&this.block.classList.add("done"),"function"==typeof this._onEnd&&this._onEnd.call(this,t)}},{key:"toggle",value:function(){this.active=!this._active}},{key:"open",value:function(){this.active=!0}},{key:"close",value:function(){this.active=!1}},{key:"onresize",value:function(){if(this._active){var t=this.content.firstElementChild.offsetHeight;this.content.style.maxHeight=t+"px"}}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},666:(t,e,n)=>{n.r(e),n.d(e,{execute:()=>o});var i=n(668),r=n(299),o=function(){Array.from(document.querySelectorAll('[data-block="spline-animation"]')).forEach(function(t){var e=0,o=!1,a=Array.from(t.querySelectorAll(".canvas3d")),s=Array.from(t.querySelectorAll(".spline-tab")),c=new Map,l=new Set,u=null;s.map(function(n,i){return new r.A(n,{active:i===e,onChange:function(){var n=a[e],r=a[i],o=Array.from(t.querySelectorAll('[data-section-id="'+(i+1)+'"]')).map(function(t,e){return function(){t.classList.add("fade-in-"+i+"-"+e)}}),s=Array.from(t.querySelectorAll('[data-section-id="'+(e+1)+'"]')).map(function(t,n){return function(){t.classList.remove("fade-in-"+e+"-"+n)}});n&&n.classList.remove("animate"),function(t,e){var n=a[t];if(n){if(l.has(t))return n.classList.add("animate"),void e();if(u&&!c.has(t)){var i=new u(n);c.set(t,i),i.load(n.dataset.splineUrl).then(function(){l.add(t),n.classList.add("animate"),e()})}else if(c.has(t)){var r=c.get(t);l.has(t)?(n.classList.add("animate"),e()):r.load(n.dataset.splineUrl).then(function(){l.add(t),n.classList.add("animate"),e()})}}else e()}(i,function(){n&&n.parentElement.classList.remove("active"),r&&r.parentElement.classList.add("active"),o.forEach(function(t){return t()}),s.forEach(function(t){return t()}),e=i})}})}).forEach(function(t,e,n){t.block.addEventListener("click",function(){n.some(function(t){return t.playing})||(n.forEach(function(e){e.block.isEqualNode(t.block)||e.close()}),t.open())})}),new i.s(t,function(t){t&&!o&&window.innerWidth>1024&&(o=!0,n.e(970).then(n.bind(n,815)).then(function(t){u=t.Application;var e=a[0];if(e){var n=new u(e);c.set(0,n),n.load(e.dataset.splineUrl).then(function(){l.add(0),e.classList.add("animate")})}}).catch(console.error))},.1)})}},668:(t,e,n)=>{function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}n.d(e,{s:()=>s});var s=function(){return t=function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.callback=n,this.observer=new IntersectionObserver(function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){l=!0,r=t}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0];i.state=e.isIntersecting&&e.intersectionRatio>=o},{threshold:[o]}),this.destroy=this.init()},(e=[{key:"init",value:function(){var t=this;return this.observer.observe(this.element),function(){t.observer.unobserve(ref.current)}}},{key:"state",set:function(t){"function"==typeof this.callback&&this.callback(t)}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()}}]);

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.