1if(!window.bf_globals){ window.bf_globals = {};} 2(function(){ 3var bfSetupGlobals = function(){ 4["bitforms_2_227938_1","bitforms_2_227938_2","bitforms_2_227938_3","bitforms_2_227938_4","bitforms_2_227938_5","bitforms_2_227938_6","bitforms_2_227938_7","bitforms_2_227938_8","bitforms_2_227938_9","bitforms_2_227938_10","bitforms_2_227938_11","bitforms_2_227938_12","bitforms_2_227938_13","bitforms_2_227938_14","bitforms_2_227938_15","bitforms_2_227938_16","bitforms_2_227938_17","bitforms_2_227938_18","bitforms_2_227938_19","bitforms_2_227938_20","bitforms_2_227938_21","bitforms_1_227938_22","bitforms_2_227938_23"].forEach(function(contentId){ 5const form = document.getElementById(contentId); 6if(!form){ 7delete window.bf_globals[contentId]; 8return; 9} 10if(!window.bf_globals[contentId]){ 11window.bf_globals[contentId] = {inits: {}, contentId: contentId}; 12}else{ 13window.bf_globals[contentId].inits = {}; 14window.bf_globals[contentId].contentId = contentId; 15} 16}); 17}; 18// Wait for DOM ready: optimizers can run this before the form markup is 19// parsed, and the not-found branch would then delete arrived config. 20if(document.readyState === "loading"){ 21document.addEventListener("DOMContentLoaded", bfSetupGlobals); 22} else { 23bfSetupGlobals(); 24} 25})();var bfSelect=function(){"use strict";return function(e,t){return(t||document).querySelector(e)}}(); 26var bfReset=function(){"use strict";return function(e,t=!1){if(t){const t=new CustomEvent("bf-form-reset",{detail:{formId:e}});bfSelect(`#form-${e}`).dispatchEvent(t)}const r=window.bf_globals[e];"undefined"!=typeof resetPlaceholders&&resetPlaceholders(r),"undefined"!=typeof bfResetDefaultValue&&bfResetDefaultValue(r),"undefined"!=typeof customFieldsReset&&customFieldsReset(r),"undefined"!=typeof resetOtherOpt&&resetOtherOpt(e),bfSelect(`#form-${e}`).reset(),"undefined"!=typeof initTextLengthHelper&&initTextLengthHelper(e),"undefined"!=typeof initPasswordStrengthHelper&&initPasswordStrengthHelper(e),localStorage.setItem("bf-entry-id",""),r.inits?.multi_step_form&&r.inits.multi_step_form.reset(),Object.keys(r.fields).forEach(t=>{const r=bfSelect(`#form-${e} .${t}-err-wrp`);r&&(setStyleProperty(r,"height","0px"),setStyleProperty(r,"opacity",0),setStyleProperty(bfSelect(`.${t}-err-msg`,r),"display","none"))}),r.gRecaptchaSiteKey&&"v2"===r.gRecaptchaVersion&&window?.grecaptcha?.reset(),r.turnstileSiteKey&&window?.turnstile?.reset(),r.hCaptchaSiteKey&&window?.hcaptcha?.reset()}}(); 27var setBFMsg=function(){"use strict";return function(e){if("undefined"!=typeof handleConversationalFormMsg&&handleConversationalFormMsg(e))return;let t=bfSelect(`#bf-form-msg-wrp-${e.contentId}`);if(!t)return;t.innerHTML=`<div class="bf-form-msg deactive ${e.type} scroll">${e.msg}</div>`,t=bfSelect(".bf-form-msg",t);let s=5e3;if(e.msgId){const c=bfSelect(`.msg-content-${e.msgId} .msg-content`,bfSelect(`#${e.contentId}`)),n=bfSelect(`.msg-container-${e.msgId}`,bfSelect(`#${e.contentId}`));c&&n&&(c.innerHTML=e.msg,t=n,s=e.duration)}t&&(t.classList.replace("active","deactive"),t.classList.contains("scroll")&&scrollToElm(t),setTimeout(()=>{t.classList.replace("deactive","active")},100),s&&setTimeout(()=>{t.classList.replace("active","deactive")},s))}}(); 28var bfSplit=function(){"use strict";return function(t,n,i=","){const r=n?.configs?.bf_separator||"__bf__";return t.includes(r)?t.split(r):t.split(i)}}(); 29var scrollToElm=function(){"use strict";const t=function(t){t&&!function(t,e=10){if(!t)return!0;const n=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return n.top>=e&&n.left>=e&&n.bottom<=o-e&&n.right<=i-e}(t)&&(function(t){let e=t.parentElement;for(;e&&e!==document.body;){if(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth){e.scrollIntoView({behavior:"smooth"});break}e=e.parentElement}}(t),t.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))},e=function(t){let e;const n=function(...n){clearTimeout(e),e=setTimeout(()=>t(...n),300)};return n.cancel=function(){clearTimeout(e)},n}(t);return function(n,{immediate:o=!1}={}){e.cancel(),o?t(n):e(n)}}(); 30var getFldKeyAndRowIndx=function(){"use strict";return function(n){const t=n.match(/([^\[]+)(?:\[(\d+)\])?/);return t?[t[1],t[2]||""]:[n]}}(); 31var moveToFirstErrFld=function(){"use strict";return function(t,r=[]){const e=t?.layout||{},n=t?.nestedLayout||{},o=Array.isArray(e)&&e.length>1,i=Array.isArray(e)?e:[{layout:e}];let s=-1;const l=i.reduce((e,o,i)=>{const l=o.layout.lg.reduce((r,e)=>{const o=e.i;if(o in n){const t=n[o].lg.map(t=>t.i);return[...r,o,...t]}const i=t?.fields?.[o]?.childFields;if(Array.isArray(i)&&i.length){const t=i.map(t=>
31t?.fldKey).filter(Boolean);return[...r,o,...t]}return[...r,o]},[]),c=l.find(t=>r.includes(t));return-1===s&&c&&(s=i),[...e,...l]},[]);o&&s>-1&&t.inits.multi_step_form.step!==s+1&&(t.inits.multi_step_form.step=s+1),t.inits?.conversational_form&&(t.inits.conversational_form.activeFieldStep=r[0]),l.some(e=>r.some(r=>{const[n,o]=getFldKeyAndRowIndx(r);if(e===n){const r=o?`.rpt-index-${o}`:"",n=`#form-${t.contentId} ${r}`,i=bfSelect(`${n} .btcd-fld-itm.${e}, ${n} .${e}-sub-fld-wrp, ${n} .${e}-fld-wrp`);return scrollToElm(i),setTimeout(()=>{const n=bfSelect(`#form-${t.contentId} ${r} .${e}-fld, #form-${t.contentId} ${r} .${e}-cc input, #form-${t.contentId} ${r} .${e}-dpd-wrp`);n&&n.focus({preventScroll:!0})},450),!0}return!1}))}}(); 32var bfValidationErrMsg=function(){"use strict";return function(e,t){const{data:r}=e;r&&"string"==typeof r?setBFMsg({contentId:t,msg:r,error:!0,show:!0,type:"error"}):r&&(void 0!==r.$form&&(setBFMsg({contentId:t,msg:r.$form.message,msgId:r.$form.msg_id,duration:r.$form.msg_duration,type:"error"}),delete r.$form),Object.keys(r).length>0&&function(e,t){const r=Object.keys(e);r.forEach(r=>{const[o,s]=getFldKeyAndRowIndx(r),y=bfSelect(`#form-${t} ${s?`.rpt-index-${s}`:""} .${o}-err-wrp`),i=bfSelect(`.${o}-err-txt`,y),n=bfSelect(`.${o}-err-msg`,y);let l=!1;try{l="grid"===getComputedStyle(y).display,l&&(y.style.removeProperty("opacity"),y.style.removeProperty("height"),n.style.removeProperty("display"))}catch(e){l=!1}i.innerHTML=e[r],l?setStyleProperty(y,"grid-template-rows","1fr"):setTimeout(()=>{n.style.removeProperty("display"),setStyleProperty(y,"height",`${i.offsetHeight}px`),setStyleProperty(y,"opacity",1)},100)}),moveToFirstErrFld(window?.bf_globals?.[t],r)}(r,t))}}(); 33var setHiddenFld=function(){"use strict";return function e(t,n){let a=bfSelect(`input[name="${t.name}"]`,n);return a||(a=document.createElement("input"),a.type="text",a.className="d-none",n.append(a)),"b_h_t"===t.name&&(bfSelect(`input[name="${a.value}"]`,n)?.remove(),e({name:t.value,required:""},n)),Object.keys(t).forEach(e=>{a.setAttribute(e,t[e])}),a}}(); 34var submit_form=function(){"use strict";function e(e,t){const a=new URL(e?.ajaxURL),o=e?.entryId?"bitforms_update_form_entry":"bitforms_submit_form";return a.searchParams.append("action",o),e?.entryId&&(a.searchParams.append("_ajax_nonce",e.nonce||""),a.searchParams.append("entryID",e.entryId),a.searchParams.append("formID",e.formId),a.searchParams.append("entryToken",e.entryToken||"")),fetch(a,{method:"POST",body:t})}const t=[403,406];function a(e){const t=window.bf_globals?.[e],a={contentId:e,message:t?.wafBlockMsg||"Your submission was blocked by the site's security firewall."};return bfSelect(`#form-${e}`)?.dispatchEvent(new CustomEvent("bf-form-waf-blocked",{bubbles:!0,detail:a})),a.message}function o(e,o,r){e.then(e=>e.text().then(n=>{let r=null;try{r=JSON.parse(n)}catch(e){r=null}if(null===r){const n=t.includes(e.status),r=new Error(n?"waf-blocked":"Invalid response");throw r.wafBlocked=n,r.data={data:n?a(o):"Invalid server response. Check the browser console for more details."},r}if(e.status>=400){const e=new Error(r?.data||"Request failed");throw e.data=r,e}return r})).then(e=>{let t=null,a=null,s="",d=1e3;const c=window.bf_globals[o];if(void 0!==e&&e.success){const n=new CustomEvent("bf-form-submit-success",{detail:{formId:o,entryId:e.data?.entry_id,formData:r}});bfSelect(`#form-${o}`).dispatchEvent(n);const i=bfSelect(`#form-${o}`),l="object"==typeof e.data&&e.data.afterSubmit?e.data.afterSubmit:"reset";if("keep"!==l&&bfReset(o),"hide"===l&&i&&i.remove(),"object"==typeof e.data){i&&"hide"!==l&&e?.data?.hidden_fields?.map(e=>{setHiddenFld(e,i)}),t=e.data.redirectPage,e.data.cron&&(a=e.data.cron),e.data.cronNotOk&&(a=e.data.cronNotOk),e.data.new_nonce&&(s=e.data.new_nonce,c.nonce=s);let n=!1;!e.data.suppressConfirmation&&e.data.message&&(n=!0,setBFMsg({contentId:o,msgId:e.data.msg_id,msg:e.data.message,duration:e.data.msg_duration,show:!0,type:"success",error:!1})),d=n?Number(e.data.msg_duration||1e3):0}else setBFMsg({contentId:o,msg:e.data,type:"success",show:!0,error:!1});if(localStorage.removeItem(`bitform-partial-form-${c.formId}`),"hide"!==l){const e=bfSelect('input[name="entryID"]',i);e&&e.remove()}delete c.entryId}else{const t=new CustomEvent("bf-form-submit-error",{detail:{formId:o,errors:e.data}});bfSelect(`#form-${o}`).dispatchEvent(t),bfValidationErrMsg(e,o)}if(function(e,t,a){const o=window.bf_globals[a];if(e)if("string"==typeof e){const t=new URL(e);t.protocol!==window.location.protocol&&(t.protocol=window.location.protocol),fetch(t,{keepalive:!0}
34).catch(()=>{})}else{const a=new URL(o.ajaxURL);a.searchParams.append("action","bitforms_trigger_workflow");const n={cronNotOk:e,token:t||o.nonce,id:o.appID},r=()=>fetch(a,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"},keepalive:!0});r().catch(()=>{setTimeout(()=>{r().catch(()=>{})},2e3)})}}(a,s,o),t){const e=setTimeout(()=>{window.location=decodeURI(t),e&&clearTimeout(e)},d)}n(o,!1)}).catch(e=>{if(e&&"object"==typeof e&&"data"in e){const t=e.data,a=new CustomEvent("bf-form-submit-error",{detail:{formId:o,errors:t?.data??t}});if(bfSelect(`#form-${o}`)?.dispatchEvent(a),"undefined"!=typeof bfValidationErrMsg)bfValidationErrMsg(t??{data:e.message},o);else{const a=t&&"string"==typeof t.data?t.data:e?.message||"Validation failed";setBFMsg({contentId:o,msg:a,show:!0,type:"error",error:!0})}}else{const t=e?.message?e.message:"Unknown Error";setBFMsg({contentId:o,msg:t,show:!0,type:"error",error:!0})}n(o,!1)})}function n(e,t){const a=bfSelect('button[type="submit"]',bfSelect(`#form-${e}`));a&&(a.disabled=t);const o=bfSelect('button[type="submit"] span',bfSelect(`#form-${e}`));o&&o.classList.toggle("d-none")}return function(t=null){(t?[t]:Object.keys(window.bf_globals||{})).forEach(t=>{const a=bfSelect(`#form-${t}`);a&&(a.addEventListener("submit",t=>{!function(t){t.preventDefault();const a=t.target.id.slice(t.target.id.indexOf("-")+1);if("undefined"!=typeof validateForm&&!validateForm({form:a})){const e=new CustomEvent("bf-form-validation-error",{detail:{formId:a,fieldId:"",error:""}});return void t.target.dispatchEvent(e)}n(a,!0);let r=new FormData(t.target);const s=window.bf_globals[a];"undefined"!=typeof advancedFileHandle&&(r=advancedFileHandle(s,r)),"undefined"!=typeof decisionFldHandle&&(r=decisionFldHandle(s,r)),"undefined"!=typeof hideChildFldHandle&&(r=hideChildFldHandle(s,r)),s.GCLID&&r.set("GCLID",s.GCLID);const d=[];Object.entries(s?.fields||{}).forEach(e=>{e[1]?.valid?.hide&&d.push(e[0])}),d.length&&r.append("hidden_fields",d),"v3"===s?.gRecaptchaVersion&&s?.gRecaptchaSiteKey?grecaptcha.ready(()=>{grecaptcha.execute(s.gRecaptchaSiteKey,{action:"submit"}).then(t=>{r.append("g-recaptcha-response",t),o(e(s,r),a,r)}).catch(()=>{n(a,!1),setBFMsg({contentId:a,msg:"reCAPTCHA verification failed. Please try again.",show:!0,type:"error",error:!0})})}):o(e(s,r),a,r)}(t)}),bfSelect('button[type="reset"]',a)?.addEventListener("click",()=>bfReset(a.id.replace("form-",""),!0)))}),document.querySelectorAll(".msg-backdrop,.bf-msg-close").forEach(e=>{e.addEventListener("click",t=>{t.target===e&&(t.stopPropagation(),bfSelect(`#${e.dataset.contentid} .msg-container-${e.dataset.msgid}`).classList.replace("active","deactive"))})}),localStorage.setItem("bf-entry-id","")}}(); 35var setStyleProperty=function(){"use strict";return function(t,e,r){t?.style&&t.style.setProperty(e,r,"important")}}(); 36var hidden_token_field=function(){"use strict";const e=new WeakSet,n=(e,n,t)=>{const o=new URL(n.ajaxURL);o.searchParams.append("action","bitforms_onload_added_field_and_property");const a=t.querySelector('input[name="bitforms_id"]')?.value,d=n.formId||(a?a.replace(/^bitforms_/,""):void 0);if(!d)return Promise.resolve();const r={formId:d};return fetch(o,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(n=>{void 0!==n?.success&&(n?.data?.hidden_fields?.map(e=>{setHiddenFld(e,t)}),n?.data?.hidden_properties?.map(n=>{window.bf_globals?.[e]&&(window.bf_globals[e][n.name]=n.value)}))}).catch(()=>{})};return function(t=null){try{(t?[t]:Object.keys(window?.bf_globals||{})).forEach(t=>{const o=window.bf_globals?.[t];o?.ajaxURL&&((t,o)=>{try{const a=bfSelect(`#form-${t}`);if(!a)return;if(n(t,o,a),!e.has(a)){e.add(a);const d=()=>{a.removeEventListener("focusin",d),a.removeEventListener("pointerdown",d),n(t,o,a)};a.addEventListener("focusin",d),a.addEventListener("pointerdown",d)}}catch(e){}})(t,o)})}catch(e){}}}(); 37var requiredFldValidation=function(){"use strict";return r=>r?.valid?.req?"req":""}(); 38var generateBackslashPattern=function(){"use strict";return t=>(t||"").split("$_bf_$").join("\\")}(); 39var emailFldValidation=function(){"use strict";return(e,t)=>t.err.invalid.show?new RegExp(generateBackslashPattern(t.pattern)).test(e)?"":"invalid":""}(); 40var validateForm=function(){"use strict";let e,t,i={},n=[];const l=t=>window?.bf_globals?.[e].inits?.[t],r=(e,t,i)=>{const n=Number(i)>1?`${e}[${i}]`:e;return t.inits&&!t.inits[n]?e:n},d=e=>{const n=e.replace(/\[\d*\]/g,"");if(i[n])return i[n];const l=Object.entries(t);for(let e=0;e<l.length;e+=1){const[t,r]=l[e];
40if(r?.fieldName===n)return i[n]=t,t}return""},o=()=>{const n=new FormData(bfSelect(`#form-${e}`)),l={},r=Array.from(n.entries());return i={},r.forEach(([e,i])=>{const n=d(e),r=e.replace("[]","");n in t&&(l[r]?(Array.isArray(l[r])||(l[r]=[l[r]]),l[r].push(i)):l[r]=i)}),l},a=(t,i,l,r="")=>{const d=bfSelect(`#form-${e} ${r} .${i}-err-wrp`),o=bfSelect(`.${i}-err-txt`,d),a=bfSelect(`.${i}-err-msg`,d);let f=!1;try{f="grid"===getComputedStyle(d).display,f&&(d.style.removeProperty("opacity"),d.style.removeProperty("height"),a.style.removeProperty("display"))}catch(e){f=!1}const s=bfSelect(`#form-${e} ${r} .${i}-fld`),c=bfSelect(`#form-${e} ${r} .${i}-cc[role="group"], #form-${e} ${r} .${i}-cc[role="radiogroup"]`);if(o&&"err"in(l||{}))if(t&&l?.err?.[t]?.show){const{custom:e,msg:r,dflt:p}=l.err[t];o.innerHTML=e&&r?r:p,f?setStyleProperty(d,"grid-template-rows","1fr"):setTimeout(()=>{a.style.removeProperty("display"),setStyleProperty(d,"height",`${o.offsetHeight}px`),setStyleProperty(d,"opacity",1)},100),n.push(i),s&&s.setAttribute("aria-invalid","true"),c&&c.setAttribute("aria-invalid","true")}else o.innerHTML="",f?setStyleProperty(d,"grid-template-rows","0fr"):(setStyleProperty(d,"height",0),setStyleProperty(d,"opacity",0),setStyleProperty(a,"display","none")),s&&s.removeAttribute("aria-invalid"),c&&c.removeAttribute("aria-invalid")};return function({form:i,input:f},{step:s,otherOptions:c}={}){i?e=i:f?.form?.id&&([,e]=f.form.id.split("form-"));const p=window?.bf_globals?.[e];if(void 0===p)return!1;let u={};n=[];const y=p.configs.bf_separator;if(s){let e=p.layout[s-1];if(!e)return!1;e=e?.layout||e;const i=e.lg.map(e=>e.i),n=p.nestedLayout||{};Object.entries(n).forEach(([e,t])=>{if(i.includes(e)){const e=t.lg.map(e=>e.i);i.push(...e)}}),t=i.reduce((e,t)=>({...e,[t]:p.fields[t]}),{})}else t=p.fields;const{modifiedFields:m}=p;if(m&&Object.keys(t).forEach(e=>{m[e]&&(t[e]=m[e])}),i)u=o();else if(f){if(!p.validateFocusLost&&!c?.validateOnInput)return!0;const e=d(f.name);u=o(),t={[e]:t[e]}}let F=!0;const h=Object.entries(t);let{length:b}=h;for(;b--;){const[t,i]=h[b];let n=[""];if(!i?.isDeactive&&bfSelect(`#form-${e} .${t}, #form-${e} .${t}-sub-fld-wrp, #form-${e} .${t}-err-wrp`)){if("undefined"!=typeof checkRepeatedField){const e=checkRepeatedField(t,p);n=getRepeatedIndexes(e,p,f)}for(let d=0;d<n.length;d+=1){const o=n[d],f=o?`${i.fieldName}[${o}]`:i.fieldName,s=`#form-${e}`,c=o?`.rpt-index-${o}`:"",m=i.typ,h="string"==typeof u[f]?u[f].trim():u[f],b=r(t,p,o);if(bfSelect(`${s} ${c} .${t}.fld-hide, ${s} .fld-hide ${c} .${t}`)){a("",t,i,c);continue}let $="";if("check"!==m&&"image-select"!==m||($="undefined"!=typeof checkFldValidation?checkFldValidation(h,i):""),"check"!==m&&"radio"!==m||$||"undefined"==typeof customOptionValidation||($=customOptionValidation(e,t,i)),h||$||"0"===h||($="undefined"!=typeof requiredFldValidation?requiredFldValidation(i):null),a($,t,i,c),$)F=!1;else if(["password","email"].includes(m)&&i?.parentFieldKey&&!i?.isDeactive&&"undefined"!=typeof confirmFldMatch&&($=confirmFldMatch(h,i,u,p.fields,o)),a($,t,i,c),$)F=!1;else if("email-otp"!==m||"undefined"==typeof emailOtpFldValidation){if(h){if("number"===m&&"undefined"!=typeof nmbrFldValidation)$=nmbrFldValidation(h,i);else if("email"===m&&"undefined"!=typeof emailFldValidation)$=emailFldValidation(h,i);else if("url"===m&&"undefined"!=typeof urlFldValidation)$=urlFldValidation(h,i);else if(["decision-box","gdpr"].includes(m)&&"undefined"!=typeof dcsnbxFldValidation)$=dcsnbxFldValidation(h,i);else if(["check","select","image-select"].includes(m)&&"undefined"!=typeof checkMinMaxOptions)$=checkMinMaxOptions(h,i,y);else if("range"===m&&"undefined"!=typeof checkMinMaxValue)$=checkMinMaxValue(h,i);else if("file-up"===m&&"undefined"!=typeof fileupFldValidation)$=fileupFldValidation(l(b),h,i);else if("advanced-file-up"===m&&"undefined"!=typeof advanceFileUpFldValidation)$=advanceFileUpFldValidation(l(b),i);else if("phone-number"===m&&"undefined"!=typeof phoneNumberFldValidation)$=phoneNumberFldValidation(l(b),i);else if("currency"===m&&"undefined"!=typeof currencyFldValidation)$=currencyFldValidation(l(b),i);else if(i?.parentFieldKey&&/\[zip\]$/.test(i.fieldName||"")&&"address"===p.fields[i.parentFieldKey]?.typ&&"undefined"!=typeof addressZipFldValidation){const e=l(r(i.parentFieldKey,p,o));$=addressZipFldValidation(h,i,e,p.fields[i.parentFieldKey])}$||"undefined"==typeof bfDatetimeFldValidation||($=bfDatetimeFldValidation(l(b),h,i)),i?.valid?.inputMask&&!$&&($="undefined"!=typeof inputMaskValidation?inputMaskValidation(e,t,h,i):null),i?.valid?.regexr&&!$&&($="undefined"!=typeof regexPatternValidation?regexPatternValidation(h,i):null),$||"undefined"==typeof textLengthValidation||($=textLengthValidation(h,i)),a($,t,i,c),$&&(F=!1)}}else $=emailOtpFldValidation(l(b),i),a($,t,i,c),$&&(F=!1)}}}return i&&(moveToFirstErrFld(p,n),F||(t=>{if(0===t)return;const i=bfSelect(`#${e}`),n=i?.querySelector(".bf-live-region");if(!n)return;const l=1===t?"Form has 1 validation error. Please correct it before submitting.":`Form has ${t} validation errors. Please correct them before submitting.`;n.textContent=l,setTimeout(()=>{n.textContent=""},3e3)})(n.length)),F}}(); 41var validate_focus=function(){"use strict";return(t=null)=>{const e=t?{[t]:window.bf_globals?.[t]}
41:window.bf_globals;e&&Object.keys(e).forEach(t=>{const e=window.bf_globals?.[t],i=document.getElementById(`form-${t}`);e&&i&&Object.values(e?.fields||{}).forEach(t=>{const n="check"===t.typ||"image-select"===t.typ&&"checkbox"===t.inpType?`${t.fieldName}[]`:t.fieldName,o=["check","radio","decision-box","gdpr","rating","image-select"].includes(t.typ)?"input":"blur";i.querySelectorAll(`[name='${n}']`).forEach(i=>{if(e.validateFocusLost&&"function"==typeof validateForm&&i.addEventListener(o,t=>validateForm({input:t.target})),e.onfieldCondition){if("button"===t.typ)return i.addEventListener("click",t=>{bit_conditionals(t)&&t.stopPropagation()});i.addEventListener("input",t=>bit_conditionals(t)),void 0!==i.inputmask&&i.addEventListener("blur",t=>bit_conditionals(t)),observeElm(i,"value",(t,e)=>{t!==e&&bit_conditionals({target:i})})}})})})}}(); 42var bitform_init=function(){"use strict";const t=["hidden_token_field","initAllCustomFlds","initAddOtherOpt","setSliderFieldValue","setBitInputMaskToInput","initCheckDisableOnMax","initTextLengthHelper","initPasswordStrengthHelper","validate_focus","submit_form","bit_form_abandonment","setFieldValues","bit_multi_step_form","bit_conversational_form","bfTogglePasswordVisibility"],n=new WeakSet;function e(e=null){(e?[e]:function(){const t=new Set(Object.keys(window.bf_globals||{}));return document.querySelectorAll("script.bf-form-config[data-bf-form]").forEach(n=>{const e=n.dataset.bfForm;e&&t.add(e)}),Array.from(t)}()).forEach(e=>function(e){const o=document.getElementById(e);o&&(n.has(o)||(function(t){window.bf_globals||(window.bf_globals={});const n=window.bf_globals[t];if(n?.fields)return!0;const e=document.querySelector(`script.bf-form-config[data-bf-form="${t}"]`);if(!e)return!1;const o=function(t){try{return JSON.parse(t)}catch(t){}const n=t.indexOf('{"');if(n<0)return null;let e=t.lastIndexOf("}");for(let o=0;o<5&&e>n;o+=1)try{return JSON.parse(t.slice(n,e+1))}catch(n){e=t.lastIndexOf("}",e-1)}return null}(e.textContent);o&&(window.bf_globals[t]={inits:{},contentId:t,...n||{},...o})}(e),window.bf_globals?.[e]?.fields&&(t.forEach(t=>{const n=globalThis[t];if("function"==typeof n)try{n(e)}catch(n){const o=window.bf_globals[e];o.initErrors=o.initErrors||{},o.initErrors[t]=String(n&&n.message||n)}}),n.add(o),o.dataset.bfInited="true")))}(e))}return window.bitformInit=e,document.addEventListener("bitform/reinit",t=>{e(t?.detail?.contentId||null)}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{e()}):e(),window.addEventListener("load",()=>{e()}),e}(); 43!function(){"use strict";const e='script.bf-form-config[data-bf-form], [id^="bitforms_"]';function t(){if(window.bfFormObserver||"undefined"==typeof MutationObserver)return;if(!document.body)return;let t=[],o=null;const n=()=>{o=null;const e=Array.from(new Set(t));t=[],"function"==typeof window.bitformInit&&e.forEach(e=>window.bitformInit(e))};window.bfFormObserver=new MutationObserver(r=>{r.forEach(o=>{o.addedNodes.forEach(o=>{t.push(...function(t){if(1!==t.nodeType)return[];const o=[],n=e=>{const t=e.dataset?.bfForm||(/^bitforms_/.test(e.id)?e.id:"");t&&o.push(t)};return t.matches?.(e)&&n(t),t.querySelectorAll?.(e).forEach(n),o}(o))})}),t.length&&!o&&(o=setTimeout(n,50))}),window.bfFormObserver.observe(document.body,{childList:!0,subtree:!0})}document.addEventListener("bitform/reinit",t),window.addEventListener("load",t),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}(); 44let bfContentId = "", bfSlNo = "1", bfVars= "";
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.