1 line
12 KiB
JavaScript
Executable File
1 line
12 KiB
JavaScript
Executable File
!function i(n,r,s){function l(t,e){if(!r[t]){if(!n[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(a)return a(t,!0);throw(o=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",o}o=r[t]={exports:{}},n[t][0].call(o.exports,function(e){return l(n[t][1][e]||e)},o,o.exports,i,n,r,s)}return r[t].exports}for(var a="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,o){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(o,"__esModule",{value:!0}),o.fadeOutNav=o.fadeInNav=o.isSelectorValid=o.isElement=o.getSiblings=o.visible=o.offset=o.fadeToggle=o.fadeOut=o.fadeIn=o.slideToggle=o.slideUp=o.slideDown=o.wrap=void 0;var n=i(e("@babel/runtime/helpers/typeof"));o.wrap=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.createElement("div");return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)};function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300,o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.transitionProperty="height",e.style.transitionDuration="".concat(t,"ms"),e.style.opacity=0,e.style.display=o;var i=e.offsetHeight;e.style.height=0,e.style.opacity=1,e.style.overflow="hidden",setTimeout(function(){e.style.height="".concat(i,"px")},5),window.setTimeout(function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.style.removeProperty("opacity")},t+50)}o.slideDown=r;function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300;e.style.boxSizing="border-box",e.style.transitionProperty="height, margin",e.style.transitionDuration="".concat(t,"ms"),e.style.height="".concat(e.offsetHeight,"px"),e.style.marginTop=0,e.style.marginBottom=0,e.style.overflow="hidden",setTimeout(function(){e.style.height=0},5),window.setTimeout(function(){e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t+50)}o.slideUp=s;o.slideToggle=function(e,t){("none"===window.getComputedStyle(e).display?r:s)(e,t)};function l(e){var t={duration:300,display:null,opacity:1,callback:null};Object.assign(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),e.style.opacity=0,e.style.display=t.display||"block",setTimeout(function(){e.style.transition="".concat(t.duration,"ms opacity ease"),e.style.opacity=t.opacity},5),setTimeout(function(){e.style.removeProperty("transition"),t.callback&&t.callback()},t.duration+50)}o.fadeIn=l;function a(e){var t;"none"!==e.style.display&&(t={duration:300,display:null,opacity:0,callback:null},Object.assign(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),e.style.opacity=1,e.style.display=t.display||"block",setTimeout(function(){e.style.transition="".concat(t.duration,"ms opacity ease"),e.style.opacity=t.opacity},5),setTimeout(function(){e.style.display="none",e.style.removeProperty("transition"),t.callback&&t.callback()},t.duration+50))}o.fadeOut=a;o.fadeToggle=function(e,t){("none"===window.getComputedStyle(e).display?l:a)(e,t)};o.offset=function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),e=e.ownerDocument.defaultView;return{top:t.top+e.pageYOffset,left:t.left+e.pageXOffset}};o.visible=function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};o.getSiblings=function(e){var t=[];if(!e.parentNode)return t;for(var o=e.parentNode.firstChild;o;)1===o.nodeType&&o!==e&&t.push(o),o=o.nextSibling;return t};o.isElement=function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":(0,n.default)(HTMLElement))?e instanceof HTMLElement:e&&"object"===(0,n.default)(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName};var c,e=(c=document.createDocumentFragment(),function(e){try{c.querySelector(e)}catch(e){return!1}return!0});o.isSelectorValid=e;o.fadeInNav=function(e){var t={duration:300,visibility:"visible",opacity:1,callback:null};Object.assign(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),e.style.opacity=0,e.style.visibility=t.visibility||"visible",setTimeout(function(){e.style.transition="".concat(t.duration,"ms opacity ease"),e.style.opacity=t.opacity},5)};o.fadeOutNav=function(e){var t;"hidden"!==e.style.visibility&&(t={duration:300,visibility:"hidden",opacity:0,callback:null},Object.assign(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),e.style.opacity=1,e.style.visibility=t.visibility||"visible",setTimeout(function(){e.style.transition="".concat(t.duration,"ms opacity ease"),e.style.opacity=t.opacity},5),setTimeout(function(){e.style.visibility="hidden",e.style.removeProperty("transition"),t.callback&&t.callback()},t.duration+50))}},{"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/typeof":11}],2:[function(e,t,o){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault"),n=i(e("@babel/runtime/helpers/defineProperty")),r=i(e("@babel/runtime/helpers/classCallCheck")),s=i(e("@babel/runtime/helpers/classPrivateFieldSet")),l=i(e("@babel/runtime/helpers/classPrivateFieldGet")),a=e("../lib/utils");function c(t,e){var o,i=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,o)),i}function u(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?c(Object(o),!0).forEach(function(e){(0,n.default)(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var p=new WeakMap,d=new WeakMap,f=new WeakMap,y=new WeakMap,h=new WeakMap,b=new WeakMap,m=new WeakMap,e=function e(){var n=this;(0,r.default)(this,e),p.set(this,{writable:!0,value:{body:document.body}}),d.set(this,{writable:!0,value:function(){(0,s.default)(n,p,u(u({},(0,l.default)(n,p)),{},{html:document.querySelector("html"),WPAdminbar:document.querySelector("#wpadminbar"),topbarWrapper:document.querySelector("#top-bar-wrap"),header:document.querySelector("#site-header")}))}}),f.set(this,{writable:!0,value:function(){document.querySelectorAll('a[href*="#"]:not([href="#"]):not(.comment-navigation .nav-links a), a.local[href*="#"]:not([href="#"]), .local a[href*="#"]:not([href="#"]), a.menu-link[href*="#"]:not([href="#"]), a.sidr-class-menu-link[href*="#"]:not([href="#"])').forEach(function(e){e.addEventListener("click",(0,l.default)(n,y))})}}),y.set(this,{writable:!0,value:function(e){var t,o=e.currentTarget;o.classList.contains("elementor-item-anchor")&&o.classList.contains("has-submenu")||o.classList.contains("omw-open-modal")||o.closest(".omw-open-modal")||o.classList.contains("oew-modal-button")||o.closest(".oew-modal-button")||o.classList.contains("opl-link")||o.parentNode.classList.contains("opl-link")||o.classList.contains("sidr-class-opl-link")||o.parentNode.classList.contains("sidr-class-opl-link")||o.classList.contains("comment-reply")||o.classList.contains("htb-nav-link")||o.classList.contains("upload-file")||o.parentNode.classList.contains("vc_tta-panel-title")||o.classList.contains("vce-tabs-with-slide-tab-title")||o.classList.contains("vce-tabs-with-slide-panel-title")||o.classList.contains("vce-classic-tabs-tab-title")||o.classList.contains("vce-classic-accordion-panel-title")||(o=(t=o.getAttribute("href")).substring(t.indexOf("#")).slice(1),(t=null,a.isSelectorValid)("#".concat(o))&&(t=document.querySelector("#".concat(o))),""!=o&&t&&(e.preventDefault(),e.stopPropagation(),t=(0,a.offset)(t).top-(0,l.default)(n,h).call(n)-(0,l.default)(n,b).call(n)-(0,l.default)(n,m).call(n),(0,l.default)(n,p).html.scrollTo({top:t,behavior:"smooth"})))}}),h.set(this,{writable:!0,value:function(){return(0,l.default)(n,p).WPAdminbar?(0,l.default)(n,p).WPAdminbar.offsetHeight:0}}),b.set(this,{writable:!0,value:function(){return(0,l.default)(n,p).topbarWrapper&&(0,l.default)(n,p).topbarWrapper.classList.contains("top-bar-sticky")?(0,l.default)(n,p).topbarWrapper.offsetHeight:0}}),m.set(this,{writable:!0,value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],o=document.querySelector("#site-header-sticky-wrapper");if(o){if(o.classList.contains("is-sticky")&&!t)return(0,l.default)(n,p).header.offsetHeight;if(null!==(t=(0,l.default)(n,p).header)&&void 0!==t&&t.classList.contains("top-header"))return Number.parseInt(getComputedStyle(o).height);if(null!==(o=(0,l.default)(n,p).header)&&void 0!==o&&o.classList.contains("medium-header")){var i=(0,l.default)(n,p).header.querySelector(".bottom-header-wrap");return i.classList.contains("fixed-scroll")?i.offsetHeight:(0,l.default)(n,p).header.classList.contains("hidden-menu")?(0,l.default)(n,p).header.dataset.height:(0,l.default)(n,p).header.offsetHeight}return null!==(i=(0,l.default)(n,p).header)&&void 0!==i&&i.classList.contains("fixed-header")?(0,l.default)(n,p).header.offsetHeight:null!==(i=(0,l.default)(n,p).header)&&void 0!==i&&i.classList.contains("up-effect")?0:null!==(e=null===(e=(0,l.default)(n,p).header)||void 0===e?void 0:e.dataset.height)&&void 0!==e?e:54}return document.querySelector("#stick-anything-header")?document.querySelector("#stick-anything-header").offsetHeight:null!==(e=document.querySelector(".elementor-section-wrap"))&&void 0!==e&&e.firstElementChild.classList.contains("elementor-sticky")?null===(e=document.querySelector(".elementor-section-wrap"))||void 0===e?void 0:e.firstElementChild.offsetHeight:0}}),(0,l.default)(this,p).body.classList.contains("single-product")||(0,l.default)(this,p).body.classList.contains("no-local-scroll")||((0,l.default)(this,d).call(this),(0,l.default)(this,f).call(this))};window.oceanwp=window.oceanwp||{},oceanwp.scrollEffect=new e},{"../lib/utils":1,"@babel/runtime/helpers/classCallCheck":5,"@babel/runtime/helpers/classPrivateFieldGet":7,"@babel/runtime/helpers/classPrivateFieldSet":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":10}],3:[function(e,t,o){t.exports=function(e,t){return t.get?t.get.call(e):t.value},t.exports.default=t.exports,t.exports.__esModule=!0},{}],4:[function(e,t,o){t.exports=function(e,t,o){if(t.set)t.set.call(e,o);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=o}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],5:[function(e,t,o){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},{}],6:[function(e,t,o){t.exports=function(e,t,o){if(!t.has(e))throw new TypeError("attempted to "+o+" private field on non-instance");return t.get(e)},t.exports.default=t.exports,t.exports.__esModule=!0},{}],7:[function(e,t,o){var i=e("./classApplyDescriptorGet.js"),n=e("./classExtractFieldDescriptor.js");t.exports=function(e,t){return t=n(e,t,"get"),i(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorGet.js":3,"./classExtractFieldDescriptor.js":6}],8:[function(e,t,o){var i=e("./classApplyDescriptorSet.js"),n=e("./classExtractFieldDescriptor.js");t.exports=function(e,t,o){return t=n(e,t,"set"),i(e,t,o),o},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorSet.js":4,"./classExtractFieldDescriptor.js":6}],9:[function(e,t,o){t.exports=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},t.exports.default=t.exports,t.exports.__esModule=!0},{}],10:[function(e,t,o){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],11:[function(e,t,o){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(e){return typeof e}:t.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,i(e)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},{}]},{},[2]); |