text: !function(e){var t={};function o(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=13)}({13:function(e,t,o){o(14),e.exports=o(15)},14:function(e,t){$(document).ready(function(){var e=$("#sticky_box").height(),t=function(){$(window).scrollTop()>e?($("#sticky_box").addClass("sticky"),$("#logo_box").addClass("sticky_header_logo_box").removeClass("header_logo_box"),$("#custom_heater_form").addClass("custom_heater_form_sticky"),$(".first_section").css("margin-top","64px")):($("#sticky_box").removeClass("sticky"),$("#logo_box").addClass("header_logo_box").removeClass("sticky_header_logo_box"),$(".custom_heater_form").css("margin","11px 0 16px 0"),$(".mega_menu_hover_line:hover:after").css("bottom","0"),$(".first_section").css("margin-top","0"))};t(),$(window).scroll(function(){t()})}),$(".last_property_slider").slick({infinite:!1,speed:300,slidesToShow:2,prevArrow:$(".last_property_prev"),nextArrow:$(".last_property_next"),dots:!1,appendArrows:".arrows_box",slidesToScroll:1,responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".urgent_sail").slick({infinite:!1,speed:300,slidesToShow:2,prevArrow:$(".urgent_arrow_prev"),nextArrow:$(".urgent_arrow_next"),dots:!1,appendArrows:".arrows_box",slidesToScroll:1,responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(document).ready(function(){$(".list_box").click(function(){$(this).children(".list_switcher").hasClass("fa-minus")?($(this).children(".list_switcher").removeClass("fa-minus"),$(this).children(".list_switcher").addClass("fa-plus")):($(this).children(".list_switcher").addClass("fa-minus"),$(this).children(".list_switcher").removeClass("fa-plus")),$(this).children(".list_advantage").toggle("slow")})}),$(document).ready(function(){$(".menu_btn").click(function(){$(this).toggleClass("change"),$(".main_nav").toggleClass("display_flex")})}),$(document).ready(function(){$(".admin_list_link").click(function(){$(".admin_submenu").css("display","none"),$(this).next().toggleClass("show"),$(this).toggleClass("current")})}),$(document).ready(function(){$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),$(".users_phone_box ").on("click","button.remove_phone_btn",function(e){e.preventDefault();var t=$(this).val();console.log(t);$(".userId").val();$.ajax({type:"POST",headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},url:"/removePhones",data:{phoneId:t},success:function(e){}})})}),$(document).ready(function(){var e=$(".admin_phone_input").length;$("#add_new_phone").click(function(t){var o='<div class="position-relative new_users_phone clearfix"><button class="btn btn-danger d-inline-block remove_phone_btn position-absolute" data-token="{{ csrf_token() }}"> <i class="fa fa-minus"></i> </button><input type="text" class="form-control form-control-lg d-inline-block  pull-right admin_phone_input position-relative" id="phone'+e+'" placeholder = "введите дополнительный телефон" name="newphone'+e+'"> </div>';for(t.preventDefault();e<3;){$(".users_phone_box").append(o),e++,console.log(e),3==e&&$("#add_new_phone").attr("disabled",!0);break}}),$(".users_phone_box").on("click","button.remove_phone_btn",function(){$(this).parent().remove(),--e<3&&$("#add_new_phone").attr("disabled",!1)})}),$(document).ready(function(){$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),$('#imgAdd[name="img"]').on("change",function(){var e=document.getElementById("image"),t=$(this)[0].files[0],o=$("#newUsername").val();$("#image").attr("src",window.URL.createObjectURL(t));var n=new Cropper(e,{aspectRatio:1});n.crop(),$("#saveImg").on("click",function(){n.getCroppedCanvas().toBlob(function(e){var t=new FormData;t.append("croppedImage",e),t.append("username",o),$.ajax({type:"POST",url:"/userLogo",data:t,processData:!1,contentType:!1,success:function(e){console.log(e),$("#modal").removeClass("show"),$("body").removeClass("modal-open")},error:function(e){}})})})})}),$(document).ready(function(){$(".custom_field_add_btn").click(function(e){var t=$(this).val();switch(""!==t){case"operation"===t:$("#modalOperation").modal("show");break;case"type"===t:$("#modalType").modal("show");break;case"place"===t:$("#modalPlace").modal("show")}})}),$(document).ready(function(){$("#openUserMessage").click(function(){$("#myModal").modal("show")}),$(".send_message").click(function(){$("#myModal").modal("show")})}),$(document).ready(function(){null!==document.getElementById("fileMulti")&&document.getElementById("fileMulti").addEventListener("change",function(e){for(var t,o=e.target.files,n=0;t=o[n];n++){console.log(o[n]),t.type.match("image.*")||alert("Image only please....");var s=new FileReader;s.onload=function(e){return function(t){var o=document.createElement("span");o.className="col-3 mb-3 position-relative",o.innerHTML=['<button class="position-absolute btn btn-danger remove_object_img" type="button" value="0"><i class="fa fa-minus  "></i></button><img class="img_responsive" title="',escape(e.name),'" src="',t.target.result,'" />'].join(""),document.getElementById("outputMulti").insertBefore(o,null)}}(t),s.readAsDataURL(t)}},!1)}),$(document).ready(function(){$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),$("#outputMulti").on("click","button.remove_object_img",function(e){var t=$(this).val();console.log(t),0==t&&$(this).parent().fadeOut(),0!==t&&($(this).parent().fadeOut(),$.ajax({type:"POST",headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},url:"/removeImages",data:{imageId:t},success:function(e){},error:function(e){}}))})}),$(document).ready(function(){$(".row").on("click","#links",function(e){var t=(e=e||window.event).target||e.srcElement,o={index:t.src?t.parentNode:t,event:e},n=this.getElementsByTagName("a");blueimp.Gallery(n,o)})})},15:function(e,t){}});
  //# sourceMappingURL=main.js.map