const HWS={widgets:{},init:()=>{const a=document.querySelectorAll(`[data-hawt]:not(.${"init"})`),b=400,c="",d=a=>Object.entries(a)[0];a.forEach((a,e)=>{const f=`${"iframe_"}${e}`,{hawt:g,category:j="",title:k="",city:l="",tgids:m="",showMore:n="",tgid:o="",calendarLayout:p="",maxCount:h,campaignName:i}=a.dataset,q=document.createDocumentFragment(),r=document.createElement("iframe"),s=new URL(`${"https://partner.headout.com"}/embed/${g}`),t="calendar"===g,u="gallery"===g,v="searchParams";a.classList.add("init"),u?a.style.borderRadius="8px":(a.style.border="1px solid #e2e2e2",a.style.borderRadius=t?"12px":"8px"),a.style.width=t?"322px":"calc(100% - 1px)",a.style.height=t?"full_calendar"===p?"793px":"448px":"auto",a.style.display="flex",a.style.overflow="hidden",(t||u&&472{window.addEventListener("message",function(a){var c=Math.max;if(a.data.type==="ho-event-message"&&!isNaN(a.data.height)){const d=HWS.widgets[a.data.iframeId];if(void 0!==d){let e=c(parseInt(a.data.height),b);d.style.height="100%",d.parentElement.style.height=e+"px"}}},!1)})()}};document.addEventListener("DOMContentLoaded",HWS.init);