1import{r as t,dB as g,o as h,j as e}from"./app-C_ju_lDz.js";import{S as E}from"./loading-7dXBI1nP.js";/* empty css */function v({id:m,formId:u,plausibleEventName:i}){const[n,f]=t.useState(!1),[x,p]=t.useState(!1),o=`hbl-${m}`;t.useEffect(()=>{const s=document.createElement("script");s.src="https://cdn.hubilo.com/ticketing/widget/static/js/ticketing-widget.js",s.async=!0,document.body.appendChild(s),s.onload=()=>f(!0)},[]),t.useEffect(()=>()=>{document.getElementById(o)||document.getElementsByTagName("html")[0].removeAttribute("style")},[]),t.useEffect(()=>{n&&window["@hubilotechnologies/ticketing-micro-fe"].init({container:document.getElementById(o),props:{communityUrl:`https://events.virtualpro.com/${u}`,languageCode:"EN",showEventInfo:!1,hideEventLogo:!1,hideEventSocialLinks:!1,isWidgetExpand:!0,environment:"production"}}),document.getElementsByTagName("html")[0].setAttribute("style","font-size: 16px !important"),p(!0)},[n]);const r=t.useRef(null);return g(r,(s,d)=>{var l;if(typeof i!="string"){d.disconnect();return}const c=(l=r.current)==null?void 0:l.querySelectorAll("button");c==null||c.forEach(a=>{!a.classList.contains("moreInfo")&&!a.classList.contains(i)&&(a.classList.add(...i.replace(/\s+/g," ").trim().split(" ")),d.disconnect())})},{childList:!0,subtree:!0}),h()?e.jsx(e.Fragment,{}):e.jsxs("div",{className:"min-h-[10rem]",children:[!n&&e.jsx("div",{className:"w-full flex justify-center p-8",children:e.jsx(E,{className:"animate-spin h-16 w-16 text-secondary-300"})}),e.jsx("div",{id:o,ref:r})]})}export{v as default}; 2//# sourceMappingURL=hubilo-form-CTF4S4kn.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.