!function(t){"function"==typeof define&&define.amd?define("accordions",t):t()}(function(){"use strict";MyListing.Accordions=function(){jQuery(function(s){var i=!1;s('[data-component="mylisting-accordion"]').on("click",function(t){var a,e;t.preventDefault(),i||(i=!0,s(this).attr("aria-expanded","true"===s(this).attr("aria-expanded")?"false":"true"),s(this).attr("data-target")?e=s(this).attr("data-target"):s(this).attr("href")&&(e=s(this).attr("href")),t=(a=s(e)).height(),s(this).closest(".panel-group").find(".in").not(a).each(function(){var t=s(this);t.height(t.height()),t.removeClass("collapse").addClass("collapsing").height(0),setTimeout(function(){t.addClass("collapse").removeClass("collapsing").removeClass("in").height("")},350)}),a.hasClass("in")?(a.height(t),a.removeClass("collapse").addClass("collapsing"),a.height(0)):(a.removeClass("collapse").addClass("collapsing").height(0),a.height(t)),setTimeout(function(){a.addClass("collapse").removeClass("collapsing").toggleClass("in").height(""),i=!1},350))})})},MyListing.Accordions()});
