text: /**
   * skylark-domx-plugins-toggles - The skylark toggle plugin library
   * @author Hudaokeji, Inc.
   * @version v0.9.0
   * @link https://github.com/skylark-domx-plugins/skylark-domx-plugins-toggles/
   * @license MIT
   */
  define(["skylark-langx/langx","skylark-domx-browser","skylark-domx-eventer","skylark-domx-noder","skylark-domx-geom","skylark-domx-query","skylark-domx-plugins-base","./toggles"],function(e,t,a,r,n,i,s,d){"use strict";var l=s.Plugin.inherit({klassName:"Tab",pluginName:"lark.toggles.tab",_construct:function(t,a){this.element=i(t),this.target=a&&a.target,this.element.on("click.lark.toggles.tab",e.proxy(function(e){e.preventDefault(),this.show()},this))},show:function(){var e=this.element,t=e.closest("ul:not(.dropdown-menu)"),r=this.target||e.data("target");if(r||(r=(r=e.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=t.find(".active:last a"),s=a.create("hide",{relatedTarget:e[0]}),d=a.create("show",{relatedTarget:n[0]});if(n.trigger(s),e.trigger(d),!d.isDefaultPrevented()&&!s.isDefaultPrevented()){var l=i(r);this.activate(e.closest("li"),t),this.activate(l,l.parent(),function(){n.trigger({type:"hidden",relatedTarget:e[0]}),e.trigger({type:"shown",relatedTarget:n[0]})})}}},activate:function(e,a,r){var n=a.find("> .active"),i=r&&t.support.transition&&(n.length&&n.hasClass("fade")||!!a.find("> .fade").length);function s(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),i?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}n.length&&i?n.one("transitionEnd",s).emulateTransitionEnd(l.TRANSITION_DURATION):s(),n.removeClass("in")}});return l.TRANSITION_DURATION=150,s.register(l),d.Tab=l});
  //# sourceMappingURL=sourcemaps/tab.js.map
  