site_oueb_2/wp-content/themes/oceanwp/assets/js/equal-height-elements.min.js

1 line
5.1 KiB
JavaScript
Raw Normal View History

2022-11-22 20:23:31 +01:00
!function n(o,i,s){function l(t,e){if(!i[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(a)return a(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=i[t]={exports:{}},o[t][0].call(r.exports,function(e){return l(o[t][1][e]||e)},r,r.exports,n,o,i,s)}return i[t].exports}for(var a="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=n(e("@babel/runtime/helpers/classCallCheck")),i=n(e("@babel/runtime/helpers/defineProperty")),s=n(e("@babel/runtime/helpers/classPrivateFieldSet")),l=n(e("@babel/runtime/helpers/classPrivateFieldGet")),a=n(e("responsive-auto-height")),u=new WeakMap,e=function e(){var t=this;(0,o.default)(this,e),u.set(this,{writable:!0,value:!1}),(0,i.default)(this,"start",function(){document.querySelector(".blog-equal-heights .blog-entry-inner")&&new a.default(".blog-equal-heights .blog-entry-inner"),document.querySelector(".match-height-grid .match-height-content")&&new a.default(".match-height-grid .match-height-content"),(0,s.default)(t,u,!0)}),768<window.innerWidth&&this.start(),window.addEventListener("resize",function(e){768<window.innerWidth&&!(0,l.default)(t,u)&&t.start()})};window.oceanwp=window.oceanwp||{},oceanwp.equalHeightElements=new e},{"@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,"responsive-auto-height":10}],2:[function(e,t,r){t.exports=function(e,t){return t.get?t.get.call(e):t.value},t.exports.default=t.exports,t.exports.__esModule=!0},{}],3:[function(e,t,r){t.exports=function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],4:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},{}],5:[function(e,t,r){t.exports=function(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)},t.exports.default=t.exports,t.exports.__esModule=!0},{}],6:[function(e,t,r){var n=e("./classApplyDescriptorGet.js"),o=e("./classExtractFieldDescriptor.js");t.exports=function(e,t){return t=o(e,t,"get"),n(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorGet.js":2,"./classExtractFieldDescriptor.js":5}],7:[function(e,t,r){var n=e("./classApplyDescriptorSet.js"),o=e("./classExtractFieldDescriptor.js");t.exports=function(e,t,r){return t=o(e,t,"set"),n(e,t,r),r},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorSet.js":3,"./classExtractFieldDescriptor.js":5}],8:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t.exports.default=t.exports,t.exports.__esModule=!0},{}],9:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),e};function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=e("./util");n(s,[{key:"recalc",value:function(){this.elements=document.querySelectorAll(this.selector),this.run()}},{key:"makeGroups",value:function(e){var t=[];[].forEach.call(e,function(e){e.style.height="1px",e.style.overflow="hidden"});var r=0,n=(0,i.getOffset)(e[0]).top;return t[0]=[],[].forEach.call(e,function(e){(0,i.getOffset)(e).top!==n&&(n=(0,i.getOffset)(e).top,t[r+=1]=[]),t[r].push(e)}),[].forEach.call(e,function(e){e.style.height="",e.style.overflow=""}),t}},{key:"autoHeight",value:function(e){va