"use strict";!function(a,n,s,i){var t,o,c="is-openNavmainSecond",e=function(){a(".js-navmain-second-sub").each(function(){var n=a(this),s=n.find(".js-navmain-second-body");n.hasClass(c)&&(s.css("height",s.get(0).scrollHeight).height(""),n.removeClass(c))})};a(n),t=a(s),(o=a(".js-navmain")).length&&((t=a(s)).on("click",".js-navmain-second-sub-button",function(n){n.preventDefault(),n.stopPropagation();var s=a(n.currentTarget),i=s.parents(".js-navmain-second-sub"),e=s.parents(".js-navmain-second-sub");o.find(".js-navmain-second-sub").each(function(){var n=a(this),s=n.find(".js-navmain-second-body");n.is(e)?i.hasClass(c)?(s.css("height",s.get(0).scrollHeight).height(""),i.removeClass(c)):(s.css("height",s.get(0).scrollHeight),s.one("webkitTransitionEnd oTransitionEnd MSTransitionEnd transitionEnd",function(n){s.css("height","")}),i.addClass(c),t.triggerHandler("navMain/isOpened")):n.hasClass(c)&&(s.css("height",s.get(0).scrollHeight).height(""),n.removeClass(c))})}),t.on("click",function(n){a(".is-openNavmainSecond").length&&e()}))}(jQuery,window,document);