site_oueb_2/wp-content/themes/oceanwp/assets/js/ow-infinite-scroll.min.js

1 line
24 KiB
JavaScript
Raw Normal View History

2022-11-22 20:23:31 +01:00
!function n(o,r,s){function l(e,t){if(!r[e]){if(!o[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(a)return a(e,!0);throw(i=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",i}i=r[e]={exports:{}},o[e][0].call(i.exports,function(t){return l(o[e][1][t]||t)},i,i.exports,n,o,r,s)}return r[e].exports}for(var a="function"==typeof require&&require,t=0;t<s.length;t++)l(s[t]);return l}({1:[function(t,e,i){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault"),o=n(t("@babel/runtime/helpers/defineProperty")),r=n(t("@babel/runtime/helpers/classCallCheck")),s=n(t("@babel/runtime/helpers/classPrivateFieldSet")),l=n(t("@babel/runtime/helpers/classPrivateFieldGet")),a=n(t("infinite-scroll")),c=n(t("responsive-auto-height"));function u(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach(function(t){(0,o.default)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function d(){var t=this;(0,r.default)(this,d),f.set(this,{writable:!0,value:{infiniteScrollNav:document.querySelector(".infinite-scroll-nav")}}),p.set(this,{writable:!0,value:void 0}),g.set(this,{writable:!0,value:function(){(0,s.default)(t,f,h(h({},(0,l.default)(t,f)),{},{infiniteScrollWrapper:document.querySelector(".infinite-scroll-wrap")}))}}),y.set(this,{writable:!0,value:function(){(0,s.default)(t,p,new a.default((0,l.default)(t,f).infiniteScrollWrapper,{path:".older-posts a",append:".item-entry",status:".scroller-status",hideNav:".infinite-scroll-nav",history:!1,prefill:!0,scrollThreshold:500}))}}),m.set(this,{writable:!0,value:function(){(0,l.default)(t,p).on("load",function(t,e,i){var o=this,r=t.querySelectorAll(".item-entry");imagesLoaded(r,function(){var t,e,i,n;o.element.classList.contains("blog-masonry-grid")&&(null===(t=oceanwp)||void 0===t||null!==(t=t.blogMasonry)&&void 0!==t&&t.isotop.appended(r),o.element.querySelector(".gallery-format")&&setTimeout(function(){var t;null===(t=oceanwp)||void 0===t||null!==(t=t.blogMasonry)&&void 0!==t&&t.isotop.layout()},601)),document.body.classList.contains("no-carousel")||null===(e=oceanwp)||void 0===e||null!==(i=e.owSlider)&&void 0!==i&&i.start(o.element.querySelectorAll(".gallery-format, .product-entry-slider")),document.body.classList.contains("no-lightbox")||(null===(i=oceanwp)||void 0===i||null!==(n=i.owLightbox)&&void 0!==n&&n.initSingleImageLightbox(),null===(n=oceanwp)||void 0===n||null!==(n=n.owLightbox)&&void 0!==n&&n.initGalleryLightbox()),r.forEach(function(t){null!==(t=t.querySelectorAll("img"))&&void 0!==t&&t.forEach(function(t){t.outerHTML=t.outerHTML})})})}),(0,l.default)(t,p).on("append",function(t,e,i,n){imagesLoaded(i,function(){var t;document.body.classList.contains("no-matchheight")||0<(t=(t=Array.from(i).map(function(t){if(t.id)return"#".concat(t.id," .blog-entry-inner")})).filter(function(t){return void 0!==t})).length&&new c.default(t.join(","))})})}}),(0,l.default)(this,f).infiniteScrollNav&&(0,l.default)(this,f).infiniteScrollNav.querySelector(".older-posts a")&&((0,l.default)(this,g).call(this),(0,l.default)(this,y).call(this),(0,l.default)(this,m).call(this))}var f=new WeakMap,p=new WeakMap,g=new WeakMap,y=new WeakMap,m=new WeakMap;window.oceanwp=window.oceanwp||{},document.addEventListener("DOMContentLoaded",function(){oceanwp.owInfiniteScroll=new d})},{"@babel/runtime/helpers/classCallCheck":4,"@babel/runtime/helpers/classPrivateFieldGet":6,"@babel/runtime/helpers/classPrivateFieldSet":7,"@babel/runtime/helpers/defineProperty":8,"@babel/runtime/helpers/interopRequireDefault":9,"infinite-scroll":13,"responsive-auto-height":19}],2:[function(t,e,i){e.exports=function(t,e){return e.get?e.get.call(t):e.value},e.exports