(self.webpackChunksymfony=self.webpackChunksymfony||[]).push([[7376],{70471:function(t,e,n){"use strict";n.d(e,{ZP:function(){return r}});var o,r=null;null===r&&(o=document.getElementById("js__dataForJs"),r=null===o?{}:JSON.parse(atob(o.value))),r=r},25383:function(t,e,n){"use strict";n(41539),n(88674),n(89554),n(54747),n(66992),n(78783),n(33948);var o,r,c=n(70471),i=(n(10232),function(t){var e={LISTING_ID:"listingId",SHOW_LISTING_PREVIEW_FOR_OWNER:"showListingPreviewForOwner",SHOW_CONTACT_HTML:"showContactHtml",CSRF_TOKEN:"csrfToken"},n=new FormData;n.append(e.LISTING_ID,t.getAttribute("data-listing-id")),n.append(e.SHOW_LISTING_PREVIEW_FOR_OWNER,c.ZP[e.SHOW_LISTING_PREVIEW_FOR_OWNER]),fetch(t.getAttribute("data-route"),{method:"post",body:n,headers:{"X-CSRF-Token":c.ZP[e.CSRF_TOKEN]}}).then((function(t){return t.json()})).then((function(n){var o;!0===n.success&&(null===(o=document.querySelector(".js__listingContactData"))||void 0===o||o.remove(),t.insertAdjacentHTML("beforebegin",n[e.SHOW_CONTACT_HTML]),t.style.display="none")})).catch((function(e){throw document.querySelectorAll(".js__listingContactData").forEach((function(t){return t.remove()})),t.style.display="block",e}))}),l=function(t){t.preventDefault();var e=this;"function"==typeof window.fetch?i(e):n.e(7147).then(n.bind(n,57147)).then((function(t){window.fetch=t.fetch,i(e)}))};null===(o=document.querySelector(".js__listingShowContactDetails"))||void 0===o||o.addEventListener("click",l),null===(r=document.querySelector(".js__listingShowContactDetails"))||void 0===r||r.addEventListener("touchstart",l),document.addEventListener("click",(function(t){t.target.closest(".js__reloadPage")&&location.reload()}))},10232:function(){"undefined"!=typeof Element&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}))}},function(t){t.O(0,[2719,9825,9125],(function(){return e=25383,t(t.s=e);var e}));t.O()}]);
//# sourceMappingURL=listing_contact_data.99ea3ade.js.map