(n=>{"function"==typeof define&&define.amd?define("openChat",n):n()})(function(){jQuery(function(t){t(".cts-open-chat").on("click",function(n){n.preventDefault();var n=t(this).data("user-id")||null,e=t(this).data("post-data");if(!t("body").hasClass("logged-in"))return window.location.href=CASE27.login_url;MyListing.Messages.open(n,e),setTimeout(function(){t(MyListing.Messages.$el).find("#ml-conv-textarea").focus()},150)})})});
