biofriction-wp-theme/node_modules/foundation-sites/dist/js/plugins/foundation.responsiveMenu.m...

3 lines
6.2 KiB
JavaScript

!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("./foundation.util.mediaQuery"),require("./foundation.core"),require("jquery"),require("./foundation.core.utils"),require("./foundation.core.plugin"),require("./foundation.dropdownMenu"),require("./foundation.drilldown"),require("./foundation.accordionMenu")):"function"==typeof define&&define.amd?define(["./foundation.util.mediaQuery","./foundation.core","jquery","./foundation.core.utils","./foundation.core.plugin","./foundation.dropdownMenu","./foundation.drilldown","./foundation.accordionMenu"],e):"object"==typeof exports?exports["foundation.responsiveMenu"]=e(require("./foundation.util.mediaQuery"),require("./foundation.core"),require("jquery"),require("./foundation.core.utils"),require("./foundation.core.plugin"),require("./foundation.dropdownMenu"),require("./foundation.drilldown"),require("./foundation.accordionMenu")):(n.__FOUNDATION_EXTERNAL__=n.__FOUNDATION_EXTERNAL__||{},n.__FOUNDATION_EXTERNAL__["foundation.responsiveMenu"]=e(n.__FOUNDATION_EXTERNAL__["foundation.util.mediaQuery"],n.__FOUNDATION_EXTERNAL__["foundation.core"],n.jQuery,n.__FOUNDATION_EXTERNAL__["foundation.core"],n.__FOUNDATION_EXTERNAL__["foundation.core"],n.__FOUNDATION_EXTERNAL__["foundation.dropdownMenu"],n.__FOUNDATION_EXTERNAL__["foundation.drilldown"],n.__FOUNDATION_EXTERNAL__["foundation.accordionMenu"]))}(window,function(o,t,i,r,u,s,a,f){return function(o){var t={};function i(n){if(t[n])return t[n].exports;var e=t[n]={i:n,l:!1,exports:{}};return o[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}return i.m=o,i.c=t,i.d=function(n,e,o){i.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},i.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)i.d(o,t,function(n){return e[n]}.bind(null,t));return o},i.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(e,"a",e),e},i.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},i.p="",i(i.s=12)}({"./foundation.accordionMenu":function(n,e){n.exports=f},"./foundation.core":function(n,e){n.exports=t},"./foundation.core.plugin":function(n,e){n.exports=u},"./foundation.core.utils":function(n,e){n.exports=r},"./foundation.drilldown":function(n,e){n.exports=a},"./foundation.dropdownMenu":function(n,e){n.exports=s},"./foundation.util.mediaQuery":function(n,e){n.exports=o},"./js/entries/plugins/foundation.responsiveMenu.js":function(n,e,o){"use strict";o.r(e);var t=o("./foundation.core");o.d(e,"Foundation",function(){return t.Foundation});var i=o("./js/foundation.responsiveMenu.js");o.d(e,"ResponsiveMenu",function(){return i.ResponsiveMenu}),t.Foundation.plugin(i.ResponsiveMenu,"ResponsiveMenu")},"./js/foundation.responsiveMenu.js":function(n,e,o){"use strict";o.r(e),o.d(e,"ResponsiveMenu",function(){return v});var t=o("jquery"),u=o.n(t),s=o("./foundation.util.mediaQuery"),a=o("./foundation.core.utils"),r=o("./foundation.core.plugin"),i=o("./foundation.dropdownMenu"),f=o("./foundation.drilldown"),c=o("./foundation.accordionMenu");function d(n){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function l(n,e){for(var o=0;o<e.length;o++){var t=e[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function p(n,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(n){if(void 0!==n)return n;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):e}function _(n){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function y(n,e){return(y=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}var h={dropdown:{cssClass:"dropdown",plugin:i.DropdownMenu},drilldown:{cssClass:"drilldown",plugin:f.Drilldown},accordion:{cssClass:"accordion-menu",plugin:c.AccordionMenu}},v=function(n){function e(){return function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,_(e).apply(this,arguments))}var o,t,i;return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&y(n,e)}(e,r["Plugin"]),o=e,(t=[{key:"_setup",value:function(n,e){this.$element=u()(n),this.rules=this.$element.data("responsive-menu"),this.currentMq=null,this.currentPlugin=null,this.className="ResponsiveMenu",this._init(),this._events()}},{key:"_init",value:function(){if(s.MediaQuery._init(),"string"==typeof this.rules){for(var n={},e=this.rules.split(" "),o=0;o<e.length;o++){var t=e[o].split("-"),i=1<t.length?t[0]:"small",r=1<t.length?t[1]:t[0];null!==h[r]&&(n[i]=h[r])}this.rules=n}u.a.isEmptyObject(this.rules)||this._checkMediaQueries(),this.$element.attr("data-mutate",this.$element.attr("data-mutate")||Object(a.GetYoDigits)(6,"responsive-menu"))}},{key:"_events",value:function(){var n=this;u()(window).on("changed.zf.mediaquery",function(){n._checkMediaQueries()})}},{key:"_checkMediaQueries",value:function(){var e,o=this;u.a.each(this.rules,function(n){s.MediaQuery.atLeast(n)&&(e=n)}),e&&(this.currentPlugin instanceof this.rules[e].plugin||(u.a.each(h,function(n,e){o.$element.removeClass(e.cssClass)}),this.$element.addClass(this.rules[e].cssClass),this.currentPlugin&&this.currentPlugin.destroy(),this.currentPlugin=new this.rules[e].plugin(this.$element,{})))}},{key:"_destroy",value:function(){this.currentPlugin.destroy(),u()(window).off(".zf.ResponsiveMenu")}}])&&l(o.prototype,t),i&&l(o,i),e}();v.defaults={}},12:function(n,e,o){n.exports=o("./js/entries/plugins/foundation.responsiveMenu.js")},jquery:function(n,e){n.exports=i}})});
//# sourceMappingURL=foundation.responsiveMenu.min.js.map