index of
/
home
/
thefkyzp
/
www
/
wp-content
/
themes
/
oceanwp
/
assets
/
js
/
wp-plugins
/
woocommerce
/
File: /home/thefkyzp/www/wp-content/themes/oceanwp/assets/js/wp-plugins/woocommerce/woo-off-canvas.min.js
!function l(a,n,o){function s(t,e){if(!n[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(i)return i(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=n[t]={exports:{}},a[t][0].call(r.exports,function(e){return s(a[t][1][e]||e)},r,r.exports,l,a,n,o)}return n[t].exports}for(var i="function"==typeof require&&require,e=0;e<o.length;e++)s(o[e]);return s}({1:[function(e,t,r){"use strict";var l=e("@babel/runtime/helpers/interopRequireDefault"),a=l(e("@babel/runtime/helpers/classCallCheck")),n=l(e("@babel/runtime/helpers/classPrivateFieldSet")),o=l(e("@babel/runtime/helpers/classPrivateFieldGet")),s=l(e("delegate")),i=new WeakMap,u=new WeakMap,c=new WeakMap,f=new WeakMap,p=new WeakMap,d=new WeakMap;new function e(){var r=this;(0,a.default)(this,e),i.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:function(){(0,n.default)(r,i,{html:document.querySelector("html"),body:document.body})}}),c.set(this,{writable:!0,value:function(){}}),f.set(this,{writable:!0,value:function(){(0,s.default)((0,o.default)(r,i).body,".oceanwp-off-canvas-filter","click",(0,o.default)(r,p)),(0,s.default)((0,o.default)(r,i).body,".oceanwp-off-canvas-overlay, .oceanwp-off-canvas-close","click",(0,o.default)(r,d))}}),p.set(this,{writable:!0,value:function(e){e.preventDefault(),e.stopPropagation();var t=(0,o.default)(r,i).html.innerWidth;(0,o.default)(r,i).html.style.overflow="hidden";e=(0,o.default)(r,i).html.innerWidth;(0,o.default)(r,i).html.style.marginRight=e-t+"px",(0,o.default)(r,i).body.classList.add("off-canvas-enabled")}}),d.set(this,{writable:!0,value:function(e){(((0,o.default)(r,i).html.style.overflow="",o.default)(r,i).html.style.marginRight="",o.default)(r,i).body.classList.remove("off-canvas-enabled")}}),(0,o.default)(this,u).call(this),(0,o.default)(this,c).call(this),(0,o.default)(this,f).call(this)}},{"@babel/runtime/helpers/classCallCheck":4,"@babel/runtime/helpers/classPrivateFieldGet":6,"@babel/runtime/helpers/classPrivateFieldSet":7,"@babel/runtime/helpers/interopRequireDefault":8,delegate: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 l=e("./classApplyDescriptorGet.js"),a=e("./classExtractFieldDescriptor.js");t.exports=function(e,t){return t=a(e,t,"get"),l(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0},{"./classApplyDescriptorGet.js":2,"./classExtractFieldDescriptor.js":5}],7:[function(e,t,r){var l=e("./classApplyDescriptorSet.js"),a=e("./classExtractFieldDescriptor.js");t.exports=function(e,t,r){return t=a(e,t,"set"),l(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){return e&&e.__esModule?e:{default:e}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],9:[function(e,t,r){var l;"undefined"==typeof Element||Element.prototype.matches||((l=Element.prototype).matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector),t.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},{}],10:[function(e,t,r){var o=e("./closest");function n(e,t,r,l,a){var n=function(t,r,e,l){return function(e){e.delegateTarget=o(e.target,r),e.delegateTarget&&l.call(t,e)}}.apply(this,arguments);return e.addEventListener(r,n,a),{destroy:function(){e.removeEventListener(r,n,a)}}}t.exports=function(e,t,r,l,a){return"function"==typeof e.addEventListener?n.apply(null,arguments):"function"==typeof r?n.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return n(e,t,r,l,a)}))}},{"./closest":9}]},{},[1]);