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