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