PageSourceSearch

https://www.obramat.es/category-meta-meshing-enrichment-module/3.9…/static/js/rangesmesh/rangesmesh.modern.js

js obramat.es collected 2026-10-01 11:30:20 UTC 10,117 bytes, 2 lines download raw bytes

vendor: 7,449 bytes, line 1
1var CCDPBuild5;(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var e=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,i){return t[0]===e&&(n=i,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==t.g&&t.g.Math===Math?t.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),r="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)};var o=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,o=0;function s(){n&&(n=!1,t()),i&&a()}function c(){r(s)}function a(){var t=Date.now();if(n){if(t-o<2)return;i=!0}else n=!0,i=!1,setTimeout(c,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;o.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),a=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},u=_(0,0,0,0);function d(t){return parseFloat(t)||0}function l(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+d(t["border-"+n+"-width"])},0)}function f(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return u;var i=h(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=t["padding-"+r];e[r]=d(o)}return e}(i),o=r.left+r.right,s=r.top+r.bottom,c=d(i.width),a=d(i.height);if("border-box"===i.boxSizing&&(Math.round(c+o)!==e&&(c-=l(i,"left","right")+o),Math.round(a+s)!==n&&(a-=l(i,"top","bottom")+s)),!function(t){return t===h(t).document.documentElement}(t)){var f=Math.round(c+o)-e,p=Math.round(a+s)-n;1!==Math.abs(f)&&(c-=f),1!==Math.abs(p)&&(a-=p)}return _(r.left,r.top,c,a)}var p="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function v(t){return n?p(t)?function(t){var e=t.getBBox();return _(0,0,e.width,e.height)}(t):f(t):u}function _(t,e,n,i){return{x:t,y:e,width:n,height:i}}var b=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=v(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),w=function(t,e){var n,i,r,o,s,c,h,u=(i=(n=e).x,r=n.y,o=n.width,s=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,h=Object.create(c.prototype),a(h,{x:i,y:r,width:o,height:s,top:r,right:i+o,bottom:s+r,left:i}),h);a(this,{target:t,contentRect:u})},m=function(){function t(t,n,i){if(this.activeObservations_=[],this.observations_=new e,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new b(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new w(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),y="undefined"!=typeof WeakMap?new WeakMap:new e,g=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");
1if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),i=new m(e,n,this);y.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){g.prototype[t]=function(){var e;return(e=y.get(this))[t].apply(e,arguments)}});const E=void 0!==i.ResizeObserver?i.ResizeObserver:g,O="ka-nav-button--hidden";function M(){new E(()=>{this.scrollWidth=A(this.swiperItem),L.call(this)}).observe(this.swiper)}function A(t){const e=t.currentStyle||window.getComputedStyle(t);return t.clientWidth+parseFloat(e.marginLeft)+parseFloat(e.marginRight)+parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)}function L(){const t=this.swiper.querySelector(".kl-swiper").offsetWidth,e=this.swiper.querySelector(".kl-swiper__slider"),n=e.scrollWidth,i=this.swiper.querySelector(".kl-swiper__controls"),r="kl-swiper__controls--hidden",o="kl-swiper__slider--center";n>t?(W.call(this),i.classList.remove(r),e.classList.remove(o)):(i.classList.add(r),this.options.centerWhenNoButtons&&e.classList.add(o))}function W(){this.eventLoaded||([...this.swiper.querySelectorAll("button.ka-nav-button")].forEach(t=>{t.addEventListener("click",t=>{this.swipe(t.target)})}),this.eventLoaded=!0)}function k(t,e){const n=t.scrollWidth-t.clientWidth,i=t.scrollLeft+e+1;i>1?this.buttonsNavigation[0].classList.remove(O):this.buttonsNavigation[0].classList.add(O),i>=n?this.buttonsNavigation[1].classList.add(O):this.buttonsNavigation[1].classList.remove(O)}const S=class{constructor(t,e=null,n={}){this.swiper=function(t){if("string"==typeof t)return document.querySelector(`${t}`);return t}(t),this.swiperItem=this.swiper.querySelector(".kl-swiper__slider-item"),this.buttonsNavigation=this.swiper.querySelectorAll("button.ka-nav-button"),this.eventLoaded=!1,this.options={centerWhenNoButtons:!0},Object.assign(this.options,n),null!==e?this.scrollWidth=e:(this.scrollWidth=A(this.swiperItem),M.call(this)),L.call(this)}swipe(t){const e=this.swiper.querySelector(".kl-swiper"),n="prev"===t.dataset.controls?-1*this.scrollWidth:this.scrollWidth;this.showButton(e,n),e.scrollBy(n,0)}showButton(t,e){k.call(this,t,e)}},T="js-concept-range-swiper";class R extends lm.Composant{constructor(t){super(t);if(document.querySelector(`#${t} .${T}`)){const e={};e.instance=new S(`#${t} .${T}`),delete e.instance}}}lm.DOMReady(function(){const t=document.querySelectorAll(".component-category-meta-meshing-enrichment-ranges");for(let e=0;e<t.length;e++){const n=t[e].getAttribute("id");if(n){const t={};t.instance=new R(n),delete t.instance}}}),CCDPBuild5={}})();
2//# sourceMappingURL=rangesmesh.modern.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.