!function(i){"function"==typeof define&&define.amd?define("quickViewModal",i):i()}(function(){"use strict";window.openQuickViewModal=function(c,i){c(".c27-quick-view-modal").modal("show"),c(".c27-quick-view-modal").addClass("loading-modal"),c.ajax({url:CASE27.mylisting_ajax_url+"&action=get_listing_quick_view&security="+CASE27.ajax_nonce,type:"GET",dataType:"json",data:{listing_id:c(i.currentTarget).data("id")},success:function(i){c(".c27-quick-view-modal").removeClass("loading-modal"),c(".c27-quick-view-modal .modal-content").html(i.html),c(".c27-quick-view-modal .c27-map").css("height",c(".c27-quick-view-modal .modal-content").height()),c(window).trigger("resize"),setTimeout(function(){new MyListing.Maps.Map(c(".c27-quick-view-modal .c27-map").get(0))},10),MyListing.BackgroundCarousel(),c(".c27-quick-view-modal .container").each(function(i,e){c(e).height()%2!=0&&c(e).height(c(e).height()+1)});i=c(".c27-quick-view-modal .modal-content").height();c(".c27-quick-view-modal .block-map").css("height",i)}})}});
