The online scheduler is not available at the moment.
Please try again later or contact sales@kandji.io if the problem persists.",o.appendChild(m),setTimeout((()=>{a[e.id].formWrapper.append(o)}),600)}a[e.id].redirectTo=!1}else(0,co.default)("HS Form Submitted => action not defined",e)},onFormSubmitted:e=>{"2212b7c8-7035-4480-b424-628557b3e33d"===e.id&&(Object.keys(u.get()).forEach((function(o){u.remove(o,{})})),localStorage.clear(),sessionStorage.clear(),document.getElementsByClassName("js-form-reload")[0].classList.remove("hidden")),a[e.id].redirectTo&&(a[e.id].xss&&(a[e.id].redirectTo="/"),a[e.id].redirectTo.match(/:\/\//g)?o.location.href=a[e.id].redirectTo:o.location.href=`${o.location.protocol}//${o.location.host}${a[e.id].redirectTo}`)}};o.addEventListener("message",(o=>{if("object"==typeof o.data&&"string"==typeof o.data.type&&"hsFormCallback"===o.data.type){if("4875c91d-6cf2-4f21-a768-a42c21ab88df"===o.data.id||"657409c6-f4eb-4fd4-891f-2d280d95a898"===o.data.id||"ef2532f3-1ab0-4579-8e63-f190b92940cb"===o.data.id||"87f179ab-4726-4e60-a300-16199a0b9093"===o.data.id||"02c6fde2-06dc-4cb1-84c9-1039388eddef"===o.data.id||"cfcc1e2e-3b49-4e17-9bd2-523f2d6b738c"===o.data.id||"047310a1-088c-4cf7-8a92-eb5b687a145b"===o.data.id)return;let e=o.data.eventName||"unknown";(0,co.default)("HS Callback:",e,o.data);let a=e.replace("on","").replace("Form","").replace(/[A-Z]/g,(o=>"_"+o)).replace(/^_/,"").toLowerCase(),m={id:o.data.id,name:document.title,location:location.pathname,group:jo(o.data.id),value:"",platform:"hubspot",field_values:{}};typeof o.data.data<"u"&&(Array.isArray(o.data.data)?m.field_values=o.data.data.reduce(((o,{name:e,value:a})=>({...o,[e]:a})),{}):m.field_values=o.data.data),typeof m.field_values.form_submission_name<"u"&&(m.name=m.field_values.form_submission_name),Object.keys(m.field_values).filter((o=>{o.toLowerCase().includes("email")&&(m.field_values[o]=(0,vo.default)(m.field_values[o]))})),delete m.field_values.firstname,delete m.field_values.lastname,delete m.field_values.hs_context;try{switch(e){case"onFormReady":case"onFormSubmit":case"onFormSubmitted":(0,ro.default)({event:`hsform.${a}`,form:m}),c[e](o.data);break;case"onBeforeFormInit":case"onBeforeValidationInit":c[e](o.data);break;default:(0,co.default)("No callback with name:",e)}}catch(o){console.error("Error in HS Callback:",e,o)}}}))})(window,document,{})})();/*! Bundled license information:js-cookie/dist/js.cookie.mjs:(*! js-cookie v3.0.5 | MIT *)*/