biofriction-wp-theme/node_modules/foundation-sites/dist/js/plugins/foundation.util.nest.min.js

3 lines
3.0 KiB
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./foundation.core"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.core","jquery"],t):"object"==typeof exports?exports["foundation.util.nest"]=t(require("./foundation.core"),require("jquery")):(e.__FOUNDATION_EXTERNAL__=e.__FOUNDATION_EXTERNAL__||{},e.__FOUNDATION_EXTERNAL__["foundation.util.nest"]=t(e.__FOUNDATION_EXTERNAL__["foundation.core"],e.jQuery))}(window,function(n,r){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=26)}({"./foundation.core":function(e,t){e.exports=n},"./js/entries/plugins/foundation.util.nest.js":function(e,t,n){"use strict";n.r(t);var r=n("./foundation.core");n.d(t,"Foundation",function(){return r.Foundation});var o=n("./js/foundation.util.nest.js");n.d(t,"Nest",function(){return o.Nest}),r.Foundation.Nest=o.Nest},"./js/foundation.util.nest.js":function(e,t,n){"use strict";n.r(t),n.d(t,"Nest",function(){return o});var r=n("jquery"),a=n.n(r),o={Feather:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"zf";e.attr("role","menubar");var t=e.find("li").attr({role:"menuitem"}),r="is-".concat(n,"-submenu"),o="".concat(r,"-item"),u="is-".concat(n,"-submenu-parent"),i="accordion"!==n;t.each(function(){var e=a()(this),t=e.children("ul");t.length&&(e.addClass(u),t.addClass("submenu ".concat(r)).attr({"data-submenu":""}),i&&(e.attr({"aria-haspopup":!0,"aria-label":e.children("a:first").text()}),"drilldown"===n&&e.attr({"aria-expanded":!1})),t.addClass("submenu ".concat(r)).attr({"data-submenu":"",role:"menubar"}),"drilldown"===n&&t.attr({"aria-hidden":!0})),e.parent("[data-submenu]").length&&e.addClass("is-submenu-item ".concat(o))})},Burn:function(e,t){var n="is-".concat(t,"-submenu"),r="".concat(n,"-item"),o="is-".concat(t,"-submenu-parent");e.find(">li, > li > ul, .menu, .menu > li, [data-submenu] > li").removeClass("".concat(n," ").concat(r," ").concat(o," is-submenu-item submenu is-active")).removeAttr("data-submenu").css("display","")}}},26:function(e,t,n){e.exports=n("./js/entries/plugins/foundation.util.nest.js")},jquery:function(e,t){e.exports=r}})});
//# sourceMappingURL=foundation.util.nest.min.js.map